[
  {
    "path": ".github/workflows/ci.yml",
    "content": "name: Continuous Integration\n\non:\n    push:\n      branches:\n        - main\n        - develop\n    pull_request:\n      branches:\n        - main\n        - develop\n\njobs:\n  license:\n    name: Check source files for license headers\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v1\n\n      - name: Check for license headers\n        run: bash bin/check_license.sh\n\n  test:\n    name: Test on ${{ matrix.os }} with Python ${{ matrix.python-version }}\n    runs-on: ${{ matrix.os }}\n    strategy:\n      max-parallel: 4\n      matrix:\n        os: [windows-latest, ubuntu-latest, macos-latest]\n        python-version: [3.7, 3.8, 3.9, '3.10']\n\n    steps:\n      - uses: actions/checkout@v1\n\n      - name: Set up Python ${{ matrix.python-version }}\n        uses: actions/setup-python@v1\n        with:\n          python-version: ${{ matrix.python-version }}\n\n      - name: Display python version\n        run: python --version\n\n      - name: Upgrade pip\n        run: python -m pip install --upgrade pip setuptools --user\n\n      - name: Install dev dependencies\n        run: pip install -r dev-requirements.txt\n\n      - name: Install pyp5js for dev\n        run: python setup.py develop --install-dir dist\n\n      - name:\n        run: python -m pytest\n"
  },
  {
    "path": ".gitignore",
    "content": ".Python\n.DS_Store\n*.pyc\n.vscode\n*.env\n*.swp\n*.swo\n*.swn\n*.sqlite3\n*.map\n!pyodide.js.map\n__target__\nbuild\ndist\n*.egg-info\ndemo_sketch\ntests-sketchbook\nvenv\ndocs/examples/dev*\ndocs/examples/issue*\n.theia\n.envrc\n*.properties.json\n.idea/*\n"
  },
  {
    "path": ".gitpod.yml",
    "content": "image: gitpod/workspace-full\n\n\nports:\n  - port: 5000\n    onOpen: open-browser\n\n\ntasks:\n  - init:\n      export SKETCHBOOK_DIR=sketchbook &&\n      python -m venv venv --system-site-packages &&\n      venv/bin/pip install -r dev-requirements.txt &&\n      venv/bin/python setup.py develop &&\n      source venv/bin/activate &&\n      pytest\n    command: pyp5js serve\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "Development\n-----------\n- Add `--version` parameter to the command line interface [PR #223](https://github.com/berinhard/pyp5js/pull/223)\n\n0.7.3\n-----\n- Fix bug on 0.7.2 verison without required local web server template files.\n\n0.7.2\n-----\n- Remove existing sketch after clearing/running it again [PR #199](https://github.com/berinhard/pyp5js/pull/199)\n- Add share button to demo editor [PR #205](https://github.com/berinhard/pyp5js/pull/205)\n- Fixed bug of adding new lines when saving Sketch in Windowns [PR #209](https://github.com/berinhard/pyp5js/pull/209)\n- Upgrade pyp5js dependencies versions [PR #220](https://github.com/berinhard/pyp5js/pull/220)\n- Run CI for Python 3.10 version [PR #219](https://github.com/berinhard/pyp5js/pull/219)\n\n0.7.1\n-----\n- Create sketch using p5.js from CDN [PR #191](https://github.com/berinhard/pyp5js/pull/191)\n- Add `keyIsDown` event to Transcrypt mode - [PR #187](https://github.com/berinhard/pyp5js/pull/187)\n- Fix bug with multiple events calls - PR #187 too\n- Serve JS files if `--local` flag [PR #195](https://github.com/berinhard/pyp5js/pull/195)\n- Force `utf-8` as the lib's default encoding [PR #193](https://github.com/berinhard/pyp5js/pull/193)\n- Fix preload function bug in both modes - [PR #196](https://github.com/berinhard/pyp5js/pull/196)\n\n0.7.0\n-----\n- Remove `from pyp5js import *` requirement under transcrypt [PR #183](https://github.com/berinhard/pyp5js/pull/183/)\n- Make local code editor collapsible [PR #184](https://github.com/berinhard/pyp5js/pull/184/)\n- Add `mouseWheel` event to Pyodide's demo [PR #185](https://github.com/berinhard/pyp5js/pull/185/)\n\n0.6.0\n-----\n- Add transcrypt interpreter choice to web editor - [PR #175](https://github.com/berinhard/pyp5js/pull/175)\n- Upgrade Transcrypt to 3.9.0\n- Upgrade Pyodide to v0.18.1 - [PR #181](https://github.com/berinhard/pyp5js/pull/181)\n- Enable to use custom templates files to generate and compile index.html - [PR #177](https://github.com/berinhard/pyp5js/pull/177)\n- Add docs on Pyodide examples - [PR #178](https://github.com/berinhard/pyp5js/pull/178)\n\n0.5.2\n-----\n- Pyodide mode bugfix for missing `P3D` global definition\n- Processing-like PVector class under transcrypt mode\n- Processing-like PVector class under pyodide mode\n\n0.5.1\n-----\n- Minor fix in view sketch HTML\n\n0.5.0\n-----\n- Support to Pyodide as the Python interpreter\n\n0.4.5\n-----\n- Support to get/set pixels with Transcrypt interpreter\n- `pyp5js` can run on top of Gitpod.io\n\n0.4.4\n-----\n- Fix to allow directories name with spaces - PR #127\n\n0.4.3\n-----\n- Fix conflict with p5.js `clear` method and Python\n- Upgrade `p5.js` version to `1.0.0`\n- Use local file for Ace editor\n\n0.4.2\n-----\n- Keep Python functions with name conflict with p5.js working as expected\n- `createCanvas` now returns `p5.Renderer`\n- Fix `transcrypt` error on Windows\n- Add support to `loadImage`\n\n0.4.1\n-----\n- Fix bug of null `_P5_INSTANCE`\n\n\n0.4.0\n-----\n- Display sketch with code\n- Add ACE editor to edit the sketch code\n- Add aliases to Processing.py functions & constants (`size`, `pushMatrix`, `popMatrix`, `pushStyle`, `pushStyle`, `P3D`)\n\n0.3.5\n-----\n- Fix issue with assets\n\n0.3.4\n-----\n- Update sketch's template\n- Add unit tests to the Flask API\n- Base style for the web client\n\n0.3.3\n-----\n- Validate sketch name\n- Add base templates for the web app\n- Add iframe with example 000 to the index\n\n0.3.2\n-----\n- Ensure the sketchbook dir always exists\n\n0.3.1\n-----\n- Fix build without web application assets\n\n0.3.0\n-----\n- Create `pyp5js serve` command\n- Add `SKETCHBOOK_DIR` to configure the sketchbook's directory\n- Local web app to compile sketches on the fly and to create sketches\n\n0.2.0\n-----\n- Rename pyp5.js module from pytop5js to pyp5js\n- Enable keyword argument\n- Enable checking for existence in dictionary keys\n- Commands now printing index files as URI\n\n0.1.1\n-----\n- Fix install issue\n\n0.1.0\n-----\n- Simplification of pytop5js usage\n- Support p5.dom.js library\n- Fixes on monitor observer\n\n0.0.7\n-----\n- Fix bug with monitor not running transcrypt more than once\n\n0.0.6\n-----\n- Add flag on new commmand to monitor sketch after creating it\n- Fix bug when running the monitor command from the sketch's directory\n- Update width and height values on createCanvas\n\n0.0.5\n-----\n- Add all p5's missing global variables\n\n0.0.4.1\n-------\n- Support event functions such as `keyPressed`\n\n0.0.4\n-----\n- Support p5.js pop function\n- Add `monitor` command to the CLI\n- Allow to run `pyp5js` commands specifying a directory\n- First try on organizing the docs\n\n0.0.3\n-----\n- Add WEBGL variables\n\n0.0.2\n-----\n- Support more of P5's variable\n\n\n0.0.1\n-----\n- First release\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "## Contributing to pyp5js\n\nHere you'll find all possible ways to contribute to the project.\n\n### Testing, testing and testing\n\nSince pyp5js have a lot of moving parts, it would be great to have the p5.js API fully covered and tested. So, use your imagination, code your sketches and, if pyp5js breaks or starts to annoy you with something, you're very welcome to [open an issue](https://github.com/berinhard/pyp5js/issues/new) documenting your thoughts. Test it and let me know how can I improve it.\n\n### What about these shinning examples?\n\nIf you fell confortable with that, I'd be happy to add some of your pyp5js sketches to our [examples list](https://berinhard.github.io/pyp5js/examples/)! To do so, you'll have [to fork this repository](https://help.github.com/en/articles/fork-a-repo) and add your new sketch example in the `docs/examples` directory. Once you've your sketch ready, you can [open a pull request](https://help.github.com/en/articles/about-pull-requests) and I'll take a look at it.\n\n### I want to hack!\n\nOkay, if you want to contribute with pyp5js's code, let's go! I really advise you to use [virtualenv with virtualenvwrapper](http://www.indjango.com/python-install-virtualenv-and-virtualenvwrapper/) or [pyenv](https://amaral.northwestern.edu/resources/guides/pyenv-tutorial) to isolate your pyp5js fork from the rest of your system. Once you have everything ready, you can run:\n\n```\n$ git clone git@github.com:YOUR_GITHUB_PROFILE/pyp5js.git\n$ cd pyp5js\n$ pip install -r dev-requirements.txt\n$ python setup.py develop\n$ make test\n```\n\nAfter that, you should have the `pyp5js` command enabled and it will respect all the changes you introduce to the code. Now, a brief explanation about the code under `pyp5js` directory:\n\n- `config` module: centralize pieces of code used to configure how `pyp5js` runs\n- `cli.py`: the entrypoint for `pyp5js` commands such as `new` or `compile`\n- `commands.py`: just functions responsible for the real implementations for `pyp5js` commands\n- `compiler.py`: where all the magic happens!\n- `exception.py`: custom exceptions used by `pyp5js`\n- `monitor.py`: module with the objects used by the `monitor` command\n- `sketch.py`: class to abstract Sketches' files, directories and configuration\n- `template_renderers.py`: simple module with the renderization logic for the code templates like `target_sketch.py`\n- `http/web_app.py`: Flask application for the web interface.\n\nNow go [fetch yourself an issue](https://github.com/berinhard/pyp5js/issues) and happy hacking!\n"
  },
  {
    "path": "LICENSE",
    "content": "                   GNU LESSER GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n\n  This version of the GNU Lesser General Public License incorporates\nthe terms and conditions of version 3 of the GNU General Public\nLicense, supplemented by the additional permissions listed below.\n\n  0. Additional Definitions.\n\n  As used herein, \"this License\" refers to version 3 of the GNU Lesser\nGeneral Public License, and the \"GNU GPL\" refers to version 3 of the GNU\nGeneral Public License.\n\n  \"The Library\" refers to a covered work governed by this License,\nother than an Application or a Combined Work as defined below.\n\n  An \"Application\" is any work that makes use of an interface provided\nby the Library, but which is not otherwise based on the Library.\nDefining a subclass of a class defined by the Library is deemed a mode\nof using an interface provided by the Library.\n\n  A \"Combined Work\" is a work produced by combining or linking an\nApplication with the Library.  The particular version of the Library\nwith which the Combined Work was made is also called the \"Linked\nVersion\".\n\n  The \"Minimal Corresponding Source\" for a Combined Work means the\nCorresponding Source for the Combined Work, excluding any source code\nfor portions of the Combined Work that, considered in isolation, are\nbased on the Application, and not on the Linked Version.\n\n  The \"Corresponding Application Code\" for a Combined Work means the\nobject code and/or source code for the Application, including any data\nand utility programs needed for reproducing the Combined Work from the\nApplication, but excluding the System Libraries of the Combined Work.\n\n  1. Exception to Section 3 of the GNU GPL.\n\n  You may convey a covered work under sections 3 and 4 of this License\nwithout being bound by section 3 of the GNU GPL.\n\n  2. Conveying Modified Versions.\n\n  If you modify a copy of the Library, and, in your modifications, a\nfacility refers to a function or data to be supplied by an Application\nthat uses the facility (other than as an argument passed when the\nfacility is invoked), then you may convey a copy of the modified\nversion:\n\n   a) under this License, provided that you make a good faith effort to\n   ensure that, in the event an Application does not supply the\n   function or data, the facility still operates, and performs\n   whatever part of its purpose remains meaningful, or\n\n   b) under the GNU GPL, with none of the additional permissions of\n   this License applicable to that copy.\n\n  3. Object Code Incorporating Material from Library Header Files.\n\n  The object code form of an Application may incorporate material from\na header file that is part of the Library.  You may convey such object\ncode under terms of your choice, provided that, if the incorporated\nmaterial is not limited to numerical parameters, data structure\nlayouts and accessors, or small macros, inline functions and templates\n(ten or fewer lines in length), you do both of the following:\n\n   a) Give prominent notice with each copy of the object code that the\n   Library is used in it and that the Library and its use are\n   covered by this License.\n\n   b) Accompany the object code with a copy of the GNU GPL and this license\n   document.\n\n  4. Combined Works.\n\n  You may convey a Combined Work under terms of your choice that,\ntaken together, effectively do not restrict modification of the\nportions of the Library contained in the Combined Work and reverse\nengineering for debugging such modifications, if you also do each of\nthe following:\n\n   a) Give prominent notice with each copy of the Combined Work that\n   the Library is used in it and that the Library and its use are\n   covered by this License.\n\n   b) Accompany the Combined Work with a copy of the GNU GPL and this license\n   document.\n\n   c) For a Combined Work that displays copyright notices during\n   execution, include the copyright notice for the Library among\n   these notices, as well as a reference directing the user to the\n   copies of the GNU GPL and this license document.\n\n   d) Do one of the following:\n\n       0) Convey the Minimal Corresponding Source under the terms of this\n       License, and the Corresponding Application Code in a form\n       suitable for, and under terms that permit, the user to\n       recombine or relink the Application with a modified version of\n       the Linked Version to produce a modified Combined Work, in the\n       manner specified by section 6 of the GNU GPL for conveying\n       Corresponding Source.\n\n       1) Use a suitable shared library mechanism for linking with the\n       Library.  A suitable mechanism is one that (a) uses at run time\n       a copy of the Library already present on the user's computer\n       system, and (b) will operate properly with a modified version\n       of the Library that is interface-compatible with the Linked\n       Version.\n\n   e) Provide Installation Information, but only if you would otherwise\n   be required to provide such information under section 6 of the\n   GNU GPL, and only to the extent that such information is\n   necessary to install and execute a modified version of the\n   Combined Work produced by recombining or relinking the\n   Application with a modified version of the Linked Version. (If\n   you use option 4d0, the Installation Information must accompany\n   the Minimal Corresponding Source and Corresponding Application\n   Code. If you use option 4d1, you must provide the Installation\n   Information in the manner specified by section 6 of the GNU GPL\n   for conveying Corresponding Source.)\n\n  5. Combined Libraries.\n\n  You may place library facilities that are a work based on the\nLibrary side by side in a single library together with other library\nfacilities that are not Applications and are not covered by this\nLicense, and convey such a combined library under terms of your\nchoice, if you do both of the following:\n\n   a) Accompany the combined library with a copy of the same work based\n   on the Library, uncombined with any other library facilities,\n   conveyed under the terms of this License.\n\n   b) Give prominent notice with the combined library that part of it\n   is a work based on the Library, and explaining where to find the\n   accompanying uncombined form of the same work.\n\n  6. Revised Versions of the GNU Lesser General Public License.\n\n  The Free Software Foundation may publish revised and/or new versions\nof the GNU Lesser General Public License from time to time. Such new\nversions will be similar in spirit to the present version, but may\ndiffer in detail to address new problems or concerns.\n\n  Each version is given a distinguishing version number. If the\nLibrary as you received it specifies that a certain numbered version\nof the GNU Lesser General Public License \"or any later version\"\napplies to it, you have the option of following the terms and\nconditions either of that published version or of any later version\npublished by the Free Software Foundation. If the Library as you\nreceived it does not specify a version number of the GNU Lesser\nGeneral Public License, you may choose any version of the GNU Lesser\nGeneral Public License ever published by the Free Software Foundation.\n\n  If the Library as you received it specifies that a proxy can decide\nwhether future versions of the GNU Lesser General Public License shall\napply, that proxy's public statement of acceptance of any version is\npermanent authorization for you to choose that version for the\nLibrary.\n"
  },
  {
    "path": "MANIFEST.in",
    "content": "recursive-include pyp5js/templates *\nrecursive-include pyp5js/http_local/templates *\nrecursive-include pyp5js/http_local/static *\n"
  },
  {
    "path": "Makefile",
    "content": "test:\n\texport PYTHONWARNINGS=ignore::flask.DeprecationWarning; pytest\n\nupdate_dist:\n\t@python3 setup.py sdist bdist_wheel\n\nupload_pypi:\n\t@twine upload dist/*\n\n# helper command for the maintainer to refresh the docs files\nrefresh_transcrypt_docs:\n\tcd docs/examples/transcrypt; for x in `ls -d */`; do SKETCHBOOK_DIR=\"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/\" pyp5js compile $$x --refresh --template \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/index.html.template\"; done;\n\nrefresh_pyodide_docs:\n\tcd docs/examples/pyodide; for x in `ls -d */`; do SKETCHBOOK_DIR=\"/home/bernardo/envs/pyp5js/docs/examples/pyodide\" pyp5js compile $$x --refresh --template \"/home/bernardo/envs/pyp5js/docs/examples/pyodide/index.html.template\"; done;\n\nrefresh_demo:\n\tSKETCHBOOK_DIR=\"/home/bernardo/envs/pyp5js/docs/\" pyp5js compile pyodide --refresh --template \"/home/bernardo/envs/pyp5js/docs/pyodide/index.html.template\";\n\nrun_demo:\n\tcd docs/pyodide && python -m http.server\n"
  },
  {
    "path": "Makefile.bat",
    "content": "@echo off\n\nIF /I \"%1\"==\"test\" GOTO test\nIF /I \"%1\"==\"update_dist\" GOTO update_dist\nIF /I \"%1\"==\"upload_pypi\" GOTO upload_pypi\nIF /I \"%1\"==\"run_demo\" GOTO run_demo\nGOTO error\n\n:test\n\tset PYTHONWARNINGS=ignore::flask.DeprecationWarning && pytest\n\tGOTO :EOF\n\n:update_dist\n\t@python3 setup.py sdist bdist_wheel\n\tGOTO :EOF\n\n:upload_pypi\n\t@twine upload dist/*\n\tGOTO :EOF\n\n:run_demo\n\tPUSHD docs/pyodide\n\tpython -m http.server\n\tPOPD\n\tGOTO :EOF\n\n:error\n    IF \"%1\"==\"\" (\n        ECHO make: *** No targets specified and no makefile found.  Stop.\n    ) ELSE (\n        ECHO make: *** No rule to make target '%1%'. Stop.\n    )\n    GOTO :EOF\n"
  },
  {
    "path": "README.md",
    "content": "## pyp5js: drawing with Python 3\n\n[![PyPI version](https://badge.fury.io/py/pyp5js.svg)](https://badge.fury.io/py/pyp5js)\n![Continuous Integration](https://github.com/berinhard/pyp5js/workflows/Continuous%20Integration/badge.svg?branch=develop&event=push)\n[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/berinhard/pyp5js/tree/main)\n\n> [Processing](https://processing.org) ideas and Python 3 together with [P5.js](https://p5js.org) in the browser.\n\nPython 3 drawing in the web! Try it [here](https://berinhard.github.io/pyp5js/pyodide/)!\n\nHere's an example of a valid Python code using P5.js API:\n\n```python\ndef setup():\n    createCanvas(200, 200)\n\ndef draw():\n    background(200)\n    diameter = sin(frameCount / 60) * 50 + 50\n    fill('blue')\n    ellipse(100, 100, diameter, diameter)\n```\n\n## Project setup\n\n```\n$ git clone git@github.com:YOUR_GITHUB_PROFILE/pyp5js.git\n$ cd pyp5js\n$ pip install -r dev-requirements.txt\n$ python setup.py develop\n$ make test\n```\n\n## More references\n\n### [Documentation](https://berinhard.github.io/pyp5js)\n\n### [Examples](https://berinhard.github.io/pyp5js/examples/)\n\n### [Installation](https://berinhard.github.io/pyp5js#installation)\n\n### [Quickstart](https://berinhard.github.io/pyp5js#quickstart)\n\n### [Internals details](https://berinhard.github.io/pyp5js#internals-details)\n\n### [Known issues and differences to the Processing.Py and P5.js ways of doing things](https://berinhard.github.io/pyp5js#known-issues-and-differences-to-the-processingpy-and-p5js-ways-of-doing-things)\n\n### [How can I contribute?](CONTRIBUTING.md)\n"
  },
  {
    "path": "VERSION",
    "content": "0.7.3\n"
  },
  {
    "path": "bin/check_license.sh",
    "content": "#!/bin/bash\n\nEXIT_CODE=0\n\nwhile IFS= read -r -d '' file; do\n    if ! head -5 \"$file\" | grep -q 'Copyright'; then\n      echo \"$file\" is missing a license\n      EXIT_CODE=1\n    fi\ndone < <(find pyp5js -type f \\( \\\n            -name \"*.py\" -o \\\n            -name \"*.html\" -o \\\n            -name \"*.js.template\" \\) -print0)\n\nexit $EXIT_CODE\n"
  },
  {
    "path": "dev-requirements.txt",
    "content": "-r requirements.txt\n\nblack==22.10.0\nipython==7.34.0\npytest==7.1.3\ntox==3.26.0\npytest-env==0.6.2\nFlask-Testing==0.8.1\nblinker==1.5\npyaml==21.10.1\nwheel==0.38.1\ntwine==4.0.1\n"
  },
  {
    "path": "docs/examples/index.md",
    "content": "### Examples list\n\nHere you find a list of examples using pyp5js. They can have lnks to working examples using Transcrypt or Pyodide as the interpreter.\n\n**Angles and mouse coordinates** | [pyodide](pyodide/sketch_001/index.html) | [transcrypt](transcrypt/sketch_001/index.html)\n\n**Move Eye**, an example by Simon Greenwold, ported by [@villares](https://github.com/villares) | [pyodide](pyodide/sketch_002/index.html) | [transcrypt](transcrypt/sketch_002/index.html)\n\n**Rotating 3D box** | [pyodide](pyodide/sketch_003/index.html) | [transcrypt](transcrypt/sketch_003/index.html)\n\n**Boids** | [pyodide](pyodide/sketch_004/index.html) | [transcrypt](transcrypt/sketch_004/index.html)\n\n**Globals variables (HSB and CENTER)** | [pyodide](pyodide/sketch_005/index.html) | [transcrypt](transcrypt/sketch_005/index.html)\n\n**Registering event functions such as keyPressed** | [pyodide](pyodide/sketch_006/index.html) | [transcrypt](transcrypt/sketch_006/index.html)\n\n**p5.Vector static methods** | [pyodide](pyodide/sketch_007/index.html) | [transcrypt](transcrypt/sketch_007/index.html)\n\n**p5.dom.js usage** | [pyodide](pyodide/sketch_008/index.html) | [transcrypt](transcrypt/sketch_008/index.html)\n\n**Working with images** | [pyodide](pyodide/sketch_009/index.html) | [transcrypt](transcrypt/sketch_009/index.html)\n\n**Complex shapes**, by [Pedro Queiroga](https://github.com/pedroqueiroga/pqueiroga.github.io/blob/master/curveVertexExample/main.js) | [pyodide](pyodide/sketch_010/index.html) | [transcrypt](transcrypt/sketch_010/index.html)\n\n**A-star search algoritm**, by [@ademakdogan](https://github.com/ademakdogan) | [pyodide](pyodide/sketch_012/index.html)\n\n**Breakout**, by [@misolietavec](https://github.com/misolietavec) | [pyodide](pyodide/breakout/index.html)\n\n**Flappy bird**, by [@misolietavec](https://github.com/misolietavec) | [pyodide](pyodide/flappybird/index.html)\n\n**Memory**, by [@misolietavec](https://github.com/misolietavec) | [pyodide](pyodide/memory/index.html)\n\n**Same game**, by [@misolietavec](https://github.com/misolietavec) | [pyodide](pyodide/samegame/index.html)\n"
  },
  {
    "path": "docs/examples/pyodide/bouncing/bouncing.py",
    "content": "x = 50\ny = 100\nrad = 6\n\nvx = 5\nvy = 5\n\nWIDTH = 640\nHEIGHT = 400\nFPS = 60\n\ndef setup():\n    createCanvas(WIDTH, HEIGHT)\n    frameRate(FPS)\n\ndef draw():\n    global x, y, vx, vy\n    \n    background(220)\n    fill(0, 255, 0)\n    ellipse(x, y, 2 * rad)\n\n    x += vx\n    y += vy\n  \n    if (x + rad >= width or x - rad <= 0):\n        vx = -vx\n    \n    if (y + rad >= height or y - rad <= 0):\n        vy = -vy\n"
  },
  {
    "path": "docs/examples/pyodide/bouncing/bouncingFPS.py",
    "content": "x = 50\ny = 100\ndiam = 10\n\nvx = 2\nvy = 2\nframecount = 0\n\nWIDTH = 640\nHEIGHT = 400\nFPS = 60\nafps = FPS\n\ndef setup():\n    createCanvas(WIDTH, HEIGHT)\n    frameRate(FPS)\n    \ndef draw():\n    global x, y, vx, vy, framecount, afps\n    \n    background(220)\n    fill(255, 0, 0)\n    ellipse(x, y, diam)\n    framecount += 1\n    if not framecount % FPS:\n        afps = frameRate() \n    fill(10)\n    textSize(20)\n    text(\"FPS: %.1f\" %afps, 30, HEIGHT - 24)\n    x += vx\n    y += vy\n  \n    if (x + diam // 2 >= width or x - diam // 2 <= 0):\n        vx = -vx\n    \n    if (y + diam // 2 >= height or y - diam // 2 <= 0):\n        vy = -vy\n      \n"
  },
  {
    "path": "docs/examples/pyodide/bouncing/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>bouncing - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/bouncing\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>x = 50\ny = 100\nrad = 6\n\nvx = 5\nvy = 5\n\nWIDTH = 640\nHEIGHT = 400\nFPS = 60\n\ndef setup():\n    createCanvas(WIDTH, HEIGHT)\n    frameRate(FPS)\n\ndef draw():\n    global x, y, vx, vy\n    \n    background(220)\n    fill(0, 255, 0)\n    ellipse(x, y, 2 * rad)\n\n    x += vx\n    y += vy\n  \n    if (x + rad >= width or x - rad <= 0):\n        vx = -vx\n    \n    if (y + rad >= height or y - rad <= 0):\n        vy = -vy\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/bouncing/odkaz.txt",
    "content": "https://github.com/Luxapodular/Py5.js/blob/master/examples/bouncingBall.py\n"
  },
  {
    "path": "docs/examples/pyodide/bouncing/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/bouncing/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\nx = 50\ny = 100\nrad = 6\n\nvx = 5\nvy = 5\n\nWIDTH = 640\nHEIGHT = 400\nFPS = 60\n\ndef setup():\n    createCanvas(WIDTH, HEIGHT)\n    frameRate(FPS)\n\ndef draw():\n    global x, y, vx, vy\n    \n    background(220)\n    fill(0, 255, 0)\n    ellipse(x, y, 2 * rad)\n\n    x += vx\n    y += vy\n  \n    if (x + rad >= width or x - rad <= 0):\n        vx = -vx\n    \n    if (y + rad >= height or y - rad <= 0):\n        vy = -vy\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/breakout/breakout-kb.py",
    "content": "# Inspired by Mats Lund:\n# https://github.com/CoderMats/breakout \n# Completely rewritten\n\nWIDTH =  640    # canvas width\nHEIGHT = 400    # canvas height\nP_WIDTH =  50   # paddle halfwidth\nP_HEIGHT = 8    # paddle halfheight\nB_ROWS = 5      # bricks, number of rows\nB_COLS = 10     # bricks, number of columns\nB_MARGINS = 15  # margins for bricks (bottom, side)\nBALL_DIAM = 10  # diameter of ball\nFPS = 30        # frames per second\n\n# block width, height, total space\nb_width = (WIDTH - 2 * B_MARGINS) // B_COLS\nb_height = 40  \nb_gap = 15      # gap between blocks\n\n# constants, helper variables\nbw2 = b_width // 2 \nbh2 = b_height // 2\ndw = (b_width - b_gap) // 2\ndh = (b_height - b_gap) // 2\nr = BALL_DIAM // 2    # ball diameter\ny_paddle = HEIGHT - 30\n\ncell_colors = {1:\"green\" , 2:\"blue\" , 3:\"red\" , 4:\"yellow\"}\n\ngame = None\n\ndef setup():\n    global game\n    createCanvas(WIDTH, HEIGHT, P2D)\n    rectMode(CENTER)\n    frameRate(FPS)\n    noCursor()\n    game = Game()\n\ndef new_game():\n    global game\n    new_level = game.level + int(game.blocks_gone)\n    game = Game(level=new_level)\n        \ndef draw():\n    global game\n    if game.blocks_gone:\n        new_game()    \n    if keyIsPressed:\n        if (keyCode == RIGHT_ARROW) and (not game.game_over):  # Move right\n            game.paddle.x = min(game.paddle.x + 12, WIDTH - P_WIDTH) \n        elif (keyCode == LEFT_ARROW) and (not game.game_over): # Move left\n            game.paddle.x = max(game.paddle.x - 12, P_WIDTH)\n        elif (key == ' '):\n            new_game()\n    game.update()        \n\nclass Ball(object):\n    def __init__(self,level=1):\n        # ball velocity\n        self.vel = PVector(3 + int(1.5 * level),-3 - int(1.5 * level))\n        xp = WIDTH // 2 + int(random(-P_WIDTH - 40,P_WIDTH + 40))\n        yp = y_paddle - P_HEIGHT // 2 - r - 1      \n        self.pos = PVector(xp,yp)                   # ball position\n\n    def update(self):    \n        self.pos = PVector.add(self.pos,self.vel)\n        if (self.pos.x >= WIDTH or self.pos.x <= 0):  \n            self.vel.x = -self.vel.x\n        if (self.pos.y <= 0):\n            self.vel.y = -self.vel.y\n\nclass Game(object):\n    def __init__(self,level=1):\n        self.paddle = PVector(WIDTH // 2, HEIGHT - 30)\n        self.level = level\n        self.ball = Ball()\n        self.score = 0 \n        self.blocks = [int(random(1.5,4.5)) for k in  range(B_ROWS * B_COLS)]\n        self.game_over = False\n        self.blocks_gone = False\n        # x, y positions of block centers\n        self.centers = [((i % B_COLS) * b_width + B_MARGINS + bw2,\n                         b_height * (i // B_COLS) + B_MARGINS + bh2) \n                         for i in range(B_ROWS * B_COLS)]\n\n    def update_ball(self):\n        self.ball.update()\n        px, py = self.paddle.x, self.paddle.y\n        if ((px - P_WIDTH -r) <= self.ball.pos.x\n             <= (px + P_WIDTH + r) and \n            (py - P_HEIGHT - r <= self.ball.pos.y \n             <= py - P_HEIGHT)):\n            # ball is hitting paddle rectangle, reverse y_speed\n            self.ball.vel.y = -self.ball.vel.y\n            self.score = self.score + 1\n        fill(100,100,200)\n        ellipse(self.ball.pos.x, self.ball.pos.y, BALL_DIAM, BALL_DIAM)\n\n            \n    def update_paddle(self):\n        fill(0,255,0)\n        rect(self.paddle.x, self.paddle.y, 2 * P_WIDTH, 2* P_HEIGHT)\n        if (self.ball.pos.y >= HEIGHT):\n            fill(255) \n            textSize(40)\n            textAlign(CENTER)\n            text(\"Game over\", WIDTH // 2, HEIGHT // 2 + 40)\n            self.game_over = True \n    \n    def update_texts(self):            \n        background(25)\n        noStroke()\n        # Set fill color to white\n        fill(255)\n        # Display score\n        textSize(16)\n        textAlign(RIGHT)\n        text(\"Score\", 80, HEIGHT - 6)\n        textAlign(LEFT)\n        text(self.score, 90, HEIGHT - 6)\n        # text(\"Frames: %.1f\" %frameRate(), 130, HEIGHT - 6) \n        # Display level\n        textAlign(RIGHT)\n        text(\"Level\", WIDTH - 50, HEIGHT - 6)\n        textAlign(LEFT)\n        text(self.level, WIDTH - 40, HEIGHT - 6)\n\n    def update_blocks(self):\n        self.blocks_gone = True\n        # Loop through all the potential blocks\n        collide = False\n\n        for i in range(B_ROWS * B_COLS):\n            # Check if we have that block\n            if (self.blocks[i]):\n                x_cent, y_cent = self.centers[i]\n                self.blocks_gone = False\n                    \n                if not collide:\n                    bx, by = self.ball.pos.x, self.ball.pos.y     \n                    # check bounce on top/bottom\n                    if ((x_cent - dw - r < bx < x_cent + dw + r) and \n                        ((y_cent + dh < by < y_cent + dh + r) or \n                        (y_cent -dh - r < by < y_cent - dh))):\n                        self.blocks[i] = 0\n                        self.ball.vel.y = -self.ball.vel.y\n                        self.score = self.score + 5\n                        collide = True\n                     \n                    # check bounce on left/right\n                    if ((y_cent - dh - r < by < y_cent + dh + r) and \n                        ((x_cent + dw < bx < x_cent + dw + r) or \n                        (x_cent - dw -r < bx < x_cent - dw))):\n                        self.blocks[i] = 0\n                        self.ball.vel.x = -self.ball.vel.x\n                        self.score = self.score + 5\n                        collide = True\n            if collide:\n                break\n                    \n    def draw_blocks(self):\n        for i in range(B_ROWS * B_COLS):\n            if (self.blocks[i]):\n                fill(cell_colors[self.blocks[i]])\n                x_cent, y_cent = self.centers[i]\n                rect(x_cent, y_cent, 2 * dw, 2 * dh)\n                        \n    def update(self):\n        self.update_texts()\n        self.update_ball()\n        self.update_paddle()\n        self.update_blocks()    \n        self.draw_blocks()\n        \n                  "
  },
  {
    "path": "docs/examples/pyodide/breakout/breakout-ms.py",
    "content": "# Inspired by Mats Lund:\n# https://github.com/CoderMats/breakout \n# Completely rewritten\n\nWIDTH =  640    # canvas width\nHEIGHT = 400    # canvas height\nP_WIDTH =  50   # paddle halfwidth\nP_HEIGHT = 8    # paddle halfheight\nB_ROWS = 5      # bricks, number of rows\nB_COLS = 10     # bricks, number of columns\nB_MARGINS = 15  # margins for bricks (bottom, side)\nBALL_DIAM = 10  # diameter of ball\nFPS = 30        # frames per second\n\n# block width, height, total space\nb_width = (WIDTH - 2 * B_MARGINS) // B_COLS\nb_height = 40  \nb_gap = 15      # gap between blocks\n\n# constants, helper variables\nbw2 = b_width // 2 \nbh2 = b_height // 2\ndw = (b_width - b_gap) // 2\ndh = (b_height - b_gap) // 2\nr = BALL_DIAM // 2    # ball diameter\ny_paddle = HEIGHT - 30\n\ncell_colors = {1:\"green\" , 2:\"blue\" , 3:\"red\" , 4:\"yellow\"}\n\ngame = None\n\ndef setup():\n    global game\n    createCanvas(WIDTH, HEIGHT, P2D)\n    rectMode(CENTER)\n    frameRate(FPS)\n    noCursor()\n    game = Game()\n\ndef new_game():\n    global game\n    new_level = game.level + int(game.blocks_gone)\n    game = Game(level=new_level)\n        \ndef draw():\n    global game\n    if game.blocks_gone:\n        new_game()    \n    if not game.game_over:\n        game.paddle.x = min(WIDTH - P_WIDTH, max(mouseX, P_WIDTH))\n    game.update()        \n\ndef keyPressed():\n    if key == \" \":\n        new_game()\n\nclass Ball(object):\n    def __init__(self,level=1):\n        # ball velocity\n        self.vel = PVector(3 + int(1.5 * level),-3 - int(1.5 * level))\n        xp = WIDTH // 2 + int(random(-P_WIDTH - 40,P_WIDTH + 40))\n        yp = y_paddle - P_HEIGHT // 2 - r - 1      \n        self.pos = PVector(xp,yp)                   # ball position\n\n    def update(self):    \n        self.pos = PVector.add(self.pos,self.vel)\n        if (self.pos.x >= WIDTH or self.pos.x <= 0):  \n            self.vel.x = -self.vel.x\n        if (self.pos.y <= 0):\n            self.vel.y = -self.vel.y\n\nclass Game(object):\n    def __init__(self,level=1):\n        self.paddle = PVector(WIDTH // 2, HEIGHT - 30)\n        self.level = level\n        self.ball = Ball()\n        self.score = 0 \n        self.blocks = [int(random(1.5,4.5)) for k in  range(B_ROWS * B_COLS)]\n        self.game_over = False\n        self.blocks_gone = False\n        # x, y positions of block centers\n        self.centers = [((i % B_COLS) * b_width + B_MARGINS + bw2,\n                         b_height * (i // B_COLS) + B_MARGINS + bh2) \n                         for i in range(B_ROWS * B_COLS)]\n\n    def update_ball(self):\n        self.ball.update()\n        px, py = self.paddle.x, self.paddle.y\n        if ((px - P_WIDTH -r) <= self.ball.pos.x\n             <= (px + P_WIDTH + r) and \n            (py - P_HEIGHT - r <= self.ball.pos.y \n             <= py - P_HEIGHT)):\n            # ball is hitting paddle rectangle, reverse y_speed\n            self.ball.vel.y = -self.ball.vel.y\n            self.score = self.score + 1\n        fill(100,100,200)\n        ellipse(self.ball.pos.x, self.ball.pos.y, BALL_DIAM, BALL_DIAM)\n\n            \n    def update_paddle(self):\n        fill(0,255,0)\n        rect(self.paddle.x, self.paddle.y, 2 * P_WIDTH, 2* P_HEIGHT)\n        if (self.ball.pos.y >= HEIGHT):\n            fill(255) \n            textSize(40)\n            textAlign(CENTER)\n            text(\"Game over\", WIDTH // 2, HEIGHT // 2 + 40)\n            self.game_over = True \n    \n    def update_texts(self):            \n        background(25)\n        noStroke()\n        # Set fill color to white\n        fill(255)\n        # Display score\n        textSize(16)\n        textAlign(RIGHT)\n        text(\"Score\", 80, HEIGHT - 6)\n        textAlign(LEFT)\n        text(self.score, 90, HEIGHT - 6)\n        # text(\"Frames: %.1f\" %frameRate(), 130, HEIGHT - 6) \n        # Display level\n        textAlign(RIGHT)\n        text(\"Level\", WIDTH - 50, HEIGHT - 6)\n        textAlign(LEFT)\n        text(self.level, WIDTH - 40, HEIGHT - 6)\n\n    def update_blocks(self):\n        self.blocks_gone = True\n        # Loop through all the potential blocks\n        collide = False\n\n        for i in range(B_ROWS * B_COLS):\n            # Check if we have that block\n            if (self.blocks[i]):\n                x_cent, y_cent = self.centers[i]\n                self.blocks_gone = False\n                    \n                if not collide:\n                    bx, by = self.ball.pos.x, self.ball.pos.y     \n                    # check bounce on top/bottom\n                    if ((x_cent - dw - r < bx < x_cent + dw + r) and \n                        ((y_cent + dh < by < y_cent + dh + r) or \n                        (y_cent -dh - r < by < y_cent - dh))):\n                        self.blocks[i] = 0\n                        self.ball.vel.y = -self.ball.vel.y\n                        self.score = self.score + 5\n                        collide = True\n                     \n                    # check bounce on left/right\n                    if ((y_cent - dh - r < by < y_cent + dh + r) and \n                        ((x_cent + dw < bx < x_cent + dw + r) or \n                        (x_cent - dw -r < bx < x_cent - dw))):\n                        self.blocks[i] = 0\n                        self.ball.vel.x = -self.ball.vel.x\n                        self.score = self.score + 5\n                        collide = True\n            if collide:\n                break\n                    \n    def draw_blocks(self):\n        for i in range(B_ROWS * B_COLS):\n            if (self.blocks[i]):\n                fill(cell_colors[self.blocks[i]])\n                x_cent, y_cent = self.centers[i]\n                rect(x_cent, y_cent, 2 * dw, 2 * dh)\n                        \n    def update(self):\n        self.update_texts()\n        self.update_ball()\n        self.update_paddle()\n        self.update_blocks()    \n        self.draw_blocks()\n        \n                  "
  },
  {
    "path": "docs/examples/pyodide/breakout/breakout.py",
    "content": "# Inspired by Mats Lund:\n# https://github.com/CoderMats/breakout \n# Completely rewritten\n\nWIDTH =  640    # canvas width\nHEIGHT = 400    # canvas height\nP_WIDTH =  50   # paddle halfwidth\nP_HEIGHT = 8    # paddle halfheight\nB_ROWS = 5      # bricks, number of rows\nB_COLS = 10     # bricks, number of columns\nB_MARGINS = 15  # margins for bricks (bottom, side)\nBALL_DIAM = 10  # diameter of ball\nFPS = 30        # frames per second\n\n# block width, height, total space\nb_width = (WIDTH - 2 * B_MARGINS) // B_COLS\nb_height = 40  \nb_gap = 15      # gap between blocks\n\n# constants, helper variables\nbw2 = b_width // 2 \nbh2 = b_height // 2\ndw = (b_width - b_gap) // 2\ndh = (b_height - b_gap) // 2\nr = BALL_DIAM // 2    # ball diameter\ny_paddle = HEIGHT - 30\n\ncell_colors = {1:\"green\" , 2:\"blue\" , 3:\"red\" , 4:\"yellow\"}\n\ngame = None\n\ndef setup():\n    global game\n    createCanvas(WIDTH, HEIGHT, P2D)\n    rectMode(CENTER)\n    frameRate(FPS)\n    noCursor()\n    game = Game()\n\ndef new_game():\n    global game\n    new_level = game.level + int(game.blocks_gone)\n    game = Game(level=new_level)\n        \ndef draw():\n    global game\n    if game.blocks_gone:\n        new_game()    \n    if not game.game_over:\n        game.paddle.x = min(WIDTH - P_WIDTH, max(mouseX, P_WIDTH))\n    game.update()        \n\ndef keyPressed():\n    if key == \" \":\n        new_game()\n\nclass Ball(object):\n    def __init__(self,level=1):\n        # ball velocity\n        self.vel = PVector(3 + int(1.5 * level),-3 - int(1.5 * level))\n        xp = WIDTH // 2 + int(random(-P_WIDTH - 40,P_WIDTH + 40))\n        yp = y_paddle - P_HEIGHT // 2 - r - 1      \n        self.pos = PVector(xp,yp)                   # ball position\n\n    def update(self):    \n        self.pos = PVector.add(self.pos,self.vel)\n        if (self.pos.x >= WIDTH or self.pos.x <= 0):  \n            self.vel.x = -self.vel.x\n        if (self.pos.y <= 0):\n            self.vel.y = -self.vel.y\n\nclass Game(object):\n    def __init__(self,level=1):\n        self.paddle = PVector(WIDTH // 2, HEIGHT - 30)\n        self.level = level\n        self.ball = Ball()\n        self.score = 0 \n        self.blocks = [int(random(1.5,4.5)) for k in  range(B_ROWS * B_COLS)]\n        self.game_over = False\n        self.blocks_gone = False\n        # x, y positions of block centers\n        self.centers = [((i % B_COLS) * b_width + B_MARGINS + bw2,\n                         b_height * (i // B_COLS) + B_MARGINS + bh2) \n                         for i in range(B_ROWS * B_COLS)]\n\n    def update_ball(self):\n        self.ball.update()\n        px, py = self.paddle.x, self.paddle.y\n        if ((px - P_WIDTH -r) <= self.ball.pos.x\n             <= (px + P_WIDTH + r) and \n            (py - P_HEIGHT - r <= self.ball.pos.y \n             <= py - P_HEIGHT)):\n            # ball is hitting paddle rectangle, reverse y_speed\n            self.ball.vel.y = -self.ball.vel.y\n            self.score = self.score + 1\n        fill(100,100,200)\n        ellipse(self.ball.pos.x, self.ball.pos.y, BALL_DIAM, BALL_DIAM)\n\n            \n    def update_paddle(self):\n        fill(0,255,0)\n        rect(self.paddle.x, self.paddle.y, 2 * P_WIDTH, 2* P_HEIGHT)\n        if (self.ball.pos.y >= HEIGHT):\n            fill(255) \n            textSize(40)\n            textAlign(CENTER)\n            text(\"Game over\", WIDTH // 2, HEIGHT // 2 + 40)\n            self.game_over = True \n    \n    def update_texts(self):            \n        background(25)\n        noStroke()\n        # Set fill color to white\n        fill(255)\n        # Display score\n        textSize(16)\n        textAlign(RIGHT)\n        text(\"Score\", 80, HEIGHT - 6)\n        textAlign(LEFT)\n        text(self.score, 90, HEIGHT - 6)\n        # text(\"Frames: %.1f\" %frameRate(), 130, HEIGHT - 6) \n        # Display level\n        textAlign(RIGHT)\n        text(\"Level\", WIDTH - 50, HEIGHT - 6)\n        textAlign(LEFT)\n        text(self.level, WIDTH - 40, HEIGHT - 6)\n\n    def update_blocks(self):\n        self.blocks_gone = True\n        # Loop through all the potential blocks\n        collide = False\n\n        for i in range(B_ROWS * B_COLS):\n            # Check if we have that block\n            if (self.blocks[i]):\n                x_cent, y_cent = self.centers[i]\n                self.blocks_gone = False\n                    \n                if not collide:\n                    bx, by = self.ball.pos.x, self.ball.pos.y     \n                    # check bounce on top/bottom\n                    if ((x_cent - dw - r < bx < x_cent + dw + r) and \n                        ((y_cent + dh < by < y_cent + dh + r) or \n                        (y_cent -dh - r < by < y_cent - dh))):\n                        self.blocks[i] = 0\n                        self.ball.vel.y = -self.ball.vel.y\n                        self.score = self.score + 5\n                        collide = True\n                     \n                    # check bounce on left/right\n                    if ((y_cent - dh - r < by < y_cent + dh + r) and \n                        ((x_cent + dw < bx < x_cent + dw + r) or \n                        (x_cent - dw -r < bx < x_cent - dw))):\n                        self.blocks[i] = 0\n                        self.ball.vel.x = -self.ball.vel.x\n                        self.score = self.score + 5\n                        collide = True\n            if collide:\n                break\n                    \n    def draw_blocks(self):\n        for i in range(B_ROWS * B_COLS):\n            if (self.blocks[i]):\n                fill(cell_colors[self.blocks[i]])\n                x_cent, y_cent = self.centers[i]\n                rect(x_cent, y_cent, 2 * dw, 2 * dh)\n                        \n    def update(self):\n        self.update_texts()\n        self.update_ball()\n        self.update_paddle()\n        self.update_blocks()    \n        self.draw_blocks()\n        \n                  "
  },
  {
    "path": "docs/examples/pyodide/breakout/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>breakout - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/breakout\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code># Inspired by Mats Lund:\n# https://github.com/CoderMats/breakout \n# Completely rewritten\n\nWIDTH =  640    # canvas width\nHEIGHT = 400    # canvas height\nP_WIDTH =  50   # paddle halfwidth\nP_HEIGHT = 8    # paddle halfheight\nB_ROWS = 5      # bricks, number of rows\nB_COLS = 10     # bricks, number of columns\nB_MARGINS = 15  # margins for bricks (bottom, side)\nBALL_DIAM = 10  # diameter of ball\nFPS = 30        # frames per second\n\n# block width, height, total space\nb_width = (WIDTH - 2 * B_MARGINS) // B_COLS\nb_height = 40  \nb_gap = 15      # gap between blocks\n\n# constants, helper variables\nbw2 = b_width // 2 \nbh2 = b_height // 2\ndw = (b_width - b_gap) // 2\ndh = (b_height - b_gap) // 2\nr = BALL_DIAM // 2    # ball diameter\ny_paddle = HEIGHT - 30\n\ncell_colors = {1:\"green\" , 2:\"blue\" , 3:\"red\" , 4:\"yellow\"}\n\ngame = None\n\ndef setup():\n    global game\n    createCanvas(WIDTH, HEIGHT, P2D)\n    rectMode(CENTER)\n    frameRate(FPS)\n    noCursor()\n    game = Game()\n\ndef new_game():\n    global game\n    new_level = game.level + int(game.blocks_gone)\n    game = Game(level=new_level)\n        \ndef draw():\n    global game\n    if game.blocks_gone:\n        new_game()    \n    if not game.game_over:\n        game.paddle.x = min(WIDTH - P_WIDTH, max(mouseX, P_WIDTH))\n    game.update()        \n\ndef keyPressed():\n    if key == \" \":\n        new_game()\n\nclass Ball(object):\n    def __init__(self,level=1):\n        # ball velocity\n        self.vel = PVector(3 + int(1.5 * level),-3 - int(1.5 * level))\n        xp = WIDTH // 2 + int(random(-P_WIDTH - 40,P_WIDTH + 40))\n        yp = y_paddle - P_HEIGHT // 2 - r - 1      \n        self.pos = PVector(xp,yp)                   # ball position\n\n    def update(self):    \n        self.pos = PVector.add(self.pos,self.vel)\n        if (self.pos.x >= WIDTH or self.pos.x <= 0):  \n            self.vel.x = -self.vel.x\n        if (self.pos.y <= 0):\n            self.vel.y = -self.vel.y\n\nclass Game(object):\n    def __init__(self,level=1):\n        self.paddle = PVector(WIDTH // 2, HEIGHT - 30)\n        self.level = level\n        self.ball = Ball()\n        self.score = 0 \n        self.blocks = [int(random(1.5,4.5)) for k in  range(B_ROWS * B_COLS)]\n        self.game_over = False\n        self.blocks_gone = False\n        # x, y positions of block centers\n        self.centers = [((i % B_COLS) * b_width + B_MARGINS + bw2,\n                         b_height * (i // B_COLS) + B_MARGINS + bh2) \n                         for i in range(B_ROWS * B_COLS)]\n\n    def update_ball(self):\n        self.ball.update()\n        px, py = self.paddle.x, self.paddle.y\n        if ((px - P_WIDTH -r) <= self.ball.pos.x\n             <= (px + P_WIDTH + r) and \n            (py - P_HEIGHT - r <= self.ball.pos.y \n             <= py - P_HEIGHT)):\n            # ball is hitting paddle rectangle, reverse y_speed\n            self.ball.vel.y = -self.ball.vel.y\n            self.score = self.score + 1\n        fill(100,100,200)\n        ellipse(self.ball.pos.x, self.ball.pos.y, BALL_DIAM, BALL_DIAM)\n\n            \n    def update_paddle(self):\n        fill(0,255,0)\n        rect(self.paddle.x, self.paddle.y, 2 * P_WIDTH, 2* P_HEIGHT)\n        if (self.ball.pos.y >= HEIGHT):\n            fill(255) \n            textSize(40)\n            textAlign(CENTER)\n            text(\"Game over\", WIDTH // 2, HEIGHT // 2 + 40)\n            self.game_over = True \n    \n    def update_texts(self):            \n        background(25)\n        noStroke()\n        # Set fill color to white\n        fill(255)\n        # Display score\n        textSize(16)\n        textAlign(RIGHT)\n        text(\"Score\", 80, HEIGHT - 6)\n        textAlign(LEFT)\n        text(self.score, 90, HEIGHT - 6)\n        # text(\"Frames: %.1f\" %frameRate(), 130, HEIGHT - 6) \n        # Display level\n        textAlign(RIGHT)\n        text(\"Level\", WIDTH - 50, HEIGHT - 6)\n        textAlign(LEFT)\n        text(self.level, WIDTH - 40, HEIGHT - 6)\n\n    def update_blocks(self):\n        self.blocks_gone = True\n        # Loop through all the potential blocks\n        collide = False\n\n        for i in range(B_ROWS * B_COLS):\n            # Check if we have that block\n            if (self.blocks[i]):\n                x_cent, y_cent = self.centers[i]\n                self.blocks_gone = False\n                    \n                if not collide:\n                    bx, by = self.ball.pos.x, self.ball.pos.y     \n                    # check bounce on top/bottom\n                    if ((x_cent - dw - r < bx < x_cent + dw + r) and \n                        ((y_cent + dh < by < y_cent + dh + r) or \n                        (y_cent -dh - r < by < y_cent - dh))):\n                        self.blocks[i] = 0\n                        self.ball.vel.y = -self.ball.vel.y\n                        self.score = self.score + 5\n                        collide = True\n                     \n                    # check bounce on left/right\n                    if ((y_cent - dh - r < by < y_cent + dh + r) and \n                        ((x_cent + dw < bx < x_cent + dw + r) or \n                        (x_cent - dw -r < bx < x_cent - dw))):\n                        self.blocks[i] = 0\n                        self.ball.vel.x = -self.ball.vel.x\n                        self.score = self.score + 5\n                        collide = True\n            if collide:\n                break\n                    \n    def draw_blocks(self):\n        for i in range(B_ROWS * B_COLS):\n            if (self.blocks[i]):\n                fill(cell_colors[self.blocks[i]])\n                x_cent, y_cent = self.centers[i]\n                rect(x_cent, y_cent, 2 * dw, 2 * dh)\n                        \n    def update(self):\n        self.update_texts()\n        self.update_ball()\n        self.update_paddle()\n        self.update_blocks()    \n        self.draw_blocks()\n        \n                  </code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/breakout/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/breakout/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\n# Inspired by Mats Lund:\n# https://github.com/CoderMats/breakout \n# Completely rewritten\n\nWIDTH =  640    # canvas width\nHEIGHT = 400    # canvas height\nP_WIDTH =  50   # paddle halfwidth\nP_HEIGHT = 8    # paddle halfheight\nB_ROWS = 5      # bricks, number of rows\nB_COLS = 10     # bricks, number of columns\nB_MARGINS = 15  # margins for bricks (bottom, side)\nBALL_DIAM = 10  # diameter of ball\nFPS = 30        # frames per second\n\n# block width, height, total space\nb_width = (WIDTH - 2 * B_MARGINS) // B_COLS\nb_height = 40  \nb_gap = 15      # gap between blocks\n\n# constants, helper variables\nbw2 = b_width // 2 \nbh2 = b_height // 2\ndw = (b_width - b_gap) // 2\ndh = (b_height - b_gap) // 2\nr = BALL_DIAM // 2    # ball diameter\ny_paddle = HEIGHT - 30\n\ncell_colors = {1:\"green\" , 2:\"blue\" , 3:\"red\" , 4:\"yellow\"}\n\ngame = None\n\ndef setup():\n    global game\n    createCanvas(WIDTH, HEIGHT, P2D)\n    rectMode(CENTER)\n    frameRate(FPS)\n    noCursor()\n    game = Game()\n\ndef new_game():\n    global game\n    new_level = game.level + int(game.blocks_gone)\n    game = Game(level=new_level)\n        \ndef draw():\n    global game\n    if game.blocks_gone:\n        new_game()    \n    if not game.game_over:\n        game.paddle.x = min(WIDTH - P_WIDTH, max(mouseX, P_WIDTH))\n    game.update()        \n\ndef keyPressed():\n    if key == \" \":\n        new_game()\n\nclass Ball(object):\n    def __init__(self,level=1):\n        # ball velocity\n        self.vel = PVector(3 + int(1.5 * level),-3 - int(1.5 * level))\n        xp = WIDTH // 2 + int(random(-P_WIDTH - 40,P_WIDTH + 40))\n        yp = y_paddle - P_HEIGHT // 2 - r - 1      \n        self.pos = PVector(xp,yp)                   # ball position\n\n    def update(self):    \n        self.pos = PVector.add(self.pos,self.vel)\n        if (self.pos.x >= WIDTH or self.pos.x <= 0):  \n            self.vel.x = -self.vel.x\n        if (self.pos.y <= 0):\n            self.vel.y = -self.vel.y\n\nclass Game(object):\n    def __init__(self,level=1):\n        self.paddle = PVector(WIDTH // 2, HEIGHT - 30)\n        self.level = level\n        self.ball = Ball()\n        self.score = 0 \n        self.blocks = [int(random(1.5,4.5)) for k in  range(B_ROWS * B_COLS)]\n        self.game_over = False\n        self.blocks_gone = False\n        # x, y positions of block centers\n        self.centers = [((i % B_COLS) * b_width + B_MARGINS + bw2,\n                         b_height * (i // B_COLS) + B_MARGINS + bh2) \n                         for i in range(B_ROWS * B_COLS)]\n\n    def update_ball(self):\n        self.ball.update()\n        px, py = self.paddle.x, self.paddle.y\n        if ((px - P_WIDTH -r) <= self.ball.pos.x\n             <= (px + P_WIDTH + r) and \n            (py - P_HEIGHT - r <= self.ball.pos.y \n             <= py - P_HEIGHT)):\n            # ball is hitting paddle rectangle, reverse y_speed\n            self.ball.vel.y = -self.ball.vel.y\n            self.score = self.score + 1\n        fill(100,100,200)\n        ellipse(self.ball.pos.x, self.ball.pos.y, BALL_DIAM, BALL_DIAM)\n\n            \n    def update_paddle(self):\n        fill(0,255,0)\n        rect(self.paddle.x, self.paddle.y, 2 * P_WIDTH, 2* P_HEIGHT)\n        if (self.ball.pos.y >= HEIGHT):\n            fill(255) \n            textSize(40)\n            textAlign(CENTER)\n            text(\"Game over\", WIDTH // 2, HEIGHT // 2 + 40)\n            self.game_over = True \n    \n    def update_texts(self):            \n        background(25)\n        noStroke()\n        # Set fill color to white\n        fill(255)\n        # Display score\n        textSize(16)\n        textAlign(RIGHT)\n        text(\"Score\", 80, HEIGHT - 6)\n        textAlign(LEFT)\n        text(self.score, 90, HEIGHT - 6)\n        # text(\"Frames: %.1f\" %frameRate(), 130, HEIGHT - 6) \n        # Display level\n        textAlign(RIGHT)\n        text(\"Level\", WIDTH - 50, HEIGHT - 6)\n        textAlign(LEFT)\n        text(self.level, WIDTH - 40, HEIGHT - 6)\n\n    def update_blocks(self):\n        self.blocks_gone = True\n        # Loop through all the potential blocks\n        collide = False\n\n        for i in range(B_ROWS * B_COLS):\n            # Check if we have that block\n            if (self.blocks[i]):\n                x_cent, y_cent = self.centers[i]\n                self.blocks_gone = False\n                    \n                if not collide:\n                    bx, by = self.ball.pos.x, self.ball.pos.y     \n                    # check bounce on top/bottom\n                    if ((x_cent - dw - r < bx < x_cent + dw + r) and \n                        ((y_cent + dh < by < y_cent + dh + r) or \n                        (y_cent -dh - r < by < y_cent - dh))):\n                        self.blocks[i] = 0\n                        self.ball.vel.y = -self.ball.vel.y\n                        self.score = self.score + 5\n                        collide = True\n                     \n                    # check bounce on left/right\n                    if ((y_cent - dh - r < by < y_cent + dh + r) and \n                        ((x_cent + dw < bx < x_cent + dw + r) or \n                        (x_cent - dw -r < bx < x_cent - dw))):\n                        self.blocks[i] = 0\n                        self.ball.vel.x = -self.ball.vel.x\n                        self.score = self.score + 5\n                        collide = True\n            if collide:\n                break\n                    \n    def draw_blocks(self):\n        for i in range(B_ROWS * B_COLS):\n            if (self.blocks[i]):\n                fill(cell_colors[self.blocks[i]])\n                x_cent, y_cent = self.centers[i]\n                rect(x_cent, y_cent, 2 * dw, 2 * dh)\n                        \n    def update(self):\n        self.update_texts()\n        self.update_ball()\n        self.update_paddle()\n        self.update_blocks()    \n        self.draw_blocks()\n        \n                  \n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/flappybird/flappybird.py",
    "content": "def colliderect(im1,im2):\n    x1,y1, w1, h1 = im1.x,im1.y,im1.img.width,im1.img.height\n    x2,y2, w2, h2 = im2.x,im2.y,im2.img.width,im2.img.height\n    return ((x1 < x2 + w2) and (y1 < y2 + h2) and\n            (x1 + w1 > x2) and (y1 + h1 > y2))\n\ndef load_image(img_file, im_dir=\"images\",ext=\"png\"):\n    img = loadImage(\"%s/%s.%s\" %(im_dir,img_file,ext))    \n    return img\n     \nclass Actor:\n    def __init__(self,img,x=0,y=0):\n        self.img = load_image(img)\n        self.x = x\n        self.y = y\n\n    def draw(self):\n        image(self.img,self.x,self.y)\n     \nWIDTH =  400\nHEIGHT = 708\n                 \n# These constants control the difficulty of the game\nGAP = 130\nGRAVITY = 0.3\nFLAP_STRENGTH = 6.5\nSPEED = 3\n\nbackground, bird, pipe_top, pipe_bottom = None, None, None, None\nbird1, bird2, birddead = None, None, None\n\ndef setup():\n    global background, bird, pipe_top, pipe_bottom, bird1, bird2, birddead\n    createCanvas(WIDTH, HEIGHT)\n    noCursor()\n    bird = Actor(\"bird1\",75,200)\n    bird.score = 0\n    bird.dead = False\n    bird.vy = 0\n    gap_y = int(random(200, HEIGHT - 200))\n    pipe_top = Actor(\"top\")\n    pipe_top.x, pipe_top.y = WIDTH, gap_y - GAP // 2 - 500\n    pipe_bottom = Actor(\"bottom\")\n    pipe_bottom.x, pipe_bottom.y = WIDTH, gap_y + GAP // 2\n    background = load_image(\"background\")\n    bird1 = load_image(\"bird1\")\n    bird2 = load_image(\"bird2\")\n    birddead = load_image(\"birddead\")\n    image(background,0, 0)\n    bird.draw()\n    pipe_top.draw()\n    pipe_bottom.draw()\n\ndef draw():\n    image(background, 0, 0)\n    update_pipes()\n    update_bird()\n    bird.draw()\n    pipe_top.draw()\n    pipe_bottom.draw()\n    fill(255)\n    textSize(24)\n    text(\"Score: %d\" %bird.score, WIDTH-140, 30)\n\ndef keyPressed():\n    if keyIsPressed:\n        if not bird.dead:\n            bird.vy = -FLAP_STRENGTH\n\ndef reset_pipes(create=False):\n    gap_y = int(random(200, HEIGHT - 200))\n    # anchor - left bottom\n    pipe_top.x, pipe_top.y = WIDTH, gap_y - GAP // 2 - pipe_top.img.height\n    pipe_bottom.x, pipe_bottom.y = WIDTH, gap_y + GAP // 2\n           \n\ndef update_pipes():\n    pipe_top.x -= SPEED\n    pipe_bottom.x -= SPEED\n    if (pipe_top.x  < 0):\n        reset_pipes()\n        if not bird.dead:\n            bird.score += 1\n\ndef update_bird():\n    uy = bird.vy\n    bird.vy += GRAVITY\n    bird.y += (uy + bird.vy) / 2\n    bird.x = 75\n\n    if not bird.dead:\n        if bird.vy < -3:\n            bird.img = bird2\n        else:\n            bird.img = bird1\n\n    if colliderect(bird,pipe_top) or colliderect(bird,pipe_bottom):\n        bird.dead = True\n        bird.img = birddead\n \n    if not (0 < bird.y < HEIGHT + 12):\n        bird.y = 200\n        bird.dead = False\n        bird.score = bird.vy = 0\n        reset_pipes()\n"
  },
  {
    "path": "docs/examples/pyodide/flappybird/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>flappybird - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/flappybird\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>def colliderect(im1,im2):\n    x1,y1, w1, h1 = im1.x,im1.y,im1.img.width,im1.img.height\n    x2,y2, w2, h2 = im2.x,im2.y,im2.img.width,im2.img.height\n    return ((x1 < x2 + w2) and (y1 < y2 + h2) and\n            (x1 + w1 > x2) and (y1 + h1 > y2))\n\ndef load_image(img_file, im_dir=\"images\",ext=\"png\"):\n    img = loadImage(\"%s/%s.%s\" %(im_dir,img_file,ext))    \n    return img\n     \nclass Actor:\n    def __init__(self,img,x=0,y=0):\n        self.img = load_image(img)\n        self.x = x\n        self.y = y\n\n    def draw(self):\n        image(self.img,self.x,self.y)\n     \nWIDTH =  400\nHEIGHT = 708\n                 \n# These constants control the difficulty of the game\nGAP = 130\nGRAVITY = 0.3\nFLAP_STRENGTH = 6.5\nSPEED = 3\n\nbackground, bird, pipe_top, pipe_bottom = None, None, None, None\nbird1, bird2, birddead = None, None, None\n\ndef setup():\n    global background, bird, pipe_top, pipe_bottom, bird1, bird2, birddead\n    createCanvas(WIDTH, HEIGHT)\n    noCursor()\n    bird = Actor(\"bird1\",75,200)\n    bird.score = 0\n    bird.dead = False\n    bird.vy = 0\n    gap_y = int(random(200, HEIGHT - 200))\n    pipe_top = Actor(\"top\")\n    pipe_top.x, pipe_top.y = WIDTH, gap_y - GAP // 2 - 500\n    pipe_bottom = Actor(\"bottom\")\n    pipe_bottom.x, pipe_bottom.y = WIDTH, gap_y + GAP // 2\n    background = load_image(\"background\")\n    bird1 = load_image(\"bird1\")\n    bird2 = load_image(\"bird2\")\n    birddead = load_image(\"birddead\")\n    image(background,0, 0)\n    bird.draw()\n    pipe_top.draw()\n    pipe_bottom.draw()\n\ndef draw():\n    image(background, 0, 0)\n    update_pipes()\n    update_bird()\n    bird.draw()\n    pipe_top.draw()\n    pipe_bottom.draw()\n    fill(255)\n    textSize(24)\n    text(\"Score: %d\" %bird.score, WIDTH-140, 30)\n\ndef keyPressed():\n    if keyIsPressed:\n        if not bird.dead:\n            bird.vy = -FLAP_STRENGTH\n\ndef reset_pipes(create=False):\n    gap_y = int(random(200, HEIGHT - 200))\n    # anchor - left bottom\n    pipe_top.x, pipe_top.y = WIDTH, gap_y - GAP // 2 - pipe_top.img.height\n    pipe_bottom.x, pipe_bottom.y = WIDTH, gap_y + GAP // 2\n           \n\ndef update_pipes():\n    pipe_top.x -= SPEED\n    pipe_bottom.x -= SPEED\n    if (pipe_top.x  < 0):\n        reset_pipes()\n        if not bird.dead:\n            bird.score += 1\n\ndef update_bird():\n    uy = bird.vy\n    bird.vy += GRAVITY\n    bird.y += (uy + bird.vy) / 2\n    bird.x = 75\n\n    if not bird.dead:\n        if bird.vy < -3:\n            bird.img = bird2\n        else:\n            bird.img = bird1\n\n    if colliderect(bird,pipe_top) or colliderect(bird,pipe_bottom):\n        bird.dead = True\n        bird.img = birddead\n \n    if not (0 < bird.y < HEIGHT + 12):\n        bird.y = 200\n        bird.dead = False\n        bird.score = bird.vy = 0\n        reset_pipes()\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/flappybird/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/flappybird/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\ndef colliderect(im1,im2):\n    x1,y1, w1, h1 = im1.x,im1.y,im1.img.width,im1.img.height\n    x2,y2, w2, h2 = im2.x,im2.y,im2.img.width,im2.img.height\n    return ((x1 < x2 + w2) and (y1 < y2 + h2) and\n            (x1 + w1 > x2) and (y1 + h1 > y2))\n\ndef load_image(img_file, im_dir=\"images\",ext=\"png\"):\n    img = loadImage(\"%s/%s.%s\" %(im_dir,img_file,ext))    \n    return img\n     \nclass Actor:\n    def __init__(self,img,x=0,y=0):\n        self.img = load_image(img)\n        self.x = x\n        self.y = y\n\n    def draw(self):\n        image(self.img,self.x,self.y)\n     \nWIDTH =  400\nHEIGHT = 708\n                 \n# These constants control the difficulty of the game\nGAP = 130\nGRAVITY = 0.3\nFLAP_STRENGTH = 6.5\nSPEED = 3\n\nbackground, bird, pipe_top, pipe_bottom = None, None, None, None\nbird1, bird2, birddead = None, None, None\n\ndef setup():\n    global background, bird, pipe_top, pipe_bottom, bird1, bird2, birddead\n    createCanvas(WIDTH, HEIGHT)\n    noCursor()\n    bird = Actor(\"bird1\",75,200)\n    bird.score = 0\n    bird.dead = False\n    bird.vy = 0\n    gap_y = int(random(200, HEIGHT - 200))\n    pipe_top = Actor(\"top\")\n    pipe_top.x, pipe_top.y = WIDTH, gap_y - GAP // 2 - 500\n    pipe_bottom = Actor(\"bottom\")\n    pipe_bottom.x, pipe_bottom.y = WIDTH, gap_y + GAP // 2\n    background = load_image(\"background\")\n    bird1 = load_image(\"bird1\")\n    bird2 = load_image(\"bird2\")\n    birddead = load_image(\"birddead\")\n    image(background,0, 0)\n    bird.draw()\n    pipe_top.draw()\n    pipe_bottom.draw()\n\ndef draw():\n    image(background, 0, 0)\n    update_pipes()\n    update_bird()\n    bird.draw()\n    pipe_top.draw()\n    pipe_bottom.draw()\n    fill(255)\n    textSize(24)\n    text(\"Score: %d\" %bird.score, WIDTH-140, 30)\n\ndef keyPressed():\n    if keyIsPressed:\n        if not bird.dead:\n            bird.vy = -FLAP_STRENGTH\n\ndef reset_pipes(create=False):\n    gap_y = int(random(200, HEIGHT - 200))\n    # anchor - left bottom\n    pipe_top.x, pipe_top.y = WIDTH, gap_y - GAP // 2 - pipe_top.img.height\n    pipe_bottom.x, pipe_bottom.y = WIDTH, gap_y + GAP // 2\n           \n\ndef update_pipes():\n    pipe_top.x -= SPEED\n    pipe_bottom.x -= SPEED\n    if (pipe_top.x  < 0):\n        reset_pipes()\n        if not bird.dead:\n            bird.score += 1\n\ndef update_bird():\n    uy = bird.vy\n    bird.vy += GRAVITY\n    bird.y += (uy + bird.vy) / 2\n    bird.x = 75\n\n    if not bird.dead:\n        if bird.vy < -3:\n            bird.img = bird2\n        else:\n            bird.img = bird1\n\n    if colliderect(bird,pipe_top) or colliderect(bird,pipe_bottom):\n        bird.dead = True\n        bird.img = birddead\n \n    if not (0 < bird.y < HEIGHT + 12):\n        bird.y = 200\n        bird.dead = False\n        bird.score = bird.vy = 0\n        reset_pipes()\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/index.html.template",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>{{ sketch_name }} - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"{{ p5_js_url }}\"></script>\n    <script src=\"{{ pyodide_js_url }}\"></script>\n    <script src=\"{{ sketch_js_url }}\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/{{ sketch_name }}\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>{{ sketch_content }}</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>\n"
  },
  {
    "path": "docs/examples/pyodide/memory/LICENCE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2015 Steve Holden\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "docs/examples/pyodide/memory/README.md",
    "content": "## “holdenwebs”\n\nThis game has been played ever since there were cards.\nI don't know how long that is.\nAs a child I (holdenweb) became aware of the importance of\nmemory by playing games.\n\nI used to watch a TV programme called \"Picture Book\" where\none of the regular features showed a scene with about ten objects\nin it, and then asked you to name all the ones you could remember.\nBecause I was in love with the presenter (I was four, and Patricia\nDriscoll must have been at least twenty-five) I wanted to do well.\n\nThis particular game is often played with cards.\nMy mother taught it calling it \"Remembrance,\" but it\nis also known as \"Pairs\" and (at least in America) as \"Pelmanism.\"\nThere are probably many other names.\nIt's pretty simple: you click on cards to reveal them until you\nmanage to pair all the cards (I didn't mention there were two of\neach card in the deck, did I?)\n\n#### Game Play\n\nThe game is played on a rectangular board, with a grid of 200 x 200\n\"cards\". When you click on a card its value is revealed. When you\nclick on a second card the same thing happens, and if the values\nmatch they are removed from the game.\n\nThe object is to match all the cards as quickly as you can.\n\n### Environment\n\nThis program started out at the June 2015 London Python Dojo, where we were\nchallenged to create programs for the \"pygame-zero\" environment.\n\n[We need to add proper links and so on so someone who just comes\nacross this can find out how to install Python and pygame-zero.]\n\nSo it should run on most things, but it was originally\nwritten on a Macintosh, though it's really targeted at\nthe Raspberry Pi. It's written in Python 3, as all new educational\nPython programs should be, otherwise where are we going to find the\neffort to convert all the Python 2? [Evangelism over].\n\n### Architecture\n\nThe progam represents the board as a list of lists called `board`.\n\nA list calles `STATUS` contains the co-ordinates of clicked cards.\n\nA list called `ignore` contains the coordinates of cards that have\nalready been matched in the game and so should be ignored.\n\nThe game as originally published establishes a list of lists\nto represent the board. The programmer can change the board\nsize by changing ROWS and COLUMNS, but the will then have to\nmake sure that they make the window the right size (we were\nlucky the default window appears to be 800 x 600).\n\nThe `draw()` function clears the screen and then represents each\ncard as\n\n * The background image (currently a picture of @holdenweb)\n   if it hasn't been matched or clicked on;\n\n * The card value image (stored in the `board` list) if it has\n   been clicked on but not yet matched, or\n\n * A checkmark if it has been matched and is therefore no longer\n   in play.\n\nThe `on_mouse_down()` function is activated when the user clicks\na mouse button. It looks at the `STATUS` list to determine\nhow many clicks the player has made this turn so far.\n\nIf the player has already clicked twice this turn it does nothing,\nas it is waiting for the turn to be over. Otherwise the card\ncoordinates are added to `STATUS`.\n\nIf this is the first click, the function then simply returns.\n\nIf this is the second click, it checks whether the two cells have the\nsame image. If they don't it should play a depressing sound (though at\nthe moment it is boringly silent). If they do then it should (but again\ndoens't) play a cheerful sound, and adds both cells to the `ignore` list\nso they cannot be selected in subsequent turns. Finally it sets a\ntwo-second timeout so the player can see what happened.\n\nThe rest of the code just supports the functions described above.\n\n### Status\n\nThe game as it stands is functionally complete but minimally playable.\nThe logic is intended to be simple and incomplete enough to it to\nbe fun for players to extend as they wish.\nSome suggestions are listed below.\n\n## Opportunities for Developer Players\n\nThe game has no sound effects, though `print` calls indicate where\nthe sounds should be emitted. This is a rewarding way to change the\ngame since at the moment it seems boring even to me.\n\nThere is no fanfare of trumpets when all cards are matched.\nThe program just continues to sit there.\nIt doesn't even terminate, which would be logical once there\nis nothing more the player can achieve.\n\nThere is no instrumentation or scoring, which would be a major\nway to add positive feedback for the player.\n\nAt the moment we select the cards on the board using `board[row][col]`.\nIt would be relatively easy to use a dict and use tuples as\nindexes, allowing the use of `board[row, col]` instead.\nA player familiar with Python might enjoy trying that as an\nalternative.\n\nWhen two cards are matched they currently turn checked immediately.\nIt would be better if the player actually saw the matching cards\nfor a while before play continued.\n\nThe graphics are unexciting, and those with an interest in such matters\nshould find it easy to replace the images with something that suits their\ntaste better. The programming world needs more people with a good sense\nof visual design. You only have to look at the current graphics to see\nthat as a graphic artist I am quite a respectable plumber.\n\nIt's easy to adjust the timings of things, but it would be even easier\nif the values were _manifest constants_ the same as ROWS and COLS, and\nthis would make the program logic easier to understand.\n\n"
  },
  {
    "path": "docs/examples/pyodide/memory/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>memory - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/memory\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>import random\n\ndef load_image(img_file, im_dir=\"images\",ext=\"png\"):\n    img = loadImage(\"%s/%s.%s\" %(im_dir,img_file,ext))    \n    return img\n     \nclass Actor:\n    def __init__(self,img,x=0,y=0):\n        self.img = load_image(img)\n        self.x = x\n        self.y = y\n\n    def draw(self):\n        image(self.img,self.x,self.y)\n\nCOLS = 4\nROWS= 3\nIMSIZE = 200\n\nSTATUS = []        # cells that have been clicked on\nignore = []        # cells that have been matches and are no longer in play\n\n# Create two of each card image, then randomize before creating the board\nSTART_IMAGES= [ \"im\"+str(i+1) for i in range(COLS*ROWS//2)]*2\nrandom.shuffle(START_IMAGES)\n\n\nboard = []                    # initialize the board\n\nsteve = None\ncheckmark = None\n\ndef setup():\n    global steve, checkmark\n    checkmark = Actor('checkmark')\n    steve = Actor('card_back')\n    steve.x, steve.y = 0, 0\n\n    for row in range(ROWS):\n        new_row=[]\n        for col in range(COLS):\n            image_name = START_IMAGES.pop()\n            temp=Actor(image_name, col*IMSIZE, row*IMSIZE)\n            temp.image_name = image_name # used to verify matches\n            new_row.append(temp)\n        board.append(new_row)\n        createCanvas(COLS * IMSIZE, ROWS * IMSIZE)\n        \ndef draw():\n    background(200)\n    for row in range(ROWS):\n        for col in range(COLS):\n            if (row, col) in ignore:    # already matched\n                checkmark.x, checkmark.y = IMSIZE * col, IMSIZE * row\n                checkmark.draw()\n            elif (row, col) in STATUS:    # clicked this move: show face\n                board[row][col].draw()\n            else:                        # regular clickable card\n                steve.x, steve.y = IMSIZE * col, IMSIZE * row\n                steve.draw()\n\ndef findTile(pos):\n    y, x = pos\n    result = x // IMSIZE , y // IMSIZE\n    return result\n\n\ndef mousePressed():\n    global STATUS, ignore\n    if len(STATUS) == 2:\n        STATUS = []\n    pos = (mouseX, mouseY)    \n    if pos in ignore: # has already been matched\n        return\n    if mouseButton == LEFT:\n        coords = findTile(pos)\n        xc, yc = coords\n        if not ((0 <= xc < ROWS) and (0 <= yc < COLS)):\n            return\n        if coords not in STATUS:\n            STATUS.append(coords) # now they are\n            if len(STATUS) == 1:  # 1st click - turn not yet over\n                pass\n            elif len(STATUS) == 2: # 2nd click - check for match\n                (x1, y1), (x2, y2) = STATUS\n                if board[x1][y1].image_name == board[x2][y2].image_name:\n                    for pos in STATUS:\n                        ignore.append(pos)\n\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/memory/memory.py",
    "content": "import random\n\ndef load_image(img_file, im_dir=\"images\",ext=\"png\"):\n    img = loadImage(\"%s/%s.%s\" %(im_dir,img_file,ext))    \n    return img\n     \nclass Actor:\n    def __init__(self,img,x=0,y=0):\n        self.img = load_image(img)\n        self.x = x\n        self.y = y\n\n    def draw(self):\n        image(self.img,self.x,self.y)\n\nCOLS = 4\nROWS= 3\nIMSIZE = 200\n\nSTATUS = []        # cells that have been clicked on\nignore = []        # cells that have been matches and are no longer in play\n\n# Create two of each card image, then randomize before creating the board\nSTART_IMAGES= [ \"im\"+str(i+1) for i in range(COLS*ROWS//2)]*2\nrandom.shuffle(START_IMAGES)\n\n\nboard = []                    # initialize the board\n\nsteve = None\ncheckmark = None\n\ndef setup():\n    global steve, checkmark\n    checkmark = Actor('checkmark')\n    steve = Actor('card_back')\n    steve.x, steve.y = 0, 0\n\n    for row in range(ROWS):\n        new_row=[]\n        for col in range(COLS):\n            image_name = START_IMAGES.pop()\n            temp=Actor(image_name, col*IMSIZE, row*IMSIZE)\n            temp.image_name = image_name # used to verify matches\n            new_row.append(temp)\n        board.append(new_row)\n        createCanvas(COLS * IMSIZE, ROWS * IMSIZE)\n        \ndef draw():\n    background(200)\n    for row in range(ROWS):\n        for col in range(COLS):\n            if (row, col) in ignore:    # already matched\n                checkmark.x, checkmark.y = IMSIZE * col, IMSIZE * row\n                checkmark.draw()\n            elif (row, col) in STATUS:    # clicked this move: show face\n                board[row][col].draw()\n            else:                        # regular clickable card\n                steve.x, steve.y = IMSIZE * col, IMSIZE * row\n                steve.draw()\n\ndef findTile(pos):\n    y, x = pos\n    result = x // IMSIZE , y // IMSIZE\n    return result\n\n\ndef mousePressed():\n    global STATUS, ignore\n    if len(STATUS) == 2:\n        STATUS = []\n    pos = (mouseX, mouseY)    \n    if pos in ignore: # has already been matched\n        return\n    if mouseButton == LEFT:\n        coords = findTile(pos)\n        xc, yc = coords\n        if not ((0 <= xc < ROWS) and (0 <= yc < COLS)):\n            return\n        if coords not in STATUS:\n            STATUS.append(coords) # now they are\n            if len(STATUS) == 1:  # 1st click - turn not yet over\n                pass\n            elif len(STATUS) == 2: # 2nd click - check for match\n                (x1, y1), (x2, y2) = STATUS\n                if board[x1][y1].image_name == board[x2][y2].image_name:\n                    for pos in STATUS:\n                        ignore.append(pos)\n\n"
  },
  {
    "path": "docs/examples/pyodide/memory/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/memory/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\nimport random\n\ndef load_image(img_file, im_dir=\"images\",ext=\"png\"):\n    img = loadImage(\"%s/%s.%s\" %(im_dir,img_file,ext))    \n    return img\n     \nclass Actor:\n    def __init__(self,img,x=0,y=0):\n        self.img = load_image(img)\n        self.x = x\n        self.y = y\n\n    def draw(self):\n        image(self.img,self.x,self.y)\n\nCOLS = 4\nROWS= 3\nIMSIZE = 200\n\nSTATUS = []        # cells that have been clicked on\nignore = []        # cells that have been matches and are no longer in play\n\n# Create two of each card image, then randomize before creating the board\nSTART_IMAGES= [ \"im\"+str(i+1) for i in range(COLS*ROWS//2)]*2\nrandom.shuffle(START_IMAGES)\n\n\nboard = []                    # initialize the board\n\nsteve = None\ncheckmark = None\n\ndef setup():\n    global steve, checkmark\n    checkmark = Actor('checkmark')\n    steve = Actor('card_back')\n    steve.x, steve.y = 0, 0\n\n    for row in range(ROWS):\n        new_row=[]\n        for col in range(COLS):\n            image_name = START_IMAGES.pop()\n            temp=Actor(image_name, col*IMSIZE, row*IMSIZE)\n            temp.image_name = image_name # used to verify matches\n            new_row.append(temp)\n        board.append(new_row)\n        createCanvas(COLS * IMSIZE, ROWS * IMSIZE)\n        \ndef draw():\n    background(200)\n    for row in range(ROWS):\n        for col in range(COLS):\n            if (row, col) in ignore:    # already matched\n                checkmark.x, checkmark.y = IMSIZE * col, IMSIZE * row\n                checkmark.draw()\n            elif (row, col) in STATUS:    # clicked this move: show face\n                board[row][col].draw()\n            else:                        # regular clickable card\n                steve.x, steve.y = IMSIZE * col, IMSIZE * row\n                steve.draw()\n\ndef findTile(pos):\n    y, x = pos\n    result = x // IMSIZE , y // IMSIZE\n    return result\n\n\ndef mousePressed():\n    global STATUS, ignore\n    if len(STATUS) == 2:\n        STATUS = []\n    pos = (mouseX, mouseY)    \n    if pos in ignore: # has already been matched\n        return\n    if mouseButton == LEFT:\n        coords = findTile(pos)\n        xc, yc = coords\n        if not ((0 <= xc < ROWS) and (0 <= yc < COLS)):\n            return\n        if coords not in STATUS:\n            STATUS.append(coords) # now they are\n            if len(STATUS) == 1:  # 1st click - turn not yet over\n                pass\n            elif len(STATUS) == 2: # 2nd click - check for match\n                (x1, y1), (x2, y2) = STATUS\n                if board[x1][y1].image_name == board[x2][y2].image_name:\n                    for pos in STATUS:\n                        ignore.append(pos)\n\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/mines/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>mines - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/mines\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>from random import randint\n\ndef load_image(img_file, im_dir=\"images\",ext=\"png\"):\n    img = loadImage(\"%s/%s.%s\" %(im_dir,img_file,ext))\n    return img\n\nclass Actor:\n    def __init__(self,img,x=0,y=0):\n        self.img = load_image(img)\n        self.x = x\n        self.y = y\n\n    def draw(self):\n        image(self.img,self.x,self.y)\n\nNCOLS  = 10\nNROWS  = 10\nNMINES = 10\nCELLSIZE = 60\nWIDTH =  NCOLS * CELLSIZE + CELLSIZE // 2 + 1\nHEIGHT = NROWS * CELLSIZE + CELLSIZE // 2 + 1\n\ntop_grid = None\nbase_grid = None\ncover = None\nflag = None\ntiles = None\n\ndef setup():\n    global top_grid, base_grid, cover, flag, tiles\n    top_grid  = setup_empty_grid(NCOLS, NROWS, 1)\n    base_grid = setup_empty_grid(NCOLS, NROWS, 0)\n    populate_grid(NMINES, NCOLS, NROWS)\n    count_mines()\n    createCanvas(WIDTH, HEIGHT)\n    cover = Actor('cover')\n    flag  = Actor('flag')\n    tiles = {0: Actor('blank'), 1: Actor('one'), 2: Actor('two'),\n             3: Actor('three'), 4: Actor('four'),5: Actor('five'),\n             6: Actor('six'), 7: Actor('seven'), 8: Actor('eight'),\n             'M': Actor('mine')}\n\ndef draw():\n    ypos = -CELLSIZE\n    for row in range(NROWS):\n        ypos += CELLSIZE\n        xpos = -CELLSIZE\n        for col in range(NCOLS):\n            xpos += CELLSIZE\n            gridpos = base_grid[row][col]\n            tiles[gridpos].x,tiles[gridpos].y = xpos, ypos\n            tiles[gridpos].draw()\n    ypos = -CELLSIZE\n    for row in range(NROWS):\n        ypos += CELLSIZE\n        xpos = -CELLSIZE\n        for col in range(NCOLS):\n            xpos += CELLSIZE\n            if top_grid[row][col] == 1:\n                cover.x, cover.y = xpos, ypos\n                cover.draw()\n            elif top_grid[row][col] == 'F':\n                flag.x, flag.y = xpos, ypos\n                flag.draw()\n\ndef mousePressed(*args, **kwargs):\n    col, row = mouseX // CELLSIZE, mouseY // CELLSIZE\n    if not ((0 <= col < NCOLS) and (0 <= row < NROWS)):\n        return\n    if mouseButton == LEFT:\n        if top_grid[row][col] != 'F':\n            top_grid[row][col] = 0\n            if base_grid[row][col] == 0:\n                edge_detection(col, row)\n    elif mouseButton == CENTER:\n        if top_grid[row][col] == 1:\n            top_grid[row][col] = 'F'\n        elif top_grid[row][col] == 'F':\n            top_grid[row][col] = 1\n\ndef setup_empty_grid(NCOLS, NROWS, filler):\n    grid = [[filler] * NCOLS for rows in range(NROWS)]\n    return grid\n\ndef populate_grid(NMINES, NCOLS, NROWS):\n    global base_grid\n    for mine in range(NMINES):\n        col, row = randint(0, NCOLS - 1), randint(0,NROWS - 1)\n        while base_grid[row][col] == 'M':\n            col, row = randint(0, NCOLS - 1), randint(0,NROWS - 1)\n        base_grid[row][col] = 'M'\n\ndef count_mines():\n    global base_grid\n    for r in range(NROWS):\n        for c in range(NCOLS):\n            if base_grid[r][c] != 'M':\n                neighbors = [(c - 1, r - 1), (c, r - 1), (c + 1, r - 1),\n                             (c - 1, r),                     (c + 1, r),\n                             (c - 1, r + 1), (c, r + 1), (c + 1, r + 1)]\n                for nx, ny in neighbors:\n                    try:\n                        if ny >= 0 and nx >= 0 and base_grid[ny][nx] == 'M':\n                            base_grid[r][c] += 1\n                    except IndexError:\n                        pass\n\n\ndef edge_detection(col, row):\n    zeros = [(col, row)]\n    for c, r in zeros:\n        top_grid[r][c] = 0\n        neighbors = [(c - 1, r - 1), (c, r - 1), (c + 1, r - 1),\n                     (c - 1, r    ),             (c + 1, r    ),\n                     (c - 1, r + 1), (c, r + 1), (c + 1, r + 1)]\n        for nx, ny in neighbors:\n            try:\n                if ny >= 0 and nx >= 0:\n                    if base_grid[ny][nx] == 0 and top_grid[ny][nx] == 1:\n                        if top_grid[ny][nx] != 'F':\n                            top_grid[ny][nx] = 0\n                        if (nx, ny) not in zeros:\n                            zeros.append((nx, ny))\n                    else:\n                        if top_grid[ny][nx] != 'F':\n                            top_grid[ny][nx] = 0\n\n            except:\n                pass\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/mines/mines.py",
    "content": "from random import randint\n\ndef load_image(img_file, im_dir=\"images\",ext=\"png\"):\n    img = loadImage(\"%s/%s.%s\" %(im_dir,img_file,ext))\n    return img\n\nclass Actor:\n    def __init__(self,img,x=0,y=0):\n        self.img = load_image(img)\n        self.x = x\n        self.y = y\n\n    def draw(self):\n        image(self.img,self.x,self.y)\n\nNCOLS  = 10\nNROWS  = 10\nNMINES = 10\nCELLSIZE = 60\nWIDTH =  NCOLS * CELLSIZE + CELLSIZE // 2 + 1\nHEIGHT = NROWS * CELLSIZE + CELLSIZE // 2 + 1\n\ntop_grid = None\nbase_grid = None\ncover = None\nflag = None\ntiles = None\n\ndef setup():\n    global top_grid, base_grid, cover, flag, tiles\n    top_grid  = setup_empty_grid(NCOLS, NROWS, 1)\n    base_grid = setup_empty_grid(NCOLS, NROWS, 0)\n    populate_grid(NMINES, NCOLS, NROWS)\n    count_mines()\n    createCanvas(WIDTH, HEIGHT)\n    cover = Actor('cover')\n    flag  = Actor('flag')\n    tiles = {0: Actor('blank'), 1: Actor('one'), 2: Actor('two'),\n             3: Actor('three'), 4: Actor('four'),5: Actor('five'),\n             6: Actor('six'), 7: Actor('seven'), 8: Actor('eight'),\n             'M': Actor('mine')}\n\ndef draw():\n    ypos = -CELLSIZE\n    for row in range(NROWS):\n        ypos += CELLSIZE\n        xpos = -CELLSIZE\n        for col in range(NCOLS):\n            xpos += CELLSIZE\n            gridpos = base_grid[row][col]\n            tiles[gridpos].x,tiles[gridpos].y = xpos, ypos\n            tiles[gridpos].draw()\n    ypos = -CELLSIZE\n    for row in range(NROWS):\n        ypos += CELLSIZE\n        xpos = -CELLSIZE\n        for col in range(NCOLS):\n            xpos += CELLSIZE\n            if top_grid[row][col] == 1:\n                cover.x, cover.y = xpos, ypos\n                cover.draw()\n            elif top_grid[row][col] == 'F':\n                flag.x, flag.y = xpos, ypos\n                flag.draw()\n\ndef mousePressed(*args, **kwargs):\n    col, row = mouseX // CELLSIZE, mouseY // CELLSIZE\n    if not ((0 <= col < NCOLS) and (0 <= row < NROWS)):\n        return\n    if mouseButton == LEFT:\n        if top_grid[row][col] != 'F':\n            top_grid[row][col] = 0\n            if base_grid[row][col] == 0:\n                edge_detection(col, row)\n    elif mouseButton == CENTER:\n        if top_grid[row][col] == 1:\n            top_grid[row][col] = 'F'\n        elif top_grid[row][col] == 'F':\n            top_grid[row][col] = 1\n\ndef setup_empty_grid(NCOLS, NROWS, filler):\n    grid = [[filler] * NCOLS for rows in range(NROWS)]\n    return grid\n\ndef populate_grid(NMINES, NCOLS, NROWS):\n    global base_grid\n    for mine in range(NMINES):\n        col, row = randint(0, NCOLS - 1), randint(0,NROWS - 1)\n        while base_grid[row][col] == 'M':\n            col, row = randint(0, NCOLS - 1), randint(0,NROWS - 1)\n        base_grid[row][col] = 'M'\n\ndef count_mines():\n    global base_grid\n    for r in range(NROWS):\n        for c in range(NCOLS):\n            if base_grid[r][c] != 'M':\n                neighbors = [(c - 1, r - 1), (c, r - 1), (c + 1, r - 1),\n                             (c - 1, r),                     (c + 1, r),\n                             (c - 1, r + 1), (c, r + 1), (c + 1, r + 1)]\n                for nx, ny in neighbors:\n                    try:\n                        if ny >= 0 and nx >= 0 and base_grid[ny][nx] == 'M':\n                            base_grid[r][c] += 1\n                    except IndexError:\n                        pass\n\n\ndef edge_detection(col, row):\n    zeros = [(col, row)]\n    for c, r in zeros:\n        top_grid[r][c] = 0\n        neighbors = [(c - 1, r - 1), (c, r - 1), (c + 1, r - 1),\n                     (c - 1, r    ),             (c + 1, r    ),\n                     (c - 1, r + 1), (c, r + 1), (c + 1, r + 1)]\n        for nx, ny in neighbors:\n            try:\n                if ny >= 0 and nx >= 0:\n                    if base_grid[ny][nx] == 0 and top_grid[ny][nx] == 1:\n                        if top_grid[ny][nx] != 'F':\n                            top_grid[ny][nx] = 0\n                        if (nx, ny) not in zeros:\n                            zeros.append((nx, ny))\n                    else:\n                        if top_grid[ny][nx] != 'F':\n                            top_grid[ny][nx] = 0\n\n            except:\n                pass\n"
  },
  {
    "path": "docs/examples/pyodide/mines/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/mines/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\nfrom random import randint\n\ndef load_image(img_file, im_dir=\"images\",ext=\"png\"):\n    img = loadImage(\"%s/%s.%s\" %(im_dir,img_file,ext))\n    return img\n\nclass Actor:\n    def __init__(self,img,x=0,y=0):\n        self.img = load_image(img)\n        self.x = x\n        self.y = y\n\n    def draw(self):\n        image(self.img,self.x,self.y)\n\nNCOLS  = 10\nNROWS  = 10\nNMINES = 10\nCELLSIZE = 60\nWIDTH =  NCOLS * CELLSIZE + CELLSIZE // 2 + 1\nHEIGHT = NROWS * CELLSIZE + CELLSIZE // 2 + 1\n\ntop_grid = None\nbase_grid = None\ncover = None\nflag = None\ntiles = None\n\ndef setup():\n    global top_grid, base_grid, cover, flag, tiles\n    top_grid  = setup_empty_grid(NCOLS, NROWS, 1)\n    base_grid = setup_empty_grid(NCOLS, NROWS, 0)\n    populate_grid(NMINES, NCOLS, NROWS)\n    count_mines()\n    createCanvas(WIDTH, HEIGHT)\n    cover = Actor('cover')\n    flag  = Actor('flag')\n    tiles = {0: Actor('blank'), 1: Actor('one'), 2: Actor('two'),\n             3: Actor('three'), 4: Actor('four'),5: Actor('five'),\n             6: Actor('six'), 7: Actor('seven'), 8: Actor('eight'),\n             'M': Actor('mine')}\n\ndef draw():\n    ypos = -CELLSIZE\n    for row in range(NROWS):\n        ypos += CELLSIZE\n        xpos = -CELLSIZE\n        for col in range(NCOLS):\n            xpos += CELLSIZE\n            gridpos = base_grid[row][col]\n            tiles[gridpos].x,tiles[gridpos].y = xpos, ypos\n            tiles[gridpos].draw()\n    ypos = -CELLSIZE\n    for row in range(NROWS):\n        ypos += CELLSIZE\n        xpos = -CELLSIZE\n        for col in range(NCOLS):\n            xpos += CELLSIZE\n            if top_grid[row][col] == 1:\n                cover.x, cover.y = xpos, ypos\n                cover.draw()\n            elif top_grid[row][col] == 'F':\n                flag.x, flag.y = xpos, ypos\n                flag.draw()\n\ndef mousePressed(*args, **kwargs):\n    col, row = mouseX // CELLSIZE, mouseY // CELLSIZE\n    if not ((0 <= col < NCOLS) and (0 <= row < NROWS)):\n        return\n    if mouseButton == LEFT:\n        if top_grid[row][col] != 'F':\n            top_grid[row][col] = 0\n            if base_grid[row][col] == 0:\n                edge_detection(col, row)\n    elif mouseButton == CENTER:\n        if top_grid[row][col] == 1:\n            top_grid[row][col] = 'F'\n        elif top_grid[row][col] == 'F':\n            top_grid[row][col] = 1\n\ndef setup_empty_grid(NCOLS, NROWS, filler):\n    grid = [[filler] * NCOLS for rows in range(NROWS)]\n    return grid\n\ndef populate_grid(NMINES, NCOLS, NROWS):\n    global base_grid\n    for mine in range(NMINES):\n        col, row = randint(0, NCOLS - 1), randint(0,NROWS - 1)\n        while base_grid[row][col] == 'M':\n            col, row = randint(0, NCOLS - 1), randint(0,NROWS - 1)\n        base_grid[row][col] = 'M'\n\ndef count_mines():\n    global base_grid\n    for r in range(NROWS):\n        for c in range(NCOLS):\n            if base_grid[r][c] != 'M':\n                neighbors = [(c - 1, r - 1), (c, r - 1), (c + 1, r - 1),\n                             (c - 1, r),                     (c + 1, r),\n                             (c - 1, r + 1), (c, r + 1), (c + 1, r + 1)]\n                for nx, ny in neighbors:\n                    try:\n                        if ny >= 0 and nx >= 0 and base_grid[ny][nx] == 'M':\n                            base_grid[r][c] += 1\n                    except IndexError:\n                        pass\n\n\ndef edge_detection(col, row):\n    zeros = [(col, row)]\n    for c, r in zeros:\n        top_grid[r][c] = 0\n        neighbors = [(c - 1, r - 1), (c, r - 1), (c + 1, r - 1),\n                     (c - 1, r    ),             (c + 1, r    ),\n                     (c - 1, r + 1), (c, r + 1), (c + 1, r + 1)]\n        for nx, ny in neighbors:\n            try:\n                if ny >= 0 and nx >= 0:\n                    if base_grid[ny][nx] == 0 and top_grid[ny][nx] == 1:\n                        if top_grid[ny][nx] != 'F':\n                            top_grid[ny][nx] = 0\n                        if (nx, ny) not in zeros:\n                            zeros.append((nx, ny))\n                    else:\n                        if top_grid[ny][nx] != 'F':\n                            top_grid[ny][nx] = 0\n\n            except:\n                pass\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/pong/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>pong - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/pong\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>RAD =    10\nP_RAD =  30\nWIDTH =  600\nHEIGHT = 300\n\nclass Ball:\n    def __init__self(x, y, sx, sy): \n        self.x = x\n        self.y = y\n        self.sx = sx\n        self.sy = sy\n        \n    def draw(self):\n        circle(self.x, self.y, 2 * RAD)\n        \n    def reset(self):\n        self.x = WIDTH // 2\n        self.y = HEIGHT // 2\n        self.sx = 4\n        self.sy = 0\n        self.play = True\n\nball = Ball()\n\nclass Player:\n    def __init__(self, x, y):\n        self.x = x\n        self.y = y \n\n    def reset(self):\n        self.y = HEIGHT // 2\n\n    def set_pos(self,y):\n        self.y = min(HEIGHT, max(y, 0))\n\n    def draw(self):\n        strokeWeight(2)\n        line(self.x, self.y - P_RAD, self.x, self.y + P_RAD)\n\n\nplayer1 = Player(10, HEIGHT // 2)\nplayer2 = Player(WIDTH - 10, HEIGHT // 2)\n\ngame = None\n\ndef setup():\n    global game\n    createCanvas(WIDTH, HEIGHT)\n    stroke(255)\n    fill(255)\n    game = Game()\n    game.reset()\n    \nclass Game:\n    def __init__(self):\n        self.over = False\n  \n    def reset(self):\n        self.over = False\n        ball.reset()\n        player1.reset()\n        player2.reset()\n\n    def tick(self):\n        if not self.over:\n        #  y: keep ball inside of vertical bounds\n            if (ball.y < 10) or (ball.y > height - 10): \n                ball.sy *= -1\n\n            ball.y += ball.sy\n\n            # x: player 2\n            if (ball.x + RAD >= player2.x):\n                ball.sx *= -1\n\n            # x: player 1\n            if (ball.x - RAD <= player1.x):\n                if ((ball.y > player1.y - P_RAD) and\n                    (ball.y < player1.y + P_RAD)):\n                    # player 1 hits the ball\n\n                    # bounce back\n                    ball.sx *= -1\n                    # get ball-paddle angle\n                    angle = ball.y - player1.y\n                    ball.sy = angle / 9\n                    ball.sx = map(abs(angle), 0, P_RAD, 3, 9)\n\n                else:\n                    # player misses the ball\n                    self.over = True\n              \n        if (ball.x < -100):\n                game.reset()    \n        ball.x += ball.sx\n        ball.draw()\n\n\ndef draw(): \n    if not game.over:\n        background(0)\n    else:\n        background(255,0,0)\n\n    player1.set_pos(mouseY)\n    player1.draw()\n\n    player2.set_pos(ball.y)\n    player2.draw()\n\n    game.tick()\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/pong/pong.py",
    "content": "RAD =    10\nP_RAD =  30\nWIDTH =  600\nHEIGHT = 300\n\nclass Ball:\n    def __init__self(x, y, sx, sy): \n        self.x = x\n        self.y = y\n        self.sx = sx\n        self.sy = sy\n        \n    def draw(self):\n        circle(self.x, self.y, 2 * RAD)\n        \n    def reset(self):\n        self.x = WIDTH // 2\n        self.y = HEIGHT // 2\n        self.sx = 4\n        self.sy = 0\n        self.play = True\n\nball = Ball()\n\nclass Player:\n    def __init__(self, x, y):\n        self.x = x\n        self.y = y \n\n    def reset(self):\n        self.y = HEIGHT // 2\n\n    def set_pos(self,y):\n        self.y = min(HEIGHT, max(y, 0))\n\n    def draw(self):\n        strokeWeight(2)\n        line(self.x, self.y - P_RAD, self.x, self.y + P_RAD)\n\n\nplayer1 = Player(10, HEIGHT // 2)\nplayer2 = Player(WIDTH - 10, HEIGHT // 2)\n\ngame = None\n\ndef setup():\n    global game\n    createCanvas(WIDTH, HEIGHT)\n    stroke(255)\n    fill(255)\n    game = Game()\n    game.reset()\n    \nclass Game:\n    def __init__(self):\n        self.over = False\n  \n    def reset(self):\n        self.over = False\n        ball.reset()\n        player1.reset()\n        player2.reset()\n\n    def tick(self):\n        if not self.over:\n        #  y: keep ball inside of vertical bounds\n            if (ball.y < 10) or (ball.y > height - 10): \n                ball.sy *= -1\n\n            ball.y += ball.sy\n\n            # x: player 2\n            if (ball.x + RAD >= player2.x):\n                ball.sx *= -1\n\n            # x: player 1\n            if (ball.x - RAD <= player1.x):\n                if ((ball.y > player1.y - P_RAD) and\n                    (ball.y < player1.y + P_RAD)):\n                    # player 1 hits the ball\n\n                    # bounce back\n                    ball.sx *= -1\n                    # get ball-paddle angle\n                    angle = ball.y - player1.y\n                    ball.sy = angle / 9\n                    ball.sx = map(abs(angle), 0, P_RAD, 3, 9)\n\n                else:\n                    # player misses the ball\n                    self.over = True\n              \n        if (ball.x < -100):\n                game.reset()    \n        ball.x += ball.sx\n        ball.draw()\n\n\ndef draw(): \n    if not game.over:\n        background(0)\n    else:\n        background(255,0,0)\n\n    player1.set_pos(mouseY)\n    player1.draw()\n\n    player2.set_pos(ball.y)\n    player2.draw()\n\n    game.tick()\n"
  },
  {
    "path": "docs/examples/pyodide/pong/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/pong/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\nRAD =    10\nP_RAD =  30\nWIDTH =  600\nHEIGHT = 300\n\nclass Ball:\n    def __init__self(x, y, sx, sy): \n        self.x = x\n        self.y = y\n        self.sx = sx\n        self.sy = sy\n        \n    def draw(self):\n        circle(self.x, self.y, 2 * RAD)\n        \n    def reset(self):\n        self.x = WIDTH // 2\n        self.y = HEIGHT // 2\n        self.sx = 4\n        self.sy = 0\n        self.play = True\n\nball = Ball()\n\nclass Player:\n    def __init__(self, x, y):\n        self.x = x\n        self.y = y \n\n    def reset(self):\n        self.y = HEIGHT // 2\n\n    def set_pos(self,y):\n        self.y = min(HEIGHT, max(y, 0))\n\n    def draw(self):\n        strokeWeight(2)\n        line(self.x, self.y - P_RAD, self.x, self.y + P_RAD)\n\n\nplayer1 = Player(10, HEIGHT // 2)\nplayer2 = Player(WIDTH - 10, HEIGHT // 2)\n\ngame = None\n\ndef setup():\n    global game\n    createCanvas(WIDTH, HEIGHT)\n    stroke(255)\n    fill(255)\n    game = Game()\n    game.reset()\n    \nclass Game:\n    def __init__(self):\n        self.over = False\n  \n    def reset(self):\n        self.over = False\n        ball.reset()\n        player1.reset()\n        player2.reset()\n\n    def tick(self):\n        if not self.over:\n        #  y: keep ball inside of vertical bounds\n            if (ball.y < 10) or (ball.y > height - 10): \n                ball.sy *= -1\n\n            ball.y += ball.sy\n\n            # x: player 2\n            if (ball.x + RAD >= player2.x):\n                ball.sx *= -1\n\n            # x: player 1\n            if (ball.x - RAD <= player1.x):\n                if ((ball.y > player1.y - P_RAD) and\n                    (ball.y < player1.y + P_RAD)):\n                    # player 1 hits the ball\n\n                    # bounce back\n                    ball.sx *= -1\n                    # get ball-paddle angle\n                    angle = ball.y - player1.y\n                    ball.sy = angle / 9\n                    ball.sx = map(abs(angle), 0, P_RAD, 3, 9)\n\n                else:\n                    # player misses the ball\n                    self.over = True\n              \n        if (ball.x < -100):\n                game.reset()    \n        ball.x += ball.sx\n        ball.draw()\n\n\ndef draw(): \n    if not game.over:\n        background(0)\n    else:\n        background(255,0,0)\n\n    player1.set_pos(mouseY)\n    player1.draw()\n\n    player2.set_pos(ball.y)\n    player2.draw()\n\n    game.tick()\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/samegame/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>samegame - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/samegame\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>NROWS =  10      # numer of brick rows \nNCOLS =  20      # number of brick columns\nNCOLORS = 4      # 1 .. 5\nB_WIDTH = 50     # brick width\nFPS = 30         # frames per second\nC_WIDTH =  NCOLS * B_WIDTH # canvas width\nC_HEIGHT = NROWS * B_WIDTH # canvas height \n\ngame = None\n\ndef setup():\n    global game\n    createCanvas(C_WIDTH, C_HEIGHT, P2D)\n    rectMode(CENTER)\n    frameRate(FPS)\n    game = SameGame()\n    \ndef draw(): \n    global game\n    game.plotBoard()\n                \ndef inCell(x,y):\n    return (int(x) // (B_WIDTH + 1), int(y) // (B_WIDTH + 1))\n\ndef inCanvas(x,y):\n    return  (0 <=  x <= C_WIDTH) and (0 <= y <= C_HEIGHT)\n\ndef mousePressed():\n    global game\n    x, y = mouseX, mouseY\n    i, j = inCell(x,y)\n    if (0 <= i < game.nc) and (0 <= j < game.nr):\n        if not game.alone(i,j):\n            game.floodfill(i,j)\n            game.fall_all()\n\ndef keyPressed():\n    global game\n    if key == \"n\":\n        game = SameGame()\n    elif key in (\"3\",\"4\",\"5\"):\n        colors = int(key)    \n        game = SameGame(ncolors=colors)\n         \ncell_colors = {0:\"black\", 1:\"green\", 2:\"blue\", \n               3:\"red\", 4:\"yellow\", 5:\"magenta\"}\n\ndef cells(colors_only=False,ncolors=NCOLORS):\n    ycent = B_WIDTH // 2\n    pos =    [[0] * NROWS for col in range(NCOLS)]\n    colors = [[0] * NROWS for col in range(NCOLS)]  \n    # store cell centers coordinates and colors, columnwise\n    for row in range(NCOLS):\n        xcent = -B_WIDTH // 2\n        for col in range(NROWS):   \n            xcent += B_WIDTH\n            pos[row][col] = (ycent,xcent)\n            colors[row][col] = int(random(1, ncolors + 1))\n        ycent += B_WIDTH\n    if not colors_only:    \n        return pos, colors\n    return colors\n\nclass SameGame:\n    def __init__(self,nr=NROWS, nc=NCOLS, ncolors=NCOLORS, \n                 colors=None, pos=None, score=0, score_diff=0, \n                 empty_cols = None, to_fill=None,score_corr=0):\n        self.nr = nr\n        self.nc = nc\n        self.ncolors = ncolors\n        self.to_fill = set()\n        self.score = score\n        self.score_diff = score_diff\n        self.score_corr = score_corr\n        self.empty_cols = []\n        self.pos, self.colors = cells(ncolors=ncolors) \n        \n    def plotBoard(self):\n        for row in range(NROWS):\n            for col in range(NCOLS):\n                xc, yc = self.pos[col][row]   \n                fill(cell_colors[self.colors[col][row]])\n                rect(xc,yc,B_WIDTH,B_WIDTH)\n                \n        fill(255)\n        textSize(20)\n        textAlign(LEFT)\n        text(\"Score: %d\" %self.score, C_WIDTH-140, C_HEIGHT - 6)\n\n        if self.endGame():\n            if not self.score_corr: \n                self.score_correction_by_colors()\n                self.score_corr = True\n            self.compactLeft()\n            textSize(36)\n            textAlign(CENTER)\n            text(\"End of Game\",C_WIDTH // 2, C_HEIGHT // 2 - 10)\n\n    def neighbours(self,i,j):\n        possible = [(i-1,j),(i+1,j),(i,j-1),(i,j+1)]\n        \n        return [p for p in possible if (0 <= p[0] < self.nc) \n                                   and (0 <= p[1] < self.nr)]\n    \n    def alone(self,i,j):\n        # i -column, j - row\n        color = self.colors[i][j]\n        res = True\n        if color == 0:\n            return res\n        for k,l in self.neighbours(i,j):\n            if self.colors[k][l] == color:\n                res = False\n                break\n        return res        \n    \n    def floodfill(self, x, y):\n        value = self.colors[x][y]\n        edge = [(x,y)]    \n        self.to_fill = set([x])\n        self.colors[x][y] = 0\n        self.score_diff = 1\n        while edge:\n            newedge = []\n            for (x,y) in edge:\n                for s,t in self.neighbours(x,y):\n                    if self.colors[s][t] == value:\n                        self.to_fill.add(s)\n                        self.colors[s][t] = 0\n                        self.score_diff += 1\n                        newedge.append((s, t))\n            edge = newedge\n\n    def fall_column(self,col):\n        if sum(self.colors[col]) == 0:\n            self.empty_cols.append(col)\n            return\n        colored = []\n        for row in range(self.nr):\n            cc = self.colors[col][row]\n            if cc:\n                colored.append(cc)\n        lc = len(colored)\n        new_col = [0] *(self.nr - lc) + colored\n        self.colors[col] = new_col         \n                        \n    def compactLeft(self):\n        if self.empty_cols == []:\n            return \n        for c in sorted(self.empty_cols,reverse=True): \n            for cindex in range(c,self.nc-1):\n                    self.colors[cindex] = self.colors[cindex + 1]\n            self.colors[self.nc-1] = [0] * self.nr\n        self.empty_cols = []\n          \n    def fall_all(self):\n        if self.to_fill == []:\n            self.score_diff = 0\n            return\n        for col in self.to_fill:\n            self.fall_column(col)\n        self.compactLeft()\n        nscore = self.score_diff - 1    \n        self.score += (nscore * nscore)\n        self.score_diff = 0\n            \n    def endGame(self):\n        return sum([self.alone(i,j) for i in range(self.nc) \n                    for j in range(self.nr)]) == self.nr * self.nc\n\n    def score_correction(self):\n    \n        rem = sum(bool(self.colors[c][r]) for c in range(self.nc) \n                                          for r in range(self.nr)) \n        if rem == 0:\n            self.score += 1000\n        else:\n            self.score -= (rem-1)*(rem-1)\n            self.score = max(0,self.score)\n\n    def score_correction_by_colors(self):\n        crange = range(1,self.ncolors + 1) \n        rest = {c:0 for c in crange}\n        for col in range(self.nc):\n            for row in range(self.nr):\n                color = self.colors[col][row]\n                if color: \n                    rest[color] += 1\n                \n        rem = 0\n        for c in crange:\n            ncells = rest[c]\n            if ncells:\n                rem += (ncells - 1) * (ncells - 1) \n        if sum(rest.values()) == 0:\n            self.score += 1000\n        else:\n            self.score -= rem\n            \n            </code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/samegame/samegame.py",
    "content": "NROWS =  10      # numer of brick rows \nNCOLS =  20      # number of brick columns\nNCOLORS = 4      # 1 .. 5\nB_WIDTH = 50     # brick width\nFPS = 30         # frames per second\nC_WIDTH =  NCOLS * B_WIDTH # canvas width\nC_HEIGHT = NROWS * B_WIDTH # canvas height \n\ngame = None\n\ndef setup():\n    global game\n    createCanvas(C_WIDTH, C_HEIGHT, P2D)\n    rectMode(CENTER)\n    frameRate(FPS)\n    game = SameGame()\n    \ndef draw(): \n    global game\n    game.plotBoard()\n                \ndef inCell(x,y):\n    return (int(x) // (B_WIDTH + 1), int(y) // (B_WIDTH + 1))\n\ndef inCanvas(x,y):\n    return  (0 <=  x <= C_WIDTH) and (0 <= y <= C_HEIGHT)\n\ndef mousePressed():\n    global game\n    x, y = mouseX, mouseY\n    i, j = inCell(x,y)\n    if (0 <= i < game.nc) and (0 <= j < game.nr):\n        if not game.alone(i,j):\n            game.floodfill(i,j)\n            game.fall_all()\n\ndef keyPressed():\n    global game\n    if key == \"n\":\n        game = SameGame()\n    elif key in (\"3\",\"4\",\"5\"):\n        colors = int(key)    \n        game = SameGame(ncolors=colors)\n         \ncell_colors = {0:\"black\", 1:\"green\", 2:\"blue\", \n               3:\"red\", 4:\"yellow\", 5:\"magenta\"}\n\ndef cells(colors_only=False,ncolors=NCOLORS):\n    ycent = B_WIDTH // 2\n    pos =    [[0] * NROWS for col in range(NCOLS)]\n    colors = [[0] * NROWS for col in range(NCOLS)]  \n    # store cell centers coordinates and colors, columnwise\n    for row in range(NCOLS):\n        xcent = -B_WIDTH // 2\n        for col in range(NROWS):   \n            xcent += B_WIDTH\n            pos[row][col] = (ycent,xcent)\n            colors[row][col] = int(random(1, ncolors + 1))\n        ycent += B_WIDTH\n    if not colors_only:    \n        return pos, colors\n    return colors\n\nclass SameGame:\n    def __init__(self,nr=NROWS, nc=NCOLS, ncolors=NCOLORS, \n                 colors=None, pos=None, score=0, score_diff=0, \n                 empty_cols = None, to_fill=None,score_corr=0):\n        self.nr = nr\n        self.nc = nc\n        self.ncolors = ncolors\n        self.to_fill = set()\n        self.score = score\n        self.score_diff = score_diff\n        self.score_corr = score_corr\n        self.empty_cols = []\n        self.pos, self.colors = cells(ncolors=ncolors) \n        \n    def plotBoard(self):\n        for row in range(NROWS):\n            for col in range(NCOLS):\n                xc, yc = self.pos[col][row]   \n                fill(cell_colors[self.colors[col][row]])\n                rect(xc,yc,B_WIDTH,B_WIDTH)\n                \n        fill(255)\n        textSize(20)\n        textAlign(LEFT)\n        text(\"Score: %d\" %self.score, C_WIDTH-140, C_HEIGHT - 6)\n\n        if self.endGame():\n            if not self.score_corr: \n                self.score_correction_by_colors()\n                self.score_corr = True\n            self.compactLeft()\n            textSize(36)\n            textAlign(CENTER)\n            text(\"End of Game\",C_WIDTH // 2, C_HEIGHT // 2 - 10)\n\n    def neighbours(self,i,j):\n        possible = [(i-1,j),(i+1,j),(i,j-1),(i,j+1)]\n        \n        return [p for p in possible if (0 <= p[0] < self.nc) \n                                   and (0 <= p[1] < self.nr)]\n    \n    def alone(self,i,j):\n        # i -column, j - row\n        color = self.colors[i][j]\n        res = True\n        if color == 0:\n            return res\n        for k,l in self.neighbours(i,j):\n            if self.colors[k][l] == color:\n                res = False\n                break\n        return res        \n    \n    def floodfill(self, x, y):\n        value = self.colors[x][y]\n        edge = [(x,y)]    \n        self.to_fill = set([x])\n        self.colors[x][y] = 0\n        self.score_diff = 1\n        while edge:\n            newedge = []\n            for (x,y) in edge:\n                for s,t in self.neighbours(x,y):\n                    if self.colors[s][t] == value:\n                        self.to_fill.add(s)\n                        self.colors[s][t] = 0\n                        self.score_diff += 1\n                        newedge.append((s, t))\n            edge = newedge\n\n    def fall_column(self,col):\n        if sum(self.colors[col]) == 0:\n            self.empty_cols.append(col)\n            return\n        colored = []\n        for row in range(self.nr):\n            cc = self.colors[col][row]\n            if cc:\n                colored.append(cc)\n        lc = len(colored)\n        new_col = [0] *(self.nr - lc) + colored\n        self.colors[col] = new_col         \n                        \n    def compactLeft(self):\n        if self.empty_cols == []:\n            return \n        for c in sorted(self.empty_cols,reverse=True): \n            for cindex in range(c,self.nc-1):\n                    self.colors[cindex] = self.colors[cindex + 1]\n            self.colors[self.nc-1] = [0] * self.nr\n        self.empty_cols = []\n          \n    def fall_all(self):\n        if self.to_fill == []:\n            self.score_diff = 0\n            return\n        for col in self.to_fill:\n            self.fall_column(col)\n        self.compactLeft()\n        nscore = self.score_diff - 1    \n        self.score += (nscore * nscore)\n        self.score_diff = 0\n            \n    def endGame(self):\n        return sum([self.alone(i,j) for i in range(self.nc) \n                    for j in range(self.nr)]) == self.nr * self.nc\n\n    def score_correction(self):\n    \n        rem = sum(bool(self.colors[c][r]) for c in range(self.nc) \n                                          for r in range(self.nr)) \n        if rem == 0:\n            self.score += 1000\n        else:\n            self.score -= (rem-1)*(rem-1)\n            self.score = max(0,self.score)\n\n    def score_correction_by_colors(self):\n        crange = range(1,self.ncolors + 1) \n        rest = {c:0 for c in crange}\n        for col in range(self.nc):\n            for row in range(self.nr):\n                color = self.colors[col][row]\n                if color: \n                    rest[color] += 1\n                \n        rem = 0\n        for c in crange:\n            ncells = rest[c]\n            if ncells:\n                rem += (ncells - 1) * (ncells - 1) \n        if sum(rest.values()) == 0:\n            self.score += 1000\n        else:\n            self.score -= rem\n            \n            "
  },
  {
    "path": "docs/examples/pyodide/samegame/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/samegame/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\nNROWS =  10      # numer of brick rows \nNCOLS =  20      # number of brick columns\nNCOLORS = 4      # 1 .. 5\nB_WIDTH = 50     # brick width\nFPS = 30         # frames per second\nC_WIDTH =  NCOLS * B_WIDTH # canvas width\nC_HEIGHT = NROWS * B_WIDTH # canvas height \n\ngame = None\n\ndef setup():\n    global game\n    createCanvas(C_WIDTH, C_HEIGHT, P2D)\n    rectMode(CENTER)\n    frameRate(FPS)\n    game = SameGame()\n    \ndef draw(): \n    global game\n    game.plotBoard()\n                \ndef inCell(x,y):\n    return (int(x) // (B_WIDTH + 1), int(y) // (B_WIDTH + 1))\n\ndef inCanvas(x,y):\n    return  (0 <=  x <= C_WIDTH) and (0 <= y <= C_HEIGHT)\n\ndef mousePressed():\n    global game\n    x, y = mouseX, mouseY\n    i, j = inCell(x,y)\n    if (0 <= i < game.nc) and (0 <= j < game.nr):\n        if not game.alone(i,j):\n            game.floodfill(i,j)\n            game.fall_all()\n\ndef keyPressed():\n    global game\n    if key == \"n\":\n        game = SameGame()\n    elif key in (\"3\",\"4\",\"5\"):\n        colors = int(key)    \n        game = SameGame(ncolors=colors)\n         \ncell_colors = {0:\"black\", 1:\"green\", 2:\"blue\", \n               3:\"red\", 4:\"yellow\", 5:\"magenta\"}\n\ndef cells(colors_only=False,ncolors=NCOLORS):\n    ycent = B_WIDTH // 2\n    pos =    [[0] * NROWS for col in range(NCOLS)]\n    colors = [[0] * NROWS for col in range(NCOLS)]  \n    # store cell centers coordinates and colors, columnwise\n    for row in range(NCOLS):\n        xcent = -B_WIDTH // 2\n        for col in range(NROWS):   \n            xcent += B_WIDTH\n            pos[row][col] = (ycent,xcent)\n            colors[row][col] = int(random(1, ncolors + 1))\n        ycent += B_WIDTH\n    if not colors_only:    \n        return pos, colors\n    return colors\n\nclass SameGame:\n    def __init__(self,nr=NROWS, nc=NCOLS, ncolors=NCOLORS, \n                 colors=None, pos=None, score=0, score_diff=0, \n                 empty_cols = None, to_fill=None,score_corr=0):\n        self.nr = nr\n        self.nc = nc\n        self.ncolors = ncolors\n        self.to_fill = set()\n        self.score = score\n        self.score_diff = score_diff\n        self.score_corr = score_corr\n        self.empty_cols = []\n        self.pos, self.colors = cells(ncolors=ncolors) \n        \n    def plotBoard(self):\n        for row in range(NROWS):\n            for col in range(NCOLS):\n                xc, yc = self.pos[col][row]   \n                fill(cell_colors[self.colors[col][row]])\n                rect(xc,yc,B_WIDTH,B_WIDTH)\n                \n        fill(255)\n        textSize(20)\n        textAlign(LEFT)\n        text(\"Score: %d\" %self.score, C_WIDTH-140, C_HEIGHT - 6)\n\n        if self.endGame():\n            if not self.score_corr: \n                self.score_correction_by_colors()\n                self.score_corr = True\n            self.compactLeft()\n            textSize(36)\n            textAlign(CENTER)\n            text(\"End of Game\",C_WIDTH // 2, C_HEIGHT // 2 - 10)\n\n    def neighbours(self,i,j):\n        possible = [(i-1,j),(i+1,j),(i,j-1),(i,j+1)]\n        \n        return [p for p in possible if (0 <= p[0] < self.nc) \n                                   and (0 <= p[1] < self.nr)]\n    \n    def alone(self,i,j):\n        # i -column, j - row\n        color = self.colors[i][j]\n        res = True\n        if color == 0:\n            return res\n        for k,l in self.neighbours(i,j):\n            if self.colors[k][l] == color:\n                res = False\n                break\n        return res        \n    \n    def floodfill(self, x, y):\n        value = self.colors[x][y]\n        edge = [(x,y)]    \n        self.to_fill = set([x])\n        self.colors[x][y] = 0\n        self.score_diff = 1\n        while edge:\n            newedge = []\n            for (x,y) in edge:\n                for s,t in self.neighbours(x,y):\n                    if self.colors[s][t] == value:\n                        self.to_fill.add(s)\n                        self.colors[s][t] = 0\n                        self.score_diff += 1\n                        newedge.append((s, t))\n            edge = newedge\n\n    def fall_column(self,col):\n        if sum(self.colors[col]) == 0:\n            self.empty_cols.append(col)\n            return\n        colored = []\n        for row in range(self.nr):\n            cc = self.colors[col][row]\n            if cc:\n                colored.append(cc)\n        lc = len(colored)\n        new_col = [0] *(self.nr - lc) + colored\n        self.colors[col] = new_col         \n                        \n    def compactLeft(self):\n        if self.empty_cols == []:\n            return \n        for c in sorted(self.empty_cols,reverse=True): \n            for cindex in range(c,self.nc-1):\n                    self.colors[cindex] = self.colors[cindex + 1]\n            self.colors[self.nc-1] = [0] * self.nr\n        self.empty_cols = []\n          \n    def fall_all(self):\n        if self.to_fill == []:\n            self.score_diff = 0\n            return\n        for col in self.to_fill:\n            self.fall_column(col)\n        self.compactLeft()\n        nscore = self.score_diff - 1    \n        self.score += (nscore * nscore)\n        self.score_diff = 0\n            \n    def endGame(self):\n        return sum([self.alone(i,j) for i in range(self.nc) \n                    for j in range(self.nr)]) == self.nr * self.nc\n\n    def score_correction(self):\n    \n        rem = sum(bool(self.colors[c][r]) for c in range(self.nc) \n                                          for r in range(self.nr)) \n        if rem == 0:\n            self.score += 1000\n        else:\n            self.score -= (rem-1)*(rem-1)\n            self.score = max(0,self.score)\n\n    def score_correction_by_colors(self):\n        crange = range(1,self.ncolors + 1) \n        rest = {c:0 for c in crange}\n        for col in range(self.nc):\n            for row in range(self.nr):\n                color = self.colors[col][row]\n                if color: \n                    rest[color] += 1\n                \n        rem = 0\n        for c in crange:\n            ncells = rest[c]\n            if ncells:\n                rem += (ncells - 1) * (ncells - 1) \n        if sum(rest.values()) == 0:\n            self.score += 1000\n        else:\n            self.score -= rem\n            \n            \n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/sketch_001/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_001 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/sketch_001\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code># https://p5js.org/examples/interaction-wavemaker.html\n\nt = 0\n\ndef setup():\n    createCanvas(600, 600)\n    stroke(250)\n    strokeWeight(3)\n    fill(40, 200, 40)\n\n\ndef draw():\n    global t\n    background(10, 10)\n\n    xAngle = map(mouseX, 0, width, -4 * PI, 4 * PI, True)\n    yAngle = map(mouseY, 0, height, -4 * PI, 4 * PI, True)\n    for x in range(0, width, 30):\n        for y in range(0, height, 30):\n\n            angle = xAngle * (x / width) + yAngle * (y / height)\n\n            myX = x + 20 * cos(2 * PI * t + angle)\n            myY = y + 20 * sin(2 * TWO_PI * t + angle)\n\n            ellipse(myX, myY, 10)\n\n    t = t + 0.01\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/sketch_001/sketch_001.py",
    "content": "# https://p5js.org/examples/interaction-wavemaker.html\r\n\r\nt = 0\r\n\r\ndef setup():\r\n    createCanvas(600, 600)\r\n    stroke(250)\r\n    strokeWeight(3)\r\n    fill(40, 200, 40)\r\n\r\n\r\ndef draw():\r\n    global t\r\n    background(10, 10)\r\n\r\n    xAngle = map(mouseX, 0, width, -4 * PI, 4 * PI, True)\r\n    yAngle = map(mouseY, 0, height, -4 * PI, 4 * PI, True)\r\n    for x in range(0, width, 30):\r\n        for y in range(0, height, 30):\r\n\r\n            angle = xAngle * (x / width) + yAngle * (y / height)\r\n\r\n            myX = x + 20 * cos(2 * PI * t + angle)\r\n            myY = y + 20 * sin(2 * TWO_PI * t + angle)\r\n\r\n            ellipse(myX, myY, 10)\r\n\r\n    t = t + 0.01\r\n"
  },
  {
    "path": "docs/examples/pyodide/sketch_001/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/sketch_001/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\n# https://p5js.org/examples/interaction-wavemaker.html\n\nt = 0\n\ndef setup():\n    createCanvas(600, 600)\n    stroke(250)\n    strokeWeight(3)\n    fill(40, 200, 40)\n\n\ndef draw():\n    global t\n    background(10, 10)\n\n    xAngle = map(mouseX, 0, width, -4 * PI, 4 * PI, True)\n    yAngle = map(mouseY, 0, height, -4 * PI, 4 * PI, True)\n    for x in range(0, width, 30):\n        for y in range(0, height, 30):\n\n            angle = xAngle * (x / width) + yAngle * (y / height)\n\n            myX = x + 20 * cos(2 * PI * t + angle)\n            myY = y + 20 * sin(2 * TWO_PI * t + angle)\n\n            ellipse(myX, myY, 10)\n\n    t = t + 0.01\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/sketch_002/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_002 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/sketch_002\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>\"\"\"\n * Move Eye.\n * by Simon Greenwold.\n *\n * The camera lifts up (controlled by mouseY) while looking at the same point.\n \"\"\"\n\ndef setup():\n    createCanvas(640, 360, WEBGL)\n    fill(204)\n\n\ndef draw():\n    ambientLight(50)\n    directionalLight(255, 0, 0, 0.25, 0.25, 0);\n    background(0)\n\n    # Change height of the camera with mouseY\n    camera(30.0, mouseY, 220.0,  # eyeX, eyeY, eyeZ\n           0.0, 0.0, 0.0,        # centerX, centerY, centerZ\n           0.0, 1.0, 0.0)        # upX, upY, upZ\n\n    noStroke()\n    box(90)\n    stroke(255)\n    line(-100, 0, 0, 100, 0, 0)\n    line(0, -100, 0, 0, 100, 0)\n    line(0, 0, -100, 0, 0, 100)\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/sketch_002/sketch_002.py",
    "content": "\"\"\"\n * Move Eye.\n * by Simon Greenwold.\n *\n * The camera lifts up (controlled by mouseY) while looking at the same point.\n \"\"\"\n\ndef setup():\n    createCanvas(640, 360, WEBGL)\n    fill(204)\n\n\ndef draw():\n    ambientLight(50)\n    directionalLight(255, 0, 0, 0.25, 0.25, 0);\n    background(0)\n\n    # Change height of the camera with mouseY\n    camera(30.0, mouseY, 220.0,  # eyeX, eyeY, eyeZ\n           0.0, 0.0, 0.0,        # centerX, centerY, centerZ\n           0.0, 1.0, 0.0)        # upX, upY, upZ\n\n    noStroke()\n    box(90)\n    stroke(255)\n    line(-100, 0, 0, 100, 0, 0)\n    line(0, -100, 0, 0, 100, 0)\n    line(0, 0, -100, 0, 0, 100)\n"
  },
  {
    "path": "docs/examples/pyodide/sketch_002/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/sketch_002/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\n\"\"\"\n * Move Eye.\n * by Simon Greenwold.\n *\n * The camera lifts up (controlled by mouseY) while looking at the same point.\n \"\"\"\n\ndef setup():\n    createCanvas(640, 360, WEBGL)\n    fill(204)\n\n\ndef draw():\n    ambientLight(50)\n    directionalLight(255, 0, 0, 0.25, 0.25, 0);\n    background(0)\n\n    # Change height of the camera with mouseY\n    camera(30.0, mouseY, 220.0,  # eyeX, eyeY, eyeZ\n           0.0, 0.0, 0.0,        # centerX, centerY, centerZ\n           0.0, 1.0, 0.0)        # upX, upY, upZ\n\n    noStroke()\n    box(90)\n    stroke(255)\n    line(-100, 0, 0, 100, 0, 0)\n    line(0, -100, 0, 0, 100, 0)\n    line(0, 0, -100, 0, 0, 100)\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/sketch_003/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_003 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/sketch_003\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code># 3d example\n\ndef setup():\n    createCanvas(600, 600, WEBGL)\n\ndef draw():\n    background(200)\n    translate(-100, -100, 0)\n    push()\n    normalMaterial()\n    rotateZ(frameCount * 0.01)\n    rotateX(frameCount * 0.01)\n    rotateY(frameCount * 0.01)\n    box(50, 70, 100)\n    pop()\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/sketch_003/sketch_003.py",
    "content": "# 3d example\n\ndef setup():\n    createCanvas(600, 600, WEBGL)\n\ndef draw():\n    background(200)\n    translate(-100, -100, 0)\n    push()\n    normalMaterial()\n    rotateZ(frameCount * 0.01)\n    rotateX(frameCount * 0.01)\n    rotateY(frameCount * 0.01)\n    box(50, 70, 100)\n    pop()\n"
  },
  {
    "path": "docs/examples/pyodide/sketch_003/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/sketch_003/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\n# 3d example\n\ndef setup():\n    createCanvas(600, 600, WEBGL)\n\ndef draw():\n    background(200)\n    translate(-100, -100, 0)\n    push()\n    normalMaterial()\n    rotateZ(frameCount * 0.01)\n    rotateX(frameCount * 0.01)\n    rotateY(frameCount * 0.01)\n    box(50, 70, 100)\n    pop()\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/sketch_004/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_004 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/sketch_004\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code># From Prof. Claudio Esperança examples for BrythonIDE\n# https://github.com/esperanc/brythonide/blob/master/demoSketches/boids.py\n\nboids = []\n\ndef setup():\n    createCanvas(720, 400)\n    # Add an initial set of boids into the system\n    for i in range(10):\n        boids.append (Boid(random(720), random(400)))\n    # frameRate(60)\n\ndef draw():\n    background(51)\n    # Run all the boids\n    for boid in boids:\n        boid.run(boids)\n        fill(255)\n\n    # Display score\n    textSize(16)\n    textAlign(LEFT)\n    text(\"Frames: %.1f\" %frameRate(), 150, 390)\n\n# Boid class\n# Methods for Separation, Cohesion, Alignment added\nclass Boid(object):\n\n    def __init__(self, x, y):\n        self.acceleration = PVector(0, 0)\n        self.velocity = PVector.random2D()\n        self.position = PVector(x, y)\n        self.r = 3.0\n        self.maxspeed = 3    # Maximum speed\n        self.maxforce = 0.05 # Maximum steering force\n\n    def run(self, boids):\n        self.flock(boids)\n        self.update()\n        self.borders()\n        self.render()\n\n    # Forces go into acceleration\n    def applyForce(self,force):\n        self.acceleration = self.acceleration + force\n\n    # We accumulate a new acceleration each time based on three rules\n    def flock(self, boids):\n        sep = self.separate(boids) # Separation\n        ali = self.align(boids)    # Alignment\n        coh = self.cohesion(boids) # Cohesion\n        # Arbitrarily weight these forces\n        sep = 2.5 * sep\n        ali = 1.0 * ali\n        coh = 1.0 * coh\n        # Add the force vectors to acceleration\n        self.applyForce(sep)\n        self.applyForce(ali)\n        self.applyForce(coh)\n\n    # Method to update location\n    def update(self):\n        # Update velocity\n        self.velocity = self.velocity + self.acceleration\n        # Limit speed\n        self.velocity.limit(self.maxspeed)\n        self.position = self.position + self.velocity\n        # Reset acceleration to 0 each cycle\n        self.acceleration = 0 * self.acceleration\n\n    # A method that calculates and applies a steering force towards a target\n    # STEER = DESIRED MINUS VELOCITY\n    def seek(self,target):\n        desired = target - self.position # A vector pointing from the location to the target\n        # Normalize desired and scale to maximum speed\n        desired.normalize()\n        desired = desired * self.maxspeed\n        # Steering = Desired minus Velocity\n        steer = desired - self.velocity\n        steer.limit(self.maxforce) # Limit to maximum steering force\n        return steer\n\n    # Draw boid as a circle\n    def render(self):\n        fill(127, 127)\n        stroke(200)\n        ellipse(self.position.x, self.position.y, 16, 16)\n\n    # Wraparound\n    def borders(self):\n        if (self.position.x < -self.r):\n            self.position.x = width + self.r\n        if (self.position.y < -self.r):\n            self.position.y = height + self.r\n        if (self.position.x > width + self.r):\n            self.position.x = -self.r\n        if (self.position.y > height + self.r):\n            self.position.y = -self.r\n\n\n    # Separation\n    # Method checks for nearby boids and steers away\n    def separate(self, boids):\n        desiredseparation = 25.0\n        steer = PVector(0, 0)\n        count = 0\n        # For every boid in the system, check if it's too close\n        for i in range(len(boids)):\n            d = PVector.dist(self.position, boids[i].position)\n            # If the distance is greater than 0 and less than an arbitrary amount (0 when you are yourself)\n            if (0 < d < desiredseparation) :\n                # Calculate vector pointing away from neighbor\n                diff = self.position - boids[i].position\n                diff.normalize()\n                diff = diff / d\n                steer = steer + diff\n                count += 1 # Keep track of how many\n        # Average -- divide by how many\n        if (count > 0):\n            steer = steer/count\n\n        # As long as the vector is greater than 0\n        if (steer.mag() > 0):\n            # Implement Reynolds: Steering = Desired - Velocity\n            steer.normalize()\n            steer = steer * self.maxspeed\n            steer = steer - self.velocity\n            steer.limit(self.maxforce)\n\n        return steer\n\n\n    # Alignment\n    # For every nearby boid in the system, calculate the average velocity\n    def align(self, boids):\n        neighbordist = 50\n        summ = PVector(0, 0)\n        count = 0\n        for i in range(len(boids)):\n            d = PVector.dist(self.position, boids[i].position)\n            if (0 < d < neighbordist):\n                summ = summ + boids[i].velocity\n                count += 1\n\n        if (count > 0) :\n            summ = summ/count\n            summ.normalize()\n            summ = summ * self.maxspeed\n            steer = summ - self.velocity\n            steer.limit(self.maxforce)\n            return steer\n        else:\n            return PVector(0, 0)\n\n    # Cohesion\n    # For the average location (i.e. center) of all nearby boids, calculate steering vector towards that location\n    def cohesion(self, boids) :\n        neighbordist = 50\n        summ = PVector(0, 0) # Start with empty vector to accumulate all locations\n        count = 0\n        for i in range(len(boids)):\n            d = PVector.dist(self.position, boids[i].position)\n            if (0 < d < neighbordist) :\n                summ = summ + boids[i].position   # Add location\n                count += 1\n\n        if (count > 0) :\n            summ = summ / count\n            return self.seek(summ) # Steer towards the location\n        else:\n            return PVector(0, 0)\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/sketch_004/sketch_004.py",
    "content": "# From Prof. Claudio Esperança examples for BrythonIDE\n# https://github.com/esperanc/brythonide/blob/master/demoSketches/boids.py\n\nboids = []\n\ndef setup():\n    createCanvas(720, 400)\n    # Add an initial set of boids into the system\n    for i in range(10):\n        boids.append (Boid(random(720), random(400)))\n    # frameRate(60)\n\ndef draw():\n    background(51)\n    # Run all the boids\n    for boid in boids:\n        boid.run(boids)\n        fill(255)\n\n    # Display score\n    textSize(16)\n    textAlign(LEFT)\n    text(\"Frames: %.1f\" %frameRate(), 150, 390)\n\n# Boid class\n# Methods for Separation, Cohesion, Alignment added\nclass Boid(object):\n\n    def __init__(self, x, y):\n        self.acceleration = PVector(0, 0)\n        self.velocity = PVector.random2D()\n        self.position = PVector(x, y)\n        self.r = 3.0\n        self.maxspeed = 3    # Maximum speed\n        self.maxforce = 0.05 # Maximum steering force\n\n    def run(self, boids):\n        self.flock(boids)\n        self.update()\n        self.borders()\n        self.render()\n\n    # Forces go into acceleration\n    def applyForce(self,force):\n        self.acceleration = self.acceleration + force\n\n    # We accumulate a new acceleration each time based on three rules\n    def flock(self, boids):\n        sep = self.separate(boids) # Separation\n        ali = self.align(boids)    # Alignment\n        coh = self.cohesion(boids) # Cohesion\n        # Arbitrarily weight these forces\n        sep = 2.5 * sep\n        ali = 1.0 * ali\n        coh = 1.0 * coh\n        # Add the force vectors to acceleration\n        self.applyForce(sep)\n        self.applyForce(ali)\n        self.applyForce(coh)\n\n    # Method to update location\n    def update(self):\n        # Update velocity\n        self.velocity = self.velocity + self.acceleration\n        # Limit speed\n        self.velocity.limit(self.maxspeed)\n        self.position = self.position + self.velocity\n        # Reset acceleration to 0 each cycle\n        self.acceleration = 0 * self.acceleration\n\n    # A method that calculates and applies a steering force towards a target\n    # STEER = DESIRED MINUS VELOCITY\n    def seek(self,target):\n        desired = target - self.position # A vector pointing from the location to the target\n        # Normalize desired and scale to maximum speed\n        desired.normalize()\n        desired = desired * self.maxspeed\n        # Steering = Desired minus Velocity\n        steer = desired - self.velocity\n        steer.limit(self.maxforce) # Limit to maximum steering force\n        return steer\n\n    # Draw boid as a circle\n    def render(self):\n        fill(127, 127)\n        stroke(200)\n        ellipse(self.position.x, self.position.y, 16, 16)\n\n    # Wraparound\n    def borders(self):\n        if (self.position.x < -self.r):\n            self.position.x = width + self.r\n        if (self.position.y < -self.r):\n            self.position.y = height + self.r\n        if (self.position.x > width + self.r):\n            self.position.x = -self.r\n        if (self.position.y > height + self.r):\n            self.position.y = -self.r\n\n\n    # Separation\n    # Method checks for nearby boids and steers away\n    def separate(self, boids):\n        desiredseparation = 25.0\n        steer = PVector(0, 0)\n        count = 0\n        # For every boid in the system, check if it's too close\n        for i in range(len(boids)):\n            d = PVector.dist(self.position, boids[i].position)\n            # If the distance is greater than 0 and less than an arbitrary amount (0 when you are yourself)\n            if (0 < d < desiredseparation) :\n                # Calculate vector pointing away from neighbor\n                diff = self.position - boids[i].position\n                diff.normalize()\n                diff = diff / d\n                steer = steer + diff\n                count += 1 # Keep track of how many\n        # Average -- divide by how many\n        if (count > 0):\n            steer = steer/count\n\n        # As long as the vector is greater than 0\n        if (steer.mag() > 0):\n            # Implement Reynolds: Steering = Desired - Velocity\n            steer.normalize()\n            steer = steer * self.maxspeed\n            steer = steer - self.velocity\n            steer.limit(self.maxforce)\n\n        return steer\n\n\n    # Alignment\n    # For every nearby boid in the system, calculate the average velocity\n    def align(self, boids):\n        neighbordist = 50\n        summ = PVector(0, 0)\n        count = 0\n        for i in range(len(boids)):\n            d = PVector.dist(self.position, boids[i].position)\n            if (0 < d < neighbordist):\n                summ = summ + boids[i].velocity\n                count += 1\n\n        if (count > 0) :\n            summ = summ/count\n            summ.normalize()\n            summ = summ * self.maxspeed\n            steer = summ - self.velocity\n            steer.limit(self.maxforce)\n            return steer\n        else:\n            return PVector(0, 0)\n\n    # Cohesion\n    # For the average location (i.e. center) of all nearby boids, calculate steering vector towards that location\n    def cohesion(self, boids) :\n        neighbordist = 50\n        summ = PVector(0, 0) # Start with empty vector to accumulate all locations\n        count = 0\n        for i in range(len(boids)):\n            d = PVector.dist(self.position, boids[i].position)\n            if (0 < d < neighbordist) :\n                summ = summ + boids[i].position   # Add location\n                count += 1\n\n        if (count > 0) :\n            summ = summ / count\n            return self.seek(summ) # Steer towards the location\n        else:\n            return PVector(0, 0)\n"
  },
  {
    "path": "docs/examples/pyodide/sketch_004/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/sketch_004/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\n# From Prof. Claudio Esperança examples for BrythonIDE\n# https://github.com/esperanc/brythonide/blob/master/demoSketches/boids.py\n\nboids = []\n\ndef setup():\n    createCanvas(720, 400)\n    # Add an initial set of boids into the system\n    for i in range(10):\n        boids.append (Boid(random(720), random(400)))\n    # frameRate(60)\n\ndef draw():\n    background(51)\n    # Run all the boids\n    for boid in boids:\n        boid.run(boids)\n        fill(255)\n\n    # Display score\n    textSize(16)\n    textAlign(LEFT)\n    text(\"Frames: %.1f\" %frameRate(), 150, 390)\n\n# Boid class\n# Methods for Separation, Cohesion, Alignment added\nclass Boid(object):\n\n    def __init__(self, x, y):\n        self.acceleration = PVector(0, 0)\n        self.velocity = PVector.random2D()\n        self.position = PVector(x, y)\n        self.r = 3.0\n        self.maxspeed = 3    # Maximum speed\n        self.maxforce = 0.05 # Maximum steering force\n\n    def run(self, boids):\n        self.flock(boids)\n        self.update()\n        self.borders()\n        self.render()\n\n    # Forces go into acceleration\n    def applyForce(self,force):\n        self.acceleration = self.acceleration + force\n\n    # We accumulate a new acceleration each time based on three rules\n    def flock(self, boids):\n        sep = self.separate(boids) # Separation\n        ali = self.align(boids)    # Alignment\n        coh = self.cohesion(boids) # Cohesion\n        # Arbitrarily weight these forces\n        sep = 2.5 * sep\n        ali = 1.0 * ali\n        coh = 1.0 * coh\n        # Add the force vectors to acceleration\n        self.applyForce(sep)\n        self.applyForce(ali)\n        self.applyForce(coh)\n\n    # Method to update location\n    def update(self):\n        # Update velocity\n        self.velocity = self.velocity + self.acceleration\n        # Limit speed\n        self.velocity.limit(self.maxspeed)\n        self.position = self.position + self.velocity\n        # Reset acceleration to 0 each cycle\n        self.acceleration = 0 * self.acceleration\n\n    # A method that calculates and applies a steering force towards a target\n    # STEER = DESIRED MINUS VELOCITY\n    def seek(self,target):\n        desired = target - self.position # A vector pointing from the location to the target\n        # Normalize desired and scale to maximum speed\n        desired.normalize()\n        desired = desired * self.maxspeed\n        # Steering = Desired minus Velocity\n        steer = desired - self.velocity\n        steer.limit(self.maxforce) # Limit to maximum steering force\n        return steer\n\n    # Draw boid as a circle\n    def render(self):\n        fill(127, 127)\n        stroke(200)\n        ellipse(self.position.x, self.position.y, 16, 16)\n\n    # Wraparound\n    def borders(self):\n        if (self.position.x < -self.r):\n            self.position.x = width + self.r\n        if (self.position.y < -self.r):\n            self.position.y = height + self.r\n        if (self.position.x > width + self.r):\n            self.position.x = -self.r\n        if (self.position.y > height + self.r):\n            self.position.y = -self.r\n\n\n    # Separation\n    # Method checks for nearby boids and steers away\n    def separate(self, boids):\n        desiredseparation = 25.0\n        steer = PVector(0, 0)\n        count = 0\n        # For every boid in the system, check if it's too close\n        for i in range(len(boids)):\n            d = PVector.dist(self.position, boids[i].position)\n            # If the distance is greater than 0 and less than an arbitrary amount (0 when you are yourself)\n            if (0 < d < desiredseparation) :\n                # Calculate vector pointing away from neighbor\n                diff = self.position - boids[i].position\n                diff.normalize()\n                diff = diff / d\n                steer = steer + diff\n                count += 1 # Keep track of how many\n        # Average -- divide by how many\n        if (count > 0):\n            steer = steer/count\n\n        # As long as the vector is greater than 0\n        if (steer.mag() > 0):\n            # Implement Reynolds: Steering = Desired - Velocity\n            steer.normalize()\n            steer = steer * self.maxspeed\n            steer = steer - self.velocity\n            steer.limit(self.maxforce)\n\n        return steer\n\n\n    # Alignment\n    # For every nearby boid in the system, calculate the average velocity\n    def align(self, boids):\n        neighbordist = 50\n        summ = PVector(0, 0)\n        count = 0\n        for i in range(len(boids)):\n            d = PVector.dist(self.position, boids[i].position)\n            if (0 < d < neighbordist):\n                summ = summ + boids[i].velocity\n                count += 1\n\n        if (count > 0) :\n            summ = summ/count\n            summ.normalize()\n            summ = summ * self.maxspeed\n            steer = summ - self.velocity\n            steer.limit(self.maxforce)\n            return steer\n        else:\n            return PVector(0, 0)\n\n    # Cohesion\n    # For the average location (i.e. center) of all nearby boids, calculate steering vector towards that location\n    def cohesion(self, boids) :\n        neighbordist = 50\n        summ = PVector(0, 0) # Start with empty vector to accumulate all locations\n        count = 0\n        for i in range(len(boids)):\n            d = PVector.dist(self.position, boids[i].position)\n            if (0 < d < neighbordist) :\n                summ = summ + boids[i].position   # Add location\n                count += 1\n\n        if (count > 0) :\n            summ = summ / count\n            return self.seek(summ) # Steer towards the location\n        else:\n            return PVector(0, 0)\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/sketch_005/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_005 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/sketch_005\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>\ndef setup():\n    createCanvas(600,600)\n    noStroke()\n    rectMode(CENTER)\n\n\ndef draw():\n    colorMode(HSB,100)\n    h = map(mouseY,0,600,0,100)\n    background(h,100,100)\n    fill(100-h,100,100)\n    rect(300,300,mouseX+1,mouseX+1)\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/sketch_005/sketch_005.py",
    "content": "\ndef setup():\n    createCanvas(600,600)\n    noStroke()\n    rectMode(CENTER)\n\n\ndef draw():\n    colorMode(HSB,100)\n    h = map(mouseY,0,600,0,100)\n    background(h,100,100)\n    fill(100-h,100,100)\n    rect(300,300,mouseX+1,mouseX+1)\n"
  },
  {
    "path": "docs/examples/pyodide/sketch_005/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/sketch_005/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\n\ndef setup():\n    createCanvas(600,600)\n    noStroke()\n    rectMode(CENTER)\n\n\ndef draw():\n    colorMode(HSB,100)\n    h = map(mouseY,0,600,0,100)\n    background(h,100,100)\n    fill(100-h,100,100)\n    rect(300,300,mouseX+1,mouseX+1)\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/sketch_006/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_006 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/sketch_006\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>r = None\n\ndef setup():\n    global r\n\n    createCanvas(900, 900)\n    r = random(100, 700)\n    noFill()\n\ndef draw():\n    x, y = 100, 100\n    rect(x, y, r, r)\n\ndef keyPressed():\n    console.log(\"Key pressed event\")\n\n    if key == \"n\":\n        global r\n        r = random(100, 700)\n        redraw()\n\ndef mouseDragged():\n    global r\n    r = random(100, 700)\n    redraw()\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/sketch_006/sketch_006.py",
    "content": "r = None\n\ndef setup():\n    global r\n\n    createCanvas(900, 900)\n    r = random(100, 700)\n    noFill()\n\ndef draw():\n    x, y = 100, 100\n    rect(x, y, r, r)\n\ndef keyPressed():\n    console.log(\"Key pressed event\")\n\n    if key == \"n\":\n        global r\n        r = random(100, 700)\n        redraw()\n\ndef mouseDragged():\n    global r\n    r = random(100, 700)\n    redraw()\n"
  },
  {
    "path": "docs/examples/pyodide/sketch_006/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/sketch_006/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\nr = None\n\ndef setup():\n    global r\n\n    createCanvas(900, 900)\n    r = random(100, 700)\n    noFill()\n\ndef draw():\n    x, y = 100, 100\n    rect(x, y, r, r)\n\ndef keyPressed():\n    console.log(\"Key pressed event\")\n\n    if key == \"n\":\n        global r\n        r = random(100, 700)\n        redraw()\n\ndef mouseDragged():\n    global r\n    r = random(100, 700)\n    redraw()\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/sketch_007/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_007 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/sketch_007\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>\ndef setup():\n    createCanvas(900, 900)\n    stroke(27, 27, 27, 10)\n    strokeWeight(2)\n\n\ndef draw():\n    push()\n\n    translate(width / 2, height / 2)\n    v = PVector.random2D()\n    v.normalize()\n    v = PVector.mult(v,random(100, 400))\n    line(0, 0, v.x, v.y)\n\n    pop()\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/sketch_007/sketch_007.py",
    "content": "\ndef setup():\n    createCanvas(900, 900)\n    stroke(27, 27, 27, 10)\n    strokeWeight(2)\n\n\ndef draw():\n    push()\n\n    translate(width / 2, height / 2)\n    v = PVector.random2D()\n    v.normalize()\n    v = PVector.mult(v,random(100, 400))\n    line(0, 0, v.x, v.y)\n\n    pop()\n"
  },
  {
    "path": "docs/examples/pyodide/sketch_007/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/sketch_007/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\n\ndef setup():\n    createCanvas(900, 900)\n    stroke(27, 27, 27, 10)\n    strokeWeight(2)\n\n\ndef draw():\n    push()\n\n    translate(width / 2, height / 2)\n    v = PVector.random2D()\n    v.normalize()\n    v = PVector.mult(v,random(100, 400))\n    line(0, 0, v.x, v.y)\n\n    pop()\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/sketch_008/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_008 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/sketch_008\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>rect_base_size = 30\npositions = []\nrect_size = None\n\ndef setup():\n    global rect_size\n\n    createP(\"Hi! This is an example of how to use p5.dom.js with pyp5js\")\n\n    # creates a container div\n    slider_div = createDiv()\n    slider_div.style(\"display\", \"block\")\n\n    # creates the slider\n    rect_size = createSlider(0, 600, 100)\n    rect_size.style('width', '50%')\n\n    # adds the slider to the container div\n    slider_div.child(rect_size)\n\n    createCanvas(600, 600)\n\n    for x in range(-rect_base_size, width + rect_base_size, rect_base_size):\n        for y in range(-rect_base_size, height + rect_base_size, rect_base_size):\n            positions.append((x, y))\n\n    noFill()\n    strokeWeight(2)\n    rectMode(CENTER)\n\n\ndef draw():\n    background(255)\n    size = rect_size.value()\n    for x, y in positions:\n        rect(x, y, size, size)\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/sketch_008/sketch_008.py",
    "content": "rect_base_size = 30\npositions = []\nrect_size = None\n\ndef setup():\n    global rect_size\n\n    createP(\"Hi! This is an example of how to use p5.dom.js with pyp5js\")\n\n    # creates a container div\n    slider_div = createDiv()\n    slider_div.style(\"display\", \"block\")\n\n    # creates the slider\n    rect_size = createSlider(0, 600, 100)\n    rect_size.style('width', '50%')\n\n    # adds the slider to the container div\n    slider_div.child(rect_size)\n\n    createCanvas(600, 600)\n\n    for x in range(-rect_base_size, width + rect_base_size, rect_base_size):\n        for y in range(-rect_base_size, height + rect_base_size, rect_base_size):\n            positions.append((x, y))\n\n    noFill()\n    strokeWeight(2)\n    rectMode(CENTER)\n\n\ndef draw():\n    background(255)\n    size = rect_size.value()\n    for x, y in positions:\n        rect(x, y, size, size)\n"
  },
  {
    "path": "docs/examples/pyodide/sketch_008/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/sketch_008/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\nrect_base_size = 30\npositions = []\nrect_size = None\n\ndef setup():\n    global rect_size\n\n    createP(\"Hi! This is an example of how to use p5.dom.js with pyp5js\")\n\n    # creates a container div\n    slider_div = createDiv()\n    slider_div.style(\"display\", \"block\")\n\n    # creates the slider\n    rect_size = createSlider(0, 600, 100)\n    rect_size.style('width', '50%')\n\n    # adds the slider to the container div\n    slider_div.child(rect_size)\n\n    createCanvas(600, 600)\n\n    for x in range(-rect_base_size, width + rect_base_size, rect_base_size):\n        for y in range(-rect_base_size, height + rect_base_size, rect_base_size):\n            positions.append((x, y))\n\n    noFill()\n    strokeWeight(2)\n    rectMode(CENTER)\n\n\ndef draw():\n    background(255)\n    size = rect_size.value()\n    for x, y in positions:\n        rect(x, y, size, size)\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/sketch_009/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_009 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/sketch_009\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>from random import choice\n\nimages = []\n\ndef setup():\n    global images\n\n    createP(\"Click to add a new image\")\n    createCanvas(600, 600)\n    background(200)\n    images = [\n        loadImage('smile.png'),\n        loadImage('alien.png'),\n        loadImage('rainbow.png'),\n    ]\n\n\ndef mousePressed():\n    x, y = mouseX, mouseY\n    img = choice(images)\n    image(img, x, y)\n\n\ndef draw():\n    pass\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/sketch_009/sketch_009.py",
    "content": "from random import choice\r\n\r\nimages = []\r\n\r\ndef setup():\r\n    global images\r\n\r\n    createP(\"Click to add a new image\")\r\n    createCanvas(600, 600)\r\n    background(200)\r\n    images = [\r\n        loadImage('smile.png'),\r\n        loadImage('alien.png'),\r\n        loadImage('rainbow.png'),\r\n    ]\r\n\r\n\r\ndef mousePressed():\r\n    x, y = mouseX, mouseY\r\n    img = choice(images)\r\n    image(img, x, y)\r\n\r\n\r\ndef draw():\r\n    pass\r\n"
  },
  {
    "path": "docs/examples/pyodide/sketch_009/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/sketch_009/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\nfrom random import choice\n\nimages = []\n\ndef setup():\n    global images\n\n    createP(\"Click to add a new image\")\n    createCanvas(600, 600)\n    background(200)\n    images = [\n        loadImage('smile.png'),\n        loadImage('alien.png'),\n        loadImage('rainbow.png'),\n    ]\n\n\ndef mousePressed():\n    x, y = mouseX, mouseY\n    img = choice(images)\n    image(img, x, y)\n\n\ndef draw():\n    pass\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/sketch_010/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_010 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/sketch_010\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>MY_POINTS = [(100, 50), (300, 100), (200, 300), (100, 300)]\n\nWIDTH =  400\nHEIGHT = 400\nFRAME_IDX = 0\nPOINT_SIZE = 10\nBUTT_Y = HEIGHT\nBUTT_PREV_X = 0\nBUTT_NEXT_X = WIDTH // 2\nBUTT_WIDTH  = WIDTH // 2 - 1\nBUTT_HEIGHT = 30\n\nbuttons = {\"prev\": (BUTT_PREV_X, BUTT_Y, BUTT_WIDTH, BUTT_HEIGHT),\n           \"next\": (BUTT_NEXT_X, BUTT_Y, BUTT_WIDTH, BUTT_HEIGHT)} # x, y, w, h\ncnv = None\n\ndef setup():\n\n    global cnv\n    cnv = createCanvas(400, 400)\n\n    button_prev = createButton('Previous frame')\n    button_prev.position(BUTT_PREV_X, BUTT_Y)\n    button_prev.size(BUTT_WIDTH,BUTT_HEIGHT)\n    \n    button_next = createButton('Next frame')\n    button_next.position(BUTT_NEXT_X, BUTT_Y)\n    button_next.size(BUTT_WIDTH,BUTT_HEIGHT)\n    \n    background(190)\n    draw_labels(MY_POINTS)\n\ndef inButton(butt_kind, x, y):\n    try:\n        bx, by, bw, bh = buttons[butt_kind]\n    except:\n        return False\n    return (bx < x < bx + bw ) and (by < y < by + bh)\n     \ndef draw():\n    background(190)\n    draw_closed_curve_vertex(MY_POINTS, FRAME_IDX)\n    draw_labels(MY_POINTS)\n\ndef mouseClicked():\n    global FRAME_IDX\n    global MY_POINTS\n    x, y = mouseX, mouseY\n    if inCanvas(x, y):\n        i = get_point_index(y, y)\n        if i != None:\n            MY_POINTS.pop(i)\n            if FRAME_IDX >= len(MY_POINTS):\n                # cap i if it exceeds maximum length now.\n                FRAME_IDX = len(MY_POINTS) - 1\n        else:\n            MY_POINTS.append((x, y))\n    elif inButton(\"prev\", x, y):\n        FRAME_IDX = max(0, FRAME_IDX - 1)\n    elif inButton(\"next\", x, y):\n        FRAME_IDX = min(len(MY_POINTS) -1, FRAME_IDX + 1) \n    \ndef get_point_index(x, y):\n    for idx, (p_x, p_y) in enumerate(MY_POINTS):\n        if ((p_x - POINT_SIZE < x < p_x + POINT_SIZE) and \n            (p_y - POINT_SIZE < y < p_y + POINT_SIZE)):\n            return idx\n\ndef inCanvas(x, y):\n    return  (0 <=  x <= WIDTH) and (0 <= y <= HEIGHT)\n\n\ndef draw_closed_curve_vertex(points, max_idx):\n    if len(points) < 2:\n        return\n    used_points = []\n    beginShape()\n\n    # start by using the last point as the initial control point\n    idx = len(points) - 1\n    curveVertex(*points[idx])\n    used_points.append(idx)\n\n    # add each point to the curve\n    for idx,p in enumerate(points):\n        if idx > max_idx:\n            break\n        curveVertex(*p)\n        used_points.append(idx)\n\n    # to close the curve, we need to create the last curve.\n    # for that, we must go to the first point\n    idx = 0\n    curveVertex(*points[idx])\n    used_points.append(idx)\n\n    # and use the next point as a control point.\n    idx = 1\n    curveVertex(*points[idx])\n    used_points.append(idx)\n    endShape()\n\n    textSize(10)\n    noStroke()\n    text('Points used to draw this curve (first and last are control points only)', 5, cnv.height - 30)\n\n    textSize(20)\n    text(', '.join([str(p) for p in used_points]), 10, cnv.height - 10)\n    stroke(0)\n\n    for i in range(len(used_points) - 1):\n        draw_dotted_line(points[used_points[i]],\n                         points[used_points[i + 1]])\n\ndef draw_labels(points):\n    strokeWeight(POINT_SIZE)\n    for idx, (px, py) in enumerate(points):\n        ts = 32\n        textSize(ts)\n        textY = py - ts / 2\n\n        if py > cnv.height / 2:\n            textY = py + ts\n\n        noStroke()\n        text(idx, px, textY)\n        stroke(0)\n        point(px, py)\n\n    strokeWeight(1)\n\ndef draw_dotted_line(p1, p2):\n    stroke(100)\n    strokeWeight(3)\n    for i in range(11):\n        x = lerp(p1[0], p2[0], i/10)\n        y = lerp(p1[1], p2[1], i/10)\n        point(x, y)\n\n    stroke(0)\n    strokeWeight(1)\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/sketch_010/sketch_010.py",
    "content": "MY_POINTS = [(100, 50), (300, 100), (200, 300), (100, 300)]\r\n\r\nWIDTH =  400\r\nHEIGHT = 400\r\nFRAME_IDX = 0\r\nPOINT_SIZE = 10\r\nBUTT_Y = HEIGHT\r\nBUTT_PREV_X = 0\r\nBUTT_NEXT_X = WIDTH // 2\r\nBUTT_WIDTH  = WIDTH // 2 - 1\r\nBUTT_HEIGHT = 30\r\n\r\nbuttons = {\"prev\": (BUTT_PREV_X, BUTT_Y, BUTT_WIDTH, BUTT_HEIGHT),\r\n           \"next\": (BUTT_NEXT_X, BUTT_Y, BUTT_WIDTH, BUTT_HEIGHT)} # x, y, w, h\r\ncnv = None\r\n\r\ndef setup():\r\n\r\n    global cnv\r\n    cnv = createCanvas(400, 400)\r\n\r\n    button_prev = createButton('Previous frame')\r\n    button_prev.position(BUTT_PREV_X, BUTT_Y)\r\n    button_prev.size(BUTT_WIDTH,BUTT_HEIGHT)\r\n    \r\n    button_next = createButton('Next frame')\r\n    button_next.position(BUTT_NEXT_X, BUTT_Y)\r\n    button_next.size(BUTT_WIDTH,BUTT_HEIGHT)\r\n    \r\n    background(190)\r\n    draw_labels(MY_POINTS)\r\n\r\ndef inButton(butt_kind, x, y):\r\n    try:\r\n        bx, by, bw, bh = buttons[butt_kind]\r\n    except:\r\n        return False\r\n    return (bx < x < bx + bw ) and (by < y < by + bh)\r\n     \r\ndef draw():\r\n    background(190)\r\n    draw_closed_curve_vertex(MY_POINTS, FRAME_IDX)\r\n    draw_labels(MY_POINTS)\r\n\r\ndef mouseClicked():\r\n    global FRAME_IDX\r\n    global MY_POINTS\r\n    x, y = mouseX, mouseY\r\n    if inCanvas(x, y):\r\n        i = get_point_index(y, y)\r\n        if i != None:\r\n            MY_POINTS.pop(i)\r\n            if FRAME_IDX >= len(MY_POINTS):\r\n                # cap i if it exceeds maximum length now.\r\n                FRAME_IDX = len(MY_POINTS) - 1\r\n        else:\r\n            MY_POINTS.append((x, y))\r\n    elif inButton(\"prev\", x, y):\r\n        FRAME_IDX = max(0, FRAME_IDX - 1)\r\n    elif inButton(\"next\", x, y):\r\n        FRAME_IDX = min(len(MY_POINTS) -1, FRAME_IDX + 1) \r\n    \r\ndef get_point_index(x, y):\r\n    for idx, (p_x, p_y) in enumerate(MY_POINTS):\r\n        if ((p_x - POINT_SIZE < x < p_x + POINT_SIZE) and \r\n            (p_y - POINT_SIZE < y < p_y + POINT_SIZE)):\r\n            return idx\r\n\r\ndef inCanvas(x, y):\r\n    return  (0 <=  x <= WIDTH) and (0 <= y <= HEIGHT)\r\n\r\n\r\ndef draw_closed_curve_vertex(points, max_idx):\r\n    if len(points) < 2:\r\n        return\r\n    used_points = []\r\n    beginShape()\r\n\r\n    # start by using the last point as the initial control point\r\n    idx = len(points) - 1\r\n    curveVertex(*points[idx])\r\n    used_points.append(idx)\r\n\r\n    # add each point to the curve\r\n    for idx,p in enumerate(points):\r\n        if idx > max_idx:\r\n            break\r\n        curveVertex(*p)\r\n        used_points.append(idx)\r\n\r\n    # to close the curve, we need to create the last curve.\r\n    # for that, we must go to the first point\r\n    idx = 0\r\n    curveVertex(*points[idx])\r\n    used_points.append(idx)\r\n\r\n    # and use the next point as a control point.\r\n    idx = 1\r\n    curveVertex(*points[idx])\r\n    used_points.append(idx)\r\n    endShape()\r\n\r\n    textSize(10)\r\n    noStroke()\r\n    text('Points used to draw this curve (first and last are control points only)', 5, cnv.height - 30)\r\n\r\n    textSize(20)\r\n    text(', '.join([str(p) for p in used_points]), 10, cnv.height - 10)\r\n    stroke(0)\r\n\r\n    for i in range(len(used_points) - 1):\r\n        draw_dotted_line(points[used_points[i]],\r\n                         points[used_points[i + 1]])\r\n\r\ndef draw_labels(points):\r\n    strokeWeight(POINT_SIZE)\r\n    for idx, (px, py) in enumerate(points):\r\n        ts = 32\r\n        textSize(ts)\r\n        textY = py - ts / 2\r\n\r\n        if py > cnv.height / 2:\r\n            textY = py + ts\r\n\r\n        noStroke()\r\n        text(idx, px, textY)\r\n        stroke(0)\r\n        point(px, py)\r\n\r\n    strokeWeight(1)\r\n\r\ndef draw_dotted_line(p1, p2):\r\n    stroke(100)\r\n    strokeWeight(3)\r\n    for i in range(11):\r\n        x = lerp(p1[0], p2[0], i/10)\r\n        y = lerp(p1[1], p2[1], i/10)\r\n        point(x, y)\r\n\r\n    stroke(0)\r\n    strokeWeight(1)\r\n"
  },
  {
    "path": "docs/examples/pyodide/sketch_010/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/sketch_010/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\nMY_POINTS = [(100, 50), (300, 100), (200, 300), (100, 300)]\n\nWIDTH =  400\nHEIGHT = 400\nFRAME_IDX = 0\nPOINT_SIZE = 10\nBUTT_Y = HEIGHT\nBUTT_PREV_X = 0\nBUTT_NEXT_X = WIDTH // 2\nBUTT_WIDTH  = WIDTH // 2 - 1\nBUTT_HEIGHT = 30\n\nbuttons = {\"prev\": (BUTT_PREV_X, BUTT_Y, BUTT_WIDTH, BUTT_HEIGHT),\n           \"next\": (BUTT_NEXT_X, BUTT_Y, BUTT_WIDTH, BUTT_HEIGHT)} # x, y, w, h\ncnv = None\n\ndef setup():\n\n    global cnv\n    cnv = createCanvas(400, 400)\n\n    button_prev = createButton('Previous frame')\n    button_prev.position(BUTT_PREV_X, BUTT_Y)\n    button_prev.size(BUTT_WIDTH,BUTT_HEIGHT)\n    \n    button_next = createButton('Next frame')\n    button_next.position(BUTT_NEXT_X, BUTT_Y)\n    button_next.size(BUTT_WIDTH,BUTT_HEIGHT)\n    \n    background(190)\n    draw_labels(MY_POINTS)\n\ndef inButton(butt_kind, x, y):\n    try:\n        bx, by, bw, bh = buttons[butt_kind]\n    except:\n        return False\n    return (bx < x < bx + bw ) and (by < y < by + bh)\n     \ndef draw():\n    background(190)\n    draw_closed_curve_vertex(MY_POINTS, FRAME_IDX)\n    draw_labels(MY_POINTS)\n\ndef mouseClicked():\n    global FRAME_IDX\n    global MY_POINTS\n    x, y = mouseX, mouseY\n    if inCanvas(x, y):\n        i = get_point_index(y, y)\n        if i != None:\n            MY_POINTS.pop(i)\n            if FRAME_IDX >= len(MY_POINTS):\n                # cap i if it exceeds maximum length now.\n                FRAME_IDX = len(MY_POINTS) - 1\n        else:\n            MY_POINTS.append((x, y))\n    elif inButton(\"prev\", x, y):\n        FRAME_IDX = max(0, FRAME_IDX - 1)\n    elif inButton(\"next\", x, y):\n        FRAME_IDX = min(len(MY_POINTS) -1, FRAME_IDX + 1) \n    \ndef get_point_index(x, y):\n    for idx, (p_x, p_y) in enumerate(MY_POINTS):\n        if ((p_x - POINT_SIZE < x < p_x + POINT_SIZE) and \n            (p_y - POINT_SIZE < y < p_y + POINT_SIZE)):\n            return idx\n\ndef inCanvas(x, y):\n    return  (0 <=  x <= WIDTH) and (0 <= y <= HEIGHT)\n\n\ndef draw_closed_curve_vertex(points, max_idx):\n    if len(points) < 2:\n        return\n    used_points = []\n    beginShape()\n\n    # start by using the last point as the initial control point\n    idx = len(points) - 1\n    curveVertex(*points[idx])\n    used_points.append(idx)\n\n    # add each point to the curve\n    for idx,p in enumerate(points):\n        if idx > max_idx:\n            break\n        curveVertex(*p)\n        used_points.append(idx)\n\n    # to close the curve, we need to create the last curve.\n    # for that, we must go to the first point\n    idx = 0\n    curveVertex(*points[idx])\n    used_points.append(idx)\n\n    # and use the next point as a control point.\n    idx = 1\n    curveVertex(*points[idx])\n    used_points.append(idx)\n    endShape()\n\n    textSize(10)\n    noStroke()\n    text('Points used to draw this curve (first and last are control points only)', 5, cnv.height - 30)\n\n    textSize(20)\n    text(', '.join([str(p) for p in used_points]), 10, cnv.height - 10)\n    stroke(0)\n\n    for i in range(len(used_points) - 1):\n        draw_dotted_line(points[used_points[i]],\n                         points[used_points[i + 1]])\n\ndef draw_labels(points):\n    strokeWeight(POINT_SIZE)\n    for idx, (px, py) in enumerate(points):\n        ts = 32\n        textSize(ts)\n        textY = py - ts / 2\n\n        if py > cnv.height / 2:\n            textY = py + ts\n\n        noStroke()\n        text(idx, px, textY)\n        stroke(0)\n        point(px, py)\n\n    strokeWeight(1)\n\ndef draw_dotted_line(p1, p2):\n    stroke(100)\n    strokeWeight(3)\n    for i in range(11):\n        x = lerp(p1[0], p2[0], i/10)\n        y = lerp(p1[1], p2[1], i/10)\n        point(x, y)\n\n    stroke(0)\n    strokeWeight(1)\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/sketch_011/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_011 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/sketch_011\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code># Made for  https://berinhard.github.io/pyp5js/pyodide/\n\ndef setup():\n    size(500, 500)\n    test()\n\ndef test():\n    \"\"\"\n    Mostly from JDF py.processing tests\n    \"\"\"\n    a = PVector()\n    assert a.x == 0\n    assert a.y == 0\n    assert a.z == 0\n\n    a = PVector(5, 7, 11)\n    b = PVector(13, 17, 23)\n    assert a - b == PVector(-8.0, -10.0, -12.0)\n    assert b - a == PVector(8, 10, 12)\n    c = PVector(18, 24, 34)\n    assert b + a == c\n    assert a + b == c\n    assert PVector.add(a, b) == c\n    assert PVector.add(a, b) == c\n    a.add(b)\n    assert a == c\n    a.add(b)\n    assert a == PVector(31.0, 41.0, 57.0)\n\n    c = PVector(310.0, 410.0, 570.0)\n    assert a * 10 == c\n    assert a * 10 == c\n    assert PVector.mult(a, 10) == c\n\n    assert PVector.mult(a, 10) == c\n    a.mult(10)\n    assert a == c\n\n    assert int(1000 * PVector.dist(a, b)) == 736116\n    assert PVector.cross(a, b) == PVector(-260.0, 280.0, -60.0)\n    assert a.cross(b) == PVector(-260.0, 280.0, -60.0)\n    assert PVector.dot(a, b) == 0\n\n    d = a.get()\n    d += b\n    assert d == a + b\n    d = a.get()\n    d -= c\n    assert d == a - c\n    d = a.get()\n    d *= 5.0\n    assert d == a * 5.0\n    d = a.get()\n\n    d /= 5.0\n    assert d == a / 5.0\n\n    assert b * 5 == b * 5.0\n    assert b / 5 == b / 5.0\n    d = b.get()\n    d *= 391\n    assert d == b * 391.0\n    d = b.get()\n    d /= 10203\n    assert d == b / 10203.0\n\n    d = a.get()\n    d += a + a\n    assert d == a + a + a\n\n    assert a * 57.0 == 57.0 * a\n\n    assert (a / 5.0) == (1.0 / 5.0) * a\n\n    m, n = b, c\n    a += b * 5 - c / 2 + PVector(0, 1, 2)\n    assert (m, n) == (b, c)\n\n    import copy\n    x = [a, b]\n    y = copy.deepcopy(x)\n\n    assert x == y\n    x[0].sub(PVector(100, 100, 100))\n    assert x != y\n\n    a = PVector(1, 1)\n    b = PVector(-2, -2)\n    assert a < b\n    assert a <= b\n    assert b > a\n    assert b >= a\n    a = PVector(1, 2, 3)\n    b = PVector(3, 2, 1)\n    assert a != b\n    assert a >= b\n    assert b >= a\n    assert a.magSq() == b.magSq()\n\n    v1 = PVector(10, 20)\n    v2 = PVector(60, 80)\n    a = PVector.angleBetween(v1, v2)\n    # Java implementation gives slightly different value:\n    # assert a == 0.17985349893569946  # more or less\n    assert int(a * 1e8) == 17985349  # more or less\n\n    # Regression test for https://github.com/jdf/Processing.py-Bugs/issues/67\n    assert isinstance(PVector(1, 2), PVector)\n\n    # Regression test for https://github.com/jdf/Processing.py-Bugs/issues/101\n    v = PVector(10, 20, 0)\n    d = v.dot(60, 80, 0)\n    assert d == 2200.0\n    v2 = PVector(60, 80, 0)\n    d = v.dot(v2)\n    assert d == 2200.0\n\n    # PVector.add w/multiple arguments\n    v = PVector(40, 20, 0)\n    v.add(25, 50, 0)\n    assert (v.x, v.y, v.z) == (65, 70, 0)\n\n    # PVector.sub w/multiple arguments\n    v = PVector(40, 20, 0)\n    v.sub(25, 50, 0)\n    assert (v.x, v.y, v.z) == (15, -30, 0)\n\n    # Regression test for https://github.com/jdf/Processing.py-Bugs/issues/102\n    start = PVector(0.0, 0.0)\n    end = PVector(100.0, 100.0)\n    middle = PVector.lerp(start, end, 0.5)\n    assert middle == PVector(50.0, 50.0)\n    assert start == PVector(0, 0)\n    start.lerp(end, .75)\n    assert start == PVector(75, 75)\n    assert end == PVector(100.0, 100.0)\n    end.lerp(200, 200, 0, .5)\n    assert end == PVector(150.0, 150.0)\n\n    # test that instance op returns self\n    a = PVector(3, 5, 7)\n    b = a * 10\n    assert a.mult(10) == b\n\n    # test that a vector can do arithmetic with a tuple\n    assert PVector(1, 2, 3) == (1, 2, 3)\n    assert (PVector(1, 2, 3) + (3, 3, 3)) == (4, 5, 6)\n    assert (PVector(5, 5, 5) - (1, 2, 3)) == (4, 3, 2)\n\n    # Regression test for https://github.com/jdf/processing.py/issues/317\n    r = PVector.random2D() * 10\n    assert -10 <= r.x <= 10\n    assert -10 <= r.y <= 10\n    assert r.z == 0\n\n    PVector.random3D(r)\n    r += (1, 1, 1)\n    assert 0 <= r.x <= 2\n    assert 0 <= r.y <= 2\n    assert 0 <= r.z <= 2\n\n    # Regression test for https://github.com/jdf/processing.py/issues/334\n    r = PVector.fromAngle(0) * 10\n    assert r.x == 10\n    assert r.y == 0\n    assert r.z == 0\n\n    # Other p5js methods\n    text(r.toString(), 120, 120)\n    r.setMag(100)\n    assert r.mag() == 100\n    r.normalize()\n    assert r.mag() == 1\n    r.limit(10)\n    assert r.mag() == 1\n    r.limit(0.1)\n    assert r.mag() == 0.1\n\n    assert r.heading() == 0\n    r.rotate(PI)\n    assert r.heading() == PI\n\n    text('OK - ALL PASSED!', 100, 200)\n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/sketch_011/sketch_011.py",
    "content": "# Made for  https://berinhard.github.io/pyp5js/pyodide/\r\n\r\ndef setup():\r\n    size(500, 500)\r\n    test()\r\n\r\ndef test():\r\n    \"\"\"\r\n    Mostly from JDF py.processing tests\r\n    \"\"\"\r\n    a = PVector()\r\n    assert a.x == 0\r\n    assert a.y == 0\r\n    assert a.z == 0\r\n\r\n    a = PVector(5, 7, 11)\r\n    b = PVector(13, 17, 23)\r\n    assert a - b == PVector(-8.0, -10.0, -12.0)\r\n    assert b - a == PVector(8, 10, 12)\r\n    c = PVector(18, 24, 34)\r\n    assert b + a == c\r\n    assert a + b == c\r\n    assert PVector.add(a, b) == c\r\n    assert PVector.add(a, b) == c\r\n    a.add(b)\r\n    assert a == c\r\n    a.add(b)\r\n    assert a == PVector(31.0, 41.0, 57.0)\r\n\r\n    c = PVector(310.0, 410.0, 570.0)\r\n    assert a * 10 == c\r\n    assert a * 10 == c\r\n    assert PVector.mult(a, 10) == c\r\n\r\n    assert PVector.mult(a, 10) == c\r\n    a.mult(10)\r\n    assert a == c\r\n\r\n    assert int(1000 * PVector.dist(a, b)) == 736116\r\n    assert PVector.cross(a, b) == PVector(-260.0, 280.0, -60.0)\r\n    assert a.cross(b) == PVector(-260.0, 280.0, -60.0)\r\n    assert PVector.dot(a, b) == 0\r\n\r\n    d = a.get()\r\n    d += b\r\n    assert d == a + b\r\n    d = a.get()\r\n    d -= c\r\n    assert d == a - c\r\n    d = a.get()\r\n    d *= 5.0\r\n    assert d == a * 5.0\r\n    d = a.get()\r\n\r\n    d /= 5.0\r\n    assert d == a / 5.0\r\n\r\n    assert b * 5 == b * 5.0\r\n    assert b / 5 == b / 5.0\r\n    d = b.get()\r\n    d *= 391\r\n    assert d == b * 391.0\r\n    d = b.get()\r\n    d /= 10203\r\n    assert d == b / 10203.0\r\n\r\n    d = a.get()\r\n    d += a + a\r\n    assert d == a + a + a\r\n\r\n    assert a * 57.0 == 57.0 * a\r\n\r\n    assert (a / 5.0) == (1.0 / 5.0) * a\r\n\r\n    m, n = b, c\r\n    a += b * 5 - c / 2 + PVector(0, 1, 2)\r\n    assert (m, n) == (b, c)\r\n\r\n    import copy\r\n    x = [a, b]\r\n    y = copy.deepcopy(x)\r\n\r\n    assert x == y\r\n    x[0].sub(PVector(100, 100, 100))\r\n    assert x != y\r\n\r\n    a = PVector(1, 1)\r\n    b = PVector(-2, -2)\r\n    assert a < b\r\n    assert a <= b\r\n    assert b > a\r\n    assert b >= a\r\n    a = PVector(1, 2, 3)\r\n    b = PVector(3, 2, 1)\r\n    assert a != b\r\n    assert a >= b\r\n    assert b >= a\r\n    assert a.magSq() == b.magSq()\r\n\r\n    v1 = PVector(10, 20)\r\n    v2 = PVector(60, 80)\r\n    a = PVector.angleBetween(v1, v2)\r\n    # Java implementation gives slightly different value:\r\n    # assert a == 0.17985349893569946  # more or less\r\n    assert int(a * 1e8) == 17985349  # more or less\r\n\r\n    # Regression test for https://github.com/jdf/Processing.py-Bugs/issues/67\r\n    assert isinstance(PVector(1, 2), PVector)\r\n\r\n    # Regression test for https://github.com/jdf/Processing.py-Bugs/issues/101\r\n    v = PVector(10, 20, 0)\r\n    d = v.dot(60, 80, 0)\r\n    assert d == 2200.0\r\n    v2 = PVector(60, 80, 0)\r\n    d = v.dot(v2)\r\n    assert d == 2200.0\r\n\r\n    # PVector.add w/multiple arguments\r\n    v = PVector(40, 20, 0)\r\n    v.add(25, 50, 0)\r\n    assert (v.x, v.y, v.z) == (65, 70, 0)\r\n\r\n    # PVector.sub w/multiple arguments\r\n    v = PVector(40, 20, 0)\r\n    v.sub(25, 50, 0)\r\n    assert (v.x, v.y, v.z) == (15, -30, 0)\r\n\r\n    # Regression test for https://github.com/jdf/Processing.py-Bugs/issues/102\r\n    start = PVector(0.0, 0.0)\r\n    end = PVector(100.0, 100.0)\r\n    middle = PVector.lerp(start, end, 0.5)\r\n    assert middle == PVector(50.0, 50.0)\r\n    assert start == PVector(0, 0)\r\n    start.lerp(end, .75)\r\n    assert start == PVector(75, 75)\r\n    assert end == PVector(100.0, 100.0)\r\n    end.lerp(200, 200, 0, .5)\r\n    assert end == PVector(150.0, 150.0)\r\n\r\n    # test that instance op returns self\r\n    a = PVector(3, 5, 7)\r\n    b = a * 10\r\n    assert a.mult(10) == b\r\n\r\n    # test that a vector can do arithmetic with a tuple\r\n    assert PVector(1, 2, 3) == (1, 2, 3)\r\n    assert (PVector(1, 2, 3) + (3, 3, 3)) == (4, 5, 6)\r\n    assert (PVector(5, 5, 5) - (1, 2, 3)) == (4, 3, 2)\r\n\r\n    # Regression test for https://github.com/jdf/processing.py/issues/317\r\n    r = PVector.random2D() * 10\r\n    assert -10 <= r.x <= 10\r\n    assert -10 <= r.y <= 10\r\n    assert r.z == 0\r\n\r\n    PVector.random3D(r)\r\n    r += (1, 1, 1)\r\n    assert 0 <= r.x <= 2\r\n    assert 0 <= r.y <= 2\r\n    assert 0 <= r.z <= 2\r\n\r\n    # Regression test for https://github.com/jdf/processing.py/issues/334\r\n    r = PVector.fromAngle(0) * 10\r\n    assert r.x == 10\r\n    assert r.y == 0\r\n    assert r.z == 0\r\n\r\n    # Other p5js methods\r\n    text(r.toString(), 120, 120)\r\n    r.setMag(100)\r\n    assert r.mag() == 100\r\n    r.normalize()\r\n    assert r.mag() == 1\r\n    r.limit(10)\r\n    assert r.mag() == 1\r\n    r.limit(0.1)\r\n    assert r.mag() == 0.1\r\n\r\n    assert r.heading() == 0\r\n    r.rotate(PI)\r\n    assert r.heading() == PI\r\n\r\n    text('OK - ALL PASSED!', 100, 200)\r\n"
  },
  {
    "path": "docs/examples/pyodide/sketch_011/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/sketch_011/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\n# Made for  https://berinhard.github.io/pyp5js/pyodide/\n\ndef setup():\n    size(500, 500)\n    test()\n\ndef test():\n    \"\"\"\n    Mostly from JDF py.processing tests\n    \"\"\"\n    a = PVector()\n    assert a.x == 0\n    assert a.y == 0\n    assert a.z == 0\n\n    a = PVector(5, 7, 11)\n    b = PVector(13, 17, 23)\n    assert a - b == PVector(-8.0, -10.0, -12.0)\n    assert b - a == PVector(8, 10, 12)\n    c = PVector(18, 24, 34)\n    assert b + a == c\n    assert a + b == c\n    assert PVector.add(a, b) == c\n    assert PVector.add(a, b) == c\n    a.add(b)\n    assert a == c\n    a.add(b)\n    assert a == PVector(31.0, 41.0, 57.0)\n\n    c = PVector(310.0, 410.0, 570.0)\n    assert a * 10 == c\n    assert a * 10 == c\n    assert PVector.mult(a, 10) == c\n\n    assert PVector.mult(a, 10) == c\n    a.mult(10)\n    assert a == c\n\n    assert int(1000 * PVector.dist(a, b)) == 736116\n    assert PVector.cross(a, b) == PVector(-260.0, 280.0, -60.0)\n    assert a.cross(b) == PVector(-260.0, 280.0, -60.0)\n    assert PVector.dot(a, b) == 0\n\n    d = a.get()\n    d += b\n    assert d == a + b\n    d = a.get()\n    d -= c\n    assert d == a - c\n    d = a.get()\n    d *= 5.0\n    assert d == a * 5.0\n    d = a.get()\n\n    d /= 5.0\n    assert d == a / 5.0\n\n    assert b * 5 == b * 5.0\n    assert b / 5 == b / 5.0\n    d = b.get()\n    d *= 391\n    assert d == b * 391.0\n    d = b.get()\n    d /= 10203\n    assert d == b / 10203.0\n\n    d = a.get()\n    d += a + a\n    assert d == a + a + a\n\n    assert a * 57.0 == 57.0 * a\n\n    assert (a / 5.0) == (1.0 / 5.0) * a\n\n    m, n = b, c\n    a += b * 5 - c / 2 + PVector(0, 1, 2)\n    assert (m, n) == (b, c)\n\n    import copy\n    x = [a, b]\n    y = copy.deepcopy(x)\n\n    assert x == y\n    x[0].sub(PVector(100, 100, 100))\n    assert x != y\n\n    a = PVector(1, 1)\n    b = PVector(-2, -2)\n    assert a < b\n    assert a <= b\n    assert b > a\n    assert b >= a\n    a = PVector(1, 2, 3)\n    b = PVector(3, 2, 1)\n    assert a != b\n    assert a >= b\n    assert b >= a\n    assert a.magSq() == b.magSq()\n\n    v1 = PVector(10, 20)\n    v2 = PVector(60, 80)\n    a = PVector.angleBetween(v1, v2)\n    # Java implementation gives slightly different value:\n    # assert a == 0.17985349893569946  # more or less\n    assert int(a * 1e8) == 17985349  # more or less\n\n    # Regression test for https://github.com/jdf/Processing.py-Bugs/issues/67\n    assert isinstance(PVector(1, 2), PVector)\n\n    # Regression test for https://github.com/jdf/Processing.py-Bugs/issues/101\n    v = PVector(10, 20, 0)\n    d = v.dot(60, 80, 0)\n    assert d == 2200.0\n    v2 = PVector(60, 80, 0)\n    d = v.dot(v2)\n    assert d == 2200.0\n\n    # PVector.add w/multiple arguments\n    v = PVector(40, 20, 0)\n    v.add(25, 50, 0)\n    assert (v.x, v.y, v.z) == (65, 70, 0)\n\n    # PVector.sub w/multiple arguments\n    v = PVector(40, 20, 0)\n    v.sub(25, 50, 0)\n    assert (v.x, v.y, v.z) == (15, -30, 0)\n\n    # Regression test for https://github.com/jdf/Processing.py-Bugs/issues/102\n    start = PVector(0.0, 0.0)\n    end = PVector(100.0, 100.0)\n    middle = PVector.lerp(start, end, 0.5)\n    assert middle == PVector(50.0, 50.0)\n    assert start == PVector(0, 0)\n    start.lerp(end, .75)\n    assert start == PVector(75, 75)\n    assert end == PVector(100.0, 100.0)\n    end.lerp(200, 200, 0, .5)\n    assert end == PVector(150.0, 150.0)\n\n    # test that instance op returns self\n    a = PVector(3, 5, 7)\n    b = a * 10\n    assert a.mult(10) == b\n\n    # test that a vector can do arithmetic with a tuple\n    assert PVector(1, 2, 3) == (1, 2, 3)\n    assert (PVector(1, 2, 3) + (3, 3, 3)) == (4, 5, 6)\n    assert (PVector(5, 5, 5) - (1, 2, 3)) == (4, 3, 2)\n\n    # Regression test for https://github.com/jdf/processing.py/issues/317\n    r = PVector.random2D() * 10\n    assert -10 <= r.x <= 10\n    assert -10 <= r.y <= 10\n    assert r.z == 0\n\n    PVector.random3D(r)\n    r += (1, 1, 1)\n    assert 0 <= r.x <= 2\n    assert 0 <= r.y <= 2\n    assert 0 <= r.z <= 2\n\n    # Regression test for https://github.com/jdf/processing.py/issues/334\n    r = PVector.fromAngle(0) * 10\n    assert r.x == 10\n    assert r.y == 0\n    assert r.z == 0\n\n    # Other p5js methods\n    text(r.toString(), 120, 120)\n    r.setMag(100)\n    assert r.mag() == 100\n    r.normalize()\n    assert r.mag() == 1\n    r.limit(10)\n    assert r.mag() == 1\n    r.limit(0.1)\n    assert r.mag() == 0.1\n\n    assert r.heading() == 0\n    r.rotate(PI)\n    assert r.heading() == PI\n\n    text('OK - ALL PASSED!', 100, 200)\n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/pyodide/sketch_012/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_012 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/pyodide/sketch_012\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre><code>#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\n@author: A.Akdogan\n\"\"\"\nfrom random import randint\nimport os\nimport sys \nimport time\nfrom time import sleep\nprint(sys.path)\n\nclass Node:\n\n    def __init__(self, x, y):\n\n        self.x = x \n        self.y = y\n        self.f = 0\n        self.g = 0\n        self.h = 0\n        self.neighbors = []\n        self.previous = None\n        self. obstacle = False\n\n\n    def add_neighbors(self,grid, columns, rows):\n\n        neighbor_x = self.x\n        neighbor_y = self.y\n    \n        if neighbor_x < columns - 1:\n            self.neighbors.append(grid[neighbor_x+1][neighbor_y])\n        if neighbor_x > 0:\n            self.neighbors.append(grid[neighbor_x-1][neighbor_y])\n        if neighbor_y < rows -1:\n            self.neighbors.append(grid[neighbor_x][neighbor_y +1])\n        if neighbor_y > 0: \n            self.neighbors.append(grid[neighbor_x][neighbor_y-1])\n        #diagonals\n        \"\"\" if neighbor_x > 0 and neighbor_y > 0:\n            self.neighbors.append(grid[neighbor_x-1][neighbor_y-1])\n        if neighbor_x < columns -1 and neighbor_y > 0:\n            self.neighbors.append(grid[neighbor_x+1][neighbor_y-1])\n        if neighbor_x > 0 and neighbor_y <rows -1:\n            self.neighbors.append(grid[neighbor_x-1][neighbor_y+1])\n        if neighbor_x < columns -1 and neighbor_y < rows -1:\n            self.neighbors.append(grid[neighbor_x+1][neighbor_y+1]) \"\"\"\n\n\n        \nclass AStar:\n\n    def __init__(self, cols, rows, start, end):\n\n        self.cols = cols\n        self.rows = rows\n        self.start = start\n        self.end = end\n        self.obstacle_ratio = False\n        self.obstacle_list = False\n\n    @staticmethod\n    def clean_open_set(open_set, current_node):\n\n        for i in range(len(open_set)):\n            if open_set[i] == current_node:\n                open_set.pop(i)\n                break\n\n        return open_set\n\n    @staticmethod\n    def h_score(current_node, end):\n\n        distance =  abs(current_node.x - end.x) + abs(current_node.y - end.y)\n        \n        return distance\n\n    @staticmethod\n    def create_grid(cols, rows):\n\n        grid = []\n        for _ in range(cols):\n            grid.append([])\n            for _ in range(rows):\n                grid[-1].append(0)\n        \n        return grid\n\n    @staticmethod\n    def fill_grids(grid, cols, rows, obstacle_ratio = False, obstacle_list = False):\n\n        for i in range(cols):\n            for j in range(rows):\n                grid[i][j] = Node(i,j)\n                if obstacle_ratio == False:\n                    pass\n                else:\n                    n = randint(0,100)\n                    if n < obstacle_ratio: grid[i][j].obstacle = True\n        if obstacle_list == False:\n            pass\n        else:\n            for i in range(len(obstacle_list)):\n                grid[obstacle_list[i][0]][obstacle_list[i][1]].obstacle = True\n\n        return grid\n\n    @staticmethod\n    def get_neighbors(grid, cols, rows):\n        for i in range(cols):\n            for j in range(rows):\n                grid[i][j].add_neighbors(grid, cols, rows)\n        return grid\n    \n    @staticmethod\n    def start_path(open_set, closed_set, current_node, end):\n\n        best_way = 0\n        for i in range(len(open_set)):\n            if open_set[i].f < open_set[best_way].f:\n                best_way = i\n\n        current_node = open_set[best_way]\n        final_path = []\n        if current_node == end:\n            temp = current_node\n            while temp.previous:\n                final_path.append(temp.previous)\n                temp = temp.previous\n\n        open_set = AStar.clean_open_set(open_set, current_node)\n        closed_set.append(current_node)\n        neighbors = current_node.neighbors\n        for neighbor in neighbors:\n            if (neighbor in closed_set) or (neighbor.obstacle == True):\n                continue\n            else:\n                temp_g = current_node.g + 1\n                control_flag = 0\n                for k in range(len(open_set)):\n                    if neighbor.x == open_set[k].x and neighbor.y == open_set[k].y:\n                        if temp_g < open_set[k].g:\n                            open_set[k].g = temp_g\n                            open_set[k].h= AStar.h_score(open_set[k], end)\n                            open_set[k].f = open_set[k].g + open_set[k].h\n                            open_set[k].previous = current_node\n                        else:\n                            pass\n                        control_flag = 1\n                if control_flag == 1:\n                    pass\n                else:\n                    neighbor.g = temp_g\n                    neighbor.h = AStar.h_score(neighbor, end)\n                    neighbor.f = neighbor.g + neighbor.h\n                    neighbor.previous = current_node\n                    open_set.append(neighbor)\n\n        return open_set, closed_set, current_node, final_path\n\n    def main(self):\n\n        grid = AStar.create_grid(self.cols, self.rows)\n        grid = AStar.fill_grids(grid, self.cols, self.rows, obstacle_ratio = 30)\n        grid = AStar.get_neighbors(grid, self.cols, self.rows)\n        open_set  = []\n        closed_set  = []\n        current_node = None\n        final_path  = []\n        open_set.append(grid[self.start[0]][self.start[1]])\n        self.end = grid[self.end[0]][self.end[1]]\n        while len(open_set) > 0:\n            open_set, closed_set, current_node, final_path = AStar.start_path(open_set, closed_set, current_node, self.end)\n            if len(final_path) > 0:\n                break\n\n        return final_path\n\n\ncols = 25\nrows = 25 \nstart = [0,0]\nend = [24,24]\nopen_set  = []\nclosed_set  = []\ncurrent_node = None\nfinal_path  = []\ngrid = []\n\n\ndef show_func(grid_element,color, width,height): \n    if grid_element.obstacle == True:\n            fill(\"black\")\n    else:\n        fill(color)\n    noStroke()\n    rect(grid_element.x * width, grid_element.y * height, width-1 , height-1)\n\n\ndef setup():\n    global grid\n    createCanvas(500, 500)\n    background(160)\n\n        \n    \nflag = False   \n\n\ndef draw():\n    \n    global grid\n    global end\n    global open_set\n    global closed_set\n    global final_path\n    global current_node\n    global flag\n    global start\n\n    global cols \n    global rows \n  \n    frameRate(60)\n    w = width / cols\n    h = height / rows\n    if flag == False:\n        \n \n\n        grid = AStar.create_grid(cols, rows)   \n        grid = AStar.fill_grids(grid, cols, rows, obstacle_ratio = 30)\n        grid = AStar.get_neighbors(grid, cols, rows)\n        start = grid[start[0]][start[1]]\n        end = grid[end[0]][end[1]]\n        end.obstacle = False\n        start.obstacle = False\n\n        background(0)\n        for i in range(cols):\n            for j in range(rows):\n                show_func(grid[i][j], color(255),w,h)\n        stroke(0,0,0)\n        line(0, 0, 0, width)\n        line(0,0,height, 1)\n        open_set.append(start)\n\n        \n        flag = True\n\n    if len(open_set) > 0:\n        open_set, closed_set, current_node, final_path = AStar.start_path(open_set, closed_set, current_node, end)\n\n    \n    #grid\n        show_func(start, \"green\", w,h)\n        show_func(end, \"red\",w,h)\n        for i in range(len(open_set)):\n            #show_func(open_set[i], \"#00ffbf\",w,h)\n            show_func(open_set[i], \"#00ffbf\",w,h)\n\n        for i in range(len(closed_set)):\n            show_func(closed_set[i], \"#ffa500\",w,h)\n            show_func(start, \"green\", w,h)\n\n        show_func(current_node, \"#8a2be2\",w,h)\n\n        if len(open_set) == 0:\n            print(\"No way!\")\n            #noLoop()\n    \n            frameRate(1)\n            cols = 25\n            rows = 25 \n            start = [0,0]\n            end = [24,24]\n            open_set  = []\n            closed_set  = []\n            current_node = None\n            final_path  = []\n            grid = []\n            flag = False\n            \n\n        if len(final_path) > 0:\n            for i in range(len(final_path)):\n                show_func(final_path[i], \"#8a2be2\",w,h)\n                #show_func(final_path[i], \"red\",w,h)\n            show_func(start, \"green\", w,h)\n            show_func(end, \"red\",w,h)\n\n            print(\"Done!!\")\n            frameRate(1)\n            cols = 25\n            rows = 25 \n            start = [0,0]\n            end = [24,24]\n            open_set  = []\n            closed_set  = []\n            current_node = None\n            final_path  = []\n            grid = []\n            flag = False\n            \n   \n            \n</code></pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/pyodide/sketch_012/sketch_012.py",
    "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\n@author: A.Akdogan\n\"\"\"\nfrom random import randint\nimport os\nimport sys \nimport time\nfrom time import sleep\nprint(sys.path)\n\nclass Node:\n\n    def __init__(self, x, y):\n\n        self.x = x \n        self.y = y\n        self.f = 0\n        self.g = 0\n        self.h = 0\n        self.neighbors = []\n        self.previous = None\n        self. obstacle = False\n\n\n    def add_neighbors(self,grid, columns, rows):\n\n        neighbor_x = self.x\n        neighbor_y = self.y\n    \n        if neighbor_x < columns - 1:\n            self.neighbors.append(grid[neighbor_x+1][neighbor_y])\n        if neighbor_x > 0:\n            self.neighbors.append(grid[neighbor_x-1][neighbor_y])\n        if neighbor_y < rows -1:\n            self.neighbors.append(grid[neighbor_x][neighbor_y +1])\n        if neighbor_y > 0: \n            self.neighbors.append(grid[neighbor_x][neighbor_y-1])\n        #diagonals\n        \"\"\" if neighbor_x > 0 and neighbor_y > 0:\n            self.neighbors.append(grid[neighbor_x-1][neighbor_y-1])\n        if neighbor_x < columns -1 and neighbor_y > 0:\n            self.neighbors.append(grid[neighbor_x+1][neighbor_y-1])\n        if neighbor_x > 0 and neighbor_y <rows -1:\n            self.neighbors.append(grid[neighbor_x-1][neighbor_y+1])\n        if neighbor_x < columns -1 and neighbor_y < rows -1:\n            self.neighbors.append(grid[neighbor_x+1][neighbor_y+1]) \"\"\"\n\n\n        \nclass AStar:\n\n    def __init__(self, cols, rows, start, end):\n\n        self.cols = cols\n        self.rows = rows\n        self.start = start\n        self.end = end\n        self.obstacle_ratio = False\n        self.obstacle_list = False\n\n    @staticmethod\n    def clean_open_set(open_set, current_node):\n\n        for i in range(len(open_set)):\n            if open_set[i] == current_node:\n                open_set.pop(i)\n                break\n\n        return open_set\n\n    @staticmethod\n    def h_score(current_node, end):\n\n        distance =  abs(current_node.x - end.x) + abs(current_node.y - end.y)\n        \n        return distance\n\n    @staticmethod\n    def create_grid(cols, rows):\n\n        grid = []\n        for _ in range(cols):\n            grid.append([])\n            for _ in range(rows):\n                grid[-1].append(0)\n        \n        return grid\n\n    @staticmethod\n    def fill_grids(grid, cols, rows, obstacle_ratio = False, obstacle_list = False):\n\n        for i in range(cols):\n            for j in range(rows):\n                grid[i][j] = Node(i,j)\n                if obstacle_ratio == False:\n                    pass\n                else:\n                    n = randint(0,100)\n                    if n < obstacle_ratio: grid[i][j].obstacle = True\n        if obstacle_list == False:\n            pass\n        else:\n            for i in range(len(obstacle_list)):\n                grid[obstacle_list[i][0]][obstacle_list[i][1]].obstacle = True\n\n        return grid\n\n    @staticmethod\n    def get_neighbors(grid, cols, rows):\n        for i in range(cols):\n            for j in range(rows):\n                grid[i][j].add_neighbors(grid, cols, rows)\n        return grid\n    \n    @staticmethod\n    def start_path(open_set, closed_set, current_node, end):\n\n        best_way = 0\n        for i in range(len(open_set)):\n            if open_set[i].f < open_set[best_way].f:\n                best_way = i\n\n        current_node = open_set[best_way]\n        final_path = []\n        if current_node == end:\n            temp = current_node\n            while temp.previous:\n                final_path.append(temp.previous)\n                temp = temp.previous\n\n        open_set = AStar.clean_open_set(open_set, current_node)\n        closed_set.append(current_node)\n        neighbors = current_node.neighbors\n        for neighbor in neighbors:\n            if (neighbor in closed_set) or (neighbor.obstacle == True):\n                continue\n            else:\n                temp_g = current_node.g + 1\n                control_flag = 0\n                for k in range(len(open_set)):\n                    if neighbor.x == open_set[k].x and neighbor.y == open_set[k].y:\n                        if temp_g < open_set[k].g:\n                            open_set[k].g = temp_g\n                            open_set[k].h= AStar.h_score(open_set[k], end)\n                            open_set[k].f = open_set[k].g + open_set[k].h\n                            open_set[k].previous = current_node\n                        else:\n                            pass\n                        control_flag = 1\n                if control_flag == 1:\n                    pass\n                else:\n                    neighbor.g = temp_g\n                    neighbor.h = AStar.h_score(neighbor, end)\n                    neighbor.f = neighbor.g + neighbor.h\n                    neighbor.previous = current_node\n                    open_set.append(neighbor)\n\n        return open_set, closed_set, current_node, final_path\n\n    def main(self):\n\n        grid = AStar.create_grid(self.cols, self.rows)\n        grid = AStar.fill_grids(grid, self.cols, self.rows, obstacle_ratio = 30)\n        grid = AStar.get_neighbors(grid, self.cols, self.rows)\n        open_set  = []\n        closed_set  = []\n        current_node = None\n        final_path  = []\n        open_set.append(grid[self.start[0]][self.start[1]])\n        self.end = grid[self.end[0]][self.end[1]]\n        while len(open_set) > 0:\n            open_set, closed_set, current_node, final_path = AStar.start_path(open_set, closed_set, current_node, self.end)\n            if len(final_path) > 0:\n                break\n\n        return final_path\n\n\ncols = 25\nrows = 25 \nstart = [0,0]\nend = [24,24]\nopen_set  = []\nclosed_set  = []\ncurrent_node = None\nfinal_path  = []\ngrid = []\n\n\ndef show_func(grid_element,color, width,height): \n    if grid_element.obstacle == True:\n            fill(\"black\")\n    else:\n        fill(color)\n    noStroke()\n    rect(grid_element.x * width, grid_element.y * height, width-1 , height-1)\n\n\ndef setup():\n    global grid\n    createCanvas(500, 500)\n    background(160)\n\n        \n    \nflag = False   \n\n\ndef draw():\n    \n    global grid\n    global end\n    global open_set\n    global closed_set\n    global final_path\n    global current_node\n    global flag\n    global start\n\n    global cols \n    global rows \n  \n    frameRate(60)\n    w = width / cols\n    h = height / rows\n    if flag == False:\n        \n \n\n        grid = AStar.create_grid(cols, rows)   \n        grid = AStar.fill_grids(grid, cols, rows, obstacle_ratio = 30)\n        grid = AStar.get_neighbors(grid, cols, rows)\n        start = grid[start[0]][start[1]]\n        end = grid[end[0]][end[1]]\n        end.obstacle = False\n        start.obstacle = False\n\n        background(0)\n        for i in range(cols):\n            for j in range(rows):\n                show_func(grid[i][j], color(255),w,h)\n        stroke(0,0,0)\n        line(0, 0, 0, width)\n        line(0,0,height, 1)\n        open_set.append(start)\n\n        \n        flag = True\n\n    if len(open_set) > 0:\n        open_set, closed_set, current_node, final_path = AStar.start_path(open_set, closed_set, current_node, end)\n\n    \n    #grid\n        show_func(start, \"green\", w,h)\n        show_func(end, \"red\",w,h)\n        for i in range(len(open_set)):\n            #show_func(open_set[i], \"#00ffbf\",w,h)\n            show_func(open_set[i], \"#00ffbf\",w,h)\n\n        for i in range(len(closed_set)):\n            show_func(closed_set[i], \"#ffa500\",w,h)\n            show_func(start, \"green\", w,h)\n\n        show_func(current_node, \"#8a2be2\",w,h)\n\n        if len(open_set) == 0:\n            print(\"No way!\")\n            #noLoop()\n    \n            frameRate(1)\n            cols = 25\n            rows = 25 \n            start = [0,0]\n            end = [24,24]\n            open_set  = []\n            closed_set  = []\n            current_node = None\n            final_path  = []\n            grid = []\n            flag = False\n            \n\n        if len(final_path) > 0:\n            for i in range(len(final_path)):\n                show_func(final_path[i], \"#8a2be2\",w,h)\n                #show_func(final_path[i], \"red\",w,h)\n            show_func(start, \"green\", w,h)\n            show_func(end, \"red\",w,h)\n\n            print(\"Done!!\")\n            frameRate(1)\n            cols = 25\n            rows = 25 \n            start = [0,0]\n            end = [24,24]\n            open_set  = []\n            closed_set  = []\n            current_node = None\n            final_path  = []\n            grid = []\n            flag = False\n            \n   \n            \n"
  },
  {
    "path": "docs/examples/pyodide/sketch_012/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/pyodide/sketch_012/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\n#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\n@author: A.Akdogan\n\"\"\"\nfrom random import randint\nimport os\nimport sys \nimport time\nfrom time import sleep\nprint(sys.path)\n\nclass Node:\n\n    def __init__(self, x, y):\n\n        self.x = x \n        self.y = y\n        self.f = 0\n        self.g = 0\n        self.h = 0\n        self.neighbors = []\n        self.previous = None\n        self. obstacle = False\n\n\n    def add_neighbors(self,grid, columns, rows):\n\n        neighbor_x = self.x\n        neighbor_y = self.y\n    \n        if neighbor_x < columns - 1:\n            self.neighbors.append(grid[neighbor_x+1][neighbor_y])\n        if neighbor_x > 0:\n            self.neighbors.append(grid[neighbor_x-1][neighbor_y])\n        if neighbor_y < rows -1:\n            self.neighbors.append(grid[neighbor_x][neighbor_y +1])\n        if neighbor_y > 0: \n            self.neighbors.append(grid[neighbor_x][neighbor_y-1])\n        #diagonals\n        \"\"\" if neighbor_x > 0 and neighbor_y > 0:\n            self.neighbors.append(grid[neighbor_x-1][neighbor_y-1])\n        if neighbor_x < columns -1 and neighbor_y > 0:\n            self.neighbors.append(grid[neighbor_x+1][neighbor_y-1])\n        if neighbor_x > 0 and neighbor_y <rows -1:\n            self.neighbors.append(grid[neighbor_x-1][neighbor_y+1])\n        if neighbor_x < columns -1 and neighbor_y < rows -1:\n            self.neighbors.append(grid[neighbor_x+1][neighbor_y+1]) \"\"\"\n\n\n        \nclass AStar:\n\n    def __init__(self, cols, rows, start, end):\n\n        self.cols = cols\n        self.rows = rows\n        self.start = start\n        self.end = end\n        self.obstacle_ratio = False\n        self.obstacle_list = False\n\n    @staticmethod\n    def clean_open_set(open_set, current_node):\n\n        for i in range(len(open_set)):\n            if open_set[i] == current_node:\n                open_set.pop(i)\n                break\n\n        return open_set\n\n    @staticmethod\n    def h_score(current_node, end):\n\n        distance =  abs(current_node.x - end.x) + abs(current_node.y - end.y)\n        \n        return distance\n\n    @staticmethod\n    def create_grid(cols, rows):\n\n        grid = []\n        for _ in range(cols):\n            grid.append([])\n            for _ in range(rows):\n                grid[-1].append(0)\n        \n        return grid\n\n    @staticmethod\n    def fill_grids(grid, cols, rows, obstacle_ratio = False, obstacle_list = False):\n\n        for i in range(cols):\n            for j in range(rows):\n                grid[i][j] = Node(i,j)\n                if obstacle_ratio == False:\n                    pass\n                else:\n                    n = randint(0,100)\n                    if n < obstacle_ratio: grid[i][j].obstacle = True\n        if obstacle_list == False:\n            pass\n        else:\n            for i in range(len(obstacle_list)):\n                grid[obstacle_list[i][0]][obstacle_list[i][1]].obstacle = True\n\n        return grid\n\n    @staticmethod\n    def get_neighbors(grid, cols, rows):\n        for i in range(cols):\n            for j in range(rows):\n                grid[i][j].add_neighbors(grid, cols, rows)\n        return grid\n    \n    @staticmethod\n    def start_path(open_set, closed_set, current_node, end):\n\n        best_way = 0\n        for i in range(len(open_set)):\n            if open_set[i].f < open_set[best_way].f:\n                best_way = i\n\n        current_node = open_set[best_way]\n        final_path = []\n        if current_node == end:\n            temp = current_node\n            while temp.previous:\n                final_path.append(temp.previous)\n                temp = temp.previous\n\n        open_set = AStar.clean_open_set(open_set, current_node)\n        closed_set.append(current_node)\n        neighbors = current_node.neighbors\n        for neighbor in neighbors:\n            if (neighbor in closed_set) or (neighbor.obstacle == True):\n                continue\n            else:\n                temp_g = current_node.g + 1\n                control_flag = 0\n                for k in range(len(open_set)):\n                    if neighbor.x == open_set[k].x and neighbor.y == open_set[k].y:\n                        if temp_g < open_set[k].g:\n                            open_set[k].g = temp_g\n                            open_set[k].h= AStar.h_score(open_set[k], end)\n                            open_set[k].f = open_set[k].g + open_set[k].h\n                            open_set[k].previous = current_node\n                        else:\n                            pass\n                        control_flag = 1\n                if control_flag == 1:\n                    pass\n                else:\n                    neighbor.g = temp_g\n                    neighbor.h = AStar.h_score(neighbor, end)\n                    neighbor.f = neighbor.g + neighbor.h\n                    neighbor.previous = current_node\n                    open_set.append(neighbor)\n\n        return open_set, closed_set, current_node, final_path\n\n    def main(self):\n\n        grid = AStar.create_grid(self.cols, self.rows)\n        grid = AStar.fill_grids(grid, self.cols, self.rows, obstacle_ratio = 30)\n        grid = AStar.get_neighbors(grid, self.cols, self.rows)\n        open_set  = []\n        closed_set  = []\n        current_node = None\n        final_path  = []\n        open_set.append(grid[self.start[0]][self.start[1]])\n        self.end = grid[self.end[0]][self.end[1]]\n        while len(open_set) > 0:\n            open_set, closed_set, current_node, final_path = AStar.start_path(open_set, closed_set, current_node, self.end)\n            if len(final_path) > 0:\n                break\n\n        return final_path\n\n\ncols = 25\nrows = 25 \nstart = [0,0]\nend = [24,24]\nopen_set  = []\nclosed_set  = []\ncurrent_node = None\nfinal_path  = []\ngrid = []\n\n\ndef show_func(grid_element,color, width,height): \n    if grid_element.obstacle == True:\n            fill(\"black\")\n    else:\n        fill(color)\n    noStroke()\n    rect(grid_element.x * width, grid_element.y * height, width-1 , height-1)\n\n\ndef setup():\n    global grid\n    createCanvas(500, 500)\n    background(160)\n\n        \n    \nflag = False   \n\n\ndef draw():\n    \n    global grid\n    global end\n    global open_set\n    global closed_set\n    global final_path\n    global current_node\n    global flag\n    global start\n\n    global cols \n    global rows \n  \n    frameRate(60)\n    w = width / cols\n    h = height / rows\n    if flag == False:\n        \n \n\n        grid = AStar.create_grid(cols, rows)   \n        grid = AStar.fill_grids(grid, cols, rows, obstacle_ratio = 30)\n        grid = AStar.get_neighbors(grid, cols, rows)\n        start = grid[start[0]][start[1]]\n        end = grid[end[0]][end[1]]\n        end.obstacle = False\n        start.obstacle = False\n\n        background(0)\n        for i in range(cols):\n            for j in range(rows):\n                show_func(grid[i][j], color(255),w,h)\n        stroke(0,0,0)\n        line(0, 0, 0, width)\n        line(0,0,height, 1)\n        open_set.append(start)\n\n        \n        flag = True\n\n    if len(open_set) > 0:\n        open_set, closed_set, current_node, final_path = AStar.start_path(open_set, closed_set, current_node, end)\n\n    \n    #grid\n        show_func(start, \"green\", w,h)\n        show_func(end, \"red\",w,h)\n        for i in range(len(open_set)):\n            #show_func(open_set[i], \"#00ffbf\",w,h)\n            show_func(open_set[i], \"#00ffbf\",w,h)\n\n        for i in range(len(closed_set)):\n            show_func(closed_set[i], \"#ffa500\",w,h)\n            show_func(start, \"green\", w,h)\n\n        show_func(current_node, \"#8a2be2\",w,h)\n\n        if len(open_set) == 0:\n            print(\"No way!\")\n            #noLoop()\n    \n            frameRate(1)\n            cols = 25\n            rows = 25 \n            start = [0,0]\n            end = [24,24]\n            open_set  = []\n            closed_set  = []\n            current_node = None\n            final_path  = []\n            grid = []\n            flag = False\n            \n\n        if len(final_path) > 0:\n            for i in range(len(final_path)):\n                show_func(final_path[i], \"#8a2be2\",w,h)\n                #show_func(final_path[i], \"red\",w,h)\n            show_func(start, \"green\", w,h)\n            show_func(end, \"red\",w,h)\n\n            print(\"Done!!\")\n            frameRate(1)\n            cols = 25\n            rows = 25 \n            start = [0,0]\n            end = [24,24]\n            open_set  = []\n            closed_set  = []\n            current_node = None\n            final_path  = []\n            grid = []\n            flag = False\n            \n   \n            \n\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "docs/examples/sketch_000/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- pyp5js index.html boilerplate -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_000 - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"static/p5.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n  </head>\n\n  <body>\n    <div id=\"sketch-holder\">\n          <!-- You sketch will go here! -->\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/sketch_000/sketch_000.py",
    "content": "from pyp5js import *\n\n\ndef setup():\n    createCanvas(200, 200)\n\ndef draw():\n    background(200)\n    diameter = sin(frameCount / 60) * 50 + 50\n    fill(\"blue\")\n    ellipse(100, 100, diameter, diameter)\n"
  },
  {
    "path": "docs/examples/sketch_000/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/sketch_000/target/org.transcrypt.__runtime__.js",
    "content": "// Transcrypt'ed from Python, 2020-04-28 21:56:45\nvar __name__ = 'org.transcrypt.__runtime__';\nexport var __envir__ = {};\n__envir__.interpreter_name = 'python';\n__envir__.transpiler_name = 'transcrypt';\n__envir__.executor_name = __envir__.transpiler_name;\n__envir__.transpiler_version = '3.7.16';\n\nexport function __nest__ (headObject, tailNames, value) {\n    var current = headObject;\n    if (tailNames != '') {\n        var tailChain = tailNames.split ('.');\n        var firstNewIndex = tailChain.length;\n        for (var index = 0; index < tailChain.length; index++) {\n            if (!current.hasOwnProperty (tailChain [index])) {\n                firstNewIndex = index;\n                break;\n            }\n            current = current [tailChain [index]];\n        }\n        for (var index = firstNewIndex; index < tailChain.length; index++) {\n            current [tailChain [index]] = {};\n            current = current [tailChain [index]];\n        }\n    }\n    for (let attrib of Object.getOwnPropertyNames (value)) {\n        Object.defineProperty (current, attrib, {\n            get () {return value [attrib];},\n            enumerable: true,\n            configurable: true\n        });\n    }\n};\nexport function __init__ (module) {\n    if (!module.__inited__) {\n        module.__all__.__init__ (module.__all__);\n        module.__inited__ = true;\n    }\n    return module.__all__;\n};\nexport var __proxy__ = false;\nexport function __get__ (self, func, quotedFuncName) {\n    if (self) {\n        if (self.hasOwnProperty ('__class__') || typeof self == 'string' || self instanceof String) {\n            if (quotedFuncName) {\n                Object.defineProperty (self, quotedFuncName, {\n                    value: function () {\n                        var args = [] .slice.apply (arguments);\n                        return func.apply (null, [self] .concat (args));\n                    },\n                    writable: true,\n                    enumerable: true,\n                    configurable: true\n                });\n            }\n            return function () {\n                var args = [] .slice.apply (arguments);\n                return func.apply (null, [self] .concat (args));\n            };\n        }\n        else {\n            return func;\n        }\n    }\n    else {\n        return func;\n    }\n};\nexport function __getcm__ (self, func, quotedFuncName) {\n    if (self.hasOwnProperty ('__class__')) {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [self.__class__] .concat (args));\n        };\n    }\n    else {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [self] .concat (args));\n        };\n    }\n};\nexport function __getsm__ (self, func, quotedFuncName) {\n    return func;\n};\nexport var py_metatype = {\n    __name__: 'type',\n    __bases__: [],\n    __new__: function (meta, name, bases, attribs) {\n        var cls = function () {\n            var args = [] .slice.apply (arguments);\n            return cls.__new__ (args);\n        };\n        for (var index = bases.length - 1; index >= 0; index--) {\n            var base = bases [index];\n            for (var attrib in base) {\n                var descrip = Object.getOwnPropertyDescriptor (base, attrib);\n                Object.defineProperty (cls, attrib, descrip);\n            }\n            for (let symbol of Object.getOwnPropertySymbols (base)) {\n                let descrip = Object.getOwnPropertyDescriptor (base, symbol);\n                Object.defineProperty (cls, symbol, descrip);\n            }\n        }\n        cls.__metaclass__ = meta;\n        cls.__name__ = name.startsWith ('py_') ? name.slice (3) : name;\n        cls.__bases__ = bases;\n        for (var attrib in attribs) {\n            var descrip = Object.getOwnPropertyDescriptor (attribs, attrib);\n            Object.defineProperty (cls, attrib, descrip);\n        }\n        for (let symbol of Object.getOwnPropertySymbols (attribs)) {\n            let descrip = Object.getOwnPropertyDescriptor (attribs, symbol);\n            Object.defineProperty (cls, symbol, descrip);\n        }\n        return cls;\n    }\n};\npy_metatype.__metaclass__ = py_metatype;\nexport var object = {\n    __init__: function (self) {},\n    __metaclass__: py_metatype,\n    __name__: 'object',\n    __bases__: [],\n    __new__: function (args) {\n        var instance = Object.create (this, {__class__: {value: this, enumerable: true}});\n        if ('__getattr__' in this || '__setattr__' in this) {\n            instance = new Proxy (instance, {\n                get: function (target, name) {\n                    let result = target [name];\n                    if (result == undefined) {\n                        return target.__getattr__ (name);\n                    }\n                    else {\n                        return result;\n                    }\n                },\n                set: function (target, name, value) {\n                    try {\n                        target.__setattr__ (name, value);\n                    }\n                    catch (exception) {\n                        target [name] = value;\n                    }\n                    return true;\n                }\n            })\n        }\n        this.__init__.apply (null, [instance] .concat (args));\n        return instance;\n    }\n};\nexport function __class__ (name, bases, attribs, meta) {\n    if (meta === undefined) {\n        meta = bases [0] .__metaclass__;\n    }\n    return meta.__new__ (meta, name, bases, attribs);\n};\nexport function __pragma__ () {};\nexport function __call__ (/* <callee>, <this>, <params>* */) {\n    var args = [] .slice.apply (arguments);\n    if (typeof args [0] == 'object' && '__call__' in args [0]) {\n        return args [0] .__call__ .apply (args [1], args.slice (2));\n    }\n    else {\n        return args [0] .apply (args [1], args.slice (2));\n    }\n};\n__envir__.executor_name = __envir__.transpiler_name;\nvar __main__ = {__file__: ''};\nvar __except__ = null;\nexport function __kwargtrans__ (anObject) {\n    anObject.__kwargtrans__ = null;\n    anObject.constructor = Object;\n    return anObject;\n}\nexport function __super__ (aClass, methodName) {\n    for (let base of aClass.__bases__) {\n        if (methodName in base) {\n           return base [methodName];\n        }\n    }\n    throw new Exception ('Superclass method not found');\n}\nexport function property (getter, setter) {\n    if (!setter) {\n        setter = function () {};\n    }\n    return {get: function () {return getter (this)}, set: function (value) {setter (this, value)}, enumerable: true};\n}\nexport function __setproperty__ (anObject, name, descriptor) {\n    if (!anObject.hasOwnProperty (name)) {\n        Object.defineProperty (anObject, name, descriptor);\n    }\n}\nexport function assert (condition, message) {\n    if (!condition) {\n        throw AssertionError (message, new Error ());\n    }\n}\nexport function __mergekwargtrans__ (object0, object1) {\n    var result = {};\n    for (var attrib in object0) {\n        result [attrib] = object0 [attrib];\n    }\n    for (var attrib in object1) {\n        result [attrib] = object1 [attrib];\n    }\n    return result;\n};\nexport function __mergefields__ (targetClass, sourceClass) {\n    let fieldNames = ['__reprfields__', '__comparefields__', '__initfields__']\n    if (sourceClass [fieldNames [0]]) {\n        if (targetClass [fieldNames [0]]) {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set ([...targetClass [fieldName], ...sourceClass [fieldName]]);\n            }\n        }\n        else {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set (sourceClass [fieldName]);\n            }\n        }\n    }\n}\nexport function __withblock__ (manager, statements) {\n    if (hasattr (manager, '__enter__')) {\n        try {\n            manager.__enter__ ();\n            statements ();\n            manager.__exit__ ();\n        }\n        catch (exception) {\n            if (! (manager.__exit__ (exception.name, exception, exception.stack))) {\n                throw exception;\n            }\n        }\n    }\n    else {\n        statements ();\n        manager.close ();\n    }\n};\nexport function dir (obj) {\n    var aList = [];\n    for (var aKey in obj) {\n        aList.push (aKey.startsWith ('py_') ? aKey.slice (3) : aKey);\n    }\n    aList.sort ();\n    return aList;\n};\nexport function setattr (obj, name, value) {\n    obj [name] = value;\n};\nexport function getattr (obj, name) {\n    return name in obj ? obj [name] : obj ['py_' + name];\n};\nexport function hasattr (obj, name) {\n    try {\n        return name in obj || 'py_' + name in obj;\n    }\n    catch (exception) {\n        return false;\n    }\n};\nexport function delattr (obj, name) {\n    if (name in obj) {\n        delete obj [name];\n    }\n    else {\n        delete obj ['py_' + name];\n    }\n};\nexport function __in__ (element, container) {\n    if (container === undefined || container === null) {\n        return false;\n    }\n    if (container.__contains__ instanceof Function) {\n        return container.__contains__ (element);\n    }\n    else {\n        return (\n            container.indexOf ?\n            container.indexOf (element) > -1 :\n            container.hasOwnProperty (element)\n        );\n    }\n};\nexport function __specialattrib__ (attrib) {\n    return (attrib.startswith ('__') && attrib.endswith ('__')) || attrib == 'constructor' || attrib.startswith ('py_');\n};\nexport function len (anObject) {\n    if (anObject === undefined || anObject === null) {\n        return 0;\n    }\n    if (anObject.__len__ instanceof Function) {\n        return anObject.__len__ ();\n    }\n    if (anObject.length !== undefined) {\n        return anObject.length;\n    }\n    var length = 0;\n    for (var attr in anObject) {\n        if (!__specialattrib__ (attr)) {\n            length++;\n        }\n    }\n    return length;\n};\nexport function __i__ (any) {\n    return py_typeof (any) == dict ? any.py_keys () : any;\n}\nexport function __k__ (keyed, key) {\n    var result = keyed [key];\n    if (typeof result == 'undefined') {\n        if (keyed instanceof Array)\n            if (key == +key && key >= 0 && keyed.length > key)\n                return result;\n            else\n                throw IndexError (key, new Error());\n        else\n            throw KeyError (key, new Error());\n    }\n    return result;\n}\nexport function __t__ (target) {\n    return (\n        target === undefined || target === null ? false :\n        ['boolean', 'number'] .indexOf (typeof target) >= 0 ? target :\n        target.__bool__ instanceof Function ? (target.__bool__ () ? target : false) :\n        target.__len__ instanceof Function ?  (target.__len__ () !== 0 ? target : false) :\n        target instanceof Function ? target :\n        len (target) !== 0 ? target :\n        false\n    );\n}\nexport function float (any) {\n    if (any == 'inf') {\n        return Infinity;\n    }\n    else if (any == '-inf') {\n        return -Infinity;\n    }\n    else if (any == 'nan') {\n        return NaN;\n    }\n    else if (isNaN (parseFloat (any))) {\n        if (any === false) {\n            return 0;\n        }\n        else if (any === true) {\n            return 1;\n        }\n        else {\n            throw ValueError (\"could not convert string to float: '\" + str(any) + \"'\", new Error ());\n        }\n    }\n    else {\n        return +any;\n    }\n};\nfloat.__name__ = 'float';\nfloat.__bases__ = [object];\nexport function int (any) {\n    return float (any) | 0\n};\nint.__name__ = 'int';\nint.__bases__ = [object];\nexport function bool (any) {\n    return !!__t__ (any);\n};\nbool.__name__ = 'bool';\nbool.__bases__ = [int];\nexport function py_typeof (anObject) {\n    var aType = typeof anObject;\n    if (aType == 'object') {\n        try {\n            return '__class__' in anObject ? anObject.__class__ : object;\n        }\n        catch (exception) {\n            return aType;\n        }\n    }\n    else {\n        return (\n            aType == 'boolean' ? bool :\n            aType == 'string' ? str :\n            aType == 'number' ? (anObject % 1 == 0 ? int : float) :\n            null\n        );\n    }\n};\nexport function issubclass (aClass, classinfo) {\n    if (classinfo instanceof Array) {\n        for (let aClass2 of classinfo) {\n            if (issubclass (aClass, aClass2)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    try {\n        var aClass2 = aClass;\n        if (aClass2 == classinfo) {\n            return true;\n        }\n        else {\n            var bases = [].slice.call (aClass2.__bases__);\n            while (bases.length) {\n                aClass2 = bases.shift ();\n                if (aClass2 == classinfo) {\n                    return true;\n                }\n                if (aClass2.__bases__.length) {\n                    bases = [].slice.call (aClass2.__bases__).concat (bases);\n                }\n            }\n            return false;\n        }\n    }\n    catch (exception) {\n        return aClass == classinfo || classinfo == object;\n    }\n};\nexport function isinstance (anObject, classinfo) {\n    try {\n        return '__class__' in anObject ? issubclass (anObject.__class__, classinfo) : issubclass (py_typeof (anObject), classinfo);\n    }\n    catch (exception) {\n        return issubclass (py_typeof (anObject), classinfo);\n    }\n};\nexport function callable (anObject) {\n    return anObject && typeof anObject == 'object' && '__call__' in anObject ? true : typeof anObject === 'function';\n};\nexport function repr (anObject) {\n    try {\n        return anObject.__repr__ ();\n    }\n    catch (exception) {\n        try {\n            return anObject.__str__ ();\n        }\n        catch (exception) {\n            try {\n                if (anObject == null) {\n                    return 'None';\n                }\n                else if (anObject.constructor == Object) {\n                    var result = '{';\n                    var comma = false;\n                    for (var attrib in anObject) {\n                        if (!__specialattrib__ (attrib)) {\n                            if (attrib.isnumeric ()) {\n                                var attribRepr = attrib;\n                            }\n                            else {\n                                var attribRepr = '\\'' + attrib + '\\'';\n                            }\n                            if (comma) {\n                                result += ', ';\n                            }\n                            else {\n                                comma = true;\n                            }\n                            result += attribRepr + ': ' + repr (anObject [attrib]);\n                        }\n                    }\n                    result += '}';\n                    return result;\n                }\n                else {\n                    return typeof anObject == 'boolean' ? anObject.toString () .capitalize () : anObject.toString ();\n                }\n            }\n            catch (exception) {\n                return '<object of type: ' + typeof anObject + '>';\n            }\n        }\n    }\n};\nexport function chr (charCode) {\n    return String.fromCharCode (charCode);\n};\nexport function ord (aChar) {\n    return aChar.charCodeAt (0);\n};\nexport function max (nrOrSeq) {\n    return arguments.length == 1 ? Math.max (...nrOrSeq) : Math.max (...arguments);\n};\nexport function min (nrOrSeq) {\n    return arguments.length == 1 ? Math.min (...nrOrSeq) : Math.min (...arguments);\n};\nexport var abs = Math.abs;\nexport function round (number, ndigits) {\n    if (ndigits) {\n        var scale = Math.pow (10, ndigits);\n        number *= scale;\n    }\n    var rounded = Math.round (number);\n    if (rounded - number == 0.5 && rounded % 2) {\n        rounded -= 1;\n    }\n    if (ndigits) {\n        rounded /= scale;\n    }\n    return rounded;\n};\nexport function __jsUsePyNext__ () {\n    try {\n        var result = this.__next__ ();\n        return {value: result, done: false};\n    }\n    catch (exception) {\n        return {value: undefined, done: true};\n    }\n}\nexport function __pyUseJsNext__ () {\n    var result = this.next ();\n    if (result.done) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result.value;\n    }\n}\nexport function py_iter (iterable) {\n    if (typeof iterable == 'string' || '__iter__' in iterable) {\n        var result = iterable.__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('selector' in iterable) {\n        var result = list (iterable) .__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('next' in iterable) {\n        var result = iterable\n        if (! ('__next__' in result)) {\n            result.__next__ = __pyUseJsNext__;\n        }\n    }\n    else if (Symbol.iterator in iterable) {\n        var result = iterable [Symbol.iterator] ();\n        result.__next__ = __pyUseJsNext__;\n    }\n    else {\n        throw IterableError (new Error ());\n    }\n    result [Symbol.iterator] = function () {return result;};\n    return result;\n}\nexport function py_next (iterator) {\n    try {\n        var result = iterator.__next__ ();\n    }\n    catch (exception) {\n        var result = iterator.next ();\n        if (result.done) {\n            throw StopIteration (new Error ());\n        }\n        else {\n            return result.value;\n        }\n    }\n    if (result == undefined) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result;\n    }\n}\nexport function __PyIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__PyIterator__.prototype.__next__ = function() {\n    if (this.index < this.iterable.length) {\n        return this.iterable [this.index++];\n    }\n    else {\n        throw StopIteration (new Error ());\n    }\n};\nexport function __JsIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__JsIterator__.prototype.next = function () {\n    if (this.index < this.iterable.py_keys.length) {\n        return {value: this.index++, done: false};\n    }\n    else {\n        return {value: undefined, done: true};\n    }\n};\nexport function py_reversed (iterable) {\n    iterable = iterable.slice ();\n    iterable.reverse ();\n    return iterable;\n};\nexport function zip () {\n    var args = [] .slice.call (arguments);\n    for (var i = 0; i < args.length; i++) {\n        if (typeof args [i] == 'string') {\n            args [i] = args [i] .split ('');\n        }\n        else if (!Array.isArray (args [i])) {\n            args [i] = Array.from (args [i]);\n        }\n    }\n    var shortest = args.length == 0 ? [] : args.reduce (\n        function (array0, array1) {\n            return array0.length < array1.length ? array0 : array1;\n        }\n    );\n    return shortest.map (\n        function (current, index) {\n            return args.map (\n                function (current) {\n                    return current [index];\n                }\n            );\n        }\n    );\n};\nexport function range (start, stop, step) {\n    if (stop == undefined) {\n        stop = start;\n        start = 0;\n    }\n    if (step == undefined) {\n        step = 1;\n    }\n    if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) {\n        return [];\n    }\n    var result = [];\n    for (var i = start; step > 0 ? i < stop : i > stop; i += step) {\n        result.push(i);\n    }\n    return result;\n};\nexport function any (iterable) {\n    for (let item of iterable) {\n        if (bool (item)) {\n            return true;\n        }\n    }\n    return false;\n}\nexport function all (iterable) {\n    for (let item of iterable) {\n        if (! bool (item)) {\n            return false;\n        }\n    }\n    return true;\n}\nexport function sum (iterable) {\n    let result = 0;\n    for (let item of iterable) {\n        result += item;\n    }\n    return result;\n}\nexport function enumerate (iterable) {\n    return zip (range (len (iterable)), iterable);\n}\nexport function copy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = anObject [attrib];\n            }\n        }\n        return result;\n    }\n}\nexport function deepcopy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = deepcopy (anObject [attrib]);\n            }\n        }\n        return result;\n    }\n}\nexport function list (iterable) {\n    let instance = iterable ? Array.from (iterable) : [];\n    return instance;\n}\nArray.prototype.__class__ = list;\nlist.__name__ = 'list';\nlist.__bases__ = [object];\nArray.prototype.__iter__ = function () {return new __PyIterator__ (this);};\nArray.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    else if (stop > this.length) {\n        stop = this.length;\n    }\n    if (step == 1) {\n        return Array.prototype.slice.call(this, start, stop);\n    }\n    let result = list ([]);\n    for (let index = start; index < stop; index += step) {\n        result.push (this [index]);\n    }\n    return result;\n};\nArray.prototype.__setslice__ = function (start, stop, step, source) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    if (step == null) {\n        Array.prototype.splice.apply (this, [start, stop - start] .concat (source));\n    }\n    else {\n        let sourceIndex = 0;\n        for (let targetIndex = start; targetIndex < stop; targetIndex += step) {\n            this [targetIndex] = source [sourceIndex++];\n        }\n    }\n};\nArray.prototype.__repr__ = function () {\n    if (this.__class__ == set && !this.length) {\n        return 'set()';\n    }\n    let result = !this.__class__ || this.__class__ == list ? '[' : this.__class__ == tuple ? '(' : '{';\n    for (let index = 0; index < this.length; index++) {\n        if (index) {\n            result += ', ';\n        }\n        result += repr (this [index]);\n    }\n    if (this.__class__ == tuple && this.length == 1) {\n        result += ',';\n    }\n    result += !this.__class__ || this.__class__ == list ? ']' : this.__class__ == tuple ? ')' : '}';;\n    return result;\n};\nArray.prototype.__str__ = Array.prototype.__repr__;\nArray.prototype.append = function (element) {\n    this.push (element);\n};\nArray.prototype.py_clear = function () {\n    this.length = 0;\n};\nArray.prototype.extend = function (aList) {\n    this.push.apply (this, aList);\n};\nArray.prototype.insert = function (index, element) {\n    this.splice (index, 0, element);\n};\nArray.prototype.remove = function (element) {\n    let index = this.indexOf (element);\n    if (index == -1) {\n        throw ValueError (\"list.remove(x): x not in list\", new Error ());\n    }\n    this.splice (index, 1);\n};\nArray.prototype.index = function (element) {\n    return this.indexOf (element);\n};\nArray.prototype.py_pop = function (index) {\n    if (index == undefined) {\n        return this.pop ();\n    }\n    else {\n        return this.splice (index, 1) [0];\n    }\n};\nArray.prototype.py_sort = function () {\n    __sort__.apply  (null, [this].concat ([] .slice.apply (arguments)));\n};\nArray.prototype.__add__ = function (aList) {\n    return list (this.concat (aList));\n};\nArray.prototype.__mul__ = function (scalar) {\n    let result = this;\n    for (let i = 1; i < scalar; i++) {\n        result = result.concat (this);\n    }\n    return result;\n};\nArray.prototype.__rmul__ = Array.prototype.__mul__;\nexport function tuple (iterable) {\n    let instance = iterable ? [] .slice.apply (iterable) : [];\n    instance.__class__ = tuple;\n    return instance;\n}\ntuple.__name__ = 'tuple';\ntuple.__bases__ = [object];\nexport function set (iterable) {\n    let instance = [];\n    if (iterable) {\n        for (let index = 0; index < iterable.length; index++) {\n            instance.add (iterable [index]);\n        }\n    }\n    instance.__class__ = set;\n    return instance;\n}\nset.__name__ = 'set';\nset.__bases__ = [object];\nArray.prototype.__bindexOf__ = function (element) {\n    element += '';\n    let mindex = 0;\n    let maxdex = this.length - 1;\n    while (mindex <= maxdex) {\n        let index = (mindex + maxdex) / 2 | 0;\n        let middle = this [index] + '';\n        if (middle < element) {\n            mindex = index + 1;\n        }\n        else if (middle > element) {\n            maxdex = index - 1;\n        }\n        else {\n            return index;\n        }\n    }\n    return -1;\n};\nArray.prototype.add = function (element) {\n    if (this.indexOf (element) == -1) {\n        this.push (element);\n    }\n};\nArray.prototype.discard = function (element) {\n    var index = this.indexOf (element);\n    if (index != -1) {\n        this.splice (index, 1);\n    }\n};\nArray.prototype.isdisjoint = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issuperset = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) == -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issubset = function (other) {\n    return set (other.slice ()) .issuperset (this);\n};\nArray.prototype.union = function (other) {\n    let result = set (this.slice () .sort ());\n    for (let i = 0; i < other.length; i++) {\n        if (result.__bindexOf__ (other [i]) == -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.intersection = function (other) {\n    this.sort ();\n    let result = set ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.difference = function (other) {\n    let sother = set (other.slice () .sort ());\n    let result = set ();\n    for (let i = 0; i < this.length; i++) {\n        if (sother.__bindexOf__ (this [i]) == -1) {\n            result.push (this [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.symmetric_difference = function (other) {\n    return this.union (other) .difference (this.intersection (other));\n};\nArray.prototype.py_update = function () {\n    let updated = [] .concat.apply (this.slice (), arguments) .sort ();\n    this.py_clear ();\n    for (let i = 0; i < updated.length; i++) {\n        if (updated [i] != updated [i - 1]) {\n            this.push (updated [i]);\n        }\n    }\n};\nArray.prototype.__eq__ = function (other) {\n    if (this.length != other.length) {\n        return false;\n    }\n    if (this.__class__ == set) {\n        this.sort ();\n        other.sort ();\n    }\n    for (let i = 0; i < this.length; i++) {\n        if (this [i] != other [i]) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.__ne__ = function (other) {\n    return !this.__eq__ (other);\n};\nArray.prototype.__le__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issubset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] > other [i]) {\n                return false;\n            }\n            else if (this [i] < other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__ge__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issuperset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] < other [i]) {\n                return false;\n            }\n            else if (this [i] > other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__lt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issubset (other) && !this.issuperset (other) :\n        !this.__ge__ (other)\n    );\n};\nArray.prototype.__gt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issuperset (other) && !this.issubset (other) :\n        !this.__le__ (other)\n    );\n};\nexport function bytearray (bytable, encoding) {\n    if (bytable == undefined) {\n        return new Uint8Array (0);\n    }\n    else {\n        let aType = py_typeof (bytable);\n        if (aType == int) {\n            return new Uint8Array (bytable);\n        }\n        else if (aType == str) {\n            let aBytes = new Uint8Array (len (bytable));\n            for (let i = 0; i < len (bytable); i++) {\n                aBytes [i] = bytable.charCodeAt (i);\n            }\n            return aBytes;\n        }\n        else if (aType == list || aType == tuple) {\n            return new Uint8Array (bytable);\n        }\n        else {\n            throw py_TypeError;\n        }\n    }\n}\nexport var bytes = bytearray;\nUint8Array.prototype.__add__ = function (aBytes) {\n    let result = new Uint8Array (this.length + aBytes.length);\n    result.set (this);\n    result.set (aBytes, this.length);\n    return result;\n};\nUint8Array.prototype.__mul__ = function (scalar) {\n    let result = new Uint8Array (scalar * this.length);\n    for (let i = 0; i < scalar; i++) {\n        result.set (this, i * this.length);\n    }\n    return result;\n};\nUint8Array.prototype.__rmul__ = Uint8Array.prototype.__mul__;\nexport function str (stringable) {\n    if (typeof stringable === 'number')\n        return stringable.toString();\n    else {\n        try {\n            return stringable.__str__ ();\n        }\n        catch (exception) {\n            try {\n                return repr (stringable);\n            }\n            catch (exception) {\n                return String (stringable);\n            }\n        }\n    }\n};\nString.prototype.__class__ = str;\nstr.__name__ = 'str';\nstr.__bases__ = [object];\nString.prototype.__iter__ = function () {new __PyIterator__ (this);};\nString.prototype.__repr__ = function () {\n    return (this.indexOf ('\\'') == -1 ? '\\'' + this + '\\'' : '\"' + this + '\"') .py_replace ('\\t', '\\\\t') .py_replace ('\\n', '\\\\n');\n};\nString.prototype.__str__ = function () {\n    return this;\n};\nString.prototype.capitalize = function () {\n    return this.charAt (0).toUpperCase () + this.slice (1);\n};\nString.prototype.endswith = function (suffix) {\n    if (suffix instanceof Array) {\n        for (var i=0;i<suffix.length;i++) {\n            if (this.slice (-suffix[i].length) == suffix[i])\n                return true;\n        }\n    } else\n        return suffix == '' || this.slice (-suffix.length) == suffix;\n    return false;\n};\nString.prototype.find = function (sub, start) {\n    return this.indexOf (sub, start);\n};\nString.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    var result = '';\n    if (step == 1) {\n        result = this.substring (start, stop);\n    }\n    else {\n        for (var index = start; index < stop; index += step) {\n            result = result.concat (this.charAt(index));\n        }\n    }\n    return result;\n};\n__setproperty__ (String.prototype, 'format', {\n    get: function () {return __get__ (this, function (self) {\n        var args = tuple ([] .slice.apply (arguments).slice (1));\n        var autoIndex = 0;\n        return self.replace (/\\{(\\w*)\\}/g, function (match, key) {\n            if (key == '') {\n                key = autoIndex++;\n            }\n            if (key == +key) {\n                return args [key] === undefined ? match : str (args [key]);\n            }\n            else {\n                for (var index = 0; index < args.length; index++) {\n                    if (typeof args [index] == 'object' && args [index][key] !== undefined) {\n                        return str (args [index][key]);\n                    }\n                }\n                return match;\n            }\n        });\n    });},\n    enumerable: true\n});\nString.prototype.isalnum = function () {\n    return /^[0-9a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isalpha = function () {\n    return /^[a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isdecimal = function () {\n    return /^[0-9]{1,}$/.test(this)\n}\nString.prototype.isdigit = function () {\n    return this.isdecimal()\n}\nString.prototype.islower = function () {\n    return /^[a-z]{1,}$/.test(this)\n}\nString.prototype.isupper = function () {\n    return /^[A-Z]{1,}$/.test(this)\n}\nString.prototype.isspace = function () {\n    return /^[\\s]{1,}$/.test(this)\n}\nString.prototype.isnumeric = function () {\n    return !isNaN (parseFloat (this)) && isFinite (this);\n};\nString.prototype.join = function (strings) {\n    strings = Array.from (strings);\n    return strings.join (this);\n};\nString.prototype.lower = function () {\n    return this.toLowerCase ();\n};\nString.prototype.py_replace = function (old, aNew, maxreplace) {\n    return this.split (old, maxreplace) .join (aNew);\n};\nString.prototype.lstrip = function () {\n    return this.replace (/^\\s*/g, '');\n};\nString.prototype.rfind = function (sub, start) {\n    return this.lastIndexOf (sub, start);\n};\nString.prototype.rsplit = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            var maxrsplit = result.length - maxsplit;\n            return [result.slice (0, maxrsplit) .join (sep)] .concat (result.slice (maxrsplit));\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.rstrip = function () {\n    return this.replace (/\\s*$/g, '');\n};\nString.prototype.py_split = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            return result.slice (0, maxsplit).concat ([result.slice (maxsplit).join (sep)]);\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.startswith = function (prefix) {\n    if (prefix instanceof Array) {\n        for (var i=0;i<prefix.length;i++) {\n            if (this.indexOf (prefix [i]) == 0)\n                return true;\n        }\n    } else\n        return this.indexOf (prefix) == 0;\n    return false;\n};\nString.prototype.strip = function () {\n    return this.trim ();\n};\nString.prototype.upper = function () {\n    return this.toUpperCase ();\n};\nString.prototype.__mul__ = function (scalar) {\n    var result = '';\n    for (var i = 0; i < scalar; i++) {\n        result = result + this;\n    }\n    return result;\n};\nString.prototype.__rmul__ = String.prototype.__mul__;\nfunction __contains__ (element) {\n    return this.hasOwnProperty (element);\n}\nfunction __keys__ () {\n    var keys = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            keys.push (attrib);\n        }\n    }\n    return keys;\n}\nfunction __items__ () {\n    var items = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            items.push ([attrib, this [attrib]]);\n        }\n    }\n    return items;\n}\nfunction __del__ (key) {\n    delete this [key];\n}\nfunction __clear__ () {\n    for (var attrib in this) {\n        delete this [attrib];\n    }\n}\nfunction __getdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result == undefined) {\n        result = this ['py_' + aKey]\n    }\n    return result == undefined ? (aDefault == undefined ? null : aDefault) : result;\n}\nfunction __setdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        return result;\n    }\n    var val = aDefault == undefined ? null : aDefault;\n    this [aKey] = val;\n    return val;\n}\nfunction __pop__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        delete this [aKey];\n        return result;\n    } else {\n        if ( aDefault === undefined ) {\n            throw KeyError (aKey, new Error());\n        }\n    }\n    return aDefault;\n}\nfunction __popitem__ () {\n    var aKey = Object.keys (this) [0];\n    if (aKey == null) {\n        throw KeyError (\"popitem(): dictionary is empty\", new Error ());\n    }\n    var result = tuple ([aKey, this [aKey]]);\n    delete this [aKey];\n    return result;\n}\nfunction __update__ (aDict) {\n    for (var aKey in aDict) {\n        this [aKey] = aDict [aKey];\n    }\n}\nfunction __values__ () {\n    var values = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            values.push (this [attrib]);\n        }\n    }\n    return values;\n}\nfunction __dgetitem__ (aKey) {\n    return this [aKey];\n}\nfunction __dsetitem__ (aKey, aValue) {\n    this [aKey] = aValue;\n}\nexport function dict (objectOrPairs) {\n    var instance = {};\n    if (!objectOrPairs || objectOrPairs instanceof Array) {\n        if (objectOrPairs) {\n            for (var index = 0; index < objectOrPairs.length; index++) {\n                var pair = objectOrPairs [index];\n                if ( !(pair instanceof Array) || pair.length != 2) {\n                    throw ValueError(\n                        \"dict update sequence element #\" + index +\n                        \" has length \" + pair.length +\n                        \"; 2 is required\", new Error());\n                }\n                var key = pair [0];\n                var val = pair [1];\n                if (!(objectOrPairs instanceof Array) && objectOrPairs instanceof Object) {\n                     if (!isinstance (objectOrPairs, dict)) {\n                         val = dict (val);\n                     }\n                }\n                instance [key] = val;\n            }\n        }\n    }\n    else {\n        if (isinstance (objectOrPairs, dict)) {\n            var aKeys = objectOrPairs.py_keys ();\n            for (var index = 0; index < aKeys.length; index++ ) {\n                var key = aKeys [index];\n                instance [key] = objectOrPairs [key];\n            }\n        } else if (objectOrPairs instanceof Object) {\n            instance = objectOrPairs;\n        } else {\n            throw ValueError (\"Invalid type of object for dict creation\", new Error ());\n        }\n    }\n    __setproperty__ (instance, '__class__', {value: dict, enumerable: false, writable: true});\n    __setproperty__ (instance, '__contains__', {value: __contains__, enumerable: false});\n    __setproperty__ (instance, 'py_keys', {value: __keys__, enumerable: false});\n    __setproperty__ (instance, '__iter__', {value: function () {new __PyIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, Symbol.iterator, {value: function () {new __JsIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, 'py_items', {value: __items__, enumerable: false});\n    __setproperty__ (instance, 'py_del', {value: __del__, enumerable: false});\n    __setproperty__ (instance, 'py_clear', {value: __clear__, enumerable: false});\n    __setproperty__ (instance, 'py_get', {value: __getdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_setdefault', {value: __setdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_pop', {value: __pop__, enumerable: false});\n    __setproperty__ (instance, 'py_popitem', {value: __popitem__, enumerable: false});\n    __setproperty__ (instance, 'py_update', {value: __update__, enumerable: false});\n    __setproperty__ (instance, 'py_values', {value: __values__, enumerable: false});\n    __setproperty__ (instance, '__getitem__', {value: __dgetitem__, enumerable: false});\n    __setproperty__ (instance, '__setitem__', {value: __dsetitem__, enumerable: false});\n    return instance;\n}\ndict.__name__ = 'dict';\ndict.__bases__ = [object];\nfunction __setdoc__ (docString) {\n    this.__doc__ = docString;\n    return this;\n}\n__setproperty__ (Function.prototype, '__setdoc__', {value: __setdoc__, enumerable: false});\nexport function __jsmod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __mod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __pow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport var pow = __pow__;\nexport function __neg__ (a) {\n    if (typeof a == 'object' && '__neg__' in a) {\n        return a.__neg__ ();\n    }\n    else {\n        return -a;\n    }\n};\nexport function __matmul__ (a, b) {\n    return a.__matmul__ (b);\n};\nexport function __mul__ (a, b) {\n    if (typeof a == 'object' && '__mul__' in a) {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return b.__rmul__ (a);\n    }\n    else {\n        return a * b;\n    }\n};\nexport function __truediv__ (a, b) {\n    if (typeof a == 'object' && '__truediv__' in a) {\n        return a.__truediv__ (b);\n    }\n    else if (typeof b == 'object' && '__rtruediv__' in b) {\n        return b.__rtruediv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return a / b;\n    }\n};\nexport function __floordiv__ (a, b) {\n    if (typeof a == 'object' && '__floordiv__' in a) {\n        return a.__floordiv__ (b);\n    }\n    else if (typeof b == 'object' && '__rfloordiv__' in b) {\n        return b.__rfloordiv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return Math.floor (a / b);\n    }\n};\nexport function __add__ (a, b) {\n    if (typeof a == 'object' && '__add__' in a) {\n        return a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return b.__radd__ (a);\n    }\n    else {\n        return a + b;\n    }\n};\nexport function __sub__ (a, b) {\n    if (typeof a == 'object' && '__sub__' in a) {\n        return a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return b.__rsub__ (a);\n    }\n    else {\n        return a - b;\n    }\n};\nexport function __lshift__ (a, b) {\n    if (typeof a == 'object' && '__lshift__' in a) {\n        return a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return b.__rlshift__ (a);\n    }\n    else {\n        return a << b;\n    }\n};\nexport function __rshift__ (a, b) {\n    if (typeof a == 'object' && '__rshift__' in a) {\n        return a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return b.__rrshift__ (a);\n    }\n    else {\n        return a >> b;\n    }\n};\nexport function __or__ (a, b) {\n    if (typeof a == 'object' && '__or__' in a) {\n        return a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return b.__ror__ (a);\n    }\n    else {\n        return a | b;\n    }\n};\nexport function __xor__ (a, b) {\n    if (typeof a == 'object' && '__xor__' in a) {\n        return a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return b.__rxor__ (a);\n    }\n    else {\n        return a ^ b;\n    }\n};\nexport function __and__ (a, b) {\n    if (typeof a == 'object' && '__and__' in a) {\n        return a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return b.__rand__ (a);\n    }\n    else {\n        return a & b;\n    }\n};\nexport function __eq__ (a, b) {\n    if (typeof a == 'object' && '__eq__' in a) {\n        return a.__eq__ (b);\n    }\n    else {\n        return a == b;\n    }\n};\nexport function __ne__ (a, b) {\n    if (typeof a == 'object' && '__ne__' in a) {\n        return a.__ne__ (b);\n    }\n    else {\n        return a != b\n    }\n};\nexport function __lt__ (a, b) {\n    if (typeof a == 'object' && '__lt__' in a) {\n        return a.__lt__ (b);\n    }\n    else {\n        return a < b;\n    }\n};\nexport function __le__ (a, b) {\n    if (typeof a == 'object' && '__le__' in a) {\n        return a.__le__ (b);\n    }\n    else {\n        return a <= b;\n    }\n};\nexport function __gt__ (a, b) {\n    if (typeof a == 'object' && '__gt__' in a) {\n        return a.__gt__ (b);\n    }\n    else {\n        return a > b;\n    }\n};\nexport function __ge__ (a, b) {\n    if (typeof a == 'object' && '__ge__' in a) {\n        return a.__ge__ (b);\n    }\n    else {\n        return a >= b;\n    }\n};\nexport function __imatmul__ (a, b) {\n    if ('__imatmul__' in a) {\n        return a.__imatmul__ (b);\n    }\n    else {\n        return a.__matmul__ (b);\n    }\n};\nexport function __ipow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__ipow__ (b);\n    }\n    else if (typeof a == 'object' && '__ipow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport function __ijsmod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__ismod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __imod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__imod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __imul__ (a, b) {\n    if (typeof a == 'object' && '__imul__' in a) {\n        return a.__imul__ (b);\n    }\n    else if (typeof a == 'object' && '__mul__' in a) {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return a = b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return a = b.__rmul__ (a);\n    }\n    else {\n        return a *= b;\n    }\n};\nexport function __idiv__ (a, b) {\n    if (typeof a == 'object' && '__idiv__' in a) {\n        return a.__idiv__ (b);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a = a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return a = b.__rdiv__ (a);\n    }\n    else {\n        return a /= b;\n    }\n};\nexport function __iadd__ (a, b) {\n    if (typeof a == 'object' && '__iadd__' in a) {\n        return a.__iadd__ (b);\n    }\n    else if (typeof a == 'object' && '__add__' in a) {\n        return a = a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return a = b.__radd__ (a);\n    }\n    else {\n        return a += b;\n    }\n};\nexport function __isub__ (a, b) {\n    if (typeof a == 'object' && '__isub__' in a) {\n        return a.__isub__ (b);\n    }\n    else if (typeof a == 'object' && '__sub__' in a) {\n        return a = a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return a = b.__rsub__ (a);\n    }\n    else {\n        return a -= b;\n    }\n};\nexport function __ilshift__ (a, b) {\n    if (typeof a == 'object' && '__ilshift__' in a) {\n        return a.__ilshift__ (b);\n    }\n    else if (typeof a == 'object' && '__lshift__' in a) {\n        return a = a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return a = b.__rlshift__ (a);\n    }\n    else {\n        return a <<= b;\n    }\n};\nexport function __irshift__ (a, b) {\n    if (typeof a == 'object' && '__irshift__' in a) {\n        return a.__irshift__ (b);\n    }\n    else if (typeof a == 'object' && '__rshift__' in a) {\n        return a = a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return a = b.__rrshift__ (a);\n    }\n    else {\n        return a >>= b;\n    }\n};\nexport function __ior__ (a, b) {\n    if (typeof a == 'object' && '__ior__' in a) {\n        return a.__ior__ (b);\n    }\n    else if (typeof a == 'object' && '__or__' in a) {\n        return a = a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return a = b.__ror__ (a);\n    }\n    else {\n        return a |= b;\n    }\n};\nexport function __ixor__ (a, b) {\n    if (typeof a == 'object' && '__ixor__' in a) {\n        return a.__ixor__ (b);\n    }\n    else if (typeof a == 'object' && '__xor__' in a) {\n        return a = a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return a = b.__rxor__ (a);\n    }\n    else {\n        return a ^= b;\n    }\n};\nexport function __iand__ (a, b) {\n    if (typeof a == 'object' && '__iand__' in a) {\n        return a.__iand__ (b);\n    }\n    else if (typeof a == 'object' && '__and__' in a) {\n        return a = a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return a = b.__rand__ (a);\n    }\n    else {\n        return a &= b;\n    }\n};\nexport function __getitem__ (container, key) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ (key);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        return container [container.length + key];\n    }\n    else {\n        return container [key];\n    }\n};\nexport function __setitem__ (container, key, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ (key, value);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        container [container.length + key] = value;\n    }\n    else {\n        container [key] = value;\n    }\n};\nexport function __getslice__ (container, lower, upper, step) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ ([lower, upper, step]);\n    }\n    else {\n        return container.__getslice__ (lower, upper, step);\n    }\n};\nexport function __setslice__ (container, lower, upper, step, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ ([lower, upper, step], value);\n    }\n    else {\n        container.__setslice__ (lower, upper, step, value);\n    }\n};\nexport var BaseException =  __class__ ('BaseException', [object], {\n\t__module__: __name__,\n});\nexport var Exception =  __class__ ('Exception', [BaseException], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tvar kwargs = dict ();\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tdefault: kwargs [__attrib0__] = __allkwargs0__ [__attrib0__];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdelete kwargs.__kwargtrans__;\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.__args__ = args;\n\t\ttry {\n\t\t\tself.stack = kwargs.error.stack;\n\t\t}\n\t\tcatch (__except0__) {\n\t\t\tself.stack = 'No stack trace available';\n\t\t}\n\t});},\n\tget __repr__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]));\n\t\t}\n\t\telse {\n\t\t\treturn '{}()'.format (self.__class__.__name__);\n\t\t}\n\t});},\n\tget __str__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn str (tuple (self.__args__));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn str (self.__args__ [0]);\n\t\t}\n\t\telse {\n\t\t\treturn '';\n\t\t}\n\t});}\n});\nexport var IterableError =  __class__ ('IterableError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, \"Can't iterate over non-iterable\", __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var StopIteration =  __class__ ('StopIteration', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, 'Iterator exhausted', __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var ValueError =  __class__ ('ValueError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var KeyError =  __class__ ('KeyError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AssertionError =  __class__ ('AssertionError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tif (message) {\n\t\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t\t}\n\t\telse {\n\t\t\tException.__init__ (self, __kwargtrans__ ({error: error}));\n\t\t}\n\t});}\n});\nexport var NotImplementedError =  __class__ ('NotImplementedError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var IndexError =  __class__ ('IndexError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AttributeError =  __class__ ('AttributeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var py_TypeError =  __class__ ('py_TypeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var Warning =  __class__ ('Warning', [Exception], {\n\t__module__: __name__,\n});\nexport var UserWarning =  __class__ ('UserWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var DeprecationWarning =  __class__ ('DeprecationWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var RuntimeWarning =  __class__ ('RuntimeWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var __sort__ = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (key) {\n\t\titerable.sort ((function __lambda__ (a, b) {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\t\tcase 'a': var a = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t\tcase 'b': var b = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\treturn (key (a) > key (b) ? 1 : -(1));\n\t\t}));\n\t}\n\telse {\n\t\titerable.sort ();\n\t}\n\tif (reverse) {\n\t\titerable.reverse ();\n\t}\n};\nexport var sorted = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (py_typeof (iterable) == dict) {\n\t\tvar result = copy (iterable.py_keys ());\n\t}\n\telse {\n\t\tvar result = copy (iterable);\n\t}\n\t__sort__ (result, key, reverse);\n\treturn result;\n};\nexport var map = function (func, iterable) {\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\t__accu0__.append (func (item));\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var filter = function (func, iterable) {\n\tif (func == null) {\n\t\tvar func = bool;\n\t}\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\tif (func (item)) {\n\t\t\t\t__accu0__.append (item);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var divmod = function (n, d) {\n\treturn tuple ([Math.floor (n / d), __mod__ (n, d)]);\n};\nexport var __Terminal__ =  __class__ ('__Terminal__', [object], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tself.buffer = '';\n\t\ttry {\n\t\t\tself.element = document.getElementById ('__terminal__');\n\t\t}\n\t\tcatch (__except0__) {\n\t\t\tself.element = null;\n\t\t}\n\t\tif (self.element) {\n\t\t\tself.element.style.overflowX = 'auto';\n\t\t\tself.element.style.boxSizing = 'border-box';\n\t\t\tself.element.style.padding = '5px';\n\t\t\tself.element.innerHTML = '_';\n\t\t}\n\t});},\n\tget print () {return __get__ (this, function (self) {\n\t\tvar sep = ' ';\n\t\tvar end = '\\n';\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'sep': var sep = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'end': var end = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.buffer = '{}{}{}'.format (self.buffer, sep.join ((function () {\n\t\t\tvar __accu0__ = [];\n\t\t\tfor (var arg of args) {\n\t\t\t\t__accu0__.append (str (arg));\n\t\t\t}\n\t\t\treturn __accu0__;\n\t\t}) ()), end).__getslice__ (-(4096), null, 1);\n\t\tif (self.element) {\n\t\t\tself.element.innerHTML = self.buffer.py_replace ('\\n', '<br>').py_replace (' ', '&nbsp');\n\t\t\tself.element.scrollTop = self.element.scrollHeight;\n\t\t}\n\t\telse {\n\t\t\tconsole.log (sep.join ((function () {\n\t\t\t\tvar __accu0__ = [];\n\t\t\t\tfor (var arg of args) {\n\t\t\t\t\t__accu0__.append (str (arg));\n\t\t\t\t}\n\t\t\t\treturn __accu0__;\n\t\t\t}) ()));\n\t\t}\n\t});},\n\tget input () {return __get__ (this, function (self, question) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'question': var question = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.print ('{}'.format (question), __kwargtrans__ ({end: ''}));\n\t\tvar answer = window.prompt ('\\n'.join (self.buffer.py_split ('\\n').__getslice__ (-(8), null, 1)));\n\t\tself.print (answer);\n\t\treturn answer;\n\t});}\n});\nexport var __terminal__ = __Terminal__ ();\nexport var print = __terminal__.print;\nexport var input = __terminal__.input;\n\n//# sourceMappingURL=org.transcrypt.__runtime__.map"
  },
  {
    "path": "docs/examples/sketch_000/target/org.transcrypt.__runtime__.py",
    "content": "# Transcrypt runtime module\r\n\r\n#__pragma__ ('js', 'export var __envir__ = {{}};\\n{}', __include__ ('org/transcrypt/__envir__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__core__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__builtin__.js'))\r\n\r\n#__pragma__ ('skip')\r\ncopy = Math = __typeof__ = __repr__ = document = console = window = 0\r\n#__pragma__ ('noskip')\r\n\r\n#__pragma__ ('notconv')  # !!! tconv gives a problem with __terminal__, needs investigation\r\n#__pragma__ ('nokwargs')\r\n#__pragma__ ('noalias', 'sort')\r\n\r\nclass BaseException:\r\n    pass\r\n\r\nclass Exception (BaseException):\r\n    #__pragma__ ('kwargs')\r\n    def __init__ (self, *args, **kwargs):\r\n        self.__args__ = args\r\n        try:\r\n            self.stack = kwargs.error.stack # Integrate with JavaScript Error object\r\n        except:\r\n            self.stack = 'No stack trace available'\r\n    #__pragma__ ('nokwargs')\r\n        \r\n    def __repr__ (self):\r\n        if len (self.__args__) > 1:\r\n            return '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)))\r\n        elif len (self.__args__):\r\n            return '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]))        \r\n        else:\r\n            return '{}()'.format (self.__class__.__name__)\r\n            \r\n    def __str__ (self):\r\n        if len (self.__args__) > 1:\r\n            return str (tuple (self.__args__))\r\n        elif len (self.__args__):\r\n            return str (self.__args__ [0])\r\n        else:\r\n            return ''\r\n        \r\nclass IterableError (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Can\\'t iterate over non-iterable', error = error)\r\n            \r\nclass StopIteration (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Iterator exhausted', error = error)\r\n        \r\nclass ValueError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass KeyError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass AssertionError (Exception):\r\n    def __init__ (self, message, error):\r\n        if message:\r\n            Exception.__init__ (self, message, error = error)\r\n        else:\r\n            Exception.__init__ (self, error = error)\r\n\r\nclass NotImplementedError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass IndexError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass AttributeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass TypeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\n# Warnings Exceptions\r\n# N.B. This is a limited subset of the warnings defined in\r\n# the cpython implementation to keep things small for now.\r\n\r\nclass Warning (Exception):\r\n    ''' Warning Base Class\r\n    '''\r\n    pass\r\n\r\nclass UserWarning (Warning):\r\n    pass\r\n\r\nclass DeprecationWarning (Warning):\r\n    pass\r\n\r\nclass RuntimeWarning (Warning):\r\n    pass\r\n    \r\n#__pragma__ ('kwargs')\r\n\r\ndef __sort__ (iterable, key = None, reverse = False):               # Used by py_sort, can deal with kwargs\r\n    if key:\r\n        iterable.sort (lambda a, b: 1 if key (a) > key (b) else -1) # JavaScript sort, case '==' is irrelevant for sorting\r\n    else:\r\n        iterable.sort ()                                            # JavaScript sort\r\n        \r\n    if reverse:\r\n        iterable.reverse ()\r\n        \r\ndef sorted (iterable, key = None, reverse = False):\r\n    if type (iterable) == dict:\r\n        result = copy (iterable.keys ()) \r\n    else:       \r\n        result = copy (iterable)\r\n        \r\n    __sort__ (result, key, reverse)\r\n    return result\r\n\r\n#__pragma__ ('nokwargs')\r\n\r\ndef map (func, iterable):\r\n    return [func (item) for item in iterable]\r\n\r\n\r\ndef filter (func, iterable):\r\n    if func == None:\r\n        func = bool\r\n    return [item for item in iterable if func (item)]\r\n    \r\ndef divmod (n, d):\r\n    return n // d, n % d\r\n    \r\n#__pragma__ ('ifdef', '__complex__')\r\n\r\nclass complex:\r\n    def __init__ (self, real, imag = None):\r\n        if imag == None:\r\n            if type (real) == complex:\r\n                self.real = real.real\r\n                self.imag = real.imag\r\n            else:\r\n                self.real = real\r\n                self.imag = 0\r\n        else:\r\n            self.real = real\r\n            self.imag = imag\r\n            \r\n    def __neg__ (self):\r\n        return complex (-self.real, -self.imag)\r\n        \r\n    def __exp__ (self):\r\n        modulus = Math.exp (self.real)\r\n        return complex (modulus * Math.cos (self.imag), modulus * Math.sin (self.imag))\r\n    \r\n    def __log__ (self):\r\n        return complex (Math.log (Math.sqrt (self.real * self.real + self.imag * self.imag)), Math.atan2 (self.imag, self.real))\r\n        \r\n    def __pow__ (self, other):  # a ** b = exp (b log a)\r\n        return (self.__log__ () .__mul__ (other)) .__exp__ ()\r\n        \r\n    def __rpow__ (self, real):  # real ** comp -> comp.__rpow__ (real)\r\n        return self.__mul__ (Math.log (real)) .__exp__ ()\r\n        \r\n    def __mul__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real * other, self.imag * other)\r\n        else:\r\n            return complex (self.real * other.real - self.imag * other.imag, self.real * other.imag + self.imag * other.real)\r\n        \r\n    def __rmul__ (self, real):  # real + comp -> comp.__rmul__ (real)\r\n        return complex (self.real * real, self.imag * real)\r\n        \r\n    def __div__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real / other, self.imag / other)\r\n        else:\r\n            denom = other.real * other.real + other.imag * other.imag\r\n            return complex (\r\n                (self.real * other.real + self.imag * other.imag) / denom,\r\n                (self.imag * other.real - self.real * other.imag) / denom\r\n            )\r\n        \r\n    def __rdiv__ (self, real):  # real / comp -> comp.__rdiv__ (real)\r\n        denom = self.real * self.real\r\n        return complex (\r\n            (real * self.real) / denom,\r\n            (real * self.imag) / denom\r\n        )\r\n        \r\n    def __add__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real + other, self.imag)\r\n        else:   # Assume other is complex\r\n            return complex (self.real + other.real, self.imag + other.imag)\r\n        \r\n    def __radd__ (self, real):  # real + comp -> comp.__radd__ (real)\r\n        return complex (self.real + real, self.imag)\r\n        \r\n    def __sub__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real - other, self.imag)\r\n        else:\r\n            return complex (self.real - other.real, self.imag - other.imag)\r\n        \r\n    def __rsub__ (self, real):  # real - comp -> comp.__rsub__ (real)\r\n        return complex (real - self.real, -self.imag)\r\n        \r\n    def __repr__ (self):\r\n        return '({}{}{}j)'.format (self.real, '+' if self.imag >= 0 else '', self.imag)\r\n            \r\n    def __str__ (self):\r\n        return __repr__ (self) [1 : -1]\r\n        \r\n    def __eq__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real == other\r\n        else:\r\n            return self.real == other.real and self.imag == other.imag\r\n        \r\n    def __ne__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real != other\r\n        else:\r\n            return self.real != other.real or self.imag != other.imag\r\n        \r\n    def conjugate (self):\r\n        return complex (self.real, -self.imag)\r\n        \r\ndef __conj__ (aNumber):\r\n    if isinstance (aNumber, complex):\r\n        return complex (aNumber.real, -aNumber.imag)\r\n    else:\r\n        return complex (aNumber, 0)\r\n        \r\n#__pragma__ ('endif')\r\n\r\nclass __Terminal__:\r\n    '''\r\n    Printing to either the console or to html happens async, but is blocked by calling window.prompt.\r\n    So while all input and print statements are encountered in normal order, the print's exit immediately without yet having actually printed\r\n    This means the next input takes control, blocking actual printing and so on indefinitely\r\n    The effect is that everything's only printed after all inputs are done\r\n    To prevent that, what's needed is to only execute the next window.prompt after actual printing has been done\r\n    Since we've no way to find out when that is, a timeout is used.\r\n    '''\r\n\r\n    def __init__ (self):\r\n        self.buffer = ''\r\n    \r\n        try:\r\n            self.element = document.getElementById ('__terminal__')\r\n        except:\r\n            self.element = None\r\n            \r\n        if self.element:\r\n            self.element.style.overflowX = 'auto'\r\n            self.element.style.boxSizing = 'border-box'\r\n            self.element.style.padding = '5px'\r\n            self.element.innerHTML = '_'\r\n        \r\n    #__pragma__ ('kwargs')\r\n        \r\n    def print (self, *args, sep = ' ', end = '\\n'):\r\n        self.buffer = '{}{}{}'.format (self.buffer, sep.join ([str (arg) for arg in args]), end) [-4096 : ] \r\n        \r\n        if self.element:\r\n            self.element.innerHTML = self.buffer.replace ('\\n', '<br>') .replace (' ', '&nbsp')\r\n            self.element.scrollTop = self.element.scrollHeight\r\n        else:\r\n            console.log (sep.join ([str (arg) for arg in args]))\r\n        \r\n    def input (self, question):\r\n        self.print ('{}'.format (question), end = '')\r\n        answer = window.prompt ('\\n'.join (self.buffer.split ('\\n') [-8:]))\r\n        self.print (answer)\r\n        return answer\r\n        \r\n    #__pragma__ ('nokwargs')\r\n    \r\n__terminal__ = __Terminal__ ()\r\n\r\nprint = __terminal__.print\r\ninput = __terminal__.input\r\n"
  },
  {
    "path": "docs/examples/sketch_000/target/pyp5js.js",
    "content": "// Transcrypt'ed from Python, 2020-04-28 21:56:45\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __proxy__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {PythonFunctions} from './pyp5js.python_functions.js';\nvar __name__ = 'pyp5js';\nexport var _P5_INSTANCE = null;\nexport var _CTX_MIDDLE = null;\nexport var _DEFAULT_FILL = null;\nexport var _DEFAULT_LEADMULT = null;\nexport var _DEFAULT_STROKE = null;\nexport var _DEFAULT_TEXT_FILL = null;\nexport var ADD = null;\nexport var ALT = null;\nexport var ARROW = null;\nexport var AUDIO = null;\nexport var AUTO = null;\nexport var AXES = null;\nexport var BACKSPACE = null;\nexport var BASELINE = null;\nexport var BEVEL = null;\nexport var BEZIER = null;\nexport var BLEND = null;\nexport var BLUR = null;\nexport var BOLD = null;\nexport var BOLDITALIC = null;\nexport var BOTTOM = null;\nexport var BURN = null;\nexport var CENTER = null;\nexport var CHORD = null;\nexport var CLAMP = null;\nexport var CLOSE = null;\nexport var CONTROL = null;\nexport var CORNER = null;\nexport var CORNERS = null;\nexport var CROSS = null;\nexport var CURVE = null;\nexport var DARKEST = null;\nexport var DEG_TO_RAD = null;\nexport var DEGREES = null;\nexport var DELETE = null;\nexport var DIFFERENCE = null;\nexport var DILATE = null;\nexport var DODGE = null;\nexport var DOWN_ARROW = null;\nexport var ENTER = null;\nexport var ERODE = null;\nexport var ESCAPE = null;\nexport var EXCLUSION = null;\nexport var FILL = null;\nexport var GRAY = null;\nexport var GRID = null;\nexport var HALF_PI = null;\nexport var HAND = null;\nexport var HARD_LIGHT = null;\nexport var HSB = null;\nexport var HSL = null;\nexport var IMAGE = null;\nexport var IMMEDIATE = null;\nexport var INVERT = null;\nexport var ITALIC = null;\nexport var LANDSCAPE = null;\nexport var LEFT = null;\nexport var LEFT_ARROW = null;\nexport var LIGHTEST = null;\nexport var LINE_LOOP = null;\nexport var LINE_STRIP = null;\nexport var LINEAR = null;\nexport var LINES = null;\nexport var MIRROR = null;\nexport var MITER = null;\nexport var MOVE = null;\nexport var MULTIPLY = null;\nexport var NEAREST = null;\nexport var NORMAL = null;\nexport var OPAQUE = null;\nexport var OPEN = null;\nexport var OPTION = null;\nexport var OVERLAY = null;\nexport var PI = null;\nexport var PIE = null;\nexport var POINTS = null;\nexport var PORTRAIT = null;\nexport var POSTERIZE = null;\nexport var PROJECT = null;\nexport var QUAD_STRIP = null;\nexport var QUADRATIC = null;\nexport var QUADS = null;\nexport var QUARTER_PI = null;\nexport var RAD_TO_DEG = null;\nexport var RADIANS = null;\nexport var RADIUS = null;\nexport var REPEAT = null;\nexport var REPLACE = null;\nexport var RETURN = null;\nexport var RGB = null;\nexport var RIGHT = null;\nexport var RIGHT_ARROW = null;\nexport var ROUND = null;\nexport var SCREEN = null;\nexport var SHIFT = null;\nexport var SOFT_LIGHT = null;\nexport var SQUARE = null;\nexport var STROKE = null;\nexport var SUBTRACT = null;\nexport var TAB = null;\nexport var TAU = null;\nexport var TEXT = null;\nexport var TEXTURE = null;\nexport var THRESHOLD = null;\nexport var TOP = null;\nexport var TRIANGLE_FAN = null;\nexport var TRIANGLE_STRIP = null;\nexport var TRIANGLES = null;\nexport var TWO_PI = null;\nexport var UP_ARROW = null;\nexport var VIDEO = null;\nexport var WAIT = null;\nexport var WEBGL = null;\nexport var P2D = null;\nvar PI = null;\nexport var frameCount = null;\nexport var focused = null;\nexport var displayWidth = null;\nexport var displayHeight = null;\nexport var windowWidth = null;\nexport var windowHeight = null;\nexport var width = null;\nexport var height = null;\nexport var disableFriendlyErrors = null;\nexport var deviceOrientation = null;\nexport var accelerationX = null;\nexport var accelerationY = null;\nexport var accelerationZ = null;\nexport var pAccelerationX = null;\nexport var pAccelerationY = null;\nexport var pAccelerationZ = null;\nexport var rotationX = null;\nexport var rotationY = null;\nexport var rotationZ = null;\nexport var pRotationX = null;\nexport var pRotationY = null;\nexport var pRotationZ = null;\nexport var turnAxis = null;\nexport var keyIsPressed = null;\nexport var key = null;\nexport var keyCode = null;\nexport var mouseX = null;\nexport var mouseY = null;\nexport var pmouseX = null;\nexport var pmouseY = null;\nexport var winMouseX = null;\nexport var winMouseY = null;\nexport var pwinMouseX = null;\nexport var pwinMouseY = null;\nexport var mouseButton = null;\nexport var mouseIsPressed = null;\nexport var touches = null;\nexport var pixels = null;\nexport var alpha = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.alpha (...args);\n};\nexport var blue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blue (...args);\n};\nexport var brightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.brightness (...args);\n};\nexport var color = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.color (...args);\n};\nexport var green = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.green (...args);\n};\nexport var hue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hue (...args);\n};\nexport var lerpColor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerpColor (...args);\n};\nexport var lightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lightness (...args);\n};\nexport var red = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.red (...args);\n};\nexport var saturation = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saturation (...args);\n};\nexport var background = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.background (...args);\n};\nexport var py_clear = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_clear = _P5_INSTANCE.clear (...args);\n\treturn p5_clear;\n};\nexport var colorMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.colorMode (...args);\n};\nexport var fill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fill (...args);\n};\nexport var noFill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noFill (...args);\n};\nexport var noStroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noStroke (...args);\n};\nexport var stroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.stroke (...args);\n};\nexport var arc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arc (...args);\n};\nexport var ellipse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipse (...args);\n};\nexport var circle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.circle (...args);\n};\nexport var line = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.line (...args);\n};\nexport var point = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.point (...args);\n};\nexport var quad = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quad (...args);\n};\nexport var rect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rect (...args);\n};\nexport var square = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.square (...args);\n};\nexport var triangle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.triangle (...args);\n};\nexport var plane = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.plane (...args);\n};\nexport var box = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.box (...args);\n};\nexport var sphere = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sphere (...args);\n};\nexport var cylinder = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cylinder (...args);\n};\nexport var cone = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cone (...args);\n};\nexport var ellipsoid = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipsoid (...args);\n};\nexport var torus = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.torus (...args);\n};\nexport var loadModel = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadModel (...args);\n};\nexport var model = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.model (...args);\n};\nexport var ellipseMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipseMode (...args);\n};\nexport var noSmooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noSmooth (...args);\n};\nexport var rectMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rectMode (...args);\n};\nexport var smooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.smooth (...args);\n};\nexport var strokeCap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeCap (...args);\n};\nexport var strokeJoin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeJoin (...args);\n};\nexport var strokeWeight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeWeight (...args);\n};\nexport var bezier = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezier (...args);\n};\nexport var bezierDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierDetail (...args);\n};\nexport var bezierPoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierPoint (...args);\n};\nexport var bezierTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierTangent (...args);\n};\nexport var curve = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curve (...args);\n};\nexport var curveDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveDetail (...args);\n};\nexport var curveTightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTightness (...args);\n};\nexport var curvePoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curvePoint (...args);\n};\nexport var curveTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTangent (...args);\n};\nexport var beginContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginContour (...args);\n};\nexport var beginShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginShape (...args);\n};\nexport var bezierVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierVertex (...args);\n};\nexport var curveVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveVertex (...args);\n};\nexport var endContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endContour (...args);\n};\nexport var endShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endShape (...args);\n};\nexport var quadraticVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quadraticVertex (...args);\n};\nexport var vertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.vertex (...args);\n};\nexport var cursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cursor (...args);\n};\nexport var frameRate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.frameRate (...args);\n};\nexport var noCursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCursor (...args);\n};\nexport var fullscreen = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fullscreen (...args);\n};\nexport var pixelDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pixelDensity (...args);\n};\nexport var displayDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.displayDensity (...args);\n};\nexport var getURL = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURL (...args);\n};\nexport var getURLPath = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLPath (...args);\n};\nexport var getURLParams = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLParams (...args);\n};\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.preload (...args);\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setup (...args);\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.draw (...args);\n};\nexport var remove = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.remove (...args);\n};\nexport var noLoop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noLoop (...args);\n};\nexport var loop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loop (...args);\n};\nexport var push = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.push (...args);\n};\nexport var redraw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.redraw (...args);\n};\nexport var resizeCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resizeCanvas (...args);\n};\nexport var noCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCanvas (...args);\n};\nexport var createGraphics = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createGraphics (...args);\n};\nexport var blendMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blendMode (...args);\n};\nexport var setAttributes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setAttributes (...args);\n};\nexport var applyMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.applyMatrix (...args);\n};\nexport var resetMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetMatrix (...args);\n};\nexport var rotate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotate (...args);\n};\nexport var rotateX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateX (...args);\n};\nexport var rotateY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateY (...args);\n};\nexport var rotateZ = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateZ (...args);\n};\nexport var scale = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.scale (...args);\n};\nexport var shearX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearX (...args);\n};\nexport var shearY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearY (...args);\n};\nexport var translate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.translate (...args);\n};\nexport var createStringDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createStringDict (...args);\n};\nexport var createNumberDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createNumberDict (...args);\n};\nexport var append = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.append (...args);\n};\nexport var arrayCopy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arrayCopy (...args);\n};\nexport var concat = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.concat (...args);\n};\nexport var reverse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.reverse (...args);\n};\nexport var shorten = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shorten (...args);\n};\nexport var shuffle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shuffle (...args);\n};\nexport var py_sort = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_sort (...args);\n};\nexport var splice = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splice (...args);\n};\nexport var subset = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.subset (...args);\n};\nexport var float = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.float (...args);\n};\nexport var int = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.int (...args);\n};\nexport var str = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.str (...args);\n};\nexport var boolean = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.boolean (...args);\n};\nexport var byte = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.byte (...args);\n};\nexport var char = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.char (...args);\n};\nexport var unchar = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unchar (...args);\n};\nexport var hex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hex (...args);\n};\nexport var unhex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unhex (...args);\n};\nexport var join = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.join (...args);\n};\nexport var match = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.match (...args);\n};\nexport var matchAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.matchAll (...args);\n};\nexport var nf = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nf (...args);\n};\nexport var nfc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfc (...args);\n};\nexport var nfp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfp (...args);\n};\nexport var nfs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfs (...args);\n};\nexport var py_split = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_split (...args);\n};\nexport var splitTokens = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splitTokens (...args);\n};\nexport var trim = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.trim (...args);\n};\nexport var setMoveThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setMoveThreshold (...args);\n};\nexport var setShakeThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setShakeThreshold (...args);\n};\nexport var keyIsDown = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.keyIsDown (...args);\n};\nexport var createImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImage (...args);\n};\nexport var saveCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveCanvas (...args);\n};\nexport var saveFrames = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveFrames (...args);\n};\nexport var loadImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadImage (...args);\n};\nexport var image = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.image (...args);\n};\nexport var tint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tint (...args);\n};\nexport var noTint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noTint (...args);\n};\nexport var imageMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.imageMode (...args);\n};\nexport var blend = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blend (...args);\n};\nexport var copy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.copy (...args);\n};\nexport var filter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && (args [0] === null || callable (args [0]))) {\n\t\treturn PythonFunctions.filter (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.filter (...args);\n\t}\n};\nexport var py_get = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_get (...args);\n};\nexport var loadPixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadPixels (...args);\n};\nexport var set = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) <= 1) {\n\t\treturn PythonFunctions.set (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.set (...args);\n\t}\n};\nexport var updatePixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.updatePixels (...args);\n};\nexport var loadJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadJSON (...args);\n};\nexport var loadStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadStrings (...args);\n};\nexport var loadTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadTable (...args);\n};\nexport var loadXML = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadXML (...args);\n};\nexport var loadBytes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadBytes (...args);\n};\nexport var httpGet = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpGet (...args);\n};\nexport var httpPost = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpPost (...args);\n};\nexport var httpDo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpDo (...args);\n};\nexport var createWriter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createWriter (...args);\n};\nexport var save = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.save (...args);\n};\nexport var saveJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveJSON (...args);\n};\nexport var saveStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveStrings (...args);\n};\nexport var saveTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveTable (...args);\n};\nexport var day = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.day (...args);\n};\nexport var hour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hour (...args);\n};\nexport var minute = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.minute (...args);\n};\nexport var millis = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.millis (...args);\n};\nexport var month = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.month (...args);\n};\nexport var second = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.second (...args);\n};\nexport var year = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.year (...args);\n};\nexport var createVector = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVector (...args);\n};\nexport var abs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.abs (...args);\n};\nexport var ceil = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ceil (...args);\n};\nexport var constrain = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.constrain (...args);\n};\nexport var dist = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.dist (...args);\n};\nexport var exp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.exp (...args);\n};\nexport var floor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.floor (...args);\n};\nexport var lerp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerp (...args);\n};\nexport var log = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.log (...args);\n};\nexport var mag = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.mag (...args);\n};\nexport var map = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && callable (args [0])) {\n\t\treturn PythonFunctions.map (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.map (...args);\n\t}\n};\nexport var max = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.max (...args);\n};\nexport var min = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.min (...args);\n};\nexport var norm = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.norm (...args);\n};\nexport var pow = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pow (...args);\n};\nexport var round = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.round (...args);\n};\nexport var sq = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sq (...args);\n};\nexport var sqrt = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sqrt (...args);\n};\nexport var noise = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noise (...args);\n};\nexport var noiseDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseDetail (...args);\n};\nexport var noiseSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseSeed (...args);\n};\nexport var randomSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomSeed (...args);\n};\nexport var random = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.random (...args);\n};\nexport var randomGaussian = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomGaussian (...args);\n};\nexport var acos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.acos (...args);\n};\nexport var asin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.asin (...args);\n};\nexport var atan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan (...args);\n};\nexport var atan2 = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan2 (...args);\n};\nexport var cos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cos (...args);\n};\nexport var sin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sin (...args);\n};\nexport var tan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tan (...args);\n};\nexport var degrees = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.degrees (...args);\n};\nexport var radians = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.radians (...args);\n};\nexport var angleMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.angleMode (...args);\n};\nexport var textAlign = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAlign (...args);\n};\nexport var textLeading = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textLeading (...args);\n};\nexport var textSize = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textSize (...args);\n};\nexport var textStyle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textStyle (...args);\n};\nexport var textWidth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textWidth (...args);\n};\nexport var textAscent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAscent (...args);\n};\nexport var textDescent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textDescent (...args);\n};\nexport var loadFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadFont (...args);\n};\nexport var text = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.text (...args);\n};\nexport var textFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textFont (...args);\n};\nexport var orbitControl = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.orbitControl (...args);\n};\nexport var debugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.debugMode (...args);\n};\nexport var noDebugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noDebugMode (...args);\n};\nexport var ambientLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientLight (...args);\n};\nexport var directionalLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.directionalLight (...args);\n};\nexport var pointLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pointLight (...args);\n};\nexport var lights = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lights (...args);\n};\nexport var loadShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadShader (...args);\n};\nexport var createShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createShader (...args);\n};\nexport var shader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shader (...args);\n};\nexport var resetShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetShader (...args);\n};\nexport var normalMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.normalMaterial (...args);\n};\nexport var texture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.texture (...args);\n};\nexport var textureMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureMode (...args);\n};\nexport var textureWrap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureWrap (...args);\n};\nexport var ambientMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientMaterial (...args);\n};\nexport var specularMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.specularMaterial (...args);\n};\nexport var shininess = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shininess (...args);\n};\nexport var camera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.camera (...args);\n};\nexport var perspective = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.perspective (...args);\n};\nexport var ortho = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ortho (...args);\n};\nexport var createCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCamera (...args);\n};\nexport var setCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setCamera (...args);\n};\nexport var select = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.select (...args);\n};\nexport var selectAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.selectAll (...args);\n};\nexport var removeElements = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.removeElements (...args);\n};\nexport var changed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.changed (...args);\n};\nexport var input = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.input (...args);\n};\nexport var createDiv = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createDiv (...args);\n};\nexport var createP = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createP (...args);\n};\nexport var createSpan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSpan (...args);\n};\nexport var createImg = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImg (...args);\n};\nexport var createA = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createA (...args);\n};\nexport var createSlider = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSlider (...args);\n};\nexport var createButton = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createButton (...args);\n};\nexport var createCheckbox = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCheckbox (...args);\n};\nexport var createSelect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSelect (...args);\n};\nexport var createRadio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createRadio (...args);\n};\nexport var createColorPicker = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createColorPicker (...args);\n};\nexport var createInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createInput (...args);\n};\nexport var createFileInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createFileInput (...args);\n};\nexport var createVideo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVideo (...args);\n};\nexport var createAudio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createAudio (...args);\n};\nexport var createCapture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCapture (...args);\n};\nexport var createElement = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createElement (...args);\n};\nexport var createCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar canvas = _P5_INSTANCE.createCanvas (...args);\n\twidth = _P5_INSTANCE.width;\n\theight = _P5_INSTANCE.height;\n\treturn canvas;\n};\nexport var py_pop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_pop = _P5_INSTANCE.pop (...args);\n\treturn p5_pop;\n};\nexport var size = createCanvas;\nexport var popMatrix = py_pop;\nexport var popStyle = py_pop;\nexport var pushMatrix = push;\nexport var pushStyle = push;\nexport var pre_draw = function (p5_instance, draw_func) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_instance': var p5_instance = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t_CTX_MIDDLE = p5_instance._CTX_MIDDLE;\n\t_DEFAULT_FILL = p5_instance._DEFAULT_FILL;\n\t_DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT;\n\t_DEFAULT_STROKE = p5_instance._DEFAULT_STROKE;\n\t_DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL;\n\tADD = p5_instance.ADD;\n\tALT = p5_instance.ALT;\n\tARROW = p5_instance.ARROW;\n\tAUDIO = p5_instance.AUDIO;\n\tAUTO = p5_instance.AUTO;\n\tAXES = p5_instance.AXES;\n\tBACKSPACE = p5_instance.BACKSPACE;\n\tBASELINE = p5_instance.BASELINE;\n\tBEVEL = p5_instance.BEVEL;\n\tBEZIER = p5_instance.BEZIER;\n\tBLEND = p5_instance.BLEND;\n\tBLUR = p5_instance.BLUR;\n\tBOLD = p5_instance.BOLD;\n\tBOLDITALIC = p5_instance.BOLDITALIC;\n\tBOTTOM = p5_instance.BOTTOM;\n\tBURN = p5_instance.BURN;\n\tCENTER = p5_instance.CENTER;\n\tCHORD = p5_instance.CHORD;\n\tCLAMP = p5_instance.CLAMP;\n\tCLOSE = p5_instance.CLOSE;\n\tCONTROL = p5_instance.CONTROL;\n\tCORNER = p5_instance.CORNER;\n\tCORNERS = p5_instance.CORNERS;\n\tCROSS = p5_instance.CROSS;\n\tCURVE = p5_instance.CURVE;\n\tDARKEST = p5_instance.DARKEST;\n\tDEG_TO_RAD = p5_instance.DEG_TO_RAD;\n\tDEGREES = p5_instance.DEGREES;\n\tDELETE = p5_instance.DELETE;\n\tDIFFERENCE = p5_instance.DIFFERENCE;\n\tDILATE = p5_instance.DILATE;\n\tDODGE = p5_instance.DODGE;\n\tDOWN_ARROW = p5_instance.DOWN_ARROW;\n\tENTER = p5_instance.ENTER;\n\tERODE = p5_instance.ERODE;\n\tESCAPE = p5_instance.ESCAPE;\n\tEXCLUSION = p5_instance.EXCLUSION;\n\tFILL = p5_instance.FILL;\n\tGRAY = p5_instance.GRAY;\n\tGRID = p5_instance.GRID;\n\tHALF_PI = p5_instance.HALF_PI;\n\tHAND = p5_instance.HAND;\n\tHARD_LIGHT = p5_instance.HARD_LIGHT;\n\tHSB = p5_instance.HSB;\n\tHSL = p5_instance.HSL;\n\tIMAGE = p5_instance.IMAGE;\n\tIMMEDIATE = p5_instance.IMMEDIATE;\n\tINVERT = p5_instance.INVERT;\n\tITALIC = p5_instance.ITALIC;\n\tLANDSCAPE = p5_instance.LANDSCAPE;\n\tLEFT = p5_instance.LEFT;\n\tLEFT_ARROW = p5_instance.LEFT_ARROW;\n\tLIGHTEST = p5_instance.LIGHTEST;\n\tLINE_LOOP = p5_instance.LINE_LOOP;\n\tLINE_STRIP = p5_instance.LINE_STRIP;\n\tLINEAR = p5_instance.LINEAR;\n\tLINES = p5_instance.LINES;\n\tMIRROR = p5_instance.MIRROR;\n\tMITER = p5_instance.MITER;\n\tMOVE = p5_instance.MOVE;\n\tMULTIPLY = p5_instance.MULTIPLY;\n\tNEAREST = p5_instance.NEAREST;\n\tNORMAL = p5_instance.NORMAL;\n\tOPAQUE = p5_instance.OPAQUE;\n\tOPEN = p5_instance.OPEN;\n\tOPTION = p5_instance.OPTION;\n\tOVERLAY = p5_instance.OVERLAY;\n\tP2D = p5_instance.P2D;\n\tvar P3D = p5_instance.WEBGL;\n\tPI = p5_instance.PI;\n\tPIE = p5_instance.PIE;\n\tPOINTS = p5_instance.POINTS;\n\tPORTRAIT = p5_instance.PORTRAIT;\n\tPOSTERIZE = p5_instance.POSTERIZE;\n\tPROJECT = p5_instance.PROJECT;\n\tQUAD_STRIP = p5_instance.QUAD_STRIP;\n\tQUADRATIC = p5_instance.QUADRATIC;\n\tQUADS = p5_instance.QUADS;\n\tQUARTER_PI = p5_instance.QUARTER_PI;\n\tRAD_TO_DEG = p5_instance.RAD_TO_DEG;\n\tRADIANS = p5_instance.RADIANS;\n\tRADIUS = p5_instance.RADIUS;\n\tREPEAT = p5_instance.REPEAT;\n\tREPLACE = p5_instance.REPLACE;\n\tRETURN = p5_instance.RETURN;\n\tRGB = p5_instance.RGB;\n\tRIGHT = p5_instance.RIGHT;\n\tRIGHT_ARROW = p5_instance.RIGHT_ARROW;\n\tROUND = p5_instance.ROUND;\n\tSCREEN = p5_instance.SCREEN;\n\tSHIFT = p5_instance.SHIFT;\n\tSOFT_LIGHT = p5_instance.SOFT_LIGHT;\n\tSQUARE = p5_instance.SQUARE;\n\tSTROKE = p5_instance.STROKE;\n\tSUBTRACT = p5_instance.SUBTRACT;\n\tTAB = p5_instance.TAB;\n\tTAU = p5_instance.TAU;\n\tTEXT = p5_instance.TEXT;\n\tTEXTURE = p5_instance.TEXTURE;\n\tTHRESHOLD = p5_instance.THRESHOLD;\n\tTOP = p5_instance.TOP;\n\tTRIANGLE_FAN = p5_instance.TRIANGLE_FAN;\n\tTRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP;\n\tTRIANGLES = p5_instance.TRIANGLES;\n\tTWO_PI = p5_instance.TWO_PI;\n\tUP_ARROW = p5_instance.UP_ARROW;\n\tVIDEO = p5_instance.VIDEO;\n\tWAIT = p5_instance.WAIT;\n\tWEBGL = p5_instance.WEBGL;\n\tframeCount = p5_instance.frameCount;\n\tfocused = p5_instance.focused;\n\tdisplayWidth = p5_instance.displayWidth;\n\tdisplayHeight = p5_instance.displayHeight;\n\twindowWidth = p5_instance.windowWidth;\n\twindowHeight = p5_instance.windowHeight;\n\twidth = p5_instance.width;\n\theight = p5_instance.height;\n\tdisableFriendlyErrors = p5_instance.disableFriendlyErrors;\n\tdeviceOrientation = p5_instance.deviceOrientation;\n\taccelerationX = p5_instance.accelerationX;\n\taccelerationY = p5_instance.accelerationY;\n\taccelerationZ = p5_instance.accelerationZ;\n\tpAccelerationX = p5_instance.pAccelerationX;\n\tpAccelerationY = p5_instance.pAccelerationY;\n\tpAccelerationZ = p5_instance.pAccelerationZ;\n\trotationX = p5_instance.rotationX;\n\trotationY = p5_instance.rotationY;\n\trotationZ = p5_instance.rotationZ;\n\tpRotationX = p5_instance.pRotationX;\n\tpRotationY = p5_instance.pRotationY;\n\tpRotationZ = p5_instance.pRotationZ;\n\tturnAxis = p5_instance.turnAxis;\n\tkeyIsPressed = p5_instance.keyIsPressed;\n\tkey = p5_instance.key;\n\tkeyCode = p5_instance.keyCode;\n\tmouseX = p5_instance.mouseX;\n\tmouseY = p5_instance.mouseY;\n\tpmouseX = p5_instance.pmouseX;\n\tpmouseY = p5_instance.pmouseY;\n\twinMouseX = p5_instance.winMouseX;\n\twinMouseY = p5_instance.winMouseY;\n\tpwinMouseX = p5_instance.pwinMouseX;\n\tpwinMouseY = p5_instance.pwinMouseY;\n\tmouseButton = p5_instance.mouseButton;\n\tmouseIsPressed = p5_instance.mouseIsPressed;\n\ttouches = p5_instance.touches;\n\tpixels = p5_instance.pixels;\n\treturn draw_func ();\n};\nexport var global_p5_injection = function (p5_sketch) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar decorator = function (f) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'f': var f = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar wrapper = function () {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\t_P5_INSTANCE = p5_sketch;\n\t\t\treturn pre_draw (_P5_INSTANCE, f);\n\t\t};\n\t\treturn wrapper;\n\t};\n\treturn decorator;\n};\nexport var start_p5 = function (setup_func, draw_func, event_functions) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'setup_func': var setup_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'event_functions': var event_functions = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar sketch_setup = function (p5_sketch) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tp5_sketch.setup = global_p5_injection (p5_sketch) (setup_func);\n\t\tp5_sketch.draw = global_p5_injection (p5_sketch) (draw_func);\n\t};\n\tvar instance = new p5 (sketch_setup, 'sketch-holder');\n\tvar event_function_names = tuple (['deviceMoved', 'deviceTurned', 'deviceShaken', 'windowResized', 'keyPressed', 'keyReleased', 'keyTyped', 'mousePressed', 'mouseReleased', 'mouseClicked', 'doubleClicked', 'mouseMoved', 'mouseDragged', 'mouseWheel', 'touchStarted', 'touchMoved', 'touchEnded']);\n\tfor (var f_name of (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var f of event_function_names) {\n\t\t\tif (event_functions.py_get (f, null)) {\n\t\t\t\t__accu0__.append (f);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ()) {\n\t\tvar func = event_functions [f_name];\n\t\tvar event_func = global_p5_injection (instance) (func);\n\t\tsetattr (instance, f_name, event_func);\n\t}\n};\nexport var logOnloaded = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tconsole.log ('Lib loaded!');\n};\nexport var add_library = function (lib_name) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'lib_name': var lib_name = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar src = '';\n\treturn console.log ('Lib name is not valid:', lib_name);\n\tconsole.log ('Importing:', src);\n\tvar script = document.createElement ('script');\n\tscript.onload = logOnloaded;\n\tscript.src = src;\n\tdocument.head.appendChild (script);\n};\n\n//# sourceMappingURL=pyp5js.map"
  },
  {
    "path": "docs/examples/sketch_000/target/pyp5js.py",
    "content": "from pyp5js.python_functions import PythonFunctions\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndisableFriendlyErrors = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    __pragma__('noalias', 'clear')\n    p5_clear = _P5_INSTANCE.clear(*args)\n    __pragma__('alias', 'clear', 'py_clear')\n    return p5_clear\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef preload(*args):\n    return _P5_INSTANCE.preload(*args)\n\ndef setup(*args):\n    return _P5_INSTANCE.setup(*args)\n\ndef draw(*args):\n    return _P5_INSTANCE.draw(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\n\ndef pop(*args):\n    __pragma__('noalias', 'pop')\n    p5_pop = _P5_INSTANCE.pop(*args)\n    __pragma__('alias', 'pop', 'py_pop')\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\ndef pre_draw(p5_instance, draw_func):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP, QUADRATIC\n    global QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global disableFriendlyErrors, deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    disableFriendlyErrors = p5_instance.disableFriendlyErrors\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func()\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f):\n        def wrapper():\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    instance = __new__(p5(sketch_setup, 'sketch-holder'))\n\n    # inject event functions into p5\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\"\n    )\n\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(instance)(func)\n        setattr(instance, f_name, event_func)\n\n\ndef logOnloaded():\n    console.log(\"Lib loaded!\")\n\n\ndef add_library(lib_name):\n    # placeholder for https://github.com/berinhard/pyp5js/issues/31\n    src = ''\n\n    return console.log(\"Lib name is not valid:\", lib_name)\n\n    console.log(\"Importing:\", src)\n\n    script = document.createElement(\"script\")\n    script.onload = logOnloaded\n    script.src = src\n    document.head.appendChild(script)\n"
  },
  {
    "path": "docs/examples/sketch_000/target/pyp5js.python_functions.js",
    "content": "// Transcrypt'ed from Python, 2020-04-28 21:56:46\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __proxy__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, pow, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nvar __name__ = 'pyp5js.python_functions';\nexport var PythonFunctions =  __class__ ('PythonFunctions', [object], {\n\t__module__: __name__,\n});\nsetattr (PythonFunctions, 'map', map);\nsetattr (PythonFunctions, 'filter', filter);\nsetattr (PythonFunctions, 'set', set);\n\n//# sourceMappingURL=pyp5js.python_functions.map"
  },
  {
    "path": "docs/examples/sketch_000/target/pyp5js.python_functions.py",
    "content": "class PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n"
  },
  {
    "path": "docs/examples/sketch_000/target/sketch_000.js",
    "content": "// Transcrypt'ed from Python, 2020-04-28 21:56:46\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __proxy__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {ADD, ALT, ARROW, AUDIO, AUTO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC, BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST, DEGREES, DEG_TO_RAD, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION, FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE, LEFT, LEFT_ARROW, LIGHTEST, LINEAR, LINES, LINE_LOOP, LINE_STRIP, MIRROR, MITER, MOVE, MULTIPLY, NEAREST, NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUADRATIC, QUADS, QUAD_STRIP, QUARTER_PI, RADIANS, RADIUS, RAD_TO_DEG, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW, ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL, _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL, _P5_INSTANCE, abs, accelerationX, accelerationY, accelerationZ, acos, add_library, alpha, ambientLight, ambientMaterial, angleMode, append, applyMatrix, arc, arrayCopy, asin, atan, atan2, background, beginContour, beginShape, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, blend, blendMode, blue, boolean, box, brightness, byte, camera, ceil, changed, char, circle, color, colorMode, concat, cone, constrain, copy, cos, createA, createAudio, createButton, createCamera, createCanvas, createCapture, createCheckbox, createColorPicker, createDiv, createElement, createFileInput, createGraphics, createImage, createImg, createInput, createNumberDict, createP, createRadio, createSelect, createShader, createSlider, createSpan, createStringDict, createVector, createVideo, createWriter, cursor, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, cylinder, day, debugMode, degrees, deviceOrientation, directionalLight, disableFriendlyErrors, displayDensity, displayHeight, displayWidth, dist, ellipse, ellipseMode, ellipsoid, endContour, endShape, exp, fill, filter, float, floor, focused, frameCount, frameRate, fullscreen, getURL, getURLParams, getURLPath, global_p5_injection, green, height, hex, hour, httpDo, httpGet, httpPost, hue, image, imageMode, input, int, join, key, keyCode, keyIsDown, keyIsPressed, lerp, lerpColor, lightness, lights, line, loadBytes, loadFont, loadImage, loadJSON, loadModel, loadPixels, loadShader, loadStrings, loadTable, loadXML, log, logOnloaded, loop, mag, map, match, matchAll, max, millis, min, minute, model, month, mouseButton, mouseIsPressed, mouseX, mouseY, nf, nfc, nfp, nfs, noCanvas, noCursor, noDebugMode, noFill, noLoop, noSmooth, noStroke, noTint, noise, noiseDetail, noiseSeed, norm, normalMaterial, orbitControl, ortho, pAccelerationX, pAccelerationY, pAccelerationZ, pRotationX, pRotationY, pRotationZ, perspective, pixelDensity, pixels, plane, pmouseX, pmouseY, point, pointLight, popMatrix, popStyle, pow, pre_draw, preload, push, pushMatrix, pushStyle, pwinMouseX, pwinMouseY, py_clear, py_get, py_pop, py_sort, py_split, quad, quadraticVertex, radians, random, randomGaussian, randomSeed, rect, rectMode, red, redraw, remove, removeElements, resetMatrix, resetShader, resizeCanvas, reverse, rotate, rotateX, rotateY, rotateZ, rotationX, rotationY, rotationZ, round, saturation, save, saveCanvas, saveFrames, saveJSON, saveStrings, saveTable, scale, second, select, selectAll, set, setAttributes, setCamera, setMoveThreshold, setShakeThreshold, shader, shearX, shearY, shininess, shorten, shuffle, sin, size, smooth, specularMaterial, sphere, splice, splitTokens, sq, sqrt, square, start_p5, str, stroke, strokeCap, strokeJoin, strokeWeight, subset, tan, text, textAlign, textAscent, textDescent, textFont, textLeading, textSize, textStyle, textWidth, texture, textureMode, textureWrap, tint, torus, touches, translate, triangle, trim, turnAxis, unchar, unhex, updatePixels, vertex, width, winMouseX, winMouseY, windowHeight, windowWidth, year} from './pyp5js.js';\nvar __name__ = 'sketch_000';\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tcreateCanvas (200, 200);\n\tbackground (160);\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tfill ('blue');\n\tbackground (200);\n\tvar radius = sin (frameCount / 60) * 50 + 50;\n\tellipse (100, 100, radius, radius);\n};\n\n//# sourceMappingURL=sketch_000.map"
  },
  {
    "path": "docs/examples/sketch_000/target/sketch_000.py",
    "content": "from pyp5js import *\n\n\ndef setup():\n    createCanvas(200, 200)\n    background(160)\n\n\ndef draw():\n    fill(\"blue\")\n    background(200)\n    radius = sin(frameCount / 60) * 50 + 50\n    ellipse(100, 100, radius, radius)\n"
  },
  {
    "path": "docs/examples/sketch_000/target/target_sketch.js",
    "content": "// Transcrypt'ed from Python, 2020-04-28 21:56:45\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __proxy__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {ADD, ALT, ARROW, AUDIO, AUTO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC, BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST, DEGREES, DEG_TO_RAD, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION, FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE, LEFT, LEFT_ARROW, LIGHTEST, LINEAR, LINES, LINE_LOOP, LINE_STRIP, MIRROR, MITER, MOVE, MULTIPLY, NEAREST, NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUADRATIC, QUADS, QUAD_STRIP, QUARTER_PI, RADIANS, RADIUS, RAD_TO_DEG, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW, ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL, _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL, _P5_INSTANCE, abs, accelerationX, accelerationY, accelerationZ, acos, add_library, alpha, ambientLight, ambientMaterial, angleMode, append, applyMatrix, arc, arrayCopy, asin, atan, atan2, background, beginContour, beginShape, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, blend, blendMode, blue, boolean, box, brightness, byte, camera, ceil, changed, char, circle, color, colorMode, concat, cone, constrain, copy, cos, createA, createAudio, createButton, createCamera, createCanvas, createCapture, createCheckbox, createColorPicker, createDiv, createElement, createFileInput, createGraphics, createImage, createImg, createInput, createNumberDict, createP, createRadio, createSelect, createShader, createSlider, createSpan, createStringDict, createVector, createVideo, createWriter, cursor, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, cylinder, day, debugMode, degrees, deviceOrientation, directionalLight, disableFriendlyErrors, displayDensity, displayHeight, displayWidth, dist, draw, ellipse, ellipseMode, ellipsoid, endContour, endShape, exp, fill, filter, float, floor, focused, frameCount, frameRate, fullscreen, getURL, getURLParams, getURLPath, global_p5_injection, green, height, hex, hour, httpDo, httpGet, httpPost, hue, image, imageMode, input, int, join, key, keyCode, keyIsDown, keyIsPressed, lerp, lerpColor, lightness, lights, line, loadBytes, loadFont, loadImage, loadJSON, loadModel, loadPixels, loadShader, loadStrings, loadTable, loadXML, log, logOnloaded, loop, mag, map, match, matchAll, max, millis, min, minute, model, month, mouseButton, mouseIsPressed, mouseX, mouseY, nf, nfc, nfp, nfs, noCanvas, noCursor, noDebugMode, noFill, noLoop, noSmooth, noStroke, noTint, noise, noiseDetail, noiseSeed, norm, normalMaterial, orbitControl, ortho, pAccelerationX, pAccelerationY, pAccelerationZ, pRotationX, pRotationY, pRotationZ, perspective, pixelDensity, pixels, plane, pmouseX, pmouseY, point, pointLight, popMatrix, popStyle, pow, pre_draw, preload, push, pushMatrix, pushStyle, pwinMouseX, pwinMouseY, py_clear, py_get, py_pop, py_sort, py_split, quad, quadraticVertex, radians, random, randomGaussian, randomSeed, rect, rectMode, red, redraw, remove, removeElements, resetMatrix, resetShader, resizeCanvas, reverse, rotate, rotateX, rotateY, rotateZ, rotationX, rotationY, rotationZ, round, saturation, save, saveCanvas, saveFrames, saveJSON, saveStrings, saveTable, scale, second, select, selectAll, set, setAttributes, setCamera, setMoveThreshold, setShakeThreshold, setup, shader, shearX, shearY, shininess, shorten, shuffle, sin, size, smooth, specularMaterial, sphere, splice, splitTokens, sq, sqrt, square, start_p5, str, stroke, strokeCap, strokeJoin, strokeWeight, subset, tan, text, textAlign, textAscent, textDescent, textFont, textLeading, textSize, textStyle, textWidth, texture, textureMode, textureWrap, tint, torus, touches, translate, triangle, trim, turnAxis, unchar, unhex, updatePixels, vertex, width, winMouseX, winMouseY, windowHeight, windowWidth, year} from './pyp5js.js';\nimport * as source_sketch from './sketch_000.js';\nvar __name__ = '__main__';\nexport var event_functions = dict ({'deviceMoved': source_sketch.deviceMoved, 'deviceTurned': source_sketch.deviceTurned, 'deviceShaken': source_sketch.deviceShaken, 'keyPressed': source_sketch.keyPressed, 'keyReleased': source_sketch.keyReleased, 'keyTyped': source_sketch.keyTyped, 'mouseMoved': source_sketch.mouseMoved, 'mouseDragged': source_sketch.mouseDragged, 'mousePressed': source_sketch.mousePressed, 'mouseReleased': source_sketch.mouseReleased, 'mouseClicked': source_sketch.mouseClicked, 'doubleClicked': source_sketch.doubleClicked, 'mouseWheel': source_sketch.mouseWheel, 'touchStarted': source_sketch.touchStarted, 'touchMoved': source_sketch.touchMoved, 'touchEnded': source_sketch.touchEnded, 'windowResized': source_sketch.windowResized});\nstart_p5 (source_sketch.setup, source_sketch.draw, event_functions);\n\n//# sourceMappingURL=target_sketch.map"
  },
  {
    "path": "docs/examples/sketch_000/target/target_sketch.project",
    "content": "{\"options\": {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/sketch_000/target_sketch.py\", \"anno\": false, \"alimod\": false, \"build\": true, \"complex\": false, \"docat\": false, \"dassert\": false, \"dcheck\": false, \"dextex\": false, \"dlog\": false, \"dmap\": false, \"dnostrip\": false, \"dstat\": false, \"dtree\": false, \"esv\": null, \"ecom\": false, \"fcall\": false, \"gen\": false, \"iconv\": false, \"jscall\": false, \"jskeys\": false, \"jsmod\": false, \"kwargs\": true, \"keycheck\": false, \"license\": false, \"map\": true, \"nomin\": true, \"opov\": false, \"parent\": null, \"run\": false, \"symbols\": null, \"sform\": false, \"tconv\": false, \"unit\": null, \"verbose\": false, \"x\": null, \"xreex\": false, \"xglobs\": false, \"xpath\": \"/home/bernardo/envs/pyp5js/pyp5js\", \"xtiny\": false, \"star\": false}, \"modules\": [{\"source\": \"/home/bernardo/.virtualenvs/pyp5js/lib/python3.6/site-packages/transcrypt/modules/org/transcrypt/__runtime__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/sketch_000/__target__/org.transcrypt.__runtime__.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/sketch_000/target_sketch.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/sketch_000/__target__/target_sketch.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/pyp5js.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/sketch_000/__target__/pyp5js.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/python_functions.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/sketch_000/__target__/pyp5js.python_functions.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/sketch_000/sketch_000.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/sketch_000/__target__/sketch_000.js\"}]}"
  },
  {
    "path": "docs/examples/sketch_000/target/target_sketch.py",
    "content": "import sketch_000 as source_sketch\nfrom pyp5js import *\n\nevent_functions = {\n    \"deviceMoved\": source_sketch.deviceMoved,\n    \"deviceTurned\": source_sketch.deviceTurned,\n    \"deviceShaken\": source_sketch.deviceShaken,\n    \"keyPressed\": source_sketch.keyPressed,\n    \"keyReleased\": source_sketch.keyReleased,\n    \"keyTyped\": source_sketch.keyTyped,\n    \"mouseMoved\": source_sketch.mouseMoved,\n    \"mouseDragged\": source_sketch.mouseDragged,\n    \"mousePressed\": source_sketch.mousePressed,\n    \"mouseReleased\": source_sketch.mouseReleased,\n    \"mouseClicked\": source_sketch.mouseClicked,\n    \"doubleClicked\": source_sketch.doubleClicked,\n    \"mouseWheel\": source_sketch.mouseWheel,\n    \"touchStarted\": source_sketch.touchStarted,\n    \"touchMoved\": source_sketch.touchMoved,\n    \"touchEnded\": source_sketch.touchEnded,\n    \"windowResized\": source_sketch.windowResized,\n}\n\nstart_p5(source_sketch.setup, source_sketch.draw, event_functions)"
  },
  {
    "path": "docs/examples/transcrypt/index.html.template",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>{{ sketch_name }} - pyp5js (using Transcrypt)</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"{{ p5_js_url }}\"></script>\n    <script src=\"{{ sketch_js_url }}\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/transcrypt/{{ sketch_name }}\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre>\n             <code>\n{{ sketch_content }}\n              </code>\n          </pre>\n        </div>\n\n    </div>\n  </body>\n</html>\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_001/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_001 - pyp5js (using Transcrypt)</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/transcrypt/sketch_001\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre>\n             <code>\n# https://p5js.org/examples/interaction-wavemaker.html\n\nt = 0\n\ndef setup():\n    createCanvas(600, 600)\n    stroke(250)\n    strokeWeight(3)\n    fill(40, 200, 40)\n\n\ndef draw():\n    global t\n    background(10, 10)\n\n    xAngle = map(mouseX, 0, width, -4 * PI, 4 * PI, True)\n    yAngle = map(mouseY, 0, height, -4 * PI, 4 * PI, True)\n    for x in range(0, width, 30):\n        for y in range(0, height, 30):\n\n            angle = xAngle * (x / width) + yAngle * (y / height)\n\n            myX = x + 20 * cos(2 * PI * t + angle)\n            myY = y + 20 * sin(2 * TWO_PI * t + angle)\n\n            ellipse(myX, myY, 10)\n\n    t = t + 0.01\n\n              </code>\n          </pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/transcrypt/sketch_001/sketch_001.py",
    "content": "# https://p5js.org/examples/interaction-wavemaker.html\n\nt = 0\n\ndef setup():\n    createCanvas(600, 600)\n    stroke(250)\n    strokeWeight(3)\n    fill(40, 200, 40)\n\n\ndef draw():\n    global t\n    background(10, 10)\n\n    xAngle = map(mouseX, 0, width, -4 * PI, 4 * PI, True)\n    yAngle = map(mouseY, 0, height, -4 * PI, 4 * PI, True)\n    for x in range(0, width, 30):\n        for y in range(0, height, 30):\n\n            angle = xAngle * (x / width) + yAngle * (y / height)\n\n            myX = x + 20 * cos(2 * PI * t + angle)\n            myY = y + 20 * sin(2 * TWO_PI * t + angle)\n\n            ellipse(myX, myY, 10)\n\n    t = t + 0.01\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_001/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/transcrypt/sketch_001/target/org.transcrypt.__runtime__.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:08\nvar __name__ = 'org.transcrypt.__runtime__';\nexport var __envir__ = {};\n__envir__.interpreter_name = 'python';\n__envir__.transpiler_name = 'transcrypt';\n__envir__.executor_name = __envir__.transpiler_name;\n__envir__.transpiler_version = '3.9.0';\n\nexport function __nest__ (headObject, tailNames, value) {\n    var current = headObject;\n    if (tailNames != '') {\n        var tailChain = tailNames.split ('.');\n        var firstNewIndex = tailChain.length;\n        for (var index = 0; index < tailChain.length; index++) {\n            if (!current.hasOwnProperty (tailChain [index])) {\n                firstNewIndex = index;\n                break;\n            }\n            current = current [tailChain [index]];\n        }\n        for (var index = firstNewIndex; index < tailChain.length; index++) {\n            current [tailChain [index]] = {};\n            current = current [tailChain [index]];\n        }\n    }\n    for (let attrib of Object.getOwnPropertyNames (value)) {\n        Object.defineProperty (current, attrib, {\n            get () {return value [attrib];},\n            enumerable: true,\n            configurable: true\n        });\n    }\n};\nexport function __init__ (module) {\n    if (!module.__inited__) {\n        module.__all__.__init__ (module.__all__);\n        module.__inited__ = true;\n    }\n    return module.__all__;\n};\nexport function __get__ (aThis, func, quotedFuncName) {\n    if (aThis) {\n        if (aThis.hasOwnProperty ('__class__') || typeof aThis == 'string' || aThis instanceof String) {\n            if (quotedFuncName) {\n                Object.defineProperty (aThis, quotedFuncName, {\n                    value: function () {\n                        var args = [] .slice.apply (arguments);\n                        return func.apply (null, [aThis] .concat (args));\n                    },\n                    writable: true,\n                    enumerable: true,\n                    configurable: true\n                });\n            }\n            return function () {\n                var args = [] .slice.apply (arguments);\n                return func.apply (null, [aThis.__proxy__ ? aThis.__proxy__ : aThis] .concat (args));\n            };\n        }\n        else {\n            return func;\n        }\n    }\n    else {\n        return func;\n    }\n};\nexport function __getcm__ (aThis, func, quotedFuncName) {\n    if (aThis.hasOwnProperty ('__class__')) {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis.__class__] .concat (args));\n        };\n    }\n    else {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis] .concat (args));\n        };\n    }\n};\nexport function __getsm__ (aThis, func, quotedFuncName) {\n    return func;\n};\nexport var py_metatype = {\n    __name__: 'type',\n    __bases__: [],\n    __new__: function (meta, name, bases, attribs) {\n        var cls = function () {\n            var args = [] .slice.apply (arguments);\n            return cls.__new__ (args);\n        };\n        for (var index = bases.length - 1; index >= 0; index--) {\n            var base = bases [index];\n            for (var attrib in base) {\n                var descrip = Object.getOwnPropertyDescriptor (base, attrib);\n                if (descrip == null) {\n                    continue;\n                }\n                Object.defineProperty (cls, attrib, descrip);\n            }\n            for (let symbol of Object.getOwnPropertySymbols (base)) {\n                let descrip = Object.getOwnPropertyDescriptor (base, symbol);\n                Object.defineProperty (cls, symbol, descrip);\n            }\n        }\n        cls.__metaclass__ = meta;\n        cls.__name__ = name.startsWith ('py_') ? name.slice (3) : name;\n        cls.__bases__ = bases;\n        for (var attrib in attribs) {\n            var descrip = Object.getOwnPropertyDescriptor (attribs, attrib);\n            Object.defineProperty (cls, attrib, descrip);\n        }\n        for (let symbol of Object.getOwnPropertySymbols (attribs)) {\n            let descrip = Object.getOwnPropertyDescriptor (attribs, symbol);\n            Object.defineProperty (cls, symbol, descrip);\n        }\n        return cls;\n    }\n};\npy_metatype.__metaclass__ = py_metatype;\nexport var object = {\n    __init__: function (self) {},\n    __metaclass__: py_metatype,\n    __name__: 'object',\n    __bases__: [],\n    __new__: function (args) {\n        var instance = Object.create (this, {__class__: {value: this, enumerable: true}});\n        if ('__getattr__' in this || '__setattr__' in this) {\n            instance.__proxy__ = new Proxy (instance, {\n                get: function (target, name) {\n                    let result = target [name];\n                    if (result == undefined) {\n                        return target.__getattr__ (name);\n                    }\n                    else {\n                        return result;\n                    }\n                },\n                set: function (target, name, value) {\n                    try {\n                        target.__setattr__ (name, value);\n                    }\n                    catch (exception) {\n                        target [name] = value;\n                    }\n                    return true;\n                }\n            })\n\t\t\tinstance = instance.__proxy__\n        }\n        this.__init__.apply (null, [instance] .concat (args));\n        return instance;\n    }\n};\nexport function __class__ (name, bases, attribs, meta) {\n    if (meta === undefined) {\n        meta = bases [0] .__metaclass__;\n    }\n    return meta.__new__ (meta, name, bases, attribs);\n};\nexport function __pragma__ () {};\nexport function __call__ (/* <callee>, <this>, <params>* */) {\n    var args = [] .slice.apply (arguments);\n    if (typeof args [0] == 'object' && '__call__' in args [0]) {\n        return args [0] .__call__ .apply (args [1], args.slice (2));\n    }\n    else {\n        return args [0] .apply (args [1], args.slice (2));\n    }\n};\n__envir__.executor_name = __envir__.transpiler_name;\nvar __main__ = {__file__: ''};\nvar __except__ = null;\nexport function __kwargtrans__ (anObject) {\n    anObject.__kwargtrans__ = null;\n    anObject.constructor = Object;\n    return anObject;\n}\nexport function __super__ (aClass, methodName) {\n    for (let base of aClass.__bases__) {\n        if (methodName in base) {\n           return base [methodName];\n        }\n    }\n    throw new Exception ('Superclass method not found');\n}\nexport function property (getter, setter) {\n    if (!setter) {\n        setter = function () {};\n    }\n    return {get: function () {return getter (this)}, set: function (value) {setter (this, value)}, enumerable: true};\n}\nexport function __setproperty__ (anObject, name, descriptor) {\n    if (!anObject.hasOwnProperty (name)) {\n        Object.defineProperty (anObject, name, descriptor);\n    }\n}\nexport function assert (condition, message) {\n    if (!condition) {\n        throw AssertionError (message, new Error ());\n    }\n}\nexport function __mergekwargtrans__ (object0, object1) {\n    var result = {};\n    for (var attrib in object0) {\n        result [attrib] = object0 [attrib];\n    }\n    for (var attrib in object1) {\n        result [attrib] = object1 [attrib];\n    }\n    return result;\n};\nexport function __mergefields__ (targetClass, sourceClass) {\n    let fieldNames = ['__reprfields__', '__comparefields__', '__initfields__']\n    if (sourceClass [fieldNames [0]]) {\n        if (targetClass [fieldNames [0]]) {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set ([...targetClass [fieldName], ...sourceClass [fieldName]]);\n            }\n        }\n        else {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set (sourceClass [fieldName]);\n            }\n        }\n    }\n}\nexport function __withblock__ (manager, statements) {\n    if (hasattr (manager, '__enter__')) {\n        try {\n            manager.__enter__ ();\n            statements ();\n            manager.__exit__ ();\n        }\n        catch (exception) {\n            if (! (manager.__exit__ (exception.name, exception, exception.stack))) {\n                throw exception;\n            }\n        }\n    }\n    else {\n        statements ();\n        manager.close ();\n    }\n};\nexport function dir (obj) {\n    var aList = [];\n    for (var aKey in obj) {\n        aList.push (aKey.startsWith ('py_') ? aKey.slice (3) : aKey);\n    }\n    aList.sort ();\n    return aList;\n};\nexport function setattr (obj, name, value) {\n    obj [name] = value;\n};\nexport function getattr (obj, name) {\n    return name in obj ? obj [name] : obj ['py_' + name];\n};\nexport function hasattr (obj, name) {\n    try {\n        return name in obj || 'py_' + name in obj;\n    }\n    catch (exception) {\n        return false;\n    }\n};\nexport function delattr (obj, name) {\n    if (name in obj) {\n        delete obj [name];\n    }\n    else {\n        delete obj ['py_' + name];\n    }\n};\nexport function __in__ (element, container) {\n    if (container === undefined || container === null) {\n        return false;\n    }\n    if (container.__contains__ instanceof Function) {\n        return container.__contains__ (element);\n    }\n    else {\n        return (\n            container.indexOf ?\n            container.indexOf (element) > -1 :\n            container.hasOwnProperty (element)\n        );\n    }\n};\nexport function __specialattrib__ (attrib) {\n    return (attrib.startswith ('__') && attrib.endswith ('__')) || attrib == 'constructor' || attrib.startswith ('py_');\n};\nexport function len (anObject) {\n    if (anObject === undefined || anObject === null) {\n        return 0;\n    }\n    if (anObject.__len__ instanceof Function) {\n        return anObject.__len__ ();\n    }\n    if (anObject.length !== undefined) {\n        return anObject.length;\n    }\n    var length = 0;\n    for (var attr in anObject) {\n        if (!__specialattrib__ (attr)) {\n            length++;\n        }\n    }\n    return length;\n};\nexport function __i__ (any) {\n    return py_typeof (any) == dict ? any.py_keys () : any;\n}\nexport function __k__ (keyed, key) {\n    var result = keyed [key];\n    if (typeof result == 'undefined') {\n        if (keyed instanceof Array)\n            if (key == +key && key >= 0 && keyed.length > key)\n                return result;\n            else\n                throw IndexError (key, new Error());\n        else\n            throw KeyError (key, new Error());\n    }\n    return result;\n}\nexport function __t__ (target) {\n    return (\n        target === undefined || target === null ? false :\n        ['boolean', 'number'] .indexOf (typeof target) >= 0 ? target :\n        target.__bool__ instanceof Function ? (target.__bool__ () ? target : false) :\n        target.__len__ instanceof Function ?  (target.__len__ () !== 0 ? target : false) :\n        target instanceof Function ? target :\n        len (target) !== 0 ? target :\n        false\n    );\n}\nexport function float (any) {\n    if (any == 'inf') {\n        return Infinity;\n    }\n    else if (any == '-inf') {\n        return -Infinity;\n    }\n    else if (any == 'nan') {\n        return NaN;\n    }\n    else if (isNaN (parseFloat (any))) {\n        if (any === false) {\n            return 0;\n        }\n        else if (any === true) {\n            return 1;\n        }\n        else {\n            throw ValueError (\"could not convert string to float: '\" + str(any) + \"'\", new Error ());\n        }\n    }\n    else {\n        return +any;\n    }\n};\nfloat.__name__ = 'float';\nfloat.__bases__ = [object];\nexport function int (any) {\n    return float (any) | 0\n};\nint.__name__ = 'int';\nint.__bases__ = [object];\nexport function bool (any) {\n    return !!__t__ (any);\n};\nbool.__name__ = 'bool';\nbool.__bases__ = [int];\nexport function py_typeof (anObject) {\n    var aType = typeof anObject;\n    if (aType == 'object') {\n        try {\n            return '__class__' in anObject ? anObject.__class__ : object;\n        }\n        catch (exception) {\n            return aType;\n        }\n    }\n    else {\n        return (\n            aType == 'boolean' ? bool :\n            aType == 'string' ? str :\n            aType == 'number' ? (anObject % 1 == 0 ? int : float) :\n            null\n        );\n    }\n};\nexport function issubclass (aClass, classinfo) {\n    if (classinfo instanceof Array) {\n        for (let aClass2 of classinfo) {\n            if (issubclass (aClass, aClass2)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    try {\n        var aClass2 = aClass;\n        if (aClass2 == classinfo) {\n            return true;\n        }\n        else {\n            var bases = [].slice.call (aClass2.__bases__);\n            while (bases.length) {\n                aClass2 = bases.shift ();\n                if (aClass2 == classinfo) {\n                    return true;\n                }\n                if (aClass2.__bases__.length) {\n                    bases = [].slice.call (aClass2.__bases__).concat (bases);\n                }\n            }\n            return false;\n        }\n    }\n    catch (exception) {\n        return aClass == classinfo || classinfo == object;\n    }\n};\nexport function isinstance (anObject, classinfo) {\n    try {\n        return '__class__' in anObject ? issubclass (anObject.__class__, classinfo) : issubclass (py_typeof (anObject), classinfo);\n    }\n    catch (exception) {\n        return issubclass (py_typeof (anObject), classinfo);\n    }\n};\nexport function callable (anObject) {\n    return anObject && typeof anObject == 'object' && '__call__' in anObject ? true : typeof anObject === 'function';\n};\nexport function repr (anObject) {\n    try {\n        return anObject.__repr__ ();\n    }\n    catch (exception) {\n        try {\n            return anObject.__str__ ();\n        }\n        catch (exception) {\n            try {\n                if (anObject == null) {\n                    return 'None';\n                }\n                else if (anObject.constructor == Object) {\n                    var result = '{';\n                    var comma = false;\n                    for (var attrib in anObject) {\n                        if (!__specialattrib__ (attrib)) {\n                            if (attrib.isnumeric ()) {\n                                var attribRepr = attrib;\n                            }\n                            else {\n                                var attribRepr = '\\'' + attrib + '\\'';\n                            }\n                            if (comma) {\n                                result += ', ';\n                            }\n                            else {\n                                comma = true;\n                            }\n                            result += attribRepr + ': ' + repr (anObject [attrib]);\n                        }\n                    }\n                    result += '}';\n                    return result;\n                }\n                else {\n                    return typeof anObject == 'boolean' ? anObject.toString () .capitalize () : anObject.toString ();\n                }\n            }\n            catch (exception) {\n                return '<object of type: ' + typeof anObject + '>';\n            }\n        }\n    }\n};\nexport function chr (charCode) {\n    return String.fromCharCode (charCode);\n};\nexport function ord (aChar) {\n    return aChar.charCodeAt (0);\n};\nexport function max (nrOrSeq) {\n    return arguments.length == 1 ? Math.max (...nrOrSeq) : Math.max (...arguments);\n};\nexport function min (nrOrSeq) {\n    return arguments.length == 1 ? Math.min (...nrOrSeq) : Math.min (...arguments);\n};\nexport var abs = Math.abs;\nexport function round (number, ndigits) {\n    if (ndigits) {\n        var scale = Math.pow (10, ndigits);\n        number *= scale;\n    }\n    var rounded = Math.round (number);\n    if (rounded - number == 0.5 && rounded % 2) {\n        rounded -= 1;\n    }\n    if (ndigits) {\n        rounded /= scale;\n    }\n    return rounded;\n};\nexport function __jsUsePyNext__ () {\n    try {\n        var result = this.__next__ ();\n        return {value: result, done: false};\n    }\n    catch (exception) {\n        return {value: undefined, done: true};\n    }\n}\nexport function __pyUseJsNext__ () {\n    var result = this.next ();\n    if (result.done) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result.value;\n    }\n}\nexport function py_iter (iterable) {\n    if (typeof iterable == 'string' || '__iter__' in iterable) {\n        var result = iterable.__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('selector' in iterable) {\n        var result = list (iterable) .__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('next' in iterable) {\n        var result = iterable\n        if (! ('__next__' in result)) {\n            result.__next__ = __pyUseJsNext__;\n        }\n    }\n    else if (Symbol.iterator in iterable) {\n        var result = iterable [Symbol.iterator] ();\n        result.__next__ = __pyUseJsNext__;\n    }\n    else {\n        throw IterableError (new Error ());\n    }\n    result [Symbol.iterator] = function () {return result;};\n    return result;\n}\nexport function py_next (iterator) {\n    try {\n        var result = iterator.__next__ ();\n    }\n    catch (exception) {\n        var result = iterator.next ();\n        if (result.done) {\n            throw StopIteration (new Error ());\n        }\n        else {\n            return result.value;\n        }\n    }\n    if (result == undefined) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result;\n    }\n}\nexport function __PyIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__PyIterator__.prototype.__next__ = function() {\n    if (this.index < this.iterable.length) {\n        return this.iterable [this.index++];\n    }\n    else {\n        throw StopIteration (new Error ());\n    }\n};\nexport function __JsIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__JsIterator__.prototype.next = function () {\n    if (this.index < this.iterable.py_keys.length) {\n        return {value: this.index++, done: false};\n    }\n    else {\n        return {value: undefined, done: true};\n    }\n};\nexport function py_reversed (iterable) {\n    iterable = iterable.slice ();\n    iterable.reverse ();\n    return iterable;\n};\nexport function zip () {\n    var args = [] .slice.call (arguments);\n    for (var i = 0; i < args.length; i++) {\n        if (typeof args [i] == 'string') {\n            args [i] = args [i] .split ('');\n        }\n        else if (!Array.isArray (args [i])) {\n            args [i] = Array.from (args [i]);\n        }\n    }\n    var shortest = args.length == 0 ? [] : args.reduce (\n        function (array0, array1) {\n            return array0.length < array1.length ? array0 : array1;\n        }\n    );\n    return shortest.map (\n        function (current, index) {\n            return args.map (\n                function (current) {\n                    return current [index];\n                }\n            );\n        }\n    );\n};\nexport function range (start, stop, step) {\n    if (stop == undefined) {\n        stop = start;\n        start = 0;\n    }\n    if (step == undefined) {\n        step = 1;\n    }\n    if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) {\n        return [];\n    }\n    var result = [];\n    for (var i = start; step > 0 ? i < stop : i > stop; i += step) {\n        result.push(i);\n    }\n    return result;\n};\nexport function any (iterable) {\n    for (let item of iterable) {\n        if (bool (item)) {\n            return true;\n        }\n    }\n    return false;\n}\nexport function all (iterable) {\n    for (let item of iterable) {\n        if (! bool (item)) {\n            return false;\n        }\n    }\n    return true;\n}\nexport function sum (iterable) {\n    let result = 0;\n    for (let item of iterable) {\n        result += item;\n    }\n    return result;\n}\nexport function enumerate (iterable) {\n    return zip (range (len (iterable)), iterable);\n}\nexport function copy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = anObject [attrib];\n            }\n        }\n        return result;\n    }\n}\nexport function deepcopy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = deepcopy (anObject [attrib]);\n            }\n        }\n        return result;\n    }\n}\nexport function list (iterable) {\n    let instance = iterable ? Array.from (iterable) : [];\n    return instance;\n}\nArray.prototype.__class__ = list;\nlist.__name__ = 'list';\nlist.__bases__ = [object];\nArray.prototype.__iter__ = function () {return new __PyIterator__ (this);};\nArray.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    else if (stop > this.length) {\n        stop = this.length;\n    }\n    if (step == 1) {\n        return Array.prototype.slice.call(this, start, stop);\n    }\n    let result = list ([]);\n    for (let index = start; index < stop; index += step) {\n        result.push (this [index]);\n    }\n    return result;\n};\nArray.prototype.__setslice__ = function (start, stop, step, source) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    if (step == null) {\n        Array.prototype.splice.apply (this, [start, stop - start] .concat (source));\n    }\n    else {\n        let sourceIndex = 0;\n        for (let targetIndex = start; targetIndex < stop; targetIndex += step) {\n            this [targetIndex] = source [sourceIndex++];\n        }\n    }\n};\nArray.prototype.__repr__ = function () {\n    if (this.__class__ == set && !this.length) {\n        return 'set()';\n    }\n    let result = !this.__class__ || this.__class__ == list ? '[' : this.__class__ == tuple ? '(' : '{';\n    for (let index = 0; index < this.length; index++) {\n        if (index) {\n            result += ', ';\n        }\n        result += repr (this [index]);\n    }\n    if (this.__class__ == tuple && this.length == 1) {\n        result += ',';\n    }\n    result += !this.__class__ || this.__class__ == list ? ']' : this.__class__ == tuple ? ')' : '}';;\n    return result;\n};\nArray.prototype.__str__ = Array.prototype.__repr__;\nArray.prototype.append = function (element) {\n    this.push (element);\n};\nArray.prototype.py_clear = function () {\n    this.length = 0;\n};\nArray.prototype.extend = function (aList) {\n    this.push.apply (this, aList);\n};\nArray.prototype.insert = function (index, element) {\n    this.splice (index, 0, element);\n};\nArray.prototype.remove = function (element) {\n    let index = this.indexOf (element);\n    if (index == -1) {\n        throw ValueError (\"list.remove(x): x not in list\", new Error ());\n    }\n    this.splice (index, 1);\n};\nArray.prototype.index = function (element) {\n    return this.indexOf (element);\n};\nArray.prototype.py_pop = function (index) {\n    if (index == undefined) {\n        return this.pop ();\n    }\n    else {\n        return this.splice (index, 1) [0];\n    }\n};\nArray.prototype.py_sort = function () {\n    __sort__.apply  (null, [this].concat ([] .slice.apply (arguments)));\n};\nArray.prototype.__add__ = function (aList) {\n    return list (this.concat (aList));\n};\nArray.prototype.__mul__ = function (scalar) {\n    let result = this;\n    for (let i = 1; i < scalar; i++) {\n        result = result.concat (this);\n    }\n    return result;\n};\nArray.prototype.__rmul__ = Array.prototype.__mul__;\nexport function tuple (iterable) {\n    let instance = iterable ? [] .slice.apply (iterable) : [];\n    instance.__class__ = tuple;\n    return instance;\n}\ntuple.__name__ = 'tuple';\ntuple.__bases__ = [object];\nexport function set (iterable) {\n    let instance = [];\n    if (iterable) {\n        for (let index = 0; index < iterable.length; index++) {\n            instance.add (iterable [index]);\n        }\n    }\n    instance.__class__ = set;\n    return instance;\n}\nset.__name__ = 'set';\nset.__bases__ = [object];\nArray.prototype.__bindexOf__ = function (element) {\n    element += '';\n    let mindex = 0;\n    let maxdex = this.length - 1;\n    while (mindex <= maxdex) {\n        let index = (mindex + maxdex) / 2 | 0;\n        let middle = this [index] + '';\n        if (middle < element) {\n            mindex = index + 1;\n        }\n        else if (middle > element) {\n            maxdex = index - 1;\n        }\n        else {\n            return index;\n        }\n    }\n    return -1;\n};\nArray.prototype.add = function (element) {\n    if (this.indexOf (element) == -1) {\n        this.push (element);\n    }\n};\nArray.prototype.discard = function (element) {\n    var index = this.indexOf (element);\n    if (index != -1) {\n        this.splice (index, 1);\n    }\n};\nArray.prototype.isdisjoint = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issuperset = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) == -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issubset = function (other) {\n    return set (other.slice ()) .issuperset (this);\n};\nArray.prototype.union = function (other) {\n    let result = set (this.slice () .sort ());\n    for (let i = 0; i < other.length; i++) {\n        if (result.__bindexOf__ (other [i]) == -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.intersection = function (other) {\n    this.sort ();\n    let result = set ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.difference = function (other) {\n    let sother = set (other.slice () .sort ());\n    let result = set ();\n    for (let i = 0; i < this.length; i++) {\n        if (sother.__bindexOf__ (this [i]) == -1) {\n            result.push (this [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.symmetric_difference = function (other) {\n    return this.union (other) .difference (this.intersection (other));\n};\nArray.prototype.py_update = function () {\n    let updated = [] .concat.apply (this.slice (), arguments) .sort ();\n    this.py_clear ();\n    for (let i = 0; i < updated.length; i++) {\n        if (updated [i] != updated [i - 1]) {\n            this.push (updated [i]);\n        }\n    }\n};\nArray.prototype.__eq__ = function (other) {\n    if (this.length != other.length) {\n        return false;\n    }\n    if (this.__class__ == set) {\n        this.sort ();\n        other.sort ();\n    }\n    for (let i = 0; i < this.length; i++) {\n        if (this [i] != other [i]) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.__ne__ = function (other) {\n    return !this.__eq__ (other);\n};\nArray.prototype.__le__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issubset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] > other [i]) {\n                return false;\n            }\n            else if (this [i] < other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__ge__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issuperset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] < other [i]) {\n                return false;\n            }\n            else if (this [i] > other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__lt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issubset (other) && !this.issuperset (other) :\n        !this.__ge__ (other)\n    );\n};\nArray.prototype.__gt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issuperset (other) && !this.issubset (other) :\n        !this.__le__ (other)\n    );\n};\nexport function bytearray (bytable, encoding) {\n    if (bytable == undefined) {\n        return new Uint8Array (0);\n    }\n    else {\n        let aType = py_typeof (bytable);\n        if (aType == int) {\n            return new Uint8Array (bytable);\n        }\n        else if (aType == str) {\n            let aBytes = new Uint8Array (len (bytable));\n            for (let i = 0; i < len (bytable); i++) {\n                aBytes [i] = bytable.charCodeAt (i);\n            }\n            return aBytes;\n        }\n        else if (aType == list || aType == tuple) {\n            return new Uint8Array (bytable);\n        }\n        else {\n            throw py_TypeError;\n        }\n    }\n}\nexport var bytes = bytearray;\nUint8Array.prototype.__add__ = function (aBytes) {\n    let result = new Uint8Array (this.length + aBytes.length);\n    result.set (this);\n    result.set (aBytes, this.length);\n    return result;\n};\nUint8Array.prototype.__mul__ = function (scalar) {\n    let result = new Uint8Array (scalar * this.length);\n    for (let i = 0; i < scalar; i++) {\n        result.set (this, i * this.length);\n    }\n    return result;\n};\nUint8Array.prototype.__rmul__ = Uint8Array.prototype.__mul__;\nexport function str (stringable) {\n    if (typeof stringable === 'number')\n        return stringable.toString();\n    else {\n        try {\n            return stringable.__str__ ();\n        }\n        catch (exception) {\n            try {\n                return repr (stringable);\n            }\n            catch (exception) {\n                return String (stringable);\n            }\n        }\n    }\n};\nString.prototype.__class__ = str;\nstr.__name__ = 'str';\nstr.__bases__ = [object];\nString.prototype.__iter__ = function () {new __PyIterator__ (this);};\nString.prototype.__repr__ = function () {\n    return (this.indexOf ('\\'') == -1 ? '\\'' + this + '\\'' : '\"' + this + '\"') .py_replace ('\\t', '\\\\t') .py_replace ('\\n', '\\\\n');\n};\nString.prototype.__str__ = function () {\n    return this;\n};\nString.prototype.capitalize = function () {\n    return this.charAt (0).toUpperCase () + this.slice (1);\n};\nString.prototype.endswith = function (suffix) {\n    if (suffix instanceof Array) {\n        for (var i=0;i<suffix.length;i++) {\n            if (this.slice (-suffix[i].length) == suffix[i])\n                return true;\n        }\n    } else\n        return suffix == '' || this.slice (-suffix.length) == suffix;\n    return false;\n};\nString.prototype.find = function (sub, start) {\n    return this.indexOf (sub, start);\n};\nString.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    var result = '';\n    if (step == 1) {\n        result = this.substring (start, stop);\n    }\n    else {\n        for (var index = start; index < stop; index += step) {\n            result = result.concat (this.charAt(index));\n        }\n    }\n    return result;\n};\n__setproperty__ (String.prototype, 'format', {\n    get: function () {return __get__ (this, function (self) {\n        var args = tuple ([] .slice.apply (arguments).slice (1));\n        var autoIndex = 0;\n        return self.replace (/\\{(\\w*)\\}/g, function (match, key) {\n            if (key == '') {\n                key = autoIndex++;\n            }\n            if (key == +key) {\n                return args [key] === undefined ? match : str (args [key]);\n            }\n            else {\n                for (var index = 0; index < args.length; index++) {\n                    if (typeof args [index] == 'object' && args [index][key] !== undefined) {\n                        return str (args [index][key]);\n                    }\n                }\n                return match;\n            }\n        });\n    });},\n    enumerable: true\n});\nString.prototype.isalnum = function () {\n    return /^[0-9a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isalpha = function () {\n    return /^[a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isdecimal = function () {\n    return /^[0-9]{1,}$/.test(this)\n}\nString.prototype.isdigit = function () {\n    return this.isdecimal()\n}\nString.prototype.islower = function () {\n    return /^[a-z]{1,}$/.test(this)\n}\nString.prototype.isupper = function () {\n    return /^[A-Z]{1,}$/.test(this)\n}\nString.prototype.isspace = function () {\n    return /^[\\s]{1,}$/.test(this)\n}\nString.prototype.isnumeric = function () {\n    return !isNaN (parseFloat (this)) && isFinite (this);\n};\nString.prototype.join = function (strings) {\n    strings = Array.from (strings);\n    return strings.join (this);\n};\nString.prototype.lower = function () {\n    return this.toLowerCase ();\n};\nString.prototype.py_replace = function (old, aNew, maxreplace) {\n    return this.split (old, maxreplace) .join (aNew);\n};\nString.prototype.lstrip = function () {\n    return this.replace (/^\\s*/g, '');\n};\nString.prototype.rfind = function (sub, start) {\n    return this.lastIndexOf (sub, start);\n};\nString.prototype.rsplit = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            var maxrsplit = result.length - maxsplit;\n            return [result.slice (0, maxrsplit) .join (sep)] .concat (result.slice (maxrsplit));\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.rstrip = function () {\n    return this.replace (/\\s*$/g, '');\n};\nString.prototype.py_split = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            return result.slice (0, maxsplit).concat ([result.slice (maxsplit).join (sep)]);\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.startswith = function (prefix) {\n    if (prefix instanceof Array) {\n        for (var i=0;i<prefix.length;i++) {\n            if (this.indexOf (prefix [i]) == 0)\n                return true;\n        }\n    } else\n        return this.indexOf (prefix) == 0;\n    return false;\n};\nString.prototype.strip = function () {\n    return this.trim ();\n};\nString.prototype.upper = function () {\n    return this.toUpperCase ();\n};\nString.prototype.__mul__ = function (scalar) {\n    var result = '';\n    for (var i = 0; i < scalar; i++) {\n        result = result + this;\n    }\n    return result;\n};\nString.prototype.__rmul__ = String.prototype.__mul__;\nfunction __contains__ (element) {\n    return this.hasOwnProperty (element);\n}\nfunction __keys__ () {\n    var keys = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            keys.push (attrib);\n        }\n    }\n    return keys;\n}\nfunction __items__ () {\n    var items = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            items.push ([attrib, this [attrib]]);\n        }\n    }\n    return items;\n}\nfunction __del__ (key) {\n    delete this [key];\n}\nfunction __clear__ () {\n    for (var attrib in this) {\n        delete this [attrib];\n    }\n}\nfunction __getdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result == undefined) {\n        result = this ['py_' + aKey]\n    }\n    return result == undefined ? (aDefault == undefined ? null : aDefault) : result;\n}\nfunction __setdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        return result;\n    }\n    var val = aDefault == undefined ? null : aDefault;\n    this [aKey] = val;\n    return val;\n}\nfunction __pop__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        delete this [aKey];\n        return result;\n    } else {\n        if ( aDefault === undefined ) {\n            throw KeyError (aKey, new Error());\n        }\n    }\n    return aDefault;\n}\nfunction __popitem__ () {\n    var aKey = Object.keys (this) [0];\n    if (aKey == null) {\n        throw KeyError (\"popitem(): dictionary is empty\", new Error ());\n    }\n    var result = tuple ([aKey, this [aKey]]);\n    delete this [aKey];\n    return result;\n}\nfunction __update__ (aDict) {\n    for (var aKey in aDict) {\n        this [aKey] = aDict [aKey];\n    }\n}\nfunction __values__ () {\n    var values = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            values.push (this [attrib]);\n        }\n    }\n    return values;\n}\nfunction __dgetitem__ (aKey) {\n    return this [aKey];\n}\nfunction __dsetitem__ (aKey, aValue) {\n    this [aKey] = aValue;\n}\nexport function dict (objectOrPairs) {\n    var instance = {};\n    if (!objectOrPairs || objectOrPairs instanceof Array) {\n        if (objectOrPairs) {\n            for (var index = 0; index < objectOrPairs.length; index++) {\n                var pair = objectOrPairs [index];\n                if ( !(pair instanceof Array) || pair.length != 2) {\n                    throw ValueError(\n                        \"dict update sequence element #\" + index +\n                        \" has length \" + pair.length +\n                        \"; 2 is required\", new Error());\n                }\n                var key = pair [0];\n                var val = pair [1];\n                if (!(objectOrPairs instanceof Array) && objectOrPairs instanceof Object) {\n                     if (!isinstance (objectOrPairs, dict)) {\n                         val = dict (val);\n                     }\n                }\n                instance [key] = val;\n            }\n        }\n    }\n    else {\n        if (isinstance (objectOrPairs, dict)) {\n            var aKeys = objectOrPairs.py_keys ();\n            for (var index = 0; index < aKeys.length; index++ ) {\n                var key = aKeys [index];\n                instance [key] = objectOrPairs [key];\n            }\n        } else if (objectOrPairs instanceof Object) {\n            instance = objectOrPairs;\n        } else {\n            throw ValueError (\"Invalid type of object for dict creation\", new Error ());\n        }\n    }\n    __setproperty__ (instance, '__class__', {value: dict, enumerable: false, writable: true});\n    __setproperty__ (instance, '__contains__', {value: __contains__, enumerable: false});\n    __setproperty__ (instance, 'py_keys', {value: __keys__, enumerable: false});\n    __setproperty__ (instance, '__iter__', {value: function () {new __PyIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, Symbol.iterator, {value: function () {new __JsIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, 'py_items', {value: __items__, enumerable: false});\n    __setproperty__ (instance, 'py_del', {value: __del__, enumerable: false});\n    __setproperty__ (instance, 'py_clear', {value: __clear__, enumerable: false});\n    __setproperty__ (instance, 'py_get', {value: __getdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_setdefault', {value: __setdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_pop', {value: __pop__, enumerable: false});\n    __setproperty__ (instance, 'py_popitem', {value: __popitem__, enumerable: false});\n    __setproperty__ (instance, 'py_update', {value: __update__, enumerable: false});\n    __setproperty__ (instance, 'py_values', {value: __values__, enumerable: false});\n    __setproperty__ (instance, '__getitem__', {value: __dgetitem__, enumerable: false});\n    __setproperty__ (instance, '__setitem__', {value: __dsetitem__, enumerable: false});\n    return instance;\n}\ndict.__name__ = 'dict';\ndict.__bases__ = [object];\nfunction __setdoc__ (docString) {\n    this.__doc__ = docString;\n    return this;\n}\n__setproperty__ (Function.prototype, '__setdoc__', {value: __setdoc__, enumerable: false});\nexport function __jsmod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __mod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __pow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport var pow = __pow__;\nexport function __neg__ (a) {\n    if (typeof a == 'object' && '__neg__' in a) {\n        return a.__neg__ ();\n    }\n    else {\n        return -a;\n    }\n};\nexport function __matmul__ (a, b) {\n    return a.__matmul__ (b);\n};\nexport function __mul__ (a, b) {\n    if (typeof a == 'object' && '__mul__' in a) {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return b.__rmul__ (a);\n    }\n    else {\n        return a * b;\n    }\n};\nexport function __truediv__ (a, b) {\n    if (typeof a == 'object' && '__truediv__' in a) {\n        return a.__truediv__ (b);\n    }\n    else if (typeof b == 'object' && '__rtruediv__' in b) {\n        return b.__rtruediv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return a / b;\n    }\n};\nexport function __floordiv__ (a, b) {\n    if (typeof a == 'object' && '__floordiv__' in a) {\n        return a.__floordiv__ (b);\n    }\n    else if (typeof b == 'object' && '__rfloordiv__' in b) {\n        return b.__rfloordiv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return Math.floor (a / b);\n    }\n};\nexport function __add__ (a, b) {\n    if (typeof a == 'object' && '__add__' in a) {\n        return a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return b.__radd__ (a);\n    }\n    else {\n        return a + b;\n    }\n};\nexport function __sub__ (a, b) {\n    if (typeof a == 'object' && '__sub__' in a) {\n        return a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return b.__rsub__ (a);\n    }\n    else {\n        return a - b;\n    }\n};\nexport function __lshift__ (a, b) {\n    if (typeof a == 'object' && '__lshift__' in a) {\n        return a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return b.__rlshift__ (a);\n    }\n    else {\n        return a << b;\n    }\n};\nexport function __rshift__ (a, b) {\n    if (typeof a == 'object' && '__rshift__' in a) {\n        return a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return b.__rrshift__ (a);\n    }\n    else {\n        return a >> b;\n    }\n};\nexport function __or__ (a, b) {\n    if (typeof a == 'object' && '__or__' in a) {\n        return a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return b.__ror__ (a);\n    }\n    else {\n        return a | b;\n    }\n};\nexport function __xor__ (a, b) {\n    if (typeof a == 'object' && '__xor__' in a) {\n        return a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return b.__rxor__ (a);\n    }\n    else {\n        return a ^ b;\n    }\n};\nexport function __and__ (a, b) {\n    if (typeof a == 'object' && '__and__' in a) {\n        return a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return b.__rand__ (a);\n    }\n    else {\n        return a & b;\n    }\n};\nexport function __eq__ (a, b) {\n    if (typeof a == 'object' && '__eq__' in a) {\n        return a.__eq__ (b);\n    }\n    else {\n        return a == b;\n    }\n};\nexport function __ne__ (a, b) {\n    if (typeof a == 'object' && '__ne__' in a) {\n        return a.__ne__ (b);\n    }\n    else {\n        return a != b\n    }\n};\nexport function __lt__ (a, b) {\n    if (typeof a == 'object' && '__lt__' in a) {\n        return a.__lt__ (b);\n    }\n    else {\n        return a < b;\n    }\n};\nexport function __le__ (a, b) {\n    if (typeof a == 'object' && '__le__' in a) {\n        return a.__le__ (b);\n    }\n    else {\n        return a <= b;\n    }\n};\nexport function __gt__ (a, b) {\n    if (typeof a == 'object' && '__gt__' in a) {\n        return a.__gt__ (b);\n    }\n    else {\n        return a > b;\n    }\n};\nexport function __ge__ (a, b) {\n    if (typeof a == 'object' && '__ge__' in a) {\n        return a.__ge__ (b);\n    }\n    else {\n        return a >= b;\n    }\n};\nexport function __imatmul__ (a, b) {\n    if ('__imatmul__' in a) {\n        return a.__imatmul__ (b);\n    }\n    else {\n        return a.__matmul__ (b);\n    }\n};\nexport function __ipow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__ipow__ (b);\n    }\n    else if (typeof a == 'object' && '__ipow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport function __ijsmod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__ismod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __imod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__imod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __imul__ (a, b) {\n    if (typeof a == 'object' && '__imul__' in a) {\n        return a.__imul__ (b);\n    }\n    else if (typeof a == 'object' && '__mul__' in a) {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return a = b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return a = b.__rmul__ (a);\n    }\n    else {\n        return a *= b;\n    }\n};\nexport function __idiv__ (a, b) {\n    if (typeof a == 'object' && '__idiv__' in a) {\n        return a.__idiv__ (b);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a = a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return a = b.__rdiv__ (a);\n    }\n    else {\n        return a /= b;\n    }\n};\nexport function __iadd__ (a, b) {\n    if (typeof a == 'object' && '__iadd__' in a) {\n        return a.__iadd__ (b);\n    }\n    else if (typeof a == 'object' && '__add__' in a) {\n        return a = a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return a = b.__radd__ (a);\n    }\n    else {\n        return a += b;\n    }\n};\nexport function __isub__ (a, b) {\n    if (typeof a == 'object' && '__isub__' in a) {\n        return a.__isub__ (b);\n    }\n    else if (typeof a == 'object' && '__sub__' in a) {\n        return a = a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return a = b.__rsub__ (a);\n    }\n    else {\n        return a -= b;\n    }\n};\nexport function __ilshift__ (a, b) {\n    if (typeof a == 'object' && '__ilshift__' in a) {\n        return a.__ilshift__ (b);\n    }\n    else if (typeof a == 'object' && '__lshift__' in a) {\n        return a = a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return a = b.__rlshift__ (a);\n    }\n    else {\n        return a <<= b;\n    }\n};\nexport function __irshift__ (a, b) {\n    if (typeof a == 'object' && '__irshift__' in a) {\n        return a.__irshift__ (b);\n    }\n    else if (typeof a == 'object' && '__rshift__' in a) {\n        return a = a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return a = b.__rrshift__ (a);\n    }\n    else {\n        return a >>= b;\n    }\n};\nexport function __ior__ (a, b) {\n    if (typeof a == 'object' && '__ior__' in a) {\n        return a.__ior__ (b);\n    }\n    else if (typeof a == 'object' && '__or__' in a) {\n        return a = a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return a = b.__ror__ (a);\n    }\n    else {\n        return a |= b;\n    }\n};\nexport function __ixor__ (a, b) {\n    if (typeof a == 'object' && '__ixor__' in a) {\n        return a.__ixor__ (b);\n    }\n    else if (typeof a == 'object' && '__xor__' in a) {\n        return a = a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return a = b.__rxor__ (a);\n    }\n    else {\n        return a ^= b;\n    }\n};\nexport function __iand__ (a, b) {\n    if (typeof a == 'object' && '__iand__' in a) {\n        return a.__iand__ (b);\n    }\n    else if (typeof a == 'object' && '__and__' in a) {\n        return a = a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return a = b.__rand__ (a);\n    }\n    else {\n        return a &= b;\n    }\n};\nexport function __getitem__ (container, key) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ (key);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        return container [container.length + key];\n    }\n    else {\n        return container [key];\n    }\n};\nexport function __setitem__ (container, key, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ (key, value);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        container [container.length + key] = value;\n    }\n    else {\n        container [key] = value;\n    }\n};\nexport function __getslice__ (container, lower, upper, step) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ ([lower, upper, step]);\n    }\n    else {\n        return container.__getslice__ (lower, upper, step);\n    }\n};\nexport function __setslice__ (container, lower, upper, step, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ ([lower, upper, step], value);\n    }\n    else {\n        container.__setslice__ (lower, upper, step, value);\n    }\n};\nexport var BaseException =  __class__ ('BaseException', [object], {\n\t__module__: __name__,\n});\nexport var Exception =  __class__ ('Exception', [BaseException], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tvar kwargs = dict ();\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tdefault: kwargs [__attrib0__] = __allkwargs0__ [__attrib0__];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdelete kwargs.__kwargtrans__;\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.__args__ = args;\n\t\tif (kwargs.error != null) {\n\t\t\tself.stack = kwargs.error.stack;\n\t\t}\n\t\telse if (Error) {\n\t\t\tself.stack = new Error ().stack;\n\t\t}\n\t\telse {\n\t\t\tself.stack = 'No stack trace available';\n\t\t}\n\t});},\n\tget __repr__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]));\n\t\t}\n\t\telse {\n\t\t\treturn '{}()'.format (self.__class__.__name__);\n\t\t}\n\t});},\n\tget __str__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn str (tuple (self.__args__));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn str (self.__args__ [0]);\n\t\t}\n\t\telse {\n\t\t\treturn '';\n\t\t}\n\t});}\n});\nexport var IterableError =  __class__ ('IterableError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, \"Can't iterate over non-iterable\", __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var StopIteration =  __class__ ('StopIteration', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, 'Iterator exhausted', __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var ValueError =  __class__ ('ValueError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var KeyError =  __class__ ('KeyError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AssertionError =  __class__ ('AssertionError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tif (message) {\n\t\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t\t}\n\t\telse {\n\t\t\tException.__init__ (self, __kwargtrans__ ({error: error}));\n\t\t}\n\t});}\n});\nexport var NotImplementedError =  __class__ ('NotImplementedError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var IndexError =  __class__ ('IndexError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AttributeError =  __class__ ('AttributeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var py_TypeError =  __class__ ('py_TypeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var Warning =  __class__ ('Warning', [Exception], {\n\t__module__: __name__,\n});\nexport var UserWarning =  __class__ ('UserWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var DeprecationWarning =  __class__ ('DeprecationWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var RuntimeWarning =  __class__ ('RuntimeWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var __sort__ = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (key) {\n\t\titerable.sort ((function __lambda__ (a, b) {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\t\tcase 'a': var a = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t\tcase 'b': var b = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\treturn (key (a) > key (b) ? 1 : -(1));\n\t\t}));\n\t}\n\telse {\n\t\titerable.sort ();\n\t}\n\tif (reverse) {\n\t\titerable.reverse ();\n\t}\n};\nexport var sorted = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (py_typeof (iterable) == dict) {\n\t\tvar result = copy (iterable.py_keys ());\n\t}\n\telse {\n\t\tvar result = copy (iterable);\n\t}\n\t__sort__ (result, key, reverse);\n\treturn result;\n};\nexport var map = function (func, iterable) {\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\t__accu0__.append (func (item));\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var filter = function (func, iterable) {\n\tif (func == null) {\n\t\tvar func = bool;\n\t}\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\tif (func (item)) {\n\t\t\t\t__accu0__.append (item);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var divmod = function (n, d) {\n\treturn tuple ([Math.floor (n / d), __mod__ (n, d)]);\n};\nexport var __Terminal__ =  __class__ ('__Terminal__', [object], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tself.buffer = '';\n\t\ttry {\n\t\t\tself.element = document.getElementById ('__terminal__');\n\t\t}\n\t\tcatch (__except0__) {\n\t\t\tself.element = null;\n\t\t}\n\t\tif (self.element) {\n\t\t\tself.element.style.overflowX = 'auto';\n\t\t\tself.element.style.boxSizing = 'border-box';\n\t\t\tself.element.style.padding = '5px';\n\t\t\tself.element.innerHTML = '_';\n\t\t}\n\t});},\n\tget print () {return __get__ (this, function (self) {\n\t\tvar sep = ' ';\n\t\tvar end = '\\n';\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'sep': var sep = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'end': var end = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.buffer = '{}{}{}'.format (self.buffer, sep.join ((function () {\n\t\t\tvar __accu0__ = [];\n\t\t\tfor (var arg of args) {\n\t\t\t\t__accu0__.append (str (arg));\n\t\t\t}\n\t\t\treturn __accu0__;\n\t\t}) ()), end).__getslice__ (-(4096), null, 1);\n\t\tif (self.element) {\n\t\t\tself.element.innerHTML = self.buffer.py_replace ('\\n', '<br>').py_replace (' ', '&nbsp');\n\t\t\tself.element.scrollTop = self.element.scrollHeight;\n\t\t}\n\t\telse {\n\t\t\tconsole.log (sep.join ((function () {\n\t\t\t\tvar __accu0__ = [];\n\t\t\t\tfor (var arg of args) {\n\t\t\t\t\t__accu0__.append (str (arg));\n\t\t\t\t}\n\t\t\t\treturn __accu0__;\n\t\t\t}) ()));\n\t\t}\n\t});},\n\tget input () {return __get__ (this, function (self, question) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'question': var question = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.print ('{}'.format (question), __kwargtrans__ ({end: ''}));\n\t\tvar answer = window.prompt ('\\n'.join (self.buffer.py_split ('\\n').__getslice__ (-(8), null, 1)));\n\t\tself.print (answer);\n\t\treturn answer;\n\t});}\n});\nexport var __terminal__ = __Terminal__ ();\nexport var print = __terminal__.print;\nexport var input = __terminal__.input;\n\n//# sourceMappingURL=org.transcrypt.__runtime__.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_001/target/org.transcrypt.__runtime__.py",
    "content": "# Transcrypt runtime module\r\n\r\n#__pragma__ ('js', 'export var __envir__ = {{}};\\n{}', __include__ ('org/transcrypt/__envir__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__core__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__builtin__.js'))\r\n\r\n#__pragma__ ('skip')\r\ncopy = Math = __typeof__ = __repr__ = document = console = window = 0\r\n#__pragma__ ('noskip')\r\n\r\n#__pragma__ ('notconv')  # !!! tconv gives a problem with __terminal__, needs investigation\r\n#__pragma__ ('nokwargs')\r\n#__pragma__ ('noalias', 'sort')\r\n\r\nclass BaseException:\r\n    pass\r\n\r\nclass Exception (BaseException):\r\n    #__pragma__ ('kwargs')\r\n    def __init__ (self, *args, **kwargs):\r\n        self.__args__ = args\r\n        if kwargs.error != None:\r\n            self.stack = kwargs.error.stack # Integrate with JavaScript Error object\r\n        elif Error:\r\n            self.stack = (__new__(Error())).stack # Create our own stack if we aren't given one\r\n        else:\r\n            self.stack = 'No stack trace available'\r\n    #__pragma__ ('nokwargs')\r\n        \r\n    def __repr__ (self):\r\n        if len (self.__args__) > 1:\r\n            return '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)))\r\n        elif len (self.__args__):\r\n            return '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]))        \r\n        else:\r\n            return '{}()'.format (self.__class__.__name__)\r\n            \r\n    def __str__ (self):\r\n        if len (self.__args__) > 1:\r\n            return str (tuple (self.__args__))\r\n        elif len (self.__args__):\r\n            return str (self.__args__ [0])\r\n        else:\r\n            return ''\r\n        \r\nclass IterableError (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Can\\'t iterate over non-iterable', error = error)\r\n            \r\nclass StopIteration (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Iterator exhausted', error = error)\r\n        \r\nclass ValueError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass KeyError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass AssertionError (Exception):\r\n    def __init__ (self, message, error):\r\n        if message:\r\n            Exception.__init__ (self, message, error = error)\r\n        else:\r\n            Exception.__init__ (self, error = error)\r\n\r\nclass NotImplementedError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass IndexError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass AttributeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass TypeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\n# Warnings Exceptions\r\n# N.B. This is a limited subset of the warnings defined in\r\n# the cpython implementation to keep things small for now.\r\n\r\nclass Warning (Exception):\r\n    ''' Warning Base Class\r\n    '''\r\n    pass\r\n\r\nclass UserWarning (Warning):\r\n    pass\r\n\r\nclass DeprecationWarning (Warning):\r\n    pass\r\n\r\nclass RuntimeWarning (Warning):\r\n    pass\r\n    \r\n#__pragma__ ('kwargs')\r\n\r\ndef __sort__ (iterable, key = None, reverse = False):               # Used by py_sort, can deal with kwargs\r\n    if key:\r\n        iterable.sort (lambda a, b: 1 if key (a) > key (b) else -1) # JavaScript sort, case '==' is irrelevant for sorting\r\n    else:\r\n        iterable.sort ()                                            # JavaScript sort\r\n        \r\n    if reverse:\r\n        iterable.reverse ()\r\n        \r\ndef sorted (iterable, key = None, reverse = False):\r\n    if type (iterable) == dict:\r\n        result = copy (iterable.keys ()) \r\n    else:       \r\n        result = copy (iterable)\r\n        \r\n    __sort__ (result, key, reverse)\r\n    return result\r\n\r\n#__pragma__ ('nokwargs')\r\n\r\ndef map (func, iterable):\r\n    return [func (item) for item in iterable]\r\n\r\n\r\ndef filter (func, iterable):\r\n    if func == None:\r\n        func = bool\r\n    return [item for item in iterable if func (item)]\r\n    \r\ndef divmod (n, d):\r\n    return n // d, n % d\r\n    \r\n#__pragma__ ('ifdef', '__complex__')\r\n\r\nclass complex:\r\n    def __init__ (self, real, imag = None):\r\n        if imag == None:\r\n            if type (real) == complex:\r\n                self.real = real.real\r\n                self.imag = real.imag\r\n            else:\r\n                self.real = real\r\n                self.imag = 0\r\n        else:\r\n            self.real = real\r\n            self.imag = imag\r\n            \r\n    def __neg__ (self):\r\n        return complex (-self.real, -self.imag)\r\n        \r\n    def __exp__ (self):\r\n        modulus = Math.exp (self.real)\r\n        return complex (modulus * Math.cos (self.imag), modulus * Math.sin (self.imag))\r\n    \r\n    def __log__ (self):\r\n        return complex (Math.log (Math.sqrt (self.real * self.real + self.imag * self.imag)), Math.atan2 (self.imag, self.real))\r\n        \r\n    def __pow__ (self, other):  # a ** b = exp (b log a)\r\n        return (self.__log__ () .__mul__ (other)) .__exp__ ()\r\n        \r\n    def __rpow__ (self, real):  # real ** comp -> comp.__rpow__ (real)\r\n        return self.__mul__ (Math.log (real)) .__exp__ ()\r\n        \r\n    def __mul__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real * other, self.imag * other)\r\n        else:\r\n            return complex (self.real * other.real - self.imag * other.imag, self.real * other.imag + self.imag * other.real)\r\n        \r\n    def __rmul__ (self, real):  # real + comp -> comp.__rmul__ (real)\r\n        return complex (self.real * real, self.imag * real)\r\n        \r\n    def __div__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real / other, self.imag / other)\r\n        else:\r\n            denom = other.real * other.real + other.imag * other.imag\r\n            return complex (\r\n                (self.real * other.real + self.imag * other.imag) / denom,\r\n                (self.imag * other.real - self.real * other.imag) / denom\r\n            )\r\n        \r\n    def __rdiv__ (self, real):  # real / comp -> comp.__rdiv__ (real)\r\n        denom = self.real * self.real\r\n        return complex (\r\n            (real * self.real) / denom,\r\n            (real * self.imag) / denom\r\n        )\r\n        \r\n    def __add__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real + other, self.imag)\r\n        else:   # Assume other is complex\r\n            return complex (self.real + other.real, self.imag + other.imag)\r\n        \r\n    def __radd__ (self, real):  # real + comp -> comp.__radd__ (real)\r\n        return complex (self.real + real, self.imag)\r\n        \r\n    def __sub__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real - other, self.imag)\r\n        else:\r\n            return complex (self.real - other.real, self.imag - other.imag)\r\n        \r\n    def __rsub__ (self, real):  # real - comp -> comp.__rsub__ (real)\r\n        return complex (real - self.real, -self.imag)\r\n        \r\n    def __repr__ (self):\r\n        return '({}{}{}j)'.format (self.real, '+' if self.imag >= 0 else '', self.imag)\r\n            \r\n    def __str__ (self):\r\n        return __repr__ (self) [1 : -1]\r\n        \r\n    def __eq__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real == other\r\n        else:\r\n            return self.real == other.real and self.imag == other.imag\r\n        \r\n    def __ne__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real != other\r\n        else:\r\n            return self.real != other.real or self.imag != other.imag\r\n        \r\n    def conjugate (self):\r\n        return complex (self.real, -self.imag)\r\n        \r\ndef __conj__ (aNumber):\r\n    if isinstance (aNumber, complex):\r\n        return complex (aNumber.real, -aNumber.imag)\r\n    else:\r\n        return complex (aNumber, 0)\r\n        \r\n#__pragma__ ('endif')\r\n\r\nclass __Terminal__:\r\n    '''\r\n    Printing to either the console or to html happens async, but is blocked by calling window.prompt.\r\n    So while all input and print statements are encountered in normal order, the print's exit immediately without yet having actually printed\r\n    This means the next input takes control, blocking actual printing and so on indefinitely\r\n    The effect is that everything's only printed after all inputs are done\r\n    To prevent that, what's needed is to only execute the next window.prompt after actual printing has been done\r\n    Since we've no way to find out when that is, a timeout is used.\r\n    '''\r\n\r\n    def __init__ (self):\r\n        self.buffer = ''\r\n    \r\n        try:\r\n            self.element = document.getElementById ('__terminal__')\r\n        except:\r\n            self.element = None\r\n            \r\n        if self.element:\r\n            self.element.style.overflowX = 'auto'\r\n            self.element.style.boxSizing = 'border-box'\r\n            self.element.style.padding = '5px'\r\n            self.element.innerHTML = '_'\r\n        \r\n    #__pragma__ ('kwargs')\r\n        \r\n    def print (self, *args, sep = ' ', end = '\\n'):\r\n        self.buffer = '{}{}{}'.format (self.buffer, sep.join ([str (arg) for arg in args]), end) [-4096 : ] \r\n        \r\n        if self.element:\r\n            self.element.innerHTML = self.buffer.replace ('\\n', '<br>') .replace (' ', '&nbsp')\r\n            self.element.scrollTop = self.element.scrollHeight\r\n        else:\r\n            console.log (sep.join ([str (arg) for arg in args]))\r\n        \r\n    def input (self, question):\r\n        self.print ('{}'.format (question), end = '')\r\n        answer = window.prompt ('\\n'.join (self.buffer.split ('\\n') [-8:]))\r\n        self.print (answer)\r\n        return answer\r\n        \r\n    #__pragma__ ('nokwargs')\r\n    \r\n__terminal__ = __Terminal__ ()\r\n\r\nprint = __terminal__.print\r\ninput = __terminal__.input\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_001/target/pyp5js.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:08\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {PythonFunctions} from './python_functions.js';\nvar __name__ = 'pyp5js';\nexport var _P5_INSTANCE = null;\nexport var _CTX_MIDDLE = null;\nexport var _DEFAULT_FILL = null;\nexport var _DEFAULT_LEADMULT = null;\nexport var _DEFAULT_STROKE = null;\nexport var _DEFAULT_TEXT_FILL = null;\nexport var ADD = null;\nexport var ALT = null;\nexport var ARROW = null;\nexport var AUDIO = null;\nexport var AUTO = null;\nexport var AXES = null;\nexport var BACKSPACE = null;\nexport var BASELINE = null;\nexport var BEVEL = null;\nexport var BEZIER = null;\nexport var BLEND = null;\nexport var BLUR = null;\nexport var BOLD = null;\nexport var BOLDITALIC = null;\nexport var BOTTOM = null;\nexport var BURN = null;\nexport var CENTER = null;\nexport var CHORD = null;\nexport var CLAMP = null;\nexport var CLOSE = null;\nexport var CONTROL = null;\nexport var CORNER = null;\nexport var CORNERS = null;\nexport var CROSS = null;\nexport var CURVE = null;\nexport var DARKEST = null;\nexport var DEG_TO_RAD = null;\nexport var DEGREES = null;\nexport var DELETE = null;\nexport var DIFFERENCE = null;\nexport var DILATE = null;\nexport var DODGE = null;\nexport var DOWN_ARROW = null;\nexport var ENTER = null;\nexport var ERODE = null;\nexport var ESCAPE = null;\nexport var EXCLUSION = null;\nexport var FILL = null;\nexport var GRAY = null;\nexport var GRID = null;\nexport var HALF_PI = null;\nexport var HAND = null;\nexport var HARD_LIGHT = null;\nexport var HSB = null;\nexport var HSL = null;\nexport var IMAGE = null;\nexport var IMMEDIATE = null;\nexport var INVERT = null;\nexport var ITALIC = null;\nexport var LANDSCAPE = null;\nexport var LEFT = null;\nexport var LEFT_ARROW = null;\nexport var LIGHTEST = null;\nexport var LINE_LOOP = null;\nexport var LINE_STRIP = null;\nexport var LINEAR = null;\nexport var LINES = null;\nexport var MIRROR = null;\nexport var MITER = null;\nexport var MOVE = null;\nexport var MULTIPLY = null;\nexport var NEAREST = null;\nexport var NORMAL = null;\nexport var OPAQUE = null;\nexport var OPEN = null;\nexport var OPTION = null;\nexport var OVERLAY = null;\nexport var PI = null;\nexport var PIE = null;\nexport var POINTS = null;\nexport var PORTRAIT = null;\nexport var POSTERIZE = null;\nexport var PROJECT = null;\nexport var QUAD_STRIP = null;\nexport var QUADRATIC = null;\nexport var QUADS = null;\nexport var QUARTER_PI = null;\nexport var RAD_TO_DEG = null;\nexport var RADIANS = null;\nexport var RADIUS = null;\nexport var REPEAT = null;\nexport var REPLACE = null;\nexport var RETURN = null;\nexport var RGB = null;\nexport var RIGHT = null;\nexport var RIGHT_ARROW = null;\nexport var ROUND = null;\nexport var SCREEN = null;\nexport var SHIFT = null;\nexport var SOFT_LIGHT = null;\nexport var SQUARE = null;\nexport var STROKE = null;\nexport var SUBTRACT = null;\nexport var TAB = null;\nexport var TAU = null;\nexport var TEXT = null;\nexport var TEXTURE = null;\nexport var THRESHOLD = null;\nexport var TOP = null;\nexport var TRIANGLE_FAN = null;\nexport var TRIANGLE_STRIP = null;\nexport var TRIANGLES = null;\nexport var TWO_PI = null;\nexport var UP_ARROW = null;\nexport var VIDEO = null;\nexport var WAIT = null;\nexport var WEBGL = null;\nexport var P2D = null;\nvar PI = null;\nexport var frameCount = null;\nexport var focused = null;\nexport var displayWidth = null;\nexport var displayHeight = null;\nexport var windowWidth = null;\nexport var windowHeight = null;\nexport var width = null;\nexport var height = null;\nexport var disableFriendlyErrors = null;\nexport var deviceOrientation = null;\nexport var accelerationX = null;\nexport var accelerationY = null;\nexport var accelerationZ = null;\nexport var pAccelerationX = null;\nexport var pAccelerationY = null;\nexport var pAccelerationZ = null;\nexport var rotationX = null;\nexport var rotationY = null;\nexport var rotationZ = null;\nexport var pRotationX = null;\nexport var pRotationY = null;\nexport var pRotationZ = null;\nexport var turnAxis = null;\nexport var keyIsPressed = null;\nexport var key = null;\nexport var keyCode = null;\nexport var mouseX = null;\nexport var mouseY = null;\nexport var pmouseX = null;\nexport var pmouseY = null;\nexport var winMouseX = null;\nexport var winMouseY = null;\nexport var pwinMouseX = null;\nexport var pwinMouseY = null;\nexport var mouseButton = null;\nexport var mouseIsPressed = null;\nexport var touches = null;\nexport var pixels = null;\nexport var alpha = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.alpha (...args);\n};\nexport var blue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blue (...args);\n};\nexport var brightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.brightness (...args);\n};\nexport var color = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.color (...args);\n};\nexport var green = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.green (...args);\n};\nexport var hue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hue (...args);\n};\nexport var lerpColor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerpColor (...args);\n};\nexport var lightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lightness (...args);\n};\nexport var red = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.red (...args);\n};\nexport var saturation = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saturation (...args);\n};\nexport var background = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.background (...args);\n};\nexport var py_clear = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_clear = _P5_INSTANCE.clear (...args);\n\treturn p5_clear;\n};\nexport var erase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.erase (...args);\n};\nexport var noErase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noErase (...args);\n};\nexport var colorMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.colorMode (...args);\n};\nexport var fill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fill (...args);\n};\nexport var noFill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noFill (...args);\n};\nexport var noStroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noStroke (...args);\n};\nexport var stroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.stroke (...args);\n};\nexport var arc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arc (...args);\n};\nexport var ellipse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipse (...args);\n};\nexport var circle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.circle (...args);\n};\nexport var line = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.line (...args);\n};\nexport var point = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.point (...args);\n};\nexport var quad = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quad (...args);\n};\nexport var rect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rect (...args);\n};\nexport var square = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.square (...args);\n};\nexport var triangle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.triangle (...args);\n};\nexport var plane = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.plane (...args);\n};\nexport var box = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.box (...args);\n};\nexport var sphere = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sphere (...args);\n};\nexport var cylinder = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cylinder (...args);\n};\nexport var cone = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cone (...args);\n};\nexport var ellipsoid = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipsoid (...args);\n};\nexport var torus = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.torus (...args);\n};\nexport var loadModel = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadModel (...args);\n};\nexport var model = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.model (...args);\n};\nexport var ellipseMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipseMode (...args);\n};\nexport var noSmooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noSmooth (...args);\n};\nexport var rectMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rectMode (...args);\n};\nexport var smooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.smooth (...args);\n};\nexport var strokeCap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeCap (...args);\n};\nexport var strokeJoin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeJoin (...args);\n};\nexport var strokeWeight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeWeight (...args);\n};\nexport var bezier = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezier (...args);\n};\nexport var bezierDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierDetail (...args);\n};\nexport var bezierPoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierPoint (...args);\n};\nexport var bezierTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierTangent (...args);\n};\nexport var curve = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curve (...args);\n};\nexport var curveDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveDetail (...args);\n};\nexport var curveTightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTightness (...args);\n};\nexport var curvePoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curvePoint (...args);\n};\nexport var curveTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTangent (...args);\n};\nexport var beginContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginContour (...args);\n};\nexport var beginShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginShape (...args);\n};\nexport var bezierVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierVertex (...args);\n};\nexport var curveVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveVertex (...args);\n};\nexport var endContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endContour (...args);\n};\nexport var endShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endShape (...args);\n};\nexport var quadraticVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quadraticVertex (...args);\n};\nexport var vertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.vertex (...args);\n};\nexport var cursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cursor (...args);\n};\nexport var frameRate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.frameRate (...args);\n};\nexport var noCursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCursor (...args);\n};\nexport var fullscreen = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fullscreen (...args);\n};\nexport var pixelDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pixelDensity (...args);\n};\nexport var displayDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.displayDensity (...args);\n};\nexport var getURL = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURL (...args);\n};\nexport var getURLPath = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLPath (...args);\n};\nexport var getURLParams = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLParams (...args);\n};\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.preload (...args);\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setup (...args);\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.draw (...args);\n};\nexport var remove = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.remove (...args);\n};\nexport var noLoop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noLoop (...args);\n};\nexport var loop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loop (...args);\n};\nexport var push = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.push (...args);\n};\nexport var redraw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.redraw (...args);\n};\nexport var resizeCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resizeCanvas (...args);\n};\nexport var noCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCanvas (...args);\n};\nexport var createGraphics = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createGraphics (...args);\n};\nexport var blendMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blendMode (...args);\n};\nexport var setAttributes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setAttributes (...args);\n};\nexport var applyMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.applyMatrix (...args);\n};\nexport var resetMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetMatrix (...args);\n};\nexport var rotate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotate (...args);\n};\nexport var rotateX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateX (...args);\n};\nexport var rotateY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateY (...args);\n};\nexport var rotateZ = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateZ (...args);\n};\nexport var scale = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.scale (...args);\n};\nexport var shearX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearX (...args);\n};\nexport var shearY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearY (...args);\n};\nexport var translate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.translate (...args);\n};\nexport var createStringDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createStringDict (...args);\n};\nexport var createNumberDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createNumberDict (...args);\n};\nexport var append = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.append (...args);\n};\nexport var arrayCopy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arrayCopy (...args);\n};\nexport var concat = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.concat (...args);\n};\nexport var reverse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.reverse (...args);\n};\nexport var shorten = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shorten (...args);\n};\nexport var shuffle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shuffle (...args);\n};\nexport var py_sort = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_sort (...args);\n};\nexport var splice = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splice (...args);\n};\nexport var subset = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.subset (...args);\n};\nexport var float = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.float (...args);\n};\nexport var int = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.int (...args);\n};\nexport var str = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.str (...args);\n};\nexport var boolean = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.boolean (...args);\n};\nexport var byte = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.byte (...args);\n};\nexport var char = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.char (...args);\n};\nexport var unchar = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unchar (...args);\n};\nexport var hex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hex (...args);\n};\nexport var unhex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unhex (...args);\n};\nexport var join = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.join (...args);\n};\nexport var match = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.match (...args);\n};\nexport var matchAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.matchAll (...args);\n};\nexport var nf = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nf (...args);\n};\nexport var nfc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfc (...args);\n};\nexport var nfp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfp (...args);\n};\nexport var nfs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfs (...args);\n};\nexport var py_split = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_split (...args);\n};\nexport var splitTokens = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splitTokens (...args);\n};\nexport var trim = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.trim (...args);\n};\nexport var setMoveThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setMoveThreshold (...args);\n};\nexport var setShakeThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setShakeThreshold (...args);\n};\nexport var keyIsDown = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.keyIsDown (...args);\n};\nexport var createImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImage (...args);\n};\nexport var saveCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveCanvas (...args);\n};\nexport var saveFrames = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveFrames (...args);\n};\nexport var image_proxy = function (img) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'img': var img = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar _set = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.set (...args);\n\t\treturn value;\n\t};\n\tvar _get = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.get (...args);\n\t\treturn value;\n\t};\n\timg.py_set = _set;\n\timg.py_get = _get;\n\treturn img;\n};\nexport var loadImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar imageObj = _P5_INSTANCE.loadImage (...args);\n\treturn image_proxy (imageObj);\n};\nexport var image = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.image (...args);\n};\nexport var tint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tint (...args);\n};\nexport var noTint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noTint (...args);\n};\nexport var imageMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.imageMode (...args);\n};\nexport var blend = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blend (...args);\n};\nexport var copy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.copy (...args);\n};\nexport var filter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && (args [0] === null || callable (args [0]))) {\n\t\treturn PythonFunctions.filter (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.filter (...args);\n\t}\n};\nexport var py_get = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_get = _P5_INSTANCE.get (...args);\n\treturn p5_get;\n};\nexport var loadPixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadPixels (...args);\n};\nexport var py_set = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) <= 1) {\n\t\treturn PythonFunctions.py_set (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.py_set (...args);\n\t}\n};\nexport var updatePixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.updatePixels (...args);\n};\nexport var loadJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadJSON (...args);\n};\nexport var loadStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadStrings (...args);\n};\nexport var loadTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadTable (...args);\n};\nexport var loadXML = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadXML (...args);\n};\nexport var loadBytes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadBytes (...args);\n};\nexport var httpGet = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpGet (...args);\n};\nexport var httpPost = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpPost (...args);\n};\nexport var httpDo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpDo (...args);\n};\nexport var createWriter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createWriter (...args);\n};\nexport var save = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.save (...args);\n};\nexport var saveJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveJSON (...args);\n};\nexport var saveStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveStrings (...args);\n};\nexport var saveTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveTable (...args);\n};\nexport var day = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.day (...args);\n};\nexport var hour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hour (...args);\n};\nexport var minute = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.minute (...args);\n};\nexport var millis = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.millis (...args);\n};\nexport var month = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.month (...args);\n};\nexport var second = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.second (...args);\n};\nexport var year = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.year (...args);\n};\nexport var createVector = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVector (...args);\n};\nexport var abs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.abs (...args);\n};\nexport var ceil = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ceil (...args);\n};\nexport var constrain = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.constrain (...args);\n};\nexport var dist = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.dist (...args);\n};\nexport var exp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.exp (...args);\n};\nexport var floor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.floor (...args);\n};\nexport var lerp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerp (...args);\n};\nexport var log = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.log (...args);\n};\nexport var mag = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.mag (...args);\n};\nexport var map = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && callable (args [0])) {\n\t\treturn PythonFunctions.map (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.map (...args);\n\t}\n};\nexport var max = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.max (...args);\n};\nexport var min = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.min (...args);\n};\nexport var norm = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.norm (...args);\n};\nexport var pow = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pow (...args);\n};\nexport var round = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.round (...args);\n};\nexport var sq = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sq (...args);\n};\nexport var sqrt = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sqrt (...args);\n};\nexport var noise = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noise (...args);\n};\nexport var noiseDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseDetail (...args);\n};\nexport var noiseSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseSeed (...args);\n};\nexport var randomSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomSeed (...args);\n};\nexport var random = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.random (...args);\n};\nexport var randomGaussian = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomGaussian (...args);\n};\nexport var acos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.acos (...args);\n};\nexport var asin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.asin (...args);\n};\nexport var atan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan (...args);\n};\nexport var atan2 = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan2 (...args);\n};\nexport var cos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cos (...args);\n};\nexport var sin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sin (...args);\n};\nexport var tan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tan (...args);\n};\nexport var degrees = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.degrees (...args);\n};\nexport var radians = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.radians (...args);\n};\nexport var angleMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.angleMode (...args);\n};\nexport var textAlign = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAlign (...args);\n};\nexport var textLeading = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textLeading (...args);\n};\nexport var textSize = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textSize (...args);\n};\nexport var textStyle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textStyle (...args);\n};\nexport var textWidth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textWidth (...args);\n};\nexport var textAscent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAscent (...args);\n};\nexport var textDescent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textDescent (...args);\n};\nexport var loadFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadFont (...args);\n};\nexport var text = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.text (...args);\n};\nexport var textFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textFont (...args);\n};\nexport var orbitControl = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.orbitControl (...args);\n};\nexport var debugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.debugMode (...args);\n};\nexport var noDebugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noDebugMode (...args);\n};\nexport var ambientLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientLight (...args);\n};\nexport var directionalLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.directionalLight (...args);\n};\nexport var pointLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pointLight (...args);\n};\nexport var lights = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lights (...args);\n};\nexport var loadShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadShader (...args);\n};\nexport var createShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createShader (...args);\n};\nexport var shader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shader (...args);\n};\nexport var resetShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetShader (...args);\n};\nexport var normalMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.normalMaterial (...args);\n};\nexport var texture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.texture (...args);\n};\nexport var textureMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureMode (...args);\n};\nexport var textureWrap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureWrap (...args);\n};\nexport var ambientMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientMaterial (...args);\n};\nexport var specularMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.specularMaterial (...args);\n};\nexport var shininess = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shininess (...args);\n};\nexport var camera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.camera (...args);\n};\nexport var perspective = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.perspective (...args);\n};\nexport var ortho = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ortho (...args);\n};\nexport var createCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCamera (...args);\n};\nexport var setCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setCamera (...args);\n};\nexport var select = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.select (...args);\n};\nexport var selectAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.selectAll (...args);\n};\nexport var removeElements = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.removeElements (...args);\n};\nexport var changed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.changed (...args);\n};\nexport var input = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.input (...args);\n};\nexport var createDiv = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createDiv (...args);\n};\nexport var createP = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createP (...args);\n};\nexport var createSpan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSpan (...args);\n};\nexport var createImg = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImg (...args);\n};\nexport var createA = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createA (...args);\n};\nexport var createSlider = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSlider (...args);\n};\nexport var createButton = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createButton (...args);\n};\nexport var createCheckbox = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCheckbox (...args);\n};\nexport var createSelect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSelect (...args);\n};\nexport var createRadio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createRadio (...args);\n};\nexport var createColorPicker = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createColorPicker (...args);\n};\nexport var createInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createInput (...args);\n};\nexport var createFileInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createFileInput (...args);\n};\nexport var createVideo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVideo (...args);\n};\nexport var createAudio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createAudio (...args);\n};\nexport var createCapture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCapture (...args);\n};\nexport var createElement = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createElement (...args);\n};\nexport var createCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar canvas = _P5_INSTANCE.createCanvas (...args);\n\twidth = _P5_INSTANCE.width;\n\theight = _P5_INSTANCE.height;\n\treturn canvas;\n};\nexport var py_pop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_pop = _P5_INSTANCE.pop (...args);\n\treturn p5_pop;\n};\nexport var size = createCanvas;\nexport var popMatrix = py_pop;\nexport var popStyle = py_pop;\nexport var pushMatrix = push;\nexport var pushStyle = push;\nexport var PVector = function (x, y, z) {\n\tif (typeof x == 'undefined' || (x != null && x.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar x = 0;\n\t};\n\tif (typeof y == 'undefined' || (y != null && y.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar y = 0;\n\t};\n\tif (typeof z == 'undefined' || (z != null && z.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar z = 0;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'z': var z = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn _P5_INSTANCE.createVector (x, y, z);\n};\nsetattr (PVector, 'dist', p5.Vector.dist);\nsetattr (PVector, 'add', p5.Vector.add);\nsetattr (PVector, 'sub', p5.Vector.sub);\nsetattr (PVector, 'mult', p5.Vector.mult);\nsetattr (PVector, 'div', p5.Vector.div);\nsetattr (PVector, 'dot', p5.Vector.dot);\nsetattr (PVector, 'cross', p5.Vector.cross);\nsetattr (PVector, 'lerp', p5.Vector.lerp);\nsetattr (PVector, 'random2D', p5.Vector.random2D);\nsetattr (PVector, 'random3D', p5.Vector.random3D);\nsetattr (PVector, 'angleBetween', p5.Vector.angleBetween);\nsetattr (PVector, 'fromAngle', p5.Vector.fromAngle);\nsetattr (PVector, 'fromAngles', p5.Vector.fromAngles);\nsetattr (PVector, 'equals', p5.Vector.equals);\nexport var pre_draw = function (p5_instance, draw_func) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_instance': var p5_instance = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t_CTX_MIDDLE = p5_instance._CTX_MIDDLE;\n\t_DEFAULT_FILL = p5_instance._DEFAULT_FILL;\n\t_DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT;\n\t_DEFAULT_STROKE = p5_instance._DEFAULT_STROKE;\n\t_DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL;\n\tADD = p5_instance.ADD;\n\tALT = p5_instance.ALT;\n\tARROW = p5_instance.ARROW;\n\tAUDIO = p5_instance.AUDIO;\n\tAUTO = p5_instance.AUTO;\n\tAXES = p5_instance.AXES;\n\tBACKSPACE = p5_instance.BACKSPACE;\n\tBASELINE = p5_instance.BASELINE;\n\tBEVEL = p5_instance.BEVEL;\n\tBEZIER = p5_instance.BEZIER;\n\tBLEND = p5_instance.BLEND;\n\tBLUR = p5_instance.BLUR;\n\tBOLD = p5_instance.BOLD;\n\tBOLDITALIC = p5_instance.BOLDITALIC;\n\tBOTTOM = p5_instance.BOTTOM;\n\tBURN = p5_instance.BURN;\n\tCENTER = p5_instance.CENTER;\n\tCHORD = p5_instance.CHORD;\n\tCLAMP = p5_instance.CLAMP;\n\tCLOSE = p5_instance.CLOSE;\n\tCONTROL = p5_instance.CONTROL;\n\tCORNER = p5_instance.CORNER;\n\tCORNERS = p5_instance.CORNERS;\n\tCROSS = p5_instance.CROSS;\n\tCURVE = p5_instance.CURVE;\n\tDARKEST = p5_instance.DARKEST;\n\tDEG_TO_RAD = p5_instance.DEG_TO_RAD;\n\tDEGREES = p5_instance.DEGREES;\n\tDELETE = p5_instance.DELETE;\n\tDIFFERENCE = p5_instance.DIFFERENCE;\n\tDILATE = p5_instance.DILATE;\n\tDODGE = p5_instance.DODGE;\n\tDOWN_ARROW = p5_instance.DOWN_ARROW;\n\tENTER = p5_instance.ENTER;\n\tERODE = p5_instance.ERODE;\n\tESCAPE = p5_instance.ESCAPE;\n\tEXCLUSION = p5_instance.EXCLUSION;\n\tFILL = p5_instance.FILL;\n\tGRAY = p5_instance.GRAY;\n\tGRID = p5_instance.GRID;\n\tHALF_PI = p5_instance.HALF_PI;\n\tHAND = p5_instance.HAND;\n\tHARD_LIGHT = p5_instance.HARD_LIGHT;\n\tHSB = p5_instance.HSB;\n\tHSL = p5_instance.HSL;\n\tIMAGE = p5_instance.IMAGE;\n\tIMMEDIATE = p5_instance.IMMEDIATE;\n\tINVERT = p5_instance.INVERT;\n\tITALIC = p5_instance.ITALIC;\n\tLANDSCAPE = p5_instance.LANDSCAPE;\n\tLEFT = p5_instance.LEFT;\n\tLEFT_ARROW = p5_instance.LEFT_ARROW;\n\tLIGHTEST = p5_instance.LIGHTEST;\n\tLINE_LOOP = p5_instance.LINE_LOOP;\n\tLINE_STRIP = p5_instance.LINE_STRIP;\n\tLINEAR = p5_instance.LINEAR;\n\tLINES = p5_instance.LINES;\n\tMIRROR = p5_instance.MIRROR;\n\tMITER = p5_instance.MITER;\n\tMOVE = p5_instance.MOVE;\n\tMULTIPLY = p5_instance.MULTIPLY;\n\tNEAREST = p5_instance.NEAREST;\n\tNORMAL = p5_instance.NORMAL;\n\tOPAQUE = p5_instance.OPAQUE;\n\tOPEN = p5_instance.OPEN;\n\tOPTION = p5_instance.OPTION;\n\tOVERLAY = p5_instance.OVERLAY;\n\tP2D = p5_instance.P2D;\n\tvar P3D = p5_instance.WEBGL;\n\tPI = p5_instance.PI;\n\tPIE = p5_instance.PIE;\n\tPOINTS = p5_instance.POINTS;\n\tPORTRAIT = p5_instance.PORTRAIT;\n\tPOSTERIZE = p5_instance.POSTERIZE;\n\tPROJECT = p5_instance.PROJECT;\n\tQUAD_STRIP = p5_instance.QUAD_STRIP;\n\tQUADRATIC = p5_instance.QUADRATIC;\n\tQUADS = p5_instance.QUADS;\n\tQUARTER_PI = p5_instance.QUARTER_PI;\n\tRAD_TO_DEG = p5_instance.RAD_TO_DEG;\n\tRADIANS = p5_instance.RADIANS;\n\tRADIUS = p5_instance.RADIUS;\n\tREPEAT = p5_instance.REPEAT;\n\tREPLACE = p5_instance.REPLACE;\n\tRETURN = p5_instance.RETURN;\n\tRGB = p5_instance.RGB;\n\tRIGHT = p5_instance.RIGHT;\n\tRIGHT_ARROW = p5_instance.RIGHT_ARROW;\n\tROUND = p5_instance.ROUND;\n\tSCREEN = p5_instance.SCREEN;\n\tSHIFT = p5_instance.SHIFT;\n\tSOFT_LIGHT = p5_instance.SOFT_LIGHT;\n\tSQUARE = p5_instance.SQUARE;\n\tSTROKE = p5_instance.STROKE;\n\tSUBTRACT = p5_instance.SUBTRACT;\n\tTAB = p5_instance.TAB;\n\tTAU = p5_instance.TAU;\n\tTEXT = p5_instance.TEXT;\n\tTEXTURE = p5_instance.TEXTURE;\n\tTHRESHOLD = p5_instance.THRESHOLD;\n\tTOP = p5_instance.TOP;\n\tTRIANGLE_FAN = p5_instance.TRIANGLE_FAN;\n\tTRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP;\n\tTRIANGLES = p5_instance.TRIANGLES;\n\tTWO_PI = p5_instance.TWO_PI;\n\tUP_ARROW = p5_instance.UP_ARROW;\n\tVIDEO = p5_instance.VIDEO;\n\tWAIT = p5_instance.WAIT;\n\tWEBGL = p5_instance.WEBGL;\n\tframeCount = p5_instance.frameCount;\n\tfocused = p5_instance.focused;\n\tdisplayWidth = p5_instance.displayWidth;\n\tdisplayHeight = p5_instance.displayHeight;\n\twindowWidth = p5_instance.windowWidth;\n\twindowHeight = p5_instance.windowHeight;\n\twidth = p5_instance.width;\n\theight = p5_instance.height;\n\tdisableFriendlyErrors = p5_instance.disableFriendlyErrors;\n\tdeviceOrientation = p5_instance.deviceOrientation;\n\taccelerationX = p5_instance.accelerationX;\n\taccelerationY = p5_instance.accelerationY;\n\taccelerationZ = p5_instance.accelerationZ;\n\tpAccelerationX = p5_instance.pAccelerationX;\n\tpAccelerationY = p5_instance.pAccelerationY;\n\tpAccelerationZ = p5_instance.pAccelerationZ;\n\trotationX = p5_instance.rotationX;\n\trotationY = p5_instance.rotationY;\n\trotationZ = p5_instance.rotationZ;\n\tpRotationX = p5_instance.pRotationX;\n\tpRotationY = p5_instance.pRotationY;\n\tpRotationZ = p5_instance.pRotationZ;\n\tturnAxis = p5_instance.turnAxis;\n\tkeyIsPressed = p5_instance.keyIsPressed;\n\tkey = p5_instance.key;\n\tkeyCode = p5_instance.keyCode;\n\tmouseX = p5_instance.mouseX;\n\tmouseY = p5_instance.mouseY;\n\tpmouseX = p5_instance.pmouseX;\n\tpmouseY = p5_instance.pmouseY;\n\twinMouseX = p5_instance.winMouseX;\n\twinMouseY = p5_instance.winMouseY;\n\tpwinMouseX = p5_instance.pwinMouseX;\n\tpwinMouseY = p5_instance.pwinMouseY;\n\tmouseButton = p5_instance.mouseButton;\n\tmouseIsPressed = p5_instance.mouseIsPressed;\n\ttouches = p5_instance.touches;\n\tpixels = p5_instance.pixels;\n\treturn draw_func ();\n};\nexport var global_p5_injection = function (p5_sketch) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar decorator = function (f) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'f': var f = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar wrapper = function () {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\t_P5_INSTANCE = p5_sketch;\n\t\t\treturn pre_draw (_P5_INSTANCE, f);\n\t\t};\n\t\treturn wrapper;\n\t};\n\treturn decorator;\n};\nexport var start_p5 = function (preload_func, setup_func, draw_func, event_functions) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'preload_func': var preload_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'setup_func': var setup_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'event_functions': var event_functions = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar sketch_setup = function (p5_sketch) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tp5_sketch.preload = global_p5_injection (p5_sketch) (preload_func);\n\t\tp5_sketch.setup = global_p5_injection (p5_sketch) (setup_func);\n\t\tp5_sketch.draw = global_p5_injection (p5_sketch) (draw_func);\n\t};\n\tvar instance = new p5 (sketch_setup, 'sketch-holder');\n\tvar event_function_names = tuple (['deviceMoved', 'deviceTurned', 'deviceShaken', 'windowResized', 'keyPressed', 'keyReleased', 'keyTyped', 'mousePressed', 'mouseReleased', 'mouseClicked', 'doubleClicked', 'mouseMoved', 'mouseDragged', 'mouseWheel', 'touchStarted', 'touchMoved', 'touchEnded', 'keyIsDown']);\n\tfor (var f_name of (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var f of event_function_names) {\n\t\t\tif (event_functions.py_get (f, null)) {\n\t\t\t\t__accu0__.append (f);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ()) {\n\t\tvar func = event_functions [f_name];\n\t\tvar event_func = global_p5_injection (instance) (func);\n\t\tsetattr (instance, f_name, event_func);\n\t}\n};\nexport var logOnloaded = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tconsole.log ('Lib loaded!');\n};\nexport var add_library = function (lib_name) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'lib_name': var lib_name = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar src = '';\n\treturn console.log ('Lib name is not valid:', lib_name);\n\tconsole.log ('Importing:', src);\n\tvar script = document.createElement ('script');\n\tscript.onload = logOnloaded;\n\tscript.src = src;\n\tdocument.head.appendChild (script);\n};\n\n//# sourceMappingURL=pyp5js.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_001/target/pyp5js.py",
    "content": "from python_functions import PythonFunctions\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndisableFriendlyErrors = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    __pragma__('noalias', 'clear')\n    p5_clear = _P5_INSTANCE.clear(*args)\n    __pragma__('alias', 'clear', 'py_clear')\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef preload(*args):\n    return _P5_INSTANCE.preload(*args)\n\ndef setup(*args):\n    return _P5_INSTANCE.setup(*args)\n\ndef draw(*args):\n    return _P5_INSTANCE.draw(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\n\ndef image_proxy(img):\n    \"\"\"\n    Proxy to turn of transcypt when calling img.get/set methods\n    \"\"\"\n\n    def _set(*args):\n        __pragma__('noalias', 'set')\n        value = img.set(*args)\n        __pragma__('alias', 'set', 'py_set')\n        return value\n\n    def _get(*args):\n        __pragma__('noalias', 'get')\n        value = img.get(*args)\n        __pragma__('alias', 'get', 'py_get')\n        return value\n\n    img.set = _set\n    img.get = _get\n    return img\n\n\ndef loadImage(*args):\n    imageObj = _P5_INSTANCE.loadImage(*args)\n    return image_proxy(imageObj)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    __pragma__('noalias', 'get')\n    p5_get = _P5_INSTANCE.get(*args)\n    __pragma__('alias', 'get', 'py_get')\n    return p5_get\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\n\ndef pop(*args):\n    __pragma__('noalias', 'pop')\n    p5_pop = _P5_INSTANCE.pop(*args)\n    __pragma__('alias', 'pop', 'py_pop')\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a helper/alias to create p5.Vector objects\ndef PVector(x=0, y=0, z=0):\n    return _P5_INSTANCE.createVector(x, y, z)\n# aliases  for p5.Vector class methods\nsetattr(PVector, 'dist', p5.Vector.dist)\nsetattr(PVector, 'add', p5.Vector.add)\nsetattr(PVector, 'sub', p5.Vector.sub)\nsetattr(PVector, 'mult', p5.Vector.mult)\nsetattr(PVector, 'div', p5.Vector.div)\nsetattr(PVector, 'dot', p5.Vector.dot)\nsetattr(PVector, 'cross', p5.Vector.cross)\nsetattr(PVector, 'lerp', p5.Vector.lerp)\nsetattr(PVector, 'random2D', p5.Vector.random2D)\nsetattr(PVector, 'random3D', p5.Vector.random3D)\nsetattr(PVector, 'angleBetween', p5.Vector.angleBetween)\nsetattr(PVector, 'fromAngle', p5.Vector.fromAngle)\nsetattr(PVector, 'fromAngles', p5.Vector.fromAngles)\nsetattr(PVector, 'equals', p5.Vector.equals)\n\ndef pre_draw(p5_instance, draw_func):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP, QUADRATIC\n    global QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global disableFriendlyErrors, deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    disableFriendlyErrors = p5_instance.disableFriendlyErrors\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func()\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f):\n        def wrapper():\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: a Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    instance = __new__(p5(sketch_setup, 'sketch-holder'))\n\n    # inject event functions into p5\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\"\n    )\n\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(instance)(func)\n        setattr(instance, f_name, event_func)\n\n\ndef logOnloaded():\n    console.log(\"Lib loaded!\")\n\n\ndef add_library(lib_name):\n    # placeholder for https://github.com/berinhard/pyp5js/issues/31\n    src = ''\n\n    return console.log(\"Lib name is not valid:\", lib_name)\n\n    console.log(\"Importing:\", src)\n\n    script = document.createElement(\"script\")\n    script.onload = logOnloaded\n    script.src = src\n    document.head.appendChild(script)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_001/target/python_functions.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:09\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, pow, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nvar __name__ = 'python_functions';\nexport var PythonFunctions =  __class__ ('PythonFunctions', [object], {\n\t__module__: __name__,\n});\nsetattr (PythonFunctions, 'map', map);\nsetattr (PythonFunctions, 'filter', filter);\nsetattr (PythonFunctions, 'set', set);\n\n//# sourceMappingURL=python_functions.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_001/target/python_functions.py",
    "content": "class PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_001/target/target_sketch.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:08\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, set, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {ADD, ALT, ARROW, AUDIO, AUTO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC, BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST, DEGREES, DEG_TO_RAD, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION, FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE, LEFT, LEFT_ARROW, LIGHTEST, LINEAR, LINES, LINE_LOOP, LINE_STRIP, MIRROR, MITER, MOVE, MULTIPLY, NEAREST, NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, PVector, QUADRATIC, QUADS, QUAD_STRIP, QUARTER_PI, RADIANS, RADIUS, RAD_TO_DEG, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW, ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL, _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL, _P5_INSTANCE, abs, accelerationX, accelerationY, accelerationZ, acos, add_library, alpha, ambientLight, ambientMaterial, angleMode, append, applyMatrix, arc, arrayCopy, asin, atan, atan2, background, beginContour, beginShape, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, blend, blendMode, blue, boolean, box, brightness, byte, camera, ceil, changed, char, circle, color, colorMode, concat, cone, constrain, copy, cos, createA, createAudio, createButton, createCamera, createCanvas, createCapture, createCheckbox, createColorPicker, createDiv, createElement, createFileInput, createGraphics, createImage, createImg, createInput, createNumberDict, createP, createRadio, createSelect, createShader, createSlider, createSpan, createStringDict, createVector, createVideo, createWriter, cursor, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, cylinder, day, debugMode, degrees, deviceOrientation, directionalLight, disableFriendlyErrors, displayDensity, displayHeight, displayWidth, dist, ellipse, ellipseMode, ellipsoid, endContour, endShape, erase, exp, fill, filter, float, floor, focused, frameCount, frameRate, fullscreen, getURL, getURLParams, getURLPath, global_p5_injection, green, height, hex, hour, httpDo, httpGet, httpPost, hue, image, imageMode, image_proxy, input, int, join, key, keyCode, keyIsPressed, lerp, lerpColor, lightness, lights, line, loadBytes, loadFont, loadImage, loadJSON, loadModel, loadPixels, loadShader, loadStrings, loadTable, loadXML, log, logOnloaded, loop, mag, map, match, matchAll, max, millis, min, minute, model, month, mouseButton, mouseIsPressed, mouseX, mouseY, nf, nfc, nfp, nfs, noCanvas, noCursor, noDebugMode, noErase, noFill, noLoop, noSmooth, noStroke, noTint, noise, noiseDetail, noiseSeed, norm, normalMaterial, orbitControl, ortho, pAccelerationX, pAccelerationY, pAccelerationZ, pRotationX, pRotationY, pRotationZ, perspective, pixelDensity, pixels, plane, pmouseX, pmouseY, point, pointLight, popMatrix, popStyle, pow, pre_draw, push, pushMatrix, pushStyle, pwinMouseX, pwinMouseY, py_clear, py_get, py_pop, py_set, py_sort, py_split, quad, quadraticVertex, radians, random, randomGaussian, randomSeed, rect, rectMode, red, redraw, remove, removeElements, resetMatrix, resetShader, resizeCanvas, reverse, rotate, rotateX, rotateY, rotateZ, rotationX, rotationY, rotationZ, round, saturation, save, saveCanvas, saveFrames, saveJSON, saveStrings, saveTable, scale, second, select, selectAll, setAttributes, setCamera, setMoveThreshold, setShakeThreshold, shader, shearX, shearY, shininess, shorten, shuffle, sin, size, smooth, specularMaterial, sphere, splice, splitTokens, sq, sqrt, square, start_p5, str, stroke, strokeCap, strokeJoin, strokeWeight, subset, tan, text, textAlign, textAscent, textDescent, textFont, textLeading, textSize, textStyle, textWidth, texture, textureMode, textureWrap, tint, torus, touches, translate, triangle, trim, turnAxis, unchar, unhex, updatePixels, vertex, width, winMouseX, winMouseY, windowHeight, windowWidth, year} from './pyp5js.js';\nvar __name__ = '__main__';\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var deviceMoved = null;\nexport var deviceTurned = null;\nexport var deviceShaken = null;\nexport var keyPressed = null;\nexport var keyReleased = null;\nexport var keyTyped = null;\nexport var mouseMoved = null;\nexport var mouseDragged = null;\nexport var mousePressed = null;\nexport var mouseReleased = null;\nexport var mouseClicked = null;\nexport var doubleClicked = null;\nexport var mouseWheel = null;\nexport var touchStarted = null;\nexport var touchMoved = null;\nexport var touchEnded = null;\nexport var windowResized = null;\nexport var keyIsDown = null;\nexport var t = 0;\nvar setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tcreateCanvas (600, 600);\n\tstroke (250);\n\tstrokeWeight (3);\n\tfill (40, 200, 40);\n};\nvar draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tbackground (10, 10);\n\tvar xAngle = map (mouseX, 0, width, -(4) * PI, 4 * PI, true);\n\tvar yAngle = map (mouseY, 0, height, -(4) * PI, 4 * PI, true);\n\tfor (var x = 0; x < width; x += 30) {\n\t\tfor (var y = 0; y < height; y += 30) {\n\t\t\tvar angle = xAngle * (x / width) + yAngle * (y / height);\n\t\t\tvar myX = x + 20 * cos ((2 * PI) * t + angle);\n\t\t\tvar myY = y + 20 * sin ((2 * TWO_PI) * t + angle);\n\t\t\tellipse (myX, myY, 10);\n\t\t}\n\t}\n\tt = t + 0.01;\n};\nexport var event_functions = dict ({'deviceMoved': deviceMoved, 'deviceTurned': deviceTurned, 'deviceShaken': deviceShaken, 'keyPressed': keyPressed, 'keyReleased': keyReleased, 'keyTyped': keyTyped, 'mouseMoved': mouseMoved, 'mouseDragged': mouseDragged, 'mousePressed': mousePressed, 'mouseReleased': mouseReleased, 'mouseClicked': mouseClicked, 'doubleClicked': doubleClicked, 'mouseWheel': mouseWheel, 'touchStarted': touchStarted, 'touchMoved': touchMoved, 'touchEnded': touchEnded, 'windowResized': windowResized, 'keyIsDown': keyIsDown});\nstart_p5 (preload, setup, draw, event_functions);\n\n//# sourceMappingURL=target_sketch.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_001/target/target_sketch.project",
    "content": "{\"options\": {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_001/target_sketch.py\", \"anno\": false, \"alimod\": false, \"build\": true, \"complex\": false, \"docat\": false, \"dassert\": false, \"dcheck\": false, \"dextex\": false, \"dlog\": false, \"dmap\": false, \"dnostrip\": false, \"dstat\": false, \"dtree\": false, \"esv\": null, \"ecom\": false, \"fcall\": false, \"gen\": false, \"iconv\": false, \"jscall\": false, \"jskeys\": false, \"jsmod\": false, \"kwargs\": true, \"keycheck\": false, \"license\": false, \"map\": true, \"nomin\": true, \"opov\": false, \"outdir\": null, \"parent\": null, \"run\": false, \"symbols\": null, \"sform\": false, \"tconv\": false, \"unit\": null, \"verbose\": false, \"x\": null, \"xreex\": false, \"xglobs\": false, \"xpath\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt\", \"xtiny\": false, \"star\": false}, \"modules\": [{\"source\": \"/home/bernardo/.pyenv/versions/pyp5js/lib/python3.8/site-packages/transcrypt/modules/org/transcrypt/__runtime__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_001/__target__/org.transcrypt.__runtime__.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_001/target_sketch.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_001/__target__/target_sketch.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/pyp5js.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_001/__target__/pyp5js.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/python_functions.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_001/__target__/python_functions.js\"}]}"
  },
  {
    "path": "docs/examples/transcrypt/sketch_001/target/target_sketch.py",
    "content": "from pyp5js import *\n\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\nkeyIsDown = None\n\n\n# https://p5js.org/examples/interaction-wavemaker.html\n\nt = 0\n\ndef setup():\n    createCanvas(600, 600)\n    stroke(250)\n    strokeWeight(3)\n    fill(40, 200, 40)\n\n\ndef draw():\n    global t\n    background(10, 10)\n\n    xAngle = map(mouseX, 0, width, -4 * PI, 4 * PI, True)\n    yAngle = map(mouseY, 0, height, -4 * PI, 4 * PI, True)\n    for x in range(0, width, 30):\n        for y in range(0, height, 30):\n\n            angle = xAngle * (x / width) + yAngle * (y / height)\n\n            myX = x + 20 * cos(2 * PI * t + angle)\n            myY = y + 20 * sin(2 * TWO_PI * t + angle)\n\n            ellipse(myX, myY, 10)\n\n    t = t + 0.01\n\n\n\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n    \"keyIsDown\": keyIsDown,\n}\n\nstart_p5(preload, setup, draw, event_functions)"
  },
  {
    "path": "docs/examples/transcrypt/sketch_002/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_002 - pyp5js (using Transcrypt)</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/transcrypt/sketch_002\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre>\n             <code>\n\"\"\"\n * Move Eye.\n * by Simon Greenwold.\n *\n * The camera lifts up (controlled by mouseY) while looking at the same point.\n \"\"\"\n\ndef setup():\n    createCanvas(640, 360, _P5_INSTANCE.WEBGL)\n    fill(204)\n\n\ndef draw():\n    ambientLight(50)\n    directionalLight(255, 0, 0, 0.25, 0.25, 0);\n    background(0)\n\n    # Change height of the camera with mouseY\n    camera(30.0, mouseY, 220.0,  # eyeX, eyeY, eyeZ\n           0.0, 0.0, 0.0,        # centerX, centerY, centerZ\n           0.0, 1.0, 0.0)        # upX, upY, upZ\n\n    noStroke()\n    box(90)\n    stroke(255)\n    line(-100, 0, 0, 100, 0, 0)\n    line(0, -100, 0, 0, 100, 0)\n    line(0, 0, -100, 0, 0, 100)\n\n              </code>\n          </pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/transcrypt/sketch_002/sketch_002.py",
    "content": "\"\"\"\n * Move Eye.\n * by Simon Greenwold.\n *\n * The camera lifts up (controlled by mouseY) while looking at the same point.\n \"\"\"\n\ndef setup():\n    createCanvas(640, 360, _P5_INSTANCE.WEBGL)\n    fill(204)\n\n\ndef draw():\n    ambientLight(50)\n    directionalLight(255, 0, 0, 0.25, 0.25, 0);\n    background(0)\n\n    # Change height of the camera with mouseY\n    camera(30.0, mouseY, 220.0,  # eyeX, eyeY, eyeZ\n           0.0, 0.0, 0.0,        # centerX, centerY, centerZ\n           0.0, 1.0, 0.0)        # upX, upY, upZ\n\n    noStroke()\n    box(90)\n    stroke(255)\n    line(-100, 0, 0, 100, 0, 0)\n    line(0, -100, 0, 0, 100, 0)\n    line(0, 0, -100, 0, 0, 100)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_002/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/transcrypt/sketch_002/target/org.transcrypt.__runtime__.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:09\nvar __name__ = 'org.transcrypt.__runtime__';\nexport var __envir__ = {};\n__envir__.interpreter_name = 'python';\n__envir__.transpiler_name = 'transcrypt';\n__envir__.executor_name = __envir__.transpiler_name;\n__envir__.transpiler_version = '3.9.0';\n\nexport function __nest__ (headObject, tailNames, value) {\n    var current = headObject;\n    if (tailNames != '') {\n        var tailChain = tailNames.split ('.');\n        var firstNewIndex = tailChain.length;\n        for (var index = 0; index < tailChain.length; index++) {\n            if (!current.hasOwnProperty (tailChain [index])) {\n                firstNewIndex = index;\n                break;\n            }\n            current = current [tailChain [index]];\n        }\n        for (var index = firstNewIndex; index < tailChain.length; index++) {\n            current [tailChain [index]] = {};\n            current = current [tailChain [index]];\n        }\n    }\n    for (let attrib of Object.getOwnPropertyNames (value)) {\n        Object.defineProperty (current, attrib, {\n            get () {return value [attrib];},\n            enumerable: true,\n            configurable: true\n        });\n    }\n};\nexport function __init__ (module) {\n    if (!module.__inited__) {\n        module.__all__.__init__ (module.__all__);\n        module.__inited__ = true;\n    }\n    return module.__all__;\n};\nexport function __get__ (aThis, func, quotedFuncName) {\n    if (aThis) {\n        if (aThis.hasOwnProperty ('__class__') || typeof aThis == 'string' || aThis instanceof String) {\n            if (quotedFuncName) {\n                Object.defineProperty (aThis, quotedFuncName, {\n                    value: function () {\n                        var args = [] .slice.apply (arguments);\n                        return func.apply (null, [aThis] .concat (args));\n                    },\n                    writable: true,\n                    enumerable: true,\n                    configurable: true\n                });\n            }\n            return function () {\n                var args = [] .slice.apply (arguments);\n                return func.apply (null, [aThis.__proxy__ ? aThis.__proxy__ : aThis] .concat (args));\n            };\n        }\n        else {\n            return func;\n        }\n    }\n    else {\n        return func;\n    }\n};\nexport function __getcm__ (aThis, func, quotedFuncName) {\n    if (aThis.hasOwnProperty ('__class__')) {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis.__class__] .concat (args));\n        };\n    }\n    else {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis] .concat (args));\n        };\n    }\n};\nexport function __getsm__ (aThis, func, quotedFuncName) {\n    return func;\n};\nexport var py_metatype = {\n    __name__: 'type',\n    __bases__: [],\n    __new__: function (meta, name, bases, attribs) {\n        var cls = function () {\n            var args = [] .slice.apply (arguments);\n            return cls.__new__ (args);\n        };\n        for (var index = bases.length - 1; index >= 0; index--) {\n            var base = bases [index];\n            for (var attrib in base) {\n                var descrip = Object.getOwnPropertyDescriptor (base, attrib);\n                if (descrip == null) {\n                    continue;\n                }\n                Object.defineProperty (cls, attrib, descrip);\n            }\n            for (let symbol of Object.getOwnPropertySymbols (base)) {\n                let descrip = Object.getOwnPropertyDescriptor (base, symbol);\n                Object.defineProperty (cls, symbol, descrip);\n            }\n        }\n        cls.__metaclass__ = meta;\n        cls.__name__ = name.startsWith ('py_') ? name.slice (3) : name;\n        cls.__bases__ = bases;\n        for (var attrib in attribs) {\n            var descrip = Object.getOwnPropertyDescriptor (attribs, attrib);\n            Object.defineProperty (cls, attrib, descrip);\n        }\n        for (let symbol of Object.getOwnPropertySymbols (attribs)) {\n            let descrip = Object.getOwnPropertyDescriptor (attribs, symbol);\n            Object.defineProperty (cls, symbol, descrip);\n        }\n        return cls;\n    }\n};\npy_metatype.__metaclass__ = py_metatype;\nexport var object = {\n    __init__: function (self) {},\n    __metaclass__: py_metatype,\n    __name__: 'object',\n    __bases__: [],\n    __new__: function (args) {\n        var instance = Object.create (this, {__class__: {value: this, enumerable: true}});\n        if ('__getattr__' in this || '__setattr__' in this) {\n            instance.__proxy__ = new Proxy (instance, {\n                get: function (target, name) {\n                    let result = target [name];\n                    if (result == undefined) {\n                        return target.__getattr__ (name);\n                    }\n                    else {\n                        return result;\n                    }\n                },\n                set: function (target, name, value) {\n                    try {\n                        target.__setattr__ (name, value);\n                    }\n                    catch (exception) {\n                        target [name] = value;\n                    }\n                    return true;\n                }\n            })\n\t\t\tinstance = instance.__proxy__\n        }\n        this.__init__.apply (null, [instance] .concat (args));\n        return instance;\n    }\n};\nexport function __class__ (name, bases, attribs, meta) {\n    if (meta === undefined) {\n        meta = bases [0] .__metaclass__;\n    }\n    return meta.__new__ (meta, name, bases, attribs);\n};\nexport function __pragma__ () {};\nexport function __call__ (/* <callee>, <this>, <params>* */) {\n    var args = [] .slice.apply (arguments);\n    if (typeof args [0] == 'object' && '__call__' in args [0]) {\n        return args [0] .__call__ .apply (args [1], args.slice (2));\n    }\n    else {\n        return args [0] .apply (args [1], args.slice (2));\n    }\n};\n__envir__.executor_name = __envir__.transpiler_name;\nvar __main__ = {__file__: ''};\nvar __except__ = null;\nexport function __kwargtrans__ (anObject) {\n    anObject.__kwargtrans__ = null;\n    anObject.constructor = Object;\n    return anObject;\n}\nexport function __super__ (aClass, methodName) {\n    for (let base of aClass.__bases__) {\n        if (methodName in base) {\n           return base [methodName];\n        }\n    }\n    throw new Exception ('Superclass method not found');\n}\nexport function property (getter, setter) {\n    if (!setter) {\n        setter = function () {};\n    }\n    return {get: function () {return getter (this)}, set: function (value) {setter (this, value)}, enumerable: true};\n}\nexport function __setproperty__ (anObject, name, descriptor) {\n    if (!anObject.hasOwnProperty (name)) {\n        Object.defineProperty (anObject, name, descriptor);\n    }\n}\nexport function assert (condition, message) {\n    if (!condition) {\n        throw AssertionError (message, new Error ());\n    }\n}\nexport function __mergekwargtrans__ (object0, object1) {\n    var result = {};\n    for (var attrib in object0) {\n        result [attrib] = object0 [attrib];\n    }\n    for (var attrib in object1) {\n        result [attrib] = object1 [attrib];\n    }\n    return result;\n};\nexport function __mergefields__ (targetClass, sourceClass) {\n    let fieldNames = ['__reprfields__', '__comparefields__', '__initfields__']\n    if (sourceClass [fieldNames [0]]) {\n        if (targetClass [fieldNames [0]]) {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set ([...targetClass [fieldName], ...sourceClass [fieldName]]);\n            }\n        }\n        else {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set (sourceClass [fieldName]);\n            }\n        }\n    }\n}\nexport function __withblock__ (manager, statements) {\n    if (hasattr (manager, '__enter__')) {\n        try {\n            manager.__enter__ ();\n            statements ();\n            manager.__exit__ ();\n        }\n        catch (exception) {\n            if (! (manager.__exit__ (exception.name, exception, exception.stack))) {\n                throw exception;\n            }\n        }\n    }\n    else {\n        statements ();\n        manager.close ();\n    }\n};\nexport function dir (obj) {\n    var aList = [];\n    for (var aKey in obj) {\n        aList.push (aKey.startsWith ('py_') ? aKey.slice (3) : aKey);\n    }\n    aList.sort ();\n    return aList;\n};\nexport function setattr (obj, name, value) {\n    obj [name] = value;\n};\nexport function getattr (obj, name) {\n    return name in obj ? obj [name] : obj ['py_' + name];\n};\nexport function hasattr (obj, name) {\n    try {\n        return name in obj || 'py_' + name in obj;\n    }\n    catch (exception) {\n        return false;\n    }\n};\nexport function delattr (obj, name) {\n    if (name in obj) {\n        delete obj [name];\n    }\n    else {\n        delete obj ['py_' + name];\n    }\n};\nexport function __in__ (element, container) {\n    if (container === undefined || container === null) {\n        return false;\n    }\n    if (container.__contains__ instanceof Function) {\n        return container.__contains__ (element);\n    }\n    else {\n        return (\n            container.indexOf ?\n            container.indexOf (element) > -1 :\n            container.hasOwnProperty (element)\n        );\n    }\n};\nexport function __specialattrib__ (attrib) {\n    return (attrib.startswith ('__') && attrib.endswith ('__')) || attrib == 'constructor' || attrib.startswith ('py_');\n};\nexport function len (anObject) {\n    if (anObject === undefined || anObject === null) {\n        return 0;\n    }\n    if (anObject.__len__ instanceof Function) {\n        return anObject.__len__ ();\n    }\n    if (anObject.length !== undefined) {\n        return anObject.length;\n    }\n    var length = 0;\n    for (var attr in anObject) {\n        if (!__specialattrib__ (attr)) {\n            length++;\n        }\n    }\n    return length;\n};\nexport function __i__ (any) {\n    return py_typeof (any) == dict ? any.py_keys () : any;\n}\nexport function __k__ (keyed, key) {\n    var result = keyed [key];\n    if (typeof result == 'undefined') {\n        if (keyed instanceof Array)\n            if (key == +key && key >= 0 && keyed.length > key)\n                return result;\n            else\n                throw IndexError (key, new Error());\n        else\n            throw KeyError (key, new Error());\n    }\n    return result;\n}\nexport function __t__ (target) {\n    return (\n        target === undefined || target === null ? false :\n        ['boolean', 'number'] .indexOf (typeof target) >= 0 ? target :\n        target.__bool__ instanceof Function ? (target.__bool__ () ? target : false) :\n        target.__len__ instanceof Function ?  (target.__len__ () !== 0 ? target : false) :\n        target instanceof Function ? target :\n        len (target) !== 0 ? target :\n        false\n    );\n}\nexport function float (any) {\n    if (any == 'inf') {\n        return Infinity;\n    }\n    else if (any == '-inf') {\n        return -Infinity;\n    }\n    else if (any == 'nan') {\n        return NaN;\n    }\n    else if (isNaN (parseFloat (any))) {\n        if (any === false) {\n            return 0;\n        }\n        else if (any === true) {\n            return 1;\n        }\n        else {\n            throw ValueError (\"could not convert string to float: '\" + str(any) + \"'\", new Error ());\n        }\n    }\n    else {\n        return +any;\n    }\n};\nfloat.__name__ = 'float';\nfloat.__bases__ = [object];\nexport function int (any) {\n    return float (any) | 0\n};\nint.__name__ = 'int';\nint.__bases__ = [object];\nexport function bool (any) {\n    return !!__t__ (any);\n};\nbool.__name__ = 'bool';\nbool.__bases__ = [int];\nexport function py_typeof (anObject) {\n    var aType = typeof anObject;\n    if (aType == 'object') {\n        try {\n            return '__class__' in anObject ? anObject.__class__ : object;\n        }\n        catch (exception) {\n            return aType;\n        }\n    }\n    else {\n        return (\n            aType == 'boolean' ? bool :\n            aType == 'string' ? str :\n            aType == 'number' ? (anObject % 1 == 0 ? int : float) :\n            null\n        );\n    }\n};\nexport function issubclass (aClass, classinfo) {\n    if (classinfo instanceof Array) {\n        for (let aClass2 of classinfo) {\n            if (issubclass (aClass, aClass2)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    try {\n        var aClass2 = aClass;\n        if (aClass2 == classinfo) {\n            return true;\n        }\n        else {\n            var bases = [].slice.call (aClass2.__bases__);\n            while (bases.length) {\n                aClass2 = bases.shift ();\n                if (aClass2 == classinfo) {\n                    return true;\n                }\n                if (aClass2.__bases__.length) {\n                    bases = [].slice.call (aClass2.__bases__).concat (bases);\n                }\n            }\n            return false;\n        }\n    }\n    catch (exception) {\n        return aClass == classinfo || classinfo == object;\n    }\n};\nexport function isinstance (anObject, classinfo) {\n    try {\n        return '__class__' in anObject ? issubclass (anObject.__class__, classinfo) : issubclass (py_typeof (anObject), classinfo);\n    }\n    catch (exception) {\n        return issubclass (py_typeof (anObject), classinfo);\n    }\n};\nexport function callable (anObject) {\n    return anObject && typeof anObject == 'object' && '__call__' in anObject ? true : typeof anObject === 'function';\n};\nexport function repr (anObject) {\n    try {\n        return anObject.__repr__ ();\n    }\n    catch (exception) {\n        try {\n            return anObject.__str__ ();\n        }\n        catch (exception) {\n            try {\n                if (anObject == null) {\n                    return 'None';\n                }\n                else if (anObject.constructor == Object) {\n                    var result = '{';\n                    var comma = false;\n                    for (var attrib in anObject) {\n                        if (!__specialattrib__ (attrib)) {\n                            if (attrib.isnumeric ()) {\n                                var attribRepr = attrib;\n                            }\n                            else {\n                                var attribRepr = '\\'' + attrib + '\\'';\n                            }\n                            if (comma) {\n                                result += ', ';\n                            }\n                            else {\n                                comma = true;\n                            }\n                            result += attribRepr + ': ' + repr (anObject [attrib]);\n                        }\n                    }\n                    result += '}';\n                    return result;\n                }\n                else {\n                    return typeof anObject == 'boolean' ? anObject.toString () .capitalize () : anObject.toString ();\n                }\n            }\n            catch (exception) {\n                return '<object of type: ' + typeof anObject + '>';\n            }\n        }\n    }\n};\nexport function chr (charCode) {\n    return String.fromCharCode (charCode);\n};\nexport function ord (aChar) {\n    return aChar.charCodeAt (0);\n};\nexport function max (nrOrSeq) {\n    return arguments.length == 1 ? Math.max (...nrOrSeq) : Math.max (...arguments);\n};\nexport function min (nrOrSeq) {\n    return arguments.length == 1 ? Math.min (...nrOrSeq) : Math.min (...arguments);\n};\nexport var abs = Math.abs;\nexport function round (number, ndigits) {\n    if (ndigits) {\n        var scale = Math.pow (10, ndigits);\n        number *= scale;\n    }\n    var rounded = Math.round (number);\n    if (rounded - number == 0.5 && rounded % 2) {\n        rounded -= 1;\n    }\n    if (ndigits) {\n        rounded /= scale;\n    }\n    return rounded;\n};\nexport function __jsUsePyNext__ () {\n    try {\n        var result = this.__next__ ();\n        return {value: result, done: false};\n    }\n    catch (exception) {\n        return {value: undefined, done: true};\n    }\n}\nexport function __pyUseJsNext__ () {\n    var result = this.next ();\n    if (result.done) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result.value;\n    }\n}\nexport function py_iter (iterable) {\n    if (typeof iterable == 'string' || '__iter__' in iterable) {\n        var result = iterable.__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('selector' in iterable) {\n        var result = list (iterable) .__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('next' in iterable) {\n        var result = iterable\n        if (! ('__next__' in result)) {\n            result.__next__ = __pyUseJsNext__;\n        }\n    }\n    else if (Symbol.iterator in iterable) {\n        var result = iterable [Symbol.iterator] ();\n        result.__next__ = __pyUseJsNext__;\n    }\n    else {\n        throw IterableError (new Error ());\n    }\n    result [Symbol.iterator] = function () {return result;};\n    return result;\n}\nexport function py_next (iterator) {\n    try {\n        var result = iterator.__next__ ();\n    }\n    catch (exception) {\n        var result = iterator.next ();\n        if (result.done) {\n            throw StopIteration (new Error ());\n        }\n        else {\n            return result.value;\n        }\n    }\n    if (result == undefined) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result;\n    }\n}\nexport function __PyIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__PyIterator__.prototype.__next__ = function() {\n    if (this.index < this.iterable.length) {\n        return this.iterable [this.index++];\n    }\n    else {\n        throw StopIteration (new Error ());\n    }\n};\nexport function __JsIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__JsIterator__.prototype.next = function () {\n    if (this.index < this.iterable.py_keys.length) {\n        return {value: this.index++, done: false};\n    }\n    else {\n        return {value: undefined, done: true};\n    }\n};\nexport function py_reversed (iterable) {\n    iterable = iterable.slice ();\n    iterable.reverse ();\n    return iterable;\n};\nexport function zip () {\n    var args = [] .slice.call (arguments);\n    for (var i = 0; i < args.length; i++) {\n        if (typeof args [i] == 'string') {\n            args [i] = args [i] .split ('');\n        }\n        else if (!Array.isArray (args [i])) {\n            args [i] = Array.from (args [i]);\n        }\n    }\n    var shortest = args.length == 0 ? [] : args.reduce (\n        function (array0, array1) {\n            return array0.length < array1.length ? array0 : array1;\n        }\n    );\n    return shortest.map (\n        function (current, index) {\n            return args.map (\n                function (current) {\n                    return current [index];\n                }\n            );\n        }\n    );\n};\nexport function range (start, stop, step) {\n    if (stop == undefined) {\n        stop = start;\n        start = 0;\n    }\n    if (step == undefined) {\n        step = 1;\n    }\n    if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) {\n        return [];\n    }\n    var result = [];\n    for (var i = start; step > 0 ? i < stop : i > stop; i += step) {\n        result.push(i);\n    }\n    return result;\n};\nexport function any (iterable) {\n    for (let item of iterable) {\n        if (bool (item)) {\n            return true;\n        }\n    }\n    return false;\n}\nexport function all (iterable) {\n    for (let item of iterable) {\n        if (! bool (item)) {\n            return false;\n        }\n    }\n    return true;\n}\nexport function sum (iterable) {\n    let result = 0;\n    for (let item of iterable) {\n        result += item;\n    }\n    return result;\n}\nexport function enumerate (iterable) {\n    return zip (range (len (iterable)), iterable);\n}\nexport function copy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = anObject [attrib];\n            }\n        }\n        return result;\n    }\n}\nexport function deepcopy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = deepcopy (anObject [attrib]);\n            }\n        }\n        return result;\n    }\n}\nexport function list (iterable) {\n    let instance = iterable ? Array.from (iterable) : [];\n    return instance;\n}\nArray.prototype.__class__ = list;\nlist.__name__ = 'list';\nlist.__bases__ = [object];\nArray.prototype.__iter__ = function () {return new __PyIterator__ (this);};\nArray.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    else if (stop > this.length) {\n        stop = this.length;\n    }\n    if (step == 1) {\n        return Array.prototype.slice.call(this, start, stop);\n    }\n    let result = list ([]);\n    for (let index = start; index < stop; index += step) {\n        result.push (this [index]);\n    }\n    return result;\n};\nArray.prototype.__setslice__ = function (start, stop, step, source) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    if (step == null) {\n        Array.prototype.splice.apply (this, [start, stop - start] .concat (source));\n    }\n    else {\n        let sourceIndex = 0;\n        for (let targetIndex = start; targetIndex < stop; targetIndex += step) {\n            this [targetIndex] = source [sourceIndex++];\n        }\n    }\n};\nArray.prototype.__repr__ = function () {\n    if (this.__class__ == set && !this.length) {\n        return 'set()';\n    }\n    let result = !this.__class__ || this.__class__ == list ? '[' : this.__class__ == tuple ? '(' : '{';\n    for (let index = 0; index < this.length; index++) {\n        if (index) {\n            result += ', ';\n        }\n        result += repr (this [index]);\n    }\n    if (this.__class__ == tuple && this.length == 1) {\n        result += ',';\n    }\n    result += !this.__class__ || this.__class__ == list ? ']' : this.__class__ == tuple ? ')' : '}';;\n    return result;\n};\nArray.prototype.__str__ = Array.prototype.__repr__;\nArray.prototype.append = function (element) {\n    this.push (element);\n};\nArray.prototype.py_clear = function () {\n    this.length = 0;\n};\nArray.prototype.extend = function (aList) {\n    this.push.apply (this, aList);\n};\nArray.prototype.insert = function (index, element) {\n    this.splice (index, 0, element);\n};\nArray.prototype.remove = function (element) {\n    let index = this.indexOf (element);\n    if (index == -1) {\n        throw ValueError (\"list.remove(x): x not in list\", new Error ());\n    }\n    this.splice (index, 1);\n};\nArray.prototype.index = function (element) {\n    return this.indexOf (element);\n};\nArray.prototype.py_pop = function (index) {\n    if (index == undefined) {\n        return this.pop ();\n    }\n    else {\n        return this.splice (index, 1) [0];\n    }\n};\nArray.prototype.py_sort = function () {\n    __sort__.apply  (null, [this].concat ([] .slice.apply (arguments)));\n};\nArray.prototype.__add__ = function (aList) {\n    return list (this.concat (aList));\n};\nArray.prototype.__mul__ = function (scalar) {\n    let result = this;\n    for (let i = 1; i < scalar; i++) {\n        result = result.concat (this);\n    }\n    return result;\n};\nArray.prototype.__rmul__ = Array.prototype.__mul__;\nexport function tuple (iterable) {\n    let instance = iterable ? [] .slice.apply (iterable) : [];\n    instance.__class__ = tuple;\n    return instance;\n}\ntuple.__name__ = 'tuple';\ntuple.__bases__ = [object];\nexport function set (iterable) {\n    let instance = [];\n    if (iterable) {\n        for (let index = 0; index < iterable.length; index++) {\n            instance.add (iterable [index]);\n        }\n    }\n    instance.__class__ = set;\n    return instance;\n}\nset.__name__ = 'set';\nset.__bases__ = [object];\nArray.prototype.__bindexOf__ = function (element) {\n    element += '';\n    let mindex = 0;\n    let maxdex = this.length - 1;\n    while (mindex <= maxdex) {\n        let index = (mindex + maxdex) / 2 | 0;\n        let middle = this [index] + '';\n        if (middle < element) {\n            mindex = index + 1;\n        }\n        else if (middle > element) {\n            maxdex = index - 1;\n        }\n        else {\n            return index;\n        }\n    }\n    return -1;\n};\nArray.prototype.add = function (element) {\n    if (this.indexOf (element) == -1) {\n        this.push (element);\n    }\n};\nArray.prototype.discard = function (element) {\n    var index = this.indexOf (element);\n    if (index != -1) {\n        this.splice (index, 1);\n    }\n};\nArray.prototype.isdisjoint = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issuperset = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) == -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issubset = function (other) {\n    return set (other.slice ()) .issuperset (this);\n};\nArray.prototype.union = function (other) {\n    let result = set (this.slice () .sort ());\n    for (let i = 0; i < other.length; i++) {\n        if (result.__bindexOf__ (other [i]) == -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.intersection = function (other) {\n    this.sort ();\n    let result = set ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.difference = function (other) {\n    let sother = set (other.slice () .sort ());\n    let result = set ();\n    for (let i = 0; i < this.length; i++) {\n        if (sother.__bindexOf__ (this [i]) == -1) {\n            result.push (this [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.symmetric_difference = function (other) {\n    return this.union (other) .difference (this.intersection (other));\n};\nArray.prototype.py_update = function () {\n    let updated = [] .concat.apply (this.slice (), arguments) .sort ();\n    this.py_clear ();\n    for (let i = 0; i < updated.length; i++) {\n        if (updated [i] != updated [i - 1]) {\n            this.push (updated [i]);\n        }\n    }\n};\nArray.prototype.__eq__ = function (other) {\n    if (this.length != other.length) {\n        return false;\n    }\n    if (this.__class__ == set) {\n        this.sort ();\n        other.sort ();\n    }\n    for (let i = 0; i < this.length; i++) {\n        if (this [i] != other [i]) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.__ne__ = function (other) {\n    return !this.__eq__ (other);\n};\nArray.prototype.__le__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issubset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] > other [i]) {\n                return false;\n            }\n            else if (this [i] < other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__ge__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issuperset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] < other [i]) {\n                return false;\n            }\n            else if (this [i] > other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__lt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issubset (other) && !this.issuperset (other) :\n        !this.__ge__ (other)\n    );\n};\nArray.prototype.__gt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issuperset (other) && !this.issubset (other) :\n        !this.__le__ (other)\n    );\n};\nexport function bytearray (bytable, encoding) {\n    if (bytable == undefined) {\n        return new Uint8Array (0);\n    }\n    else {\n        let aType = py_typeof (bytable);\n        if (aType == int) {\n            return new Uint8Array (bytable);\n        }\n        else if (aType == str) {\n            let aBytes = new Uint8Array (len (bytable));\n            for (let i = 0; i < len (bytable); i++) {\n                aBytes [i] = bytable.charCodeAt (i);\n            }\n            return aBytes;\n        }\n        else if (aType == list || aType == tuple) {\n            return new Uint8Array (bytable);\n        }\n        else {\n            throw py_TypeError;\n        }\n    }\n}\nexport var bytes = bytearray;\nUint8Array.prototype.__add__ = function (aBytes) {\n    let result = new Uint8Array (this.length + aBytes.length);\n    result.set (this);\n    result.set (aBytes, this.length);\n    return result;\n};\nUint8Array.prototype.__mul__ = function (scalar) {\n    let result = new Uint8Array (scalar * this.length);\n    for (let i = 0; i < scalar; i++) {\n        result.set (this, i * this.length);\n    }\n    return result;\n};\nUint8Array.prototype.__rmul__ = Uint8Array.prototype.__mul__;\nexport function str (stringable) {\n    if (typeof stringable === 'number')\n        return stringable.toString();\n    else {\n        try {\n            return stringable.__str__ ();\n        }\n        catch (exception) {\n            try {\n                return repr (stringable);\n            }\n            catch (exception) {\n                return String (stringable);\n            }\n        }\n    }\n};\nString.prototype.__class__ = str;\nstr.__name__ = 'str';\nstr.__bases__ = [object];\nString.prototype.__iter__ = function () {new __PyIterator__ (this);};\nString.prototype.__repr__ = function () {\n    return (this.indexOf ('\\'') == -1 ? '\\'' + this + '\\'' : '\"' + this + '\"') .py_replace ('\\t', '\\\\t') .py_replace ('\\n', '\\\\n');\n};\nString.prototype.__str__ = function () {\n    return this;\n};\nString.prototype.capitalize = function () {\n    return this.charAt (0).toUpperCase () + this.slice (1);\n};\nString.prototype.endswith = function (suffix) {\n    if (suffix instanceof Array) {\n        for (var i=0;i<suffix.length;i++) {\n            if (this.slice (-suffix[i].length) == suffix[i])\n                return true;\n        }\n    } else\n        return suffix == '' || this.slice (-suffix.length) == suffix;\n    return false;\n};\nString.prototype.find = function (sub, start) {\n    return this.indexOf (sub, start);\n};\nString.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    var result = '';\n    if (step == 1) {\n        result = this.substring (start, stop);\n    }\n    else {\n        for (var index = start; index < stop; index += step) {\n            result = result.concat (this.charAt(index));\n        }\n    }\n    return result;\n};\n__setproperty__ (String.prototype, 'format', {\n    get: function () {return __get__ (this, function (self) {\n        var args = tuple ([] .slice.apply (arguments).slice (1));\n        var autoIndex = 0;\n        return self.replace (/\\{(\\w*)\\}/g, function (match, key) {\n            if (key == '') {\n                key = autoIndex++;\n            }\n            if (key == +key) {\n                return args [key] === undefined ? match : str (args [key]);\n            }\n            else {\n                for (var index = 0; index < args.length; index++) {\n                    if (typeof args [index] == 'object' && args [index][key] !== undefined) {\n                        return str (args [index][key]);\n                    }\n                }\n                return match;\n            }\n        });\n    });},\n    enumerable: true\n});\nString.prototype.isalnum = function () {\n    return /^[0-9a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isalpha = function () {\n    return /^[a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isdecimal = function () {\n    return /^[0-9]{1,}$/.test(this)\n}\nString.prototype.isdigit = function () {\n    return this.isdecimal()\n}\nString.prototype.islower = function () {\n    return /^[a-z]{1,}$/.test(this)\n}\nString.prototype.isupper = function () {\n    return /^[A-Z]{1,}$/.test(this)\n}\nString.prototype.isspace = function () {\n    return /^[\\s]{1,}$/.test(this)\n}\nString.prototype.isnumeric = function () {\n    return !isNaN (parseFloat (this)) && isFinite (this);\n};\nString.prototype.join = function (strings) {\n    strings = Array.from (strings);\n    return strings.join (this);\n};\nString.prototype.lower = function () {\n    return this.toLowerCase ();\n};\nString.prototype.py_replace = function (old, aNew, maxreplace) {\n    return this.split (old, maxreplace) .join (aNew);\n};\nString.prototype.lstrip = function () {\n    return this.replace (/^\\s*/g, '');\n};\nString.prototype.rfind = function (sub, start) {\n    return this.lastIndexOf (sub, start);\n};\nString.prototype.rsplit = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            var maxrsplit = result.length - maxsplit;\n            return [result.slice (0, maxrsplit) .join (sep)] .concat (result.slice (maxrsplit));\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.rstrip = function () {\n    return this.replace (/\\s*$/g, '');\n};\nString.prototype.py_split = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            return result.slice (0, maxsplit).concat ([result.slice (maxsplit).join (sep)]);\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.startswith = function (prefix) {\n    if (prefix instanceof Array) {\n        for (var i=0;i<prefix.length;i++) {\n            if (this.indexOf (prefix [i]) == 0)\n                return true;\n        }\n    } else\n        return this.indexOf (prefix) == 0;\n    return false;\n};\nString.prototype.strip = function () {\n    return this.trim ();\n};\nString.prototype.upper = function () {\n    return this.toUpperCase ();\n};\nString.prototype.__mul__ = function (scalar) {\n    var result = '';\n    for (var i = 0; i < scalar; i++) {\n        result = result + this;\n    }\n    return result;\n};\nString.prototype.__rmul__ = String.prototype.__mul__;\nfunction __contains__ (element) {\n    return this.hasOwnProperty (element);\n}\nfunction __keys__ () {\n    var keys = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            keys.push (attrib);\n        }\n    }\n    return keys;\n}\nfunction __items__ () {\n    var items = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            items.push ([attrib, this [attrib]]);\n        }\n    }\n    return items;\n}\nfunction __del__ (key) {\n    delete this [key];\n}\nfunction __clear__ () {\n    for (var attrib in this) {\n        delete this [attrib];\n    }\n}\nfunction __getdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result == undefined) {\n        result = this ['py_' + aKey]\n    }\n    return result == undefined ? (aDefault == undefined ? null : aDefault) : result;\n}\nfunction __setdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        return result;\n    }\n    var val = aDefault == undefined ? null : aDefault;\n    this [aKey] = val;\n    return val;\n}\nfunction __pop__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        delete this [aKey];\n        return result;\n    } else {\n        if ( aDefault === undefined ) {\n            throw KeyError (aKey, new Error());\n        }\n    }\n    return aDefault;\n}\nfunction __popitem__ () {\n    var aKey = Object.keys (this) [0];\n    if (aKey == null) {\n        throw KeyError (\"popitem(): dictionary is empty\", new Error ());\n    }\n    var result = tuple ([aKey, this [aKey]]);\n    delete this [aKey];\n    return result;\n}\nfunction __update__ (aDict) {\n    for (var aKey in aDict) {\n        this [aKey] = aDict [aKey];\n    }\n}\nfunction __values__ () {\n    var values = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            values.push (this [attrib]);\n        }\n    }\n    return values;\n}\nfunction __dgetitem__ (aKey) {\n    return this [aKey];\n}\nfunction __dsetitem__ (aKey, aValue) {\n    this [aKey] = aValue;\n}\nexport function dict (objectOrPairs) {\n    var instance = {};\n    if (!objectOrPairs || objectOrPairs instanceof Array) {\n        if (objectOrPairs) {\n            for (var index = 0; index < objectOrPairs.length; index++) {\n                var pair = objectOrPairs [index];\n                if ( !(pair instanceof Array) || pair.length != 2) {\n                    throw ValueError(\n                        \"dict update sequence element #\" + index +\n                        \" has length \" + pair.length +\n                        \"; 2 is required\", new Error());\n                }\n                var key = pair [0];\n                var val = pair [1];\n                if (!(objectOrPairs instanceof Array) && objectOrPairs instanceof Object) {\n                     if (!isinstance (objectOrPairs, dict)) {\n                         val = dict (val);\n                     }\n                }\n                instance [key] = val;\n            }\n        }\n    }\n    else {\n        if (isinstance (objectOrPairs, dict)) {\n            var aKeys = objectOrPairs.py_keys ();\n            for (var index = 0; index < aKeys.length; index++ ) {\n                var key = aKeys [index];\n                instance [key] = objectOrPairs [key];\n            }\n        } else if (objectOrPairs instanceof Object) {\n            instance = objectOrPairs;\n        } else {\n            throw ValueError (\"Invalid type of object for dict creation\", new Error ());\n        }\n    }\n    __setproperty__ (instance, '__class__', {value: dict, enumerable: false, writable: true});\n    __setproperty__ (instance, '__contains__', {value: __contains__, enumerable: false});\n    __setproperty__ (instance, 'py_keys', {value: __keys__, enumerable: false});\n    __setproperty__ (instance, '__iter__', {value: function () {new __PyIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, Symbol.iterator, {value: function () {new __JsIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, 'py_items', {value: __items__, enumerable: false});\n    __setproperty__ (instance, 'py_del', {value: __del__, enumerable: false});\n    __setproperty__ (instance, 'py_clear', {value: __clear__, enumerable: false});\n    __setproperty__ (instance, 'py_get', {value: __getdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_setdefault', {value: __setdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_pop', {value: __pop__, enumerable: false});\n    __setproperty__ (instance, 'py_popitem', {value: __popitem__, enumerable: false});\n    __setproperty__ (instance, 'py_update', {value: __update__, enumerable: false});\n    __setproperty__ (instance, 'py_values', {value: __values__, enumerable: false});\n    __setproperty__ (instance, '__getitem__', {value: __dgetitem__, enumerable: false});\n    __setproperty__ (instance, '__setitem__', {value: __dsetitem__, enumerable: false});\n    return instance;\n}\ndict.__name__ = 'dict';\ndict.__bases__ = [object];\nfunction __setdoc__ (docString) {\n    this.__doc__ = docString;\n    return this;\n}\n__setproperty__ (Function.prototype, '__setdoc__', {value: __setdoc__, enumerable: false});\nexport function __jsmod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __mod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __pow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport var pow = __pow__;\nexport function __neg__ (a) {\n    if (typeof a == 'object' && '__neg__' in a) {\n        return a.__neg__ ();\n    }\n    else {\n        return -a;\n    }\n};\nexport function __matmul__ (a, b) {\n    return a.__matmul__ (b);\n};\nexport function __mul__ (a, b) {\n    if (typeof a == 'object' && '__mul__' in a) {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return b.__rmul__ (a);\n    }\n    else {\n        return a * b;\n    }\n};\nexport function __truediv__ (a, b) {\n    if (typeof a == 'object' && '__truediv__' in a) {\n        return a.__truediv__ (b);\n    }\n    else if (typeof b == 'object' && '__rtruediv__' in b) {\n        return b.__rtruediv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return a / b;\n    }\n};\nexport function __floordiv__ (a, b) {\n    if (typeof a == 'object' && '__floordiv__' in a) {\n        return a.__floordiv__ (b);\n    }\n    else if (typeof b == 'object' && '__rfloordiv__' in b) {\n        return b.__rfloordiv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return Math.floor (a / b);\n    }\n};\nexport function __add__ (a, b) {\n    if (typeof a == 'object' && '__add__' in a) {\n        return a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return b.__radd__ (a);\n    }\n    else {\n        return a + b;\n    }\n};\nexport function __sub__ (a, b) {\n    if (typeof a == 'object' && '__sub__' in a) {\n        return a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return b.__rsub__ (a);\n    }\n    else {\n        return a - b;\n    }\n};\nexport function __lshift__ (a, b) {\n    if (typeof a == 'object' && '__lshift__' in a) {\n        return a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return b.__rlshift__ (a);\n    }\n    else {\n        return a << b;\n    }\n};\nexport function __rshift__ (a, b) {\n    if (typeof a == 'object' && '__rshift__' in a) {\n        return a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return b.__rrshift__ (a);\n    }\n    else {\n        return a >> b;\n    }\n};\nexport function __or__ (a, b) {\n    if (typeof a == 'object' && '__or__' in a) {\n        return a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return b.__ror__ (a);\n    }\n    else {\n        return a | b;\n    }\n};\nexport function __xor__ (a, b) {\n    if (typeof a == 'object' && '__xor__' in a) {\n        return a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return b.__rxor__ (a);\n    }\n    else {\n        return a ^ b;\n    }\n};\nexport function __and__ (a, b) {\n    if (typeof a == 'object' && '__and__' in a) {\n        return a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return b.__rand__ (a);\n    }\n    else {\n        return a & b;\n    }\n};\nexport function __eq__ (a, b) {\n    if (typeof a == 'object' && '__eq__' in a) {\n        return a.__eq__ (b);\n    }\n    else {\n        return a == b;\n    }\n};\nexport function __ne__ (a, b) {\n    if (typeof a == 'object' && '__ne__' in a) {\n        return a.__ne__ (b);\n    }\n    else {\n        return a != b\n    }\n};\nexport function __lt__ (a, b) {\n    if (typeof a == 'object' && '__lt__' in a) {\n        return a.__lt__ (b);\n    }\n    else {\n        return a < b;\n    }\n};\nexport function __le__ (a, b) {\n    if (typeof a == 'object' && '__le__' in a) {\n        return a.__le__ (b);\n    }\n    else {\n        return a <= b;\n    }\n};\nexport function __gt__ (a, b) {\n    if (typeof a == 'object' && '__gt__' in a) {\n        return a.__gt__ (b);\n    }\n    else {\n        return a > b;\n    }\n};\nexport function __ge__ (a, b) {\n    if (typeof a == 'object' && '__ge__' in a) {\n        return a.__ge__ (b);\n    }\n    else {\n        return a >= b;\n    }\n};\nexport function __imatmul__ (a, b) {\n    if ('__imatmul__' in a) {\n        return a.__imatmul__ (b);\n    }\n    else {\n        return a.__matmul__ (b);\n    }\n};\nexport function __ipow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__ipow__ (b);\n    }\n    else if (typeof a == 'object' && '__ipow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport function __ijsmod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__ismod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __imod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__imod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __imul__ (a, b) {\n    if (typeof a == 'object' && '__imul__' in a) {\n        return a.__imul__ (b);\n    }\n    else if (typeof a == 'object' && '__mul__' in a) {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return a = b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return a = b.__rmul__ (a);\n    }\n    else {\n        return a *= b;\n    }\n};\nexport function __idiv__ (a, b) {\n    if (typeof a == 'object' && '__idiv__' in a) {\n        return a.__idiv__ (b);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a = a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return a = b.__rdiv__ (a);\n    }\n    else {\n        return a /= b;\n    }\n};\nexport function __iadd__ (a, b) {\n    if (typeof a == 'object' && '__iadd__' in a) {\n        return a.__iadd__ (b);\n    }\n    else if (typeof a == 'object' && '__add__' in a) {\n        return a = a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return a = b.__radd__ (a);\n    }\n    else {\n        return a += b;\n    }\n};\nexport function __isub__ (a, b) {\n    if (typeof a == 'object' && '__isub__' in a) {\n        return a.__isub__ (b);\n    }\n    else if (typeof a == 'object' && '__sub__' in a) {\n        return a = a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return a = b.__rsub__ (a);\n    }\n    else {\n        return a -= b;\n    }\n};\nexport function __ilshift__ (a, b) {\n    if (typeof a == 'object' && '__ilshift__' in a) {\n        return a.__ilshift__ (b);\n    }\n    else if (typeof a == 'object' && '__lshift__' in a) {\n        return a = a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return a = b.__rlshift__ (a);\n    }\n    else {\n        return a <<= b;\n    }\n};\nexport function __irshift__ (a, b) {\n    if (typeof a == 'object' && '__irshift__' in a) {\n        return a.__irshift__ (b);\n    }\n    else if (typeof a == 'object' && '__rshift__' in a) {\n        return a = a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return a = b.__rrshift__ (a);\n    }\n    else {\n        return a >>= b;\n    }\n};\nexport function __ior__ (a, b) {\n    if (typeof a == 'object' && '__ior__' in a) {\n        return a.__ior__ (b);\n    }\n    else if (typeof a == 'object' && '__or__' in a) {\n        return a = a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return a = b.__ror__ (a);\n    }\n    else {\n        return a |= b;\n    }\n};\nexport function __ixor__ (a, b) {\n    if (typeof a == 'object' && '__ixor__' in a) {\n        return a.__ixor__ (b);\n    }\n    else if (typeof a == 'object' && '__xor__' in a) {\n        return a = a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return a = b.__rxor__ (a);\n    }\n    else {\n        return a ^= b;\n    }\n};\nexport function __iand__ (a, b) {\n    if (typeof a == 'object' && '__iand__' in a) {\n        return a.__iand__ (b);\n    }\n    else if (typeof a == 'object' && '__and__' in a) {\n        return a = a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return a = b.__rand__ (a);\n    }\n    else {\n        return a &= b;\n    }\n};\nexport function __getitem__ (container, key) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ (key);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        return container [container.length + key];\n    }\n    else {\n        return container [key];\n    }\n};\nexport function __setitem__ (container, key, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ (key, value);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        container [container.length + key] = value;\n    }\n    else {\n        container [key] = value;\n    }\n};\nexport function __getslice__ (container, lower, upper, step) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ ([lower, upper, step]);\n    }\n    else {\n        return container.__getslice__ (lower, upper, step);\n    }\n};\nexport function __setslice__ (container, lower, upper, step, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ ([lower, upper, step], value);\n    }\n    else {\n        container.__setslice__ (lower, upper, step, value);\n    }\n};\nexport var BaseException =  __class__ ('BaseException', [object], {\n\t__module__: __name__,\n});\nexport var Exception =  __class__ ('Exception', [BaseException], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tvar kwargs = dict ();\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tdefault: kwargs [__attrib0__] = __allkwargs0__ [__attrib0__];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdelete kwargs.__kwargtrans__;\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.__args__ = args;\n\t\tif (kwargs.error != null) {\n\t\t\tself.stack = kwargs.error.stack;\n\t\t}\n\t\telse if (Error) {\n\t\t\tself.stack = new Error ().stack;\n\t\t}\n\t\telse {\n\t\t\tself.stack = 'No stack trace available';\n\t\t}\n\t});},\n\tget __repr__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]));\n\t\t}\n\t\telse {\n\t\t\treturn '{}()'.format (self.__class__.__name__);\n\t\t}\n\t});},\n\tget __str__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn str (tuple (self.__args__));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn str (self.__args__ [0]);\n\t\t}\n\t\telse {\n\t\t\treturn '';\n\t\t}\n\t});}\n});\nexport var IterableError =  __class__ ('IterableError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, \"Can't iterate over non-iterable\", __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var StopIteration =  __class__ ('StopIteration', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, 'Iterator exhausted', __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var ValueError =  __class__ ('ValueError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var KeyError =  __class__ ('KeyError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AssertionError =  __class__ ('AssertionError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tif (message) {\n\t\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t\t}\n\t\telse {\n\t\t\tException.__init__ (self, __kwargtrans__ ({error: error}));\n\t\t}\n\t});}\n});\nexport var NotImplementedError =  __class__ ('NotImplementedError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var IndexError =  __class__ ('IndexError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AttributeError =  __class__ ('AttributeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var py_TypeError =  __class__ ('py_TypeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var Warning =  __class__ ('Warning', [Exception], {\n\t__module__: __name__,\n});\nexport var UserWarning =  __class__ ('UserWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var DeprecationWarning =  __class__ ('DeprecationWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var RuntimeWarning =  __class__ ('RuntimeWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var __sort__ = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (key) {\n\t\titerable.sort ((function __lambda__ (a, b) {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\t\tcase 'a': var a = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t\tcase 'b': var b = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\treturn (key (a) > key (b) ? 1 : -(1));\n\t\t}));\n\t}\n\telse {\n\t\titerable.sort ();\n\t}\n\tif (reverse) {\n\t\titerable.reverse ();\n\t}\n};\nexport var sorted = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (py_typeof (iterable) == dict) {\n\t\tvar result = copy (iterable.py_keys ());\n\t}\n\telse {\n\t\tvar result = copy (iterable);\n\t}\n\t__sort__ (result, key, reverse);\n\treturn result;\n};\nexport var map = function (func, iterable) {\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\t__accu0__.append (func (item));\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var filter = function (func, iterable) {\n\tif (func == null) {\n\t\tvar func = bool;\n\t}\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\tif (func (item)) {\n\t\t\t\t__accu0__.append (item);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var divmod = function (n, d) {\n\treturn tuple ([Math.floor (n / d), __mod__ (n, d)]);\n};\nexport var __Terminal__ =  __class__ ('__Terminal__', [object], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tself.buffer = '';\n\t\ttry {\n\t\t\tself.element = document.getElementById ('__terminal__');\n\t\t}\n\t\tcatch (__except0__) {\n\t\t\tself.element = null;\n\t\t}\n\t\tif (self.element) {\n\t\t\tself.element.style.overflowX = 'auto';\n\t\t\tself.element.style.boxSizing = 'border-box';\n\t\t\tself.element.style.padding = '5px';\n\t\t\tself.element.innerHTML = '_';\n\t\t}\n\t});},\n\tget print () {return __get__ (this, function (self) {\n\t\tvar sep = ' ';\n\t\tvar end = '\\n';\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'sep': var sep = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'end': var end = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.buffer = '{}{}{}'.format (self.buffer, sep.join ((function () {\n\t\t\tvar __accu0__ = [];\n\t\t\tfor (var arg of args) {\n\t\t\t\t__accu0__.append (str (arg));\n\t\t\t}\n\t\t\treturn __accu0__;\n\t\t}) ()), end).__getslice__ (-(4096), null, 1);\n\t\tif (self.element) {\n\t\t\tself.element.innerHTML = self.buffer.py_replace ('\\n', '<br>').py_replace (' ', '&nbsp');\n\t\t\tself.element.scrollTop = self.element.scrollHeight;\n\t\t}\n\t\telse {\n\t\t\tconsole.log (sep.join ((function () {\n\t\t\t\tvar __accu0__ = [];\n\t\t\t\tfor (var arg of args) {\n\t\t\t\t\t__accu0__.append (str (arg));\n\t\t\t\t}\n\t\t\t\treturn __accu0__;\n\t\t\t}) ()));\n\t\t}\n\t});},\n\tget input () {return __get__ (this, function (self, question) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'question': var question = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.print ('{}'.format (question), __kwargtrans__ ({end: ''}));\n\t\tvar answer = window.prompt ('\\n'.join (self.buffer.py_split ('\\n').__getslice__ (-(8), null, 1)));\n\t\tself.print (answer);\n\t\treturn answer;\n\t});}\n});\nexport var __terminal__ = __Terminal__ ();\nexport var print = __terminal__.print;\nexport var input = __terminal__.input;\n\n//# sourceMappingURL=org.transcrypt.__runtime__.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_002/target/org.transcrypt.__runtime__.py",
    "content": "# Transcrypt runtime module\r\n\r\n#__pragma__ ('js', 'export var __envir__ = {{}};\\n{}', __include__ ('org/transcrypt/__envir__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__core__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__builtin__.js'))\r\n\r\n#__pragma__ ('skip')\r\ncopy = Math = __typeof__ = __repr__ = document = console = window = 0\r\n#__pragma__ ('noskip')\r\n\r\n#__pragma__ ('notconv')  # !!! tconv gives a problem with __terminal__, needs investigation\r\n#__pragma__ ('nokwargs')\r\n#__pragma__ ('noalias', 'sort')\r\n\r\nclass BaseException:\r\n    pass\r\n\r\nclass Exception (BaseException):\r\n    #__pragma__ ('kwargs')\r\n    def __init__ (self, *args, **kwargs):\r\n        self.__args__ = args\r\n        if kwargs.error != None:\r\n            self.stack = kwargs.error.stack # Integrate with JavaScript Error object\r\n        elif Error:\r\n            self.stack = (__new__(Error())).stack # Create our own stack if we aren't given one\r\n        else:\r\n            self.stack = 'No stack trace available'\r\n    #__pragma__ ('nokwargs')\r\n        \r\n    def __repr__ (self):\r\n        if len (self.__args__) > 1:\r\n            return '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)))\r\n        elif len (self.__args__):\r\n            return '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]))        \r\n        else:\r\n            return '{}()'.format (self.__class__.__name__)\r\n            \r\n    def __str__ (self):\r\n        if len (self.__args__) > 1:\r\n            return str (tuple (self.__args__))\r\n        elif len (self.__args__):\r\n            return str (self.__args__ [0])\r\n        else:\r\n            return ''\r\n        \r\nclass IterableError (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Can\\'t iterate over non-iterable', error = error)\r\n            \r\nclass StopIteration (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Iterator exhausted', error = error)\r\n        \r\nclass ValueError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass KeyError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass AssertionError (Exception):\r\n    def __init__ (self, message, error):\r\n        if message:\r\n            Exception.__init__ (self, message, error = error)\r\n        else:\r\n            Exception.__init__ (self, error = error)\r\n\r\nclass NotImplementedError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass IndexError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass AttributeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass TypeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\n# Warnings Exceptions\r\n# N.B. This is a limited subset of the warnings defined in\r\n# the cpython implementation to keep things small for now.\r\n\r\nclass Warning (Exception):\r\n    ''' Warning Base Class\r\n    '''\r\n    pass\r\n\r\nclass UserWarning (Warning):\r\n    pass\r\n\r\nclass DeprecationWarning (Warning):\r\n    pass\r\n\r\nclass RuntimeWarning (Warning):\r\n    pass\r\n    \r\n#__pragma__ ('kwargs')\r\n\r\ndef __sort__ (iterable, key = None, reverse = False):               # Used by py_sort, can deal with kwargs\r\n    if key:\r\n        iterable.sort (lambda a, b: 1 if key (a) > key (b) else -1) # JavaScript sort, case '==' is irrelevant for sorting\r\n    else:\r\n        iterable.sort ()                                            # JavaScript sort\r\n        \r\n    if reverse:\r\n        iterable.reverse ()\r\n        \r\ndef sorted (iterable, key = None, reverse = False):\r\n    if type (iterable) == dict:\r\n        result = copy (iterable.keys ()) \r\n    else:       \r\n        result = copy (iterable)\r\n        \r\n    __sort__ (result, key, reverse)\r\n    return result\r\n\r\n#__pragma__ ('nokwargs')\r\n\r\ndef map (func, iterable):\r\n    return [func (item) for item in iterable]\r\n\r\n\r\ndef filter (func, iterable):\r\n    if func == None:\r\n        func = bool\r\n    return [item for item in iterable if func (item)]\r\n    \r\ndef divmod (n, d):\r\n    return n // d, n % d\r\n    \r\n#__pragma__ ('ifdef', '__complex__')\r\n\r\nclass complex:\r\n    def __init__ (self, real, imag = None):\r\n        if imag == None:\r\n            if type (real) == complex:\r\n                self.real = real.real\r\n                self.imag = real.imag\r\n            else:\r\n                self.real = real\r\n                self.imag = 0\r\n        else:\r\n            self.real = real\r\n            self.imag = imag\r\n            \r\n    def __neg__ (self):\r\n        return complex (-self.real, -self.imag)\r\n        \r\n    def __exp__ (self):\r\n        modulus = Math.exp (self.real)\r\n        return complex (modulus * Math.cos (self.imag), modulus * Math.sin (self.imag))\r\n    \r\n    def __log__ (self):\r\n        return complex (Math.log (Math.sqrt (self.real * self.real + self.imag * self.imag)), Math.atan2 (self.imag, self.real))\r\n        \r\n    def __pow__ (self, other):  # a ** b = exp (b log a)\r\n        return (self.__log__ () .__mul__ (other)) .__exp__ ()\r\n        \r\n    def __rpow__ (self, real):  # real ** comp -> comp.__rpow__ (real)\r\n        return self.__mul__ (Math.log (real)) .__exp__ ()\r\n        \r\n    def __mul__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real * other, self.imag * other)\r\n        else:\r\n            return complex (self.real * other.real - self.imag * other.imag, self.real * other.imag + self.imag * other.real)\r\n        \r\n    def __rmul__ (self, real):  # real + comp -> comp.__rmul__ (real)\r\n        return complex (self.real * real, self.imag * real)\r\n        \r\n    def __div__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real / other, self.imag / other)\r\n        else:\r\n            denom = other.real * other.real + other.imag * other.imag\r\n            return complex (\r\n                (self.real * other.real + self.imag * other.imag) / denom,\r\n                (self.imag * other.real - self.real * other.imag) / denom\r\n            )\r\n        \r\n    def __rdiv__ (self, real):  # real / comp -> comp.__rdiv__ (real)\r\n        denom = self.real * self.real\r\n        return complex (\r\n            (real * self.real) / denom,\r\n            (real * self.imag) / denom\r\n        )\r\n        \r\n    def __add__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real + other, self.imag)\r\n        else:   # Assume other is complex\r\n            return complex (self.real + other.real, self.imag + other.imag)\r\n        \r\n    def __radd__ (self, real):  # real + comp -> comp.__radd__ (real)\r\n        return complex (self.real + real, self.imag)\r\n        \r\n    def __sub__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real - other, self.imag)\r\n        else:\r\n            return complex (self.real - other.real, self.imag - other.imag)\r\n        \r\n    def __rsub__ (self, real):  # real - comp -> comp.__rsub__ (real)\r\n        return complex (real - self.real, -self.imag)\r\n        \r\n    def __repr__ (self):\r\n        return '({}{}{}j)'.format (self.real, '+' if self.imag >= 0 else '', self.imag)\r\n            \r\n    def __str__ (self):\r\n        return __repr__ (self) [1 : -1]\r\n        \r\n    def __eq__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real == other\r\n        else:\r\n            return self.real == other.real and self.imag == other.imag\r\n        \r\n    def __ne__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real != other\r\n        else:\r\n            return self.real != other.real or self.imag != other.imag\r\n        \r\n    def conjugate (self):\r\n        return complex (self.real, -self.imag)\r\n        \r\ndef __conj__ (aNumber):\r\n    if isinstance (aNumber, complex):\r\n        return complex (aNumber.real, -aNumber.imag)\r\n    else:\r\n        return complex (aNumber, 0)\r\n        \r\n#__pragma__ ('endif')\r\n\r\nclass __Terminal__:\r\n    '''\r\n    Printing to either the console or to html happens async, but is blocked by calling window.prompt.\r\n    So while all input and print statements are encountered in normal order, the print's exit immediately without yet having actually printed\r\n    This means the next input takes control, blocking actual printing and so on indefinitely\r\n    The effect is that everything's only printed after all inputs are done\r\n    To prevent that, what's needed is to only execute the next window.prompt after actual printing has been done\r\n    Since we've no way to find out when that is, a timeout is used.\r\n    '''\r\n\r\n    def __init__ (self):\r\n        self.buffer = ''\r\n    \r\n        try:\r\n            self.element = document.getElementById ('__terminal__')\r\n        except:\r\n            self.element = None\r\n            \r\n        if self.element:\r\n            self.element.style.overflowX = 'auto'\r\n            self.element.style.boxSizing = 'border-box'\r\n            self.element.style.padding = '5px'\r\n            self.element.innerHTML = '_'\r\n        \r\n    #__pragma__ ('kwargs')\r\n        \r\n    def print (self, *args, sep = ' ', end = '\\n'):\r\n        self.buffer = '{}{}{}'.format (self.buffer, sep.join ([str (arg) for arg in args]), end) [-4096 : ] \r\n        \r\n        if self.element:\r\n            self.element.innerHTML = self.buffer.replace ('\\n', '<br>') .replace (' ', '&nbsp')\r\n            self.element.scrollTop = self.element.scrollHeight\r\n        else:\r\n            console.log (sep.join ([str (arg) for arg in args]))\r\n        \r\n    def input (self, question):\r\n        self.print ('{}'.format (question), end = '')\r\n        answer = window.prompt ('\\n'.join (self.buffer.split ('\\n') [-8:]))\r\n        self.print (answer)\r\n        return answer\r\n        \r\n    #__pragma__ ('nokwargs')\r\n    \r\n__terminal__ = __Terminal__ ()\r\n\r\nprint = __terminal__.print\r\ninput = __terminal__.input\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_002/target/pyp5js.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:10\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {PythonFunctions} from './python_functions.js';\nvar __name__ = 'pyp5js';\nexport var _P5_INSTANCE = null;\nexport var _CTX_MIDDLE = null;\nexport var _DEFAULT_FILL = null;\nexport var _DEFAULT_LEADMULT = null;\nexport var _DEFAULT_STROKE = null;\nexport var _DEFAULT_TEXT_FILL = null;\nexport var ADD = null;\nexport var ALT = null;\nexport var ARROW = null;\nexport var AUDIO = null;\nexport var AUTO = null;\nexport var AXES = null;\nexport var BACKSPACE = null;\nexport var BASELINE = null;\nexport var BEVEL = null;\nexport var BEZIER = null;\nexport var BLEND = null;\nexport var BLUR = null;\nexport var BOLD = null;\nexport var BOLDITALIC = null;\nexport var BOTTOM = null;\nexport var BURN = null;\nexport var CENTER = null;\nexport var CHORD = null;\nexport var CLAMP = null;\nexport var CLOSE = null;\nexport var CONTROL = null;\nexport var CORNER = null;\nexport var CORNERS = null;\nexport var CROSS = null;\nexport var CURVE = null;\nexport var DARKEST = null;\nexport var DEG_TO_RAD = null;\nexport var DEGREES = null;\nexport var DELETE = null;\nexport var DIFFERENCE = null;\nexport var DILATE = null;\nexport var DODGE = null;\nexport var DOWN_ARROW = null;\nexport var ENTER = null;\nexport var ERODE = null;\nexport var ESCAPE = null;\nexport var EXCLUSION = null;\nexport var FILL = null;\nexport var GRAY = null;\nexport var GRID = null;\nexport var HALF_PI = null;\nexport var HAND = null;\nexport var HARD_LIGHT = null;\nexport var HSB = null;\nexport var HSL = null;\nexport var IMAGE = null;\nexport var IMMEDIATE = null;\nexport var INVERT = null;\nexport var ITALIC = null;\nexport var LANDSCAPE = null;\nexport var LEFT = null;\nexport var LEFT_ARROW = null;\nexport var LIGHTEST = null;\nexport var LINE_LOOP = null;\nexport var LINE_STRIP = null;\nexport var LINEAR = null;\nexport var LINES = null;\nexport var MIRROR = null;\nexport var MITER = null;\nexport var MOVE = null;\nexport var MULTIPLY = null;\nexport var NEAREST = null;\nexport var NORMAL = null;\nexport var OPAQUE = null;\nexport var OPEN = null;\nexport var OPTION = null;\nexport var OVERLAY = null;\nexport var PI = null;\nexport var PIE = null;\nexport var POINTS = null;\nexport var PORTRAIT = null;\nexport var POSTERIZE = null;\nexport var PROJECT = null;\nexport var QUAD_STRIP = null;\nexport var QUADRATIC = null;\nexport var QUADS = null;\nexport var QUARTER_PI = null;\nexport var RAD_TO_DEG = null;\nexport var RADIANS = null;\nexport var RADIUS = null;\nexport var REPEAT = null;\nexport var REPLACE = null;\nexport var RETURN = null;\nexport var RGB = null;\nexport var RIGHT = null;\nexport var RIGHT_ARROW = null;\nexport var ROUND = null;\nexport var SCREEN = null;\nexport var SHIFT = null;\nexport var SOFT_LIGHT = null;\nexport var SQUARE = null;\nexport var STROKE = null;\nexport var SUBTRACT = null;\nexport var TAB = null;\nexport var TAU = null;\nexport var TEXT = null;\nexport var TEXTURE = null;\nexport var THRESHOLD = null;\nexport var TOP = null;\nexport var TRIANGLE_FAN = null;\nexport var TRIANGLE_STRIP = null;\nexport var TRIANGLES = null;\nexport var TWO_PI = null;\nexport var UP_ARROW = null;\nexport var VIDEO = null;\nexport var WAIT = null;\nexport var WEBGL = null;\nexport var P2D = null;\nvar PI = null;\nexport var frameCount = null;\nexport var focused = null;\nexport var displayWidth = null;\nexport var displayHeight = null;\nexport var windowWidth = null;\nexport var windowHeight = null;\nexport var width = null;\nexport var height = null;\nexport var disableFriendlyErrors = null;\nexport var deviceOrientation = null;\nexport var accelerationX = null;\nexport var accelerationY = null;\nexport var accelerationZ = null;\nexport var pAccelerationX = null;\nexport var pAccelerationY = null;\nexport var pAccelerationZ = null;\nexport var rotationX = null;\nexport var rotationY = null;\nexport var rotationZ = null;\nexport var pRotationX = null;\nexport var pRotationY = null;\nexport var pRotationZ = null;\nexport var turnAxis = null;\nexport var keyIsPressed = null;\nexport var key = null;\nexport var keyCode = null;\nexport var mouseX = null;\nexport var mouseY = null;\nexport var pmouseX = null;\nexport var pmouseY = null;\nexport var winMouseX = null;\nexport var winMouseY = null;\nexport var pwinMouseX = null;\nexport var pwinMouseY = null;\nexport var mouseButton = null;\nexport var mouseIsPressed = null;\nexport var touches = null;\nexport var pixels = null;\nexport var alpha = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.alpha (...args);\n};\nexport var blue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blue (...args);\n};\nexport var brightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.brightness (...args);\n};\nexport var color = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.color (...args);\n};\nexport var green = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.green (...args);\n};\nexport var hue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hue (...args);\n};\nexport var lerpColor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerpColor (...args);\n};\nexport var lightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lightness (...args);\n};\nexport var red = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.red (...args);\n};\nexport var saturation = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saturation (...args);\n};\nexport var background = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.background (...args);\n};\nexport var py_clear = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_clear = _P5_INSTANCE.clear (...args);\n\treturn p5_clear;\n};\nexport var erase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.erase (...args);\n};\nexport var noErase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noErase (...args);\n};\nexport var colorMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.colorMode (...args);\n};\nexport var fill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fill (...args);\n};\nexport var noFill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noFill (...args);\n};\nexport var noStroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noStroke (...args);\n};\nexport var stroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.stroke (...args);\n};\nexport var arc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arc (...args);\n};\nexport var ellipse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipse (...args);\n};\nexport var circle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.circle (...args);\n};\nexport var line = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.line (...args);\n};\nexport var point = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.point (...args);\n};\nexport var quad = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quad (...args);\n};\nexport var rect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rect (...args);\n};\nexport var square = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.square (...args);\n};\nexport var triangle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.triangle (...args);\n};\nexport var plane = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.plane (...args);\n};\nexport var box = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.box (...args);\n};\nexport var sphere = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sphere (...args);\n};\nexport var cylinder = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cylinder (...args);\n};\nexport var cone = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cone (...args);\n};\nexport var ellipsoid = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipsoid (...args);\n};\nexport var torus = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.torus (...args);\n};\nexport var loadModel = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadModel (...args);\n};\nexport var model = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.model (...args);\n};\nexport var ellipseMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipseMode (...args);\n};\nexport var noSmooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noSmooth (...args);\n};\nexport var rectMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rectMode (...args);\n};\nexport var smooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.smooth (...args);\n};\nexport var strokeCap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeCap (...args);\n};\nexport var strokeJoin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeJoin (...args);\n};\nexport var strokeWeight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeWeight (...args);\n};\nexport var bezier = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezier (...args);\n};\nexport var bezierDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierDetail (...args);\n};\nexport var bezierPoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierPoint (...args);\n};\nexport var bezierTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierTangent (...args);\n};\nexport var curve = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curve (...args);\n};\nexport var curveDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveDetail (...args);\n};\nexport var curveTightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTightness (...args);\n};\nexport var curvePoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curvePoint (...args);\n};\nexport var curveTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTangent (...args);\n};\nexport var beginContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginContour (...args);\n};\nexport var beginShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginShape (...args);\n};\nexport var bezierVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierVertex (...args);\n};\nexport var curveVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveVertex (...args);\n};\nexport var endContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endContour (...args);\n};\nexport var endShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endShape (...args);\n};\nexport var quadraticVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quadraticVertex (...args);\n};\nexport var vertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.vertex (...args);\n};\nexport var cursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cursor (...args);\n};\nexport var frameRate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.frameRate (...args);\n};\nexport var noCursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCursor (...args);\n};\nexport var fullscreen = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fullscreen (...args);\n};\nexport var pixelDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pixelDensity (...args);\n};\nexport var displayDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.displayDensity (...args);\n};\nexport var getURL = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURL (...args);\n};\nexport var getURLPath = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLPath (...args);\n};\nexport var getURLParams = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLParams (...args);\n};\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.preload (...args);\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setup (...args);\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.draw (...args);\n};\nexport var remove = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.remove (...args);\n};\nexport var noLoop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noLoop (...args);\n};\nexport var loop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loop (...args);\n};\nexport var push = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.push (...args);\n};\nexport var redraw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.redraw (...args);\n};\nexport var resizeCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resizeCanvas (...args);\n};\nexport var noCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCanvas (...args);\n};\nexport var createGraphics = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createGraphics (...args);\n};\nexport var blendMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blendMode (...args);\n};\nexport var setAttributes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setAttributes (...args);\n};\nexport var applyMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.applyMatrix (...args);\n};\nexport var resetMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetMatrix (...args);\n};\nexport var rotate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotate (...args);\n};\nexport var rotateX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateX (...args);\n};\nexport var rotateY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateY (...args);\n};\nexport var rotateZ = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateZ (...args);\n};\nexport var scale = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.scale (...args);\n};\nexport var shearX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearX (...args);\n};\nexport var shearY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearY (...args);\n};\nexport var translate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.translate (...args);\n};\nexport var createStringDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createStringDict (...args);\n};\nexport var createNumberDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createNumberDict (...args);\n};\nexport var append = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.append (...args);\n};\nexport var arrayCopy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arrayCopy (...args);\n};\nexport var concat = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.concat (...args);\n};\nexport var reverse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.reverse (...args);\n};\nexport var shorten = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shorten (...args);\n};\nexport var shuffle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shuffle (...args);\n};\nexport var py_sort = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_sort (...args);\n};\nexport var splice = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splice (...args);\n};\nexport var subset = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.subset (...args);\n};\nexport var float = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.float (...args);\n};\nexport var int = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.int (...args);\n};\nexport var str = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.str (...args);\n};\nexport var boolean = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.boolean (...args);\n};\nexport var byte = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.byte (...args);\n};\nexport var char = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.char (...args);\n};\nexport var unchar = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unchar (...args);\n};\nexport var hex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hex (...args);\n};\nexport var unhex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unhex (...args);\n};\nexport var join = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.join (...args);\n};\nexport var match = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.match (...args);\n};\nexport var matchAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.matchAll (...args);\n};\nexport var nf = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nf (...args);\n};\nexport var nfc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfc (...args);\n};\nexport var nfp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfp (...args);\n};\nexport var nfs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfs (...args);\n};\nexport var py_split = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_split (...args);\n};\nexport var splitTokens = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splitTokens (...args);\n};\nexport var trim = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.trim (...args);\n};\nexport var setMoveThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setMoveThreshold (...args);\n};\nexport var setShakeThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setShakeThreshold (...args);\n};\nexport var keyIsDown = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.keyIsDown (...args);\n};\nexport var createImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImage (...args);\n};\nexport var saveCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveCanvas (...args);\n};\nexport var saveFrames = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveFrames (...args);\n};\nexport var image_proxy = function (img) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'img': var img = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar _set = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.set (...args);\n\t\treturn value;\n\t};\n\tvar _get = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.get (...args);\n\t\treturn value;\n\t};\n\timg.py_set = _set;\n\timg.py_get = _get;\n\treturn img;\n};\nexport var loadImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar imageObj = _P5_INSTANCE.loadImage (...args);\n\treturn image_proxy (imageObj);\n};\nexport var image = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.image (...args);\n};\nexport var tint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tint (...args);\n};\nexport var noTint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noTint (...args);\n};\nexport var imageMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.imageMode (...args);\n};\nexport var blend = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blend (...args);\n};\nexport var copy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.copy (...args);\n};\nexport var filter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && (args [0] === null || callable (args [0]))) {\n\t\treturn PythonFunctions.filter (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.filter (...args);\n\t}\n};\nexport var py_get = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_get = _P5_INSTANCE.get (...args);\n\treturn p5_get;\n};\nexport var loadPixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadPixels (...args);\n};\nexport var py_set = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) <= 1) {\n\t\treturn PythonFunctions.py_set (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.py_set (...args);\n\t}\n};\nexport var updatePixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.updatePixels (...args);\n};\nexport var loadJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadJSON (...args);\n};\nexport var loadStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadStrings (...args);\n};\nexport var loadTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadTable (...args);\n};\nexport var loadXML = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadXML (...args);\n};\nexport var loadBytes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadBytes (...args);\n};\nexport var httpGet = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpGet (...args);\n};\nexport var httpPost = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpPost (...args);\n};\nexport var httpDo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpDo (...args);\n};\nexport var createWriter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createWriter (...args);\n};\nexport var save = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.save (...args);\n};\nexport var saveJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveJSON (...args);\n};\nexport var saveStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveStrings (...args);\n};\nexport var saveTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveTable (...args);\n};\nexport var day = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.day (...args);\n};\nexport var hour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hour (...args);\n};\nexport var minute = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.minute (...args);\n};\nexport var millis = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.millis (...args);\n};\nexport var month = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.month (...args);\n};\nexport var second = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.second (...args);\n};\nexport var year = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.year (...args);\n};\nexport var createVector = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVector (...args);\n};\nexport var abs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.abs (...args);\n};\nexport var ceil = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ceil (...args);\n};\nexport var constrain = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.constrain (...args);\n};\nexport var dist = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.dist (...args);\n};\nexport var exp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.exp (...args);\n};\nexport var floor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.floor (...args);\n};\nexport var lerp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerp (...args);\n};\nexport var log = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.log (...args);\n};\nexport var mag = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.mag (...args);\n};\nexport var map = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && callable (args [0])) {\n\t\treturn PythonFunctions.map (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.map (...args);\n\t}\n};\nexport var max = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.max (...args);\n};\nexport var min = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.min (...args);\n};\nexport var norm = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.norm (...args);\n};\nexport var pow = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pow (...args);\n};\nexport var round = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.round (...args);\n};\nexport var sq = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sq (...args);\n};\nexport var sqrt = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sqrt (...args);\n};\nexport var noise = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noise (...args);\n};\nexport var noiseDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseDetail (...args);\n};\nexport var noiseSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseSeed (...args);\n};\nexport var randomSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomSeed (...args);\n};\nexport var random = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.random (...args);\n};\nexport var randomGaussian = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomGaussian (...args);\n};\nexport var acos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.acos (...args);\n};\nexport var asin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.asin (...args);\n};\nexport var atan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan (...args);\n};\nexport var atan2 = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan2 (...args);\n};\nexport var cos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cos (...args);\n};\nexport var sin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sin (...args);\n};\nexport var tan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tan (...args);\n};\nexport var degrees = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.degrees (...args);\n};\nexport var radians = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.radians (...args);\n};\nexport var angleMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.angleMode (...args);\n};\nexport var textAlign = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAlign (...args);\n};\nexport var textLeading = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textLeading (...args);\n};\nexport var textSize = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textSize (...args);\n};\nexport var textStyle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textStyle (...args);\n};\nexport var textWidth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textWidth (...args);\n};\nexport var textAscent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAscent (...args);\n};\nexport var textDescent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textDescent (...args);\n};\nexport var loadFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadFont (...args);\n};\nexport var text = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.text (...args);\n};\nexport var textFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textFont (...args);\n};\nexport var orbitControl = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.orbitControl (...args);\n};\nexport var debugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.debugMode (...args);\n};\nexport var noDebugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noDebugMode (...args);\n};\nexport var ambientLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientLight (...args);\n};\nexport var directionalLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.directionalLight (...args);\n};\nexport var pointLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pointLight (...args);\n};\nexport var lights = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lights (...args);\n};\nexport var loadShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadShader (...args);\n};\nexport var createShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createShader (...args);\n};\nexport var shader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shader (...args);\n};\nexport var resetShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetShader (...args);\n};\nexport var normalMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.normalMaterial (...args);\n};\nexport var texture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.texture (...args);\n};\nexport var textureMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureMode (...args);\n};\nexport var textureWrap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureWrap (...args);\n};\nexport var ambientMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientMaterial (...args);\n};\nexport var specularMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.specularMaterial (...args);\n};\nexport var shininess = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shininess (...args);\n};\nexport var camera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.camera (...args);\n};\nexport var perspective = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.perspective (...args);\n};\nexport var ortho = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ortho (...args);\n};\nexport var createCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCamera (...args);\n};\nexport var setCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setCamera (...args);\n};\nexport var select = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.select (...args);\n};\nexport var selectAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.selectAll (...args);\n};\nexport var removeElements = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.removeElements (...args);\n};\nexport var changed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.changed (...args);\n};\nexport var input = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.input (...args);\n};\nexport var createDiv = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createDiv (...args);\n};\nexport var createP = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createP (...args);\n};\nexport var createSpan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSpan (...args);\n};\nexport var createImg = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImg (...args);\n};\nexport var createA = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createA (...args);\n};\nexport var createSlider = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSlider (...args);\n};\nexport var createButton = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createButton (...args);\n};\nexport var createCheckbox = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCheckbox (...args);\n};\nexport var createSelect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSelect (...args);\n};\nexport var createRadio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createRadio (...args);\n};\nexport var createColorPicker = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createColorPicker (...args);\n};\nexport var createInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createInput (...args);\n};\nexport var createFileInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createFileInput (...args);\n};\nexport var createVideo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVideo (...args);\n};\nexport var createAudio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createAudio (...args);\n};\nexport var createCapture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCapture (...args);\n};\nexport var createElement = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createElement (...args);\n};\nexport var createCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar canvas = _P5_INSTANCE.createCanvas (...args);\n\twidth = _P5_INSTANCE.width;\n\theight = _P5_INSTANCE.height;\n\treturn canvas;\n};\nexport var py_pop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_pop = _P5_INSTANCE.pop (...args);\n\treturn p5_pop;\n};\nexport var size = createCanvas;\nexport var popMatrix = py_pop;\nexport var popStyle = py_pop;\nexport var pushMatrix = push;\nexport var pushStyle = push;\nexport var PVector = function (x, y, z) {\n\tif (typeof x == 'undefined' || (x != null && x.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar x = 0;\n\t};\n\tif (typeof y == 'undefined' || (y != null && y.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar y = 0;\n\t};\n\tif (typeof z == 'undefined' || (z != null && z.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar z = 0;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'z': var z = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn _P5_INSTANCE.createVector (x, y, z);\n};\nsetattr (PVector, 'dist', p5.Vector.dist);\nsetattr (PVector, 'add', p5.Vector.add);\nsetattr (PVector, 'sub', p5.Vector.sub);\nsetattr (PVector, 'mult', p5.Vector.mult);\nsetattr (PVector, 'div', p5.Vector.div);\nsetattr (PVector, 'dot', p5.Vector.dot);\nsetattr (PVector, 'cross', p5.Vector.cross);\nsetattr (PVector, 'lerp', p5.Vector.lerp);\nsetattr (PVector, 'random2D', p5.Vector.random2D);\nsetattr (PVector, 'random3D', p5.Vector.random3D);\nsetattr (PVector, 'angleBetween', p5.Vector.angleBetween);\nsetattr (PVector, 'fromAngle', p5.Vector.fromAngle);\nsetattr (PVector, 'fromAngles', p5.Vector.fromAngles);\nsetattr (PVector, 'equals', p5.Vector.equals);\nexport var pre_draw = function (p5_instance, draw_func) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_instance': var p5_instance = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t_CTX_MIDDLE = p5_instance._CTX_MIDDLE;\n\t_DEFAULT_FILL = p5_instance._DEFAULT_FILL;\n\t_DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT;\n\t_DEFAULT_STROKE = p5_instance._DEFAULT_STROKE;\n\t_DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL;\n\tADD = p5_instance.ADD;\n\tALT = p5_instance.ALT;\n\tARROW = p5_instance.ARROW;\n\tAUDIO = p5_instance.AUDIO;\n\tAUTO = p5_instance.AUTO;\n\tAXES = p5_instance.AXES;\n\tBACKSPACE = p5_instance.BACKSPACE;\n\tBASELINE = p5_instance.BASELINE;\n\tBEVEL = p5_instance.BEVEL;\n\tBEZIER = p5_instance.BEZIER;\n\tBLEND = p5_instance.BLEND;\n\tBLUR = p5_instance.BLUR;\n\tBOLD = p5_instance.BOLD;\n\tBOLDITALIC = p5_instance.BOLDITALIC;\n\tBOTTOM = p5_instance.BOTTOM;\n\tBURN = p5_instance.BURN;\n\tCENTER = p5_instance.CENTER;\n\tCHORD = p5_instance.CHORD;\n\tCLAMP = p5_instance.CLAMP;\n\tCLOSE = p5_instance.CLOSE;\n\tCONTROL = p5_instance.CONTROL;\n\tCORNER = p5_instance.CORNER;\n\tCORNERS = p5_instance.CORNERS;\n\tCROSS = p5_instance.CROSS;\n\tCURVE = p5_instance.CURVE;\n\tDARKEST = p5_instance.DARKEST;\n\tDEG_TO_RAD = p5_instance.DEG_TO_RAD;\n\tDEGREES = p5_instance.DEGREES;\n\tDELETE = p5_instance.DELETE;\n\tDIFFERENCE = p5_instance.DIFFERENCE;\n\tDILATE = p5_instance.DILATE;\n\tDODGE = p5_instance.DODGE;\n\tDOWN_ARROW = p5_instance.DOWN_ARROW;\n\tENTER = p5_instance.ENTER;\n\tERODE = p5_instance.ERODE;\n\tESCAPE = p5_instance.ESCAPE;\n\tEXCLUSION = p5_instance.EXCLUSION;\n\tFILL = p5_instance.FILL;\n\tGRAY = p5_instance.GRAY;\n\tGRID = p5_instance.GRID;\n\tHALF_PI = p5_instance.HALF_PI;\n\tHAND = p5_instance.HAND;\n\tHARD_LIGHT = p5_instance.HARD_LIGHT;\n\tHSB = p5_instance.HSB;\n\tHSL = p5_instance.HSL;\n\tIMAGE = p5_instance.IMAGE;\n\tIMMEDIATE = p5_instance.IMMEDIATE;\n\tINVERT = p5_instance.INVERT;\n\tITALIC = p5_instance.ITALIC;\n\tLANDSCAPE = p5_instance.LANDSCAPE;\n\tLEFT = p5_instance.LEFT;\n\tLEFT_ARROW = p5_instance.LEFT_ARROW;\n\tLIGHTEST = p5_instance.LIGHTEST;\n\tLINE_LOOP = p5_instance.LINE_LOOP;\n\tLINE_STRIP = p5_instance.LINE_STRIP;\n\tLINEAR = p5_instance.LINEAR;\n\tLINES = p5_instance.LINES;\n\tMIRROR = p5_instance.MIRROR;\n\tMITER = p5_instance.MITER;\n\tMOVE = p5_instance.MOVE;\n\tMULTIPLY = p5_instance.MULTIPLY;\n\tNEAREST = p5_instance.NEAREST;\n\tNORMAL = p5_instance.NORMAL;\n\tOPAQUE = p5_instance.OPAQUE;\n\tOPEN = p5_instance.OPEN;\n\tOPTION = p5_instance.OPTION;\n\tOVERLAY = p5_instance.OVERLAY;\n\tP2D = p5_instance.P2D;\n\tvar P3D = p5_instance.WEBGL;\n\tPI = p5_instance.PI;\n\tPIE = p5_instance.PIE;\n\tPOINTS = p5_instance.POINTS;\n\tPORTRAIT = p5_instance.PORTRAIT;\n\tPOSTERIZE = p5_instance.POSTERIZE;\n\tPROJECT = p5_instance.PROJECT;\n\tQUAD_STRIP = p5_instance.QUAD_STRIP;\n\tQUADRATIC = p5_instance.QUADRATIC;\n\tQUADS = p5_instance.QUADS;\n\tQUARTER_PI = p5_instance.QUARTER_PI;\n\tRAD_TO_DEG = p5_instance.RAD_TO_DEG;\n\tRADIANS = p5_instance.RADIANS;\n\tRADIUS = p5_instance.RADIUS;\n\tREPEAT = p5_instance.REPEAT;\n\tREPLACE = p5_instance.REPLACE;\n\tRETURN = p5_instance.RETURN;\n\tRGB = p5_instance.RGB;\n\tRIGHT = p5_instance.RIGHT;\n\tRIGHT_ARROW = p5_instance.RIGHT_ARROW;\n\tROUND = p5_instance.ROUND;\n\tSCREEN = p5_instance.SCREEN;\n\tSHIFT = p5_instance.SHIFT;\n\tSOFT_LIGHT = p5_instance.SOFT_LIGHT;\n\tSQUARE = p5_instance.SQUARE;\n\tSTROKE = p5_instance.STROKE;\n\tSUBTRACT = p5_instance.SUBTRACT;\n\tTAB = p5_instance.TAB;\n\tTAU = p5_instance.TAU;\n\tTEXT = p5_instance.TEXT;\n\tTEXTURE = p5_instance.TEXTURE;\n\tTHRESHOLD = p5_instance.THRESHOLD;\n\tTOP = p5_instance.TOP;\n\tTRIANGLE_FAN = p5_instance.TRIANGLE_FAN;\n\tTRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP;\n\tTRIANGLES = p5_instance.TRIANGLES;\n\tTWO_PI = p5_instance.TWO_PI;\n\tUP_ARROW = p5_instance.UP_ARROW;\n\tVIDEO = p5_instance.VIDEO;\n\tWAIT = p5_instance.WAIT;\n\tWEBGL = p5_instance.WEBGL;\n\tframeCount = p5_instance.frameCount;\n\tfocused = p5_instance.focused;\n\tdisplayWidth = p5_instance.displayWidth;\n\tdisplayHeight = p5_instance.displayHeight;\n\twindowWidth = p5_instance.windowWidth;\n\twindowHeight = p5_instance.windowHeight;\n\twidth = p5_instance.width;\n\theight = p5_instance.height;\n\tdisableFriendlyErrors = p5_instance.disableFriendlyErrors;\n\tdeviceOrientation = p5_instance.deviceOrientation;\n\taccelerationX = p5_instance.accelerationX;\n\taccelerationY = p5_instance.accelerationY;\n\taccelerationZ = p5_instance.accelerationZ;\n\tpAccelerationX = p5_instance.pAccelerationX;\n\tpAccelerationY = p5_instance.pAccelerationY;\n\tpAccelerationZ = p5_instance.pAccelerationZ;\n\trotationX = p5_instance.rotationX;\n\trotationY = p5_instance.rotationY;\n\trotationZ = p5_instance.rotationZ;\n\tpRotationX = p5_instance.pRotationX;\n\tpRotationY = p5_instance.pRotationY;\n\tpRotationZ = p5_instance.pRotationZ;\n\tturnAxis = p5_instance.turnAxis;\n\tkeyIsPressed = p5_instance.keyIsPressed;\n\tkey = p5_instance.key;\n\tkeyCode = p5_instance.keyCode;\n\tmouseX = p5_instance.mouseX;\n\tmouseY = p5_instance.mouseY;\n\tpmouseX = p5_instance.pmouseX;\n\tpmouseY = p5_instance.pmouseY;\n\twinMouseX = p5_instance.winMouseX;\n\twinMouseY = p5_instance.winMouseY;\n\tpwinMouseX = p5_instance.pwinMouseX;\n\tpwinMouseY = p5_instance.pwinMouseY;\n\tmouseButton = p5_instance.mouseButton;\n\tmouseIsPressed = p5_instance.mouseIsPressed;\n\ttouches = p5_instance.touches;\n\tpixels = p5_instance.pixels;\n\treturn draw_func ();\n};\nexport var global_p5_injection = function (p5_sketch) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar decorator = function (f) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'f': var f = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar wrapper = function () {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\t_P5_INSTANCE = p5_sketch;\n\t\t\treturn pre_draw (_P5_INSTANCE, f);\n\t\t};\n\t\treturn wrapper;\n\t};\n\treturn decorator;\n};\nexport var start_p5 = function (preload_func, setup_func, draw_func, event_functions) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'preload_func': var preload_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'setup_func': var setup_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'event_functions': var event_functions = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar sketch_setup = function (p5_sketch) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tp5_sketch.preload = global_p5_injection (p5_sketch) (preload_func);\n\t\tp5_sketch.setup = global_p5_injection (p5_sketch) (setup_func);\n\t\tp5_sketch.draw = global_p5_injection (p5_sketch) (draw_func);\n\t};\n\tvar instance = new p5 (sketch_setup, 'sketch-holder');\n\tvar event_function_names = tuple (['deviceMoved', 'deviceTurned', 'deviceShaken', 'windowResized', 'keyPressed', 'keyReleased', 'keyTyped', 'mousePressed', 'mouseReleased', 'mouseClicked', 'doubleClicked', 'mouseMoved', 'mouseDragged', 'mouseWheel', 'touchStarted', 'touchMoved', 'touchEnded', 'keyIsDown']);\n\tfor (var f_name of (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var f of event_function_names) {\n\t\t\tif (event_functions.py_get (f, null)) {\n\t\t\t\t__accu0__.append (f);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ()) {\n\t\tvar func = event_functions [f_name];\n\t\tvar event_func = global_p5_injection (instance) (func);\n\t\tsetattr (instance, f_name, event_func);\n\t}\n};\nexport var logOnloaded = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tconsole.log ('Lib loaded!');\n};\nexport var add_library = function (lib_name) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'lib_name': var lib_name = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar src = '';\n\treturn console.log ('Lib name is not valid:', lib_name);\n\tconsole.log ('Importing:', src);\n\tvar script = document.createElement ('script');\n\tscript.onload = logOnloaded;\n\tscript.src = src;\n\tdocument.head.appendChild (script);\n};\n\n//# sourceMappingURL=pyp5js.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_002/target/pyp5js.py",
    "content": "from python_functions import PythonFunctions\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndisableFriendlyErrors = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    __pragma__('noalias', 'clear')\n    p5_clear = _P5_INSTANCE.clear(*args)\n    __pragma__('alias', 'clear', 'py_clear')\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef preload(*args):\n    return _P5_INSTANCE.preload(*args)\n\ndef setup(*args):\n    return _P5_INSTANCE.setup(*args)\n\ndef draw(*args):\n    return _P5_INSTANCE.draw(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\n\ndef image_proxy(img):\n    \"\"\"\n    Proxy to turn of transcypt when calling img.get/set methods\n    \"\"\"\n\n    def _set(*args):\n        __pragma__('noalias', 'set')\n        value = img.set(*args)\n        __pragma__('alias', 'set', 'py_set')\n        return value\n\n    def _get(*args):\n        __pragma__('noalias', 'get')\n        value = img.get(*args)\n        __pragma__('alias', 'get', 'py_get')\n        return value\n\n    img.set = _set\n    img.get = _get\n    return img\n\n\ndef loadImage(*args):\n    imageObj = _P5_INSTANCE.loadImage(*args)\n    return image_proxy(imageObj)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    __pragma__('noalias', 'get')\n    p5_get = _P5_INSTANCE.get(*args)\n    __pragma__('alias', 'get', 'py_get')\n    return p5_get\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\n\ndef pop(*args):\n    __pragma__('noalias', 'pop')\n    p5_pop = _P5_INSTANCE.pop(*args)\n    __pragma__('alias', 'pop', 'py_pop')\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a helper/alias to create p5.Vector objects\ndef PVector(x=0, y=0, z=0):\n    return _P5_INSTANCE.createVector(x, y, z)\n# aliases  for p5.Vector class methods\nsetattr(PVector, 'dist', p5.Vector.dist)\nsetattr(PVector, 'add', p5.Vector.add)\nsetattr(PVector, 'sub', p5.Vector.sub)\nsetattr(PVector, 'mult', p5.Vector.mult)\nsetattr(PVector, 'div', p5.Vector.div)\nsetattr(PVector, 'dot', p5.Vector.dot)\nsetattr(PVector, 'cross', p5.Vector.cross)\nsetattr(PVector, 'lerp', p5.Vector.lerp)\nsetattr(PVector, 'random2D', p5.Vector.random2D)\nsetattr(PVector, 'random3D', p5.Vector.random3D)\nsetattr(PVector, 'angleBetween', p5.Vector.angleBetween)\nsetattr(PVector, 'fromAngle', p5.Vector.fromAngle)\nsetattr(PVector, 'fromAngles', p5.Vector.fromAngles)\nsetattr(PVector, 'equals', p5.Vector.equals)\n\ndef pre_draw(p5_instance, draw_func):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP, QUADRATIC\n    global QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global disableFriendlyErrors, deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    disableFriendlyErrors = p5_instance.disableFriendlyErrors\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func()\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f):\n        def wrapper():\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: a Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    instance = __new__(p5(sketch_setup, 'sketch-holder'))\n\n    # inject event functions into p5\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\"\n    )\n\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(instance)(func)\n        setattr(instance, f_name, event_func)\n\n\ndef logOnloaded():\n    console.log(\"Lib loaded!\")\n\n\ndef add_library(lib_name):\n    # placeholder for https://github.com/berinhard/pyp5js/issues/31\n    src = ''\n\n    return console.log(\"Lib name is not valid:\", lib_name)\n\n    console.log(\"Importing:\", src)\n\n    script = document.createElement(\"script\")\n    script.onload = logOnloaded\n    script.src = src\n    document.head.appendChild(script)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_002/target/python_functions.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:10\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, pow, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nvar __name__ = 'python_functions';\nexport var PythonFunctions =  __class__ ('PythonFunctions', [object], {\n\t__module__: __name__,\n});\nsetattr (PythonFunctions, 'map', map);\nsetattr (PythonFunctions, 'filter', filter);\nsetattr (PythonFunctions, 'set', set);\n\n//# sourceMappingURL=python_functions.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_002/target/python_functions.py",
    "content": "class PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_002/target/target_sketch.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:10\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, set, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {ADD, ALT, ARROW, AUDIO, AUTO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC, BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST, DEGREES, DEG_TO_RAD, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION, FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE, LEFT, LEFT_ARROW, LIGHTEST, LINEAR, LINES, LINE_LOOP, LINE_STRIP, MIRROR, MITER, MOVE, MULTIPLY, NEAREST, NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, PVector, QUADRATIC, QUADS, QUAD_STRIP, QUARTER_PI, RADIANS, RADIUS, RAD_TO_DEG, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW, ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL, _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL, _P5_INSTANCE, abs, accelerationX, accelerationY, accelerationZ, acos, add_library, alpha, ambientLight, ambientMaterial, angleMode, append, applyMatrix, arc, arrayCopy, asin, atan, atan2, background, beginContour, beginShape, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, blend, blendMode, blue, boolean, box, brightness, byte, camera, ceil, changed, char, circle, color, colorMode, concat, cone, constrain, copy, cos, createA, createAudio, createButton, createCamera, createCanvas, createCapture, createCheckbox, createColorPicker, createDiv, createElement, createFileInput, createGraphics, createImage, createImg, createInput, createNumberDict, createP, createRadio, createSelect, createShader, createSlider, createSpan, createStringDict, createVector, createVideo, createWriter, cursor, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, cylinder, day, debugMode, degrees, deviceOrientation, directionalLight, disableFriendlyErrors, displayDensity, displayHeight, displayWidth, dist, ellipse, ellipseMode, ellipsoid, endContour, endShape, erase, exp, fill, filter, float, floor, focused, frameCount, frameRate, fullscreen, getURL, getURLParams, getURLPath, global_p5_injection, green, height, hex, hour, httpDo, httpGet, httpPost, hue, image, imageMode, image_proxy, input, int, join, key, keyCode, keyIsPressed, lerp, lerpColor, lightness, lights, line, loadBytes, loadFont, loadImage, loadJSON, loadModel, loadPixels, loadShader, loadStrings, loadTable, loadXML, log, logOnloaded, loop, mag, map, match, matchAll, max, millis, min, minute, model, month, mouseButton, mouseIsPressed, mouseX, mouseY, nf, nfc, nfp, nfs, noCanvas, noCursor, noDebugMode, noErase, noFill, noLoop, noSmooth, noStroke, noTint, noise, noiseDetail, noiseSeed, norm, normalMaterial, orbitControl, ortho, pAccelerationX, pAccelerationY, pAccelerationZ, pRotationX, pRotationY, pRotationZ, perspective, pixelDensity, pixels, plane, pmouseX, pmouseY, point, pointLight, popMatrix, popStyle, pow, pre_draw, push, pushMatrix, pushStyle, pwinMouseX, pwinMouseY, py_clear, py_get, py_pop, py_set, py_sort, py_split, quad, quadraticVertex, radians, random, randomGaussian, randomSeed, rect, rectMode, red, redraw, remove, removeElements, resetMatrix, resetShader, resizeCanvas, reverse, rotate, rotateX, rotateY, rotateZ, rotationX, rotationY, rotationZ, round, saturation, save, saveCanvas, saveFrames, saveJSON, saveStrings, saveTable, scale, second, select, selectAll, setAttributes, setCamera, setMoveThreshold, setShakeThreshold, shader, shearX, shearY, shininess, shorten, shuffle, sin, size, smooth, specularMaterial, sphere, splice, splitTokens, sq, sqrt, square, start_p5, str, stroke, strokeCap, strokeJoin, strokeWeight, subset, tan, text, textAlign, textAscent, textDescent, textFont, textLeading, textSize, textStyle, textWidth, texture, textureMode, textureWrap, tint, torus, touches, translate, triangle, trim, turnAxis, unchar, unhex, updatePixels, vertex, width, winMouseX, winMouseY, windowHeight, windowWidth, year} from './pyp5js.js';\nvar __name__ = '__main__';\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var deviceMoved = null;\nexport var deviceTurned = null;\nexport var deviceShaken = null;\nexport var keyPressed = null;\nexport var keyReleased = null;\nexport var keyTyped = null;\nexport var mouseMoved = null;\nexport var mouseDragged = null;\nexport var mousePressed = null;\nexport var mouseReleased = null;\nexport var mouseClicked = null;\nexport var doubleClicked = null;\nexport var mouseWheel = null;\nexport var touchStarted = null;\nexport var touchMoved = null;\nexport var touchEnded = null;\nexport var windowResized = null;\nexport var keyIsDown = null;\nvar setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tcreateCanvas (640, 360, _P5_INSTANCE.WEBGL);\n\tfill (204);\n};\nvar draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tambientLight (50);\n\tdirectionalLight (255, 0, 0, 0.25, 0.25, 0);\n\tbackground (0);\n\tcamera (30.0, mouseY, 220.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);\n\tnoStroke ();\n\tbox (90);\n\tstroke (255);\n\tline (-(100), 0, 0, 100, 0, 0);\n\tline (0, -(100), 0, 0, 100, 0);\n\tline (0, 0, -(100), 0, 0, 100);\n};\nexport var event_functions = dict ({'deviceMoved': deviceMoved, 'deviceTurned': deviceTurned, 'deviceShaken': deviceShaken, 'keyPressed': keyPressed, 'keyReleased': keyReleased, 'keyTyped': keyTyped, 'mouseMoved': mouseMoved, 'mouseDragged': mouseDragged, 'mousePressed': mousePressed, 'mouseReleased': mouseReleased, 'mouseClicked': mouseClicked, 'doubleClicked': doubleClicked, 'mouseWheel': mouseWheel, 'touchStarted': touchStarted, 'touchMoved': touchMoved, 'touchEnded': touchEnded, 'windowResized': windowResized, 'keyIsDown': keyIsDown});\nstart_p5 (preload, setup, draw, event_functions);\n\n//# sourceMappingURL=target_sketch.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_002/target/target_sketch.project",
    "content": "{\"options\": {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_002/target_sketch.py\", \"anno\": false, \"alimod\": false, \"build\": true, \"complex\": false, \"docat\": false, \"dassert\": false, \"dcheck\": false, \"dextex\": false, \"dlog\": false, \"dmap\": false, \"dnostrip\": false, \"dstat\": false, \"dtree\": false, \"esv\": null, \"ecom\": false, \"fcall\": false, \"gen\": false, \"iconv\": false, \"jscall\": false, \"jskeys\": false, \"jsmod\": false, \"kwargs\": true, \"keycheck\": false, \"license\": false, \"map\": true, \"nomin\": true, \"opov\": false, \"outdir\": null, \"parent\": null, \"run\": false, \"symbols\": null, \"sform\": false, \"tconv\": false, \"unit\": null, \"verbose\": false, \"x\": null, \"xreex\": false, \"xglobs\": false, \"xpath\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt\", \"xtiny\": false, \"star\": false}, \"modules\": [{\"source\": \"/home/bernardo/.pyenv/versions/pyp5js/lib/python3.8/site-packages/transcrypt/modules/org/transcrypt/__runtime__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_002/__target__/org.transcrypt.__runtime__.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_002/target_sketch.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_002/__target__/target_sketch.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/pyp5js.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_002/__target__/pyp5js.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/python_functions.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_002/__target__/python_functions.js\"}]}"
  },
  {
    "path": "docs/examples/transcrypt/sketch_002/target/target_sketch.py",
    "content": "from pyp5js import *\n\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\nkeyIsDown = None\n\n\n\"\"\"\n * Move Eye.\n * by Simon Greenwold.\n *\n * The camera lifts up (controlled by mouseY) while looking at the same point.\n \"\"\"\n\ndef setup():\n    createCanvas(640, 360, _P5_INSTANCE.WEBGL)\n    fill(204)\n\n\ndef draw():\n    ambientLight(50)\n    directionalLight(255, 0, 0, 0.25, 0.25, 0);\n    background(0)\n\n    # Change height of the camera with mouseY\n    camera(30.0, mouseY, 220.0,  # eyeX, eyeY, eyeZ\n           0.0, 0.0, 0.0,        # centerX, centerY, centerZ\n           0.0, 1.0, 0.0)        # upX, upY, upZ\n\n    noStroke()\n    box(90)\n    stroke(255)\n    line(-100, 0, 0, 100, 0, 0)\n    line(0, -100, 0, 0, 100, 0)\n    line(0, 0, -100, 0, 0, 100)\n\n\n\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n    \"keyIsDown\": keyIsDown,\n}\n\nstart_p5(preload, setup, draw, event_functions)"
  },
  {
    "path": "docs/examples/transcrypt/sketch_003/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_003 - pyp5js (using Transcrypt)</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/transcrypt/sketch_003\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre>\n             <code>\n# 3d example\n\n\ndef setup():\n    createCanvas(600, 600, WEBGL)\n\ndef draw():\n    background(200)\n    translate(-100, -100, 0)\n    push()\n    normalMaterial()\n    rotateZ(frameCount * 0.01)\n    rotateX(frameCount * 0.01)\n    rotateY(frameCount * 0.01)\n    box(50, 70, 100)\n    pop()\n\n              </code>\n          </pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/transcrypt/sketch_003/sketch_003.py",
    "content": "# 3d example\n\n\ndef setup():\n    createCanvas(600, 600, WEBGL)\n\ndef draw():\n    background(200)\n    translate(-100, -100, 0)\n    push()\n    normalMaterial()\n    rotateZ(frameCount * 0.01)\n    rotateX(frameCount * 0.01)\n    rotateY(frameCount * 0.01)\n    box(50, 70, 100)\n    pop()\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_003/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/transcrypt/sketch_003/target/org.transcrypt.__runtime__.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:11\nvar __name__ = 'org.transcrypt.__runtime__';\nexport var __envir__ = {};\n__envir__.interpreter_name = 'python';\n__envir__.transpiler_name = 'transcrypt';\n__envir__.executor_name = __envir__.transpiler_name;\n__envir__.transpiler_version = '3.9.0';\n\nexport function __nest__ (headObject, tailNames, value) {\n    var current = headObject;\n    if (tailNames != '') {\n        var tailChain = tailNames.split ('.');\n        var firstNewIndex = tailChain.length;\n        for (var index = 0; index < tailChain.length; index++) {\n            if (!current.hasOwnProperty (tailChain [index])) {\n                firstNewIndex = index;\n                break;\n            }\n            current = current [tailChain [index]];\n        }\n        for (var index = firstNewIndex; index < tailChain.length; index++) {\n            current [tailChain [index]] = {};\n            current = current [tailChain [index]];\n        }\n    }\n    for (let attrib of Object.getOwnPropertyNames (value)) {\n        Object.defineProperty (current, attrib, {\n            get () {return value [attrib];},\n            enumerable: true,\n            configurable: true\n        });\n    }\n};\nexport function __init__ (module) {\n    if (!module.__inited__) {\n        module.__all__.__init__ (module.__all__);\n        module.__inited__ = true;\n    }\n    return module.__all__;\n};\nexport function __get__ (aThis, func, quotedFuncName) {\n    if (aThis) {\n        if (aThis.hasOwnProperty ('__class__') || typeof aThis == 'string' || aThis instanceof String) {\n            if (quotedFuncName) {\n                Object.defineProperty (aThis, quotedFuncName, {\n                    value: function () {\n                        var args = [] .slice.apply (arguments);\n                        return func.apply (null, [aThis] .concat (args));\n                    },\n                    writable: true,\n                    enumerable: true,\n                    configurable: true\n                });\n            }\n            return function () {\n                var args = [] .slice.apply (arguments);\n                return func.apply (null, [aThis.__proxy__ ? aThis.__proxy__ : aThis] .concat (args));\n            };\n        }\n        else {\n            return func;\n        }\n    }\n    else {\n        return func;\n    }\n};\nexport function __getcm__ (aThis, func, quotedFuncName) {\n    if (aThis.hasOwnProperty ('__class__')) {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis.__class__] .concat (args));\n        };\n    }\n    else {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis] .concat (args));\n        };\n    }\n};\nexport function __getsm__ (aThis, func, quotedFuncName) {\n    return func;\n};\nexport var py_metatype = {\n    __name__: 'type',\n    __bases__: [],\n    __new__: function (meta, name, bases, attribs) {\n        var cls = function () {\n            var args = [] .slice.apply (arguments);\n            return cls.__new__ (args);\n        };\n        for (var index = bases.length - 1; index >= 0; index--) {\n            var base = bases [index];\n            for (var attrib in base) {\n                var descrip = Object.getOwnPropertyDescriptor (base, attrib);\n                if (descrip == null) {\n                    continue;\n                }\n                Object.defineProperty (cls, attrib, descrip);\n            }\n            for (let symbol of Object.getOwnPropertySymbols (base)) {\n                let descrip = Object.getOwnPropertyDescriptor (base, symbol);\n                Object.defineProperty (cls, symbol, descrip);\n            }\n        }\n        cls.__metaclass__ = meta;\n        cls.__name__ = name.startsWith ('py_') ? name.slice (3) : name;\n        cls.__bases__ = bases;\n        for (var attrib in attribs) {\n            var descrip = Object.getOwnPropertyDescriptor (attribs, attrib);\n            Object.defineProperty (cls, attrib, descrip);\n        }\n        for (let symbol of Object.getOwnPropertySymbols (attribs)) {\n            let descrip = Object.getOwnPropertyDescriptor (attribs, symbol);\n            Object.defineProperty (cls, symbol, descrip);\n        }\n        return cls;\n    }\n};\npy_metatype.__metaclass__ = py_metatype;\nexport var object = {\n    __init__: function (self) {},\n    __metaclass__: py_metatype,\n    __name__: 'object',\n    __bases__: [],\n    __new__: function (args) {\n        var instance = Object.create (this, {__class__: {value: this, enumerable: true}});\n        if ('__getattr__' in this || '__setattr__' in this) {\n            instance.__proxy__ = new Proxy (instance, {\n                get: function (target, name) {\n                    let result = target [name];\n                    if (result == undefined) {\n                        return target.__getattr__ (name);\n                    }\n                    else {\n                        return result;\n                    }\n                },\n                set: function (target, name, value) {\n                    try {\n                        target.__setattr__ (name, value);\n                    }\n                    catch (exception) {\n                        target [name] = value;\n                    }\n                    return true;\n                }\n            })\n\t\t\tinstance = instance.__proxy__\n        }\n        this.__init__.apply (null, [instance] .concat (args));\n        return instance;\n    }\n};\nexport function __class__ (name, bases, attribs, meta) {\n    if (meta === undefined) {\n        meta = bases [0] .__metaclass__;\n    }\n    return meta.__new__ (meta, name, bases, attribs);\n};\nexport function __pragma__ () {};\nexport function __call__ (/* <callee>, <this>, <params>* */) {\n    var args = [] .slice.apply (arguments);\n    if (typeof args [0] == 'object' && '__call__' in args [0]) {\n        return args [0] .__call__ .apply (args [1], args.slice (2));\n    }\n    else {\n        return args [0] .apply (args [1], args.slice (2));\n    }\n};\n__envir__.executor_name = __envir__.transpiler_name;\nvar __main__ = {__file__: ''};\nvar __except__ = null;\nexport function __kwargtrans__ (anObject) {\n    anObject.__kwargtrans__ = null;\n    anObject.constructor = Object;\n    return anObject;\n}\nexport function __super__ (aClass, methodName) {\n    for (let base of aClass.__bases__) {\n        if (methodName in base) {\n           return base [methodName];\n        }\n    }\n    throw new Exception ('Superclass method not found');\n}\nexport function property (getter, setter) {\n    if (!setter) {\n        setter = function () {};\n    }\n    return {get: function () {return getter (this)}, set: function (value) {setter (this, value)}, enumerable: true};\n}\nexport function __setproperty__ (anObject, name, descriptor) {\n    if (!anObject.hasOwnProperty (name)) {\n        Object.defineProperty (anObject, name, descriptor);\n    }\n}\nexport function assert (condition, message) {\n    if (!condition) {\n        throw AssertionError (message, new Error ());\n    }\n}\nexport function __mergekwargtrans__ (object0, object1) {\n    var result = {};\n    for (var attrib in object0) {\n        result [attrib] = object0 [attrib];\n    }\n    for (var attrib in object1) {\n        result [attrib] = object1 [attrib];\n    }\n    return result;\n};\nexport function __mergefields__ (targetClass, sourceClass) {\n    let fieldNames = ['__reprfields__', '__comparefields__', '__initfields__']\n    if (sourceClass [fieldNames [0]]) {\n        if (targetClass [fieldNames [0]]) {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set ([...targetClass [fieldName], ...sourceClass [fieldName]]);\n            }\n        }\n        else {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set (sourceClass [fieldName]);\n            }\n        }\n    }\n}\nexport function __withblock__ (manager, statements) {\n    if (hasattr (manager, '__enter__')) {\n        try {\n            manager.__enter__ ();\n            statements ();\n            manager.__exit__ ();\n        }\n        catch (exception) {\n            if (! (manager.__exit__ (exception.name, exception, exception.stack))) {\n                throw exception;\n            }\n        }\n    }\n    else {\n        statements ();\n        manager.close ();\n    }\n};\nexport function dir (obj) {\n    var aList = [];\n    for (var aKey in obj) {\n        aList.push (aKey.startsWith ('py_') ? aKey.slice (3) : aKey);\n    }\n    aList.sort ();\n    return aList;\n};\nexport function setattr (obj, name, value) {\n    obj [name] = value;\n};\nexport function getattr (obj, name) {\n    return name in obj ? obj [name] : obj ['py_' + name];\n};\nexport function hasattr (obj, name) {\n    try {\n        return name in obj || 'py_' + name in obj;\n    }\n    catch (exception) {\n        return false;\n    }\n};\nexport function delattr (obj, name) {\n    if (name in obj) {\n        delete obj [name];\n    }\n    else {\n        delete obj ['py_' + name];\n    }\n};\nexport function __in__ (element, container) {\n    if (container === undefined || container === null) {\n        return false;\n    }\n    if (container.__contains__ instanceof Function) {\n        return container.__contains__ (element);\n    }\n    else {\n        return (\n            container.indexOf ?\n            container.indexOf (element) > -1 :\n            container.hasOwnProperty (element)\n        );\n    }\n};\nexport function __specialattrib__ (attrib) {\n    return (attrib.startswith ('__') && attrib.endswith ('__')) || attrib == 'constructor' || attrib.startswith ('py_');\n};\nexport function len (anObject) {\n    if (anObject === undefined || anObject === null) {\n        return 0;\n    }\n    if (anObject.__len__ instanceof Function) {\n        return anObject.__len__ ();\n    }\n    if (anObject.length !== undefined) {\n        return anObject.length;\n    }\n    var length = 0;\n    for (var attr in anObject) {\n        if (!__specialattrib__ (attr)) {\n            length++;\n        }\n    }\n    return length;\n};\nexport function __i__ (any) {\n    return py_typeof (any) == dict ? any.py_keys () : any;\n}\nexport function __k__ (keyed, key) {\n    var result = keyed [key];\n    if (typeof result == 'undefined') {\n        if (keyed instanceof Array)\n            if (key == +key && key >= 0 && keyed.length > key)\n                return result;\n            else\n                throw IndexError (key, new Error());\n        else\n            throw KeyError (key, new Error());\n    }\n    return result;\n}\nexport function __t__ (target) {\n    return (\n        target === undefined || target === null ? false :\n        ['boolean', 'number'] .indexOf (typeof target) >= 0 ? target :\n        target.__bool__ instanceof Function ? (target.__bool__ () ? target : false) :\n        target.__len__ instanceof Function ?  (target.__len__ () !== 0 ? target : false) :\n        target instanceof Function ? target :\n        len (target) !== 0 ? target :\n        false\n    );\n}\nexport function float (any) {\n    if (any == 'inf') {\n        return Infinity;\n    }\n    else if (any == '-inf') {\n        return -Infinity;\n    }\n    else if (any == 'nan') {\n        return NaN;\n    }\n    else if (isNaN (parseFloat (any))) {\n        if (any === false) {\n            return 0;\n        }\n        else if (any === true) {\n            return 1;\n        }\n        else {\n            throw ValueError (\"could not convert string to float: '\" + str(any) + \"'\", new Error ());\n        }\n    }\n    else {\n        return +any;\n    }\n};\nfloat.__name__ = 'float';\nfloat.__bases__ = [object];\nexport function int (any) {\n    return float (any) | 0\n};\nint.__name__ = 'int';\nint.__bases__ = [object];\nexport function bool (any) {\n    return !!__t__ (any);\n};\nbool.__name__ = 'bool';\nbool.__bases__ = [int];\nexport function py_typeof (anObject) {\n    var aType = typeof anObject;\n    if (aType == 'object') {\n        try {\n            return '__class__' in anObject ? anObject.__class__ : object;\n        }\n        catch (exception) {\n            return aType;\n        }\n    }\n    else {\n        return (\n            aType == 'boolean' ? bool :\n            aType == 'string' ? str :\n            aType == 'number' ? (anObject % 1 == 0 ? int : float) :\n            null\n        );\n    }\n};\nexport function issubclass (aClass, classinfo) {\n    if (classinfo instanceof Array) {\n        for (let aClass2 of classinfo) {\n            if (issubclass (aClass, aClass2)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    try {\n        var aClass2 = aClass;\n        if (aClass2 == classinfo) {\n            return true;\n        }\n        else {\n            var bases = [].slice.call (aClass2.__bases__);\n            while (bases.length) {\n                aClass2 = bases.shift ();\n                if (aClass2 == classinfo) {\n                    return true;\n                }\n                if (aClass2.__bases__.length) {\n                    bases = [].slice.call (aClass2.__bases__).concat (bases);\n                }\n            }\n            return false;\n        }\n    }\n    catch (exception) {\n        return aClass == classinfo || classinfo == object;\n    }\n};\nexport function isinstance (anObject, classinfo) {\n    try {\n        return '__class__' in anObject ? issubclass (anObject.__class__, classinfo) : issubclass (py_typeof (anObject), classinfo);\n    }\n    catch (exception) {\n        return issubclass (py_typeof (anObject), classinfo);\n    }\n};\nexport function callable (anObject) {\n    return anObject && typeof anObject == 'object' && '__call__' in anObject ? true : typeof anObject === 'function';\n};\nexport function repr (anObject) {\n    try {\n        return anObject.__repr__ ();\n    }\n    catch (exception) {\n        try {\n            return anObject.__str__ ();\n        }\n        catch (exception) {\n            try {\n                if (anObject == null) {\n                    return 'None';\n                }\n                else if (anObject.constructor == Object) {\n                    var result = '{';\n                    var comma = false;\n                    for (var attrib in anObject) {\n                        if (!__specialattrib__ (attrib)) {\n                            if (attrib.isnumeric ()) {\n                                var attribRepr = attrib;\n                            }\n                            else {\n                                var attribRepr = '\\'' + attrib + '\\'';\n                            }\n                            if (comma) {\n                                result += ', ';\n                            }\n                            else {\n                                comma = true;\n                            }\n                            result += attribRepr + ': ' + repr (anObject [attrib]);\n                        }\n                    }\n                    result += '}';\n                    return result;\n                }\n                else {\n                    return typeof anObject == 'boolean' ? anObject.toString () .capitalize () : anObject.toString ();\n                }\n            }\n            catch (exception) {\n                return '<object of type: ' + typeof anObject + '>';\n            }\n        }\n    }\n};\nexport function chr (charCode) {\n    return String.fromCharCode (charCode);\n};\nexport function ord (aChar) {\n    return aChar.charCodeAt (0);\n};\nexport function max (nrOrSeq) {\n    return arguments.length == 1 ? Math.max (...nrOrSeq) : Math.max (...arguments);\n};\nexport function min (nrOrSeq) {\n    return arguments.length == 1 ? Math.min (...nrOrSeq) : Math.min (...arguments);\n};\nexport var abs = Math.abs;\nexport function round (number, ndigits) {\n    if (ndigits) {\n        var scale = Math.pow (10, ndigits);\n        number *= scale;\n    }\n    var rounded = Math.round (number);\n    if (rounded - number == 0.5 && rounded % 2) {\n        rounded -= 1;\n    }\n    if (ndigits) {\n        rounded /= scale;\n    }\n    return rounded;\n};\nexport function __jsUsePyNext__ () {\n    try {\n        var result = this.__next__ ();\n        return {value: result, done: false};\n    }\n    catch (exception) {\n        return {value: undefined, done: true};\n    }\n}\nexport function __pyUseJsNext__ () {\n    var result = this.next ();\n    if (result.done) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result.value;\n    }\n}\nexport function py_iter (iterable) {\n    if (typeof iterable == 'string' || '__iter__' in iterable) {\n        var result = iterable.__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('selector' in iterable) {\n        var result = list (iterable) .__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('next' in iterable) {\n        var result = iterable\n        if (! ('__next__' in result)) {\n            result.__next__ = __pyUseJsNext__;\n        }\n    }\n    else if (Symbol.iterator in iterable) {\n        var result = iterable [Symbol.iterator] ();\n        result.__next__ = __pyUseJsNext__;\n    }\n    else {\n        throw IterableError (new Error ());\n    }\n    result [Symbol.iterator] = function () {return result;};\n    return result;\n}\nexport function py_next (iterator) {\n    try {\n        var result = iterator.__next__ ();\n    }\n    catch (exception) {\n        var result = iterator.next ();\n        if (result.done) {\n            throw StopIteration (new Error ());\n        }\n        else {\n            return result.value;\n        }\n    }\n    if (result == undefined) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result;\n    }\n}\nexport function __PyIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__PyIterator__.prototype.__next__ = function() {\n    if (this.index < this.iterable.length) {\n        return this.iterable [this.index++];\n    }\n    else {\n        throw StopIteration (new Error ());\n    }\n};\nexport function __JsIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__JsIterator__.prototype.next = function () {\n    if (this.index < this.iterable.py_keys.length) {\n        return {value: this.index++, done: false};\n    }\n    else {\n        return {value: undefined, done: true};\n    }\n};\nexport function py_reversed (iterable) {\n    iterable = iterable.slice ();\n    iterable.reverse ();\n    return iterable;\n};\nexport function zip () {\n    var args = [] .slice.call (arguments);\n    for (var i = 0; i < args.length; i++) {\n        if (typeof args [i] == 'string') {\n            args [i] = args [i] .split ('');\n        }\n        else if (!Array.isArray (args [i])) {\n            args [i] = Array.from (args [i]);\n        }\n    }\n    var shortest = args.length == 0 ? [] : args.reduce (\n        function (array0, array1) {\n            return array0.length < array1.length ? array0 : array1;\n        }\n    );\n    return shortest.map (\n        function (current, index) {\n            return args.map (\n                function (current) {\n                    return current [index];\n                }\n            );\n        }\n    );\n};\nexport function range (start, stop, step) {\n    if (stop == undefined) {\n        stop = start;\n        start = 0;\n    }\n    if (step == undefined) {\n        step = 1;\n    }\n    if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) {\n        return [];\n    }\n    var result = [];\n    for (var i = start; step > 0 ? i < stop : i > stop; i += step) {\n        result.push(i);\n    }\n    return result;\n};\nexport function any (iterable) {\n    for (let item of iterable) {\n        if (bool (item)) {\n            return true;\n        }\n    }\n    return false;\n}\nexport function all (iterable) {\n    for (let item of iterable) {\n        if (! bool (item)) {\n            return false;\n        }\n    }\n    return true;\n}\nexport function sum (iterable) {\n    let result = 0;\n    for (let item of iterable) {\n        result += item;\n    }\n    return result;\n}\nexport function enumerate (iterable) {\n    return zip (range (len (iterable)), iterable);\n}\nexport function copy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = anObject [attrib];\n            }\n        }\n        return result;\n    }\n}\nexport function deepcopy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = deepcopy (anObject [attrib]);\n            }\n        }\n        return result;\n    }\n}\nexport function list (iterable) {\n    let instance = iterable ? Array.from (iterable) : [];\n    return instance;\n}\nArray.prototype.__class__ = list;\nlist.__name__ = 'list';\nlist.__bases__ = [object];\nArray.prototype.__iter__ = function () {return new __PyIterator__ (this);};\nArray.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    else if (stop > this.length) {\n        stop = this.length;\n    }\n    if (step == 1) {\n        return Array.prototype.slice.call(this, start, stop);\n    }\n    let result = list ([]);\n    for (let index = start; index < stop; index += step) {\n        result.push (this [index]);\n    }\n    return result;\n};\nArray.prototype.__setslice__ = function (start, stop, step, source) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    if (step == null) {\n        Array.prototype.splice.apply (this, [start, stop - start] .concat (source));\n    }\n    else {\n        let sourceIndex = 0;\n        for (let targetIndex = start; targetIndex < stop; targetIndex += step) {\n            this [targetIndex] = source [sourceIndex++];\n        }\n    }\n};\nArray.prototype.__repr__ = function () {\n    if (this.__class__ == set && !this.length) {\n        return 'set()';\n    }\n    let result = !this.__class__ || this.__class__ == list ? '[' : this.__class__ == tuple ? '(' : '{';\n    for (let index = 0; index < this.length; index++) {\n        if (index) {\n            result += ', ';\n        }\n        result += repr (this [index]);\n    }\n    if (this.__class__ == tuple && this.length == 1) {\n        result += ',';\n    }\n    result += !this.__class__ || this.__class__ == list ? ']' : this.__class__ == tuple ? ')' : '}';;\n    return result;\n};\nArray.prototype.__str__ = Array.prototype.__repr__;\nArray.prototype.append = function (element) {\n    this.push (element);\n};\nArray.prototype.py_clear = function () {\n    this.length = 0;\n};\nArray.prototype.extend = function (aList) {\n    this.push.apply (this, aList);\n};\nArray.prototype.insert = function (index, element) {\n    this.splice (index, 0, element);\n};\nArray.prototype.remove = function (element) {\n    let index = this.indexOf (element);\n    if (index == -1) {\n        throw ValueError (\"list.remove(x): x not in list\", new Error ());\n    }\n    this.splice (index, 1);\n};\nArray.prototype.index = function (element) {\n    return this.indexOf (element);\n};\nArray.prototype.py_pop = function (index) {\n    if (index == undefined) {\n        return this.pop ();\n    }\n    else {\n        return this.splice (index, 1) [0];\n    }\n};\nArray.prototype.py_sort = function () {\n    __sort__.apply  (null, [this].concat ([] .slice.apply (arguments)));\n};\nArray.prototype.__add__ = function (aList) {\n    return list (this.concat (aList));\n};\nArray.prototype.__mul__ = function (scalar) {\n    let result = this;\n    for (let i = 1; i < scalar; i++) {\n        result = result.concat (this);\n    }\n    return result;\n};\nArray.prototype.__rmul__ = Array.prototype.__mul__;\nexport function tuple (iterable) {\n    let instance = iterable ? [] .slice.apply (iterable) : [];\n    instance.__class__ = tuple;\n    return instance;\n}\ntuple.__name__ = 'tuple';\ntuple.__bases__ = [object];\nexport function set (iterable) {\n    let instance = [];\n    if (iterable) {\n        for (let index = 0; index < iterable.length; index++) {\n            instance.add (iterable [index]);\n        }\n    }\n    instance.__class__ = set;\n    return instance;\n}\nset.__name__ = 'set';\nset.__bases__ = [object];\nArray.prototype.__bindexOf__ = function (element) {\n    element += '';\n    let mindex = 0;\n    let maxdex = this.length - 1;\n    while (mindex <= maxdex) {\n        let index = (mindex + maxdex) / 2 | 0;\n        let middle = this [index] + '';\n        if (middle < element) {\n            mindex = index + 1;\n        }\n        else if (middle > element) {\n            maxdex = index - 1;\n        }\n        else {\n            return index;\n        }\n    }\n    return -1;\n};\nArray.prototype.add = function (element) {\n    if (this.indexOf (element) == -1) {\n        this.push (element);\n    }\n};\nArray.prototype.discard = function (element) {\n    var index = this.indexOf (element);\n    if (index != -1) {\n        this.splice (index, 1);\n    }\n};\nArray.prototype.isdisjoint = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issuperset = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) == -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issubset = function (other) {\n    return set (other.slice ()) .issuperset (this);\n};\nArray.prototype.union = function (other) {\n    let result = set (this.slice () .sort ());\n    for (let i = 0; i < other.length; i++) {\n        if (result.__bindexOf__ (other [i]) == -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.intersection = function (other) {\n    this.sort ();\n    let result = set ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.difference = function (other) {\n    let sother = set (other.slice () .sort ());\n    let result = set ();\n    for (let i = 0; i < this.length; i++) {\n        if (sother.__bindexOf__ (this [i]) == -1) {\n            result.push (this [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.symmetric_difference = function (other) {\n    return this.union (other) .difference (this.intersection (other));\n};\nArray.prototype.py_update = function () {\n    let updated = [] .concat.apply (this.slice (), arguments) .sort ();\n    this.py_clear ();\n    for (let i = 0; i < updated.length; i++) {\n        if (updated [i] != updated [i - 1]) {\n            this.push (updated [i]);\n        }\n    }\n};\nArray.prototype.__eq__ = function (other) {\n    if (this.length != other.length) {\n        return false;\n    }\n    if (this.__class__ == set) {\n        this.sort ();\n        other.sort ();\n    }\n    for (let i = 0; i < this.length; i++) {\n        if (this [i] != other [i]) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.__ne__ = function (other) {\n    return !this.__eq__ (other);\n};\nArray.prototype.__le__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issubset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] > other [i]) {\n                return false;\n            }\n            else if (this [i] < other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__ge__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issuperset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] < other [i]) {\n                return false;\n            }\n            else if (this [i] > other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__lt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issubset (other) && !this.issuperset (other) :\n        !this.__ge__ (other)\n    );\n};\nArray.prototype.__gt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issuperset (other) && !this.issubset (other) :\n        !this.__le__ (other)\n    );\n};\nexport function bytearray (bytable, encoding) {\n    if (bytable == undefined) {\n        return new Uint8Array (0);\n    }\n    else {\n        let aType = py_typeof (bytable);\n        if (aType == int) {\n            return new Uint8Array (bytable);\n        }\n        else if (aType == str) {\n            let aBytes = new Uint8Array (len (bytable));\n            for (let i = 0; i < len (bytable); i++) {\n                aBytes [i] = bytable.charCodeAt (i);\n            }\n            return aBytes;\n        }\n        else if (aType == list || aType == tuple) {\n            return new Uint8Array (bytable);\n        }\n        else {\n            throw py_TypeError;\n        }\n    }\n}\nexport var bytes = bytearray;\nUint8Array.prototype.__add__ = function (aBytes) {\n    let result = new Uint8Array (this.length + aBytes.length);\n    result.set (this);\n    result.set (aBytes, this.length);\n    return result;\n};\nUint8Array.prototype.__mul__ = function (scalar) {\n    let result = new Uint8Array (scalar * this.length);\n    for (let i = 0; i < scalar; i++) {\n        result.set (this, i * this.length);\n    }\n    return result;\n};\nUint8Array.prototype.__rmul__ = Uint8Array.prototype.__mul__;\nexport function str (stringable) {\n    if (typeof stringable === 'number')\n        return stringable.toString();\n    else {\n        try {\n            return stringable.__str__ ();\n        }\n        catch (exception) {\n            try {\n                return repr (stringable);\n            }\n            catch (exception) {\n                return String (stringable);\n            }\n        }\n    }\n};\nString.prototype.__class__ = str;\nstr.__name__ = 'str';\nstr.__bases__ = [object];\nString.prototype.__iter__ = function () {new __PyIterator__ (this);};\nString.prototype.__repr__ = function () {\n    return (this.indexOf ('\\'') == -1 ? '\\'' + this + '\\'' : '\"' + this + '\"') .py_replace ('\\t', '\\\\t') .py_replace ('\\n', '\\\\n');\n};\nString.prototype.__str__ = function () {\n    return this;\n};\nString.prototype.capitalize = function () {\n    return this.charAt (0).toUpperCase () + this.slice (1);\n};\nString.prototype.endswith = function (suffix) {\n    if (suffix instanceof Array) {\n        for (var i=0;i<suffix.length;i++) {\n            if (this.slice (-suffix[i].length) == suffix[i])\n                return true;\n        }\n    } else\n        return suffix == '' || this.slice (-suffix.length) == suffix;\n    return false;\n};\nString.prototype.find = function (sub, start) {\n    return this.indexOf (sub, start);\n};\nString.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    var result = '';\n    if (step == 1) {\n        result = this.substring (start, stop);\n    }\n    else {\n        for (var index = start; index < stop; index += step) {\n            result = result.concat (this.charAt(index));\n        }\n    }\n    return result;\n};\n__setproperty__ (String.prototype, 'format', {\n    get: function () {return __get__ (this, function (self) {\n        var args = tuple ([] .slice.apply (arguments).slice (1));\n        var autoIndex = 0;\n        return self.replace (/\\{(\\w*)\\}/g, function (match, key) {\n            if (key == '') {\n                key = autoIndex++;\n            }\n            if (key == +key) {\n                return args [key] === undefined ? match : str (args [key]);\n            }\n            else {\n                for (var index = 0; index < args.length; index++) {\n                    if (typeof args [index] == 'object' && args [index][key] !== undefined) {\n                        return str (args [index][key]);\n                    }\n                }\n                return match;\n            }\n        });\n    });},\n    enumerable: true\n});\nString.prototype.isalnum = function () {\n    return /^[0-9a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isalpha = function () {\n    return /^[a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isdecimal = function () {\n    return /^[0-9]{1,}$/.test(this)\n}\nString.prototype.isdigit = function () {\n    return this.isdecimal()\n}\nString.prototype.islower = function () {\n    return /^[a-z]{1,}$/.test(this)\n}\nString.prototype.isupper = function () {\n    return /^[A-Z]{1,}$/.test(this)\n}\nString.prototype.isspace = function () {\n    return /^[\\s]{1,}$/.test(this)\n}\nString.prototype.isnumeric = function () {\n    return !isNaN (parseFloat (this)) && isFinite (this);\n};\nString.prototype.join = function (strings) {\n    strings = Array.from (strings);\n    return strings.join (this);\n};\nString.prototype.lower = function () {\n    return this.toLowerCase ();\n};\nString.prototype.py_replace = function (old, aNew, maxreplace) {\n    return this.split (old, maxreplace) .join (aNew);\n};\nString.prototype.lstrip = function () {\n    return this.replace (/^\\s*/g, '');\n};\nString.prototype.rfind = function (sub, start) {\n    return this.lastIndexOf (sub, start);\n};\nString.prototype.rsplit = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            var maxrsplit = result.length - maxsplit;\n            return [result.slice (0, maxrsplit) .join (sep)] .concat (result.slice (maxrsplit));\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.rstrip = function () {\n    return this.replace (/\\s*$/g, '');\n};\nString.prototype.py_split = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            return result.slice (0, maxsplit).concat ([result.slice (maxsplit).join (sep)]);\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.startswith = function (prefix) {\n    if (prefix instanceof Array) {\n        for (var i=0;i<prefix.length;i++) {\n            if (this.indexOf (prefix [i]) == 0)\n                return true;\n        }\n    } else\n        return this.indexOf (prefix) == 0;\n    return false;\n};\nString.prototype.strip = function () {\n    return this.trim ();\n};\nString.prototype.upper = function () {\n    return this.toUpperCase ();\n};\nString.prototype.__mul__ = function (scalar) {\n    var result = '';\n    for (var i = 0; i < scalar; i++) {\n        result = result + this;\n    }\n    return result;\n};\nString.prototype.__rmul__ = String.prototype.__mul__;\nfunction __contains__ (element) {\n    return this.hasOwnProperty (element);\n}\nfunction __keys__ () {\n    var keys = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            keys.push (attrib);\n        }\n    }\n    return keys;\n}\nfunction __items__ () {\n    var items = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            items.push ([attrib, this [attrib]]);\n        }\n    }\n    return items;\n}\nfunction __del__ (key) {\n    delete this [key];\n}\nfunction __clear__ () {\n    for (var attrib in this) {\n        delete this [attrib];\n    }\n}\nfunction __getdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result == undefined) {\n        result = this ['py_' + aKey]\n    }\n    return result == undefined ? (aDefault == undefined ? null : aDefault) : result;\n}\nfunction __setdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        return result;\n    }\n    var val = aDefault == undefined ? null : aDefault;\n    this [aKey] = val;\n    return val;\n}\nfunction __pop__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        delete this [aKey];\n        return result;\n    } else {\n        if ( aDefault === undefined ) {\n            throw KeyError (aKey, new Error());\n        }\n    }\n    return aDefault;\n}\nfunction __popitem__ () {\n    var aKey = Object.keys (this) [0];\n    if (aKey == null) {\n        throw KeyError (\"popitem(): dictionary is empty\", new Error ());\n    }\n    var result = tuple ([aKey, this [aKey]]);\n    delete this [aKey];\n    return result;\n}\nfunction __update__ (aDict) {\n    for (var aKey in aDict) {\n        this [aKey] = aDict [aKey];\n    }\n}\nfunction __values__ () {\n    var values = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            values.push (this [attrib]);\n        }\n    }\n    return values;\n}\nfunction __dgetitem__ (aKey) {\n    return this [aKey];\n}\nfunction __dsetitem__ (aKey, aValue) {\n    this [aKey] = aValue;\n}\nexport function dict (objectOrPairs) {\n    var instance = {};\n    if (!objectOrPairs || objectOrPairs instanceof Array) {\n        if (objectOrPairs) {\n            for (var index = 0; index < objectOrPairs.length; index++) {\n                var pair = objectOrPairs [index];\n                if ( !(pair instanceof Array) || pair.length != 2) {\n                    throw ValueError(\n                        \"dict update sequence element #\" + index +\n                        \" has length \" + pair.length +\n                        \"; 2 is required\", new Error());\n                }\n                var key = pair [0];\n                var val = pair [1];\n                if (!(objectOrPairs instanceof Array) && objectOrPairs instanceof Object) {\n                     if (!isinstance (objectOrPairs, dict)) {\n                         val = dict (val);\n                     }\n                }\n                instance [key] = val;\n            }\n        }\n    }\n    else {\n        if (isinstance (objectOrPairs, dict)) {\n            var aKeys = objectOrPairs.py_keys ();\n            for (var index = 0; index < aKeys.length; index++ ) {\n                var key = aKeys [index];\n                instance [key] = objectOrPairs [key];\n            }\n        } else if (objectOrPairs instanceof Object) {\n            instance = objectOrPairs;\n        } else {\n            throw ValueError (\"Invalid type of object for dict creation\", new Error ());\n        }\n    }\n    __setproperty__ (instance, '__class__', {value: dict, enumerable: false, writable: true});\n    __setproperty__ (instance, '__contains__', {value: __contains__, enumerable: false});\n    __setproperty__ (instance, 'py_keys', {value: __keys__, enumerable: false});\n    __setproperty__ (instance, '__iter__', {value: function () {new __PyIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, Symbol.iterator, {value: function () {new __JsIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, 'py_items', {value: __items__, enumerable: false});\n    __setproperty__ (instance, 'py_del', {value: __del__, enumerable: false});\n    __setproperty__ (instance, 'py_clear', {value: __clear__, enumerable: false});\n    __setproperty__ (instance, 'py_get', {value: __getdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_setdefault', {value: __setdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_pop', {value: __pop__, enumerable: false});\n    __setproperty__ (instance, 'py_popitem', {value: __popitem__, enumerable: false});\n    __setproperty__ (instance, 'py_update', {value: __update__, enumerable: false});\n    __setproperty__ (instance, 'py_values', {value: __values__, enumerable: false});\n    __setproperty__ (instance, '__getitem__', {value: __dgetitem__, enumerable: false});\n    __setproperty__ (instance, '__setitem__', {value: __dsetitem__, enumerable: false});\n    return instance;\n}\ndict.__name__ = 'dict';\ndict.__bases__ = [object];\nfunction __setdoc__ (docString) {\n    this.__doc__ = docString;\n    return this;\n}\n__setproperty__ (Function.prototype, '__setdoc__', {value: __setdoc__, enumerable: false});\nexport function __jsmod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __mod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __pow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport var pow = __pow__;\nexport function __neg__ (a) {\n    if (typeof a == 'object' && '__neg__' in a) {\n        return a.__neg__ ();\n    }\n    else {\n        return -a;\n    }\n};\nexport function __matmul__ (a, b) {\n    return a.__matmul__ (b);\n};\nexport function __mul__ (a, b) {\n    if (typeof a == 'object' && '__mul__' in a) {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return b.__rmul__ (a);\n    }\n    else {\n        return a * b;\n    }\n};\nexport function __truediv__ (a, b) {\n    if (typeof a == 'object' && '__truediv__' in a) {\n        return a.__truediv__ (b);\n    }\n    else if (typeof b == 'object' && '__rtruediv__' in b) {\n        return b.__rtruediv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return a / b;\n    }\n};\nexport function __floordiv__ (a, b) {\n    if (typeof a == 'object' && '__floordiv__' in a) {\n        return a.__floordiv__ (b);\n    }\n    else if (typeof b == 'object' && '__rfloordiv__' in b) {\n        return b.__rfloordiv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return Math.floor (a / b);\n    }\n};\nexport function __add__ (a, b) {\n    if (typeof a == 'object' && '__add__' in a) {\n        return a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return b.__radd__ (a);\n    }\n    else {\n        return a + b;\n    }\n};\nexport function __sub__ (a, b) {\n    if (typeof a == 'object' && '__sub__' in a) {\n        return a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return b.__rsub__ (a);\n    }\n    else {\n        return a - b;\n    }\n};\nexport function __lshift__ (a, b) {\n    if (typeof a == 'object' && '__lshift__' in a) {\n        return a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return b.__rlshift__ (a);\n    }\n    else {\n        return a << b;\n    }\n};\nexport function __rshift__ (a, b) {\n    if (typeof a == 'object' && '__rshift__' in a) {\n        return a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return b.__rrshift__ (a);\n    }\n    else {\n        return a >> b;\n    }\n};\nexport function __or__ (a, b) {\n    if (typeof a == 'object' && '__or__' in a) {\n        return a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return b.__ror__ (a);\n    }\n    else {\n        return a | b;\n    }\n};\nexport function __xor__ (a, b) {\n    if (typeof a == 'object' && '__xor__' in a) {\n        return a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return b.__rxor__ (a);\n    }\n    else {\n        return a ^ b;\n    }\n};\nexport function __and__ (a, b) {\n    if (typeof a == 'object' && '__and__' in a) {\n        return a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return b.__rand__ (a);\n    }\n    else {\n        return a & b;\n    }\n};\nexport function __eq__ (a, b) {\n    if (typeof a == 'object' && '__eq__' in a) {\n        return a.__eq__ (b);\n    }\n    else {\n        return a == b;\n    }\n};\nexport function __ne__ (a, b) {\n    if (typeof a == 'object' && '__ne__' in a) {\n        return a.__ne__ (b);\n    }\n    else {\n        return a != b\n    }\n};\nexport function __lt__ (a, b) {\n    if (typeof a == 'object' && '__lt__' in a) {\n        return a.__lt__ (b);\n    }\n    else {\n        return a < b;\n    }\n};\nexport function __le__ (a, b) {\n    if (typeof a == 'object' && '__le__' in a) {\n        return a.__le__ (b);\n    }\n    else {\n        return a <= b;\n    }\n};\nexport function __gt__ (a, b) {\n    if (typeof a == 'object' && '__gt__' in a) {\n        return a.__gt__ (b);\n    }\n    else {\n        return a > b;\n    }\n};\nexport function __ge__ (a, b) {\n    if (typeof a == 'object' && '__ge__' in a) {\n        return a.__ge__ (b);\n    }\n    else {\n        return a >= b;\n    }\n};\nexport function __imatmul__ (a, b) {\n    if ('__imatmul__' in a) {\n        return a.__imatmul__ (b);\n    }\n    else {\n        return a.__matmul__ (b);\n    }\n};\nexport function __ipow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__ipow__ (b);\n    }\n    else if (typeof a == 'object' && '__ipow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport function __ijsmod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__ismod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __imod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__imod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __imul__ (a, b) {\n    if (typeof a == 'object' && '__imul__' in a) {\n        return a.__imul__ (b);\n    }\n    else if (typeof a == 'object' && '__mul__' in a) {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return a = b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return a = b.__rmul__ (a);\n    }\n    else {\n        return a *= b;\n    }\n};\nexport function __idiv__ (a, b) {\n    if (typeof a == 'object' && '__idiv__' in a) {\n        return a.__idiv__ (b);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a = a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return a = b.__rdiv__ (a);\n    }\n    else {\n        return a /= b;\n    }\n};\nexport function __iadd__ (a, b) {\n    if (typeof a == 'object' && '__iadd__' in a) {\n        return a.__iadd__ (b);\n    }\n    else if (typeof a == 'object' && '__add__' in a) {\n        return a = a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return a = b.__radd__ (a);\n    }\n    else {\n        return a += b;\n    }\n};\nexport function __isub__ (a, b) {\n    if (typeof a == 'object' && '__isub__' in a) {\n        return a.__isub__ (b);\n    }\n    else if (typeof a == 'object' && '__sub__' in a) {\n        return a = a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return a = b.__rsub__ (a);\n    }\n    else {\n        return a -= b;\n    }\n};\nexport function __ilshift__ (a, b) {\n    if (typeof a == 'object' && '__ilshift__' in a) {\n        return a.__ilshift__ (b);\n    }\n    else if (typeof a == 'object' && '__lshift__' in a) {\n        return a = a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return a = b.__rlshift__ (a);\n    }\n    else {\n        return a <<= b;\n    }\n};\nexport function __irshift__ (a, b) {\n    if (typeof a == 'object' && '__irshift__' in a) {\n        return a.__irshift__ (b);\n    }\n    else if (typeof a == 'object' && '__rshift__' in a) {\n        return a = a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return a = b.__rrshift__ (a);\n    }\n    else {\n        return a >>= b;\n    }\n};\nexport function __ior__ (a, b) {\n    if (typeof a == 'object' && '__ior__' in a) {\n        return a.__ior__ (b);\n    }\n    else if (typeof a == 'object' && '__or__' in a) {\n        return a = a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return a = b.__ror__ (a);\n    }\n    else {\n        return a |= b;\n    }\n};\nexport function __ixor__ (a, b) {\n    if (typeof a == 'object' && '__ixor__' in a) {\n        return a.__ixor__ (b);\n    }\n    else if (typeof a == 'object' && '__xor__' in a) {\n        return a = a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return a = b.__rxor__ (a);\n    }\n    else {\n        return a ^= b;\n    }\n};\nexport function __iand__ (a, b) {\n    if (typeof a == 'object' && '__iand__' in a) {\n        return a.__iand__ (b);\n    }\n    else if (typeof a == 'object' && '__and__' in a) {\n        return a = a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return a = b.__rand__ (a);\n    }\n    else {\n        return a &= b;\n    }\n};\nexport function __getitem__ (container, key) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ (key);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        return container [container.length + key];\n    }\n    else {\n        return container [key];\n    }\n};\nexport function __setitem__ (container, key, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ (key, value);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        container [container.length + key] = value;\n    }\n    else {\n        container [key] = value;\n    }\n};\nexport function __getslice__ (container, lower, upper, step) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ ([lower, upper, step]);\n    }\n    else {\n        return container.__getslice__ (lower, upper, step);\n    }\n};\nexport function __setslice__ (container, lower, upper, step, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ ([lower, upper, step], value);\n    }\n    else {\n        container.__setslice__ (lower, upper, step, value);\n    }\n};\nexport var BaseException =  __class__ ('BaseException', [object], {\n\t__module__: __name__,\n});\nexport var Exception =  __class__ ('Exception', [BaseException], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tvar kwargs = dict ();\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tdefault: kwargs [__attrib0__] = __allkwargs0__ [__attrib0__];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdelete kwargs.__kwargtrans__;\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.__args__ = args;\n\t\tif (kwargs.error != null) {\n\t\t\tself.stack = kwargs.error.stack;\n\t\t}\n\t\telse if (Error) {\n\t\t\tself.stack = new Error ().stack;\n\t\t}\n\t\telse {\n\t\t\tself.stack = 'No stack trace available';\n\t\t}\n\t});},\n\tget __repr__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]));\n\t\t}\n\t\telse {\n\t\t\treturn '{}()'.format (self.__class__.__name__);\n\t\t}\n\t});},\n\tget __str__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn str (tuple (self.__args__));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn str (self.__args__ [0]);\n\t\t}\n\t\telse {\n\t\t\treturn '';\n\t\t}\n\t});}\n});\nexport var IterableError =  __class__ ('IterableError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, \"Can't iterate over non-iterable\", __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var StopIteration =  __class__ ('StopIteration', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, 'Iterator exhausted', __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var ValueError =  __class__ ('ValueError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var KeyError =  __class__ ('KeyError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AssertionError =  __class__ ('AssertionError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tif (message) {\n\t\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t\t}\n\t\telse {\n\t\t\tException.__init__ (self, __kwargtrans__ ({error: error}));\n\t\t}\n\t});}\n});\nexport var NotImplementedError =  __class__ ('NotImplementedError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var IndexError =  __class__ ('IndexError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AttributeError =  __class__ ('AttributeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var py_TypeError =  __class__ ('py_TypeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var Warning =  __class__ ('Warning', [Exception], {\n\t__module__: __name__,\n});\nexport var UserWarning =  __class__ ('UserWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var DeprecationWarning =  __class__ ('DeprecationWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var RuntimeWarning =  __class__ ('RuntimeWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var __sort__ = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (key) {\n\t\titerable.sort ((function __lambda__ (a, b) {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\t\tcase 'a': var a = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t\tcase 'b': var b = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\treturn (key (a) > key (b) ? 1 : -(1));\n\t\t}));\n\t}\n\telse {\n\t\titerable.sort ();\n\t}\n\tif (reverse) {\n\t\titerable.reverse ();\n\t}\n};\nexport var sorted = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (py_typeof (iterable) == dict) {\n\t\tvar result = copy (iterable.py_keys ());\n\t}\n\telse {\n\t\tvar result = copy (iterable);\n\t}\n\t__sort__ (result, key, reverse);\n\treturn result;\n};\nexport var map = function (func, iterable) {\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\t__accu0__.append (func (item));\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var filter = function (func, iterable) {\n\tif (func == null) {\n\t\tvar func = bool;\n\t}\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\tif (func (item)) {\n\t\t\t\t__accu0__.append (item);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var divmod = function (n, d) {\n\treturn tuple ([Math.floor (n / d), __mod__ (n, d)]);\n};\nexport var __Terminal__ =  __class__ ('__Terminal__', [object], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tself.buffer = '';\n\t\ttry {\n\t\t\tself.element = document.getElementById ('__terminal__');\n\t\t}\n\t\tcatch (__except0__) {\n\t\t\tself.element = null;\n\t\t}\n\t\tif (self.element) {\n\t\t\tself.element.style.overflowX = 'auto';\n\t\t\tself.element.style.boxSizing = 'border-box';\n\t\t\tself.element.style.padding = '5px';\n\t\t\tself.element.innerHTML = '_';\n\t\t}\n\t});},\n\tget print () {return __get__ (this, function (self) {\n\t\tvar sep = ' ';\n\t\tvar end = '\\n';\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'sep': var sep = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'end': var end = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.buffer = '{}{}{}'.format (self.buffer, sep.join ((function () {\n\t\t\tvar __accu0__ = [];\n\t\t\tfor (var arg of args) {\n\t\t\t\t__accu0__.append (str (arg));\n\t\t\t}\n\t\t\treturn __accu0__;\n\t\t}) ()), end).__getslice__ (-(4096), null, 1);\n\t\tif (self.element) {\n\t\t\tself.element.innerHTML = self.buffer.py_replace ('\\n', '<br>').py_replace (' ', '&nbsp');\n\t\t\tself.element.scrollTop = self.element.scrollHeight;\n\t\t}\n\t\telse {\n\t\t\tconsole.log (sep.join ((function () {\n\t\t\t\tvar __accu0__ = [];\n\t\t\t\tfor (var arg of args) {\n\t\t\t\t\t__accu0__.append (str (arg));\n\t\t\t\t}\n\t\t\t\treturn __accu0__;\n\t\t\t}) ()));\n\t\t}\n\t});},\n\tget input () {return __get__ (this, function (self, question) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'question': var question = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.print ('{}'.format (question), __kwargtrans__ ({end: ''}));\n\t\tvar answer = window.prompt ('\\n'.join (self.buffer.py_split ('\\n').__getslice__ (-(8), null, 1)));\n\t\tself.print (answer);\n\t\treturn answer;\n\t});}\n});\nexport var __terminal__ = __Terminal__ ();\nexport var print = __terminal__.print;\nexport var input = __terminal__.input;\n\n//# sourceMappingURL=org.transcrypt.__runtime__.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_003/target/org.transcrypt.__runtime__.py",
    "content": "# Transcrypt runtime module\r\n\r\n#__pragma__ ('js', 'export var __envir__ = {{}};\\n{}', __include__ ('org/transcrypt/__envir__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__core__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__builtin__.js'))\r\n\r\n#__pragma__ ('skip')\r\ncopy = Math = __typeof__ = __repr__ = document = console = window = 0\r\n#__pragma__ ('noskip')\r\n\r\n#__pragma__ ('notconv')  # !!! tconv gives a problem with __terminal__, needs investigation\r\n#__pragma__ ('nokwargs')\r\n#__pragma__ ('noalias', 'sort')\r\n\r\nclass BaseException:\r\n    pass\r\n\r\nclass Exception (BaseException):\r\n    #__pragma__ ('kwargs')\r\n    def __init__ (self, *args, **kwargs):\r\n        self.__args__ = args\r\n        if kwargs.error != None:\r\n            self.stack = kwargs.error.stack # Integrate with JavaScript Error object\r\n        elif Error:\r\n            self.stack = (__new__(Error())).stack # Create our own stack if we aren't given one\r\n        else:\r\n            self.stack = 'No stack trace available'\r\n    #__pragma__ ('nokwargs')\r\n        \r\n    def __repr__ (self):\r\n        if len (self.__args__) > 1:\r\n            return '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)))\r\n        elif len (self.__args__):\r\n            return '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]))        \r\n        else:\r\n            return '{}()'.format (self.__class__.__name__)\r\n            \r\n    def __str__ (self):\r\n        if len (self.__args__) > 1:\r\n            return str (tuple (self.__args__))\r\n        elif len (self.__args__):\r\n            return str (self.__args__ [0])\r\n        else:\r\n            return ''\r\n        \r\nclass IterableError (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Can\\'t iterate over non-iterable', error = error)\r\n            \r\nclass StopIteration (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Iterator exhausted', error = error)\r\n        \r\nclass ValueError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass KeyError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass AssertionError (Exception):\r\n    def __init__ (self, message, error):\r\n        if message:\r\n            Exception.__init__ (self, message, error = error)\r\n        else:\r\n            Exception.__init__ (self, error = error)\r\n\r\nclass NotImplementedError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass IndexError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass AttributeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass TypeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\n# Warnings Exceptions\r\n# N.B. This is a limited subset of the warnings defined in\r\n# the cpython implementation to keep things small for now.\r\n\r\nclass Warning (Exception):\r\n    ''' Warning Base Class\r\n    '''\r\n    pass\r\n\r\nclass UserWarning (Warning):\r\n    pass\r\n\r\nclass DeprecationWarning (Warning):\r\n    pass\r\n\r\nclass RuntimeWarning (Warning):\r\n    pass\r\n    \r\n#__pragma__ ('kwargs')\r\n\r\ndef __sort__ (iterable, key = None, reverse = False):               # Used by py_sort, can deal with kwargs\r\n    if key:\r\n        iterable.sort (lambda a, b: 1 if key (a) > key (b) else -1) # JavaScript sort, case '==' is irrelevant for sorting\r\n    else:\r\n        iterable.sort ()                                            # JavaScript sort\r\n        \r\n    if reverse:\r\n        iterable.reverse ()\r\n        \r\ndef sorted (iterable, key = None, reverse = False):\r\n    if type (iterable) == dict:\r\n        result = copy (iterable.keys ()) \r\n    else:       \r\n        result = copy (iterable)\r\n        \r\n    __sort__ (result, key, reverse)\r\n    return result\r\n\r\n#__pragma__ ('nokwargs')\r\n\r\ndef map (func, iterable):\r\n    return [func (item) for item in iterable]\r\n\r\n\r\ndef filter (func, iterable):\r\n    if func == None:\r\n        func = bool\r\n    return [item for item in iterable if func (item)]\r\n    \r\ndef divmod (n, d):\r\n    return n // d, n % d\r\n    \r\n#__pragma__ ('ifdef', '__complex__')\r\n\r\nclass complex:\r\n    def __init__ (self, real, imag = None):\r\n        if imag == None:\r\n            if type (real) == complex:\r\n                self.real = real.real\r\n                self.imag = real.imag\r\n            else:\r\n                self.real = real\r\n                self.imag = 0\r\n        else:\r\n            self.real = real\r\n            self.imag = imag\r\n            \r\n    def __neg__ (self):\r\n        return complex (-self.real, -self.imag)\r\n        \r\n    def __exp__ (self):\r\n        modulus = Math.exp (self.real)\r\n        return complex (modulus * Math.cos (self.imag), modulus * Math.sin (self.imag))\r\n    \r\n    def __log__ (self):\r\n        return complex (Math.log (Math.sqrt (self.real * self.real + self.imag * self.imag)), Math.atan2 (self.imag, self.real))\r\n        \r\n    def __pow__ (self, other):  # a ** b = exp (b log a)\r\n        return (self.__log__ () .__mul__ (other)) .__exp__ ()\r\n        \r\n    def __rpow__ (self, real):  # real ** comp -> comp.__rpow__ (real)\r\n        return self.__mul__ (Math.log (real)) .__exp__ ()\r\n        \r\n    def __mul__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real * other, self.imag * other)\r\n        else:\r\n            return complex (self.real * other.real - self.imag * other.imag, self.real * other.imag + self.imag * other.real)\r\n        \r\n    def __rmul__ (self, real):  # real + comp -> comp.__rmul__ (real)\r\n        return complex (self.real * real, self.imag * real)\r\n        \r\n    def __div__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real / other, self.imag / other)\r\n        else:\r\n            denom = other.real * other.real + other.imag * other.imag\r\n            return complex (\r\n                (self.real * other.real + self.imag * other.imag) / denom,\r\n                (self.imag * other.real - self.real * other.imag) / denom\r\n            )\r\n        \r\n    def __rdiv__ (self, real):  # real / comp -> comp.__rdiv__ (real)\r\n        denom = self.real * self.real\r\n        return complex (\r\n            (real * self.real) / denom,\r\n            (real * self.imag) / denom\r\n        )\r\n        \r\n    def __add__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real + other, self.imag)\r\n        else:   # Assume other is complex\r\n            return complex (self.real + other.real, self.imag + other.imag)\r\n        \r\n    def __radd__ (self, real):  # real + comp -> comp.__radd__ (real)\r\n        return complex (self.real + real, self.imag)\r\n        \r\n    def __sub__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real - other, self.imag)\r\n        else:\r\n            return complex (self.real - other.real, self.imag - other.imag)\r\n        \r\n    def __rsub__ (self, real):  # real - comp -> comp.__rsub__ (real)\r\n        return complex (real - self.real, -self.imag)\r\n        \r\n    def __repr__ (self):\r\n        return '({}{}{}j)'.format (self.real, '+' if self.imag >= 0 else '', self.imag)\r\n            \r\n    def __str__ (self):\r\n        return __repr__ (self) [1 : -1]\r\n        \r\n    def __eq__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real == other\r\n        else:\r\n            return self.real == other.real and self.imag == other.imag\r\n        \r\n    def __ne__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real != other\r\n        else:\r\n            return self.real != other.real or self.imag != other.imag\r\n        \r\n    def conjugate (self):\r\n        return complex (self.real, -self.imag)\r\n        \r\ndef __conj__ (aNumber):\r\n    if isinstance (aNumber, complex):\r\n        return complex (aNumber.real, -aNumber.imag)\r\n    else:\r\n        return complex (aNumber, 0)\r\n        \r\n#__pragma__ ('endif')\r\n\r\nclass __Terminal__:\r\n    '''\r\n    Printing to either the console or to html happens async, but is blocked by calling window.prompt.\r\n    So while all input and print statements are encountered in normal order, the print's exit immediately without yet having actually printed\r\n    This means the next input takes control, blocking actual printing and so on indefinitely\r\n    The effect is that everything's only printed after all inputs are done\r\n    To prevent that, what's needed is to only execute the next window.prompt after actual printing has been done\r\n    Since we've no way to find out when that is, a timeout is used.\r\n    '''\r\n\r\n    def __init__ (self):\r\n        self.buffer = ''\r\n    \r\n        try:\r\n            self.element = document.getElementById ('__terminal__')\r\n        except:\r\n            self.element = None\r\n            \r\n        if self.element:\r\n            self.element.style.overflowX = 'auto'\r\n            self.element.style.boxSizing = 'border-box'\r\n            self.element.style.padding = '5px'\r\n            self.element.innerHTML = '_'\r\n        \r\n    #__pragma__ ('kwargs')\r\n        \r\n    def print (self, *args, sep = ' ', end = '\\n'):\r\n        self.buffer = '{}{}{}'.format (self.buffer, sep.join ([str (arg) for arg in args]), end) [-4096 : ] \r\n        \r\n        if self.element:\r\n            self.element.innerHTML = self.buffer.replace ('\\n', '<br>') .replace (' ', '&nbsp')\r\n            self.element.scrollTop = self.element.scrollHeight\r\n        else:\r\n            console.log (sep.join ([str (arg) for arg in args]))\r\n        \r\n    def input (self, question):\r\n        self.print ('{}'.format (question), end = '')\r\n        answer = window.prompt ('\\n'.join (self.buffer.split ('\\n') [-8:]))\r\n        self.print (answer)\r\n        return answer\r\n        \r\n    #__pragma__ ('nokwargs')\r\n    \r\n__terminal__ = __Terminal__ ()\r\n\r\nprint = __terminal__.print\r\ninput = __terminal__.input\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_003/target/pyp5js.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:11\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {PythonFunctions} from './python_functions.js';\nvar __name__ = 'pyp5js';\nexport var _P5_INSTANCE = null;\nexport var _CTX_MIDDLE = null;\nexport var _DEFAULT_FILL = null;\nexport var _DEFAULT_LEADMULT = null;\nexport var _DEFAULT_STROKE = null;\nexport var _DEFAULT_TEXT_FILL = null;\nexport var ADD = null;\nexport var ALT = null;\nexport var ARROW = null;\nexport var AUDIO = null;\nexport var AUTO = null;\nexport var AXES = null;\nexport var BACKSPACE = null;\nexport var BASELINE = null;\nexport var BEVEL = null;\nexport var BEZIER = null;\nexport var BLEND = null;\nexport var BLUR = null;\nexport var BOLD = null;\nexport var BOLDITALIC = null;\nexport var BOTTOM = null;\nexport var BURN = null;\nexport var CENTER = null;\nexport var CHORD = null;\nexport var CLAMP = null;\nexport var CLOSE = null;\nexport var CONTROL = null;\nexport var CORNER = null;\nexport var CORNERS = null;\nexport var CROSS = null;\nexport var CURVE = null;\nexport var DARKEST = null;\nexport var DEG_TO_RAD = null;\nexport var DEGREES = null;\nexport var DELETE = null;\nexport var DIFFERENCE = null;\nexport var DILATE = null;\nexport var DODGE = null;\nexport var DOWN_ARROW = null;\nexport var ENTER = null;\nexport var ERODE = null;\nexport var ESCAPE = null;\nexport var EXCLUSION = null;\nexport var FILL = null;\nexport var GRAY = null;\nexport var GRID = null;\nexport var HALF_PI = null;\nexport var HAND = null;\nexport var HARD_LIGHT = null;\nexport var HSB = null;\nexport var HSL = null;\nexport var IMAGE = null;\nexport var IMMEDIATE = null;\nexport var INVERT = null;\nexport var ITALIC = null;\nexport var LANDSCAPE = null;\nexport var LEFT = null;\nexport var LEFT_ARROW = null;\nexport var LIGHTEST = null;\nexport var LINE_LOOP = null;\nexport var LINE_STRIP = null;\nexport var LINEAR = null;\nexport var LINES = null;\nexport var MIRROR = null;\nexport var MITER = null;\nexport var MOVE = null;\nexport var MULTIPLY = null;\nexport var NEAREST = null;\nexport var NORMAL = null;\nexport var OPAQUE = null;\nexport var OPEN = null;\nexport var OPTION = null;\nexport var OVERLAY = null;\nexport var PI = null;\nexport var PIE = null;\nexport var POINTS = null;\nexport var PORTRAIT = null;\nexport var POSTERIZE = null;\nexport var PROJECT = null;\nexport var QUAD_STRIP = null;\nexport var QUADRATIC = null;\nexport var QUADS = null;\nexport var QUARTER_PI = null;\nexport var RAD_TO_DEG = null;\nexport var RADIANS = null;\nexport var RADIUS = null;\nexport var REPEAT = null;\nexport var REPLACE = null;\nexport var RETURN = null;\nexport var RGB = null;\nexport var RIGHT = null;\nexport var RIGHT_ARROW = null;\nexport var ROUND = null;\nexport var SCREEN = null;\nexport var SHIFT = null;\nexport var SOFT_LIGHT = null;\nexport var SQUARE = null;\nexport var STROKE = null;\nexport var SUBTRACT = null;\nexport var TAB = null;\nexport var TAU = null;\nexport var TEXT = null;\nexport var TEXTURE = null;\nexport var THRESHOLD = null;\nexport var TOP = null;\nexport var TRIANGLE_FAN = null;\nexport var TRIANGLE_STRIP = null;\nexport var TRIANGLES = null;\nexport var TWO_PI = null;\nexport var UP_ARROW = null;\nexport var VIDEO = null;\nexport var WAIT = null;\nexport var WEBGL = null;\nexport var P2D = null;\nvar PI = null;\nexport var frameCount = null;\nexport var focused = null;\nexport var displayWidth = null;\nexport var displayHeight = null;\nexport var windowWidth = null;\nexport var windowHeight = null;\nexport var width = null;\nexport var height = null;\nexport var disableFriendlyErrors = null;\nexport var deviceOrientation = null;\nexport var accelerationX = null;\nexport var accelerationY = null;\nexport var accelerationZ = null;\nexport var pAccelerationX = null;\nexport var pAccelerationY = null;\nexport var pAccelerationZ = null;\nexport var rotationX = null;\nexport var rotationY = null;\nexport var rotationZ = null;\nexport var pRotationX = null;\nexport var pRotationY = null;\nexport var pRotationZ = null;\nexport var turnAxis = null;\nexport var keyIsPressed = null;\nexport var key = null;\nexport var keyCode = null;\nexport var mouseX = null;\nexport var mouseY = null;\nexport var pmouseX = null;\nexport var pmouseY = null;\nexport var winMouseX = null;\nexport var winMouseY = null;\nexport var pwinMouseX = null;\nexport var pwinMouseY = null;\nexport var mouseButton = null;\nexport var mouseIsPressed = null;\nexport var touches = null;\nexport var pixels = null;\nexport var alpha = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.alpha (...args);\n};\nexport var blue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blue (...args);\n};\nexport var brightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.brightness (...args);\n};\nexport var color = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.color (...args);\n};\nexport var green = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.green (...args);\n};\nexport var hue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hue (...args);\n};\nexport var lerpColor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerpColor (...args);\n};\nexport var lightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lightness (...args);\n};\nexport var red = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.red (...args);\n};\nexport var saturation = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saturation (...args);\n};\nexport var background = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.background (...args);\n};\nexport var py_clear = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_clear = _P5_INSTANCE.clear (...args);\n\treturn p5_clear;\n};\nexport var erase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.erase (...args);\n};\nexport var noErase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noErase (...args);\n};\nexport var colorMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.colorMode (...args);\n};\nexport var fill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fill (...args);\n};\nexport var noFill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noFill (...args);\n};\nexport var noStroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noStroke (...args);\n};\nexport var stroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.stroke (...args);\n};\nexport var arc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arc (...args);\n};\nexport var ellipse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipse (...args);\n};\nexport var circle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.circle (...args);\n};\nexport var line = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.line (...args);\n};\nexport var point = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.point (...args);\n};\nexport var quad = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quad (...args);\n};\nexport var rect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rect (...args);\n};\nexport var square = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.square (...args);\n};\nexport var triangle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.triangle (...args);\n};\nexport var plane = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.plane (...args);\n};\nexport var box = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.box (...args);\n};\nexport var sphere = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sphere (...args);\n};\nexport var cylinder = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cylinder (...args);\n};\nexport var cone = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cone (...args);\n};\nexport var ellipsoid = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipsoid (...args);\n};\nexport var torus = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.torus (...args);\n};\nexport var loadModel = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadModel (...args);\n};\nexport var model = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.model (...args);\n};\nexport var ellipseMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipseMode (...args);\n};\nexport var noSmooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noSmooth (...args);\n};\nexport var rectMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rectMode (...args);\n};\nexport var smooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.smooth (...args);\n};\nexport var strokeCap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeCap (...args);\n};\nexport var strokeJoin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeJoin (...args);\n};\nexport var strokeWeight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeWeight (...args);\n};\nexport var bezier = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezier (...args);\n};\nexport var bezierDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierDetail (...args);\n};\nexport var bezierPoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierPoint (...args);\n};\nexport var bezierTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierTangent (...args);\n};\nexport var curve = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curve (...args);\n};\nexport var curveDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveDetail (...args);\n};\nexport var curveTightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTightness (...args);\n};\nexport var curvePoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curvePoint (...args);\n};\nexport var curveTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTangent (...args);\n};\nexport var beginContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginContour (...args);\n};\nexport var beginShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginShape (...args);\n};\nexport var bezierVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierVertex (...args);\n};\nexport var curveVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveVertex (...args);\n};\nexport var endContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endContour (...args);\n};\nexport var endShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endShape (...args);\n};\nexport var quadraticVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quadraticVertex (...args);\n};\nexport var vertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.vertex (...args);\n};\nexport var cursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cursor (...args);\n};\nexport var frameRate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.frameRate (...args);\n};\nexport var noCursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCursor (...args);\n};\nexport var fullscreen = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fullscreen (...args);\n};\nexport var pixelDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pixelDensity (...args);\n};\nexport var displayDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.displayDensity (...args);\n};\nexport var getURL = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURL (...args);\n};\nexport var getURLPath = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLPath (...args);\n};\nexport var getURLParams = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLParams (...args);\n};\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.preload (...args);\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setup (...args);\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.draw (...args);\n};\nexport var remove = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.remove (...args);\n};\nexport var noLoop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noLoop (...args);\n};\nexport var loop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loop (...args);\n};\nexport var push = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.push (...args);\n};\nexport var redraw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.redraw (...args);\n};\nexport var resizeCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resizeCanvas (...args);\n};\nexport var noCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCanvas (...args);\n};\nexport var createGraphics = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createGraphics (...args);\n};\nexport var blendMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blendMode (...args);\n};\nexport var setAttributes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setAttributes (...args);\n};\nexport var applyMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.applyMatrix (...args);\n};\nexport var resetMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetMatrix (...args);\n};\nexport var rotate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotate (...args);\n};\nexport var rotateX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateX (...args);\n};\nexport var rotateY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateY (...args);\n};\nexport var rotateZ = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateZ (...args);\n};\nexport var scale = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.scale (...args);\n};\nexport var shearX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearX (...args);\n};\nexport var shearY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearY (...args);\n};\nexport var translate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.translate (...args);\n};\nexport var createStringDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createStringDict (...args);\n};\nexport var createNumberDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createNumberDict (...args);\n};\nexport var append = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.append (...args);\n};\nexport var arrayCopy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arrayCopy (...args);\n};\nexport var concat = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.concat (...args);\n};\nexport var reverse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.reverse (...args);\n};\nexport var shorten = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shorten (...args);\n};\nexport var shuffle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shuffle (...args);\n};\nexport var py_sort = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_sort (...args);\n};\nexport var splice = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splice (...args);\n};\nexport var subset = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.subset (...args);\n};\nexport var float = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.float (...args);\n};\nexport var int = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.int (...args);\n};\nexport var str = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.str (...args);\n};\nexport var boolean = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.boolean (...args);\n};\nexport var byte = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.byte (...args);\n};\nexport var char = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.char (...args);\n};\nexport var unchar = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unchar (...args);\n};\nexport var hex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hex (...args);\n};\nexport var unhex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unhex (...args);\n};\nexport var join = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.join (...args);\n};\nexport var match = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.match (...args);\n};\nexport var matchAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.matchAll (...args);\n};\nexport var nf = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nf (...args);\n};\nexport var nfc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfc (...args);\n};\nexport var nfp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfp (...args);\n};\nexport var nfs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfs (...args);\n};\nexport var py_split = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_split (...args);\n};\nexport var splitTokens = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splitTokens (...args);\n};\nexport var trim = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.trim (...args);\n};\nexport var setMoveThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setMoveThreshold (...args);\n};\nexport var setShakeThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setShakeThreshold (...args);\n};\nexport var keyIsDown = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.keyIsDown (...args);\n};\nexport var createImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImage (...args);\n};\nexport var saveCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveCanvas (...args);\n};\nexport var saveFrames = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveFrames (...args);\n};\nexport var image_proxy = function (img) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'img': var img = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar _set = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.set (...args);\n\t\treturn value;\n\t};\n\tvar _get = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.get (...args);\n\t\treturn value;\n\t};\n\timg.py_set = _set;\n\timg.py_get = _get;\n\treturn img;\n};\nexport var loadImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar imageObj = _P5_INSTANCE.loadImage (...args);\n\treturn image_proxy (imageObj);\n};\nexport var image = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.image (...args);\n};\nexport var tint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tint (...args);\n};\nexport var noTint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noTint (...args);\n};\nexport var imageMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.imageMode (...args);\n};\nexport var blend = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blend (...args);\n};\nexport var copy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.copy (...args);\n};\nexport var filter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && (args [0] === null || callable (args [0]))) {\n\t\treturn PythonFunctions.filter (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.filter (...args);\n\t}\n};\nexport var py_get = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_get = _P5_INSTANCE.get (...args);\n\treturn p5_get;\n};\nexport var loadPixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadPixels (...args);\n};\nexport var py_set = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) <= 1) {\n\t\treturn PythonFunctions.py_set (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.py_set (...args);\n\t}\n};\nexport var updatePixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.updatePixels (...args);\n};\nexport var loadJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadJSON (...args);\n};\nexport var loadStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadStrings (...args);\n};\nexport var loadTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadTable (...args);\n};\nexport var loadXML = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadXML (...args);\n};\nexport var loadBytes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadBytes (...args);\n};\nexport var httpGet = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpGet (...args);\n};\nexport var httpPost = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpPost (...args);\n};\nexport var httpDo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpDo (...args);\n};\nexport var createWriter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createWriter (...args);\n};\nexport var save = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.save (...args);\n};\nexport var saveJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveJSON (...args);\n};\nexport var saveStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveStrings (...args);\n};\nexport var saveTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveTable (...args);\n};\nexport var day = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.day (...args);\n};\nexport var hour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hour (...args);\n};\nexport var minute = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.minute (...args);\n};\nexport var millis = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.millis (...args);\n};\nexport var month = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.month (...args);\n};\nexport var second = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.second (...args);\n};\nexport var year = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.year (...args);\n};\nexport var createVector = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVector (...args);\n};\nexport var abs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.abs (...args);\n};\nexport var ceil = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ceil (...args);\n};\nexport var constrain = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.constrain (...args);\n};\nexport var dist = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.dist (...args);\n};\nexport var exp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.exp (...args);\n};\nexport var floor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.floor (...args);\n};\nexport var lerp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerp (...args);\n};\nexport var log = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.log (...args);\n};\nexport var mag = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.mag (...args);\n};\nexport var map = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && callable (args [0])) {\n\t\treturn PythonFunctions.map (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.map (...args);\n\t}\n};\nexport var max = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.max (...args);\n};\nexport var min = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.min (...args);\n};\nexport var norm = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.norm (...args);\n};\nexport var pow = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pow (...args);\n};\nexport var round = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.round (...args);\n};\nexport var sq = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sq (...args);\n};\nexport var sqrt = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sqrt (...args);\n};\nexport var noise = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noise (...args);\n};\nexport var noiseDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseDetail (...args);\n};\nexport var noiseSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseSeed (...args);\n};\nexport var randomSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomSeed (...args);\n};\nexport var random = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.random (...args);\n};\nexport var randomGaussian = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomGaussian (...args);\n};\nexport var acos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.acos (...args);\n};\nexport var asin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.asin (...args);\n};\nexport var atan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan (...args);\n};\nexport var atan2 = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan2 (...args);\n};\nexport var cos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cos (...args);\n};\nexport var sin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sin (...args);\n};\nexport var tan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tan (...args);\n};\nexport var degrees = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.degrees (...args);\n};\nexport var radians = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.radians (...args);\n};\nexport var angleMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.angleMode (...args);\n};\nexport var textAlign = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAlign (...args);\n};\nexport var textLeading = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textLeading (...args);\n};\nexport var textSize = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textSize (...args);\n};\nexport var textStyle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textStyle (...args);\n};\nexport var textWidth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textWidth (...args);\n};\nexport var textAscent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAscent (...args);\n};\nexport var textDescent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textDescent (...args);\n};\nexport var loadFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadFont (...args);\n};\nexport var text = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.text (...args);\n};\nexport var textFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textFont (...args);\n};\nexport var orbitControl = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.orbitControl (...args);\n};\nexport var debugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.debugMode (...args);\n};\nexport var noDebugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noDebugMode (...args);\n};\nexport var ambientLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientLight (...args);\n};\nexport var directionalLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.directionalLight (...args);\n};\nexport var pointLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pointLight (...args);\n};\nexport var lights = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lights (...args);\n};\nexport var loadShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadShader (...args);\n};\nexport var createShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createShader (...args);\n};\nexport var shader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shader (...args);\n};\nexport var resetShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetShader (...args);\n};\nexport var normalMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.normalMaterial (...args);\n};\nexport var texture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.texture (...args);\n};\nexport var textureMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureMode (...args);\n};\nexport var textureWrap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureWrap (...args);\n};\nexport var ambientMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientMaterial (...args);\n};\nexport var specularMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.specularMaterial (...args);\n};\nexport var shininess = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shininess (...args);\n};\nexport var camera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.camera (...args);\n};\nexport var perspective = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.perspective (...args);\n};\nexport var ortho = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ortho (...args);\n};\nexport var createCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCamera (...args);\n};\nexport var setCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setCamera (...args);\n};\nexport var select = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.select (...args);\n};\nexport var selectAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.selectAll (...args);\n};\nexport var removeElements = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.removeElements (...args);\n};\nexport var changed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.changed (...args);\n};\nexport var input = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.input (...args);\n};\nexport var createDiv = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createDiv (...args);\n};\nexport var createP = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createP (...args);\n};\nexport var createSpan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSpan (...args);\n};\nexport var createImg = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImg (...args);\n};\nexport var createA = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createA (...args);\n};\nexport var createSlider = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSlider (...args);\n};\nexport var createButton = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createButton (...args);\n};\nexport var createCheckbox = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCheckbox (...args);\n};\nexport var createSelect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSelect (...args);\n};\nexport var createRadio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createRadio (...args);\n};\nexport var createColorPicker = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createColorPicker (...args);\n};\nexport var createInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createInput (...args);\n};\nexport var createFileInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createFileInput (...args);\n};\nexport var createVideo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVideo (...args);\n};\nexport var createAudio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createAudio (...args);\n};\nexport var createCapture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCapture (...args);\n};\nexport var createElement = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createElement (...args);\n};\nexport var createCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar canvas = _P5_INSTANCE.createCanvas (...args);\n\twidth = _P5_INSTANCE.width;\n\theight = _P5_INSTANCE.height;\n\treturn canvas;\n};\nexport var py_pop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_pop = _P5_INSTANCE.pop (...args);\n\treturn p5_pop;\n};\nexport var size = createCanvas;\nexport var popMatrix = py_pop;\nexport var popStyle = py_pop;\nexport var pushMatrix = push;\nexport var pushStyle = push;\nexport var PVector = function (x, y, z) {\n\tif (typeof x == 'undefined' || (x != null && x.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar x = 0;\n\t};\n\tif (typeof y == 'undefined' || (y != null && y.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar y = 0;\n\t};\n\tif (typeof z == 'undefined' || (z != null && z.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar z = 0;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'z': var z = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn _P5_INSTANCE.createVector (x, y, z);\n};\nsetattr (PVector, 'dist', p5.Vector.dist);\nsetattr (PVector, 'add', p5.Vector.add);\nsetattr (PVector, 'sub', p5.Vector.sub);\nsetattr (PVector, 'mult', p5.Vector.mult);\nsetattr (PVector, 'div', p5.Vector.div);\nsetattr (PVector, 'dot', p5.Vector.dot);\nsetattr (PVector, 'cross', p5.Vector.cross);\nsetattr (PVector, 'lerp', p5.Vector.lerp);\nsetattr (PVector, 'random2D', p5.Vector.random2D);\nsetattr (PVector, 'random3D', p5.Vector.random3D);\nsetattr (PVector, 'angleBetween', p5.Vector.angleBetween);\nsetattr (PVector, 'fromAngle', p5.Vector.fromAngle);\nsetattr (PVector, 'fromAngles', p5.Vector.fromAngles);\nsetattr (PVector, 'equals', p5.Vector.equals);\nexport var pre_draw = function (p5_instance, draw_func) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_instance': var p5_instance = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t_CTX_MIDDLE = p5_instance._CTX_MIDDLE;\n\t_DEFAULT_FILL = p5_instance._DEFAULT_FILL;\n\t_DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT;\n\t_DEFAULT_STROKE = p5_instance._DEFAULT_STROKE;\n\t_DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL;\n\tADD = p5_instance.ADD;\n\tALT = p5_instance.ALT;\n\tARROW = p5_instance.ARROW;\n\tAUDIO = p5_instance.AUDIO;\n\tAUTO = p5_instance.AUTO;\n\tAXES = p5_instance.AXES;\n\tBACKSPACE = p5_instance.BACKSPACE;\n\tBASELINE = p5_instance.BASELINE;\n\tBEVEL = p5_instance.BEVEL;\n\tBEZIER = p5_instance.BEZIER;\n\tBLEND = p5_instance.BLEND;\n\tBLUR = p5_instance.BLUR;\n\tBOLD = p5_instance.BOLD;\n\tBOLDITALIC = p5_instance.BOLDITALIC;\n\tBOTTOM = p5_instance.BOTTOM;\n\tBURN = p5_instance.BURN;\n\tCENTER = p5_instance.CENTER;\n\tCHORD = p5_instance.CHORD;\n\tCLAMP = p5_instance.CLAMP;\n\tCLOSE = p5_instance.CLOSE;\n\tCONTROL = p5_instance.CONTROL;\n\tCORNER = p5_instance.CORNER;\n\tCORNERS = p5_instance.CORNERS;\n\tCROSS = p5_instance.CROSS;\n\tCURVE = p5_instance.CURVE;\n\tDARKEST = p5_instance.DARKEST;\n\tDEG_TO_RAD = p5_instance.DEG_TO_RAD;\n\tDEGREES = p5_instance.DEGREES;\n\tDELETE = p5_instance.DELETE;\n\tDIFFERENCE = p5_instance.DIFFERENCE;\n\tDILATE = p5_instance.DILATE;\n\tDODGE = p5_instance.DODGE;\n\tDOWN_ARROW = p5_instance.DOWN_ARROW;\n\tENTER = p5_instance.ENTER;\n\tERODE = p5_instance.ERODE;\n\tESCAPE = p5_instance.ESCAPE;\n\tEXCLUSION = p5_instance.EXCLUSION;\n\tFILL = p5_instance.FILL;\n\tGRAY = p5_instance.GRAY;\n\tGRID = p5_instance.GRID;\n\tHALF_PI = p5_instance.HALF_PI;\n\tHAND = p5_instance.HAND;\n\tHARD_LIGHT = p5_instance.HARD_LIGHT;\n\tHSB = p5_instance.HSB;\n\tHSL = p5_instance.HSL;\n\tIMAGE = p5_instance.IMAGE;\n\tIMMEDIATE = p5_instance.IMMEDIATE;\n\tINVERT = p5_instance.INVERT;\n\tITALIC = p5_instance.ITALIC;\n\tLANDSCAPE = p5_instance.LANDSCAPE;\n\tLEFT = p5_instance.LEFT;\n\tLEFT_ARROW = p5_instance.LEFT_ARROW;\n\tLIGHTEST = p5_instance.LIGHTEST;\n\tLINE_LOOP = p5_instance.LINE_LOOP;\n\tLINE_STRIP = p5_instance.LINE_STRIP;\n\tLINEAR = p5_instance.LINEAR;\n\tLINES = p5_instance.LINES;\n\tMIRROR = p5_instance.MIRROR;\n\tMITER = p5_instance.MITER;\n\tMOVE = p5_instance.MOVE;\n\tMULTIPLY = p5_instance.MULTIPLY;\n\tNEAREST = p5_instance.NEAREST;\n\tNORMAL = p5_instance.NORMAL;\n\tOPAQUE = p5_instance.OPAQUE;\n\tOPEN = p5_instance.OPEN;\n\tOPTION = p5_instance.OPTION;\n\tOVERLAY = p5_instance.OVERLAY;\n\tP2D = p5_instance.P2D;\n\tvar P3D = p5_instance.WEBGL;\n\tPI = p5_instance.PI;\n\tPIE = p5_instance.PIE;\n\tPOINTS = p5_instance.POINTS;\n\tPORTRAIT = p5_instance.PORTRAIT;\n\tPOSTERIZE = p5_instance.POSTERIZE;\n\tPROJECT = p5_instance.PROJECT;\n\tQUAD_STRIP = p5_instance.QUAD_STRIP;\n\tQUADRATIC = p5_instance.QUADRATIC;\n\tQUADS = p5_instance.QUADS;\n\tQUARTER_PI = p5_instance.QUARTER_PI;\n\tRAD_TO_DEG = p5_instance.RAD_TO_DEG;\n\tRADIANS = p5_instance.RADIANS;\n\tRADIUS = p5_instance.RADIUS;\n\tREPEAT = p5_instance.REPEAT;\n\tREPLACE = p5_instance.REPLACE;\n\tRETURN = p5_instance.RETURN;\n\tRGB = p5_instance.RGB;\n\tRIGHT = p5_instance.RIGHT;\n\tRIGHT_ARROW = p5_instance.RIGHT_ARROW;\n\tROUND = p5_instance.ROUND;\n\tSCREEN = p5_instance.SCREEN;\n\tSHIFT = p5_instance.SHIFT;\n\tSOFT_LIGHT = p5_instance.SOFT_LIGHT;\n\tSQUARE = p5_instance.SQUARE;\n\tSTROKE = p5_instance.STROKE;\n\tSUBTRACT = p5_instance.SUBTRACT;\n\tTAB = p5_instance.TAB;\n\tTAU = p5_instance.TAU;\n\tTEXT = p5_instance.TEXT;\n\tTEXTURE = p5_instance.TEXTURE;\n\tTHRESHOLD = p5_instance.THRESHOLD;\n\tTOP = p5_instance.TOP;\n\tTRIANGLE_FAN = p5_instance.TRIANGLE_FAN;\n\tTRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP;\n\tTRIANGLES = p5_instance.TRIANGLES;\n\tTWO_PI = p5_instance.TWO_PI;\n\tUP_ARROW = p5_instance.UP_ARROW;\n\tVIDEO = p5_instance.VIDEO;\n\tWAIT = p5_instance.WAIT;\n\tWEBGL = p5_instance.WEBGL;\n\tframeCount = p5_instance.frameCount;\n\tfocused = p5_instance.focused;\n\tdisplayWidth = p5_instance.displayWidth;\n\tdisplayHeight = p5_instance.displayHeight;\n\twindowWidth = p5_instance.windowWidth;\n\twindowHeight = p5_instance.windowHeight;\n\twidth = p5_instance.width;\n\theight = p5_instance.height;\n\tdisableFriendlyErrors = p5_instance.disableFriendlyErrors;\n\tdeviceOrientation = p5_instance.deviceOrientation;\n\taccelerationX = p5_instance.accelerationX;\n\taccelerationY = p5_instance.accelerationY;\n\taccelerationZ = p5_instance.accelerationZ;\n\tpAccelerationX = p5_instance.pAccelerationX;\n\tpAccelerationY = p5_instance.pAccelerationY;\n\tpAccelerationZ = p5_instance.pAccelerationZ;\n\trotationX = p5_instance.rotationX;\n\trotationY = p5_instance.rotationY;\n\trotationZ = p5_instance.rotationZ;\n\tpRotationX = p5_instance.pRotationX;\n\tpRotationY = p5_instance.pRotationY;\n\tpRotationZ = p5_instance.pRotationZ;\n\tturnAxis = p5_instance.turnAxis;\n\tkeyIsPressed = p5_instance.keyIsPressed;\n\tkey = p5_instance.key;\n\tkeyCode = p5_instance.keyCode;\n\tmouseX = p5_instance.mouseX;\n\tmouseY = p5_instance.mouseY;\n\tpmouseX = p5_instance.pmouseX;\n\tpmouseY = p5_instance.pmouseY;\n\twinMouseX = p5_instance.winMouseX;\n\twinMouseY = p5_instance.winMouseY;\n\tpwinMouseX = p5_instance.pwinMouseX;\n\tpwinMouseY = p5_instance.pwinMouseY;\n\tmouseButton = p5_instance.mouseButton;\n\tmouseIsPressed = p5_instance.mouseIsPressed;\n\ttouches = p5_instance.touches;\n\tpixels = p5_instance.pixels;\n\treturn draw_func ();\n};\nexport var global_p5_injection = function (p5_sketch) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar decorator = function (f) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'f': var f = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar wrapper = function () {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\t_P5_INSTANCE = p5_sketch;\n\t\t\treturn pre_draw (_P5_INSTANCE, f);\n\t\t};\n\t\treturn wrapper;\n\t};\n\treturn decorator;\n};\nexport var start_p5 = function (preload_func, setup_func, draw_func, event_functions) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'preload_func': var preload_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'setup_func': var setup_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'event_functions': var event_functions = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar sketch_setup = function (p5_sketch) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tp5_sketch.preload = global_p5_injection (p5_sketch) (preload_func);\n\t\tp5_sketch.setup = global_p5_injection (p5_sketch) (setup_func);\n\t\tp5_sketch.draw = global_p5_injection (p5_sketch) (draw_func);\n\t};\n\tvar instance = new p5 (sketch_setup, 'sketch-holder');\n\tvar event_function_names = tuple (['deviceMoved', 'deviceTurned', 'deviceShaken', 'windowResized', 'keyPressed', 'keyReleased', 'keyTyped', 'mousePressed', 'mouseReleased', 'mouseClicked', 'doubleClicked', 'mouseMoved', 'mouseDragged', 'mouseWheel', 'touchStarted', 'touchMoved', 'touchEnded', 'keyIsDown']);\n\tfor (var f_name of (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var f of event_function_names) {\n\t\t\tif (event_functions.py_get (f, null)) {\n\t\t\t\t__accu0__.append (f);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ()) {\n\t\tvar func = event_functions [f_name];\n\t\tvar event_func = global_p5_injection (instance) (func);\n\t\tsetattr (instance, f_name, event_func);\n\t}\n};\nexport var logOnloaded = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tconsole.log ('Lib loaded!');\n};\nexport var add_library = function (lib_name) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'lib_name': var lib_name = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar src = '';\n\treturn console.log ('Lib name is not valid:', lib_name);\n\tconsole.log ('Importing:', src);\n\tvar script = document.createElement ('script');\n\tscript.onload = logOnloaded;\n\tscript.src = src;\n\tdocument.head.appendChild (script);\n};\n\n//# sourceMappingURL=pyp5js.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_003/target/pyp5js.py",
    "content": "from python_functions import PythonFunctions\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndisableFriendlyErrors = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    __pragma__('noalias', 'clear')\n    p5_clear = _P5_INSTANCE.clear(*args)\n    __pragma__('alias', 'clear', 'py_clear')\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef preload(*args):\n    return _P5_INSTANCE.preload(*args)\n\ndef setup(*args):\n    return _P5_INSTANCE.setup(*args)\n\ndef draw(*args):\n    return _P5_INSTANCE.draw(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\n\ndef image_proxy(img):\n    \"\"\"\n    Proxy to turn of transcypt when calling img.get/set methods\n    \"\"\"\n\n    def _set(*args):\n        __pragma__('noalias', 'set')\n        value = img.set(*args)\n        __pragma__('alias', 'set', 'py_set')\n        return value\n\n    def _get(*args):\n        __pragma__('noalias', 'get')\n        value = img.get(*args)\n        __pragma__('alias', 'get', 'py_get')\n        return value\n\n    img.set = _set\n    img.get = _get\n    return img\n\n\ndef loadImage(*args):\n    imageObj = _P5_INSTANCE.loadImage(*args)\n    return image_proxy(imageObj)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    __pragma__('noalias', 'get')\n    p5_get = _P5_INSTANCE.get(*args)\n    __pragma__('alias', 'get', 'py_get')\n    return p5_get\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\n\ndef pop(*args):\n    __pragma__('noalias', 'pop')\n    p5_pop = _P5_INSTANCE.pop(*args)\n    __pragma__('alias', 'pop', 'py_pop')\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a helper/alias to create p5.Vector objects\ndef PVector(x=0, y=0, z=0):\n    return _P5_INSTANCE.createVector(x, y, z)\n# aliases  for p5.Vector class methods\nsetattr(PVector, 'dist', p5.Vector.dist)\nsetattr(PVector, 'add', p5.Vector.add)\nsetattr(PVector, 'sub', p5.Vector.sub)\nsetattr(PVector, 'mult', p5.Vector.mult)\nsetattr(PVector, 'div', p5.Vector.div)\nsetattr(PVector, 'dot', p5.Vector.dot)\nsetattr(PVector, 'cross', p5.Vector.cross)\nsetattr(PVector, 'lerp', p5.Vector.lerp)\nsetattr(PVector, 'random2D', p5.Vector.random2D)\nsetattr(PVector, 'random3D', p5.Vector.random3D)\nsetattr(PVector, 'angleBetween', p5.Vector.angleBetween)\nsetattr(PVector, 'fromAngle', p5.Vector.fromAngle)\nsetattr(PVector, 'fromAngles', p5.Vector.fromAngles)\nsetattr(PVector, 'equals', p5.Vector.equals)\n\ndef pre_draw(p5_instance, draw_func):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP, QUADRATIC\n    global QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global disableFriendlyErrors, deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    disableFriendlyErrors = p5_instance.disableFriendlyErrors\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func()\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f):\n        def wrapper():\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: a Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    instance = __new__(p5(sketch_setup, 'sketch-holder'))\n\n    # inject event functions into p5\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\"\n    )\n\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(instance)(func)\n        setattr(instance, f_name, event_func)\n\n\ndef logOnloaded():\n    console.log(\"Lib loaded!\")\n\n\ndef add_library(lib_name):\n    # placeholder for https://github.com/berinhard/pyp5js/issues/31\n    src = ''\n\n    return console.log(\"Lib name is not valid:\", lib_name)\n\n    console.log(\"Importing:\", src)\n\n    script = document.createElement(\"script\")\n    script.onload = logOnloaded\n    script.src = src\n    document.head.appendChild(script)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_003/target/python_functions.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:11\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, pow, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nvar __name__ = 'python_functions';\nexport var PythonFunctions =  __class__ ('PythonFunctions', [object], {\n\t__module__: __name__,\n});\nsetattr (PythonFunctions, 'map', map);\nsetattr (PythonFunctions, 'filter', filter);\nsetattr (PythonFunctions, 'set', set);\n\n//# sourceMappingURL=python_functions.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_003/target/python_functions.py",
    "content": "class PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_003/target/target_sketch.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:11\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, set, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {ADD, ALT, ARROW, AUDIO, AUTO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC, BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST, DEGREES, DEG_TO_RAD, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION, FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE, LEFT, LEFT_ARROW, LIGHTEST, LINEAR, LINES, LINE_LOOP, LINE_STRIP, MIRROR, MITER, MOVE, MULTIPLY, NEAREST, NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, PVector, QUADRATIC, QUADS, QUAD_STRIP, QUARTER_PI, RADIANS, RADIUS, RAD_TO_DEG, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW, ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL, _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL, _P5_INSTANCE, abs, accelerationX, accelerationY, accelerationZ, acos, add_library, alpha, ambientLight, ambientMaterial, angleMode, append, applyMatrix, arc, arrayCopy, asin, atan, atan2, background, beginContour, beginShape, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, blend, blendMode, blue, boolean, box, brightness, byte, camera, ceil, changed, char, circle, color, colorMode, concat, cone, constrain, copy, cos, createA, createAudio, createButton, createCamera, createCanvas, createCapture, createCheckbox, createColorPicker, createDiv, createElement, createFileInput, createGraphics, createImage, createImg, createInput, createNumberDict, createP, createRadio, createSelect, createShader, createSlider, createSpan, createStringDict, createVector, createVideo, createWriter, cursor, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, cylinder, day, debugMode, degrees, deviceOrientation, directionalLight, disableFriendlyErrors, displayDensity, displayHeight, displayWidth, dist, ellipse, ellipseMode, ellipsoid, endContour, endShape, erase, exp, fill, filter, float, floor, focused, frameCount, frameRate, fullscreen, getURL, getURLParams, getURLPath, global_p5_injection, green, height, hex, hour, httpDo, httpGet, httpPost, hue, image, imageMode, image_proxy, input, int, join, key, keyCode, keyIsPressed, lerp, lerpColor, lightness, lights, line, loadBytes, loadFont, loadImage, loadJSON, loadModel, loadPixels, loadShader, loadStrings, loadTable, loadXML, log, logOnloaded, loop, mag, map, match, matchAll, max, millis, min, minute, model, month, mouseButton, mouseIsPressed, mouseX, mouseY, nf, nfc, nfp, nfs, noCanvas, noCursor, noDebugMode, noErase, noFill, noLoop, noSmooth, noStroke, noTint, noise, noiseDetail, noiseSeed, norm, normalMaterial, orbitControl, ortho, pAccelerationX, pAccelerationY, pAccelerationZ, pRotationX, pRotationY, pRotationZ, perspective, pixelDensity, pixels, plane, pmouseX, pmouseY, point, pointLight, popMatrix, popStyle, pow, pre_draw, push, pushMatrix, pushStyle, pwinMouseX, pwinMouseY, py_clear, py_get, py_pop, py_set, py_sort, py_split, quad, quadraticVertex, radians, random, randomGaussian, randomSeed, rect, rectMode, red, redraw, remove, removeElements, resetMatrix, resetShader, resizeCanvas, reverse, rotate, rotateX, rotateY, rotateZ, rotationX, rotationY, rotationZ, round, saturation, save, saveCanvas, saveFrames, saveJSON, saveStrings, saveTable, scale, second, select, selectAll, setAttributes, setCamera, setMoveThreshold, setShakeThreshold, shader, shearX, shearY, shininess, shorten, shuffle, sin, size, smooth, specularMaterial, sphere, splice, splitTokens, sq, sqrt, square, start_p5, str, stroke, strokeCap, strokeJoin, strokeWeight, subset, tan, text, textAlign, textAscent, textDescent, textFont, textLeading, textSize, textStyle, textWidth, texture, textureMode, textureWrap, tint, torus, touches, translate, triangle, trim, turnAxis, unchar, unhex, updatePixels, vertex, width, winMouseX, winMouseY, windowHeight, windowWidth, year} from './pyp5js.js';\nvar __name__ = '__main__';\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var deviceMoved = null;\nexport var deviceTurned = null;\nexport var deviceShaken = null;\nexport var keyPressed = null;\nexport var keyReleased = null;\nexport var keyTyped = null;\nexport var mouseMoved = null;\nexport var mouseDragged = null;\nexport var mousePressed = null;\nexport var mouseReleased = null;\nexport var mouseClicked = null;\nexport var doubleClicked = null;\nexport var mouseWheel = null;\nexport var touchStarted = null;\nexport var touchMoved = null;\nexport var touchEnded = null;\nexport var windowResized = null;\nexport var keyIsDown = null;\nvar setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tcreateCanvas (600, 600, WEBGL);\n};\nvar draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tbackground (200);\n\ttranslate (-(100), -(100), 0);\n\tpush ();\n\tnormalMaterial ();\n\trotateZ (frameCount * 0.01);\n\trotateX (frameCount * 0.01);\n\trotateY (frameCount * 0.01);\n\tbox (50, 70, 100);\n\tpy_pop ();\n};\nexport var event_functions = dict ({'deviceMoved': deviceMoved, 'deviceTurned': deviceTurned, 'deviceShaken': deviceShaken, 'keyPressed': keyPressed, 'keyReleased': keyReleased, 'keyTyped': keyTyped, 'mouseMoved': mouseMoved, 'mouseDragged': mouseDragged, 'mousePressed': mousePressed, 'mouseReleased': mouseReleased, 'mouseClicked': mouseClicked, 'doubleClicked': doubleClicked, 'mouseWheel': mouseWheel, 'touchStarted': touchStarted, 'touchMoved': touchMoved, 'touchEnded': touchEnded, 'windowResized': windowResized, 'keyIsDown': keyIsDown});\nstart_p5 (preload, setup, draw, event_functions);\n\n//# sourceMappingURL=target_sketch.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_003/target/target_sketch.project",
    "content": "{\"options\": {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_003/target_sketch.py\", \"anno\": false, \"alimod\": false, \"build\": true, \"complex\": false, \"docat\": false, \"dassert\": false, \"dcheck\": false, \"dextex\": false, \"dlog\": false, \"dmap\": false, \"dnostrip\": false, \"dstat\": false, \"dtree\": false, \"esv\": null, \"ecom\": false, \"fcall\": false, \"gen\": false, \"iconv\": false, \"jscall\": false, \"jskeys\": false, \"jsmod\": false, \"kwargs\": true, \"keycheck\": false, \"license\": false, \"map\": true, \"nomin\": true, \"opov\": false, \"outdir\": null, \"parent\": null, \"run\": false, \"symbols\": null, \"sform\": false, \"tconv\": false, \"unit\": null, \"verbose\": false, \"x\": null, \"xreex\": false, \"xglobs\": false, \"xpath\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt\", \"xtiny\": false, \"star\": false}, \"modules\": [{\"source\": \"/home/bernardo/.pyenv/versions/pyp5js/lib/python3.8/site-packages/transcrypt/modules/org/transcrypt/__runtime__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_003/__target__/org.transcrypt.__runtime__.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_003/target_sketch.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_003/__target__/target_sketch.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/pyp5js.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_003/__target__/pyp5js.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/python_functions.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_003/__target__/python_functions.js\"}]}"
  },
  {
    "path": "docs/examples/transcrypt/sketch_003/target/target_sketch.py",
    "content": "from pyp5js import *\n\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\nkeyIsDown = None\n\n\n# 3d example\n\n\ndef setup():\n    createCanvas(600, 600, WEBGL)\n\ndef draw():\n    background(200)\n    translate(-100, -100, 0)\n    push()\n    normalMaterial()\n    rotateZ(frameCount * 0.01)\n    rotateX(frameCount * 0.01)\n    rotateY(frameCount * 0.01)\n    box(50, 70, 100)\n    pop()\n\n\n\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n    \"keyIsDown\": keyIsDown,\n}\n\nstart_p5(preload, setup, draw, event_functions)"
  },
  {
    "path": "docs/examples/transcrypt/sketch_004/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_004 - pyp5js (using Transcrypt)</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/transcrypt/sketch_004\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre>\n             <code>\n# From Prof. Claudio Esperança examples for BrythonIDE\n# https://github.com/esperanc/brythonide/blob/master/demoSketches/boids.py\n\nboids = [];\n\ndef setup() :\n  createCanvas(720, 400);\n\n  # Add an initial set of boids into the system\n  for i in range(40):\n    boids.append (Boid(random(720), random(400)))\n\ndef draw() :\n  background(51);\n  # Run all the boids\n  for boid in boids: boid.run(boids)\n\n\n# Boid class\n# Methods for Separation, Cohesion, Alignment added\nclass Boid (object):\n\n    def __init__(self, x, y) :\n        self.acceleration = createVector(0, 0);\n        self.velocity = p5.Vector.random2D();\n        self.position = createVector(x, y);\n        self.r = 3.0;\n        self.maxspeed = 3;    # Maximum speed\n        self.maxforce = 0.05; # Maximum steering force\n\n    def run (self, boids):\n        self.flock(boids);\n        self.update();\n        self.borders();\n        self.render();\n\n    # Forces go into acceleration\n    def applyForce (self,force):\n        self.acceleration.add(force);\n\n    # We accumulate a new acceleration each time based on three rules\n    def flock (self, boids) :\n        sep = self.separate(boids); # Separation\n        ali = self.align(boids);    # Alignment\n        coh = self.cohesion(boids); # Cohesion\n        # Arbitrarily weight these forces\n        sep.mult(2.5);\n        ali.mult(1.0);\n        coh.mult(1.0);\n        # Add the force vectors to acceleration\n        self.applyForce(sep);\n        self.applyForce(ali);\n        self.applyForce(coh);\n\n    # Method to update location\n    def update (self) :\n        # Update velocity\n        self.velocity.add(self.acceleration);\n        # Limit speed\n        self.velocity.limit(self.maxspeed);\n        self.position.add(self.velocity);\n        # Reset acceleration to 0 each cycle\n        self.acceleration.mult(0);\n\n    # A method that calculates and applies a steering force towards a target\n    # STEER = DESIRED MINUS VELOCITY\n    def seek (self,target):\n        desired = p5.Vector.sub(target, self.position); # A vector pointing from the location to the target\n        # Normalize desired and scale to maximum speed\n        desired.normalize();\n        desired.mult(self.maxspeed);\n        # Steering = Desired minus Velocity\n        steer = p5.Vector.sub(desired, self.velocity);\n        steer.limit(self.maxforce); # Limit to maximum steering force\n        return steer;\n\n    # Draw boid as a circle\n    def render (self) :\n        fill(127, 127);\n        stroke(200);\n        ellipse(self.position.x, self.position.y, 16, 16);\n\n    # Wraparound\n    def borders (self) :\n        if (self.position.x < -self.r): self.position.x = width + self.r;\n        if (self.position.y < -self.r): self.position.y = height + self.r;\n        if (self.position.x > width + self.r): self.position.x = -self.r;\n        if (self.position.y > height + self.r): self.position.y = -self.r;\n\n\n    # Separation\n    # Method checks for nearby boids and steers away\n    def separate (self, boids) :\n        desiredseparation = 25.0;\n        steer = createVector(0, 0);\n        count = 0;\n        # For every boid in the system, check if it's too close\n        for i in range(len(boids)):\n            d = p5.Vector.dist(self.position, boids[i].position);\n            # If the distance is greater than 0 and less than an arbitrary amount (0 when you are yourself)\n            if ((d > 0) and (d < desiredseparation)) :\n              # Calculate vector pointing away from neighbor\n              diff = p5.Vector.sub(self.position, boids[i].position);\n              diff.normalize();\n              diff.div(d); # Weight by distance\n              steer.add(diff);\n              count+=1; # Keep track of how many\n        # Average -- divide by how many\n        if (count > 0) :\n            steer.div(count);\n\n\n        # As long as the vector is greater than 0\n        if (steer.mag() > 0) :\n            # Implement Reynolds: Steering = Desired - Velocity\n            steer.normalize();\n            steer.mult(self.maxspeed);\n            steer.sub(self.velocity);\n            steer.limit(self.maxforce);\n\n        return steer;\n\n\n    # Alignment\n    # For every nearby boid in the system, calculate the average velocity\n    def align (self, boids) :\n      neighbordist = 50;\n      sum = createVector(0, 0);\n      count = 0;\n      for i in range(len(boids)):\n        d = p5.Vector.dist(self.position, boids[i].position);\n        if ((d > 0) and (d < neighbordist)) :\n          sum.add(boids[i].velocity);\n          count+=1;\n\n      if (count > 0) :\n        sum.div(count);\n        sum.normalize();\n        sum.mult(self.maxspeed);\n        steer = p5.Vector.sub(sum, self.velocity);\n        steer.limit(self.maxforce);\n        return steer;\n      else:\n        return createVector(0, 0);\n\n    # Cohesion\n    # For the average location (i.e. center) of all nearby boids, calculate steering vector towards that location\n    def cohesion  (self, boids) :\n      neighbordist = 50;\n      sum = createVector(0, 0); # Start with empty vector to accumulate all locations\n      count = 0;\n      for i in range(len(boids)):\n        d = p5.Vector.dist(self.position, boids[i].position);\n        if ((d > 0) and (d < neighbordist)) :\n          sum.add(boids[i].position); # Add location\n          count+=1;\n\n      if (count > 0) :\n        sum.div(count);\n        return self.seek(sum); # Steer towards the location\n      else:\n        return createVector(0, 0);\n\n              </code>\n          </pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/transcrypt/sketch_004/sketch_004.py",
    "content": "# From Prof. Claudio Esperança examples for BrythonIDE\n# https://github.com/esperanc/brythonide/blob/master/demoSketches/boids.py\n\nboids = [];\n\ndef setup() :\n  createCanvas(720, 400);\n\n  # Add an initial set of boids into the system\n  for i in range(40):\n    boids.append (Boid(random(720), random(400)))\n\ndef draw() :\n  background(51);\n  # Run all the boids\n  for boid in boids: boid.run(boids)\n\n\n# Boid class\n# Methods for Separation, Cohesion, Alignment added\nclass Boid (object):\n\n    def __init__(self, x, y) :\n        self.acceleration = createVector(0, 0);\n        self.velocity = p5.Vector.random2D();\n        self.position = createVector(x, y);\n        self.r = 3.0;\n        self.maxspeed = 3;    # Maximum speed\n        self.maxforce = 0.05; # Maximum steering force\n\n    def run (self, boids):\n        self.flock(boids);\n        self.update();\n        self.borders();\n        self.render();\n\n    # Forces go into acceleration\n    def applyForce (self,force):\n        self.acceleration.add(force);\n\n    # We accumulate a new acceleration each time based on three rules\n    def flock (self, boids) :\n        sep = self.separate(boids); # Separation\n        ali = self.align(boids);    # Alignment\n        coh = self.cohesion(boids); # Cohesion\n        # Arbitrarily weight these forces\n        sep.mult(2.5);\n        ali.mult(1.0);\n        coh.mult(1.0);\n        # Add the force vectors to acceleration\n        self.applyForce(sep);\n        self.applyForce(ali);\n        self.applyForce(coh);\n\n    # Method to update location\n    def update (self) :\n        # Update velocity\n        self.velocity.add(self.acceleration);\n        # Limit speed\n        self.velocity.limit(self.maxspeed);\n        self.position.add(self.velocity);\n        # Reset acceleration to 0 each cycle\n        self.acceleration.mult(0);\n\n    # A method that calculates and applies a steering force towards a target\n    # STEER = DESIRED MINUS VELOCITY\n    def seek (self,target):\n        desired = p5.Vector.sub(target, self.position); # A vector pointing from the location to the target\n        # Normalize desired and scale to maximum speed\n        desired.normalize();\n        desired.mult(self.maxspeed);\n        # Steering = Desired minus Velocity\n        steer = p5.Vector.sub(desired, self.velocity);\n        steer.limit(self.maxforce); # Limit to maximum steering force\n        return steer;\n\n    # Draw boid as a circle\n    def render (self) :\n        fill(127, 127);\n        stroke(200);\n        ellipse(self.position.x, self.position.y, 16, 16);\n\n    # Wraparound\n    def borders (self) :\n        if (self.position.x < -self.r): self.position.x = width + self.r;\n        if (self.position.y < -self.r): self.position.y = height + self.r;\n        if (self.position.x > width + self.r): self.position.x = -self.r;\n        if (self.position.y > height + self.r): self.position.y = -self.r;\n\n\n    # Separation\n    # Method checks for nearby boids and steers away\n    def separate (self, boids) :\n        desiredseparation = 25.0;\n        steer = createVector(0, 0);\n        count = 0;\n        # For every boid in the system, check if it's too close\n        for i in range(len(boids)):\n            d = p5.Vector.dist(self.position, boids[i].position);\n            # If the distance is greater than 0 and less than an arbitrary amount (0 when you are yourself)\n            if ((d > 0) and (d < desiredseparation)) :\n              # Calculate vector pointing away from neighbor\n              diff = p5.Vector.sub(self.position, boids[i].position);\n              diff.normalize();\n              diff.div(d); # Weight by distance\n              steer.add(diff);\n              count+=1; # Keep track of how many\n        # Average -- divide by how many\n        if (count > 0) :\n            steer.div(count);\n\n\n        # As long as the vector is greater than 0\n        if (steer.mag() > 0) :\n            # Implement Reynolds: Steering = Desired - Velocity\n            steer.normalize();\n            steer.mult(self.maxspeed);\n            steer.sub(self.velocity);\n            steer.limit(self.maxforce);\n\n        return steer;\n\n\n    # Alignment\n    # For every nearby boid in the system, calculate the average velocity\n    def align (self, boids) :\n      neighbordist = 50;\n      sum = createVector(0, 0);\n      count = 0;\n      for i in range(len(boids)):\n        d = p5.Vector.dist(self.position, boids[i].position);\n        if ((d > 0) and (d < neighbordist)) :\n          sum.add(boids[i].velocity);\n          count+=1;\n\n      if (count > 0) :\n        sum.div(count);\n        sum.normalize();\n        sum.mult(self.maxspeed);\n        steer = p5.Vector.sub(sum, self.velocity);\n        steer.limit(self.maxforce);\n        return steer;\n      else:\n        return createVector(0, 0);\n\n    # Cohesion\n    # For the average location (i.e. center) of all nearby boids, calculate steering vector towards that location\n    def cohesion  (self, boids) :\n      neighbordist = 50;\n      sum = createVector(0, 0); # Start with empty vector to accumulate all locations\n      count = 0;\n      for i in range(len(boids)):\n        d = p5.Vector.dist(self.position, boids[i].position);\n        if ((d > 0) and (d < neighbordist)) :\n          sum.add(boids[i].position); # Add location\n          count+=1;\n\n      if (count > 0) :\n        sum.div(count);\n        return self.seek(sum); # Steer towards the location\n      else:\n        return createVector(0, 0);\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_004/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/transcrypt/sketch_004/target/org.transcrypt.__runtime__.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:12\nvar __name__ = 'org.transcrypt.__runtime__';\nexport var __envir__ = {};\n__envir__.interpreter_name = 'python';\n__envir__.transpiler_name = 'transcrypt';\n__envir__.executor_name = __envir__.transpiler_name;\n__envir__.transpiler_version = '3.9.0';\n\nexport function __nest__ (headObject, tailNames, value) {\n    var current = headObject;\n    if (tailNames != '') {\n        var tailChain = tailNames.split ('.');\n        var firstNewIndex = tailChain.length;\n        for (var index = 0; index < tailChain.length; index++) {\n            if (!current.hasOwnProperty (tailChain [index])) {\n                firstNewIndex = index;\n                break;\n            }\n            current = current [tailChain [index]];\n        }\n        for (var index = firstNewIndex; index < tailChain.length; index++) {\n            current [tailChain [index]] = {};\n            current = current [tailChain [index]];\n        }\n    }\n    for (let attrib of Object.getOwnPropertyNames (value)) {\n        Object.defineProperty (current, attrib, {\n            get () {return value [attrib];},\n            enumerable: true,\n            configurable: true\n        });\n    }\n};\nexport function __init__ (module) {\n    if (!module.__inited__) {\n        module.__all__.__init__ (module.__all__);\n        module.__inited__ = true;\n    }\n    return module.__all__;\n};\nexport function __get__ (aThis, func, quotedFuncName) {\n    if (aThis) {\n        if (aThis.hasOwnProperty ('__class__') || typeof aThis == 'string' || aThis instanceof String) {\n            if (quotedFuncName) {\n                Object.defineProperty (aThis, quotedFuncName, {\n                    value: function () {\n                        var args = [] .slice.apply (arguments);\n                        return func.apply (null, [aThis] .concat (args));\n                    },\n                    writable: true,\n                    enumerable: true,\n                    configurable: true\n                });\n            }\n            return function () {\n                var args = [] .slice.apply (arguments);\n                return func.apply (null, [aThis.__proxy__ ? aThis.__proxy__ : aThis] .concat (args));\n            };\n        }\n        else {\n            return func;\n        }\n    }\n    else {\n        return func;\n    }\n};\nexport function __getcm__ (aThis, func, quotedFuncName) {\n    if (aThis.hasOwnProperty ('__class__')) {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis.__class__] .concat (args));\n        };\n    }\n    else {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis] .concat (args));\n        };\n    }\n};\nexport function __getsm__ (aThis, func, quotedFuncName) {\n    return func;\n};\nexport var py_metatype = {\n    __name__: 'type',\n    __bases__: [],\n    __new__: function (meta, name, bases, attribs) {\n        var cls = function () {\n            var args = [] .slice.apply (arguments);\n            return cls.__new__ (args);\n        };\n        for (var index = bases.length - 1; index >= 0; index--) {\n            var base = bases [index];\n            for (var attrib in base) {\n                var descrip = Object.getOwnPropertyDescriptor (base, attrib);\n                if (descrip == null) {\n                    continue;\n                }\n                Object.defineProperty (cls, attrib, descrip);\n            }\n            for (let symbol of Object.getOwnPropertySymbols (base)) {\n                let descrip = Object.getOwnPropertyDescriptor (base, symbol);\n                Object.defineProperty (cls, symbol, descrip);\n            }\n        }\n        cls.__metaclass__ = meta;\n        cls.__name__ = name.startsWith ('py_') ? name.slice (3) : name;\n        cls.__bases__ = bases;\n        for (var attrib in attribs) {\n            var descrip = Object.getOwnPropertyDescriptor (attribs, attrib);\n            Object.defineProperty (cls, attrib, descrip);\n        }\n        for (let symbol of Object.getOwnPropertySymbols (attribs)) {\n            let descrip = Object.getOwnPropertyDescriptor (attribs, symbol);\n            Object.defineProperty (cls, symbol, descrip);\n        }\n        return cls;\n    }\n};\npy_metatype.__metaclass__ = py_metatype;\nexport var object = {\n    __init__: function (self) {},\n    __metaclass__: py_metatype,\n    __name__: 'object',\n    __bases__: [],\n    __new__: function (args) {\n        var instance = Object.create (this, {__class__: {value: this, enumerable: true}});\n        if ('__getattr__' in this || '__setattr__' in this) {\n            instance.__proxy__ = new Proxy (instance, {\n                get: function (target, name) {\n                    let result = target [name];\n                    if (result == undefined) {\n                        return target.__getattr__ (name);\n                    }\n                    else {\n                        return result;\n                    }\n                },\n                set: function (target, name, value) {\n                    try {\n                        target.__setattr__ (name, value);\n                    }\n                    catch (exception) {\n                        target [name] = value;\n                    }\n                    return true;\n                }\n            })\n\t\t\tinstance = instance.__proxy__\n        }\n        this.__init__.apply (null, [instance] .concat (args));\n        return instance;\n    }\n};\nexport function __class__ (name, bases, attribs, meta) {\n    if (meta === undefined) {\n        meta = bases [0] .__metaclass__;\n    }\n    return meta.__new__ (meta, name, bases, attribs);\n};\nexport function __pragma__ () {};\nexport function __call__ (/* <callee>, <this>, <params>* */) {\n    var args = [] .slice.apply (arguments);\n    if (typeof args [0] == 'object' && '__call__' in args [0]) {\n        return args [0] .__call__ .apply (args [1], args.slice (2));\n    }\n    else {\n        return args [0] .apply (args [1], args.slice (2));\n    }\n};\n__envir__.executor_name = __envir__.transpiler_name;\nvar __main__ = {__file__: ''};\nvar __except__ = null;\nexport function __kwargtrans__ (anObject) {\n    anObject.__kwargtrans__ = null;\n    anObject.constructor = Object;\n    return anObject;\n}\nexport function __super__ (aClass, methodName) {\n    for (let base of aClass.__bases__) {\n        if (methodName in base) {\n           return base [methodName];\n        }\n    }\n    throw new Exception ('Superclass method not found');\n}\nexport function property (getter, setter) {\n    if (!setter) {\n        setter = function () {};\n    }\n    return {get: function () {return getter (this)}, set: function (value) {setter (this, value)}, enumerable: true};\n}\nexport function __setproperty__ (anObject, name, descriptor) {\n    if (!anObject.hasOwnProperty (name)) {\n        Object.defineProperty (anObject, name, descriptor);\n    }\n}\nexport function assert (condition, message) {\n    if (!condition) {\n        throw AssertionError (message, new Error ());\n    }\n}\nexport function __mergekwargtrans__ (object0, object1) {\n    var result = {};\n    for (var attrib in object0) {\n        result [attrib] = object0 [attrib];\n    }\n    for (var attrib in object1) {\n        result [attrib] = object1 [attrib];\n    }\n    return result;\n};\nexport function __mergefields__ (targetClass, sourceClass) {\n    let fieldNames = ['__reprfields__', '__comparefields__', '__initfields__']\n    if (sourceClass [fieldNames [0]]) {\n        if (targetClass [fieldNames [0]]) {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set ([...targetClass [fieldName], ...sourceClass [fieldName]]);\n            }\n        }\n        else {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set (sourceClass [fieldName]);\n            }\n        }\n    }\n}\nexport function __withblock__ (manager, statements) {\n    if (hasattr (manager, '__enter__')) {\n        try {\n            manager.__enter__ ();\n            statements ();\n            manager.__exit__ ();\n        }\n        catch (exception) {\n            if (! (manager.__exit__ (exception.name, exception, exception.stack))) {\n                throw exception;\n            }\n        }\n    }\n    else {\n        statements ();\n        manager.close ();\n    }\n};\nexport function dir (obj) {\n    var aList = [];\n    for (var aKey in obj) {\n        aList.push (aKey.startsWith ('py_') ? aKey.slice (3) : aKey);\n    }\n    aList.sort ();\n    return aList;\n};\nexport function setattr (obj, name, value) {\n    obj [name] = value;\n};\nexport function getattr (obj, name) {\n    return name in obj ? obj [name] : obj ['py_' + name];\n};\nexport function hasattr (obj, name) {\n    try {\n        return name in obj || 'py_' + name in obj;\n    }\n    catch (exception) {\n        return false;\n    }\n};\nexport function delattr (obj, name) {\n    if (name in obj) {\n        delete obj [name];\n    }\n    else {\n        delete obj ['py_' + name];\n    }\n};\nexport function __in__ (element, container) {\n    if (container === undefined || container === null) {\n        return false;\n    }\n    if (container.__contains__ instanceof Function) {\n        return container.__contains__ (element);\n    }\n    else {\n        return (\n            container.indexOf ?\n            container.indexOf (element) > -1 :\n            container.hasOwnProperty (element)\n        );\n    }\n};\nexport function __specialattrib__ (attrib) {\n    return (attrib.startswith ('__') && attrib.endswith ('__')) || attrib == 'constructor' || attrib.startswith ('py_');\n};\nexport function len (anObject) {\n    if (anObject === undefined || anObject === null) {\n        return 0;\n    }\n    if (anObject.__len__ instanceof Function) {\n        return anObject.__len__ ();\n    }\n    if (anObject.length !== undefined) {\n        return anObject.length;\n    }\n    var length = 0;\n    for (var attr in anObject) {\n        if (!__specialattrib__ (attr)) {\n            length++;\n        }\n    }\n    return length;\n};\nexport function __i__ (any) {\n    return py_typeof (any) == dict ? any.py_keys () : any;\n}\nexport function __k__ (keyed, key) {\n    var result = keyed [key];\n    if (typeof result == 'undefined') {\n        if (keyed instanceof Array)\n            if (key == +key && key >= 0 && keyed.length > key)\n                return result;\n            else\n                throw IndexError (key, new Error());\n        else\n            throw KeyError (key, new Error());\n    }\n    return result;\n}\nexport function __t__ (target) {\n    return (\n        target === undefined || target === null ? false :\n        ['boolean', 'number'] .indexOf (typeof target) >= 0 ? target :\n        target.__bool__ instanceof Function ? (target.__bool__ () ? target : false) :\n        target.__len__ instanceof Function ?  (target.__len__ () !== 0 ? target : false) :\n        target instanceof Function ? target :\n        len (target) !== 0 ? target :\n        false\n    );\n}\nexport function float (any) {\n    if (any == 'inf') {\n        return Infinity;\n    }\n    else if (any == '-inf') {\n        return -Infinity;\n    }\n    else if (any == 'nan') {\n        return NaN;\n    }\n    else if (isNaN (parseFloat (any))) {\n        if (any === false) {\n            return 0;\n        }\n        else if (any === true) {\n            return 1;\n        }\n        else {\n            throw ValueError (\"could not convert string to float: '\" + str(any) + \"'\", new Error ());\n        }\n    }\n    else {\n        return +any;\n    }\n};\nfloat.__name__ = 'float';\nfloat.__bases__ = [object];\nexport function int (any) {\n    return float (any) | 0\n};\nint.__name__ = 'int';\nint.__bases__ = [object];\nexport function bool (any) {\n    return !!__t__ (any);\n};\nbool.__name__ = 'bool';\nbool.__bases__ = [int];\nexport function py_typeof (anObject) {\n    var aType = typeof anObject;\n    if (aType == 'object') {\n        try {\n            return '__class__' in anObject ? anObject.__class__ : object;\n        }\n        catch (exception) {\n            return aType;\n        }\n    }\n    else {\n        return (\n            aType == 'boolean' ? bool :\n            aType == 'string' ? str :\n            aType == 'number' ? (anObject % 1 == 0 ? int : float) :\n            null\n        );\n    }\n};\nexport function issubclass (aClass, classinfo) {\n    if (classinfo instanceof Array) {\n        for (let aClass2 of classinfo) {\n            if (issubclass (aClass, aClass2)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    try {\n        var aClass2 = aClass;\n        if (aClass2 == classinfo) {\n            return true;\n        }\n        else {\n            var bases = [].slice.call (aClass2.__bases__);\n            while (bases.length) {\n                aClass2 = bases.shift ();\n                if (aClass2 == classinfo) {\n                    return true;\n                }\n                if (aClass2.__bases__.length) {\n                    bases = [].slice.call (aClass2.__bases__).concat (bases);\n                }\n            }\n            return false;\n        }\n    }\n    catch (exception) {\n        return aClass == classinfo || classinfo == object;\n    }\n};\nexport function isinstance (anObject, classinfo) {\n    try {\n        return '__class__' in anObject ? issubclass (anObject.__class__, classinfo) : issubclass (py_typeof (anObject), classinfo);\n    }\n    catch (exception) {\n        return issubclass (py_typeof (anObject), classinfo);\n    }\n};\nexport function callable (anObject) {\n    return anObject && typeof anObject == 'object' && '__call__' in anObject ? true : typeof anObject === 'function';\n};\nexport function repr (anObject) {\n    try {\n        return anObject.__repr__ ();\n    }\n    catch (exception) {\n        try {\n            return anObject.__str__ ();\n        }\n        catch (exception) {\n            try {\n                if (anObject == null) {\n                    return 'None';\n                }\n                else if (anObject.constructor == Object) {\n                    var result = '{';\n                    var comma = false;\n                    for (var attrib in anObject) {\n                        if (!__specialattrib__ (attrib)) {\n                            if (attrib.isnumeric ()) {\n                                var attribRepr = attrib;\n                            }\n                            else {\n                                var attribRepr = '\\'' + attrib + '\\'';\n                            }\n                            if (comma) {\n                                result += ', ';\n                            }\n                            else {\n                                comma = true;\n                            }\n                            result += attribRepr + ': ' + repr (anObject [attrib]);\n                        }\n                    }\n                    result += '}';\n                    return result;\n                }\n                else {\n                    return typeof anObject == 'boolean' ? anObject.toString () .capitalize () : anObject.toString ();\n                }\n            }\n            catch (exception) {\n                return '<object of type: ' + typeof anObject + '>';\n            }\n        }\n    }\n};\nexport function chr (charCode) {\n    return String.fromCharCode (charCode);\n};\nexport function ord (aChar) {\n    return aChar.charCodeAt (0);\n};\nexport function max (nrOrSeq) {\n    return arguments.length == 1 ? Math.max (...nrOrSeq) : Math.max (...arguments);\n};\nexport function min (nrOrSeq) {\n    return arguments.length == 1 ? Math.min (...nrOrSeq) : Math.min (...arguments);\n};\nexport var abs = Math.abs;\nexport function round (number, ndigits) {\n    if (ndigits) {\n        var scale = Math.pow (10, ndigits);\n        number *= scale;\n    }\n    var rounded = Math.round (number);\n    if (rounded - number == 0.5 && rounded % 2) {\n        rounded -= 1;\n    }\n    if (ndigits) {\n        rounded /= scale;\n    }\n    return rounded;\n};\nexport function __jsUsePyNext__ () {\n    try {\n        var result = this.__next__ ();\n        return {value: result, done: false};\n    }\n    catch (exception) {\n        return {value: undefined, done: true};\n    }\n}\nexport function __pyUseJsNext__ () {\n    var result = this.next ();\n    if (result.done) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result.value;\n    }\n}\nexport function py_iter (iterable) {\n    if (typeof iterable == 'string' || '__iter__' in iterable) {\n        var result = iterable.__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('selector' in iterable) {\n        var result = list (iterable) .__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('next' in iterable) {\n        var result = iterable\n        if (! ('__next__' in result)) {\n            result.__next__ = __pyUseJsNext__;\n        }\n    }\n    else if (Symbol.iterator in iterable) {\n        var result = iterable [Symbol.iterator] ();\n        result.__next__ = __pyUseJsNext__;\n    }\n    else {\n        throw IterableError (new Error ());\n    }\n    result [Symbol.iterator] = function () {return result;};\n    return result;\n}\nexport function py_next (iterator) {\n    try {\n        var result = iterator.__next__ ();\n    }\n    catch (exception) {\n        var result = iterator.next ();\n        if (result.done) {\n            throw StopIteration (new Error ());\n        }\n        else {\n            return result.value;\n        }\n    }\n    if (result == undefined) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result;\n    }\n}\nexport function __PyIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__PyIterator__.prototype.__next__ = function() {\n    if (this.index < this.iterable.length) {\n        return this.iterable [this.index++];\n    }\n    else {\n        throw StopIteration (new Error ());\n    }\n};\nexport function __JsIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__JsIterator__.prototype.next = function () {\n    if (this.index < this.iterable.py_keys.length) {\n        return {value: this.index++, done: false};\n    }\n    else {\n        return {value: undefined, done: true};\n    }\n};\nexport function py_reversed (iterable) {\n    iterable = iterable.slice ();\n    iterable.reverse ();\n    return iterable;\n};\nexport function zip () {\n    var args = [] .slice.call (arguments);\n    for (var i = 0; i < args.length; i++) {\n        if (typeof args [i] == 'string') {\n            args [i] = args [i] .split ('');\n        }\n        else if (!Array.isArray (args [i])) {\n            args [i] = Array.from (args [i]);\n        }\n    }\n    var shortest = args.length == 0 ? [] : args.reduce (\n        function (array0, array1) {\n            return array0.length < array1.length ? array0 : array1;\n        }\n    );\n    return shortest.map (\n        function (current, index) {\n            return args.map (\n                function (current) {\n                    return current [index];\n                }\n            );\n        }\n    );\n};\nexport function range (start, stop, step) {\n    if (stop == undefined) {\n        stop = start;\n        start = 0;\n    }\n    if (step == undefined) {\n        step = 1;\n    }\n    if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) {\n        return [];\n    }\n    var result = [];\n    for (var i = start; step > 0 ? i < stop : i > stop; i += step) {\n        result.push(i);\n    }\n    return result;\n};\nexport function any (iterable) {\n    for (let item of iterable) {\n        if (bool (item)) {\n            return true;\n        }\n    }\n    return false;\n}\nexport function all (iterable) {\n    for (let item of iterable) {\n        if (! bool (item)) {\n            return false;\n        }\n    }\n    return true;\n}\nexport function sum (iterable) {\n    let result = 0;\n    for (let item of iterable) {\n        result += item;\n    }\n    return result;\n}\nexport function enumerate (iterable) {\n    return zip (range (len (iterable)), iterable);\n}\nexport function copy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = anObject [attrib];\n            }\n        }\n        return result;\n    }\n}\nexport function deepcopy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = deepcopy (anObject [attrib]);\n            }\n        }\n        return result;\n    }\n}\nexport function list (iterable) {\n    let instance = iterable ? Array.from (iterable) : [];\n    return instance;\n}\nArray.prototype.__class__ = list;\nlist.__name__ = 'list';\nlist.__bases__ = [object];\nArray.prototype.__iter__ = function () {return new __PyIterator__ (this);};\nArray.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    else if (stop > this.length) {\n        stop = this.length;\n    }\n    if (step == 1) {\n        return Array.prototype.slice.call(this, start, stop);\n    }\n    let result = list ([]);\n    for (let index = start; index < stop; index += step) {\n        result.push (this [index]);\n    }\n    return result;\n};\nArray.prototype.__setslice__ = function (start, stop, step, source) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    if (step == null) {\n        Array.prototype.splice.apply (this, [start, stop - start] .concat (source));\n    }\n    else {\n        let sourceIndex = 0;\n        for (let targetIndex = start; targetIndex < stop; targetIndex += step) {\n            this [targetIndex] = source [sourceIndex++];\n        }\n    }\n};\nArray.prototype.__repr__ = function () {\n    if (this.__class__ == set && !this.length) {\n        return 'set()';\n    }\n    let result = !this.__class__ || this.__class__ == list ? '[' : this.__class__ == tuple ? '(' : '{';\n    for (let index = 0; index < this.length; index++) {\n        if (index) {\n            result += ', ';\n        }\n        result += repr (this [index]);\n    }\n    if (this.__class__ == tuple && this.length == 1) {\n        result += ',';\n    }\n    result += !this.__class__ || this.__class__ == list ? ']' : this.__class__ == tuple ? ')' : '}';;\n    return result;\n};\nArray.prototype.__str__ = Array.prototype.__repr__;\nArray.prototype.append = function (element) {\n    this.push (element);\n};\nArray.prototype.py_clear = function () {\n    this.length = 0;\n};\nArray.prototype.extend = function (aList) {\n    this.push.apply (this, aList);\n};\nArray.prototype.insert = function (index, element) {\n    this.splice (index, 0, element);\n};\nArray.prototype.remove = function (element) {\n    let index = this.indexOf (element);\n    if (index == -1) {\n        throw ValueError (\"list.remove(x): x not in list\", new Error ());\n    }\n    this.splice (index, 1);\n};\nArray.prototype.index = function (element) {\n    return this.indexOf (element);\n};\nArray.prototype.py_pop = function (index) {\n    if (index == undefined) {\n        return this.pop ();\n    }\n    else {\n        return this.splice (index, 1) [0];\n    }\n};\nArray.prototype.py_sort = function () {\n    __sort__.apply  (null, [this].concat ([] .slice.apply (arguments)));\n};\nArray.prototype.__add__ = function (aList) {\n    return list (this.concat (aList));\n};\nArray.prototype.__mul__ = function (scalar) {\n    let result = this;\n    for (let i = 1; i < scalar; i++) {\n        result = result.concat (this);\n    }\n    return result;\n};\nArray.prototype.__rmul__ = Array.prototype.__mul__;\nexport function tuple (iterable) {\n    let instance = iterable ? [] .slice.apply (iterable) : [];\n    instance.__class__ = tuple;\n    return instance;\n}\ntuple.__name__ = 'tuple';\ntuple.__bases__ = [object];\nexport function set (iterable) {\n    let instance = [];\n    if (iterable) {\n        for (let index = 0; index < iterable.length; index++) {\n            instance.add (iterable [index]);\n        }\n    }\n    instance.__class__ = set;\n    return instance;\n}\nset.__name__ = 'set';\nset.__bases__ = [object];\nArray.prototype.__bindexOf__ = function (element) {\n    element += '';\n    let mindex = 0;\n    let maxdex = this.length - 1;\n    while (mindex <= maxdex) {\n        let index = (mindex + maxdex) / 2 | 0;\n        let middle = this [index] + '';\n        if (middle < element) {\n            mindex = index + 1;\n        }\n        else if (middle > element) {\n            maxdex = index - 1;\n        }\n        else {\n            return index;\n        }\n    }\n    return -1;\n};\nArray.prototype.add = function (element) {\n    if (this.indexOf (element) == -1) {\n        this.push (element);\n    }\n};\nArray.prototype.discard = function (element) {\n    var index = this.indexOf (element);\n    if (index != -1) {\n        this.splice (index, 1);\n    }\n};\nArray.prototype.isdisjoint = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issuperset = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) == -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issubset = function (other) {\n    return set (other.slice ()) .issuperset (this);\n};\nArray.prototype.union = function (other) {\n    let result = set (this.slice () .sort ());\n    for (let i = 0; i < other.length; i++) {\n        if (result.__bindexOf__ (other [i]) == -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.intersection = function (other) {\n    this.sort ();\n    let result = set ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.difference = function (other) {\n    let sother = set (other.slice () .sort ());\n    let result = set ();\n    for (let i = 0; i < this.length; i++) {\n        if (sother.__bindexOf__ (this [i]) == -1) {\n            result.push (this [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.symmetric_difference = function (other) {\n    return this.union (other) .difference (this.intersection (other));\n};\nArray.prototype.py_update = function () {\n    let updated = [] .concat.apply (this.slice (), arguments) .sort ();\n    this.py_clear ();\n    for (let i = 0; i < updated.length; i++) {\n        if (updated [i] != updated [i - 1]) {\n            this.push (updated [i]);\n        }\n    }\n};\nArray.prototype.__eq__ = function (other) {\n    if (this.length != other.length) {\n        return false;\n    }\n    if (this.__class__ == set) {\n        this.sort ();\n        other.sort ();\n    }\n    for (let i = 0; i < this.length; i++) {\n        if (this [i] != other [i]) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.__ne__ = function (other) {\n    return !this.__eq__ (other);\n};\nArray.prototype.__le__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issubset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] > other [i]) {\n                return false;\n            }\n            else if (this [i] < other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__ge__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issuperset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] < other [i]) {\n                return false;\n            }\n            else if (this [i] > other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__lt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issubset (other) && !this.issuperset (other) :\n        !this.__ge__ (other)\n    );\n};\nArray.prototype.__gt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issuperset (other) && !this.issubset (other) :\n        !this.__le__ (other)\n    );\n};\nexport function bytearray (bytable, encoding) {\n    if (bytable == undefined) {\n        return new Uint8Array (0);\n    }\n    else {\n        let aType = py_typeof (bytable);\n        if (aType == int) {\n            return new Uint8Array (bytable);\n        }\n        else if (aType == str) {\n            let aBytes = new Uint8Array (len (bytable));\n            for (let i = 0; i < len (bytable); i++) {\n                aBytes [i] = bytable.charCodeAt (i);\n            }\n            return aBytes;\n        }\n        else if (aType == list || aType == tuple) {\n            return new Uint8Array (bytable);\n        }\n        else {\n            throw py_TypeError;\n        }\n    }\n}\nexport var bytes = bytearray;\nUint8Array.prototype.__add__ = function (aBytes) {\n    let result = new Uint8Array (this.length + aBytes.length);\n    result.set (this);\n    result.set (aBytes, this.length);\n    return result;\n};\nUint8Array.prototype.__mul__ = function (scalar) {\n    let result = new Uint8Array (scalar * this.length);\n    for (let i = 0; i < scalar; i++) {\n        result.set (this, i * this.length);\n    }\n    return result;\n};\nUint8Array.prototype.__rmul__ = Uint8Array.prototype.__mul__;\nexport function str (stringable) {\n    if (typeof stringable === 'number')\n        return stringable.toString();\n    else {\n        try {\n            return stringable.__str__ ();\n        }\n        catch (exception) {\n            try {\n                return repr (stringable);\n            }\n            catch (exception) {\n                return String (stringable);\n            }\n        }\n    }\n};\nString.prototype.__class__ = str;\nstr.__name__ = 'str';\nstr.__bases__ = [object];\nString.prototype.__iter__ = function () {new __PyIterator__ (this);};\nString.prototype.__repr__ = function () {\n    return (this.indexOf ('\\'') == -1 ? '\\'' + this + '\\'' : '\"' + this + '\"') .py_replace ('\\t', '\\\\t') .py_replace ('\\n', '\\\\n');\n};\nString.prototype.__str__ = function () {\n    return this;\n};\nString.prototype.capitalize = function () {\n    return this.charAt (0).toUpperCase () + this.slice (1);\n};\nString.prototype.endswith = function (suffix) {\n    if (suffix instanceof Array) {\n        for (var i=0;i<suffix.length;i++) {\n            if (this.slice (-suffix[i].length) == suffix[i])\n                return true;\n        }\n    } else\n        return suffix == '' || this.slice (-suffix.length) == suffix;\n    return false;\n};\nString.prototype.find = function (sub, start) {\n    return this.indexOf (sub, start);\n};\nString.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    var result = '';\n    if (step == 1) {\n        result = this.substring (start, stop);\n    }\n    else {\n        for (var index = start; index < stop; index += step) {\n            result = result.concat (this.charAt(index));\n        }\n    }\n    return result;\n};\n__setproperty__ (String.prototype, 'format', {\n    get: function () {return __get__ (this, function (self) {\n        var args = tuple ([] .slice.apply (arguments).slice (1));\n        var autoIndex = 0;\n        return self.replace (/\\{(\\w*)\\}/g, function (match, key) {\n            if (key == '') {\n                key = autoIndex++;\n            }\n            if (key == +key) {\n                return args [key] === undefined ? match : str (args [key]);\n            }\n            else {\n                for (var index = 0; index < args.length; index++) {\n                    if (typeof args [index] == 'object' && args [index][key] !== undefined) {\n                        return str (args [index][key]);\n                    }\n                }\n                return match;\n            }\n        });\n    });},\n    enumerable: true\n});\nString.prototype.isalnum = function () {\n    return /^[0-9a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isalpha = function () {\n    return /^[a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isdecimal = function () {\n    return /^[0-9]{1,}$/.test(this)\n}\nString.prototype.isdigit = function () {\n    return this.isdecimal()\n}\nString.prototype.islower = function () {\n    return /^[a-z]{1,}$/.test(this)\n}\nString.prototype.isupper = function () {\n    return /^[A-Z]{1,}$/.test(this)\n}\nString.prototype.isspace = function () {\n    return /^[\\s]{1,}$/.test(this)\n}\nString.prototype.isnumeric = function () {\n    return !isNaN (parseFloat (this)) && isFinite (this);\n};\nString.prototype.join = function (strings) {\n    strings = Array.from (strings);\n    return strings.join (this);\n};\nString.prototype.lower = function () {\n    return this.toLowerCase ();\n};\nString.prototype.py_replace = function (old, aNew, maxreplace) {\n    return this.split (old, maxreplace) .join (aNew);\n};\nString.prototype.lstrip = function () {\n    return this.replace (/^\\s*/g, '');\n};\nString.prototype.rfind = function (sub, start) {\n    return this.lastIndexOf (sub, start);\n};\nString.prototype.rsplit = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            var maxrsplit = result.length - maxsplit;\n            return [result.slice (0, maxrsplit) .join (sep)] .concat (result.slice (maxrsplit));\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.rstrip = function () {\n    return this.replace (/\\s*$/g, '');\n};\nString.prototype.py_split = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            return result.slice (0, maxsplit).concat ([result.slice (maxsplit).join (sep)]);\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.startswith = function (prefix) {\n    if (prefix instanceof Array) {\n        for (var i=0;i<prefix.length;i++) {\n            if (this.indexOf (prefix [i]) == 0)\n                return true;\n        }\n    } else\n        return this.indexOf (prefix) == 0;\n    return false;\n};\nString.prototype.strip = function () {\n    return this.trim ();\n};\nString.prototype.upper = function () {\n    return this.toUpperCase ();\n};\nString.prototype.__mul__ = function (scalar) {\n    var result = '';\n    for (var i = 0; i < scalar; i++) {\n        result = result + this;\n    }\n    return result;\n};\nString.prototype.__rmul__ = String.prototype.__mul__;\nfunction __contains__ (element) {\n    return this.hasOwnProperty (element);\n}\nfunction __keys__ () {\n    var keys = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            keys.push (attrib);\n        }\n    }\n    return keys;\n}\nfunction __items__ () {\n    var items = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            items.push ([attrib, this [attrib]]);\n        }\n    }\n    return items;\n}\nfunction __del__ (key) {\n    delete this [key];\n}\nfunction __clear__ () {\n    for (var attrib in this) {\n        delete this [attrib];\n    }\n}\nfunction __getdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result == undefined) {\n        result = this ['py_' + aKey]\n    }\n    return result == undefined ? (aDefault == undefined ? null : aDefault) : result;\n}\nfunction __setdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        return result;\n    }\n    var val = aDefault == undefined ? null : aDefault;\n    this [aKey] = val;\n    return val;\n}\nfunction __pop__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        delete this [aKey];\n        return result;\n    } else {\n        if ( aDefault === undefined ) {\n            throw KeyError (aKey, new Error());\n        }\n    }\n    return aDefault;\n}\nfunction __popitem__ () {\n    var aKey = Object.keys (this) [0];\n    if (aKey == null) {\n        throw KeyError (\"popitem(): dictionary is empty\", new Error ());\n    }\n    var result = tuple ([aKey, this [aKey]]);\n    delete this [aKey];\n    return result;\n}\nfunction __update__ (aDict) {\n    for (var aKey in aDict) {\n        this [aKey] = aDict [aKey];\n    }\n}\nfunction __values__ () {\n    var values = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            values.push (this [attrib]);\n        }\n    }\n    return values;\n}\nfunction __dgetitem__ (aKey) {\n    return this [aKey];\n}\nfunction __dsetitem__ (aKey, aValue) {\n    this [aKey] = aValue;\n}\nexport function dict (objectOrPairs) {\n    var instance = {};\n    if (!objectOrPairs || objectOrPairs instanceof Array) {\n        if (objectOrPairs) {\n            for (var index = 0; index < objectOrPairs.length; index++) {\n                var pair = objectOrPairs [index];\n                if ( !(pair instanceof Array) || pair.length != 2) {\n                    throw ValueError(\n                        \"dict update sequence element #\" + index +\n                        \" has length \" + pair.length +\n                        \"; 2 is required\", new Error());\n                }\n                var key = pair [0];\n                var val = pair [1];\n                if (!(objectOrPairs instanceof Array) && objectOrPairs instanceof Object) {\n                     if (!isinstance (objectOrPairs, dict)) {\n                         val = dict (val);\n                     }\n                }\n                instance [key] = val;\n            }\n        }\n    }\n    else {\n        if (isinstance (objectOrPairs, dict)) {\n            var aKeys = objectOrPairs.py_keys ();\n            for (var index = 0; index < aKeys.length; index++ ) {\n                var key = aKeys [index];\n                instance [key] = objectOrPairs [key];\n            }\n        } else if (objectOrPairs instanceof Object) {\n            instance = objectOrPairs;\n        } else {\n            throw ValueError (\"Invalid type of object for dict creation\", new Error ());\n        }\n    }\n    __setproperty__ (instance, '__class__', {value: dict, enumerable: false, writable: true});\n    __setproperty__ (instance, '__contains__', {value: __contains__, enumerable: false});\n    __setproperty__ (instance, 'py_keys', {value: __keys__, enumerable: false});\n    __setproperty__ (instance, '__iter__', {value: function () {new __PyIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, Symbol.iterator, {value: function () {new __JsIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, 'py_items', {value: __items__, enumerable: false});\n    __setproperty__ (instance, 'py_del', {value: __del__, enumerable: false});\n    __setproperty__ (instance, 'py_clear', {value: __clear__, enumerable: false});\n    __setproperty__ (instance, 'py_get', {value: __getdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_setdefault', {value: __setdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_pop', {value: __pop__, enumerable: false});\n    __setproperty__ (instance, 'py_popitem', {value: __popitem__, enumerable: false});\n    __setproperty__ (instance, 'py_update', {value: __update__, enumerable: false});\n    __setproperty__ (instance, 'py_values', {value: __values__, enumerable: false});\n    __setproperty__ (instance, '__getitem__', {value: __dgetitem__, enumerable: false});\n    __setproperty__ (instance, '__setitem__', {value: __dsetitem__, enumerable: false});\n    return instance;\n}\ndict.__name__ = 'dict';\ndict.__bases__ = [object];\nfunction __setdoc__ (docString) {\n    this.__doc__ = docString;\n    return this;\n}\n__setproperty__ (Function.prototype, '__setdoc__', {value: __setdoc__, enumerable: false});\nexport function __jsmod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __mod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __pow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport var pow = __pow__;\nexport function __neg__ (a) {\n    if (typeof a == 'object' && '__neg__' in a) {\n        return a.__neg__ ();\n    }\n    else {\n        return -a;\n    }\n};\nexport function __matmul__ (a, b) {\n    return a.__matmul__ (b);\n};\nexport function __mul__ (a, b) {\n    if (typeof a == 'object' && '__mul__' in a) {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return b.__rmul__ (a);\n    }\n    else {\n        return a * b;\n    }\n};\nexport function __truediv__ (a, b) {\n    if (typeof a == 'object' && '__truediv__' in a) {\n        return a.__truediv__ (b);\n    }\n    else if (typeof b == 'object' && '__rtruediv__' in b) {\n        return b.__rtruediv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return a / b;\n    }\n};\nexport function __floordiv__ (a, b) {\n    if (typeof a == 'object' && '__floordiv__' in a) {\n        return a.__floordiv__ (b);\n    }\n    else if (typeof b == 'object' && '__rfloordiv__' in b) {\n        return b.__rfloordiv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return Math.floor (a / b);\n    }\n};\nexport function __add__ (a, b) {\n    if (typeof a == 'object' && '__add__' in a) {\n        return a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return b.__radd__ (a);\n    }\n    else {\n        return a + b;\n    }\n};\nexport function __sub__ (a, b) {\n    if (typeof a == 'object' && '__sub__' in a) {\n        return a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return b.__rsub__ (a);\n    }\n    else {\n        return a - b;\n    }\n};\nexport function __lshift__ (a, b) {\n    if (typeof a == 'object' && '__lshift__' in a) {\n        return a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return b.__rlshift__ (a);\n    }\n    else {\n        return a << b;\n    }\n};\nexport function __rshift__ (a, b) {\n    if (typeof a == 'object' && '__rshift__' in a) {\n        return a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return b.__rrshift__ (a);\n    }\n    else {\n        return a >> b;\n    }\n};\nexport function __or__ (a, b) {\n    if (typeof a == 'object' && '__or__' in a) {\n        return a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return b.__ror__ (a);\n    }\n    else {\n        return a | b;\n    }\n};\nexport function __xor__ (a, b) {\n    if (typeof a == 'object' && '__xor__' in a) {\n        return a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return b.__rxor__ (a);\n    }\n    else {\n        return a ^ b;\n    }\n};\nexport function __and__ (a, b) {\n    if (typeof a == 'object' && '__and__' in a) {\n        return a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return b.__rand__ (a);\n    }\n    else {\n        return a & b;\n    }\n};\nexport function __eq__ (a, b) {\n    if (typeof a == 'object' && '__eq__' in a) {\n        return a.__eq__ (b);\n    }\n    else {\n        return a == b;\n    }\n};\nexport function __ne__ (a, b) {\n    if (typeof a == 'object' && '__ne__' in a) {\n        return a.__ne__ (b);\n    }\n    else {\n        return a != b\n    }\n};\nexport function __lt__ (a, b) {\n    if (typeof a == 'object' && '__lt__' in a) {\n        return a.__lt__ (b);\n    }\n    else {\n        return a < b;\n    }\n};\nexport function __le__ (a, b) {\n    if (typeof a == 'object' && '__le__' in a) {\n        return a.__le__ (b);\n    }\n    else {\n        return a <= b;\n    }\n};\nexport function __gt__ (a, b) {\n    if (typeof a == 'object' && '__gt__' in a) {\n        return a.__gt__ (b);\n    }\n    else {\n        return a > b;\n    }\n};\nexport function __ge__ (a, b) {\n    if (typeof a == 'object' && '__ge__' in a) {\n        return a.__ge__ (b);\n    }\n    else {\n        return a >= b;\n    }\n};\nexport function __imatmul__ (a, b) {\n    if ('__imatmul__' in a) {\n        return a.__imatmul__ (b);\n    }\n    else {\n        return a.__matmul__ (b);\n    }\n};\nexport function __ipow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__ipow__ (b);\n    }\n    else if (typeof a == 'object' && '__ipow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport function __ijsmod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__ismod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __imod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__imod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __imul__ (a, b) {\n    if (typeof a == 'object' && '__imul__' in a) {\n        return a.__imul__ (b);\n    }\n    else if (typeof a == 'object' && '__mul__' in a) {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return a = b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return a = b.__rmul__ (a);\n    }\n    else {\n        return a *= b;\n    }\n};\nexport function __idiv__ (a, b) {\n    if (typeof a == 'object' && '__idiv__' in a) {\n        return a.__idiv__ (b);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a = a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return a = b.__rdiv__ (a);\n    }\n    else {\n        return a /= b;\n    }\n};\nexport function __iadd__ (a, b) {\n    if (typeof a == 'object' && '__iadd__' in a) {\n        return a.__iadd__ (b);\n    }\n    else if (typeof a == 'object' && '__add__' in a) {\n        return a = a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return a = b.__radd__ (a);\n    }\n    else {\n        return a += b;\n    }\n};\nexport function __isub__ (a, b) {\n    if (typeof a == 'object' && '__isub__' in a) {\n        return a.__isub__ (b);\n    }\n    else if (typeof a == 'object' && '__sub__' in a) {\n        return a = a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return a = b.__rsub__ (a);\n    }\n    else {\n        return a -= b;\n    }\n};\nexport function __ilshift__ (a, b) {\n    if (typeof a == 'object' && '__ilshift__' in a) {\n        return a.__ilshift__ (b);\n    }\n    else if (typeof a == 'object' && '__lshift__' in a) {\n        return a = a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return a = b.__rlshift__ (a);\n    }\n    else {\n        return a <<= b;\n    }\n};\nexport function __irshift__ (a, b) {\n    if (typeof a == 'object' && '__irshift__' in a) {\n        return a.__irshift__ (b);\n    }\n    else if (typeof a == 'object' && '__rshift__' in a) {\n        return a = a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return a = b.__rrshift__ (a);\n    }\n    else {\n        return a >>= b;\n    }\n};\nexport function __ior__ (a, b) {\n    if (typeof a == 'object' && '__ior__' in a) {\n        return a.__ior__ (b);\n    }\n    else if (typeof a == 'object' && '__or__' in a) {\n        return a = a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return a = b.__ror__ (a);\n    }\n    else {\n        return a |= b;\n    }\n};\nexport function __ixor__ (a, b) {\n    if (typeof a == 'object' && '__ixor__' in a) {\n        return a.__ixor__ (b);\n    }\n    else if (typeof a == 'object' && '__xor__' in a) {\n        return a = a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return a = b.__rxor__ (a);\n    }\n    else {\n        return a ^= b;\n    }\n};\nexport function __iand__ (a, b) {\n    if (typeof a == 'object' && '__iand__' in a) {\n        return a.__iand__ (b);\n    }\n    else if (typeof a == 'object' && '__and__' in a) {\n        return a = a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return a = b.__rand__ (a);\n    }\n    else {\n        return a &= b;\n    }\n};\nexport function __getitem__ (container, key) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ (key);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        return container [container.length + key];\n    }\n    else {\n        return container [key];\n    }\n};\nexport function __setitem__ (container, key, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ (key, value);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        container [container.length + key] = value;\n    }\n    else {\n        container [key] = value;\n    }\n};\nexport function __getslice__ (container, lower, upper, step) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ ([lower, upper, step]);\n    }\n    else {\n        return container.__getslice__ (lower, upper, step);\n    }\n};\nexport function __setslice__ (container, lower, upper, step, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ ([lower, upper, step], value);\n    }\n    else {\n        container.__setslice__ (lower, upper, step, value);\n    }\n};\nexport var BaseException =  __class__ ('BaseException', [object], {\n\t__module__: __name__,\n});\nexport var Exception =  __class__ ('Exception', [BaseException], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tvar kwargs = dict ();\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tdefault: kwargs [__attrib0__] = __allkwargs0__ [__attrib0__];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdelete kwargs.__kwargtrans__;\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.__args__ = args;\n\t\tif (kwargs.error != null) {\n\t\t\tself.stack = kwargs.error.stack;\n\t\t}\n\t\telse if (Error) {\n\t\t\tself.stack = new Error ().stack;\n\t\t}\n\t\telse {\n\t\t\tself.stack = 'No stack trace available';\n\t\t}\n\t});},\n\tget __repr__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]));\n\t\t}\n\t\telse {\n\t\t\treturn '{}()'.format (self.__class__.__name__);\n\t\t}\n\t});},\n\tget __str__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn str (tuple (self.__args__));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn str (self.__args__ [0]);\n\t\t}\n\t\telse {\n\t\t\treturn '';\n\t\t}\n\t});}\n});\nexport var IterableError =  __class__ ('IterableError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, \"Can't iterate over non-iterable\", __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var StopIteration =  __class__ ('StopIteration', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, 'Iterator exhausted', __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var ValueError =  __class__ ('ValueError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var KeyError =  __class__ ('KeyError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AssertionError =  __class__ ('AssertionError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tif (message) {\n\t\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t\t}\n\t\telse {\n\t\t\tException.__init__ (self, __kwargtrans__ ({error: error}));\n\t\t}\n\t});}\n});\nexport var NotImplementedError =  __class__ ('NotImplementedError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var IndexError =  __class__ ('IndexError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AttributeError =  __class__ ('AttributeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var py_TypeError =  __class__ ('py_TypeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var Warning =  __class__ ('Warning', [Exception], {\n\t__module__: __name__,\n});\nexport var UserWarning =  __class__ ('UserWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var DeprecationWarning =  __class__ ('DeprecationWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var RuntimeWarning =  __class__ ('RuntimeWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var __sort__ = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (key) {\n\t\titerable.sort ((function __lambda__ (a, b) {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\t\tcase 'a': var a = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t\tcase 'b': var b = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\treturn (key (a) > key (b) ? 1 : -(1));\n\t\t}));\n\t}\n\telse {\n\t\titerable.sort ();\n\t}\n\tif (reverse) {\n\t\titerable.reverse ();\n\t}\n};\nexport var sorted = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (py_typeof (iterable) == dict) {\n\t\tvar result = copy (iterable.py_keys ());\n\t}\n\telse {\n\t\tvar result = copy (iterable);\n\t}\n\t__sort__ (result, key, reverse);\n\treturn result;\n};\nexport var map = function (func, iterable) {\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\t__accu0__.append (func (item));\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var filter = function (func, iterable) {\n\tif (func == null) {\n\t\tvar func = bool;\n\t}\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\tif (func (item)) {\n\t\t\t\t__accu0__.append (item);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var divmod = function (n, d) {\n\treturn tuple ([Math.floor (n / d), __mod__ (n, d)]);\n};\nexport var __Terminal__ =  __class__ ('__Terminal__', [object], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tself.buffer = '';\n\t\ttry {\n\t\t\tself.element = document.getElementById ('__terminal__');\n\t\t}\n\t\tcatch (__except0__) {\n\t\t\tself.element = null;\n\t\t}\n\t\tif (self.element) {\n\t\t\tself.element.style.overflowX = 'auto';\n\t\t\tself.element.style.boxSizing = 'border-box';\n\t\t\tself.element.style.padding = '5px';\n\t\t\tself.element.innerHTML = '_';\n\t\t}\n\t});},\n\tget print () {return __get__ (this, function (self) {\n\t\tvar sep = ' ';\n\t\tvar end = '\\n';\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'sep': var sep = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'end': var end = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.buffer = '{}{}{}'.format (self.buffer, sep.join ((function () {\n\t\t\tvar __accu0__ = [];\n\t\t\tfor (var arg of args) {\n\t\t\t\t__accu0__.append (str (arg));\n\t\t\t}\n\t\t\treturn __accu0__;\n\t\t}) ()), end).__getslice__ (-(4096), null, 1);\n\t\tif (self.element) {\n\t\t\tself.element.innerHTML = self.buffer.py_replace ('\\n', '<br>').py_replace (' ', '&nbsp');\n\t\t\tself.element.scrollTop = self.element.scrollHeight;\n\t\t}\n\t\telse {\n\t\t\tconsole.log (sep.join ((function () {\n\t\t\t\tvar __accu0__ = [];\n\t\t\t\tfor (var arg of args) {\n\t\t\t\t\t__accu0__.append (str (arg));\n\t\t\t\t}\n\t\t\t\treturn __accu0__;\n\t\t\t}) ()));\n\t\t}\n\t});},\n\tget input () {return __get__ (this, function (self, question) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'question': var question = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.print ('{}'.format (question), __kwargtrans__ ({end: ''}));\n\t\tvar answer = window.prompt ('\\n'.join (self.buffer.py_split ('\\n').__getslice__ (-(8), null, 1)));\n\t\tself.print (answer);\n\t\treturn answer;\n\t});}\n});\nexport var __terminal__ = __Terminal__ ();\nexport var print = __terminal__.print;\nexport var input = __terminal__.input;\n\n//# sourceMappingURL=org.transcrypt.__runtime__.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_004/target/org.transcrypt.__runtime__.py",
    "content": "# Transcrypt runtime module\r\n\r\n#__pragma__ ('js', 'export var __envir__ = {{}};\\n{}', __include__ ('org/transcrypt/__envir__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__core__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__builtin__.js'))\r\n\r\n#__pragma__ ('skip')\r\ncopy = Math = __typeof__ = __repr__ = document = console = window = 0\r\n#__pragma__ ('noskip')\r\n\r\n#__pragma__ ('notconv')  # !!! tconv gives a problem with __terminal__, needs investigation\r\n#__pragma__ ('nokwargs')\r\n#__pragma__ ('noalias', 'sort')\r\n\r\nclass BaseException:\r\n    pass\r\n\r\nclass Exception (BaseException):\r\n    #__pragma__ ('kwargs')\r\n    def __init__ (self, *args, **kwargs):\r\n        self.__args__ = args\r\n        if kwargs.error != None:\r\n            self.stack = kwargs.error.stack # Integrate with JavaScript Error object\r\n        elif Error:\r\n            self.stack = (__new__(Error())).stack # Create our own stack if we aren't given one\r\n        else:\r\n            self.stack = 'No stack trace available'\r\n    #__pragma__ ('nokwargs')\r\n        \r\n    def __repr__ (self):\r\n        if len (self.__args__) > 1:\r\n            return '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)))\r\n        elif len (self.__args__):\r\n            return '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]))        \r\n        else:\r\n            return '{}()'.format (self.__class__.__name__)\r\n            \r\n    def __str__ (self):\r\n        if len (self.__args__) > 1:\r\n            return str (tuple (self.__args__))\r\n        elif len (self.__args__):\r\n            return str (self.__args__ [0])\r\n        else:\r\n            return ''\r\n        \r\nclass IterableError (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Can\\'t iterate over non-iterable', error = error)\r\n            \r\nclass StopIteration (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Iterator exhausted', error = error)\r\n        \r\nclass ValueError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass KeyError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass AssertionError (Exception):\r\n    def __init__ (self, message, error):\r\n        if message:\r\n            Exception.__init__ (self, message, error = error)\r\n        else:\r\n            Exception.__init__ (self, error = error)\r\n\r\nclass NotImplementedError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass IndexError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass AttributeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass TypeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\n# Warnings Exceptions\r\n# N.B. This is a limited subset of the warnings defined in\r\n# the cpython implementation to keep things small for now.\r\n\r\nclass Warning (Exception):\r\n    ''' Warning Base Class\r\n    '''\r\n    pass\r\n\r\nclass UserWarning (Warning):\r\n    pass\r\n\r\nclass DeprecationWarning (Warning):\r\n    pass\r\n\r\nclass RuntimeWarning (Warning):\r\n    pass\r\n    \r\n#__pragma__ ('kwargs')\r\n\r\ndef __sort__ (iterable, key = None, reverse = False):               # Used by py_sort, can deal with kwargs\r\n    if key:\r\n        iterable.sort (lambda a, b: 1 if key (a) > key (b) else -1) # JavaScript sort, case '==' is irrelevant for sorting\r\n    else:\r\n        iterable.sort ()                                            # JavaScript sort\r\n        \r\n    if reverse:\r\n        iterable.reverse ()\r\n        \r\ndef sorted (iterable, key = None, reverse = False):\r\n    if type (iterable) == dict:\r\n        result = copy (iterable.keys ()) \r\n    else:       \r\n        result = copy (iterable)\r\n        \r\n    __sort__ (result, key, reverse)\r\n    return result\r\n\r\n#__pragma__ ('nokwargs')\r\n\r\ndef map (func, iterable):\r\n    return [func (item) for item in iterable]\r\n\r\n\r\ndef filter (func, iterable):\r\n    if func == None:\r\n        func = bool\r\n    return [item for item in iterable if func (item)]\r\n    \r\ndef divmod (n, d):\r\n    return n // d, n % d\r\n    \r\n#__pragma__ ('ifdef', '__complex__')\r\n\r\nclass complex:\r\n    def __init__ (self, real, imag = None):\r\n        if imag == None:\r\n            if type (real) == complex:\r\n                self.real = real.real\r\n                self.imag = real.imag\r\n            else:\r\n                self.real = real\r\n                self.imag = 0\r\n        else:\r\n            self.real = real\r\n            self.imag = imag\r\n            \r\n    def __neg__ (self):\r\n        return complex (-self.real, -self.imag)\r\n        \r\n    def __exp__ (self):\r\n        modulus = Math.exp (self.real)\r\n        return complex (modulus * Math.cos (self.imag), modulus * Math.sin (self.imag))\r\n    \r\n    def __log__ (self):\r\n        return complex (Math.log (Math.sqrt (self.real * self.real + self.imag * self.imag)), Math.atan2 (self.imag, self.real))\r\n        \r\n    def __pow__ (self, other):  # a ** b = exp (b log a)\r\n        return (self.__log__ () .__mul__ (other)) .__exp__ ()\r\n        \r\n    def __rpow__ (self, real):  # real ** comp -> comp.__rpow__ (real)\r\n        return self.__mul__ (Math.log (real)) .__exp__ ()\r\n        \r\n    def __mul__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real * other, self.imag * other)\r\n        else:\r\n            return complex (self.real * other.real - self.imag * other.imag, self.real * other.imag + self.imag * other.real)\r\n        \r\n    def __rmul__ (self, real):  # real + comp -> comp.__rmul__ (real)\r\n        return complex (self.real * real, self.imag * real)\r\n        \r\n    def __div__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real / other, self.imag / other)\r\n        else:\r\n            denom = other.real * other.real + other.imag * other.imag\r\n            return complex (\r\n                (self.real * other.real + self.imag * other.imag) / denom,\r\n                (self.imag * other.real - self.real * other.imag) / denom\r\n            )\r\n        \r\n    def __rdiv__ (self, real):  # real / comp -> comp.__rdiv__ (real)\r\n        denom = self.real * self.real\r\n        return complex (\r\n            (real * self.real) / denom,\r\n            (real * self.imag) / denom\r\n        )\r\n        \r\n    def __add__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real + other, self.imag)\r\n        else:   # Assume other is complex\r\n            return complex (self.real + other.real, self.imag + other.imag)\r\n        \r\n    def __radd__ (self, real):  # real + comp -> comp.__radd__ (real)\r\n        return complex (self.real + real, self.imag)\r\n        \r\n    def __sub__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real - other, self.imag)\r\n        else:\r\n            return complex (self.real - other.real, self.imag - other.imag)\r\n        \r\n    def __rsub__ (self, real):  # real - comp -> comp.__rsub__ (real)\r\n        return complex (real - self.real, -self.imag)\r\n        \r\n    def __repr__ (self):\r\n        return '({}{}{}j)'.format (self.real, '+' if self.imag >= 0 else '', self.imag)\r\n            \r\n    def __str__ (self):\r\n        return __repr__ (self) [1 : -1]\r\n        \r\n    def __eq__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real == other\r\n        else:\r\n            return self.real == other.real and self.imag == other.imag\r\n        \r\n    def __ne__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real != other\r\n        else:\r\n            return self.real != other.real or self.imag != other.imag\r\n        \r\n    def conjugate (self):\r\n        return complex (self.real, -self.imag)\r\n        \r\ndef __conj__ (aNumber):\r\n    if isinstance (aNumber, complex):\r\n        return complex (aNumber.real, -aNumber.imag)\r\n    else:\r\n        return complex (aNumber, 0)\r\n        \r\n#__pragma__ ('endif')\r\n\r\nclass __Terminal__:\r\n    '''\r\n    Printing to either the console or to html happens async, but is blocked by calling window.prompt.\r\n    So while all input and print statements are encountered in normal order, the print's exit immediately without yet having actually printed\r\n    This means the next input takes control, blocking actual printing and so on indefinitely\r\n    The effect is that everything's only printed after all inputs are done\r\n    To prevent that, what's needed is to only execute the next window.prompt after actual printing has been done\r\n    Since we've no way to find out when that is, a timeout is used.\r\n    '''\r\n\r\n    def __init__ (self):\r\n        self.buffer = ''\r\n    \r\n        try:\r\n            self.element = document.getElementById ('__terminal__')\r\n        except:\r\n            self.element = None\r\n            \r\n        if self.element:\r\n            self.element.style.overflowX = 'auto'\r\n            self.element.style.boxSizing = 'border-box'\r\n            self.element.style.padding = '5px'\r\n            self.element.innerHTML = '_'\r\n        \r\n    #__pragma__ ('kwargs')\r\n        \r\n    def print (self, *args, sep = ' ', end = '\\n'):\r\n        self.buffer = '{}{}{}'.format (self.buffer, sep.join ([str (arg) for arg in args]), end) [-4096 : ] \r\n        \r\n        if self.element:\r\n            self.element.innerHTML = self.buffer.replace ('\\n', '<br>') .replace (' ', '&nbsp')\r\n            self.element.scrollTop = self.element.scrollHeight\r\n        else:\r\n            console.log (sep.join ([str (arg) for arg in args]))\r\n        \r\n    def input (self, question):\r\n        self.print ('{}'.format (question), end = '')\r\n        answer = window.prompt ('\\n'.join (self.buffer.split ('\\n') [-8:]))\r\n        self.print (answer)\r\n        return answer\r\n        \r\n    #__pragma__ ('nokwargs')\r\n    \r\n__terminal__ = __Terminal__ ()\r\n\r\nprint = __terminal__.print\r\ninput = __terminal__.input\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_004/target/pyp5js.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:12\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {PythonFunctions} from './python_functions.js';\nvar __name__ = 'pyp5js';\nexport var _P5_INSTANCE = null;\nexport var _CTX_MIDDLE = null;\nexport var _DEFAULT_FILL = null;\nexport var _DEFAULT_LEADMULT = null;\nexport var _DEFAULT_STROKE = null;\nexport var _DEFAULT_TEXT_FILL = null;\nexport var ADD = null;\nexport var ALT = null;\nexport var ARROW = null;\nexport var AUDIO = null;\nexport var AUTO = null;\nexport var AXES = null;\nexport var BACKSPACE = null;\nexport var BASELINE = null;\nexport var BEVEL = null;\nexport var BEZIER = null;\nexport var BLEND = null;\nexport var BLUR = null;\nexport var BOLD = null;\nexport var BOLDITALIC = null;\nexport var BOTTOM = null;\nexport var BURN = null;\nexport var CENTER = null;\nexport var CHORD = null;\nexport var CLAMP = null;\nexport var CLOSE = null;\nexport var CONTROL = null;\nexport var CORNER = null;\nexport var CORNERS = null;\nexport var CROSS = null;\nexport var CURVE = null;\nexport var DARKEST = null;\nexport var DEG_TO_RAD = null;\nexport var DEGREES = null;\nexport var DELETE = null;\nexport var DIFFERENCE = null;\nexport var DILATE = null;\nexport var DODGE = null;\nexport var DOWN_ARROW = null;\nexport var ENTER = null;\nexport var ERODE = null;\nexport var ESCAPE = null;\nexport var EXCLUSION = null;\nexport var FILL = null;\nexport var GRAY = null;\nexport var GRID = null;\nexport var HALF_PI = null;\nexport var HAND = null;\nexport var HARD_LIGHT = null;\nexport var HSB = null;\nexport var HSL = null;\nexport var IMAGE = null;\nexport var IMMEDIATE = null;\nexport var INVERT = null;\nexport var ITALIC = null;\nexport var LANDSCAPE = null;\nexport var LEFT = null;\nexport var LEFT_ARROW = null;\nexport var LIGHTEST = null;\nexport var LINE_LOOP = null;\nexport var LINE_STRIP = null;\nexport var LINEAR = null;\nexport var LINES = null;\nexport var MIRROR = null;\nexport var MITER = null;\nexport var MOVE = null;\nexport var MULTIPLY = null;\nexport var NEAREST = null;\nexport var NORMAL = null;\nexport var OPAQUE = null;\nexport var OPEN = null;\nexport var OPTION = null;\nexport var OVERLAY = null;\nexport var PI = null;\nexport var PIE = null;\nexport var POINTS = null;\nexport var PORTRAIT = null;\nexport var POSTERIZE = null;\nexport var PROJECT = null;\nexport var QUAD_STRIP = null;\nexport var QUADRATIC = null;\nexport var QUADS = null;\nexport var QUARTER_PI = null;\nexport var RAD_TO_DEG = null;\nexport var RADIANS = null;\nexport var RADIUS = null;\nexport var REPEAT = null;\nexport var REPLACE = null;\nexport var RETURN = null;\nexport var RGB = null;\nexport var RIGHT = null;\nexport var RIGHT_ARROW = null;\nexport var ROUND = null;\nexport var SCREEN = null;\nexport var SHIFT = null;\nexport var SOFT_LIGHT = null;\nexport var SQUARE = null;\nexport var STROKE = null;\nexport var SUBTRACT = null;\nexport var TAB = null;\nexport var TAU = null;\nexport var TEXT = null;\nexport var TEXTURE = null;\nexport var THRESHOLD = null;\nexport var TOP = null;\nexport var TRIANGLE_FAN = null;\nexport var TRIANGLE_STRIP = null;\nexport var TRIANGLES = null;\nexport var TWO_PI = null;\nexport var UP_ARROW = null;\nexport var VIDEO = null;\nexport var WAIT = null;\nexport var WEBGL = null;\nexport var P2D = null;\nvar PI = null;\nexport var frameCount = null;\nexport var focused = null;\nexport var displayWidth = null;\nexport var displayHeight = null;\nexport var windowWidth = null;\nexport var windowHeight = null;\nexport var width = null;\nexport var height = null;\nexport var disableFriendlyErrors = null;\nexport var deviceOrientation = null;\nexport var accelerationX = null;\nexport var accelerationY = null;\nexport var accelerationZ = null;\nexport var pAccelerationX = null;\nexport var pAccelerationY = null;\nexport var pAccelerationZ = null;\nexport var rotationX = null;\nexport var rotationY = null;\nexport var rotationZ = null;\nexport var pRotationX = null;\nexport var pRotationY = null;\nexport var pRotationZ = null;\nexport var turnAxis = null;\nexport var keyIsPressed = null;\nexport var key = null;\nexport var keyCode = null;\nexport var mouseX = null;\nexport var mouseY = null;\nexport var pmouseX = null;\nexport var pmouseY = null;\nexport var winMouseX = null;\nexport var winMouseY = null;\nexport var pwinMouseX = null;\nexport var pwinMouseY = null;\nexport var mouseButton = null;\nexport var mouseIsPressed = null;\nexport var touches = null;\nexport var pixels = null;\nexport var alpha = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.alpha (...args);\n};\nexport var blue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blue (...args);\n};\nexport var brightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.brightness (...args);\n};\nexport var color = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.color (...args);\n};\nexport var green = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.green (...args);\n};\nexport var hue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hue (...args);\n};\nexport var lerpColor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerpColor (...args);\n};\nexport var lightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lightness (...args);\n};\nexport var red = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.red (...args);\n};\nexport var saturation = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saturation (...args);\n};\nexport var background = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.background (...args);\n};\nexport var py_clear = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_clear = _P5_INSTANCE.clear (...args);\n\treturn p5_clear;\n};\nexport var erase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.erase (...args);\n};\nexport var noErase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noErase (...args);\n};\nexport var colorMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.colorMode (...args);\n};\nexport var fill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fill (...args);\n};\nexport var noFill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noFill (...args);\n};\nexport var noStroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noStroke (...args);\n};\nexport var stroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.stroke (...args);\n};\nexport var arc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arc (...args);\n};\nexport var ellipse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipse (...args);\n};\nexport var circle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.circle (...args);\n};\nexport var line = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.line (...args);\n};\nexport var point = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.point (...args);\n};\nexport var quad = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quad (...args);\n};\nexport var rect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rect (...args);\n};\nexport var square = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.square (...args);\n};\nexport var triangle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.triangle (...args);\n};\nexport var plane = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.plane (...args);\n};\nexport var box = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.box (...args);\n};\nexport var sphere = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sphere (...args);\n};\nexport var cylinder = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cylinder (...args);\n};\nexport var cone = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cone (...args);\n};\nexport var ellipsoid = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipsoid (...args);\n};\nexport var torus = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.torus (...args);\n};\nexport var loadModel = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadModel (...args);\n};\nexport var model = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.model (...args);\n};\nexport var ellipseMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipseMode (...args);\n};\nexport var noSmooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noSmooth (...args);\n};\nexport var rectMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rectMode (...args);\n};\nexport var smooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.smooth (...args);\n};\nexport var strokeCap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeCap (...args);\n};\nexport var strokeJoin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeJoin (...args);\n};\nexport var strokeWeight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeWeight (...args);\n};\nexport var bezier = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezier (...args);\n};\nexport var bezierDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierDetail (...args);\n};\nexport var bezierPoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierPoint (...args);\n};\nexport var bezierTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierTangent (...args);\n};\nexport var curve = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curve (...args);\n};\nexport var curveDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveDetail (...args);\n};\nexport var curveTightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTightness (...args);\n};\nexport var curvePoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curvePoint (...args);\n};\nexport var curveTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTangent (...args);\n};\nexport var beginContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginContour (...args);\n};\nexport var beginShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginShape (...args);\n};\nexport var bezierVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierVertex (...args);\n};\nexport var curveVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveVertex (...args);\n};\nexport var endContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endContour (...args);\n};\nexport var endShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endShape (...args);\n};\nexport var quadraticVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quadraticVertex (...args);\n};\nexport var vertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.vertex (...args);\n};\nexport var cursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cursor (...args);\n};\nexport var frameRate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.frameRate (...args);\n};\nexport var noCursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCursor (...args);\n};\nexport var fullscreen = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fullscreen (...args);\n};\nexport var pixelDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pixelDensity (...args);\n};\nexport var displayDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.displayDensity (...args);\n};\nexport var getURL = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURL (...args);\n};\nexport var getURLPath = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLPath (...args);\n};\nexport var getURLParams = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLParams (...args);\n};\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.preload (...args);\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setup (...args);\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.draw (...args);\n};\nexport var remove = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.remove (...args);\n};\nexport var noLoop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noLoop (...args);\n};\nexport var loop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loop (...args);\n};\nexport var push = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.push (...args);\n};\nexport var redraw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.redraw (...args);\n};\nexport var resizeCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resizeCanvas (...args);\n};\nexport var noCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCanvas (...args);\n};\nexport var createGraphics = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createGraphics (...args);\n};\nexport var blendMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blendMode (...args);\n};\nexport var setAttributes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setAttributes (...args);\n};\nexport var applyMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.applyMatrix (...args);\n};\nexport var resetMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetMatrix (...args);\n};\nexport var rotate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotate (...args);\n};\nexport var rotateX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateX (...args);\n};\nexport var rotateY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateY (...args);\n};\nexport var rotateZ = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateZ (...args);\n};\nexport var scale = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.scale (...args);\n};\nexport var shearX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearX (...args);\n};\nexport var shearY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearY (...args);\n};\nexport var translate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.translate (...args);\n};\nexport var createStringDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createStringDict (...args);\n};\nexport var createNumberDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createNumberDict (...args);\n};\nexport var append = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.append (...args);\n};\nexport var arrayCopy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arrayCopy (...args);\n};\nexport var concat = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.concat (...args);\n};\nexport var reverse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.reverse (...args);\n};\nexport var shorten = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shorten (...args);\n};\nexport var shuffle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shuffle (...args);\n};\nexport var py_sort = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_sort (...args);\n};\nexport var splice = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splice (...args);\n};\nexport var subset = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.subset (...args);\n};\nexport var float = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.float (...args);\n};\nexport var int = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.int (...args);\n};\nexport var str = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.str (...args);\n};\nexport var boolean = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.boolean (...args);\n};\nexport var byte = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.byte (...args);\n};\nexport var char = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.char (...args);\n};\nexport var unchar = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unchar (...args);\n};\nexport var hex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hex (...args);\n};\nexport var unhex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unhex (...args);\n};\nexport var join = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.join (...args);\n};\nexport var match = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.match (...args);\n};\nexport var matchAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.matchAll (...args);\n};\nexport var nf = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nf (...args);\n};\nexport var nfc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfc (...args);\n};\nexport var nfp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfp (...args);\n};\nexport var nfs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfs (...args);\n};\nexport var py_split = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_split (...args);\n};\nexport var splitTokens = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splitTokens (...args);\n};\nexport var trim = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.trim (...args);\n};\nexport var setMoveThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setMoveThreshold (...args);\n};\nexport var setShakeThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setShakeThreshold (...args);\n};\nexport var keyIsDown = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.keyIsDown (...args);\n};\nexport var createImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImage (...args);\n};\nexport var saveCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveCanvas (...args);\n};\nexport var saveFrames = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveFrames (...args);\n};\nexport var image_proxy = function (img) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'img': var img = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar _set = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.set (...args);\n\t\treturn value;\n\t};\n\tvar _get = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.get (...args);\n\t\treturn value;\n\t};\n\timg.py_set = _set;\n\timg.py_get = _get;\n\treturn img;\n};\nexport var loadImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar imageObj = _P5_INSTANCE.loadImage (...args);\n\treturn image_proxy (imageObj);\n};\nexport var image = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.image (...args);\n};\nexport var tint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tint (...args);\n};\nexport var noTint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noTint (...args);\n};\nexport var imageMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.imageMode (...args);\n};\nexport var blend = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blend (...args);\n};\nexport var copy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.copy (...args);\n};\nexport var filter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && (args [0] === null || callable (args [0]))) {\n\t\treturn PythonFunctions.filter (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.filter (...args);\n\t}\n};\nexport var py_get = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_get = _P5_INSTANCE.get (...args);\n\treturn p5_get;\n};\nexport var loadPixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadPixels (...args);\n};\nexport var py_set = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) <= 1) {\n\t\treturn PythonFunctions.py_set (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.py_set (...args);\n\t}\n};\nexport var updatePixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.updatePixels (...args);\n};\nexport var loadJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadJSON (...args);\n};\nexport var loadStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadStrings (...args);\n};\nexport var loadTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadTable (...args);\n};\nexport var loadXML = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadXML (...args);\n};\nexport var loadBytes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadBytes (...args);\n};\nexport var httpGet = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpGet (...args);\n};\nexport var httpPost = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpPost (...args);\n};\nexport var httpDo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpDo (...args);\n};\nexport var createWriter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createWriter (...args);\n};\nexport var save = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.save (...args);\n};\nexport var saveJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveJSON (...args);\n};\nexport var saveStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveStrings (...args);\n};\nexport var saveTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveTable (...args);\n};\nexport var day = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.day (...args);\n};\nexport var hour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hour (...args);\n};\nexport var minute = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.minute (...args);\n};\nexport var millis = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.millis (...args);\n};\nexport var month = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.month (...args);\n};\nexport var second = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.second (...args);\n};\nexport var year = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.year (...args);\n};\nexport var createVector = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVector (...args);\n};\nexport var abs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.abs (...args);\n};\nexport var ceil = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ceil (...args);\n};\nexport var constrain = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.constrain (...args);\n};\nexport var dist = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.dist (...args);\n};\nexport var exp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.exp (...args);\n};\nexport var floor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.floor (...args);\n};\nexport var lerp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerp (...args);\n};\nexport var log = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.log (...args);\n};\nexport var mag = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.mag (...args);\n};\nexport var map = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && callable (args [0])) {\n\t\treturn PythonFunctions.map (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.map (...args);\n\t}\n};\nexport var max = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.max (...args);\n};\nexport var min = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.min (...args);\n};\nexport var norm = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.norm (...args);\n};\nexport var pow = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pow (...args);\n};\nexport var round = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.round (...args);\n};\nexport var sq = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sq (...args);\n};\nexport var sqrt = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sqrt (...args);\n};\nexport var noise = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noise (...args);\n};\nexport var noiseDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseDetail (...args);\n};\nexport var noiseSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseSeed (...args);\n};\nexport var randomSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomSeed (...args);\n};\nexport var random = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.random (...args);\n};\nexport var randomGaussian = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomGaussian (...args);\n};\nexport var acos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.acos (...args);\n};\nexport var asin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.asin (...args);\n};\nexport var atan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan (...args);\n};\nexport var atan2 = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan2 (...args);\n};\nexport var cos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cos (...args);\n};\nexport var sin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sin (...args);\n};\nexport var tan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tan (...args);\n};\nexport var degrees = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.degrees (...args);\n};\nexport var radians = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.radians (...args);\n};\nexport var angleMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.angleMode (...args);\n};\nexport var textAlign = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAlign (...args);\n};\nexport var textLeading = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textLeading (...args);\n};\nexport var textSize = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textSize (...args);\n};\nexport var textStyle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textStyle (...args);\n};\nexport var textWidth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textWidth (...args);\n};\nexport var textAscent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAscent (...args);\n};\nexport var textDescent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textDescent (...args);\n};\nexport var loadFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadFont (...args);\n};\nexport var text = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.text (...args);\n};\nexport var textFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textFont (...args);\n};\nexport var orbitControl = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.orbitControl (...args);\n};\nexport var debugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.debugMode (...args);\n};\nexport var noDebugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noDebugMode (...args);\n};\nexport var ambientLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientLight (...args);\n};\nexport var directionalLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.directionalLight (...args);\n};\nexport var pointLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pointLight (...args);\n};\nexport var lights = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lights (...args);\n};\nexport var loadShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadShader (...args);\n};\nexport var createShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createShader (...args);\n};\nexport var shader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shader (...args);\n};\nexport var resetShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetShader (...args);\n};\nexport var normalMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.normalMaterial (...args);\n};\nexport var texture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.texture (...args);\n};\nexport var textureMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureMode (...args);\n};\nexport var textureWrap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureWrap (...args);\n};\nexport var ambientMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientMaterial (...args);\n};\nexport var specularMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.specularMaterial (...args);\n};\nexport var shininess = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shininess (...args);\n};\nexport var camera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.camera (...args);\n};\nexport var perspective = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.perspective (...args);\n};\nexport var ortho = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ortho (...args);\n};\nexport var createCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCamera (...args);\n};\nexport var setCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setCamera (...args);\n};\nexport var select = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.select (...args);\n};\nexport var selectAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.selectAll (...args);\n};\nexport var removeElements = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.removeElements (...args);\n};\nexport var changed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.changed (...args);\n};\nexport var input = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.input (...args);\n};\nexport var createDiv = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createDiv (...args);\n};\nexport var createP = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createP (...args);\n};\nexport var createSpan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSpan (...args);\n};\nexport var createImg = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImg (...args);\n};\nexport var createA = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createA (...args);\n};\nexport var createSlider = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSlider (...args);\n};\nexport var createButton = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createButton (...args);\n};\nexport var createCheckbox = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCheckbox (...args);\n};\nexport var createSelect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSelect (...args);\n};\nexport var createRadio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createRadio (...args);\n};\nexport var createColorPicker = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createColorPicker (...args);\n};\nexport var createInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createInput (...args);\n};\nexport var createFileInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createFileInput (...args);\n};\nexport var createVideo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVideo (...args);\n};\nexport var createAudio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createAudio (...args);\n};\nexport var createCapture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCapture (...args);\n};\nexport var createElement = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createElement (...args);\n};\nexport var createCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar canvas = _P5_INSTANCE.createCanvas (...args);\n\twidth = _P5_INSTANCE.width;\n\theight = _P5_INSTANCE.height;\n\treturn canvas;\n};\nexport var py_pop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_pop = _P5_INSTANCE.pop (...args);\n\treturn p5_pop;\n};\nexport var size = createCanvas;\nexport var popMatrix = py_pop;\nexport var popStyle = py_pop;\nexport var pushMatrix = push;\nexport var pushStyle = push;\nexport var PVector = function (x, y, z) {\n\tif (typeof x == 'undefined' || (x != null && x.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar x = 0;\n\t};\n\tif (typeof y == 'undefined' || (y != null && y.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar y = 0;\n\t};\n\tif (typeof z == 'undefined' || (z != null && z.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar z = 0;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'z': var z = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn _P5_INSTANCE.createVector (x, y, z);\n};\nsetattr (PVector, 'dist', p5.Vector.dist);\nsetattr (PVector, 'add', p5.Vector.add);\nsetattr (PVector, 'sub', p5.Vector.sub);\nsetattr (PVector, 'mult', p5.Vector.mult);\nsetattr (PVector, 'div', p5.Vector.div);\nsetattr (PVector, 'dot', p5.Vector.dot);\nsetattr (PVector, 'cross', p5.Vector.cross);\nsetattr (PVector, 'lerp', p5.Vector.lerp);\nsetattr (PVector, 'random2D', p5.Vector.random2D);\nsetattr (PVector, 'random3D', p5.Vector.random3D);\nsetattr (PVector, 'angleBetween', p5.Vector.angleBetween);\nsetattr (PVector, 'fromAngle', p5.Vector.fromAngle);\nsetattr (PVector, 'fromAngles', p5.Vector.fromAngles);\nsetattr (PVector, 'equals', p5.Vector.equals);\nexport var pre_draw = function (p5_instance, draw_func) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_instance': var p5_instance = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t_CTX_MIDDLE = p5_instance._CTX_MIDDLE;\n\t_DEFAULT_FILL = p5_instance._DEFAULT_FILL;\n\t_DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT;\n\t_DEFAULT_STROKE = p5_instance._DEFAULT_STROKE;\n\t_DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL;\n\tADD = p5_instance.ADD;\n\tALT = p5_instance.ALT;\n\tARROW = p5_instance.ARROW;\n\tAUDIO = p5_instance.AUDIO;\n\tAUTO = p5_instance.AUTO;\n\tAXES = p5_instance.AXES;\n\tBACKSPACE = p5_instance.BACKSPACE;\n\tBASELINE = p5_instance.BASELINE;\n\tBEVEL = p5_instance.BEVEL;\n\tBEZIER = p5_instance.BEZIER;\n\tBLEND = p5_instance.BLEND;\n\tBLUR = p5_instance.BLUR;\n\tBOLD = p5_instance.BOLD;\n\tBOLDITALIC = p5_instance.BOLDITALIC;\n\tBOTTOM = p5_instance.BOTTOM;\n\tBURN = p5_instance.BURN;\n\tCENTER = p5_instance.CENTER;\n\tCHORD = p5_instance.CHORD;\n\tCLAMP = p5_instance.CLAMP;\n\tCLOSE = p5_instance.CLOSE;\n\tCONTROL = p5_instance.CONTROL;\n\tCORNER = p5_instance.CORNER;\n\tCORNERS = p5_instance.CORNERS;\n\tCROSS = p5_instance.CROSS;\n\tCURVE = p5_instance.CURVE;\n\tDARKEST = p5_instance.DARKEST;\n\tDEG_TO_RAD = p5_instance.DEG_TO_RAD;\n\tDEGREES = p5_instance.DEGREES;\n\tDELETE = p5_instance.DELETE;\n\tDIFFERENCE = p5_instance.DIFFERENCE;\n\tDILATE = p5_instance.DILATE;\n\tDODGE = p5_instance.DODGE;\n\tDOWN_ARROW = p5_instance.DOWN_ARROW;\n\tENTER = p5_instance.ENTER;\n\tERODE = p5_instance.ERODE;\n\tESCAPE = p5_instance.ESCAPE;\n\tEXCLUSION = p5_instance.EXCLUSION;\n\tFILL = p5_instance.FILL;\n\tGRAY = p5_instance.GRAY;\n\tGRID = p5_instance.GRID;\n\tHALF_PI = p5_instance.HALF_PI;\n\tHAND = p5_instance.HAND;\n\tHARD_LIGHT = p5_instance.HARD_LIGHT;\n\tHSB = p5_instance.HSB;\n\tHSL = p5_instance.HSL;\n\tIMAGE = p5_instance.IMAGE;\n\tIMMEDIATE = p5_instance.IMMEDIATE;\n\tINVERT = p5_instance.INVERT;\n\tITALIC = p5_instance.ITALIC;\n\tLANDSCAPE = p5_instance.LANDSCAPE;\n\tLEFT = p5_instance.LEFT;\n\tLEFT_ARROW = p5_instance.LEFT_ARROW;\n\tLIGHTEST = p5_instance.LIGHTEST;\n\tLINE_LOOP = p5_instance.LINE_LOOP;\n\tLINE_STRIP = p5_instance.LINE_STRIP;\n\tLINEAR = p5_instance.LINEAR;\n\tLINES = p5_instance.LINES;\n\tMIRROR = p5_instance.MIRROR;\n\tMITER = p5_instance.MITER;\n\tMOVE = p5_instance.MOVE;\n\tMULTIPLY = p5_instance.MULTIPLY;\n\tNEAREST = p5_instance.NEAREST;\n\tNORMAL = p5_instance.NORMAL;\n\tOPAQUE = p5_instance.OPAQUE;\n\tOPEN = p5_instance.OPEN;\n\tOPTION = p5_instance.OPTION;\n\tOVERLAY = p5_instance.OVERLAY;\n\tP2D = p5_instance.P2D;\n\tvar P3D = p5_instance.WEBGL;\n\tPI = p5_instance.PI;\n\tPIE = p5_instance.PIE;\n\tPOINTS = p5_instance.POINTS;\n\tPORTRAIT = p5_instance.PORTRAIT;\n\tPOSTERIZE = p5_instance.POSTERIZE;\n\tPROJECT = p5_instance.PROJECT;\n\tQUAD_STRIP = p5_instance.QUAD_STRIP;\n\tQUADRATIC = p5_instance.QUADRATIC;\n\tQUADS = p5_instance.QUADS;\n\tQUARTER_PI = p5_instance.QUARTER_PI;\n\tRAD_TO_DEG = p5_instance.RAD_TO_DEG;\n\tRADIANS = p5_instance.RADIANS;\n\tRADIUS = p5_instance.RADIUS;\n\tREPEAT = p5_instance.REPEAT;\n\tREPLACE = p5_instance.REPLACE;\n\tRETURN = p5_instance.RETURN;\n\tRGB = p5_instance.RGB;\n\tRIGHT = p5_instance.RIGHT;\n\tRIGHT_ARROW = p5_instance.RIGHT_ARROW;\n\tROUND = p5_instance.ROUND;\n\tSCREEN = p5_instance.SCREEN;\n\tSHIFT = p5_instance.SHIFT;\n\tSOFT_LIGHT = p5_instance.SOFT_LIGHT;\n\tSQUARE = p5_instance.SQUARE;\n\tSTROKE = p5_instance.STROKE;\n\tSUBTRACT = p5_instance.SUBTRACT;\n\tTAB = p5_instance.TAB;\n\tTAU = p5_instance.TAU;\n\tTEXT = p5_instance.TEXT;\n\tTEXTURE = p5_instance.TEXTURE;\n\tTHRESHOLD = p5_instance.THRESHOLD;\n\tTOP = p5_instance.TOP;\n\tTRIANGLE_FAN = p5_instance.TRIANGLE_FAN;\n\tTRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP;\n\tTRIANGLES = p5_instance.TRIANGLES;\n\tTWO_PI = p5_instance.TWO_PI;\n\tUP_ARROW = p5_instance.UP_ARROW;\n\tVIDEO = p5_instance.VIDEO;\n\tWAIT = p5_instance.WAIT;\n\tWEBGL = p5_instance.WEBGL;\n\tframeCount = p5_instance.frameCount;\n\tfocused = p5_instance.focused;\n\tdisplayWidth = p5_instance.displayWidth;\n\tdisplayHeight = p5_instance.displayHeight;\n\twindowWidth = p5_instance.windowWidth;\n\twindowHeight = p5_instance.windowHeight;\n\twidth = p5_instance.width;\n\theight = p5_instance.height;\n\tdisableFriendlyErrors = p5_instance.disableFriendlyErrors;\n\tdeviceOrientation = p5_instance.deviceOrientation;\n\taccelerationX = p5_instance.accelerationX;\n\taccelerationY = p5_instance.accelerationY;\n\taccelerationZ = p5_instance.accelerationZ;\n\tpAccelerationX = p5_instance.pAccelerationX;\n\tpAccelerationY = p5_instance.pAccelerationY;\n\tpAccelerationZ = p5_instance.pAccelerationZ;\n\trotationX = p5_instance.rotationX;\n\trotationY = p5_instance.rotationY;\n\trotationZ = p5_instance.rotationZ;\n\tpRotationX = p5_instance.pRotationX;\n\tpRotationY = p5_instance.pRotationY;\n\tpRotationZ = p5_instance.pRotationZ;\n\tturnAxis = p5_instance.turnAxis;\n\tkeyIsPressed = p5_instance.keyIsPressed;\n\tkey = p5_instance.key;\n\tkeyCode = p5_instance.keyCode;\n\tmouseX = p5_instance.mouseX;\n\tmouseY = p5_instance.mouseY;\n\tpmouseX = p5_instance.pmouseX;\n\tpmouseY = p5_instance.pmouseY;\n\twinMouseX = p5_instance.winMouseX;\n\twinMouseY = p5_instance.winMouseY;\n\tpwinMouseX = p5_instance.pwinMouseX;\n\tpwinMouseY = p5_instance.pwinMouseY;\n\tmouseButton = p5_instance.mouseButton;\n\tmouseIsPressed = p5_instance.mouseIsPressed;\n\ttouches = p5_instance.touches;\n\tpixels = p5_instance.pixels;\n\treturn draw_func ();\n};\nexport var global_p5_injection = function (p5_sketch) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar decorator = function (f) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'f': var f = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar wrapper = function () {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\t_P5_INSTANCE = p5_sketch;\n\t\t\treturn pre_draw (_P5_INSTANCE, f);\n\t\t};\n\t\treturn wrapper;\n\t};\n\treturn decorator;\n};\nexport var start_p5 = function (preload_func, setup_func, draw_func, event_functions) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'preload_func': var preload_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'setup_func': var setup_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'event_functions': var event_functions = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar sketch_setup = function (p5_sketch) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tp5_sketch.preload = global_p5_injection (p5_sketch) (preload_func);\n\t\tp5_sketch.setup = global_p5_injection (p5_sketch) (setup_func);\n\t\tp5_sketch.draw = global_p5_injection (p5_sketch) (draw_func);\n\t};\n\tvar instance = new p5 (sketch_setup, 'sketch-holder');\n\tvar event_function_names = tuple (['deviceMoved', 'deviceTurned', 'deviceShaken', 'windowResized', 'keyPressed', 'keyReleased', 'keyTyped', 'mousePressed', 'mouseReleased', 'mouseClicked', 'doubleClicked', 'mouseMoved', 'mouseDragged', 'mouseWheel', 'touchStarted', 'touchMoved', 'touchEnded', 'keyIsDown']);\n\tfor (var f_name of (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var f of event_function_names) {\n\t\t\tif (event_functions.py_get (f, null)) {\n\t\t\t\t__accu0__.append (f);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ()) {\n\t\tvar func = event_functions [f_name];\n\t\tvar event_func = global_p5_injection (instance) (func);\n\t\tsetattr (instance, f_name, event_func);\n\t}\n};\nexport var logOnloaded = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tconsole.log ('Lib loaded!');\n};\nexport var add_library = function (lib_name) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'lib_name': var lib_name = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar src = '';\n\treturn console.log ('Lib name is not valid:', lib_name);\n\tconsole.log ('Importing:', src);\n\tvar script = document.createElement ('script');\n\tscript.onload = logOnloaded;\n\tscript.src = src;\n\tdocument.head.appendChild (script);\n};\n\n//# sourceMappingURL=pyp5js.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_004/target/pyp5js.py",
    "content": "from python_functions import PythonFunctions\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndisableFriendlyErrors = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    __pragma__('noalias', 'clear')\n    p5_clear = _P5_INSTANCE.clear(*args)\n    __pragma__('alias', 'clear', 'py_clear')\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef preload(*args):\n    return _P5_INSTANCE.preload(*args)\n\ndef setup(*args):\n    return _P5_INSTANCE.setup(*args)\n\ndef draw(*args):\n    return _P5_INSTANCE.draw(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\n\ndef image_proxy(img):\n    \"\"\"\n    Proxy to turn of transcypt when calling img.get/set methods\n    \"\"\"\n\n    def _set(*args):\n        __pragma__('noalias', 'set')\n        value = img.set(*args)\n        __pragma__('alias', 'set', 'py_set')\n        return value\n\n    def _get(*args):\n        __pragma__('noalias', 'get')\n        value = img.get(*args)\n        __pragma__('alias', 'get', 'py_get')\n        return value\n\n    img.set = _set\n    img.get = _get\n    return img\n\n\ndef loadImage(*args):\n    imageObj = _P5_INSTANCE.loadImage(*args)\n    return image_proxy(imageObj)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    __pragma__('noalias', 'get')\n    p5_get = _P5_INSTANCE.get(*args)\n    __pragma__('alias', 'get', 'py_get')\n    return p5_get\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\n\ndef pop(*args):\n    __pragma__('noalias', 'pop')\n    p5_pop = _P5_INSTANCE.pop(*args)\n    __pragma__('alias', 'pop', 'py_pop')\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a helper/alias to create p5.Vector objects\ndef PVector(x=0, y=0, z=0):\n    return _P5_INSTANCE.createVector(x, y, z)\n# aliases  for p5.Vector class methods\nsetattr(PVector, 'dist', p5.Vector.dist)\nsetattr(PVector, 'add', p5.Vector.add)\nsetattr(PVector, 'sub', p5.Vector.sub)\nsetattr(PVector, 'mult', p5.Vector.mult)\nsetattr(PVector, 'div', p5.Vector.div)\nsetattr(PVector, 'dot', p5.Vector.dot)\nsetattr(PVector, 'cross', p5.Vector.cross)\nsetattr(PVector, 'lerp', p5.Vector.lerp)\nsetattr(PVector, 'random2D', p5.Vector.random2D)\nsetattr(PVector, 'random3D', p5.Vector.random3D)\nsetattr(PVector, 'angleBetween', p5.Vector.angleBetween)\nsetattr(PVector, 'fromAngle', p5.Vector.fromAngle)\nsetattr(PVector, 'fromAngles', p5.Vector.fromAngles)\nsetattr(PVector, 'equals', p5.Vector.equals)\n\ndef pre_draw(p5_instance, draw_func):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP, QUADRATIC\n    global QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global disableFriendlyErrors, deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    disableFriendlyErrors = p5_instance.disableFriendlyErrors\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func()\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f):\n        def wrapper():\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: a Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    instance = __new__(p5(sketch_setup, 'sketch-holder'))\n\n    # inject event functions into p5\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\"\n    )\n\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(instance)(func)\n        setattr(instance, f_name, event_func)\n\n\ndef logOnloaded():\n    console.log(\"Lib loaded!\")\n\n\ndef add_library(lib_name):\n    # placeholder for https://github.com/berinhard/pyp5js/issues/31\n    src = ''\n\n    return console.log(\"Lib name is not valid:\", lib_name)\n\n    console.log(\"Importing:\", src)\n\n    script = document.createElement(\"script\")\n    script.onload = logOnloaded\n    script.src = src\n    document.head.appendChild(script)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_004/target/python_functions.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:12\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, pow, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nvar __name__ = 'python_functions';\nexport var PythonFunctions =  __class__ ('PythonFunctions', [object], {\n\t__module__: __name__,\n});\nsetattr (PythonFunctions, 'map', map);\nsetattr (PythonFunctions, 'filter', filter);\nsetattr (PythonFunctions, 'set', set);\n\n//# sourceMappingURL=python_functions.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_004/target/python_functions.py",
    "content": "class PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_004/target/target_sketch.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:12\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, set, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {ADD, ALT, ARROW, AUDIO, AUTO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC, BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST, DEGREES, DEG_TO_RAD, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION, FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE, LEFT, LEFT_ARROW, LIGHTEST, LINEAR, LINES, LINE_LOOP, LINE_STRIP, MIRROR, MITER, MOVE, MULTIPLY, NEAREST, NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, PVector, QUADRATIC, QUADS, QUAD_STRIP, QUARTER_PI, RADIANS, RADIUS, RAD_TO_DEG, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW, ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL, _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL, _P5_INSTANCE, abs, accelerationX, accelerationY, accelerationZ, acos, add_library, alpha, ambientLight, ambientMaterial, angleMode, append, applyMatrix, arc, arrayCopy, asin, atan, atan2, background, beginContour, beginShape, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, blend, blendMode, blue, boolean, box, brightness, byte, camera, ceil, changed, char, circle, color, colorMode, concat, cone, constrain, copy, cos, createA, createAudio, createButton, createCamera, createCanvas, createCapture, createCheckbox, createColorPicker, createDiv, createElement, createFileInput, createGraphics, createImage, createImg, createInput, createNumberDict, createP, createRadio, createSelect, createShader, createSlider, createSpan, createStringDict, createVector, createVideo, createWriter, cursor, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, cylinder, day, debugMode, degrees, deviceOrientation, directionalLight, disableFriendlyErrors, displayDensity, displayHeight, displayWidth, dist, ellipse, ellipseMode, ellipsoid, endContour, endShape, erase, exp, fill, filter, float, floor, focused, frameCount, frameRate, fullscreen, getURL, getURLParams, getURLPath, global_p5_injection, green, height, hex, hour, httpDo, httpGet, httpPost, hue, image, imageMode, image_proxy, input, int, join, key, keyCode, keyIsPressed, lerp, lerpColor, lightness, lights, line, loadBytes, loadFont, loadImage, loadJSON, loadModel, loadPixels, loadShader, loadStrings, loadTable, loadXML, log, logOnloaded, loop, mag, map, match, matchAll, max, millis, min, minute, model, month, mouseButton, mouseIsPressed, mouseX, mouseY, nf, nfc, nfp, nfs, noCanvas, noCursor, noDebugMode, noErase, noFill, noLoop, noSmooth, noStroke, noTint, noise, noiseDetail, noiseSeed, norm, normalMaterial, orbitControl, ortho, pAccelerationX, pAccelerationY, pAccelerationZ, pRotationX, pRotationY, pRotationZ, perspective, pixelDensity, pixels, plane, pmouseX, pmouseY, point, pointLight, popMatrix, popStyle, pow, pre_draw, push, pushMatrix, pushStyle, pwinMouseX, pwinMouseY, py_clear, py_get, py_pop, py_set, py_sort, py_split, quad, quadraticVertex, radians, random, randomGaussian, randomSeed, rect, rectMode, red, redraw, remove, removeElements, resetMatrix, resetShader, resizeCanvas, reverse, rotate, rotateX, rotateY, rotateZ, rotationX, rotationY, rotationZ, round, saturation, save, saveCanvas, saveFrames, saveJSON, saveStrings, saveTable, scale, second, select, selectAll, setAttributes, setCamera, setMoveThreshold, setShakeThreshold, shader, shearX, shearY, shininess, shorten, shuffle, sin, size, smooth, specularMaterial, sphere, splice, splitTokens, sq, sqrt, square, start_p5, str, stroke, strokeCap, strokeJoin, strokeWeight, subset, tan, text, textAlign, textAscent, textDescent, textFont, textLeading, textSize, textStyle, textWidth, texture, textureMode, textureWrap, tint, torus, touches, translate, triangle, trim, turnAxis, unchar, unhex, updatePixels, vertex, width, winMouseX, winMouseY, windowHeight, windowWidth, year} from './pyp5js.js';\nvar __name__ = '__main__';\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var deviceMoved = null;\nexport var deviceTurned = null;\nexport var deviceShaken = null;\nexport var keyPressed = null;\nexport var keyReleased = null;\nexport var keyTyped = null;\nexport var mouseMoved = null;\nexport var mouseDragged = null;\nexport var mousePressed = null;\nexport var mouseReleased = null;\nexport var mouseClicked = null;\nexport var doubleClicked = null;\nexport var mouseWheel = null;\nexport var touchStarted = null;\nexport var touchMoved = null;\nexport var touchEnded = null;\nexport var windowResized = null;\nexport var keyIsDown = null;\nexport var boids = [];\nvar setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tcreateCanvas (720, 400);\n\tfor (var i = 0; i < 40; i++) {\n\t\tboids.append (Boid (random (720), random (400)));\n\t}\n};\nvar draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tbackground (51);\n\tfor (var boid of boids) {\n\t\tboid.run (boids);\n\t}\n};\nexport var Boid =  __class__ ('Boid', [object], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, x, y) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.acceleration = createVector (0, 0);\n\t\tself.velocity = p5.Vector.random2D ();\n\t\tself.position = createVector (x, y);\n\t\tself.r = 3.0;\n\t\tself.maxspeed = 3;\n\t\tself.maxforce = 0.05;\n\t});},\n\tget run () {return __get__ (this, function (self, boids) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'boids': var boids = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.flock (boids);\n\t\tself.py_update ();\n\t\tself.borders ();\n\t\tself.render ();\n\t});},\n\tget applyForce () {return __get__ (this, function (self, force) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'force': var force = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.acceleration.add (force);\n\t});},\n\tget flock () {return __get__ (this, function (self, boids) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'boids': var boids = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar sep = self.separate (boids);\n\t\tvar ali = self.align (boids);\n\t\tvar coh = self.cohesion (boids);\n\t\tsep.mult (2.5);\n\t\tali.mult (1.0);\n\t\tcoh.mult (1.0);\n\t\tself.applyForce (sep);\n\t\tself.applyForce (ali);\n\t\tself.applyForce (coh);\n\t});},\n\tget py_update () {return __get__ (this, function (self) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.velocity.add (self.acceleration);\n\t\tself.velocity.limit (self.maxspeed);\n\t\tself.position.add (self.velocity);\n\t\tself.acceleration.mult (0);\n\t});},\n\tget seek () {return __get__ (this, function (self, target) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'target': var target = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar desired = p5.Vector.sub (target, self.position);\n\t\tdesired.normalize ();\n\t\tdesired.mult (self.maxspeed);\n\t\tvar steer = p5.Vector.sub (desired, self.velocity);\n\t\tsteer.limit (self.maxforce);\n\t\treturn steer;\n\t});},\n\tget render () {return __get__ (this, function (self) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tfill (127, 127);\n\t\tstroke (200);\n\t\tellipse (self.position.x, self.position.y, 16, 16);\n\t});},\n\tget borders () {return __get__ (this, function (self) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tif (self.position.x < -(self.r)) {\n\t\t\tself.position.x = width + self.r;\n\t\t}\n\t\tif (self.position.y < -(self.r)) {\n\t\t\tself.position.y = height + self.r;\n\t\t}\n\t\tif (self.position.x > width + self.r) {\n\t\t\tself.position.x = -(self.r);\n\t\t}\n\t\tif (self.position.y > height + self.r) {\n\t\t\tself.position.y = -(self.r);\n\t\t}\n\t});},\n\tget separate () {return __get__ (this, function (self, boids) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'boids': var boids = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar desiredseparation = 25.0;\n\t\tvar steer = createVector (0, 0);\n\t\tvar count = 0;\n\t\tfor (var i = 0; i < len (boids); i++) {\n\t\t\tvar d = p5.Vector.dist (self.position, boids [i].position);\n\t\t\tif (d > 0 && d < desiredseparation) {\n\t\t\t\tvar diff = p5.Vector.sub (self.position, boids [i].position);\n\t\t\t\tdiff.normalize ();\n\t\t\t\tdiff.div (d);\n\t\t\t\tsteer.add (diff);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (count > 0) {\n\t\t\tsteer.div (count);\n\t\t}\n\t\tif (steer.mag () > 0) {\n\t\t\tsteer.normalize ();\n\t\t\tsteer.mult (self.maxspeed);\n\t\t\tsteer.sub (self.velocity);\n\t\t\tsteer.limit (self.maxforce);\n\t\t}\n\t\treturn steer;\n\t});},\n\tget align () {return __get__ (this, function (self, boids) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'boids': var boids = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar neighbordist = 50;\n\t\tvar sum = createVector (0, 0);\n\t\tvar count = 0;\n\t\tfor (var i = 0; i < len (boids); i++) {\n\t\t\tvar d = p5.Vector.dist (self.position, boids [i].position);\n\t\t\tif (d > 0 && d < neighbordist) {\n\t\t\t\tsum.add (boids [i].velocity);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (count > 0) {\n\t\t\tsum.div (count);\n\t\t\tsum.normalize ();\n\t\t\tsum.mult (self.maxspeed);\n\t\t\tvar steer = p5.Vector.sub (sum, self.velocity);\n\t\t\tsteer.limit (self.maxforce);\n\t\t\treturn steer;\n\t\t}\n\t\telse {\n\t\t\treturn createVector (0, 0);\n\t\t}\n\t});},\n\tget cohesion () {return __get__ (this, function (self, boids) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'boids': var boids = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar neighbordist = 50;\n\t\tvar sum = createVector (0, 0);\n\t\tvar count = 0;\n\t\tfor (var i = 0; i < len (boids); i++) {\n\t\t\tvar d = p5.Vector.dist (self.position, boids [i].position);\n\t\t\tif (d > 0 && d < neighbordist) {\n\t\t\t\tsum.add (boids [i].position);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (count > 0) {\n\t\t\tsum.div (count);\n\t\t\treturn self.seek (sum);\n\t\t}\n\t\telse {\n\t\t\treturn createVector (0, 0);\n\t\t}\n\t});}\n});\nexport var event_functions = dict ({'deviceMoved': deviceMoved, 'deviceTurned': deviceTurned, 'deviceShaken': deviceShaken, 'keyPressed': keyPressed, 'keyReleased': keyReleased, 'keyTyped': keyTyped, 'mouseMoved': mouseMoved, 'mouseDragged': mouseDragged, 'mousePressed': mousePressed, 'mouseReleased': mouseReleased, 'mouseClicked': mouseClicked, 'doubleClicked': doubleClicked, 'mouseWheel': mouseWheel, 'touchStarted': touchStarted, 'touchMoved': touchMoved, 'touchEnded': touchEnded, 'windowResized': windowResized, 'keyIsDown': keyIsDown});\nstart_p5 (preload, setup, draw, event_functions);\n\n//# sourceMappingURL=target_sketch.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_004/target/target_sketch.project",
    "content": "{\"options\": {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_004/target_sketch.py\", \"anno\": false, \"alimod\": false, \"build\": true, \"complex\": false, \"docat\": false, \"dassert\": false, \"dcheck\": false, \"dextex\": false, \"dlog\": false, \"dmap\": false, \"dnostrip\": false, \"dstat\": false, \"dtree\": false, \"esv\": null, \"ecom\": false, \"fcall\": false, \"gen\": false, \"iconv\": false, \"jscall\": false, \"jskeys\": false, \"jsmod\": false, \"kwargs\": true, \"keycheck\": false, \"license\": false, \"map\": true, \"nomin\": true, \"opov\": false, \"outdir\": null, \"parent\": null, \"run\": false, \"symbols\": null, \"sform\": false, \"tconv\": false, \"unit\": null, \"verbose\": false, \"x\": null, \"xreex\": false, \"xglobs\": false, \"xpath\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt\", \"xtiny\": false, \"star\": false}, \"modules\": [{\"source\": \"/home/bernardo/.pyenv/versions/pyp5js/lib/python3.8/site-packages/transcrypt/modules/org/transcrypt/__runtime__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_004/__target__/org.transcrypt.__runtime__.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_004/target_sketch.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_004/__target__/target_sketch.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/pyp5js.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_004/__target__/pyp5js.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/python_functions.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_004/__target__/python_functions.js\"}]}"
  },
  {
    "path": "docs/examples/transcrypt/sketch_004/target/target_sketch.py",
    "content": "from pyp5js import *\n\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\nkeyIsDown = None\n\n\n# From Prof. Claudio Esperança examples for BrythonIDE\n# https://github.com/esperanc/brythonide/blob/master/demoSketches/boids.py\n\nboids = [];\n\ndef setup() :\n  createCanvas(720, 400);\n\n  # Add an initial set of boids into the system\n  for i in range(40):\n    boids.append (Boid(random(720), random(400)))\n\ndef draw() :\n  background(51);\n  # Run all the boids\n  for boid in boids: boid.run(boids)\n\n\n# Boid class\n# Methods for Separation, Cohesion, Alignment added\nclass Boid (object):\n\n    def __init__(self, x, y) :\n        self.acceleration = createVector(0, 0);\n        self.velocity = p5.Vector.random2D();\n        self.position = createVector(x, y);\n        self.r = 3.0;\n        self.maxspeed = 3;    # Maximum speed\n        self.maxforce = 0.05; # Maximum steering force\n\n    def run (self, boids):\n        self.flock(boids);\n        self.update();\n        self.borders();\n        self.render();\n\n    # Forces go into acceleration\n    def applyForce (self,force):\n        self.acceleration.add(force);\n\n    # We accumulate a new acceleration each time based on three rules\n    def flock (self, boids) :\n        sep = self.separate(boids); # Separation\n        ali = self.align(boids);    # Alignment\n        coh = self.cohesion(boids); # Cohesion\n        # Arbitrarily weight these forces\n        sep.mult(2.5);\n        ali.mult(1.0);\n        coh.mult(1.0);\n        # Add the force vectors to acceleration\n        self.applyForce(sep);\n        self.applyForce(ali);\n        self.applyForce(coh);\n\n    # Method to update location\n    def update (self) :\n        # Update velocity\n        self.velocity.add(self.acceleration);\n        # Limit speed\n        self.velocity.limit(self.maxspeed);\n        self.position.add(self.velocity);\n        # Reset acceleration to 0 each cycle\n        self.acceleration.mult(0);\n\n    # A method that calculates and applies a steering force towards a target\n    # STEER = DESIRED MINUS VELOCITY\n    def seek (self,target):\n        desired = p5.Vector.sub(target, self.position); # A vector pointing from the location to the target\n        # Normalize desired and scale to maximum speed\n        desired.normalize();\n        desired.mult(self.maxspeed);\n        # Steering = Desired minus Velocity\n        steer = p5.Vector.sub(desired, self.velocity);\n        steer.limit(self.maxforce); # Limit to maximum steering force\n        return steer;\n\n    # Draw boid as a circle\n    def render (self) :\n        fill(127, 127);\n        stroke(200);\n        ellipse(self.position.x, self.position.y, 16, 16);\n\n    # Wraparound\n    def borders (self) :\n        if (self.position.x < -self.r): self.position.x = width + self.r;\n        if (self.position.y < -self.r): self.position.y = height + self.r;\n        if (self.position.x > width + self.r): self.position.x = -self.r;\n        if (self.position.y > height + self.r): self.position.y = -self.r;\n\n\n    # Separation\n    # Method checks for nearby boids and steers away\n    def separate (self, boids) :\n        desiredseparation = 25.0;\n        steer = createVector(0, 0);\n        count = 0;\n        # For every boid in the system, check if it's too close\n        for i in range(len(boids)):\n            d = p5.Vector.dist(self.position, boids[i].position);\n            # If the distance is greater than 0 and less than an arbitrary amount (0 when you are yourself)\n            if ((d > 0) and (d < desiredseparation)) :\n              # Calculate vector pointing away from neighbor\n              diff = p5.Vector.sub(self.position, boids[i].position);\n              diff.normalize();\n              diff.div(d); # Weight by distance\n              steer.add(diff);\n              count+=1; # Keep track of how many\n        # Average -- divide by how many\n        if (count > 0) :\n            steer.div(count);\n\n\n        # As long as the vector is greater than 0\n        if (steer.mag() > 0) :\n            # Implement Reynolds: Steering = Desired - Velocity\n            steer.normalize();\n            steer.mult(self.maxspeed);\n            steer.sub(self.velocity);\n            steer.limit(self.maxforce);\n\n        return steer;\n\n\n    # Alignment\n    # For every nearby boid in the system, calculate the average velocity\n    def align (self, boids) :\n      neighbordist = 50;\n      sum = createVector(0, 0);\n      count = 0;\n      for i in range(len(boids)):\n        d = p5.Vector.dist(self.position, boids[i].position);\n        if ((d > 0) and (d < neighbordist)) :\n          sum.add(boids[i].velocity);\n          count+=1;\n\n      if (count > 0) :\n        sum.div(count);\n        sum.normalize();\n        sum.mult(self.maxspeed);\n        steer = p5.Vector.sub(sum, self.velocity);\n        steer.limit(self.maxforce);\n        return steer;\n      else:\n        return createVector(0, 0);\n\n    # Cohesion\n    # For the average location (i.e. center) of all nearby boids, calculate steering vector towards that location\n    def cohesion  (self, boids) :\n      neighbordist = 50;\n      sum = createVector(0, 0); # Start with empty vector to accumulate all locations\n      count = 0;\n      for i in range(len(boids)):\n        d = p5.Vector.dist(self.position, boids[i].position);\n        if ((d > 0) and (d < neighbordist)) :\n          sum.add(boids[i].position); # Add location\n          count+=1;\n\n      if (count > 0) :\n        sum.div(count);\n        return self.seek(sum); # Steer towards the location\n      else:\n        return createVector(0, 0);\n\n\n\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n    \"keyIsDown\": keyIsDown,\n}\n\nstart_p5(preload, setup, draw, event_functions)"
  },
  {
    "path": "docs/examples/transcrypt/sketch_005/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_005 - pyp5js (using Transcrypt)</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/transcrypt/sketch_005\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre>\n             <code>\ndef setup():\n    createCanvas(600,600)\n    noStroke()\n    rectMode(CENTER)\n\n\ndef draw():\n    colorMode(HSB,100)\n    h = map(mouseY,0,600,0,100)\n    background(h,100,100)\n    fill(100-h,100,100)\n    rect(300,300,mouseX+1,mouseX+1)\n\n              </code>\n          </pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/transcrypt/sketch_005/sketch_005.py",
    "content": "def setup():\n    createCanvas(600,600)\n    noStroke()\n    rectMode(CENTER)\n\n\ndef draw():\n    colorMode(HSB,100)\n    h = map(mouseY,0,600,0,100)\n    background(h,100,100)\n    fill(100-h,100,100)\n    rect(300,300,mouseX+1,mouseX+1)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_005/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/transcrypt/sketch_005/target/org.transcrypt.__runtime__.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:13\nvar __name__ = 'org.transcrypt.__runtime__';\nexport var __envir__ = {};\n__envir__.interpreter_name = 'python';\n__envir__.transpiler_name = 'transcrypt';\n__envir__.executor_name = __envir__.transpiler_name;\n__envir__.transpiler_version = '3.9.0';\n\nexport function __nest__ (headObject, tailNames, value) {\n    var current = headObject;\n    if (tailNames != '') {\n        var tailChain = tailNames.split ('.');\n        var firstNewIndex = tailChain.length;\n        for (var index = 0; index < tailChain.length; index++) {\n            if (!current.hasOwnProperty (tailChain [index])) {\n                firstNewIndex = index;\n                break;\n            }\n            current = current [tailChain [index]];\n        }\n        for (var index = firstNewIndex; index < tailChain.length; index++) {\n            current [tailChain [index]] = {};\n            current = current [tailChain [index]];\n        }\n    }\n    for (let attrib of Object.getOwnPropertyNames (value)) {\n        Object.defineProperty (current, attrib, {\n            get () {return value [attrib];},\n            enumerable: true,\n            configurable: true\n        });\n    }\n};\nexport function __init__ (module) {\n    if (!module.__inited__) {\n        module.__all__.__init__ (module.__all__);\n        module.__inited__ = true;\n    }\n    return module.__all__;\n};\nexport function __get__ (aThis, func, quotedFuncName) {\n    if (aThis) {\n        if (aThis.hasOwnProperty ('__class__') || typeof aThis == 'string' || aThis instanceof String) {\n            if (quotedFuncName) {\n                Object.defineProperty (aThis, quotedFuncName, {\n                    value: function () {\n                        var args = [] .slice.apply (arguments);\n                        return func.apply (null, [aThis] .concat (args));\n                    },\n                    writable: true,\n                    enumerable: true,\n                    configurable: true\n                });\n            }\n            return function () {\n                var args = [] .slice.apply (arguments);\n                return func.apply (null, [aThis.__proxy__ ? aThis.__proxy__ : aThis] .concat (args));\n            };\n        }\n        else {\n            return func;\n        }\n    }\n    else {\n        return func;\n    }\n};\nexport function __getcm__ (aThis, func, quotedFuncName) {\n    if (aThis.hasOwnProperty ('__class__')) {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis.__class__] .concat (args));\n        };\n    }\n    else {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis] .concat (args));\n        };\n    }\n};\nexport function __getsm__ (aThis, func, quotedFuncName) {\n    return func;\n};\nexport var py_metatype = {\n    __name__: 'type',\n    __bases__: [],\n    __new__: function (meta, name, bases, attribs) {\n        var cls = function () {\n            var args = [] .slice.apply (arguments);\n            return cls.__new__ (args);\n        };\n        for (var index = bases.length - 1; index >= 0; index--) {\n            var base = bases [index];\n            for (var attrib in base) {\n                var descrip = Object.getOwnPropertyDescriptor (base, attrib);\n                if (descrip == null) {\n                    continue;\n                }\n                Object.defineProperty (cls, attrib, descrip);\n            }\n            for (let symbol of Object.getOwnPropertySymbols (base)) {\n                let descrip = Object.getOwnPropertyDescriptor (base, symbol);\n                Object.defineProperty (cls, symbol, descrip);\n            }\n        }\n        cls.__metaclass__ = meta;\n        cls.__name__ = name.startsWith ('py_') ? name.slice (3) : name;\n        cls.__bases__ = bases;\n        for (var attrib in attribs) {\n            var descrip = Object.getOwnPropertyDescriptor (attribs, attrib);\n            Object.defineProperty (cls, attrib, descrip);\n        }\n        for (let symbol of Object.getOwnPropertySymbols (attribs)) {\n            let descrip = Object.getOwnPropertyDescriptor (attribs, symbol);\n            Object.defineProperty (cls, symbol, descrip);\n        }\n        return cls;\n    }\n};\npy_metatype.__metaclass__ = py_metatype;\nexport var object = {\n    __init__: function (self) {},\n    __metaclass__: py_metatype,\n    __name__: 'object',\n    __bases__: [],\n    __new__: function (args) {\n        var instance = Object.create (this, {__class__: {value: this, enumerable: true}});\n        if ('__getattr__' in this || '__setattr__' in this) {\n            instance.__proxy__ = new Proxy (instance, {\n                get: function (target, name) {\n                    let result = target [name];\n                    if (result == undefined) {\n                        return target.__getattr__ (name);\n                    }\n                    else {\n                        return result;\n                    }\n                },\n                set: function (target, name, value) {\n                    try {\n                        target.__setattr__ (name, value);\n                    }\n                    catch (exception) {\n                        target [name] = value;\n                    }\n                    return true;\n                }\n            })\n\t\t\tinstance = instance.__proxy__\n        }\n        this.__init__.apply (null, [instance] .concat (args));\n        return instance;\n    }\n};\nexport function __class__ (name, bases, attribs, meta) {\n    if (meta === undefined) {\n        meta = bases [0] .__metaclass__;\n    }\n    return meta.__new__ (meta, name, bases, attribs);\n};\nexport function __pragma__ () {};\nexport function __call__ (/* <callee>, <this>, <params>* */) {\n    var args = [] .slice.apply (arguments);\n    if (typeof args [0] == 'object' && '__call__' in args [0]) {\n        return args [0] .__call__ .apply (args [1], args.slice (2));\n    }\n    else {\n        return args [0] .apply (args [1], args.slice (2));\n    }\n};\n__envir__.executor_name = __envir__.transpiler_name;\nvar __main__ = {__file__: ''};\nvar __except__ = null;\nexport function __kwargtrans__ (anObject) {\n    anObject.__kwargtrans__ = null;\n    anObject.constructor = Object;\n    return anObject;\n}\nexport function __super__ (aClass, methodName) {\n    for (let base of aClass.__bases__) {\n        if (methodName in base) {\n           return base [methodName];\n        }\n    }\n    throw new Exception ('Superclass method not found');\n}\nexport function property (getter, setter) {\n    if (!setter) {\n        setter = function () {};\n    }\n    return {get: function () {return getter (this)}, set: function (value) {setter (this, value)}, enumerable: true};\n}\nexport function __setproperty__ (anObject, name, descriptor) {\n    if (!anObject.hasOwnProperty (name)) {\n        Object.defineProperty (anObject, name, descriptor);\n    }\n}\nexport function assert (condition, message) {\n    if (!condition) {\n        throw AssertionError (message, new Error ());\n    }\n}\nexport function __mergekwargtrans__ (object0, object1) {\n    var result = {};\n    for (var attrib in object0) {\n        result [attrib] = object0 [attrib];\n    }\n    for (var attrib in object1) {\n        result [attrib] = object1 [attrib];\n    }\n    return result;\n};\nexport function __mergefields__ (targetClass, sourceClass) {\n    let fieldNames = ['__reprfields__', '__comparefields__', '__initfields__']\n    if (sourceClass [fieldNames [0]]) {\n        if (targetClass [fieldNames [0]]) {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set ([...targetClass [fieldName], ...sourceClass [fieldName]]);\n            }\n        }\n        else {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set (sourceClass [fieldName]);\n            }\n        }\n    }\n}\nexport function __withblock__ (manager, statements) {\n    if (hasattr (manager, '__enter__')) {\n        try {\n            manager.__enter__ ();\n            statements ();\n            manager.__exit__ ();\n        }\n        catch (exception) {\n            if (! (manager.__exit__ (exception.name, exception, exception.stack))) {\n                throw exception;\n            }\n        }\n    }\n    else {\n        statements ();\n        manager.close ();\n    }\n};\nexport function dir (obj) {\n    var aList = [];\n    for (var aKey in obj) {\n        aList.push (aKey.startsWith ('py_') ? aKey.slice (3) : aKey);\n    }\n    aList.sort ();\n    return aList;\n};\nexport function setattr (obj, name, value) {\n    obj [name] = value;\n};\nexport function getattr (obj, name) {\n    return name in obj ? obj [name] : obj ['py_' + name];\n};\nexport function hasattr (obj, name) {\n    try {\n        return name in obj || 'py_' + name in obj;\n    }\n    catch (exception) {\n        return false;\n    }\n};\nexport function delattr (obj, name) {\n    if (name in obj) {\n        delete obj [name];\n    }\n    else {\n        delete obj ['py_' + name];\n    }\n};\nexport function __in__ (element, container) {\n    if (container === undefined || container === null) {\n        return false;\n    }\n    if (container.__contains__ instanceof Function) {\n        return container.__contains__ (element);\n    }\n    else {\n        return (\n            container.indexOf ?\n            container.indexOf (element) > -1 :\n            container.hasOwnProperty (element)\n        );\n    }\n};\nexport function __specialattrib__ (attrib) {\n    return (attrib.startswith ('__') && attrib.endswith ('__')) || attrib == 'constructor' || attrib.startswith ('py_');\n};\nexport function len (anObject) {\n    if (anObject === undefined || anObject === null) {\n        return 0;\n    }\n    if (anObject.__len__ instanceof Function) {\n        return anObject.__len__ ();\n    }\n    if (anObject.length !== undefined) {\n        return anObject.length;\n    }\n    var length = 0;\n    for (var attr in anObject) {\n        if (!__specialattrib__ (attr)) {\n            length++;\n        }\n    }\n    return length;\n};\nexport function __i__ (any) {\n    return py_typeof (any) == dict ? any.py_keys () : any;\n}\nexport function __k__ (keyed, key) {\n    var result = keyed [key];\n    if (typeof result == 'undefined') {\n        if (keyed instanceof Array)\n            if (key == +key && key >= 0 && keyed.length > key)\n                return result;\n            else\n                throw IndexError (key, new Error());\n        else\n            throw KeyError (key, new Error());\n    }\n    return result;\n}\nexport function __t__ (target) {\n    return (\n        target === undefined || target === null ? false :\n        ['boolean', 'number'] .indexOf (typeof target) >= 0 ? target :\n        target.__bool__ instanceof Function ? (target.__bool__ () ? target : false) :\n        target.__len__ instanceof Function ?  (target.__len__ () !== 0 ? target : false) :\n        target instanceof Function ? target :\n        len (target) !== 0 ? target :\n        false\n    );\n}\nexport function float (any) {\n    if (any == 'inf') {\n        return Infinity;\n    }\n    else if (any == '-inf') {\n        return -Infinity;\n    }\n    else if (any == 'nan') {\n        return NaN;\n    }\n    else if (isNaN (parseFloat (any))) {\n        if (any === false) {\n            return 0;\n        }\n        else if (any === true) {\n            return 1;\n        }\n        else {\n            throw ValueError (\"could not convert string to float: '\" + str(any) + \"'\", new Error ());\n        }\n    }\n    else {\n        return +any;\n    }\n};\nfloat.__name__ = 'float';\nfloat.__bases__ = [object];\nexport function int (any) {\n    return float (any) | 0\n};\nint.__name__ = 'int';\nint.__bases__ = [object];\nexport function bool (any) {\n    return !!__t__ (any);\n};\nbool.__name__ = 'bool';\nbool.__bases__ = [int];\nexport function py_typeof (anObject) {\n    var aType = typeof anObject;\n    if (aType == 'object') {\n        try {\n            return '__class__' in anObject ? anObject.__class__ : object;\n        }\n        catch (exception) {\n            return aType;\n        }\n    }\n    else {\n        return (\n            aType == 'boolean' ? bool :\n            aType == 'string' ? str :\n            aType == 'number' ? (anObject % 1 == 0 ? int : float) :\n            null\n        );\n    }\n};\nexport function issubclass (aClass, classinfo) {\n    if (classinfo instanceof Array) {\n        for (let aClass2 of classinfo) {\n            if (issubclass (aClass, aClass2)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    try {\n        var aClass2 = aClass;\n        if (aClass2 == classinfo) {\n            return true;\n        }\n        else {\n            var bases = [].slice.call (aClass2.__bases__);\n            while (bases.length) {\n                aClass2 = bases.shift ();\n                if (aClass2 == classinfo) {\n                    return true;\n                }\n                if (aClass2.__bases__.length) {\n                    bases = [].slice.call (aClass2.__bases__).concat (bases);\n                }\n            }\n            return false;\n        }\n    }\n    catch (exception) {\n        return aClass == classinfo || classinfo == object;\n    }\n};\nexport function isinstance (anObject, classinfo) {\n    try {\n        return '__class__' in anObject ? issubclass (anObject.__class__, classinfo) : issubclass (py_typeof (anObject), classinfo);\n    }\n    catch (exception) {\n        return issubclass (py_typeof (anObject), classinfo);\n    }\n};\nexport function callable (anObject) {\n    return anObject && typeof anObject == 'object' && '__call__' in anObject ? true : typeof anObject === 'function';\n};\nexport function repr (anObject) {\n    try {\n        return anObject.__repr__ ();\n    }\n    catch (exception) {\n        try {\n            return anObject.__str__ ();\n        }\n        catch (exception) {\n            try {\n                if (anObject == null) {\n                    return 'None';\n                }\n                else if (anObject.constructor == Object) {\n                    var result = '{';\n                    var comma = false;\n                    for (var attrib in anObject) {\n                        if (!__specialattrib__ (attrib)) {\n                            if (attrib.isnumeric ()) {\n                                var attribRepr = attrib;\n                            }\n                            else {\n                                var attribRepr = '\\'' + attrib + '\\'';\n                            }\n                            if (comma) {\n                                result += ', ';\n                            }\n                            else {\n                                comma = true;\n                            }\n                            result += attribRepr + ': ' + repr (anObject [attrib]);\n                        }\n                    }\n                    result += '}';\n                    return result;\n                }\n                else {\n                    return typeof anObject == 'boolean' ? anObject.toString () .capitalize () : anObject.toString ();\n                }\n            }\n            catch (exception) {\n                return '<object of type: ' + typeof anObject + '>';\n            }\n        }\n    }\n};\nexport function chr (charCode) {\n    return String.fromCharCode (charCode);\n};\nexport function ord (aChar) {\n    return aChar.charCodeAt (0);\n};\nexport function max (nrOrSeq) {\n    return arguments.length == 1 ? Math.max (...nrOrSeq) : Math.max (...arguments);\n};\nexport function min (nrOrSeq) {\n    return arguments.length == 1 ? Math.min (...nrOrSeq) : Math.min (...arguments);\n};\nexport var abs = Math.abs;\nexport function round (number, ndigits) {\n    if (ndigits) {\n        var scale = Math.pow (10, ndigits);\n        number *= scale;\n    }\n    var rounded = Math.round (number);\n    if (rounded - number == 0.5 && rounded % 2) {\n        rounded -= 1;\n    }\n    if (ndigits) {\n        rounded /= scale;\n    }\n    return rounded;\n};\nexport function __jsUsePyNext__ () {\n    try {\n        var result = this.__next__ ();\n        return {value: result, done: false};\n    }\n    catch (exception) {\n        return {value: undefined, done: true};\n    }\n}\nexport function __pyUseJsNext__ () {\n    var result = this.next ();\n    if (result.done) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result.value;\n    }\n}\nexport function py_iter (iterable) {\n    if (typeof iterable == 'string' || '__iter__' in iterable) {\n        var result = iterable.__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('selector' in iterable) {\n        var result = list (iterable) .__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('next' in iterable) {\n        var result = iterable\n        if (! ('__next__' in result)) {\n            result.__next__ = __pyUseJsNext__;\n        }\n    }\n    else if (Symbol.iterator in iterable) {\n        var result = iterable [Symbol.iterator] ();\n        result.__next__ = __pyUseJsNext__;\n    }\n    else {\n        throw IterableError (new Error ());\n    }\n    result [Symbol.iterator] = function () {return result;};\n    return result;\n}\nexport function py_next (iterator) {\n    try {\n        var result = iterator.__next__ ();\n    }\n    catch (exception) {\n        var result = iterator.next ();\n        if (result.done) {\n            throw StopIteration (new Error ());\n        }\n        else {\n            return result.value;\n        }\n    }\n    if (result == undefined) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result;\n    }\n}\nexport function __PyIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__PyIterator__.prototype.__next__ = function() {\n    if (this.index < this.iterable.length) {\n        return this.iterable [this.index++];\n    }\n    else {\n        throw StopIteration (new Error ());\n    }\n};\nexport function __JsIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__JsIterator__.prototype.next = function () {\n    if (this.index < this.iterable.py_keys.length) {\n        return {value: this.index++, done: false};\n    }\n    else {\n        return {value: undefined, done: true};\n    }\n};\nexport function py_reversed (iterable) {\n    iterable = iterable.slice ();\n    iterable.reverse ();\n    return iterable;\n};\nexport function zip () {\n    var args = [] .slice.call (arguments);\n    for (var i = 0; i < args.length; i++) {\n        if (typeof args [i] == 'string') {\n            args [i] = args [i] .split ('');\n        }\n        else if (!Array.isArray (args [i])) {\n            args [i] = Array.from (args [i]);\n        }\n    }\n    var shortest = args.length == 0 ? [] : args.reduce (\n        function (array0, array1) {\n            return array0.length < array1.length ? array0 : array1;\n        }\n    );\n    return shortest.map (\n        function (current, index) {\n            return args.map (\n                function (current) {\n                    return current [index];\n                }\n            );\n        }\n    );\n};\nexport function range (start, stop, step) {\n    if (stop == undefined) {\n        stop = start;\n        start = 0;\n    }\n    if (step == undefined) {\n        step = 1;\n    }\n    if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) {\n        return [];\n    }\n    var result = [];\n    for (var i = start; step > 0 ? i < stop : i > stop; i += step) {\n        result.push(i);\n    }\n    return result;\n};\nexport function any (iterable) {\n    for (let item of iterable) {\n        if (bool (item)) {\n            return true;\n        }\n    }\n    return false;\n}\nexport function all (iterable) {\n    for (let item of iterable) {\n        if (! bool (item)) {\n            return false;\n        }\n    }\n    return true;\n}\nexport function sum (iterable) {\n    let result = 0;\n    for (let item of iterable) {\n        result += item;\n    }\n    return result;\n}\nexport function enumerate (iterable) {\n    return zip (range (len (iterable)), iterable);\n}\nexport function copy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = anObject [attrib];\n            }\n        }\n        return result;\n    }\n}\nexport function deepcopy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = deepcopy (anObject [attrib]);\n            }\n        }\n        return result;\n    }\n}\nexport function list (iterable) {\n    let instance = iterable ? Array.from (iterable) : [];\n    return instance;\n}\nArray.prototype.__class__ = list;\nlist.__name__ = 'list';\nlist.__bases__ = [object];\nArray.prototype.__iter__ = function () {return new __PyIterator__ (this);};\nArray.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    else if (stop > this.length) {\n        stop = this.length;\n    }\n    if (step == 1) {\n        return Array.prototype.slice.call(this, start, stop);\n    }\n    let result = list ([]);\n    for (let index = start; index < stop; index += step) {\n        result.push (this [index]);\n    }\n    return result;\n};\nArray.prototype.__setslice__ = function (start, stop, step, source) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    if (step == null) {\n        Array.prototype.splice.apply (this, [start, stop - start] .concat (source));\n    }\n    else {\n        let sourceIndex = 0;\n        for (let targetIndex = start; targetIndex < stop; targetIndex += step) {\n            this [targetIndex] = source [sourceIndex++];\n        }\n    }\n};\nArray.prototype.__repr__ = function () {\n    if (this.__class__ == set && !this.length) {\n        return 'set()';\n    }\n    let result = !this.__class__ || this.__class__ == list ? '[' : this.__class__ == tuple ? '(' : '{';\n    for (let index = 0; index < this.length; index++) {\n        if (index) {\n            result += ', ';\n        }\n        result += repr (this [index]);\n    }\n    if (this.__class__ == tuple && this.length == 1) {\n        result += ',';\n    }\n    result += !this.__class__ || this.__class__ == list ? ']' : this.__class__ == tuple ? ')' : '}';;\n    return result;\n};\nArray.prototype.__str__ = Array.prototype.__repr__;\nArray.prototype.append = function (element) {\n    this.push (element);\n};\nArray.prototype.py_clear = function () {\n    this.length = 0;\n};\nArray.prototype.extend = function (aList) {\n    this.push.apply (this, aList);\n};\nArray.prototype.insert = function (index, element) {\n    this.splice (index, 0, element);\n};\nArray.prototype.remove = function (element) {\n    let index = this.indexOf (element);\n    if (index == -1) {\n        throw ValueError (\"list.remove(x): x not in list\", new Error ());\n    }\n    this.splice (index, 1);\n};\nArray.prototype.index = function (element) {\n    return this.indexOf (element);\n};\nArray.prototype.py_pop = function (index) {\n    if (index == undefined) {\n        return this.pop ();\n    }\n    else {\n        return this.splice (index, 1) [0];\n    }\n};\nArray.prototype.py_sort = function () {\n    __sort__.apply  (null, [this].concat ([] .slice.apply (arguments)));\n};\nArray.prototype.__add__ = function (aList) {\n    return list (this.concat (aList));\n};\nArray.prototype.__mul__ = function (scalar) {\n    let result = this;\n    for (let i = 1; i < scalar; i++) {\n        result = result.concat (this);\n    }\n    return result;\n};\nArray.prototype.__rmul__ = Array.prototype.__mul__;\nexport function tuple (iterable) {\n    let instance = iterable ? [] .slice.apply (iterable) : [];\n    instance.__class__ = tuple;\n    return instance;\n}\ntuple.__name__ = 'tuple';\ntuple.__bases__ = [object];\nexport function set (iterable) {\n    let instance = [];\n    if (iterable) {\n        for (let index = 0; index < iterable.length; index++) {\n            instance.add (iterable [index]);\n        }\n    }\n    instance.__class__ = set;\n    return instance;\n}\nset.__name__ = 'set';\nset.__bases__ = [object];\nArray.prototype.__bindexOf__ = function (element) {\n    element += '';\n    let mindex = 0;\n    let maxdex = this.length - 1;\n    while (mindex <= maxdex) {\n        let index = (mindex + maxdex) / 2 | 0;\n        let middle = this [index] + '';\n        if (middle < element) {\n            mindex = index + 1;\n        }\n        else if (middle > element) {\n            maxdex = index - 1;\n        }\n        else {\n            return index;\n        }\n    }\n    return -1;\n};\nArray.prototype.add = function (element) {\n    if (this.indexOf (element) == -1) {\n        this.push (element);\n    }\n};\nArray.prototype.discard = function (element) {\n    var index = this.indexOf (element);\n    if (index != -1) {\n        this.splice (index, 1);\n    }\n};\nArray.prototype.isdisjoint = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issuperset = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) == -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issubset = function (other) {\n    return set (other.slice ()) .issuperset (this);\n};\nArray.prototype.union = function (other) {\n    let result = set (this.slice () .sort ());\n    for (let i = 0; i < other.length; i++) {\n        if (result.__bindexOf__ (other [i]) == -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.intersection = function (other) {\n    this.sort ();\n    let result = set ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.difference = function (other) {\n    let sother = set (other.slice () .sort ());\n    let result = set ();\n    for (let i = 0; i < this.length; i++) {\n        if (sother.__bindexOf__ (this [i]) == -1) {\n            result.push (this [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.symmetric_difference = function (other) {\n    return this.union (other) .difference (this.intersection (other));\n};\nArray.prototype.py_update = function () {\n    let updated = [] .concat.apply (this.slice (), arguments) .sort ();\n    this.py_clear ();\n    for (let i = 0; i < updated.length; i++) {\n        if (updated [i] != updated [i - 1]) {\n            this.push (updated [i]);\n        }\n    }\n};\nArray.prototype.__eq__ = function (other) {\n    if (this.length != other.length) {\n        return false;\n    }\n    if (this.__class__ == set) {\n        this.sort ();\n        other.sort ();\n    }\n    for (let i = 0; i < this.length; i++) {\n        if (this [i] != other [i]) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.__ne__ = function (other) {\n    return !this.__eq__ (other);\n};\nArray.prototype.__le__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issubset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] > other [i]) {\n                return false;\n            }\n            else if (this [i] < other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__ge__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issuperset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] < other [i]) {\n                return false;\n            }\n            else if (this [i] > other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__lt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issubset (other) && !this.issuperset (other) :\n        !this.__ge__ (other)\n    );\n};\nArray.prototype.__gt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issuperset (other) && !this.issubset (other) :\n        !this.__le__ (other)\n    );\n};\nexport function bytearray (bytable, encoding) {\n    if (bytable == undefined) {\n        return new Uint8Array (0);\n    }\n    else {\n        let aType = py_typeof (bytable);\n        if (aType == int) {\n            return new Uint8Array (bytable);\n        }\n        else if (aType == str) {\n            let aBytes = new Uint8Array (len (bytable));\n            for (let i = 0; i < len (bytable); i++) {\n                aBytes [i] = bytable.charCodeAt (i);\n            }\n            return aBytes;\n        }\n        else if (aType == list || aType == tuple) {\n            return new Uint8Array (bytable);\n        }\n        else {\n            throw py_TypeError;\n        }\n    }\n}\nexport var bytes = bytearray;\nUint8Array.prototype.__add__ = function (aBytes) {\n    let result = new Uint8Array (this.length + aBytes.length);\n    result.set (this);\n    result.set (aBytes, this.length);\n    return result;\n};\nUint8Array.prototype.__mul__ = function (scalar) {\n    let result = new Uint8Array (scalar * this.length);\n    for (let i = 0; i < scalar; i++) {\n        result.set (this, i * this.length);\n    }\n    return result;\n};\nUint8Array.prototype.__rmul__ = Uint8Array.prototype.__mul__;\nexport function str (stringable) {\n    if (typeof stringable === 'number')\n        return stringable.toString();\n    else {\n        try {\n            return stringable.__str__ ();\n        }\n        catch (exception) {\n            try {\n                return repr (stringable);\n            }\n            catch (exception) {\n                return String (stringable);\n            }\n        }\n    }\n};\nString.prototype.__class__ = str;\nstr.__name__ = 'str';\nstr.__bases__ = [object];\nString.prototype.__iter__ = function () {new __PyIterator__ (this);};\nString.prototype.__repr__ = function () {\n    return (this.indexOf ('\\'') == -1 ? '\\'' + this + '\\'' : '\"' + this + '\"') .py_replace ('\\t', '\\\\t') .py_replace ('\\n', '\\\\n');\n};\nString.prototype.__str__ = function () {\n    return this;\n};\nString.prototype.capitalize = function () {\n    return this.charAt (0).toUpperCase () + this.slice (1);\n};\nString.prototype.endswith = function (suffix) {\n    if (suffix instanceof Array) {\n        for (var i=0;i<suffix.length;i++) {\n            if (this.slice (-suffix[i].length) == suffix[i])\n                return true;\n        }\n    } else\n        return suffix == '' || this.slice (-suffix.length) == suffix;\n    return false;\n};\nString.prototype.find = function (sub, start) {\n    return this.indexOf (sub, start);\n};\nString.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    var result = '';\n    if (step == 1) {\n        result = this.substring (start, stop);\n    }\n    else {\n        for (var index = start; index < stop; index += step) {\n            result = result.concat (this.charAt(index));\n        }\n    }\n    return result;\n};\n__setproperty__ (String.prototype, 'format', {\n    get: function () {return __get__ (this, function (self) {\n        var args = tuple ([] .slice.apply (arguments).slice (1));\n        var autoIndex = 0;\n        return self.replace (/\\{(\\w*)\\}/g, function (match, key) {\n            if (key == '') {\n                key = autoIndex++;\n            }\n            if (key == +key) {\n                return args [key] === undefined ? match : str (args [key]);\n            }\n            else {\n                for (var index = 0; index < args.length; index++) {\n                    if (typeof args [index] == 'object' && args [index][key] !== undefined) {\n                        return str (args [index][key]);\n                    }\n                }\n                return match;\n            }\n        });\n    });},\n    enumerable: true\n});\nString.prototype.isalnum = function () {\n    return /^[0-9a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isalpha = function () {\n    return /^[a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isdecimal = function () {\n    return /^[0-9]{1,}$/.test(this)\n}\nString.prototype.isdigit = function () {\n    return this.isdecimal()\n}\nString.prototype.islower = function () {\n    return /^[a-z]{1,}$/.test(this)\n}\nString.prototype.isupper = function () {\n    return /^[A-Z]{1,}$/.test(this)\n}\nString.prototype.isspace = function () {\n    return /^[\\s]{1,}$/.test(this)\n}\nString.prototype.isnumeric = function () {\n    return !isNaN (parseFloat (this)) && isFinite (this);\n};\nString.prototype.join = function (strings) {\n    strings = Array.from (strings);\n    return strings.join (this);\n};\nString.prototype.lower = function () {\n    return this.toLowerCase ();\n};\nString.prototype.py_replace = function (old, aNew, maxreplace) {\n    return this.split (old, maxreplace) .join (aNew);\n};\nString.prototype.lstrip = function () {\n    return this.replace (/^\\s*/g, '');\n};\nString.prototype.rfind = function (sub, start) {\n    return this.lastIndexOf (sub, start);\n};\nString.prototype.rsplit = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            var maxrsplit = result.length - maxsplit;\n            return [result.slice (0, maxrsplit) .join (sep)] .concat (result.slice (maxrsplit));\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.rstrip = function () {\n    return this.replace (/\\s*$/g, '');\n};\nString.prototype.py_split = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            return result.slice (0, maxsplit).concat ([result.slice (maxsplit).join (sep)]);\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.startswith = function (prefix) {\n    if (prefix instanceof Array) {\n        for (var i=0;i<prefix.length;i++) {\n            if (this.indexOf (prefix [i]) == 0)\n                return true;\n        }\n    } else\n        return this.indexOf (prefix) == 0;\n    return false;\n};\nString.prototype.strip = function () {\n    return this.trim ();\n};\nString.prototype.upper = function () {\n    return this.toUpperCase ();\n};\nString.prototype.__mul__ = function (scalar) {\n    var result = '';\n    for (var i = 0; i < scalar; i++) {\n        result = result + this;\n    }\n    return result;\n};\nString.prototype.__rmul__ = String.prototype.__mul__;\nfunction __contains__ (element) {\n    return this.hasOwnProperty (element);\n}\nfunction __keys__ () {\n    var keys = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            keys.push (attrib);\n        }\n    }\n    return keys;\n}\nfunction __items__ () {\n    var items = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            items.push ([attrib, this [attrib]]);\n        }\n    }\n    return items;\n}\nfunction __del__ (key) {\n    delete this [key];\n}\nfunction __clear__ () {\n    for (var attrib in this) {\n        delete this [attrib];\n    }\n}\nfunction __getdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result == undefined) {\n        result = this ['py_' + aKey]\n    }\n    return result == undefined ? (aDefault == undefined ? null : aDefault) : result;\n}\nfunction __setdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        return result;\n    }\n    var val = aDefault == undefined ? null : aDefault;\n    this [aKey] = val;\n    return val;\n}\nfunction __pop__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        delete this [aKey];\n        return result;\n    } else {\n        if ( aDefault === undefined ) {\n            throw KeyError (aKey, new Error());\n        }\n    }\n    return aDefault;\n}\nfunction __popitem__ () {\n    var aKey = Object.keys (this) [0];\n    if (aKey == null) {\n        throw KeyError (\"popitem(): dictionary is empty\", new Error ());\n    }\n    var result = tuple ([aKey, this [aKey]]);\n    delete this [aKey];\n    return result;\n}\nfunction __update__ (aDict) {\n    for (var aKey in aDict) {\n        this [aKey] = aDict [aKey];\n    }\n}\nfunction __values__ () {\n    var values = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            values.push (this [attrib]);\n        }\n    }\n    return values;\n}\nfunction __dgetitem__ (aKey) {\n    return this [aKey];\n}\nfunction __dsetitem__ (aKey, aValue) {\n    this [aKey] = aValue;\n}\nexport function dict (objectOrPairs) {\n    var instance = {};\n    if (!objectOrPairs || objectOrPairs instanceof Array) {\n        if (objectOrPairs) {\n            for (var index = 0; index < objectOrPairs.length; index++) {\n                var pair = objectOrPairs [index];\n                if ( !(pair instanceof Array) || pair.length != 2) {\n                    throw ValueError(\n                        \"dict update sequence element #\" + index +\n                        \" has length \" + pair.length +\n                        \"; 2 is required\", new Error());\n                }\n                var key = pair [0];\n                var val = pair [1];\n                if (!(objectOrPairs instanceof Array) && objectOrPairs instanceof Object) {\n                     if (!isinstance (objectOrPairs, dict)) {\n                         val = dict (val);\n                     }\n                }\n                instance [key] = val;\n            }\n        }\n    }\n    else {\n        if (isinstance (objectOrPairs, dict)) {\n            var aKeys = objectOrPairs.py_keys ();\n            for (var index = 0; index < aKeys.length; index++ ) {\n                var key = aKeys [index];\n                instance [key] = objectOrPairs [key];\n            }\n        } else if (objectOrPairs instanceof Object) {\n            instance = objectOrPairs;\n        } else {\n            throw ValueError (\"Invalid type of object for dict creation\", new Error ());\n        }\n    }\n    __setproperty__ (instance, '__class__', {value: dict, enumerable: false, writable: true});\n    __setproperty__ (instance, '__contains__', {value: __contains__, enumerable: false});\n    __setproperty__ (instance, 'py_keys', {value: __keys__, enumerable: false});\n    __setproperty__ (instance, '__iter__', {value: function () {new __PyIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, Symbol.iterator, {value: function () {new __JsIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, 'py_items', {value: __items__, enumerable: false});\n    __setproperty__ (instance, 'py_del', {value: __del__, enumerable: false});\n    __setproperty__ (instance, 'py_clear', {value: __clear__, enumerable: false});\n    __setproperty__ (instance, 'py_get', {value: __getdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_setdefault', {value: __setdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_pop', {value: __pop__, enumerable: false});\n    __setproperty__ (instance, 'py_popitem', {value: __popitem__, enumerable: false});\n    __setproperty__ (instance, 'py_update', {value: __update__, enumerable: false});\n    __setproperty__ (instance, 'py_values', {value: __values__, enumerable: false});\n    __setproperty__ (instance, '__getitem__', {value: __dgetitem__, enumerable: false});\n    __setproperty__ (instance, '__setitem__', {value: __dsetitem__, enumerable: false});\n    return instance;\n}\ndict.__name__ = 'dict';\ndict.__bases__ = [object];\nfunction __setdoc__ (docString) {\n    this.__doc__ = docString;\n    return this;\n}\n__setproperty__ (Function.prototype, '__setdoc__', {value: __setdoc__, enumerable: false});\nexport function __jsmod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __mod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __pow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport var pow = __pow__;\nexport function __neg__ (a) {\n    if (typeof a == 'object' && '__neg__' in a) {\n        return a.__neg__ ();\n    }\n    else {\n        return -a;\n    }\n};\nexport function __matmul__ (a, b) {\n    return a.__matmul__ (b);\n};\nexport function __mul__ (a, b) {\n    if (typeof a == 'object' && '__mul__' in a) {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return b.__rmul__ (a);\n    }\n    else {\n        return a * b;\n    }\n};\nexport function __truediv__ (a, b) {\n    if (typeof a == 'object' && '__truediv__' in a) {\n        return a.__truediv__ (b);\n    }\n    else if (typeof b == 'object' && '__rtruediv__' in b) {\n        return b.__rtruediv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return a / b;\n    }\n};\nexport function __floordiv__ (a, b) {\n    if (typeof a == 'object' && '__floordiv__' in a) {\n        return a.__floordiv__ (b);\n    }\n    else if (typeof b == 'object' && '__rfloordiv__' in b) {\n        return b.__rfloordiv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return Math.floor (a / b);\n    }\n};\nexport function __add__ (a, b) {\n    if (typeof a == 'object' && '__add__' in a) {\n        return a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return b.__radd__ (a);\n    }\n    else {\n        return a + b;\n    }\n};\nexport function __sub__ (a, b) {\n    if (typeof a == 'object' && '__sub__' in a) {\n        return a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return b.__rsub__ (a);\n    }\n    else {\n        return a - b;\n    }\n};\nexport function __lshift__ (a, b) {\n    if (typeof a == 'object' && '__lshift__' in a) {\n        return a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return b.__rlshift__ (a);\n    }\n    else {\n        return a << b;\n    }\n};\nexport function __rshift__ (a, b) {\n    if (typeof a == 'object' && '__rshift__' in a) {\n        return a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return b.__rrshift__ (a);\n    }\n    else {\n        return a >> b;\n    }\n};\nexport function __or__ (a, b) {\n    if (typeof a == 'object' && '__or__' in a) {\n        return a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return b.__ror__ (a);\n    }\n    else {\n        return a | b;\n    }\n};\nexport function __xor__ (a, b) {\n    if (typeof a == 'object' && '__xor__' in a) {\n        return a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return b.__rxor__ (a);\n    }\n    else {\n        return a ^ b;\n    }\n};\nexport function __and__ (a, b) {\n    if (typeof a == 'object' && '__and__' in a) {\n        return a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return b.__rand__ (a);\n    }\n    else {\n        return a & b;\n    }\n};\nexport function __eq__ (a, b) {\n    if (typeof a == 'object' && '__eq__' in a) {\n        return a.__eq__ (b);\n    }\n    else {\n        return a == b;\n    }\n};\nexport function __ne__ (a, b) {\n    if (typeof a == 'object' && '__ne__' in a) {\n        return a.__ne__ (b);\n    }\n    else {\n        return a != b\n    }\n};\nexport function __lt__ (a, b) {\n    if (typeof a == 'object' && '__lt__' in a) {\n        return a.__lt__ (b);\n    }\n    else {\n        return a < b;\n    }\n};\nexport function __le__ (a, b) {\n    if (typeof a == 'object' && '__le__' in a) {\n        return a.__le__ (b);\n    }\n    else {\n        return a <= b;\n    }\n};\nexport function __gt__ (a, b) {\n    if (typeof a == 'object' && '__gt__' in a) {\n        return a.__gt__ (b);\n    }\n    else {\n        return a > b;\n    }\n};\nexport function __ge__ (a, b) {\n    if (typeof a == 'object' && '__ge__' in a) {\n        return a.__ge__ (b);\n    }\n    else {\n        return a >= b;\n    }\n};\nexport function __imatmul__ (a, b) {\n    if ('__imatmul__' in a) {\n        return a.__imatmul__ (b);\n    }\n    else {\n        return a.__matmul__ (b);\n    }\n};\nexport function __ipow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__ipow__ (b);\n    }\n    else if (typeof a == 'object' && '__ipow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport function __ijsmod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__ismod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __imod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__imod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __imul__ (a, b) {\n    if (typeof a == 'object' && '__imul__' in a) {\n        return a.__imul__ (b);\n    }\n    else if (typeof a == 'object' && '__mul__' in a) {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return a = b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return a = b.__rmul__ (a);\n    }\n    else {\n        return a *= b;\n    }\n};\nexport function __idiv__ (a, b) {\n    if (typeof a == 'object' && '__idiv__' in a) {\n        return a.__idiv__ (b);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a = a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return a = b.__rdiv__ (a);\n    }\n    else {\n        return a /= b;\n    }\n};\nexport function __iadd__ (a, b) {\n    if (typeof a == 'object' && '__iadd__' in a) {\n        return a.__iadd__ (b);\n    }\n    else if (typeof a == 'object' && '__add__' in a) {\n        return a = a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return a = b.__radd__ (a);\n    }\n    else {\n        return a += b;\n    }\n};\nexport function __isub__ (a, b) {\n    if (typeof a == 'object' && '__isub__' in a) {\n        return a.__isub__ (b);\n    }\n    else if (typeof a == 'object' && '__sub__' in a) {\n        return a = a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return a = b.__rsub__ (a);\n    }\n    else {\n        return a -= b;\n    }\n};\nexport function __ilshift__ (a, b) {\n    if (typeof a == 'object' && '__ilshift__' in a) {\n        return a.__ilshift__ (b);\n    }\n    else if (typeof a == 'object' && '__lshift__' in a) {\n        return a = a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return a = b.__rlshift__ (a);\n    }\n    else {\n        return a <<= b;\n    }\n};\nexport function __irshift__ (a, b) {\n    if (typeof a == 'object' && '__irshift__' in a) {\n        return a.__irshift__ (b);\n    }\n    else if (typeof a == 'object' && '__rshift__' in a) {\n        return a = a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return a = b.__rrshift__ (a);\n    }\n    else {\n        return a >>= b;\n    }\n};\nexport function __ior__ (a, b) {\n    if (typeof a == 'object' && '__ior__' in a) {\n        return a.__ior__ (b);\n    }\n    else if (typeof a == 'object' && '__or__' in a) {\n        return a = a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return a = b.__ror__ (a);\n    }\n    else {\n        return a |= b;\n    }\n};\nexport function __ixor__ (a, b) {\n    if (typeof a == 'object' && '__ixor__' in a) {\n        return a.__ixor__ (b);\n    }\n    else if (typeof a == 'object' && '__xor__' in a) {\n        return a = a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return a = b.__rxor__ (a);\n    }\n    else {\n        return a ^= b;\n    }\n};\nexport function __iand__ (a, b) {\n    if (typeof a == 'object' && '__iand__' in a) {\n        return a.__iand__ (b);\n    }\n    else if (typeof a == 'object' && '__and__' in a) {\n        return a = a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return a = b.__rand__ (a);\n    }\n    else {\n        return a &= b;\n    }\n};\nexport function __getitem__ (container, key) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ (key);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        return container [container.length + key];\n    }\n    else {\n        return container [key];\n    }\n};\nexport function __setitem__ (container, key, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ (key, value);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        container [container.length + key] = value;\n    }\n    else {\n        container [key] = value;\n    }\n};\nexport function __getslice__ (container, lower, upper, step) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ ([lower, upper, step]);\n    }\n    else {\n        return container.__getslice__ (lower, upper, step);\n    }\n};\nexport function __setslice__ (container, lower, upper, step, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ ([lower, upper, step], value);\n    }\n    else {\n        container.__setslice__ (lower, upper, step, value);\n    }\n};\nexport var BaseException =  __class__ ('BaseException', [object], {\n\t__module__: __name__,\n});\nexport var Exception =  __class__ ('Exception', [BaseException], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tvar kwargs = dict ();\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tdefault: kwargs [__attrib0__] = __allkwargs0__ [__attrib0__];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdelete kwargs.__kwargtrans__;\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.__args__ = args;\n\t\tif (kwargs.error != null) {\n\t\t\tself.stack = kwargs.error.stack;\n\t\t}\n\t\telse if (Error) {\n\t\t\tself.stack = new Error ().stack;\n\t\t}\n\t\telse {\n\t\t\tself.stack = 'No stack trace available';\n\t\t}\n\t});},\n\tget __repr__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]));\n\t\t}\n\t\telse {\n\t\t\treturn '{}()'.format (self.__class__.__name__);\n\t\t}\n\t});},\n\tget __str__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn str (tuple (self.__args__));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn str (self.__args__ [0]);\n\t\t}\n\t\telse {\n\t\t\treturn '';\n\t\t}\n\t});}\n});\nexport var IterableError =  __class__ ('IterableError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, \"Can't iterate over non-iterable\", __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var StopIteration =  __class__ ('StopIteration', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, 'Iterator exhausted', __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var ValueError =  __class__ ('ValueError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var KeyError =  __class__ ('KeyError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AssertionError =  __class__ ('AssertionError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tif (message) {\n\t\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t\t}\n\t\telse {\n\t\t\tException.__init__ (self, __kwargtrans__ ({error: error}));\n\t\t}\n\t});}\n});\nexport var NotImplementedError =  __class__ ('NotImplementedError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var IndexError =  __class__ ('IndexError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AttributeError =  __class__ ('AttributeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var py_TypeError =  __class__ ('py_TypeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var Warning =  __class__ ('Warning', [Exception], {\n\t__module__: __name__,\n});\nexport var UserWarning =  __class__ ('UserWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var DeprecationWarning =  __class__ ('DeprecationWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var RuntimeWarning =  __class__ ('RuntimeWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var __sort__ = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (key) {\n\t\titerable.sort ((function __lambda__ (a, b) {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\t\tcase 'a': var a = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t\tcase 'b': var b = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\treturn (key (a) > key (b) ? 1 : -(1));\n\t\t}));\n\t}\n\telse {\n\t\titerable.sort ();\n\t}\n\tif (reverse) {\n\t\titerable.reverse ();\n\t}\n};\nexport var sorted = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (py_typeof (iterable) == dict) {\n\t\tvar result = copy (iterable.py_keys ());\n\t}\n\telse {\n\t\tvar result = copy (iterable);\n\t}\n\t__sort__ (result, key, reverse);\n\treturn result;\n};\nexport var map = function (func, iterable) {\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\t__accu0__.append (func (item));\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var filter = function (func, iterable) {\n\tif (func == null) {\n\t\tvar func = bool;\n\t}\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\tif (func (item)) {\n\t\t\t\t__accu0__.append (item);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var divmod = function (n, d) {\n\treturn tuple ([Math.floor (n / d), __mod__ (n, d)]);\n};\nexport var __Terminal__ =  __class__ ('__Terminal__', [object], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tself.buffer = '';\n\t\ttry {\n\t\t\tself.element = document.getElementById ('__terminal__');\n\t\t}\n\t\tcatch (__except0__) {\n\t\t\tself.element = null;\n\t\t}\n\t\tif (self.element) {\n\t\t\tself.element.style.overflowX = 'auto';\n\t\t\tself.element.style.boxSizing = 'border-box';\n\t\t\tself.element.style.padding = '5px';\n\t\t\tself.element.innerHTML = '_';\n\t\t}\n\t});},\n\tget print () {return __get__ (this, function (self) {\n\t\tvar sep = ' ';\n\t\tvar end = '\\n';\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'sep': var sep = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'end': var end = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.buffer = '{}{}{}'.format (self.buffer, sep.join ((function () {\n\t\t\tvar __accu0__ = [];\n\t\t\tfor (var arg of args) {\n\t\t\t\t__accu0__.append (str (arg));\n\t\t\t}\n\t\t\treturn __accu0__;\n\t\t}) ()), end).__getslice__ (-(4096), null, 1);\n\t\tif (self.element) {\n\t\t\tself.element.innerHTML = self.buffer.py_replace ('\\n', '<br>').py_replace (' ', '&nbsp');\n\t\t\tself.element.scrollTop = self.element.scrollHeight;\n\t\t}\n\t\telse {\n\t\t\tconsole.log (sep.join ((function () {\n\t\t\t\tvar __accu0__ = [];\n\t\t\t\tfor (var arg of args) {\n\t\t\t\t\t__accu0__.append (str (arg));\n\t\t\t\t}\n\t\t\t\treturn __accu0__;\n\t\t\t}) ()));\n\t\t}\n\t});},\n\tget input () {return __get__ (this, function (self, question) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'question': var question = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.print ('{}'.format (question), __kwargtrans__ ({end: ''}));\n\t\tvar answer = window.prompt ('\\n'.join (self.buffer.py_split ('\\n').__getslice__ (-(8), null, 1)));\n\t\tself.print (answer);\n\t\treturn answer;\n\t});}\n});\nexport var __terminal__ = __Terminal__ ();\nexport var print = __terminal__.print;\nexport var input = __terminal__.input;\n\n//# sourceMappingURL=org.transcrypt.__runtime__.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_005/target/org.transcrypt.__runtime__.py",
    "content": "# Transcrypt runtime module\r\n\r\n#__pragma__ ('js', 'export var __envir__ = {{}};\\n{}', __include__ ('org/transcrypt/__envir__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__core__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__builtin__.js'))\r\n\r\n#__pragma__ ('skip')\r\ncopy = Math = __typeof__ = __repr__ = document = console = window = 0\r\n#__pragma__ ('noskip')\r\n\r\n#__pragma__ ('notconv')  # !!! tconv gives a problem with __terminal__, needs investigation\r\n#__pragma__ ('nokwargs')\r\n#__pragma__ ('noalias', 'sort')\r\n\r\nclass BaseException:\r\n    pass\r\n\r\nclass Exception (BaseException):\r\n    #__pragma__ ('kwargs')\r\n    def __init__ (self, *args, **kwargs):\r\n        self.__args__ = args\r\n        if kwargs.error != None:\r\n            self.stack = kwargs.error.stack # Integrate with JavaScript Error object\r\n        elif Error:\r\n            self.stack = (__new__(Error())).stack # Create our own stack if we aren't given one\r\n        else:\r\n            self.stack = 'No stack trace available'\r\n    #__pragma__ ('nokwargs')\r\n        \r\n    def __repr__ (self):\r\n        if len (self.__args__) > 1:\r\n            return '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)))\r\n        elif len (self.__args__):\r\n            return '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]))        \r\n        else:\r\n            return '{}()'.format (self.__class__.__name__)\r\n            \r\n    def __str__ (self):\r\n        if len (self.__args__) > 1:\r\n            return str (tuple (self.__args__))\r\n        elif len (self.__args__):\r\n            return str (self.__args__ [0])\r\n        else:\r\n            return ''\r\n        \r\nclass IterableError (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Can\\'t iterate over non-iterable', error = error)\r\n            \r\nclass StopIteration (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Iterator exhausted', error = error)\r\n        \r\nclass ValueError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass KeyError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass AssertionError (Exception):\r\n    def __init__ (self, message, error):\r\n        if message:\r\n            Exception.__init__ (self, message, error = error)\r\n        else:\r\n            Exception.__init__ (self, error = error)\r\n\r\nclass NotImplementedError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass IndexError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass AttributeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass TypeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\n# Warnings Exceptions\r\n# N.B. This is a limited subset of the warnings defined in\r\n# the cpython implementation to keep things small for now.\r\n\r\nclass Warning (Exception):\r\n    ''' Warning Base Class\r\n    '''\r\n    pass\r\n\r\nclass UserWarning (Warning):\r\n    pass\r\n\r\nclass DeprecationWarning (Warning):\r\n    pass\r\n\r\nclass RuntimeWarning (Warning):\r\n    pass\r\n    \r\n#__pragma__ ('kwargs')\r\n\r\ndef __sort__ (iterable, key = None, reverse = False):               # Used by py_sort, can deal with kwargs\r\n    if key:\r\n        iterable.sort (lambda a, b: 1 if key (a) > key (b) else -1) # JavaScript sort, case '==' is irrelevant for sorting\r\n    else:\r\n        iterable.sort ()                                            # JavaScript sort\r\n        \r\n    if reverse:\r\n        iterable.reverse ()\r\n        \r\ndef sorted (iterable, key = None, reverse = False):\r\n    if type (iterable) == dict:\r\n        result = copy (iterable.keys ()) \r\n    else:       \r\n        result = copy (iterable)\r\n        \r\n    __sort__ (result, key, reverse)\r\n    return result\r\n\r\n#__pragma__ ('nokwargs')\r\n\r\ndef map (func, iterable):\r\n    return [func (item) for item in iterable]\r\n\r\n\r\ndef filter (func, iterable):\r\n    if func == None:\r\n        func = bool\r\n    return [item for item in iterable if func (item)]\r\n    \r\ndef divmod (n, d):\r\n    return n // d, n % d\r\n    \r\n#__pragma__ ('ifdef', '__complex__')\r\n\r\nclass complex:\r\n    def __init__ (self, real, imag = None):\r\n        if imag == None:\r\n            if type (real) == complex:\r\n                self.real = real.real\r\n                self.imag = real.imag\r\n            else:\r\n                self.real = real\r\n                self.imag = 0\r\n        else:\r\n            self.real = real\r\n            self.imag = imag\r\n            \r\n    def __neg__ (self):\r\n        return complex (-self.real, -self.imag)\r\n        \r\n    def __exp__ (self):\r\n        modulus = Math.exp (self.real)\r\n        return complex (modulus * Math.cos (self.imag), modulus * Math.sin (self.imag))\r\n    \r\n    def __log__ (self):\r\n        return complex (Math.log (Math.sqrt (self.real * self.real + self.imag * self.imag)), Math.atan2 (self.imag, self.real))\r\n        \r\n    def __pow__ (self, other):  # a ** b = exp (b log a)\r\n        return (self.__log__ () .__mul__ (other)) .__exp__ ()\r\n        \r\n    def __rpow__ (self, real):  # real ** comp -> comp.__rpow__ (real)\r\n        return self.__mul__ (Math.log (real)) .__exp__ ()\r\n        \r\n    def __mul__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real * other, self.imag * other)\r\n        else:\r\n            return complex (self.real * other.real - self.imag * other.imag, self.real * other.imag + self.imag * other.real)\r\n        \r\n    def __rmul__ (self, real):  # real + comp -> comp.__rmul__ (real)\r\n        return complex (self.real * real, self.imag * real)\r\n        \r\n    def __div__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real / other, self.imag / other)\r\n        else:\r\n            denom = other.real * other.real + other.imag * other.imag\r\n            return complex (\r\n                (self.real * other.real + self.imag * other.imag) / denom,\r\n                (self.imag * other.real - self.real * other.imag) / denom\r\n            )\r\n        \r\n    def __rdiv__ (self, real):  # real / comp -> comp.__rdiv__ (real)\r\n        denom = self.real * self.real\r\n        return complex (\r\n            (real * self.real) / denom,\r\n            (real * self.imag) / denom\r\n        )\r\n        \r\n    def __add__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real + other, self.imag)\r\n        else:   # Assume other is complex\r\n            return complex (self.real + other.real, self.imag + other.imag)\r\n        \r\n    def __radd__ (self, real):  # real + comp -> comp.__radd__ (real)\r\n        return complex (self.real + real, self.imag)\r\n        \r\n    def __sub__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real - other, self.imag)\r\n        else:\r\n            return complex (self.real - other.real, self.imag - other.imag)\r\n        \r\n    def __rsub__ (self, real):  # real - comp -> comp.__rsub__ (real)\r\n        return complex (real - self.real, -self.imag)\r\n        \r\n    def __repr__ (self):\r\n        return '({}{}{}j)'.format (self.real, '+' if self.imag >= 0 else '', self.imag)\r\n            \r\n    def __str__ (self):\r\n        return __repr__ (self) [1 : -1]\r\n        \r\n    def __eq__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real == other\r\n        else:\r\n            return self.real == other.real and self.imag == other.imag\r\n        \r\n    def __ne__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real != other\r\n        else:\r\n            return self.real != other.real or self.imag != other.imag\r\n        \r\n    def conjugate (self):\r\n        return complex (self.real, -self.imag)\r\n        \r\ndef __conj__ (aNumber):\r\n    if isinstance (aNumber, complex):\r\n        return complex (aNumber.real, -aNumber.imag)\r\n    else:\r\n        return complex (aNumber, 0)\r\n        \r\n#__pragma__ ('endif')\r\n\r\nclass __Terminal__:\r\n    '''\r\n    Printing to either the console or to html happens async, but is blocked by calling window.prompt.\r\n    So while all input and print statements are encountered in normal order, the print's exit immediately without yet having actually printed\r\n    This means the next input takes control, blocking actual printing and so on indefinitely\r\n    The effect is that everything's only printed after all inputs are done\r\n    To prevent that, what's needed is to only execute the next window.prompt after actual printing has been done\r\n    Since we've no way to find out when that is, a timeout is used.\r\n    '''\r\n\r\n    def __init__ (self):\r\n        self.buffer = ''\r\n    \r\n        try:\r\n            self.element = document.getElementById ('__terminal__')\r\n        except:\r\n            self.element = None\r\n            \r\n        if self.element:\r\n            self.element.style.overflowX = 'auto'\r\n            self.element.style.boxSizing = 'border-box'\r\n            self.element.style.padding = '5px'\r\n            self.element.innerHTML = '_'\r\n        \r\n    #__pragma__ ('kwargs')\r\n        \r\n    def print (self, *args, sep = ' ', end = '\\n'):\r\n        self.buffer = '{}{}{}'.format (self.buffer, sep.join ([str (arg) for arg in args]), end) [-4096 : ] \r\n        \r\n        if self.element:\r\n            self.element.innerHTML = self.buffer.replace ('\\n', '<br>') .replace (' ', '&nbsp')\r\n            self.element.scrollTop = self.element.scrollHeight\r\n        else:\r\n            console.log (sep.join ([str (arg) for arg in args]))\r\n        \r\n    def input (self, question):\r\n        self.print ('{}'.format (question), end = '')\r\n        answer = window.prompt ('\\n'.join (self.buffer.split ('\\n') [-8:]))\r\n        self.print (answer)\r\n        return answer\r\n        \r\n    #__pragma__ ('nokwargs')\r\n    \r\n__terminal__ = __Terminal__ ()\r\n\r\nprint = __terminal__.print\r\ninput = __terminal__.input\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_005/target/pyp5js.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:13\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {PythonFunctions} from './python_functions.js';\nvar __name__ = 'pyp5js';\nexport var _P5_INSTANCE = null;\nexport var _CTX_MIDDLE = null;\nexport var _DEFAULT_FILL = null;\nexport var _DEFAULT_LEADMULT = null;\nexport var _DEFAULT_STROKE = null;\nexport var _DEFAULT_TEXT_FILL = null;\nexport var ADD = null;\nexport var ALT = null;\nexport var ARROW = null;\nexport var AUDIO = null;\nexport var AUTO = null;\nexport var AXES = null;\nexport var BACKSPACE = null;\nexport var BASELINE = null;\nexport var BEVEL = null;\nexport var BEZIER = null;\nexport var BLEND = null;\nexport var BLUR = null;\nexport var BOLD = null;\nexport var BOLDITALIC = null;\nexport var BOTTOM = null;\nexport var BURN = null;\nexport var CENTER = null;\nexport var CHORD = null;\nexport var CLAMP = null;\nexport var CLOSE = null;\nexport var CONTROL = null;\nexport var CORNER = null;\nexport var CORNERS = null;\nexport var CROSS = null;\nexport var CURVE = null;\nexport var DARKEST = null;\nexport var DEG_TO_RAD = null;\nexport var DEGREES = null;\nexport var DELETE = null;\nexport var DIFFERENCE = null;\nexport var DILATE = null;\nexport var DODGE = null;\nexport var DOWN_ARROW = null;\nexport var ENTER = null;\nexport var ERODE = null;\nexport var ESCAPE = null;\nexport var EXCLUSION = null;\nexport var FILL = null;\nexport var GRAY = null;\nexport var GRID = null;\nexport var HALF_PI = null;\nexport var HAND = null;\nexport var HARD_LIGHT = null;\nexport var HSB = null;\nexport var HSL = null;\nexport var IMAGE = null;\nexport var IMMEDIATE = null;\nexport var INVERT = null;\nexport var ITALIC = null;\nexport var LANDSCAPE = null;\nexport var LEFT = null;\nexport var LEFT_ARROW = null;\nexport var LIGHTEST = null;\nexport var LINE_LOOP = null;\nexport var LINE_STRIP = null;\nexport var LINEAR = null;\nexport var LINES = null;\nexport var MIRROR = null;\nexport var MITER = null;\nexport var MOVE = null;\nexport var MULTIPLY = null;\nexport var NEAREST = null;\nexport var NORMAL = null;\nexport var OPAQUE = null;\nexport var OPEN = null;\nexport var OPTION = null;\nexport var OVERLAY = null;\nexport var PI = null;\nexport var PIE = null;\nexport var POINTS = null;\nexport var PORTRAIT = null;\nexport var POSTERIZE = null;\nexport var PROJECT = null;\nexport var QUAD_STRIP = null;\nexport var QUADRATIC = null;\nexport var QUADS = null;\nexport var QUARTER_PI = null;\nexport var RAD_TO_DEG = null;\nexport var RADIANS = null;\nexport var RADIUS = null;\nexport var REPEAT = null;\nexport var REPLACE = null;\nexport var RETURN = null;\nexport var RGB = null;\nexport var RIGHT = null;\nexport var RIGHT_ARROW = null;\nexport var ROUND = null;\nexport var SCREEN = null;\nexport var SHIFT = null;\nexport var SOFT_LIGHT = null;\nexport var SQUARE = null;\nexport var STROKE = null;\nexport var SUBTRACT = null;\nexport var TAB = null;\nexport var TAU = null;\nexport var TEXT = null;\nexport var TEXTURE = null;\nexport var THRESHOLD = null;\nexport var TOP = null;\nexport var TRIANGLE_FAN = null;\nexport var TRIANGLE_STRIP = null;\nexport var TRIANGLES = null;\nexport var TWO_PI = null;\nexport var UP_ARROW = null;\nexport var VIDEO = null;\nexport var WAIT = null;\nexport var WEBGL = null;\nexport var P2D = null;\nvar PI = null;\nexport var frameCount = null;\nexport var focused = null;\nexport var displayWidth = null;\nexport var displayHeight = null;\nexport var windowWidth = null;\nexport var windowHeight = null;\nexport var width = null;\nexport var height = null;\nexport var disableFriendlyErrors = null;\nexport var deviceOrientation = null;\nexport var accelerationX = null;\nexport var accelerationY = null;\nexport var accelerationZ = null;\nexport var pAccelerationX = null;\nexport var pAccelerationY = null;\nexport var pAccelerationZ = null;\nexport var rotationX = null;\nexport var rotationY = null;\nexport var rotationZ = null;\nexport var pRotationX = null;\nexport var pRotationY = null;\nexport var pRotationZ = null;\nexport var turnAxis = null;\nexport var keyIsPressed = null;\nexport var key = null;\nexport var keyCode = null;\nexport var mouseX = null;\nexport var mouseY = null;\nexport var pmouseX = null;\nexport var pmouseY = null;\nexport var winMouseX = null;\nexport var winMouseY = null;\nexport var pwinMouseX = null;\nexport var pwinMouseY = null;\nexport var mouseButton = null;\nexport var mouseIsPressed = null;\nexport var touches = null;\nexport var pixels = null;\nexport var alpha = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.alpha (...args);\n};\nexport var blue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blue (...args);\n};\nexport var brightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.brightness (...args);\n};\nexport var color = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.color (...args);\n};\nexport var green = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.green (...args);\n};\nexport var hue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hue (...args);\n};\nexport var lerpColor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerpColor (...args);\n};\nexport var lightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lightness (...args);\n};\nexport var red = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.red (...args);\n};\nexport var saturation = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saturation (...args);\n};\nexport var background = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.background (...args);\n};\nexport var py_clear = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_clear = _P5_INSTANCE.clear (...args);\n\treturn p5_clear;\n};\nexport var erase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.erase (...args);\n};\nexport var noErase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noErase (...args);\n};\nexport var colorMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.colorMode (...args);\n};\nexport var fill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fill (...args);\n};\nexport var noFill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noFill (...args);\n};\nexport var noStroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noStroke (...args);\n};\nexport var stroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.stroke (...args);\n};\nexport var arc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arc (...args);\n};\nexport var ellipse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipse (...args);\n};\nexport var circle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.circle (...args);\n};\nexport var line = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.line (...args);\n};\nexport var point = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.point (...args);\n};\nexport var quad = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quad (...args);\n};\nexport var rect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rect (...args);\n};\nexport var square = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.square (...args);\n};\nexport var triangle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.triangle (...args);\n};\nexport var plane = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.plane (...args);\n};\nexport var box = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.box (...args);\n};\nexport var sphere = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sphere (...args);\n};\nexport var cylinder = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cylinder (...args);\n};\nexport var cone = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cone (...args);\n};\nexport var ellipsoid = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipsoid (...args);\n};\nexport var torus = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.torus (...args);\n};\nexport var loadModel = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadModel (...args);\n};\nexport var model = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.model (...args);\n};\nexport var ellipseMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipseMode (...args);\n};\nexport var noSmooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noSmooth (...args);\n};\nexport var rectMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rectMode (...args);\n};\nexport var smooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.smooth (...args);\n};\nexport var strokeCap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeCap (...args);\n};\nexport var strokeJoin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeJoin (...args);\n};\nexport var strokeWeight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeWeight (...args);\n};\nexport var bezier = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezier (...args);\n};\nexport var bezierDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierDetail (...args);\n};\nexport var bezierPoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierPoint (...args);\n};\nexport var bezierTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierTangent (...args);\n};\nexport var curve = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curve (...args);\n};\nexport var curveDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveDetail (...args);\n};\nexport var curveTightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTightness (...args);\n};\nexport var curvePoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curvePoint (...args);\n};\nexport var curveTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTangent (...args);\n};\nexport var beginContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginContour (...args);\n};\nexport var beginShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginShape (...args);\n};\nexport var bezierVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierVertex (...args);\n};\nexport var curveVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveVertex (...args);\n};\nexport var endContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endContour (...args);\n};\nexport var endShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endShape (...args);\n};\nexport var quadraticVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quadraticVertex (...args);\n};\nexport var vertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.vertex (...args);\n};\nexport var cursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cursor (...args);\n};\nexport var frameRate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.frameRate (...args);\n};\nexport var noCursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCursor (...args);\n};\nexport var fullscreen = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fullscreen (...args);\n};\nexport var pixelDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pixelDensity (...args);\n};\nexport var displayDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.displayDensity (...args);\n};\nexport var getURL = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURL (...args);\n};\nexport var getURLPath = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLPath (...args);\n};\nexport var getURLParams = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLParams (...args);\n};\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.preload (...args);\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setup (...args);\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.draw (...args);\n};\nexport var remove = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.remove (...args);\n};\nexport var noLoop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noLoop (...args);\n};\nexport var loop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loop (...args);\n};\nexport var push = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.push (...args);\n};\nexport var redraw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.redraw (...args);\n};\nexport var resizeCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resizeCanvas (...args);\n};\nexport var noCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCanvas (...args);\n};\nexport var createGraphics = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createGraphics (...args);\n};\nexport var blendMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blendMode (...args);\n};\nexport var setAttributes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setAttributes (...args);\n};\nexport var applyMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.applyMatrix (...args);\n};\nexport var resetMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetMatrix (...args);\n};\nexport var rotate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotate (...args);\n};\nexport var rotateX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateX (...args);\n};\nexport var rotateY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateY (...args);\n};\nexport var rotateZ = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateZ (...args);\n};\nexport var scale = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.scale (...args);\n};\nexport var shearX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearX (...args);\n};\nexport var shearY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearY (...args);\n};\nexport var translate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.translate (...args);\n};\nexport var createStringDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createStringDict (...args);\n};\nexport var createNumberDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createNumberDict (...args);\n};\nexport var append = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.append (...args);\n};\nexport var arrayCopy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arrayCopy (...args);\n};\nexport var concat = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.concat (...args);\n};\nexport var reverse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.reverse (...args);\n};\nexport var shorten = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shorten (...args);\n};\nexport var shuffle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shuffle (...args);\n};\nexport var py_sort = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_sort (...args);\n};\nexport var splice = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splice (...args);\n};\nexport var subset = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.subset (...args);\n};\nexport var float = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.float (...args);\n};\nexport var int = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.int (...args);\n};\nexport var str = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.str (...args);\n};\nexport var boolean = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.boolean (...args);\n};\nexport var byte = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.byte (...args);\n};\nexport var char = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.char (...args);\n};\nexport var unchar = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unchar (...args);\n};\nexport var hex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hex (...args);\n};\nexport var unhex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unhex (...args);\n};\nexport var join = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.join (...args);\n};\nexport var match = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.match (...args);\n};\nexport var matchAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.matchAll (...args);\n};\nexport var nf = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nf (...args);\n};\nexport var nfc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfc (...args);\n};\nexport var nfp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfp (...args);\n};\nexport var nfs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfs (...args);\n};\nexport var py_split = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_split (...args);\n};\nexport var splitTokens = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splitTokens (...args);\n};\nexport var trim = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.trim (...args);\n};\nexport var setMoveThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setMoveThreshold (...args);\n};\nexport var setShakeThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setShakeThreshold (...args);\n};\nexport var keyIsDown = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.keyIsDown (...args);\n};\nexport var createImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImage (...args);\n};\nexport var saveCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveCanvas (...args);\n};\nexport var saveFrames = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveFrames (...args);\n};\nexport var image_proxy = function (img) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'img': var img = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar _set = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.set (...args);\n\t\treturn value;\n\t};\n\tvar _get = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.get (...args);\n\t\treturn value;\n\t};\n\timg.py_set = _set;\n\timg.py_get = _get;\n\treturn img;\n};\nexport var loadImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar imageObj = _P5_INSTANCE.loadImage (...args);\n\treturn image_proxy (imageObj);\n};\nexport var image = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.image (...args);\n};\nexport var tint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tint (...args);\n};\nexport var noTint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noTint (...args);\n};\nexport var imageMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.imageMode (...args);\n};\nexport var blend = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blend (...args);\n};\nexport var copy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.copy (...args);\n};\nexport var filter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && (args [0] === null || callable (args [0]))) {\n\t\treturn PythonFunctions.filter (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.filter (...args);\n\t}\n};\nexport var py_get = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_get = _P5_INSTANCE.get (...args);\n\treturn p5_get;\n};\nexport var loadPixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadPixels (...args);\n};\nexport var py_set = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) <= 1) {\n\t\treturn PythonFunctions.py_set (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.py_set (...args);\n\t}\n};\nexport var updatePixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.updatePixels (...args);\n};\nexport var loadJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadJSON (...args);\n};\nexport var loadStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadStrings (...args);\n};\nexport var loadTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadTable (...args);\n};\nexport var loadXML = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadXML (...args);\n};\nexport var loadBytes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadBytes (...args);\n};\nexport var httpGet = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpGet (...args);\n};\nexport var httpPost = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpPost (...args);\n};\nexport var httpDo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpDo (...args);\n};\nexport var createWriter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createWriter (...args);\n};\nexport var save = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.save (...args);\n};\nexport var saveJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveJSON (...args);\n};\nexport var saveStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveStrings (...args);\n};\nexport var saveTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveTable (...args);\n};\nexport var day = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.day (...args);\n};\nexport var hour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hour (...args);\n};\nexport var minute = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.minute (...args);\n};\nexport var millis = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.millis (...args);\n};\nexport var month = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.month (...args);\n};\nexport var second = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.second (...args);\n};\nexport var year = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.year (...args);\n};\nexport var createVector = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVector (...args);\n};\nexport var abs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.abs (...args);\n};\nexport var ceil = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ceil (...args);\n};\nexport var constrain = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.constrain (...args);\n};\nexport var dist = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.dist (...args);\n};\nexport var exp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.exp (...args);\n};\nexport var floor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.floor (...args);\n};\nexport var lerp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerp (...args);\n};\nexport var log = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.log (...args);\n};\nexport var mag = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.mag (...args);\n};\nexport var map = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && callable (args [0])) {\n\t\treturn PythonFunctions.map (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.map (...args);\n\t}\n};\nexport var max = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.max (...args);\n};\nexport var min = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.min (...args);\n};\nexport var norm = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.norm (...args);\n};\nexport var pow = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pow (...args);\n};\nexport var round = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.round (...args);\n};\nexport var sq = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sq (...args);\n};\nexport var sqrt = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sqrt (...args);\n};\nexport var noise = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noise (...args);\n};\nexport var noiseDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseDetail (...args);\n};\nexport var noiseSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseSeed (...args);\n};\nexport var randomSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomSeed (...args);\n};\nexport var random = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.random (...args);\n};\nexport var randomGaussian = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomGaussian (...args);\n};\nexport var acos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.acos (...args);\n};\nexport var asin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.asin (...args);\n};\nexport var atan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan (...args);\n};\nexport var atan2 = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan2 (...args);\n};\nexport var cos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cos (...args);\n};\nexport var sin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sin (...args);\n};\nexport var tan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tan (...args);\n};\nexport var degrees = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.degrees (...args);\n};\nexport var radians = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.radians (...args);\n};\nexport var angleMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.angleMode (...args);\n};\nexport var textAlign = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAlign (...args);\n};\nexport var textLeading = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textLeading (...args);\n};\nexport var textSize = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textSize (...args);\n};\nexport var textStyle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textStyle (...args);\n};\nexport var textWidth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textWidth (...args);\n};\nexport var textAscent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAscent (...args);\n};\nexport var textDescent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textDescent (...args);\n};\nexport var loadFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadFont (...args);\n};\nexport var text = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.text (...args);\n};\nexport var textFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textFont (...args);\n};\nexport var orbitControl = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.orbitControl (...args);\n};\nexport var debugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.debugMode (...args);\n};\nexport var noDebugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noDebugMode (...args);\n};\nexport var ambientLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientLight (...args);\n};\nexport var directionalLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.directionalLight (...args);\n};\nexport var pointLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pointLight (...args);\n};\nexport var lights = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lights (...args);\n};\nexport var loadShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadShader (...args);\n};\nexport var createShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createShader (...args);\n};\nexport var shader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shader (...args);\n};\nexport var resetShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetShader (...args);\n};\nexport var normalMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.normalMaterial (...args);\n};\nexport var texture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.texture (...args);\n};\nexport var textureMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureMode (...args);\n};\nexport var textureWrap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureWrap (...args);\n};\nexport var ambientMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientMaterial (...args);\n};\nexport var specularMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.specularMaterial (...args);\n};\nexport var shininess = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shininess (...args);\n};\nexport var camera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.camera (...args);\n};\nexport var perspective = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.perspective (...args);\n};\nexport var ortho = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ortho (...args);\n};\nexport var createCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCamera (...args);\n};\nexport var setCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setCamera (...args);\n};\nexport var select = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.select (...args);\n};\nexport var selectAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.selectAll (...args);\n};\nexport var removeElements = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.removeElements (...args);\n};\nexport var changed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.changed (...args);\n};\nexport var input = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.input (...args);\n};\nexport var createDiv = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createDiv (...args);\n};\nexport var createP = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createP (...args);\n};\nexport var createSpan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSpan (...args);\n};\nexport var createImg = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImg (...args);\n};\nexport var createA = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createA (...args);\n};\nexport var createSlider = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSlider (...args);\n};\nexport var createButton = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createButton (...args);\n};\nexport var createCheckbox = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCheckbox (...args);\n};\nexport var createSelect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSelect (...args);\n};\nexport var createRadio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createRadio (...args);\n};\nexport var createColorPicker = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createColorPicker (...args);\n};\nexport var createInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createInput (...args);\n};\nexport var createFileInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createFileInput (...args);\n};\nexport var createVideo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVideo (...args);\n};\nexport var createAudio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createAudio (...args);\n};\nexport var createCapture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCapture (...args);\n};\nexport var createElement = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createElement (...args);\n};\nexport var createCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar canvas = _P5_INSTANCE.createCanvas (...args);\n\twidth = _P5_INSTANCE.width;\n\theight = _P5_INSTANCE.height;\n\treturn canvas;\n};\nexport var py_pop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_pop = _P5_INSTANCE.pop (...args);\n\treturn p5_pop;\n};\nexport var size = createCanvas;\nexport var popMatrix = py_pop;\nexport var popStyle = py_pop;\nexport var pushMatrix = push;\nexport var pushStyle = push;\nexport var PVector = function (x, y, z) {\n\tif (typeof x == 'undefined' || (x != null && x.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar x = 0;\n\t};\n\tif (typeof y == 'undefined' || (y != null && y.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar y = 0;\n\t};\n\tif (typeof z == 'undefined' || (z != null && z.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar z = 0;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'z': var z = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn _P5_INSTANCE.createVector (x, y, z);\n};\nsetattr (PVector, 'dist', p5.Vector.dist);\nsetattr (PVector, 'add', p5.Vector.add);\nsetattr (PVector, 'sub', p5.Vector.sub);\nsetattr (PVector, 'mult', p5.Vector.mult);\nsetattr (PVector, 'div', p5.Vector.div);\nsetattr (PVector, 'dot', p5.Vector.dot);\nsetattr (PVector, 'cross', p5.Vector.cross);\nsetattr (PVector, 'lerp', p5.Vector.lerp);\nsetattr (PVector, 'random2D', p5.Vector.random2D);\nsetattr (PVector, 'random3D', p5.Vector.random3D);\nsetattr (PVector, 'angleBetween', p5.Vector.angleBetween);\nsetattr (PVector, 'fromAngle', p5.Vector.fromAngle);\nsetattr (PVector, 'fromAngles', p5.Vector.fromAngles);\nsetattr (PVector, 'equals', p5.Vector.equals);\nexport var pre_draw = function (p5_instance, draw_func) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_instance': var p5_instance = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t_CTX_MIDDLE = p5_instance._CTX_MIDDLE;\n\t_DEFAULT_FILL = p5_instance._DEFAULT_FILL;\n\t_DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT;\n\t_DEFAULT_STROKE = p5_instance._DEFAULT_STROKE;\n\t_DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL;\n\tADD = p5_instance.ADD;\n\tALT = p5_instance.ALT;\n\tARROW = p5_instance.ARROW;\n\tAUDIO = p5_instance.AUDIO;\n\tAUTO = p5_instance.AUTO;\n\tAXES = p5_instance.AXES;\n\tBACKSPACE = p5_instance.BACKSPACE;\n\tBASELINE = p5_instance.BASELINE;\n\tBEVEL = p5_instance.BEVEL;\n\tBEZIER = p5_instance.BEZIER;\n\tBLEND = p5_instance.BLEND;\n\tBLUR = p5_instance.BLUR;\n\tBOLD = p5_instance.BOLD;\n\tBOLDITALIC = p5_instance.BOLDITALIC;\n\tBOTTOM = p5_instance.BOTTOM;\n\tBURN = p5_instance.BURN;\n\tCENTER = p5_instance.CENTER;\n\tCHORD = p5_instance.CHORD;\n\tCLAMP = p5_instance.CLAMP;\n\tCLOSE = p5_instance.CLOSE;\n\tCONTROL = p5_instance.CONTROL;\n\tCORNER = p5_instance.CORNER;\n\tCORNERS = p5_instance.CORNERS;\n\tCROSS = p5_instance.CROSS;\n\tCURVE = p5_instance.CURVE;\n\tDARKEST = p5_instance.DARKEST;\n\tDEG_TO_RAD = p5_instance.DEG_TO_RAD;\n\tDEGREES = p5_instance.DEGREES;\n\tDELETE = p5_instance.DELETE;\n\tDIFFERENCE = p5_instance.DIFFERENCE;\n\tDILATE = p5_instance.DILATE;\n\tDODGE = p5_instance.DODGE;\n\tDOWN_ARROW = p5_instance.DOWN_ARROW;\n\tENTER = p5_instance.ENTER;\n\tERODE = p5_instance.ERODE;\n\tESCAPE = p5_instance.ESCAPE;\n\tEXCLUSION = p5_instance.EXCLUSION;\n\tFILL = p5_instance.FILL;\n\tGRAY = p5_instance.GRAY;\n\tGRID = p5_instance.GRID;\n\tHALF_PI = p5_instance.HALF_PI;\n\tHAND = p5_instance.HAND;\n\tHARD_LIGHT = p5_instance.HARD_LIGHT;\n\tHSB = p5_instance.HSB;\n\tHSL = p5_instance.HSL;\n\tIMAGE = p5_instance.IMAGE;\n\tIMMEDIATE = p5_instance.IMMEDIATE;\n\tINVERT = p5_instance.INVERT;\n\tITALIC = p5_instance.ITALIC;\n\tLANDSCAPE = p5_instance.LANDSCAPE;\n\tLEFT = p5_instance.LEFT;\n\tLEFT_ARROW = p5_instance.LEFT_ARROW;\n\tLIGHTEST = p5_instance.LIGHTEST;\n\tLINE_LOOP = p5_instance.LINE_LOOP;\n\tLINE_STRIP = p5_instance.LINE_STRIP;\n\tLINEAR = p5_instance.LINEAR;\n\tLINES = p5_instance.LINES;\n\tMIRROR = p5_instance.MIRROR;\n\tMITER = p5_instance.MITER;\n\tMOVE = p5_instance.MOVE;\n\tMULTIPLY = p5_instance.MULTIPLY;\n\tNEAREST = p5_instance.NEAREST;\n\tNORMAL = p5_instance.NORMAL;\n\tOPAQUE = p5_instance.OPAQUE;\n\tOPEN = p5_instance.OPEN;\n\tOPTION = p5_instance.OPTION;\n\tOVERLAY = p5_instance.OVERLAY;\n\tP2D = p5_instance.P2D;\n\tvar P3D = p5_instance.WEBGL;\n\tPI = p5_instance.PI;\n\tPIE = p5_instance.PIE;\n\tPOINTS = p5_instance.POINTS;\n\tPORTRAIT = p5_instance.PORTRAIT;\n\tPOSTERIZE = p5_instance.POSTERIZE;\n\tPROJECT = p5_instance.PROJECT;\n\tQUAD_STRIP = p5_instance.QUAD_STRIP;\n\tQUADRATIC = p5_instance.QUADRATIC;\n\tQUADS = p5_instance.QUADS;\n\tQUARTER_PI = p5_instance.QUARTER_PI;\n\tRAD_TO_DEG = p5_instance.RAD_TO_DEG;\n\tRADIANS = p5_instance.RADIANS;\n\tRADIUS = p5_instance.RADIUS;\n\tREPEAT = p5_instance.REPEAT;\n\tREPLACE = p5_instance.REPLACE;\n\tRETURN = p5_instance.RETURN;\n\tRGB = p5_instance.RGB;\n\tRIGHT = p5_instance.RIGHT;\n\tRIGHT_ARROW = p5_instance.RIGHT_ARROW;\n\tROUND = p5_instance.ROUND;\n\tSCREEN = p5_instance.SCREEN;\n\tSHIFT = p5_instance.SHIFT;\n\tSOFT_LIGHT = p5_instance.SOFT_LIGHT;\n\tSQUARE = p5_instance.SQUARE;\n\tSTROKE = p5_instance.STROKE;\n\tSUBTRACT = p5_instance.SUBTRACT;\n\tTAB = p5_instance.TAB;\n\tTAU = p5_instance.TAU;\n\tTEXT = p5_instance.TEXT;\n\tTEXTURE = p5_instance.TEXTURE;\n\tTHRESHOLD = p5_instance.THRESHOLD;\n\tTOP = p5_instance.TOP;\n\tTRIANGLE_FAN = p5_instance.TRIANGLE_FAN;\n\tTRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP;\n\tTRIANGLES = p5_instance.TRIANGLES;\n\tTWO_PI = p5_instance.TWO_PI;\n\tUP_ARROW = p5_instance.UP_ARROW;\n\tVIDEO = p5_instance.VIDEO;\n\tWAIT = p5_instance.WAIT;\n\tWEBGL = p5_instance.WEBGL;\n\tframeCount = p5_instance.frameCount;\n\tfocused = p5_instance.focused;\n\tdisplayWidth = p5_instance.displayWidth;\n\tdisplayHeight = p5_instance.displayHeight;\n\twindowWidth = p5_instance.windowWidth;\n\twindowHeight = p5_instance.windowHeight;\n\twidth = p5_instance.width;\n\theight = p5_instance.height;\n\tdisableFriendlyErrors = p5_instance.disableFriendlyErrors;\n\tdeviceOrientation = p5_instance.deviceOrientation;\n\taccelerationX = p5_instance.accelerationX;\n\taccelerationY = p5_instance.accelerationY;\n\taccelerationZ = p5_instance.accelerationZ;\n\tpAccelerationX = p5_instance.pAccelerationX;\n\tpAccelerationY = p5_instance.pAccelerationY;\n\tpAccelerationZ = p5_instance.pAccelerationZ;\n\trotationX = p5_instance.rotationX;\n\trotationY = p5_instance.rotationY;\n\trotationZ = p5_instance.rotationZ;\n\tpRotationX = p5_instance.pRotationX;\n\tpRotationY = p5_instance.pRotationY;\n\tpRotationZ = p5_instance.pRotationZ;\n\tturnAxis = p5_instance.turnAxis;\n\tkeyIsPressed = p5_instance.keyIsPressed;\n\tkey = p5_instance.key;\n\tkeyCode = p5_instance.keyCode;\n\tmouseX = p5_instance.mouseX;\n\tmouseY = p5_instance.mouseY;\n\tpmouseX = p5_instance.pmouseX;\n\tpmouseY = p5_instance.pmouseY;\n\twinMouseX = p5_instance.winMouseX;\n\twinMouseY = p5_instance.winMouseY;\n\tpwinMouseX = p5_instance.pwinMouseX;\n\tpwinMouseY = p5_instance.pwinMouseY;\n\tmouseButton = p5_instance.mouseButton;\n\tmouseIsPressed = p5_instance.mouseIsPressed;\n\ttouches = p5_instance.touches;\n\tpixels = p5_instance.pixels;\n\treturn draw_func ();\n};\nexport var global_p5_injection = function (p5_sketch) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar decorator = function (f) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'f': var f = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar wrapper = function () {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\t_P5_INSTANCE = p5_sketch;\n\t\t\treturn pre_draw (_P5_INSTANCE, f);\n\t\t};\n\t\treturn wrapper;\n\t};\n\treturn decorator;\n};\nexport var start_p5 = function (preload_func, setup_func, draw_func, event_functions) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'preload_func': var preload_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'setup_func': var setup_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'event_functions': var event_functions = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar sketch_setup = function (p5_sketch) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tp5_sketch.preload = global_p5_injection (p5_sketch) (preload_func);\n\t\tp5_sketch.setup = global_p5_injection (p5_sketch) (setup_func);\n\t\tp5_sketch.draw = global_p5_injection (p5_sketch) (draw_func);\n\t};\n\tvar instance = new p5 (sketch_setup, 'sketch-holder');\n\tvar event_function_names = tuple (['deviceMoved', 'deviceTurned', 'deviceShaken', 'windowResized', 'keyPressed', 'keyReleased', 'keyTyped', 'mousePressed', 'mouseReleased', 'mouseClicked', 'doubleClicked', 'mouseMoved', 'mouseDragged', 'mouseWheel', 'touchStarted', 'touchMoved', 'touchEnded', 'keyIsDown']);\n\tfor (var f_name of (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var f of event_function_names) {\n\t\t\tif (event_functions.py_get (f, null)) {\n\t\t\t\t__accu0__.append (f);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ()) {\n\t\tvar func = event_functions [f_name];\n\t\tvar event_func = global_p5_injection (instance) (func);\n\t\tsetattr (instance, f_name, event_func);\n\t}\n};\nexport var logOnloaded = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tconsole.log ('Lib loaded!');\n};\nexport var add_library = function (lib_name) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'lib_name': var lib_name = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar src = '';\n\treturn console.log ('Lib name is not valid:', lib_name);\n\tconsole.log ('Importing:', src);\n\tvar script = document.createElement ('script');\n\tscript.onload = logOnloaded;\n\tscript.src = src;\n\tdocument.head.appendChild (script);\n};\n\n//# sourceMappingURL=pyp5js.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_005/target/pyp5js.py",
    "content": "from python_functions import PythonFunctions\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndisableFriendlyErrors = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    __pragma__('noalias', 'clear')\n    p5_clear = _P5_INSTANCE.clear(*args)\n    __pragma__('alias', 'clear', 'py_clear')\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef preload(*args):\n    return _P5_INSTANCE.preload(*args)\n\ndef setup(*args):\n    return _P5_INSTANCE.setup(*args)\n\ndef draw(*args):\n    return _P5_INSTANCE.draw(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\n\ndef image_proxy(img):\n    \"\"\"\n    Proxy to turn of transcypt when calling img.get/set methods\n    \"\"\"\n\n    def _set(*args):\n        __pragma__('noalias', 'set')\n        value = img.set(*args)\n        __pragma__('alias', 'set', 'py_set')\n        return value\n\n    def _get(*args):\n        __pragma__('noalias', 'get')\n        value = img.get(*args)\n        __pragma__('alias', 'get', 'py_get')\n        return value\n\n    img.set = _set\n    img.get = _get\n    return img\n\n\ndef loadImage(*args):\n    imageObj = _P5_INSTANCE.loadImage(*args)\n    return image_proxy(imageObj)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    __pragma__('noalias', 'get')\n    p5_get = _P5_INSTANCE.get(*args)\n    __pragma__('alias', 'get', 'py_get')\n    return p5_get\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\n\ndef pop(*args):\n    __pragma__('noalias', 'pop')\n    p5_pop = _P5_INSTANCE.pop(*args)\n    __pragma__('alias', 'pop', 'py_pop')\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a helper/alias to create p5.Vector objects\ndef PVector(x=0, y=0, z=0):\n    return _P5_INSTANCE.createVector(x, y, z)\n# aliases  for p5.Vector class methods\nsetattr(PVector, 'dist', p5.Vector.dist)\nsetattr(PVector, 'add', p5.Vector.add)\nsetattr(PVector, 'sub', p5.Vector.sub)\nsetattr(PVector, 'mult', p5.Vector.mult)\nsetattr(PVector, 'div', p5.Vector.div)\nsetattr(PVector, 'dot', p5.Vector.dot)\nsetattr(PVector, 'cross', p5.Vector.cross)\nsetattr(PVector, 'lerp', p5.Vector.lerp)\nsetattr(PVector, 'random2D', p5.Vector.random2D)\nsetattr(PVector, 'random3D', p5.Vector.random3D)\nsetattr(PVector, 'angleBetween', p5.Vector.angleBetween)\nsetattr(PVector, 'fromAngle', p5.Vector.fromAngle)\nsetattr(PVector, 'fromAngles', p5.Vector.fromAngles)\nsetattr(PVector, 'equals', p5.Vector.equals)\n\ndef pre_draw(p5_instance, draw_func):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP, QUADRATIC\n    global QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global disableFriendlyErrors, deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    disableFriendlyErrors = p5_instance.disableFriendlyErrors\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func()\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f):\n        def wrapper():\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: a Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    instance = __new__(p5(sketch_setup, 'sketch-holder'))\n\n    # inject event functions into p5\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\"\n    )\n\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(instance)(func)\n        setattr(instance, f_name, event_func)\n\n\ndef logOnloaded():\n    console.log(\"Lib loaded!\")\n\n\ndef add_library(lib_name):\n    # placeholder for https://github.com/berinhard/pyp5js/issues/31\n    src = ''\n\n    return console.log(\"Lib name is not valid:\", lib_name)\n\n    console.log(\"Importing:\", src)\n\n    script = document.createElement(\"script\")\n    script.onload = logOnloaded\n    script.src = src\n    document.head.appendChild(script)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_005/target/python_functions.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:13\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, pow, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nvar __name__ = 'python_functions';\nexport var PythonFunctions =  __class__ ('PythonFunctions', [object], {\n\t__module__: __name__,\n});\nsetattr (PythonFunctions, 'map', map);\nsetattr (PythonFunctions, 'filter', filter);\nsetattr (PythonFunctions, 'set', set);\n\n//# sourceMappingURL=python_functions.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_005/target/python_functions.py",
    "content": "class PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_005/target/target_sketch.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:13\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, set, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {ADD, ALT, ARROW, AUDIO, AUTO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC, BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST, DEGREES, DEG_TO_RAD, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION, FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE, LEFT, LEFT_ARROW, LIGHTEST, LINEAR, LINES, LINE_LOOP, LINE_STRIP, MIRROR, MITER, MOVE, MULTIPLY, NEAREST, NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, PVector, QUADRATIC, QUADS, QUAD_STRIP, QUARTER_PI, RADIANS, RADIUS, RAD_TO_DEG, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW, ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL, _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL, _P5_INSTANCE, abs, accelerationX, accelerationY, accelerationZ, acos, add_library, alpha, ambientLight, ambientMaterial, angleMode, append, applyMatrix, arc, arrayCopy, asin, atan, atan2, background, beginContour, beginShape, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, blend, blendMode, blue, boolean, box, brightness, byte, camera, ceil, changed, char, circle, color, colorMode, concat, cone, constrain, copy, cos, createA, createAudio, createButton, createCamera, createCanvas, createCapture, createCheckbox, createColorPicker, createDiv, createElement, createFileInput, createGraphics, createImage, createImg, createInput, createNumberDict, createP, createRadio, createSelect, createShader, createSlider, createSpan, createStringDict, createVector, createVideo, createWriter, cursor, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, cylinder, day, debugMode, degrees, deviceOrientation, directionalLight, disableFriendlyErrors, displayDensity, displayHeight, displayWidth, dist, ellipse, ellipseMode, ellipsoid, endContour, endShape, erase, exp, fill, filter, float, floor, focused, frameCount, frameRate, fullscreen, getURL, getURLParams, getURLPath, global_p5_injection, green, height, hex, hour, httpDo, httpGet, httpPost, hue, image, imageMode, image_proxy, input, int, join, key, keyCode, keyIsPressed, lerp, lerpColor, lightness, lights, line, loadBytes, loadFont, loadImage, loadJSON, loadModel, loadPixels, loadShader, loadStrings, loadTable, loadXML, log, logOnloaded, loop, mag, map, match, matchAll, max, millis, min, minute, model, month, mouseButton, mouseIsPressed, mouseX, mouseY, nf, nfc, nfp, nfs, noCanvas, noCursor, noDebugMode, noErase, noFill, noLoop, noSmooth, noStroke, noTint, noise, noiseDetail, noiseSeed, norm, normalMaterial, orbitControl, ortho, pAccelerationX, pAccelerationY, pAccelerationZ, pRotationX, pRotationY, pRotationZ, perspective, pixelDensity, pixels, plane, pmouseX, pmouseY, point, pointLight, popMatrix, popStyle, pow, pre_draw, push, pushMatrix, pushStyle, pwinMouseX, pwinMouseY, py_clear, py_get, py_pop, py_set, py_sort, py_split, quad, quadraticVertex, radians, random, randomGaussian, randomSeed, rect, rectMode, red, redraw, remove, removeElements, resetMatrix, resetShader, resizeCanvas, reverse, rotate, rotateX, rotateY, rotateZ, rotationX, rotationY, rotationZ, round, saturation, save, saveCanvas, saveFrames, saveJSON, saveStrings, saveTable, scale, second, select, selectAll, setAttributes, setCamera, setMoveThreshold, setShakeThreshold, shader, shearX, shearY, shininess, shorten, shuffle, sin, size, smooth, specularMaterial, sphere, splice, splitTokens, sq, sqrt, square, start_p5, str, stroke, strokeCap, strokeJoin, strokeWeight, subset, tan, text, textAlign, textAscent, textDescent, textFont, textLeading, textSize, textStyle, textWidth, texture, textureMode, textureWrap, tint, torus, touches, translate, triangle, trim, turnAxis, unchar, unhex, updatePixels, vertex, width, winMouseX, winMouseY, windowHeight, windowWidth, year} from './pyp5js.js';\nvar __name__ = '__main__';\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var deviceMoved = null;\nexport var deviceTurned = null;\nexport var deviceShaken = null;\nexport var keyPressed = null;\nexport var keyReleased = null;\nexport var keyTyped = null;\nexport var mouseMoved = null;\nexport var mouseDragged = null;\nexport var mousePressed = null;\nexport var mouseReleased = null;\nexport var mouseClicked = null;\nexport var doubleClicked = null;\nexport var mouseWheel = null;\nexport var touchStarted = null;\nexport var touchMoved = null;\nexport var touchEnded = null;\nexport var windowResized = null;\nexport var keyIsDown = null;\nvar setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tcreateCanvas (600, 600);\n\tnoStroke ();\n\trectMode (CENTER);\n};\nvar draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tcolorMode (HSB, 100);\n\tvar h = map (mouseY, 0, 600, 0, 100);\n\tbackground (h, 100, 100);\n\tfill (100 - h, 100, 100);\n\trect (300, 300, mouseX + 1, mouseX + 1);\n};\nexport var event_functions = dict ({'deviceMoved': deviceMoved, 'deviceTurned': deviceTurned, 'deviceShaken': deviceShaken, 'keyPressed': keyPressed, 'keyReleased': keyReleased, 'keyTyped': keyTyped, 'mouseMoved': mouseMoved, 'mouseDragged': mouseDragged, 'mousePressed': mousePressed, 'mouseReleased': mouseReleased, 'mouseClicked': mouseClicked, 'doubleClicked': doubleClicked, 'mouseWheel': mouseWheel, 'touchStarted': touchStarted, 'touchMoved': touchMoved, 'touchEnded': touchEnded, 'windowResized': windowResized, 'keyIsDown': keyIsDown});\nstart_p5 (preload, setup, draw, event_functions);\n\n//# sourceMappingURL=target_sketch.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_005/target/target_sketch.project",
    "content": "{\"options\": {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_005/target_sketch.py\", \"anno\": false, \"alimod\": false, \"build\": true, \"complex\": false, \"docat\": false, \"dassert\": false, \"dcheck\": false, \"dextex\": false, \"dlog\": false, \"dmap\": false, \"dnostrip\": false, \"dstat\": false, \"dtree\": false, \"esv\": null, \"ecom\": false, \"fcall\": false, \"gen\": false, \"iconv\": false, \"jscall\": false, \"jskeys\": false, \"jsmod\": false, \"kwargs\": true, \"keycheck\": false, \"license\": false, \"map\": true, \"nomin\": true, \"opov\": false, \"outdir\": null, \"parent\": null, \"run\": false, \"symbols\": null, \"sform\": false, \"tconv\": false, \"unit\": null, \"verbose\": false, \"x\": null, \"xreex\": false, \"xglobs\": false, \"xpath\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt\", \"xtiny\": false, \"star\": false}, \"modules\": [{\"source\": \"/home/bernardo/.pyenv/versions/pyp5js/lib/python3.8/site-packages/transcrypt/modules/org/transcrypt/__runtime__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_005/__target__/org.transcrypt.__runtime__.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_005/target_sketch.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_005/__target__/target_sketch.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/pyp5js.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_005/__target__/pyp5js.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/python_functions.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_005/__target__/python_functions.js\"}]}"
  },
  {
    "path": "docs/examples/transcrypt/sketch_005/target/target_sketch.py",
    "content": "from pyp5js import *\n\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\nkeyIsDown = None\n\n\ndef setup():\n    createCanvas(600,600)\n    noStroke()\n    rectMode(CENTER)\n\n\ndef draw():\n    colorMode(HSB,100)\n    h = map(mouseY,0,600,0,100)\n    background(h,100,100)\n    fill(100-h,100,100)\n    rect(300,300,mouseX+1,mouseX+1)\n\n\n\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n    \"keyIsDown\": keyIsDown,\n}\n\nstart_p5(preload, setup, draw, event_functions)"
  },
  {
    "path": "docs/examples/transcrypt/sketch_006/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_006 - pyp5js (using Transcrypt)</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/transcrypt/sketch_006\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre>\n             <code>\nr = None\ndef setup():\n    global r\n\n    createCanvas(900, 900)\n    r = random(100, 700)\n    noFill()\n\n\ndef draw():\n    x, y = 100, 100\n    rect(x, y, r, r)\n\n\ndef keyPressed():\n    console.log(\"Key pressed event\")\n\n    if key == \"n\":\n        global r\n        r = random(100, 700)\n        redraw()\n\n\ndef mouseDragged():\n    global r\n    r = random(100, 700)\n    redraw()\n\n              </code>\n          </pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/transcrypt/sketch_006/sketch_006.py",
    "content": "r = None\ndef setup():\n    global r\n\n    createCanvas(900, 900)\n    r = random(100, 700)\n    noFill()\n\n\ndef draw():\n    x, y = 100, 100\n    rect(x, y, r, r)\n\n\ndef keyPressed():\n    console.log(\"Key pressed event\")\n\n    if key == \"n\":\n        global r\n        r = random(100, 700)\n        redraw()\n\n\ndef mouseDragged():\n    global r\n    r = random(100, 700)\n    redraw()\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_006/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/transcrypt/sketch_006/target/org.transcrypt.__runtime__.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:14\nvar __name__ = 'org.transcrypt.__runtime__';\nexport var __envir__ = {};\n__envir__.interpreter_name = 'python';\n__envir__.transpiler_name = 'transcrypt';\n__envir__.executor_name = __envir__.transpiler_name;\n__envir__.transpiler_version = '3.9.0';\n\nexport function __nest__ (headObject, tailNames, value) {\n    var current = headObject;\n    if (tailNames != '') {\n        var tailChain = tailNames.split ('.');\n        var firstNewIndex = tailChain.length;\n        for (var index = 0; index < tailChain.length; index++) {\n            if (!current.hasOwnProperty (tailChain [index])) {\n                firstNewIndex = index;\n                break;\n            }\n            current = current [tailChain [index]];\n        }\n        for (var index = firstNewIndex; index < tailChain.length; index++) {\n            current [tailChain [index]] = {};\n            current = current [tailChain [index]];\n        }\n    }\n    for (let attrib of Object.getOwnPropertyNames (value)) {\n        Object.defineProperty (current, attrib, {\n            get () {return value [attrib];},\n            enumerable: true,\n            configurable: true\n        });\n    }\n};\nexport function __init__ (module) {\n    if (!module.__inited__) {\n        module.__all__.__init__ (module.__all__);\n        module.__inited__ = true;\n    }\n    return module.__all__;\n};\nexport function __get__ (aThis, func, quotedFuncName) {\n    if (aThis) {\n        if (aThis.hasOwnProperty ('__class__') || typeof aThis == 'string' || aThis instanceof String) {\n            if (quotedFuncName) {\n                Object.defineProperty (aThis, quotedFuncName, {\n                    value: function () {\n                        var args = [] .slice.apply (arguments);\n                        return func.apply (null, [aThis] .concat (args));\n                    },\n                    writable: true,\n                    enumerable: true,\n                    configurable: true\n                });\n            }\n            return function () {\n                var args = [] .slice.apply (arguments);\n                return func.apply (null, [aThis.__proxy__ ? aThis.__proxy__ : aThis] .concat (args));\n            };\n        }\n        else {\n            return func;\n        }\n    }\n    else {\n        return func;\n    }\n};\nexport function __getcm__ (aThis, func, quotedFuncName) {\n    if (aThis.hasOwnProperty ('__class__')) {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis.__class__] .concat (args));\n        };\n    }\n    else {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis] .concat (args));\n        };\n    }\n};\nexport function __getsm__ (aThis, func, quotedFuncName) {\n    return func;\n};\nexport var py_metatype = {\n    __name__: 'type',\n    __bases__: [],\n    __new__: function (meta, name, bases, attribs) {\n        var cls = function () {\n            var args = [] .slice.apply (arguments);\n            return cls.__new__ (args);\n        };\n        for (var index = bases.length - 1; index >= 0; index--) {\n            var base = bases [index];\n            for (var attrib in base) {\n                var descrip = Object.getOwnPropertyDescriptor (base, attrib);\n                if (descrip == null) {\n                    continue;\n                }\n                Object.defineProperty (cls, attrib, descrip);\n            }\n            for (let symbol of Object.getOwnPropertySymbols (base)) {\n                let descrip = Object.getOwnPropertyDescriptor (base, symbol);\n                Object.defineProperty (cls, symbol, descrip);\n            }\n        }\n        cls.__metaclass__ = meta;\n        cls.__name__ = name.startsWith ('py_') ? name.slice (3) : name;\n        cls.__bases__ = bases;\n        for (var attrib in attribs) {\n            var descrip = Object.getOwnPropertyDescriptor (attribs, attrib);\n            Object.defineProperty (cls, attrib, descrip);\n        }\n        for (let symbol of Object.getOwnPropertySymbols (attribs)) {\n            let descrip = Object.getOwnPropertyDescriptor (attribs, symbol);\n            Object.defineProperty (cls, symbol, descrip);\n        }\n        return cls;\n    }\n};\npy_metatype.__metaclass__ = py_metatype;\nexport var object = {\n    __init__: function (self) {},\n    __metaclass__: py_metatype,\n    __name__: 'object',\n    __bases__: [],\n    __new__: function (args) {\n        var instance = Object.create (this, {__class__: {value: this, enumerable: true}});\n        if ('__getattr__' in this || '__setattr__' in this) {\n            instance.__proxy__ = new Proxy (instance, {\n                get: function (target, name) {\n                    let result = target [name];\n                    if (result == undefined) {\n                        return target.__getattr__ (name);\n                    }\n                    else {\n                        return result;\n                    }\n                },\n                set: function (target, name, value) {\n                    try {\n                        target.__setattr__ (name, value);\n                    }\n                    catch (exception) {\n                        target [name] = value;\n                    }\n                    return true;\n                }\n            })\n\t\t\tinstance = instance.__proxy__\n        }\n        this.__init__.apply (null, [instance] .concat (args));\n        return instance;\n    }\n};\nexport function __class__ (name, bases, attribs, meta) {\n    if (meta === undefined) {\n        meta = bases [0] .__metaclass__;\n    }\n    return meta.__new__ (meta, name, bases, attribs);\n};\nexport function __pragma__ () {};\nexport function __call__ (/* <callee>, <this>, <params>* */) {\n    var args = [] .slice.apply (arguments);\n    if (typeof args [0] == 'object' && '__call__' in args [0]) {\n        return args [0] .__call__ .apply (args [1], args.slice (2));\n    }\n    else {\n        return args [0] .apply (args [1], args.slice (2));\n    }\n};\n__envir__.executor_name = __envir__.transpiler_name;\nvar __main__ = {__file__: ''};\nvar __except__ = null;\nexport function __kwargtrans__ (anObject) {\n    anObject.__kwargtrans__ = null;\n    anObject.constructor = Object;\n    return anObject;\n}\nexport function __super__ (aClass, methodName) {\n    for (let base of aClass.__bases__) {\n        if (methodName in base) {\n           return base [methodName];\n        }\n    }\n    throw new Exception ('Superclass method not found');\n}\nexport function property (getter, setter) {\n    if (!setter) {\n        setter = function () {};\n    }\n    return {get: function () {return getter (this)}, set: function (value) {setter (this, value)}, enumerable: true};\n}\nexport function __setproperty__ (anObject, name, descriptor) {\n    if (!anObject.hasOwnProperty (name)) {\n        Object.defineProperty (anObject, name, descriptor);\n    }\n}\nexport function assert (condition, message) {\n    if (!condition) {\n        throw AssertionError (message, new Error ());\n    }\n}\nexport function __mergekwargtrans__ (object0, object1) {\n    var result = {};\n    for (var attrib in object0) {\n        result [attrib] = object0 [attrib];\n    }\n    for (var attrib in object1) {\n        result [attrib] = object1 [attrib];\n    }\n    return result;\n};\nexport function __mergefields__ (targetClass, sourceClass) {\n    let fieldNames = ['__reprfields__', '__comparefields__', '__initfields__']\n    if (sourceClass [fieldNames [0]]) {\n        if (targetClass [fieldNames [0]]) {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set ([...targetClass [fieldName], ...sourceClass [fieldName]]);\n            }\n        }\n        else {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set (sourceClass [fieldName]);\n            }\n        }\n    }\n}\nexport function __withblock__ (manager, statements) {\n    if (hasattr (manager, '__enter__')) {\n        try {\n            manager.__enter__ ();\n            statements ();\n            manager.__exit__ ();\n        }\n        catch (exception) {\n            if (! (manager.__exit__ (exception.name, exception, exception.stack))) {\n                throw exception;\n            }\n        }\n    }\n    else {\n        statements ();\n        manager.close ();\n    }\n};\nexport function dir (obj) {\n    var aList = [];\n    for (var aKey in obj) {\n        aList.push (aKey.startsWith ('py_') ? aKey.slice (3) : aKey);\n    }\n    aList.sort ();\n    return aList;\n};\nexport function setattr (obj, name, value) {\n    obj [name] = value;\n};\nexport function getattr (obj, name) {\n    return name in obj ? obj [name] : obj ['py_' + name];\n};\nexport function hasattr (obj, name) {\n    try {\n        return name in obj || 'py_' + name in obj;\n    }\n    catch (exception) {\n        return false;\n    }\n};\nexport function delattr (obj, name) {\n    if (name in obj) {\n        delete obj [name];\n    }\n    else {\n        delete obj ['py_' + name];\n    }\n};\nexport function __in__ (element, container) {\n    if (container === undefined || container === null) {\n        return false;\n    }\n    if (container.__contains__ instanceof Function) {\n        return container.__contains__ (element);\n    }\n    else {\n        return (\n            container.indexOf ?\n            container.indexOf (element) > -1 :\n            container.hasOwnProperty (element)\n        );\n    }\n};\nexport function __specialattrib__ (attrib) {\n    return (attrib.startswith ('__') && attrib.endswith ('__')) || attrib == 'constructor' || attrib.startswith ('py_');\n};\nexport function len (anObject) {\n    if (anObject === undefined || anObject === null) {\n        return 0;\n    }\n    if (anObject.__len__ instanceof Function) {\n        return anObject.__len__ ();\n    }\n    if (anObject.length !== undefined) {\n        return anObject.length;\n    }\n    var length = 0;\n    for (var attr in anObject) {\n        if (!__specialattrib__ (attr)) {\n            length++;\n        }\n    }\n    return length;\n};\nexport function __i__ (any) {\n    return py_typeof (any) == dict ? any.py_keys () : any;\n}\nexport function __k__ (keyed, key) {\n    var result = keyed [key];\n    if (typeof result == 'undefined') {\n        if (keyed instanceof Array)\n            if (key == +key && key >= 0 && keyed.length > key)\n                return result;\n            else\n                throw IndexError (key, new Error());\n        else\n            throw KeyError (key, new Error());\n    }\n    return result;\n}\nexport function __t__ (target) {\n    return (\n        target === undefined || target === null ? false :\n        ['boolean', 'number'] .indexOf (typeof target) >= 0 ? target :\n        target.__bool__ instanceof Function ? (target.__bool__ () ? target : false) :\n        target.__len__ instanceof Function ?  (target.__len__ () !== 0 ? target : false) :\n        target instanceof Function ? target :\n        len (target) !== 0 ? target :\n        false\n    );\n}\nexport function float (any) {\n    if (any == 'inf') {\n        return Infinity;\n    }\n    else if (any == '-inf') {\n        return -Infinity;\n    }\n    else if (any == 'nan') {\n        return NaN;\n    }\n    else if (isNaN (parseFloat (any))) {\n        if (any === false) {\n            return 0;\n        }\n        else if (any === true) {\n            return 1;\n        }\n        else {\n            throw ValueError (\"could not convert string to float: '\" + str(any) + \"'\", new Error ());\n        }\n    }\n    else {\n        return +any;\n    }\n};\nfloat.__name__ = 'float';\nfloat.__bases__ = [object];\nexport function int (any) {\n    return float (any) | 0\n};\nint.__name__ = 'int';\nint.__bases__ = [object];\nexport function bool (any) {\n    return !!__t__ (any);\n};\nbool.__name__ = 'bool';\nbool.__bases__ = [int];\nexport function py_typeof (anObject) {\n    var aType = typeof anObject;\n    if (aType == 'object') {\n        try {\n            return '__class__' in anObject ? anObject.__class__ : object;\n        }\n        catch (exception) {\n            return aType;\n        }\n    }\n    else {\n        return (\n            aType == 'boolean' ? bool :\n            aType == 'string' ? str :\n            aType == 'number' ? (anObject % 1 == 0 ? int : float) :\n            null\n        );\n    }\n};\nexport function issubclass (aClass, classinfo) {\n    if (classinfo instanceof Array) {\n        for (let aClass2 of classinfo) {\n            if (issubclass (aClass, aClass2)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    try {\n        var aClass2 = aClass;\n        if (aClass2 == classinfo) {\n            return true;\n        }\n        else {\n            var bases = [].slice.call (aClass2.__bases__);\n            while (bases.length) {\n                aClass2 = bases.shift ();\n                if (aClass2 == classinfo) {\n                    return true;\n                }\n                if (aClass2.__bases__.length) {\n                    bases = [].slice.call (aClass2.__bases__).concat (bases);\n                }\n            }\n            return false;\n        }\n    }\n    catch (exception) {\n        return aClass == classinfo || classinfo == object;\n    }\n};\nexport function isinstance (anObject, classinfo) {\n    try {\n        return '__class__' in anObject ? issubclass (anObject.__class__, classinfo) : issubclass (py_typeof (anObject), classinfo);\n    }\n    catch (exception) {\n        return issubclass (py_typeof (anObject), classinfo);\n    }\n};\nexport function callable (anObject) {\n    return anObject && typeof anObject == 'object' && '__call__' in anObject ? true : typeof anObject === 'function';\n};\nexport function repr (anObject) {\n    try {\n        return anObject.__repr__ ();\n    }\n    catch (exception) {\n        try {\n            return anObject.__str__ ();\n        }\n        catch (exception) {\n            try {\n                if (anObject == null) {\n                    return 'None';\n                }\n                else if (anObject.constructor == Object) {\n                    var result = '{';\n                    var comma = false;\n                    for (var attrib in anObject) {\n                        if (!__specialattrib__ (attrib)) {\n                            if (attrib.isnumeric ()) {\n                                var attribRepr = attrib;\n                            }\n                            else {\n                                var attribRepr = '\\'' + attrib + '\\'';\n                            }\n                            if (comma) {\n                                result += ', ';\n                            }\n                            else {\n                                comma = true;\n                            }\n                            result += attribRepr + ': ' + repr (anObject [attrib]);\n                        }\n                    }\n                    result += '}';\n                    return result;\n                }\n                else {\n                    return typeof anObject == 'boolean' ? anObject.toString () .capitalize () : anObject.toString ();\n                }\n            }\n            catch (exception) {\n                return '<object of type: ' + typeof anObject + '>';\n            }\n        }\n    }\n};\nexport function chr (charCode) {\n    return String.fromCharCode (charCode);\n};\nexport function ord (aChar) {\n    return aChar.charCodeAt (0);\n};\nexport function max (nrOrSeq) {\n    return arguments.length == 1 ? Math.max (...nrOrSeq) : Math.max (...arguments);\n};\nexport function min (nrOrSeq) {\n    return arguments.length == 1 ? Math.min (...nrOrSeq) : Math.min (...arguments);\n};\nexport var abs = Math.abs;\nexport function round (number, ndigits) {\n    if (ndigits) {\n        var scale = Math.pow (10, ndigits);\n        number *= scale;\n    }\n    var rounded = Math.round (number);\n    if (rounded - number == 0.5 && rounded % 2) {\n        rounded -= 1;\n    }\n    if (ndigits) {\n        rounded /= scale;\n    }\n    return rounded;\n};\nexport function __jsUsePyNext__ () {\n    try {\n        var result = this.__next__ ();\n        return {value: result, done: false};\n    }\n    catch (exception) {\n        return {value: undefined, done: true};\n    }\n}\nexport function __pyUseJsNext__ () {\n    var result = this.next ();\n    if (result.done) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result.value;\n    }\n}\nexport function py_iter (iterable) {\n    if (typeof iterable == 'string' || '__iter__' in iterable) {\n        var result = iterable.__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('selector' in iterable) {\n        var result = list (iterable) .__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('next' in iterable) {\n        var result = iterable\n        if (! ('__next__' in result)) {\n            result.__next__ = __pyUseJsNext__;\n        }\n    }\n    else if (Symbol.iterator in iterable) {\n        var result = iterable [Symbol.iterator] ();\n        result.__next__ = __pyUseJsNext__;\n    }\n    else {\n        throw IterableError (new Error ());\n    }\n    result [Symbol.iterator] = function () {return result;};\n    return result;\n}\nexport function py_next (iterator) {\n    try {\n        var result = iterator.__next__ ();\n    }\n    catch (exception) {\n        var result = iterator.next ();\n        if (result.done) {\n            throw StopIteration (new Error ());\n        }\n        else {\n            return result.value;\n        }\n    }\n    if (result == undefined) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result;\n    }\n}\nexport function __PyIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__PyIterator__.prototype.__next__ = function() {\n    if (this.index < this.iterable.length) {\n        return this.iterable [this.index++];\n    }\n    else {\n        throw StopIteration (new Error ());\n    }\n};\nexport function __JsIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__JsIterator__.prototype.next = function () {\n    if (this.index < this.iterable.py_keys.length) {\n        return {value: this.index++, done: false};\n    }\n    else {\n        return {value: undefined, done: true};\n    }\n};\nexport function py_reversed (iterable) {\n    iterable = iterable.slice ();\n    iterable.reverse ();\n    return iterable;\n};\nexport function zip () {\n    var args = [] .slice.call (arguments);\n    for (var i = 0; i < args.length; i++) {\n        if (typeof args [i] == 'string') {\n            args [i] = args [i] .split ('');\n        }\n        else if (!Array.isArray (args [i])) {\n            args [i] = Array.from (args [i]);\n        }\n    }\n    var shortest = args.length == 0 ? [] : args.reduce (\n        function (array0, array1) {\n            return array0.length < array1.length ? array0 : array1;\n        }\n    );\n    return shortest.map (\n        function (current, index) {\n            return args.map (\n                function (current) {\n                    return current [index];\n                }\n            );\n        }\n    );\n};\nexport function range (start, stop, step) {\n    if (stop == undefined) {\n        stop = start;\n        start = 0;\n    }\n    if (step == undefined) {\n        step = 1;\n    }\n    if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) {\n        return [];\n    }\n    var result = [];\n    for (var i = start; step > 0 ? i < stop : i > stop; i += step) {\n        result.push(i);\n    }\n    return result;\n};\nexport function any (iterable) {\n    for (let item of iterable) {\n        if (bool (item)) {\n            return true;\n        }\n    }\n    return false;\n}\nexport function all (iterable) {\n    for (let item of iterable) {\n        if (! bool (item)) {\n            return false;\n        }\n    }\n    return true;\n}\nexport function sum (iterable) {\n    let result = 0;\n    for (let item of iterable) {\n        result += item;\n    }\n    return result;\n}\nexport function enumerate (iterable) {\n    return zip (range (len (iterable)), iterable);\n}\nexport function copy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = anObject [attrib];\n            }\n        }\n        return result;\n    }\n}\nexport function deepcopy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = deepcopy (anObject [attrib]);\n            }\n        }\n        return result;\n    }\n}\nexport function list (iterable) {\n    let instance = iterable ? Array.from (iterable) : [];\n    return instance;\n}\nArray.prototype.__class__ = list;\nlist.__name__ = 'list';\nlist.__bases__ = [object];\nArray.prototype.__iter__ = function () {return new __PyIterator__ (this);};\nArray.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    else if (stop > this.length) {\n        stop = this.length;\n    }\n    if (step == 1) {\n        return Array.prototype.slice.call(this, start, stop);\n    }\n    let result = list ([]);\n    for (let index = start; index < stop; index += step) {\n        result.push (this [index]);\n    }\n    return result;\n};\nArray.prototype.__setslice__ = function (start, stop, step, source) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    if (step == null) {\n        Array.prototype.splice.apply (this, [start, stop - start] .concat (source));\n    }\n    else {\n        let sourceIndex = 0;\n        for (let targetIndex = start; targetIndex < stop; targetIndex += step) {\n            this [targetIndex] = source [sourceIndex++];\n        }\n    }\n};\nArray.prototype.__repr__ = function () {\n    if (this.__class__ == set && !this.length) {\n        return 'set()';\n    }\n    let result = !this.__class__ || this.__class__ == list ? '[' : this.__class__ == tuple ? '(' : '{';\n    for (let index = 0; index < this.length; index++) {\n        if (index) {\n            result += ', ';\n        }\n        result += repr (this [index]);\n    }\n    if (this.__class__ == tuple && this.length == 1) {\n        result += ',';\n    }\n    result += !this.__class__ || this.__class__ == list ? ']' : this.__class__ == tuple ? ')' : '}';;\n    return result;\n};\nArray.prototype.__str__ = Array.prototype.__repr__;\nArray.prototype.append = function (element) {\n    this.push (element);\n};\nArray.prototype.py_clear = function () {\n    this.length = 0;\n};\nArray.prototype.extend = function (aList) {\n    this.push.apply (this, aList);\n};\nArray.prototype.insert = function (index, element) {\n    this.splice (index, 0, element);\n};\nArray.prototype.remove = function (element) {\n    let index = this.indexOf (element);\n    if (index == -1) {\n        throw ValueError (\"list.remove(x): x not in list\", new Error ());\n    }\n    this.splice (index, 1);\n};\nArray.prototype.index = function (element) {\n    return this.indexOf (element);\n};\nArray.prototype.py_pop = function (index) {\n    if (index == undefined) {\n        return this.pop ();\n    }\n    else {\n        return this.splice (index, 1) [0];\n    }\n};\nArray.prototype.py_sort = function () {\n    __sort__.apply  (null, [this].concat ([] .slice.apply (arguments)));\n};\nArray.prototype.__add__ = function (aList) {\n    return list (this.concat (aList));\n};\nArray.prototype.__mul__ = function (scalar) {\n    let result = this;\n    for (let i = 1; i < scalar; i++) {\n        result = result.concat (this);\n    }\n    return result;\n};\nArray.prototype.__rmul__ = Array.prototype.__mul__;\nexport function tuple (iterable) {\n    let instance = iterable ? [] .slice.apply (iterable) : [];\n    instance.__class__ = tuple;\n    return instance;\n}\ntuple.__name__ = 'tuple';\ntuple.__bases__ = [object];\nexport function set (iterable) {\n    let instance = [];\n    if (iterable) {\n        for (let index = 0; index < iterable.length; index++) {\n            instance.add (iterable [index]);\n        }\n    }\n    instance.__class__ = set;\n    return instance;\n}\nset.__name__ = 'set';\nset.__bases__ = [object];\nArray.prototype.__bindexOf__ = function (element) {\n    element += '';\n    let mindex = 0;\n    let maxdex = this.length - 1;\n    while (mindex <= maxdex) {\n        let index = (mindex + maxdex) / 2 | 0;\n        let middle = this [index] + '';\n        if (middle < element) {\n            mindex = index + 1;\n        }\n        else if (middle > element) {\n            maxdex = index - 1;\n        }\n        else {\n            return index;\n        }\n    }\n    return -1;\n};\nArray.prototype.add = function (element) {\n    if (this.indexOf (element) == -1) {\n        this.push (element);\n    }\n};\nArray.prototype.discard = function (element) {\n    var index = this.indexOf (element);\n    if (index != -1) {\n        this.splice (index, 1);\n    }\n};\nArray.prototype.isdisjoint = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issuperset = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) == -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issubset = function (other) {\n    return set (other.slice ()) .issuperset (this);\n};\nArray.prototype.union = function (other) {\n    let result = set (this.slice () .sort ());\n    for (let i = 0; i < other.length; i++) {\n        if (result.__bindexOf__ (other [i]) == -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.intersection = function (other) {\n    this.sort ();\n    let result = set ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.difference = function (other) {\n    let sother = set (other.slice () .sort ());\n    let result = set ();\n    for (let i = 0; i < this.length; i++) {\n        if (sother.__bindexOf__ (this [i]) == -1) {\n            result.push (this [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.symmetric_difference = function (other) {\n    return this.union (other) .difference (this.intersection (other));\n};\nArray.prototype.py_update = function () {\n    let updated = [] .concat.apply (this.slice (), arguments) .sort ();\n    this.py_clear ();\n    for (let i = 0; i < updated.length; i++) {\n        if (updated [i] != updated [i - 1]) {\n            this.push (updated [i]);\n        }\n    }\n};\nArray.prototype.__eq__ = function (other) {\n    if (this.length != other.length) {\n        return false;\n    }\n    if (this.__class__ == set) {\n        this.sort ();\n        other.sort ();\n    }\n    for (let i = 0; i < this.length; i++) {\n        if (this [i] != other [i]) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.__ne__ = function (other) {\n    return !this.__eq__ (other);\n};\nArray.prototype.__le__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issubset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] > other [i]) {\n                return false;\n            }\n            else if (this [i] < other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__ge__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issuperset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] < other [i]) {\n                return false;\n            }\n            else if (this [i] > other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__lt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issubset (other) && !this.issuperset (other) :\n        !this.__ge__ (other)\n    );\n};\nArray.prototype.__gt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issuperset (other) && !this.issubset (other) :\n        !this.__le__ (other)\n    );\n};\nexport function bytearray (bytable, encoding) {\n    if (bytable == undefined) {\n        return new Uint8Array (0);\n    }\n    else {\n        let aType = py_typeof (bytable);\n        if (aType == int) {\n            return new Uint8Array (bytable);\n        }\n        else if (aType == str) {\n            let aBytes = new Uint8Array (len (bytable));\n            for (let i = 0; i < len (bytable); i++) {\n                aBytes [i] = bytable.charCodeAt (i);\n            }\n            return aBytes;\n        }\n        else if (aType == list || aType == tuple) {\n            return new Uint8Array (bytable);\n        }\n        else {\n            throw py_TypeError;\n        }\n    }\n}\nexport var bytes = bytearray;\nUint8Array.prototype.__add__ = function (aBytes) {\n    let result = new Uint8Array (this.length + aBytes.length);\n    result.set (this);\n    result.set (aBytes, this.length);\n    return result;\n};\nUint8Array.prototype.__mul__ = function (scalar) {\n    let result = new Uint8Array (scalar * this.length);\n    for (let i = 0; i < scalar; i++) {\n        result.set (this, i * this.length);\n    }\n    return result;\n};\nUint8Array.prototype.__rmul__ = Uint8Array.prototype.__mul__;\nexport function str (stringable) {\n    if (typeof stringable === 'number')\n        return stringable.toString();\n    else {\n        try {\n            return stringable.__str__ ();\n        }\n        catch (exception) {\n            try {\n                return repr (stringable);\n            }\n            catch (exception) {\n                return String (stringable);\n            }\n        }\n    }\n};\nString.prototype.__class__ = str;\nstr.__name__ = 'str';\nstr.__bases__ = [object];\nString.prototype.__iter__ = function () {new __PyIterator__ (this);};\nString.prototype.__repr__ = function () {\n    return (this.indexOf ('\\'') == -1 ? '\\'' + this + '\\'' : '\"' + this + '\"') .py_replace ('\\t', '\\\\t') .py_replace ('\\n', '\\\\n');\n};\nString.prototype.__str__ = function () {\n    return this;\n};\nString.prototype.capitalize = function () {\n    return this.charAt (0).toUpperCase () + this.slice (1);\n};\nString.prototype.endswith = function (suffix) {\n    if (suffix instanceof Array) {\n        for (var i=0;i<suffix.length;i++) {\n            if (this.slice (-suffix[i].length) == suffix[i])\n                return true;\n        }\n    } else\n        return suffix == '' || this.slice (-suffix.length) == suffix;\n    return false;\n};\nString.prototype.find = function (sub, start) {\n    return this.indexOf (sub, start);\n};\nString.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    var result = '';\n    if (step == 1) {\n        result = this.substring (start, stop);\n    }\n    else {\n        for (var index = start; index < stop; index += step) {\n            result = result.concat (this.charAt(index));\n        }\n    }\n    return result;\n};\n__setproperty__ (String.prototype, 'format', {\n    get: function () {return __get__ (this, function (self) {\n        var args = tuple ([] .slice.apply (arguments).slice (1));\n        var autoIndex = 0;\n        return self.replace (/\\{(\\w*)\\}/g, function (match, key) {\n            if (key == '') {\n                key = autoIndex++;\n            }\n            if (key == +key) {\n                return args [key] === undefined ? match : str (args [key]);\n            }\n            else {\n                for (var index = 0; index < args.length; index++) {\n                    if (typeof args [index] == 'object' && args [index][key] !== undefined) {\n                        return str (args [index][key]);\n                    }\n                }\n                return match;\n            }\n        });\n    });},\n    enumerable: true\n});\nString.prototype.isalnum = function () {\n    return /^[0-9a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isalpha = function () {\n    return /^[a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isdecimal = function () {\n    return /^[0-9]{1,}$/.test(this)\n}\nString.prototype.isdigit = function () {\n    return this.isdecimal()\n}\nString.prototype.islower = function () {\n    return /^[a-z]{1,}$/.test(this)\n}\nString.prototype.isupper = function () {\n    return /^[A-Z]{1,}$/.test(this)\n}\nString.prototype.isspace = function () {\n    return /^[\\s]{1,}$/.test(this)\n}\nString.prototype.isnumeric = function () {\n    return !isNaN (parseFloat (this)) && isFinite (this);\n};\nString.prototype.join = function (strings) {\n    strings = Array.from (strings);\n    return strings.join (this);\n};\nString.prototype.lower = function () {\n    return this.toLowerCase ();\n};\nString.prototype.py_replace = function (old, aNew, maxreplace) {\n    return this.split (old, maxreplace) .join (aNew);\n};\nString.prototype.lstrip = function () {\n    return this.replace (/^\\s*/g, '');\n};\nString.prototype.rfind = function (sub, start) {\n    return this.lastIndexOf (sub, start);\n};\nString.prototype.rsplit = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            var maxrsplit = result.length - maxsplit;\n            return [result.slice (0, maxrsplit) .join (sep)] .concat (result.slice (maxrsplit));\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.rstrip = function () {\n    return this.replace (/\\s*$/g, '');\n};\nString.prototype.py_split = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            return result.slice (0, maxsplit).concat ([result.slice (maxsplit).join (sep)]);\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.startswith = function (prefix) {\n    if (prefix instanceof Array) {\n        for (var i=0;i<prefix.length;i++) {\n            if (this.indexOf (prefix [i]) == 0)\n                return true;\n        }\n    } else\n        return this.indexOf (prefix) == 0;\n    return false;\n};\nString.prototype.strip = function () {\n    return this.trim ();\n};\nString.prototype.upper = function () {\n    return this.toUpperCase ();\n};\nString.prototype.__mul__ = function (scalar) {\n    var result = '';\n    for (var i = 0; i < scalar; i++) {\n        result = result + this;\n    }\n    return result;\n};\nString.prototype.__rmul__ = String.prototype.__mul__;\nfunction __contains__ (element) {\n    return this.hasOwnProperty (element);\n}\nfunction __keys__ () {\n    var keys = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            keys.push (attrib);\n        }\n    }\n    return keys;\n}\nfunction __items__ () {\n    var items = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            items.push ([attrib, this [attrib]]);\n        }\n    }\n    return items;\n}\nfunction __del__ (key) {\n    delete this [key];\n}\nfunction __clear__ () {\n    for (var attrib in this) {\n        delete this [attrib];\n    }\n}\nfunction __getdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result == undefined) {\n        result = this ['py_' + aKey]\n    }\n    return result == undefined ? (aDefault == undefined ? null : aDefault) : result;\n}\nfunction __setdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        return result;\n    }\n    var val = aDefault == undefined ? null : aDefault;\n    this [aKey] = val;\n    return val;\n}\nfunction __pop__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        delete this [aKey];\n        return result;\n    } else {\n        if ( aDefault === undefined ) {\n            throw KeyError (aKey, new Error());\n        }\n    }\n    return aDefault;\n}\nfunction __popitem__ () {\n    var aKey = Object.keys (this) [0];\n    if (aKey == null) {\n        throw KeyError (\"popitem(): dictionary is empty\", new Error ());\n    }\n    var result = tuple ([aKey, this [aKey]]);\n    delete this [aKey];\n    return result;\n}\nfunction __update__ (aDict) {\n    for (var aKey in aDict) {\n        this [aKey] = aDict [aKey];\n    }\n}\nfunction __values__ () {\n    var values = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            values.push (this [attrib]);\n        }\n    }\n    return values;\n}\nfunction __dgetitem__ (aKey) {\n    return this [aKey];\n}\nfunction __dsetitem__ (aKey, aValue) {\n    this [aKey] = aValue;\n}\nexport function dict (objectOrPairs) {\n    var instance = {};\n    if (!objectOrPairs || objectOrPairs instanceof Array) {\n        if (objectOrPairs) {\n            for (var index = 0; index < objectOrPairs.length; index++) {\n                var pair = objectOrPairs [index];\n                if ( !(pair instanceof Array) || pair.length != 2) {\n                    throw ValueError(\n                        \"dict update sequence element #\" + index +\n                        \" has length \" + pair.length +\n                        \"; 2 is required\", new Error());\n                }\n                var key = pair [0];\n                var val = pair [1];\n                if (!(objectOrPairs instanceof Array) && objectOrPairs instanceof Object) {\n                     if (!isinstance (objectOrPairs, dict)) {\n                         val = dict (val);\n                     }\n                }\n                instance [key] = val;\n            }\n        }\n    }\n    else {\n        if (isinstance (objectOrPairs, dict)) {\n            var aKeys = objectOrPairs.py_keys ();\n            for (var index = 0; index < aKeys.length; index++ ) {\n                var key = aKeys [index];\n                instance [key] = objectOrPairs [key];\n            }\n        } else if (objectOrPairs instanceof Object) {\n            instance = objectOrPairs;\n        } else {\n            throw ValueError (\"Invalid type of object for dict creation\", new Error ());\n        }\n    }\n    __setproperty__ (instance, '__class__', {value: dict, enumerable: false, writable: true});\n    __setproperty__ (instance, '__contains__', {value: __contains__, enumerable: false});\n    __setproperty__ (instance, 'py_keys', {value: __keys__, enumerable: false});\n    __setproperty__ (instance, '__iter__', {value: function () {new __PyIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, Symbol.iterator, {value: function () {new __JsIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, 'py_items', {value: __items__, enumerable: false});\n    __setproperty__ (instance, 'py_del', {value: __del__, enumerable: false});\n    __setproperty__ (instance, 'py_clear', {value: __clear__, enumerable: false});\n    __setproperty__ (instance, 'py_get', {value: __getdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_setdefault', {value: __setdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_pop', {value: __pop__, enumerable: false});\n    __setproperty__ (instance, 'py_popitem', {value: __popitem__, enumerable: false});\n    __setproperty__ (instance, 'py_update', {value: __update__, enumerable: false});\n    __setproperty__ (instance, 'py_values', {value: __values__, enumerable: false});\n    __setproperty__ (instance, '__getitem__', {value: __dgetitem__, enumerable: false});\n    __setproperty__ (instance, '__setitem__', {value: __dsetitem__, enumerable: false});\n    return instance;\n}\ndict.__name__ = 'dict';\ndict.__bases__ = [object];\nfunction __setdoc__ (docString) {\n    this.__doc__ = docString;\n    return this;\n}\n__setproperty__ (Function.prototype, '__setdoc__', {value: __setdoc__, enumerable: false});\nexport function __jsmod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __mod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __pow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport var pow = __pow__;\nexport function __neg__ (a) {\n    if (typeof a == 'object' && '__neg__' in a) {\n        return a.__neg__ ();\n    }\n    else {\n        return -a;\n    }\n};\nexport function __matmul__ (a, b) {\n    return a.__matmul__ (b);\n};\nexport function __mul__ (a, b) {\n    if (typeof a == 'object' && '__mul__' in a) {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return b.__rmul__ (a);\n    }\n    else {\n        return a * b;\n    }\n};\nexport function __truediv__ (a, b) {\n    if (typeof a == 'object' && '__truediv__' in a) {\n        return a.__truediv__ (b);\n    }\n    else if (typeof b == 'object' && '__rtruediv__' in b) {\n        return b.__rtruediv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return a / b;\n    }\n};\nexport function __floordiv__ (a, b) {\n    if (typeof a == 'object' && '__floordiv__' in a) {\n        return a.__floordiv__ (b);\n    }\n    else if (typeof b == 'object' && '__rfloordiv__' in b) {\n        return b.__rfloordiv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return Math.floor (a / b);\n    }\n};\nexport function __add__ (a, b) {\n    if (typeof a == 'object' && '__add__' in a) {\n        return a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return b.__radd__ (a);\n    }\n    else {\n        return a + b;\n    }\n};\nexport function __sub__ (a, b) {\n    if (typeof a == 'object' && '__sub__' in a) {\n        return a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return b.__rsub__ (a);\n    }\n    else {\n        return a - b;\n    }\n};\nexport function __lshift__ (a, b) {\n    if (typeof a == 'object' && '__lshift__' in a) {\n        return a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return b.__rlshift__ (a);\n    }\n    else {\n        return a << b;\n    }\n};\nexport function __rshift__ (a, b) {\n    if (typeof a == 'object' && '__rshift__' in a) {\n        return a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return b.__rrshift__ (a);\n    }\n    else {\n        return a >> b;\n    }\n};\nexport function __or__ (a, b) {\n    if (typeof a == 'object' && '__or__' in a) {\n        return a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return b.__ror__ (a);\n    }\n    else {\n        return a | b;\n    }\n};\nexport function __xor__ (a, b) {\n    if (typeof a == 'object' && '__xor__' in a) {\n        return a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return b.__rxor__ (a);\n    }\n    else {\n        return a ^ b;\n    }\n};\nexport function __and__ (a, b) {\n    if (typeof a == 'object' && '__and__' in a) {\n        return a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return b.__rand__ (a);\n    }\n    else {\n        return a & b;\n    }\n};\nexport function __eq__ (a, b) {\n    if (typeof a == 'object' && '__eq__' in a) {\n        return a.__eq__ (b);\n    }\n    else {\n        return a == b;\n    }\n};\nexport function __ne__ (a, b) {\n    if (typeof a == 'object' && '__ne__' in a) {\n        return a.__ne__ (b);\n    }\n    else {\n        return a != b\n    }\n};\nexport function __lt__ (a, b) {\n    if (typeof a == 'object' && '__lt__' in a) {\n        return a.__lt__ (b);\n    }\n    else {\n        return a < b;\n    }\n};\nexport function __le__ (a, b) {\n    if (typeof a == 'object' && '__le__' in a) {\n        return a.__le__ (b);\n    }\n    else {\n        return a <= b;\n    }\n};\nexport function __gt__ (a, b) {\n    if (typeof a == 'object' && '__gt__' in a) {\n        return a.__gt__ (b);\n    }\n    else {\n        return a > b;\n    }\n};\nexport function __ge__ (a, b) {\n    if (typeof a == 'object' && '__ge__' in a) {\n        return a.__ge__ (b);\n    }\n    else {\n        return a >= b;\n    }\n};\nexport function __imatmul__ (a, b) {\n    if ('__imatmul__' in a) {\n        return a.__imatmul__ (b);\n    }\n    else {\n        return a.__matmul__ (b);\n    }\n};\nexport function __ipow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__ipow__ (b);\n    }\n    else if (typeof a == 'object' && '__ipow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport function __ijsmod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__ismod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __imod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__imod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __imul__ (a, b) {\n    if (typeof a == 'object' && '__imul__' in a) {\n        return a.__imul__ (b);\n    }\n    else if (typeof a == 'object' && '__mul__' in a) {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return a = b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return a = b.__rmul__ (a);\n    }\n    else {\n        return a *= b;\n    }\n};\nexport function __idiv__ (a, b) {\n    if (typeof a == 'object' && '__idiv__' in a) {\n        return a.__idiv__ (b);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a = a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return a = b.__rdiv__ (a);\n    }\n    else {\n        return a /= b;\n    }\n};\nexport function __iadd__ (a, b) {\n    if (typeof a == 'object' && '__iadd__' in a) {\n        return a.__iadd__ (b);\n    }\n    else if (typeof a == 'object' && '__add__' in a) {\n        return a = a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return a = b.__radd__ (a);\n    }\n    else {\n        return a += b;\n    }\n};\nexport function __isub__ (a, b) {\n    if (typeof a == 'object' && '__isub__' in a) {\n        return a.__isub__ (b);\n    }\n    else if (typeof a == 'object' && '__sub__' in a) {\n        return a = a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return a = b.__rsub__ (a);\n    }\n    else {\n        return a -= b;\n    }\n};\nexport function __ilshift__ (a, b) {\n    if (typeof a == 'object' && '__ilshift__' in a) {\n        return a.__ilshift__ (b);\n    }\n    else if (typeof a == 'object' && '__lshift__' in a) {\n        return a = a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return a = b.__rlshift__ (a);\n    }\n    else {\n        return a <<= b;\n    }\n};\nexport function __irshift__ (a, b) {\n    if (typeof a == 'object' && '__irshift__' in a) {\n        return a.__irshift__ (b);\n    }\n    else if (typeof a == 'object' && '__rshift__' in a) {\n        return a = a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return a = b.__rrshift__ (a);\n    }\n    else {\n        return a >>= b;\n    }\n};\nexport function __ior__ (a, b) {\n    if (typeof a == 'object' && '__ior__' in a) {\n        return a.__ior__ (b);\n    }\n    else if (typeof a == 'object' && '__or__' in a) {\n        return a = a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return a = b.__ror__ (a);\n    }\n    else {\n        return a |= b;\n    }\n};\nexport function __ixor__ (a, b) {\n    if (typeof a == 'object' && '__ixor__' in a) {\n        return a.__ixor__ (b);\n    }\n    else if (typeof a == 'object' && '__xor__' in a) {\n        return a = a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return a = b.__rxor__ (a);\n    }\n    else {\n        return a ^= b;\n    }\n};\nexport function __iand__ (a, b) {\n    if (typeof a == 'object' && '__iand__' in a) {\n        return a.__iand__ (b);\n    }\n    else if (typeof a == 'object' && '__and__' in a) {\n        return a = a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return a = b.__rand__ (a);\n    }\n    else {\n        return a &= b;\n    }\n};\nexport function __getitem__ (container, key) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ (key);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        return container [container.length + key];\n    }\n    else {\n        return container [key];\n    }\n};\nexport function __setitem__ (container, key, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ (key, value);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        container [container.length + key] = value;\n    }\n    else {\n        container [key] = value;\n    }\n};\nexport function __getslice__ (container, lower, upper, step) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ ([lower, upper, step]);\n    }\n    else {\n        return container.__getslice__ (lower, upper, step);\n    }\n};\nexport function __setslice__ (container, lower, upper, step, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ ([lower, upper, step], value);\n    }\n    else {\n        container.__setslice__ (lower, upper, step, value);\n    }\n};\nexport var BaseException =  __class__ ('BaseException', [object], {\n\t__module__: __name__,\n});\nexport var Exception =  __class__ ('Exception', [BaseException], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tvar kwargs = dict ();\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tdefault: kwargs [__attrib0__] = __allkwargs0__ [__attrib0__];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdelete kwargs.__kwargtrans__;\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.__args__ = args;\n\t\tif (kwargs.error != null) {\n\t\t\tself.stack = kwargs.error.stack;\n\t\t}\n\t\telse if (Error) {\n\t\t\tself.stack = new Error ().stack;\n\t\t}\n\t\telse {\n\t\t\tself.stack = 'No stack trace available';\n\t\t}\n\t});},\n\tget __repr__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]));\n\t\t}\n\t\telse {\n\t\t\treturn '{}()'.format (self.__class__.__name__);\n\t\t}\n\t});},\n\tget __str__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn str (tuple (self.__args__));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn str (self.__args__ [0]);\n\t\t}\n\t\telse {\n\t\t\treturn '';\n\t\t}\n\t});}\n});\nexport var IterableError =  __class__ ('IterableError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, \"Can't iterate over non-iterable\", __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var StopIteration =  __class__ ('StopIteration', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, 'Iterator exhausted', __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var ValueError =  __class__ ('ValueError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var KeyError =  __class__ ('KeyError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AssertionError =  __class__ ('AssertionError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tif (message) {\n\t\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t\t}\n\t\telse {\n\t\t\tException.__init__ (self, __kwargtrans__ ({error: error}));\n\t\t}\n\t});}\n});\nexport var NotImplementedError =  __class__ ('NotImplementedError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var IndexError =  __class__ ('IndexError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AttributeError =  __class__ ('AttributeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var py_TypeError =  __class__ ('py_TypeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var Warning =  __class__ ('Warning', [Exception], {\n\t__module__: __name__,\n});\nexport var UserWarning =  __class__ ('UserWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var DeprecationWarning =  __class__ ('DeprecationWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var RuntimeWarning =  __class__ ('RuntimeWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var __sort__ = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (key) {\n\t\titerable.sort ((function __lambda__ (a, b) {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\t\tcase 'a': var a = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t\tcase 'b': var b = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\treturn (key (a) > key (b) ? 1 : -(1));\n\t\t}));\n\t}\n\telse {\n\t\titerable.sort ();\n\t}\n\tif (reverse) {\n\t\titerable.reverse ();\n\t}\n};\nexport var sorted = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (py_typeof (iterable) == dict) {\n\t\tvar result = copy (iterable.py_keys ());\n\t}\n\telse {\n\t\tvar result = copy (iterable);\n\t}\n\t__sort__ (result, key, reverse);\n\treturn result;\n};\nexport var map = function (func, iterable) {\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\t__accu0__.append (func (item));\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var filter = function (func, iterable) {\n\tif (func == null) {\n\t\tvar func = bool;\n\t}\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\tif (func (item)) {\n\t\t\t\t__accu0__.append (item);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var divmod = function (n, d) {\n\treturn tuple ([Math.floor (n / d), __mod__ (n, d)]);\n};\nexport var __Terminal__ =  __class__ ('__Terminal__', [object], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tself.buffer = '';\n\t\ttry {\n\t\t\tself.element = document.getElementById ('__terminal__');\n\t\t}\n\t\tcatch (__except0__) {\n\t\t\tself.element = null;\n\t\t}\n\t\tif (self.element) {\n\t\t\tself.element.style.overflowX = 'auto';\n\t\t\tself.element.style.boxSizing = 'border-box';\n\t\t\tself.element.style.padding = '5px';\n\t\t\tself.element.innerHTML = '_';\n\t\t}\n\t});},\n\tget print () {return __get__ (this, function (self) {\n\t\tvar sep = ' ';\n\t\tvar end = '\\n';\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'sep': var sep = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'end': var end = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.buffer = '{}{}{}'.format (self.buffer, sep.join ((function () {\n\t\t\tvar __accu0__ = [];\n\t\t\tfor (var arg of args) {\n\t\t\t\t__accu0__.append (str (arg));\n\t\t\t}\n\t\t\treturn __accu0__;\n\t\t}) ()), end).__getslice__ (-(4096), null, 1);\n\t\tif (self.element) {\n\t\t\tself.element.innerHTML = self.buffer.py_replace ('\\n', '<br>').py_replace (' ', '&nbsp');\n\t\t\tself.element.scrollTop = self.element.scrollHeight;\n\t\t}\n\t\telse {\n\t\t\tconsole.log (sep.join ((function () {\n\t\t\t\tvar __accu0__ = [];\n\t\t\t\tfor (var arg of args) {\n\t\t\t\t\t__accu0__.append (str (arg));\n\t\t\t\t}\n\t\t\t\treturn __accu0__;\n\t\t\t}) ()));\n\t\t}\n\t});},\n\tget input () {return __get__ (this, function (self, question) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'question': var question = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.print ('{}'.format (question), __kwargtrans__ ({end: ''}));\n\t\tvar answer = window.prompt ('\\n'.join (self.buffer.py_split ('\\n').__getslice__ (-(8), null, 1)));\n\t\tself.print (answer);\n\t\treturn answer;\n\t});}\n});\nexport var __terminal__ = __Terminal__ ();\nexport var print = __terminal__.print;\nexport var input = __terminal__.input;\n\n//# sourceMappingURL=org.transcrypt.__runtime__.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_006/target/org.transcrypt.__runtime__.py",
    "content": "# Transcrypt runtime module\r\n\r\n#__pragma__ ('js', 'export var __envir__ = {{}};\\n{}', __include__ ('org/transcrypt/__envir__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__core__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__builtin__.js'))\r\n\r\n#__pragma__ ('skip')\r\ncopy = Math = __typeof__ = __repr__ = document = console = window = 0\r\n#__pragma__ ('noskip')\r\n\r\n#__pragma__ ('notconv')  # !!! tconv gives a problem with __terminal__, needs investigation\r\n#__pragma__ ('nokwargs')\r\n#__pragma__ ('noalias', 'sort')\r\n\r\nclass BaseException:\r\n    pass\r\n\r\nclass Exception (BaseException):\r\n    #__pragma__ ('kwargs')\r\n    def __init__ (self, *args, **kwargs):\r\n        self.__args__ = args\r\n        if kwargs.error != None:\r\n            self.stack = kwargs.error.stack # Integrate with JavaScript Error object\r\n        elif Error:\r\n            self.stack = (__new__(Error())).stack # Create our own stack if we aren't given one\r\n        else:\r\n            self.stack = 'No stack trace available'\r\n    #__pragma__ ('nokwargs')\r\n        \r\n    def __repr__ (self):\r\n        if len (self.__args__) > 1:\r\n            return '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)))\r\n        elif len (self.__args__):\r\n            return '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]))        \r\n        else:\r\n            return '{}()'.format (self.__class__.__name__)\r\n            \r\n    def __str__ (self):\r\n        if len (self.__args__) > 1:\r\n            return str (tuple (self.__args__))\r\n        elif len (self.__args__):\r\n            return str (self.__args__ [0])\r\n        else:\r\n            return ''\r\n        \r\nclass IterableError (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Can\\'t iterate over non-iterable', error = error)\r\n            \r\nclass StopIteration (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Iterator exhausted', error = error)\r\n        \r\nclass ValueError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass KeyError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass AssertionError (Exception):\r\n    def __init__ (self, message, error):\r\n        if message:\r\n            Exception.__init__ (self, message, error = error)\r\n        else:\r\n            Exception.__init__ (self, error = error)\r\n\r\nclass NotImplementedError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass IndexError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass AttributeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass TypeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\n# Warnings Exceptions\r\n# N.B. This is a limited subset of the warnings defined in\r\n# the cpython implementation to keep things small for now.\r\n\r\nclass Warning (Exception):\r\n    ''' Warning Base Class\r\n    '''\r\n    pass\r\n\r\nclass UserWarning (Warning):\r\n    pass\r\n\r\nclass DeprecationWarning (Warning):\r\n    pass\r\n\r\nclass RuntimeWarning (Warning):\r\n    pass\r\n    \r\n#__pragma__ ('kwargs')\r\n\r\ndef __sort__ (iterable, key = None, reverse = False):               # Used by py_sort, can deal with kwargs\r\n    if key:\r\n        iterable.sort (lambda a, b: 1 if key (a) > key (b) else -1) # JavaScript sort, case '==' is irrelevant for sorting\r\n    else:\r\n        iterable.sort ()                                            # JavaScript sort\r\n        \r\n    if reverse:\r\n        iterable.reverse ()\r\n        \r\ndef sorted (iterable, key = None, reverse = False):\r\n    if type (iterable) == dict:\r\n        result = copy (iterable.keys ()) \r\n    else:       \r\n        result = copy (iterable)\r\n        \r\n    __sort__ (result, key, reverse)\r\n    return result\r\n\r\n#__pragma__ ('nokwargs')\r\n\r\ndef map (func, iterable):\r\n    return [func (item) for item in iterable]\r\n\r\n\r\ndef filter (func, iterable):\r\n    if func == None:\r\n        func = bool\r\n    return [item for item in iterable if func (item)]\r\n    \r\ndef divmod (n, d):\r\n    return n // d, n % d\r\n    \r\n#__pragma__ ('ifdef', '__complex__')\r\n\r\nclass complex:\r\n    def __init__ (self, real, imag = None):\r\n        if imag == None:\r\n            if type (real) == complex:\r\n                self.real = real.real\r\n                self.imag = real.imag\r\n            else:\r\n                self.real = real\r\n                self.imag = 0\r\n        else:\r\n            self.real = real\r\n            self.imag = imag\r\n            \r\n    def __neg__ (self):\r\n        return complex (-self.real, -self.imag)\r\n        \r\n    def __exp__ (self):\r\n        modulus = Math.exp (self.real)\r\n        return complex (modulus * Math.cos (self.imag), modulus * Math.sin (self.imag))\r\n    \r\n    def __log__ (self):\r\n        return complex (Math.log (Math.sqrt (self.real * self.real + self.imag * self.imag)), Math.atan2 (self.imag, self.real))\r\n        \r\n    def __pow__ (self, other):  # a ** b = exp (b log a)\r\n        return (self.__log__ () .__mul__ (other)) .__exp__ ()\r\n        \r\n    def __rpow__ (self, real):  # real ** comp -> comp.__rpow__ (real)\r\n        return self.__mul__ (Math.log (real)) .__exp__ ()\r\n        \r\n    def __mul__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real * other, self.imag * other)\r\n        else:\r\n            return complex (self.real * other.real - self.imag * other.imag, self.real * other.imag + self.imag * other.real)\r\n        \r\n    def __rmul__ (self, real):  # real + comp -> comp.__rmul__ (real)\r\n        return complex (self.real * real, self.imag * real)\r\n        \r\n    def __div__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real / other, self.imag / other)\r\n        else:\r\n            denom = other.real * other.real + other.imag * other.imag\r\n            return complex (\r\n                (self.real * other.real + self.imag * other.imag) / denom,\r\n                (self.imag * other.real - self.real * other.imag) / denom\r\n            )\r\n        \r\n    def __rdiv__ (self, real):  # real / comp -> comp.__rdiv__ (real)\r\n        denom = self.real * self.real\r\n        return complex (\r\n            (real * self.real) / denom,\r\n            (real * self.imag) / denom\r\n        )\r\n        \r\n    def __add__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real + other, self.imag)\r\n        else:   # Assume other is complex\r\n            return complex (self.real + other.real, self.imag + other.imag)\r\n        \r\n    def __radd__ (self, real):  # real + comp -> comp.__radd__ (real)\r\n        return complex (self.real + real, self.imag)\r\n        \r\n    def __sub__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real - other, self.imag)\r\n        else:\r\n            return complex (self.real - other.real, self.imag - other.imag)\r\n        \r\n    def __rsub__ (self, real):  # real - comp -> comp.__rsub__ (real)\r\n        return complex (real - self.real, -self.imag)\r\n        \r\n    def __repr__ (self):\r\n        return '({}{}{}j)'.format (self.real, '+' if self.imag >= 0 else '', self.imag)\r\n            \r\n    def __str__ (self):\r\n        return __repr__ (self) [1 : -1]\r\n        \r\n    def __eq__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real == other\r\n        else:\r\n            return self.real == other.real and self.imag == other.imag\r\n        \r\n    def __ne__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real != other\r\n        else:\r\n            return self.real != other.real or self.imag != other.imag\r\n        \r\n    def conjugate (self):\r\n        return complex (self.real, -self.imag)\r\n        \r\ndef __conj__ (aNumber):\r\n    if isinstance (aNumber, complex):\r\n        return complex (aNumber.real, -aNumber.imag)\r\n    else:\r\n        return complex (aNumber, 0)\r\n        \r\n#__pragma__ ('endif')\r\n\r\nclass __Terminal__:\r\n    '''\r\n    Printing to either the console or to html happens async, but is blocked by calling window.prompt.\r\n    So while all input and print statements are encountered in normal order, the print's exit immediately without yet having actually printed\r\n    This means the next input takes control, blocking actual printing and so on indefinitely\r\n    The effect is that everything's only printed after all inputs are done\r\n    To prevent that, what's needed is to only execute the next window.prompt after actual printing has been done\r\n    Since we've no way to find out when that is, a timeout is used.\r\n    '''\r\n\r\n    def __init__ (self):\r\n        self.buffer = ''\r\n    \r\n        try:\r\n            self.element = document.getElementById ('__terminal__')\r\n        except:\r\n            self.element = None\r\n            \r\n        if self.element:\r\n            self.element.style.overflowX = 'auto'\r\n            self.element.style.boxSizing = 'border-box'\r\n            self.element.style.padding = '5px'\r\n            self.element.innerHTML = '_'\r\n        \r\n    #__pragma__ ('kwargs')\r\n        \r\n    def print (self, *args, sep = ' ', end = '\\n'):\r\n        self.buffer = '{}{}{}'.format (self.buffer, sep.join ([str (arg) for arg in args]), end) [-4096 : ] \r\n        \r\n        if self.element:\r\n            self.element.innerHTML = self.buffer.replace ('\\n', '<br>') .replace (' ', '&nbsp')\r\n            self.element.scrollTop = self.element.scrollHeight\r\n        else:\r\n            console.log (sep.join ([str (arg) for arg in args]))\r\n        \r\n    def input (self, question):\r\n        self.print ('{}'.format (question), end = '')\r\n        answer = window.prompt ('\\n'.join (self.buffer.split ('\\n') [-8:]))\r\n        self.print (answer)\r\n        return answer\r\n        \r\n    #__pragma__ ('nokwargs')\r\n    \r\n__terminal__ = __Terminal__ ()\r\n\r\nprint = __terminal__.print\r\ninput = __terminal__.input\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_006/target/pyp5js.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:14\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {PythonFunctions} from './python_functions.js';\nvar __name__ = 'pyp5js';\nexport var _P5_INSTANCE = null;\nexport var _CTX_MIDDLE = null;\nexport var _DEFAULT_FILL = null;\nexport var _DEFAULT_LEADMULT = null;\nexport var _DEFAULT_STROKE = null;\nexport var _DEFAULT_TEXT_FILL = null;\nexport var ADD = null;\nexport var ALT = null;\nexport var ARROW = null;\nexport var AUDIO = null;\nexport var AUTO = null;\nexport var AXES = null;\nexport var BACKSPACE = null;\nexport var BASELINE = null;\nexport var BEVEL = null;\nexport var BEZIER = null;\nexport var BLEND = null;\nexport var BLUR = null;\nexport var BOLD = null;\nexport var BOLDITALIC = null;\nexport var BOTTOM = null;\nexport var BURN = null;\nexport var CENTER = null;\nexport var CHORD = null;\nexport var CLAMP = null;\nexport var CLOSE = null;\nexport var CONTROL = null;\nexport var CORNER = null;\nexport var CORNERS = null;\nexport var CROSS = null;\nexport var CURVE = null;\nexport var DARKEST = null;\nexport var DEG_TO_RAD = null;\nexport var DEGREES = null;\nexport var DELETE = null;\nexport var DIFFERENCE = null;\nexport var DILATE = null;\nexport var DODGE = null;\nexport var DOWN_ARROW = null;\nexport var ENTER = null;\nexport var ERODE = null;\nexport var ESCAPE = null;\nexport var EXCLUSION = null;\nexport var FILL = null;\nexport var GRAY = null;\nexport var GRID = null;\nexport var HALF_PI = null;\nexport var HAND = null;\nexport var HARD_LIGHT = null;\nexport var HSB = null;\nexport var HSL = null;\nexport var IMAGE = null;\nexport var IMMEDIATE = null;\nexport var INVERT = null;\nexport var ITALIC = null;\nexport var LANDSCAPE = null;\nexport var LEFT = null;\nexport var LEFT_ARROW = null;\nexport var LIGHTEST = null;\nexport var LINE_LOOP = null;\nexport var LINE_STRIP = null;\nexport var LINEAR = null;\nexport var LINES = null;\nexport var MIRROR = null;\nexport var MITER = null;\nexport var MOVE = null;\nexport var MULTIPLY = null;\nexport var NEAREST = null;\nexport var NORMAL = null;\nexport var OPAQUE = null;\nexport var OPEN = null;\nexport var OPTION = null;\nexport var OVERLAY = null;\nexport var PI = null;\nexport var PIE = null;\nexport var POINTS = null;\nexport var PORTRAIT = null;\nexport var POSTERIZE = null;\nexport var PROJECT = null;\nexport var QUAD_STRIP = null;\nexport var QUADRATIC = null;\nexport var QUADS = null;\nexport var QUARTER_PI = null;\nexport var RAD_TO_DEG = null;\nexport var RADIANS = null;\nexport var RADIUS = null;\nexport var REPEAT = null;\nexport var REPLACE = null;\nexport var RETURN = null;\nexport var RGB = null;\nexport var RIGHT = null;\nexport var RIGHT_ARROW = null;\nexport var ROUND = null;\nexport var SCREEN = null;\nexport var SHIFT = null;\nexport var SOFT_LIGHT = null;\nexport var SQUARE = null;\nexport var STROKE = null;\nexport var SUBTRACT = null;\nexport var TAB = null;\nexport var TAU = null;\nexport var TEXT = null;\nexport var TEXTURE = null;\nexport var THRESHOLD = null;\nexport var TOP = null;\nexport var TRIANGLE_FAN = null;\nexport var TRIANGLE_STRIP = null;\nexport var TRIANGLES = null;\nexport var TWO_PI = null;\nexport var UP_ARROW = null;\nexport var VIDEO = null;\nexport var WAIT = null;\nexport var WEBGL = null;\nexport var P2D = null;\nvar PI = null;\nexport var frameCount = null;\nexport var focused = null;\nexport var displayWidth = null;\nexport var displayHeight = null;\nexport var windowWidth = null;\nexport var windowHeight = null;\nexport var width = null;\nexport var height = null;\nexport var disableFriendlyErrors = null;\nexport var deviceOrientation = null;\nexport var accelerationX = null;\nexport var accelerationY = null;\nexport var accelerationZ = null;\nexport var pAccelerationX = null;\nexport var pAccelerationY = null;\nexport var pAccelerationZ = null;\nexport var rotationX = null;\nexport var rotationY = null;\nexport var rotationZ = null;\nexport var pRotationX = null;\nexport var pRotationY = null;\nexport var pRotationZ = null;\nexport var turnAxis = null;\nexport var keyIsPressed = null;\nexport var key = null;\nexport var keyCode = null;\nexport var mouseX = null;\nexport var mouseY = null;\nexport var pmouseX = null;\nexport var pmouseY = null;\nexport var winMouseX = null;\nexport var winMouseY = null;\nexport var pwinMouseX = null;\nexport var pwinMouseY = null;\nexport var mouseButton = null;\nexport var mouseIsPressed = null;\nexport var touches = null;\nexport var pixels = null;\nexport var alpha = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.alpha (...args);\n};\nexport var blue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blue (...args);\n};\nexport var brightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.brightness (...args);\n};\nexport var color = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.color (...args);\n};\nexport var green = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.green (...args);\n};\nexport var hue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hue (...args);\n};\nexport var lerpColor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerpColor (...args);\n};\nexport var lightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lightness (...args);\n};\nexport var red = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.red (...args);\n};\nexport var saturation = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saturation (...args);\n};\nexport var background = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.background (...args);\n};\nexport var py_clear = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_clear = _P5_INSTANCE.clear (...args);\n\treturn p5_clear;\n};\nexport var erase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.erase (...args);\n};\nexport var noErase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noErase (...args);\n};\nexport var colorMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.colorMode (...args);\n};\nexport var fill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fill (...args);\n};\nexport var noFill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noFill (...args);\n};\nexport var noStroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noStroke (...args);\n};\nexport var stroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.stroke (...args);\n};\nexport var arc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arc (...args);\n};\nexport var ellipse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipse (...args);\n};\nexport var circle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.circle (...args);\n};\nexport var line = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.line (...args);\n};\nexport var point = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.point (...args);\n};\nexport var quad = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quad (...args);\n};\nexport var rect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rect (...args);\n};\nexport var square = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.square (...args);\n};\nexport var triangle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.triangle (...args);\n};\nexport var plane = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.plane (...args);\n};\nexport var box = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.box (...args);\n};\nexport var sphere = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sphere (...args);\n};\nexport var cylinder = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cylinder (...args);\n};\nexport var cone = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cone (...args);\n};\nexport var ellipsoid = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipsoid (...args);\n};\nexport var torus = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.torus (...args);\n};\nexport var loadModel = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadModel (...args);\n};\nexport var model = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.model (...args);\n};\nexport var ellipseMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipseMode (...args);\n};\nexport var noSmooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noSmooth (...args);\n};\nexport var rectMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rectMode (...args);\n};\nexport var smooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.smooth (...args);\n};\nexport var strokeCap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeCap (...args);\n};\nexport var strokeJoin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeJoin (...args);\n};\nexport var strokeWeight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeWeight (...args);\n};\nexport var bezier = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezier (...args);\n};\nexport var bezierDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierDetail (...args);\n};\nexport var bezierPoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierPoint (...args);\n};\nexport var bezierTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierTangent (...args);\n};\nexport var curve = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curve (...args);\n};\nexport var curveDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveDetail (...args);\n};\nexport var curveTightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTightness (...args);\n};\nexport var curvePoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curvePoint (...args);\n};\nexport var curveTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTangent (...args);\n};\nexport var beginContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginContour (...args);\n};\nexport var beginShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginShape (...args);\n};\nexport var bezierVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierVertex (...args);\n};\nexport var curveVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveVertex (...args);\n};\nexport var endContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endContour (...args);\n};\nexport var endShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endShape (...args);\n};\nexport var quadraticVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quadraticVertex (...args);\n};\nexport var vertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.vertex (...args);\n};\nexport var cursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cursor (...args);\n};\nexport var frameRate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.frameRate (...args);\n};\nexport var noCursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCursor (...args);\n};\nexport var fullscreen = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fullscreen (...args);\n};\nexport var pixelDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pixelDensity (...args);\n};\nexport var displayDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.displayDensity (...args);\n};\nexport var getURL = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURL (...args);\n};\nexport var getURLPath = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLPath (...args);\n};\nexport var getURLParams = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLParams (...args);\n};\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.preload (...args);\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setup (...args);\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.draw (...args);\n};\nexport var remove = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.remove (...args);\n};\nexport var noLoop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noLoop (...args);\n};\nexport var loop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loop (...args);\n};\nexport var push = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.push (...args);\n};\nexport var redraw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.redraw (...args);\n};\nexport var resizeCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resizeCanvas (...args);\n};\nexport var noCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCanvas (...args);\n};\nexport var createGraphics = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createGraphics (...args);\n};\nexport var blendMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blendMode (...args);\n};\nexport var setAttributes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setAttributes (...args);\n};\nexport var applyMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.applyMatrix (...args);\n};\nexport var resetMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetMatrix (...args);\n};\nexport var rotate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotate (...args);\n};\nexport var rotateX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateX (...args);\n};\nexport var rotateY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateY (...args);\n};\nexport var rotateZ = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateZ (...args);\n};\nexport var scale = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.scale (...args);\n};\nexport var shearX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearX (...args);\n};\nexport var shearY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearY (...args);\n};\nexport var translate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.translate (...args);\n};\nexport var createStringDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createStringDict (...args);\n};\nexport var createNumberDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createNumberDict (...args);\n};\nexport var append = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.append (...args);\n};\nexport var arrayCopy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arrayCopy (...args);\n};\nexport var concat = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.concat (...args);\n};\nexport var reverse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.reverse (...args);\n};\nexport var shorten = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shorten (...args);\n};\nexport var shuffle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shuffle (...args);\n};\nexport var py_sort = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_sort (...args);\n};\nexport var splice = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splice (...args);\n};\nexport var subset = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.subset (...args);\n};\nexport var float = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.float (...args);\n};\nexport var int = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.int (...args);\n};\nexport var str = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.str (...args);\n};\nexport var boolean = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.boolean (...args);\n};\nexport var byte = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.byte (...args);\n};\nexport var char = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.char (...args);\n};\nexport var unchar = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unchar (...args);\n};\nexport var hex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hex (...args);\n};\nexport var unhex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unhex (...args);\n};\nexport var join = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.join (...args);\n};\nexport var match = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.match (...args);\n};\nexport var matchAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.matchAll (...args);\n};\nexport var nf = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nf (...args);\n};\nexport var nfc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfc (...args);\n};\nexport var nfp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfp (...args);\n};\nexport var nfs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfs (...args);\n};\nexport var py_split = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_split (...args);\n};\nexport var splitTokens = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splitTokens (...args);\n};\nexport var trim = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.trim (...args);\n};\nexport var setMoveThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setMoveThreshold (...args);\n};\nexport var setShakeThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setShakeThreshold (...args);\n};\nexport var keyIsDown = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.keyIsDown (...args);\n};\nexport var createImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImage (...args);\n};\nexport var saveCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveCanvas (...args);\n};\nexport var saveFrames = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveFrames (...args);\n};\nexport var image_proxy = function (img) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'img': var img = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar _set = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.set (...args);\n\t\treturn value;\n\t};\n\tvar _get = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.get (...args);\n\t\treturn value;\n\t};\n\timg.py_set = _set;\n\timg.py_get = _get;\n\treturn img;\n};\nexport var loadImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar imageObj = _P5_INSTANCE.loadImage (...args);\n\treturn image_proxy (imageObj);\n};\nexport var image = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.image (...args);\n};\nexport var tint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tint (...args);\n};\nexport var noTint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noTint (...args);\n};\nexport var imageMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.imageMode (...args);\n};\nexport var blend = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blend (...args);\n};\nexport var copy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.copy (...args);\n};\nexport var filter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && (args [0] === null || callable (args [0]))) {\n\t\treturn PythonFunctions.filter (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.filter (...args);\n\t}\n};\nexport var py_get = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_get = _P5_INSTANCE.get (...args);\n\treturn p5_get;\n};\nexport var loadPixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadPixels (...args);\n};\nexport var py_set = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) <= 1) {\n\t\treturn PythonFunctions.py_set (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.py_set (...args);\n\t}\n};\nexport var updatePixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.updatePixels (...args);\n};\nexport var loadJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadJSON (...args);\n};\nexport var loadStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadStrings (...args);\n};\nexport var loadTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadTable (...args);\n};\nexport var loadXML = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadXML (...args);\n};\nexport var loadBytes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadBytes (...args);\n};\nexport var httpGet = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpGet (...args);\n};\nexport var httpPost = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpPost (...args);\n};\nexport var httpDo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpDo (...args);\n};\nexport var createWriter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createWriter (...args);\n};\nexport var save = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.save (...args);\n};\nexport var saveJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveJSON (...args);\n};\nexport var saveStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveStrings (...args);\n};\nexport var saveTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveTable (...args);\n};\nexport var day = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.day (...args);\n};\nexport var hour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hour (...args);\n};\nexport var minute = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.minute (...args);\n};\nexport var millis = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.millis (...args);\n};\nexport var month = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.month (...args);\n};\nexport var second = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.second (...args);\n};\nexport var year = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.year (...args);\n};\nexport var createVector = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVector (...args);\n};\nexport var abs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.abs (...args);\n};\nexport var ceil = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ceil (...args);\n};\nexport var constrain = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.constrain (...args);\n};\nexport var dist = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.dist (...args);\n};\nexport var exp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.exp (...args);\n};\nexport var floor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.floor (...args);\n};\nexport var lerp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerp (...args);\n};\nexport var log = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.log (...args);\n};\nexport var mag = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.mag (...args);\n};\nexport var map = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && callable (args [0])) {\n\t\treturn PythonFunctions.map (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.map (...args);\n\t}\n};\nexport var max = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.max (...args);\n};\nexport var min = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.min (...args);\n};\nexport var norm = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.norm (...args);\n};\nexport var pow = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pow (...args);\n};\nexport var round = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.round (...args);\n};\nexport var sq = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sq (...args);\n};\nexport var sqrt = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sqrt (...args);\n};\nexport var noise = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noise (...args);\n};\nexport var noiseDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseDetail (...args);\n};\nexport var noiseSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseSeed (...args);\n};\nexport var randomSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomSeed (...args);\n};\nexport var random = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.random (...args);\n};\nexport var randomGaussian = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomGaussian (...args);\n};\nexport var acos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.acos (...args);\n};\nexport var asin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.asin (...args);\n};\nexport var atan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan (...args);\n};\nexport var atan2 = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan2 (...args);\n};\nexport var cos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cos (...args);\n};\nexport var sin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sin (...args);\n};\nexport var tan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tan (...args);\n};\nexport var degrees = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.degrees (...args);\n};\nexport var radians = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.radians (...args);\n};\nexport var angleMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.angleMode (...args);\n};\nexport var textAlign = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAlign (...args);\n};\nexport var textLeading = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textLeading (...args);\n};\nexport var textSize = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textSize (...args);\n};\nexport var textStyle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textStyle (...args);\n};\nexport var textWidth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textWidth (...args);\n};\nexport var textAscent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAscent (...args);\n};\nexport var textDescent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textDescent (...args);\n};\nexport var loadFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadFont (...args);\n};\nexport var text = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.text (...args);\n};\nexport var textFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textFont (...args);\n};\nexport var orbitControl = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.orbitControl (...args);\n};\nexport var debugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.debugMode (...args);\n};\nexport var noDebugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noDebugMode (...args);\n};\nexport var ambientLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientLight (...args);\n};\nexport var directionalLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.directionalLight (...args);\n};\nexport var pointLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pointLight (...args);\n};\nexport var lights = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lights (...args);\n};\nexport var loadShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadShader (...args);\n};\nexport var createShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createShader (...args);\n};\nexport var shader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shader (...args);\n};\nexport var resetShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetShader (...args);\n};\nexport var normalMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.normalMaterial (...args);\n};\nexport var texture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.texture (...args);\n};\nexport var textureMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureMode (...args);\n};\nexport var textureWrap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureWrap (...args);\n};\nexport var ambientMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientMaterial (...args);\n};\nexport var specularMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.specularMaterial (...args);\n};\nexport var shininess = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shininess (...args);\n};\nexport var camera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.camera (...args);\n};\nexport var perspective = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.perspective (...args);\n};\nexport var ortho = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ortho (...args);\n};\nexport var createCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCamera (...args);\n};\nexport var setCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setCamera (...args);\n};\nexport var select = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.select (...args);\n};\nexport var selectAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.selectAll (...args);\n};\nexport var removeElements = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.removeElements (...args);\n};\nexport var changed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.changed (...args);\n};\nexport var input = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.input (...args);\n};\nexport var createDiv = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createDiv (...args);\n};\nexport var createP = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createP (...args);\n};\nexport var createSpan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSpan (...args);\n};\nexport var createImg = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImg (...args);\n};\nexport var createA = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createA (...args);\n};\nexport var createSlider = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSlider (...args);\n};\nexport var createButton = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createButton (...args);\n};\nexport var createCheckbox = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCheckbox (...args);\n};\nexport var createSelect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSelect (...args);\n};\nexport var createRadio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createRadio (...args);\n};\nexport var createColorPicker = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createColorPicker (...args);\n};\nexport var createInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createInput (...args);\n};\nexport var createFileInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createFileInput (...args);\n};\nexport var createVideo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVideo (...args);\n};\nexport var createAudio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createAudio (...args);\n};\nexport var createCapture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCapture (...args);\n};\nexport var createElement = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createElement (...args);\n};\nexport var createCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar canvas = _P5_INSTANCE.createCanvas (...args);\n\twidth = _P5_INSTANCE.width;\n\theight = _P5_INSTANCE.height;\n\treturn canvas;\n};\nexport var py_pop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_pop = _P5_INSTANCE.pop (...args);\n\treturn p5_pop;\n};\nexport var size = createCanvas;\nexport var popMatrix = py_pop;\nexport var popStyle = py_pop;\nexport var pushMatrix = push;\nexport var pushStyle = push;\nexport var PVector = function (x, y, z) {\n\tif (typeof x == 'undefined' || (x != null && x.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar x = 0;\n\t};\n\tif (typeof y == 'undefined' || (y != null && y.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar y = 0;\n\t};\n\tif (typeof z == 'undefined' || (z != null && z.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar z = 0;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'z': var z = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn _P5_INSTANCE.createVector (x, y, z);\n};\nsetattr (PVector, 'dist', p5.Vector.dist);\nsetattr (PVector, 'add', p5.Vector.add);\nsetattr (PVector, 'sub', p5.Vector.sub);\nsetattr (PVector, 'mult', p5.Vector.mult);\nsetattr (PVector, 'div', p5.Vector.div);\nsetattr (PVector, 'dot', p5.Vector.dot);\nsetattr (PVector, 'cross', p5.Vector.cross);\nsetattr (PVector, 'lerp', p5.Vector.lerp);\nsetattr (PVector, 'random2D', p5.Vector.random2D);\nsetattr (PVector, 'random3D', p5.Vector.random3D);\nsetattr (PVector, 'angleBetween', p5.Vector.angleBetween);\nsetattr (PVector, 'fromAngle', p5.Vector.fromAngle);\nsetattr (PVector, 'fromAngles', p5.Vector.fromAngles);\nsetattr (PVector, 'equals', p5.Vector.equals);\nexport var pre_draw = function (p5_instance, draw_func) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_instance': var p5_instance = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t_CTX_MIDDLE = p5_instance._CTX_MIDDLE;\n\t_DEFAULT_FILL = p5_instance._DEFAULT_FILL;\n\t_DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT;\n\t_DEFAULT_STROKE = p5_instance._DEFAULT_STROKE;\n\t_DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL;\n\tADD = p5_instance.ADD;\n\tALT = p5_instance.ALT;\n\tARROW = p5_instance.ARROW;\n\tAUDIO = p5_instance.AUDIO;\n\tAUTO = p5_instance.AUTO;\n\tAXES = p5_instance.AXES;\n\tBACKSPACE = p5_instance.BACKSPACE;\n\tBASELINE = p5_instance.BASELINE;\n\tBEVEL = p5_instance.BEVEL;\n\tBEZIER = p5_instance.BEZIER;\n\tBLEND = p5_instance.BLEND;\n\tBLUR = p5_instance.BLUR;\n\tBOLD = p5_instance.BOLD;\n\tBOLDITALIC = p5_instance.BOLDITALIC;\n\tBOTTOM = p5_instance.BOTTOM;\n\tBURN = p5_instance.BURN;\n\tCENTER = p5_instance.CENTER;\n\tCHORD = p5_instance.CHORD;\n\tCLAMP = p5_instance.CLAMP;\n\tCLOSE = p5_instance.CLOSE;\n\tCONTROL = p5_instance.CONTROL;\n\tCORNER = p5_instance.CORNER;\n\tCORNERS = p5_instance.CORNERS;\n\tCROSS = p5_instance.CROSS;\n\tCURVE = p5_instance.CURVE;\n\tDARKEST = p5_instance.DARKEST;\n\tDEG_TO_RAD = p5_instance.DEG_TO_RAD;\n\tDEGREES = p5_instance.DEGREES;\n\tDELETE = p5_instance.DELETE;\n\tDIFFERENCE = p5_instance.DIFFERENCE;\n\tDILATE = p5_instance.DILATE;\n\tDODGE = p5_instance.DODGE;\n\tDOWN_ARROW = p5_instance.DOWN_ARROW;\n\tENTER = p5_instance.ENTER;\n\tERODE = p5_instance.ERODE;\n\tESCAPE = p5_instance.ESCAPE;\n\tEXCLUSION = p5_instance.EXCLUSION;\n\tFILL = p5_instance.FILL;\n\tGRAY = p5_instance.GRAY;\n\tGRID = p5_instance.GRID;\n\tHALF_PI = p5_instance.HALF_PI;\n\tHAND = p5_instance.HAND;\n\tHARD_LIGHT = p5_instance.HARD_LIGHT;\n\tHSB = p5_instance.HSB;\n\tHSL = p5_instance.HSL;\n\tIMAGE = p5_instance.IMAGE;\n\tIMMEDIATE = p5_instance.IMMEDIATE;\n\tINVERT = p5_instance.INVERT;\n\tITALIC = p5_instance.ITALIC;\n\tLANDSCAPE = p5_instance.LANDSCAPE;\n\tLEFT = p5_instance.LEFT;\n\tLEFT_ARROW = p5_instance.LEFT_ARROW;\n\tLIGHTEST = p5_instance.LIGHTEST;\n\tLINE_LOOP = p5_instance.LINE_LOOP;\n\tLINE_STRIP = p5_instance.LINE_STRIP;\n\tLINEAR = p5_instance.LINEAR;\n\tLINES = p5_instance.LINES;\n\tMIRROR = p5_instance.MIRROR;\n\tMITER = p5_instance.MITER;\n\tMOVE = p5_instance.MOVE;\n\tMULTIPLY = p5_instance.MULTIPLY;\n\tNEAREST = p5_instance.NEAREST;\n\tNORMAL = p5_instance.NORMAL;\n\tOPAQUE = p5_instance.OPAQUE;\n\tOPEN = p5_instance.OPEN;\n\tOPTION = p5_instance.OPTION;\n\tOVERLAY = p5_instance.OVERLAY;\n\tP2D = p5_instance.P2D;\n\tvar P3D = p5_instance.WEBGL;\n\tPI = p5_instance.PI;\n\tPIE = p5_instance.PIE;\n\tPOINTS = p5_instance.POINTS;\n\tPORTRAIT = p5_instance.PORTRAIT;\n\tPOSTERIZE = p5_instance.POSTERIZE;\n\tPROJECT = p5_instance.PROJECT;\n\tQUAD_STRIP = p5_instance.QUAD_STRIP;\n\tQUADRATIC = p5_instance.QUADRATIC;\n\tQUADS = p5_instance.QUADS;\n\tQUARTER_PI = p5_instance.QUARTER_PI;\n\tRAD_TO_DEG = p5_instance.RAD_TO_DEG;\n\tRADIANS = p5_instance.RADIANS;\n\tRADIUS = p5_instance.RADIUS;\n\tREPEAT = p5_instance.REPEAT;\n\tREPLACE = p5_instance.REPLACE;\n\tRETURN = p5_instance.RETURN;\n\tRGB = p5_instance.RGB;\n\tRIGHT = p5_instance.RIGHT;\n\tRIGHT_ARROW = p5_instance.RIGHT_ARROW;\n\tROUND = p5_instance.ROUND;\n\tSCREEN = p5_instance.SCREEN;\n\tSHIFT = p5_instance.SHIFT;\n\tSOFT_LIGHT = p5_instance.SOFT_LIGHT;\n\tSQUARE = p5_instance.SQUARE;\n\tSTROKE = p5_instance.STROKE;\n\tSUBTRACT = p5_instance.SUBTRACT;\n\tTAB = p5_instance.TAB;\n\tTAU = p5_instance.TAU;\n\tTEXT = p5_instance.TEXT;\n\tTEXTURE = p5_instance.TEXTURE;\n\tTHRESHOLD = p5_instance.THRESHOLD;\n\tTOP = p5_instance.TOP;\n\tTRIANGLE_FAN = p5_instance.TRIANGLE_FAN;\n\tTRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP;\n\tTRIANGLES = p5_instance.TRIANGLES;\n\tTWO_PI = p5_instance.TWO_PI;\n\tUP_ARROW = p5_instance.UP_ARROW;\n\tVIDEO = p5_instance.VIDEO;\n\tWAIT = p5_instance.WAIT;\n\tWEBGL = p5_instance.WEBGL;\n\tframeCount = p5_instance.frameCount;\n\tfocused = p5_instance.focused;\n\tdisplayWidth = p5_instance.displayWidth;\n\tdisplayHeight = p5_instance.displayHeight;\n\twindowWidth = p5_instance.windowWidth;\n\twindowHeight = p5_instance.windowHeight;\n\twidth = p5_instance.width;\n\theight = p5_instance.height;\n\tdisableFriendlyErrors = p5_instance.disableFriendlyErrors;\n\tdeviceOrientation = p5_instance.deviceOrientation;\n\taccelerationX = p5_instance.accelerationX;\n\taccelerationY = p5_instance.accelerationY;\n\taccelerationZ = p5_instance.accelerationZ;\n\tpAccelerationX = p5_instance.pAccelerationX;\n\tpAccelerationY = p5_instance.pAccelerationY;\n\tpAccelerationZ = p5_instance.pAccelerationZ;\n\trotationX = p5_instance.rotationX;\n\trotationY = p5_instance.rotationY;\n\trotationZ = p5_instance.rotationZ;\n\tpRotationX = p5_instance.pRotationX;\n\tpRotationY = p5_instance.pRotationY;\n\tpRotationZ = p5_instance.pRotationZ;\n\tturnAxis = p5_instance.turnAxis;\n\tkeyIsPressed = p5_instance.keyIsPressed;\n\tkey = p5_instance.key;\n\tkeyCode = p5_instance.keyCode;\n\tmouseX = p5_instance.mouseX;\n\tmouseY = p5_instance.mouseY;\n\tpmouseX = p5_instance.pmouseX;\n\tpmouseY = p5_instance.pmouseY;\n\twinMouseX = p5_instance.winMouseX;\n\twinMouseY = p5_instance.winMouseY;\n\tpwinMouseX = p5_instance.pwinMouseX;\n\tpwinMouseY = p5_instance.pwinMouseY;\n\tmouseButton = p5_instance.mouseButton;\n\tmouseIsPressed = p5_instance.mouseIsPressed;\n\ttouches = p5_instance.touches;\n\tpixels = p5_instance.pixels;\n\treturn draw_func ();\n};\nexport var global_p5_injection = function (p5_sketch) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar decorator = function (f) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'f': var f = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar wrapper = function () {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\t_P5_INSTANCE = p5_sketch;\n\t\t\treturn pre_draw (_P5_INSTANCE, f);\n\t\t};\n\t\treturn wrapper;\n\t};\n\treturn decorator;\n};\nexport var start_p5 = function (preload_func, setup_func, draw_func, event_functions) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'preload_func': var preload_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'setup_func': var setup_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'event_functions': var event_functions = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar sketch_setup = function (p5_sketch) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tp5_sketch.preload = global_p5_injection (p5_sketch) (preload_func);\n\t\tp5_sketch.setup = global_p5_injection (p5_sketch) (setup_func);\n\t\tp5_sketch.draw = global_p5_injection (p5_sketch) (draw_func);\n\t};\n\tvar instance = new p5 (sketch_setup, 'sketch-holder');\n\tvar event_function_names = tuple (['deviceMoved', 'deviceTurned', 'deviceShaken', 'windowResized', 'keyPressed', 'keyReleased', 'keyTyped', 'mousePressed', 'mouseReleased', 'mouseClicked', 'doubleClicked', 'mouseMoved', 'mouseDragged', 'mouseWheel', 'touchStarted', 'touchMoved', 'touchEnded', 'keyIsDown']);\n\tfor (var f_name of (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var f of event_function_names) {\n\t\t\tif (event_functions.py_get (f, null)) {\n\t\t\t\t__accu0__.append (f);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ()) {\n\t\tvar func = event_functions [f_name];\n\t\tvar event_func = global_p5_injection (instance) (func);\n\t\tsetattr (instance, f_name, event_func);\n\t}\n};\nexport var logOnloaded = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tconsole.log ('Lib loaded!');\n};\nexport var add_library = function (lib_name) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'lib_name': var lib_name = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar src = '';\n\treturn console.log ('Lib name is not valid:', lib_name);\n\tconsole.log ('Importing:', src);\n\tvar script = document.createElement ('script');\n\tscript.onload = logOnloaded;\n\tscript.src = src;\n\tdocument.head.appendChild (script);\n};\n\n//# sourceMappingURL=pyp5js.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_006/target/pyp5js.py",
    "content": "from python_functions import PythonFunctions\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndisableFriendlyErrors = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    __pragma__('noalias', 'clear')\n    p5_clear = _P5_INSTANCE.clear(*args)\n    __pragma__('alias', 'clear', 'py_clear')\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef preload(*args):\n    return _P5_INSTANCE.preload(*args)\n\ndef setup(*args):\n    return _P5_INSTANCE.setup(*args)\n\ndef draw(*args):\n    return _P5_INSTANCE.draw(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\n\ndef image_proxy(img):\n    \"\"\"\n    Proxy to turn of transcypt when calling img.get/set methods\n    \"\"\"\n\n    def _set(*args):\n        __pragma__('noalias', 'set')\n        value = img.set(*args)\n        __pragma__('alias', 'set', 'py_set')\n        return value\n\n    def _get(*args):\n        __pragma__('noalias', 'get')\n        value = img.get(*args)\n        __pragma__('alias', 'get', 'py_get')\n        return value\n\n    img.set = _set\n    img.get = _get\n    return img\n\n\ndef loadImage(*args):\n    imageObj = _P5_INSTANCE.loadImage(*args)\n    return image_proxy(imageObj)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    __pragma__('noalias', 'get')\n    p5_get = _P5_INSTANCE.get(*args)\n    __pragma__('alias', 'get', 'py_get')\n    return p5_get\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\n\ndef pop(*args):\n    __pragma__('noalias', 'pop')\n    p5_pop = _P5_INSTANCE.pop(*args)\n    __pragma__('alias', 'pop', 'py_pop')\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a helper/alias to create p5.Vector objects\ndef PVector(x=0, y=0, z=0):\n    return _P5_INSTANCE.createVector(x, y, z)\n# aliases  for p5.Vector class methods\nsetattr(PVector, 'dist', p5.Vector.dist)\nsetattr(PVector, 'add', p5.Vector.add)\nsetattr(PVector, 'sub', p5.Vector.sub)\nsetattr(PVector, 'mult', p5.Vector.mult)\nsetattr(PVector, 'div', p5.Vector.div)\nsetattr(PVector, 'dot', p5.Vector.dot)\nsetattr(PVector, 'cross', p5.Vector.cross)\nsetattr(PVector, 'lerp', p5.Vector.lerp)\nsetattr(PVector, 'random2D', p5.Vector.random2D)\nsetattr(PVector, 'random3D', p5.Vector.random3D)\nsetattr(PVector, 'angleBetween', p5.Vector.angleBetween)\nsetattr(PVector, 'fromAngle', p5.Vector.fromAngle)\nsetattr(PVector, 'fromAngles', p5.Vector.fromAngles)\nsetattr(PVector, 'equals', p5.Vector.equals)\n\ndef pre_draw(p5_instance, draw_func):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP, QUADRATIC\n    global QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global disableFriendlyErrors, deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    disableFriendlyErrors = p5_instance.disableFriendlyErrors\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func()\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f):\n        def wrapper():\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: a Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    instance = __new__(p5(sketch_setup, 'sketch-holder'))\n\n    # inject event functions into p5\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\"\n    )\n\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(instance)(func)\n        setattr(instance, f_name, event_func)\n\n\ndef logOnloaded():\n    console.log(\"Lib loaded!\")\n\n\ndef add_library(lib_name):\n    # placeholder for https://github.com/berinhard/pyp5js/issues/31\n    src = ''\n\n    return console.log(\"Lib name is not valid:\", lib_name)\n\n    console.log(\"Importing:\", src)\n\n    script = document.createElement(\"script\")\n    script.onload = logOnloaded\n    script.src = src\n    document.head.appendChild(script)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_006/target/python_functions.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:14\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, pow, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nvar __name__ = 'python_functions';\nexport var PythonFunctions =  __class__ ('PythonFunctions', [object], {\n\t__module__: __name__,\n});\nsetattr (PythonFunctions, 'map', map);\nsetattr (PythonFunctions, 'filter', filter);\nsetattr (PythonFunctions, 'set', set);\n\n//# sourceMappingURL=python_functions.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_006/target/python_functions.py",
    "content": "class PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_006/target/target_sketch.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:14\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, set, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {ADD, ALT, ARROW, AUDIO, AUTO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC, BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST, DEGREES, DEG_TO_RAD, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION, FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE, LEFT, LEFT_ARROW, LIGHTEST, LINEAR, LINES, LINE_LOOP, LINE_STRIP, MIRROR, MITER, MOVE, MULTIPLY, NEAREST, NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, PVector, QUADRATIC, QUADS, QUAD_STRIP, QUARTER_PI, RADIANS, RADIUS, RAD_TO_DEG, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW, ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL, _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL, _P5_INSTANCE, abs, accelerationX, accelerationY, accelerationZ, acos, add_library, alpha, ambientLight, ambientMaterial, angleMode, append, applyMatrix, arc, arrayCopy, asin, atan, atan2, background, beginContour, beginShape, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, blend, blendMode, blue, boolean, box, brightness, byte, camera, ceil, changed, char, circle, color, colorMode, concat, cone, constrain, copy, cos, createA, createAudio, createButton, createCamera, createCanvas, createCapture, createCheckbox, createColorPicker, createDiv, createElement, createFileInput, createGraphics, createImage, createImg, createInput, createNumberDict, createP, createRadio, createSelect, createShader, createSlider, createSpan, createStringDict, createVector, createVideo, createWriter, cursor, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, cylinder, day, debugMode, degrees, deviceOrientation, directionalLight, disableFriendlyErrors, displayDensity, displayHeight, displayWidth, dist, ellipse, ellipseMode, ellipsoid, endContour, endShape, erase, exp, fill, filter, float, floor, focused, frameCount, frameRate, fullscreen, getURL, getURLParams, getURLPath, global_p5_injection, green, height, hex, hour, httpDo, httpGet, httpPost, hue, image, imageMode, image_proxy, input, int, join, key, keyCode, keyIsPressed, lerp, lerpColor, lightness, lights, line, loadBytes, loadFont, loadImage, loadJSON, loadModel, loadPixels, loadShader, loadStrings, loadTable, loadXML, log, logOnloaded, loop, mag, map, match, matchAll, max, millis, min, minute, model, month, mouseButton, mouseIsPressed, mouseX, mouseY, nf, nfc, nfp, nfs, noCanvas, noCursor, noDebugMode, noErase, noFill, noLoop, noSmooth, noStroke, noTint, noise, noiseDetail, noiseSeed, norm, normalMaterial, orbitControl, ortho, pAccelerationX, pAccelerationY, pAccelerationZ, pRotationX, pRotationY, pRotationZ, perspective, pixelDensity, pixels, plane, pmouseX, pmouseY, point, pointLight, popMatrix, popStyle, pow, pre_draw, push, pushMatrix, pushStyle, pwinMouseX, pwinMouseY, py_clear, py_get, py_pop, py_set, py_sort, py_split, quad, quadraticVertex, radians, random, randomGaussian, randomSeed, rect, rectMode, red, redraw, remove, removeElements, resetMatrix, resetShader, resizeCanvas, reverse, rotate, rotateX, rotateY, rotateZ, rotationX, rotationY, rotationZ, round, saturation, save, saveCanvas, saveFrames, saveJSON, saveStrings, saveTable, scale, second, select, selectAll, setAttributes, setCamera, setMoveThreshold, setShakeThreshold, shader, shearX, shearY, shininess, shorten, shuffle, sin, size, smooth, specularMaterial, sphere, splice, splitTokens, sq, sqrt, square, start_p5, str, stroke, strokeCap, strokeJoin, strokeWeight, subset, tan, text, textAlign, textAscent, textDescent, textFont, textLeading, textSize, textStyle, textWidth, texture, textureMode, textureWrap, tint, torus, touches, translate, triangle, trim, turnAxis, unchar, unhex, updatePixels, vertex, width, winMouseX, winMouseY, windowHeight, windowWidth, year} from './pyp5js.js';\nvar __name__ = '__main__';\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var deviceMoved = null;\nexport var deviceTurned = null;\nexport var deviceShaken = null;\nexport var keyPressed = null;\nexport var keyReleased = null;\nexport var keyTyped = null;\nexport var mouseMoved = null;\nexport var mouseDragged = null;\nexport var mousePressed = null;\nexport var mouseReleased = null;\nexport var mouseClicked = null;\nexport var doubleClicked = null;\nexport var mouseWheel = null;\nexport var touchStarted = null;\nexport var touchMoved = null;\nexport var touchEnded = null;\nexport var windowResized = null;\nexport var keyIsDown = null;\nexport var r = null;\nvar setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tcreateCanvas (900, 900);\n\tr = random (100, 700);\n\tnoFill ();\n};\nvar draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar __left0__ = tuple ([100, 100]);\n\tvar x = __left0__ [0];\n\tvar y = __left0__ [1];\n\trect (x, y, r, r);\n};\nvar keyPressed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tconsole.log ('Key pressed event');\n\tif (key == 'n') {\n\t\tr = random (100, 700);\n\t\tredraw ();\n\t}\n};\nvar mouseDragged = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tr = random (100, 700);\n\tredraw ();\n};\nexport var event_functions = dict ({'deviceMoved': deviceMoved, 'deviceTurned': deviceTurned, 'deviceShaken': deviceShaken, 'keyPressed': keyPressed, 'keyReleased': keyReleased, 'keyTyped': keyTyped, 'mouseMoved': mouseMoved, 'mouseDragged': mouseDragged, 'mousePressed': mousePressed, 'mouseReleased': mouseReleased, 'mouseClicked': mouseClicked, 'doubleClicked': doubleClicked, 'mouseWheel': mouseWheel, 'touchStarted': touchStarted, 'touchMoved': touchMoved, 'touchEnded': touchEnded, 'windowResized': windowResized, 'keyIsDown': keyIsDown});\nstart_p5 (preload, setup, draw, event_functions);\n\n//# sourceMappingURL=target_sketch.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_006/target/target_sketch.project",
    "content": "{\"options\": {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_006/target_sketch.py\", \"anno\": false, \"alimod\": false, \"build\": true, \"complex\": false, \"docat\": false, \"dassert\": false, \"dcheck\": false, \"dextex\": false, \"dlog\": false, \"dmap\": false, \"dnostrip\": false, \"dstat\": false, \"dtree\": false, \"esv\": null, \"ecom\": false, \"fcall\": false, \"gen\": false, \"iconv\": false, \"jscall\": false, \"jskeys\": false, \"jsmod\": false, \"kwargs\": true, \"keycheck\": false, \"license\": false, \"map\": true, \"nomin\": true, \"opov\": false, \"outdir\": null, \"parent\": null, \"run\": false, \"symbols\": null, \"sform\": false, \"tconv\": false, \"unit\": null, \"verbose\": false, \"x\": null, \"xreex\": false, \"xglobs\": false, \"xpath\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt\", \"xtiny\": false, \"star\": false}, \"modules\": [{\"source\": \"/home/bernardo/.pyenv/versions/pyp5js/lib/python3.8/site-packages/transcrypt/modules/org/transcrypt/__runtime__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_006/__target__/org.transcrypt.__runtime__.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_006/target_sketch.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_006/__target__/target_sketch.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/pyp5js.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_006/__target__/pyp5js.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/python_functions.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_006/__target__/python_functions.js\"}]}"
  },
  {
    "path": "docs/examples/transcrypt/sketch_006/target/target_sketch.py",
    "content": "from pyp5js import *\n\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\nkeyIsDown = None\n\n\nr = None\ndef setup():\n    global r\n\n    createCanvas(900, 900)\n    r = random(100, 700)\n    noFill()\n\n\ndef draw():\n    x, y = 100, 100\n    rect(x, y, r, r)\n\n\ndef keyPressed():\n    console.log(\"Key pressed event\")\n\n    if key == \"n\":\n        global r\n        r = random(100, 700)\n        redraw()\n\n\ndef mouseDragged():\n    global r\n    r = random(100, 700)\n    redraw()\n\n\n\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n    \"keyIsDown\": keyIsDown,\n}\n\nstart_p5(preload, setup, draw, event_functions)"
  },
  {
    "path": "docs/examples/transcrypt/sketch_007/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_007 - pyp5js (using Transcrypt)</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/transcrypt/sketch_007\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre>\n             <code>\ndef setup():\n    createCanvas(900, 900)\n    stroke(27, 27, 27, 10)\n    strokeWeight(2)\n\n\ndef draw():\n    push()\n\n    translate(width / 2, height / 2)\n    v = p5.Vector.random2D()\n    v.normalize()\n    v.mult(random(100, 400))\n    line(0, 0, v.x, v.y)\n\n    pop()\n\n              </code>\n          </pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/transcrypt/sketch_007/sketch_007.py",
    "content": "def setup():\n    createCanvas(900, 900)\n    stroke(27, 27, 27, 10)\n    strokeWeight(2)\n\n\ndef draw():\n    push()\n\n    translate(width / 2, height / 2)\n    v = p5.Vector.random2D()\n    v.normalize()\n    v.mult(random(100, 400))\n    line(0, 0, v.x, v.y)\n\n    pop()\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_007/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/transcrypt/sketch_007/target/org.transcrypt.__runtime__.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:15\nvar __name__ = 'org.transcrypt.__runtime__';\nexport var __envir__ = {};\n__envir__.interpreter_name = 'python';\n__envir__.transpiler_name = 'transcrypt';\n__envir__.executor_name = __envir__.transpiler_name;\n__envir__.transpiler_version = '3.9.0';\n\nexport function __nest__ (headObject, tailNames, value) {\n    var current = headObject;\n    if (tailNames != '') {\n        var tailChain = tailNames.split ('.');\n        var firstNewIndex = tailChain.length;\n        for (var index = 0; index < tailChain.length; index++) {\n            if (!current.hasOwnProperty (tailChain [index])) {\n                firstNewIndex = index;\n                break;\n            }\n            current = current [tailChain [index]];\n        }\n        for (var index = firstNewIndex; index < tailChain.length; index++) {\n            current [tailChain [index]] = {};\n            current = current [tailChain [index]];\n        }\n    }\n    for (let attrib of Object.getOwnPropertyNames (value)) {\n        Object.defineProperty (current, attrib, {\n            get () {return value [attrib];},\n            enumerable: true,\n            configurable: true\n        });\n    }\n};\nexport function __init__ (module) {\n    if (!module.__inited__) {\n        module.__all__.__init__ (module.__all__);\n        module.__inited__ = true;\n    }\n    return module.__all__;\n};\nexport function __get__ (aThis, func, quotedFuncName) {\n    if (aThis) {\n        if (aThis.hasOwnProperty ('__class__') || typeof aThis == 'string' || aThis instanceof String) {\n            if (quotedFuncName) {\n                Object.defineProperty (aThis, quotedFuncName, {\n                    value: function () {\n                        var args = [] .slice.apply (arguments);\n                        return func.apply (null, [aThis] .concat (args));\n                    },\n                    writable: true,\n                    enumerable: true,\n                    configurable: true\n                });\n            }\n            return function () {\n                var args = [] .slice.apply (arguments);\n                return func.apply (null, [aThis.__proxy__ ? aThis.__proxy__ : aThis] .concat (args));\n            };\n        }\n        else {\n            return func;\n        }\n    }\n    else {\n        return func;\n    }\n};\nexport function __getcm__ (aThis, func, quotedFuncName) {\n    if (aThis.hasOwnProperty ('__class__')) {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis.__class__] .concat (args));\n        };\n    }\n    else {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis] .concat (args));\n        };\n    }\n};\nexport function __getsm__ (aThis, func, quotedFuncName) {\n    return func;\n};\nexport var py_metatype = {\n    __name__: 'type',\n    __bases__: [],\n    __new__: function (meta, name, bases, attribs) {\n        var cls = function () {\n            var args = [] .slice.apply (arguments);\n            return cls.__new__ (args);\n        };\n        for (var index = bases.length - 1; index >= 0; index--) {\n            var base = bases [index];\n            for (var attrib in base) {\n                var descrip = Object.getOwnPropertyDescriptor (base, attrib);\n                if (descrip == null) {\n                    continue;\n                }\n                Object.defineProperty (cls, attrib, descrip);\n            }\n            for (let symbol of Object.getOwnPropertySymbols (base)) {\n                let descrip = Object.getOwnPropertyDescriptor (base, symbol);\n                Object.defineProperty (cls, symbol, descrip);\n            }\n        }\n        cls.__metaclass__ = meta;\n        cls.__name__ = name.startsWith ('py_') ? name.slice (3) : name;\n        cls.__bases__ = bases;\n        for (var attrib in attribs) {\n            var descrip = Object.getOwnPropertyDescriptor (attribs, attrib);\n            Object.defineProperty (cls, attrib, descrip);\n        }\n        for (let symbol of Object.getOwnPropertySymbols (attribs)) {\n            let descrip = Object.getOwnPropertyDescriptor (attribs, symbol);\n            Object.defineProperty (cls, symbol, descrip);\n        }\n        return cls;\n    }\n};\npy_metatype.__metaclass__ = py_metatype;\nexport var object = {\n    __init__: function (self) {},\n    __metaclass__: py_metatype,\n    __name__: 'object',\n    __bases__: [],\n    __new__: function (args) {\n        var instance = Object.create (this, {__class__: {value: this, enumerable: true}});\n        if ('__getattr__' in this || '__setattr__' in this) {\n            instance.__proxy__ = new Proxy (instance, {\n                get: function (target, name) {\n                    let result = target [name];\n                    if (result == undefined) {\n                        return target.__getattr__ (name);\n                    }\n                    else {\n                        return result;\n                    }\n                },\n                set: function (target, name, value) {\n                    try {\n                        target.__setattr__ (name, value);\n                    }\n                    catch (exception) {\n                        target [name] = value;\n                    }\n                    return true;\n                }\n            })\n\t\t\tinstance = instance.__proxy__\n        }\n        this.__init__.apply (null, [instance] .concat (args));\n        return instance;\n    }\n};\nexport function __class__ (name, bases, attribs, meta) {\n    if (meta === undefined) {\n        meta = bases [0] .__metaclass__;\n    }\n    return meta.__new__ (meta, name, bases, attribs);\n};\nexport function __pragma__ () {};\nexport function __call__ (/* <callee>, <this>, <params>* */) {\n    var args = [] .slice.apply (arguments);\n    if (typeof args [0] == 'object' && '__call__' in args [0]) {\n        return args [0] .__call__ .apply (args [1], args.slice (2));\n    }\n    else {\n        return args [0] .apply (args [1], args.slice (2));\n    }\n};\n__envir__.executor_name = __envir__.transpiler_name;\nvar __main__ = {__file__: ''};\nvar __except__ = null;\nexport function __kwargtrans__ (anObject) {\n    anObject.__kwargtrans__ = null;\n    anObject.constructor = Object;\n    return anObject;\n}\nexport function __super__ (aClass, methodName) {\n    for (let base of aClass.__bases__) {\n        if (methodName in base) {\n           return base [methodName];\n        }\n    }\n    throw new Exception ('Superclass method not found');\n}\nexport function property (getter, setter) {\n    if (!setter) {\n        setter = function () {};\n    }\n    return {get: function () {return getter (this)}, set: function (value) {setter (this, value)}, enumerable: true};\n}\nexport function __setproperty__ (anObject, name, descriptor) {\n    if (!anObject.hasOwnProperty (name)) {\n        Object.defineProperty (anObject, name, descriptor);\n    }\n}\nexport function assert (condition, message) {\n    if (!condition) {\n        throw AssertionError (message, new Error ());\n    }\n}\nexport function __mergekwargtrans__ (object0, object1) {\n    var result = {};\n    for (var attrib in object0) {\n        result [attrib] = object0 [attrib];\n    }\n    for (var attrib in object1) {\n        result [attrib] = object1 [attrib];\n    }\n    return result;\n};\nexport function __mergefields__ (targetClass, sourceClass) {\n    let fieldNames = ['__reprfields__', '__comparefields__', '__initfields__']\n    if (sourceClass [fieldNames [0]]) {\n        if (targetClass [fieldNames [0]]) {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set ([...targetClass [fieldName], ...sourceClass [fieldName]]);\n            }\n        }\n        else {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set (sourceClass [fieldName]);\n            }\n        }\n    }\n}\nexport function __withblock__ (manager, statements) {\n    if (hasattr (manager, '__enter__')) {\n        try {\n            manager.__enter__ ();\n            statements ();\n            manager.__exit__ ();\n        }\n        catch (exception) {\n            if (! (manager.__exit__ (exception.name, exception, exception.stack))) {\n                throw exception;\n            }\n        }\n    }\n    else {\n        statements ();\n        manager.close ();\n    }\n};\nexport function dir (obj) {\n    var aList = [];\n    for (var aKey in obj) {\n        aList.push (aKey.startsWith ('py_') ? aKey.slice (3) : aKey);\n    }\n    aList.sort ();\n    return aList;\n};\nexport function setattr (obj, name, value) {\n    obj [name] = value;\n};\nexport function getattr (obj, name) {\n    return name in obj ? obj [name] : obj ['py_' + name];\n};\nexport function hasattr (obj, name) {\n    try {\n        return name in obj || 'py_' + name in obj;\n    }\n    catch (exception) {\n        return false;\n    }\n};\nexport function delattr (obj, name) {\n    if (name in obj) {\n        delete obj [name];\n    }\n    else {\n        delete obj ['py_' + name];\n    }\n};\nexport function __in__ (element, container) {\n    if (container === undefined || container === null) {\n        return false;\n    }\n    if (container.__contains__ instanceof Function) {\n        return container.__contains__ (element);\n    }\n    else {\n        return (\n            container.indexOf ?\n            container.indexOf (element) > -1 :\n            container.hasOwnProperty (element)\n        );\n    }\n};\nexport function __specialattrib__ (attrib) {\n    return (attrib.startswith ('__') && attrib.endswith ('__')) || attrib == 'constructor' || attrib.startswith ('py_');\n};\nexport function len (anObject) {\n    if (anObject === undefined || anObject === null) {\n        return 0;\n    }\n    if (anObject.__len__ instanceof Function) {\n        return anObject.__len__ ();\n    }\n    if (anObject.length !== undefined) {\n        return anObject.length;\n    }\n    var length = 0;\n    for (var attr in anObject) {\n        if (!__specialattrib__ (attr)) {\n            length++;\n        }\n    }\n    return length;\n};\nexport function __i__ (any) {\n    return py_typeof (any) == dict ? any.py_keys () : any;\n}\nexport function __k__ (keyed, key) {\n    var result = keyed [key];\n    if (typeof result == 'undefined') {\n        if (keyed instanceof Array)\n            if (key == +key && key >= 0 && keyed.length > key)\n                return result;\n            else\n                throw IndexError (key, new Error());\n        else\n            throw KeyError (key, new Error());\n    }\n    return result;\n}\nexport function __t__ (target) {\n    return (\n        target === undefined || target === null ? false :\n        ['boolean', 'number'] .indexOf (typeof target) >= 0 ? target :\n        target.__bool__ instanceof Function ? (target.__bool__ () ? target : false) :\n        target.__len__ instanceof Function ?  (target.__len__ () !== 0 ? target : false) :\n        target instanceof Function ? target :\n        len (target) !== 0 ? target :\n        false\n    );\n}\nexport function float (any) {\n    if (any == 'inf') {\n        return Infinity;\n    }\n    else if (any == '-inf') {\n        return -Infinity;\n    }\n    else if (any == 'nan') {\n        return NaN;\n    }\n    else if (isNaN (parseFloat (any))) {\n        if (any === false) {\n            return 0;\n        }\n        else if (any === true) {\n            return 1;\n        }\n        else {\n            throw ValueError (\"could not convert string to float: '\" + str(any) + \"'\", new Error ());\n        }\n    }\n    else {\n        return +any;\n    }\n};\nfloat.__name__ = 'float';\nfloat.__bases__ = [object];\nexport function int (any) {\n    return float (any) | 0\n};\nint.__name__ = 'int';\nint.__bases__ = [object];\nexport function bool (any) {\n    return !!__t__ (any);\n};\nbool.__name__ = 'bool';\nbool.__bases__ = [int];\nexport function py_typeof (anObject) {\n    var aType = typeof anObject;\n    if (aType == 'object') {\n        try {\n            return '__class__' in anObject ? anObject.__class__ : object;\n        }\n        catch (exception) {\n            return aType;\n        }\n    }\n    else {\n        return (\n            aType == 'boolean' ? bool :\n            aType == 'string' ? str :\n            aType == 'number' ? (anObject % 1 == 0 ? int : float) :\n            null\n        );\n    }\n};\nexport function issubclass (aClass, classinfo) {\n    if (classinfo instanceof Array) {\n        for (let aClass2 of classinfo) {\n            if (issubclass (aClass, aClass2)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    try {\n        var aClass2 = aClass;\n        if (aClass2 == classinfo) {\n            return true;\n        }\n        else {\n            var bases = [].slice.call (aClass2.__bases__);\n            while (bases.length) {\n                aClass2 = bases.shift ();\n                if (aClass2 == classinfo) {\n                    return true;\n                }\n                if (aClass2.__bases__.length) {\n                    bases = [].slice.call (aClass2.__bases__).concat (bases);\n                }\n            }\n            return false;\n        }\n    }\n    catch (exception) {\n        return aClass == classinfo || classinfo == object;\n    }\n};\nexport function isinstance (anObject, classinfo) {\n    try {\n        return '__class__' in anObject ? issubclass (anObject.__class__, classinfo) : issubclass (py_typeof (anObject), classinfo);\n    }\n    catch (exception) {\n        return issubclass (py_typeof (anObject), classinfo);\n    }\n};\nexport function callable (anObject) {\n    return anObject && typeof anObject == 'object' && '__call__' in anObject ? true : typeof anObject === 'function';\n};\nexport function repr (anObject) {\n    try {\n        return anObject.__repr__ ();\n    }\n    catch (exception) {\n        try {\n            return anObject.__str__ ();\n        }\n        catch (exception) {\n            try {\n                if (anObject == null) {\n                    return 'None';\n                }\n                else if (anObject.constructor == Object) {\n                    var result = '{';\n                    var comma = false;\n                    for (var attrib in anObject) {\n                        if (!__specialattrib__ (attrib)) {\n                            if (attrib.isnumeric ()) {\n                                var attribRepr = attrib;\n                            }\n                            else {\n                                var attribRepr = '\\'' + attrib + '\\'';\n                            }\n                            if (comma) {\n                                result += ', ';\n                            }\n                            else {\n                                comma = true;\n                            }\n                            result += attribRepr + ': ' + repr (anObject [attrib]);\n                        }\n                    }\n                    result += '}';\n                    return result;\n                }\n                else {\n                    return typeof anObject == 'boolean' ? anObject.toString () .capitalize () : anObject.toString ();\n                }\n            }\n            catch (exception) {\n                return '<object of type: ' + typeof anObject + '>';\n            }\n        }\n    }\n};\nexport function chr (charCode) {\n    return String.fromCharCode (charCode);\n};\nexport function ord (aChar) {\n    return aChar.charCodeAt (0);\n};\nexport function max (nrOrSeq) {\n    return arguments.length == 1 ? Math.max (...nrOrSeq) : Math.max (...arguments);\n};\nexport function min (nrOrSeq) {\n    return arguments.length == 1 ? Math.min (...nrOrSeq) : Math.min (...arguments);\n};\nexport var abs = Math.abs;\nexport function round (number, ndigits) {\n    if (ndigits) {\n        var scale = Math.pow (10, ndigits);\n        number *= scale;\n    }\n    var rounded = Math.round (number);\n    if (rounded - number == 0.5 && rounded % 2) {\n        rounded -= 1;\n    }\n    if (ndigits) {\n        rounded /= scale;\n    }\n    return rounded;\n};\nexport function __jsUsePyNext__ () {\n    try {\n        var result = this.__next__ ();\n        return {value: result, done: false};\n    }\n    catch (exception) {\n        return {value: undefined, done: true};\n    }\n}\nexport function __pyUseJsNext__ () {\n    var result = this.next ();\n    if (result.done) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result.value;\n    }\n}\nexport function py_iter (iterable) {\n    if (typeof iterable == 'string' || '__iter__' in iterable) {\n        var result = iterable.__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('selector' in iterable) {\n        var result = list (iterable) .__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('next' in iterable) {\n        var result = iterable\n        if (! ('__next__' in result)) {\n            result.__next__ = __pyUseJsNext__;\n        }\n    }\n    else if (Symbol.iterator in iterable) {\n        var result = iterable [Symbol.iterator] ();\n        result.__next__ = __pyUseJsNext__;\n    }\n    else {\n        throw IterableError (new Error ());\n    }\n    result [Symbol.iterator] = function () {return result;};\n    return result;\n}\nexport function py_next (iterator) {\n    try {\n        var result = iterator.__next__ ();\n    }\n    catch (exception) {\n        var result = iterator.next ();\n        if (result.done) {\n            throw StopIteration (new Error ());\n        }\n        else {\n            return result.value;\n        }\n    }\n    if (result == undefined) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result;\n    }\n}\nexport function __PyIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__PyIterator__.prototype.__next__ = function() {\n    if (this.index < this.iterable.length) {\n        return this.iterable [this.index++];\n    }\n    else {\n        throw StopIteration (new Error ());\n    }\n};\nexport function __JsIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__JsIterator__.prototype.next = function () {\n    if (this.index < this.iterable.py_keys.length) {\n        return {value: this.index++, done: false};\n    }\n    else {\n        return {value: undefined, done: true};\n    }\n};\nexport function py_reversed (iterable) {\n    iterable = iterable.slice ();\n    iterable.reverse ();\n    return iterable;\n};\nexport function zip () {\n    var args = [] .slice.call (arguments);\n    for (var i = 0; i < args.length; i++) {\n        if (typeof args [i] == 'string') {\n            args [i] = args [i] .split ('');\n        }\n        else if (!Array.isArray (args [i])) {\n            args [i] = Array.from (args [i]);\n        }\n    }\n    var shortest = args.length == 0 ? [] : args.reduce (\n        function (array0, array1) {\n            return array0.length < array1.length ? array0 : array1;\n        }\n    );\n    return shortest.map (\n        function (current, index) {\n            return args.map (\n                function (current) {\n                    return current [index];\n                }\n            );\n        }\n    );\n};\nexport function range (start, stop, step) {\n    if (stop == undefined) {\n        stop = start;\n        start = 0;\n    }\n    if (step == undefined) {\n        step = 1;\n    }\n    if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) {\n        return [];\n    }\n    var result = [];\n    for (var i = start; step > 0 ? i < stop : i > stop; i += step) {\n        result.push(i);\n    }\n    return result;\n};\nexport function any (iterable) {\n    for (let item of iterable) {\n        if (bool (item)) {\n            return true;\n        }\n    }\n    return false;\n}\nexport function all (iterable) {\n    for (let item of iterable) {\n        if (! bool (item)) {\n            return false;\n        }\n    }\n    return true;\n}\nexport function sum (iterable) {\n    let result = 0;\n    for (let item of iterable) {\n        result += item;\n    }\n    return result;\n}\nexport function enumerate (iterable) {\n    return zip (range (len (iterable)), iterable);\n}\nexport function copy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = anObject [attrib];\n            }\n        }\n        return result;\n    }\n}\nexport function deepcopy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = deepcopy (anObject [attrib]);\n            }\n        }\n        return result;\n    }\n}\nexport function list (iterable) {\n    let instance = iterable ? Array.from (iterable) : [];\n    return instance;\n}\nArray.prototype.__class__ = list;\nlist.__name__ = 'list';\nlist.__bases__ = [object];\nArray.prototype.__iter__ = function () {return new __PyIterator__ (this);};\nArray.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    else if (stop > this.length) {\n        stop = this.length;\n    }\n    if (step == 1) {\n        return Array.prototype.slice.call(this, start, stop);\n    }\n    let result = list ([]);\n    for (let index = start; index < stop; index += step) {\n        result.push (this [index]);\n    }\n    return result;\n};\nArray.prototype.__setslice__ = function (start, stop, step, source) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    if (step == null) {\n        Array.prototype.splice.apply (this, [start, stop - start] .concat (source));\n    }\n    else {\n        let sourceIndex = 0;\n        for (let targetIndex = start; targetIndex < stop; targetIndex += step) {\n            this [targetIndex] = source [sourceIndex++];\n        }\n    }\n};\nArray.prototype.__repr__ = function () {\n    if (this.__class__ == set && !this.length) {\n        return 'set()';\n    }\n    let result = !this.__class__ || this.__class__ == list ? '[' : this.__class__ == tuple ? '(' : '{';\n    for (let index = 0; index < this.length; index++) {\n        if (index) {\n            result += ', ';\n        }\n        result += repr (this [index]);\n    }\n    if (this.__class__ == tuple && this.length == 1) {\n        result += ',';\n    }\n    result += !this.__class__ || this.__class__ == list ? ']' : this.__class__ == tuple ? ')' : '}';;\n    return result;\n};\nArray.prototype.__str__ = Array.prototype.__repr__;\nArray.prototype.append = function (element) {\n    this.push (element);\n};\nArray.prototype.py_clear = function () {\n    this.length = 0;\n};\nArray.prototype.extend = function (aList) {\n    this.push.apply (this, aList);\n};\nArray.prototype.insert = function (index, element) {\n    this.splice (index, 0, element);\n};\nArray.prototype.remove = function (element) {\n    let index = this.indexOf (element);\n    if (index == -1) {\n        throw ValueError (\"list.remove(x): x not in list\", new Error ());\n    }\n    this.splice (index, 1);\n};\nArray.prototype.index = function (element) {\n    return this.indexOf (element);\n};\nArray.prototype.py_pop = function (index) {\n    if (index == undefined) {\n        return this.pop ();\n    }\n    else {\n        return this.splice (index, 1) [0];\n    }\n};\nArray.prototype.py_sort = function () {\n    __sort__.apply  (null, [this].concat ([] .slice.apply (arguments)));\n};\nArray.prototype.__add__ = function (aList) {\n    return list (this.concat (aList));\n};\nArray.prototype.__mul__ = function (scalar) {\n    let result = this;\n    for (let i = 1; i < scalar; i++) {\n        result = result.concat (this);\n    }\n    return result;\n};\nArray.prototype.__rmul__ = Array.prototype.__mul__;\nexport function tuple (iterable) {\n    let instance = iterable ? [] .slice.apply (iterable) : [];\n    instance.__class__ = tuple;\n    return instance;\n}\ntuple.__name__ = 'tuple';\ntuple.__bases__ = [object];\nexport function set (iterable) {\n    let instance = [];\n    if (iterable) {\n        for (let index = 0; index < iterable.length; index++) {\n            instance.add (iterable [index]);\n        }\n    }\n    instance.__class__ = set;\n    return instance;\n}\nset.__name__ = 'set';\nset.__bases__ = [object];\nArray.prototype.__bindexOf__ = function (element) {\n    element += '';\n    let mindex = 0;\n    let maxdex = this.length - 1;\n    while (mindex <= maxdex) {\n        let index = (mindex + maxdex) / 2 | 0;\n        let middle = this [index] + '';\n        if (middle < element) {\n            mindex = index + 1;\n        }\n        else if (middle > element) {\n            maxdex = index - 1;\n        }\n        else {\n            return index;\n        }\n    }\n    return -1;\n};\nArray.prototype.add = function (element) {\n    if (this.indexOf (element) == -1) {\n        this.push (element);\n    }\n};\nArray.prototype.discard = function (element) {\n    var index = this.indexOf (element);\n    if (index != -1) {\n        this.splice (index, 1);\n    }\n};\nArray.prototype.isdisjoint = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issuperset = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) == -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issubset = function (other) {\n    return set (other.slice ()) .issuperset (this);\n};\nArray.prototype.union = function (other) {\n    let result = set (this.slice () .sort ());\n    for (let i = 0; i < other.length; i++) {\n        if (result.__bindexOf__ (other [i]) == -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.intersection = function (other) {\n    this.sort ();\n    let result = set ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.difference = function (other) {\n    let sother = set (other.slice () .sort ());\n    let result = set ();\n    for (let i = 0; i < this.length; i++) {\n        if (sother.__bindexOf__ (this [i]) == -1) {\n            result.push (this [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.symmetric_difference = function (other) {\n    return this.union (other) .difference (this.intersection (other));\n};\nArray.prototype.py_update = function () {\n    let updated = [] .concat.apply (this.slice (), arguments) .sort ();\n    this.py_clear ();\n    for (let i = 0; i < updated.length; i++) {\n        if (updated [i] != updated [i - 1]) {\n            this.push (updated [i]);\n        }\n    }\n};\nArray.prototype.__eq__ = function (other) {\n    if (this.length != other.length) {\n        return false;\n    }\n    if (this.__class__ == set) {\n        this.sort ();\n        other.sort ();\n    }\n    for (let i = 0; i < this.length; i++) {\n        if (this [i] != other [i]) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.__ne__ = function (other) {\n    return !this.__eq__ (other);\n};\nArray.prototype.__le__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issubset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] > other [i]) {\n                return false;\n            }\n            else if (this [i] < other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__ge__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issuperset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] < other [i]) {\n                return false;\n            }\n            else if (this [i] > other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__lt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issubset (other) && !this.issuperset (other) :\n        !this.__ge__ (other)\n    );\n};\nArray.prototype.__gt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issuperset (other) && !this.issubset (other) :\n        !this.__le__ (other)\n    );\n};\nexport function bytearray (bytable, encoding) {\n    if (bytable == undefined) {\n        return new Uint8Array (0);\n    }\n    else {\n        let aType = py_typeof (bytable);\n        if (aType == int) {\n            return new Uint8Array (bytable);\n        }\n        else if (aType == str) {\n            let aBytes = new Uint8Array (len (bytable));\n            for (let i = 0; i < len (bytable); i++) {\n                aBytes [i] = bytable.charCodeAt (i);\n            }\n            return aBytes;\n        }\n        else if (aType == list || aType == tuple) {\n            return new Uint8Array (bytable);\n        }\n        else {\n            throw py_TypeError;\n        }\n    }\n}\nexport var bytes = bytearray;\nUint8Array.prototype.__add__ = function (aBytes) {\n    let result = new Uint8Array (this.length + aBytes.length);\n    result.set (this);\n    result.set (aBytes, this.length);\n    return result;\n};\nUint8Array.prototype.__mul__ = function (scalar) {\n    let result = new Uint8Array (scalar * this.length);\n    for (let i = 0; i < scalar; i++) {\n        result.set (this, i * this.length);\n    }\n    return result;\n};\nUint8Array.prototype.__rmul__ = Uint8Array.prototype.__mul__;\nexport function str (stringable) {\n    if (typeof stringable === 'number')\n        return stringable.toString();\n    else {\n        try {\n            return stringable.__str__ ();\n        }\n        catch (exception) {\n            try {\n                return repr (stringable);\n            }\n            catch (exception) {\n                return String (stringable);\n            }\n        }\n    }\n};\nString.prototype.__class__ = str;\nstr.__name__ = 'str';\nstr.__bases__ = [object];\nString.prototype.__iter__ = function () {new __PyIterator__ (this);};\nString.prototype.__repr__ = function () {\n    return (this.indexOf ('\\'') == -1 ? '\\'' + this + '\\'' : '\"' + this + '\"') .py_replace ('\\t', '\\\\t') .py_replace ('\\n', '\\\\n');\n};\nString.prototype.__str__ = function () {\n    return this;\n};\nString.prototype.capitalize = function () {\n    return this.charAt (0).toUpperCase () + this.slice (1);\n};\nString.prototype.endswith = function (suffix) {\n    if (suffix instanceof Array) {\n        for (var i=0;i<suffix.length;i++) {\n            if (this.slice (-suffix[i].length) == suffix[i])\n                return true;\n        }\n    } else\n        return suffix == '' || this.slice (-suffix.length) == suffix;\n    return false;\n};\nString.prototype.find = function (sub, start) {\n    return this.indexOf (sub, start);\n};\nString.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    var result = '';\n    if (step == 1) {\n        result = this.substring (start, stop);\n    }\n    else {\n        for (var index = start; index < stop; index += step) {\n            result = result.concat (this.charAt(index));\n        }\n    }\n    return result;\n};\n__setproperty__ (String.prototype, 'format', {\n    get: function () {return __get__ (this, function (self) {\n        var args = tuple ([] .slice.apply (arguments).slice (1));\n        var autoIndex = 0;\n        return self.replace (/\\{(\\w*)\\}/g, function (match, key) {\n            if (key == '') {\n                key = autoIndex++;\n            }\n            if (key == +key) {\n                return args [key] === undefined ? match : str (args [key]);\n            }\n            else {\n                for (var index = 0; index < args.length; index++) {\n                    if (typeof args [index] == 'object' && args [index][key] !== undefined) {\n                        return str (args [index][key]);\n                    }\n                }\n                return match;\n            }\n        });\n    });},\n    enumerable: true\n});\nString.prototype.isalnum = function () {\n    return /^[0-9a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isalpha = function () {\n    return /^[a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isdecimal = function () {\n    return /^[0-9]{1,}$/.test(this)\n}\nString.prototype.isdigit = function () {\n    return this.isdecimal()\n}\nString.prototype.islower = function () {\n    return /^[a-z]{1,}$/.test(this)\n}\nString.prototype.isupper = function () {\n    return /^[A-Z]{1,}$/.test(this)\n}\nString.prototype.isspace = function () {\n    return /^[\\s]{1,}$/.test(this)\n}\nString.prototype.isnumeric = function () {\n    return !isNaN (parseFloat (this)) && isFinite (this);\n};\nString.prototype.join = function (strings) {\n    strings = Array.from (strings);\n    return strings.join (this);\n};\nString.prototype.lower = function () {\n    return this.toLowerCase ();\n};\nString.prototype.py_replace = function (old, aNew, maxreplace) {\n    return this.split (old, maxreplace) .join (aNew);\n};\nString.prototype.lstrip = function () {\n    return this.replace (/^\\s*/g, '');\n};\nString.prototype.rfind = function (sub, start) {\n    return this.lastIndexOf (sub, start);\n};\nString.prototype.rsplit = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            var maxrsplit = result.length - maxsplit;\n            return [result.slice (0, maxrsplit) .join (sep)] .concat (result.slice (maxrsplit));\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.rstrip = function () {\n    return this.replace (/\\s*$/g, '');\n};\nString.prototype.py_split = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            return result.slice (0, maxsplit).concat ([result.slice (maxsplit).join (sep)]);\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.startswith = function (prefix) {\n    if (prefix instanceof Array) {\n        for (var i=0;i<prefix.length;i++) {\n            if (this.indexOf (prefix [i]) == 0)\n                return true;\n        }\n    } else\n        return this.indexOf (prefix) == 0;\n    return false;\n};\nString.prototype.strip = function () {\n    return this.trim ();\n};\nString.prototype.upper = function () {\n    return this.toUpperCase ();\n};\nString.prototype.__mul__ = function (scalar) {\n    var result = '';\n    for (var i = 0; i < scalar; i++) {\n        result = result + this;\n    }\n    return result;\n};\nString.prototype.__rmul__ = String.prototype.__mul__;\nfunction __contains__ (element) {\n    return this.hasOwnProperty (element);\n}\nfunction __keys__ () {\n    var keys = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            keys.push (attrib);\n        }\n    }\n    return keys;\n}\nfunction __items__ () {\n    var items = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            items.push ([attrib, this [attrib]]);\n        }\n    }\n    return items;\n}\nfunction __del__ (key) {\n    delete this [key];\n}\nfunction __clear__ () {\n    for (var attrib in this) {\n        delete this [attrib];\n    }\n}\nfunction __getdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result == undefined) {\n        result = this ['py_' + aKey]\n    }\n    return result == undefined ? (aDefault == undefined ? null : aDefault) : result;\n}\nfunction __setdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        return result;\n    }\n    var val = aDefault == undefined ? null : aDefault;\n    this [aKey] = val;\n    return val;\n}\nfunction __pop__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        delete this [aKey];\n        return result;\n    } else {\n        if ( aDefault === undefined ) {\n            throw KeyError (aKey, new Error());\n        }\n    }\n    return aDefault;\n}\nfunction __popitem__ () {\n    var aKey = Object.keys (this) [0];\n    if (aKey == null) {\n        throw KeyError (\"popitem(): dictionary is empty\", new Error ());\n    }\n    var result = tuple ([aKey, this [aKey]]);\n    delete this [aKey];\n    return result;\n}\nfunction __update__ (aDict) {\n    for (var aKey in aDict) {\n        this [aKey] = aDict [aKey];\n    }\n}\nfunction __values__ () {\n    var values = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            values.push (this [attrib]);\n        }\n    }\n    return values;\n}\nfunction __dgetitem__ (aKey) {\n    return this [aKey];\n}\nfunction __dsetitem__ (aKey, aValue) {\n    this [aKey] = aValue;\n}\nexport function dict (objectOrPairs) {\n    var instance = {};\n    if (!objectOrPairs || objectOrPairs instanceof Array) {\n        if (objectOrPairs) {\n            for (var index = 0; index < objectOrPairs.length; index++) {\n                var pair = objectOrPairs [index];\n                if ( !(pair instanceof Array) || pair.length != 2) {\n                    throw ValueError(\n                        \"dict update sequence element #\" + index +\n                        \" has length \" + pair.length +\n                        \"; 2 is required\", new Error());\n                }\n                var key = pair [0];\n                var val = pair [1];\n                if (!(objectOrPairs instanceof Array) && objectOrPairs instanceof Object) {\n                     if (!isinstance (objectOrPairs, dict)) {\n                         val = dict (val);\n                     }\n                }\n                instance [key] = val;\n            }\n        }\n    }\n    else {\n        if (isinstance (objectOrPairs, dict)) {\n            var aKeys = objectOrPairs.py_keys ();\n            for (var index = 0; index < aKeys.length; index++ ) {\n                var key = aKeys [index];\n                instance [key] = objectOrPairs [key];\n            }\n        } else if (objectOrPairs instanceof Object) {\n            instance = objectOrPairs;\n        } else {\n            throw ValueError (\"Invalid type of object for dict creation\", new Error ());\n        }\n    }\n    __setproperty__ (instance, '__class__', {value: dict, enumerable: false, writable: true});\n    __setproperty__ (instance, '__contains__', {value: __contains__, enumerable: false});\n    __setproperty__ (instance, 'py_keys', {value: __keys__, enumerable: false});\n    __setproperty__ (instance, '__iter__', {value: function () {new __PyIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, Symbol.iterator, {value: function () {new __JsIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, 'py_items', {value: __items__, enumerable: false});\n    __setproperty__ (instance, 'py_del', {value: __del__, enumerable: false});\n    __setproperty__ (instance, 'py_clear', {value: __clear__, enumerable: false});\n    __setproperty__ (instance, 'py_get', {value: __getdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_setdefault', {value: __setdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_pop', {value: __pop__, enumerable: false});\n    __setproperty__ (instance, 'py_popitem', {value: __popitem__, enumerable: false});\n    __setproperty__ (instance, 'py_update', {value: __update__, enumerable: false});\n    __setproperty__ (instance, 'py_values', {value: __values__, enumerable: false});\n    __setproperty__ (instance, '__getitem__', {value: __dgetitem__, enumerable: false});\n    __setproperty__ (instance, '__setitem__', {value: __dsetitem__, enumerable: false});\n    return instance;\n}\ndict.__name__ = 'dict';\ndict.__bases__ = [object];\nfunction __setdoc__ (docString) {\n    this.__doc__ = docString;\n    return this;\n}\n__setproperty__ (Function.prototype, '__setdoc__', {value: __setdoc__, enumerable: false});\nexport function __jsmod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __mod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __pow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport var pow = __pow__;\nexport function __neg__ (a) {\n    if (typeof a == 'object' && '__neg__' in a) {\n        return a.__neg__ ();\n    }\n    else {\n        return -a;\n    }\n};\nexport function __matmul__ (a, b) {\n    return a.__matmul__ (b);\n};\nexport function __mul__ (a, b) {\n    if (typeof a == 'object' && '__mul__' in a) {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return b.__rmul__ (a);\n    }\n    else {\n        return a * b;\n    }\n};\nexport function __truediv__ (a, b) {\n    if (typeof a == 'object' && '__truediv__' in a) {\n        return a.__truediv__ (b);\n    }\n    else if (typeof b == 'object' && '__rtruediv__' in b) {\n        return b.__rtruediv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return a / b;\n    }\n};\nexport function __floordiv__ (a, b) {\n    if (typeof a == 'object' && '__floordiv__' in a) {\n        return a.__floordiv__ (b);\n    }\n    else if (typeof b == 'object' && '__rfloordiv__' in b) {\n        return b.__rfloordiv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return Math.floor (a / b);\n    }\n};\nexport function __add__ (a, b) {\n    if (typeof a == 'object' && '__add__' in a) {\n        return a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return b.__radd__ (a);\n    }\n    else {\n        return a + b;\n    }\n};\nexport function __sub__ (a, b) {\n    if (typeof a == 'object' && '__sub__' in a) {\n        return a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return b.__rsub__ (a);\n    }\n    else {\n        return a - b;\n    }\n};\nexport function __lshift__ (a, b) {\n    if (typeof a == 'object' && '__lshift__' in a) {\n        return a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return b.__rlshift__ (a);\n    }\n    else {\n        return a << b;\n    }\n};\nexport function __rshift__ (a, b) {\n    if (typeof a == 'object' && '__rshift__' in a) {\n        return a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return b.__rrshift__ (a);\n    }\n    else {\n        return a >> b;\n    }\n};\nexport function __or__ (a, b) {\n    if (typeof a == 'object' && '__or__' in a) {\n        return a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return b.__ror__ (a);\n    }\n    else {\n        return a | b;\n    }\n};\nexport function __xor__ (a, b) {\n    if (typeof a == 'object' && '__xor__' in a) {\n        return a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return b.__rxor__ (a);\n    }\n    else {\n        return a ^ b;\n    }\n};\nexport function __and__ (a, b) {\n    if (typeof a == 'object' && '__and__' in a) {\n        return a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return b.__rand__ (a);\n    }\n    else {\n        return a & b;\n    }\n};\nexport function __eq__ (a, b) {\n    if (typeof a == 'object' && '__eq__' in a) {\n        return a.__eq__ (b);\n    }\n    else {\n        return a == b;\n    }\n};\nexport function __ne__ (a, b) {\n    if (typeof a == 'object' && '__ne__' in a) {\n        return a.__ne__ (b);\n    }\n    else {\n        return a != b\n    }\n};\nexport function __lt__ (a, b) {\n    if (typeof a == 'object' && '__lt__' in a) {\n        return a.__lt__ (b);\n    }\n    else {\n        return a < b;\n    }\n};\nexport function __le__ (a, b) {\n    if (typeof a == 'object' && '__le__' in a) {\n        return a.__le__ (b);\n    }\n    else {\n        return a <= b;\n    }\n};\nexport function __gt__ (a, b) {\n    if (typeof a == 'object' && '__gt__' in a) {\n        return a.__gt__ (b);\n    }\n    else {\n        return a > b;\n    }\n};\nexport function __ge__ (a, b) {\n    if (typeof a == 'object' && '__ge__' in a) {\n        return a.__ge__ (b);\n    }\n    else {\n        return a >= b;\n    }\n};\nexport function __imatmul__ (a, b) {\n    if ('__imatmul__' in a) {\n        return a.__imatmul__ (b);\n    }\n    else {\n        return a.__matmul__ (b);\n    }\n};\nexport function __ipow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__ipow__ (b);\n    }\n    else if (typeof a == 'object' && '__ipow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport function __ijsmod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__ismod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __imod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__imod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __imul__ (a, b) {\n    if (typeof a == 'object' && '__imul__' in a) {\n        return a.__imul__ (b);\n    }\n    else if (typeof a == 'object' && '__mul__' in a) {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return a = b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return a = b.__rmul__ (a);\n    }\n    else {\n        return a *= b;\n    }\n};\nexport function __idiv__ (a, b) {\n    if (typeof a == 'object' && '__idiv__' in a) {\n        return a.__idiv__ (b);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a = a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return a = b.__rdiv__ (a);\n    }\n    else {\n        return a /= b;\n    }\n};\nexport function __iadd__ (a, b) {\n    if (typeof a == 'object' && '__iadd__' in a) {\n        return a.__iadd__ (b);\n    }\n    else if (typeof a == 'object' && '__add__' in a) {\n        return a = a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return a = b.__radd__ (a);\n    }\n    else {\n        return a += b;\n    }\n};\nexport function __isub__ (a, b) {\n    if (typeof a == 'object' && '__isub__' in a) {\n        return a.__isub__ (b);\n    }\n    else if (typeof a == 'object' && '__sub__' in a) {\n        return a = a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return a = b.__rsub__ (a);\n    }\n    else {\n        return a -= b;\n    }\n};\nexport function __ilshift__ (a, b) {\n    if (typeof a == 'object' && '__ilshift__' in a) {\n        return a.__ilshift__ (b);\n    }\n    else if (typeof a == 'object' && '__lshift__' in a) {\n        return a = a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return a = b.__rlshift__ (a);\n    }\n    else {\n        return a <<= b;\n    }\n};\nexport function __irshift__ (a, b) {\n    if (typeof a == 'object' && '__irshift__' in a) {\n        return a.__irshift__ (b);\n    }\n    else if (typeof a == 'object' && '__rshift__' in a) {\n        return a = a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return a = b.__rrshift__ (a);\n    }\n    else {\n        return a >>= b;\n    }\n};\nexport function __ior__ (a, b) {\n    if (typeof a == 'object' && '__ior__' in a) {\n        return a.__ior__ (b);\n    }\n    else if (typeof a == 'object' && '__or__' in a) {\n        return a = a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return a = b.__ror__ (a);\n    }\n    else {\n        return a |= b;\n    }\n};\nexport function __ixor__ (a, b) {\n    if (typeof a == 'object' && '__ixor__' in a) {\n        return a.__ixor__ (b);\n    }\n    else if (typeof a == 'object' && '__xor__' in a) {\n        return a = a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return a = b.__rxor__ (a);\n    }\n    else {\n        return a ^= b;\n    }\n};\nexport function __iand__ (a, b) {\n    if (typeof a == 'object' && '__iand__' in a) {\n        return a.__iand__ (b);\n    }\n    else if (typeof a == 'object' && '__and__' in a) {\n        return a = a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return a = b.__rand__ (a);\n    }\n    else {\n        return a &= b;\n    }\n};\nexport function __getitem__ (container, key) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ (key);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        return container [container.length + key];\n    }\n    else {\n        return container [key];\n    }\n};\nexport function __setitem__ (container, key, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ (key, value);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        container [container.length + key] = value;\n    }\n    else {\n        container [key] = value;\n    }\n};\nexport function __getslice__ (container, lower, upper, step) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ ([lower, upper, step]);\n    }\n    else {\n        return container.__getslice__ (lower, upper, step);\n    }\n};\nexport function __setslice__ (container, lower, upper, step, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ ([lower, upper, step], value);\n    }\n    else {\n        container.__setslice__ (lower, upper, step, value);\n    }\n};\nexport var BaseException =  __class__ ('BaseException', [object], {\n\t__module__: __name__,\n});\nexport var Exception =  __class__ ('Exception', [BaseException], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tvar kwargs = dict ();\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tdefault: kwargs [__attrib0__] = __allkwargs0__ [__attrib0__];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdelete kwargs.__kwargtrans__;\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.__args__ = args;\n\t\tif (kwargs.error != null) {\n\t\t\tself.stack = kwargs.error.stack;\n\t\t}\n\t\telse if (Error) {\n\t\t\tself.stack = new Error ().stack;\n\t\t}\n\t\telse {\n\t\t\tself.stack = 'No stack trace available';\n\t\t}\n\t});},\n\tget __repr__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]));\n\t\t}\n\t\telse {\n\t\t\treturn '{}()'.format (self.__class__.__name__);\n\t\t}\n\t});},\n\tget __str__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn str (tuple (self.__args__));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn str (self.__args__ [0]);\n\t\t}\n\t\telse {\n\t\t\treturn '';\n\t\t}\n\t});}\n});\nexport var IterableError =  __class__ ('IterableError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, \"Can't iterate over non-iterable\", __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var StopIteration =  __class__ ('StopIteration', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, 'Iterator exhausted', __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var ValueError =  __class__ ('ValueError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var KeyError =  __class__ ('KeyError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AssertionError =  __class__ ('AssertionError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tif (message) {\n\t\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t\t}\n\t\telse {\n\t\t\tException.__init__ (self, __kwargtrans__ ({error: error}));\n\t\t}\n\t});}\n});\nexport var NotImplementedError =  __class__ ('NotImplementedError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var IndexError =  __class__ ('IndexError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AttributeError =  __class__ ('AttributeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var py_TypeError =  __class__ ('py_TypeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var Warning =  __class__ ('Warning', [Exception], {\n\t__module__: __name__,\n});\nexport var UserWarning =  __class__ ('UserWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var DeprecationWarning =  __class__ ('DeprecationWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var RuntimeWarning =  __class__ ('RuntimeWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var __sort__ = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (key) {\n\t\titerable.sort ((function __lambda__ (a, b) {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\t\tcase 'a': var a = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t\tcase 'b': var b = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\treturn (key (a) > key (b) ? 1 : -(1));\n\t\t}));\n\t}\n\telse {\n\t\titerable.sort ();\n\t}\n\tif (reverse) {\n\t\titerable.reverse ();\n\t}\n};\nexport var sorted = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (py_typeof (iterable) == dict) {\n\t\tvar result = copy (iterable.py_keys ());\n\t}\n\telse {\n\t\tvar result = copy (iterable);\n\t}\n\t__sort__ (result, key, reverse);\n\treturn result;\n};\nexport var map = function (func, iterable) {\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\t__accu0__.append (func (item));\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var filter = function (func, iterable) {\n\tif (func == null) {\n\t\tvar func = bool;\n\t}\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\tif (func (item)) {\n\t\t\t\t__accu0__.append (item);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var divmod = function (n, d) {\n\treturn tuple ([Math.floor (n / d), __mod__ (n, d)]);\n};\nexport var __Terminal__ =  __class__ ('__Terminal__', [object], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tself.buffer = '';\n\t\ttry {\n\t\t\tself.element = document.getElementById ('__terminal__');\n\t\t}\n\t\tcatch (__except0__) {\n\t\t\tself.element = null;\n\t\t}\n\t\tif (self.element) {\n\t\t\tself.element.style.overflowX = 'auto';\n\t\t\tself.element.style.boxSizing = 'border-box';\n\t\t\tself.element.style.padding = '5px';\n\t\t\tself.element.innerHTML = '_';\n\t\t}\n\t});},\n\tget print () {return __get__ (this, function (self) {\n\t\tvar sep = ' ';\n\t\tvar end = '\\n';\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'sep': var sep = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'end': var end = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.buffer = '{}{}{}'.format (self.buffer, sep.join ((function () {\n\t\t\tvar __accu0__ = [];\n\t\t\tfor (var arg of args) {\n\t\t\t\t__accu0__.append (str (arg));\n\t\t\t}\n\t\t\treturn __accu0__;\n\t\t}) ()), end).__getslice__ (-(4096), null, 1);\n\t\tif (self.element) {\n\t\t\tself.element.innerHTML = self.buffer.py_replace ('\\n', '<br>').py_replace (' ', '&nbsp');\n\t\t\tself.element.scrollTop = self.element.scrollHeight;\n\t\t}\n\t\telse {\n\t\t\tconsole.log (sep.join ((function () {\n\t\t\t\tvar __accu0__ = [];\n\t\t\t\tfor (var arg of args) {\n\t\t\t\t\t__accu0__.append (str (arg));\n\t\t\t\t}\n\t\t\t\treturn __accu0__;\n\t\t\t}) ()));\n\t\t}\n\t});},\n\tget input () {return __get__ (this, function (self, question) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'question': var question = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.print ('{}'.format (question), __kwargtrans__ ({end: ''}));\n\t\tvar answer = window.prompt ('\\n'.join (self.buffer.py_split ('\\n').__getslice__ (-(8), null, 1)));\n\t\tself.print (answer);\n\t\treturn answer;\n\t});}\n});\nexport var __terminal__ = __Terminal__ ();\nexport var print = __terminal__.print;\nexport var input = __terminal__.input;\n\n//# sourceMappingURL=org.transcrypt.__runtime__.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_007/target/org.transcrypt.__runtime__.py",
    "content": "# Transcrypt runtime module\r\n\r\n#__pragma__ ('js', 'export var __envir__ = {{}};\\n{}', __include__ ('org/transcrypt/__envir__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__core__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__builtin__.js'))\r\n\r\n#__pragma__ ('skip')\r\ncopy = Math = __typeof__ = __repr__ = document = console = window = 0\r\n#__pragma__ ('noskip')\r\n\r\n#__pragma__ ('notconv')  # !!! tconv gives a problem with __terminal__, needs investigation\r\n#__pragma__ ('nokwargs')\r\n#__pragma__ ('noalias', 'sort')\r\n\r\nclass BaseException:\r\n    pass\r\n\r\nclass Exception (BaseException):\r\n    #__pragma__ ('kwargs')\r\n    def __init__ (self, *args, **kwargs):\r\n        self.__args__ = args\r\n        if kwargs.error != None:\r\n            self.stack = kwargs.error.stack # Integrate with JavaScript Error object\r\n        elif Error:\r\n            self.stack = (__new__(Error())).stack # Create our own stack if we aren't given one\r\n        else:\r\n            self.stack = 'No stack trace available'\r\n    #__pragma__ ('nokwargs')\r\n        \r\n    def __repr__ (self):\r\n        if len (self.__args__) > 1:\r\n            return '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)))\r\n        elif len (self.__args__):\r\n            return '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]))        \r\n        else:\r\n            return '{}()'.format (self.__class__.__name__)\r\n            \r\n    def __str__ (self):\r\n        if len (self.__args__) > 1:\r\n            return str (tuple (self.__args__))\r\n        elif len (self.__args__):\r\n            return str (self.__args__ [0])\r\n        else:\r\n            return ''\r\n        \r\nclass IterableError (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Can\\'t iterate over non-iterable', error = error)\r\n            \r\nclass StopIteration (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Iterator exhausted', error = error)\r\n        \r\nclass ValueError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass KeyError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass AssertionError (Exception):\r\n    def __init__ (self, message, error):\r\n        if message:\r\n            Exception.__init__ (self, message, error = error)\r\n        else:\r\n            Exception.__init__ (self, error = error)\r\n\r\nclass NotImplementedError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass IndexError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass AttributeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass TypeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\n# Warnings Exceptions\r\n# N.B. This is a limited subset of the warnings defined in\r\n# the cpython implementation to keep things small for now.\r\n\r\nclass Warning (Exception):\r\n    ''' Warning Base Class\r\n    '''\r\n    pass\r\n\r\nclass UserWarning (Warning):\r\n    pass\r\n\r\nclass DeprecationWarning (Warning):\r\n    pass\r\n\r\nclass RuntimeWarning (Warning):\r\n    pass\r\n    \r\n#__pragma__ ('kwargs')\r\n\r\ndef __sort__ (iterable, key = None, reverse = False):               # Used by py_sort, can deal with kwargs\r\n    if key:\r\n        iterable.sort (lambda a, b: 1 if key (a) > key (b) else -1) # JavaScript sort, case '==' is irrelevant for sorting\r\n    else:\r\n        iterable.sort ()                                            # JavaScript sort\r\n        \r\n    if reverse:\r\n        iterable.reverse ()\r\n        \r\ndef sorted (iterable, key = None, reverse = False):\r\n    if type (iterable) == dict:\r\n        result = copy (iterable.keys ()) \r\n    else:       \r\n        result = copy (iterable)\r\n        \r\n    __sort__ (result, key, reverse)\r\n    return result\r\n\r\n#__pragma__ ('nokwargs')\r\n\r\ndef map (func, iterable):\r\n    return [func (item) for item in iterable]\r\n\r\n\r\ndef filter (func, iterable):\r\n    if func == None:\r\n        func = bool\r\n    return [item for item in iterable if func (item)]\r\n    \r\ndef divmod (n, d):\r\n    return n // d, n % d\r\n    \r\n#__pragma__ ('ifdef', '__complex__')\r\n\r\nclass complex:\r\n    def __init__ (self, real, imag = None):\r\n        if imag == None:\r\n            if type (real) == complex:\r\n                self.real = real.real\r\n                self.imag = real.imag\r\n            else:\r\n                self.real = real\r\n                self.imag = 0\r\n        else:\r\n            self.real = real\r\n            self.imag = imag\r\n            \r\n    def __neg__ (self):\r\n        return complex (-self.real, -self.imag)\r\n        \r\n    def __exp__ (self):\r\n        modulus = Math.exp (self.real)\r\n        return complex (modulus * Math.cos (self.imag), modulus * Math.sin (self.imag))\r\n    \r\n    def __log__ (self):\r\n        return complex (Math.log (Math.sqrt (self.real * self.real + self.imag * self.imag)), Math.atan2 (self.imag, self.real))\r\n        \r\n    def __pow__ (self, other):  # a ** b = exp (b log a)\r\n        return (self.__log__ () .__mul__ (other)) .__exp__ ()\r\n        \r\n    def __rpow__ (self, real):  # real ** comp -> comp.__rpow__ (real)\r\n        return self.__mul__ (Math.log (real)) .__exp__ ()\r\n        \r\n    def __mul__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real * other, self.imag * other)\r\n        else:\r\n            return complex (self.real * other.real - self.imag * other.imag, self.real * other.imag + self.imag * other.real)\r\n        \r\n    def __rmul__ (self, real):  # real + comp -> comp.__rmul__ (real)\r\n        return complex (self.real * real, self.imag * real)\r\n        \r\n    def __div__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real / other, self.imag / other)\r\n        else:\r\n            denom = other.real * other.real + other.imag * other.imag\r\n            return complex (\r\n                (self.real * other.real + self.imag * other.imag) / denom,\r\n                (self.imag * other.real - self.real * other.imag) / denom\r\n            )\r\n        \r\n    def __rdiv__ (self, real):  # real / comp -> comp.__rdiv__ (real)\r\n        denom = self.real * self.real\r\n        return complex (\r\n            (real * self.real) / denom,\r\n            (real * self.imag) / denom\r\n        )\r\n        \r\n    def __add__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real + other, self.imag)\r\n        else:   # Assume other is complex\r\n            return complex (self.real + other.real, self.imag + other.imag)\r\n        \r\n    def __radd__ (self, real):  # real + comp -> comp.__radd__ (real)\r\n        return complex (self.real + real, self.imag)\r\n        \r\n    def __sub__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real - other, self.imag)\r\n        else:\r\n            return complex (self.real - other.real, self.imag - other.imag)\r\n        \r\n    def __rsub__ (self, real):  # real - comp -> comp.__rsub__ (real)\r\n        return complex (real - self.real, -self.imag)\r\n        \r\n    def __repr__ (self):\r\n        return '({}{}{}j)'.format (self.real, '+' if self.imag >= 0 else '', self.imag)\r\n            \r\n    def __str__ (self):\r\n        return __repr__ (self) [1 : -1]\r\n        \r\n    def __eq__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real == other\r\n        else:\r\n            return self.real == other.real and self.imag == other.imag\r\n        \r\n    def __ne__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real != other\r\n        else:\r\n            return self.real != other.real or self.imag != other.imag\r\n        \r\n    def conjugate (self):\r\n        return complex (self.real, -self.imag)\r\n        \r\ndef __conj__ (aNumber):\r\n    if isinstance (aNumber, complex):\r\n        return complex (aNumber.real, -aNumber.imag)\r\n    else:\r\n        return complex (aNumber, 0)\r\n        \r\n#__pragma__ ('endif')\r\n\r\nclass __Terminal__:\r\n    '''\r\n    Printing to either the console or to html happens async, but is blocked by calling window.prompt.\r\n    So while all input and print statements are encountered in normal order, the print's exit immediately without yet having actually printed\r\n    This means the next input takes control, blocking actual printing and so on indefinitely\r\n    The effect is that everything's only printed after all inputs are done\r\n    To prevent that, what's needed is to only execute the next window.prompt after actual printing has been done\r\n    Since we've no way to find out when that is, a timeout is used.\r\n    '''\r\n\r\n    def __init__ (self):\r\n        self.buffer = ''\r\n    \r\n        try:\r\n            self.element = document.getElementById ('__terminal__')\r\n        except:\r\n            self.element = None\r\n            \r\n        if self.element:\r\n            self.element.style.overflowX = 'auto'\r\n            self.element.style.boxSizing = 'border-box'\r\n            self.element.style.padding = '5px'\r\n            self.element.innerHTML = '_'\r\n        \r\n    #__pragma__ ('kwargs')\r\n        \r\n    def print (self, *args, sep = ' ', end = '\\n'):\r\n        self.buffer = '{}{}{}'.format (self.buffer, sep.join ([str (arg) for arg in args]), end) [-4096 : ] \r\n        \r\n        if self.element:\r\n            self.element.innerHTML = self.buffer.replace ('\\n', '<br>') .replace (' ', '&nbsp')\r\n            self.element.scrollTop = self.element.scrollHeight\r\n        else:\r\n            console.log (sep.join ([str (arg) for arg in args]))\r\n        \r\n    def input (self, question):\r\n        self.print ('{}'.format (question), end = '')\r\n        answer = window.prompt ('\\n'.join (self.buffer.split ('\\n') [-8:]))\r\n        self.print (answer)\r\n        return answer\r\n        \r\n    #__pragma__ ('nokwargs')\r\n    \r\n__terminal__ = __Terminal__ ()\r\n\r\nprint = __terminal__.print\r\ninput = __terminal__.input\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_007/target/pyp5js.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:15\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {PythonFunctions} from './python_functions.js';\nvar __name__ = 'pyp5js';\nexport var _P5_INSTANCE = null;\nexport var _CTX_MIDDLE = null;\nexport var _DEFAULT_FILL = null;\nexport var _DEFAULT_LEADMULT = null;\nexport var _DEFAULT_STROKE = null;\nexport var _DEFAULT_TEXT_FILL = null;\nexport var ADD = null;\nexport var ALT = null;\nexport var ARROW = null;\nexport var AUDIO = null;\nexport var AUTO = null;\nexport var AXES = null;\nexport var BACKSPACE = null;\nexport var BASELINE = null;\nexport var BEVEL = null;\nexport var BEZIER = null;\nexport var BLEND = null;\nexport var BLUR = null;\nexport var BOLD = null;\nexport var BOLDITALIC = null;\nexport var BOTTOM = null;\nexport var BURN = null;\nexport var CENTER = null;\nexport var CHORD = null;\nexport var CLAMP = null;\nexport var CLOSE = null;\nexport var CONTROL = null;\nexport var CORNER = null;\nexport var CORNERS = null;\nexport var CROSS = null;\nexport var CURVE = null;\nexport var DARKEST = null;\nexport var DEG_TO_RAD = null;\nexport var DEGREES = null;\nexport var DELETE = null;\nexport var DIFFERENCE = null;\nexport var DILATE = null;\nexport var DODGE = null;\nexport var DOWN_ARROW = null;\nexport var ENTER = null;\nexport var ERODE = null;\nexport var ESCAPE = null;\nexport var EXCLUSION = null;\nexport var FILL = null;\nexport var GRAY = null;\nexport var GRID = null;\nexport var HALF_PI = null;\nexport var HAND = null;\nexport var HARD_LIGHT = null;\nexport var HSB = null;\nexport var HSL = null;\nexport var IMAGE = null;\nexport var IMMEDIATE = null;\nexport var INVERT = null;\nexport var ITALIC = null;\nexport var LANDSCAPE = null;\nexport var LEFT = null;\nexport var LEFT_ARROW = null;\nexport var LIGHTEST = null;\nexport var LINE_LOOP = null;\nexport var LINE_STRIP = null;\nexport var LINEAR = null;\nexport var LINES = null;\nexport var MIRROR = null;\nexport var MITER = null;\nexport var MOVE = null;\nexport var MULTIPLY = null;\nexport var NEAREST = null;\nexport var NORMAL = null;\nexport var OPAQUE = null;\nexport var OPEN = null;\nexport var OPTION = null;\nexport var OVERLAY = null;\nexport var PI = null;\nexport var PIE = null;\nexport var POINTS = null;\nexport var PORTRAIT = null;\nexport var POSTERIZE = null;\nexport var PROJECT = null;\nexport var QUAD_STRIP = null;\nexport var QUADRATIC = null;\nexport var QUADS = null;\nexport var QUARTER_PI = null;\nexport var RAD_TO_DEG = null;\nexport var RADIANS = null;\nexport var RADIUS = null;\nexport var REPEAT = null;\nexport var REPLACE = null;\nexport var RETURN = null;\nexport var RGB = null;\nexport var RIGHT = null;\nexport var RIGHT_ARROW = null;\nexport var ROUND = null;\nexport var SCREEN = null;\nexport var SHIFT = null;\nexport var SOFT_LIGHT = null;\nexport var SQUARE = null;\nexport var STROKE = null;\nexport var SUBTRACT = null;\nexport var TAB = null;\nexport var TAU = null;\nexport var TEXT = null;\nexport var TEXTURE = null;\nexport var THRESHOLD = null;\nexport var TOP = null;\nexport var TRIANGLE_FAN = null;\nexport var TRIANGLE_STRIP = null;\nexport var TRIANGLES = null;\nexport var TWO_PI = null;\nexport var UP_ARROW = null;\nexport var VIDEO = null;\nexport var WAIT = null;\nexport var WEBGL = null;\nexport var P2D = null;\nvar PI = null;\nexport var frameCount = null;\nexport var focused = null;\nexport var displayWidth = null;\nexport var displayHeight = null;\nexport var windowWidth = null;\nexport var windowHeight = null;\nexport var width = null;\nexport var height = null;\nexport var disableFriendlyErrors = null;\nexport var deviceOrientation = null;\nexport var accelerationX = null;\nexport var accelerationY = null;\nexport var accelerationZ = null;\nexport var pAccelerationX = null;\nexport var pAccelerationY = null;\nexport var pAccelerationZ = null;\nexport var rotationX = null;\nexport var rotationY = null;\nexport var rotationZ = null;\nexport var pRotationX = null;\nexport var pRotationY = null;\nexport var pRotationZ = null;\nexport var turnAxis = null;\nexport var keyIsPressed = null;\nexport var key = null;\nexport var keyCode = null;\nexport var mouseX = null;\nexport var mouseY = null;\nexport var pmouseX = null;\nexport var pmouseY = null;\nexport var winMouseX = null;\nexport var winMouseY = null;\nexport var pwinMouseX = null;\nexport var pwinMouseY = null;\nexport var mouseButton = null;\nexport var mouseIsPressed = null;\nexport var touches = null;\nexport var pixels = null;\nexport var alpha = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.alpha (...args);\n};\nexport var blue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blue (...args);\n};\nexport var brightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.brightness (...args);\n};\nexport var color = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.color (...args);\n};\nexport var green = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.green (...args);\n};\nexport var hue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hue (...args);\n};\nexport var lerpColor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerpColor (...args);\n};\nexport var lightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lightness (...args);\n};\nexport var red = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.red (...args);\n};\nexport var saturation = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saturation (...args);\n};\nexport var background = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.background (...args);\n};\nexport var py_clear = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_clear = _P5_INSTANCE.clear (...args);\n\treturn p5_clear;\n};\nexport var erase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.erase (...args);\n};\nexport var noErase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noErase (...args);\n};\nexport var colorMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.colorMode (...args);\n};\nexport var fill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fill (...args);\n};\nexport var noFill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noFill (...args);\n};\nexport var noStroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noStroke (...args);\n};\nexport var stroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.stroke (...args);\n};\nexport var arc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arc (...args);\n};\nexport var ellipse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipse (...args);\n};\nexport var circle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.circle (...args);\n};\nexport var line = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.line (...args);\n};\nexport var point = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.point (...args);\n};\nexport var quad = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quad (...args);\n};\nexport var rect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rect (...args);\n};\nexport var square = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.square (...args);\n};\nexport var triangle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.triangle (...args);\n};\nexport var plane = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.plane (...args);\n};\nexport var box = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.box (...args);\n};\nexport var sphere = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sphere (...args);\n};\nexport var cylinder = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cylinder (...args);\n};\nexport var cone = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cone (...args);\n};\nexport var ellipsoid = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipsoid (...args);\n};\nexport var torus = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.torus (...args);\n};\nexport var loadModel = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadModel (...args);\n};\nexport var model = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.model (...args);\n};\nexport var ellipseMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipseMode (...args);\n};\nexport var noSmooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noSmooth (...args);\n};\nexport var rectMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rectMode (...args);\n};\nexport var smooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.smooth (...args);\n};\nexport var strokeCap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeCap (...args);\n};\nexport var strokeJoin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeJoin (...args);\n};\nexport var strokeWeight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeWeight (...args);\n};\nexport var bezier = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezier (...args);\n};\nexport var bezierDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierDetail (...args);\n};\nexport var bezierPoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierPoint (...args);\n};\nexport var bezierTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierTangent (...args);\n};\nexport var curve = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curve (...args);\n};\nexport var curveDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveDetail (...args);\n};\nexport var curveTightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTightness (...args);\n};\nexport var curvePoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curvePoint (...args);\n};\nexport var curveTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTangent (...args);\n};\nexport var beginContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginContour (...args);\n};\nexport var beginShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginShape (...args);\n};\nexport var bezierVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierVertex (...args);\n};\nexport var curveVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveVertex (...args);\n};\nexport var endContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endContour (...args);\n};\nexport var endShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endShape (...args);\n};\nexport var quadraticVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quadraticVertex (...args);\n};\nexport var vertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.vertex (...args);\n};\nexport var cursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cursor (...args);\n};\nexport var frameRate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.frameRate (...args);\n};\nexport var noCursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCursor (...args);\n};\nexport var fullscreen = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fullscreen (...args);\n};\nexport var pixelDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pixelDensity (...args);\n};\nexport var displayDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.displayDensity (...args);\n};\nexport var getURL = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURL (...args);\n};\nexport var getURLPath = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLPath (...args);\n};\nexport var getURLParams = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLParams (...args);\n};\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.preload (...args);\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setup (...args);\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.draw (...args);\n};\nexport var remove = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.remove (...args);\n};\nexport var noLoop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noLoop (...args);\n};\nexport var loop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loop (...args);\n};\nexport var push = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.push (...args);\n};\nexport var redraw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.redraw (...args);\n};\nexport var resizeCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resizeCanvas (...args);\n};\nexport var noCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCanvas (...args);\n};\nexport var createGraphics = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createGraphics (...args);\n};\nexport var blendMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blendMode (...args);\n};\nexport var setAttributes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setAttributes (...args);\n};\nexport var applyMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.applyMatrix (...args);\n};\nexport var resetMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetMatrix (...args);\n};\nexport var rotate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotate (...args);\n};\nexport var rotateX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateX (...args);\n};\nexport var rotateY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateY (...args);\n};\nexport var rotateZ = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateZ (...args);\n};\nexport var scale = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.scale (...args);\n};\nexport var shearX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearX (...args);\n};\nexport var shearY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearY (...args);\n};\nexport var translate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.translate (...args);\n};\nexport var createStringDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createStringDict (...args);\n};\nexport var createNumberDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createNumberDict (...args);\n};\nexport var append = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.append (...args);\n};\nexport var arrayCopy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arrayCopy (...args);\n};\nexport var concat = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.concat (...args);\n};\nexport var reverse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.reverse (...args);\n};\nexport var shorten = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shorten (...args);\n};\nexport var shuffle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shuffle (...args);\n};\nexport var py_sort = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_sort (...args);\n};\nexport var splice = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splice (...args);\n};\nexport var subset = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.subset (...args);\n};\nexport var float = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.float (...args);\n};\nexport var int = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.int (...args);\n};\nexport var str = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.str (...args);\n};\nexport var boolean = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.boolean (...args);\n};\nexport var byte = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.byte (...args);\n};\nexport var char = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.char (...args);\n};\nexport var unchar = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unchar (...args);\n};\nexport var hex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hex (...args);\n};\nexport var unhex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unhex (...args);\n};\nexport var join = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.join (...args);\n};\nexport var match = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.match (...args);\n};\nexport var matchAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.matchAll (...args);\n};\nexport var nf = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nf (...args);\n};\nexport var nfc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfc (...args);\n};\nexport var nfp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfp (...args);\n};\nexport var nfs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfs (...args);\n};\nexport var py_split = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_split (...args);\n};\nexport var splitTokens = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splitTokens (...args);\n};\nexport var trim = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.trim (...args);\n};\nexport var setMoveThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setMoveThreshold (...args);\n};\nexport var setShakeThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setShakeThreshold (...args);\n};\nexport var keyIsDown = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.keyIsDown (...args);\n};\nexport var createImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImage (...args);\n};\nexport var saveCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveCanvas (...args);\n};\nexport var saveFrames = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveFrames (...args);\n};\nexport var image_proxy = function (img) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'img': var img = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar _set = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.set (...args);\n\t\treturn value;\n\t};\n\tvar _get = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.get (...args);\n\t\treturn value;\n\t};\n\timg.py_set = _set;\n\timg.py_get = _get;\n\treturn img;\n};\nexport var loadImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar imageObj = _P5_INSTANCE.loadImage (...args);\n\treturn image_proxy (imageObj);\n};\nexport var image = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.image (...args);\n};\nexport var tint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tint (...args);\n};\nexport var noTint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noTint (...args);\n};\nexport var imageMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.imageMode (...args);\n};\nexport var blend = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blend (...args);\n};\nexport var copy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.copy (...args);\n};\nexport var filter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && (args [0] === null || callable (args [0]))) {\n\t\treturn PythonFunctions.filter (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.filter (...args);\n\t}\n};\nexport var py_get = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_get = _P5_INSTANCE.get (...args);\n\treturn p5_get;\n};\nexport var loadPixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadPixels (...args);\n};\nexport var py_set = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) <= 1) {\n\t\treturn PythonFunctions.py_set (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.py_set (...args);\n\t}\n};\nexport var updatePixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.updatePixels (...args);\n};\nexport var loadJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadJSON (...args);\n};\nexport var loadStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadStrings (...args);\n};\nexport var loadTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadTable (...args);\n};\nexport var loadXML = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadXML (...args);\n};\nexport var loadBytes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadBytes (...args);\n};\nexport var httpGet = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpGet (...args);\n};\nexport var httpPost = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpPost (...args);\n};\nexport var httpDo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpDo (...args);\n};\nexport var createWriter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createWriter (...args);\n};\nexport var save = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.save (...args);\n};\nexport var saveJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveJSON (...args);\n};\nexport var saveStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveStrings (...args);\n};\nexport var saveTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveTable (...args);\n};\nexport var day = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.day (...args);\n};\nexport var hour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hour (...args);\n};\nexport var minute = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.minute (...args);\n};\nexport var millis = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.millis (...args);\n};\nexport var month = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.month (...args);\n};\nexport var second = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.second (...args);\n};\nexport var year = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.year (...args);\n};\nexport var createVector = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVector (...args);\n};\nexport var abs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.abs (...args);\n};\nexport var ceil = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ceil (...args);\n};\nexport var constrain = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.constrain (...args);\n};\nexport var dist = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.dist (...args);\n};\nexport var exp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.exp (...args);\n};\nexport var floor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.floor (...args);\n};\nexport var lerp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerp (...args);\n};\nexport var log = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.log (...args);\n};\nexport var mag = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.mag (...args);\n};\nexport var map = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && callable (args [0])) {\n\t\treturn PythonFunctions.map (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.map (...args);\n\t}\n};\nexport var max = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.max (...args);\n};\nexport var min = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.min (...args);\n};\nexport var norm = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.norm (...args);\n};\nexport var pow = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pow (...args);\n};\nexport var round = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.round (...args);\n};\nexport var sq = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sq (...args);\n};\nexport var sqrt = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sqrt (...args);\n};\nexport var noise = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noise (...args);\n};\nexport var noiseDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseDetail (...args);\n};\nexport var noiseSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseSeed (...args);\n};\nexport var randomSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomSeed (...args);\n};\nexport var random = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.random (...args);\n};\nexport var randomGaussian = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomGaussian (...args);\n};\nexport var acos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.acos (...args);\n};\nexport var asin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.asin (...args);\n};\nexport var atan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan (...args);\n};\nexport var atan2 = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan2 (...args);\n};\nexport var cos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cos (...args);\n};\nexport var sin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sin (...args);\n};\nexport var tan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tan (...args);\n};\nexport var degrees = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.degrees (...args);\n};\nexport var radians = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.radians (...args);\n};\nexport var angleMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.angleMode (...args);\n};\nexport var textAlign = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAlign (...args);\n};\nexport var textLeading = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textLeading (...args);\n};\nexport var textSize = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textSize (...args);\n};\nexport var textStyle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textStyle (...args);\n};\nexport var textWidth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textWidth (...args);\n};\nexport var textAscent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAscent (...args);\n};\nexport var textDescent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textDescent (...args);\n};\nexport var loadFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadFont (...args);\n};\nexport var text = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.text (...args);\n};\nexport var textFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textFont (...args);\n};\nexport var orbitControl = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.orbitControl (...args);\n};\nexport var debugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.debugMode (...args);\n};\nexport var noDebugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noDebugMode (...args);\n};\nexport var ambientLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientLight (...args);\n};\nexport var directionalLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.directionalLight (...args);\n};\nexport var pointLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pointLight (...args);\n};\nexport var lights = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lights (...args);\n};\nexport var loadShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadShader (...args);\n};\nexport var createShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createShader (...args);\n};\nexport var shader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shader (...args);\n};\nexport var resetShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetShader (...args);\n};\nexport var normalMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.normalMaterial (...args);\n};\nexport var texture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.texture (...args);\n};\nexport var textureMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureMode (...args);\n};\nexport var textureWrap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureWrap (...args);\n};\nexport var ambientMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientMaterial (...args);\n};\nexport var specularMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.specularMaterial (...args);\n};\nexport var shininess = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shininess (...args);\n};\nexport var camera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.camera (...args);\n};\nexport var perspective = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.perspective (...args);\n};\nexport var ortho = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ortho (...args);\n};\nexport var createCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCamera (...args);\n};\nexport var setCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setCamera (...args);\n};\nexport var select = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.select (...args);\n};\nexport var selectAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.selectAll (...args);\n};\nexport var removeElements = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.removeElements (...args);\n};\nexport var changed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.changed (...args);\n};\nexport var input = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.input (...args);\n};\nexport var createDiv = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createDiv (...args);\n};\nexport var createP = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createP (...args);\n};\nexport var createSpan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSpan (...args);\n};\nexport var createImg = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImg (...args);\n};\nexport var createA = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createA (...args);\n};\nexport var createSlider = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSlider (...args);\n};\nexport var createButton = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createButton (...args);\n};\nexport var createCheckbox = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCheckbox (...args);\n};\nexport var createSelect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSelect (...args);\n};\nexport var createRadio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createRadio (...args);\n};\nexport var createColorPicker = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createColorPicker (...args);\n};\nexport var createInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createInput (...args);\n};\nexport var createFileInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createFileInput (...args);\n};\nexport var createVideo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVideo (...args);\n};\nexport var createAudio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createAudio (...args);\n};\nexport var createCapture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCapture (...args);\n};\nexport var createElement = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createElement (...args);\n};\nexport var createCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar canvas = _P5_INSTANCE.createCanvas (...args);\n\twidth = _P5_INSTANCE.width;\n\theight = _P5_INSTANCE.height;\n\treturn canvas;\n};\nexport var py_pop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_pop = _P5_INSTANCE.pop (...args);\n\treturn p5_pop;\n};\nexport var size = createCanvas;\nexport var popMatrix = py_pop;\nexport var popStyle = py_pop;\nexport var pushMatrix = push;\nexport var pushStyle = push;\nexport var PVector = function (x, y, z) {\n\tif (typeof x == 'undefined' || (x != null && x.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar x = 0;\n\t};\n\tif (typeof y == 'undefined' || (y != null && y.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar y = 0;\n\t};\n\tif (typeof z == 'undefined' || (z != null && z.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar z = 0;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'z': var z = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn _P5_INSTANCE.createVector (x, y, z);\n};\nsetattr (PVector, 'dist', p5.Vector.dist);\nsetattr (PVector, 'add', p5.Vector.add);\nsetattr (PVector, 'sub', p5.Vector.sub);\nsetattr (PVector, 'mult', p5.Vector.mult);\nsetattr (PVector, 'div', p5.Vector.div);\nsetattr (PVector, 'dot', p5.Vector.dot);\nsetattr (PVector, 'cross', p5.Vector.cross);\nsetattr (PVector, 'lerp', p5.Vector.lerp);\nsetattr (PVector, 'random2D', p5.Vector.random2D);\nsetattr (PVector, 'random3D', p5.Vector.random3D);\nsetattr (PVector, 'angleBetween', p5.Vector.angleBetween);\nsetattr (PVector, 'fromAngle', p5.Vector.fromAngle);\nsetattr (PVector, 'fromAngles', p5.Vector.fromAngles);\nsetattr (PVector, 'equals', p5.Vector.equals);\nexport var pre_draw = function (p5_instance, draw_func) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_instance': var p5_instance = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t_CTX_MIDDLE = p5_instance._CTX_MIDDLE;\n\t_DEFAULT_FILL = p5_instance._DEFAULT_FILL;\n\t_DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT;\n\t_DEFAULT_STROKE = p5_instance._DEFAULT_STROKE;\n\t_DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL;\n\tADD = p5_instance.ADD;\n\tALT = p5_instance.ALT;\n\tARROW = p5_instance.ARROW;\n\tAUDIO = p5_instance.AUDIO;\n\tAUTO = p5_instance.AUTO;\n\tAXES = p5_instance.AXES;\n\tBACKSPACE = p5_instance.BACKSPACE;\n\tBASELINE = p5_instance.BASELINE;\n\tBEVEL = p5_instance.BEVEL;\n\tBEZIER = p5_instance.BEZIER;\n\tBLEND = p5_instance.BLEND;\n\tBLUR = p5_instance.BLUR;\n\tBOLD = p5_instance.BOLD;\n\tBOLDITALIC = p5_instance.BOLDITALIC;\n\tBOTTOM = p5_instance.BOTTOM;\n\tBURN = p5_instance.BURN;\n\tCENTER = p5_instance.CENTER;\n\tCHORD = p5_instance.CHORD;\n\tCLAMP = p5_instance.CLAMP;\n\tCLOSE = p5_instance.CLOSE;\n\tCONTROL = p5_instance.CONTROL;\n\tCORNER = p5_instance.CORNER;\n\tCORNERS = p5_instance.CORNERS;\n\tCROSS = p5_instance.CROSS;\n\tCURVE = p5_instance.CURVE;\n\tDARKEST = p5_instance.DARKEST;\n\tDEG_TO_RAD = p5_instance.DEG_TO_RAD;\n\tDEGREES = p5_instance.DEGREES;\n\tDELETE = p5_instance.DELETE;\n\tDIFFERENCE = p5_instance.DIFFERENCE;\n\tDILATE = p5_instance.DILATE;\n\tDODGE = p5_instance.DODGE;\n\tDOWN_ARROW = p5_instance.DOWN_ARROW;\n\tENTER = p5_instance.ENTER;\n\tERODE = p5_instance.ERODE;\n\tESCAPE = p5_instance.ESCAPE;\n\tEXCLUSION = p5_instance.EXCLUSION;\n\tFILL = p5_instance.FILL;\n\tGRAY = p5_instance.GRAY;\n\tGRID = p5_instance.GRID;\n\tHALF_PI = p5_instance.HALF_PI;\n\tHAND = p5_instance.HAND;\n\tHARD_LIGHT = p5_instance.HARD_LIGHT;\n\tHSB = p5_instance.HSB;\n\tHSL = p5_instance.HSL;\n\tIMAGE = p5_instance.IMAGE;\n\tIMMEDIATE = p5_instance.IMMEDIATE;\n\tINVERT = p5_instance.INVERT;\n\tITALIC = p5_instance.ITALIC;\n\tLANDSCAPE = p5_instance.LANDSCAPE;\n\tLEFT = p5_instance.LEFT;\n\tLEFT_ARROW = p5_instance.LEFT_ARROW;\n\tLIGHTEST = p5_instance.LIGHTEST;\n\tLINE_LOOP = p5_instance.LINE_LOOP;\n\tLINE_STRIP = p5_instance.LINE_STRIP;\n\tLINEAR = p5_instance.LINEAR;\n\tLINES = p5_instance.LINES;\n\tMIRROR = p5_instance.MIRROR;\n\tMITER = p5_instance.MITER;\n\tMOVE = p5_instance.MOVE;\n\tMULTIPLY = p5_instance.MULTIPLY;\n\tNEAREST = p5_instance.NEAREST;\n\tNORMAL = p5_instance.NORMAL;\n\tOPAQUE = p5_instance.OPAQUE;\n\tOPEN = p5_instance.OPEN;\n\tOPTION = p5_instance.OPTION;\n\tOVERLAY = p5_instance.OVERLAY;\n\tP2D = p5_instance.P2D;\n\tvar P3D = p5_instance.WEBGL;\n\tPI = p5_instance.PI;\n\tPIE = p5_instance.PIE;\n\tPOINTS = p5_instance.POINTS;\n\tPORTRAIT = p5_instance.PORTRAIT;\n\tPOSTERIZE = p5_instance.POSTERIZE;\n\tPROJECT = p5_instance.PROJECT;\n\tQUAD_STRIP = p5_instance.QUAD_STRIP;\n\tQUADRATIC = p5_instance.QUADRATIC;\n\tQUADS = p5_instance.QUADS;\n\tQUARTER_PI = p5_instance.QUARTER_PI;\n\tRAD_TO_DEG = p5_instance.RAD_TO_DEG;\n\tRADIANS = p5_instance.RADIANS;\n\tRADIUS = p5_instance.RADIUS;\n\tREPEAT = p5_instance.REPEAT;\n\tREPLACE = p5_instance.REPLACE;\n\tRETURN = p5_instance.RETURN;\n\tRGB = p5_instance.RGB;\n\tRIGHT = p5_instance.RIGHT;\n\tRIGHT_ARROW = p5_instance.RIGHT_ARROW;\n\tROUND = p5_instance.ROUND;\n\tSCREEN = p5_instance.SCREEN;\n\tSHIFT = p5_instance.SHIFT;\n\tSOFT_LIGHT = p5_instance.SOFT_LIGHT;\n\tSQUARE = p5_instance.SQUARE;\n\tSTROKE = p5_instance.STROKE;\n\tSUBTRACT = p5_instance.SUBTRACT;\n\tTAB = p5_instance.TAB;\n\tTAU = p5_instance.TAU;\n\tTEXT = p5_instance.TEXT;\n\tTEXTURE = p5_instance.TEXTURE;\n\tTHRESHOLD = p5_instance.THRESHOLD;\n\tTOP = p5_instance.TOP;\n\tTRIANGLE_FAN = p5_instance.TRIANGLE_FAN;\n\tTRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP;\n\tTRIANGLES = p5_instance.TRIANGLES;\n\tTWO_PI = p5_instance.TWO_PI;\n\tUP_ARROW = p5_instance.UP_ARROW;\n\tVIDEO = p5_instance.VIDEO;\n\tWAIT = p5_instance.WAIT;\n\tWEBGL = p5_instance.WEBGL;\n\tframeCount = p5_instance.frameCount;\n\tfocused = p5_instance.focused;\n\tdisplayWidth = p5_instance.displayWidth;\n\tdisplayHeight = p5_instance.displayHeight;\n\twindowWidth = p5_instance.windowWidth;\n\twindowHeight = p5_instance.windowHeight;\n\twidth = p5_instance.width;\n\theight = p5_instance.height;\n\tdisableFriendlyErrors = p5_instance.disableFriendlyErrors;\n\tdeviceOrientation = p5_instance.deviceOrientation;\n\taccelerationX = p5_instance.accelerationX;\n\taccelerationY = p5_instance.accelerationY;\n\taccelerationZ = p5_instance.accelerationZ;\n\tpAccelerationX = p5_instance.pAccelerationX;\n\tpAccelerationY = p5_instance.pAccelerationY;\n\tpAccelerationZ = p5_instance.pAccelerationZ;\n\trotationX = p5_instance.rotationX;\n\trotationY = p5_instance.rotationY;\n\trotationZ = p5_instance.rotationZ;\n\tpRotationX = p5_instance.pRotationX;\n\tpRotationY = p5_instance.pRotationY;\n\tpRotationZ = p5_instance.pRotationZ;\n\tturnAxis = p5_instance.turnAxis;\n\tkeyIsPressed = p5_instance.keyIsPressed;\n\tkey = p5_instance.key;\n\tkeyCode = p5_instance.keyCode;\n\tmouseX = p5_instance.mouseX;\n\tmouseY = p5_instance.mouseY;\n\tpmouseX = p5_instance.pmouseX;\n\tpmouseY = p5_instance.pmouseY;\n\twinMouseX = p5_instance.winMouseX;\n\twinMouseY = p5_instance.winMouseY;\n\tpwinMouseX = p5_instance.pwinMouseX;\n\tpwinMouseY = p5_instance.pwinMouseY;\n\tmouseButton = p5_instance.mouseButton;\n\tmouseIsPressed = p5_instance.mouseIsPressed;\n\ttouches = p5_instance.touches;\n\tpixels = p5_instance.pixels;\n\treturn draw_func ();\n};\nexport var global_p5_injection = function (p5_sketch) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar decorator = function (f) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'f': var f = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar wrapper = function () {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\t_P5_INSTANCE = p5_sketch;\n\t\t\treturn pre_draw (_P5_INSTANCE, f);\n\t\t};\n\t\treturn wrapper;\n\t};\n\treturn decorator;\n};\nexport var start_p5 = function (preload_func, setup_func, draw_func, event_functions) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'preload_func': var preload_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'setup_func': var setup_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'event_functions': var event_functions = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar sketch_setup = function (p5_sketch) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tp5_sketch.preload = global_p5_injection (p5_sketch) (preload_func);\n\t\tp5_sketch.setup = global_p5_injection (p5_sketch) (setup_func);\n\t\tp5_sketch.draw = global_p5_injection (p5_sketch) (draw_func);\n\t};\n\tvar instance = new p5 (sketch_setup, 'sketch-holder');\n\tvar event_function_names = tuple (['deviceMoved', 'deviceTurned', 'deviceShaken', 'windowResized', 'keyPressed', 'keyReleased', 'keyTyped', 'mousePressed', 'mouseReleased', 'mouseClicked', 'doubleClicked', 'mouseMoved', 'mouseDragged', 'mouseWheel', 'touchStarted', 'touchMoved', 'touchEnded', 'keyIsDown']);\n\tfor (var f_name of (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var f of event_function_names) {\n\t\t\tif (event_functions.py_get (f, null)) {\n\t\t\t\t__accu0__.append (f);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ()) {\n\t\tvar func = event_functions [f_name];\n\t\tvar event_func = global_p5_injection (instance) (func);\n\t\tsetattr (instance, f_name, event_func);\n\t}\n};\nexport var logOnloaded = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tconsole.log ('Lib loaded!');\n};\nexport var add_library = function (lib_name) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'lib_name': var lib_name = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar src = '';\n\treturn console.log ('Lib name is not valid:', lib_name);\n\tconsole.log ('Importing:', src);\n\tvar script = document.createElement ('script');\n\tscript.onload = logOnloaded;\n\tscript.src = src;\n\tdocument.head.appendChild (script);\n};\n\n//# sourceMappingURL=pyp5js.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_007/target/pyp5js.py",
    "content": "from python_functions import PythonFunctions\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndisableFriendlyErrors = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    __pragma__('noalias', 'clear')\n    p5_clear = _P5_INSTANCE.clear(*args)\n    __pragma__('alias', 'clear', 'py_clear')\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef preload(*args):\n    return _P5_INSTANCE.preload(*args)\n\ndef setup(*args):\n    return _P5_INSTANCE.setup(*args)\n\ndef draw(*args):\n    return _P5_INSTANCE.draw(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\n\ndef image_proxy(img):\n    \"\"\"\n    Proxy to turn of transcypt when calling img.get/set methods\n    \"\"\"\n\n    def _set(*args):\n        __pragma__('noalias', 'set')\n        value = img.set(*args)\n        __pragma__('alias', 'set', 'py_set')\n        return value\n\n    def _get(*args):\n        __pragma__('noalias', 'get')\n        value = img.get(*args)\n        __pragma__('alias', 'get', 'py_get')\n        return value\n\n    img.set = _set\n    img.get = _get\n    return img\n\n\ndef loadImage(*args):\n    imageObj = _P5_INSTANCE.loadImage(*args)\n    return image_proxy(imageObj)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    __pragma__('noalias', 'get')\n    p5_get = _P5_INSTANCE.get(*args)\n    __pragma__('alias', 'get', 'py_get')\n    return p5_get\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\n\ndef pop(*args):\n    __pragma__('noalias', 'pop')\n    p5_pop = _P5_INSTANCE.pop(*args)\n    __pragma__('alias', 'pop', 'py_pop')\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a helper/alias to create p5.Vector objects\ndef PVector(x=0, y=0, z=0):\n    return _P5_INSTANCE.createVector(x, y, z)\n# aliases  for p5.Vector class methods\nsetattr(PVector, 'dist', p5.Vector.dist)\nsetattr(PVector, 'add', p5.Vector.add)\nsetattr(PVector, 'sub', p5.Vector.sub)\nsetattr(PVector, 'mult', p5.Vector.mult)\nsetattr(PVector, 'div', p5.Vector.div)\nsetattr(PVector, 'dot', p5.Vector.dot)\nsetattr(PVector, 'cross', p5.Vector.cross)\nsetattr(PVector, 'lerp', p5.Vector.lerp)\nsetattr(PVector, 'random2D', p5.Vector.random2D)\nsetattr(PVector, 'random3D', p5.Vector.random3D)\nsetattr(PVector, 'angleBetween', p5.Vector.angleBetween)\nsetattr(PVector, 'fromAngle', p5.Vector.fromAngle)\nsetattr(PVector, 'fromAngles', p5.Vector.fromAngles)\nsetattr(PVector, 'equals', p5.Vector.equals)\n\ndef pre_draw(p5_instance, draw_func):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP, QUADRATIC\n    global QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global disableFriendlyErrors, deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    disableFriendlyErrors = p5_instance.disableFriendlyErrors\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func()\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f):\n        def wrapper():\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: a Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    instance = __new__(p5(sketch_setup, 'sketch-holder'))\n\n    # inject event functions into p5\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\"\n    )\n\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(instance)(func)\n        setattr(instance, f_name, event_func)\n\n\ndef logOnloaded():\n    console.log(\"Lib loaded!\")\n\n\ndef add_library(lib_name):\n    # placeholder for https://github.com/berinhard/pyp5js/issues/31\n    src = ''\n\n    return console.log(\"Lib name is not valid:\", lib_name)\n\n    console.log(\"Importing:\", src)\n\n    script = document.createElement(\"script\")\n    script.onload = logOnloaded\n    script.src = src\n    document.head.appendChild(script)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_007/target/python_functions.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:16\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, pow, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nvar __name__ = 'python_functions';\nexport var PythonFunctions =  __class__ ('PythonFunctions', [object], {\n\t__module__: __name__,\n});\nsetattr (PythonFunctions, 'map', map);\nsetattr (PythonFunctions, 'filter', filter);\nsetattr (PythonFunctions, 'set', set);\n\n//# sourceMappingURL=python_functions.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_007/target/python_functions.py",
    "content": "class PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_007/target/target_sketch.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:15\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, set, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {ADD, ALT, ARROW, AUDIO, AUTO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC, BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST, DEGREES, DEG_TO_RAD, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION, FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE, LEFT, LEFT_ARROW, LIGHTEST, LINEAR, LINES, LINE_LOOP, LINE_STRIP, MIRROR, MITER, MOVE, MULTIPLY, NEAREST, NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, PVector, QUADRATIC, QUADS, QUAD_STRIP, QUARTER_PI, RADIANS, RADIUS, RAD_TO_DEG, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW, ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL, _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL, _P5_INSTANCE, abs, accelerationX, accelerationY, accelerationZ, acos, add_library, alpha, ambientLight, ambientMaterial, angleMode, append, applyMatrix, arc, arrayCopy, asin, atan, atan2, background, beginContour, beginShape, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, blend, blendMode, blue, boolean, box, brightness, byte, camera, ceil, changed, char, circle, color, colorMode, concat, cone, constrain, copy, cos, createA, createAudio, createButton, createCamera, createCanvas, createCapture, createCheckbox, createColorPicker, createDiv, createElement, createFileInput, createGraphics, createImage, createImg, createInput, createNumberDict, createP, createRadio, createSelect, createShader, createSlider, createSpan, createStringDict, createVector, createVideo, createWriter, cursor, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, cylinder, day, debugMode, degrees, deviceOrientation, directionalLight, disableFriendlyErrors, displayDensity, displayHeight, displayWidth, dist, ellipse, ellipseMode, ellipsoid, endContour, endShape, erase, exp, fill, filter, float, floor, focused, frameCount, frameRate, fullscreen, getURL, getURLParams, getURLPath, global_p5_injection, green, height, hex, hour, httpDo, httpGet, httpPost, hue, image, imageMode, image_proxy, input, int, join, key, keyCode, keyIsPressed, lerp, lerpColor, lightness, lights, line, loadBytes, loadFont, loadImage, loadJSON, loadModel, loadPixels, loadShader, loadStrings, loadTable, loadXML, log, logOnloaded, loop, mag, map, match, matchAll, max, millis, min, minute, model, month, mouseButton, mouseIsPressed, mouseX, mouseY, nf, nfc, nfp, nfs, noCanvas, noCursor, noDebugMode, noErase, noFill, noLoop, noSmooth, noStroke, noTint, noise, noiseDetail, noiseSeed, norm, normalMaterial, orbitControl, ortho, pAccelerationX, pAccelerationY, pAccelerationZ, pRotationX, pRotationY, pRotationZ, perspective, pixelDensity, pixels, plane, pmouseX, pmouseY, point, pointLight, popMatrix, popStyle, pow, pre_draw, push, pushMatrix, pushStyle, pwinMouseX, pwinMouseY, py_clear, py_get, py_pop, py_set, py_sort, py_split, quad, quadraticVertex, radians, random, randomGaussian, randomSeed, rect, rectMode, red, redraw, remove, removeElements, resetMatrix, resetShader, resizeCanvas, reverse, rotate, rotateX, rotateY, rotateZ, rotationX, rotationY, rotationZ, round, saturation, save, saveCanvas, saveFrames, saveJSON, saveStrings, saveTable, scale, second, select, selectAll, setAttributes, setCamera, setMoveThreshold, setShakeThreshold, shader, shearX, shearY, shininess, shorten, shuffle, sin, size, smooth, specularMaterial, sphere, splice, splitTokens, sq, sqrt, square, start_p5, str, stroke, strokeCap, strokeJoin, strokeWeight, subset, tan, text, textAlign, textAscent, textDescent, textFont, textLeading, textSize, textStyle, textWidth, texture, textureMode, textureWrap, tint, torus, touches, translate, triangle, trim, turnAxis, unchar, unhex, updatePixels, vertex, width, winMouseX, winMouseY, windowHeight, windowWidth, year} from './pyp5js.js';\nvar __name__ = '__main__';\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var deviceMoved = null;\nexport var deviceTurned = null;\nexport var deviceShaken = null;\nexport var keyPressed = null;\nexport var keyReleased = null;\nexport var keyTyped = null;\nexport var mouseMoved = null;\nexport var mouseDragged = null;\nexport var mousePressed = null;\nexport var mouseReleased = null;\nexport var mouseClicked = null;\nexport var doubleClicked = null;\nexport var mouseWheel = null;\nexport var touchStarted = null;\nexport var touchMoved = null;\nexport var touchEnded = null;\nexport var windowResized = null;\nexport var keyIsDown = null;\nvar setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tcreateCanvas (900, 900);\n\tstroke (27, 27, 27, 10);\n\tstrokeWeight (2);\n};\nvar draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tpush ();\n\ttranslate (width / 2, height / 2);\n\tvar v = p5.Vector.random2D ();\n\tv.normalize ();\n\tv.mult (random (100, 400));\n\tline (0, 0, v.x, v.y);\n\tpy_pop ();\n};\nexport var event_functions = dict ({'deviceMoved': deviceMoved, 'deviceTurned': deviceTurned, 'deviceShaken': deviceShaken, 'keyPressed': keyPressed, 'keyReleased': keyReleased, 'keyTyped': keyTyped, 'mouseMoved': mouseMoved, 'mouseDragged': mouseDragged, 'mousePressed': mousePressed, 'mouseReleased': mouseReleased, 'mouseClicked': mouseClicked, 'doubleClicked': doubleClicked, 'mouseWheel': mouseWheel, 'touchStarted': touchStarted, 'touchMoved': touchMoved, 'touchEnded': touchEnded, 'windowResized': windowResized, 'keyIsDown': keyIsDown});\nstart_p5 (preload, setup, draw, event_functions);\n\n//# sourceMappingURL=target_sketch.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_007/target/target_sketch.project",
    "content": "{\"options\": {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_007/target_sketch.py\", \"anno\": false, \"alimod\": false, \"build\": true, \"complex\": false, \"docat\": false, \"dassert\": false, \"dcheck\": false, \"dextex\": false, \"dlog\": false, \"dmap\": false, \"dnostrip\": false, \"dstat\": false, \"dtree\": false, \"esv\": null, \"ecom\": false, \"fcall\": false, \"gen\": false, \"iconv\": false, \"jscall\": false, \"jskeys\": false, \"jsmod\": false, \"kwargs\": true, \"keycheck\": false, \"license\": false, \"map\": true, \"nomin\": true, \"opov\": false, \"outdir\": null, \"parent\": null, \"run\": false, \"symbols\": null, \"sform\": false, \"tconv\": false, \"unit\": null, \"verbose\": false, \"x\": null, \"xreex\": false, \"xglobs\": false, \"xpath\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt\", \"xtiny\": false, \"star\": false}, \"modules\": [{\"source\": \"/home/bernardo/.pyenv/versions/pyp5js/lib/python3.8/site-packages/transcrypt/modules/org/transcrypt/__runtime__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_007/__target__/org.transcrypt.__runtime__.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_007/target_sketch.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_007/__target__/target_sketch.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/pyp5js.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_007/__target__/pyp5js.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/python_functions.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_007/__target__/python_functions.js\"}]}"
  },
  {
    "path": "docs/examples/transcrypt/sketch_007/target/target_sketch.py",
    "content": "from pyp5js import *\n\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\nkeyIsDown = None\n\n\ndef setup():\n    createCanvas(900, 900)\n    stroke(27, 27, 27, 10)\n    strokeWeight(2)\n\n\ndef draw():\n    push()\n\n    translate(width / 2, height / 2)\n    v = p5.Vector.random2D()\n    v.normalize()\n    v.mult(random(100, 400))\n    line(0, 0, v.x, v.y)\n\n    pop()\n\n\n\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n    \"keyIsDown\": keyIsDown,\n}\n\nstart_p5(preload, setup, draw, event_functions)"
  },
  {
    "path": "docs/examples/transcrypt/sketch_008/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_008 - pyp5js (using Transcrypt)</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/transcrypt/sketch_008\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre>\n             <code>\nrect_base_size = 30\npositions = []\nrect_size = None\n\ndef setup():\n    global rect_size\n\n    createP(\"Hi! This is an example of how to use p5.dom.js with pyp5js\")\n\n    # creates a container div\n    slider_div = createDiv()\n    slider_div.style(\"display\", \"block\")\n\n    # creates the slider\n    rect_size = createSlider(0, 600, 100)\n    rect_size.style('width', '50%')\n\n    # adds the slider to the container div\n    slider_div.child(rect_size)\n\n    createCanvas(600, 600)\n\n    for x in range(-rect_base_size, width + rect_base_size, rect_base_size):\n        for y in range(-rect_base_size, height + rect_base_size, rect_base_size):\n            positions.append((x, y))\n\n    noFill()\n    strokeWeight(2)\n    rectMode(CENTER)\n\n\ndef draw():\n    background(255)\n    size = rect_size.value()\n    for x, y in positions:\n        rect(x, y, size, size)\n\n              </code>\n          </pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/transcrypt/sketch_008/sketch_008.py",
    "content": "rect_base_size = 30\npositions = []\nrect_size = None\n\ndef setup():\n    global rect_size\n\n    createP(\"Hi! This is an example of how to use p5.dom.js with pyp5js\")\n\n    # creates a container div\n    slider_div = createDiv()\n    slider_div.style(\"display\", \"block\")\n\n    # creates the slider\n    rect_size = createSlider(0, 600, 100)\n    rect_size.style('width', '50%')\n\n    # adds the slider to the container div\n    slider_div.child(rect_size)\n\n    createCanvas(600, 600)\n\n    for x in range(-rect_base_size, width + rect_base_size, rect_base_size):\n        for y in range(-rect_base_size, height + rect_base_size, rect_base_size):\n            positions.append((x, y))\n\n    noFill()\n    strokeWeight(2)\n    rectMode(CENTER)\n\n\ndef draw():\n    background(255)\n    size = rect_size.value()\n    for x, y in positions:\n        rect(x, y, size, size)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_008/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/transcrypt/sketch_008/target/org.transcrypt.__runtime__.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:16\nvar __name__ = 'org.transcrypt.__runtime__';\nexport var __envir__ = {};\n__envir__.interpreter_name = 'python';\n__envir__.transpiler_name = 'transcrypt';\n__envir__.executor_name = __envir__.transpiler_name;\n__envir__.transpiler_version = '3.9.0';\n\nexport function __nest__ (headObject, tailNames, value) {\n    var current = headObject;\n    if (tailNames != '') {\n        var tailChain = tailNames.split ('.');\n        var firstNewIndex = tailChain.length;\n        for (var index = 0; index < tailChain.length; index++) {\n            if (!current.hasOwnProperty (tailChain [index])) {\n                firstNewIndex = index;\n                break;\n            }\n            current = current [tailChain [index]];\n        }\n        for (var index = firstNewIndex; index < tailChain.length; index++) {\n            current [tailChain [index]] = {};\n            current = current [tailChain [index]];\n        }\n    }\n    for (let attrib of Object.getOwnPropertyNames (value)) {\n        Object.defineProperty (current, attrib, {\n            get () {return value [attrib];},\n            enumerable: true,\n            configurable: true\n        });\n    }\n};\nexport function __init__ (module) {\n    if (!module.__inited__) {\n        module.__all__.__init__ (module.__all__);\n        module.__inited__ = true;\n    }\n    return module.__all__;\n};\nexport function __get__ (aThis, func, quotedFuncName) {\n    if (aThis) {\n        if (aThis.hasOwnProperty ('__class__') || typeof aThis == 'string' || aThis instanceof String) {\n            if (quotedFuncName) {\n                Object.defineProperty (aThis, quotedFuncName, {\n                    value: function () {\n                        var args = [] .slice.apply (arguments);\n                        return func.apply (null, [aThis] .concat (args));\n                    },\n                    writable: true,\n                    enumerable: true,\n                    configurable: true\n                });\n            }\n            return function () {\n                var args = [] .slice.apply (arguments);\n                return func.apply (null, [aThis.__proxy__ ? aThis.__proxy__ : aThis] .concat (args));\n            };\n        }\n        else {\n            return func;\n        }\n    }\n    else {\n        return func;\n    }\n};\nexport function __getcm__ (aThis, func, quotedFuncName) {\n    if (aThis.hasOwnProperty ('__class__')) {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis.__class__] .concat (args));\n        };\n    }\n    else {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis] .concat (args));\n        };\n    }\n};\nexport function __getsm__ (aThis, func, quotedFuncName) {\n    return func;\n};\nexport var py_metatype = {\n    __name__: 'type',\n    __bases__: [],\n    __new__: function (meta, name, bases, attribs) {\n        var cls = function () {\n            var args = [] .slice.apply (arguments);\n            return cls.__new__ (args);\n        };\n        for (var index = bases.length - 1; index >= 0; index--) {\n            var base = bases [index];\n            for (var attrib in base) {\n                var descrip = Object.getOwnPropertyDescriptor (base, attrib);\n                if (descrip == null) {\n                    continue;\n                }\n                Object.defineProperty (cls, attrib, descrip);\n            }\n            for (let symbol of Object.getOwnPropertySymbols (base)) {\n                let descrip = Object.getOwnPropertyDescriptor (base, symbol);\n                Object.defineProperty (cls, symbol, descrip);\n            }\n        }\n        cls.__metaclass__ = meta;\n        cls.__name__ = name.startsWith ('py_') ? name.slice (3) : name;\n        cls.__bases__ = bases;\n        for (var attrib in attribs) {\n            var descrip = Object.getOwnPropertyDescriptor (attribs, attrib);\n            Object.defineProperty (cls, attrib, descrip);\n        }\n        for (let symbol of Object.getOwnPropertySymbols (attribs)) {\n            let descrip = Object.getOwnPropertyDescriptor (attribs, symbol);\n            Object.defineProperty (cls, symbol, descrip);\n        }\n        return cls;\n    }\n};\npy_metatype.__metaclass__ = py_metatype;\nexport var object = {\n    __init__: function (self) {},\n    __metaclass__: py_metatype,\n    __name__: 'object',\n    __bases__: [],\n    __new__: function (args) {\n        var instance = Object.create (this, {__class__: {value: this, enumerable: true}});\n        if ('__getattr__' in this || '__setattr__' in this) {\n            instance.__proxy__ = new Proxy (instance, {\n                get: function (target, name) {\n                    let result = target [name];\n                    if (result == undefined) {\n                        return target.__getattr__ (name);\n                    }\n                    else {\n                        return result;\n                    }\n                },\n                set: function (target, name, value) {\n                    try {\n                        target.__setattr__ (name, value);\n                    }\n                    catch (exception) {\n                        target [name] = value;\n                    }\n                    return true;\n                }\n            })\n\t\t\tinstance = instance.__proxy__\n        }\n        this.__init__.apply (null, [instance] .concat (args));\n        return instance;\n    }\n};\nexport function __class__ (name, bases, attribs, meta) {\n    if (meta === undefined) {\n        meta = bases [0] .__metaclass__;\n    }\n    return meta.__new__ (meta, name, bases, attribs);\n};\nexport function __pragma__ () {};\nexport function __call__ (/* <callee>, <this>, <params>* */) {\n    var args = [] .slice.apply (arguments);\n    if (typeof args [0] == 'object' && '__call__' in args [0]) {\n        return args [0] .__call__ .apply (args [1], args.slice (2));\n    }\n    else {\n        return args [0] .apply (args [1], args.slice (2));\n    }\n};\n__envir__.executor_name = __envir__.transpiler_name;\nvar __main__ = {__file__: ''};\nvar __except__ = null;\nexport function __kwargtrans__ (anObject) {\n    anObject.__kwargtrans__ = null;\n    anObject.constructor = Object;\n    return anObject;\n}\nexport function __super__ (aClass, methodName) {\n    for (let base of aClass.__bases__) {\n        if (methodName in base) {\n           return base [methodName];\n        }\n    }\n    throw new Exception ('Superclass method not found');\n}\nexport function property (getter, setter) {\n    if (!setter) {\n        setter = function () {};\n    }\n    return {get: function () {return getter (this)}, set: function (value) {setter (this, value)}, enumerable: true};\n}\nexport function __setproperty__ (anObject, name, descriptor) {\n    if (!anObject.hasOwnProperty (name)) {\n        Object.defineProperty (anObject, name, descriptor);\n    }\n}\nexport function assert (condition, message) {\n    if (!condition) {\n        throw AssertionError (message, new Error ());\n    }\n}\nexport function __mergekwargtrans__ (object0, object1) {\n    var result = {};\n    for (var attrib in object0) {\n        result [attrib] = object0 [attrib];\n    }\n    for (var attrib in object1) {\n        result [attrib] = object1 [attrib];\n    }\n    return result;\n};\nexport function __mergefields__ (targetClass, sourceClass) {\n    let fieldNames = ['__reprfields__', '__comparefields__', '__initfields__']\n    if (sourceClass [fieldNames [0]]) {\n        if (targetClass [fieldNames [0]]) {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set ([...targetClass [fieldName], ...sourceClass [fieldName]]);\n            }\n        }\n        else {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set (sourceClass [fieldName]);\n            }\n        }\n    }\n}\nexport function __withblock__ (manager, statements) {\n    if (hasattr (manager, '__enter__')) {\n        try {\n            manager.__enter__ ();\n            statements ();\n            manager.__exit__ ();\n        }\n        catch (exception) {\n            if (! (manager.__exit__ (exception.name, exception, exception.stack))) {\n                throw exception;\n            }\n        }\n    }\n    else {\n        statements ();\n        manager.close ();\n    }\n};\nexport function dir (obj) {\n    var aList = [];\n    for (var aKey in obj) {\n        aList.push (aKey.startsWith ('py_') ? aKey.slice (3) : aKey);\n    }\n    aList.sort ();\n    return aList;\n};\nexport function setattr (obj, name, value) {\n    obj [name] = value;\n};\nexport function getattr (obj, name) {\n    return name in obj ? obj [name] : obj ['py_' + name];\n};\nexport function hasattr (obj, name) {\n    try {\n        return name in obj || 'py_' + name in obj;\n    }\n    catch (exception) {\n        return false;\n    }\n};\nexport function delattr (obj, name) {\n    if (name in obj) {\n        delete obj [name];\n    }\n    else {\n        delete obj ['py_' + name];\n    }\n};\nexport function __in__ (element, container) {\n    if (container === undefined || container === null) {\n        return false;\n    }\n    if (container.__contains__ instanceof Function) {\n        return container.__contains__ (element);\n    }\n    else {\n        return (\n            container.indexOf ?\n            container.indexOf (element) > -1 :\n            container.hasOwnProperty (element)\n        );\n    }\n};\nexport function __specialattrib__ (attrib) {\n    return (attrib.startswith ('__') && attrib.endswith ('__')) || attrib == 'constructor' || attrib.startswith ('py_');\n};\nexport function len (anObject) {\n    if (anObject === undefined || anObject === null) {\n        return 0;\n    }\n    if (anObject.__len__ instanceof Function) {\n        return anObject.__len__ ();\n    }\n    if (anObject.length !== undefined) {\n        return anObject.length;\n    }\n    var length = 0;\n    for (var attr in anObject) {\n        if (!__specialattrib__ (attr)) {\n            length++;\n        }\n    }\n    return length;\n};\nexport function __i__ (any) {\n    return py_typeof (any) == dict ? any.py_keys () : any;\n}\nexport function __k__ (keyed, key) {\n    var result = keyed [key];\n    if (typeof result == 'undefined') {\n        if (keyed instanceof Array)\n            if (key == +key && key >= 0 && keyed.length > key)\n                return result;\n            else\n                throw IndexError (key, new Error());\n        else\n            throw KeyError (key, new Error());\n    }\n    return result;\n}\nexport function __t__ (target) {\n    return (\n        target === undefined || target === null ? false :\n        ['boolean', 'number'] .indexOf (typeof target) >= 0 ? target :\n        target.__bool__ instanceof Function ? (target.__bool__ () ? target : false) :\n        target.__len__ instanceof Function ?  (target.__len__ () !== 0 ? target : false) :\n        target instanceof Function ? target :\n        len (target) !== 0 ? target :\n        false\n    );\n}\nexport function float (any) {\n    if (any == 'inf') {\n        return Infinity;\n    }\n    else if (any == '-inf') {\n        return -Infinity;\n    }\n    else if (any == 'nan') {\n        return NaN;\n    }\n    else if (isNaN (parseFloat (any))) {\n        if (any === false) {\n            return 0;\n        }\n        else if (any === true) {\n            return 1;\n        }\n        else {\n            throw ValueError (\"could not convert string to float: '\" + str(any) + \"'\", new Error ());\n        }\n    }\n    else {\n        return +any;\n    }\n};\nfloat.__name__ = 'float';\nfloat.__bases__ = [object];\nexport function int (any) {\n    return float (any) | 0\n};\nint.__name__ = 'int';\nint.__bases__ = [object];\nexport function bool (any) {\n    return !!__t__ (any);\n};\nbool.__name__ = 'bool';\nbool.__bases__ = [int];\nexport function py_typeof (anObject) {\n    var aType = typeof anObject;\n    if (aType == 'object') {\n        try {\n            return '__class__' in anObject ? anObject.__class__ : object;\n        }\n        catch (exception) {\n            return aType;\n        }\n    }\n    else {\n        return (\n            aType == 'boolean' ? bool :\n            aType == 'string' ? str :\n            aType == 'number' ? (anObject % 1 == 0 ? int : float) :\n            null\n        );\n    }\n};\nexport function issubclass (aClass, classinfo) {\n    if (classinfo instanceof Array) {\n        for (let aClass2 of classinfo) {\n            if (issubclass (aClass, aClass2)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    try {\n        var aClass2 = aClass;\n        if (aClass2 == classinfo) {\n            return true;\n        }\n        else {\n            var bases = [].slice.call (aClass2.__bases__);\n            while (bases.length) {\n                aClass2 = bases.shift ();\n                if (aClass2 == classinfo) {\n                    return true;\n                }\n                if (aClass2.__bases__.length) {\n                    bases = [].slice.call (aClass2.__bases__).concat (bases);\n                }\n            }\n            return false;\n        }\n    }\n    catch (exception) {\n        return aClass == classinfo || classinfo == object;\n    }\n};\nexport function isinstance (anObject, classinfo) {\n    try {\n        return '__class__' in anObject ? issubclass (anObject.__class__, classinfo) : issubclass (py_typeof (anObject), classinfo);\n    }\n    catch (exception) {\n        return issubclass (py_typeof (anObject), classinfo);\n    }\n};\nexport function callable (anObject) {\n    return anObject && typeof anObject == 'object' && '__call__' in anObject ? true : typeof anObject === 'function';\n};\nexport function repr (anObject) {\n    try {\n        return anObject.__repr__ ();\n    }\n    catch (exception) {\n        try {\n            return anObject.__str__ ();\n        }\n        catch (exception) {\n            try {\n                if (anObject == null) {\n                    return 'None';\n                }\n                else if (anObject.constructor == Object) {\n                    var result = '{';\n                    var comma = false;\n                    for (var attrib in anObject) {\n                        if (!__specialattrib__ (attrib)) {\n                            if (attrib.isnumeric ()) {\n                                var attribRepr = attrib;\n                            }\n                            else {\n                                var attribRepr = '\\'' + attrib + '\\'';\n                            }\n                            if (comma) {\n                                result += ', ';\n                            }\n                            else {\n                                comma = true;\n                            }\n                            result += attribRepr + ': ' + repr (anObject [attrib]);\n                        }\n                    }\n                    result += '}';\n                    return result;\n                }\n                else {\n                    return typeof anObject == 'boolean' ? anObject.toString () .capitalize () : anObject.toString ();\n                }\n            }\n            catch (exception) {\n                return '<object of type: ' + typeof anObject + '>';\n            }\n        }\n    }\n};\nexport function chr (charCode) {\n    return String.fromCharCode (charCode);\n};\nexport function ord (aChar) {\n    return aChar.charCodeAt (0);\n};\nexport function max (nrOrSeq) {\n    return arguments.length == 1 ? Math.max (...nrOrSeq) : Math.max (...arguments);\n};\nexport function min (nrOrSeq) {\n    return arguments.length == 1 ? Math.min (...nrOrSeq) : Math.min (...arguments);\n};\nexport var abs = Math.abs;\nexport function round (number, ndigits) {\n    if (ndigits) {\n        var scale = Math.pow (10, ndigits);\n        number *= scale;\n    }\n    var rounded = Math.round (number);\n    if (rounded - number == 0.5 && rounded % 2) {\n        rounded -= 1;\n    }\n    if (ndigits) {\n        rounded /= scale;\n    }\n    return rounded;\n};\nexport function __jsUsePyNext__ () {\n    try {\n        var result = this.__next__ ();\n        return {value: result, done: false};\n    }\n    catch (exception) {\n        return {value: undefined, done: true};\n    }\n}\nexport function __pyUseJsNext__ () {\n    var result = this.next ();\n    if (result.done) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result.value;\n    }\n}\nexport function py_iter (iterable) {\n    if (typeof iterable == 'string' || '__iter__' in iterable) {\n        var result = iterable.__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('selector' in iterable) {\n        var result = list (iterable) .__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('next' in iterable) {\n        var result = iterable\n        if (! ('__next__' in result)) {\n            result.__next__ = __pyUseJsNext__;\n        }\n    }\n    else if (Symbol.iterator in iterable) {\n        var result = iterable [Symbol.iterator] ();\n        result.__next__ = __pyUseJsNext__;\n    }\n    else {\n        throw IterableError (new Error ());\n    }\n    result [Symbol.iterator] = function () {return result;};\n    return result;\n}\nexport function py_next (iterator) {\n    try {\n        var result = iterator.__next__ ();\n    }\n    catch (exception) {\n        var result = iterator.next ();\n        if (result.done) {\n            throw StopIteration (new Error ());\n        }\n        else {\n            return result.value;\n        }\n    }\n    if (result == undefined) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result;\n    }\n}\nexport function __PyIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__PyIterator__.prototype.__next__ = function() {\n    if (this.index < this.iterable.length) {\n        return this.iterable [this.index++];\n    }\n    else {\n        throw StopIteration (new Error ());\n    }\n};\nexport function __JsIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__JsIterator__.prototype.next = function () {\n    if (this.index < this.iterable.py_keys.length) {\n        return {value: this.index++, done: false};\n    }\n    else {\n        return {value: undefined, done: true};\n    }\n};\nexport function py_reversed (iterable) {\n    iterable = iterable.slice ();\n    iterable.reverse ();\n    return iterable;\n};\nexport function zip () {\n    var args = [] .slice.call (arguments);\n    for (var i = 0; i < args.length; i++) {\n        if (typeof args [i] == 'string') {\n            args [i] = args [i] .split ('');\n        }\n        else if (!Array.isArray (args [i])) {\n            args [i] = Array.from (args [i]);\n        }\n    }\n    var shortest = args.length == 0 ? [] : args.reduce (\n        function (array0, array1) {\n            return array0.length < array1.length ? array0 : array1;\n        }\n    );\n    return shortest.map (\n        function (current, index) {\n            return args.map (\n                function (current) {\n                    return current [index];\n                }\n            );\n        }\n    );\n};\nexport function range (start, stop, step) {\n    if (stop == undefined) {\n        stop = start;\n        start = 0;\n    }\n    if (step == undefined) {\n        step = 1;\n    }\n    if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) {\n        return [];\n    }\n    var result = [];\n    for (var i = start; step > 0 ? i < stop : i > stop; i += step) {\n        result.push(i);\n    }\n    return result;\n};\nexport function any (iterable) {\n    for (let item of iterable) {\n        if (bool (item)) {\n            return true;\n        }\n    }\n    return false;\n}\nexport function all (iterable) {\n    for (let item of iterable) {\n        if (! bool (item)) {\n            return false;\n        }\n    }\n    return true;\n}\nexport function sum (iterable) {\n    let result = 0;\n    for (let item of iterable) {\n        result += item;\n    }\n    return result;\n}\nexport function enumerate (iterable) {\n    return zip (range (len (iterable)), iterable);\n}\nexport function copy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = anObject [attrib];\n            }\n        }\n        return result;\n    }\n}\nexport function deepcopy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = deepcopy (anObject [attrib]);\n            }\n        }\n        return result;\n    }\n}\nexport function list (iterable) {\n    let instance = iterable ? Array.from (iterable) : [];\n    return instance;\n}\nArray.prototype.__class__ = list;\nlist.__name__ = 'list';\nlist.__bases__ = [object];\nArray.prototype.__iter__ = function () {return new __PyIterator__ (this);};\nArray.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    else if (stop > this.length) {\n        stop = this.length;\n    }\n    if (step == 1) {\n        return Array.prototype.slice.call(this, start, stop);\n    }\n    let result = list ([]);\n    for (let index = start; index < stop; index += step) {\n        result.push (this [index]);\n    }\n    return result;\n};\nArray.prototype.__setslice__ = function (start, stop, step, source) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    if (step == null) {\n        Array.prototype.splice.apply (this, [start, stop - start] .concat (source));\n    }\n    else {\n        let sourceIndex = 0;\n        for (let targetIndex = start; targetIndex < stop; targetIndex += step) {\n            this [targetIndex] = source [sourceIndex++];\n        }\n    }\n};\nArray.prototype.__repr__ = function () {\n    if (this.__class__ == set && !this.length) {\n        return 'set()';\n    }\n    let result = !this.__class__ || this.__class__ == list ? '[' : this.__class__ == tuple ? '(' : '{';\n    for (let index = 0; index < this.length; index++) {\n        if (index) {\n            result += ', ';\n        }\n        result += repr (this [index]);\n    }\n    if (this.__class__ == tuple && this.length == 1) {\n        result += ',';\n    }\n    result += !this.__class__ || this.__class__ == list ? ']' : this.__class__ == tuple ? ')' : '}';;\n    return result;\n};\nArray.prototype.__str__ = Array.prototype.__repr__;\nArray.prototype.append = function (element) {\n    this.push (element);\n};\nArray.prototype.py_clear = function () {\n    this.length = 0;\n};\nArray.prototype.extend = function (aList) {\n    this.push.apply (this, aList);\n};\nArray.prototype.insert = function (index, element) {\n    this.splice (index, 0, element);\n};\nArray.prototype.remove = function (element) {\n    let index = this.indexOf (element);\n    if (index == -1) {\n        throw ValueError (\"list.remove(x): x not in list\", new Error ());\n    }\n    this.splice (index, 1);\n};\nArray.prototype.index = function (element) {\n    return this.indexOf (element);\n};\nArray.prototype.py_pop = function (index) {\n    if (index == undefined) {\n        return this.pop ();\n    }\n    else {\n        return this.splice (index, 1) [0];\n    }\n};\nArray.prototype.py_sort = function () {\n    __sort__.apply  (null, [this].concat ([] .slice.apply (arguments)));\n};\nArray.prototype.__add__ = function (aList) {\n    return list (this.concat (aList));\n};\nArray.prototype.__mul__ = function (scalar) {\n    let result = this;\n    for (let i = 1; i < scalar; i++) {\n        result = result.concat (this);\n    }\n    return result;\n};\nArray.prototype.__rmul__ = Array.prototype.__mul__;\nexport function tuple (iterable) {\n    let instance = iterable ? [] .slice.apply (iterable) : [];\n    instance.__class__ = tuple;\n    return instance;\n}\ntuple.__name__ = 'tuple';\ntuple.__bases__ = [object];\nexport function set (iterable) {\n    let instance = [];\n    if (iterable) {\n        for (let index = 0; index < iterable.length; index++) {\n            instance.add (iterable [index]);\n        }\n    }\n    instance.__class__ = set;\n    return instance;\n}\nset.__name__ = 'set';\nset.__bases__ = [object];\nArray.prototype.__bindexOf__ = function (element) {\n    element += '';\n    let mindex = 0;\n    let maxdex = this.length - 1;\n    while (mindex <= maxdex) {\n        let index = (mindex + maxdex) / 2 | 0;\n        let middle = this [index] + '';\n        if (middle < element) {\n            mindex = index + 1;\n        }\n        else if (middle > element) {\n            maxdex = index - 1;\n        }\n        else {\n            return index;\n        }\n    }\n    return -1;\n};\nArray.prototype.add = function (element) {\n    if (this.indexOf (element) == -1) {\n        this.push (element);\n    }\n};\nArray.prototype.discard = function (element) {\n    var index = this.indexOf (element);\n    if (index != -1) {\n        this.splice (index, 1);\n    }\n};\nArray.prototype.isdisjoint = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issuperset = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) == -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issubset = function (other) {\n    return set (other.slice ()) .issuperset (this);\n};\nArray.prototype.union = function (other) {\n    let result = set (this.slice () .sort ());\n    for (let i = 0; i < other.length; i++) {\n        if (result.__bindexOf__ (other [i]) == -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.intersection = function (other) {\n    this.sort ();\n    let result = set ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.difference = function (other) {\n    let sother = set (other.slice () .sort ());\n    let result = set ();\n    for (let i = 0; i < this.length; i++) {\n        if (sother.__bindexOf__ (this [i]) == -1) {\n            result.push (this [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.symmetric_difference = function (other) {\n    return this.union (other) .difference (this.intersection (other));\n};\nArray.prototype.py_update = function () {\n    let updated = [] .concat.apply (this.slice (), arguments) .sort ();\n    this.py_clear ();\n    for (let i = 0; i < updated.length; i++) {\n        if (updated [i] != updated [i - 1]) {\n            this.push (updated [i]);\n        }\n    }\n};\nArray.prototype.__eq__ = function (other) {\n    if (this.length != other.length) {\n        return false;\n    }\n    if (this.__class__ == set) {\n        this.sort ();\n        other.sort ();\n    }\n    for (let i = 0; i < this.length; i++) {\n        if (this [i] != other [i]) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.__ne__ = function (other) {\n    return !this.__eq__ (other);\n};\nArray.prototype.__le__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issubset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] > other [i]) {\n                return false;\n            }\n            else if (this [i] < other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__ge__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issuperset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] < other [i]) {\n                return false;\n            }\n            else if (this [i] > other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__lt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issubset (other) && !this.issuperset (other) :\n        !this.__ge__ (other)\n    );\n};\nArray.prototype.__gt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issuperset (other) && !this.issubset (other) :\n        !this.__le__ (other)\n    );\n};\nexport function bytearray (bytable, encoding) {\n    if (bytable == undefined) {\n        return new Uint8Array (0);\n    }\n    else {\n        let aType = py_typeof (bytable);\n        if (aType == int) {\n            return new Uint8Array (bytable);\n        }\n        else if (aType == str) {\n            let aBytes = new Uint8Array (len (bytable));\n            for (let i = 0; i < len (bytable); i++) {\n                aBytes [i] = bytable.charCodeAt (i);\n            }\n            return aBytes;\n        }\n        else if (aType == list || aType == tuple) {\n            return new Uint8Array (bytable);\n        }\n        else {\n            throw py_TypeError;\n        }\n    }\n}\nexport var bytes = bytearray;\nUint8Array.prototype.__add__ = function (aBytes) {\n    let result = new Uint8Array (this.length + aBytes.length);\n    result.set (this);\n    result.set (aBytes, this.length);\n    return result;\n};\nUint8Array.prototype.__mul__ = function (scalar) {\n    let result = new Uint8Array (scalar * this.length);\n    for (let i = 0; i < scalar; i++) {\n        result.set (this, i * this.length);\n    }\n    return result;\n};\nUint8Array.prototype.__rmul__ = Uint8Array.prototype.__mul__;\nexport function str (stringable) {\n    if (typeof stringable === 'number')\n        return stringable.toString();\n    else {\n        try {\n            return stringable.__str__ ();\n        }\n        catch (exception) {\n            try {\n                return repr (stringable);\n            }\n            catch (exception) {\n                return String (stringable);\n            }\n        }\n    }\n};\nString.prototype.__class__ = str;\nstr.__name__ = 'str';\nstr.__bases__ = [object];\nString.prototype.__iter__ = function () {new __PyIterator__ (this);};\nString.prototype.__repr__ = function () {\n    return (this.indexOf ('\\'') == -1 ? '\\'' + this + '\\'' : '\"' + this + '\"') .py_replace ('\\t', '\\\\t') .py_replace ('\\n', '\\\\n');\n};\nString.prototype.__str__ = function () {\n    return this;\n};\nString.prototype.capitalize = function () {\n    return this.charAt (0).toUpperCase () + this.slice (1);\n};\nString.prototype.endswith = function (suffix) {\n    if (suffix instanceof Array) {\n        for (var i=0;i<suffix.length;i++) {\n            if (this.slice (-suffix[i].length) == suffix[i])\n                return true;\n        }\n    } else\n        return suffix == '' || this.slice (-suffix.length) == suffix;\n    return false;\n};\nString.prototype.find = function (sub, start) {\n    return this.indexOf (sub, start);\n};\nString.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    var result = '';\n    if (step == 1) {\n        result = this.substring (start, stop);\n    }\n    else {\n        for (var index = start; index < stop; index += step) {\n            result = result.concat (this.charAt(index));\n        }\n    }\n    return result;\n};\n__setproperty__ (String.prototype, 'format', {\n    get: function () {return __get__ (this, function (self) {\n        var args = tuple ([] .slice.apply (arguments).slice (1));\n        var autoIndex = 0;\n        return self.replace (/\\{(\\w*)\\}/g, function (match, key) {\n            if (key == '') {\n                key = autoIndex++;\n            }\n            if (key == +key) {\n                return args [key] === undefined ? match : str (args [key]);\n            }\n            else {\n                for (var index = 0; index < args.length; index++) {\n                    if (typeof args [index] == 'object' && args [index][key] !== undefined) {\n                        return str (args [index][key]);\n                    }\n                }\n                return match;\n            }\n        });\n    });},\n    enumerable: true\n});\nString.prototype.isalnum = function () {\n    return /^[0-9a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isalpha = function () {\n    return /^[a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isdecimal = function () {\n    return /^[0-9]{1,}$/.test(this)\n}\nString.prototype.isdigit = function () {\n    return this.isdecimal()\n}\nString.prototype.islower = function () {\n    return /^[a-z]{1,}$/.test(this)\n}\nString.prototype.isupper = function () {\n    return /^[A-Z]{1,}$/.test(this)\n}\nString.prototype.isspace = function () {\n    return /^[\\s]{1,}$/.test(this)\n}\nString.prototype.isnumeric = function () {\n    return !isNaN (parseFloat (this)) && isFinite (this);\n};\nString.prototype.join = function (strings) {\n    strings = Array.from (strings);\n    return strings.join (this);\n};\nString.prototype.lower = function () {\n    return this.toLowerCase ();\n};\nString.prototype.py_replace = function (old, aNew, maxreplace) {\n    return this.split (old, maxreplace) .join (aNew);\n};\nString.prototype.lstrip = function () {\n    return this.replace (/^\\s*/g, '');\n};\nString.prototype.rfind = function (sub, start) {\n    return this.lastIndexOf (sub, start);\n};\nString.prototype.rsplit = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            var maxrsplit = result.length - maxsplit;\n            return [result.slice (0, maxrsplit) .join (sep)] .concat (result.slice (maxrsplit));\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.rstrip = function () {\n    return this.replace (/\\s*$/g, '');\n};\nString.prototype.py_split = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            return result.slice (0, maxsplit).concat ([result.slice (maxsplit).join (sep)]);\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.startswith = function (prefix) {\n    if (prefix instanceof Array) {\n        for (var i=0;i<prefix.length;i++) {\n            if (this.indexOf (prefix [i]) == 0)\n                return true;\n        }\n    } else\n        return this.indexOf (prefix) == 0;\n    return false;\n};\nString.prototype.strip = function () {\n    return this.trim ();\n};\nString.prototype.upper = function () {\n    return this.toUpperCase ();\n};\nString.prototype.__mul__ = function (scalar) {\n    var result = '';\n    for (var i = 0; i < scalar; i++) {\n        result = result + this;\n    }\n    return result;\n};\nString.prototype.__rmul__ = String.prototype.__mul__;\nfunction __contains__ (element) {\n    return this.hasOwnProperty (element);\n}\nfunction __keys__ () {\n    var keys = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            keys.push (attrib);\n        }\n    }\n    return keys;\n}\nfunction __items__ () {\n    var items = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            items.push ([attrib, this [attrib]]);\n        }\n    }\n    return items;\n}\nfunction __del__ (key) {\n    delete this [key];\n}\nfunction __clear__ () {\n    for (var attrib in this) {\n        delete this [attrib];\n    }\n}\nfunction __getdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result == undefined) {\n        result = this ['py_' + aKey]\n    }\n    return result == undefined ? (aDefault == undefined ? null : aDefault) : result;\n}\nfunction __setdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        return result;\n    }\n    var val = aDefault == undefined ? null : aDefault;\n    this [aKey] = val;\n    return val;\n}\nfunction __pop__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        delete this [aKey];\n        return result;\n    } else {\n        if ( aDefault === undefined ) {\n            throw KeyError (aKey, new Error());\n        }\n    }\n    return aDefault;\n}\nfunction __popitem__ () {\n    var aKey = Object.keys (this) [0];\n    if (aKey == null) {\n        throw KeyError (\"popitem(): dictionary is empty\", new Error ());\n    }\n    var result = tuple ([aKey, this [aKey]]);\n    delete this [aKey];\n    return result;\n}\nfunction __update__ (aDict) {\n    for (var aKey in aDict) {\n        this [aKey] = aDict [aKey];\n    }\n}\nfunction __values__ () {\n    var values = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            values.push (this [attrib]);\n        }\n    }\n    return values;\n}\nfunction __dgetitem__ (aKey) {\n    return this [aKey];\n}\nfunction __dsetitem__ (aKey, aValue) {\n    this [aKey] = aValue;\n}\nexport function dict (objectOrPairs) {\n    var instance = {};\n    if (!objectOrPairs || objectOrPairs instanceof Array) {\n        if (objectOrPairs) {\n            for (var index = 0; index < objectOrPairs.length; index++) {\n                var pair = objectOrPairs [index];\n                if ( !(pair instanceof Array) || pair.length != 2) {\n                    throw ValueError(\n                        \"dict update sequence element #\" + index +\n                        \" has length \" + pair.length +\n                        \"; 2 is required\", new Error());\n                }\n                var key = pair [0];\n                var val = pair [1];\n                if (!(objectOrPairs instanceof Array) && objectOrPairs instanceof Object) {\n                     if (!isinstance (objectOrPairs, dict)) {\n                         val = dict (val);\n                     }\n                }\n                instance [key] = val;\n            }\n        }\n    }\n    else {\n        if (isinstance (objectOrPairs, dict)) {\n            var aKeys = objectOrPairs.py_keys ();\n            for (var index = 0; index < aKeys.length; index++ ) {\n                var key = aKeys [index];\n                instance [key] = objectOrPairs [key];\n            }\n        } else if (objectOrPairs instanceof Object) {\n            instance = objectOrPairs;\n        } else {\n            throw ValueError (\"Invalid type of object for dict creation\", new Error ());\n        }\n    }\n    __setproperty__ (instance, '__class__', {value: dict, enumerable: false, writable: true});\n    __setproperty__ (instance, '__contains__', {value: __contains__, enumerable: false});\n    __setproperty__ (instance, 'py_keys', {value: __keys__, enumerable: false});\n    __setproperty__ (instance, '__iter__', {value: function () {new __PyIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, Symbol.iterator, {value: function () {new __JsIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, 'py_items', {value: __items__, enumerable: false});\n    __setproperty__ (instance, 'py_del', {value: __del__, enumerable: false});\n    __setproperty__ (instance, 'py_clear', {value: __clear__, enumerable: false});\n    __setproperty__ (instance, 'py_get', {value: __getdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_setdefault', {value: __setdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_pop', {value: __pop__, enumerable: false});\n    __setproperty__ (instance, 'py_popitem', {value: __popitem__, enumerable: false});\n    __setproperty__ (instance, 'py_update', {value: __update__, enumerable: false});\n    __setproperty__ (instance, 'py_values', {value: __values__, enumerable: false});\n    __setproperty__ (instance, '__getitem__', {value: __dgetitem__, enumerable: false});\n    __setproperty__ (instance, '__setitem__', {value: __dsetitem__, enumerable: false});\n    return instance;\n}\ndict.__name__ = 'dict';\ndict.__bases__ = [object];\nfunction __setdoc__ (docString) {\n    this.__doc__ = docString;\n    return this;\n}\n__setproperty__ (Function.prototype, '__setdoc__', {value: __setdoc__, enumerable: false});\nexport function __jsmod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __mod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __pow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport var pow = __pow__;\nexport function __neg__ (a) {\n    if (typeof a == 'object' && '__neg__' in a) {\n        return a.__neg__ ();\n    }\n    else {\n        return -a;\n    }\n};\nexport function __matmul__ (a, b) {\n    return a.__matmul__ (b);\n};\nexport function __mul__ (a, b) {\n    if (typeof a == 'object' && '__mul__' in a) {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return b.__rmul__ (a);\n    }\n    else {\n        return a * b;\n    }\n};\nexport function __truediv__ (a, b) {\n    if (typeof a == 'object' && '__truediv__' in a) {\n        return a.__truediv__ (b);\n    }\n    else if (typeof b == 'object' && '__rtruediv__' in b) {\n        return b.__rtruediv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return a / b;\n    }\n};\nexport function __floordiv__ (a, b) {\n    if (typeof a == 'object' && '__floordiv__' in a) {\n        return a.__floordiv__ (b);\n    }\n    else if (typeof b == 'object' && '__rfloordiv__' in b) {\n        return b.__rfloordiv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return Math.floor (a / b);\n    }\n};\nexport function __add__ (a, b) {\n    if (typeof a == 'object' && '__add__' in a) {\n        return a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return b.__radd__ (a);\n    }\n    else {\n        return a + b;\n    }\n};\nexport function __sub__ (a, b) {\n    if (typeof a == 'object' && '__sub__' in a) {\n        return a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return b.__rsub__ (a);\n    }\n    else {\n        return a - b;\n    }\n};\nexport function __lshift__ (a, b) {\n    if (typeof a == 'object' && '__lshift__' in a) {\n        return a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return b.__rlshift__ (a);\n    }\n    else {\n        return a << b;\n    }\n};\nexport function __rshift__ (a, b) {\n    if (typeof a == 'object' && '__rshift__' in a) {\n        return a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return b.__rrshift__ (a);\n    }\n    else {\n        return a >> b;\n    }\n};\nexport function __or__ (a, b) {\n    if (typeof a == 'object' && '__or__' in a) {\n        return a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return b.__ror__ (a);\n    }\n    else {\n        return a | b;\n    }\n};\nexport function __xor__ (a, b) {\n    if (typeof a == 'object' && '__xor__' in a) {\n        return a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return b.__rxor__ (a);\n    }\n    else {\n        return a ^ b;\n    }\n};\nexport function __and__ (a, b) {\n    if (typeof a == 'object' && '__and__' in a) {\n        return a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return b.__rand__ (a);\n    }\n    else {\n        return a & b;\n    }\n};\nexport function __eq__ (a, b) {\n    if (typeof a == 'object' && '__eq__' in a) {\n        return a.__eq__ (b);\n    }\n    else {\n        return a == b;\n    }\n};\nexport function __ne__ (a, b) {\n    if (typeof a == 'object' && '__ne__' in a) {\n        return a.__ne__ (b);\n    }\n    else {\n        return a != b\n    }\n};\nexport function __lt__ (a, b) {\n    if (typeof a == 'object' && '__lt__' in a) {\n        return a.__lt__ (b);\n    }\n    else {\n        return a < b;\n    }\n};\nexport function __le__ (a, b) {\n    if (typeof a == 'object' && '__le__' in a) {\n        return a.__le__ (b);\n    }\n    else {\n        return a <= b;\n    }\n};\nexport function __gt__ (a, b) {\n    if (typeof a == 'object' && '__gt__' in a) {\n        return a.__gt__ (b);\n    }\n    else {\n        return a > b;\n    }\n};\nexport function __ge__ (a, b) {\n    if (typeof a == 'object' && '__ge__' in a) {\n        return a.__ge__ (b);\n    }\n    else {\n        return a >= b;\n    }\n};\nexport function __imatmul__ (a, b) {\n    if ('__imatmul__' in a) {\n        return a.__imatmul__ (b);\n    }\n    else {\n        return a.__matmul__ (b);\n    }\n};\nexport function __ipow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__ipow__ (b);\n    }\n    else if (typeof a == 'object' && '__ipow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport function __ijsmod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__ismod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __imod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__imod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __imul__ (a, b) {\n    if (typeof a == 'object' && '__imul__' in a) {\n        return a.__imul__ (b);\n    }\n    else if (typeof a == 'object' && '__mul__' in a) {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return a = b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return a = b.__rmul__ (a);\n    }\n    else {\n        return a *= b;\n    }\n};\nexport function __idiv__ (a, b) {\n    if (typeof a == 'object' && '__idiv__' in a) {\n        return a.__idiv__ (b);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a = a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return a = b.__rdiv__ (a);\n    }\n    else {\n        return a /= b;\n    }\n};\nexport function __iadd__ (a, b) {\n    if (typeof a == 'object' && '__iadd__' in a) {\n        return a.__iadd__ (b);\n    }\n    else if (typeof a == 'object' && '__add__' in a) {\n        return a = a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return a = b.__radd__ (a);\n    }\n    else {\n        return a += b;\n    }\n};\nexport function __isub__ (a, b) {\n    if (typeof a == 'object' && '__isub__' in a) {\n        return a.__isub__ (b);\n    }\n    else if (typeof a == 'object' && '__sub__' in a) {\n        return a = a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return a = b.__rsub__ (a);\n    }\n    else {\n        return a -= b;\n    }\n};\nexport function __ilshift__ (a, b) {\n    if (typeof a == 'object' && '__ilshift__' in a) {\n        return a.__ilshift__ (b);\n    }\n    else if (typeof a == 'object' && '__lshift__' in a) {\n        return a = a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return a = b.__rlshift__ (a);\n    }\n    else {\n        return a <<= b;\n    }\n};\nexport function __irshift__ (a, b) {\n    if (typeof a == 'object' && '__irshift__' in a) {\n        return a.__irshift__ (b);\n    }\n    else if (typeof a == 'object' && '__rshift__' in a) {\n        return a = a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return a = b.__rrshift__ (a);\n    }\n    else {\n        return a >>= b;\n    }\n};\nexport function __ior__ (a, b) {\n    if (typeof a == 'object' && '__ior__' in a) {\n        return a.__ior__ (b);\n    }\n    else if (typeof a == 'object' && '__or__' in a) {\n        return a = a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return a = b.__ror__ (a);\n    }\n    else {\n        return a |= b;\n    }\n};\nexport function __ixor__ (a, b) {\n    if (typeof a == 'object' && '__ixor__' in a) {\n        return a.__ixor__ (b);\n    }\n    else if (typeof a == 'object' && '__xor__' in a) {\n        return a = a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return a = b.__rxor__ (a);\n    }\n    else {\n        return a ^= b;\n    }\n};\nexport function __iand__ (a, b) {\n    if (typeof a == 'object' && '__iand__' in a) {\n        return a.__iand__ (b);\n    }\n    else if (typeof a == 'object' && '__and__' in a) {\n        return a = a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return a = b.__rand__ (a);\n    }\n    else {\n        return a &= b;\n    }\n};\nexport function __getitem__ (container, key) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ (key);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        return container [container.length + key];\n    }\n    else {\n        return container [key];\n    }\n};\nexport function __setitem__ (container, key, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ (key, value);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        container [container.length + key] = value;\n    }\n    else {\n        container [key] = value;\n    }\n};\nexport function __getslice__ (container, lower, upper, step) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ ([lower, upper, step]);\n    }\n    else {\n        return container.__getslice__ (lower, upper, step);\n    }\n};\nexport function __setslice__ (container, lower, upper, step, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ ([lower, upper, step], value);\n    }\n    else {\n        container.__setslice__ (lower, upper, step, value);\n    }\n};\nexport var BaseException =  __class__ ('BaseException', [object], {\n\t__module__: __name__,\n});\nexport var Exception =  __class__ ('Exception', [BaseException], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tvar kwargs = dict ();\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tdefault: kwargs [__attrib0__] = __allkwargs0__ [__attrib0__];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdelete kwargs.__kwargtrans__;\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.__args__ = args;\n\t\tif (kwargs.error != null) {\n\t\t\tself.stack = kwargs.error.stack;\n\t\t}\n\t\telse if (Error) {\n\t\t\tself.stack = new Error ().stack;\n\t\t}\n\t\telse {\n\t\t\tself.stack = 'No stack trace available';\n\t\t}\n\t});},\n\tget __repr__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]));\n\t\t}\n\t\telse {\n\t\t\treturn '{}()'.format (self.__class__.__name__);\n\t\t}\n\t});},\n\tget __str__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn str (tuple (self.__args__));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn str (self.__args__ [0]);\n\t\t}\n\t\telse {\n\t\t\treturn '';\n\t\t}\n\t});}\n});\nexport var IterableError =  __class__ ('IterableError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, \"Can't iterate over non-iterable\", __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var StopIteration =  __class__ ('StopIteration', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, 'Iterator exhausted', __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var ValueError =  __class__ ('ValueError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var KeyError =  __class__ ('KeyError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AssertionError =  __class__ ('AssertionError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tif (message) {\n\t\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t\t}\n\t\telse {\n\t\t\tException.__init__ (self, __kwargtrans__ ({error: error}));\n\t\t}\n\t});}\n});\nexport var NotImplementedError =  __class__ ('NotImplementedError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var IndexError =  __class__ ('IndexError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AttributeError =  __class__ ('AttributeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var py_TypeError =  __class__ ('py_TypeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var Warning =  __class__ ('Warning', [Exception], {\n\t__module__: __name__,\n});\nexport var UserWarning =  __class__ ('UserWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var DeprecationWarning =  __class__ ('DeprecationWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var RuntimeWarning =  __class__ ('RuntimeWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var __sort__ = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (key) {\n\t\titerable.sort ((function __lambda__ (a, b) {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\t\tcase 'a': var a = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t\tcase 'b': var b = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\treturn (key (a) > key (b) ? 1 : -(1));\n\t\t}));\n\t}\n\telse {\n\t\titerable.sort ();\n\t}\n\tif (reverse) {\n\t\titerable.reverse ();\n\t}\n};\nexport var sorted = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (py_typeof (iterable) == dict) {\n\t\tvar result = copy (iterable.py_keys ());\n\t}\n\telse {\n\t\tvar result = copy (iterable);\n\t}\n\t__sort__ (result, key, reverse);\n\treturn result;\n};\nexport var map = function (func, iterable) {\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\t__accu0__.append (func (item));\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var filter = function (func, iterable) {\n\tif (func == null) {\n\t\tvar func = bool;\n\t}\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\tif (func (item)) {\n\t\t\t\t__accu0__.append (item);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var divmod = function (n, d) {\n\treturn tuple ([Math.floor (n / d), __mod__ (n, d)]);\n};\nexport var __Terminal__ =  __class__ ('__Terminal__', [object], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tself.buffer = '';\n\t\ttry {\n\t\t\tself.element = document.getElementById ('__terminal__');\n\t\t}\n\t\tcatch (__except0__) {\n\t\t\tself.element = null;\n\t\t}\n\t\tif (self.element) {\n\t\t\tself.element.style.overflowX = 'auto';\n\t\t\tself.element.style.boxSizing = 'border-box';\n\t\t\tself.element.style.padding = '5px';\n\t\t\tself.element.innerHTML = '_';\n\t\t}\n\t});},\n\tget print () {return __get__ (this, function (self) {\n\t\tvar sep = ' ';\n\t\tvar end = '\\n';\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'sep': var sep = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'end': var end = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.buffer = '{}{}{}'.format (self.buffer, sep.join ((function () {\n\t\t\tvar __accu0__ = [];\n\t\t\tfor (var arg of args) {\n\t\t\t\t__accu0__.append (str (arg));\n\t\t\t}\n\t\t\treturn __accu0__;\n\t\t}) ()), end).__getslice__ (-(4096), null, 1);\n\t\tif (self.element) {\n\t\t\tself.element.innerHTML = self.buffer.py_replace ('\\n', '<br>').py_replace (' ', '&nbsp');\n\t\t\tself.element.scrollTop = self.element.scrollHeight;\n\t\t}\n\t\telse {\n\t\t\tconsole.log (sep.join ((function () {\n\t\t\t\tvar __accu0__ = [];\n\t\t\t\tfor (var arg of args) {\n\t\t\t\t\t__accu0__.append (str (arg));\n\t\t\t\t}\n\t\t\t\treturn __accu0__;\n\t\t\t}) ()));\n\t\t}\n\t});},\n\tget input () {return __get__ (this, function (self, question) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'question': var question = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.print ('{}'.format (question), __kwargtrans__ ({end: ''}));\n\t\tvar answer = window.prompt ('\\n'.join (self.buffer.py_split ('\\n').__getslice__ (-(8), null, 1)));\n\t\tself.print (answer);\n\t\treturn answer;\n\t});}\n});\nexport var __terminal__ = __Terminal__ ();\nexport var print = __terminal__.print;\nexport var input = __terminal__.input;\n\n//# sourceMappingURL=org.transcrypt.__runtime__.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_008/target/org.transcrypt.__runtime__.py",
    "content": "# Transcrypt runtime module\r\n\r\n#__pragma__ ('js', 'export var __envir__ = {{}};\\n{}', __include__ ('org/transcrypt/__envir__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__core__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__builtin__.js'))\r\n\r\n#__pragma__ ('skip')\r\ncopy = Math = __typeof__ = __repr__ = document = console = window = 0\r\n#__pragma__ ('noskip')\r\n\r\n#__pragma__ ('notconv')  # !!! tconv gives a problem with __terminal__, needs investigation\r\n#__pragma__ ('nokwargs')\r\n#__pragma__ ('noalias', 'sort')\r\n\r\nclass BaseException:\r\n    pass\r\n\r\nclass Exception (BaseException):\r\n    #__pragma__ ('kwargs')\r\n    def __init__ (self, *args, **kwargs):\r\n        self.__args__ = args\r\n        if kwargs.error != None:\r\n            self.stack = kwargs.error.stack # Integrate with JavaScript Error object\r\n        elif Error:\r\n            self.stack = (__new__(Error())).stack # Create our own stack if we aren't given one\r\n        else:\r\n            self.stack = 'No stack trace available'\r\n    #__pragma__ ('nokwargs')\r\n        \r\n    def __repr__ (self):\r\n        if len (self.__args__) > 1:\r\n            return '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)))\r\n        elif len (self.__args__):\r\n            return '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]))        \r\n        else:\r\n            return '{}()'.format (self.__class__.__name__)\r\n            \r\n    def __str__ (self):\r\n        if len (self.__args__) > 1:\r\n            return str (tuple (self.__args__))\r\n        elif len (self.__args__):\r\n            return str (self.__args__ [0])\r\n        else:\r\n            return ''\r\n        \r\nclass IterableError (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Can\\'t iterate over non-iterable', error = error)\r\n            \r\nclass StopIteration (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Iterator exhausted', error = error)\r\n        \r\nclass ValueError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass KeyError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass AssertionError (Exception):\r\n    def __init__ (self, message, error):\r\n        if message:\r\n            Exception.__init__ (self, message, error = error)\r\n        else:\r\n            Exception.__init__ (self, error = error)\r\n\r\nclass NotImplementedError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass IndexError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass AttributeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass TypeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\n# Warnings Exceptions\r\n# N.B. This is a limited subset of the warnings defined in\r\n# the cpython implementation to keep things small for now.\r\n\r\nclass Warning (Exception):\r\n    ''' Warning Base Class\r\n    '''\r\n    pass\r\n\r\nclass UserWarning (Warning):\r\n    pass\r\n\r\nclass DeprecationWarning (Warning):\r\n    pass\r\n\r\nclass RuntimeWarning (Warning):\r\n    pass\r\n    \r\n#__pragma__ ('kwargs')\r\n\r\ndef __sort__ (iterable, key = None, reverse = False):               # Used by py_sort, can deal with kwargs\r\n    if key:\r\n        iterable.sort (lambda a, b: 1 if key (a) > key (b) else -1) # JavaScript sort, case '==' is irrelevant for sorting\r\n    else:\r\n        iterable.sort ()                                            # JavaScript sort\r\n        \r\n    if reverse:\r\n        iterable.reverse ()\r\n        \r\ndef sorted (iterable, key = None, reverse = False):\r\n    if type (iterable) == dict:\r\n        result = copy (iterable.keys ()) \r\n    else:       \r\n        result = copy (iterable)\r\n        \r\n    __sort__ (result, key, reverse)\r\n    return result\r\n\r\n#__pragma__ ('nokwargs')\r\n\r\ndef map (func, iterable):\r\n    return [func (item) for item in iterable]\r\n\r\n\r\ndef filter (func, iterable):\r\n    if func == None:\r\n        func = bool\r\n    return [item for item in iterable if func (item)]\r\n    \r\ndef divmod (n, d):\r\n    return n // d, n % d\r\n    \r\n#__pragma__ ('ifdef', '__complex__')\r\n\r\nclass complex:\r\n    def __init__ (self, real, imag = None):\r\n        if imag == None:\r\n            if type (real) == complex:\r\n                self.real = real.real\r\n                self.imag = real.imag\r\n            else:\r\n                self.real = real\r\n                self.imag = 0\r\n        else:\r\n            self.real = real\r\n            self.imag = imag\r\n            \r\n    def __neg__ (self):\r\n        return complex (-self.real, -self.imag)\r\n        \r\n    def __exp__ (self):\r\n        modulus = Math.exp (self.real)\r\n        return complex (modulus * Math.cos (self.imag), modulus * Math.sin (self.imag))\r\n    \r\n    def __log__ (self):\r\n        return complex (Math.log (Math.sqrt (self.real * self.real + self.imag * self.imag)), Math.atan2 (self.imag, self.real))\r\n        \r\n    def __pow__ (self, other):  # a ** b = exp (b log a)\r\n        return (self.__log__ () .__mul__ (other)) .__exp__ ()\r\n        \r\n    def __rpow__ (self, real):  # real ** comp -> comp.__rpow__ (real)\r\n        return self.__mul__ (Math.log (real)) .__exp__ ()\r\n        \r\n    def __mul__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real * other, self.imag * other)\r\n        else:\r\n            return complex (self.real * other.real - self.imag * other.imag, self.real * other.imag + self.imag * other.real)\r\n        \r\n    def __rmul__ (self, real):  # real + comp -> comp.__rmul__ (real)\r\n        return complex (self.real * real, self.imag * real)\r\n        \r\n    def __div__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real / other, self.imag / other)\r\n        else:\r\n            denom = other.real * other.real + other.imag * other.imag\r\n            return complex (\r\n                (self.real * other.real + self.imag * other.imag) / denom,\r\n                (self.imag * other.real - self.real * other.imag) / denom\r\n            )\r\n        \r\n    def __rdiv__ (self, real):  # real / comp -> comp.__rdiv__ (real)\r\n        denom = self.real * self.real\r\n        return complex (\r\n            (real * self.real) / denom,\r\n            (real * self.imag) / denom\r\n        )\r\n        \r\n    def __add__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real + other, self.imag)\r\n        else:   # Assume other is complex\r\n            return complex (self.real + other.real, self.imag + other.imag)\r\n        \r\n    def __radd__ (self, real):  # real + comp -> comp.__radd__ (real)\r\n        return complex (self.real + real, self.imag)\r\n        \r\n    def __sub__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real - other, self.imag)\r\n        else:\r\n            return complex (self.real - other.real, self.imag - other.imag)\r\n        \r\n    def __rsub__ (self, real):  # real - comp -> comp.__rsub__ (real)\r\n        return complex (real - self.real, -self.imag)\r\n        \r\n    def __repr__ (self):\r\n        return '({}{}{}j)'.format (self.real, '+' if self.imag >= 0 else '', self.imag)\r\n            \r\n    def __str__ (self):\r\n        return __repr__ (self) [1 : -1]\r\n        \r\n    def __eq__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real == other\r\n        else:\r\n            return self.real == other.real and self.imag == other.imag\r\n        \r\n    def __ne__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real != other\r\n        else:\r\n            return self.real != other.real or self.imag != other.imag\r\n        \r\n    def conjugate (self):\r\n        return complex (self.real, -self.imag)\r\n        \r\ndef __conj__ (aNumber):\r\n    if isinstance (aNumber, complex):\r\n        return complex (aNumber.real, -aNumber.imag)\r\n    else:\r\n        return complex (aNumber, 0)\r\n        \r\n#__pragma__ ('endif')\r\n\r\nclass __Terminal__:\r\n    '''\r\n    Printing to either the console or to html happens async, but is blocked by calling window.prompt.\r\n    So while all input and print statements are encountered in normal order, the print's exit immediately without yet having actually printed\r\n    This means the next input takes control, blocking actual printing and so on indefinitely\r\n    The effect is that everything's only printed after all inputs are done\r\n    To prevent that, what's needed is to only execute the next window.prompt after actual printing has been done\r\n    Since we've no way to find out when that is, a timeout is used.\r\n    '''\r\n\r\n    def __init__ (self):\r\n        self.buffer = ''\r\n    \r\n        try:\r\n            self.element = document.getElementById ('__terminal__')\r\n        except:\r\n            self.element = None\r\n            \r\n        if self.element:\r\n            self.element.style.overflowX = 'auto'\r\n            self.element.style.boxSizing = 'border-box'\r\n            self.element.style.padding = '5px'\r\n            self.element.innerHTML = '_'\r\n        \r\n    #__pragma__ ('kwargs')\r\n        \r\n    def print (self, *args, sep = ' ', end = '\\n'):\r\n        self.buffer = '{}{}{}'.format (self.buffer, sep.join ([str (arg) for arg in args]), end) [-4096 : ] \r\n        \r\n        if self.element:\r\n            self.element.innerHTML = self.buffer.replace ('\\n', '<br>') .replace (' ', '&nbsp')\r\n            self.element.scrollTop = self.element.scrollHeight\r\n        else:\r\n            console.log (sep.join ([str (arg) for arg in args]))\r\n        \r\n    def input (self, question):\r\n        self.print ('{}'.format (question), end = '')\r\n        answer = window.prompt ('\\n'.join (self.buffer.split ('\\n') [-8:]))\r\n        self.print (answer)\r\n        return answer\r\n        \r\n    #__pragma__ ('nokwargs')\r\n    \r\n__terminal__ = __Terminal__ ()\r\n\r\nprint = __terminal__.print\r\ninput = __terminal__.input\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_008/target/pyp5js.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:16\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {PythonFunctions} from './python_functions.js';\nvar __name__ = 'pyp5js';\nexport var _P5_INSTANCE = null;\nexport var _CTX_MIDDLE = null;\nexport var _DEFAULT_FILL = null;\nexport var _DEFAULT_LEADMULT = null;\nexport var _DEFAULT_STROKE = null;\nexport var _DEFAULT_TEXT_FILL = null;\nexport var ADD = null;\nexport var ALT = null;\nexport var ARROW = null;\nexport var AUDIO = null;\nexport var AUTO = null;\nexport var AXES = null;\nexport var BACKSPACE = null;\nexport var BASELINE = null;\nexport var BEVEL = null;\nexport var BEZIER = null;\nexport var BLEND = null;\nexport var BLUR = null;\nexport var BOLD = null;\nexport var BOLDITALIC = null;\nexport var BOTTOM = null;\nexport var BURN = null;\nexport var CENTER = null;\nexport var CHORD = null;\nexport var CLAMP = null;\nexport var CLOSE = null;\nexport var CONTROL = null;\nexport var CORNER = null;\nexport var CORNERS = null;\nexport var CROSS = null;\nexport var CURVE = null;\nexport var DARKEST = null;\nexport var DEG_TO_RAD = null;\nexport var DEGREES = null;\nexport var DELETE = null;\nexport var DIFFERENCE = null;\nexport var DILATE = null;\nexport var DODGE = null;\nexport var DOWN_ARROW = null;\nexport var ENTER = null;\nexport var ERODE = null;\nexport var ESCAPE = null;\nexport var EXCLUSION = null;\nexport var FILL = null;\nexport var GRAY = null;\nexport var GRID = null;\nexport var HALF_PI = null;\nexport var HAND = null;\nexport var HARD_LIGHT = null;\nexport var HSB = null;\nexport var HSL = null;\nexport var IMAGE = null;\nexport var IMMEDIATE = null;\nexport var INVERT = null;\nexport var ITALIC = null;\nexport var LANDSCAPE = null;\nexport var LEFT = null;\nexport var LEFT_ARROW = null;\nexport var LIGHTEST = null;\nexport var LINE_LOOP = null;\nexport var LINE_STRIP = null;\nexport var LINEAR = null;\nexport var LINES = null;\nexport var MIRROR = null;\nexport var MITER = null;\nexport var MOVE = null;\nexport var MULTIPLY = null;\nexport var NEAREST = null;\nexport var NORMAL = null;\nexport var OPAQUE = null;\nexport var OPEN = null;\nexport var OPTION = null;\nexport var OVERLAY = null;\nexport var PI = null;\nexport var PIE = null;\nexport var POINTS = null;\nexport var PORTRAIT = null;\nexport var POSTERIZE = null;\nexport var PROJECT = null;\nexport var QUAD_STRIP = null;\nexport var QUADRATIC = null;\nexport var QUADS = null;\nexport var QUARTER_PI = null;\nexport var RAD_TO_DEG = null;\nexport var RADIANS = null;\nexport var RADIUS = null;\nexport var REPEAT = null;\nexport var REPLACE = null;\nexport var RETURN = null;\nexport var RGB = null;\nexport var RIGHT = null;\nexport var RIGHT_ARROW = null;\nexport var ROUND = null;\nexport var SCREEN = null;\nexport var SHIFT = null;\nexport var SOFT_LIGHT = null;\nexport var SQUARE = null;\nexport var STROKE = null;\nexport var SUBTRACT = null;\nexport var TAB = null;\nexport var TAU = null;\nexport var TEXT = null;\nexport var TEXTURE = null;\nexport var THRESHOLD = null;\nexport var TOP = null;\nexport var TRIANGLE_FAN = null;\nexport var TRIANGLE_STRIP = null;\nexport var TRIANGLES = null;\nexport var TWO_PI = null;\nexport var UP_ARROW = null;\nexport var VIDEO = null;\nexport var WAIT = null;\nexport var WEBGL = null;\nexport var P2D = null;\nvar PI = null;\nexport var frameCount = null;\nexport var focused = null;\nexport var displayWidth = null;\nexport var displayHeight = null;\nexport var windowWidth = null;\nexport var windowHeight = null;\nexport var width = null;\nexport var height = null;\nexport var disableFriendlyErrors = null;\nexport var deviceOrientation = null;\nexport var accelerationX = null;\nexport var accelerationY = null;\nexport var accelerationZ = null;\nexport var pAccelerationX = null;\nexport var pAccelerationY = null;\nexport var pAccelerationZ = null;\nexport var rotationX = null;\nexport var rotationY = null;\nexport var rotationZ = null;\nexport var pRotationX = null;\nexport var pRotationY = null;\nexport var pRotationZ = null;\nexport var turnAxis = null;\nexport var keyIsPressed = null;\nexport var key = null;\nexport var keyCode = null;\nexport var mouseX = null;\nexport var mouseY = null;\nexport var pmouseX = null;\nexport var pmouseY = null;\nexport var winMouseX = null;\nexport var winMouseY = null;\nexport var pwinMouseX = null;\nexport var pwinMouseY = null;\nexport var mouseButton = null;\nexport var mouseIsPressed = null;\nexport var touches = null;\nexport var pixels = null;\nexport var alpha = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.alpha (...args);\n};\nexport var blue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blue (...args);\n};\nexport var brightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.brightness (...args);\n};\nexport var color = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.color (...args);\n};\nexport var green = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.green (...args);\n};\nexport var hue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hue (...args);\n};\nexport var lerpColor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerpColor (...args);\n};\nexport var lightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lightness (...args);\n};\nexport var red = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.red (...args);\n};\nexport var saturation = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saturation (...args);\n};\nexport var background = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.background (...args);\n};\nexport var py_clear = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_clear = _P5_INSTANCE.clear (...args);\n\treturn p5_clear;\n};\nexport var erase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.erase (...args);\n};\nexport var noErase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noErase (...args);\n};\nexport var colorMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.colorMode (...args);\n};\nexport var fill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fill (...args);\n};\nexport var noFill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noFill (...args);\n};\nexport var noStroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noStroke (...args);\n};\nexport var stroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.stroke (...args);\n};\nexport var arc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arc (...args);\n};\nexport var ellipse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipse (...args);\n};\nexport var circle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.circle (...args);\n};\nexport var line = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.line (...args);\n};\nexport var point = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.point (...args);\n};\nexport var quad = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quad (...args);\n};\nexport var rect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rect (...args);\n};\nexport var square = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.square (...args);\n};\nexport var triangle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.triangle (...args);\n};\nexport var plane = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.plane (...args);\n};\nexport var box = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.box (...args);\n};\nexport var sphere = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sphere (...args);\n};\nexport var cylinder = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cylinder (...args);\n};\nexport var cone = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cone (...args);\n};\nexport var ellipsoid = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipsoid (...args);\n};\nexport var torus = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.torus (...args);\n};\nexport var loadModel = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadModel (...args);\n};\nexport var model = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.model (...args);\n};\nexport var ellipseMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipseMode (...args);\n};\nexport var noSmooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noSmooth (...args);\n};\nexport var rectMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rectMode (...args);\n};\nexport var smooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.smooth (...args);\n};\nexport var strokeCap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeCap (...args);\n};\nexport var strokeJoin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeJoin (...args);\n};\nexport var strokeWeight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeWeight (...args);\n};\nexport var bezier = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezier (...args);\n};\nexport var bezierDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierDetail (...args);\n};\nexport var bezierPoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierPoint (...args);\n};\nexport var bezierTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierTangent (...args);\n};\nexport var curve = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curve (...args);\n};\nexport var curveDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveDetail (...args);\n};\nexport var curveTightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTightness (...args);\n};\nexport var curvePoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curvePoint (...args);\n};\nexport var curveTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTangent (...args);\n};\nexport var beginContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginContour (...args);\n};\nexport var beginShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginShape (...args);\n};\nexport var bezierVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierVertex (...args);\n};\nexport var curveVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveVertex (...args);\n};\nexport var endContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endContour (...args);\n};\nexport var endShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endShape (...args);\n};\nexport var quadraticVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quadraticVertex (...args);\n};\nexport var vertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.vertex (...args);\n};\nexport var cursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cursor (...args);\n};\nexport var frameRate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.frameRate (...args);\n};\nexport var noCursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCursor (...args);\n};\nexport var fullscreen = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fullscreen (...args);\n};\nexport var pixelDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pixelDensity (...args);\n};\nexport var displayDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.displayDensity (...args);\n};\nexport var getURL = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURL (...args);\n};\nexport var getURLPath = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLPath (...args);\n};\nexport var getURLParams = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLParams (...args);\n};\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.preload (...args);\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setup (...args);\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.draw (...args);\n};\nexport var remove = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.remove (...args);\n};\nexport var noLoop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noLoop (...args);\n};\nexport var loop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loop (...args);\n};\nexport var push = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.push (...args);\n};\nexport var redraw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.redraw (...args);\n};\nexport var resizeCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resizeCanvas (...args);\n};\nexport var noCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCanvas (...args);\n};\nexport var createGraphics = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createGraphics (...args);\n};\nexport var blendMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blendMode (...args);\n};\nexport var setAttributes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setAttributes (...args);\n};\nexport var applyMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.applyMatrix (...args);\n};\nexport var resetMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetMatrix (...args);\n};\nexport var rotate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotate (...args);\n};\nexport var rotateX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateX (...args);\n};\nexport var rotateY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateY (...args);\n};\nexport var rotateZ = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateZ (...args);\n};\nexport var scale = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.scale (...args);\n};\nexport var shearX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearX (...args);\n};\nexport var shearY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearY (...args);\n};\nexport var translate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.translate (...args);\n};\nexport var createStringDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createStringDict (...args);\n};\nexport var createNumberDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createNumberDict (...args);\n};\nexport var append = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.append (...args);\n};\nexport var arrayCopy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arrayCopy (...args);\n};\nexport var concat = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.concat (...args);\n};\nexport var reverse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.reverse (...args);\n};\nexport var shorten = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shorten (...args);\n};\nexport var shuffle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shuffle (...args);\n};\nexport var py_sort = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_sort (...args);\n};\nexport var splice = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splice (...args);\n};\nexport var subset = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.subset (...args);\n};\nexport var float = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.float (...args);\n};\nexport var int = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.int (...args);\n};\nexport var str = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.str (...args);\n};\nexport var boolean = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.boolean (...args);\n};\nexport var byte = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.byte (...args);\n};\nexport var char = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.char (...args);\n};\nexport var unchar = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unchar (...args);\n};\nexport var hex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hex (...args);\n};\nexport var unhex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unhex (...args);\n};\nexport var join = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.join (...args);\n};\nexport var match = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.match (...args);\n};\nexport var matchAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.matchAll (...args);\n};\nexport var nf = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nf (...args);\n};\nexport var nfc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfc (...args);\n};\nexport var nfp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfp (...args);\n};\nexport var nfs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfs (...args);\n};\nexport var py_split = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_split (...args);\n};\nexport var splitTokens = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splitTokens (...args);\n};\nexport var trim = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.trim (...args);\n};\nexport var setMoveThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setMoveThreshold (...args);\n};\nexport var setShakeThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setShakeThreshold (...args);\n};\nexport var keyIsDown = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.keyIsDown (...args);\n};\nexport var createImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImage (...args);\n};\nexport var saveCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveCanvas (...args);\n};\nexport var saveFrames = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveFrames (...args);\n};\nexport var image_proxy = function (img) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'img': var img = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar _set = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.set (...args);\n\t\treturn value;\n\t};\n\tvar _get = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.get (...args);\n\t\treturn value;\n\t};\n\timg.py_set = _set;\n\timg.py_get = _get;\n\treturn img;\n};\nexport var loadImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar imageObj = _P5_INSTANCE.loadImage (...args);\n\treturn image_proxy (imageObj);\n};\nexport var image = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.image (...args);\n};\nexport var tint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tint (...args);\n};\nexport var noTint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noTint (...args);\n};\nexport var imageMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.imageMode (...args);\n};\nexport var blend = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blend (...args);\n};\nexport var copy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.copy (...args);\n};\nexport var filter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && (args [0] === null || callable (args [0]))) {\n\t\treturn PythonFunctions.filter (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.filter (...args);\n\t}\n};\nexport var py_get = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_get = _P5_INSTANCE.get (...args);\n\treturn p5_get;\n};\nexport var loadPixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadPixels (...args);\n};\nexport var py_set = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) <= 1) {\n\t\treturn PythonFunctions.py_set (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.py_set (...args);\n\t}\n};\nexport var updatePixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.updatePixels (...args);\n};\nexport var loadJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadJSON (...args);\n};\nexport var loadStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadStrings (...args);\n};\nexport var loadTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadTable (...args);\n};\nexport var loadXML = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadXML (...args);\n};\nexport var loadBytes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadBytes (...args);\n};\nexport var httpGet = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpGet (...args);\n};\nexport var httpPost = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpPost (...args);\n};\nexport var httpDo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpDo (...args);\n};\nexport var createWriter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createWriter (...args);\n};\nexport var save = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.save (...args);\n};\nexport var saveJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveJSON (...args);\n};\nexport var saveStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveStrings (...args);\n};\nexport var saveTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveTable (...args);\n};\nexport var day = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.day (...args);\n};\nexport var hour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hour (...args);\n};\nexport var minute = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.minute (...args);\n};\nexport var millis = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.millis (...args);\n};\nexport var month = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.month (...args);\n};\nexport var second = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.second (...args);\n};\nexport var year = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.year (...args);\n};\nexport var createVector = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVector (...args);\n};\nexport var abs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.abs (...args);\n};\nexport var ceil = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ceil (...args);\n};\nexport var constrain = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.constrain (...args);\n};\nexport var dist = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.dist (...args);\n};\nexport var exp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.exp (...args);\n};\nexport var floor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.floor (...args);\n};\nexport var lerp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerp (...args);\n};\nexport var log = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.log (...args);\n};\nexport var mag = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.mag (...args);\n};\nexport var map = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && callable (args [0])) {\n\t\treturn PythonFunctions.map (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.map (...args);\n\t}\n};\nexport var max = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.max (...args);\n};\nexport var min = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.min (...args);\n};\nexport var norm = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.norm (...args);\n};\nexport var pow = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pow (...args);\n};\nexport var round = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.round (...args);\n};\nexport var sq = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sq (...args);\n};\nexport var sqrt = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sqrt (...args);\n};\nexport var noise = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noise (...args);\n};\nexport var noiseDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseDetail (...args);\n};\nexport var noiseSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseSeed (...args);\n};\nexport var randomSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomSeed (...args);\n};\nexport var random = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.random (...args);\n};\nexport var randomGaussian = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomGaussian (...args);\n};\nexport var acos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.acos (...args);\n};\nexport var asin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.asin (...args);\n};\nexport var atan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan (...args);\n};\nexport var atan2 = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan2 (...args);\n};\nexport var cos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cos (...args);\n};\nexport var sin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sin (...args);\n};\nexport var tan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tan (...args);\n};\nexport var degrees = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.degrees (...args);\n};\nexport var radians = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.radians (...args);\n};\nexport var angleMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.angleMode (...args);\n};\nexport var textAlign = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAlign (...args);\n};\nexport var textLeading = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textLeading (...args);\n};\nexport var textSize = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textSize (...args);\n};\nexport var textStyle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textStyle (...args);\n};\nexport var textWidth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textWidth (...args);\n};\nexport var textAscent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAscent (...args);\n};\nexport var textDescent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textDescent (...args);\n};\nexport var loadFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadFont (...args);\n};\nexport var text = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.text (...args);\n};\nexport var textFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textFont (...args);\n};\nexport var orbitControl = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.orbitControl (...args);\n};\nexport var debugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.debugMode (...args);\n};\nexport var noDebugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noDebugMode (...args);\n};\nexport var ambientLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientLight (...args);\n};\nexport var directionalLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.directionalLight (...args);\n};\nexport var pointLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pointLight (...args);\n};\nexport var lights = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lights (...args);\n};\nexport var loadShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadShader (...args);\n};\nexport var createShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createShader (...args);\n};\nexport var shader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shader (...args);\n};\nexport var resetShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetShader (...args);\n};\nexport var normalMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.normalMaterial (...args);\n};\nexport var texture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.texture (...args);\n};\nexport var textureMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureMode (...args);\n};\nexport var textureWrap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureWrap (...args);\n};\nexport var ambientMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientMaterial (...args);\n};\nexport var specularMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.specularMaterial (...args);\n};\nexport var shininess = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shininess (...args);\n};\nexport var camera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.camera (...args);\n};\nexport var perspective = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.perspective (...args);\n};\nexport var ortho = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ortho (...args);\n};\nexport var createCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCamera (...args);\n};\nexport var setCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setCamera (...args);\n};\nexport var select = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.select (...args);\n};\nexport var selectAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.selectAll (...args);\n};\nexport var removeElements = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.removeElements (...args);\n};\nexport var changed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.changed (...args);\n};\nexport var input = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.input (...args);\n};\nexport var createDiv = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createDiv (...args);\n};\nexport var createP = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createP (...args);\n};\nexport var createSpan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSpan (...args);\n};\nexport var createImg = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImg (...args);\n};\nexport var createA = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createA (...args);\n};\nexport var createSlider = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSlider (...args);\n};\nexport var createButton = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createButton (...args);\n};\nexport var createCheckbox = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCheckbox (...args);\n};\nexport var createSelect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSelect (...args);\n};\nexport var createRadio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createRadio (...args);\n};\nexport var createColorPicker = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createColorPicker (...args);\n};\nexport var createInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createInput (...args);\n};\nexport var createFileInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createFileInput (...args);\n};\nexport var createVideo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVideo (...args);\n};\nexport var createAudio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createAudio (...args);\n};\nexport var createCapture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCapture (...args);\n};\nexport var createElement = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createElement (...args);\n};\nexport var createCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar canvas = _P5_INSTANCE.createCanvas (...args);\n\twidth = _P5_INSTANCE.width;\n\theight = _P5_INSTANCE.height;\n\treturn canvas;\n};\nexport var py_pop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_pop = _P5_INSTANCE.pop (...args);\n\treturn p5_pop;\n};\nexport var size = createCanvas;\nexport var popMatrix = py_pop;\nexport var popStyle = py_pop;\nexport var pushMatrix = push;\nexport var pushStyle = push;\nexport var PVector = function (x, y, z) {\n\tif (typeof x == 'undefined' || (x != null && x.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar x = 0;\n\t};\n\tif (typeof y == 'undefined' || (y != null && y.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar y = 0;\n\t};\n\tif (typeof z == 'undefined' || (z != null && z.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar z = 0;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'z': var z = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn _P5_INSTANCE.createVector (x, y, z);\n};\nsetattr (PVector, 'dist', p5.Vector.dist);\nsetattr (PVector, 'add', p5.Vector.add);\nsetattr (PVector, 'sub', p5.Vector.sub);\nsetattr (PVector, 'mult', p5.Vector.mult);\nsetattr (PVector, 'div', p5.Vector.div);\nsetattr (PVector, 'dot', p5.Vector.dot);\nsetattr (PVector, 'cross', p5.Vector.cross);\nsetattr (PVector, 'lerp', p5.Vector.lerp);\nsetattr (PVector, 'random2D', p5.Vector.random2D);\nsetattr (PVector, 'random3D', p5.Vector.random3D);\nsetattr (PVector, 'angleBetween', p5.Vector.angleBetween);\nsetattr (PVector, 'fromAngle', p5.Vector.fromAngle);\nsetattr (PVector, 'fromAngles', p5.Vector.fromAngles);\nsetattr (PVector, 'equals', p5.Vector.equals);\nexport var pre_draw = function (p5_instance, draw_func) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_instance': var p5_instance = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t_CTX_MIDDLE = p5_instance._CTX_MIDDLE;\n\t_DEFAULT_FILL = p5_instance._DEFAULT_FILL;\n\t_DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT;\n\t_DEFAULT_STROKE = p5_instance._DEFAULT_STROKE;\n\t_DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL;\n\tADD = p5_instance.ADD;\n\tALT = p5_instance.ALT;\n\tARROW = p5_instance.ARROW;\n\tAUDIO = p5_instance.AUDIO;\n\tAUTO = p5_instance.AUTO;\n\tAXES = p5_instance.AXES;\n\tBACKSPACE = p5_instance.BACKSPACE;\n\tBASELINE = p5_instance.BASELINE;\n\tBEVEL = p5_instance.BEVEL;\n\tBEZIER = p5_instance.BEZIER;\n\tBLEND = p5_instance.BLEND;\n\tBLUR = p5_instance.BLUR;\n\tBOLD = p5_instance.BOLD;\n\tBOLDITALIC = p5_instance.BOLDITALIC;\n\tBOTTOM = p5_instance.BOTTOM;\n\tBURN = p5_instance.BURN;\n\tCENTER = p5_instance.CENTER;\n\tCHORD = p5_instance.CHORD;\n\tCLAMP = p5_instance.CLAMP;\n\tCLOSE = p5_instance.CLOSE;\n\tCONTROL = p5_instance.CONTROL;\n\tCORNER = p5_instance.CORNER;\n\tCORNERS = p5_instance.CORNERS;\n\tCROSS = p5_instance.CROSS;\n\tCURVE = p5_instance.CURVE;\n\tDARKEST = p5_instance.DARKEST;\n\tDEG_TO_RAD = p5_instance.DEG_TO_RAD;\n\tDEGREES = p5_instance.DEGREES;\n\tDELETE = p5_instance.DELETE;\n\tDIFFERENCE = p5_instance.DIFFERENCE;\n\tDILATE = p5_instance.DILATE;\n\tDODGE = p5_instance.DODGE;\n\tDOWN_ARROW = p5_instance.DOWN_ARROW;\n\tENTER = p5_instance.ENTER;\n\tERODE = p5_instance.ERODE;\n\tESCAPE = p5_instance.ESCAPE;\n\tEXCLUSION = p5_instance.EXCLUSION;\n\tFILL = p5_instance.FILL;\n\tGRAY = p5_instance.GRAY;\n\tGRID = p5_instance.GRID;\n\tHALF_PI = p5_instance.HALF_PI;\n\tHAND = p5_instance.HAND;\n\tHARD_LIGHT = p5_instance.HARD_LIGHT;\n\tHSB = p5_instance.HSB;\n\tHSL = p5_instance.HSL;\n\tIMAGE = p5_instance.IMAGE;\n\tIMMEDIATE = p5_instance.IMMEDIATE;\n\tINVERT = p5_instance.INVERT;\n\tITALIC = p5_instance.ITALIC;\n\tLANDSCAPE = p5_instance.LANDSCAPE;\n\tLEFT = p5_instance.LEFT;\n\tLEFT_ARROW = p5_instance.LEFT_ARROW;\n\tLIGHTEST = p5_instance.LIGHTEST;\n\tLINE_LOOP = p5_instance.LINE_LOOP;\n\tLINE_STRIP = p5_instance.LINE_STRIP;\n\tLINEAR = p5_instance.LINEAR;\n\tLINES = p5_instance.LINES;\n\tMIRROR = p5_instance.MIRROR;\n\tMITER = p5_instance.MITER;\n\tMOVE = p5_instance.MOVE;\n\tMULTIPLY = p5_instance.MULTIPLY;\n\tNEAREST = p5_instance.NEAREST;\n\tNORMAL = p5_instance.NORMAL;\n\tOPAQUE = p5_instance.OPAQUE;\n\tOPEN = p5_instance.OPEN;\n\tOPTION = p5_instance.OPTION;\n\tOVERLAY = p5_instance.OVERLAY;\n\tP2D = p5_instance.P2D;\n\tvar P3D = p5_instance.WEBGL;\n\tPI = p5_instance.PI;\n\tPIE = p5_instance.PIE;\n\tPOINTS = p5_instance.POINTS;\n\tPORTRAIT = p5_instance.PORTRAIT;\n\tPOSTERIZE = p5_instance.POSTERIZE;\n\tPROJECT = p5_instance.PROJECT;\n\tQUAD_STRIP = p5_instance.QUAD_STRIP;\n\tQUADRATIC = p5_instance.QUADRATIC;\n\tQUADS = p5_instance.QUADS;\n\tQUARTER_PI = p5_instance.QUARTER_PI;\n\tRAD_TO_DEG = p5_instance.RAD_TO_DEG;\n\tRADIANS = p5_instance.RADIANS;\n\tRADIUS = p5_instance.RADIUS;\n\tREPEAT = p5_instance.REPEAT;\n\tREPLACE = p5_instance.REPLACE;\n\tRETURN = p5_instance.RETURN;\n\tRGB = p5_instance.RGB;\n\tRIGHT = p5_instance.RIGHT;\n\tRIGHT_ARROW = p5_instance.RIGHT_ARROW;\n\tROUND = p5_instance.ROUND;\n\tSCREEN = p5_instance.SCREEN;\n\tSHIFT = p5_instance.SHIFT;\n\tSOFT_LIGHT = p5_instance.SOFT_LIGHT;\n\tSQUARE = p5_instance.SQUARE;\n\tSTROKE = p5_instance.STROKE;\n\tSUBTRACT = p5_instance.SUBTRACT;\n\tTAB = p5_instance.TAB;\n\tTAU = p5_instance.TAU;\n\tTEXT = p5_instance.TEXT;\n\tTEXTURE = p5_instance.TEXTURE;\n\tTHRESHOLD = p5_instance.THRESHOLD;\n\tTOP = p5_instance.TOP;\n\tTRIANGLE_FAN = p5_instance.TRIANGLE_FAN;\n\tTRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP;\n\tTRIANGLES = p5_instance.TRIANGLES;\n\tTWO_PI = p5_instance.TWO_PI;\n\tUP_ARROW = p5_instance.UP_ARROW;\n\tVIDEO = p5_instance.VIDEO;\n\tWAIT = p5_instance.WAIT;\n\tWEBGL = p5_instance.WEBGL;\n\tframeCount = p5_instance.frameCount;\n\tfocused = p5_instance.focused;\n\tdisplayWidth = p5_instance.displayWidth;\n\tdisplayHeight = p5_instance.displayHeight;\n\twindowWidth = p5_instance.windowWidth;\n\twindowHeight = p5_instance.windowHeight;\n\twidth = p5_instance.width;\n\theight = p5_instance.height;\n\tdisableFriendlyErrors = p5_instance.disableFriendlyErrors;\n\tdeviceOrientation = p5_instance.deviceOrientation;\n\taccelerationX = p5_instance.accelerationX;\n\taccelerationY = p5_instance.accelerationY;\n\taccelerationZ = p5_instance.accelerationZ;\n\tpAccelerationX = p5_instance.pAccelerationX;\n\tpAccelerationY = p5_instance.pAccelerationY;\n\tpAccelerationZ = p5_instance.pAccelerationZ;\n\trotationX = p5_instance.rotationX;\n\trotationY = p5_instance.rotationY;\n\trotationZ = p5_instance.rotationZ;\n\tpRotationX = p5_instance.pRotationX;\n\tpRotationY = p5_instance.pRotationY;\n\tpRotationZ = p5_instance.pRotationZ;\n\tturnAxis = p5_instance.turnAxis;\n\tkeyIsPressed = p5_instance.keyIsPressed;\n\tkey = p5_instance.key;\n\tkeyCode = p5_instance.keyCode;\n\tmouseX = p5_instance.mouseX;\n\tmouseY = p5_instance.mouseY;\n\tpmouseX = p5_instance.pmouseX;\n\tpmouseY = p5_instance.pmouseY;\n\twinMouseX = p5_instance.winMouseX;\n\twinMouseY = p5_instance.winMouseY;\n\tpwinMouseX = p5_instance.pwinMouseX;\n\tpwinMouseY = p5_instance.pwinMouseY;\n\tmouseButton = p5_instance.mouseButton;\n\tmouseIsPressed = p5_instance.mouseIsPressed;\n\ttouches = p5_instance.touches;\n\tpixels = p5_instance.pixels;\n\treturn draw_func ();\n};\nexport var global_p5_injection = function (p5_sketch) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar decorator = function (f) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'f': var f = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar wrapper = function () {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\t_P5_INSTANCE = p5_sketch;\n\t\t\treturn pre_draw (_P5_INSTANCE, f);\n\t\t};\n\t\treturn wrapper;\n\t};\n\treturn decorator;\n};\nexport var start_p5 = function (preload_func, setup_func, draw_func, event_functions) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'preload_func': var preload_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'setup_func': var setup_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'event_functions': var event_functions = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar sketch_setup = function (p5_sketch) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tp5_sketch.preload = global_p5_injection (p5_sketch) (preload_func);\n\t\tp5_sketch.setup = global_p5_injection (p5_sketch) (setup_func);\n\t\tp5_sketch.draw = global_p5_injection (p5_sketch) (draw_func);\n\t};\n\tvar instance = new p5 (sketch_setup, 'sketch-holder');\n\tvar event_function_names = tuple (['deviceMoved', 'deviceTurned', 'deviceShaken', 'windowResized', 'keyPressed', 'keyReleased', 'keyTyped', 'mousePressed', 'mouseReleased', 'mouseClicked', 'doubleClicked', 'mouseMoved', 'mouseDragged', 'mouseWheel', 'touchStarted', 'touchMoved', 'touchEnded', 'keyIsDown']);\n\tfor (var f_name of (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var f of event_function_names) {\n\t\t\tif (event_functions.py_get (f, null)) {\n\t\t\t\t__accu0__.append (f);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ()) {\n\t\tvar func = event_functions [f_name];\n\t\tvar event_func = global_p5_injection (instance) (func);\n\t\tsetattr (instance, f_name, event_func);\n\t}\n};\nexport var logOnloaded = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tconsole.log ('Lib loaded!');\n};\nexport var add_library = function (lib_name) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'lib_name': var lib_name = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar src = '';\n\treturn console.log ('Lib name is not valid:', lib_name);\n\tconsole.log ('Importing:', src);\n\tvar script = document.createElement ('script');\n\tscript.onload = logOnloaded;\n\tscript.src = src;\n\tdocument.head.appendChild (script);\n};\n\n//# sourceMappingURL=pyp5js.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_008/target/pyp5js.py",
    "content": "from python_functions import PythonFunctions\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndisableFriendlyErrors = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    __pragma__('noalias', 'clear')\n    p5_clear = _P5_INSTANCE.clear(*args)\n    __pragma__('alias', 'clear', 'py_clear')\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef preload(*args):\n    return _P5_INSTANCE.preload(*args)\n\ndef setup(*args):\n    return _P5_INSTANCE.setup(*args)\n\ndef draw(*args):\n    return _P5_INSTANCE.draw(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\n\ndef image_proxy(img):\n    \"\"\"\n    Proxy to turn of transcypt when calling img.get/set methods\n    \"\"\"\n\n    def _set(*args):\n        __pragma__('noalias', 'set')\n        value = img.set(*args)\n        __pragma__('alias', 'set', 'py_set')\n        return value\n\n    def _get(*args):\n        __pragma__('noalias', 'get')\n        value = img.get(*args)\n        __pragma__('alias', 'get', 'py_get')\n        return value\n\n    img.set = _set\n    img.get = _get\n    return img\n\n\ndef loadImage(*args):\n    imageObj = _P5_INSTANCE.loadImage(*args)\n    return image_proxy(imageObj)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    __pragma__('noalias', 'get')\n    p5_get = _P5_INSTANCE.get(*args)\n    __pragma__('alias', 'get', 'py_get')\n    return p5_get\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\n\ndef pop(*args):\n    __pragma__('noalias', 'pop')\n    p5_pop = _P5_INSTANCE.pop(*args)\n    __pragma__('alias', 'pop', 'py_pop')\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a helper/alias to create p5.Vector objects\ndef PVector(x=0, y=0, z=0):\n    return _P5_INSTANCE.createVector(x, y, z)\n# aliases  for p5.Vector class methods\nsetattr(PVector, 'dist', p5.Vector.dist)\nsetattr(PVector, 'add', p5.Vector.add)\nsetattr(PVector, 'sub', p5.Vector.sub)\nsetattr(PVector, 'mult', p5.Vector.mult)\nsetattr(PVector, 'div', p5.Vector.div)\nsetattr(PVector, 'dot', p5.Vector.dot)\nsetattr(PVector, 'cross', p5.Vector.cross)\nsetattr(PVector, 'lerp', p5.Vector.lerp)\nsetattr(PVector, 'random2D', p5.Vector.random2D)\nsetattr(PVector, 'random3D', p5.Vector.random3D)\nsetattr(PVector, 'angleBetween', p5.Vector.angleBetween)\nsetattr(PVector, 'fromAngle', p5.Vector.fromAngle)\nsetattr(PVector, 'fromAngles', p5.Vector.fromAngles)\nsetattr(PVector, 'equals', p5.Vector.equals)\n\ndef pre_draw(p5_instance, draw_func):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP, QUADRATIC\n    global QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global disableFriendlyErrors, deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    disableFriendlyErrors = p5_instance.disableFriendlyErrors\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func()\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f):\n        def wrapper():\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: a Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    instance = __new__(p5(sketch_setup, 'sketch-holder'))\n\n    # inject event functions into p5\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\"\n    )\n\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(instance)(func)\n        setattr(instance, f_name, event_func)\n\n\ndef logOnloaded():\n    console.log(\"Lib loaded!\")\n\n\ndef add_library(lib_name):\n    # placeholder for https://github.com/berinhard/pyp5js/issues/31\n    src = ''\n\n    return console.log(\"Lib name is not valid:\", lib_name)\n\n    console.log(\"Importing:\", src)\n\n    script = document.createElement(\"script\")\n    script.onload = logOnloaded\n    script.src = src\n    document.head.appendChild(script)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_008/target/python_functions.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:17\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, pow, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nvar __name__ = 'python_functions';\nexport var PythonFunctions =  __class__ ('PythonFunctions', [object], {\n\t__module__: __name__,\n});\nsetattr (PythonFunctions, 'map', map);\nsetattr (PythonFunctions, 'filter', filter);\nsetattr (PythonFunctions, 'set', set);\n\n//# sourceMappingURL=python_functions.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_008/target/python_functions.py",
    "content": "class PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_008/target/target_sketch.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:16\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, set, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {ADD, ALT, ARROW, AUDIO, AUTO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC, BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST, DEGREES, DEG_TO_RAD, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION, FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE, LEFT, LEFT_ARROW, LIGHTEST, LINEAR, LINES, LINE_LOOP, LINE_STRIP, MIRROR, MITER, MOVE, MULTIPLY, NEAREST, NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, PVector, QUADRATIC, QUADS, QUAD_STRIP, QUARTER_PI, RADIANS, RADIUS, RAD_TO_DEG, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW, ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL, _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL, _P5_INSTANCE, abs, accelerationX, accelerationY, accelerationZ, acos, add_library, alpha, ambientLight, ambientMaterial, angleMode, append, applyMatrix, arc, arrayCopy, asin, atan, atan2, background, beginContour, beginShape, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, blend, blendMode, blue, boolean, box, brightness, byte, camera, ceil, changed, char, circle, color, colorMode, concat, cone, constrain, copy, cos, createA, createAudio, createButton, createCamera, createCanvas, createCapture, createCheckbox, createColorPicker, createDiv, createElement, createFileInput, createGraphics, createImage, createImg, createInput, createNumberDict, createP, createRadio, createSelect, createShader, createSlider, createSpan, createStringDict, createVector, createVideo, createWriter, cursor, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, cylinder, day, debugMode, degrees, deviceOrientation, directionalLight, disableFriendlyErrors, displayDensity, displayHeight, displayWidth, dist, ellipse, ellipseMode, ellipsoid, endContour, endShape, erase, exp, fill, filter, float, floor, focused, frameCount, frameRate, fullscreen, getURL, getURLParams, getURLPath, global_p5_injection, green, height, hex, hour, httpDo, httpGet, httpPost, hue, image, imageMode, image_proxy, input, int, join, key, keyCode, keyIsPressed, lerp, lerpColor, lightness, lights, line, loadBytes, loadFont, loadImage, loadJSON, loadModel, loadPixels, loadShader, loadStrings, loadTable, loadXML, log, logOnloaded, loop, mag, map, match, matchAll, max, millis, min, minute, model, month, mouseButton, mouseIsPressed, mouseX, mouseY, nf, nfc, nfp, nfs, noCanvas, noCursor, noDebugMode, noErase, noFill, noLoop, noSmooth, noStroke, noTint, noise, noiseDetail, noiseSeed, norm, normalMaterial, orbitControl, ortho, pAccelerationX, pAccelerationY, pAccelerationZ, pRotationX, pRotationY, pRotationZ, perspective, pixelDensity, pixels, plane, pmouseX, pmouseY, point, pointLight, popMatrix, popStyle, pow, pre_draw, push, pushMatrix, pushStyle, pwinMouseX, pwinMouseY, py_clear, py_get, py_pop, py_set, py_sort, py_split, quad, quadraticVertex, radians, random, randomGaussian, randomSeed, rect, rectMode, red, redraw, remove, removeElements, resetMatrix, resetShader, resizeCanvas, reverse, rotate, rotateX, rotateY, rotateZ, rotationX, rotationY, rotationZ, round, saturation, save, saveCanvas, saveFrames, saveJSON, saveStrings, saveTable, scale, second, select, selectAll, setAttributes, setCamera, setMoveThreshold, setShakeThreshold, shader, shearX, shearY, shininess, shorten, shuffle, sin, size, smooth, specularMaterial, sphere, splice, splitTokens, sq, sqrt, square, start_p5, str, stroke, strokeCap, strokeJoin, strokeWeight, subset, tan, text, textAlign, textAscent, textDescent, textFont, textLeading, textSize, textStyle, textWidth, texture, textureMode, textureWrap, tint, torus, touches, translate, triangle, trim, turnAxis, unchar, unhex, updatePixels, vertex, width, winMouseX, winMouseY, windowHeight, windowWidth, year} from './pyp5js.js';\nvar __name__ = '__main__';\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var deviceMoved = null;\nexport var deviceTurned = null;\nexport var deviceShaken = null;\nexport var keyPressed = null;\nexport var keyReleased = null;\nexport var keyTyped = null;\nexport var mouseMoved = null;\nexport var mouseDragged = null;\nexport var mousePressed = null;\nexport var mouseReleased = null;\nexport var mouseClicked = null;\nexport var doubleClicked = null;\nexport var mouseWheel = null;\nexport var touchStarted = null;\nexport var touchMoved = null;\nexport var touchEnded = null;\nexport var windowResized = null;\nexport var keyIsDown = null;\nexport var rect_base_size = 30;\nexport var positions = [];\nexport var rect_size = null;\nvar setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tcreateP ('Hi! This is an example of how to use p5.dom.js with pyp5js');\n\tvar slider_div = createDiv ();\n\tslider_div.style ('display', 'block');\n\trect_size = createSlider (0, 600, 100);\n\trect_size.style ('width', '50%');\n\tslider_div.child (rect_size);\n\tcreateCanvas (600, 600);\n\tfor (var x of range (-(rect_base_size), width + rect_base_size, rect_base_size)) {\n\t\tfor (var y of range (-(rect_base_size), height + rect_base_size, rect_base_size)) {\n\t\t\tpositions.append (tuple ([x, y]));\n\t\t}\n\t}\n\tnoFill ();\n\tstrokeWeight (2);\n\trectMode (CENTER);\n};\nvar draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tbackground (255);\n\tvar size = rect_size.value ();\n\tfor (var [x, y] of positions) {\n\t\trect (x, y, size, size);\n\t}\n};\nexport var event_functions = dict ({'deviceMoved': deviceMoved, 'deviceTurned': deviceTurned, 'deviceShaken': deviceShaken, 'keyPressed': keyPressed, 'keyReleased': keyReleased, 'keyTyped': keyTyped, 'mouseMoved': mouseMoved, 'mouseDragged': mouseDragged, 'mousePressed': mousePressed, 'mouseReleased': mouseReleased, 'mouseClicked': mouseClicked, 'doubleClicked': doubleClicked, 'mouseWheel': mouseWheel, 'touchStarted': touchStarted, 'touchMoved': touchMoved, 'touchEnded': touchEnded, 'windowResized': windowResized, 'keyIsDown': keyIsDown});\nstart_p5 (preload, setup, draw, event_functions);\n\n//# sourceMappingURL=target_sketch.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_008/target/target_sketch.project",
    "content": "{\"options\": {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_008/target_sketch.py\", \"anno\": false, \"alimod\": false, \"build\": true, \"complex\": false, \"docat\": false, \"dassert\": false, \"dcheck\": false, \"dextex\": false, \"dlog\": false, \"dmap\": false, \"dnostrip\": false, \"dstat\": false, \"dtree\": false, \"esv\": null, \"ecom\": false, \"fcall\": false, \"gen\": false, \"iconv\": false, \"jscall\": false, \"jskeys\": false, \"jsmod\": false, \"kwargs\": true, \"keycheck\": false, \"license\": false, \"map\": true, \"nomin\": true, \"opov\": false, \"outdir\": null, \"parent\": null, \"run\": false, \"symbols\": null, \"sform\": false, \"tconv\": false, \"unit\": null, \"verbose\": false, \"x\": null, \"xreex\": false, \"xglobs\": false, \"xpath\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt\", \"xtiny\": false, \"star\": false}, \"modules\": [{\"source\": \"/home/bernardo/.pyenv/versions/pyp5js/lib/python3.8/site-packages/transcrypt/modules/org/transcrypt/__runtime__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_008/__target__/org.transcrypt.__runtime__.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_008/target_sketch.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_008/__target__/target_sketch.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/pyp5js.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_008/__target__/pyp5js.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/python_functions.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_008/__target__/python_functions.js\"}]}"
  },
  {
    "path": "docs/examples/transcrypt/sketch_008/target/target_sketch.py",
    "content": "from pyp5js import *\n\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\nkeyIsDown = None\n\n\nrect_base_size = 30\npositions = []\nrect_size = None\n\ndef setup():\n    global rect_size\n\n    createP(\"Hi! This is an example of how to use p5.dom.js with pyp5js\")\n\n    # creates a container div\n    slider_div = createDiv()\n    slider_div.style(\"display\", \"block\")\n\n    # creates the slider\n    rect_size = createSlider(0, 600, 100)\n    rect_size.style('width', '50%')\n\n    # adds the slider to the container div\n    slider_div.child(rect_size)\n\n    createCanvas(600, 600)\n\n    for x in range(-rect_base_size, width + rect_base_size, rect_base_size):\n        for y in range(-rect_base_size, height + rect_base_size, rect_base_size):\n            positions.append((x, y))\n\n    noFill()\n    strokeWeight(2)\n    rectMode(CENTER)\n\n\ndef draw():\n    background(255)\n    size = rect_size.value()\n    for x, y in positions:\n        rect(x, y, size, size)\n\n\n\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n    \"keyIsDown\": keyIsDown,\n}\n\nstart_p5(preload, setup, draw, event_functions)"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_009 - pyp5js (using Transcrypt)</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/transcrypt/sketch_009\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre>\n             <code>\nfrom random import choice\n\n\nimages = []\n\ndef setup():\n    global images\n\n    createP(\"Click to add a new image\")\n    createCanvas(600, 600)\n    background(200)\n    images = [\n        loadImage('smile.png'),\n        loadImage('alien.png'),\n        loadImage('rainbow.png'),\n    ]\n\n\ndef mousePressed():\n    x, y = mouseX, mouseY\n    img = choice(images)\n    image(img, x, y)\n\n\ndef draw():\n    pass\n\n              </code>\n          </pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/sketch_009.py",
    "content": "from random import choice\r\n\r\n\r\nimages = []\r\n\r\ndef setup():\r\n    global images\r\n\r\n    createP(\"Click to add a new image\")\r\n    createCanvas(600, 600)\r\n    background(200)\r\n    images = [\r\n        loadImage('smile.png'),\r\n        loadImage('alien.png'),\r\n        loadImage('rainbow.png'),\r\n    ]\r\n\r\n\r\ndef mousePressed():\r\n    x, y = mouseX, mouseY\r\n    img = choice(images)\r\n    image(img, x, y)\r\n\r\n\r\ndef draw():\r\n    pass\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/math.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:17\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nvar __name__ = 'math';\nexport var pi = Math.PI;\nexport var e = Math.E;\nexport var exp = Math.exp;\nexport var expm1 = function (x) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn Math.exp (x) - 1;\n};\nexport var log = function (x, base) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'base': var base = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn (base === undefined ? Math.log (x) : Math.log (x) / Math.log (base));\n};\nexport var log1p = function (x) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn Math.log (x + 1);\n};\nexport var log2 = function (x) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn Math.log (x) / Math.LN2;\n};\nexport var log10 = function (x) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn Math.log (x) / Math.LN10;\n};\nexport var pow = Math.pow;\nexport var sqrt = Math.sqrt;\nexport var sin = Math.sin;\nexport var cos = Math.cos;\nexport var tan = Math.tan;\nexport var asin = Math.asin;\nexport var acos = Math.acos;\nexport var atan = Math.atan;\nexport var atan2 = Math.atan2;\nexport var hypot = Math.hypot;\nexport var degrees = function (x) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn (x * 180) / Math.PI;\n};\nexport var radians = function (x) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn (x * Math.PI) / 180;\n};\nexport var sinh = Math.sinh;\nexport var cosh = Math.cosh;\nexport var tanh = Math.tanh;\nexport var asinh = Math.asinh;\nexport var acosh = Math.acosh;\nexport var atanh = Math.atanh;\nexport var floor = Math.floor;\nexport var ceil = Math.ceil;\nexport var trunc = Math.trunc;\nexport var isnan = isNaN;\nexport var inf = Infinity;\nexport var nan = NaN;\nexport var modf = function (n) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'n': var n = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar sign = (n >= 0 ? 1 : -(1));\n\tvar __left0__ = divmod (abs (n), 1);\n\tvar f = __left0__ [0];\n\tvar mod = __left0__ [1];\n\treturn tuple ([mod * sign, f * sign]);\n};\n\n//# sourceMappingURL=math.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/math.py",
    "content": "pi = Math.PI\r\ne = Math.E\r\n\r\nexp = Math.exp\r\n\r\ndef expm1 (x):      # IE workaround\r\n    return Math.exp (x) - 1\r\n\r\ndef log (x, base):\r\n    return Math.log (x) if base is js_undefined else Math.log (x) / Math.log (base)\r\n\r\ndef log1p (x):      # IE workaround\r\n    return Math.log (x + 1)\r\n\r\ndef log2 (x):       # IE workaround\r\n    return Math.log (x) / Math.LN2\r\n    \r\ndef log10 (x):      # IE workaround\r\n    return Math.log (x) / Math.LN10\r\n\r\npow = Math.pow\r\nsqrt = Math.sqrt\r\n\r\nsin = Math.sin\r\ncos = Math.cos\r\ntan = Math.tan\r\n\r\nasin = Math.asin\r\nacos = Math.acos\r\natan = Math.atan\r\natan2 = Math.atan2\r\n\r\nhypot = Math.hypot\r\n    \r\ndef degrees (x):\r\n    return x * 180 / Math.PI\r\n    \r\ndef radians (x):\r\n    return x * Math.PI / 180\r\n    \r\nsinh = Math.sinh\r\ncosh = Math.cosh\r\ntanh = Math.tanh\r\n\r\nasinh = Math.asinh\r\nacosh = Math.acosh\r\natanh = Math.atanh\r\n\r\nfloor = Math.floor\r\nceil = Math.ceil\r\ntrunc = Math.trunc\r\n\r\nisnan = js_isNaN\r\n\r\ninf = js_Infinity\r\nnan = js_NaN\r\n\r\ndef modf(n):\r\n    sign = 1 if n >= 0 else -1\r\n    f, mod = divmod (abs(n), 1)\r\n    return mod * sign, f * sign\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/org.transcrypt.__runtime__.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:17\nvar __name__ = 'org.transcrypt.__runtime__';\nexport var __envir__ = {};\n__envir__.interpreter_name = 'python';\n__envir__.transpiler_name = 'transcrypt';\n__envir__.executor_name = __envir__.transpiler_name;\n__envir__.transpiler_version = '3.9.0';\n\nexport function __nest__ (headObject, tailNames, value) {\n    var current = headObject;\n    if (tailNames != '') {\n        var tailChain = tailNames.split ('.');\n        var firstNewIndex = tailChain.length;\n        for (var index = 0; index < tailChain.length; index++) {\n            if (!current.hasOwnProperty (tailChain [index])) {\n                firstNewIndex = index;\n                break;\n            }\n            current = current [tailChain [index]];\n        }\n        for (var index = firstNewIndex; index < tailChain.length; index++) {\n            current [tailChain [index]] = {};\n            current = current [tailChain [index]];\n        }\n    }\n    for (let attrib of Object.getOwnPropertyNames (value)) {\n        Object.defineProperty (current, attrib, {\n            get () {return value [attrib];},\n            enumerable: true,\n            configurable: true\n        });\n    }\n};\nexport function __init__ (module) {\n    if (!module.__inited__) {\n        module.__all__.__init__ (module.__all__);\n        module.__inited__ = true;\n    }\n    return module.__all__;\n};\nexport function __get__ (aThis, func, quotedFuncName) {\n    if (aThis) {\n        if (aThis.hasOwnProperty ('__class__') || typeof aThis == 'string' || aThis instanceof String) {\n            if (quotedFuncName) {\n                Object.defineProperty (aThis, quotedFuncName, {\n                    value: function () {\n                        var args = [] .slice.apply (arguments);\n                        return func.apply (null, [aThis] .concat (args));\n                    },\n                    writable: true,\n                    enumerable: true,\n                    configurable: true\n                });\n            }\n            return function () {\n                var args = [] .slice.apply (arguments);\n                return func.apply (null, [aThis.__proxy__ ? aThis.__proxy__ : aThis] .concat (args));\n            };\n        }\n        else {\n            return func;\n        }\n    }\n    else {\n        return func;\n    }\n};\nexport function __getcm__ (aThis, func, quotedFuncName) {\n    if (aThis.hasOwnProperty ('__class__')) {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis.__class__] .concat (args));\n        };\n    }\n    else {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis] .concat (args));\n        };\n    }\n};\nexport function __getsm__ (aThis, func, quotedFuncName) {\n    return func;\n};\nexport var py_metatype = {\n    __name__: 'type',\n    __bases__: [],\n    __new__: function (meta, name, bases, attribs) {\n        var cls = function () {\n            var args = [] .slice.apply (arguments);\n            return cls.__new__ (args);\n        };\n        for (var index = bases.length - 1; index >= 0; index--) {\n            var base = bases [index];\n            for (var attrib in base) {\n                var descrip = Object.getOwnPropertyDescriptor (base, attrib);\n                if (descrip == null) {\n                    continue;\n                }\n                Object.defineProperty (cls, attrib, descrip);\n            }\n            for (let symbol of Object.getOwnPropertySymbols (base)) {\n                let descrip = Object.getOwnPropertyDescriptor (base, symbol);\n                Object.defineProperty (cls, symbol, descrip);\n            }\n        }\n        cls.__metaclass__ = meta;\n        cls.__name__ = name.startsWith ('py_') ? name.slice (3) : name;\n        cls.__bases__ = bases;\n        for (var attrib in attribs) {\n            var descrip = Object.getOwnPropertyDescriptor (attribs, attrib);\n            Object.defineProperty (cls, attrib, descrip);\n        }\n        for (let symbol of Object.getOwnPropertySymbols (attribs)) {\n            let descrip = Object.getOwnPropertyDescriptor (attribs, symbol);\n            Object.defineProperty (cls, symbol, descrip);\n        }\n        return cls;\n    }\n};\npy_metatype.__metaclass__ = py_metatype;\nexport var object = {\n    __init__: function (self) {},\n    __metaclass__: py_metatype,\n    __name__: 'object',\n    __bases__: [],\n    __new__: function (args) {\n        var instance = Object.create (this, {__class__: {value: this, enumerable: true}});\n        if ('__getattr__' in this || '__setattr__' in this) {\n            instance.__proxy__ = new Proxy (instance, {\n                get: function (target, name) {\n                    let result = target [name];\n                    if (result == undefined) {\n                        return target.__getattr__ (name);\n                    }\n                    else {\n                        return result;\n                    }\n                },\n                set: function (target, name, value) {\n                    try {\n                        target.__setattr__ (name, value);\n                    }\n                    catch (exception) {\n                        target [name] = value;\n                    }\n                    return true;\n                }\n            })\n\t\t\tinstance = instance.__proxy__\n        }\n        this.__init__.apply (null, [instance] .concat (args));\n        return instance;\n    }\n};\nexport function __class__ (name, bases, attribs, meta) {\n    if (meta === undefined) {\n        meta = bases [0] .__metaclass__;\n    }\n    return meta.__new__ (meta, name, bases, attribs);\n};\nexport function __pragma__ () {};\nexport function __call__ (/* <callee>, <this>, <params>* */) {\n    var args = [] .slice.apply (arguments);\n    if (typeof args [0] == 'object' && '__call__' in args [0]) {\n        return args [0] .__call__ .apply (args [1], args.slice (2));\n    }\n    else {\n        return args [0] .apply (args [1], args.slice (2));\n    }\n};\n__envir__.executor_name = __envir__.transpiler_name;\nvar __main__ = {__file__: ''};\nvar __except__ = null;\nexport function __kwargtrans__ (anObject) {\n    anObject.__kwargtrans__ = null;\n    anObject.constructor = Object;\n    return anObject;\n}\nexport function __super__ (aClass, methodName) {\n    for (let base of aClass.__bases__) {\n        if (methodName in base) {\n           return base [methodName];\n        }\n    }\n    throw new Exception ('Superclass method not found');\n}\nexport function property (getter, setter) {\n    if (!setter) {\n        setter = function () {};\n    }\n    return {get: function () {return getter (this)}, set: function (value) {setter (this, value)}, enumerable: true};\n}\nexport function __setproperty__ (anObject, name, descriptor) {\n    if (!anObject.hasOwnProperty (name)) {\n        Object.defineProperty (anObject, name, descriptor);\n    }\n}\nexport function assert (condition, message) {\n    if (!condition) {\n        throw AssertionError (message, new Error ());\n    }\n}\nexport function __mergekwargtrans__ (object0, object1) {\n    var result = {};\n    for (var attrib in object0) {\n        result [attrib] = object0 [attrib];\n    }\n    for (var attrib in object1) {\n        result [attrib] = object1 [attrib];\n    }\n    return result;\n};\nexport function __mergefields__ (targetClass, sourceClass) {\n    let fieldNames = ['__reprfields__', '__comparefields__', '__initfields__']\n    if (sourceClass [fieldNames [0]]) {\n        if (targetClass [fieldNames [0]]) {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set ([...targetClass [fieldName], ...sourceClass [fieldName]]);\n            }\n        }\n        else {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set (sourceClass [fieldName]);\n            }\n        }\n    }\n}\nexport function __withblock__ (manager, statements) {\n    if (hasattr (manager, '__enter__')) {\n        try {\n            manager.__enter__ ();\n            statements ();\n            manager.__exit__ ();\n        }\n        catch (exception) {\n            if (! (manager.__exit__ (exception.name, exception, exception.stack))) {\n                throw exception;\n            }\n        }\n    }\n    else {\n        statements ();\n        manager.close ();\n    }\n};\nexport function dir (obj) {\n    var aList = [];\n    for (var aKey in obj) {\n        aList.push (aKey.startsWith ('py_') ? aKey.slice (3) : aKey);\n    }\n    aList.sort ();\n    return aList;\n};\nexport function setattr (obj, name, value) {\n    obj [name] = value;\n};\nexport function getattr (obj, name) {\n    return name in obj ? obj [name] : obj ['py_' + name];\n};\nexport function hasattr (obj, name) {\n    try {\n        return name in obj || 'py_' + name in obj;\n    }\n    catch (exception) {\n        return false;\n    }\n};\nexport function delattr (obj, name) {\n    if (name in obj) {\n        delete obj [name];\n    }\n    else {\n        delete obj ['py_' + name];\n    }\n};\nexport function __in__ (element, container) {\n    if (container === undefined || container === null) {\n        return false;\n    }\n    if (container.__contains__ instanceof Function) {\n        return container.__contains__ (element);\n    }\n    else {\n        return (\n            container.indexOf ?\n            container.indexOf (element) > -1 :\n            container.hasOwnProperty (element)\n        );\n    }\n};\nexport function __specialattrib__ (attrib) {\n    return (attrib.startswith ('__') && attrib.endswith ('__')) || attrib == 'constructor' || attrib.startswith ('py_');\n};\nexport function len (anObject) {\n    if (anObject === undefined || anObject === null) {\n        return 0;\n    }\n    if (anObject.__len__ instanceof Function) {\n        return anObject.__len__ ();\n    }\n    if (anObject.length !== undefined) {\n        return anObject.length;\n    }\n    var length = 0;\n    for (var attr in anObject) {\n        if (!__specialattrib__ (attr)) {\n            length++;\n        }\n    }\n    return length;\n};\nexport function __i__ (any) {\n    return py_typeof (any) == dict ? any.py_keys () : any;\n}\nexport function __k__ (keyed, key) {\n    var result = keyed [key];\n    if (typeof result == 'undefined') {\n        if (keyed instanceof Array)\n            if (key == +key && key >= 0 && keyed.length > key)\n                return result;\n            else\n                throw IndexError (key, new Error());\n        else\n            throw KeyError (key, new Error());\n    }\n    return result;\n}\nexport function __t__ (target) {\n    return (\n        target === undefined || target === null ? false :\n        ['boolean', 'number'] .indexOf (typeof target) >= 0 ? target :\n        target.__bool__ instanceof Function ? (target.__bool__ () ? target : false) :\n        target.__len__ instanceof Function ?  (target.__len__ () !== 0 ? target : false) :\n        target instanceof Function ? target :\n        len (target) !== 0 ? target :\n        false\n    );\n}\nexport function float (any) {\n    if (any == 'inf') {\n        return Infinity;\n    }\n    else if (any == '-inf') {\n        return -Infinity;\n    }\n    else if (any == 'nan') {\n        return NaN;\n    }\n    else if (isNaN (parseFloat (any))) {\n        if (any === false) {\n            return 0;\n        }\n        else if (any === true) {\n            return 1;\n        }\n        else {\n            throw ValueError (\"could not convert string to float: '\" + str(any) + \"'\", new Error ());\n        }\n    }\n    else {\n        return +any;\n    }\n};\nfloat.__name__ = 'float';\nfloat.__bases__ = [object];\nexport function int (any) {\n    return float (any) | 0\n};\nint.__name__ = 'int';\nint.__bases__ = [object];\nexport function bool (any) {\n    return !!__t__ (any);\n};\nbool.__name__ = 'bool';\nbool.__bases__ = [int];\nexport function py_typeof (anObject) {\n    var aType = typeof anObject;\n    if (aType == 'object') {\n        try {\n            return '__class__' in anObject ? anObject.__class__ : object;\n        }\n        catch (exception) {\n            return aType;\n        }\n    }\n    else {\n        return (\n            aType == 'boolean' ? bool :\n            aType == 'string' ? str :\n            aType == 'number' ? (anObject % 1 == 0 ? int : float) :\n            null\n        );\n    }\n};\nexport function issubclass (aClass, classinfo) {\n    if (classinfo instanceof Array) {\n        for (let aClass2 of classinfo) {\n            if (issubclass (aClass, aClass2)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    try {\n        var aClass2 = aClass;\n        if (aClass2 == classinfo) {\n            return true;\n        }\n        else {\n            var bases = [].slice.call (aClass2.__bases__);\n            while (bases.length) {\n                aClass2 = bases.shift ();\n                if (aClass2 == classinfo) {\n                    return true;\n                }\n                if (aClass2.__bases__.length) {\n                    bases = [].slice.call (aClass2.__bases__).concat (bases);\n                }\n            }\n            return false;\n        }\n    }\n    catch (exception) {\n        return aClass == classinfo || classinfo == object;\n    }\n};\nexport function isinstance (anObject, classinfo) {\n    try {\n        return '__class__' in anObject ? issubclass (anObject.__class__, classinfo) : issubclass (py_typeof (anObject), classinfo);\n    }\n    catch (exception) {\n        return issubclass (py_typeof (anObject), classinfo);\n    }\n};\nexport function callable (anObject) {\n    return anObject && typeof anObject == 'object' && '__call__' in anObject ? true : typeof anObject === 'function';\n};\nexport function repr (anObject) {\n    try {\n        return anObject.__repr__ ();\n    }\n    catch (exception) {\n        try {\n            return anObject.__str__ ();\n        }\n        catch (exception) {\n            try {\n                if (anObject == null) {\n                    return 'None';\n                }\n                else if (anObject.constructor == Object) {\n                    var result = '{';\n                    var comma = false;\n                    for (var attrib in anObject) {\n                        if (!__specialattrib__ (attrib)) {\n                            if (attrib.isnumeric ()) {\n                                var attribRepr = attrib;\n                            }\n                            else {\n                                var attribRepr = '\\'' + attrib + '\\'';\n                            }\n                            if (comma) {\n                                result += ', ';\n                            }\n                            else {\n                                comma = true;\n                            }\n                            result += attribRepr + ': ' + repr (anObject [attrib]);\n                        }\n                    }\n                    result += '}';\n                    return result;\n                }\n                else {\n                    return typeof anObject == 'boolean' ? anObject.toString () .capitalize () : anObject.toString ();\n                }\n            }\n            catch (exception) {\n                return '<object of type: ' + typeof anObject + '>';\n            }\n        }\n    }\n};\nexport function chr (charCode) {\n    return String.fromCharCode (charCode);\n};\nexport function ord (aChar) {\n    return aChar.charCodeAt (0);\n};\nexport function max (nrOrSeq) {\n    return arguments.length == 1 ? Math.max (...nrOrSeq) : Math.max (...arguments);\n};\nexport function min (nrOrSeq) {\n    return arguments.length == 1 ? Math.min (...nrOrSeq) : Math.min (...arguments);\n};\nexport var abs = Math.abs;\nexport function round (number, ndigits) {\n    if (ndigits) {\n        var scale = Math.pow (10, ndigits);\n        number *= scale;\n    }\n    var rounded = Math.round (number);\n    if (rounded - number == 0.5 && rounded % 2) {\n        rounded -= 1;\n    }\n    if (ndigits) {\n        rounded /= scale;\n    }\n    return rounded;\n};\nexport function __jsUsePyNext__ () {\n    try {\n        var result = this.__next__ ();\n        return {value: result, done: false};\n    }\n    catch (exception) {\n        return {value: undefined, done: true};\n    }\n}\nexport function __pyUseJsNext__ () {\n    var result = this.next ();\n    if (result.done) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result.value;\n    }\n}\nexport function py_iter (iterable) {\n    if (typeof iterable == 'string' || '__iter__' in iterable) {\n        var result = iterable.__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('selector' in iterable) {\n        var result = list (iterable) .__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('next' in iterable) {\n        var result = iterable\n        if (! ('__next__' in result)) {\n            result.__next__ = __pyUseJsNext__;\n        }\n    }\n    else if (Symbol.iterator in iterable) {\n        var result = iterable [Symbol.iterator] ();\n        result.__next__ = __pyUseJsNext__;\n    }\n    else {\n        throw IterableError (new Error ());\n    }\n    result [Symbol.iterator] = function () {return result;};\n    return result;\n}\nexport function py_next (iterator) {\n    try {\n        var result = iterator.__next__ ();\n    }\n    catch (exception) {\n        var result = iterator.next ();\n        if (result.done) {\n            throw StopIteration (new Error ());\n        }\n        else {\n            return result.value;\n        }\n    }\n    if (result == undefined) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result;\n    }\n}\nexport function __PyIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__PyIterator__.prototype.__next__ = function() {\n    if (this.index < this.iterable.length) {\n        return this.iterable [this.index++];\n    }\n    else {\n        throw StopIteration (new Error ());\n    }\n};\nexport function __JsIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__JsIterator__.prototype.next = function () {\n    if (this.index < this.iterable.py_keys.length) {\n        return {value: this.index++, done: false};\n    }\n    else {\n        return {value: undefined, done: true};\n    }\n};\nexport function py_reversed (iterable) {\n    iterable = iterable.slice ();\n    iterable.reverse ();\n    return iterable;\n};\nexport function zip () {\n    var args = [] .slice.call (arguments);\n    for (var i = 0; i < args.length; i++) {\n        if (typeof args [i] == 'string') {\n            args [i] = args [i] .split ('');\n        }\n        else if (!Array.isArray (args [i])) {\n            args [i] = Array.from (args [i]);\n        }\n    }\n    var shortest = args.length == 0 ? [] : args.reduce (\n        function (array0, array1) {\n            return array0.length < array1.length ? array0 : array1;\n        }\n    );\n    return shortest.map (\n        function (current, index) {\n            return args.map (\n                function (current) {\n                    return current [index];\n                }\n            );\n        }\n    );\n};\nexport function range (start, stop, step) {\n    if (stop == undefined) {\n        stop = start;\n        start = 0;\n    }\n    if (step == undefined) {\n        step = 1;\n    }\n    if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) {\n        return [];\n    }\n    var result = [];\n    for (var i = start; step > 0 ? i < stop : i > stop; i += step) {\n        result.push(i);\n    }\n    return result;\n};\nexport function any (iterable) {\n    for (let item of iterable) {\n        if (bool (item)) {\n            return true;\n        }\n    }\n    return false;\n}\nexport function all (iterable) {\n    for (let item of iterable) {\n        if (! bool (item)) {\n            return false;\n        }\n    }\n    return true;\n}\nexport function sum (iterable) {\n    let result = 0;\n    for (let item of iterable) {\n        result += item;\n    }\n    return result;\n}\nexport function enumerate (iterable) {\n    return zip (range (len (iterable)), iterable);\n}\nexport function copy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = anObject [attrib];\n            }\n        }\n        return result;\n    }\n}\nexport function deepcopy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = deepcopy (anObject [attrib]);\n            }\n        }\n        return result;\n    }\n}\nexport function list (iterable) {\n    let instance = iterable ? Array.from (iterable) : [];\n    return instance;\n}\nArray.prototype.__class__ = list;\nlist.__name__ = 'list';\nlist.__bases__ = [object];\nArray.prototype.__iter__ = function () {return new __PyIterator__ (this);};\nArray.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    else if (stop > this.length) {\n        stop = this.length;\n    }\n    if (step == 1) {\n        return Array.prototype.slice.call(this, start, stop);\n    }\n    let result = list ([]);\n    for (let index = start; index < stop; index += step) {\n        result.push (this [index]);\n    }\n    return result;\n};\nArray.prototype.__setslice__ = function (start, stop, step, source) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    if (step == null) {\n        Array.prototype.splice.apply (this, [start, stop - start] .concat (source));\n    }\n    else {\n        let sourceIndex = 0;\n        for (let targetIndex = start; targetIndex < stop; targetIndex += step) {\n            this [targetIndex] = source [sourceIndex++];\n        }\n    }\n};\nArray.prototype.__repr__ = function () {\n    if (this.__class__ == set && !this.length) {\n        return 'set()';\n    }\n    let result = !this.__class__ || this.__class__ == list ? '[' : this.__class__ == tuple ? '(' : '{';\n    for (let index = 0; index < this.length; index++) {\n        if (index) {\n            result += ', ';\n        }\n        result += repr (this [index]);\n    }\n    if (this.__class__ == tuple && this.length == 1) {\n        result += ',';\n    }\n    result += !this.__class__ || this.__class__ == list ? ']' : this.__class__ == tuple ? ')' : '}';;\n    return result;\n};\nArray.prototype.__str__ = Array.prototype.__repr__;\nArray.prototype.append = function (element) {\n    this.push (element);\n};\nArray.prototype.py_clear = function () {\n    this.length = 0;\n};\nArray.prototype.extend = function (aList) {\n    this.push.apply (this, aList);\n};\nArray.prototype.insert = function (index, element) {\n    this.splice (index, 0, element);\n};\nArray.prototype.remove = function (element) {\n    let index = this.indexOf (element);\n    if (index == -1) {\n        throw ValueError (\"list.remove(x): x not in list\", new Error ());\n    }\n    this.splice (index, 1);\n};\nArray.prototype.index = function (element) {\n    return this.indexOf (element);\n};\nArray.prototype.py_pop = function (index) {\n    if (index == undefined) {\n        return this.pop ();\n    }\n    else {\n        return this.splice (index, 1) [0];\n    }\n};\nArray.prototype.py_sort = function () {\n    __sort__.apply  (null, [this].concat ([] .slice.apply (arguments)));\n};\nArray.prototype.__add__ = function (aList) {\n    return list (this.concat (aList));\n};\nArray.prototype.__mul__ = function (scalar) {\n    let result = this;\n    for (let i = 1; i < scalar; i++) {\n        result = result.concat (this);\n    }\n    return result;\n};\nArray.prototype.__rmul__ = Array.prototype.__mul__;\nexport function tuple (iterable) {\n    let instance = iterable ? [] .slice.apply (iterable) : [];\n    instance.__class__ = tuple;\n    return instance;\n}\ntuple.__name__ = 'tuple';\ntuple.__bases__ = [object];\nexport function set (iterable) {\n    let instance = [];\n    if (iterable) {\n        for (let index = 0; index < iterable.length; index++) {\n            instance.add (iterable [index]);\n        }\n    }\n    instance.__class__ = set;\n    return instance;\n}\nset.__name__ = 'set';\nset.__bases__ = [object];\nArray.prototype.__bindexOf__ = function (element) {\n    element += '';\n    let mindex = 0;\n    let maxdex = this.length - 1;\n    while (mindex <= maxdex) {\n        let index = (mindex + maxdex) / 2 | 0;\n        let middle = this [index] + '';\n        if (middle < element) {\n            mindex = index + 1;\n        }\n        else if (middle > element) {\n            maxdex = index - 1;\n        }\n        else {\n            return index;\n        }\n    }\n    return -1;\n};\nArray.prototype.add = function (element) {\n    if (this.indexOf (element) == -1) {\n        this.push (element);\n    }\n};\nArray.prototype.discard = function (element) {\n    var index = this.indexOf (element);\n    if (index != -1) {\n        this.splice (index, 1);\n    }\n};\nArray.prototype.isdisjoint = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issuperset = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) == -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issubset = function (other) {\n    return set (other.slice ()) .issuperset (this);\n};\nArray.prototype.union = function (other) {\n    let result = set (this.slice () .sort ());\n    for (let i = 0; i < other.length; i++) {\n        if (result.__bindexOf__ (other [i]) == -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.intersection = function (other) {\n    this.sort ();\n    let result = set ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.difference = function (other) {\n    let sother = set (other.slice () .sort ());\n    let result = set ();\n    for (let i = 0; i < this.length; i++) {\n        if (sother.__bindexOf__ (this [i]) == -1) {\n            result.push (this [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.symmetric_difference = function (other) {\n    return this.union (other) .difference (this.intersection (other));\n};\nArray.prototype.py_update = function () {\n    let updated = [] .concat.apply (this.slice (), arguments) .sort ();\n    this.py_clear ();\n    for (let i = 0; i < updated.length; i++) {\n        if (updated [i] != updated [i - 1]) {\n            this.push (updated [i]);\n        }\n    }\n};\nArray.prototype.__eq__ = function (other) {\n    if (this.length != other.length) {\n        return false;\n    }\n    if (this.__class__ == set) {\n        this.sort ();\n        other.sort ();\n    }\n    for (let i = 0; i < this.length; i++) {\n        if (this [i] != other [i]) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.__ne__ = function (other) {\n    return !this.__eq__ (other);\n};\nArray.prototype.__le__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issubset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] > other [i]) {\n                return false;\n            }\n            else if (this [i] < other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__ge__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issuperset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] < other [i]) {\n                return false;\n            }\n            else if (this [i] > other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__lt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issubset (other) && !this.issuperset (other) :\n        !this.__ge__ (other)\n    );\n};\nArray.prototype.__gt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issuperset (other) && !this.issubset (other) :\n        !this.__le__ (other)\n    );\n};\nexport function bytearray (bytable, encoding) {\n    if (bytable == undefined) {\n        return new Uint8Array (0);\n    }\n    else {\n        let aType = py_typeof (bytable);\n        if (aType == int) {\n            return new Uint8Array (bytable);\n        }\n        else if (aType == str) {\n            let aBytes = new Uint8Array (len (bytable));\n            for (let i = 0; i < len (bytable); i++) {\n                aBytes [i] = bytable.charCodeAt (i);\n            }\n            return aBytes;\n        }\n        else if (aType == list || aType == tuple) {\n            return new Uint8Array (bytable);\n        }\n        else {\n            throw py_TypeError;\n        }\n    }\n}\nexport var bytes = bytearray;\nUint8Array.prototype.__add__ = function (aBytes) {\n    let result = new Uint8Array (this.length + aBytes.length);\n    result.set (this);\n    result.set (aBytes, this.length);\n    return result;\n};\nUint8Array.prototype.__mul__ = function (scalar) {\n    let result = new Uint8Array (scalar * this.length);\n    for (let i = 0; i < scalar; i++) {\n        result.set (this, i * this.length);\n    }\n    return result;\n};\nUint8Array.prototype.__rmul__ = Uint8Array.prototype.__mul__;\nexport function str (stringable) {\n    if (typeof stringable === 'number')\n        return stringable.toString();\n    else {\n        try {\n            return stringable.__str__ ();\n        }\n        catch (exception) {\n            try {\n                return repr (stringable);\n            }\n            catch (exception) {\n                return String (stringable);\n            }\n        }\n    }\n};\nString.prototype.__class__ = str;\nstr.__name__ = 'str';\nstr.__bases__ = [object];\nString.prototype.__iter__ = function () {new __PyIterator__ (this);};\nString.prototype.__repr__ = function () {\n    return (this.indexOf ('\\'') == -1 ? '\\'' + this + '\\'' : '\"' + this + '\"') .py_replace ('\\t', '\\\\t') .py_replace ('\\n', '\\\\n');\n};\nString.prototype.__str__ = function () {\n    return this;\n};\nString.prototype.capitalize = function () {\n    return this.charAt (0).toUpperCase () + this.slice (1);\n};\nString.prototype.endswith = function (suffix) {\n    if (suffix instanceof Array) {\n        for (var i=0;i<suffix.length;i++) {\n            if (this.slice (-suffix[i].length) == suffix[i])\n                return true;\n        }\n    } else\n        return suffix == '' || this.slice (-suffix.length) == suffix;\n    return false;\n};\nString.prototype.find = function (sub, start) {\n    return this.indexOf (sub, start);\n};\nString.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    var result = '';\n    if (step == 1) {\n        result = this.substring (start, stop);\n    }\n    else {\n        for (var index = start; index < stop; index += step) {\n            result = result.concat (this.charAt(index));\n        }\n    }\n    return result;\n};\n__setproperty__ (String.prototype, 'format', {\n    get: function () {return __get__ (this, function (self) {\n        var args = tuple ([] .slice.apply (arguments).slice (1));\n        var autoIndex = 0;\n        return self.replace (/\\{(\\w*)\\}/g, function (match, key) {\n            if (key == '') {\n                key = autoIndex++;\n            }\n            if (key == +key) {\n                return args [key] === undefined ? match : str (args [key]);\n            }\n            else {\n                for (var index = 0; index < args.length; index++) {\n                    if (typeof args [index] == 'object' && args [index][key] !== undefined) {\n                        return str (args [index][key]);\n                    }\n                }\n                return match;\n            }\n        });\n    });},\n    enumerable: true\n});\nString.prototype.isalnum = function () {\n    return /^[0-9a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isalpha = function () {\n    return /^[a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isdecimal = function () {\n    return /^[0-9]{1,}$/.test(this)\n}\nString.prototype.isdigit = function () {\n    return this.isdecimal()\n}\nString.prototype.islower = function () {\n    return /^[a-z]{1,}$/.test(this)\n}\nString.prototype.isupper = function () {\n    return /^[A-Z]{1,}$/.test(this)\n}\nString.prototype.isspace = function () {\n    return /^[\\s]{1,}$/.test(this)\n}\nString.prototype.isnumeric = function () {\n    return !isNaN (parseFloat (this)) && isFinite (this);\n};\nString.prototype.join = function (strings) {\n    strings = Array.from (strings);\n    return strings.join (this);\n};\nString.prototype.lower = function () {\n    return this.toLowerCase ();\n};\nString.prototype.py_replace = function (old, aNew, maxreplace) {\n    return this.split (old, maxreplace) .join (aNew);\n};\nString.prototype.lstrip = function () {\n    return this.replace (/^\\s*/g, '');\n};\nString.prototype.rfind = function (sub, start) {\n    return this.lastIndexOf (sub, start);\n};\nString.prototype.rsplit = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            var maxrsplit = result.length - maxsplit;\n            return [result.slice (0, maxrsplit) .join (sep)] .concat (result.slice (maxrsplit));\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.rstrip = function () {\n    return this.replace (/\\s*$/g, '');\n};\nString.prototype.py_split = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            return result.slice (0, maxsplit).concat ([result.slice (maxsplit).join (sep)]);\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.startswith = function (prefix) {\n    if (prefix instanceof Array) {\n        for (var i=0;i<prefix.length;i++) {\n            if (this.indexOf (prefix [i]) == 0)\n                return true;\n        }\n    } else\n        return this.indexOf (prefix) == 0;\n    return false;\n};\nString.prototype.strip = function () {\n    return this.trim ();\n};\nString.prototype.upper = function () {\n    return this.toUpperCase ();\n};\nString.prototype.__mul__ = function (scalar) {\n    var result = '';\n    for (var i = 0; i < scalar; i++) {\n        result = result + this;\n    }\n    return result;\n};\nString.prototype.__rmul__ = String.prototype.__mul__;\nfunction __contains__ (element) {\n    return this.hasOwnProperty (element);\n}\nfunction __keys__ () {\n    var keys = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            keys.push (attrib);\n        }\n    }\n    return keys;\n}\nfunction __items__ () {\n    var items = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            items.push ([attrib, this [attrib]]);\n        }\n    }\n    return items;\n}\nfunction __del__ (key) {\n    delete this [key];\n}\nfunction __clear__ () {\n    for (var attrib in this) {\n        delete this [attrib];\n    }\n}\nfunction __getdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result == undefined) {\n        result = this ['py_' + aKey]\n    }\n    return result == undefined ? (aDefault == undefined ? null : aDefault) : result;\n}\nfunction __setdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        return result;\n    }\n    var val = aDefault == undefined ? null : aDefault;\n    this [aKey] = val;\n    return val;\n}\nfunction __pop__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        delete this [aKey];\n        return result;\n    } else {\n        if ( aDefault === undefined ) {\n            throw KeyError (aKey, new Error());\n        }\n    }\n    return aDefault;\n}\nfunction __popitem__ () {\n    var aKey = Object.keys (this) [0];\n    if (aKey == null) {\n        throw KeyError (\"popitem(): dictionary is empty\", new Error ());\n    }\n    var result = tuple ([aKey, this [aKey]]);\n    delete this [aKey];\n    return result;\n}\nfunction __update__ (aDict) {\n    for (var aKey in aDict) {\n        this [aKey] = aDict [aKey];\n    }\n}\nfunction __values__ () {\n    var values = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            values.push (this [attrib]);\n        }\n    }\n    return values;\n}\nfunction __dgetitem__ (aKey) {\n    return this [aKey];\n}\nfunction __dsetitem__ (aKey, aValue) {\n    this [aKey] = aValue;\n}\nexport function dict (objectOrPairs) {\n    var instance = {};\n    if (!objectOrPairs || objectOrPairs instanceof Array) {\n        if (objectOrPairs) {\n            for (var index = 0; index < objectOrPairs.length; index++) {\n                var pair = objectOrPairs [index];\n                if ( !(pair instanceof Array) || pair.length != 2) {\n                    throw ValueError(\n                        \"dict update sequence element #\" + index +\n                        \" has length \" + pair.length +\n                        \"; 2 is required\", new Error());\n                }\n                var key = pair [0];\n                var val = pair [1];\n                if (!(objectOrPairs instanceof Array) && objectOrPairs instanceof Object) {\n                     if (!isinstance (objectOrPairs, dict)) {\n                         val = dict (val);\n                     }\n                }\n                instance [key] = val;\n            }\n        }\n    }\n    else {\n        if (isinstance (objectOrPairs, dict)) {\n            var aKeys = objectOrPairs.py_keys ();\n            for (var index = 0; index < aKeys.length; index++ ) {\n                var key = aKeys [index];\n                instance [key] = objectOrPairs [key];\n            }\n        } else if (objectOrPairs instanceof Object) {\n            instance = objectOrPairs;\n        } else {\n            throw ValueError (\"Invalid type of object for dict creation\", new Error ());\n        }\n    }\n    __setproperty__ (instance, '__class__', {value: dict, enumerable: false, writable: true});\n    __setproperty__ (instance, '__contains__', {value: __contains__, enumerable: false});\n    __setproperty__ (instance, 'py_keys', {value: __keys__, enumerable: false});\n    __setproperty__ (instance, '__iter__', {value: function () {new __PyIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, Symbol.iterator, {value: function () {new __JsIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, 'py_items', {value: __items__, enumerable: false});\n    __setproperty__ (instance, 'py_del', {value: __del__, enumerable: false});\n    __setproperty__ (instance, 'py_clear', {value: __clear__, enumerable: false});\n    __setproperty__ (instance, 'py_get', {value: __getdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_setdefault', {value: __setdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_pop', {value: __pop__, enumerable: false});\n    __setproperty__ (instance, 'py_popitem', {value: __popitem__, enumerable: false});\n    __setproperty__ (instance, 'py_update', {value: __update__, enumerable: false});\n    __setproperty__ (instance, 'py_values', {value: __values__, enumerable: false});\n    __setproperty__ (instance, '__getitem__', {value: __dgetitem__, enumerable: false});\n    __setproperty__ (instance, '__setitem__', {value: __dsetitem__, enumerable: false});\n    return instance;\n}\ndict.__name__ = 'dict';\ndict.__bases__ = [object];\nfunction __setdoc__ (docString) {\n    this.__doc__ = docString;\n    return this;\n}\n__setproperty__ (Function.prototype, '__setdoc__', {value: __setdoc__, enumerable: false});\nexport function __jsmod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __mod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __pow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport var pow = __pow__;\nexport function __neg__ (a) {\n    if (typeof a == 'object' && '__neg__' in a) {\n        return a.__neg__ ();\n    }\n    else {\n        return -a;\n    }\n};\nexport function __matmul__ (a, b) {\n    return a.__matmul__ (b);\n};\nexport function __mul__ (a, b) {\n    if (typeof a == 'object' && '__mul__' in a) {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return b.__rmul__ (a);\n    }\n    else {\n        return a * b;\n    }\n};\nexport function __truediv__ (a, b) {\n    if (typeof a == 'object' && '__truediv__' in a) {\n        return a.__truediv__ (b);\n    }\n    else if (typeof b == 'object' && '__rtruediv__' in b) {\n        return b.__rtruediv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return a / b;\n    }\n};\nexport function __floordiv__ (a, b) {\n    if (typeof a == 'object' && '__floordiv__' in a) {\n        return a.__floordiv__ (b);\n    }\n    else if (typeof b == 'object' && '__rfloordiv__' in b) {\n        return b.__rfloordiv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return Math.floor (a / b);\n    }\n};\nexport function __add__ (a, b) {\n    if (typeof a == 'object' && '__add__' in a) {\n        return a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return b.__radd__ (a);\n    }\n    else {\n        return a + b;\n    }\n};\nexport function __sub__ (a, b) {\n    if (typeof a == 'object' && '__sub__' in a) {\n        return a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return b.__rsub__ (a);\n    }\n    else {\n        return a - b;\n    }\n};\nexport function __lshift__ (a, b) {\n    if (typeof a == 'object' && '__lshift__' in a) {\n        return a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return b.__rlshift__ (a);\n    }\n    else {\n        return a << b;\n    }\n};\nexport function __rshift__ (a, b) {\n    if (typeof a == 'object' && '__rshift__' in a) {\n        return a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return b.__rrshift__ (a);\n    }\n    else {\n        return a >> b;\n    }\n};\nexport function __or__ (a, b) {\n    if (typeof a == 'object' && '__or__' in a) {\n        return a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return b.__ror__ (a);\n    }\n    else {\n        return a | b;\n    }\n};\nexport function __xor__ (a, b) {\n    if (typeof a == 'object' && '__xor__' in a) {\n        return a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return b.__rxor__ (a);\n    }\n    else {\n        return a ^ b;\n    }\n};\nexport function __and__ (a, b) {\n    if (typeof a == 'object' && '__and__' in a) {\n        return a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return b.__rand__ (a);\n    }\n    else {\n        return a & b;\n    }\n};\nexport function __eq__ (a, b) {\n    if (typeof a == 'object' && '__eq__' in a) {\n        return a.__eq__ (b);\n    }\n    else {\n        return a == b;\n    }\n};\nexport function __ne__ (a, b) {\n    if (typeof a == 'object' && '__ne__' in a) {\n        return a.__ne__ (b);\n    }\n    else {\n        return a != b\n    }\n};\nexport function __lt__ (a, b) {\n    if (typeof a == 'object' && '__lt__' in a) {\n        return a.__lt__ (b);\n    }\n    else {\n        return a < b;\n    }\n};\nexport function __le__ (a, b) {\n    if (typeof a == 'object' && '__le__' in a) {\n        return a.__le__ (b);\n    }\n    else {\n        return a <= b;\n    }\n};\nexport function __gt__ (a, b) {\n    if (typeof a == 'object' && '__gt__' in a) {\n        return a.__gt__ (b);\n    }\n    else {\n        return a > b;\n    }\n};\nexport function __ge__ (a, b) {\n    if (typeof a == 'object' && '__ge__' in a) {\n        return a.__ge__ (b);\n    }\n    else {\n        return a >= b;\n    }\n};\nexport function __imatmul__ (a, b) {\n    if ('__imatmul__' in a) {\n        return a.__imatmul__ (b);\n    }\n    else {\n        return a.__matmul__ (b);\n    }\n};\nexport function __ipow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__ipow__ (b);\n    }\n    else if (typeof a == 'object' && '__ipow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport function __ijsmod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__ismod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __imod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__imod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __imul__ (a, b) {\n    if (typeof a == 'object' && '__imul__' in a) {\n        return a.__imul__ (b);\n    }\n    else if (typeof a == 'object' && '__mul__' in a) {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return a = b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return a = b.__rmul__ (a);\n    }\n    else {\n        return a *= b;\n    }\n};\nexport function __idiv__ (a, b) {\n    if (typeof a == 'object' && '__idiv__' in a) {\n        return a.__idiv__ (b);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a = a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return a = b.__rdiv__ (a);\n    }\n    else {\n        return a /= b;\n    }\n};\nexport function __iadd__ (a, b) {\n    if (typeof a == 'object' && '__iadd__' in a) {\n        return a.__iadd__ (b);\n    }\n    else if (typeof a == 'object' && '__add__' in a) {\n        return a = a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return a = b.__radd__ (a);\n    }\n    else {\n        return a += b;\n    }\n};\nexport function __isub__ (a, b) {\n    if (typeof a == 'object' && '__isub__' in a) {\n        return a.__isub__ (b);\n    }\n    else if (typeof a == 'object' && '__sub__' in a) {\n        return a = a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return a = b.__rsub__ (a);\n    }\n    else {\n        return a -= b;\n    }\n};\nexport function __ilshift__ (a, b) {\n    if (typeof a == 'object' && '__ilshift__' in a) {\n        return a.__ilshift__ (b);\n    }\n    else if (typeof a == 'object' && '__lshift__' in a) {\n        return a = a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return a = b.__rlshift__ (a);\n    }\n    else {\n        return a <<= b;\n    }\n};\nexport function __irshift__ (a, b) {\n    if (typeof a == 'object' && '__irshift__' in a) {\n        return a.__irshift__ (b);\n    }\n    else if (typeof a == 'object' && '__rshift__' in a) {\n        return a = a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return a = b.__rrshift__ (a);\n    }\n    else {\n        return a >>= b;\n    }\n};\nexport function __ior__ (a, b) {\n    if (typeof a == 'object' && '__ior__' in a) {\n        return a.__ior__ (b);\n    }\n    else if (typeof a == 'object' && '__or__' in a) {\n        return a = a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return a = b.__ror__ (a);\n    }\n    else {\n        return a |= b;\n    }\n};\nexport function __ixor__ (a, b) {\n    if (typeof a == 'object' && '__ixor__' in a) {\n        return a.__ixor__ (b);\n    }\n    else if (typeof a == 'object' && '__xor__' in a) {\n        return a = a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return a = b.__rxor__ (a);\n    }\n    else {\n        return a ^= b;\n    }\n};\nexport function __iand__ (a, b) {\n    if (typeof a == 'object' && '__iand__' in a) {\n        return a.__iand__ (b);\n    }\n    else if (typeof a == 'object' && '__and__' in a) {\n        return a = a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return a = b.__rand__ (a);\n    }\n    else {\n        return a &= b;\n    }\n};\nexport function __getitem__ (container, key) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ (key);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        return container [container.length + key];\n    }\n    else {\n        return container [key];\n    }\n};\nexport function __setitem__ (container, key, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ (key, value);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        container [container.length + key] = value;\n    }\n    else {\n        container [key] = value;\n    }\n};\nexport function __getslice__ (container, lower, upper, step) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ ([lower, upper, step]);\n    }\n    else {\n        return container.__getslice__ (lower, upper, step);\n    }\n};\nexport function __setslice__ (container, lower, upper, step, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ ([lower, upper, step], value);\n    }\n    else {\n        container.__setslice__ (lower, upper, step, value);\n    }\n};\nexport var BaseException =  __class__ ('BaseException', [object], {\n\t__module__: __name__,\n});\nexport var Exception =  __class__ ('Exception', [BaseException], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tvar kwargs = dict ();\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tdefault: kwargs [__attrib0__] = __allkwargs0__ [__attrib0__];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdelete kwargs.__kwargtrans__;\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.__args__ = args;\n\t\tif (kwargs.error != null) {\n\t\t\tself.stack = kwargs.error.stack;\n\t\t}\n\t\telse if (Error) {\n\t\t\tself.stack = new Error ().stack;\n\t\t}\n\t\telse {\n\t\t\tself.stack = 'No stack trace available';\n\t\t}\n\t});},\n\tget __repr__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]));\n\t\t}\n\t\telse {\n\t\t\treturn '{}()'.format (self.__class__.__name__);\n\t\t}\n\t});},\n\tget __str__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn str (tuple (self.__args__));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn str (self.__args__ [0]);\n\t\t}\n\t\telse {\n\t\t\treturn '';\n\t\t}\n\t});}\n});\nexport var IterableError =  __class__ ('IterableError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, \"Can't iterate over non-iterable\", __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var StopIteration =  __class__ ('StopIteration', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, 'Iterator exhausted', __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var ValueError =  __class__ ('ValueError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var KeyError =  __class__ ('KeyError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AssertionError =  __class__ ('AssertionError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tif (message) {\n\t\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t\t}\n\t\telse {\n\t\t\tException.__init__ (self, __kwargtrans__ ({error: error}));\n\t\t}\n\t});}\n});\nexport var NotImplementedError =  __class__ ('NotImplementedError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var IndexError =  __class__ ('IndexError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AttributeError =  __class__ ('AttributeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var py_TypeError =  __class__ ('py_TypeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var Warning =  __class__ ('Warning', [Exception], {\n\t__module__: __name__,\n});\nexport var UserWarning =  __class__ ('UserWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var DeprecationWarning =  __class__ ('DeprecationWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var RuntimeWarning =  __class__ ('RuntimeWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var __sort__ = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (key) {\n\t\titerable.sort ((function __lambda__ (a, b) {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\t\tcase 'a': var a = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t\tcase 'b': var b = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\treturn (key (a) > key (b) ? 1 : -(1));\n\t\t}));\n\t}\n\telse {\n\t\titerable.sort ();\n\t}\n\tif (reverse) {\n\t\titerable.reverse ();\n\t}\n};\nexport var sorted = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (py_typeof (iterable) == dict) {\n\t\tvar result = copy (iterable.py_keys ());\n\t}\n\telse {\n\t\tvar result = copy (iterable);\n\t}\n\t__sort__ (result, key, reverse);\n\treturn result;\n};\nexport var map = function (func, iterable) {\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\t__accu0__.append (func (item));\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var filter = function (func, iterable) {\n\tif (func == null) {\n\t\tvar func = bool;\n\t}\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\tif (func (item)) {\n\t\t\t\t__accu0__.append (item);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var divmod = function (n, d) {\n\treturn tuple ([Math.floor (n / d), __mod__ (n, d)]);\n};\nexport var __Terminal__ =  __class__ ('__Terminal__', [object], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tself.buffer = '';\n\t\ttry {\n\t\t\tself.element = document.getElementById ('__terminal__');\n\t\t}\n\t\tcatch (__except0__) {\n\t\t\tself.element = null;\n\t\t}\n\t\tif (self.element) {\n\t\t\tself.element.style.overflowX = 'auto';\n\t\t\tself.element.style.boxSizing = 'border-box';\n\t\t\tself.element.style.padding = '5px';\n\t\t\tself.element.innerHTML = '_';\n\t\t}\n\t});},\n\tget print () {return __get__ (this, function (self) {\n\t\tvar sep = ' ';\n\t\tvar end = '\\n';\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'sep': var sep = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'end': var end = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.buffer = '{}{}{}'.format (self.buffer, sep.join ((function () {\n\t\t\tvar __accu0__ = [];\n\t\t\tfor (var arg of args) {\n\t\t\t\t__accu0__.append (str (arg));\n\t\t\t}\n\t\t\treturn __accu0__;\n\t\t}) ()), end).__getslice__ (-(4096), null, 1);\n\t\tif (self.element) {\n\t\t\tself.element.innerHTML = self.buffer.py_replace ('\\n', '<br>').py_replace (' ', '&nbsp');\n\t\t\tself.element.scrollTop = self.element.scrollHeight;\n\t\t}\n\t\telse {\n\t\t\tconsole.log (sep.join ((function () {\n\t\t\t\tvar __accu0__ = [];\n\t\t\t\tfor (var arg of args) {\n\t\t\t\t\t__accu0__.append (str (arg));\n\t\t\t\t}\n\t\t\t\treturn __accu0__;\n\t\t\t}) ()));\n\t\t}\n\t});},\n\tget input () {return __get__ (this, function (self, question) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'question': var question = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.print ('{}'.format (question), __kwargtrans__ ({end: ''}));\n\t\tvar answer = window.prompt ('\\n'.join (self.buffer.py_split ('\\n').__getslice__ (-(8), null, 1)));\n\t\tself.print (answer);\n\t\treturn answer;\n\t});}\n});\nexport var __terminal__ = __Terminal__ ();\nexport var print = __terminal__.print;\nexport var input = __terminal__.input;\n\n//# sourceMappingURL=org.transcrypt.__runtime__.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/org.transcrypt.__runtime__.py",
    "content": "# Transcrypt runtime module\r\n\r\n#__pragma__ ('js', 'export var __envir__ = {{}};\\n{}', __include__ ('org/transcrypt/__envir__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__core__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__builtin__.js'))\r\n\r\n#__pragma__ ('skip')\r\ncopy = Math = __typeof__ = __repr__ = document = console = window = 0\r\n#__pragma__ ('noskip')\r\n\r\n#__pragma__ ('notconv')  # !!! tconv gives a problem with __terminal__, needs investigation\r\n#__pragma__ ('nokwargs')\r\n#__pragma__ ('noalias', 'sort')\r\n\r\nclass BaseException:\r\n    pass\r\n\r\nclass Exception (BaseException):\r\n    #__pragma__ ('kwargs')\r\n    def __init__ (self, *args, **kwargs):\r\n        self.__args__ = args\r\n        if kwargs.error != None:\r\n            self.stack = kwargs.error.stack # Integrate with JavaScript Error object\r\n        elif Error:\r\n            self.stack = (__new__(Error())).stack # Create our own stack if we aren't given one\r\n        else:\r\n            self.stack = 'No stack trace available'\r\n    #__pragma__ ('nokwargs')\r\n        \r\n    def __repr__ (self):\r\n        if len (self.__args__) > 1:\r\n            return '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)))\r\n        elif len (self.__args__):\r\n            return '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]))        \r\n        else:\r\n            return '{}()'.format (self.__class__.__name__)\r\n            \r\n    def __str__ (self):\r\n        if len (self.__args__) > 1:\r\n            return str (tuple (self.__args__))\r\n        elif len (self.__args__):\r\n            return str (self.__args__ [0])\r\n        else:\r\n            return ''\r\n        \r\nclass IterableError (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Can\\'t iterate over non-iterable', error = error)\r\n            \r\nclass StopIteration (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Iterator exhausted', error = error)\r\n        \r\nclass ValueError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass KeyError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass AssertionError (Exception):\r\n    def __init__ (self, message, error):\r\n        if message:\r\n            Exception.__init__ (self, message, error = error)\r\n        else:\r\n            Exception.__init__ (self, error = error)\r\n\r\nclass NotImplementedError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass IndexError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass AttributeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass TypeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\n# Warnings Exceptions\r\n# N.B. This is a limited subset of the warnings defined in\r\n# the cpython implementation to keep things small for now.\r\n\r\nclass Warning (Exception):\r\n    ''' Warning Base Class\r\n    '''\r\n    pass\r\n\r\nclass UserWarning (Warning):\r\n    pass\r\n\r\nclass DeprecationWarning (Warning):\r\n    pass\r\n\r\nclass RuntimeWarning (Warning):\r\n    pass\r\n    \r\n#__pragma__ ('kwargs')\r\n\r\ndef __sort__ (iterable, key = None, reverse = False):               # Used by py_sort, can deal with kwargs\r\n    if key:\r\n        iterable.sort (lambda a, b: 1 if key (a) > key (b) else -1) # JavaScript sort, case '==' is irrelevant for sorting\r\n    else:\r\n        iterable.sort ()                                            # JavaScript sort\r\n        \r\n    if reverse:\r\n        iterable.reverse ()\r\n        \r\ndef sorted (iterable, key = None, reverse = False):\r\n    if type (iterable) == dict:\r\n        result = copy (iterable.keys ()) \r\n    else:       \r\n        result = copy (iterable)\r\n        \r\n    __sort__ (result, key, reverse)\r\n    return result\r\n\r\n#__pragma__ ('nokwargs')\r\n\r\ndef map (func, iterable):\r\n    return [func (item) for item in iterable]\r\n\r\n\r\ndef filter (func, iterable):\r\n    if func == None:\r\n        func = bool\r\n    return [item for item in iterable if func (item)]\r\n    \r\ndef divmod (n, d):\r\n    return n // d, n % d\r\n    \r\n#__pragma__ ('ifdef', '__complex__')\r\n\r\nclass complex:\r\n    def __init__ (self, real, imag = None):\r\n        if imag == None:\r\n            if type (real) == complex:\r\n                self.real = real.real\r\n                self.imag = real.imag\r\n            else:\r\n                self.real = real\r\n                self.imag = 0\r\n        else:\r\n            self.real = real\r\n            self.imag = imag\r\n            \r\n    def __neg__ (self):\r\n        return complex (-self.real, -self.imag)\r\n        \r\n    def __exp__ (self):\r\n        modulus = Math.exp (self.real)\r\n        return complex (modulus * Math.cos (self.imag), modulus * Math.sin (self.imag))\r\n    \r\n    def __log__ (self):\r\n        return complex (Math.log (Math.sqrt (self.real * self.real + self.imag * self.imag)), Math.atan2 (self.imag, self.real))\r\n        \r\n    def __pow__ (self, other):  # a ** b = exp (b log a)\r\n        return (self.__log__ () .__mul__ (other)) .__exp__ ()\r\n        \r\n    def __rpow__ (self, real):  # real ** comp -> comp.__rpow__ (real)\r\n        return self.__mul__ (Math.log (real)) .__exp__ ()\r\n        \r\n    def __mul__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real * other, self.imag * other)\r\n        else:\r\n            return complex (self.real * other.real - self.imag * other.imag, self.real * other.imag + self.imag * other.real)\r\n        \r\n    def __rmul__ (self, real):  # real + comp -> comp.__rmul__ (real)\r\n        return complex (self.real * real, self.imag * real)\r\n        \r\n    def __div__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real / other, self.imag / other)\r\n        else:\r\n            denom = other.real * other.real + other.imag * other.imag\r\n            return complex (\r\n                (self.real * other.real + self.imag * other.imag) / denom,\r\n                (self.imag * other.real - self.real * other.imag) / denom\r\n            )\r\n        \r\n    def __rdiv__ (self, real):  # real / comp -> comp.__rdiv__ (real)\r\n        denom = self.real * self.real\r\n        return complex (\r\n            (real * self.real) / denom,\r\n            (real * self.imag) / denom\r\n        )\r\n        \r\n    def __add__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real + other, self.imag)\r\n        else:   # Assume other is complex\r\n            return complex (self.real + other.real, self.imag + other.imag)\r\n        \r\n    def __radd__ (self, real):  # real + comp -> comp.__radd__ (real)\r\n        return complex (self.real + real, self.imag)\r\n        \r\n    def __sub__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real - other, self.imag)\r\n        else:\r\n            return complex (self.real - other.real, self.imag - other.imag)\r\n        \r\n    def __rsub__ (self, real):  # real - comp -> comp.__rsub__ (real)\r\n        return complex (real - self.real, -self.imag)\r\n        \r\n    def __repr__ (self):\r\n        return '({}{}{}j)'.format (self.real, '+' if self.imag >= 0 else '', self.imag)\r\n            \r\n    def __str__ (self):\r\n        return __repr__ (self) [1 : -1]\r\n        \r\n    def __eq__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real == other\r\n        else:\r\n            return self.real == other.real and self.imag == other.imag\r\n        \r\n    def __ne__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real != other\r\n        else:\r\n            return self.real != other.real or self.imag != other.imag\r\n        \r\n    def conjugate (self):\r\n        return complex (self.real, -self.imag)\r\n        \r\ndef __conj__ (aNumber):\r\n    if isinstance (aNumber, complex):\r\n        return complex (aNumber.real, -aNumber.imag)\r\n    else:\r\n        return complex (aNumber, 0)\r\n        \r\n#__pragma__ ('endif')\r\n\r\nclass __Terminal__:\r\n    '''\r\n    Printing to either the console or to html happens async, but is blocked by calling window.prompt.\r\n    So while all input and print statements are encountered in normal order, the print's exit immediately without yet having actually printed\r\n    This means the next input takes control, blocking actual printing and so on indefinitely\r\n    The effect is that everything's only printed after all inputs are done\r\n    To prevent that, what's needed is to only execute the next window.prompt after actual printing has been done\r\n    Since we've no way to find out when that is, a timeout is used.\r\n    '''\r\n\r\n    def __init__ (self):\r\n        self.buffer = ''\r\n    \r\n        try:\r\n            self.element = document.getElementById ('__terminal__')\r\n        except:\r\n            self.element = None\r\n            \r\n        if self.element:\r\n            self.element.style.overflowX = 'auto'\r\n            self.element.style.boxSizing = 'border-box'\r\n            self.element.style.padding = '5px'\r\n            self.element.innerHTML = '_'\r\n        \r\n    #__pragma__ ('kwargs')\r\n        \r\n    def print (self, *args, sep = ' ', end = '\\n'):\r\n        self.buffer = '{}{}{}'.format (self.buffer, sep.join ([str (arg) for arg in args]), end) [-4096 : ] \r\n        \r\n        if self.element:\r\n            self.element.innerHTML = self.buffer.replace ('\\n', '<br>') .replace (' ', '&nbsp')\r\n            self.element.scrollTop = self.element.scrollHeight\r\n        else:\r\n            console.log (sep.join ([str (arg) for arg in args]))\r\n        \r\n    def input (self, question):\r\n        self.print ('{}'.format (question), end = '')\r\n        answer = window.prompt ('\\n'.join (self.buffer.split ('\\n') [-8:]))\r\n        self.print (answer)\r\n        return answer\r\n        \r\n    #__pragma__ ('nokwargs')\r\n    \r\n__terminal__ = __Terminal__ ()\r\n\r\nprint = __terminal__.print\r\ninput = __terminal__.input\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/pyp5js.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:17\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {PythonFunctions} from './python_functions.js';\nvar __name__ = 'pyp5js';\nexport var _P5_INSTANCE = null;\nexport var _CTX_MIDDLE = null;\nexport var _DEFAULT_FILL = null;\nexport var _DEFAULT_LEADMULT = null;\nexport var _DEFAULT_STROKE = null;\nexport var _DEFAULT_TEXT_FILL = null;\nexport var ADD = null;\nexport var ALT = null;\nexport var ARROW = null;\nexport var AUDIO = null;\nexport var AUTO = null;\nexport var AXES = null;\nexport var BACKSPACE = null;\nexport var BASELINE = null;\nexport var BEVEL = null;\nexport var BEZIER = null;\nexport var BLEND = null;\nexport var BLUR = null;\nexport var BOLD = null;\nexport var BOLDITALIC = null;\nexport var BOTTOM = null;\nexport var BURN = null;\nexport var CENTER = null;\nexport var CHORD = null;\nexport var CLAMP = null;\nexport var CLOSE = null;\nexport var CONTROL = null;\nexport var CORNER = null;\nexport var CORNERS = null;\nexport var CROSS = null;\nexport var CURVE = null;\nexport var DARKEST = null;\nexport var DEG_TO_RAD = null;\nexport var DEGREES = null;\nexport var DELETE = null;\nexport var DIFFERENCE = null;\nexport var DILATE = null;\nexport var DODGE = null;\nexport var DOWN_ARROW = null;\nexport var ENTER = null;\nexport var ERODE = null;\nexport var ESCAPE = null;\nexport var EXCLUSION = null;\nexport var FILL = null;\nexport var GRAY = null;\nexport var GRID = null;\nexport var HALF_PI = null;\nexport var HAND = null;\nexport var HARD_LIGHT = null;\nexport var HSB = null;\nexport var HSL = null;\nexport var IMAGE = null;\nexport var IMMEDIATE = null;\nexport var INVERT = null;\nexport var ITALIC = null;\nexport var LANDSCAPE = null;\nexport var LEFT = null;\nexport var LEFT_ARROW = null;\nexport var LIGHTEST = null;\nexport var LINE_LOOP = null;\nexport var LINE_STRIP = null;\nexport var LINEAR = null;\nexport var LINES = null;\nexport var MIRROR = null;\nexport var MITER = null;\nexport var MOVE = null;\nexport var MULTIPLY = null;\nexport var NEAREST = null;\nexport var NORMAL = null;\nexport var OPAQUE = null;\nexport var OPEN = null;\nexport var OPTION = null;\nexport var OVERLAY = null;\nexport var PI = null;\nexport var PIE = null;\nexport var POINTS = null;\nexport var PORTRAIT = null;\nexport var POSTERIZE = null;\nexport var PROJECT = null;\nexport var QUAD_STRIP = null;\nexport var QUADRATIC = null;\nexport var QUADS = null;\nexport var QUARTER_PI = null;\nexport var RAD_TO_DEG = null;\nexport var RADIANS = null;\nexport var RADIUS = null;\nexport var REPEAT = null;\nexport var REPLACE = null;\nexport var RETURN = null;\nexport var RGB = null;\nexport var RIGHT = null;\nexport var RIGHT_ARROW = null;\nexport var ROUND = null;\nexport var SCREEN = null;\nexport var SHIFT = null;\nexport var SOFT_LIGHT = null;\nexport var SQUARE = null;\nexport var STROKE = null;\nexport var SUBTRACT = null;\nexport var TAB = null;\nexport var TAU = null;\nexport var TEXT = null;\nexport var TEXTURE = null;\nexport var THRESHOLD = null;\nexport var TOP = null;\nexport var TRIANGLE_FAN = null;\nexport var TRIANGLE_STRIP = null;\nexport var TRIANGLES = null;\nexport var TWO_PI = null;\nexport var UP_ARROW = null;\nexport var VIDEO = null;\nexport var WAIT = null;\nexport var WEBGL = null;\nexport var P2D = null;\nvar PI = null;\nexport var frameCount = null;\nexport var focused = null;\nexport var displayWidth = null;\nexport var displayHeight = null;\nexport var windowWidth = null;\nexport var windowHeight = null;\nexport var width = null;\nexport var height = null;\nexport var disableFriendlyErrors = null;\nexport var deviceOrientation = null;\nexport var accelerationX = null;\nexport var accelerationY = null;\nexport var accelerationZ = null;\nexport var pAccelerationX = null;\nexport var pAccelerationY = null;\nexport var pAccelerationZ = null;\nexport var rotationX = null;\nexport var rotationY = null;\nexport var rotationZ = null;\nexport var pRotationX = null;\nexport var pRotationY = null;\nexport var pRotationZ = null;\nexport var turnAxis = null;\nexport var keyIsPressed = null;\nexport var key = null;\nexport var keyCode = null;\nexport var mouseX = null;\nexport var mouseY = null;\nexport var pmouseX = null;\nexport var pmouseY = null;\nexport var winMouseX = null;\nexport var winMouseY = null;\nexport var pwinMouseX = null;\nexport var pwinMouseY = null;\nexport var mouseButton = null;\nexport var mouseIsPressed = null;\nexport var touches = null;\nexport var pixels = null;\nexport var alpha = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.alpha (...args);\n};\nexport var blue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blue (...args);\n};\nexport var brightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.brightness (...args);\n};\nexport var color = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.color (...args);\n};\nexport var green = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.green (...args);\n};\nexport var hue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hue (...args);\n};\nexport var lerpColor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerpColor (...args);\n};\nexport var lightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lightness (...args);\n};\nexport var red = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.red (...args);\n};\nexport var saturation = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saturation (...args);\n};\nexport var background = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.background (...args);\n};\nexport var py_clear = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_clear = _P5_INSTANCE.clear (...args);\n\treturn p5_clear;\n};\nexport var erase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.erase (...args);\n};\nexport var noErase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noErase (...args);\n};\nexport var colorMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.colorMode (...args);\n};\nexport var fill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fill (...args);\n};\nexport var noFill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noFill (...args);\n};\nexport var noStroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noStroke (...args);\n};\nexport var stroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.stroke (...args);\n};\nexport var arc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arc (...args);\n};\nexport var ellipse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipse (...args);\n};\nexport var circle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.circle (...args);\n};\nexport var line = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.line (...args);\n};\nexport var point = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.point (...args);\n};\nexport var quad = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quad (...args);\n};\nexport var rect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rect (...args);\n};\nexport var square = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.square (...args);\n};\nexport var triangle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.triangle (...args);\n};\nexport var plane = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.plane (...args);\n};\nexport var box = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.box (...args);\n};\nexport var sphere = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sphere (...args);\n};\nexport var cylinder = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cylinder (...args);\n};\nexport var cone = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cone (...args);\n};\nexport var ellipsoid = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipsoid (...args);\n};\nexport var torus = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.torus (...args);\n};\nexport var loadModel = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadModel (...args);\n};\nexport var model = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.model (...args);\n};\nexport var ellipseMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipseMode (...args);\n};\nexport var noSmooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noSmooth (...args);\n};\nexport var rectMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rectMode (...args);\n};\nexport var smooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.smooth (...args);\n};\nexport var strokeCap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeCap (...args);\n};\nexport var strokeJoin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeJoin (...args);\n};\nexport var strokeWeight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeWeight (...args);\n};\nexport var bezier = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezier (...args);\n};\nexport var bezierDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierDetail (...args);\n};\nexport var bezierPoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierPoint (...args);\n};\nexport var bezierTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierTangent (...args);\n};\nexport var curve = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curve (...args);\n};\nexport var curveDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveDetail (...args);\n};\nexport var curveTightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTightness (...args);\n};\nexport var curvePoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curvePoint (...args);\n};\nexport var curveTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTangent (...args);\n};\nexport var beginContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginContour (...args);\n};\nexport var beginShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginShape (...args);\n};\nexport var bezierVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierVertex (...args);\n};\nexport var curveVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveVertex (...args);\n};\nexport var endContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endContour (...args);\n};\nexport var endShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endShape (...args);\n};\nexport var quadraticVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quadraticVertex (...args);\n};\nexport var vertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.vertex (...args);\n};\nexport var cursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cursor (...args);\n};\nexport var frameRate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.frameRate (...args);\n};\nexport var noCursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCursor (...args);\n};\nexport var fullscreen = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fullscreen (...args);\n};\nexport var pixelDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pixelDensity (...args);\n};\nexport var displayDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.displayDensity (...args);\n};\nexport var getURL = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURL (...args);\n};\nexport var getURLPath = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLPath (...args);\n};\nexport var getURLParams = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLParams (...args);\n};\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.preload (...args);\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setup (...args);\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.draw (...args);\n};\nexport var remove = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.remove (...args);\n};\nexport var noLoop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noLoop (...args);\n};\nexport var loop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loop (...args);\n};\nexport var push = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.push (...args);\n};\nexport var redraw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.redraw (...args);\n};\nexport var resizeCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resizeCanvas (...args);\n};\nexport var noCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCanvas (...args);\n};\nexport var createGraphics = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createGraphics (...args);\n};\nexport var blendMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blendMode (...args);\n};\nexport var setAttributes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setAttributes (...args);\n};\nexport var applyMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.applyMatrix (...args);\n};\nexport var resetMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetMatrix (...args);\n};\nexport var rotate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotate (...args);\n};\nexport var rotateX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateX (...args);\n};\nexport var rotateY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateY (...args);\n};\nexport var rotateZ = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateZ (...args);\n};\nexport var scale = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.scale (...args);\n};\nexport var shearX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearX (...args);\n};\nexport var shearY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearY (...args);\n};\nexport var translate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.translate (...args);\n};\nexport var createStringDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createStringDict (...args);\n};\nexport var createNumberDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createNumberDict (...args);\n};\nexport var append = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.append (...args);\n};\nexport var arrayCopy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arrayCopy (...args);\n};\nexport var concat = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.concat (...args);\n};\nexport var reverse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.reverse (...args);\n};\nexport var shorten = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shorten (...args);\n};\nexport var shuffle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shuffle (...args);\n};\nexport var py_sort = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_sort (...args);\n};\nexport var splice = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splice (...args);\n};\nexport var subset = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.subset (...args);\n};\nexport var float = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.float (...args);\n};\nexport var int = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.int (...args);\n};\nexport var str = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.str (...args);\n};\nexport var boolean = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.boolean (...args);\n};\nexport var byte = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.byte (...args);\n};\nexport var char = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.char (...args);\n};\nexport var unchar = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unchar (...args);\n};\nexport var hex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hex (...args);\n};\nexport var unhex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unhex (...args);\n};\nexport var join = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.join (...args);\n};\nexport var match = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.match (...args);\n};\nexport var matchAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.matchAll (...args);\n};\nexport var nf = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nf (...args);\n};\nexport var nfc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfc (...args);\n};\nexport var nfp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfp (...args);\n};\nexport var nfs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfs (...args);\n};\nexport var py_split = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_split (...args);\n};\nexport var splitTokens = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splitTokens (...args);\n};\nexport var trim = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.trim (...args);\n};\nexport var setMoveThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setMoveThreshold (...args);\n};\nexport var setShakeThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setShakeThreshold (...args);\n};\nexport var keyIsDown = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.keyIsDown (...args);\n};\nexport var createImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImage (...args);\n};\nexport var saveCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveCanvas (...args);\n};\nexport var saveFrames = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveFrames (...args);\n};\nexport var image_proxy = function (img) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'img': var img = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar _set = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.set (...args);\n\t\treturn value;\n\t};\n\tvar _get = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.get (...args);\n\t\treturn value;\n\t};\n\timg.py_set = _set;\n\timg.py_get = _get;\n\treturn img;\n};\nexport var loadImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar imageObj = _P5_INSTANCE.loadImage (...args);\n\treturn image_proxy (imageObj);\n};\nexport var image = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.image (...args);\n};\nexport var tint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tint (...args);\n};\nexport var noTint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noTint (...args);\n};\nexport var imageMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.imageMode (...args);\n};\nexport var blend = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blend (...args);\n};\nexport var copy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.copy (...args);\n};\nexport var filter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && (args [0] === null || callable (args [0]))) {\n\t\treturn PythonFunctions.filter (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.filter (...args);\n\t}\n};\nexport var py_get = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_get = _P5_INSTANCE.get (...args);\n\treturn p5_get;\n};\nexport var loadPixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadPixels (...args);\n};\nexport var py_set = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) <= 1) {\n\t\treturn PythonFunctions.py_set (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.py_set (...args);\n\t}\n};\nexport var updatePixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.updatePixels (...args);\n};\nexport var loadJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadJSON (...args);\n};\nexport var loadStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadStrings (...args);\n};\nexport var loadTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadTable (...args);\n};\nexport var loadXML = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadXML (...args);\n};\nexport var loadBytes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadBytes (...args);\n};\nexport var httpGet = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpGet (...args);\n};\nexport var httpPost = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpPost (...args);\n};\nexport var httpDo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpDo (...args);\n};\nexport var createWriter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createWriter (...args);\n};\nexport var save = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.save (...args);\n};\nexport var saveJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveJSON (...args);\n};\nexport var saveStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveStrings (...args);\n};\nexport var saveTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveTable (...args);\n};\nexport var day = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.day (...args);\n};\nexport var hour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hour (...args);\n};\nexport var minute = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.minute (...args);\n};\nexport var millis = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.millis (...args);\n};\nexport var month = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.month (...args);\n};\nexport var second = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.second (...args);\n};\nexport var year = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.year (...args);\n};\nexport var createVector = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVector (...args);\n};\nexport var abs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.abs (...args);\n};\nexport var ceil = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ceil (...args);\n};\nexport var constrain = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.constrain (...args);\n};\nexport var dist = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.dist (...args);\n};\nexport var exp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.exp (...args);\n};\nexport var floor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.floor (...args);\n};\nexport var lerp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerp (...args);\n};\nexport var log = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.log (...args);\n};\nexport var mag = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.mag (...args);\n};\nexport var map = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && callable (args [0])) {\n\t\treturn PythonFunctions.map (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.map (...args);\n\t}\n};\nexport var max = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.max (...args);\n};\nexport var min = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.min (...args);\n};\nexport var norm = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.norm (...args);\n};\nexport var pow = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pow (...args);\n};\nexport var round = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.round (...args);\n};\nexport var sq = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sq (...args);\n};\nexport var sqrt = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sqrt (...args);\n};\nexport var noise = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noise (...args);\n};\nexport var noiseDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseDetail (...args);\n};\nexport var noiseSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseSeed (...args);\n};\nexport var randomSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomSeed (...args);\n};\nexport var random = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.random (...args);\n};\nexport var randomGaussian = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomGaussian (...args);\n};\nexport var acos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.acos (...args);\n};\nexport var asin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.asin (...args);\n};\nexport var atan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan (...args);\n};\nexport var atan2 = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan2 (...args);\n};\nexport var cos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cos (...args);\n};\nexport var sin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sin (...args);\n};\nexport var tan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tan (...args);\n};\nexport var degrees = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.degrees (...args);\n};\nexport var radians = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.radians (...args);\n};\nexport var angleMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.angleMode (...args);\n};\nexport var textAlign = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAlign (...args);\n};\nexport var textLeading = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textLeading (...args);\n};\nexport var textSize = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textSize (...args);\n};\nexport var textStyle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textStyle (...args);\n};\nexport var textWidth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textWidth (...args);\n};\nexport var textAscent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAscent (...args);\n};\nexport var textDescent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textDescent (...args);\n};\nexport var loadFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadFont (...args);\n};\nexport var text = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.text (...args);\n};\nexport var textFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textFont (...args);\n};\nexport var orbitControl = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.orbitControl (...args);\n};\nexport var debugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.debugMode (...args);\n};\nexport var noDebugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noDebugMode (...args);\n};\nexport var ambientLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientLight (...args);\n};\nexport var directionalLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.directionalLight (...args);\n};\nexport var pointLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pointLight (...args);\n};\nexport var lights = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lights (...args);\n};\nexport var loadShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadShader (...args);\n};\nexport var createShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createShader (...args);\n};\nexport var shader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shader (...args);\n};\nexport var resetShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetShader (...args);\n};\nexport var normalMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.normalMaterial (...args);\n};\nexport var texture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.texture (...args);\n};\nexport var textureMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureMode (...args);\n};\nexport var textureWrap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureWrap (...args);\n};\nexport var ambientMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientMaterial (...args);\n};\nexport var specularMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.specularMaterial (...args);\n};\nexport var shininess = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shininess (...args);\n};\nexport var camera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.camera (...args);\n};\nexport var perspective = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.perspective (...args);\n};\nexport var ortho = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ortho (...args);\n};\nexport var createCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCamera (...args);\n};\nexport var setCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setCamera (...args);\n};\nexport var select = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.select (...args);\n};\nexport var selectAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.selectAll (...args);\n};\nexport var removeElements = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.removeElements (...args);\n};\nexport var changed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.changed (...args);\n};\nexport var input = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.input (...args);\n};\nexport var createDiv = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createDiv (...args);\n};\nexport var createP = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createP (...args);\n};\nexport var createSpan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSpan (...args);\n};\nexport var createImg = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImg (...args);\n};\nexport var createA = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createA (...args);\n};\nexport var createSlider = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSlider (...args);\n};\nexport var createButton = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createButton (...args);\n};\nexport var createCheckbox = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCheckbox (...args);\n};\nexport var createSelect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSelect (...args);\n};\nexport var createRadio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createRadio (...args);\n};\nexport var createColorPicker = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createColorPicker (...args);\n};\nexport var createInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createInput (...args);\n};\nexport var createFileInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createFileInput (...args);\n};\nexport var createVideo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVideo (...args);\n};\nexport var createAudio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createAudio (...args);\n};\nexport var createCapture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCapture (...args);\n};\nexport var createElement = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createElement (...args);\n};\nexport var createCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar canvas = _P5_INSTANCE.createCanvas (...args);\n\twidth = _P5_INSTANCE.width;\n\theight = _P5_INSTANCE.height;\n\treturn canvas;\n};\nexport var py_pop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_pop = _P5_INSTANCE.pop (...args);\n\treturn p5_pop;\n};\nexport var size = createCanvas;\nexport var popMatrix = py_pop;\nexport var popStyle = py_pop;\nexport var pushMatrix = push;\nexport var pushStyle = push;\nexport var PVector = function (x, y, z) {\n\tif (typeof x == 'undefined' || (x != null && x.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar x = 0;\n\t};\n\tif (typeof y == 'undefined' || (y != null && y.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar y = 0;\n\t};\n\tif (typeof z == 'undefined' || (z != null && z.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar z = 0;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'z': var z = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn _P5_INSTANCE.createVector (x, y, z);\n};\nsetattr (PVector, 'dist', p5.Vector.dist);\nsetattr (PVector, 'add', p5.Vector.add);\nsetattr (PVector, 'sub', p5.Vector.sub);\nsetattr (PVector, 'mult', p5.Vector.mult);\nsetattr (PVector, 'div', p5.Vector.div);\nsetattr (PVector, 'dot', p5.Vector.dot);\nsetattr (PVector, 'cross', p5.Vector.cross);\nsetattr (PVector, 'lerp', p5.Vector.lerp);\nsetattr (PVector, 'random2D', p5.Vector.random2D);\nsetattr (PVector, 'random3D', p5.Vector.random3D);\nsetattr (PVector, 'angleBetween', p5.Vector.angleBetween);\nsetattr (PVector, 'fromAngle', p5.Vector.fromAngle);\nsetattr (PVector, 'fromAngles', p5.Vector.fromAngles);\nsetattr (PVector, 'equals', p5.Vector.equals);\nexport var pre_draw = function (p5_instance, draw_func) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_instance': var p5_instance = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t_CTX_MIDDLE = p5_instance._CTX_MIDDLE;\n\t_DEFAULT_FILL = p5_instance._DEFAULT_FILL;\n\t_DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT;\n\t_DEFAULT_STROKE = p5_instance._DEFAULT_STROKE;\n\t_DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL;\n\tADD = p5_instance.ADD;\n\tALT = p5_instance.ALT;\n\tARROW = p5_instance.ARROW;\n\tAUDIO = p5_instance.AUDIO;\n\tAUTO = p5_instance.AUTO;\n\tAXES = p5_instance.AXES;\n\tBACKSPACE = p5_instance.BACKSPACE;\n\tBASELINE = p5_instance.BASELINE;\n\tBEVEL = p5_instance.BEVEL;\n\tBEZIER = p5_instance.BEZIER;\n\tBLEND = p5_instance.BLEND;\n\tBLUR = p5_instance.BLUR;\n\tBOLD = p5_instance.BOLD;\n\tBOLDITALIC = p5_instance.BOLDITALIC;\n\tBOTTOM = p5_instance.BOTTOM;\n\tBURN = p5_instance.BURN;\n\tCENTER = p5_instance.CENTER;\n\tCHORD = p5_instance.CHORD;\n\tCLAMP = p5_instance.CLAMP;\n\tCLOSE = p5_instance.CLOSE;\n\tCONTROL = p5_instance.CONTROL;\n\tCORNER = p5_instance.CORNER;\n\tCORNERS = p5_instance.CORNERS;\n\tCROSS = p5_instance.CROSS;\n\tCURVE = p5_instance.CURVE;\n\tDARKEST = p5_instance.DARKEST;\n\tDEG_TO_RAD = p5_instance.DEG_TO_RAD;\n\tDEGREES = p5_instance.DEGREES;\n\tDELETE = p5_instance.DELETE;\n\tDIFFERENCE = p5_instance.DIFFERENCE;\n\tDILATE = p5_instance.DILATE;\n\tDODGE = p5_instance.DODGE;\n\tDOWN_ARROW = p5_instance.DOWN_ARROW;\n\tENTER = p5_instance.ENTER;\n\tERODE = p5_instance.ERODE;\n\tESCAPE = p5_instance.ESCAPE;\n\tEXCLUSION = p5_instance.EXCLUSION;\n\tFILL = p5_instance.FILL;\n\tGRAY = p5_instance.GRAY;\n\tGRID = p5_instance.GRID;\n\tHALF_PI = p5_instance.HALF_PI;\n\tHAND = p5_instance.HAND;\n\tHARD_LIGHT = p5_instance.HARD_LIGHT;\n\tHSB = p5_instance.HSB;\n\tHSL = p5_instance.HSL;\n\tIMAGE = p5_instance.IMAGE;\n\tIMMEDIATE = p5_instance.IMMEDIATE;\n\tINVERT = p5_instance.INVERT;\n\tITALIC = p5_instance.ITALIC;\n\tLANDSCAPE = p5_instance.LANDSCAPE;\n\tLEFT = p5_instance.LEFT;\n\tLEFT_ARROW = p5_instance.LEFT_ARROW;\n\tLIGHTEST = p5_instance.LIGHTEST;\n\tLINE_LOOP = p5_instance.LINE_LOOP;\n\tLINE_STRIP = p5_instance.LINE_STRIP;\n\tLINEAR = p5_instance.LINEAR;\n\tLINES = p5_instance.LINES;\n\tMIRROR = p5_instance.MIRROR;\n\tMITER = p5_instance.MITER;\n\tMOVE = p5_instance.MOVE;\n\tMULTIPLY = p5_instance.MULTIPLY;\n\tNEAREST = p5_instance.NEAREST;\n\tNORMAL = p5_instance.NORMAL;\n\tOPAQUE = p5_instance.OPAQUE;\n\tOPEN = p5_instance.OPEN;\n\tOPTION = p5_instance.OPTION;\n\tOVERLAY = p5_instance.OVERLAY;\n\tP2D = p5_instance.P2D;\n\tvar P3D = p5_instance.WEBGL;\n\tPI = p5_instance.PI;\n\tPIE = p5_instance.PIE;\n\tPOINTS = p5_instance.POINTS;\n\tPORTRAIT = p5_instance.PORTRAIT;\n\tPOSTERIZE = p5_instance.POSTERIZE;\n\tPROJECT = p5_instance.PROJECT;\n\tQUAD_STRIP = p5_instance.QUAD_STRIP;\n\tQUADRATIC = p5_instance.QUADRATIC;\n\tQUADS = p5_instance.QUADS;\n\tQUARTER_PI = p5_instance.QUARTER_PI;\n\tRAD_TO_DEG = p5_instance.RAD_TO_DEG;\n\tRADIANS = p5_instance.RADIANS;\n\tRADIUS = p5_instance.RADIUS;\n\tREPEAT = p5_instance.REPEAT;\n\tREPLACE = p5_instance.REPLACE;\n\tRETURN = p5_instance.RETURN;\n\tRGB = p5_instance.RGB;\n\tRIGHT = p5_instance.RIGHT;\n\tRIGHT_ARROW = p5_instance.RIGHT_ARROW;\n\tROUND = p5_instance.ROUND;\n\tSCREEN = p5_instance.SCREEN;\n\tSHIFT = p5_instance.SHIFT;\n\tSOFT_LIGHT = p5_instance.SOFT_LIGHT;\n\tSQUARE = p5_instance.SQUARE;\n\tSTROKE = p5_instance.STROKE;\n\tSUBTRACT = p5_instance.SUBTRACT;\n\tTAB = p5_instance.TAB;\n\tTAU = p5_instance.TAU;\n\tTEXT = p5_instance.TEXT;\n\tTEXTURE = p5_instance.TEXTURE;\n\tTHRESHOLD = p5_instance.THRESHOLD;\n\tTOP = p5_instance.TOP;\n\tTRIANGLE_FAN = p5_instance.TRIANGLE_FAN;\n\tTRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP;\n\tTRIANGLES = p5_instance.TRIANGLES;\n\tTWO_PI = p5_instance.TWO_PI;\n\tUP_ARROW = p5_instance.UP_ARROW;\n\tVIDEO = p5_instance.VIDEO;\n\tWAIT = p5_instance.WAIT;\n\tWEBGL = p5_instance.WEBGL;\n\tframeCount = p5_instance.frameCount;\n\tfocused = p5_instance.focused;\n\tdisplayWidth = p5_instance.displayWidth;\n\tdisplayHeight = p5_instance.displayHeight;\n\twindowWidth = p5_instance.windowWidth;\n\twindowHeight = p5_instance.windowHeight;\n\twidth = p5_instance.width;\n\theight = p5_instance.height;\n\tdisableFriendlyErrors = p5_instance.disableFriendlyErrors;\n\tdeviceOrientation = p5_instance.deviceOrientation;\n\taccelerationX = p5_instance.accelerationX;\n\taccelerationY = p5_instance.accelerationY;\n\taccelerationZ = p5_instance.accelerationZ;\n\tpAccelerationX = p5_instance.pAccelerationX;\n\tpAccelerationY = p5_instance.pAccelerationY;\n\tpAccelerationZ = p5_instance.pAccelerationZ;\n\trotationX = p5_instance.rotationX;\n\trotationY = p5_instance.rotationY;\n\trotationZ = p5_instance.rotationZ;\n\tpRotationX = p5_instance.pRotationX;\n\tpRotationY = p5_instance.pRotationY;\n\tpRotationZ = p5_instance.pRotationZ;\n\tturnAxis = p5_instance.turnAxis;\n\tkeyIsPressed = p5_instance.keyIsPressed;\n\tkey = p5_instance.key;\n\tkeyCode = p5_instance.keyCode;\n\tmouseX = p5_instance.mouseX;\n\tmouseY = p5_instance.mouseY;\n\tpmouseX = p5_instance.pmouseX;\n\tpmouseY = p5_instance.pmouseY;\n\twinMouseX = p5_instance.winMouseX;\n\twinMouseY = p5_instance.winMouseY;\n\tpwinMouseX = p5_instance.pwinMouseX;\n\tpwinMouseY = p5_instance.pwinMouseY;\n\tmouseButton = p5_instance.mouseButton;\n\tmouseIsPressed = p5_instance.mouseIsPressed;\n\ttouches = p5_instance.touches;\n\tpixels = p5_instance.pixels;\n\treturn draw_func ();\n};\nexport var global_p5_injection = function (p5_sketch) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar decorator = function (f) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'f': var f = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar wrapper = function () {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\t_P5_INSTANCE = p5_sketch;\n\t\t\treturn pre_draw (_P5_INSTANCE, f);\n\t\t};\n\t\treturn wrapper;\n\t};\n\treturn decorator;\n};\nexport var start_p5 = function (preload_func, setup_func, draw_func, event_functions) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'preload_func': var preload_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'setup_func': var setup_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'event_functions': var event_functions = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar sketch_setup = function (p5_sketch) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tp5_sketch.preload = global_p5_injection (p5_sketch) (preload_func);\n\t\tp5_sketch.setup = global_p5_injection (p5_sketch) (setup_func);\n\t\tp5_sketch.draw = global_p5_injection (p5_sketch) (draw_func);\n\t};\n\tvar instance = new p5 (sketch_setup, 'sketch-holder');\n\tvar event_function_names = tuple (['deviceMoved', 'deviceTurned', 'deviceShaken', 'windowResized', 'keyPressed', 'keyReleased', 'keyTyped', 'mousePressed', 'mouseReleased', 'mouseClicked', 'doubleClicked', 'mouseMoved', 'mouseDragged', 'mouseWheel', 'touchStarted', 'touchMoved', 'touchEnded', 'keyIsDown']);\n\tfor (var f_name of (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var f of event_function_names) {\n\t\t\tif (event_functions.py_get (f, null)) {\n\t\t\t\t__accu0__.append (f);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ()) {\n\t\tvar func = event_functions [f_name];\n\t\tvar event_func = global_p5_injection (instance) (func);\n\t\tsetattr (instance, f_name, event_func);\n\t}\n};\nexport var logOnloaded = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tconsole.log ('Lib loaded!');\n};\nexport var add_library = function (lib_name) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'lib_name': var lib_name = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar src = '';\n\treturn console.log ('Lib name is not valid:', lib_name);\n\tconsole.log ('Importing:', src);\n\tvar script = document.createElement ('script');\n\tscript.onload = logOnloaded;\n\tscript.src = src;\n\tdocument.head.appendChild (script);\n};\n\n//# sourceMappingURL=pyp5js.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/pyp5js.py",
    "content": "from python_functions import PythonFunctions\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndisableFriendlyErrors = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    __pragma__('noalias', 'clear')\n    p5_clear = _P5_INSTANCE.clear(*args)\n    __pragma__('alias', 'clear', 'py_clear')\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef preload(*args):\n    return _P5_INSTANCE.preload(*args)\n\ndef setup(*args):\n    return _P5_INSTANCE.setup(*args)\n\ndef draw(*args):\n    return _P5_INSTANCE.draw(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\n\ndef image_proxy(img):\n    \"\"\"\n    Proxy to turn of transcypt when calling img.get/set methods\n    \"\"\"\n\n    def _set(*args):\n        __pragma__('noalias', 'set')\n        value = img.set(*args)\n        __pragma__('alias', 'set', 'py_set')\n        return value\n\n    def _get(*args):\n        __pragma__('noalias', 'get')\n        value = img.get(*args)\n        __pragma__('alias', 'get', 'py_get')\n        return value\n\n    img.set = _set\n    img.get = _get\n    return img\n\n\ndef loadImage(*args):\n    imageObj = _P5_INSTANCE.loadImage(*args)\n    return image_proxy(imageObj)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    __pragma__('noalias', 'get')\n    p5_get = _P5_INSTANCE.get(*args)\n    __pragma__('alias', 'get', 'py_get')\n    return p5_get\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\n\ndef pop(*args):\n    __pragma__('noalias', 'pop')\n    p5_pop = _P5_INSTANCE.pop(*args)\n    __pragma__('alias', 'pop', 'py_pop')\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a helper/alias to create p5.Vector objects\ndef PVector(x=0, y=0, z=0):\n    return _P5_INSTANCE.createVector(x, y, z)\n# aliases  for p5.Vector class methods\nsetattr(PVector, 'dist', p5.Vector.dist)\nsetattr(PVector, 'add', p5.Vector.add)\nsetattr(PVector, 'sub', p5.Vector.sub)\nsetattr(PVector, 'mult', p5.Vector.mult)\nsetattr(PVector, 'div', p5.Vector.div)\nsetattr(PVector, 'dot', p5.Vector.dot)\nsetattr(PVector, 'cross', p5.Vector.cross)\nsetattr(PVector, 'lerp', p5.Vector.lerp)\nsetattr(PVector, 'random2D', p5.Vector.random2D)\nsetattr(PVector, 'random3D', p5.Vector.random3D)\nsetattr(PVector, 'angleBetween', p5.Vector.angleBetween)\nsetattr(PVector, 'fromAngle', p5.Vector.fromAngle)\nsetattr(PVector, 'fromAngles', p5.Vector.fromAngles)\nsetattr(PVector, 'equals', p5.Vector.equals)\n\ndef pre_draw(p5_instance, draw_func):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP, QUADRATIC\n    global QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global disableFriendlyErrors, deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    disableFriendlyErrors = p5_instance.disableFriendlyErrors\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func()\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f):\n        def wrapper():\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: a Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    instance = __new__(p5(sketch_setup, 'sketch-holder'))\n\n    # inject event functions into p5\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\"\n    )\n\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(instance)(func)\n        setattr(instance, f_name, event_func)\n\n\ndef logOnloaded():\n    console.log(\"Lib loaded!\")\n\n\ndef add_library(lib_name):\n    # placeholder for https://github.com/berinhard/pyp5js/issues/31\n    src = ''\n\n    return console.log(\"Lib name is not valid:\", lib_name)\n\n    console.log(\"Importing:\", src)\n\n    script = document.createElement(\"script\")\n    script.onload = logOnloaded\n    script.src = src\n    document.head.appendChild(script)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/python_functions.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:18\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, pow, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nvar __name__ = 'python_functions';\nexport var PythonFunctions =  __class__ ('PythonFunctions', [object], {\n\t__module__: __name__,\n});\nsetattr (PythonFunctions, 'map', map);\nsetattr (PythonFunctions, 'filter', filter);\nsetattr (PythonFunctions, 'set', set);\n\n//# sourceMappingURL=python_functions.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/python_functions.py",
    "content": "class PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/random.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:17\nvar math = {};\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, pow, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport * as __module_math__ from './math.js';\n__nest__ (math, '', __module_math__);\nvar __name__ = 'random';\nexport var _array = (function () {\n\tvar __accu0__ = [];\n\tfor (var i = 0; i < 624; i++) {\n\t\t__accu0__.append (0);\n\t}\n\treturn __accu0__;\n}) ();\nexport var _index = 0;\nexport var _bitmask1 = Math.pow (2, 32) - 1;\nexport var _bitmask2 = Math.pow (2, 31);\nexport var _bitmask3 = Math.pow (2, 31) - 1;\nexport var _fill_array = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tfor (var i = 0; i < 624; i++) {\n\t\tvar y = (_array [i] & _bitmask2) + (_array [__mod__ (i + 1, 624)] & _bitmask3);\n\t\t_array [i] = _array [__mod__ (i + 397, 624)] ^ y >> 1;\n\t\tif (__mod__ (y, 2) != 0) {\n\t\t\t_array [i] ^= 2567483615;\n\t\t}\n\t}\n};\nexport var _random_integer = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (_index == 0) {\n\t\t_fill_array ();\n\t}\n\tvar y = _array [_index];\n\ty ^= y >> 11;\n\ty ^= y << 7 & 2636928640;\n\ty ^= y << 15 & 4022730752;\n\ty ^= y >> 18;\n\t_index = __mod__ (_index + 1, 624);\n\treturn y;\n};\nexport var seed = function (x) {\n\tif (typeof x == 'undefined' || (x != null && x.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar x = int (_bitmask3 * Math.random ());\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t_array [0] = x;\n\tfor (var i = 1; i < 624; i++) {\n\t\t_array [i] = (1812433253 * _array [i - 1] ^ (_array [i - 1] >> 30) + i) & _bitmask1;\n\t}\n};\nexport var randint = function (a, b) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'a': var a = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'b': var b = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn a + __mod__ (_random_integer (), (b - a) + 1);\n};\nexport var choice = function (seq) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'seq': var seq = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn seq [randint (0, len (seq) - 1)];\n};\nexport var random = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn _random_integer () / _bitmask3;\n};\nexport var shuffle = function (x) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tfor (var i = len (x) - 1; i > 0; i--) {\n\t\tvar j = math.floor (random () * (i + 1));\n\t\tvar temp = x [i];\n\t\tx [i] = x [j];\n\t\tx [j] = temp;\n\t}\n};\nseed ();\n\n//# sourceMappingURL=random.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/random.py",
    "content": "# Mersenne-Twister random number algorithm\r\n\r\nimport math\r\n\r\n_array = [0 for i in range (624)]\r\n_index = 0\r\n_bitmask1 = (2 ** 32) - 1\r\n_bitmask2 = 2 ** 31\r\n_bitmask3 = (2 ** 31) - 1\r\n\r\ndef _fill_array():\r\n    global _array\r\n    for i in range (624):\r\n        y = (_array [i] & _bitmask2) + (_array [(i + 1) % 624] & _bitmask3)\r\n        _array [i] = _array [(i + 397) % 624] ^ (y >> 1)\r\n        if y % 2 != 0:\r\n            _array[i] ^= 2567483615\r\n            \r\ndef _random_integer ():\r\n    global _index\r\n    global _array\r\n    if _index == 0:\r\n        _fill_array ()\r\n    y = _array [_index]\r\n    y ^= y >> 11\r\n    y ^= (y << 7) & 2636928640\r\n    y ^= (y << 15) & 4022730752\r\n    y ^= y >> 18\r\n\r\n    _index = (_index + 1) % 624\r\n    return y\r\n\r\ndef seed (x = int (_bitmask3 * Math.random ())):\r\n    global _array\r\n    global _bitmask1\r\n    _array [0] = x\r\n    for i in  range (1, 624):\r\n        _array [i] = ((1812433253 * _array [i - 1]) ^ ((_array [i - 1] >> 30) + i)) & _bitmask1\r\n\r\ndef randint (a, b):\r\n    return a + _random_integer () % (b - a + 1)\r\n\r\ndef choice (seq):\r\n    return seq [randint (0, len (seq) - 1)]\r\n\r\ndef random ():\r\n    return _random_integer () / _bitmask3\r\n\r\ndef shuffle (x):    # Fisher-Yates unbiased shuffle\r\n    for i in range (len (x) - 1, 0, -1):\r\n        j = math.floor (random () * (i + 1))\r\n        temp = x [i]\r\n        x [i] = x [j]\r\n        x [j] = temp\r\n    \r\nseed ()\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/target_sketch.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:17\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, set, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {choice} from './random.js';\nimport {ADD, ALT, ARROW, AUDIO, AUTO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC, BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST, DEGREES, DEG_TO_RAD, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION, FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE, LEFT, LEFT_ARROW, LIGHTEST, LINEAR, LINES, LINE_LOOP, LINE_STRIP, MIRROR, MITER, MOVE, MULTIPLY, NEAREST, NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, PVector, QUADRATIC, QUADS, QUAD_STRIP, QUARTER_PI, RADIANS, RADIUS, RAD_TO_DEG, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW, ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL, _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL, _P5_INSTANCE, abs, accelerationX, accelerationY, accelerationZ, acos, add_library, alpha, ambientLight, ambientMaterial, angleMode, append, applyMatrix, arc, arrayCopy, asin, atan, atan2, background, beginContour, beginShape, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, blend, blendMode, blue, boolean, box, brightness, byte, camera, ceil, changed, char, circle, color, colorMode, concat, cone, constrain, copy, cos, createA, createAudio, createButton, createCamera, createCanvas, createCapture, createCheckbox, createColorPicker, createDiv, createElement, createFileInput, createGraphics, createImage, createImg, createInput, createNumberDict, createP, createRadio, createSelect, createShader, createSlider, createSpan, createStringDict, createVector, createVideo, createWriter, cursor, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, cylinder, day, debugMode, degrees, deviceOrientation, directionalLight, disableFriendlyErrors, displayDensity, displayHeight, displayWidth, dist, ellipse, ellipseMode, ellipsoid, endContour, endShape, erase, exp, fill, filter, float, floor, focused, frameCount, frameRate, fullscreen, getURL, getURLParams, getURLPath, global_p5_injection, green, height, hex, hour, httpDo, httpGet, httpPost, hue, image, imageMode, image_proxy, input, int, join, key, keyCode, keyIsPressed, lerp, lerpColor, lightness, lights, line, loadBytes, loadFont, loadImage, loadJSON, loadModel, loadPixels, loadShader, loadStrings, loadTable, loadXML, log, logOnloaded, loop, mag, map, match, matchAll, max, millis, min, minute, model, month, mouseButton, mouseIsPressed, mouseX, mouseY, nf, nfc, nfp, nfs, noCanvas, noCursor, noDebugMode, noErase, noFill, noLoop, noSmooth, noStroke, noTint, noise, noiseDetail, noiseSeed, norm, normalMaterial, orbitControl, ortho, pAccelerationX, pAccelerationY, pAccelerationZ, pRotationX, pRotationY, pRotationZ, perspective, pixelDensity, pixels, plane, pmouseX, pmouseY, point, pointLight, popMatrix, popStyle, pow, pre_draw, push, pushMatrix, pushStyle, pwinMouseX, pwinMouseY, py_clear, py_get, py_pop, py_set, py_sort, py_split, quad, quadraticVertex, radians, random, randomGaussian, randomSeed, rect, rectMode, red, redraw, remove, removeElements, resetMatrix, resetShader, resizeCanvas, reverse, rotate, rotateX, rotateY, rotateZ, rotationX, rotationY, rotationZ, round, saturation, save, saveCanvas, saveFrames, saveJSON, saveStrings, saveTable, scale, second, select, selectAll, setAttributes, setCamera, setMoveThreshold, setShakeThreshold, shader, shearX, shearY, shininess, shorten, shuffle, sin, size, smooth, specularMaterial, sphere, splice, splitTokens, sq, sqrt, square, start_p5, str, stroke, strokeCap, strokeJoin, strokeWeight, subset, tan, text, textAlign, textAscent, textDescent, textFont, textLeading, textSize, textStyle, textWidth, texture, textureMode, textureWrap, tint, torus, touches, translate, triangle, trim, turnAxis, unchar, unhex, updatePixels, vertex, width, winMouseX, winMouseY, windowHeight, windowWidth, year} from './pyp5js.js';\nvar __name__ = '__main__';\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var deviceMoved = null;\nexport var deviceTurned = null;\nexport var deviceShaken = null;\nexport var keyPressed = null;\nexport var keyReleased = null;\nexport var keyTyped = null;\nexport var mouseMoved = null;\nexport var mouseDragged = null;\nexport var mousePressed = null;\nexport var mouseReleased = null;\nexport var mouseClicked = null;\nexport var doubleClicked = null;\nexport var mouseWheel = null;\nexport var touchStarted = null;\nexport var touchMoved = null;\nexport var touchEnded = null;\nexport var windowResized = null;\nexport var keyIsDown = null;\nexport var images = [];\nvar setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tcreateP ('Click to add a new image');\n\tcreateCanvas (600, 600);\n\tbackground (200);\n\timages = [loadImage ('smile.png'), loadImage ('alien.png'), loadImage ('rainbow.png')];\n};\nvar mousePressed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar __left0__ = tuple ([mouseX, mouseY]);\n\tvar x = __left0__ [0];\n\tvar y = __left0__ [1];\n\tvar img = choice (images);\n\timage (img, x, y);\n};\nvar draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var event_functions = dict ({'deviceMoved': deviceMoved, 'deviceTurned': deviceTurned, 'deviceShaken': deviceShaken, 'keyPressed': keyPressed, 'keyReleased': keyReleased, 'keyTyped': keyTyped, 'mouseMoved': mouseMoved, 'mouseDragged': mouseDragged, 'mousePressed': mousePressed, 'mouseReleased': mouseReleased, 'mouseClicked': mouseClicked, 'doubleClicked': doubleClicked, 'mouseWheel': mouseWheel, 'touchStarted': touchStarted, 'touchMoved': touchMoved, 'touchEnded': touchEnded, 'windowResized': windowResized, 'keyIsDown': keyIsDown});\nstart_p5 (preload, setup, draw, event_functions);\n\n//# sourceMappingURL=target_sketch.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/target_sketch.project",
    "content": "{\"options\": {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_009/target_sketch.py\", \"anno\": false, \"alimod\": false, \"build\": true, \"complex\": false, \"docat\": false, \"dassert\": false, \"dcheck\": false, \"dextex\": false, \"dlog\": false, \"dmap\": false, \"dnostrip\": false, \"dstat\": false, \"dtree\": false, \"esv\": null, \"ecom\": false, \"fcall\": false, \"gen\": false, \"iconv\": false, \"jscall\": false, \"jskeys\": false, \"jsmod\": false, \"kwargs\": true, \"keycheck\": false, \"license\": false, \"map\": true, \"nomin\": true, \"opov\": false, \"outdir\": null, \"parent\": null, \"run\": false, \"symbols\": null, \"sform\": false, \"tconv\": false, \"unit\": null, \"verbose\": false, \"x\": null, \"xreex\": false, \"xglobs\": false, \"xpath\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt\", \"xtiny\": false, \"star\": false}, \"modules\": [{\"source\": \"/home/bernardo/.pyenv/versions/pyp5js/lib/python3.8/site-packages/transcrypt/modules/org/transcrypt/__runtime__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_009/__target__/org.transcrypt.__runtime__.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_009/target_sketch.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_009/__target__/target_sketch.js\"}, {\"source\": \"/home/bernardo/.pyenv/versions/pyp5js/lib/python3.8/site-packages/transcrypt/modules/random/__init__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_009/__target__/random.js\"}, {\"source\": \"/home/bernardo/.pyenv/versions/pyp5js/lib/python3.8/site-packages/transcrypt/modules/math/__init__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_009/__target__/math.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/pyp5js.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_009/__target__/pyp5js.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/python_functions.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_009/__target__/python_functions.js\"}]}"
  },
  {
    "path": "docs/examples/transcrypt/sketch_009/target/target_sketch.py",
    "content": "from pyp5js import *\n\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\nkeyIsDown = None\n\n\nfrom random import choice\n\n\nimages = []\n\ndef setup():\n    global images\n\n    createP(\"Click to add a new image\")\n    createCanvas(600, 600)\n    background(200)\n    images = [\n        loadImage('smile.png'),\n        loadImage('alien.png'),\n        loadImage('rainbow.png'),\n    ]\n\n\ndef mousePressed():\n    x, y = mouseX, mouseY\n    img = choice(images)\n    image(img, x, y)\n\n\ndef draw():\n    pass\n\n\n\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n    \"keyIsDown\": keyIsDown,\n}\n\nstart_p5(preload, setup, draw, event_functions)"
  },
  {
    "path": "docs/examples/transcrypt/sketch_010/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- Template file used to generate the examples using Transcrypt interpreter -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>sketch_010 - pyp5js (using Transcrypt)</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js\"></script>\n    <script src=\"target/target_sketch.js\"  type=\"module\"></script>\n\n    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css\">\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js\"></script>\n    <script>hljs.initHighlightingOnLoad();</script>\n\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n        }\n\n        pre {\n            padding-left: 2em;\n        }\n    </style>\n  </head>\n\n  <body>\n    <p style=\"background-color: #f6f8fa\">\n      Python code <a href=\"https://github.com/berinhard/pyp5js/blob/develop/docs/examples/transcrypt/sketch_010\" target=\"_blank\">here</a>.\n    </p>\n\n    <div class=\"demoContainer\">\n        <div id=\"sketch-holder\" style=\"\">\n              <!-- You sketch will go here! -->\n        </div>\n\n        <div style=\"\">\n          <pre>\n             <code>\nMY_POINTS = [\n    (100, 50),\n    (300, 100),\n    (200, 300),\n    (100, 300),\n]\nFRAME_IDX = 0\nPOINT_SIZE = 10\nCNV = None\n\ndef setup():\n    global CNV\n    CNV = createCanvas(400, 400)\n\n    BUTTON_PREV = createButton('Previous frame')\n    BUTTON_PREV.position(CNV.position().x,\n                         CNV.height + CNV.position().y)\n    BUTTON_PREV.mousePressed(prev_frame)\n\n    BUTTON_NEXT = createButton('Next frame')\n    BUTTON_NEXT.position(CNV.position().x + BUTTON_PREV.size().width,\n                         BUTTON_PREV.position().y)\n    BUTTON_NEXT.mousePressed(next_frame)\n\n    background(190)\n    draw_labels(MY_POINTS)\n\ndef draw():\n    background(190)\n    draw_closed_curve_vertex(MY_POINTS, FRAME_IDX)\n    draw_labels(MY_POINTS)\n\ndef mouseClicked():\n    global FRAME_IDX\n    global MY_POINTS\n    if is_point_in_canvas(mouseX, mouseY):\n        i = get_point_index(mouseX, mouseY)\n        if i != None:\n            MY_POINTS.pop(i)\n            if FRAME_IDX >= len(MY_POINTS):\n                # cap i if it exceeds maximum length now.\n                FRAME_IDX = len(MY_POINTS) - 1\n        else:\n            MY_POINTS.append((mouseX, mouseY))\n\ndef get_point_index(x, y):\n    for idx, (p_x,p_y) in enumerate(MY_POINTS):\n        if (p_x - POINT_SIZE < x and x < p_x + POINT_SIZE) and \\\n           (p_y - POINT_SIZE < y and y < p_y + POINT_SIZE):\n            return idx\n\ndef is_point_in_canvas(x, y):\n    if (x < 0 or x > CNV.width) or \\\n       (y < 0 or y > CNV.height):\n        return False\n    return True\n\ndef next_frame():\n    global FRAME_IDX\n    if FRAME_IDX < len(MY_POINTS) - 1:\n        FRAME_IDX += 1\n\ndef prev_frame():\n    global FRAME_IDX\n    if FRAME_IDX > 0:\n        FRAME_IDX -= 1\n\ndef draw_closed_curve_vertex(points, max_idx):\n    if len(points) < 2:\n        return\n    used_points = []\n    beginShape()\n\n    # start by using the last point as the initial control point\n    idx = len(points) - 1\n    curveVertex(*points[idx])\n    used_points.append(idx)\n\n    # add each point to the curve\n    for idx,p in enumerate(points):\n        if idx > max_idx:\n            break\n        curveVertex(*p)\n        used_points.append(idx)\n\n    # to close the curve, we need to create the last curve.\n    # for that, we must go to the first point\n    idx = 0\n    curveVertex(*points[idx])\n    used_points.append(idx)\n\n    # and use the next point as a control point.\n    idx = 1\n    curveVertex(*points[idx])\n    used_points.append(idx)\n    endShape()\n\n    textSize(10)\n    noStroke()\n    text('Points used to draw this curve (first and last are control points only)', 5, CNV.height - 30)\n\n    textSize(20)\n    text(', '.join(used_points), 10, CNV.height - 10)\n    stroke(0)\n\n    for i in range(len(used_points) - 1):\n        draw_dotted_line(points[used_points[i]],\n                         points[used_points[i + 1]])\n\ndef draw_labels(points):\n    strokeWeight(POINT_SIZE)\n    for idx, p in enumerate(points):\n        ts = 32\n        textSize(ts)\n        textY = p[1] - ts / 2\n\n        if p[1] > CNV.height / 2:\n            textY = p[1] + ts\n\n        noStroke()\n        text(idx, p[0], textY)\n        stroke(0)\n        point(*p)\n\n    strokeWeight(1)\n\ndef draw_dotted_line(p1, p2):\n    stroke(100)\n    strokeWeight(3)\n    for i in range(11):\n        x = lerp(p1[0], p2[0], i/10)\n        y = lerp(p1[1], p2[1], i/10)\n        point(x, y)\n\n    stroke(0)\n    strokeWeight(1)\n\n              </code>\n          </pre>\n        </div>\n\n    </div>\n  </body>\n</html>"
  },
  {
    "path": "docs/examples/transcrypt/sketch_010/sketch_010.py",
    "content": "MY_POINTS = [\r\n    (100, 50),\r\n    (300, 100),\r\n    (200, 300),\r\n    (100, 300),\r\n]\r\nFRAME_IDX = 0\r\nPOINT_SIZE = 10\r\nCNV = None\r\n\r\ndef setup():\r\n    global CNV\r\n    CNV = createCanvas(400, 400)\r\n\r\n    BUTTON_PREV = createButton('Previous frame')\r\n    BUTTON_PREV.position(CNV.position().x,\r\n                         CNV.height + CNV.position().y)\r\n    BUTTON_PREV.mousePressed(prev_frame)\r\n\r\n    BUTTON_NEXT = createButton('Next frame')\r\n    BUTTON_NEXT.position(CNV.position().x + BUTTON_PREV.size().width,\r\n                         BUTTON_PREV.position().y)\r\n    BUTTON_NEXT.mousePressed(next_frame)\r\n\r\n    background(190)\r\n    draw_labels(MY_POINTS)\r\n\r\ndef draw():\r\n    background(190)\r\n    draw_closed_curve_vertex(MY_POINTS, FRAME_IDX)\r\n    draw_labels(MY_POINTS)\r\n\r\ndef mouseClicked():\r\n    global FRAME_IDX\r\n    global MY_POINTS\r\n    if is_point_in_canvas(mouseX, mouseY):\r\n        i = get_point_index(mouseX, mouseY)\r\n        if i != None:\r\n            MY_POINTS.pop(i)\r\n            if FRAME_IDX >= len(MY_POINTS):\r\n                # cap i if it exceeds maximum length now.\r\n                FRAME_IDX = len(MY_POINTS) - 1\r\n        else:\r\n            MY_POINTS.append((mouseX, mouseY))\r\n\r\ndef get_point_index(x, y):\r\n    for idx, (p_x,p_y) in enumerate(MY_POINTS):\r\n        if (p_x - POINT_SIZE < x and x < p_x + POINT_SIZE) and \\\r\n           (p_y - POINT_SIZE < y and y < p_y + POINT_SIZE):\r\n            return idx\r\n\r\ndef is_point_in_canvas(x, y):\r\n    if (x < 0 or x > CNV.width) or \\\r\n       (y < 0 or y > CNV.height):\r\n        return False\r\n    return True\r\n\r\ndef next_frame():\r\n    global FRAME_IDX\r\n    if FRAME_IDX < len(MY_POINTS) - 1:\r\n        FRAME_IDX += 1\r\n\r\ndef prev_frame():\r\n    global FRAME_IDX\r\n    if FRAME_IDX > 0:\r\n        FRAME_IDX -= 1\r\n\r\ndef draw_closed_curve_vertex(points, max_idx):\r\n    if len(points) < 2:\r\n        return\r\n    used_points = []\r\n    beginShape()\r\n\r\n    # start by using the last point as the initial control point\r\n    idx = len(points) - 1\r\n    curveVertex(*points[idx])\r\n    used_points.append(idx)\r\n\r\n    # add each point to the curve\r\n    for idx,p in enumerate(points):\r\n        if idx > max_idx:\r\n            break\r\n        curveVertex(*p)\r\n        used_points.append(idx)\r\n\r\n    # to close the curve, we need to create the last curve.\r\n    # for that, we must go to the first point\r\n    idx = 0\r\n    curveVertex(*points[idx])\r\n    used_points.append(idx)\r\n\r\n    # and use the next point as a control point.\r\n    idx = 1\r\n    curveVertex(*points[idx])\r\n    used_points.append(idx)\r\n    endShape()\r\n\r\n    textSize(10)\r\n    noStroke()\r\n    text('Points used to draw this curve (first and last are control points only)', 5, CNV.height - 30)\r\n\r\n    textSize(20)\r\n    text(', '.join(used_points), 10, CNV.height - 10)\r\n    stroke(0)\r\n\r\n    for i in range(len(used_points) - 1):\r\n        draw_dotted_line(points[used_points[i]],\r\n                         points[used_points[i + 1]])\r\n\r\ndef draw_labels(points):\r\n    strokeWeight(POINT_SIZE)\r\n    for idx, p in enumerate(points):\r\n        ts = 32\r\n        textSize(ts)\r\n        textY = p[1] - ts / 2\r\n\r\n        if p[1] > CNV.height / 2:\r\n            textY = p[1] + ts\r\n\r\n        noStroke()\r\n        text(idx, p[0], textY)\r\n        stroke(0)\r\n        point(*p)\r\n\r\n    strokeWeight(1)\r\n\r\ndef draw_dotted_line(p1, p2):\r\n    stroke(100)\r\n    strokeWeight(3)\r\n    for i in range(11):\r\n        x = lerp(p1[0], p2[0], i/10)\r\n        y = lerp(p1[1], p2[1], i/10)\r\n        point(x, y)\r\n\r\n    stroke(0)\r\n    strokeWeight(1)\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_010/static/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var r=\"function\"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error(\"Cannot find module '\"+t+\"'\");throw i.code=\"MODULE_NOT_FOUND\",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return u(a[t][1][e]||e)},n,n.exports,o,a,s,l)}return s[t].exports}for(var h=\"function\"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,r){t.exports=function(e){if(Array.isArray(e))return e}},{}],2:[function(e,t,r){t.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},{}],3:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},{}],5:[function(e,t,r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}t.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}},{}],6:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],7:[function(e,t,r){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i},{}],8:[function(e,t,r){var i=e(\"./setPrototypeOf\");t.exports=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},{\"./setPrototypeOf\":15}],9:[function(e,t,r){t.exports=function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}},{}],10:[function(e,t,r){t.exports=function(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r}},{}],11:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}},{}],12:[function(e,t,r){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}},{}],13:[function(e,t,r){var n=e(\"./defineProperty\");t.exports=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}},{\"./defineProperty\":6}],14:[function(e,t,r){var i=e(\"../helpers/typeof\"),n=e(\"./assertThisInitialized\");t.exports=function(e,t){return!t||\"object\"!==i(t)&&\"function\"!=typeof t?n(e):t}},{\"../helpers/typeof\":18,\"./assertThisInitialized\":3}],15:[function(e,r,t){function i(e,t){return r.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}r.exports=i},{}],16:[function(e,t,r){var i=e(\"./arrayWithHoles\"),n=e(\"./iterableToArrayLimit\"),o=e(\"./nonIterableRest\");t.exports=function(e,t){return i(e)||n(e,t)||o()}},{\"./arrayWithHoles\":1,\"./iterableToArrayLimit\":10,\"./nonIterableRest\":11}],17:[function(e,t,r){var i=e(\"./arrayWithoutHoles\"),n=e(\"./iterableToArray\"),o=e(\"./nonIterableSpread\");t.exports=function(e){return i(e)||n(e)||o()}},{\"./arrayWithoutHoles\":2,\"./iterableToArray\":9,\"./nonIterableSpread\":12}],18:[function(e,t,r){function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function n(e){return\"function\"==typeof Symbol&&\"symbol\"===i(Symbol.iterator)?t.exports=n=function(e){return i(e)}:t.exports=n=function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":i(e)},n(e)}t.exports=n},{}],19:[function(e,t,r){\"use strict\";r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){var t,r,i=c(e),n=i[0],o=i[1],a=new h(function(e,t){return 3*(e+t)/4-t}(n,o)),s=0,l=0<o?n-4:n;for(r=0;r<l;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;2===o&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,a[s++]=255&t);1===o&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o<a;o+=16383)n.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[r-1],n.push(s[t>>2]+s[t<<4&63]+\"==\")):2==i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+\"=\"));return n.join(\"\")};for(var s=[],u=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n<o;++n)s[n]=i[n],u[i.charCodeAt(n)]=n;function c(e){var t=e.length;if(0<t%4)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,n,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(n=i)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join(\"\")}u[\"-\".charCodeAt(0)]=62,u[\"_\".charCodeAt(0)]=63},{}],20:[function(e,t,r){},{}],21:[function(N,e,F){(function(c){\"use strict\";var i=N(\"base64-js\"),o=N(\"ieee754\"),e=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;F.Buffer=c,F.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},F.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(r<e)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if(\"number\"!=typeof e)return n(e,t,r);if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}function n(e,t,r){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var r=0|f(e,t),i=a(r),n=i.write(e,t);n!==r&&(i=i.slice(0,n));return i}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('\"length\" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(i,c.prototype),i}(e,t,r);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);var n=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return\"number\"!=typeof e.length||I(e.length)?a(0):u(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function s(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return s(e),a(e<0?0:0|h(e))}function u(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(r<=e)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+r.toString(16)+\" bytes\");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return R(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return O(e).length;default:if(n)return i?-1:R(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if(\"string\"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),I(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(\"string\"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,i,n){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var h=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(s<r+l&&(r=s-l),o=r;0<=o;o--){for(var c=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){c=!1;break}if(c)return o}return-1}function g(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?n<(i=Number(i))&&(i=n):i=n;var o=t.length;o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(I(s))return a;e[r+a]=s}return a}function v(e,t,r,i){return D(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function y(e,t,r,i){return D(function(e,t){for(var r,i,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(t,e.length-r),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var o,a,s,l,u=e[n],h=null,c=239<u?4:223<u?3:191<u?2:1;if(n+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[n+1]))&&127<(l=(31&u)<<6|63&o)&&(h=l);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(h=l)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r=\"\",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(i)}F.kMaxLength=r,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return n(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return n=t,o=r,s(i=e),i<=0?a(i):void 0!==n?\"string\"==typeof o?a(i).fill(n,o):a(i).fill(n):a(i);var i,n,o},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var o=e[r];if(A(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(i,n),n+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?\"\":0===arguments.length?_(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e=e||\"utf8\";;)switch(e){case\"hex\":return M(this,t,r);case\"utf8\":case\"utf-8\":return _(this,t,r);case\"ascii\":return w(this,t,r);case\"latin1\":case\"binary\":return S(this,t,r);case\"base64\":return b(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,t,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",t=F.INSPECT_MAX_BYTES;return e=this.toString(\"hex\",0,t).replace(/(.{2})/g,\"$1 \").trim(),this.length>t&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},e&&(c.prototype[e]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(A(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,n),u=e.slice(t,r),h=0;h<s;++h)if(l[h]!==u[h]){o=l[h],a=u[h];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i=i||\"utf8\";for(var o,a,s,l,u,h,c=!1;;)switch(i){case\"hex\":return g(this,e,t,r);case\"utf8\":case\"utf-8\":return u=t,h=r,D(R(e,(l=this).length-u),l,u,h);case\"ascii\":return v(this,e,t,r);case\"latin1\":case\"binary\":return v(this,e,t,r);case\"base64\":return o=this,a=t,s=r,D(O(e),o,a,s);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return y(this,e,t,r);default:if(c)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function S(e,t,r){var i=\"\";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function M(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var n=\"\",o=t;o<r;++o)n+=U[e[o]];return n}function E(e,t,r){for(var i=e.slice(t,r),n=\"\",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(r<e+t)throw new RangeError(\"Trying to access beyond buffer length\")}function C(e,t,r,i,n,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(n<t||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+i>e.length)throw new RangeError(\"Index out of range\")}function P(e,t,r,i){if(r+i>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,n){return t=+t,r>>>=0,n||P(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=this[e],n=1,o=0;++o<t&&(n*=256);)i+=this[e+o]*n;return(n*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0<i&&(n*=256);)o+=this[e+--i]*n;return(n*=128)<=o&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var o=n-1;0<=o;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},c.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!c.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n=e.charCodeAt(0);(\"utf8\"===i&&n<128||\"latin1\"===i)&&(e=n)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,\"number\"==typeof(e=e||0))for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,i),s=a.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var i=e.length,n=null,o=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&o.push(239,191,189);if(n=null,r<128){if(--t<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function O(e){return i.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(t,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function D(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}var U=function(){for(var e=\"0123456789abcdef\",t=new Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()}).call(this,N(\"buffer\").Buffer)},{\"base64-js\":19,buffer:21,ieee754:30}],22:[function(e,t,r){\"use strict\";t.exports=e(\"./\").polyfill()},{\"./\":23}],23:[function(z,r,i){(function(j,V){var e,t;e=this,t=function(){\"use strict\";function l(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e=\"undefined\"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u=\"undefined\"==typeof self&&void 0!==j&&\"[object process]\"==={}.toString.call(j),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var f=new Array(1e3);function d(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var p,m,g,v,y=void 0;function b(e,t){var r=this,i=new this.constructor(w);void 0===i[x]&&U(i);var n=r._state;if(n){var o=arguments[n-1];a(function(){return A(n,i,o,r._result)})}else O(r,i,e,t);return i}function _(e){if(e&&\"object\"==typeof e&&e.constructor===this)return e;var t=new this(w);return P(t,e),t}y=u?function(){return j.nextTick(d)}:s?(m=0,g=new s(d),v=document.createTextNode(\"\"),g.observe(v,{characterData:!0}),function(){v.data=m=++m%2}):h?((p=new MessageChannel).port1.onmessage=d,function(){return p.port2.postMessage(0)}):void 0===e&&\"function\"==typeof z?function(){try{var e=Function(\"return this\")().require(\"vertx\");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:c()}catch(e){return c()}}():c();var x=Math.random().toString(36).substring(2);function w(){}var S=void 0,M=1,E=2;function T(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,i!==e?P(t,e):k(t,e))},function(e){r||(r=!0,R(t,e))},t._label);!r&&e&&(r=!0,R(t,e))},e)}function C(e,t,r){var i,n;t.constructor===e.constructor&&r===b&&t.constructor.resolve===_?(i=e,(n=t)._state===M?k(i,n._result):n._state===E?R(i,n._result):O(n,void 0,function(e){return P(i,e)},function(e){return R(i,e)})):void 0===r?k(e,t):l(r)?T(e,t,r):k(e,t)}function P(t,e){if(t===e)R(t,new TypeError(\"You cannot resolve a promise with itself\"));else if(n=typeof(i=e),null===i||\"object\"!=n&&\"function\"!=n)k(t,e);else{var r=void 0;try{r=e.then}catch(e){return void R(t,e)}C(t,e,r)}var i,n}function L(e){e._onerror&&e._onerror(e._result),D(e)}function k(e,t){e._state===S&&(e._result=t,e._state=M,0!==e._subscribers.length&&a(D,e))}function R(e,t){e._state===S&&(e._state=E,e._result=t,a(L,e))}function O(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+M]=r,n[o+E]=i,0===o&&e._state&&a(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i=void 0,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError(\"A promises callback cannot return that same promise.\"))}else o=i;t._state!==S||(n&&s?P(t,o):!1===s?R(t,a):e===M?k(t,o):e===E&&R(t,o))}var I=0;function U(e){e[x]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(F.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},F.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===_){var n=void 0,o=void 0,a=!1;try{n=t.then}catch(e){a=!0,o=e}if(n===b&&t._state!==S)this._settledAt(t._state,e,t._result);else if(\"function\"!=typeof n)this._remaining--,this._result[e]=t;else if(r===B){var s=new r(w);a?R(s,o):C(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},F.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===S&&(this._remaining--,e===E?R(i,r):this._result[t]=r),0===this._remaining&&k(i,this._result)},F.prototype._willSettleAt=function(e,t){var r=this;O(e,void 0,function(e){return r._settledAt(M,t,e)},function(e){return r._settledAt(E,t,e)})},F);function F(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[x]||U(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error(\"Array Methods must be provided an Array\"))}var B=(G.prototype.catch=function(e){return this.then(null,e)},G.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},G);function G(e){this[x]=I++,this._result=this._state=void 0,this._subscribers=[],w!==e&&(\"function\"!=typeof e&&function(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}(),this instanceof G?function(t,e){try{e(function(e){P(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}())}return B.prototype.then=b,B.all=function(e){return new N(this,e).promise},B.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError(\"You must pass an array to race.\"))})},B.resolve=_,B.reject=function(e){var t=new this(w);return R(t,e),t},B._setScheduler=function(e){n=e},B._setAsap=function(e){a=e},B._asap=a,B.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if(\"[object Promise]\"===r&&!t.cast)return}e.Promise=B},B.Promise=B},\"object\"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}).call(this,z(\"_process\"),\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{_process:35}],24:[function(e,i,n){!function(e,t){if(0,void 0!==n&&void 0!==i)t(n,i);else{var r={exports:{}};t(r.exports,r),e.fetchJsonp=r.exports}}(this,function(e,t){\"use strict\";var r=5e3,i=\"callback\";function c(t){try{delete window[t]}catch(e){window[t]=void 0}}function f(e){var t=document.getElementById(e);t&&document.getElementsByTagName(\"head\")[0].removeChild(t)}t.exports=function(o){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o,l=a.timeout||r,u=a.jsonpCallback||i,h=void 0;return new Promise(function(t,e){var r=a.jsonpCallbackFunction||\"jsonp_\"+Date.now()+\"_\"+Math.ceil(1e5*Math.random()),i=u+\"_\"+r;window[r]=function(e){t({ok:!0,json:function(){return Promise.resolve(e)}}),h&&clearTimeout(h),f(i),c(r)},s+=-1===s.indexOf(\"?\")?\"?\":\"&\";var n=document.createElement(\"script\");n.setAttribute(\"src\",\"\"+s+u+\"=\"+r),a.charset&&n.setAttribute(\"charset\",a.charset),n.id=i,document.getElementsByTagName(\"head\")[0].appendChild(n),h=setTimeout(function(){e(new Error(\"JSONP request to \"+o+\" timed out\")),c(r),f(i),window[r]=function(){c(r)}},l),n.onerror=function(){e(new Error(\"JSONP request to \"+o+\" failed\")),c(r),f(i),h&&clearTimeout(h)}})}})},{}],25:[function(e,t,r){var i=i||function(s){\"use strict\";if(!(void 0===s||\"undefined\"!=typeof navigator&&/MSIE [1-9]\\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS(\"http://www.w3.org/1999/xhtml\",\"a\"),h=\"download\"in u,c=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\\/[\\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},p=function(e){setTimeout(function(){\"string\"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},m=function(e){return/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},i=function(e,r,t){t||(e=m(e));function i(){!function(e,t,r){for(var i=(t=[].concat(t)).length;i--;){var n=e[\"on\"+t[i]];if(\"function\"==typeof n)try{n.call(e,r||e)}catch(e){d(e)}}}(o,\"writestart progress write writeend\".split(\" \"))}var n,o=this,a=\"application/octet-stream\"===e.type;if(o.readyState=o.INIT,h)return n=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=n,u.download=r,e=u,t=new MouseEvent(\"click\"),e.dispatchEvent(t),i(),p(n),o.readyState=o.DONE});!function(){if((f||a&&c)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,\"data:attachment/file;\");s.open(e,\"_blank\")||(s.location.href=e),e=void 0,o.readyState=o.DONE,i()},t.readAsDataURL(e),o.readyState=o.INIT}(n=n||l().createObjectURL(e),a)?s.location.href=n:s.open(n,\"_blank\")||(s.location.href=n);o.readyState=o.DONE,i(),p(n)}()},t=i.prototype;return\"undefined\"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,r){return t=t||e.name||\"download\",r||(e=m(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,r){return new i(e,t||e.name||\"download\",r)})}}(\"undefined\"!=typeof self&&self||\"undefined\"!=typeof window&&window||this.content);void 0!==t&&t.exports&&(t.exports.saveAs=i)},{}],26:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var n=i(e(\"@babel/runtime/helpers/classCallCheck\")),o=i(e(\"@babel/runtime/helpers/createClass\")),a=[],s=a.forEach,l=a.slice;var u,h=function(e,t,r,i){var n;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),n=\"; expires=\"+o.toGMTString()}else n=\"\";i=i?\"domain=\"+i+\";\":\"\",document.cookie=e+\"=\"+t+n+\";\"+i+\"path=/\"},c=function(e){for(var t=e+\"=\",r=document.cookie.split(\";\"),i=0;i<r.length;i++){for(var n=r[i];\" \"===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},f={name:\"cookie\",lookup:function(e){var t;if(e.lookupCookie&&\"undefined\"!=typeof document){var r=c(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&\"undefined\"!=typeof document&&h(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:\"querystring\",lookup:function(e){var t;if(\"undefined\"!=typeof window)for(var r=window.location.search.substring(1).split(\"&\"),i=0;i<r.length;i++){var n=r[i].indexOf(\"=\");if(0<n)r[i].substring(0,n)===e.lookupQuerystring&&(t=r[i].substring(n+1))}return t}};try{u=\"undefined\"!==window&&null!==window.localStorage;var p=\"i18next.translate.boo\";window.localStorage.setItem(p,\"foo\"),window.localStorage.removeItem(p)}catch(e){u=!1}var m={name:\"localStorage\",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},g={name:\"navigator\",lookup:function(){var e=[];if(\"undefined\"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)e.push(navigator.languages[t]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},v={name:\"htmlTag\",lookup:function(e){var t,r=e.htmlTag||(\"undefined\"!=typeof document?document.documentElement:null);return r&&\"function\"==typeof r.getAttribute&&(t=r.getAttribute(\"lang\")),t}},y={name:\"path\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.pathname.match(/\\/([a-zA-Z-]*)/g);if(r instanceof Array)if(\"number\"==typeof e.lookupFromPathIndex){if(\"string\"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace(\"/\",\"\")}else t=r[0].replace(\"/\",\"\")}return t}},b={name:\"subdomain\",lookup:function(e){var t;if(\"undefined\"!=typeof window){var r=window.location.href.match(/(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi);r instanceof Array&&(t=\"number\"==typeof e.lookupFromSubdomainIndex?r[e.lookupFromSubdomainIndex].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"):r[0].replace(\"http://\",\"\").replace(\"https://\",\"\").replace(\".\",\"\"))}return t}};var _=function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n(this,r),this.type=\"languageDetector\",this.detectors={},this.init(e,t)}return o(r,[{key:\"init\",value:function(e,t,r){var i=1<arguments.length&&void 0!==t?t:{},n=2<arguments.length&&void 0!==r?r:{};this.services=e,this.options=function(r){return s.call(l.call(arguments,1),function(e){if(e)for(var t in e)void 0===r[t]&&(r[t]=e[t])}),r}(i,this.options||{},{order:[\"querystring\",\"cookie\",\"localStorage\",\"navigator\",\"htmlTag\"],lookupQuerystring:\"lng\",lookupCookie:\"i18next\",lookupLocalStorage:\"i18nextLng\",caches:[\"localStorage\"],excludeCacheFor:[\"cimode\"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b)}},{key:\"addDetector\",value:function(e){this.detectors[e.name]=e}},{key:\"detect\",value:function(e){var r=this;e=e||this.options.order;var i,n=[];if(e.forEach(function(e){if(r.detectors[e]){var t=r.detectors[e].lookup(r.options);t&&\"string\"==typeof t&&(t=[t]),t&&(n=n.concat(t))}}),n.forEach(function(e){if(!i){var t=r.services.languageUtils.formatLanguageCode(e);r.options.checkWhitelist&&!r.services.languageUtils.isWhitelisted(t)||(i=t)}}),!i){var t=this.i18nOptions.fallbackLng;\"string\"==typeof t&&(t=[t]),t=t||[],i=\"[object Array]\"===Object.prototype.toString.apply(t)?t[0]:t[0]||t.default&&t.default[0]}return i}},{key:\"cacheUserLanguage\",value:function(t,e){var r=this;(e=e||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(t)||e.forEach(function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)}))}}]),r}();_.type=\"languageDetector\",t.exports=_},{\"@babel/runtime/helpers/classCallCheck\":27,\"@babel/runtime/helpers/createClass\":28}],27:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],28:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{dup:5}],29:[function(e,t,r){\"use strict\";function i(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}var O=i(e(\"@babel/runtime/helpers/typeof\")),D=i(e(\"@babel/runtime/helpers/objectSpread\")),l=i(e(\"@babel/runtime/helpers/classCallCheck\")),n=i(e(\"@babel/runtime/helpers/createClass\")),u=i(e(\"@babel/runtime/helpers/possibleConstructorReturn\")),h=i(e(\"@babel/runtime/helpers/getPrototypeOf\")),c=i(e(\"@babel/runtime/helpers/assertThisInitialized\")),f=i(e(\"@babel/runtime/helpers/inherits\")),o=i(e(\"@babel/runtime/helpers/toConsumableArray\")),d=i(e(\"@babel/runtime/helpers/slicedToArray\")),a={type:\"logger\",log:function(e){this.output(\"log\",e)},warn:function(e){this.output(\"warn\",e)},error:function(e){this.output(\"error\",e)},output:function(e,t){var r;console&&console[e]&&(r=console)[e].apply(r,o(t))}},p=new(function(){function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,r),this.init(e,t)}return n(r,[{key:\"init\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{};this.prefix=r.prefix||\"i18next:\",this.logger=e||a,this.options=r,this.debug=r.debug}},{key:\"setDebug\",value:function(e){this.debug=e}},{key:\"log\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"log\",\"\",!0)}},{key:\"warn\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"\",!0)}},{key:\"error\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"error\",\"\")}},{key:\"deprecate\",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,\"warn\",\"WARNING DEPRECATED: \",!0)}},{key:\"forward\",value:function(e,t,r,i){return i&&!this.debug?null:(\"string\"==typeof e[0]&&(e[0]=\"\".concat(r).concat(this.prefix,\" \").concat(e[0])),this.logger[t](e))}},{key:\"create\",value:function(e){return new r(this.logger,D({},{prefix:\"\".concat(this.prefix,\":\").concat(e,\":\")},this.options))}}]),r}()),m=function(){function e(){l(this,e),this.observers={}}return n(e,[{key:\"on\",value:function(e,t){var r=this;return e.split(\" \").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:\"off\",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:\"emit\",value:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,r)});this.observers[\"*\"]&&[].concat(this.observers[\"*\"]).forEach(function(e){e.apply(e,[t].concat(r))})}}]),e}();function g(){var r,i,e=new Promise(function(e,t){r=e,i=t});return e.resolve=r,e.reject=i,e}function v(e){return null==e?\"\":\"\"+e}function y(e,t,r){function i(e){return e&&-1<e.indexOf(\"###\")?e.replace(/###/g,\".\"):e}function n(){return!e||\"string\"==typeof e}for(var o=\"string\"!=typeof t?[].concat(t):t.split(\".\");1<o.length;){if(n())return{};var a=i(o.shift());!e[a]&&r&&(e[a]=new r),e=e[a]}return n()?{}:{obj:e,k:i(o.shift())}}function b(e,t,r){var i=y(e,t,Object);i.obj[i.k]=r}function _(e,t){var r=y(e,t),i=r.obj,n=r.k;if(i)return i[n]}function x(e,t,r){var i=_(e,r);return void 0!==i?i:_(t,r)}function s(e){return e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")}var w={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"/\":\"&#x2F;\"};function S(e){return\"string\"==typeof e?e.replace(/[&<>\"'\\/]/g,function(e){return w[e]}):e}var M=function(){function i(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:[\"translation\"],defaultNS:\"translation\"};return l(this,i),t=u(this,h(i).call(this)),m.call(c(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t}return f(i,m),n(i,[{key:\"addNamespaces\",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:\"removeNamespaces\",value:function(e){var t=this.options.ns.indexOf(e);-1<t&&this.options.ns.splice(t,1)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];return r&&\"string\"!=typeof r&&(a=a.concat(r)),r&&\"string\"==typeof r&&(a=a.concat(o?r.split(o):r)),-1<e.indexOf(\".\")&&(a=e.split(\".\")),_(this.data,a)}},{key:\"addResource\",value:function(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=\".\");var s=[e,t];r&&(s=s.concat(a?r.split(a):r)),-1<e.indexOf(\".\")&&(i=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t),b(this.data,s,i),o.silent||this.emit(\"added\",e,t,r,i)}},{key:\"addResources\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{silent:!1};for(var o in r)\"string\"!=typeof r[o]&&\"[object Array]\"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit(\"added\",e,t,r)}},{key:\"addResourceBundle\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{silent:!1},s=[e,t];-1<e.indexOf(\".\")&&(i=r,r=t,t=(s=e.split(\".\"))[1]),this.addNamespaces(t);var l=_(this.data,s)||{};i?function e(t,r,i){for(var n in r)n in t?\"string\"==typeof t[n]||t[n]instanceof String||\"string\"==typeof r[n]||r[n]instanceof String?i&&(t[n]=r[n]):e(t[n],r[n],i):t[n]=r[n];return t}(l,r,n):l=D({},l,r),b(this.data,s,l),a.silent||this.emit(\"added\",e,t,r)}},{key:\"removeResourceBundle\",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(\"removed\",e,t)}},{key:\"hasResourceBundle\",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:\"getResourceBundle\",value:function(e,t){return t=t||this.options.defaultNS,\"v1\"===this.options.compatibilityAPI?D({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:\"getDataByLanguage\",value:function(e){return this.data[e]}},{key:\"toJSON\",value:function(){return this.data}}]),i}(),E={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))}),t}},T={},C=function(){function a(e){var t,r,i,n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return l(this,a),t=u(this,h(a).call(this)),m.call(c(t)),r=[\"resourceStore\",\"languageUtils\",\"pluralResolver\",\"interpolator\",\"backendConnector\",\"i18nFormat\",\"utils\"],i=e,n=c(t),r.forEach(function(e){i[e]&&(n[e]=i[e])}),t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator=\".\"),t.logger=p.create(\"translator\"),t}return f(a,m),n(a,[{key:\"changeLanguage\",value:function(e){e&&(this.language=e)}},{key:\"exists\",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:{interpolation:{}},i=this.resolve(e,r);return i&&void 0!==i.res}},{key:\"extractFromKey\",value:function(e,t){var r=t.nsSeparator||this.options.nsSeparator;void 0===r&&(r=\":\");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&-1<e.indexOf(r)){var o=e.split(r);(r!==i||r===i&&-1<this.options.ns.indexOf(o[0]))&&(n=o.shift()),e=o.join(i)}return\"string\"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:\"translate\",value:function(e,r){var i=this;if(\"object\"!==O(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r=r||{},null==e)return\"\";Array.isArray(e)||(e=[String(e)]);var t=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=this.extractFromKey(e[e.length-1],r),o=n.key,a=n.namespaces,s=a[a.length-1],l=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&\"cimode\"===l.toLowerCase()){if(u){var h=r.nsSeparator||this.options.nsSeparator;return s+h+o}return o}var c=this.resolve(e,r),f=c&&c.res,d=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,m=Object.prototype.toString.apply(f),g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&f&&(\"string\"!=typeof f&&\"boolean\"!=typeof f&&\"number\"!=typeof f)&&[\"[object Number]\",\"[object Function]\",\"[object RegExp]\"].indexOf(m)<0&&(\"string\"!=typeof g||\"[object Array]\"!==m)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn(\"accessing an object - but returnObjects options is not enabled!\"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,r):\"key '\".concat(o,\" (\").concat(this.language,\")' returned an object instead of string.\");if(t){var y=\"[object Array]\"===m,b=y?[]:{},_=y?p:d;for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var w=\"\".concat(_).concat(t).concat(x);b[x]=this.translate(w,D({},r,{joinArrays:!1,ns:a})),b[x]===w&&(b[x]=f[x])}f=b}}else if(v&&\"string\"==typeof g&&\"[object Array]\"===m)f=(f=f.join(g))&&this.extendTranslation(f,e,r);else{var S=!1,M=!1;if(!this.isValidLookup(f)&&void 0!==r.defaultValue){if(S=!0,void 0!==r.count){var E=this.pluralResolver.getSuffix(l,r.count);f=r[\"defaultValue\".concat(E)]}f=f||r.defaultValue}this.isValidLookup(f)||(M=!0,f=o);var T=r.defaultValue&&r.defaultValue!==f&&this.options.updateMissing;if(M||S||T){this.logger.log(T?\"updateKey\":\"missingKey\",l,s,o,T?r.defaultValue:f);var C=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(\"fallback\"===this.options.saveMissingTo&&P&&P[0])for(var L=0;L<P.length;L++)C.push(P[L]);else\"all\"===this.options.saveMissingTo?C=this.languageUtils.toResolveHierarchy(r.lng||this.language):C.push(r.lng||this.language);var k=function(e,t){i.options.missingKeyHandler?i.options.missingKeyHandler(e,s,t,T?r.defaultValue:f,T,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,s,t,T?r.defaultValue:f,T,r),i.emit(\"missingKey\",e,s,t,f)};if(this.options.saveMissing){var R=void 0!==r.count&&\"string\"!=typeof r.count;this.options.saveMissingPlurals&&R?C.forEach(function(t){i.pluralResolver.getPluralFormsOfKey(t,o).forEach(function(e){return k([t],e)})}):k(C,o)}}f=this.extendTranslation(f,e,r,c),M&&f===o&&this.options.appendNamespaceToMissingKey&&(f=\"\".concat(s,\":\").concat(o)),M&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(f))}return f}},{key:\"extendTranslation\",value:function(e,t,r,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D({},r,{interpolation:D({},this.options.interpolation,r.interpolation)}));var o=r.replace&&\"string\"!=typeof r.replace?r.replace:r;this.options.interpolation.defaultVariables&&(o=D({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,r.lng||this.language,r),!1!==r.nest&&(e=this.interpolator.nest(e,function(){return n.translate.apply(n,arguments)},r)),r.interpolation&&this.interpolator.reset()}var a=r.postProcess||this.options.postProcess,s=\"string\"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=E.handle(s,e,t,this.options&&this.options.postProcessPassResolved?D({i18nResolved:i},r):r,this)),e}},{key:\"resolve\",value:function(e,t){var u,n,h,c,f,d=this,p=1<arguments.length&&void 0!==t?t:{};return\"string\"==typeof e&&(e=[e]),e.forEach(function(e){if(!d.isValidLookup(u)){var t=d.extractFromKey(e,p),a=t.key;n=a;var r=t.namespaces;d.options.fallbackNS&&(r=r.concat(d.options.fallbackNS));var s=void 0!==p.count&&\"string\"!=typeof p.count,l=void 0!==p.context&&\"string\"==typeof p.context&&\"\"!==p.context,i=p.lngs?p.lngs:d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng);r.forEach(function(o){d.isValidLookup(u)||(f=o,!T[\"\".concat(i[0],\"-\").concat(o)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(f)&&(T[\"\".concat(i[0],\"-\").concat(o)]=!0,d.logger.warn('key \"'.concat(n,'\" for namespace \"').concat(f,'\" for languages \"').concat(i.join(\", \"),\"\\\" won't get resolved as namespace was not yet loaded\"),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\")),i.forEach(function(e){if(!d.isValidLookup(u)){c=e;var t,r,i=a,n=[i];if(d.i18nFormat&&d.i18nFormat.addLookupKeys)d.i18nFormat.addLookupKeys(n,a,e,o,p);else s&&(t=d.pluralResolver.getSuffix(e,p.count)),s&&l&&n.push(i+t),l&&n.push(i+=\"\".concat(d.options.contextSeparator).concat(p.context)),s&&n.push(i+=t);for(;r=n.pop();)d.isValidLookup(u)||(h=r,u=d.getResource(e,o,r,p))}}))})}}),{res:u,usedKey:n,exactUsedKey:h,usedLng:c,usedNS:f}}},{key:\"isValidLookup\",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&\"\"===e)}},{key:\"getResource\",value:function(e,t,r,i){var n=3<arguments.length&&void 0!==i?i:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}]),a}();function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function t(e){l(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=p.create(\"languageUtils\")}return n(t,[{key:\"getScriptPartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return null;var t=e.split(\"-\");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(\"-\")))}},{key:\"getLanguagePartFromCode\",value:function(e){if(!e||e.indexOf(\"-\")<0)return e;var t=e.split(\"-\");return this.formatLanguageCode(t[0])}},{key:\"formatLanguageCode\",value:function(e){if(\"string\"==typeof e&&-1<e.indexOf(\"-\")){var t=[\"hans\",\"hant\",\"latn\",\"cyrl\",\"cans\",\"mong\",\"arab\"],r=e.split(\"-\");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),\"sgn\"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),-1<t.indexOf(r[1].toLowerCase())&&(r[1]=P(r[1].toLowerCase())),-1<t.indexOf(r[2].toLowerCase())&&(r[2]=P(r[2].toLowerCase()))),r.join(\"-\")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:\"isWhitelisted\",value:function(e){return\"languageOnly\"!==this.options.load&&!this.options.nonExplicitWhitelist||(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(e)}},{key:\"getFallbackCodes\",value:function(e,t){if(!e)return[];if(\"string\"==typeof e&&(e=[e]),\"[object Array]\"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e.default)||[]}},{key:\"toResolveHierarchy\",value:function(e,t){function r(e){e&&(i.isWhitelisted(e)?o.push(e):i.logger.warn(\"rejecting non-whitelisted language code: \".concat(e)))}var i=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return\"string\"==typeof e&&-1<e.indexOf(\"-\")?(\"languageOnly\"!==this.options.load&&r(this.formatLanguageCode(e)),\"languageOnly\"!==this.options.load&&\"currentOnly\"!==this.options.load&&r(this.getScriptPartFromCode(e)),\"currentOnly\"!==this.options.load&&r(this.getLanguagePartFromCode(e))):\"string\"==typeof e&&r(this.formatLanguageCode(e)),n.forEach(function(e){o.indexOf(e)<0&&r(i.formatLanguageCode(e))}),o}}]),t}(),k=[{lngs:[\"ach\",\"ak\",\"am\",\"arn\",\"br\",\"fil\",\"gun\",\"ln\",\"mfe\",\"mg\",\"mi\",\"oc\",\"pt\",\"pt-BR\",\"tg\",\"ti\",\"tr\",\"uz\",\"wa\"],nr:[1,2],fc:1},{lngs:[\"af\",\"an\",\"ast\",\"az\",\"bg\",\"bn\",\"ca\",\"da\",\"de\",\"dev\",\"el\",\"en\",\"eo\",\"es\",\"et\",\"eu\",\"fi\",\"fo\",\"fur\",\"fy\",\"gl\",\"gu\",\"ha\",\"hi\",\"hu\",\"hy\",\"ia\",\"it\",\"kn\",\"ku\",\"lb\",\"mai\",\"ml\",\"mn\",\"mr\",\"nah\",\"nap\",\"nb\",\"ne\",\"nl\",\"nn\",\"no\",\"nso\",\"pa\",\"pap\",\"pms\",\"ps\",\"pt-PT\",\"rm\",\"sco\",\"se\",\"si\",\"so\",\"son\",\"sq\",\"sv\",\"sw\",\"ta\",\"te\",\"tk\",\"ur\",\"yo\"],nr:[1,2],fc:2},{lngs:[\"ay\",\"bo\",\"cgg\",\"fa\",\"id\",\"ja\",\"jbo\",\"ka\",\"kk\",\"km\",\"ko\",\"ky\",\"lo\",\"ms\",\"sah\",\"su\",\"th\",\"tt\",\"ug\",\"vi\",\"wo\",\"zh\"],nr:[1],fc:3},{lngs:[\"be\",\"bs\",\"cnr\",\"dz\",\"hr\",\"ru\",\"sr\",\"uk\"],nr:[1,2,5],fc:4},{lngs:[\"ar\"],nr:[0,1,2,3,11,100],fc:5},{lngs:[\"cs\",\"sk\"],nr:[1,2,5],fc:6},{lngs:[\"csb\",\"pl\"],nr:[1,2,5],fc:7},{lngs:[\"cy\"],nr:[1,2,3,8],fc:8},{lngs:[\"fr\"],nr:[1,2],fc:9},{lngs:[\"ga\"],nr:[1,2,3,7,11],fc:10},{lngs:[\"gd\"],nr:[1,2,3,20],fc:11},{lngs:[\"is\"],nr:[1,2],fc:12},{lngs:[\"jv\"],nr:[0,1],fc:13},{lngs:[\"kw\"],nr:[1,2,3,4],fc:14},{lngs:[\"lt\"],nr:[1,2,10],fc:15},{lngs:[\"lv\"],nr:[1,2,0],fc:16},{lngs:[\"mk\"],nr:[1,2],fc:17},{lngs:[\"mnk\"],nr:[0,1,2],fc:18},{lngs:[\"mt\"],nr:[1,2,11,20],fc:19},{lngs:[\"or\"],nr:[2,1],fc:2},{lngs:[\"ro\"],nr:[1,2,20],fc:20},{lngs:[\"sl\"],nr:[5,1,2,3],fc:21},{lngs:[\"he\"],nr:[1,2,20,21],fc:22}],R={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||10<e)&&e%10==0?2:3)}};var A=function(){function i(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};l(this,i),this.languageUtils=e,this.options=t,this.logger=p.create(\"pluralResolver\"),this.rules=(r={},k.forEach(function(t){t.lngs.forEach(function(e){r[e]={numbers:t.nr,plurals:R[t.fc]}})}),r)}return n(i,[{key:\"addRule\",value:function(e,t){this.rules[e]=t}},{key:\"getRule\",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:\"needsPlural\",value:function(e){var t=this.getRule(e);return t&&1<t.numbers.length}},{key:\"getPluralFormsOfKey\",value:function(r,i){var n=this,o=[],e=this.getRule(r);return e&&e.numbers.forEach(function(e){var t=n.getSuffix(r,e);o.push(\"\".concat(i).concat(t))}),o}},{key:\"getSuffix\",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o=\"plural\":1===o&&(o=\"\"));var a=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return\"v1\"===this.options.compatibilityJSON?1===o?\"\":\"number\"==typeof o?\"_plural_\".concat(o.toString()):a():\"v2\"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn(\"no plural rule found for: \".concat(e)),\"\"}}]),i}(),I=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l(this,t),this.logger=p.create(\"interpolator\"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}return n(t,[{key:\"init\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=void 0!==r.escape?r.escape:S,this.escapeValue=void 0===r.escapeValue||r.escapeValue,this.useRawValueToEscape=void 0!==r.useRawValueToEscape&&r.useRawValueToEscape,this.prefix=r.prefix?s(r.prefix):r.prefixEscaped||\"{{\",this.suffix=r.suffix?s(r.suffix):r.suffixEscaped||\"}}\",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||\",\",this.unescapePrefix=r.unescapeSuffix?\"\":r.unescapePrefix||\"-\",this.unescapeSuffix=this.unescapePrefix?\"\":r.unescapeSuffix||\"\",this.nestingPrefix=r.nestingPrefix?s(r.nestingPrefix):r.nestingPrefixEscaped||s(\"$t(\"),this.nestingSuffix=r.nestingSuffix?s(r.nestingSuffix):r.nestingSuffixEscaped||s(\")\"),this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.resetRegExp()}},{key:\"reset\",value:function(){this.options&&this.init(this.options)}},{key:\"resetRegExp\",value:function(){var e=\"\".concat(this.prefix,\"(.+?)\").concat(this.suffix);this.regexp=new RegExp(e,\"g\");var t=\"\".concat(this.prefix).concat(this.unescapePrefix,\"(.+?)\").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,\"g\");var r=\"\".concat(this.nestingPrefix,\"(.+?)\").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,\"g\")}},{key:\"interpolate\",value:function(e,n,o,t){var r,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\\$/g,\"$$$$\")}function h(e){if(e.indexOf(s.formatSeparator)<0)return x(n,l,e);var t=e.split(s.formatSeparator),r=t.shift().trim(),i=t.join(s.formatSeparator).trim();return s.format(x(n,l,r),i,o)}this.resetRegExp();var c=t&&t.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;r=this.regexpUnescape.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var f=c(e,r,t);i=\"string\"==typeof f?f:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(e=e.replace(r[0],u(i)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;r=this.regexp.exec(e);){if(void 0===(i=h(r[1].trim())))if(\"function\"==typeof c){var d=c(e,r,t);i=\"string\"==typeof d?d:\"\"}else this.logger.warn(\"missed to pass in variable \".concat(r[1],\" for interpolating \").concat(e)),i=\"\";else\"string\"==typeof i||this.useRawValueToEscape||(i=v(i));if(i=this.escapeValue?u(this.escape(i)):u(i),e=e.replace(r[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:\"nest\",value:function(e,t,r){var i,n,o=D({},2<arguments.length&&void 0!==r?r:{});function a(t,e){if(t.indexOf(\",\")<0)return t;var r=t.split(\",\");t=r.shift();var i=r.join(\",\");i=(i=this.interpolate(i,o)).replace(/'/g,'\"');try{o=JSON.parse(i),e&&(o=D({},e,o))}catch(e){this.logger.error(\"failed parsing options string in nesting for key \".concat(t),e)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;i=this.nestingRegexp.exec(e);){if((n=t(a.call(this,i[1].trim(),o),o))&&i[0]===e&&\"string\"!=typeof n)return n;\"string\"!=typeof n&&(n=v(n)),n||(this.logger.warn(\"missed to resolve \".concat(i[1],\" for nesting \").concat(e)),n=\"\"),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}]),t}();var U=function(){function o(e,t,r){var i,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return l(this,o),i=u(this,h(o).call(this)),m.call(c(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=n,i.logger=p.create(\"backendConnector\"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,n.backend,n),i}return f(o,m),n(o,[{key:\"queueLoad\",value:function(e,t,n,r){var o=this,a=[],s=[],l=[],u=[];return e.forEach(function(r){var i=!0;t.forEach(function(e){var t=\"\".concat(r,\"|\").concat(e);!n.reload&&o.store.hasResourceBundle(r,e)?o.state[t]=2:o.state[t]<0||(1===o.state[t]?s.indexOf(t)<0&&s.push(t):(o.state[t]=1,i=!1,s.indexOf(t)<0&&s.push(t),a.indexOf(t)<0&&a.push(t),u.indexOf(e)<0&&u.push(e)))}),i||l.push(r)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:r}),{toLoad:a,pending:s,toLoadLanguages:l,toLoadNamespaces:u}}},{key:\"loaded\",value:function(s,l,e){var t=s.split(\"|\"),r=d(t,2),u=r[0],h=r[1];l&&this.emit(\"failedLoading\",u,h,l),e&&this.store.addResourceBundle(u,h,e),this.state[s]=l?-1:2;var c={};this.queue.forEach(function(e){var t,r,i,n,o,a;t=e.loaded,r=h,n=y(t,[u],Object),o=n.obj,a=n.k,o[a]=o[a]||[],i&&(o[a]=o[a].concat(r)),i||o[a].push(r),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(e.pending,s),l&&e.errors.push(l),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){c[t]||(c[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){c[t].indexOf(e)<0&&c[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit(\"loaded\",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:\"read\",value:function(r,i,n,e,t,o){var a=this,s=3<arguments.length&&void 0!==e?e:0,l=4<arguments.length&&void 0!==t?t:250,u=5<arguments.length?o:void 0;return r.length?this.backend[n](r,i,function(e,t){e&&t&&s<5?setTimeout(function(){a.read.call(a,r,i,n,s+1,2*l,u)},l):u(e,t)}):u(null,{})}},{key:\"prepareLoading\",value:function(e,t,r,i){var n=this,o=2<arguments.length&&void 0!==r?r:{},a=3<arguments.length?i:void 0;if(!this.backend)return this.logger.warn(\"No backend was added via i18next.use. Will not load resources.\"),a&&a();\"string\"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),\"string\"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,o,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:\"load\",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:\"reload\",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:\"loadOne\",value:function(r,e){var i=this,n=1<arguments.length&&void 0!==e?e:\"\",t=r.split(\"|\"),o=d(t,2),a=o[0],s=o[1];this.read(a,s,\"read\",null,null,function(e,t){e&&i.logger.warn(\"\".concat(n,\"loading namespace \").concat(s,\" for language \").concat(a,\" failed\"),e),!e&&t&&i.logger.log(\"\".concat(n,\"loaded namespace \").concat(s,\" for language \").concat(a),t),i.loaded(r,e,t)})}},{key:\"saveMissing\",value:function(e,t,r,i,n,o){var a=5<arguments.length&&void 0!==o?o:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key \"'.concat(r,'\" for namespace \"').concat(t,'\" as the namespace was not yet loaded'),\"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!\"):null!=r&&\"\"!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,D({},a,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),o}();function N(e){return\"string\"==typeof e.ns&&(e.ns=[e.ns]),\"string\"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),\"string\"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(\"cimode\")<0&&(e.whitelist=e.whitelist.concat([\"cimode\"])),e}function F(){}var B=new(function(){function s(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(l(this,s),e=u(this,h(s).call(this)),m.call(c(e)),e.options=N(t),e.services={},e.logger=p,e.modules={external:[]},r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),u(e,c(e));setTimeout(function(){e.init(t,r)},0)}return e}return f(s,m),n(s,[{key:\"init\",value:function(e,t){var n=this,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;function o(e){return e?\"function\"==typeof e?new e:e:null}if(\"function\"==typeof r&&(i=r,r={}),this.options=D({},{debug:!1,initImmediate:!0,ns:[\"translation\"],defaultNS:[\"translation\"],fallbackLng:[\"dev\"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:\"all\",preload:!1,simplifyPluralSuffix:!0,keySeparator:\".\",nsSeparator:\":\",pluralSeparator:\"_\",contextSeparator:\"_\",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:\"fallback\",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(\"object\"===O(e[1])&&(t=e[1]),\"string\"==typeof e[1]&&(t.defaultValue=e[1]),\"string\"==typeof e[2]&&(t.tDescription=e[2]),\"object\"===O(e[2])||\"object\"===O(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:\"{{\",suffix:\"}}\",formatSeparator:\",\",unescapePrefix:\"-\",nestingPrefix:\"$t(\",nestingSuffix:\")\",maxReplaces:1e3}},this.options,N(r)),this.format=this.options.interpolation.format,i=i||F,!this.options.isClone){this.modules.logger?p.init(o(this.modules.logger),this.options):p.init(null,this.options);var a=new L(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=p,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new A(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit.apply(n,[e].concat(r))}),this.modules.external.forEach(function(e){e.init&&e.init(n)})}[\"getResource\",\"addResource\",\"addResources\",\"addResourceBundle\",\"removeResourceBundle\",\"hasResourceBundle\",\"getResourceBundle\",\"getDataByLanguage\"].forEach(function(t){n[t]=function(){var e;return(e=n.store)[t].apply(e,arguments)}});function l(){n.changeLanguage(n.options.lng,function(e,t){n.isInitialized=!0,n.logger.log(\"initialized\",n.options),n.emit(\"initialized\",n.options),u.resolve(t),i(e,t)})}var u=g();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:\"loadResources\",value:function(e,t){var r=this,i=1<arguments.length&&void 0!==t?t:F,n=\"string\"==typeof e?e:this.language;if(\"function\"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&\"cimode\"===n.toLowerCase())return i();var o=[],a=function(e){e&&r.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(n)a(n);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:\"reloadResources\",value:function(e,t,r){var i=g();return e=e||this.languages,t=t||this.options.ns,r=r||F,this.services.backendConnector.reload(e,t,function(e){i.resolve(),r(e)}),i}},{key:\"use\",value:function(e){return\"backend\"===e.type&&(this.modules.backend=e),(\"logger\"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),\"languageDetector\"===e.type&&(this.modules.languageDetector=e),\"i18nFormat\"===e.type&&(this.modules.i18nFormat=e),\"postProcessor\"===e.type&&E.addPostProcessor(e),\"3rdParty\"===e.type&&this.modules.external.push(e),this}},{key:\"changeLanguage\",value:function(e,n){var o=this;this.isLanguageChangingTo=e;var a=g();this.emit(\"languageChanging\",e);function t(i){i&&(o.language||(o.language=i,o.languages=o.services.languageUtils.toResolveHierarchy(i)),o.translator.language||o.translator.changeLanguage(i),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(i)),o.loadResources(i,function(e){var t,r;t=e,(r=i)?(o.language=r,o.languages=o.services.languageUtils.toResolveHierarchy(r),o.translator.changeLanguage(r),o.isLanguageChangingTo=void 0,o.emit(\"languageChanged\",r),o.logger.log(\"languageChanged\",r)):o.isLanguageChangingTo=void 0,a.resolve(function(){return o.t.apply(o,arguments)}),n&&n(t,function(){return o.t.apply(o,arguments)})})}return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(t):t(e):t(this.services.languageDetector.detect()),a}},{key:\"getFixedT\",value:function(e,t){function a(e,t){var r;if(\"object\"!==O(t)){for(var i=arguments.length,n=new Array(2<i?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r=s.options.overloadTranslationOptionHandler([e,t].concat(n))}else r=D({},t);return r.lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs,r.ns=r.ns||a.ns,s.t(e,r)}var s=this;return\"string\"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a}},{key:\"t\",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:\"exists\",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:\"setDefaultNamespace\",value:function(e){this.options.defaultNS=e}},{key:\"hasLoadedNamespace\",value:function(e){var i=this;if(!this.isInitialized)return this.logger.warn(\"hasLoadedNamespace: i18next was not initialized\",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(\"hasLoadedNamespace: i18n.languages were undefined or empty\",this.languages),!1;var t=this.languages[0],r=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if(\"cimode\"===t.toLowerCase())return!0;function o(e,t){var r=i.services.backendConnector.state[\"\".concat(e,\"|\").concat(t)];return-1===r||2===r}return!!this.hasResourceBundle(t,e)||(!this.services.backendConnector.backend||!(!o(t,e)||r&&!o(n,e)))}},{key:\"loadNamespaces\",value:function(e,t){var r=this,i=g();return this.options.ns?(\"string\"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:\"loadLanguages\",value:function(e,t){var r=g();\"string\"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter(function(e){return i.indexOf(e)<0});return n.length?(this.options.preload=i.concat(n),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:\"dir\",value:function(e){if(!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return\"rtl\";return 0<=[\"ar\",\"shu\",\"sqr\",\"ssh\",\"xaa\",\"yhd\",\"yud\",\"aao\",\"abh\",\"abv\",\"acm\",\"acq\",\"acw\",\"acx\",\"acy\",\"adf\",\"ads\",\"aeb\",\"aec\",\"afb\",\"ajp\",\"apc\",\"apd\",\"arb\",\"arq\",\"ars\",\"ary\",\"arz\",\"auz\",\"avl\",\"ayh\",\"ayl\",\"ayn\",\"ayp\",\"bbz\",\"pga\",\"he\",\"iw\",\"ps\",\"pbt\",\"pbu\",\"pst\",\"prp\",\"prd\",\"ur\",\"ydd\",\"yds\",\"yih\",\"ji\",\"yi\",\"hbo\",\"men\",\"xmn\",\"fa\",\"jpr\",\"peo\",\"pes\",\"prs\",\"dv\",\"sam\"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?\"rtl\":\"ltr\"}},{key:\"createInstance\",value:function(e,t){return new s(0<arguments.length&&void 0!==e?e:{},1<arguments.length?t:void 0)}},{key:\"cloneInstance\",value:function(e,t){var r=this,i=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:F,o=D({},this.options,i,{isClone:!0}),a=new s(o);return[\"store\",\"services\",\"language\"].forEach(function(e){a[e]=r[e]}),a.translator=new C(a.services,a.options),a.translator.on(\"*\",function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];a.emit.apply(a,[e].concat(r))}),a.init(o,n),a.translator.options=a.options,a}}]),s}());t.exports=B},{\"@babel/runtime/helpers/assertThisInitialized\":3,\"@babel/runtime/helpers/classCallCheck\":4,\"@babel/runtime/helpers/createClass\":5,\"@babel/runtime/helpers/getPrototypeOf\":7,\"@babel/runtime/helpers/inherits\":8,\"@babel/runtime/helpers/objectSpread\":13,\"@babel/runtime/helpers/possibleConstructorReturn\":14,\"@babel/runtime/helpers/slicedToArray\":16,\"@babel/runtime/helpers/toConsumableArray\":17,\"@babel/runtime/helpers/typeof\":18}],30:[function(e,t,r){r.read=function(e,t,r,i,n){var o,a,s=8*n-i-1,l=(1<<s)-1,u=l>>1,h=-7,c=r?n-1:0,f=r?-1:1,d=e[t+c];for(c+=f,o=d&(1<<-h)-1,d>>=-h,h+=s;0<h;o=256*o+e[t+c],c+=f,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=i;0<h;a=256*a+e[t+c],c+=f,h-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},r.write=function(e,t,r,i,n,o){var a,s,l,u=8*o-n-1,h=(1<<u)-1,c=h>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+c?f/l:f*Math.pow(2,1-c))*l&&(a++,l/=2),h<=a+c?(s=0,a=h):1<=a+c?(s=(t*l-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=p,s/=256,n-=8);for(a=a<<n|s,u+=n;0<u;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*m}},{}],31:[function(e,t,r){\"use strict\";var i;function g(e,t){return e.b===t.b&&e.a===t.a}function v(e,t){return e.b<t.b||e.b===t.b&&e.a<=t.a}function y(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?i<n?t.a-e.a+i/(i+n)*(e.a-r.a):t.a-r.a+n/(i+n)*(r.a-e.a):0}function b(e,t,r){var i=t.b-e.b,n=r.b-t.b;return 0<i+n?(t.a-r.a)*i+(t.a-e.a)*n:0}function _(e,t){return e.a<t.a||e.a===t.a&&e.b<=t.b}function x(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?i<n?t.b-e.b+i/(i+n)*(e.b-r.b):t.b-r.b+n/(i+n)*(r.b-e.b):0}function w(e,t,r){var i=t.a-e.a,n=r.a-t.a;return 0<i+n?(t.b-r.b)*i+(t.b-e.b)*n:0}function S(e,t,r,i){return(e=e<0?0:e)<=(r=r<0?0:r)?0===r?(t+i)/2:t+e/(e+r)*(i-t):i+r/(e+r)*(t-i)}function a(e){var t=o(e.b);return n(t,e.c),n(t.b,e.c),s(t,e.a),t}function M(e,t){var r=!1,i=!1;e!==t&&(t.a!==e.a&&(i=!0,m(t.a,e.a)),t.d!==e.d&&(r=!0,l(t.d,e.d)),d(t,e),i||(n(t,e.a),e.a.c=e),r||(s(t,e.d),e.d.a=e))}function c(e){var t=e.b,r=!1;e.d!==e.b.d&&(r=!0,l(e.d,e.b.d)),e.c===e?m(e.a,null):(e.b.d.a=J(e),e.a.c=e.c,d(e,J(e)),r||s(e,e.d)),t.c===t?(m(t.a,null),l(t.d,null)):(e.d.a=J(t),t.a.c=t.c,d(t,J(t))),p(e)}function E(e){var t=o(e),r=t.b;return d(t,e.e),t.a=e.b.a,n(r,t.a),t.d=r.d=e.d,t=t.b,d(e.b,J(e.b)),d(e.b,t),e.b.a=t.a,t.b.a.c=t.b,t.b.d=e.b.d,t.f=e.f,t.b.f=e.b.f,t}function f(e,t){var r=!1,i=o(e),n=i.b;return t.d!==e.d&&(r=!0,l(t.d,e.d)),d(i,e.e),d(n,t),i.a=e.b.a,n.a=t.a,i.d=n.d=e.d,e.d.a=n,r||s(i,e.d),i}function o(e){var t=new K,r=new K,i=e.b.h;return(((r.h=i).b.h=t).h=e).b.h=r,t.b=r,((t.c=t).e=r).b=t,(r.c=r).e=t}function d(e,t){var r=e.c,i=t.c;r.b.e=t,(i.b.e=e).c=i,t.c=r}function n(e,t){var r=t.f,i=new ee(t,r);for(r.e=i,r=(t.f=i).c=e;r.a=i,(r=r.c)!==e;);}function s(e,t){var r=t.d,i=new Q(t,r);for(r.b=i,(t.d=i).a=e,i.c=t.c,r=e;r.d=i,(r=r.e)!==e;);}function p(e){var t=e.h;e=e.b.h,(t.b.h=e).b.h=t}function m(e,t){for(var r=e.c,i=r;i.a=t,(i=i.c)!==r;);r=e.f,((i=e.e).f=r).e=i}function l(e,t){for(var r=e.a,i=r;i.d=t,(i=i.e)!==r;);r=e.d,((i=e.b).d=r).b=i}function T(e){var t=0;return Math.abs(e[1])>Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function P(e,t){e.f+=t.f,e.b.f+=t.b.f}function u(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?v(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function h(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function k(e){for(var t=e.a.a;(e=fe(e)).a.a===t;);return e.c&&(h(e,t=f(ce(e).a.b,e.a.e)),e=fe(e)),e}function R(e,t,r){var i=new he;return i.a=r,i.e=W(e.f,t.e,i),r.i=i}function O(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0<t;case 100133:return t<0;case 100134:return 2<=t||t<=-2}return!1}function D(e){var t=e.a,r=t.d;r.c=e.d,r.a=t,L(e)}function A(e,t,r){for(t=(e=t).a;e!==r;){e.c=!1;var i=ce(e),n=i.a;if(n.a!==t.a){if(!i.c){D(e);break}h(i,n=f(t.c.b,n.b))}t.c!==n&&(M(J(n),n),M(t,n)),D(e),t=i.a,e=i}return t}function I(e,t,r,i,n,o){for(var a=!0;R(e,t,r.b),(r=r.c)!==i;);for(null===n&&(n=ce(t).a.b.c);(r=(i=ce(t)).a.b).a===n.a;)r.c!==n&&(M(J(r),r),M(J(n),r)),i.f=t.f-r.f,i.d=O(e,i.f),t.b=!0,!a&&B(e,t)&&(P(r,n),L(t),c(n)),a=!1,t=i,n=r;t.b=!0,o&&j(e,t)}function U(e,t,r,i,n){var o=[t.g[0],t.g[1],t.g[2]];t.d=null,t.d=e.o&&e.o(o,r,i,e.c)||null,null===t.d&&(n?e.n||(Z(e,100156),e.n=!0):t.d=r[0])}function N(e,t,r){var i=[null,null,null,null];i[0]=t.a.d,i[1]=r.a.d,U(e,t.a,i,[.5,.5,0,0],!1),M(t,r)}function F(e,t,r,i,n){var o=Math.abs(t.b-e.b)+Math.abs(t.a-e.a),a=Math.abs(r.b-e.b)+Math.abs(r.a-e.a),s=n+1;i[n]=.5*a/(o+a),i[s]=.5*o/(o+a),e.g[0]+=i[n]*t.g[0]+i[s]*r.g[0],e.g[1]+=i[n]*t.g[1]+i[s]*r.g[1],e.g[2]+=i[n]*t.g[2]+i[s]*r.g[2]}function B(e,t){var r=ce(t),i=t.a,n=r.a;if(v(i.a,n.a)){if(0<b(n.b.a,i.a,n.a))return!1;if(g(i.a,n.a)){if(i.a!==n.a){r=e.e;var o=i.a.h;if(0<=o){var a=(r=r.b).d,s=r.e,l=r.c,u=l[o];a[u]=a[r.a],(l[a[u]]=u)<=--r.a&&(u<=1?le(r,u):v(s[a[u>>1]],s[a[u]])?le(r,u):ue(r,u)),s[o]=null,l[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0<r.a&&null===r.c[r.d[r.a-1]];)--r.a;N(e,J(n),i)}}else E(n.b),M(i,J(n)),t.b=r.b=!0}else{if(b(i.b.a,n.a,i.a)<0)return!1;fe(t).b=t.b=!0,E(i.b),M(J(n),i)}return!0}function G(e,t){var r=ce(t),i=t.a,n=r.a,o=i.a,a=n.a,s=i.b.a,l=n.b.a,u=new ee;if(b(s,e.a,o),b(l,e.a,a),o===a||Math.min(o.a,s.a)>Math.max(a.a,l.a))return!1;if(v(o,a)){if(0<b(l,o,a))return!1}else if(b(s,a,o)<0)return!1;var h,c,f=s,d=o,p=l,m=a;if(v(f,d)||(h=f,f=d,d=h),v(p,m)||(h=p,p=m,m=h),v(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),v(p,d)?v(d,m)?((h=y(f,p,d))+(c=y(p,d,m))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,d.b)):((h=b(f,p,d))+(c=-b(f,m,d))<0&&(h=-h,c=-c),u.b=S(h,p.b,c,m.b)):u.b=(p.b+d.b)/2,_(f,d)||(h=f,f=d,d=h),_(p,m)||(h=p,p=m,m=h),_(f,p)||(h=f,f=p,p=h,h=d,d=m,m=h),_(p,d)?_(d,m)?((h=x(f,p,d))+(c=x(p,d,m))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,d.a)):((h=w(f,p,d))+(c=-w(f,m,d))<0&&(h=-h,c=-c),u.a=S(h,p.a,c,m.a)):u.a=(p.a+d.a)/2,v(u,e.a)&&(u.b=e.a.b,u.a=e.a.a),f=v(o,a)?o:a,v(f,u)&&(u.b=f.b,u.a=f.a),g(u,o)||g(u,a))return B(e,t),!1;if(!g(s,e.a)&&0<=b(s,e.a,u)||!g(l,e.a)&&b(l,e.a,u)<=0){if(l===e.a)return E(i.b),M(n.b,i),i=ce(t=k(t)).a,A(e,ce(t),r),I(e,t,J(i),i,i,!0),!0;if(s!==e.a)return 0<=b(s,e.a,u)&&(fe(t).b=t.b=!0,E(i.b),i.a.b=e.a.b,i.a.a=e.a.a),b(l,e.a,u)<=0&&(t.b=r.b=!0,E(n.b),n.a.b=e.a.b,n.a.a=e.a.a),!1;for(E(n.b),M(i.e,J(n)),a=(o=r=t).a.b.a;(o=fe(o)).a.b.a===a;);return o=ce(t=o).a.b.c,r.a=J(n),I(e,t,(n=A(e,r,null)).c,i.b.c,o,!0),!0}return E(i.b),E(n.b),M(J(n),i),i.a.b=u.b,i.a.a=u.a,i.a.h=re(e.e,i.a),i=i.a,n=[0,0,0,0],u=[o.d,s.d,a.d,l.d],i.g[0]=i.g[1]=i.g[2]=0,F(i,o,s,n,0),F(i,a,l,n,2),U(e,i,u,n,!0),fe(t).b=t.b=r.b=!0,!1}function j(e,t){for(var r=ce(t);;){for(;r.b;)r=ce(t=r);if(!t.b&&(null===(t=fe(r=t))||!t.b))break;t.b=!1;var i,n=t.a,o=r.a;if(i=n.b.a!==o.b.a)e:{var a=ce(i=t),s=i.a,l=a.a,u=void 0;if(v(s.b.a,l.b.a)){if(b(s.b.a,l.b.a,s.a)<0){i=!1;break e}fe(i).b=i.b=!0,u=E(s),M(l.b,u),u.d.c=i.d}else{if(0<b(l.b.a,s.b.a,l.a)){i=!1;break e}i.b=a.b=!0,u=E(l),M(s.e,l.b),u.b.d.c=i.d}i=!0}if(i&&(r.c?(L(r),c(o),o=(r=ce(t)).a):t.c&&(L(t),c(n),n=(t=fe(r)).a)),n.a!==o.a)if(n.b.a===o.b.a||t.c||r.c||n.b.a!==e.a&&o.b.a!==e.a)B(e,t);else if(G(e,t))break;n.a===o.a&&n.b.a===o.b.a&&(P(o,n),L(t),c(n),t=fe(r))}}function V(e,t){for(var r=(e.a=t).c;null===r.i;)if((r=r.c)===t.c){r=e;var i=t;(a=new he).a=i.c.b;for(var n=(l=r.f).a;null!==(n=n.a).b&&!l.c(l.b,a,n.b););var o=ce(l=n.b),a=l.a;n=o.a;if(0===b(a.b.a,i,a.a))g((a=l.a).a,i)||g(a.b.a,i)||(E(a.b),l.c&&(c(a.c),l.c=!1),M(i.c,a),V(r,i));else{var s=v(n.b.a,a.b.a)?l:o;o=void 0;l.d||s.c?(o=s===l?f(i.c.b,a.e):f(n.b.c.b,i.c).b,s.c?h(s,o):((l=R(a=r,l,o)).f=fe(l).f+l.a.f,l.d=O(a,l.f)),V(r,i)):I(r,l,i.c,i.c,null,!0)}return}if(l=(a=ce(r=k(r.i))).a,(a=A(e,a,null)).c===l){a=(l=a).c,n=ce(r),o=r.a,s=n.a;var l,u=!1;o.b.a!==s.b.a&&G(e,r),g(o.a,e.a)&&(M(J(a),o),a=ce(r=k(r)).a,A(e,ce(r),n),u=!0),g(s.a,e.a)&&(M(l,J(s)),l=A(e,n,null),u=!0),u?I(e,r,l.c,a,a,!0):(i=v(s.a,o.a)?J(s):o,I(e,r,i=f(l.c.b,i),i.c,i.c,!1),i.b.i.c=!0,j(e,r))}else I(e,r,a.c,l,l,!0)}function z(e,t){var r=new he,i=a(e.b);i.a.b=C,i.a.a=t,i.b.a.b=-C,i.b.a.a=t,e.a=i.b.a,r.a=i,r.f=0,r.d=!1,r.c=!1,r.h=!0,r.b=!1,i=W(i=e.f,i.a,r),r.e=i}function H(e){this.a=new X,this.b=e,this.c=u}function W(e,t,r){for(;null!==(t=t.c).b&&!e.c(e.b,t.b,r););return e=new X(r,t.a,t),t.a.c=e,t.a=e}function X(e,t,r){this.b=e||null,this.a=t||this,this.c=r||this}function q(){this.d=0,this.p=this.b=this.q=null,this.j=[0,0,0],this.s=100130,this.n=!1,this.o=this.a=this.e=this.f=null,this.m=!1,this.c=this.r=this.i=this.k=this.l=this.h=null}function Y(e,t){if(e.d!==t)for(;e.d!==t;)if(e.d<t)switch(e.d){case 0:Z(e,100151),e.u(null);break;case 1:Z(e,100152),e.t()}else switch(e.d){case 2:Z(e,100154),e.v();break;case 1:Z(e,100153),e.w()}}function Z(e,t){e.p&&e.p(t,e.c)}function Q(e,t){this.b=e||this,this.d=t||this,this.a=null,this.c=!1}function K(){(this.h=this).i=this.d=this.a=this.e=this.c=this.b=null,this.f=0}function J(e){return e.b.e}function $(){this.c=new ee,this.a=new Q,this.b=new K,this.d=new K,this.b.b=this.d,this.d.b=this.b}function ee(e,t){this.e=e||this,this.f=t||this,this.d=this.c=null,this.g=[0,0,0],this.h=this.a=this.b=0}function te(){this.c=[],this.d=null,this.a=0,this.e=!1,this.b=new ne}function re(e,t){if(e.e){var r,i=e.b,n=++i.a;return 2*n>i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&ue(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&v(ae(e.b),t))return se(e.b);for(;--e.a,0<e.a&&null===e.c[e.d[e.a-1]];);return t}function ne(){this.d=oe([0],33),this.e=[null,null],this.c=[0,0],this.a=0,this.f=32,this.b=0,this.h=!1,this.d[1]=1}function oe(e,t){for(var r=Array(t),i=0;i<e.length;i++)r[i]=e[i];for(;i<t;i++)r[i]=0;return r}function ae(e){return e.e[e.d[1]]}function se(e){var t=e.d,r=e.e,i=e.c,n=t[1],o=r[n];return 0<e.a&&(t[1]=t[e.a],i[t[1]]=1,r[n]=null,i[n]=e.b,e.b=n,0<--e.a&&le(e,1)),o}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o<<1;s<e.a&&v(i[r[s+1]],i[r[s]])&&(s+=1);var l=r[s];if(s>e.a||v(i[a],i[l])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function ue(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,l=r[s];if(0==s||v(i[l],i[a])){n[r[o]=a]=o;break}n[r[o]=l]=o,o=s}}function he(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function fe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150<o&&(o=1e150,r=!0),i[n]=o}r&&Z(this,100155),null===(r=this.q)?M(r=a(this.b),r.b):(E(r),r=r.e),r.a.d=t,r.a.g[0]=i[0],r.a.g[1]=i[1],r.a.g[2]=i[2],r.f=1,r.b.f=-1,this.q=r},i.u=function(e){Y(this,0),this.d=1,this.b=new $,this.c=e},i.t=function(){Y(this,1),this.d=2,this.q=null},i.v=function(){Y(this,2),this.d=1},i.w=function(){Y(this,1),this.d=0;var e,t,r=!1,i=[l=this.j[0],n=this.j[1],a=this.j[2]];if(0===l&&0===n&&0===a){for(var n=[-2e150,-2e150,-2e150],o=[2e150,2e150,2e150],a=[],s=[],l=(r=this.b.c).e;l!==r;l=l.e)for(var u=0;u<3;++u){var h=l.g[u];h<o[u]&&(o[u]=h,s[u]=l),h>n[u]&&(n[u]=h,a[u]=l)}if(l=0,n[1]-o[1]>n[0]-o[0]&&(l=1),n[2]-o[2]>n[l]-o[l]&&(l=2),o[l]>=n[l])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[l],a=a[l],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],u=[0,0,0],l=r.e;l!==r;l=l.e)u[0]=l.g[0]-a.g[0],u[1]=l.g[1]-a.g[1],u[2]=l.g[2]-a.g[2],s[0]=o[1]*u[2]-o[2]*u[1],s[1]=o[2]*u[0]-o[0]*u[2],s[2]=o[0]*u[1]-o[1]*u[0],n<(h=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=h,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[T(o)]=1)}r=!0}for(s=T(i),l=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0<i[s]?1:-1,i=l.e;i!==l;i=i.e)i.b=i.g[n],i.a=s*i.g[a];if(r){for(i=0,l=(r=this.b.a).b;l!==r;l=l.b)if(!((n=l.a).f<=0))for(;i+=(n.a.b-n.b.a.b)*(n.a.a+n.b.a.a),(n=n.e)!==l.a;);if(i<0)for(r=(i=this.b.c).e;r!==i;r=r.e)r.a=-r.a}for(this.n=!1,l=(i=this.b.b).h;l!==i;l=r)r=l.h,n=l.e,g(l.a,l.b.a)&&l.e.e!==l&&(N(this,n,l),c(l),n=(l=n).e),n.e===l&&(n!==l&&(n!==r&&n!==r.b||(r=r.h),c(n)),l!==r&&l!==r.b||(r=r.h),c(l));for(this.e=i=new te,l=(r=this.b.c).e;l!==r;l=l.e)l.h=re(i,l);for(!function(e){e.d=[];for(var t=0;t<e.a;t++)e.d[t]=t;e.d.sort(function(r){return function(e,t){return v(r[e],r[t])?1:-1}}(e.c)),e.e=!0,function(e){for(var t=e.a;1<=t;--t)le(e,t);e.h=!0}(e.b)}(i),this.f=new H(this),z(this,-C),z(this,C);null!==(i=ie(this.e));){for(;;){e:if(l=this.e,0===l.a)r=ae(l.b);else if(r=l.c[l.d[l.a-1]],0!==l.b.a&&(l=ae(l.b),v(l,r))){r=l;break e}if(null===r||!g(r,i))break;r=ie(this.e),N(this,i.c,r.c)}V(this,i)}for(this.a=this.f.a.a.b.a.a,i=0;null!==(r=this.f.a.a.b);)r.h||++i,L(r);for(this.f=null,(i=this.e).b=null,i.d=null,this.e=i.c=null,l=(i=this.b).a.b;l!==i.a;l=r)r=l.b,(l=l.a).e.e===l&&(P(l.c,l),c(l));if(!this.n){if(i=this.b,this.m)for(l=i.b.h;l!==i.b;l=r)r=l.h,l.b.d.c!==l.d.c?l.f=l.d.c?1:-1:c(l);else for(l=i.a.b;l!==i.a;l=r)if(r=l.b,l.c){for(l=l.a;v(l.b.a,l.a);l=l.c.b);for(;v(l.a,l.b.a);l=l.e);for(n=l.c.b,a=void 0;l.e!==n;)if(v(l.b.a,n.a)){for(;n.e!==l&&(v((t=n.e).b.a,t.a)||b(n.a,n.b.a,n.e.b.a)<=0);)n=(a=f(n.e,n)).b;n=n.c.b}else{for(;n.e!==l&&(v((e=l.c.b).a,e.b.a)||0<=b(l.b.a,l.a,l.c.b.a));)l=(a=f(l,l.c.b)).b;l=l.e}for(;n.e.e!==l;)n=(a=f(n.e,n)).b}if(this.h||this.i||this.k||this.l)if(this.m){for(r=(i=this.b).a.b;r!==i.a;r=r.b)if(r.c){for(this.h&&this.h(2,this.c),l=r.a;this.k&&this.k(l.a.d,this.c),(l=l.e)!==r.a;);this.i&&this.i(this.c)}}else{for(i=this.b,r=!!this.l,l=!1,n=-1,a=i.a.d;a!==i.a;a=a.d)if(a.c)for(l||(this.h&&this.h(4,this.c),l=!0),s=a.a;r&&(n!==(o=s.b.d.c?0:1)&&(n=o,this.l&&this.l(!!n,this.c))),this.k&&this.k(s.a.d,this.c),(s=s.e)!==a.a;);l&&this.i&&this.i(this.c)}if(this.r){for(l=(i=this.b).a.b;l!==i.a;l=r)if(r=l.b,!l.c){for(a=(n=l.a).e,s=void 0;a=(s=a).e,(s.d=null)===s.b.d&&(s.c===s?m(s.a,null):(s.a.c=s.c,d(s,J(s))),(o=s.b).c===o?m(o.a,null):(o.a.c=o.c,d(o,J(o))),p(s)),s!==n;);n=l.d,((l=l.b).d=n).b=l}return this.r(this.b),void(this.c=this.b=null)}}this.b=this.c=null},this.libtess={GluTesselator:q,windingRule:{GLU_TESS_WINDING_ODD:100130,GLU_TESS_WINDING_NONZERO:100131,GLU_TESS_WINDING_POSITIVE:100132,GLU_TESS_WINDING_NEGATIVE:100133,GLU_TESS_WINDING_ABS_GEQ_TWO:100134},primitiveType:{GL_LINE_LOOP:2,GL_TRIANGLES:4,GL_TRIANGLE_STRIP:5,GL_TRIANGLE_FAN:6},errorType:{GLU_TESS_MISSING_BEGIN_POLYGON:100151,GLU_TESS_MISSING_END_POLYGON:100153,GLU_TESS_MISSING_BEGIN_CONTOUR:100152,GLU_TESS_MISSING_END_CONTOUR:100154,GLU_TESS_COORD_TOO_LARGE:100155,GLU_TESS_NEED_COMBINE_CALLBACK:100156},gluEnum:{GLU_TESS_MESH:100112,GLU_TESS_TOLERANCE:100142,GLU_TESS_WINDING_RULE:100140,GLU_TESS_BOUNDARY_ONLY:100141,GLU_INVALID_ENUM:100900,GLU_INVALID_VALUE:100901,GLU_TESS_BEGIN:100100,GLU_TESS_VERTEX:100101,GLU_TESS_END:100102,GLU_TESS_ERROR:100103,GLU_TESS_EDGE_FLAG:100104,GLU_TESS_COMBINE:100105,GLU_TESS_BEGIN_DATA:100106,GLU_TESS_VERTEX_DATA:100107,GLU_TESS_END_DATA:100108,GLU_TESS_ERROR_DATA:100109,GLU_TESS_EDGE_FLAG_DATA:100110,GLU_TESS_COMBINE_DATA:100111}},q.prototype.gluDeleteTess=q.prototype.x,q.prototype.gluTessProperty=q.prototype.B,q.prototype.gluGetTessProperty=q.prototype.y,q.prototype.gluTessNormal=q.prototype.A,q.prototype.gluTessCallback=q.prototype.z,q.prototype.gluTessVertex=q.prototype.C,q.prototype.gluTessBeginPolygon=q.prototype.u,q.prototype.gluTessBeginContour=q.prototype.t,q.prototype.gluTessEndContour=q.prototype.v,q.prototype.gluTessEndPolygon=q.prototype.w,void 0!==t&&(t.exports=this.libtess)},{}],32:[function(e,t,r){\"use strict\";function P(e,t,r,i){for(var n=e[t++],o=1<<n,a=1+o,s=1+a,l=n+1,u=(1<<l)-1,h=0,c=0,f=0,d=e[t++],p=new Int32Array(4096),m=null;;){for(;h<16&&0!==d;)c|=e[t++]<<h,h+=8,1===d?d=e[t++]:--d;if(h<l)break;var g=c&u;if(c>>=l,h-=l,g!=o){if(g==a)break;for(var v=g<s?g:m,y=0,b=v;o<b;)b=p[b]>>8,++y;var _=b;if(i<f+y+(v!==g?1:0))return void console.log(\"Warning, gif stream longer than expected.\");r[f++]=_;var x=f+=y;for(v!==g&&(r[f++]=_),b=v;y--;)b=p[b],r[--x]=255&b,b>>=8;null!==m&&s<4096&&(p[s++]=m<<8|_,u+1<=s&&l<12&&(++l,u=u<<1|1)),m=g}else s=1+a,u=(1<<(l=n+1))-1,m=null}return f!==i&&console.log(\"Warning, gif stream shorter than expected.\"),r}try{r.GifWriter=function(v,e,t,r){var y=0,i=void 0===(r=void 0===r?{}:r).loop?null:r.loop,b=void 0===r.palette?null:r.palette;if(e<=0||t<=0||65535<e||65535<t)throw new Error(\"Width/Height invalid.\");function _(e){var t=e.length;if(t<2||256<t||t&t-1)throw new Error(\"Invalid code/color length, must be power of 2 and 2 .. 256.\");return t}v[y++]=71,v[y++]=73,v[y++]=70,v[y++]=56,v[y++]=57,v[y++]=97;var n=0,o=0;if(null!==b){for(var a=_(b);a>>=1;)++n;if(a=1<<n,--n,void 0!==r.background){if(a<=(o=r.background))throw new Error(\"Background index out of range.\");if(0===o)throw new Error(\"Background index explicitly passed as 0.\")}}if(v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=(null!==b?128:0)|n,v[y++]=o,v[y++]=0,null!==b)for(var s=0,l=b.length;s<l;++s){var u=b[s];v[y++]=u>>16&255,v[y++]=u>>8&255,v[y++]=255&u}if(null!==i){if(i<0||65535<i)throw new Error(\"Loop count invalid.\");v[y++]=33,v[y++]=255,v[y++]=11,v[y++]=78,v[y++]=69,v[y++]=84,v[y++]=83,v[y++]=67,v[y++]=65,v[y++]=80,v[y++]=69,v[y++]=50,v[y++]=46,v[y++]=48,v[y++]=3,v[y++]=1,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=0}var x=!1;this.addFrame=function(e,t,r,i,n,o){if(!0===x&&(--y,x=!1),o=void 0===o?{}:o,e<0||t<0||65535<e||65535<t)throw new Error(\"x/y invalid.\");if(r<=0||i<=0||65535<r||65535<i)throw new Error(\"Width/Height invalid.\");if(n.length<r*i)throw new Error(\"Not enough pixels for the frame size.\");var a=!0,s=o.palette;if(null==s&&(a=!1,s=b),null==s)throw new Error(\"Must supply either a local or global palette.\");for(var l=_(s),u=0;l>>=1;)++u;l=1<<u;var h=void 0===o.delay?0:o.delay,c=void 0===o.disposal?0:o.disposal;if(c<0||3<c)throw new Error(\"Disposal out of range.\");var f=!1,d=0;if(void 0!==o.transparent&&null!==o.transparent&&(f=!0,(d=o.transparent)<0||l<=d))throw new Error(\"Transparent color index.\");if(0===c&&!f&&0===h||(v[y++]=33,v[y++]=249,v[y++]=4,v[y++]=c<<2|(!0===f?1:0),v[y++]=255&h,v[y++]=h>>8&255,v[y++]=d,v[y++]=0),v[y++]=44,v[y++]=255&e,v[y++]=e>>8&255,v[y++]=255&t,v[y++]=t>>8&255,v[y++]=255&r,v[y++]=r>>8&255,v[y++]=255&i,v[y++]=i>>8&255,v[y++]=!0===a?128|u-1:0,!0===a)for(var p=0,m=s.length;p<m;++p){var g=s[p];v[y++]=g>>16&255,v[y++]=g>>8&255,v[y++]=255&g}return y=function(t,r,e,i){t[r++]=e;var n=r++,o=1<<e,a=o-1,s=1+o,l=1+s,u=e+1,h=0,c=0;function f(e){for(;e<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++)}function d(e){c|=e<<h,h+=u,f(8)}var p=i[0]&a,m={};d(o);for(var g=1,v=i.length;g<v;++g){var y=i[g]&a,b=p<<8|y,_=m[b];if(void 0===_){for(c|=p<<h,h+=u;8<=h;)t[r++]=255&c,c>>=8,h-=8,r===n+256&&(t[n]=255,n=r++);4096===l?(d(o),l=1+s,u=e+1,m={}):(1<<u<=l&&++u,m[b]=l++),p=y}else p=_}d(p),d(s),f(1),n+1===r?t[n]=0:(t[n]=r-n-1,t[r++]=0);return r}(v,y,u<2?2:u,n)},this.end=function(){return!1===x&&(v[y++]=59,x=!0),y},this.getOutputBuffer=function(){return v},this.setOutputBuffer=function(e){v=e},this.getOutputBufferPosition=function(){return y},this.setOutputBufferPosition=function(e){y=e}},r.GifReader=function(x){var e=0;if(71!==x[e++]||73!==x[e++]||70!==x[e++]||56!==x[e++]||56!=(x[e++]+1&253)||97!==x[e++])throw new Error(\"Invalid GIF 87a/89a header.\");var w=x[e++]|x[e++]<<8,t=x[e++]|x[e++]<<8,r=x[e++],i=r>>7,n=1<<1+(7&r);x[e++],x[e++];var o=null,a=null;i&&(o=e,e+=3*(a=n));var s=!0,l=[],u=0,h=null,c=0,f=null;for(this.width=w,this.height=t;s&&e<x.length;)switch(x[e++]){case 33:switch(x[e++]){case 255:if(11!==x[e]||78==x[e+1]&&69==x[e+2]&&84==x[e+3]&&83==x[e+4]&&67==x[e+5]&&65==x[e+6]&&80==x[e+7]&&69==x[e+8]&&50==x[e+9]&&46==x[e+10]&&48==x[e+11]&&3==x[e+12]&&1==x[e+13]&&0==x[e+16])e+=14,f=x[e++]|x[e++]<<8,e++;else for(e+=12;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;case 249:if(4!==x[e++]||0!==x[e+4])throw new Error(\"Invalid graphics extension block.\");var d=x[e++];u=x[e++]|x[e++]<<8,h=x[e++],0==(1&d)&&(h=null),c=d>>2&7,e++;break;case 254:for(;;){if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}break;default:throw new Error(\"Unknown graphic control label: 0x\"+x[e-1].toString(16))}break;case 44:var p=x[e++]|x[e++]<<8,m=x[e++]|x[e++]<<8,g=x[e++]|x[e++]<<8,v=x[e++]|x[e++]<<8,y=x[e++],b=y>>6&1,_=1<<1+(7&y),S=o,M=a,E=!1;if(y>>7){E=!0;S=e,e+=3*(M=_)}var T=e;for(e++;;){var C;if(!(0<=(C=x[e++])))throw Error(\"Invalid block size\");if(0===C)break;e+=C}l.push({x:p,y:m,width:g,height:v,has_local_palette:E,palette_offset:S,palette_size:M,data_offset:T,data_length:e-T,transparent_index:h,interlaced:!!b,delay:u,disposal:c});break;case 59:s=!1;break;default:throw new Error(\"Unknown gif block: 0x\"+x[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw new Error(\"Frame index out of range.\");return l[e]},this.decodeAndBlitFrameBGRA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=_,t[f++]=b,t[f++]=y,t[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,t){var r=this.frameInfo(e),i=r.width*r.height,n=new Uint8Array(i);P(x,r.data_offset,n,i);var o=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var s=r.width,l=w-s,u=s,h=4*(r.y*w+r.x),c=4*((r.y+r.height)*w+r.x),f=h,d=4*l;!0===r.interlaced&&(d+=4*w*7);for(var p=8,m=0,g=n.length;m<g;++m){var v=n[m];if(0===u&&(u=s,c<=(f+=d)&&(d=4*l+4*w*(p-1),f=h+(s+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=x[o+3*v],b=x[o+3*v+1],_=x[o+3*v+2];t[f++]=y,t[f++]=b,t[f++]=_,t[f++]=255}--u}}}}catch(e){}},{}],33:[function(jr,t,r){(function(Gr){var e;e=this,function(E){\"use strict\";function e(e){if(null==this)throw TypeError();var t=String(this),r=t.length,i=e?Number(e):0;if(i!=i&&(i=0),!(i<0||r<=i)){var n,o=t.charCodeAt(i);return 55296<=o&&o<=56319&&i+1<r&&56320<=(n=t.charCodeAt(i+1))&&n<=57343?1024*(o-55296)+n-56320+65536:o}}var t;String.prototype.codePointAt||((t=function(){try{var e={},t=Object.defineProperty,r=t(e,e,e)&&t}catch(e){}return r}())?t(String.prototype,\"codePointAt\",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e);var l=0,o=-3;function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new r,this.dtree=new r}var s=new r,u=new r,h=new Uint8Array(30),c=new Uint16Array(30),f=new Uint8Array(30),d=new Uint16Array(30),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=new r,g=new Uint8Array(320);function i(e,t,r,i){var n,o;for(n=0;n<r;++n)e[n]=0;for(n=0;n<30-r;++n)e[n+r]=n/r|0;for(o=i,n=0;n<30;++n)t[n]=o,o+=1<<e[n]}var v=new Uint16Array(16);function y(e,t,r,i){var n,o;for(n=0;n<16;++n)e.table[n]=0;for(n=0;n<i;++n)e.table[t[r+n]]++;for(n=o=e.table[0]=0;n<16;++n)v[n]=o,o+=e.table[n];for(n=0;n<i;++n)t[r+n]&&(e.trans[v[t[r+n]]++]=n)}function b(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;for(var r=0,i=0,n=0,o=e.tag;i=2*i+(1&o),o>>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,l;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)g[a]=0;for(a=0;a<o;++a){var u=_(e,3,0);g[p[a]]=u}for(y(m,g,0,19),s=0;s<i+n;){var h=x(e,m);switch(h){case 16:var c=g[s-1];for(l=_(e,2,3);l;--l)g[s++]=c;break;case 17:for(l=_(e,3,3);l;--l)g[s++]=0;break;case 18:for(l=_(e,7,11);l;--l)g[s++]=0;break;default:g[s++]=h}}y(t,g,0,i),y(r,g,i,n)}function S(e,t,r){for(;;){var i,n,o,a,s=x(e,t);if(256===s)return l;if(s<256)e.dest[e.destLen++]=s;else for(i=_(e,h[s-=257],c[s]),n=x(e,r),a=o=e.destLen-_(e,f[n],d[n]);a<o+i;++a)e.dest[e.destLen++]=e.dest[a]}}function M(e){for(var t,r;8<e.bitcount;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return o;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,l}!function(e,t){var r;for(r=0;r<7;++r)e.table[r]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,r=0;r<24;++r)e.trans[r]=256+r;for(r=0;r<144;++r)e.trans[24+r]=r;for(r=0;r<8;++r)e.trans[168+r]=280+r;for(r=0;r<112;++r)e.trans[176+r]=144+r;for(r=0;r<5;++r)t.table[r]=0;for(t.table[5]=32,r=0;r<32;++r)t.trans[r]=r}(s,u),i(h,c,4,3),i(f,d,2,1),h[28]=0,c[28]=258;var n=function(e,t){var r,i,n=new a(e,t);do{switch(r=b(n),_(n,2,0)){case 0:i=M(n);break;case 1:i=S(n,s,u);break;case 2:w(n,n.ltree,n.dtree),i=S(n,n.ltree,n.dtree);break;default:i=o}if(i!==l)throw new Error(\"Data error\")}while(!r);return n.destLen<n.dest.length?\"function\"==typeof n.dest.slice?n.dest.slice(0,n.destLen):n.dest.subarray(0,n.destLen):n.dest};function T(e,t,r,i,n){return Math.pow(1-n,3)*e+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*r+Math.pow(n,3)*i}function C(){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN}function I(){this.commands=[],this.fill=\"black\",this.stroke=null,this.strokeWidth=1}function P(e){throw new Error(e)}function L(e,t){e||P(t)}C.prototype.isEmpty=function(){return isNaN(this.x1)||isNaN(this.y1)||isNaN(this.x2)||isNaN(this.y2)},C.prototype.addPoint=function(e,t){\"number\"==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),\"number\"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var l=this,u=[e,t],h=[r,i],c=[n,o],f=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var p=6*u[d]-12*h[d]+6*c[d],m=-3*u[d]+9*h[d]-9*c[d]+3*f[d],g=3*h[d]-3*u[d];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],y)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],y)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],b)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],b)))}}else{if(0==p)continue;var _=-g/p;0<_&&_<1&&(0===d&&l.addX(T(u[d],h[d],c[d],f[d],_)),1===d&&l.addY(T(u[d],h[d],c[d],f[d],_)))}}},C.prototype.addQuad=function(e,t,r,i,n,o){var a=e+2/3*(r-e),s=t+2/3*(i-t),l=a+1/3*(n-e),u=s+1/3*(o-t);this.addBezier(e,t,a,s,l,u,n,o)},I.prototype.moveTo=function(e,t){this.commands.push({type:\"M\",x:e,y:t})},I.prototype.lineTo=function(e,t){this.commands.push({type:\"L\",x:e,y:t})},I.prototype.curveTo=I.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.commands.push({type:\"C\",x1:e,y1:t,x2:r,y2:i,x:n,y:o})},I.prototype.quadTo=I.prototype.quadraticCurveTo=function(e,t,r,i){this.commands.push({type:\"Q\",x1:e,y1:t,x:r,y:i})},I.prototype.close=I.prototype.closePath=function(){this.commands.push({type:\"Z\"})},I.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof C){var t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},I.prototype.getBoundingBox=function(){for(var e=new C,t=0,r=0,i=0,n=0,o=0;o<this.commands.length;o++){var a=this.commands[o];switch(a.type){case\"M\":e.addPoint(a.x,a.y),t=i=a.x,r=n=a.y;break;case\"L\":e.addPoint(a.x,a.y),i=a.x,n=a.y;break;case\"Q\":e.addQuad(i,n,a.x1,a.y1,a.x,a.y),i=a.x,n=a.y;break;case\"C\":e.addBezier(i,n,a.x1,a.y1,a.x2,a.y2,a.x,a.y),i=a.x,n=a.y;break;case\"Z\":i=t,n=r;break;default:throw new Error(\"Unexpected path command \"+a.type)}}return e.isEmpty()&&e.addPoint(0,0),e},I.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var r=this.commands[t];\"M\"===r.type?e.moveTo(r.x,r.y):\"L\"===r.type?e.lineTo(r.x,r.y):\"C\"===r.type?e.bezierCurveTo(r.x1,r.y1,r.x2,r.y2,r.x,r.y):\"Q\"===r.type?e.quadraticCurveTo(r.x1,r.y1,r.x,r.y):\"Z\"===r.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},I.prototype.toPathData=function(o){function e(){for(var e,t=arguments,r=\"\",i=0;i<arguments.length;i+=1){var n=t[i];0<=n&&0<i&&(r+=\" \"),r+=(e=n,Math.round(e)===e?\"\"+Math.round(e):e.toFixed(o))}return r}o=void 0!==o?o:2;for(var t=\"\",r=0;r<this.commands.length;r+=1){var i=this.commands[r];\"M\"===i.type?t+=\"M\"+e(i.x,i.y):\"L\"===i.type?t+=\"L\"+e(i.x,i.y):\"C\"===i.type?t+=\"C\"+e(i.x1,i.y1,i.x2,i.y2,i.x,i.y):\"Q\"===i.type?t+=\"Q\"+e(i.x1,i.y1,i.x,i.y):\"Z\"===i.type&&(t+=\"Z\")}return t},I.prototype.toSVG=function(e){var t='<path d=\"';return t+=this.toPathData(e),t+='\"',this.fill&&\"black\"!==this.fill&&(null===this.fill?t+=' fill=\"none\"':t+=' fill=\"'+this.fill+'\"'),this.stroke&&(t+=' stroke=\"'+this.stroke+'\" stroke-width=\"'+this.strokeWidth+'\"'),t+=\"/>\"},I.prototype.toDOMElement=function(e){var t=this.toPathData(e),r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"path\");return r.setAttribute(\"d\",t),r};var k={fail:P,argument:L,assert:L},R=2147483648,O={},D={},A={};function U(e){return function(){return e}}D.BYTE=function(e){return k.argument(0<=e&&e<=255,\"Byte value should be between 0 and 255.\"),[e]},A.BYTE=U(1),D.CHAR=function(e){return[e.charCodeAt(0)]},A.CHAR=U(1),D.CHARARRAY=function(e){for(var t=[],r=0;r<e.length;r+=1)t[r]=e.charCodeAt(r);return t},A.CHARARRAY=function(e){return e.length},D.USHORT=function(e){return[e>>8&255,255&e]},A.USHORT=U(2),D.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=U(2),D.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=U(3),D.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=U(4),D.LONG=function(e){return R<=e&&(e=-(2*R-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=U(4),D.FIXED=D.ULONG,A.FIXED=A.ULONG,D.FWORD=D.SHORT,A.FWORD=A.SHORT,D.UFWORD=D.USHORT,A.UFWORD=A.USHORT,D.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=U(8),D.TAG=function(e){return k.argument(4===e.length,\"Tag should be exactly 4 ASCII characters.\"),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=U(4),D.Card8=D.BYTE,A.Card8=A.BYTE,D.Card16=D.USHORT,A.Card16=A.USHORT,D.OffSize=D.BYTE,A.OffSize=A.BYTE,D.SID=D.USHORT,A.SID=A.USHORT,D.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?D.NUMBER16(e):D.NUMBER32(e)},A.NUMBER=function(e){return D.NUMBER(e).length},D.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=U(3),D.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=U(5),D.REAL=function(e){var t=e.toString(),r=/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat(\"1e\"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n=\"\",o=0,a=t.length;o<a;o+=1){var s=t[o];n+=\"e\"===s?\"-\"===t[++o]?\"c\":\"b\":\".\"===s?\"a\":\"-\"===s?\"e\":s}for(var l=[30],u=0,h=(n+=1&n.length?\"f\":\"ff\").length;u<h;u+=2)l.push(parseInt(n.substr(u,2),16));return l},A.REAL=function(e){return D.REAL(e).length},D.NAME=D.CHARARRAY,A.NAME=A.CHARARRAY,D.STRING=D.CHARARRAY,A.STRING=A.CHARARRAY,O.UTF8=function(e,t,r){for(var i=[],n=r,o=0;o<n;o++,t+=1)i[o]=e.getUint8(t);return String.fromCharCode.apply(null,i)},O.UTF16=function(e,t,r){for(var i=[],n=r/2,o=0;o<n;o++,t+=2)i[o]=e.getUint16(t);return String.fromCharCode.apply(null,i)},D.UTF16=function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t[t.length]=i>>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var N={\"x-mac-croatian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\",\"x-mac-cyrillic\":\"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю\",\"x-mac-gaelic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ\",\"x-mac-greek\":\"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­\",\"x-mac-icelandic\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-inuit\":\"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł\",\"x-mac-ce\":\"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\",macintosh:\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-romanian\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\",\"x-mac-turkish\":\"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ\"};O.MACSTRING=function(e,t,r,i){var n=N[i];if(void 0!==n){for(var o=\"\",a=0;a<r;a++){var s=e.getUint8(t+a);o+=s<=127?String.fromCharCode(s):n[127&s]}return o}};var F,B=\"function\"==typeof WeakMap&&new WeakMap;function G(e){return-128<=e&&e<=127}function j(e,t,r){for(var i=0,n=e.length;t<n&&i<64&&0===e[t];)++t,++i;return r.push(128|i-1),t}function V(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(!G(a))break;if(0===a&&o+1<n&&0===e[o+1])break;++o,++i}r.push(i-1);for(var s=t;s<o;++s)r.push(e[s]+256&255);return o}function z(e,t,r){for(var i=0,n=e.length,o=t;o<n&&i<64;){var a=e[o];if(0===a)break;if(G(a)&&o+1<n&&G(e[o+1]))break;++o,++i}r.push(64|i-1);for(var s=t;s<o;++s){var l=e[s];r.push(l+65536>>8&255,l+256&255)}return o}D.MACSTRING=function(e,t){var r=function(e){if(!F)for(var t in F={},N)F[t]=new String(t);var r=F[e];if(void 0!==r){if(B){var i=B.get(r);if(void 0!==i)return i}var n=N[e];if(void 0!==n){for(var o={},a=0;a<n.length;a++)o[n.charCodeAt(a)]=a+128;return B&&B.set(r,o),o}}}(t);if(void 0!==r){for(var i=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(128<=o&&void 0===(o=r[o]))return;i[n]=o}return i}},A.MACSTRING=function(e,t){var r=D.MACSTRING(e,t);return void 0!==r?r.length:0},D.VARDELTAS=function(e){for(var t=0,r=[];t<e.length;){var i=e[t];t=0===i?j(e,t,r):-128<=i&&i<=127?V(e,t,r):z(e,t,r)}return r},D.INDEX=function(e){for(var t=1,r=[t],i=[],n=0;n<e.length;n+=1){var o=D.OBJECT(e[n]);Array.prototype.push.apply(i,o),t+=o.length,r.push(t)}if(0===i.length)return[0,0];for(var a=[],s=1+Math.floor(Math.log(t)/Math.log(2))/8|0,l=[void 0,D.BYTE,D.USHORT,D.UINT24,D.ULONG][s],u=0;u<r.length;u+=1){var h=l(r[u]);Array.prototype.push.apply(a,h)}return Array.prototype.concat(D.Card16(e.length),D.OffSize(s),a,i)},A.INDEX=function(e){return D.INDEX(e).length},D.DICT=function(e){for(var t=[],r=Object.keys(e),i=r.length,n=0;n<i;n+=1){var o=parseInt(r[n],0),a=e[o];t=(t=t.concat(D.OPERAND(a.value,a.type))).concat(D.OPERATOR(o))}return t},A.DICT=function(e){return D.DICT(e).length},D.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},D.OPERAND=function(e,t){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)k.argument(e.length===t.length,\"Not enough arguments given for type\"+t),r=r.concat(D.OPERAND(e[i],t[i]));else if(\"SID\"===t)r=r.concat(D.NUMBER(e));else if(\"offset\"===t)r=r.concat(D.NUMBER32(e));else if(\"number\"===t)r=r.concat(D.NUMBER(e));else{if(\"real\"!==t)throw new Error(\"Unknown operand type \"+t);r=r.concat(D.REAL(e))}return r},D.OP=D.BYTE,A.OP=A.BYTE;var H=\"function\"==typeof WeakMap&&new WeakMap;function W(e,t,r){for(var i=0;i<t.length;i+=1){var n=t[i];this[n.name]=n.value}if(this.tableName=e,this.fields=t,r)for(var o=Object.keys(r),a=0;a<o.length;a+=1){var s=o[a],l=r[s];void 0!==this[s]&&(this[s]=l)}}function X(e,t,r){void 0===r&&(r=t.length);var i=new Array(t.length+1);i[0]={name:e+\"Count\",type:\"USHORT\",value:r};for(var n=0;n<t.length;n++)i[n+1]={name:e+n,type:\"USHORT\",value:t[n]};return i}function q(e,t,r){var i=t.length,n=new Array(i+1);n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n[o+1]={name:e+o,type:\"TABLE\",value:r(t[o],o)};return n}function Y(e,t,r){var i=t.length,n=[];n[0]={name:e+\"Count\",type:\"USHORT\",value:i};for(var o=0;o<i;o++)n=n.concat(r(t[o],o));return n}function Z(e){1===e.format?W.call(this,\"coverageTable\",[{name:\"coverageFormat\",type:\"USHORT\",value:1}].concat(X(\"glyph\",e.glyphs))):k.assert(!1,\"Can't create coverage table format 2 yet.\")}function Q(e){W.call(this,\"scriptListTable\",Y(\"scriptRecord\",e,function(e,t){var r=e.script,i=r.defaultLangSys;return k.assert(!!i,\"Unable to write GSUB: script \"+e.tag+\" has no default language system.\"),[{name:\"scriptTag\"+t,type:\"TAG\",value:e.tag},{name:\"script\"+t,type:\"TABLE\",value:new W(\"scriptTable\",[{name:\"defaultLangSys\",type:\"TABLE\",value:new W(\"defaultLangSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:i.reqFeatureIndex}].concat(X(\"featureIndex\",i.featureIndexes)))}].concat(Y(\"langSys\",r.langSysRecords,function(e,t){var r=e.langSys;return[{name:\"langSysTag\"+t,type:\"TAG\",value:e.tag},{name:\"langSys\"+t,type:\"TABLE\",value:new W(\"langSys\",[{name:\"lookupOrder\",type:\"USHORT\",value:0},{name:\"reqFeatureIndex\",type:\"USHORT\",value:r.reqFeatureIndex}].concat(X(\"featureIndex\",r.featureIndexes)))}]})))}]}))}function K(e){W.call(this,\"featureListTable\",Y(\"featureRecord\",e,function(e,t){var r=e.feature;return[{name:\"featureTag\"+t,type:\"TAG\",value:e.tag},{name:\"feature\"+t,type:\"TABLE\",value:new W(\"featureTable\",[{name:\"featureParams\",type:\"USHORT\",value:r.featureParams}].concat(X(\"lookupListIndex\",r.lookupListIndexes)))}]}))}function J(e,r){W.call(this,\"lookupListTable\",q(\"lookup\",e,function(e){var t=r[e.lookupType];return k.assert(!!t,\"Unable to write GSUB lookup type \"+e.lookupType+\" tables.\"),new W(\"lookupTable\",[{name:\"lookupType\",type:\"USHORT\",value:e.lookupType},{name:\"lookupFlag\",type:\"USHORT\",value:e.lookupFlag}].concat(q(\"subtable\",e.subtables,t)))}))}D.CHARSTRING=function(e){if(H){var t=H.get(e);if(void 0!==t)return t}for(var r=[],i=e.length,n=0;n<i;n+=1){var o=e[n];r=r.concat(D[o.type](o.value))}return H&&H.set(e,r),r},A.CHARSTRING=function(e){return D.CHARSTRING(e).length},D.OBJECT=function(e){var t=D[e.type];return k.argument(void 0!==t,\"No encoding function for type \"+e.type),t(e.value)},A.OBJECT=function(e){var t=A[e.type];return k.argument(void 0!==t,\"No sizeOf function for type \"+e.type),t(e.value)},D.TABLE=function(e){for(var t=[],r=e.fields.length,i=[],n=[],o=0;o<r;o+=1){var a=e.fields[o],s=D[a.type];k.argument(void 0!==s,\"No encoding function for field type \"+a.type+\" (\"+a.name+\")\");var l=e[a.name];void 0===l&&(l=a.value);var u=s(l);\"TABLE\"===a.type?(n.push(t.length),t=t.concat([0,0]),i.push(u)):t=t.concat(u)}for(var h=0;h<i.length;h+=1){var c=n[h],f=t.length;k.argument(f<65536,\"Table \"+e.tableName+\" too big.\"),t[c]=f>>8,t[c+1]=255&f,t=t.concat(i[h])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i<r;i+=1){var n=e.fields[i],o=A[n.type];k.argument(void 0!==o,\"No sizeOf function for field type \"+n.type+\" (\"+n.name+\")\");var a=e[n.name];void 0===a&&(a=n.value),t+=o(a),\"TABLE\"===n.type&&(t+=2)}return t},D.RECORD=D.TABLE,A.RECORD=A.TABLE,D.LITERAL=function(e){return e},A.LITERAL=function(e){return e.length},W.prototype.encode=function(){return D.TABLE(this)},W.prototype.sizeOf=function(){return A.TABLE(this)};var $={Table:W,Record:W,Coverage:(Z.prototype=Object.create(W.prototype)).constructor=Z,ScriptList:(Q.prototype=Object.create(W.prototype)).constructor=Q,FeatureList:(K.prototype=Object.create(W.prototype)).constructor=K,LookupList:(J.prototype=Object.create(W.prototype)).constructor=J,ushortList:X,tableList:q,recordList:Y};function ee(e,t){return e.getUint8(t)}function te(e,t){return e.getUint16(t,!1)}function re(e,t){return e.getUint32(t,!1)}function ie(e,t){return e.getInt16(t,!1)+e.getUint16(t+2,!1)/65535}var ne={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function oe(e,t){this.data=e,this.offset=t,this.relativeOffset=0}oe.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},oe.prototype.parseCard8=oe.prototype.parseByte,oe.prototype.parseCard16=oe.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseSID=oe.prototype.parseUShort,oe.prototype.parseOffset16=oe.prototype.parseUShort,oe.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},oe.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},oe.prototype.parseOffset32=oe.prototype.parseULong=function(){var e=re(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseFixed=function(){var e=ie(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},oe.prototype.parseString=function(e){var t=this.data,r=this.offset+this.relativeOffset,i=\"\";this.relativeOffset+=e;for(var n=0;n<e;n++)i+=String.fromCharCode(t.getUint8(r+n));return i},oe.prototype.parseTag=function(){return this.parseString(4)},oe.prototype.parseLongDateTime=function(){var e=re(this.data,this.offset+this.relativeOffset+4);return e-=2082844800,this.relativeOffset+=8,e},oe.prototype.parseVersion=function(e){var t=te(this.data,this.offset+this.relativeOffset),r=te(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,void 0===e&&(e=4096),t+r/e/10},oe.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=ne[e]*t},oe.prototype.parseULongList=function(e){void 0===e&&(e=this.parseULong());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint32(i),i+=4;return this.relativeOffset+=4*e,t},oe.prototype.parseOffset16List=oe.prototype.parseUShortList=function(e){void 0===e&&(e=this.parseUShort());for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseShortList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getInt16(i),i+=2;return this.relativeOffset+=2*e,t},oe.prototype.parseByteList=function(e){for(var t=new Array(e),r=this.data,i=this.offset+this.relativeOffset,n=0;n<e;n++)t[n]=r.getUint8(i++);return this.relativeOffset+=e,t},oe.prototype.parseList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=0;i<e;i++)r[i]=t.call(this);return r},oe.prototype.parseRecordList=function(e,t){t||(t=e,e=this.parseUShort());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseRecordList32=function(e,t){t||(t=e,e=this.parseULong());for(var r=new Array(e),i=Object.keys(t),n=0;n<e;n++){for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[s];o[s]=l.call(this)}r[n]=o}return r},oe.prototype.parseStruct=function(e){if(\"function\"==typeof e)return e.call(this);for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i],o=e[n];r[n]=o.call(this)}return r},oe.prototype.parseValueRecord=function(e){if(void 0===e&&(e=this.parseUShort()),0!==e){var t={};return 1&e&&(t.xPlacement=this.parseShort()),2&e&&(t.yPlacement=this.parseShort()),4&e&&(t.xAdvance=this.parseShort()),8&e&&(t.yAdvance=this.parseShort()),16&e&&(t.xPlaDevice=void 0,this.parseShort()),32&e&&(t.yPlaDevice=void 0,this.parseShort()),64&e&&(t.xAdvDevice=void 0,this.parseShort()),128&e&&(t.yAdvDevice=void 0,this.parseShort()),t}},oe.prototype.parseValueRecordList=function(){for(var e=this.parseUShort(),t=this.parseUShort(),r=new Array(t),i=0;i<t;i++)r[i]=this.parseValueRecord(e);return r},oe.prototype.parsePointer=function(e){var t=this.parseOffset16();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parsePointer32=function(e){var t=this.parseOffset32();if(0<t)return new oe(this.data,this.offset+t).parseStruct(e)},oe.prototype.parseListOfLists=function(e){for(var t=this,r=this.parseOffset16List(),i=r.length,n=this.relativeOffset,o=new Array(i),a=0;a<i;a++){var s=r[a];if(0!==s)if(t.relativeOffset=s,e){for(var l=t.parseOffset16List(),u=new Array(l.length),h=0;h<l.length;h++)t.relativeOffset=s+l[h],u[h]=e.call(t);o[a]=u}else o[a]=t.parseUShortList();else o[a]=void 0}return this.relativeOffset=n,o},oe.prototype.parseCoverage=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort(),r=this.parseUShort();if(1===t)return{format:1,glyphs:this.parseUShortList(r)};if(2!==t)throw new Error(\"0x\"+e.toString(16)+\": Coverage format must be 1 or 2.\");for(var i=new Array(r),n=0;n<r;n++)i[n]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:i}},oe.prototype.parseClassDef=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};if(2===t)return{format:2,ranges:this.parseRecordList({start:oe.uShort,end:oe.uShort,classId:oe.uShort})};throw new Error(\"0x\"+e.toString(16)+\": ClassDef format must be 1 or 2.\")},oe.list=function(e,t){return function(){return this.parseList(e,t)}},oe.list32=function(e,t){return function(){return this.parseList32(e,t)}},oe.recordList=function(e,t){return function(){return this.parseRecordList(e,t)}},oe.recordList32=function(e,t){return function(){return this.parseRecordList32(e,t)}},oe.pointer=function(e){return function(){return this.parsePointer(e)}},oe.pointer32=function(e){return function(){return this.parsePointer32(e)}},oe.tag=oe.prototype.parseTag,oe.byte=oe.prototype.parseByte,oe.uShort=oe.offset16=oe.prototype.parseUShort,oe.uShortList=oe.prototype.parseUShortList,oe.uLong=oe.offset32=oe.prototype.parseULong,oe.uLongList=oe.prototype.parseULongList,oe.struct=oe.prototype.parseStruct,oe.coverage=oe.prototype.parseCoverage,oe.classDef=oe.prototype.parseClassDef;var ae={reserved:oe.uShort,reqFeatureIndex:oe.uShort,featureIndexes:oe.uShortList};oe.prototype.parseScriptList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,script:oe.pointer({defaultLangSys:oe.pointer(ae),langSysRecords:oe.recordList({tag:oe.tag,langSys:oe.pointer(ae)})})}))||[]},oe.prototype.parseFeatureList=function(){return this.parsePointer(oe.recordList({tag:oe.tag,feature:oe.pointer({featureParams:oe.offset16,lookupListIndexes:oe.uShortList})}))||[]},oe.prototype.parseLookupList=function(i){return this.parsePointer(oe.list(oe.pointer(function(){var e=this.parseUShort();k.argument(1<=e&&e<=9,\"GPOS/GSUB lookup type \"+e+\" unknown.\");var t=this.parseUShort(),r=16&t;return{lookupType:e,lookupFlag:t,subtables:this.parseList(oe.pointer(i[e])),markFilteringSet:r?this.parseUShort():void 0}})))||[]},oe.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var e=this.parseUShort(),t=this.parseUShort();return k.argument(1===e&&t<1,\"GPOS/GSUB feature variations table unknown.\"),this.parseRecordList32({conditionSetOffset:oe.offset32,featureTableSubstitutionOffset:oe.offset32})})||[]};var se={getByte:ee,getCard8:ee,getUShort:te,getCard16:te,getShort:function(e,t){return e.getInt16(t,!1)},getULong:re,getFixed:ie,getTag:function(e,t){for(var r=\"\",i=t;i<t+4;i+=1)r+=String.fromCharCode(e.getInt8(i));return r},getOffset:function(e,t,r){for(var i=0,n=0;n<r;n+=1)i<<=8,i+=e.getUint8(t+n);return i},getBytes:function(e,t,r){for(var i=[],n=t;n<r;n+=1)i.push(e.getUint8(n));return i},bytesToString:function(e){for(var t=\"\",r=0;r<e.length;r+=1)t+=String.fromCharCode(e[r]);return t},Parser:oe};var le={parse:function(e,t){var r={};r.version=se.getUShort(e,t),k.argument(0===r.version,\"cmap table version should be 0.\"),r.numTables=se.getUShort(e,t+2);for(var i=-1,n=r.numTables-1;0<=n;--n){var o=se.getUShort(e,t+4+8*n),a=se.getUShort(e,t+4+8*n+2);if(3===o&&(0===a||1===a||10===a)||0===o&&(0===a||1===a||2===a||3===a||4===a)){i=se.getULong(e,t+4+8*n+4);break}}if(-1===i)throw new Error(\"No valid cmap sub-tables found.\");var s=new se.Parser(e,t+i);if(r.format=s.parseUShort(),12===r.format)!function(e,t){var r;t.parseUShort(),e.length=t.parseULong(),e.language=t.parseULong(),e.groupCount=r=t.parseULong(),e.glyphIndexMap={};for(var i=0;i<r;i+=1)for(var n=t.parseULong(),o=t.parseULong(),a=t.parseULong(),s=n;s<=o;s+=1)e.glyphIndexMap[s]=a,a++}(r,s);else{if(4!==r.format)throw new Error(\"Only format 4 and 12 cmap tables are supported (found format \"+r.format+\").\");!function(e,t,r,i,n){var o;e.length=t.parseUShort(),e.language=t.parseUShort(),e.segCount=o=t.parseUShort()>>1,t.skip(\"uShort\",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),l=new se.Parser(r,i+n+16+4*o),u=new se.Parser(r,i+n+16+6*o),h=i+n+16+8*o,c=0;c<o-1;c+=1)for(var f=void 0,d=a.parseUShort(),p=s.parseUShort(),m=l.parseShort(),g=u.parseUShort(),v=p;v<=d;v+=1)0!==g?(h=u.offset+u.relativeOffset-2,h+=g,h+=2*(v-p),0!==(f=se.getUShort(r,h))&&(f=f+m&65535)):f=v+m&65535,e.glyphIndexMap[v]=f}(r,s,e,t,i)}return r},make:function(e){var t,r=!0;for(t=e.length-1;0<t;--t){if(65535<e.get(t).unicode){console.log(\"Adding CMAP format 12 (needed!)\"),r=!1;break}}var i=[{name:\"version\",type:\"USHORT\",value:0},{name:\"numTables\",type:\"USHORT\",value:r?1:2},{name:\"platformID\",type:\"USHORT\",value:3},{name:\"encodingID\",type:\"USHORT\",value:1},{name:\"offset\",type:\"ULONG\",value:r?12:20}];r||(i=i.concat([{name:\"cmap12PlatformID\",type:\"USHORT\",value:3},{name:\"cmap12EncodingID\",type:\"USHORT\",value:10},{name:\"cmap12Offset\",type:\"ULONG\",value:0}])),i=i.concat([{name:\"format\",type:\"USHORT\",value:4},{name:\"cmap4Length\",type:\"USHORT\",value:0},{name:\"language\",type:\"USHORT\",value:0},{name:\"segCountX2\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);var n,o,a,s=new $.Table(\"cmap\",i);for(s.segments=[],t=0;t<e.length;t+=1){for(var l=e.get(t),u=0;u<l.unicodes.length;u+=1)n=s,o=l.unicodes[u],a=t,n.segments.push({end:o,start:o,delta:-(o-a),offset:0,glyphIndex:a});s.segments=s.segments.sort(function(e,t){return e.start-t.start})}s.segments.push({end:65535,start:65535,delta:1,offset:0});var h=s.segments.length,c=0,f=[],d=[],p=[],m=[],g=[],v=[];for(t=0;t<h;t+=1){var y=s.segments[t];y.end<=65535&&y.start<=65535?(f=f.concat({name:\"end_\"+t,type:\"USHORT\",value:y.end}),d=d.concat({name:\"start_\"+t,type:\"USHORT\",value:y.start}),p=p.concat({name:\"idDelta_\"+t,type:\"SHORT\",value:y.delta}),m=m.concat({name:\"idRangeOffset_\"+t,type:\"USHORT\",value:y.offset}),void 0!==y.glyphId&&(g=g.concat({name:\"glyph_\"+t,type:\"USHORT\",value:y.glyphId}))):c+=1,r||void 0===y.glyphIndex||(v=(v=(v=v.concat({name:\"cmap12Start_\"+t,type:\"ULONG\",value:y.start})).concat({name:\"cmap12End_\"+t,type:\"ULONG\",value:y.end})).concat({name:\"cmap12Glyph_\"+t,type:\"ULONG\",value:y.glyphIndex}))}if(s.segCountX2=2*(h-c),s.searchRange=2*Math.pow(2,Math.floor(Math.log(h-c)/Math.log(2))),s.entrySelector=Math.log(s.searchRange/2)/Math.log(2),s.rangeShift=s.segCountX2-s.searchRange,s.fields=s.fields.concat(f),s.fields.push({name:\"reservedPad\",type:\"USHORT\",value:0}),s.fields=s.fields.concat(d),s.fields=s.fields.concat(p),s.fields=s.fields.concat(m),s.fields=s.fields.concat(g),s.cmap4Length=14+2*f.length+2+2*d.length+2*p.length+2*m.length+2*g.length,!r){var b=16+4*v.length;s.cmap12Offset=20+s.cmap4Length,s.fields=s.fields.concat([{name:\"cmap12Format\",type:\"USHORT\",value:12},{name:\"cmap12Reserved\",type:\"USHORT\",value:0},{name:\"cmap12Length\",type:\"ULONG\",value:b},{name:\"cmap12Language\",type:\"ULONG\",value:0},{name:\"cmap12nGroups\",type:\"ULONG\",value:v.length/3}]),s.fields=s.fields.concat(v)}return s}},ue=[\".notdef\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"questiondown\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"AE\",\"ordfeminine\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"ae\",\"dotlessi\",\"lslash\",\"oslash\",\"oe\",\"germandbls\",\"onesuperior\",\"logicalnot\",\"mu\",\"trademark\",\"Eth\",\"onehalf\",\"plusminus\",\"Thorn\",\"onequarter\",\"divide\",\"brokenbar\",\"degree\",\"thorn\",\"threequarters\",\"twosuperior\",\"registered\",\"minus\",\"eth\",\"multiply\",\"threesuperior\",\"copyright\",\"Aacute\",\"Acircumflex\",\"Adieresis\",\"Agrave\",\"Aring\",\"Atilde\",\"Ccedilla\",\"Eacute\",\"Ecircumflex\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Ntilde\",\"Oacute\",\"Ocircumflex\",\"Odieresis\",\"Ograve\",\"Otilde\",\"Scaron\",\"Uacute\",\"Ucircumflex\",\"Udieresis\",\"Ugrave\",\"Yacute\",\"Ydieresis\",\"Zcaron\",\"aacute\",\"acircumflex\",\"adieresis\",\"agrave\",\"aring\",\"atilde\",\"ccedilla\",\"eacute\",\"ecircumflex\",\"edieresis\",\"egrave\",\"iacute\",\"icircumflex\",\"idieresis\",\"igrave\",\"ntilde\",\"oacute\",\"ocircumflex\",\"odieresis\",\"ograve\",\"otilde\",\"scaron\",\"uacute\",\"ucircumflex\",\"udieresis\",\"ugrave\",\"yacute\",\"ydieresis\",\"zcaron\",\"exclamsmall\",\"Hungarumlautsmall\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"266 ff\",\"onedotenleader\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"isuperior\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"ff\",\"ffi\",\"ffl\",\"parenleftinferior\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"Dotaccentsmall\",\"Macronsmall\",\"figuredash\",\"hypheninferior\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"zerosuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\",\"001.000\",\"001.001\",\"001.002\",\"001.003\",\"Black\",\"Bold\",\"Book\",\"Light\",\"Medium\",\"Regular\",\"Roman\",\"Semibold\"],he=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quoteright\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"quoteleft\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdown\",\"cent\",\"sterling\",\"fraction\",\"yen\",\"florin\",\"section\",\"currency\",\"quotesingle\",\"quotedblleft\",\"guillemotleft\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"\",\"endash\",\"dagger\",\"daggerdbl\",\"periodcentered\",\"\",\"paragraph\",\"bullet\",\"quotesinglbase\",\"quotedblbase\",\"quotedblright\",\"guillemotright\",\"ellipsis\",\"perthousand\",\"\",\"questiondown\",\"\",\"grave\",\"acute\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"dieresis\",\"\",\"ring\",\"cedilla\",\"\",\"hungarumlaut\",\"ogonek\",\"caron\",\"emdash\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"AE\",\"\",\"ordfeminine\",\"\",\"\",\"\",\"\",\"Lslash\",\"Oslash\",\"OE\",\"ordmasculine\",\"\",\"\",\"\",\"\",\"\",\"ae\",\"\",\"\",\"\",\"dotlessi\",\"\",\"\",\"lslash\",\"oslash\",\"oe\",\"germandbls\"],ce=[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"space\",\"exclamsmall\",\"Hungarumlautsmall\",\"\",\"dollaroldstyle\",\"dollarsuperior\",\"ampersandsmall\",\"Acutesmall\",\"parenleftsuperior\",\"parenrightsuperior\",\"twodotenleader\",\"onedotenleader\",\"comma\",\"hyphen\",\"period\",\"fraction\",\"zerooldstyle\",\"oneoldstyle\",\"twooldstyle\",\"threeoldstyle\",\"fouroldstyle\",\"fiveoldstyle\",\"sixoldstyle\",\"sevenoldstyle\",\"eightoldstyle\",\"nineoldstyle\",\"colon\",\"semicolon\",\"commasuperior\",\"threequartersemdash\",\"periodsuperior\",\"questionsmall\",\"\",\"asuperior\",\"bsuperior\",\"centsuperior\",\"dsuperior\",\"esuperior\",\"\",\"\",\"isuperior\",\"\",\"\",\"lsuperior\",\"msuperior\",\"nsuperior\",\"osuperior\",\"\",\"\",\"rsuperior\",\"ssuperior\",\"tsuperior\",\"\",\"ff\",\"fi\",\"fl\",\"ffi\",\"ffl\",\"parenleftinferior\",\"\",\"parenrightinferior\",\"Circumflexsmall\",\"hyphensuperior\",\"Gravesmall\",\"Asmall\",\"Bsmall\",\"Csmall\",\"Dsmall\",\"Esmall\",\"Fsmall\",\"Gsmall\",\"Hsmall\",\"Ismall\",\"Jsmall\",\"Ksmall\",\"Lsmall\",\"Msmall\",\"Nsmall\",\"Osmall\",\"Psmall\",\"Qsmall\",\"Rsmall\",\"Ssmall\",\"Tsmall\",\"Usmall\",\"Vsmall\",\"Wsmall\",\"Xsmall\",\"Ysmall\",\"Zsmall\",\"colonmonetary\",\"onefitted\",\"rupiah\",\"Tildesmall\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"exclamdownsmall\",\"centoldstyle\",\"Lslashsmall\",\"\",\"\",\"Scaronsmall\",\"Zcaronsmall\",\"Dieresissmall\",\"Brevesmall\",\"Caronsmall\",\"\",\"Dotaccentsmall\",\"\",\"\",\"Macronsmall\",\"\",\"\",\"figuredash\",\"hypheninferior\",\"\",\"\",\"Ogoneksmall\",\"Ringsmall\",\"Cedillasmall\",\"\",\"\",\"\",\"onequarter\",\"onehalf\",\"threequarters\",\"questiondownsmall\",\"oneeighth\",\"threeeighths\",\"fiveeighths\",\"seveneighths\",\"onethird\",\"twothirds\",\"\",\"\",\"zerosuperior\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"foursuperior\",\"fivesuperior\",\"sixsuperior\",\"sevensuperior\",\"eightsuperior\",\"ninesuperior\",\"zeroinferior\",\"oneinferior\",\"twoinferior\",\"threeinferior\",\"fourinferior\",\"fiveinferior\",\"sixinferior\",\"seveninferior\",\"eightinferior\",\"nineinferior\",\"centinferior\",\"dollarinferior\",\"periodinferior\",\"commainferior\",\"Agravesmall\",\"Aacutesmall\",\"Acircumflexsmall\",\"Atildesmall\",\"Adieresissmall\",\"Aringsmall\",\"AEsmall\",\"Ccedillasmall\",\"Egravesmall\",\"Eacutesmall\",\"Ecircumflexsmall\",\"Edieresissmall\",\"Igravesmall\",\"Iacutesmall\",\"Icircumflexsmall\",\"Idieresissmall\",\"Ethsmall\",\"Ntildesmall\",\"Ogravesmall\",\"Oacutesmall\",\"Ocircumflexsmall\",\"Otildesmall\",\"Odieresissmall\",\"OEsmall\",\"Oslashsmall\",\"Ugravesmall\",\"Uacutesmall\",\"Ucircumflexsmall\",\"Udieresissmall\",\"Yacutesmall\",\"Thornsmall\",\"Ydieresissmall\"],fe=[\".notdef\",\".null\",\"nonmarkingreturn\",\"space\",\"exclam\",\"quotedbl\",\"numbersign\",\"dollar\",\"percent\",\"ampersand\",\"quotesingle\",\"parenleft\",\"parenright\",\"asterisk\",\"plus\",\"comma\",\"hyphen\",\"period\",\"slash\",\"zero\",\"one\",\"two\",\"three\",\"four\",\"five\",\"six\",\"seven\",\"eight\",\"nine\",\"colon\",\"semicolon\",\"less\",\"equal\",\"greater\",\"question\",\"at\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"bracketleft\",\"backslash\",\"bracketright\",\"asciicircum\",\"underscore\",\"grave\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"braceleft\",\"bar\",\"braceright\",\"asciitilde\",\"Adieresis\",\"Aring\",\"Ccedilla\",\"Eacute\",\"Ntilde\",\"Odieresis\",\"Udieresis\",\"aacute\",\"agrave\",\"acircumflex\",\"adieresis\",\"atilde\",\"aring\",\"ccedilla\",\"eacute\",\"egrave\",\"ecircumflex\",\"edieresis\",\"iacute\",\"igrave\",\"icircumflex\",\"idieresis\",\"ntilde\",\"oacute\",\"ograve\",\"ocircumflex\",\"odieresis\",\"otilde\",\"uacute\",\"ugrave\",\"ucircumflex\",\"udieresis\",\"dagger\",\"degree\",\"cent\",\"sterling\",\"section\",\"bullet\",\"paragraph\",\"germandbls\",\"registered\",\"copyright\",\"trademark\",\"acute\",\"dieresis\",\"notequal\",\"AE\",\"Oslash\",\"infinity\",\"plusminus\",\"lessequal\",\"greaterequal\",\"yen\",\"mu\",\"partialdiff\",\"summation\",\"product\",\"pi\",\"integral\",\"ordfeminine\",\"ordmasculine\",\"Omega\",\"ae\",\"oslash\",\"questiondown\",\"exclamdown\",\"logicalnot\",\"radical\",\"florin\",\"approxequal\",\"Delta\",\"guillemotleft\",\"guillemotright\",\"ellipsis\",\"nonbreakingspace\",\"Agrave\",\"Atilde\",\"Otilde\",\"OE\",\"oe\",\"endash\",\"emdash\",\"quotedblleft\",\"quotedblright\",\"quoteleft\",\"quoteright\",\"divide\",\"lozenge\",\"ydieresis\",\"Ydieresis\",\"fraction\",\"currency\",\"guilsinglleft\",\"guilsinglright\",\"fi\",\"fl\",\"daggerdbl\",\"periodcentered\",\"quotesinglbase\",\"quotedblbase\",\"perthousand\",\"Acircumflex\",\"Ecircumflex\",\"Aacute\",\"Edieresis\",\"Egrave\",\"Iacute\",\"Icircumflex\",\"Idieresis\",\"Igrave\",\"Oacute\",\"Ocircumflex\",\"apple\",\"Ograve\",\"Uacute\",\"Ucircumflex\",\"Ugrave\",\"dotlessi\",\"circumflex\",\"tilde\",\"macron\",\"breve\",\"dotaccent\",\"ring\",\"cedilla\",\"hungarumlaut\",\"ogonek\",\"caron\",\"Lslash\",\"lslash\",\"Scaron\",\"scaron\",\"Zcaron\",\"zcaron\",\"brokenbar\",\"Eth\",\"eth\",\"Yacute\",\"yacute\",\"Thorn\",\"thorn\",\"minus\",\"multiply\",\"onesuperior\",\"twosuperior\",\"threesuperior\",\"onehalf\",\"onequarter\",\"threequarters\",\"franc\",\"Gbreve\",\"gbreve\",\"Idotaccent\",\"Scedilla\",\"scedilla\",\"Cacute\",\"cacute\",\"Ccaron\",\"ccaron\",\"dcroat\"];function de(e){this.font=e}function pe(e){this.cmap=e}function me(e,t){this.encoding=e,this.charset=t}function ge(e){switch(e.version){case 1:this.names=fe.slice();break;case 2:this.names=new Array(e.numberOfGlyphs);for(var t=0;t<e.numberOfGlyphs;t++)e.glyphNameIndex[t]<fe.length?this.names[t]=fe[e.glyphNameIndex[t]]:this.names[t]=e.names[e.glyphNameIndex[t]-fe.length];break;case 2.5:this.names=new Array(e.numberOfGlyphs);for(var r=0;r<e.numberOfGlyphs;r++)this.names[r]=fe[r+e.glyphNameIndex[r]];break;case 3:default:this.names=[]}}de.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.font.glyphs;if(r)for(var i=0;i<r.length;i+=1)for(var n=r.get(i),o=0;o<n.unicodes.length;o+=1)if(n.unicodes[o]===t)return i;return null},pe.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.codePointAt(0)]||0},me.prototype.charToGlyphIndex=function(e){var t=e.codePointAt(0),r=this.encoding[t];return this.charset.indexOf(r)},ge.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},ge.prototype.glyphIndexToName=function(e){return this.names[e]};var ve={line:function(e,t,r,i,n){e.beginPath(),e.moveTo(t,r),e.lineTo(i,n),e.stroke()}};function ye(e){this.bindConstructorValues(e)}function be(t,e,r){Object.defineProperty(t,e,{get:function(){return t.path,t[r]},set:function(e){t[r]=e},enumerable:!0,configurable:!0})}function _e(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var r=0;r<t.length;r++)this.glyphs[r]=t[r];this.length=t&&t.length||0}ye.prototype.bindConstructorValues=function(e){var t,r;this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,\"path\",(t=e.path,r=t||new I,{configurable:!0,get:function(){return\"function\"==typeof r&&(r=r()),r},set:function(e){r=e}}))},ye.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},ye.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},ye.prototype.getPath=function(e,t,r,i,n){var o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:72;var s=(i=i||{}).xScale,l=i.yScale;if(i.hinting&&n&&n.hinting&&(a=this.path&&n.hinting.exec(this,r)),a)o=n.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1;else{o=this.path.commands;var u=1/this.path.unitsPerEm*r;void 0===s&&(s=u),void 0===l&&(l=u)}for(var h=new I,c=0;c<o.length;c+=1){var f=o[c];\"M\"===f.type?h.moveTo(e+f.x*s,t+-f.y*l):\"L\"===f.type?h.lineTo(e+f.x*s,t+-f.y*l):\"Q\"===f.type?h.quadraticCurveTo(e+f.x1*s,t+-f.y1*l,e+f.x*s,t+-f.y*l):\"C\"===f.type?h.curveTo(e+f.x1*s,t+-f.y1*l,e+f.x2*s,t+-f.y2*l,e+f.x*s,t+-f.y*l):\"Z\"===f.type&&h.closePath()}return h},ye.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],r=0;r<this.points.length;r+=1){var i=this.points[r];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return k.argument(0===t.length,\"There are still points left in the current contour.\"),e},ye.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];\"Z\"!==n.type&&(t.push(n.x),r.push(n.y)),\"Q\"!==n.type&&\"C\"!==n.type||(t.push(n.x1),r.push(n.y1)),\"C\"===n.type&&(t.push(n.x2),r.push(n.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,r),leftSideBearing:this.leftSideBearing};return isFinite(o.xMin)||(o.xMin=0),isFinite(o.xMax)||(o.xMax=this.advanceWidth),isFinite(o.yMin)||(o.yMin=0),isFinite(o.yMax)||(o.yMax=0),o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},ye.prototype.draw=function(e,t,r,i,n){this.getPath(t,r,i,n).draw(e)},ye.prototype.drawPoints=function(a,e,t,r){function i(e,t,r,i){var n=2*Math.PI;a.beginPath();for(var o=0;o<e.length;o+=1)a.moveTo(t+e[o].x*i,r+e[o].y*i),a.arc(t+e[o].x*i,r+e[o].y*i,2,0,n,!1);a.closePath(),a.fill()}e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:24;for(var n=1/this.path.unitsPerEm*r,o=[],s=[],l=this.path,u=0;u<l.commands.length;u+=1){var h=l.commands[u];void 0!==h.x&&o.push({x:h.x,y:-h.y}),void 0!==h.x1&&s.push({x:h.x1,y:-h.y1}),void 0!==h.x2&&s.push({x:h.x2,y:-h.y2})}a.fillStyle=\"blue\",i(o,e,t,n),a.fillStyle=\"red\",i(s,e,t,n)},ye.prototype.drawMetrics=function(e,t,r,i){var n;t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:24,n=1/this.path.unitsPerEm*i,e.lineWidth=1,e.strokeStyle=\"black\",ve.line(e,t,-1e4,t,1e4),ve.line(e,-1e4,r,1e4,r);var o=this.xMin||0,a=this.yMin||0,s=this.xMax||0,l=this.yMax||0,u=this.advanceWidth||0;e.strokeStyle=\"blue\",ve.line(e,t+o*n,-1e4,t+o*n,1e4),ve.line(e,t+s*n,-1e4,t+s*n,1e4),ve.line(e,-1e4,r+-a*n,1e4,r+-a*n),ve.line(e,-1e4,r+-l*n,1e4,r+-l*n),e.strokeStyle=\"green\",ve.line(e,t+u*n,-1e4,t+u*n,1e4)},_e.prototype.get=function(e){return\"function\"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},_e.prototype.push=function(e,t){this.glyphs[e]=t,this.length++};var xe={GlyphSet:_e,glyphLoader:function(e,t){return new ye({index:t,font:e})},ttfGlyphLoader:function(r,e,i,n,o,a){return function(){var t=new ye({index:e,font:r});return t.path=function(){i(t,n,o);var e=a(r.glyphs,t);return e.unitsPerEm=r.unitsPerEm,e},be(t,\"xMin\",\"_xMin\"),be(t,\"xMax\",\"_xMax\"),be(t,\"yMin\",\"_yMin\"),be(t,\"yMax\",\"_yMax\"),t}},cffGlyphLoader:function(r,e,i,n){return function(){var t=new ye({index:e,font:r});return t.path=function(){var e=i(r,t,n);return e.unitsPerEm=r.unitsPerEm,e},t}}};function we(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r+=1)if(!we(e[r],t[r]))return!1;return!0}return!1}function Se(e){return e.length<1240?107:e.length<33900?1131:32768}function Me(e,t,r){var i,n,o=[],a=[],s=se.getCard16(e,t);if(0!==s){var l=se.getByte(e,t+2);i=t+(s+1)*l+2;for(var u=t+3,h=0;h<s+1;h+=1)o.push(se.getOffset(e,u,l)),u+=l;n=i+o[s]}else n=t+2;for(var c=0;c<o.length-1;c+=1){var f=se.getBytes(e,i+o[c],i+o[c+1]);r&&(f=r(f)),a.push(f)}return{objects:a,startOffset:t,endOffset:n}}function Ee(e,t){if(28===t)return e.parseByte()<<8|e.parseByte();if(29===t)return e.parseByte()<<24|e.parseByte()<<16|e.parseByte()<<8|e.parseByte();if(30===t)return function(e){for(var t=\"\",r=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\".\",\"E\",\"E-\",null,\"-\"];;){var i=e.parseByte(),n=i>>4,o=15&i;if(15==n)break;if(t+=r[n],15==o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error(\"Invalid b0 \"+t)}function Te(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset<r;){var a=i.parseByte();a<=21?(12===a&&(a=1200+i.parseByte()),n.push([a,o]),o=[]):o.push(Ee(i,a))}return function(e){for(var t={},r=0;r<e.length;r+=1){var i=e[r][0],n=e[r][1],o=void 0;if(o=1===n.length?n[0]:n,t.hasOwnProperty(i)&&!isNaN(t[i]))throw new Error(\"Object \"+t+\" already has key \"+i);t[i]=o}return t}(n)}function Ce(e,t){return t=t<=390?ue[t]:e[t-391]}function Pe(e,t,r){for(var i,n={},o=0;o<t.length;o+=1){var a=t[o];if(Array.isArray(a.type)){var s=[];s.length=a.type.length;for(var l=0;l<a.type.length;l++)void 0===(i=void 0!==e[a.op]?e[a.op][l]:void 0)&&(i=void 0!==a.value&&void 0!==a.value[l]?a.value[l]:null),\"SID\"===a.type[l]&&(i=Ce(r,i)),s[l]=i;n[a.name]=s}else void 0===(i=e[a.op])&&(i=void 0!==a.value?a.value:null),\"SID\"===a.type&&(i=Ce(r,i)),n[a.name]=i}return n}var Le=[{name:\"version\",op:0,type:\"SID\"},{name:\"notice\",op:1,type:\"SID\"},{name:\"copyright\",op:1200,type:\"SID\"},{name:\"fullName\",op:2,type:\"SID\"},{name:\"familyName\",op:3,type:\"SID\"},{name:\"weight\",op:4,type:\"SID\"},{name:\"isFixedPitch\",op:1201,type:\"number\",value:0},{name:\"italicAngle\",op:1202,type:\"number\",value:0},{name:\"underlinePosition\",op:1203,type:\"number\",value:-100},{name:\"underlineThickness\",op:1204,type:\"number\",value:50},{name:\"paintType\",op:1205,type:\"number\",value:0},{name:\"charstringType\",op:1206,type:\"number\",value:2},{name:\"fontMatrix\",op:1207,type:[\"real\",\"real\",\"real\",\"real\",\"real\",\"real\"],value:[.001,0,0,.001,0,0]},{name:\"uniqueId\",op:13,type:\"number\"},{name:\"fontBBox\",op:5,type:[\"number\",\"number\",\"number\",\"number\"],value:[0,0,0,0]},{name:\"strokeWidth\",op:1208,type:\"number\",value:0},{name:\"xuid\",op:14,type:[],value:null},{name:\"charset\",op:15,type:\"offset\",value:0},{name:\"encoding\",op:16,type:\"offset\",value:0},{name:\"charStrings\",op:17,type:\"offset\",value:0},{name:\"private\",op:18,type:[\"number\",\"offset\"],value:[0,0]},{name:\"ros\",op:1230,type:[\"SID\",\"SID\",\"number\"]},{name:\"cidFontVersion\",op:1231,type:\"number\",value:0},{name:\"cidFontRevision\",op:1232,type:\"number\",value:0},{name:\"cidFontType\",op:1233,type:\"number\",value:0},{name:\"cidCount\",op:1234,type:\"number\",value:8720},{name:\"uidBase\",op:1235,type:\"number\"},{name:\"fdArray\",op:1236,type:\"offset\"},{name:\"fdSelect\",op:1237,type:\"offset\"},{name:\"fontName\",op:1238,type:\"SID\"}],ke=[{name:\"subrs\",op:19,type:\"offset\",value:0},{name:\"defaultWidthX\",op:20,type:\"number\",value:0},{name:\"nominalWidthX\",op:21,type:\"number\",value:0}];function Re(e,t,r,i){return Pe(Te(e,t,r),ke,i)}function Oe(e,t,r,i){for(var n,o,a=[],s=0;s<r.length;s+=1){var l=new DataView(new Uint8Array(r[s]).buffer),u=(o=i,Pe(Te(n=l,0,n.byteLength),Le,o));u._subrs=[],u._subrsBias=0;var h=u.private[0],c=u.private[1];if(0!==h&&0!==c){var f=Re(e,c+t,h,i);if(u._defaultWidthX=f.defaultWidthX,u._nominalWidthX=f.nominalWidthX,0!==f.subrs){var d=Me(e,c+f.subrs+t);u._subrs=d.objects,u._subrsBias=Se(u._subrs)}u._privateDict=f}a.push(u)}return a}function De(g,v,e){var y,b,_,x,w,S,t,M,E=new I,T=[],C=0,P=!1,L=!1,k=0,R=0;if(g.isCIDFont){var r=g.tables.cff.topDict._fdSelect[v.index],i=g.tables.cff.topDict._fdArray[r];w=i._subrs,S=i._subrsBias,t=i._defaultWidthX,M=i._nominalWidthX}else w=g.tables.cff.topDict._subrs,S=g.tables.cff.topDict._subrsBias,t=g.tables.cff.topDict._defaultWidthX,M=g.tables.cff.topDict._nominalWidthX;var O=t;function D(e,t){L&&E.closePath(),E.moveTo(e,t),L=!0}function A(){T.length%2==0||P||(O=T.shift()+M),C+=T.length>>1,T.length=0,P=!0}return function e(t){for(var r,i,n,o,a,s,l,u,h,c,f,d,p=0;p<t.length;){var m=t[p];switch(p+=1,m){case 1:case 3:A();break;case 4:1<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k,R);break;case 5:for(;0<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 6:for(;0<T.length&&(k+=T.shift(),E.lineTo(k,R),0!==T.length);)R+=T.shift(),E.lineTo(k,R);break;case 7:for(;0<T.length&&(R+=T.shift(),E.lineTo(k,R),0!==T.length);)k+=T.shift(),E.lineTo(k,R);break;case 8:for(;0<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 10:a=T.pop()+S,(s=w[a])&&e(s);break;case 11:return;case 12:switch(m=t[p],p+=1,m){case 35:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),R=d+T.shift(),T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 34:y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=R,k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 36:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x,h=l+T.shift(),c=x,f=h+T.shift(),d=c+T.shift(),k=f+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;case 37:y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),l=_+T.shift(),u=x+T.shift(),h=l+T.shift(),c=u+T.shift(),f=h+T.shift(),d=c+T.shift(),Math.abs(f-k)>Math.abs(d-R)?k=f+T.shift():R=d+T.shift(),E.curveTo(y,b,_,x,l,u),E.curveTo(h,c,f,d,k,R);break;default:console.log(\"Glyph \"+v.index+\": unknown operator 1200\"+m),T.length=0}break;case 14:0<T.length&&!P&&(O=T.shift()+M,P=!0),L&&(E.closePath(),L=!1);break;case 18:A();break;case 19:case 20:A(),p+=C+7>>3;break;case 21:2<T.length&&!P&&(O=T.shift()+M,P=!0),R+=T.pop(),D(k+=T.pop(),R);break;case 22:1<T.length&&!P&&(O=T.shift()+M,P=!0),D(k+=T.pop(),R);break;case 23:A();break;case 24:for(;2<T.length;)y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);k+=T.shift(),R+=T.shift(),E.lineTo(k,R);break;case 25:for(;6<T.length;)k+=T.shift(),R+=T.shift(),E.lineTo(k,R);y=k+T.shift(),b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 26:for(T.length%2&&(k+=T.shift());0<T.length;)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_,R=x+T.shift(),E.curveTo(y,b,_,x,k,R);break;case 27:for(T.length%2&&(R+=T.shift());0<T.length;)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x,E.curveTo(y,b,_,x,k,R);break;case 28:r=t[p],i=t[p+1],T.push((r<<24|i<<16)>>16),p+=2;break;case 29:a=T.pop()+g.gsubrsBias,(s=g.gsubrs[a])&&e(s);break;case 30:for(;0<T.length&&(y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;case 31:for(;0<T.length&&(y=k+T.shift(),b=R,_=y+T.shift(),x=b+T.shift(),R=x+T.shift(),k=_+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R),0!==T.length);)y=k,b=R+T.shift(),_=y+T.shift(),x=b+T.shift(),k=_+T.shift(),R=x+(1===T.length?T.shift():0),E.curveTo(y,b,_,x,k,R);break;default:m<32?console.log(\"Glyph \"+v.index+\": unknown operator \"+m):m<247?T.push(m-139):m<251?(r=t[p],p+=1,T.push(256*(m-247)+r+108)):m<255?(r=t[p],p+=1,T.push(256*-(m-251)-r-108)):(r=t[p],i=t[p+1],n=t[p+2],o=t[p+3],p+=4,T.push((r<<24|i<<16|n<<8|o)/65536))}}}(e),v.advanceWidth=O,E}function Ae(e,t){var r,i=ue.indexOf(e);return 0<=i&&(r=i),0<=(i=t.indexOf(e))?r=i+ue.length:(r=ue.length+t.length,t.push(e)),r}function Ie(e,t,r){for(var i={},n=0;n<e.length;n+=1){var o=e[n],a=t[o.name];void 0===a||we(a,o.value)||(\"SID\"===o.type&&(a=Ae(a,r)),i[o.op]={name:o.name,type:o.type,value:a})}return i}function Ue(e,t){var r=new $.Record(\"Top DICT\",[{name:\"dict\",type:\"DICT\",value:{}}]);return r.dict=Ie(Le,e,t),r}function Ne(e){var t=new $.Record(\"Top DICT INDEX\",[{name:\"topDicts\",type:\"INDEX\",value:[]}]);return t.topDicts=[{name:\"topDict_0\",type:\"TABLE\",value:e}],t}function Fe(e){var t=[],r=e.path;t.push({name:\"width\",type:\"NUMBER\",value:e.advanceWidth});for(var i=0,n=0,o=0;o<r.commands.length;o+=1){var a=void 0,s=void 0,l=r.commands[o];if(\"Q\"===l.type){l={type:\"C\",x:l.x,y:l.y,x1:1/3*i+2/3*l.x1,y1:1/3*n+2/3*l.y1,x2:1/3*l.x+2/3*l.x1,y2:1/3*l.y+2/3*l.y1}}if(\"M\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rmoveto\",type:\"OP\",value:21}),i=Math.round(l.x),n=Math.round(l.y);else if(\"L\"===l.type)a=Math.round(l.x-i),s=Math.round(l.y-n),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rlineto\",type:\"OP\",value:5}),i=Math.round(l.x),n=Math.round(l.y);else if(\"C\"===l.type){var u=Math.round(l.x1-i),h=Math.round(l.y1-n),c=Math.round(l.x2-l.x1),f=Math.round(l.y2-l.y1);a=Math.round(l.x-l.x2),s=Math.round(l.y-l.y2),t.push({name:\"dx1\",type:\"NUMBER\",value:u}),t.push({name:\"dy1\",type:\"NUMBER\",value:h}),t.push({name:\"dx2\",type:\"NUMBER\",value:c}),t.push({name:\"dy2\",type:\"NUMBER\",value:f}),t.push({name:\"dx\",type:\"NUMBER\",value:a}),t.push({name:\"dy\",type:\"NUMBER\",value:s}),t.push({name:\"rrcurveto\",type:\"OP\",value:8}),i=Math.round(l.x),n=Math.round(l.y)}}return t.push({name:\"endchar\",type:\"OP\",value:14}),t}var Be={parse:function(e,t,r){r.tables.cff={};var i,n,o,a=Me(e,(i=e,n=t,(o={}).formatMajor=se.getCard8(i,n),o.formatMinor=se.getCard8(i,n+1),o.size=se.getCard8(i,n+2),o.offsetSize=se.getCard8(i,n+3),o.startOffset=n,o.endOffset=n+4,o).endOffset,se.bytesToString),s=Me(e,a.endOffset),l=Me(e,s.endOffset,se.bytesToString),u=Me(e,l.endOffset);r.gsubrs=u.objects,r.gsubrsBias=Se(r.gsubrs);var h=Oe(e,t,s.objects,l.objects);if(1!==h.length)throw new Error(\"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \"+h.length);var c=h[0];if((r.tables.cff.topDict=c)._privateDict&&(r.defaultWidthX=c._privateDict.defaultWidthX,r.nominalWidthX=c._privateDict.nominalWidthX),void 0!==c.ros[0]&&void 0!==c.ros[1]&&(r.isCIDFont=!0),r.isCIDFont){var f=c.fdArray,d=c.fdSelect;if(0===f||0===d)throw new Error(\"Font is marked as a CID font, but FDArray and/or FDSelect information is missing\");var p=Oe(e,t,Me(e,f+=t).objects,l.objects);c._fdArray=p,d+=t,c._fdSelect=function(e,t,r,i){var n,o=[],a=new se.Parser(e,t),s=a.parseCard8();if(0===s)for(var l=0;l<r;l++){if(i<=(n=a.parseCard8()))throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");o.push(n)}else{if(3!==s)throw new Error(\"CFF Table CID Font FDSelect table has unsupported format \"+s);var u,h=a.parseCard16(),c=a.parseCard16();if(0!==c)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad initial GID \"+c);for(var f=0;f<h;f++){if(n=a.parseCard8(),u=a.parseCard16(),i<=n)throw new Error(\"CFF table CID Font FDSelect has bad FD index value \"+n+\" (FD count \"+i+\")\");if(r<u)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad GID \"+u);for(;c<u;c++)o.push(n);c=u}if(u!==r)throw new Error(\"CFF Table CID Font FDSelect format 3 range has bad final GID \"+u)}return o}(e,d,r.numGlyphs,p.length)}var m=t+c.private[1],g=Re(e,m,c.private[0],l.objects);if(r.defaultWidthX=g.defaultWidthX,r.nominalWidthX=g.nominalWidthX,0!==g.subrs){var v=Me(e,m+g.subrs);r.subrs=v.objects,r.subrsBias=Se(r.subrs)}else r.subrs=[],r.subrsBias=0;var y=Me(e,t+c.charStrings);r.nGlyphs=y.objects.length;var b=function(e,t,r,i){var n,o,a=new se.Parser(e,t);--r;var s=[\".notdef\"],l=a.parseCard8();if(0===l)for(var u=0;u<r;u+=1)n=a.parseSID(),s.push(Ce(i,n));else if(1===l)for(;s.length<=r;){n=a.parseSID(),o=a.parseCard8();for(var h=0;h<=o;h+=1)s.push(Ce(i,n)),n+=1}else{if(2!==l)throw new Error(\"Unknown charset format \"+l);for(;s.length<=r;){n=a.parseSID(),o=a.parseCard16();for(var c=0;c<=o;c+=1)s.push(Ce(i,n)),n+=1}}return s}(e,t+c.charset,r.nGlyphs,l.objects);0===c.encoding?r.cffEncoding=new me(he,b):1===c.encoding?r.cffEncoding=new me(ce,b):r.cffEncoding=function(e,t,r){var i,n={},o=new se.Parser(e,t),a=o.parseCard8();if(0===a)for(var s=o.parseCard8(),l=0;l<s;l+=1)n[i=o.parseCard8()]=l;else{if(1!==a)throw new Error(\"Unknown encoding format \"+a);var u=o.parseCard8();i=1;for(var h=0;h<u;h+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)n[d]=i,i+=1}return new me(n,r)}(e,t+c.encoding,b),r.encoding=r.encoding||r.cffEncoding,r.glyphs=new xe.GlyphSet(r);for(var _=0;_<r.nGlyphs;_+=1){var x=y.objects[_];r.glyphs.push(_,xe.cffGlyphLoader(r,_,De,x))}},make:function(e,t){for(var r,i=new $.Table(\"CFF \",[{name:\"header\",type:\"RECORD\"},{name:\"nameIndex\",type:\"RECORD\"},{name:\"topDictIndex\",type:\"RECORD\"},{name:\"stringIndex\",type:\"RECORD\"},{name:\"globalSubrIndex\",type:\"RECORD\"},{name:\"charsets\",type:\"RECORD\"},{name:\"charStringsIndex\",type:\"RECORD\"},{name:\"privateDict\",type:\"RECORD\"}]),n=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,private:[0,999]},a=[],s=1;s<e.length;s+=1)r=e.get(s),a.push(r.name);var l=[];i.header=new $.Record(\"Header\",[{name:\"major\",type:\"Card8\",value:1},{name:\"minor\",type:\"Card8\",value:0},{name:\"hdrSize\",type:\"Card8\",value:4},{name:\"major\",type:\"Card8\",value:1}]),i.nameIndex=function(e){var t=new $.Record(\"Name INDEX\",[{name:\"names\",type:\"INDEX\",value:[]}]);t.names=[];for(var r=0;r<e.length;r+=1)t.names.push({name:\"name_\"+r,type:\"NAME\",value:e[r]});return t}([t.postScriptName]);var u,h,c,f=Ue(o,l);i.topDictIndex=Ne(f),i.globalSubrIndex=new $.Record(\"Global Subr INDEX\",[{name:\"subrs\",type:\"INDEX\",value:[]}]),i.charsets=function(e,t){for(var r=new $.Record(\"Charsets\",[{name:\"format\",type:\"Card8\",value:0}]),i=0;i<e.length;i+=1){var n=Ae(e[i],t);r.fields.push({name:\"glyph_\"+i,type:\"SID\",value:n})}return r}(a,l),i.charStringsIndex=function(e){for(var t=new $.Record(\"CharStrings INDEX\",[{name:\"charStrings\",type:\"INDEX\",value:[]}]),r=0;r<e.length;r+=1){var i=e.get(r),n=Fe(i);t.charStrings.push({name:i.name,type:\"CHARSTRING\",value:n})}return t}(e),i.privateDict=(u={},h=l,(c=new $.Record(\"Private DICT\",[{name:\"dict\",type:\"DICT\",value:{}}])).dict=Ie(ke,u,h),c),i.stringIndex=function(e){var t=new $.Record(\"String INDEX\",[{name:\"strings\",type:\"INDEX\",value:[]}]);t.strings=[];for(var r=0;r<e.length;r+=1)t.strings.push({name:\"string_\"+r,type:\"STRING\",value:e[r]});return t}(l);var d=i.header.sizeOf()+i.nameIndex.sizeOf()+i.topDictIndex.sizeOf()+i.stringIndex.sizeOf()+i.globalSubrIndex.sizeOf();return o.charset=d,o.encoding=0,o.charStrings=o.charset+i.charsets.sizeOf(),o.private[1]=o.charStrings+i.charStringsIndex.sizeOf(),f=Ue(o,l),i.topDictIndex=Ne(f),i}};var Ge={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.fontRevision=Math.round(1e3*i.parseFixed())/1e3,r.checkSumAdjustment=i.parseULong(),r.magicNumber=i.parseULong(),k.argument(1594834165===r.magicNumber,\"Font header has wrong magic number.\"),r.flags=i.parseUShort(),r.unitsPerEm=i.parseUShort(),r.created=i.parseLongDateTime(),r.modified=i.parseLongDateTime(),r.xMin=i.parseShort(),r.yMin=i.parseShort(),r.xMax=i.parseShort(),r.yMax=i.parseShort(),r.macStyle=i.parseUShort(),r.lowestRecPPEM=i.parseUShort(),r.fontDirectionHint=i.parseShort(),r.indexToLocFormat=i.parseShort(),r.glyphDataFormat=i.parseShort(),r},make:function(e){var t=Math.round((new Date).getTime()/1e3)+2082844800,r=t;return e.createdTimestamp&&(r=e.createdTimestamp+2082844800),new $.Table(\"head\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"fontRevision\",type:\"FIXED\",value:65536},{name:\"checkSumAdjustment\",type:\"ULONG\",value:0},{name:\"magicNumber\",type:\"ULONG\",value:1594834165},{name:\"flags\",type:\"USHORT\",value:0},{name:\"unitsPerEm\",type:\"USHORT\",value:1e3},{name:\"created\",type:\"LONGDATETIME\",value:r},{name:\"modified\",type:\"LONGDATETIME\",value:t},{name:\"xMin\",type:\"SHORT\",value:0},{name:\"yMin\",type:\"SHORT\",value:0},{name:\"xMax\",type:\"SHORT\",value:0},{name:\"yMax\",type:\"SHORT\",value:0},{name:\"macStyle\",type:\"USHORT\",value:0},{name:\"lowestRecPPEM\",type:\"USHORT\",value:0},{name:\"fontDirectionHint\",type:\"SHORT\",value:2},{name:\"indexToLocFormat\",type:\"SHORT\",value:0},{name:\"glyphDataFormat\",type:\"SHORT\",value:0}],e)}};var je={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.ascender=i.parseShort(),r.descender=i.parseShort(),r.lineGap=i.parseShort(),r.advanceWidthMax=i.parseUShort(),r.minLeftSideBearing=i.parseShort(),r.minRightSideBearing=i.parseShort(),r.xMaxExtent=i.parseShort(),r.caretSlopeRise=i.parseShort(),r.caretSlopeRun=i.parseShort(),r.caretOffset=i.parseShort(),i.relativeOffset+=8,r.metricDataFormat=i.parseShort(),r.numberOfHMetrics=i.parseUShort(),r},make:function(e){return new $.Table(\"hhea\",[{name:\"version\",type:\"FIXED\",value:65536},{name:\"ascender\",type:\"FWORD\",value:0},{name:\"descender\",type:\"FWORD\",value:0},{name:\"lineGap\",type:\"FWORD\",value:0},{name:\"advanceWidthMax\",type:\"UFWORD\",value:0},{name:\"minLeftSideBearing\",type:\"FWORD\",value:0},{name:\"minRightSideBearing\",type:\"FWORD\",value:0},{name:\"xMaxExtent\",type:\"FWORD\",value:0},{name:\"caretSlopeRise\",type:\"SHORT\",value:1},{name:\"caretSlopeRun\",type:\"SHORT\",value:0},{name:\"caretOffset\",type:\"SHORT\",value:0},{name:\"reserved1\",type:\"SHORT\",value:0},{name:\"reserved2\",type:\"SHORT\",value:0},{name:\"reserved3\",type:\"SHORT\",value:0},{name:\"reserved4\",type:\"SHORT\",value:0},{name:\"metricDataFormat\",type:\"SHORT\",value:0},{name:\"numberOfHMetrics\",type:\"USHORT\",value:0}],e)}};var Ve={parse:function(e,t,r,i,n){for(var o,a,s=new se.Parser(e,t),l=0;l<i;l+=1){l<r&&(o=s.parseUShort(),a=s.parseShort());var u=n.get(l);u.advanceWidth=o,u.leftSideBearing=a}},make:function(e){for(var t=new $.Table(\"hmtx\",[]),r=0;r<e.length;r+=1){var i=e.get(r),n=i.advanceWidth||0,o=i.leftSideBearing||0;t.fields.push({name:\"advanceWidth_\"+r,type:\"USHORT\",value:n}),t.fields.push({name:\"leftSideBearing_\"+r,type:\"SHORT\",value:o})}return t}};var ze={make:function(e){for(var t=new $.Table(\"ltag\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"numTags\",type:\"ULONG\",value:e.length}]),r=\"\",i=12+4*e.length,n=0;n<e.length;++n){var o=r.indexOf(e[n]);o<0&&(o=r.length,r+=e[n]),t.fields.push({name:\"offset \"+n,type:\"USHORT\",value:i+o}),t.fields.push({name:\"length \"+n,type:\"USHORT\",value:e[n].length})}return t.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),t},parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported ltag table version.\"),r.skip(\"uLong\",1);for(var n=r.parseULong(),o=[],a=0;a<n;a++){for(var s=\"\",l=t+r.parseUShort(),u=r.parseUShort(),h=l;h<l+u;++h)s+=String.fromCharCode(e.getInt8(h));o.push(s)}return o}};var He={parse:function(e,t){var r={},i=new se.Parser(e,t);return r.version=i.parseVersion(),r.numGlyphs=i.parseUShort(),1===r.version&&(r.maxPoints=i.parseUShort(),r.maxContours=i.parseUShort(),r.maxCompositePoints=i.parseUShort(),r.maxCompositeContours=i.parseUShort(),r.maxZones=i.parseUShort(),r.maxTwilightPoints=i.parseUShort(),r.maxStorage=i.parseUShort(),r.maxFunctionDefs=i.parseUShort(),r.maxInstructionDefs=i.parseUShort(),r.maxStackElements=i.parseUShort(),r.maxSizeOfInstructions=i.parseUShort(),r.maxComponentElements=i.parseUShort(),r.maxComponentDepth=i.parseUShort()),r},make:function(e){return new $.Table(\"maxp\",[{name:\"version\",type:\"FIXED\",value:20480},{name:\"numGlyphs\",type:\"USHORT\",value:e}])}},We=[\"copyright\",\"fontFamily\",\"fontSubfamily\",\"uniqueID\",\"fullName\",\"version\",\"postScriptName\",\"trademark\",\"manufacturer\",\"designer\",\"description\",\"manufacturerURL\",\"designerURL\",\"license\",\"licenseURL\",\"reserved\",\"preferredFamily\",\"preferredSubfamily\",\"compatibleFullName\",\"sampleText\",\"postScriptFindFontName\",\"wwsFamily\",\"wwsSubfamily\"],Xe={0:\"en\",1:\"fr\",2:\"de\",3:\"it\",4:\"nl\",5:\"sv\",6:\"es\",7:\"da\",8:\"pt\",9:\"no\",10:\"he\",11:\"ja\",12:\"ar\",13:\"fi\",14:\"el\",15:\"is\",16:\"mt\",17:\"tr\",18:\"hr\",19:\"zh-Hant\",20:\"ur\",21:\"hi\",22:\"th\",23:\"ko\",24:\"lt\",25:\"pl\",26:\"hu\",27:\"es\",28:\"lv\",29:\"se\",30:\"fo\",31:\"fa\",32:\"ru\",33:\"zh\",34:\"nl-BE\",35:\"ga\",36:\"sq\",37:\"ro\",38:\"cz\",39:\"sk\",40:\"si\",41:\"yi\",42:\"sr\",43:\"mk\",44:\"bg\",45:\"uk\",46:\"be\",47:\"uz\",48:\"kk\",49:\"az-Cyrl\",50:\"az-Arab\",51:\"hy\",52:\"ka\",53:\"mo\",54:\"ky\",55:\"tg\",56:\"tk\",57:\"mn-CN\",58:\"mn\",59:\"ps\",60:\"ks\",61:\"ku\",62:\"sd\",63:\"bo\",64:\"ne\",65:\"sa\",66:\"mr\",67:\"bn\",68:\"as\",69:\"gu\",70:\"pa\",71:\"or\",72:\"ml\",73:\"kn\",74:\"ta\",75:\"te\",76:\"si\",77:\"my\",78:\"km\",79:\"lo\",80:\"vi\",81:\"id\",82:\"tl\",83:\"ms\",84:\"ms-Arab\",85:\"am\",86:\"ti\",87:\"om\",88:\"so\",89:\"sw\",90:\"rw\",91:\"rn\",92:\"ny\",93:\"mg\",94:\"eo\",128:\"cy\",129:\"eu\",130:\"ca\",131:\"la\",132:\"qu\",133:\"gn\",134:\"ay\",135:\"tt\",136:\"ug\",137:\"dz\",138:\"jv\",139:\"su\",140:\"gl\",141:\"af\",142:\"br\",143:\"iu\",144:\"gd\",145:\"gv\",146:\"ga\",147:\"to\",148:\"el-polyton\",149:\"kl\",150:\"az\",151:\"nn\"},qe={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},Ye={1078:\"af\",1052:\"sq\",1156:\"gsw\",1118:\"am\",5121:\"ar-DZ\",15361:\"ar-BH\",3073:\"ar\",2049:\"ar-IQ\",11265:\"ar-JO\",13313:\"ar-KW\",12289:\"ar-LB\",4097:\"ar-LY\",6145:\"ary\",8193:\"ar-OM\",16385:\"ar-QA\",1025:\"ar-SA\",10241:\"ar-SY\",7169:\"aeb\",14337:\"ar-AE\",9217:\"ar-YE\",1067:\"hy\",1101:\"as\",2092:\"az-Cyrl\",1068:\"az\",1133:\"ba\",1069:\"eu\",1059:\"be\",2117:\"bn\",1093:\"bn-IN\",8218:\"bs-Cyrl\",5146:\"bs\",1150:\"br\",1026:\"bg\",1027:\"ca\",3076:\"zh-HK\",5124:\"zh-MO\",2052:\"zh\",4100:\"zh-SG\",1028:\"zh-TW\",1155:\"co\",1050:\"hr\",4122:\"hr-BA\",1029:\"cs\",1030:\"da\",1164:\"prs\",1125:\"dv\",2067:\"nl-BE\",1043:\"nl\",3081:\"en-AU\",10249:\"en-BZ\",4105:\"en-CA\",9225:\"en-029\",16393:\"en-IN\",6153:\"en-IE\",8201:\"en-JM\",17417:\"en-MY\",5129:\"en-NZ\",13321:\"en-PH\",18441:\"en-SG\",7177:\"en-ZA\",11273:\"en-TT\",2057:\"en-GB\",1033:\"en\",12297:\"en-ZW\",1061:\"et\",1080:\"fo\",1124:\"fil\",1035:\"fi\",2060:\"fr-BE\",3084:\"fr-CA\",1036:\"fr\",5132:\"fr-LU\",6156:\"fr-MC\",4108:\"fr-CH\",1122:\"fy\",1110:\"gl\",1079:\"ka\",3079:\"de-AT\",1031:\"de\",5127:\"de-LI\",4103:\"de-LU\",2055:\"de-CH\",1032:\"el\",1135:\"kl\",1095:\"gu\",1128:\"ha\",1037:\"he\",1081:\"hi\",1038:\"hu\",1039:\"is\",1136:\"ig\",1057:\"id\",1117:\"iu\",2141:\"iu-Latn\",2108:\"ga\",1076:\"xh\",1077:\"zu\",1040:\"it\",2064:\"it-CH\",1041:\"ja\",1099:\"kn\",1087:\"kk\",1107:\"km\",1158:\"quc\",1159:\"rw\",1089:\"sw\",1111:\"kok\",1042:\"ko\",1088:\"ky\",1108:\"lo\",1062:\"lv\",1063:\"lt\",2094:\"dsb\",1134:\"lb\",1071:\"mk\",2110:\"ms-BN\",1086:\"ms\",1100:\"ml\",1082:\"mt\",1153:\"mi\",1146:\"arn\",1102:\"mr\",1148:\"moh\",1104:\"mn\",2128:\"mn-CN\",1121:\"ne\",1044:\"nb\",2068:\"nn\",1154:\"oc\",1096:\"or\",1123:\"ps\",1045:\"pl\",1046:\"pt\",2070:\"pt-PT\",1094:\"pa\",1131:\"qu-BO\",2155:\"qu-EC\",3179:\"qu\",1048:\"ro\",1047:\"rm\",1049:\"ru\",9275:\"smn\",4155:\"smj-NO\",5179:\"smj\",3131:\"se-FI\",1083:\"se\",2107:\"se-SE\",8251:\"sms\",6203:\"sma-NO\",7227:\"sms\",1103:\"sa\",7194:\"sr-Cyrl-BA\",3098:\"sr\",6170:\"sr-Latn-BA\",2074:\"sr-Latn\",1132:\"nso\",1074:\"tn\",1115:\"si\",1051:\"sk\",1060:\"sl\",11274:\"es-AR\",16394:\"es-BO\",13322:\"es-CL\",9226:\"es-CO\",5130:\"es-CR\",7178:\"es-DO\",12298:\"es-EC\",17418:\"es-SV\",4106:\"es-GT\",18442:\"es-HN\",2058:\"es-MX\",19466:\"es-NI\",6154:\"es-PA\",15370:\"es-PY\",10250:\"es-PE\",20490:\"es-PR\",3082:\"es\",1034:\"es\",21514:\"es-US\",14346:\"es-UY\",8202:\"es-VE\",2077:\"sv-FI\",1053:\"sv\",1114:\"syr\",1064:\"tg\",2143:\"tzm\",1097:\"ta\",1092:\"tt\",1098:\"te\",1054:\"th\",1105:\"bo\",1055:\"tr\",1090:\"tk\",1152:\"ug\",1058:\"uk\",1070:\"hsb\",1056:\"ur\",2115:\"uz-Cyrl\",1091:\"uz\",1066:\"vi\",1106:\"cy\",1160:\"wo\",1157:\"sah\",1144:\"ii\",1130:\"yo\"};function Ze(e,t,r){switch(e){case 0:if(65535===t)return\"und\";if(r)return r[t];break;case 1:return Xe[t];case 3:return Ye[t]}}var Qe=\"utf-16\",Ke={0:\"macintosh\",1:\"x-mac-japanese\",2:\"x-mac-chinesetrad\",3:\"x-mac-korean\",6:\"x-mac-greek\",7:\"x-mac-cyrillic\",9:\"x-mac-devanagai\",10:\"x-mac-gurmukhi\",11:\"x-mac-gujarati\",12:\"x-mac-oriya\",13:\"x-mac-bengali\",14:\"x-mac-tamil\",15:\"x-mac-telugu\",16:\"x-mac-kannada\",17:\"x-mac-malayalam\",18:\"x-mac-sinhalese\",19:\"x-mac-burmese\",20:\"x-mac-khmer\",21:\"x-mac-thai\",22:\"x-mac-lao\",23:\"x-mac-georgian\",24:\"x-mac-armenian\",25:\"x-mac-chinesesimp\",26:\"x-mac-tibetan\",27:\"x-mac-mongolian\",28:\"x-mac-ethiopic\",29:\"x-mac-ce\",30:\"x-mac-vietnamese\",31:\"x-mac-extarabic\"},Je={15:\"x-mac-icelandic\",17:\"x-mac-turkish\",18:\"x-mac-croatian\",24:\"x-mac-ce\",25:\"x-mac-ce\",26:\"x-mac-ce\",27:\"x-mac-ce\",28:\"x-mac-ce\",30:\"x-mac-icelandic\",37:\"x-mac-romanian\",38:\"x-mac-ce\",39:\"x-mac-ce\",40:\"x-mac-ce\",143:\"x-mac-inuit\",146:\"x-mac-gaelic\"};function $e(e,t,r){switch(e){case 0:return Qe;case 1:return Je[r]||Ke[t];case 3:if(1===t||10===t)return Qe}}function et(e){var t={};for(var r in e)t[e[r]]=parseInt(r);return t}function tt(e,t,r,i,n,o){return new $.Record(\"NameRecord\",[{name:\"platformID\",type:\"USHORT\",value:e},{name:\"encodingID\",type:\"USHORT\",value:t},{name:\"languageID\",type:\"USHORT\",value:r},{name:\"nameID\",type:\"USHORT\",value:i},{name:\"length\",type:\"USHORT\",value:n},{name:\"offset\",type:\"USHORT\",value:o}])}function rt(e,t){var r=function(e,t){var r=e.length,i=t.length-r+1;e:for(var n=0;n<i;n++)for(;n<i;n++){for(var o=0;o<r;o++)if(t[n+o]!==e[o])continue e;return n}return-1}(e,t);if(r<0){r=t.length;for(var i=0,n=e.length;i<n;++i)t.push(e[i])}return r}var it={parse:function(e,t,r){for(var i={},n=new se.Parser(e,t),o=n.parseUShort(),a=n.parseUShort(),s=n.offset+n.parseUShort(),l=0;l<a;l++){var u=n.parseUShort(),h=n.parseUShort(),c=n.parseUShort(),f=n.parseUShort(),d=We[f]||f,p=n.parseUShort(),m=n.parseUShort(),g=Ze(u,c,r),v=$e(u,h,c);if(void 0!==v&&void 0!==g){var y=void 0;if(y=v===Qe?O.UTF16(e,s+m,p):O.MACSTRING(e,s+m,p,v)){var b=i[d];void 0===b&&(b=i[d]={}),b[g]=y}}}return 1===o&&n.parseUShort(),i},make:function(e,t){var r,i=[],n={},o=et(We);for(var a in e){var s=o[a];if(void 0===s&&(s=a),r=parseInt(s),isNaN(r))throw new Error('Name table entry \"'+a+'\" does not exist, see nameTableNames for complete list.');n[r]=e[a],i.push(r)}for(var l=et(Xe),u=et(Ye),h=[],c=[],f=0;f<i.length;f++){var d=n[r=i[f]];for(var p in d){var m=d[p],g=1,v=l[p],y=qe[v],b=$e(g,y,v),_=D.MACSTRING(m,b);void 0===_&&(g=0,(v=t.indexOf(p))<0&&(v=t.length,t.push(p)),y=4,_=D.UTF16(m));var x=rt(_,c);h.push(tt(g,y,v,r,_.length,x));var w=u[p];if(void 0!==w){var S=D.UTF16(m),M=rt(S,c);h.push(tt(3,1,w,r,S.length,M))}}}h.sort(function(e,t){return e.platformID-t.platformID||e.encodingID-t.encodingID||e.languageID-t.languageID||e.nameID-t.nameID});for(var E=new $.Table(\"name\",[{name:\"format\",type:\"USHORT\",value:0},{name:\"count\",type:\"USHORT\",value:h.length},{name:\"stringOffset\",type:\"USHORT\",value:6+12*h.length}]),T=0;T<h.length;T++)E.fields.push({name:\"record_\"+T,type:\"RECORD\",value:h[T]});return E.fields.push({name:\"strings\",type:\"LITERAL\",value:c}),E}},nt=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];var ot={parse:function(e,t){var r={},i=new se.Parser(e,t);r.version=i.parseUShort(),r.xAvgCharWidth=i.parseShort(),r.usWeightClass=i.parseUShort(),r.usWidthClass=i.parseUShort(),r.fsType=i.parseUShort(),r.ySubscriptXSize=i.parseShort(),r.ySubscriptYSize=i.parseShort(),r.ySubscriptXOffset=i.parseShort(),r.ySubscriptYOffset=i.parseShort(),r.ySuperscriptXSize=i.parseShort(),r.ySuperscriptYSize=i.parseShort(),r.ySuperscriptXOffset=i.parseShort(),r.ySuperscriptYOffset=i.parseShort(),r.yStrikeoutSize=i.parseShort(),r.yStrikeoutPosition=i.parseShort(),r.sFamilyClass=i.parseShort(),r.panose=[];for(var n=0;n<10;n++)r.panose[n]=i.parseByte();return r.ulUnicodeRange1=i.parseULong(),r.ulUnicodeRange2=i.parseULong(),r.ulUnicodeRange3=i.parseULong(),r.ulUnicodeRange4=i.parseULong(),r.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),r.fsSelection=i.parseUShort(),r.usFirstCharIndex=i.parseUShort(),r.usLastCharIndex=i.parseUShort(),r.sTypoAscender=i.parseShort(),r.sTypoDescender=i.parseShort(),r.sTypoLineGap=i.parseShort(),r.usWinAscent=i.parseUShort(),r.usWinDescent=i.parseUShort(),1<=r.version&&(r.ulCodePageRange1=i.parseULong(),r.ulCodePageRange2=i.parseULong()),2<=r.version&&(r.sxHeight=i.parseShort(),r.sCapHeight=i.parseShort(),r.usDefaultChar=i.parseUShort(),r.usBreakChar=i.parseUShort(),r.usMaxContent=i.parseUShort()),r},make:function(e){return new $.Table(\"OS/2\",[{name:\"version\",type:\"USHORT\",value:3},{name:\"xAvgCharWidth\",type:\"SHORT\",value:0},{name:\"usWeightClass\",type:\"USHORT\",value:0},{name:\"usWidthClass\",type:\"USHORT\",value:0},{name:\"fsType\",type:\"USHORT\",value:0},{name:\"ySubscriptXSize\",type:\"SHORT\",value:650},{name:\"ySubscriptYSize\",type:\"SHORT\",value:699},{name:\"ySubscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySubscriptYOffset\",type:\"SHORT\",value:140},{name:\"ySuperscriptXSize\",type:\"SHORT\",value:650},{name:\"ySuperscriptYSize\",type:\"SHORT\",value:699},{name:\"ySuperscriptXOffset\",type:\"SHORT\",value:0},{name:\"ySuperscriptYOffset\",type:\"SHORT\",value:479},{name:\"yStrikeoutSize\",type:\"SHORT\",value:49},{name:\"yStrikeoutPosition\",type:\"SHORT\",value:258},{name:\"sFamilyClass\",type:\"SHORT\",value:0},{name:\"bFamilyType\",type:\"BYTE\",value:0},{name:\"bSerifStyle\",type:\"BYTE\",value:0},{name:\"bWeight\",type:\"BYTE\",value:0},{name:\"bProportion\",type:\"BYTE\",value:0},{name:\"bContrast\",type:\"BYTE\",value:0},{name:\"bStrokeVariation\",type:\"BYTE\",value:0},{name:\"bArmStyle\",type:\"BYTE\",value:0},{name:\"bLetterform\",type:\"BYTE\",value:0},{name:\"bMidline\",type:\"BYTE\",value:0},{name:\"bXHeight\",type:\"BYTE\",value:0},{name:\"ulUnicodeRange1\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange2\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange3\",type:\"ULONG\",value:0},{name:\"ulUnicodeRange4\",type:\"ULONG\",value:0},{name:\"achVendID\",type:\"CHARARRAY\",value:\"XXXX\"},{name:\"fsSelection\",type:\"USHORT\",value:0},{name:\"usFirstCharIndex\",type:\"USHORT\",value:0},{name:\"usLastCharIndex\",type:\"USHORT\",value:0},{name:\"sTypoAscender\",type:\"SHORT\",value:0},{name:\"sTypoDescender\",type:\"SHORT\",value:0},{name:\"sTypoLineGap\",type:\"SHORT\",value:0},{name:\"usWinAscent\",type:\"USHORT\",value:0},{name:\"usWinDescent\",type:\"USHORT\",value:0},{name:\"ulCodePageRange1\",type:\"ULONG\",value:0},{name:\"ulCodePageRange2\",type:\"ULONG\",value:0},{name:\"sxHeight\",type:\"SHORT\",value:0},{name:\"sCapHeight\",type:\"SHORT\",value:0},{name:\"usDefaultChar\",type:\"USHORT\",value:0},{name:\"usBreakChar\",type:\"USHORT\",value:0},{name:\"usMaxContext\",type:\"USHORT\",value:0}],e)},unicodeRanges:nt,getUnicodeRange:function(e){for(var t=0;t<nt.length;t+=1){var r=nt[t];if(e>=r.begin&&e<r.end)return t}return-1}};var at={parse:function(e,t){var r={},i=new se.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=fe.slice();break;case 2:r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs);for(var n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();r.names=[];for(var o=0;o<r.numberOfGlyphs;o++)if(r.glyphNameIndex[o]>=fe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;s<r.numberOfGlyphs;s++)r.offset[s]=i.parseChar()}return r},make:function(){return new $.Table(\"post\",[{name:\"version\",type:\"FIXED\",value:196608},{name:\"italicAngle\",type:\"FIXED\",value:0},{name:\"underlinePosition\",type:\"FWORD\",value:0},{name:\"underlineThickness\",type:\"FWORD\",value:0},{name:\"isFixedPitch\",type:\"ULONG\",value:0},{name:\"minMemType42\",type:\"ULONG\",value:0},{name:\"maxMemType42\",type:\"ULONG\",value:0},{name:\"minMemType1\",type:\"ULONG\",value:0},{name:\"maxMemType1\",type:\"ULONG\",value:0}])}},st=new Array(9);st[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),deltaGlyphId:this.parseUShort()}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),substitute:this.parseOffset16List()}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 1 format must be 1 or 2.\")},st[2]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Multiple Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),sequences:this.parseListOfLists()}},st[3]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Alternate Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),alternateSets:this.parseListOfLists()}},st[4]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB ligature table identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var lt={sequenceIndex:oe.uShort,lookupListIndex:oe.uShort};st[5]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();if(1===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),ruleSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{input:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(2===t)return{substFormat:t,coverage:this.parsePointer(oe.coverage),classDef:this.parsePointer(oe.classDef),classSets:this.parseListOfLists(function(){var e=this.parseUShort(),t=this.parseUShort();return{classes:this.parseUShortList(e-1),lookupRecords:this.parseRecordList(t,lt)}})};if(3===t){var r=this.parseUShort(),i=this.parseUShort();return{substFormat:t,coverages:this.parseList(r,oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(i,lt)}}k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 5 format must be 1, 2 or 3.\")},st[6]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{substFormat:1,coverage:this.parsePointer(oe.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:2===t?{substFormat:2,coverage:this.parsePointer(oe.coverage),backtrackClassDef:this.parsePointer(oe.classDef),inputClassDef:this.parsePointer(oe.classDef),lookaheadClassDef:this.parsePointer(oe.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(lt)}})}:3===t?{substFormat:3,backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),inputCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),lookupRecords:this.parseRecordList(lt)}:void k.assert(!1,\"0x\"+e.toString(16)+\": lookup type 6 format must be 1, 2 or 3.\")},st[7]=function(){var e=this.parseUShort();k.argument(1===e,\"GSUB Extension Substitution subtable identifier-format must be 1\");var t=this.parseUShort(),r=new oe(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:t,extension:st[t].call(r)}},st[8]=function(){var e=this.parseUShort();return k.argument(1===e,\"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1\"),{substFormat:e,coverage:this.parsePointer(oe.coverage),backtrackCoverage:this.parseList(oe.pointer(oe.coverage)),lookaheadCoverage:this.parseList(oe.pointer(oe.coverage)),substitutes:this.parseUShortList()}};var ut=new Array(9);ut[1]=function(e){return 1===e.substFormat?new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)},{name:\"deltaGlyphID\",type:\"USHORT\",value:e.deltaGlyphId}]):new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:2},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.ushortList(\"substitute\",e.substitute)))},ut[3]=function(e){return k.assert(1===e.substFormat,\"Lookup type 3 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"altSet\",e.alternateSets,function(e){return new $.Table(\"alternateSetTable\",$.ushortList(\"alternate\",e))})))},ut[4]=function(e){return k.assert(1===e.substFormat,\"Lookup type 4 substFormat must be 1.\"),new $.Table(\"substitutionTable\",[{name:\"substFormat\",type:\"USHORT\",value:1},{name:\"coverage\",type:\"TABLE\",value:new $.Coverage(e.coverage)}].concat($.tableList(\"ligSet\",e.ligatureSets,function(e){return new $.Table(\"ligatureSetTable\",$.tableList(\"ligature\",e,function(e){return new $.Table(\"ligatureTable\",[{name:\"ligGlyph\",type:\"USHORT\",value:e.ligGlyph}].concat($.ushortList(\"component\",e.components,e.components.length+1)))}))})))};var ht={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GSUB table version.\"),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(st),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GSUB\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,ut)}])}};var ct={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseULong();k.argument(1===i,\"Unsupported META table version.\"),r.parseULong(),r.parseULong();for(var n=r.parseULong(),o={},a=0;a<n;a++){var s=r.parseTag(),l=r.parseULong(),u=r.parseULong(),h=O.UTF8(e,t+l,u);o[s]=h}return o},make:function(e){var t=Object.keys(e).length,r=\"\",i=16+12*t,n=new $.Table(\"meta\",[{name:\"version\",type:\"ULONG\",value:1},{name:\"flags\",type:\"ULONG\",value:0},{name:\"offset\",type:\"ULONG\",value:i},{name:\"numTags\",type:\"ULONG\",value:t}]);for(var o in e){var a=r.length;r+=e[o],n.fields.push({name:\"tag \"+o,type:\"TAG\",value:o}),n.fields.push({name:\"offset \"+o,type:\"ULONG\",value:i+a}),n.fields.push({name:\"length \"+o,type:\"ULONG\",value:e[o].length})}return n.fields.push({name:\"stringPool\",type:\"CHARARRAY\",value:r}),n}};function ft(e){return Math.log(e)/Math.log(2)|0}function dt(e){for(;e.length%4!=0;)e.push(0);for(var t=0,r=0;r<e.length;r+=4)t+=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3];return t%=Math.pow(2,32)}function pt(e,t,r,i){return new $.Record(\"Table Record\",[{name:\"tag\",type:\"TAG\",value:void 0!==e?e:\"\"},{name:\"checkSum\",type:\"ULONG\",value:void 0!==t?t:0},{name:\"offset\",type:\"ULONG\",value:void 0!==r?r:0},{name:\"length\",type:\"ULONG\",value:void 0!==i?i:0}])}function mt(e){var t=new $.Table(\"sfnt\",[{name:\"version\",type:\"TAG\",value:\"OTTO\"},{name:\"numTables\",type:\"USHORT\",value:0},{name:\"searchRange\",type:\"USHORT\",value:0},{name:\"entrySelector\",type:\"USHORT\",value:0},{name:\"rangeShift\",type:\"USHORT\",value:0}]);t.tables=e,t.numTables=e.length;var r=Math.pow(2,ft(t.numTables));t.searchRange=16*r,t.entrySelector=ft(r),t.rangeShift=16*t.numTables-t.searchRange;for(var i=[],n=[],o=t.sizeOf()+pt().sizeOf()*t.numTables;o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0});for(var a=0;a<e.length;a+=1){var s=e[a];k.argument(4===s.tableName.length,\"Table name\"+s.tableName+\" is invalid.\");var l=s.sizeOf(),u=pt(s.tableName,dt(s.encode()),o,l);for(i.push({name:u.tag+\" Table Record\",type:\"RECORD\",value:u}),n.push({name:s.tableName+\" table\",type:\"RECORD\",value:s}),o+=l,k.argument(!isNaN(o),\"Something went wrong calculating the offset.\");o%4!=0;)o+=1,n.push({name:\"padding\",type:\"BYTE\",value:0})}return i.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function gt(e,t,r){for(var i=0;i<t.length;i+=1){var n=e.charToGlyphIndex(t[i]);if(0<n)return e.glyphs.get(n).getMetrics()}return r}var vt={make:mt,fontToTable:function(e){for(var t,r=[],i=[],n=[],o=[],a=[],s=[],l=[],u=0,h=0,c=0,f=0,d=0,p=0;p<e.glyphs.length;p+=1){var m=e.glyphs.get(p),g=0|m.unicode;if(isNaN(m.advanceWidth))throw new Error(\"Glyph \"+m.name+\" (\"+p+\"): advanceWidth is not a number.\");(g<t||void 0===t)&&0<g&&(t=g),u<g&&(u=g);var v=ot.getUnicodeRange(g);if(v<32)h|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)f|=1<<v-64;else{if(!(v<123))throw new Error(\"Unicode ranges bits > 123 are reserved for internal usage\");d|=1<<v-96}if(\".notdef\"!==m.name){var y=m.getMetrics();r.push(y.xMin),i.push(y.yMin),n.push(y.xMax),o.push(y.yMax),s.push(y.leftSideBearing),l.push(y.rightSideBearing),a.push(m.advanceWidth)}}var b={xMin:Math.min.apply(null,r),yMin:Math.min.apply(null,i),xMax:Math.max.apply(null,n),yMax:Math.max.apply(null,o),advanceWidthMax:Math.max.apply(null,a),advanceWidthAvg:function(e){for(var t=0,r=0;r<e.length;r+=1)t+=e[r];return t/e.length}(a),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,l)};b.ascender=e.ascender,b.descender=e.descender;var _=Ge.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:b.xMin,yMin:b.yMin,xMax:b.xMax,yMax:b.yMax,lowestRecPPEM:3,createdTimestamp:e.createdTimestamp}),x=je.make({ascender:b.ascender,descender:b.descender,advanceWidthMax:b.advanceWidthMax,minLeftSideBearing:b.minLeftSideBearing,minRightSideBearing:b.minRightSideBearing,xMaxExtent:b.maxLeftSideBearing+(b.xMax-b.xMin),numberOfHMetrics:e.glyphs.length}),w=He.make(e.glyphs.length),S=ot.make({xAvgCharWidth:Math.round(b.advanceWidthAvg),usWeightClass:e.tables.os2.usWeightClass,usWidthClass:e.tables.os2.usWidthClass,usFirstCharIndex:t,usLastCharIndex:u,ulUnicodeRange1:h,ulUnicodeRange2:c,ulUnicodeRange3:f,ulUnicodeRange4:d,fsSelection:e.tables.os2.fsSelection,sTypoAscender:b.ascender,sTypoDescender:b.descender,sTypoLineGap:0,usWinAscent:b.yMax,usWinDescent:Math.abs(b.yMin),ulCodePageRange1:1,sxHeight:gt(e,\"xyvw\",{yMax:Math.round(b.ascender/2)}).yMax,sCapHeight:gt(e,\"HIKLEFJMNTZBDPRAGOQSUVWXY\",b).yMax,usDefaultChar:e.hasChar(\" \")?32:0,usBreakChar:e.hasChar(\" \")?32:0}),M=Ve.make(e.glyphs),E=le.make(e.glyphs),T=e.getEnglishName(\"fontFamily\"),C=e.getEnglishName(\"fontSubfamily\"),P=T+\" \"+C,L=e.getEnglishName(\"postScriptName\");L=L||T.replace(/\\s/g,\"\")+\"-\"+C;var k={};for(var R in e.names)k[R]=e.names[R];k.uniqueID||(k.uniqueID={en:e.getEnglishName(\"manufacturer\")+\":\"+P}),k.postScriptName||(k.postScriptName={en:L}),k.preferredFamily||(k.preferredFamily=e.names.fontFamily),k.preferredSubfamily||(k.preferredSubfamily=e.names.fontSubfamily);var O=[],D=it.make(k,O),A=0<O.length?ze.make(O):void 0,I=at.make(),U=Be.make(e.glyphs,{version:e.getEnglishName(\"version\"),fullName:P,familyName:T,weightName:C,postScriptName:L,unitsPerEm:e.unitsPerEm,fontBBox:[0,b.yMin,b.ascender,b.advanceWidthMax]}),N=e.metas&&0<Object.keys(e.metas).length?ct.make(e.metas):void 0,F=[_,x,w,S,D,E,I,U,M];A&&F.push(A),e.tables.gsub&&F.push(ht.make(e.tables.gsub)),N&&F.push(N);for(var B=mt(F),G=dt(B.encode()),j=B.fields,V=!1,z=0;z<j.length;z+=1)if(\"head table\"===j[z].name){j[z].value.checkSumAdjustment=2981146554-G,V=!0;break}if(!V)throw new Error(\"Could not find head table with checkSum to adjust.\");return B},computeCheckSum:dt};function yt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n].tag;if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function bt(e,t){for(var r=0,i=e.length-1;r<=i;){var n=r+i>>>1,o=e[n];if(o===t)return n;o<t?r=1+n:i=n-1}return-r-1}function _t(e,t){for(var r,i=0,n=e.length-1;i<=n;){var o=i+n>>>1,a=(r=e[o]).start;if(a===t)return r;a<t?i=1+o:n=o-1}if(0<i)return t>(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,\"gpos\")}function St(e){xt.call(this,e,\"gsub\")}function Mt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Et(e,t,r){for(var i=e.subtables,n=0;n<i.length;n++){var o=i[n];if(o.substFormat===t)return o}if(r)return i.push(r),r}function Tt(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;++i)r[i]=e[i];return t}function Ct(e,t){if(!e)throw t}function Pt(e,t,r,i,n){var o;return o=0<(t&i)?(o=e.parseByte(),0==(t&n)&&(o=-o),r+o):0<(t&n)?r:r+e.parseShort()}function Lt(e,t,r){var i,n,o=new se.Parser(t,r);if(e.numberOfContours=o.parseShort(),e._xMin=o.parseShort(),e._yMin=o.parseShort(),e._xMax=o.parseShort(),e._yMax=o.parseShort(),0<e.numberOfContours){for(var a=e.endPointIndices=[],s=0;s<e.numberOfContours;s+=1)a.push(o.parseUShort());e.instructionLength=o.parseUShort(),e.instructions=[];for(var l=0;l<e.instructionLength;l+=1)e.instructions.push(o.parseByte());var u=a[a.length-1]+1;i=[];for(var h=0;h<u;h+=1)if(n=o.parseByte(),i.push(n),0<(8&n))for(var c=o.parseByte(),f=0;f<c;f+=1)i.push(n),h+=1;if(k.argument(i.length===u,\"Bad flags.\"),0<a.length){var d,p=[];if(0<u){for(var m=0;m<u;m+=1)n=i[m],(d={}).onCurve=!!(1&n),d.lastPointOfContour=0<=a.indexOf(m),p.push(d);for(var g=0,v=0;v<u;v+=1)n=i[v],(d=p[v]).x=Pt(o,n,g,2,16),g=d.x;for(var y=0,b=0;b<u;b+=1)n=i[b],(d=p[b]).y=Pt(o,n,y,4,32),y=d.y}e.points=p}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var _=!0;_;){i=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};0<(1&i)?0<(2&i)?(x.dx=o.parseShort(),x.dy=o.parseShort()):x.matchedPoints=[o.parseUShort(),o.parseUShort()]:0<(2&i)?(x.dx=o.parseChar(),x.dy=o.parseChar()):x.matchedPoints=[o.parseByte(),o.parseByte()],0<(8&i)?x.xScale=x.yScale=o.parseF2Dot14():0<(64&i)?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):0<(128&i)&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),e.components.push(x),_=!!(32&i)}if(256&i){e.instructionLength=o.parseUShort(),e.instructions=[];for(var w=0;w<e.instructionLength;w+=1)e.instructions.push(o.parseByte())}}}function kt(e,t){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],o={x:t.xScale*n.x+t.scale01*n.y+t.dx,y:t.scale10*n.x+t.yScale*n.y+t.dy,onCurve:n.onCurve,lastPointOfContour:n.lastPointOfContour};r.push(o)}return r}function Rt(e){var t=new I;if(!e)return t;for(var r=function(e){for(var t=[],r=[],i=0;i<e.length;i+=1){var n=e[i];r.push(n),n.lastPointOfContour&&(t.push(r),r=[])}return k.argument(0===r.length,\"There are still points left in the current contour.\"),t}(e),i=0;i<r.length;++i){var n=r[i],o=null,a=n[n.length-1],s=n[0];if(a.onCurve)t.moveTo(a.x,a.y);else if(s.onCurve)t.moveTo(s.x,s.y);else{var l={x:.5*(a.x+s.x),y:.5*(a.y+s.y)};t.moveTo(l.x,l.y)}for(var u=0;u<n.length;++u)if(o=a,a=s,s=n[(u+1)%n.length],a.onCurve)t.lineTo(a.x,a.y);else{var h=s;o.onCurve||{x:.5*(a.x+o.x),y:.5*(a.y+o.y)},s.onCurve||(h={x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),t.quadraticCurveTo(a.x,a.y,h.x,h.y)}t.closePath()}return t}function Ot(e,t){if(t.isComposite)for(var r=0;r<t.components.length;r+=1){var i=t.components[r],n=e.get(i.glyphIndex);if(n.getPath(),n.points){var o=void 0;if(void 0===i.matchedPoints)o=kt(n.points,i);else{if(i.matchedPoints[0]>t.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error(\"Matched points out of range in \"+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],l={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=kt([s],l)[0],l.dx=a.x-s.x,l.dy=a.y-s.y,o=kt(n.points,l)}t.points=t.points.concat(o)}}return Rt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r<e.scripts.length;r++){var i=e.scripts[r].tag;if(\"DFLT\"===i)return i;\"latn\"===i&&(t=!0)}return t?\"latn\":void 0}},getScriptTable:function(e,t){var r=this.getTable(t);if(r){e=e||\"DFLT\";var i=r.scripts,n=yt(r.scripts,e);if(0<=n)return i[n].script;if(t){var o={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return i.splice(-1-n,0,o),o.script}}},getLangSysTable:function(e,t,r){var i=this.getScriptTable(e,r);if(i){if(!t||\"dflt\"===t||\"DFLT\"===t)return i.defaultLangSys;var n=yt(i.langSysRecords,t);if(0<=n)return i.langSysRecords[n].langSys;if(r){var o={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return i.langSysRecords.splice(-1-n,0,o),o.langSys}}},getFeatureTable:function(e,t,r,i){var n=this.getLangSysTable(e,t,i);if(n){for(var o,a=n.featureIndexes,s=this.font.tables[this.tableName].features,l=0;l<a.length;l++)if((o=s[a[l]]).tag===r)return o.feature;if(i){var u=s.length;return k.assert(0===u||r>=s[u-1].tag,\"Features must be added in alphabetical order.\"),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(u),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,l=o.lookupListIndexes,u=this.font.tables[this.tableName].lookups,h=0;h<l.length;h++)(s=u[l[h]]).lookupType===i&&a.push(s);if(0===a.length&&n){s={lookupType:i,lookupFlag:0,subtables:[],markFilteringSet:void 0};var c=u.length;return u.push(s),l.push(c),[s]}}return a},getGlyphClass:function(e,t){switch(e.format){case 1:return e.startGlyph<=t&&t<e.startGlyph+e.classes.length?e.classes[t-e.startGlyph]:0;case 2:var r=_t(e.ranges,t);return r?r.classId:0}},getCoverageIndex:function(e,t){switch(e.format){case 1:var r=bt(e.glyphs,t);return 0<=r?r:-1;case 2:var i=_t(e.ranges,t);return i?i.index+t-i.start:-1}},expandCoverage:function(e){if(1===e.format)return e.glyphs;for(var t=[],r=e.ranges,i=0;i<r.length;i++)for(var n=r[i],o=n.start,a=n.end,s=o;s<=a;s++)t.push(s);return t}}).init=function(){var e=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(e)},wt.prototype.getKerningValue=function(e,t,r){for(var i=0;i<e.length;i++)for(var n=e[i].subtables,o=0;o<n.length;o++){var a=n[o],s=this.getCoverageIndex(a.coverage,t);if(!(s<0))switch(a.posFormat){case 1:for(var l=a.pairSets[s],u=0;u<l.length;u++){var h=l[u];if(h.secondGlyph===r)return h.value1&&h.value1.xAdvance||0}break;case 2:var c=this.getGlyphClass(a.classDef1,t),f=this.getGlyphClass(a.classDef2,r),d=a.classRecords[c][f];return d.value1&&d.value1.xAdvance||0}}return 0},wt.prototype.getKerningTables=function(e,t){if(this.font.tables.gpos)return this.getLookupTables(e,t,\"kern\",2)},(St.prototype=xt.prototype).createDefaultTable=function(){return{version:1,scripts:[{tag:\"DFLT\",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}},St.prototype.getSingle=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,1),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++){var l=a[s],u=this.expandCoverage(l.coverage),h=void 0;if(1===l.substFormat){var c=l.deltaGlyphId;for(h=0;h<u.length;h++){var f=u[h];i.push({sub:f,by:f+c})}}else{var d=l.substitute;for(h=0;h<u.length;h++)i.push({sub:u[h],by:d[h]})}}return i},St.prototype.getAlternates=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,3),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.alternateSets,c=0;c<u.length;c++)i.push({sub:u[c],by:h[c]});return i},St.prototype.getLigatures=function(e,t,r){for(var i=[],n=this.getLookupTables(t,r,e,4),o=0;o<n.length;o++)for(var a=n[o].subtables,s=0;s<a.length;s++)for(var l=a[s],u=this.expandCoverage(l.coverage),h=l.ligatureSets,c=0;c<u.length;c++)for(var f=u[c],d=h[c],p=0;p<d.length;p++){var m=d[p];i.push({sub:[f].concat(m.components),by:m.ligGlyph})}return i},St.prototype.addSingle=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,1,!0)[0],2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.substitute.splice(a,0,0)),n.substitute[a]=t.by},St.prototype.addAlternate=function(e,t,r,i){var n=Et(this.getLookupTables(r,i,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});k.assert(1===n.coverage.format,\"Ligature: unable to modify coverage table format \"+n.coverage.format);var o=t.sub,a=this.binSearch(n.coverage.glyphs,o);a<0&&(a=-1-a,n.coverage.glyphs.splice(a,0,o),n.alternateSets.splice(a,0,0)),n.alternateSets[a]=t.by},St.prototype.addLigature=function(e,t,r,i){var n=this.getLookupTables(r,i,e,4,!0)[0],o=n.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},n.subtables[0]=o),k.assert(1===o.coverage.format,\"Ligature: unable to modify coverage table format \"+o.coverage.format);var a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s},u=this.binSearch(o.coverage.glyphs,a);if(0<=u){for(var h=o.ligatureSets[u],c=0;c<h.length;c++)if(Mt(h[c].components,s))return;h.push(l)}else u=-1-u,o.coverage.glyphs.splice(u,0,a),o.ligatureSets.splice(u,0,[l])},St.prototype.getFeature=function(e,t,r){if(/ss\\d\\d/.test(e))return this.getSingle(e,t,r);switch(e){case\"aalt\":case\"salt\":return this.getSingle(e,t,r).concat(this.getAlternates(e,t,r));case\"dlig\":case\"liga\":case\"rlig\":return this.getLigatures(e,t,r)}},St.prototype.add=function(e,t,r,i){if(/ss\\d\\d/.test(e))return this.addSingle(e,t,r,i);switch(e){case\"aalt\":case\"salt\":return\"number\"==typeof t.by?this.addSingle(e,t,r,i):this.addAlternate(e,t,r,i);case\"dlig\":case\"liga\":case\"rlig\":return this.addLigature(e,t,r,i)}};var Dt,At,It,Ut,Nt={getPath:Rt,parse:function(e,t,r,i){for(var n=new xe.GlyphSet(i),o=0;o<r.length-1;o+=1){var a=r[o];a!==r[o+1]?n.push(o,xe.ttfGlyphLoader(i,o,Lt,e,t+a,Ot)):n.push(o,xe.glyphLoader(i,o))}return n}};function Ft(e){this.font=e,this.getCommands=function(e){return Nt.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Bt(e){return e}function Gt(e){return Math.sign(e)*Math.round(Math.abs(e))}function jt(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function Vt(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function zt(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function Ht(e){return Math.sign(e)*Math.floor(Math.abs(e))}function Wt(e){var t=this.srPeriod,r=this.srPhase,i=1;return e<0&&(e=-e,i=-1),e+=this.srThreshold-r,e=Math.trunc(e/t)*t,(e+=r)<0?r*i:e*i}var Xt={x:1,y:0,axis:\"x\",distance:function(e,t,r,i){return(r?e.xo:e.x)-(i?t.xo:t.x)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.xo-t.xo,o=e.xo-r.xo,l=t.x-t.xo,u=r.x-r.xo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.x=e.xo+(l+u)/2):void(e.x=e.xo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?Xt.setRelative(e,e,(l*s+u*a)/h,i,!0):Xt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.x=s+(e.y-l)/i.normalSlope}else e.x=(n?t.xo:t.x)+r},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},qt={x:0,y:1,axis:\"y\",distance:function(e,t,r,i){return(r?e.yo:e.y)-(i?t.yo:t.y)},interpolate:function(e,t,r,i){var n,o,a,s,l,u,h;if(!i||i===this)return n=e.yo-t.yo,o=e.yo-r.yo,l=t.y-t.yo,u=r.y-r.yo,0===(h=(a=Math.abs(n))+(s=Math.abs(o)))?void(e.y=e.yo+(l+u)/2):void(e.y=e.yo+(l*s+u*a)/h);n=i.distance(e,t,!0,!0),o=i.distance(e,r,!0,!0),l=i.distance(t,t,!1,!0),u=i.distance(r,r,!1,!0),0!==(h=(a=Math.abs(n))+(s=Math.abs(o)))?qt.setRelative(e,e,(l*s+u*a)/h,i,!0):qt.setRelative(e,e,(l+u)/2,i,!0)},normalSlope:0,setRelative:function(e,t,r,i,n){if(i&&i!==this){var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y;e.y=l+i.normalSlope*(e.x-s)}else e.y=(n?t.yo:t.y)+r},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function Yt(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function Zt(e,t){var r=Math.sqrt(e*e+t*t);return t/=r,1===(e/=r)&&0===t?Xt:0===e&&1===t?qt:new Yt(e,t)}function Qt(e,t,r,i){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=r,this.onCurve=i,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(Xt),Object.freeze(qt),Yt.prototype.distance=function(e,t,r,i){return this.x*Xt.distance(e,t,r,i)+this.y*qt.distance(e,t,r,i)},Yt.prototype.interpolate=function(e,t,r,i){var n,o,a,s,l,u,h;a=i.distance(e,t,!0,!0),s=i.distance(e,r,!0,!0),n=i.distance(t,t,!1,!0),o=i.distance(r,r,!1,!0),0!==(h=(l=Math.abs(a))+(u=Math.abs(s)))?this.setRelative(e,e,(n*u+o*l)/h,i,!0):this.setRelative(e,e,(n+o)/2,i,!0)},Yt.prototype.setRelative=function(e,t,r,i,n){i=i||this;var o=n?t.xo:t.x,a=n?t.yo:t.y,s=o+r*i.x,l=a+r*i.y,u=i.normalSlope,h=this.slope,c=e.x,f=e.y;e.x=(h*c-u*s+l-f)/(h-u),e.y=h*(e.x-c)+f},Yt.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},Qt.prototype.nextTouched=function(e){for(var t=this.nextPointOnContour;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},Qt.prototype.prevTouched=function(e){for(var t=this.prevPointOnContour;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var Kt=Object.freeze(new Qt(0,0)),Jt={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function $t(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case\"glyf\":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case\"prep\":this.fv=this.pv=this.dpv=Xt,this.round=Gt}}function er(e){for(var t=e.tZone=new Array(e.gZone.length),r=0;r<t.length;r++)t[r]=new Qt(0,0)}function tr(e,t){var r,i=e.prog,n=e.ip,o=1;do{if(88===(r=i[++n]))o++;else if(89===r)o--;else if(64===r)n+=i[n+1]+1;else if(65===r)n+=2*i[n+1]+1;else if(176<=r&&r<=183)n+=r-176+1;else if(184<=r&&r<=191)n+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(0<o);e.ip=n}function rr(e,t){E.DEBUG&&console.log(t.step,\"SVTCA[\"+e.axis+\"]\"),t.fv=t.pv=t.dpv=e}function ir(e,t){E.DEBUG&&console.log(t.step,\"SPVTCA[\"+e.axis+\"]\"),t.pv=t.dpv=e}function nr(e,t){E.DEBUG&&console.log(t.step,\"SFVTCA[\"+e.axis+\"]\"),t.fv=e}function or(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.pv=t.dpv=Zt(r,i)}function ar(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(\"SFVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.fv=Zt(r,i)}function sr(e){E.DEBUG&&console.log(e.step,\"POP[]\"),e.stack.pop()}function lr(e,t){var r=t.stack.pop(),i=t.z0[r],n=t.fv,o=t.pv;E.DEBUG&&console.log(t.step,\"MDAP[\"+e+\"]\",r);var a=o.distance(i,Kt);e&&(a=t.round(a)),n.setRelative(i,Kt,a,o),n.touch(i),t.rp0=t.rp1=r}function ur(e,t){var r,i,n,o=t.z2,a=o.length-2;E.DEBUG&&console.log(t.step,\"IUP[\"+e.axis+\"]\");for(var s=0;s<a;s++)r=o[s],e.touched(r)||(i=r.prevTouched(e))!==r&&(i===(n=r.nextTouched(e))&&e.setRelative(r,r,e.distance(i,i,!1,!0),e,!0),e.interpolate(r,i,n,e))}function hr(e,t){for(var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=t.loop,l=t.z2;s--;){var u=r.pop(),h=l[u],c=a.distance(n,n,!1,!0);o.setRelative(h,h,c,a),o.touch(h),E.DEBUG&&console.log(t.step,(1<t.loop?\"loop \"+(t.loop-s)+\": \":\"\")+\"SHP[\"+(e?\"rp1\":\"rp2\")+\"]\",u)}t.loop=1}function cr(e,t){var r=t.stack,i=e?t.rp1:t.rp2,n=(e?t.z0:t.z1)[i],o=t.fv,a=t.pv,s=r.pop(),l=t.z2[t.contours[s]],u=l;E.DEBUG&&console.log(t.step,\"SHC[\"+e+\"]\",s);for(var h=a.distance(n,n,!1,!0);u!==n&&o.setRelative(u,u,h,a),(u=u.nextPointOnContour)!==l;);}function fr(e,t){var r,i,n=t.stack,o=e?t.rp1:t.rp2,a=(e?t.z0:t.z1)[o],s=t.fv,l=t.pv,u=n.pop();switch(E.DEBUG&&console.log(t.step,\"SHZ[\"+e+\"]\",u),u){case 0:r=t.tZone;break;case 1:r=t.gZone;break;default:throw new Error(\"Invalid zone\")}for(var h=l.distance(a,a,!1,!0),c=r.length-2,f=0;f<c;f++)i=r[f],s.setRelative(i,i,h,l)}function dr(e,t){var r=t.stack,i=r.pop()/64,n=r.pop(),o=t.z1[n],a=t.z0[t.rp0],s=t.fv,l=t.pv;s.setRelative(o,a,i,l),s.touch(o),E.DEBUG&&console.log(t.step,\"MSIRP[\"+e+\"]\",i,n),t.rp1=t.rp0,t.rp2=n,e&&(t.rp0=n)}function pr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z0[n],a=t.fv,s=t.pv,l=t.cvt[i];E.DEBUG&&console.log(t.step,\"MIAP[\"+e+\"]\",i,\"(\",l,\")\",n);var u=s.distance(o,Kt);e&&(Math.abs(u-l)<t.cvCutIn&&(u=l),u=t.round(u)),a.setRelative(o,Kt,u,s),0===t.zp0&&(o.xo=o.x,o.yo=o.y),a.touch(o),t.rp0=t.rp1=n}function mr(e,t){var r=t.stack,i=r.pop(),n=t.z2[i];E.DEBUG&&console.log(t.step,\"GC[\"+e+\"]\",i),r.push(64*t.dpv.distance(n,Kt,e,!1))}function gr(e,t){var r=t.stack,i=r.pop(),n=r.pop(),o=t.z1[i],a=t.z0[n],s=t.dpv.distance(a,o,e,e);E.DEBUG&&console.log(t.step,\"MD[\"+e+\"]\",i,n,\"->\",s),t.stack.push(Math.round(64*s))}function vr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),l=t.deltaShift,u=t.z0;E.DEBUG&&console.log(t.step,\"DELTAP[\"+e+\"]\",i,r);for(var h=0;h<i;h++){var c=r.pop(),f=r.pop();if(s+((240&f)>>4)===a){var d=(15&f)-8;0<=d&&d++,E.DEBUG&&console.log(t.step,\"DELTAPFIX\",c,\"by\",d*l);var p=u[c];n.setRelative(p,p,d*l,o)}}}function yr(e,t){var r=t.stack,i=r.pop();E.DEBUG&&console.log(t.step,\"ROUND[]\"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;E.DEBUG&&console.log(t.step,\"DELTAC[\"+e+\"]\",i,r);for(var s=0;s<i;s++){var l=r.pop(),u=r.pop();if(o+((240&u)>>4)===n){var h=(15&u)-8;0<=h&&h++;var c=h*a;E.DEBUG&&console.log(t.step,\"DELTACFIX\",l,\"by\",c),t.cvt[l]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],l=t.z1[a];E.DEBUG&&console.log(t.step,\"SDPVTL[\"+e+\"]\",o,a),i=e?(r=s.y-l.y,l.x-s.x):(r=l.x-s.x,l.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;E.DEBUG&&console.log(t.step,\"PUSHB[\"+e+\"]\");for(var o=0;o<e;o++)r.push(i[++n]);t.ip=n}function wr(e,t){var r=t.ip,i=t.prog,n=t.stack;E.DEBUG&&console.log(t.ip,\"PUSHW[\"+e+\"]\");for(var o=0;o<e;o++){var a=i[++r]<<8|i[++r];32768&a&&(a=-(1+(65535^a))),n.push(a)}t.ip=r}function Sr(e,t,r,i,n,o){var a,s,l,u,h=o.stack,c=e&&h.pop(),f=h.pop(),d=o.rp0,p=o.z0[d],m=o.z1[f],g=o.minDis,v=o.fv,y=o.dpv;l=0<=(s=a=y.distance(m,p,!0,!0))?1:-1,s=Math.abs(s),e&&(u=o.cvt[c],i&&Math.abs(s-u)<o.cvCutIn&&(s=u)),r&&s<g&&(s=g),i&&(s=o.round(s)),v.setRelative(m,p,l*s,y),v.touch(m),E.DEBUG&&console.log(o.step,(e?\"MIRP[\":\"MDRP[\")+(t?\"M\":\"m\")+(r?\">\":\"_\")+(i?\"R\":\"_\")+(0===n?\"Gr\":1===n?\"Bl\":2===n?\"Wh\":\"\")+\"]\",e?c+\"(\"+o.cvt[c]+\",\"+u+\")\":\"\",f,\"(d =\",a,\"->\",l*s,\")\"),o.rp1=o.rp0,o.rp2=f,t&&(o.rp0=f)}Ft.prototype.exec=function(e,t){if(\"number\"!=typeof t)throw new Error(\"Point size is not a number!\");if(!(2<this._errorState)){var r=this.font,i=this._prepState;if(!i||i.ppem!==t){var n=this._fpgmState;if(!n){$t.prototype=Jt,(n=this._fpgmState=new $t(\"fpgm\",r.tables.fpgm)).funcs=[],n.font=r,E.DEBUG&&(console.log(\"---EXEC FPGM---\"),n.step=-1);try{At(n)}catch(e){return console.log(\"Hinting error in FPGM:\"+e),void(this._errorState=3)}}$t.prototype=n,(i=this._prepState=new $t(\"prep\",r.tables.prep)).ppem=t;var o=r.tables.cvt;if(o)for(var a=i.cvt=new Array(o.length),s=t/r.unitsPerEm,l=0;l<o.length;l++)a[l]=o[l]*s;else i.cvt=[];E.DEBUG&&(console.log(\"---EXEC PREP---\"),i.step=-1);try{At(i)}catch(e){this._errorState<2&&console.log(\"Hinting error in PREP:\"+e),this._errorState=2}}if(!(1<this._errorState))try{return It(e,i)}catch(e){return this._errorState<1&&(console.log(\"Hinting error:\"+e),console.log(\"Note: further hinting errors are silenced\")),void(this._errorState=1)}}},It=function(e,t){var r,i,n,o=t.ppem/t.font.unitsPerEm,a=o,s=e.components;if($t.prototype=t,s){var l=t.font;i=[],r=[];for(var u=0;u<s.length;u++){var h=s[u],c=l.glyphs.get(h.glyphIndex);n=new $t(\"glyf\",c.instructions),E.DEBUG&&(console.log(\"---EXEC COMP \"+u+\"---\"),n.step=-1),Ut(c,n,o,a);for(var f=Math.round(h.dx*o),d=Math.round(h.dy*a),p=n.gZone,m=n.contours,g=0;g<p.length;g++){var v=p[g];v.xTouched=v.yTouched=!1,v.xo=v.x=v.x+f,v.yo=v.y=v.y+d}var y=i.length;i.push.apply(i,p);for(var b=0;b<m.length;b++)r.push(m[b]+y)}e.instructions&&!n.inhibitGridFit&&((n=new $t(\"glyf\",e.instructions)).gZone=n.z0=n.z1=n.z2=i,n.contours=r,i.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*o),0)),E.DEBUG&&(console.log(\"---EXEC COMPOSITE---\"),n.step=-1),At(n),i.length-=2)}else n=new $t(\"glyf\",e.instructions),E.DEBUG&&(console.log(\"---EXEC GLYPH---\"),n.step=-1),Ut(e,n,o,a),i=n.gZone;return i},Ut=function(e,t,r,i){for(var n,o,a,s=e.points||[],l=s.length,u=t.gZone=t.z0=t.z1=t.z2=[],h=t.contours=[],c=0;c<l;c++)n=s[c],u[c]=new Qt(n.x*r,n.y*i,n.lastPointOfContour,n.onCurve);for(var f=0;f<l;f++)n=u[f],o||(o=n,h.push(f)),n.lastPointOfContour?((n.nextPointOnContour=o).prevPointOnContour=n,o=void 0):(a=u[f+1],(n.nextPointOnContour=a).prevPointOnContour=n);if(!t.inhibitGridFit){if(E.DEBUG){console.log(\"PROCESSING GLYPH\",t.stack);for(var d=0;d<l;d++)console.log(d,u[d].x,u[d].y)}if(u.push(new Qt(0,0),new Qt(Math.round(e.advanceWidth*r),0)),At(t),u.length-=2,E.DEBUG){console.log(\"FINISHED GLYPH\",t.stack);for(var p=0;p<l;p++)console.log(p,u[p].x,u[p].y)}}},At=function(e){var t=e.prog;if(t){var r,i=t.length;for(e.ip=0;e.ip<i;e.ip++){if(E.DEBUG&&e.step++,!(r=Dt[t[e.ip]]))throw new Error(\"unknown instruction: 0x\"+Number(t[e.ip]).toString(16));r(e)}}},Dt=[rr.bind(void 0,qt),rr.bind(void 0,Xt),ir.bind(void 0,qt),ir.bind(void 0,Xt),nr.bind(void 0,qt),nr.bind(void 0,Xt),or.bind(void 0,0),or.bind(void 0,1),ar.bind(void 0,0),ar.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.pv=e.dpv=Zt(i,r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SPVFS[]\",r,i),e.fv=Zt(i,r)},function(e){var t=e.stack,r=e.pv;E.DEBUG&&console.log(e.step,\"GPV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){var t=e.stack,r=e.fv;E.DEBUG&&console.log(e.step,\"GFV[]\"),t.push(16384*r.x),t.push(16384*r.y)},function(e){e.fv=e.pv,E.DEBUG&&console.log(e.step,\"SFVTPV[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,u=s[r],h=s[i],c=l[n],f=l[o],d=e.z2[a];E.DEBUG&&console.log(\"ISECT[], \",r,i,n,o,a);var p=u.x,m=u.y,g=h.x,v=h.y,y=c.x,b=c.y,_=f.x,x=f.y,w=(p-g)*(b-x)-(m-v)*(y-_),S=p*v-m*g,M=y*x-b*_;d.x=(S*(y-_)-M*(p-g))/w,d.y=(S*(b-x)-M*(m-v))/w},function(e){e.rp0=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP0[]\",e.rp0)},function(e){e.rp1=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP1[]\",e.rp1)},function(e){e.rp2=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SRP2[]\",e.rp2)},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP0[]\",t),e.zp0=t){case 0:e.tZone||er(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP1[]\",t),e.zp1=t){case 0:e.tZone||er(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZP2[]\",t),e.zp2=t){case 0:e.tZone||er(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){var t=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SZPS[]\",t),e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||er(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error(\"Invalid zone pointer\")}},function(e){e.loop=e.stack.pop(),E.DEBUG&&console.log(e.step,\"SLOOP[]\",e.loop)},function(e){E.DEBUG&&console.log(e.step,\"RTG[]\"),e.round=Gt},function(e){E.DEBUG&&console.log(e.step,\"RTHG[]\"),e.round=Vt},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SMD[]\",t),e.minDis=t/64},function(e){E.DEBUG&&console.log(e.step,\"ELSE[]\"),tr(e,!1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"JMPR[]\",t),e.ip+=t-1},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCVTCI[]\",t),e.cvCutIn=t/64},void 0,void 0,function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DUP[]\"),t.push(t[t.length-1])},sr,function(e){E.DEBUG&&console.log(e.step,\"CLEAR[]\"),e.stack.length=0},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SWAP[]\"),t.push(r),t.push(i)},function(e){var t=e.stack;E.DEBUG&&console.log(e.step,\"DEPTH[]\"),t.push(t.length)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CINDEX[]\",r),t.push(t[t.length-r])},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"MINDEX[]\",r),t.push(t.splice(t.length-r,1)[0])},void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LOOPCALL[]\",r,i);var n=e.ip,o=e.prog;e.prog=e.funcs[r];for(var a=0;a<i;a++)At(e),E.DEBUG&&console.log(++e.step,a+1<i?\"next loopcall\":\"done loopcall\",a);e.ip=n,e.prog=o},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"CALL[]\",t);var r=e.ip,i=e.prog;e.prog=e.funcs[t],At(e),e.ip=r,e.prog=i,E.DEBUG&&console.log(++e.step,\"returning from\",t)},function(e){if(\"fpgm\"!==e.env)throw new Error(\"FDEF not allowed here\");var t=e.stack,r=e.prog,i=e.ip,n=t.pop(),o=i;for(E.DEBUG&&console.log(e.step,\"FDEF[]\",n);45!==r[++i];);e.ip=i,e.funcs[n]=r.slice(o+1,i)},void 0,lr.bind(void 0,0),lr.bind(void 0,1),ur.bind(void 0,qt),ur.bind(void 0,Xt),hr.bind(void 0,0),hr.bind(void 0,1),cr.bind(void 0,0),cr.bind(void 0,1),fr.bind(void 0,0),fr.bind(void 0,1),function(e){for(var t=e.stack,r=e.loop,i=e.fv,n=t.pop()/64,o=e.z2;r--;){var a=t.pop(),s=o[a];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-r)+\": \":\"\")+\"SHPIX[]\",a,n),i.setRelative(s,s,n),i.touch(s)}e.loop=1},function(e){for(var t=e.stack,r=e.rp1,i=e.rp2,n=e.loop,o=e.z0[r],a=e.z1[i],s=e.fv,l=e.dpv,u=e.z2;n--;){var h=t.pop(),c=u[h];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"IP[]\",h,r,\"<->\",i),s.interpolate(c,o,a,l),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var l=t.pop(),u=s[l];E.DEBUG&&console.log(e.step,(1<e.loop?\"loop \"+(e.loop-n)+\": \":\"\")+\"ALIGNRP[]\",l),o.setRelative(u,i,0,a),o.touch(u)}e.loop=1},function(e){E.DEBUG&&console.log(e.step,\"RTDG[]\"),e.round=jt},pr.bind(void 0,0),pr.bind(void 0,1),function(e){var t=e.prog,r=e.ip,i=e.stack,n=t[++r];E.DEBUG&&console.log(e.step,\"NPUSHB[]\",n);for(var o=0;o<n;o++)i.push(t[++r]);e.ip=r},function(e){var t=e.ip,r=e.prog,i=e.stack,n=r[++t];E.DEBUG&&console.log(e.step,\"NPUSHW[]\",n);for(var o=0;o<n;o++){var a=r[++t]<<8|r[++t];32768&a&&(a=-(1+(65535^a))),i.push(a)}e.ip=t},function(e){var t=e.stack,r=e.store;r=r||(e.store=[]);var i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"WS\",i,n),r[n]=i},function(e){var t=e.stack,r=e.store,i=t.pop();E.DEBUG&&console.log(e.step,\"RS\",i);var n=r&&r[i]||0;t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTP\",r,i),e.cvt[i]=r/64},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"RCVT\",r),t.push(64*e.cvt[r])},mr.bind(void 0,0),mr.bind(void 0,1),void 0,gr.bind(void 0,0),gr.bind(void 0,1),function(e){E.DEBUG&&console.log(e.step,\"MPPEM[]\"),e.stack.push(e.ppem)},void 0,function(e){E.DEBUG&&console.log(e.step,\"FLIPON[]\"),e.autoFlip=!0},void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LT[]\",r,i),t.push(i<r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"LTEQ[]\",r,i),t.push(i<=r?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GT[]\",r,i),t.push(r<i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"GTEQ[]\",r,i),t.push(r<=i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"EQ[]\",r,i),t.push(r===i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"NEQ[]\",r,i),t.push(r!==i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ODD[]\",r),t.push(Math.trunc(r)%2?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"EVEN[]\",r),t.push(Math.trunc(r)%2?0:1)},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"IF[]\",t),t||(tr(e,!0),E.DEBUG&&console.log(e.step,\"EIF[]\"))},function(e){E.DEBUG&&console.log(e.step,\"EIF[]\")},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"AND[]\",r,i),t.push(r&&i?1:0)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"OR[]\",r,i),t.push(r||i?1:0)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NOT[]\",r),t.push(r?0:1)},vr.bind(void 0,1),function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDB[]\",t),e.deltaBase=t},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SDS[]\",t),e.deltaShift=Math.pow(.5,t)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"ADD[]\",r,i),t.push(i+r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"SUB[]\",r,i),t.push(i-r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"DIV[]\",r,i),t.push(64*i/r)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MUL[]\",r,i),t.push(i*r/64)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"ABS[]\",r),t.push(Math.abs(r))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"NEG[]\",r),t.push(-r)},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"FLOOR[]\",r),t.push(64*Math.floor(r/64))},function(e){var t=e.stack,r=t.pop();E.DEBUG&&console.log(e.step,\"CEILING[]\",r),t.push(64*Math.ceil(r/64))},yr.bind(void 0,0),yr.bind(void 0,1),yr.bind(void 0,2),yr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"WCVTF[]\",r,i),e.cvt[i]=r*e.ppem/e.font.unitsPerEm},vr.bind(void 0,2),vr.bind(void 0,3),br.bind(void 0,1),br.bind(void 0,2),br.bind(void 0,3),function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"SROUND[]\",r),e.round=Wt,192&r){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error(\"invalid SROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid SROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},function(e){var t,r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"S45ROUND[]\",r),e.round=Wt,192&r){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error(\"invalid S45ROUND value\")}switch(e.srPeriod=t,48&r){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error(\"invalid S45ROUND value\")}r&=15,e.srThreshold=0===r?0:(r/8-.5)*t},void 0,void 0,function(e){E.DEBUG&&console.log(e.step,\"ROFF[]\"),e.round=Bt},void 0,function(e){E.DEBUG&&console.log(e.step,\"RUTG[]\"),e.round=zt},function(e){E.DEBUG&&console.log(e.step,\"RDTG[]\"),e.round=Ht},sr,sr,void 0,void 0,void 0,void 0,void 0,function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANCTRL[]\",t)},_r.bind(void 0,0),_r.bind(void 0,1),function(e){var t=e.stack,r=t.pop(),i=0;E.DEBUG&&console.log(e.step,\"GETINFO[]\",r),1&r&&(i=35),32&r&&(i|=4096),t.push(i)},void 0,function(e){var t=e.stack,r=t.pop(),i=t.pop(),n=t.pop();E.DEBUG&&console.log(e.step,\"ROLL[]\"),t.push(i),t.push(r),t.push(n)},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MAX[]\",r,i),t.push(Math.max(i,r))},function(e){var t=e.stack,r=t.pop(),i=t.pop();E.DEBUG&&console.log(e.step,\"MIN[]\",r,i),t.push(Math.min(i,r))},function(e){var t=e.stack.pop();E.DEBUG&&console.log(e.step,\"SCANTYPE[]\",t)},function(e){var t=e.stack.pop(),r=e.stack.pop();switch(E.DEBUG&&console.log(e.step,\"INSTCTRL[]\",t,r),t){case 1:return void(e.inhibitGridFit=!!r);case 2:return void(e.ignoreCvt=!!r);default:throw new Error(\"invalid INSTCTRL[] selector\")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,xr.bind(void 0,1),xr.bind(void 0,2),xr.bind(void 0,3),xr.bind(void 0,4),xr.bind(void 0,5),xr.bind(void 0,6),xr.bind(void 0,7),xr.bind(void 0,8),wr.bind(void 0,1),wr.bind(void 0,2),wr.bind(void 0,3),wr.bind(void 0,4),wr.bind(void 0,5),wr.bind(void 0,6),wr.bind(void 0,7),wr.bind(void 0,8),Sr.bind(void 0,0,0,0,0,0),Sr.bind(void 0,0,0,0,0,1),Sr.bind(void 0,0,0,0,0,2),Sr.bind(void 0,0,0,0,0,3),Sr.bind(void 0,0,0,0,1,0),Sr.bind(void 0,0,0,0,1,1),Sr.bind(void 0,0,0,0,1,2),Sr.bind(void 0,0,0,0,1,3),Sr.bind(void 0,0,0,1,0,0),Sr.bind(void 0,0,0,1,0,1),Sr.bind(void 0,0,0,1,0,2),Sr.bind(void 0,0,0,1,0,3),Sr.bind(void 0,0,0,1,1,0),Sr.bind(void 0,0,0,1,1,1),Sr.bind(void 0,0,0,1,1,2),Sr.bind(void 0,0,0,1,1,3),Sr.bind(void 0,0,1,0,0,0),Sr.bind(void 0,0,1,0,0,1),Sr.bind(void 0,0,1,0,0,2),Sr.bind(void 0,0,1,0,0,3),Sr.bind(void 0,0,1,0,1,0),Sr.bind(void 0,0,1,0,1,1),Sr.bind(void 0,0,1,0,1,2),Sr.bind(void 0,0,1,0,1,3),Sr.bind(void 0,0,1,1,0,0),Sr.bind(void 0,0,1,1,0,1),Sr.bind(void 0,0,1,1,0,2),Sr.bind(void 0,0,1,1,0,3),Sr.bind(void 0,0,1,1,1,0),Sr.bind(void 0,0,1,1,1,1),Sr.bind(void 0,0,1,1,1,2),Sr.bind(void 0,0,1,1,1,3),Sr.bind(void 0,1,0,0,0,0),Sr.bind(void 0,1,0,0,0,1),Sr.bind(void 0,1,0,0,0,2),Sr.bind(void 0,1,0,0,0,3),Sr.bind(void 0,1,0,0,1,0),Sr.bind(void 0,1,0,0,1,1),Sr.bind(void 0,1,0,0,1,2),Sr.bind(void 0,1,0,0,1,3),Sr.bind(void 0,1,0,1,0,0),Sr.bind(void 0,1,0,1,0,1),Sr.bind(void 0,1,0,1,0,2),Sr.bind(void 0,1,0,1,0,3),Sr.bind(void 0,1,0,1,1,0),Sr.bind(void 0,1,0,1,1,1),Sr.bind(void 0,1,0,1,1,2),Sr.bind(void 0,1,0,1,1,3),Sr.bind(void 0,1,1,0,0,0),Sr.bind(void 0,1,1,0,0,1),Sr.bind(void 0,1,1,0,0,2),Sr.bind(void 0,1,1,0,0,3),Sr.bind(void 0,1,1,0,1,0),Sr.bind(void 0,1,1,0,1,1),Sr.bind(void 0,1,1,0,1,2),Sr.bind(void 0,1,1,0,1,3),Sr.bind(void 0,1,1,1,0,0),Sr.bind(void 0,1,1,1,0,1),Sr.bind(void 0,1,1,1,0,2),Sr.bind(void 0,1,1,1,0,3),Sr.bind(void 0,1,1,1,1,0),Sr.bind(void 0,1,1,1,1,1),Sr.bind(void 0,1,1,1,1,2),Sr.bind(void 0,1,1,1,1,3)];var Mr=Array.from||function(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g)||[]};function Er(e){(e=e||{}).empty||(Ct(e.familyName,\"When creating a new Font object, familyName is required.\"),Ct(e.styleName,\"When creating a new Font object, styleName is required.\"),Ct(e.unitsPerEm,\"When creating a new Font object, unitsPerEm is required.\"),Ct(e.ascender,\"When creating a new Font object, ascender is required.\"),Ct(e.descender,\"When creating a new Font object, descender is required.\"),Ct(e.descender<0,\"Descender should be negative (e.g. -512).\"),this.names={fontFamily:{en:e.familyName||\" \"},fontSubfamily:{en:e.styleName||\" \"},fullName:{en:e.fullName||e.familyName+\" \"+e.styleName},postScriptName:{en:e.postScriptName||(e.familyName+e.styleName).replace(/\\s/g,\"\")},designer:{en:e.designer||\" \"},designerURL:{en:e.designerURL||\" \"},manufacturer:{en:e.manufacturer||\" \"},manufacturerURL:{en:e.manufacturerURL||\" \"},license:{en:e.license||\" \"},licenseURL:{en:e.licenseURL||\" \"},version:{en:e.version||\"Version 0.1\"},description:{en:e.description||\" \"},copyright:{en:e.copyright||\" \"},trademark:{en:e.trademark||\" \"}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.tables={os2:{usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,fsSelection:e.fsSelection||this.fsSelectionValues.REGULAR}}),this.supported=!0,this.glyphs=new xe.GlyphSet(this,e.glyphs||[]),this.encoding=new de(this),this.position=new wt(this),this.substitution=new St(this),this.tables=this.tables||{},Object.defineProperty(this,\"hinting\",{get:function(){return this._hinting?this._hinting:\"truetype\"===this.outlinesFormat?this._hinting=new Ft(this):void 0}})}function Tr(e,t){var r=JSON.stringify(e),i=256;for(var n in t){var o=parseInt(n);if(o&&!(o<256)){if(JSON.stringify(t[n])===r)return o;i<=o&&(i=o+1)}}return t[i]=e,i}function Cr(e,t,r,i){for(var n=[{name:\"nameID_\"+e,type:\"USHORT\",value:Tr(t.name,i)},{name:\"flags_\"+e,type:\"USHORT\",value:0}],o=0;o<r.length;++o){var a=r[o].tag;n.push({name:\"axis_\"+e+\" \"+a,type:\"FIXED\",value:t.coordinates[a]<<16})}return n}function Pr(e,t,r,i){var n={},o=new se.Parser(e,t);n.name=i[o.parseUShort()]||{},o.skip(\"uShort\",1),n.coordinates={};for(var a=0;a<r.length;++a)n.coordinates[r[a].tag]=o.parseFixed();return n}Er.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Er.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.stringToGlyphs=function(e,t){t=t||this.defaultRenderOptions;for(var r=Mr(e),i=[],n=0;n<r.length;n+=1){var o=r[n];i.push(this.charToGlyphIndex(o))}var a=i.length;if(t.features){var s=t.script||this.substitution.getDefaultScriptName(),l=[];t.features.liga&&(l=l.concat(this.substitution.getFeature(\"liga\",s,t.language))),t.features.rlig&&(l=l.concat(this.substitution.getFeature(\"rlig\",s,t.language)));for(var u=0;u<a;u+=1)for(var h=0;h<l.length;h++){for(var c=l[h],f=c.sub,d=f.length,p=0;p<d&&f[p]===i[u+p];)p++;p===d&&(i.splice(u,d,c.by),a=a-d+1)}}for(var m=new Array(a),g=this.glyphs.get(0),v=0;v<a;v+=1)m[v]=this.glyphs.get(i[v])||g;return m},Er.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Er.prototype.nameToGlyph=function(e){var t=this.nameToGlyphIndex(e),r=this.glyphs.get(t);return r=r||this.glyphs.get(0)},Er.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):\"\"},Er.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var r=this.position.defaultKerningTables;return r?this.position.getKerningValue(r,e,t):this.kerningPairs[e+\",\"+t]||0},Er.prototype.defaultRenderOptions={kerning:!0,features:{liga:!0,rlig:!0}},Er.prototype.forEachGlyph=function(e,t,r,i,n,o){t=void 0!==t?t:0,r=void 0!==r?r:0,i=void 0!==i?i:72,n=n||this.defaultRenderOptions;var a,s=1/this.unitsPerEm*i,l=this.stringToGlyphs(e,n);if(n.kerning){var u=n.script||this.position.getDefaultScriptName();a=this.position.getKerningTables(u,n.language)}for(var h=0;h<l.length;h+=1){var c=l[h];if(o.call(this,c,t,r,i,n),c.advanceWidth&&(t+=c.advanceWidth*s),n.kerning&&h<l.length-1)t+=(a?this.position.getKerningValue(a,c.index,l[h+1].index):this.getKerningValue(c,l[h+1]))*s;n.letterSpacing?t+=n.letterSpacing*i:n.tracking&&(t+=n.tracking/1e3*i)}return t},Er.prototype.getPath=function(e,t,r,i,o){var a=new I;return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.extend(n)}),a},Er.prototype.getPaths=function(e,t,r,i,o){var a=[];return this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){var n=e.getPath(t,r,i,o,this);a.push(n)}),a},Er.prototype.getAdvanceWidth=function(e,t,r){return this.forEachGlyph(e,0,0,t,r,function(){})},Er.prototype.draw=function(e,t,r,i,n,o){this.getPath(t,r,i,n,o).draw(e)},Er.prototype.drawPoints=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawPoints(n,t,r,i)})},Er.prototype.drawMetrics=function(n,e,t,r,i,o){this.forEachGlyph(e,t,r,i,o,function(e,t,r,i){e.drawMetrics(n,t,r,i)})},Er.prototype.getEnglishName=function(e){var t=this.names[e];if(t)return t.en},Er.prototype.validate=function(){var r=this;function e(e){var t=r.getEnglishName(e);t&&t.trim().length}e(\"fontFamily\"),e(\"weightName\"),e(\"manufacturer\"),e(\"copyright\"),e(\"version\"),this.unitsPerEm},Er.prototype.toTables=function(){return vt.fontToTable(this)},Er.prototype.toBuffer=function(){return console.warn(\"Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\"),this.toArrayBuffer()},Er.prototype.toArrayBuffer=function(){for(var e=this.toTables().encode(),t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return t},Er.prototype.download=function(t){var e=this.getEnglishName(\"fontFamily\"),r=this.getEnglishName(\"fontSubfamily\");t=t||e.replace(/\\s/g,\"\")+\"-\"+r+\".otf\";var n=this.toArrayBuffer();if(\"undefined\"!=typeof window)window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,n.byteLength,function(e){e.root.getFile(t,{create:!0},function(i){i.createWriter(function(e){var t=new DataView(n),r=new Blob([t],{type:\"font/opentype\"});e.write(r),e.addEventListener(\"writeend\",function(){location.href=i.toURL()},!1)})})},function(e){throw new Error(e.name+\": \"+e.message)});else{var i=jr(\"fs\"),o=function(e){for(var t=new Gr(e.byteLength),r=new Uint8Array(e),i=0;i<t.length;++i)t[i]=r[i];return t}(n);i.writeFileSync(t,o)}},Er.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512},Er.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9},Er.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};var Lr={make:function(e,t){var r,i,n,o,a=new $.Table(\"fvar\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"offsetToData\",type:\"USHORT\",value:0},{name:\"countSizePairs\",type:\"USHORT\",value:2},{name:\"axisCount\",type:\"USHORT\",value:e.axes.length},{name:\"axisSize\",type:\"USHORT\",value:20},{name:\"instanceCount\",type:\"USHORT\",value:e.instances.length},{name:\"instanceSize\",type:\"USHORT\",value:4+4*e.axes.length}]);a.offsetToData=a.sizeOf();for(var s=0;s<e.axes.length;s++)a.fields=a.fields.concat((r=s,i=e.axes[s],n=t,o=Tr(i.name,n),[{name:\"tag_\"+r,type:\"TAG\",value:i.tag},{name:\"minValue_\"+r,type:\"FIXED\",value:i.minValue<<16},{name:\"defaultValue_\"+r,type:\"FIXED\",value:i.defaultValue<<16},{name:\"maxValue_\"+r,type:\"FIXED\",value:i.maxValue<<16},{name:\"flags_\"+r,type:\"USHORT\",value:0},{name:\"nameID_\"+r,type:\"USHORT\",value:o}]));for(var l=0;l<e.instances.length;l++)a.fields=a.fields.concat(Cr(l,e.instances[l],e.axes,t));return a},parse:function(e,t,r){var i=new se.Parser(e,t),n=i.parseULong();k.argument(65536===n,\"Unsupported fvar table version.\");var o=i.parseOffset16();i.skip(\"uShort\",1);for(var a,s,l,u,h,c=i.parseUShort(),f=i.parseUShort(),d=i.parseUShort(),p=i.parseUShort(),m=[],g=0;g<c;g++)m.push((a=e,s=t+o+g*f,l=r,h=u=void 0,u={},h=new se.Parser(a,s),u.tag=h.parseTag(),u.minValue=h.parseFixed(),u.defaultValue=h.parseFixed(),u.maxValue=h.parseFixed(),h.skip(\"uShort\",1),u.name=l[h.parseUShort()]||{},u));for(var v=[],y=t+o+c*f,b=0;b<d;b++)v.push(Pr(e,y+b*p,m,r));return{axes:m,instances:v}}},kr=new Array(10);kr[1]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(oe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(oe.coverage),values:this.parseValueRecordList()}:void k.assert(!1,\"0x\"+e.toString(16)+\": GPOS lookup type 1 format must be 1 or 2.\")},kr[2]=function(){var e=this.offset+this.relativeOffset,t=this.parseUShort();k.assert(1===t||2===t,\"0x\"+e.toString(16)+\": GPOS lookup type 2 format must be 1 or 2.\");var r=this.parsePointer(oe.coverage),i=this.parseUShort(),n=this.parseUShort();if(1===t)return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,pairSets:this.parseList(oe.pointer(oe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}})))};if(2===t){var o=this.parsePointer(oe.classDef),a=this.parsePointer(oe.classDef),s=this.parseUShort(),l=this.parseUShort();return{posFormat:t,coverage:r,valueFormat1:i,valueFormat2:n,classDef1:o,classDef2:a,class1Count:s,class2Count:l,classRecords:this.parseList(s,oe.list(l,function(){return{value1:this.parseValueRecord(i),value2:this.parseValueRecord(n)}}))}}},kr[3]=function(){return{error:\"GPOS Lookup 3 not supported\"}},kr[4]=function(){return{error:\"GPOS Lookup 4 not supported\"}},kr[5]=function(){return{error:\"GPOS Lookup 5 not supported\"}},kr[6]=function(){return{error:\"GPOS Lookup 6 not supported\"}},kr[7]=function(){return{error:\"GPOS Lookup 7 not supported\"}},kr[8]=function(){return{error:\"GPOS Lookup 8 not supported\"}},kr[9]=function(){return{error:\"GPOS Lookup 9 not supported\"}};var Rr=new Array(10);var Or={parse:function(e,t){var r=new oe(e,t=t||0),i=r.parseVersion(1);return k.argument(1===i||1.1===i,\"Unsupported GPOS table version \"+i),1===i?{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr)}:{version:i,scripts:r.parseScriptList(),features:r.parseFeatureList(),lookups:r.parseLookupList(kr),variations:r.parseFeatureVariationsList()}},make:function(e){return new $.Table(\"GPOS\",[{name:\"version\",type:\"ULONG\",value:65536},{name:\"scripts\",type:\"TABLE\",value:new $.ScriptList(e.scripts)},{name:\"features\",type:\"TABLE\",value:new $.FeatureList(e.features)},{name:\"lookups\",type:\"TABLE\",value:new $.LookupList(e.lookups,Rr)}])}};var Dr={parse:function(e,t){var r=new se.Parser(e,t),i=r.parseUShort();if(0===i)return function(e){var t={};e.skip(\"uShort\");var r=e.parseUShort();k.argument(0===r,\"Unsupported kern sub-table version.\"),e.skip(\"uShort\",2);var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}return t}(r);if(1===i)return function(e){var t={};e.skip(\"uShort\"),1<e.parseULong()&&console.warn(\"Only the first kern subtable is supported.\"),e.skip(\"uLong\");var r=255&e.parseUShort();if(e.skip(\"uShort\"),0==r){var i=e.parseUShort();e.skip(\"uShort\",3);for(var n=0;n<i;n+=1){var o=e.parseUShort(),a=e.parseUShort(),s=e.parseShort();t[o+\",\"+a]=s}}return t}(r);throw new Error(\"Unsupported kern table version (\"+i+\").\")}};var Ar={parse:function(e,t,r,i){for(var n=new se.Parser(e,t),o=i?n.parseUShort:n.parseULong,a=[],s=0;s<r+1;s+=1){var l=o.call(n);i&&(l*=2),a.push(l)}return a}};function Ir(e,r){jr(\"fs\").readFile(e,function(e,t){if(e)return r(e.message);r(null,Tt(t))})}function Ur(e,t){var r=new XMLHttpRequest;r.open(\"get\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){return r.response?t(null,r.response):t(\"Font could not be loaded: \"+r.statusText)},r.onerror=function(){t(\"Font could not be loaded\")},r.send()}function Nr(e,t){for(var r=[],i=12,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12);r.push({tag:o,checksum:a,offset:s,length:l,compression:!1}),i+=16}return r}function Fr(e,t){if(\"WOFF\"!==t.compression)return{data:e,offset:t.offset};var r=new Uint8Array(e.buffer,t.offset+2,t.compressedLength-2),i=new Uint8Array(t.length);if(n(r,i),i.byteLength!==t.length)throw new Error(\"Decompression error: \"+t.tag+\" decompressed length doesn't match recorded length\");return{data:new DataView(i.buffer,0),offset:0}}function Br(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m=new Er({empty:!0}),g=new DataView(e,0),v=[],y=se.getTag(g,0);if(y===String.fromCharCode(0,1,0,0)||\"true\"===y||\"typ1\"===y)m.outlinesFormat=\"truetype\",v=Nr(g,i=se.getUShort(g,4));else if(\"OTTO\"===y)m.outlinesFormat=\"cff\",v=Nr(g,i=se.getUShort(g,4));else{if(\"wOFF\"!==y)throw new Error(\"Unsupported OpenType signature \"+y);var b=se.getTag(g,4);if(b===String.fromCharCode(0,1,0,0))m.outlinesFormat=\"truetype\";else{if(\"OTTO\"!==b)throw new Error(\"Unsupported OpenType flavor \"+y);m.outlinesFormat=\"cff\"}v=function(e,t){for(var r=[],i=44,n=0;n<t;n+=1){var o=se.getTag(e,i),a=se.getULong(e,i+4),s=se.getULong(e,i+8),l=se.getULong(e,i+12),u=void 0;u=s<l&&\"WOFF\",r.push({tag:o,offset:a,compression:u,compressedLength:s,length:l}),i+=20}return r}(g,i=se.getUShort(g,12))}for(var _=0;_<i;_+=1){var x=v[_],w=void 0;switch(x.tag){case\"cmap\":w=Fr(g,x),m.tables.cmap=le.parse(w.data,w.offset),m.encoding=new pe(m.tables.cmap);break;case\"cvt \":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.cvt=p.parseShortList(x.length/2);break;case\"fvar\":o=x;break;case\"fpgm\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.fpgm=p.parseByteList(x.length);break;case\"head\":w=Fr(g,x),m.tables.head=Ge.parse(w.data,w.offset),m.unitsPerEm=m.tables.head.unitsPerEm,t=m.tables.head.indexToLocFormat;break;case\"hhea\":w=Fr(g,x),m.tables.hhea=je.parse(w.data,w.offset),m.ascender=m.tables.hhea.ascender,m.descender=m.tables.hhea.descender,m.numberOfHMetrics=m.tables.hhea.numberOfHMetrics;break;case\"hmtx\":u=x;break;case\"ltag\":w=Fr(g,x),r=ze.parse(w.data,w.offset);break;case\"maxp\":w=Fr(g,x),m.tables.maxp=He.parse(w.data,w.offset),m.numGlyphs=m.tables.maxp.numGlyphs;break;case\"name\":f=x;break;case\"OS/2\":w=Fr(g,x),m.tables.os2=ot.parse(w.data,w.offset);break;case\"post\":w=Fr(g,x),m.tables.post=at.parse(w.data,w.offset),m.glyphNames=new ge(m.tables.post);break;case\"prep\":w=Fr(g,x),p=new se.Parser(w.data,w.offset),m.tables.prep=p.parseByteList(x.length);break;case\"glyf\":a=x;break;case\"loca\":c=x;break;case\"CFF \":n=x;break;case\"kern\":h=x;break;case\"GPOS\":s=x;break;case\"GSUB\":l=x;break;case\"meta\":d=x}}var S=Fr(g,f);if(m.tables.name=it.parse(S.data,S.offset,r),m.names=m.tables.name,a&&c){var M=0===t,E=Fr(g,c),T=Ar.parse(E.data,E.offset,m.numGlyphs,M),C=Fr(g,a);m.glyphs=Nt.parse(C.data,C.offset,T,m)}else{if(!n)throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");var P=Fr(g,n);Be.parse(P.data,P.offset,m)}var L=Fr(g,u);if(Ve.parse(L.data,L.offset,m.numberOfHMetrics,m.numGlyphs,m.glyphs),function(e){for(var t,r=e.tables.cmap.glyphIndexMap,i=Object.keys(r),n=0;n<i.length;n+=1){var o=i[n],a=r[o];(t=e.glyphs.get(a)).addUnicode(parseInt(o))}for(var s=0;s<e.glyphs.length;s+=1)t=e.glyphs.get(s),e.cffEncoding?e.isCIDFont?t.name=\"gid\"+s:t.name=e.cffEncoding.charset[s]:e.glyphNames.names&&(t.name=e.glyphNames.glyphIndexToName(s))}(m),h){var k=Fr(g,h);m.kerningPairs=Dr.parse(k.data,k.offset)}else m.kerningPairs={};if(s){var R=Fr(g,s);m.tables.gpos=Or.parse(R.data,R.offset),m.position.init()}if(l){var O=Fr(g,l);m.tables.gsub=ht.parse(O.data,O.offset)}if(o){var D=Fr(g,o);m.tables.fvar=Lr.parse(D.data,D.offset,m.names)}if(d){var A=Fr(g,d);m.tables.meta=ct.parse(A.data,A.offset),m.metas=m.tables.meta}return m}E.Font=Er,E.Glyph=ye,E.Path=I,E.BoundingBox=C,E._parse=se,E.parse=Br,E.load=function(e,i){(\"undefined\"==typeof window?Ir:Ur)(e,function(e,t){if(e)return i(e);var r;try{r=Br(t)}catch(e){return i(e,null)}return i(null,r)})},E.loadSync=function(e){return Br(Tt(jr(\"fs\").readFileSync(e)))},Object.defineProperty(E,\"__esModule\",{value:!0})}(\"object\"==typeof r&&void 0!==t?r:e.opentype={})}).call(this,jr(\"buffer\").Buffer)},{buffer:21,fs:20}],34:[function(e,t,u){(function(n){function o(e,t){for(var r=0,i=e.length-1;0<=i;i--){var n=e[i];\".\"===n?e.splice(i,1):\"..\"===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;)e.unshift(\"..\");return e}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}u.resolve=function(){for(var e=\"\",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var i=0<=r?arguments[r]:n.cwd();if(\"string\"!=typeof i)throw new TypeError(\"Arguments to path.resolve must be strings\");i&&(e=i+\"/\"+e,t=\"/\"===i.charAt(0))}return(t?\"/\":\"\")+(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||\".\"},u.normalize=function(e){var t=u.isAbsolute(e),r=\"/\"===i(e,-1);return(e=o(a(e.split(\"/\"),function(e){return!!e}),!t).join(\"/\"))||t||(e=\".\"),e&&r&&(e+=\"/\"),(t?\"/\":\"\")+e},u.isAbsolute=function(e){return\"/\"===e.charAt(0)},u.join=function(){var e=Array.prototype.slice.call(arguments,0);return u.normalize(a(e,function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e}).join(\"/\"))},u.relative=function(e,t){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var r=e.length-1;0<=r&&\"\"===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=u.resolve(e).substr(1),t=u.resolve(t).substr(1);for(var i=r(e.split(\"/\")),n=r(t.split(\"/\")),o=Math.min(i.length,n.length),a=o,s=0;s<o;s++)if(i[s]!==n[s]){a=s;break}var l=[];for(s=a;s<i.length;s++)l.push(\"..\");return(l=l.concat(n.slice(a))).join(\"/\")},u.sep=\"/\",u.delimiter=\":\",u.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return\".\";for(var t=e.charCodeAt(0),r=47===t,i=-1,n=!0,o=e.length-1;1<=o;--o)if(47===(t=e.charCodeAt(o))){if(!n){i=o;break}}else n=!1;return-1===i?r?\"/\":\".\":r&&1===i?\"/\":e.slice(0,i)},u.basename=function(e,t){var r=function(e){\"string\"!=typeof e&&(e+=\"\");var t,r=0,i=-1,n=!0;for(t=e.length-1;0<=t;--t)if(47===e.charCodeAt(t)){if(!n){r=t+1;break}}else-1===i&&(n=!1,i=t+1);return-1===i?\"\":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},u.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,r=0,i=-1,n=!0,o=0,a=e.length-1;0<=a;--a){var s=e.charCodeAt(a);if(47===s){if(n)continue;r=a+1;break}-1===i&&(n=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?\"\":e.slice(t,i)};var i=\"b\"===\"ab\".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e(\"_process\"))},{_process:35}],35:[function(e,t,r){var i,n,o=t.exports={};function a(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:a}catch(e){i=a}try{n=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,h=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):f=-1,h.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++f<t;)u&&u[f].run();f=-1,t=h.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new m(e,t)),1!==h.length||c||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title=\"browser\",o.browser=!0,o.env={},o.argv=[],o.version=\"\",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error(\"process.binding is not supported\")},o.cwd=function(){return\"/\"},o.chdir=function(e){throw new Error(\"process.chdir is not supported\")},o.umask=function(){return 0}},{}],36:[function(e,t,r){!function(e){\"use strict\";if(!e.fetch){var t=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,a=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i=\"FormData\"in e,n=\"ArrayBuffer\"in e;if(n)var o=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&-1<o.indexOf(Object.prototype.toString.call(e))};p.prototype.append=function(e,t){e=c(e),t=f(t);var r=this.map[e];this.map[e]=r?r+\",\"+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),d(r)},p.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),d(t)},p.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),d(r)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=[\"DELETE\",\"GET\",\"HEAD\",\"OPTIONS\",\"POST\",\"PUT\"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var h=[301,302,303,307,308];w.redirect=function(e,t){if(-1===h.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=_,e.Response=w,e.fetch=function(r,n){return new Promise(function(i,e){var t=new _(r,n),o=new XMLHttpRequest;o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||\"\",n=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach(function(e){var t=e.split(\":\"),r=t.shift().trim();if(r){var i=t.join(\":\").trim();n.append(r,i)}}),n)};t.url=\"responseURL\"in o?o.responseURL:t.headers.get(\"X-Request-URL\");var r=\"response\"in o?o.response:o.responseText;i(new w(r,t))},o.onerror=function(){e(new TypeError(\"Network request failed\"))},o.ontimeout=function(){e(new TypeError(\"Network request failed\"))},o.open(t.method,t.url,!0),\"include\"===t.credentials?o.withCredentials=!0:\"omit\"===t.credentials&&(o.withCredentials=!1),\"responseType\"in o&&a&&(o.responseType=\"blob\"),t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})},e.fetch.polyfill=!0}function c(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function f(e){return\"string\"!=typeof e&&(e=String(e)),e}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function g(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e)if(\"string\"==typeof e)this._bodyText=e;else if(a&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n&&a&&s(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error(\"unsupported BodyInit type\");this._bodyArrayBuffer=y(e)}else this._bodyText=\"\";this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,r,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join(\"\")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error(\"could not read FormData body as text\");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var r,i,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError(\"Already read\");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||\"omit\",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||\"GET\",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=t.mode||this.mode||null,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&n)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(n)}function x(e){var n=new FormData;return e.trim().split(\"&\").forEach(function(e){if(e){var t=e.split(\"=\"),r=t.shift().replace(/\\+/g,\" \"),i=t.join(\"=\").replace(/\\+/g,\" \");n.append(decodeURIComponent(r),decodeURIComponent(i))}}),n}function w(e,t){t=t||{},this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}}(\"undefined\"!=typeof self?self:this)},{}],37:[function(e,t,r){\"use strict\";var i,n=(i=e(\"./core/main\"))&&i.__esModule?i:{default:i};e(\"./core/constants\"),e(\"./core/environment\"),e(\"./core/error_helpers\"),e(\"./core/helpers\"),e(\"./core/legacy\"),e(\"./core/preload\"),e(\"./core/p5.Element\"),e(\"./core/p5.Graphics\"),e(\"./core/p5.Renderer\"),e(\"./core/p5.Renderer2D\"),e(\"./core/rendering\"),e(\"./core/shim\"),e(\"./core/structure\"),e(\"./core/transform\"),e(\"./core/shape/2d_primitives\"),e(\"./core/shape/attributes\"),e(\"./core/shape/curves\"),e(\"./core/shape/vertex\"),e(\"./color/color_conversion\"),e(\"./color/creating_reading\"),e(\"./color/p5.Color\"),e(\"./color/setting\"),e(\"./data/p5.TypedDict\"),e(\"./data/local_storage.js\"),e(\"./dom/dom\"),e(\"./events/acceleration\"),e(\"./events/keyboard\"),e(\"./events/mouse\"),e(\"./events/touch\"),e(\"./image/filters\"),e(\"./image/image\"),e(\"./image/loading_displaying\"),e(\"./image/p5.Image\"),e(\"./image/pixels\"),e(\"./io/files\"),e(\"./io/p5.Table\"),e(\"./io/p5.TableRow\"),e(\"./io/p5.XML\"),e(\"./math/calculation\"),e(\"./math/math\"),e(\"./math/noise\"),e(\"./math/p5.Vector\"),e(\"./math/random\"),e(\"./math/trigonometry\"),e(\"./typography/attributes\"),e(\"./typography/loading_displaying\"),e(\"./typography/p5.Font\"),e(\"./utilities/array_functions\"),e(\"./utilities/conversion\"),e(\"./utilities/string_functions\"),e(\"./utilities/time_date\"),e(\"./webgl/3d_primitives\"),e(\"./webgl/interaction\"),e(\"./webgl/light\"),e(\"./webgl/loading\"),e(\"./webgl/material\"),e(\"./webgl/p5.Camera\"),e(\"./webgl/p5.Geometry\"),e(\"./webgl/p5.Matrix\"),e(\"./webgl/p5.RendererGL.Immediate\"),e(\"./webgl/p5.RendererGL\"),e(\"./webgl/p5.RendererGL.Retained\"),e(\"./webgl/p5.Shader\"),e(\"./webgl/p5.RenderBuffer\"),e(\"./webgl/p5.Texture\"),e(\"./webgl/text\"),e(\"./core/init\"),t.exports=n.default},{\"./color/color_conversion\":38,\"./color/creating_reading\":39,\"./color/p5.Color\":40,\"./color/setting\":41,\"./core/constants\":42,\"./core/environment\":43,\"./core/error_helpers\":44,\"./core/helpers\":45,\"./core/init\":46,\"./core/legacy\":48,\"./core/main\":49,\"./core/p5.Element\":50,\"./core/p5.Graphics\":51,\"./core/p5.Renderer\":52,\"./core/p5.Renderer2D\":53,\"./core/preload\":54,\"./core/rendering\":55,\"./core/shape/2d_primitives\":56,\"./core/shape/attributes\":57,\"./core/shape/curves\":58,\"./core/shape/vertex\":59,\"./core/shim\":60,\"./core/structure\":61,\"./core/transform\":62,\"./data/local_storage.js\":63,\"./data/p5.TypedDict\":64,\"./dom/dom\":65,\"./events/acceleration\":66,\"./events/keyboard\":67,\"./events/mouse\":68,\"./events/touch\":69,\"./image/filters\":70,\"./image/image\":71,\"./image/loading_displaying\":72,\"./image/p5.Image\":73,\"./image/pixels\":74,\"./io/files\":75,\"./io/p5.Table\":76,\"./io/p5.TableRow\":77,\"./io/p5.XML\":78,\"./math/calculation\":79,\"./math/math\":80,\"./math/noise\":81,\"./math/p5.Vector\":82,\"./math/random\":83,\"./math/trigonometry\":84,\"./typography/attributes\":85,\"./typography/loading_displaying\":86,\"./typography/p5.Font\":87,\"./utilities/array_functions\":88,\"./utilities/conversion\":89,\"./utilities/string_functions\":90,\"./utilities/time_date\":91,\"./webgl/3d_primitives\":92,\"./webgl/interaction\":93,\"./webgl/light\":94,\"./webgl/loading\":95,\"./webgl/material\":96,\"./webgl/p5.Camera\":97,\"./webgl/p5.Geometry\":98,\"./webgl/p5.Matrix\":99,\"./webgl/p5.RenderBuffer\":100,\"./webgl/p5.RendererGL\":103,\"./webgl/p5.RendererGL.Immediate\":101,\"./webgl/p5.RendererGL.Retained\":102,\"./webgl/p5.Shader\":104,\"./webgl/p5.Texture\":105,\"./webgl/text\":106}],38:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.ColorConversion={},n.default.ColorConversion._hsbaToHSLA=function(e){var t=e[0],r=e[1],i=e[2],n=(2-r)*i/2;return 0!=n&&(1==n?r=0:n<.5?r/=2-r:r=r*i/(2-2*n)),[t,r,n,e[3]]},n.default.ColorConversion._hsbaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a,s,l=Math.floor(t),u=i*(1-r),h=i*(1-r*(t-l)),c=i*(1-r*(1+l-t));s=1===l?(o=h,a=i,u):2===l?(o=u,a=i,c):3===l?(o=u,a=h,i):4===l?(o=c,a=u,i):5===l?(o=i,a=u,h):(o=i,a=c,u),n=[o,a,s,e[3]]}return n},n.default.ColorConversion._hslaToHSBA=function(e){var t,r=e[0],i=e[1],n=e[2];return[r,i=2*((t=n<.5?(1+i)*n:n+i-n*i)-n)/t,t,e[3]]},n.default.ColorConversion._hslaToRGBA=function(e){var t=6*e[0],r=e[1],i=e[2],n=[];if(0===r)n=[i,i,i,e[3]];else{var o,a=2*i-(o=i<.5?(1+r)*i:i+r-i*r),s=function(e,t,r){return e<0?e+=6:6<=e&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};n=[s(2+t,a,o),s(t,a,o),s(t-2,a,o),e[3]]}return n},n.default.ColorConversion._rgbaToHSBA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=a-Math.min(i,n,o);return 0==s?r=t=0:(r=s/a,i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,a,e[3]]},n.default.ColorConversion._rgbaToHSLA=function(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=a+s,u=a-s;return 0==u?r=t=0:(r=l<1?u/l:u/(2-l),i===a?t=(n-o)/u:n===a?t=2+(o-i)/u:o===a&&(t=4+(i-n)/u),t<0?t+=6:6<=t&&(t-=6)),[t/6,r,l/2,e[3]]};var o=n.default.ColorConversion;r.default=o},{\"../core/main\":49}],39:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,c=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Color\"),e(\"../core/error_helpers\"),c.default.prototype.alpha=function(e){return c.default._validateParameters(\"alpha\",arguments),this.color(e)._getAlpha()},c.default.prototype.blue=function(e){return c.default._validateParameters(\"blue\",arguments),this.color(e)._getBlue()},c.default.prototype.brightness=function(e){return c.default._validateParameters(\"brightness\",arguments),this.color(e)._getBrightness()},c.default.prototype.color=function(){if(c.default._validateParameters(\"color\",arguments),arguments[0]instanceof c.default.Color)return arguments[0];var e=arguments[0]instanceof Array?arguments[0]:arguments;return new c.default.Color(this,e)},c.default.prototype.green=function(e){return c.default._validateParameters(\"green\",arguments),this.color(e)._getGreen()},c.default.prototype.hue=function(e){return c.default._validateParameters(\"hue\",arguments),this.color(e)._getHue()},c.default.prototype.lerpColor=function(e,t,r){c.default._validateParameters(\"lerpColor\",arguments);var i,n,o,a,s,l,u=this._colorMode,h=this._colorMaxes;if(u===f.RGB)s=e.levels.map(function(e){return e/255}),l=t.levels.map(function(e){return e/255});else if(u===f.HSB)e._getBrightness(),t._getBrightness(),s=e.hsba,l=t.hsba;else{if(u!==f.HSL)throw new Error(\"\".concat(u,\"cannot be used for interpolation.\"));e._getLightness(),t._getLightness(),s=e.hsla,l=t.hsla}return r=Math.max(Math.min(r,1),0),void 0===this.lerp&&(this.lerp=function(e,t,r){return r*(t-e)+e}),i=this.lerp(s[0],l[0],r),n=this.lerp(s[1],l[1],r),o=this.lerp(s[2],l[2],r),a=this.lerp(s[3],l[3],r),i*=h[u][0],n*=h[u][1],o*=h[u][2],a*=h[u][3],this.color(i,n,o,a)},c.default.prototype.lightness=function(e){return c.default._validateParameters(\"lightness\",arguments),this.color(e)._getLightness()},c.default.prototype.red=function(e){return c.default._validateParameters(\"red\",arguments),this.color(e)._getRed()},c.default.prototype.saturation=function(e){return c.default._validateParameters(\"saturation\",arguments),this.color(e)._getSaturation()};var n=c.default;r.default=n},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"./p5.Color\":40}],40:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"../core/main\")),f=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),d=i(e(\"./color_conversion\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}c.default.Color=function(e,t){if(this._storeModeAndMaxes(e._colorMode,e._colorMaxes),this.mode!==f.RGB&&this.mode!==f.HSL&&this.mode!==f.HSB)throw new Error(\"\".concat(this.mode,\" is an invalid colorMode.\"));return this._array=c.default.Color._parseInputs.apply(this,t),this._calculateLevels(),this},c.default.Color.prototype.toString=function(e){var t=this.levels,r=this._array,i=r[3];switch(e){case\"#rrggbb\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16));case\"#rrggbbaa\":return\"#\".concat(t[0]<16?\"0\".concat(t[0].toString(16)):t[0].toString(16),t[1]<16?\"0\".concat(t[1].toString(16)):t[1].toString(16),t[2]<16?\"0\".concat(t[2].toString(16)):t[2].toString(16),t[3]<16?\"0\".concat(t[2].toString(16)):t[3].toString(16));case\"#rgb\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16));case\"#rgba\":return\"#\".concat(Math.round(15*r[0]).toString(16),Math.round(15*r[1]).toString(16),Math.round(15*r[2]).toString(16),Math.round(15*r[3]).toString(16));case\"rgb\":return\"rgb(\".concat(t[0],\", \",t[1],\", \",t[2],\")\");case\"rgb%\":return\"rgb(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%)\");case\"rgba%\":return\"rgba(\".concat((100*r[0]).toPrecision(3),\"%, \",(100*r[1]).toPrecision(3),\"%, \",(100*r[2]).toPrecision(3),\"%, \",(100*r[3]).toPrecision(3),\"%)\");case\"hsb\":case\"hsv\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\")\");case\"hsb%\":case\"hsv%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsb(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%)\");case\"hsba\":case\"hsva\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat(this.hsba[0]*this.maxes[f.HSB][0],\", \",this.hsba[1]*this.maxes[f.HSB][1],\", \",this.hsba[2]*this.maxes[f.HSB][2],\", \",i,\")\");case\"hsba%\":case\"hsva%\":return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),\"hsba(\".concat((100*this.hsba[0]).toPrecision(3),\"%, \",(100*this.hsba[1]).toPrecision(3),\"%, \",(100*this.hsba[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"hsl\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\")\");case\"hsl%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%)\");case\"hsla\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsla(\".concat(this.hsla[0]*this.maxes[f.HSL][0],\", \",this.hsla[1]*this.maxes[f.HSL][1],\", \",this.hsla[2]*this.maxes[f.HSL][2],\", \",i,\")\");case\"hsla%\":return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),\"hsl(\".concat((100*this.hsla[0]).toPrecision(3),\"%, \",(100*this.hsla[1]).toPrecision(3),\"%, \",(100*this.hsla[2]).toPrecision(3),\"%, \",(100*i).toPrecision(3),\"%)\");case\"rgba\":default:return\"rgba(\".concat(t[0],\",\",t[1],\",\",t[2],\",\",i,\")\")}},c.default.Color.prototype.setRed=function(e){this._array[0]=e/this.maxes[f.RGB][0],this._calculateLevels()},c.default.Color.prototype.setGreen=function(e){this._array[1]=e/this.maxes[f.RGB][1],this._calculateLevels()},c.default.Color.prototype.setBlue=function(e){this._array[2]=e/this.maxes[f.RGB][2],this._calculateLevels()},c.default.Color.prototype.setAlpha=function(e){this._array[3]=e/this.maxes[this.mode][3],this._calculateLevels()},c.default.Color.prototype._calculateLevels=function(){for(var e=this._array,t=this.levels=new Array(e.length),r=e.length-1;0<=r;--r)t[r]=Math.round(255*e[r])},c.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},c.default.Color.prototype._storeModeAndMaxes=function(e,t){this.mode=e,this.maxes=t},c.default.Color.prototype._getMode=function(){return this.mode},c.default.Color.prototype._getMaxes=function(){return this.maxes},c.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[f.RGB][2]},c.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[f.HSB][2]},c.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[f.RGB][1]},c.default.Color.prototype._getHue=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[f.HSB][0]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[f.HSL][0])},c.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[f.HSL][2]},c.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[f.RGB][0]},c.default.Color.prototype._getSaturation=function(){return this.mode===f.HSB?(this.hsba||(this.hsba=d.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[f.HSB][1]):(this.hsla||(this.hsla=d.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[f.HSL][1])};var p={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",darkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",rebeccapurple:\"#663399\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"},n=/\\s*/,o=/(\\d{1,3})/,l=/((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/,u=new RegExp(\"\".concat(l.source,\"%\")),m={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp([\"^rgb\\\\(\",o.source,\",\",o.source,\",\",o.source,\"\\\\)$\"].join(n.source),\"i\"),RGB_PERCENT:new RegExp([\"^rgb\\\\(\",u.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA:new RegExp([\"^rgba\\\\(\",o.source,\",\",o.source,\",\",o.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),RGBA_PERCENT:new RegExp([\"^rgba\\\\(\",u.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSL:new RegExp([\"^hsl\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSLA:new RegExp([\"^hsla\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\"),HSB:new RegExp([\"^hsb\\\\(\",o.source,\",\",u.source,\",\",u.source,\"\\\\)$\"].join(n.source),\"i\"),HSBA:new RegExp([\"^hsba\\\\(\",o.source,\",\",u.source,\",\",u.source,\",\",l.source,\"\\\\)$\"].join(n.source),\"i\")};c.default.Color._parseInputs=function(e,t,r,i){var n,o=arguments.length,a=this.mode,s=this.maxes[a],l=[];if(3<=o){for(l[0]=e/s[0],l[1]=t/s[1],l[2]=r/s[2],l[3]=\"number\"==typeof i?i/s[3]:1,n=l.length-1;0<=n;--n){var u=l[n];u<0?l[n]=0:1<u&&(l[n]=1)}return a===f.HSL?d.default._hslaToRGBA(l):a===f.HSB?d.default._hsbaToRGBA(l):l}if(1===o&&\"string\"==typeof e){var h=e.trim().toLowerCase();if(p[h])return c.default.Color._parseInputs.call(this,p[h]);if(m.HEX3.test(h))return(l=m.HEX3.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255}))[3]=1,l;if(m.HEX6.test(h))return(l=m.HEX6.exec(h).slice(1).map(function(e){return parseInt(e,16)/255}))[3]=1,l;if(m.HEX4.test(h))return l=m.HEX4.exec(h).slice(1).map(function(e){return parseInt(e+e,16)/255});if(m.HEX8.test(h))return l=m.HEX8.exec(h).slice(1).map(function(e){return parseInt(e,16)/255});if(m.RGB.test(h))return(l=m.RGB.exec(h).slice(1).map(function(e){return e/255}))[3]=1,l;if(m.RGB_PERCENT.test(h))return(l=m.RGB_PERCENT.exec(h).slice(1).map(function(e){return parseFloat(e)/100}))[3]=1,l;if(m.RGBA.test(h))return l=m.RGBA.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):e/255});if(m.RGBA_PERCENT.test(h))return l=m.RGBA_PERCENT.exec(h).slice(1).map(function(e,t){return 3===t?parseFloat(e):parseFloat(e)/100});if(m.HSL.test(h)?(l=m.HSL.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSLA.test(h)&&(l=m.HSLA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),(l=l.map(function(e){return Math.max(Math.min(e,1),0)})).length)return d.default._hslaToRGBA(l);if(m.HSB.test(h)?(l=m.HSB.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:parseInt(e,10)/100}))[3]=1:m.HSBA.test(h)&&(l=m.HSBA.exec(h).slice(1).map(function(e,t){return 0===t?parseInt(e,10)/360:3===t?parseFloat(e):parseInt(e,10)/100})),l.length){for(n=l.length-1;0<=n;--n)l[n]=Math.max(Math.min(l[n],1),0);return d.default._hsbaToRGBA(l)}l=[1,1,1,1]}else{if(1!==o&&2!==o||\"number\"!=typeof e)throw new Error(\"\".concat(arguments,\"is not a valid color representation.\"));l[0]=e/s[2],l[1]=e/s[2],l[2]=e/s[2],l[3]=\"number\"==typeof t?t/s[3]:1,l=l.map(function(e){return Math.max(Math.min(e,1),0)})}return l};var h=c.default.Color;r.default=h},{\"../core/constants\":42,\"../core/main\":49,\"./color_conversion\":38}],41:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.Color\"),s.default.prototype.background=function(){var e;return(e=this._renderer).background.apply(e,arguments),this},s.default.prototype.clear=function(){return this._renderer.clear(),this},s.default.prototype.colorMode=function(e,t,r,i,n){if(s.default._validateParameters(\"colorMode\",arguments),e===l.RGB||e===l.HSB||e===l.HSL){this._colorMode=e;var o=this._colorMaxes[e];2===arguments.length?(o[0]=t,o[1]=t,o[2]=t,o[3]=t):4===arguments.length?(o[0]=t,o[1]=r,o[2]=i):5===arguments.length&&(o[0]=t,o[1]=r,o[2]=i,o[3]=n)}return this},s.default.prototype.fill=function(){var e;return this._renderer._setProperty(\"_fillSet\",!0),this._renderer._setProperty(\"_doFill\",!0),(e=this._renderer).fill.apply(e,arguments),this},s.default.prototype.noFill=function(){return this._renderer._setProperty(\"_doFill\",!1),this},s.default.prototype.noStroke=function(){return this._renderer._setProperty(\"_doStroke\",!1),this},s.default.prototype.stroke=function(){var e;return this._renderer._setProperty(\"_strokeSet\",!0),this._renderer._setProperty(\"_doStroke\",!0),(e=this._renderer).stroke.apply(e,arguments),this},s.default.prototype.erase=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:255,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:255;return this._renderer.erase(e,t),this},s.default.prototype.noErase=function(){return this._renderer.noErase(),this};var n=s.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Color\":40}],42:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.FILL=r.STROKE=r.CURVE=r.BEZIER=r.QUADRATIC=r.LINEAR=r._CTX_MIDDLE=r._DEFAULT_LEADMULT=r._DEFAULT_TEXT_FILL=r.BOLDITALIC=r.BOLD=r.ITALIC=r.NORMAL=r.BLUR=r.ERODE=r.DILATE=r.POSTERIZE=r.INVERT=r.OPAQUE=r.GRAY=r.THRESHOLD=r.BURN=r.DODGE=r.SOFT_LIGHT=r.HARD_LIGHT=r.OVERLAY=r.REPLACE=r.SCREEN=r.MULTIPLY=r.EXCLUSION=r.SUBTRACT=r.DIFFERENCE=r.LIGHTEST=r.DARKEST=r.ADD=r.REMOVE=r.BLEND=r.UP_ARROW=r.TAB=r.SHIFT=r.RIGHT_ARROW=r.RETURN=r.OPTION=r.LEFT_ARROW=r.ESCAPE=r.ENTER=r.DOWN_ARROW=r.DELETE=r.CONTROL=r.BACKSPACE=r.ALT=r.AUTO=r.HSL=r.HSB=r.RGB=r.MITER=r.BEVEL=r.ROUND=r.SQUARE=r.PROJECT=r.PIE=r.CHORD=r.OPEN=r.CLOSE=r.TESS=r.QUAD_STRIP=r.QUADS=r.TRIANGLE_STRIP=r.TRIANGLE_FAN=r.TRIANGLES=r.LINE_LOOP=r.LINE_STRIP=r.LINES=r.POINTS=r.BASELINE=r.BOTTOM=r.TOP=r.CENTER=r.LEFT=r.RIGHT=r.RADIUS=r.CORNERS=r.CORNER=r.RAD_TO_DEG=r.DEG_TO_RAD=r.RADIANS=r.DEGREES=r.TWO_PI=r.TAU=r.QUARTER_PI=r.PI=r.HALF_PI=r.WAIT=r.TEXT=r.MOVE=r.HAND=r.CROSS=r.ARROW=r.WEBGL=r.P2D=void 0,r.AXES=r.GRID=r._DEFAULT_FILL=r._DEFAULT_STROKE=r.PORTRAIT=r.LANDSCAPE=r.MIRROR=r.CLAMP=r.REPEAT=r.NEAREST=r.IMAGE=r.IMMEDIATE=r.TEXTURE=void 0;var i=Math.PI;r.P2D=\"p2d\";r.WEBGL=\"webgl\";r.ARROW=\"default\";r.CROSS=\"crosshair\";r.HAND=\"pointer\";r.MOVE=\"move\";r.TEXT=\"text\";r.WAIT=\"wait\";var n=i/2;r.HALF_PI=n;var o=i;r.PI=o;var a=i/4;r.QUARTER_PI=a;var s=2*i;r.TAU=s;var l=2*i;r.TWO_PI=l;r.DEGREES=\"degrees\";r.RADIANS=\"radians\";var u=i/180;r.DEG_TO_RAD=u;var h=180/i;r.RAD_TO_DEG=h;r.CORNER=\"corner\";r.CORNERS=\"corners\";r.RADIUS=\"radius\";r.RIGHT=\"right\";r.LEFT=\"left\";r.CENTER=\"center\";r.TOP=\"top\";r.BOTTOM=\"bottom\";r.BASELINE=\"alphabetic\";r.POINTS=0;r.LINES=1;r.LINE_STRIP=3;r.LINE_LOOP=2;r.TRIANGLES=4;r.TRIANGLE_FAN=6;r.TRIANGLE_STRIP=5;r.QUADS=\"quads\";r.QUAD_STRIP=\"quad_strip\";r.TESS=\"tess\";r.CLOSE=\"close\";r.OPEN=\"open\";r.CHORD=\"chord\";r.PIE=\"pie\";r.PROJECT=\"square\";r.SQUARE=\"butt\";r.ROUND=\"round\";r.BEVEL=\"bevel\";r.MITER=\"miter\";r.RGB=\"rgb\";r.HSB=\"hsb\";r.HSL=\"hsl\";r.AUTO=\"auto\";r.ALT=18;r.BACKSPACE=8;r.CONTROL=17;r.DELETE=46;r.DOWN_ARROW=40;r.ENTER=13;r.ESCAPE=27;r.LEFT_ARROW=37;r.OPTION=18;r.RETURN=13;r.RIGHT_ARROW=39;r.SHIFT=16;r.TAB=9;r.UP_ARROW=38;r.BLEND=\"source-over\";r.REMOVE=\"destination-out\";r.ADD=\"lighter\";r.DARKEST=\"darken\";r.LIGHTEST=\"lighten\";r.DIFFERENCE=\"difference\";r.SUBTRACT=\"subtract\";r.EXCLUSION=\"exclusion\";r.MULTIPLY=\"multiply\";r.SCREEN=\"screen\";r.REPLACE=\"copy\";r.OVERLAY=\"overlay\";r.HARD_LIGHT=\"hard-light\";r.SOFT_LIGHT=\"soft-light\";r.DODGE=\"color-dodge\";r.BURN=\"color-burn\";r.THRESHOLD=\"threshold\";r.GRAY=\"gray\";r.OPAQUE=\"opaque\";r.INVERT=\"invert\";r.POSTERIZE=\"posterize\";r.DILATE=\"dilate\";r.ERODE=\"erode\";r.BLUR=\"blur\";r.NORMAL=\"normal\";r.ITALIC=\"italic\";r.BOLD=\"bold\";r.BOLDITALIC=\"bold italic\";r._DEFAULT_TEXT_FILL=\"#000000\";r._DEFAULT_LEADMULT=1.25;r._CTX_MIDDLE=\"middle\";r.LINEAR=\"linear\";r.QUADRATIC=\"quadratic\";r.BEZIER=\"bezier\";r.CURVE=\"curve\";r.STROKE=\"stroke\";r.FILL=\"fill\";r.TEXTURE=\"texture\";r.IMMEDIATE=\"immediate\";r.IMAGE=\"image\";r.NEAREST=\"nearest\";r.REPEAT=\"repeat\";r.CLAMP=\"clamp\";r.MIRROR=\"mirror\";r.LANDSCAPE=\"landscape\";r.PORTRAIT=\"portrait\";r._DEFAULT_STROKE=\"#000000\";r._DEFAULT_FILL=\"#FFFFFF\";r.GRID=\"grid\";r.AXES=\"axes\"},{}],43:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var l=[o.ARROW,o.CROSS,o.HAND,o.MOVE,o.TEXT,o.WAIT];n.default.prototype._frameRate=0,n.default.prototype._lastFrameTime=window.performance.now(),n.default.prototype._targetFrameRate=60;var u=window.print;function h(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}function c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}n.default.prototype.print=function(){var e;arguments.length?(e=console).log.apply(e,arguments):u()},n.default.prototype.frameCount=0,n.default.prototype.deltaTime=0,n.default.prototype.focused=document.hasFocus(),n.default.prototype.cursor=function(e,t,r){var i=\"auto\",n=this._curElement.elt;if(l.includes(e))i=e;else if(\"string\"==typeof e){var o=\"\";t&&r&&\"number\"==typeof t&&\"number\"==typeof r&&(o=\"\".concat(t,\" \").concat(r)),i=\"http://\"===e.substring(0,7)||\"https://\"===e.substring(0,8)?\"url(\".concat(e,\") \").concat(o,\", auto\"):/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(e)?\"url(\".concat(e,\") \").concat(o,\", auto\"):e}n.style.cursor=i},n.default.prototype.frameRate=function(e){return n.default._validateParameters(\"frameRate\",arguments),\"number\"!=typeof e||e<0?this._frameRate:(this._setProperty(\"_targetFrameRate\",e),0===e&&this._setProperty(\"_frameRate\",e),this)},n.default.prototype.getFrameRate=function(){return this.frameRate()},n.default.prototype.setFrameRate=function(e){return this.frameRate(e)},n.default.prototype.noCursor=function(){this._curElement.elt.style.cursor=\"none\"},n.default.prototype.displayWidth=screen.width,n.default.prototype.displayHeight=screen.height,n.default.prototype.windowWidth=h(),n.default.prototype.windowHeight=c(),n.default.prototype._onresize=function(e){this._setProperty(\"windowWidth\",h()),this._setProperty(\"windowHeight\",c());var t,r=this._isGlobal?window:this;\"function\"==typeof r.windowResized&&(void 0===(t=r.windowResized(e))||t||e.preventDefault())},n.default.prototype.width=0,n.default.prototype.height=0,n.default.prototype.fullscreen=function(e){if(n.default._validateParameters(\"fullscreen\",arguments),void 0===e)return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;e?function(e){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))throw new Error(\"Fullscreen not enabled in this browser.\");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}(document.documentElement):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},n.default.prototype.pixelDensity=function(e){var t;return n.default._validateParameters(\"pixelDensity\",arguments),\"number\"==typeof e?(e!==this._pixelDensity&&(this._pixelDensity=e),(t=this).resizeCanvas(this.width,this.height,!0)):t=this._pixelDensity,t},n.default.prototype.displayDensity=function(){return window.devicePixelRatio},n.default.prototype.getURL=function(){return location.href},n.default.prototype.getURLPath=function(){return location.pathname.split(\"/\").filter(function(e){return\"\"!==e})},n.default.prototype.getURLParams=function(){for(var e,t=/[?&]([^&=]+)(?:[&=])([^&=]+)/gim,r={};null!=(e=t.exec(location.search));)e.index===t.lastIndex&&t.lastIndex++,r[e[1]]=e[2];return r};var f=n.default;r.default=f},{\"./constants\":42,\"./main\":49}],44:[function(r,e,t){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var i,n=(i=r(\"./main\"))&&i.__esModule?i:{default:i},o=(function(e){if(e&&e.__esModule)return;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return;var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r)}(r(\"./constants\")),r(\"./internationalization\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default._validateParameters=n.default._friendlyFileLoadError=n.default._friendlyError=function(){};function l(){function e(r){return Object.getOwnPropertyNames(r).filter(function(e){return\"_\"!==e[0]&&(!(e in t)&&(t[e]=!0))}).map(function(e){var t;return t=\"function\"==typeof r[e]?\"function\":e===e.toUpperCase()?\"constant\":\"variable\",{name:e,type:t}})}var t={};(h=[].concat(e(n.default.prototype),e(r(\"./constants\")))).sort(function(e,t){return t.name.length-e.name.length})}function u(r,i){i=i||console.log.bind(console),h||l(),h.some(function(e){if(r.message&&null!==r.message.match(\"\\\\W?\".concat(e.name,\"\\\\W\"))){var t=\"function\"===e.type?\"\".concat(e.name,\"()\"):e.name;return i((0,o.translator)(\"fes.misusedTopLevel\",{symbolName:t,symbolType:e.type,link:\"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup\"})),!0}})}var h=null;n.default.prototype._helpForMisusedAtTopLevelCode=u,\"complete\"!==document.readyState&&(window.addEventListener(\"error\",u,!1),window.addEventListener(\"load\",function(){window.removeEventListener(\"error\",u,!1)}));var c=n.default;t.default=c},{\"../../docs/reference/data.json\":void 0,\"./constants\":42,\"./internationalization\":47,\"./main\":49}],45:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var i={modeAdjust:function(e,t,r,i,n){return n===o.CORNER?{x:e,y:t,w:r,h:i}:n===o.CORNERS?{x:e,y:t,w:r-e,h:i-t}:n===o.RADIUS?{x:e-r,y:t-i,w:2*r,h:2*i}:n===o.CENTER?{x:e-.5*r,y:t-.5*i,w:r,h:i}:void 0}};r.default=i},{\"./constants\":42}],46:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./internationalization\");var o=Promise.resolve();Promise.all([new Promise(function(e,t){\"complete\"===document.readyState?e():window.addEventListener(\"load\",e,!1)}),o]).then(function(){window.mocha||(window.setup&&\"function\"==typeof window.setup||window.draw&&\"function\"==typeof window.draw)&&!n.default.instance&&new n.default})},{\"../core/main\":49,\"./internationalization\":47}],47:[function(e,t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.initialize=i.translator=void 0;var n=r(e(\"i18next\")),o=r(e(\"i18next-browser-languagedetector\")),a=r(e(\"../../translations\"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){return console.debug(\"p5.js translator called before translations were loaded\"),\"\"};i.translator=s;i.initialize=function(){return new Promise(function(t,r){n.default.use(o.default).init({fallbackLng:\"en\",nestingPrefix:\"$tr(\",nestingSuffix:\")\",defaultNS:\"translation\",interpolation:{escapeValue:!1},detection:{checkWhitelist:!1},resources:a.default}).then(function(e){i.translator=s=e,t()},function(e){return r(\"Translations failed to load (\".concat(e,\")\"))})})}},{\"../../translations\":109,i18next:29,\"i18next-browser-languagedetector\":26}],48:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.pushStyle=function(){throw new Error(\"pushStyle() not used, see push()\")},n.default.prototype.popStyle=function(){throw new Error(\"popStyle() not used, see pop()\")},n.default.prototype.popMatrix=function(){throw new Error(\"popMatrix() not used, see pop()\")},n.default.prototype.pushMatrix=function(){throw new Error(\"pushMatrix() not used, see push()\")};var o=n.default;r.default=o},{\"./main\":49}],49:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0,e(\"./shim\");var i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=function(){function _(e,t,r){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,_),this._setupDone=!1,this._pixelDensity=Math.ceil(window.devicePixelRatio)||1,this._userNode=t,this._curElement=null,this._elements=[],this._glAttributes=null,this._requestAnimId=0,this._preloadCount=0,this._isGlobal=!1,this._loop=!0,this._initializeInstanceVariables(),this._defaultCanvasSize={width:100,height:100},this._events={mousemove:null,mousedown:null,mouseup:null,dragend:null,dragover:null,click:null,dblclick:null,mouseover:null,mouseout:null,keydown:null,keyup:null,keypress:null,touchstart:null,touchmove:null,touchend:null,resize:null,blur:null},this._millisStart=-1,this._lcg_random_state=null,this._gaussian_previous=!1,this._events.wheel=null,this._loadingScreenId=\"p5_loading\",this._registeredMethods={};var i=Object.getOwnPropertyNames(_.prototype._registeredMethods),n=!0,o=!1,a=void 0;try{for(var s,l=i[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var u=s.value;this._registeredMethods[u]=_.prototype._registeredMethods[u].slice()}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}window.DeviceOrientationEvent&&(this._events.deviceorientation=null),window.DeviceMotionEvent&&!window._isNodeWebkit&&(this._events.devicemotion=null),this._start=function(){f._userNode&&\"string\"==typeof f._userNode&&(f._userNode=document.getElementById(f._userNode));var e=(f._isGlobal?window:f).preload;if(e){var t=document.getElementById(f._loadingScreenId);if(!t)(t=document.createElement(\"div\")).innerHTML=\"Loading...\",t.style.position=\"absolute\",t.id=f._loadingScreenId,(f._userNode||document.body).appendChild(t);var r=f._preloadMethods;for(var i in r){r[i]=r[i]||_;var n=r[i];n!==_.prototype&&n!==_||(f._isGlobal&&(window[i]=f._wrapPreload(f,i)),n=f),f._registeredPreloadMethods[i]=n[i],n[i]=f._wrapPreload(n,i)}e(),f._runIfPreloadsAreDone()}else f._setup(),f._draw()},this._runIfPreloadsAreDone=function(){var e=this._isGlobal?window:this;if(0===e._preloadCount){var t=document.getElementById(e._loadingScreenId);t&&t.parentNode.removeChild(t),this._lastFrameTime=window.performance.now(),e._setup(),e._draw()}},this._decrementPreload=function(){var e=this._isGlobal?window:this;\"function\"==typeof e.preload&&(e._setProperty(\"_preloadCount\",e._preloadCount-1),e._runIfPreloadsAreDone())},this._wrapPreload=function(i,n){var o=this;return function(){o._incrementPreload();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o._registeredPreloadMethods[n].apply(i,t)}},this._incrementPreload=function(){var e=this._isGlobal?window:this;e._setProperty(\"_preloadCount\",e._preloadCount+1)},this._setup=function(){f.createCanvas(f._defaultCanvasSize.width,f._defaultCanvasSize.height,\"p2d\");var e=f._isGlobal?window:f;if(\"function\"==typeof e.preload)for(var t in f._preloadMethods)e[t]=f._preloadMethods[t][t],e[t]&&f&&(e[t]=e[t].bind(f));f._millisStart=window.performance.now(),\"function\"==typeof e.setup&&e.setup();var r=document.getElementsByTagName(\"canvas\"),i=!0,n=!1,o=void 0;try{for(var a,s=r[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;\"true\"===l.dataset.hidden&&(l.style.visibility=\"\",delete l.dataset.hidden)}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}f._lastFrameTime=window.performance.now(),f._setupDone=!0},this._draw=function(){var e=window.performance.now(),t=e-f._lastFrameTime,r=1e3/f._targetFrameRate;(!f._loop||r-5<=t)&&(f.redraw(),f._frameRate=1e3/(e-f._lastFrameTime),f.deltaTime=e-f._lastFrameTime,f._setProperty(\"deltaTime\",f.deltaTime),f._lastFrameTime=e,void 0!==f._updateMouseCoords&&(f._updateMouseCoords(),f._setProperty(\"movedX\",0),f._setProperty(\"movedY\",0))),f._loop&&(f._requestAnimId=window.requestAnimationFrame(f._draw))},this._setProperty=function(e,t){f[e]=t,f._isGlobal&&(window[e]=t)},this.remove=function(){var e=document.getElementById(f._loadingScreenId);if(e&&(e.parentNode.removeChild(e),f._incrementPreload()),f._curElement){for(var t in f._loop=!1,f._requestAnimId&&window.cancelAnimationFrame(f._requestAnimId),f._events)window.removeEventListener(t,f._events[t]);var r=!0,i=!1,n=void 0;try{for(var o,a=f._elements[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;for(var l in s.elt&&s.elt.parentNode&&s.elt.parentNode.removeChild(s.elt),s._events)s.elt.removeEventListener(l,s._events[l])}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var u=f;f._registeredMethods.remove.forEach(function(e){void 0!==e&&e.call(u)})}if(f._isGlobal){for(var h in _.prototype)try{delete window[h]}catch(e){window[h]=void 0}for(var c in f)if(f.hasOwnProperty(c))try{delete window[c]}catch(e){window[c]=void 0}_.instance=null}},this._registeredMethods.init.forEach(function(e){void 0!==e&&e.call(this)},this),this._setupPromisePreloads();var h=this._createFriendlyGlobalFunctionBinder();if(e)e(this);else{for(var c in this._isGlobal=!0,_.instance=this,_.prototype)if(\"function\"==typeof _.prototype[c]){var d=c.substring(2);this._events.hasOwnProperty(d)||(Math.hasOwnProperty(c)&&Math[c]===_.prototype[c]?h(c,_.prototype[c]):h(c,_.prototype[c].bind(this)))}else h(c,_.prototype[c]);for(var p in this)this.hasOwnProperty(p)&&h(p,this[p])}for(var m in this._events){var g=this[\"_on\".concat(m)];if(g){var v=g.bind(this);window.addEventListener(m,v,{passive:!1}),this._events[m]=v}}function y(){f._setProperty(\"focused\",!0)}function b(){f._setProperty(\"focused\",!1)}window.addEventListener(\"focus\",y),window.addEventListener(\"blur\",b),this.registerMethod(\"remove\",function(){window.removeEventListener(\"focus\",y),window.removeEventListener(\"blur\",b)}),\"complete\"===document.readyState?this._start():window.addEventListener(\"load\",this._start.bind(this),!1)}var e,t,r;return e=_,(t=[{key:\"_initializeInstanceVariables\",value:function(){this._styles=[],this._bezierDetail=20,this._curveDetail=20,this._colorMode=i.RGB,this._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},this._downKeys={}}},{key:\"registerPreloadMethod\",value:function(e,t){_.prototype._preloadMethods.hasOwnProperty(e)||(_.prototype._preloadMethods[e]=t)}},{key:\"registerMethod\",value:function(e,t){var r=this||_.prototype;r._registeredMethods.hasOwnProperty(e)||(r._registeredMethods[e]=[]),r._registeredMethods[e].push(t)}},{key:\"_createFriendlyGlobalFunctionBinder\",value:function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.globalObject||window;t.log||console.log.bind(console);return function(e,t){r[e]=t}}}])&&n(e.prototype,t),r&&n(e,r),_}();for(var l in o.instance=null,o.disableFriendlyErrors=!1,i)o.prototype[l]=i[l];o.prototype._preloadMethods={loadJSON:o.prototype,loadImage:o.prototype,loadStrings:o.prototype,loadXML:o.prototype,loadBytes:o.prototype,loadTable:o.prototype,loadFont:o.prototype,loadModel:o.prototype,loadShader:o.prototype},o.prototype._registeredMethods={init:[],pre:[],post:[],remove:[]},o.prototype._registeredPreloadMethods={};var u=o;r.default=u},{\"./constants\":42,\"./shim\":60}],50:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.Element=function(e,t){this.elt=e,this._pInst=this._pixelsState=t,this._events={},this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight},n.default.Element.prototype.parent=function(e){return void 0===e?this.elt.parentNode:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof n.default.Element&&(e=e.elt),e.appendChild(this.elt),this)},n.default.Element.prototype.id=function(e){return void 0===e?this.elt.id:(this.elt.id=e,this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this)},n.default.Element.prototype.class=function(e){return void 0===e?this.elt.className:(this.elt.className=e,this)},n.default.Element.prototype.mousePressed=function(t){return n.default.Element._adjustListener(\"mousedown\",function(e){return this._pInst._setProperty(\"mouseIsPressed\",!0),this._pInst._setMouseButton(e),t.call(this)},this),this},n.default.Element.prototype.doubleClicked=function(e){return n.default.Element._adjustListener(\"dblclick\",e,this),this},n.default.Element.prototype.mouseWheel=function(e){return n.default.Element._adjustListener(\"wheel\",e,this),this},n.default.Element.prototype.mouseReleased=function(e){return n.default.Element._adjustListener(\"mouseup\",e,this),this},n.default.Element.prototype.mouseClicked=function(e){return n.default.Element._adjustListener(\"click\",e,this),this},n.default.Element.prototype.mouseMoved=function(e){return n.default.Element._adjustListener(\"mousemove\",e,this),this},n.default.Element.prototype.mouseOver=function(e){return n.default.Element._adjustListener(\"mouseover\",e,this),this},n.default.Element.prototype.mouseOut=function(e){return n.default.Element._adjustListener(\"mouseout\",e,this),this},n.default.Element.prototype.touchStarted=function(e){return n.default.Element._adjustListener(\"touchstart\",e,this),this},n.default.Element.prototype.touchMoved=function(e){return n.default.Element._adjustListener(\"touchmove\",e,this),this},n.default.Element.prototype.touchEnded=function(e){return n.default.Element._adjustListener(\"touchend\",e,this),this},n.default.Element.prototype.dragOver=function(e){return n.default.Element._adjustListener(\"dragover\",e,this),this},n.default.Element.prototype.dragLeave=function(e){return n.default.Element._adjustListener(\"dragleave\",e,this),this},n.default.Element._adjustListener=function(e,t,r){return!1===t?n.default.Element._detachListener(e,r):n.default.Element._attachListener(e,t,r),this},n.default.Element._attachListener=function(e,t,r){r._events[e]&&n.default.Element._detachListener(e,r);var i=t.bind(r);r.elt.addEventListener(e,i,!1),r._events[e]=i},n.default.Element._detachListener=function(e,t){var r=t._events[e];t.elt.removeEventListener(e,r,!1),t._events[e]=null},n.default.Element.prototype._setProperty=function(e,t){this[e]=t};var o=n.default.Element;r.default=o},{\"./main\":49}],51:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}s.default.Graphics=function(e,t,r,i){var n=r||l.P2D;this.canvas=document.createElement(\"canvas\");var o=i._userNode||document.body;for(var a in o.appendChild(this.canvas),s.default.Element.call(this,this.canvas,i),s.default.prototype)this[a]||(\"function\"==typeof s.default.prototype[a]?this[a]=s.default.prototype[a].bind(this):this[a]=s.default.prototype[a]);return s.default.prototype._initializeInstanceVariables.apply(this),this.width=e,this.height=t,this._pixelDensity=i._pixelDensity,n===l.WEBGL?this._renderer=new s.default.RendererGL(this.canvas,this,!1):this._renderer=new s.default.Renderer2D(this.canvas,this,!1),i._elements.push(this),this._renderer.resize(e,t),this._renderer._applyDefaults(),this},s.default.Graphics.prototype=Object.create(s.default.Element.prototype),s.default.Graphics.prototype.reset=function(){this._renderer.resetMatrix(),this._renderer.isP3D&&this._renderer._update()},s.default.Graphics.prototype.remove=function(){this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt);var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t])};var n=s.default.Graphics;r.default=n},{\"./constants\":42,\"./main\":49}],52:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"./main\"))&&i.__esModule?i:{default:i},y=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==s(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function u(e){var t=0,r=0;if(e.offsetParent)for(;t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;);else t+=e.offsetLeft,r+=e.offsetTop;return[t,r]}l.default.Renderer=function(e,t,r){l.default.Element.call(this,e,t),this.canvas=e,this._pixelsState=t,r?(this._isMainCanvas=!0,this._pInst._setProperty(\"_curElement\",this),this._pInst._setProperty(\"canvas\",this.canvas),this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height)):(this.canvas.style.display=\"none\",this._styles=[]),this._textSize=12,this._textLeading=15,this._textFont=\"sans-serif\",this._textStyle=y.NORMAL,this._textAscent=null,this._textDescent=null,this._textAlign=y.LEFT,this._textBaseline=y.BASELINE,this._rectMode=y.CORNER,this._ellipseMode=y.CENTER,this._curveTightness=0,this._imageMode=y.CORNER,this._tint=null,this._doStroke=!0,this._doFill=!0,this._strokeSet=!1,this._fillSet=!1},l.default.Renderer.prototype=Object.create(l.default.Element.prototype),l.default.Renderer.prototype.push=function(){return{properties:{_doStroke:this._doStroke,_strokeSet:this._strokeSet,_doFill:this._doFill,_fillSet:this._fillSet,_tint:this._tint,_imageMode:this._imageMode,_rectMode:this._rectMode,_ellipseMode:this._ellipseMode,_textFont:this._textFont,_textLeading:this._textLeading,_textSize:this._textSize,_textAlign:this._textAlign,_textBaseline:this._textBaseline,_textStyle:this._textStyle}}},l.default.Renderer.prototype.pop=function(e){e.properties&&Object.assign(this,e.properties)},l.default.Renderer.prototype.resize=function(e,t){this.width=e,this.height=t,this.elt.width=e*this._pInst._pixelDensity,this.elt.height=t*this._pInst._pixelDensity,this.elt.style.width=\"\".concat(e,\"px\"),this.elt.style.height=\"\".concat(t,\"px\"),this._isMainCanvas&&(this._pInst._setProperty(\"width\",this.width),this._pInst._setProperty(\"height\",this.height))},l.default.Renderer.prototype.get=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity,a=this.canvas;if(void 0===e&&void 0===t)e=t=0,r=n.width,i=n.height;else if(e*=o,t*=o,void 0===r&&void 0===i)return e<0||t<0||e>=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new l.default.Image(r,i);return s.canvas.getContext(\"2d\").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},l.default.Renderer.prototype.textLeading=function(e){return\"number\"==typeof e?(this._setProperty(\"_textLeading\",e),this._pInst):this._textLeading},l.default.Renderer.prototype.textSize=function(e){return\"number\"==typeof e?(this._setProperty(\"_textSize\",e),this._setProperty(\"_textLeading\",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},l.default.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty(\"_textStyle\",e),this._applyTextProperties()):this._textStyle},l.default.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},l.default.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},l.default.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty(\"_textAlign\",e),void 0!==t&&this._setProperty(\"_textBaseline\",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},l.default.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,l,u,h,c,f,d=this._pInst,p=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if(\"string\"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\\t)/g,\"  \")).split(\"\\n\"),void 0!==i){for(s=f=0;s<o.length;s++)for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)?(u=\"\".concat(c[a],\" \"),f+=d.textLeading()):u=h;switch(this._rectMode===y.CENTER&&(t-=i/2,r-=n/2),this._textAlign){case y.CENTER:t+=i/2;break;case y.RIGHT:t+=i}var m=!1;if(void 0!==n){switch(this._textBaseline){case y.BOTTOM:r+=n-f;break;case y.CENTER:r+=(n-f)/2;break;case y.BASELINE:m=!0,this._textBaseline=y.TOP}p=r+n-d.textAscent()}for(s=0;s<o.length;s++){for(u=\"\",c=o[s].split(\" \"),a=0;a<c.length;a++)h=\"\".concat(u+c[a],\" \"),i<this.textWidth(h)&&0<u.length?(this._renderText(d,u,t,r,p),u=\"\".concat(c[a],\" \"),r+=d.textLeading()):u=h;this._renderText(d,u,t,r,p),r+=d.textLeading(),m&&(this._textBaseline=y.BASELINE)}}else{var g=0,v=d.textAlign().vertical;for(v===y.CENTER?g=(o.length-1)*d.textLeading()/2:v===y.BOTTOM&&(g=(o.length-1)*d.textLeading()),l=0;l<o.length;l++)this._renderText(d,o[l],t,r-g,p),r+=d.textLeading()}return d}},l.default.Renderer.prototype._applyDefaults=function(){return this},l.default.Renderer.prototype._isOpenType=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this._textFont;return\"object\"===s(e)&&e.font&&e.font.supported},l.default.Renderer.prototype._updateTextMetrics=function(){if(this._isOpenType())return this._setProperty(\"_textAscent\",this._textFont._textAscent()),this._setProperty(\"_textDescent\",this._textFont._textDescent()),this;var e=document.createElement(\"span\");e.style.fontFamily=this._textFont,e.style.fontSize=\"\".concat(this._textSize,\"px\"),e.innerHTML=\"ABCjgq|\";var t=document.createElement(\"div\");t.style.display=\"inline-block\",t.style.width=\"1px\",t.style.height=\"0px\";var r=document.createElement(\"div\");r.appendChild(e),r.appendChild(t),r.style.height=\"0px\",r.style.overflow=\"hidden\",document.body.appendChild(r),t.style.verticalAlign=\"baseline\";var i=u(t),n=u(e),o=i[1]-n[1];t.style.verticalAlign=\"bottom\",i=u(t),n=u(e);var a=i[1]-n[1]-o;return document.body.removeChild(r),this._setProperty(\"_textAscent\",o),this._setProperty(\"_textDescent\",a),this};var n=l.default.Renderer;r.default=n},{\"../core/constants\":42,\"./main\":49}],53:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var c=i(e(\"./main\")),p=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\")),f=i(e(\"../image/filters\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"./p5.Renderer\");var g=\"rgba(0,0,0,0)\";c.default.Renderer2D=function(e,t,r){return c.default.Renderer.call(this,e,t,r),this.drawingContext=this.canvas.getContext(\"2d\"),this._pInst._setProperty(\"drawingContext\",this.drawingContext),this},c.default.Renderer2D.prototype=Object.create(c.default.Renderer.prototype),c.default.Renderer2D.prototype._applyDefaults=function(){this._cachedFillStyle=this._cachedStrokeStyle=void 0,this._cachedBlendMode=p.BLEND,this._setFill(p._DEFAULT_FILL),this._setStroke(p._DEFAULT_STROKE),this.drawingContext.lineCap=p.ROUND,this.drawingContext.font=\"normal 12px sans-serif\"},c.default.Renderer2D.prototype.resize=function(e,t){c.default.Renderer.prototype.resize.call(this,e,t),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity)},c.default.Renderer2D.prototype.background=function(){if(this.drawingContext.save(),this.resetMatrix(),(arguments.length<=0?void 0:arguments[0])instanceof c.default.Image)this._pInst.image(arguments.length<=0?void 0:arguments[0],0,0,this.width,this.height);else{var e,t=this._getFill(),r=(e=this._pInst).color.apply(e,arguments).toString();this._setFill(r),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.fillRect(0,0,this.width,this.height),this._setFill(t),this._isErasing&&this._pInst.erase()}this.drawingContext.restore()},c.default.Renderer2D.prototype.clear=function(){this.drawingContext.save(),this.resetMatrix(),this.drawingContext.clearRect(0,0,this.width,this.height),this.drawingContext.restore()},c.default.Renderer2D.prototype.fill=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setFill(t.toString())},c.default.Renderer2D.prototype.stroke=function(){var e,t=(e=this._pInst).color.apply(e,arguments);this._setStroke(t.toString())},c.default.Renderer2D.prototype.erase=function(e,t){if(!this._isErasing){this._cachedFillStyle=this.drawingContext.fillStyle;var r=this._pInst.color(255,e).toString();this.drawingContext.fillStyle=r,this._cachedStrokeStyle=this.drawingContext.strokeStyle;var i=this._pInst.color(255,t).toString();this.drawingContext.strokeStyle=i;var n=this._cachedBlendMode;this.blendMode(p.REMOVE),this._cachedBlendMode=n,this._isErasing=!0}},c.default.Renderer2D.prototype.noErase=function(){this._isErasing&&(this.drawingContext.fillStyle=this._cachedFillStyle,this.drawingContext.strokeStyle=this._cachedStrokeStyle,this.blendMode(this._cachedBlendMode),this._isErasing=!1)},c.default.Renderer2D.prototype.image=function(e,t,r,i,n,o,a,s,l){var u;e.gifProperties&&e._animateGif(this._pInst);try{this._tint&&(c.default.MediaElement&&e instanceof c.default.MediaElement&&e.loadPixels(),e.canvas&&(u=this._getTintedImageCanvas(e))),u=u||(e.canvas||e.elt);var h=1;e.width&&0<e.width&&(h=u.width/e.width),this._isErasing&&this.blendMode(this._cachedBlendMode),this.drawingContext.drawImage(u,h*t,h*r,h*i,h*n,o,a,s,l),this._isErasing&&this._pInst.erase()}catch(e){if(\"NS_ERROR_NOT_AVAILABLE\"!==e.name)throw e}},c.default.Renderer2D.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=f.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._tint[0]/255,o[a+1]=l*this._tint[1]/255,o[a+2]=u*this._tint[2]/255,o[a+3]=h*this._tint[3]/255}return i.putImageData(n,0,0),r},c.default.Renderer2D.prototype.blendMode=function(e){if(e===p.SUBTRACT)console.warn(\"blendMode(SUBTRACT) only works in WEBGL mode.\");else{if(e!==p.BLEND&&e!==p.REMOVE&&e!==p.DARKEST&&e!==p.LIGHTEST&&e!==p.DIFFERENCE&&e!==p.MULTIPLY&&e!==p.EXCLUSION&&e!==p.SCREEN&&e!==p.REPLACE&&e!==p.OVERLAY&&e!==p.HARD_LIGHT&&e!==p.SOFT_LIGHT&&e!==p.DODGE&&e!==p.BURN&&e!==p.ADD)throw new Error(\"Mode \".concat(e,\" not recognized.\"));this._cachedBlendMode=e,this.drawingContext.globalCompositeOperation=e}},c.default.Renderer2D.prototype.blend=function(){for(var e=this.drawingContext.globalCompositeOperation,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[r.length-1],o=Array.prototype.slice.call(r,0,r.length-1);this.drawingContext.globalCompositeOperation=n,c.default.prototype.copy.apply(this,o),this.drawingContext.globalCompositeOperation=e},c.default.Renderer2D.prototype._getPixel=function(e,t){var r;return[(r=this.drawingContext.getImageData(e,t,1,1).data)[0],r[1],r[2],r[3]]},c.default.Renderer2D.prototype.loadPixels=function(){var e=this._pixelsState,t=e._pixelDensity,r=this.width*t,i=this.height*t,n=this.drawingContext.getImageData(0,0,r,i);e._setProperty(\"imageData\",n),e._setProperty(\"pixels\",n.data)},c.default.Renderer2D.prototype.set=function(e,t,r){e=Math.floor(e),t=Math.floor(t);var i=this._pixelsState;if(r instanceof c.default.Image)this.drawingContext.save(),this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(i._pixelDensity,i._pixelDensity),this.drawingContext.drawImage(r.canvas,e,t),this.drawingContext.restore();else{var n=0,o=0,a=0,s=0,l=4*(t*i._pixelDensity*(this.width*i._pixelDensity)+e*i._pixelDensity);if(i.imageData||i.loadPixels.call(i),\"number\"==typeof r)l<i.pixels.length&&(a=o=n=r,s=255);else if(r instanceof Array){if(r.length<4)throw new Error(\"pixel array must be of the form [R, G, B, A]\");l<i.pixels.length&&(n=r[0],o=r[1],a=r[2],s=r[3])}else r instanceof c.default.Color&&l<i.pixels.length&&(n=r.levels[0],o=r.levels[1],a=r.levels[2],s=r.levels[3]);for(var u=0;u<i._pixelDensity;u++)for(var h=0;h<i._pixelDensity;h++)l=4*((t*i._pixelDensity+h)*this.width*i._pixelDensity+(e*i._pixelDensity+u)),i.pixels[l]=n,i.pixels[l+1]=o,i.pixels[l+2]=a,i.pixels[l+3]=s}},c.default.Renderer2D.prototype.updatePixels=function(e,t,r,i){var n=this._pixelsState,o=n._pixelDensity;void 0===e&&void 0===t&&void 0===r&&void 0===i&&(t=e=0,r=this.width,i=this.height),e*=o,t*=o,r*=o,i*=o,this.gifProperties&&(this.gifProperties.frames[this.gifProperties.displayIndex].image=n.imageData),this.drawingContext.putImageData(n.imageData,e,t,0,0,r,i)},c.default.Renderer2D.prototype._acuteArcToBezier=function(e,t){var r=t/2,i=Math.cos(r),n=Math.sin(r),o=1/Math.tan(r),a=e+r,s=Math.cos(a),l=Math.sin(a),u=(4-i)/3,h=n+(i-u)*o;return{ax:Math.cos(e).toFixed(7),ay:Math.sin(e).toFixed(7),bx:(u*s+h*l).toFixed(7),by:(u*l-h*s).toFixed(7),cx:(u*s-h*l).toFixed(7),cy:(u*l+h*s).toFixed(7),dx:Math.cos(e+t).toFixed(7),dy:Math.sin(e+t).toFixed(7)}},c.default.Renderer2D.prototype.arc=function(r,i,e,t,n,o,a){var s=this.drawingContext,l=e/2,u=t/2,h=0,c=[];for(r+=l,i+=u;1e-5<=o-n;)h=Math.min(o-n,p.HALF_PI),c.push(this._acuteArcToBezier(n,h)),n+=h;return this._doFill&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a!==p.PIE&&null!=a||s.lineTo(r,i),s.closePath(),s.fill()),this._doStroke&&(s.beginPath(),c.forEach(function(e,t){0===t&&s.moveTo(r+e.ax*l,i+e.ay*u),s.bezierCurveTo(r+e.bx*l,i+e.by*u,r+e.cx*l,i+e.cy*u,r+e.dx*l,i+e.dy*u)}),a===p.PIE?(s.lineTo(r,i),s.closePath()):a===p.CHORD&&s.closePath(),s.stroke()),this},c.default.Renderer2D.prototype.ellipse=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=parseFloat(e[0]),o=parseFloat(e[1]),a=parseFloat(e[2]),s=parseFloat(e[3]);if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;var l=a/2*.5522847498,u=s/2*.5522847498,h=n+a,c=o+s,f=n+a/2,d=o+s/2;t.beginPath(),t.moveTo(n,d),t.bezierCurveTo(n,d-u,f-l,o,f,o),t.bezierCurveTo(f+l,o,h,d-u,h,d),t.bezierCurveTo(h,d+u,f+l,c,f,c),t.bezierCurveTo(f-l,c,n,d+u,n,d),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.line=function(e,t,r,i){var n=this.drawingContext;return this._doStroke&&(this._getStroke()===g||(n.beginPath(),n.moveTo(e,t),n.lineTo(r,i),n.stroke())),this},c.default.Renderer2D.prototype.point=function(e,t){var r=this.drawingContext;if(!this._doStroke)return this;if(this._getStroke()===g)return this;var i=this._getStroke(),n=this._getFill();e=Math.round(e),t=Math.round(t),this._setFill(i),1<r.lineWidth?(r.beginPath(),r.arc(e,t,r.lineWidth/2,0,p.TWO_PI,!1),r.fill()):r.fillRect(e,t,1,1),this._setFill(n)},c.default.Renderer2D.prototype.quad=function(e,t,r,i,n,o,a,s){var l=this.drawingContext,u=this._doFill,h=this._doStroke;if(u&&!h){if(this._getFill()===g)return this}else if(!u&&h&&this._getStroke()===g)return this;return l.beginPath(),l.moveTo(e,t),l.lineTo(r,i),l.lineTo(n,o),l.lineTo(a,s),l.closePath(),u&&l.fill(),h&&l.stroke(),this},c.default.Renderer2D.prototype.rect=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=this.drawingContext,h=this._doFill,c=this._doStroke;if(h&&!c){if(this._getFill()===g)return this}else if(!h&&c&&this._getStroke()===g)return this;if(u.beginPath(),void 0===o)u.rect(t,r,i,n);else{void 0===a&&(a=o),void 0===s&&(s=a),void 0===l&&(l=s);var f=Math.abs(i),d=Math.abs(n),p=f/2,m=d/2;f<2*o&&(o=p),d<2*o&&(o=m),f<2*a&&(a=p),d<2*a&&(a=m),f<2*s&&(s=p),d<2*s&&(s=m),f<2*l&&(l=p),d<2*l&&(l=m),u.beginPath(),u.moveTo(t+o,r),u.arcTo(t+i,r,t+i,r+n,a),u.arcTo(t+i,r+n,t,r+n,s),u.arcTo(t,r+n,t,r,l),u.arcTo(t,r,t+i,r,o),u.closePath()}return this._doFill&&u.fill(),this._doStroke&&u.stroke(),this},c.default.Renderer2D.prototype.triangle=function(e){var t=this.drawingContext,r=this._doFill,i=this._doStroke,n=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5];if(r&&!i){if(this._getFill()===g)return this}else if(!r&&i&&this._getStroke()===g)return this;t.beginPath(),t.moveTo(n,o),t.lineTo(a,s),t.lineTo(l,u),t.closePath(),r&&t.fill(),i&&t.stroke()},c.default.Renderer2D.prototype.endShape=function(e,t,r,i,n,o,a){if(0===t.length)return this;if(!this._doStroke&&!this._doFill)return this;var s,l,u,h=e===p.CLOSE;h&&!o&&t.push(t[0]);var c=t.length;if(!r||a!==p.POLYGON&&null!==a)if(!i||a!==p.POLYGON&&null!==a)if(!n||a!==p.POLYGON&&null!==a)if(a===p.POINTS)for(l=0;l<c;l++)s=t[l],this._doStroke&&this._pInst.stroke(s[6]),this._pInst.point(s[0],s[1]);else if(a===p.LINES)for(l=0;l+1<c;l+=2)s=t[l],this._doStroke&&this._pInst.stroke(t[l+1][6]),this._pInst.line(s[0],s[1],t[l+1][0],t[l+1][1]);else if(a===p.TRIANGLES)for(l=0;l+2<c;l+=3)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this.drawingContext.closePath(),this._doFill&&(this._pInst.fill(t[l+2][5]),this.drawingContext.fill()),this._doStroke&&(this._pInst.stroke(t[l+2][6]),this.drawingContext.stroke());else if(a===p.TRIANGLE_STRIP)for(l=0;l+1<c;l++)s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(s[0],s[1]),this._doStroke&&this._pInst.stroke(t[l+1][6]),this._doFill&&this._pInst.fill(t[l+1][5]),l+2<c&&(this.drawingContext.lineTo(t[l+2][0],t[l+2][1]),this._doStroke&&this._pInst.stroke(t[l+2][6]),this._doFill&&this._pInst.fill(t[l+2][5])),this._doFillStrokeClose(h);else if(a===p.TRIANGLE_FAN){if(2<c){for(this.drawingContext.beginPath(),l=2;l<c;l++)s=t[l],this.drawingContext.moveTo(t[0][0],t[0][1]),this.drawingContext.lineTo(t[l-1][0],t[l-1][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[0][0],t[0][1]),l<c-1&&(this._doFill&&s[5]!==t[l+1][5]||this._doStroke&&s[6]!==t[l+1][6])&&(this._doFill&&(this._pInst.fill(s[5]),this.drawingContext.fill(),this._pInst.fill(t[l+1][5])),this._doStroke&&(this._pInst.stroke(s[6]),this.drawingContext.stroke(),this._pInst.stroke(t[l+1][6])),this.drawingContext.closePath(),this.drawingContext.beginPath());this._doFillStrokeClose(h)}}else if(a===p.QUADS)for(l=0;l+3<c;l+=4){for(s=t[l],this.drawingContext.beginPath(),this.drawingContext.moveTo(s[0],s[1]),u=1;u<4;u++)this.drawingContext.lineTo(t[l+u][0],t[l+u][1]);this.drawingContext.lineTo(s[0],s[1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6]),this._doFillStrokeClose(h)}else if(a===p.QUAD_STRIP){if(3<c)for(l=0;l+1<c;l+=2)s=t[l],this.drawingContext.beginPath(),l+3<c?(this.drawingContext.moveTo(t[l+2][0],t[l+2][1]),this.drawingContext.lineTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this.drawingContext.lineTo(t[l+3][0],t[l+3][1]),this._doFill&&this._pInst.fill(t[l+3][5]),this._doStroke&&this._pInst.stroke(t[l+3][6])):(this.drawingContext.moveTo(s[0],s[1]),this.drawingContext.lineTo(t[l+1][0],t[l+1][1])),this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[0][0],t[0][1]),l=1;l<c;l++)(s=t[l]).isVert&&(s.moveTo?this.drawingContext.moveTo(s[0],s[1]):this.drawingContext.lineTo(s[0],s[1]));this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.quadraticCurveTo(t[l][0],t[l][1],t[l][2],t[l][3]);this._doFillStrokeClose(h)}else{for(this.drawingContext.beginPath(),l=0;l<c;l++)t[l].isVert?t[l].moveTo?this.drawingContext.moveTo(t[l][0],t[l][1]):this.drawingContext.lineTo(t[l][0],t[l][1]):this.drawingContext.bezierCurveTo(t[l][0],t[l][1],t[l][2],t[l][3],t[l][4],t[l][5]);this._doFillStrokeClose(h)}else if(3<c){var f=[],d=1-this._curveTightness;for(this.drawingContext.beginPath(),this.drawingContext.moveTo(t[1][0],t[1][1]),l=1;l+2<c;l++)s=t[l],f[0]=[s[0],s[1]],f[1]=[s[0]+(d*t[l+1][0]-d*t[l-1][0])/6,s[1]+(d*t[l+1][1]-d*t[l-1][1])/6],f[2]=[t[l+1][0]+(d*t[l][0]-d*t[l+2][0])/6,t[l+1][1]+(d*t[l][1]-d*t[l+2][1])/6],f[3]=[t[l+1][0],t[l+1][1]],this.drawingContext.bezierCurveTo(f[1][0],f[1][1],f[2][0],f[2][1],f[3][0],f[3][1]);h&&this.drawingContext.lineTo(t[l+1][0],t[l+1][1]),this._doFillStrokeClose(h)}return o=n=i=r=!1,h&&t.pop(),this},c.default.Renderer2D.prototype.strokeCap=function(e){return e!==p.ROUND&&e!==p.SQUARE&&e!==p.PROJECT||(this.drawingContext.lineCap=e),this},c.default.Renderer2D.prototype.strokeJoin=function(e){return e!==p.ROUND&&e!==p.BEVEL&&e!==p.MITER||(this.drawingContext.lineJoin=e),this},c.default.Renderer2D.prototype.strokeWeight=function(e){return this.drawingContext.lineWidth=void 0===e||0===e?1e-4:e,this},c.default.Renderer2D.prototype._getFill=function(){return this._cachedFillStyle||(this._cachedFillStyle=this.drawingContext.fillStyle),this._cachedFillStyle},c.default.Renderer2D.prototype._setFill=function(e){e!==this._cachedFillStyle&&(this.drawingContext.fillStyle=e,this._cachedFillStyle=e)},c.default.Renderer2D.prototype._getStroke=function(){return this._cachedStrokeStyle||(this._cachedStrokeStyle=this.drawingContext.strokeStyle),this._cachedStrokeStyle},c.default.Renderer2D.prototype._setStroke=function(e){e!==this._cachedStrokeStyle&&(this.drawingContext.strokeStyle=e,this._cachedStrokeStyle=e)},c.default.Renderer2D.prototype.bezier=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.vertex(e,t),this._pInst.bezierVertex(r,i,n,o,a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype.curve=function(e,t,r,i,n,o,a,s){return this._pInst.beginShape(),this._pInst.curveVertex(e,t),this._pInst.curveVertex(r,i),this._pInst.curveVertex(n,o),this._pInst.curveVertex(a,s),this._pInst.endShape(),this},c.default.Renderer2D.prototype._doFillStrokeClose=function(e){e&&this.drawingContext.closePath(),this._doFill&&this.drawingContext.fill(),this._doStroke&&this.drawingContext.stroke()},c.default.Renderer2D.prototype.applyMatrix=function(e,t,r,i,n,o){this.drawingContext.transform(e,t,r,i,n,o)},c.default.Renderer2D.prototype.resetMatrix=function(){return this.drawingContext.setTransform(1,0,0,1,0,0),this.drawingContext.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),this},c.default.Renderer2D.prototype.rotate=function(e){this.drawingContext.rotate(e)},c.default.Renderer2D.prototype.scale=function(e,t){return this.drawingContext.scale(e,t),this},c.default.Renderer2D.prototype.translate=function(e,t){return e instanceof c.default.Vector&&(t=e.y,e=e.x),this.drawingContext.translate(e,t),this},c.default.Renderer2D.prototype.text=function(e,t,r,i,n){var o;void 0!==i&&this.drawingContext.textBaseline===p.BASELINE&&(o=!0,this.drawingContext.textBaseline=p.TOP);var a=c.default.Renderer.prototype.text.apply(this,arguments);return o&&(this.drawingContext.textBaseline=p.BASELINE),a},c.default.Renderer2D.prototype._renderText=function(e,t,r,i,n){if(!(n<=i))return e.push(),this._isOpenType()?this._textFont._renderPath(t,r,i,{renderer:this}):(this._doStroke&&this._strokeSet&&this.drawingContext.strokeText(t,r,i),this._doFill&&(this._fillSet||this._setFill(p._DEFAULT_TEXT_FILL),this.drawingContext.fillText(t,r,i))),e.pop(),e},c.default.Renderer2D.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):this.drawingContext.measureText(e).width},c.default.Renderer2D.prototype._applyTextProperties=function(){var e,t=this._pInst;return this._setProperty(\"_textAscent\",null),this._setProperty(\"_textDescent\",null),e=this._textFont,this._isOpenType()&&(e=this._textFont.font.familyName,this._setProperty(\"_textStyle\",this._textFont.font.styleName)),this.drawingContext.font=\"\".concat(this._textStyle||\"normal\",\" \").concat(this._textSize||12,\"px \").concat(e||\"sans-serif\"),this.drawingContext.textAlign=this._textAlign,this._textBaseline===p.CENTER?this.drawingContext.textBaseline=p._CTX_MIDDLE:this.drawingContext.textBaseline=this._textBaseline,t},c.default.Renderer2D.prototype.push=function(){return this.drawingContext.save(),c.default.Renderer.prototype.push.apply(this)},c.default.Renderer2D.prototype.pop=function(e){this.drawingContext.restore(),this._cachedFillStyle=this.drawingContext.fillStyle,this._cachedStrokeStyle=this.drawingContext.strokeStyle,c.default.Renderer.prototype.pop.call(this,e)};var n=c.default.Renderer2D;r.default=n},{\"../image/filters\":70,\"./constants\":42,\"./main\":49,\"./p5.Renderer\":52}],54:[function(e,t,r){\"use strict\";var i,f=(i=e(\"./main\"))&&i.__esModule?i:{default:i};f.default.prototype._promisePreloads=[];var d=!(f.default.prototype.registerPromisePreload=function(e){f.default.prototype._promisePreloads.push(e)});f.default.prototype._setupPromisePreloads=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this._promisePreloads[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value,a=this,s=o.method,l=o.addCallbacks,u=o.legacyPreloadSetup,h=o.target||this,c=h[s].bind(h);if(h===f.default.prototype){if(d)continue;a=null,c=h[s]}if(h[s]=this._wrapPromisePreload(a,c,l),u)h[u.method]=this._legacyPreloadGenerator(a,u,h[s])}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}d=!0},f.default.prototype._wrapPromisePreload=function(e,l,u){var t=function(){var e=this;this._incrementPreload();for(var t=null,r=null,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];if(u)for(var a=n.length-1;0<=a&&!r&&\"function\"==typeof n[a];a--)r=t,t=n.pop();var s=Promise.resolve(l.apply(this,n));return t&&s.then(t),r&&s.catch(r),s.then(function(){return e._decrementPreload()}),s};return e&&(t=t.bind(e)),t};function o(){return{}}f.default.prototype._legacyPreloadGenerator=function(e,t,i){var n=t.createBaseObject||o,r=function(){var t=this;this._incrementPreload();var r=n.apply(this,arguments);return i.apply(this,arguments).then(function(e){Object.assign(r,e),t._decrementPreload()}),r};return e&&(r=r.bind(e)),r}},{\"./main\":49}],55:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"./main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==u(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"./constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e){return(u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}e(\"./p5.Graphics\"),e(\"./p5.Renderer2D\"),e(\"../webgl/p5.RendererGL\");var h=\"defaultCanvas0\";s.default.prototype.createCanvas=function(e,t,r){s.default._validateParameters(\"createCanvas\",arguments);var i,n=r||l.P2D;if(n===l.WEBGL){if(i=document.getElementById(h)){i.parentNode.removeChild(i);var o=this._renderer;this._elements=this._elements.filter(function(e){return e!==o})}(i=document.createElement(\"canvas\")).id=h,i.classList.add(\"p5Canvas\")}else if(this._defaultGraphicsCreated)i=this.canvas;else{i=document.createElement(\"canvas\");for(var a=0;document.getElementById(\"defaultCanvas\".concat(a));)a++;h=\"defaultCanvas\".concat(a),i.id=h,i.classList.add(\"p5Canvas\")}return this._setupDone||(i.dataset.hidden=!0,i.style.visibility=\"hidden\"),this._userNode?this._userNode.appendChild(i):document.body.appendChild(i),n===l.WEBGL?(this._setProperty(\"_renderer\",new s.default.RendererGL(i,this,!0)),this._elements.push(this._renderer)):this._defaultGraphicsCreated||(this._setProperty(\"_renderer\",new s.default.Renderer2D(i,this,!0)),this._defaultGraphicsCreated=!0,this._elements.push(this._renderer)),this._renderer.resize(e,t),this._renderer._applyDefaults(),this._renderer},s.default.prototype.resizeCanvas=function(e,t,r){if(s.default._validateParameters(\"resizeCanvas\",arguments),this._renderer){var i={};for(var n in this.drawingContext){var o=this.drawingContext[n];\"object\"!==u(o)&&\"function\"!=typeof o&&(i[n]=o)}for(var a in this._renderer.resize(e,t),this.width=e,this.height=t,i)try{this.drawingContext[a]=i[a]}catch(e){}r||this.redraw()}},s.default.prototype.noCanvas=function(){this.canvas&&this.canvas.parentNode.removeChild(this.canvas)},s.default.prototype.createGraphics=function(e,t,r){return s.default._validateParameters(\"createGraphics\",arguments),new s.default.Graphics(e,t,r,this)},s.default.prototype.blendMode=function(e){s.default._validateParameters(\"blendMode\",arguments),e===l.NORMAL&&(console.warn(\"NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.\"),e=l.BLEND),this._renderer.blendMode(e)};var n=s.default;r.default=n},{\"../webgl/p5.RendererGL\":103,\"./constants\":42,\"./main\":49,\"./p5.Graphics\":51,\"./p5.Renderer2D\":53}],56:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var h=i(e(\"../main\")),s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\")),c=i(e(\"../helpers\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}e(\"../error_helpers\"),h.default.prototype._normalizeArcAngles=function(e,t,r,i,n){var o;return e-=s.TWO_PI*Math.floor(e/s.TWO_PI),t-=s.TWO_PI*Math.floor(t/s.TWO_PI),o=Math.min(Math.abs(e-t),s.TWO_PI-Math.abs(e-t)),n&&(e=e<=s.HALF_PI?Math.atan(r/i*Math.tan(e)):e>s.HALF_PI&&e<=3*s.HALF_PI?Math.atan(r/i*Math.tan(e))+s.PI:Math.atan(r/i*Math.tan(e))+s.TWO_PI,t=t<=s.HALF_PI?Math.atan(r/i*Math.tan(t)):t>s.HALF_PI&&t<=3*s.HALF_PI?Math.atan(r/i*Math.tan(t))+s.PI:Math.atan(r/i*Math.tan(t))+s.TWO_PI),t<e&&(t+=s.TWO_PI),{start:e,stop:t,correspondToSamePoint:o<1e-5}},h.default.prototype.arc=function(e,t,r,i,n,o,a,s){if(h.default._validateParameters(\"arc\",arguments),!this._renderer._doStroke&&!this._renderer._doFill)return this;n=this._toRadians(n),o=this._toRadians(o),r=Math.abs(r),i=Math.abs(i);var l=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode),u=this._normalizeArcAngles(n,o,l.w,l.h,!0);return u.correspondToSamePoint?this._renderer.ellipse([l.x,l.y,l.w,l.h,s]):this._renderer.arc(l.x,l.y,l.w,l.h,u.start,u.stop,a,s),this},h.default.prototype.ellipse=function(e,t,r,i,n){return h.default._validateParameters(\"ellipse\",arguments),this._renderEllipse.apply(this,arguments)},h.default.prototype.circle=function(){h.default._validateParameters(\"circle\",arguments);var e=Array.prototype.slice.call(arguments,0,2);return e.push(arguments[2]),e.push(arguments[2]),this._renderEllipse.apply(this,e)},h.default.prototype._renderEllipse=function(e,t,r,i,n){if(!this._renderer._doStroke&&!this._renderer._doFill)return this;r<0&&(r=Math.abs(r)),void 0===i?i=r:i<0&&(i=Math.abs(i));var o=c.default.modeAdjust(e,t,r,i,this._renderer._ellipseMode);return this._renderer.ellipse([o.x,o.y,o.w,o.h,n]),this},h.default.prototype.line=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"line\",t),this._renderer._doStroke&&(i=this._renderer).line.apply(i,t);return this},h.default.prototype.point=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"point\",t),this._renderer._doStroke&&(1===t.length&&t[0]instanceof h.default.Vector?this._renderer.point.call(this._renderer,t[0].x,t[0].y,t[0].z):(i=this._renderer).point.apply(i,t));return this},h.default.prototype.quad=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;h.default._validateParameters(\"quad\",t),(this._renderer._doStroke||this._renderer._doFill)&&(this._renderer.isP3D&&12!==t.length?this._renderer.quad.call(this._renderer,t[0],t[1],0,t[2],t[3],0,t[4],t[5],0,t[6],t[7],0):(i=this._renderer).quad.apply(i,t));return this},h.default.prototype.rect=function(){return h.default._validateParameters(\"rect\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype.square=function(e,t,r,i,n,o,a){return h.default._validateParameters(\"square\",arguments),this._renderRect.apply(this,arguments)},h.default.prototype._renderRect=function(){if(this._renderer._doStroke||this._renderer._doFill){3===arguments.length&&(arguments[3]=arguments[2]);for(var e=c.default.modeAdjust(arguments[0],arguments[1],arguments[2],arguments[3],this._renderer._rectMode),t=[e.x,e.y,e.w,e.h],r=4;r<arguments.length;r++)t[r]=arguments[r];this._renderer.rect(t)}return this},h.default.prototype.triangle=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.default._validateParameters(\"triangle\",t),(this._renderer._doStroke||this._renderer._doFill)&&this._renderer.triangle(t),this};var n=h.default;r.default=n},{\"../constants\":42,\"../error_helpers\":44,\"../helpers\":45,\"../main\":49}],57:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.ellipseMode=function(e){return n.default._validateParameters(\"ellipseMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._ellipseMode=e),this},n.default.prototype.noSmooth=function(){return this.setAttributes(\"antialias\",!1),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!1),this},n.default.prototype.rectMode=function(e){return n.default._validateParameters(\"rectMode\",arguments),e!==o.CORNER&&e!==o.CORNERS&&e!==o.RADIUS&&e!==o.CENTER||(this._renderer._rectMode=e),this},n.default.prototype.smooth=function(){return this.setAttributes(\"antialias\",!0),this._renderer.isP3D||\"imageSmoothingEnabled\"in this.drawingContext&&(this.drawingContext.imageSmoothingEnabled=!0),this},n.default.prototype.strokeCap=function(e){return n.default._validateParameters(\"strokeCap\",arguments),e!==o.ROUND&&e!==o.SQUARE&&e!==o.PROJECT||this._renderer.strokeCap(e),this},n.default.prototype.strokeJoin=function(e){return n.default._validateParameters(\"strokeJoin\",arguments),e!==o.ROUND&&e!==o.BEVEL&&e!==o.MITER||this._renderer.strokeJoin(e),this},n.default.prototype.strokeWeight=function(e){return n.default._validateParameters(\"strokeWeight\",arguments),this._renderer.strokeWeight(e),this};var l=n.default;r.default=l},{\"../constants\":42,\"../main\":49}],58:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i};e(\"../error_helpers\"),s.default.prototype.bezier=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s.default._validateParameters(\"bezier\",r),(this._renderer._doStroke||this._renderer._doFill)&&(e=this._renderer).bezier.apply(e,r),this},s.default.prototype.bezierDetail=function(e){return s.default._validateParameters(\"bezierDetail\",arguments),this._bezierDetail=e,this},s.default.prototype.bezierPoint=function(e,t,r,i,n){s.default._validateParameters(\"bezierPoint\",arguments);var o=1-n;return Math.pow(o,3)*e+3*Math.pow(o,2)*n*t+3*o*Math.pow(n,2)*r+Math.pow(n,3)*i},s.default.prototype.bezierTangent=function(e,t,r,i,n){s.default._validateParameters(\"bezierTangent\",arguments);var o=1-n;return 3*i*Math.pow(n,2)-3*r*Math.pow(n,2)+6*r*o*n-6*t*o*n+3*t*Math.pow(o,2)-3*e*Math.pow(o,2)},s.default.prototype.curve=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;s.default._validateParameters(\"curve\",t),this._renderer._doStroke&&(i=this._renderer).curve.apply(i,t);return this},s.default.prototype.curveDetail=function(e){return s.default._validateParameters(\"curveDetail\",arguments),this._curveDetail=e<3?3:e,this},s.default.prototype.curveTightness=function(e){return s.default._validateParameters(\"curveTightness\",arguments),this._renderer._curveTightness=e,this},s.default.prototype.curvePoint=function(e,t,r,i,n){s.default._validateParameters(\"curvePoint\",arguments);var o=n*n*n,a=n*n;return e*(-.5*o+a-.5*n)+t*(1.5*o-2.5*a+1)+r*(-1.5*o+2*a+.5*n)+i*(.5*o-.5*a)},s.default.prototype.curveTangent=function(e,t,r,i,n){s.default._validateParameters(\"curveTangent\",arguments);var o=n*n;return e*(-3*o/2+2*n-.5)+t*(9*o/2-5*n)+r*(-9*o/2+4*n+.5)+i*(3*o/2-n)};var n=s.default;r.default=n},{\"../error_helpers\":44,\"../main\":49}],59:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var n=null,h=[],c=[],f=!1,o=!1,d=!1,p=!1,m=!0;s.default.prototype.beginContour=function(){return c=[],p=!0,this},s.default.prototype.beginShape=function(e){var t;(s.default._validateParameters(\"beginShape\",arguments),this._renderer.isP3D)?(t=this._renderer).beginShape.apply(t,arguments):(n=e===l.POINTS||e===l.LINES||e===l.TRIANGLES||e===l.TRIANGLE_FAN||e===l.TRIANGLE_STRIP||e===l.QUADS||e===l.QUAD_STRIP?e:null,h=[],c=[]);return this},s.default.prototype.bezierVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;if(s.default._validateParameters(\"bezierVertex\",t),this._renderer.isP3D)(i=this._renderer).bezierVertex.apply(i,t);else if(0===h.length)s.default._friendlyError(\"vertex() must be used once before calling bezierVertex()\",\"bezierVertex\");else{f=!0;for(var n=[],o=0;o<t.length;o++)n[o]=t[o];n.isVert=!1,p?c.push(n):h.push(n)}return this},s.default.prototype.curveVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(s.default._validateParameters(\"curveVertex\",t),this._renderer.isP3D)?(i=this._renderer).curveVertex.apply(i,t):(o=!0,this.vertex(t[0],t[1]));return this},s.default.prototype.endContour=function(){var e=c[0].slice();e.isVert=c[0].isVert,e.moveTo=!1,c.push(e),m&&(h.push(h[0]),m=!1);for(var t=0;t<c.length;t++)h.push(c[t]);return this},s.default.prototype.endShape=function(e){if(s.default._validateParameters(\"endShape\",arguments),this._renderer.isP3D)this._renderer.endShape(e,o,f,d,p,n);else{if(0===h.length)return this;if(!this._renderer._doStroke&&!this._renderer._doFill)return this;var t=e===l.CLOSE;t&&!p&&h.push(h[0]),this._renderer.endShape(e,h,o,f,d,p,n),m=!(p=d=f=o=!1),t&&h.pop()}return this},s.default.prototype.quadraticVertex=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(s.default._validateParameters(\"quadraticVertex\",t),this._renderer.isP3D){var i;(i=this._renderer).quadraticVertex.apply(i,t)}else{if(this._contourInited){var n={};return n.x=t[0],n.y=t[1],n.x3=t[2],n.y3=t[3],n.type=l.QUADRATIC,this._contourVertices.push(n),this}if(0<h.length){d=!0;for(var o=[],a=0;a<t.length;a++)o[a]=t[a];o.isVert=!1,p?c.push(o):h.push(o)}else s.default._friendlyError(\"vertex() must be used once before calling quadraticVertex()\",\"quadraticVertex\")}return this},s.default.prototype.vertex=function(e,t,r,i,n){if(this._renderer.isP3D){var o;(o=this._renderer).vertex.apply(o,arguments)}else{var a=[];a.isVert=!0,a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=0,a[5]=this._renderer._getFill(),a[6]=this._renderer._getStroke(),r&&(a.moveTo=r),p?(0===c.length&&(a.moveTo=!0),c.push(a)):h.push(a)}return this};var g=s.default;r.default=g},{\"../constants\":42,\"../main\":49}],60:[function(e,t,r){\"use strict\";function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},\"undefined\"==typeof Uint8ClampedArray||Uint8ClampedArray.prototype.slice||Object.defineProperty(Uint8ClampedArray.prototype,\"slice\",{value:Array.prototype.slice,writable:!0,configurable:!0,enumerable:!1}),function(){if(!Object.assign){var s=Object.keys,e=Object.defineProperty,l=\"function\"==typeof Symbol&&\"symbol\"===i(Symbol()),r=Object.prototype.propertyIsEnumerable,u=function(t){return function(e){return r.call(t,e)}};e(Object,\"assign\",{value:function(e,t){if(null==e)throw new TypeError(\"target must be an object\");var r,i,n,o,a=Object(e);for(r=1;r<arguments.length;++r)for(i=Object(arguments[r]),o=s(i),l&&Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(i).filter(u(i))),n=0;n<o.length;++n)a[o[n]]=i[o[n]];return a},configurable:!0,enumerable:!1,writable:!0})}}()},{}],61:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"./main\"))&&i.__esModule?i:{default:i};n.default.prototype.noLoop=function(){this._loop=!1},n.default.prototype.loop=function(){this._loop||(this._loop=!0,this._setupDone&&this._draw())},n.default.prototype.push=function(){this._styles.push({props:{_colorMode:this._colorMode},renderer:this._renderer.push()})},n.default.prototype.pop=function(){var e=this._styles.pop();e?(this._renderer.pop(e.renderer),Object.assign(this,e.props)):console.warn(\"pop() was called without matching push()\")},n.default.prototype.redraw=function(e){if(!this._inUserDraw&&this._setupDone){var t=parseInt(e);(isNaN(t)||t<1)&&(t=1);var r=this._isGlobal?window:this,i=r.setup,n=r.draw;if(\"function\"==typeof n){void 0===i&&r.scale(r._pixelDensity,r._pixelDensity);for(var o=function(e){e.call(r)},a=0;a<t;a++){r.resetMatrix(),r._renderer.isP3D&&r._renderer._update(),r._setProperty(\"frameCount\",r.frameCount+1),r._registeredMethods.pre.forEach(o),this._inUserDraw=!0;try{n()}finally{this._inUserDraw=!1}r._registeredMethods.post.forEach(o)}}}};var o=n.default;r.default=o},{\"./main\":49}],62:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,o=(i=e(\"./main\"))&&i.__esModule?i:{default:i};o.default.prototype.applyMatrix=function(e,t,r,i,n,o){var a;return(a=this._renderer).applyMatrix.apply(a,arguments),this},o.default.prototype.resetMatrix=function(){return this._renderer.resetMatrix(),this},o.default.prototype.rotate=function(e,t){return o.default._validateParameters(\"rotate\",arguments),this._renderer.rotate(this._toRadians(e),t),this},o.default.prototype.rotateX=function(e){return this._assert3d(\"rotateX\"),o.default._validateParameters(\"rotateX\",arguments),this._renderer.rotateX(this._toRadians(e)),this},o.default.prototype.rotateY=function(e){return this._assert3d(\"rotateY\"),o.default._validateParameters(\"rotateY\",arguments),this._renderer.rotateY(this._toRadians(e)),this},o.default.prototype.rotateZ=function(e){return this._assert3d(\"rotateZ\"),o.default._validateParameters(\"rotateZ\",arguments),this._renderer.rotateZ(this._toRadians(e)),this},o.default.prototype.scale=function(e,t,r){if(o.default._validateParameters(\"scale\",arguments),e instanceof o.default.Vector){var i=e;e=i.x,t=i.y,r=i.z}else if(e instanceof Array){var n=e;e=n[0],t=n[1],r=n[2]||1}return isNaN(t)?t=r=e:isNaN(r)&&(r=1),this._renderer.scale.call(this._renderer,e,t,r),this},o.default.prototype.shearX=function(e){o.default._validateParameters(\"shearX\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,0,Math.tan(t),1,0,0),this},o.default.prototype.shearY=function(e){o.default._validateParameters(\"shearY\",arguments);var t=this._toRadians(e);return this._renderer.applyMatrix(1,Math.tan(t),0,1,0,0),this},o.default.prototype.translate=function(e,t,r){return o.default._validateParameters(\"translate\",arguments),this._renderer.isP3D?this._renderer.translate(e,t,r):this._renderer.translate(e,t),this};var n=o.default;r.default=n},{\"./main\":49}],63:[function(e,t,r){\"use strict\";var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}n.default.prototype.storeItem=function(e,t){void 0===t&&console.log(\"You cannot store undefined variables using storeItem()\");var r=a(t);switch(r){case\"number\":case\"boolean\":t=t.toString();break;case\"object\":if(t instanceof n.default.Color)r=\"p5.Color\";else if(t instanceof n.default.Vector){r=\"p5.Vector\",t=[t.x,t.y,t.z]}t=JSON.stringify(t)}localStorage.setItem(e,t);var i=\"\".concat(e,\"p5TypeID\");localStorage.setItem(i,r)},n.default.prototype.getItem=function(e){var t=localStorage.getItem(e),r=localStorage.getItem(\"\".concat(e,\"p5TypeID\"));if(void 0===r)console.log(\"Unable to determine type of item stored under \".concat(e,\"in local storage. Did you save the item with something other than setItem()?\"));else if(null!==t)switch(r){case\"number\":t=parseInt(t);break;case\"boolean\":t=\"true\"===t;break;case\"object\":t=JSON.parse(t);break;case\"p5.Color\":t=JSON.parse(t),t=this.color.apply(this,o(t.levels));break;case\"p5.Vector\":t=JSON.parse(t),t=this.createVector.apply(this,o(t))}return t},n.default.prototype.clearStorage=function(){localStorage.clear()},n.default.prototype.removeItem=function(e){\"string\"!=typeof e&&console.log(\"The argument that you passed to removeItem() - \".concat(e,\" is not a string.\")),localStorage.removeItem(e),localStorage.removeItem(\"\".concat(e,\"p5TypeID\"))}},{\"../core/main\":49}],64:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createStringDict=function(e,t){return n.default._validateParameters(\"createStringDict\",arguments),new n.default.StringDict(e,t)},n.default.prototype.createNumberDict=function(e,t){return n.default._validateParameters(\"createNumberDict\",arguments),new n.default.NumberDict(e,t)},n.default.TypedDict=function(e,t){return e instanceof Object?this.data=e:(this.data={},this.data[e]=t),this},n.default.TypedDict.prototype.size=function(){return Object.keys(this.data).length},n.default.TypedDict.prototype.hasKey=function(e){return this.data.hasOwnProperty(e)},n.default.TypedDict.prototype.get=function(e){if(this.data.hasOwnProperty(e))return this.data[e];console.log(\"\".concat(e,\" does not exist in this Dictionary\"))},n.default.TypedDict.prototype.set=function(e,t){this._validate(t)?this.data[e]=t:console.log(\"Those values dont work for this dictionary type.\")},n.default.TypedDict.prototype._addObj=function(e){for(var t in e)this.set(t,e[t])},n.default.TypedDict.prototype.create=function(e,t){e instanceof Object&&void 0===t?this._addObj(e):void 0!==e?this.set(e,t):console.log(\"In order to create a new Dictionary entry you must pass an object or a key, value pair\")},n.default.TypedDict.prototype.clear=function(){this.data={}},n.default.TypedDict.prototype.remove=function(e){if(!this.data.hasOwnProperty(e))throw new Error(\"\".concat(e,\" does not exist in this Dictionary\"));delete this.data[e]},n.default.TypedDict.prototype.print=function(){for(var e in this.data)console.log(\"key:\".concat(e,\" value:\").concat(this.data[e]))},n.default.TypedDict.prototype.saveTable=function(e){var t=\"\";for(var r in this.data)t+=\"\".concat(r,\",\").concat(this.data[r],\"\\n\");var i=new Blob([t],{type:\"text/csv\"});n.default.prototype.downloadFile(i,e||\"mycsv\",\"csv\")},n.default.TypedDict.prototype.saveJSON=function(e,t){n.default.prototype.saveJSON(this.data,e,t)},n.default.TypedDict.prototype._validate=function(e){return!0},n.default.StringDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.StringDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.StringDict.prototype._validate=function(e){return\"string\"==typeof e},n.default.NumberDict=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.TypedDict.apply(this,t)},n.default.NumberDict.prototype=Object.create(n.default.TypedDict.prototype),n.default.NumberDict.prototype._validate=function(e){return\"number\"==typeof e},n.default.NumberDict.prototype.add=function(e,t){this.data.hasOwnProperty(e)?this.data[e]+=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.sub=function(e,t){this.add(e,-t)},n.default.NumberDict.prototype.mult=function(e,t){this.data.hasOwnProperty(e)?this.data[e]*=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype.div=function(e,t){this.data.hasOwnProperty(e)?this.data[e]/=t:console.log(\"The key - \".concat(e,\" does not exist in this dictionary.\"))},n.default.NumberDict.prototype._valueTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to search for a minimum or maximum value on an empty NumberDict\");if(1===Object.keys(this.data).length)return this.data[Object.keys(this.data)[0]];var t=this.data[Object.keys(this.data)[0]];for(var r in this.data)this.data[r]*e<t*e&&(t=this.data[r]);return t},n.default.NumberDict.prototype.minValue=function(){return this._valueTest(1)},n.default.NumberDict.prototype.maxValue=function(){return this._valueTest(-1)},n.default.NumberDict.prototype._keyTest=function(e){if(0===Object.keys(this.data).length)throw new Error(\"Unable to use minValue on an empty NumberDict\");if(1===Object.keys(this.data).length)return Object.keys(this.data)[0];for(var t=Object.keys(this.data)[0],r=1;r<Object.keys(this.data).length;r++)Object.keys(this.data)[r]*e<t*e&&(t=Object.keys(this.data)[r]);return t},n.default.NumberDict.prototype.minKey=function(){return this._keyTest(1)},n.default.NumberDict.prototype.maxKey=function(){return this._keyTest(-1)};var o=n.default.TypedDict;r.default=o},{\"../core/main\":49}],65:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function c(e){return(c=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e){var t=document;return\"string\"==typeof e&&\"#\"===e[0]?(e=e.slice(1),t=document.getElementById(e)||document):e instanceof h.default.Element?t=e.elt:e instanceof HTMLElement&&(t=e),t}function f(e,t,r){(t._userNode?t._userNode:document.body).appendChild(e);var i=r?new h.default.MediaElement(e,t):new h.default.Element(e,t);return t._elements.push(i),i}h.default.prototype.select=function(e,t){h.default._validateParameters(\"select\",arguments);var r=null,i=s(t);return(r=\".\"===e[0]?(e=e.slice(1),(r=i.getElementsByClassName(e)).length?r[0]:null):\"#\"===e[0]?(e=e.slice(1),i.getElementById(e)):(r=i.getElementsByTagName(e)).length?r[0]:null)?this._wrapElement(r):null},h.default.prototype.selectAll=function(e,t){h.default._validateParameters(\"selectAll\",arguments);var r,i=[],n=s(t);if(r=\".\"===e[0]?(e=e.slice(1),n.getElementsByClassName(e)):n.getElementsByTagName(e))for(var o=0;o<r.length;o++){var a=this._wrapElement(r[o]);i.push(a)}return i},h.default.prototype._wrapElement=function(e){var t=Array.prototype.slice.call(e.children);if(\"INPUT\"!==e.tagName||\"checkbox\"!==e.type)return\"VIDEO\"===e.tagName||\"AUDIO\"===e.tagName?new h.default.MediaElement(e,this):\"SELECT\"===e.tagName?this.createSelect(new h.default.Element(e,this)):0<t.length&&t.every(function(e){return\"INPUT\"===e.tagName||\"LABEL\"===e.tagName})?this.createRadio(new h.default.Element(e,this)):new h.default.Element(e,this);var r=new h.default.Element(e,this);return r.checked=function(){return 0===arguments.length?this.elt.checked:(this.elt.checked=!!arguments[0],this)},r},h.default.prototype.removeElements=function(e){h.default._validateParameters(\"removeElements\",arguments);for(var t=0;t<this._elements.length;t++)this._elements[t].elt instanceof HTMLCanvasElement||this._elements[t].remove()},h.default.Element.prototype.changed=function(e){return h.default.Element._adjustListener(\"change\",e,this),this},h.default.Element.prototype.input=function(e){return h.default.Element._adjustListener(\"input\",e,this),this};function n(e,t,r,i){var n=document.createElement(t);\"string\"==typeof(r=r||\"\")&&(r=[r]);for(var o=0;o<r.length;o++){var a=document.createElement(\"source\");a.src=r[o],n.appendChild(a)}if(void 0!==i){n.addEventListener(\"canplaythrough\",function e(){i(),n.removeEventListener(\"canplaythrough\",e)})}var s=f(n,e,!0);return s.loadedmetadata=!1,n.addEventListener(\"loadedmetadata\",function(){s.width=n.videoWidth,s.height=n.videoHeight,0===s.elt.width&&(s.elt.width=n.videoWidth),0===s.elt.height&&(s.elt.height=n.videoHeight),s.presetPlaybackRate&&(s.elt.playbackRate=s.presetPlaybackRate,delete s.presetPlaybackRate),s.loadedmetadata=!0}),s}[\"div\",\"p\",\"span\"].forEach(function(r){var e=\"create\"+r.charAt(0).toUpperCase()+r.slice(1);h.default.prototype[e]=function(e){var t=document.createElement(r);return t.innerHTML=void 0===e?\"\":e,f(t,this)}}),h.default.prototype.createImg=function(){h.default._validateParameters(\"createImg\",arguments);var t,r=document.createElement(\"img\"),i=arguments;return 1<i.length&&\"string\"==typeof i[1]&&(r.alt=i[1]),2<i.length&&\"string\"==typeof i[2]&&(r.crossOrigin=i[2]),r.src=i[0],t=f(r,this),r.addEventListener(\"load\",function(){t.width=r.offsetWidth||r.width,t.height=r.offsetHeight||r.height;var e=i[i.length-1];\"function\"==typeof e&&e(t)}),t},h.default.prototype.createA=function(e,t,r){h.default._validateParameters(\"createA\",arguments);var i=document.createElement(\"a\");return i.href=e,i.innerHTML=t,r&&(i.target=r),f(i,this)},h.default.prototype.createSlider=function(e,t,r,i){h.default._validateParameters(\"createSlider\",arguments);var n=document.createElement(\"input\");return n.type=\"range\",n.min=e,n.max=t,0===i?n.step=1e-18:i&&(n.step=i),\"number\"==typeof r&&(n.value=r),f(n,this)},h.default.prototype.createButton=function(e,t){h.default._validateParameters(\"createButton\",arguments);var r=document.createElement(\"button\");return r.innerHTML=e,t&&(r.value=t),f(r,this)},h.default.prototype.createCheckbox=function(){h.default._validateParameters(\"createCheckbox\",arguments);var e=document.createElement(\"div\"),t=document.createElement(\"input\");t.type=\"checkbox\",e.appendChild(t);var r=f(e,this);if(r.checked=function(){var e=r.elt.getElementsByTagName(\"input\")[0];if(e){if(0===arguments.length)return e.checked;e.checked=!!arguments[0]}return r},this.value=function(e){return r.value=e,this},arguments[0]){var i=Math.random().toString(36).slice(2),n=document.createElement(\"label\");t.setAttribute(\"id\",i),n.htmlFor=i,r.value(arguments[0]),n.appendChild(document.createTextNode(arguments[0])),e.appendChild(n)}return arguments[1]&&(t.checked=!0),r},h.default.prototype.createSelect=function(){var o,e;h.default._validateParameters(\"createSelect\",arguments);var t=arguments[0];return\"object\"===c(t)&&\"SELECT\"===t.elt.nodeName?(e=t,o=this.elt=t.elt):(o=document.createElement(\"select\"),t&&\"boolean\"==typeof t&&o.setAttribute(\"multiple\",\"true\"),e=f(o,this)),e.option=function(e,t){for(var r,i=0;i<this.elt.length;i++)if(this.elt[i].innerHTML===e){r=i;break}if(void 0!==r)!1===t?this.elt.remove(r):this.elt[r].innerHTML===this.elt[r].value?this.elt[r].innerHTML=this.elt[r].value=t:this.elt[r].value=t;else{var n=document.createElement(\"option\");n.innerHTML=e,n.value=1<arguments.length?t:e,o.appendChild(n),this._pInst._elements.push(n)}},e.selected=function(e){var t,r=[];if(0<arguments.length){for(t=0;t<this.elt.length;t++)e.toString()===this.elt[t].value&&(this.elt.selectedIndex=t);return this}if(this.elt.getAttribute(\"multiple\")){for(t=0;t<this.elt.selectedOptions.length;t++)r.push(this.elt.selectedOptions[t].value);return r}return this.elt.value},e.disable=function(e){if(void 0!==e&&\"string\"==typeof e){for(var t=0;t<this.elt.length;t++)this.elt[t].value===e&&(this.elt[t].disabled=!0);return this}if(0===arguments.length)return this.elt.disabled=!0,this},e},h.default.prototype.createRadio=function(e){h.default._validateParameters(\"createRadio\",arguments);var n,i,t=document.querySelectorAll(\"input[type=radio]\"),o=0;if(1<t.length)for(var r=t.length,a=t[0].name,s=t[1].name,l=o=1;l<r;l++)a!==(s=t[l].name)&&o++,a=s;else 1===t.length&&(o=1);\"object\"===c(e)?(i=e,n=this.elt=e.elt):(n=document.createElement(\"div\"),i=f(n,this)),i._getInputChildrenArray=function(){return Array.prototype.slice.call(this.elt.children).filter(function(e){return\"INPUT\"===e.tagName})};var u=-1;return i.option=function(e,t){var r=document.createElement(\"input\");if(r.type=\"radio\",r.innerHTML=e,r.value=t||e,r.setAttribute(\"name\",\"defaultradio\"+o),n.appendChild(r),e){u++;var i=document.createElement(\"label\");r.setAttribute(\"id\",\"defaultradio\"+o+\"-\"+u),i.htmlFor=\"defaultradio\"+o+\"-\"+u,i.appendChild(document.createTextNode(e)),n.appendChild(i)}return r},i.selected=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value},i.value=function(e){var t,r=i._getInputChildrenArray();if(e){for(t=0;t<r.length;t++)r[t].value===e&&(r[t].checked=!0);return this}for(t=0;t<r.length;t++)if(!0===r[t].checked)return r[t].value;return\"\"},i},h.default.prototype.createColorPicker=function(e){h.default._validateParameters(\"createColorPicker\",arguments);var t,r=document.createElement(\"input\");return r.type=\"color\",e?e instanceof h.default.Color?r.value=e.toString(\"#rrggbb\"):(h.default.prototype._colorMode=\"rgb\",h.default.prototype._colorMaxes={rgb:[255,255,255,255],hsb:[360,100,100,1],hsl:[360,100,100,1]},r.value=h.default.prototype.color(e).toString(\"#rrggbb\")):r.value=\"#000000\",(t=f(r,this)).color=function(){return e.mode&&(h.default.prototype._colorMode=e.mode),e.maxes&&(h.default.prototype._colorMaxes=e.maxes),h.default.prototype.color(this.elt.value)},t},h.default.prototype.createInput=function(e,t){h.default._validateParameters(\"createInput\",arguments);var r=document.createElement(\"input\");return r.type=t||\"text\",e&&(r.value=e),f(r,this)},h.default.prototype.createFileInput=function(n,e){if(h.default._validateParameters(\"createFileInput\",arguments),window.File&&window.FileReader&&window.FileList&&window.Blob){var t=document.createElement(\"input\");return t.type=\"file\",e&&(t.multiple=\"multiple\"),t.addEventListener(\"change\",function(e){for(var t=e.target.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},!1),f(t,this)}console.log(\"The File APIs are not fully supported in this browser. Cannot create element.\")},h.default.prototype.createVideo=function(e,t){return h.default._validateParameters(\"createVideo\",arguments),n(this,\"video\",e,t)},h.default.prototype.createAudio=function(e,t){return h.default._validateParameters(\"createAudio\",arguments),n(this,\"audio\",e,t)},h.default.prototype.VIDEO=\"video\",h.default.prototype.AUDIO=\"audio\",void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(r){var i=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return i?new Promise(function(e,t){i.call(navigator,r,e,t)}):Promise.reject(new Error(\"getUserMedia is not implemented in this browser\"))}),h.default.prototype.createCapture=function(){h.default._validateParameters(\"createCapture\",arguments);for(var e,t,r=!0,i=!0,n=0;n<arguments.length;n++)arguments[n]===h.default.prototype.VIDEO?i=!1:arguments[n]===h.default.prototype.AUDIO?r=!1:\"object\"===c(arguments[n])?e=arguments[n]:\"function\"==typeof arguments[n]&&(t=arguments[n]);if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw\"getUserMedia not supported in this browser\";var o=document.createElement(\"video\");o.setAttribute(\"playsinline\",\"\"),e=e||{video:r,audio:i},navigator.mediaDevices.getUserMedia(e).then(function(t){try{\"srcObject\"in o?o.srcObject=t:o.src=window.URL.createObjectURL(t)}catch(e){o.src=t}},function(e){console.log(e)});var a=f(o,this,!0);return a.loadedmetadata=!1,o.addEventListener(\"loadedmetadata\",function(){o.play(),o.width?(a.width=o.width,a.height=o.height):(a.width=a.elt.width=o.videoWidth,a.height=a.elt.height=o.videoHeight),a.loadedmetadata=!0,t&&t(o.srcObject)}),a},h.default.prototype.createElement=function(e,t){h.default._validateParameters(\"createElement\",arguments);var r=document.createElement(e);return void 0!==t&&(r.innerHTML=t),f(r,this)},h.default.Element.prototype.addClass=function(e){return this.elt.className?this.hasClass(e)||(this.elt.className=this.elt.className+\" \"+e):this.elt.className=e,this},h.default.Element.prototype.removeClass=function(e){return this.elt.classList.remove(e),this},h.default.Element.prototype.hasClass=function(e){return this.elt.classList.contains(e)},h.default.Element.prototype.toggleClass=function(e){return this.elt.classList.contains(e)?this.elt.classList.remove(e):this.elt.classList.add(e),this},h.default.Element.prototype.child=function(e){return void 0===e?this.elt.childNodes:(\"string\"==typeof e?(\"#\"===e[0]&&(e=e.substring(1)),e=document.getElementById(e)):e instanceof h.default.Element&&(e=e.elt),this.elt.appendChild(e),this)},h.default.Element.prototype.center=function(e){var t=this.elt.style.display,r=\"none\"===this.elt.style.display,i=\"none\"===this.parent().style.display,n={x:this.elt.offsetLeft,y:this.elt.offsetTop};r&&this.show(),this.elt.style.display=\"block\",this.position(0,0),i&&(this.parent().style.display=\"block\");var o=Math.abs(this.parent().offsetWidth-this.elt.offsetWidth),a=Math.abs(this.parent().offsetHeight-this.elt.offsetHeight),s=n.y,l=n.x;return\"both\"===e||void 0===e?this.position(o/2,a/2):\"horizontal\"===e?this.position(o/2,s):\"vertical\"===e&&this.position(l,a/2),this.style(\"display\",t),r&&this.hide(),i&&(this.parent().style.display=\"none\"),this},h.default.Element.prototype.html=function(){return 0===arguments.length?this.elt.innerHTML:(arguments[1]?this.elt.insertAdjacentHTML(\"beforeend\",arguments[0]):this.elt.innerHTML=arguments[0],this)},h.default.Element.prototype.position=function(){if(0===arguments.length)return{x:this.elt.offsetLeft,y:this.elt.offsetTop};var e=\"absolute\";return\"static\"!==arguments[2]&&\"fixed\"!==arguments[2]&&\"relative\"!==arguments[2]&&\"sticky\"!==arguments[2]&&\"initial\"!==arguments[2]&&\"inherit\"!==arguments[2]||(e=arguments[2]),this.elt.style.position=e,this.elt.style.left=arguments[0]+\"px\",this.elt.style.top=arguments[1]+\"px\",this.x=arguments[0],this.y=arguments[1],this},h.default.Element.prototype._translate=function(){this.elt.style.position=\"absolute\";var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/translate3d\\(.*\\)/g,\"\")).replace(/translate[X-Z]?\\(.*\\)/g,\"\")),2===arguments.length?this.elt.style.transform=\"translate(\"+arguments[0]+\"px, \"+arguments[1]+\"px)\":2<arguments.length&&(this.elt.style.transform=\"translate3d(\"+arguments[0]+\"px,\"+arguments[1]+\"px,\"+arguments[2]+\"px)\",this.elt.parentElement.style.perspective=3===arguments.length?\"1000px\":arguments[3]+\"px\"),this.elt.style.transform+=e,this},h.default.Element.prototype._rotate=function(){var e=\"\";return this.elt.style.transform&&(e=(e=this.elt.style.transform.replace(/rotate3d\\(.*\\)/g,\"\")).replace(/rotate[X-Z]?\\(.*\\)/g,\"\")),1===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg)\":2===arguments.length?this.elt.style.transform=\"rotate(\"+arguments[0]+\"deg, \"+arguments[1]+\"deg)\":3===arguments.length&&(this.elt.style.transform=\"rotateX(\"+arguments[0]+\"deg)\",this.elt.style.transform+=\"rotateY(\"+arguments[1]+\"deg)\",this.elt.style.transform+=\"rotateZ(\"+arguments[2]+\"deg)\"),this.elt.style.transform+=e,this},h.default.Element.prototype.style=function(e,t){if(t instanceof h.default.Color&&(t=\"rgba(\"+t.levels[0]+\",\"+t.levels[1]+\",\"+t.levels[2]+\",\"+t.levels[3]/255+\")\"),void 0===t){if(-1===e.indexOf(\":\"))return window.getComputedStyle(this.elt).getPropertyValue(e);for(var r=e.split(\";\"),i=0;i<r.length;i++){var n=r[i].split(\":\");n[0]&&n[1]&&(this.elt.style[n[0].trim()]=n[1].trim())}}else if(this.elt.style[e]=t,\"width\"===e||\"height\"===e||\"left\"===e||\"top\"===e){var o=t.replace(/\\D+/g,\"\");this[e]=parseInt(o,10)}return this},h.default.Element.prototype.attribute=function(e,t){if(null==this.elt.firstChild||\"checkbox\"!==this.elt.firstChild.type&&\"radio\"!==this.elt.firstChild.type)return void 0===t?this.elt.getAttribute(e):(this.elt.setAttribute(e,t),this);if(void 0===t)return this.elt.firstChild.getAttribute(e);for(var r=0;r<this.elt.childNodes.length;r++)this.elt.childNodes[r].setAttribute(e,t)},h.default.Element.prototype.removeAttribute=function(e){if(null!=this.elt.firstChild&&(\"checkbox\"===this.elt.firstChild.type||\"radio\"===this.elt.firstChild.type))for(var t=0;t<this.elt.childNodes.length;t++)this.elt.childNodes[t].removeAttribute(e);return this.elt.removeAttribute(e),this},h.default.Element.prototype.value=function(){return 0<arguments.length?(this.elt.value=arguments[0],this):\"range\"===this.elt.type?parseFloat(this.elt.value):this.elt.value},h.default.Element.prototype.show=function(){return this.elt.style.display=\"block\",this},h.default.Element.prototype.hide=function(){return this.elt.style.display=\"none\",this},h.default.Element.prototype.size=function(e,t){if(0===arguments.length)return{width:this.elt.offsetWidth,height:this.elt.offsetHeight};var r=e,i=t,n=h.default.prototype.AUTO;if(r!==n||i!==n){if(r===n?r=t*this.width/this.height:i===n&&(i=e*this.height/this.width),this.elt instanceof HTMLCanvasElement){var o,a={},s=this.elt.getContext(\"2d\");for(o in s)a[o]=s[o];for(o in this.elt.setAttribute(\"width\",r*this._pInst._pixelDensity),this.elt.setAttribute(\"height\",i*this._pInst._pixelDensity),this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this._pInst.scale(this._pInst._pixelDensity,this._pInst._pixelDensity),a)this.elt.getContext(\"2d\")[o]=a[o]}else this.elt.style.width=r+\"px\",this.elt.style.height=i+\"px\",this.elt.width=r,this.elt.height=i;this.width=this.elt.offsetWidth,this.height=this.elt.offsetHeight,this._pInst&&this._pInst._curElement&&this._pInst._curElement.elt===this.elt&&(this._pInst._setProperty(\"width\",this.elt.offsetWidth),this._pInst._setProperty(\"height\",this.elt.offsetHeight))}return this},h.default.Element.prototype.remove=function(){this instanceof h.default.MediaElement&&this.elt.srcObject.getTracks().forEach(function(e){e.stop()});var e=this._pInst._elements.indexOf(this);for(var t in-1!==e&&this._pInst._elements.splice(e,1),this._events)this.elt.removeEventListener(t,this._events[t]);this.elt&&this.elt.parentNode&&this.elt.parentNode.removeChild(this.elt)},h.default.Element.prototype.drop=function(n,o){if(window.File&&window.FileReader&&window.FileList&&window.Blob){if(!this._dragDisabled){this._dragDisabled=!0;var e=function(e){e.preventDefault()};this.elt.addEventListener(\"dragover\",e),this.elt.addEventListener(\"dragleave\",e)}h.default.Element._attachListener(\"drop\",function(e){e.preventDefault(),\"function\"==typeof o&&o.call(this,e);for(var t=e.dataTransfer.files,r=0;r<t.length;r++){var i=t[r];h.default.File._load(i,n)}},this)}else console.log(\"The File APIs are not fully supported in this browser.\");return this},h.default.MediaElement=function(i,e){h.default.Element.call(this,i,e);var n=this;this.elt.crossOrigin=\"anonymous\",this._prevTime=0,this._cueIDCounter=0,this._cues=[],(this._pixelsState=this)._pixelDensity=1,this._modified=!1,Object.defineProperty(n,\"src\",{get:function(){var e=n.elt.children[0].src,t=n.elt.src===window.location.href?\"\":n.elt.src;return e===window.location.href?t:e},set:function(e){for(var t=0;t<n.elt.children.length;t++)n.elt.removeChild(n.elt.children[t]);var r=document.createElement(\"source\");r.src=e,i.appendChild(r),n.elt.src=e,n.modified=!0}}),n._onended=function(){},n.elt.onended=function(){n._onended(n)}},h.default.MediaElement.prototype=Object.create(h.default.Element.prototype),h.default.MediaElement.prototype.play=function(){var e;return this.elt.currentTime===this.elt.duration&&(this.elt.currentTime=0),(e=(1<this.elt.readyState||this.elt.load(),this.elt.play()))&&e.catch&&e.catch(function(e){\"NotAllowedError\"===e.name?h.default._friendlyAutoplayError(this.src):console.error(\"Media play method encountered an unexpected error\",e)}),this},h.default.MediaElement.prototype.stop=function(){return this.elt.pause(),this.elt.currentTime=0,this},h.default.MediaElement.prototype.pause=function(){return this.elt.pause(),this},h.default.MediaElement.prototype.loop=function(){return this.elt.setAttribute(\"loop\",!0),this.play(),this},h.default.MediaElement.prototype.noLoop=function(){return this.elt.setAttribute(\"loop\",!1),this},h.default.MediaElement.prototype._setupAutoplayFailDetection=function(){var e=this,t=setTimeout(function(){return h.default._friendlyAutoplayError(e.src)},500);this.elt.addEventListener(\"play\",function(){return clearTimeout(t)},{passive:!0,once:!0})},h.default.MediaElement.prototype.autoplay=function(e){var t=this,r=this.elt.getAttribute(\"autoplay\");if(this.elt.setAttribute(\"autoplay\",e),e&&!r){var i=function(){return t._setupAutoplayFailDetection()};4===this.elt.readyState?i():this.elt.addEventListener(\"canplay\",i,{passive:!0,once:!0})}return this},h.default.MediaElement.prototype.volume=function(e){if(void 0===e)return this.elt.volume;this.elt.volume=e},h.default.MediaElement.prototype.speed=function(e){if(void 0===e)return this.presetPlaybackRate||this.elt.playbackRate;this.loadedmetadata?this.elt.playbackRate=e:this.presetPlaybackRate=e},h.default.MediaElement.prototype.time=function(e){return void 0===e?this.elt.currentTime:(this.elt.currentTime=e,this)},h.default.MediaElement.prototype.duration=function(){return this.elt.duration},h.default.MediaElement.prototype.pixels=[],h.default.MediaElement.prototype._ensureCanvas=function(){this.canvas||(this.canvas=document.createElement(\"canvas\"),this.drawingContext=this.canvas.getContext(\"2d\"),this.setModified(!0)),this.loadedmetadata&&(this.canvas.width!==this.elt.width&&(this.canvas.width=this.elt.width,this.canvas.height=this.elt.height,this.width=this.canvas.width,this.height=this.canvas.height),this.drawingContext.drawImage(this.elt,0,0,this.canvas.width,this.canvas.height),this.setModified(!0))},h.default.MediaElement.prototype.loadPixels=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.loadPixels.apply(this,arguments)},h.default.MediaElement.prototype.updatePixels=function(e,t,r,i){return this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i)),this.setModified(!0),this},h.default.MediaElement.prototype.get=function(){return this._ensureCanvas(),h.default.Renderer2D.prototype.get.apply(this,arguments)},h.default.MediaElement.prototype._getPixel=function(){return this.loadPixels(),h.default.Renderer2D.prototype._getPixel.apply(this,arguments)},h.default.MediaElement.prototype.set=function(e,t,r){this.loadedmetadata&&(this._ensureCanvas(),h.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0))},h.default.MediaElement.prototype.copy=function(){this._ensureCanvas(),h.default.prototype.copy.apply(this,arguments)},h.default.MediaElement.prototype.mask=function(){this.loadPixels(),this.setModified(!0),h.default.Image.prototype.mask.apply(this,arguments)},h.default.MediaElement.prototype.isModified=function(){return this._modified},h.default.MediaElement.prototype.setModified=function(e){this._modified=e},h.default.MediaElement.prototype.onended=function(e){return this._onended=e,this},h.default.MediaElement.prototype.connect=function(e){var t,r;if(\"function\"==typeof h.default.prototype.getAudioContext)t=h.default.prototype.getAudioContext(),r=h.default.soundOut.input;else try{r=(t=e.context).destination}catch(e){throw\"connect() is meant to be used with Web Audio API or p5.sound.js\"}this.audioSourceNode||(this.audioSourceNode=t.createMediaElementSource(this.elt),this.audioSourceNode.connect(r)),e?e.input?this.audioSourceNode.connect(e.input):this.audioSourceNode.connect(e):this.audioSourceNode.connect(r)},h.default.MediaElement.prototype.disconnect=function(){if(!this.audioSourceNode)throw\"nothing to disconnect\";this.audioSourceNode.disconnect()},h.default.MediaElement.prototype.showControls=function(){this.elt.style[\"text-align\"]=\"inherit\",this.elt.controls=!0},h.default.MediaElement.prototype.hideControls=function(){this.elt.controls=!1};function o(e,t,r,i){this.callback=e,this.time=t,this.id=r,this.val=i}h.default.MediaElement.prototype.addCue=function(e,t,r){var i=this._cueIDCounter++,n=new o(t,e,i,r);return this._cues.push(n),this.elt.ontimeupdate||(this.elt.ontimeupdate=this._onTimeUpdate.bind(this)),i},h.default.MediaElement.prototype.removeCue=function(e){for(var t=0;t<this._cues.length;t++)this._cues[t].id===e&&(console.log(e),this._cues.splice(t,1));0===this._cues.length&&(this.elt.ontimeupdate=null)},h.default.MediaElement.prototype.clearCues=function(){this._cues=[],this.elt.ontimeupdate=null},h.default.MediaElement.prototype._onTimeUpdate=function(){for(var e=this.time(),t=0;t<this._cues.length;t++){var r=this._cues[t].time,i=this._cues[t].val;this._prevTime<r&&r<=e&&this._cues[t].callback(i)}this._prevTime=e},h.default.File=function(e,t){this.file=e,this._pInst=t;var r=e.type.split(\"/\");this.type=r[0],this.subtype=r[1],this.name=e.name,this.size=e.size,this.data=void 0},h.default.File._createLoader=function(r,i){var e=new FileReader;return e.onload=function(e){var t=new h.default.File(r);t.data=e.target.result,i(t)},e},h.default.File._load=function(e,t){if(/^text\\//.test(e.type))h.default.File._createLoader(e,t).readAsText(e);else if(/^(video|audio)\\//.test(e.type)){var r=new h.default.File(e);r.data=URL.createObjectURL(e),t(r)}else h.default.File._createLoader(e,t).readAsDataURL(e)};var a=h.default;r.default=a},{\"../core/main\":49}],66:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.deviceOrientation=1<window.innerWidth/window.innerHeight?\"landscape\":\"portrait\",n.default.prototype.accelerationX=0,n.default.prototype.accelerationY=0,n.default.prototype.accelerationZ=0,n.default.prototype.pAccelerationX=0,n.default.prototype.pAccelerationY=0,n.default.prototype.pAccelerationZ=0,n.default.prototype._updatePAccelerations=function(){this._setProperty(\"pAccelerationX\",this.accelerationX),this._setProperty(\"pAccelerationY\",this.accelerationY),this._setProperty(\"pAccelerationZ\",this.accelerationZ)},n.default.prototype.rotationX=0,n.default.prototype.rotationY=0,n.default.prototype.rotationZ=0,n.default.prototype.pRotationX=0,n.default.prototype.pRotationY=0;var c=n.default.prototype.pRotationZ=0,f=0,d=0,p=\"clockwise\",m=\"clockwise\",g=\"clockwise\";n.default.prototype.pRotateDirectionX=void 0,n.default.prototype.pRotateDirectionY=void 0,n.default.prototype.pRotateDirectionZ=void 0,n.default.prototype._updatePRotations=function(){this._setProperty(\"pRotationX\",this.rotationX),this._setProperty(\"pRotationY\",this.rotationY),this._setProperty(\"pRotationZ\",this.rotationZ)},n.default.prototype.turnAxis=void 0;var v=.5,y=30;n.default.prototype.setMoveThreshold=function(e){n.default._validateParameters(\"setMoveThreshold\",arguments),v=e},n.default.prototype.setShakeThreshold=function(e){n.default._validateParameters(\"setShakeThreshold\",arguments),y=e},n.default.prototype._ondeviceorientation=function(e){this._updatePRotations(),this._angleMode===o.radians&&(e.beta=e.beta*(_PI/180),e.gamma=e.gamma*(_PI/180),e.alpha=e.alpha*(_PI/180)),this._setProperty(\"rotationX\",e.beta),this._setProperty(\"rotationY\",e.gamma),this._setProperty(\"rotationZ\",e.alpha),this._handleMotion()},n.default.prototype._ondevicemotion=function(e){this._updatePAccelerations(),this._setProperty(\"accelerationX\",2*e.acceleration.x),this._setProperty(\"accelerationY\",2*e.acceleration.y),this._setProperty(\"accelerationZ\",2*e.acceleration.z),this._handleMotion()},n.default.prototype._handleMotion=function(){90===window.orientation||-90===window.orientation?this._setProperty(\"deviceOrientation\",\"landscape\"):0===window.orientation?this._setProperty(\"deviceOrientation\",\"portrait\"):void 0===window.orientation&&this._setProperty(\"deviceOrientation\",\"undefined\");var e=this.deviceMoved||window.deviceMoved;\"function\"==typeof e&&(Math.abs(this.accelerationX-this.pAccelerationX)>v||Math.abs(this.accelerationY-this.pAccelerationY)>v||Math.abs(this.accelerationZ-this.pAccelerationZ)>v)&&e();var t=this.deviceTurned||window.deviceTurned;if(\"function\"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=c+180;0<r-i&&r-i<270||r-i<-270?p=\"clockwise\":(r-i<0||270<r-i)&&(p=\"counter-clockwise\"),p!==this.pRotateDirectionX&&(n=r),90<Math.abs(r-n)&&Math.abs(r-n)<270&&(n=r,this._setProperty(\"turnAxis\",\"X\"),t()),this.pRotateDirectionX=p,c=n-180;var o=this.rotationY+180,a=this.pRotationY+180,s=f+180;0<o-a&&o-a<270||o-a<-270?m=\"clockwise\":(o-a<0||270<o-this.pRotationY)&&(m=\"counter-clockwise\"),m!==this.pRotateDirectionY&&(s=o),90<Math.abs(o-s)&&Math.abs(o-s)<270&&(s=o,this._setProperty(\"turnAxis\",\"Y\"),t()),this.pRotateDirectionY=m,f=s-180,0<this.rotationZ-this.pRotationZ&&this.rotationZ-this.pRotationZ<270||this.rotationZ-this.pRotationZ<-270?g=\"clockwise\":(this.rotationZ-this.pRotationZ<0||270<this.rotationZ-this.pRotationZ)&&(g=\"counter-clockwise\"),g!==this.pRotateDirectionZ&&(d=this.rotationZ),90<Math.abs(this.rotationZ-d)&&Math.abs(this.rotationZ-d)<270&&(d=this.rotationZ,this._setProperty(\"turnAxis\",\"Z\"),t()),this.pRotateDirectionZ=g,this._setProperty(\"turnAxis\",void 0)}var l,u,h=this.deviceShaken||window.deviceShaken;\"function\"==typeof h&&(null!==this.pAccelerationX&&(l=Math.abs(this.accelerationX-this.pAccelerationX),u=Math.abs(this.accelerationY-this.pAccelerationY)),y<l+u&&h())};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],67:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.isKeyPressed=!1,n.default.prototype.keyIsPressed=!1,n.default.prototype.key=\"\",n.default.prototype.keyCode=0,n.default.prototype._onkeydown=function(e){if(!this._downKeys[e.which]){this._setProperty(\"isKeyPressed\",!0),this._setProperty(\"keyIsPressed\",!0),this._setProperty(\"keyCode\",e.which),this._downKeys[e.which]=!0,this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which);var t=this.keyPressed||window.keyPressed;if(\"function\"==typeof t&&!e.charCode)!1===t(e)&&e.preventDefault()}},n.default.prototype._onkeyup=function(e){var t=this.keyReleased||window.keyReleased;this._downKeys[e.which]=!1,this._areDownKeys()||(this._setProperty(\"isKeyPressed\",!1),this._setProperty(\"keyIsPressed\",!1)),this._setProperty(\"_lastKeyCodeTyped\",null),this._setProperty(\"key\",e.key||String.fromCharCode(e.which)||e.which),this._setProperty(\"keyCode\",e.which),\"function\"!=typeof t||!1===t(e)&&e.preventDefault()},n.default.prototype._onkeypress=function(e){if(e.which!==this._lastKeyCodeTyped){this._setProperty(\"_lastKeyCodeTyped\",e.which),this._setProperty(\"key\",String.fromCharCode(e.which));var t=this.keyTyped||window.keyTyped;if(\"function\"==typeof t)!1===t(e)&&e.preventDefault()}},n.default.prototype._onblur=function(e){this._downKeys={}},n.default.prototype.keyIsDown=function(e){return n.default._validateParameters(\"keyIsDown\",arguments),this._downKeys[e]||!1},n.default.prototype._areDownKeys=function(){for(var e in this._downKeys)if(this._downKeys.hasOwnProperty(e)&&!0===this._downKeys[e])return!0;return!1};var o=n.default;r.default=o},{\"../core/main\":49}],68:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype.movedX=0,n.default.prototype.movedY=0,n.default.prototype._hasMouseInteracted=!1,n.default.prototype.mouseX=0,n.default.prototype.mouseY=0,n.default.prototype.pmouseX=0,n.default.prototype.pmouseY=0,n.default.prototype.winMouseX=0,n.default.prototype.winMouseY=0,n.default.prototype.pwinMouseX=0,n.default.prototype.pwinMouseY=0,n.default.prototype.mouseButton=0,n.default.prototype.mouseIsPressed=!1,n.default.prototype._updateNextMouseCoords=function(e){if(null!==this._curElement&&(!e.touches||0<e.touches.length)){var t=function(e,t,r,i){i&&!i.clientX&&(i.touches?i=i.touches[0]:i.changedTouches&&(i=i.changedTouches[0]));var n=e.getBoundingClientRect(),o=e.scrollWidth/t||1,a=e.scrollHeight/r||1;return{x:(i.clientX-n.left)/o,y:(i.clientY-n.top)/a,winX:i.clientX,winY:i.clientY,id:i.identifier}}(this._curElement.elt,this.width,this.height,e);this._setProperty(\"movedX\",e.movementX),this._setProperty(\"movedY\",e.movementY),this._setProperty(\"mouseX\",t.x),this._setProperty(\"mouseY\",t.y),this._setProperty(\"winMouseX\",t.winX),this._setProperty(\"winMouseY\",t.winY)}this._hasMouseInteracted||(this._updateMouseCoords(),this._setProperty(\"_hasMouseInteracted\",!0))},n.default.prototype._updateMouseCoords=function(){this._setProperty(\"pmouseX\",this.mouseX),this._setProperty(\"pmouseY\",this.mouseY),this._setProperty(\"pwinMouseX\",this.winMouseX),this._setProperty(\"pwinMouseY\",this.winMouseY),this._setProperty(\"_pmouseWheelDeltaY\",this._mouseWheelDeltaY)},n.default.prototype._setMouseButton=function(e){1===e.button?this._setProperty(\"mouseButton\",o.CENTER):2===e.button?this._setProperty(\"mouseButton\",o.RIGHT):this._setProperty(\"mouseButton\",o.LEFT)},n.default.prototype._onmousemove=function(e){var t=this._isGlobal?window:this;this._updateNextMouseCoords(e),this.mouseIsPressed?\"function\"==typeof t.mouseDragged?!1===t.mouseDragged(e)&&e.preventDefault():\"function\"==typeof t.touchMoved&&!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseMoved&&!1===t.mouseMoved(e)&&e.preventDefault()},n.default.prototype._onmousedown=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._setMouseButton(e),this._updateNextMouseCoords(e),\"function\"==typeof t.mousePressed?!1===t.mousePressed(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.touchStarted&&!1===t.touchStarted(e)&&e.preventDefault()},n.default.prototype._onmouseup=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!1),\"function\"==typeof t.mouseReleased?!1===t.mouseReleased(e)&&e.preventDefault():\"function\"==typeof t.touchEnded&&!1===t.touchEnded(e)&&e.preventDefault()},n.default.prototype._ondragend=n.default.prototype._onmouseup,n.default.prototype._ondragover=n.default.prototype._onmousemove,n.default.prototype._onclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.mouseClicked&&!1===t.mouseClicked(e)&&e.preventDefault()},n.default.prototype._ondblclick=function(e){var t=this._isGlobal?window:this;\"function\"==typeof t.doubleClicked&&!1===t.doubleClicked(e)&&e.preventDefault()},n.default.prototype._mouseWheelDeltaY=0,n.default.prototype._pmouseWheelDeltaY=0,n.default.prototype._onwheel=function(e){var t=this._isGlobal?window:this;this._setProperty(\"_mouseWheelDeltaY\",e.deltaY),\"function\"==typeof t.mouseWheel&&(e.delta=e.deltaY,!1===t.mouseWheel(e)&&e.preventDefault())},n.default.prototype.requestPointerLock=function(){var e=this._curElement.elt;return e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,e.requestPointerLock?(e.requestPointerLock(),!0):(console.log(\"requestPointerLock is not implemented in this browser\"),!1)},n.default.prototype.exitPointerLock=function(){document.exitPointerLock()};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],69:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function o(e,t,r,i,n){var o=4<arguments.length&&void 0!==n?n:0,a=e.getBoundingClientRect(),s=e.scrollWidth/t||1,l=e.scrollHeight/r||1,u=i.touches[o]||i.changedTouches[o];return{x:(u.clientX-a.left)/s,y:(u.clientY-a.top)/l,winX:u.clientX,winY:u.clientY,id:u.identifier}}n.default.prototype.touches=[],n.default.prototype._updateTouchCoords=function(e){if(null!==this._curElement){for(var t=[],r=0;r<e.touches.length;r++)t[r]=o(this._curElement.elt,this.width,this.height,e,r);this._setProperty(\"touches\",t)}},n.default.prototype._ontouchstart=function(e){var t=this._isGlobal?window:this;this._setProperty(\"mouseIsPressed\",!0),this._updateTouchCoords(e),this._updateNextMouseCoords(e),this._updateMouseCoords(),\"function\"==typeof t.touchStarted?!1===t.touchStarted(e)&&e.preventDefault():navigator.userAgent.toLowerCase().includes(\"safari\")&&\"function\"==typeof t.mousePressed&&!1===t.mousePressed(e)&&e.preventDefault()},n.default.prototype._ontouchmove=function(e){var t=this._isGlobal?window:this;this._updateTouchCoords(e),this._updateNextMouseCoords(e),\"function\"==typeof t.touchMoved?!1===t.touchMoved(e)&&e.preventDefault():\"function\"==typeof t.mouseDragged&&!1===t.mouseDragged(e)&&e.preventDefault()},n.default.prototype._ontouchend=function(e){this._setProperty(\"mouseIsPressed\",!1),this._updateTouchCoords(e),this._updateNextMouseCoords(e);var t=this._isGlobal?window:this;\"function\"==typeof t.touchEnded?!1===t.touchEnded(e)&&e.preventDefault():\"function\"==typeof t.mouseReleased&&!1===t.mouseReleased(e)&&e.preventDefault()};var a=n.default;r.default=a},{\"../core/main\":49}],70:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var P,L,k,R,O={};function i(e,t){for(var r,i,n,o,a,s,l,u,h,c,f=O._toPixels(e),d=e.width,p=e.height,m=d*p,g=new Int32Array(m),v=0;v<m;v++)g[v]=O._getARGB(f,v);var y,b,_,x,w=new Int32Array(m),S=new Int32Array(m),M=new Int32Array(m),E=new Int32Array(m),T=0;for(!function(e){var t=3.5*e|0;if(P!==(t=t<1?1:t<248?t:248)){L=1+(P=t)<<1,k=new Int32Array(L),R=new Array(L);for(var r=0;r<L;r++)R[r]=new Int32Array(256);for(var i,n,o,a,s=1,l=t-1;s<t;s++){k[t+s]=k[l]=n=l*l,o=R[t+s],a=R[l--];for(var u=0;u<256;u++)o[u]=a[u]=n*u}i=k[t]=t*t,o=R[t];for(var h=0;h<256;h++)o[h]=i*h}}(t),b=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,(s=y-P)<0)c=-s,s=0;else{if(d<=s)break;c=0}for(_=c;_<L&&!(d<=s);_++){var C=g[s+T];a+=(x=R[_])[(-16777216&C)>>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=k[_],s++}w[l=T+y]=a/r,S[l]=i/r,M[l]=n/r,E[l]=o/r}T+=d}for(h=(u=-P)*d,b=T=0;b<p;b++){for(y=0;y<d;y++){if(o=n=i=a=r=0,u<0)c=l=-u,s=y;else{if(p<=u)break;c=0,l=u,s=y+h}for(_=c;_<L&&!(p<=l);_++)a+=(x=R[_])[w[s]],i+=x[S[s]],n+=x[M[s]],o+=x[E[s]],r+=k[_],l++,s+=d;g[y+T]=a/r<<24|i/r<<16|n/r<<8|o/r}T+=d,h+=d,u++}O._setPixels(f,g)}O._toPixels=function(e){return e instanceof ImageData?e.data:e.getContext(\"2d\").getImageData(0,0,e.width,e.height).data},O._getARGB=function(e,t){var r=4*t;return e[3+r]<<24&4278190080|e[r]<<16&16711680|e[1+r]<<8&65280|255&e[2+r]},O._setPixels=function(e,t){for(var r=0,i=0,n=e.length;i<n;i++)e[(r=4*i)+0]=(16711680&t[i])>>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},O._toImageData=function(e){return e instanceof ImageData?e:e.getContext(\"2d\").getImageData(0,0,e.width,e.height)},O._createImageData=function(e,t){return O._tmpCanvas=document.createElement(\"canvas\"),O._tmpCtx=O._tmpCanvas.getContext(\"2d\"),this._tmpCtx.createImageData(e,t)},O.apply=function(e,t,r){var i=e.getContext(\"2d\"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},O.threshold=function(e,t){var r=O._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n<r.length;n+=4){var o=void 0;o=i<=.2126*r[n]+.7152*r[n+1]+.0722*r[n+2]?255:0,r[n]=r[n+1]=r[n+2]=o}},O.gray=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4){var i=.2126*t[r]+.7152*t[r+1]+.0722*t[r+2];t[r]=t[r+1]=t[r+2]=i}},O.opaque=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r+3]=255;return t},O.invert=function(e){for(var t=O._toPixels(e),r=0;r<t.length;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]},O.posterize=function(e,t){var r=O._toPixels(e);if(t<2||255<t)throw new Error(\"Level must be greater than 2 and less than 255 for posterize\");for(var i=t-1,n=0;n<r.length;n+=4){var o=r[n],a=r[n+1],s=r[n+2];r[n]=255*(o*t>>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},O.dilate=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))&&(n=h,o=p),o<(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))&&(n=f,o=g),o<(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.erode=function(e){for(var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g,v,y=O._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b<r;)i=n=O._getARGB(y,b),(s=b-1)<t&&(s=b),r<=(a=b+1)&&(a=b),(l=b-e.width)<0&&(l=0),_<=(u=b+e.width)&&(u=b),f=O._getARGB(y,l),c=O._getARGB(y,s),d=O._getARGB(y,u),(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(p=77*((h=O._getARGB(y,a))>>16&255)+151*(h>>8&255)+28*(255&h))<o&&(n=h,o=p),(g=77*(f>>16&255)+151*(f>>8&255)+28*(255&f))<o&&(n=f,o=g),(v=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))<o&&(n=d,o=v),x[b++]=n;O._setPixels(y,x)},O.blur=function(e,t){i(e,t)};var n=O;r.default=n},{}],71:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var y=i(e(\"../core/main\")),b=i(e(\"omggif\"));function i(e){return e&&e.__esModule?e:{default:e}}var c=[];y.default.prototype.createImage=function(e,t){return y.default._validateParameters(\"createImage\",arguments),new y.default.Image(e,t)},y.default.prototype.saveCanvas=function(){y.default._validateParameters(\"saveCanvas\",arguments);var e,t,r,i,n=[].slice.call(arguments);switch(arguments[0]instanceof HTMLCanvasElement?(e=arguments[0],n.shift()):arguments[0]instanceof y.default.Element?(e=arguments[0].elt,n.shift()):e=this._curElement&&this._curElement.elt,1<=n.length&&(t=n[0]),2<=n.length&&(r=n[1]),r=r||y.default.prototype._checkFileExtension(t,r)[1]||\"png\"){default:i=\"image/png\";break;case\"jpeg\":case\"jpg\":i=\"image/jpeg\"}e.toBlob(function(e){y.default.prototype.downloadFile(e,t,r)},i)},y.default.prototype.saveGif=function(e,t){var r=e.gifProperties,i=r.loopLimit;1===i?i=null:null===i&&(i=0);for(var n={loop:i},o=new Uint8Array(e.width*e.height*r.numFrames),a=new b.default.GifWriter(o,e.width,e.height,n),s=[],l=0;l<r.numFrames;l++){for(var u=new Uint8Array(e.width*e.height),h=r.frames[l].image.data,c=h.length,f=0,d=0;f<c;f+=4,d++){var p=h[f+0]<<16|h[f+1]<<8|h[f+2]<<0,m=s.indexOf(p);-1===m?(u[d]=s.length,s.push(p)):u[d]=m}for(var g=1;g<s.length;)g<<=1;s.length=g,n.palette=new Uint32Array(s),n.delay=r.frames[l].delay/10,a.addFrame(0,0,e.width,e.height,u,n)}a.end();var v=new Blob([o],{type:\"image/gif\"});y.default.prototype.downloadFile(v,t,\"gif\")},y.default.prototype.saveFrames=function(e,t,r,i,a){y.default._validateParameters(\"saveFrames\",arguments);var n=r||3;n=y.default.prototype.constrain(n,0,15),n*=1e3;var o=i||15;o=y.default.prototype.constrain(o,0,22);var s=0,l=y.default.prototype._makeFrame,u=this._curElement.elt,h=setInterval(function(){l(e+s,t,u),s++},1e3/o);setTimeout(function(){if(clearInterval(h),a)a(c);else{var e=!0,t=!1,r=void 0;try{for(var i,n=c[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value;y.default.prototype.downloadFile(o.imageData,o.filename,o.ext)}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}}c=[]},n+.01)},y.default.prototype._makeFrame=function(e,t,r){var i,n;if(i=this?this._curElement.elt:r,t)switch(t.toLowerCase()){case\"png\":n=\"image/png\";break;case\"jpeg\":case\"jpg\":n=\"image/jpeg\";break;default:n=\"image/png\"}else t=\"png\",n=\"image/png\";var o=i.toDataURL(n);o=o.replace(n,\"image/octet-stream\");var a={};a.imageData=o,a.filename=e,a.ext=t,c.push(a)};var n=y.default;r.default=n},{\"../core/main\":49,omggif:32}],72:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var x=n(e(\"../core/main\")),c=n(e(\"./filters\")),w=n(e(\"../core/helpers\")),i=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),p=n(e(\"omggif\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function S(e,t){return 0<e&&e<t?e:t}e(\"../core/error_helpers\"),x.default.prototype.loadImage=function(i,n,o){x.default._validateParameters(\"loadImage\",arguments);var a=new x.default.Image(1,1,this),s=this,e=new Request(i,{method:\"GET\",mode:\"cors\"});return fetch(i,e).then(function(e){var t=e.headers.get(\"content-type\");if(null===t&&console.warn(\"The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.\"),t&&t.includes(\"image/gif\"))e.arrayBuffer().then(function(e){e&&function(e,r,t,i,n){var o=new p.default.GifReader(e);r.width=r.canvas.width=o.width,r.height=r.canvas.height=o.height;var a=[],s=o.numFrames(),l=new Uint8ClampedArray(r.width*r.height*4);if(1<s){for(var u=function(e,t){try{t.decodeAndBlitFrameRGBA(e,l)}catch(e){x.default._friendlyFileLoadError(8,r.src),\"function\"==typeof i?i(e):console.error(e)}},h=0;h<s;h++){var c=o.frameInfo(h);1===o.frameInfo(h).disposal&&0<h?r.drawingContext.putImageData(a[h-1].image,0,0):(r.drawingContext.clearRect(0,0,r.width,r.height),l=new Uint8ClampedArray(r.width*r.height*4)),u(h,o);var f=new ImageData(l,r.width,r.height);r.drawingContext.putImageData(f,0,0),a.push({image:r.drawingContext.getImageData(0,0,r.width,r.height),delay:10*c.delay})}var d=o.loopCount();null===d?d=1:0===d&&(d=null),r.gifProperties={displayIndex:0,loopLimit:d,loopCount:0,frames:a,numFrames:s,playing:!0,timeDisplayed:0}}\"function\"==typeof t&&t(r);n()}(new Uint8Array(e),a,n,o,function(e){s._decrementPreload()}.bind(s))},function(e){\"function\"==typeof o?o(e):console.error(e)});else{var r=new Image;r.onload=function(){a.width=a.canvas.width=r.width,a.height=a.canvas.height=r.height,a.drawingContext.drawImage(r,0,0),a.modified=!0,\"function\"==typeof n&&n(a),s._decrementPreload()},r.onerror=function(e){x.default._friendlyFileLoadError(0,r.src),\"function\"==typeof o?o(e):console.error(e)},0!==i.indexOf(\"data:image/\")&&(r.crossOrigin=\"Anonymous\"),r.src=i}a.modified=!0}),a},x.default.prototype.image=function(e,t,r,i,n,o,a,s,l){x.default._validateParameters(\"image\",arguments);var u=e.width,h=e.height;e.elt&&e.elt.videoWidth&&!e.canvas&&(u=e.elt.videoWidth,h=e.elt.videoHeight);var c=t,f=r,d=i||u,p=n||h,m=o||0,g=a||0,v=s||u,y=l||h;v=S(v,u),y=S(y,h);var b=1;e.elt&&!e.canvas&&e.elt.style.width&&(b=e.elt.videoWidth&&!i?e.elt.videoWidth:e.elt.width,b/=parseInt(e.elt.style.width,10)),m*=b,g*=b,y*=b,v*=b;var _=w.default.modeAdjust(c,f,d,p,this._renderer._imageMode);this._renderer.image(e,m,g,v,y,_.x,_.y,_.w,_.h)},x.default.prototype.tint=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];x.default._validateParameters(\"tint\",t);var i=this.color.apply(this,t);this._renderer._tint=i.levels},x.default.prototype.noTint=function(){this._renderer._tint=null},x.default.prototype._getTintedImageCanvas=function(e){if(!e.canvas)return e;var t=c.default._toPixels(e.canvas),r=document.createElement(\"canvas\");r.width=e.canvas.width,r.height=e.canvas.height;for(var i=r.getContext(\"2d\"),n=i.createImageData(e.canvas.width,e.canvas.height),o=n.data,a=0;a<t.length;a+=4){var s=t[a],l=t[a+1],u=t[a+2],h=t[a+3];o[a]=s*this._renderer._tint[0]/255,o[a+1]=l*this._renderer._tint[1]/255,o[a+2]=u*this._renderer._tint[2]/255,o[a+3]=h*this._renderer._tint[3]/255}return i.putImageData(n,0,0),r},x.default.prototype.imageMode=function(e){x.default._validateParameters(\"imageMode\",arguments),e!==i.CORNER&&e!==i.CORNERS&&e!==i.CENTER||(this._renderer._imageMode=e)};var o=x.default;r.default=o},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/helpers\":45,\"../core/main\":49,\"./filters\":70,omggif:32}],73:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var n=o(e(\"../core/main\")),i=o(e(\"./filters\"));function o(e){return e&&e.__esModule?e:{default:e}}n.default.Image=function(e,t){this.width=e,this.height=t,this.canvas=document.createElement(\"canvas\"),this.canvas.width=this.width,this.canvas.height=this.height,this.drawingContext=this.canvas.getContext(\"2d\"),(this._pixelsState=this)._pixelDensity=1,this.gifProperties=null,this._modified=!1,this.pixels=[]},n.default.Image.prototype._animateGif=function(e){var t=this.gifProperties;if(t.playing){t.timeDisplayed+=e.deltaTime;var r=t.frames[t.displayIndex].delay;if(t.timeDisplayed>=r){var i=Math.floor(t.timeDisplayed/r);if(t.timeDisplayed=0,t.displayIndex+=i,t.loopCount=Math.floor(t.displayIndex/t.numFrames),null!==t.loopLimit&&t.loopCount>=t.loopLimit)t.playing=!1;else{var n=t.displayIndex%t.numFrames;this.drawingContext.putImageData(t.frames[n].image,0,0),t.displayIndex=n,this.setModified(!0)}}}},n.default.Image.prototype._setProperty=function(e,t){this[e]=t,this.setModified(!0)},n.default.Image.prototype.loadPixels=function(){n.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)},n.default.Image.prototype.updatePixels=function(e,t,r,i){n.default.Renderer2D.prototype.updatePixels.call(this,e,t,r,i),this.setModified(!0)},n.default.Image.prototype.get=function(e,t,r,i){return n.default._validateParameters(\"p5.Image.get\",arguments),n.default.Renderer2D.prototype.get.apply(this,arguments)},n.default.Image.prototype._getPixel=n.default.Renderer2D.prototype._getPixel,n.default.Image.prototype.set=function(e,t,r){n.default.Renderer2D.prototype.set.call(this,e,t,r),this.setModified(!0)},n.default.Image.prototype.resize=function(e,t){0===e&&0===t?(e=this.canvas.width,t=this.canvas.height):0===e?e=this.canvas.width*t/this.canvas.height:0===t&&(t=this.canvas.height*e/this.canvas.width),e=Math.floor(e),t=Math.floor(t);var r=document.createElement(\"canvas\");if(r.width=e,r.height=t,this.gifProperties)for(var i=this.gifProperties,n=function(e,t){for(var r=0,i=0;i<t.height;i++)for(var n=0;n<t.width;n++){var o=Math.floor(n*e.width/t.width),a=4*(Math.floor(i*e.height/t.height)*e.width+o);t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++],t.data[r++]=e.data[a++]}},o=0;o<i.numFrames;o++){var a=this.drawingContext.createImageData(e,t);n(i.frames[o].image,a),i.frames[o].image=a}r.getContext(\"2d\").drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,r.width,r.height),this.canvas.width=this.width=e,this.canvas.height=this.height=t,this.drawingContext.drawImage(r,0,0,e,t,0,0,e,t),0<this.pixels.length&&this.loadPixels(),this.setModified(!0)},n.default.Image.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.copy.apply(this,t)},n.default.Image.prototype.mask=function(e){void 0===e&&(e=this);var t=this.drawingContext.globalCompositeOperation,r=1;e instanceof n.default.Renderer&&(r=e._pInst._pixelDensity);var i=[e,0,0,r*e.width,r*e.height,0,0,this.width,this.height];this.drawingContext.globalCompositeOperation=\"destination-in\",n.default.Image.prototype.copy.apply(this,i),this.drawingContext.globalCompositeOperation=t,this.setModified(!0)},n.default.Image.prototype.filter=function(e,t){i.default.apply(this.canvas,i.default[e],t),this.setModified(!0)},n.default.Image.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.default.prototype.blend.apply(this,t),this.setModified(!0)},n.default.Image.prototype.setModified=function(e){this._modified=e},n.default.Image.prototype.isModified=function(){return this._modified},n.default.Image.prototype.save=function(e,t){this.gifProperties?n.default.prototype.saveGif(this,e):n.default.prototype.saveCanvas(this.canvas,e,t)},n.default.Image.prototype.reset=function(){if(this.gifProperties){var e=this.gifProperties;e.playing=!0,e.timeSinceStart=0,e.timeDisplayed=0,e.loopCount=0,e.displayIndex=0,this.drawingContext.putImageData(e.frames[0].image,0,0)}},n.default.Image.prototype.getCurrentFrame=function(){if(this.gifProperties){var e=this.gifProperties;return e.displayIndex%e.numFrames}},n.default.Image.prototype.setFrame=function(e){if(this.gifProperties){var t=this.gifProperties;e<t.numFrames&&0<=e?(t.timeDisplayed=0,t.displayIndex=e,this.drawingContext.putImageData(t.frames[e].image,0,0)):console.log(\"Cannot set GIF to a frame number that is higher than total number of frames or below zero.\")}},n.default.Image.prototype.numFrames=function(){if(this.gifProperties)return this.gifProperties.numFrames},n.default.Image.prototype.play=function(){this.gifProperties&&(this.gifProperties.playing=!0)},n.default.Image.prototype.pause=function(){this.gifProperties&&(this.gifProperties.playing=!1)},n.default.Image.prototype.delay=function(e,t){if(this.gifProperties){var r=this.gifProperties;if(t<r.numFrames&&0<=t)r.frames[t].delay=e;else{var i=!0,n=!1,o=void 0;try{for(var a,s=r.frames[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){a.value.delay=e}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}};var a=n.default.Image;r.default=a},{\"../core/main\":49,\"./filters\":70}],74:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var d=n(e(\"../core/main\")),i=n(e(\"./filters\"));function n(e){return e&&e.__esModule?e:{default:e}}e(\"../color/p5.Color\"),d.default.prototype.pixels=[],d.default.prototype.blend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i;(d.default._validateParameters(\"blend\",t),this._renderer)?(i=this._renderer).blend.apply(i,t):d.default.Renderer2D.prototype.blend.apply(this,t)},d.default.prototype.copy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n,o,a,s,l,u,h,c;if(d.default._validateParameters(\"copy\",t),9===t.length)i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],h=t[7],c=t[8];else{if(8!==t.length)throw new Error(\"Signature not supported\");i=this,n=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],c=t[7]}d.default.prototype._copyHelper(this,i,n,o,a,s,l,u,h,c)},d.default.prototype._copyHelper=function(e,t,r,i,n,o,a,s,l,u){t.loadPixels();var h=t.canvas.width/t.width,c=0,f=0;t._renderer&&t._renderer.isP3D&&(c=t.width/2,f=t.height/2),e._renderer&&e._renderer.isP3D?d.default.RendererGL.prototype.image.call(e._renderer,t,r+c,i+f,n,o,a,s,l,u):e.drawingContext.drawImage(t.canvas,h*(r+c),h*(i+f),h*n,h*o,a,s,l,u)},d.default.prototype.filter=function(e,t){d.default._validateParameters(\"filter\",arguments),void 0!==this.canvas?i.default.apply(this.canvas,i.default[e],t):i.default.apply(this.elt,i.default[e],t)},d.default.prototype.get=function(e,t,r,i){var n;return d.default._validateParameters(\"get\",arguments),(n=this._renderer).get.apply(n,arguments)},d.default.prototype.loadPixels=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];d.default._validateParameters(\"loadPixels\",t),this._renderer.loadPixels()},d.default.prototype.set=function(e,t,r){this._renderer.set(e,t,r)},d.default.prototype.updatePixels=function(e,t,r,i){d.default._validateParameters(\"updatePixels\",arguments),0!==this.pixels.length&&this._renderer.updatePixels(e,t,r,i)};var o=d.default;r.default=o},{\"../color/p5.Color\":40,\"../core/main\":49,\"./filters\":70}],75:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var v=i(e(\"../core/main\"));e(\"whatwg-fetch\"),e(\"es6-promise/auto\");var m=i(e(\"fetch-jsonp\")),s=i(e(\"file-saver\"));function i(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function y(e,t){var r={};if(void 0===(t=t||[]))for(var i=0;i<e.length;i++)t[i.toString()]=i;for(var n=0;n<t.length;n++){var o=t[n],a=e[n];r[o]=a}return r}function b(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\").replace(/'/g,\"&#039;\")}function l(e,t){t&&!0!==t&&\"true\"!==t||(t=\"\");var r=\"\";return(e=e||\"untitled\")&&e.includes(\".\")&&(r=e.split(\".\").pop()),t&&r!==t&&(r=t,e=\"\".concat(e,\".\").concat(r)),[e,r]}e(\"../core/error_helpers\"),v.default.prototype.loadJSON=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadJSON\",t);for(var i,n,o,a=t[0],s={},l=\"json\",u=1;u<t.length;u++){var h=t[u];\"string\"==typeof h?\"jsonp\"!==h&&\"json\"!==h||(l=h):\"function\"==typeof h?i?n=h:i=h:\"object\"===g(h)&&(h.hasOwnProperty(\"jsonpCallback\")||h.hasOwnProperty(\"jsonpCallbackFunction\"))&&(l=\"jsonp\",o=h)}var c=this;return this.httpDo(a,\"GET\",o,l,function(e){for(var t in e)s[t]=e[t];void 0!==i&&i(e),c._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(5,a),!n)throw e;n(e)}),s},v.default.prototype.loadStrings=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];v.default._validateParameters(\"loadStrings\",t);for(var i,n,o=[],a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return v.default.prototype.httpDo.call(this,t[0],\"GET\",\"text\",function(e){var t=e.replace(/\\r\\n/g,\"\\r\").replace(/\\n/g,\"\\r\").split(/\\r/);Array.prototype.push.apply(o,t),void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(3,e),!n)throw e;n(e)}),o},v.default.prototype.loadTable=function(t){var f,r,e=[],d=!1,i=t.substring(t.lastIndexOf(\".\")+1,t.length),p=\",\",n=!1;\"tsv\"===i&&(p=\"\\t\");for(var o=1;o<arguments.length;o++)if(\"function\"==typeof arguments[o])void 0===f?f=arguments[o]:void 0===r&&(r=arguments[o]);else if(\"string\"==typeof arguments[o])if(e.push(arguments[o]),\"header\"===arguments[o]&&(d=!0),\"csv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\",\",n=!0}else if(\"tsv\"===arguments[o]){if(n)throw new Error(\"Cannot set multiple separator types.\");p=\"\\t\",n=!0}var m=new v.default.Table,g=this;return this.httpDo(t,\"GET\",\"table\",function(e){for(var t,r,i={},n=[],o=0,a=null,s=function(){i.currentState=0,i.token=\"\"},l=function(){a.push(i.token),s()},u=function(){i.currentState=4,n.push(a),a=null};;){if(null==(t=e[o++])){if(i.escaped)throw new Error(\"Unclosed quote in file.\");if(a){l(),u();break}}if(null===a&&(i.escaped=!1,a=[],s()),0===i.currentState){if('\"'===t){i.escaped=!0,i.currentState=1;continue}i.currentState=1}if(1===i.currentState&&i.escaped)if('\"'===t)'\"'===e[o]?(i.token+='\"',o++):(i.escaped=!1,i.currentState=2);else{if(\"\\r\"===t)continue;i.token+=t}else\"\\r\"===t?(\"\\n\"===e[o]&&o++,l(),u()):\"\\n\"===t?(l(),u()):t===p?l():1===i.currentState&&(i.token+=t)}if(d)m.columns=n.shift();else for(var h=0;h<n[0].length;h++)m.columns[h]=\"null\";for(var c=0;c<n.length;c++)(1!==n[c].length||\"undefined\"!==n[c][0]&&\"\"!==n[c][0])&&((r=new v.default.TableRow).arr=n[c],r.obj=y(n[c],m.columns),m.addRow(r));\"function\"==typeof f&&f(m),g._decrementPreload()},function(e){v.default._friendlyFileLoadError(2,t),r?r(e):console.error(e)}),m},v.default.prototype.loadXML=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i,n,o=new v.default.XML,a=1;a<t.length;a++){var s=t[a];\"function\"==typeof s&&(void 0===i?i=s:void 0===n&&(n=s))}var l=this;return this.httpDo(t[0],\"GET\",\"xml\",function(e){for(var t in e)o[t]=e[t];void 0!==i&&i(o),l._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(1,e),!n)throw e;n(e)}),o},v.default.prototype.loadBytes=function(t,r,i){var n={},o=this;return this.httpDo(t,\"GET\",\"arrayBuffer\",function(e){n.bytes=new Uint8Array(e),\"function\"==typeof r&&r(n),o._decrementPreload()},function(e){if(v.default._friendlyFileLoadError(6,t),!i)throw e;i(e)}),n},v.default.prototype.httpGet=function(){v.default._validateParameters(\"httpGet\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"GET\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpPost=function(){v.default._validateParameters(\"httpPost\",arguments);var e=Array.prototype.slice.call(arguments);return e.splice(1,0,\"POST\"),v.default.prototype.httpDo.apply(this,e)},v.default.prototype.httpDo=function(){for(var i,e,t,r,n,o={},a=0,s=\"text/plain\",l=arguments.length-1;0<l&&\"function\"==typeof(l<0||arguments.length<=l?void 0:arguments[l]);l--)a++;var u=arguments.length<=0?void 0:arguments[0];if(2==arguments.length-a&&\"string\"==typeof u&&\"object\"===g(arguments.length<=1?void 0:arguments[1]))r=new Request(u,arguments.length<=1?void 0:arguments[1]),e=arguments.length<=2?void 0:arguments[2],t=arguments.length<=3?void 0:arguments[3];else{for(var h,c=\"GET\",f=1;f<arguments.length;f++){var d=f<0||arguments.length<=f?void 0:arguments[f];if(\"string\"==typeof d)\"GET\"===d||\"POST\"===d||\"PUT\"===d||\"DELETE\"===d?c=d:\"json\"===d||\"jsonp\"===d||\"binary\"===d||\"arrayBuffer\"===d||\"xml\"===d||\"text\"===d||\"table\"===d?i=d:h=d;else if(\"number\"==typeof d)h=d.toString();else if(\"object\"===g(d))if(d.hasOwnProperty(\"jsonpCallback\")||d.hasOwnProperty(\"jsonpCallbackFunction\"))for(var p in d)o[p]=d[p];else s=d instanceof v.default.XML?(h=d.serialize(),\"application/xml\"):(h=JSON.stringify(d),\"application/json\");else\"function\"==typeof d&&(e?t=d:e=d)}r=new Request(u,{method:c,mode:\"cors\",body:h,headers:new Headers({\"Content-Type\":s})})}return(n=(n=\"jsonp\"===(i=i||(u.includes(\"json\")?\"json\":u.includes(\"xml\")?\"xml\":\"text\"))?(0,m.default)(u,o):fetch(r)).then(function(e){if(!e.ok){var t=new Error(e.body);throw t.status=e.status,t.ok=!1,t}var r=0;switch(\"jsonp\"!==i&&(r=e.headers.get(\"content-length\")),r&&64e6<r&&v.default._friendlyFileLoadError(7,u),i){case\"json\":case\"jsonp\":return e.json();case\"binary\":return e.blob();case\"arrayBuffer\":return e.arrayBuffer();case\"xml\":return e.text().then(function(e){var t=(new DOMParser).parseFromString(e,\"text/xml\");return new v.default.XML(t.documentElement)});default:return e.text()}})).then(e||function(){}),n.catch(t||console.error),n},window.URL=window.URL||window.webkitURL,v.default.prototype._pWriters=[],v.default.prototype.createWriter=function(e,t){var r;for(var i in v.default.prototype._pWriters)if(v.default.prototype._pWriters[i].name===e)return r=new v.default.PrintWriter(e+this.millis(),t),v.default.prototype._pWriters.push(r),r;return r=new v.default.PrintWriter(e,t),v.default.prototype._pWriters.push(r),r},v.default.PrintWriter=function(r,i){var n=this;this.name=r,this.content=\"\",this.write=function(e){this.content+=e},this.print=function(e){this.content+=\"\".concat(e,\"\\n\")},this.clear=function(){this.content=\"\"},this.close=function(){var e=[];for(var t in e.push(this.content),v.default.prototype.writeFile(e,r,i),v.default.prototype._pWriters)v.default.prototype._pWriters[t].name===this.name&&v.default.prototype._pWriters.splice(t,1);n.clear(),n={}}},v.default.prototype.save=function(e,t,r){var i=arguments,n=this._curElement?this._curElement.elt:this.elt;if(0!==i.length)if(i[0]instanceof v.default.Renderer||i[0]instanceof v.default.Graphics)v.default.prototype.saveCanvas(i[0].elt,i[1],i[2]);else if(1===i.length&&\"string\"==typeof i[0])v.default.prototype.saveCanvas(n,i[0]);else switch(l(i[1],i[2])[1]){case\"json\":return void v.default.prototype.saveJSON(i[0],i[1],i[2]);case\"txt\":return void v.default.prototype.saveStrings(i[0],i[1],i[2]);default:i[0]instanceof Array?v.default.prototype.saveStrings(i[0],i[1],i[2]):i[0]instanceof v.default.Table?v.default.prototype.saveTable(i[0],i[1],i[2]):i[0]instanceof v.default.Image?v.default.prototype.saveCanvas(i[0].canvas,i[1]):i[0]instanceof v.default.SoundFile&&v.default.prototype.saveSound(i[0],i[1],i[2],i[3])}else v.default.prototype.saveCanvas(n)},v.default.prototype.saveJSON=function(e,t,r){var i;v.default._validateParameters(\"saveJSON\",arguments),i=r?JSON.stringify(e):JSON.stringify(e,void 0,2),this.saveStrings(i.split(\"\\n\"),t,\"json\")},v.default.prototype.saveJSONObject=v.default.prototype.saveJSON,v.default.prototype.saveJSONArray=v.default.prototype.saveJSON,v.default.prototype.saveStrings=function(e,t,r,i){v.default._validateParameters(\"saveStrings\",arguments);for(var n=r||\"txt\",o=this.createWriter(t,n),a=0;a<e.length;a++)i?o.write(e[a]+\"\\r\\n\"):o.write(e[a]+\"\\n\");o.close(),o.clear()},v.default.prototype.saveTable=function(e,t,r){var i;v.default._validateParameters(\"saveTable\",arguments),i=void 0===r?t.substring(t.lastIndexOf(\".\")+1,t.length):r;var n=this.createWriter(t,i),o=e.columns,a=\",\";if(\"tsv\"===i&&(a=\"\\t\"),\"html\"!==i){if(\"0\"!==o[0]){for(var s=0;s<o.length;s++)s<o.length-1?n.write(o[s]+a):n.write(o[s]);n.write(\"\\n\")}for(var l=0;l<e.rows.length;l++){var u=void 0;for(u=0;u<e.rows[l].arr.length;u++)u<e.rows[l].arr.length-1?n.write(e.rows[l].arr[u]+a):(e.rows.length,n.write(e.rows[l].arr[u]));n.write(\"\\n\")}}else{n.print(\"<html>\"),n.print(\"<head>\");if(n.print('  <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />'),n.print(\"</head>\"),n.print(\"<body>\"),n.print(\"  <table>\"),\"0\"!==o[0]){n.print(\"    <tr>\");for(var h=0;h<o.length;h++){var c=b(o[h]);n.print(\"      <td>\".concat(c)),n.print(\"      </td>\")}n.print(\"    </tr>\")}for(var f=0;f<e.rows.length;f++){n.print(\"    <tr>\");for(var d=0;d<e.columns.length;d++){var p=b(e.rows[f].getString(d));n.print(\"      <td>\".concat(p)),n.print(\"      </td>\")}n.print(\"    </tr>\")}n.print(\"  </table>\"),n.print(\"</body>\"),n.print(\"</html>\")}n.close(),n.clear()},v.default.prototype.writeFile=function(e,t,r){var i=\"application/octet-stream\";v.default.prototype._isSafari()&&(i=\"text/plain\");var n=new Blob(e,{type:i});v.default.prototype.downloadFile(n,t,r)},v.default.prototype.downloadFile=function(e,t,r){var i=l(t,r),n=i[0];if(e instanceof Blob)s.default.saveAs(e,n);else{var o=document.createElement(\"a\");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display=\"none\",document.body.appendChild(o),v.default.prototype._isSafari()){var a=\"Hello, Safari user! To download this file...\\n\";a+=\"1. Go to File --\\x3e Save As.\\n\",a+='2. Choose \"Page Source\" as the Format.\\n',a+='3. Name it with this extension: .\"'.concat(i[1],'\"'),alert(a)}o.click()}},v.default.prototype._checkFileExtension=l,v.default.prototype._isSafari=function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf(\"Constructor\")};var n=v.default;r.default=n},{\"../core/error_helpers\":44,\"../core/main\":49,\"es6-promise/auto\":22,\"fetch-jsonp\":24,\"file-saver\":25,\"whatwg-fetch\":36}],76:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Table=function(e){this.columns=[],this.rows=[]},n.default.Table.prototype.addRow=function(e){var t=e||new n.default.TableRow;if(void 0===t.arr||void 0===t.obj)throw new Error(\"invalid TableRow: \".concat(t));return(t.table=this).rows.push(t),t},n.default.Table.prototype.removeRow=function(e){this.rows[e].table=null;var t=this.rows.splice(e+1,this.rows.length);this.rows.pop(),this.rows=this.rows.concat(t)},n.default.Table.prototype.getRow=function(e){return this.rows[e]},n.default.Table.prototype.getRows=function(){return this.rows},n.default.Table.prototype.findRow=function(e,t){if(\"string\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].obj[t]===e)return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].arr[t]===e)return this.rows[i];return null},n.default.Table.prototype.findRows=function(e,t){var r=[];if(\"string\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].obj[t]===e&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].arr[t]===e&&r.push(this.rows[n]);return r},n.default.Table.prototype.matchRow=function(e,t){if(\"number\"==typeof t){for(var r=0;r<this.rows.length;r++)if(this.rows[r].arr[t].match(e))return this.rows[r]}else for(var i=0;i<this.rows.length;i++)if(this.rows[i].obj[t].match(e))return this.rows[i];return null},n.default.Table.prototype.matchRows=function(e,t){var r=[];if(\"number\"==typeof t)for(var i=0;i<this.rows.length;i++)this.rows[i].arr[t].match(e)&&r.push(this.rows[i]);else for(var n=0;n<this.rows.length;n++)this.rows[n].obj[t].match(e)&&r.push(this.rows[n]);return r},n.default.Table.prototype.getColumn=function(e){var t=[];if(\"string\"==typeof e)for(var r=0;r<this.rows.length;r++)t.push(this.rows[r].obj[e]);else for(var i=0;i<this.rows.length;i++)t.push(this.rows[i].arr[e]);return t},n.default.Table.prototype.clearRows=function(){delete this.rows,this.rows=[]},n.default.Table.prototype.addColumn=function(e){var t=e||null;this.columns.push(t)},n.default.Table.prototype.getColumnCount=function(){return this.columns.length},n.default.Table.prototype.getRowCount=function(){return this.rows.length},n.default.Table.prototype.removeTokens=function(e,t){for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i).replace(/[-/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\"));var n=new RegExp(r.join(\"|\"),\"g\");if(void 0===t)for(var o=0;o<this.columns.length;o++)for(var a=0;a<this.rows.length;a++){var s=this.rows[a].arr[o];s=s.replace(n,\"\"),this.rows[a].arr[o]=s,this.rows[a].obj[this.columns[o]]=s}else if(\"string\"==typeof t)for(var l=0;l<this.rows.length;l++){var u=this.rows[l].obj[t];u=u.replace(n,\"\"),this.rows[l].obj[t]=u;var h=this.columns.indexOf(t);this.rows[l].arr[h]=u}else for(var c=0;c<this.rows.length;c++){var f=this.rows[c].arr[t];f=f.replace(n,\"\"),this.rows[c].arr[t]=f,this.rows[c].obj[this.columns[t]]=f}},n.default.Table.prototype.trim=function(e){var t=new RegExp(\" \",\"g\");if(void 0===e)for(var r=0;r<this.columns.length;r++)for(var i=0;i<this.rows.length;i++){var n=this.rows[i].arr[r];n=n.replace(t,\"\"),this.rows[i].arr[r]=n,this.rows[i].obj[this.columns[r]]=n}else if(\"string\"==typeof e)for(var o=0;o<this.rows.length;o++){var a=this.rows[o].obj[e];a=a.replace(t,\"\"),this.rows[o].obj[e]=a;var s=this.columns.indexOf(e);this.rows[o].arr[s]=a}else for(var l=0;l<this.rows.length;l++){var u=this.rows[l].arr[e];u=u.replace(t,\"\"),this.rows[l].arr[e]=u,this.rows[l].obj[this.columns[e]]=u}},n.default.Table.prototype.removeColumn=function(e){var t,r;\"string\"==typeof e?(t=e,r=this.columns.indexOf(e)):(r=e,t=this.columns[e]);var i=this.columns.splice(r+1,this.columns.length);this.columns.pop(),this.columns=this.columns.concat(i);for(var n=0;n<this.rows.length;n++){var o=this.rows[n].arr,a=o.splice(r+1,o.length);o.pop(),this.rows[n].arr=o.concat(a),delete this.rows[n].obj[t]}},n.default.Table.prototype.set=function(e,t,r){this.rows[e].set(t,r)},n.default.Table.prototype.setNum=function(e,t,r){this.rows[e].setNum(t,r)},n.default.Table.prototype.setString=function(e,t,r){this.rows[e].setString(t,r)},n.default.Table.prototype.get=function(e,t){return this.rows[e].get(t)},n.default.Table.prototype.getNum=function(e,t){return this.rows[e].getNum(t)},n.default.Table.prototype.getString=function(e,t){return this.rows[e].getString(t)},n.default.Table.prototype.getObject=function(e){for(var t,r={},i=0;i<this.rows.length;i++)if(t=this.rows[i].obj,\"string\"==typeof e){if(!(0<=this.columns.indexOf(e)))throw new Error('This table has no column named \"'.concat(e,'\"'));r[t[e]]=t}else r[i]=this.rows[i].obj;return r},n.default.Table.prototype.getArray=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(this.rows[t].arr);return e};var o=n.default;r.default=o},{\"../core/main\":49}],77:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.TableRow=function(e,t){var r=[],i={};e&&(t=t||\",\",r=e.split(t));for(var n=0;n<r.length;n++){var o=n,a=r[n];i[o]=a}this.arr=r,this.obj=i,this.table=null},n.default.TableRow.prototype.set=function(e,t){if(\"string\"==typeof e){var r=this.table.columns.indexOf(e);if(!(0<=r))throw new Error('This table has no column named \"'.concat(e,'\"'));this.obj[e]=t,this.arr[r]=t}else{if(!(e<this.table.columns.length))throw new Error(\"Column #\".concat(e,\" is out of the range of this table\"));this.arr[e]=t;var i=this.table.columns[e];this.obj[i]=t}},n.default.TableRow.prototype.setNum=function(e,t){var r=parseFloat(t);this.set(e,r)},n.default.TableRow.prototype.setString=function(e,t){var r=t.toString();this.set(e,r)},n.default.TableRow.prototype.get=function(e){return\"string\"==typeof e?this.obj[e]:this.arr[e]},n.default.TableRow.prototype.getNum=function(e){var t;if(\"NaN\"===(t=\"string\"==typeof e?parseFloat(this.obj[e]):parseFloat(this.arr[e])).toString())throw\"Error: \".concat(this.obj[e],\" is NaN (Not a Number)\");return t},n.default.TableRow.prototype.getString=function(e){return\"string\"==typeof e?this.obj[e].toString():this.arr[e].toString()};var o=n.default;r.default=o},{\"../core/main\":49}],78:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e){for(var t=[],r=0;r<e.length;r++)t.push(new s.default.XML(e[r]));return t}s.default.XML=function(e){if(e)this.DOM=e;else{var t=document.implementation.createDocument(null,\"doc\");this.DOM=t.createElement(\"root\")}},s.default.XML.prototype.getParent=function(){return new s.default.XML(this.DOM.parentElement)},s.default.XML.prototype.getName=function(){return this.DOM.tagName},s.default.XML.prototype.setName=function(e){var t=this.DOM.innerHTML,r=this.DOM.attributes,i=document.implementation.createDocument(null,\"default\").createElement(e);i.innerHTML=t;for(var n=0;n<r.length;n++)i.setAttribute(r[n].nodeName,r.nodeValue);this.DOM=i},s.default.XML.prototype.hasChildren=function(){return 0<this.DOM.children.length},s.default.XML.prototype.listChildren=function(){for(var e=[],t=0;t<this.DOM.childNodes.length;t++)e.push(this.DOM.childNodes[t].nodeName);return e},s.default.XML.prototype.getChildren=function(e){return n(e?this.DOM.getElementsByTagName(e):this.DOM.children)},s.default.XML.prototype.getChild=function(e){if(\"string\"!=typeof e)return new s.default.XML(this.DOM.children[e]);var t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.children[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;if(a.tagName===e)return new s.default.XML(a)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},s.default.XML.prototype.addChild=function(e){e instanceof s.default.XML&&this.DOM.appendChild(e.DOM)},s.default.XML.prototype.removeChild=function(e){var t=-1;if(\"string\"==typeof e){for(var r=0;r<this.DOM.children.length;r++)if(this.DOM.children[r].tagName===e){t=r;break}}else t=e;-1!==t&&this.DOM.removeChild(this.DOM.children[t])},s.default.XML.prototype.getAttributeCount=function(){return this.DOM.attributes.length},s.default.XML.prototype.listAttributes=function(){var e=[],t=!0,r=!1,i=void 0;try{for(var n,o=this.DOM.attributes[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;e.push(a.nodeName)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}return e},s.default.XML.prototype.hasAttribute=function(e){var t={},r=!0,i=!1,n=void 0;try{for(var o,a=this.DOM.attributes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t[s.nodeName]=s.nodeValue}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return!!t[e]},s.default.XML.prototype.getNum=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return Number(r[e])||t||0},s.default.XML.prototype.getString=function(e,t){var r={},i=!0,n=!1,o=void 0;try{for(var a,s=this.DOM.attributes[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var l=a.value;r[l.nodeName]=l.nodeValue}}catch(e){n=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}return r[e]?String(r[e]):t||null},s.default.XML.prototype.setAttribute=function(e,t){this.DOM.setAttribute(e,t)},s.default.XML.prototype.getContent=function(e){return this.DOM.textContent.replace(/\\s\\s+/g,\",\")||e||null},s.default.XML.prototype.setContent=function(e){this.DOM.children.length||(this.DOM.textContent=e)},s.default.XML.prototype.serialize=function(){return(new XMLSerializer).serializeToString(this.DOM)};var o=s.default;r.default=o},{\"../core/main\":49}],79:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(){if(\"function\"==typeof Math.hypot)return Math.hypot.apply(null,arguments);for(var e=arguments.length,t=[],r=0,i=0;i<e;i++){var n=arguments[i];if((n=+n)===1/0||n===-1/0)return 1/0;r<(n=Math.abs(n))&&(r=n),t[i]=n}0===r&&(r=1);for(var o=0,a=0,s=0;s<e;s++){var l=t[s]/r,u=l*l-a,h=o+u;a=h-o-u,o=h}return Math.sqrt(o)*r}s.default.prototype.abs=Math.abs,s.default.prototype.ceil=Math.ceil,s.default.prototype.constrain=function(e,t,r){return s.default._validateParameters(\"constrain\",arguments),Math.max(Math.min(e,r),t)},s.default.prototype.dist=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"dist\",t),4===t.length?n(t[2]-t[0],t[3]-t[1]):6===t.length?n(t[3]-t[0],t[4]-t[1],t[5]-t[2]):void 0},s.default.prototype.exp=Math.exp,s.default.prototype.floor=Math.floor,s.default.prototype.lerp=function(e,t,r){return s.default._validateParameters(\"lerp\",arguments),r*(t-e)+e},s.default.prototype.log=Math.log,s.default.prototype.mag=function(e,t){return s.default._validateParameters(\"mag\",arguments),n(e,t)},s.default.prototype.map=function(e,t,r,i,n,o){s.default._validateParameters(\"map\",arguments);var a=(e-t)/(r-t)*(n-i)+i;return o?i<n?this.constrain(a,i,n):this.constrain(a,n,i):a},s.default.prototype.max=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"max\",t),t[0]instanceof Array?Math.max.apply(null,t[0]):Math.max.apply(null,t)},s.default.prototype.min=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.default._validateParameters(\"min\",t),t[0]instanceof Array?Math.min.apply(null,t[0]):Math.min.apply(null,t)},s.default.prototype.norm=function(e,t,r){return s.default._validateParameters(\"norm\",arguments),this.map(e,t,r,0,1)},s.default.prototype.pow=Math.pow,s.default.prototype.round=function(e,t){return t?Number(Math.round(e+\"e\"+t)+\"e-\"+t):Math.round(e)},s.default.prototype.sq=function(e){return e*e},s.default.prototype.sqrt=Math.sqrt,s.default.prototype.fract=function(e){s.default._validateParameters(\"fract\",arguments);var t=0,r=Number(e);if(isNaN(r)||Math.abs(r)===1/0)return r;if(r<0&&(r=-r,t=1),!String(r).includes(\".\")||String(r).includes(\"e\"))return r<1?Math.abs(t-r):0;var i=String(r);return i=Number(\"0\"+i.slice(i.indexOf(\".\"))),Math.abs(t-i)};var o=s.default;r.default=o},{\"../core/main\":49}],80:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.createVector=function(e,t,r){return this instanceof n.default?new n.default.Vector(this,arguments):new n.default.Vector(e,t,r)};var o=n.default;r.default=o},{\"../core/main\":49}],81:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function b(e){return.5*(1-Math.cos(e*Math.PI))}var _,x=4095,w=4,S=.5;n.default.prototype.noise=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(null==_){_=new Array(4096);for(var i=0;i<4096;i++)_[i]=Math.random()}e<0&&(e=-e),t<0&&(t=-t),r<0&&(r=-r);for(var n,o,a,s,l,u=Math.floor(e),h=Math.floor(t),c=Math.floor(r),f=e-u,d=t-h,p=r-c,m=0,g=.5,v=0;v<w;v++){var y=u+(h<<4)+(c<<8);n=b(f),o=b(d),a=_[y&x],a+=n*(_[y+1&x]-a),s=_[y+16&x],a+=o*((s+=n*(_[y+16+1&x]-s))-a),s=_[(y+=256)&x],s+=n*(_[y+1&x]-s),l=_[y+16&x],s+=o*((l+=n*(_[y+16+1&x]-l))-s),m+=(a+=b(p)*(s-a))*g,g*=S,u<<=1,h<<=1,c<<=1,1<=(f*=2)&&(u++,f--),1<=(d*=2)&&(h++,d--),1<=(p*=2)&&(c++,p--)}return m},n.default.prototype.noiseDetail=function(e,t){0<e&&(w=e),0<t&&(S=t)},n.default.prototype.noiseSeed=function(e){var t,r,i,n=(i=4294967296,{setSeed:function(e){r=t=(null==e?Math.random()*i:e)>>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),_=new Array(4096);for(var o=0;o<4096;o++)_[o]=n.rand()};var o=n.default;r.default=o},{\"../core/main\":49}],82:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,l=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}l.default.Vector=function(e,t,r){var i,n,o;o=e instanceof l.default?(this.p5=e,i=t[0]||0,n=t[1]||0,t[2]||0):(i=e||0,n=t||0,r||0),this.x=i,this.y=n,this.z=o},l.default.Vector.prototype.toString=function(){return\"p5.Vector Object : [\".concat(this.x,\", \").concat(this.y,\", \").concat(this.z,\"]\")},l.default.Vector.prototype.set=function(e,t,r){return e instanceof l.default.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},l.default.Vector.prototype.copy=function(){return this.p5?new l.default.Vector(this.p5,[this.x,this.y,this.z]):new l.default.Vector(this.x,this.y,this.z)},l.default.Vector.prototype.add=function(e,t,r){return e instanceof l.default.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this};function u(e,t){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),this}function h(e,t,r){return 0!==e&&(this.x=this.x%e),0!==t&&(this.y=this.y%t),0!==r&&(this.z=this.z%r),this}l.default.Vector.prototype.rem=function(e,t,r){if(e instanceof l.default.Vector){if(Number.isFinite(e.x)&&Number.isFinite(e.y)&&Number.isFinite(e.z)){var i=parseFloat(e.x),n=parseFloat(e.y),o=parseFloat(e.z);h.call(this,i,n,o)}}else if(e instanceof Array)e.every(function(e){return Number.isFinite(e)})&&(2===e.length&&u.call(this,e[0],e[1]),3===e.length&&h.call(this,e[0],e[1],e[2]));else if(1===arguments.length){if(Number.isFinite(e)&&0!==e)return this.x=this.x%e,this.y=this.y%e,this.z=this.z%e,this}else if(2===arguments.length){var a=Array.prototype.slice.call(arguments);a.every(function(e){return Number.isFinite(e)})&&2===a.length&&u.call(this,a[0],a[1])}else if(3===arguments.length){var s=Array.prototype.slice.call(arguments);s.every(function(e){return Number.isFinite(e)})&&3===s.length&&h.call(this,s[0],s[1],s[2])}},l.default.Vector.prototype.sub=function(e,t,r){return e instanceof l.default.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},l.default.Vector.prototype.mult=function(e){return\"number\"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn(\"p5.Vector.prototype.mult:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.div=function(e){return\"number\"==typeof e&&isFinite(e)?0===e?console.warn(\"p5.Vector.prototype.div:\",\"divide by 0\"):(this.x/=e,this.y/=e,this.z/=e):console.warn(\"p5.Vector.prototype.div:\",\"n is undefined or not a finite number\"),this},l.default.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},l.default.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},l.default.Vector.prototype.dot=function(e,t,r){return e instanceof l.default.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},l.default.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new l.default.Vector(this.p5,[t,r,i]):new l.default.Vector(t,r,i)},l.default.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},l.default.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},l.default.Vector.prototype.limit=function(e){var t=this.magSq();return e*e<t&&this.div(Math.sqrt(t)).mult(e),this},l.default.Vector.prototype.setMag=function(e){return this.normalize().mult(e)},l.default.Vector.prototype.heading=function(){var e=Math.atan2(this.y,this.x);return this.p5?this.p5._fromRadians(e):e},l.default.Vector.prototype.rotate=function(e){var t=this.heading()+e;this.p5&&(t=this.p5._toRadians(t));var r=this.mag();return this.x=Math.cos(t)*r,this.y=Math.sin(t)*r,this},l.default.Vector.prototype.angleBetween=function(e){var t,r=this.dot(e)/(this.mag()*e.mag());return t=Math.acos(Math.min(1,Math.max(-1,r))),t*=Math.sign(this.cross(e).z||1),this.p5&&(t=this.p5._fromRadians(t)),t},l.default.Vector.prototype.lerp=function(e,t,r,i){return e instanceof l.default.Vector?this.lerp(e.x,e.y,e.z,t):(this.x+=(e-this.x)*i||0,this.y+=(t-this.y)*i||0,this.z+=(r-this.z)*i||0,this)},l.default.Vector.prototype.reflect=function(e){return e.normalize(),this.sub(e.mult(2*this.dot(e)))},l.default.Vector.prototype.array=function(){return[this.x||0,this.y||0,this.z||0]},l.default.Vector.prototype.equals=function(e,t,r){var i,n,o;return o=e instanceof l.default.Vector?(i=e.x||0,n=e.y||0,e.z||0):e instanceof Array?(i=e[0]||0,n=e[1]||0,e[2]||0):(i=e||0,n=t||0,r||0),this.x===i&&this.y===n&&this.z===o},l.default.Vector.fromAngle=function(e,t){return void 0===t&&(t=1),new l.default.Vector(t*Math.cos(e),t*Math.sin(e),0)},l.default.Vector.fromAngles=function(e,t,r){void 0===r&&(r=1);var i=Math.cos(t),n=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return new l.default.Vector(r*a*n,-r*o,r*a*i)},l.default.Vector.random2D=function(){return this.fromAngle(Math.random()*o.TWO_PI)},l.default.Vector.random3D=function(){var e=Math.random()*o.TWO_PI,t=2*Math.random()-1,r=Math.sqrt(1-t*t),i=r*Math.cos(e),n=r*Math.sin(e);return new l.default.Vector(i,n,t)},l.default.Vector.add=function(e,t,r){return r?r.set(e):r=e.copy(),r.add(t),r},l.default.Vector.rem=function(e,t){if(e instanceof l.default.Vector&&t instanceof l.default.Vector){var r=e.copy();return r.rem(t),r}},l.default.Vector.sub=function(e,t,r){return r?r.set(e):r=e.copy(),r.sub(t),r},l.default.Vector.mult=function(e,t,r){return r?r.set(e):r=e.copy(),r.mult(t),r},l.default.Vector.div=function(e,t,r){return r?r.set(e):r=e.copy(),r.div(t),r},l.default.Vector.dot=function(e,t){return e.dot(t)},l.default.Vector.cross=function(e,t){return e.cross(t)},l.default.Vector.dist=function(e,t){return e.dist(t)},l.default.Vector.lerp=function(e,t,r,i){return i?i.set(e):i=e.copy(),i.lerp(t,r),i},l.default.Vector.mag=function(e){var t=e.x,r=e.y,i=e.z,n=t*t+r*r+i*i;return Math.sqrt(n)};var n=l.default.Vector;r.default=n},{\"../core/constants\":42,\"../core/main\":49}],83:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var o=\"_lcg_random_state\",a=4294967296,s=0;n.default.prototype._lcg=function(e){return this[e]=(1664525*this[e]+1013904223)%a,this[e]/a},n.default.prototype._lcgSetSeed=function(e,t){this[e]=(null==t?Math.random()*a:t)>>>0},n.default.prototype.randomSeed=function(e){this._lcgSetSeed(o,e),this._gaussian_previous=!1},n.default.prototype.random=function(e,t){var r;if(n.default._validateParameters(\"random\",arguments),r=null!=this[o]?this._lcg(o):Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(t<e){var i=e;e=t,t=i}return r*(t-e)+e},n.default.prototype.randomGaussian=function(e,t){var r,i,n,o;if(this._gaussian_previous)r=s,this._gaussian_previous=!1;else{for(;1<=(o=(i=this.random(2)-1)*i+(n=this.random(2)-1)*n););r=i*(o=Math.sqrt(-2*Math.log(o)/o)),s=n*o,this._gaussian_previous=!0}return r*(t||1)+(e||0)};var l=n.default;r.default=l},{\"../core/main\":49}],84:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}n.default.prototype._angleMode=o.RADIANS,n.default.prototype.acos=function(e){return this._fromRadians(Math.acos(e))},n.default.prototype.asin=function(e){return this._fromRadians(Math.asin(e))},n.default.prototype.atan=function(e){return this._fromRadians(Math.atan(e))},n.default.prototype.atan2=function(e,t){return this._fromRadians(Math.atan2(e,t))},n.default.prototype.cos=function(e){return Math.cos(this._toRadians(e))},n.default.prototype.sin=function(e){return Math.sin(this._toRadians(e))},n.default.prototype.tan=function(e){return Math.tan(this._toRadians(e))},n.default.prototype.degrees=function(e){return e*o.RAD_TO_DEG},n.default.prototype.radians=function(e){return e*o.DEG_TO_RAD},n.default.prototype.angleMode=function(e){e!==o.DEGREES&&e!==o.RADIANS||(this._angleMode=e)},n.default.prototype._toRadians=function(e){return this._angleMode===o.DEGREES?e*o.DEG_TO_RAD:e},n.default.prototype._toDegrees=function(e){return this._angleMode===o.RADIANS?e*o.RAD_TO_DEG:e},n.default.prototype._fromRadians=function(e){return this._angleMode===o.DEGREES?e*o.RAD_TO_DEG:e};var l=n.default;r.default=l},{\"../core/constants\":42,\"../core/main\":49}],85:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.textAlign=function(e,t){var r;return n.default._validateParameters(\"textAlign\",arguments),(r=this._renderer).textAlign.apply(r,arguments)},n.default.prototype.textLeading=function(e){var t;return n.default._validateParameters(\"textLeading\",arguments),(t=this._renderer).textLeading.apply(t,arguments)},n.default.prototype.textSize=function(e){var t;return n.default._validateParameters(\"textSize\",arguments),(t=this._renderer).textSize.apply(t,arguments)},n.default.prototype.textStyle=function(e){var t;return n.default._validateParameters(\"textStyle\",arguments),(t=this._renderer).textStyle.apply(t,arguments)},n.default.prototype.textWidth=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return r[0]+=\"\",n.default._validateParameters(\"textWidth\",r),0===r[0].length?0:(e=this._renderer).textWidth.apply(e,r)},n.default.prototype.textAscent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textAscent\",t),this._renderer.textAscent()},n.default.prototype.textDescent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.default._validateParameters(\"textDescent\",t),this._renderer.textDescent()},n.default.prototype._updateTextMetrics=function(){return this._renderer._updateTextMetrics()};var o=n.default;r.default=o},{\"../core/main\":49}],86:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=l(e(\"../core/constants\")),o=l(e(\"opentype.js\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}e(\"../core/error_helpers\"),f.default.prototype.loadFont=function(s,l,u){f.default._validateParameters(\"loadFont\",arguments);var h=new f.default.Font(this),c=this;return o.load(s,function(e,t){if(e)return f.default._friendlyFileLoadError(4,s),void 0!==u?u(e):void console.error(e,s);h.font=t,void 0!==l&&l(h),c._decrementPreload();var r,i,n=s.split(\"\\\\\").pop().split(\"/\").pop(),o=n.lastIndexOf(\".\"),a=o<1?null:n.substr(o+1);[\"ttf\",\"otf\",\"woff\",\"woff2\"].includes(a)&&(r=n.substr(0,o),(i=document.createElement(\"style\")).appendChild(document.createTextNode(\"\\n@font-face {\\nfont-family: \".concat(r,\";\\nsrc: url(\").concat(s,\");\\n}\\n\"))),document.head.appendChild(i))}),h},f.default.prototype.text=function(e,t,r,i,n){var o;return f.default._validateParameters(\"text\",arguments),this._renderer._doFill||this._renderer._doStroke?(o=this._renderer).text.apply(o,arguments):this},f.default.prototype.textFont=function(e,t){if(f.default._validateParameters(\"textFont\",arguments),arguments.length){if(!e)throw new Error(\"null font passed to textFont\");return this._renderer._setProperty(\"_textFont\",e),t&&(this._renderer._setProperty(\"_textSize\",t),this._renderer._setProperty(\"_textLeading\",t*n._DEFAULT_LEADMULT)),this._renderer._applyTextProperties()}return this._renderer._textFont};var u=f.default;r.default=u},{\"../core/constants\":42,\"../core/error_helpers\":44,\"../core/main\":49,\"opentype.js\":33}],87:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},m=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==d(e)&&\"function\"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function a(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function d(e){return(d=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function p(e,t){for(var r=function(e,t){if(\"object\"!==d(e))e=t;else for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e}(t,{sampleFactor:.1,simplifyThreshold:0}),i=l(e,0,1),n=i/(i*r.sampleFactor),o=[],a=0;a<i;a+=n)o.push(l(e,a));return r.simplifyThreshold&&function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=0,i=e.length-1;3<e.length&&0<=i;--i)f(s(e,i-1),s(e,i),s(e,i+1),t)&&(e.splice(i%e.length,1),r++)}(o,r.simplifyThreshold),o}function g(e){for(var t,r=[],i=0;i<e.length;i++)\"M\"===e[i].type&&(t&&r.push(t),t=[]),t.push(o(e[i]));return r.push(t),r}function o(e){var t=[e.type];return\"M\"===e.type||\"L\"===e.type?t.push(e.x,e.y):\"C\"===e.type?t.push(e.x1,e.y1,e.x2,e.y2,e.x,e.y):\"Q\"===e.type&&t.push(e.x1,e.y1,e.x,e.y),t}function s(e,t){var r=e.length;return e[t<0?t%r+r:t%r]}function f(e,t,r,i){if(!i)return 0==(n=e,a=r,((o=t)[0]-n[0])*(a[1]-n[1])-(a[0]-n[0])*(o[1]-n[1]));var n,o,a;void 0===f.tmpPoint1&&(f.tmpPoint1=[],f.tmpPoint2=[]);var s=f.tmpPoint1,l=f.tmpPoint2;s.x=t.x-e.x,s.y=t.y-e.y,l.x=r.x-t.x,l.y=r.y-t.y;var u=s.x*l.x+s.y*l.y,h=Math.sqrt(s.x*s.x+s.y*s.y),c=Math.sqrt(l.x*l.x+l.y*l.y);return Math.acos(u/(h*c))<i}function c(e,t,r,i,n,o,a,s,l){var u=1-l,h=Math.pow(u,3),c=Math.pow(u,2),f=l*l,d=f*l,p=h*e+3*c*l*r+3*u*l*l*n+d*a,m=h*t+3*c*l*i+3*u*l*l*o+d*s,g=e+2*l*(r-e)+f*(n-2*r+e),v=t+2*l*(i-t)+f*(o-2*i+t),y=r+2*l*(n-r)+f*(a-2*n+r),b=i+2*l*(o-i)+f*(s-2*o+i),_=u*e+l*r,x=u*t+l*i,w=u*n+l*a,S=u*o+l*s,M=90-180*Math.atan2(g-y,v-b)/Math.PI;return(y<g||v<b)&&(M+=180),{x:p,y:m,m:{x:g,y:v},n:{x:y,y:b},start:{x:_,y:x},end:{x:w,y:S},alpha:M}}function v(e,t,r,i,n,o,a,s,l){return null==l?y(e,t,r,i,n,o,a,s):c(e,t,r,i,n,o,a,s,function(e,t,r,i,n,o,a,s,l){if(l<0||y(e,t,r,i,n,o,a,s)<l)return;var u,h=.5,c=1-h;u=y(e,t,r,i,n,o,a,s,c);for(;.01<Math.abs(u-l);)u=y(e,t,r,i,n,o,a,s,c+=(u<l?1:-1)*(h/=2));return c}(e,t,r,i,n,o,a,s,l))}function l(e,t,r){for(var i,n,o,a,s,l=0,u=0,h=(e=function(e,t){function r(e,t,r){var i,n;if(!e)return[\"C\",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=t.qy=null),e[0]){case\"M\":t.X=e[1],t.Y=e[2];break;case\"A\":e=[\"C\"].concat(function e(t,r,i,n,o,a,s,l,u,h){var c=Math.PI;var f=120*c/180;var d;var p;var m;var g;var v=c/180*(+o||0);var y=[];var b;var _=function(e,t,r){var i=e*Math.cos(r)-t*Math.sin(r),n=e*Math.sin(r)+t*Math.cos(r);return{x:i,y:n}};if(h)d=h[0],p=h[1],m=h[2],g=h[3];else{b=_(t,r,-v),t=b.x,r=b.y,b=_(l,u,-v),l=b.x,u=b.y;var x=(t-l)/2,w=(r-u)/2,S=x*x/(i*i)+w*w/(n*n);1<S&&(S=Math.sqrt(S),i*=S,n*=S);var M=i*i,E=n*n,T=(a===s?-1:1)*Math.sqrt(Math.abs((M*E-M*w*w-E*x*x)/(M*w*w+E*x*x)));m=T*i*w/n+(t+l)/2,g=T*-n*x/i+(r+u)/2,d=Math.asin(((r-g)/n).toFixed(9)),p=Math.asin(((u-g)/n).toFixed(9)),(d=t<m?c-d:d)<0&&(d=2*c+d),(p=l<m?c-p:p)<0&&(p=2*c+p),s&&p<d&&(d-=2*c),!s&&d<p&&(p-=2*c)}var C=p-d;if(Math.abs(C)>f){var P=p,L=l,k=u;p=d+f*(s&&d<p?1:-1),l=m+i*Math.cos(p),u=g+n*Math.sin(p),y=e(l,u,i,n,o,0,s,L,k,[p,P,m,g])}C=p-d;var R=Math.cos(d),O=Math.sin(d),D=Math.cos(p),A=Math.sin(p),I=Math.tan(C/4),U=4/3*i*I,N=4/3*n*I,F=[t,r],B=[t+U*O,r-N*R],G=[l+U*A,u-N*D],j=[l,u];B[0]=2*F[0]-B[0];B[1]=2*F[1]-B[1];{if(h)return[B,G,j].concat(y);y=[B,G,j].concat(y).join().split(\",\");for(var V=[],z=0,H=y.length;z<H;z++)V[z]=z%2?_(y[z-1],y[z],v).y:_(y[z],y[z+1],v).x;return V}}.apply(0,[t.x,t.y].concat(e.slice(1))));break;case\"S\":n=\"C\"===r||\"S\"===r?(i=2*t.x-t.bx,2*t.y-t.by):(i=t.x,t.y),e=[\"C\",i,n].concat(e.slice(1));break;case\"T\":\"Q\"===r||\"T\"===r?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=[\"C\"].concat(w(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case\"Q\":t.qx=e[1],t.qy=e[2],e=[\"C\"].concat(w(t.x,t.y,e[1],e[2],e[3],e[4]));break;case\"L\":e=[\"C\"].concat(x(t.x,t.y,e[1],e[2]));break;case\"H\":e=[\"C\"].concat(x(t.x,t.y,e[1],t.y));break;case\"V\":e=[\"C\"].concat(x(t.x,t.y,t.x,e[1]));break;case\"Z\":e=[\"C\"].concat(x(t.x,t.y,t.X,t.Y))}return e}function i(e,t){if(7<e[t].length){e[t].shift();for(var r=e[t];r.length;)h[t]=\"A\",s&&(c[t]=\"A\"),e.splice(t++,0,[\"C\"].concat(r.splice(0,6)));e.splice(t,1),o=Math.max(a.length,s&&s.length||0)}}function n(e,t,r,i,n){e&&t&&\"M\"===e[n][0]&&\"M\"!==t[n][0]&&(t.splice(n,0,[\"M\",i.x,i.y]),r.bx=0,r.by=0,r.x=e[n][1],r.y=e[n][2],o=Math.max(a.length,s&&s.length||0))}var o,a=b(e),s=t&&b(t),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=[],c=[],f=\"\",d=\"\";o=Math.max(a.length,s&&s.length||0);for(var p=0;p<o;p++){a[p]&&(f=a[p][0]),\"C\"!==f&&(h[p]=f,p&&(d=h[p-1])),a[p]=r(a[p],l,d),\"A\"!==h[p]&&\"C\"===f&&(h[p]=\"C\"),i(a,p),s&&(s[p]&&(f=s[p][0]),\"C\"!==f&&(c[p]=f,p&&(d=c[p-1])),s[p]=r(s[p],u,d),\"A\"!==c[p]&&\"C\"===f&&(c[p]=\"C\"),i(s,p)),n(a,s,l,u,p),n(s,a,u,l,p);var m=a[p],g=s&&s[p],v=m.length,y=s&&g.length;l.x=m[v-2],l.y=m[v-1],l.bx=parseFloat(m[v-4])||l.x,l.by=parseFloat(m[v-3])||l.y,u.bx=s&&(parseFloat(g[y-4])||u.x),u.by=s&&(parseFloat(g[y-3])||u.y),u.x=s&&g[y-2],u.y=s&&g[y-1]}return s?[a,s]:a}(e)).length;u<h;u++){if(\"M\"===(o=e[u])[0])i=+o[1],n=+o[2];else{if(t<l+(a=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6]))&&!r)return{x:(s=v(i,n,o[1],o[2],o[3],o[4],o[5],o[6],t-l)).x,y:s.y,alpha:s.alpha};l+=a,i=+o[5],n=+o[6]}o.shift()+o}return(s=r?l:c(i,n,o[0],o[1],o[2],o[3],o[4],o[5],1)).alpha&&(s={x:s.x,y:s.y,alpha:s.alpha}),s}function b(e){var t,r=[],i=0,n=0,o=0,a=0,s=0;if(!e)return r;\"M\"===e[0][0]&&(o=i=+e[0][1],a=n=+e[0][2],s++,r[0]=[\"M\",i,n]);for(var l,u,h=3===e.length&&\"M\"===e[0][0]&&\"R\"===e[1][0].toUpperCase()&&\"Z\"===e[2][0].toUpperCase(),c=s,f=e.length;c<f;c++){if(r.push(l=[]),(u=e[c])[0]!==String.prototype.toUpperCase.call(u[0]))switch(l[0]=String.prototype.toUpperCase.call(u[0]),l[0]){case\"A\":l[1]=u[1],l[2]=u[2],l[3]=u[3],l[4]=u[4],l[5]=u[5],l[6]=+(u[6]+i),l[7]=+(u[7]+n);break;case\"V\":l[1]=+u[1]+n;break;case\"H\":l[1]=+u[1]+i;break;case\"R\":for(var d=2,p=(t=[i,n].concat(u.slice(1))).length;d<p;d++)t[d]=+t[d]+i,t[++d]=+t[d]+n;r.pop(),r=r.concat(_(t,h));break;case\"M\":o=+u[1]+i,a=+u[2]+n;break;default:for(var m=1,g=u.length;m<g;m++)l[m]=+u[m]+(m%2?i:n)}else if(\"R\"===u[0])t=[i,n].concat(u.slice(1)),r.pop(),r=r.concat(_(t,h)),l=[\"R\"].concat(u.slice(-2));else for(var v=0,y=u.length;v<y;v++)l[v]=u[v];switch(l[0]){case\"Z\":i=o,n=a;break;case\"H\":i=l[1];break;case\"V\":n=l[1];break;case\"M\":o=l[l.length-2],a=l[l.length-1];break;default:i=l[l.length-2],n=l[l.length-1]}}return r}function _(e,t){for(var r=[],i=0,n=e.length;i<n-2*!t;i+=2){var o=[{x:+e[i-2],y:+e[i-1]},{x:+e[i],y:+e[i+1]},{x:+e[i+2],y:+e[i+3]},{x:+e[i+4],y:+e[i+5]}];t?i?n-4===i?o[3]={x:+e[0],y:+e[1]}:n-2===i&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[n-2],y:+e[n-1]}:n-4===i?o[3]=o[2]:i||(o[0]={x:+e[i],y:+e[i+1]}),r.push([\"C\",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}function x(e,t,r,i){return[e,t,r,i,r,i]}function w(e,t,r,i,n,o){return[1/3*e+2/3*r,1/3*t+2/3*i,1/3*n+2/3*r,1/3*o+2/3*i,n,o]}function y(e,t,r,i,n,o,a,s,l){null==l&&(l=1);for(var u=(l=1<l?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=0,f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0;d<12;d++){var p=u*h[d]+u,m=S(p,e,r,n,a),g=S(p,t,i,o,s),v=m*m+g*g;c+=f[d]*Math.sqrt(v)}return u*c}function S(e,t,r,i,n){return e*(e*(-3*t+9*r-9*i+3*n)+6*t-12*r+6*i)-3*t+3*r}n.default.Font=function(e){this.parent=e,this.cache={},this.font=void 0},n.default.Font.prototype.textBounds=function(e){var t,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length?arguments[3]:void 0,o=4<arguments.length?arguments[4]:void 0,a=o&&o.renderer&&o.renderer._pInst||this.parent,s=a._renderer.drawingContext;s.textAlign||m.LEFT,s.textBaseline||m.BASELINE;if(n=n||a._renderer._textSize,!t){var l,u,h,c,f=[],d=[],p=this._scale(n);this.font.forEachGlyph(e,r,i,n,o,function(e,t,r,i){var n=e.getMetrics();f.push(t+n.xMin*p),f.push(t+n.xMax*p),d.push(r+-n.yMin*p),d.push(r+-n.yMax*p)}),l=Math.min.apply(null,f),u=Math.min.apply(null,d),h=Math.max.apply(null,f),t={x:l,y:u,h:Math.max.apply(null,d)-u,w:h-l,advance:l-r},c=this._handleAlignment(a._renderer,e,t.x,t.y,t.w+t.advance),t.x=c.x,t.y=c.y}return t},n.default.Font.prototype.textToPoints=function(e,t,r,i,n){var o,a=0,s=[],l=this._getGlyphs(e);i=i||this.parent._renderer._textSize;for(var u=0;u<l.length;u++){if(!(l[o=u].name&&\"space\"===l[o].name||e.length===l.length&&\" \"===e[o]||l[o].index&&3===l[o].index))for(var h=g(l[u].getPath(t,r,i).commands),c=0;c<h.length;c++)for(var f=p(h[c],n),d=0;d<f.length;d++)f[d].x+=a,s.push(f[d]);a+=l[u].advanceWidth*this._scale(i)}return s},n.default.Font.prototype._getGlyphs=function(e){return this.font.stringToGlyphs(e)},n.default.Font.prototype._getPath=function(e,t,r,i){var n=(i&&i.renderer&&i.renderer._pInst||this.parent)._renderer,o=this._handleAlignment(n,e,t,r);return this.font.getPath(e,o.x,o.y,n._textSize,i)},n.default.Font.prototype._getPathData=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&\"number\"==typeof i.decimals&&(n=i.decimals),e.toPathData(n)},n.default.Font.prototype._getSVG=function(e,t,r,i){var n=3;return\"string\"==typeof e&&2<arguments.length?e=this._getPath(e,t,r,i):\"object\"===d(t)&&(i=t),i&&(\"number\"==typeof i.decimals&&(n=i.decimals),\"number\"==typeof i.strokeWidth&&(e.strokeWidth=i.strokeWidth),void 0!==i.fill&&(e.fill=i.fill),void 0!==i.stroke&&(e.stroke=i.stroke)),e.toSVG(n)},n.default.Font.prototype._renderPath=function(e,t,r,i){var n,o=i&&i.renderer||this.parent._renderer,a=o.drawingContext;n=\"object\"===d(e)&&e.commands?e.commands:this._getPath(e,t,r,i).commands,a.beginPath();var s=!0,l=!1,u=void 0;try{for(var h,c=n[Symbol.iterator]();!(s=(h=c.next()).done);s=!0){var f=h.value;\"M\"===f.type?a.moveTo(f.x,f.y):\"L\"===f.type?a.lineTo(f.x,f.y):\"C\"===f.type?a.bezierCurveTo(f.x1,f.y1,f.x2,f.y2,f.x,f.y):\"Q\"===f.type?a.quadraticCurveTo(f.x1,f.y1,f.x,f.y):\"Z\"===f.type&&a.closePath()}}catch(e){l=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(l)throw u}}return o._doStroke&&o._strokeSet&&a.stroke(),o._doFill&&(o._fillSet||o._setFill(m._DEFAULT_TEXT_FILL),a.fill()),this},n.default.Font.prototype._textWidth=function(e,t){return this.font.getAdvanceWidth(e,t)},n.default.Font.prototype._textAscent=function(e){return this.font.ascender*this._scale(e)},n.default.Font.prototype._textDescent=function(e){return-this.font.descender*this._scale(e)},n.default.Font.prototype._scale=function(e){return 1/this.font.unitsPerEm*(e||this.parent._renderer._textSize)},n.default.Font.prototype._handleAlignment=function(e,t,r,i,n){var o=e._textSize;switch(void 0===n&&(n=this._textWidth(t,o)),e._textAlign){case m.CENTER:r-=n/2;break;case m.RIGHT:r-=n}switch(e._textBaseline){case m.TOP:i+=this._textAscent(o);break;case m.CENTER:i+=this._textAscent(o)/2;break;case m.BOTTOM:i-=this._textDescent(o)}return{x:r,y:i}};var u=n.default;r.default=u},{\"../core/constants\":42,\"../core/main\":49}],88:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.append=function(e,t){return e.push(t),e},n.default.prototype.arrayCopy=function(e,t,r,i,n){var o,a;e=void 0!==n?(a=Math.min(n,e.length),o=i,e.slice(t,a+t)):(a=void 0!==r?(a=r,Math.min(a,e.length)):e.length,o=0,r=t,e.slice(0,a)),Array.prototype.splice.apply(r,[o,a].concat(e))},n.default.prototype.concat=function(e,t){return e.concat(t)},n.default.prototype.reverse=function(e){return e.reverse()},n.default.prototype.shorten=function(e){return e.pop(),e},n.default.prototype.shuffle=function(e,t){for(var r,i,n=ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e),o=(e=t||n?e:e.slice()).length;1<o;)r=Math.random()*o|0,i=e[--o],e[o]=e[r],e[r]=i;return e},n.default.prototype.sort=function(e,t){var r=t?e.slice(0,Math.min(t,e.length)):e,i=t?e.slice(Math.min(t,e.length)):[];return(r=\"string\"==typeof r[0]?r.sort():r.sort(function(e,t){return e-t})).concat(i)},n.default.prototype.splice=function(e,t,r){return Array.prototype.splice.apply(e,[r,0].concat(t)),e},n.default.prototype.subset=function(e,t,r){return void 0!==r?e.slice(t,t+r):e.slice(t,e.length)};var o=n.default;r.default=o},{\"../core/main\":49}],89:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.float=function(e){return e instanceof Array?e.map(parseFloat):parseFloat(e)},n.default.prototype.int=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e===1/0||\"Infinity\"===e?1/0:e===-1/0||\"-Infinity\"===e?-1/0:\"string\"==typeof e?parseInt(e,t):\"number\"==typeof e?0|e:\"boolean\"==typeof e?e?1:0:e instanceof Array?e.map(function(e){return n.default.prototype.int(e,t)}):void 0},n.default.prototype.str=function(e){return e instanceof Array?e.map(n.default.prototype.str):String(e)},n.default.prototype.boolean=function(e){return\"number\"==typeof e?0!==e:\"string\"==typeof e?\"true\"===e.toLowerCase():\"boolean\"==typeof e?e:e instanceof Array?e.map(n.default.prototype.boolean):void 0},n.default.prototype.byte=function(e){var t=n.default.prototype.int(e,10);return\"number\"==typeof t?(t+128)%256-128:t instanceof Array?t.map(n.default.prototype.byte):void 0},n.default.prototype.char=function(e){return\"number\"!=typeof e||isNaN(e)?e instanceof Array?e.map(n.default.prototype.char):\"string\"==typeof e?n.default.prototype.char(parseInt(e,10)):void 0:String.fromCharCode(e)},n.default.prototype.unchar=function(e){return\"string\"==typeof e&&1===e.length?e.charCodeAt(0):e instanceof Array?e.map(n.default.prototype.unchar):void 0},n.default.prototype.hex=function(e,t){if(t=null==t?t=8:t,e instanceof Array)return e.map(function(e){return n.default.prototype.hex(e,t)});if(e===1/0||e===-1/0)return(e===1/0?\"F\":\"0\").repeat(t);if(\"number\"==typeof e){e<0&&(e=4294967295+e+1);for(var r=Number(e).toString(16).toUpperCase();r.length<t;)r=\"0\".concat(r);return r.length>=t&&(r=r.substring(r.length-t,r.length)),r}},n.default.prototype.unhex=function(e){return e instanceof Array?e.map(n.default.prototype.unhex):parseInt(\"0x\".concat(e),16)};var o=n.default;r.default=o},{\"../core/main\":49}],90:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function n(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf(\".\"),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):\"\",l=i?\"-\":\"\";if(void 0!==r){var u=\"\";(-1!==o||0<r-s.length)&&(u=\".\"),s.length>r&&(s=s.substring(0,r));for(var h=0;h<t-a.length;h++)l+=\"0\";l+=a,l+=u,l+=s;for(var c=0;c<r-s.length;c++)l+=\"0\";return l}for(var f=0;f<Math.max(t-a.length,0);f++)l+=\"0\";return l+=n}function o(e,t){var r=(e=e.toString()).indexOf(\".\"),i=-1!==r?e.substring(r):\"\",n=-1!==r?e.substring(0,r):e;if(n=n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),0===t)i=\"\";else if(void 0!==t)if(t>i.length)for(var o=t-(i+=-1===r?\".\":\"\").length+1,a=0;a<o;a++)i+=\"0\";else i=i.substring(0,t+1);return n+i}function s(e){return 0<parseFloat(e)?\"+\".concat(e.toString()):e.toString()}function l(e){return 0<=parseFloat(e)?\" \".concat(e.toString()):e.toString()}e(\"../core/error_helpers\"),a.default.prototype.join=function(e,t){return a.default._validateParameters(\"join\",arguments),e.join(t)},a.default.prototype.match=function(e,t){return a.default._validateParameters(\"match\",arguments),e.match(t)},a.default.prototype.matchAll=function(e,t){a.default._validateParameters(\"matchAll\",arguments);for(var r=new RegExp(t,\"g\"),i=r.exec(e),n=[];null!==i;)n.push(i),i=r.exec(e);return n},a.default.prototype.nf=function(e,t,r){return a.default._validateParameters(\"nf\",arguments),e instanceof Array?e.map(function(e){return n(e,t,r)}):\"[object Arguments]\"===Object.prototype.toString.call(e)?3===e.length?this.nf(e[0],e[1],e[2]):2===e.length?this.nf(e[0],e[1]):this.nf(e[0]):n(e,t,r)},a.default.prototype.nfc=function(e,t){return a.default._validateParameters(\"nfc\",arguments),e instanceof Array?e.map(function(e){return o(e,t)}):o(e,t)},a.default.prototype.nfp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfp\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(s):s(i)},a.default.prototype.nfs=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.default._validateParameters(\"nfs\",t);var i=a.default.prototype.nf.apply(this,t);return i instanceof Array?i.map(l):l(i)},a.default.prototype.split=function(e,t){return a.default._validateParameters(\"split\",arguments),e.split(t)},a.default.prototype.splitTokens=function(e,t){var r;if(a.default._validateParameters(\"splitTokens\",arguments),void 0!==t){var i=t,n=/\\]/g.exec(i),o=/\\[/g.exec(i);r=o&&n?(i=i.slice(0,n.index)+i.slice(n.index+1),o=/\\[/g.exec(i),i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\\\\[\".concat(i,\"\\\\]]\"),\"g\")):n?(i=i.slice(0,n.index)+i.slice(n.index+1),new RegExp(\"[\".concat(i,\"\\\\]]\"),\"g\")):o?(i=i.slice(0,o.index)+i.slice(o.index+1),new RegExp(\"[\".concat(i,\"\\\\[]\"),\"g\")):new RegExp(\"[\".concat(i,\"]\"),\"g\")}else r=/\\s/g;return e.split(r).filter(function(e){return e})},a.default.prototype.trim=function(e){return a.default._validateParameters(\"trim\",arguments),e instanceof Array?e.map(this.trim):e.trim()};var u=a.default;r.default=u},{\"../core/error_helpers\":44,\"../core/main\":49}],91:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.prototype.day=function(){return(new Date).getDate()},n.default.prototype.hour=function(){return(new Date).getHours()},n.default.prototype.minute=function(){return(new Date).getMinutes()},n.default.prototype.millis=function(){return-1===this._millisStart?0:window.performance.now()-this._millisStart},n.default.prototype.month=function(){return(new Date).getMonth()+1},n.default.prototype.second=function(){return(new Date).getSeconds()},n.default.prototype.year=function(){return(new Date).getFullYear()};var o=n.default;r.default=o},{\"../core/main\":49}],92:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,T=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.Geometry\");var d=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}T.default.prototype.plane=function(e,t,r,i){this._assert3d(\"plane\"),T.default._validateParameters(\"plane\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=1),void 0===i&&(i=1);var n=\"plane|\".concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e,t,r,i=0;i<=this.detailY;i++){t=i/this.detailY;for(var n=0;n<=this.detailX;n++)e=n/this.detailX,r=new T.default.Vector(e-.5,t-.5,0),this.vertices.push(r),this.uvs.push(e,t)}});o.computeFaces().computeNormals(),r<=1&&i<=1?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on plane objects with more than 1 detailX or 1 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,t,1),this},T.default.prototype.box=function(e,t,r,i,n){this._assert3d(\"box\"),T.default._validateParameters(\"box\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=t);var o=this._renderer.attributes&&this._renderer.attributes.perPixelLighting;void 0===i&&(i=o?1:4),void 0===n&&(n=o?1:4);var a=\"box|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(i,n,function(){var e=[[0,4,2,6],[1,3,5,7],[0,1,4,5],[2,6,3,7],[0,2,1,3],[4,5,6,7]];this.strokeIndices=[[0,1],[1,3],[3,2],[6,7],[8,9],[9,11],[14,15],[16,17],[17,19],[18,19],[20,21],[22,23]];for(var t=0;t<e.length;t++){for(var r=e[t],i=4*t,n=0;n<4;n++){var o=r[n],a=new T.default.Vector((2*(1&o)-1)/2,((2&o)-1)/2,((4&o)/2-1)/2);this.vertices.push(a),this.uvs.push(1&n,(2&n)/2)}this.faces.push([i,1+i,2+i]),this.faces.push([2+i,1+i,3+i])}});s.computeNormals(),i<=4&&n<=4?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on box objects with more than 4 detailX or 4 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,r),this},T.default.prototype.sphere=function(e,t,r){return this._assert3d(\"sphere\"),T.default._validateParameters(\"sphere\",arguments),void 0===e&&(e=50),void 0===t&&(t=24),void 0===r&&(r=16),this.ellipsoid(e,e,e,t,r),this};function l(e,t,r,i,n,o,a){e=e<=0?1:e,t=t<0?0:t,r=r<=0?e:r,i=i<3?3:i;var s,l,u,h=(o=void 0===o||o)?-2:0,c=(n=n<1?1:n)+((a=void 0===a?0!==t:a)?2:0),f=Math.atan2(e-t,r),d=Math.sin(f),p=Math.cos(f);for(s=h;s<=c;++s){var m=s/n,g=r*m,v=void 0;for(v=s<0?(m=g=0,e):n<s?(g=r,m=1,t):e+(t-e)*m,-2!==s&&s!==n+2||(v=0),g-=r/2,l=0;l<i;++l){var y=l/(i-1),b=2*Math.PI*y,_=Math.sin(b),x=Math.cos(b);this.vertices.push(new T.default.Vector(_*v,g,x*v));var w=void 0;w=s<0?new T.default.Vector(0,-1,0):n<s&&t?new T.default.Vector(0,1,0):new T.default.Vector(_*p,d,x*p),this.vertexNormals.push(w),this.uvs.push(y,m)}}var S=0;if(o){for(u=0;u<i;++u){var M=(u+1)%i;this.faces.push([S+u,S+i+M,S+i+u])}S+=2*i}for(s=0;s<n;++s){for(l=0;l<i;++l){var E=(l+1)%i;this.faces.push([S+l,S+E,S+i+E]),this.faces.push([S+l,S+i+E,S+i+l])}S+=i}if(a)for(S+=i,l=0;l<i;++l)this.faces.push([S+l,S+(l+1)%i,S+i])}T.default.prototype.cylinder=function(e,t,r,i,n,o){this._assert3d(\"cylinder\"),T.default._validateParameters(\"cylinder\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===o&&(o=!0),void 0===n&&(n=!0);var a=\"cylinder|\".concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o);if(!this._renderer.geometryInHash(a)){var s=new T.default.Geometry(r,i);l.call(s,1,1,1,r,i,n,o),r<=24&&i<=16?s._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cylinder objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(a,s)}return this._renderer.drawBuffersScaled(a,e,t,e),this},T.default.prototype.cone=function(e,t,r,i,n){this._assert3d(\"cone\"),T.default._validateParameters(\"cone\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=24),void 0===i&&(i=1),void 0===n&&(n=!0);var o=\"cone|\".concat(r,\"|\").concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(r,i);l.call(a,1,0,1,r,i,n,!1),r<=24&&i<=16?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on cone objects with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,e),this},T.default.prototype.ellipsoid=function(e,t,r,i,n){this._assert3d(\"ellipsoid\"),T.default._validateParameters(\"ellipsoid\",arguments),void 0===e&&(e=50),void 0===t&&(t=e),void 0===r&&(r=e),void 0===i&&(i=24),void 0===n&&(n=16);var o=\"ellipsoid|\".concat(i,\"|\").concat(n);if(!this._renderer.geometryInHash(o)){var a=new T.default.Geometry(i,n,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=Math.PI*t-Math.PI/2,i=Math.cos(r),n=Math.sin(r),o=0;o<=this.detailX;o++){var a=o/this.detailX,s=2*Math.PI*a,l=Math.cos(s),u=Math.sin(s),h=new T.default.Vector(i*u,n,i*l);this.vertices.push(h),this.vertexNormals.push(h),this.uvs.push(a,t)}});a.computeFaces(),i<=24&&n<=24?a._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw stroke on ellipsoids with more than 24 detailX or 24 detailY\"),this._renderer.createBuffers(o,a)}return this._renderer.drawBuffersScaled(o,e,t,r),this},T.default.prototype.torus=function(e,t,r,i){if(this._assert3d(\"torus\"),T.default._validateParameters(\"torus\",arguments),void 0===e)e=50;else if(!e)return;if(void 0===t)t=10;else if(!t)return;void 0===r&&(r=24),void 0===i&&(i=16);var d=(t/e).toPrecision(4),n=\"torus|\".concat(d,\"|\").concat(r,\"|\").concat(i);if(!this._renderer.geometryInHash(n)){var o=new T.default.Geometry(r,i,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=2*Math.PI*t,i=Math.cos(r),n=Math.sin(r),o=1+d*i,a=0;a<=this.detailX;a++){var s=a/this.detailX,l=2*Math.PI*s,u=Math.cos(l),h=Math.sin(l),c=new T.default.Vector(o*u,o*h,d*n),f=new T.default.Vector(i*u,i*h,n);this.vertices.push(c),this.vertexNormals.push(f),this.uvs.push(s,t)}});o.computeFaces(),r<=24&&i<=16?o._makeTriangleEdges()._edgesToVertices():this._renderer._doStroke&&console.log(\"Cannot draw strokes on torus object with more than 24 detailX or 16 detailY\"),this._renderer.createBuffers(n,o)}return this._renderer.drawBuffersScaled(n,e,e,e),this},T.default.RendererGL.prototype.point=function(e,t,r){void 0===r&&(r=0);var i=[];return i.push(new T.default.Vector(e,t,r)),this._drawPoints(i,this.immediateMode.buffers.point),this},T.default.RendererGL.prototype.triangle=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5];if(!this.geometryInHash(\"tri\")){var s=new T.default.Geometry(1,1,function(){var e=[];e.push(new T.default.Vector(0,0,0)),e.push(new T.default.Vector(0,1,0)),e.push(new T.default.Vector(1,0,0)),this.strokeIndices=[[0,1],[1,2],[2,0]],this.vertices=e,this.faces=[[0,1,2]],this.uvs=[0,0,0,1,1,1]});s._makeTriangleEdges()._edgesToVertices(),s.computeNormals(),this.createBuffers(\"tri\",s)}var l=this.uMVMatrix.copy();try{var u=new T.default.Matrix([i-t,n-r,0,0,o-t,a-r,0,0,0,0,1,0,t,r,0,1]).mult(this.uMVMatrix);this.uMVMatrix=u,this.drawBuffers(\"tri\")}finally{this.uMVMatrix=l}return this},T.default.RendererGL.prototype.ellipse=function(e){this.arc(e[0],e[1],e[2],e[3],0,d.TWO_PI,d.OPEN,e[4])},T.default.RendererGL.prototype.arc=function(e){var t,r=e,i=arguments[1],n=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7]||25;if(t=Math.abs(s-a)>=d.TWO_PI?\"\".concat(\"ellipse\",\"|\").concat(u,\"|\"):\"\".concat(\"arc\",\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\"),!this.geometryInHash(t)){var h=new T.default.Geometry(u,1,function(){if(this.strokeIndices=[],a.toFixed(10)!==s.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new T.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=(s-a)*(e/u)+a,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new T.default.Vector(r,i,0)),this.uvs.push([r,i]),e<u-1&&(this.faces.push([0,e+1,e+2]),this.strokeIndices.push([e+1,e+2]))}switch(l){case d.PIE:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.CHORD:this.strokeIndices.push([0,1]),this.strokeIndices.push([0,this.vertices.length-1]);break;case d.OPEN:this.strokeIndices.push([0,1]);break;default:this.faces.push([0,this.vertices.length-2,this.vertices.length-1]),this.strokeIndices.push([this.vertices.length-2,this.vertices.length-1])}}});h.computeNormals(),u<=50?h._makeTriangleEdges()._edgesToVertices(h):this._renderer._doStroke&&console.log(\"Cannot stroke ${shape} with more than 50 detail\"),this.createBuffers(t,h)}var c=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(t)}finally{this.uMVMatrix=c}return this},T.default.RendererGL.prototype.rect=function(e){var t=this._pInst._glAttributes.perPixelLighting,r=e[0],i=e[1],n=e[2],o=e[3],a=e[4]||(t?1:24),s=e[5]||(t?1:16),l=\"rect|\".concat(a,\"|\").concat(s);if(!this.geometryInHash(l)){var u=new T.default.Geometry(a,s,function(){for(var e=0;e<=this.detailY;e++)for(var t=e/this.detailY,r=0;r<=this.detailX;r++){var i=r/this.detailX,n=new T.default.Vector(i,t,0);this.vertices.push(n),this.uvs.push(i,t)}0<a&&0<s&&(this.strokeIndices=[[0,a],[a,(a+1)*(s+1)-1],[(a+1)*(s+1)-1,(a+1)*s],[(a+1)*s,0]])});u.computeFaces().computeNormals()._makeTriangleEdges()._edgesToVertices(),this.createBuffers(l,u)}var h=this.uMVMatrix.copy();try{this.uMVMatrix.translate([r,i,0]),this.uMVMatrix.scale(n,o,1),this.drawBuffers(l)}finally{this.uMVMatrix=h}return this},T.default.RendererGL.prototype.quad=function(e,t,r,i,n,o,a,s,l,u,h,c){var f=\"quad|\".concat(e,\"|\").concat(t,\"|\").concat(r,\"|\").concat(i,\"|\").concat(n,\"|\").concat(o,\"|\").concat(a,\"|\").concat(s,\"|\").concat(l,\"|\").concat(u,\"|\").concat(h,\"|\").concat(c);if(!this.geometryInHash(f)){var d=new T.default.Geometry(2,2,function(){this.vertices.push(new T.default.Vector(e,t,r)),this.vertices.push(new T.default.Vector(i,n,o)),this.vertices.push(new T.default.Vector(a,s,l)),this.vertices.push(new T.default.Vector(u,h,c)),this.uvs.push(0,0,1,0,1,1,0,1),this.strokeIndices=[[0,1],[1,2],[2,3],[3,0]]});d.computeNormals()._makeTriangleEdges()._edgesToVertices(),d.faces=[[0,1,2],[2,3,0]],this.createBuffers(f,d)}return this.drawBuffers(f),this},T.default.RendererGL.prototype.bezier=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(h=s,u=a,s=o,a=n,n=i,i=r,r=o=l=c=0);var f=this._pInst._bezierDetail||20;this.beginShape();for(var d=0;d<=f;d++){var p=Math.pow(1-d/f,3),m=d/f*3*Math.pow(1-d/f,2),g=3*Math.pow(d/f,2)*(1-d/f),v=Math.pow(d/f,3);this.vertex(e*p+i*m+a*g+u*v,t*p+n*m+s*g+h*v,r*p+o*m+l*g+c*v)}return this.endShape(),this},T.default.RendererGL.prototype.curve=function(e,t,r,i,n,o,a,s,l,u,h,c){8===arguments.length&&(u=a,h=s,a=n,s=i,n=i=r,r=o=l=c=0);var f=this._pInst._curveDetail;this.beginShape();for(var d=0;d<=f;d++){var p=.5*Math.pow(d/f,3),m=.5*Math.pow(d/f,2),g=d/f*.5,v=p*(3*i-e-3*a+u)+m*(2*e-5*i+4*a-u)+g*(-e+a)+2*i*.5,y=p*(3*n-t-3*s+h)+m*(2*t-5*n+4*s-h)+g*(-t+s)+2*n*.5,b=p*(3*o-r-3*l+c)+m*(2*r-5*o+4*l-c)+g*(-r+l)+2*o*.5;this.vertex(v,y,b)}return this.endShape(),this},T.default.RendererGL.prototype.line=function(){return 6===arguments.length?(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]),this.vertex(arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]),this.endShape()):4===arguments.length&&(this.beginShape(d.LINES),this.vertex(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],0),this.vertex(arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],0),this.endShape()),this},T.default.RendererGL.prototype.bezierVertex=function(){if(0===this.immediateMode._bezierVertex.length)throw Error(\"vertex() must be used once before calling bezierVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(6===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2],arguments.length<=4?void 0:arguments[4]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);this.immediateMode._bezierVertex[0]=arguments.length<=4?void 0:arguments[4],this.immediateMode._bezierVertex[1]=arguments.length<=5?void 0:arguments[5]}else if(9===l){for(this.isBezier=!0,o=[this.immediateMode._bezierVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3],arguments.length<=6?void 0:arguments[6]],a=[this.immediateMode._bezierVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4],arguments.length<=7?void 0:arguments[7]],s=[this.immediateMode._bezierVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5],arguments.length<=8?void 0:arguments[8]],n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);this.immediateMode._bezierVertex[0]=arguments.length<=6?void 0:arguments[6],this.immediateMode._bezierVertex[1]=arguments.length<=7?void 0:arguments[7],this.immediateMode._bezierVertex[2]=arguments.length<=8?void 0:arguments[8]}},T.default.RendererGL.prototype.quadraticVertex=function(){if(0===this.immediateMode._quadraticVertex.length)throw Error(\"vertex() must be used once before calling quadraticVertex()\");var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableQuadratic.length||this._lutQuadraticDetail!==this._pInst._curveDetail){this._lookUpTableQuadratic=[],this._lutQuadraticDetail=this._pInst._curveDetail;for(var u=1/this._lutQuadraticDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableQuadratic[f]=this._quadraticCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableQuadratic.length;if(4===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=2?void 0:arguments[2]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=3?void 0:arguments[3]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r);this.immediateMode._quadraticVertex[0]=arguments.length<=2?void 0:arguments[2],this.immediateMode._quadraticVertex[1]=arguments.length<=3?void 0:arguments[3]}else if(6===l){for(this.isQuadratic=!0,o=[this.immediateMode._quadraticVertex[0],arguments.length<=0?void 0:arguments[0],arguments.length<=3?void 0:arguments[3]],a=[this.immediateMode._quadraticVertex[1],arguments.length<=1?void 0:arguments[1],arguments.length<=4?void 0:arguments[4]],s=[this.immediateMode._quadraticVertex[2],arguments.length<=2?void 0:arguments[2],arguments.length<=5?void 0:arguments[5]],n=0;n<d;n++)t=o[0]*this._lookUpTableQuadratic[n][0]+o[1]*this._lookUpTableQuadratic[n][1]+o[2]*this._lookUpTableQuadratic[n][2],r=a[0]*this._lookUpTableQuadratic[n][0]+a[1]*this._lookUpTableQuadratic[n][1]+a[2]*this._lookUpTableQuadratic[n][2],i=s[0]*this._lookUpTableQuadratic[n][0]+s[1]*this._lookUpTableQuadratic[n][1]+s[2]*this._lookUpTableQuadratic[n][2],this.vertex(t,r,i);this.immediateMode._quadraticVertex[0]=arguments.length<=3?void 0:arguments[3],this.immediateMode._quadraticVertex[1]=arguments.length<=4?void 0:arguments[4],this.immediateMode._quadraticVertex[2]=arguments.length<=5?void 0:arguments[5]}},T.default.RendererGL.prototype.curveVertex=function(){var e,t,r,i,n,o=[],a=[],s=[],l=arguments.length;if((e=0)===this._lookUpTableBezier.length||this._lutBezierDetail!==this._pInst._curveDetail){this._lookUpTableBezier=[],this._lutBezierDetail=this._pInst._curveDetail;for(var u=1/this._lutBezierDetail,h=0,c=1,f=0;h<1;){if(e=parseFloat(h.toFixed(6)),this._lookUpTableBezier[f]=this._bezierCoefficients(e),c.toFixed(6)===u.toFixed(6)){e=parseFloat(c.toFixed(6))+parseFloat(h.toFixed(6)),++f,this._lookUpTableBezier[f]=this._bezierCoefficients(e);break}h+=u,c-=u,++f}}var d=this._lookUpTableBezier.length;if(2===l){if(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),8===this.immediateMode._curveVertex.length){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[6]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[7]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],this.vertex(t,r);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}}else if(3===l&&(this.immediateMode._curveVertex.push(arguments.length<=0?void 0:arguments[0]),this.immediateMode._curveVertex.push(arguments.length<=1?void 0:arguments[1]),this.immediateMode._curveVertex.push(arguments.length<=2?void 0:arguments[2]),12===this.immediateMode._curveVertex.length)){for(this.isCurve=!0,o=this._bezierToCatmull([this.immediateMode._curveVertex[0],this.immediateMode._curveVertex[3],this.immediateMode._curveVertex[6],this.immediateMode._curveVertex[9]]),a=this._bezierToCatmull([this.immediateMode._curveVertex[1],this.immediateMode._curveVertex[4],this.immediateMode._curveVertex[7],this.immediateMode._curveVertex[10]]),s=this._bezierToCatmull([this.immediateMode._curveVertex[2],this.immediateMode._curveVertex[5],this.immediateMode._curveVertex[8],this.immediateMode._curveVertex[11]]),n=0;n<d;n++)t=o[0]*this._lookUpTableBezier[n][0]+o[1]*this._lookUpTableBezier[n][1]+o[2]*this._lookUpTableBezier[n][2]+o[3]*this._lookUpTableBezier[n][3],r=a[0]*this._lookUpTableBezier[n][0]+a[1]*this._lookUpTableBezier[n][1]+a[2]*this._lookUpTableBezier[n][2]+a[3]*this._lookUpTableBezier[n][3],i=s[0]*this._lookUpTableBezier[n][0]+s[1]*this._lookUpTableBezier[n][1]+s[2]*this._lookUpTableBezier[n][2]+s[3]*this._lookUpTableBezier[n][3],this.vertex(t,r,i);for(n=0;n<l;n++)this.immediateMode._curveVertex.shift()}},T.default.RendererGL.prototype.image=function(e,t,r,i,n,o,a,s,l){this._isErasing&&this.blendMode(this._cachedBlendMode),this._pInst.push(),this._pInst.noLights(),this._pInst.texture(e),this._pInst.textureMode(d.NORMAL);var u=0;t<=e.width&&(u=t/e.width);var h=1;t+i<=e.width&&(h=(t+i)/e.width);var c=0;r<=e.height&&(c=r/e.height);var f=1;r+n<=e.height&&(f=(r+n)/e.height),this.beginShape(),this.vertex(o,a,0,u,c),this.vertex(o+s,a,0,h,c),this.vertex(o+s,a+l,0,h,f),this.vertex(o,a+l,0,u,f),this.endShape(d.CLOSE),this._pInst.pop(),this._isErasing&&this.blendMode(d.REMOVE)};var n=T.default;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Geometry\":98}],93:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,f=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}f.default.prototype.orbitControl=function(e,t,r){if(this._assert3d(\"orbitControl\"),f.default._validateParameters(\"orbitControl\",arguments),this.mouseX<this.width&&0<this.mouseX&&this.mouseY<this.height&&0<this.mouseY){var i=this._renderer._curCamera;void 0===e&&(e=1),void 0===t&&(t=e),void 0===r&&(r=.5),!0!==this.contextMenuDisabled&&(this.canvas.oncontextmenu=function(){return!1},this._setProperty(\"contextMenuDisabled\",!0)),!0!==this.wheelDefaultDisabled&&(this.canvas.onwheel=function(){return!1},this._setProperty(\"wheelDefaultDisabled\",!0));var n=this.height<this.width?this.height:this.width;if(this._mouseWheelDeltaY!==this._pmouseWheelDeltaY&&(0<this._mouseWheelDeltaY?this._renderer._curCamera._orbit(0,0,r*n):this._renderer._curCamera._orbit(0,0,-r*n)),this.mouseIsPressed)if(this.mouseButton===this.LEFT){var o=-e*(this.mouseX-this.pmouseX)/n,a=t*(this.mouseY-this.pmouseY)/n;this._renderer._curCamera._orbit(o,a,0)}else if(this.mouseButton===this.RIGHT){var s=i._getLocalAxes(),l=Math.sqrt(s.x[0]*s.x[0]+s.x[2]*s.x[2]);0!==l&&(s.x[0]/=l,s.x[2]/=l);var u=Math.sqrt(s.y[0]*s.y[0]+s.y[2]*s.y[2]);0!==u&&(s.y[0]/=u,s.y[2]/=u);var h=-1*e*(this.mouseX-this.pmouseX),c=-1*t*(this.mouseY-this.pmouseY);i.setPosition(i.eyeX+h*s.x[0]+c*s.z[0],i.eyeY,i.eyeZ+h*s.x[2]+c*s.z[2])}return this}},f.default.prototype.debugMode=function(){this._assert3d(\"debugMode\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];f.default._validateParameters(\"debugMode\",t);for(var i=this._registeredMethods.post.length-1;0<=i;i--)this._registeredMethods.post[i].toString()!==this._grid().toString()&&this._registeredMethods.post[i].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(i,1);t[0]===n.GRID?this.registerMethod(\"post\",this._grid.call(this,t[1],t[2],t[3],t[4],t[5])):t[0]===n.AXES?this.registerMethod(\"post\",this._axesIcon.call(this,t[1],t[2],t[3],t[4])):(this.registerMethod(\"post\",this._grid.call(this,t[0],t[1],t[2],t[3],t[4])),this.registerMethod(\"post\",this._axesIcon.call(this,t[5],t[6],t[7],t[8])))},f.default.prototype.noDebugMode=function(){this._assert3d(\"noDebugMode\");for(var e=this._registeredMethods.post.length-1;0<=e;e--)this._registeredMethods.post[e].toString()!==this._grid().toString()&&this._registeredMethods.post[e].toString()!==this._axesIcon().toString()||this._registeredMethods.post.splice(e,1)},f.default.prototype._grid=function(e,r,i,n,o){void 0===e&&(e=this.width/2),void 0===r&&(r=Math.round(e/30)<4?4:Math.round(e/30)),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0);var a=e/r,s=e/2;return function(){this.push(),this.stroke(255*this._renderer.curStrokeColor[0],255*this._renderer.curStrokeColor[1],255*this._renderer.curStrokeColor[2]),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]);for(var e=0;e<=r;e++)this.beginShape(this.LINES),this.vertex(-s+i,n,e*a-s+o),this.vertex(+s+i,n,e*a-s+o),this.endShape();for(var t=0;t<=r;t++)this.beginShape(this.LINES),this.vertex(t*a-s+i,n,-s+o),this.vertex(t*a-s+i,n,+s+o),this.endShape();this.pop()}},f.default.prototype._axesIcon=function(e,t,r,i){return void 0===e&&(e=40<this.width/20?this.width/20:40),void 0===t&&(t=-this.width/4),void 0===r&&(r=t),void 0===i&&(i=t),function(){this.push(),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),this.strokeWeight(2),this.stroke(255,0,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t+e,r,i),this.endShape(),this.stroke(0,255,0),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r+e,i),this.endShape(),this.stroke(0,0,255),this.beginShape(this.LINES),this.vertex(t,r,i),this.vertex(t,r,i+e),this.endShape(),this.pop()}};var o=f.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],94:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.ambientLight=function(e,t,r,i){this._assert3d(\"ambientLight\"),m.default._validateParameters(\"ambientLight\",arguments);var n=this.color.apply(this,arguments);return this._renderer.ambientLightColors.push(n._array[0],n._array[1],n._array[2]),this._renderer._enableLighting=!0,this},m.default.prototype.specularColor=function(e,t,r){this._assert3d(\"specularColor\"),m.default._validateParameters(\"specularColor\",arguments);var i=this.color.apply(this,arguments);return this._renderer.specularColors=[i._array[0],i._array[1],i._array[2]],this},m.default.prototype.directionalLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"directionalLight\"),m.default._validateParameters(\"directionalLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z);var c=Math.sqrt(s*s+l*l+u*u);return this._renderer.directionalLightDirections.push(s/c,l/c,u/c),this._renderer.directionalLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.directionalLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.pointLight=function(e,t,r,i,n,o){var a,s,l,u;this._assert3d(\"pointLight\"),m.default._validateParameters(\"pointLight\",arguments),a=e instanceof m.default.Color?e:this.color(e,t,r);var h=arguments[arguments.length-1];return u=\"number\"==typeof h?(s=arguments[arguments.length-3],l=arguments[arguments.length-2],arguments[arguments.length-1]):(s=h.x,l=h.y,h.z),this._renderer.pointLightPositions.push(s,l,u),this._renderer.pointLightDiffuseColors.push(a._array[0],a._array[1],a._array[2]),Array.prototype.push.apply(this._renderer.pointLightSpecularColors,this._renderer.specularColors),this._renderer._enableLighting=!0,this},m.default.prototype.lights=function(){return this._assert3d(\"lights\"),this.ambientLight(128,128,128),this.directionalLight(128,128,128,0,0,-1),this},m.default.prototype.lightFalloff=function(e,t,r){return this._assert3d(\"lightFalloff\"),m.default._validateParameters(\"lightFalloff\",arguments),e<0&&(e=0,console.warn(\"Value of constant argument in lightFalloff() should be never be negative. Set to 0.\")),t<0&&(t=0,console.warn(\"Value of linear argument in lightFalloff() should be never be negative. Set to 0.\")),r<0&&(r=0,console.warn(\"Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.\")),0===e&&0===t&&0===r&&(e=1,console.warn(\"Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.\")),this._renderer.constantAttenuation=e,this._renderer.linearAttenuation=t,this._renderer.quadraticAttenuation=r,this},m.default.prototype.spotLight=function(e,t,r,i,n,o,a,s,l,u,h){var c,f,d;this._assert3d(\"spotLight\"),m.default._validateParameters(\"spotLight\",arguments);var p=arguments.length;switch(p){case 11:case 10:c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l);break;case 9:e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),d=new m.default.Vector(n,o,a),u=s,h=l):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=new m.default.Vector(n,o,a),u=s,h=l):a instanceof m.default.Vector?(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=a,u=s,h=l):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),d=new m.default.Vector(a,s,l));break;case 8:u=(d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a),s);break;case 7:e instanceof m.default.Color&&t instanceof m.default.Vector?(c=e,f=t,d=new m.default.Vector(r,i,n),u=o,h=a):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o,h=a):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o,h=a):d=e instanceof m.default.Color?(c=e,f=new m.default.Vector(t,r,i),new m.default.Vector(n,o,a)):i instanceof m.default.Vector?(c=this.color(e,t,r),f=i,new m.default.Vector(n,o,a)):(c=this.color(e,t,r),f=new m.default.Vector(i,n,o),a);break;case 6:i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n,u=o):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n,u=o):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n),u=o);break;case 5:e instanceof m.default.Color&&t instanceof m.default.Vector&&r instanceof m.default.Vector?(c=e,f=t,d=r,u=i,h=n):i instanceof m.default.Vector&&n instanceof m.default.Vector?(c=this.color(e,t,r),f=i,d=n):e instanceof m.default.Color&&n instanceof m.default.Vector?(c=e,f=new m.default.Vector(t,r,i),d=n):e instanceof m.default.Color&&t instanceof m.default.Vector&&(c=e,f=t,d=new m.default.Vector(r,i,n));break;case 4:c=e,f=t,d=r,u=i;break;case 3:c=e,f=t,d=r;break;default:return console.warn(\"Sorry, input for spotlight() is not in prescribed format. Too \".concat(p<3?\"few\":\"many\",\" arguments were provided\")),this}return this._renderer.spotLightDiffuseColors.push(c._array[0],c._array[1],c._array[2]),Array.prototype.push.apply(this._renderer.spotLightSpecularColors,this._renderer.specularColors),this._renderer.spotLightPositions.push(f.x,f.y,f.z),d.normalize(),this._renderer.spotLightDirections.push(d.x,d.y,d.z),void 0===u&&(u=Math.PI/3),void 0!==h&&h<1?(h=1,console.warn(\"Value of concentration needs to be greater than 1. Setting it to 1\")):void 0===h&&(h=100),u=this._renderer._pInst._toRadians(u),this._renderer.spotLightAngle.push(Math.cos(u)),this._renderer.spotLightConc.push(h),this._renderer._enableLighting=!0,this},m.default.prototype.noLights=function(){return this._assert3d(\"noLights\"),m.default._validateParameters(\"noLights\",arguments),this._renderer._enableLighting=!1,this._renderer.ambientLightColors.length=0,this._renderer.specularColors=[1,1,1],this._renderer.directionalLightDirections.length=0,this._renderer.directionalLightDiffuseColors.length=0,this._renderer.directionalLightSpecularColors.length=0,this._renderer.pointLightPositions.length=0,this._renderer.pointLightDiffuseColors.length=0,this._renderer.pointLightSpecularColors.length=0,this._renderer.spotLightPositions.length=0,this._renderer.spotLightDirections.length=0,this._renderer.spotLightDiffuseColors.length=0,this._renderer.spotLightSpecularColors.length=0,this._renderer.spotLightAngle.length=0,this._renderer.spotLightConc.length=0,this._renderer.constantAttenuation=1,this._renderer.linearAttenuation=0,this._renderer.quadraticAttenuation=0,this._renderer._useShininess=1,this};var n=m.default;r.default=n},{\"../core/main\":49}],95:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,S=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};function s(e,t,r){for(var i=0,n=e.length;i<n;i++)if(e[i]!==t.getUint8(r+i,!1))return!1;return!0}e(\"./p5.Geometry\"),S.default.prototype.loadModel=function(e){var t,r,i;S.default._validateParameters(\"loadModel\",arguments),i=\"boolean\"==typeof arguments[1]?(t=arguments[1],r=arguments[2],arguments[3]):(t=!1,r=arguments[1],arguments[2]);var n=e.slice(-4),o=new S.default.Geometry;o.gid=\"\".concat(e,\"|\").concat(t);var a=this;return\".stl\"===n?this.httpDo(e,\"GET\",\"arrayBuffer\",function(e){!function(e,t){if(function(e){for(var t=new DataView(e),r=[115,111,108,105,100],i=0;i<5;i++)if(s(r,t,i))return!1;return!0}(t))!function(e,t){for(var r,i,n,o,a,s,l,u=new DataView(t),h=u.getUint32(80,!0),c=!1,f=0;f<70;f++)1129270351===u.getUint32(f,!1)&&82===u.getUint8(f+4)&&61===u.getUint8(f+5)&&(c=!0,o=[],a=u.getUint8(f+6)/255,s=u.getUint8(f+7)/255,l=u.getUint8(f+8)/255);for(var d=0;d<h;d++){var p=84+50*d,m=u.getFloat32(p,!0),g=u.getFloat32(4+p,!0),v=u.getFloat32(8+p,!0);if(c){var y=u.getUint16(48+p,!0);n=0==(32768&y)?(r=(31&y)/31,i=(y>>5&31)/31,(y>>10&31)/31):(r=a,i=s,l)}for(var b=1;b<=3;b++){var _=p+12*b,x=new S.default.Vector(u.getFloat32(_,!0),u.getFloat32(8+_,!0),u.getFloat32(4+_,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.default.Vector(m,g,v);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2]),e.uvs.push([0,0],[0,0],[0,0])}}(e,t);else{var r=new DataView(t);if(!(\"TextDecoder\"in window))return console.warn(\"Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)\");var i=new TextDecoder(\"utf-8\").decode(r).split(\"\\n\");!function(e,t){for(var r,i,n=\"\",o=[],a=0;a<t.length;++a){for(var s=t[a].trim(),l=s.split(\" \"),u=0;u<l.length;++u)\"\"===l[u]&&l.splice(u,1);if(0!==l.length)switch(n){case\"\":if(\"solid\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"solid\"'));n=\"solid\";break;case\"solid\":if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\";break;case\"facet normal\":if(\"outer\"!==l[0]||\"loop\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"outer loop\"'));n=\"vertex\";break;case\"vertex\":if(\"vertex\"===l[0])i=new S.default.Vector(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3])),e.vertices.push(i),e.uvs.push([0,0]),o.push(e.vertices.indexOf(i));else{if(\"endloop\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"vertex\" or \"endloop\"'));e.faces.push(o),o=[],n=\"endloop\"}break;case\"endloop\":if(\"endfacet\"!==l[0])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endfacet\"'));n=\"endfacet\";break;case\"endfacet\":if(\"endsolid\"!==l[0]){if(\"facet\"!==l[0]||\"normal\"!==l[1])return console.error(s),console.error('Invalid state \"'.concat(l[0],'\", should be \"endsolid\" or \"facet normal\"'));r=new S.default.Vector(parseFloat(l[2]),parseFloat(l[3]),parseFloat(l[4])),e.vertexNormals.push(r,r,r),n=\"facet normal\"}break;default:console.error('Invalid state \"'.concat(n,'\"'))}}}(e,i)}}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):\".obj\"===n?this.loadStrings(e,function(e){!function(e,t){for(var r={v:[],vt:[],vn:[]},i={},n=0;n<t.length;++n){var o=t[n].trim().split(/\\b\\s+/);if(0<o.length)if(\"v\"===o[0]||\"vn\"===o[0]){var a=new S.default.Vector(parseFloat(o[1]),parseFloat(o[2]),parseFloat(o[3]));r[o[0]].push(a)}else if(\"vt\"===o[0]){var s=[parseFloat(o[1]),parseFloat(o[2])];r[o[0]].push(s)}else if(\"f\"===o[0])for(var l=3;l<o.length;++l){for(var u=[],h=[1,l-1,l],c=0;c<h.length;++c){var f=o[h[c]],d=0;if(void 0!==i[f])d=i[f];else{for(var p=f.split(\"/\"),m=0;m<p.length;m++)p[m]=parseInt(p[m])-1;d=i[f]=e.vertices.length,e.vertices.push(r.v[p[0]].copy()),r.vt[p[1]]?e.uvs.push(r.vt[p[1]].slice()):e.uvs.push([0,0]),r.vn[p[2]]&&e.vertexNormals.push(r.vn[p[2]].copy())}u.push(d)}u[0]!==u[1]&&u[0]!==u[2]&&u[1]!==u[2]&&e.faces.push(u)}}0===e.vertexNormals.length&&e.computeNormals()}(o,e),t&&o.normalize(),a._decrementPreload(),\"function\"==typeof r&&r(o)},i):(S.default._friendlyFileLoadError(3,e),i?i():console.error(\"Sorry, the file type is invalid. Only OBJ and STL files are supported.\")),o},S.default.prototype.model=function(e){this._assert3d(\"model\"),S.default._validateParameters(\"model\",arguments),0<e.vertices.length&&(this._renderer.geometryInHash(e.gid)||(e._makeTriangleEdges()._edgesToVertices(),this._renderer.createBuffers(e.gid,e)),this._renderer.drawBuffers(e.gid))};var n=S.default;r.default=n},{\"../core/main\":49,\"./p5.Geometry\":98}],96:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,u=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},n=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Texture\"),u.default.prototype.loadShader=function(e,t,r,i){u.default._validateParameters(\"loadShader\",arguments),i=i||console.error;function n(){a._decrementPreload(),r&&r(o)}var o=new u.default.Shader,a=this,s=!1,l=!1;return this.loadStrings(e,function(e){o._vertSrc=e.join(\"\\n\"),l=!0,s&&n()},i),this.loadStrings(t,function(e){o._fragSrc=e.join(\"\\n\"),s=!0,l&&n()},i),o},u.default.prototype.createShader=function(e,t){return this._assert3d(\"createShader\"),u.default._validateParameters(\"createShader\",arguments),new u.default.Shader(this._renderer,e,t)},u.default.prototype.shader=function(e){return this._assert3d(\"shader\"),u.default._validateParameters(\"shader\",arguments),void 0===e._renderer&&(e._renderer=this._renderer),e.isStrokeShader()?this._renderer.userStrokeShader=e:(this._renderer.userFillShader=e,this._renderer._useNormalMaterial=!1),e.init(),this},u.default.prototype.resetShader=function(){return this._renderer.userFillShader=this._renderer.userStrokeShader=null,this},u.default.prototype.normalMaterial=function(){this._assert3d(\"normalMaterial\");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.default._validateParameters(\"normalMaterial\",t),this._renderer.drawMode=n.FILL,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!0,this._renderer.curFillColor=[1,1,1,1],this._renderer._setProperty(\"_doFill\",!0),this.noStroke(),this},u.default.prototype.texture=function(e){return this._assert3d(\"texture\"),u.default._validateParameters(\"texture\",arguments),e.gifProperties&&e._animateGif(this),this._renderer.drawMode=n.TEXTURE,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._tex=e,this._renderer._setProperty(\"_doFill\",!0),this},u.default.prototype.textureMode=function(e){e!==n.IMAGE&&e!==n.NORMAL?console.warn(\"You tried to set \".concat(e,\" textureMode only supports IMAGE & NORMAL \")):this._renderer.textureMode=e},u.default.prototype.textureWrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;this._renderer.textureWrapX=e,this._renderer.textureWrapY=t;for(var r=this._renderer.textures,i=0;i<r.length;i++)r[i].setWrapMode(e,t)},u.default.prototype.ambientMaterial=function(e,t,r){this._assert3d(\"ambientMaterial\"),u.default._validateParameters(\"ambientMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.emissiveMaterial=function(e,t,r,i){this._assert3d(\"emissiveMaterial\"),u.default._validateParameters(\"emissiveMaterial\",arguments);var n=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=n._array,this._renderer._useSpecularMaterial=!1,this._renderer._useEmissiveMaterial=!0,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.specularMaterial=function(e,t,r){this._assert3d(\"specularMaterial\"),u.default._validateParameters(\"specularMaterial\",arguments);var i=u.default.prototype.color.apply(this,arguments);return this._renderer.curFillColor=i._array,this._renderer._useSpecularMaterial=!0,this._renderer._useEmissiveMaterial=!1,this._renderer._useNormalMaterial=!1,this._renderer._enableLighting=!0,this._renderer._tex=null,this},u.default.prototype.shininess=function(e){return this._assert3d(\"shininess\"),u.default._validateParameters(\"shininess\",arguments),e<1&&(e=1),this._renderer._useShininess=e,this},u.default.RendererGL.prototype._applyColorBlend=function(e){var t=this.GL,r=this.drawMode===n.TEXTURE||e[e.length-1]<1||this._isErasing;return r!==this._isBlending&&(r||this.curBlendMode!==n.BLEND&&this.curBlendMode!==n.ADD?t.enable(t.BLEND):t.disable(t.BLEND),t.depthMask(!0),this._isBlending=r),this._applyBlendMode(),e},u.default.RendererGL.prototype._applyBlendMode=function(){if(this._cachedBlendMode!==this.curBlendMode){var e=this.GL;switch(this.curBlendMode){case n.BLEND:case n.ADD:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);break;case n.REMOVE:e.blendEquation(e.FUNC_REVERSE_SUBTRACT),e.blendFunc(e.SRC_ALPHA,e.DST_ALPHA);break;case n.MULTIPLY:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ONE,e.ONE);break;case n.SCREEN:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE,e.ONE,e.ONE);break;case n.EXCLUSION:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE_MINUS_DST_COLOR,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE);break;case n.REPLACE:e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO);break;case n.SUBTRACT:e.blendEquationSeparate(e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE,e.ONE,e.ONE);break;case n.DARKEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MIN_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(DARKEST) does not work in your browser in WEBGL mode.\");break;case n.LIGHTEST:this.blendExt?(e.blendEquationSeparate(this.blendExt.MAX_EXT,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):console.warn(\"blendMode(LIGHTEST) does not work in your browser in WEBGL mode.\");break;default:console.error(\"Oops! Somehow RendererGL set curBlendMode to an unsupported mode.\")}this._cachedBlendMode=this.curBlendMode}};var o=u.default;r.default=o},{\"../core/constants\":42,\"../core/main\":49,\"./p5.Texture\":105}],97:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,m=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};m.default.prototype.camera=function(){var e;this._assert3d(\"camera\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"camera\",r),(e=this._renderer._curCamera).camera.apply(e,r),this},m.default.prototype.perspective=function(){var e;this._assert3d(\"perspective\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"perspective\",r),(e=this._renderer._curCamera).perspective.apply(e,r),this},m.default.prototype.ortho=function(){var e;this._assert3d(\"ortho\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"ortho\",r),(e=this._renderer._curCamera).ortho.apply(e,r),this},m.default.prototype.frustum=function(){var e;this._assert3d(\"frustum\");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return m.default._validateParameters(\"frustum\",r),(e=this._renderer._curCamera).frustum.apply(e,r),this},m.default.prototype.createCamera=function(){this._assert3d(\"createCamera\");var e=new m.default.Camera(this._renderer);return e._computeCameraDefaultSettings(),e._setDefaultCamera(),this._renderer._curCamera=e},m.default.Camera=function(e){this._renderer=e,this.cameraType=\"default\",this.cameraMatrix=new m.default.Matrix,this.projMatrix=new m.default.Matrix},m.default.Camera.prototype.perspective=function(e,t,r,i){this.cameraType=0<arguments.length?\"custom\":\"default\",void 0===e?(e=this.defaultCameraFOV,this.cameraFOV=e):this.cameraFOV=this._renderer._pInst._toRadians(e),void 0===t&&(t=this.defaultAspectRatio),void 0===r&&(r=this.defaultCameraNear),void 0===i&&(i=this.defaultCameraFar),r<=1e-4&&(r=.01,console.log(\"Avoid perspective near plane values close to or below 0. Setting value to 0.01.\")),i<r&&console.log(\"Perspective far plane value is less than near plane value. Nothing will be shown.\"),this.aspectRatio=t,this.cameraNear=r,this.cameraFar=i,this.projMatrix=m.default.Matrix.identity();var n=1/Math.tan(this.cameraFOV/2),o=1/(this.cameraNear-this.cameraFar);this.projMatrix.set(n/t,0,0,0,0,-n,0,0,0,0,(i+r)*o,-1,0,0,2*i*r*o,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15])},m.default.Camera.prototype.ortho=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2/a,h=2/s,c=-2/l,f=-(t+e)/a,d=-(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,-h,0,0,0,0,c,0,f,d,p,1),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype.frustum=function(e,t,r,i,n,o){void 0===e&&(e=-this._renderer.width/2),void 0===t&&(t=this._renderer.width/2),void 0===r&&(r=-this._renderer.height/2),void 0===i&&(i=this._renderer.height/2),void 0===n&&(n=0),void 0===o&&(o=Math.max(this._renderer.width,this._renderer.height));var a=t-e,s=i-r,l=o-n,u=2*n/a,h=2*n/s,c=-2*o*n/l,f=(t+e)/a,d=(i+r)/s,p=-(o+n)/l;this.projMatrix=m.default.Matrix.identity(),this.projMatrix.set(u,0,0,0,0,h,0,0,f,d,p,-1,0,0,c,0),this._isActive()&&this._renderer.uPMatrix.set(this.projMatrix.mat4[0],this.projMatrix.mat4[1],this.projMatrix.mat4[2],this.projMatrix.mat4[3],this.projMatrix.mat4[4],this.projMatrix.mat4[5],this.projMatrix.mat4[6],this.projMatrix.mat4[7],this.projMatrix.mat4[8],this.projMatrix.mat4[9],this.projMatrix.mat4[10],this.projMatrix.mat4[11],this.projMatrix.mat4[12],this.projMatrix.mat4[13],this.projMatrix.mat4[14],this.projMatrix.mat4[15]),this.cameraType=\"custom\"},m.default.Camera.prototype._rotateView=function(e,t,r,i){var n=this.centerX,o=this.centerY,a=this.centerZ;n-=this.eyeX,o-=this.eyeY,a-=this.eyeZ;var s=m.default.Matrix.identity(this._renderer._pInst);s.rotate(this._renderer._pInst._toRadians(e),t,r,i);var l=[n*s.mat4[0]+o*s.mat4[4]+a*s.mat4[8],n*s.mat4[1]+o*s.mat4[5]+a*s.mat4[9],n*s.mat4[2]+o*s.mat4[6]+a*s.mat4[10]];l[0]+=this.eyeX,l[1]+=this.eyeY,l[2]+=this.eyeZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,l[0],l[1],l[2],this.upX,this.upY,this.upZ)},m.default.Camera.prototype.pan=function(e){var t=this._getLocalAxes();this._rotateView(e,t.y[0],t.y[1],t.y[2])},m.default.Camera.prototype.tilt=function(e){var t=this._getLocalAxes();this._rotateView(e,t.x[0],t.x[1],t.x[2])},m.default.Camera.prototype.lookAt=function(e,t,r){this.camera(this.eyeX,this.eyeY,this.eyeZ,e,t,r,this.upX,this.upY,this.upZ)},m.default.Camera.prototype.camera=function(e,t,r,i,n,o,a,s,l){void 0===e&&(e=this.defaultEyeX,t=this.defaultEyeY,r=this.defaultEyeZ,i=e,n=t,s=1,l=a=o=0),this.eyeX=e,this.eyeY=t,this.eyeZ=r,this.centerX=i,this.centerY=n,this.centerZ=o,this.upX=a,this.upY=s,this.upZ=l;var u=this._getLocalAxes();this.cameraMatrix.set(u.x[0],u.y[0],u.z[0],0,u.x[1],u.y[1],u.z[1],0,u.x[2],u.y[2],u.z[2],0,0,0,0,1);var h=-e,c=-t,f=-r;return this.cameraMatrix.translate([h,c,f]),this._isActive()&&this._renderer.uMVMatrix.set(this.cameraMatrix.mat4[0],this.cameraMatrix.mat4[1],this.cameraMatrix.mat4[2],this.cameraMatrix.mat4[3],this.cameraMatrix.mat4[4],this.cameraMatrix.mat4[5],this.cameraMatrix.mat4[6],this.cameraMatrix.mat4[7],this.cameraMatrix.mat4[8],this.cameraMatrix.mat4[9],this.cameraMatrix.mat4[10],this.cameraMatrix.mat4[11],this.cameraMatrix.mat4[12],this.cameraMatrix.mat4[13],this.cameraMatrix.mat4[14],this.cameraMatrix.mat4[15]),this},m.default.Camera.prototype.move=function(e,t,r){var i=this._getLocalAxes(),n=[i.x[0]*e,i.x[1]*e,i.x[2]*e],o=[i.y[0]*t,i.y[1]*t,i.y[2]*t],a=[i.z[0]*r,i.z[1]*r,i.z[2]*r];this.camera(this.eyeX+n[0]+o[0]+a[0],this.eyeY+n[1]+o[1]+a[1],this.eyeZ+n[2]+o[2]+a[2],this.centerX+n[0]+o[0]+a[0],this.centerY+n[1]+o[1]+a[1],this.centerZ+n[2]+o[2]+a[2],0,1,0)},m.default.Camera.prototype.setPosition=function(e,t,r){var i=e-this.eyeX,n=t-this.eyeY,o=r-this.eyeZ;this.camera(e,t,r,this.centerX+i,this.centerY+n,this.centerZ+o,0,1,0)},m.default.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultCameraFOV=60/180*Math.PI,this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultEyeZ=this._renderer.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCenterX=0,this.defaultCenterY=0,this.defaultCenterZ=0,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ},m.default.Camera.prototype._setDefaultCamera=function(){this.cameraFOV=this.defaultCameraFOV,this.aspectRatio=this.defaultAspectRatio,this.eyeX=this.defaultEyeX,this.eyeY=this.defaultEyeY,this.eyeZ=this.defaultEyeZ,this.centerX=this.defaultCenterX,this.centerY=this.defaultCenterY,this.centerZ=this.defaultCenterZ,this.upX=0,this.upY=1,this.upZ=0,this.cameraNear=this.defaultCameraNear,this.cameraFar=this.defaultCameraFar,this.perspective(),this.camera(),this.cameraType=\"default\"},m.default.Camera.prototype._resize=function(){\"default\"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this._renderer.width/this._renderer.height)},m.default.Camera.prototype.copy=function(){var e=new m.default.Camera(this._renderer);return e.cameraFOV=this.cameraFOV,e.aspectRatio=this.aspectRatio,e.eyeX=this.eyeX,e.eyeY=this.eyeY,e.eyeZ=this.eyeZ,e.centerX=this.centerX,e.centerY=this.centerY,e.centerZ=this.centerZ,e.cameraNear=this.cameraNear,e.cameraFar=this.cameraFar,e.cameraType=this.cameraType,e.cameraMatrix=this.cameraMatrix.copy(),e.projMatrix=this.projMatrix.copy(),e},m.default.Camera.prototype._getLocalAxes=function(){var e=this.eyeX-this.centerX,t=this.eyeY-this.centerY,r=this.eyeZ-this.centerZ,i=Math.sqrt(e*e+t*t+r*r);0!==i&&(e/=i,t/=i,r/=i);var n=this.upX,o=this.upY,a=this.upZ,s=o*r-a*t,l=-n*r+a*e,u=n*t-o*e;n=t*u-r*l,o=-e*u+r*s,a=e*l-t*s;var h=Math.sqrt(s*s+l*l+u*u);0!==h&&(s/=h,l/=h,u/=h);var c=Math.sqrt(n*n+o*o+a*a);return 0!==c&&(n/=c,o/=c,a/=c),{x:[s,l,u],y:[n,o,a],z:[e,t,r]}},m.default.Camera.prototype._orbit=function(e,t,r){var i=this.eyeX-this.centerX,n=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.sqrt(i*i+n*n+o*o),s=Math.atan2(i,o),l=Math.acos(Math.max(-1,Math.min(1,n/a)));s+=e,(a+=r)<0&&(a=.1),(l+=t)>Math.PI?l=Math.PI:l<=0&&(l=.001);var u=Math.sin(l)*a*Math.sin(s),h=Math.cos(l)*a,c=Math.sin(l)*a*Math.cos(s);this.camera(u+this.centerX,h+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.default.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.default.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])};var n=m.default.Camera;r.default=n},{\"../core/main\":49}],98:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,h=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};h.default.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.vertexColors=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},h.default.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},h.default.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;o<this.detailY;o++)for(var a=0;a<this.detailX;a++)t=(e=o*n+a)+1,r=(o+1)*n+a+1,i=(o+1)*n+a,this.faces.push([e,t,i]),this.faces.push([i,t,r]);return this},h.default.Geometry.prototype._getFaceNormal=function(e){var t=this.faces[e],r=this.vertices[t[0]],i=this.vertices[t[1]],n=this.vertices[t[2]],o=h.default.Vector.sub(i,r),a=h.default.Vector.sub(n,r),s=h.default.Vector.cross(o,a),l=h.default.Vector.mag(s),u=l/(h.default.Vector.mag(o)*h.default.Vector.mag(a));return 0===u||isNaN(u)?(console.warn(\"p5.Geometry.prototype._getFaceNormal:\",\"face has colinear sides or a repeated vertex\"),s):(1<u&&(u=1),s.mult(Math.asin(u)/l))},h.default.Geometry.prototype.computeNormals=function(){var e,t=this.vertexNormals,r=this.vertices,i=this.faces;for(e=t.length=0;e<r.length;++e)t.push(new h.default.Vector);for(var n=0;n<i.length;++n)for(var o=i[n],a=this._getFaceNormal(n),s=0;s<3;++s){t[o[s]].add(a)}for(e=0;e<r.length;++e)t[e].normalize();return this},h.default.Geometry.prototype.averageNormals=function(){for(var e=0;e<=this.detailY;e++){var t=this.detailX+1,r=h.default.Vector.add(this.vertexNormals[e*t],this.vertexNormals[e*t+this.detailX]);r=h.default.Vector.div(r,2),this.vertexNormals[e*t]=r,this.vertexNormals[e*t+this.detailX]=r}return this},h.default.Geometry.prototype.averagePoleNormals=function(){for(var e=new h.default.Vector(0,0,0),t=0;t<this.detailX;t++)e.add(this.vertexNormals[t]);e=h.default.Vector.div(e,this.detailX);for(var r=0;r<this.detailX;r++)this.vertexNormals[r]=e;e=new h.default.Vector(0,0,0);for(var i=this.vertices.length-1;i>this.vertices.length-1-this.detailX;i--)e.add(this.vertexNormals[i]);e=h.default.Vector.div(e,this.detailX);for(var n=this.vertices.length-1;n>this.vertices.length-1-this.detailX;n--)this.vertexNormals[n]=e;return this},h.default.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e<t;e++)this.edges.push(this.strokeIndices[e]);else for(var r=0;r<this.faces.length;r++)this.edges.push([this.faces[r][0],this.faces[r][1]]),this.edges.push([this.faces[r][1],this.faces[r][2]]),this.edges.push([this.faces[r][2],this.faces[r][0]]);return this},h.default.Geometry.prototype._edgesToVertices=function(){this.lineVertices.length=0;for(var e=this.lineNormals.length=0;e<this.edges.length;e++){var t=this.vertices[this.edges[e][0]],r=this.vertices[this.edges[e][1]],i=r.copy().sub(t).normalize(),n=t.array(),o=t.array(),a=r.array(),s=r.array(),l=i.array(),u=i.array();l.push(1),u.push(-1),this.lineNormals.push(l,u,l,l,u,u),this.lineVertices.push(n,o,a,a,o,s)}return this},h.default.Geometry.prototype.normalize=function(){if(0<this.vertices.length){for(var e=this.vertices[0].copy(),t=this.vertices[0].copy(),r=0;r<this.vertices.length;r++)e.x=Math.max(e.x,this.vertices[r].x),t.x=Math.min(t.x,this.vertices[r].x),e.y=Math.max(e.y,this.vertices[r].y),t.y=Math.min(t.y,this.vertices[r].y),e.z=Math.max(e.z,this.vertices[r].z),t.z=Math.min(t.z,this.vertices[r].z);for(var i=h.default.Vector.lerp(e,t,.5),n=h.default.Vector.sub(e,t),o=200/Math.max(Math.max(n.x,n.y),n.z),a=0;a<this.vertices.length;a++)this.vertices[a].sub(i),this.vertices[a].mult(o)}return this};var n=h.default.Geometry;r.default=n},{\"../core/main\":49}],99:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,k=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};var n=Array,R=function(e){return e instanceof Array};\"undefined\"!=typeof Float32Array&&(n=Float32Array,R=function(e){return e instanceof Array||e instanceof Float32Array}),k.default.Matrix=function(){for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];return e.length&&e[e.length-1]instanceof k.default&&(this.p5=e[e.length-1]),\"mat3\"===e[0]?this.mat3=Array.isArray(e[1])?e[1]:new n([1,0,0,0,1,0,0,0,1]):this.mat4=Array.isArray(e[0])?e[0]:new n([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this},k.default.Matrix.prototype.set=function(e){return e instanceof k.default.Matrix?this.mat4=e.mat4:R(e)?this.mat4=e:16===arguments.length&&(this.mat4[0]=e,this.mat4[1]=arguments[1],this.mat4[2]=arguments[2],this.mat4[3]=arguments[3],this.mat4[4]=arguments[4],this.mat4[5]=arguments[5],this.mat4[6]=arguments[6],this.mat4[7]=arguments[7],this.mat4[8]=arguments[8],this.mat4[9]=arguments[9],this.mat4[10]=arguments[10],this.mat4[11]=arguments[11],this.mat4[12]=arguments[12],this.mat4[13]=arguments[13],this.mat4[14]=arguments[14],this.mat4[15]=arguments[15]),this},k.default.Matrix.prototype.get=function(){return new k.default.Matrix(this.mat4,this.p5)},k.default.Matrix.prototype.copy=function(){var e=new k.default.Matrix(this.p5);return e.mat4[0]=this.mat4[0],e.mat4[1]=this.mat4[1],e.mat4[2]=this.mat4[2],e.mat4[3]=this.mat4[3],e.mat4[4]=this.mat4[4],e.mat4[5]=this.mat4[5],e.mat4[6]=this.mat4[6],e.mat4[7]=this.mat4[7],e.mat4[8]=this.mat4[8],e.mat4[9]=this.mat4[9],e.mat4[10]=this.mat4[10],e.mat4[11]=this.mat4[11],e.mat4[12]=this.mat4[12],e.mat4[13]=this.mat4[13],e.mat4[14]=this.mat4[14],e.mat4[15]=this.mat4[15],e},k.default.Matrix.identity=function(e){return new k.default.Matrix(e)},k.default.Matrix.prototype.transpose=function(e){var t,r,i,n,o,a;return e instanceof k.default.Matrix?(t=e.mat4[1],r=e.mat4[2],i=e.mat4[3],n=e.mat4[6],o=e.mat4[7],a=e.mat4[11],this.mat4[0]=e.mat4[0],this.mat4[1]=e.mat4[4],this.mat4[2]=e.mat4[8],this.mat4[3]=e.mat4[12],this.mat4[4]=t,this.mat4[5]=e.mat4[5],this.mat4[6]=e.mat4[9],this.mat4[7]=e.mat4[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e.mat4[10],this.mat4[11]=e.mat4[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e.mat4[15]):R(e)&&(t=e[1],r=e[2],i=e[3],n=e[6],o=e[7],a=e[11],this.mat4[0]=e[0],this.mat4[1]=e[4],this.mat4[2]=e[8],this.mat4[3]=e[12],this.mat4[4]=t,this.mat4[5]=e[5],this.mat4[6]=e[9],this.mat4[7]=e[13],this.mat4[8]=r,this.mat4[9]=n,this.mat4[10]=e[10],this.mat4[11]=e[14],this.mat4[12]=i,this.mat4[13]=o,this.mat4[14]=a,this.mat4[15]=e[15]),this},k.default.Matrix.prototype.invert=function(e){var t,r,i,n,o,a,s,l,u,h,c,f,d,p,m,g;e instanceof k.default.Matrix?(t=e.mat4[0],r=e.mat4[1],i=e.mat4[2],n=e.mat4[3],o=e.mat4[4],a=e.mat4[5],s=e.mat4[6],l=e.mat4[7],u=e.mat4[8],h=e.mat4[9],c=e.mat4[10],f=e.mat4[11],d=e.mat4[12],p=e.mat4[13],m=e.mat4[14],g=e.mat4[15]):R(e)&&(t=e[0],r=e[1],i=e[2],n=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],h=e[9],c=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15]);var v=t*a-r*o,y=t*s-i*o,b=t*l-n*o,_=r*s-i*a,x=r*l-n*a,w=i*l-n*s,S=u*p-h*d,M=u*m-c*d,E=u*g-f*d,T=h*m-c*p,C=h*g-f*p,P=c*g-f*m,L=v*P-y*C+b*T+_*E-x*M+w*S;return L?(L=1/L,this.mat4[0]=(a*P-s*C+l*T)*L,this.mat4[1]=(i*C-r*P-n*T)*L,this.mat4[2]=(p*w-m*x+g*_)*L,this.mat4[3]=(c*x-h*w-f*_)*L,this.mat4[4]=(s*E-o*P-l*M)*L,this.mat4[5]=(t*P-i*E+n*M)*L,this.mat4[6]=(m*b-d*w-g*y)*L,this.mat4[7]=(u*w-c*b+f*y)*L,this.mat4[8]=(o*C-a*E+l*S)*L,this.mat4[9]=(r*E-t*C-n*S)*L,this.mat4[10]=(d*x-p*b+g*v)*L,this.mat4[11]=(h*b-u*x-f*v)*L,this.mat4[12]=(a*M-o*T-s*S)*L,this.mat4[13]=(t*T-r*M+i*S)*L,this.mat4[14]=(p*y-d*_-m*v)*L,this.mat4[15]=(u*_-h*y+c*v)*L,this):null},k.default.Matrix.prototype.invert3x3=function(){var e=this.mat3[0],t=this.mat3[1],r=this.mat3[2],i=this.mat3[3],n=this.mat3[4],o=this.mat3[5],a=this.mat3[6],s=this.mat3[7],l=this.mat3[8],u=l*n-o*s,h=-l*i+o*a,c=s*i-n*a,f=e*u+t*h+r*c;return f?(f=1/f,this.mat3[0]=u*f,this.mat3[1]=(-l*t+r*s)*f,this.mat3[2]=(o*t-r*n)*f,this.mat3[3]=h*f,this.mat3[4]=(l*e-r*a)*f,this.mat3[5]=(-o*e+r*i)*f,this.mat3[6]=c*f,this.mat3[7]=(-s*e+t*a)*f,this.mat3[8]=(n*e-t*i)*f,this):null},k.default.Matrix.prototype.transpose3x3=function(e){var t=e[1],r=e[2],i=e[5];return this.mat3[1]=e[3],this.mat3[2]=e[6],this.mat3[3]=t,this.mat3[5]=e[7],this.mat3[6]=r,this.mat3[7]=i,this},k.default.Matrix.prototype.inverseTranspose=function(e){void 0===this.mat3?console.error(\"sorry, this function only works with mat3\"):(this.mat3[0]=e.mat4[0],this.mat3[1]=e.mat4[1],this.mat3[2]=e.mat4[2],this.mat3[3]=e.mat4[4],this.mat3[4]=e.mat4[5],this.mat3[5]=e.mat4[6],this.mat3[6]=e.mat4[8],this.mat3[7]=e.mat4[9],this.mat3[8]=e.mat4[10]);var t=this.invert3x3();if(t)t.transpose3x3(this.mat3);else for(var r=0;r<9;r++)this.mat3[r]=0;return this},k.default.Matrix.prototype.determinant=function(){var e=this.mat4[0]*this.mat4[5]-this.mat4[1]*this.mat4[4],t=this.mat4[0]*this.mat4[6]-this.mat4[2]*this.mat4[4],r=this.mat4[0]*this.mat4[7]-this.mat4[3]*this.mat4[4],i=this.mat4[1]*this.mat4[6]-this.mat4[2]*this.mat4[5],n=this.mat4[1]*this.mat4[7]-this.mat4[3]*this.mat4[5],o=this.mat4[2]*this.mat4[7]-this.mat4[3]*this.mat4[6],a=this.mat4[8]*this.mat4[13]-this.mat4[9]*this.mat4[12],s=this.mat4[8]*this.mat4[14]-this.mat4[10]*this.mat4[12],l=this.mat4[8]*this.mat4[15]-this.mat4[11]*this.mat4[12],u=this.mat4[9]*this.mat4[14]-this.mat4[10]*this.mat4[13],h=this.mat4[9]*this.mat4[15]-this.mat4[11]*this.mat4[13];return e*(this.mat4[10]*this.mat4[15]-this.mat4[11]*this.mat4[14])-t*h+r*u+i*l-n*s+o*a},k.default.Matrix.prototype.mult=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4[0],i=this.mat4[1],n=this.mat4[2],o=this.mat4[3];return this.mat4[0]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[1]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[2]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[3]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[4],i=this.mat4[5],n=this.mat4[6],o=this.mat4[7],this.mat4[4]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[5]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[6]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[7]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[8],i=this.mat4[9],n=this.mat4[10],o=this.mat4[11],this.mat4[8]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[9]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[10]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[11]=r*t[3]+i*t[7]+n*t[11]+o*t[15],r=this.mat4[12],i=this.mat4[13],n=this.mat4[14],o=this.mat4[15],this.mat4[12]=r*t[0]+i*t[4]+n*t[8]+o*t[12],this.mat4[13]=r*t[1]+i*t[5]+n*t[9]+o*t[13],this.mat4[14]=r*t[2]+i*t[6]+n*t[10]+o*t[14],this.mat4[15]=r*t[3]+i*t[7]+n*t[11]+o*t[15],this},k.default.Matrix.prototype.apply=function(e){var t;if(e===this||e===this.mat4)t=this.copy().mat4;else if(e instanceof k.default.Matrix)t=e.mat4;else if(R(e))t=e;else{if(16!==arguments.length)return;t=arguments}var r=this.mat4,i=r[0],n=r[4],o=r[8],a=r[12];r[0]=t[0]*i+t[1]*n+t[2]*o+t[3]*a,r[4]=t[4]*i+t[5]*n+t[6]*o+t[7]*a,r[8]=t[8]*i+t[9]*n+t[10]*o+t[11]*a,r[12]=t[12]*i+t[13]*n+t[14]*o+t[15]*a;var s=r[1],l=r[5],u=r[9],h=r[13];r[1]=t[0]*s+t[1]*l+t[2]*u+t[3]*h,r[5]=t[4]*s+t[5]*l+t[6]*u+t[7]*h,r[9]=t[8]*s+t[9]*l+t[10]*u+t[11]*h,r[13]=t[12]*s+t[13]*l+t[14]*u+t[15]*h;var c=r[2],f=r[6],d=r[10],p=r[14];r[2]=t[0]*c+t[1]*f+t[2]*d+t[3]*p,r[6]=t[4]*c+t[5]*f+t[6]*d+t[7]*p,r[10]=t[8]*c+t[9]*f+t[10]*d+t[11]*p,r[14]=t[12]*c+t[13]*f+t[14]*d+t[15]*p;var m=r[3],g=r[7],v=r[11],y=r[15];return r[3]=t[0]*m+t[1]*g+t[2]*v+t[3]*y,r[7]=t[4]*m+t[5]*g+t[6]*v+t[7]*y,r[11]=t[8]*m+t[9]*g+t[10]*v+t[11]*y,r[15]=t[12]*m+t[13]*g+t[14]*v+t[15]*y,this},k.default.Matrix.prototype.scale=function(e,t,r){return e instanceof k.default.Vector?(t=e.y,r=e.z,e=e.x):e instanceof Array&&(t=e[1],r=e[2],e=e[0]),this.mat4[0]*=e,this.mat4[1]*=e,this.mat4[2]*=e,this.mat4[3]*=e,this.mat4[4]*=t,this.mat4[5]*=t,this.mat4[6]*=t,this.mat4[7]*=t,this.mat4[8]*=r,this.mat4[9]*=r,this.mat4[10]*=r,this.mat4[11]*=r,this},k.default.Matrix.prototype.rotate=function(e,t,r,i){t instanceof k.default.Vector?(r=t.y,i=t.z,t=t.x):t instanceof Array&&(r=t[1],i=t[2],t=t[0]);var n=Math.sqrt(t*t+r*r+i*i);t*=1/n,r*=1/n,i*=1/n;var o=this.mat4[0],a=this.mat4[1],s=this.mat4[2],l=this.mat4[3],u=this.mat4[4],h=this.mat4[5],c=this.mat4[6],f=this.mat4[7],d=this.mat4[8],p=this.mat4[9],m=this.mat4[10],g=this.mat4[11],v=Math.sin(e),y=Math.cos(e),b=1-y,_=t*t*b+y,x=r*t*b+i*v,w=i*t*b-r*v,S=t*r*b-i*v,M=r*r*b+y,E=i*r*b+t*v,T=t*i*b+r*v,C=r*i*b-t*v,P=i*i*b+y;return this.mat4[0]=o*_+u*x+d*w,this.mat4[1]=a*_+h*x+p*w,this.mat4[2]=s*_+c*x+m*w,this.mat4[3]=l*_+f*x+g*w,this.mat4[4]=o*S+u*M+d*E,this.mat4[5]=a*S+h*M+p*E,this.mat4[6]=s*S+c*M+m*E,this.mat4[7]=l*S+f*M+g*E,this.mat4[8]=o*T+u*C+d*P,this.mat4[9]=a*T+h*C+p*P,this.mat4[10]=s*T+c*C+m*P,this.mat4[11]=l*T+f*C+g*P,this},k.default.Matrix.prototype.translate=function(e){var t=e[0],r=e[1],i=e[2]||0;this.mat4[12]+=this.mat4[0]*t+this.mat4[4]*r+this.mat4[8]*i,this.mat4[13]+=this.mat4[1]*t+this.mat4[5]*r+this.mat4[9]*i,this.mat4[14]+=this.mat4[2]*t+this.mat4[6]*r+this.mat4[10]*i,this.mat4[15]+=this.mat4[3]*t+this.mat4[7]*r+this.mat4[11]*i},k.default.Matrix.prototype.rotateX=function(e){this.rotate(e,1,0,0)},k.default.Matrix.prototype.rotateY=function(e){this.rotate(e,0,1,0)},k.default.Matrix.prototype.rotateZ=function(e){this.rotate(e,0,0,1)},k.default.Matrix.prototype.perspective=function(e,t,r,i){var n=1/Math.tan(e/2),o=1/(r-i);return this.mat4[0]=n/t,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=n,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=(i+r)*o,this.mat4[11]=-1,this.mat4[12]=0,this.mat4[13]=0,this.mat4[14]=2*i*r*o,this.mat4[15]=0,this},k.default.Matrix.prototype.ortho=function(e,t,r,i,n,o){var a=1/(e-t),s=1/(r-i),l=1/(n-o);return this.mat4[0]=-2*a,this.mat4[1]=0,this.mat4[2]=0,this.mat4[3]=0,this.mat4[4]=0,this.mat4[5]=-2*s,this.mat4[6]=0,this.mat4[7]=0,this.mat4[8]=0,this.mat4[9]=0,this.mat4[10]=2*l,this.mat4[11]=0,this.mat4[12]=(e+t)*a,this.mat4[13]=(i+r)*s,this.mat4[14]=(o+n)*l,this.mat4[15]=1,this};var o=k.default.Matrix;r.default=o},{\"../core/main\":49}],100:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.RenderBuffer=function(e,t,r,i,n,o){this.size=e,this.src=t,this.dst=r,this.attr=i,this._renderer=n,this.map=o},n.default.RenderBuffer.prototype._prepareBuffer=function(e,t){var r,i=t.attributes,n=this._renderer.GL;r=e.model?e.model:e;var o=i[this.attr];if(o){var a=e[this.dst],s=r[this.src];if(0<s.length){var l=!a;if(l&&(e[this.dst]=a=n.createBuffer()),n.bindBuffer(n.ARRAY_BUFFER,a),l||!1!==r.dirtyFlags[this.src]){var u=this.map,h=u?u(s):s;this._renderer._bindBuffer(a,n.ARRAY_BUFFER,h),r.dirtyFlags[this.src]=!1}t.enableAttrib(o,this.size)}}};var o=n.default.RenderBuffer;r.default=o},{\"../core/main\":49}],101:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,s=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},l=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function u(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}e(\"./p5.RenderBuffer\"),s.default.RendererGL.prototype.beginShape=function(e){return this.immediateMode.shapeMode=void 0!==e?e:l.TRIANGLE_FAN,this.immediateMode.geometry.reset(),this},s.default.RendererGL.prototype.vertex=function(e,t){var r,i,n;r=i=n=0,3===arguments.length?r=arguments[2]:4===arguments.length?(i=arguments[2],n=arguments[3]):5===arguments.length&&(r=arguments[2],i=arguments[3],n=arguments[4]);var o=new s.default.Vector(e,t,r);this.immediateMode.geometry.vertices.push(o);var a=this.curFillColor||[.5,.5,.5,1];return this.immediateMode.geometry.vertexColors.push(a[0],a[1],a[2],a[3]),this.textureMode===l.IMAGE&&(null!==this._tex?0<this._tex.width&&0<this._tex.height&&(i/=this._tex.width,n/=this._tex.height):null===this._tex&&4<=arguments.length&&console.warn(\"You must first call texture() before using vertex() with image based u and v coordinates\")),this.immediateMode.geometry.uvs.push(i,n),this.immediateMode._bezierVertex[0]=e,this.immediateMode._bezierVertex[1]=t,this.immediateMode._bezierVertex[2]=r,this.immediateMode._quadraticVertex[0]=e,this.immediateMode._quadraticVertex[1]=t,this.immediateMode._quadraticVertex[2]=r,this},s.default.RendererGL.prototype.endShape=function(e,t,r,i,n,o){return this.immediateMode.shapeMode===l.POINTS?this._drawPoints(this.immediateMode.geometry.vertices,this.immediateMode.buffers.point):(this._processVertices.apply(this,arguments),1<this.immediateMode.geometry.vertices.length&&this._drawImmediateFill(),1<this.immediateMode.geometry.lineVertices.length&&this._drawImmediateStroke(),this.isBezier=!1,this.isQuadratic=!1,this.isCurve=!1,this.immediateMode._bezierVertex.length=0,this.immediateMode._quadraticVertex.length=0,this.immediateMode._curveVertex.length=0),this},s.default.RendererGL.prototype._processVertices=function(e){if(0!==this.immediateMode.geometry.vertices.length){var t=this._doStroke&&this.drawMode!==l.TEXTURE,r=e===l.CLOSE;t&&(this.immediateMode.geometry.edges=this._calculateEdges(this.immediateMode.shapeMode,this.immediateMode.geometry.vertices,r),this.immediateMode.geometry._edgesToVertices());var i=this.immediateMode.shapeMode===l.TESS;(this.isBezier||this.isQuadratic||this.isCurve||i)&&this.immediateMode.shapeMode!==l.LINES&&this._tesselateShape()}},s.default.RendererGL.prototype._calculateEdges=function(e,t,r){var i=[],n=0;switch(e){case l.TRIANGLE_STRIP:for(n=0;n<t-2;n++)i.push([n,n+1]),i.push([n,n+2]);i.push([n,n+1]);break;case l.TRIANGLES:for(n=0;n<t.length-2;n+=3)i.push([n,n+1]),i.push([n+1,n+2]),i.push([n+2,n]);break;case l.LINES:for(n=0;n<t.length-1;n+=2)i.push([n,n+1]);break;default:for(n=0;n<t.length-1;n++)i.push([n,n+1])}return r&&i.push([t.length-1,0]),i},s.default.RendererGL.prototype._tesselateShape=function(){this.immediateMode.shapeMode=l.TRIANGLES;var e=[new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))],t=this._triangulate(e);this.immediateMode.geometry.vertices=[];for(var r=0,i=t.length;r<i;r+=3)this.vertex(t[r],t[r+1],t[r+2])},s.default.RendererGL.prototype._drawImmediateFill=function(){var e=this.GL,t=this._getImmediateFillShader();this._calculateNormals(this.immediateMode.geometry),this._setFillUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.fill[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this.immediateMode.shapeMode!==l.LINE_STRIP&&this.immediateMode.shapeMode!==l.LINES||(this.immediateMode.shapeMode=l.TRIANGLE_FAN),this._applyColorBlend(this.curFillColor),e.drawArrays(this.immediateMode.shapeMode,0,this.immediateMode.geometry.vertices.length),t.unbindShader()},s.default.RendererGL.prototype._drawImmediateStroke=function(){var e=this.GL,t=this._getImmediateStrokeShader();this._setStrokeUniforms(t);var r=!0,i=!1,n=void 0;try{for(var o,a=this.immediateMode.buffers.stroke[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){o.value._prepareBuffer(this.immediateMode.geometry,t)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}this._applyColorBlend(this.curStrokeColor),e.drawArrays(e.TRIANGLES,0,this.immediateMode.geometry.lineVertices.length),t.unbindShader()},s.default.RendererGL.prototype._calculateNormals=function(e){e.vertices.forEach(function(){e.vertexNormals.push(new s.default.Vector(0,0,1))})};var n=s.default.RendererGL;r.default=n},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RenderBuffer\":100}],102:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,a=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};e(\"./p5.RendererGL\"),e(\"./p5.RenderBuffer\");var n=0;a.default.RendererGL.prototype._initBufferDefaults=function(e){if(this._freeBuffers(e),1e3<++n){var t=Object.keys(this.retainedMode.geometry)[0];delete this.retainedMode.geometry[t],n--}return this.retainedMode.geometry[e]={}},a.default.RendererGL.prototype._freeBuffers=function(e){var s=this.retainedMode.geometry[e];if(s){delete this.retainedMode.geometry[e],n--;var l=this.GL;s.indexBuffer&&l.deleteBuffer(s.indexBuffer),t(this.retainedMode.buffers.stroke),t(this.retainedMode.buffers.fill)}function t(e){var t=!0,r=!1,i=void 0;try{for(var n,o=e[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value;s[a.dst]&&(l.deleteBuffer(s[a.dst]),s[a.dst]=null)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}}},a.default.RendererGL.prototype.createBuffers=function(e,t){var r=this.GL,i=this._initBufferDefaults(e);i.model=t;var n=i.indexBuffer;if(t.faces.length){n=n||(i.indexBuffer=r.createBuffer());var o=a.default.RendererGL.prototype._flatten(t.faces);this._bindBuffer(n,r.ELEMENT_ARRAY_BUFFER,o,Uint16Array),i.vertexCount=3*t.faces.length}else n&&(r.deleteBuffer(n),i.indexBuffer=null),i.vertexCount=t.vertices?t.vertices.length:0;return i.lineVertexCount=t.lineVertices?t.lineVertices.length:0,i},a.default.RendererGL.prototype.drawBuffers=function(e){var t=this.GL,r=this.retainedMode.geometry[e];if(this._doStroke&&0<r.lineVertexCount){var i=this._getRetainedStrokeShader();this._setStrokeUniforms(i);var n=!0,o=!1,a=void 0;try{for(var s,l=this.retainedMode.buffers.stroke[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){s.value._prepareBuffer(r,i)}}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}this._applyColorBlend(this.curStrokeColor),this._drawArrays(t.TRIANGLES,e),i.unbindShader()}if(this._doFill){var u=this._getRetainedFillShader();this._setFillUniforms(u);var h=!0,c=!1,f=void 0;try{for(var d,p=this.retainedMode.buffers.fill[Symbol.iterator]();!(h=(d=p.next()).done);h=!0){d.value._prepareBuffer(r,u)}}catch(e){c=!0,f=e}finally{try{h||null==p.return||p.return()}finally{if(c)throw f}}r.indexBuffer&&this._bindBuffer(r.indexBuffer,t.ELEMENT_ARRAY_BUFFER),this._applyColorBlend(this.curFillColor),this._drawElements(t.TRIANGLES,e),u.unbindShader()}return this},a.default.RendererGL.prototype.drawBuffersScaled=function(e,t,r,i){var n=this.uMVMatrix.copy();try{this.uMVMatrix.scale(t,r,i),this.drawBuffers(e)}finally{this.uMVMatrix=n}},a.default.RendererGL.prototype._drawArrays=function(e,t){return this.GL.drawArrays(e,0,this.retainedMode.geometry[t].lineVertexCount),this},a.default.RendererGL.prototype._drawElements=function(e,t){var r=this.retainedMode.geometry[t],i=this.GL;r.indexBuffer?i.drawElements(i.TRIANGLES,r.vertexCount,i.UNSIGNED_SHORT,0):i.drawArrays(e||i.TRIANGLES,0,r.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(e,t){var r=this.GL,i=this._getImmediatePointShader();this._setPointUniforms(i),this._bindBuffer(t,r.ARRAY_BUFFER,this._vToNArray(e),Float32Array,r.STATIC_DRAW),i.enableAttrib(i.attributes.aPosition,3),r.drawArrays(r.Points,0,e.length),i.unbindShader()};var o=a.default.RendererGL;r.default=o},{\"../core/main\":49,\"./p5.RenderBuffer\":100,\"./p5.RendererGL\":103}],103:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var u=n(e(\"../core/main\")),o=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\")),i=n(e(\"libtess\"));e(\"./p5.Shader\"),e(\"./p5.Camera\"),e(\"../core/p5.Renderer\"),e(\"./p5.Matrix\");e(\"path\");function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||\"[object Arguments]\"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance\")}()}var h=\"precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n\",c={immediateVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n\",vertexColorVert:\"attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n\",vertexColorFrag:\"precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}\",normalVert:\"attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n\",normalFrag:\"precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}\",basicFrag:\"precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}\",lightVert:h+\"// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",lightTextureFrag:\"precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}\",phongVert:\"precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n\",phongFrag:h+\"// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}\",fontVert:\"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",fontFrag:\"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",lineVert:\"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",lineFrag:\"precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}\",pointVert:\"attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}\",pointFrag:\"precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}\"};u.default.RendererGL=function(e,t,r,i){return u.default.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=o.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=o.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension(\"EXT_blend_minmax\"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new u.default.Matrix,this.uPMatrix=new u.default.Matrix,this.uNMatrix=new u.default.Matrix(\"mat3\"),this._curCamera=new u.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aMaterialColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],text:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)]}},this.immediateMode={geometry:new u.default.Geometry,shapeMode:o.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new u.default.RenderBuffer(3,\"vertices\",\"vertexBuffer\",\"aPosition\",this,this._vToNArray),new u.default.RenderBuffer(3,\"vertexNormals\",\"normalBuffer\",\"aNormal\",this,this._vToNArray),new u.default.RenderBuffer(4,\"vertexColors\",\"colorBuffer\",\"aVertexColor\",this),new u.default.RenderBuffer(3,\"vertexAmbients\",\"ambientBuffer\",\"aAmbientColor\",this),new u.default.RenderBuffer(2,\"uvs\",\"uvBuffer\",\"aTexCoord\",this,this._flatten)],stroke:[new u.default.RenderBuffer(3,\"lineVertices\",\"lineVertexBuffer\",\"aPosition\",this,this._flatten),new u.default.RenderBuffer(4,\"lineNormals\",\"lineNormalBuffer\",\"aDirection\",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},u.default.RendererGL.prototype=Object.create(u.default.Renderer.prototype),u.default.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes(\"safari\"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},u.default.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext(\"webgl\",this._pInst._glAttributes)||this.canvas.getContext(\"experimental-webgl\",this._pInst._glAttributes),null===this.drawingContext)throw new Error(\"Error creating webgl context\");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},u.default.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof u.default.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement(\"canvas\"),(a._pInst._userNode||document.body).appendChild(a.canvas),u.default.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement(\"canvas\")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var l=new u.default.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty(\"_renderer\",l),l.resize(r,i),l._applyDefaults(),o||this._pInst._elements.push(l),\"function\"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},u.default.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(i))return void console.error(\"Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()\");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log(\"You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.\")},u.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.background=function(){var e,t=(e=this._pInst).color.apply(e,arguments),r=t.levels[0]/255,i=t.levels[1]/255,n=t.levels[2]/255,o=t.levels[3]/255;this.GL.clearColor(r,i,n,o),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},u.default.RendererGL.prototype.fill=function(e,t,r,i){var n=u.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},u.default.RendererGL.prototype.stroke=function(e,t,r,i){arguments[3]=255;var n=u.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},u.default.RendererGL.prototype.strokeCap=function(e){console.error(\"Sorry, strokeCap() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.strokeJoin=function(e){console.error(\"Sorry, strokeJoin() is not yet implemented in WEBGL mode\")},u.default.RendererGL.prototype.filter=function(e){console.error(\"filter() does not work in WEBGL mode\")},u.default.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY||e===o.REMOVE?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn(\"BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.\")},u.default.RendererGL.prototype.erase=function(e,t){this._isErasing||(this._cachedBlendMode=this.curBlendMode,this.blendMode(o.REMOVE),this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,e/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,t/255],this._isErasing=!0)},u.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode),this._isErasing=!1)},u.default.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},u.default.RendererGL.prototype._getPixel=function(e,t){var r;return r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),[r[0],r[1],r[2],r[3]]},u.default.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(!0===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty(\"pixels\",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log(\"loadPixels only works in WebGL when preserveDrawingBuffer is true.\")},u.default.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.retainedMode.geometry[e]},u.default.RendererGL.prototype.resize=function(e,t){u.default.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;void 0!==r.pixels&&r._setProperty(\"pixels\",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},u.default.RendererGL.prototype.clear=function(){var e=(arguments.length<=0?void 0:arguments[0])||0,t=(arguments.length<=1?void 0:arguments[1])||0,r=(arguments.length<=2?void 0:arguments[2])||0,i=(arguments.length<=3?void 0:arguments[3])||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},u.default.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?u.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},u.default.RendererGL.prototype.translate=function(e,t,r){return e instanceof u.default.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},u.default.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},u.default.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(u.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},u.default.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},u.default.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},u.default.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},u.default.RendererGL.prototype.push=function(){var e=u.default.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.specularColors=this.specularColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),t.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),t.pointLightSpecularColors=this.pointLightSpecularColors.slice(),t.spotLightPositions=this.spotLightPositions.slice(),t.spotLightDirections=this.spotLightDirections.slice(),t.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),t.spotLightSpecularColors=this.spotLightSpecularColors.slice(),t.spotLightAngle=this.spotLightAngle.slice(),t.spotLightConc=this.spotLightConc.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useEmissiveMaterial=this._useEmissiveMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},u.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=u.default.Matrix.identity(this._pInst),this},u.default.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},u.default.RendererGL.prototype._getRetainedStrokeShader=u.default.RendererGL.prototype._getImmediateStrokeShader,u.default.RendererGL.prototype._getImmediateFillShader=function(){var e=this.userFillShader;if(this._useNormalMaterial&&(!e||!e.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},u.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},u.default.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},u.default.RendererGL.prototype._getRetainedLineShader=u.default.RendererGL.prototype._getImmediateLineShader,u.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new u.default.Shader(this,c.phongVert,c.phongFrag):this._defaultLightShader=new u.default.Shader(this,c.lightVert,c.lightTextureFrag)),this._defaultLightShader},u.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new u.default.Shader(this,c.immediateVert,c.vertexColorFrag)),this._defaultImmediateModeShader},u.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new u.default.Shader(this,c.normalVert,c.normalFrag)),this._defaultNormalShader},u.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new u.default.Shader(this,c.normalVert,c.basicFrag)),this._defaultColorShader},u.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new u.default.Shader(this,c.pointVert,c.pointFrag)),this._defaultPointShader},u.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new u.default.Shader(this,c.lineVert,c.lineFrag)),this._defaultLineShader},u.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension(\"OES_standard_derivatives\"),this._defaultFontShader=new u.default.Shader(this,c.fontVert,c.fontFrag)),this._defaultFontShader},u.default.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new u.default.Image(1,1);e.set(0,0,255),this._emptyTexture=new u.default.Texture(this,e)}return this._emptyTexture},u.default.RendererGL.prototype.getTexture=function(e){var t=this.textures,r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;if(s.src===e)return s}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}var l=new u.default.Texture(this,e);return t.push(l),l},u.default.RendererGL.prototype._setStrokeUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uStrokeWeight\",this.curStrokeWeight)},u.default.RendererGL.prototype._setFillUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curFillColor),e.setUniform(\"isTexture\",!!this._tex),this._tex&&e.setUniform(\"uSampler\",this._tex),e.setUniform(\"uTint\",this._tint),e.setUniform(\"uSpecular\",this._useSpecularMaterial),e.setUniform(\"uEmissive\",this._useEmissiveMaterial),e.setUniform(\"uShininess\",this._useShininess),e.setUniform(\"uUseLighting\",this._enableLighting);var t=this.pointLightDiffuseColors.length/3;e.setUniform(\"uPointLightCount\",t),e.setUniform(\"uPointLightLocation\",this.pointLightPositions),e.setUniform(\"uPointLightDiffuseColors\",this.pointLightDiffuseColors),e.setUniform(\"uPointLightSpecularColors\",this.pointLightSpecularColors);var r=this.directionalLightDiffuseColors.length/3;e.setUniform(\"uDirectionalLightCount\",r),e.setUniform(\"uLightingDirection\",this.directionalLightDirections),e.setUniform(\"uDirectionalDiffuseColors\",this.directionalLightDiffuseColors),e.setUniform(\"uDirectionalSpecularColors\",this.directionalLightSpecularColors);var i=this.ambientLightColors.length/3;e.setUniform(\"uAmbientLightCount\",i),e.setUniform(\"uAmbientColor\",this.ambientLightColors);var n=this.spotLightDiffuseColors.length/3;e.setUniform(\"uSpotLightCount\",n),e.setUniform(\"uSpotLightAngle\",this.spotLightAngle),e.setUniform(\"uSpotLightConc\",this.spotLightConc),e.setUniform(\"uSpotLightDiffuseColors\",this.spotLightDiffuseColors),e.setUniform(\"uSpotLightSpecularColors\",this.spotLightSpecularColors),e.setUniform(\"uSpotLightLocation\",this.spotLightPositions),e.setUniform(\"uSpotLightDirection\",this.spotLightDirections),e.setUniform(\"uConstantAttenuation\",this.constantAttenuation),e.setUniform(\"uLinearAttenuation\",this.linearAttenuation),e.setUniform(\"uQuadraticAttenuation\",this.quadraticAttenuation),e.bindTextures()},u.default.RendererGL.prototype._setPointUniforms=function(e){e.bindShader(),e.setUniform(\"uMaterialColor\",this.curStrokeColor),e.setUniform(\"uPointSize\",this.pointSize)},u.default.RendererGL.prototype._bindBuffer=function(e,t,r,i,n){if(t=t||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(t,e),void 0!==r){var o=new(i||Float32Array)(r);this.GL.bufferData(t,o,n||this.GL.STATIC_DRAW)}},u.default.RendererGL.prototype._arraysEqual=function(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0},u.default.RendererGL.prototype._isTypedArray=function(e){return Float32Array,Float64Array,Int16Array,Uint16Array,e instanceof Uint32Array},u.default.RendererGL.prototype._flatten=function(e){if(0===e.length)return[];if(2e4<e.length){var t,r=Object.prototype.toString,i=[],n=e.slice();for(t=n.pop();\"[object Array]\"===r.call(t)?n.push.apply(n,l(t)):i.push(t),n.length&&void 0!==(t=n.pop()););return i.reverse(),i}var o;return(o=[]).concat.apply(o,l(e))},u.default.RendererGL.prototype._vToNArray=function(e){var t=[],r=!0,i=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=o.value;t.push(s.x,s.y,s.z)}}catch(e){i=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw n}}return t},u.default.prototype._assert3d=function(e){if(!this._renderer.isP3D)throw new Error(\"\".concat(e,\"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"))},u.default.RendererGL.prototype._initTessy=function(){var e=new i.default.GluTesselator;return e.gluTessCallback(i.default.gluEnum.GLU_TESS_VERTEX_DATA,function(e,t){t[t.length]=e[0],t[t.length]=e[1],t[t.length]=e[2]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_BEGIN,function(e){e!==i.default.primitiveType.GL_TRIANGLES&&console.log(\"expected TRIANGLES but got type: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_ERROR,function(e){console.log(\"error callback\"),console.log(\"error number: \".concat(e))}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_COMBINE,function(e,t,r){return[e[0],e[1],e[2]]}),e.gluTessCallback(i.default.gluEnum.GLU_TESS_EDGE_FLAG,function(e){}),e},u.default.RendererGL.prototype._triangulate=function(e){this._tessy.gluTessNormal(0,0,1);var t=[];this._tessy.gluTessBeginPolygon(t);for(var r=0;r<e.length;r++){this._tessy.gluTessBeginContour();for(var i=e[r],n=0;n<i.length;n+=3){var o=[i[n],i[n+1],i[n+2]];this._tessy.gluTessVertex(o,o)}this._tessy.gluTessEndContour()}return this._tessy.gluTessEndPolygon(),t},u.default.RendererGL.prototype._bezierCoefficients=function(e){var t=e*e,r=1-e,i=r*r;return[i*r,3*i*e,3*r*t,t*e]},u.default.RendererGL.prototype._quadraticCoefficients=function(e){var t=1-e;return[t*t,2*t*e,e*e]},u.default.RendererGL.prototype._bezierToCatmull=function(e){return[e[1],e[1]+(e[2]-e[0])/this._curveTightness,e[2]-(e[3]-e[1])/this._curveTightness,e[2]]};var f=u.default.RendererGL;r.default=f},{\"../core/constants\":42,\"../core/main\":49,\"../core/p5.Renderer\":52,\"./p5.Camera\":97,\"./p5.Matrix\":99,\"./p5.Shader\":104,libtess:31,path:34}],104:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i};n.default.Shader=function(e,t,r){this._renderer=e,this._vertSrc=t,this._fragSrc=r,this._vertShader=-1,this._fragShader=-1,this._glProgram=0,this._loadedAttributes=!1,this.attributes={},this._loadedUniforms=!1,this.uniforms={},this._bound=!1,this.samplers=[]},n.default.Shader.prototype.init=function(){if(0===this._glProgram){var e=this._renderer.GL;if(this._vertShader=e.createShader(e.VERTEX_SHADER),e.shaderSource(this._vertShader,this._vertSrc),e.compileShader(this._vertShader),!e.getShaderParameter(this._vertShader,e.COMPILE_STATUS))return console.error(\"Yikes! An error occurred compiling the vertex shader:\".concat(e.getShaderInfoLog(this._vertShader))),null;if(this._fragShader=e.createShader(e.FRAGMENT_SHADER),e.shaderSource(this._fragShader,this._fragSrc),e.compileShader(this._fragShader),!e.getShaderParameter(this._fragShader,e.COMPILE_STATUS))return console.error(\"Darn! An error occurred compiling the fragment shader:\".concat(e.getShaderInfoLog(this._fragShader))),null;this._glProgram=e.createProgram(),e.attachShader(this._glProgram,this._vertShader),e.attachShader(this._glProgram,this._fragShader),e.linkProgram(this._glProgram),e.getProgramParameter(this._glProgram,e.LINK_STATUS)||console.error(\"Snap! Error linking shader program: \".concat(e.getProgramInfoLog(this._glProgram))),this._loadAttributes(),this._loadUniforms()}return this},n.default.Shader.prototype._loadAttributes=function(){if(!this._loadedAttributes){this.attributes={};for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_ATTRIBUTES),r=0;r<t;++r){var i=e.getActiveAttrib(this._glProgram,r),n=i.name,o=e.getAttribLocation(this._glProgram,n),a={};a.name=n,a.location=o,a.index=r,a.type=i.type,a.size=i.size,this.attributes[n]=a}this._loadedAttributes=!0}},n.default.Shader.prototype._loadUniforms=function(){if(!this._loadedUniforms){for(var e=this._renderer.GL,t=e.getProgramParameter(this._glProgram,e.ACTIVE_UNIFORMS),r=0,i=0;i<t;++i){var n=e.getActiveUniform(this._glProgram,i),o={};o.location=e.getUniformLocation(this._glProgram,n.name),o.size=n.size;var a=n.name;1<n.size&&(a=a.substring(0,a.indexOf(\"[0]\"))),o.name=a,o.type=n.type,o._cachedData=void 0,o.type===e.SAMPLER_2D&&(o.samplerIndex=r,r++,this.samplers.push(o)),o.isArray=o.type===e.FLOAT_MAT3||o.type===e.FLOAT_MAT4||o.type===e.INT_VEC2||o.type===e.INT_VEC3||o.type===e.INT_VEC4,this.uniforms[a]=o}this._loadedUniforms=!0}},n.default.Shader.prototype.compile=function(){},n.default.Shader.prototype.bindShader=function(){this.init(),this._bound||(this.useProgram(),this._bound=!0,this._setMatrixUniforms(),this.setUniform(\"uViewport\",this._renderer._viewport))},n.default.Shader.prototype.unbindShader=function(){return this._bound&&(this.unbindTextures(),this._bound=!1),this},n.default.Shader.prototype.bindTextures=function(){var e=this._renderer.GL,t=!0,r=!1,i=void 0;try{for(var n,o=this.samplers[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var a=n.value,s=a.texture;void 0===s&&(s=this._renderer._getEmptyTexture()),e.activeTexture(e.TEXTURE0+a.samplerIndex),s.bindTexture(),s.update(),e.uniform1i(a.location,a.samplerIndex)}}catch(e){r=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw i}}},n.default.Shader.prototype.updateTextures=function(){var e=!0,t=!1,r=void 0;try{for(var i,n=this.samplers[Symbol.iterator]();!(e=(i=n.next()).done);e=!0){var o=i.value.texture;o&&o.update()}}catch(e){t=!0,r=e}finally{try{e||null==n.return||n.return()}finally{if(t)throw r}}},n.default.Shader.prototype.unbindTextures=function(){},n.default.Shader.prototype._setMatrixUniforms=function(){this.setUniform(\"uProjectionMatrix\",this._renderer.uPMatrix.mat4),this.isStrokeShader()&&(\"default\"===this._renderer._curCamera.cameraType?this.setUniform(\"uPerspective\",1):this.setUniform(\"uPerspective\",0)),this.setUniform(\"uModelViewMatrix\",this._renderer.uMVMatrix.mat4),this.setUniform(\"uViewMatrix\",this._renderer._curCamera.cameraMatrix.mat4),this.uniforms.uNormalMatrix&&(this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix),this.setUniform(\"uNormalMatrix\",this._renderer.uNMatrix.mat3))},n.default.Shader.prototype.useProgram=function(){var e=this._renderer.GL;return this._renderer._curShader!==this&&(e.useProgram(this._glProgram),this._renderer._curShader=this),this},n.default.Shader.prototype.setUniform=function(e,t){var r=this.uniforms[e];if(r){var i=this._renderer.GL;if(r.isArray){if(r._cachedData&&this._renderer._arraysEqual(r._cachedData,t))return;r._cachedData=t.slice(0)}else{if(r._cachedData&&r._cachedData===t)return;r._cachedData=t}var n=r.location;switch(this.useProgram(),r.type){case i.BOOL:!0===t?i.uniform1i(n,1):i.uniform1i(n,0);break;case i.INT:1<r.size?t.length&&i.uniform1iv(n,t):i.uniform1i(n,t);break;case i.FLOAT:1<r.size?t.length&&i.uniform1fv(n,t):i.uniform1f(n,t);break;case i.FLOAT_MAT3:i.uniformMatrix3fv(n,!1,t);break;case i.FLOAT_MAT4:i.uniformMatrix4fv(n,!1,t);break;case i.FLOAT_VEC2:1<r.size?t.length&&i.uniform2fv(n,t):i.uniform2f(n,t[0],t[1]);break;case i.FLOAT_VEC3:1<r.size?t.length&&i.uniform3fv(n,t):i.uniform3f(n,t[0],t[1],t[2]);break;case i.FLOAT_VEC4:1<r.size?t.length&&i.uniform4fv(n,t):i.uniform4f(n,t[0],t[1],t[2],t[3]);break;case i.INT_VEC2:1<r.size?t.length&&i.uniform2iv(n,t):i.uniform2i(n,t[0],t[1]);break;case i.INT_VEC3:1<r.size?t.length&&i.uniform3iv(n,t):i.uniform3i(n,t[0],t[1],t[2]);break;case i.INT_VEC4:1<r.size?t.length&&i.uniform4iv(n,t):i.uniform4i(n,t[0],t[1],t[2],t[3]);break;case i.SAMPLER_2D:i.activeTexture(i.TEXTURE0+r.samplerIndex),r.texture=this._renderer.getTexture(t),i.uniform1i(r.location,r.samplerIndex)}return this}},n.default.Shader.prototype.isLightShader=function(){return void 0!==this.attributes.aNormal||void 0!==this.uniforms.uUseLighting||void 0!==this.uniforms.uAmbientLightCount||void 0!==this.uniforms.uDirectionalLightCount||void 0!==this.uniforms.uPointLightCount||void 0!==this.uniforms.uAmbientColor||void 0!==this.uniforms.uDirectionalDiffuseColors||void 0!==this.uniforms.uDirectionalSpecularColors||void 0!==this.uniforms.uPointLightLocation||void 0!==this.uniforms.uPointLightDiffuseColors||void 0!==this.uniforms.uPointLightSpecularColors||void 0!==this.uniforms.uLightingDirection||void 0!==this.uniforms.uSpecular},n.default.Shader.prototype.isNormalShader=function(){return void 0!==this.attributes.aNormal},n.default.Shader.prototype.isTextureShader=function(){return 0<this.samplerIndex},n.default.Shader.prototype.isColorShader=function(){return void 0!==this.attributes.aVertexColor||void 0!==this.uniforms.uMaterialColor},n.default.Shader.prototype.isTexLightShader=function(){return this.isLightShader()&&this.isTextureShader()},n.default.Shader.prototype.isStrokeShader=function(){return void 0!==this.uniforms.uStrokeWeight},n.default.Shader.prototype.enableAttrib=function(e,t,r,i,n,o){if(e){0;var a=e.location;if(-1!==a){var s=this._renderer.GL;e.enabled||(s.enableVertexAttribArray(a),e.enabled=!0),this._renderer.GL.vertexAttribPointer(a,t,r||s.FLOAT,i||!1,n||0,o||0)}}return this};var o=n.default.Shader;r.default=o},{\"../core/main\":49}],105:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i,n=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},s=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function l(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}n.default.Texture=function(e,t){this._renderer=e;var r=this._renderer.GL;this.src=t,this.glTex=void 0,this.glTarget=r.TEXTURE_2D,this.glFormat=r.RGBA,this.mipmaps=!1,this.glMinFilter=r.LINEAR,this.glMagFilter=r.LINEAR,this.glWrapS=r.CLAMP_TO_EDGE,this.glWrapT=r.CLAMP_TO_EDGE,this.isSrcMediaElement=void 0!==n.default.MediaElement&&t instanceof n.default.MediaElement,this._videoPrevUpdateTime=0,this.isSrcHTMLElement=void 0!==n.default.Element&&t instanceof n.default.Element&&!(t instanceof n.default.Graphics),this.isSrcP5Image=t instanceof n.default.Image,this.isSrcP5Graphics=t instanceof n.default.Graphics,this.isImageData=\"undefined\"!=typeof ImageData&&t instanceof ImageData;var i=this._getTextureDataFromSource();return this.width=i.width,this.height=i.height,this.init(i),this},n.default.Texture.prototype._getTextureDataFromSource=function(){var e;return this.isSrcP5Image?e=this.src.canvas:this.isSrcMediaElement||this.isSrcP5Graphics||this.isSrcHTMLElement?e=this.src.elt:this.isImageData&&(e=this.src),e},n.default.Texture.prototype.init=function(e){var t=this._renderer.GL;if(this.glTex=t.createTexture(),this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.bindTexture(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.glMagFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.glMinFilter),0===this.width||0===this.height||this.isSrcMediaElement&&!this.src.loadedmetadata){var r=new Uint8Array([1,1,1,1]);t.texImage2D(this.glTarget,0,t.RGBA,1,1,0,this.glFormat,t.UNSIGNED_BYTE,r)}else t.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,t.UNSIGNED_BYTE,e)},n.default.Texture.prototype.update=function(){var e=this.src;if(0===e.width||0===e.height)return!1;var t=this._getTextureDataFromSource(),r=!1,i=this._renderer.GL;return t.width!==this.width||t.height!==this.height?(r=!0,this.width=t.width,this.height=t.height,this.isSrcP5Image?e.setModified(!1):(this.isSrcMediaElement||this.isSrcHTMLElement)&&e.setModified(!0)):this.isSrcP5Image?e.isModified()&&(r=!0,e.setModified(!1)):this.isSrcMediaElement?e.isModified()?(r=!0,e.setModified(!1)):e.loadedmetadata&&this._videoPrevUpdateTime!==e.time()&&(this._videoPrevUpdateTime=e.time(),r=!0):this.isImageData?e._dirty&&(r=!(e._dirty=!1)):r=!0,r&&(this.bindTexture(),i.texImage2D(this.glTarget,0,this.glFormat,this.glFormat,i.UNSIGNED_BYTE,t)),r},n.default.Texture.prototype.bindTexture=function(){return this._renderer.GL.bindTexture(this.glTarget,this.glTex),this},n.default.Texture.prototype.unbindTexture=function(){this._renderer.GL.bindTexture(this.glTarget,null)},n.default.Texture.prototype.setInterpolation=function(e,t){var r=this._renderer.GL;e===s.NEAREST?this.glMinFilter=r.NEAREST:this.glMinFilter=r.LINEAR,t===s.NEAREST?this.glMagFilter=r.NEAREST:this.glMagFilter=r.LINEAR,this.bindTexture(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.glMinFilter),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,this.glMagFilter),this.unbindTexture()},n.default.Texture.prototype.setWrapMode=function(e,t){function r(e){return 0==(e&e-1)}var i=this._renderer.GL,n=r(this.width),o=r(this.height);e===s.REPEAT?n&&o?this.glWrapS=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):e===s.MIRROR?n&&o?this.glWrapS=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapS=i.CLAMP_TO_EDGE):this.glWrapS=i.CLAMP_TO_EDGE,t===s.REPEAT?n&&o?this.glWrapT=i.REPEAT:(console.warn(\"You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):t===s.MIRROR?n&&o?this.glWrapT=i.MIRRORED_REPEAT:(console.warn(\"You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead\"),this.glWrapT=i.CLAMP_TO_EDGE):this.glWrapT=i.CLAMP_TO_EDGE,this.bindTexture(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,this.glWrapS),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,this.glWrapT),this.unbindTexture()};var o=n.default.Texture;r.default=o},{\"../core/constants\":42,\"../core/main\":49}],106:[function(e,t,r){\"use strict\";function a(e){return(a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}var i,j=(i=e(\"../core/main\"))&&i.__esModule?i:{default:i},D=function(e){if(e&&e.__esModule)return e;if(null===e||\"object\"!==a(e)&&\"function\"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(e(\"../core/constants\"));function s(){if(\"function\"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}e(\"./p5.Shader\"),e(\"./p5.RendererGL.Retained\"),j.default.RendererGL.prototype._applyTextProperties=function(){},j.default.RendererGL.prototype.textWidth=function(e){return this._isOpenType()?this._textFont._textWidth(e,this._textSize):0};function n(e,t){this.width=e,this.height=t,this.infos=[],this.findImage=function(e){var t,r,i=this.width*this.height;if(i<e)throw new Error(\"font is too complex to render in 3D\");for(var n=this.infos.length-1;0<=n;--n){var o=this.infos[n];if(o.index+e<i){r=(t=o).imageData;break}}if(!t){try{r=new ImageData(this.width,this.height)}catch(e){var a=document.getElementsByTagName(\"canvas\")[0],s=!a;a||((a=document.createElement(\"canvas\")).style.display=\"none\",document.body.appendChild(a));var l=a.getContext(\"2d\");l&&(r=l.createImageData(this.width,this.height)),s&&document.body.removeChild(a)}t={index:0,imageData:r},this.infos.push(t)}var u=t.index;return t.index+=e,r._dirty=!0,{imageData:r,index:u}}}function V(e,t,r,i,n){var o=e.imageData.data,a=4*e.index++;o[a++]=t,o[a++]=r,o[a++]=i,o[a++]=n}function A(e){this.font=e,this.strokeImageInfos=new n(64,64),this.colDimImageInfos=new n(64,64),this.rowDimImageInfos=new n(64,64),this.colCellImageInfos=new n(64,64),this.rowCellImageInfos=new n(64,64),this.glyphInfos={},this.getGlyphInfo=function(e){var t=this.glyphInfos[e.index];if(t)return t;var r,i=e.getBoundingBox(),n=i.x1,o=i.y1,a=i.x2-n,s=i.y2-o,l=e.path.commands;if(0==a||0==s||!l.length)return this.glyphInfos[e.index]={};var u,h,c,f,d=[],p=[],m=[];for(r=8;0<=r;--r)m.push([]);for(r=8;0<=r;--r)p.push([]);function g(e,t,r){var i=d.length;function n(e,t,r){for(var i=e.length;0<i--;){var n=e[i];n<t&&(t=n),r<n&&(r=n)}return{min:t,max:r}}d.push(r);for(var o=n(e,1,0),a=Math.max(Math.floor(9*o.min),0),s=Math.min(Math.ceil(9*o.max),9),l=a;l<s;++l)m[l].push(i);for(var u=n(t,1,0),h=Math.max(Math.floor(9*u.min),0),c=Math.min(Math.ceil(9*u.max),9),f=h;f<c;++f)p[f].push(i)}function v(e){return(t=(i=255)*e)<(r=0)?r:i<t?i:t;var t,r,i}function w(e,t,r,i){this.p0=e,this.c0=t,this.c1=r,this.p1=i,this.toQuadratic=function(){return{x:this.p0.x,y:this.p0.y,x1:this.p1.x,y1:this.p1.y,cx:(3*(this.c0.x+this.c1.x)-(this.p0.x+this.p1.x))/4,cy:(3*(this.c0.y+this.c1.y)-(this.p0.y+this.p1.y))/4}},this.quadError=function(){return j.default.Vector.sub(j.default.Vector.sub(this.p1,this.p0),j.default.Vector.mult(j.default.Vector.sub(this.c1,this.c0),3)).mag()/2},this.split=function(e){var t=j.default.Vector.lerp(this.p0,this.c0,e),r=j.default.Vector.lerp(this.c0,this.c1,e),i=j.default.Vector.lerp(t,r,e);this.c1=j.default.Vector.lerp(this.c1,this.p1,e),this.c0=j.default.Vector.lerp(r,this.c1,e);var n=j.default.Vector.lerp(i,this.c0,e),o=new w(this.p0,t,i,n);return this.p0=n,o},this.splitInflections=function(){var e=j.default.Vector.sub(this.c0,this.p0),t=j.default.Vector.sub(j.default.Vector.sub(this.c1,this.c0),e),r=j.default.Vector.sub(j.default.Vector.sub(j.default.Vector.sub(this.p1,this.c1),e),j.default.Vector.mult(t,2)),i=[],n=t.x*r.y-t.y*r.x;if(0!==n){var o=e.x*r.y-e.y*r.x,a=e.x*t.y-e.y*t.x,s=o*o-4*n*a;if(0<=s){n<0&&(n=-n,o=-o,a=-a);var l=Math.sqrt(s),u=(-o-l)/(2*n),h=(-o+l)/(2*n);0<u&&u<1&&(i.push(this.split(u)),h=1-(1-h)/(1-u)),0<h&&h<1&&i.push(this.split(h))}}return i.push(this),i}}function y(e,t,r,i,n,o,a,s){var l=new w(new j.default.Vector(e,t),new j.default.Vector(r,i),new j.default.Vector(n,o),new j.default.Vector(a,s)).splitInflections(),u=[],h=30/z,c=!0,f=!1,d=void 0;try{for(var p,m=l[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){for(var g=p.value,v=[],y=void 0;!(.125<=(y=h/g.quadError()));){var b=Math.pow(y,1/3),_=g.split(b),x=g.split(1-b/(1-b));u.push(_),v.push(g),g=x}y<1&&u.push(g.split(.5)),u.push(g),Array.prototype.push.apply(u,v.reverse())}}catch(e){f=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(f)throw d}}return u}function b(e,t,r,i){g([e,r],[t,i],{x:e,y:t,cx:(e+r)/2,cy:(t+i)/2})}function _(e,t,r,i){return Math.abs(r-e)<1e-5&&Math.abs(i-t)<1e-5}var x=!0,S=!1,M=void 0;try{for(var E,T=l[Symbol.iterator]();!(x=(E=T.next()).done);x=!0){var C=E.value,P=(C.x-n)/a,L=(C.y-o)/s;if(!_(u,h,P,L)){switch(C.type){case\"M\":c=P,f=L;break;case\"L\":b(u,h,P,L);break;case\"Q\":var k=(C.x1-n)/a,R=(C.y1-o)/s;g([u,P,k],[h,L,R],{x:u,y:h,cx:k,cy:R});break;case\"Z\":_(u,h,c,f)?d.push({x:u,y:h}):(b(u,h,c,f),d.push({x:c,y:f}));break;case\"C\":for(var O=y(u,h,(C.x1-n)/a,(C.y1-o)/s,(C.x2-n)/a,(C.y2-o)/s,P,L),D=0;D<O.length;D++){var A=O[D].toQuadratic();g([A.x,A.x1,A.cx],[A.y,A.y1,A.cy],A)}break;default:throw new Error(\"unknown command type: \".concat(C.type))}u=P,h=L}}}catch(e){S=!0,M=e}finally{try{x||null==T.return||T.return()}finally{if(S)throw M}}for(var I=d.length,U=this.strokeImageInfos.findImage(I),N=U.index,F=0;F<I;++F){var B=d[F];V(U,v(B.x),v(B.y),v(B.cx),v(B.cy))}function G(e,t,r){for(var i=e.length,n=t.findImage(i),o=n.index,a=0,s=0;s<i;++s)a+=e[s].length;for(var l=r.findImage(a),u=0;u<i;++u){var h=e[u],c=h.length,f=l.index;V(n,f>>7,127&f,c>>7,127&c);for(var d=0;d<c;++d){var p=h[d]+N;V(l,p>>7,127&p,0,0)}}return{cellImageInfo:l,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:U,strokes:d,colInfo:G(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:G(p,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}}var z=Math.sqrt(3);j.default.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&\"string\"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log(\"WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported\"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=D.TEXTURE;var s=this._textFont.font,l=this._textFont._fontInfo;l=l||(this._textFont._fontInfo=new A(s));var u=this._textFont._handleAlignment(this,t,r,i),h=this._textSize/s.unitsPerEm;this.translate(u.x,u.y,0),this.scale(h,h,1);var c=this.GL,f=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),f&&(d.setUniform(\"uGridImageSize\",[64,64]),d.setUniform(\"uCellsImageSize\",[64,64]),d.setUniform(\"uStrokeImageSize\",[64,64]),d.setUniform(\"uGridSize\",[9,9])),this._applyColorBlend(this.curFillColor);var p=this.retainedMode.geometry.glyph;if(!p){var m=this._textGeom=new j.default.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new j.default.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),p=this.createBuffers(\"glyph\",m)}var g=!0,v=!1,y=void 0;try{for(var b,_=this.retainedMode.buffers.text[Symbol.iterator]();!(g=(b=_.next()).done);g=!0){b.value._prepareBuffer(p,d)}}catch(e){v=!0,y=e}finally{try{g||null==_.return||_.return()}finally{if(v)throw y}}this._bindBuffer(p.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform(\"uMaterialColor\",this.curFillColor);try{var x=0,w=null,S=s.stringToGlyphs(t),M=!0,E=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(M=(C=P.next()).done);M=!0){var L=C.value;w&&(x+=s.getKerningValue(w,L));var k=l.getGlyphInfo(L);if(k.uGlyphRect){var R=k.rowInfo,O=k.colInfo;d.setUniform(\"uSamplerStrokes\",k.strokeImageInfo.imageData),d.setUniform(\"uSamplerRowStrokes\",R.cellImageInfo.imageData),d.setUniform(\"uSamplerRows\",R.dimImageInfo.imageData),d.setUniform(\"uSamplerColStrokes\",O.cellImageInfo.imageData),d.setUniform(\"uSamplerCols\",O.dimImageInfo.imageData),d.setUniform(\"uGridOffset\",k.uGridOffset),d.setUniform(\"uGlyphRect\",k.uGlyphRect),d.setUniform(\"uGlyphOffset\",x),d.bindTextures(),c.drawElements(c.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)}x+=L.advanceWidth,w=L}}catch(e){E=!0,T=e}finally{try{M||null==P.return||P.return()}finally{if(E)throw T}}}finally{d.unbindShader(),this._doStroke=o,this.drawMode=a,e.pop()}return e}}else console.log(\"WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.\")}},{\"../core/constants\":42,\"../core/main\":49,\"./p5.RendererGL.Retained\":102,\"./p5.Shader\":104}],107:[function(e,t,r){t.exports={fes:{autoplay:\"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",fileLoadError:{bytes:\"It looks like there was a problem loading your file. {{suggestion}}\",font:\"It looks like there was a problem loading your font. {{suggestion}}\",gif:\"There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.\",image:\"It looks like there was a problem loading your image. {{suggestion}}\",json:\"It looks like there was a problem loading your JSON file. {{suggestion}}\",large:\"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",strings:\"It looks like there was a problem loading your text file. {{suggestion}}\",suggestion:\"Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})\",table:\"It looks like there was a problem loading your table file. {{suggestion}}\",xml:\"It looks like there was a problem loading your XML file. {{suggestion}}\"},misusedTopLevel:\"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",pre:\"🌸 p5.js says: {{message}}\",welcome:\"Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.\"}}},{}],108:[function(e,t,r){t.exports={fes:{autoplay:\"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",fileLoadError:{bytes:\"\",font:\"\",gif:\"\",image:\"\",json:\"\",large:\"\",strings:\"\",suggestion:\"\",table:\"\",xml:\"\"},misusedTopLevel:\"\",pre:\"🌸 p5.js dice: {{message}}\",welcome:\"\"}}},{}],109:[function(e,t,r){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=void 0;var i=o(e(\"./en/translation\")),n=o(e(\"./es/translation\"));function o(e){return e&&e.__esModule?e:{default:e}}var a={en:{translation:i.default},es:{translation:n.default}};r.default=a},{\"./en/translation\":107,\"./es/translation\":108}]},{},[37])(37)});"
  },
  {
    "path": "docs/examples/transcrypt/sketch_010/target/org.transcrypt.__runtime__.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:18\nvar __name__ = 'org.transcrypt.__runtime__';\nexport var __envir__ = {};\n__envir__.interpreter_name = 'python';\n__envir__.transpiler_name = 'transcrypt';\n__envir__.executor_name = __envir__.transpiler_name;\n__envir__.transpiler_version = '3.9.0';\n\nexport function __nest__ (headObject, tailNames, value) {\n    var current = headObject;\n    if (tailNames != '') {\n        var tailChain = tailNames.split ('.');\n        var firstNewIndex = tailChain.length;\n        for (var index = 0; index < tailChain.length; index++) {\n            if (!current.hasOwnProperty (tailChain [index])) {\n                firstNewIndex = index;\n                break;\n            }\n            current = current [tailChain [index]];\n        }\n        for (var index = firstNewIndex; index < tailChain.length; index++) {\n            current [tailChain [index]] = {};\n            current = current [tailChain [index]];\n        }\n    }\n    for (let attrib of Object.getOwnPropertyNames (value)) {\n        Object.defineProperty (current, attrib, {\n            get () {return value [attrib];},\n            enumerable: true,\n            configurable: true\n        });\n    }\n};\nexport function __init__ (module) {\n    if (!module.__inited__) {\n        module.__all__.__init__ (module.__all__);\n        module.__inited__ = true;\n    }\n    return module.__all__;\n};\nexport function __get__ (aThis, func, quotedFuncName) {\n    if (aThis) {\n        if (aThis.hasOwnProperty ('__class__') || typeof aThis == 'string' || aThis instanceof String) {\n            if (quotedFuncName) {\n                Object.defineProperty (aThis, quotedFuncName, {\n                    value: function () {\n                        var args = [] .slice.apply (arguments);\n                        return func.apply (null, [aThis] .concat (args));\n                    },\n                    writable: true,\n                    enumerable: true,\n                    configurable: true\n                });\n            }\n            return function () {\n                var args = [] .slice.apply (arguments);\n                return func.apply (null, [aThis.__proxy__ ? aThis.__proxy__ : aThis] .concat (args));\n            };\n        }\n        else {\n            return func;\n        }\n    }\n    else {\n        return func;\n    }\n};\nexport function __getcm__ (aThis, func, quotedFuncName) {\n    if (aThis.hasOwnProperty ('__class__')) {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis.__class__] .concat (args));\n        };\n    }\n    else {\n        return function () {\n            var args = [] .slice.apply (arguments);\n            return func.apply (null, [aThis] .concat (args));\n        };\n    }\n};\nexport function __getsm__ (aThis, func, quotedFuncName) {\n    return func;\n};\nexport var py_metatype = {\n    __name__: 'type',\n    __bases__: [],\n    __new__: function (meta, name, bases, attribs) {\n        var cls = function () {\n            var args = [] .slice.apply (arguments);\n            return cls.__new__ (args);\n        };\n        for (var index = bases.length - 1; index >= 0; index--) {\n            var base = bases [index];\n            for (var attrib in base) {\n                var descrip = Object.getOwnPropertyDescriptor (base, attrib);\n                if (descrip == null) {\n                    continue;\n                }\n                Object.defineProperty (cls, attrib, descrip);\n            }\n            for (let symbol of Object.getOwnPropertySymbols (base)) {\n                let descrip = Object.getOwnPropertyDescriptor (base, symbol);\n                Object.defineProperty (cls, symbol, descrip);\n            }\n        }\n        cls.__metaclass__ = meta;\n        cls.__name__ = name.startsWith ('py_') ? name.slice (3) : name;\n        cls.__bases__ = bases;\n        for (var attrib in attribs) {\n            var descrip = Object.getOwnPropertyDescriptor (attribs, attrib);\n            Object.defineProperty (cls, attrib, descrip);\n        }\n        for (let symbol of Object.getOwnPropertySymbols (attribs)) {\n            let descrip = Object.getOwnPropertyDescriptor (attribs, symbol);\n            Object.defineProperty (cls, symbol, descrip);\n        }\n        return cls;\n    }\n};\npy_metatype.__metaclass__ = py_metatype;\nexport var object = {\n    __init__: function (self) {},\n    __metaclass__: py_metatype,\n    __name__: 'object',\n    __bases__: [],\n    __new__: function (args) {\n        var instance = Object.create (this, {__class__: {value: this, enumerable: true}});\n        if ('__getattr__' in this || '__setattr__' in this) {\n            instance.__proxy__ = new Proxy (instance, {\n                get: function (target, name) {\n                    let result = target [name];\n                    if (result == undefined) {\n                        return target.__getattr__ (name);\n                    }\n                    else {\n                        return result;\n                    }\n                },\n                set: function (target, name, value) {\n                    try {\n                        target.__setattr__ (name, value);\n                    }\n                    catch (exception) {\n                        target [name] = value;\n                    }\n                    return true;\n                }\n            })\n\t\t\tinstance = instance.__proxy__\n        }\n        this.__init__.apply (null, [instance] .concat (args));\n        return instance;\n    }\n};\nexport function __class__ (name, bases, attribs, meta) {\n    if (meta === undefined) {\n        meta = bases [0] .__metaclass__;\n    }\n    return meta.__new__ (meta, name, bases, attribs);\n};\nexport function __pragma__ () {};\nexport function __call__ (/* <callee>, <this>, <params>* */) {\n    var args = [] .slice.apply (arguments);\n    if (typeof args [0] == 'object' && '__call__' in args [0]) {\n        return args [0] .__call__ .apply (args [1], args.slice (2));\n    }\n    else {\n        return args [0] .apply (args [1], args.slice (2));\n    }\n};\n__envir__.executor_name = __envir__.transpiler_name;\nvar __main__ = {__file__: ''};\nvar __except__ = null;\nexport function __kwargtrans__ (anObject) {\n    anObject.__kwargtrans__ = null;\n    anObject.constructor = Object;\n    return anObject;\n}\nexport function __super__ (aClass, methodName) {\n    for (let base of aClass.__bases__) {\n        if (methodName in base) {\n           return base [methodName];\n        }\n    }\n    throw new Exception ('Superclass method not found');\n}\nexport function property (getter, setter) {\n    if (!setter) {\n        setter = function () {};\n    }\n    return {get: function () {return getter (this)}, set: function (value) {setter (this, value)}, enumerable: true};\n}\nexport function __setproperty__ (anObject, name, descriptor) {\n    if (!anObject.hasOwnProperty (name)) {\n        Object.defineProperty (anObject, name, descriptor);\n    }\n}\nexport function assert (condition, message) {\n    if (!condition) {\n        throw AssertionError (message, new Error ());\n    }\n}\nexport function __mergekwargtrans__ (object0, object1) {\n    var result = {};\n    for (var attrib in object0) {\n        result [attrib] = object0 [attrib];\n    }\n    for (var attrib in object1) {\n        result [attrib] = object1 [attrib];\n    }\n    return result;\n};\nexport function __mergefields__ (targetClass, sourceClass) {\n    let fieldNames = ['__reprfields__', '__comparefields__', '__initfields__']\n    if (sourceClass [fieldNames [0]]) {\n        if (targetClass [fieldNames [0]]) {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set ([...targetClass [fieldName], ...sourceClass [fieldName]]);\n            }\n        }\n        else {\n            for (let fieldName of fieldNames) {\n                targetClass [fieldName] = new Set (sourceClass [fieldName]);\n            }\n        }\n    }\n}\nexport function __withblock__ (manager, statements) {\n    if (hasattr (manager, '__enter__')) {\n        try {\n            manager.__enter__ ();\n            statements ();\n            manager.__exit__ ();\n        }\n        catch (exception) {\n            if (! (manager.__exit__ (exception.name, exception, exception.stack))) {\n                throw exception;\n            }\n        }\n    }\n    else {\n        statements ();\n        manager.close ();\n    }\n};\nexport function dir (obj) {\n    var aList = [];\n    for (var aKey in obj) {\n        aList.push (aKey.startsWith ('py_') ? aKey.slice (3) : aKey);\n    }\n    aList.sort ();\n    return aList;\n};\nexport function setattr (obj, name, value) {\n    obj [name] = value;\n};\nexport function getattr (obj, name) {\n    return name in obj ? obj [name] : obj ['py_' + name];\n};\nexport function hasattr (obj, name) {\n    try {\n        return name in obj || 'py_' + name in obj;\n    }\n    catch (exception) {\n        return false;\n    }\n};\nexport function delattr (obj, name) {\n    if (name in obj) {\n        delete obj [name];\n    }\n    else {\n        delete obj ['py_' + name];\n    }\n};\nexport function __in__ (element, container) {\n    if (container === undefined || container === null) {\n        return false;\n    }\n    if (container.__contains__ instanceof Function) {\n        return container.__contains__ (element);\n    }\n    else {\n        return (\n            container.indexOf ?\n            container.indexOf (element) > -1 :\n            container.hasOwnProperty (element)\n        );\n    }\n};\nexport function __specialattrib__ (attrib) {\n    return (attrib.startswith ('__') && attrib.endswith ('__')) || attrib == 'constructor' || attrib.startswith ('py_');\n};\nexport function len (anObject) {\n    if (anObject === undefined || anObject === null) {\n        return 0;\n    }\n    if (anObject.__len__ instanceof Function) {\n        return anObject.__len__ ();\n    }\n    if (anObject.length !== undefined) {\n        return anObject.length;\n    }\n    var length = 0;\n    for (var attr in anObject) {\n        if (!__specialattrib__ (attr)) {\n            length++;\n        }\n    }\n    return length;\n};\nexport function __i__ (any) {\n    return py_typeof (any) == dict ? any.py_keys () : any;\n}\nexport function __k__ (keyed, key) {\n    var result = keyed [key];\n    if (typeof result == 'undefined') {\n        if (keyed instanceof Array)\n            if (key == +key && key >= 0 && keyed.length > key)\n                return result;\n            else\n                throw IndexError (key, new Error());\n        else\n            throw KeyError (key, new Error());\n    }\n    return result;\n}\nexport function __t__ (target) {\n    return (\n        target === undefined || target === null ? false :\n        ['boolean', 'number'] .indexOf (typeof target) >= 0 ? target :\n        target.__bool__ instanceof Function ? (target.__bool__ () ? target : false) :\n        target.__len__ instanceof Function ?  (target.__len__ () !== 0 ? target : false) :\n        target instanceof Function ? target :\n        len (target) !== 0 ? target :\n        false\n    );\n}\nexport function float (any) {\n    if (any == 'inf') {\n        return Infinity;\n    }\n    else if (any == '-inf') {\n        return -Infinity;\n    }\n    else if (any == 'nan') {\n        return NaN;\n    }\n    else if (isNaN (parseFloat (any))) {\n        if (any === false) {\n            return 0;\n        }\n        else if (any === true) {\n            return 1;\n        }\n        else {\n            throw ValueError (\"could not convert string to float: '\" + str(any) + \"'\", new Error ());\n        }\n    }\n    else {\n        return +any;\n    }\n};\nfloat.__name__ = 'float';\nfloat.__bases__ = [object];\nexport function int (any) {\n    return float (any) | 0\n};\nint.__name__ = 'int';\nint.__bases__ = [object];\nexport function bool (any) {\n    return !!__t__ (any);\n};\nbool.__name__ = 'bool';\nbool.__bases__ = [int];\nexport function py_typeof (anObject) {\n    var aType = typeof anObject;\n    if (aType == 'object') {\n        try {\n            return '__class__' in anObject ? anObject.__class__ : object;\n        }\n        catch (exception) {\n            return aType;\n        }\n    }\n    else {\n        return (\n            aType == 'boolean' ? bool :\n            aType == 'string' ? str :\n            aType == 'number' ? (anObject % 1 == 0 ? int : float) :\n            null\n        );\n    }\n};\nexport function issubclass (aClass, classinfo) {\n    if (classinfo instanceof Array) {\n        for (let aClass2 of classinfo) {\n            if (issubclass (aClass, aClass2)) {\n                return true;\n            }\n        }\n        return false;\n    }\n    try {\n        var aClass2 = aClass;\n        if (aClass2 == classinfo) {\n            return true;\n        }\n        else {\n            var bases = [].slice.call (aClass2.__bases__);\n            while (bases.length) {\n                aClass2 = bases.shift ();\n                if (aClass2 == classinfo) {\n                    return true;\n                }\n                if (aClass2.__bases__.length) {\n                    bases = [].slice.call (aClass2.__bases__).concat (bases);\n                }\n            }\n            return false;\n        }\n    }\n    catch (exception) {\n        return aClass == classinfo || classinfo == object;\n    }\n};\nexport function isinstance (anObject, classinfo) {\n    try {\n        return '__class__' in anObject ? issubclass (anObject.__class__, classinfo) : issubclass (py_typeof (anObject), classinfo);\n    }\n    catch (exception) {\n        return issubclass (py_typeof (anObject), classinfo);\n    }\n};\nexport function callable (anObject) {\n    return anObject && typeof anObject == 'object' && '__call__' in anObject ? true : typeof anObject === 'function';\n};\nexport function repr (anObject) {\n    try {\n        return anObject.__repr__ ();\n    }\n    catch (exception) {\n        try {\n            return anObject.__str__ ();\n        }\n        catch (exception) {\n            try {\n                if (anObject == null) {\n                    return 'None';\n                }\n                else if (anObject.constructor == Object) {\n                    var result = '{';\n                    var comma = false;\n                    for (var attrib in anObject) {\n                        if (!__specialattrib__ (attrib)) {\n                            if (attrib.isnumeric ()) {\n                                var attribRepr = attrib;\n                            }\n                            else {\n                                var attribRepr = '\\'' + attrib + '\\'';\n                            }\n                            if (comma) {\n                                result += ', ';\n                            }\n                            else {\n                                comma = true;\n                            }\n                            result += attribRepr + ': ' + repr (anObject [attrib]);\n                        }\n                    }\n                    result += '}';\n                    return result;\n                }\n                else {\n                    return typeof anObject == 'boolean' ? anObject.toString () .capitalize () : anObject.toString ();\n                }\n            }\n            catch (exception) {\n                return '<object of type: ' + typeof anObject + '>';\n            }\n        }\n    }\n};\nexport function chr (charCode) {\n    return String.fromCharCode (charCode);\n};\nexport function ord (aChar) {\n    return aChar.charCodeAt (0);\n};\nexport function max (nrOrSeq) {\n    return arguments.length == 1 ? Math.max (...nrOrSeq) : Math.max (...arguments);\n};\nexport function min (nrOrSeq) {\n    return arguments.length == 1 ? Math.min (...nrOrSeq) : Math.min (...arguments);\n};\nexport var abs = Math.abs;\nexport function round (number, ndigits) {\n    if (ndigits) {\n        var scale = Math.pow (10, ndigits);\n        number *= scale;\n    }\n    var rounded = Math.round (number);\n    if (rounded - number == 0.5 && rounded % 2) {\n        rounded -= 1;\n    }\n    if (ndigits) {\n        rounded /= scale;\n    }\n    return rounded;\n};\nexport function __jsUsePyNext__ () {\n    try {\n        var result = this.__next__ ();\n        return {value: result, done: false};\n    }\n    catch (exception) {\n        return {value: undefined, done: true};\n    }\n}\nexport function __pyUseJsNext__ () {\n    var result = this.next ();\n    if (result.done) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result.value;\n    }\n}\nexport function py_iter (iterable) {\n    if (typeof iterable == 'string' || '__iter__' in iterable) {\n        var result = iterable.__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('selector' in iterable) {\n        var result = list (iterable) .__iter__ ();\n        result.next = __jsUsePyNext__;\n    }\n    else if ('next' in iterable) {\n        var result = iterable\n        if (! ('__next__' in result)) {\n            result.__next__ = __pyUseJsNext__;\n        }\n    }\n    else if (Symbol.iterator in iterable) {\n        var result = iterable [Symbol.iterator] ();\n        result.__next__ = __pyUseJsNext__;\n    }\n    else {\n        throw IterableError (new Error ());\n    }\n    result [Symbol.iterator] = function () {return result;};\n    return result;\n}\nexport function py_next (iterator) {\n    try {\n        var result = iterator.__next__ ();\n    }\n    catch (exception) {\n        var result = iterator.next ();\n        if (result.done) {\n            throw StopIteration (new Error ());\n        }\n        else {\n            return result.value;\n        }\n    }\n    if (result == undefined) {\n        throw StopIteration (new Error ());\n    }\n    else {\n        return result;\n    }\n}\nexport function __PyIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__PyIterator__.prototype.__next__ = function() {\n    if (this.index < this.iterable.length) {\n        return this.iterable [this.index++];\n    }\n    else {\n        throw StopIteration (new Error ());\n    }\n};\nexport function __JsIterator__ (iterable) {\n    this.iterable = iterable;\n    this.index = 0;\n}\n__JsIterator__.prototype.next = function () {\n    if (this.index < this.iterable.py_keys.length) {\n        return {value: this.index++, done: false};\n    }\n    else {\n        return {value: undefined, done: true};\n    }\n};\nexport function py_reversed (iterable) {\n    iterable = iterable.slice ();\n    iterable.reverse ();\n    return iterable;\n};\nexport function zip () {\n    var args = [] .slice.call (arguments);\n    for (var i = 0; i < args.length; i++) {\n        if (typeof args [i] == 'string') {\n            args [i] = args [i] .split ('');\n        }\n        else if (!Array.isArray (args [i])) {\n            args [i] = Array.from (args [i]);\n        }\n    }\n    var shortest = args.length == 0 ? [] : args.reduce (\n        function (array0, array1) {\n            return array0.length < array1.length ? array0 : array1;\n        }\n    );\n    return shortest.map (\n        function (current, index) {\n            return args.map (\n                function (current) {\n                    return current [index];\n                }\n            );\n        }\n    );\n};\nexport function range (start, stop, step) {\n    if (stop == undefined) {\n        stop = start;\n        start = 0;\n    }\n    if (step == undefined) {\n        step = 1;\n    }\n    if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) {\n        return [];\n    }\n    var result = [];\n    for (var i = start; step > 0 ? i < stop : i > stop; i += step) {\n        result.push(i);\n    }\n    return result;\n};\nexport function any (iterable) {\n    for (let item of iterable) {\n        if (bool (item)) {\n            return true;\n        }\n    }\n    return false;\n}\nexport function all (iterable) {\n    for (let item of iterable) {\n        if (! bool (item)) {\n            return false;\n        }\n    }\n    return true;\n}\nexport function sum (iterable) {\n    let result = 0;\n    for (let item of iterable) {\n        result += item;\n    }\n    return result;\n}\nexport function enumerate (iterable) {\n    return zip (range (len (iterable)), iterable);\n}\nexport function copy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = anObject [attrib];\n            }\n        }\n        return result;\n    }\n}\nexport function deepcopy (anObject) {\n    if (anObject == null || typeof anObject == \"object\") {\n        return anObject;\n    }\n    else {\n        var result = {};\n        for (var attrib in obj) {\n            if (anObject.hasOwnProperty (attrib)) {\n                result [attrib] = deepcopy (anObject [attrib]);\n            }\n        }\n        return result;\n    }\n}\nexport function list (iterable) {\n    let instance = iterable ? Array.from (iterable) : [];\n    return instance;\n}\nArray.prototype.__class__ = list;\nlist.__name__ = 'list';\nlist.__bases__ = [object];\nArray.prototype.__iter__ = function () {return new __PyIterator__ (this);};\nArray.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    else if (stop > this.length) {\n        stop = this.length;\n    }\n    if (step == 1) {\n        return Array.prototype.slice.call(this, start, stop);\n    }\n    let result = list ([]);\n    for (let index = start; index < stop; index += step) {\n        result.push (this [index]);\n    }\n    return result;\n};\nArray.prototype.__setslice__ = function (start, stop, step, source) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    if (step == null) {\n        Array.prototype.splice.apply (this, [start, stop - start] .concat (source));\n    }\n    else {\n        let sourceIndex = 0;\n        for (let targetIndex = start; targetIndex < stop; targetIndex += step) {\n            this [targetIndex] = source [sourceIndex++];\n        }\n    }\n};\nArray.prototype.__repr__ = function () {\n    if (this.__class__ == set && !this.length) {\n        return 'set()';\n    }\n    let result = !this.__class__ || this.__class__ == list ? '[' : this.__class__ == tuple ? '(' : '{';\n    for (let index = 0; index < this.length; index++) {\n        if (index) {\n            result += ', ';\n        }\n        result += repr (this [index]);\n    }\n    if (this.__class__ == tuple && this.length == 1) {\n        result += ',';\n    }\n    result += !this.__class__ || this.__class__ == list ? ']' : this.__class__ == tuple ? ')' : '}';;\n    return result;\n};\nArray.prototype.__str__ = Array.prototype.__repr__;\nArray.prototype.append = function (element) {\n    this.push (element);\n};\nArray.prototype.py_clear = function () {\n    this.length = 0;\n};\nArray.prototype.extend = function (aList) {\n    this.push.apply (this, aList);\n};\nArray.prototype.insert = function (index, element) {\n    this.splice (index, 0, element);\n};\nArray.prototype.remove = function (element) {\n    let index = this.indexOf (element);\n    if (index == -1) {\n        throw ValueError (\"list.remove(x): x not in list\", new Error ());\n    }\n    this.splice (index, 1);\n};\nArray.prototype.index = function (element) {\n    return this.indexOf (element);\n};\nArray.prototype.py_pop = function (index) {\n    if (index == undefined) {\n        return this.pop ();\n    }\n    else {\n        return this.splice (index, 1) [0];\n    }\n};\nArray.prototype.py_sort = function () {\n    __sort__.apply  (null, [this].concat ([] .slice.apply (arguments)));\n};\nArray.prototype.__add__ = function (aList) {\n    return list (this.concat (aList));\n};\nArray.prototype.__mul__ = function (scalar) {\n    let result = this;\n    for (let i = 1; i < scalar; i++) {\n        result = result.concat (this);\n    }\n    return result;\n};\nArray.prototype.__rmul__ = Array.prototype.__mul__;\nexport function tuple (iterable) {\n    let instance = iterable ? [] .slice.apply (iterable) : [];\n    instance.__class__ = tuple;\n    return instance;\n}\ntuple.__name__ = 'tuple';\ntuple.__bases__ = [object];\nexport function set (iterable) {\n    let instance = [];\n    if (iterable) {\n        for (let index = 0; index < iterable.length; index++) {\n            instance.add (iterable [index]);\n        }\n    }\n    instance.__class__ = set;\n    return instance;\n}\nset.__name__ = 'set';\nset.__bases__ = [object];\nArray.prototype.__bindexOf__ = function (element) {\n    element += '';\n    let mindex = 0;\n    let maxdex = this.length - 1;\n    while (mindex <= maxdex) {\n        let index = (mindex + maxdex) / 2 | 0;\n        let middle = this [index] + '';\n        if (middle < element) {\n            mindex = index + 1;\n        }\n        else if (middle > element) {\n            maxdex = index - 1;\n        }\n        else {\n            return index;\n        }\n    }\n    return -1;\n};\nArray.prototype.add = function (element) {\n    if (this.indexOf (element) == -1) {\n        this.push (element);\n    }\n};\nArray.prototype.discard = function (element) {\n    var index = this.indexOf (element);\n    if (index != -1) {\n        this.splice (index, 1);\n    }\n};\nArray.prototype.isdisjoint = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issuperset = function (other) {\n    this.sort ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) == -1) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.issubset = function (other) {\n    return set (other.slice ()) .issuperset (this);\n};\nArray.prototype.union = function (other) {\n    let result = set (this.slice () .sort ());\n    for (let i = 0; i < other.length; i++) {\n        if (result.__bindexOf__ (other [i]) == -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.intersection = function (other) {\n    this.sort ();\n    let result = set ();\n    for (let i = 0; i < other.length; i++) {\n        if (this.__bindexOf__ (other [i]) != -1) {\n            result.push (other [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.difference = function (other) {\n    let sother = set (other.slice () .sort ());\n    let result = set ();\n    for (let i = 0; i < this.length; i++) {\n        if (sother.__bindexOf__ (this [i]) == -1) {\n            result.push (this [i]);\n        }\n    }\n    return result;\n};\nArray.prototype.symmetric_difference = function (other) {\n    return this.union (other) .difference (this.intersection (other));\n};\nArray.prototype.py_update = function () {\n    let updated = [] .concat.apply (this.slice (), arguments) .sort ();\n    this.py_clear ();\n    for (let i = 0; i < updated.length; i++) {\n        if (updated [i] != updated [i - 1]) {\n            this.push (updated [i]);\n        }\n    }\n};\nArray.prototype.__eq__ = function (other) {\n    if (this.length != other.length) {\n        return false;\n    }\n    if (this.__class__ == set) {\n        this.sort ();\n        other.sort ();\n    }\n    for (let i = 0; i < this.length; i++) {\n        if (this [i] != other [i]) {\n            return false;\n        }\n    }\n    return true;\n};\nArray.prototype.__ne__ = function (other) {\n    return !this.__eq__ (other);\n};\nArray.prototype.__le__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issubset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] > other [i]) {\n                return false;\n            }\n            else if (this [i] < other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__ge__ = function (other) {\n    if (this.__class__ == set) {\n        return this.issuperset (other);\n    }\n    else {\n        for (let i = 0; i < this.length; i++) {\n            if (this [i] < other [i]) {\n                return false;\n            }\n            else if (this [i] > other [i]) {\n                return true;\n            }\n        }\n        return true;\n    }\n};\nArray.prototype.__lt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issubset (other) && !this.issuperset (other) :\n        !this.__ge__ (other)\n    );\n};\nArray.prototype.__gt__ = function (other) {\n    return (\n        this.__class__ == set ?\n        this.issuperset (other) && !this.issubset (other) :\n        !this.__le__ (other)\n    );\n};\nexport function bytearray (bytable, encoding) {\n    if (bytable == undefined) {\n        return new Uint8Array (0);\n    }\n    else {\n        let aType = py_typeof (bytable);\n        if (aType == int) {\n            return new Uint8Array (bytable);\n        }\n        else if (aType == str) {\n            let aBytes = new Uint8Array (len (bytable));\n            for (let i = 0; i < len (bytable); i++) {\n                aBytes [i] = bytable.charCodeAt (i);\n            }\n            return aBytes;\n        }\n        else if (aType == list || aType == tuple) {\n            return new Uint8Array (bytable);\n        }\n        else {\n            throw py_TypeError;\n        }\n    }\n}\nexport var bytes = bytearray;\nUint8Array.prototype.__add__ = function (aBytes) {\n    let result = new Uint8Array (this.length + aBytes.length);\n    result.set (this);\n    result.set (aBytes, this.length);\n    return result;\n};\nUint8Array.prototype.__mul__ = function (scalar) {\n    let result = new Uint8Array (scalar * this.length);\n    for (let i = 0; i < scalar; i++) {\n        result.set (this, i * this.length);\n    }\n    return result;\n};\nUint8Array.prototype.__rmul__ = Uint8Array.prototype.__mul__;\nexport function str (stringable) {\n    if (typeof stringable === 'number')\n        return stringable.toString();\n    else {\n        try {\n            return stringable.__str__ ();\n        }\n        catch (exception) {\n            try {\n                return repr (stringable);\n            }\n            catch (exception) {\n                return String (stringable);\n            }\n        }\n    }\n};\nString.prototype.__class__ = str;\nstr.__name__ = 'str';\nstr.__bases__ = [object];\nString.prototype.__iter__ = function () {new __PyIterator__ (this);};\nString.prototype.__repr__ = function () {\n    return (this.indexOf ('\\'') == -1 ? '\\'' + this + '\\'' : '\"' + this + '\"') .py_replace ('\\t', '\\\\t') .py_replace ('\\n', '\\\\n');\n};\nString.prototype.__str__ = function () {\n    return this;\n};\nString.prototype.capitalize = function () {\n    return this.charAt (0).toUpperCase () + this.slice (1);\n};\nString.prototype.endswith = function (suffix) {\n    if (suffix instanceof Array) {\n        for (var i=0;i<suffix.length;i++) {\n            if (this.slice (-suffix[i].length) == suffix[i])\n                return true;\n        }\n    } else\n        return suffix == '' || this.slice (-suffix.length) == suffix;\n    return false;\n};\nString.prototype.find = function (sub, start) {\n    return this.indexOf (sub, start);\n};\nString.prototype.__getslice__ = function (start, stop, step) {\n    if (start < 0) {\n        start = this.length + start;\n    }\n    if (stop == null) {\n        stop = this.length;\n    }\n    else if (stop < 0) {\n        stop = this.length + stop;\n    }\n    var result = '';\n    if (step == 1) {\n        result = this.substring (start, stop);\n    }\n    else {\n        for (var index = start; index < stop; index += step) {\n            result = result.concat (this.charAt(index));\n        }\n    }\n    return result;\n};\n__setproperty__ (String.prototype, 'format', {\n    get: function () {return __get__ (this, function (self) {\n        var args = tuple ([] .slice.apply (arguments).slice (1));\n        var autoIndex = 0;\n        return self.replace (/\\{(\\w*)\\}/g, function (match, key) {\n            if (key == '') {\n                key = autoIndex++;\n            }\n            if (key == +key) {\n                return args [key] === undefined ? match : str (args [key]);\n            }\n            else {\n                for (var index = 0; index < args.length; index++) {\n                    if (typeof args [index] == 'object' && args [index][key] !== undefined) {\n                        return str (args [index][key]);\n                    }\n                }\n                return match;\n            }\n        });\n    });},\n    enumerable: true\n});\nString.prototype.isalnum = function () {\n    return /^[0-9a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isalpha = function () {\n    return /^[a-zA-Z]{1,}$/.test(this)\n}\nString.prototype.isdecimal = function () {\n    return /^[0-9]{1,}$/.test(this)\n}\nString.prototype.isdigit = function () {\n    return this.isdecimal()\n}\nString.prototype.islower = function () {\n    return /^[a-z]{1,}$/.test(this)\n}\nString.prototype.isupper = function () {\n    return /^[A-Z]{1,}$/.test(this)\n}\nString.prototype.isspace = function () {\n    return /^[\\s]{1,}$/.test(this)\n}\nString.prototype.isnumeric = function () {\n    return !isNaN (parseFloat (this)) && isFinite (this);\n};\nString.prototype.join = function (strings) {\n    strings = Array.from (strings);\n    return strings.join (this);\n};\nString.prototype.lower = function () {\n    return this.toLowerCase ();\n};\nString.prototype.py_replace = function (old, aNew, maxreplace) {\n    return this.split (old, maxreplace) .join (aNew);\n};\nString.prototype.lstrip = function () {\n    return this.replace (/^\\s*/g, '');\n};\nString.prototype.rfind = function (sub, start) {\n    return this.lastIndexOf (sub, start);\n};\nString.prototype.rsplit = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            var maxrsplit = result.length - maxsplit;\n            return [result.slice (0, maxrsplit) .join (sep)] .concat (result.slice (maxrsplit));\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.rstrip = function () {\n    return this.replace (/\\s*$/g, '');\n};\nString.prototype.py_split = function (sep, maxsplit) {\n    if (sep == undefined || sep == null) {\n        sep = /\\s+/;\n        var stripped = this.strip ();\n    }\n    else {\n        var stripped = this;\n    }\n    if (maxsplit == undefined || maxsplit == -1) {\n        return stripped.split (sep);\n    }\n    else {\n        var result = stripped.split (sep);\n        if (maxsplit < result.length) {\n            return result.slice (0, maxsplit).concat ([result.slice (maxsplit).join (sep)]);\n        }\n        else {\n            return result;\n        }\n    }\n};\nString.prototype.startswith = function (prefix) {\n    if (prefix instanceof Array) {\n        for (var i=0;i<prefix.length;i++) {\n            if (this.indexOf (prefix [i]) == 0)\n                return true;\n        }\n    } else\n        return this.indexOf (prefix) == 0;\n    return false;\n};\nString.prototype.strip = function () {\n    return this.trim ();\n};\nString.prototype.upper = function () {\n    return this.toUpperCase ();\n};\nString.prototype.__mul__ = function (scalar) {\n    var result = '';\n    for (var i = 0; i < scalar; i++) {\n        result = result + this;\n    }\n    return result;\n};\nString.prototype.__rmul__ = String.prototype.__mul__;\nfunction __contains__ (element) {\n    return this.hasOwnProperty (element);\n}\nfunction __keys__ () {\n    var keys = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            keys.push (attrib);\n        }\n    }\n    return keys;\n}\nfunction __items__ () {\n    var items = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            items.push ([attrib, this [attrib]]);\n        }\n    }\n    return items;\n}\nfunction __del__ (key) {\n    delete this [key];\n}\nfunction __clear__ () {\n    for (var attrib in this) {\n        delete this [attrib];\n    }\n}\nfunction __getdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result == undefined) {\n        result = this ['py_' + aKey]\n    }\n    return result == undefined ? (aDefault == undefined ? null : aDefault) : result;\n}\nfunction __setdefault__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        return result;\n    }\n    var val = aDefault == undefined ? null : aDefault;\n    this [aKey] = val;\n    return val;\n}\nfunction __pop__ (aKey, aDefault) {\n    var result = this [aKey];\n    if (result != undefined) {\n        delete this [aKey];\n        return result;\n    } else {\n        if ( aDefault === undefined ) {\n            throw KeyError (aKey, new Error());\n        }\n    }\n    return aDefault;\n}\nfunction __popitem__ () {\n    var aKey = Object.keys (this) [0];\n    if (aKey == null) {\n        throw KeyError (\"popitem(): dictionary is empty\", new Error ());\n    }\n    var result = tuple ([aKey, this [aKey]]);\n    delete this [aKey];\n    return result;\n}\nfunction __update__ (aDict) {\n    for (var aKey in aDict) {\n        this [aKey] = aDict [aKey];\n    }\n}\nfunction __values__ () {\n    var values = [];\n    for (var attrib in this) {\n        if (!__specialattrib__ (attrib)) {\n            values.push (this [attrib]);\n        }\n    }\n    return values;\n}\nfunction __dgetitem__ (aKey) {\n    return this [aKey];\n}\nfunction __dsetitem__ (aKey, aValue) {\n    this [aKey] = aValue;\n}\nexport function dict (objectOrPairs) {\n    var instance = {};\n    if (!objectOrPairs || objectOrPairs instanceof Array) {\n        if (objectOrPairs) {\n            for (var index = 0; index < objectOrPairs.length; index++) {\n                var pair = objectOrPairs [index];\n                if ( !(pair instanceof Array) || pair.length != 2) {\n                    throw ValueError(\n                        \"dict update sequence element #\" + index +\n                        \" has length \" + pair.length +\n                        \"; 2 is required\", new Error());\n                }\n                var key = pair [0];\n                var val = pair [1];\n                if (!(objectOrPairs instanceof Array) && objectOrPairs instanceof Object) {\n                     if (!isinstance (objectOrPairs, dict)) {\n                         val = dict (val);\n                     }\n                }\n                instance [key] = val;\n            }\n        }\n    }\n    else {\n        if (isinstance (objectOrPairs, dict)) {\n            var aKeys = objectOrPairs.py_keys ();\n            for (var index = 0; index < aKeys.length; index++ ) {\n                var key = aKeys [index];\n                instance [key] = objectOrPairs [key];\n            }\n        } else if (objectOrPairs instanceof Object) {\n            instance = objectOrPairs;\n        } else {\n            throw ValueError (\"Invalid type of object for dict creation\", new Error ());\n        }\n    }\n    __setproperty__ (instance, '__class__', {value: dict, enumerable: false, writable: true});\n    __setproperty__ (instance, '__contains__', {value: __contains__, enumerable: false});\n    __setproperty__ (instance, 'py_keys', {value: __keys__, enumerable: false});\n    __setproperty__ (instance, '__iter__', {value: function () {new __PyIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, Symbol.iterator, {value: function () {new __JsIterator__ (this.py_keys ());}, enumerable: false});\n    __setproperty__ (instance, 'py_items', {value: __items__, enumerable: false});\n    __setproperty__ (instance, 'py_del', {value: __del__, enumerable: false});\n    __setproperty__ (instance, 'py_clear', {value: __clear__, enumerable: false});\n    __setproperty__ (instance, 'py_get', {value: __getdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_setdefault', {value: __setdefault__, enumerable: false});\n    __setproperty__ (instance, 'py_pop', {value: __pop__, enumerable: false});\n    __setproperty__ (instance, 'py_popitem', {value: __popitem__, enumerable: false});\n    __setproperty__ (instance, 'py_update', {value: __update__, enumerable: false});\n    __setproperty__ (instance, 'py_values', {value: __values__, enumerable: false});\n    __setproperty__ (instance, '__getitem__', {value: __dgetitem__, enumerable: false});\n    __setproperty__ (instance, '__setitem__', {value: __dsetitem__, enumerable: false});\n    return instance;\n}\ndict.__name__ = 'dict';\ndict.__bases__ = [object];\nfunction __setdoc__ (docString) {\n    this.__doc__ = docString;\n    return this;\n}\n__setproperty__ (Function.prototype, '__setdoc__', {value: __setdoc__, enumerable: false});\nexport function __jsmod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __mod__ (a, b) {\n    if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __pow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport var pow = __pow__;\nexport function __neg__ (a) {\n    if (typeof a == 'object' && '__neg__' in a) {\n        return a.__neg__ ();\n    }\n    else {\n        return -a;\n    }\n};\nexport function __matmul__ (a, b) {\n    return a.__matmul__ (b);\n};\nexport function __mul__ (a, b) {\n    if (typeof a == 'object' && '__mul__' in a) {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return b.__rmul__ (a);\n    }\n    else {\n        return a * b;\n    }\n};\nexport function __truediv__ (a, b) {\n    if (typeof a == 'object' && '__truediv__' in a) {\n        return a.__truediv__ (b);\n    }\n    else if (typeof b == 'object' && '__rtruediv__' in b) {\n        return b.__rtruediv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return a / b;\n    }\n};\nexport function __floordiv__ (a, b) {\n    if (typeof a == 'object' && '__floordiv__' in a) {\n        return a.__floordiv__ (b);\n    }\n    else if (typeof b == 'object' && '__rfloordiv__' in b) {\n        return b.__rfloordiv__ (a);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return b.__rdiv__ (a);\n    }\n    else {\n        return Math.floor (a / b);\n    }\n};\nexport function __add__ (a, b) {\n    if (typeof a == 'object' && '__add__' in a) {\n        return a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return b.__radd__ (a);\n    }\n    else {\n        return a + b;\n    }\n};\nexport function __sub__ (a, b) {\n    if (typeof a == 'object' && '__sub__' in a) {\n        return a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return b.__rsub__ (a);\n    }\n    else {\n        return a - b;\n    }\n};\nexport function __lshift__ (a, b) {\n    if (typeof a == 'object' && '__lshift__' in a) {\n        return a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return b.__rlshift__ (a);\n    }\n    else {\n        return a << b;\n    }\n};\nexport function __rshift__ (a, b) {\n    if (typeof a == 'object' && '__rshift__' in a) {\n        return a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return b.__rrshift__ (a);\n    }\n    else {\n        return a >> b;\n    }\n};\nexport function __or__ (a, b) {\n    if (typeof a == 'object' && '__or__' in a) {\n        return a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return b.__ror__ (a);\n    }\n    else {\n        return a | b;\n    }\n};\nexport function __xor__ (a, b) {\n    if (typeof a == 'object' && '__xor__' in a) {\n        return a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return b.__rxor__ (a);\n    }\n    else {\n        return a ^ b;\n    }\n};\nexport function __and__ (a, b) {\n    if (typeof a == 'object' && '__and__' in a) {\n        return a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return b.__rand__ (a);\n    }\n    else {\n        return a & b;\n    }\n};\nexport function __eq__ (a, b) {\n    if (typeof a == 'object' && '__eq__' in a) {\n        return a.__eq__ (b);\n    }\n    else {\n        return a == b;\n    }\n};\nexport function __ne__ (a, b) {\n    if (typeof a == 'object' && '__ne__' in a) {\n        return a.__ne__ (b);\n    }\n    else {\n        return a != b\n    }\n};\nexport function __lt__ (a, b) {\n    if (typeof a == 'object' && '__lt__' in a) {\n        return a.__lt__ (b);\n    }\n    else {\n        return a < b;\n    }\n};\nexport function __le__ (a, b) {\n    if (typeof a == 'object' && '__le__' in a) {\n        return a.__le__ (b);\n    }\n    else {\n        return a <= b;\n    }\n};\nexport function __gt__ (a, b) {\n    if (typeof a == 'object' && '__gt__' in a) {\n        return a.__gt__ (b);\n    }\n    else {\n        return a > b;\n    }\n};\nexport function __ge__ (a, b) {\n    if (typeof a == 'object' && '__ge__' in a) {\n        return a.__ge__ (b);\n    }\n    else {\n        return a >= b;\n    }\n};\nexport function __imatmul__ (a, b) {\n    if ('__imatmul__' in a) {\n        return a.__imatmul__ (b);\n    }\n    else {\n        return a.__matmul__ (b);\n    }\n};\nexport function __ipow__ (a, b) {\n    if (typeof a == 'object' && '__pow__' in a) {\n        return a.__ipow__ (b);\n    }\n    else if (typeof a == 'object' && '__ipow__' in a) {\n        return a.__pow__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rpow__ (a);\n    }\n    else {\n        return Math.pow (a, b);\n    }\n};\nexport function __ijsmod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__ismod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rpow__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return a % b;\n    }\n};\nexport function __imod__ (a, b) {\n    if (typeof a == 'object' && '__imod__' in a) {\n        return a.__imod__ (b);\n    }\n    else if (typeof a == 'object' && '__mod__' in a) {\n        return a.__mod__ (b);\n    }\n    else if (typeof b == 'object' && '__rmod__' in b) {\n        return b.__rmod__ (a);\n    }\n    else {\n        return ((a % b) + b) % b;\n    }\n};\nexport function __imul__ (a, b) {\n    if (typeof a == 'object' && '__imul__' in a) {\n        return a.__imul__ (b);\n    }\n    else if (typeof a == 'object' && '__mul__' in a) {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'object' && '__rmul__' in b) {\n        return a = b.__rmul__ (a);\n    }\n    else if (typeof a == 'string') {\n        return a = a.__mul__ (b);\n    }\n    else if (typeof b == 'string') {\n        return a = b.__rmul__ (a);\n    }\n    else {\n        return a *= b;\n    }\n};\nexport function __idiv__ (a, b) {\n    if (typeof a == 'object' && '__idiv__' in a) {\n        return a.__idiv__ (b);\n    }\n    else if (typeof a == 'object' && '__div__' in a) {\n        return a = a.__div__ (b);\n    }\n    else if (typeof b == 'object' && '__rdiv__' in b) {\n        return a = b.__rdiv__ (a);\n    }\n    else {\n        return a /= b;\n    }\n};\nexport function __iadd__ (a, b) {\n    if (typeof a == 'object' && '__iadd__' in a) {\n        return a.__iadd__ (b);\n    }\n    else if (typeof a == 'object' && '__add__' in a) {\n        return a = a.__add__ (b);\n    }\n    else if (typeof b == 'object' && '__radd__' in b) {\n        return a = b.__radd__ (a);\n    }\n    else {\n        return a += b;\n    }\n};\nexport function __isub__ (a, b) {\n    if (typeof a == 'object' && '__isub__' in a) {\n        return a.__isub__ (b);\n    }\n    else if (typeof a == 'object' && '__sub__' in a) {\n        return a = a.__sub__ (b);\n    }\n    else if (typeof b == 'object' && '__rsub__' in b) {\n        return a = b.__rsub__ (a);\n    }\n    else {\n        return a -= b;\n    }\n};\nexport function __ilshift__ (a, b) {\n    if (typeof a == 'object' && '__ilshift__' in a) {\n        return a.__ilshift__ (b);\n    }\n    else if (typeof a == 'object' && '__lshift__' in a) {\n        return a = a.__lshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rlshift__' in b) {\n        return a = b.__rlshift__ (a);\n    }\n    else {\n        return a <<= b;\n    }\n};\nexport function __irshift__ (a, b) {\n    if (typeof a == 'object' && '__irshift__' in a) {\n        return a.__irshift__ (b);\n    }\n    else if (typeof a == 'object' && '__rshift__' in a) {\n        return a = a.__rshift__ (b);\n    }\n    else if (typeof b == 'object' && '__rrshift__' in b) {\n        return a = b.__rrshift__ (a);\n    }\n    else {\n        return a >>= b;\n    }\n};\nexport function __ior__ (a, b) {\n    if (typeof a == 'object' && '__ior__' in a) {\n        return a.__ior__ (b);\n    }\n    else if (typeof a == 'object' && '__or__' in a) {\n        return a = a.__or__ (b);\n    }\n    else if (typeof b == 'object' && '__ror__' in b) {\n        return a = b.__ror__ (a);\n    }\n    else {\n        return a |= b;\n    }\n};\nexport function __ixor__ (a, b) {\n    if (typeof a == 'object' && '__ixor__' in a) {\n        return a.__ixor__ (b);\n    }\n    else if (typeof a == 'object' && '__xor__' in a) {\n        return a = a.__xor__ (b);\n    }\n    else if (typeof b == 'object' && '__rxor__' in b) {\n        return a = b.__rxor__ (a);\n    }\n    else {\n        return a ^= b;\n    }\n};\nexport function __iand__ (a, b) {\n    if (typeof a == 'object' && '__iand__' in a) {\n        return a.__iand__ (b);\n    }\n    else if (typeof a == 'object' && '__and__' in a) {\n        return a = a.__and__ (b);\n    }\n    else if (typeof b == 'object' && '__rand__' in b) {\n        return a = b.__rand__ (a);\n    }\n    else {\n        return a &= b;\n    }\n};\nexport function __getitem__ (container, key) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ (key);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        return container [container.length + key];\n    }\n    else {\n        return container [key];\n    }\n};\nexport function __setitem__ (container, key, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ (key, value);\n    }\n    else if ((typeof container == 'string' || container instanceof Array) && key < 0) {\n        container [container.length + key] = value;\n    }\n    else {\n        container [key] = value;\n    }\n};\nexport function __getslice__ (container, lower, upper, step) {\n    if (typeof container == 'object' && '__getitem__' in container) {\n        return container.__getitem__ ([lower, upper, step]);\n    }\n    else {\n        return container.__getslice__ (lower, upper, step);\n    }\n};\nexport function __setslice__ (container, lower, upper, step, value) {\n    if (typeof container == 'object' && '__setitem__' in container) {\n        container.__setitem__ ([lower, upper, step], value);\n    }\n    else {\n        container.__setslice__ (lower, upper, step, value);\n    }\n};\nexport var BaseException =  __class__ ('BaseException', [object], {\n\t__module__: __name__,\n});\nexport var Exception =  __class__ ('Exception', [BaseException], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tvar kwargs = dict ();\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tdefault: kwargs [__attrib0__] = __allkwargs0__ [__attrib0__];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdelete kwargs.__kwargtrans__;\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.__args__ = args;\n\t\tif (kwargs.error != null) {\n\t\t\tself.stack = kwargs.error.stack;\n\t\t}\n\t\telse if (Error) {\n\t\t\tself.stack = new Error ().stack;\n\t\t}\n\t\telse {\n\t\t\tself.stack = 'No stack trace available';\n\t\t}\n\t});},\n\tget __repr__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]));\n\t\t}\n\t\telse {\n\t\t\treturn '{}()'.format (self.__class__.__name__);\n\t\t}\n\t});},\n\tget __str__ () {return __get__ (this, function (self) {\n\t\tif (len (self.__args__) > 1) {\n\t\t\treturn str (tuple (self.__args__));\n\t\t}\n\t\telse if (len (self.__args__)) {\n\t\t\treturn str (self.__args__ [0]);\n\t\t}\n\t\telse {\n\t\t\treturn '';\n\t\t}\n\t});}\n});\nexport var IterableError =  __class__ ('IterableError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, \"Can't iterate over non-iterable\", __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var StopIteration =  __class__ ('StopIteration', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, error) {\n\t\tException.__init__ (self, 'Iterator exhausted', __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var ValueError =  __class__ ('ValueError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var KeyError =  __class__ ('KeyError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AssertionError =  __class__ ('AssertionError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tif (message) {\n\t\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t\t}\n\t\telse {\n\t\t\tException.__init__ (self, __kwargtrans__ ({error: error}));\n\t\t}\n\t});}\n});\nexport var NotImplementedError =  __class__ ('NotImplementedError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var IndexError =  __class__ ('IndexError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var AttributeError =  __class__ ('AttributeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var py_TypeError =  __class__ ('py_TypeError', [Exception], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self, message, error) {\n\t\tException.__init__ (self, message, __kwargtrans__ ({error: error}));\n\t});}\n});\nexport var Warning =  __class__ ('Warning', [Exception], {\n\t__module__: __name__,\n});\nexport var UserWarning =  __class__ ('UserWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var DeprecationWarning =  __class__ ('DeprecationWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var RuntimeWarning =  __class__ ('RuntimeWarning', [Warning], {\n\t__module__: __name__,\n});\nexport var __sort__ = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (key) {\n\t\titerable.sort ((function __lambda__ (a, b) {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\t\tcase 'a': var a = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t\tcase 'b': var b = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\treturn (key (a) > key (b) ? 1 : -(1));\n\t\t}));\n\t}\n\telse {\n\t\titerable.sort ();\n\t}\n\tif (reverse) {\n\t\titerable.reverse ();\n\t}\n};\nexport var sorted = function (iterable, key, reverse) {\n\tif (typeof key == 'undefined' || (key != null && key.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar key = null;\n\t};\n\tif (typeof reverse == 'undefined' || (reverse != null && reverse.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar reverse = false;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'iterable': var iterable = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'key': var key = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'reverse': var reverse = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (py_typeof (iterable) == dict) {\n\t\tvar result = copy (iterable.py_keys ());\n\t}\n\telse {\n\t\tvar result = copy (iterable);\n\t}\n\t__sort__ (result, key, reverse);\n\treturn result;\n};\nexport var map = function (func, iterable) {\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\t__accu0__.append (func (item));\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var filter = function (func, iterable) {\n\tif (func == null) {\n\t\tvar func = bool;\n\t}\n\treturn (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var item of iterable) {\n\t\t\tif (func (item)) {\n\t\t\t\t__accu0__.append (item);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ();\n};\nexport var divmod = function (n, d) {\n\treturn tuple ([Math.floor (n / d), __mod__ (n, d)]);\n};\nexport var __Terminal__ =  __class__ ('__Terminal__', [object], {\n\t__module__: __name__,\n\tget __init__ () {return __get__ (this, function (self) {\n\t\tself.buffer = '';\n\t\ttry {\n\t\t\tself.element = document.getElementById ('__terminal__');\n\t\t}\n\t\tcatch (__except0__) {\n\t\t\tself.element = null;\n\t\t}\n\t\tif (self.element) {\n\t\t\tself.element.style.overflowX = 'auto';\n\t\t\tself.element.style.boxSizing = 'border-box';\n\t\t\tself.element.style.padding = '5px';\n\t\t\tself.element.innerHTML = '_';\n\t\t}\n\t});},\n\tget print () {return __get__ (this, function (self) {\n\t\tvar sep = ' ';\n\t\tvar end = '\\n';\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'sep': var sep = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'end': var end = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (1, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tself.buffer = '{}{}{}'.format (self.buffer, sep.join ((function () {\n\t\t\tvar __accu0__ = [];\n\t\t\tfor (var arg of args) {\n\t\t\t\t__accu0__.append (str (arg));\n\t\t\t}\n\t\t\treturn __accu0__;\n\t\t}) ()), end).__getslice__ (-(4096), null, 1);\n\t\tif (self.element) {\n\t\t\tself.element.innerHTML = self.buffer.py_replace ('\\n', '<br>').py_replace (' ', '&nbsp');\n\t\t\tself.element.scrollTop = self.element.scrollHeight;\n\t\t}\n\t\telse {\n\t\t\tconsole.log (sep.join ((function () {\n\t\t\t\tvar __accu0__ = [];\n\t\t\t\tfor (var arg of args) {\n\t\t\t\t\t__accu0__.append (str (arg));\n\t\t\t\t}\n\t\t\t\treturn __accu0__;\n\t\t\t}) ()));\n\t\t}\n\t});},\n\tget input () {return __get__ (this, function (self, question) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'self': var self = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t\tcase 'question': var question = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tself.print ('{}'.format (question), __kwargtrans__ ({end: ''}));\n\t\tvar answer = window.prompt ('\\n'.join (self.buffer.py_split ('\\n').__getslice__ (-(8), null, 1)));\n\t\tself.print (answer);\n\t\treturn answer;\n\t});}\n});\nexport var __terminal__ = __Terminal__ ();\nexport var print = __terminal__.print;\nexport var input = __terminal__.input;\n\n//# sourceMappingURL=org.transcrypt.__runtime__.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_010/target/org.transcrypt.__runtime__.py",
    "content": "# Transcrypt runtime module\r\n\r\n#__pragma__ ('js', 'export var __envir__ = {{}};\\n{}', __include__ ('org/transcrypt/__envir__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__core__.js'))\r\n#__pragma__ ('js', '{}', __include__ ('org/transcrypt/__builtin__.js'))\r\n\r\n#__pragma__ ('skip')\r\ncopy = Math = __typeof__ = __repr__ = document = console = window = 0\r\n#__pragma__ ('noskip')\r\n\r\n#__pragma__ ('notconv')  # !!! tconv gives a problem with __terminal__, needs investigation\r\n#__pragma__ ('nokwargs')\r\n#__pragma__ ('noalias', 'sort')\r\n\r\nclass BaseException:\r\n    pass\r\n\r\nclass Exception (BaseException):\r\n    #__pragma__ ('kwargs')\r\n    def __init__ (self, *args, **kwargs):\r\n        self.__args__ = args\r\n        if kwargs.error != None:\r\n            self.stack = kwargs.error.stack # Integrate with JavaScript Error object\r\n        elif Error:\r\n            self.stack = (__new__(Error())).stack # Create our own stack if we aren't given one\r\n        else:\r\n            self.stack = 'No stack trace available'\r\n    #__pragma__ ('nokwargs')\r\n        \r\n    def __repr__ (self):\r\n        if len (self.__args__) > 1:\r\n            return '{}{}'.format (self.__class__.__name__, repr (tuple (self.__args__)))\r\n        elif len (self.__args__):\r\n            return '{}({})'.format (self.__class__.__name__, repr (self.__args__ [0]))        \r\n        else:\r\n            return '{}()'.format (self.__class__.__name__)\r\n            \r\n    def __str__ (self):\r\n        if len (self.__args__) > 1:\r\n            return str (tuple (self.__args__))\r\n        elif len (self.__args__):\r\n            return str (self.__args__ [0])\r\n        else:\r\n            return ''\r\n        \r\nclass IterableError (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Can\\'t iterate over non-iterable', error = error)\r\n            \r\nclass StopIteration (Exception):\r\n    def __init__ (self, error):\r\n        Exception.__init__ (self, 'Iterator exhausted', error = error)\r\n        \r\nclass ValueError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass KeyError (Exception):\r\n    def __init__ (self, message, error):\r\n        Exception.__init__ (self, message, error = error)\r\n    \r\nclass AssertionError (Exception):\r\n    def __init__ (self, message, error):\r\n        if message:\r\n            Exception.__init__ (self, message, error = error)\r\n        else:\r\n            Exception.__init__ (self, error = error)\r\n\r\nclass NotImplementedError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass IndexError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass AttributeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\nclass TypeError (Exception):\r\n    def __init__(self, message, error):\r\n        Exception.__init__(self, message, error = error)\r\n\r\n# Warnings Exceptions\r\n# N.B. This is a limited subset of the warnings defined in\r\n# the cpython implementation to keep things small for now.\r\n\r\nclass Warning (Exception):\r\n    ''' Warning Base Class\r\n    '''\r\n    pass\r\n\r\nclass UserWarning (Warning):\r\n    pass\r\n\r\nclass DeprecationWarning (Warning):\r\n    pass\r\n\r\nclass RuntimeWarning (Warning):\r\n    pass\r\n    \r\n#__pragma__ ('kwargs')\r\n\r\ndef __sort__ (iterable, key = None, reverse = False):               # Used by py_sort, can deal with kwargs\r\n    if key:\r\n        iterable.sort (lambda a, b: 1 if key (a) > key (b) else -1) # JavaScript sort, case '==' is irrelevant for sorting\r\n    else:\r\n        iterable.sort ()                                            # JavaScript sort\r\n        \r\n    if reverse:\r\n        iterable.reverse ()\r\n        \r\ndef sorted (iterable, key = None, reverse = False):\r\n    if type (iterable) == dict:\r\n        result = copy (iterable.keys ()) \r\n    else:       \r\n        result = copy (iterable)\r\n        \r\n    __sort__ (result, key, reverse)\r\n    return result\r\n\r\n#__pragma__ ('nokwargs')\r\n\r\ndef map (func, iterable):\r\n    return [func (item) for item in iterable]\r\n\r\n\r\ndef filter (func, iterable):\r\n    if func == None:\r\n        func = bool\r\n    return [item for item in iterable if func (item)]\r\n    \r\ndef divmod (n, d):\r\n    return n // d, n % d\r\n    \r\n#__pragma__ ('ifdef', '__complex__')\r\n\r\nclass complex:\r\n    def __init__ (self, real, imag = None):\r\n        if imag == None:\r\n            if type (real) == complex:\r\n                self.real = real.real\r\n                self.imag = real.imag\r\n            else:\r\n                self.real = real\r\n                self.imag = 0\r\n        else:\r\n            self.real = real\r\n            self.imag = imag\r\n            \r\n    def __neg__ (self):\r\n        return complex (-self.real, -self.imag)\r\n        \r\n    def __exp__ (self):\r\n        modulus = Math.exp (self.real)\r\n        return complex (modulus * Math.cos (self.imag), modulus * Math.sin (self.imag))\r\n    \r\n    def __log__ (self):\r\n        return complex (Math.log (Math.sqrt (self.real * self.real + self.imag * self.imag)), Math.atan2 (self.imag, self.real))\r\n        \r\n    def __pow__ (self, other):  # a ** b = exp (b log a)\r\n        return (self.__log__ () .__mul__ (other)) .__exp__ ()\r\n        \r\n    def __rpow__ (self, real):  # real ** comp -> comp.__rpow__ (real)\r\n        return self.__mul__ (Math.log (real)) .__exp__ ()\r\n        \r\n    def __mul__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real * other, self.imag * other)\r\n        else:\r\n            return complex (self.real * other.real - self.imag * other.imag, self.real * other.imag + self.imag * other.real)\r\n        \r\n    def __rmul__ (self, real):  # real + comp -> comp.__rmul__ (real)\r\n        return complex (self.real * real, self.imag * real)\r\n        \r\n    def __div__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real / other, self.imag / other)\r\n        else:\r\n            denom = other.real * other.real + other.imag * other.imag\r\n            return complex (\r\n                (self.real * other.real + self.imag * other.imag) / denom,\r\n                (self.imag * other.real - self.real * other.imag) / denom\r\n            )\r\n        \r\n    def __rdiv__ (self, real):  # real / comp -> comp.__rdiv__ (real)\r\n        denom = self.real * self.real\r\n        return complex (\r\n            (real * self.real) / denom,\r\n            (real * self.imag) / denom\r\n        )\r\n        \r\n    def __add__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real + other, self.imag)\r\n        else:   # Assume other is complex\r\n            return complex (self.real + other.real, self.imag + other.imag)\r\n        \r\n    def __radd__ (self, real):  # real + comp -> comp.__radd__ (real)\r\n        return complex (self.real + real, self.imag)\r\n        \r\n    def __sub__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return complex (self.real - other, self.imag)\r\n        else:\r\n            return complex (self.real - other.real, self.imag - other.imag)\r\n        \r\n    def __rsub__ (self, real):  # real - comp -> comp.__rsub__ (real)\r\n        return complex (real - self.real, -self.imag)\r\n        \r\n    def __repr__ (self):\r\n        return '({}{}{}j)'.format (self.real, '+' if self.imag >= 0 else '', self.imag)\r\n            \r\n    def __str__ (self):\r\n        return __repr__ (self) [1 : -1]\r\n        \r\n    def __eq__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real == other\r\n        else:\r\n            return self.real == other.real and self.imag == other.imag\r\n        \r\n    def __ne__ (self, other):\r\n        if __typeof__ (other) is 'number':\r\n            return self.real != other\r\n        else:\r\n            return self.real != other.real or self.imag != other.imag\r\n        \r\n    def conjugate (self):\r\n        return complex (self.real, -self.imag)\r\n        \r\ndef __conj__ (aNumber):\r\n    if isinstance (aNumber, complex):\r\n        return complex (aNumber.real, -aNumber.imag)\r\n    else:\r\n        return complex (aNumber, 0)\r\n        \r\n#__pragma__ ('endif')\r\n\r\nclass __Terminal__:\r\n    '''\r\n    Printing to either the console or to html happens async, but is blocked by calling window.prompt.\r\n    So while all input and print statements are encountered in normal order, the print's exit immediately without yet having actually printed\r\n    This means the next input takes control, blocking actual printing and so on indefinitely\r\n    The effect is that everything's only printed after all inputs are done\r\n    To prevent that, what's needed is to only execute the next window.prompt after actual printing has been done\r\n    Since we've no way to find out when that is, a timeout is used.\r\n    '''\r\n\r\n    def __init__ (self):\r\n        self.buffer = ''\r\n    \r\n        try:\r\n            self.element = document.getElementById ('__terminal__')\r\n        except:\r\n            self.element = None\r\n            \r\n        if self.element:\r\n            self.element.style.overflowX = 'auto'\r\n            self.element.style.boxSizing = 'border-box'\r\n            self.element.style.padding = '5px'\r\n            self.element.innerHTML = '_'\r\n        \r\n    #__pragma__ ('kwargs')\r\n        \r\n    def print (self, *args, sep = ' ', end = '\\n'):\r\n        self.buffer = '{}{}{}'.format (self.buffer, sep.join ([str (arg) for arg in args]), end) [-4096 : ] \r\n        \r\n        if self.element:\r\n            self.element.innerHTML = self.buffer.replace ('\\n', '<br>') .replace (' ', '&nbsp')\r\n            self.element.scrollTop = self.element.scrollHeight\r\n        else:\r\n            console.log (sep.join ([str (arg) for arg in args]))\r\n        \r\n    def input (self, question):\r\n        self.print ('{}'.format (question), end = '')\r\n        answer = window.prompt ('\\n'.join (self.buffer.split ('\\n') [-8:]))\r\n        self.print (answer)\r\n        return answer\r\n        \r\n    #__pragma__ ('nokwargs')\r\n    \r\n__terminal__ = __Terminal__ ()\r\n\r\nprint = __terminal__.print\r\ninput = __terminal__.input\r\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_010/target/pyp5js.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:19\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {PythonFunctions} from './python_functions.js';\nvar __name__ = 'pyp5js';\nexport var _P5_INSTANCE = null;\nexport var _CTX_MIDDLE = null;\nexport var _DEFAULT_FILL = null;\nexport var _DEFAULT_LEADMULT = null;\nexport var _DEFAULT_STROKE = null;\nexport var _DEFAULT_TEXT_FILL = null;\nexport var ADD = null;\nexport var ALT = null;\nexport var ARROW = null;\nexport var AUDIO = null;\nexport var AUTO = null;\nexport var AXES = null;\nexport var BACKSPACE = null;\nexport var BASELINE = null;\nexport var BEVEL = null;\nexport var BEZIER = null;\nexport var BLEND = null;\nexport var BLUR = null;\nexport var BOLD = null;\nexport var BOLDITALIC = null;\nexport var BOTTOM = null;\nexport var BURN = null;\nexport var CENTER = null;\nexport var CHORD = null;\nexport var CLAMP = null;\nexport var CLOSE = null;\nexport var CONTROL = null;\nexport var CORNER = null;\nexport var CORNERS = null;\nexport var CROSS = null;\nexport var CURVE = null;\nexport var DARKEST = null;\nexport var DEG_TO_RAD = null;\nexport var DEGREES = null;\nexport var DELETE = null;\nexport var DIFFERENCE = null;\nexport var DILATE = null;\nexport var DODGE = null;\nexport var DOWN_ARROW = null;\nexport var ENTER = null;\nexport var ERODE = null;\nexport var ESCAPE = null;\nexport var EXCLUSION = null;\nexport var FILL = null;\nexport var GRAY = null;\nexport var GRID = null;\nexport var HALF_PI = null;\nexport var HAND = null;\nexport var HARD_LIGHT = null;\nexport var HSB = null;\nexport var HSL = null;\nexport var IMAGE = null;\nexport var IMMEDIATE = null;\nexport var INVERT = null;\nexport var ITALIC = null;\nexport var LANDSCAPE = null;\nexport var LEFT = null;\nexport var LEFT_ARROW = null;\nexport var LIGHTEST = null;\nexport var LINE_LOOP = null;\nexport var LINE_STRIP = null;\nexport var LINEAR = null;\nexport var LINES = null;\nexport var MIRROR = null;\nexport var MITER = null;\nexport var MOVE = null;\nexport var MULTIPLY = null;\nexport var NEAREST = null;\nexport var NORMAL = null;\nexport var OPAQUE = null;\nexport var OPEN = null;\nexport var OPTION = null;\nexport var OVERLAY = null;\nexport var PI = null;\nexport var PIE = null;\nexport var POINTS = null;\nexport var PORTRAIT = null;\nexport var POSTERIZE = null;\nexport var PROJECT = null;\nexport var QUAD_STRIP = null;\nexport var QUADRATIC = null;\nexport var QUADS = null;\nexport var QUARTER_PI = null;\nexport var RAD_TO_DEG = null;\nexport var RADIANS = null;\nexport var RADIUS = null;\nexport var REPEAT = null;\nexport var REPLACE = null;\nexport var RETURN = null;\nexport var RGB = null;\nexport var RIGHT = null;\nexport var RIGHT_ARROW = null;\nexport var ROUND = null;\nexport var SCREEN = null;\nexport var SHIFT = null;\nexport var SOFT_LIGHT = null;\nexport var SQUARE = null;\nexport var STROKE = null;\nexport var SUBTRACT = null;\nexport var TAB = null;\nexport var TAU = null;\nexport var TEXT = null;\nexport var TEXTURE = null;\nexport var THRESHOLD = null;\nexport var TOP = null;\nexport var TRIANGLE_FAN = null;\nexport var TRIANGLE_STRIP = null;\nexport var TRIANGLES = null;\nexport var TWO_PI = null;\nexport var UP_ARROW = null;\nexport var VIDEO = null;\nexport var WAIT = null;\nexport var WEBGL = null;\nexport var P2D = null;\nvar PI = null;\nexport var frameCount = null;\nexport var focused = null;\nexport var displayWidth = null;\nexport var displayHeight = null;\nexport var windowWidth = null;\nexport var windowHeight = null;\nexport var width = null;\nexport var height = null;\nexport var disableFriendlyErrors = null;\nexport var deviceOrientation = null;\nexport var accelerationX = null;\nexport var accelerationY = null;\nexport var accelerationZ = null;\nexport var pAccelerationX = null;\nexport var pAccelerationY = null;\nexport var pAccelerationZ = null;\nexport var rotationX = null;\nexport var rotationY = null;\nexport var rotationZ = null;\nexport var pRotationX = null;\nexport var pRotationY = null;\nexport var pRotationZ = null;\nexport var turnAxis = null;\nexport var keyIsPressed = null;\nexport var key = null;\nexport var keyCode = null;\nexport var mouseX = null;\nexport var mouseY = null;\nexport var pmouseX = null;\nexport var pmouseY = null;\nexport var winMouseX = null;\nexport var winMouseY = null;\nexport var pwinMouseX = null;\nexport var pwinMouseY = null;\nexport var mouseButton = null;\nexport var mouseIsPressed = null;\nexport var touches = null;\nexport var pixels = null;\nexport var alpha = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.alpha (...args);\n};\nexport var blue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blue (...args);\n};\nexport var brightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.brightness (...args);\n};\nexport var color = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.color (...args);\n};\nexport var green = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.green (...args);\n};\nexport var hue = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hue (...args);\n};\nexport var lerpColor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerpColor (...args);\n};\nexport var lightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lightness (...args);\n};\nexport var red = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.red (...args);\n};\nexport var saturation = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saturation (...args);\n};\nexport var background = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.background (...args);\n};\nexport var py_clear = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_clear = _P5_INSTANCE.clear (...args);\n\treturn p5_clear;\n};\nexport var erase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.erase (...args);\n};\nexport var noErase = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noErase (...args);\n};\nexport var colorMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.colorMode (...args);\n};\nexport var fill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fill (...args);\n};\nexport var noFill = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noFill (...args);\n};\nexport var noStroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noStroke (...args);\n};\nexport var stroke = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.stroke (...args);\n};\nexport var arc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arc (...args);\n};\nexport var ellipse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipse (...args);\n};\nexport var circle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.circle (...args);\n};\nexport var line = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.line (...args);\n};\nexport var point = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.point (...args);\n};\nexport var quad = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quad (...args);\n};\nexport var rect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rect (...args);\n};\nexport var square = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.square (...args);\n};\nexport var triangle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.triangle (...args);\n};\nexport var plane = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.plane (...args);\n};\nexport var box = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.box (...args);\n};\nexport var sphere = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sphere (...args);\n};\nexport var cylinder = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cylinder (...args);\n};\nexport var cone = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cone (...args);\n};\nexport var ellipsoid = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipsoid (...args);\n};\nexport var torus = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.torus (...args);\n};\nexport var loadModel = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadModel (...args);\n};\nexport var model = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.model (...args);\n};\nexport var ellipseMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ellipseMode (...args);\n};\nexport var noSmooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noSmooth (...args);\n};\nexport var rectMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rectMode (...args);\n};\nexport var smooth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.smooth (...args);\n};\nexport var strokeCap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeCap (...args);\n};\nexport var strokeJoin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeJoin (...args);\n};\nexport var strokeWeight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.strokeWeight (...args);\n};\nexport var bezier = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezier (...args);\n};\nexport var bezierDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierDetail (...args);\n};\nexport var bezierPoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierPoint (...args);\n};\nexport var bezierTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierTangent (...args);\n};\nexport var curve = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curve (...args);\n};\nexport var curveDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveDetail (...args);\n};\nexport var curveTightness = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTightness (...args);\n};\nexport var curvePoint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curvePoint (...args);\n};\nexport var curveTangent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveTangent (...args);\n};\nexport var beginContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginContour (...args);\n};\nexport var beginShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.beginShape (...args);\n};\nexport var bezierVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.bezierVertex (...args);\n};\nexport var curveVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.curveVertex (...args);\n};\nexport var endContour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endContour (...args);\n};\nexport var endShape = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.endShape (...args);\n};\nexport var quadraticVertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.quadraticVertex (...args);\n};\nexport var vertex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.vertex (...args);\n};\nexport var cursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cursor (...args);\n};\nexport var frameRate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.frameRate (...args);\n};\nexport var noCursor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCursor (...args);\n};\nexport var fullscreen = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.fullscreen (...args);\n};\nexport var pixelDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pixelDensity (...args);\n};\nexport var displayDensity = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.displayDensity (...args);\n};\nexport var getURL = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURL (...args);\n};\nexport var getURLPath = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLPath (...args);\n};\nexport var getURLParams = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.getURLParams (...args);\n};\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.preload (...args);\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setup (...args);\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.draw (...args);\n};\nexport var remove = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.remove (...args);\n};\nexport var noLoop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noLoop (...args);\n};\nexport var loop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loop (...args);\n};\nexport var push = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.push (...args);\n};\nexport var redraw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.redraw (...args);\n};\nexport var resizeCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resizeCanvas (...args);\n};\nexport var noCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noCanvas (...args);\n};\nexport var createGraphics = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createGraphics (...args);\n};\nexport var blendMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blendMode (...args);\n};\nexport var setAttributes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setAttributes (...args);\n};\nexport var applyMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.applyMatrix (...args);\n};\nexport var resetMatrix = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetMatrix (...args);\n};\nexport var rotate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotate (...args);\n};\nexport var rotateX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateX (...args);\n};\nexport var rotateY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateY (...args);\n};\nexport var rotateZ = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.rotateZ (...args);\n};\nexport var scale = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.scale (...args);\n};\nexport var shearX = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearX (...args);\n};\nexport var shearY = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shearY (...args);\n};\nexport var translate = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.translate (...args);\n};\nexport var createStringDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createStringDict (...args);\n};\nexport var createNumberDict = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createNumberDict (...args);\n};\nexport var append = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.append (...args);\n};\nexport var arrayCopy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.arrayCopy (...args);\n};\nexport var concat = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.concat (...args);\n};\nexport var reverse = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.reverse (...args);\n};\nexport var shorten = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shorten (...args);\n};\nexport var shuffle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shuffle (...args);\n};\nexport var py_sort = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_sort (...args);\n};\nexport var splice = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splice (...args);\n};\nexport var subset = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.subset (...args);\n};\nexport var float = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.float (...args);\n};\nexport var int = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.int (...args);\n};\nexport var str = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.str (...args);\n};\nexport var boolean = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.boolean (...args);\n};\nexport var byte = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.byte (...args);\n};\nexport var char = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.char (...args);\n};\nexport var unchar = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unchar (...args);\n};\nexport var hex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hex (...args);\n};\nexport var unhex = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.unhex (...args);\n};\nexport var join = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.join (...args);\n};\nexport var match = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.match (...args);\n};\nexport var matchAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.matchAll (...args);\n};\nexport var nf = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nf (...args);\n};\nexport var nfc = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfc (...args);\n};\nexport var nfp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfp (...args);\n};\nexport var nfs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.nfs (...args);\n};\nexport var py_split = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.py_split (...args);\n};\nexport var splitTokens = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.splitTokens (...args);\n};\nexport var trim = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.trim (...args);\n};\nexport var setMoveThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setMoveThreshold (...args);\n};\nexport var setShakeThreshold = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setShakeThreshold (...args);\n};\nexport var keyIsDown = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.keyIsDown (...args);\n};\nexport var createImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImage (...args);\n};\nexport var saveCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveCanvas (...args);\n};\nexport var saveFrames = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveFrames (...args);\n};\nexport var image_proxy = function (img) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'img': var img = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar _set = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.set (...args);\n\t\treturn value;\n\t};\n\tvar _get = function () {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t\t}\n\t\telse {\n\t\t\tvar args = tuple ();\n\t\t}\n\t\tvar value = img.get (...args);\n\t\treturn value;\n\t};\n\timg.py_set = _set;\n\timg.py_get = _get;\n\treturn img;\n};\nexport var loadImage = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar imageObj = _P5_INSTANCE.loadImage (...args);\n\treturn image_proxy (imageObj);\n};\nexport var image = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.image (...args);\n};\nexport var tint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tint (...args);\n};\nexport var noTint = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noTint (...args);\n};\nexport var imageMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.imageMode (...args);\n};\nexport var blend = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.blend (...args);\n};\nexport var copy = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.copy (...args);\n};\nexport var filter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && (args [0] === null || callable (args [0]))) {\n\t\treturn PythonFunctions.filter (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.filter (...args);\n\t}\n};\nexport var py_get = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_get = _P5_INSTANCE.get (...args);\n\treturn p5_get;\n};\nexport var loadPixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadPixels (...args);\n};\nexport var py_set = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) <= 1) {\n\t\treturn PythonFunctions.py_set (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.py_set (...args);\n\t}\n};\nexport var updatePixels = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.updatePixels (...args);\n};\nexport var loadJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadJSON (...args);\n};\nexport var loadStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadStrings (...args);\n};\nexport var loadTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadTable (...args);\n};\nexport var loadXML = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadXML (...args);\n};\nexport var loadBytes = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadBytes (...args);\n};\nexport var httpGet = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpGet (...args);\n};\nexport var httpPost = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpPost (...args);\n};\nexport var httpDo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.httpDo (...args);\n};\nexport var createWriter = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createWriter (...args);\n};\nexport var save = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.save (...args);\n};\nexport var saveJSON = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveJSON (...args);\n};\nexport var saveStrings = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveStrings (...args);\n};\nexport var saveTable = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.saveTable (...args);\n};\nexport var day = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.day (...args);\n};\nexport var hour = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.hour (...args);\n};\nexport var minute = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.minute (...args);\n};\nexport var millis = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.millis (...args);\n};\nexport var month = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.month (...args);\n};\nexport var second = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.second (...args);\n};\nexport var year = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.year (...args);\n};\nexport var createVector = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVector (...args);\n};\nexport var abs = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.abs (...args);\n};\nexport var ceil = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ceil (...args);\n};\nexport var constrain = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.constrain (...args);\n};\nexport var dist = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.dist (...args);\n};\nexport var exp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.exp (...args);\n};\nexport var floor = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.floor (...args);\n};\nexport var lerp = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lerp (...args);\n};\nexport var log = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.log (...args);\n};\nexport var mag = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.mag (...args);\n};\nexport var map = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tif (len (args) > 1 && callable (args [0])) {\n\t\treturn PythonFunctions.map (...args);\n\t}\n\telse {\n\t\treturn _P5_INSTANCE.map (...args);\n\t}\n};\nexport var max = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.max (...args);\n};\nexport var min = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.min (...args);\n};\nexport var norm = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.norm (...args);\n};\nexport var pow = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pow (...args);\n};\nexport var round = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.round (...args);\n};\nexport var sq = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sq (...args);\n};\nexport var sqrt = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sqrt (...args);\n};\nexport var noise = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noise (...args);\n};\nexport var noiseDetail = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseDetail (...args);\n};\nexport var noiseSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noiseSeed (...args);\n};\nexport var randomSeed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomSeed (...args);\n};\nexport var random = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.random (...args);\n};\nexport var randomGaussian = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.randomGaussian (...args);\n};\nexport var acos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.acos (...args);\n};\nexport var asin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.asin (...args);\n};\nexport var atan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan (...args);\n};\nexport var atan2 = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.atan2 (...args);\n};\nexport var cos = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.cos (...args);\n};\nexport var sin = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.sin (...args);\n};\nexport var tan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.tan (...args);\n};\nexport var degrees = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.degrees (...args);\n};\nexport var radians = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.radians (...args);\n};\nexport var angleMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.angleMode (...args);\n};\nexport var textAlign = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAlign (...args);\n};\nexport var textLeading = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textLeading (...args);\n};\nexport var textSize = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textSize (...args);\n};\nexport var textStyle = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textStyle (...args);\n};\nexport var textWidth = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textWidth (...args);\n};\nexport var textAscent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textAscent (...args);\n};\nexport var textDescent = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textDescent (...args);\n};\nexport var loadFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadFont (...args);\n};\nexport var text = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.text (...args);\n};\nexport var textFont = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textFont (...args);\n};\nexport var orbitControl = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.orbitControl (...args);\n};\nexport var debugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.debugMode (...args);\n};\nexport var noDebugMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.noDebugMode (...args);\n};\nexport var ambientLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientLight (...args);\n};\nexport var directionalLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.directionalLight (...args);\n};\nexport var pointLight = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.pointLight (...args);\n};\nexport var lights = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.lights (...args);\n};\nexport var loadShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.loadShader (...args);\n};\nexport var createShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createShader (...args);\n};\nexport var shader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shader (...args);\n};\nexport var resetShader = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.resetShader (...args);\n};\nexport var normalMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.normalMaterial (...args);\n};\nexport var texture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.texture (...args);\n};\nexport var textureMode = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureMode (...args);\n};\nexport var textureWrap = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.textureWrap (...args);\n};\nexport var ambientMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ambientMaterial (...args);\n};\nexport var specularMaterial = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.specularMaterial (...args);\n};\nexport var shininess = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.shininess (...args);\n};\nexport var camera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.camera (...args);\n};\nexport var perspective = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.perspective (...args);\n};\nexport var ortho = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.ortho (...args);\n};\nexport var createCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCamera (...args);\n};\nexport var setCamera = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.setCamera (...args);\n};\nexport var select = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.select (...args);\n};\nexport var selectAll = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.selectAll (...args);\n};\nexport var removeElements = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.removeElements (...args);\n};\nexport var changed = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.changed (...args);\n};\nexport var input = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.input (...args);\n};\nexport var createDiv = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createDiv (...args);\n};\nexport var createP = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createP (...args);\n};\nexport var createSpan = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSpan (...args);\n};\nexport var createImg = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createImg (...args);\n};\nexport var createA = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createA (...args);\n};\nexport var createSlider = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSlider (...args);\n};\nexport var createButton = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createButton (...args);\n};\nexport var createCheckbox = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCheckbox (...args);\n};\nexport var createSelect = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createSelect (...args);\n};\nexport var createRadio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createRadio (...args);\n};\nexport var createColorPicker = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createColorPicker (...args);\n};\nexport var createInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createInput (...args);\n};\nexport var createFileInput = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createFileInput (...args);\n};\nexport var createVideo = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createVideo (...args);\n};\nexport var createAudio = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createAudio (...args);\n};\nexport var createCapture = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createCapture (...args);\n};\nexport var createElement = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\treturn _P5_INSTANCE.createElement (...args);\n};\nexport var createCanvas = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar canvas = _P5_INSTANCE.createCanvas (...args);\n\twidth = _P5_INSTANCE.width;\n\theight = _P5_INSTANCE.height;\n\treturn canvas;\n};\nexport var py_pop = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t\tvar args = tuple ([].slice.apply (arguments).slice (0, __ilastarg0__ + 1));\n\t}\n\telse {\n\t\tvar args = tuple ();\n\t}\n\tvar p5_pop = _P5_INSTANCE.pop (...args);\n\treturn p5_pop;\n};\nexport var size = createCanvas;\nexport var popMatrix = py_pop;\nexport var popStyle = py_pop;\nexport var pushMatrix = push;\nexport var pushStyle = push;\nexport var PVector = function (x, y, z) {\n\tif (typeof x == 'undefined' || (x != null && x.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar x = 0;\n\t};\n\tif (typeof y == 'undefined' || (y != null && y.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar y = 0;\n\t};\n\tif (typeof z == 'undefined' || (z != null && z.hasOwnProperty (\"__kwargtrans__\"))) {;\n\t\tvar z = 0;\n\t};\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'z': var z = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\treturn _P5_INSTANCE.createVector (x, y, z);\n};\nsetattr (PVector, 'dist', p5.Vector.dist);\nsetattr (PVector, 'add', p5.Vector.add);\nsetattr (PVector, 'sub', p5.Vector.sub);\nsetattr (PVector, 'mult', p5.Vector.mult);\nsetattr (PVector, 'div', p5.Vector.div);\nsetattr (PVector, 'dot', p5.Vector.dot);\nsetattr (PVector, 'cross', p5.Vector.cross);\nsetattr (PVector, 'lerp', p5.Vector.lerp);\nsetattr (PVector, 'random2D', p5.Vector.random2D);\nsetattr (PVector, 'random3D', p5.Vector.random3D);\nsetattr (PVector, 'angleBetween', p5.Vector.angleBetween);\nsetattr (PVector, 'fromAngle', p5.Vector.fromAngle);\nsetattr (PVector, 'fromAngles', p5.Vector.fromAngles);\nsetattr (PVector, 'equals', p5.Vector.equals);\nexport var pre_draw = function (p5_instance, draw_func) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_instance': var p5_instance = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t_CTX_MIDDLE = p5_instance._CTX_MIDDLE;\n\t_DEFAULT_FILL = p5_instance._DEFAULT_FILL;\n\t_DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT;\n\t_DEFAULT_STROKE = p5_instance._DEFAULT_STROKE;\n\t_DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL;\n\tADD = p5_instance.ADD;\n\tALT = p5_instance.ALT;\n\tARROW = p5_instance.ARROW;\n\tAUDIO = p5_instance.AUDIO;\n\tAUTO = p5_instance.AUTO;\n\tAXES = p5_instance.AXES;\n\tBACKSPACE = p5_instance.BACKSPACE;\n\tBASELINE = p5_instance.BASELINE;\n\tBEVEL = p5_instance.BEVEL;\n\tBEZIER = p5_instance.BEZIER;\n\tBLEND = p5_instance.BLEND;\n\tBLUR = p5_instance.BLUR;\n\tBOLD = p5_instance.BOLD;\n\tBOLDITALIC = p5_instance.BOLDITALIC;\n\tBOTTOM = p5_instance.BOTTOM;\n\tBURN = p5_instance.BURN;\n\tCENTER = p5_instance.CENTER;\n\tCHORD = p5_instance.CHORD;\n\tCLAMP = p5_instance.CLAMP;\n\tCLOSE = p5_instance.CLOSE;\n\tCONTROL = p5_instance.CONTROL;\n\tCORNER = p5_instance.CORNER;\n\tCORNERS = p5_instance.CORNERS;\n\tCROSS = p5_instance.CROSS;\n\tCURVE = p5_instance.CURVE;\n\tDARKEST = p5_instance.DARKEST;\n\tDEG_TO_RAD = p5_instance.DEG_TO_RAD;\n\tDEGREES = p5_instance.DEGREES;\n\tDELETE = p5_instance.DELETE;\n\tDIFFERENCE = p5_instance.DIFFERENCE;\n\tDILATE = p5_instance.DILATE;\n\tDODGE = p5_instance.DODGE;\n\tDOWN_ARROW = p5_instance.DOWN_ARROW;\n\tENTER = p5_instance.ENTER;\n\tERODE = p5_instance.ERODE;\n\tESCAPE = p5_instance.ESCAPE;\n\tEXCLUSION = p5_instance.EXCLUSION;\n\tFILL = p5_instance.FILL;\n\tGRAY = p5_instance.GRAY;\n\tGRID = p5_instance.GRID;\n\tHALF_PI = p5_instance.HALF_PI;\n\tHAND = p5_instance.HAND;\n\tHARD_LIGHT = p5_instance.HARD_LIGHT;\n\tHSB = p5_instance.HSB;\n\tHSL = p5_instance.HSL;\n\tIMAGE = p5_instance.IMAGE;\n\tIMMEDIATE = p5_instance.IMMEDIATE;\n\tINVERT = p5_instance.INVERT;\n\tITALIC = p5_instance.ITALIC;\n\tLANDSCAPE = p5_instance.LANDSCAPE;\n\tLEFT = p5_instance.LEFT;\n\tLEFT_ARROW = p5_instance.LEFT_ARROW;\n\tLIGHTEST = p5_instance.LIGHTEST;\n\tLINE_LOOP = p5_instance.LINE_LOOP;\n\tLINE_STRIP = p5_instance.LINE_STRIP;\n\tLINEAR = p5_instance.LINEAR;\n\tLINES = p5_instance.LINES;\n\tMIRROR = p5_instance.MIRROR;\n\tMITER = p5_instance.MITER;\n\tMOVE = p5_instance.MOVE;\n\tMULTIPLY = p5_instance.MULTIPLY;\n\tNEAREST = p5_instance.NEAREST;\n\tNORMAL = p5_instance.NORMAL;\n\tOPAQUE = p5_instance.OPAQUE;\n\tOPEN = p5_instance.OPEN;\n\tOPTION = p5_instance.OPTION;\n\tOVERLAY = p5_instance.OVERLAY;\n\tP2D = p5_instance.P2D;\n\tvar P3D = p5_instance.WEBGL;\n\tPI = p5_instance.PI;\n\tPIE = p5_instance.PIE;\n\tPOINTS = p5_instance.POINTS;\n\tPORTRAIT = p5_instance.PORTRAIT;\n\tPOSTERIZE = p5_instance.POSTERIZE;\n\tPROJECT = p5_instance.PROJECT;\n\tQUAD_STRIP = p5_instance.QUAD_STRIP;\n\tQUADRATIC = p5_instance.QUADRATIC;\n\tQUADS = p5_instance.QUADS;\n\tQUARTER_PI = p5_instance.QUARTER_PI;\n\tRAD_TO_DEG = p5_instance.RAD_TO_DEG;\n\tRADIANS = p5_instance.RADIANS;\n\tRADIUS = p5_instance.RADIUS;\n\tREPEAT = p5_instance.REPEAT;\n\tREPLACE = p5_instance.REPLACE;\n\tRETURN = p5_instance.RETURN;\n\tRGB = p5_instance.RGB;\n\tRIGHT = p5_instance.RIGHT;\n\tRIGHT_ARROW = p5_instance.RIGHT_ARROW;\n\tROUND = p5_instance.ROUND;\n\tSCREEN = p5_instance.SCREEN;\n\tSHIFT = p5_instance.SHIFT;\n\tSOFT_LIGHT = p5_instance.SOFT_LIGHT;\n\tSQUARE = p5_instance.SQUARE;\n\tSTROKE = p5_instance.STROKE;\n\tSUBTRACT = p5_instance.SUBTRACT;\n\tTAB = p5_instance.TAB;\n\tTAU = p5_instance.TAU;\n\tTEXT = p5_instance.TEXT;\n\tTEXTURE = p5_instance.TEXTURE;\n\tTHRESHOLD = p5_instance.THRESHOLD;\n\tTOP = p5_instance.TOP;\n\tTRIANGLE_FAN = p5_instance.TRIANGLE_FAN;\n\tTRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP;\n\tTRIANGLES = p5_instance.TRIANGLES;\n\tTWO_PI = p5_instance.TWO_PI;\n\tUP_ARROW = p5_instance.UP_ARROW;\n\tVIDEO = p5_instance.VIDEO;\n\tWAIT = p5_instance.WAIT;\n\tWEBGL = p5_instance.WEBGL;\n\tframeCount = p5_instance.frameCount;\n\tfocused = p5_instance.focused;\n\tdisplayWidth = p5_instance.displayWidth;\n\tdisplayHeight = p5_instance.displayHeight;\n\twindowWidth = p5_instance.windowWidth;\n\twindowHeight = p5_instance.windowHeight;\n\twidth = p5_instance.width;\n\theight = p5_instance.height;\n\tdisableFriendlyErrors = p5_instance.disableFriendlyErrors;\n\tdeviceOrientation = p5_instance.deviceOrientation;\n\taccelerationX = p5_instance.accelerationX;\n\taccelerationY = p5_instance.accelerationY;\n\taccelerationZ = p5_instance.accelerationZ;\n\tpAccelerationX = p5_instance.pAccelerationX;\n\tpAccelerationY = p5_instance.pAccelerationY;\n\tpAccelerationZ = p5_instance.pAccelerationZ;\n\trotationX = p5_instance.rotationX;\n\trotationY = p5_instance.rotationY;\n\trotationZ = p5_instance.rotationZ;\n\tpRotationX = p5_instance.pRotationX;\n\tpRotationY = p5_instance.pRotationY;\n\tpRotationZ = p5_instance.pRotationZ;\n\tturnAxis = p5_instance.turnAxis;\n\tkeyIsPressed = p5_instance.keyIsPressed;\n\tkey = p5_instance.key;\n\tkeyCode = p5_instance.keyCode;\n\tmouseX = p5_instance.mouseX;\n\tmouseY = p5_instance.mouseY;\n\tpmouseX = p5_instance.pmouseX;\n\tpmouseY = p5_instance.pmouseY;\n\twinMouseX = p5_instance.winMouseX;\n\twinMouseY = p5_instance.winMouseY;\n\tpwinMouseX = p5_instance.pwinMouseX;\n\tpwinMouseY = p5_instance.pwinMouseY;\n\tmouseButton = p5_instance.mouseButton;\n\tmouseIsPressed = p5_instance.mouseIsPressed;\n\ttouches = p5_instance.touches;\n\tpixels = p5_instance.pixels;\n\treturn draw_func ();\n};\nexport var global_p5_injection = function (p5_sketch) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar decorator = function (f) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'f': var f = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tvar wrapper = function () {\n\t\t\tif (arguments.length) {\n\t\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t}\n\t\t\t_P5_INSTANCE = p5_sketch;\n\t\t\treturn pre_draw (_P5_INSTANCE, f);\n\t\t};\n\t\treturn wrapper;\n\t};\n\treturn decorator;\n};\nexport var start_p5 = function (preload_func, setup_func, draw_func, event_functions) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'preload_func': var preload_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'setup_func': var setup_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'draw_func': var draw_func = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'event_functions': var event_functions = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar sketch_setup = function (p5_sketch) {\n\t\tif (arguments.length) {\n\t\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\t\tcase 'p5_sketch': var p5_sketch = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t}\n\t\tp5_sketch.preload = global_p5_injection (p5_sketch) (preload_func);\n\t\tp5_sketch.setup = global_p5_injection (p5_sketch) (setup_func);\n\t\tp5_sketch.draw = global_p5_injection (p5_sketch) (draw_func);\n\t};\n\tvar instance = new p5 (sketch_setup, 'sketch-holder');\n\tvar event_function_names = tuple (['deviceMoved', 'deviceTurned', 'deviceShaken', 'windowResized', 'keyPressed', 'keyReleased', 'keyTyped', 'mousePressed', 'mouseReleased', 'mouseClicked', 'doubleClicked', 'mouseMoved', 'mouseDragged', 'mouseWheel', 'touchStarted', 'touchMoved', 'touchEnded', 'keyIsDown']);\n\tfor (var f_name of (function () {\n\t\tvar __accu0__ = [];\n\t\tfor (var f of event_function_names) {\n\t\t\tif (event_functions.py_get (f, null)) {\n\t\t\t\t__accu0__.append (f);\n\t\t\t}\n\t\t}\n\t\treturn __accu0__;\n\t}) ()) {\n\t\tvar func = event_functions [f_name];\n\t\tvar event_func = global_p5_injection (instance) (func);\n\t\tsetattr (instance, f_name, event_func);\n\t}\n};\nexport var logOnloaded = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tconsole.log ('Lib loaded!');\n};\nexport var add_library = function (lib_name) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'lib_name': var lib_name = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tvar src = '';\n\treturn console.log ('Lib name is not valid:', lib_name);\n\tconsole.log ('Importing:', src);\n\tvar script = document.createElement ('script');\n\tscript.onload = logOnloaded;\n\tscript.src = src;\n\tdocument.head.appendChild (script);\n};\n\n//# sourceMappingURL=pyp5js.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_010/target/pyp5js.py",
    "content": "from python_functions import PythonFunctions\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndisableFriendlyErrors = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    __pragma__('noalias', 'clear')\n    p5_clear = _P5_INSTANCE.clear(*args)\n    __pragma__('alias', 'clear', 'py_clear')\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef preload(*args):\n    return _P5_INSTANCE.preload(*args)\n\ndef setup(*args):\n    return _P5_INSTANCE.setup(*args)\n\ndef draw(*args):\n    return _P5_INSTANCE.draw(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\n\ndef image_proxy(img):\n    \"\"\"\n    Proxy to turn of transcypt when calling img.get/set methods\n    \"\"\"\n\n    def _set(*args):\n        __pragma__('noalias', 'set')\n        value = img.set(*args)\n        __pragma__('alias', 'set', 'py_set')\n        return value\n\n    def _get(*args):\n        __pragma__('noalias', 'get')\n        value = img.get(*args)\n        __pragma__('alias', 'get', 'py_get')\n        return value\n\n    img.set = _set\n    img.get = _get\n    return img\n\n\ndef loadImage(*args):\n    imageObj = _P5_INSTANCE.loadImage(*args)\n    return image_proxy(imageObj)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    __pragma__('noalias', 'get')\n    p5_get = _P5_INSTANCE.get(*args)\n    __pragma__('alias', 'get', 'py_get')\n    return p5_get\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\n\ndef pop(*args):\n    __pragma__('noalias', 'pop')\n    p5_pop = _P5_INSTANCE.pop(*args)\n    __pragma__('alias', 'pop', 'py_pop')\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a helper/alias to create p5.Vector objects\ndef PVector(x=0, y=0, z=0):\n    return _P5_INSTANCE.createVector(x, y, z)\n# aliases  for p5.Vector class methods\nsetattr(PVector, 'dist', p5.Vector.dist)\nsetattr(PVector, 'add', p5.Vector.add)\nsetattr(PVector, 'sub', p5.Vector.sub)\nsetattr(PVector, 'mult', p5.Vector.mult)\nsetattr(PVector, 'div', p5.Vector.div)\nsetattr(PVector, 'dot', p5.Vector.dot)\nsetattr(PVector, 'cross', p5.Vector.cross)\nsetattr(PVector, 'lerp', p5.Vector.lerp)\nsetattr(PVector, 'random2D', p5.Vector.random2D)\nsetattr(PVector, 'random3D', p5.Vector.random3D)\nsetattr(PVector, 'angleBetween', p5.Vector.angleBetween)\nsetattr(PVector, 'fromAngle', p5.Vector.fromAngle)\nsetattr(PVector, 'fromAngles', p5.Vector.fromAngles)\nsetattr(PVector, 'equals', p5.Vector.equals)\n\ndef pre_draw(p5_instance, draw_func):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP, QUADRATIC\n    global QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global disableFriendlyErrors, deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    disableFriendlyErrors = p5_instance.disableFriendlyErrors\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func()\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f):\n        def wrapper():\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: a Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    instance = __new__(p5(sketch_setup, 'sketch-holder'))\n\n    # inject event functions into p5\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\"\n    )\n\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(instance)(func)\n        setattr(instance, f_name, event_func)\n\n\ndef logOnloaded():\n    console.log(\"Lib loaded!\")\n\n\ndef add_library(lib_name):\n    # placeholder for https://github.com/berinhard/pyp5js/issues/31\n    src = ''\n\n    return console.log(\"Lib name is not valid:\", lib_name)\n\n    console.log(\"Importing:\", src)\n\n    script = document.createElement(\"script\")\n    script.onload = logOnloaded\n    script.src = src\n    document.head.appendChild(script)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_010/target/python_functions.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:19\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, abs, all, any, assert, bool, bytearray, bytes, callable, chr, copy, deepcopy, delattr, dict, dir, divmod, enumerate, filter, float, getattr, hasattr, input, int, isinstance, issubclass, len, list, map, max, min, object, ord, pow, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, round, set, setattr, sorted, str, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nvar __name__ = 'python_functions';\nexport var PythonFunctions =  __class__ ('PythonFunctions', [object], {\n\t__module__: __name__,\n});\nsetattr (PythonFunctions, 'map', map);\nsetattr (PythonFunctions, 'filter', filter);\nsetattr (PythonFunctions, 'set', set);\n\n//# sourceMappingURL=python_functions.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_010/target/python_functions.py",
    "content": "class PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n"
  },
  {
    "path": "docs/examples/transcrypt/sketch_010/target/target_sketch.js",
    "content": "// Transcrypt'ed from Python, 2021-11-02 13:06:19\nimport {AssertionError, AttributeError, BaseException, DeprecationWarning, Exception, IndexError, IterableError, KeyError, NotImplementedError, RuntimeWarning, StopIteration, UserWarning, ValueError, Warning, __JsIterator__, __PyIterator__, __Terminal__, __add__, __and__, __call__, __class__, __envir__, __eq__, __floordiv__, __ge__, __get__, __getcm__, __getitem__, __getslice__, __getsm__, __gt__, __i__, __iadd__, __iand__, __idiv__, __ijsmod__, __ilshift__, __imatmul__, __imod__, __imul__, __in__, __init__, __ior__, __ipow__, __irshift__, __isub__, __ixor__, __jsUsePyNext__, __jsmod__, __k__, __kwargtrans__, __le__, __lshift__, __lt__, __matmul__, __mergefields__, __mergekwargtrans__, __mod__, __mul__, __ne__, __neg__, __nest__, __or__, __pow__, __pragma__, __pyUseJsNext__, __rshift__, __setitem__, __setproperty__, __setslice__, __sort__, __specialattrib__, __sub__, __super__, __t__, __terminal__, __truediv__, __withblock__, __xor__, all, any, assert, bool, bytearray, bytes, callable, chr, deepcopy, delattr, dict, dir, divmod, enumerate, getattr, hasattr, isinstance, issubclass, len, list, object, ord, print, property, py_TypeError, py_iter, py_metatype, py_next, py_reversed, py_typeof, range, repr, set, setattr, sorted, sum, tuple, zip} from './org.transcrypt.__runtime__.js';\nimport {ADD, ALT, ARROW, AUDIO, AUTO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC, BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST, DEGREES, DEG_TO_RAD, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION, FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE, LEFT, LEFT_ARROW, LIGHTEST, LINEAR, LINES, LINE_LOOP, LINE_STRIP, MIRROR, MITER, MOVE, MULTIPLY, NEAREST, NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, PVector, QUADRATIC, QUADS, QUAD_STRIP, QUARTER_PI, RADIANS, RADIUS, RAD_TO_DEG, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW, ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP, TRIANGLES, TRIANGLE_FAN, TRIANGLE_STRIP, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL, _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL, _P5_INSTANCE, abs, accelerationX, accelerationY, accelerationZ, acos, add_library, alpha, ambientLight, ambientMaterial, angleMode, append, applyMatrix, arc, arrayCopy, asin, atan, atan2, background, beginContour, beginShape, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, blend, blendMode, blue, boolean, box, brightness, byte, camera, ceil, changed, char, circle, color, colorMode, concat, cone, constrain, copy, cos, createA, createAudio, createButton, createCamera, createCanvas, createCapture, createCheckbox, createColorPicker, createDiv, createElement, createFileInput, createGraphics, createImage, createImg, createInput, createNumberDict, createP, createRadio, createSelect, createShader, createSlider, createSpan, createStringDict, createVector, createVideo, createWriter, cursor, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, cylinder, day, debugMode, degrees, deviceOrientation, directionalLight, disableFriendlyErrors, displayDensity, displayHeight, displayWidth, dist, ellipse, ellipseMode, ellipsoid, endContour, endShape, erase, exp, fill, filter, float, floor, focused, frameCount, frameRate, fullscreen, getURL, getURLParams, getURLPath, global_p5_injection, green, height, hex, hour, httpDo, httpGet, httpPost, hue, image, imageMode, image_proxy, input, int, join, key, keyCode, keyIsPressed, lerp, lerpColor, lightness, lights, line, loadBytes, loadFont, loadImage, loadJSON, loadModel, loadPixels, loadShader, loadStrings, loadTable, loadXML, log, logOnloaded, loop, mag, map, match, matchAll, max, millis, min, minute, model, month, mouseButton, mouseIsPressed, mouseX, mouseY, nf, nfc, nfp, nfs, noCanvas, noCursor, noDebugMode, noErase, noFill, noLoop, noSmooth, noStroke, noTint, noise, noiseDetail, noiseSeed, norm, normalMaterial, orbitControl, ortho, pAccelerationX, pAccelerationY, pAccelerationZ, pRotationX, pRotationY, pRotationZ, perspective, pixelDensity, pixels, plane, pmouseX, pmouseY, point, pointLight, popMatrix, popStyle, pow, pre_draw, push, pushMatrix, pushStyle, pwinMouseX, pwinMouseY, py_clear, py_get, py_pop, py_set, py_sort, py_split, quad, quadraticVertex, radians, random, randomGaussian, randomSeed, rect, rectMode, red, redraw, remove, removeElements, resetMatrix, resetShader, resizeCanvas, reverse, rotate, rotateX, rotateY, rotateZ, rotationX, rotationY, rotationZ, round, saturation, save, saveCanvas, saveFrames, saveJSON, saveStrings, saveTable, scale, second, select, selectAll, setAttributes, setCamera, setMoveThreshold, setShakeThreshold, shader, shearX, shearY, shininess, shorten, shuffle, sin, size, smooth, specularMaterial, sphere, splice, splitTokens, sq, sqrt, square, start_p5, str, stroke, strokeCap, strokeJoin, strokeWeight, subset, tan, text, textAlign, textAscent, textDescent, textFont, textLeading, textSize, textStyle, textWidth, texture, textureMode, textureWrap, tint, torus, touches, translate, triangle, trim, turnAxis, unchar, unhex, updatePixels, vertex, width, winMouseX, winMouseY, windowHeight, windowWidth, year} from './pyp5js.js';\nvar __name__ = '__main__';\nexport var preload = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\t// pass;\n};\nexport var deviceMoved = null;\nexport var deviceTurned = null;\nexport var deviceShaken = null;\nexport var keyPressed = null;\nexport var keyReleased = null;\nexport var keyTyped = null;\nexport var mouseMoved = null;\nexport var mouseDragged = null;\nexport var mousePressed = null;\nexport var mouseReleased = null;\nexport var mouseClicked = null;\nexport var doubleClicked = null;\nexport var mouseWheel = null;\nexport var touchStarted = null;\nexport var touchMoved = null;\nexport var touchEnded = null;\nexport var windowResized = null;\nexport var keyIsDown = null;\nexport var MY_POINTS = [tuple ([100, 50]), tuple ([300, 100]), tuple ([200, 300]), tuple ([100, 300])];\nexport var FRAME_IDX = 0;\nexport var POINT_SIZE = 10;\nexport var CNV = null;\nvar setup = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tCNV = createCanvas (400, 400);\n\tvar BUTTON_PREV = createButton ('Previous frame');\n\tBUTTON_PREV.position (CNV.position ().x, CNV.height + CNV.position ().y);\n\tBUTTON_PREV.mousePressed (prev_frame);\n\tvar BUTTON_NEXT = createButton ('Next frame');\n\tBUTTON_NEXT.position (CNV.position ().x + BUTTON_PREV.size ().width, BUTTON_PREV.position ().y);\n\tBUTTON_NEXT.mousePressed (next_frame);\n\tbackground (190);\n\tdraw_labels (MY_POINTS);\n};\nvar draw = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tbackground (190);\n\tdraw_closed_curve_vertex (MY_POINTS, FRAME_IDX);\n\tdraw_labels (MY_POINTS);\n};\nvar mouseClicked = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (is_point_in_canvas (mouseX, mouseY)) {\n\t\tvar i = get_point_index (mouseX, mouseY);\n\t\tif (i != null) {\n\t\t\tMY_POINTS.py_pop (i);\n\t\t\tif (FRAME_IDX >= len (MY_POINTS)) {\n\t\t\t\tFRAME_IDX = len (MY_POINTS) - 1;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tMY_POINTS.append (tuple ([mouseX, mouseY]));\n\t\t}\n\t}\n};\nexport var get_point_index = function (x, y) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tfor (var [idx, [p_x, p_y]] of enumerate (MY_POINTS)) {\n\t\tif ((p_x - POINT_SIZE < x && x < p_x + POINT_SIZE) && (p_y - POINT_SIZE < y && y < p_y + POINT_SIZE)) {\n\t\t\treturn idx;\n\t\t}\n\t}\n};\nexport var is_point_in_canvas = function (x, y) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'x': var x = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'y': var y = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif ((x < 0 || x > CNV.width) || (y < 0 || y > CNV.height)) {\n\t\treturn false;\n\t}\n\treturn true;\n};\nexport var next_frame = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (FRAME_IDX < len (MY_POINTS) - 1) {\n\t\tFRAME_IDX++;\n\t}\n};\nexport var prev_frame = function () {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (FRAME_IDX > 0) {\n\t\tFRAME_IDX--;\n\t}\n};\nexport var draw_closed_curve_vertex = function (points, max_idx) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'points': var points = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'max_idx': var max_idx = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tif (len (points) < 2) {\n\t\treturn ;\n\t}\n\tvar used_points = [];\n\tbeginShape ();\n\tvar idx = len (points) - 1;\n\tcurveVertex (...points [idx]);\n\tused_points.append (idx);\n\tfor (var [idx, p] of enumerate (points)) {\n\t\tif (idx > max_idx) {\n\t\t\tbreak;\n\t\t}\n\t\tcurveVertex (...p);\n\t\tused_points.append (idx);\n\t}\n\tvar idx = 0;\n\tcurveVertex (...points [idx]);\n\tused_points.append (idx);\n\tvar idx = 1;\n\tcurveVertex (...points [idx]);\n\tused_points.append (idx);\n\tendShape ();\n\ttextSize (10);\n\tnoStroke ();\n\ttext ('Points used to draw this curve (first and last are control points only)', 5, CNV.height - 30);\n\ttextSize (20);\n\ttext (', '.join (used_points), 10, CNV.height - 10);\n\tstroke (0);\n\tfor (var i = 0; i < len (used_points) - 1; i++) {\n\t\tdraw_dotted_line (points [used_points [i]], points [used_points [i + 1]]);\n\t}\n};\nexport var draw_labels = function (points) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'points': var points = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tstrokeWeight (POINT_SIZE);\n\tfor (var [idx, p] of enumerate (points)) {\n\t\tvar ts = 32;\n\t\ttextSize (ts);\n\t\tvar textY = p [1] - ts / 2;\n\t\tif (p [1] > CNV.height / 2) {\n\t\t\tvar textY = p [1] + ts;\n\t\t}\n\t\tnoStroke ();\n\t\ttext (idx, p [0], textY);\n\t\tstroke (0);\n\t\tpoint (...p);\n\t}\n\tstrokeWeight (1);\n};\nexport var draw_dotted_line = function (p1, p2) {\n\tif (arguments.length) {\n\t\tvar __ilastarg0__ = arguments.length - 1;\n\t\tif (arguments [__ilastarg0__] && arguments [__ilastarg0__].hasOwnProperty (\"__kwargtrans__\")) {\n\t\t\tvar __allkwargs0__ = arguments [__ilastarg0__--];\n\t\t\tfor (var __attrib0__ in __allkwargs0__) {\n\t\t\t\tswitch (__attrib0__) {\n\t\t\t\t\tcase 'p1': var p1 = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t\tcase 'p2': var p2 = __allkwargs0__ [__attrib0__]; break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t}\n\tstroke (100);\n\tstrokeWeight (3);\n\tfor (var i = 0; i < 11; i++) {\n\t\tvar x = lerp (p1 [0], p2 [0], i / 10);\n\t\tvar y = lerp (p1 [1], p2 [1], i / 10);\n\t\tpoint (x, y);\n\t}\n\tstroke (0);\n\tstrokeWeight (1);\n};\nexport var event_functions = dict ({'deviceMoved': deviceMoved, 'deviceTurned': deviceTurned, 'deviceShaken': deviceShaken, 'keyPressed': keyPressed, 'keyReleased': keyReleased, 'keyTyped': keyTyped, 'mouseMoved': mouseMoved, 'mouseDragged': mouseDragged, 'mousePressed': mousePressed, 'mouseReleased': mouseReleased, 'mouseClicked': mouseClicked, 'doubleClicked': doubleClicked, 'mouseWheel': mouseWheel, 'touchStarted': touchStarted, 'touchMoved': touchMoved, 'touchEnded': touchEnded, 'windowResized': windowResized, 'keyIsDown': keyIsDown});\nstart_p5 (preload, setup, draw, event_functions);\n\n//# sourceMappingURL=target_sketch.map"
  },
  {
    "path": "docs/examples/transcrypt/sketch_010/target/target_sketch.project",
    "content": "{\"options\": {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_010/target_sketch.py\", \"anno\": false, \"alimod\": false, \"build\": true, \"complex\": false, \"docat\": false, \"dassert\": false, \"dcheck\": false, \"dextex\": false, \"dlog\": false, \"dmap\": false, \"dnostrip\": false, \"dstat\": false, \"dtree\": false, \"esv\": null, \"ecom\": false, \"fcall\": false, \"gen\": false, \"iconv\": false, \"jscall\": false, \"jskeys\": false, \"jsmod\": false, \"kwargs\": true, \"keycheck\": false, \"license\": false, \"map\": true, \"nomin\": true, \"opov\": false, \"outdir\": null, \"parent\": null, \"run\": false, \"symbols\": null, \"sform\": false, \"tconv\": false, \"unit\": null, \"verbose\": false, \"x\": null, \"xreex\": false, \"xglobs\": false, \"xpath\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt\", \"xtiny\": false, \"star\": false}, \"modules\": [{\"source\": \"/home/bernardo/.pyenv/versions/pyp5js/lib/python3.8/site-packages/transcrypt/modules/org/transcrypt/__runtime__.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_010/__target__/org.transcrypt.__runtime__.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_010/target_sketch.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_010/__target__/target_sketch.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/pyp5js.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_010/__target__/pyp5js.js\"}, {\"source\": \"/home/bernardo/envs/pyp5js/pyp5js/templates/transcrypt/python_functions.py\", \"target\": \"/home/bernardo/envs/pyp5js/docs/examples/transcrypt/sketch_010/__target__/python_functions.js\"}]}"
  },
  {
    "path": "docs/examples/transcrypt/sketch_010/target/target_sketch.py",
    "content": "from pyp5js import *\n\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\nkeyIsDown = None\n\n\nMY_POINTS = [\n    (100, 50),\n    (300, 100),\n    (200, 300),\n    (100, 300),\n]\nFRAME_IDX = 0\nPOINT_SIZE = 10\nCNV = None\n\ndef setup():\n    global CNV\n    CNV = createCanvas(400, 400)\n\n    BUTTON_PREV = createButton('Previous frame')\n    BUTTON_PREV.position(CNV.position().x,\n                         CNV.height + CNV.position().y)\n    BUTTON_PREV.mousePressed(prev_frame)\n\n    BUTTON_NEXT = createButton('Next frame')\n    BUTTON_NEXT.position(CNV.position().x + BUTTON_PREV.size().width,\n                         BUTTON_PREV.position().y)\n    BUTTON_NEXT.mousePressed(next_frame)\n\n    background(190)\n    draw_labels(MY_POINTS)\n\ndef draw():\n    background(190)\n    draw_closed_curve_vertex(MY_POINTS, FRAME_IDX)\n    draw_labels(MY_POINTS)\n\ndef mouseClicked():\n    global FRAME_IDX\n    global MY_POINTS\n    if is_point_in_canvas(mouseX, mouseY):\n        i = get_point_index(mouseX, mouseY)\n        if i != None:\n            MY_POINTS.pop(i)\n            if FRAME_IDX >= len(MY_POINTS):\n                # cap i if it exceeds maximum length now.\n                FRAME_IDX = len(MY_POINTS) - 1\n        else:\n            MY_POINTS.append((mouseX, mouseY))\n\ndef get_point_index(x, y):\n    for idx, (p_x,p_y) in enumerate(MY_POINTS):\n        if (p_x - POINT_SIZE < x and x < p_x + POINT_SIZE) and \\\n           (p_y - POINT_SIZE < y and y < p_y + POINT_SIZE):\n            return idx\n\ndef is_point_in_canvas(x, y):\n    if (x < 0 or x > CNV.width) or \\\n       (y < 0 or y > CNV.height):\n        return False\n    return True\n\ndef next_frame():\n    global FRAME_IDX\n    if FRAME_IDX < len(MY_POINTS) - 1:\n        FRAME_IDX += 1\n\ndef prev_frame():\n    global FRAME_IDX\n    if FRAME_IDX > 0:\n        FRAME_IDX -= 1\n\ndef draw_closed_curve_vertex(points, max_idx):\n    if len(points) < 2:\n        return\n    used_points = []\n    beginShape()\n\n    # start by using the last point as the initial control point\n    idx = len(points) - 1\n    curveVertex(*points[idx])\n    used_points.append(idx)\n\n    # add each point to the curve\n    for idx,p in enumerate(points):\n        if idx > max_idx:\n            break\n        curveVertex(*p)\n        used_points.append(idx)\n\n    # to close the curve, we need to create the last curve.\n    # for that, we must go to the first point\n    idx = 0\n    curveVertex(*points[idx])\n    used_points.append(idx)\n\n    # and use the next point as a control point.\n    idx = 1\n    curveVertex(*points[idx])\n    used_points.append(idx)\n    endShape()\n\n    textSize(10)\n    noStroke()\n    text('Points used to draw this curve (first and last are control points only)', 5, CNV.height - 30)\n\n    textSize(20)\n    text(', '.join(used_points), 10, CNV.height - 10)\n    stroke(0)\n\n    for i in range(len(used_points) - 1):\n        draw_dotted_line(points[used_points[i]],\n                         points[used_points[i + 1]])\n\ndef draw_labels(points):\n    strokeWeight(POINT_SIZE)\n    for idx, p in enumerate(points):\n        ts = 32\n        textSize(ts)\n        textY = p[1] - ts / 2\n\n        if p[1] > CNV.height / 2:\n            textY = p[1] + ts\n\n        noStroke()\n        text(idx, p[0], textY)\n        stroke(0)\n        point(*p)\n\n    strokeWeight(1)\n\ndef draw_dotted_line(p1, p2):\n    stroke(100)\n    strokeWeight(3)\n    for i in range(11):\n        x = lerp(p1[0], p2[0], i/10)\n        y = lerp(p1[1], p2[1], i/10)\n        point(x, y)\n\n    stroke(0)\n    strokeWeight(1)\n\n\n\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n    \"keyIsDown\": keyIsDown,\n}\n\nstart_p5(preload, setup, draw, event_functions)"
  },
  {
    "path": "docs/index.md",
    "content": "## pyp5js: drawing with Python 3\n\n[![PyPI version](https://badge.fury.io/py/pyp5js.svg)](https://badge.fury.io/py/pyp5js)\n![Continuous Integration](https://github.com/berinhard/pyp5js/workflows/Continuous%20Integration/badge.svg?branch=develop&event=push)\n[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/berinhard/pyp5js/tree/main)\n\n\n> [Processing](https://processing.org) ideas and Python 3 together with [P5.js](https://p5js.org) in the browser, using [Transcrypt](https://transcrypt.org/).\n\nPython 3 drawing in the web 🐍 🐍 🐍  Try it [here](https://berinhard.github.io/pyp5js/pyodide/)!\n\n`pyp5js` covers **all** the methods, variables and event handlers listed in [the p5.js API documentation](https://p5js.org/reference/). Here's an example of a valid Python code using p5.js API:\n\n```python\ndef setup():\n    createCanvas(200, 200)\n\ndef draw():\n    background(200)\n    diameter = sin(frameCount / 60) * 50 + 50\n    fill(\"blue\")\n    ellipse(100, 100, diameter, diameter)\n```\n<iframe src=\"/pyp5js/examples/sketch_000/\" style=\"width: 200px; height: 200px; border: 0px\"></iframe>\n\n## Examples\n\n[Click here](https://berinhard.github.io/pyp5js/examples/) to see a list of\nexamples generated with `pyp5js`.\n\n\n## Installation\n\nThis project requires Python 3 and is now on PyPI, so you can install it with\n`pip` or `pip3`, depending on your environment:\n\n```\n$ pip install pyp5js\n```\n(You might have to install `setuptools` first, if it's not already installed)\n\n## Quickstart\n\nSince you'll be writing Python code and then generating the correspondent\nP5.js code from it, pyp5js provides a web application interface to help you\ngenerate the files.\n\nSo, to start the application, you'll have to run:\n\n```bash\n$ pyp5js serve\n```\n\nThen point your browser to [http://localhost:5000/](http://localhost:5000/) and\ncreate a new sketch via the browser by filling the form with the name of your\nsketch. This command will compile the sketches on the\nfly, so after changing/saving the sketch file, you just need to reload the page\non your browser. It'll also guide you on which file you have to edit the Python code\nand how to see it running after you save it.\n\n`pyp5js` will create a new directory in your home called `sketchbook-pyp5js`.\nIf you don't want to save your sketch in this default directory, you can set\nthe environment variable `SKETCHBOOK_DIR` to point to the directory you want\nto use. Or you can also run the `serve` command as:\n\n```bash\n$ SKETCHBOOK_DIR='~/my-custom-sketchbook' pyp5js serve\n```\n\nNow, have fun =]\n\n## Command Line Interface\n\nSo, to start a new sketch, you'll have to run:\n\n```bash\n$ pyp5js new my_sketch\n```\n\nThis command will create a directory with the following code structure using **p5.js 1.0.0**:\n\n```\n~ my_sketch/\n  ~ static /\n  ~ target /\n  - index.html\n  - my_sketch.py\n```\n\nThe `index.html` is prepared to display your sketch, so you'll have to keep it\nopen in your browser (I really advise you to use\n[Firefox](https://www.mozilla.org/en-US/firefox/new/)) to see results from the\ncode you'll add to `my_sketch.py`.\n\nTo see your app on your browser you'll need to run a Web server (opening the\n\"index.html\" file directly won't work since [it is disabled by\ndefault](https://github.com/berinhard/pyp5js/issues/72)) - we packaged it\nalready for you, just run:\n\n```bash\n$ pyp5js serve\n```\n\nIf you just want to compile your code (without running the Web server) there's\nthe `compile` command:\n\n```\n$ pyp5js compile my_sketch\n```\n\nIf you're lazy like me, you can use the `monitor` command instead of the previous\none. The command will monitor your sketch directory and keep track of any\nchanges on any `.py` files. When it notices a new change, it automatically runs\nthe compile process for you:\n\n```\n$ pyp5js monitor my_sketch\n```\n\nYou can also use the `--monitor` option within the `new` command by running:\n\n```\n$ pyp5js new my_sketch --monitor\n```\n\nAll of the command-line interface methods have a few optional arguments, such\nas specifying the sketch directory. You can check them by running:\n\n```\n$ pyp5js --help\n\n# or also\n\n$ pyp5js new --help\n```\n\n\n### Known [issues](https://github.com/berinhard/pyp5js/issues), differences to the Processing.Py and P5.js ways of doing things and limitations\n\n- Remember to use **P5.js** method names & conventions for most things.\n\n- There are no Py.Processing `with` context facilities for `push/pop` or `beginShape/endShape`.\n\n- There are no `PVector` objects, with their nice syntatic operator overloaded sugar - use `p5.Vector` with `createVector()` and P5.js conventions ... for now...\n\n- For the `mouseWheel()` event funtion, use `def mouseWheel()` with NO parameters, then, inside the function, the magic `event.delta` will have a value equivalent to the one returned by Java&Python Mode's `event.getCount()`.\n\n- At this point, it is a known limitation that you have to \"declare\" global variables before `setup()` and `draw()`, maybe using `name = None`, as they can't be created inside methods.\n\n- Not all Python libs are available when using Transcrypt because they required a JS-version to be enabled. In [this link](https://github.com/QQuick/Transcrypt/tree/master/transcrypt/modules) you can take a look in all modules Transcrypt enables.\n\n## How can I contribute?\n\nMore details [here](https://github.com/berinhard/pyp5js/blob/develop/CONTRIBUTING.md).\n\n### References\n\nThis project started from a proof of concept based in [Axel Tanner's \"Transcrypt & p5js\" blogpost](https://4nomore.net/2018/transcrypt_p5js/). The source code in [this Github repo](https://github.com/berinhard/pyp5js).\n\nThe [Pyodide](https://github.com/iodide-project/pyodide) interpreter was implemented based on [Luca Damasco's experiment](https://github.com/Luxapodular/Py5.js) supported by [COSA (The Clinic for Open Source Arts)](https://www.du.edu/ahss/opensourcearts/) at the University of Denver College of Arts and Sciences.\n"
  },
  {
    "path": "docs/pyodide/afterBody.js",
    "content": "const initialSketch = checkForSketch();\n\n//// Configure ACE editor\nconst editor = ace.edit(\"text-editor\");\neditor.session.setMode(\"ace/mode/python\");\neditor.setFontSize(18);\neditor.session.setOptions({\n  tabSize: 4,\n});\neditor.setValue(initialSketch);\n\n//// Update div's content with most up to date code\neditor.session.on(\"change\", function () {\n  document.getElementById(\"id_py_code\").innerHTML = editor\n    .getSession()\n    .getValue();\n});\ndocument.getElementById(\"id_py_code\").innerHTML = initialSketch;\n\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n  //// Buttons\n  const shareBtn = document.getElementById(\"shareBtn\");\n  const collapseBtn = document.getElementById(\"collapseBtn\");\n  const executeBtn = document.getElementById(\"executeBtn\");\n  const clearBtn = document.getElementById(\"clearBtn\");\n\n  //// Event functions\n  function runCode() {\n    document.getElementById(\"sketch-holder\").innerHTML = \"\";\n    const userCode = editor.getSession().getValue();\n\n    // from pyp5js\n    window.runSketchCode(userCode);\n  }\n\n  function cleanKeyCode(e) {\n    // Shortcuts work for Ctrl or Cmd\n    if (e.ctrlKey || e.metaKey) {\n      return e.keyCode;\n    }\n  }\n\n  function keyDown(e) {\n    if (cleanKeyCode(e) === 13) {\n      // Ctrl + Enter to run\n      e.preventDefault();\n      executeBtn.click();\n    } else if (cleanKeyCode(e) === 190) {\n      // Ctrl + . to clear\n      e.preventDefault();\n      clearBtn.click();\n    }\n  }\n\n  executeBtn.addEventListener(\"click\", () => {\n    if (window.instance) {\n      runCode();\n    } else {\n      window.alert(\n        \"Pyodide is still loading.\\nPlease, wait a few seconds and try to run it again.\"\n      );\n    }\n  });\n  clearBtn.addEventListener(\"click\", () => {\n    if (window.instance) {\n      document.getElementById(\"sketch-holder\").innerHTML = \"\";\n      window.instance.remove();\n    }\n  });\n  shareBtn.addEventListener(\"click\", () => {\n    if (window.instance) {\n      const sketchUrl = createSketchUrl();\n      copyTextToClipboard(sketchUrl);\n      shareBtn.textContent = \"Copied URL!\";\n      setTimeout(() => {\n        shareBtn.textContent = \"Share\";\n      }, 3000);\n      runCode();\n    }\n  });\n  collapseBtn.addEventListener(\"click\", () => {\n    const textEditorEl = document.getElementById(\"text-editor\");\n    textEditorEl.classList.toggle(\"hidden-editor\");\n    collapseBtn.textContent = collapseBtn.textContent.includes(\"Collapse\")\n      ? \"Expand\"\n      : \"Collapse\";\n  });\n  document.body.addEventListener(\"keydown\", keyDown);\n});\n"
  },
  {
    "path": "docs/pyodide/index.html",
    "content": "<!DOCTYPE html>\n\n<!-- pyp5js index.html boilerplate -->\n<html lang=\"en\">\n\n<head>\n\n  <meta charset=\"utf-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  <title>pyp5js with Pyodide Demo</title>\n\n  <script src=\"https://cdn.jsdelivr.net/npm/p5@1.0.0/lib/p5.js\"></script>\n  <script src=\"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js\"></script>\n\n  <script src=\"https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/ace.js\"\n    integrity=\"sha512-GZ1RIgZaSc8rnco/8CXfRdCpDxRCphenIiZ2ztLy3XQfCbQUSCuk8IudvNHxkRA3oUg6q0qejgN/qqyG1duv5Q==\"\n    crossorigin=\"anonymous\"></script>\n  <script src=\"https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/mode-python.min.js\"\n    integrity=\"sha512-2Ke4vMGrMfYRM55pT1aA5bw7Pl82Sc7K5Hg8XZYZu+EQrb0AO1mNYTagwZm+MFVAImYS9Mlnm73zcgc01wPXxA==\"\n    crossorigin=\"anonymous\"></script>\n  <script src=\"https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/theme-monokai.min.js\"\n    integrity=\"sha512-S4i/WUGRs22+8rjUVu4kBjfNuBNp8GVsgcK2lbaFdws4q6TF3Nd00LxqnHhuxS9iVDfNcUh0h6OxFUMP5DBD+g==\"\n    crossorigin=\"anonymous\"></script>\n  <script src=\"share.js\"></script>\n  <script src=\"target/target_sketch.js\" type=\"module\"></script>\n\n  <link rel=\"stylesheet\" href=\"https://unpkg.com/basscss@7.1.1/css/basscss.min.css\">\n  <link rel=\"stylesheet\" href=\"styles.css\">\n</head>\n\n<body>\n  <p style=\"font-family: 'sans'; font-size:18px\"><b>pyp5js</b> demo editor</p>\n\n  <div class=\"demoContainer\">\n    <div style=\"display: block\">\n      <textarea class=\"display-none\" id=\"id_py_code\" name=\"py_code\"></textarea>\n      <div class=\"code-container\">\n        <div class=\"text-editor-box\">\n          <button id=\"collapseBtn\" title=\"Collapse the code editor\" type=\"button\"\n            class=\"btn btn-primary bg-orange rounded py1 px2 pb3\">\n            Collapse</button>\n          <div id=\"text-editor\" class=\"text-editor\"></div>\n          <div id=\"sketch-buttons\" class=\"clearfix\">\n            <div class=\"left-buttons\">\n              <button id=\"executeBtn\" title=\"(Ctrl/Cmd + Enter) to refresh the skecth\" type=\"button\"\n                class=\"btn btn-primary bg-green rounded py1 px2 mb1\">Run</button>\n              <button id=\"clearBtn\" title=\"(Ctrl/Cmd + .) to clear the skecth\" type=\"button\"\n                class=\"btn btn-primary rounded bg-red py1 px2 mb1\">Clear</button>\n            </div>\n            <button id=\"shareBtn\" class=\"btn btn-primary rounded py1 px2 mb1\" type=\"button\"\n              title=\"Get a shareable link to this sketch\">Share</button>\n          </div>\n        </div>\n      </div>\n    </div>\n\n    <div id=\"sketch-holder\">\n      <!-- You sketch will go here! -->\n    </div>\n  </div>\n  <div>\n    <p style=\"font-family: 'sans'; font-size:14px\">If you execute the code but nothing is being rendered in the browser,\n      please open your browser's console to read the error traceback (usually you can do this by pressing F12 and\n      clicking in the Console tab).</p>\n  </div>\n  <div>\n    <p style=\"background-color: #f6f8fa; font-family: 'sans'; font-size:14px\"><a\n        href=\"https://github.com/berinhard/pyp5js\"><b>pyp5js</b></a> running on top of <a\n        href=\"https://github.com/iodide-project/pyodide\" target=\"_blank\">pyodide</a></p>\n  </div>\n</body>\n<script src=\"afterBody.js\"></script>\n\n</html>"
  },
  {
    "path": "docs/pyodide/index.html.template",
    "content": "<!DOCTYPE html>\n\n<!-- pyp5js index.html boilerplate -->\n<html lang=\"en\">\n\n<head>\n\n  <meta charset=\"utf-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  <title>pyp5js with Pyodide Demo</title>\n\n  <script src=\"https://cdn.jsdelivr.net/npm/p5@1.0.0/lib/p5.js\"></script>\n  <script src=\"{{ pyodide_js_url }}\"></script>\n\n  <script src=\"https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/ace.js\"\n    integrity=\"sha512-GZ1RIgZaSc8rnco/8CXfRdCpDxRCphenIiZ2ztLy3XQfCbQUSCuk8IudvNHxkRA3oUg6q0qejgN/qqyG1duv5Q==\"\n    crossorigin=\"anonymous\"></script>\n  <script src=\"https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/mode-python.min.js\"\n    integrity=\"sha512-2Ke4vMGrMfYRM55pT1aA5bw7Pl82Sc7K5Hg8XZYZu+EQrb0AO1mNYTagwZm+MFVAImYS9Mlnm73zcgc01wPXxA==\"\n    crossorigin=\"anonymous\"></script>\n  <script src=\"https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/theme-monokai.min.js\"\n    integrity=\"sha512-S4i/WUGRs22+8rjUVu4kBjfNuBNp8GVsgcK2lbaFdws4q6TF3Nd00LxqnHhuxS9iVDfNcUh0h6OxFUMP5DBD+g==\"\n    crossorigin=\"anonymous\"></script>\n  <script src=\"share.js\"></script>\n  <script src=\"{{ sketch_js_url }}\" type=\"module\"></script>\n\n  <link rel=\"stylesheet\" href=\"https://unpkg.com/basscss@7.1.1/css/basscss.min.css\">\n  <link rel=\"stylesheet\" href=\"styles.css\">\n</head>\n\n<body>\n  <p style=\"font-family: 'sans'; font-size:18px\"><b>pyp5js</b> demo editor</p>\n\n  <div class=\"demoContainer\">\n    <div style=\"display: block\">\n      <textarea class=\"display-none\" id=\"id_py_code\" name=\"py_code\"></textarea>\n      <div class=\"code-container\">\n        <div class=\"text-editor-box\">\n          <button id=\"collapseBtn\" title=\"Collapse the code editor\" type=\"button\"\n            class=\"btn btn-primary bg-orange rounded py1 px2 pb3\">\n            Collapse</button>\n          <div id=\"text-editor\" class=\"text-editor\"></div>\n          <div id=\"sketch-buttons\" class=\"clearfix\">\n            <div class=\"left-buttons\">\n              <button id=\"executeBtn\" title=\"(Ctrl/Cmd + Enter) to refresh the skecth\" type=\"button\"\n                class=\"btn btn-primary bg-green rounded py1 px2 mb1\">Run</button>\n              <button id=\"clearBtn\" title=\"(Ctrl/Cmd + .) to clear the skecth\" type=\"button\"\n                class=\"btn btn-primary rounded bg-red py1 px2 mb1\">Clear</button>\n            </div>\n            <button id=\"shareBtn\" class=\"btn btn-primary rounded py1 px2 mb1\" type=\"button\"\n              title=\"Get a shareable link to this sketch\">Share</button>\n          </div>\n        </div>\n      </div>\n    </div>\n\n    <div id=\"sketch-holder\">\n      <!-- You sketch will go here! -->\n    </div>\n  </div>\n  <div>\n    <p style=\"font-family: 'sans'; font-size:14px\">If you execute the code but nothing is being rendered in the browser,\n      please open your browser's console to read the error traceback (usually you can do this by pressing F12 and\n      clicking in the Console tab).</p>\n  </div>\n  <div>\n    <p style=\"background-color: #f6f8fa; font-family: 'sans'; font-size:14px\"><a\n        href=\"https://github.com/berinhard/pyp5js\"><b>pyp5js</b></a> running on top of <a\n        href=\"https://github.com/iodide-project/pyodide\" target=\"_blank\">pyodide</a></p>\n  </div>\n</body>\n<script src=\"afterBody.js\"></script>\n\n</html>"
  },
  {
    "path": "docs/pyodide/pyodide.py",
    "content": "def setup():\n    createCanvas(200, 200)\n\ndef draw():\n    background(200)\n    diameter = sin(frameCount / 60) * 50 + 50\n    fill(\"blue\")\n    ellipse(100, 100, diameter, diameter)\n"
  },
  {
    "path": "docs/pyodide/share.js",
    "content": "function createSketchUrl() {\n  const baseUrl = window.location.origin + window.location.pathname;\n  const userCode = editor.getSession().getValue();\n\n  const encodedUserCode = btoa(encodeURIComponent(userCode));\n\n  const sketchUrl = new URL(baseUrl);\n  sketchUrl.searchParams.append(\"sketch\", encodedUserCode);\n\n  return sketchUrl;\n}\n\nfunction decodeSketchUrl(encodedSketch) {\n  const decodedSketch = decodeURIComponent(atob(encodedSketch));\n\n  return decodedSketch;\n}\n\nfunction checkForSketch() {\n  let initialSketch = `def setup():\n    createCanvas(200, 200)\n\ndef draw():\n    background(200)\n    diameter = sin(frameCount / 60) * 50 + 50\n    fill(\"blue\")\n    ellipse(100, 100, diameter, diameter)\n    `;\n\n  const currentUrl = new URLSearchParams(window.location.search);\n\n  if (currentUrl.has(\"sketch\")) {\n    initialSketch = decodeSketchUrl(currentUrl.get(\"sketch\"));\n  }\n\n  return initialSketch;\n}\n\n// Made by user Dean Taylor in\n// https://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript\n\nfunction fallbackCopyTextToClipboard(text) {\n  var textArea = document.createElement(\"textarea\");\n  textArea.value = text;\n\n  // Avoid scrolling to bottom\n  textArea.style.top = \"0\";\n  textArea.style.left = \"0\";\n  textArea.style.position = \"fixed\";\n\n  document.body.appendChild(textArea);\n  textArea.focus();\n  textArea.select();\n\n  try {\n    document.execCommand(\"copy\");\n  } catch (err) {\n    console.error(\"Fallback: Oops, unable to copy URL\", err);\n  }\n\n  document.body.removeChild(textArea);\n}\n\nfunction copyTextToClipboard(text) {\n  if (!navigator.clipboard) {\n    fallbackCopyTextToClipboard(text);\n    return;\n  }\n  navigator.clipboard.writeText(text).then(\n    function () {\n      return;\n    },\n    function (err) {\n      console.error(\"Async: Could not copy URL: \", err);\n    }\n  );\n}\n"
  },
  {
    "path": "docs/pyodide/styles.css",
    "content": "body,\nhtml,\ncanvas {\n  padding: 0;\n  margin: 0;\n}\n\nhtml {\n  overflow-y: scroll;\n  overflow-x: scroll;\n}\n\n.demoContainer {\n  display: flex;\n}\n\npre {\n  margin-right: 2em;\n}\n\n.text-editor-box {\n  margin: 0 1.5em;\n  max-width: 800px;\n  display: flex;\n  flex-direction: column;\n  align-items: flex-end;\n}\n\n#text-editor {\n  float: left;\n  margin: 0.5em 0;\n  height: 600px;\n  border: 1px solid #ccc;\n  border-radius: 8px;\n}\n\n.text-editor {\n  width: 700px;\n  transition-property: width;\n  transition: 500ms ease-out;\n}\n\n#sketch-buttons {\n  width: 100%;\n  min-width: 250px;\n  display: flex;\n  justify-content: space-between;\n  align-self: flex-start;\n}\n\n.left-buttons {\n  width: 100%;\n}\n\n.hidden-editor {\n  opacity: 0.2;\n  width: 250px;\n  transition-property: width;\n  transition: 500ms ease-in;\n}\n\n.code-container {\n  display: flex;\n  align-items: flex-start;\n  justify-content: flex-start;\n}\n\n.display-none {\n  display: none;\n}\n"
  },
  {
    "path": "docs/pyodide/target/target_sketch.js",
    "content": "const wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = \"\";\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"https://cdn.jsdelivr.net/pyodide/v0.18.1/full/\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();"
  },
  {
    "path": "pyp5js/__init__.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\n"
  },
  {
    "path": "pyp5js/cli.py",
    "content": "#!/usr/bin/env python3\n\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport warnings\nfrom pathlib import Path\n\nfrom cprint import cprint\nimport click\n\nfrom pyp5js import commands\nfrom pyp5js.config import SKETCHBOOK_DIR, AVAILABLE_INTERPRETERS, PYODIDE_INTERPRETER\n\n\n@click.group()\n@click.version_option(package_name=\"pyp5js\", prog_name=\"pyp5js\")\ndef command_line_entrypoint():\n    \"\"\"\n    pyp5js is a command line tool to conver Python 3 code to p5.js.\n\n    Every sketch will be stored in ~/sketchbook-pyp5js/. You can customize this\n    by defining an env variable SKETCHBOOK_DIR.\n    \"\"\"\n    pass\n\n\n@command_line_entrypoint.command('new')\n@click.argument('sketch_name')\n@click.option('--monitor', '-m', is_flag=True, help='Starts the monitor command too')\n@click.option('--interpreter', '-i', type=click.Choice(AVAILABLE_INTERPRETERS), default=PYODIDE_INTERPRETER, help='Which python tool to use to run the sketch. (defaults to pyodide)')\n@click.option('--template', '-t', type=click.Path(exists=True), help='Specify a custom index.html template to use.')\n@click.option('--cdn/--local', default=True)\ndef configure_new_sketch(sketch_name, monitor, interpreter, template, cdn):\n    \"\"\"\n    Create dir and configure boilerplate - Example:\\n\n    $ pyp5js new my_sketch -i pyodide\n    \"\"\"\n    files = commands.new_sketch(sketch_name, interpreter, template_file=template, use_cdn=cdn)\n\n    cprint.ok(f\"Your sketch was created!\")\n\n    if not monitor:\n        cprint.ok(f\"Please, open and edit the file {files.sketch_py} to draw. When you're ready to see your results, just run:\")\n        cmd = f\"\\t pyp5js compile {sketch_name}\"\n        cprint.ok(cmd)\n        cprint.ok(f\"And open file://{files.index_html.absolute()} on your browser to see yor results!\")\n    else:\n        cprint.ok(f\"Please, open and edit the file {files.sketch_py} to draw.\")\n        cprint.ok(f\"And open file://{files.index_html.absolute()} on your browser to see yor results!\")\n        commands.monitor_sketch(sketch_name)\n\n\n@command_line_entrypoint.command(\"transcrypt\")\n@click.argument(\"sketch_name\")\ndef transcrypt_sketch(sketch_name):\n    \"\"\"\n    [DEPRECATED] Command to generate the P5.js code for a python sketch\n    \\nExample:\n    $ pyp5js transcrypt my_sketch\n    \"\"\"\n    msg = f\"transcript command is deprecated. Instead, please run: \\n\\n\\tpyp5js compile {sketch_name}\\n\"\n    warnings.warn(msg, UserWarning)\n\n\n@command_line_entrypoint.command(\"compile\")\n@click.argument(\"sketch_name\")\n@click.option('--refresh', is_flag=True, help=\"Update the skech index.html before it ends.\")\n@click.option('--template', '-t', type=click.Path(exists=True), help='Specify a custom index.html template to use. Must be used with --refresh in order to work.')\ndef compile_sketch(sketch_name, refresh, template):\n    \"\"\"\n    Command to update your sketch files (index, js codes etc)\n    \\nExample:\n    $ pyp5js compile my_sketch\n    \"\"\"\n    files = commands.compile_sketch(sketch_name.replace(\"/\", \"\"), refresh, template)\n    cprint.ok(f\"Your sketch is ready and available at file://{files.index_html.absolute()}\")\n\n\n@command_line_entrypoint.command(\"monitor\")\n@click.argument(\"sketch_name\")\ndef monitor_sketch(sketch_name):\n    \"\"\"\n    Command to generate keep watching a sketch's dir and, after any change,\n    it'll automatically generate the JS files as in pyp5js transcrypt command\n    \"\"\"\n    commands.monitor_sketch(sketch_name)\n\n\n@command_line_entrypoint.command(\"serve\")\n@click.option(\"--host\", default=\"127.0.0.1\", help=\"HTTP server host (defaults to 127.0.0.1)\")\n@click.option(\"--port\", default=5000, help=\"Listened by the server (defaults to 5000)\")\n@click.option('--debug', is_flag=True, help=\"Debug mode: re-run server after any file update\")\ndef serve_sketches(host, port, debug):\n    \"\"\"\n    Run HTTP server to compile and serve sketches\n\n    Opitionals:\n    - host:\n    - port:\n\n    Example:\n    $ pyp5js serve\n    \"\"\"\n\n    if not SKETCHBOOK_DIR.exists():\n        SKETCHBOOK_DIR.mkdir()\n\n    commands.serve_http(host, port, debug)\n\n\nif __name__ == \"__main__\":\n    command_line_entrypoint()\n"
  },
  {
    "path": "pyp5js/commands.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport os\nimport shutil\n\nfrom cprint import cprint\nfrom jinja2 import Environment, FileSystemLoader\n\nfrom pyp5js.compiler import compile_sketch_js\nfrom pyp5js.exceptions import PythonSketchDoesNotExist\nfrom pyp5js.sketch import Sketch\nfrom pyp5js.http_local.web_app import app as pyp5js_web_app\nfrom pyp5js.monitor import monitor_sketch as monitor_sketch_service\nfrom pyp5js.templates_renderers import get_sketch_index_content\nfrom pyp5js.config import PYODIDE_INTERPRETER\n\n\ndef new_sketch(sketch_name, interpreter=PYODIDE_INTERPRETER, template_file=\"\", use_cdn=True):\n    \"\"\"\n    Creates a new sketch with the required assets and a index.html file, based on pyp5js's templates\n\n    :param sketch_name: name for new sketch\n    :param interpreter: interpreter to use (transcrypt or pyodide)\n    :param template_file: use a custom template for index.html instead of default one\n    :param use_cdn: if false, the sketch will have copies of required static assets (p5.js and pyodide)\n    :type sketch_name: string\n    :return: file names\n    :rtype: list of strings\n    \"\"\"\n    cfg = {\n        \"interpreter\": interpreter,\n        \"index_template\": template_file,\n    }\n\n    sketch = Sketch(sketch_name, **cfg)\n    sketch.create_sketch_dir()\n    sketch.copy_initial_files(use_cdn=use_cdn)\n\n    index_contet = get_sketch_index_content(sketch)\n    with open(sketch.index_html, \"w\", encoding=\"utf-8\") as fd:\n        fd.write(index_contet)\n\n    return sketch\n\n\ndef compile_sketch(sketch_name, generate_index=False, index_template=None, force_local=False):\n    \"\"\"\n    Transcrypt the sketch python code to javascript.\n\n    :param sketch_name: name for new sketch\n    :param generate_index: boolean to flag if the index.html file should be updated\n    :param force_local: boolean to flag to force local run (used by web editor only)\n    :type sketch_name: string\n    :return: file names\n    :rtype: list of strings\n    \"\"\"\n\n    sketch = Sketch(sketch_name)\n    sketch.validate_name()\n\n    if not sketch.sketch_exists:\n        raise PythonSketchDoesNotExist(sketch)\n\n    compile_sketch_js(sketch, force_local=force_local)\n    if generate_index:\n        # to be able to overwrite default index template file\n        # useful for generating the docs or debugging\n        sketch.config.index_template = index_template\n        index_contet = get_sketch_index_content(sketch)\n        with open(sketch.index_html, \"w\", encoding=\"utf-8\") as fd:\n            fd.write(index_contet)\n        cprint.info(f\"{sketch.index_html.resolve()} updated\")\n\n    return sketch\n\n\ndef monitor_sketch(sketch_name):\n    \"\"\"\n    Monitor for any change in any .py inside the sketch dir.\n    For every new change, runs the transcrypt to update the js files.\n\n    :param sketch_name: name for new sketch\n    :type sketch_name: string\n    :return: file names\n    :rtype: list of strings\n    \"\"\"\n\n    sketch = Sketch(sketch_name)\n    sketch.validate_name()\n\n    if not sketch.sketch_exists:\n        raise PythonSketchDoesNotExist(sketch)\n\n    cprint(f\"Monitoring for changes in {sketch.sketch_dir.resolve()}...\")\n\n    try:\n        monitor_sketch_service(sketch)\n    except KeyboardInterrupt:\n        cprint.info(\"Exiting monitor...\")\n\n\ndef serve_http(host, port, debug=False):\n    \"\"\"\n    Run a HTTP server which compiles sketches on the fly and serves static files\n\n    :param host: server's hostname\n    :type host: string\n    :param port: server's port\n    :type port: int\n    :param debug: turn on/off debug mode\n    :type debug: bool\n    \"\"\"\n    pyp5js_web_app.run(host=host, port=port, debug=debug)\n"
  },
  {
    "path": "pyp5js/compiler.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport shutil\nimport subprocess\nfrom cprint import cprint\n\nfrom pyp5js.config.fs import PYP5JS_FILES\nfrom pyp5js.templates_renderers import get_target_sketch_content\n\n\nclass BasePyp5jsCompiler:\n\n    def __init__(self, sketch, force_local=False):\n        self.sketch = sketch\n        self.force_local = force_local\n\n    @property\n    def target_dir(self):\n        \"\"\"\n        Path to directory with the js and assets files\n        \"\"\"\n        return self.sketch.sketch_dir.joinpath('__target__')\n\n    def compile_sketch_js(self):\n        self.prepare()\n        self.run_compiler()\n        self.clean_up()\n\n    def run_compiler(self):\n        pass\n\n    def clean_up(self):\n        pass\n\n    def prepare(self):\n        \"\"\"\n        Creates target_sketch.py to import the sketch's functions\n        \"\"\"\n        content = get_target_sketch_content(self.sketch)\n\n        with self.sketch.target_sketch.open('w', encoding=\"utf-8\") as fd:\n            fd.write(content)\n\n        cprint.info(f\"{self.sketch.target_sketch.resolve()} updated with sketch code\")\n\n\nclass TranscryptCompiler(BasePyp5jsCompiler):\n\n    @property\n    def command_line(self):\n        \"\"\"\n        Builds transcrypt command line with the required parameters and flags\n        \"\"\"\n        pyp5_dir = PYP5JS_FILES.transcrypt_conf_dir\n        target = self.sketch.target_sketch\n        return ' '.join([str(c) for c in [\n            'transcrypt', '-xp', f'\"{pyp5_dir}\"', '-k', '-ks', '-b', '-m', '-n', f'\"{target}\"'\n        ]])\n\n    def run_compiler(self):\n        \"\"\"\n        Execute transcrypt command to generate the JS files\n        \"\"\"\n        command = self.command_line\n        cprint.info(\n            f\"Converting Python to P5.js...\\nRunning command:\\n\\t {command}\")\n\n        subprocess.call(command, shell=True)\n\n    def clean_up(self):\n        \"\"\"\n        Rename the assets dir from __target__ to target and delete target_sketch.py\n\n        This is required because github pages can't deal with assets under a __target__ directory\n        \"\"\"\n        if self.sketch.target_dir.exists():\n            shutil.rmtree(self.sketch.target_dir)\n        # mv __target__ target\n        shutil.move(self.target_dir, self.sketch.target_dir)\n\n        if self.sketch.target_sketch.exists():\n\n            self.sketch.target_sketch.unlink()\n\n\nclass PyodideCompiler(BasePyp5jsCompiler):\n\n    def prepare(self):\n        # this is a hack for web editor to always run using local JS files\n        if self.force_local:\n            self.sketch.config.pyodide_js_url = \"/static/js/pyodide/pyodide_v0.18.1.js\"\n        return super().prepare()\n\n\ndef compile_sketch_js(sketch, force_local=False):\n    if sketch.config.is_transcrypt:\n        compiler = TranscryptCompiler(sketch, force_local=force_local)\n    else:\n        compiler = PyodideCompiler(sketch, force_local=force_local)\n    compiler.compile_sketch_js()\n"
  },
  {
    "path": "pyp5js/config/__init__.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nfrom . import sketch\nfrom .sketch import TRANSCRYPT_INTERPRETER, PYODIDE_INTERPRETER\nfrom decouple import config\nfrom pathlib import Path\n\nSKETCHBOOK_DIR = config(\"SKETCHBOOK_DIR\", cast=Path, default=Path.home().joinpath('sketchbook-pyp5js'))\n\nif not SKETCHBOOK_DIR.exists():\n    SKETCHBOOK_DIR.mkdir()\n\nAVAILABLE_INTERPRETERS = [TRANSCRYPT_INTERPRETER, PYODIDE_INTERPRETER]\n"
  },
  {
    "path": "pyp5js/config/fs.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nfrom pathlib import Path\n\n\nclass LibFiles():\n    \"\"\"\n    This class abstracts pyp5js lib files path from the filesystem.\n    It expose properties for the directories and files.\n    Every property returns a pathlib.Path object\n    \"\"\"\n\n    def __init__(self):\n        self.install = Path(__file__).parents[1]\n\n    ##### GENERAL PURPOSE\n\n    @property\n    def templates_dir(self):\n        return self.install.joinpath('templates')\n\n    @property\n    def static_dir(self):\n        return self.install.joinpath('http_local', 'static')\n\n    @property\n    def pytop5js(self):\n        return self.transcrypt_conf_dir.joinpath('pyp5js.py')\n\n    @property\n    def p5js(self):\n        return self.static_dir.joinpath('js', 'p5', 'p5.min.js')\n\n    @property\n    def p5_yml(self):\n        return self.static_dir.joinpath('p5_reference.yml')\n\n    ##### TRANSCRYPT SPECIFICS\n\n    @property\n    def transcrypt_conf_dir(self):\n        return self.templates_dir.joinpath('transcrypt')\n\n    @property\n    def transcrypt_index_html(self):\n        return self.templates_dir.joinpath('transcrypt', 'index.html')\n\n    @property\n    def transcrypt_target_sketch_template(self):\n        return self.templates_dir.joinpath('transcrypt', 'target_sketch.py.template')\n\n    @property\n    def transcrypt_base_sketch_template(self):\n        return self.templates_dir.joinpath('transcrypt', 'base_sketch.py.template')\n\n    ##### PYODIDE SPECIFICS\n\n    @property\n    def pyodide_target_sketch_template(self):\n        return self.templates_dir.joinpath('pyodide', 'target_sketch.js.template')\n\n    @property\n    def pyodide_index_html(self):\n        return self.templates_dir.joinpath('pyodide', 'index.html')\n\n    @property\n    def pyodide_base_sketch_template(self):\n        return self.templates_dir.joinpath('pyodide', 'base_sketch.py.template')\n\n    @property\n    def pyodide_js_dir(self):\n        return self.static_dir / \"js\" / \"pyodide\"\n\n\nPYP5JS_FILES = LibFiles()\n"
  },
  {
    "path": "pyp5js/config/sketch.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport json\nfrom pathlib import Path\n\nfrom pyp5js.config.fs import PYP5JS_FILES\n\nTRANSCRYPT_INTERPRETER = 'transcrypt'\nPYODIDE_INTERPRETER = 'pyodide'\nP5_JS_CDN = 'https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js'\nPYODIDE_JS_CDN = 'https://cdn.jsdelivr.net/pyodide/v0.18.1/full/pyodide.js'\n\n\nclass SketchConfig:\n\n    @classmethod\n    def from_json(cls, json_file_path):\n        with open(json_file_path) as fd:\n            config_data = json.load(fd)\n            return cls(**config_data)\n\n    def __init__(self, interpreter, **kwargs):\n        self.interpreter = interpreter\n        self.index_template = kwargs.get(\"index_template\", \"\")\n        self.p5_js_url = kwargs.get(\"p5_js_url\", P5_JS_CDN)\n        self.pyodide_js_url = kwargs.get(\"pyodide_js_url\", PYODIDE_JS_CDN)\n\n    @property\n    def index_template_path(self):\n        return Path(self.index_template).absolute()\n\n    def write(self, fname):\n        index_template = \"\"\n        if self.index_template and self.index_template_path.exists():\n            index_template = str(self.index_template_path.resolve())\n        with open(fname, \"w\") as fd:\n            data = {\n                \"interpreter\": self.interpreter,\n                \"p5_js_url\": self.p5_js_url,\n            }\n            if self.index_template:\n                data.update({\"index_template\": index_template})\n            if self.is_pyodide:\n                data.update({\"pyodide_js_url\": self.pyodide_js_url})\n            json.dump(data, fd)\n\n    @property\n    def is_transcrypt(self):\n        return self.interpreter == TRANSCRYPT_INTERPRETER\n\n    @property\n    def is_pyodide(self):\n        return self.interpreter == PYODIDE_INTERPRETER\n\n    def get_index_template(self):\n        if self.index_template and self.index_template_path.exists():\n            return self.index_template_path\n        index_map = {\n            TRANSCRYPT_INTERPRETER: PYP5JS_FILES.transcrypt_index_html,\n            PYODIDE_INTERPRETER: PYP5JS_FILES.pyodide_index_html,\n        }\n        return index_map[self.interpreter]\n\n    def get_target_js_template(self):\n        target_map = {\n            TRANSCRYPT_INTERPRETER: PYP5JS_FILES.transcrypt_target_sketch_template,\n            PYODIDE_INTERPRETER: PYP5JS_FILES.pyodide_target_sketch_template,\n        }\n        return target_map[self.interpreter]\n\n    def get_base_sketch_template(self):\n        base_map = {\n            TRANSCRYPT_INTERPRETER: PYP5JS_FILES.transcrypt_base_sketch_template,\n            PYODIDE_INTERPRETER: PYP5JS_FILES.pyodide_base_sketch_template,\n        }\n        return base_map[self.interpreter]\n"
  },
  {
    "path": "pyp5js/exceptions.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nclass PythonSketchDoesNotExist(Exception):\n\n    def __init__(self, sketch):\n        sketch_py = sketch.sketch_py.resolve()\n        message = f\"Sketch file {sketch_py} does not exist\"\n        super().__init__(message)\n\n\nclass SketchDirAlreadyExistException(Exception):\n\n    def __init__(self, sketch):\n        sketch_dir = sketch.sketch_dir.resolve()\n        message = f'The directory {sketch_dir} already exists.'\n        super().__init__(message)\n\nclass InvalidName(Exception):\n\n    def __init__(self, sketch):\n        sketch_name = sketch.sketch_name\n        message = f'The name {sketch_name} must start with a letter or an underscore and ' + \\\n            'contain alphanumeric and underscore characters only.'\n        super().__init__(message)\n"
  },
  {
    "path": "pyp5js/http_local/__init__.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\n"
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ace.js",
    "content": "(function(){function o(n){var i=e;n&&(e[n]||(e[n]={}),i=e[n]);if(!i.define||!i.define.packaged)t.original=i.define,i.define=t,i.define.packaged=!0;if(!i.require||!i.require.packaged)r.original=i.require,i.require=r,i.require.packaged=!0}var ACE_NAMESPACE=\"\",e=function(){return this}();!e&&typeof window!=\"undefined\"&&(e=window);if(!ACE_NAMESPACE&&typeof requirejs!=\"undefined\")return;var t=function(e,n,r){if(typeof e!=\"string\"){t.original?t.original.apply(this,arguments):(console.error(\"dropping module because define wasn't a string.\"),console.trace());return}arguments.length==2&&(r=n),t.modules[e]||(t.payloads[e]=r,t.modules[e]=null)};t.modules={},t.payloads={};var n=function(e,t,n){if(typeof t==\"string\"){var i=s(e,t);if(i!=undefined)return n&&n(),i}else if(Object.prototype.toString.call(t)===\"[object Array]\"){var o=[];for(var u=0,a=t.length;u<a;++u){var f=s(e,t[u]);if(f==undefined&&r.original)return;o.push(f)}return n&&n.apply(null,o)||!0}},r=function(e,t){var i=n(\"\",e,t);return i==undefined&&r.original?r.original.apply(this,arguments):i},i=function(e,t){if(t.indexOf(\"!\")!==-1){var n=t.split(\"!\");return i(e,n[0])+\"!\"+i(e,n[1])}if(t.charAt(0)==\".\"){var r=e.split(\"/\").slice(0,-1).join(\"/\");t=r+\"/\"+t;while(t.indexOf(\".\")!==-1&&s!=t){var s=t;t=t.replace(/\\/\\.\\//,\"/\").replace(/[^\\/]+\\/\\.\\.\\//,\"\")}}return t},s=function(e,r){r=i(e,r);var s=t.modules[r];if(!s){s=t.payloads[r];if(typeof s==\"function\"){var o={},u={id:r,uri:\"\",exports:o,packaged:!0},a=function(e,t){return n(r,e,t)},f=s(a,o,u);o=f||u.exports,t.modules[r]=o,delete t.payloads[r]}s=t.modules[r]=o||s}return s};o(ACE_NAMESPACE)})(),define(\"ace/lib/regexp\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";function o(e){return(e.global?\"g\":\"\")+(e.ignoreCase?\"i\":\"\")+(e.multiline?\"m\":\"\")+(e.extended?\"x\":\"\")+(e.sticky?\"y\":\"\")}function u(e,t,n){if(Array.prototype.indexOf)return e.indexOf(t,n);for(var r=n||0;r<e.length;r++)if(e[r]===t)return r;return-1}var r={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},i=r.exec.call(/()??/,\"\")[1]===undefined,s=function(){var e=/^/g;return r.test.call(e,\"\"),!e.lastIndex}();if(s&&i)return;RegExp.prototype.exec=function(e){var t=r.exec.apply(this,arguments),n,a;if(typeof e==\"string\"&&t){!i&&t.length>1&&u(t,\"\")>-1&&(a=RegExp(this.source,r.replace.call(o(this),\"g\",\"\")),r.replace.call(e.slice(t.index),a,function(){for(var e=1;e<arguments.length-2;e++)arguments[e]===undefined&&(t[e]=undefined)}));if(this._xregexp&&this._xregexp.captureNames)for(var f=1;f<t.length;f++)n=this._xregexp.captureNames[f-1],n&&(t[n]=t[f]);!s&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--}return t},s||(RegExp.prototype.test=function(e){var t=r.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t})}),define(\"ace/lib/es5-shim\",[\"require\",\"exports\",\"module\"],function(e,t,n){function r(){}function w(e){try{return Object.defineProperty(e,\"sentinel\",{}),\"sentinel\"in e}catch(t){}}function H(e){return e=+e,e!==e?e=0:e!==0&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}function B(e){var t=typeof e;return e===null||t===\"undefined\"||t===\"boolean\"||t===\"number\"||t===\"string\"}function j(e){var t,n,r;if(B(e))return e;n=e.valueOf;if(typeof n==\"function\"){t=n.call(e);if(B(t))return t}r=e.toString;if(typeof r==\"function\"){t=r.call(e);if(B(t))return t}throw new TypeError}Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!=\"function\")throw new TypeError(\"Function.prototype.bind called on incompatible \"+n);var i=u.call(arguments,1),s=function(){if(this instanceof s){var e=n.apply(this,i.concat(u.call(arguments)));return Object(e)===e?e:this}return n.apply(t,i.concat(u.call(arguments)))};return n.prototype&&(r.prototype=n.prototype,s.prototype=new r,r.prototype=null),s});var i=Function.prototype.call,s=Array.prototype,o=Object.prototype,u=s.slice,a=i.bind(o.toString),f=i.bind(o.hasOwnProperty),l,c,h,p,d;if(d=f(o,\"__defineGetter__\"))l=i.bind(o.__defineGetter__),c=i.bind(o.__defineSetter__),h=i.bind(o.__lookupGetter__),p=i.bind(o.__lookupSetter__);if([1,2].splice(0).length!=2)if(!function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t=[],n;t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,\"XXX\"),n+1==t.length;if(n+1==t.length)return!0}())Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):e==void 0?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=u.call(arguments,2),s=i.length;if(e===n)s&&this.push.apply(this,i);else{var o=Math.min(t,n-e),a=e+o,f=a+s-o,l=n-a,c=n-o;if(f<a)for(var h=0;h<l;++h)this[f+h]=this[a+h];else if(f>a)for(h=l;h--;)this[f+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,i);else{this.length=c+s;for(h=0;h<s;++h)this[e+h]=i[h]}}return r};else{var v=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?v.apply(this,[e===void 0?0:e,t===void 0?this.length-e:t].concat(u.call(arguments,2))):[]}}Array.isArray||(Array.isArray=function(t){return a(t)==\"[object Array]\"});var m=Object(\"a\"),g=m[0]!=\"a\"||!(0 in m);Array.prototype.forEach||(Array.prototype.forEach=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=arguments[1],s=-1,o=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError;while(++s<o)s in r&&t.call(i,r[s],s,n)}),Array.prototype.map||(Array.prototype.map=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=Array(i),o=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var u=0;u<i;u++)u in r&&(s[u]=t.call(o,r[u],u,n));return s}),Array.prototype.filter||(Array.prototype.filter=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=[],o,u=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var f=0;f<i;f++)f in r&&(o=r[f],t.call(u,o,f,n)&&s.push(o));return s}),Array.prototype.every||(Array.prototype.every=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&!t.call(s,r[o],o,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&t.call(s,r[o],o,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduce of empty array with no initial value\");var s=0,o;if(arguments.length>=2)o=arguments[1];else do{if(s in r){o=r[s++];break}if(++s>=i)throw new TypeError(\"reduce of empty array with no initial value\")}while(!0);for(;s<i;s++)s in r&&(o=t.call(void 0,o,r[s],s,n));return o}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduceRight of empty array with no initial value\");var s,o=i-1;if(arguments.length>=2)s=arguments[1];else do{if(o in r){s=r[o--];break}if(--o<0)throw new TypeError(\"reduceRight of empty array with no initial value\")}while(!0);do o in this&&(s=t.call(void 0,s,r[o],o,n));while(o--);return s});if(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)Array.prototype.indexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=0;arguments.length>1&&(i=H(arguments[1])),i=i>=0?i:Math.max(0,r+i);for(;i<r;i++)if(i in n&&n[i]===t)return i;return-1};if(!Array.prototype.lastIndexOf||[0,1].lastIndexOf(0,-3)!=-1)Array.prototype.lastIndexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=r-1;arguments.length>1&&(i=Math.min(i,H(arguments[1]))),i=i>=0?i:r-Math.abs(i);for(;i>=0;i--)if(i in n&&t===n[i])return i;return-1};Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:o)});if(!Object.getOwnPropertyDescriptor){var y=\"Object.getOwnPropertyDescriptor called on a non-object: \";Object.getOwnPropertyDescriptor=function(t,n){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(y+t);if(!f(t,n))return;var r,i,s;r={enumerable:!0,configurable:!0};if(d){var u=t.__proto__;t.__proto__=o;var i=h(t,n),s=p(t,n);t.__proto__=u;if(i||s)return i&&(r.get=i),s&&(r.set=s),r}return r.value=t[n],r}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)});if(!Object.create){var b;Object.prototype.__proto__===null?b=function(){return{__proto__:null}}:b=function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(t,n){var r;if(t===null)r=b();else{if(typeof t!=\"object\")throw new TypeError(\"typeof prototype[\"+typeof t+\"] != 'object'\");var i=function(){};i.prototype=t,r=new i,r.__proto__=t}return n!==void 0&&Object.defineProperties(r,n),r}}if(Object.defineProperty){var E=w({}),S=typeof document==\"undefined\"||w(document.createElement(\"div\"));if(!E||!S)var x=Object.defineProperty}if(!Object.defineProperty||x){var T=\"Property description must be an object: \",N=\"Object.defineProperty called on non-object: \",C=\"getters & setters can not be defined on this javascript engine\";Object.defineProperty=function(t,n,r){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(N+t);if(typeof r!=\"object\"&&typeof r!=\"function\"||r===null)throw new TypeError(T+r);if(x)try{return x.call(Object,t,n,r)}catch(i){}if(f(r,\"value\"))if(d&&(h(t,n)||p(t,n))){var s=t.__proto__;t.__proto__=o,delete t[n],t[n]=r.value,t.__proto__=s}else t[n]=r.value;else{if(!d)throw new TypeError(C);f(r,\"get\")&&l(t,n,r.get),f(r,\"set\")&&c(t,n,r.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,n){for(var r in n)f(n,r)&&Object.defineProperty(t,r,n[r]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(k){Object.freeze=function(t){return function(n){return typeof n==\"function\"?n:t(n)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;var n=\"\";while(f(t,n))n+=\"?\";t[n]=!0;var r=f(t,n);return delete t[n],r});if(!Object.keys){var L=!0,A=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],O=A.length;for(var M in{toString:null})L=!1;Object.keys=function I(e){if(typeof e!=\"object\"&&typeof e!=\"function\"||e===null)throw new TypeError(\"Object.keys called on a non-object\");var I=[];for(var t in e)f(e,t)&&I.push(t);if(L)for(var n=0,r=O;n<r;n++){var i=A[n];f(e,i)&&I.push(i)}return I}}Date.now||(Date.now=function(){return(new Date).getTime()});var _=\"\t\\n\\x0b\\f\\r \\u00a0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029\\ufeff\";if(!String.prototype.trim){_=\"[\"+_+\"]\";var D=new RegExp(\"^\"+_+_+\"*\"),P=new RegExp(_+_+\"*$\");String.prototype.trim=function(){return String(this).replace(D,\"\").replace(P,\"\")}}var F=function(e){if(e==null)throw new TypeError(\"can't convert \"+e+\" to object\");return Object(e)}}),define(\"ace/lib/fixoldbrowsers\",[\"require\",\"exports\",\"module\",\"ace/lib/regexp\",\"ace/lib/es5-shim\"],function(e,t,n){\"use strict\";e(\"./regexp\"),e(\"./es5-shim\"),typeof Element!=\"undefined\"&&!Element.prototype.remove&&Object.defineProperty(Element.prototype,\"remove\",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})}),define(\"ace/lib/useragent\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";t.OS={LINUX:\"LINUX\",MAC:\"MAC\",WINDOWS:\"WINDOWS\"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var r=typeof navigator==\"object\"?navigator:{},i=(/mac|win|linux/i.exec(r.platform)||[\"other\"])[0].toLowerCase(),s=r.userAgent||\"\",o=r.appName||\"\";t.isWin=i==\"win\",t.isMac=i==\"mac\",t.isLinux=i==\"linux\",t.isIE=o==\"Microsoft Internet Explorer\"||o.indexOf(\"MSAppHost\")>=0?parseFloat((s.match(/(?:MSIE |Trident\\/[0-9]+[\\.0-9]+;.*rv:)([0-9]+[\\.0-9]+)/)||[])[1]):parseFloat((s.match(/(?:Trident\\/[0-9]+[\\.0-9]+;.*rv:)([0-9]+[\\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=s.match(/ Gecko\\/\\d+/),t.isOpera=typeof opera==\"object\"&&Object.prototype.toString.call(window.opera)==\"[object Opera]\",t.isWebKit=parseFloat(s.split(\"WebKit/\")[1])||undefined,t.isChrome=parseFloat(s.split(\" Chrome/\")[1])||undefined,t.isEdge=parseFloat(s.split(\" Edge/\")[1])||undefined,t.isAIR=s.indexOf(\"AdobeAIR\")>=0,t.isAndroid=s.indexOf(\"Android\")>=0,t.isChromeOS=s.indexOf(\" CrOS \")>=0,t.isIOS=/iPad|iPhone|iPod/.test(s)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid}),define(\"ace/lib/dom\",[\"require\",\"exports\",\"module\",\"ace/lib/useragent\"],function(e,t,n){\"use strict\";var r=e(\"./useragent\"),i=\"http://www.w3.org/1999/xhtml\";t.buildDom=function o(e,t,n){if(typeof e==\"string\"&&e){var r=document.createTextNode(e);return t&&t.appendChild(r),r}if(!Array.isArray(e))return e&&e.appendChild&&t&&t.appendChild(e),e;if(typeof e[0]!=\"string\"||!e[0]){var i=[];for(var s=0;s<e.length;s++){var u=o(e[s],t,n);u&&i.push(u)}return i}var a=document.createElement(e[0]),f=e[1],l=1;f&&typeof f==\"object\"&&!Array.isArray(f)&&(l=2);for(var s=l;s<e.length;s++)o(e[s],a,n);return l==2&&Object.keys(f).forEach(function(e){var t=f[e];e===\"class\"?a.className=Array.isArray(t)?t.join(\" \"):t:typeof t==\"function\"||e==\"value\"||e[0]==\"$\"?a[e]=t:e===\"ref\"?n&&(n[t]=a):t!=null&&a.setAttribute(e,t)}),t&&t.appendChild(a),a},t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName(\"head\")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||i,e):document.createElement(e)},t.removeChildren=function(e){e.innerHTML=\"\"},t.createTextNode=function(e,t){var n=t?t.ownerDocument:document;return n.createTextNode(e)},t.createFragment=function(e){var t=e?e.ownerDocument:document;return t.createDocumentFragment()},t.hasCssClass=function(e,t){var n=(e.className+\"\").split(/\\s+/g);return n.indexOf(t)!==-1},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=\" \"+n)},t.removeCssClass=function(e,t){var n=e.className.split(/\\s+/g);for(;;){var r=n.indexOf(t);if(r==-1)break;n.splice(r,1)}e.className=n.join(\" \")},t.toggleCssClass=function(e,t){var n=e.className.split(/\\s+/g),r=!0;for(;;){var i=n.indexOf(t);if(i==-1)break;r=!1,n.splice(i,1)}return r&&n.push(t),e.className=n.join(\" \"),r},t.setCssClass=function(e,n,r){r?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n=0,r;t=t||document;if(r=t.querySelectorAll(\"style\"))while(n<r.length)if(r[n++].id===e)return!0},t.importCssString=function(n,r,i){var s=i;if(!i||!i.getRootNode)s=document;else{s=i.getRootNode();if(!s||s==i)s=document}var o=s.ownerDocument||s;if(r&&t.hasCssString(r,s))return null;r&&(n+=\"\\n/*# sourceURL=ace/css/\"+r+\" */\");var u=t.createElement(\"style\");u.appendChild(o.createTextNode(n)),r&&(u.id=r),s==o&&(s=t.getDocumentHead(o)),s.insertBefore(u,s.firstChild)},t.importCssStylsheet=function(e,n){t.buildDom([\"link\",{rel:\"stylesheet\",href:e}],t.getDocumentHead(n))},t.scrollbarWidth=function(e){var n=t.createElement(\"ace_inner\");n.style.width=\"100%\",n.style.minWidth=\"0px\",n.style.height=\"200px\",n.style.display=\"block\";var r=t.createElement(\"ace_outer\"),i=r.style;i.position=\"absolute\",i.left=\"-10000px\",i.overflow=\"hidden\",i.width=\"200px\",i.minWidth=\"0px\",i.height=\"150px\",i.display=\"block\",r.appendChild(n);var s=e.documentElement;s.appendChild(r);var o=n.offsetWidth;i.overflow=\"scroll\";var u=n.offsetWidth;return o==u&&(u=r.clientWidth),s.removeChild(r),o-u},typeof document==\"undefined\"&&(t.importCssString=function(){}),t.computedStyle=function(e,t){return window.getComputedStyle(e,\"\")||{}},t.setStyle=function(e,t,n){e[t]!==n&&(e[t]=n)},t.HAS_CSS_ANIMATION=!1,t.HAS_CSS_TRANSFORMS=!1,t.HI_DPI=r.isWin?typeof window!=\"undefined\"&&window.devicePixelRatio>=1.5:!0;if(typeof document!=\"undefined\"){var s=document.createElement(\"div\");t.HI_DPI&&s.style.transform!==undefined&&(t.HAS_CSS_TRANSFORMS=!0),!r.isEdge&&typeof s.style.animationName!=\"undefined\"&&(t.HAS_CSS_ANIMATION=!0),s=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform=\"translate(\"+Math.round(t)+\"px, \"+Math.round(n)+\"px)\"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+\"px\",e.style.left=Math.round(t)+\"px\"}}),define(\"ace/lib/oop\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),define(\"ace/lib/keys\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\"],function(e,t,n){\"use strict\";var r=e(\"./oop\"),i=function(){var e={MODIFIER_KEYS:{16:\"Shift\",17:\"Ctrl\",18:\"Alt\",224:\"Meta\",91:\"MetaLeft\",92:\"MetaRight\",93:\"ContextMenu\"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,\"super\":8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:\"Backspace\",9:\"Tab\",13:\"Return\",19:\"Pause\",27:\"Esc\",32:\"Space\",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"Left\",38:\"Up\",39:\"Right\",40:\"Down\",44:\"Print\",45:\"Insert\",46:\"Delete\",96:\"Numpad0\",97:\"Numpad1\",98:\"Numpad2\",99:\"Numpad3\",100:\"Numpad4\",101:\"Numpad5\",102:\"Numpad6\",103:\"Numpad7\",104:\"Numpad8\",105:\"Numpad9\",\"-13\":\"NumpadEnter\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"Numlock\",145:\"Scrolllock\"},PRINTABLE_KEYS:{32:\" \",48:\"0\",49:\"1\",50:\"2\",51:\"3\",52:\"4\",53:\"5\",54:\"6\",55:\"7\",56:\"8\",57:\"9\",59:\";\",61:\"=\",65:\"a\",66:\"b\",67:\"c\",68:\"d\",69:\"e\",70:\"f\",71:\"g\",72:\"h\",73:\"i\",74:\"j\",75:\"k\",76:\"l\",77:\"m\",78:\"n\",79:\"o\",80:\"p\",81:\"q\",82:\"r\",83:\"s\",84:\"t\",85:\"u\",86:\"v\",87:\"w\",88:\"x\",89:\"y\",90:\"z\",107:\"+\",109:\"-\",110:\".\",186:\";\",187:\"=\",188:\",\",189:\"-\",190:\".\",191:\"/\",192:\"`\",219:\"[\",220:\"\\\\\",221:\"]\",222:\"'\",111:\"/\",106:\"*\"}},t,n;for(n in e.FUNCTION_KEYS)t=e.FUNCTION_KEYS[n].toLowerCase(),e[t]=parseInt(n,10);for(n in e.PRINTABLE_KEYS)t=e.PRINTABLE_KEYS[n].toLowerCase(),e[t]=parseInt(n,10);return r.mixin(e,e.MODIFIER_KEYS),r.mixin(e,e.PRINTABLE_KEYS),r.mixin(e,e.FUNCTION_KEYS),e.enter=e[\"return\"],e.escape=e.esc,e.del=e[\"delete\"],e[173]=\"-\",function(){var t=[\"cmd\",\"ctrl\",\"alt\",\"shift\"];for(var n=Math.pow(2,t.length);n--;)e.KEY_MODS[n]=t.filter(function(t){return n&e.KEY_MODS[t]}).join(\"-\")+\"-\"}(),e.KEY_MODS[0]=\"\",e.KEY_MODS[-1]=\"input-\",e}();r.mixin(t,i),t.keyCodeToString=function(e){var t=i[e];return typeof t!=\"string\"&&(t=String.fromCharCode(e)),t.toLowerCase()}}),define(\"ace/lib/event\",[\"require\",\"exports\",\"module\",\"ace/lib/keys\",\"ace/lib/useragent\"],function(e,t,n){\"use strict\";function a(){u=!1;try{document.createComment(\"\").addEventListener(\"test\",function(){},{get passive(){u={passive:!1}}})}catch(e){}}function f(){return u==undefined&&a(),u}function l(e,t,n){this.elem=e,this.type=t,this.callback=n}function d(e,t,n){var u=p(t);if(!i.isMac&&s){t.getModifierState&&(t.getModifierState(\"OS\")||t.getModifierState(\"Win\"))&&(u|=8);if(s.altGr){if((3&u)==3)return;s.altGr=0}if(n===18||n===17){var a=\"location\"in t?t.location:t.keyLocation;if(n===17&&a===1)s[n]==1&&(o=t.timeStamp);else if(n===18&&u===3&&a===2){var f=t.timeStamp-o;f<50&&(s.altGr=!0)}}}n in r.MODIFIER_KEYS&&(n=-1);if(!u&&n===13){var a=\"location\"in t?t.location:t.keyLocation;if(a===3){e(t,u,-n);if(t.defaultPrevented)return}}if(i.isChromeOS&&u&8){e(t,u,n);if(t.defaultPrevented)return;u&=-9}return!!u||n in r.FUNCTION_KEYS||n in r.PRINTABLE_KEYS?e(t,u,n):!1}function v(){s=Object.create(null)}var r=e(\"./keys\"),i=e(\"./useragent\"),s=null,o=0,u;l.prototype.destroy=function(){h(this.elem,this.type,this.callback),this.elem=this.type=this.callback=undefined};var c=t.addListener=function(e,t,n,r){e.addEventListener(t,n,f()),r&&r.$toDestroy.push(new l(e,t,n))},h=t.removeListener=function(e,t,n){e.removeEventListener(t,n,f())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return e.type==\"dblclick\"?0:e.type==\"contextmenu\"||i.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){function r(e){t&&t(e),n&&n(e),h(document,\"mousemove\",t),h(document,\"mouseup\",r),h(document,\"dragstart\",r)}return c(document,\"mousemove\",t),c(document,\"mouseup\",r),c(document,\"dragstart\",r),r},t.addMouseWheelListener=function(e,t,n){\"onmousewheel\"in e?c(e,\"mousewheel\",function(e){var n=8;e.wheelDeltaX!==undefined?(e.wheelX=-e.wheelDeltaX/n,e.wheelY=-e.wheelDeltaY/n):(e.wheelX=0,e.wheelY=-e.wheelDelta/n),t(e)},n):\"onwheel\"in e?c(e,\"wheel\",function(e){var n=.35;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=e.deltaX*n||0,e.wheelY=e.deltaY*n||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=(e.deltaX||0)*5,e.wheelY=(e.deltaY||0)*5}t(e)},n):c(e,\"DOMMouseScroll\",function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=(e.detail||0)*5,e.wheelY=0):(e.wheelX=0,e.wheelY=(e.detail||0)*5),t(e)},n)},t.addMultiMouseDownListener=function(e,n,r,s,o){function p(e){t.getButton(e)!==0?u=0:e.detail>1?(u++,u>4&&(u=1)):u=1;if(i.isIE){var o=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-f)>5;if(!l||o)u=1;l&&clearTimeout(l),l=setTimeout(function(){l=null},n[u-1]||600),u==1&&(a=e.clientX,f=e.clientY)}e._clicks=u,r[s](\"mousedown\",e);if(u>4)u=0;else if(u>1)return r[s](h[u],e)}var u=0,a,f,l,h={2:\"dblclick\",3:\"tripleclick\",4:\"quadclick\"};Array.isArray(e)||(e=[e]),e.forEach(function(e){c(e,\"mousedown\",p,o)})};var p=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};t.getModifierString=function(e){return r.KEY_MODS[p(e)]},t.addCommandKeyListener=function(e,n,r){if(i.isOldGecko||i.isOpera&&!(\"KeyboardEvent\"in window)){var o=null;c(e,\"keydown\",function(e){o=e.keyCode},r),c(e,\"keypress\",function(e){return d(n,e,o)},r)}else{var u=null;c(e,\"keydown\",function(e){s[e.keyCode]=(s[e.keyCode]||0)+1;var t=d(n,e,e.keyCode);return u=e.defaultPrevented,t},r),c(e,\"keypress\",function(e){u&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),u=null)},r),c(e,\"keyup\",function(e){s[e.keyCode]=null},r),s||(v(),c(window,\"focus\",v))}};if(typeof window==\"object\"&&window.postMessage&&!i.isOldIE){var m=1;t.nextTick=function(e,n){n=n||window;var r=\"zero-timeout-message-\"+m++,i=function(s){s.data==r&&(t.stopPropagation(s),h(n,\"message\",i),e())};c(n,\"message\",i),n.postMessage(r,\"*\")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout(function r(){t.$idleBlocked?setTimeout(r,100):e()},n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout(function(){t.$idleBlocked=!1},e||100)},t.nextFrame=typeof window==\"object\"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}}),define(\"ace/range\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return\"Range: [\"+this.start.row+\"/\"+this.start.column+\"] -> [\"+this.end.row+\"/\"+this.end.column+\"]\"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e==\"object\"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e==\"object\"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?t<this.start.column?-1:t>this.end.column?1:0:e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)var n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)var r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(n==0)return this;if(n==-1)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define(\"ace/lib/lang\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split(\"\").reverse().join(\"\")},t.stringRepeat=function(e,t){var n=\"\";while(t>0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\\s\\s*/,i=/\\s\\s*$/;t.stringTrimLeft=function(e){return e.replace(r,\"\")},t.stringTrimRight=function(e){return e.replace(i,\"\")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)e[n]&&typeof e[n]==\"object\"?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function s(e){if(typeof e!=\"object\"||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=s(e[n]);return t}if(Object.prototype.toString.call(e)!==\"[object Object]\")return e;t={};for(var n in e)t[n]=s(e[n]);return t},t.arrayToMap=function(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\")},t.escapeHTML=function(e){return(\"\"+e).replace(/&/g,\"&#38;\").replace(/\"/g,\"&#34;\").replace(/'/g,\"&#39;\").replace(/</g,\"&#60;\")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){n==null&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),define(\"ace/clipboard\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";var r;n.exports={lineMode:!1,pasteCancelled:function(){return r&&r>Date.now()-50?!0:r=!1},cancel:function(){r=Date.now()}}}),define(\"ace/keyboard/textinput\",[\"require\",\"exports\",\"module\",\"ace/lib/event\",\"ace/lib/useragent\",\"ace/lib/dom\",\"ace/lib/lang\",\"ace/clipboard\",\"ace/lib/keys\"],function(e,t,n){\"use strict\";var r=e(\"../lib/event\"),i=e(\"../lib/useragent\"),s=e(\"../lib/dom\"),o=e(\"../lib/lang\"),u=e(\"../clipboard\"),a=i.isChrome<18,f=i.isIE,l=i.isChrome>63,c=400,h=e(\"../lib/keys\"),p=h.KEY_MODS,d=i.isIOS,v=d?/\\s/:/\\n/,m=i.isMobile,g=function(e,t){function X(){x=!0,n.blur(),n.focus(),x=!1}function $(e){e.keyCode==27&&n.value.length<n.selectionStart&&(b||(T=n.value),N=C=-1,O()),V()}function K(){clearTimeout(J),J=setTimeout(function(){E&&(n.style.cssText=E,E=\"\"),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()},0)}function G(e,t,n){var r=null,i=!1;n.addEventListener(\"keydown\",function(e){r&&clearTimeout(r),i=!0},!0),n.addEventListener(\"keyup\",function(e){r=setTimeout(function(){i=!1},100)},!0);var s=function(e){if(document.activeElement!==n)return;if(i||b||t.$mouseHandler.isMousePressed)return;if(g)return;var r=n.selectionStart,s=n.selectionEnd,o=null,u=0;if(r==0)o=h.up;else if(r==1)o=h.home;else if(s>C&&T[s]==\"\\n\")o=h.end;else if(r<N&&T[r-1]==\" \")o=h.left,u=p.option;else if(r<N||r==N&&C!=N&&r==s)o=h.left;else if(s>C&&T.slice(0,s).split(\"\\n\").length>2)o=h.down;else if(s>C&&T[s-1]==\" \")o=h.right,u=p.option;else if(s>C||s==C&&C!=N&&r==s)o=h.right;r!==s&&(u|=p.shift);if(o){var a=t.onCommandKey({},u,o);if(!a&&t.commands){o=h.keyCodeToString(o);var f=t.commands.findKeyCommand(u,o);f&&t.execCommand(f)}N=r,C=s,O(\"\")}};document.addEventListener(\"selectionchange\",s),t.on(\"destroy\",function(){document.removeEventListener(\"selectionchange\",s)})}var n=s.createElement(\"textarea\");n.className=\"ace_text-input\",n.setAttribute(\"wrap\",\"off\"),n.setAttribute(\"autocorrect\",\"off\"),n.setAttribute(\"autocapitalize\",\"off\"),n.setAttribute(\"spellcheck\",!1),n.style.opacity=\"0\",e.insertBefore(n,e.firstChild);var g=!1,y=!1,b=!1,w=!1,E=\"\";m||(n.style.fontSize=\"1px\");var S=!1,x=!1,T=\"\",N=0,C=0,k=0;try{var L=document.activeElement===n}catch(A){}r.addListener(n,\"blur\",function(e){if(x)return;t.onBlur(e),L=!1},t),r.addListener(n,\"focus\",function(e){if(x)return;L=!0;if(i.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),i.isEdge?setTimeout(O):O()},t),this.$focusScroll=!1,this.focus=function(){if(E||l||this.$focusScroll==\"browser\")return n.focus({preventScroll:!0});var e=n.style.top;n.style.position=\"fixed\",n.style.top=\"0px\";try{var t=n.getBoundingClientRect().top!=0}catch(r){return}var i=[];if(t){var s=n.parentElement;while(s&&s.nodeType==1)i.push(s),s.setAttribute(\"ace_nocontext\",!0),!s.parentElement&&s.getRootNode?s=s.getRootNode().host:s=s.parentElement}n.focus({preventScroll:!0}),t&&i.forEach(function(e){e.removeAttribute(\"ace_nocontext\")}),setTimeout(function(){n.style.position=\"\",n.style.top==\"0px\"&&(n.style.top=e)},0)},this.blur=function(){n.blur()},this.isFocused=function(){return L},t.on(\"beforeEndOperation\",function(){var e=t.curOp,r=e&&e.command&&e.command.name;if(r==\"insertstring\")return;var i=r&&(e.docChanged||e.selectionChanged);b&&i&&(T=n.value=\"\",W()),O()});var O=d?function(e){if(!L||g&&!e||w)return;e||(e=\"\");var r=\"\\n ab\"+e+\"cde fg\\n\";r!=n.value&&(n.value=T=r);var i=4,s=4+(e.length||(t.selection.isEmpty()?0:1));(N!=i||C!=s)&&n.setSelectionRange(i,s),N=i,C=s}:function(){if(b||w)return;if(!L&&!P)return;b=!0;var e=0,r=0,i=\"\";if(t.session){var s=t.selection,o=s.getRange(),u=s.cursor.row;e=o.start.column,r=o.end.column,i=t.session.getLine(u);if(o.start.row!=u){var a=t.session.getLine(u-1);e=o.start.row<u-1?0:e,r+=a.length+1,i=a+\"\\n\"+i}else if(o.end.row!=u){var f=t.session.getLine(u+1);r=o.end.row>u+1?f.length:r,r+=i.length+1,i=i+\"\\n\"+f}else m&&u>0&&(i=\"\\n\"+i,r+=1,e+=1);i.length>c&&(e<c&&r<c?i=i.slice(0,c):(i=\"\\n\",e=0,r=1))}var l=i+\"\\n\\n\";l!=T&&(n.value=T=l,N=C=l.length),P&&(N=n.selectionStart,C=n.selectionEnd);if(C!=r||N!=e||n.selectionEnd!=C)try{n.setSelectionRange(e,r),N=e,C=r}catch(h){}b=!1};this.resetSelection=O,L&&t.onFocus();var M=function(e){return e.selectionStart===0&&e.selectionEnd>=T.length&&e.value===T&&T&&e.selectionEnd!==C},_=function(e){if(b)return;g?g=!1:M(n)?(t.selectAll(),O()):m&&n.selectionStart!=N&&O()},D=null;this.setInputHandler=function(e){D=e},this.getInputHandler=function(){return D};var P=!1,H=function(e,r){P&&(P=!1);if(y)return O(),e&&t.onPaste(e),y=!1,\"\";var i=n.selectionStart,s=n.selectionEnd,o=N,u=T.length-C,a=e,f=e.length-i,l=e.length-s,c=0;while(o>0&&T[c]==e[c])c++,o--;a=a.slice(c),c=1;while(u>0&&T.length-c>N-1&&T[T.length-c]==e[e.length-c])c++,u--;f-=c-1,l-=c-1;var h=a.length-c+1;return h<0&&(o=-h,h=0),a=a.slice(0,h),!r&&!a&&!f&&!o&&!u&&!l?\"\":(w=!0,a&&!o&&!u&&!f&&!l||S?t.onTextInput(a):t.onTextInput(a,{extendLeft:o,extendRight:u,restoreStart:f,restoreEnd:l}),w=!1,T=e,N=i,C=s,k=l,a)},B=function(e){if(b)return z();if(e&&e.inputType){if(e.inputType==\"historyUndo\")return t.execCommand(\"undo\");if(e.inputType==\"historyRedo\")return t.execCommand(\"redo\")}var r=n.value,i=H(r,!0);(r.length>c+100||v.test(i)||m&&N<1&&N==C)&&O()},j=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(!r||a)return;var i=f||n?\"Text\":\"text/plain\";try{return t?r.setData(i,t)!==!1:r.getData(i)}catch(e){if(!n)return j(e,t,!0)}},F=function(e,i){var s=t.getCopyText();if(!s)return r.preventDefault(e);j(e,s)?(d&&(O(s),g=s,setTimeout(function(){g=!1},10)),i?t.onCut():t.onCopy(),r.preventDefault(e)):(g=!0,n.value=s,n.select(),setTimeout(function(){g=!1,O(),i?t.onCut():t.onCopy()}))},I=function(e){F(e,!0)},q=function(e){F(e,!1)},R=function(e){var s=j(e);if(u.pasteCancelled())return;typeof s==\"string\"?(s&&t.onPaste(s,e),i.isIE&&setTimeout(O),r.preventDefault(e)):(n.value=\"\",y=!0)};r.addCommandKeyListener(n,t.onCommandKey.bind(t),t),r.addListener(n,\"select\",_,t),r.addListener(n,\"input\",B,t),r.addListener(n,\"cut\",I,t),r.addListener(n,\"copy\",q,t),r.addListener(n,\"paste\",R,t),(!(\"oncut\"in n)||!(\"oncopy\"in n)||!(\"onpaste\"in n))&&r.addListener(e,\"keydown\",function(e){if(i.isMac&&!e.metaKey||!e.ctrlKey)return;switch(e.keyCode){case 67:q(e);break;case 86:R(e);break;case 88:I(e)}},t);var U=function(e){if(b||!t.onCompositionStart||t.$readOnly)return;b={};if(S)return;e.data&&(b.useTextareaForIME=!1),setTimeout(z,0),t._signal(\"compositionStart\"),t.on(\"mousedown\",X);var r=t.getSelectionRange();r.end.row=r.start.row,r.end.column=r.start.column,b.markerRange=r,b.selectionStart=N,t.onCompositionStart(b),b.useTextareaForIME?(T=n.value=\"\",N=0,C=0):(n.msGetInputContext&&(b.context=n.msGetInputContext()),n.getInputContext&&(b.context=n.getInputContext()))},z=function(){if(!b||!t.onCompositionUpdate||t.$readOnly)return;if(S)return X();if(b.useTextareaForIME)t.onCompositionUpdate(n.value);else{var e=n.value;H(e),b.markerRange&&(b.context&&(b.markerRange.start.column=b.selectionStart=b.context.compositionStartOffset),b.markerRange.end.column=b.markerRange.start.column+C-b.selectionStart+k)}},W=function(e){if(!t.onCompositionEnd||t.$readOnly)return;b=!1,t.onCompositionEnd(),t.off(\"mousedown\",X),e&&B()},V=o.delayedCall(z,50).schedule.bind(null,null);r.addListener(n,\"compositionstart\",U,t),r.addListener(n,\"compositionupdate\",z,t),r.addListener(n,\"keyup\",$,t),r.addListener(n,\"keydown\",V,t),r.addListener(n,\"compositionend\",W,t),this.getElement=function(){return n},this.setCommandMode=function(e){S=e,n.readOnly=!1},this.setReadOnly=function(e){S||(n.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){P=!0,O(),t._emit(\"nativecontextmenu\",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,o){E||(E=n.style.cssText),n.style.cssText=(o?\"z-index:100000;\":\"\")+(i.isIE?\"opacity:0.1;\":\"\")+\"text-indent: -\"+(N+C)*t.renderer.characterWidth*.5+\"px;\";var u=t.container.getBoundingClientRect(),a=s.computedStyle(t.container),f=u.top+(parseInt(a.borderTopWidth)||0),l=u.left+(parseInt(u.borderLeftWidth)||0),c=u.bottom-f-n.clientHeight-2,h=function(e){s.translate(n,e.clientX-l-2,Math.min(e.clientY-f-2,c))};h(e);if(e.type!=\"mousedown\")return;t.renderer.$isMousePressed=!0,clearTimeout(J),i.isWin&&r.capture(t.container,h,K)},this.onContextMenuClose=K;var J,Q=function(e){t.textInput.onContextMenu(e),K()};r.addListener(n,\"mouseup\",Q,t),r.addListener(n,\"mousedown\",function(e){e.preventDefault(),K()},t),r.addListener(t.renderer.scroller,\"contextmenu\",Q,t),r.addListener(n,\"contextmenu\",Q,t),d&&G(e,t,n)};t.TextInput=g,t.$setUserAgentForTests=function(e,t){m=e,d=t}}),define(\"ace/mouse/default_handlers\",[\"require\",\"exports\",\"module\",\"ace/lib/useragent\"],function(e,t,n){\"use strict\";function o(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler(\"mousedown\",this.onMouseDown.bind(e)),t.setDefaultHandler(\"dblclick\",this.onDoubleClick.bind(e)),t.setDefaultHandler(\"tripleclick\",this.onTripleClick.bind(e)),t.setDefaultHandler(\"quadclick\",this.onQuadClick.bind(e)),t.setDefaultHandler(\"mousewheel\",this.onMouseWheel.bind(e));var n=[\"select\",\"startSelect\",\"selectEnd\",\"selectAllEnd\",\"selectByWordsEnd\",\"selectByLinesEnd\",\"dragWait\",\"dragWaitEnd\",\"focusWait\"];n.forEach(function(t){e[t]=this[t]},this),e.selectByLines=this.extendSelectionBy.bind(e,\"getLineRange\"),e.selectByWords=this.extendSelectionBy.bind(e,\"getWordRange\")}function u(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}function a(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row==e.end.row-1&&!e.start.column&&!e.end.column)var n=t.column-4;else var n=2*t.row-e.start.row-e.end.row;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}var r=e(\"../lib/useragent\"),i=0,s=550;(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,s=e.getButton();if(s!==0){var o=i.getSelectionRange(),u=o.isEmpty();(u||s==1)&&i.selection.moveToPosition(n),s==2&&(i.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault());return}this.mousedownEvent.time=Date.now();if(t&&!i.isFocused()){i.focus();if(this.$focusTimeout&&!this.$clickSelection&&!i.inMultiSelectMode){this.setState(\"focusWait\"),this.captureMouse(e);return}}return this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;if(!this.mousedownEvent)return;this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle(\"ace_selecting\"),this.setState(\"select\")},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(r==-1)e=this.$clickSelection.end;else if(r==1)e=this.$clickSelection.start;else{var i=a(this.$clickSelection,n);n=i.cursor,e=i.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),i=n.selection[e](r.row,r.column);if(this.$clickSelection){var s=this.$clickSelection.comparePoint(i.start),o=this.$clickSelection.comparePoint(i.end);if(s==-1&&o<=0){t=this.$clickSelection.end;if(i.end.row!=r.row||i.end.column!=r.column)r=i.start}else if(o==1&&s>=0){t=this.$clickSelection.start;if(i.start.row!=r.row||i.start.column!=r.column)r=i.end}else if(s==-1&&o==1)r=i.end,t=i.start;else{var u=a(this.$clickSelection,r);r=u.cursor,t=u.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle(\"ace_selecting\"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(e>i||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session,i=r.getBracketRange(t);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState(\"select\")):(i=n.selection.getWordRange(t.row,t.column),this.setState(\"selectByWords\")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState(\"selectByLines\");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState(\"selectAll\")},this.onMouseWheel=function(e){if(e.getAccelKey())return;e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,r=e.domEvent.timeStamp,i=r-n.t,o=i?e.wheelX/i:n.vx,u=i?e.wheelY/i:n.vy;i<s&&(o=(o+n.vx)/2,u=(u+n.vy)/2);var a=Math.abs(o/u),f=!1;a>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(f=!0),a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(f=!0);if(f)n.allowed=r;else if(r-n.allowed<s){var l=Math.abs(o)<=1.5*Math.abs(n.vx)&&Math.abs(u)<=1.5*Math.abs(n.vy);l?(f=!0,n.allowed=r):n.allowed=0}n.t=r,n.vx=o,n.vy=u;if(f)return t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()}}).call(o.prototype),t.DefaultHandlers=o}),define(\"ace/tooltip\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";function s(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}var r=e(\"./lib/oop\"),i=e(\"./lib/dom\");(function(){this.$init=function(){return this.$element=i.createElement(\"div\"),this.$element.className=\"ace_tooltip\",this.$element.style.display=\"none\",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+\"px\",this.getElement().style.top=t+\"px\"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,n){e!=null&&this.setText(e),t!=null&&n!=null&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display=\"block\",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display=\"none\",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(s.prototype),t.Tooltip=s}),define(\"ace/mouse/default_gutter_handler\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\",\"ace/lib/oop\",\"ace/lib/event\",\"ace/tooltip\"],function(e,t,n){\"use strict\";function u(e){function l(){var r=u.getDocumentPosition().row,s=n.$annotations[r];if(!s)return c();var o=t.session.getLength();if(r==o){var a=t.renderer.pixelToScreenCoordinates(0,u.y).row,l=u.$pos;if(a>t.session.documentToScreenRow(l.row,l.column))return c()}if(f==s)return;f=s.text.join(\"<br/>\"),i.setHtml(f),i.show(),t._signal(\"showGutterTooltip\",i),t.on(\"mousewheel\",c);if(e.$tooltipFollowsMouse)h(u);else{var p=u.domEvent.target,d=p.getBoundingClientRect(),v=i.getElement().style;v.left=d.right+\"px\",v.top=d.bottom+\"px\"}}function c(){o&&(o=clearTimeout(o)),f&&(i.hide(),f=null,t._signal(\"hideGutterTooltip\",i),t.off(\"mousewheel\",c))}function h(e){i.setPosition(e.x,e.y)}var t=e.editor,n=t.renderer.$gutterLayer,i=new a(t.container);e.editor.setDefaultHandler(\"guttermousedown\",function(r){if(!t.isFocused()||r.getButton()!=0)return;var i=n.getRegion(r);if(i==\"foldWidgets\")return;var s=r.getDocumentPosition().row,o=t.session.selection;if(r.getShiftKey())o.selectTo(s,0);else{if(r.domEvent.detail==2)return t.selectAll(),r.preventDefault();e.$clickSelection=t.selection.getLineRange(s)}return e.setState(\"selectByLines\"),e.captureMouse(r),r.preventDefault()});var o,u,f;e.editor.setDefaultHandler(\"guttermousemove\",function(t){var n=t.domEvent.target||t.domEvent.srcElement;if(r.hasCssClass(n,\"ace_fold-widget\"))return c();f&&e.$tooltipFollowsMouse&&h(t),u=t;if(o)return;o=setTimeout(function(){o=null,u&&!e.isMousePressed?l():c()},50)}),s.addListener(t.renderer.$gutter,\"mouseout\",function(e){u=null;if(!f||o)return;o=setTimeout(function(){o=null,c()},50)},t),t.on(\"changeSession\",c)}function a(e){o.call(this,e)}var r=e(\"../lib/dom\"),i=e(\"../lib/oop\"),s=e(\"../lib/event\"),o=e(\"../tooltip\").Tooltip;i.inherits(a,o),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,i=this.getWidth(),s=this.getHeight();e+=15,t+=15,e+i>n&&(e-=e+i-n),t+s>r&&(t-=20+s),o.prototype.setPosition.call(this,e,t)}}.call(a.prototype),t.GutterHandler=u}),define(\"ace/mouse/mouse_event\",[\"require\",\"exports\",\"module\",\"ace/lib/event\",\"ace/lib/useragent\"],function(e,t,n){\"use strict\";var r=e(\"../lib/event\"),i=e(\"../lib/useragent\"),s=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var e=this.editor,t=e.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=i.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(s.prototype)}),define(\"ace/mouse/dragdrop_handler\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\",\"ace/lib/event\",\"ace/lib/useragent\"],function(e,t,n){\"use strict\";function f(e){function T(e,n){var r=Date.now(),i=!n||e.row!=n.row,s=!n||e.column!=n.column;if(!S||i||s)t.moveCursorToPosition(e),S=r,x={x:p,y:d};else{var o=l(x.x,x.y,p,d);o>a?S=null:r-S>=u&&(t.renderer.scrollCursorIntoView(),S=null)}}function N(e,n){var r=Date.now(),i=t.renderer.layerConfig.lineHeight,s=t.renderer.layerConfig.characterWidth,u=t.renderer.scroller.getBoundingClientRect(),a={x:{left:p-u.left,right:u.right-p},y:{top:d-u.top,bottom:u.bottom-d}},f=Math.min(a.x.left,a.x.right),l=Math.min(a.y.top,a.y.bottom),c={row:e.row,column:e.column};f/s<=2&&(c.column+=a.x.left<a.x.right?-3:2),l/i<=1&&(c.row+=a.y.top<a.y.bottom?-1:1);var h=e.row!=c.row,v=e.column!=c.column,m=!n||e.row!=n.row;h||v&&!m?E?r-E>=o&&t.renderer.scrollCursorIntoView(c):E=r:E=null}function C(){var e=g;g=t.renderer.screenToTextCoordinates(p,d),T(g,e),N(g,e)}function k(){m=t.selection.toOrientedRange(),h=t.session.addMarker(m,\"ace_selection\",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(v),C(),v=setInterval(C,20),y=0,i.addListener(document,\"mousemove\",O)}function L(){clearInterval(v),t.session.removeMarker(h),h=null,t.selection.fromOrientedRange(m),t.isFocused()&&!w&&t.$resetCursorStyle(),m=null,g=null,y=0,E=null,S=null,i.removeListener(document,\"mousemove\",O)}function O(){A==null&&(A=setTimeout(function(){A!=null&&h&&L()},20))}function M(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return e==\"text/plain\"||e==\"Text\"})}function _(e){var t=[\"copy\",\"copymove\",\"all\",\"uninitialized\"],n=[\"move\",\"copymove\",\"linkmove\",\"all\",\"uninitialized\"],r=s.isMac?e.altKey:e.ctrlKey,i=\"uninitialized\";try{i=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var o=\"none\";return r&&t.indexOf(i)>=0?o=\"copy\":n.indexOf(i)>=0?o=\"move\":t.indexOf(i)>=0&&(o=\"copy\"),o}var t=e.editor,n=r.createElement(\"img\");n.src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\",s.isOpera&&(n.style.cssText=\"width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;\");var f=[\"dragWait\",\"dragWaitEnd\",\"startDrag\",\"dragReadyEnd\",\"onMouseDrag\"];f.forEach(function(t){e[t]=this[t]},this),t.on(\"mousedown\",this.onMouseDown.bind(e));var c=t.container,h,p,d,v,m,g,y=0,b,w,E,S,x;this.onDragStart=function(e){if(this.cancelDrag||!c.draggable){var r=this;return setTimeout(function(){r.startSelect(),r.captureMouse(e)},0),e.preventDefault()}m=t.getSelectionRange();var i=e.dataTransfer;i.effectAllowed=t.getReadOnly()?\"copy\":\"copyMove\",s.isOpera&&(t.container.appendChild(n),n.scrollTop=0),i.setDragImage&&i.setDragImage(n,0,0),s.isOpera&&t.container.removeChild(n),i.clearData(),i.setData(\"Text\",t.session.getTextRange()),w=!0,this.setState(\"drag\")},this.onDragEnd=function(e){c.draggable=!1,w=!1,this.setState(null);if(!t.getReadOnly()){var n=e.dataTransfer.dropEffect;!b&&n==\"move\"&&t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle(\"ace_dragging\"),this.editor.renderer.setCursorStyle(\"\")},this.onDragEnter=function(e){if(t.getReadOnly()||!M(e.dataTransfer))return;return p=e.clientX,d=e.clientY,h||k(),y++,e.dataTransfer.dropEffect=b=_(e),i.preventDefault(e)},this.onDragOver=function(e){if(t.getReadOnly()||!M(e.dataTransfer))return;return p=e.clientX,d=e.clientY,h||(k(),y++),A!==null&&(A=null),e.dataTransfer.dropEffect=b=_(e),i.preventDefault(e)},this.onDragLeave=function(e){y--;if(y<=0&&h)return L(),b=null,i.preventDefault(e)},this.onDrop=function(e){if(!g)return;var n=e.dataTransfer;if(w)switch(b){case\"move\":m.contains(g.row,g.column)?m={start:g,end:g}:m=t.moveText(m,g);break;case\"copy\":m=t.moveText(m,g,!0)}else{var r=n.getData(\"Text\");m={start:g,end:t.session.insert(g,r)},t.focus(),b=null}return L(),i.preventDefault(e)},i.addListener(c,\"dragstart\",this.onDragStart.bind(e),t),i.addListener(c,\"dragend\",this.onDragEnd.bind(e),t),i.addListener(c,\"dragenter\",this.onDragEnter.bind(e),t),i.addListener(c,\"dragover\",this.onDragOver.bind(e),t),i.addListener(c,\"dragleave\",this.onDragLeave.bind(e),t),i.addListener(c,\"drop\",this.onDrop.bind(e),t);var A=null}function l(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}var r=e(\"../lib/dom\"),i=e(\"../lib/event\"),s=e(\"../lib/useragent\"),o=200,u=200,a=5;(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle(\"ace_dragging\"),this.editor.renderer.setCursorStyle(\"\"),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=e.container;t.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle(\"ace_dragging\");var n=s.isWin?\"default\":\"move\";e.renderer.setCursorStyle(n),this.setState(\"dragReady\")},this.onMouseDrag=function(e){var t=this.editor.container;if(s.isIE&&this.state==\"dragReady\"){var n=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>3&&t.dragDrop()}if(this.state===\"dragWait\"){var n=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(!this.$dragEnabled)return;this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton(),i=e.domEvent.detail||1;if(i===1&&r===0&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var o=e.domEvent.target||e.domEvent.srcElement;\"unselectable\"in o&&(o.unselectable=\"on\");if(t.getDragDelay()){if(s.isWebKit){this.cancelDrag=!0;var u=t.container;u.draggable=!0}this.setState(\"dragWait\")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}).call(f.prototype),t.DragdropHandler=f}),define(\"ace/mouse/touch_handler\",[\"require\",\"exports\",\"module\",\"ace/mouse/mouse_event\",\"ace/lib/event\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";var r=e(\"./mouse_event\").MouseEvent,i=e(\"../lib/event\"),s=e(\"../lib/dom\");t.addTouchListeners=function(e,t){function b(){var e=window.navigator&&window.navigator.clipboard,r=!1,i=function(){var n=t.getCopyText(),i=t.session.getUndoManager().hasUndo();y.replaceChild(s.buildDom(r?[\"span\",!n&&[\"span\",{\"class\":\"ace_mobile-button\",action:\"selectall\"},\"Select All\"],n&&[\"span\",{\"class\":\"ace_mobile-button\",action:\"copy\"},\"Copy\"],n&&[\"span\",{\"class\":\"ace_mobile-button\",action:\"cut\"},\"Cut\"],e&&[\"span\",{\"class\":\"ace_mobile-button\",action:\"paste\"},\"Paste\"],i&&[\"span\",{\"class\":\"ace_mobile-button\",action:\"undo\"},\"Undo\"],[\"span\",{\"class\":\"ace_mobile-button\",action:\"find\"},\"Find\"],[\"span\",{\"class\":\"ace_mobile-button\",action:\"openCommandPallete\"},\"Pallete\"]]:[\"span\"]),y.firstChild)},o=function(n){var s=n.target.getAttribute(\"action\");if(s==\"more\"||!r)return r=!r,i();if(s==\"paste\")e.readText().then(function(e){t.execCommand(s,e)});else if(s){if(s==\"cut\"||s==\"copy\")e?e.writeText(t.getCopyText()):document.execCommand(\"copy\");t.execCommand(s)}y.firstChild.style.display=\"none\",r=!1,s!=\"openCommandPallete\"&&t.focus()};y=s.buildDom([\"div\",{\"class\":\"ace_mobile-menu\",ontouchstart:function(e){n=\"menu\",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),o(e)},onclick:o},[\"span\"],[\"span\",{\"class\":\"ace_mobile-button\",action:\"more\"},\"...\"]],t.container)}function w(){y||b();var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),r=t.container.getBoundingClientRect();y.style.top=n.pageY-r.top-3+\"px\",y.style.right=\"10px\",y.style.display=\"\",y.firstChild.style.display=\"none\",t.on(\"input\",E)}function E(e){y&&(y.style.display=\"none\"),t.off(\"input\",E)}function S(){l=null,clearTimeout(l);var e=t.selection.getRange(),r=e.contains(p.row,p.column);if(e.isEmpty()||!r)t.selection.moveToPosition(p),t.selection.selectWord();n=\"wait\",w()}function x(){l=null,clearTimeout(l),t.selection.moveToPosition(p);var e=d>=2?t.selection.getLineRange(p.row):t.session.getBracketRange(p);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),n=\"wait\"}function T(){h+=60,c=setInterval(function(){h--<=0&&(clearInterval(c),c=null),Math.abs(v)<.01&&(v=0),Math.abs(m)<.01&&(m=0),h<20&&(v=.9*v),h<20&&(m=.9*m);var e=t.session.getScrollTop();t.renderer.scrollBy(10*v,10*m),e==t.session.getScrollTop()&&(h=0)},10)}var n=\"scroll\",o,u,a,f,l,c,h=0,p,d=0,v=0,m=0,g,y;i.addListener(e,\"contextmenu\",function(e){if(!g)return;var n=t.textInput.getElement();n.focus()},t),i.addListener(e,\"touchstart\",function(e){var i=e.touches;if(l||i.length>1){clearTimeout(l),l=null,a=-1,n=\"zoom\";return}g=t.$mouseHandler.isMousePressed=!0;var s=t.renderer.layerConfig.lineHeight,c=t.renderer.layerConfig.lineHeight,y=e.timeStamp;f=y;var b=i[0],w=b.clientX,E=b.clientY;Math.abs(o-w)+Math.abs(u-E)>s&&(a=-1),o=e.clientX=w,u=e.clientY=E,v=m=0;var T=new r(e,t);p=T.getDocumentPosition();if(y-a<500&&i.length==1&&!h)d++,e.preventDefault(),e.button=0,x();else{d=0;var N=t.selection.cursor,C=t.selection.isEmpty()?N:t.selection.anchor,k=t.renderer.$cursorLayer.getPixelPosition(N,!0),L=t.renderer.$cursorLayer.getPixelPosition(C,!0),A=t.renderer.scroller.getBoundingClientRect(),O=function(e,t){return e/=c,t=t/s-.75,e*e+t*t};if(e.clientX<A.left){n=\"zoom\";return}var M=O(e.clientX-A.left-k.left,e.clientY-A.top-k.top),_=O(e.clientX-A.left-L.left,e.clientY-A.top-L.top);M<3.5&&_<3.5&&(n=M>_?\"cursor\":\"anchor\"),_<3.5?n=\"anchor\":M<3.5?n=\"cursor\":n=\"scroll\",l=setTimeout(S,450)}a=y},t),i.addListener(e,\"touchend\",function(e){g=t.$mouseHandler.isMousePressed=!1,c&&clearInterval(c),n==\"zoom\"?(n=\"\",h=0):l?(t.selection.moveToPosition(p),h=0,w()):n==\"scroll\"?(T(),E()):w(),clearTimeout(l),l=null},t),i.addListener(e,\"touchmove\",function(e){l&&(clearTimeout(l),l=null);var i=e.touches;if(i.length>1||n==\"zoom\")return;var s=i[0],a=o-s.clientX,c=u-s.clientY;if(n==\"wait\"){if(!(a*a+c*c>4))return e.preventDefault();n=\"cursor\"}o=s.clientX,u=s.clientY,e.clientX=s.clientX,e.clientY=s.clientY;var h=e.timeStamp,p=h-f;f=h;if(n==\"scroll\"){var d=new r(e,t);d.speed=1,d.wheelX=a,d.wheelY=c,10*Math.abs(a)<Math.abs(c)&&(a=0),10*Math.abs(c)<Math.abs(a)&&(c=0),p!=0&&(v=a/p,m=c/p),t._emit(\"mousewheel\",d),d.propagationStopped||(v=m=0)}else{var g=new r(e,t),y=g.getDocumentPosition();n==\"cursor\"?t.selection.moveCursorToPosition(y):n==\"anchor\"&&t.selection.setSelectionAnchor(y.row,y.column),t.renderer.scrollCursorIntoView(y),e.preventDefault()}},t)}}),define(\"ace/lib/net\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";var r=e(\"./dom\");t.get=function(e,t){var n=new XMLHttpRequest;n.open(\"GET\",e,!0),n.onreadystatechange=function(){n.readyState===4&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=r.getDocumentHead(),i=document.createElement(\"script\");i.src=e,n.appendChild(i),i.onload=i.onreadystatechange=function(e,n){if(n||!i.readyState||i.readyState==\"loaded\"||i.readyState==\"complete\")i=i.onload=i.onreadystatechange=null,n||t()}},t.qualifyURL=function(e){var t=document.createElement(\"a\");return t.href=e,t.href}}),define(\"ace/lib/event_emitter\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!=\"object\"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length;o++){n[o](t,this);if(t.propagationStopped)break}if(r&&!t.defaultPrevented)return r(t,this)},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(!n)return;n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)},r.once=function(e,t){var n=this;this.on(e,function r(){n.off(e,r),t.apply(null,arguments)});if(!t)return new Promise(function(e){t=e})},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;n||(n=this._defaultHandlers={_disabled_:{}});if(n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var s=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(!n)return;var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);i!=-1&&r.splice(i,1)}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?\"unshift\":\"push\"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(!n)return;var r=n.indexOf(t);r!==-1&&n.splice(r,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=r}),define(\"ace/lib/app_config\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/event_emitter\"],function(e,t,n){\"no use strict\";function o(e){typeof console!=\"undefined\"&&console.warn&&console.warn.apply(console,arguments)}function u(e,t){var n=new Error(e);n.data=t,typeof console==\"object\"&&console.error&&console.error(n),setTimeout(function(){throw n})}var r=e(\"./oop\"),i=e(\"./event_emitter\").EventEmitter,s={setOptions:function(e){Object.keys(e).forEach(function(t){this.setOption(t,e[t])},this)},getOptions:function(e){var t={};if(!e){var n=this.$options;e=Object.keys(n).filter(function(e){return!n[e].hidden})}else Array.isArray(e)||(t=e,e=Object.keys(t));return e.forEach(function(e){t[e]=this.getOption(e)},this),t},setOption:function(e,t){if(this[\"$\"+e]===t)return;var n=this.$options[e];if(!n)return o('misspelled option \"'+e+'\"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this[\"$\"+e]=t),n&&n.set&&n.set.call(this,t)},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this[\"$\"+e]:o('misspelled option \"'+e+'\"')}},a=function(){this.$defaultOptions={}};(function(){r.implement(this,i),this.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach(function(t){var r=n[t];typeof r==\"string\"&&(r={forwardTo:r}),r.name||(r.name=t),e.$options[r.name]=r,\"initialValue\"in r&&(e[\"$\"+r.name]=r.initialValue)}),r.implement(e,s),this},this.resetOptions=function(e){Object.keys(e.$options).forEach(function(t){var n=e.$options[t];\"value\"in n&&e.setOption(t,n.value)})},this.setDefaultValue=function(e,t,n){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var r=this.$defaultOptions[e]||(this.$defaultOptions[e]={});r[t]&&(r.forwardTo?this.setDefaultValue(r.forwardTo,t,n):r[t].value=n)},this.setDefaultValues=function(e,t){Object.keys(t).forEach(function(n){this.setDefaultValue(e,n,t[n])},this)},this.warn=o,this.reportError=u}).call(a.prototype),t.AppConfig=a}),define(\"ace/config\",[\"require\",\"exports\",\"module\",\"ace/lib/lang\",\"ace/lib/oop\",\"ace/lib/net\",\"ace/lib/app_config\"],function(e,t,n){\"no use strict\";function l(r){if(!u||!u.document)return;a.packaged=r||e.packaged||n.packaged||u.define&&define.packaged;var i={},s=\"\",o=document.currentScript||document._currentScript,f=o&&o.ownerDocument||document,l=f.getElementsByTagName(\"script\");for(var h=0;h<l.length;h++){var p=l[h],d=p.src||p.getAttribute(\"src\");if(!d)continue;var v=p.attributes;for(var m=0,g=v.length;m<g;m++){var y=v[m];y.name.indexOf(\"data-ace-\")===0&&(i[c(y.name.replace(/^data-ace-/,\"\"))]=y.value)}var b=d.match(/^(.*)\\/ace(\\-\\w+)?\\.js(\\?|$)/);b&&(s=b[1])}s&&(i.base=i.base||s,i.packaged=!0),i.basePath=i.base,i.workerPath=i.workerPath||i.base,i.modePath=i.modePath||i.base,i.themePath=i.themePath||i.base,delete i.base;for(var w in i)typeof i[w]!=\"undefined\"&&t.set(w,i[w])}function c(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}var r=e(\"./lib/lang\"),i=e(\"./lib/oop\"),s=e(\"./lib/net\"),o=e(\"./lib/app_config\").AppConfig;n.exports=t=new o;var u=function(){return this||typeof window!=\"undefined\"&&window}(),a={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:\"\",suffix:\".js\",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1};t.get=function(e){if(!a.hasOwnProperty(e))throw new Error(\"Unknown config key: \"+e);return a[e]},t.set=function(e,t){if(a.hasOwnProperty(e))a[e]=t;else if(this.setDefaultValue(\"\",e,t)==0)throw new Error(\"Unknown config key: \"+e)},t.all=function(){return r.copyObject(a)},t.$modes={},t.moduleUrl=function(e,t){if(a.$moduleUrls[e])return a.$moduleUrls[e];var n=e.split(\"/\");t=t||n[n.length-2]||\"\";var r=t==\"snippets\"?\"/\":\"-\",i=n[n.length-1];if(t==\"worker\"&&r==\"-\"){var s=new RegExp(\"^\"+t+\"[\\\\-_]|[\\\\-_]\"+t+\"$\",\"g\");i=i.replace(s,\"\")}(!i||i==t)&&n.length>1&&(i=n[n.length-2]);var o=a[t+\"Path\"];return o==null?o=a.basePath:r==\"/\"&&(t=r=\"\"),o&&o.slice(-1)!=\"/\"&&(o+=\"/\"),o+t+r+i+this.get(\"suffix\")},t.setModuleUrl=function(e,t){return a.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,r){var i,o;Array.isArray(n)&&(o=n[0],n=n[1]);try{i=e(n)}catch(u){}if(i&&!t.$loading[n])return r&&r(i);t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(r);if(t.$loading[n].length>1)return;var a=function(){e([n],function(e){t._emit(\"load.module\",{name:n,module:e});var r=t.$loading[n];t.$loading[n]=null,r.forEach(function(t){t&&t(e)})})};if(!t.get(\"packaged\"))return a();s.loadScript(t.moduleUrl(n,o),a),f()};var f=function(){!a.basePath&&!a.workerPath&&!a.modePath&&!a.themePath&&!Object.keys(a.$moduleUrls).length&&(console.error(\"Unable to infer path to ace from script src,\",\"use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes\",\"or with webpack use ace/webpack-resolver\"),f=function(){})};t.init=l,t.version=\"1.4.10\"}),define(\"ace/mouse/mouse_handler\",[\"require\",\"exports\",\"module\",\"ace/lib/event\",\"ace/lib/useragent\",\"ace/mouse/default_handlers\",\"ace/mouse/default_gutter_handler\",\"ace/mouse/mouse_event\",\"ace/mouse/dragdrop_handler\",\"ace/mouse/touch_handler\",\"ace/config\"],function(e,t,n){\"use strict\";var r=e(\"../lib/event\"),i=e(\"../lib/useragent\"),s=e(\"./default_handlers\").DefaultHandlers,o=e(\"./default_gutter_handler\").GutterHandler,u=e(\"./mouse_event\").MouseEvent,a=e(\"./dragdrop_handler\").DragdropHandler,f=e(\"./touch_handler\").addTouchListeners,l=e(\"../config\"),c=function(e){var t=this;this.editor=e,new s(this),new o(this),new a(this);var n=function(t){var n=!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement());n&&window.focus(),e.focus()},u=e.renderer.getMouseEventTarget();r.addListener(u,\"click\",this.onMouseEvent.bind(this,\"click\"),e),r.addListener(u,\"mousemove\",this.onMouseMove.bind(this,\"mousemove\"),e),r.addMultiMouseDownListener([u,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,\"onMouseEvent\",e),r.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,\"mousewheel\"),e),f(e.container,e);var l=e.renderer.$gutter;r.addListener(l,\"mousedown\",this.onMouseEvent.bind(this,\"guttermousedown\"),e),r.addListener(l,\"click\",this.onMouseEvent.bind(this,\"gutterclick\"),e),r.addListener(l,\"dblclick\",this.onMouseEvent.bind(this,\"gutterdblclick\"),e),r.addListener(l,\"mousemove\",this.onMouseEvent.bind(this,\"guttermousemove\"),e),r.addListener(u,\"mousedown\",n,e),r.addListener(l,\"mousedown\",n,e),i.isIE&&e.renderer.scrollBarV&&(r.addListener(e.renderer.scrollBarV.element,\"mousedown\",n,e),r.addListener(e.renderer.scrollBarH.element,\"mousedown\",n,e)),e.on(\"mousemove\",function(n){if(t.state||t.$dragDelay||!t.$dragEnabled)return;var r=e.renderer.screenToTextCoordinates(n.x,n.y),i=e.session.selection.getRange(),s=e.renderer;!i.isEmpty()&&i.insideStart(r.row,r.column)?s.setCursorStyle(\"default\"):s.setCursorStyle(\"\")},e)};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new u(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;if(!n||!n.length)return;this.editor._emit(e,new u(t,this.editor))},this.onMouseWheel=function(e,t){var n=new u(t,this.editor);n.speed=this.$scrollSpeed*2,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor,s=this.editor.renderer;s.$isMousePressed=!0;var o=this,a=function(e){if(!e)return;if(i.isWebKit&&!e.which&&o.releaseMouse)return o.releaseMouse();o.x=e.clientX,o.y=e.clientY,t&&t(e),o.mouseEvent=new u(e,o.editor),o.$mouseMoved=!0},f=function(e){n.off(\"beforeEndOperation\",c),clearInterval(h),l(),o[o.state+\"End\"]&&o[o.state+\"End\"](e),o.state=\"\",o.isMousePressed=s.$isMousePressed=!1,s.$keepTextAreaAtCursor&&s.$moveTextAreaToCursor(),o.$onCaptureMouseMove=o.releaseMouse=null,e&&o.onMouseEvent(\"mouseup\",e),n.endOperation()},l=function(){o[o.state]&&o[o.state](),o.$mouseMoved=!1};if(i.isOldIE&&e.domEvent.type==\"dblclick\")return setTimeout(function(){f(e)});var c=function(e){if(!o.releaseMouse)return;n.curOp.command.name&&n.curOp.selectionChanged&&(o[o.state+\"End\"]&&o[o.state+\"End\"](),o.state=\"\",o.releaseMouse())};n.on(\"beforeEndOperation\",c),n.startOperation({command:{name:\"mouse\"}}),o.$onCaptureMouseMove=a,o.releaseMouse=r.capture(this.editor.container,a,f);var h=setInterval(l,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){if(t&&t.domEvent&&t.domEvent.type!=\"contextmenu\")return;this.editor.off(\"nativecontextmenu\",e),t&&t.domEvent&&r.stopEvent(t.domEvent)}.bind(this);setTimeout(e,10),this.editor.on(\"nativecontextmenu\",e)}}).call(c.prototype),l.defineOptions(c.prototype,\"mouseHandler\",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:i.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=c}),define(\"ace/mouse/fold_handler\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";function i(e){e.on(\"click\",function(t){var n=t.getDocumentPosition(),i=e.session,s=i.getFoldAt(n.row,n.column,1);s&&(t.getAccelKey()?i.removeFold(s):i.expandFold(s),t.stop());var o=t.domEvent&&t.domEvent.target;o&&r.hasCssClass(o,\"ace_inline_button\")&&r.hasCssClass(o,\"ace_toggle_wrap\")&&(i.setOption(\"wrap\",!i.getUseWrapMode()),e.renderer.scrollCursorIntoView())}),e.on(\"gutterclick\",function(t){var n=e.renderer.$gutterLayer.getRegion(t);if(n==\"foldWidgets\"){var r=t.getDocumentPosition().row,i=e.session;i.foldWidgets&&i.foldWidgets[r]&&e.session.onFoldWidgetClick(r,t),e.isFocused()||e.focus(),t.stop()}}),e.on(\"gutterdblclick\",function(t){var n=e.renderer.$gutterLayer.getRegion(t);if(n==\"foldWidgets\"){var r=t.getDocumentPosition().row,i=e.session,s=i.getParentFoldRangeData(r,!0),o=s.range||s.firstRange;if(o){r=o.start.row;var u=i.getFoldAt(r,i.getLine(r).length,1);u?i.removeFold(u):(i.addFold(\"...\",o),e.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}t.stop()}})}var r=e(\"../lib/dom\");t.FoldHandler=i}),define(\"ace/keyboard/keybinding\",[\"require\",\"exports\",\"module\",\"ace/lib/keys\",\"ace/lib/event\"],function(e,t,n){\"use strict\";var r=e(\"../lib/keys\"),i=e(\"../lib/event\"),s=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]==e)return;while(t[t.length-1]&&t[t.length-1]!=this.$defaultHandler)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)},this.addKeyboardHandler=function(e,t){if(!e)return;typeof e==\"function\"&&!e.handleKeyboard&&(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);n!=-1&&this.$handlers.splice(n,1),t==undefined?this.$handlers.push(e):this.$handlers.splice(t,0,e),n==-1&&e.attach&&e.attach(this.$editor)},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return t==-1?!1:(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map(function(n){return n.getStatusText&&n.getStatusText(t,e)||\"\"}).filter(Boolean).join(\" \")},this.$callKeyboardHandlers=function(e,t,n,r){var s,o=!1,u=this.$editor.commands;for(var a=this.$handlers.length;a--;){s=this.$handlers[a].handleKeyboard(this.$data,e,t,n,r);if(!s||!s.command)continue;s.command==\"null\"?o=!0:o=u.exec(s.command,this.$editor,s.args,r),o&&r&&e!=-1&&s.passEvent!=1&&s.command.passEvent!=1&&i.stopEvent(r);if(o)break}return!o&&e==-1&&(s={command:\"insertstring\"},o=u.exec(\"insertstring\",this.$editor,t)),o&&this.$editor._signal&&this.$editor._signal(\"keyboardActivity\",s),o},this.onCommandKey=function(e,t,n){var i=r.keyCodeToString(n);return this.$callKeyboardHandlers(t,i,n,e)},this.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)}}).call(s.prototype),t.KeyBinding=s}),define(\"ace/lib/bidiutil\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";function F(e,t,n,r){var i=s?d:p,c=null,h=null,v=null,m=0,g=null,y=null,b=-1,w=null,E=null,T=[];if(!r)for(w=0,r=[];w<n;w++)r[w]=R(e[w]);o=s,u=!1,a=!1,f=!1,l=!1;for(E=0;E<n;E++){c=m,T[E]=h=q(e,r,T,E),m=i[c][h],g=m&240,m&=15,t[E]=v=i[m][5];if(g>0)if(g==16){for(w=b;w<E;w++)t[w]=1;b=-1}else b=-1;y=i[m][6];if(y)b==-1&&(b=E);else if(b>-1){for(w=b;w<E;w++)t[w]=v;b=-1}r[E]==S&&(t[E]=0),o|=v}if(l)for(w=0;w<n;w++)if(r[w]==x){t[w]=s;for(var C=w-1;C>=0;C--){if(r[C]!=N)break;t[C]=s}}}function I(e,t,n){if(o<e)return;if(e==1&&s==m&&!f){n.reverse();return}var r=n.length,i=0,u,a,l,c;while(i<r){if(t[i]>=e){u=i+1;while(u<r&&t[u]>=e)u++;for(a=i,l=u-1;a<l;a++,l--)c=n[a],n[a]=n[l],n[l]=c;i=u}i++}}function q(e,t,n,r){var i=t[r],o,c,h,p;switch(i){case g:case y:u=!1;case E:case w:return i;case b:return u?w:b;case T:return u=!0,a=!0,y;case N:return E;case C:if(r<1||r+1>=t.length||(o=n[r-1])!=b&&o!=w||(c=t[r+1])!=b&&c!=w)return E;return u&&(c=w),c==o?c:E;case k:o=r>0?n[r-1]:S;if(o==b&&r+1<t.length&&t[r+1]==b)return b;return E;case L:if(r>0&&n[r-1]==b)return b;if(u)return E;p=r+1,h=t.length;while(p<h&&t[p]==L)p++;if(p<h&&t[p]==b)return b;return E;case A:h=t.length,p=r+1;while(p<h&&t[p]==A)p++;if(p<h){var d=e[r],v=d>=1425&&d<=2303||d==64286;o=t[p];if(v&&(o==y||o==T))return y}if(r<1||(o=t[r-1])==S)return E;return n[r-1];case S:return u=!1,f=!0,s;case x:return l=!0,E;case O:case M:case D:case P:case _:u=!1;case H:return E}}function R(e){var t=e.charCodeAt(0),n=t>>8;return n==0?t>191?g:B[t]:n==5?/[\\u0591-\\u05f4]/.test(e)?y:g:n==6?/[\\u0610-\\u061a\\u064b-\\u065f\\u06d6-\\u06e4\\u06e7-\\u06ed]/.test(e)?A:/[\\u0660-\\u0669\\u066b-\\u066c]/.test(e)?w:t==1642?L:/[\\u06f0-\\u06f9]/.test(e)?b:T:n==32&&t<=8287?j[t&255]:n==254?t>=65136?T:E:E}function U(e){return e>=\"\\u064b\"&&e<=\"\\u0655\"}var r=[\"\\u0621\",\"\\u0641\"],i=[\"\\u063a\",\"\\u064a\"],s=0,o=0,u=!1,a=!1,f=!1,l=!1,c=!1,h=!1,p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],v=0,m=1,g=0,y=1,b=2,w=3,E=4,S=5,x=6,T=7,N=8,C=9,k=10,L=11,A=12,O=13,M=14,_=15,D=16,P=17,H=18,B=[H,H,H,H,H,H,H,H,H,x,S,x,N,S,H,H,H,H,H,H,H,H,H,H,H,H,H,H,S,S,S,x,N,E,E,L,L,L,E,E,E,E,E,k,C,k,C,C,b,b,b,b,b,b,b,b,b,b,C,E,E,E,E,E,E,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,E,E,E,E,E,E,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,E,E,E,E,H,H,H,H,H,H,S,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,C,E,L,L,L,L,E,E,E,E,g,E,E,H,E,E,L,L,b,b,E,g,E,E,E,b,g,E,E,E,E,E],j=[N,N,N,N,N,N,N,N,N,N,N,H,H,H,g,y,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,N,S,O,M,_,D,P,C,L,L,L,L,L,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,C,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,N];t.L=g,t.R=y,t.EN=b,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT=\"\\u00b7\",t.doBidiReorder=function(e,n,r){if(e.length<2)return{};var i=e.split(\"\"),o=new Array(i.length),u=new Array(i.length),a=[];s=r?m:v,F(i,a,i.length,n);for(var f=0;f<o.length;o[f]=f,f++);I(2,a,o),I(1,a,o);for(var f=0;f<o.length-1;f++)n[f]===w?a[f]=t.AN:a[f]===y&&(n[f]>T&&n[f]<O||n[f]===E||n[f]===H)?a[f]=t.ON_R:f>0&&i[f-1]===\"\\u0644\"&&/\\u0622|\\u0623|\\u0625|\\u0627/.test(i[f])&&(a[f-1]=a[f]=t.R_H,f++);i[i.length-1]===t.DOT&&(a[i.length-1]=t.B),i[0]===\"\\u202b\"&&(a[0]=t.RLE);for(var f=0;f<o.length;f++)u[f]=a[o[f]];return{logicalFromVisual:o,bidiLevels:u}},t.hasBidiCharacters=function(e,t){var n=!1;for(var r=0;r<e.length;r++)t[r]=R(e.charAt(r)),!n&&(t[r]==y||t[r]==T||t[r]==w)&&(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}}),define(\"ace/bidihandler\",[\"require\",\"exports\",\"module\",\"ace/lib/bidiutil\",\"ace/lib/lang\"],function(e,t,n){\"use strict\";var r=e(\"./lib/bidiutil\"),i=e(\"./lib/lang\"),s=/[\\u0590-\\u05f4\\u0600-\\u06ff\\u0700-\\u08ac\\u202B]/,o=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=r,this.charWidths=[],this.EOL=\"\\u00ac\",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line=\"\",this.wrapIndent=0,this.EOF=\"\\u00b6\",this.RLE=\"\\u202b\",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=s.test(e.getValue())};(function(){this.isBidiRow=function(e,t,n){return this.seenBidi?(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},this.onChange=function(e){this.seenBidi?this.currentRow=null:e.action==\"insert\"&&s.test(e.lines.join(\"\\n\"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n,r=this.session.$getRowCacheIndex(t,this.currentRow);while(this.currentRow-e>0){n=this.session.$getRowCacheIndex(t,this.currentRow-e-1);if(n!==r)break;r=n,e++}}else e=this.currentRow;return e},this.updateRowLine=function(e,t){e===undefined&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1,s=n?this.EOF:this.EOL;this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE;if(this.session.$useWrapMode){var o=this.session.$wrapData[e];o&&(t===undefined&&(t=this.getSplitIndex()),t>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=t<o.length?this.line.substring(o[t-1],o[t]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[t])),t==o.length&&(this.line+=this.showInvisibles?s:r.DOT)}else this.line+=this.showInvisibles?s:r.DOT;var u=this.session,a=0,f;this.line=this.line.replace(/\\t|[\\u1100-\\u2029, \\u202F-\\uFFE6]/g,function(e,t){return e===\"\t\"||u.isFullWidth(e.charCodeAt(0))?(f=e===\"\t\"?u.getScreenTabSize(t+a):2,a+=f-1,i.stringRepeat(r.DOT,f)):e}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==r.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var e=[];r.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=r.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.characterWidth===e.$characterSize.width)return;this.fontMetrics=e;var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth(\"\\u05d4\");this.charWidths[r.L]=this.charWidths[r.EN]=this.charWidths[r.ON_R]=t,this.charWidths[r.R]=this.charWidths[r.AN]=n,this.charWidths[r.R_H]=n*.45,this.charWidths[r.B]=this.charWidths[r.RLE]=0,this.currentRow=null},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setContentWidth=function(e){this.contentWidth=e},this.isRtlLine=function(e){return this.$isRtl?!0:e!=undefined?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir},this.setRtlDirection=function(e,t){var n=e.getCursorPosition();for(var r=e.selection.getSelectionAnchor().row;r<=n.row;r++)!t&&e.session.getLine(r).charAt(0)===e.session.$bidiHandler.RLE?e.session.doc.removeInLine(r,0,1):t&&e.session.getLine(r).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:r},e.session.$bidiHandler.RLE)},this.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=e>t?this.session.getOverwrite()?e:e-1:t,i=r.getVisualFromLogicalIdx(n,this.bidiMap),s=this.bidiMap.bidiLevels,o=0;!this.session.getOverwrite()&&e<=t&&s[i]%2!==0&&i++;for(var u=0;u<i;u++)o+=this.charWidths[s[u]];return!this.session.getOverwrite()&&e>t&&s[i]%2===0&&(o+=this.charWidths[s[i]]),this.wrapIndent&&(o+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(o+=this.rtlLineOffset),o},this.getSelections=function(e,t){var n=this.bidiMap,r=n.bidiLevels,i,s=[],o=0,u=Math.min(e,t)-this.wrapIndent,a=Math.max(e,t)-this.wrapIndent,f=!1,l=!1,c=0;this.wrapIndent&&(o+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var h,p=0;p<r.length;p++)h=n.logicalFromVisual[p],i=r[p],f=h>=u&&h<a,f&&!l?c=o:!f&&l&&s.push({left:c,width:o-c}),o+=this.charWidths[i],l=f;f&&p===r.length&&s.push({left:c,width:o-c});if(this.isRtlDir)for(var d=0;d<s.length;d++)s[d].left+=this.rtlLineOffset;return s},this.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,e=Math.max(e,0),n=0,r=0,i=this.bidiMap.bidiLevels,s=this.charWidths[i[r]];this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);while(e>n+s/2){n+=s;if(r===i.length-1){s=0;break}s=this.charWidths[i[++r]]}return r>0&&i[r-1]%2!==0&&i[r]%2===0?(e<n&&r--,t=this.bidiMap.logicalFromVisual[r]):r>0&&i[r-1]%2===0&&i[r]%2!==0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===i.length-1&&s===0&&i[r-1]%2===0||!this.isRtlDir&&r===0&&i[r]%2!==0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&i[r-1]%2!==0&&s!==0&&r--,t=this.bidiMap.logicalFromVisual[r]),t===0&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(o.prototype),t.BidiHandler=o}),define(\"ace/selection\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/lang\",\"ace/lib/event_emitter\",\"ace/range\"],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/lang\"),s=e(\"./lib/event_emitter\").EventEmitter,o=e(\"./range\").Range,u=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on(\"change\",function(e){t.$cursorChanged=!0,t.$silent||t._emit(\"changeCursor\"),!t.$isEmpty&&!t.$silent&&t._emit(\"changeSelection\"),!t.$keepDesiredColumnOnChange&&e.old.column!=e.value.column&&(t.$desiredColumn=null)}),this.anchor.on(\"change\",function(){t.$anchorChanged=!0,!t.$isEmpty&&!t.$silent&&t._emit(\"changeSelection\")})};(function(){r.implement(this,s),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?o.fromPoints(t,t):this.isBackwards()?o.fromPoints(t,e):o.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit(\"changeSelection\"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,r=t?e.start:e.end;this.$setSelection(n.row,n.column,r.row,r.column)},this.$setSelection=function(e,t,n,r){if(this.$silent)return;var i=this.$isEmpty,s=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,r),this.$isEmpty=!o.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit(\"changeCursor\"),(this.$cursorChanged||this.$anchorChanged||i!=this.$isEmpty||s)&&this._emit(\"changeSelection\")},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(typeof t==\"undefined\"){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n=typeof e==\"number\"?e:this.lead.row,r,i=this.session.getFoldLine(n);return i?(n=i.start.row,r=i.end.row):r=n,t===!0?new o(n,0,r,this.session.getLine(r).length):new o(n,0,r+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var r=e.column,i=e.column+t;return n<0&&(r=e.column-t,i=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,i).split(\" \").length-1==t},this.moveCursorLeft=function(){var e=this.lead.getPosition(),t;if(t=this.session.getFoldAt(e.row,e.column,-1))this.moveCursorTo(t.start.row,t.start.column);else if(e.column===0)e.row>0&&this.moveCursorTo(e.row-1,this.doc.getLine(e.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(e,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e=this.lead.getPosition(),t;if(t=this.session.getFoldAt(e.row,e.column,1))this.moveCursorTo(t.end.row,t.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize(),e=this.lead;this.wouldMoveIntoSoftTab(e,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),r=this.session.screenToDocumentPosition(n,0),i=this.session.getDisplayLine(e,null,r.row,r.column),s=i.match(/^\\s*/);s[0].length!=t&&!this.session.$useEmacsStyleLineStart&&(r.column+=s[0].length),this.moveCursorToPosition(r)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var r=n.search(/\\s+$/);r>0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(e,t,1);if(i){this.moveCursorTo(i.end.row,i.end.column);return}this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t));if(t>=n.length){this.moveCursorTo(e,n.length),this.moveCursorRight(),e<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(r)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)},this.moveCursorLongWordLeft=function(){var e=this.lead.row,t=this.lead.column,n;if(n=this.session.getFoldAt(e,t,-1)){this.moveCursorTo(n.start.row,n.start.column);return}var r=this.session.getFoldStringAt(e,t,-1);r==null&&(r=this.doc.getLine(e).substring(0,t));var s=i.stringReverse(r);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(s)&&(t-=this.session.nonTokenRe.lastIndex,s=s.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0);if(t<=0){this.moveCursorTo(e,0),this.moveCursorLeft(),e>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(s)&&(t-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)},this.$shortWordEndIndex=function(e){var t=0,n,r=/\\s/,i=this.session.tokenRe;i.lastIndex=0;if(this.session.tokenRe.exec(e))t=this.session.tokenRe.lastIndex;else{while((n=e[t])&&r.test(n))t++;if(t<1){i.lastIndex=0;while((n=e[t])&&!i.test(n)){i.lastIndex=0,t++;if(r.test(n)){if(t>2){t--;break}while((n=e[t])&&r.test(n))t++;if(t>2)break}}}}return i.lastIndex=0,t},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==n.length){var s=this.doc.getLength();do e++,r=this.doc.getLine(e);while(e<s&&/^\\s*$/.test(r));/^\\s+/.test(r)||(r=\"\"),t=0}var o=this.$shortWordEndIndex(r);this.moveCursorTo(e,t+o)},this.moveCursorShortWordLeft=function(){var e=this.lead.row,t=this.lead.column,n;if(n=this.session.getFoldAt(e,t,-1))return this.moveCursorTo(n.start.row,n.start.column);var r=this.session.getLine(e).substring(0,t);if(t===0){do e--,r=this.doc.getLine(e);while(e>0&&/^\\s*$/.test(r));t=r.length,/\\s+$/.test(r)||(r=\"\")}var s=i.stringReverse(r),o=this.$shortWordEndIndex(s);return this.moveCursorTo(e,t-o)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n=this.session.documentToScreenPosition(this.lead.row,this.lead.column),r;t===0&&(e!==0&&(this.session.$bidiHandler.isBidiRow(n.row,this.lead.row)?(r=this.session.$bidiHandler.getPosLeft(n.column),n.column=Math.round(r/this.session.$bidiHandler.charWidths[0])):r=n.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?n.column=this.$desiredColumn:this.$desiredColumn=n.column);if(e!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var i=this.session.lineWidgets[this.lead.row];e<0?e-=i.rowsAbove||0:e>0&&(e+=i.rowCount-(i.rowsAbove||0))}var s=this.session.screenToDocumentPosition(n.row+e,n.column,r);e!==0&&t===0&&s.row===this.lead.row&&s.column===this.lead.column,this.moveCursorTo(s.row,s.column+t,t===0)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0;var i=this.session.getLine(e);/[\\uDC00-\\uDFFF]/.test(i.charAt(t))&&i.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return o.fromPoints(t,n)}catch(r){return o.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t});else{var e=this.getRange();e.isBackwards=this.isBackwards()}return e},this.fromJSON=function(e){if(e.start==undefined){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=o.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(u.prototype),t.Selection=u}),define(\"ace/tokenizer\",[\"require\",\"exports\",\"module\",\"ace/config\"],function(e,t,n){\"use strict\";var r=e(\"./config\"),i=2e3,s=function(e){this.states=e,this.regExps={},this.matchMappings={};for(var t in this.states){var n=this.states[t],r=[],i=0,s=this.matchMappings[t]={defaultToken:\"text\"},o=\"g\",u=[];for(var a=0;a<n.length;a++){var f=n[a];f.defaultToken&&(s.defaultToken=f.defaultToken),f.caseInsensitive&&(o=\"gi\");if(f.regex==null)continue;f.regex instanceof RegExp&&(f.regex=f.regex.toString().slice(1,-1));var l=f.regex,c=(new RegExp(\"(?:(\"+l+\")|(.))\")).exec(\"a\").length-2;Array.isArray(f.token)?f.token.length==1||c==1?f.token=f.token[0]:c-1!=f.token.length?(this.reportError(\"number of classes and regexp groups doesn't match\",{rule:f,groupCount:c-1}),f.token=f.token[0]):(f.tokenArray=f.token,f.token=null,f.onMatch=this.$arrayTokens):typeof f.token==\"function\"&&!f.onMatch&&(c>1?f.onMatch=this.$applyToken:f.onMatch=f.token),c>1&&(/\\\\\\d/.test(f.regex)?l=f.regex.replace(/\\\\([0-9]+)/g,function(e,t){return\"\\\\\"+(parseInt(t,10)+i+1)}):(c=1,l=this.removeCapturingGroups(f.regex)),!f.splitRegex&&typeof f.token!=\"string\"&&u.push(f)),s[i]=a,i+=c,r.push(l),f.onMatch||(f.onMatch=null)}r.length||(s[0]=0,r.push(\"$\")),u.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,o)},this),this.regExps[t]=new RegExp(\"(\"+r.join(\")|(\")+\")|($)\",o)}};(function(){this.$setMaxTokenCount=function(e){i=e|0},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if(typeof n==\"string\")return[{type:n,value:e}];var r=[];for(var i=0,s=n.length;i<s;i++)t[i]&&(r[r.length]={type:n[i],value:t[i]});return r},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return\"text\";var n=[],r=this.tokenArray;for(var i=0,s=r.length;i<s;i++)t[i+1]&&(n[n.length]={type:r[i],value:t[i+1]});return n},this.removeCapturingGroups=function(e){var t=e.replace(/\\\\.|\\[(?:\\\\.|[^\\\\\\]])*|\\(\\?[:=!]|(\\()/g,function(e,t){return t?\"(?:\":e});return t},this.createSplitterRegexp=function(e,t){if(e.indexOf(\"(?=\")!=-1){var n=0,r=!1,i={};e.replace(/(\\\\.)|(\\((?:\\?[=!])?)|(\\))|([\\[\\]])/g,function(e,t,s,o,u,a){return r?r=u!=\"]\":u?r=!0:o?(n==i.stack&&(i.end=a+1,i.stack=-1),n--):s&&(n++,s.length!=1&&(i.stack=n,i.start=a)),e}),i.end!=null&&/^\\)*$/.test(e.substr(i.end))&&(e=e.substring(0,i.start)+e.substr(i.end))}return e.charAt(0)!=\"^\"&&(e=\"^\"+e),e.charAt(e.length-1)!=\"$\"&&(e+=\"$\"),new RegExp(e,(t||\"\").replace(\"g\",\"\"))},this.getLineTokens=function(e,t){if(t&&typeof t!=\"string\"){var n=t.slice(0);t=n[0],t===\"#tmp\"&&(n.shift(),t=n.shift())}else var n=[];var r=t||\"start\",s=this.states[r];s||(r=\"start\",s=this.states[r]);var o=this.matchMappings[r],u=this.regExps[r];u.lastIndex=0;var a,f=[],l=0,c=0,h={type:null,value:\"\"};while(a=u.exec(e)){var p=o.defaultToken,d=null,v=a[0],m=u.lastIndex;if(m-v.length>l){var g=e.substring(l,m-v.length);h.type==p?h.value+=g:(h.type&&f.push(h),h={type:p,value:g})}for(var y=0;y<a.length-2;y++){if(a[y+1]===undefined)continue;d=s[o[y]],d.onMatch?p=d.onMatch(v,r,n,e):p=d.token,d.next&&(typeof d.next==\"string\"?r=d.next:r=d.next(r,n),s=this.states[r],s||(this.reportError(\"state doesn't exist\",r),r=\"start\",s=this.states[r]),o=this.matchMappings[r],l=m,u=this.regExps[r],u.lastIndex=m),d.consumeLineEnd&&(l=m);break}if(v)if(typeof p==\"string\")!!d&&d.merge===!1||h.type!==p?(h.type&&f.push(h),h={type:p,value:v}):h.value+=v;else if(p){h.type&&f.push(h),h={type:null,value:\"\"};for(var y=0;y<p.length;y++)f.push(p[y])}if(l==e.length)break;l=m;if(c++>i){c>2*e.length&&this.reportError(\"infinite loop with in ace tokenizer\",{startState:t,line:e});while(l<e.length)h.type&&f.push(h),h={value:e.substring(l,l+=500),type:\"overflow\"};r=\"start\",n=[];break}}return h.type&&f.push(h),n.length>1&&n[0]!==r&&n.unshift(\"#tmp\",r),{tokens:f,state:n.length?n:r}},this.reportError=r.reportError}).call(s.prototype),t.Tokenizer=s}),define(\"ace/mode/text_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/lang\"],function(e,t,n){\"use strict\";var r=e(\"../lib/lang\"),i=function(){this.$rules={start:[{token:\"empty_line\",regex:\"^$\"},{defaultToken:\"text\"}]}};(function(){this.addRules=function(e,t){if(!t){for(var n in e)this.$rules[n]=e[n];return}for(var n in e){var r=e[n];for(var i=0;i<r.length;i++){var s=r[i];if(s.next||s.onMatch)typeof s.next==\"string\"&&s.next.indexOf(t)!==0&&(s.next=t+s.next),s.nextState&&s.nextState.indexOf(t)!==0&&(s.nextState=t+s.nextState)}this.$rules[t+n]=r}},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,i,s){var o=typeof e==\"function\"?(new e).getRules():e;if(i)for(var u=0;u<i.length;u++)i[u]=t+i[u];else{i=[];for(var a in o)i.push(t+a)}this.addRules(o,t);if(n){var f=Array.prototype[s?\"push\":\"unshift\"];for(var u=0;u<i.length;u++)f.apply(this.$rules[i[u]],r.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return(e!=\"start\"||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||\"start\"};this.normalizeRules=function(){function i(s){var o=r[s];o.processed=!0;for(var u=0;u<o.length;u++){var a=o[u],f=null;Array.isArray(a)&&(f=a,a={}),!a.regex&&a.start&&(a.regex=a.start,a.next||(a.next=[]),a.next.push({defaultToken:a.token},{token:a.token+\".end\",regex:a.end||a.start,next:\"pop\"}),a.token=a.token+\".start\",a.push=!0);var l=a.next||a.push;if(l&&Array.isArray(l)){var c=a.stateName;c||(c=a.token,typeof c!=\"string\"&&(c=c[0]||\"\"),r[c]&&(c+=n++)),r[c]=l,a.next=c,i(c)}else l==\"pop\"&&(a.next=t);a.push&&(a.nextState=a.next||a.push,a.next=e,delete a.push);if(a.rules)for(var h in a.rules)r[h]?r[h].push&&r[h].push.apply(r[h],a.rules[h]):r[h]=a.rules[h];var p=typeof a==\"string\"?a:a.include;p&&(Array.isArray(p)?f=p.map(function(e){return r[e]}):f=r[p]);if(f){var d=[u,1].concat(f);a.noEscape&&(d=d.filter(function(e){return!e.next})),o.splice.apply(o,d),u--}a.keywordMap&&(a.token=this.createKeywordMapper(a.keywordMap,a.defaultToken||\"text\",a.caseInsensitive),delete a.defaultToken)}}var n=0,r=this.$rules;Object.keys(r).forEach(i,this)},this.createKeywordMapper=function(e,t,n,r){var i=Object.create(null);return Object.keys(e).forEach(function(t){var s=e[t];n&&(s=s.toLowerCase());var o=s.split(r||\"|\");for(var u=o.length;u--;)i[o[u]]=t}),Object.getPrototypeOf(i)&&(i.__proto__=null),this.$keywordList=Object.keys(i),e=null,n?function(e){return i[e.toLowerCase()]||t}:function(e){return i[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(i.prototype),t.TextHighlightRules=i}),define(\"ace/mode/behaviour\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";var r=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(undefined){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if(typeof e==\"function\")var n=(new e).getBehaviours(t);else var n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(!e)return this.$behaviours;var t={};for(var n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}}).call(r.prototype),t.Behaviour=r}),define(\"ace/token_iterator\",[\"require\",\"exports\",\"module\",\"ace/range\"],function(e,t,n){\"use strict\";var r=e(\"./range\").Range,i=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var r=e.getTokenAt(t,n);this.$tokenIndex=r?r.index:-1};(function(){this.stepBackward=function(){this.$tokenIndex-=1;while(this.$tokenIndex<0){this.$row-=1;if(this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){this.$tokenIndex+=1;var e;while(this.$tokenIndex>=this.$rowTokens.length){this.$row+=1,e||(e=this.$session.getLength());if(this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(n!==undefined)return n;n=0;while(t>0)t-=1,n+=e[t].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new r(this.$row,t,this.$row,t+e.value.length)}}).call(i.prototype),t.TokenIterator=i}),define(\"ace/mode/behaviour/cstyle\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/behaviour\",\"ace/token_iterator\",\"ace/lib/lang\"],function(e,t,n){\"use strict\";var r=e(\"../../lib/oop\"),i=e(\"../behaviour\").Behaviour,s=e(\"../../token_iterator\").TokenIterator,o=e(\"../../lib/lang\"),u=[\"text\",\"paren.rparen\",\"rparen\",\"paren\",\"punctuation.operator\"],a=[\"text\",\"paren.rparen\",\"rparen\",\"paren\",\"punctuation.operator\",\"comment\"],f,l={},c={'\"':'\"',\"'\":\"'\"},h=function(e){var t=-1;e.multiSelect&&(t=e.selection.index,l.rangeCount!=e.multiSelect.rangeCount&&(l={rangeCount:e.multiSelect.rangeCount}));if(l[t])return f=l[t];f=l[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:\"\",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:\"\",maybeInsertedLineEnd:\"\"}},p=function(e,t,n,r){var i=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}},d=function(e){this.add(\"braces\",\"insertion\",function(t,n,r,i,s){var u=r.getCursorPosition(),a=i.doc.getLine(u.row);if(s==\"{\"){h(r);var l=r.getSelectionRange(),c=i.doc.getTextRange(l);if(c!==\"\"&&c!==\"{\"&&r.getWrapBehavioursEnabled())return p(l,c,\"{\",\"}\");if(d.isSaneInsertion(r,i))return/[\\]\\}\\)]/.test(a[u.column])||r.inMultiSelectMode||e&&e.braces?(d.recordAutoInsert(r,i,\"}\"),{text:\"{}\",selection:[1,1]}):(d.recordMaybeInsert(r,i,\"{\"),{text:\"{\",selection:[1,1]})}else if(s==\"}\"){h(r);var v=a.substring(u.column,u.column+1);if(v==\"}\"){var m=i.$findOpeningBracket(\"}\",{column:u.column+1,row:u.row});if(m!==null&&d.isAutoInsertedClosing(u,a,s))return d.popAutoInsertedClosing(),{text:\"\",selection:[1,1]}}}else{if(s==\"\\n\"||s==\"\\r\\n\"){h(r);var g=\"\";d.isMaybeInsertedClosing(u,a)&&(g=o.stringRepeat(\"}\",f.maybeInsertedBrackets),d.clearMaybeInsertedClosing());var v=a.substring(u.column,u.column+1);if(v===\"}\"){var y=i.findMatchingBracket({row:u.row,column:u.column+1},\"}\");if(!y)return null;var b=this.$getIndent(i.getLine(y.row))}else{if(!g){d.clearMaybeInsertedClosing();return}var b=this.$getIndent(a)}var w=b+i.getTabString();return{text:\"\\n\"+w+\"\\n\"+b+g,selection:[1,w.length,1,w.length]}}d.clearMaybeInsertedClosing()}}),this.add(\"braces\",\"deletion\",function(e,t,n,r,i){var s=r.doc.getTextRange(i);if(!i.isMultiLine()&&s==\"{\"){h(n);var o=r.doc.getLine(i.start.row),u=o.substring(i.end.column,i.end.column+1);if(u==\"}\")return i.end.column++,i;f.maybeInsertedBrackets--}}),this.add(\"parens\",\"insertion\",function(e,t,n,r,i){if(i==\"(\"){h(n);var s=n.getSelectionRange(),o=r.doc.getTextRange(s);if(o!==\"\"&&n.getWrapBehavioursEnabled())return p(s,o,\"(\",\")\");if(d.isSaneInsertion(n,r))return d.recordAutoInsert(n,r,\")\"),{text:\"()\",selection:[1,1]}}else if(i==\")\"){h(n);var u=n.getCursorPosition(),a=r.doc.getLine(u.row),f=a.substring(u.column,u.column+1);if(f==\")\"){var l=r.$findOpeningBracket(\")\",{column:u.column+1,row:u.row});if(l!==null&&d.isAutoInsertedClosing(u,a,i))return d.popAutoInsertedClosing(),{text:\"\",selection:[1,1]}}}}),this.add(\"parens\",\"deletion\",function(e,t,n,r,i){var s=r.doc.getTextRange(i);if(!i.isMultiLine()&&s==\"(\"){h(n);var o=r.doc.getLine(i.start.row),u=o.substring(i.start.column+1,i.start.column+2);if(u==\")\")return i.end.column++,i}}),this.add(\"brackets\",\"insertion\",function(e,t,n,r,i){if(i==\"[\"){h(n);var s=n.getSelectionRange(),o=r.doc.getTextRange(s);if(o!==\"\"&&n.getWrapBehavioursEnabled())return p(s,o,\"[\",\"]\");if(d.isSaneInsertion(n,r))return d.recordAutoInsert(n,r,\"]\"),{text:\"[]\",selection:[1,1]}}else if(i==\"]\"){h(n);var u=n.getCursorPosition(),a=r.doc.getLine(u.row),f=a.substring(u.column,u.column+1);if(f==\"]\"){var l=r.$findOpeningBracket(\"]\",{column:u.column+1,row:u.row});if(l!==null&&d.isAutoInsertedClosing(u,a,i))return d.popAutoInsertedClosing(),{text:\"\",selection:[1,1]}}}}),this.add(\"brackets\",\"deletion\",function(e,t,n,r,i){var s=r.doc.getTextRange(i);if(!i.isMultiLine()&&s==\"[\"){h(n);var o=r.doc.getLine(i.start.row),u=o.substring(i.start.column+1,i.start.column+2);if(u==\"]\")return i.end.column++,i}}),this.add(\"string_dquotes\",\"insertion\",function(e,t,n,r,i){var s=r.$mode.$quotes||c;if(i.length==1&&s[i]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(i)!=-1)return;h(n);var o=i,u=n.getSelectionRange(),a=r.doc.getTextRange(u);if(a!==\"\"&&(a.length!=1||!s[a])&&n.getWrapBehavioursEnabled())return p(u,a,o,o);if(!a){var f=n.getCursorPosition(),l=r.doc.getLine(f.row),d=l.substring(f.column-1,f.column),v=l.substring(f.column,f.column+1),m=r.getTokenAt(f.row,f.column),g=r.getTokenAt(f.row,f.column+1);if(d==\"\\\\\"&&m&&/escape/.test(m.type))return null;var y=m&&/string|escape/.test(m.type),b=!g||/string|escape/.test(g.type),w;if(v==o)w=y!==b,w&&/string\\.end/.test(g.type)&&(w=!1);else{if(y&&!b)return null;if(y&&b)return null;var E=r.$mode.tokenRe;E.lastIndex=0;var S=E.test(d);E.lastIndex=0;var x=E.test(d);if(S||x)return null;if(v&&!/[\\s;,.})\\]\\\\]/.test(v))return null;var T=l[f.column-2];if(!(d!=o||T!=o&&!E.test(T)))return null;w=!0}return{text:w?o+o:\"\",selection:[1,1]}}}}),this.add(\"string_dquotes\",\"deletion\",function(e,t,n,r,i){var s=r.$mode.$quotes||c,o=r.doc.getTextRange(i);if(!i.isMultiLine()&&s.hasOwnProperty(o)){h(n);var u=r.doc.getLine(i.start.row),a=u.substring(i.start.column+1,i.start.column+2);if(a==o)return i.end.column++,i}})};d.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new s(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||\"text\",u)){if(/[)}\\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var i=new s(t,n.row,n.column+1);if(!this.$matchTokenType(i.getCurrentToken()||\"text\",u))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||\"text\",a)},d.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},d.recordAutoInsert=function(e,t,n){var r=e.getCursorPosition(),i=t.doc.getLine(r.row);this.isAutoInsertedClosing(r,i,f.autoInsertedLineEnd[0])||(f.autoInsertedBrackets=0),f.autoInsertedRow=r.row,f.autoInsertedLineEnd=n+i.substr(r.column),f.autoInsertedBrackets++},d.recordMaybeInsert=function(e,t,n){var r=e.getCursorPosition(),i=t.doc.getLine(r.row);this.isMaybeInsertedClosing(r,i)||(f.maybeInsertedBrackets=0),f.maybeInsertedRow=r.row,f.maybeInsertedLineStart=i.substr(0,r.column)+n,f.maybeInsertedLineEnd=i.substr(r.column),f.maybeInsertedBrackets++},d.isAutoInsertedClosing=function(e,t,n){return f.autoInsertedBrackets>0&&e.row===f.autoInsertedRow&&n===f.autoInsertedLineEnd[0]&&t.substr(e.column)===f.autoInsertedLineEnd},d.isMaybeInsertedClosing=function(e,t){return f.maybeInsertedBrackets>0&&e.row===f.maybeInsertedRow&&t.substr(e.column)===f.maybeInsertedLineEnd&&t.substr(0,e.column)==f.maybeInsertedLineStart},d.popAutoInsertedClosing=function(){f.autoInsertedLineEnd=f.autoInsertedLineEnd.substr(1),f.autoInsertedBrackets--},d.clearMaybeInsertedClosing=function(){f&&(f.maybeInsertedBrackets=0,f.maybeInsertedRow=-1)},r.inherits(d,i),t.CstyleBehaviour=d}),define(\"ace/unicode\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";var r=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],i=0,s=[];for(var o=0;o<r.length;o+=2)s.push(i+=r[o]),r[o+1]&&s.push(45,i+=r[o+1]);t.wordChars=String.fromCharCode.apply(null,s)}),define(\"ace/mode/text\",[\"require\",\"exports\",\"module\",\"ace/config\",\"ace/tokenizer\",\"ace/mode/text_highlight_rules\",\"ace/mode/behaviour/cstyle\",\"ace/unicode\",\"ace/lib/lang\",\"ace/token_iterator\",\"ace/range\"],function(e,t,n){\"use strict\";var r=e(\"../config\"),i=e(\"../tokenizer\").Tokenizer,s=e(\"./text_highlight_rules\").TextHighlightRules,o=e(\"./behaviour/cstyle\").CstyleBehaviour,u=e(\"../unicode\"),a=e(\"../lib/lang\"),f=e(\"../token_iterator\").TokenIterator,l=e(\"../range\").Range,c=function(){this.HighlightRules=s};(function(){this.$defaultBehaviour=new o,this.tokenRe=new RegExp(\"^[\"+u.wordChars+\"\\\\$_]+\",\"g\"),this.nonTokenRe=new RegExp(\"^(?:[^\"+u.wordChars+\"\\\\$_]|\\\\s])+\",\"g\"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new i(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart=\"\",this.blockComment=\"\",this.toggleCommentLines=function(e,t,n,r){function w(e){for(var t=n;t<=r;t++)e(i.getLine(t),t)}var i=t.doc,s=!0,o=!0,u=Infinity,f=t.getTabSize(),l=!1;if(!this.lineCommentStart){if(!this.blockComment)return!1;var c=this.blockComment.start,h=this.blockComment.end,p=new RegExp(\"^(\\\\s*)(?:\"+a.escapeRegExp(c)+\")\"),d=new RegExp(\"(?:\"+a.escapeRegExp(h)+\")\\\\s*$\"),v=function(e,t){if(g(e,t))return;if(!s||/\\S/.test(e))i.insertInLine({row:t,column:e.length},h),i.insertInLine({row:t,column:u},c)},m=function(e,t){var n;(n=e.match(d))&&i.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(p))&&i.removeInLine(t,n[1].length,n[0].length)},g=function(e,n){if(p.test(e))return!0;var r=t.getTokens(n);for(var i=0;i<r.length;i++)if(r[i].type===\"comment\")return!0}}else{if(Array.isArray(this.lineCommentStart))var p=this.lineCommentStart.map(a.escapeRegExp).join(\"|\"),c=this.lineCommentStart[0];else var p=a.escapeRegExp(this.lineCommentStart),c=this.lineCommentStart;p=new RegExp(\"^(\\\\s*)(?:\"+p+\") ?\"),l=t.getUseSoftTabs();var m=function(e,t){var n=e.match(p);if(!n)return;var r=n[1].length,s=n[0].length;!b(e,r,s)&&n[0][s-1]==\" \"&&s--,i.removeInLine(t,r,s)},y=c+\" \",v=function(e,t){if(!s||/\\S/.test(e))b(e,u,u)?i.insertInLine({row:t,column:u},y):i.insertInLine({row:t,column:u},c)},g=function(e,t){return p.test(e)},b=function(e,t,n){var r=0;while(t--&&e.charAt(t)==\" \")r++;if(r%f!=0)return!1;var r=0;while(e.charAt(n++)==\" \")r++;return f>2?r%f!=f-1:r%f==0}}var E=Infinity;w(function(e,t){var n=e.search(/\\S/);n!==-1?(n<u&&(u=n),o&&!g(e,t)&&(o=!1)):E>e.length&&(E=e.length)}),u==Infinity&&(u=E,s=!1,o=!1),l&&u%f!=0&&(u=Math.floor(u/f)*f),w(o?m:v)},this.toggleBlockComment=function(e,t,n,r){var i=this.blockComment;if(!i)return;!i.start&&i[0]&&(i=i[0]);var s=new f(t,r.row,r.column),o=s.getCurrentToken(),u=t.selection,a=t.selection.toOrientedRange(),c,h;if(o&&/comment/.test(o.type)){var p,d;while(o&&/comment/.test(o.type)){var v=o.value.indexOf(i.start);if(v!=-1){var m=s.getCurrentTokenRow(),g=s.getCurrentTokenColumn()+v;p=new l(m,g,m,g+i.start.length);break}o=s.stepBackward()}var s=new f(t,r.row,r.column),o=s.getCurrentToken();while(o&&/comment/.test(o.type)){var v=o.value.indexOf(i.end);if(v!=-1){var m=s.getCurrentTokenRow(),g=s.getCurrentTokenColumn()+v;d=new l(m,g,m,g+i.end.length);break}o=s.stepForward()}d&&t.remove(d),p&&(t.remove(p),c=p.start.row,h=-i.start.length)}else h=i.start.length,c=n.start.row,t.insert(n.end,i.end),t.insert(n.start,i.start);a.start.row==c&&(a.start.column+=h),a.end.row==c&&(a.end.column+=h),t.selection.fromOrientedRange(a)},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){this.$embeds=[],this.$modes={};for(var t in e)if(e[t]){var n=e[t],i=n.prototype.$id,s=r.$modes[i];s||(r.$modes[i]=s=new n),r.$modes[t]||(r.$modes[t]=s),this.$embeds.push(t),this.$modes[t]=s}var o=[\"toggleBlockComment\",\"toggleCommentLines\",\"getNextLineIndent\",\"checkOutdent\",\"autoOutdent\",\"transformAction\",\"getCompletions\"];for(var t=0;t<o.length;t++)(function(e){var n=o[t],r=e[n];e[o[t]]=function(){return this.$delegator(n,arguments,r)}})(this)},this.$delegator=function(e,t,n){var r=t[0]||\"start\";if(typeof r!=\"string\"){if(Array.isArray(r[2])){var i=r[2][r[2].length-1],s=this.$modes[i];if(s)return s[e].apply(s,[r[1]].concat([].slice.call(t,1)))}r=r[0]||\"start\"}for(var o=0;o<this.$embeds.length;o++){if(!this.$modes[this.$embeds[o]])continue;var u=r.split(this.$embeds[o]);if(!u[0]&&u[1]){t[0]=u[1];var s=this.$modes[this.$embeds[o]];return s[e].apply(s,t)}}var a=n.apply(this,t);return n?a:undefined},this.transformAction=function(e,t,n,r,i){if(this.$behaviour){var s=this.$behaviour.getBehaviours();for(var o in s)if(s[o][t]){var u=s[o][t].apply(this,arguments);if(u)return u}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var r in t){var i=t[r];for(var s=0,o=i.length;s<o;s++)if(typeof i[s].token==\"string\")/keyword|support|storage/.test(i[s].token)&&n.push(i[s].regex);else if(typeof i[s].token==\"object\")for(var u=0,a=i[s].token.length;u<a;u++)if(/keyword|support|storage/.test(i[s].token[u])){var r=i[s].regex.match(/\\(.+?\\)/g)[u];n.push(r.substr(1,r.length-2))}}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,r){var i=this.$keywordList||this.$createKeywordList();return i.map(function(e){return{name:e,value:e,score:0,meta:\"keyword\"}})},this.$id=\"ace/mode/text\"}).call(c.prototype),t.Mode=c}),define(\"ace/apply_delta\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";function r(e,t){throw console.log(\"Invalid Delta:\",e),\"Invalid Delta: \"+t}function i(e,t){return t.row>=0&&t.row<e.length&&t.column>=0&&t.column<=e[t.row].length}function s(e,t){t.action!=\"insert\"&&t.action!=\"remove\"&&r(t,\"delta.action must be 'insert' or 'remove'\"),t.lines instanceof Array||r(t,\"delta.lines must be an Array\"),(!t.start||!t.end)&&r(t,\"delta.start/end must be an present\");var n=t.start;i(e,t.start)||r(t,\"delta.start must be contained in document\");var s=t.end;t.action==\"remove\"&&!i(e,s)&&r(t,\"delta.end must contained in document for 'remove' actions\");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,\"delta.range must match delta lines\")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||\"\";switch(t.action){case\"insert\":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case\"remove\":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),define(\"ace/anchor\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/event_emitter\"],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),typeof n==\"undefined\"?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i=t.action==\"insert\",s=(i?1:-1)*(t.end.row-t.start.row),o=(i?1:-1)*(t.end.column-t.start.column),u=t.start,a=i?u:t.end;return e(n,u,r)?{row:n.row,column:n.column}:e(a,n,!r)?{row:n.row+s,column:n.column+(n.row==a.row?o:0)}:{row:u.row,column:u.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(e.start.row==e.end.row&&e.start.row!=this.row)return;if(e.start.row>this.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal(\"change\",{old:i,value:r})},this.detach=function(){this.document.off(\"change\",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on(\"change\",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),define(\"ace/document\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/apply_delta\",\"ace/lib/event_emitter\",\"ace/range\",\"ace/anchor\"],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./apply_delta\").applyDelta,s=e(\"./lib/event_emitter\").EventEmitter,o=e(\"./range\").Range,u=e(\"./anchor\").Anchor,a=function(e){this.$lines=[\"\"],e.length===0?this.$lines=[\"\"]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},\"aaa\".split(/a/).length===0?this.$split=function(e){return e.replace(/\\r\\n|\\r/g,\"\\n\").split(\"\\n\")}:this.$split=function(e){return e.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=t?t[1]:\"\\n\",this._signal(\"changeNewLineMode\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\"windows\":return\"\\r\\n\";case\"unix\":return\"\\n\";default:return this.$autoNewLine||\"\\n\"}},this.$autoNewLine=\"\",this.$newLineMode=\"auto\",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal(\"changeNewLineMode\")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==\"\\r\\n\"||e==\"\\r\"||e==\"\\n\"},this.getLine=function(e){return this.$lines[e]||\"\"},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||\"\").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\"),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\"),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\"),this.insertMergedLines(e,[\"\",\"\"])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:\"insert\",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([\"\"]),n=0):(t=[\"\"].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(t.length==1?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:\"insert\",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:\"remove\",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:\"remove\",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=new o(i,s,u,a),l=this.$lines.slice(e,t+1);return this.applyDelta({start:f.start,end:f.end,action:\"remove\",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:\"remove\",lines:[\"\",\"\"]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action==\"insert\";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal(\"change\",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action==\"remove\"&&e.start.row<t&&e.end.row<t||e.action==\"insert\"&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length-t+1,i=e.start.row,s=e.start.column;for(var o=0,u=0;o<r;o=u){u+=t-1;var a=n.slice(o,u);a.push(\"\"),this.applyDelta({start:this.pos(i+o,s),end:this.pos(i+u,s=0),action:e.action,lines:a},!0)}e.lines=n.slice(o),e.start.row=i+o,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action==\"insert\"?\"remove\":\"insert\",lines:e.lines.slice()})},this.indexToPosition=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length;for(var i=t||0,s=n.length;i<s;i++){e-=n[i].length+r;if(e<0)return{row:i,column:e+n[i].length+r}}return{row:s-1,column:e+n[s-1].length+r}},this.positionToIndex=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length);for(var o=t||0;o<s;++o)i+=n[o].length+r;return i+e.column}}).call(a.prototype),t.Document=a}),define(\"ace/background_tokenizer\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/event_emitter\"],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(!n.running)return;var e=new Date,t=n.currentLine,r=-1,i=n.doc,s=t;while(n.lines[t])t++;var o=i.getLength(),u=0;n.running=!1;while(t<o){n.$tokenizeRow(t),r=t;do t++;while(n.lines[t]);u++;if(u%5===0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,r==-1&&(r=t),s<=r&&n.fireUpdateEvent(s,r)}};(function(){r.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal(\"update\",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(n===0)this.lines[t]=null;else if(e.action==\"remove\")this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||\"start\"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+\"\"!=r.state+\"\"?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(s.prototype),t.BackgroundTokenizer=s}),define(\"ace/search_highlight\",[\"require\",\"exports\",\"module\",\"ace/lib/lang\",\"ace/lib/oop\",\"ace/range\"],function(e,t,n){\"use strict\";var r=e(\"./lib/lang\"),i=e(\"./lib/oop\"),s=e(\"./range\").Range,o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||\"text\"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){if(this.regExp+\"\"==e+\"\")return;this.regExp=e,this.cache=[]},this.update=function(e,t,n,i){if(!this.regExp)return;var o=i.firstRow,u=i.lastRow;for(var a=o;a<=u;a++){var f=this.cache[a];f==null&&(f=r.getMatchOffsets(n.getLine(a),this.regExp),f.length>this.MAX_RANGES&&(f=f.slice(0,this.MAX_RANGES)),f=f.map(function(e){return new s(a,e.offset,a,e.offset+e.length)}),this.cache[a]=f.length?f:\"\");for(var l=f.length;l--;)t.drawSingleLineMarker(e,f[l].toScreenRange(n),this.clazz,i)}}}).call(o.prototype),t.SearchHighlight=o}),define(\"ace/edit_session/fold_line\",[\"require\",\"exports\",\"module\",\"ace/range\"],function(e,t,n){\"use strict\";function i(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new r(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}var r=e(\"../range\").Range;(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach(function(t){t.start.row+=e,t.end.row+=e})},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error(\"Can't add a fold to this FoldLine as it has no connection\");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error(\"Trying to add fold to FoldRow that doesn't have a matching row\");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var r=0,i=this.folds,s,o,u,a=!0;t==null&&(t=this.end.row,n=this.end.column);for(var f=0;f<i.length;f++){s=i[f],o=s.range.compareStart(t,n);if(o==-1){e(null,t,n,r,a);return}u=e(null,s.start.row,s.start.column,r,a),u=!u&&e(s.placeholder,s.start.row,s.start.column,r);if(u||o===0)return;a=!s.sameRow,r=s.end.column}e(null,t,n,r,a)},this.getNextFoldTo=function(e,t){var n,r;for(var i=0;i<this.folds.length;i++){n=this.folds[i],r=n.range.compareEnd(e,t);if(r==-1)return{fold:n,kind:\"after\"};if(r===0)return{fold:n,kind:\"inside\"}}return null},this.addRemoveChars=function(e,t,n){var r=this.getNextFoldTo(e,t),i,s;if(r){i=r.fold;if(r.kind==\"inside\"&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){s=this.folds;var o=s.indexOf(i);o===0&&(this.start.column+=n);for(o;o<s.length;o++){i=s[o],i.start.column+=n;if(!i.sameRow)return;i.end.column+=n}this.end.column+=n}}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||n.kind==\"inside\")return null;var r=n.fold,s=this.folds,o=this.foldData,u=s.indexOf(r),a=s[u-1];this.end.row=a.end.row,this.end.column=a.end.column,s=s.splice(u,s.length-u);var f=new i(o,s);return o.splice(o.indexOf(this)+1,0,f),f},this.merge=function(e){var t=e.folds;for(var n=0;n<t.length;n++)this.addFold(t[n]);var r=this.foldData;r.splice(r.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+\": [\"];return this.folds.forEach(function(t){e.push(\"  \"+t.toString())}),e.push(\"]\"),e.join(\"\\n\")},this.idxToPosition=function(e){var t=0;for(var n=0;n<this.folds.length;n++){var r=this.folds[n];e-=r.start.column-t;if(e<0)return{row:r.start.row,column:r.start.column+e};e-=r.placeholder.length;if(e<0)return r.start;t=r.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(i.prototype),t.FoldLine=i}),define(\"ace/range_list\",[\"require\",\"exports\",\"module\",\"ace/range\"],function(e,t,n){\"use strict\";var r=e(\"./range\").Range,i=r.comparePoints,s=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=i,this.pointIndex=function(e,t,n){var r=this.ranges;for(var s=n||0;s<r.length;s++){var o=r[s],u=i(e,o.end);if(u>0)continue;var a=i(e,o.start);return u===0?t&&a!==0?-s-2:s:a>0||a===0&&!t?s:-s-1}return-s-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},this.addList=function(e){var t=[];for(var n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){var e=[],t=this.ranges;t=t.sort(function(e,t){return i(e.start,t.start)});var n=t[0],r;for(var s=1;s<t.length;s++){r=n,n=t[s];var o=i(r.end,n.start);if(o<0)continue;if(o==0&&!r.isEmpty()&&!n.isEmpty())continue;i(r.end,n.end)<0&&(r.end.row=n.end.row,r.end.column=n.end.column),t.splice(s,1),e.push(n),n=r,s--}return this.ranges=t,e},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var r=this.pointIndex({row:e,column:0});r<0&&(r=-r-1);var i=this.pointIndex({row:t,column:0},r);i<0&&(i=-i-1);var s=[];for(var o=r;o<i;o++)s.push(n[o]);return s},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on(\"change\",this.onChange)},this.detach=function(){if(!this.session)return;this.session.removeListener(\"change\",this.onChange),this.session=null},this.$onChange=function(e){var t=e.start,n=e.end,r=t.row,i=n.row,s=this.ranges;for(var o=0,u=s.length;o<u;o++){var a=s[o];if(a.end.row>=r)break}if(e.action==\"insert\"){var f=i-r,l=-t.column+n.column;for(;o<u;o++){var a=s[o];if(a.start.row>r)break;a.start.row==r&&a.start.column>=t.column&&(a.start.column==t.column&&this.$bias<=0||(a.start.column+=l,a.start.row+=f));if(a.end.row==r&&a.end.column>=t.column){if(a.end.column==t.column&&this.$bias<0)continue;a.end.column==t.column&&l>0&&o<u-1&&a.end.column>a.start.column&&a.end.column==s[o+1].start.column&&(a.end.column-=l),a.end.column+=l,a.end.row+=f}}}else{var f=r-i,l=t.column-n.column;for(;o<u;o++){var a=s[o];if(a.start.row>i)break;if(a.end.row<i&&(r<a.end.row||r==a.end.row&&t.column<a.end.column))a.end.row=r,a.end.column=t.column;else if(a.end.row==i)if(a.end.column<=n.column){if(f||a.end.column>t.column)a.end.column=t.column,a.end.row=t.row}else a.end.column+=l,a.end.row+=f;else a.end.row>i&&(a.end.row+=f);if(a.start.row<i&&(r<a.start.row||r==a.start.row&&t.column<a.start.column))a.start.row=r,a.start.column=t.column;else if(a.start.row==i)if(a.start.column<=n.column){if(f||a.start.column>t.column)a.start.column=t.column,a.start.row=t.row}else a.start.column+=l,a.start.row+=f;else a.start.row>i&&(a.start.row+=f)}}if(f!=0&&o<u)for(;o<u;o++){var a=s[o];a.start.row+=f,a.end.row+=f}}}).call(s.prototype),t.RangeList=s}),define(\"ace/edit_session/fold\",[\"require\",\"exports\",\"module\",\"ace/range_list\",\"ace/lib/oop\"],function(e,t,n){\"use strict\";function o(e,t){e.row-=t.row,e.row==0&&(e.column-=t.column)}function u(e,t){o(e.start,t),o(e.end,t)}function a(e,t){e.row==0&&(e.column+=t.column),e.row+=t.row}function f(e,t){a(e.start,t),a(e.end,t)}var r=e(\"../range_list\").RangeList,i=e(\"../lib/oop\"),s=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};i.inherits(s,r),function(){this.toString=function(){return'\"'+this.placeholder+'\" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach(function(t){t.setFoldLine(e)})},this.clone=function(){var e=this.range.clone(),t=new s(e,this.placeholder);return this.subFolds.forEach(function(e){t.subFolds.push(e.clone())}),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(this.range.isEqual(e))return;u(e,this.start);var t=e.start.row,n=e.start.column;for(var r=0,i=-1;r<this.subFolds.length;r++){i=this.subFolds[r].range.compare(t,n);if(i!=1)break}var s=this.subFolds[r],o=0;if(i==0){if(s.range.containsRange(e))return s.addSubFold(e);o=1}var t=e.range.end.row,n=e.range.end.column;for(var a=r,i=-1;a<this.subFolds.length;a++){i=this.subFolds[a].range.compare(t,n);if(i!=1)break}i==0&&a++;var f=this.subFolds.splice(r,a-r,e),l=i==0?f.length-1:f.length;for(var c=o;c<l;c++)e.addSubFold(f[c]);return e.setFoldLine(this.foldLine),e},this.restoreRange=function(e){return f(e,this.start)}}.call(s.prototype)}),define(\"ace/edit_session/folding\",[\"require\",\"exports\",\"module\",\"ace/range\",\"ace/edit_session/fold_line\",\"ace/edit_session/fold\",\"ace/token_iterator\"],function(e,t,n){\"use strict\";function u(){this.getFoldAt=function(e,t,n){var r=this.getFoldLine(e);if(!r)return null;var i=r.folds;for(var s=0;s<i.length;s++){var o=i[s].range;if(o.contains(e,t)){if(n==1&&o.isEnd(e,t)&&!o.isEmpty())continue;if(n==-1&&o.isStart(e,t)&&!o.isEmpty())continue;return i[s]}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,r=this.$foldData,i=[];t.column+=1,n.column-=1;for(var s=0;s<r.length;s++){var o=r[s].range.compareRange(e);if(o==2)continue;if(o==-2)break;var u=r[s].folds;for(var a=0;a<u.length;a++){var f=u[a];o=f.range.compareRange(e);if(o==-2)break;if(o==2)continue;if(o==42)break;i.push(f)}}return t.column-=1,n.column+=1,i},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach(function(e){t=t.concat(this.getFoldsInRange(e))},this)}else var t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){var e=[],t=this.$foldData;for(var n=0;n<t.length;n++)for(var r=0;r<t[n].folds.length;r++)e.push(t[n].folds[r]);return e},this.getFoldStringAt=function(e,t,n,r){r=r||this.getFoldLine(e);if(!r)return null;var i={end:{column:0}},s,o;for(var u=0;u<r.folds.length;u++){o=r.folds[u];var a=o.range.compareEnd(e,t);if(a==-1){s=this.getLine(o.start.row).substring(i.end.column,o.start.column);break}if(a===0)return null;i=o}return s||(s=this.getLine(o.start.row).substring(i.end.column)),n==-1?s.substring(0,t-i.end.column):n==1?s.substring(t-i.end.column):s},this.getFoldLine=function(e,t){var n=this.$foldData,r=0;t&&(r=n.indexOf(t)),r==-1&&(r=0);for(r;r<n.length;r++){var i=n[r];if(i.start.row<=e&&i.end.row>=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;t&&(r=n.indexOf(t)),r==-1&&(r=0);for(r;r<n.length;r++){var i=n[r];if(i.end.row>=e)return i}return null},this.getFoldedRowCount=function(e,t){var n=this.$foldData,r=t-e+1;for(var i=0;i<n.length;i++){var s=n[i],o=s.end.row,u=s.start.row;if(o>=t){u<t&&(u>=e?r-=t-u:r=0);break}o>=e&&(u>=e?r-=o-u:r-=o-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var n=this.$foldData,r=!1,o;e instanceof s?o=e:(o=new s(t,e),o.collapseChildren=t.collapseChildren),this.$clipRangeToDocument(o.range);var u=o.start.row,a=o.start.column,f=o.end.row,l=o.end.column,c=this.getFoldAt(u,a,1),h=this.getFoldAt(f,l,-1);if(c&&h==c)return c.addSubFold(o);c&&!c.range.isStart(u,a)&&this.removeFold(c),h&&!h.range.isEnd(f,l)&&this.removeFold(h);var p=this.getFoldsInRange(o.range);p.length>0&&(this.removeFolds(p),p.forEach(function(e){o.addSubFold(e)}));for(var d=0;d<n.length;d++){var v=n[d];if(f==v.start.row){v.addFold(o),r=!0;break}if(u==v.end.row){v.addFold(o),r=!0;if(!o.sameRow){var m=n[d+1];if(m&&m.start.row==f){v.merge(m);break}}break}if(f<=v.start.row)break}return r||(v=this.$addFoldLine(new i(this.$foldData,o))),this.$useWrapMode?this.$updateWrapData(v.start.row,v.start.row):this.$updateRowLengthCache(v.start.row,v.start.row),this.$modified=!0,this._signal(\"changeFold\",{data:o,action:\"add\"}),o},this.addFolds=function(e){e.forEach(function(e){this.addFold(e)},this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,r=t.end.row,i=this.$foldData,s=t.folds;if(s.length==1)i.splice(i.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))s.pop(),t.end.row=s[s.length-1].end.row,t.end.column=s[s.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))s.shift(),t.start.row=s[0].start.row,t.start.column=s[0].start.column;else if(e.sameRow)s.splice(s.indexOf(e),1);else{var o=t.split(e.start.row,e.start.column);s=o.folds,s.shift(),o.start.row=s[0].start.row,o.start.column=s[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,r):this.$updateRowLengthCache(n,r)),this.$modified=!0,this._signal(\"changeFold\",{data:e,action:\"remove\"})},this.removeFolds=function(e){var t=[];for(var n=0;n<e.length;n++)t.push(e[n]);t.forEach(function(e){this.removeFold(e)},this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach(function(t){e.restoreRange(t),this.addFold(t)},this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){var n,i;e==null?(n=new r(0,0,this.getLength(),0),t=!0):typeof e==\"number\"?n=new r(e,0,e,this.getLine(e).length):\"row\"in e?n=r.fromPoints(e,e):n=e,i=this.getFoldsInRangeList(n);if(t)this.removeFolds(i);else{var s=i;while(s.length)this.expandFolds(s),s=this.getFoldsInRangeList(n)}if(i.length)return i},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,i){r==null&&(r=e.start.row),i==null&&(i=0),t==null&&(t=e.end.row),n==null&&(n=this.getLine(t).length);var s=this.doc,o=\"\";return e.walk(function(e,t,n,u){if(t<r)return;if(t==r){if(n<i)return;u=Math.max(i,u)}e!=null?o+=e:o+=s.getLine(t).substring(u,n)},t,n),o},this.getDisplayLine=function(e,t,n,r){var i=this.getFoldLine(e);if(!i){var s;return s=this.doc.getLine(e),s.substring(r||0,t||s.length)}return this.getFoldDisplayLine(i,e,t,n,r)},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map(function(t){var n=t.folds.map(function(e){return e.clone()});return new i(e,n)}),e},this.toggleFold=function(e){var t=this.selection,n=t.getRange(),r,i;if(n.isEmpty()){var s=n.start;r=this.getFoldAt(s.row,s.column);if(r){this.expandFold(r);return}(i=this.findMatchingBracket(s))?n.comparePoint(i)==1?n.end=i:(n.start=i,n.start.column++,n.end.column--):(i=this.findMatchingBracket({row:s.row,column:s.column+1}))?(n.comparePoint(i)==1?n.end=i:n.start=i,n.start.column++):n=this.getCommentFoldRange(s.row,s.column)||n}else{var o=this.getFoldsInRange(n);if(e&&o.length){this.expandFolds(o);return}o.length==1&&(r=o[0])}r||(r=this.getFoldAt(n.start.row,n.start.column));if(r&&r.range.toString()==n.toString()){this.expandFold(r);return}var u=\"...\";if(!n.isMultiLine()){u=this.getTextRange(n);if(u.length<4)return;u=u.trim().substring(0,2)+\"..\"}this.addFold(u,n)},this.getCommentFoldRange=function(e,t,n){var i=new o(this,e,t),s=i.getCurrentToken(),u=s.type;if(s&&/^comment|string/.test(u)){u=u.match(/comment|string/)[0],u==\"comment\"&&(u+=\"|doc-start\");var a=new RegExp(u),f=new r;if(n!=1){do s=i.stepBackward();while(s&&a.test(s.type));i.stepForward()}f.start.row=i.getCurrentTokenRow(),f.start.column=i.getCurrentTokenColumn()+2,i=new o(this,e,t);if(n!=-1){var l=-1;do{s=i.stepForward();if(l==-1){var c=this.getState(i.$row);a.test(c)||(l=i.$row)}else if(i.$row>l)break}while(s&&a.test(s.type));s=i.stepBackward()}else s=i.getCurrentToken();return f.end.row=i.getCurrentTokenRow(),f.end.column=i.getCurrentTokenColumn()+s.value.length-2,f}},this.foldAll=function(e,t,n){n==undefined&&(n=1e5);var r=this.foldWidgets;if(!r)return;t=t||this.getLength(),e=e||0;for(var i=e;i<t;i++){r[i]==null&&(r[i]=this.getFoldWidget(i));if(r[i]!=\"start\")continue;var s=this.getFoldWidgetRange(i);if(s&&s.isMultiLine()&&s.end.row<=t&&s.start.row>=e){i=s.end.row;try{var o=this.addFold(\"...\",s);o&&(o.collapseChildren=n)}catch(u){}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle=\"markbegin\",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error(\"invalid fold style: \"+e+\"[\"+Object.keys(this.$foldStyles).join(\", \")+\"]\");if(this.$foldStyle==e)return;this.$foldStyle=e,e==\"manual\"&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)},this.$setFolding=function(e){if(this.$foldMode==e)return;this.$foldMode=e,this.off(\"change\",this.$updateFoldWidgets),this.off(\"tokenizerUpdate\",this.$tokenizerUpdateFoldWidgets),this._signal(\"changeAnnotation\");if(!e||this.$foldStyle==\"manual\"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on(\"change\",this.$updateFoldWidgets),this.on(\"tokenizerUpdate\",this.$tokenizerUpdateFoldWidgets)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};var r=e-1,i;while(r>=0){var s=n[r];s==null&&(s=n[r]=this.getFoldWidget(r));if(s==\"start\"){var o=this.getFoldWidgetRange(r);i||(i=o);if(o&&o.end.row>=e)break}r--}return{range:r!==-1&&o,firstRange:i}},this.onFoldWidgetClick=function(e,t){t=t.domEvent;var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey},r=this.$toggleFoldWidget(e,n);if(!r){var i=t.target||t.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=\" ace_invalid\")}},this.$toggleFoldWidget=function(e,t){if(!this.getFoldWidget)return;var n=this.getFoldWidget(e),r=this.getLine(e),i=n===\"end\"?-1:1,s=this.getFoldAt(e,i===-1?0:r.length,i);if(s)return t.children||t.all?this.removeFold(s):this.expandFold(s),s;var o=this.getFoldWidgetRange(e,!0);if(o&&!o.isMultiLine()){s=this.getFoldAt(o.start.row,o.start.column,1);if(s&&o.isEqual(s.range))return this.removeFold(s),s}if(t.siblings){var u=this.getParentFoldRangeData(e);if(u.range)var a=u.range.start.row+1,f=u.range.end.row;this.foldAll(a,f,t.all?1e4:0)}else t.children?(f=o?o.end.row:this.getLength(),this.foldAll(e+1,f,t.all?1e4:0)):o&&(t.all&&(o.collapseChildren=1e4),this.addFold(\"...\",o));return o},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(n)return;var r=this.getParentFoldRangeData(t,!0);n=r.range||r.firstRange;if(n){t=n.start.row;var i=this.getFoldAt(t,this.getLine(t).length,1);i?this.removeFold(i):this.addFold(\"...\",n)}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(n===0)this.foldWidgets[t]=null;else if(e.action==\"remove\")this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}var r=e(\"../range\").Range,i=e(\"./fold_line\").FoldLine,s=e(\"./fold\").Fold,o=e(\"../token_iterator\").TokenIterator;t.Folding=u}),define(\"ace/edit_session/bracket_match\",[\"require\",\"exports\",\"module\",\"ace/token_iterator\",\"ace/range\"],function(e,t,n){\"use strict\";function s(){this.findMatchingBracket=function(e,t){if(e.column==0)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(n==\"\")return null;var r=n.match(/([\\(\\[\\{])|([\\)\\]\\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t=this.getLine(e.row),n=!0,r,s=t.charAt(e.column-1),o=s&&s.match(/([\\(\\[\\{])|([\\)\\]\\}])/);o||(s=t.charAt(e.column),e={row:e.row,column:e.column+1},o=s&&s.match(/([\\(\\[\\{])|([\\)\\]\\}])/),n=!1);if(!o)return null;if(o[1]){var u=this.$findClosingBracket(o[1],e);if(!u)return null;r=i.fromPoints(e,u),n||(r.end.column++,r.start.column--),r.cursor=r.end}else{var u=this.$findOpeningBracket(o[2],e);if(!u)return null;r=i.fromPoints(u,e),n||(r.start.column++,r.end.column--),r.cursor=r.start}return r},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),n=t.charAt(e.column-1),r=n&&n.match(/([\\(\\[\\{])|([\\)\\]\\}])/);r||(n=t.charAt(e.column),e={row:e.row,column:e.column+1},r=n&&n.match(/([\\(\\[\\{])|([\\)\\]\\}])/));if(!r)return null;var s=new i(e.row,e.column-1,e.row,e.column),o=r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e);if(!o)return[s];var u=new i(o.row,o.column,o.row,o.column+1);return[s,u]},this.$brackets={\")\":\"(\",\"(\":\")\",\"]\":\"[\",\"[\":\"]\",\"{\":\"}\",\"}\":\"{\",\"<\":\">\",\">\":\"<\"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],s=1,o=new r(this,t.row,t.column),u=o.getCurrentToken();u||(u=o.stepForward());if(!u)return;n||(n=new RegExp(\"(\\\\.?\"+u.type.replace(\".\",\"\\\\.\").replace(\"rparen\",\".paren\").replace(/\\b(?:end)\\b/,\"(?:start|begin|end)\")+\")+\"));var a=t.column-o.getCurrentTokenColumn()-2,f=u.value;for(;;){while(a>=0){var l=f.charAt(a);if(l==i){s-=1;if(s==0)return{row:o.getCurrentTokenRow(),column:a+o.getCurrentTokenColumn()}}else l==e&&(s+=1);a-=1}do u=o.stepBackward();while(u&&!n.test(u.type));if(u==null)break;f=u.value,a=f.length-1}return null},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],s=1,o=new r(this,t.row,t.column),u=o.getCurrentToken();u||(u=o.stepForward());if(!u)return;n||(n=new RegExp(\"(\\\\.?\"+u.type.replace(\".\",\"\\\\.\").replace(\"lparen\",\".paren\").replace(/\\b(?:start|begin)\\b/,\"(?:start|begin|end)\")+\")+\"));var a=t.column-o.getCurrentTokenColumn();for(;;){var f=u.value,l=f.length;while(a<l){var c=f.charAt(a);if(c==i){s-=1;if(s==0)return{row:o.getCurrentTokenRow(),column:a+o.getCurrentTokenColumn()}}else c==e&&(s+=1);a+=1}do u=o.stepForward();while(u&&!n.test(u.type));if(u==null)break;a=0}return null}}var r=e(\"../token_iterator\").TokenIterator,i=e(\"../range\").Range;t.BracketMatch=s}),define(\"ace/edit_session\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/lang\",\"ace/bidihandler\",\"ace/config\",\"ace/lib/event_emitter\",\"ace/selection\",\"ace/mode/text\",\"ace/range\",\"ace/document\",\"ace/background_tokenizer\",\"ace/search_highlight\",\"ace/edit_session/folding\",\"ace/edit_session/bracket_match\"],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/lang\"),s=e(\"./bidihandler\").BidiHandler,o=e(\"./config\"),u=e(\"./lib/event_emitter\").EventEmitter,a=e(\"./selection\").Selection,f=e(\"./mode/text\").Mode,l=e(\"./range\").Range,c=e(\"./document\").Document,h=e(\"./background_tokenizer\").BackgroundTokenizer,p=e(\"./search_highlight\").SearchHighlight,d=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id=\"session\"+ ++d.$uid,this.$foldData.toString=function(){return this.join(\"\\n\")},this.on(\"changeFold\",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this);if(typeof e!=\"object\"||!e.getLine)e=new c(e);this.setDocument(e),this.selection=new a(this),this.$bidiHandler=new s(this),o.resetOptions(this),this.setMode(t),o._signal(\"session\",this)};d.$uid=0,function(){function m(e){return e<4352?!1:e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510}r.implement(this,u),this.setDocument=function(e){this.doc&&this.doc.removeListener(\"change\",this.$onChange),this.doc=e,e.on(\"change\",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e){this.$docRowCache=[],this.$screenRowCache=[];return}var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){var n=0,r=e.length-1;while(n<=r){var i=n+r>>1,s=e[i];if(t>s)n=i+1;else{if(!(t<s))return i;r=i-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:\"removeFolds\",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal(\"change\",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n=this.bgTokenizer.getTokens(e),r,i=0;if(t==null){var s=n.length-1;i=this.getLine(e).length}else for(var s=0;s<n.length;s++){i+=n[s].value.length;if(i>=t)break}return r=n[s],r?(r.index=s,r.start=i-r.value.length,r):null},this.setUndoManager=function(e){this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel();if(e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(\" \",this.getTabSize()):\"\t\"},this.setUseSoftTabs=function(e){this.setOption(\"useSoftTabs\",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption(\"tabSize\",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(e){this.setOption(\"navigateWithinSoftTabs\",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption(\"overwrite\",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=\"\"),this.$decorations[e]+=\" \"+t,this._signal(\"changeBreakpoint\",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||\"\").replace(\" \"+t,\"\"),this._signal(\"changeBreakpoint\",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]=\"ace_breakpoint\";this._signal(\"changeBreakpoint\",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal(\"changeBreakpoint\",{})},this.setBreakpoint=function(e,t){t===undefined&&(t=\"ace_breakpoint\"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal(\"changeBreakpoint\",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal(\"changeBreakpoint\",{})},this.addMarker=function(e,t,n,r){var i=this.$markerId++,s={range:e,type:n||\"line\",renderer:typeof n==\"function\"?n:null,clazz:t,inFront:!!r,id:i};return r?(this.$frontMarkers[i]=s,this._signal(\"changeFrontMarker\")):(this.$backMarkers[i]=s,this._signal(\"changeBackMarker\")),i},this.addDynamicMarker=function(e,t){if(!e.update)return;var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal(\"changeFrontMarker\")):(this.$backMarkers[n]=e,this._signal(\"changeBackMarker\")),e},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(!t)return;var n=t.inFront?this.$frontMarkers:this.$backMarkers;delete n[e],this._signal(t.inFront?\"changeFrontMarker\":\"changeBackMarker\")},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new p(null,\"ace_selected-word\",\"text\");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,r){typeof t!=\"number\"&&(n=t,t=e),n||(n=\"ace_step\");var i=new l(e,0,t,Infinity);return i.id=this.addMarker(i,n,\"fullLine\",r),i},this.setAnnotations=function(e){this.$annotations=e,this._signal(\"changeAnnotation\",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\\r?\\n)/m);t?this.$autoNewLine=t[1]:this.$autoNewLine=\"\\n\"},this.getWordRange=function(e,t){var n=this.getLine(e),r=!1;t>0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe));if(r)var i=this.tokenRe;else if(/^\\s+$/.test(n.slice(t-1,t+1)))var i=/\\s/;else var i=this.nonTokenRe;var s=t;if(s>0){do s--;while(s>=0&&n.charAt(s).match(i));s++}var o=t;while(o<n.length&&n.charAt(o).match(i))o++;return new l(e,s,e,o)},this.getAWordRange=function(e,t){var n=this.getWordRange(e,t),r=this.getLine(n.end.row);while(r.charAt(n.end.column).match(/[ \\t]/))n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption(\"useWorker\",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal(\"tokenizerUpdate\",e)},this.$modes=o.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&typeof e==\"object\"){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,r=n.path}else r=e||\"ace/mode/text\";this.$modes[\"ace/mode/text\"]||(this.$modes[\"ace/mode/text\"]=new f);if(this.$modes[r]&&!n){this.$onChangeMode(this.$modes[r]),t&&t();return}this.$modeId=r,o.loadModule([\"mode\",r],function(e){if(this.$modeId!==r)return t&&t();this.$modes[r]&&!n?this.$onChangeMode(this.$modes[r]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[r]=e,e.$id=r),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes[\"ace/mode/text\"],!0)},this.$onChangeMode=function(e,t){t||(this.$modeId=e.$id);if(this.$mode===e)return;var n=this.$mode;this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var r=e.getTokenizer();if(r.on!==undefined){var i=this.onReloadTokenizer.bind(this);r.on(\"update\",i)}if(!this.bgTokenizer){this.bgTokenizer=new h(r);var s=this;this.bgTokenizer.on(\"update\",function(e){s._signal(\"tokenizerUpdate\",e)})}else this.bgTokenizer.setTokenizer(r);this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit(\"changeMode\",{oldMode:n,mode:e}))},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){o.warn(\"Could not load worker\",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){if(this.$scrollTop===e||isNaN(e))return;this.$scrollTop=e,this._signal(\"changeScrollTop\",e)},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){if(this.$scrollLeft===e||isNaN(e))return;this.$scrollLeft=e,this._signal(\"changeScrollLeft\",e)},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach(function(t){t&&t.screenWidth>e&&(e=t.screenWidth)}),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){this.$modified=!1;if(this.$useWrapMode)return this.screenWidth=this.$wrapLimit;var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,i=0,s=this.$foldData[i],o=s?s.start.row:Infinity,u=t.length;for(var a=0;a<u;a++){if(a>o){a=s.end.row+1;if(a>=u)break;s=this.$foldData[i++],o=s?s.start.row:Infinity}n[a]==null&&(n[a]=this.$getStringScreenWidth(t[a])[0]),n[a]>r&&(r=n[a])}this.screenWidth=r}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(!e.length)return;this.$fromUndo=!0;for(var n=e.length-1;n!=-1;n--){var r=e[n];r.action==\"insert\"||r.action==\"remove\"?this.doc.revertDelta(r):r.folds&&this.addFolds(r.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1},this.redoChanges=function(e,t){if(!e.length)return;this.$fromUndo=!0;for(var n=0;n<e.length;n++){var r=e[n];(r.action==\"insert\"||r.action==\"remove\")&&this.doc.$safeApplyDelta(r)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t){function n(e){return t?e.action!==\"insert\":e.action===\"insert\"}var r,i;for(var s=0;s<e.length;s++){var o=e[s];if(!o.start)continue;if(!r){n(o)?r=l.fromPoints(o.start,o.end):r=l.fromPoints(o.start,o.start);continue}n(o)?(i=o.start,r.compare(i.row,i.column)==-1&&r.setStart(i),i=o.end,r.compare(i.row,i.column)==1&&r.setEnd(i)):(i=o.start,r.compare(i.row,i.column)==-1&&(r=l.fromPoints(o.start,o.start)))}return r},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var r=this.getTextRange(e),i=this.getFoldsInRange(e),s=l.fromPoints(t,t);if(!n){this.remove(e);var o=e.start.row-e.end.row,u=o?-e.end.column:e.start.column-e.end.column;u&&(s.start.row==e.end.row&&s.start.column>e.end.column&&(s.start.column+=u),s.end.row==e.end.row&&s.end.column>e.end.column&&(s.end.column+=u)),o&&s.start.row>=e.end.row&&(s.start.row+=o,s.end.row+=o)}s.end=this.insert(s.start,r);if(i.length){var a=e.start,f=s.start,o=f.row-a.row,u=f.column-a.column;this.addFolds(i.map(function(e){return e=e.clone(),e.start.row==a.row&&(e.start.column+=u),e.end.row==a.row&&(e.end.column+=u),e.start.row+=o,e.end.row+=o,e}))}return s},this.indentRows=function(e,t,n){n=n.replace(/\\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},this.outdentRows=function(e){var t=e.collapseRows(),n=new l(0,0,0,0),r=this.getTabSize();for(var i=t.start.row;i<=t.end.row;++i){var s=this.getLine(i);n.start.row=i,n.end.row=i;for(var o=0;o<r;++o)if(s.charAt(o)!=\" \")break;o<r&&s.charAt(o)==\"\t\"?(n.start.column=o,n.end.column=o+1):(n.start.column=0,n.end.column=o),this.remove(n)}},this.$moveLines=function(e,t,n){e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t);if(n<0){var r=this.getRowFoldStart(e+n);if(r<0)return 0;var i=r-e}else if(n>0){var r=this.getRowFoldEnd(t+n);if(r>this.doc.getLength()-1)return 0;var i=r-t}else{e=this.$clipRowToDocument(e),t=this.$clipRowToDocument(t);var i=t-e+1}var s=new l(e,0,t,Number.MAX_VALUE),o=this.getFoldsInRange(s).map(function(e){return e=e.clone(),e.start.row+=i,e.end.row+=i,e}),u=n==0?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,u),o.length&&this.addFolds(o),i},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){t=Math.max(0,t);if(e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0);if(e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal(\"changeWrapMode\")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){if(this.$wrapLimitRange.min!==e||this.$wrapLimitRange.max!==t)this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal(\"changeWrapMode\")},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1?(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal(\"changeWrapLimit\")),!0):!1},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,i=e.end,s=r.row,o=i.row,u=o-s,a=null;this.$updating=!0;if(u!=0)if(n===\"remove\"){this[t?\"$wrapData\":\"$rowLengthCache\"].splice(s,u);var f=this.$foldData;a=this.getFoldsInRange(e),this.removeFolds(a);var l=this.getFoldLine(i.row),c=0;if(l){l.addRemoveChars(i.row,i.column,r.column-i.column),l.shiftRow(-u);var h=this.getFoldLine(s);h&&h!==l&&(h.merge(l),l=h),c=f.indexOf(l)+1}for(c;c<f.length;c++){var l=f[c];l.start.row>=i.row&&l.shiftRow(-u)}o=s}else{var p=Array(u);p.unshift(s,0);var d=t?this.$wrapData:this.$rowLengthCache;d.splice.apply(d,p);var f=this.$foldData,l=this.getFoldLine(s),c=0;if(l){var v=l.range.compareInside(r.row,r.column);v==0?(l=l.split(r.row,r.column),l&&(l.shiftRow(u),l.addRemoveChars(o,0,i.column-r.column))):v==-1&&(l.addRemoveChars(s,0,i.column-r.column),l.shiftRow(u)),c=f.indexOf(l)+1}for(c;c<f.length;c++){var l=f[c];l.start.row>=s&&l.shiftRow(u)}}else{u=Math.abs(e.start.column-e.end.column),n===\"remove\"&&(a=this.getFoldsInRange(e),this.removeFolds(a),u=-u);var l=this.getFoldLine(s);l&&l.addRemoveChars(s,r.column,u)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error(\"doc.getLength() and $wrapData.length have to be the same!\"),this.$updating=!1,t?this.$updateWrapData(s,o):this.$updateRowLengthCache(s,o),a},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var r=this.doc.getAllLines(),i=this.getTabSize(),o=this.$wrapData,u=this.$wrapLimit,a,f,l=e;t=Math.min(t,r.length-1);while(l<=t)f=this.getFoldLine(l,f),f?(a=[],f.walk(function(e,t,i,o){var u;if(e!=null){u=this.$getDisplayTokens(e,a.length),u[0]=n;for(var f=1;f<u.length;f++)u[f]=s}else u=this.$getDisplayTokens(r[t].substring(o,i),a.length);a=a.concat(u)}.bind(this),f.end.row,r[f.end.row].length+1),o[f.start.row]=this.$computeWrapSplits(a,u,i),l=f.end.row+1):(a=this.$getDisplayTokens(r[l]),o[l]=this.$computeWrapSplits(a,u,i),l++)};var e=1,t=2,n=3,s=4,a=9,c=10,d=11,v=12;this.$computeWrapSplits=function(e,r,i){function g(){var t=0;if(m===0)return t;if(p)for(var n=0;n<e.length;n++){var r=e[n];if(r==c)t+=1;else{if(r!=d){if(r==v)continue;break}t+=i}}return h&&p!==!1&&(t+=i),Math.min(t,m)}function y(t){var n=t-f;for(var r=f;r<t;r++){var i=e[r];if(i===12||i===2)n-=1}o.length||(b=g(),o.indent=b),l+=n,o.push(l),f=t}if(e.length==0)return[];var o=[],u=e.length,f=0,l=0,h=this.$wrapAsCode,p=this.$indentedSoftWrap,m=r<=Math.max(2*i,8)||p===!1?0:Math.floor(r/2),b=0;while(u-f>r-b){var w=f+r-b;if(e[w-1]>=c&&e[w]>=c){y(w);continue}if(e[w]==n||e[w]==s){for(w;w!=f-1;w--)if(e[w]==n)break;if(w>f){y(w);continue}w=f+r;for(w;w<e.length;w++)if(e[w]!=s)break;if(w==e.length)break;y(w);continue}var E=Math.max(w-(r-(r>>2)),f-1);while(w>E&&e[w]<n)w--;if(h){while(w>E&&e[w]<n)w--;while(w>E&&e[w]==a)w--}else while(w>E&&e[w]<c)w--;if(w>E){y(++w);continue}w=f+r,e[w]==t&&w--,y(w-b)}return o},this.$getDisplayTokens=function(n,r){var i=[],s;r=r||0;for(var o=0;o<n.length;o++){var u=n.charCodeAt(o);if(u==9){s=this.getScreenTabSize(i.length+r),i.push(d);for(var f=1;f<s;f++)i.push(v)}else u==32?i.push(c):u>39&&u<48||u>57&&u<64?i.push(a):u>=4352&&m(u)?i.push(e,t):i.push(e)}return i},this.$getStringScreenWidth=function(e,t,n){if(t==0)return[0,0];t==null&&(t=Infinity),n=n||0;var r,i;for(i=0;i<e.length;i++){r=e.charCodeAt(i),r==9?n+=this.getScreenTabSize(n):r>=4352&&m(r)?n+=2:n+=1;if(n>t)break}return[n,i]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),!this.$useWrapMode||!this.$wrapData[e]?t:this.$wrapData[e].length+t},this.getRowLineCount=function(e){return!this.$useWrapMode||!this.$wrapData[e]?1:this.$wrapData[e].length+1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:undefined},this.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var r,i=0,s=0,o,u=0,a=0,f=this.$screenRowCache,l=this.$getRowCacheIndex(f,e),c=f.length;if(c&&l>=0)var u=f[l],i=this.$docRowCache[l],h=e>f[c-1];else var h=!c;var p=this.getLength()-1,d=this.getNextFoldLine(i),v=d?d.start.row:Infinity;while(u<=e){a=this.getRowLength(i);if(u+a>e||i>=p)break;u+=a,i++,i>v&&(i=d.end.row+1,d=this.getNextFoldLine(i,d),v=d?d.start.row:Infinity),h&&(this.$docRowCache.push(i),this.$screenRowCache.push(u))}if(d&&d.start.row<=i)r=this.getFoldDisplayLine(d),i=d.start.row;else{if(u+a<=e||i>p)return{row:p,column:this.getLine(p).length};r=this.getLine(i),d=null}var m=0,g=Math.floor(e-u);if(this.$useWrapMode){var y=this.$wrapData[i];y&&(o=y[g],g>0&&y.length&&(m=y.indent,s=y[g-1]||y[y.length-1],r=r.substring(s)))}return n!==undefined&&this.$bidiHandler.isBidiRow(u+g,i,g)&&(t=this.$bidiHandler.offsetToCol(n)),s+=this.$getStringScreenWidth(r,t-m)[1],this.$useWrapMode&&s>=o&&(s=o-1),d?d.idxToPosition(s):{row:i,column:s}},this.documentToScreenPosition=function(e,t){if(typeof t==\"undefined\")var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r=0,i=null,s=null;s=this.getFoldAt(e,t,1),s&&(e=s.start.row,t=s.start.column);var o,u=0,a=this.$docRowCache,f=this.$getRowCacheIndex(a,e),l=a.length;if(l&&f>=0)var u=a[f],r=this.$screenRowCache[f],c=e>a[l-1];else var c=!l;var h=this.getNextFoldLine(u),p=h?h.start.row:Infinity;while(u<e){if(u>=p){o=h.end.row+1;if(o>e)break;h=this.getNextFoldLine(o,h),p=h?h.start.row:Infinity}else o=u+1;r+=this.getRowLength(u),u=o,c&&(this.$docRowCache.push(u),this.$screenRowCache.push(r))}var d=\"\";h&&u>=p?(d=this.getFoldDisplayLine(h,e,t),i=h.start.row):(d=this.getLine(e).substring(0,t),i=e);var v=0;if(this.$useWrapMode){var m=this.$wrapData[i];if(m){var g=0;while(d.length>=m[g])r++,g++;d=d.substring(m[g-1]||0,d.length),v=g>0?m.indent:0}}return this.lineWidgets&&this.lineWidgets[u]&&this.lineWidgets[u].rowsAbove&&(r+=this.lineWidgets[u].rowsAbove),{row:r,column:v+this.$getStringScreenWidth(d)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(!this.$useWrapMode){e=this.getLength();var n=this.$foldData;for(var r=0;r<n.length;r++)t=n[r],e-=t.end.row-t.start.row}else{var i=this.$wrapData.length,s=0,r=0,t=this.$foldData[r++],o=t?t.start.row:Infinity;while(s<i){var u=this.$wrapData[s];e+=u?u.length+1:1,s++,s>o&&(s=t.end.row+1,t=this.$foldData[r++],o=t?t.start.row:Infinity)}}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){if(!this.$enableVarChar)return;this.$getStringScreenWidth=function(t,n,r){if(n===0)return[0,0];n||(n=Infinity),r=r||0;var i,s;for(s=0;s<t.length;s++){i=t.charAt(s),i===\"\t\"?r+=this.getScreenTabSize(r):r+=e.getCharacterWidth(i);if(r>n)break}return[r,s]}},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.selection.detach()},this.isFullWidth=m}.call(d.prototype),e(\"./edit_session/folding\").Folding.call(d.prototype),e(\"./edit_session/bracket_match\").BracketMatch.call(d.prototype),o.defineOptions(d.prototype,\"session\",{wrap:{set:function(e){!e||e==\"off\"?e=!1:e==\"free\"?e=!0:e==\"printMargin\"?e=-1:typeof e==\"string\"&&(e=parseInt(e,10)||!1);if(this.$wrap==e)return;this.$wrap=e;if(!e)this.setUseWrapMode(!1);else{var t=typeof e==\"number\"?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?\"printMargin\":this.getWrapLimitRange().min?this.$wrap:\"free\":\"off\"},handlesSet:!0},wrapMethod:{set:function(e){e=e==\"auto\"?this.$mode.type!=\"text\":e!=\"text\",e!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:\"auto\"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal(\"changeBreakpoint\")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){e=parseInt(e),e>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal(\"changeTabSize\"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal(\"changeOverwrite\")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=d}),define(\"ace/search\",[\"require\",\"exports\",\"module\",\"ace/lib/lang\",\"ace/lib/oop\",\"ace/range\"],function(e,t,n){\"use strict\";function u(e,t){function n(e){return/\\w/.test(e)||t.regExp?\"\\\\b\":\"\"}return n(e[0])+e+n(e[e.length-1])}var r=e(\"./lib/lang\"),i=e(\"./lib/oop\"),s=e(\"./range\").Range,o=function(){this.$options={}};(function(){this.set=function(e){return i.mixin(this.$options,e),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach(function(e,n,i,o){return r=new s(e,n,i,o),n==o&&t.start&&t.start.start&&t.skipCurrent!=0&&r.isEqual(t.start)?(r=null,!1):!0}),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),o=[],u=t.re;if(t.$isMultiLine){var a=u.length,f=i.length-a,l;e:for(var c=u.offset||0;c<=f;c++){for(var h=0;h<a;h++)if(i[c+h].search(u[h])==-1)continue e;var p=i[c],d=i[c+a-1],v=p.length-p.match(u[0])[0].length,m=d.match(u[a-1])[0].length;if(l&&l.end.row===c&&l.end.column>v)continue;o.push(l=new s(c,v,c+a-1,m)),a>2&&(c=c+a-2)}}else for(var g=0;g<i.length;g++){var y=r.getMatchOffsets(i[g],u);for(var h=0;h<y.length;h++){var b=y[h];o.push(new s(g,b.offset,g,b.offset+b.length))}}if(n){var w=n.start.column,E=n.start.column,g=0,h=o.length-1;while(g<h&&o[g].start.column<w&&o[g].start.row==n.start.row)g++;while(g<h&&o[h].end.column>E&&o[h].end.row==n.end.row)h--;o=o.slice(g,h+1);for(g=0,h=o.length;g<h;g++)o[g].start.row+=n.start.row,o[g].end.row+=n.start.row}return o},this.replace=function(e,t){var n=this.$options,r=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(!r)return;var i=r.exec(e);if(!i||i[0].length!=e.length)return null;t=e.replace(r,t);if(n.preserveCase){t=t.split(\"\");for(var s=Math.min(e.length,e.length);s--;){var o=e[s];o&&o.toLowerCase()!=o?t[s]=t[s].toUpperCase():t[s]=t[s].toLowerCase()}t=t.join(\"\")}return t},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=r.escapeRegExp(n)),e.wholeWord&&(n=u(n,e));var i=e.caseSensitive?\"gm\":\"gmi\";e.$isMultiLine=!t&&/[\\n\\r]/.test(n);if(e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,i);try{var s=new RegExp(n,i)}catch(o){s=!1}return e.re=s},this.$assembleMultilineRegExp=function(e,t){var n=e.replace(/\\r\\n|\\r|\\n/g,\"$\\n^\").split(\"\\n\"),r=[];for(var i=0;i<n.length;i++)try{r.push(new RegExp(n[i],t))}catch(s){return!1}return r},this.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var r=t.backwards==1,i=t.skipCurrent!=0,s=t.range,o=t.start;o||(o=s?s[r?\"end\":\"start\"]:e.selection.getRange()),o.start&&(o=o[i!=r?\"end\":\"start\"]);var u=s?s.start.row:0,a=s?s.end.row:e.getLength()-1;if(r)var f=function(e){var n=o.row;if(c(n,o.column,e))return;for(n--;n>=u;n--)if(c(n,Number.MAX_VALUE,e))return;if(t.wrap==0)return;for(n=a,u=o.row;n>=u;n--)if(c(n,Number.MAX_VALUE,e))return};else var f=function(e){var n=o.row;if(c(n,o.column,e))return;for(n+=1;n<=a;n++)if(c(n,0,e))return;if(t.wrap==0)return;for(n=u,a=o.row;n<=a;n++)if(c(n,0,e))return};if(t.$isMultiLine)var l=n.length,c=function(t,i,s){var o=r?t-l+1:t;if(o<0)return;var u=e.getLine(o),a=u.search(n[0]);if(!r&&a<i||a===-1)return;for(var f=1;f<l;f++){u=e.getLine(o+f);if(u.search(n[f])==-1)return}var c=u.match(n[l-1])[0].length;if(r&&c>i)return;if(s(o,a,o+l-1,c))return!0};else if(r)var c=function(t,r,i){var s=e.getLine(t),o=[],u,a=0;n.lastIndex=0;while(u=n.exec(s)){var f=u[0].length;a=u.index;if(!f){if(a>=s.length)break;n.lastIndex=a+=1}if(u.index+f>r)break;o.push(u.index,f)}for(var l=o.length-1;l>=0;l-=2){var c=o[l-1],f=o[l];if(i(t,c,t,c+f))return!0}};else var c=function(t,r,i){var s=e.getLine(t),o,u;n.lastIndex=r;while(u=n.exec(s)){var a=u[0].length;o=u.index;if(i(t,o,t,o+a))return!0;if(!a){n.lastIndex=o+=1;if(o>=s.length)return!1}}};return{forEach:f}}}).call(o.prototype),t.Search=o}),define(\"ace/keyboard/hash_handler\",[\"require\",\"exports\",\"module\",\"ace/lib/keys\",\"ace/lib/useragent\"],function(e,t,n){\"use strict\";function o(e,t){this.platform=t||(i.isMac?\"mac\":\"win\"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function u(e,t){o.call(this,e,t),this.$singleCommand=!1}var r=e(\"../lib/keys\"),i=e(\"../lib/useragent\"),s=r.KEY_MODS;u.prototype=o.prototype,function(){function e(e){return typeof e==\"object\"&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&(typeof e==\"string\"?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var i in r){var s=r[i];if(s==e)delete r[i];else if(Array.isArray(s)){var o=s.indexOf(e);o!=-1&&(s.splice(o,1),s.length==1&&(r[i]=s[0]))}}},this.bindKey=function(e,t,n){typeof e==\"object\"&&e&&(n==undefined&&(n=e.position),e=e[this.platform]);if(!e)return;if(typeof t==\"function\")return this.addCommand({exec:t,bindKey:e,name:t.name||e});e.split(\"|\").forEach(function(e){var r=\"\";if(e.indexOf(\" \")!=-1){var i=e.split(/\\s+/);e=i.pop(),i.forEach(function(e){var t=this.parseKeys(e),n=s[t.hashId]+t.key;r+=(r?\" \":\"\")+n,this._addCommandToBinding(r,\"chainKeys\")},this),r+=\" \"}var o=this.parseKeys(e),u=s[o.hashId]+o.key;this._addCommandToBinding(r+u,t,n)},this)},this._addCommandToBinding=function(t,n,r){var i=this.commandKeyBinding,s;if(!n)delete i[t];else if(!i[t]||this.$singleCommand)i[t]=n;else{Array.isArray(i[t])?(s=i[t].indexOf(n))!=-1&&i[t].splice(s,1):i[t]=[i[t]],typeof r!=\"number\"&&(r=e(n));var o=i[t];for(s=0;s<o.length;s++){var u=o[s],a=e(u);if(a>r)break}o.splice(s,0,n)}},this.addCommands=function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];if(!n)return;if(typeof n==\"string\")return this.bindKey(n,t);typeof n==\"function\"&&(n={exec:n});if(typeof n!=\"object\")return;n.name||(n.name=t),this.addCommand(n)},this)},this.removeCommands=function(e){Object.keys(e).forEach(function(t){this.removeCommand(e[t])},this)},this.bindKeys=function(e){Object.keys(e).forEach(function(t){this.bindKey(t,e[t])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\\-\\+]([\\-\\+])?/).filter(function(e){return e}),n=t.pop(),i=r[n];if(r.FUNCTION_KEYS[i])n=r.FUNCTION_KEYS[i].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(t.length==1&&t[0]==\"shift\")return{key:n.toUpperCase(),hashId:-1}}var s=0;for(var o=t.length;o--;){var u=r.KEY_MODS[t[o]];if(u==null)return typeof console!=\"undefined\"&&console.error(\"invalid modifier \"+t[o]+\" in \"+e),!1;s|=u}return{key:n,hashId:s}},this.findKeyCommand=function(t,n){var r=s[t]+n;return this.commandKeyBinding[r]},this.handleKeyboard=function(e,t,n,r){if(r<0)return;var i=s[t]+n,o=this.commandKeyBinding[i];e.$keyChain&&(e.$keyChain+=\" \"+i,o=this.commandKeyBinding[e.$keyChain]||o);if(o)if(o==\"chainKeys\"||o[o.length-1]==\"chainKeys\")return e.$keyChain=e.$keyChain||i,{command:\"null\"};if(e.$keyChain)if(!!t&&t!=4||n.length!=1){if(t==-1||r>0)e.$keyChain=\"\"}else e.$keyChain=e.$keyChain.slice(0,-i.length-1);return{command:o}},this.getStatusText=function(e,t){return t.$keyChain||\"\"}}.call(o.prototype),t.HashHandler=o,t.MultiHashHandler=u}),define(\"ace/commands/command_manager\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/keyboard/hash_handler\",\"ace/lib/event_emitter\"],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"../keyboard/hash_handler\").MultiHashHandler,s=e(\"../lib/event_emitter\").EventEmitter,o=function(e,t){i.call(this,t,e),this.byName=this.commands,this.setDefaultHandler(\"exec\",function(e){return e.command.exec(e.editor,e.args||{})})};r.inherits(o,i),function(){r.implement(this,s),this.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}typeof e==\"string\"&&(e=this.commands[e]);if(!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(this.$checkCommandState!=0&&e.isAvailable&&!e.isAvailable(t))return!1;var i={editor:t,command:e,args:n};return i.returnValue=this._emit(\"exec\",i),this._signal(\"afterExec\",i),i.returnValue===!1?!1:!0},this.toggleRecording=function(e){if(this.$inReplay)return;return e&&e._emit(\"changeStatus\"),this.recording?(this.macro.pop(),this.off(\"exec\",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on(\"exec\",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(this.$inReplay||!this.macro)return;if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach(function(t){typeof t==\"string\"?this.exec(t,e):this.exec(t[0],e,t[1])},this)}finally{this.$inReplay=!1}},this.trimMacro=function(e){return e.map(function(e){return typeof e[0]!=\"string\"&&(e[0]=e[0].name),e[1]||(e=e[0]),e})}}.call(o.prototype),t.CommandManager=o}),define(\"ace/commands/default_commands\",[\"require\",\"exports\",\"module\",\"ace/lib/lang\",\"ace/config\",\"ace/range\"],function(e,t,n){\"use strict\";function o(e,t){return{win:e,mac:t}}var r=e(\"../lib/lang\"),i=e(\"../config\"),s=e(\"../range\").Range;t.commands=[{name:\"showSettingsMenu\",bindKey:o(\"Ctrl-,\",\"Command-,\"),exec:function(e){i.loadModule(\"ace/ext/settings_menu\",function(t){t.init(e),e.showSettingsMenu()})},readOnly:!0},{name:\"goToNextError\",bindKey:o(\"Alt-E\",\"F4\"),exec:function(e){i.loadModule(\"./ext/error_marker\",function(t){t.showErrorMarker(e,1)})},scrollIntoView:\"animate\",readOnly:!0},{name:\"goToPreviousError\",bindKey:o(\"Alt-Shift-E\",\"Shift-F4\"),exec:function(e){i.loadModule(\"./ext/error_marker\",function(t){t.showErrorMarker(e,-1)})},scrollIntoView:\"animate\",readOnly:!0},{name:\"selectall\",description:\"Select all\",bindKey:o(\"Ctrl-A\",\"Command-A\"),exec:function(e){e.selectAll()},readOnly:!0},{name:\"centerselection\",description:\"Center selection\",bindKey:o(null,\"Ctrl-L\"),exec:function(e){e.centerSelection()},readOnly:!0},{name:\"gotoline\",description:\"Go to line...\",bindKey:o(\"Ctrl-L\",\"Command-L\"),exec:function(e,t){typeof t==\"number\"&&!isNaN(t)&&e.gotoLine(t),e.prompt({$type:\"gotoLine\"})},readOnly:!0},{name:\"fold\",bindKey:o(\"Alt-L|Ctrl-F1\",\"Command-Alt-L|Command-F1\"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:\"forEach\",scrollIntoView:\"center\",readOnly:!0},{name:\"unfold\",bindKey:o(\"Alt-Shift-L|Ctrl-Shift-F1\",\"Command-Alt-Shift-L|Command-Shift-F1\"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:\"forEach\",scrollIntoView:\"center\",readOnly:!0},{name:\"toggleFoldWidget\",bindKey:o(\"F2\",\"F2\"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:\"forEach\",scrollIntoView:\"center\",readOnly:!0},{name:\"toggleParentFoldWidget\",bindKey:o(\"Alt-F2\",\"Alt-F2\"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:\"forEach\",scrollIntoView:\"center\",readOnly:!0},{name:\"foldall\",description:\"Fold all\",bindKey:o(null,\"Ctrl-Command-Option-0\"),exec:function(e){e.session.foldAll()},scrollIntoView:\"center\",readOnly:!0},{name:\"foldOther\",description:\"Fold other\",bindKey:o(\"Alt-0\",\"Command-Option-0\"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:\"center\",readOnly:!0},{name:\"unfoldall\",description:\"Unfold all\",bindKey:o(\"Alt-Shift-0\",\"Command-Option-Shift-0\"),exec:function(e){e.session.unfold()},scrollIntoView:\"center\",readOnly:!0},{name:\"findnext\",description:\"Find next\",bindKey:o(\"Ctrl-K\",\"Command-G\"),exec:function(e){e.findNext()},multiSelectAction:\"forEach\",scrollIntoView:\"center\",readOnly:!0},{name:\"findprevious\",description:\"Find previous\",bindKey:o(\"Ctrl-Shift-K\",\"Command-Shift-G\"),exec:function(e){e.findPrevious()},multiSelectAction:\"forEach\",scrollIntoView:\"center\",readOnly:!0},{name:\"selectOrFindNext\",description:\"Select or find next\",bindKey:o(\"Alt-K\",\"Ctrl-G\"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:\"selectOrFindPrevious\",description:\"Select or find previous\",bindKey:o(\"Alt-Shift-K\",\"Ctrl-Shift-G\"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:\"find\",description:\"Find\",bindKey:o(\"Ctrl-F\",\"Command-F\"),exec:function(e){i.loadModule(\"ace/ext/searchbox\",function(t){t.Search(e)})},readOnly:!0},{name:\"overwrite\",description:\"Overwrite\",bindKey:\"Insert\",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:\"selecttostart\",description:\"Select to start\",bindKey:o(\"Ctrl-Shift-Home\",\"Command-Shift-Home|Command-Shift-Up\"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:\"forEach\",readOnly:!0,scrollIntoView:\"animate\",aceCommandGroup:\"fileJump\"},{name:\"gotostart\",description:\"Go to start\",bindKey:o(\"Ctrl-Home\",\"Command-Home|Command-Up\"),exec:function(e){e.navigateFileStart()},multiSelectAction:\"forEach\",readOnly:!0,scrollIntoView:\"animate\",aceCommandGroup:\"fileJump\"},{name:\"selectup\",description:\"Select up\",bindKey:o(\"Shift-Up\",\"Shift-Up|Ctrl-Shift-P\"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"golineup\",description:\"Go line up\",bindKey:o(\"Up\",\"Up|Ctrl-P\"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"selecttoend\",description:\"Select to end\",bindKey:o(\"Ctrl-Shift-End\",\"Command-Shift-End|Command-Shift-Down\"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:\"forEach\",readOnly:!0,scrollIntoView:\"animate\",aceCommandGroup:\"fileJump\"},{name:\"gotoend\",description:\"Go to end\",bindKey:o(\"Ctrl-End\",\"Command-End|Command-Down\"),exec:function(e){e.navigateFileEnd()},multiSelectAction:\"forEach\",readOnly:!0,scrollIntoView:\"animate\",aceCommandGroup:\"fileJump\"},{name:\"selectdown\",description:\"Select down\",bindKey:o(\"Shift-Down\",\"Shift-Down|Ctrl-Shift-N\"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"golinedown\",description:\"Go line down\",bindKey:o(\"Down\",\"Down|Ctrl-N\"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"selectwordleft\",description:\"Select word left\",bindKey:o(\"Ctrl-Shift-Left\",\"Option-Shift-Left\"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"gotowordleft\",description:\"Go to word left\",bindKey:o(\"Ctrl-Left\",\"Option-Left\"),exec:function(e){e.navigateWordLeft()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"selecttolinestart\",description:\"Select to line start\",bindKey:o(\"Alt-Shift-Left\",\"Command-Shift-Left|Ctrl-Shift-A\"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"gotolinestart\",description:\"Go to line start\",bindKey:o(\"Alt-Left|Home\",\"Command-Left|Home|Ctrl-A\"),exec:function(e){e.navigateLineStart()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"selectleft\",description:\"Select left\",bindKey:o(\"Shift-Left\",\"Shift-Left|Ctrl-Shift-B\"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"gotoleft\",description:\"Go to left\",bindKey:o(\"Left\",\"Left|Ctrl-B\"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"selectwordright\",description:\"Select word right\",bindKey:o(\"Ctrl-Shift-Right\",\"Option-Shift-Right\"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"gotowordright\",description:\"Go to word right\",bindKey:o(\"Ctrl-Right\",\"Option-Right\"),exec:function(e){e.navigateWordRight()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"selecttolineend\",description:\"Select to line end\",bindKey:o(\"Alt-Shift-Right\",\"Command-Shift-Right|Shift-End|Ctrl-Shift-E\"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"gotolineend\",description:\"Go to line end\",bindKey:o(\"Alt-Right|End\",\"Command-Right|End|Ctrl-E\"),exec:function(e){e.navigateLineEnd()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"selectright\",description:\"Select right\",bindKey:o(\"Shift-Right\",\"Shift-Right\"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"gotoright\",description:\"Go to right\",bindKey:o(\"Right\",\"Right|Ctrl-F\"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"selectpagedown\",description:\"Select page down\",bindKey:\"Shift-PageDown\",exec:function(e){e.selectPageDown()},readOnly:!0},{name:\"pagedown\",description:\"Page down\",bindKey:o(null,\"Option-PageDown\"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:\"gotopagedown\",description:\"Go to page down\",bindKey:o(\"PageDown\",\"PageDown|Ctrl-V\"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:\"selectpageup\",description:\"Select page up\",bindKey:\"Shift-PageUp\",exec:function(e){e.selectPageUp()},readOnly:!0},{name:\"pageup\",description:\"Page up\",bindKey:o(null,\"Option-PageUp\"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:\"gotopageup\",description:\"Go to page up\",bindKey:\"PageUp\",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:\"scrollup\",description:\"Scroll up\",bindKey:o(\"Ctrl-Up\",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:\"scrolldown\",description:\"Scroll down\",bindKey:o(\"Ctrl-Down\",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:\"selectlinestart\",description:\"Select line start\",bindKey:\"Shift-Home\",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"selectlineend\",description:\"Select line end\",bindKey:\"Shift-End\",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"togglerecording\",description:\"Toggle recording\",bindKey:o(\"Ctrl-Alt-E\",\"Command-Option-E\"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:\"replaymacro\",description:\"Replay macro\",bindKey:o(\"Ctrl-Shift-E\",\"Command-Shift-E\"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:\"jumptomatching\",description:\"Jump to matching\",bindKey:o(\"Ctrl-\\\\|Ctrl-P\",\"Command-\\\\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:\"forEach\",scrollIntoView:\"animate\",readOnly:!0},{name:\"selecttomatching\",description:\"Select to matching\",bindKey:o(\"Ctrl-Shift-\\\\|Ctrl-Shift-P\",\"Command-Shift-\\\\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:\"forEach\",scrollIntoView:\"animate\",readOnly:!0},{name:\"expandToMatching\",description:\"Expand to matching\",bindKey:o(\"Ctrl-Shift-M\",\"Ctrl-Shift-M\"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:\"forEach\",scrollIntoView:\"animate\",readOnly:!0},{name:\"passKeysToBrowser\",description:\"Pass keys to browser\",bindKey:o(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:\"copy\",description:\"Copy\",exec:function(e){},readOnly:!0},{name:\"cut\",description:\"Cut\",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty(),n=t?e.selection.getLineRange():e.selection.getRange();e._emit(\"cut\",n),n.isEmpty()||e.session.remove(n),e.clearSelection()},scrollIntoView:\"cursor\",multiSelectAction:\"forEach\"},{name:\"paste\",description:\"Paste\",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:\"cursor\"},{name:\"removeline\",description:\"Remove line\",bindKey:o(\"Ctrl-D\",\"Command-D\"),exec:function(e){e.removeLines()},scrollIntoView:\"cursor\",multiSelectAction:\"forEachLine\"},{name:\"duplicateSelection\",description:\"Duplicate selection\",bindKey:o(\"Ctrl-Shift-D\",\"Command-Shift-D\"),exec:function(e){e.duplicateSelection()},scrollIntoView:\"cursor\",multiSelectAction:\"forEach\"},{name:\"sortlines\",description:\"Sort lines\",bindKey:o(\"Ctrl-Alt-S\",\"Command-Alt-S\"),exec:function(e){e.sortLines()},scrollIntoView:\"selection\",multiSelectAction:\"forEachLine\"},{name:\"togglecomment\",description:\"Toggle comment\",bindKey:o(\"Ctrl-/\",\"Command-/\"),exec:function(e){e.toggleCommentLines()},multiSelectAction:\"forEachLine\",scrollIntoView:\"selectionPart\"},{name:\"toggleBlockComment\",description:\"Toggle block comment\",bindKey:o(\"Ctrl-Shift-/\",\"Command-Shift-/\"),exec:function(e){e.toggleBlockComment()},multiSelectAction:\"forEach\",scrollIntoView:\"selectionPart\"},{name:\"modifyNumberUp\",description:\"Modify number up\",bindKey:o(\"Ctrl-Shift-Up\",\"Alt-Shift-Up\"),exec:function(e){e.modifyNumber(1)},scrollIntoView:\"cursor\",multiSelectAction:\"forEach\"},{name:\"modifyNumberDown\",description:\"Modify number down\",bindKey:o(\"Ctrl-Shift-Down\",\"Alt-Shift-Down\"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:\"cursor\",multiSelectAction:\"forEach\"},{name:\"replace\",description:\"Replace\",bindKey:o(\"Ctrl-H\",\"Command-Option-F\"),exec:function(e){i.loadModule(\"ace/ext/searchbox\",function(t){t.Search(e,!0)})}},{name:\"undo\",description:\"Undo\",bindKey:o(\"Ctrl-Z\",\"Command-Z\"),exec:function(e){e.undo()}},{name:\"redo\",description:\"Redo\",bindKey:o(\"Ctrl-Shift-Z|Ctrl-Y\",\"Command-Shift-Z|Command-Y\"),exec:function(e){e.redo()}},{name:\"copylinesup\",description:\"Copy lines up\",bindKey:o(\"Alt-Shift-Up\",\"Command-Option-Up\"),exec:function(e){e.copyLinesUp()},scrollIntoView:\"cursor\"},{name:\"movelinesup\",description:\"Move lines up\",bindKey:o(\"Alt-Up\",\"Option-Up\"),exec:function(e){e.moveLinesUp()},scrollIntoView:\"cursor\"},{name:\"copylinesdown\",description:\"Copy lines down\",bindKey:o(\"Alt-Shift-Down\",\"Command-Option-Down\"),exec:function(e){e.copyLinesDown()},scrollIntoView:\"cursor\"},{name:\"movelinesdown\",description:\"Move lines down\",bindKey:o(\"Alt-Down\",\"Option-Down\"),exec:function(e){e.moveLinesDown()},scrollIntoView:\"cursor\"},{name:\"del\",description:\"Delete\",bindKey:o(\"Delete\",\"Delete|Ctrl-D|Shift-Delete\"),exec:function(e){e.remove(\"right\")},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"backspace\",description:\"Backspace\",bindKey:o(\"Shift-Backspace|Backspace\",\"Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H\"),exec:function(e){e.remove(\"left\")},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"cut_or_delete\",description:\"Cut or delete\",bindKey:o(\"Shift-Delete\",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove(\"left\")},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"removetolinestart\",description:\"Remove to line start\",bindKey:o(\"Alt-Backspace\",\"Command-Backspace\"),exec:function(e){e.removeToLineStart()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"removetolineend\",description:\"Remove to line end\",bindKey:o(\"Alt-Delete\",\"Ctrl-K|Command-Delete\"),exec:function(e){e.removeToLineEnd()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"removetolinestarthard\",description:\"Remove to line start hard\",bindKey:o(\"Ctrl-Shift-Backspace\",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"removetolineendhard\",description:\"Remove to line end hard\",bindKey:o(\"Ctrl-Shift-Delete\",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"removewordleft\",description:\"Remove word left\",bindKey:o(\"Ctrl-Backspace\",\"Alt-Backspace|Ctrl-Alt-Backspace\"),exec:function(e){e.removeWordLeft()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"removewordright\",description:\"Remove word right\",bindKey:o(\"Ctrl-Delete\",\"Alt-Delete\"),exec:function(e){e.removeWordRight()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"outdent\",description:\"Outdent\",bindKey:o(\"Shift-Tab\",\"Shift-Tab\"),exec:function(e){e.blockOutdent()},multiSelectAction:\"forEach\",scrollIntoView:\"selectionPart\"},{name:\"indent\",description:\"Indent\",bindKey:o(\"Tab\",\"Tab\"),exec:function(e){e.indent()},multiSelectAction:\"forEach\",scrollIntoView:\"selectionPart\"},{name:\"blockoutdent\",description:\"Block outdent\",bindKey:o(\"Ctrl-[\",\"Ctrl-[\"),exec:function(e){e.blockOutdent()},multiSelectAction:\"forEachLine\",scrollIntoView:\"selectionPart\"},{name:\"blockindent\",description:\"Block indent\",bindKey:o(\"Ctrl-]\",\"Ctrl-]\"),exec:function(e){e.blockIndent()},multiSelectAction:\"forEachLine\",scrollIntoView:\"selectionPart\"},{name:\"insertstring\",description:\"Insert string\",exec:function(e,t){e.insert(t)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"inserttext\",description:\"Insert text\",exec:function(e,t){e.insert(r.stringRepeat(t.text||\"\",t.times||1))},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"splitline\",description:\"Split line\",bindKey:o(null,\"Ctrl-O\"),exec:function(e){e.splitLine()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"transposeletters\",description:\"Transpose letters\",bindKey:o(\"Alt-Shift-X\",\"Ctrl-T\"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:\"cursor\"},{name:\"touppercase\",description:\"To uppercase\",bindKey:o(\"Ctrl-U\",\"Ctrl-U\"),exec:function(e){e.toUpperCase()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"tolowercase\",description:\"To lowercase\",bindKey:o(\"Ctrl-Shift-U\",\"Ctrl-Shift-U\"),exec:function(e){e.toLowerCase()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"autoindent\",description:\"Auto Indent\",bindKey:o(null,null),exec:function(e){e.autoIndent()},multiSelectAction:\"forEachLine\",scrollIntoView:\"animate\"},{name:\"expandtoline\",description:\"Expand to line\",bindKey:o(\"Ctrl-Shift-L\",\"Command-Shift-L\"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"joinlines\",description:\"Join lines\",bindKey:o(null,null),exec:function(e){var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),o=e.session.doc.getLine(n.row).length,u=e.session.doc.getTextRange(e.selection.getRange()),a=u.replace(/\\n\\s*/,\" \").length,f=e.session.doc.getLine(n.row);for(var l=n.row+1;l<=i.row+1;l++){var c=r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(l)));c.length!==0&&(c=\" \"+c),f+=c}i.row+1<e.session.doc.getLength()-1&&(f+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new s(n.row,0,i.row+2,0),f),a>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+a)):(o=e.session.doc.getLine(n.row).length>o?o+1:o,e.selection.moveCursorTo(n.row,o))},multiSelectAction:\"forEach\",readOnly:!0},{name:\"invertSelection\",description:\"Invert selection\",bindKey:o(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,i=[];r.length<1&&(r=[e.selection.getRange()]);for(var o=0;o<r.length;o++)o==r.length-1&&(r[o].end.row!==t||r[o].end.column!==n)&&i.push(new s(r[o].end.row,r[o].end.column,t,n)),o===0?(r[o].start.row!==0||r[o].start.column!==0)&&i.push(new s(0,0,r[o].start.row,r[o].start.column)):i.push(new s(r[o-1].end.row,r[o-1].end.column,r[o].start.row,r[o].start.column));e.exitMultiSelectMode(),e.clearSelection();for(var o=0;o<i.length;o++)e.selection.addRange(i[o],!1)},readOnly:!0,scrollIntoView:\"none\"},{name:\"addLineAfter\",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert(\"\\n\")},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"addLineBefore\",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert(\"\\n\"),t.row===0&&e.navigateUp()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"openCommandPallete\",description:\"Open command pallete\",bindKey:o(\"F1\",\"F1\"),exec:function(e){e.prompt({$type:\"commands\"})},readOnly:!0},{name:\"modeSelect\",description:\"Change language mode...\",bindKey:o(null,null),exec:function(e){e.prompt({$type:\"modes\"})},readOnly:!0}]}),define(\"ace/editor\",[\"require\",\"exports\",\"module\",\"ace/lib/fixoldbrowsers\",\"ace/lib/oop\",\"ace/lib/dom\",\"ace/lib/lang\",\"ace/lib/useragent\",\"ace/keyboard/textinput\",\"ace/mouse/mouse_handler\",\"ace/mouse/fold_handler\",\"ace/keyboard/keybinding\",\"ace/edit_session\",\"ace/search\",\"ace/range\",\"ace/lib/event_emitter\",\"ace/commands/command_manager\",\"ace/commands/default_commands\",\"ace/config\",\"ace/token_iterator\",\"ace/clipboard\"],function(e,t,n){\"use strict\";e(\"./lib/fixoldbrowsers\");var r=e(\"./lib/oop\"),i=e(\"./lib/dom\"),s=e(\"./lib/lang\"),o=e(\"./lib/useragent\"),u=e(\"./keyboard/textinput\").TextInput,a=e(\"./mouse/mouse_handler\").MouseHandler,f=e(\"./mouse/fold_handler\").FoldHandler,l=e(\"./keyboard/keybinding\").KeyBinding,c=e(\"./edit_session\").EditSession,h=e(\"./search\").Search,p=e(\"./range\").Range,d=e(\"./lib/event_emitter\").EventEmitter,v=e(\"./commands/command_manager\").CommandManager,m=e(\"./commands/default_commands\").commands,g=e(\"./config\"),y=e(\"./token_iterator\").TokenIterator,b=e(\"./clipboard\"),w=function(e,t,n){this.$toDestroy=[];var r=e.getContainerElement();this.container=r,this.renderer=e,this.id=\"editor\"+ ++w.$uid,this.commands=new v(o.isMac?\"mac\":\"win\",m),typeof document==\"object\"&&(this.textInput=new u(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new a(this),new f(this)),this.keyBinding=new l(this),this.$search=(new h).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on(\"exec\",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal(\"input\",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on(\"change\",function(e,t){t._$emitInputEvent.schedule(31)}),this.setSession(t||n&&n.session||new c(\"\")),g.resetOptions(this),n&&this.setOptions(n),g._signal(\"editor\",this)};w.$uid=0,function(){r.implement(this,d),this.$initOperationListeners=function(){this.commands.on(\"exec\",this.startOperation.bind(this),!0),this.commands.on(\"afterExec\",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this,!0)),this.on(\"change\",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on(\"changeSelection\",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(e){if(this.curOp&&this.session){if(e&&e.returnValue===!1||!this.session)return this.curOp=null;if(e==1&&this.curOp.command&&this.curOp.command.name==\"mouse\")return;this._signal(\"beforeEndOperation\");if(!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case\"center-animate\":n=\"animate\";case\"center\":this.renderer.scrollCursorIntoView(null,.5);break;case\"animate\":case\"cursor\":this.renderer.scrollCursorIntoView();break;case\"selectionPart\":var r=this.selection.getRange(),i=this.renderer.layerConfig;(r.start.row>=i.lastRow||r.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:}n==\"animate\"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var s=this.selection.toJSON();this.curOp.selectionAfter=s,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(s),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=[\"backspace\",\"del\",\"insertstring\"],this.$historyTracker=function(e){if(!this.$mergeUndoDeltas)return;var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if(e.command.name==\"insertstring\"){var i=e.args;this.mergeNextCommand===undefined&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\\s/.test(i)||/\\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&n.indexOf(e.command.name)!==-1;this.$mergeUndoDeltas!=\"always\"&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:n.indexOf(e.command.name)!==-1&&(this.sequenceStartTime=Date.now())},this.setKeyboardHandler=function(e,t){if(e&&typeof e==\"string\"&&e!=\"ace\"){this.$keybindingId=e;var n=this;g.loadModule([\"keybinding\",e],function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session==e)return;this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off(\"change\",this.$onDocumentChange),this.session.off(\"changeMode\",this.$onChangeMode),this.session.off(\"tokenizerUpdate\",this.$onTokenizerUpdate),this.session.off(\"changeTabSize\",this.$onChangeTabSize),this.session.off(\"changeWrapLimit\",this.$onChangeWrapLimit),this.session.off(\"changeWrapMode\",this.$onChangeWrapMode),this.session.off(\"changeFold\",this.$onChangeFold),this.session.off(\"changeFrontMarker\",this.$onChangeFrontMarker),this.session.off(\"changeBackMarker\",this.$onChangeBackMarker),this.session.off(\"changeBreakpoint\",this.$onChangeBreakpoint),this.session.off(\"changeAnnotation\",this.$onChangeAnnotation),this.session.off(\"changeOverwrite\",this.$onCursorChange),this.session.off(\"changeScrollTop\",this.$onScrollTopChange),this.session.off(\"changeScrollLeft\",this.$onScrollLeftChange);var n=this.session.getSelection();n.off(\"changeCursor\",this.$onCursorChange),n.off(\"changeSelection\",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on(\"change\",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on(\"changeMode\",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on(\"tokenizerUpdate\",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on(\"changeTabSize\",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on(\"changeWrapLimit\",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on(\"changeWrapMode\",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on(\"changeFold\",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on(\"changeFrontMarker\",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on(\"changeBackMarker\",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on(\"changeBreakpoint\",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on(\"changeAnnotation\",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on(\"changeOverwrite\",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on(\"changeScrollTop\",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on(\"changeScrollLeft\",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on(\"changeCursor\",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on(\"changeSelection\",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal(\"changeSession\",{session:e,oldSession:t}),this.curOp=null,t&&t._signal(\"changeEditor\",{oldEditor:this}),e&&e._signal(\"changeEditor\",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?t==1?this.navigateFileEnd():t==-1&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption(\"fontSize\")||i.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption(\"fontSize\",e)},this.$highlightBrackets=function(){if(this.$highlightPending)return;var e=this;this.$highlightPending=!0,setTimeout(function(){e.$highlightPending=!1;var t=e.session;if(!t||!t.bgTokenizer)return;t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach(function(e){t.removeMarker(e)}),t.$bracketHighlight=null);var n=t.getMatchingBracketRanges(e.getCursorPosition());!n&&t.$mode.getMatching&&(n=t.$mode.getMatching(e.session));if(!n)return;var r=\"ace_bracket\";Array.isArray(n)?n.length==1&&(r=\"ace_error_bracket\"):n=[n],n.length==2&&(p.comparePoints(n[0].end,n[1].start)==0?n=[p.fromPoints(n[0].start,n[1].end)]:p.comparePoints(n[0].start,n[1].end)==0&&(n=[p.fromPoints(n[1].start,n[0].end)])),t.$bracketHighlight={ranges:n,markerIds:n.map(function(e){return t.addMarker(e,r,\"text\")})}},50)},this.$highlightTags=function(){if(this.$highlightTagPending)return;var e=this;this.$highlightTagPending=!0,setTimeout(function(){e.$highlightTagPending=!1;var t=e.session;if(!t||!t.bgTokenizer)return;var n=e.getCursorPosition(),r=new y(e.session,n.row,n.column),i=r.getCurrentToken();if(!i||!/\\b(?:tag-open|tag-name)/.test(i.type)){t.removeMarker(t.$tagHighlight),t.$tagHighlight=null;return}if(i.type.indexOf(\"tag-open\")!=-1){i=r.stepForward();if(!i)return}var s=i.value,o=0,u=r.stepBackward();if(u.value==\"<\"){do u=i,i=r.stepForward(),i&&i.value===s&&i.type.indexOf(\"tag-name\")!==-1&&(u.value===\"<\"?o++:u.value===\"</\"&&o--);while(i&&o>=0)}else{do i=u,u=r.stepBackward(),i&&i.value===s&&i.type.indexOf(\"tag-name\")!==-1&&(u.value===\"<\"?o++:u.value===\"</\"&&o--);while(u&&o<=0);r.stepForward()}if(!i){t.removeMarker(t.$tagHighlight),t.$tagHighlight=null;return}var a=r.getCurrentTokenRow(),f=r.getCurrentTokenColumn(),l=new p(a,f,a,f+i.value.length),c=t.$backMarkers[t.$tagHighlight];t.$tagHighlight&&c!=undefined&&l.compareRange(c.range)!==0&&(t.removeMarker(t.$tagHighlight),t.$tagHighlight=null),t.$tagHighlight||(t.$tagHighlight=t.addMarker(l,\"ace_bracket\",\"text\"))},50)},this.focus=function(){var e=this;setTimeout(function(){e.isFocused()||e.textInput.focus()}),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){if(this.$isFocused)return;this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit(\"focus\",e)},this.onBlur=function(e){if(!this.$isFocused)return;this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit(\"blur\",e)},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:Infinity;this.renderer.updateLines(e.start.row,n,t),this._signal(\"change\",e),this.$cursorChange()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal(\"changeSelection\")},this.$updateHighlightActiveLine=function(){var e=this.getSession(),t;if(this.$highlightActiveLine){if(this.$selectionStyle!=\"line\"||!this.selection.isMultiLine())t=this.getCursorPosition();this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(t=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(t=!1)}if(e.$highlightLineMarker&&!t)e.removeMarker(e.$highlightLineMarker.id),e.$highlightLineMarker=null;else if(!e.$highlightLineMarker&&t){var n=new p(t.row,t.column,t.row,Infinity);n.id=e.addMarker(n,\"ace_active-line\",\"screenLine\"),e.$highlightLineMarker=n}else t&&(e.$highlightLineMarker.start.row=t.row,e.$highlightLineMarker.end.row=t.row,e.$highlightLineMarker.start.column=t.column,e._signal(\"changeBackMarker\"))},this.onSelectionChange=function(e){var t=this.session;t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null;if(!this.selection.isEmpty()){var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,\"ace_selection\",r)}else this.$updateHighlightActiveLine();var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal(\"changeSelection\")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(t.isEmpty()||t.isMultiLine())return;var n=t.start.column,r=t.end.column,i=e.getLine(t.start.row),s=i.substring(n,r);if(s.length>5e3||!/[\\w\\d]/.test(s))return;var o=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:s}),u=i.substring(n-1,r+1);if(!o.test(u))return;return o},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit(\"changeMode\",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;var r=this.selection.getAllRanges();for(var i=0;i<r.length;i++){var s=r[i];if(i&&r[i-1].start.row==s.start.row)continue;e+=this.session.getLine(s.start.row)+t}}var o={text:e};return this._signal(\"copy\",o),b.lineMode=n?o.text:\"\",o.text},this.onCopy=function(){this.commands.exec(\"copy\",this)},this.onCut=function(){this.commands.exec(\"cut\",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec(\"paste\",this,n)},this.$handlePaste=function(e){typeof e==\"string\"&&(e={text:e}),this._signal(\"paste\",e);var t=e.text,n=t==b.lineMode,r=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?r.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(n)this.selection.rangeList.ranges.forEach(function(e){r.insert({row:e.start.row,column:0},t)});else{var i=t.split(/\\r\\n|\\r|\\n/),s=this.selection.rangeList.ranges,o=i.length==2&&(!i[0]||!i[1]);if(i.length!=s.length||o)return this.commands.exec(\"insertstring\",this,t);for(var u=s.length;u--;){var a=s[u];a.isEmpty()||r.remove(a),r.insert(a.start,i[u])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,r=n.getMode(),i=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var s=r.transformAction(n.getState(i.row),\"insertion\",this,n,e);s&&(e!==s.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=s.text)}e==\"\t\"&&(e=this.session.getTabString());if(!this.selection.isEmpty()){var o=this.getSelectionRange();i=this.session.remove(o),this.clearSelection()}else if(this.session.getOverwrite()&&e.indexOf(\"\\n\")==-1){var o=new p.fromPoints(i,i);o.end.column+=e.length,this.session.remove(o)}if(e==\"\\n\"||e==\"\\r\\n\"){var u=n.getLine(i.row);if(i.column>u.search(/\\S|$/)){var a=u.substr(i.column).search(/\\S|$/);n.doc.removeInLine(i.row,i.column,i.column+a)}}this.clearSelection();var f=i.column,l=n.getState(i.row),u=n.getLine(i.row),c=r.checkOutdent(l,u,e);n.insert(i,e),s&&s.selection&&(s.selection.length==2?this.selection.setSelectionRange(new p(i.row,f+s.selection[0],i.row,f+s.selection[1])):this.selection.setSelectionRange(new p(i.row+s.selection[0],s.selection[1],i.row+s.selection[2],s.selection[3])));if(this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var h=r.getNextLineIndent(l,u.slice(0,i.column),n.getTabString());n.insert({row:i.row+1,column:0},h)}c&&r.autoOutdent(l,n,i.row)}},this.autoIndent=function(){var e=this.session,t=e.getMode(),n,r;if(this.selection.isEmpty())n=0,r=e.doc.getLength()-1;else{var i=this.getSelectionRange();n=i.start.row,r=i.end.row}var s=\"\",o=\"\",u=\"\",a,f,l,c=e.getTabString();for(var h=n;h<=r;h++)h>0&&(s=e.getState(h-1),o=e.getLine(h-1),u=t.getNextLineIndent(s,o,c)),a=e.getLine(h),f=t.$getIndent(a),u!==f&&(f.length>0&&(l=new p(h,0,h,f.length),e.remove(l)),u.length>0&&e.insert({row:h,column:0},u)),t.autoOutdent(s,e,h)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:\"insertstring\"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){if(t.extendLeft||t.extendRight){var n=this.selection.getRange();n.start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),!e&&!n.isEmpty()&&this.remove()}(e||!this.selection.isEmpty())&&this.insert(e,!0);if(t.restoreStart||t.restoreEnd){var n=this.selection.getRange();n.start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n)}},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption(\"scrollSpeed\",e)},this.getScrollSpeed=function(){return this.getOption(\"scrollSpeed\")},this.setDragDelay=function(e){this.setOption(\"dragDelay\",e)},this.getDragDelay=function(){return this.getOption(\"dragDelay\")},this.setSelectionStyle=function(e){this.setOption(\"selectionStyle\",e)},this.getSelectionStyle=function(){return this.getOption(\"selectionStyle\")},this.setHighlightActiveLine=function(e){this.setOption(\"highlightActiveLine\",e)},this.getHighlightActiveLine=function(){return this.getOption(\"highlightActiveLine\")},this.setHighlightGutterLine=function(e){this.setOption(\"highlightGutterLine\",e)},this.getHighlightGutterLine=function(){return this.getOption(\"highlightGutterLine\")},this.setHighlightSelectedWord=function(e){this.setOption(\"highlightSelectedWord\",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption(\"readOnly\",e)},this.getReadOnly=function(){return this.getOption(\"readOnly\")},this.setBehavioursEnabled=function(e){this.setOption(\"behavioursEnabled\",e)},this.getBehavioursEnabled=function(){return this.getOption(\"behavioursEnabled\")},this.setWrapBehavioursEnabled=function(e){this.setOption(\"wrapBehavioursEnabled\",e)},this.getWrapBehavioursEnabled=function(){return this.getOption(\"wrapBehavioursEnabled\")},this.setShowFoldWidgets=function(e){this.setOption(\"showFoldWidgets\",e)},this.getShowFoldWidgets=function(){return this.getOption(\"showFoldWidgets\")},this.setFadeFoldWidgets=function(e){this.setOption(\"fadeFoldWidgets\",e)},this.getFadeFoldWidgets=function(){return this.getOption(\"fadeFoldWidgets\")},this.remove=function(e){this.selection.isEmpty()&&(e==\"left\"?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),i=n.getMode().transformAction(r,\"deletion\",this,n,t);if(t.end.column===0){var s=n.getTextRange(t);if(s[s.length-1]==\"\\n\"){var o=n.getLine(t.end.row);/^\\s+$/.test(o)&&(t.end.column=o.length)}}i&&(t=i)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert(\"\\n\"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(!this.selection.isEmpty())return;var e=this.getCursorPosition(),t=e.column;if(t===0)return;var n=this.session.getLine(e.row),r,i;t<n.length?(r=n.charAt(t)+n.charAt(t-1),i=new p(e.row,t-1,e.row,t+1)):(r=n.charAt(t-1)+n.charAt(t-2),i=new p(e.row,t-2,e.row,t)),this.session.replace(i,r),this.session.selection.moveToPosition(i.end)},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(t.start.row<t.end.row){var n=this.$getSelectedRows();e.indentRows(n.first,n.last,\"\t\");return}if(t.start.column<t.end.column){var r=e.getTextRange(t);if(!/^\\s+$/.test(r)){var n=this.$getSelectedRows();e.indentRows(n.first,n.last,\"\t\");return}}var i=e.getLine(t.start.row),o=t.start,u=e.getTabSize(),a=e.documentToScreenColumn(o.row,o.column);if(this.session.getUseSoftTabs())var f=u-a%u,l=s.stringRepeat(\" \",f);else{var f=a%u;while(i[t.start.column-1]==\" \"&&f)t.start.column--,f--;this.selection.setSelectionRange(t),l=\"\t\"}return this.insert(l)},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,\"\t\")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){var e=this.$getSelectedRows(),t=this.session,n=[];for(var r=e.first;r<=e.last;r++)n.push(t.getLine(r));n.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0});var i=new p(0,0,0,0);for(var r=e.first;r<=e.last;r++){var s=t.getLine(r);i.start.row=r,i.end.row=r,i.end.column=s.length,t.replace(i,n[r-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\\-]?[0-9]+(?:\\.[0-9]+)?/g;n.lastIndex=0;var r=this.session.getLine(e);while(n.lastIndex<t){var i=n.exec(r);if(i.index<=t&&i.index+i[0].length>=t){var s={value:i[0],start:i.index,end:i.index+i[0].length};return s}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new p(t,n-1,t,n),i=this.session.getTextRange(r);if(!isNaN(parseFloat(i))&&isFinite(i)){var s=this.getNumberAt(t,n);if(s){var o=s.value.indexOf(\".\")>=0?s.start+s.value.indexOf(\".\")+1:s.end,u=s.start+s.value.length-o,a=parseFloat(s.value);a*=Math.pow(10,u),o!==s.end&&n<o?e*=Math.pow(10,s.end-n-1):e*=Math.pow(10,s.end-n),a+=e,a/=Math.pow(10,u);var f=a.toFixed(u),l=new p(t,s.start,t,s.end);this.session.replace(l,f),this.moveCursorTo(t,Math.max(s.start+1,n+f.length-s.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[[\"first\",\"last\"],[\"true\",\"false\"],[\"yes\",\"no\"],[\"width\",\"height\"],[\"top\",\"bottom\"],[\"right\",\"left\"],[\"on\",\"off\"],[\"x\",\"y\"],[\"get\",\"set\"],[\"max\",\"min\"],[\"horizontal\",\"vertical\"],[\"show\",\"hide\"],[\"add\",\"remove\"],[\"up\",\"down\"],[\"before\",\"after\"],[\"even\",\"odd\"],[\"in\",\"out\"],[\"inside\",\"outside\"],[\"next\",\"previous\"],[\"increase\",\"decrease\"],[\"attach\",\"detach\"],[\"&&\",\"||\"],[\"==\",\"!=\"]],this.toggleWord=function(){var e=this.selection.getCursor().row,t=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),r=this.selection.getWordRange().start.column,i=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,\"$1 \").split(/\\s/),o=t-r-1;o<0&&(o=0);var u=0,a=0,f=this;n.match(/[A-Za-z0-9_]+/)&&i.forEach(function(t,i){a=u+t.length,o>=u&&o<=a&&(n=t,f.selection.clearSelection(),f.moveCursorTo(e,u+r),f.selection.selectTo(e,a+r)),u=a});var l=this.$toggleWordPairs,c;for(var h=0;h<l.length;h++){var p=l[h];for(var d=0;d<=1;d++){var v=+!d,m=n.match(new RegExp(\"^\\\\s?_?(\"+s.escapeRegExp(p[d])+\")\\\\s?$\",\"i\"));if(m){var g=n.match(new RegExp(\"([_]|^|\\\\s)(\"+s.escapeRegExp(m[1])+\")($|\\\\s)\",\"g\"));g&&(c=n.replace(new RegExp(s.escapeRegExp(p[d]),\"i\"),function(e){var t=p[v];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+p[v].charAt(0).toUpperCase()+t.substr(1)),t}),this.insert(c),c=\"\")}}}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),r=e.isBackwards();if(n.isEmpty()){var i=n.start.row;t.duplicateLines(i,i)}else{var s=r?n.start:n.end,o=t.insert(s,t.getTextRange(n),!1);n.start=s,n.end=o,e.setSelectionRange(n,r)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,r,i=this.selection;if(!i.inMultiSelectMode||this.inVirtualSelectionMode){var s=i.toOrientedRange();n=this.$getSelectedRows(s),r=this.session.$moveLines(n.first,n.last,t?0:e),t&&e==-1&&(r=0),s.moveBy(r,0),i.fromOrientedRange(s)}else{var o=i.rangeList.ranges;i.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;var u=0,a=0,f=o.length;for(var l=0;l<f;l++){var c=l;o[l].moveBy(u,0),n=this.$getSelectedRows(o[l]);var h=n.first,p=n.last;while(++l<f){a&&o[l].moveBy(a,0);var d=this.$getSelectedRows(o[l]);if(t&&d.first!=p)break;if(!t&&d.first>p+1)break;p=d.last}l--,u=this.session.$moveLines(h,p,t?0:e),t&&e==-1&&(c=l+1);while(c<=l)o[c].moveBy(u,0),c++;t||(u=0),a+=u}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,i=e*Math.floor(r.height/r.lineHeight);t===!0?this.selection.$moveSelection(function(){this.moveCursorBy(i,0)}):t===!1&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection());var s=n.scrollTop;n.scrollBy(0,i*r.lineHeight),t!=null&&n.scrollCursorIntoView(null,.5),n.animateScrolling(s)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new y(this.session,n.row,n.column),i=r.getCurrentToken(),s=i||r.stepForward();if(!s)return;var o,u=!1,a={},f=n.column-s.start,l,c={\")\":\"(\",\"(\":\"(\",\"]\":\"[\",\"[\":\"[\",\"{\":\"{\",\"}\":\"{\"};do{if(s.value.match(/[{}()\\[\\]]/g))for(;f<s.value.length&&!u;f++){if(!c[s.value[f]])continue;l=c[s.value[f]]+\".\"+s.type.replace(\"rparen\",\"lparen\"),isNaN(a[l])&&(a[l]=0);switch(s.value[f]){case\"(\":case\"[\":case\"{\":a[l]++;break;case\")\":case\"]\":case\"}\":a[l]--,a[l]===-1&&(o=\"bracket\",u=!0)}}else s.type.indexOf(\"tag-name\")!==-1&&(isNaN(a[s.value])&&(a[s.value]=0),i.value===\"<\"?a[s.value]++:i.value===\"</\"&&a[s.value]--,a[s.value]===-1&&(o=\"tag\",u=!0));u||(i=s,s=r.stepForward(),f=0)}while(s&&!u);if(!o)return;var h,d;if(o===\"bracket\"){h=this.session.getBracketRange(n);if(!h){h=new p(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+f-1,r.getCurrentTokenRow(),r.getCurrentTokenColumn()+f-1),d=h.start;if(t||d.row===n.row&&Math.abs(d.column-n.column)<2)h=this.session.getBracketRange(d)}}else if(o===\"tag\"){if(!s||s.type.indexOf(\"tag-name\")===-1)return;var v=s.value;h=new p(r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2,r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2);if(h.compare(n.row,n.column)===0){u=!1;do s=i,i=r.stepBackward(),i&&(i.type.indexOf(\"tag-close\")!==-1&&h.setEnd(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+1),s.value===v&&s.type.indexOf(\"tag-name\")!==-1&&(i.value===\"<\"?a[v]++:i.value===\"</\"&&a[v]--,a[v]===0&&(u=!0)));while(i&&!u)}s&&s.type.indexOf(\"tag-name\")&&(d=h.start,d.row==n.row&&Math.abs(d.column-n.column)<2&&(d=h.end))}d=h&&h.cursor||d,d&&(e?h&&t?this.selection.setRange(h):h&&h.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(d.row,d.column):this.selection.moveTo(d.row,d.column))},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(!this.selection.isEmpty()){var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}else{e=e||1;while(e--)this.selection.moveCursorLeft()}this.clearSelection()},this.navigateRight=function(e){if(!this.selection.isEmpty()){var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}else{e=e||1;while(e--)this.selection.moveCursorRight()}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),r=0;return n?(this.$tryReplace(n,e)&&(r=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end),r):r},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),r=0;if(!n.length)return r;var i=this.getSelectionRange();this.selection.moveTo(0,0);for(var s=n.length-1;s>=0;--s)this.$tryReplace(n[s],e)&&r++;return this.selection.setSelectionRange(i),r},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return t=this.$search.replace(n,t),t!==null?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),typeof e==\"string\"||e instanceof RegExp?t.needle=e:typeof e==\"object\"&&r.mixin(t,e);var i=this.selection.getRange();t.needle==null&&(e=this.session.getTextRange(i)||this.$search.$options.needle,e||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var s=this.$search.find(this.session);if(t.preventScroll)return s;if(s)return this.revealRange(s,n),s;t.backwards?i.start=i.end:i.end=i.start,this.selection.setRange(i)},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),t!==!1&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(e){e.destroy()}),this.$toDestroy=null),this.renderer.destroy(),this._signal(\"destroy\",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){if(!e)return;var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement(\"div\"));var i=this.$scrollAnchor;i.style.cssText=\"position:absolute\",this.container.insertBefore(i,this.container.firstChild);var s=this.on(\"changeSelection\",function(){r=!0}),o=this.renderer.on(\"beforeRender\",function(){r&&(t=n.renderer.container.getBoundingClientRect())}),u=this.renderer.on(\"afterRender\",function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,s=e.$cursorLayer.$pixelPos,o=e.layerConfig,u=s.top-o.offset;s.top>=0&&u+t.top<0?r=!0:s.top<o.height&&s.top+t.top+o.lineHeight>window.innerHeight?r=!1:r=null,r!=null&&(i.style.top=u+\"px\",i.style.left=s.left+\"px\",i.style.height=o.lineHeight+\"px\",i.scrollIntoView(r)),r=t=null}});this.setAutoScrollEditorIntoView=function(e){if(e)return;delete this.setAutoScrollEditorIntoView,this.off(\"changeSelection\",s),this.renderer.off(\"afterRender\",u),this.renderer.off(\"beforeRender\",o)}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||\"ace\",t=this.renderer.$cursorLayer;if(!t)return;t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&e!=\"wide\",i.setCssClass(t.element,\"ace_slim-cursors\",/slim/.test(e))},this.prompt=function(e,t,n){var r=this;g.loadModule(\"./ext/prompt\",function(i){i.prompt(r,e,t,n)})}}.call(w.prototype),g.defineOptions(w.prototype,\"editor\",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal(\"changeSelectionStyle\",{data:e})},initialValue:\"line\"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:[\"ace\",\"slim\",\"smooth\",\"wide\"],initialValue:\"ace\"},mergeUndoDeltas:{values:[!1,!0,\"always\"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?E.attach(this):E.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?E.attach(this):E.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off(\"afterRender\",this.$updatePlaceholder),i.removeCssClass(this.container,\"ace_hasPlaceholder\"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!e&&!this.renderer.placeholderNode){this.renderer.on(\"afterRender\",this.$updatePlaceholder),i.addCssClass(this.container,\"ace_hasPlaceholder\");var t=i.createElement(\"div\");t.className=\"ace_placeholder\",t.textContent=this.$placeholder||\"\",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||\"\")}.bind(this),this.on(\"input\",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:\"renderer\",vScrollBarAlwaysVisible:\"renderer\",highlightGutterLine:\"renderer\",animatedScroll:\"renderer\",showInvisibles:\"renderer\",showPrintMargin:\"renderer\",printMarginColumn:\"renderer\",printMargin:\"renderer\",fadeFoldWidgets:\"renderer\",showFoldWidgets:\"renderer\",displayIndentGuides:\"renderer\",showGutter:\"renderer\",fontSize:\"renderer\",fontFamily:\"renderer\",maxLines:\"renderer\",minLines:\"renderer\",scrollPastEnd:\"renderer\",fixedWidthGutter:\"renderer\",theme:\"renderer\",hasCssTransforms:\"renderer\",maxPixelHeight:\"renderer\",useTextareaForIME:\"renderer\",scrollSpeed:\"$mouseHandler\",dragDelay:\"$mouseHandler\",dragEnabled:\"$mouseHandler\",focusTimeout:\"$mouseHandler\",tooltipFollowsMouse:\"$mouseHandler\",firstLineNumber:\"session\",overwrite:\"session\",newLineMode:\"session\",useWorker:\"session\",useSoftTabs:\"session\",navigateWithinSoftTabs:\"session\",tabSize:\"session\",wrap:\"session\",indentedSoftWrap:\"session\",foldStyle:\"session\",mode:\"session\"});var E={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?\"\\u00b7\":\"\"))+\"\"},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on(\"changeSelection\",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off(\"changeSelection\",this.update),this.update(null,e)}};t.Editor=w}),define(\"ace/undomanager\",[\"require\",\"exports\",\"module\",\"ace/range\"],function(e,t,n){\"use strict\";function i(e,t){for(var n=t;n--;){var r=e[n];if(r&&!r[0].ignore){while(n<t-1){var i=d(e[n],e[n+1]);e[n]=i[0],e[n+1]=i[1],n++}return!0}}}function a(e){var t=e.action==\"insert\",n=e.start,r=e.end,i=(r.row-n.row)*(t?1:-1),s=(r.column-n.column)*(t?1:-1);t&&(r=n);for(var o in this.marks){var a=this.marks[o],f=u(a,n);if(f<0)continue;if(f===0&&t){if(a.bias!=1){a.bias==-1;continue}f=1}var l=t?f:u(a,r);if(l>0){a.row+=i,a.column+=a.row==r.row?s:0;continue}!t&&l<=0&&(a.row=n.row,a.column=n.column,l===0&&(a.bias=1))}}function f(e){return{row:e.row,column:e.column}}function l(e){return{start:f(e.start),end:f(e.end),action:e.action,lines:e.lines.slice()}}function c(e){e=e||this;if(Array.isArray(e))return e.map(c).join(\"\\n\");var t=\"\";e.action?(t=e.action==\"insert\"?\"+\":\"-\",t+=\"[\"+e.lines+\"]\"):e.value&&(Array.isArray(e.value)?t=e.value.map(h).join(\"\\n\"):t=h(e.value)),e.start&&(t+=h(e));if(e.id||e.rev)t+=\"\t(\"+(e.id||e.rev)+\")\";return t}function h(e){return e.start.row+\":\"+e.start.column+\"=>\"+e.end.row+\":\"+e.end.column}function p(e,t){var n=e.action==\"insert\",r=t.action==\"insert\";if(n&&r)if(o(t.start,e.end)>=0)m(t,e,-1);else{if(!(o(t.start,e.start)<=0))return null;m(e,t,1)}else if(n&&!r)if(o(t.start,e.end)>=0)m(t,e,-1);else{if(!(o(t.end,e.start)<=0))return null;m(e,t,-1)}else if(!n&&r)if(o(t.start,e.start)>=0)m(t,e,1);else{if(!(o(t.start,e.start)<=0))return null;m(e,t,1)}else if(!n&&!r)if(o(t.start,e.start)>=0)m(t,e,1);else{if(!(o(t.end,e.start)<=0))return null;m(e,t,-1)}return[t,e]}function d(e,t){for(var n=e.length;n--;)for(var r=0;r<t.length;r++)if(!p(e[n],t[r])){while(n<e.length){while(r--)p(t[r],e[n]);r=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}function v(e,t){var n=e.action==\"insert\",r=t.action==\"insert\";if(n&&r)o(e.start,t.start)<0?m(t,e,1):m(e,t,1);else if(n&&!r)o(e.start,t.end)>=0?m(e,t,-1):o(e.start,t.start)<=0?m(t,e,1):(m(e,s.fromPoints(t.start,e.start),-1),m(t,e,1));else if(!n&&r)o(t.start,e.end)>=0?m(t,e,-1):o(t.start,e.start)<=0?m(e,t,1):(m(t,s.fromPoints(e.start,t.start),-1),m(e,t,1));else if(!n&&!r)if(o(t.start,e.end)>=0)m(t,e,-1);else{if(!(o(t.end,e.start)<=0)){var i,u;return o(e.start,t.start)<0&&(i=e,e=y(e,t.start)),o(e.end,t.end)>0&&(u=y(e,t.end)),g(t.end,e.start,e.end,-1),u&&!i&&(e.lines=u.lines,e.start=u.start,e.end=u.end,u=e),[t,i,u].filter(Boolean)}m(e,t,-1)}return[t,e]}function m(e,t,n){g(e.start,t.start,t.end,n),g(e.end,t.start,t.end,n)}function g(e,t,n,r){e.row==(r==1?t:n).row&&(e.column+=r*(n.column-t.column)),e.row+=r*(n.row-t.row)}function y(e,t){var n=e.lines,r=e.end;e.end=f(t);var i=e.end.row-e.start.row,s=n.splice(i,n.length),o=i?t.column:t.column-e.start.column;n.push(s[0].substring(0,o)),s[0]=s[0].substr(o);var u={start:f(t),end:r,lines:s,action:e.action};return u}function b(e,t){t=l(t);for(var n=e.length;n--;){var r=e[n];for(var i=0;i<r.length;i++){var s=r[i],o=v(s,t);t=o[0],o.length!=2&&(o[2]?(r.splice(i+1,1,o[1],o[2]),i++):o[1]||(r.splice(i,1),i--))}r.length||e.splice(n,1)}return e}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];for(var i=0;i<r.length;i++)b(e,r[i])}}var r=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,n){if(this.$fromUndo)return;if(e==this.$lastDelta)return;this.$keepRedoStack||(this.$redoStack.length=0);if(t===!1||!this.lastDeltas)this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev;if(e.action==\"remove\"||e.action==\"insert\")this.$lastDelta=e;this.lastDeltas.push(e)},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){t==null&&(t=this.$rev+1);var n=this.$undoStack;for(var r=n.length;r--;){var i=n[r][0];if(i.id<=e)break;i.id<t&&(i.ignore=!0)}this.lastDeltas=null},this.getSelection=function(e,t){var n=this.selections;for(var r=n.length;r--;){var i=n[r];if(i.rev<e)return t&&(i=n[r+1]),i}},this.getRevision=function(){return this.$rev},this.getDeltas=function(e,t){t==null&&(t=this.$rev+1);var n=this.$undoStack,r=null,i=0;for(var s=n.length;s--;){var o=n[s][0];o.id<t&&!r&&(r=s+1);if(o.id<=e){i=s+1;break}}return n.slice(i,r)},this.getChangedRanges=function(e,t){t==null&&(t=this.$rev+1)},this.getChangedLines=function(e,t){t==null&&(t=this.$rev+1)},this.undo=function(e,t){this.lastDeltas=null;var n=this.$undoStack;if(!i(n,n.length))return;e||(e=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var r=n.pop(),s=null;return r&&(s=e.undoChanges(r,t),this.$redoStack.push(r),this.$syncRev()),this.$fromUndo=!1,s},this.redo=function(e,t){this.lastDeltas=null,e||(e=this.$session),this.$fromUndo=!0;if(this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);w(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(e){e[0].id=++this.$maxRev},this)}var r=this.$redoStack.pop(),i=null;return r&&(i=e.redoChanges(r,t),this.$undoStack.push(r),this.$syncRev()),this.$fromUndo=!1,i},this.$syncRev=function(){var e=this.$undoStack,t=e[e.length-1],n=t&&t[0].id||0;this.$redoStackBaseRev=n,this.$rev=n},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return this.$undoStack.length>0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){e==undefined&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?c(e):c(this.$undoStack)+\"\\n---\\n\"+c(this.$redoStack)}}).call(r.prototype);var s=e(\"./range\").Range,o=s.comparePoints,u=s.comparePoints;t.UndoManager=r}),define(\"ace/layer/lines\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";var r=e(\"../lib/dom\"),i=function(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=this.canvasHeight*2+\"px\",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(e){r.translate(this.element,0,-(e.firstRowScreen*e.lineHeight%this.canvasHeight)-e.offset*this.$offsetCoefficient)},this.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},this.computeLineTop=function(e,t,n){var r=t.firstRowScreen*t.lineHeight,i=Math.floor(r/this.canvasHeight),s=n.documentToScreenRow(e,0)*t.lineHeight;return s-i*this.canvasHeight},this.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},this.getLength=function(){return this.cells.length},this.get=function(e){return this.cells[e]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);var t=r.createFragment(this.element);for(var n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},this.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);var t=r.createFragment(this.element);for(var n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement(\"afterbegin\",e.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(e){if(!e)return;e.element.remove(),this.cellCache.push(e)},this.createCell=function(e,t,n,i){var s=this.cellCache.pop();if(!s){var o=r.createElement(\"div\");i&&i(o),this.element.appendChild(o),s={element:o,text:\"\",row:e}}return s.row=e,s}}).call(i.prototype),t.Lines=i}),define(\"ace/layer/gutter\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\",\"ace/lib/oop\",\"ace/lib/lang\",\"ace/lib/event_emitter\",\"ace/layer/lines\"],function(e,t,n){\"use strict\";function f(e){var t=document.createTextNode(\"\");e.appendChild(t);var n=r.createElement(\"span\");return e.appendChild(n),e}var r=e(\"../lib/dom\"),i=e(\"../lib/oop\"),s=e(\"../lib/lang\"),o=e(\"../lib/event_emitter\").EventEmitter,u=e(\"./lines\").Lines,a=function(e){this.element=r.createElement(\"div\"),this.element.className=\"ace_layer ace_gutter-layer\",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new u(this.element),this.$lines.$offsetCoefficient=1};(function(){i.implement(this,o),this.setSession=function(e){this.session&&this.session.off(\"change\",this.$updateAnnotations),this.session=e,e&&e.on(\"change\",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn(\"deprecated use session.addGutterDecoration\"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn(\"deprecated use session.removeGutterDecoration\"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],r=n.row,i=this.$annotations[r];i||(i=this.$annotations[r]={text:[]});var o=n.text;o=o?s.escapeHTML(o):n.html||\"\",i.text.indexOf(o)===-1&&i.text.push(o);var u=n.type;u==\"error\"?i.className=\" ace_error\":u==\"warning\"&&i.className!=\" ace_error\"?i.className=\" ace_warning\":u==\"info\"&&!i.className&&(i.className=\" ace_info\")}},this.$updateAnnotations=function(e){if(!this.$annotations.length)return;var t=e.start.row,n=e.end.row-t;if(n!==0)if(e.action==\"remove\")this.$annotations.splice(t,n+1,null);else{var r=new Array(n+1);r.unshift(t,1),this.$annotations.splice.apply(this.$annotations,r)}},this.update=function(e){this.config=e;var t=this.session,n=e.firstRow,r=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1);this.oldLastRow=r,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();var i=t.getNextFoldLine(n),s=i?i.start.row:Infinity,o=null,u=-1,a=n;for(;;){a>s&&(a=i.end.row+1,i=t.getNextFoldLine(a,i),s=i?i.start.row:Infinity);if(a>r){while(this.$lines.getLength()>u+1)this.$lines.pop();break}o=this.$lines.get(++u),o?o.row=a:(o=this.$lines.createCell(a,e,this.session,f),this.$lines.push(o)),this.$renderCell(o,e,i,a),a++}this._signal(\"afterRender\"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,r=t.$firstLineNumber,i=this.$lines.last()?this.$lines.last().text:\"\";if(this.$fixedWidth||t.$useWrapMode)i=t.getLength()+r-1;var s=n?n.getWidth(t,i,e):i.toString().length*e.characterWidth,o=this.$padding||this.$computePadding();s+=o.left+o.right,s!==this.gutterWidth&&!isNaN(s)&&(this.gutterWidth=s,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+\"px\",this._signal(\"changeGutterWidth\",s))},this.$updateCursorRow=function(){if(!this.$highlightGutterLine)return;var e=this.session.selection.getCursor();if(this.$cursorRow===e.row)return;this.$cursorRow=e.row},this.updateLineHighlight=function(){if(!this.$highlightGutterLine)return;var e=this.session.selection.cursor.row;this.$cursorRow=e;if(this.$cursorCell&&this.$cursorCell.row==e)return;this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace(\"ace_gutter-active-line \",\"\"));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var r=t[n];if(r.row>=this.$cursorRow){if(r.row>this.$cursorRow){var i=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&i&&i.start.row==t[n-1].row))break;r=t[n-1]}r.element.className=\"ace_gutter-active-line \"+r.element.className,this.$cursorCell=r;break}}},this.scrollLines=function(e){var t=this.config;this.config=e,this.$updateCursorRow();if(this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),r=this.oldLastRow;this.oldLastRow=n;if(!t||r<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)this.$lines.shift();if(r>n)for(var i=this.session.getFoldedRowCount(n+1,r);i>0;i--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),n>r&&this.$lines.push(this.$renderLines(e,r+1,n)),this.updateLineHighlight(),this._signal(\"afterRender\"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){var r=[],i=t,s=this.session.getNextFoldLine(i),o=s?s.start.row:Infinity;for(;;){i>o&&(i=s.end.row+1,s=this.session.getNextFoldLine(i,s),o=s?s.start.row:Infinity);if(i>n)break;var u=this.$lines.createCell(i,e,this.session,f);this.$renderCell(u,e,s,i),r.push(u),i++}return r},this.$renderCell=function(e,t,n,i){var s=e.element,o=this.session,u=s.childNodes[0],a=s.childNodes[1],f=o.$firstLineNumber,l=o.$breakpoints,c=o.$decorations,h=o.gutterRenderer||this.$renderer,p=this.$showFoldWidgets&&o.foldWidgets,d=n?n.start.row:Number.MAX_VALUE,v=\"ace_gutter-cell \";this.$highlightGutterLine&&(i==this.$cursorRow||n&&i<this.$cursorRow&&i>=d&&this.$cursorRow<=n.end.row)&&(v+=\"ace_gutter-active-line \",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace(\"ace_gutter-active-line \",\"\")),this.$cursorCell=e)),l[i]&&(v+=l[i]),c[i]&&(v+=c[i]),this.$annotations[i]&&(v+=this.$annotations[i].className),s.className!=v&&(s.className=v);if(p){var m=p[i];m==null&&(m=p[i]=o.getFoldWidget(i))}if(m){var v=\"ace_fold-widget ace_\"+m;m==\"start\"&&i==d&&i<n.end.row?v+=\" ace_closed\":v+=\" ace_open\",a.className!=v&&(a.className=v);var g=t.lineHeight+\"px\";r.setStyle(a.style,\"height\",g),r.setStyle(a.style,\"display\",\"inline-block\")}else a&&r.setStyle(a.style,\"display\",\"none\");var y=(h?h.getText(o,i):i+f).toString();return y!==u.data&&(u.data=y),r.setStyle(e.element.style,\"height\",this.$lines.computeLineHeight(i,t,o)+\"px\"),r.setStyle(e.element.style,\"top\",this.$lines.computeLineTop(i,t,o)+\"px\"),e.text=y,e},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer=\"\",this.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},this.$showLineNumbers=!0,this.$renderer=\"\",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return\"\"}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?r.addCssClass(this.element,\"ace_folding-enabled\"):r.removeCssClass(this.element,\"ace_folding-enabled\"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=r.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();if(e.x<t.left+n.left)return\"markers\";if(this.$showFoldWidgets&&e.x>n.right-t.right)return\"foldWidgets\"}}).call(a.prototype),t.Gutter=a}),define(\"ace/layer/marker\",[\"require\",\"exports\",\"module\",\"ace/range\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";var r=e(\"../range\").Range,i=e(\"../lib/dom\"),s=function(e){this.element=i.createElement(\"div\"),this.element.className=\"ace_layer ace_marker-layer\",e.appendChild(this.element)};(function(){function e(e,t,n,r){return(e?1:0)|(t?2:0)|(n?4:0)|(r?8:0)}this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=this.i!=-1&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement(\"div\"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(!e)return;this.config=e,this.i=0;var t;for(var n in this.markers){var r=this.markers[n];if(!r.range){r.update(t,this,this.session,e);continue}var i=r.range.clipRows(e.firstRow,e.lastRow);if(i.isEmpty())continue;i=i.toScreenRange(this.session);if(r.renderer){var s=this.$getTop(i.start.row,e),o=this.$padding+i.start.column*e.characterWidth;r.renderer(t,i,o,s,e)}else r.type==\"fullLine\"?this.drawFullLineMarker(t,i,r.clazz,e):r.type==\"screenLine\"?this.drawScreenLineMarker(t,i,r.clazz,e):i.isMultiLine()?r.type==\"text\"?this.drawTextMarker(t,i,r.clazz,e):this.drawMultiLineMarker(t,i,r.clazz,e):this.drawSingleLineMarker(t,i,r.clazz+\" ace_start\"+\" ace_br15\",e)}if(this.i!=-1)while(this.i<this.element.childElementCount)this.element.removeChild(this.element.lastChild)},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(t,n,i,s,o){var u=this.session,a=n.start.row,f=n.end.row,l=a,c=0,h=0,p=u.getScreenLastRowColumn(l),d=new r(l,n.start.column,l,h);for(;l<=f;l++)d.start.row=d.end.row=l,d.start.column=l==a?n.start.column:u.getRowWrapIndent(l),d.end.column=p,c=h,h=p,p=l+1<f?u.getScreenLastRowColumn(l+1):l==f?0:n.end.column,this.drawSingleLineMarker(t,d,i+(l==a?\" ace_start\":\"\")+\" ace_br\"+e(l==a||l==a+1&&n.start.column,c<h,h>p,l==f),s,l==f?0:1,o)},this.drawMultiLineMarker=function(e,t,n,r,i){var s=this.$padding,o=r.lineHeight,u=this.$getTop(t.start.row,r),a=s+t.start.column*r.characterWidth;i=i||\"\";if(this.session.$bidiHandler.isBidiRow(t.start.row)){var f=t.clone();f.end.row=f.start.row,f.end.column=this.session.getLine(f.start.row).length,this.drawBidiSingleLineMarker(e,f,n+\" ace_br1 ace_start\",r,null,i)}else this.elt(n+\" ace_br1 ace_start\",\"height:\"+o+\"px;\"+\"right:0;\"+\"top:\"+u+\"px;left:\"+a+\"px;\"+(i||\"\"));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var f=t.clone();f.start.row=f.end.row,f.start.column=0,this.drawBidiSingleLineMarker(e,f,n+\" ace_br12\",r,null,i)}else{u=this.$getTop(t.end.row,r);var l=t.end.column*r.characterWidth;this.elt(n+\" ace_br12\",\"height:\"+o+\"px;\"+\"width:\"+l+\"px;\"+\"top:\"+u+\"px;\"+\"left:\"+s+\"px;\"+(i||\"\"))}o=(t.end.row-t.start.row-1)*r.lineHeight;if(o<=0)return;u=this.$getTop(t.start.row+1,r);var c=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(c?\" ace_br\"+c:\"\"),\"height:\"+o+\"px;\"+\"right:0;\"+\"top:\"+u+\"px;\"+\"left:\"+s+\"px;\"+(i||\"\"))},this.drawSingleLineMarker=function(e,t,n,r,i,s){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,r,i,s);var o=r.lineHeight,u=(t.end.column+(i||0)-t.start.column)*r.characterWidth,a=this.$getTop(t.start.row,r),f=this.$padding+t.start.column*r.characterWidth;this.elt(n,\"height:\"+o+\"px;\"+\"width:\"+u+\"px;\"+\"top:\"+a+\"px;\"+\"left:\"+f+\"px;\"+(s||\"\"))},this.drawBidiSingleLineMarker=function(e,t,n,r,i,s){var o=r.lineHeight,u=this.$getTop(t.start.row,r),a=this.$padding,f=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);f.forEach(function(e){this.elt(n,\"height:\"+o+\"px;\"+\"width:\"+e.width+(i||0)+\"px;\"+\"top:\"+u+\"px;\"+\"left:\"+(a+e.left)+\"px;\"+(s||\"\"))},this)},this.drawFullLineMarker=function(e,t,n,r,i){var s=this.$getTop(t.start.row,r),o=r.lineHeight;t.start.row!=t.end.row&&(o+=this.$getTop(t.end.row,r)-s),this.elt(n,\"height:\"+o+\"px;\"+\"top:\"+s+\"px;\"+\"left:0;right:0;\"+(i||\"\"))},this.drawScreenLineMarker=function(e,t,n,r,i){var s=this.$getTop(t.start.row,r),o=r.lineHeight;this.elt(n,\"height:\"+o+\"px;\"+\"top:\"+s+\"px;\"+\"left:0;right:0;\"+(i||\"\"))}}).call(s.prototype),t.Marker=s}),define(\"ace/layer/text\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/dom\",\"ace/lib/lang\",\"ace/layer/lines\",\"ace/lib/event_emitter\"],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"../lib/dom\"),s=e(\"../lib/lang\"),o=e(\"./lines\").Lines,u=e(\"../lib/event_emitter\").EventEmitter,a=function(e){this.dom=i,this.element=this.dom.createElement(\"div\"),this.element.className=\"ace_layer ace_text-layer\",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new o(this.element)};(function(){r.implement(this,u),this.EOF_CHAR=\"\\u00b6\",this.EOL_CHAR_LF=\"\\u00ac\",this.EOL_CHAR_CRLF=\"\\u00a4\",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR=\"\\u2014\",this.SPACE_CHAR=\"\\u00b7\",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t=e.getNewLineCharacter()==\"\\n\"&&e.getNewLineMode()!=\"windows\",n=t?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=n)return this.EOL_CHAR=n,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin=\"0 \"+e+\"px\"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on(\"changeCharacterSize\",function(e){this._signal(\"changeCharacterSize\",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles==e?!1:(this.showInvisibles=e,typeof e==\"string\"?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides==e?!1:(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;var t=this.$tabStrings=[0];for(var n=1;n<e+1;n++)if(this.showTabs){var r=this.dom.createElement(\"span\");r.className=\"ace_invisible ace_invisible_tab\",r.textContent=s.stringRepeat(this.TAB_CHAR,n),t.push(r)}else t.push(this.dom.createTextNode(s.stringRepeat(\" \",n),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\\s\\S| \\t|\\t |\\s$/;var i=\"ace_indent-guide\",o=this.showSpaces?\" ace_invisible ace_invisible_space\":\"\",u=this.showSpaces?s.stringRepeat(this.SPACE_CHAR,this.tabSize):s.stringRepeat(\" \",this.tabSize),a=this.showTabs?\" ace_invisible ace_invisible_tab\":\"\",f=this.showTabs?s.stringRepeat(this.TAB_CHAR,this.tabSize):u,r=this.dom.createElement(\"span\");r.className=i+o,r.textContent=u,this.$tabStrings[\" \"]=r;var r=this.dom.createElement(\"span\");r.className=i+a,r.textContent=f,this.$tabStrings[\"\t\"]=r}},this.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;var r=Math.max(t,e.firstRow),i=Math.min(n,e.lastRow),s=this.element.childNodes,o=0;for(var u=e.firstRow;u<r;u++){var a=this.session.getFoldLine(u);if(a){if(a.containsRow(r)){r=a.start.row;break}u=a.end.row}o++}var f=!1,u=r,a=this.session.getNextFoldLine(u),l=a?a.start.row:Infinity;for(;;){u>l&&(u=a.end.row+1,a=this.session.getNextFoldLine(u,a),l=a?a.start.row:Infinity);if(u>i)break;var c=s[o++];if(c){this.dom.removeChildren(c),this.$renderLine(c,u,u==l?a:!1),f&&(c.style.top=this.$lines.computeLineTop(u,e,this.session)+\"px\");var h=e.lineHeight*this.session.getRowLength(u)+\"px\";c.style.height!=h&&(f=!0,c.style.height=h)}u++}if(f)while(o<this.$lines.cells.length){var p=this.$lines.cells[o++];p.element.style.top=this.$lines.computeLineTop(p.row,e,this.session)+\"px\"}},this.scrollLines=function(e){var t=this.config;this.config=e;if(this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,r=t?t.lastRow:-1;if(!t||r<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)this.$lines.shift();if(t.lastRow>e.lastRow)for(var i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,n){var r=[],s=t,o=this.session.getNextFoldLine(s),u=o?o.start.row:Infinity;for(;;){s>u&&(s=o.end.row+1,o=this.session.getNextFoldLine(s,o),u=o?o.start.row:Infinity);if(s>n)break;var a=this.$lines.createCell(s,e,this.session),f=a.element;this.dom.removeChildren(f),i.setStyle(f.style,\"height\",this.$lines.computeLineHeight(s,e,this.session)+\"px\"),i.setStyle(f.style,\"top\",this.$lines.computeLineTop(s,e,this.session)+\"px\"),this.$renderLine(f,s,s==u?o:!1),this.$useLineGroups()?f.className=\"ace_line_group\":f.className=\"ace_line\",r.push(a),s++}return r},this.update=function(e){this.$lines.moveContainer(e),this.config=e;var t=e.firstRow,n=e.lastRow,r=this.$lines;while(r.getLength())r.pop();r.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,r){var i=this,o=/(\\t)|( +)|([\\x00-\\x1f\\x80-\\xa0\\xad\\u1680\\u180E\\u2000-\\u200f\\u2028\\u2029\\u202F\\u205F\\uFEFF\\uFFF9-\\uFFFC]+)|(\\u3000)|([\\u1100-\\u115F\\u11A3-\\u11A7\\u11FA-\\u11FF\\u2329-\\u232A\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFB\\u3001-\\u303E\\u3041-\\u3096\\u3099-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u3190-\\u31BA\\u31C0-\\u31E3\\u31F0-\\u321E\\u3220-\\u3247\\u3250-\\u32FE\\u3300-\\u4DBF\\u4E00-\\uA48C\\uA490-\\uA4C6\\uA960-\\uA97C\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFAFF\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE66\\uFE68-\\uFE6B\\uFF01-\\uFF60\\uFFE0-\\uFFE6]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF])/g,u=this.dom.createFragment(this.element),a,f=0;while(a=o.exec(r)){var l=a[1],c=a[2],h=a[3],p=a[4],d=a[5];if(!i.showSpaces&&c)continue;var v=f!=a.index?r.slice(f,a.index):\"\";f=a.index+a[0].length,v&&u.appendChild(this.dom.createTextNode(v,this.element));if(l){var m=i.session.getScreenTabSize(t+a.index);u.appendChild(i.$tabStrings[m].cloneNode(!0)),t+=m-1}else if(c)if(i.showSpaces){var g=this.dom.createElement(\"span\");g.className=\"ace_invisible ace_invisible_space\",g.textContent=s.stringRepeat(i.SPACE_CHAR,c.length),u.appendChild(g)}else u.appendChild(this.com.createTextNode(c,this.element));else if(h){var g=this.dom.createElement(\"span\");g.className=\"ace_invisible ace_invisible_space ace_invalid\",g.textContent=s.stringRepeat(i.SPACE_CHAR,h.length),u.appendChild(g)}else if(p){t+=1;var g=this.dom.createElement(\"span\");g.style.width=i.config.characterWidth*2+\"px\",g.className=i.showSpaces?\"ace_cjk ace_invisible ace_invisible_space\":\"ace_cjk\",g.textContent=i.showSpaces?i.SPACE_CHAR:p,u.appendChild(g)}else if(d){t+=1;var g=this.dom.createElement(\"span\");g.style.width=i.config.characterWidth*2+\"px\",g.className=\"ace_cjk\",g.textContent=d,u.appendChild(g)}}u.appendChild(this.dom.createTextNode(f?r.slice(f):r,this.element));if(!this.$textToken[n.type]){var y=\"ace_\"+n.type.replace(/\\./g,\" ace_\"),g=this.dom.createElement(\"span\");n.type==\"fold\"&&(g.style.width=n.value.length*this.config.characterWidth+\"px\"),g.className=y,g.appendChild(u),e.appendChild(g)}else e.appendChild(u);return t+r.length},this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(r<=0||r>=n)return t;if(t[0]==\" \"){r-=r%this.tabSize;var i=r/this.tabSize;for(var s=0;s<i;s++)e.appendChild(this.$tabStrings[\" \"].cloneNode(!0));return t.substr(r)}if(t[0]==\"\t\"){for(var s=0;s<r;s++)e.appendChild(this.$tabStrings[\"\t\"].cloneNode(!0));return t.substr(r)}return t},this.$createLineElement=function(e){var t=this.dom.createElement(\"div\");return t.className=\"ace_line\",t.style.height=this.config.lineHeight+\"px\",t},this.$renderWrappedLine=function(e,t,n){var r=0,i=0,o=n[0],u=0,a=this.$createLineElement();e.appendChild(a);for(var f=0;f<t.length;f++){var l=t[f],c=l.value;if(f==0&&this.displayIndentGuides){r=c.length,c=this.renderIndentGuide(a,c,o);if(!c)continue;r-=c.length}if(r+c.length<o)u=this.$renderToken(a,u,l,c),r+=c.length;else{while(r+c.length>=o)u=this.$renderToken(a,u,l,c.substring(0,o-r)),c=c.substring(o-r),r=o,a=this.$createLineElement(),e.appendChild(a),a.appendChild(this.dom.createTextNode(s.stringRepeat(\"\\u00a0\",n.indent),this.element)),i++,u=0,o=n[i]||Number.MAX_VALUE;c.length!=0&&(r+=c.length,u=this.$renderToken(a,u,l,c))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(a,u,null,\"\",!0)},this.$renderSimpleLine=function(e,t){var n=0,r=t[0],i=r.value;this.displayIndentGuides&&(i=this.renderIndentGuide(e,i)),i&&(n=this.$renderToken(e,n,r,i));for(var s=1;s<t.length;s++){r=t[s],i=r.value;if(n+i.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,r,i);n=this.$renderToken(e,n,r,i)}},this.$renderOverflowMessage=function(e,t,n,r,i){n&&this.$renderToken(e,t,n,r.slice(0,this.MAX_LINE_LENGTH-t));var s=this.dom.createElement(\"span\");s.className=\"ace_inline_button ace_keyword ace_toggle_wrap\",s.textContent=i?\"<hide>\":\"<click to see more...>\",e.appendChild(s)},this.$renderLine=function(e,t,n){!n&&n!=0&&(n=this.session.getFoldLine(t));if(n)var r=this.$getFoldLineTokens(t,n);else var r=this.session.getTokens(t);var i=e;if(r.length){var s=this.session.getRowSplitData(t);if(s&&s.length){this.$renderWrappedLine(e,r,s);var i=e.lastChild}else{var i=e;this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i)),this.$renderSimpleLine(i,r)}}else this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i));if(this.showEOL&&i){n&&(t=n.end.row);var o=this.dom.createElement(\"span\");o.className=\"ace_invisible ace_invisible_eol\",o.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,i.appendChild(o)}},this.$getFoldLineTokens=function(e,t){function i(e,t,n){var i=0,s=0;while(s+e[i].value.length<t){s+=e[i].value.length,i++;if(i==e.length)return}if(s!=t){var o=e[i].value.substring(t-s);o.length>n-t&&(o=o.substring(0,n-t)),r.push({type:e[i].type,value:o}),s=t+o.length,i+=1}while(s<n&&i<e.length){var o=e[i].value;o.length+s>n?r.push({type:e[i].type,value:o.substring(0,n-s)}):r.push(e[i]),s+=o.length,i+=1}}var n=this.session,r=[],s=n.getTokens(e);return t.walk(function(e,t,o,u,a){e!=null?r.push({type:\"fold\",value:e}):(a&&(s=n.getTokens(t)),s.length&&i(s,u,o))},t.end.row,this.session.getLine(t.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(a.prototype),t.Text=a}),define(\"ace/layer/cursor\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";var r=e(\"../lib/dom\"),i=function(e){this.element=r.createElement(\"div\"),this.element.className=\"ace_layer ace_cursor-layer\",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,\"ace_hidden-cursors\"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){var t=this.cursors;for(var n=t.length;n--;)r.setStyle(t[n].style,\"opacity\",e?\"\":\"0\")},this.$startCssAnimation=function(){var e=this.cursors;for(var t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+\"ms\";setTimeout(function(){r.addCssClass(this.element,\"ace_animate-blinking\")}.bind(this))},this.$stopCssAnimation=function(){r.removeCssClass(this.element,\"ace_animate-blinking\")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,r.setCssClass(this.element,\"ace_smooth-blinking\",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=r.createElement(\"div\");return e.className=\"ace_cursor\",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,\"ace_hidden-cursors\"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,\"ace_hidden-cursors\"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&r.removeCssClass(this.element,\"ace_smooth-blinking\"),e(!0);if(!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,\"ace_smooth-blinking\")}.bind(this));if(r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout(function(){e(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){e(!0),t()},this.blinkInterval),t()}},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e),r=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),i=(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:i}},this.isCursorInView=function(e,t){return e.top>=0&&e.top<t.maxHeight},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,i=0;if(t===undefined||t.length===0)t=[{cursor:null}];for(var n=0,s=t.length;n<s;n++){var o=this.getPixelPosition(t[n].cursor,!0);if((o.top>e.height+e.offset||o.top<0)&&n>1)continue;var u=this.cursors[i++]||this.addCursor(),a=u.style;this.drawCursor?this.drawCursor(u,o,e,t[n],this.session):this.isCursorInView(o,e)?(r.setStyle(a,\"display\",\"block\"),r.translate(u,o.left,o.top),r.setStyle(a,\"width\",Math.round(e.characterWidth)+\"px\"),r.setStyle(a,\"height\",e.lineHeight+\"px\")):r.setStyle(a,\"display\",\"none\")}while(this.cursors.length>i)this.removeCursor();var f=this.session.getOverwrite();this.$setOverwrite(f),this.$pixelPos=o,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,\"ace_overwrite-cursors\"):r.removeCssClass(this.element,\"ace_overwrite-cursors\"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(i.prototype),t.Cursor=i}),define(\"ace/scrollbar\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/dom\",\"ace/lib/event\",\"ace/lib/event_emitter\"],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/dom\"),s=e(\"./lib/event\"),o=e(\"./lib/event_emitter\").EventEmitter,u=32768,a=function(e){this.element=i.createElement(\"div\"),this.element.className=\"ace_scrollbar ace_scrollbar\"+this.classSuffix,this.inner=i.createElement(\"div\"),this.inner.className=\"ace_scrollbar-inner\",this.inner.textContent=\"\\u00a0\",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,\"scroll\",this.onScroll.bind(this)),s.addListener(this.element,\"mousedown\",s.preventDefault)};(function(){r.implement(this,o),this.setVisible=function(e){this.element.style.display=e?\"\":\"none\",this.isVisible=e,this.coeff=1}}).call(a.prototype);var f=function(e,t){a.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=i.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+\"px\",this.$minWidth=0};r.inherits(f,a),function(){this.classSuffix=\"-v\",this.onScroll=function(){if(!this.skipEvent){this.scrollTop=this.element.scrollTop;if(this.coeff!=1){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit(\"scroll\",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+\"px\"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>u?(this.coeff=u/e,e=u):this.coeff!=1&&(this.coeff=1),this.inner.style.height=e+\"px\"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(f.prototype);var l=function(e,t){a.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+\"px\"};r.inherits(l,a),function(){this.classSuffix=\"-h\",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit(\"scroll\",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+\"px\"},this.setInnerWidth=function(e){this.inner.style.width=e+\"px\"},this.setScrollWidth=function(e){this.inner.style.width=e+\"px\"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(l.prototype),t.ScrollBar=f,t.ScrollBarV=f,t.ScrollBarH=l,t.VScrollBar=f,t.HScrollBar=l}),define(\"ace/renderloop\",[\"require\",\"exports\",\"module\",\"ace/lib/event\"],function(e,t,n){\"use strict\";var r=e(\"./lib/event\"),i=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;t&&(r.blockIdle(100),n.changes=0,n.onRender(t));if(n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(i.prototype),t.RenderLoop=i}),define(\"ace/layer/font_metrics\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/dom\",\"ace/lib/lang\",\"ace/lib/event\",\"ace/lib/useragent\",\"ace/lib/event_emitter\"],function(e,t,n){var r=e(\"../lib/oop\"),i=e(\"../lib/dom\"),s=e(\"../lib/lang\"),o=e(\"../lib/event\"),u=e(\"../lib/useragent\"),a=e(\"../lib/event_emitter\").EventEmitter,f=256,l=typeof ResizeObserver==\"function\",c=200,h=t.FontMetrics=function(e){this.el=i.createElement(\"div\"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement(\"div\"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement(\"div\"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=s.stringRepeat(\"X\",f),this.$characterSize={width:0,height:0},l?this.$addObserver():this.checkForSizeChanges()};(function(){r.implement(this,a),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height=\"auto\",e.left=e.top=\"0px\",e.visibility=\"hidden\",e.position=\"absolute\",e.whiteSpace=\"pre\",u.isIE<8?e[\"font-family\"]=\"inherit\":e.font=\"inherit\",e.overflow=t?\"hidden\":\"visible\"},this.checkForSizeChanges=function(e){e===undefined&&(e=this.$measureSizes());if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight=\"bold\";var t=this.$measureSizes();this.$measureNode.style.fontWeight=\"\",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit(\"changeCharacterSize\",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver(function(t){e.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=o.onIdle(function t(){e.checkForSizeChanges(),o.onIdle(t,500)},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/f};return t.width===0||t.height===0?null:t},this.$measureCharWidth=function(e){this.$main.textContent=s.stringRepeat(e,f);var t=this.$main.getBoundingClientRect();return t.width/f},this.getCharacterWidth=function(e){var t=this.charSizes[e];return t===undefined&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return[\"div\",{style:\"position: absolute;top:\"+e+\"px;left:\"+t+\"px;\"}]};this.els=i.buildDom([e(0,0),e(c,0),e(0,c),e(c,c)],this.el)},this.transformCoordinates=function(e,t){function r(e,t,n){var r=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/r,(+e[1]*n[0]-e[0]*n[1])/r]}function i(e,t){return[e[0]-t[0],e[1]-t[1]]}function s(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e*t[0],e*t[1]]}function u(e){var t=e.getBoundingClientRect();return[t.left,t.top]}if(e){var n=this.$getZoom(this.el);e=o(1/n,e)}this.els||this.$initTransformMeasureNodes();var a=u(this.els[0]),f=u(this.els[1]),l=u(this.els[2]),h=u(this.els[3]),p=r(i(h,f),i(h,l),i(s(f,l),s(h,a))),d=o(1+p[0],i(f,a)),v=o(1+p[1],i(l,a));if(t){var m=t,g=p[0]*m[0]/c+p[1]*m[1]/c+1,y=s(o(m[0],d),o(m[1],v));return s(o(1/g/c,y),a)}var b=i(e,a),w=r(i(d,o(p[0],b)),i(v,o(p[1],b)),b);return o(c,w)}}).call(h.prototype)}),define(\"ace/virtual_renderer\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/dom\",\"ace/config\",\"ace/layer/gutter\",\"ace/layer/marker\",\"ace/layer/text\",\"ace/layer/cursor\",\"ace/scrollbar\",\"ace/scrollbar\",\"ace/renderloop\",\"ace/layer/font_metrics\",\"ace/lib/event_emitter\",\"ace/lib/useragent\"],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/dom\"),s=e(\"./config\"),o=e(\"./layer/gutter\").Gutter,u=e(\"./layer/marker\").Marker,a=e(\"./layer/text\").Text,f=e(\"./layer/cursor\").Cursor,l=e(\"./scrollbar\").HScrollBar,c=e(\"./scrollbar\").VScrollBar,h=e(\"./renderloop\").RenderLoop,p=e(\"./layer/font_metrics\").FontMetrics,d=e(\"./lib/event_emitter\").EventEmitter,v='.ace_br1 {border-top-left-radius    : 3px;}.ace_br2 {border-top-right-radius   : 3px;}.ace_br3 {border-top-left-radius    : 3px; border-top-right-radius:    3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius    : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius   : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius    : 3px; border-bottom-left-radius:  3px;}.ace_br10{border-top-right-radius   : 3px; border-bottom-left-radius:  3px;}.ace_br11{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-left-radius:  3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br13{border-top-left-radius    : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br14{border-top-right-radius   : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br15{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \\'Monaco\\', \\'Menlo\\', \\'Ubuntu Mono\\', \\'Consolas\\', \\'source-code-pro\\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \\'\\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==\");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==\");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=\");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC\");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII=\"),url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=\");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII=\"),url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC\");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==\");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block;   }.ace_fold-widget.ace_end {background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==\");}.ace_fold-widget.ace_closed {background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==\");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC\");}.ace_dark .ace_fold-widget.ace_end {background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==\");}.ace_dark .ace_fold-widget.ace_closed {background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==\");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',m=e(\"./lib/useragent\"),g=m.isIE;i.importCssString(v,\"ace_editor.css\");var y=function(e,t){var n=this;this.container=e||i.createElement(\"div\"),i.addCssClass(this.container,\"ace_editor\"),i.HI_DPI&&i.addCssClass(this.container,\"ace_hidpi\"),this.setTheme(t),this.$gutter=i.createElement(\"div\"),this.$gutter.className=\"ace_gutter\",this.container.appendChild(this.$gutter),this.$gutter.setAttribute(\"aria-hidden\",!0),this.scroller=i.createElement(\"div\"),this.scroller.className=\"ace_scroller\",this.container.appendChild(this.scroller),this.content=i.createElement(\"div\"),this.content.className=\"ace_content\",this.scroller.appendChild(this.content),this.$gutterLayer=new o(this.$gutter),this.$gutterLayer.on(\"changeGutterWidth\",this.onGutterResize.bind(this)),this.$markerBack=new u(this.content);var r=this.$textLayer=new a(this.content);this.canvas=r.element,this.$markerFront=new u(this.content),this.$cursorLayer=new f(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new c(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.on(\"scroll\",function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)}),this.scrollBarH.on(\"scroll\",function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new p(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on(\"changeCharacterSize\",function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal(\"changeCharacterSize\",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!m.isIOS,this.$loop=new h(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),s.resetOptions(this),s._signal(\"renderer\",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,d),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle(\"ace_nobold\",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),i.setStyle(this.scroller.style,\"line-height\",this.lineHeight+\"px\")},this.setSession=function(e){this.session&&this.session.doc.off(\"changeNewLineMode\",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e);if(!e)return;this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on(\"changeNewLineMode\",this.onChangeNewLineMode)},this.updateLines=function(e,t,n){t===undefined&&(t=Infinity),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t};if(this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}if(this.$changedLines.firstRow>this.layerConfig.lastRow)return;this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,r){if(this.resizing>2)return;this.resizing>0?this.resizing++:this.resizing=e?1:0;var i=this.container;r||(r=i.clientHeight||i.scrollHeight),n||(n=i.clientWidth||i.scrollWidth);var s=this.$updateCachedSize(e,t,n,r);if(!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(s|this.$changes,!0):this.$loop.schedule(s|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null},this.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var s=0,o=this.$size,u={width:o.width,height:o.height,scrollerHeight:o.scrollerHeight,scrollerWidth:o.scrollerWidth};r&&(e||o.height!=r)&&(o.height=r,s|=this.CHANGE_SIZE,o.scrollerHeight=o.height,this.$horizScroll&&(o.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+\"px\",s|=this.CHANGE_SCROLL);if(n&&(e||o.width!=n)){s|=this.CHANGE_SIZE,o.width=n,t==null&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,i.setStyle(this.scrollBarH.element.style,\"left\",t+\"px\"),i.setStyle(this.scroller.style,\"left\",t+this.margin.left+\"px\"),o.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),i.setStyle(this.$gutter.style,\"left\",this.margin.left+\"px\");var a=this.scrollBarV.getWidth()+\"px\";i.setStyle(this.scrollBarH.element.style,\"right\",a),i.setStyle(this.scroller.style,\"right\",a),i.setStyle(this.scroller.style,\"bottom\",this.scrollBarH.getHeight());if(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)s|=this.CHANGE_FULL}return o.$dirty=!n||!r,s&&this._signal(\"resize\",u),s},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-this.$padding*2,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption(\"animatedScroll\",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption(\"showInvisibles\",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption(\"showInvisibles\")},this.getDisplayIndentGuides=function(){return this.getOption(\"displayIndentGuides\")},this.setDisplayIndentGuides=function(e){this.setOption(\"displayIndentGuides\",e)},this.setShowPrintMargin=function(e){this.setOption(\"showPrintMargin\",e)},this.getShowPrintMargin=function(){return this.getOption(\"showPrintMargin\")},this.setPrintMarginColumn=function(e){this.setOption(\"printMarginColumn\",e)},this.getPrintMarginColumn=function(){return this.getOption(\"printMarginColumn\")},this.getShowGutter=function(){return this.getOption(\"showGutter\")},this.setShowGutter=function(e){return this.setOption(\"showGutter\",e)},this.getFadeFoldWidgets=function(){return this.getOption(\"fadeFoldWidgets\")},this.setFadeFoldWidgets=function(e){this.setOption(\"fadeFoldWidgets\",e)},this.setHighlightGutterLine=function(e){this.setOption(\"highlightGutterLine\",e)},this.getHighlightGutterLine=function(){return this.getOption(\"highlightGutterLine\")},this.$updatePrintMargin=function(){if(!this.$showPrintMargin&&!this.$printMarginEl)return;if(!this.$printMarginEl){var e=i.createElement(\"div\");e.className=\"ace_layer ace_print-margin-layer\",this.$printMarginEl=i.createElement(\"div\"),this.$printMarginEl.className=\"ace_print-margin\",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+\"px\",t.visibility=this.$showPrintMargin?\"visible\":\"hidden\",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$isMousePressed)return;var e=this.textarea.style,t=this.$composition;if(!this.$keepTextAreaAtCursor&&!t){i.translate(this.textarea,-100,0);return}var n=this.$cursorLayer.$pixelPos;if(!n)return;t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var r=this.layerConfig,s=n.top,o=n.left;s-=r.offset;var u=t&&t.useTextareaForIME?this.lineHeight:g?0:1;if(s<0||s>r.height-u){i.translate(this.textarea,0,0);return}var a=1,f=this.$size.height-u;if(!t)s+=this.lineHeight;else if(t.useTextareaForIME){var l=this.textarea.value;a=this.characterWidth*this.session.$getStringScreenWidth(l)[0]}else s+=this.lineHeight+2;o-=this.scrollLeft,o>this.$size.scrollerWidth-a&&(o=this.$size.scrollerWidth-a),o+=this.gutterWidth+this.margin.left,i.setStyle(e,\"height\",u+\"px\"),i.setStyle(e,\"width\",a+\"px\"),i.translate(this.textarea,Math.min(o,this.$size.scrollerWidth-a),Math.min(s,f))},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow,n=this.session.documentToScreenRow(t,0)*e.lineHeight;return n-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,r){var i=this.scrollMargin;i.top=e|0,i.bottom=t|0,i.right=r|0,i.left=n|0,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},this.setMargin=function(e,t,n,r){var i=this.margin;i.top=e|0,i.bottom=t|0,i.right=r|0,i.left=n|0,i.v=i.top+i.bottom,i.h=i.left+i.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption(\"hScrollBarAlwaysVisible\",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption(\"vScrollBarAlwaysVisible\",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){this.$changes&&(e|=this.$changes,this.$changes=0);if(!this.session||!this.container.offsetWidth||this.$frozen||!e&&!t){this.$changes|=e;return}if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal(\"beforeRender\",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){e|=this.$computeLayerConfig()|this.$loop.clear();if(n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),i.translate(this.content,-this.scrollLeft,-n.offset);var s=n.width+2*this.$padding+\"px\",o=n.minHeight+\"px\";i.setStyle(this.content.style,\"width\",s),i.setStyle(this.content.style,\"height\",o)}e&this.CHANGE_H_SCROLL&&(i.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?\"ace_scroller\":\"ace_scroller ace_scroll-left\");if(e&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this._signal(\"afterRender\",e);return}if(e&this.CHANGE_SCROLL){this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this._signal(\"afterRender\",e);return}e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(n):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal(\"afterRender\",e)},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var r=n<=2*this.lineHeight,i=!r&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var s=this.container.clientWidth;this.container.style.height=n+\"px\",this.$updateCachedSize(!0,this.$gutterWidth,s,n),this.desiredHeight=n,this._signal(\"autosize\")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength(),i=r*this.lineHeight,s=this.$getLongestLine(),o=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-s-2*this.$padding<0),u=this.$horizScroll!==o;u&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var a=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var f=t.scrollerHeight+this.lineHeight,l=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=l;var c=this.scrollMargin;this.session.setScrollTop(Math.max(-c.top,Math.min(this.scrollTop,i-t.scrollerHeight+c.bottom))),this.session.setScrollLeft(Math.max(-c.left,Math.min(this.scrollLeft,s+2*this.$padding-t.scrollerWidth+c.right)));var h=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+l<0||this.scrollTop>c.top),p=a!==h;p&&(this.$vScroll=h,this.scrollBarV.setVisible(h));var d=this.scrollTop%this.lineHeight,v=Math.ceil(f/this.lineHeight)-1,m=Math.max(0,Math.round((this.scrollTop-d)/this.lineHeight)),g=m+v,y,b,w=this.lineHeight;m=e.screenToDocumentRow(m,0);var E=e.getFoldLine(m);E&&(m=E.start.row),y=e.documentToScreenRow(m,0),b=e.getRowLength(m)*w,g=Math.min(e.screenToDocumentRow(g,0),e.getLength()-1),f=t.scrollerHeight+e.getRowLength(g)*w+b,d=this.scrollTop-y*w;var S=0;if(this.layerConfig.width!=s||u)S=this.CHANGE_H_SCROLL;if(u||p)S|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal(\"scrollbarVisibilityChanged\"),p&&(s=this.$getLongestLine());return this.layerConfig={width:s,padding:this.$padding,firstRow:m,firstRowScreen:y,lastRow:g,lineHeight:w,characterWidth:this.characterWidth,minHeight:f,maxHeight:i,offset:d,gutterOffset:w?Math.max(0,Math.ceil((d+t.height-t.scrollerHeight)/w)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(s-this.$padding),S},this.$updateLines=function(){if(!this.$changedLines)return;var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(e>n.lastRow+1)return;if(t<n.firstRow)return;if(t===Infinity){this.$showGutter&&this.$gutterLayer.update(n),this.$textLayer.update(n);return}return this.$textLayer.updateLines(n,e,t),!0},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(this.$size.scrollerHeight===0)return;var r=this.$cursorLayer.getPixelPosition(e),i=r.left,s=r.top,o=n&&n.top||0,u=n&&n.bottom||0,a=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;a+o>s?(t&&a+o>s+this.lineHeight&&(s-=t*this.$size.scrollerHeight),s===0&&(s=-this.scrollMargin.top),this.session.setScrollTop(s)):a+this.$size.scrollerHeight-u<s+this.lineHeight&&(t&&a+this.$size.scrollerHeight-u<s-this.lineHeight&&(s+=t*this.$size.scrollerHeight),this.session.setScrollTop(s+this.lineHeight+u-this.$size.scrollerHeight));var f=this.scrollLeft;f>i?(i<this.$padding+2*this.layerConfig.characterWidth&&(i=-this.scrollMargin.left),this.session.setScrollLeft(i)):f+this.$size.scrollerWidth<i+this.characterWidth?this.session.setScrollLeft(Math.round(i+this.characterWidth-this.$size.scrollerWidth)):f<=this.$padding&&i-f<this.characterWidth&&this.session.setScrollLeft(0)},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){typeof e==\"number\"&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),r=this.$size.scrollerHeight-this.lineHeight,i=n.top-r*(t||0);return this.session.setScrollTop(i),i},this.STEPS=8,this.$calcSteps=function(e,t){var n=0,r=this.STEPS,i=[],s=function(e,t,n){return n*(Math.pow(e-1,3)+1)+t};for(n=0;n<r;++n)i.push(s(n/this.STEPS,e,t-e));return i},this.scrollToLine=function(e,t,n,r){var i=this.$cursorLayer.getPixelPosition({row:e,column:0}),s=i.top;t&&(s-=this.$size.scrollerHeight/2);var o=this.scrollTop;this.session.setScrollTop(s),n!==!1&&this.animateScrolling(o,r)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(!this.$animatedScroll)return;var r=this;if(e==n)return;if(this.$scrollAnimation){var i=this.$scrollAnimation.steps;if(i.length){e=i[0];if(e==n)return}}var s=r.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:s},clearInterval(this.$timer),r.session.setScrollTop(s.shift()),r.session.$scrollTop=n,this.$timer=setInterval(function(){if(!r.session)return clearInterval(r.$timer);s.length?(r.session.setScrollTop(s.shift()),r.session.$scrollTop=n):n!=null?(r.session.$scrollTop=-1,r.session.setScrollTop(n),n=null):(r.$timer=clearInterval(r.$timer),r.$scrollAnimation=null,t&&t())},10)},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){if(t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top)return!0;if(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom)return!0;if(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left)return!0;if(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,s=i/this.characterWidth,o=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),u=this.$blockCursor?Math.floor(s):Math.round(s);return{row:o,column:u,side:s-u>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,s=i/this.characterWidth,o=this.$blockCursor?Math.floor(s):Math.round(s),u=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(u,Math.max(o,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),i=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),s=r.row*this.lineHeight;return{pageX:n.left+i-this.scrollLeft,pageY:n.top+s-this.scrollTop}},this.visualizeFocus=function(){i.addCssClass(this.container,\"ace_focus\")},this.visualizeBlur=function(){i.removeCssClass(this.container,\"ace_focus\")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),e.useTextareaForIME==undefined&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(i.addCssClass(this.textarea,\"ace_composition\"),this.textarea.style.cssText=\"\",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display=\"none\"):e.markerId=this.session.addMarker(e.markerRange,\"ace_composition_marker\",\"text\")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,\"composition_placeholder\",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(!this.$composition)return;this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),i.removeCssClass(this.textarea,\"ace_composition\"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=\"\"},this.addToken=function(e,t,n,r){var i=this.session;i.bgTokenizer.lines[n]=null;var s={type:t,value:e},o=i.getTokens(n);if(r==null)o.push(s);else{var u=0;for(var a=0;a<o.length;a++){var f=o[a];u+=f.value.length;if(r<=u){var l=f.value.length-(u-r),c=f.value.slice(0,l),h=f.value.slice(l);o.splice(a,1,{type:f.type,value:c},s,{type:f.type,value:h});break}}}this.updateLines(n,n)},this.removeExtraToken=function(e,t){this.updateLines(e,e)},this.setTheme=function(e,t){function o(r){if(n.$themeId!=e)return t&&t();if(!r||!r.cssClass)throw new Error(\"couldn't load module \"+e+\" or it didn't call define\");r.$id&&(n.$themeId=r.$id),i.importCssString(r.cssText,r.cssClass,n.container),n.theme&&i.removeCssClass(n.container,n.theme.cssClass);var s=\"padding\"in r?r.padding:\"padding\"in(n.theme||{})?4:n.$padding;n.$padding&&s!=n.$padding&&n.setPadding(s),n.$theme=r.cssClass,n.theme=r,i.addCssClass(n.container,r.cssClass),i.setCssClass(n.container,\"ace_dark\",r.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent(\"themeLoaded\",{theme:r}),t&&t()}var n=this;this.$themeId=e,n._dispatchEvent(\"themeChange\",{theme:e});if(!e||typeof e==\"string\"){var r=e||this.$options.theme.initialValue;s.loadModule([\"theme\",r],o)}else o(e)},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){i.setCssClass(this.container,e,t!==!1)},this.unsetStyle=function(e){i.removeCssClass(this.container,e)},this.setCursorStyle=function(e){i.setStyle(this.scroller.style,\"cursor\",e)},this.setMouseCursor=function(e){i.setStyle(this.scroller.style,\"cursor\",e)},this.attachToShadowRoot=function(){i.importCssString(v,\"ace_editor.css\",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=\"\"}}).call(y.prototype),s.defineOptions(y.prototype,\"renderer\",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){typeof e==\"number\"&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?\"block\":\"none\",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){i.setCssClass(this.$gutter,\"ace_fade-fold-widgets\",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){typeof e==\"number\"&&(e+=\"px\"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0;if(this.$scrollPastEnd==e)return;this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:\"./theme/textmate\",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!m.isMobile&&!m.isIE}}),t.VirtualRenderer=y}),define(\"ace/worker/worker_client\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/net\",\"ace/lib/event_emitter\",\"ace/config\"],function(e,t,n){\"use strict\";function u(e){var t=\"importScripts('\"+i.qualifyURL(e)+\"');\";try{return new Blob([t],{type:\"application/javascript\"})}catch(n){var r=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,s=new r;return s.append(t),s.getBlob(\"application/javascript\")}}function a(e){if(typeof Worker==\"undefined\")return{postMessage:function(){},terminate:function(){}};if(o.get(\"loadWorkerFromBlob\")){var t=u(e),n=window.URL||window.webkitURL,r=n.createObjectURL(t);return new Worker(r)}return new Worker(e)}var r=e(\"../lib/oop\"),i=e(\"../lib/net\"),s=e(\"../lib/event_emitter\").EventEmitter,o=e(\"../config\"),f=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){r.implement(this,s),this.$createWorkerFromOldConfig=function(t,n,r,i,s){e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl);if(o.get(\"packaged\")||!e.toUrl)i=i||o.moduleUrl(n,\"worker\");else{var u=this.$normalizePath;i=i||u(e.toUrl(\"ace/worker/worker.js\",null,\"_\"));var f={};t.forEach(function(t){f[t]=u(e.toUrl(t,null,\"_\").replace(/(\\.js)?(\\?.*)?$/,\"\"))})}return this.$worker=a(i),s&&this.send(\"importScripts\",s),this.$worker.postMessage({init:!0,tlns:f,module:n,classname:r}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case\"event\":this._signal(t.name,{data:t.data});break;case\"call\":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case\"error\":this.reportError(t.data);break;case\"log\":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return i.qualifyURL(e)},this.terminate=function(){this._signal(\"terminate\",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off(\"change\",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var r=this.callbackId++;this.callbacks[r]=n,t.push(r)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker.postMessage({event:e,data:{data:t.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call(\"setValue\",[e.getValue()]),e.on(\"change\",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),e.action==\"insert\"?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;if(!e)return;this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call(\"setValue\",[this.$doc.getValue()]):this.emit(\"change\",{data:e})}}).call(f.prototype);var l=function(e,t,n){var r=null,i=!1,u=Object.create(s),a=[],l=new f({messageBuffer:a,terminate:function(){},postMessage:function(e){a.push(e);if(!r)return;i?setTimeout(c):c()}});l.setEmitSync=function(e){i=e};var c=function(){var e=a.shift();e.command?r[e.command].apply(r,e.args):e.event&&u._signal(e.event,e.data)};return u.postMessage=function(e){l.onMessage({data:e})},u.callback=function(e,t){this.postMessage({type:\"call\",id:t,data:e})},u.emit=function(e,t){this.postMessage({type:\"event\",name:e,data:t})},o.loadModule([\"worker\",t],function(e){r=new e[n](u);while(a.length)c()}),l};t.UIWorkerClient=l,t.WorkerClient=f,t.createWorker=a}),define(\"ace/placeholder\",[\"require\",\"exports\",\"module\",\"ace/range\",\"ace/lib/event_emitter\",\"ace/lib/oop\"],function(e,t,n){\"use strict\";var r=e(\"./range\").Range,i=e(\"./lib/event_emitter\").EventEmitter,s=e(\"./lib/oop\"),o=function(e,t,n,r,i,s){var o=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=s,this.$onUpdate=this.onUpdate.bind(this),this.doc.on(\"change\",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout(function(){o.onCursorChange()})},this.$pos=n;var u=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=u.length,this.setup(),e.selection.on(\"changeCursor\",this.$onCursorChange)};(function(){s.implement(this,i),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new r(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)}),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(this.othersActive)return;var e=this.session,t=this;this.othersActive=!0,this.others.forEach(function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)})},this.hideOtherMarkers=function(){if(!this.othersActive)return;this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row!==t.end.row)return;if(t.start.row!==this.pos.row)return;this.$updating=!0;var n=e.action===\"insert\"?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,s=t.start.column-this.pos.column;this.updateAnchors(e),i&&(this.length+=n);if(i&&!this.session.$fromUndo)if(e.action===\"insert\")for(var o=this.others.length-1;o>=0;o--){var u=this.others[o],a={row:u.row,column:u.column+s};this.doc.insertMergedLines(a,e.lines)}else if(e.action===\"remove\")for(var o=this.others.length-1;o>=0;o--){var u=this.others[o],a={row:u.row,column:u.column+s};this.doc.remove(new r(a.row,a.column,a.row,a.column-n))}this.$updating=!1,this.updateMarkers()},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(this.$updating)return;var e=this,t=this.session,n=function(n,i){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)},this.onCursorChange=function(e){if(this.$updating||!this.session)return;var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit(\"cursorEnter\",e)):(this.hideOtherMarkers(),this._emit(\"cursorLeave\",e))},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off(\"change\",this.$onUpdate),this.session.selection.off(\"changeCursor\",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth===-1)return;var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth;for(var n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}).call(o.prototype),t.PlaceHolder=o}),define(\"ace/mouse/multi_select_handler\",[\"require\",\"exports\",\"module\",\"ace/lib/event\",\"ace/lib/useragent\"],function(e,t,n){function s(e,t){return e.row==t.row&&e.column==t.column}function o(e){var t=e.domEvent,n=t.altKey,o=t.shiftKey,u=t.ctrlKey,a=e.getAccelKey(),f=e.getButton();u&&i.isMac&&(f=t.button);if(e.editor.inMultiSelectMode&&f==2){e.editor.textInput.onContextMenu(e.domEvent);return}if(!u&&!n&&!a){f===0&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode();return}if(f!==0)return;var l=e.editor,c=l.selection,h=l.inMultiSelectMode,p=e.getDocumentPosition(),d=c.getCursor(),v=e.inSelection()||c.isEmpty()&&s(p,d),m=e.x,g=e.y,y=function(e){m=e.clientX,g=e.clientY},b=l.session,w=l.renderer.pixelToScreenCoordinates(m,g),E=w,S;if(l.$mouseHandler.$enableJumpToDef)u&&n||a&&n?S=o?\"block\":\"add\":n&&l.$blockSelectEnabled&&(S=\"block\");else if(a&&!n){S=\"add\";if(!h&&o)return}else n&&l.$blockSelectEnabled&&(S=\"block\");S&&i.isMac&&t.ctrlKey&&l.$mouseHandler.cancelContextMenu();if(S==\"add\"){if(!h&&v)return;if(!h){var x=c.toOrientedRange();l.addSelectionMarker(x)}var T=c.rangeList.rangeAtPoint(p);l.inVirtualSelectionMode=!0,o&&(T=null,x=c.ranges[0]||x,l.removeSelectionMarker(x)),l.once(\"mouseup\",function(){var e=c.toOrientedRange();T&&e.isEmpty()&&s(T.cursor,e.cursor)?c.substractPoint(e.cursor):(o?c.substractPoint(x.cursor):x&&(l.removeSelectionMarker(x),c.addRange(x)),c.addRange(e)),l.inVirtualSelectionMode=!1})}else if(S==\"block\"){e.stop(),l.inVirtualSelectionMode=!0;var N,C=[],k=function(){var e=l.renderer.pixelToScreenCoordinates(m,g),t=b.screenToDocumentPosition(e.row,e.column,e.offsetX);if(s(E,e)&&s(t,c.lead))return;E=e,l.selection.moveToPosition(t),l.renderer.scrollCursorIntoView(),l.removeSelectionMarkers(C),C=c.rectangularRangeBlock(E,w),l.$mouseHandler.$clickSelection&&C.length==1&&C[0].isEmpty()&&(C[0]=l.$mouseHandler.$clickSelection.clone()),C.forEach(l.addSelectionMarker,l),l.updateSelectionMarkers()};h&&!a?c.toSingleRange():!h&&a&&(N=c.toOrientedRange(),l.addSelectionMarker(N)),o?w=b.documentToScreenPosition(c.lead):c.moveToPosition(p),E={row:-1,column:-1};var L=function(e){k(),clearInterval(O),l.removeSelectionMarkers(C),C.length||(C=[c.toOrientedRange()]),N&&(l.removeSelectionMarker(N),c.toSingleRange(N));for(var t=0;t<C.length;t++)c.addRange(C[t]);l.inVirtualSelectionMode=!1,l.$mouseHandler.$clickSelection=null},A=k;r.capture(l.container,y,L);var O=setInterval(function(){A()},20);return e.preventDefault()}}var r=e(\"../lib/event\"),i=e(\"../lib/useragent\");t.onMouseDown=o}),define(\"ace/commands/multi_select_commands\",[\"require\",\"exports\",\"module\",\"ace/keyboard/hash_handler\"],function(e,t,n){t.defaultCommands=[{name:\"addCursorAbove\",description:\"Add cursor above\",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:\"Ctrl-Alt-Up\",mac:\"Ctrl-Alt-Up\"},scrollIntoView:\"cursor\",readOnly:!0},{name:\"addCursorBelow\",description:\"Add cursor below\",exec:function(e){e.selectMoreLines(1)},bindKey:{win:\"Ctrl-Alt-Down\",mac:\"Ctrl-Alt-Down\"},scrollIntoView:\"cursor\",readOnly:!0},{name:\"addCursorAboveSkipCurrent\",description:\"Add cursor above (skip current)\",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:\"Ctrl-Alt-Shift-Up\",mac:\"Ctrl-Alt-Shift-Up\"},scrollIntoView:\"cursor\",readOnly:!0},{name:\"addCursorBelowSkipCurrent\",description:\"Add cursor below (skip current)\",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:\"Ctrl-Alt-Shift-Down\",mac:\"Ctrl-Alt-Shift-Down\"},scrollIntoView:\"cursor\",readOnly:!0},{name:\"selectMoreBefore\",description:\"Select more before\",exec:function(e){e.selectMore(-1)},bindKey:{win:\"Ctrl-Alt-Left\",mac:\"Ctrl-Alt-Left\"},scrollIntoView:\"cursor\",readOnly:!0},{name:\"selectMoreAfter\",description:\"Select more after\",exec:function(e){e.selectMore(1)},bindKey:{win:\"Ctrl-Alt-Right\",mac:\"Ctrl-Alt-Right\"},scrollIntoView:\"cursor\",readOnly:!0},{name:\"selectNextBefore\",description:\"Select next before\",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:\"Ctrl-Alt-Shift-Left\",mac:\"Ctrl-Alt-Shift-Left\"},scrollIntoView:\"cursor\",readOnly:!0},{name:\"selectNextAfter\",description:\"Select next after\",exec:function(e){e.selectMore(1,!0)},bindKey:{win:\"Ctrl-Alt-Shift-Right\",mac:\"Ctrl-Alt-Shift-Right\"},scrollIntoView:\"cursor\",readOnly:!0},{name:\"toggleSplitSelectionIntoLines\",description:\"Split into lines\",exec:function(e){e.multiSelect.rangeCount>1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:\"Ctrl-Alt-L\",mac:\"Ctrl-Alt-L\"},readOnly:!0},{name:\"splitSelectionIntoLines\",description:\"Split into lines\",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:\"alignCursors\",description:\"Align cursors\",exec:function(e){e.alignCursors()},bindKey:{win:\"Ctrl-Alt-A\",mac:\"Ctrl-Alt-A\"},scrollIntoView:\"cursor\"},{name:\"findAll\",description:\"Find all\",exec:function(e){e.findAll()},bindKey:{win:\"Ctrl-Alt-K\",mac:\"Ctrl-Alt-G\"},scrollIntoView:\"cursor\",readOnly:!0}],t.multiSelectCommands=[{name:\"singleSelection\",description:\"Single selection\",bindKey:\"esc\",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:\"cursor\",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var r=e(\"../keyboard/hash_handler\").HashHandler;t.keyboardHandler=new r(t.multiSelectCommands)}),define(\"ace/multi_select\",[\"require\",\"exports\",\"module\",\"ace/range_list\",\"ace/range\",\"ace/selection\",\"ace/mouse/multi_select_handler\",\"ace/lib/event\",\"ace/lib/lang\",\"ace/commands/multi_select_commands\",\"ace/search\",\"ace/edit_session\",\"ace/editor\",\"ace/config\"],function(e,t,n){function h(e,t,n){return c.$options.wrap=!0,c.$options.needle=t,c.$options.backwards=n==-1,c.find(e)}function v(e,t){return e.row==t.row&&e.column==t.column}function m(e){if(e.$multiselectOnSessionChange)return;e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on(\"changeSession\",e.$multiselectOnSessionChange),e.on(\"mousedown\",o),e.commands.addCommands(f.defaultCommands),g(e)}function g(e){function r(t){n&&(e.renderer.setMouseCursor(\"\"),n=!1)}if(!e.textInput)return;var t=e.textInput.getElement(),n=!1;u.addListener(t,\"keydown\",function(t){var i=t.keyCode==18&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&i?n||(e.renderer.setMouseCursor(\"crosshair\"),n=!0):n&&r()},e),u.addListener(t,\"keyup\",r,e),u.addListener(t,\"blur\",r,e)}var r=e(\"./range_list\").RangeList,i=e(\"./range\").Range,s=e(\"./selection\").Selection,o=e(\"./mouse/multi_select_handler\").onMouseDown,u=e(\"./lib/event\"),a=e(\"./lib/lang\"),f=e(\"./commands/multi_select_commands\");t.commands=f.defaultCommands.concat(f.multiSelectCommands);var l=e(\"./search\").Search,c=new l,p=e(\"./edit_session\").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(p.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(!e)return;if(!this.inMultiSelectMode&&this.rangeCount===0){var n=this.toOrientedRange();this.rangeList.add(n),this.rangeList.add(e);if(this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var r=this.rangeList.add(e);return this.$onAddRange(e),r.length&&this.$onRemoveRange(r),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal(\"multiSelect\"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal(\"addRange\",{range:e})},this.$onRemoveRange=function(e){this.rangeCount=this.rangeList.ranges.length;if(this.rangeCount==1&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal(\"removeRange\",{ranges:e}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal(\"singleSelect\"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),t=t||this.ranges[0],t&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){if(this.rangeList)return;this.rangeList=new r,this.ranges=[],this.rangeCount=0},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){var e=this.ranges.length?this.ranges:[this.getRange()],t=[];for(var n=0;n<e.length;n++){var r=e[n],s=r.start.row,o=r.end.row;if(s===o)t.push(r.clone());else{t.push(new i(s,r.start.column,s,this.session.getLine(s).length));while(++s<o)t.push(this.getLineRange(s,!0));t.push(new i(o,0,o,r.end.column))}n==0&&!this.isBackwards()&&(t=t.reverse())}this.toSingleRange();for(var n=t.length;n--;)this.addRange(t[n])},this.joinSelections=function(){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.cursor),s=this.session.documentToScreenPosition(this.anchor),o=this.rectangularRangeBlock(r,s);o.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var r=[],s=e.column<t.column;if(s)var o=e.column,u=t.column,a=e.offsetX,f=t.offsetX;else var o=t.column,u=e.column,a=t.offsetX,f=e.offsetX;var l=e.row<t.row;if(l)var c=e.row,h=t.row;else var c=t.row,h=e.row;o<0&&(o=0),c<0&&(c=0),c==h&&(n=!0);var p;for(var d=c;d<=h;d++){var m=i.fromPoints(this.session.screenToDocumentPosition(d,o,a),this.session.screenToDocumentPosition(d,u,f));if(m.isEmpty()){if(p&&v(m.end,p))break;p=m.end}m.cursor=s?m.start:m.end,r.push(m)}l&&r.reverse();if(!n){var g=r.length-1;while(r[g].isEmpty()&&g>0)g--;if(g>0){var y=0;while(r[y].isEmpty())y++}for(var b=g;b>=y;b--)r[b].isEmpty()&&r.splice(b,1)}return r}}.call(s.prototype);var d=e(\"./editor\").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,\"ace_selection\",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(!e.marker)return;this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);t!=-1&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length},this.removeSelectionMarkers=function(e){var t=this.session.$selectionMarkers;for(var n=e.length;n--;){var r=e[n];if(!r.marker)continue;this.session.removeMarker(r.marker);var i=t.indexOf(r);i!=-1&&t.splice(i,1)}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){if(this.inMultiSelectMode)return;this.inMultiSelectMode=!0,this.setStyle(\"ace_multiselect\"),this.keyBinding.addKeyboardHandler(f.keyboardHandler),this.commands.setDefaultHandler(\"exec\",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onSingleSelect=function(e){if(this.session.multiSelect.inVirtualMode)return;this.inMultiSelectMode=!1,this.unsetStyle(\"ace_multiselect\"),this.keyBinding.removeKeyboardHandler(f.keyboardHandler),this.commands.removeDefaultHandler(\"exec\",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit(\"changeSelection\")},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(!n.multiSelect)return;if(!t.multiSelectAction){var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}else t.multiSelectAction==\"forEach\"?r=n.forEachSelection(t,e.args):t.multiSelectAction==\"forEachLine\"?r=n.forEachSelection(t,e.args,!0):t.multiSelectAction==\"single\"?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});return r},this.forEachSelection=function(e,t,n){if(this.inVirtualSelectionMode)return;var r=n&&n.keepOrder,i=n==1||n&&n.$byLines,o=this.session,u=this.selection,a=u.rangeList,f=(r?u:a).ranges,l;if(!f.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var c=u._eventRegistry;u._eventRegistry={};var h=new s(o);this.inVirtualSelectionMode=!0;for(var p=f.length;p--;){if(i)while(p>0&&f[p].start.row==f[p-1].end.row)p--;h.fromOrientedRange(f[p]),h.index=p,this.selection=o.selection=h;var d=e.exec?e.exec(this,t||{}):e(this,t||{});!l&&d!==undefined&&(l=d),h.toOrientedRange(f[p])}h.detach(),this.selection=o.selection=u,this.inVirtualSelectionMode=!1,u._eventRegistry=c,u.mergeOverlappingRanges(),u.ranges[0]&&u.fromOrientedRange(u.ranges[0]);var v=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),v&&v.from==v.to&&this.renderer.animateScrolling(v.from),l},this.exitMultiSelectMode=function(){if(!this.inMultiSelectMode||this.inVirtualSelectionMode)return;this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e=\"\";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var t=this.multiSelect.rangeList.ranges,n=[];for(var r=0;r<t.length;r++)n.push(this.session.getTextRange(t[r]));var i=this.session.getDocument().getNewLineCharacter();e=n.join(i),e.length==(n.length-1)*i.length&&(e=\"\")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var r=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;r.row!=t.row||this.session.$clipPositionToDocument(r.row,r.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(e,t,n){t=t||{},t.needle=e||t.needle;if(t.needle==undefined){var r=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(r)}this.$search.set(t);var i=this.$search.findAll(this.session);if(!i.length)return 0;var s=this.multiSelect;n||s.toSingleRange(i[0]);for(var o=i.length;o--;)s.addRange(i[o],!0);return r&&s.rangeList.rangeAtPoint(r.start)&&s.addRange(r,!0),i.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),r=n.cursor==n.end,s=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(s.column=this.selection.$desiredColumn);var o=this.session.screenToDocumentPosition(s.row+e,s.column);if(!n.isEmpty())var u=this.session.documentToScreenPosition(r?n.end:n.start),a=this.session.screenToDocumentPosition(u.row+e,u.column);else var a=o;if(r){var f=i.fromPoints(o,a);f.cursor=f.start}else{var f=i.fromPoints(a,o);f.cursor=f.end}f.desiredColumn=s.column;if(!this.selection.inMultiSelectMode)this.selection.addRange(n);else if(t)var l=n.cursor;this.selection.addRange(f),l&&this.selection.substractPoint(l)},this.transposeSelections=function(e){var t=this.session,n=t.multiSelect,r=n.ranges;for(var i=r.length;i--;){var s=r[i];if(s.isEmpty()){var o=t.getWordRange(s.start.row,s.start.column);s.start.row=o.start.row,s.start.column=o.start.column,s.end.row=o.end.row,s.end.column=o.end.column}}n.mergeOverlappingRanges();var u=[];for(var i=r.length;i--;){var s=r[i];u.unshift(t.getTextRange(s))}e<0?u.unshift(u.pop()):u.push(u.shift());for(var i=r.length;i--;){var s=r[i],o=s.clone();t.replace(s,u[i]),s.start.row=o.start.row,s.start.column=o.start.column}n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,n){var r=this.session,i=r.multiSelect,s=i.toOrientedRange();if(s.isEmpty()){s=r.getWordRange(s.start.row,s.start.column),s.cursor=e==-1?s.start:s.end,this.multiSelect.addRange(s);if(n)return}var o=r.getTextRange(s),u=h(r,o,e);u&&(u.cursor=e==-1?u.start:u.end,this.session.unfold(u),this.multiSelect.addRange(u),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(s.cursor)},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,r=-1,s=n.filter(function(e){if(e.cursor.row==r)return!0;r=e.cursor.row});if(!n.length||s.length==n.length-1){var o=this.selection.getRange(),u=o.start.row,f=o.end.row,l=u==f;if(l){var c=this.session.getLength(),h;do h=this.session.getLine(f);while(/[=:]/.test(h)&&++f<c);do h=this.session.getLine(u);while(/[=:]/.test(h)&&--u>0);u<0&&(u=0),f>=c&&(f=c-1)}var p=this.session.removeFullLines(u,f);p=this.$reAlignText(p,l),this.session.insert({row:u,column:0},p.join(\"\\n\")+\"\\n\"),l||(o.start.column=0,o.end.column=p[p.length-1].length),this.selection.setRange(o)}else{s.forEach(function(e){t.substractPoint(e.cursor)});var d=0,v=Infinity,m=n.map(function(t){var n=t.cursor,r=e.getLine(n.row),i=r.substr(n.column).search(/\\S/g);return i==-1&&(i=0),n.column>d&&(d=n.column),i<v&&(v=i),i});n.forEach(function(t,n){var r=t.cursor,s=d-r.column,o=m[n]-v;s>o?e.insert(r,a.stringRepeat(\" \",s-o)):e.remove(new i(r.row,r.column,r.row,r.column-s+o)),t.start.column=t.end.column=d,t.start.row=t.end.row=r.row,t.cursor=t.end}),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(e,t){function u(e){return a.stringRepeat(\" \",e)}function f(e){return e[2]?u(i)+e[2]+u(s-e[2].length+o)+e[4].replace(/^([=:])\\s+/,\"$1 \"):e[0]}function l(e){return e[2]?u(i+s-e[2].length)+e[2]+u(o)+e[4].replace(/^([=:])\\s+/,\"$1 \"):e[0]}function c(e){return e[2]?u(i)+e[2]+u(o)+e[4].replace(/^([=:])\\s+/,\"$1 \"):e[0]}var n=!0,r=!0,i,s,o;return e.map(function(e){var t=e.match(/(\\s*)(.*?)(\\s*)([=:].*)/);return t?i==null?(i=t[1].length,s=t[2].length,o=t[3].length,t):(i+s+o!=t[1].length+t[2].length+t[3].length&&(r=!1),i!=t[1].length&&(n=!1),i>t[1].length&&(i=t[1].length),s<t[2].length&&(s=t[2].length),o>t[3].length&&(o=t[3].length),t):[e]}).map(t?f:n?r?l:f:c)}}).call(d.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off(\"addRange\",this.$onAddRange),n.multiSelect.off(\"removeRange\",this.$onRemoveRange),n.multiSelect.off(\"multiSelect\",this.$onMultiSelect),n.multiSelect.off(\"singleSelect\",this.$onSingleSelect),n.multiSelect.lead.off(\"change\",this.$checkMultiselectChange),n.multiSelect.anchor.off(\"change\",this.$checkMultiselectChange)),t&&(t.multiSelect.on(\"addRange\",this.$onAddRange),t.multiSelect.on(\"removeRange\",this.$onRemoveRange),t.multiSelect.on(\"multiSelect\",this.$onMultiSelect),t.multiSelect.on(\"singleSelect\",this.$onSingleSelect),t.multiSelect.lead.on(\"change\",this.$checkMultiselectChange),t.multiSelect.anchor.on(\"change\",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=m,e(\"./config\").defineOptions(d.prototype,\"editor\",{enableMultiselect:{set:function(e){m(this),e?(this.on(\"changeSession\",this.$multiselectOnSessionChange),this.on(\"mousedown\",o)):(this.off(\"changeSession\",this.$multiselectOnSessionChange),this.off(\"mousedown\",o))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),define(\"ace/mode/folding/fold_mode\",[\"require\",\"exports\",\"module\",\"ace/range\"],function(e,t,n){\"use strict\";var r=e(\"../../range\").Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?\"start\":t==\"markbeginend\"&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?\"end\":\"\"},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var i=/\\S/,s=e.getLine(t),o=s.search(i);if(o==-1)return;var u=n||s.length,a=e.getLength(),f=t,l=t;while(++t<a){var c=e.getLine(t).search(i);if(c==-1)continue;if(c<=o){var h=e.getTokenAt(t,0);if(!h||h.type!==\"string\")break}l=t}if(l>f){var p=e.getLine(l).length;return new r(f,u,l,p)}},this.openingBracketBlock=function(e,t,n,i,s){var o={row:n,column:i+1},u=e.$findClosingBracket(t,o,s);if(!u)return;var a=e.foldWidgets[u.row];return a==null&&(a=e.getFoldWidget(u.row)),a==\"start\"&&u.row>o.row&&(u.row--,u.column=e.getLine(u.row).length),r.fromPoints(o,u)},this.closingBracketBlock=function(e,t,n,i,s){var o={row:n,column:i},u=e.$findOpeningBracket(t,o);if(!u)return;return u.column++,o.column--,r.fromPoints(u,o)}}).call(i.prototype)}),define(\"ace/theme/textmate\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";t.isDark=!1,t.cssClass=\"ace-tm\",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;}',t.$id=\"ace/theme/textmate\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)}),define(\"ace/line_widgets\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";function i(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on(\"change\",this.updateOnChange),this.session.on(\"changeFold\",this.updateOnFold),this.session.on(\"changeEditor\",this.$onChangeEditor)}var r=e(\"./lib/dom\");(function(){this.getRowLength=function(e){var t;return this.lineWidgets?t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0:t=0,!this.$useWrapMode||!this.$wrapData[e]?1+t:this.$wrapData[e].length+1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach(function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)}),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach();if(this.editor==e)return;this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on(\"beforeRender\",this.measureWidgets),e.renderer.on(\"afterRender\",this.renderWidgets))},this.detach=function(e){var t=this.editor;if(!t)return;this.editor=null,t.widgetManager=null,t.renderer.off(\"beforeRender\",this.measureWidgets),t.renderer.off(\"afterRender\",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(!n||!e.action)return;var r=e.data,i=r.start.row,s=r.end.row,o=e.action==\"add\";for(var u=i+1;u<s;u++)n[u]&&(n[u].hidden=o);n[s]&&(o?n[i]?n[s].hidden=o:n[i]=n[s]:(n[i]==n[s]&&(n[i]=undefined),n[s].hidden=o))},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(!t)return;var n=e.start.row,r=e.end.row-n;if(r!==0)if(e.action==\"remove\"){var i=t.splice(n+1,r);!t[n]&&i[i.length-1]&&(t[n]=i.pop()),i.forEach(function(e){e&&this.removeLineWidget(e)},this),this.$updateRows()}else{var s=new Array(r);t[n]&&t[n].column!=null&&e.start.column>t[n].column&&n++,s.unshift(n,0),t.splice.apply(t,s),this.$updateRows()}},this.$updateRows=function(){var e=this.session.lineWidgets;if(!e)return;var t=!0;e.forEach(function(e,n){if(e){t=!1,e.row=n;while(e.$oldWidget)e.$oldWidget.row=n,e=e.$oldWidget}}),t&&(this.session.lineWidgets=null)},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){this.$registerLineWidget(e),e.session=this.session;if(!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement(\"div\"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,\"ace_lineWidgetContainer\"),e.el.style.position=\"absolute\",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),e.pixelHeight==null&&(e.pixelHeight=e.el.offsetHeight)),e.rowCount==null&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);e.$fold=n;if(n){var i=this.session.lineWidgets;e.row==n.end.row&&!i[n.start.row]?i[n.start.row]=e:e.hidden=!0}return this.session._emit(\"changeFold\",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el);if(e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(t){}if(this.session.lineWidgets){var n=this.session.lineWidgets[e.row];if(n==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else while(n){if(n.$oldWidget==e){n.$oldWidget=e.$oldWidget;break}n=n.$oldWidget}}this.session._emit(\"changeFold\",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){var t=this.session.lineWidgets,n=t&&t[e],r=[];while(n)r.push(n),n=n.$oldWidget;return r},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,r=t.layerConfig;if(!n||!n.length)return;var i=Infinity;for(var s=0;s<n.length;s++){var o=n[s];if(!o||!o.el)continue;if(o.session!=this.session)continue;if(!o._inDocument){if(this.session.lineWidgets[o.row]!=o)continue;o._inDocument=!0,t.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/r.characterWidth));var u=o.h/r.lineHeight;o.coverLine&&(u-=this.session.getRowLineCount(o.row),u<0&&(u=0)),o.rowCount!=u&&(o.rowCount=u,o.row<i&&(i=o.row))}i!=Infinity&&(this.session._emit(\"changeFold\",{data:{start:{row:i}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]},this.renderWidgets=function(e,t){var n=t.layerConfig,r=this.session.lineWidgets;if(!r)return;var i=Math.min(this.firstRow,n.firstRow),s=Math.max(this.lastRow,n.lastRow,r.length);while(i>0&&!r[i])i--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var o=i;o<=s;o++){var u=r[o];if(!u||!u.el)continue;if(u.hidden){u.el.style.top=-100-(u.pixelHeight||0)+\"px\";continue}u._inDocument||(u._inDocument=!0,t.container.appendChild(u.el));var a=t.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;u.coverLine||(a+=n.lineHeight*this.session.getRowLineCount(u.row)),u.el.style.top=a-n.offset+\"px\";var f=u.coverGutter?0:t.gutterWidth;u.fixedWidth||(f-=t.scrollLeft),u.el.style.left=f+\"px\",u.fullWidth&&u.screenWidth&&(u.el.style.minWidth=n.width+2*n.padding+\"px\"),u.fixedWidth?u.el.style.right=t.scrollBar.getWidth()+\"px\":u.el.style.right=\"\"}}}).call(i.prototype),t.LineWidgets=i}),define(\"ace/ext/error_marker\",[\"require\",\"exports\",\"module\",\"ace/line_widgets\",\"ace/lib/dom\",\"ace/range\"],function(e,t,n){\"use strict\";function o(e,t,n){var r=0,i=e.length-1;while(r<=i){var s=r+i>>1,o=n(t,e[s]);if(o>0)r=s+1;else{if(!(o<0))return s;i=s-1}}return-(r+1)}function u(e,t,n){var r=e.getAnnotations().sort(s.comparePoints);if(!r.length)return;var i=o(r,{row:t,column:-1},s.comparePoints);i<0&&(i=-i-1),i>=r.length?i=n>0?0:r.length-1:i===0&&n<0&&(i=r.length-1);var u=r[i];if(!u||!n)return;if(u.row===t){do u=r[i+=n];while(u&&u.row===t);if(!u)return r.slice()}var a=[];t=u.row;do a[n<0?\"unshift\":\"push\"](u),u=r[i+=n];while(u&&u.row==t);return a.length&&a}var r=e(\"../line_widgets\").LineWidgets,i=e(\"../lib/dom\"),s=e(\"../range\").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new r(n),n.widgetManager.attach(e));var s=e.getCursorPosition(),o=s.row,a=n.widgetManager.getWidgetsAtRow(o).filter(function(e){return e.type==\"errorMarker\"})[0];a?a.destroy():o-=t;var f=u(n,o,t),l;if(f){var c=f[0];s.column=(c.pos&&typeof c.column!=\"number\"?c.pos.sc:c.column)||0,s.row=c.row,l=e.renderer.$gutterLayer.$annotations[s.row]}else{if(a)return;l={text:[\"Looks good!\"],className:\"ace_ok\"}}e.session.unfold(s.row),e.selection.moveToPosition(s);var h={row:s.row,fixedWidth:!0,coverGutter:!0,el:i.createElement(\"div\"),type:\"errorMarker\"},p=h.el.appendChild(i.createElement(\"div\")),d=h.el.appendChild(i.createElement(\"div\"));d.className=\"error_widget_arrow \"+l.className;var v=e.renderer.$cursorLayer.getPixelPosition(s).left;d.style.left=v+e.renderer.gutterWidth-5+\"px\",h.el.className=\"error_widget_wrapper\",p.className=\"error_widget \"+l.className,p.innerHTML=l.text.join(\"<br>\"),p.appendChild(i.createElement(\"div\"));var m=function(e,t,n){if(t===0&&(n===\"esc\"||n===\"return\"))return h.destroy(),{command:\"null\"}};h.destroy=function(){if(e.$mouseHandler.isMousePressed)return;e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(h),e.off(\"changeSelection\",h.destroy),e.off(\"changeSession\",h.destroy),e.off(\"mouseup\",h.destroy),e.off(\"change\",h.destroy)},e.keyBinding.addKeyboardHandler(m),e.on(\"changeSelection\",h.destroy),e.on(\"changeSession\",h.destroy),e.on(\"mouseup\",h.destroy),e.on(\"change\",h.destroy),e.session.widgetManager.addLineWidget(h),h.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:h.el.offsetHeight})},i.importCssString(\"    .error_widget_wrapper {        background: inherit;        color: inherit;        border:none    }    .error_widget {        border-top: solid 2px;        border-bottom: solid 2px;        margin: 5px 0;        padding: 10px 40px;        white-space: pre-wrap;    }    .error_widget.ace_error, .error_widget_arrow.ace_error{        border-color: #ff5a5a    }    .error_widget.ace_warning, .error_widget_arrow.ace_warning{        border-color: #F1D817    }    .error_widget.ace_info, .error_widget_arrow.ace_info{        border-color: #5a5a5a    }    .error_widget.ace_ok, .error_widget_arrow.ace_ok{        border-color: #5aaa5a    }    .error_widget_arrow {        position: absolute;        border: solid 5px;        border-top-color: transparent!important;        border-right-color: transparent!important;        border-left-color: transparent!important;        top: -5px;    }\",\"\")}),define(\"ace/ace\",[\"require\",\"exports\",\"module\",\"ace/lib/fixoldbrowsers\",\"ace/lib/dom\",\"ace/lib/event\",\"ace/range\",\"ace/editor\",\"ace/edit_session\",\"ace/undomanager\",\"ace/virtual_renderer\",\"ace/worker/worker_client\",\"ace/keyboard/hash_handler\",\"ace/placeholder\",\"ace/multi_select\",\"ace/mode/folding/fold_mode\",\"ace/theme/textmate\",\"ace/ext/error_marker\",\"ace/config\"],function(e,t,n){\"use strict\";e(\"./lib/fixoldbrowsers\");var r=e(\"./lib/dom\"),i=e(\"./lib/event\"),s=e(\"./range\").Range,o=e(\"./editor\").Editor,u=e(\"./edit_session\").EditSession,a=e(\"./undomanager\").UndoManager,f=e(\"./virtual_renderer\").VirtualRenderer;e(\"./worker/worker_client\"),e(\"./keyboard/hash_handler\"),e(\"./placeholder\"),e(\"./multi_select\"),e(\"./mode/folding/fold_mode\"),e(\"./theme/textmate\"),e(\"./ext/error_marker\"),t.config=e(\"./config\"),t.require=e,typeof define==\"function\"&&(t.define=define),t.edit=function(e,n){if(typeof e==\"string\"){var s=e;e=document.getElementById(s);if(!e)throw new Error(\"ace.edit can't find div #\"+s)}if(e&&e.env&&e.env.editor instanceof o)return e.env.editor;var u=\"\";if(e&&/input|textarea/i.test(e.tagName)){var a=e;u=a.value,e=r.createElement(\"pre\"),a.parentNode.replaceChild(e,a)}else e&&(u=e.textContent,e.innerHTML=\"\");var l=t.createEditSession(u),c=new o(new f(e),l,n),h={document:l,editor:c,onResize:c.resize.bind(c,null)};return a&&(h.textarea=a),i.addListener(window,\"resize\",h.onResize),c.on(\"destroy\",function(){i.removeListener(window,\"resize\",h.onResize),h.editor.container.env=null}),c.container.env=c.env=h,c},t.createEditSession=function(e,t){var n=new u(e,t);return n.setUndoManager(new a),n},t.Range=s,t.Editor=o,t.EditSession=u,t.UndoManager=a,t.VirtualRenderer=f,t.version=t.config.version});            (function() {\n                window.require([\"ace/ace\"], function(a) {\n                    if (a) {\n                        a.config.init(true);\n                        a.define = window.define;\n                    }\n                    if (!window.ace)\n                        window.ace = a;\n                    for (var key in a) if (a.hasOwnProperty(key))\n                        window.ace[key] = a[key];\n                    window.ace[\"default\"] = window.ace;\n                    if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                        module.exports = window.ace;\n                    }\n                });\n            })();\n        "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-beautify.js",
    "content": "define(\"ace/ext/beautify\",[\"require\",\"exports\",\"module\",\"ace/token_iterator\"],function(e,t,n){\"use strict\";function i(e,t){return e.type.lastIndexOf(t+\".xml\")>-1}var r=e(\"../token_iterator\").TokenIterator;t.singletonTags=[\"area\",\"base\",\"br\",\"col\",\"command\",\"embed\",\"hr\",\"html\",\"img\",\"input\",\"keygen\",\"link\",\"meta\",\"param\",\"source\",\"track\",\"wbr\"],t.blockTags=[\"article\",\"aside\",\"blockquote\",\"body\",\"div\",\"dl\",\"fieldset\",\"footer\",\"form\",\"head\",\"header\",\"html\",\"nav\",\"ol\",\"p\",\"script\",\"section\",\"style\",\"table\",\"tbody\",\"tfoot\",\"thead\",\"ul\"],t.beautify=function(e){var n=new r(e,0,0),s=n.getCurrentToken(),o=e.getTabString(),u=t.singletonTags,a=t.blockTags,f,l=!1,c=!1,h=!1,p=\"\",d=\"\",v=\"\",m=0,g=0,y=0,b=0,w=0,E=0,S=0,x,T=0,N=0,C=[],k=!1,L,A=!1,O=!1,M=!1,_=!1,D={0:0},P=[],H=function(){f&&f.value&&f.type!==\"string.regexp\"&&(f.value=f.value.replace(/^\\s*/,\"\"))},B=function(){p=p.replace(/ +$/,\"\")},j=function(){p=p.trimRight(),l=!1};while(s!==null){T=n.getCurrentTokenRow(),C=n.$rowTokens,f=n.stepForward();if(typeof s!=\"undefined\"){d=s.value,w=0,M=v===\"style\"||e.$modeId===\"ace/mode/css\",i(s,\"tag-open\")?(O=!0,f&&(_=a.indexOf(f.value)!==-1),d===\"</\"&&(_&&!l&&N<1&&N++,M&&(N=1),w=1,_=!1)):i(s,\"tag-close\")?O=!1:i(s,\"comment.start\")?_=!0:i(s,\"comment.end\")&&(_=!1),!O&&!N&&s.type===\"paren.rparen\"&&s.value.substr(0,1)===\"}\"&&N++,T!==x&&(N=T,x&&(N-=x));if(N){j();for(;N>0;N--)p+=\"\\n\";l=!0,!i(s,\"comment\")&&!s.type.match(/^(comment|string)$/)&&(d=d.trimLeft())}if(d){s.type===\"keyword\"&&d.match(/^(if|else|elseif|for|foreach|while|switch)$/)?(P[m]=d,H(),h=!0,d.match(/^(else|elseif)$/)&&p.match(/\\}[\\s]*$/)&&(j(),c=!0)):s.type===\"paren.lparen\"?(H(),d.substr(-1)===\"{\"&&(h=!0,A=!1,O||(N=1)),d.substr(0,1)===\"{\"&&(c=!0,p.substr(-1)!==\"[\"&&p.trimRight().substr(-1)===\"[\"?(j(),c=!1):p.trimRight().substr(-1)===\")\"?j():B())):s.type===\"paren.rparen\"?(w=1,d.substr(0,1)===\"}\"&&(P[m-1]===\"case\"&&w++,p.trimRight().substr(-1)===\"{\"?j():(c=!0,M&&(N+=2))),d.substr(0,1)===\"]\"&&p.substr(-1)!==\"}\"&&p.trimRight().substr(-1)===\"}\"&&(c=!1,b++,j()),d.substr(0,1)===\")\"&&p.substr(-1)!==\"(\"&&p.trimRight().substr(-1)===\"(\"&&(c=!1,b++,j()),B()):s.type!==\"keyword.operator\"&&s.type!==\"keyword\"||!d.match(/^(=|==|===|!=|!==|&&|\\|\\||and|or|xor|\\+=|.=|>|>=|<|<=|=>)$/)?s.type===\"punctuation.operator\"&&d===\";\"?(j(),H(),h=!0,M&&N++):s.type===\"punctuation.operator\"&&d.match(/^(:|,)$/)?(j(),H(),d.match(/^(,)$/)&&S>0&&E===0?N++:(h=!0,l=!1)):s.type===\"support.php_tag\"&&d===\"?>\"&&!l?(j(),c=!0):i(s,\"attribute-name\")&&p.substr(-1).match(/^\\s$/)?c=!0:i(s,\"attribute-equals\")?(B(),H()):i(s,\"tag-close\")&&(B(),d===\"/>\"&&(c=!0)):(j(),H(),c=!0,h=!0);if(l&&(!s.type.match(/^(comment)$/)||!!d.substr(0,1).match(/^[/#]$/))&&(!s.type.match(/^(string)$/)||!!d.substr(0,1).match(/^['\"]$/))){b=y;if(m>g){b++;for(L=m;L>g;L--)D[L]=b}else m<g&&(b=D[m]);g=m,y=b,w&&(b-=w),A&&!E&&(b++,A=!1);for(L=0;L<b;L++)p+=o}s.type===\"keyword\"&&d.match(/^(case|default)$/)&&(P[m]=d,m++),s.type===\"keyword\"&&d.match(/^(break)$/)&&P[m-1]&&P[m-1].match(/^(case|default)$/)&&m--,s.type===\"paren.lparen\"&&(E+=(d.match(/\\(/g)||[]).length,S+=(d.match(/\\{/g)||[]).length,m+=d.length),s.type===\"keyword\"&&d.match(/^(if|else|elseif|for|while)$/)?(A=!0,E=0):!E&&d.trim()&&s.type!==\"comment\"&&(A=!1);if(s.type===\"paren.rparen\"){E-=(d.match(/\\)/g)||[]).length,S-=(d.match(/\\}/g)||[]).length;for(L=0;L<d.length;L++)m--,d.substr(L,1)===\"}\"&&P[m]===\"case\"&&m--}s.type==\"text\"&&(d=d.replace(/\\s+$/,\" \")),c&&!l&&(B(),p.substr(-1)!==\"\\n\"&&(p+=\" \")),p+=d,h&&(p+=\" \"),l=!1,c=!1,h=!1;if(i(s,\"tag-close\")&&(_||a.indexOf(v)!==-1)||i(s,\"doctype\")&&d===\">\")_&&f&&f.value===\"</\"?N=-1:N=1;i(s,\"tag-open\")&&d===\"</\"?m--:i(s,\"tag-open\")&&d===\"<\"&&u.indexOf(f.value)===-1?m++:i(s,\"tag-name\")?v=d:i(s,\"tag-close\")&&d===\"/>\"&&u.indexOf(v)===-1&&m--,x=T}}s=f}p=p.trim(),e.doc.setValue(p)},t.commands=[{name:\"beautify\",description:\"Format selection (Beautify)\",exec:function(e){t.beautify(e.session)},bindKey:\"Ctrl-Shift-B\"}]});                (function() {\n                    window.require([\"ace/ext/beautify\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-code_lens.js",
    "content": "define(\"ace/ext/code_lens\",[\"require\",\"exports\",\"module\",\"ace/line_widgets\",\"ace/lib/event\",\"ace/lib/lang\",\"ace/lib/dom\",\"ace/editor\",\"ace/config\"],function(e,t,n){\"use strict\";function u(e){var t=e.$textLayer,n=t.$lenses;n&&n.forEach(function(e){e.remove()}),t.$lenses=null}function a(e,t){var n=e&t.CHANGE_LINES||e&t.CHANGE_FULL||e&t.CHANGE_SCROLL||e&t.CHANGE_TEXT;if(!n)return;var r=t.session,i=t.session.lineWidgets,s=t.$textLayer,a=s.$lenses;if(!i){a&&u(t);return}var f=t.$textLayer.$lines.cells,l=t.layerConfig,c=t.$padding;a||(a=s.$lenses=[]);var h=0;for(var p=0;p<f.length;p++){var d=f[p].row,v=i[d],m=v&&v.lenses;if(!m||!m.length)continue;var g=a[h];g||(g=a[h]=o.buildDom([\"div\",{\"class\":\"ace_codeLens\"}],t.container)),g.style.height=l.lineHeight+\"px\",h++;for(var y=0;y<m.length;y++){var b=g.childNodes[2*y];b||(y!=0&&g.appendChild(o.createTextNode(\"\\u00a0|\\u00a0\")),b=o.buildDom([\"a\"],g)),b.textContent=m[y].title,b.lensCommand=m[y]}while(g.childNodes.length>2*y-1)g.lastChild.remove();var w=t.$cursorLayer.getPixelPosition({row:d,column:0},!0).top-l.lineHeight*v.rowsAbove-l.offset;g.style.top=w+\"px\";var E=t.gutterWidth,S=r.getLine(d).search(/\\S|$/);S==-1&&(S=0),E+=S*l.characterWidth,E-=t.scrollLeft,g.style.paddingLeft=c+E+\"px\"}while(h<a.length)a.pop().remove()}function f(e){if(!e.lineWidgets)return;var t=e.widgetManager;e.lineWidgets.forEach(function(e){e&&e.lenses&&t.removeLineWidget(e)})}function l(e){e.codeLensProviders=[],e.renderer.on(\"afterRender\",a),e.$codeLensClickHandler||(e.$codeLensClickHandler=function(t){var n=t.target.lensCommand;n&&e.execCommand(n.id,n.arguments)},i.addListener(e.container,\"click\",e.$codeLensClickHandler,e)),e.$updateLenses=function(){function o(){var r=n.selection.cursor,i=n.documentToScreenRow(r);t.setLenses(n,s);var o=n.$undoManager&&n.$undoManager.$lastDelta;if(o&&o.action==\"remove\"&&o.lines.length>1)return;var u=n.documentToScreenRow(r),a=e.renderer.layerConfig.lineHeight,f=n.getScrollTop()+(u-i)*a;n.setScrollTop(f)}var n=e.session;if(!n)return;n.widgetManager||(n.widgetManager=new r(n),n.widgetManager.attach(e));var i=e.codeLensProviders.length,s=[];e.codeLensProviders.forEach(function(e){e.provideCodeLenses(n,function(e,t){if(e)return;t.forEach(function(e){s.push(e)}),i--,i==0&&o()})})};var n=s.delayedCall(e.$updateLenses);e.$updateLensesOnInput=function(){n.delay(250)},e.on(\"input\",e.$updateLensesOnInput)}function c(e){e.off(\"input\",e.$updateLensesOnInput),e.renderer.off(\"afterRender\",a),e.$codeLensClickHandler&&e.container.removeEventListener(\"click\",e.$codeLensClickHandler)}var r=e(\"../line_widgets\").LineWidgets,i=e(\"../lib/event\"),s=e(\"../lib/lang\"),o=e(\"../lib/dom\");t.setLenses=function(e,t){var n=Number.MAX_VALUE;f(e),t&&t.forEach(function(t){var r=t.start.row,i=t.start.column,s=e.lineWidgets&&e.lineWidgets[r];if(!s||!s.lenses)s=e.widgetManager.$registerLineWidget({rowCount:1,rowsAbove:1,row:r,column:i,lenses:[]});s.lenses.push(t.command),r<n&&(n=r)}),e._emit(\"changeFold\",{data:{start:{row:n}}})},t.registerCodeLensProvider=function(e,t){e.setOption(\"enableCodeLens\",!0),e.codeLensProviders.push(t),e.$updateLensesOnInput()},t.clear=function(e){t.setLenses(e,null)};var h=e(\"../editor\").Editor;e(\"../config\").defineOptions(h.prototype,\"editor\",{enableCodeLens:{set:function(e){e?l(this):c(this)}}}),o.importCssString(\".ace_codeLens {    position: absolute;    color: #aaa;    font-size: 88%;    background: inherit;    width: 100%;    display: flex;    align-items: flex-end;    pointer-events: none;}.ace_codeLens > a {    cursor: pointer;    pointer-events: auto;}.ace_codeLens > a:hover {    color: #0000ff;    text-decoration: underline;}.ace_dark > .ace_codeLens > a:hover {    color: #4e94ce;}\",\"\")});                (function() {\n                    window.require([\"ace/ext/code_lens\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-elastic_tabstops_lite.js",
    "content": "define(\"ace/ext/elastic_tabstops_lite\",[\"require\",\"exports\",\"module\",\"ace/editor\",\"ace/config\"],function(e,t,n){\"use strict\";var r=function(e){this.$editor=e;var t=this,n=[],r=!1;this.onAfterExec=function(){r=!1,t.processRows(n),n=[]},this.onExec=function(){r=!0},this.onChange=function(e){r&&(n.indexOf(e.start.row)==-1&&n.push(e.start.row),e.end.row!=e.start.row&&n.push(e.end.row))}};(function(){this.processRows=function(e){this.$inChange=!0;var t=[];for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t.indexOf(i)>-1)continue;var s=this.$findCellWidthsForBlock(i),o=this.$setBlockCellWidthsToMax(s.cellWidths),u=s.firstRow;for(var a=0,f=o.length;a<f;a++){var l=o[a];t.push(u),this.$adjustRow(u,l),u++}}this.$inChange=!1},this.$findCellWidthsForBlock=function(e){var t=[],n,r=e;while(r>=0){n=this.$cellWidthsForRow(r);if(n.length==0)break;t.unshift(n),r--}var i=r+1;r=e;var s=this.$editor.session.getLength();while(r<s-1){r++,n=this.$cellWidthsForRow(r);if(n.length==0)break;t.push(n)}return{cellWidths:t,firstRow:i}},this.$cellWidthsForRow=function(e){var t=this.$selectionColumnsForRow(e),n=[-1].concat(this.$tabsForRow(e)),r=n.map(function(e){return 0}).slice(1),i=this.$editor.session.getLine(e);for(var s=0,o=n.length-1;s<o;s++){var u=n[s]+1,a=n[s+1],f=this.$rightmostSelectionInCell(t,a),l=i.substring(u,a);r[s]=Math.max(l.replace(/\\s+$/g,\"\").length,f-u)}return r},this.$selectionColumnsForRow=function(e){var t=[],n=this.$editor.getCursorPosition();return this.$editor.session.getSelection().isEmpty()&&e==n.row&&t.push(n.column),t},this.$setBlockCellWidthsToMax=function(e){var t=!0,n,r,i,s=this.$izip_longest(e);for(var o=0,u=s.length;o<u;o++){var a=s[o];if(!a.push){console.error(a);continue}a.push(NaN);for(var f=0,l=a.length;f<l;f++){var c=a[f];t&&(n=f,i=0,t=!1);if(isNaN(c)){r=f;for(var h=n;h<r;h++)e[h][o]=i;t=!0}i=Math.max(i,c)}}return e},this.$rightmostSelectionInCell=function(e,t){var n=0;if(e.length){var r=[];for(var i=0,s=e.length;i<s;i++)e[i]<=t?r.push(i):r.push(0);n=Math.max.apply(Math,r)}return n},this.$tabsForRow=function(e){var t=[],n=this.$editor.session.getLine(e),r=/\\t/g,i;while((i=r.exec(n))!=null)t.push(i.index);return t},this.$adjustRow=function(e,t){var n=this.$tabsForRow(e);if(n.length==0)return;var r=0,i=-1,s=this.$izip(t,n);for(var o=0,u=s.length;o<u;o++){var a=s[o][0],f=s[o][1];i+=1+a,f+=r;var l=i-f;if(l==0)continue;var c=this.$editor.session.getLine(e).substr(0,f),h=c.replace(/\\s*$/g,\"\"),p=c.length-h.length;l>0&&(this.$editor.session.getDocument().insertInLine({row:e,column:f+1},Array(l+1).join(\" \")+\"\t\"),this.$editor.session.getDocument().removeInLine(e,f,f+1),r+=l),l<0&&p>=-l&&(this.$editor.session.getDocument().removeInLine(e,f+l,f),r+=l)}},this.$izip_longest=function(e){if(!e[0])return[];var t=e[0].length,n=e.length;for(var r=1;r<n;r++){var i=e[r].length;i>t&&(t=i)}var s=[];for(var o=0;o<t;o++){var u=[];for(var r=0;r<n;r++)e[r][o]===\"\"?u.push(NaN):u.push(e[r][o]);s.push(u)}return s},this.$izip=function(e,t){var n=e.length>=t.length?t.length:e.length,r=[];for(var i=0;i<n;i++){var s=[e[i],t[i]];r.push(s)}return r}}).call(r.prototype),t.ElasticTabstopsLite=r;var i=e(\"../editor\").Editor;e(\"../config\").defineOptions(i.prototype,\"editor\",{useElasticTabstops:{set:function(e){e?(this.elasticTabstops||(this.elasticTabstops=new r(this)),this.commands.on(\"afterExec\",this.elasticTabstops.onAfterExec),this.commands.on(\"exec\",this.elasticTabstops.onExec),this.on(\"change\",this.elasticTabstops.onChange)):this.elasticTabstops&&(this.commands.removeListener(\"afterExec\",this.elasticTabstops.onAfterExec),this.commands.removeListener(\"exec\",this.elasticTabstops.onExec),this.removeListener(\"change\",this.elasticTabstops.onChange))}}})});                (function() {\n                    window.require([\"ace/ext/elastic_tabstops_lite\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-emmet.js",
    "content": "define(\"ace/snippets\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/event_emitter\",\"ace/lib/lang\",\"ace/range\",\"ace/range_list\",\"ace/keyboard/hash_handler\",\"ace/tokenizer\",\"ace/clipboard\",\"ace/lib/dom\",\"ace/editor\"],function(e,t,n){\"use strict\";function h(e){var t=(new Date).toLocaleString(\"en-us\",e);return t.length==1?\"0\"+t:t}var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=e(\"./lib/lang\"),o=e(\"./range\").Range,u=e(\"./range_list\").RangeList,a=e(\"./keyboard/hash_handler\").HashHandler,f=e(\"./tokenizer\").Tokenizer,l=e(\"./clipboard\"),c={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var r=e.session.getTextRange();return n?r.replace(/\\n\\r?([ \\t]*\\S)/g,\"\\n\"+n+\"$1\"):r},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?\"YES\":\"NO\"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return l.getText&&l.getText()},FILENAME:function(e){return/[^/\\\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\\\]*$/.exec(this.FILEPATH(e))[0].replace(/\\.[^.]*$/,\"\")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\\\]*$/,\"\")},FILEPATH:function(e){return\"/not implemented.txt\"},WORKSPACE_NAME:function(){return\"Unknown\"},FULLNAME:function(){return\"Unknown\"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||\"\"},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||\"\"},LINE_COMMENT:function(e){var t=e.session.$mode||{};return t.lineCommentStart||\"\"},CURRENT_YEAR:h.bind(null,{year:\"numeric\"}),CURRENT_YEAR_SHORT:h.bind(null,{year:\"2-digit\"}),CURRENT_MONTH:h.bind(null,{month:\"numeric\"}),CURRENT_MONTH_NAME:h.bind(null,{month:\"long\"}),CURRENT_MONTH_NAME_SHORT:h.bind(null,{month:\"short\"}),CURRENT_DATE:h.bind(null,{day:\"2-digit\"}),CURRENT_DAY_NAME:h.bind(null,{weekday:\"long\"}),CURRENT_DAY_NAME_SHORT:h.bind(null,{weekday:\"short\"}),CURRENT_HOUR:h.bind(null,{hour:\"2-digit\",hour12:!1}),CURRENT_MINUTE:h.bind(null,{minute:\"2-digit\"}),CURRENT_SECOND:h.bind(null,{second:\"2-digit\"})};c.SELECTED_TEXT=c.SELECTION;var p=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,i),this.getTokenizer=function(){return p.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(e){return e=e.substr(1),/^\\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return\"(?:[^\\\\\\\\\"+e+\"]|\\\\\\\\.)\"}var n={regex:\"/(\"+t(\"/\")+\"+)/\",onMatch:function(e,t,n){var r=n[0];return r.fmtString=!0,r.guard=e.slice(1,-1),r.flag=\"\",\"\"},next:\"formatString\"};return p.$tokenizer=new f({start:[{regex:/\\\\./,onMatch:function(e,t,n){var r=e[1];return r==\"}\"&&n.length?e=r:\"`$\\\\\".indexOf(r)!=-1&&(e=r),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\\$(?:\\d+|\\w+)/,onMatch:e},{regex:/\\$\\{[\\dA-Z_a-z]+/,onMatch:function(t,n,r){var i=e(t.substr(1));return r.unshift(i[0]),i},next:\"snippetVar\"},{regex:/\\n/,token:\"newline\",merge:!1}],snippetVar:[{regex:\"\\\\|\"+t(\"\\\\|\")+\"*\\\\|\",onMatch:function(e,t,n){var r=e.slice(1,-1).replace(/\\\\[,|\\\\]|,/g,function(e){return e.length==2?e[1]:\"\\0\"}).split(\"\\0\");return n[0].choices=r,[r[0]]},next:\"start\"},n,{regex:\"([^:}\\\\\\\\]|\\\\\\\\.)*:?\",token:\"\",next:\"start\"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):\":\"}},{regex:/\\\\./,onMatch:function(e,t,n){var r=e[1];return r==\"}\"&&n.length?e=r:\"`$\\\\\".indexOf(r)!=-1?e=r:r==\"n\"?e=\"\\n\":r==\"t\"?e=\"\t\":\"ulULE\".indexOf(r)!=-1&&(e={changeCase:r,local:r>\"a\"}),[e]}},{regex:\"/\\\\w*}\",onMatch:function(e,t,n){var r=n.shift();return r&&(r.flag=e.slice(1,-1)),this.next=r&&r.tabstopId?\"start\":\"\",[r||e]},next:\"start\"},{regex:/\\$(?:\\d+|\\w+)/,onMatch:function(e,t,n){return[{text:e.slice(1)}]}},{regex:/\\${\\w+/,onMatch:function(e,t,n){var r={text:e.slice(2)};return n.unshift(r),[r]},next:\"formatStringVar\"},{regex:/\\n/,token:\"newline\",merge:!1},{regex:/}/,onMatch:function(e,t,n){var r=n.shift();return this.next=r&&r.tabstopId?\"start\":\"\",[r||e]},next:\"start\"}],formatStringVar:[{regex:/:\\/\\w+}/,onMatch:function(e,t,n){var r=n[0];return r.formatFunction=e.slice(2,-1),[n.shift()]},next:\"formatString\"},n,{regex:/:[\\?\\-+]?/,onMatch:function(e,t,n){e[1]==\"+\"&&(n[0].ifEnd=n[0]),e[1]==\"?\"&&(n[0].expectElse=!0)},next:\"formatString\"},{regex:\"([^:}\\\\\\\\]|\\\\\\\\.)*:?\",token:\"\",next:\"formatString\"}]}),p.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},this.getVariableValue=function(e,t,n){if(/^\\d+$/.test(t))return(this.variables.__||{})[t]||\"\";if(/^[A-Z]\\d+$/.test(t))return(this.variables[t[0]+\"__\"]||{})[t.substr(1)]||\"\";t=t.replace(/^TM_/,\"\");if(!this.variables.hasOwnProperty(t))return\"\";var r=this.variables[t];return typeof r==\"function\"&&(r=this.variables[t](e,t,n)),r==null?\"\":r},this.variables=c,this.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var r=t.flag||\"\",i=t.guard;i=new RegExp(i,r.replace(/[^gim]/g,\"\"));var s=typeof t.fmt==\"string\"?this.tokenizeTmSnippet(t.fmt,\"formatString\"):t.fmt,o=this,u=e.replace(i,function(){var e=o.variables.__;o.variables.__=[].slice.call(arguments);var t=o.resolveVariables(s,n),r=\"E\";for(var i=0;i<t.length;i++){var u=t[i];if(typeof u==\"object\"){t[i]=\"\";if(u.changeCase&&u.local){var a=t[i+1];a&&typeof a==\"string\"&&(u.changeCase==\"u\"?t[i]=a[0].toUpperCase():t[i]=a[0].toLowerCase(),t[i+1]=a.substr(1))}else u.changeCase&&(r=u.changeCase)}else r==\"U\"?t[i]=u.toUpperCase():r==\"L\"&&(t[i]=u.toLowerCase())}return o.variables.__=e,t.join(\"\")});return u},this.tmFormatFunction=function(e,t,n){return t.formatFunction==\"upcase\"?e.toUpperCase():t.formatFunction==\"downcase\"?e.toLowerCase():e},this.resolveVariables=function(e,t){function f(t){var n=e.indexOf(t,s+1);n!=-1&&(s=n)}var n=[],r=\"\",i=!0;for(var s=0;s<e.length;s++){var o=e[s];if(typeof o==\"string\"){n.push(o),o==\"\\n\"?(i=!0,r=\"\"):i&&(r=/^\\t*/.exec(o)[0],i=/\\S/.test(o));continue}if(!o)continue;i=!1;if(o.fmtString){var u=e.indexOf(o,s+1);u==-1&&(u=e.length),o.fmt=e.slice(s+1,u),s=u}if(o.text){var a=this.getVariableValue(t,o.text,r)+\"\";o.fmtString&&(a=this.tmStrFormat(a,o,t)),o.formatFunction&&(a=this.tmFormatFunction(a,o,t)),a&&!o.ifEnd?(n.push(a),f(o)):!a&&o.ifEnd&&f(o.ifEnd)}else o.elseEnd?f(o.elseEnd):o.tabstopId!=null?n.push(o):o.changeCase!=null&&n.push(o)}return n},this.insertSnippetForSelection=function(e,t){function f(e){var t=[];for(var n=0;n<e.length;n++){var r=e[n];if(typeof r==\"object\"){if(a[r.tabstopId])continue;var i=e.lastIndexOf(r,n-1);r=t[i]||{tabstopId:r.tabstopId}}t[n]=r}return t}var n=e.getCursorPosition(),r=e.session.getLine(n.row),i=e.session.getTabString(),s=r.match(/^\\s*/)[0];n.column<s.length&&(s=s.slice(0,n.column)),t=t.replace(/\\r/g,\"\");var o=this.tokenizeTmSnippet(t);o=this.resolveVariables(o,e),o=o.map(function(e){return e==\"\\n\"?e+s:typeof e==\"string\"?e.replace(/\\t/g,i):e});var u=[];o.forEach(function(e,t){if(typeof e!=\"object\")return;var n=e.tabstopId,r=u[n];r||(r=u[n]=[],r.index=n,r.value=\"\",r.parents={});if(r.indexOf(e)!==-1)return;e.choices&&!r.choices&&(r.choices=e.choices),r.push(e);var i=o.indexOf(e,t+1);if(i===-1)return;var s=o.slice(t+1,i),a=s.some(function(e){return typeof e==\"object\"});a&&!r.value?r.value=s:s.length&&(!r.value||typeof r.value!=\"string\")&&(r.value=s.join(\"\"))}),u.forEach(function(e){e.length=0});var a={};for(var l=0;l<o.length;l++){var c=o[l];if(typeof c!=\"object\")continue;var h=c.tabstopId,p=u[h],v=o.indexOf(c,l+1);if(a[h]){a[h]===c&&(delete a[h],Object.keys(a).forEach(function(e){p.parents[e]=!0}));continue}a[h]=c;var m=p.value;typeof m!=\"string\"?m=f(m):c.fmt&&(m=this.tmStrFormat(m,c,e)),o.splice.apply(o,[l+1,Math.max(0,v-l)].concat(m,c)),p.indexOf(c)===-1&&p.push(c)}var g=0,y=0,b=\"\";o.forEach(function(e){if(typeof e==\"string\"){var t=e.split(\"\\n\");t.length>1?(y=t[t.length-1].length,g+=t.length-1):y+=e.length,b+=e}else e&&(e.start?e.end={row:g,column:y}:e.start={row:g,column:y})});var w=e.getSelectionRange(),E=e.session.replace(w,b),S=new d(e),x=e.inVirtualSelectionMode&&e.selection.index;S.addTabstops(u,w.start,E,x)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection(function(){n.insertSnippetForSelection(e,t)},null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||\"\";t=t.split(\"/\").pop();if(t===\"html\"||t===\"php\"){t===\"php\"&&!e.session.$mode.inlinePhp&&(t=\"html\");var n=e.getCursorPosition(),r=e.session.getState(n.row);typeof r==\"object\"&&(r=r[0]),r.substring&&(r.substring(0,3)==\"js-\"?t=\"javascript\":r.substring(0,4)==\"css-\"?t=\"css\":r.substring(0,4)==\"php-\"&&(t=\"php\"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],r=this.snippetMap;return r[t]&&r[t].includeScopes&&n.push.apply(n,r[t].includeScopes),n.push(\"_\"),n},this.expandWithTab=function(e,t){var n=this,r=e.forEachSelection(function(){return n.expandSnippetForSelection(e,t)},null,{keepOrder:!0});return r&&e.tabstopManager&&e.tabstopManager.tabNext(),r},this.expandSnippetForSelection=function(e,t){var n=e.getCursorPosition(),r=e.session.getLine(n.row),i=r.substring(0,n.column),s=r.substr(n.column),o=this.snippetMap,u;return this.getActiveScopes(e).some(function(e){var t=o[e];return t&&(u=this.findMatchingSnippet(t,i,s)),!!u},this),u?t&&t.dryRun?!0:(e.session.doc.removeInLine(n.row,n.column-u.replaceBefore.length,n.column+u.replaceAfter.length),this.variables.M__=u.matchBefore,this.variables.T__=u.matchAfter,this.insertSnippetForSelection(e,u.content),this.variables.M__=this.variables.T__=null,!0):!1},this.findMatchingSnippet=function(e,t,n){for(var r=e.length;r--;){var i=e[r];if(i.startRe&&!i.startRe.test(t))continue;if(i.endRe&&!i.endRe.test(n))continue;if(!i.startRe&&!i.endRe)continue;return i.matchBefore=i.startRe?i.startRe.exec(t):[\"\"],i.matchAfter=i.endRe?i.endRe.exec(n):[\"\"],i.replaceBefore=i.triggerRe?i.triggerRe.exec(t)[0]:\"\",i.replaceAfter=i.endTriggerRe?i.endTriggerRe.exec(n)[0]:\"\",i}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){function o(e){return e&&!/^\\^?\\(.*\\)\\$?$|^\\\\b$/.test(e)&&(e=\"(?:\"+e+\")\"),e||\"\"}function u(e,t,n){return e=o(e),t=o(t),n?(e=t+e,e&&e[e.length-1]!=\"$\"&&(e+=\"$\")):(e+=t,e&&e[0]!=\"^\"&&(e=\"^\"+e)),new RegExp(e)}function a(e){e.scope||(e.scope=t||\"_\"),t=e.scope,n[t]||(n[t]=[],r[t]={});var o=r[t];if(e.name){var a=o[e.name];a&&i.unregister(a),o[e.name]=e}n[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join(\"\\n\"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\\w/.test(e.tabTrigger)&&(e.guard=\"\\\\b\"),e.trigger=s.escapeRegExp(e.tabTrigger));if(!e.trigger&&!e.guard&&!e.endTrigger&&!e.endGuard)return;e.startRe=u(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=u(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger)}var n=this.snippetMap,r=this.snippetNameMap,i=this;e||(e=[]),Array.isArray(e)?e.forEach(a):Object.keys(e).forEach(function(t){a(e[t])}),this._signal(\"registerSnippets\",{scope:t})},this.unregister=function(e,t){function i(e){var i=r[e.scope||t];if(i&&i[e.name]){delete i[e.name];var s=n[e.scope||t],o=s&&s.indexOf(e);o>=0&&s.splice(o,1)}}var n=this.snippetMap,r=this.snippetNameMap;e.content?i(e):Array.isArray(e)&&e.forEach(i)},this.parseSnippetFile=function(e){e=e.replace(/\\r/g,\"\");var t=[],n={},r=/^#.*|^({[\\s\\S]*})\\s*$|^(\\S+) (.*)$|^((?:\\n*\\t.*)+)/gm,i;while(i=r.exec(e)){if(i[1])try{n=JSON.parse(i[1]),t.push(n)}catch(s){}if(i[4])n.content=i[4].replace(/^\\t/gm,\"\"),t.push(n),n={};else{var o=i[2],u=i[3];if(o==\"regex\"){var a=/\\/((?:[^\\/\\\\]|\\\\.)*)|$/g;n.guard=a.exec(u)[1],n.trigger=a.exec(u)[1],n.endTrigger=a.exec(u)[1],n.endGuard=a.exec(u)[1]}else o==\"snippet\"?(n.tabTrigger=u.match(/^\\S*/)[0],n.name||(n.name=u)):o&&(n[o]=u)}}return t},this.getSnippetByName=function(e,t){var n=this.snippetNameMap,r;return this.getActiveScopes(t).some(function(t){var i=n[t];return i&&(r=i[e]),!!r},this),r}}).call(p.prototype);var d=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on(\"change\",this.$onChange),this.editor.on(\"changeSelection\",this.$onChangeSelection),this.editor.on(\"changeSession\",this.$onChangeSession),this.editor.commands.on(\"afterExec\",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener(\"change\",this.$onChange),this.editor.removeListener(\"changeSelection\",this.$onChangeSelection),this.editor.removeListener(\"changeSession\",this.$onChangeSession),this.editor.commands.removeListener(\"afterExec\",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t=e.action[0]==\"r\",n=this.selectedTabstop||{},r=n.parents||{},i=(this.tabstops||[]).slice();for(var s=0;s<i.length;s++){var o=i[s],u=o==n||r[o.index];o.rangeList.$bias=u?0:1;if(e.action==\"remove\"&&o!==n){var a=o.parents&&o.parents[n.index],f=o.rangeList.pointIndex(e.start,a);f=f<0?-f-1:f+1;var l=o.rangeList.pointIndex(e.end,a);l=l<0?-l-1:l-1;var c=o.rangeList.ranges.slice(f,l);for(var h=0;h<c.length;h++)this.removeRange(c[h])}o.rangeList.$onChange(e)}var p=this.editor.session;!this.$inChange&&t&&p.getLength()==1&&!p.getValue()&&this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(!e||!e.hasLinkedRanges||!e.firstNonLinked)return;this.$inChange=!0;var n=this.editor.session,r=n.getTextRange(e.firstNonLinked);for(var i=0;i<e.length;i++){var s=e[i];if(!s.linked)continue;var o=s.original,u=t.snippetManager.tmStrFormat(r,o,this.editor);n.replace(s,u)}this.$inChange=!1},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(!this.editor)return;var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty();for(var r=0;r<this.ranges.length;r++){if(this.ranges[r].linked)continue;var i=this.ranges[r].contains(e.row,e.column),s=n||this.ranges[r].contains(t.row,t.column);if(i&&s)return}this.detach()},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);n=Math.min(Math.max(n,1),t),n==t&&(n=0),this.selectTabstop(n),n===0&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];t&&this.addTabstopMarkers(t),this.index=e,t=this.tabstops[this.index];if(!t||!t.length)return;this.selectedTabstop=t;var n=t.firstNonLinked||t;if(!this.editor.inVirtualSelectionMode){var r=this.editor.multiSelect;r.toSingleRange(n.clone());for(var i=0;i<t.length;i++){if(t.hasLinkedRanges&&t[i].linked)continue;r.addRange(t[i].clone(),!0)}r.ranges[0]&&r.addRange(r.ranges[0].clone())}else this.editor.selection.setRange(n);this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand(\"startAutocomplete\",{matches:this.selectedTabstop.choices})},this.addTabstops=function(e,t,n){var r=this.useLink||!this.editor.getOption(\"enableMultiselect\");this.$openTabstops||(this.$openTabstops=[]);if(!e[0]){var i=o.fromPoints(n,n);m(i.start,t),m(i.end,t),e[0]=[i],e[0].index=0}var s=this.index,a=[s+1,0],f=this.ranges;e.forEach(function(e,n){var i=this.$openTabstops[n]||e;for(var s=0;s<e.length;s++){var l=e[s],c=o.fromPoints(l.start,l.end||l.start);v(c.start,t),v(c.end,t),c.original=l,c.tabstop=i,f.push(c),i!=e?i.unshift(c):i[s]=c,l.fmtString||i.firstNonLinked&&r?(c.linked=!0,i.hasLinkedRanges=!0):i.firstNonLinked||(i.firstNonLinked=c)}i.firstNonLinked||(i.hasLinkedRanges=!1),i===e&&(a.push(i),this.$openTabstops[n]=i),this.addTabstopMarkers(i),i.rangeList=i.rangeList||new u,i.rangeList.$bias=0,i.rangeList.addList(i)},this),a.length>2&&(this.tabstops.length&&a.push(a.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,a))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){e.markerId||(e.markerId=t.addMarker(e,\"ace_snippet-marker\",\"text\"))})},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){t.removeMarker(e.markerId),e.markerId=null})},this.removeRange=function(e){var t=e.tabstop.indexOf(e);t!=-1&&e.tabstop.splice(t,1),t=this.ranges.indexOf(e),t!=-1&&this.ranges.splice(t,1),t=e.tabstop.rangeList.ranges.indexOf(e),t!=-1&&e.tabstop.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(t=this.tabstops.indexOf(e.tabstop),t!=-1&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new a,this.keyboardHandler.bindKeys({Tab:function(e){if(t.snippetManager&&t.snippetManager.expandWithTab(e))return;e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView()},\"Shift-Tab\":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}})}).call(d.prototype);var v=function(e,t){e.row==0&&(e.column+=t.column),e.row+=t.row},m=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e(\"./lib/dom\").importCssString(\".ace_snippet-marker {    -moz-box-sizing: border-box;    box-sizing: border-box;    background: rgba(194, 193, 208, 0.09);    border: 1px dotted rgba(211, 208, 235, 0.62);    position: absolute;}\"),t.snippetManager=new p;var g=e(\"./editor\").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(g.prototype)}),define(\"ace/ext/emmet\",[\"require\",\"exports\",\"module\",\"ace/keyboard/hash_handler\",\"ace/editor\",\"ace/snippets\",\"ace/range\",\"ace/config\",\"resources\",\"resources\",\"tabStops\",\"resources\",\"utils\",\"actions\"],function(e,t,n){\"use strict\";function l(){}var r=e(\"../keyboard/hash_handler\").HashHandler,i=e(\"../editor\").Editor,s=e(\"../snippets\").snippetManager,o=e(\"../range\").Range,u=e(\"../config\"),a,f;l.prototype={setupContext:function(e){this.ace=e,this.indentation=e.session.getTabString(),a||(a=window.emmet);var t=a.resources||a.require(\"resources\");t.setVariable(\"indentation\",this.indentation),this.$syntax=null,this.$syntax=this.getSyntax()},getSelectionRange:function(){var e=this.ace.getSelectionRange(),t=this.ace.session.doc;return{start:t.positionToIndex(e.start),end:t.positionToIndex(e.end)}},createSelection:function(e,t){var n=this.ace.session.doc;this.ace.selection.setRange({start:n.indexToPosition(e),end:n.indexToPosition(t)})},getCurrentLineRange:function(){var e=this.ace,t=e.getCursorPosition().row,n=e.session.getLine(t).length,r=e.session.doc.positionToIndex({row:t,column:0});return{start:r,end:r+n}},getCaretPos:function(){var e=this.ace.getCursorPosition();return this.ace.session.doc.positionToIndex(e)},setCaretPos:function(e){var t=this.ace.session.doc.indexToPosition(e);this.ace.selection.moveToPosition(t)},getCurrentLine:function(){var e=this.ace.getCursorPosition().row;return this.ace.session.getLine(e)},replaceContent:function(e,t,n,r){n==null&&(n=t==null?this.getContent().length:t),t==null&&(t=0);var i=this.ace,u=i.session.doc,a=o.fromPoints(u.indexToPosition(t),u.indexToPosition(n));i.session.remove(a),a.end=a.start,e=this.$updateTabstops(e),s.insertSnippet(i,e)},getContent:function(){return this.ace.getValue()},getSyntax:function(){if(this.$syntax)return this.$syntax;var e=this.ace.session.$modeId.split(\"/\").pop();if(e==\"html\"||e==\"php\"){var t=this.ace.getCursorPosition(),n=this.ace.session.getState(t.row);typeof n!=\"string\"&&(n=n[0]),n&&(n=n.split(\"-\"),n.length>1?e=n[0]:e==\"php\"&&(e=\"html\"))}return e},getProfileName:function(){var e=a.resources||a.require(\"resources\");switch(this.getSyntax()){case\"css\":return\"css\";case\"xml\":case\"xsl\":return\"xml\";case\"html\":var t=e.getVariable(\"profile\");return t||(t=this.ace.session.getLines(0,2).join(\"\").search(/<!DOCTYPE[^>]+XHTML/i)!=-1?\"xhtml\":\"html\"),t;default:var n=this.ace.session.$mode;return n.emmetConfig&&n.emmetConfig.profile||\"xhtml\"}},prompt:function(e){return prompt(e)},getSelection:function(){return this.ace.session.getTextRange()},getFilePath:function(){return\"\"},$updateTabstops:function(e){var t=1e3,n=0,r=null,i=a.tabStops||a.require(\"tabStops\"),s=a.resources||a.require(\"resources\"),o=s.getVocabulary(\"user\"),u={tabstop:function(e){var s=parseInt(e.group,10),o=s===0;o?s=++n:s+=t;var a=e.placeholder;a&&(a=i.processText(a,u));var f=\"${\"+s+(a?\":\"+a:\"\")+\"}\";return o&&(r=[e.start,f]),f},escape:function(e){return e==\"$\"?\"\\\\$\":e==\"\\\\\"?\"\\\\\\\\\":e}};e=i.processText(e,u);if(o.variables.insert_final_tabstop&&!/\\$\\{0\\}$/.test(e))e+=\"${0}\";else if(r){var f=a.utils?a.utils.common:a.require(\"utils\");e=f.replaceSubstring(e,\"${0}\",r[0],r[1])}return e}};var c={expand_abbreviation:{mac:\"ctrl+alt+e\",win:\"alt+e\"},match_pair_outward:{mac:\"ctrl+d\",win:\"ctrl+,\"},match_pair_inward:{mac:\"ctrl+j\",win:\"ctrl+shift+0\"},matching_pair:{mac:\"ctrl+alt+j\",win:\"alt+j\"},next_edit_point:\"alt+right\",prev_edit_point:\"alt+left\",toggle_comment:{mac:\"command+/\",win:\"ctrl+/\"},split_join_tag:{mac:\"shift+command+'\",win:\"shift+ctrl+`\"},remove_tag:{mac:\"command+'\",win:\"shift+ctrl+;\"},evaluate_math_expression:{mac:\"shift+command+y\",win:\"shift+ctrl+y\"},increment_number_by_1:\"ctrl+up\",decrement_number_by_1:\"ctrl+down\",increment_number_by_01:\"alt+up\",decrement_number_by_01:\"alt+down\",increment_number_by_10:{mac:\"alt+command+up\",win:\"shift+alt+up\"},decrement_number_by_10:{mac:\"alt+command+down\",win:\"shift+alt+down\"},select_next_item:{mac:\"shift+command+.\",win:\"shift+ctrl+.\"},select_previous_item:{mac:\"shift+command+,\",win:\"shift+ctrl+,\"},reflect_css_value:{mac:\"shift+command+r\",win:\"shift+ctrl+r\"},encode_decode_data_url:{mac:\"shift+ctrl+d\",win:\"ctrl+'\"},expand_abbreviation_with_tab:\"Tab\",wrap_with_abbreviation:{mac:\"shift+ctrl+a\",win:\"shift+ctrl+a\"}},h=new l;t.commands=new r,t.runEmmetCommand=function v(e){if(this.action==\"expand_abbreviation_with_tab\"){if(!e.selection.isEmpty())return!1;var n=e.selection.lead,r=e.session.getTokenAt(n.row,n.column);if(r&&/\\btag\\b/.test(r.type))return!1}try{h.setupContext(e);var i=a.actions||a.require(\"actions\");if(this.action==\"wrap_with_abbreviation\")return setTimeout(function(){i.run(\"wrap_with_abbreviation\",h)},0);var s=i.run(this.action,h)}catch(o){if(!a){var f=t.load(v.bind(this,e));return this.action==\"expand_abbreviation_with_tab\"?!1:f}e._signal(\"changeStatus\",typeof o==\"string\"?o:o.message),u.warn(o),s=!1}return s};for(var p in c)t.commands.addCommand({name:\"emmet:\"+p,action:p,bindKey:c[p],exec:t.runEmmetCommand,multiSelectAction:\"forEach\"});t.updateCommands=function(e,n){n?e.keyBinding.addKeyboardHandler(t.commands):e.keyBinding.removeKeyboardHandler(t.commands)},t.isSupportedMode=function(e){if(!e)return!1;if(e.emmetConfig)return!0;var t=e.$id||e;return/css|less|scss|sass|stylus|html|php|twig|ejs|handlebars/.test(t)},t.isAvailable=function(e,n){if(/(evaluate_math_expression|expand_abbreviation)$/.test(n))return!0;var r=e.session.$mode,i=t.isSupportedMode(r);if(i&&r.$modes)try{h.setupContext(e),/js|php/.test(h.getSyntax())&&(i=!1)}catch(s){}return i};var d=function(e,n){var r=n;if(!r)return;var i=t.isSupportedMode(r.session.$mode);e.enableEmmet===!1&&(i=!1),i&&t.load(),t.updateCommands(r,i)};t.load=function(e){return typeof f!=\"string\"?(u.warn(\"script for emmet-core is not loaded\"),!1):(u.loadModule(f,function(){f=null,e&&e()}),!0)},t.AceEmmetEditor=l,u.defineOptions(i.prototype,\"editor\",{enableEmmet:{set:function(e){this[e?\"on\":\"removeListener\"](\"changeMode\",d),d({enableEmmet:!!e},this)},value:!0}}),t.setCore=function(e){typeof e==\"string\"?f=e:a=e}});                (function() {\n                    window.require([\"ace/ext/emmet\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-error_marker.js",
    "content": ";                (function() {\n                    window.require([\"ace/ext/error_marker\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-keybinding_menu.js",
    "content": "define(\"ace/ext/menu_tools/overlay_page\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";var r=e(\"../../lib/dom\"),i=\"#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 100000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {vertical-align: middle;}.ace_optionsMenuEntry button[ace_selected_button=true] {background: #e7e7e7;box-shadow: 1px 0px 2px 0px #adadad inset;border-color: #adadad;}.ace_optionsMenuEntry button {background: white;border: 1px solid lightgray;margin: 0px;}.ace_optionsMenuEntry button:hover{background: #f0f0f0;}\";r.importCssString(i),n.exports.overlayPage=function(t,n,r){function o(e){e.keyCode===27&&u()}function u(){if(!i)return;document.removeEventListener(\"keydown\",o),i.parentNode.removeChild(i),t&&t.focus(),i=null,r&&r()}function a(e){s=e,e&&(i.style.pointerEvents=\"none\",n.style.pointerEvents=\"auto\")}var i=document.createElement(\"div\"),s=!1;return i.style.cssText=\"margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; \"+(t?\"background-color: rgba(0, 0, 0, 0.3);\":\"\"),i.addEventListener(\"click\",function(e){s||u()}),document.addEventListener(\"keydown\",o),n.addEventListener(\"click\",function(e){e.stopPropagation()}),i.appendChild(n),document.body.appendChild(i),t&&t.blur(),{close:u,setIgnoreFocusOut:a}}}),define(\"ace/ext/menu_tools/get_editor_keyboard_shortcuts\",[\"require\",\"exports\",\"module\",\"ace/lib/keys\"],function(e,t,n){\"use strict\";var r=e(\"../../lib/keys\");n.exports.getEditorKeybordShortcuts=function(e){var t=r.KEY_MODS,n=[],i={};return e.keyBinding.$handlers.forEach(function(e){var t=e.commandKeyBinding;for(var r in t){var s=r.replace(/(^|-)\\w/g,function(e){return e.toUpperCase()}),o=t[r];Array.isArray(o)||(o=[o]),o.forEach(function(e){typeof e!=\"string\"&&(e=e.name),i[e]?i[e].key+=\"|\"+s:(i[e]={key:s,command:e},n.push(i[e]))})}}),n}}),define(\"ace/ext/keybinding_menu\",[\"require\",\"exports\",\"module\",\"ace/editor\",\"ace/ext/menu_tools/overlay_page\",\"ace/ext/menu_tools/get_editor_keyboard_shortcuts\"],function(e,t,n){\"use strict\";function i(t){if(!document.getElementById(\"kbshortcutmenu\")){var n=e(\"./menu_tools/overlay_page\").overlayPage,r=e(\"./menu_tools/get_editor_keyboard_shortcuts\").getEditorKeybordShortcuts,i=r(t),s=document.createElement(\"div\"),o=i.reduce(function(e,t){return e+'<div class=\"ace_optionsMenuEntry\"><span class=\"ace_optionsMenuCommand\">'+t.command+\"</span> : \"+'<span class=\"ace_optionsMenuKey\">'+t.key+\"</span></div>\"},\"\");s.id=\"kbshortcutmenu\",s.innerHTML=\"<h1>Keyboard Shortcuts</h1>\"+o+\"</div>\",n(t,s)}}var r=e(\"../editor\").Editor;n.exports.init=function(e){r.prototype.showKeyboardShortcuts=function(){i(this)},e.commands.addCommands([{name:\"showKeyboardShortcuts\",bindKey:{win:\"Ctrl-Alt-h\",mac:\"Command-Alt-h\"},exec:function(e,t){e.showKeyboardShortcuts()}}])}});                (function() {\n                    window.require([\"ace/ext/keybinding_menu\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-language_tools.js",
    "content": "define(\"ace/snippets\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/event_emitter\",\"ace/lib/lang\",\"ace/range\",\"ace/range_list\",\"ace/keyboard/hash_handler\",\"ace/tokenizer\",\"ace/clipboard\",\"ace/lib/dom\",\"ace/editor\"],function(e,t,n){\"use strict\";function h(e){var t=(new Date).toLocaleString(\"en-us\",e);return t.length==1?\"0\"+t:t}var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=e(\"./lib/lang\"),o=e(\"./range\").Range,u=e(\"./range_list\").RangeList,a=e(\"./keyboard/hash_handler\").HashHandler,f=e(\"./tokenizer\").Tokenizer,l=e(\"./clipboard\"),c={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var r=e.session.getTextRange();return n?r.replace(/\\n\\r?([ \\t]*\\S)/g,\"\\n\"+n+\"$1\"):r},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?\"YES\":\"NO\"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return l.getText&&l.getText()},FILENAME:function(e){return/[^/\\\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\\\]*$/.exec(this.FILEPATH(e))[0].replace(/\\.[^.]*$/,\"\")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\\\]*$/,\"\")},FILEPATH:function(e){return\"/not implemented.txt\"},WORKSPACE_NAME:function(){return\"Unknown\"},FULLNAME:function(){return\"Unknown\"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||\"\"},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||\"\"},LINE_COMMENT:function(e){var t=e.session.$mode||{};return t.lineCommentStart||\"\"},CURRENT_YEAR:h.bind(null,{year:\"numeric\"}),CURRENT_YEAR_SHORT:h.bind(null,{year:\"2-digit\"}),CURRENT_MONTH:h.bind(null,{month:\"numeric\"}),CURRENT_MONTH_NAME:h.bind(null,{month:\"long\"}),CURRENT_MONTH_NAME_SHORT:h.bind(null,{month:\"short\"}),CURRENT_DATE:h.bind(null,{day:\"2-digit\"}),CURRENT_DAY_NAME:h.bind(null,{weekday:\"long\"}),CURRENT_DAY_NAME_SHORT:h.bind(null,{weekday:\"short\"}),CURRENT_HOUR:h.bind(null,{hour:\"2-digit\",hour12:!1}),CURRENT_MINUTE:h.bind(null,{minute:\"2-digit\"}),CURRENT_SECOND:h.bind(null,{second:\"2-digit\"})};c.SELECTED_TEXT=c.SELECTION;var p=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,i),this.getTokenizer=function(){return p.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(e){return e=e.substr(1),/^\\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return\"(?:[^\\\\\\\\\"+e+\"]|\\\\\\\\.)\"}var n={regex:\"/(\"+t(\"/\")+\"+)/\",onMatch:function(e,t,n){var r=n[0];return r.fmtString=!0,r.guard=e.slice(1,-1),r.flag=\"\",\"\"},next:\"formatString\"};return p.$tokenizer=new f({start:[{regex:/\\\\./,onMatch:function(e,t,n){var r=e[1];return r==\"}\"&&n.length?e=r:\"`$\\\\\".indexOf(r)!=-1&&(e=r),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\\$(?:\\d+|\\w+)/,onMatch:e},{regex:/\\$\\{[\\dA-Z_a-z]+/,onMatch:function(t,n,r){var i=e(t.substr(1));return r.unshift(i[0]),i},next:\"snippetVar\"},{regex:/\\n/,token:\"newline\",merge:!1}],snippetVar:[{regex:\"\\\\|\"+t(\"\\\\|\")+\"*\\\\|\",onMatch:function(e,t,n){var r=e.slice(1,-1).replace(/\\\\[,|\\\\]|,/g,function(e){return e.length==2?e[1]:\"\\0\"}).split(\"\\0\");return n[0].choices=r,[r[0]]},next:\"start\"},n,{regex:\"([^:}\\\\\\\\]|\\\\\\\\.)*:?\",token:\"\",next:\"start\"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):\":\"}},{regex:/\\\\./,onMatch:function(e,t,n){var r=e[1];return r==\"}\"&&n.length?e=r:\"`$\\\\\".indexOf(r)!=-1?e=r:r==\"n\"?e=\"\\n\":r==\"t\"?e=\"\t\":\"ulULE\".indexOf(r)!=-1&&(e={changeCase:r,local:r>\"a\"}),[e]}},{regex:\"/\\\\w*}\",onMatch:function(e,t,n){var r=n.shift();return r&&(r.flag=e.slice(1,-1)),this.next=r&&r.tabstopId?\"start\":\"\",[r||e]},next:\"start\"},{regex:/\\$(?:\\d+|\\w+)/,onMatch:function(e,t,n){return[{text:e.slice(1)}]}},{regex:/\\${\\w+/,onMatch:function(e,t,n){var r={text:e.slice(2)};return n.unshift(r),[r]},next:\"formatStringVar\"},{regex:/\\n/,token:\"newline\",merge:!1},{regex:/}/,onMatch:function(e,t,n){var r=n.shift();return this.next=r&&r.tabstopId?\"start\":\"\",[r||e]},next:\"start\"}],formatStringVar:[{regex:/:\\/\\w+}/,onMatch:function(e,t,n){var r=n[0];return r.formatFunction=e.slice(2,-1),[n.shift()]},next:\"formatString\"},n,{regex:/:[\\?\\-+]?/,onMatch:function(e,t,n){e[1]==\"+\"&&(n[0].ifEnd=n[0]),e[1]==\"?\"&&(n[0].expectElse=!0)},next:\"formatString\"},{regex:\"([^:}\\\\\\\\]|\\\\\\\\.)*:?\",token:\"\",next:\"formatString\"}]}),p.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},this.getVariableValue=function(e,t,n){if(/^\\d+$/.test(t))return(this.variables.__||{})[t]||\"\";if(/^[A-Z]\\d+$/.test(t))return(this.variables[t[0]+\"__\"]||{})[t.substr(1)]||\"\";t=t.replace(/^TM_/,\"\");if(!this.variables.hasOwnProperty(t))return\"\";var r=this.variables[t];return typeof r==\"function\"&&(r=this.variables[t](e,t,n)),r==null?\"\":r},this.variables=c,this.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var r=t.flag||\"\",i=t.guard;i=new RegExp(i,r.replace(/[^gim]/g,\"\"));var s=typeof t.fmt==\"string\"?this.tokenizeTmSnippet(t.fmt,\"formatString\"):t.fmt,o=this,u=e.replace(i,function(){var e=o.variables.__;o.variables.__=[].slice.call(arguments);var t=o.resolveVariables(s,n),r=\"E\";for(var i=0;i<t.length;i++){var u=t[i];if(typeof u==\"object\"){t[i]=\"\";if(u.changeCase&&u.local){var a=t[i+1];a&&typeof a==\"string\"&&(u.changeCase==\"u\"?t[i]=a[0].toUpperCase():t[i]=a[0].toLowerCase(),t[i+1]=a.substr(1))}else u.changeCase&&(r=u.changeCase)}else r==\"U\"?t[i]=u.toUpperCase():r==\"L\"&&(t[i]=u.toLowerCase())}return o.variables.__=e,t.join(\"\")});return u},this.tmFormatFunction=function(e,t,n){return t.formatFunction==\"upcase\"?e.toUpperCase():t.formatFunction==\"downcase\"?e.toLowerCase():e},this.resolveVariables=function(e,t){function f(t){var n=e.indexOf(t,s+1);n!=-1&&(s=n)}var n=[],r=\"\",i=!0;for(var s=0;s<e.length;s++){var o=e[s];if(typeof o==\"string\"){n.push(o),o==\"\\n\"?(i=!0,r=\"\"):i&&(r=/^\\t*/.exec(o)[0],i=/\\S/.test(o));continue}if(!o)continue;i=!1;if(o.fmtString){var u=e.indexOf(o,s+1);u==-1&&(u=e.length),o.fmt=e.slice(s+1,u),s=u}if(o.text){var a=this.getVariableValue(t,o.text,r)+\"\";o.fmtString&&(a=this.tmStrFormat(a,o,t)),o.formatFunction&&(a=this.tmFormatFunction(a,o,t)),a&&!o.ifEnd?(n.push(a),f(o)):!a&&o.ifEnd&&f(o.ifEnd)}else o.elseEnd?f(o.elseEnd):o.tabstopId!=null?n.push(o):o.changeCase!=null&&n.push(o)}return n},this.insertSnippetForSelection=function(e,t){function f(e){var t=[];for(var n=0;n<e.length;n++){var r=e[n];if(typeof r==\"object\"){if(a[r.tabstopId])continue;var i=e.lastIndexOf(r,n-1);r=t[i]||{tabstopId:r.tabstopId}}t[n]=r}return t}var n=e.getCursorPosition(),r=e.session.getLine(n.row),i=e.session.getTabString(),s=r.match(/^\\s*/)[0];n.column<s.length&&(s=s.slice(0,n.column)),t=t.replace(/\\r/g,\"\");var o=this.tokenizeTmSnippet(t);o=this.resolveVariables(o,e),o=o.map(function(e){return e==\"\\n\"?e+s:typeof e==\"string\"?e.replace(/\\t/g,i):e});var u=[];o.forEach(function(e,t){if(typeof e!=\"object\")return;var n=e.tabstopId,r=u[n];r||(r=u[n]=[],r.index=n,r.value=\"\",r.parents={});if(r.indexOf(e)!==-1)return;e.choices&&!r.choices&&(r.choices=e.choices),r.push(e);var i=o.indexOf(e,t+1);if(i===-1)return;var s=o.slice(t+1,i),a=s.some(function(e){return typeof e==\"object\"});a&&!r.value?r.value=s:s.length&&(!r.value||typeof r.value!=\"string\")&&(r.value=s.join(\"\"))}),u.forEach(function(e){e.length=0});var a={};for(var l=0;l<o.length;l++){var c=o[l];if(typeof c!=\"object\")continue;var h=c.tabstopId,p=u[h],v=o.indexOf(c,l+1);if(a[h]){a[h]===c&&(delete a[h],Object.keys(a).forEach(function(e){p.parents[e]=!0}));continue}a[h]=c;var m=p.value;typeof m!=\"string\"?m=f(m):c.fmt&&(m=this.tmStrFormat(m,c,e)),o.splice.apply(o,[l+1,Math.max(0,v-l)].concat(m,c)),p.indexOf(c)===-1&&p.push(c)}var g=0,y=0,b=\"\";o.forEach(function(e){if(typeof e==\"string\"){var t=e.split(\"\\n\");t.length>1?(y=t[t.length-1].length,g+=t.length-1):y+=e.length,b+=e}else e&&(e.start?e.end={row:g,column:y}:e.start={row:g,column:y})});var w=e.getSelectionRange(),E=e.session.replace(w,b),S=new d(e),x=e.inVirtualSelectionMode&&e.selection.index;S.addTabstops(u,w.start,E,x)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection(function(){n.insertSnippetForSelection(e,t)},null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||\"\";t=t.split(\"/\").pop();if(t===\"html\"||t===\"php\"){t===\"php\"&&!e.session.$mode.inlinePhp&&(t=\"html\");var n=e.getCursorPosition(),r=e.session.getState(n.row);typeof r==\"object\"&&(r=r[0]),r.substring&&(r.substring(0,3)==\"js-\"?t=\"javascript\":r.substring(0,4)==\"css-\"?t=\"css\":r.substring(0,4)==\"php-\"&&(t=\"php\"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],r=this.snippetMap;return r[t]&&r[t].includeScopes&&n.push.apply(n,r[t].includeScopes),n.push(\"_\"),n},this.expandWithTab=function(e,t){var n=this,r=e.forEachSelection(function(){return n.expandSnippetForSelection(e,t)},null,{keepOrder:!0});return r&&e.tabstopManager&&e.tabstopManager.tabNext(),r},this.expandSnippetForSelection=function(e,t){var n=e.getCursorPosition(),r=e.session.getLine(n.row),i=r.substring(0,n.column),s=r.substr(n.column),o=this.snippetMap,u;return this.getActiveScopes(e).some(function(e){var t=o[e];return t&&(u=this.findMatchingSnippet(t,i,s)),!!u},this),u?t&&t.dryRun?!0:(e.session.doc.removeInLine(n.row,n.column-u.replaceBefore.length,n.column+u.replaceAfter.length),this.variables.M__=u.matchBefore,this.variables.T__=u.matchAfter,this.insertSnippetForSelection(e,u.content),this.variables.M__=this.variables.T__=null,!0):!1},this.findMatchingSnippet=function(e,t,n){for(var r=e.length;r--;){var i=e[r];if(i.startRe&&!i.startRe.test(t))continue;if(i.endRe&&!i.endRe.test(n))continue;if(!i.startRe&&!i.endRe)continue;return i.matchBefore=i.startRe?i.startRe.exec(t):[\"\"],i.matchAfter=i.endRe?i.endRe.exec(n):[\"\"],i.replaceBefore=i.triggerRe?i.triggerRe.exec(t)[0]:\"\",i.replaceAfter=i.endTriggerRe?i.endTriggerRe.exec(n)[0]:\"\",i}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){function o(e){return e&&!/^\\^?\\(.*\\)\\$?$|^\\\\b$/.test(e)&&(e=\"(?:\"+e+\")\"),e||\"\"}function u(e,t,n){return e=o(e),t=o(t),n?(e=t+e,e&&e[e.length-1]!=\"$\"&&(e+=\"$\")):(e+=t,e&&e[0]!=\"^\"&&(e=\"^\"+e)),new RegExp(e)}function a(e){e.scope||(e.scope=t||\"_\"),t=e.scope,n[t]||(n[t]=[],r[t]={});var o=r[t];if(e.name){var a=o[e.name];a&&i.unregister(a),o[e.name]=e}n[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join(\"\\n\"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\\w/.test(e.tabTrigger)&&(e.guard=\"\\\\b\"),e.trigger=s.escapeRegExp(e.tabTrigger));if(!e.trigger&&!e.guard&&!e.endTrigger&&!e.endGuard)return;e.startRe=u(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=u(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger)}var n=this.snippetMap,r=this.snippetNameMap,i=this;e||(e=[]),Array.isArray(e)?e.forEach(a):Object.keys(e).forEach(function(t){a(e[t])}),this._signal(\"registerSnippets\",{scope:t})},this.unregister=function(e,t){function i(e){var i=r[e.scope||t];if(i&&i[e.name]){delete i[e.name];var s=n[e.scope||t],o=s&&s.indexOf(e);o>=0&&s.splice(o,1)}}var n=this.snippetMap,r=this.snippetNameMap;e.content?i(e):Array.isArray(e)&&e.forEach(i)},this.parseSnippetFile=function(e){e=e.replace(/\\r/g,\"\");var t=[],n={},r=/^#.*|^({[\\s\\S]*})\\s*$|^(\\S+) (.*)$|^((?:\\n*\\t.*)+)/gm,i;while(i=r.exec(e)){if(i[1])try{n=JSON.parse(i[1]),t.push(n)}catch(s){}if(i[4])n.content=i[4].replace(/^\\t/gm,\"\"),t.push(n),n={};else{var o=i[2],u=i[3];if(o==\"regex\"){var a=/\\/((?:[^\\/\\\\]|\\\\.)*)|$/g;n.guard=a.exec(u)[1],n.trigger=a.exec(u)[1],n.endTrigger=a.exec(u)[1],n.endGuard=a.exec(u)[1]}else o==\"snippet\"?(n.tabTrigger=u.match(/^\\S*/)[0],n.name||(n.name=u)):o&&(n[o]=u)}}return t},this.getSnippetByName=function(e,t){var n=this.snippetNameMap,r;return this.getActiveScopes(t).some(function(t){var i=n[t];return i&&(r=i[e]),!!r},this),r}}).call(p.prototype);var d=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on(\"change\",this.$onChange),this.editor.on(\"changeSelection\",this.$onChangeSelection),this.editor.on(\"changeSession\",this.$onChangeSession),this.editor.commands.on(\"afterExec\",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener(\"change\",this.$onChange),this.editor.removeListener(\"changeSelection\",this.$onChangeSelection),this.editor.removeListener(\"changeSession\",this.$onChangeSession),this.editor.commands.removeListener(\"afterExec\",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t=e.action[0]==\"r\",n=this.selectedTabstop||{},r=n.parents||{},i=(this.tabstops||[]).slice();for(var s=0;s<i.length;s++){var o=i[s],u=o==n||r[o.index];o.rangeList.$bias=u?0:1;if(e.action==\"remove\"&&o!==n){var a=o.parents&&o.parents[n.index],f=o.rangeList.pointIndex(e.start,a);f=f<0?-f-1:f+1;var l=o.rangeList.pointIndex(e.end,a);l=l<0?-l-1:l-1;var c=o.rangeList.ranges.slice(f,l);for(var h=0;h<c.length;h++)this.removeRange(c[h])}o.rangeList.$onChange(e)}var p=this.editor.session;!this.$inChange&&t&&p.getLength()==1&&!p.getValue()&&this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(!e||!e.hasLinkedRanges||!e.firstNonLinked)return;this.$inChange=!0;var n=this.editor.session,r=n.getTextRange(e.firstNonLinked);for(var i=0;i<e.length;i++){var s=e[i];if(!s.linked)continue;var o=s.original,u=t.snippetManager.tmStrFormat(r,o,this.editor);n.replace(s,u)}this.$inChange=!1},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(!this.editor)return;var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty();for(var r=0;r<this.ranges.length;r++){if(this.ranges[r].linked)continue;var i=this.ranges[r].contains(e.row,e.column),s=n||this.ranges[r].contains(t.row,t.column);if(i&&s)return}this.detach()},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);n=Math.min(Math.max(n,1),t),n==t&&(n=0),this.selectTabstop(n),n===0&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];t&&this.addTabstopMarkers(t),this.index=e,t=this.tabstops[this.index];if(!t||!t.length)return;this.selectedTabstop=t;var n=t.firstNonLinked||t;if(!this.editor.inVirtualSelectionMode){var r=this.editor.multiSelect;r.toSingleRange(n.clone());for(var i=0;i<t.length;i++){if(t.hasLinkedRanges&&t[i].linked)continue;r.addRange(t[i].clone(),!0)}r.ranges[0]&&r.addRange(r.ranges[0].clone())}else this.editor.selection.setRange(n);this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand(\"startAutocomplete\",{matches:this.selectedTabstop.choices})},this.addTabstops=function(e,t,n){var r=this.useLink||!this.editor.getOption(\"enableMultiselect\");this.$openTabstops||(this.$openTabstops=[]);if(!e[0]){var i=o.fromPoints(n,n);m(i.start,t),m(i.end,t),e[0]=[i],e[0].index=0}var s=this.index,a=[s+1,0],f=this.ranges;e.forEach(function(e,n){var i=this.$openTabstops[n]||e;for(var s=0;s<e.length;s++){var l=e[s],c=o.fromPoints(l.start,l.end||l.start);v(c.start,t),v(c.end,t),c.original=l,c.tabstop=i,f.push(c),i!=e?i.unshift(c):i[s]=c,l.fmtString||i.firstNonLinked&&r?(c.linked=!0,i.hasLinkedRanges=!0):i.firstNonLinked||(i.firstNonLinked=c)}i.firstNonLinked||(i.hasLinkedRanges=!1),i===e&&(a.push(i),this.$openTabstops[n]=i),this.addTabstopMarkers(i),i.rangeList=i.rangeList||new u,i.rangeList.$bias=0,i.rangeList.addList(i)},this),a.length>2&&(this.tabstops.length&&a.push(a.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,a))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){e.markerId||(e.markerId=t.addMarker(e,\"ace_snippet-marker\",\"text\"))})},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){t.removeMarker(e.markerId),e.markerId=null})},this.removeRange=function(e){var t=e.tabstop.indexOf(e);t!=-1&&e.tabstop.splice(t,1),t=this.ranges.indexOf(e),t!=-1&&this.ranges.splice(t,1),t=e.tabstop.rangeList.ranges.indexOf(e),t!=-1&&e.tabstop.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(t=this.tabstops.indexOf(e.tabstop),t!=-1&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new a,this.keyboardHandler.bindKeys({Tab:function(e){if(t.snippetManager&&t.snippetManager.expandWithTab(e))return;e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView()},\"Shift-Tab\":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}})}).call(d.prototype);var v=function(e,t){e.row==0&&(e.column+=t.column),e.row+=t.row},m=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e(\"./lib/dom\").importCssString(\".ace_snippet-marker {    -moz-box-sizing: border-box;    box-sizing: border-box;    background: rgba(194, 193, 208, 0.09);    border: 1px dotted rgba(211, 208, 235, 0.62);    position: absolute;}\"),t.snippetManager=new p;var g=e(\"./editor\").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(g.prototype)}),define(\"ace/autocomplete/popup\",[\"require\",\"exports\",\"module\",\"ace/virtual_renderer\",\"ace/editor\",\"ace/range\",\"ace/lib/event\",\"ace/lib/lang\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";var r=e(\"../virtual_renderer\").VirtualRenderer,i=e(\"../editor\").Editor,s=e(\"../range\").Range,o=e(\"../lib/event\"),u=e(\"../lib/lang\"),a=e(\"../lib/dom\"),f=function(e){var t=new r(e);t.$maxLines=4;var n=new i(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n},l=function(e){var t=a.createElement(\"div\"),n=new f(t);e&&e.appendChild(t),t.style.display=\"none\",n.renderer.content.style.cursor=\"default\",n.renderer.setStyle(\"ace_autocomplete\"),n.setOption(\"displayIndentGuides\",!1),n.setOption(\"dragDelay\",150);var r=function(){};n.focus=r,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=r,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(\"\"),n.session.$searchHighlight.clazz=\"ace_highlight-marker\",n.on(\"mousedown\",function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),c.start.row=c.end.row=t.row,e.stop()});var i,l=new s(-1,0,-1,Infinity),c=new s(-1,0,-1,Infinity);c.id=n.session.addMarker(c,\"ace_active-line\",\"fullLine\"),n.setSelectOnHover=function(e){e?l.id&&(n.session.removeMarker(l.id),l.id=null):l.id=n.session.addMarker(l,\"ace_line-hover\",\"fullLine\")},n.setSelectOnHover(!1),n.on(\"mousemove\",function(e){if(!i){i=e;return}if(i.x==e.x&&i.y==e.y)return;i=e,i.scrollTop=n.renderer.scrollTop;var t=i.getDocumentPosition().row;l.start.row!=t&&(l.id||n.setRow(t),p(t))}),n.renderer.on(\"beforeRender\",function(){if(i&&l.start.row!=-1){i.$pos=null;var e=i.getDocumentPosition().row;l.id||n.setRow(e),p(e,!0)}}),n.renderer.on(\"afterRender\",function(){var e=n.getRow(),t=n.renderer.$textLayer,r=t.element.childNodes[e-t.config.firstRow];r!==t.selectedNode&&t.selectedNode&&a.removeCssClass(t.selectedNode,\"ace_selected\"),t.selectedNode=r,r&&a.addCssClass(r,\"ace_selected\")});var h=function(){p(-1)},p=function(e,t){e!==l.start.row&&(l.start.row=l.end.row=e,t||n.session._emit(\"changeBackMarker\"),n._emit(\"changeHoverMarker\"))};n.getHoveredRow=function(){return l.start.row},o.addListener(n.container,\"mouseout\",h),n.on(\"hide\",h),n.on(\"changeSelection\",h),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return typeof t==\"string\"?t:t&&t.value||\"\"};var d=n.session.bgTokenizer;return d.$tokenizeRow=function(e){function s(e,n){e&&r.push({type:(t.className||\"\")+(n||\"\"),value:e})}var t=n.data[e],r=[];if(!t)return r;typeof t==\"string\"&&(t={value:t});var i=t.caption||t.value||t.name,o=i.toLowerCase(),u=(n.filterText||\"\").toLowerCase(),a=0,f=0;for(var l=0;l<=u.length;l++)if(l!=f&&(t.matchMask&1<<l||l==u.length)){var c=u.slice(f,l);f=l;var h=o.indexOf(c,a);if(h==-1)continue;s(i.slice(a,h),\"\"),a=h+c.length,s(i.slice(h,a),\"completion-highlight\")}return s(i.slice(a,i.length),\"\"),t.meta&&r.push({type:\"completion-meta\",value:t.meta}),t.message&&r.push({type:\"completion-message\",value:t.message}),r},d.$updateOnChange=r,d.start=r,n.session.$computeWidth=function(){return this.screenWidth=0},n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.filterText=\"\",n.data=[],n.setData=function(e,t){n.filterText=t||\"\",n.setValue(u.stringRepeat(\"\\n\",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return c.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,e)),c.start.row!=e&&(n.selection.clearSelection(),c.start.row=c.end.row=e||0,n.session._emit(\"changeBackMarker\"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal(\"select\"))},n.on(\"changeSelection\",function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()}),n.hide=function(){this.container.style.display=\"none\",this._signal(\"hide\"),n.isOpen=!1},n.show=function(e,t,r){var s=this.container,o=window.innerHeight,u=window.innerWidth,a=this.renderer,f=a.$maxLines*t*1.4,l=e.top+this.$borderSize,c=l>o/2&&!r;c&&l+t+f>o?(a.$maxPixelHeight=l-2*this.$borderSize,s.style.top=\"\",s.style.bottom=o-l+\"px\",n.isTopdown=!1):(l+=t,a.$maxPixelHeight=o-l-.2*t,s.style.top=l+\"px\",s.style.bottom=\"\",n.isTopdown=!0),s.style.display=\"\";var h=e.left;h+s.offsetWidth>u&&(h=u-s.offsetWidth),s.style.left=h+\"px\",this._signal(\"show\"),i=null,n.isOpen=!0},n.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case\"up\":t=t<=0?n:t-1;break;case\"down\":t=t>=n?-1:t+1;break;case\"start\":t=0;break;case\"end\":t=n}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n};a.importCssString(\".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {    background-color: #CAD6FA;    z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {    background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover {    border: 1px solid #abbffe;    margin-top: -1px;    background: rgba(233,233,253,0.4);    position: absolute;    z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {    border: 1px solid rgba(109, 150, 13, 0.8);    background: rgba(58, 103, 78, 0.62);}.ace_completion-meta {    opacity: 0.5;    margin: 0.9em;}.ace_completion-message {    color: blue;}.ace_editor.ace_autocomplete .ace_completion-highlight{    color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{    color: #93ca12;}.ace_editor.ace_autocomplete {    width: 300px;    z-index: 200000;    border: 1px lightgray solid;    position: fixed;    box-shadow: 2px 3px 5px rgba(0,0,0,.2);    line-height: 1.4;    background: #fefefe;    color: #111;}.ace_dark.ace_editor.ace_autocomplete {    border: 1px #484747 solid;    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);    line-height: 1.4;    background: #25282c;    color: #c1c1c1;}\",\"autocompletion.css\"),t.AcePopup=l,t.$singleLineEditor=f}),define(\"ace/autocomplete/util\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";t.parForEach=function(e,t,n){var r=0,i=e.length;i===0&&n();for(var s=0;s<i;s++)t(e[s],function(e,t){r++,r===i&&n(e,t)})};var r=/[a-zA-Z_0-9\\$\\-\\u00A2-\\u2000\\u2070-\\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||r;var i=[];for(var s=t-1;s>=0;s--){if(!n.test(e[s]))break;i.push(e[s])}return i.reverse().join(\"\")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||r;var i=[];for(var s=t;s<e.length;s++){if(!n.test(e[s]))break;i.push(e[s])}return i},t.getCompletionPrefix=function(e){var t=e.getCursorPosition(),n=e.session.getLine(t.row),r;return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!r&&e&&(r=this.retrievePrecedingIdentifier(n,t.column,e))}.bind(this))}.bind(this)),r||this.retrievePrecedingIdentifier(n,t.column)}}),define(\"ace/autocomplete\",[\"require\",\"exports\",\"module\",\"ace/keyboard/hash_handler\",\"ace/autocomplete/popup\",\"ace/autocomplete/util\",\"ace/lib/lang\",\"ace/lib/dom\",\"ace/snippets\",\"ace/config\"],function(e,t,n){\"use strict\";var r=e(\"./keyboard/hash_handler\").HashHandler,i=e(\"./autocomplete/popup\").AcePopup,s=e(\"./autocomplete/util\"),o=e(\"./lib/lang\"),u=e(\"./lib/dom\"),a=e(\"./snippets\").snippetManager,f=e(\"./config\"),l=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=o.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=o.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new i(document.body||document.documentElement),this.popup.on(\"click\",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on(\"show\",this.tooltipTimer.bind(null,null)),this.popup.on(\"select\",this.tooltipTimer.bind(null,null)),this.popup.on(\"changeHoverMarker\",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered,this.completions.filterText),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var r=e.renderer;this.popup.setRow(this.autoSelect?0:-1);if(!n){this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var i=r.layerConfig.lineHeight,s=r.$cursorLayer.getPixelPosition(this.base,!0);s.left-=this.popup.getTextLeftOffset();var o=e.container.getBoundingClientRect();s.top+=o.top-r.layerConfig.offset,s.left+=o.left-e.renderer.scrollLeft,s.left+=r.gutterWidth,this.popup.show(s,i)}else n&&!t&&this.detach()},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off(\"changeSelection\",this.changeListener),this.editor.off(\"blur\",this.blurListener),this.editor.off(\"mousedown\",this.mousedownListener),this.editor.off(\"mousewheel\",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),r=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),i=this.popup&&this.popup.container;t!=n&&t.parentNode!=i&&!r&&t!=this.tooltipNode&&e.relatedTarget!=n&&this.detach()},this.mousedownListener=function(e){this.detach()},this.mousewheelListener=function(e){this.detach()},this.goTo=function(e){this.popup.goTo(e)},this.insertMatch=function(e,t){e||(e=this.popup.getData(this.popup.getRow()));if(!e)return!1;this.editor.startOperation({command:{name:\"insertMatch\"}});if(e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(this.completions.filterText){var n=this.editor.selection.getAllRanges();for(var r=0,i;i=n[r];r++)i.start.column-=this.completions.filterText.length,this.editor.session.remove(i)}e.snippet?a.insertSnippet(this.editor,e.snippet):this.editor.execCommand(\"insertstring\",e.value||e)}this.detach(),this.editor.endOperation()},this.commands={Up:function(e){e.completer.goTo(\"up\")},Down:function(e){e.completer.goTo(\"down\")},\"Ctrl-Up|Ctrl-Home\":function(e){e.completer.goTo(\"start\")},\"Ctrl-Down|Ctrl-End\":function(e){e.completer.goTo(\"end\")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},\"Shift-Return\":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(!!t||!!e.tabstopManager)return t;e.completer.goTo(\"down\")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(e,t){var n=e.getSession(),r=e.getCursorPosition(),i=s.getCompletionPrefix(e);this.base=n.doc.createAnchor(r.row,r.column-i.length),this.base.$insertRight=!0;var o=[],u=e.completers.length;return e.completers.forEach(function(a,f){a.getCompletions(e,n,r,i,function(n,r){!n&&r&&(o=o.concat(r)),t(null,{prefix:s.getCompletionPrefix(e),matches:o,finished:--u===0})})}),!0},this.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on(\"changeSelection\",this.changeListener),e.on(\"blur\",this.blurListener),e.on(\"mousedown\",this.mousedownListener),e.on(\"mousewheel\",this.mousewheelListener),this.updateCompletions(!1,t)},this.updateCompletions=function(e,t){if(e&&this.base&&this.completions){var n=this.editor.getCursorPosition(),r=this.editor.session.getTextRange({start:this.base,end:n});if(r==this.completions.filterText)return;this.completions.setFilter(r);if(!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==r&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,r,e);return}if(t&&t.matches){var n=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(n.row,n.column),this.base.$insertRight=!0,this.completions=new c(t.matches),this.openPopup(this.editor,\"\",e)}var i=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(t,n){var r=function(){if(!n.finished)return;return this.detach()}.bind(this),s=n.prefix,o=n&&n.matches;if(!o||!o.length)return r();if(s.indexOf(n.prefix)!==0||i!=this.gatherCompletionsId)return;this.completions=new c(o),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(s);var u=this.completions.filtered;if(!u.length)return r();if(u.length==1&&u[0].value==s&&!u[0].snippet)return r();if(this.autoInsert&&u.length==1&&n.finished)return this.insertMatch(u[0]);this.openPopup(this.editor,s,e)}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),r=null;if(!n||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();this.editor.completers.some(function(e){return e.getDocTooltip&&(r=e.getDocTooltip(n)),r}),!r&&typeof n!=\"string\"&&(r=n),typeof r==\"string\"&&(r={docText:r});if(!r||!r.docHTML&&!r.docText)return this.hideDocTooltip();this.showDocTooltip(r)},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=u.createElement(\"div\"),this.tooltipNode.className=\"ace_tooltip ace_doc-tooltip\",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents=\"auto\",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,r=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,t.style.display=\"block\",window.innerWidth-r.right<320?r.left<320?n.isTopdown?(t.style.top=r.bottom+\"px\",t.style.left=r.left+\"px\",t.style.right=\"\",t.style.bottom=\"\"):(t.style.top=n.container.offsetTop-t.offsetHeight+\"px\",t.style.left=r.left+\"px\",t.style.right=\"\",t.style.bottom=\"\"):(t.style.right=window.innerWidth-r.left+\"px\",t.style.left=\"\"):(t.style.left=r.right+1+\"px\",t.style.right=\"\")},this.hideDocTooltip=function(){this.tooltipTimer.cancel();if(!this.tooltipNode)return;var e=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==e&&this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)},this.onTooltipClick=function(e){var t=e.target;while(t&&t!=this.tooltipNode){if(t.nodeName==\"A\"&&t.href){t.rel=\"noreferrer\",t.target=\"_blank\";break}t=t.parentNode}},this.destroy=function(){this.detach();if(this.popup){this.popup.destroy();var e=this.popup.container;e&&e.parentNode&&e.parentNode.removeChild(e)}this.editor&&this.editor.completer==this&&this.editor.completer==null,this.popup=null}}).call(l.prototype),l.for=function(e){return e.completer?e.completer:(f.get(\"sharedPopups\")?(l.$shared||(l.$sharedInstance=new l),e.completer=l.$sharedInstance):(e.completer=new l,e.once(\"destroy\",function(e,t){t.completer.destroy()})),e.completer)},l.startCommand={name:\"startAutocomplete\",exec:function(e,t){var n=l.for(e);n.autoInsert=!1,n.autoSelect=!0,n.showPopup(e,t),n.cancelContextMenu()},bindKey:\"Ctrl-Space|Ctrl-Shift-Space|Alt-Space\"};var c=function(e,t){this.all=e,this.filtered=e,this.filterText=t||\"\",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&e.lastIndexOf(this.filterText,0)===0)var t=this.filtered;else var t=this.all;this.filterText=e,t=this.filterCompletions(t,this.filterText),t=t.sort(function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)});var n=null;t=t.filter(function(e){var t=e.snippet||e.caption||e.value;return t===n?!1:(n=t,!0)}),this.filtered=t},this.filterCompletions=function(e,t){var n=[],r=t.toUpperCase(),i=t.toLowerCase();e:for(var s=0,o;o=e[s];s++){var u=o.caption||o.value||o.snippet;if(!u)continue;var a=-1,f=0,l=0,c,h;if(this.exactMatch){if(t!==u.substr(0,t.length))continue e}else{var p=u.toLowerCase().indexOf(i);if(p>-1)l=p;else for(var d=0;d<t.length;d++){var v=u.indexOf(i[d],a+1),m=u.indexOf(r[d],a+1);c=v>=0?m<0||v<m?v:m:m;if(c<0)continue e;h=c-a-1,h>0&&(a===-1&&(l+=10),l+=h,f|=1<<d),a=c}}o.matchMask=f,o.exactMatch=l?0:1,o.$score=(o.score||0)-l,n.push(o)}return n}}).call(c.prototype),t.Autocomplete=l,t.FilteredList=c}),define(\"ace/autocomplete/text_completer\",[\"require\",\"exports\",\"module\",\"ace/range\"],function(e,t,n){function s(e,t){var n=e.getTextRange(r.fromPoints({row:0,column:0},t));return n.split(i).length-1}function o(e,t){var n=s(e,t),r=e.getValue().split(i),o=Object.create(null),u=r[n];return r.forEach(function(e,t){if(!e||e===u)return;var i=Math.abs(n-t),s=r.length-i;o[e]?o[e]=Math.max(s,o[e]):o[e]=s}),o}var r=e(\"../range\").Range,i=/[^a-zA-Z_0-9\\$\\-\\u00C0-\\u1FFF\\u2C00-\\uD7FF\\w]+/;t.getCompletions=function(e,t,n,r,i){var s=o(t,n),u=Object.keys(s);i(null,u.map(function(e){return{caption:e,value:e,score:s[e],meta:\"local\"}}))}}),define(\"ace/ext/language_tools\",[\"require\",\"exports\",\"module\",\"ace/snippets\",\"ace/autocomplete\",\"ace/config\",\"ace/lib/lang\",\"ace/autocomplete/util\",\"ace/autocomplete/text_completer\",\"ace/editor\",\"ace/config\"],function(e,t,n){\"use strict\";var r=e(\"../snippets\").snippetManager,i=e(\"../autocomplete\").Autocomplete,s=e(\"../config\"),o=e(\"../lib/lang\"),u=e(\"../autocomplete/util\"),a=e(\"../autocomplete/text_completer\"),f={getCompletions:function(e,t,n,r,i){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,r,i);var s=e.session.getState(n.row),o=t.$mode.getCompletions(s,t,n,r);i(null,o)}},l={getCompletions:function(e,t,n,i,s){var o=[],u=t.getTokenAt(n.row,n.column);u&&u.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\\.xml$/)?o.push(\"html-tag\"):o=r.getActiveScopes(e);var a=r.snippetMap,f=[];o.forEach(function(e){var t=a[e]||[];for(var n=t.length;n--;){var r=t[n],i=r.name||r.tabTrigger;if(!i)continue;f.push({caption:i,snippet:r.content,meta:r.tabTrigger&&!r.name?r.tabTrigger+\"\\u21e5 \":\"snippet\",type:\"snippet\"})}},this),s(null,f)},getDocTooltip:function(e){e.type==\"snippet\"&&!e.docHTML&&(e.docHTML=[\"<b>\",o.escapeHTML(e.caption),\"</b>\",\"<hr></hr>\",o.escapeHTML(e.snippet)].join(\"\"))}},c=[l,a,f];t.setCompleters=function(e){c.length=0,e&&c.push.apply(c,e)},t.addCompleter=function(e){c.push(e)},t.textCompleter=a,t.keyWordCompleter=f,t.snippetCompleter=l;var h={name:\"expandSnippet\",exec:function(e){return r.expandWithTab(e)},bindKey:\"Tab\"},p=function(e,t){d(t.session.$mode)},d=function(e){typeof e==\"string\"&&(e=s.$modes[e]);if(!e)return;r.files||(r.files={}),v(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(d)},v=function(e,t){if(!t||!e||r.files[e])return;r.files[e]={},s.loadModule(t,function(t){if(!t)return;r.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=r.parseSnippetFile(t.snippetText)),r.register(t.snippets||[],t.scope),t.includeScopes&&(r.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach(function(e){d(\"ace/mode/\"+e)}))})},m=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if(e.command.name===\"backspace\")n&&!u.getCompletionPrefix(t)&&t.completer.detach();else if(e.command.name===\"insertstring\"){var r=u.getCompletionPrefix(t);if(r&&!n){var s=i.for(t);s.autoInsert=!1,s.showPopup(t)}}},g=e(\"../editor\").Editor;e(\"../config\").defineOptions(g.prototype,\"editor\",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:c),this.commands.addCommand(i.startCommand)):this.commands.removeCommand(i.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:c),this.commands.on(\"afterExec\",m)):this.commands.removeListener(\"afterExec\",m)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(h),this.on(\"changeMode\",p),p(null,this)):(this.commands.removeCommand(h),this.off(\"changeMode\",p))},value:!1}})});                (function() {\n                    window.require([\"ace/ext/language_tools\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-linking.js",
    "content": "define(\"ace/ext/linking\",[\"require\",\"exports\",\"module\",\"ace/editor\",\"ace/config\"],function(e,t,n){function i(e){var n=e.editor,r=e.getAccelKey();if(r){var n=e.editor,i=e.getDocumentPosition(),s=n.session,o=s.getTokenAt(i.row,i.column);t.previousLinkingHover&&t.previousLinkingHover!=o&&n._emit(\"linkHoverOut\"),n._emit(\"linkHover\",{position:i,token:o}),t.previousLinkingHover=o}else t.previousLinkingHover&&(n._emit(\"linkHoverOut\"),t.previousLinkingHover=!1)}function s(e){var t=e.getAccelKey(),n=e.getButton();if(n==0&&t){var r=e.editor,i=e.getDocumentPosition(),s=r.session,o=s.getTokenAt(i.row,i.column);r._emit(\"linkClick\",{position:i,token:o})}}var r=e(\"../editor\").Editor;e(\"../config\").defineOptions(r.prototype,\"editor\",{enableLinking:{set:function(e){e?(this.on(\"click\",s),this.on(\"mousemove\",i)):(this.off(\"click\",s),this.off(\"mousemove\",i))},value:!1}}),t.previousLinkingHover=!1});                (function() {\n                    window.require([\"ace/ext/linking\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-modelist.js",
    "content": "define(\"ace/ext/modelist\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";function i(e){var t=a.text,n=e.split(/[\\/\\\\]/).pop();for(var i=0;i<r.length;i++)if(r[i].supportsFile(n)){t=r[i];break}return t}var r=[],s=function(e,t,n){this.name=e,this.caption=t,this.mode=\"ace/mode/\"+e,this.extensions=n;var r;/\\^/.test(n)?r=n.replace(/\\|(\\^)?/g,function(e,t){return\"$|\"+(t?\"^\":\"^.*\\\\.\")})+\"$\":r=\"^.*\\\\.(\"+n+\")$\",this.extRe=new RegExp(r,\"gi\")};s.prototype.supportsFile=function(e){return e.match(this.extRe)};var o={ABAP:[\"abap\"],ABC:[\"abc\"],ActionScript:[\"as\"],ADA:[\"ada|adb\"],Alda:[\"alda\"],Apache_Conf:[\"^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd\"],Apex:[\"apex|cls|trigger|tgr\"],AQL:[\"aql\"],AsciiDoc:[\"asciidoc|adoc\"],ASL:[\"dsl|asl\"],Assembly_x86:[\"asm|a\"],AutoHotKey:[\"ahk\"],BatchFile:[\"bat|cmd\"],C_Cpp:[\"cpp|c|cc|cxx|h|hh|hpp|ino\"],C9Search:[\"c9search_results\"],Cirru:[\"cirru|cr\"],Clojure:[\"clj|cljs\"],Cobol:[\"CBL|COB\"],coffee:[\"coffee|cf|cson|^Cakefile\"],ColdFusion:[\"cfm\"],Crystal:[\"cr\"],CSharp:[\"cs\"],Csound_Document:[\"csd\"],Csound_Orchestra:[\"orc\"],Csound_Score:[\"sco\"],CSS:[\"css\"],Curly:[\"curly\"],D:[\"d|di\"],Dart:[\"dart\"],Diff:[\"diff|patch\"],Dockerfile:[\"^Dockerfile\"],Dot:[\"dot\"],Drools:[\"drl\"],Edifact:[\"edi\"],Eiffel:[\"e|ge\"],EJS:[\"ejs\"],Elixir:[\"ex|exs\"],Elm:[\"elm\"],Erlang:[\"erl|hrl\"],Forth:[\"frt|fs|ldr|fth|4th\"],Fortran:[\"f|f90\"],FSharp:[\"fsi|fs|ml|mli|fsx|fsscript\"],FSL:[\"fsl\"],FTL:[\"ftl\"],Gcode:[\"gcode\"],Gherkin:[\"feature\"],Gitignore:[\"^.gitignore\"],Glsl:[\"glsl|frag|vert\"],Gobstones:[\"gbs\"],golang:[\"go\"],GraphQLSchema:[\"gql\"],Groovy:[\"groovy\"],HAML:[\"haml\"],Handlebars:[\"hbs|handlebars|tpl|mustache\"],Haskell:[\"hs\"],Haskell_Cabal:[\"cabal\"],haXe:[\"hx\"],Hjson:[\"hjson\"],HTML:[\"html|htm|xhtml|vue|we|wpy\"],HTML_Elixir:[\"eex|html.eex\"],HTML_Ruby:[\"erb|rhtml|html.erb\"],INI:[\"ini|conf|cfg|prefs\"],Io:[\"io\"],Jack:[\"jack\"],Jade:[\"jade|pug\"],Java:[\"java\"],JavaScript:[\"js|jsm|jsx\"],JSON:[\"json\"],JSON5:[\"json5\"],JSONiq:[\"jq\"],JSP:[\"jsp\"],JSSM:[\"jssm|jssm_state\"],JSX:[\"jsx\"],Julia:[\"jl\"],Kotlin:[\"kt|kts\"],LaTeX:[\"tex|latex|ltx|bib\"],LESS:[\"less\"],Liquid:[\"liquid\"],Lisp:[\"lisp\"],LiveScript:[\"ls\"],LogiQL:[\"logic|lql\"],LSL:[\"lsl\"],Lua:[\"lua\"],LuaPage:[\"lp\"],Lucene:[\"lucene\"],Makefile:[\"^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make\"],Markdown:[\"md|markdown\"],Mask:[\"mask\"],MATLAB:[\"matlab\"],Maze:[\"mz\"],MediaWiki:[\"wiki|mediawiki\"],MEL:[\"mel\"],MIXAL:[\"mixal\"],MUSHCode:[\"mc|mush\"],MySQL:[\"mysql\"],Nginx:[\"nginx|conf\"],Nim:[\"nim\"],Nix:[\"nix\"],NSIS:[\"nsi|nsh\"],Nunjucks:[\"nunjucks|nunjs|nj|njk\"],ObjectiveC:[\"m|mm\"],OCaml:[\"ml|mli\"],Pascal:[\"pas|p\"],Perl:[\"pl|pm\"],Perl6:[\"p6|pl6|pm6\"],pgSQL:[\"pgsql\"],PHP:[\"php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module\"],PHP_Laravel_blade:[\"blade.php\"],Pig:[\"pig\"],Powershell:[\"ps1\"],Praat:[\"praat|praatscript|psc|proc\"],Prisma:[\"prisma\"],Prolog:[\"plg|prolog\"],Properties:[\"properties\"],Protobuf:[\"proto\"],Puppet:[\"epp|pp\"],Python:[\"py\"],QML:[\"qml\"],R:[\"r\"],Razor:[\"cshtml|asp\"],RDoc:[\"Rd\"],Red:[\"red|reds\"],RHTML:[\"Rhtml\"],RST:[\"rst\"],Ruby:[\"rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile\"],Rust:[\"rs\"],SASS:[\"sass\"],SCAD:[\"scad\"],Scala:[\"scala|sbt\"],Scheme:[\"scm|sm|rkt|oak|scheme\"],SCSS:[\"scss\"],SH:[\"sh|bash|^.bashrc\"],SJS:[\"sjs\"],Slim:[\"slim|skim\"],Smarty:[\"smarty|tpl\"],snippets:[\"snippets\"],Soy_Template:[\"soy\"],Space:[\"space\"],SQL:[\"sql\"],SQLServer:[\"sqlserver\"],Stylus:[\"styl|stylus\"],SVG:[\"svg\"],Swift:[\"swift\"],Tcl:[\"tcl\"],Terraform:[\"tf\",\"tfvars\",\"terragrunt\"],Tex:[\"tex\"],Text:[\"txt\"],Textile:[\"textile\"],Toml:[\"toml\"],TSX:[\"tsx\"],Twig:[\"latte|twig|swig\"],Typescript:[\"ts|typescript|str\"],Vala:[\"vala\"],VBScript:[\"vbs|vb\"],Velocity:[\"vm\"],Verilog:[\"v|vh|sv|svh\"],VHDL:[\"vhd|vhdl\"],Visualforce:[\"vfp|component|page\"],Wollok:[\"wlk|wpgm|wtest\"],XML:[\"xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml\"],XQuery:[\"xq\"],YAML:[\"yaml|yml\"],Zeek:[\"zeek|bro\"],Django:[\"html\"]},u={ObjectiveC:\"Objective-C\",CSharp:\"C#\",golang:\"Go\",C_Cpp:\"C and C++\",Csound_Document:\"Csound Document\",Csound_Orchestra:\"Csound\",Csound_Score:\"Csound Score\",coffee:\"CoffeeScript\",HTML_Ruby:\"HTML (Ruby)\",HTML_Elixir:\"HTML (Elixir)\",FTL:\"FreeMarker\",PHP_Laravel_blade:\"PHP (Blade Template)\",Perl6:\"Perl 6\",AutoHotKey:\"AutoHotkey / AutoIt\"},a={};for(var f in o){var l=o[f],c=(u[f]||f).replace(/_/g,\" \"),h=f.toLowerCase(),p=new s(h,c,l[0]);a[h]=p,r.push(p)}n.exports={getModeForPath:i,modes:r,modesByName:a}});                (function() {\n                    window.require([\"ace/ext/modelist\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-options.js",
    "content": "define(\"ace/ext/menu_tools/overlay_page\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";var r=e(\"../../lib/dom\"),i=\"#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 100000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {vertical-align: middle;}.ace_optionsMenuEntry button[ace_selected_button=true] {background: #e7e7e7;box-shadow: 1px 0px 2px 0px #adadad inset;border-color: #adadad;}.ace_optionsMenuEntry button {background: white;border: 1px solid lightgray;margin: 0px;}.ace_optionsMenuEntry button:hover{background: #f0f0f0;}\";r.importCssString(i),n.exports.overlayPage=function(t,n,r){function o(e){e.keyCode===27&&u()}function u(){if(!i)return;document.removeEventListener(\"keydown\",o),i.parentNode.removeChild(i),t&&t.focus(),i=null,r&&r()}function a(e){s=e,e&&(i.style.pointerEvents=\"none\",n.style.pointerEvents=\"auto\")}var i=document.createElement(\"div\"),s=!1;return i.style.cssText=\"margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; \"+(t?\"background-color: rgba(0, 0, 0, 0.3);\":\"\"),i.addEventListener(\"click\",function(e){s||u()}),document.addEventListener(\"keydown\",o),n.addEventListener(\"click\",function(e){e.stopPropagation()}),i.appendChild(n),document.body.appendChild(i),t&&t.blur(),{close:u,setIgnoreFocusOut:a}}}),define(\"ace/ext/modelist\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";function i(e){var t=a.text,n=e.split(/[\\/\\\\]/).pop();for(var i=0;i<r.length;i++)if(r[i].supportsFile(n)){t=r[i];break}return t}var r=[],s=function(e,t,n){this.name=e,this.caption=t,this.mode=\"ace/mode/\"+e,this.extensions=n;var r;/\\^/.test(n)?r=n.replace(/\\|(\\^)?/g,function(e,t){return\"$|\"+(t?\"^\":\"^.*\\\\.\")})+\"$\":r=\"^.*\\\\.(\"+n+\")$\",this.extRe=new RegExp(r,\"gi\")};s.prototype.supportsFile=function(e){return e.match(this.extRe)};var o={ABAP:[\"abap\"],ABC:[\"abc\"],ActionScript:[\"as\"],ADA:[\"ada|adb\"],Alda:[\"alda\"],Apache_Conf:[\"^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd\"],Apex:[\"apex|cls|trigger|tgr\"],AQL:[\"aql\"],AsciiDoc:[\"asciidoc|adoc\"],ASL:[\"dsl|asl\"],Assembly_x86:[\"asm|a\"],AutoHotKey:[\"ahk\"],BatchFile:[\"bat|cmd\"],C_Cpp:[\"cpp|c|cc|cxx|h|hh|hpp|ino\"],C9Search:[\"c9search_results\"],Cirru:[\"cirru|cr\"],Clojure:[\"clj|cljs\"],Cobol:[\"CBL|COB\"],coffee:[\"coffee|cf|cson|^Cakefile\"],ColdFusion:[\"cfm\"],Crystal:[\"cr\"],CSharp:[\"cs\"],Csound_Document:[\"csd\"],Csound_Orchestra:[\"orc\"],Csound_Score:[\"sco\"],CSS:[\"css\"],Curly:[\"curly\"],D:[\"d|di\"],Dart:[\"dart\"],Diff:[\"diff|patch\"],Dockerfile:[\"^Dockerfile\"],Dot:[\"dot\"],Drools:[\"drl\"],Edifact:[\"edi\"],Eiffel:[\"e|ge\"],EJS:[\"ejs\"],Elixir:[\"ex|exs\"],Elm:[\"elm\"],Erlang:[\"erl|hrl\"],Forth:[\"frt|fs|ldr|fth|4th\"],Fortran:[\"f|f90\"],FSharp:[\"fsi|fs|ml|mli|fsx|fsscript\"],FSL:[\"fsl\"],FTL:[\"ftl\"],Gcode:[\"gcode\"],Gherkin:[\"feature\"],Gitignore:[\"^.gitignore\"],Glsl:[\"glsl|frag|vert\"],Gobstones:[\"gbs\"],golang:[\"go\"],GraphQLSchema:[\"gql\"],Groovy:[\"groovy\"],HAML:[\"haml\"],Handlebars:[\"hbs|handlebars|tpl|mustache\"],Haskell:[\"hs\"],Haskell_Cabal:[\"cabal\"],haXe:[\"hx\"],Hjson:[\"hjson\"],HTML:[\"html|htm|xhtml|vue|we|wpy\"],HTML_Elixir:[\"eex|html.eex\"],HTML_Ruby:[\"erb|rhtml|html.erb\"],INI:[\"ini|conf|cfg|prefs\"],Io:[\"io\"],Jack:[\"jack\"],Jade:[\"jade|pug\"],Java:[\"java\"],JavaScript:[\"js|jsm|jsx\"],JSON:[\"json\"],JSON5:[\"json5\"],JSONiq:[\"jq\"],JSP:[\"jsp\"],JSSM:[\"jssm|jssm_state\"],JSX:[\"jsx\"],Julia:[\"jl\"],Kotlin:[\"kt|kts\"],LaTeX:[\"tex|latex|ltx|bib\"],LESS:[\"less\"],Liquid:[\"liquid\"],Lisp:[\"lisp\"],LiveScript:[\"ls\"],LogiQL:[\"logic|lql\"],LSL:[\"lsl\"],Lua:[\"lua\"],LuaPage:[\"lp\"],Lucene:[\"lucene\"],Makefile:[\"^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make\"],Markdown:[\"md|markdown\"],Mask:[\"mask\"],MATLAB:[\"matlab\"],Maze:[\"mz\"],MediaWiki:[\"wiki|mediawiki\"],MEL:[\"mel\"],MIXAL:[\"mixal\"],MUSHCode:[\"mc|mush\"],MySQL:[\"mysql\"],Nginx:[\"nginx|conf\"],Nim:[\"nim\"],Nix:[\"nix\"],NSIS:[\"nsi|nsh\"],Nunjucks:[\"nunjucks|nunjs|nj|njk\"],ObjectiveC:[\"m|mm\"],OCaml:[\"ml|mli\"],Pascal:[\"pas|p\"],Perl:[\"pl|pm\"],Perl6:[\"p6|pl6|pm6\"],pgSQL:[\"pgsql\"],PHP:[\"php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module\"],PHP_Laravel_blade:[\"blade.php\"],Pig:[\"pig\"],Powershell:[\"ps1\"],Praat:[\"praat|praatscript|psc|proc\"],Prisma:[\"prisma\"],Prolog:[\"plg|prolog\"],Properties:[\"properties\"],Protobuf:[\"proto\"],Puppet:[\"epp|pp\"],Python:[\"py\"],QML:[\"qml\"],R:[\"r\"],Razor:[\"cshtml|asp\"],RDoc:[\"Rd\"],Red:[\"red|reds\"],RHTML:[\"Rhtml\"],RST:[\"rst\"],Ruby:[\"rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile\"],Rust:[\"rs\"],SASS:[\"sass\"],SCAD:[\"scad\"],Scala:[\"scala|sbt\"],Scheme:[\"scm|sm|rkt|oak|scheme\"],SCSS:[\"scss\"],SH:[\"sh|bash|^.bashrc\"],SJS:[\"sjs\"],Slim:[\"slim|skim\"],Smarty:[\"smarty|tpl\"],snippets:[\"snippets\"],Soy_Template:[\"soy\"],Space:[\"space\"],SQL:[\"sql\"],SQLServer:[\"sqlserver\"],Stylus:[\"styl|stylus\"],SVG:[\"svg\"],Swift:[\"swift\"],Tcl:[\"tcl\"],Terraform:[\"tf\",\"tfvars\",\"terragrunt\"],Tex:[\"tex\"],Text:[\"txt\"],Textile:[\"textile\"],Toml:[\"toml\"],TSX:[\"tsx\"],Twig:[\"latte|twig|swig\"],Typescript:[\"ts|typescript|str\"],Vala:[\"vala\"],VBScript:[\"vbs|vb\"],Velocity:[\"vm\"],Verilog:[\"v|vh|sv|svh\"],VHDL:[\"vhd|vhdl\"],Visualforce:[\"vfp|component|page\"],Wollok:[\"wlk|wpgm|wtest\"],XML:[\"xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml\"],XQuery:[\"xq\"],YAML:[\"yaml|yml\"],Zeek:[\"zeek|bro\"],Django:[\"html\"]},u={ObjectiveC:\"Objective-C\",CSharp:\"C#\",golang:\"Go\",C_Cpp:\"C and C++\",Csound_Document:\"Csound Document\",Csound_Orchestra:\"Csound\",Csound_Score:\"Csound Score\",coffee:\"CoffeeScript\",HTML_Ruby:\"HTML (Ruby)\",HTML_Elixir:\"HTML (Elixir)\",FTL:\"FreeMarker\",PHP_Laravel_blade:\"PHP (Blade Template)\",Perl6:\"Perl 6\",AutoHotKey:\"AutoHotkey / AutoIt\"},a={};for(var f in o){var l=o[f],c=(u[f]||f).replace(/_/g,\" \"),h=f.toLowerCase(),p=new s(h,c,l[0]);a[h]=p,r.push(p)}n.exports={getModeForPath:i,modes:r,modesByName:a}}),define(\"ace/ext/themelist\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";var r=[[\"Chrome\"],[\"Clouds\"],[\"Crimson Editor\"],[\"Dawn\"],[\"Dreamweaver\"],[\"Eclipse\"],[\"GitHub\"],[\"IPlastic\"],[\"Solarized Light\"],[\"TextMate\"],[\"Tomorrow\"],[\"Xcode\"],[\"Kuroir\"],[\"KatzenMilch\"],[\"SQL Server\",\"sqlserver\",\"light\"],[\"Ambiance\",\"ambiance\",\"dark\"],[\"Chaos\",\"chaos\",\"dark\"],[\"Clouds Midnight\",\"clouds_midnight\",\"dark\"],[\"Dracula\",\"\",\"dark\"],[\"Cobalt\",\"cobalt\",\"dark\"],[\"Gruvbox\",\"gruvbox\",\"dark\"],[\"Green on Black\",\"gob\",\"dark\"],[\"idle Fingers\",\"idle_fingers\",\"dark\"],[\"krTheme\",\"kr_theme\",\"dark\"],[\"Merbivore\",\"merbivore\",\"dark\"],[\"Merbivore Soft\",\"merbivore_soft\",\"dark\"],[\"Mono Industrial\",\"mono_industrial\",\"dark\"],[\"Monokai\",\"monokai\",\"dark\"],[\"Nord Dark\",\"nord_dark\",\"dark\"],[\"Pastel on dark\",\"pastel_on_dark\",\"dark\"],[\"Solarized Dark\",\"solarized_dark\",\"dark\"],[\"Terminal\",\"terminal\",\"dark\"],[\"Tomorrow Night\",\"tomorrow_night\",\"dark\"],[\"Tomorrow Night Blue\",\"tomorrow_night_blue\",\"dark\"],[\"Tomorrow Night Bright\",\"tomorrow_night_bright\",\"dark\"],[\"Tomorrow Night 80s\",\"tomorrow_night_eighties\",\"dark\"],[\"Twilight\",\"twilight\",\"dark\"],[\"Vibrant Ink\",\"vibrant_ink\",\"dark\"]];t.themesByName={},t.themes=r.map(function(e){var n=e[1]||e[0].replace(/ /g,\"_\").toLowerCase(),r={caption:e[0],theme:\"ace/theme/\"+n,isDark:e[2]==\"dark\",name:n};return t.themesByName[n]=r,r})}),define(\"ace/ext/options\",[\"require\",\"exports\",\"module\",\"ace/ext/menu_tools/overlay_page\",\"ace/lib/dom\",\"ace/lib/oop\",\"ace/config\",\"ace/lib/event_emitter\",\"ace/ext/modelist\",\"ace/ext/themelist\"],function(e,t,n){\"use strict\";e(\"./menu_tools/overlay_page\");var r=e(\"../lib/dom\"),i=e(\"../lib/oop\"),s=e(\"../config\"),o=e(\"../lib/event_emitter\").EventEmitter,u=r.buildDom,a=e(\"./modelist\"),f=e(\"./themelist\"),l={Bright:[],Dark:[]};f.themes.forEach(function(e){l[e.isDark?\"Dark\":\"Bright\"].push({caption:e.caption,value:e.theme})});var c=a.modes.map(function(e){return{caption:e.caption,value:e.mode}}),h={Main:{Mode:{path:\"mode\",type:\"select\",items:c},Theme:{path:\"theme\",type:\"select\",items:l},Keybinding:{type:\"buttonBar\",path:\"keyboardHandler\",items:[{caption:\"Ace\",value:null},{caption:\"Vim\",value:\"ace/keyboard/vim\"},{caption:\"Emacs\",value:\"ace/keyboard/emacs\"},{caption:\"Sublime\",value:\"ace/keyboard/sublime\"},{caption:\"VSCode\",value:\"ace/keyboard/vscode\"}]},\"Font Size\":{path:\"fontSize\",type:\"number\",defaultValue:12,defaults:[{caption:\"12px\",value:12},{caption:\"24px\",value:24}]},\"Soft Wrap\":{type:\"buttonBar\",path:\"wrap\",items:[{caption:\"Off\",value:\"off\"},{caption:\"View\",value:\"free\"},{caption:\"margin\",value:\"printMargin\"},{caption:\"40\",value:\"40\"}]},\"Cursor Style\":{path:\"cursorStyle\",items:[{caption:\"Ace\",value:\"ace\"},{caption:\"Slim\",value:\"slim\"},{caption:\"Smooth\",value:\"smooth\"},{caption:\"Smooth And Slim\",value:\"smooth slim\"},{caption:\"Wide\",value:\"wide\"}]},Folding:{path:\"foldStyle\",items:[{caption:\"Manual\",value:\"manual\"},{caption:\"Mark begin\",value:\"markbegin\"},{caption:\"Mark begin and end\",value:\"markbeginend\"}]},\"Soft Tabs\":[{path:\"useSoftTabs\"},{ariaLabel:\"Tab Size\",path:\"tabSize\",type:\"number\",values:[2,3,4,8,16]}],Overscroll:{type:\"buttonBar\",path:\"scrollPastEnd\",items:[{caption:\"None\",value:0},{caption:\"Half\",value:.5},{caption:\"Full\",value:1}]}},More:{\"Atomic soft tabs\":{path:\"navigateWithinSoftTabs\"},\"Enable Behaviours\":{path:\"behavioursEnabled\"},\"Wrap with quotes\":{path:\"wrapBehavioursEnabled\"},\"Enable Auto Indent\":{path:\"enableAutoIndent\"},\"Full Line Selection\":{type:\"checkbox\",values:\"text|line\",path:\"selectionStyle\"},\"Highlight Active Line\":{path:\"highlightActiveLine\"},\"Show Invisibles\":{path:\"showInvisibles\"},\"Show Indent Guides\":{path:\"displayIndentGuides\"},\"Persistent HScrollbar\":{path:\"hScrollBarAlwaysVisible\"},\"Persistent VScrollbar\":{path:\"vScrollBarAlwaysVisible\"},\"Animate scrolling\":{path:\"animatedScroll\"},\"Show Gutter\":{path:\"showGutter\"},\"Show Line Numbers\":{path:\"showLineNumbers\"},\"Relative Line Numbers\":{path:\"relativeLineNumbers\"},\"Fixed Gutter Width\":{path:\"fixedWidthGutter\"},\"Show Print Margin\":[{path:\"showPrintMargin\"},{ariaLabel:\"Print Margin\",type:\"number\",path:\"printMarginColumn\"}],\"Indented Soft Wrap\":{path:\"indentedSoftWrap\"},\"Highlight selected word\":{path:\"highlightSelectedWord\"},\"Fade Fold Widgets\":{path:\"fadeFoldWidgets\"},\"Use textarea for IME\":{path:\"useTextareaForIME\"},\"Merge Undo Deltas\":{path:\"mergeUndoDeltas\",items:[{caption:\"Always\",value:\"always\"},{caption:\"Never\",value:\"false\"},{caption:\"Timed\",value:\"true\"}]},\"Elastic Tabstops\":{path:\"useElasticTabstops\"},\"Incremental Search\":{path:\"useIncrementalSearch\"},\"Read-only\":{path:\"readOnly\"},\"Copy without selection\":{path:\"copyWithEmptySelection\"},\"Live Autocompletion\":{path:\"enableLiveAutocompletion\"}}},p=function(e,t){this.editor=e,this.container=t||document.createElement(\"div\"),this.groups=[],this.options={}};(function(){i.implement(this,o),this.add=function(e){e.Main&&i.mixin(h.Main,e.Main),e.More&&i.mixin(h.More,e.More)},this.render=function(){this.container.innerHTML=\"\",u([\"table\",{role:\"presentation\",id:\"controls\"},this.renderOptionGroup(h.Main),[\"tr\",null,[\"td\",{colspan:2},[\"table\",{role:\"presentation\",id:\"more-controls\"},this.renderOptionGroup(h.More)]]],[\"tr\",null,[\"td\",{colspan:2},\"version \"+s.version]]],this.container)},this.renderOptionGroup=function(e){return Object.keys(e).map(function(t,n){var r=e[t];return r.position||(r.position=n/1e4),r.label||(r.label=t),r}).sort(function(e,t){return e.position-t.position}).map(function(e){return this.renderOption(e.label,e)},this)},this.renderOptionControl=function(e,t){var n=this;if(Array.isArray(t))return t.map(function(t){return n.renderOptionControl(e,t)});var r,i=n.getOption(t);t.values&&t.type!=\"checkbox\"&&(typeof t.values==\"string\"&&(t.values=t.values.split(\"|\")),t.items=t.values.map(function(e){return{value:e,name:e}}));if(t.type==\"buttonBar\")r=[\"div\",{role:\"group\",\"aria-labelledby\":t.path+\"-label\"},t.items.map(function(e){return[\"button\",{value:e.value,ace_selected_button:i==e.value,\"aria-pressed\":i==e.value,onclick:function(){n.setOption(t,e.value);var r=this.parentNode.querySelectorAll(\"[ace_selected_button]\");for(var i=0;i<r.length;i++)r[i].removeAttribute(\"ace_selected_button\"),r[i].setAttribute(\"aria-pressed\",!1);this.setAttribute(\"ace_selected_button\",!0),this.setAttribute(\"aria-pressed\",!0)}},e.desc||e.caption||e.name]})];else if(t.type==\"number\")r=[\"input\",{type:\"number\",value:i||t.defaultValue,style:\"width:3em\",oninput:function(){n.setOption(t,parseInt(this.value))}}],t.ariaLabel?r[1][\"aria-label\"]=t.ariaLabel:r[1].id=e,t.defaults&&(r=[r,t.defaults.map(function(e){return[\"button\",{onclick:function(){var t=this.parentNode.firstChild;t.value=e.value,t.oninput()}},e.caption]})]);else if(t.items){var s=function(e){return e.map(function(e){return[\"option\",{value:e.value||e.name},e.desc||e.caption||e.name]})},o=Array.isArray(t.items)?s(t.items):Object.keys(t.items).map(function(e){return[\"optgroup\",{label:e},s(t.items[e])]});r=[\"select\",{id:e,value:i,onchange:function(){n.setOption(t,this.value)}},o]}else typeof t.values==\"string\"&&(t.values=t.values.split(\"|\")),t.values&&(i=i==t.values[1]),r=[\"input\",{type:\"checkbox\",id:e,checked:i||null,onchange:function(){var e=this.checked;t.values&&(e=t.values[e?1:0]),n.setOption(t,e)}}],t.type==\"checkedNumber\"&&(r=[r,[]]);return r},this.renderOption=function(e,t){if(t.path&&!t.onchange&&!this.editor.$options[t.path])return;var n=Array.isArray(t)?t[0].path:t.path;this.options[n]=t;var r=\"-\"+n,i=n+\"-label\",s=this.renderOptionControl(r,t);return[\"tr\",{\"class\":\"ace_optionsMenuEntry\"},[\"td\",[\"label\",{\"for\":r,id:i},e]],[\"td\",s]]},this.setOption=function(e,t){typeof e==\"string\"&&(e=this.options[e]),t==\"false\"&&(t=!1),t==\"true\"&&(t=!0),t==\"null\"&&(t=null),t==\"undefined\"&&(t=undefined),typeof t==\"string\"&&parseFloat(t).toString()==t&&(t=parseFloat(t)),e.onchange?e.onchange(t):e.path&&this.editor.setOption(e.path,t),this._signal(\"setOption\",{name:e.path,value:t})},this.getOption=function(e){return e.getValue?e.getValue():this.editor.getOption(e.path)}}).call(p.prototype),t.OptionPanel=p});                (function() {\n                    window.require([\"ace/ext/options\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-prompt.js",
    "content": "define(\"ace/ext/menu_tools/get_editor_keyboard_shortcuts\",[\"require\",\"exports\",\"module\",\"ace/lib/keys\"],function(e,t,n){\"use strict\";var r=e(\"../../lib/keys\");n.exports.getEditorKeybordShortcuts=function(e){var t=r.KEY_MODS,n=[],i={};return e.keyBinding.$handlers.forEach(function(e){var t=e.commandKeyBinding;for(var r in t){var s=r.replace(/(^|-)\\w/g,function(e){return e.toUpperCase()}),o=t[r];Array.isArray(o)||(o=[o]),o.forEach(function(e){typeof e!=\"string\"&&(e=e.name),i[e]?i[e].key+=\"|\"+s:(i[e]={key:s,command:e},n.push(i[e]))})}}),n}}),define(\"ace/autocomplete/popup\",[\"require\",\"exports\",\"module\",\"ace/virtual_renderer\",\"ace/editor\",\"ace/range\",\"ace/lib/event\",\"ace/lib/lang\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";var r=e(\"../virtual_renderer\").VirtualRenderer,i=e(\"../editor\").Editor,s=e(\"../range\").Range,o=e(\"../lib/event\"),u=e(\"../lib/lang\"),a=e(\"../lib/dom\"),f=function(e){var t=new r(e);t.$maxLines=4;var n=new i(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n},l=function(e){var t=a.createElement(\"div\"),n=new f(t);e&&e.appendChild(t),t.style.display=\"none\",n.renderer.content.style.cursor=\"default\",n.renderer.setStyle(\"ace_autocomplete\"),n.setOption(\"displayIndentGuides\",!1),n.setOption(\"dragDelay\",150);var r=function(){};n.focus=r,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=r,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(\"\"),n.session.$searchHighlight.clazz=\"ace_highlight-marker\",n.on(\"mousedown\",function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),c.start.row=c.end.row=t.row,e.stop()});var i,l=new s(-1,0,-1,Infinity),c=new s(-1,0,-1,Infinity);c.id=n.session.addMarker(c,\"ace_active-line\",\"fullLine\"),n.setSelectOnHover=function(e){e?l.id&&(n.session.removeMarker(l.id),l.id=null):l.id=n.session.addMarker(l,\"ace_line-hover\",\"fullLine\")},n.setSelectOnHover(!1),n.on(\"mousemove\",function(e){if(!i){i=e;return}if(i.x==e.x&&i.y==e.y)return;i=e,i.scrollTop=n.renderer.scrollTop;var t=i.getDocumentPosition().row;l.start.row!=t&&(l.id||n.setRow(t),p(t))}),n.renderer.on(\"beforeRender\",function(){if(i&&l.start.row!=-1){i.$pos=null;var e=i.getDocumentPosition().row;l.id||n.setRow(e),p(e,!0)}}),n.renderer.on(\"afterRender\",function(){var e=n.getRow(),t=n.renderer.$textLayer,r=t.element.childNodes[e-t.config.firstRow];r!==t.selectedNode&&t.selectedNode&&a.removeCssClass(t.selectedNode,\"ace_selected\"),t.selectedNode=r,r&&a.addCssClass(r,\"ace_selected\")});var h=function(){p(-1)},p=function(e,t){e!==l.start.row&&(l.start.row=l.end.row=e,t||n.session._emit(\"changeBackMarker\"),n._emit(\"changeHoverMarker\"))};n.getHoveredRow=function(){return l.start.row},o.addListener(n.container,\"mouseout\",h),n.on(\"hide\",h),n.on(\"changeSelection\",h),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return typeof t==\"string\"?t:t&&t.value||\"\"};var d=n.session.bgTokenizer;return d.$tokenizeRow=function(e){function s(e,n){e&&r.push({type:(t.className||\"\")+(n||\"\"),value:e})}var t=n.data[e],r=[];if(!t)return r;typeof t==\"string\"&&(t={value:t});var i=t.caption||t.value||t.name,o=i.toLowerCase(),u=(n.filterText||\"\").toLowerCase(),a=0,f=0;for(var l=0;l<=u.length;l++)if(l!=f&&(t.matchMask&1<<l||l==u.length)){var c=u.slice(f,l);f=l;var h=o.indexOf(c,a);if(h==-1)continue;s(i.slice(a,h),\"\"),a=h+c.length,s(i.slice(h,a),\"completion-highlight\")}return s(i.slice(a,i.length),\"\"),t.meta&&r.push({type:\"completion-meta\",value:t.meta}),t.message&&r.push({type:\"completion-message\",value:t.message}),r},d.$updateOnChange=r,d.start=r,n.session.$computeWidth=function(){return this.screenWidth=0},n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.filterText=\"\",n.data=[],n.setData=function(e,t){n.filterText=t||\"\",n.setValue(u.stringRepeat(\"\\n\",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return c.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,e)),c.start.row!=e&&(n.selection.clearSelection(),c.start.row=c.end.row=e||0,n.session._emit(\"changeBackMarker\"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal(\"select\"))},n.on(\"changeSelection\",function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()}),n.hide=function(){this.container.style.display=\"none\",this._signal(\"hide\"),n.isOpen=!1},n.show=function(e,t,r){var s=this.container,o=window.innerHeight,u=window.innerWidth,a=this.renderer,f=a.$maxLines*t*1.4,l=e.top+this.$borderSize,c=l>o/2&&!r;c&&l+t+f>o?(a.$maxPixelHeight=l-2*this.$borderSize,s.style.top=\"\",s.style.bottom=o-l+\"px\",n.isTopdown=!1):(l+=t,a.$maxPixelHeight=o-l-.2*t,s.style.top=l+\"px\",s.style.bottom=\"\",n.isTopdown=!0),s.style.display=\"\";var h=e.left;h+s.offsetWidth>u&&(h=u-s.offsetWidth),s.style.left=h+\"px\",this._signal(\"show\"),i=null,n.isOpen=!0},n.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case\"up\":t=t<=0?n:t-1;break;case\"down\":t=t>=n?-1:t+1;break;case\"start\":t=0;break;case\"end\":t=n}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n};a.importCssString(\".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {    background-color: #CAD6FA;    z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {    background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover {    border: 1px solid #abbffe;    margin-top: -1px;    background: rgba(233,233,253,0.4);    position: absolute;    z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {    border: 1px solid rgba(109, 150, 13, 0.8);    background: rgba(58, 103, 78, 0.62);}.ace_completion-meta {    opacity: 0.5;    margin: 0.9em;}.ace_completion-message {    color: blue;}.ace_editor.ace_autocomplete .ace_completion-highlight{    color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{    color: #93ca12;}.ace_editor.ace_autocomplete {    width: 300px;    z-index: 200000;    border: 1px lightgray solid;    position: fixed;    box-shadow: 2px 3px 5px rgba(0,0,0,.2);    line-height: 1.4;    background: #fefefe;    color: #111;}.ace_dark.ace_editor.ace_autocomplete {    border: 1px #484747 solid;    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);    line-height: 1.4;    background: #25282c;    color: #c1c1c1;}\",\"autocompletion.css\"),t.AcePopup=l,t.$singleLineEditor=f}),define(\"ace/autocomplete/util\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";t.parForEach=function(e,t,n){var r=0,i=e.length;i===0&&n();for(var s=0;s<i;s++)t(e[s],function(e,t){r++,r===i&&n(e,t)})};var r=/[a-zA-Z_0-9\\$\\-\\u00A2-\\u2000\\u2070-\\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||r;var i=[];for(var s=t-1;s>=0;s--){if(!n.test(e[s]))break;i.push(e[s])}return i.reverse().join(\"\")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||r;var i=[];for(var s=t;s<e.length;s++){if(!n.test(e[s]))break;i.push(e[s])}return i},t.getCompletionPrefix=function(e){var t=e.getCursorPosition(),n=e.session.getLine(t.row),r;return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!r&&e&&(r=this.retrievePrecedingIdentifier(n,t.column,e))}.bind(this))}.bind(this)),r||this.retrievePrecedingIdentifier(n,t.column)}}),define(\"ace/snippets\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/event_emitter\",\"ace/lib/lang\",\"ace/range\",\"ace/range_list\",\"ace/keyboard/hash_handler\",\"ace/tokenizer\",\"ace/clipboard\",\"ace/lib/dom\",\"ace/editor\"],function(e,t,n){\"use strict\";function h(e){var t=(new Date).toLocaleString(\"en-us\",e);return t.length==1?\"0\"+t:t}var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=e(\"./lib/lang\"),o=e(\"./range\").Range,u=e(\"./range_list\").RangeList,a=e(\"./keyboard/hash_handler\").HashHandler,f=e(\"./tokenizer\").Tokenizer,l=e(\"./clipboard\"),c={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var r=e.session.getTextRange();return n?r.replace(/\\n\\r?([ \\t]*\\S)/g,\"\\n\"+n+\"$1\"):r},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?\"YES\":\"NO\"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return l.getText&&l.getText()},FILENAME:function(e){return/[^/\\\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\\\]*$/.exec(this.FILEPATH(e))[0].replace(/\\.[^.]*$/,\"\")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\\\]*$/,\"\")},FILEPATH:function(e){return\"/not implemented.txt\"},WORKSPACE_NAME:function(){return\"Unknown\"},FULLNAME:function(){return\"Unknown\"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||\"\"},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||\"\"},LINE_COMMENT:function(e){var t=e.session.$mode||{};return t.lineCommentStart||\"\"},CURRENT_YEAR:h.bind(null,{year:\"numeric\"}),CURRENT_YEAR_SHORT:h.bind(null,{year:\"2-digit\"}),CURRENT_MONTH:h.bind(null,{month:\"numeric\"}),CURRENT_MONTH_NAME:h.bind(null,{month:\"long\"}),CURRENT_MONTH_NAME_SHORT:h.bind(null,{month:\"short\"}),CURRENT_DATE:h.bind(null,{day:\"2-digit\"}),CURRENT_DAY_NAME:h.bind(null,{weekday:\"long\"}),CURRENT_DAY_NAME_SHORT:h.bind(null,{weekday:\"short\"}),CURRENT_HOUR:h.bind(null,{hour:\"2-digit\",hour12:!1}),CURRENT_MINUTE:h.bind(null,{minute:\"2-digit\"}),CURRENT_SECOND:h.bind(null,{second:\"2-digit\"})};c.SELECTED_TEXT=c.SELECTION;var p=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,i),this.getTokenizer=function(){return p.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(e){return e=e.substr(1),/^\\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return\"(?:[^\\\\\\\\\"+e+\"]|\\\\\\\\.)\"}var n={regex:\"/(\"+t(\"/\")+\"+)/\",onMatch:function(e,t,n){var r=n[0];return r.fmtString=!0,r.guard=e.slice(1,-1),r.flag=\"\",\"\"},next:\"formatString\"};return p.$tokenizer=new f({start:[{regex:/\\\\./,onMatch:function(e,t,n){var r=e[1];return r==\"}\"&&n.length?e=r:\"`$\\\\\".indexOf(r)!=-1&&(e=r),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\\$(?:\\d+|\\w+)/,onMatch:e},{regex:/\\$\\{[\\dA-Z_a-z]+/,onMatch:function(t,n,r){var i=e(t.substr(1));return r.unshift(i[0]),i},next:\"snippetVar\"},{regex:/\\n/,token:\"newline\",merge:!1}],snippetVar:[{regex:\"\\\\|\"+t(\"\\\\|\")+\"*\\\\|\",onMatch:function(e,t,n){var r=e.slice(1,-1).replace(/\\\\[,|\\\\]|,/g,function(e){return e.length==2?e[1]:\"\\0\"}).split(\"\\0\");return n[0].choices=r,[r[0]]},next:\"start\"},n,{regex:\"([^:}\\\\\\\\]|\\\\\\\\.)*:?\",token:\"\",next:\"start\"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):\":\"}},{regex:/\\\\./,onMatch:function(e,t,n){var r=e[1];return r==\"}\"&&n.length?e=r:\"`$\\\\\".indexOf(r)!=-1?e=r:r==\"n\"?e=\"\\n\":r==\"t\"?e=\"\t\":\"ulULE\".indexOf(r)!=-1&&(e={changeCase:r,local:r>\"a\"}),[e]}},{regex:\"/\\\\w*}\",onMatch:function(e,t,n){var r=n.shift();return r&&(r.flag=e.slice(1,-1)),this.next=r&&r.tabstopId?\"start\":\"\",[r||e]},next:\"start\"},{regex:/\\$(?:\\d+|\\w+)/,onMatch:function(e,t,n){return[{text:e.slice(1)}]}},{regex:/\\${\\w+/,onMatch:function(e,t,n){var r={text:e.slice(2)};return n.unshift(r),[r]},next:\"formatStringVar\"},{regex:/\\n/,token:\"newline\",merge:!1},{regex:/}/,onMatch:function(e,t,n){var r=n.shift();return this.next=r&&r.tabstopId?\"start\":\"\",[r||e]},next:\"start\"}],formatStringVar:[{regex:/:\\/\\w+}/,onMatch:function(e,t,n){var r=n[0];return r.formatFunction=e.slice(2,-1),[n.shift()]},next:\"formatString\"},n,{regex:/:[\\?\\-+]?/,onMatch:function(e,t,n){e[1]==\"+\"&&(n[0].ifEnd=n[0]),e[1]==\"?\"&&(n[0].expectElse=!0)},next:\"formatString\"},{regex:\"([^:}\\\\\\\\]|\\\\\\\\.)*:?\",token:\"\",next:\"formatString\"}]}),p.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},this.getVariableValue=function(e,t,n){if(/^\\d+$/.test(t))return(this.variables.__||{})[t]||\"\";if(/^[A-Z]\\d+$/.test(t))return(this.variables[t[0]+\"__\"]||{})[t.substr(1)]||\"\";t=t.replace(/^TM_/,\"\");if(!this.variables.hasOwnProperty(t))return\"\";var r=this.variables[t];return typeof r==\"function\"&&(r=this.variables[t](e,t,n)),r==null?\"\":r},this.variables=c,this.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var r=t.flag||\"\",i=t.guard;i=new RegExp(i,r.replace(/[^gim]/g,\"\"));var s=typeof t.fmt==\"string\"?this.tokenizeTmSnippet(t.fmt,\"formatString\"):t.fmt,o=this,u=e.replace(i,function(){var e=o.variables.__;o.variables.__=[].slice.call(arguments);var t=o.resolveVariables(s,n),r=\"E\";for(var i=0;i<t.length;i++){var u=t[i];if(typeof u==\"object\"){t[i]=\"\";if(u.changeCase&&u.local){var a=t[i+1];a&&typeof a==\"string\"&&(u.changeCase==\"u\"?t[i]=a[0].toUpperCase():t[i]=a[0].toLowerCase(),t[i+1]=a.substr(1))}else u.changeCase&&(r=u.changeCase)}else r==\"U\"?t[i]=u.toUpperCase():r==\"L\"&&(t[i]=u.toLowerCase())}return o.variables.__=e,t.join(\"\")});return u},this.tmFormatFunction=function(e,t,n){return t.formatFunction==\"upcase\"?e.toUpperCase():t.formatFunction==\"downcase\"?e.toLowerCase():e},this.resolveVariables=function(e,t){function f(t){var n=e.indexOf(t,s+1);n!=-1&&(s=n)}var n=[],r=\"\",i=!0;for(var s=0;s<e.length;s++){var o=e[s];if(typeof o==\"string\"){n.push(o),o==\"\\n\"?(i=!0,r=\"\"):i&&(r=/^\\t*/.exec(o)[0],i=/\\S/.test(o));continue}if(!o)continue;i=!1;if(o.fmtString){var u=e.indexOf(o,s+1);u==-1&&(u=e.length),o.fmt=e.slice(s+1,u),s=u}if(o.text){var a=this.getVariableValue(t,o.text,r)+\"\";o.fmtString&&(a=this.tmStrFormat(a,o,t)),o.formatFunction&&(a=this.tmFormatFunction(a,o,t)),a&&!o.ifEnd?(n.push(a),f(o)):!a&&o.ifEnd&&f(o.ifEnd)}else o.elseEnd?f(o.elseEnd):o.tabstopId!=null?n.push(o):o.changeCase!=null&&n.push(o)}return n},this.insertSnippetForSelection=function(e,t){function f(e){var t=[];for(var n=0;n<e.length;n++){var r=e[n];if(typeof r==\"object\"){if(a[r.tabstopId])continue;var i=e.lastIndexOf(r,n-1);r=t[i]||{tabstopId:r.tabstopId}}t[n]=r}return t}var n=e.getCursorPosition(),r=e.session.getLine(n.row),i=e.session.getTabString(),s=r.match(/^\\s*/)[0];n.column<s.length&&(s=s.slice(0,n.column)),t=t.replace(/\\r/g,\"\");var o=this.tokenizeTmSnippet(t);o=this.resolveVariables(o,e),o=o.map(function(e){return e==\"\\n\"?e+s:typeof e==\"string\"?e.replace(/\\t/g,i):e});var u=[];o.forEach(function(e,t){if(typeof e!=\"object\")return;var n=e.tabstopId,r=u[n];r||(r=u[n]=[],r.index=n,r.value=\"\",r.parents={});if(r.indexOf(e)!==-1)return;e.choices&&!r.choices&&(r.choices=e.choices),r.push(e);var i=o.indexOf(e,t+1);if(i===-1)return;var s=o.slice(t+1,i),a=s.some(function(e){return typeof e==\"object\"});a&&!r.value?r.value=s:s.length&&(!r.value||typeof r.value!=\"string\")&&(r.value=s.join(\"\"))}),u.forEach(function(e){e.length=0});var a={};for(var l=0;l<o.length;l++){var c=o[l];if(typeof c!=\"object\")continue;var h=c.tabstopId,p=u[h],v=o.indexOf(c,l+1);if(a[h]){a[h]===c&&(delete a[h],Object.keys(a).forEach(function(e){p.parents[e]=!0}));continue}a[h]=c;var m=p.value;typeof m!=\"string\"?m=f(m):c.fmt&&(m=this.tmStrFormat(m,c,e)),o.splice.apply(o,[l+1,Math.max(0,v-l)].concat(m,c)),p.indexOf(c)===-1&&p.push(c)}var g=0,y=0,b=\"\";o.forEach(function(e){if(typeof e==\"string\"){var t=e.split(\"\\n\");t.length>1?(y=t[t.length-1].length,g+=t.length-1):y+=e.length,b+=e}else e&&(e.start?e.end={row:g,column:y}:e.start={row:g,column:y})});var w=e.getSelectionRange(),E=e.session.replace(w,b),S=new d(e),x=e.inVirtualSelectionMode&&e.selection.index;S.addTabstops(u,w.start,E,x)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection(function(){n.insertSnippetForSelection(e,t)},null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||\"\";t=t.split(\"/\").pop();if(t===\"html\"||t===\"php\"){t===\"php\"&&!e.session.$mode.inlinePhp&&(t=\"html\");var n=e.getCursorPosition(),r=e.session.getState(n.row);typeof r==\"object\"&&(r=r[0]),r.substring&&(r.substring(0,3)==\"js-\"?t=\"javascript\":r.substring(0,4)==\"css-\"?t=\"css\":r.substring(0,4)==\"php-\"&&(t=\"php\"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],r=this.snippetMap;return r[t]&&r[t].includeScopes&&n.push.apply(n,r[t].includeScopes),n.push(\"_\"),n},this.expandWithTab=function(e,t){var n=this,r=e.forEachSelection(function(){return n.expandSnippetForSelection(e,t)},null,{keepOrder:!0});return r&&e.tabstopManager&&e.tabstopManager.tabNext(),r},this.expandSnippetForSelection=function(e,t){var n=e.getCursorPosition(),r=e.session.getLine(n.row),i=r.substring(0,n.column),s=r.substr(n.column),o=this.snippetMap,u;return this.getActiveScopes(e).some(function(e){var t=o[e];return t&&(u=this.findMatchingSnippet(t,i,s)),!!u},this),u?t&&t.dryRun?!0:(e.session.doc.removeInLine(n.row,n.column-u.replaceBefore.length,n.column+u.replaceAfter.length),this.variables.M__=u.matchBefore,this.variables.T__=u.matchAfter,this.insertSnippetForSelection(e,u.content),this.variables.M__=this.variables.T__=null,!0):!1},this.findMatchingSnippet=function(e,t,n){for(var r=e.length;r--;){var i=e[r];if(i.startRe&&!i.startRe.test(t))continue;if(i.endRe&&!i.endRe.test(n))continue;if(!i.startRe&&!i.endRe)continue;return i.matchBefore=i.startRe?i.startRe.exec(t):[\"\"],i.matchAfter=i.endRe?i.endRe.exec(n):[\"\"],i.replaceBefore=i.triggerRe?i.triggerRe.exec(t)[0]:\"\",i.replaceAfter=i.endTriggerRe?i.endTriggerRe.exec(n)[0]:\"\",i}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){function o(e){return e&&!/^\\^?\\(.*\\)\\$?$|^\\\\b$/.test(e)&&(e=\"(?:\"+e+\")\"),e||\"\"}function u(e,t,n){return e=o(e),t=o(t),n?(e=t+e,e&&e[e.length-1]!=\"$\"&&(e+=\"$\")):(e+=t,e&&e[0]!=\"^\"&&(e=\"^\"+e)),new RegExp(e)}function a(e){e.scope||(e.scope=t||\"_\"),t=e.scope,n[t]||(n[t]=[],r[t]={});var o=r[t];if(e.name){var a=o[e.name];a&&i.unregister(a),o[e.name]=e}n[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join(\"\\n\"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\\w/.test(e.tabTrigger)&&(e.guard=\"\\\\b\"),e.trigger=s.escapeRegExp(e.tabTrigger));if(!e.trigger&&!e.guard&&!e.endTrigger&&!e.endGuard)return;e.startRe=u(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=u(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger)}var n=this.snippetMap,r=this.snippetNameMap,i=this;e||(e=[]),Array.isArray(e)?e.forEach(a):Object.keys(e).forEach(function(t){a(e[t])}),this._signal(\"registerSnippets\",{scope:t})},this.unregister=function(e,t){function i(e){var i=r[e.scope||t];if(i&&i[e.name]){delete i[e.name];var s=n[e.scope||t],o=s&&s.indexOf(e);o>=0&&s.splice(o,1)}}var n=this.snippetMap,r=this.snippetNameMap;e.content?i(e):Array.isArray(e)&&e.forEach(i)},this.parseSnippetFile=function(e){e=e.replace(/\\r/g,\"\");var t=[],n={},r=/^#.*|^({[\\s\\S]*})\\s*$|^(\\S+) (.*)$|^((?:\\n*\\t.*)+)/gm,i;while(i=r.exec(e)){if(i[1])try{n=JSON.parse(i[1]),t.push(n)}catch(s){}if(i[4])n.content=i[4].replace(/^\\t/gm,\"\"),t.push(n),n={};else{var o=i[2],u=i[3];if(o==\"regex\"){var a=/\\/((?:[^\\/\\\\]|\\\\.)*)|$/g;n.guard=a.exec(u)[1],n.trigger=a.exec(u)[1],n.endTrigger=a.exec(u)[1],n.endGuard=a.exec(u)[1]}else o==\"snippet\"?(n.tabTrigger=u.match(/^\\S*/)[0],n.name||(n.name=u)):o&&(n[o]=u)}}return t},this.getSnippetByName=function(e,t){var n=this.snippetNameMap,r;return this.getActiveScopes(t).some(function(t){var i=n[t];return i&&(r=i[e]),!!r},this),r}}).call(p.prototype);var d=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on(\"change\",this.$onChange),this.editor.on(\"changeSelection\",this.$onChangeSelection),this.editor.on(\"changeSession\",this.$onChangeSession),this.editor.commands.on(\"afterExec\",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener(\"change\",this.$onChange),this.editor.removeListener(\"changeSelection\",this.$onChangeSelection),this.editor.removeListener(\"changeSession\",this.$onChangeSession),this.editor.commands.removeListener(\"afterExec\",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t=e.action[0]==\"r\",n=this.selectedTabstop||{},r=n.parents||{},i=(this.tabstops||[]).slice();for(var s=0;s<i.length;s++){var o=i[s],u=o==n||r[o.index];o.rangeList.$bias=u?0:1;if(e.action==\"remove\"&&o!==n){var a=o.parents&&o.parents[n.index],f=o.rangeList.pointIndex(e.start,a);f=f<0?-f-1:f+1;var l=o.rangeList.pointIndex(e.end,a);l=l<0?-l-1:l-1;var c=o.rangeList.ranges.slice(f,l);for(var h=0;h<c.length;h++)this.removeRange(c[h])}o.rangeList.$onChange(e)}var p=this.editor.session;!this.$inChange&&t&&p.getLength()==1&&!p.getValue()&&this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(!e||!e.hasLinkedRanges||!e.firstNonLinked)return;this.$inChange=!0;var n=this.editor.session,r=n.getTextRange(e.firstNonLinked);for(var i=0;i<e.length;i++){var s=e[i];if(!s.linked)continue;var o=s.original,u=t.snippetManager.tmStrFormat(r,o,this.editor);n.replace(s,u)}this.$inChange=!1},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(!this.editor)return;var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty();for(var r=0;r<this.ranges.length;r++){if(this.ranges[r].linked)continue;var i=this.ranges[r].contains(e.row,e.column),s=n||this.ranges[r].contains(t.row,t.column);if(i&&s)return}this.detach()},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);n=Math.min(Math.max(n,1),t),n==t&&(n=0),this.selectTabstop(n),n===0&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];t&&this.addTabstopMarkers(t),this.index=e,t=this.tabstops[this.index];if(!t||!t.length)return;this.selectedTabstop=t;var n=t.firstNonLinked||t;if(!this.editor.inVirtualSelectionMode){var r=this.editor.multiSelect;r.toSingleRange(n.clone());for(var i=0;i<t.length;i++){if(t.hasLinkedRanges&&t[i].linked)continue;r.addRange(t[i].clone(),!0)}r.ranges[0]&&r.addRange(r.ranges[0].clone())}else this.editor.selection.setRange(n);this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand(\"startAutocomplete\",{matches:this.selectedTabstop.choices})},this.addTabstops=function(e,t,n){var r=this.useLink||!this.editor.getOption(\"enableMultiselect\");this.$openTabstops||(this.$openTabstops=[]);if(!e[0]){var i=o.fromPoints(n,n);m(i.start,t),m(i.end,t),e[0]=[i],e[0].index=0}var s=this.index,a=[s+1,0],f=this.ranges;e.forEach(function(e,n){var i=this.$openTabstops[n]||e;for(var s=0;s<e.length;s++){var l=e[s],c=o.fromPoints(l.start,l.end||l.start);v(c.start,t),v(c.end,t),c.original=l,c.tabstop=i,f.push(c),i!=e?i.unshift(c):i[s]=c,l.fmtString||i.firstNonLinked&&r?(c.linked=!0,i.hasLinkedRanges=!0):i.firstNonLinked||(i.firstNonLinked=c)}i.firstNonLinked||(i.hasLinkedRanges=!1),i===e&&(a.push(i),this.$openTabstops[n]=i),this.addTabstopMarkers(i),i.rangeList=i.rangeList||new u,i.rangeList.$bias=0,i.rangeList.addList(i)},this),a.length>2&&(this.tabstops.length&&a.push(a.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,a))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){e.markerId||(e.markerId=t.addMarker(e,\"ace_snippet-marker\",\"text\"))})},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){t.removeMarker(e.markerId),e.markerId=null})},this.removeRange=function(e){var t=e.tabstop.indexOf(e);t!=-1&&e.tabstop.splice(t,1),t=this.ranges.indexOf(e),t!=-1&&this.ranges.splice(t,1),t=e.tabstop.rangeList.ranges.indexOf(e),t!=-1&&e.tabstop.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(t=this.tabstops.indexOf(e.tabstop),t!=-1&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new a,this.keyboardHandler.bindKeys({Tab:function(e){if(t.snippetManager&&t.snippetManager.expandWithTab(e))return;e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView()},\"Shift-Tab\":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}})}).call(d.prototype);var v=function(e,t){e.row==0&&(e.column+=t.column),e.row+=t.row},m=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e(\"./lib/dom\").importCssString(\".ace_snippet-marker {    -moz-box-sizing: border-box;    box-sizing: border-box;    background: rgba(194, 193, 208, 0.09);    border: 1px dotted rgba(211, 208, 235, 0.62);    position: absolute;}\"),t.snippetManager=new p;var g=e(\"./editor\").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(g.prototype)}),define(\"ace/autocomplete\",[\"require\",\"exports\",\"module\",\"ace/keyboard/hash_handler\",\"ace/autocomplete/popup\",\"ace/autocomplete/util\",\"ace/lib/lang\",\"ace/lib/dom\",\"ace/snippets\",\"ace/config\"],function(e,t,n){\"use strict\";var r=e(\"./keyboard/hash_handler\").HashHandler,i=e(\"./autocomplete/popup\").AcePopup,s=e(\"./autocomplete/util\"),o=e(\"./lib/lang\"),u=e(\"./lib/dom\"),a=e(\"./snippets\").snippetManager,f=e(\"./config\"),l=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=o.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=o.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new i(document.body||document.documentElement),this.popup.on(\"click\",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on(\"show\",this.tooltipTimer.bind(null,null)),this.popup.on(\"select\",this.tooltipTimer.bind(null,null)),this.popup.on(\"changeHoverMarker\",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered,this.completions.filterText),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var r=e.renderer;this.popup.setRow(this.autoSelect?0:-1);if(!n){this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var i=r.layerConfig.lineHeight,s=r.$cursorLayer.getPixelPosition(this.base,!0);s.left-=this.popup.getTextLeftOffset();var o=e.container.getBoundingClientRect();s.top+=o.top-r.layerConfig.offset,s.left+=o.left-e.renderer.scrollLeft,s.left+=r.gutterWidth,this.popup.show(s,i)}else n&&!t&&this.detach()},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off(\"changeSelection\",this.changeListener),this.editor.off(\"blur\",this.blurListener),this.editor.off(\"mousedown\",this.mousedownListener),this.editor.off(\"mousewheel\",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),r=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),i=this.popup&&this.popup.container;t!=n&&t.parentNode!=i&&!r&&t!=this.tooltipNode&&e.relatedTarget!=n&&this.detach()},this.mousedownListener=function(e){this.detach()},this.mousewheelListener=function(e){this.detach()},this.goTo=function(e){this.popup.goTo(e)},this.insertMatch=function(e,t){e||(e=this.popup.getData(this.popup.getRow()));if(!e)return!1;this.editor.startOperation({command:{name:\"insertMatch\"}});if(e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(this.completions.filterText){var n=this.editor.selection.getAllRanges();for(var r=0,i;i=n[r];r++)i.start.column-=this.completions.filterText.length,this.editor.session.remove(i)}e.snippet?a.insertSnippet(this.editor,e.snippet):this.editor.execCommand(\"insertstring\",e.value||e)}this.detach(),this.editor.endOperation()},this.commands={Up:function(e){e.completer.goTo(\"up\")},Down:function(e){e.completer.goTo(\"down\")},\"Ctrl-Up|Ctrl-Home\":function(e){e.completer.goTo(\"start\")},\"Ctrl-Down|Ctrl-End\":function(e){e.completer.goTo(\"end\")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},\"Shift-Return\":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(!!t||!!e.tabstopManager)return t;e.completer.goTo(\"down\")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(e,t){var n=e.getSession(),r=e.getCursorPosition(),i=s.getCompletionPrefix(e);this.base=n.doc.createAnchor(r.row,r.column-i.length),this.base.$insertRight=!0;var o=[],u=e.completers.length;return e.completers.forEach(function(a,f){a.getCompletions(e,n,r,i,function(n,r){!n&&r&&(o=o.concat(r)),t(null,{prefix:s.getCompletionPrefix(e),matches:o,finished:--u===0})})}),!0},this.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on(\"changeSelection\",this.changeListener),e.on(\"blur\",this.blurListener),e.on(\"mousedown\",this.mousedownListener),e.on(\"mousewheel\",this.mousewheelListener),this.updateCompletions(!1,t)},this.updateCompletions=function(e,t){if(e&&this.base&&this.completions){var n=this.editor.getCursorPosition(),r=this.editor.session.getTextRange({start:this.base,end:n});if(r==this.completions.filterText)return;this.completions.setFilter(r);if(!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==r&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,r,e);return}if(t&&t.matches){var n=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(n.row,n.column),this.base.$insertRight=!0,this.completions=new c(t.matches),this.openPopup(this.editor,\"\",e)}var i=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(t,n){var r=function(){if(!n.finished)return;return this.detach()}.bind(this),s=n.prefix,o=n&&n.matches;if(!o||!o.length)return r();if(s.indexOf(n.prefix)!==0||i!=this.gatherCompletionsId)return;this.completions=new c(o),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(s);var u=this.completions.filtered;if(!u.length)return r();if(u.length==1&&u[0].value==s&&!u[0].snippet)return r();if(this.autoInsert&&u.length==1&&n.finished)return this.insertMatch(u[0]);this.openPopup(this.editor,s,e)}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),r=null;if(!n||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();this.editor.completers.some(function(e){return e.getDocTooltip&&(r=e.getDocTooltip(n)),r}),!r&&typeof n!=\"string\"&&(r=n),typeof r==\"string\"&&(r={docText:r});if(!r||!r.docHTML&&!r.docText)return this.hideDocTooltip();this.showDocTooltip(r)},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=u.createElement(\"div\"),this.tooltipNode.className=\"ace_tooltip ace_doc-tooltip\",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents=\"auto\",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,r=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,t.style.display=\"block\",window.innerWidth-r.right<320?r.left<320?n.isTopdown?(t.style.top=r.bottom+\"px\",t.style.left=r.left+\"px\",t.style.right=\"\",t.style.bottom=\"\"):(t.style.top=n.container.offsetTop-t.offsetHeight+\"px\",t.style.left=r.left+\"px\",t.style.right=\"\",t.style.bottom=\"\"):(t.style.right=window.innerWidth-r.left+\"px\",t.style.left=\"\"):(t.style.left=r.right+1+\"px\",t.style.right=\"\")},this.hideDocTooltip=function(){this.tooltipTimer.cancel();if(!this.tooltipNode)return;var e=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==e&&this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)},this.onTooltipClick=function(e){var t=e.target;while(t&&t!=this.tooltipNode){if(t.nodeName==\"A\"&&t.href){t.rel=\"noreferrer\",t.target=\"_blank\";break}t=t.parentNode}},this.destroy=function(){this.detach();if(this.popup){this.popup.destroy();var e=this.popup.container;e&&e.parentNode&&e.parentNode.removeChild(e)}this.editor&&this.editor.completer==this&&this.editor.completer==null,this.popup=null}}).call(l.prototype),l.for=function(e){return e.completer?e.completer:(f.get(\"sharedPopups\")?(l.$shared||(l.$sharedInstance=new l),e.completer=l.$sharedInstance):(e.completer=new l,e.once(\"destroy\",function(e,t){t.completer.destroy()})),e.completer)},l.startCommand={name:\"startAutocomplete\",exec:function(e,t){var n=l.for(e);n.autoInsert=!1,n.autoSelect=!0,n.showPopup(e,t),n.cancelContextMenu()},bindKey:\"Ctrl-Space|Ctrl-Shift-Space|Alt-Space\"};var c=function(e,t){this.all=e,this.filtered=e,this.filterText=t||\"\",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&e.lastIndexOf(this.filterText,0)===0)var t=this.filtered;else var t=this.all;this.filterText=e,t=this.filterCompletions(t,this.filterText),t=t.sort(function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)});var n=null;t=t.filter(function(e){var t=e.snippet||e.caption||e.value;return t===n?!1:(n=t,!0)}),this.filtered=t},this.filterCompletions=function(e,t){var n=[],r=t.toUpperCase(),i=t.toLowerCase();e:for(var s=0,o;o=e[s];s++){var u=o.caption||o.value||o.snippet;if(!u)continue;var a=-1,f=0,l=0,c,h;if(this.exactMatch){if(t!==u.substr(0,t.length))continue e}else{var p=u.toLowerCase().indexOf(i);if(p>-1)l=p;else for(var d=0;d<t.length;d++){var v=u.indexOf(i[d],a+1),m=u.indexOf(r[d],a+1);c=v>=0?m<0||v<m?v:m:m;if(c<0)continue e;h=c-a-1,h>0&&(a===-1&&(l+=10),l+=h,f|=1<<d),a=c}}o.matchMask=f,o.exactMatch=l?0:1,o.$score=(o.score||0)-l,n.push(o)}return n}}).call(c.prototype),t.Autocomplete=l,t.FilteredList=c}),define(\"ace/ext/menu_tools/overlay_page\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";var r=e(\"../../lib/dom\"),i=\"#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 100000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {vertical-align: middle;}.ace_optionsMenuEntry button[ace_selected_button=true] {background: #e7e7e7;box-shadow: 1px 0px 2px 0px #adadad inset;border-color: #adadad;}.ace_optionsMenuEntry button {background: white;border: 1px solid lightgray;margin: 0px;}.ace_optionsMenuEntry button:hover{background: #f0f0f0;}\";r.importCssString(i),n.exports.overlayPage=function(t,n,r){function o(e){e.keyCode===27&&u()}function u(){if(!i)return;document.removeEventListener(\"keydown\",o),i.parentNode.removeChild(i),t&&t.focus(),i=null,r&&r()}function a(e){s=e,e&&(i.style.pointerEvents=\"none\",n.style.pointerEvents=\"auto\")}var i=document.createElement(\"div\"),s=!1;return i.style.cssText=\"margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; \"+(t?\"background-color: rgba(0, 0, 0, 0.3);\":\"\"),i.addEventListener(\"click\",function(e){s||u()}),document.addEventListener(\"keydown\",o),n.addEventListener(\"click\",function(e){e.stopPropagation()}),i.appendChild(n),document.body.appendChild(i),t&&t.blur(),{close:u,setIgnoreFocusOut:a}}}),define(\"ace/ext/modelist\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";function i(e){var t=a.text,n=e.split(/[\\/\\\\]/).pop();for(var i=0;i<r.length;i++)if(r[i].supportsFile(n)){t=r[i];break}return t}var r=[],s=function(e,t,n){this.name=e,this.caption=t,this.mode=\"ace/mode/\"+e,this.extensions=n;var r;/\\^/.test(n)?r=n.replace(/\\|(\\^)?/g,function(e,t){return\"$|\"+(t?\"^\":\"^.*\\\\.\")})+\"$\":r=\"^.*\\\\.(\"+n+\")$\",this.extRe=new RegExp(r,\"gi\")};s.prototype.supportsFile=function(e){return e.match(this.extRe)};var o={ABAP:[\"abap\"],ABC:[\"abc\"],ActionScript:[\"as\"],ADA:[\"ada|adb\"],Alda:[\"alda\"],Apache_Conf:[\"^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd\"],Apex:[\"apex|cls|trigger|tgr\"],AQL:[\"aql\"],AsciiDoc:[\"asciidoc|adoc\"],ASL:[\"dsl|asl\"],Assembly_x86:[\"asm|a\"],AutoHotKey:[\"ahk\"],BatchFile:[\"bat|cmd\"],C_Cpp:[\"cpp|c|cc|cxx|h|hh|hpp|ino\"],C9Search:[\"c9search_results\"],Cirru:[\"cirru|cr\"],Clojure:[\"clj|cljs\"],Cobol:[\"CBL|COB\"],coffee:[\"coffee|cf|cson|^Cakefile\"],ColdFusion:[\"cfm\"],Crystal:[\"cr\"],CSharp:[\"cs\"],Csound_Document:[\"csd\"],Csound_Orchestra:[\"orc\"],Csound_Score:[\"sco\"],CSS:[\"css\"],Curly:[\"curly\"],D:[\"d|di\"],Dart:[\"dart\"],Diff:[\"diff|patch\"],Dockerfile:[\"^Dockerfile\"],Dot:[\"dot\"],Drools:[\"drl\"],Edifact:[\"edi\"],Eiffel:[\"e|ge\"],EJS:[\"ejs\"],Elixir:[\"ex|exs\"],Elm:[\"elm\"],Erlang:[\"erl|hrl\"],Forth:[\"frt|fs|ldr|fth|4th\"],Fortran:[\"f|f90\"],FSharp:[\"fsi|fs|ml|mli|fsx|fsscript\"],FSL:[\"fsl\"],FTL:[\"ftl\"],Gcode:[\"gcode\"],Gherkin:[\"feature\"],Gitignore:[\"^.gitignore\"],Glsl:[\"glsl|frag|vert\"],Gobstones:[\"gbs\"],golang:[\"go\"],GraphQLSchema:[\"gql\"],Groovy:[\"groovy\"],HAML:[\"haml\"],Handlebars:[\"hbs|handlebars|tpl|mustache\"],Haskell:[\"hs\"],Haskell_Cabal:[\"cabal\"],haXe:[\"hx\"],Hjson:[\"hjson\"],HTML:[\"html|htm|xhtml|vue|we|wpy\"],HTML_Elixir:[\"eex|html.eex\"],HTML_Ruby:[\"erb|rhtml|html.erb\"],INI:[\"ini|conf|cfg|prefs\"],Io:[\"io\"],Jack:[\"jack\"],Jade:[\"jade|pug\"],Java:[\"java\"],JavaScript:[\"js|jsm|jsx\"],JSON:[\"json\"],JSON5:[\"json5\"],JSONiq:[\"jq\"],JSP:[\"jsp\"],JSSM:[\"jssm|jssm_state\"],JSX:[\"jsx\"],Julia:[\"jl\"],Kotlin:[\"kt|kts\"],LaTeX:[\"tex|latex|ltx|bib\"],LESS:[\"less\"],Liquid:[\"liquid\"],Lisp:[\"lisp\"],LiveScript:[\"ls\"],LogiQL:[\"logic|lql\"],LSL:[\"lsl\"],Lua:[\"lua\"],LuaPage:[\"lp\"],Lucene:[\"lucene\"],Makefile:[\"^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make\"],Markdown:[\"md|markdown\"],Mask:[\"mask\"],MATLAB:[\"matlab\"],Maze:[\"mz\"],MediaWiki:[\"wiki|mediawiki\"],MEL:[\"mel\"],MIXAL:[\"mixal\"],MUSHCode:[\"mc|mush\"],MySQL:[\"mysql\"],Nginx:[\"nginx|conf\"],Nim:[\"nim\"],Nix:[\"nix\"],NSIS:[\"nsi|nsh\"],Nunjucks:[\"nunjucks|nunjs|nj|njk\"],ObjectiveC:[\"m|mm\"],OCaml:[\"ml|mli\"],Pascal:[\"pas|p\"],Perl:[\"pl|pm\"],Perl6:[\"p6|pl6|pm6\"],pgSQL:[\"pgsql\"],PHP:[\"php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module\"],PHP_Laravel_blade:[\"blade.php\"],Pig:[\"pig\"],Powershell:[\"ps1\"],Praat:[\"praat|praatscript|psc|proc\"],Prisma:[\"prisma\"],Prolog:[\"plg|prolog\"],Properties:[\"properties\"],Protobuf:[\"proto\"],Puppet:[\"epp|pp\"],Python:[\"py\"],QML:[\"qml\"],R:[\"r\"],Razor:[\"cshtml|asp\"],RDoc:[\"Rd\"],Red:[\"red|reds\"],RHTML:[\"Rhtml\"],RST:[\"rst\"],Ruby:[\"rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile\"],Rust:[\"rs\"],SASS:[\"sass\"],SCAD:[\"scad\"],Scala:[\"scala|sbt\"],Scheme:[\"scm|sm|rkt|oak|scheme\"],SCSS:[\"scss\"],SH:[\"sh|bash|^.bashrc\"],SJS:[\"sjs\"],Slim:[\"slim|skim\"],Smarty:[\"smarty|tpl\"],snippets:[\"snippets\"],Soy_Template:[\"soy\"],Space:[\"space\"],SQL:[\"sql\"],SQLServer:[\"sqlserver\"],Stylus:[\"styl|stylus\"],SVG:[\"svg\"],Swift:[\"swift\"],Tcl:[\"tcl\"],Terraform:[\"tf\",\"tfvars\",\"terragrunt\"],Tex:[\"tex\"],Text:[\"txt\"],Textile:[\"textile\"],Toml:[\"toml\"],TSX:[\"tsx\"],Twig:[\"latte|twig|swig\"],Typescript:[\"ts|typescript|str\"],Vala:[\"vala\"],VBScript:[\"vbs|vb\"],Velocity:[\"vm\"],Verilog:[\"v|vh|sv|svh\"],VHDL:[\"vhd|vhdl\"],Visualforce:[\"vfp|component|page\"],Wollok:[\"wlk|wpgm|wtest\"],XML:[\"xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml\"],XQuery:[\"xq\"],YAML:[\"yaml|yml\"],Zeek:[\"zeek|bro\"],Django:[\"html\"]},u={ObjectiveC:\"Objective-C\",CSharp:\"C#\",golang:\"Go\",C_Cpp:\"C and C++\",Csound_Document:\"Csound Document\",Csound_Orchestra:\"Csound\",Csound_Score:\"Csound Score\",coffee:\"CoffeeScript\",HTML_Ruby:\"HTML (Ruby)\",HTML_Elixir:\"HTML (Elixir)\",FTL:\"FreeMarker\",PHP_Laravel_blade:\"PHP (Blade Template)\",Perl6:\"Perl 6\",AutoHotKey:\"AutoHotkey / AutoIt\"},a={};for(var f in o){var l=o[f],c=(u[f]||f).replace(/_/g,\" \"),h=f.toLowerCase(),p=new s(h,c,l[0]);a[h]=p,r.push(p)}n.exports={getModeForPath:i,modes:r,modesByName:a}}),define(\"ace/ext/prompt\",[\"require\",\"exports\",\"module\",\"ace/range\",\"ace/lib/dom\",\"ace/ext/menu_tools/get_editor_keyboard_shortcuts\",\"ace/autocomplete\",\"ace/autocomplete/popup\",\"ace/autocomplete/popup\",\"ace/undomanager\",\"ace/tokenizer\",\"ace/ext/menu_tools/overlay_page\",\"ace/ext/modelist\"],function(e,t,n){\"use strict\";function d(e,t,n,r){function b(){var e;m&&m.getCursorPosition().row>0?e=x():e=o.getValue();var t=m?m.getData(m.getRow()):e;t&&!t.error&&(E(),n.onAccept&&n.onAccept({value:e,item:t},o))}function E(){v.close(),r&&r(),p=null}function S(){if(n.getCompletions){var e;n.getPrefix&&(e=n.getPrefix(o));var t=n.getCompletions(o);m.setData(t,e),m.resize(!0)}}function x(){var e=m.getData(m.getRow());if(e&&!e.error)return e.value||e.caption||e}if(typeof t==\"object\")return d(e,\"\",t,n);if(p){var s=p;e=s.editor,s.close();if(s.name&&s.name==n.name)return}if(n.$type)return d[n.$type](e,r);var o=a();o.session.setUndoManager(new f);var h=i.buildDom([\"div\",{\"class\":\"ace_prompt_container\"+(n.hasDescription?\" input-box-with-description\":\"\")}]),v=c(e,h,E);h.appendChild(o.container),e&&(e.cmdLine=o,o.setOption(\"fontSize\",e.getOption(\"fontSize\"))),t&&o.setValue(t,1),n.selection&&o.selection.setRange({start:o.session.doc.indexToPosition(n.selection[0]),end:o.session.doc.indexToPosition(n.selection[1])});if(n.getCompletions){var m=new u;m.renderer.setStyle(\"ace_autocomplete_inline\"),m.container.style.display=\"block\",m.container.style.maxWidth=\"600px\",m.container.style.width=\"100%\",m.container.style.marginTop=\"3px\",m.renderer.setScrollMargin(2,2,0,0),m.autoSelect=!1,m.renderer.$maxLines=15,m.setRow(-1),m.on(\"click\",function(e){var t=m.getData(m.getRow());t.error||(o.setValue(t.value||t.name||t),b(),e.stop())}),h.appendChild(m.container),S()}if(n.$rules){var g=new l(n.$rules);o.session.bgTokenizer.setTokenizer(g)}n.placeholder&&o.setOption(\"placeholder\",n.placeholder);if(n.hasDescription){var y=i.buildDom([\"div\",{\"class\":\"ace_prompt_text_container\"}]);i.buildDom(n.prompt||\"Press 'Enter' to confirm or 'Escape' to cancel\",y),h.appendChild(y)}v.setIgnoreFocusOut(n.ignoreFocusOut);var w={Enter:b,\"Esc|Shift-Esc\":function(){n.onCancel&&n.onCancel(o.getValue(),o),E()}};m&&Object.assign(w,{Up:function(e){m.goTo(\"up\"),x()},Down:function(e){m.goTo(\"down\"),x()},\"Ctrl-Up|Ctrl-Home\":function(e){m.goTo(\"start\"),x()},\"Ctrl-Down|Ctrl-End\":function(e){m.goTo(\"end\"),x()},Tab:function(e){m.goTo(\"down\"),x()},PageUp:function(e){m.gotoPageUp(),x()},PageDown:function(e){m.gotoPageDown(),x()}}),o.commands.bindKeys(w),o.on(\"input\",function(){n.onInput&&n.onInput(),S()}),o.resize(!0),m&&m.resize(!0),o.focus(),p={close:E,name:n.name,editor:e}}var r=e(\"../range\").Range,i=e(\"../lib/dom\"),s=e(\"../ext/menu_tools/get_editor_keyboard_shortcuts\"),o=e(\"../autocomplete\").FilteredList,u=e(\"../autocomplete/popup\").AcePopup,a=e(\"../autocomplete/popup\").$singleLineEditor,f=e(\"../undomanager\").UndoManager,l=e(\"../tokenizer\").Tokenizer,c=e(\"./menu_tools/overlay_page\").overlayPage,h=e(\"./modelist\"),p;d.gotoLine=function(e,t){function n(e){return Array.isArray(e)||(e=[e]),e.map(function(e){var t=e.isBackwards?e.start:e.end,n=e.isBackwards?e.end:e.start,r=n.row,i=r+1+\":\"+n.column;return n.row==t.row?n.column!=t.column&&(i+=\">:\"+t.column):i+=\">\"+(t.row+1)+\":\"+t.column,i}).reverse().join(\", \")}d(e,\":\"+n(e.selection.toJSON()),{name:\"gotoLine\",selection:[1,Number.MAX_VALUE],onAccept:function(t){var n=t.value,i=d.gotoLine._history;i||(d.gotoLine._history=i=[]),i.indexOf(n)!=-1&&i.splice(i.indexOf(n),1),i.unshift(n),i.length>20&&(i.length=20);var s=e.getCursorPosition(),o=[];n.replace(/^:/,\"\").split(/,/).map(function(t){function u(){var t=n[i++];if(!t)return;if(t[0]==\"c\"){var r=parseInt(t.slice(1))||0;return e.session.doc.indexToPosition(r)}var o=s.row,u=0;return/\\d/.test(t)&&(o=parseInt(t)-1,t=n[i++]),t==\":\"&&(t=n[i++],/\\d/.test(t)&&(u=parseInt(t)||0)),{row:o,column:u}}var n=t.split(/([<>:+-]|c?\\d+)|[^c\\d<>:+-]+/).filter(Boolean),i=0;s=u();var a=r.fromPoints(s,s);n[i]==\">\"?(i++,a.end=u()):n[i]==\"<\"&&(i++,a.start=u()),o.unshift(a)}),e.selection.fromJSON(o);var u=e.renderer.scrollTop;e.renderer.scrollSelectionIntoView(e.selection.anchor,e.selection.cursor,.5),e.renderer.animateScrolling(u)},history:function(){var t=e.session.getUndoManager();return d.gotoLine._history?d.gotoLine._history:[]},getCompletions:function(t){var n=t.getValue(),r=n.replace(/^:/,\"\").split(\":\"),i=Math.min(parseInt(r[0])||1,e.session.getLength())-1,s=e.session.getLine(i),o=n+\"  \"+s;return[o].concat(this.history())},$rules:{start:[{regex:/\\d+/,token:\"string\"},{regex:/[:,><+\\-c]/,token:\"keyword\"}]}})},d.commands=function(e,t){function n(e){return(e||\"\").replace(/^./,function(e){return e.toUpperCase(e)}).replace(/[a-z][A-Z]/g,function(e){return e[0]+\" \"+e[1].toLowerCase(e)})}function r(t){var r=[],i={};return e.keyBinding.$handlers.forEach(function(e){var s=e.platform,o=e.byName;for(var u in o){var a;o[u].bindKey&&o[u].bindKey[s]!==null?a=o[u].bindKey.win:a=\"\";var f=o[u],l=f.description||n(f.name);Array.isArray(f)||(f=[f]),f.forEach(function(e){typeof e!=\"string\"&&(e=e.name);var n=t.find(function(t){return t===e});n||(i[e]?i[e].key+=\"|\"+a:(i[e]={key:a,command:e,description:l},r.push(i[e])))})}}),r}var i=[\"insertstring\",\"inserttext\",\"setIndentation\",\"paste\"],s=r(i);s=s.map(function(e){return{value:e.description,meta:e.key,command:e.command}}),d(e,\"\",{name:\"commands\",selection:[0,Number.MAX_VALUE],maxHistoryCount:5,onAccept:function(t){if(t.item){var n=t.item.command;this.addToHistory(t.item),e.execCommand(n)}},addToHistory:function(e){var t=this.history();t.unshift(e),delete e.message;for(var n=1;n<t.length;n++)if(t[n][\"command\"]==e.command){t.splice(n,1);break}this.maxHistoryCount>0&&t.length>this.maxHistoryCount&&t.splice(t.length-1,1),d.commands.history=t},history:function(){return d.commands.history||[]},getPrefix:function(e){var t=e.getCursorPosition(),n=e.getValue();return n.substring(0,t.column)},getCompletions:function(e){function t(e,t){var n=JSON.parse(JSON.stringify(e)),r=new o(n);return r.filterCompletions(n,t)}function n(e,t){if(!t||!t.length)return e;var n=[];t.forEach(function(e){n.push(e.command)});var r=[];return e.forEach(function(e){n.indexOf(e.command)===-1&&r.push(e)}),r}var r=this.getPrefix(e),i=t(this.history(),r),u=n(s,i);u=t(u,r),i.length&&u.length&&(i[0].message=\" Recently used\",u[0].message=\" Other commands\");var a=i.concat(u);return a.length>0?a:[{value:\"No matching commands\",error:1}]}})},d.modes=function(e,t){var n=h.modes;n=n.map(function(e){return{value:e.caption,mode:e.name}}),d(e,\"\",{name:\"modes\",selection:[0,Number.MAX_VALUE],onAccept:function(t){if(t.item){var n=\"ace/mode/\"+t.item.mode;e.session.setMode(n)}},getPrefix:function(e){var t=e.getCursorPosition(),n=e.getValue();return n.substring(0,t.column)},getCompletions:function(e){function t(e,t){var n=JSON.parse(JSON.stringify(e)),r=new o(n);return r.filterCompletions(n,t)}var r=this.getPrefix(e),i=t(n,r);return i.length>0?i:[{caption:\"No mode matching\",value:\"No mode matching\",error:1}]}})},i.importCssString(\".ace_prompt_container {    max-width: 600px;    width: 100%;    margin: 20px auto;    padding: 3px;    background: white;    border-radius: 2px;    box-shadow: 0px 2px 3px 0px #555;}\"),t.prompt=d});                (function() {\n                    window.require([\"ace/ext/prompt\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-rtl.js",
    "content": "define(\"ace/ext/rtl\",[\"require\",\"exports\",\"module\",\"ace/editor\",\"ace/config\"],function(e,t,n){\"use strict\";function s(e,t){var n=t.getSelection().lead;t.session.$bidiHandler.isRtlLine(n.row)&&n.column===0&&(t.session.$bidiHandler.isMoveLeftOperation&&n.row>0?t.getSelection().moveCursorTo(n.row-1,t.session.getLine(n.row-1).length):t.getSelection().isEmpty()?n.column+=1:n.setPosition(n.row,n.column+1))}function o(e){e.editor.session.$bidiHandler.isMoveLeftOperation=/gotoleft|selectleft|backspace|removewordleft/.test(e.command.name)}function u(e,t){var n=t.session;n.$bidiHandler.currentRow=null;if(n.$bidiHandler.isRtlLine(e.start.row)&&e.action===\"insert\"&&e.lines.length>1)for(var r=e.start.row;r<e.end.row;r++)n.getLine(r+1).charAt(0)!==n.$bidiHandler.RLE&&(n.doc.$lines[r+1]=n.$bidiHandler.RLE+n.getLine(r+1))}function a(e,t){var n=t.session,r=n.$bidiHandler,i=t.$textLayer.$lines.cells,s=t.layerConfig.width-t.layerConfig.padding+\"px\";i.forEach(function(e){var t=e.element.style;r&&r.isRtlLine(e.row)?(t.direction=\"rtl\",t.textAlign=\"right\",t.width=s):(t.direction=\"\",t.textAlign=\"\",t.width=\"\")})}function f(e){function n(e){var t=e.element.style;t.direction=t.textAlign=t.width=\"\"}var t=e.$textLayer.$lines;t.cells.forEach(n),t.cellCache.forEach(n)}var r=[{name:\"leftToRight\",bindKey:{win:\"Ctrl-Alt-Shift-L\",mac:\"Command-Alt-Shift-L\"},exec:function(e){e.session.$bidiHandler.setRtlDirection(e,!1)},readOnly:!0},{name:\"rightToLeft\",bindKey:{win:\"Ctrl-Alt-Shift-R\",mac:\"Command-Alt-Shift-R\"},exec:function(e){e.session.$bidiHandler.setRtlDirection(e,!0)},readOnly:!0}],i=e(\"../editor\").Editor;e(\"../config\").defineOptions(i.prototype,\"editor\",{rtlText:{set:function(e){e?(this.on(\"change\",u),this.on(\"changeSelection\",s),this.renderer.on(\"afterRender\",a),this.commands.on(\"exec\",o),this.commands.addCommands(r)):(this.off(\"change\",u),this.off(\"changeSelection\",s),this.renderer.off(\"afterRender\",a),this.commands.off(\"exec\",o),this.commands.removeCommands(r),f(this.renderer)),this.renderer.updateFull()}},rtl:{set:function(e){this.session.$bidiHandler.$isRtl=e,e?(this.setOption(\"rtlText\",!1),this.renderer.on(\"afterRender\",a),this.session.$bidiHandler.seenBidi=!0):(this.renderer.off(\"afterRender\",a),f(this.renderer)),this.renderer.updateFull()}}})});                (function() {\n                    window.require([\"ace/ext/rtl\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-searchbox.js",
    "content": "define(\"ace/ext/searchbox\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\",\"ace/lib/lang\",\"ace/lib/event\",\"ace/keyboard/hash_handler\",\"ace/lib/keys\"],function(e,t,n){\"use strict\";var r=e(\"../lib/dom\"),i=e(\"../lib/lang\"),s=e(\"../lib/event\"),o='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;min-height: 1.8em;box-sizing: content-box;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: \"\";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width:  2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing:    border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',u=e(\"../keyboard/hash_handler\").HashHandler,a=e(\"../lib/keys\"),f=999;r.importCssString(o,\"ace_searchbox\");var l=function(e,t,n){var i=r.createElement(\"div\");r.buildDom([\"div\",{\"class\":\"ace_search right\"},[\"span\",{action:\"hide\",\"class\":\"ace_searchbtn_close\"}],[\"div\",{\"class\":\"ace_search_form\"},[\"input\",{\"class\":\"ace_search_field\",placeholder:\"Search for\",spellcheck:\"false\"}],[\"span\",{action:\"findPrev\",\"class\":\"ace_searchbtn prev\"},\"\\u200b\"],[\"span\",{action:\"findNext\",\"class\":\"ace_searchbtn next\"},\"\\u200b\"],[\"span\",{action:\"findAll\",\"class\":\"ace_searchbtn\",title:\"Alt-Enter\"},\"All\"]],[\"div\",{\"class\":\"ace_replace_form\"},[\"input\",{\"class\":\"ace_search_field\",placeholder:\"Replace with\",spellcheck:\"false\"}],[\"span\",{action:\"replaceAndFindNext\",\"class\":\"ace_searchbtn\"},\"Replace\"],[\"span\",{action:\"replaceAll\",\"class\":\"ace_searchbtn\"},\"All\"]],[\"div\",{\"class\":\"ace_search_options\"},[\"span\",{action:\"toggleReplace\",\"class\":\"ace_button\",title:\"Toggle Replace mode\",style:\"float:left;margin-top:-2px;padding:0 5px;\"},\"+\"],[\"span\",{\"class\":\"ace_search_counter\"}],[\"span\",{action:\"toggleRegexpMode\",\"class\":\"ace_button\",title:\"RegExp Search\"},\".*\"],[\"span\",{action:\"toggleCaseSensitive\",\"class\":\"ace_button\",title:\"CaseSensitive Search\"},\"Aa\"],[\"span\",{action:\"toggleWholeWords\",\"class\":\"ace_button\",title:\"Whole Word Search\"},\"\\\\b\"],[\"span\",{action:\"searchInSelection\",\"class\":\"ace_button\",title:\"Search In Selection\"},\"S\"]]],i),this.element=i.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(e),r.importCssString(o,\"ace_searchbox\",e.container)};(function(){this.setEditor=function(e){e.searchBox=this,e.renderer.scroller.appendChild(this.element),this.editor=e},this.setSession=function(e){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(e){this.searchBox=e.querySelector(\".ace_search_form\"),this.replaceBox=e.querySelector(\".ace_replace_form\"),this.searchOption=e.querySelector(\"[action=searchInSelection]\"),this.replaceOption=e.querySelector(\"[action=toggleReplace]\"),this.regExpOption=e.querySelector(\"[action=toggleRegexpMode]\"),this.caseSensitiveOption=e.querySelector(\"[action=toggleCaseSensitive]\"),this.wholeWordOption=e.querySelector(\"[action=toggleWholeWords]\"),this.searchInput=this.searchBox.querySelector(\".ace_search_field\"),this.replaceInput=this.replaceBox.querySelector(\".ace_search_field\"),this.searchCounter=e.querySelector(\".ace_search_counter\")},this.$init=function(){var e=this.element;this.$initElements(e);var t=this;s.addListener(e,\"mousedown\",function(e){setTimeout(function(){t.activeInput.focus()},0),s.stopPropagation(e)}),s.addListener(e,\"click\",function(e){var n=e.target||e.srcElement,r=n.getAttribute(\"action\");r&&t[r]?t[r]():t.$searchBarKb.commands[r]&&t.$searchBarKb.commands[r].exec(t),s.stopPropagation(e)}),s.addCommandKeyListener(e,function(e,n,r){var i=a.keyCodeToString(r),o=t.$searchBarKb.findKeyCommand(n,i);o&&o.exec&&(o.exec(t),s.stopEvent(e))}),this.$onChange=i.delayedCall(function(){t.find(!1,!1)}),s.addListener(this.searchInput,\"input\",function(){t.$onChange.schedule(20)}),s.addListener(this.searchInput,\"focus\",function(){t.activeInput=t.searchInput,t.searchInput.value&&t.highlight()}),s.addListener(this.replaceInput,\"focus\",function(){t.activeInput=t.replaceInput,t.searchInput.value&&t.highlight()})},this.$closeSearchBarKb=new u([{bindKey:\"Esc\",name:\"closeSearchBar\",exec:function(e){e.searchBox.hide()}}]),this.$searchBarKb=new u,this.$searchBarKb.bindKeys({\"Ctrl-f|Command-f\":function(e){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?\"\":\"none\",e.replaceOption.checked=!1,e.$syncOptions(),e.searchInput.focus()},\"Ctrl-H|Command-Option-F\":function(e){if(e.editor.getReadOnly())return;e.replaceOption.checked=!0,e.$syncOptions(),e.replaceInput.focus()},\"Ctrl-G|Command-G\":function(e){e.findNext()},\"Ctrl-Shift-G|Command-Shift-G\":function(e){e.findPrev()},esc:function(e){setTimeout(function(){e.hide()})},Return:function(e){e.activeInput==e.replaceInput&&e.replace(),e.findNext()},\"Shift-Return\":function(e){e.activeInput==e.replaceInput&&e.replace(),e.findPrev()},\"Alt-Return\":function(e){e.activeInput==e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(e){(e.activeInput==e.replaceInput?e.searchInput:e.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:\"toggleRegexpMode\",bindKey:{win:\"Alt-R|Alt-/\",mac:\"Ctrl-Alt-R|Ctrl-Alt-/\"},exec:function(e){e.regExpOption.checked=!e.regExpOption.checked,e.$syncOptions()}},{name:\"toggleCaseSensitive\",bindKey:{win:\"Alt-C|Alt-I\",mac:\"Ctrl-Alt-R|Ctrl-Alt-I\"},exec:function(e){e.caseSensitiveOption.checked=!e.caseSensitiveOption.checked,e.$syncOptions()}},{name:\"toggleWholeWords\",bindKey:{win:\"Alt-B|Alt-W\",mac:\"Ctrl-Alt-B|Ctrl-Alt-W\"},exec:function(e){e.wholeWordOption.checked=!e.wholeWordOption.checked,e.$syncOptions()}},{name:\"toggleReplace\",exec:function(e){e.replaceOption.checked=!e.replaceOption.checked,e.$syncOptions()}},{name:\"searchInSelection\",exec:function(e){e.searchOption.checked=!e.searchRange,e.setSearchRange(e.searchOption.checked&&e.editor.getSelectionRange()),e.$syncOptions()}}]),this.setSearchRange=function(e){this.searchRange=e,e?this.searchRangeMarker=this.editor.session.addMarker(e,\"ace_active-line\"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(e){r.setCssClass(this.replaceOption,\"checked\",this.searchRange),r.setCssClass(this.searchOption,\"checked\",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?\"-\":\"+\",r.setCssClass(this.regExpOption,\"checked\",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,\"checked\",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,\"checked\",this.caseSensitiveOption.checked);var t=this.editor.getReadOnly();this.replaceOption.style.display=t?\"none\":\"\",this.replaceBox.style.display=this.replaceOption.checked&&!t?\"\":\"none\",this.find(!1,!1,e)},this.highlight=function(e){this.editor.session.highlight(e||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(e,t,n){var i=this.editor.find(this.searchInput.value,{skipCurrent:e,backwards:t,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:n,range:this.searchRange}),s=!i&&this.searchInput.value;r.setCssClass(this.searchBox,\"ace_nomatch\",s),this.editor._emit(\"findSearchBox\",{match:!s}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var e=this.editor,t=e.$search.$options.re,n=0,r=0;if(t){var i=this.searchRange?e.session.getTextRange(this.searchRange):e.getValue(),s=e.session.doc.positionToIndex(e.selection.anchor);this.searchRange&&(s-=e.session.doc.positionToIndex(this.searchRange.start));var o=t.lastIndex=0,u;while(u=t.exec(i)){n++,o=u.index,o<=s&&r++;if(n>f)break;if(!u[0]){t.lastIndex=o+=1;if(o>=i.length)break}}}this.searchCounter.textContent=r+\" of \"+(n>f?f+\"+\":n)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var e=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),t=!e&&this.searchInput.value;r.setCssClass(this.searchBox,\"ace_nomatch\",t),this.editor._emit(\"findSearchBox\",{match:!t}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off(\"changeSession\",this.setSession),this.element.style.display=\"none\",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(e,t){this.active=!0,this.editor.on(\"changeSession\",this.setSession),this.element.style.display=\"\",this.replaceOption.checked=t,e&&(this.searchInput.value=e),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput}}).call(l.prototype),t.SearchBox=l,t.Search=function(e,t){var n=e.searchBox||new l(e);n.show(e.session.getTextRange(),t)}});                (function() {\n                    window.require([\"ace/ext/searchbox\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-settings_menu.js",
    "content": "define(\"ace/ext/menu_tools/overlay_page\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";var r=e(\"../../lib/dom\"),i=\"#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 100000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {vertical-align: middle;}.ace_optionsMenuEntry button[ace_selected_button=true] {background: #e7e7e7;box-shadow: 1px 0px 2px 0px #adadad inset;border-color: #adadad;}.ace_optionsMenuEntry button {background: white;border: 1px solid lightgray;margin: 0px;}.ace_optionsMenuEntry button:hover{background: #f0f0f0;}\";r.importCssString(i),n.exports.overlayPage=function(t,n,r){function o(e){e.keyCode===27&&u()}function u(){if(!i)return;document.removeEventListener(\"keydown\",o),i.parentNode.removeChild(i),t&&t.focus(),i=null,r&&r()}function a(e){s=e,e&&(i.style.pointerEvents=\"none\",n.style.pointerEvents=\"auto\")}var i=document.createElement(\"div\"),s=!1;return i.style.cssText=\"margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; \"+(t?\"background-color: rgba(0, 0, 0, 0.3);\":\"\"),i.addEventListener(\"click\",function(e){s||u()}),document.addEventListener(\"keydown\",o),n.addEventListener(\"click\",function(e){e.stopPropagation()}),i.appendChild(n),document.body.appendChild(i),t&&t.blur(),{close:u,setIgnoreFocusOut:a}}}),define(\"ace/ext/modelist\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";function i(e){var t=a.text,n=e.split(/[\\/\\\\]/).pop();for(var i=0;i<r.length;i++)if(r[i].supportsFile(n)){t=r[i];break}return t}var r=[],s=function(e,t,n){this.name=e,this.caption=t,this.mode=\"ace/mode/\"+e,this.extensions=n;var r;/\\^/.test(n)?r=n.replace(/\\|(\\^)?/g,function(e,t){return\"$|\"+(t?\"^\":\"^.*\\\\.\")})+\"$\":r=\"^.*\\\\.(\"+n+\")$\",this.extRe=new RegExp(r,\"gi\")};s.prototype.supportsFile=function(e){return e.match(this.extRe)};var o={ABAP:[\"abap\"],ABC:[\"abc\"],ActionScript:[\"as\"],ADA:[\"ada|adb\"],Alda:[\"alda\"],Apache_Conf:[\"^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd\"],Apex:[\"apex|cls|trigger|tgr\"],AQL:[\"aql\"],AsciiDoc:[\"asciidoc|adoc\"],ASL:[\"dsl|asl\"],Assembly_x86:[\"asm|a\"],AutoHotKey:[\"ahk\"],BatchFile:[\"bat|cmd\"],C_Cpp:[\"cpp|c|cc|cxx|h|hh|hpp|ino\"],C9Search:[\"c9search_results\"],Cirru:[\"cirru|cr\"],Clojure:[\"clj|cljs\"],Cobol:[\"CBL|COB\"],coffee:[\"coffee|cf|cson|^Cakefile\"],ColdFusion:[\"cfm\"],Crystal:[\"cr\"],CSharp:[\"cs\"],Csound_Document:[\"csd\"],Csound_Orchestra:[\"orc\"],Csound_Score:[\"sco\"],CSS:[\"css\"],Curly:[\"curly\"],D:[\"d|di\"],Dart:[\"dart\"],Diff:[\"diff|patch\"],Dockerfile:[\"^Dockerfile\"],Dot:[\"dot\"],Drools:[\"drl\"],Edifact:[\"edi\"],Eiffel:[\"e|ge\"],EJS:[\"ejs\"],Elixir:[\"ex|exs\"],Elm:[\"elm\"],Erlang:[\"erl|hrl\"],Forth:[\"frt|fs|ldr|fth|4th\"],Fortran:[\"f|f90\"],FSharp:[\"fsi|fs|ml|mli|fsx|fsscript\"],FSL:[\"fsl\"],FTL:[\"ftl\"],Gcode:[\"gcode\"],Gherkin:[\"feature\"],Gitignore:[\"^.gitignore\"],Glsl:[\"glsl|frag|vert\"],Gobstones:[\"gbs\"],golang:[\"go\"],GraphQLSchema:[\"gql\"],Groovy:[\"groovy\"],HAML:[\"haml\"],Handlebars:[\"hbs|handlebars|tpl|mustache\"],Haskell:[\"hs\"],Haskell_Cabal:[\"cabal\"],haXe:[\"hx\"],Hjson:[\"hjson\"],HTML:[\"html|htm|xhtml|vue|we|wpy\"],HTML_Elixir:[\"eex|html.eex\"],HTML_Ruby:[\"erb|rhtml|html.erb\"],INI:[\"ini|conf|cfg|prefs\"],Io:[\"io\"],Jack:[\"jack\"],Jade:[\"jade|pug\"],Java:[\"java\"],JavaScript:[\"js|jsm|jsx\"],JSON:[\"json\"],JSON5:[\"json5\"],JSONiq:[\"jq\"],JSP:[\"jsp\"],JSSM:[\"jssm|jssm_state\"],JSX:[\"jsx\"],Julia:[\"jl\"],Kotlin:[\"kt|kts\"],LaTeX:[\"tex|latex|ltx|bib\"],LESS:[\"less\"],Liquid:[\"liquid\"],Lisp:[\"lisp\"],LiveScript:[\"ls\"],LogiQL:[\"logic|lql\"],LSL:[\"lsl\"],Lua:[\"lua\"],LuaPage:[\"lp\"],Lucene:[\"lucene\"],Makefile:[\"^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make\"],Markdown:[\"md|markdown\"],Mask:[\"mask\"],MATLAB:[\"matlab\"],Maze:[\"mz\"],MediaWiki:[\"wiki|mediawiki\"],MEL:[\"mel\"],MIXAL:[\"mixal\"],MUSHCode:[\"mc|mush\"],MySQL:[\"mysql\"],Nginx:[\"nginx|conf\"],Nim:[\"nim\"],Nix:[\"nix\"],NSIS:[\"nsi|nsh\"],Nunjucks:[\"nunjucks|nunjs|nj|njk\"],ObjectiveC:[\"m|mm\"],OCaml:[\"ml|mli\"],Pascal:[\"pas|p\"],Perl:[\"pl|pm\"],Perl6:[\"p6|pl6|pm6\"],pgSQL:[\"pgsql\"],PHP:[\"php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module\"],PHP_Laravel_blade:[\"blade.php\"],Pig:[\"pig\"],Powershell:[\"ps1\"],Praat:[\"praat|praatscript|psc|proc\"],Prisma:[\"prisma\"],Prolog:[\"plg|prolog\"],Properties:[\"properties\"],Protobuf:[\"proto\"],Puppet:[\"epp|pp\"],Python:[\"py\"],QML:[\"qml\"],R:[\"r\"],Razor:[\"cshtml|asp\"],RDoc:[\"Rd\"],Red:[\"red|reds\"],RHTML:[\"Rhtml\"],RST:[\"rst\"],Ruby:[\"rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile\"],Rust:[\"rs\"],SASS:[\"sass\"],SCAD:[\"scad\"],Scala:[\"scala|sbt\"],Scheme:[\"scm|sm|rkt|oak|scheme\"],SCSS:[\"scss\"],SH:[\"sh|bash|^.bashrc\"],SJS:[\"sjs\"],Slim:[\"slim|skim\"],Smarty:[\"smarty|tpl\"],snippets:[\"snippets\"],Soy_Template:[\"soy\"],Space:[\"space\"],SQL:[\"sql\"],SQLServer:[\"sqlserver\"],Stylus:[\"styl|stylus\"],SVG:[\"svg\"],Swift:[\"swift\"],Tcl:[\"tcl\"],Terraform:[\"tf\",\"tfvars\",\"terragrunt\"],Tex:[\"tex\"],Text:[\"txt\"],Textile:[\"textile\"],Toml:[\"toml\"],TSX:[\"tsx\"],Twig:[\"latte|twig|swig\"],Typescript:[\"ts|typescript|str\"],Vala:[\"vala\"],VBScript:[\"vbs|vb\"],Velocity:[\"vm\"],Verilog:[\"v|vh|sv|svh\"],VHDL:[\"vhd|vhdl\"],Visualforce:[\"vfp|component|page\"],Wollok:[\"wlk|wpgm|wtest\"],XML:[\"xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml\"],XQuery:[\"xq\"],YAML:[\"yaml|yml\"],Zeek:[\"zeek|bro\"],Django:[\"html\"]},u={ObjectiveC:\"Objective-C\",CSharp:\"C#\",golang:\"Go\",C_Cpp:\"C and C++\",Csound_Document:\"Csound Document\",Csound_Orchestra:\"Csound\",Csound_Score:\"Csound Score\",coffee:\"CoffeeScript\",HTML_Ruby:\"HTML (Ruby)\",HTML_Elixir:\"HTML (Elixir)\",FTL:\"FreeMarker\",PHP_Laravel_blade:\"PHP (Blade Template)\",Perl6:\"Perl 6\",AutoHotKey:\"AutoHotkey / AutoIt\"},a={};for(var f in o){var l=o[f],c=(u[f]||f).replace(/_/g,\" \"),h=f.toLowerCase(),p=new s(h,c,l[0]);a[h]=p,r.push(p)}n.exports={getModeForPath:i,modes:r,modesByName:a}}),define(\"ace/ext/themelist\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";var r=[[\"Chrome\"],[\"Clouds\"],[\"Crimson Editor\"],[\"Dawn\"],[\"Dreamweaver\"],[\"Eclipse\"],[\"GitHub\"],[\"IPlastic\"],[\"Solarized Light\"],[\"TextMate\"],[\"Tomorrow\"],[\"Xcode\"],[\"Kuroir\"],[\"KatzenMilch\"],[\"SQL Server\",\"sqlserver\",\"light\"],[\"Ambiance\",\"ambiance\",\"dark\"],[\"Chaos\",\"chaos\",\"dark\"],[\"Clouds Midnight\",\"clouds_midnight\",\"dark\"],[\"Dracula\",\"\",\"dark\"],[\"Cobalt\",\"cobalt\",\"dark\"],[\"Gruvbox\",\"gruvbox\",\"dark\"],[\"Green on Black\",\"gob\",\"dark\"],[\"idle Fingers\",\"idle_fingers\",\"dark\"],[\"krTheme\",\"kr_theme\",\"dark\"],[\"Merbivore\",\"merbivore\",\"dark\"],[\"Merbivore Soft\",\"merbivore_soft\",\"dark\"],[\"Mono Industrial\",\"mono_industrial\",\"dark\"],[\"Monokai\",\"monokai\",\"dark\"],[\"Nord Dark\",\"nord_dark\",\"dark\"],[\"Pastel on dark\",\"pastel_on_dark\",\"dark\"],[\"Solarized Dark\",\"solarized_dark\",\"dark\"],[\"Terminal\",\"terminal\",\"dark\"],[\"Tomorrow Night\",\"tomorrow_night\",\"dark\"],[\"Tomorrow Night Blue\",\"tomorrow_night_blue\",\"dark\"],[\"Tomorrow Night Bright\",\"tomorrow_night_bright\",\"dark\"],[\"Tomorrow Night 80s\",\"tomorrow_night_eighties\",\"dark\"],[\"Twilight\",\"twilight\",\"dark\"],[\"Vibrant Ink\",\"vibrant_ink\",\"dark\"]];t.themesByName={},t.themes=r.map(function(e){var n=e[1]||e[0].replace(/ /g,\"_\").toLowerCase(),r={caption:e[0],theme:\"ace/theme/\"+n,isDark:e[2]==\"dark\",name:n};return t.themesByName[n]=r,r})}),define(\"ace/ext/options\",[\"require\",\"exports\",\"module\",\"ace/ext/menu_tools/overlay_page\",\"ace/lib/dom\",\"ace/lib/oop\",\"ace/config\",\"ace/lib/event_emitter\",\"ace/ext/modelist\",\"ace/ext/themelist\"],function(e,t,n){\"use strict\";e(\"./menu_tools/overlay_page\");var r=e(\"../lib/dom\"),i=e(\"../lib/oop\"),s=e(\"../config\"),o=e(\"../lib/event_emitter\").EventEmitter,u=r.buildDom,a=e(\"./modelist\"),f=e(\"./themelist\"),l={Bright:[],Dark:[]};f.themes.forEach(function(e){l[e.isDark?\"Dark\":\"Bright\"].push({caption:e.caption,value:e.theme})});var c=a.modes.map(function(e){return{caption:e.caption,value:e.mode}}),h={Main:{Mode:{path:\"mode\",type:\"select\",items:c},Theme:{path:\"theme\",type:\"select\",items:l},Keybinding:{type:\"buttonBar\",path:\"keyboardHandler\",items:[{caption:\"Ace\",value:null},{caption:\"Vim\",value:\"ace/keyboard/vim\"},{caption:\"Emacs\",value:\"ace/keyboard/emacs\"},{caption:\"Sublime\",value:\"ace/keyboard/sublime\"},{caption:\"VSCode\",value:\"ace/keyboard/vscode\"}]},\"Font Size\":{path:\"fontSize\",type:\"number\",defaultValue:12,defaults:[{caption:\"12px\",value:12},{caption:\"24px\",value:24}]},\"Soft Wrap\":{type:\"buttonBar\",path:\"wrap\",items:[{caption:\"Off\",value:\"off\"},{caption:\"View\",value:\"free\"},{caption:\"margin\",value:\"printMargin\"},{caption:\"40\",value:\"40\"}]},\"Cursor Style\":{path:\"cursorStyle\",items:[{caption:\"Ace\",value:\"ace\"},{caption:\"Slim\",value:\"slim\"},{caption:\"Smooth\",value:\"smooth\"},{caption:\"Smooth And Slim\",value:\"smooth slim\"},{caption:\"Wide\",value:\"wide\"}]},Folding:{path:\"foldStyle\",items:[{caption:\"Manual\",value:\"manual\"},{caption:\"Mark begin\",value:\"markbegin\"},{caption:\"Mark begin and end\",value:\"markbeginend\"}]},\"Soft Tabs\":[{path:\"useSoftTabs\"},{ariaLabel:\"Tab Size\",path:\"tabSize\",type:\"number\",values:[2,3,4,8,16]}],Overscroll:{type:\"buttonBar\",path:\"scrollPastEnd\",items:[{caption:\"None\",value:0},{caption:\"Half\",value:.5},{caption:\"Full\",value:1}]}},More:{\"Atomic soft tabs\":{path:\"navigateWithinSoftTabs\"},\"Enable Behaviours\":{path:\"behavioursEnabled\"},\"Wrap with quotes\":{path:\"wrapBehavioursEnabled\"},\"Enable Auto Indent\":{path:\"enableAutoIndent\"},\"Full Line Selection\":{type:\"checkbox\",values:\"text|line\",path:\"selectionStyle\"},\"Highlight Active Line\":{path:\"highlightActiveLine\"},\"Show Invisibles\":{path:\"showInvisibles\"},\"Show Indent Guides\":{path:\"displayIndentGuides\"},\"Persistent HScrollbar\":{path:\"hScrollBarAlwaysVisible\"},\"Persistent VScrollbar\":{path:\"vScrollBarAlwaysVisible\"},\"Animate scrolling\":{path:\"animatedScroll\"},\"Show Gutter\":{path:\"showGutter\"},\"Show Line Numbers\":{path:\"showLineNumbers\"},\"Relative Line Numbers\":{path:\"relativeLineNumbers\"},\"Fixed Gutter Width\":{path:\"fixedWidthGutter\"},\"Show Print Margin\":[{path:\"showPrintMargin\"},{ariaLabel:\"Print Margin\",type:\"number\",path:\"printMarginColumn\"}],\"Indented Soft Wrap\":{path:\"indentedSoftWrap\"},\"Highlight selected word\":{path:\"highlightSelectedWord\"},\"Fade Fold Widgets\":{path:\"fadeFoldWidgets\"},\"Use textarea for IME\":{path:\"useTextareaForIME\"},\"Merge Undo Deltas\":{path:\"mergeUndoDeltas\",items:[{caption:\"Always\",value:\"always\"},{caption:\"Never\",value:\"false\"},{caption:\"Timed\",value:\"true\"}]},\"Elastic Tabstops\":{path:\"useElasticTabstops\"},\"Incremental Search\":{path:\"useIncrementalSearch\"},\"Read-only\":{path:\"readOnly\"},\"Copy without selection\":{path:\"copyWithEmptySelection\"},\"Live Autocompletion\":{path:\"enableLiveAutocompletion\"}}},p=function(e,t){this.editor=e,this.container=t||document.createElement(\"div\"),this.groups=[],this.options={}};(function(){i.implement(this,o),this.add=function(e){e.Main&&i.mixin(h.Main,e.Main),e.More&&i.mixin(h.More,e.More)},this.render=function(){this.container.innerHTML=\"\",u([\"table\",{role:\"presentation\",id:\"controls\"},this.renderOptionGroup(h.Main),[\"tr\",null,[\"td\",{colspan:2},[\"table\",{role:\"presentation\",id:\"more-controls\"},this.renderOptionGroup(h.More)]]],[\"tr\",null,[\"td\",{colspan:2},\"version \"+s.version]]],this.container)},this.renderOptionGroup=function(e){return Object.keys(e).map(function(t,n){var r=e[t];return r.position||(r.position=n/1e4),r.label||(r.label=t),r}).sort(function(e,t){return e.position-t.position}).map(function(e){return this.renderOption(e.label,e)},this)},this.renderOptionControl=function(e,t){var n=this;if(Array.isArray(t))return t.map(function(t){return n.renderOptionControl(e,t)});var r,i=n.getOption(t);t.values&&t.type!=\"checkbox\"&&(typeof t.values==\"string\"&&(t.values=t.values.split(\"|\")),t.items=t.values.map(function(e){return{value:e,name:e}}));if(t.type==\"buttonBar\")r=[\"div\",{role:\"group\",\"aria-labelledby\":t.path+\"-label\"},t.items.map(function(e){return[\"button\",{value:e.value,ace_selected_button:i==e.value,\"aria-pressed\":i==e.value,onclick:function(){n.setOption(t,e.value);var r=this.parentNode.querySelectorAll(\"[ace_selected_button]\");for(var i=0;i<r.length;i++)r[i].removeAttribute(\"ace_selected_button\"),r[i].setAttribute(\"aria-pressed\",!1);this.setAttribute(\"ace_selected_button\",!0),this.setAttribute(\"aria-pressed\",!0)}},e.desc||e.caption||e.name]})];else if(t.type==\"number\")r=[\"input\",{type:\"number\",value:i||t.defaultValue,style:\"width:3em\",oninput:function(){n.setOption(t,parseInt(this.value))}}],t.ariaLabel?r[1][\"aria-label\"]=t.ariaLabel:r[1].id=e,t.defaults&&(r=[r,t.defaults.map(function(e){return[\"button\",{onclick:function(){var t=this.parentNode.firstChild;t.value=e.value,t.oninput()}},e.caption]})]);else if(t.items){var s=function(e){return e.map(function(e){return[\"option\",{value:e.value||e.name},e.desc||e.caption||e.name]})},o=Array.isArray(t.items)?s(t.items):Object.keys(t.items).map(function(e){return[\"optgroup\",{label:e},s(t.items[e])]});r=[\"select\",{id:e,value:i,onchange:function(){n.setOption(t,this.value)}},o]}else typeof t.values==\"string\"&&(t.values=t.values.split(\"|\")),t.values&&(i=i==t.values[1]),r=[\"input\",{type:\"checkbox\",id:e,checked:i||null,onchange:function(){var e=this.checked;t.values&&(e=t.values[e?1:0]),n.setOption(t,e)}}],t.type==\"checkedNumber\"&&(r=[r,[]]);return r},this.renderOption=function(e,t){if(t.path&&!t.onchange&&!this.editor.$options[t.path])return;var n=Array.isArray(t)?t[0].path:t.path;this.options[n]=t;var r=\"-\"+n,i=n+\"-label\",s=this.renderOptionControl(r,t);return[\"tr\",{\"class\":\"ace_optionsMenuEntry\"},[\"td\",[\"label\",{\"for\":r,id:i},e]],[\"td\",s]]},this.setOption=function(e,t){typeof e==\"string\"&&(e=this.options[e]),t==\"false\"&&(t=!1),t==\"true\"&&(t=!0),t==\"null\"&&(t=null),t==\"undefined\"&&(t=undefined),typeof t==\"string\"&&parseFloat(t).toString()==t&&(t=parseFloat(t)),e.onchange?e.onchange(t):e.path&&this.editor.setOption(e.path,t),this._signal(\"setOption\",{name:e.path,value:t})},this.getOption=function(e){return e.getValue?e.getValue():this.editor.getOption(e.path)}}).call(p.prototype),t.OptionPanel=p}),define(\"ace/ext/settings_menu\",[\"require\",\"exports\",\"module\",\"ace/ext/options\",\"ace/ext/menu_tools/overlay_page\",\"ace/editor\"],function(e,t,n){\"use strict\";function s(e){if(!document.getElementById(\"ace_settingsmenu\")){var t=new r(e);t.render(),t.container.id=\"ace_settingsmenu\",i(e,t.container),t.container.querySelector(\"select,input,button,checkbox\").focus()}}var r=e(\"./options\").OptionPanel,i=e(\"./menu_tools/overlay_page\").overlayPage;n.exports.init=function(){var t=e(\"../editor\").Editor;t.prototype.showSettingsMenu=function(){s(this)}}});                (function() {\n                    window.require([\"ace/ext/settings_menu\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-spellcheck.js",
    "content": "define(\"ace/ext/spellcheck\",[\"require\",\"exports\",\"module\",\"ace/lib/event\",\"ace/editor\",\"ace/config\"],function(e,t,n){\"use strict\";var r=e(\"../lib/event\");t.contextMenuHandler=function(e){var t=e.target,n=t.textInput.getElement();if(!t.selection.isEmpty())return;var i=t.getCursorPosition(),s=t.session.getWordRange(i.row,i.column),o=t.session.getTextRange(s);t.session.tokenRe.lastIndex=0;if(!t.session.tokenRe.test(o))return;var u=\"\\x01\\x01\",a=o+\" \"+u;n.value=a,n.setSelectionRange(o.length,o.length+1),n.setSelectionRange(0,0),n.setSelectionRange(0,o.length);var f=!1;r.addListener(n,\"keydown\",function l(){r.removeListener(n,\"keydown\",l),f=!0}),t.textInput.setInputHandler(function(e){if(e==a)return\"\";if(e.lastIndexOf(a,0)===0)return e.slice(a.length);if(e.substr(n.selectionEnd)==a)return e.slice(0,-a.length);if(e.slice(-2)==u){var r=e.slice(0,-2);if(r.slice(-1)==\" \")return f?r.substring(0,n.selectionEnd):(r=r.slice(0,-1),t.session.replace(s,r),\"\")}return e})};var i=e(\"../editor\").Editor;e(\"../config\").defineOptions(i.prototype,\"editor\",{spellcheck:{set:function(e){var n=this.textInput.getElement();n.spellcheck=!!e,e?this.on(\"nativecontextmenu\",t.contextMenuHandler):this.removeListener(\"nativecontextmenu\",t.contextMenuHandler)},value:!0}})});                (function() {\n                    window.require([\"ace/ext/spellcheck\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-split.js",
    "content": "define(\"ace/split\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/lang\",\"ace/lib/event_emitter\",\"ace/editor\",\"ace/virtual_renderer\",\"ace/edit_session\"],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/lang\"),s=e(\"./lib/event_emitter\").EventEmitter,o=e(\"./editor\").Editor,u=e(\"./virtual_renderer\").VirtualRenderer,a=e(\"./edit_session\").EditSession,f=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS=\"\",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on(\"focus\",function(e){this.$cEditor=e}.bind(this))};(function(){r.implement(this,s),this.$createEditor=function(){var e=document.createElement(\"div\");e.className=this.$editorCSS,e.style.cssText=\"position: absolute; top:0px; bottom:0px\",this.$container.appendChild(e);var t=new o(new u(e,this.$theme));return t.on(\"focus\",function(){this._emit(\"focus\",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw\"The number of splits have to be > 0!\";if(e==this.$splits)return;if(e>this.$splits){while(this.$splits<this.$editors.length&&this.$splits<e)t=this.$editors[this.$splits],this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;while(this.$splits<e)this.$createEditor(),this.$splits++}else while(this.$splits>e)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize=\"\",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;t==null?n=this.$cEditor:n=this.$editors[t];var r=this.$editors.some(function(t){return t.session===e});return r&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){if(this.$orientation==e)return;this.$orientation=e,this.resize()},this.resize=function(){var e=this.$container.clientWidth,t=this.$container.clientHeight,n;if(this.$orientation==this.BESIDE){var r=e/this.$splits;for(var i=0;i<this.$splits;i++)n=this.$editors[i],n.container.style.width=r+\"px\",n.container.style.top=\"0px\",n.container.style.left=i*r+\"px\",n.container.style.height=t+\"px\",n.resize()}else{var s=t/this.$splits;for(var i=0;i<this.$splits;i++)n=this.$editors[i],n.container.style.width=e+\"px\",n.container.style.top=i*s+\"px\",n.container.style.left=\"0px\",n.container.style.height=s+\"px\",n.resize()}}}).call(f.prototype),t.Split=f}),define(\"ace/ext/split\",[\"require\",\"exports\",\"module\",\"ace/split\"],function(e,t,n){\"use strict\";n.exports=e(\"../split\")});                (function() {\n                    window.require([\"ace/ext/split\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-static_highlight.js",
    "content": "define(\"ace/ext/static_highlight\",[\"require\",\"exports\",\"module\",\"ace/edit_session\",\"ace/layer/text\",\"ace/config\",\"ace/lib/dom\",\"ace/lib/lang\"],function(e,t,n){\"use strict\";function f(e){this.type=e,this.style={},this.textContent=\"\"}var r=e(\"../edit_session\").EditSession,i=e(\"../layer/text\").Text,s=\".ace_static_highlight {font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', 'Droid Sans Mono', monospace;font-size: 12px;white-space: pre-wrap}.ace_static_highlight .ace_gutter {width: 2em;text-align: right;padding: 0 3px 0 0;margin-right: 3px;contain: none;}.ace_static_highlight.ace_show_gutter .ace_line {padding-left: 2.6em;}.ace_static_highlight .ace_line { position: relative; }.ace_static_highlight .ace_gutter-cell {-moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none;top: 0;bottom: 0;left: 0;position: absolute;}.ace_static_highlight .ace_gutter-cell:before {content: counter(ace_line, decimal);counter-increment: ace_line;}.ace_static_highlight {counter-reset: ace_line;}\",o=e(\"../config\"),u=e(\"../lib/dom\"),a=e(\"../lib/lang\").escapeHTML;f.prototype.cloneNode=function(){return this},f.prototype.appendChild=function(e){this.textContent+=e.toString()},f.prototype.toString=function(){var e=[];if(this.type!=\"fragment\"){e.push(\"<\",this.type),this.className&&e.push(\" class='\",this.className,\"'\");var t=[];for(var n in this.style)t.push(n,\":\",this.style[n]);t.length&&e.push(\" style='\",t.join(\"\"),\"'\"),e.push(\">\")}return this.textContent&&e.push(this.textContent),this.type!=\"fragment\"&&e.push(\"</\",this.type,\">\"),e.join(\"\")};var l={createTextNode:function(e,t){return a(e)},createElement:function(e){return new f(e)},createFragment:function(){return new f(\"fragment\")}},c=function(){this.config={},this.dom=l};c.prototype=i.prototype;var h=function(e,t,n){var r=e.className.match(/lang-(\\w+)/),i=t.mode||r&&\"ace/mode/\"+r[1];if(!i)return!1;var s=t.theme||\"ace/theme/textmate\",o=\"\",a=[];if(e.firstElementChild){var f=0;for(var l=0;l<e.childNodes.length;l++){var c=e.childNodes[l];c.nodeType==3?(f+=c.data.length,o+=c.data):a.push(f,c)}}else o=e.textContent,t.trim&&(o=o.trim());h.render(o,i,s,t.firstLineNumber,!t.showGutter,function(t){u.importCssString(t.css,\"ace_highlight\"),e.innerHTML=t.html;var r=e.firstChild.firstChild;for(var i=0;i<a.length;i+=2){var s=t.session.doc.indexToPosition(a[i]),o=a[i+1],f=r.children[s.row];f&&f.appendChild(o)}n&&n()})};h.render=function(e,t,n,i,s,u){function c(){var r=h.renderSync(e,t,n,i,s);return u?u(r):r}var a=1,f=r.prototype.$modes;typeof n==\"string\"&&(a++,o.loadModule([\"theme\",n],function(e){n=e,--a||c()}));var l;return t&&typeof t==\"object\"&&!t.getTokenizer&&(l=t,t=l.path),typeof t==\"string\"&&(a++,o.loadModule([\"mode\",t],function(e){if(!f[t]||l)f[t]=new e.Mode(l);t=f[t],--a||c()})),--a||c()},h.renderSync=function(e,t,n,i,o){i=parseInt(i||1,10);var u=new r(\"\");u.setUseWorker(!1),u.setMode(t);var a=new c;a.setSession(u),Object.keys(a.$tabStrings).forEach(function(e){if(typeof a.$tabStrings[e]==\"string\"){var t=l.createFragment();t.textContent=a.$tabStrings[e],a.$tabStrings[e]=t}}),u.setValue(e);var f=u.getLength(),h=l.createElement(\"div\");h.className=n.cssClass;var p=l.createElement(\"div\");p.className=\"ace_static_highlight\"+(o?\"\":\" ace_show_gutter\"),p.style[\"counter-reset\"]=\"ace_line \"+(i-1);for(var d=0;d<f;d++){var v=l.createElement(\"div\");v.className=\"ace_line\";if(!o){var m=l.createElement(\"span\");m.className=\"ace_gutter ace_gutter-cell\",m.textContent=\"\",v.appendChild(m)}a.$renderLine(v,d,!1),v.textContent+=\"\\n\",p.appendChild(v)}return h.appendChild(p),{css:s+n.cssText,html:h.toString(),session:u}},n.exports=h,n.exports.highlight=h});                (function() {\n                    window.require([\"ace/ext/static_highlight\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-statusbar.js",
    "content": "define(\"ace/ext/statusbar\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\",\"ace/lib/lang\"],function(e,t,n){\"use strict\";var r=e(\"../lib/dom\"),i=e(\"../lib/lang\"),s=function(e,t){this.element=r.createElement(\"div\"),this.element.className=\"ace_status-indicator\",this.element.style.cssText=\"display: inline-block;\",t.appendChild(this.element);var n=i.delayedCall(function(){this.updateStatus(e)}.bind(this)).schedule.bind(null,100);e.on(\"changeStatus\",n),e.on(\"changeSelection\",n),e.on(\"keyboardActivity\",n)};(function(){this.updateStatus=function(e){function n(e,n){e&&t.push(e,n||\"|\")}var t=[];n(e.keyBinding.getStatusText(e)),e.commands.recording&&n(\"REC\");var r=e.selection,i=r.lead;if(!r.isEmpty()){var s=e.getSelectionRange();n(\"(\"+(s.end.row-s.start.row)+\":\"+(s.end.column-s.start.column)+\")\",\" \")}n(i.row+\":\"+i.column,\" \"),r.rangeCount&&n(\"[\"+r.rangeCount+\"]\",\" \"),t.pop(),this.element.textContent=t.join(\"\")}}).call(s.prototype),t.StatusBar=s});                (function() {\n                    window.require([\"ace/ext/statusbar\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-textarea.js",
    "content": "define(\"ace/theme/textmate\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";t.isDark=!1,t.cssClass=\"ace-tm\",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;}',t.$id=\"ace/theme/textmate\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)}),define(\"ace/ext/textarea\",[\"require\",\"exports\",\"module\",\"ace/lib/event\",\"ace/lib/useragent\",\"ace/lib/net\",\"ace/ace\",\"ace/theme/textmate\"],function(e,t,n){\"use strict\";function a(e,t){for(var n in t)e.style[n]=t[n]}function f(e,t){if(e.type!=\"textarea\")throw new Error(\"Textarea required!\");var n=e.parentNode,i=document.createElement(\"div\"),s=function(){var t=\"position:relative;\";[\"margin-top\",\"margin-left\",\"margin-right\",\"margin-bottom\"].forEach(function(n){t+=n+\":\"+u(e,i,n)+\";\"});var n=u(e,i,\"width\")||e.clientWidth+\"px\",r=u(e,i,\"height\")||e.clientHeight+\"px\";t+=\"height:\"+r+\";width:\"+n+\";\",t+=\"display:inline-block;\",i.setAttribute(\"style\",t)};r.addListener(window,\"resize\",s),s(),n.insertBefore(i,e.nextSibling);while(n!==document){if(n.tagName.toUpperCase()===\"FORM\"){var o=n.onsubmit;n.onsubmit=function(n){e.value=t(),o&&o.call(this,n)};break}n=n.parentNode}return i}function l(t,n,r){s.loadScript(t,function(){e([n],r)})}function c(e,t,n,r,i){function u(e){return e===\"true\"||e==1}var s=e.getSession(),o=e.renderer;return e.setDisplaySettings=function(t){t==null&&(t=n.style.display==\"none\"),t?(n.style.display=\"block\",n.hideButton.focus(),e.on(\"focus\",function r(){e.removeListener(\"focus\",r),n.style.display=\"none\"})):e.focus()},e.$setOption=e.setOption,e.$getOption=e.getOption,e.setOption=function(t,n){switch(t){case\"mode\":e.$setOption(\"mode\",\"ace/mode/\"+n);break;case\"theme\":e.$setOption(\"theme\",\"ace/theme/\"+n);break;case\"keybindings\":switch(n){case\"vim\":e.setKeyboardHandler(\"ace/keyboard/vim\");break;case\"emacs\":e.setKeyboardHandler(\"ace/keyboard/emacs\");break;default:e.setKeyboardHandler(null)}break;case\"wrap\":case\"fontSize\":e.$setOption(t,n);break;default:e.$setOption(t,u(n))}},e.getOption=function(t){switch(t){case\"mode\":return e.$getOption(\"mode\").substr(\"ace/mode/\".length);case\"theme\":return e.$getOption(\"theme\").substr(\"ace/theme/\".length);case\"keybindings\":var n=e.getKeyboardHandler();switch(n&&n.$id){case\"ace/keyboard/vim\":return\"vim\";case\"ace/keyboard/emacs\":return\"emacs\";default:return\"ace\"}break;default:return e.$getOption(t)}},e.setOptions(i),e}function h(e,n,i){function f(e,t,n,r){if(!n){e.push(\"<input type='checkbox' title='\",t,\"' \",r+\"\"==\"true\"?\"checked='true'\":\"\",\"'></input>\");return}e.push(\"<select title='\"+t+\"'>\");for(var i in n)e.push(\"<option value='\"+i+\"' \"),r==i&&e.push(\" selected \"),e.push(\">\",n[i],\"</option>\");e.push(\"</select>\")}var s=null,o={mode:\"Mode:\",wrap:\"Soft Wrap:\",theme:\"Theme:\",fontSize:\"Font Size:\",showGutter:\"Display Gutter:\",keybindings:\"Keyboard\",showPrintMargin:\"Show Print Margin:\",useSoftTabs:\"Use Soft Tabs:\",showInvisibles:\"Show Invisibles\"},u={mode:{text:\"Plain\",javascript:\"JavaScript\",xml:\"XML\",html:\"HTML\",css:\"CSS\",scss:\"SCSS\",python:\"Python\",php:\"PHP\",java:\"Java\",ruby:\"Ruby\",c_cpp:\"C/C++\",coffee:\"CoffeeScript\",json:\"json\",perl:\"Perl\",clojure:\"Clojure\",ocaml:\"OCaml\",csharp:\"C#\",haxe:\"haXe\",svg:\"SVG\",textile:\"Textile\",groovy:\"Groovy\",liquid:\"Liquid\",Scala:\"Scala\"},theme:{clouds:\"Clouds\",clouds_midnight:\"Clouds Midnight\",cobalt:\"Cobalt\",crimson_editor:\"Crimson Editor\",dawn:\"Dawn\",gob:\"Green on Black\",eclipse:\"Eclipse\",idle_fingers:\"Idle Fingers\",kr_theme:\"Kr Theme\",merbivore:\"Merbivore\",merbivore_soft:\"Merbivore Soft\",mono_industrial:\"Mono Industrial\",monokai:\"Monokai\",pastel_on_dark:\"Pastel On Dark\",solarized_dark:\"Solarized Dark\",solarized_light:\"Solarized Light\",textmate:\"Textmate\",twilight:\"Twilight\",vibrant_ink:\"Vibrant Ink\"},showGutter:s,fontSize:{\"10px\":\"10px\",\"11px\":\"11px\",\"12px\":\"12px\",\"14px\":\"14px\",\"16px\":\"16px\"},wrap:{off:\"Off\",40:\"40\",80:\"80\",free:\"Free\"},keybindings:{ace:\"ace\",vim:\"vim\",emacs:\"emacs\"},showPrintMargin:s,useSoftTabs:s,showInvisibles:s},a=[];a.push(\"<table><tr><th>Setting</th><th>Value</th></tr>\");for(var l in t.defaultOptions)a.push(\"<tr><td>\",o[l],\"</td>\"),a.push(\"<td>\"),f(a,l,u[l],i.getOption(l)),a.push(\"</td></tr>\");a.push(\"</table>\"),e.innerHTML=a.join(\"\");var c=function(e){var t=e.currentTarget;i.setOption(t.title,t.value)},h=function(e){var t=e.currentTarget;i.setOption(t.title,t.checked)},p=e.getElementsByTagName(\"select\");for(var d=0;d<p.length;d++)p[d].onchange=c;var v=e.getElementsByTagName(\"input\");for(var d=0;d<v.length;d++)v[d].onclick=h;var m=document.createElement(\"input\");m.type=\"button\",m.value=\"Hide\",r.addListener(m,\"click\",function(){i.setDisplaySettings(!1)}),e.appendChild(m),e.hideButton=m}var r=e(\"../lib/event\"),i=e(\"../lib/useragent\"),s=e(\"../lib/net\"),o=e(\"../ace\");e(\"../theme/textmate\"),n.exports=t=o;var u=function(e,t,n){var r=e.style[n];r||(window.getComputedStyle?r=window.getComputedStyle(e,\"\").getPropertyValue(n):r=e.currentStyle[n]);if(!r||r==\"auto\"||r==\"intrinsic\")r=t.style[n];return r};t.transformTextarea=function(e,n){var s=e.autofocus||document.activeElement==e,u,l=f(e,function(){return u.getValue()});e.style.display=\"none\",l.style.background=\"white\";var p=document.createElement(\"div\");a(p,{top:\"0px\",left:\"0px\",right:\"0px\",bottom:\"0px\",border:\"1px solid gray\",position:\"absolute\"}),l.appendChild(p);var d=document.createElement(\"div\");a(d,{position:\"absolute\",right:\"0px\",bottom:\"0px\",cursor:\"nw-resize\",border:\"solid 9px\",borderColor:\"lightblue gray gray #ceade6\",zIndex:101});var v=document.createElement(\"div\"),m={top:\"0px\",left:\"20%\",right:\"0px\",bottom:\"0px\",position:\"absolute\",padding:\"5px\",zIndex:100,color:\"white\",display:\"none\",overflow:\"auto\",fontSize:\"14px\",boxShadow:\"-5px 2px 3px gray\"};i.isOldIE?m.backgroundColor=\"#333\":m.backgroundColor=\"rgba(0, 0, 0, 0.6)\",a(v,m),l.appendChild(v),n=n||t.defaultOptions;var g=o.edit(p);u=g.getSession(),u.setValue(e.value||e.innerHTML),s&&g.focus(),l.appendChild(d),c(g,p,v,o,n),h(v,d,g);var y=\"\";return r.addListener(d,\"mousemove\",function(e){var t=this.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;n+r<(t.width+t.height)/2?(this.style.cursor=\"pointer\",y=\"toggle\"):(y=\"resize\",this.style.cursor=\"nw-resize\")}),r.addListener(d,\"mousedown\",function(e){e.preventDefault();if(y==\"toggle\"){g.setDisplaySettings();return}l.style.zIndex=1e5;var t=l.getBoundingClientRect(),n=t.width+t.left-e.clientX,i=t.height+t.top-e.clientY;r.capture(d,function(e){l.style.width=e.clientX-t.left+n+\"px\",l.style.height=e.clientY-t.top+i+\"px\",g.resize()},function(){})}),g},t.defaultOptions={mode:\"javascript\",theme:\"textmate\",wrap:\"off\",fontSize:\"12px\",showGutter:\"false\",keybindings:\"ace\",showPrintMargin:\"false\",useSoftTabs:\"true\",showInvisibles:\"false\"}});                (function() {\n                    window.require([\"ace/ext/textarea\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-themelist.js",
    "content": "define(\"ace/ext/themelist\",[\"require\",\"exports\",\"module\"],function(e,t,n){\"use strict\";var r=[[\"Chrome\"],[\"Clouds\"],[\"Crimson Editor\"],[\"Dawn\"],[\"Dreamweaver\"],[\"Eclipse\"],[\"GitHub\"],[\"IPlastic\"],[\"Solarized Light\"],[\"TextMate\"],[\"Tomorrow\"],[\"Xcode\"],[\"Kuroir\"],[\"KatzenMilch\"],[\"SQL Server\",\"sqlserver\",\"light\"],[\"Ambiance\",\"ambiance\",\"dark\"],[\"Chaos\",\"chaos\",\"dark\"],[\"Clouds Midnight\",\"clouds_midnight\",\"dark\"],[\"Dracula\",\"\",\"dark\"],[\"Cobalt\",\"cobalt\",\"dark\"],[\"Gruvbox\",\"gruvbox\",\"dark\"],[\"Green on Black\",\"gob\",\"dark\"],[\"idle Fingers\",\"idle_fingers\",\"dark\"],[\"krTheme\",\"kr_theme\",\"dark\"],[\"Merbivore\",\"merbivore\",\"dark\"],[\"Merbivore Soft\",\"merbivore_soft\",\"dark\"],[\"Mono Industrial\",\"mono_industrial\",\"dark\"],[\"Monokai\",\"monokai\",\"dark\"],[\"Nord Dark\",\"nord_dark\",\"dark\"],[\"Pastel on dark\",\"pastel_on_dark\",\"dark\"],[\"Solarized Dark\",\"solarized_dark\",\"dark\"],[\"Terminal\",\"terminal\",\"dark\"],[\"Tomorrow Night\",\"tomorrow_night\",\"dark\"],[\"Tomorrow Night Blue\",\"tomorrow_night_blue\",\"dark\"],[\"Tomorrow Night Bright\",\"tomorrow_night_bright\",\"dark\"],[\"Tomorrow Night 80s\",\"tomorrow_night_eighties\",\"dark\"],[\"Twilight\",\"twilight\",\"dark\"],[\"Vibrant Ink\",\"vibrant_ink\",\"dark\"]];t.themesByName={},t.themes=r.map(function(e){var n=e[1]||e[0].replace(/ /g,\"_\").toLowerCase(),r={caption:e[0],theme:\"ace/theme/\"+n,isDark:e[2]==\"dark\",name:n};return t.themesByName[n]=r,r})});                (function() {\n                    window.require([\"ace/ext/themelist\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/ext-whitespace.js",
    "content": "define(\"ace/ext/whitespace\",[\"require\",\"exports\",\"module\",\"ace/lib/lang\"],function(e,t,n){\"use strict\";var r=e(\"../lib/lang\");t.$detectIndentation=function(e,t){function c(e){var t=0;for(var r=e;r<n.length;r+=e)t+=n[r]||0;return t}var n=[],r=[],i=0,s=0,o=Math.min(e.length,1e3);for(var u=0;u<o;u++){var a=e[u];if(!/^\\s*[^*+\\-\\s]/.test(a))continue;if(a[0]==\"\t\")i++,s=-Number.MAX_VALUE;else{var f=a.match(/^ */)[0].length;if(f&&a[f]!=\"\t\"){var l=f-s;l>0&&!(s%l)&&!(f%l)&&(r[l]=(r[l]||0)+1),n[f]=(n[f]||0)+1}s=f}while(u<o&&a[a.length-1]==\"\\\\\")a=e[u++]}var h=r.reduce(function(e,t){return e+t},0),p={score:0,length:0},d=0;for(var u=1;u<12;u++){var v=c(u);u==1?(d=v,v=n[1]?.9:.8,n.length||(v=0)):v/=d,r[u]&&(v+=r[u]/h),v>p.score&&(p={score:v,length:u})}if(p.score&&p.score>1.4)var m=p.length;if(i>d+1){if(m==1||d<i/4||p.score<1.8)m=undefined;return{ch:\"\t\",length:m}}if(d>i+1)return{ch:\" \",length:m}},t.detectIndentation=function(e){var n=e.getLines(0,1e3),r=t.$detectIndentation(n)||{};return r.ch&&e.setUseSoftTabs(r.ch==\" \"),r.length&&e.setTabSize(r.length),r},t.trimTrailingSpace=function(e,t){var n=e.getDocument(),r=n.getAllLines(),i=t&&t.trimEmpty?-1:0,s=[],o=-1;t&&t.keepCursorPosition&&(e.selection.rangeCount?e.selection.rangeList.ranges.forEach(function(e,t,n){var r=n[t+1];if(r&&r.cursor.row==e.cursor.row)return;s.push(e.cursor)}):s.push(e.selection.getCursor()),o=0);var u=s[o]&&s[o].row;for(var a=0,f=r.length;a<f;a++){var l=r[a],c=l.search(/\\s+$/);a==u&&(c<s[o].column&&c>i&&(c=s[o].column),o++,u=s[o]?s[o].row:-1),c>i&&n.removeInLine(a,c,l.length)}},t.convertIndentation=function(e,t,n){var i=e.getTabString()[0],s=e.getTabSize();n||(n=s),t||(t=i);var o=t==\"\t\"?t:r.stringRepeat(t,n),u=e.doc,a=u.getAllLines(),f={},l={};for(var c=0,h=a.length;c<h;c++){var p=a[c],d=p.match(/^\\s*/)[0];if(d){var v=e.$getStringScreenWidth(d)[0],m=Math.floor(v/s),g=v%s,y=f[m]||(f[m]=r.stringRepeat(o,m));y+=l[g]||(l[g]=r.stringRepeat(\" \",g)),y!=d&&(u.removeInLine(c,0,d.length),u.insertInLine({row:c,column:0},y))}}e.setTabSize(n),e.setUseSoftTabs(t==\" \")},t.$parseStringArg=function(e){var t={};/t/.test(e)?t.ch=\"\t\":/s/.test(e)&&(t.ch=\" \");var n=e.match(/\\d+/);return n&&(t.length=parseInt(n[0],10)),t},t.$parseArg=function(e){return e?typeof e==\"string\"?t.$parseStringArg(e):typeof e.text==\"string\"?t.$parseStringArg(e.text):e:{}},t.commands=[{name:\"detectIndentation\",description:\"Detect indentation from content\",exec:function(e){t.detectIndentation(e.session)}},{name:\"trimTrailingSpace\",description:\"Trim trailing whitespace\",exec:function(e,n){t.trimTrailingSpace(e.session,n)}},{name:\"convertIndentation\",description:\"Convert indentation to ...\",exec:function(e,n){var r=t.$parseArg(n);t.convertIndentation(e.session,r.ch,r.length)}},{name:\"setIndentation\",description:\"Set indentation\",exec:function(e,n){var r=t.$parseArg(n);r.length&&e.session.setTabSize(r.length),r.ch&&e.session.setUseSoftTabs(r.ch==\" \")}}]});                (function() {\n                    window.require([\"ace/ext/whitespace\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/keybinding-emacs.js",
    "content": "define(\"ace/occur\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/range\",\"ace/search\",\"ace/edit_session\",\"ace/search_highlight\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";function a(){}var r=e(\"./lib/oop\"),i=e(\"./range\").Range,s=e(\"./search\").Search,o=e(\"./edit_session\").EditSession,u=e(\"./search_highlight\").SearchHighlight;r.inherits(a,s),function(){this.enter=function(e,t){if(!t.needle)return!1;var n=e.getCursorPosition();this.displayOccurContent(e,t);var r=this.originalToOccurPosition(e.session,n);return e.moveCursorToPosition(r),!0},this.exit=function(e,t){var n=t.translatePosition&&e.getCursorPosition(),r=n&&this.occurToOriginalPosition(e.session,n);return this.displayOriginalContent(e),r&&e.moveCursorToPosition(r),!0},this.highlight=function(e,t){var n=e.$occurHighlight=e.$occurHighlight||e.addDynamicMarker(new u(null,\"ace_occur-highlight\",\"text\"));n.setRegexp(t),e._emit(\"changeBackMarker\")},this.displayOccurContent=function(e,t){this.$originalSession=e.session;var n=this.matchingLines(e.session,t),r=n.map(function(e){return e.content}),i=new o(r.join(\"\\n\"));i.$occur=this,i.$occurMatchingLines=n,e.setSession(i),this.$useEmacsStyleLineStart=this.$originalSession.$useEmacsStyleLineStart,i.$useEmacsStyleLineStart=this.$useEmacsStyleLineStart,this.highlight(i,t.re),i._emit(\"changeBackMarker\")},this.displayOriginalContent=function(e){e.setSession(this.$originalSession),this.$originalSession.$useEmacsStyleLineStart=this.$useEmacsStyleLineStart},this.originalToOccurPosition=function(e,t){var n=e.$occurMatchingLines,r={row:0,column:0};if(!n)return r;for(var i=0;i<n.length;i++)if(n[i].row===t.row)return{row:i,column:t.column};return r},this.occurToOriginalPosition=function(e,t){var n=e.$occurMatchingLines;return!n||!n[t.row]?t:{row:n[t.row].row,column:t.column}},this.matchingLines=function(e,t){t=r.mixin({},t);if(!e||!t.needle)return[];var n=new s;return n.set(t),n.findAll(e).reduce(function(t,n){var r=n.start.row,i=t[t.length-1];return i&&i.row===r?t:t.concat({row:r,content:e.getLine(r)})},[])}}.call(a.prototype);var f=e(\"./lib/dom\");f.importCssString(\".ace_occur-highlight {\\n    border-radius: 4px;\\n    background-color: rgba(87, 255, 8, 0.25);\\n    position: absolute;\\n    z-index: 4;\\n    box-sizing: border-box;\\n    box-shadow: 0 0 4px rgb(91, 255, 50);\\n}\\n.ace_dark .ace_occur-highlight {\\n    background-color: rgb(80, 140, 85);\\n    box-shadow: 0 0 4px rgb(60, 120, 70);\\n}\\n\",\"incremental-occur-highlighting\"),t.Occur=a}),define(\"ace/commands/occur_commands\",[\"require\",\"exports\",\"module\",\"ace/config\",\"ace/occur\",\"ace/keyboard/hash_handler\",\"ace/lib/oop\"],function(e,t,n){function f(){}var r=e(\"../config\"),i=e(\"../occur\").Occur,s={name:\"occur\",exec:function(e,t){var n=!!e.session.$occur,r=(new i).enter(e,t);r&&!n&&f.installIn(e)},readOnly:!0},o=[{name:\"occurexit\",bindKey:\"esc|Ctrl-G\",exec:function(e){var t=e.session.$occur;if(!t)return;t.exit(e,{}),e.session.$occur||f.uninstallFrom(e)},readOnly:!0},{name:\"occuraccept\",bindKey:\"enter\",exec:function(e){var t=e.session.$occur;if(!t)return;t.exit(e,{translatePosition:!0}),e.session.$occur||f.uninstallFrom(e)},readOnly:!0}],u=e(\"../keyboard/hash_handler\").HashHandler,a=e(\"../lib/oop\");a.inherits(f,u),function(){this.isOccurHandler=!0,this.attach=function(e){u.call(this,o,e.commands.platform),this.$editor=e};var e=this.handleKeyboard;this.handleKeyboard=function(t,n,r,i){var s=e.call(this,t,n,r,i);return s&&s.command?s:undefined}}.call(f.prototype),f.installIn=function(e){var t=new this;e.keyBinding.addKeyboardHandler(t),e.commands.addCommands(o)},f.uninstallFrom=function(e){e.commands.removeCommands(o);var t=e.getKeyboardHandler();t.isOccurHandler&&e.keyBinding.removeKeyboardHandler(t)},t.occurStartCommand=s}),define(\"ace/commands/incremental_search_commands\",[\"require\",\"exports\",\"module\",\"ace/config\",\"ace/lib/oop\",\"ace/keyboard/hash_handler\",\"ace/commands/occur_commands\"],function(e,t,n){function u(e){this.$iSearch=e}var r=e(\"../config\"),i=e(\"../lib/oop\"),s=e(\"../keyboard/hash_handler\").HashHandler,o=e(\"./occur_commands\").occurStartCommand;t.iSearchStartCommands=[{name:\"iSearch\",bindKey:{win:\"Ctrl-F\",mac:\"Command-F\"},exec:function(e,t){r.loadModule([\"core\",\"ace/incremental_search\"],function(n){var r=n.iSearch=n.iSearch||new n.IncrementalSearch;r.activate(e,t.backwards),t.jumpToFirstMatch&&r.next(t)})},readOnly:!0},{name:\"iSearchBackwards\",exec:function(e,t){e.execCommand(\"iSearch\",{backwards:!0})},readOnly:!0},{name:\"iSearchAndGo\",bindKey:{win:\"Ctrl-K\",mac:\"Command-G\"},exec:function(e,t){e.execCommand(\"iSearch\",{jumpToFirstMatch:!0,useCurrentOrPrevSearch:!0})},readOnly:!0},{name:\"iSearchBackwardsAndGo\",bindKey:{win:\"Ctrl-Shift-K\",mac:\"Command-Shift-G\"},exec:function(e){e.execCommand(\"iSearch\",{jumpToFirstMatch:!0,backwards:!0,useCurrentOrPrevSearch:!0})},readOnly:!0}],t.iSearchCommands=[{name:\"restartSearch\",bindKey:{win:\"Ctrl-F\",mac:\"Command-F\"},exec:function(e){e.cancelSearch(!0)}},{name:\"searchForward\",bindKey:{win:\"Ctrl-S|Ctrl-K\",mac:\"Ctrl-S|Command-G\"},exec:function(e,t){t.useCurrentOrPrevSearch=!0,e.next(t)}},{name:\"searchBackward\",bindKey:{win:\"Ctrl-R|Ctrl-Shift-K\",mac:\"Ctrl-R|Command-Shift-G\"},exec:function(e,t){t.useCurrentOrPrevSearch=!0,t.backwards=!0,e.next(t)}},{name:\"extendSearchTerm\",exec:function(e,t){e.addString(t)}},{name:\"extendSearchTermSpace\",bindKey:\"space\",exec:function(e){e.addString(\" \")}},{name:\"shrinkSearchTerm\",bindKey:\"backspace\",exec:function(e){e.removeChar()}},{name:\"confirmSearch\",bindKey:\"return\",exec:function(e){e.deactivate()}},{name:\"cancelSearch\",bindKey:\"esc|Ctrl-G\",exec:function(e){e.deactivate(!0)}},{name:\"occurisearch\",bindKey:\"Ctrl-O\",exec:function(e){var t=i.mixin({},e.$options);e.deactivate(),o.exec(e.$editor,t)}},{name:\"yankNextWord\",bindKey:\"Ctrl-w\",exec:function(e){var t=e.$editor,n=t.selection.getRangeOfMovements(function(e){e.moveCursorWordRight()}),r=t.session.getTextRange(n);e.addString(r)}},{name:\"yankNextChar\",bindKey:\"Ctrl-Alt-y\",exec:function(e){var t=e.$editor,n=t.selection.getRangeOfMovements(function(e){e.moveCursorRight()}),r=t.session.getTextRange(n);e.addString(r)}},{name:\"recenterTopBottom\",bindKey:\"Ctrl-l\",exec:function(e){e.$editor.execCommand(\"recenterTopBottom\")}},{name:\"selectAllMatches\",bindKey:\"Ctrl-space\",exec:function(e){var t=e.$editor,n=t.session.$isearchHighlight,r=n&&n.cache?n.cache.reduce(function(e,t){return e.concat(t?t:[])},[]):[];e.deactivate(!1),r.forEach(t.selection.addRange.bind(t.selection))}},{name:\"searchAsRegExp\",bindKey:\"Alt-r\",exec:function(e){e.convertNeedleToRegExp()}}].map(function(e){return e.readOnly=!0,e.isIncrementalSearchCommand=!0,e.scrollIntoView=\"animate-cursor\",e}),i.inherits(u,s),function(){this.attach=function(e){var n=this.$iSearch;s.call(this,t.iSearchCommands,e.commands.platform),this.$commandExecHandler=e.commands.on(\"exec\",function(t){if(!t.command.isIncrementalSearchCommand)return n.deactivate();t.stopPropagation(),t.preventDefault();var r=e.session.getScrollTop(),i=t.command.exec(n,t.args||{});return e.renderer.scrollCursorIntoView(null,.5),e.renderer.animateScrolling(r),i})},this.detach=function(e){if(!this.$commandExecHandler)return;e.commands.off(\"exec\",this.$commandExecHandler),delete this.$commandExecHandler};var e=this.handleKeyboard;this.handleKeyboard=function(t,n,r,i){if((n===1||n===8)&&r===\"v\"||n===1&&r===\"y\")return null;var s=e.call(this,t,n,r,i);if(s&&s.command)return s;if(n==-1){var o=this.commands.extendSearchTerm;if(o)return{command:o,args:r}}return!1}}.call(u.prototype),t.IncrementalSearchKeyboardHandler=u}),define(\"ace/incremental_search\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/range\",\"ace/search\",\"ace/search_highlight\",\"ace/commands/incremental_search_commands\",\"ace/lib/dom\",\"ace/commands/command_manager\",\"ace/editor\",\"ace/config\"],function(e,t,n){\"use strict\";function f(){this.$options={wrap:!1,skipCurrent:!1},this.$keyboardHandler=new a(this)}function l(e){return e instanceof RegExp}function c(e){var t=String(e),n=t.indexOf(\"/\"),r=t.lastIndexOf(\"/\");return{expression:t.slice(n+1,r),flags:t.slice(r+1)}}function h(e,t){try{return new RegExp(e,t)}catch(n){return e}}function p(e){return h(e.expression,e.flags)}var r=e(\"./lib/oop\"),i=e(\"./range\").Range,s=e(\"./search\").Search,o=e(\"./search_highlight\").SearchHighlight,u=e(\"./commands/incremental_search_commands\"),a=u.IncrementalSearchKeyboardHandler;r.inherits(f,s),function(){this.activate=function(e,t){this.$editor=e,this.$startPos=this.$currentPos=e.getCursorPosition(),this.$options.needle=\"\",this.$options.backwards=t,e.keyBinding.addKeyboardHandler(this.$keyboardHandler),this.$originalEditorOnPaste=e.onPaste,e.onPaste=this.onPaste.bind(this),this.$mousedownHandler=e.on(\"mousedown\",this.onMouseDown.bind(this)),this.selectionFix(e),this.statusMessage(!0)},this.deactivate=function(e){this.cancelSearch(e);var t=this.$editor;t.keyBinding.removeKeyboardHandler(this.$keyboardHandler),this.$mousedownHandler&&(t.off(\"mousedown\",this.$mousedownHandler),delete this.$mousedownHandler),t.onPaste=this.$originalEditorOnPaste,this.message(\"\")},this.selectionFix=function(e){e.selection.isEmpty()&&!e.session.$emacsMark&&e.clearSelection()},this.highlight=function(e){var t=this.$editor.session,n=t.$isearchHighlight=t.$isearchHighlight||t.addDynamicMarker(new o(null,\"ace_isearch-result\",\"text\"));n.setRegexp(e),t._emit(\"changeBackMarker\")},this.cancelSearch=function(e){var t=this.$editor;return this.$prevNeedle=this.$options.needle,this.$options.needle=\"\",e?(t.moveCursorToPosition(this.$startPos),this.$currentPos=this.$startPos):t.pushEmacsMark&&t.pushEmacsMark(this.$startPos,!1),this.highlight(null),i.fromPoints(this.$currentPos,this.$currentPos)},this.highlightAndFindWithNeedle=function(e,t){if(!this.$editor)return null;var n=this.$options;t&&(n.needle=t.call(this,n.needle||\"\")||\"\");if(n.needle.length===0)return this.statusMessage(!0),this.cancelSearch(!0);n.start=this.$currentPos;var r=this.$editor.session,s=this.find(r),o=this.$editor.emacsMark?!!this.$editor.emacsMark():!this.$editor.selection.isEmpty();return s&&(n.backwards&&(s=i.fromPoints(s.end,s.start)),this.$editor.selection.setRange(i.fromPoints(o?this.$startPos:s.end,s.end)),e&&(this.$currentPos=s.end),this.highlight(n.re)),this.statusMessage(s),s},this.addString=function(e){return this.highlightAndFindWithNeedle(!1,function(t){if(!l(t))return t+e;var n=c(t);return n.expression+=e,p(n)})},this.removeChar=function(e){return this.highlightAndFindWithNeedle(!1,function(e){if(!l(e))return e.substring(0,e.length-1);var t=c(e);return t.expression=t.expression.substring(0,t.expression.length-1),p(t)})},this.next=function(e){return e=e||{},this.$options.backwards=!!e.backwards,this.$currentPos=this.$editor.getCursorPosition(),this.highlightAndFindWithNeedle(!0,function(t){return e.useCurrentOrPrevSearch&&t.length===0?this.$prevNeedle||\"\":t})},this.onMouseDown=function(e){return this.deactivate(),!0},this.onPaste=function(e){this.addString(e)},this.convertNeedleToRegExp=function(){return this.highlightAndFindWithNeedle(!1,function(e){return l(e)?e:h(e,\"ig\")})},this.convertNeedleToString=function(){return this.highlightAndFindWithNeedle(!1,function(e){return l(e)?c(e).expression:e})},this.statusMessage=function(e){var t=this.$options,n=\"\";n+=t.backwards?\"reverse-\":\"\",n+=\"isearch: \"+t.needle,n+=e?\"\":\" (not found)\",this.message(n)},this.message=function(e){this.$editor.showCommandLine&&(this.$editor.showCommandLine(e),this.$editor.focus())}}.call(f.prototype),t.IncrementalSearch=f;var d=e(\"./lib/dom\");d.importCssString&&d.importCssString(\".ace_marker-layer .ace_isearch-result {  position: absolute;  z-index: 6;  box-sizing: border-box;}div.ace_isearch-result {  border-radius: 4px;  background-color: rgba(255, 200, 0, 0.5);  box-shadow: 0 0 4px rgb(255, 200, 0);}.ace_dark div.ace_isearch-result {  background-color: rgb(100, 110, 160);  box-shadow: 0 0 4px rgb(80, 90, 140);}\",\"incremental-search-highlighting\");var v=e(\"./commands/command_manager\");(function(){this.setupIncrementalSearch=function(e,t){if(this.usesIncrementalSearch==t)return;this.usesIncrementalSearch=t;var n=u.iSearchStartCommands,r=t?\"addCommands\":\"removeCommands\";this[r](n)}}).call(v.CommandManager.prototype);var m=e(\"./editor\").Editor;e(\"./config\").defineOptions(m.prototype,\"editor\",{useIncrementalSearch:{set:function(e){this.keyBinding.$handlers.forEach(function(t){t.setupIncrementalSearch&&t.setupIncrementalSearch(this,e)}),this._emit(\"incrementalSearchSettingChanged\",{isEnabled:e})}}})}),define(\"ace/keyboard/emacs\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\",\"ace/incremental_search\",\"ace/commands/incremental_search_commands\",\"ace/keyboard/hash_handler\",\"ace/lib/keys\"],function(e,t,n){\"use strict\";var r=e(\"../lib/dom\");e(\"../incremental_search\");var i=e(\"../commands/incremental_search_commands\"),s=e(\"./hash_handler\").HashHandler;t.handler=new s,t.handler.isEmacs=!0,t.handler.$id=\"ace/keyboard/emacs\";var o=!1,u,a;t.handler.attach=function(e){o||(o=!0,r.importCssString(\"            .emacs-mode .ace_cursor{                border: 1px rgba(50,250,50,0.8) solid!important;                box-sizing: border-box!important;                background-color: rgba(0,250,0,0.9);                opacity: 0.5;            }            .emacs-mode .ace_hidden-cursors .ace_cursor{                opacity: 1;                background-color: transparent;            }            .emacs-mode .ace_overwrite-cursors .ace_cursor {                opacity: 1;                background-color: transparent;                border-width: 0 0 2px 2px !important;            }            .emacs-mode .ace_text-layer {                z-index: 4            }            .emacs-mode .ace_cursor-layer {                z-index: 2            }\",\"emacsMode\")),u=e.session.$selectLongWords,e.session.$selectLongWords=!0,a=e.session.$useEmacsStyleLineStart,e.session.$useEmacsStyleLineStart=!0,e.session.$emacsMark=null,e.session.$emacsMarkRing=e.session.$emacsMarkRing||[],e.emacsMark=function(){return this.session.$emacsMark},e.setEmacsMark=function(e){this.session.$emacsMark=e},e.pushEmacsMark=function(e,t){var n=this.session.$emacsMark;n&&this.session.$emacsMarkRing.push(n),!e||t?this.setEmacsMark(e):this.session.$emacsMarkRing.push(e)},e.popEmacsMark=function(){var e=this.emacsMark();return e?(this.setEmacsMark(null),e):this.session.$emacsMarkRing.pop()},e.getLastEmacsMark=function(e){return this.session.$emacsMark||this.session.$emacsMarkRing.slice(-1)[0]},e.emacsMarkForSelection=function(e){var t=this.selection,n=this.multiSelect?this.multiSelect.getAllRanges().length:1,r=t.index||0,i=this.session.$emacsMarkRing,s=i.length-(n-r),o=i[s]||t.anchor;return e&&i.splice(s,1,\"row\"in e&&\"column\"in e?e:undefined),o},e.on(\"click\",l),e.on(\"changeSession\",f),e.renderer.$blockCursor=!0,e.setStyle(\"emacs-mode\"),e.commands.addCommands(d),t.handler.platform=e.commands.platform,e.$emacsModeHandler=this,e.on(\"copy\",this.onCopy),e.on(\"paste\",this.onPaste)},t.handler.detach=function(e){e.renderer.$blockCursor=!1,e.session.$selectLongWords=u,e.session.$useEmacsStyleLineStart=a,e.off(\"click\",l),e.off(\"changeSession\",f),e.unsetStyle(\"emacs-mode\"),e.commands.removeCommands(d),e.off(\"copy\",this.onCopy),e.off(\"paste\",this.onPaste),e.$emacsModeHandler=null};var f=function(e){e.oldSession&&(e.oldSession.$selectLongWords=u,e.oldSession.$useEmacsStyleLineStart=a),u=e.session.$selectLongWords,e.session.$selectLongWords=!0,a=e.session.$useEmacsStyleLineStart,e.session.$useEmacsStyleLineStart=!0,e.session.hasOwnProperty(\"$emacsMark\")||(e.session.$emacsMark=null),e.session.hasOwnProperty(\"$emacsMarkRing\")||(e.session.$emacsMarkRing=[])},l=function(e){e.editor.session.$emacsMark=null},c=e(\"../lib/keys\").KEY_MODS,h={C:\"ctrl\",S:\"shift\",M:\"alt\",CMD:\"command\"},p=[\"C-S-M-CMD\",\"S-M-CMD\",\"C-M-CMD\",\"C-S-CMD\",\"C-S-M\",\"M-CMD\",\"S-CMD\",\"S-M\",\"C-CMD\",\"C-M\",\"C-S\",\"CMD\",\"M\",\"S\",\"C\"];p.forEach(function(e){var t=0;e.split(\"-\").forEach(function(e){t|=c[h[e]]}),h[t]=e.toLowerCase()+\"-\"}),t.handler.onCopy=function(e,n){if(n.$handlesEmacsOnCopy)return;n.$handlesEmacsOnCopy=!0,t.handler.commands.killRingSave.exec(n),n.$handlesEmacsOnCopy=!1},t.handler.onPaste=function(e,t){t.pushEmacsMark(t.getCursorPosition())},t.handler.bindKey=function(e,t){typeof e==\"object\"&&(e=e[this.platform]);if(!e)return;var n=this.commandKeyBinding;e.split(\"|\").forEach(function(e){e=e.toLowerCase(),n[e]=t;var r=e.split(\" \").slice(0,-1);r.reduce(function(e,t,n){var r=e[n-1]?e[n-1]+\" \":\"\";return e.concat([r+t])},[]).forEach(function(e){n[e]||(n[e]=\"null\")})},this)},t.handler.getStatusText=function(e,t){var n=\"\";return t.count&&(n+=t.count),t.keyChain&&(n+=\" \"+t.keyChain),n},t.handler.handleKeyboard=function(e,t,n,r){if(r===-1)return undefined;var i=e.editor;i._signal(\"changeStatus\");if(t==-1){i.pushEmacsMark();if(e.count){var s=(new Array(e.count+1)).join(n);return e.count=null,{command:\"insertstring\",args:s}}}var o=h[t];if(o==\"c-\"||e.count){var u=parseInt(n[n.length-1]);if(typeof u==\"number\"&&!isNaN(u))return e.count=Math.max(e.count,0)||0,e.count=10*e.count+u,{command:\"null\"}}o&&(n=o+n),e.keyChain&&(n=e.keyChain+=\" \"+n);var a=this.commandKeyBinding[n];e.keyChain=a==\"null\"?n:\"\";if(!a)return undefined;if(a===\"null\")return{command:\"null\"};if(a===\"universalArgument\")return e.count=-4,{command:\"null\"};var f;typeof a!=\"string\"&&(f=a.args,a.command&&(a=a.command),a===\"goorselect\"&&(a=i.emacsMark()?f[1]:f[0],f=null));if(typeof a==\"string\"){(a===\"insertstring\"||a===\"splitline\"||a===\"togglecomment\")&&i.pushEmacsMark(),a=this.commands[a]||i.commands.commands[a];if(!a)return undefined}!a.readOnly&&!a.isYank&&(e.lastCommand=null),!a.readOnly&&i.emacsMark()&&i.setEmacsMark(null);if(e.count){var u=e.count;e.count=0;if(!a||!a.handlesCount)return{args:f,command:{exec:function(e,t){for(var n=0;n<u;n++)a.exec(e,t)},multiSelectAction:a.multiSelectAction}};f||(f={}),typeof f==\"object\"&&(f.count=u)}return{command:a,args:f}},t.emacsKeys={\"Up|C-p\":{command:\"goorselect\",args:[\"golineup\",\"selectup\"]},\"Down|C-n\":{command:\"goorselect\",args:[\"golinedown\",\"selectdown\"]},\"Left|C-b\":{command:\"goorselect\",args:[\"gotoleft\",\"selectleft\"]},\"Right|C-f\":{command:\"goorselect\",args:[\"gotoright\",\"selectright\"]},\"C-Left|M-b\":{command:\"goorselect\",args:[\"gotowordleft\",\"selectwordleft\"]},\"C-Right|M-f\":{command:\"goorselect\",args:[\"gotowordright\",\"selectwordright\"]},\"Home|C-a\":{command:\"goorselect\",args:[\"gotolinestart\",\"selecttolinestart\"]},\"End|C-e\":{command:\"goorselect\",args:[\"gotolineend\",\"selecttolineend\"]},\"C-Home|S-M-,\":{command:\"goorselect\",args:[\"gotostart\",\"selecttostart\"]},\"C-End|S-M-.\":{command:\"goorselect\",args:[\"gotoend\",\"selecttoend\"]},\"S-Up|S-C-p\":\"selectup\",\"S-Down|S-C-n\":\"selectdown\",\"S-Left|S-C-b\":\"selectleft\",\"S-Right|S-C-f\":\"selectright\",\"S-C-Left|S-M-b\":\"selectwordleft\",\"S-C-Right|S-M-f\":\"selectwordright\",\"S-Home|S-C-a\":\"selecttolinestart\",\"S-End|S-C-e\":\"selecttolineend\",\"S-C-Home\":\"selecttostart\",\"S-C-End\":\"selecttoend\",\"C-l\":\"recenterTopBottom\",\"M-s\":\"centerselection\",\"M-g\":\"gotoline\",\"C-x C-p\":\"selectall\",\"C-Down\":{command:\"goorselect\",args:[\"gotopagedown\",\"selectpagedown\"]},\"C-Up\":{command:\"goorselect\",args:[\"gotopageup\",\"selectpageup\"]},\"PageDown|C-v\":{command:\"goorselect\",args:[\"gotopagedown\",\"selectpagedown\"]},\"PageUp|M-v\":{command:\"goorselect\",args:[\"gotopageup\",\"selectpageup\"]},\"S-C-Down\":\"selectpagedown\",\"S-C-Up\":\"selectpageup\",\"C-s\":\"iSearch\",\"C-r\":\"iSearchBackwards\",\"M-C-s\":\"findnext\",\"M-C-r\":\"findprevious\",\"S-M-5\":\"replace\",Backspace:\"backspace\",\"Delete|C-d\":\"del\",\"Return|C-m\":{command:\"insertstring\",args:\"\\n\"},\"C-o\":\"splitline\",\"M-d|C-Delete\":{command:\"killWord\",args:\"right\"},\"C-Backspace|M-Backspace|M-Delete\":{command:\"killWord\",args:\"left\"},\"C-k\":\"killLine\",\"C-y|S-Delete\":\"yank\",\"M-y\":\"yankRotate\",\"C-g\":\"keyboardQuit\",\"C-w|C-S-W\":\"killRegion\",\"M-w\":\"killRingSave\",\"C-Space\":\"setMark\",\"C-x C-x\":\"exchangePointAndMark\",\"C-t\":\"transposeletters\",\"M-u\":\"touppercase\",\"M-l\":\"tolowercase\",\"M-/\":\"autocomplete\",\"C-u\":\"universalArgument\",\"M-;\":\"togglecomment\",\"C-/|C-x u|S-C--|C-z\":\"undo\",\"S-C-/|S-C-x u|C--|S-C-z\":\"redo\",\"C-x r\":\"selectRectangularRegion\",\"M-x\":{command:\"focusCommandLine\",args:\"M-x \"}},t.handler.bindKeys(t.emacsKeys),t.handler.addCommands({recenterTopBottom:function(e){var t=e.renderer,n=t.$cursorLayer.getPixelPosition(),r=t.$size.scrollerHeight-t.lineHeight,i=t.scrollTop;Math.abs(n.top-i)<2?i=n.top-r:Math.abs(n.top-i-r*.5)<2?i=n.top:i=n.top-r*.5,e.session.setScrollTop(i)},selectRectangularRegion:function(e){e.multiSelect.toggleBlockSelection()},setMark:{exec:function(e,t){function u(){var t=e.popEmacsMark();t&&e.moveCursorToPosition(t)}if(t&&t.count){e.inMultiSelectMode?e.forEachSelection(u):u(),u();return}var n=e.emacsMark(),r=e.selection.getAllRanges(),i=r.map(function(e){return{row:e.start.row,column:e.start.column}}),s=!0,o=r.every(function(e){return e.isEmpty()});if(s&&(n||!o)){e.inMultiSelectMode?e.forEachSelection({exec:e.clearSelection.bind(e)}):e.clearSelection(),n&&e.pushEmacsMark(null);return}if(!n){i.forEach(function(t){e.pushEmacsMark(t)}),e.setEmacsMark(i[i.length-1]);return}},readOnly:!0,handlesCount:!0},exchangePointAndMark:{exec:function(t,n){var r=t.selection;if(!n.count&&!r.isEmpty()){r.setSelectionRange(r.getRange(),!r.isBackwards());return}if(n.count){var i={row:r.lead.row,column:r.lead.column};r.clearSelection(),r.moveCursorToPosition(t.emacsMarkForSelection(i))}else r.selectToPosition(t.emacsMarkForSelection())},readOnly:!0,handlesCount:!0,multiSelectAction:\"forEach\"},killWord:{exec:function(e,n){e.clearSelection(),n==\"left\"?e.selection.selectWordLeft():e.selection.selectWordRight();var r=e.getSelectionRange(),i=e.session.getTextRange(r);t.killRing.add(i),e.session.remove(r),e.clearSelection()},multiSelectAction:\"forEach\"},killLine:function(e){e.pushEmacsMark(null),e.clearSelection();var n=e.getSelectionRange(),r=e.session.getLine(n.start.row);n.end.column=r.length,r=r.substr(n.start.column);var i=e.session.getFoldLine(n.start.row);i&&n.end.row!=i.end.row&&(n.end.row=i.end.row,r=\"x\"),/^\\s*$/.test(r)&&(n.end.row++,r=e.session.getLine(n.end.row),n.end.column=/^\\s*$/.test(r)?r.length:0);var s=e.session.getTextRange(n);e.prevOp.command==this?t.killRing.append(s):t.killRing.add(s),e.session.remove(n),e.clearSelection()},yank:function(e){e.onPaste(t.killRing.get()||\"\"),e.keyBinding.$data.lastCommand=\"yank\"},yankRotate:function(e){if(e.keyBinding.$data.lastCommand!=\"yank\")return;e.undo(),e.session.$emacsMarkRing.pop(),e.onPaste(t.killRing.rotate()),e.keyBinding.$data.lastCommand=\"yank\"},killRegion:{exec:function(e){t.killRing.add(e.getCopyText()),e.commands.byName.cut.exec(e),e.setEmacsMark(null)},readOnly:!0,multiSelectAction:\"forEach\"},killRingSave:{exec:function(e){e.$handlesEmacsOnCopy=!0;var n=e.session.$emacsMarkRing.slice(),r=[];t.killRing.add(e.getCopyText()),setTimeout(function(){function t(){var t=e.selection,n=t.getRange(),i=t.isBackwards()?n.end:n.start;r.push({row:i.row,column:i.column}),t.clearSelection()}e.$handlesEmacsOnCopy=!1,e.inMultiSelectMode?e.forEachSelection({exec:t}):t(),e.setEmacsMark(null),e.session.$emacsMarkRing=n.concat(r.reverse())},0)},readOnly:!0},keyboardQuit:function(e){e.selection.clearSelection(),e.setEmacsMark(null),e.keyBinding.$data.count=null},focusCommandLine:function(e,t){e.showCommandLine&&e.showCommandLine(t)}}),t.handler.addCommands(i.iSearchStartCommands);var d=t.handler.commands;d.yank.isYank=!0,d.yankRotate.isYank=!0,t.killRing={$data:[],add:function(e){e&&this.$data.push(e),this.$data.length>30&&this.$data.shift()},append:function(e){var t=this.$data.length-1,n=this.$data[t]||\"\";e&&(n+=e),n&&(this.$data[t]=n)},get:function(e){return e=e||1,this.$data.slice(this.$data.length-e,this.$data.length).reverse().join(\"\\n\")},pop:function(){return this.$data.length>1&&this.$data.pop(),this.get()},rotate:function(){return this.$data.unshift(this.$data.pop()),this.get()}}});                (function() {\n                    window.require([\"ace/keyboard/emacs\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/keybinding-sublime.js",
    "content": "define(\"ace/keyboard/sublime\",[\"require\",\"exports\",\"module\",\"ace/keyboard/hash_handler\"],function(e,t,n){\"use strict\";function i(e,t,n){function f(e){return e?/\\s/.test(e)?\"s\":e==\"_\"?\"_\":e.toUpperCase()==e&&e.toLowerCase()!=e?\"W\":e.toUpperCase()!=e&&e.toLowerCase()==e?\"w\":\"o\":\"-\"}var r=e.selection,i=r.lead.row,s=r.lead.column,o=e.session.getLine(i);if(!o[s+t]){var u=(n?\"selectWord\":\"moveCursorShortWord\")+(t==1?\"Right\":\"Left\");return e.selection[u]()}t==-1&&s--;while(o[s]){var a=f(o[s])+f(o[s+t]);s+=t;if(t==1){if(a==\"WW\"&&f(o[s+1])==\"w\")break}else{if(a==\"wW\"){if(f(o[s-1])==\"W\"){s-=1;break}continue}if(a==\"Ww\")break}if(/w[s_oW]|_[sWo]|o[s_wW]|s[W]|W[so]/.test(a))break}t==-1&&s++,n?e.selection.moveCursorTo(i,s):e.selection.moveTo(i,s)}var r=e(\"../keyboard/hash_handler\").HashHandler;t.handler=new r,t.handler.addCommands([{name:\"find_all_under\",exec:function(e){e.selection.isEmpty()&&e.selection.selectWord(),e.findAll()},readOnly:!0},{name:\"find_under\",exec:function(e){e.selection.isEmpty()&&e.selection.selectWord(),e.findNext()},readOnly:!0},{name:\"find_under_prev\",exec:function(e){e.selection.isEmpty()&&e.selection.selectWord(),e.findPrevious()},readOnly:!0},{name:\"find_under_expand\",exec:function(e){e.selectMore(1,!1,!0)},scrollIntoView:\"animate\",readOnly:!0},{name:\"find_under_expand_skip\",exec:function(e){e.selectMore(1,!0,!0)},scrollIntoView:\"animate\",readOnly:!0},{name:\"delete_to_hard_bol\",exec:function(e){var t=e.selection.getCursor();e.session.remove({start:{row:t.row,column:0},end:t})},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"delete_to_hard_eol\",exec:function(e){var t=e.selection.getCursor();e.session.remove({start:t,end:{row:t.row,column:Infinity}})},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"moveToWordStartLeft\",exec:function(e){e.selection.moveCursorLongWordLeft(),e.clearSelection()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"moveToWordEndRight\",exec:function(e){e.selection.moveCursorLongWordRight(),e.clearSelection()},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"selectToWordStartLeft\",exec:function(e){var t=e.selection;t.$moveSelection(t.moveCursorLongWordLeft)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"selectToWordEndRight\",exec:function(e){var t=e.selection;t.$moveSelection(t.moveCursorLongWordRight)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\"},{name:\"selectSubWordRight\",exec:function(e){i(e,1,!0)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"selectSubWordLeft\",exec:function(e){i(e,-1,!0)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"moveSubWordRight\",exec:function(e){i(e,1)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0},{name:\"moveSubWordLeft\",exec:function(e){i(e,-1)},multiSelectAction:\"forEach\",scrollIntoView:\"cursor\",readOnly:!0}]),[{bindKey:{mac:\"cmd-k cmd-backspace|cmd-backspace\",win:\"ctrl-shift-backspace|ctrl-k ctrl-backspace\"},name:\"removetolinestarthard\"},{bindKey:{mac:\"cmd-k cmd-k|cmd-delete|ctrl-k\",win:\"ctrl-shift-delete|ctrl-k ctrl-k\"},name:\"removetolineendhard\"},{bindKey:{mac:\"cmd-shift-d\",win:\"ctrl-shift-d\"},name:\"duplicateSelection\"},{bindKey:{mac:\"cmd-l\",win:\"ctrl-l\"},name:\"expandtoline\"},{bindKey:{mac:\"cmd-shift-a\",win:\"ctrl-shift-a\"},name:\"expandSelection\",args:{to:\"tag\"}},{bindKey:{mac:\"cmd-shift-j\",win:\"ctrl-shift-j\"},name:\"expandSelection\",args:{to:\"indentation\"}},{bindKey:{mac:\"ctrl-shift-m\",win:\"ctrl-shift-m\"},name:\"expandSelection\",args:{to:\"brackets\"}},{bindKey:{mac:\"cmd-shift-space\",win:\"ctrl-shift-space\"},name:\"expandSelection\",args:{to:\"scope\"}},{bindKey:{mac:\"ctrl-cmd-g\",win:\"alt-f3\"},name:\"find_all_under\"},{bindKey:{mac:\"alt-cmd-g\",win:\"ctrl-f3\"},name:\"find_under\"},{bindKey:{mac:\"shift-alt-cmd-g\",win:\"ctrl-shift-f3\"},name:\"find_under_prev\"},{bindKey:{mac:\"cmd-g\",win:\"f3\"},name:\"findnext\"},{bindKey:{mac:\"shift-cmd-g\",win:\"shift-f3\"},name:\"findprevious\"},{bindKey:{mac:\"cmd-d\",win:\"ctrl-d\"},name:\"find_under_expand\"},{bindKey:{mac:\"cmd-k cmd-d\",win:\"ctrl-k ctrl-d\"},name:\"find_under_expand_skip\"},{bindKey:{mac:\"cmd-alt-[\",win:\"ctrl-shift-[\"},name:\"toggleFoldWidget\"},{bindKey:{mac:\"cmd-alt-]\",win:\"ctrl-shift-]\"},name:\"unfold\"},{bindKey:{mac:\"cmd-k cmd-0|cmd-k cmd-j\",win:\"ctrl-k ctrl-0|ctrl-k ctrl-j\"},name:\"unfoldall\"},{bindKey:{mac:\"cmd-k cmd-1\",win:\"ctrl-k ctrl-1\"},name:\"foldOther\",args:{level:1}},{bindKey:{win:\"ctrl-left\",mac:\"alt-left\"},name:\"moveToWordStartLeft\"},{bindKey:{win:\"ctrl-right\",mac:\"alt-right\"},name:\"moveToWordEndRight\"},{bindKey:{win:\"ctrl-shift-left\",mac:\"alt-shift-left\"},name:\"selectToWordStartLeft\"},{bindKey:{win:\"ctrl-shift-right\",mac:\"alt-shift-right\"},name:\"selectToWordEndRight\"},{bindKey:{mac:\"ctrl-alt-shift-right|ctrl-shift-right\",win:\"alt-shift-right\"},name:\"selectSubWordRight\"},{bindKey:{mac:\"ctrl-alt-shift-left|ctrl-shift-left\",win:\"alt-shift-left\"},name:\"selectSubWordLeft\"},{bindKey:{mac:\"ctrl-alt-right|ctrl-right\",win:\"alt-right\"},name:\"moveSubWordRight\"},{bindKey:{mac:\"ctrl-alt-left|ctrl-left\",win:\"alt-left\"},name:\"moveSubWordLeft\"},{bindKey:{mac:\"ctrl-m\",win:\"ctrl-m\"},name:\"jumptomatching\",args:{to:\"brackets\"}},{bindKey:{mac:\"ctrl-f6\",win:\"ctrl-f6\"},name:\"goToNextError\"},{bindKey:{mac:\"ctrl-shift-f6\",win:\"ctrl-shift-f6\"},name:\"goToPreviousError\"},{bindKey:{mac:\"ctrl-o\"},name:\"splitline\"},{bindKey:{mac:\"ctrl-shift-w\",win:\"alt-shift-w\"},name:\"surrowndWithTag\"},{bindKey:{mac:\"cmd-alt-.\",win:\"alt-.\"},name:\"close_tag\"},{bindKey:{mac:\"cmd-j\",win:\"ctrl-j\"},name:\"joinlines\"},{bindKey:{mac:\"ctrl--\",win:\"alt--\"},name:\"jumpBack\"},{bindKey:{mac:\"ctrl-shift--\",win:\"alt-shift--\"},name:\"jumpForward\"},{bindKey:{mac:\"cmd-k cmd-l\",win:\"ctrl-k ctrl-l\"},name:\"tolowercase\"},{bindKey:{mac:\"cmd-k cmd-u\",win:\"ctrl-k ctrl-u\"},name:\"touppercase\"},{bindKey:{mac:\"cmd-shift-v\",win:\"ctrl-shift-v\"},name:\"paste_and_indent\"},{bindKey:{mac:\"cmd-k cmd-v|cmd-alt-v\",win:\"ctrl-k ctrl-v\"},name:\"paste_from_history\"},{bindKey:{mac:\"cmd-shift-enter\",win:\"ctrl-shift-enter\"},name:\"addLineBefore\"},{bindKey:{mac:\"cmd-enter\",win:\"ctrl-enter\"},name:\"addLineAfter\"},{bindKey:{mac:\"ctrl-shift-k\",win:\"ctrl-shift-k\"},name:\"removeline\"},{bindKey:{mac:\"ctrl-alt-up\",win:\"ctrl-up\"},name:\"scrollup\"},{bindKey:{mac:\"ctrl-alt-down\",win:\"ctrl-down\"},name:\"scrolldown\"},{bindKey:{mac:\"cmd-a\",win:\"ctrl-a\"},name:\"selectall\"},{bindKey:{linux:\"alt-shift-down\",mac:\"ctrl-shift-down\",win:\"ctrl-alt-down\"},name:\"addCursorBelow\"},{bindKey:{linux:\"alt-shift-up\",mac:\"ctrl-shift-up\",win:\"ctrl-alt-up\"},name:\"addCursorAbove\"},{bindKey:{mac:\"cmd-k cmd-c|ctrl-l\",win:\"ctrl-k ctrl-c\"},name:\"centerselection\"},{bindKey:{mac:\"f5\",win:\"f9\"},name:\"sortlines\"},{bindKey:{mac:\"ctrl-f5\",win:\"ctrl-f9\"},name:\"sortlines\",args:{caseSensitive:!0}},{bindKey:{mac:\"cmd-shift-l\",win:\"ctrl-shift-l\"},name:\"splitSelectionIntoLines\"},{bindKey:{mac:\"ctrl-cmd-down\",win:\"ctrl-shift-down\"},name:\"movelinesdown\"},{bindKey:{mac:\"ctrl-cmd-up\",win:\"ctrl-shift-up\"},name:\"movelinesup\"},{bindKey:{mac:\"alt-down\",win:\"alt-down\"},name:\"modifyNumberDown\"},{bindKey:{mac:\"alt-up\",win:\"alt-up\"},name:\"modifyNumberUp\"},{bindKey:{mac:\"cmd-/\",win:\"ctrl-/\"},name:\"togglecomment\"},{bindKey:{mac:\"cmd-alt-/\",win:\"ctrl-shift-/\"},name:\"toggleBlockComment\"},{bindKey:{linux:\"ctrl-alt-q\",mac:\"ctrl-q\",win:\"ctrl-q\"},name:\"togglerecording\"},{bindKey:{linux:\"ctrl-alt-shift-q\",mac:\"ctrl-shift-q\",win:\"ctrl-shift-q\"},name:\"replaymacro\"},{bindKey:{mac:\"ctrl-t\",win:\"ctrl-t\"},name:\"transpose\"}].forEach(function(e){var n=t.handler.commands[e.name];n&&(n.bindKey=e.bindKey),t.handler.bindKey(e.bindKey,n||e.name)})});                (function() {\n                    window.require([\"ace/keyboard/sublime\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/keybinding-vim.js",
    "content": "define(\"ace/keyboard/vim\",[\"require\",\"exports\",\"module\",\"ace/range\",\"ace/lib/event_emitter\",\"ace/lib/dom\",\"ace/lib/oop\",\"ace/lib/keys\",\"ace/lib/event\",\"ace/search\",\"ace/lib/useragent\",\"ace/search_highlight\",\"ace/commands/multi_select_commands\",\"ace/mode/text\",\"ace/multi_select\"],function(e,t,n){\"use strict\";function r(){function t(e){return typeof e!=\"object\"?e+\"\":\"line\"in e?e.line+\":\"+e.ch:\"anchor\"in e?t(e.anchor)+\"->\"+t(e.head):Array.isArray(e)?\"[\"+e.map(function(e){return t(e)})+\"]\":JSON.stringify(e)}var e=\"\";for(var n=0;n<arguments.length;n++){var r=arguments[n],i=t(r);e+=i+\"  \"}console.log(e)}function m(e){return{row:e.line,column:e.ch}}function g(e){return new S(e.row,e.column)}function T(e){e.setOption(\"disableInput\",!0),e.setOption(\"showCursorWhenSelecting\",!1),v.signal(e,\"vim-mode-change\",{mode:\"normal\"}),e.on(\"cursorActivity\",er),rt(e),v.on(e.getInputField(),\"paste\",_(e))}function N(e){e.setOption(\"disableInput\",!1),e.off(\"cursorActivity\",er),v.off(e.getInputField(),\"paste\",_(e)),e.state.vim=null}function C(e,t){this==v.keyMap.vim&&v.rmClass(e.getWrapperElement(),\"cm-fat-cursor\"),(!t||t.attach!=k)&&N(e)}function k(e,t){this==v.keyMap.vim&&v.addClass(e.getWrapperElement(),\"cm-fat-cursor\"),(!t||t.attach!=k)&&T(e)}function L(e,t){if(!t)return undefined;if(this[e])return this[e];var n=M(e);if(!n)return!1;var r=v.Vim.findKey(t,n);return typeof r==\"function\"&&v.signal(t,\"vim-keypress\",n),r}function M(e){if(e.charAt(0)==\"'\")return e.charAt(1);var t=e.split(/-(?!$)/),n=t[t.length-1];if(t.length==1&&t[0].length==1)return!1;if(t.length==2&&t[0]==\"Shift\"&&n.length==1)return!1;var r=!1;for(var i=0;i<t.length;i++){var s=t[i];s in A?t[i]=A[s]:r=!0,s in O&&(t[i]=O[s])}return r?(V(n)&&(t[t.length-1]=n.toLowerCase()),\"<\"+t.join(\"-\")+\">\"):!1}function _(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(Tt(e.getCursor(),0,1)),wt.enterInsertMode(e,{},t))}),t.onPasteFn}function B(e,t){var n=[];for(var r=e;r<e+t;r++)n.push(String.fromCharCode(r));return n}function U(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function z(e){return/^[a-z]$/.test(e)}function W(e){return\"()[]{}\".indexOf(e)!=-1}function X(e){return D.test(e)}function V(e){return/^[A-Z]$/.test(e)}function $(e){return/^\\s*$/.test(e)}function J(e){return\".?!\".indexOf(e)!=-1}function K(e,t){for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1}function G(e,t,n,r,i){if(t===undefined&&!i)throw Error(\"defaultValue is required unless callback is provided\");n||(n=\"string\"),Q[e]={type:n,defaultValue:t,callback:i};if(r)for(var s=0;s<r.length;s++)Q[r[s]]=Q[e];t&&Y(e,t)}function Y(e,t,n,r){var i=Q[e];r=r||{};var s=r.scope;if(!i)return new Error(\"Unknown option: \"+e);if(i.type==\"boolean\"){if(t&&t!==!0)return new Error(\"Invalid argument: \"+e+\"=\"+t);t!==!1&&(t=!0)}i.callback?(s!==\"local\"&&i.callback(t,undefined),s!==\"global\"&&n&&i.callback(t,n)):(s!==\"local\"&&(i.value=i.type==\"boolean\"?!!t:t),s!==\"global\"&&n&&(n.state.vim.options[e]={value:t}))}function Z(e,t,n){var r=Q[e];n=n||{};var i=n.scope;if(!r)return new Error(\"Unknown option: \"+e);if(r.callback){var s=t&&r.callback(undefined,t);if(i!==\"global\"&&s!==undefined)return s;if(i!==\"local\")return r.callback();return}var s=i!==\"global\"&&t&&t.state.vim.options[e];return(s||i!==\"local\"&&r||{}).value}function nt(){this.latestRegister=undefined,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=undefined,this.lastInsertModeChanges=tt()}function rt(e){return e.state.vim||(e.state.vim={inputState:new at,lastEditInputState:undefined,lastEditActionCommand:undefined,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},fakeCursor:null,insertMode:!1,insertModeRepeat:undefined,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),e.state.vim}function st(){it={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:undefined,jumpList:et(),macroModeState:new nt,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:\"\"},registerController:new ht({}),searchHistoryController:new pt,exCommandHistoryController:new pt};for(var e in Q){var t=Q[e];t.value=t.defaultValue}}function at(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function ft(e,t){e.state.vim.inputState=new at,v.signal(e,\"vim-command-done\",t)}function lt(e,t,n){this.clear(),this.keyBuffer=[e||\"\"],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!n}function ct(e,t){var n=it.registerController.registers;if(!e||e.length!=1)throw Error(\"Register name must be 1 character\");n[e]=t,R.push(e)}function ht(e){this.registers=e,this.unnamedRegister=e['\"']=new lt,e[\".\"]=new lt,e[\":\"]=new lt,e[\"/\"]=new lt}function pt(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function mt(e,t){vt[e]=t}function gt(e,t){var n=[];for(var r=0;r<t;r++)n.push(e);return n}function bt(e,t){yt[e]=t}function Et(e,t){wt[e]=t}function St(e,t,n){var r=Math.min(Math.max(e.firstLine(),t.line),e.lastLine()),i=Ht(e,r)-1;i=n?i+1:i;var s=Math.min(Math.max(0,t.ch),i);return S(r,s)}function xt(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Tt(e,t,n){return typeof t==\"object\"&&(n=t.ch,t=t.line),S(e.line+t,e.ch+n)}function Nt(e,t,n,r){var i,s=[],o=[];for(var u=0;u<t.length;u++){var a=t[u];if(n==\"insert\"&&a.context!=\"insert\"||a.context&&a.context!=n||r.operator&&a.type==\"action\"||!(i=Ct(e,a.keys)))continue;i==\"partial\"&&s.push(a),i==\"full\"&&o.push(a)}return{partial:s.length&&s,full:o.length&&o}}function Ct(e,t){if(t.slice(-11)==\"<character>\"){var n=t.length-11,r=e.slice(0,n),i=t.slice(0,n);return r==i&&e.length>n?\"full\":i.indexOf(r)==0?\"partial\":!1}return e==t?\"full\":t.indexOf(e)==0?\"partial\":!1}function kt(e){var t=/^.*(<[^>]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(n.length>1)switch(n){case\"<CR>\":n=\"\\n\";break;case\"<Space>\":n=\" \";break;default:n=\"\"}return n}function Lt(e,t,n){return function(){for(var r=0;r<n;r++)t(e)}}function At(e){return S(e.line,e.ch)}function Ot(e,t){return e.ch==t.ch&&e.line==t.line}function Mt(e,t){return e.line<t.line?!0:e.line==t.line&&e.ch<t.ch?!0:!1}function _t(e,t){return arguments.length>2&&(t=_t.apply(undefined,Array.prototype.slice.call(arguments,1))),Mt(e,t)?e:t}function Dt(e,t){return arguments.length>2&&(t=Dt.apply(undefined,Array.prototype.slice.call(arguments,1))),Mt(e,t)?t:e}function Pt(e,t,n){var r=Mt(e,t),i=Mt(t,n);return r&&i}function Ht(e,t){return e.getLine(t).length}function Bt(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,\"\")}function jt(e){return e.replace(/([.?*+$\\[\\]\\/\\\\(){}|\\-])/g,\"\\\\$1\")}function Ft(e,t,n){var r=Ht(e,t),i=(new Array(n-r+1)).join(\" \");e.setCursor(S(t,r)),e.replaceRange(i,e.getCursor())}function It(e,t){var n=[],r=e.listSelections(),i=At(e.clipPos(t)),s=!Ot(t,i),o=e.getCursor(\"head\"),u=Rt(r,o),a=Ot(r[u].head,r[u].anchor),f=r.length-1,l=f-u>u?f:0,c=r[l].anchor,h=Math.min(c.line,i.line),p=Math.max(c.line,i.line),d=c.ch,v=i.ch,m=r[l].head.ch-d,g=v-d;m>0&&g<=0?(d++,s||v--):m<0&&g>=0?(d--,a||v++):m<0&&g==-1&&(d--,v++);for(var y=h;y<=p;y++){var b={anchor:new S(y,d),head:new S(y,v)};n.push(b)}return e.setSelections(n),t.ch=v,c.ch=d,c}function qt(e,t,n){var r=[];for(var i=0;i<n;i++){var s=Tt(t,i,0);r.push({anchor:s,head:s})}e.setSelections(r,0)}function Rt(e,t,n){for(var r=0;r<e.length;r++){var i=n!=\"head\"&&Ot(e[r].anchor,t),s=n!=\"anchor\"&&Ot(e[r].head,t);if(i||s)return r}return-1}function Ut(e,t){var n=t.lastSelection,r=function(){var t=e.listSelections(),n=t[0],r=t[t.length-1],i=Mt(n.anchor,n.head)?n.anchor:n.head,s=Mt(r.anchor,r.head)?r.head:r.anchor;return[i,s]},i=function(){var t=e.getCursor(),r=e.getCursor(),i=n.visualBlock;if(i){var s=i.width,o=i.height;r=S(t.line+o,t.ch+s);var u=[];for(var a=t.line;a<r.line;a++){var f=S(a,t.ch),l=S(a,r.ch),c={anchor:f,head:l};u.push(c)}e.setSelections(u)}else{var h=n.anchorMark.find(),p=n.headMark.find(),d=p.line-h.line,v=p.ch-h.ch;r={line:r.line+d,ch:d?r.ch:v+r.ch},n.visualLine&&(t=S(t.line,0),r=S(r.line,Ht(e,r.line))),e.setSelection(t,r)}return[t,r]};return t.visualMode?r():i()}function zt(e,t){var n=t.sel.anchor,r=t.sel.head;t.lastPastedText&&(r=e.posFromIndex(e.indexFromPos(n)+t.lastPastedText.length),t.lastPastedText=null),t.lastSelection={anchorMark:e.setBookmark(n),headMark:e.setBookmark(r),anchor:At(n),head:At(r),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function Wt(e,t,n){var r=e.state.vim.sel,i=r.head,s=r.anchor,o;return Mt(n,t)&&(o=n,n=t,t=o),Mt(i,s)?(i=_t(t,i),s=Dt(s,n)):(s=_t(t,s),i=Dt(i,n),i=Tt(i,0,-1),i.ch==-1&&i.line!=e.firstLine()&&(i=S(i.line-1,Ht(e,i.line-1)))),[s,i]}function Xt(e,t,n){var r=e.state.vim;t=t||r.sel;var n=n||r.visualLine?\"line\":r.visualBlock?\"block\":\"char\",i=Vt(e,t,n);e.setSelections(i.ranges,i.primary),tr(e)}function Vt(e,t,n,r){var i=At(t.head),s=At(t.anchor);if(n==\"char\"){var o=!r&&!Mt(t.head,t.anchor)?1:0,u=Mt(t.head,t.anchor)?1:0;return i=Tt(t.head,0,o),s=Tt(t.anchor,0,u),{ranges:[{anchor:s,head:i}],primary:0}}if(n==\"line\"){if(!Mt(t.head,t.anchor)){s.ch=0;var a=e.lastLine();i.line>a&&(i.line=a),i.ch=Ht(e,i.line)}else i.ch=0,s.ch=Ht(e,s.line);return{ranges:[{anchor:s,head:i}],primary:0}}if(n==\"block\"){var f=Math.min(s.line,i.line),l=Math.min(s.ch,i.ch),c=Math.max(s.line,i.line),h=Math.max(s.ch,i.ch)+1,p=c-f+1,d=i.line==f?0:p-1,v=[];for(var m=0;m<p;m++)v.push({anchor:S(f+m,l),head:S(f+m,h)});return{ranges:v,primary:d}}}function $t(e){var t=e.getCursor(\"head\");return e.getSelection().length==1&&(t=_t(t,e.getCursor(\"anchor\"))),t}function Jt(e,t){var n=e.state.vim;t!==!1&&e.setCursor(St(e,n.sel.head)),zt(e,n),n.visualMode=!1,n.visualLine=!1,n.visualBlock=!1,v.signal(e,\"vim-mode-change\",{mode:\"normal\"}),n.fakeCursor&&n.fakeCursor.clear()}function Kt(e,t,n){var r=e.getRange(t,n);if(/\\n\\s*$/.test(r)){var i=r.split(\"\\n\");i.pop();var s;for(var s=i.pop();i.length>0&&s&&$(s);s=i.pop())n.line--,n.ch=0;s?(n.line--,n.ch=Ht(e,n.line)):n.ch=0}}function Qt(e,t,n){t.ch=0,n.ch=0,n.line++}function Gt(e){if(!e)return 0;var t=e.search(/\\S/);return t==-1?e.length:t}function Yt(e,t,n,r,i){var s=$t(e),o=e.getLine(s.line),u=s.ch,a=i?P[0]:H[0];while(!a(o.charAt(u))){u++;if(u>=o.length)return null}r?a=H[0]:(a=P[0],a(o.charAt(u))||(a=P[1]));var f=u,l=u;while(a(o.charAt(f))&&f<o.length)f++;while(a(o.charAt(l))&&l>=0)l--;l++;if(t){var c=f;while(/\\s/.test(o.charAt(f))&&f<o.length)f++;if(c==f){var h=l;while(/\\s/.test(o.charAt(l-1))&&l>0)l--;l||(l=h)}}return{start:S(s.line,l),end:S(s.line,f)}}function Zt(e,t,n){Ot(t,n)||it.jumpList.add(e,t,n)}function en(e,t){it.lastCharacterSearch.increment=e,it.lastCharacterSearch.forward=t.forward,it.lastCharacterSearch.selectedCharacter=t.selectedCharacter}function rn(e,t,n,r){var i=At(e.getCursor()),s=n?1:-1,o=n?e.lineCount():-1,u=i.ch,a=i.line,f=e.getLine(a),l={lineText:f,nextCh:f.charAt(u),lastCh:null,index:u,symb:r,reverseSymb:(n?{\")\":\"(\",\"}\":\"{\"}:{\"(\":\")\",\"{\":\"}\"})[r],forward:n,depth:0,curMoveThrough:!1},c=tn[r];if(!c)return i;var h=nn[c].init,p=nn[c].isComplete;h&&h(l);while(a!==o&&t){l.index+=s,l.nextCh=l.lineText.charAt(l.index);if(!l.nextCh){a+=s,l.lineText=e.getLine(a)||\"\";if(s>0)l.index=0;else{var d=l.lineText.length;l.index=d>0?d-1:0}l.nextCh=l.lineText.charAt(l.index)}p(l)&&(i.line=a,i.ch=l.index,t--)}return l.nextCh||l.curMoveThrough?S(a,l.index):i}function sn(e,t,n,r,i){var s=t.line,o=t.ch,u=e.getLine(s),a=n?1:-1,f=r?H:P;if(i&&u==\"\"){s+=a,u=e.getLine(s);if(!U(e,s))return null;o=n?0:u.length}for(;;){if(i&&u==\"\")return{from:0,to:0,line:s};var l=a>0?u.length:-1,c=l,h=l;while(o!=l){var p=!1;for(var d=0;d<f.length&&!p;++d)if(f[d](u.charAt(o))){c=o;while(o!=l&&f[d](u.charAt(o)))o+=a;h=o,p=c!=h;if(c==t.ch&&s==t.line&&h==c+a)continue;return{from:Math.min(c,h+1),to:Math.max(c,h),line:s}}p||(o+=a)}s+=a;if(!U(e,s))return null;u=e.getLine(s),o=a>0?0:u.length}}function on(e,t,n,r,i,s){var o=At(t),u=[];(r&&!i||!r&&i)&&n++;var a=!r||!i;for(var f=0;f<n;f++){var l=sn(e,t,r,s,a);if(!l){var c=Ht(e,e.lastLine());u.push(r?{line:e.lastLine(),from:c,to:c}:{line:0,from:0,to:0});break}u.push(l),t=S(l.line,r?l.to-1:l.from)}var h=u.length!=n,p=u[0],d=u.pop();return r&&!i?(!h&&(p.from!=o.ch||p.line!=o.line)&&(d=u.pop()),S(d.line,d.from)):r&&i?S(d.line,d.to-1):!r&&i?(!h&&(p.to!=o.ch||p.line!=o.line)&&(d=u.pop()),S(d.line,d.to)):S(d.line,d.from)}function un(e,t,n,r){var i=e.getCursor(),s=i.ch,o;for(var u=0;u<t;u++){var a=e.getLine(i.line);o=ln(s,a,r,n,!0);if(o==-1)return null;s=o}return S(e.getCursor().line,o)}function an(e,t){var n=e.getCursor().line;return St(e,S(n,t-1))}function fn(e,t,n,r){if(!K(n,q))return;t.marks[n]&&t.marks[n].clear(),t.marks[n]=e.setBookmark(r)}function ln(e,t,n,r,i){var s;return r?(s=t.indexOf(n,e+1),s!=-1&&!i&&(s-=1)):(s=t.lastIndexOf(n,e-1),s!=-1&&!i&&(s+=1)),s}function cn(e,t,n,r,i){function c(t){return!/\\S/.test(e.getLine(t))}function h(e,t,n){return n?c(e)!=c(e+t):!c(e)&&c(e+t)}function p(t){r=r>0?1:-1;var n=e.ace.session.getFoldLine(t);n&&t+r>n.start.row&&t+r<n.end.row&&(r=(r>0?n.end.row:n.start.row)-t)}var s=t.line,o=e.firstLine(),u=e.lastLine(),a,f,l=s;if(r){while(o<=l&&l<=u&&n>0)p(l),h(l,r)&&n--,l+=r;return new S(l,0)}var d=e.state.vim;if(d.visualLine&&h(s,1,!0)){var v=d.sel.anchor;h(v.line,-1,!0)&&(!i||v.line!=s)&&(s+=1)}var m=c(s);for(l=s;l<=u&&n;l++)h(l,1,!0)&&(!i||c(l)!=m)&&n--;f=new S(l,0),l>u&&!m?m=!0:i=!1;for(l=s;l>o;l--)if(!i||c(l)==m||l==s)if(h(l,-1,!0))break;return a=new S(l,0),{start:a,end:f}}function hn(e,t,n,r){function i(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){t.ln+=t.dir;if(!U(e,t.ln)){t.line=null,t.ln=null,t.pos=null;return}t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function s(e,t,n,r){var s=e.getLine(t),o=s===\"\",u={line:s,ln:t,pos:n,dir:r},a={ln:u.ln,pos:u.pos},f=u.line===\"\";i(e,u);while(u.line!==null){a.ln=u.ln,a.pos=u.pos;if(u.line===\"\"&&!f)return{ln:u.ln,pos:u.pos};if(o&&u.line!==\"\"&&!$(u.line[u.pos]))return{ln:u.ln,pos:u.pos};J(u.line[u.pos])&&!o&&(u.pos===u.line.length-1||$(u.line[u.pos+1]))&&(o=!0),i(e,u)}var s=e.getLine(a.ln);a.pos=0;for(var l=s.length-1;l>=0;--l)if(!$(s[l])){a.pos=l;break}return a}function o(e,t,n,r){var s=e.getLine(t),o={line:s,ln:t,pos:n,dir:r},u={ln:o.ln,pos:null},a=o.line===\"\";i(e,o);while(o.line!==null){if(o.line===\"\"&&!a)return u.pos!==null?u:{ln:o.ln,pos:o.pos};if(!(!J(o.line[o.pos])||u.pos===null||o.ln===u.ln&&o.pos+1===u.pos))return u;o.line!==\"\"&&!$(o.line[o.pos])&&(a=!1,u={ln:o.ln,pos:o.pos}),i(e,o)}var s=e.getLine(u.ln);u.pos=0;for(var f=0;f<s.length;++f)if(!$(s[f])){u.pos=f;break}return u}var u={ln:t.line,pos:t.ch};while(n>0)r<0?u=o(e,u.ln,u.pos,r):u=s(e,u.ln,u.pos,r),n--;return S(u.ln,u.pos)}function pn(e,t,n,r){var i=t,s,o,u={\"(\":/[()]/,\")\":/[()]/,\"[\":/[[\\]]/,\"]\":/[[\\]]/,\"{\":/[{}]/,\"}\":/[{}]/,\"<\":/[<>]/,\">\":/[<>]/}[n],a={\"(\":\"(\",\")\":\"(\",\"[\":\"[\",\"]\":\"[\",\"{\":\"{\",\"}\":\"{\",\"<\":\"<\",\">\":\"<\"}[n],f=e.getLine(i.line).charAt(i.ch),l=f===a?1:0;s=e.scanForBracket(S(i.line,i.ch+l),-1,undefined,{bracketRegex:u}),o=e.scanForBracket(S(i.line,i.ch+l),1,undefined,{bracketRegex:u});if(!s||!o)return{start:i,end:i};s=s.pos,o=o.pos;if(s.line==o.line&&s.ch>o.ch||s.line>o.line){var c=s;s=o,o=c}return r?o.ch+=1:s.ch+=1,{start:s,end:o}}function dn(e,t,n,r){var i=At(t),s=e.getLine(i.line),o=s.split(\"\"),u,a,f,l,c=o.indexOf(n);i.ch<c?i.ch=c:c<i.ch&&o[i.ch]==n&&(a=i.ch,--i.ch);if(o[i.ch]==n&&!a)u=i.ch+1;else for(f=i.ch;f>-1&&!u;f--)o[f]==n&&(u=f+1);if(u&&!a)for(f=u,l=o.length;f<l&&!a;f++)o[f]==n&&(a=f);return!u||!a?{start:i,end:i}:(r&&(--u,++a),{start:S(i.line,u),end:S(i.line,a)})}function vn(){}function mn(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new vn)}function gn(e,t,n,r,i){e.openDialog?e.openDialog(t,r,{bottom:!0,value:i.value,onKeyDown:i.onKeyDown,onKeyUp:i.onKeyUp,selectValueOnOpen:!1,onClose:function(){e.state.vim&&(e.state.vim.status=\"\",e.ace.renderer.$loop.schedule(e.ace.renderer.CHANGE_CURSOR))}}):r(prompt(n,\"\"))}function yn(e){return wn(e,\"/\")}function bn(e){return En(e,\"/\")}function wn(e,t){var n=En(e,t)||[];if(!n.length)return[];var r=[];if(n[0]!==0)return;for(var i=0;i<n.length;i++)typeof n[i]==\"number\"&&r.push(e.substring(n[i]+1,n[i+1]));return r}function En(e,t){t||(t=\"/\");var n=!1,r=[];for(var i=0;i<e.length;i++){var s=e.charAt(i);!n&&s==t&&r.push(i),n=!n&&s==\"\\\\\"}return r}function Sn(e){var t=\"|(){\",n=\"}\",r=!1,i=[];for(var s=-1;s<e.length;s++){var o=e.charAt(s)||\"\",u=e.charAt(s+1)||\"\",a=u&&t.indexOf(u)!=-1;r?((o!==\"\\\\\"||!a)&&i.push(o),r=!1):o===\"\\\\\"?(r=!0,u&&n.indexOf(u)!=-1&&(a=!0),(!a||u===\"\\\\\")&&i.push(o)):(i.push(o),a&&u!==\"\\\\\"&&i.push(\"\\\\\"))}return i.join(\"\")}function Tn(e){var t=!1,n=[];for(var r=-1;r<e.length;r++){var i=e.charAt(r)||\"\",s=e.charAt(r+1)||\"\";xn[i+s]?(n.push(xn[i+s]),r++):t?(n.push(i),t=!1):i===\"\\\\\"?(t=!0,X(s)||s===\"$\"?n.push(\"$\"):s!==\"/\"&&s!==\"\\\\\"&&n.push(\"\\\\\")):(i===\"$\"&&n.push(\"$\"),n.push(i),s===\"/\"&&n.push(\"\\\\\"))}return n.join(\"\")}function Cn(e){var t=new v.StringStream(e),n=[];while(!t.eol()){while(t.peek()&&t.peek()!=\"\\\\\")n.push(t.next());var r=!1;for(var i in Nn)if(t.match(i,!0)){r=!0,n.push(Nn[i]);break}r||n.push(t.next())}return n.join(\"\")}function kn(e,t,n){var r=it.registerController.getRegister(\"/\");r.setText(e);if(e instanceof RegExp)return e;var i=bn(e),s,o;if(!i.length)s=e;else{s=e.substring(0,i[0]);var u=e.substring(i[0]);o=u.indexOf(\"i\")!=-1}if(!s)return null;Z(\"pcre\")||(s=Sn(s)),n&&(t=/^[^A-Z]*$/.test(s));var a=new RegExp(s,t||o?\"i\":undefined);return a}function Ln(e,t){e.openNotification?e.openNotification('<span style=\"color: red\">'+t+\"</span>\",{bottom:!0,duration:5e3}):alert(t)}function An(e,t){var n='<span style=\"font-family: monospace; white-space: pre\">'+(e||\"\")+'<input type=\"text\" autocorrect=\"off\" autocapitalize=\"none\" autocomplete=\"off\"></span>';return t&&(n+=' <span style=\"color: #888\">'+t+\"</span>\"),n}function Mn(e,t){var n=(t.prefix||\"\")+\" \"+(t.desc||\"\"),r=An(t.prefix,t.desc);gn(e,r,n,t.onClose,t)}function _n(e,t){if(e instanceof RegExp&&t instanceof RegExp){var n=[\"global\",\"multiline\",\"ignoreCase\",\"source\"];for(var r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}return!1}function Dn(e,t,n,r){if(!t)return;var i=mn(e),s=kn(t,!!n,!!r);if(!s)return;return Hn(e,s),_n(s,i.getQuery())?s:(i.setQuery(s),s)}function Pn(e){if(e.source.charAt(0)==\"^\")var t=!0;return{token:function(n){if(t&&!n.sol()){n.skipToEnd();return}var r=n.match(e,!1);if(r){if(r[0].length==0)return n.next(),\"searching\";if(!n.sol()){n.backUp(1);if(!e.exec(n.next()+r[0]))return n.next(),null}return n.match(e),\"searching\"}while(!n.eol()){n.next();if(n.match(e,!1))break}},query:e}}function Hn(e,t){var n=mn(e),r=n.getOverlay();if(!r||t!=r.query)r&&e.removeOverlay(r),r=Pn(t),e.addOverlay(r),e.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),n.setOverlay(r)}function Bn(e,t,n,r){return r===undefined&&(r=1),e.operation(function(){var i=e.getCursor(),s=e.getSearchCursor(n,i);for(var o=0;o<r;o++){var u=s.find(t);o==0&&u&&Ot(s.from(),i)&&(u=s.find(t));if(!u){s=e.getSearchCursor(n,t?S(e.lastLine()):S(e.firstLine(),0));if(!s.find(t))return}}return s.from()})}function jn(e){var t=mn(e);e.removeOverlay(mn(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function Fn(e,t,n){return typeof e!=\"number\"&&(e=e.line),t instanceof Array?K(e,t):n?e>=t&&e<=n:e==t}function In(e){var t=e.ace.renderer;return{top:t.getFirstFullyVisibleRow(),bottom:t.getLastFullyVisibleRow()}}function qn(e,t,n){if(n==\"'\"||n==\"`\")return it.jumpList.find(e,-1)||S(0,0);if(n==\".\")return Rn(e);var r=t.marks[n];return r&&r.find()}function Rn(e){var t=e.ace.session.$undoManager;if(t&&t.$lastDelta)return g(t.$lastDelta.end)}function Xn(e,t,n,r,i,s,o,u,a){function c(){e.operation(function(){while(!f)h(),p();d()})}function h(){var t=e.getRange(s.from(),s.to()),n=t.replace(o,u);s.replace(n)}function p(){while(s.findNext()&&Fn(s.from(),r,i)){if(!n&&l&&s.from().line==l.line)continue;e.scrollIntoView(s.from(),30),e.setSelection(s.from(),s.to()),l=s.from(),f=!1;return}f=!0}function d(t){t&&t(),e.focus();if(l){e.setCursor(l);var n=e.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=l.ch}a&&a()}function m(t,n,r){v.e_stop(t);var i=v.keyName(t);switch(i){case\"Y\":h(),p();break;case\"N\":p();break;case\"A\":var s=a;a=undefined,e.operation(c),a=s;break;case\"L\":h();case\"Q\":case\"Esc\":case\"Ctrl-C\":case\"Ctrl-[\":d(r)}return f&&d(r),!0}e.state.vim.exMode=!0;var f=!1,l=s.from();p();if(f){Ln(e,\"No matches for \"+o.source);return}if(!t){c(),a&&a();return}Mn(e,{prefix:\"replace with <strong>\"+u+\"</strong> (y/n/a/q/l)\",onKeyDown:m})}function Vn(e){var t=e.state.vim,n=it.macroModeState,r=it.registerController.getRegister(\".\"),i=n.isPlaying,s=n.lastInsertModeChanges;i||(e.off(\"change\",Zn),v.off(e.getInputField(),\"keydown\",ir)),!i&&t.insertModeRepeat>1&&(sr(e,t,t.insertModeRepeat-1,!0),t.lastEditInputState.repeatOverride=t.insertModeRepeat),delete t.insertModeRepeat,t.insertMode=!1,e.setCursor(e.getCursor().line,e.getCursor().ch-1),e.setOption(\"keyMap\",\"vim\"),e.setOption(\"disableInput\",!0),e.toggleOverwrite(!1),r.setText(s.changes.join(\"\")),v.signal(e,\"vim-mode-change\",{mode:\"normal\"}),n.isRecording&&Gn(n)}function $n(e){b.unshift(e)}function Jn(e,t,n,r,i){var s={keys:e,type:t};s[t]=n,s[t+\"Args\"]=r;for(var o in i)s[o]=i[o];$n(s)}function Kn(e,t,n,r){var i=it.registerController.getRegister(r);if(r==\":\"){i.keyBuffer[0]&&Wn.processCommand(e,i.keyBuffer[0]),n.isPlaying=!1;return}var s=i.keyBuffer,o=0;n.isPlaying=!0,n.replaySearchQueries=i.searchQueries.slice(0);for(var u=0;u<s.length;u++){var a=s[u],f,l;while(a){f=/<\\w+-.+?>|<\\w+>|./.exec(a),l=f[0],a=a.substring(f.index+l.length),v.Vim.handleKey(e,l,\"macro\");if(t.insertMode){var c=i.insertModeChanges[o++].changes;it.macroModeState.lastInsertModeChanges.changes=c,or(e,c,1),Vn(e)}}}n.isPlaying=!1}function Qn(e,t){if(e.isPlaying)return;var n=e.latestRegister,r=it.registerController.getRegister(n);r&&r.pushText(t)}function Gn(e){if(e.isPlaying)return;var t=e.latestRegister,n=it.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}function Yn(e,t){if(e.isPlaying)return;var n=e.latestRegister,r=it.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(t)}function Zn(e,t){var n=it.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)while(t){r.expectCursorActivityForChange=!0;if(r.ignoreCount>1)r.ignoreCount--;else if(t.origin==\"+input\"||t.origin==\"paste\"||t.origin===undefined){var i=e.listSelections().length;i>1&&(r.ignoreCount=i);var s=t.text.join(\"\\n\");r.maybeReset&&(r.changes=[],r.maybeReset=!1),s&&(e.state.overwrite&&!/\\n/.test(s)?r.changes.push([s]):r.changes.push(s))}t=t.next}}function er(e){var t=e.state.vim;if(t.insertMode){var n=it.macroModeState;if(n.isPlaying)return;var r=n.lastInsertModeChanges;r.expectCursorActivityForChange?r.expectCursorActivityForChange=!1:r.maybeReset=!0}else e.curOp.isVimOp||nr(e,t);t.visualMode&&tr(e)}function tr(e){var t=e.state.vim,n=St(e,At(t.sel.head)),r=Tt(n,0,1);t.fakeCursor&&t.fakeCursor.clear(),t.fakeCursor=e.markText(n,r,{className:\"cm-animate-fat-cursor\"})}function nr(e,t,n){var r=e.getCursor(\"anchor\"),i=e.getCursor(\"head\");t.visualMode&&!e.somethingSelected()?Jt(e,!1):!t.visualMode&&!t.insertMode&&e.somethingSelected()&&(t.visualMode=!0,t.visualLine=!1,v.signal(e,\"vim-mode-change\",{mode:\"visual\"}));if(t.visualMode){var s=Mt(i,r)?0:-1,o=Mt(i,r)?-1:0;i=Tt(i,0,s),r=Tt(r,0,o),t.sel={anchor:r,head:i},fn(e,t,\"<\",_t(i,r)),fn(e,t,\">\",Dt(i,r))}else!t.insertMode&&!n&&(t.lastHPos=e.getCursor().ch)}function rr(e){this.keyName=e}function ir(e){function i(){return n.maybeReset&&(n.changes=[],n.maybeReset=!1),n.changes.push(new rr(r)),!0}var t=it.macroModeState,n=t.lastInsertModeChanges,r=v.keyName(e);if(!r)return;(r.indexOf(\"Delete\")!=-1||r.indexOf(\"Backspace\")!=-1)&&v.lookupKey(r,\"vim-insert\",i)}function sr(e,t,n,r){function u(){s?dt.processAction(e,t,t.lastEditActionCommand):dt.evalInput(e,t)}function a(n){if(i.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;or(e,r.changes,n)}}var i=it.macroModeState;i.isPlaying=!0;var s=!!t.lastEditActionCommand,o=t.inputState;t.inputState=t.lastEditInputState;if(s&&t.lastEditActionCommand.interlaceInsertRepeat)for(var f=0;f<n;f++)u(),a(1);else r||u(),a(n);t.inputState=o,t.insertMode&&!r&&Vn(e),i.isPlaying=!1}function or(e,t,n){function r(t){return typeof t==\"string\"?v.commands[t](e):t(e),!0}var i=e.getCursor(\"head\"),s=it.macroModeState.lastInsertModeChanges.visualBlock;s&&(qt(e,i,s+1),n=e.listSelections().length,e.setCursor(i));for(var o=0;o<n;o++){s&&e.setCursor(Tt(i,o,0));for(var u=0;u<t.length;u++){var a=t[u];if(a instanceof rr)v.lookupKey(a.keyName,\"vim-insert\",r);else if(typeof a==\"string\"){var f=e.getCursor();e.replaceRange(a,f,f)}else{var l=e.getCursor(),c=Tt(l,0,a[0].length);e.replaceRange(a[0],l,c)}}}s&&e.setCursor(Tt(i,0,1))}function ar(e,t,n){t.length>1&&t[0]==\"n\"&&(t=t.replace(\"numpad\",\"\")),t=ur[t]||t;var r=\"\";return n.ctrlKey&&(r+=\"C-\"),n.altKey&&(r+=\"A-\"),(r||t.length>1)&&n.shiftKey&&(r+=\"S-\"),r+=t,r.length>1&&(r=\"<\"+r+\">\"),r}function lr(e){var t=new e.constructor;return Object.keys(e).forEach(function(n){var r=e[n];Array.isArray(r)?r=r.slice():r&&typeof r==\"object\"&&r.constructor!=Object&&(r=lr(r)),t[n]=r}),e.sel&&(t.sel={head:e.sel.head&&At(e.sel.head),anchor:e.sel.anchor&&At(e.sel.anchor)}),t}function cr(e,t,n){var r=!1,i=x.maybeInitVimState_(e),s=i.visualBlock||i.wasInVisualBlock,o=e.ace.inMultiSelectMode;i.wasInVisualBlock&&!o?i.wasInVisualBlock=!1:o&&i.visualBlock&&(i.wasInVisualBlock=!0);if(t==\"<Esc>\"&&!i.insertMode&&!i.visualMode&&o)e.ace.exitMultiSelectMode();else if(s||!o||e.ace.inVirtualSelectionMode)r=x.handleKey(e,t,n);else{var u=lr(i);e.operation(function(){e.ace.forEachSelection(function(){var i=e.ace.selection;e.state.vim.lastHPos=i.$desiredColumn==null?i.lead.column:i.$desiredColumn;var s=e.getCursor(\"head\"),o=e.getCursor(\"anchor\"),a=Mt(s,o)?0:-1,f=Mt(s,o)?-1:0;s=Tt(s,0,a),o=Tt(o,0,f),e.state.vim.sel.head=s,e.state.vim.sel.anchor=o,r=fr(e,t,n),i.$desiredColumn=e.state.vim.lastHPos==-1?null:e.state.vim.lastHPos,e.virtualSelectionMode()&&(e.state.vim=lr(u))}),e.curOp.cursorActivity&&!r&&(e.curOp.cursorActivity=!1)},!0)}return r&&!i.visualMode&&!i.insert&&i.visualMode!=e.somethingSelected()&&nr(e,i,!0),r}function pr(e,t){t.off(\"beforeEndOperation\",pr);var n=t.state.cm.vimCmd;n&&t.execCommand(n.exec?n:n.name,n.args),t.curOp=t.prevOp}var i=e(\"../range\").Range,s=e(\"../lib/event_emitter\").EventEmitter,o=e(\"../lib/dom\"),u=e(\"../lib/oop\"),a=e(\"../lib/keys\"),f=e(\"../lib/event\"),l=e(\"../search\").Search,c=e(\"../lib/useragent\"),h=e(\"../search_highlight\").SearchHighlight,p=e(\"../commands/multi_select_commands\"),d=e(\"../mode/text\").Mode.prototype.tokenRe;e(\"../multi_select\");var v=function(e){this.ace=e,this.state={},this.marks={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on(\"change\",this.onChange),this.ace.on(\"changeSelection\",this.onSelectionChange),this.ace.on(\"beforeEndOperation\",this.onBeforeEndOperation)};v.Pos=function(e,t){if(!(this instanceof S))return new S(e,t);this.line=e,this.ch=t},v.defineOption=function(e,t,n){},v.commands={redo:function(e){e.ace.redo()},undo:function(e){e.ace.undo()},newlineAndIndent:function(e){e.ace.insert(\"\\n\")}},v.keyMap={},v.addClass=v.rmClass=function(){},v.e_stop=v.e_preventDefault=f.stopEvent,v.keyName=function(e){var t=a[e.keyCode]||e.key||\"\";return t.length==1&&(t=t.toUpperCase()),t=f.getModifierString(e).replace(/(^|-)\\w/g,function(e){return e.toUpperCase()})+t,t},v.keyMap[\"default\"]=function(e){return function(t){var n=t.ace.commands.commandKeyBinding[e.toLowerCase()];return n&&t.ace.execCommand(n)!==!1}},v.lookupKey=function dr(e,t,n){t||(t=\"default\"),typeof t==\"string\"&&(t=v.keyMap[t]);var r=typeof t==\"function\"?t(e):t[e];if(r===!1)return\"nothing\";if(r===\"...\")return\"multi\";if(r!=null&&n(r))return\"handled\";if(t.fallthrough){if(!Array.isArray(t.fallthrough))return dr(e,t.fallthrough,n);for(var i=0;i<t.fallthrough.length;i++){var s=dr(e,t.fallthrough[i],n);if(s)return s}}},v.signal=function(e,t,n){return e._signal(t,n)},v.on=f.addListener,v.off=f.removeListener,v.isWordChar=function(e){return e<\"\"?/^\\w$/.test(e):(d.lastIndex=0,d.test(e))},function(){u.implement(v.prototype,s),this.destroy=function(){this.ace.off(\"change\",this.onChange),this.ace.off(\"changeSelection\",this.onSelectionChange),this.ace.off(\"beforeEndOperation\",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(e){var t={text:e.action[0]==\"i\"?e.lines:[]},n=this.curOp=this.curOp||{};n.changeHandlers||(n.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),n.lastChange?n.lastChange.next=n.lastChange=t:n.lastChange=n.change=t,this.$updateMarkers(e)},this.onSelectionChange=function(){var e=this.curOp=this.curOp||{};e.cursorActivityHandlers||(e.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(p.keyboardHandler)},this.operation=function(e,t){if(!t&&this.curOp||t&&this.curOp&&this.curOp.force)return e();(t||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation();if(!this.ace.curOp){var n=this.ace.prevOp;this.ace.startOperation({command:{name:\"vim\",scrollIntoView:\"cursor\"}})}var r=this.curOp=this.curOp||{};this.curOp.force=t;var i=e();return this.ace.curOp&&this.ace.curOp.command.name==\"vim\"&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=!1),this.ace.endOperation(),!r.cursorActivity&&!r.lastChange&&n&&(this.ace.prevOp=n)),(t||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),i},this.onBeforeEndOperation=function(){var e=this.curOp;e&&(e.change&&this.signal(\"change\",e.change,e),e&&e.cursorActivity&&this.signal(\"cursorActivity\",null,e),this.curOp=null)},this.signal=function(e,t,n){var r=n?n[e+\"Handlers\"]:(this._eventRegistry||{})[e];if(!r)return;r=r.slice();for(var i=0;i<r.length;i++)r[i](this,t)},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(e,t){typeof e==\"object\"&&(t=e.ch,e=e.line),this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:e,column:t}),this.ace.selection.moveTo(e,t)},this.getCursor=function(e){var t=this.ace.selection,n=e==\"anchor\"?t.isEmpty()?t.lead:t.anchor:e==\"head\"||!e?t.lead:t.getRange()[e];return g(n)},this.listSelections=function(e){var t=this.ace.multiSelect.rangeList.ranges;return!t.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor(\"anchor\"),head:this.getCursor(\"head\")}]:t.map(function(e){return{anchor:this.clipPos(g(e.cursor==e.end?e.start:e.end)),head:this.clipPos(g(e.cursor))}},this)},this.setSelections=function(e,t){var n=this.ace.multiSelect,r=e.map(function(e){var t=m(e.anchor),n=m(e.head),r=i.comparePoints(t,n)<0?new i.fromPoints(t,n):new i.fromPoints(n,t);return r.cursor=i.comparePoints(r.start,n)?r.end:r.start,r});if(this.ace.inVirtualSelectionMode){this.ace.selection.fromOrientedRange(r[0]);return}t?r[t]&&r.push(r.splice(t,1)[0]):r=r.reverse(),n.toSingleRange(r[0].clone());var s=this.ace.session;for(var o=0;o<r.length;o++){var u=s.$clipRangeToDocument(r[o]);n.addRange(u)}},this.setSelection=function(e,t,n){var r=this.ace.selection;r.moveTo(e.line,e.ch),r.selectTo(t.line,t.ch),n&&n.origin==\"*mouse\"&&this.onBeforeEndOperation()},this.somethingSelected=function(e){return!this.ace.selection.isEmpty()},this.clipPos=function(e){var t=this.ace.session.$clipPositionToDocument(e.line,e.ch);return g(t)},this.markText=function(e){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(e){var t=e.action==\"insert\",n=e.start,r=e.end,s=(r.row-n.row)*(t?1:-1),o=(r.column-n.column)*(t?1:-1);t&&(r=n);for(var u in this.marks){var a=this.marks[u],f=i.comparePoints(a,n);if(f<0)continue;if(f===0&&t){if(a.bias!=1){a.bias=-1;continue}f=1}var l=t?f:i.comparePoints(a,r);if(l>0){a.row+=s,a.column+=a.row==r.row?o:0;continue}!t&&l<=0&&(a.row=n.row,a.column=n.column,l===0&&(a.bias=1))}};var e=function(e,t,n,r){this.cm=e,this.id=t,this.row=n,this.column=r,e.marks[this.id]=this};e.prototype.clear=function(){delete this.cm.marks[this.id]},e.prototype.find=function(){return g(this)},this.setBookmark=function(t,n){var r=new e(this,this.$uid++,t.line,t.ch);if(!n||!n.insertLeft)r.$insertRight=!0;return this.marks[r.id]=r,r},this.moveH=function(e,t){if(t==\"char\"){var n=this.ace.selection;n.clearSelection(),n.moveCursorBy(0,e)}},this.findPosV=function(e,t,n,r){if(n==\"page\"){var i=this.ace.renderer,s=i.layerConfig;t*=Math.floor(s.height/s.lineHeight),n=\"line\"}if(n==\"line\"){var o=this.ace.session.documentToScreenPosition(e.line,e.ch);r!=null&&(o.column=r),o.row+=t,o.row=Math.min(Math.max(0,o.row),this.ace.session.getScreenLength()-1);var u=this.ace.session.screenToDocumentPosition(o.row,o.column);return g(u)}debugger},this.charCoords=function(e,t){if(t==\"div\"||!t){var n=this.ace.session.documentToScreenPosition(e.line,e.ch);return{left:n.column,top:n.row}}if(t==\"local\"){var r=this.ace.renderer,n=this.ace.session.documentToScreenPosition(e.line,e.ch),i=r.layerConfig.lineHeight,s=r.layerConfig.characterWidth,o=i*n.row;return{left:n.column*s,top:o,bottom:o+i}}},this.coordsChar=function(e,t){var n=this.ace.renderer;if(t==\"local\"){var r=Math.max(0,Math.floor(e.top/n.lineHeight)),i=Math.max(0,Math.floor(e.left/n.characterWidth)),s=n.session.screenToDocumentPosition(r,i);return g(s)}if(t==\"div\")throw\"not implemented\"},this.getSearchCursor=function(e,t,n){var r=!1,i=!1;e instanceof RegExp&&!e.global&&(r=!e.ignoreCase,e=e.source,i=!0);var s=new l;t.ch==undefined&&(t.ch=Number.MAX_VALUE);var o={row:t.line,column:t.ch},u=this,a=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){s.setOptions({needle:e,caseSensitive:r,wrap:!1,backwards:t,regExp:i,start:a||o});var n=s.find(u.ace.session);return n&&n.isEmpty()&&u.getLine(n.start.row).length==n.start.column&&(s.$options.start=n,n=s.find(u.ace.session)),a=n,a},from:function(){return a&&g(a.start)},to:function(){return a&&g(a.end)},replace:function(e){a&&(a.end=u.ace.session.doc.replace(a,e))}}},this.scrollTo=function(e,t){var n=this.ace.renderer,r=n.layerConfig,i=r.maxHeight;i-=(n.$size.scrollerHeight-n.lineHeight)*n.$scrollPastEnd,t!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(t,i))),e!=null&&this.ace.session.setScrollLeft(Math.max(0,Math.min(e,r.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(e,t){if(e){var n=this.ace.renderer,r={top:0,bottom:t};n.scrollCursorIntoView(m(e),n.lineHeight*2/n.$size.scrollerHeight,r)}},this.getLine=function(e){return this.ace.session.getLine(e)},this.getRange=function(e,t){return this.ace.session.getTextRange(new i(e.line,e.ch,t.line,t.ch))},this.replaceRange=function(e,t,n){return n||(n=t),this.ace.session.replace(new i(t.line,t.ch,n.line,n.ch),e)},this.replaceSelection=this.replaceSelections=function(e){var t=this.ace.selection;if(this.ace.inVirtualSelectionMode){this.ace.session.replace(t.getRange(),e[0]||\"\");return}t.inVirtualSelectionMode=!0;var n=t.rangeList.ranges;n.length||(n=[this.ace.multiSelect.getRange()]);for(var r=n.length;r--;)this.ace.session.replace(n[r],e[r]||\"\");t.inVirtualSelectionMode=!1},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(e){return this.getRange(e.anchor,e.head)},this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var t={indentWithTabs:\"useSoftTabs\",indentUnit:\"tabSize\",tabSize:\"tabSize\",firstLineNumber:\"firstLineNumber\",readOnly:\"readOnly\"};this.setOption=function(e,n){this.state[e]=n;switch(e){case\"indentWithTabs\":e=t[e],n=!n;break;case\"keyMap\":this.state.$keyMap=n;return;default:e=t[e]}e&&this.ace.setOption(e,n)},this.getOption=function(e,n){var r=t[e];r&&(n=this.ace.getOption(r));switch(e){case\"indentWithTabs\":return e=t[e],!n;case\"keyMap\":return this.state.$keyMap}return r?n:this.state[e]},this.toggleOverwrite=function(e){return this.state.overwrite=e,this.ace.setOverwrite(e)},this.addOverlay=function(e){if(!this.$searchHighlight||!this.$searchHighlight.session){var t=new h(null,\"ace_highlight-marker\",\"text\"),n=this.ace.session.addDynamicMarker(t);t.id=n.id,t.session=this.ace.session,t.destroy=function(e){t.session.off(\"change\",t.updateOnChange),t.session.off(\"changeEditor\",t.destroy),t.session.removeMarker(t.id),t.session=null},t.updateOnChange=function(e){var n=e.start.row;n==e.end.row?t.cache[n]=undefined:t.cache.splice(n,t.cache.length)},t.session.on(\"changeEditor\",t.destroy),t.session.on(\"change\",t.updateOnChange)}var r=new RegExp(e.query.source,\"gmi\");this.$searchHighlight=e.highlight=t,this.$searchHighlight.setRegexp(r),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(e){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var e=this.ace.renderer,t=e.layerConfig;return{left:e.scrollLeft,top:e.scrollTop,height:t.maxHeight,width:t.width,clientHeight:t.height,clientWidth:t.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(e){return this.ace.setValue(e,-1)},this.getTokenTypeAt=function(e){var t=this.ace.session.getTokenAt(e.line,e.ch);return t&&/comment|string/.test(t.type)?\"string\":\"\"},this.findMatchingBracket=function(e){var t=this.ace.session.findMatchingBracket(m(e));return{to:t&&g(t)}},this.indentLine=function(e,t){t===!0?this.ace.session.indentRows(e,e,\"\t\"):t===!1&&this.ace.session.outdentRows(new i(e,0,e,0))},this.indexFromPos=function(e){return this.ace.session.doc.positionToIndex(m(e))},this.posFromIndex=function(e){return g(this.ace.session.doc.indexToPosition(e))},this.focus=function(e){return this.ace.textInput.focus()},this.blur=function(e){return this.ace.blur()},this.defaultTextHeight=function(e){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(e,t,n,r){var i=r.bracketRegex.source,s=/paren|text|operator|tag/;if(t==1)var o=this.ace.session.$findClosingBracket(i.slice(1,2),m(e),s);else var o=this.ace.session.$findOpeningBracket(i.slice(-2,-1),{row:e.line,column:e.ch+1},s);return o&&{pos:g(o)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption(\"mode\")}},this.execCommand=function(e){e==\"indentAuto\"?this.ace.execCommand(\"autoindent\"):console.log(e+\" is not implemented\")}}.call(v.prototype);var y=v.StringStream=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};y.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||undefined},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(e){var t=this.string.charAt(this.pos);if(typeof e==\"string\")var n=t==e;else var n=t&&(e.test?e.test(t):e(t));if(n)return++this.pos,t},eatWhile:function(e){var t=this.pos;while(this.eat(e));return this.pos>t},eatSpace:function(){var e=this.pos;while(/[\\s\\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){throw\"not implemented\"},indentation:function(){throw\"not implemented\"},match:function(e,t,n){if(typeof e!=\"string\"){var s=this.string.slice(this.pos).match(e);return s&&s.index>0?null:(s&&t!==!1&&(this.pos+=s[0].length),s)}var r=function(e){return n?e.toLowerCase():e},i=this.string.substr(this.pos,e.length);if(r(i)==r(e))return t!==!1&&(this.pos+=e.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}},v.defineExtension=function(e,t){v.prototype[e]=t},o.importCssString(\".normal-mode .ace_cursor{    border: none;    background-color: rgba(255,0,0,0.5);}.normal-mode .ace_hidden-cursors .ace_cursor{  background-color: transparent;  border: 1px solid red;  opacity: 0.7}.ace_dialog {  position: absolute;  left: 0; right: 0;  background: inherit;  z-index: 15;  padding: .1em .8em;  overflow: hidden;  color: inherit;}.ace_dialog-top {  border-bottom: 1px solid #444;  top: 0;}.ace_dialog-bottom {  border-top: 1px solid #444;  bottom: 0;}.ace_dialog input {  border: none;  outline: none;  background: transparent;  width: 20em;  color: inherit;  font-family: monospace;}\",\"vimMode\"),function(){function e(e,t,n){var r=e.ace.container,i;return i=r.appendChild(document.createElement(\"div\")),n?i.className=\"ace_dialog ace_dialog-bottom\":i.className=\"ace_dialog ace_dialog-top\",typeof t==\"string\"?i.innerHTML=t:i.appendChild(t),i}function t(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}v.defineExtension(\"openDialog\",function(n,r,i){function a(e){if(typeof e==\"string\")f.value=e;else{if(o)return;if(e&&e.type==\"blur\"&&document.activeElement===f)return;u.state.dialog=null,o=!0,s.parentNode.removeChild(s),u.focus(),i.onClose&&i.onClose(s)}}if(this.virtualSelectionMode())return;i||(i={}),t(this,null);var s=e(this,n,i.bottom),o=!1,u=this;this.state.dialog=s;var f=s.getElementsByTagName(\"input\")[0],l;if(f)i.value&&(f.value=i.value,i.selectValueOnOpen!==!1&&f.select()),i.onInput&&v.on(f,\"input\",function(e){i.onInput(e,f.value,a)}),i.onKeyUp&&v.on(f,\"keyup\",function(e){i.onKeyUp(e,f.value,a)}),v.on(f,\"keydown\",function(e){if(i&&i.onKeyDown&&i.onKeyDown(e,f.value,a))return;e.keyCode==13&&r(f.value);if(e.keyCode==27||i.closeOnEnter!==!1&&e.keyCode==13)f.blur(),v.e_stop(e),a()}),i.closeOnBlur!==!1&&v.on(f,\"blur\",a),f.focus();else if(l=s.getElementsByTagName(\"button\")[0])v.on(l,\"click\",function(){a(),u.focus()}),i.closeOnBlur!==!1&&v.on(l,\"blur\",a),l.focus();return a}),v.defineExtension(\"openNotification\",function(n,r){function a(){if(s)return;s=!0,clearTimeout(o),i.parentNode.removeChild(i)}if(this.virtualSelectionMode())return;t(this,a);var i=e(this,n,r&&r.bottom),s=!1,o,u=r&&typeof r.duration!=\"undefined\"?r.duration:5e3;return v.on(i,\"click\",function(e){v.e_preventDefault(e),a()}),u&&(o=setTimeout(a,u)),a})}();var b=[{keys:\"<Left>\",type:\"keyToKey\",toKeys:\"h\"},{keys:\"<Right>\",type:\"keyToKey\",toKeys:\"l\"},{keys:\"<Up>\",type:\"keyToKey\",toKeys:\"k\"},{keys:\"<Down>\",type:\"keyToKey\",toKeys:\"j\"},{keys:\"<Space>\",type:\"keyToKey\",toKeys:\"l\"},{keys:\"<BS>\",type:\"keyToKey\",toKeys:\"h\",context:\"normal\"},{keys:\"<Del>\",type:\"keyToKey\",toKeys:\"x\",context:\"normal\"},{keys:\"<C-Space>\",type:\"keyToKey\",toKeys:\"W\"},{keys:\"<C-BS>\",type:\"keyToKey\",toKeys:\"B\",context:\"normal\"},{keys:\"<S-Space>\",type:\"keyToKey\",toKeys:\"w\"},{keys:\"<S-BS>\",type:\"keyToKey\",toKeys:\"b\",context:\"normal\"},{keys:\"<C-n>\",type:\"keyToKey\",toKeys:\"j\"},{keys:\"<C-p>\",type:\"keyToKey\",toKeys:\"k\"},{keys:\"<C-[>\",type:\"keyToKey\",toKeys:\"<Esc>\"},{keys:\"<C-c>\",type:\"keyToKey\",toKeys:\"<Esc>\"},{keys:\"<C-[>\",type:\"keyToKey\",toKeys:\"<Esc>\",context:\"insert\"},{keys:\"<C-c>\",type:\"keyToKey\",toKeys:\"<Esc>\",context:\"insert\"},{keys:\"<C-Esc>\",type:\"keyToKey\",toKeys:\"<Esc>\"},{keys:\"<C-Esc>\",type:\"keyToKey\",toKeys:\"<Esc>\",context:\"insert\"},{keys:\"s\",type:\"keyToKey\",toKeys:\"cl\",context:\"normal\"},{keys:\"s\",type:\"keyToKey\",toKeys:\"c\",context:\"visual\"},{keys:\"S\",type:\"keyToKey\",toKeys:\"cc\",context:\"normal\"},{keys:\"S\",type:\"keyToKey\",toKeys:\"VdO\",context:\"visual\"},{keys:\"<Home>\",type:\"keyToKey\",toKeys:\"0\"},{keys:\"<End>\",type:\"keyToKey\",toKeys:\"$\"},{keys:\"<PageUp>\",type:\"keyToKey\",toKeys:\"<C-b>\"},{keys:\"<PageDown>\",type:\"keyToKey\",toKeys:\"<C-f>\"},{keys:\"<CR>\",type:\"keyToKey\",toKeys:\"j^\",context:\"normal\"},{keys:\"<Ins>\",type:\"action\",action:\"toggleOverwrite\",context:\"insert\"},{keys:\"H\",type:\"motion\",motion:\"moveToTopLine\",motionArgs:{linewise:!0,toJumplist:!0}},{keys:\"M\",type:\"motion\",motion:\"moveToMiddleLine\",motionArgs:{linewise:!0,toJumplist:!0}},{keys:\"L\",type:\"motion\",motion:\"moveToBottomLine\",motionArgs:{linewise:!0,toJumplist:!0}},{keys:\"h\",type:\"motion\",motion:\"moveByCharacters\",motionArgs:{forward:!1}},{keys:\"l\",type:\"motion\",motion:\"moveByCharacters\",motionArgs:{forward:!0}},{keys:\"j\",type:\"motion\",motion:\"moveByLines\",motionArgs:{forward:!0,linewise:!0}},{keys:\"k\",type:\"motion\",motion:\"moveByLines\",motionArgs:{forward:!1,linewise:!0}},{keys:\"gj\",type:\"motion\",motion:\"moveByDisplayLines\",motionArgs:{forward:!0}},{keys:\"gk\",type:\"motion\",motion:\"moveByDisplayLines\",motionArgs:{forward:!1}},{keys:\"w\",type:\"motion\",motion:\"moveByWords\",motionArgs:{forward:!0,wordEnd:!1}},{keys:\"W\",type:\"motion\",motion:\"moveByWords\",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:\"e\",type:\"motion\",motion:\"moveByWords\",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:\"E\",type:\"motion\",motion:\"moveByWords\",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:\"b\",type:\"motion\",motion:\"moveByWords\",motionArgs:{forward:!1,wordEnd:!1}},{keys:\"B\",type:\"motion\",motion:\"moveByWords\",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:\"ge\",type:\"motion\",motion:\"moveByWords\",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:\"gE\",type:\"motion\",motion:\"moveByWords\",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:\"{\",type:\"motion\",motion:\"moveByParagraph\",motionArgs:{forward:!1,toJumplist:!0}},{keys:\"}\",type:\"motion\",motion:\"moveByParagraph\",motionArgs:{forward:!0,toJumplist:!0}},{keys:\"(\",type:\"motion\",motion:\"moveBySentence\",motionArgs:{forward:!1}},{keys:\")\",type:\"motion\",motion:\"moveBySentence\",motionArgs:{forward:!0}},{keys:\"<C-f>\",type:\"motion\",motion:\"moveByPage\",motionArgs:{forward:!0}},{keys:\"<C-b>\",type:\"motion\",motion:\"moveByPage\",motionArgs:{forward:!1}},{keys:\"<C-d>\",type:\"motion\",motion:\"moveByScroll\",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:\"<C-u>\",type:\"motion\",motion:\"moveByScroll\",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:\"gg\",type:\"motion\",motion:\"moveToLineOrEdgeOfDocument\",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:\"G\",type:\"motion\",motion:\"moveToLineOrEdgeOfDocument\",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:\"0\",type:\"motion\",motion:\"moveToStartOfLine\"},{keys:\"^\",type:\"motion\",motion:\"moveToFirstNonWhiteSpaceCharacter\"},{keys:\"+\",type:\"motion\",motion:\"moveByLines\",motionArgs:{forward:!0,toFirstChar:!0}},{keys:\"-\",type:\"motion\",motion:\"moveByLines\",motionArgs:{forward:!1,toFirstChar:!0}},{keys:\"_\",type:\"motion\",motion:\"moveByLines\",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:\"$\",type:\"motion\",motion:\"moveToEol\",motionArgs:{inclusive:!0}},{keys:\"%\",type:\"motion\",motion:\"moveToMatchedSymbol\",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:\"f<character>\",type:\"motion\",motion:\"moveToCharacter\",motionArgs:{forward:!0,inclusive:!0}},{keys:\"F<character>\",type:\"motion\",motion:\"moveToCharacter\",motionArgs:{forward:!1}},{keys:\"t<character>\",type:\"motion\",motion:\"moveTillCharacter\",motionArgs:{forward:!0,inclusive:!0}},{keys:\"T<character>\",type:\"motion\",motion:\"moveTillCharacter\",motionArgs:{forward:!1}},{keys:\";\",type:\"motion\",motion:\"repeatLastCharacterSearch\",motionArgs:{forward:!0}},{keys:\",\",type:\"motion\",motion:\"repeatLastCharacterSearch\",motionArgs:{forward:!1}},{keys:\"'<character>\",type:\"motion\",motion:\"goToMark\",motionArgs:{toJumplist:!0,linewise:!0}},{keys:\"`<character>\",type:\"motion\",motion:\"goToMark\",motionArgs:{toJumplist:!0}},{keys:\"]`\",type:\"motion\",motion:\"jumpToMark\",motionArgs:{forward:!0}},{keys:\"[`\",type:\"motion\",motion:\"jumpToMark\",motionArgs:{forward:!1}},{keys:\"]'\",type:\"motion\",motion:\"jumpToMark\",motionArgs:{forward:!0,linewise:!0}},{keys:\"['\",type:\"motion\",motion:\"jumpToMark\",motionArgs:{forward:!1,linewise:!0}},{keys:\"]p\",type:\"action\",action:\"paste\",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:\"[p\",type:\"action\",action:\"paste\",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:\"]<character>\",type:\"motion\",motion:\"moveToSymbol\",motionArgs:{forward:!0,toJumplist:!0}},{keys:\"[<character>\",type:\"motion\",motion:\"moveToSymbol\",motionArgs:{forward:!1,toJumplist:!0}},{keys:\"|\",type:\"motion\",motion:\"moveToColumn\"},{keys:\"o\",type:\"motion\",motion:\"moveToOtherHighlightedEnd\",context:\"visual\"},{keys:\"O\",type:\"motion\",motion:\"moveToOtherHighlightedEnd\",motionArgs:{sameLine:!0},context:\"visual\"},{keys:\"d\",type:\"operator\",operator:\"delete\"},{keys:\"y\",type:\"operator\",operator:\"yank\"},{keys:\"c\",type:\"operator\",operator:\"change\"},{keys:\"=\",type:\"operator\",operator:\"indentAuto\"},{keys:\">\",type:\"operator\",operator:\"indent\",operatorArgs:{indentRight:!0}},{keys:\"<\",type:\"operator\",operator:\"indent\",operatorArgs:{indentRight:!1}},{keys:\"g~\",type:\"operator\",operator:\"changeCase\"},{keys:\"gu\",type:\"operator\",operator:\"changeCase\",operatorArgs:{toLower:!0},isEdit:!0},{keys:\"gU\",type:\"operator\",operator:\"changeCase\",operatorArgs:{toLower:!1},isEdit:!0},{keys:\"n\",type:\"motion\",motion:\"findNext\",motionArgs:{forward:!0,toJumplist:!0}},{keys:\"N\",type:\"motion\",motion:\"findNext\",motionArgs:{forward:!1,toJumplist:!0}},{keys:\"x\",type:\"operatorMotion\",operator:\"delete\",motion:\"moveByCharacters\",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:\"X\",type:\"operatorMotion\",operator:\"delete\",motion:\"moveByCharacters\",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:\"D\",type:\"operatorMotion\",operator:\"delete\",motion:\"moveToEol\",motionArgs:{inclusive:!0},context:\"normal\"},{keys:\"D\",type:\"operator\",operator:\"delete\",operatorArgs:{linewise:!0},context:\"visual\"},{keys:\"Y\",type:\"operatorMotion\",operator:\"yank\",motion:\"expandToLine\",motionArgs:{linewise:!0},context:\"normal\"},{keys:\"Y\",type:\"operator\",operator:\"yank\",operatorArgs:{linewise:!0},context:\"visual\"},{keys:\"C\",type:\"operatorMotion\",operator:\"change\",motion:\"moveToEol\",motionArgs:{inclusive:!0},context:\"normal\"},{keys:\"C\",type:\"operator\",operator:\"change\",operatorArgs:{linewise:!0},context:\"visual\"},{keys:\"~\",type:\"operatorMotion\",operator:\"changeCase\",motion:\"moveByCharacters\",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:\"normal\"},{keys:\"~\",type:\"operator\",operator:\"changeCase\",context:\"visual\"},{keys:\"<C-w>\",type:\"operatorMotion\",operator:\"delete\",motion:\"moveByWords\",motionArgs:{forward:!1,wordEnd:!1},context:\"insert\"},{keys:\"<C-w>\",type:\"idle\",context:\"normal\"},{keys:\"<C-i>\",type:\"action\",action:\"jumpListWalk\",actionArgs:{forward:!0}},{keys:\"<C-o>\",type:\"action\",action:\"jumpListWalk\",actionArgs:{forward:!1}},{keys:\"<C-e>\",type:\"action\",action:\"scroll\",actionArgs:{forward:!0,linewise:!0}},{keys:\"<C-y>\",type:\"action\",action:\"scroll\",actionArgs:{forward:!1,linewise:!0}},{keys:\"a\",type:\"action\",action:\"enterInsertMode\",isEdit:!0,actionArgs:{insertAt:\"charAfter\"},context:\"normal\"},{keys:\"A\",type:\"action\",action:\"enterInsertMode\",isEdit:!0,actionArgs:{insertAt:\"eol\"},context:\"normal\"},{keys:\"A\",type:\"action\",action:\"enterInsertMode\",isEdit:!0,actionArgs:{insertAt:\"endOfSelectedArea\"},context:\"visual\"},{keys:\"i\",type:\"action\",action:\"enterInsertMode\",isEdit:!0,actionArgs:{insertAt:\"inplace\"},context:\"normal\"},{keys:\"gi\",type:\"action\",action:\"enterInsertMode\",isEdit:!0,actionArgs:{insertAt:\"lastEdit\"},context:\"normal\"},{keys:\"I\",type:\"action\",action:\"enterInsertMode\",isEdit:!0,actionArgs:{insertAt:\"firstNonBlank\"},context:\"normal\"},{keys:\"gI\",type:\"action\",action:\"enterInsertMode\",isEdit:!0,actionArgs:{insertAt:\"bol\"},context:\"normal\"},{keys:\"I\",type:\"action\",action:\"enterInsertMode\",isEdit:!0,actionArgs:{insertAt:\"startOfSelectedArea\"},context:\"visual\"},{keys:\"o\",type:\"action\",action:\"newLineAndEnterInsertMode\",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:\"normal\"},{keys:\"O\",type:\"action\",action:\"newLineAndEnterInsertMode\",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:\"normal\"},{keys:\"v\",type:\"action\",action:\"toggleVisualMode\"},{keys:\"V\",type:\"action\",action:\"toggleVisualMode\",actionArgs:{linewise:!0}},{keys:\"<C-v>\",type:\"action\",action:\"toggleVisualMode\",actionArgs:{blockwise:!0}},{keys:\"<C-q>\",type:\"action\",action:\"toggleVisualMode\",actionArgs:{blockwise:!0}},{keys:\"gv\",type:\"action\",action:\"reselectLastSelection\"},{keys:\"J\",type:\"action\",action:\"joinLines\",isEdit:!0},{keys:\"gJ\",type:\"action\",action:\"joinLines\",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:\"p\",type:\"action\",action:\"paste\",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:\"P\",type:\"action\",action:\"paste\",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:\"r<character>\",type:\"action\",action:\"replace\",isEdit:!0},{keys:\"@<character>\",type:\"action\",action:\"replayMacro\"},{keys:\"q<character>\",type:\"action\",action:\"enterMacroRecordMode\"},{keys:\"R\",type:\"action\",action:\"enterInsertMode\",isEdit:!0,actionArgs:{replace:!0},context:\"normal\"},{keys:\"R\",type:\"operator\",operator:\"change\",operatorArgs:{linewise:!0,fullLine:!0},context:\"visual\",exitVisualBlock:!0},{keys:\"u\",type:\"action\",action:\"undo\",context:\"normal\"},{keys:\"u\",type:\"operator\",operator:\"changeCase\",operatorArgs:{toLower:!0},context:\"visual\",isEdit:!0},{keys:\"U\",type:\"operator\",operator:\"changeCase\",operatorArgs:{toLower:!1},context:\"visual\",isEdit:!0},{keys:\"<C-r>\",type:\"action\",action:\"redo\"},{keys:\"m<character>\",type:\"action\",action:\"setMark\"},{keys:'\"<character>',type:\"action\",action:\"setRegister\"},{keys:\"zz\",type:\"action\",action:\"scrollToCursor\",actionArgs:{position:\"center\"}},{keys:\"z.\",type:\"action\",action:\"scrollToCursor\",actionArgs:{position:\"center\"},motion:\"moveToFirstNonWhiteSpaceCharacter\"},{keys:\"zt\",type:\"action\",action:\"scrollToCursor\",actionArgs:{position:\"top\"}},{keys:\"z<CR>\",type:\"action\",action:\"scrollToCursor\",actionArgs:{position:\"top\"},motion:\"moveToFirstNonWhiteSpaceCharacter\"},{keys:\"z-\",type:\"action\",action:\"scrollToCursor\",actionArgs:{position:\"bottom\"}},{keys:\"zb\",type:\"action\",action:\"scrollToCursor\",actionArgs:{position:\"bottom\"},motion:\"moveToFirstNonWhiteSpaceCharacter\"},{keys:\".\",type:\"action\",action:\"repeatLastEdit\"},{keys:\"<C-a>\",type:\"action\",action:\"incrementNumberToken\",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:\"<C-x>\",type:\"action\",action:\"incrementNumberToken\",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:\"<C-t>\",type:\"action\",action:\"indent\",actionArgs:{indentRight:!0},context:\"insert\"},{keys:\"<C-d>\",type:\"action\",action:\"indent\",actionArgs:{indentRight:!1},context:\"insert\"},{keys:\"a<character>\",type:\"motion\",motion:\"textObjectManipulation\"},{keys:\"i<character>\",type:\"motion\",motion:\"textObjectManipulation\",motionArgs:{textObjectInner:!0}},{keys:\"/\",type:\"search\",searchArgs:{forward:!0,querySrc:\"prompt\",toJumplist:!0}},{keys:\"?\",type:\"search\",searchArgs:{forward:!1,querySrc:\"prompt\",toJumplist:!0}},{keys:\"*\",type:\"search\",searchArgs:{forward:!0,querySrc:\"wordUnderCursor\",wholeWordOnly:!0,toJumplist:!0}},{keys:\"#\",type:\"search\",searchArgs:{forward:!1,querySrc:\"wordUnderCursor\",wholeWordOnly:!0,toJumplist:!0}},{keys:\"g*\",type:\"search\",searchArgs:{forward:!0,querySrc:\"wordUnderCursor\",toJumplist:!0}},{keys:\"g#\",type:\"search\",searchArgs:{forward:!1,querySrc:\"wordUnderCursor\",toJumplist:!0}},{keys:\":\",type:\"ex\"}],w=b.length,E=[{name:\"colorscheme\",shortName:\"colo\"},{name:\"map\"},{name:\"imap\",shortName:\"im\"},{name:\"nmap\",shortName:\"nm\"},{name:\"vmap\",shortName:\"vm\"},{name:\"unmap\"},{name:\"write\",shortName:\"w\"},{name:\"undo\",shortName:\"u\"},{name:\"redo\",shortName:\"red\"},{name:\"set\",shortName:\"se\"},{name:\"set\",shortName:\"se\"},{name:\"setlocal\",shortName:\"setl\"},{name:\"setglobal\",shortName:\"setg\"},{name:\"sort\",shortName:\"sor\"},{name:\"substitute\",shortName:\"s\",possiblyAsync:!0},{name:\"nohlsearch\",shortName:\"noh\"},{name:\"yank\",shortName:\"y\"},{name:\"delmarks\",shortName:\"delm\"},{name:\"registers\",shortName:\"reg\",excludeFromCommandHistory:!0},{name:\"global\",shortName:\"g\"}],S=v.Pos,x=function(){return ut};v.defineOption(\"vimMode\",!1,function(e,t,n){t&&e.getOption(\"keyMap\")!=\"vim\"?e.setOption(\"keyMap\",\"vim\"):!t&&n!=v.Init&&/^vim/.test(e.getOption(\"keyMap\"))&&e.setOption(\"keyMap\",\"default\")});var A={Shift:\"S\",Ctrl:\"C\",Alt:\"A\",Cmd:\"D\",Mod:\"A\"},O={Enter:\"CR\",Backspace:\"BS\",Delete:\"Del\",Insert:\"Ins\"},D=/[\\d]/,P=[v.isWordChar,function(e){return e&&!v.isWordChar(e)&&!/\\s/.test(e)}],H=[function(e){return/\\S/.test(e)}],j=B(65,26),F=B(97,26),I=B(48,10),q=[].concat(j,F,I,[\"<\",\">\"]),R=[].concat(j,F,I,[\"-\",'\"',\".\",\":\",\"/\"]),Q={};G(\"filetype\",undefined,\"string\",[\"ft\"],function(e,t){if(t===undefined)return;if(e===undefined){var n=t.getOption(\"mode\");return n==\"null\"?\"\":n}var n=e==\"\"?\"null\":e;t.setOption(\"mode\",n)});var et=function(){function s(s,o,u){function l(n){var r=++t%e,o=i[r];o&&o.clear(),i[r]=s.setBookmark(n)}var a=t%e,f=i[a];if(f){var c=f.find();c&&!Ot(c,o)&&l(o)}else l(o);l(u),n=t,r=t-e+1,r<0&&(r=0)}function o(s,o){t+=o,t>n?t=n:t<r&&(t=r);var u=i[(e+t)%e];if(u&&!u.find()){var a=o>0?1:-1,f,l=s.getCursor();do{t+=a,u=i[(e+t)%e];if(u&&(f=u.find())&&!Ot(l,f))break}while(t<n&&t>r)}return u}function u(e,n){var r=t,i=o(e,n);return t=r,i&&i.find()}var e=100,t=-1,n=0,r=0,i=new Array(e);return{cachedCursor:undefined,add:s,find:u,move:o}},tt=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};nt.prototype={exitMacroRecordMode:function(){var e=it.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=undefined,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=it.registerController.getRegister(t);n&&(n.clear(),this.latestRegister=t,e.openDialog&&(this.onRecordingDone=e.openDialog(\"(recording)[\"+t+\"]\",null,{bottom:!0})),this.isRecording=!0)}};var it,ot,ut={buildKeyMap:function(){},getRegisterController:function(){return it.registerController},resetVimGlobalState_:st,getVimGlobalState_:function(){return it},maybeInitVimState_:rt,suppressErrorLogging:!1,InsertModeKey:rr,map:function(e,t,n){Wn.map(e,t,n)},unmap:function(e,t){Wn.unmap(e,t)},noremap:function(e,t,n){function r(e){return e?[e]:[\"normal\",\"insert\",\"visual\"]}var i=r(n),s=b.length,o=w;for(var u=s-o;u<s&&i.length;u++){var a=b[u];if(a.keys==t&&(!n||!a.context||a.context===n)&&a.type.substr(0,2)!==\"ex\"&&a.type.substr(0,3)!==\"key\"){var f={};for(var l in a)f[l]=a[l];f.keys=e,n&&!f.context&&(f.context=n),this._mapCommand(f);var c=r(a.context);i=i.filter(function(e){return c.indexOf(e)===-1})}}},mapclear:function(e){var t=b.length,n=w,r=b.slice(0,t-n);b=b.slice(t-n);if(e)for(var i=r.length-1;i>=0;i--){var s=r[i];if(e!==s.context)if(s.context)this._mapCommand(s);else{var o=[\"normal\",\"insert\",\"visual\"];for(var u in o)if(o[u]!==e){var a={};for(var f in s)a[f]=s[f];a.context=o[u],this._mapCommand(a)}}}},setOption:Y,getOption:Z,defineOption:G,defineEx:function(e,t,n){if(!t)t=e;else if(e.indexOf(t)!==0)throw new Error('(Vim.defineEx) \"'+t+'\" is not a prefix of \"'+e+'\", command not registered');zn[e]=n,Wn.commandMap_[t]={name:e,shortName:t,type:\"api\"}},handleKey:function(e,t,n){var r=this.findKey(e,t,n);if(typeof r==\"function\")return r()},findKey:function(e,t,n){function i(){var r=it.macroModeState;if(r.isRecording){if(t==\"q\")return r.exitMacroRecordMode(),ft(e),!0;n!=\"mapping\"&&Qn(r,t)}}function s(){if(t==\"<Esc>\")return ft(e),r.visualMode?Jt(e):r.insertMode&&Vn(e),!0}function o(n){var r;while(n)r=/<\\w+-.+?>|<\\w+>|./.exec(n),t=r[0],n=n.substring(r.index+t.length),v.Vim.handleKey(e,t,\"mapping\")}function u(){if(s())return!0;var n=r.inputState.keyBuffer=r.inputState.keyBuffer+t,i=t.length==1,o=dt.matchCommand(n,b,r.inputState,\"insert\");while(n.length>1&&o.type!=\"full\"){var n=r.inputState.keyBuffer=n.slice(1),u=dt.matchCommand(n,b,r.inputState,\"insert\");u.type!=\"none\"&&(o=u)}if(o.type==\"none\")return ft(e),!1;if(o.type==\"partial\")return ot&&window.clearTimeout(ot),ot=window.setTimeout(function(){r.insertMode&&r.inputState.keyBuffer&&ft(e)},Z(\"insertModeEscKeysTimeout\")),!i;ot&&window.clearTimeout(ot);if(i){var a=e.listSelections();for(var f=0;f<a.length;f++){var l=a[f].head;e.replaceRange(\"\",Tt(l,0,-(n.length-1)),l,\"+input\")}it.macroModeState.lastInsertModeChanges.changes.pop()}return ft(e),o.command}function a(){if(i()||s())return!0;var n=r.inputState.keyBuffer=r.inputState.keyBuffer+t;if(/^[1-9]\\d*$/.test(n))return!0;var o=/^(\\d*)(.*)$/.exec(n);if(!o)return ft(e),!1;var u=r.visualMode?\"visual\":\"normal\",a=dt.matchCommand(o[2]||o[1],b,r.inputState,u);if(a.type==\"none\")return ft(e),!1;if(a.type==\"partial\")return!0;r.inputState.keyBuffer=\"\";var o=/^(\\d*)(.*)$/.exec(n);return o[1]&&o[1]!=\"0\"&&r.inputState.pushRepeatDigit(o[1]),a.command}var r=rt(e),f;return r.insertMode?f=u():f=a(),f===!1?undefined:f===!0?function(){return!0}:function(){if((f.operator||f.isEdit)&&e.getOption(\"readOnly\"))return;return e.operation(function(){e.curOp.isVimOp=!0;try{f.type==\"keyToKey\"?o(f.toKeys):dt.processCommand(e,r,f)}catch(t){throw e.state.vim=undefined,rt(e),v.Vim.suppressErrorLogging||console.log(t),t}return!0})}},handleEx:function(e,t){Wn.processCommand(e,t)},defineMotion:mt,defineAction:Et,defineOperator:bt,mapCommand:Jn,_mapCommand:$n,defineRegister:ct,exitVisualMode:Jt,exitInsertMode:Vn};at.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},at.prototype.getRepeat=function(){var e=0;if(this.prefixRepeat.length>0||this.motionRepeat.length>0)e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(\"\"),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(\"\"),10));return e},lt.prototype={setText:function(e,t,n){this.keyBuffer=[e||\"\"],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push(\"\\n\"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(tt(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join(\"\")}},ht.prototype={pushText:function(e,t,n,r,i){r&&n.charAt(n.length-1)!==\"\\n\"&&(n+=\"\\n\");var s=this.isValidRegister(e)?this.getRegister(e):null;if(!s){switch(t){case\"yank\":this.registers[0]=new lt(n,r,i);break;case\"delete\":case\"change\":n.indexOf(\"\\n\")==-1?this.registers[\"-\"]=new lt(n,r):(this.shiftNumericRegisters_(),this.registers[1]=new lt(n,r))}this.unnamedRegister.setText(n,r,i);return}var o=V(e);o?s.pushText(n,r):s.setText(n,r,i),this.unnamedRegister.setText(s.toString(),r)},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new lt),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&K(e,R)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(\"\"+(e-1))}},pt.prototype={nextMatch:function(e,t){var n=this.historyBuffer,r=t?-1:1;this.initialPrefix===null&&(this.initialPrefix=e);for(var i=this.iterator+r;t?i>=0:i<n.length;i+=r){var s=n[i];for(var o=0;o<=s.length;o++)if(this.initialPrefix==s.substring(0,o))return this.iterator=i,s}if(i>=n.length)return this.iterator=n.length,this.initialPrefix;if(i<0)return e},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var dt={matchCommand:function(e,t,n,r){var i=Nt(e,t,r,n);if(!i.full&&!i.partial)return{type:\"none\"};if(!i.full&&i.partial)return{type:\"partial\"};var s;for(var o=0;o<i.full.length;o++){var u=i.full[o];s||(s=u)}if(s.keys.slice(-11)==\"<character>\"){var a=kt(e);if(/<C-.>/.test(a)||!a)return{type:\"none\"};n.selectedCharacter=a}return{type:\"full\",command:s}},processCommand:function(e,t,n){t.inputState.repeatOverride=n.repeatOverride;switch(n.type){case\"motion\":this.processMotion(e,t,n);break;case\"operator\":this.processOperator(e,t,n);break;case\"operatorMotion\":this.processOperatorMotion(e,t,n);break;case\"action\":this.processAction(e,t,n);break;case\"search\":this.processSearch(e,t,n);break;case\"ex\":case\"keyToEx\":this.processEx(e,t,n);break;default:}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=xt(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var r=t.inputState;if(r.operator){if(r.operator==n.operator){r.motion=\"expandToLine\",r.motionArgs={linewise:!0},this.evalInput(e,t);return}ft(e)}r.operator=n.operator,r.operatorArgs=xt(n.operatorArgs),n.exitVisualBlock&&(t.visualBlock=!1,Xt(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var r=t.visualMode,i=xt(n.operatorMotionArgs);i&&r&&i.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),r||this.processMotion(e,t,n)},processAction:function(e,t,n){var r=t.inputState,i=r.getRepeat(),s=!!i,o=xt(n.actionArgs)||{};r.selectedCharacter&&(o.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),o.repeat=i||1,o.repeatIsExplicit=s,o.registerName=r.registerName,ft(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,r,n),wt[n.action](e,o,t)},processSearch:function(e,t,n){function a(r,i,s){it.searchHistoryController.pushInput(r),it.searchHistoryController.reset();try{Dn(e,r,i,s)}catch(o){Ln(e,\"Invalid regex: \"+r),ft(e);return}dt.processMotion(e,t,{type:\"motion\",motion:\"findNext\",motionArgs:{forward:!0,toJumplist:n.searchArgs.toJumplist}})}function f(t){e.scrollTo(u.left,u.top),a(t,!0,!0);var n=it.macroModeState;n.isRecording&&Yn(n,t)}function l(t,n,i){var s=v.keyName(t),o,a;s==\"Up\"||s==\"Down\"?(o=s==\"Up\"?!0:!1,a=t.target?t.target.selectionEnd:0,n=it.searchHistoryController.nextMatch(n,o)||\"\",i(n),a&&t.target&&(t.target.selectionEnd=t.target.selectionStart=Math.min(a,t.target.value.length))):s!=\"Left\"&&s!=\"Right\"&&s!=\"Ctrl\"&&s!=\"Alt\"&&s!=\"Shift\"&&it.searchHistoryController.reset();var f;try{f=Dn(e,n,!0,!0)}catch(t){}f?e.scrollIntoView(Bn(e,!r,f),30):(jn(e),e.scrollTo(u.left,u.top))}function c(t,n,r){var i=v.keyName(t);i==\"Esc\"||i==\"Ctrl-C\"||i==\"Ctrl-[\"||i==\"Backspace\"&&n==\"\"?(it.searchHistoryController.pushInput(n),it.searchHistoryController.reset(),Dn(e,o),jn(e),e.scrollTo(u.left,u.top),v.e_stop(t),ft(e),r(),e.focus()):i==\"Up\"||i==\"Down\"?v.e_stop(t):i==\"Ctrl-U\"&&(v.e_stop(t),r(\"\"))}if(!e.getSearchCursor)return;var r=n.searchArgs.forward,i=n.searchArgs.wholeWordOnly;mn(e).setReversed(!r);var s=r?\"/\":\"?\",o=mn(e).getQuery(),u=e.getScrollInfo();switch(n.searchArgs.querySrc){case\"prompt\":var h=it.macroModeState;if(h.isPlaying){var p=h.replaySearchQueries.shift();a(p,!0,!1)}else Mn(e,{onClose:f,prefix:s,desc:On,onKeyUp:l,onKeyDown:c});break;case\"wordUnderCursor\":var d=Yt(e,!1,!0,!1,!0),m=!0;d||(d=Yt(e,!1,!0,!1,!1),m=!1);if(!d)return;var p=e.getLine(d.start.line).substring(d.start.ch,d.end.ch);m&&i?p=\"\\\\b\"+p+\"\\\\b\":p=jt(p),it.jumpList.cachedCursor=e.getCursor(),e.setCursor(d.start),a(p,!0,!1)}},processEx:function(e,t,n){function r(t){it.exCommandHistoryController.pushInput(t),it.exCommandHistoryController.reset(),Wn.processCommand(e,t)}function i(t,n,r){var i=v.keyName(t),s,o;if(i==\"Esc\"||i==\"Ctrl-C\"||i==\"Ctrl-[\"||i==\"Backspace\"&&n==\"\")it.exCommandHistoryController.pushInput(n),it.exCommandHistoryController.reset(),v.e_stop(t),ft(e),r(),e.focus();i==\"Up\"||i==\"Down\"?(v.e_stop(t),s=i==\"Up\"?!0:!1,o=t.target?t.target.selectionEnd:0,n=it.exCommandHistoryController.nextMatch(n,s)||\"\",r(n),o&&t.target&&(t.target.selectionEnd=t.target.selectionStart=Math.min(o,t.target.value.length))):i==\"Ctrl-U\"?(v.e_stop(t),r(\"\")):i!=\"Left\"&&i!=\"Right\"&&i!=\"Ctrl\"&&i!=\"Alt\"&&i!=\"Shift\"&&it.exCommandHistoryController.reset()}n.type==\"keyToEx\"?Wn.processCommand(e,n.exArgs.input):t.visualMode?Mn(e,{onClose:r,prefix:\":\",value:\"'<,'>\",onKeyDown:i,selectValueOnOpen:!1}):Mn(e,{onClose:r,prefix:\":\",onKeyDown:i})},evalInput:function(e,t){var n=t.inputState,r=n.motion,i=n.motionArgs||{},s=n.operator,o=n.operatorArgs||{},u=n.registerName,a=t.sel,f=At(t.visualMode?St(e,a.head):e.getCursor(\"head\")),l=At(t.visualMode?St(e,a.anchor):e.getCursor(\"anchor\")),c=At(f),h=At(l),p,d,v;s&&this.recordLastEdit(t,n),n.repeatOverride!==undefined?v=n.repeatOverride:v=n.getRepeat();if(v>0&&i.explicitRepeat)i.repeatIsExplicit=!0;else if(i.noRepeat||!i.explicitRepeat&&v===0)v=1,i.repeatIsExplicit=!1;n.selectedCharacter&&(i.selectedCharacter=o.selectedCharacter=n.selectedCharacter),i.repeat=v,ft(e);if(r){var m=vt[r](e,f,i,t);t.lastMotion=vt[r];if(!m)return;if(i.toJumplist){!s&&e.ace.curOp!=null&&(e.ace.curOp.command.scrollIntoView=\"center-animate\");var g=it.jumpList,y=g.cachedCursor;y?(Zt(e,y,m),delete g.cachedCursor):Zt(e,f,m)}m instanceof Array?(d=m[0],p=m[1]):p=m,p||(p=At(f));if(t.visualMode){if(!t.visualBlock||p.ch!==Infinity)p=St(e,p,t.visualBlock);d&&(d=St(e,d,!0)),d=d||h,a.anchor=d,a.head=p,Xt(e),fn(e,t,\"<\",Mt(d,p)?d:p),fn(e,t,\">\",Mt(d,p)?p:d)}else s||(p=St(e,p),e.setCursor(p.line,p.ch))}if(s){if(o.lastSel){d=h;var b=o.lastSel,w=Math.abs(b.head.line-b.anchor.line),E=Math.abs(b.head.ch-b.anchor.ch);b.visualLine?p=S(h.line+w,h.ch):b.visualBlock?p=S(h.line+w,h.ch+E):b.head.line==b.anchor.line?p=S(h.line,h.ch+E):p=S(h.line+w,h.ch),t.visualMode=!0,t.visualLine=b.visualLine,t.visualBlock=b.visualBlock,a=t.sel={anchor:d,head:p},Xt(e)}else t.visualMode&&(o.lastSel={anchor:At(a.anchor),head:At(a.head),visualBlock:t.visualBlock,visualLine:t.visualLine});var x,T,N,C,k;if(t.visualMode){x=_t(a.head,a.anchor),T=Dt(a.head,a.anchor),N=t.visualLine||o.linewise,C=t.visualBlock?\"block\":N?\"line\":\"char\",k=Vt(e,{anchor:x,head:T},C);if(N){var L=k.ranges;if(C==\"block\")for(var A=0;A<L.length;A++)L[A].head.ch=Ht(e,L[A].head.line);else C==\"line\"&&(L[0].head=S(L[0].head.line+1,0))}}else{x=At(d||h),T=At(p||c);if(Mt(T,x)){var O=x;x=T,T=O}N=i.linewise||o.linewise,N?Qt(e,x,T):i.forward&&Kt(e,x,T),C=\"char\";var M=!i.inclusive||N;k=Vt(e,{anchor:x,head:T},C,M)}e.setSelections(k.ranges,k.primary),t.lastMotion=null,o.repeat=v,o.registerName=u,o.linewise=N;var _=yt[s](e,o,k.ranges,h,p);t.visualMode&&Jt(e,_!=null),_&&e.setCursor(_)}},recordLastEdit:function(e,t,n){var r=it.macroModeState;if(r.isPlaying)return;e.lastEditInputState=t,e.lastEditActionCommand=n,r.lastInsertModeChanges.changes=[],r.lastInsertModeChanges.expectCursorActivityForChange=!1,r.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0}},vt={moveToTopLine:function(e,t,n){var r=In(e).top+n.repeat-1;return S(r,Gt(e.getLine(r)))},moveToMiddleLine:function(e){var t=In(e),n=Math.floor((t.top+t.bottom)*.5);return S(n,Gt(e.getLine(n)))},moveToBottomLine:function(e,t,n){var r=In(e).bottom-n.repeat+1;return S(r,Gt(e.getLine(r)))},expandToLine:function(e,t,n){var r=t;return S(r.line+n.repeat-1,Infinity)},findNext:function(e,t,n){var r=mn(e),i=r.getQuery();if(!i)return;var s=!n.forward;return s=r.isReversed()?!s:s,Hn(e,i),Bn(e,s,i,n.repeat)},goToMark:function(e,t,n,r){var i=qn(e,r,n.selectedCharacter);return i?n.linewise?{line:i.line,ch:Gt(e.getLine(i.line))}:i:null},moveToOtherHighlightedEnd:function(e,t,n,r){if(r.visualBlock&&n.sameLine){var i=r.sel;return[St(e,S(i.anchor.line,i.head.ch)),St(e,S(i.head.line,i.anchor.ch))]}return[r.sel.head,r.sel.anchor]},jumpToMark:function(e,t,n,r){var i=t;for(var s=0;s<n.repeat;s++){var o=i;for(var u in r.marks){if(!z(u))continue;var a=r.marks[u].find(),f=n.forward?Mt(a,o):Mt(o,a);if(f)continue;if(n.linewise&&a.line==o.line)continue;var l=Ot(o,i),c=n.forward?Pt(o,a,i):Pt(i,a,o);if(l||c)i=a}}return n.linewise&&(i=S(i.line,Gt(e.getLine(i.line)))),i},moveByCharacters:function(e,t,n){var r=t,i=n.repeat,s=n.forward?r.ch+i:r.ch-i;return S(r.line,s)},moveByLines:function(e,t,n,r){var i=t,s=i.ch;switch(r.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:s=r.lastHPos;break;default:r.lastHPos=s}var o=n.repeat+(n.repeatOffset||0),u=n.forward?i.line+o:i.line-o,a=e.firstLine(),f=e.lastLine();if(u<a&&i.line==a)return this.moveToStartOfLine(e,t,n,r);if(u>f&&i.line==f)return this.moveToEol(e,t,n,r,!0);var l=e.ace.session.getFoldLine(u);return l&&(n.forward?u>l.start.row&&(u=l.end.row+1):u=l.start.row),n.toFirstChar&&(s=Gt(e.getLine(u)),r.lastHPos=s),r.lastHSPos=e.charCoords(S(u,s),\"div\").left,S(u,s)},moveByDisplayLines:function(e,t,n,r){var i=t;switch(r.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:r.lastHSPos=e.charCoords(i,\"div\").left}var s=n.repeat,o=e.findPosV(i,n.forward?s:-s,\"line\",r.lastHSPos);if(o.hitSide)if(n.forward)var u=e.charCoords(o,\"div\"),a={top:u.top+8,left:r.lastHSPos},o=e.coordsChar(a,\"div\");else{var f=e.charCoords(S(e.firstLine(),0),\"div\");f.left=r.lastHSPos,o=e.coordsChar(f,\"div\")}return r.lastHPos=o.ch,o},moveByPage:function(e,t,n){var r=t,i=n.repeat;return e.findPosV(r,n.forward?i:-i,\"page\")},moveByParagraph:function(e,t,n){var r=n.forward?1:-1;return cn(e,t,n.repeat,r)},moveBySentence:function(e,t,n){var r=n.forward?1:-1;return hn(e,t,n.repeat,r)},moveByScroll:function(e,t,n,r){var i=e.getScrollInfo(),s=null,o=n.repeat;o||(o=i.clientHeight/(2*e.defaultTextHeight()));var u=e.charCoords(t,\"local\");n.repeat=o;var s=vt.moveByDisplayLines(e,t,n,r);if(!s)return null;var a=e.charCoords(s,\"local\");return e.scrollTo(null,i.top+a.top-u.top),s},moveByWords:function(e,t,n){return on(e,t,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,n){var r=n.repeat,i=un(e,r,n.forward,n.selectedCharacter),s=n.forward?-1:1;return en(s,n),i?(i.ch+=s,i):null},moveToCharacter:function(e,t,n){var r=n.repeat;return en(0,n),un(e,r,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,t,n){var r=n.repeat;return rn(e,r,n.forward,n.selectedCharacter)||t},moveToColumn:function(e,t,n,r){var i=n.repeat;return r.lastHPos=i-1,r.lastHSPos=e.charCoords(t,\"div\").left,an(e,i)},moveToEol:function(e,t,n,r,i){var s=t,o=S(s.line+n.repeat-1,Infinity),u=e.clipPos(o);return u.ch--,i||(r.lastHPos=Infinity,r.lastHSPos=e.charCoords(u,\"div\").left),o},moveToFirstNonWhiteSpaceCharacter:function(e,t){var n=t;return S(n.line,Gt(e.getLine(n.line)))},moveToMatchedSymbol:function(e,t){var n=t,r=n.line,i=n.ch,s=e.getLine(r),o;for(;i<s.length;i++){o=s.charAt(i);if(o&&W(o)){var u=e.getTokenTypeAt(S(r,i+1));if(u!==\"string\"&&u!==\"comment\")break}}if(i<s.length){var a=/[<>]/.test(s[i])?/[(){}[\\]<>]/:/[(){}[\\]]/,f=e.findMatchingBracket(S(r,i+1),{bracketRegex:a});return f.to}return n},moveToStartOfLine:function(e,t){return S(t.line,0)},moveToLineOrEdgeOfDocument:function(e,t,n){var r=n.forward?e.lastLine():e.firstLine();return n.repeatIsExplicit&&(r=n.repeat-e.getOption(\"firstLineNumber\")),S(r,Gt(e.getLine(r)))},textObjectManipulation:function(e,t,n,r){var i={\"(\":\")\",\")\":\"(\",\"{\":\"}\",\"}\":\"{\",\"[\":\"]\",\"]\":\"[\",\"<\":\">\",\">\":\"<\"},s={\"'\":!0,'\"':!0,\"`\":!0},o=n.selectedCharacter;o==\"b\"?o=\"(\":o==\"B\"&&(o=\"{\");var u=!n.textObjectInner,a;if(i[o])a=pn(e,t,o,u);else if(s[o])a=dn(e,t,o,u);else if(o===\"W\")a=Yt(e,u,!0,!0);else if(o===\"w\")a=Yt(e,u,!0,!1);else{if(o!==\"p\")return null;a=cn(e,t,n.repeat,0,u),n.linewise=!0;if(r.visualMode)r.visualLine||(r.visualLine=!0);else{var f=r.inputState.operatorArgs;f&&(f.linewise=!0),a.end.line--}}return e.state.vim.visualMode?Wt(e,a.start,a.end):[a.start,a.end]},repeatLastCharacterSearch:function(e,t,n){var r=it.lastCharacterSearch,i=n.repeat,s=n.forward===r.forward,o=(r.increment?1:0)*(s?-1:1);e.moveH(-o,\"char\"),n.inclusive=s?!0:!1;var u=un(e,i,s,r.selectedCharacter);return u?(u.ch+=o,u):(e.moveH(o,\"char\"),t)}},yt={change:function(e,t,n){var r,i,s=e.state.vim,o=n[0].anchor,u=n[0].head;if(!s.visualMode){i=e.getRange(o,u);var a=s.lastEditInputState||{};if(a.motion==\"moveByWords\"&&!$(i)){var f=/\\s+$/.exec(i);f&&a.motionArgs&&a.motionArgs.forward&&(u=Tt(u,0,-f[0].length),i=i.slice(0,-f[0].length))}var l=new S(o.line-1,Number.MAX_VALUE),c=e.firstLine()==e.lastLine();u.line>e.lastLine()&&t.linewise&&!c?e.replaceRange(\"\",l,u):e.replaceRange(\"\",o,u),t.linewise&&(c||(e.setCursor(l),v.commands.newlineAndIndent(e)),o.ch=Number.MAX_VALUE),r=o}else if(t.fullLine)u.ch=Number.MAX_VALUE,u.line--,e.setSelection(o,u),i=e.getSelection(),e.replaceSelection(\"\"),r=o;else{i=e.getSelection();var h=gt(\"\",n.length);e.replaceSelections(h),r=_t(n[0].head,n[0].anchor)}it.registerController.pushText(t.registerName,\"change\",i,t.linewise,n.length>1),wt.enterInsertMode(e,{head:r},e.state.vim)},\"delete\":function(e,t,n){var r,i,s=e.state.vim;if(!s.visualBlock){var o=n[0].anchor,u=n[0].head;t.linewise&&u.line!=e.firstLine()&&o.line==e.lastLine()&&o.line==u.line-1&&(o.line==e.firstLine()?o.ch=0:o=S(o.line-1,Ht(e,o.line-1))),i=e.getRange(o,u),e.replaceRange(\"\",o,u),r=o,t.linewise&&(r=vt.moveToFirstNonWhiteSpaceCharacter(e,o))}else{i=e.getSelection();var a=gt(\"\",n.length);e.replaceSelections(a),r=n[0].anchor}it.registerController.pushText(t.registerName,\"delete\",i,t.linewise,s.visualBlock);var f=s.insertMode;return St(e,r,f)},indent:function(e,t,n){var r=e.state.vim,i=n[0].anchor.line,s=r.visualBlock?n[n.length-1].anchor.line:n[0].head.line,o=r.visualMode?t.repeat:1;t.linewise&&s--;for(var u=i;u<=s;u++)for(var a=0;a<o;a++)e.indentLine(u,t.indentRight);return vt.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},indentAuto:function(e,t,n){return e.execCommand(\"indentAuto\"),vt.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},changeCase:function(e,t,n,r,i){var s=e.getSelections(),o=[],u=t.toLower;for(var a=0;a<s.length;a++){var f=s[a],l=\"\";if(u===!0)l=f.toLowerCase();else if(u===!1)l=f.toUpperCase();else for(var c=0;c<f.length;c++){var h=f.charAt(c);l+=V(h)?h.toLowerCase():h.toUpperCase()}o.push(l)}return e.replaceSelections(o),t.shouldMoveCursor?i:!e.state.vim.visualMode&&t.linewise&&n[0].anchor.line+1==n[0].head.line?vt.moveToFirstNonWhiteSpaceCharacter(e,r):t.linewise?r:_t(n[0].anchor,n[0].head)},yank:function(e,t,n,r){var i=e.state.vim,s=e.getSelection(),o=i.visualMode?_t(i.sel.anchor,i.sel.head,n[0].head,n[0].anchor):r;return it.registerController.pushText(t.registerName,\"yank\",s,t.linewise,i.visualBlock),o}},wt={jumpListWalk:function(e,t,n){if(n.visualMode)return;var r=t.repeat,i=t.forward,s=it.jumpList,o=s.move(e,i?r:-r),u=o?o.find():undefined;u=u?u:e.getCursor(),e.setCursor(u),e.ace.curOp.command.scrollIntoView=\"center-animate\"},scroll:function(e,t,n){if(n.visualMode)return;var r=t.repeat||1,i=e.defaultTextHeight(),s=e.getScrollInfo().top,o=i*r,u=t.forward?s+o:s-o,a=At(e.getCursor()),f=e.charCoords(a,\"local\");if(t.forward)u>f.top?(a.line+=(u-f.top)/i,a.line=Math.ceil(a.line),e.setCursor(a),f=e.charCoords(a,\"local\"),e.scrollTo(null,f.top)):e.scrollTo(null,u);else{var l=u+e.getScrollInfo().clientHeight;l<f.bottom?(a.line-=(f.bottom-l)/i,a.line=Math.floor(a.line),e.setCursor(a),f=e.charCoords(a,\"local\"),e.scrollTo(null,f.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,u)}},scrollToCursor:function(e,t){var n=e.getCursor().line,r=e.charCoords(S(n,0),\"local\"),i=e.getScrollInfo().clientHeight,s=r.top,o=r.bottom-s;switch(t.position){case\"center\":s=s-i/2+o;break;case\"bottom\":s=s-i+o}e.scrollTo(null,s)},replayMacro:function(e,t,n){var r=t.selectedCharacter,i=t.repeat,s=it.macroModeState;r==\"@\"?r=s.latestRegister:s.latestRegister=r;while(i--)Kn(e,n,s,r)},enterMacroRecordMode:function(e,t){var n=it.macroModeState,r=t.selectedCharacter;it.registerController.isValidRegister(r)&&n.enterMacroRecordMode(e,r)},toggleOverwrite:function(e){e.state.overwrite?(e.toggleOverwrite(!1),e.setOption(\"keyMap\",\"vim-insert\"),v.signal(e,\"vim-mode-change\",{mode:\"insert\"})):(e.toggleOverwrite(!0),e.setOption(\"keyMap\",\"vim-replace\"),v.signal(e,\"vim-mode-change\",{mode:\"replace\"}))},enterInsertMode:function(e,t,n){if(e.getOption(\"readOnly\"))return;n.insertMode=!0,n.insertModeRepeat=t&&t.repeat||1;var r=t?t.insertAt:null,i=n.sel,s=t.head||e.getCursor(\"head\"),o=e.listSelections().length;if(r==\"eol\")s=S(s.line,Ht(e,s.line));else if(r==\"bol\")s=S(s.line,0);else if(r==\"charAfter\")s=Tt(s,0,1);else if(r==\"firstNonBlank\")s=vt.moveToFirstNonWhiteSpaceCharacter(e,s);else if(r==\"startOfSelectedArea\"){if(!n.visualMode)return;n.visualBlock?(s=S(Math.min(i.head.line,i.anchor.line),Math.min(i.head.ch,i.anchor.ch)),o=Math.abs(i.head.line-i.anchor.line)+1):i.head.line<i.anchor.line?s=i.head:s=S(i.anchor.line,0)}else if(r==\"endOfSelectedArea\"){if(!n.visualMode)return;n.visualBlock?(s=S(Math.min(i.head.line,i.anchor.line),Math.max(i.head.ch+1,i.anchor.ch)),o=Math.abs(i.head.line-i.anchor.line)+1):i.head.line>=i.anchor.line?s=Tt(i.head,0,1):s=S(i.anchor.line,0)}else if(r==\"inplace\"){if(n.visualMode)return}else r==\"lastEdit\"&&(s=Rn(e)||s);e.setOption(\"disableInput\",!1),t&&t.replace?(e.toggleOverwrite(!0),e.setOption(\"keyMap\",\"vim-replace\"),v.signal(e,\"vim-mode-change\",{mode:\"replace\"})):(e.toggleOverwrite(!1),e.setOption(\"keyMap\",\"vim-insert\"),v.signal(e,\"vim-mode-change\",{mode:\"insert\"})),it.macroModeState.isPlaying||(e.on(\"change\",Zn),v.on(e.getInputField(),\"keydown\",ir)),n.visualMode&&Jt(e),qt(e,s,o)},toggleVisualMode:function(e,t,n){var r=t.repeat,i=e.getCursor(),s;n.visualMode?n.visualLine^t.linewise||n.visualBlock^t.blockwise?(n.visualLine=!!t.linewise,n.visualBlock=!!t.blockwise,v.signal(e,\"vim-mode-change\",{mode:\"visual\",subMode:n.visualLine?\"linewise\":n.visualBlock?\"blockwise\":\"\"}),Xt(e)):Jt(e):(n.visualMode=!0,n.visualLine=!!t.linewise,n.visualBlock=!!t.blockwise,s=St(e,S(i.line,i.ch+r-1),!0),n.sel={anchor:i,head:s},v.signal(e,\"vim-mode-change\",{mode:\"visual\",subMode:n.visualLine?\"linewise\":n.visualBlock?\"blockwise\":\"\"}),Xt(e),fn(e,n,\"<\",_t(i,s)),fn(e,n,\">\",Dt(i,s)))},reselectLastSelection:function(e,t,n){var r=n.lastSelection;n.visualMode&&zt(e,n);if(r){var i=r.anchorMark.find(),s=r.headMark.find();if(!i||!s)return;n.sel={anchor:i,head:s},n.visualMode=!0,n.visualLine=r.visualLine,n.visualBlock=r.visualBlock,Xt(e),fn(e,n,\"<\",_t(i,s)),fn(e,n,\">\",Dt(i,s)),v.signal(e,\"vim-mode-change\",{mode:\"visual\",subMode:n.visualLine?\"linewise\":n.visualBlock?\"blockwise\":\"\"})}},joinLines:function(e,t,n){var r,i;if(n.visualMode){r=e.getCursor(\"anchor\"),i=e.getCursor(\"head\");if(Mt(i,r)){var s=i;i=r,r=s}i.ch=Ht(e,i.line)-1}else{var o=Math.max(t.repeat,2);r=e.getCursor(),i=St(e,S(r.line+o-1,Infinity))}var u=0;for(var a=r.line;a<i.line;a++){u=Ht(e,r.line);var s=S(r.line+1,Ht(e,r.line+1)),f=e.getRange(r,s);f=t.keepSpaces?f.replace(/\\n\\r?/g,\"\"):f.replace(/\\n\\s*/g,\" \"),e.replaceRange(f,r,s)}var l=S(r.line,u);n.visualMode&&Jt(e,!1),e.setCursor(l)},newLineAndEnterInsertMode:function(e,t,n){n.insertMode=!0;var r=At(e.getCursor());if(r.line===e.firstLine()&&!t.after)e.replaceRange(\"\\n\",S(e.firstLine(),0)),e.setCursor(e.firstLine(),0);else{r.line=t.after?r.line:r.line-1,r.ch=Ht(e,r.line),e.setCursor(r);var i=v.commands.newlineAndIndentContinueComment||v.commands.newlineAndIndent;i(e)}this.enterInsertMode(e,{repeat:t.repeat},n)},paste:function(e,t,n){var r=At(e.getCursor()),i=it.registerController.getRegister(t.registerName),s=i.toString();if(!s)return;if(t.matchIndent){var o=e.getOption(\"tabSize\"),u=function(e){var t=e.split(\"\t\").length-1,n=e.split(\" \").length-1;return t*o+n*1},a=e.getLine(e.getCursor().line),f=u(a.match(/^\\s*/)[0]),l=s.replace(/\\n$/,\"\"),c=s!==l,h=u(s.match(/^\\s*/)[0]),s=l.replace(/^\\s*/gm,function(t){var n=f+(u(t)-h);if(n<0)return\"\";if(e.getOption(\"indentWithTabs\")){var r=Math.floor(n/o);return Array(r+1).join(\"\t\")}return Array(n+1).join(\" \")});s+=c?\"\\n\":\"\"}if(t.repeat>1)var s=Array(t.repeat+1).join(s);var p=i.linewise,d=i.blockwise;if(d){s=s.split(\"\\n\"),p&&s.pop();for(var v=0;v<s.length;v++)s[v]=s[v]==\"\"?\" \":s[v];r.ch+=t.after?1:0,r.ch=Math.min(Ht(e,r.line),r.ch)}else p?n.visualMode?s=n.visualLine?s.slice(0,-1):\"\\n\"+s.slice(0,s.length-1)+\"\\n\":t.after?(s=\"\\n\"+s.slice(0,s.length-1),r.ch=Ht(e,r.line)):r.ch=0:r.ch+=t.after?1:0;var m,g;if(n.visualMode){n.lastPastedText=s;var y,b=Ut(e,n),w=b[0],E=b[1],x=e.getSelection(),T=e.listSelections(),N=(new Array(T.length)).join(\"1\").split(\"1\");n.lastSelection&&(y=n.lastSelection.headMark.find()),it.registerController.unnamedRegister.setText(x),d?(e.replaceSelections(N),E=S(w.line+s.length-1,w.ch),e.setCursor(w),It(e,E),e.replaceSelections(s),m=w):n.visualBlock?(e.replaceSelections(N),e.setCursor(w),e.replaceRange(s,w,w),m=w):(e.replaceRange(s,w,E),m=e.posFromIndex(e.indexFromPos(w)+s.length-1)),y&&(n.lastSelection.headMark=e.setBookmark(y)),p&&(m.ch=0)}else if(d){e.setCursor(r);for(var v=0;v<s.length;v++){var C=r.line+v;C>e.lastLine()&&e.replaceRange(\"\\n\",S(C,0));var k=Ht(e,C);k<r.ch&&Ft(e,C,r.ch)}e.setCursor(r),It(e,S(r.line+s.length-1,r.ch)),e.replaceSelections(s),m=r}else e.replaceRange(s,r),p&&t.after?m=S(r.line+1,Gt(e.getLine(r.line+1))):p&&!t.after?m=S(r.line,Gt(e.getLine(r.line))):!p&&t.after?(g=e.indexFromPos(r),m=e.posFromIndex(g+s.length-1)):(g=e.indexFromPos(r),m=e.posFromIndex(g+s.length));n.visualMode&&Jt(e,!1),e.setCursor(m)},undo:function(e,t){e.operation(function(){Lt(e,v.commands.undo,t.repeat)(),e.setCursor(e.getCursor(\"anchor\"))})},redo:function(e,t){Lt(e,v.commands.redo,t.repeat)()},setRegister:function(e,t,n){n.inputState.registerName=t.selectedCharacter},setMark:function(e,t,n){var r=t.selectedCharacter;fn(e,n,r,e.getCursor())},replace:function(e,t,n){var r=t.selectedCharacter,i=e.getCursor(),s,o,u=e.listSelections();if(n.visualMode)i=e.getCursor(\"start\"),o=e.getCursor(\"end\");else{var a=e.getLine(i.line);s=i.ch+t.repeat,s>a.length&&(s=a.length),o=S(i.line,s)}if(r==\"\\n\")n.visualMode||e.replaceRange(\"\",i,o),(v.commands.newlineAndIndentContinueComment||v.commands.newlineAndIndent)(e);else{var f=e.getRange(i,o);f=f.replace(/[^\\n]/g,r);if(n.visualBlock){var l=(new Array(e.getOption(\"tabSize\")+1)).join(\" \");f=e.getSelection(),f=f.replace(/\\t/g,l).replace(/[^\\n]/g,r).split(\"\\n\"),e.replaceSelections(f)}else e.replaceRange(f,i,o);n.visualMode?(i=Mt(u[0].anchor,u[0].head)?u[0].anchor:u[0].head,e.setCursor(i),Jt(e,!1)):e.setCursor(Tt(o,0,-1))}},incrementNumberToken:function(e,t){var n=e.getCursor(),r=e.getLine(n.line),i=/(-?)(?:(0x)([\\da-f]+)|(0b|0|)(\\d+))/gi,s,o,u,a;while((s=i.exec(r))!==null){o=s.index,u=o+s[0].length;if(n.ch<u)break}if(!t.backtrack&&u<=n.ch)return;if(!s)return;var f=s[2]||s[4],l=s[3]||s[5],c=t.increase?1:-1,h={\"0b\":2,0:8,\"\":10,\"0x\":16}[f.toLowerCase()],p=parseInt(s[1]+l,h)+c*t.repeat;a=p.toString(h);var d=f?(new Array(l.length-a.length+1+s[1].length)).join(\"0\"):\"\";a.charAt(0)===\"-\"?a=\"-\"+f+d+a.substr(1):a=f+d+a;var v=S(n.line,o),m=S(n.line,u);e.replaceRange(a,v,m),e.setCursor(S(n.line,o+a.length-1))},repeatLastEdit:function(e,t,n){var r=n.lastEditInputState;if(!r)return;var i=t.repeat;i&&t.repeatIsExplicit?n.lastEditInputState.repeatOverride=i:i=n.lastEditInputState.repeatOverride||i,sr(e,n,i,!1)},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:Vn},tn={\"(\":\"bracket\",\")\":\"bracket\",\"{\":\"bracket\",\"}\":\"bracket\",\"[\":\"section\",\"]\":\"section\",\"*\":\"comment\",\"/\":\"comment\",m:\"method\",M:\"method\",\"#\":\"preprocess\"},nn={bracket:{isComplete:function(e){if(e.nextCh===e.symb){e.depth++;if(e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?\"]\":\"[\")===e.symb?\"{\":\"}\"},isComplete:function(e){return e.index===0&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t=e.lastCh===\"*\"&&e.nextCh===\"/\";return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb=e.symb===\"m\"?\"{\":\"}\",e.reverseSymb=e.symb===\"{\"?\"}\":\"{\"},isComplete:function(e){return e.nextCh===e.symb?!0:!1}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if(e.nextCh===\"#\"){var t=e.lineText.match(/#(\\w+)/)[1];if(t===\"endif\"){if(e.forward&&e.depth===0)return!0;e.depth++}else if(t===\"if\"){if(!e.forward&&e.depth===0)return!0;e.depth--}if(t===\"else\"&&e.depth===0)return!0}return!1}}};G(\"pcre\",!0,\"boolean\"),vn.prototype={getQuery:function(){return it.query},setQuery:function(e){it.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return it.isReversed},setReversed:function(e){it.isReversed=e},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(e){this.annotate=e}};var xn={\"\\\\n\":\"\\n\",\"\\\\r\":\"\\r\",\"\\\\t\":\"\t\"},Nn={\"\\\\/\":\"/\",\"\\\\\\\\\":\"\\\\\",\"\\\\n\":\"\\n\",\"\\\\r\":\"\\r\",\"\\\\t\":\"\t\"},On=\"(Javascript regexp)\",Un=function(){this.buildCommandMap_()};Un.prototype={processCommand:function(e,t,n){var r=this;e.operation(function(){e.curOp.isVimOp=!0,r._processCommand(e,t,n)})},_processCommand:function(e,t,n){var r=e.state.vim,i=it.registerController.getRegister(\":\"),s=i.toString();r.visualMode&&Jt(e);var o=new v.StringStream(t);i.setText(t);var u=n||{};u.input=t;try{this.parseInput_(e,o,u)}catch(a){throw Ln(e,a),a}var f,l;if(!u.commandName)u.line!==undefined&&(l=\"move\");else{f=this.matchCommand_(u.commandName);if(f){l=f.name,f.excludeFromCommandHistory&&i.setText(s),this.parseCommandArgs_(o,u,f);if(f.type==\"exToKey\"){for(var c=0;c<f.toKeys.length;c++)v.Vim.handleKey(e,f.toKeys[c],\"mapping\");return}if(f.type==\"exToEx\"){this.processCommand(e,f.toInput);return}}}if(!l){Ln(e,'Not an editor command \":'+t+'\"');return}try{zn[l](e,u),(!f||!f.possiblyAsync)&&u.callback&&u.callback()}catch(a){throw Ln(e,a),a}},parseInput_:function(e,t,n){t.eatWhile(\":\"),t.eat(\"%\")?(n.line=e.firstLine(),n.lineEnd=e.lastLine()):(n.line=this.parseLineSpec_(e,t),n.line!==undefined&&t.eat(\",\")&&(n.lineEnd=this.parseLineSpec_(e,t)));var r=t.match(/^(\\w+)/);return r?n.commandName=r[1]:n.commandName=t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case\".\":return this.parseLineSpecOffset_(t,e.getCursor().line);case\"$\":return this.parseLineSpecOffset_(t,e.lastLine());case\"'\":var r=t.next(),i=qn(e,e.state.vim,r);if(!i)throw new Error(\"Mark not set\");return this.parseLineSpecOffset_(t,i.line);case\"-\":case\"+\":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return t.backUp(1),undefined}},parseLineSpecOffset_:function(e,t){var n=e.match(/^([+-])?(\\d+)/);if(n){var r=parseInt(n[2],10);n[1]==\"-\"?t-=r:t+=r}return t},parseCommandArgs_:function(e,t,n){if(e.eol())return;t.argString=e.match(/.*/)[0];var r=n.argDelimiter||/\\s+/,i=Bt(t.argString).split(r);i.length&&i[0]&&(t.args=i)},matchCommand_:function(e){for(var t=e.length;t>0;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var r=this.commandMap_[n];if(r.name.indexOf(e)===0)return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e<E.length;e++){var t=E[e],n=t.shortName||t.name;this.commandMap_[n]=t}},map:function(e,t,n){if(e!=\":\"&&e.charAt(0)==\":\"){if(n)throw Error(\"Mode not supported for ex mappings\");var r=e.substring(1);t!=\":\"&&t.charAt(0)==\":\"?this.commandMap_[r]={name:r,type:\"exToEx\",toInput:t.substring(1),user:!0}:this.commandMap_[r]={name:r,type:\"exToKey\",toKeys:t,user:!0}}else if(t!=\":\"&&t.charAt(0)==\":\"){var i={keys:e,type:\"keyToEx\",exArgs:{input:t.substring(1)}};n&&(i.context=n),b.unshift(i)}else{var i={keys:e,type:\"keyToKey\",toKeys:t};n&&(i.context=n),b.unshift(i)}},unmap:function(e,t){if(e!=\":\"&&e.charAt(0)==\":\"){if(t)throw Error(\"Mode not supported for ex mappings\");var n=e.substring(1);if(this.commandMap_[n]&&this.commandMap_[n].user){delete this.commandMap_[n];return}}else{var r=e;for(var i=0;i<b.length;i++)if(r==b[i].keys&&b[i].context===t){b.splice(i,1);return}}}};var zn={colorscheme:function(e,t){if(!t.args||t.args.length<1){Ln(e,e.getOption(\"theme\"));return}e.setOption(\"theme\",t.args[0])},map:function(e,t,n){var r=t.args;if(!r||r.length<2){e&&Ln(e,\"Invalid mapping: \"+t.input);return}Wn.map(r[0],r[1],n)},imap:function(e,t){this.map(e,t,\"insert\")},nmap:function(e,t){this.map(e,t,\"normal\")},vmap:function(e,t){this.map(e,t,\"visual\")},unmap:function(e,t,n){var r=t.args;if(!r||r.length<1){e&&Ln(e,\"No such mapping: \"+t.input);return}Wn.unmap(r[0],n)},move:function(e,t){dt.processCommand(e,e.state.vim,{type:\"motion\",motion:\"moveToLineOrEdgeOfDocument\",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var n=t.args,r=t.setCfg||{};if(!n||n.length<1){e&&Ln(e,\"Invalid mapping: \"+t.input);return}var i=n[0].split(\"=\"),s=i[0],o=i[1],u=!1;if(s.charAt(s.length-1)==\"?\"){if(o)throw Error(\"Trailing characters: \"+t.argString);s=s.substring(0,s.length-1),u=!0}o===undefined&&s.substring(0,2)==\"no\"&&(s=s.substring(2),o=!1);var a=Q[s]&&Q[s].type==\"boolean\";a&&o==undefined&&(o=!0);if(!a&&o===undefined||u){var f=Z(s,e,r);f instanceof Error?Ln(e,f.message):f===!0||f===!1?Ln(e,\" \"+(f?\"\":\"no\")+s):Ln(e,\"  \"+s+\"=\"+f)}else{var l=Y(s,o,e,r);l instanceof Error&&Ln(e,l.message)}},setlocal:function(e,t){t.setCfg={scope:\"local\"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:\"global\"},this.set(e,t)},registers:function(e,t){var n=t.args,r=it.registerController.registers,i=\"----------Registers----------<br><br>\";if(!n)for(var s in r){var o=r[s].toString();o.length&&(i+='\"'+s+\"    \"+o+\"<br>\")}else{var s;n=n.join(\"\");for(var u=0;u<n.length;u++){s=n.charAt(u);if(!it.registerController.isValidRegister(s))continue;var a=r[s]||new lt;i+='\"'+s+\"    \"+a.toString()+\"<br>\"}}Ln(e,i)},sort:function(e,t){function u(){if(t.argString){var e=new v.StringStream(t.argString);e.eat(\"!\")&&(n=!0);if(e.eol())return;if(!e.eatSpace())return\"Invalid arguments\";var u=e.match(/([dinuox]+)?\\s*(\\/.+\\/)?\\s*/);if(!u&&!e.eol())return\"Invalid arguments\";if(u[1]){r=u[1].indexOf(\"i\")!=-1,i=u[1].indexOf(\"u\")!=-1;var a=u[1].indexOf(\"d\")!=-1||u[1].indexOf(\"n\")!=-1&&1,f=u[1].indexOf(\"x\")!=-1&&1,l=u[1].indexOf(\"o\")!=-1&&1;if(a+f+l>1)return\"Invalid arguments\";s=a&&\"decimal\"||f&&\"hex\"||l&&\"octal\"}u[2]&&(o=new RegExp(u[2].substr(1,u[2].length-2),r?\"i\":\"\"))}}function E(e,t){if(n){var i;i=e,e=t,t=i}r&&(e=e.toLowerCase(),t=t.toLowerCase());var o=s&&d.exec(e),u=s&&d.exec(t);return o?(o=parseInt((o[1]+o[2]).toLowerCase(),m),u=parseInt((u[1]+u[2]).toLowerCase(),m),o-u):e<t?-1:1}function x(e,t){if(n){var i;i=e,e=t,t=i}return r&&(e[0]=e[0].toLowerCase(),t[0]=t[0].toLowerCase()),e[0]<t[0]?-1:1}var n,r,i,s,o,a=u();if(a){Ln(e,a+\": \"+t.argString);return}var f=t.line||e.firstLine(),l=t.lineEnd||t.line||e.lastLine();if(f==l)return;var c=S(f,0),h=S(l,Ht(e,l)),p=e.getRange(c,h).split(\"\\n\"),d=o?o:s==\"decimal\"?/(-?)([\\d]+)/:s==\"hex\"?/(-?)(?:0x)?([0-9a-f]+)/i:s==\"octal\"?/([0-7]+)/:null,m=s==\"decimal\"?10:s==\"hex\"?16:s==\"octal\"?8:null,g=[],y=[];if(s||o)for(var b=0;b<p.length;b++){var w=o?p[b].match(o):null;w&&w[0]!=\"\"?g.push(w):!o&&d.exec(p[b])?g.push(p[b]):y.push(p[b])}else y=p;g.sort(o?x:E);if(o)for(var b=0;b<g.length;b++)g[b]=g[b].input;else s||y.sort(E);p=n?g.concat(y):y.concat(g);if(i){var T=p,N;p=[];for(var b=0;b<T.length;b++)T[b]!=N&&p.push(T[b]),N=T[b]}e.replaceRange(p.join(\"\\n\"),c,h)},global:function(e,t){var n=t.argString;if(!n){Ln(e,\"Regular Expression missing from global\");return}var r=t.line!==undefined?t.line:e.firstLine(),i=t.lineEnd||t.line||e.lastLine(),s=yn(n),o=n,u;s.length&&(o=s[0],u=s.slice(1,s.length).join(\"/\"));if(o)try{Dn(e,o,!0,!0)}catch(a){Ln(e,\"Invalid regex: \"+o);return}var f=mn(e).getQuery(),l=[],c=\"\";for(var h=r;h<=i;h++){var p=f.test(e.getLine(h));p&&(l.push(h+1),c+=e.getLine(h)+\"<br>\")}if(!u){Ln(e,c);return}var d=0,v=function(){if(d<l.length){var t=l[d]+u;Wn.processCommand(e,t,{callback:v})}d++};v()},substitute:function(e,t){if(!e.getSearchCursor)throw new Error(\"Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.\");var n=t.argString,r=n?wn(n,n[0]):[],i,s=\"\",o,u,a,f=!1,l=!1;if(r.length)i=r[0],Z(\"pcre\")&&i!==\"\"&&(i=(new RegExp(i)).source),s=r[1],i&&i[i.length-1]===\"$\"&&(i=i.slice(0,i.length-1)+\"\\\\n\",s=s?s+\"\\n\":\"\\n\"),s!==undefined&&(Z(\"pcre\")?s=Cn(s.replace(/([^\\\\])&/g,\"$1$$&\")):s=Tn(s),it.lastSubstituteReplacePart=s),o=r[2]?r[2].split(\" \"):[];else if(n&&n.length){Ln(e,\"Substitutions should be of the form :s/pattern/replace/\");return}o&&(u=o[0],a=parseInt(o[1]),u&&(u.indexOf(\"c\")!=-1&&(f=!0,u.replace(\"c\",\"\")),u.indexOf(\"g\")!=-1&&(l=!0,u.replace(\"g\",\"\")),Z(\"pcre\")?i=i+\"/\"+u:i=i.replace(/\\//g,\"\\\\/\")+\"/\"+u));if(i)try{Dn(e,i,!0,!0)}catch(c){Ln(e,\"Invalid regex: \"+i);return}s=s||it.lastSubstituteReplacePart;if(s===undefined){Ln(e,\"No previous substitute regular expression\");return}var h=mn(e),p=h.getQuery(),d=t.line!==undefined?t.line:e.getCursor().line,v=t.lineEnd||d;d==e.firstLine()&&v==e.lastLine()&&(v=Infinity),a&&(d=v,v=d+a-1);var m=St(e,S(d,0)),g=e.getSearchCursor(p,m);Xn(e,f,l,d,v,g,p,s,t.callback)},redo:v.commands.redo,undo:v.commands.undo,write:function(e){v.commands.save?v.commands.save(e):e.save&&e.save()},nohlsearch:function(e){jn(e)},yank:function(e){var t=At(e.getCursor()),n=t.line,r=e.getLine(n);it.registerController.pushText(\"0\",\"yank\",r,!0,!0)},delmarks:function(e,t){if(!t.argString||!Bt(t.argString)){Ln(e,\"Argument required\");return}var n=e.state.vim,r=new v.StringStream(Bt(t.argString));while(!r.eol()){r.eatSpace();var i=r.pos;if(!r.match(/[a-zA-Z]/,!1)){Ln(e,\"Invalid argument: \"+t.argString.substring(i));return}var s=r.next();if(r.match(\"-\",!0)){if(!r.match(/[a-zA-Z]/,!1)){Ln(e,\"Invalid argument: \"+t.argString.substring(i));return}var o=s,u=r.next();if(!(z(o)&&z(u)||V(o)&&V(u))){Ln(e,\"Invalid argument: \"+o+\"-\");return}var a=o.charCodeAt(0),f=u.charCodeAt(0);if(a>=f){Ln(e,\"Invalid argument: \"+t.argString.substring(i));return}for(var l=0;l<=f-a;l++){var c=String.fromCharCode(a+l);delete n.marks[c]}}else delete n.marks[s]}}},Wn=new Un;v.keyMap.vim={attach:k,detach:C,call:L},G(\"insertModeEscKeysTimeout\",200,\"number\"),v.keyMap[\"vim-insert\"]={fallthrough:[\"default\"],attach:k,detach:C,call:L},v.keyMap[\"vim-replace\"]={Backspace:\"goCharLeft\",fallthrough:[\"vim-insert\"],attach:k,detach:C,call:L},st(),v.Vim=x(),x=v.Vim;var ur={\"return\":\"CR\",backspace:\"BS\",\"delete\":\"Del\",esc:\"Esc\",left:\"Left\",right:\"Right\",up:\"Up\",down:\"Down\",space:\"Space\",home:\"Home\",end:\"End\",pageup:\"PageUp\",pagedown:\"PageDown\",enter:\"CR\"},fr=x.handleKey.bind(x);x.handleKey=function(e,t,n){return e.operation(function(){return fr(e,t,n)},!0)},t.CodeMirror=v;var hr=x.maybeInitVimState_;t.handler={$id:\"ace/keyboard/vim\",drawCursor:function(e,t,n,r,s){var u=this.state.vim||{},a=n.characterWidth,f=n.lineHeight,l=t.top,c=t.left;if(!u.insertMode){var h=r.cursor?i.comparePoints(r.cursor,r.start)<=0:s.selection.isBackwards()||s.selection.isEmpty();!h&&c>a&&(c-=a)}!u.insertMode&&u.status&&(f/=2,l+=f),o.translate(e,c,l),o.setStyle(e.style,\"width\",a+\"px\"),o.setStyle(e.style,\"height\",f+\"px\")},handleKeyboard:function(e,t,n,r,i){var s=e.editor,o=s.state.cm,u=hr(o);if(r==-1)return;u.insertMode||(t==-1?(n.charCodeAt(0)>255&&e.inputKey&&(n=e.inputKey,n&&e.inputHash==4&&(n=n.toUpperCase())),e.inputChar=n):t==4||t==0?e.inputKey==n&&e.inputHash==t&&e.inputChar?(n=e.inputChar,t=-1):(e.inputChar=null,e.inputKey=n,e.inputHash=t):e.inputChar=e.inputKey=null);if(n==\"c\"&&t==1&&!c.isMac&&s.getCopyText())return s.once(\"copy\",function(){s.selection.clearSelection()}),{command:\"null\",passEvent:!0};if(n==\"esc\"&&!u.insertMode&&!u.visualMode&&!o.ace.inMultiSelectMode){var a=mn(o),f=a.getOverlay();f&&o.removeOverlay(f)}if(t==-1||t&1||t===0&&n.length>1){var l=u.insertMode,h=ar(t,n,i||{});u.status==null&&(u.status=\"\");var p=cr(o,h,\"user\");u=hr(o),p&&u.status!=null?u.status+=h:u.status==null&&(u.status=\"\"),o._signal(\"changeStatus\");if(!p&&(t!=-1||l))return;return{command:\"null\",passEvent:!p}}},attach:function(e){function n(){var n=hr(t).insertMode;t.ace.renderer.setStyle(\"normal-mode\",!n),e.textInput.setCommandMode(!n),e.renderer.$keepTextAreaAtCursor=n,e.renderer.$blockCursor=!n}e.state||(e.state={});var t=new v(e);e.state.cm=t,e.$vimModeHandler=this,v.keyMap.vim.attach(t),hr(t).status=null,t.on(\"vim-command-done\",function(){if(t.virtualSelectionMode())return;hr(t).status=null,t.ace._signal(\"changeStatus\"),t.ace.session.markUndoGroup()}),t.on(\"changeStatus\",function(){t.ace.renderer.updateCursor(),t.ace._signal(\"changeStatus\")}),t.on(\"vim-mode-change\",function(){if(t.virtualSelectionMode())return;n(),t._signal(\"changeStatus\")}),n(),e.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(t)},detach:function(e){var t=e.state.cm;v.keyMap.vim.detach(t),t.destroy(),e.state.cm=null,e.$vimModeHandler=null,e.renderer.$cursorLayer.drawCursor=null,e.renderer.setStyle(\"normal-mode\",!1),e.textInput.setCommandMode(!1),e.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(e){var t=e.state.cm,n=hr(t);if(n.insertMode)return\"INSERT\";var r=\"\";return n.visualMode&&(r+=\"VISUAL\",n.visualLine&&(r+=\" LINE\"),n.visualBlock&&(r+=\" BLOCK\")),n.status&&(r+=(r?\" \":\"\")+n.status),r}},x.defineOption({name:\"wrap\",set:function(e,t){t&&t.ace.setOption(\"wrap\",e)},type:\"boolean\"},!1),x.defineEx(\"write\",\"w\",function(){console.log(\":write is not implemented\")}),b.push({keys:\"zc\",type:\"action\",action:\"fold\",actionArgs:{open:!1}},{keys:\"zC\",type:\"action\",action:\"fold\",actionArgs:{open:!1,all:!0}},{keys:\"zo\",type:\"action\",action:\"fold\",actionArgs:{open:!0}},{keys:\"zO\",type:\"action\",action:\"fold\",actionArgs:{open:!0,all:!0}},{keys:\"za\",type:\"action\",action:\"fold\",actionArgs:{toggle:!0}},{keys:\"zA\",type:\"action\",action:\"fold\",actionArgs:{toggle:!0,all:!0}},{keys:\"zf\",type:\"action\",action:\"fold\",actionArgs:{open:!0,all:!0}},{keys:\"zd\",type:\"action\",action:\"fold\",actionArgs:{open:!0,all:!0}},{keys:\"<C-A-k>\",type:\"action\",action:\"aceCommand\",actionArgs:{name:\"addCursorAbove\"}},{keys:\"<C-A-j>\",type:\"action\",action:\"aceCommand\",actionArgs:{name:\"addCursorBelow\"}},{keys:\"<C-A-S-k>\",type:\"action\",action:\"aceCommand\",actionArgs:{name:\"addCursorAboveSkipCurrent\"}},{keys:\"<C-A-S-j>\",type:\"action\",action:\"aceCommand\",actionArgs:{name:\"addCursorBelowSkipCurrent\"}},{keys:\"<C-A-h>\",type:\"action\",action:\"aceCommand\",actionArgs:{name:\"selectMoreBefore\"}},{keys:\"<C-A-l>\",type:\"action\",action:\"aceCommand\",actionArgs:{name:\"selectMoreAfter\"}},{keys:\"<C-A-S-h>\",type:\"action\",action:\"aceCommand\",actionArgs:{name:\"selectNextBefore\"}},{keys:\"<C-A-S-l>\",type:\"action\",action:\"aceCommand\",actionArgs:{name:\"selectNextAfter\"}}),wt.aceCommand=function(e,t,n){e.vimCmd=t,e.ace.inVirtualSelectionMode?e.ace.on(\"beforeEndOperation\",pr):pr(null,e.ace)},wt.fold=function(e,t,n){e.ace.execCommand([\"toggleFoldWidget\",\"toggleFoldWidget\",\"foldOther\",\"unfoldall\"][(t.all?2:0)+(t.open?1:0)])},t.handler.defaultKeymap=b,t.handler.actions=wt,t.Vim=x});                (function() {\n                    window.require([\"ace/keyboard/vim\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/keybinding-vscode.js",
    "content": "define(\"ace/keyboard/vscode\",[\"require\",\"exports\",\"module\",\"ace/keyboard/hash_handler\",\"ace/config\"],function(e,t,n){\"use strict\";var r=e(\"../keyboard/hash_handler\").HashHandler,i=e(\"../config\");t.handler=new r,t.handler.$id=\"ace/keyboard/vscode\",t.handler.addCommands([{name:\"toggleWordWrap\",exec:function(e){var t=e.session.getUseWrapMode();e.session.setUseWrapMode(!t)},readOnly:!0},{name:\"navigateToLastEditLocation\",exec:function(e){var t=e.session.getUndoManager().$lastDelta,n=t.action==\"remove\"?t.start:t.end;e.moveCursorTo(n.row,n.column),e.clearSelection()}},{name:\"replaceAll\",exec:function(e){e.searchBox?e.searchBox.active===!0&&e.searchBox.replaceOption.checked===!0&&e.searchBox.replaceAll():i.loadModule(\"ace/ext/searchbox\",function(t){t.Search(e,!0)})}},{name:\"replaceOne\",exec:function(e){e.searchBox?e.searchBox.active===!0&&e.searchBox.replaceOption.checked===!0&&e.searchBox.replace():i.loadModule(\"ace/ext/searchbox\",function(t){t.Search(e,!0)})}},{name:\"selectAllMatches\",exec:function(e){e.searchBox?e.searchBox.active===!0&&e.searchBox.findAll():i.loadModule(\"ace/ext/searchbox\",function(t){t.Search(e,!1)})}},{name:\"toggleFindCaseSensitive\",exec:function(e){i.loadModule(\"ace/ext/searchbox\",function(t){t.Search(e,!1);var n=e.searchBox;n.caseSensitiveOption.checked=!n.caseSensitiveOption.checked,n.$syncOptions()})}},{name:\"toggleFindInSelection\",exec:function(e){i.loadModule(\"ace/ext/searchbox\",function(t){t.Search(e,!1);var n=e.searchBox;n.searchOption.checked=!n.searchRange,n.setSearchRange(n.searchOption.checked&&n.editor.getSelectionRange()),n.$syncOptions()})}},{name:\"toggleFindRegex\",exec:function(e){i.loadModule(\"ace/ext/searchbox\",function(t){t.Search(e,!1);var n=e.searchBox;n.regExpOption.checked=!n.regExpOption.checked,n.$syncOptions()})}},{name:\"toggleFindWholeWord\",exec:function(e){i.loadModule(\"ace/ext/searchbox\",function(t){t.Search(e,!1);var n=e.searchBox;n.wholeWordOption.checked=!n.wholeWordOption.checked,n.$syncOptions()})}},{name:\"removeSecondaryCursors\",exec:function(e){var t=e.selection.ranges;t&&t.length>1?e.selection.toSingleRange(t[t.length-1]):e.selection.clearSelection()}}]),[{bindKey:{mac:\"Ctrl-G\",win:\"Ctrl-G\"},name:\"gotoline\"},{bindKey:{mac:\"Command-Shift-L|Command-F2\",win:\"Ctrl-Shift-L|Ctrl-F2\"},name:\"findAll\"},{bindKey:{mac:\"Shift-F8|Shift-Option-F8\",win:\"Shift-F8|Shift-Alt-F8\"},name:\"goToPreviousError\"},{bindKey:{mac:\"F8|Option-F8\",win:\"F8|Alt-F8\"},name:\"goToNextError\"},{bindKey:{mac:\"Command-Shift-P|F1\",win:\"Ctrl-Shift-P|F1\"},name:\"openCommandPallete\"},{bindKey:{mac:\"Command-K|Command-S\",win:\"Ctrl-K|Ctrl-S\"},name:\"showKeyboardShortcuts\"},{bindKey:{mac:\"Shift-Option-Up\",win:\"Alt-Shift-Up\"},name:\"copylinesup\"},{bindKey:{mac:\"Shift-Option-Down\",win:\"Alt-Shift-Down\"},name:\"copylinesdown\"},{bindKey:{mac:\"Command-Shift-K\",win:\"Ctrl-Shift-K\"},name:\"removeline\"},{bindKey:{mac:\"Command-Enter\",win:\"Ctrl-Enter\"},name:\"addLineAfter\"},{bindKey:{mac:\"Command-Shift-Enter\",win:\"Ctrl-Shift-Enter\"},name:\"addLineBefore\"},{bindKey:{mac:\"Command-Shift-\\\\\",win:\"Ctrl-Shift-\\\\\"},name:\"jumptomatching\"},{bindKey:{mac:\"Command-]\",win:\"Ctrl-]\"},name:\"blockindent\"},{bindKey:{mac:\"Command-[\",win:\"Ctrl-[\"},name:\"blockoutdent\"},{bindKey:{mac:\"Ctrl-PageDown\",win:\"Alt-PageDown\"},name:\"pagedown\"},{bindKey:{mac:\"Ctrl-PageUp\",win:\"Alt-PageUp\"},name:\"pageup\"},{bindKey:{mac:\"Shift-Option-A\",win:\"Shift-Alt-A\"},name:\"toggleBlockComment\"},{bindKey:{mac:\"Option-Z\",win:\"Alt-Z\"},name:\"toggleWordWrap\"},{bindKey:{mac:\"Command-G\",win:\"F3|Ctrl-K Ctrl-D\"},name:\"findnext\"},{bindKey:{mac:\"Command-Shift-G\",win:\"Shift-F3\"},name:\"findprevious\"},{bindKey:{mac:\"Option-Enter\",win:\"Alt-Enter\"},name:\"selectAllMatches\"},{bindKey:{mac:\"Command-D\",win:\"Ctrl-D\"},name:\"selectMoreAfter\"},{bindKey:{mac:\"Command-K Command-D\",win:\"Ctrl-K Ctrl-D\"},name:\"selectOrFindNext\"},{bindKey:{mac:\"Shift-Option-I\",win:\"Shift-Alt-I\"},name:\"splitSelectionIntoLines\"},{bindKey:{mac:\"Command-K M\",win:\"Ctrl-K M\"},name:\"modeSelect\"},{bindKey:{mac:\"Command-Option-[\",win:\"Ctrl-Shift-[\"},name:\"toggleFoldWidget\"},{bindKey:{mac:\"Command-Option-]\",win:\"Ctrl-Shift-]\"},name:\"toggleFoldWidget\"},{bindKey:{mac:\"Command-K Command-0\",win:\"Ctrl-K Ctrl-0\"},name:\"foldall\"},{bindKey:{mac:\"Command-K Command-J\",win:\"Ctrl-K Ctrl-J\"},name:\"unfoldall\"},{bindKey:{mac:\"Command-K Command-1\",win:\"Ctrl-K Ctrl-1\"},name:\"foldOther\"},{bindKey:{mac:\"Command-K Command-Q\",win:\"Ctrl-K Ctrl-Q\"},name:\"navigateToLastEditLocation\"},{bindKey:{mac:\"Command-K Command-R|Command-K Command-S\",win:\"Ctrl-K Ctrl-R|Ctrl-K Ctrl-S\"},name:\"showKeyboardShortcuts\"},{bindKey:{mac:\"Command-K Command-X\",win:\"Ctrl-K Ctrl-X\"},name:\"trimTrailingSpace\"},{bindKey:{mac:\"Shift-Down|Command-Shift-Down\",win:\"Shift-Down|Ctrl-Shift-Down\"},name:\"selectdown\"},{bindKey:{mac:\"Shift-Up|Command-Shift-Up\",win:\"Shift-Up|Ctrl-Shift-Up\"},name:\"selectup\"},{bindKey:{mac:\"Command-Alt-Enter\",win:\"Ctrl-Alt-Enter\"},name:\"replaceAll\"},{bindKey:{mac:\"Command-Shift-1\",win:\"Ctrl-Shift-1\"},name:\"replaceOne\"},{bindKey:{mac:\"Option-C\",win:\"Alt-C\"},name:\"toggleFindCaseSensitive\"},{bindKey:{mac:\"Option-L\",win:\"Alt-L\"},name:\"toggleFindInSelection\"},{bindKey:{mac:\"Option-R\",win:\"Alt-R\"},name:\"toggleFindRegex\"},{bindKey:{mac:\"Option-W\",win:\"Alt-W\"},name:\"toggleFindWholeWord\"},{bindKey:{mac:\"Command-L\",win:\"Ctrl-L\"},name:\"expandtoline\"},{bindKey:{mac:\"Shift-Esc\",win:\"Shift-Esc\"},name:\"removeSecondaryCursors\"}].forEach(function(e){var n=t.handler.commands[e.name];n&&(n.bindKey=e.bindKey),t.handler.bindKey(e.bindKey,n||e.name)})});                (function() {\n                    window.require([\"ace/keyboard/vscode\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/mode-python.js",
    "content": "define(\"ace/mode/python_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text_highlight_rules\"],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"./text_highlight_rules\").TextHighlightRules,s=function(){var e=\"and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal\",t=\"True|False|None|NotImplemented|Ellipsis|__debug__\",n=\"abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes\",r=this.createKeywordMapper({\"invalid.deprecated\":\"debugger\",\"support.function\":n,\"variable.language\":\"self|cls\",\"constant.language\":t,keyword:e},\"identifier\"),i=\"[uU]?\",s=\"[rR]\",o=\"[fF]\",u=\"(?:[rR][fF]|[fF][rR])\",a=\"(?:(?:[1-9]\\\\d*)|(?:0))\",f=\"(?:0[oO]?[0-7]+)\",l=\"(?:0[xX][\\\\dA-Fa-f]+)\",c=\"(?:0[bB][01]+)\",h=\"(?:\"+a+\"|\"+f+\"|\"+l+\"|\"+c+\")\",p=\"(?:[eE][+-]?\\\\d+)\",d=\"(?:\\\\.\\\\d+)\",v=\"(?:\\\\d+)\",m=\"(?:(?:\"+v+\"?\"+d+\")|(?:\"+v+\"\\\\.))\",g=\"(?:(?:\"+m+\"|\"+v+\")\"+p+\")\",y=\"(?:\"+g+\"|\"+m+\")\",b=\"\\\\\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\\\\\abfnrtv'\\\"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})\";this.$rules={start:[{token:\"comment\",regex:\"#.*$\"},{token:\"string\",regex:i+'\"{3}',next:\"qqstring3\"},{token:\"string\",regex:i+'\"(?=.)',next:\"qqstring\"},{token:\"string\",regex:i+\"'{3}\",next:\"qstring3\"},{token:\"string\",regex:i+\"'(?=.)\",next:\"qstring\"},{token:\"string\",regex:s+'\"{3}',next:\"rawqqstring3\"},{token:\"string\",regex:s+'\"(?=.)',next:\"rawqqstring\"},{token:\"string\",regex:s+\"'{3}\",next:\"rawqstring3\"},{token:\"string\",regex:s+\"'(?=.)\",next:\"rawqstring\"},{token:\"string\",regex:o+'\"{3}',next:\"fqqstring3\"},{token:\"string\",regex:o+'\"(?=.)',next:\"fqqstring\"},{token:\"string\",regex:o+\"'{3}\",next:\"fqstring3\"},{token:\"string\",regex:o+\"'(?=.)\",next:\"fqstring\"},{token:\"string\",regex:u+'\"{3}',next:\"rfqqstring3\"},{token:\"string\",regex:u+'\"(?=.)',next:\"rfqqstring\"},{token:\"string\",regex:u+\"'{3}\",next:\"rfqstring3\"},{token:\"string\",regex:u+\"'(?=.)\",next:\"rfqstring\"},{token:\"keyword.operator\",regex:\"\\\\+|\\\\-|\\\\*|\\\\*\\\\*|\\\\/|\\\\/\\\\/|%|@|<<|>>|&|\\\\||\\\\^|~|<|>|<=|=>|==|!=|<>|=\"},{token:\"punctuation\",regex:\",|:|;|\\\\->|\\\\+=|\\\\-=|\\\\*=|\\\\/=|\\\\/\\\\/=|%=|@=|&=|\\\\|=|^=|>>=|<<=|\\\\*\\\\*=\"},{token:\"paren.lparen\",regex:\"[\\\\[\\\\(\\\\{]\"},{token:\"paren.rparen\",regex:\"[\\\\]\\\\)\\\\}]\"},{token:\"text\",regex:\"\\\\s+\"},{include:\"constants\"}],qqstring3:[{token:\"constant.language.escape\",regex:b},{token:\"string\",regex:'\"{3}',next:\"start\"},{defaultToken:\"string\"}],qstring3:[{token:\"constant.language.escape\",regex:b},{token:\"string\",regex:\"'{3}\",next:\"start\"},{defaultToken:\"string\"}],qqstring:[{token:\"constant.language.escape\",regex:b},{token:\"string\",regex:\"\\\\\\\\$\",next:\"qqstring\"},{token:\"string\",regex:'\"|$',next:\"start\"},{defaultToken:\"string\"}],qstring:[{token:\"constant.language.escape\",regex:b},{token:\"string\",regex:\"\\\\\\\\$\",next:\"qstring\"},{token:\"string\",regex:\"'|$\",next:\"start\"},{defaultToken:\"string\"}],rawqqstring3:[{token:\"string\",regex:'\"{3}',next:\"start\"},{defaultToken:\"string\"}],rawqstring3:[{token:\"string\",regex:\"'{3}\",next:\"start\"},{defaultToken:\"string\"}],rawqqstring:[{token:\"string\",regex:\"\\\\\\\\$\",next:\"rawqqstring\"},{token:\"string\",regex:'\"|$',next:\"start\"},{defaultToken:\"string\"}],rawqstring:[{token:\"string\",regex:\"\\\\\\\\$\",next:\"rawqstring\"},{token:\"string\",regex:\"'|$\",next:\"start\"},{defaultToken:\"string\"}],fqqstring3:[{token:\"constant.language.escape\",regex:b},{token:\"string\",regex:'\"{3}',next:\"start\"},{token:\"paren.lparen\",regex:\"{\",push:\"fqstringParRules\"},{defaultToken:\"string\"}],fqstring3:[{token:\"constant.language.escape\",regex:b},{token:\"string\",regex:\"'{3}\",next:\"start\"},{token:\"paren.lparen\",regex:\"{\",push:\"fqstringParRules\"},{defaultToken:\"string\"}],fqqstring:[{token:\"constant.language.escape\",regex:b},{token:\"string\",regex:\"\\\\\\\\$\",next:\"fqqstring\"},{token:\"string\",regex:'\"|$',next:\"start\"},{token:\"paren.lparen\",regex:\"{\",push:\"fqstringParRules\"},{defaultToken:\"string\"}],fqstring:[{token:\"constant.language.escape\",regex:b},{token:\"string\",regex:\"'|$\",next:\"start\"},{token:\"paren.lparen\",regex:\"{\",push:\"fqstringParRules\"},{defaultToken:\"string\"}],rfqqstring3:[{token:\"string\",regex:'\"{3}',next:\"start\"},{token:\"paren.lparen\",regex:\"{\",push:\"fqstringParRules\"},{defaultToken:\"string\"}],rfqstring3:[{token:\"string\",regex:\"'{3}\",next:\"start\"},{token:\"paren.lparen\",regex:\"{\",push:\"fqstringParRules\"},{defaultToken:\"string\"}],rfqqstring:[{token:\"string\",regex:\"\\\\\\\\$\",next:\"rfqqstring\"},{token:\"string\",regex:'\"|$',next:\"start\"},{token:\"paren.lparen\",regex:\"{\",push:\"fqstringParRules\"},{defaultToken:\"string\"}],rfqstring:[{token:\"string\",regex:\"'|$\",next:\"start\"},{token:\"paren.lparen\",regex:\"{\",push:\"fqstringParRules\"},{defaultToken:\"string\"}],fqstringParRules:[{token:\"paren.lparen\",regex:\"[\\\\[\\\\(]\"},{token:\"paren.rparen\",regex:\"[\\\\]\\\\)]\"},{token:\"string\",regex:\"\\\\s+\"},{token:\"string\",regex:\"'(.)*'\"},{token:\"string\",regex:'\"(.)*\"'},{token:\"function.support\",regex:\"(!s|!r|!a)\"},{include:\"constants\"},{token:\"paren.rparen\",regex:\"}\",next:\"pop\"},{token:\"paren.lparen\",regex:\"{\",push:\"fqstringParRules\"}],constants:[{token:\"constant.numeric\",regex:\"(?:\"+y+\"|\\\\d+)[jJ]\\\\b\"},{token:\"constant.numeric\",regex:y},{token:\"constant.numeric\",regex:h+\"[lL]\\\\b\"},{token:\"constant.numeric\",regex:h+\"\\\\b\"},{token:[\"punctuation\",\"function.support\"],regex:\"(\\\\.)([a-zA-Z_]+)\\\\b\"},{token:r,regex:\"[a-zA-Z_$][a-zA-Z0-9_$]*\\\\b\"}]},this.normalizeRules()};r.inherits(s,i),t.PythonHighlightRules=s}),define(\"ace/mode/folding/pythonic\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/folding/fold_mode\"],function(e,t,n){\"use strict\";var r=e(\"../../lib/oop\"),i=e(\"./fold_mode\").FoldMode,s=t.FoldMode=function(e){this.foldingStartMarker=new RegExp(\"([\\\\[{])(?:\\\\s*)$|(\"+e+\")(?:\\\\s*)(?:#.*)?$\")};r.inherits(s,i),function(){this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.match(this.foldingStartMarker);if(i)return i[1]?this.openingBracketBlock(e,i[1],n,i.index):i[2]?this.indentationBlock(e,n,i.index+i[2].length):this.indentationBlock(e,n)}}.call(s.prototype)}),define(\"ace/mode/python\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/python_highlight_rules\",\"ace/mode/folding/pythonic\",\"ace/range\"],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"./text\").Mode,s=e(\"./python_highlight_rules\").PythonHighlightRules,o=e(\"./folding/pythonic\").FoldMode,u=e(\"../range\").Range,a=function(){this.HighlightRules=s,this.foldingRules=new o(\"\\\\:\"),this.$behaviour=this.$defaultBehaviour};r.inherits(a,i),function(){this.lineCommentStart=\"#\",this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e),s=i.tokens;if(s.length&&s[s.length-1].type==\"comment\")return r;if(e==\"start\"){var o=t.match(/^.*[\\{\\(\\[:]\\s*$/);o&&(r+=n)}return r};var e={pass:1,\"return\":1,raise:1,\"break\":1,\"continue\":1};this.checkOutdent=function(t,n,r){if(r!==\"\\r\\n\"&&r!==\"\\r\"&&r!==\"\\n\")return!1;var i=this.getTokenizer().getLineTokens(n.trim(),t).tokens;if(!i)return!1;do var s=i.pop();while(s&&(s.type==\"comment\"||s.type==\"text\"&&s.value.match(/^\\s+$/)));return s?s.type==\"keyword\"&&e[s.value]:!1},this.autoOutdent=function(e,t,n){n+=1;var r=this.$getIndent(t.getLine(n)),i=t.getTabString();r.slice(-i.length)==i&&t.remove(new u(n,r.length-i.length,n,r.length))},this.$id=\"ace/mode/python\",this.snippetFileId=\"ace/snippets/python\"}.call(a.prototype),t.Mode=a});                (function() {\n                    window.require([\"ace/mode/python\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-ambiance.js",
    "content": "define(\"ace/theme/ambiance\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-ambiance\",t.cssText=\".ace-ambiance .ace_gutter {background-color: #3d3d3d;background-image: linear-gradient(left, #3D3D3D, #333);background-repeat: repeat-x;border-right: 1px solid #4d4d4d;text-shadow: 0px 1px 1px #4d4d4d;color: #222;}.ace-ambiance .ace_gutter-layer {background: repeat left top;}.ace-ambiance .ace_gutter-active-line {background-color: #3F3F3F;}.ace-ambiance .ace_fold-widget {text-align: center;}.ace-ambiance .ace_fold-widget:hover {color: #777;}.ace-ambiance .ace_fold-widget.ace_start,.ace-ambiance .ace_fold-widget.ace_end,.ace-ambiance .ace_fold-widget.ace_closed{background: none !important;border: none;box-shadow: none;}.ace-ambiance .ace_fold-widget.ace_start:after {content: '\\u25be'}.ace-ambiance .ace_fold-widget.ace_end:after {content: '\\u25b4'}.ace-ambiance .ace_fold-widget.ace_closed:after {content: '\\u2023'}.ace-ambiance .ace_print-margin {border-left: 1px dotted #2D2D2D;right: 0;background: #262626;}.ace-ambiance .ace_scroller {-webkit-box-shadow: inset 0 0 10px black;-moz-box-shadow: inset 0 0 10px black;-o-box-shadow: inset 0 0 10px black;box-shadow: inset 0 0 10px black;}.ace-ambiance {color: #E6E1DC;background-color: #202020;}.ace-ambiance .ace_cursor {border-left: 1px solid #7991E8;}.ace-ambiance .ace_overwrite-cursors .ace_cursor {border: 1px solid #FFE300;background: #766B13;}.ace-ambiance.normal-mode .ace_cursor-layer {z-index: 0;}.ace-ambiance .ace_marker-layer .ace_selection {background: rgba(221, 240, 255, 0.20);}.ace-ambiance .ace_marker-layer .ace_selected-word {border-radius: 4px;border: 8px solid #3f475d;box-shadow: 0 0 4px black;}.ace-ambiance .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-ambiance .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 255, 255, 0.25);}.ace-ambiance .ace_marker-layer .ace_active-line {background: rgba(255, 255, 255, 0.031);}.ace-ambiance .ace_invisible {color: #333;}.ace-ambiance .ace_paren {color: #24C2C7;}.ace-ambiance .ace_keyword {color: #cda869;}.ace-ambiance .ace_keyword.ace_operator {color: #fa8d6a;}.ace-ambiance .ace_punctuation.ace_operator {color: #fa8d6a;}.ace-ambiance .ace_identifier {}.ace-ambiance .ace-statement {color: #cda869;}.ace-ambiance .ace_constant {color: #CF7EA9;}.ace-ambiance .ace_constant.ace_language {color: #CF7EA9;}.ace-ambiance .ace_constant.ace_library {}.ace-ambiance .ace_constant.ace_numeric {color: #78CF8A;}.ace-ambiance .ace_invalid {text-decoration: underline;}.ace-ambiance .ace_invalid.ace_illegal {color:#F8F8F8;background-color: rgba(86, 45, 86, 0.75);}.ace-ambiance .ace_invalid,.ace-ambiance .ace_deprecated {text-decoration: underline;font-style: italic;color: #D2A8A1;}.ace-ambiance .ace_support {color: #9B859D;}.ace-ambiance .ace_support.ace_function {color: #DAD085;}.ace-ambiance .ace_function.ace_buildin {color: #9b859d;}.ace-ambiance .ace_string {color: #8f9d6a;}.ace-ambiance .ace_string.ace_regexp {color: #DAD085;}.ace-ambiance .ace_comment {font-style: italic;color: #555;}.ace-ambiance .ace_comment.ace_doc {}.ace-ambiance .ace_comment.ace_doc.ace_tag {color: #666;font-style: normal;}.ace-ambiance .ace_definition,.ace-ambiance .ace_type {color: #aac6e3;}.ace-ambiance .ace_variable {color: #9999cc;}.ace-ambiance .ace_variable.ace_language {color: #9b859d;}.ace-ambiance .ace_xml-pe {color: #494949;}.ace-ambiance .ace_gutter-layer,.ace-ambiance .ace_text-layer {background-image: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAQAAAAHUWYVAABFFUlEQVQYGbzBCeDVU/74/6fj9HIcx/FRHx9JCFmzMyGRURhLZIkUsoeRfUjS2FNDtr6WkMhO9sm+S8maJfu+Jcsg+/o/c+Z4z/t97/vezy3z+z8ekGlnYICG/o7gdk+wmSHZ1z4pJItqapjoKXWahm8NmV6eOTbWUOp6/6a/XIg6GQqmenJ2lDHyvCFZ2cBDbmtHA043VFhHwXxClWmeYAdLhV00Bd85go8VmaFCkbVkzlQENzfBDZ5gtN7HwF0KDrTwJ0dypSOzpaKCMwQHKTIreYIxlmhXTzTWkVm+LTynZhiSBT3RZQ7aGfjGEd3qyXQ1FDymqbKxpspERQN2MiRjNZlFFQXfCNFm9nM1zpAsoYjmtRTc5ajwuaXc5xrWskT97RaKzAGe5ARHhVUsDbjKklziiX5WROcJwSNCNI+9w1Jwv4Zb2r7lCMZ4oq5C0EdTx+2GzNuKpJ+iFf38JEWkHJn9DNF7mmBDITrWEg0VWL3pHU20tSZnuqWu+R3BtYa8XxV1HO7GyD32UkOpL/yDloINFTmvtId+nmAjxRw40VMwVKiwrKLE4bK5UOVntYwhOcSSXKrJHKPJedocpGjVz/ZMIbnYUPB10/eKCrs5apqpgVmWzBYWpmtKHecJPjaUuEgRDDaU0oZghCJ6zNMQ5ZhDYx05r5v2muQdM0EILtXUsaKiQX9WMEUotagQzFbUNN6NUPC2nm5pxEWGCjMc3GdJHjSU2kORLK/JGSrkfGEIjncU/CYUnOipoYemwj8tST9NsJmB7TUVXtbUtXATJVZXBMvYeTXJfobgJUPmGMP/yFaWonaa6BcFO3nqcIqCozSZoZoSr1g4zJOzuyGnxTEX3lUEJ7WcZgme8ddaWvWJo2AJR9DZU3CUIbhCSG6ybSwN6qtJVnCU2svDTP2ZInOw2cBTrqtQahtNZn9NcJ4l2NaSmSkkP1noZWnVwkLmdUPOwLZEwy2Z3S3R+4rIG9hcbpPXHFVWcQdZkn2FOta3cKWQnNRC5g1LsJah4GCzSVsKnCOY5OAFRTBekyyryeyilhFKva75r4Mc0aWanGEaThcy31s439KKxTzJYY5WTHPU1FtIHjQU3Oip4xlNzj/lBw23dYZVliQa7WAXf4shetcQfatI+jWRDBPmyNeW6A1P5kdDgyYJlba0BIM8BZu1JfrFwItyjcAMR3K0BWOIrtMEXyhyrlVEx3ui5dUBjmB/Q3CXW85R4mBD0s7B+4q5tKUjOlb9qqmhi5AZ6GFIC5HXtOobdYGlVdMVbNJ8toNTFcHxnoL+muBagcctjWnbNMuR00uI7nQESwg5q2qqrKWIfrNUmeQocY6HuyxJV02wj36w00yhpmUFenv4p6fUkZYqLyuinx2RGOjhCXYyJF84oiU00YMOOhhquNdfbOB7gU88pY4xJO8LVdp6/q2voeB4R04vIdhSE40xZObx1HGGJ/ja0LBthFInKaLPPFzuCaYaoj8JjPME8yoyxo6zlBqkiUZYgq00OYMswbWO5NGmq+xhipxHLRW29ARjNKXO0wRnear8XSg4XFPLKEPUS1GqvyLwiuBUoa7zpZ0l5xxFwWmWZC1H5h5FwU8eQ7K+g8UcVY6TMQreVQT/8uQ8Z+ALIXnSEa2pYZQneE9RZbSBNYXfWYJzW/h/4j4Dp1tYVcFIC5019Vyi4ThPqSFCzjGWaHQTBU8q6vrVwgxP9Lkm840imWKpcLCjYTtrKuwvsKSnrvHCXGkSMk9p6lhckfRpIeis+N2PiszT+mFLspyGleUhDwcLrZqmyeylxwjBcKHEapqkmyangyLZRVOijwOtCY5SsG5zL0OwlCJ4y5KznF3EUNDDrinwiyLZRzOXtlBbK5ITHFGLp8Q0R6ab6mS7enI2cFrxOyHvOCFaT1HThS1krjCwqWeurCkk+willhCC+RSZnRXBiZaC5RXRIZYKp2lyfrHwiKPKR0JDzrdU2EFgpidawlFDR6FgXUMNa+g1FY3bUQh2cLCwosRdnuQTS/S+JVrGLeWIvtQUvONJxlqSQYYKpwoN2kaocLjdVsis4Mk80ESF2YpSkzwldjHkjFCUutI/r+EHDU8oCs6yzL3PhWiEooZdFMkymlas4AcI3KmoMMNSQ3tHzjGWCrcJJdYyZC7QFGwjRL9p+MrRkAGWzIaWCn9W0F3TsK01c2ZvQw0byvxuQU0r1lM0qJO7wW0kRIMdDTtXEdzi4VIh+EoIHm0mWtAtpCixlabgn83fKTI7anJe9ST7WIK1DMGpQmYeA58ImV6ezOGOzK2Kgq01pd60cKWiUi9Lievb/0vIDPHQ05Kzt4ddPckQBQtoaurjyHnek/nKzpQLrVgKPjIkh2v4uyezpv+Xoo7fPFXaGFp1vaLKxQ4uUpQQS5VuQs7BCq4xRJv7fwpVvvFEB3j+620haOuocqMhWd6TTPAEx+mdFNGHdranFe95WrWmIvlY4F1Dle2ECgc6cto7SryuqGGGha0tFQ5V53migUKmg6XKAo4qS3mik+0OZpAhOLeZKicacgaYcyx5hypYQE02ZA4xi/pNhOQxR4klNKyqacj+mpxnLTnnGSo85++3ZCZq6lrZkXlGEX3o+C9FieccJbZWVFjC0Yo1FZnJhoYMFoI1hEZ9r6hwg75HwzBNhbZCdJEfJwTPGzJvaKImw1yYX1HDAmpXR+ZJQ/SmgqMNVQb5vgamGwLtt7VwvP7Qk1xpiM5x5Cyv93E06MZmgs0Nya2azIKOYKCGBQQW97RmhKNKF02JZqHEJ4o58qp7X5EcZmc56trXEqzjCBZ1MFGR87Ql2tSTs6CGxS05PTzRQorkbw7aKoKXFDXsYW42VJih/q+FP2BdTzDTwVqOYB13liM50vG7wy28qagyuIXMeQI/Oqq8bcn5wJI50xH00CRntyfpL1T4hydYpoXgNiFzoIUTDZnLNRzh4TBHwbYGDvZkxmlyJloyr6tRihpeUG94GnKtIznREF0tzJG/OOr73JBcrSh1k6WuTprgLU+mnSGnv6Zge0NNz+kTDdH8nuAuTdJDCNb21LCiIuqlYbqGzT3RAoZofQfjFazkqeNWdYaGvYTM001EW2oKPvVk1ldUGSgUtHFwjKM1h9jnFcmy5lChoLNaQMGGDsYbKixlaMBmmsx1QjCfflwTfO/gckW0ruZ3jugKR3R5W9hGUWqCgxuFgsuaCHorotGKzGaeZB9DMsaTnKCpMtwTvOzhYk0rdrArKCqcaWmVk1+F372ur1YkKxgatI8Qfe1gIX9wE9FgS8ESmuABIXnRUbCapcKe+nO7slClSZFzpV/LkLncEb1qiO42fS3R855Su2mCLh62t1SYZZYVmKwIHjREF2uihTzB20JOkz7dkxzYQnK0UOU494wh+VWRc6Un2kpTaVgLDFEkJ/uhzRcI0YKGgpGWOlocBU/a4fKoJ/pEaNV6jip3+Es9VXY078rGnmAdf7t9ylPXS34RBSuYPs1UecZTU78WanhBCHpZ5sAoTz0LGZKjPf9TRypqWEiTvOFglL1fCEY3wY/++rbk7C8bWebA6p6om6PgOL2kp44TFJlVNBXae2rqqdZztOJpT87GQsE9jqCPIe9VReZuQ/CIgacsyZdCpIScSYqcZk8r+nsyCzhyfhOqHGOIvrLknC8wTpFcaYiGC/RU1NRbUeUpocQOnkRpGOrIOcNRx+1uA0UrzhSSt+VyS3SJpnFWkzNDqOFGIWcfR86DnmARTQ1HKIL33ExPiemeOhYSSjzlSUZZuE4TveoJLnBUOFof6KiysCbnAEcZgcUNTDOwkqWu3RWtmGpZwlHhJENdZ3miGz0lJlsKnjbwqSHQjpxnFDlTLLwqJPMZMjd7KrzkSG7VsxXBZE+F8YZkb01Oe00yyRK9psh5SYh29ySPKBo2ylNht7ZkZnsKenjKNJu9PNEyZpaCHv4Kt6RQsLvAVp7M9kIimmCUwGeWqLMmGuIotYMmWNpSahkhZw9FqZsVnKJhsjAHvtHMsTM9fCI06Dx/u3vfUXCqfsKRc4oFY2jMsoo/7DJDwZ1CsIKnJu+J9ldkpmiCxQx1rWjI+T9FwcWWzOuaYH0Hj7klNRVWEQpmaqosakiGNTFHdjS/qnUdmf0NJW5xsL0HhimCCZZSRzmSPTXJQ4aaztAwtZnoabebJ+htCaZ7Cm535ByoqXKbX1WRc4Eh2MkRXWzImVc96Cj4VdOKVxR84VdQsIUM8Psoou2byVHyZFuq7O8otbSQ2UAoeEWTudATLGSpZzVLlXVkPU2Jc+27lsw2jmg5T5VhbeE3BT083K9WsTTkFU/Osi0rC5lRlpwRHUiesNS0sOvmqGML1aRbPAxTJD9ZKtxuob+hhl8cwYGWpJ8nub7t5p6coYbMovZ1BTdaKn1jYD6h4GFDNFyT/Kqe1XCXphXHOKLZmuRSRdBPEfVUXQzJm5YGPGGJdvAEr7hHNdGZnuBvrpciGmopOLf5N0uVMy0FfYToJk90uUCbJupaVpO53UJXR2bVpoU00V2KOo4zMFrBd0Jtz2pa0clT5Q5L8IpQ177mWQejPMEJhuQjS10ref6HHjdEhy1P1EYR7GtO0uSsKJQYLiTnG1rVScj5lyazpqWGl5uBbRWl7m6ixGOOnEsMJR7z8J0n6KMnCdxhiNYQCoZ6CmYLnO8omC3MkW3bktlPmEt/VQQHejL3+dOE5FlPdK/Mq8hZxxJtLyRrepLThYKbLZxkSb5W52vYxNOaOxUF0yxMUPwBTYqCzy01XayYK0sJyWBLqX0MwU5CzoymRzV0EjjeUeLgDpTo6ij42ZAzvD01dHUUTPLU96MdLbBME8nFBn7zJCMtJcZokn8YoqU0FS5WFKyniHobguMcmW8N0XkWZjkyN3hqOMtS08r+/xTBwpZSZ3qiVRX8SzMHHjfUNFjgHEPmY9PL3ykEzxkSre/1ZD6z/NuznuB0RcE1TWTm9zRgfUWVJiG6yrzgmWPXC8EAR4Wxhlad0ZbgQyEz3pG5RVEwwDJH2mgKpjcTiCOzn1lfUWANFbZ2BA8balnEweJC9J0iuaeZoI+ippFCztEKVvckR2iice1JvhVytrQwUAZpgsubCPaU7xUe9vWnaOpaSBEspalykhC9bUlOMpT42ZHca6hyrqKmw/wMR8H5ZmdFoBVJb03O4UL0tSNnvIeRmkrLWqrs78gcrEn2tpcboh0UPOW3UUR9PMk4T4nnNKWmCjlrefhCwxRNztfmIQVdDElvS4m1/WuOujoZCs5XVOjtKPGokJzsYCtFYoWonSPT21DheU/wWhM19FcElwqNGOsp9Q8N/cwXaiND1MmeL1Q5XROtYYgGeFq1aTMsoMmcrKjQrOFQTQ1fmBYhmW6o8Jkjc7iDJRTBIo5kgJD5yMEYA3srCg7VFKwiVJkmRCc5ohGOKhsYMn/XBLdo5taZjlb9YAlGWRimqbCsoY7HFAXLa5I1HPRxMMsQDHFkWtRNniqT9UEeNjcE7RUlrCJ4R2CSJuqlKHWvJXjAUNcITYkenuBRB84TbeepcqTj3zZyFJzgYQdHnqfgI0ddUwS6GqWpsKWhjq9cV0vBAEMN2znq+EBfIWT+pClYw5xsTlJU6GeIBsjGmmANTzJZiIYpgrM0Oa8ZMjd7NP87jxhqGOhJlnQtjuQpB+8aEE00wZFznSJPyHxgH3HkPOsJFvYk8zqCHzTs1BYOa4J3PFU+UVRZxlHDM4YavlNUuMoRveiZA2d7grMNc2g+RbSCEKzmgYsUmWmazFJyoiOZ4KnyhKOGRzWJa0+moyV4TVHDzn51Awtqaphfk/lRQ08FX1iiqxTB/kLwd0VynKfEvI6cd4XMV5bMhZ7gZUWVzYQ6Nm2BYzxJbw3bGthEUUMfgbGeorae6DxHtJoZ6alhZ0+ytiVoK1R4z5PTrOECT/SugseEOlb1MMNR4VRNcJy+V1Hg9ONClSZFZjdHlc6W6FBLdJja2MC5hhpu0DBYEY1TFGwiFAxRRCsYkiM9JRb0JNMVkW6CZYT/2EiTGWmo8k+h4FhDNE7BvppoTSFnmCV5xZKzvcCdDo7VVPnIU+I+Rc68juApC90MwcFCsJ5hDqxgScYKreruyQwTqrzoqDCmhWi4IbhB0Yrt3RGa6GfDv52rKXWhh28dyZaWUvcZeMTBaZoSGyiCtRU5J8iviioHaErs7Jkj61syVzTTgOcUOQ8buFBTYWdL5g3T4qlpe0+wvD63heAXRfCCIed9RbCsp2CiI7raUOYOTU13N8PNHvpaGvayo4a3LLT1lDrVEPT2zLUlheB1R+ZTRfKWJ+dcocLJfi11vyJ51lLqJ0WD7tRwryezjiV5W28uJO9qykzX8JDe2lHl/9oyBwa2UMfOngpXCixvKdXTk3wrsKmiVYdZIqsoWEERjbcUNDuiaQomGoIbFdEHmsyWnuR+IeriKDVLnlawlyNHKwKlSU631PKep8J4Q+ayjkSLKYLhalNHlYvttb6fHm0p6OApsZ4l2VfdqZkjuysy6ysKLlckf1KUutCTs39bmCgEyyoasIWlVaMF7mgmWtBT8Kol5xpH9IGllo8cJdopcvZ2sImlDmMIbtDk3KIpeNiS08lQw11NFPTwVFlPP6pJ2gvRfI7gQUfmNAtf6Gs0wQxDsKGlVBdF8rCa3jzdwMaGHOsItrZk7hAyOzpK9VS06j5F49b0VNGOOfKs3lDToMsMBe9ZWtHFEgxTJLs7qrygKZjUnmCYoeAqeU6jqWuLJup4WghOdvCYJnrSkSzoyRkm5M2StQwVltPkfCAk58tET/CSg+8MUecmotMEnhBKfWBIZsg2ihruMJQaoIm+tkTLKEqspMh00w95gvFCQRtDwTT1gVDDSEVdlwqZfxoQRbK0g+tbiBZxzKlpnpypejdDwTaeOvorMk/IJE10h9CqRe28hhLbe0pMsdSwv4ZbhKivo2BjDWfL8UKJgeavwlwb5KlwhyE4u4XkGE2ytZCznKLCDZZq42VzT8HLCrpruFbIfOIINmh/qCdZ1ZBc65kLHR1Bkyf5zn6pN3SvGKIlFNGplhrO9QSXanLOMQTLCa0YJCRrCZm/CZmrLTm7WzCK4GJDiWUdFeYx1LCFg3NMd0XmCuF3Y5rITLDUsYS9zoHVzwnJoYpSTQoObyEzr4cFBNqYTopoaU/wkyLZ2lPhX/5Y95ulxGTV7KjhWrOZgl8MyUUafjYraNjNU1N3IWcjT5WzWqjwtoarHSUObGYO3GCJZpsBlnJGPd6ZYLyl1GdCA2625IwwJDP8GUKymbzuyPlZlvTUsaUh5zFDhRWFzPKKZLAlWdcQbObgF9tOqOsmB1dqcqYJmWstFbZRRI9poolmqiLnU0POvxScpah2iSL5UJNzgScY5+AuIbpO0YD3NCW+dLMszFSdFCWGqG6eVq2uYVNDdICGD6W7EPRWZEY5gpsE9rUkS3mijzzJnm6UpUFXG1hCUeVoS5WfNcFpblELL2qqrCvMvRfd45oalvKU2tiQ6ePJOVMRXase9iTtLJztPxJKLWpo2CRDcJwn2sWSLKIO1WQWNTCvpVUvOZhgSC40JD0dOctaSqzkCRbXsKlb11Oip6PCJ0IwSJM31j3akRxlP7Rwn6aGaUL0qiLnJkvB3xWZ2+Q1TfCwpQH3G0o92UzmX4o/oJNQMMSQc547wVHhdk+VCw01DFYEnTxzZKAm74QmeNNR1w6WzEhNK15VJzuCdxQ53dRUDws5KvwgBMOEgpcVNe0hZI6RXT1Jd0cyj5nsaEAHgVmGaJIlWdsc5Ui2ElrRR6jrRAttNMEAIWrTDFubkZaok7/AkzfIwfuWVq0jHzuCK4QabtLUMVPB3kJ0oyHTSVFlqMALilJf2Rf8k5aaHtMfayocLBS8L89oKoxpJvnAkDPa0qp5DAUTHKWmCcnthlou8iCKaFFLHWcINd1nyIwXqrSxMNmSs6KmoL2QrKuWtlQ5V0120xQ5vRyZS1rgFkWwhiOwiuQbR0OOVhQM9iS3tiXp4RawRPMp5tDletOOBL95MpM01dZTBM9pkn5qF010rIeHFcFZhmSGpYpTsI6nwhqe5C9ynhlpp5ophuRb6WcJFldkVnVEwwxVfrVkvnWUuNLCg5bgboFHPDlDPDmnK7hUrWiIbjadDclujlZcaokOFup4Ri1kacV6jmrrK1hN9bGwpKEBQ4Q6DvIUXOmo6U5LqQM6EPyiKNjVkPnJkDPNEaxhiFay5ExW1NXVUGqcpYYdPcGiCq7z/TSlbhL4pplWXKd7NZO5QQFrefhRQW/NHOsqcIglc4UhWklR8K0QzbAw08CBDnpbgqXdeD/QUsM4RZXDFBW6WJKe/mFPdH0LtBgiq57wFLzlyQzz82qYx5D5WJP5yVJDW01BfyHnS6HKO/reZqId1WGa4Hkh2kWodJ8i6KoIPlAj2hPt76CzXsVR6koPRzWTfKqIentatYpQw2me4AA3y1Kind3SwoOKZDcFXTwl9tWU6mfgRk9d71sKtlNwrjnYw5tC5n5LdKiGry3JKNlHEd3oaMCFHrazBPMp/uNJ+V7IudcSbeOIdjUEdwl0VHCOZo5t6YluEuaC9mQeMgSfOyKnYGFHcIeQ84yQWbuJYJpZw5CzglDH7gKnWqqM9ZTaXcN0TeYhR84eQtJT76JJ1lREe7WnnvsMmRc9FQ7SBBM9mV3lCUdmHk/S2RAMt0QjFNFqQpWjDPQ01DXWUdDBkXziKPjGEP3VP+zIWU2t7im41FOloyWzn/L6dkUy3VLDaZ6appgDLHPjJEsyvJngWEPUyVBiAaHCTEXwrLvSEbV1e1gKJniicWorC1MUrVjB3uDhJE/wgSOzk1DXpk0k73qCM8xw2UvD5kJmDUfOomqMpWCkJRlvKXGmoeBm18USjVIk04SClxTB6YrgLAPLWYK9HLUt5cmc0vYES8GnTeRc6skZbQkWdxRsIcyBRzx1DbTk9FbU0caTPOgJHhJKnOGIVhQqvKmo0llRw9sabrZkDtdg3PqaKi9oatjY8B+G371paMg6+mZFNNtQ04mWBq3rYLOmtWWQp8KJnpy9DdFensyjdqZ+yY40VJlH8wcdLzC8PZnvHMFUTZUrDTkLyQaGus5X5LzpYAf3i+e/ZlhqGqWhh6Ou6xTR9Z6oi5AZZtp7Mj2EEm8oSpxiYZCHU/1fbGdNNNRRoZMhmilEb2gqHOEJDtXkHK/JnG6IrvbPCwV3NhONVdS1thBMs1T4QOBcTWa2IzhMk2nW5Kyn9tXUtpv9RsG2msxk+ZsQzRQacJncpgke0+T8y5Fzj8BiGo7XlJjaTIlpQs7KFjpqGnKuoyEPeIKnFMkZHvopgh81ySxNFWvJWcKRs70j2FOT012IllEEO1n4pD1513Yg2ssQPOThOkvyrqHUdEXOSEsihmBbTbKX1kLBPWqWkLOqJbjB3GBIZmoa8qWl4CG/iZ7oiA72ZL7TJNeZUY7kFQftDcHHluBzRbCegzMtrRjVQpX2lgoPKKLJAkcbMl01XK2p7yhL8pCBbQ3BN2avJgKvttcrWDK3CiUOVxQ8ZP+pqXKyIxnmBymCg5vJjNfkPK4+c8cIfK8ocVt7kmfd/I5SR1hKvCzUtb+lhgc00ZaO6CyhIQP1Uv4yIZjload72PXX0OIJvnFU+0Zf6MhsJwTfW0r0UwQfW4LNLZl5HK261JCZ4qnBaAreVAS3WrjV0LBnNDUNNDToCEeFfwgcb4gOEqLRhirWkexrCEYKVV711DLYEE1XBEsp5tpTGjorkomKYF9FDXv7fR3BGwbettSxnyL53MBPjsxDZjMh+VUW9NRxq1DhVk+FSxQcaGjV9Pawv6eGByw5qzoy7xk4RsOShqjJwWKe/1pEEfzkobeD/dQJmpqedcyBTy2sr4nGNRH0c0SPWTLrqAc0OQcb/gemKgqucQT7ySWKCn2EUotoCvpZct7RO2sy/QW0IWcXd7pQRQyZVwT2USRO87uhjioTLKV2brpMUcMQRbKH/N2T+UlTpaMls6cmc6CCNy3JdYYSUzzJQ4oSD3oKLncULOiJvjBEC2oqnCJkJluCYy2ZQ5so9YYlZ1VLlQU1mXEW1jZERwj/MUSRc24TdexlqLKfQBtDTScJUV8FszXBEY5ktpD5Ur9hYB4Nb1iikw3JoYpkKX+RodRKFt53MMuRnKSpY31PwYaGaILh3wxJGz9TkTPEETxoCWZrgvOlmyMzxFEwVJE5xZKzvyJ4WxEc16Gd4Xe3Weq4XH2jKRikqOkGQ87hQnC7wBmGYLAnesX3M+S87eFATauuN+Qcrh7xIxXJbUIdMw3JGE3ylCWzrieaqCn4zhGM19TQ3z1oH1AX+pWEqIc7wNGAkULBo/ZxRaV9NNyh4Br3rCHZzbzmSfawBL0dNRwpW1kK9mxPXR9povcdrGSZK9c2k0xwFGzjuniCtRSZCZ6ccZ7gaktmgAOtKbG/JnOkJrjcQTdFMsxRQ2cLY3WTIrlCw1eWKn8R6pvt4GFDso3QoL4a3nLk3G6JrtME3dSenpx7PNFTmga0EaJTLQ061sEeQoWXhSo9LTXsaSjoJQRXeZLtDclbCrYzfzHHeaKjHCVOUkQHO3JeEepr56mhiyaYYKjjNU+Fed1wS5VlhWSqI/hYUdDOkaxiKehoyOnrCV5yBHtbWFqTHCCwtpDcYolesVR5yUzTZBb3RNMd0d6WP+SvhuBmRcGxnuQzT95IC285cr41cLGQ6aJJhmi4TMGempxeimBRQw1tFKV+8jd6KuzoSTqqDxzRtpZkurvKEHxlqXKRIjjfUNNXQsNOsRScoWFLT+YeRZVD3GRN0MdQcKqQjHDMrdGGVu3iYJpQx3WGUvfbmxwFfR20WBq0oYY7LMFhhgYtr8jpaEnaOzjawWWaTP8mMr0t/EPDPoqcnxTBI5o58L7uoWnMrpoqPwgVrlAUWE+V+TQl9rawoyP6QGAlQw2TPRX+YSkxyBC8Z6jhHkXBgQL7WII3DVFnRfCrBfxewv9D6xsyjys4VkhWb9pUU627JllV0YDNHMku/ldNMMXDEo4aFnAkk4U6frNEU4XgZUPmEKHUl44KrzmYamjAbh0JFvGnaTLPu1s9jPCwjFpYiN7z1DTOk/nc07CfDFzmCf7i+bfNHXhDtLeBXzTBT5rkMvWOIxpl4EMh2LGJBu2syDnAEx2naEhHDWMMzPZEhygyS1mS5RTJr5ZkoKbEUoYqr2kqdDUE8ztK7OaIntJkFrIECwv8LJTaVx5XJE86go8dFeZ3FN3rjabCAYpoYEeC9zzJVULBbmZhDyd7ko09ydpNZ3nm2Kee4FPPXHnYEF1nqOFEC08LUVcDvYXkJHW8gTaKCk9YGOeIJhqiE4ToPEepdp7IWFjdwnWaufGMwJJCMtUTTBBK9BGCOy2tGGrJTHIwyEOzp6aPzNMOtlZkDvcEWpP5SVNhfkvDxhmSazTJXYrM9U1E0xwFVwqZQwzJxw6+kGGGUj2FglGGmnb1/G51udRSMNlTw6GGnCcUwVcOpmsqTHa06o72sw1RL02p9z0VbnMLOaIX3QKaYKSCFQzBKEUNHTSc48k53RH9wxGMtpQa5KjjW0W0n6XCCCG4yxNNdhQ4R4l1Ff+2sSd6UFHiIEOyqqFgT01mEUMD+joy75jPhOA+oVVLm309FR4yVOlp4RhLiScNmSmaYF5Pw0STrOIoWMSR2UkRXOMp+M4SHW8o8Zoi6OZgjKOaFar8zZDzkWzvKOjkKBjmCXby8JahhjXULY4KlzgKLvAwxVGhvyd4zxB1d9T0piazmKLCVZY5sKiD0y2ZSYrkUEPUbIk+dlQ4SJHTR50k1DPaUWIdTZW9NJwnJMOECgd7ou/MnppMJ02O1VT4Wsh85MnZzcFTngpXGKo84qmwgKbCL/orR/SzJ2crA+t6Mp94KvxJUeIbT3CQu1uIdlQEOzlKfS3UMcrTiFmOuroocrZrT2AcmamOKg8YomeEKm/rlT2sociMaybaUlFhuqHCM2qIJ+rg4EcDFymiDSxzaHdPcpE62pD5kyM5SBMoA1PaUtfIthS85ig1VPiPPYXgYEMNk4Qq7TXBgo7oT57gPUdwgCHzhIVFPFU6OYJzHAX9m5oNrVjeE61miDrqQ4VSa1oiURTsKHC0IfjNwU2WzK6eqK8jWln4g15TVBnqmDteCJ501PGAocJhhqjZdtBEB6lnhLreFJKxmlKbeGrqLiSThVIbCdGzloasa6lpMQXHCME2boLpJgT7yWaemu6wBONbqGNVRS0PKIL7LckbjmQtR7K8I5qtqel+T/ChJTNIKLjdUMNIRyvOEko9YYl2cwQveBikCNawJKcLBbc7+JM92mysNvd/Fqp8a0k6CNEe7cnZrxlW0wQXaXjaktnRwNOGZKYiONwS7a1JVheq3WgJHlQUGKHKmp4KAxXR/ULURcNgoa4zhKSLpZR3kxRRb0NmD0OFn+UCS7CzI1nbP6+o4x47QZE5xRCt3ZagnYcvmpYQktXdk5YKXTzBC57kKEe0VVuiSYqapssMS3C9p2CKkHOg8B8Pa8p5atrIw3qezIWanMGa5HRDNF6RM9wcacl0N+Q8Z8hsIkSnaIIdHRUOEebAPy1zbCkhM062FCJtif7PU+UtoVXzWKqM1PxXO8cfdruhFQ/a6x3JKYagvVDhQEtNiyiiSQ7OsuRsZUku0CRNDs4Sog6KKjsZgk2bYJqijgsEenoKeniinRXBn/U3lgpPdyDZynQx8IiioMnCep5Ky8mjGs6Wty0l1hUQTcNWswS3WRp2kCNZwJG8omG8JphPUaFbC8lEfabwP7VtM9yoaNCAjpR41VNhrD9LkbN722v0CoZMByFzhaW+MyzRYEWFDQwN2M4/JiT76PuljT3VU/A36eaIThb+R9oZGOAJ9tewkgGvqOMNRWYjT/Cwu99Q8LqDE4TgbLWxJ1jaDDAERsFOFrobgjUsBScaguXU8kKm2RL19tRypSHnHNlHiIZqgufs4opgQdVdwxBNNFBR6kVFqb8ogimOzB6a6HTzrlDHEpYaxjiiA4TMQobkDg2vejjfwJGWmnbVFAw3H3hq2NyQfG7hz4aC+w3BbwbesG0swYayvpAs6++Ri1Vfzx93mFChvyN5xVHTS+0p9aqCAxyZ6ZacZyw5+7uuQkFPR9DDk9NOiE7X1PCYJVjVUqq7JlrHwWALF5nfHNGjApdpqgzx5OwilDhCiDYTgnc9waGW4BdLNNUQvOtpzDOWHDH8D7TR/A/85KljEQu3NREc4Pl/6B1Hhc8Umb5CsKMmGC9EPcxoT2amwHNCmeOEnOPbklnMkbOgIvO5UMOpQrS9UGVdt6iH/fURjhI/WOpaW9OKLYRod6HCUEdOX000wpDZQ6hwg6LgZfOqo1RfT/CrJzjekXOGhpc1VW71ZLbXyyp+93ILbC1kPtIEYx0FIx1VDrLoVzXRKRYWk809yYlC9ImcrinxtabKnzRJk3lAU1OLEN1j2zrYzr2myHRXJFf4h4QKT1qSTzTB5+ZNTzTRkAxX8FcLV2uS8eoQQ2aAkFzvCM72sJIcJET3WPjRk5wi32uSS9rfZajpWEvj9hW42F4o5NytSXYy8IKHay10VYdrcl4SkqscrXpMwyGOgtkajheSxdQqmpxP1L3t4R5PqasFnrQEjytq6qgp9Y09Qx9o4S1FzhUCn1kyHSzBWLemoSGvOqLNhZyBjmCaAUYpMgt4Ck7wBBMMwWKWgjsUwTaGVsxWC1mYoKiyqqeGKYqonSIRQ3KIkHO0pmAxTdBHkbOvfllfr+AA+7gnc50huVKYK393FOyg7rbPO/izI7hE4CnHHHnJ0ogNPRUGeUpsrZZTBJcrovUcJe51BPsr6GkJdhCCsZ6aTtMEb2pqWkqeVtDXE/QVggsU/Nl86d9RMF3DxvZTA58agu810RWawCiSzzXBeU3MMW9oyJUedvNEvQyNu1f10BSMddR1vaLCYpYa/mGocLSiYDcLbQz8aMn5iyF4xBNMs1P0QEOV7o5gaWGuzSeLue4tt3ro7y4Tgm4G/mopdZgl6q0o6KzJWE3mMksNr3r+a6CbT8g5wZNzT9O7fi/zpaOmnz3BRoqos+tv9zMbdpxsqDBOEewtJLt7cg5wtKKbvldpSzRRCD43VFheCI7yZLppggMVBS/KMAdHODJvOwq2NQSbKKKPLdFWQs7Fqo+mpl01JXYRgq8dnGLhTiFzqmWsUMdpllZdbKlyvSdYxhI9YghOtxR8LgSLWHK62mGGVoxzBE8LNWzqH9CUesQzFy5RQzTc56mhi6fgXEWwpKfE5Z7M05ZgZUPmo6auiv8YKzDYwWBLMErIbKHJvOwIrvEdhOBcQ9JdU1NHQ7CXn2XIDFBKU2WAgcX9UAUzDXWd5alwuyJ41Z9rjKLCL4aCp4WarhPm2rH+SaHUYE001JDZ2ZAzXPjdMpZWvC9wmqIB2lLhQ01D5jO06hghWMndbM7yRJMsoCj1vYbnFQVrW9jak3OlEJ3s/96+p33dEPRV5GxiqaGjIthUU6FFEZyqCa5qJrpBdzSw95IUnOPIrCUUjRZQFrbw5PR0R1qiYx3cb6nrWUMrBmmiBQxVHtTew5ICP/ip6g4hed/Akob/32wvBHsIOX83cI8hGeNeNPCIkPmXe8fPKx84OMSRM1MTdXSwjCZ4S30jVGhvqTRak/OVhgGazHuOCud5onEO1lJr6ecVyaOK6H7zqlBlIaHE0oroCgfvGJIdPcmfLNGLjpz7hZwZQpUbFME0A1cIJa7VNORkgfsMBatbKgwwJM9bSvQXeNOvbIjelg6WWvo5kvbKaJJNHexkKNHL9xRyFlH8Ti2riB5wVPhUk7nGkJnoCe428LR/wRGdYIlmWebCyxou1rCk4g/ShugBDX0V0ZQWkh0dOVsagkM0yV6OoLd5ye+pRlsCr0n+KiQrGuq5yJDzrTAXHtLUMduTDBVKrSm3eHL+6ijxhFDX9Z5gVU/wliHYTMiMFpKLNMEywu80wd3meoFmt6VbRMPenhrOc6DVe4pgXU8DnnHakLOIIrlF4FZPIw6R+zxBP0dyq6OOZ4Q5sLKCcz084ok+VsMMyQhNZmmBgX5xIXOEJTmi7VsGTvMTNdHHhpzdbE8Du2oKxgvBqQKdDDnTFOylCFaxR1syz2iqrOI/FEpNc3C6f11/7+ASS6l2inq2ciTrCCzgyemrCL5SVPjQkdPZUmGy2c9Sw9FtR1sS30RmsKPCS4rkIC/2U0MduwucYolGaPjKEyhzmiPYXagyWbYz8LWBDdzRimAXzxx4z8K9hpzlhLq+NiQ97HuKorMUfK/OVvC2JfiHUPCQI/q7J2gjK+tTDNxkCc4TMssqCs4TGtLVwQihyoAWgj9bosU80XGW6Ac9TJGziaUh5+hnFcHOnlaM1iRn29NaqGENTTTSUHCH2tWTeV0osUhH6psuVLjRUmGWhm6OZEshGeNowABHcJ2Bpy2ZszRcKkRXd2QuKVEeXnbfaEq825FguqfgfE2whlChSRMdron+LATTPQ2Z369t4B9C5gs/ylzv+CMmepIDPclFQl13W0rspPd1JOcbghGOEutqCv5qacURQl3dDKyvyJlqKXGPgcM9FfawJAMVmdcspcYKOZc4GjDYkFlK05olNMHyHn4zFNykyOxt99RkHlfwmiHo60l2EKI+mhreEKp080Tbug08BVPcgoqC5zWt+NLDTZ7oNSF51N1qie7Va3uCCwyZbkINf/NED6jzOsBdZjFN8oqG3wxVunqCSYYKf3EdhJyf9YWGf7tRU2oH3VHgPr1fe5J9hOgHd7xQ0y7qBwXr23aGErP0cm64JVjZwsOGqL+mhNgZmhJLW2oY4UhedsyBgzrCKrq7BmcpNVhR6jBPq64Vgi+kn6XE68pp8J5/+0wRHGOpsKenQn9DZntPzjRLZpDAdD2fnSgkG9tmIXnUwQ6WVighs7Yi2MxQ0N3CqYaCXkJ0oyOztMDJjmSSpcpvlrk0RMMOjmArQ04PRV1DO1FwhCVaUVPpKUM03JK5SxPsIWRu8/CGHi8UHChiqGFDTbSRJWeYUDDcH6vJWUxR4k1FXbMUwV6e4AJFXS8oMqsZKqzvYQ9DDQdZckY4aGsIhtlubbd2r3j4QBMoTamdPZk7O/Bf62lacZwneNjQoGcdVU7zJOd7ghsUHOkosagic6cnWc8+4gg285R6zZP5s1/LUbCKIznTwK36PkdwlOrl4U1LwfdCCa+IrvFkmgw1PCAUXKWo0sURXWcI2muKJlgyFzhynCY4RBOsqCjoI1R5zREco0n2Vt09BQtYSizgKNHfUmUrQ5UOCh51BFcLmY7umhYqXKQomOop8bUnWNNQcIiBcYaC6xzMNOS8JQQfeqKBmmglB+97ok/lfk3ygaHSyZaCRTzRxQo6GzLfa2jWBPepw+UmT7SQEJyiyRkhBLMVOfcoMjcK0eZChfUNzFAUzCsEN5vP/X1uP/n/aoMX+K+nw/Hjr/9xOo7j7Pju61tLcgvJpTWXNbfN5jLpi6VfCOviTktKlFusQixdEKWmEBUKNaIpjZRSSOXSgzaaKLdabrm1/9nZ+/f+vd/vz/v9+Xy+zZ7PRorYoZqyLrCwQdEAixxVOEXNNnjX2nUSRlkqGmWowk8lxR50JPy9Bo6qJXaXwNvREBvnThPEPrewryLhcAnj5WE15Fqi8W7R1sAuEu86S4ENikItFN4xkv9Af4nXSnUVcLiA9xzesFpivRRVeFKtsMRaKBhuSbjOELnAUtlSQUpXgdfB4Z1oSbnFEetbQ0IrAe+Y+pqnDcEJFj6S8LDZzZHwY4e3XONNlARraomNEt2bkvGsosA3ioyHm+6jCMbI59wqt4eeara28IzEmyPgoRaUOEDhTVdEJhmCoTWfC0p8aNkCp0oYqih2iqGi4yXeMkOsn4LdLLnmKfh/YogjNsPebeFGR4m9BJHLzB61XQ3BtpISfS2FugsK9FAtLWX1dCRcrCnUp44CNzuCowUZmxSRgYaE6Za0W2u/E7CVXCiI/UOR8aAm1+OSyE3mOUcwyc1zBBeoX1kiKy0Zfxck1Gsyulti11i83QTBF5Kg3pDQThFMVHiPSlK+0cSedng/VaS8bOZbtsBcTcZAR8JP5KeqQ1OYKAi20njdNNRpgnsU//K+JnaXJaGTomr7aYIphoRn9aeShJWKEq9LcozSF7QleEfDI5LYm5bgVkFkRwVDBCVu0DDIkGupo8TZBq+/pMQURYErJQmPKGKjNDkWOLx7Jd5QizdUweIaKrlP7SwJDhZvONjLkOsBBX9UpGxnydhXkfBLQ8IxgojQbLFnJf81JytSljclYYyEFyx0kVBvKWOFJmONpshGAcsduQY5giVNCV51eOdJYo/pLhbvM0uDHSevNKRcrKZIqnCtJeEsO95RoqcgGK4ocZcho1tTYtcZvH41pNQ7vA0WrhIfOSraIIntIAi+NXWCErdbkvrWwjRLrt0NKUdL6KSOscTOdMSOUtBHwL6OLA0vNSdynaWQEnCpIvKaIrJJEbvHkmuNhn6OjM8VkSGSqn1uYJCGHnq9I3aLhNME3t6GjIkO7xrNFumpyTNX/NrwX7CrIRiqqWijI9JO4d1iieykyfiposQIQ8YjjsjlBh6oHWbwRjgYJQn2NgSnNycmJAk3NiXhx44Sxykihxm8ybUwT1OVKySc7vi3OXVkdBJ4AyXBeksDXG0IhgtYY0lY5ahCD0ehborIk5aUWRJviMA7Xt5kyRjonrXENkm8yYqgs8VzgrJmClK20uMM3jRJ0FiQICQF9hdETlLQWRIb5ki6WDfWRPobvO6a4GP5mcOrNzDFELtTkONLh9dXE8xypEg7z8A9jkhrQ6Fhjlg/QVktJXxt4WXzT/03Q8IaQWSqIuEvloQ2mqC9Jfi7wRul4RX3pSPlzpoVlmCtI2jvKHCFhjcM3sN6lqF6HxnKelLjXWbwrpR4xzuCrTUZx2qq9oAh8p6ixCUGr78g8oyjRAtB5CZFwi80VerVpI0h+IeBxa6Zg6kWvpDHaioYYuEsRbDC3eOmC2JvGYLeioxGknL2UATNJN6hmtj1DlpLvDVmocYbrGCVJKOrg4X6DgddLA203BKMFngdJJFtFd7vJLm6KEpc5yjQrkk7M80SGe34X24nSex1Ra5Omgb71JKyg8SrU3i/kARKwWpH0kOGhKkObyfd0ZGjvyXlAkVZ4xRbYJ2irFMkFY1SwyWxr2oo4zlNiV+7zmaweFpT4kR3kaDAFW6xpSqzJay05FtYR4HmZhc9UxKbbfF2V8RG1MBmSaE+kmC6JnaRXK9gsiXhJHl/U0qM0WTcbyhwkYIvFGwjSbjfwhiJt8ZSQU+Bd5+marPMOkVkD0muxYLIfEuhh60x/J92itguihJSEMySVPQnTewnEm+620rTQEMsOfo4/kP/0ARvWjitlpSX7GxBgcMEsd3EEeYWvdytd+Saawi6aCIj1CkGb6Aj9rwhx16Cf3vAwFy5pyLhVonXzy51FDpdEblbkdJbUcEPDEFzQ8qNmhzzLTmmKWKbFCXeEuRabp6rxbvAtLF442QjQ+wEA9eL1xSR7Q0JXzlSHjJ4exq89yR0laScJ/FW6z4a73pFMEfDiRZvuvijIt86RaSFOl01riV2mD1UEvxGk/Geg5aWwGki1zgKPG9J2U8PEg8qYvMsZeytiTRXBMslCU8JSlxi8EabjwUldlDNLfzTUmCgxWsjqWCOHavYAqsknKFIO0yQ61VL5AVFxk6WhEaCAkdJgt9aSkzXlKNX2jEa79waYuc7gq0N3GDJGCBhoiTXUEPsdknCUE1CK0fwsiaylSF2uiDyO4XX3pFhNd7R4itFGc0k/ElBZwWvq+GC6szVeEoS/MZ+qylwpKNKv9Z469UOjqCjwlusicyTxG6VpNxcQ8IncoR4RhLbR+NdpGGmJWOcIzJGUuKPGpQg8rrG21dOMqQssJQ4RxH5jaUqnZuQ0F4Q+cjxLwPtpZbIAk3QTJHQWBE5S1BokoVtDd6lhqr9UpHSUxMcIYl9pojsb8h4SBOsMQcqvOWC2E8EVehqiJ1hrrAEbQxeK0NGZ0Gkq+guSRgniM23bIHVkqwx4hiHd7smaOyglyIyQuM978j4VS08J/A2G1KeMBRo4fBaSNhKUEZfQewVQ/C1I+MgfbEleEzCUw7mKXI0M3hd1EESVji8x5uQ41nxs1q4RMJCCXs7Iq9acpxn22oSDnQ/sJTxsCbHIYZiLyhY05TY0ZLIOQrGaSJDDN4t8pVaIrsqqFdEegtizc1iTew5Q4ayBDMUsQMkXocaYkc0hZua412siZ1rSXlR460zRJ5SlHGe5j801RLMlJTxtaOM3Q1pvxJ45zUlWFD7rsAbpfEm1JHxG0eh8w2R7QQVzBUw28FhFp5QZzq8t2rx2joqulYTWSuJdTYfWwqMFMcovFmSyJPNyLhE4E10pHzYjOC3huArRa571ZsGajQpQx38SBP5pyZB6lMU3khDnp0MBV51BE9o2E+TY5Ml2E8S7C0o6w1xvCZjf0HkVEHCzFoyNmqC+9wdcqN+Tp7jSDheE9ws8Y5V0NJCn2bk2tqSY4okdrEhx1iDN8cSudwepWmAGXKcJXK65H9to8jYQRH7SBF01ESUJdd0TayVInaWhLkOjlXE5irKGOnI6GSWGCJa482zBI9rCr0jyTVcEuzriC1vcr6mwFGSiqy5zMwxBH/TJHwjSPhL8+01kaaSUuMFKTcLEvaUePcrSmwn8DZrgikWb7CGPxkSjhQwrRk57tctmxLsb9sZvL9LSlyuSLlWkqOjwduo8b6Uv1DkmudIeFF2dHCgxVtk8dpIvHpBxhEOdhKk7OLIUSdJ+cSRY57B+0DgGUUlNfpthTfGkauzxrvTsUUaCVhlKeteTXCoJDCa2NOKhOmC4G1H8JBd4OBZReSRGkqcb/CO1PyLJTLB4j1q8JYaIutEjSLX8YKM+a6phdMsdLFUoV5RTm9JSkuDN8WcIon0NZMNZWh1q8C7SJEwV5HxrmnnTrf3KoJBlmCYI2ilSLlfEvlE4011NNgjgthzEua0oKK7JLE7HZHlEl60BLMVFewg4EWNt0ThrVNEVkkiTwpKXSWJzdRENgvKGq4IhjsiezgSFtsfCUq8qki5S1LRQeYQQ4nemmCkImWMw3tFUoUBZk4NOeZYEp4XRKTGa6wJjrWNHBVJR4m3FCnbuD6aak2WsMTh3SZImGCIPKNgsDpVwnsa70K31lCFJZYcwwSMFcQulGTsZuEaSdBXkPGZhu0FsdUO73RHjq8MPGGIfaGIbVTk6iuI3GFgucHrIQkmWSJdBd7BBu+uOryWAhY7+Lki9rK5wtEQzWwvtbqGhIMFwWRJsElsY4m9IIg9L6lCX0VklaPAYkfkZEGDnOWowlBJjtMUkcGK4Lg6EtoZInMUBVYLgn0UsdmCyCz7gIGHFfk+k1QwTh5We7A9x+IdJ6CvIkEagms0hR50eH9UnTQJ+2oiKyVlLFUE+8gBGu8MQ3CppUHesnjTHN4QB/UGPhCTHLFPHMFrCqa73gqObUJGa03wgbhHkrCfpEpzNLE7JDS25FMKhlhKKWKfCgqstLCPu1zBXy0J2ztwjtixBu8UTRn9LVtkmCN2iyFhtME70JHRQ1KVZXqKI/KNIKYMCYs1GUMEKbM1bKOI9LDXC7zbHS+bt+1MTWS9odA9DtrYtpbImQJ2VHh/lisEwaHqUk1kjKTAKknkBEXkbkdMGwq0dnhzLJF3NJH3JVwrqOB4Sca2hti75nmJN0WzxS6UxDYoEpxpa4htVlRjkYE7DZGzJVU72uC9IyhQL4i8YfGWSYLLNcHXloyz7QhNifmKSE9JgfGmuyLhc403Xm9vqcp6gXe3xuuv8F6VJNxkyTHEkHG2g0aKXL0MsXc1bGfgas2//dCONXiNLCX+5mB7eZIl1kHh7ajwpikyzlUUWOVOsjSQlsS+M0R+pPje/dzBXRZGO0rMtgQrLLG9VSu9n6CMXS3BhwYmSoIBhsjNBmZbgusE9BCPCP5triU4VhNbJfE+swSP27aayE8tuTpYYjtrYjMVGZdp2NpS1s6aBnKSHDsbKuplKbHM4a0wMFd/5/DmGyKrJSUaW4IBrqUhx0vyfzTBBLPIUcnZdrAkNsKR0sWRspumSns6Ch0v/qqIbBYUWKvPU/CFoyrDJGwSNFhbA/MlzKqjrO80hRbpKx0Jewsi/STftwGSlKc1JZyAzx05dhLEdnfQvhZOqiHWWEAHC7+30FuRcZUgaO5gpaIK+xsiHRUsqaPElTV40xQZQ107Q9BZE1nryDVGU9ZSQ47bmhBpLcYpUt7S+xuK/FiT8qKjwXYw5ypS2iuCv7q1gtgjhuBuB8LCFY5cUuCNtsQOFcT+4Ih9JX+k8Ea6v0iCIRZOtCT0Et00JW5UeC85Cg0ScK0k411HcG1zKtre3SeITBRk7WfwDhEvaYLTHP9le0m8By0JDwn4TlLW/aJOvGHxdjYUes+ScZigCkYQdNdEOhkiezgShqkx8ueKjI8lDfK2oNiOFvrZH1hS+tk7NV7nOmLHicGWEgubkXKdwdtZknCLJXaCpkrjZBtLZFsDP9CdxWsSr05Sxl6CMmoFbCOgryX40uDtamB7SVmXW4Ihlgpmq+00tBKUUa83WbjLUNkzDmY7cow1JDygyPGlhgGKYKz4vcV7QBNbJIgM11TUqZaMdwTeSguH6rOaw1JRKzaaGyxVm2EJ/uCIrVWUcZUkcp2grMsEjK+DMwS59jQk3Kd6SEq1d0S6uVmO4Bc1lDXTUcHjluCXEq+1OlBDj1pi9zgiXxnKuE0SqTXwhqbETW6RggMEnGl/q49UT2iCzgJvRwVXS2K/d6+ZkyUl7jawSVLit46EwxVljDZwoSQ20sDBihztHfk2yA8NVZghiXwrYHQdfKAOtzsayjhY9bY0yE2CWEeJ9xfzO423xhL5syS2TFJofO2pboHob0nY4GiAgRrvGQEDa/FWSsoaaYl0syRsEt3kWoH3B01shCXhTUWe9w3Bt44SC9QCh3eShQctwbaK2ApLroGCMlZrYqvlY3qYhM0aXpFkPOuoqJ3Dm6fxXrGwVF9gCWZagjPqznfkuMKQ8DPTQRO8ZqG1hPGKEm9IgpGW4DZDgTNriTxvFiq+Lz+0cKfp4wj6OCK9JSnzNSn9LFU7UhKZZMnYwcJ8s8yRsECScK4j5UOB95HFO0CzhY4xJxuCix0lDlEUeMdS6EZBkTsUkZ4K74dugyTXS7aNgL8aqjDfkCE0ZbwkCXpaWCKhl8P7VD5jxykivSyxyZrYERbe168LYu9ZYh86IkscgVLE7tWPKmJv11CgoyJltMEbrohtVAQfO4ImltiHEroYEs7RxAarVpY8AwXMcMReFOTYWe5iiLRQxJ5Q8DtJ8LQhWOhIeFESPGsILhbNDRljNbHzNRlTFbk2S3L0NOS6V1KFJYKUbSTcIIhM0wQ/s2TM0SRMNcQmSap3jCH4yhJZKSkwyRHpYYgsFeQ4U7xoCB7VVOExhXepo9ABBsYbvGWKXPME3lyH95YioZ0gssQRWWbI+FaSMkXijZXwgiTlYdPdkNLaETxlyDVIwqeaEus0aTcYcg0RVOkpR3CSJqIddK+90JCxzsDVloyrFd5ZAr4TBKfaWa6boEA7C7s6EpYaeFPjveooY72mjIccLHJ9HUwVlDhKkmutJDJBwnp1rvulJZggKDRfbXAkvC/4l3ozQOG9a8lxjx0i7nV4jSXc7vhe3OwIxjgSHjdEhhsif9YkPGlus3iLFDnWOFhtCZbJg0UbQcIaR67JjthoCyMEZRwhiXWyxO5QxI6w5NhT4U1WsJvDO60J34fW9hwzwlKij6ZAW9ne4L0s8C6XeBMEkd/LQy1VucBRot6QMlbivaBhoBgjqGiCJNhsqVp/S2SsG6DIONCR0dXhvWbJ+MRRZJkkuEjgDXJjFQW6SSL7GXK8Z2CZg7cVsbWGoKmEpzQ5elpiy8Ryg7dMkLLUEauzeO86CuwlSOlgYLojZWeJ9xM3S1PWfEfKl5ISLQ0MEKR8YOB2QfCxJBjrKPCN4f9MkaSsqoVXJBmP7EpFZ9UQfOoOFwSzBN4MQ8LsGrymlipcJQhmy0GaQjPqCHaXRwuCZwRbqK2Fg9wlClZqYicrIgMdZfxTQ0c7TBIbrChxmuzoKG8XRaSrIhhiyNFJkrC7oIAWMEOQa5aBekPCRknCo4IKPrYkvCDI8aYmY7WFtprgekcJZ3oLIqssCSMtFbQTJKwXYy3BY5oCh2iKPCpJOE+zRdpYgi6O2KmOAgvVCYaU4ySRek1sgyFhJ403QFHiVEmJHwtybO1gs8Hr5+BETQX3War0qZngYGgtVZtoqd6vFSk/UwdZElYqyjrF4HXUeFspIi9IGKf4j92pKGAdCYMVsbcV3kRF0N+R8LUd5PCsIGWoxDtBkCI0nKofdJQxT+LtZflvuc8Q3CjwWkq8KwUpHzkK/NmSsclCL0nseQdj5FRH5CNHSgtLiW80Of5HU9Hhlsga9bnBq3fEVltKfO5IaSTmGjjc4J0otcP7QsJUSQM8pEj5/wCuUuC2DWz8AAAAAElFTkSuQmCC\\\");}.ace-ambiance .ace_indent-guide {background: url(\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQUFD4z6Crq/sfAAuYAuYl+7lfAAAAAElFTkSuQmCC\\\") right repeat-y;}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/ambiance\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-chaos.js",
    "content": "define(\"ace/theme/chaos\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-chaos\",t.cssText=\".ace-chaos .ace_gutter {background: #141414;color: #595959;border-right: 1px solid #282828;}.ace-chaos .ace_gutter-cell.ace_warning {background-image: none;background: #FC0;border-left: none;padding-left: 0;color: #000;}.ace-chaos .ace_gutter-cell.ace_error {background-position: -6px center;background-image: none;background: #F10;border-left: none;padding-left: 0;color: #000;}.ace-chaos .ace_print-margin {border-left: 1px solid #555;right: 0;background: #1D1D1D;}.ace-chaos {background-color: #161616;color: #E6E1DC;}.ace-chaos .ace_cursor {border-left: 2px solid #FFFFFF;}.ace-chaos .ace_cursor.ace_overwrite {border-left: 0px;border-bottom: 1px solid #FFFFFF;}.ace-chaos .ace_marker-layer .ace_selection {background: #494836;}.ace-chaos .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-chaos .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #FCE94F;}.ace-chaos .ace_marker-layer .ace_active-line {background: #333;}.ace-chaos .ace_gutter-active-line {background-color: #222;}.ace-chaos .ace_invisible {color: #404040;}.ace-chaos .ace_keyword {color:#00698F;}.ace-chaos .ace_keyword.ace_operator {color:#FF308F;}.ace-chaos .ace_constant {color:#1EDAFB;}.ace-chaos .ace_constant.ace_language {color:#FDC251;}.ace-chaos .ace_constant.ace_library {color:#8DFF0A;}.ace-chaos .ace_constant.ace_numeric {color:#58C554;}.ace-chaos .ace_invalid {color:#FFFFFF;background-color:#990000;}.ace-chaos .ace_invalid.ace_deprecated {color:#FFFFFF;background-color:#990000;}.ace-chaos .ace_support {color: #999;}.ace-chaos .ace_support.ace_function {color:#00AEEF;}.ace-chaos .ace_function {color:#00AEEF;}.ace-chaos .ace_string {color:#58C554;}.ace-chaos .ace_comment {color:#555;font-style:italic;padding-bottom: 0px;}.ace-chaos .ace_variable {color:#997744;}.ace-chaos .ace_meta.ace_tag {color:#BE53E6;}.ace-chaos .ace_entity.ace_other.ace_attribute-name {color:#FFFF89;}.ace-chaos .ace_markup.ace_underline {text-decoration: underline;}.ace-chaos .ace_fold-widget {text-align: center;}.ace-chaos .ace_fold-widget:hover {color: #777;}.ace-chaos .ace_fold-widget.ace_start,.ace-chaos .ace_fold-widget.ace_end,.ace-chaos .ace_fold-widget.ace_closed{background: none !important;border: none;box-shadow: none;}.ace-chaos .ace_fold-widget.ace_start:after {content: '\\u25be'}.ace-chaos .ace_fold-widget.ace_end:after {content: '\\u25b4'}.ace-chaos .ace_fold-widget.ace_closed:after {content: '\\u2023'}.ace-chaos .ace_indent-guide {border-right:1px dotted #333;margin-right:-1px;}.ace-chaos .ace_fold { background: #222; border-radius: 3px; color: #7AF; border: none; }.ace-chaos .ace_fold:hover {background: #CCC; color: #000;}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/chaos\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-chrome.js",
    "content": "define(\"ace/theme/chrome\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssClass=\"ace-chrome\",t.cssText='.ace-chrome .ace_gutter {background: #ebebeb;color: #333;overflow : hidden;}.ace-chrome .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-chrome {background-color: #FFFFFF;color: black;}.ace-chrome .ace_cursor {color: black;}.ace-chrome .ace_invisible {color: rgb(191, 191, 191);}.ace-chrome .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-chrome .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-chrome .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-chrome .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-chrome .ace_fold {}.ace-chrome .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-chrome .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-chrome .ace_support.ace_type,.ace-chrome .ace_support.ace_class.ace-chrome .ace_support.ace_other {color: rgb(109, 121, 222);}.ace-chrome .ace_variable.ace_parameter {font-style:italic;color:#FD971F;}.ace-chrome .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-chrome .ace_comment {color: #236e24;}.ace-chrome .ace_comment.ace_doc {color: #236e24;}.ace-chrome .ace_comment.ace_doc.ace_tag {color: #236e24;}.ace-chrome .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-chrome .ace_variable {color: rgb(49, 132, 149);}.ace-chrome .ace_xml-pe {color: rgb(104, 104, 91);}.ace-chrome .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-chrome .ace_heading {color: rgb(12, 7, 255);}.ace-chrome .ace_list {color:rgb(185, 6, 144);}.ace-chrome .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-chrome .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-chrome .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-chrome .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-chrome .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-chrome .ace_gutter-active-line {background-color : #dcdcdc;}.ace-chrome .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-chrome .ace_storage,.ace-chrome .ace_keyword,.ace-chrome .ace_meta.ace_tag {color: rgb(147, 15, 128);}.ace-chrome .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-chrome .ace_string {color: #1A1AA6;}.ace-chrome .ace_entity.ace_other.ace_attribute-name {color: #994409;}.ace-chrome .ace_indent-guide {background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;}';var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/chrome\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-clouds.js",
    "content": "define(\"ace/theme/clouds\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssClass=\"ace-clouds\",t.cssText='.ace-clouds .ace_gutter {background: #ebebeb;color: #333}.ace-clouds .ace_print-margin {width: 1px;background: #e8e8e8}.ace-clouds {background-color: #FFFFFF;color: #000000}.ace-clouds .ace_cursor {color: #000000}.ace-clouds .ace_marker-layer .ace_selection {background: #BDD5FC}.ace-clouds.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;}.ace-clouds .ace_marker-layer .ace_step {background: rgb(255, 255, 0)}.ace-clouds .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #BFBFBF}.ace-clouds .ace_marker-layer .ace_active-line {background: #FFFBD1}.ace-clouds .ace_gutter-active-line {background-color : #dcdcdc}.ace-clouds .ace_marker-layer .ace_selected-word {border: 1px solid #BDD5FC}.ace-clouds .ace_invisible {color: #BFBFBF}.ace-clouds .ace_keyword,.ace-clouds .ace_meta,.ace-clouds .ace_support.ace_constant.ace_property-value {color: #AF956F}.ace-clouds .ace_keyword.ace_operator {color: #484848}.ace-clouds .ace_keyword.ace_other.ace_unit {color: #96DC5F}.ace-clouds .ace_constant.ace_language {color: #39946A}.ace-clouds .ace_constant.ace_numeric {color: #46A609}.ace-clouds .ace_constant.ace_character.ace_entity {color: #BF78CC}.ace-clouds .ace_invalid {background-color: #FF002A}.ace-clouds .ace_fold {background-color: #AF956F;border-color: #000000}.ace-clouds .ace_storage,.ace-clouds .ace_support.ace_class,.ace-clouds .ace_support.ace_function,.ace-clouds .ace_support.ace_other,.ace-clouds .ace_support.ace_type {color: #C52727}.ace-clouds .ace_string {color: #5D90CD}.ace-clouds .ace_comment {color: #BCC8BA}.ace-clouds .ace_entity.ace_name.ace_tag,.ace-clouds .ace_entity.ace_other.ace_attribute-name {color: #606060}.ace-clouds .ace_indent-guide {background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y}';var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/clouds\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-clouds_midnight.js",
    "content": "define(\"ace/theme/clouds_midnight\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-clouds-midnight\",t.cssText=\".ace-clouds-midnight .ace_gutter {background: #232323;color: #929292}.ace-clouds-midnight .ace_print-margin {width: 1px;background: #232323}.ace-clouds-midnight {background-color: #191919;color: #929292}.ace-clouds-midnight .ace_cursor {color: #7DA5DC}.ace-clouds-midnight .ace_marker-layer .ace_selection {background: #000000}.ace-clouds-midnight.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #191919;}.ace-clouds-midnight .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-clouds-midnight .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #BFBFBF}.ace-clouds-midnight .ace_marker-layer .ace_active-line {background: rgba(215, 215, 215, 0.031)}.ace-clouds-midnight .ace_gutter-active-line {background-color: rgba(215, 215, 215, 0.031)}.ace-clouds-midnight .ace_marker-layer .ace_selected-word {border: 1px solid #000000}.ace-clouds-midnight .ace_invisible {color: #666}.ace-clouds-midnight .ace_keyword,.ace-clouds-midnight .ace_meta,.ace-clouds-midnight .ace_support.ace_constant.ace_property-value {color: #927C5D}.ace-clouds-midnight .ace_keyword.ace_operator {color: #4B4B4B}.ace-clouds-midnight .ace_keyword.ace_other.ace_unit {color: #366F1A}.ace-clouds-midnight .ace_constant.ace_language {color: #39946A}.ace-clouds-midnight .ace_constant.ace_numeric {color: #46A609}.ace-clouds-midnight .ace_constant.ace_character.ace_entity {color: #A165AC}.ace-clouds-midnight .ace_invalid {color: #FFFFFF;background-color: #E92E2E}.ace-clouds-midnight .ace_fold {background-color: #927C5D;border-color: #929292}.ace-clouds-midnight .ace_storage,.ace-clouds-midnight .ace_support.ace_class,.ace-clouds-midnight .ace_support.ace_function,.ace-clouds-midnight .ace_support.ace_other,.ace-clouds-midnight .ace_support.ace_type {color: #E92E2E}.ace-clouds-midnight .ace_string {color: #5D90CD}.ace-clouds-midnight .ace_comment {color: #3C403B}.ace-clouds-midnight .ace_entity.ace_name.ace_tag,.ace-clouds-midnight .ace_entity.ace_other.ace_attribute-name {color: #606060}.ace-clouds-midnight .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/clouds_midnight\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-cobalt.js",
    "content": "define(\"ace/theme/cobalt\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-cobalt\",t.cssText=\".ace-cobalt .ace_gutter {background: #011e3a;color: rgb(128,145,160)}.ace-cobalt .ace_print-margin {width: 1px;background: #555555}.ace-cobalt {background-color: #002240;color: #FFFFFF}.ace-cobalt .ace_cursor {color: #FFFFFF}.ace-cobalt .ace_marker-layer .ace_selection {background: rgba(179, 101, 57, 0.75)}.ace-cobalt.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #002240;}.ace-cobalt .ace_marker-layer .ace_step {background: rgb(127, 111, 19)}.ace-cobalt .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 255, 255, 0.15)}.ace-cobalt .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.35)}.ace-cobalt .ace_gutter-active-line {background-color: rgba(0, 0, 0, 0.35)}.ace-cobalt .ace_marker-layer .ace_selected-word {border: 1px solid rgba(179, 101, 57, 0.75)}.ace-cobalt .ace_invisible {color: rgba(255, 255, 255, 0.15)}.ace-cobalt .ace_keyword,.ace-cobalt .ace_meta {color: #FF9D00}.ace-cobalt .ace_constant,.ace-cobalt .ace_constant.ace_character,.ace-cobalt .ace_constant.ace_character.ace_escape,.ace-cobalt .ace_constant.ace_other {color: #FF628C}.ace-cobalt .ace_invalid {color: #F8F8F8;background-color: #800F00}.ace-cobalt .ace_support {color: #80FFBB}.ace-cobalt .ace_support.ace_constant {color: #EB939A}.ace-cobalt .ace_fold {background-color: #FF9D00;border-color: #FFFFFF}.ace-cobalt .ace_support.ace_function {color: #FFB054}.ace-cobalt .ace_storage {color: #FFEE80}.ace-cobalt .ace_entity {color: #FFDD00}.ace-cobalt .ace_string {color: #3AD900}.ace-cobalt .ace_string.ace_regexp {color: #80FFC2}.ace-cobalt .ace_comment {font-style: italic;color: #0088FF}.ace-cobalt .ace_heading,.ace-cobalt .ace_markup.ace_heading {color: #C8E4FD;background-color: #001221}.ace-cobalt .ace_list,.ace-cobalt .ace_markup.ace_list {background-color: #130D26}.ace-cobalt .ace_variable {color: #CCCCCC}.ace-cobalt .ace_variable.ace_language {color: #FF80E1}.ace-cobalt .ace_meta.ace_tag {color: #9EFFFF}.ace-cobalt .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHCLSvkPAAP3AgSDTRd4AAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/cobalt\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-crimson_editor.js",
    "content": "define(\"ace/theme/crimson_editor\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssText='.ace-crimson-editor .ace_gutter {background: #ebebeb;color: #333;overflow : hidden;}.ace-crimson-editor .ace_gutter-layer {width: 100%;text-align: right;}.ace-crimson-editor .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-crimson-editor {background-color: #FFFFFF;color: rgb(64, 64, 64);}.ace-crimson-editor .ace_cursor {color: black;}.ace-crimson-editor .ace_invisible {color: rgb(191, 191, 191);}.ace-crimson-editor .ace_identifier {color: black;}.ace-crimson-editor .ace_keyword {color: blue;}.ace-crimson-editor .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-crimson-editor .ace_constant.ace_language {color: rgb(255, 156, 0);}.ace-crimson-editor .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-crimson-editor .ace_invalid {text-decoration: line-through;color: rgb(224, 0, 0);}.ace-crimson-editor .ace_fold {}.ace-crimson-editor .ace_support.ace_function {color: rgb(192, 0, 0);}.ace-crimson-editor .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-crimson-editor .ace_support.ace_type,.ace-crimson-editor .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-crimson-editor .ace_keyword.ace_operator {color: rgb(49, 132, 149);}.ace-crimson-editor .ace_string {color: rgb(128, 0, 128);}.ace-crimson-editor .ace_comment {color: rgb(76, 136, 107);}.ace-crimson-editor .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-crimson-editor .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-crimson-editor .ace_constant.ace_numeric {color: rgb(0, 0, 64);}.ace-crimson-editor .ace_variable {color: rgb(0, 64, 128);}.ace-crimson-editor .ace_xml-pe {color: rgb(104, 104, 91);}.ace-crimson-editor .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-crimson-editor .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-crimson-editor .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-crimson-editor .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-crimson-editor .ace_marker-layer .ace_active-line {background: rgb(232, 242, 254);}.ace-crimson-editor .ace_gutter-active-line {background-color : #dcdcdc;}.ace-crimson-editor .ace_meta.ace_tag {color:rgb(28, 2, 255);}.ace-crimson-editor .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-crimson-editor .ace_string.ace_regex {color: rgb(192, 0, 192);}.ace-crimson-editor .ace_indent-guide {background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;}',t.cssClass=\"ace-crimson-editor\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/crimson_editor\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-dawn.js",
    "content": "define(\"ace/theme/dawn\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssClass=\"ace-dawn\",t.cssText=\".ace-dawn .ace_gutter {background: #ebebeb;color: #333}.ace-dawn .ace_print-margin {width: 1px;background: #e8e8e8}.ace-dawn {background-color: #F9F9F9;color: #080808}.ace-dawn .ace_cursor {color: #000000}.ace-dawn .ace_marker-layer .ace_selection {background: rgba(39, 95, 255, 0.30)}.ace-dawn.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #F9F9F9;}.ace-dawn .ace_marker-layer .ace_step {background: rgb(255, 255, 0)}.ace-dawn .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(75, 75, 126, 0.50)}.ace-dawn .ace_marker-layer .ace_active-line {background: rgba(36, 99, 180, 0.12)}.ace-dawn .ace_gutter-active-line {background-color : #dcdcdc}.ace-dawn .ace_marker-layer .ace_selected-word {border: 1px solid rgba(39, 95, 255, 0.30)}.ace-dawn .ace_invisible {color: rgba(75, 75, 126, 0.50)}.ace-dawn .ace_keyword,.ace-dawn .ace_meta {color: #794938}.ace-dawn .ace_constant,.ace-dawn .ace_constant.ace_character,.ace-dawn .ace_constant.ace_character.ace_escape,.ace-dawn .ace_constant.ace_other {color: #811F24}.ace-dawn .ace_invalid.ace_illegal {text-decoration: underline;font-style: italic;color: #F8F8F8;background-color: #B52A1D}.ace-dawn .ace_invalid.ace_deprecated {text-decoration: underline;font-style: italic;color: #B52A1D}.ace-dawn .ace_support {color: #691C97}.ace-dawn .ace_support.ace_constant {color: #B4371F}.ace-dawn .ace_fold {background-color: #794938;border-color: #080808}.ace-dawn .ace_list,.ace-dawn .ace_markup.ace_list,.ace-dawn .ace_support.ace_function {color: #693A17}.ace-dawn .ace_storage {font-style: italic;color: #A71D5D}.ace-dawn .ace_string {color: #0B6125}.ace-dawn .ace_string.ace_regexp {color: #CF5628}.ace-dawn .ace_comment {font-style: italic;color: #5A525F}.ace-dawn .ace_heading,.ace-dawn .ace_markup.ace_heading {color: #19356D}.ace-dawn .ace_variable {color: #234A97}.ace-dawn .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLh/5+x/AAizA4hxNNsZAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/dawn\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-dracula.js",
    "content": "define(\"ace/theme/dracula\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-dracula\",t.cssText=\".ace-dracula .ace_gutter {background: #282a36;color: rgb(144,145,148)}.ace-dracula .ace_print-margin {width: 1px;background: #44475a}.ace-dracula {background-color: #282a36;color: #f8f8f2}.ace-dracula .ace_cursor {color: #f8f8f0}.ace-dracula .ace_marker-layer .ace_selection {background: #44475a}.ace-dracula.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #282a36;border-radius: 2px}.ace-dracula .ace_marker-layer .ace_step {background: rgb(198, 219, 174)}.ace-dracula .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #a29709}.ace-dracula .ace_marker-layer .ace_active-line {background: #44475a}.ace-dracula .ace_gutter-active-line {background-color: #44475a}.ace-dracula .ace_marker-layer .ace_selected-word {box-shadow: 0px 0px 0px 1px #a29709;border-radius: 3px;}.ace-dracula .ace_fold {background-color: #50fa7b;border-color: #f8f8f2}.ace-dracula .ace_keyword {color: #ff79c6}.ace-dracula .ace_constant.ace_language {color: #bd93f9}.ace-dracula .ace_constant.ace_numeric {color: #bd93f9}.ace-dracula .ace_constant.ace_character {color: #bd93f9}.ace-dracula .ace_constant.ace_character.ace_escape {color: #ff79c6}.ace-dracula .ace_constant.ace_other {color: #bd93f9}.ace-dracula .ace_support.ace_function {color: #8be9fd}.ace-dracula .ace_support.ace_constant {color: #6be5fd}.ace-dracula .ace_support.ace_class {font-style: italic;color: #66d9ef}.ace-dracula .ace_support.ace_type {font-style: italic;color: #66d9ef}.ace-dracula .ace_storage {color: #ff79c6}.ace-dracula .ace_storage.ace_type {font-style: italic;color: #8be9fd}.ace-dracula .ace_invalid {color: #F8F8F0;background-color: #ff79c6}.ace-dracula .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #bd93f9}.ace-dracula .ace_string {color: #f1fa8c}.ace-dracula .ace_comment {color: #6272a4}.ace-dracula .ace_variable {color: #50fa7b}.ace-dracula .ace_variable.ace_parameter {font-style: italic;color: #ffb86c}.ace-dracula .ace_entity.ace_other.ace_attribute-name {color: #50fa7b}.ace-dracula .ace_entity.ace_name.ace_function {color: #50fa7b}.ace-dracula .ace_entity.ace_name.ace_tag {color: #ff79c6}.ace-dracula .ace_invisible {color: #626680;}.ace-dracula .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y}\",t.$selectionColorConflict=!0;var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/dracula\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-dreamweaver.js",
    "content": "define(\"ace/theme/dreamweaver\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssClass=\"ace-dreamweaver\",t.cssText='.ace-dreamweaver .ace_gutter {background: #e8e8e8;color: #333;}.ace-dreamweaver .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-dreamweaver {background-color: #FFFFFF;color: black;}.ace-dreamweaver .ace_fold {background-color: #757AD8;}.ace-dreamweaver .ace_cursor {color: black;}.ace-dreamweaver .ace_invisible {color: rgb(191, 191, 191);}.ace-dreamweaver .ace_storage,.ace-dreamweaver .ace_keyword {color: blue;}.ace-dreamweaver .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-dreamweaver .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-dreamweaver .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-dreamweaver .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-dreamweaver .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-dreamweaver .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-dreamweaver .ace_support.ace_type,.ace-dreamweaver .ace_support.ace_class {color: #009;}.ace-dreamweaver .ace_support.ace_php_tag {color: #f00;}.ace-dreamweaver .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-dreamweaver .ace_string {color: #00F;}.ace-dreamweaver .ace_comment {color: rgb(76, 136, 107);}.ace-dreamweaver .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-dreamweaver .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-dreamweaver .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-dreamweaver .ace_variable {color: #06F}.ace-dreamweaver .ace_xml-pe {color: rgb(104, 104, 91);}.ace-dreamweaver .ace_entity.ace_name.ace_function {color: #00F;}.ace-dreamweaver .ace_heading {color: rgb(12, 7, 255);}.ace-dreamweaver .ace_list {color:rgb(185, 6, 144);}.ace-dreamweaver .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-dreamweaver .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-dreamweaver .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-dreamweaver .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-dreamweaver .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-dreamweaver .ace_gutter-active-line {background-color : #DCDCDC;}.ace-dreamweaver .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-dreamweaver .ace_meta.ace_tag {color:#009;}.ace-dreamweaver .ace_meta.ace_tag.ace_anchor {color:#060;}.ace-dreamweaver .ace_meta.ace_tag.ace_form {color:#F90;}.ace-dreamweaver .ace_meta.ace_tag.ace_image {color:#909;}.ace-dreamweaver .ace_meta.ace_tag.ace_script {color:#900;}.ace-dreamweaver .ace_meta.ace_tag.ace_style {color:#909;}.ace-dreamweaver .ace_meta.ace_tag.ace_table {color:#099;}.ace-dreamweaver .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-dreamweaver .ace_indent-guide {background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;}';var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/dreamweaver\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-eclipse.js",
    "content": "define(\"ace/theme/eclipse\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";t.isDark=!1,t.cssText='.ace-eclipse .ace_gutter {background: #ebebeb;border-right: 1px solid rgb(159, 159, 159);color: rgb(136, 136, 136);}.ace-eclipse .ace_print-margin {width: 1px;background: #ebebeb;}.ace-eclipse {background-color: #FFFFFF;color: black;}.ace-eclipse .ace_fold {background-color: rgb(60, 76, 114);}.ace-eclipse .ace_cursor {color: black;}.ace-eclipse .ace_storage,.ace-eclipse .ace_keyword,.ace-eclipse .ace_variable {color: rgb(127, 0, 85);}.ace-eclipse .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-eclipse .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-eclipse .ace_function {color: rgb(60, 76, 114);}.ace-eclipse .ace_string {color: rgb(42, 0, 255);}.ace-eclipse .ace_comment {color: rgb(113, 150, 130);}.ace-eclipse .ace_comment.ace_doc {color: rgb(63, 95, 191);}.ace-eclipse .ace_comment.ace_doc.ace_tag {color: rgb(127, 159, 191);}.ace-eclipse .ace_constant.ace_numeric {color: darkblue;}.ace-eclipse .ace_tag {color: rgb(25, 118, 116);}.ace-eclipse .ace_type {color: rgb(127, 0, 127);}.ace-eclipse .ace_xml-pe {color: rgb(104, 104, 91);}.ace-eclipse .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-eclipse .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-eclipse .ace_meta.ace_tag {color:rgb(25, 118, 116);}.ace-eclipse .ace_invisible {color: #ddd;}.ace-eclipse .ace_entity.ace_other.ace_attribute-name {color:rgb(127, 0, 127);}.ace-eclipse .ace_marker-layer .ace_step {background: rgb(255, 255, 0);}.ace-eclipse .ace_active-line {background: rgb(232, 242, 254);}.ace-eclipse .ace_gutter-active-line {background-color : #DADADA;}.ace-eclipse .ace_marker-layer .ace_selected-word {border: 1px solid rgb(181, 213, 255);}.ace-eclipse .ace_indent-guide {background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;}',t.cssClass=\"ace-eclipse\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/eclipse\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-github.js",
    "content": "define(\"ace/theme/github\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssClass=\"ace-github\",t.cssText='.ace-github .ace_gutter {background: #e8e8e8;color: #AAA;}.ace-github  {background: #fff;color: #000;}.ace-github .ace_keyword {font-weight: bold;}.ace-github .ace_string {color: #D14;}.ace-github .ace_variable.ace_class {color: teal;}.ace-github .ace_constant.ace_numeric {color: #099;}.ace-github .ace_constant.ace_buildin {color: #0086B3;}.ace-github .ace_support.ace_function {color: #0086B3;}.ace-github .ace_comment {color: #998;font-style: italic;}.ace-github .ace_variable.ace_language  {color: #0086B3;}.ace-github .ace_paren {font-weight: bold;}.ace-github .ace_boolean {font-weight: bold;}.ace-github .ace_string.ace_regexp {color: #009926;font-weight: normal;}.ace-github .ace_variable.ace_instance {color: teal;}.ace-github .ace_constant.ace_language {font-weight: bold;}.ace-github .ace_cursor {color: black;}.ace-github.ace_focus .ace_marker-layer .ace_active-line {background: rgb(255, 255, 204);}.ace-github .ace_marker-layer .ace_active-line {background: rgb(245, 245, 245);}.ace-github .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-github.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-github.ace_nobold .ace_line > span {font-weight: normal !important;}.ace-github .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-github .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-github .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-github .ace_gutter-active-line {background-color : rgba(0, 0, 0, 0.07);}.ace-github .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-github .ace_invisible {color: #BFBFBF}.ace-github .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-github .ace_indent-guide {background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;}';var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/github\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-gob.js",
    "content": "define(\"ace/theme/gob\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-gob\",t.cssText=\".ace-gob .ace_gutter {background: #0B1818;color: #03EE03}.ace-gob .ace_print-margin {width: 1px;background: #131313}.ace-gob {background-color: #0B0B0B;color: #00FF00}.ace-gob .ace_cursor {border-color: rgba(16, 248, 255, 0.90);background-color: rgba(16, 240, 248, 0.70);opacity: 0.4;}.ace-gob .ace_marker-layer .ace_selection {background: rgba(221, 240, 255, 0.20)}.ace-gob.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #141414;}.ace-gob .ace_marker-layer .ace_step {background: rgb(16, 128, 0)}.ace-gob .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(64, 255, 255, 0.25)}.ace-gob .ace_marker-layer .ace_active-line {background: rgba(255, 255, 255, 0.04)}.ace-gob .ace_gutter-active-line {background-color: rgba(255, 255, 255, 0.04)}.ace-gob .ace_marker-layer .ace_selected-word {border: 1px solid rgba(192, 240, 255, 0.20)}.ace-gob .ace_invisible {color: rgba(255, 255, 255, 0.25)}.ace-gob .ace_keyword,.ace-gob .ace_meta {color: #10D8E8}.ace-gob .ace_constant,.ace-gob .ace_constant.ace_character,.ace-gob .ace_constant.ace_character.ace_escape,.ace-gob .ace_constant.ace_other,.ace-gob .ace_heading,.ace-gob .ace_markup.ace_heading,.ace-gob .ace_support.ace_constant {color: #10F0A0}.ace-gob .ace_invalid.ace_illegal {color: #F8F8F8;background-color: rgba(86, 45, 86, 0.75)}.ace-gob .ace_invalid.ace_deprecated {text-decoration: underline;font-style: italic;color: #20F8C0}.ace-gob .ace_support {color: #20E8B0}.ace-gob .ace_fold {background-color: #50B8B8;border-color: #70F8F8}.ace-gob .ace_support.ace_function {color: #00F800}.ace-gob .ace_list,.ace-gob .ace_markup.ace_list,.ace-gob .ace_storage {color: #10FF98}.ace-gob .ace_entity.ace_name.ace_function,.ace-gob .ace_meta.ace_tag,.ace-gob .ace_variable {color: #00F868}.ace-gob .ace_string {color: #10F060}.ace-gob .ace_string.ace_regexp {color: #20F090;}.ace-gob .ace_comment {font-style: italic;color: #00E060;}.ace-gob .ace_variable {color: #00F888;}.ace-gob .ace_xml-pe {color: #488858;}.ace-gob .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/gob\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-gruvbox.js",
    "content": "define(\"ace/theme/gruvbox\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-gruvbox\",t.cssText='.ace-gruvbox .ace_gutter-active-line {background-color: #3C3836;}.ace-gruvbox {color: #EBDAB4;background-color: #1D2021;}.ace-gruvbox .ace_invisible {color: #504945;}.ace-gruvbox .ace_marker-layer .ace_selection {background: rgba(179, 101, 57, 0.75)}.ace-gruvbox.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #002240;}.ace-gruvbox .ace_keyword {color: #8ec07c;}.ace-gruvbox .ace_comment {font-style: italic;color: #928375;}.ace-gruvbox .ace-statement {color: red;}.ace-gruvbox .ace_variable {color: #84A598;}.ace-gruvbox .ace_variable.ace_language {color: #D2879B;}.ace-gruvbox .ace_constant {color: #C2859A;}.ace-gruvbox .ace_constant.ace_language {color: #C2859A;}.ace-gruvbox .ace_constant.ace_numeric {color: #C2859A;}.ace-gruvbox .ace_string {color: #B8BA37;}.ace-gruvbox .ace_support {color: #F9BC41;}.ace-gruvbox .ace_support.ace_function {color: #F84B3C;}.ace-gruvbox .ace_storage {color: #8FBF7F;}.ace-gruvbox .ace_keyword.ace_operator {color: #EBDAB4;}.ace-gruvbox .ace_punctuation.ace_operator {color: yellow;}.ace-gruvbox .ace_marker-layer .ace_active-line {background: #3C3836;}.ace-gruvbox .ace_marker-layer .ace_selected-word {border-radius: 4px;border: 8px solid #3f475d;}.ace-gruvbox .ace_print-margin {width: 5px;background: #3C3836;}.ace-gruvbox .ace_indent-guide {background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQUFD4z6Crq/sfAAuYAuYl+7lfAAAAAElFTkSuQmCC\") right repeat-y;}';var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/gruvbox\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-idle_fingers.js",
    "content": "define(\"ace/theme/idle_fingers\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-idle-fingers\",t.cssText=\".ace-idle-fingers .ace_gutter {background: #3b3b3b;color: rgb(153,153,153)}.ace-idle-fingers .ace_print-margin {width: 1px;background: #3b3b3b}.ace-idle-fingers {background-color: #323232;color: #FFFFFF}.ace-idle-fingers .ace_cursor {color: #91FF00}.ace-idle-fingers .ace_marker-layer .ace_selection {background: rgba(90, 100, 126, 0.88)}.ace-idle-fingers.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #323232;}.ace-idle-fingers .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-idle-fingers .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #404040}.ace-idle-fingers .ace_marker-layer .ace_active-line {background: #353637}.ace-idle-fingers .ace_gutter-active-line {background-color: #353637}.ace-idle-fingers .ace_marker-layer .ace_selected-word {border: 1px solid rgba(90, 100, 126, 0.88)}.ace-idle-fingers .ace_invisible {color: #404040}.ace-idle-fingers .ace_keyword,.ace-idle-fingers .ace_meta {color: #CC7833}.ace-idle-fingers .ace_constant,.ace-idle-fingers .ace_constant.ace_character,.ace-idle-fingers .ace_constant.ace_character.ace_escape,.ace-idle-fingers .ace_constant.ace_other,.ace-idle-fingers .ace_support.ace_constant {color: #6C99BB}.ace-idle-fingers .ace_invalid {color: #FFFFFF;background-color: #FF0000}.ace-idle-fingers .ace_fold {background-color: #CC7833;border-color: #FFFFFF}.ace-idle-fingers .ace_support.ace_function {color: #B83426}.ace-idle-fingers .ace_variable.ace_parameter {font-style: italic}.ace-idle-fingers .ace_string {color: #A5C261}.ace-idle-fingers .ace_string.ace_regexp {color: #CCCC33}.ace-idle-fingers .ace_comment {font-style: italic;color: #BC9458}.ace-idle-fingers .ace_meta.ace_tag {color: #FFE5BB}.ace-idle-fingers .ace_entity.ace_name {color: #FFC66D}.ace-idle-fingers .ace_collab.ace_user1 {color: #323232;background-color: #FFF980}.ace-idle-fingers .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMwMjLyZYiPj/8PAAreAwAI1+g0AAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/idle_fingers\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-iplastic.js",
    "content": "define(\"ace/theme/iplastic\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssClass=\"ace-iplastic\",t.cssText=\".ace-iplastic .ace_gutter {background: #dddddd;color: #666666}.ace-iplastic .ace_print-margin {width: 1px;background: #bbbbbb}.ace-iplastic {background-color: #eeeeee;color: #333333}.ace-iplastic .ace_cursor {color: #333}.ace-iplastic .ace_marker-layer .ace_selection {background: #BAD6FD;}.ace-iplastic.ace_multiselect .ace_selection.ace_start {border-radius: 4px}.ace-iplastic .ace_marker-layer .ace_step {background: #444444}.ace-iplastic .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E;background: #FFF799}.ace-iplastic .ace_marker-layer .ace_active-line {background: #e5e5e5}.ace-iplastic .ace_gutter-active-line {background-color: #eeeeee}.ace-iplastic .ace_marker-layer .ace_selected-word {border: 1px solid #555555;border-radius:4px}.ace-iplastic .ace_invisible {color: #999999}.ace-iplastic .ace_entity.ace_name.ace_tag,.ace-iplastic .ace_keyword,.ace-iplastic .ace_meta.ace_tag,.ace-iplastic .ace_storage {color: #0000FF}.ace-iplastic .ace_punctuation,.ace-iplastic .ace_punctuation.ace_tag {color: #000}.ace-iplastic .ace_constant {color: #333333;font-weight: 700}.ace-iplastic .ace_constant.ace_character,.ace-iplastic .ace_constant.ace_language,.ace-iplastic .ace_constant.ace_numeric,.ace-iplastic .ace_constant.ace_other {color: #0066FF;font-weight: 700}.ace-iplastic .ace_constant.ace_numeric{font-weight: 100}.ace-iplastic .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-iplastic .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-iplastic .ace_support.ace_constant,.ace-iplastic .ace_support.ace_function {color: #333333;font-weight: 700}.ace-iplastic .ace_fold {background-color: #464646;border-color: #F8F8F2}.ace-iplastic .ace_storage.ace_type,.ace-iplastic .ace_support.ace_class,.ace-iplastic .ace_support.ace_type {color: #3333fc;font-weight: 700}.ace-iplastic .ace_entity.ace_name.ace_function,.ace-iplastic .ace_entity.ace_other,.ace-iplastic .ace_entity.ace_other.ace_attribute-name,.ace-iplastic .ace_variable {color: #3366cc;font-style: italic}.ace-iplastic .ace_variable.ace_parameter {font-style: italic;color: #2469E0}.ace-iplastic .ace_string {color: #a55f03}.ace-iplastic .ace_comment {color: #777777;font-style: italic}.ace-iplastic .ace_fold-widget {background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==);}.ace-iplastic .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAABlJREFUeNpi+P//PwMzMzPzfwAAAAD//wMAGRsECSML/RIAAAAASUVORK5CYII=) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/iplastic\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-katzenmilch.js",
    "content": "define(\"ace/theme/katzenmilch\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssClass=\"ace-katzenmilch\",t.cssText=\".ace-katzenmilch .ace_gutter,.ace-katzenmilch .ace_gutter {background: #e8e8e8;color: #333}.ace-katzenmilch .ace_print-margin {width: 1px;background: #e8e8e8}.ace-katzenmilch {background-color: #f3f2f3;color: rgba(15, 0, 9, 1.0)}.ace-katzenmilch .ace_cursor {border-left: 2px solid #100011}.ace-katzenmilch .ace_overwrite-cursors .ace_cursor {border-left: 0px;border-bottom: 1px solid #100011}.ace-katzenmilch .ace_marker-layer .ace_selection {background: rgba(100, 5, 208, 0.27)}.ace-katzenmilch.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #f3f2f3;}.ace-katzenmilch .ace_marker-layer .ace_step {background: rgb(198, 219, 174)}.ace-katzenmilch .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(0, 0, 0, 0.33);}.ace-katzenmilch .ace_marker-layer .ace_active-line {background: rgb(232, 242, 254)}.ace-katzenmilch .ace_gutter-active-line {background-color: rgb(232, 242, 254)}.ace-katzenmilch .ace_marker-layer .ace_selected-word {border: 1px solid rgba(100, 5, 208, 0.27)}.ace-katzenmilch .ace_invisible {color: #BFBFBF}.ace-katzenmilch .ace_fold {background-color: rgba(2, 95, 73, 0.97);border-color: rgba(15, 0, 9, 1.0)}.ace-katzenmilch .ace_keyword {color: #674Aa8;rbackground-color: rgba(163, 170, 216, 0.055)}.ace-katzenmilch .ace_constant.ace_language {color: #7D7e52;rbackground-color: rgba(189, 190, 130, 0.059)}.ace-katzenmilch .ace_constant.ace_numeric {color: rgba(79, 130, 123, 0.93);rbackground-color: rgba(119, 194, 187, 0.059)}.ace-katzenmilch .ace_constant.ace_character,.ace-katzenmilch .ace_constant.ace_other {color: rgba(2, 95, 105, 1.0);rbackground-color: rgba(127, 34, 153, 0.063)}.ace-katzenmilch .ace_support.ace_function {color: #9D7e62;rbackground-color: rgba(189, 190, 130, 0.039)}.ace-katzenmilch .ace_support.ace_class {color: rgba(239, 106, 167, 1.0);rbackground-color: rgba(239, 106, 167, 0.063)}.ace-katzenmilch .ace_storage {color: rgba(123, 92, 191, 1.0);rbackground-color: rgba(139, 93, 223, 0.051)}.ace-katzenmilch .ace_invalid {color: #DFDFD5;rbackground-color: #CC1B27}.ace-katzenmilch .ace_string {color: #5a5f9b;rbackground-color: rgba(170, 175, 219, 0.035)}.ace-katzenmilch .ace_comment {font-style: italic;color: rgba(64, 79, 80, 0.67);rbackground-color: rgba(95, 15, 255, 0.0078)}.ace-katzenmilch .ace_entity.ace_name.ace_function,.ace-katzenmilch .ace_variable {color: rgba(2, 95, 73, 0.97);rbackground-color: rgba(34, 255, 73, 0.12)}.ace-katzenmilch .ace_variable.ace_language {color: #316fcf;rbackground-color: rgba(58, 175, 255, 0.039)}.ace-katzenmilch .ace_variable.ace_parameter {font-style: italic;color: rgba(51, 150, 159, 0.87);rbackground-color: rgba(5, 214, 249, 0.043)}.ace-katzenmilch .ace_entity.ace_other.ace_attribute-name {color: rgba(73, 70, 194, 0.93);rbackground-color: rgba(73, 134, 194, 0.035)}.ace-katzenmilch .ace_entity.ace_name.ace_tag {color: #3976a2;rbackground-color: rgba(73, 166, 210, 0.039)}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/katzenmilch\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-kr_theme.js",
    "content": "define(\"ace/theme/kr_theme\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-kr-theme\",t.cssText=\".ace-kr-theme .ace_gutter {background: #1c1917;color: #FCFFE0}.ace-kr-theme .ace_print-margin {width: 1px;background: #1c1917}.ace-kr-theme {background-color: #0B0A09;color: #FCFFE0}.ace-kr-theme .ace_cursor {color: #FF9900}.ace-kr-theme .ace_marker-layer .ace_selection {background: rgba(170, 0, 255, 0.45)}.ace-kr-theme.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #0B0A09;}.ace-kr-theme .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-kr-theme .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 177, 111, 0.32)}.ace-kr-theme .ace_marker-layer .ace_active-line {background: #38403D}.ace-kr-theme .ace_gutter-active-line {background-color : #38403D}.ace-kr-theme .ace_marker-layer .ace_selected-word {border: 1px solid rgba(170, 0, 255, 0.45)}.ace-kr-theme .ace_invisible {color: rgba(255, 177, 111, 0.32)}.ace-kr-theme .ace_keyword,.ace-kr-theme .ace_meta {color: #949C8B}.ace-kr-theme .ace_constant,.ace-kr-theme .ace_constant.ace_character,.ace-kr-theme .ace_constant.ace_character.ace_escape,.ace-kr-theme .ace_constant.ace_other {color: rgba(210, 117, 24, 0.76)}.ace-kr-theme .ace_invalid {color: #F8F8F8;background-color: #A41300}.ace-kr-theme .ace_support {color: #9FC28A}.ace-kr-theme .ace_support.ace_constant {color: #C27E66}.ace-kr-theme .ace_fold {background-color: #949C8B;border-color: #FCFFE0}.ace-kr-theme .ace_support.ace_function {color: #85873A}.ace-kr-theme .ace_storage {color: #FFEE80}.ace-kr-theme .ace_string {color: rgba(164, 161, 181, 0.8)}.ace-kr-theme .ace_string.ace_regexp {color: rgba(125, 255, 192, 0.65)}.ace-kr-theme .ace_comment {font-style: italic;color: #706D5B}.ace-kr-theme .ace_variable {color: #D1A796}.ace-kr-theme .ace_list,.ace-kr-theme .ace_markup.ace_list {background-color: #0F0040}.ace-kr-theme .ace_variable.ace_language {color: #FF80E1}.ace-kr-theme .ace_meta.ace_tag {color: #BABD9C}.ace-kr-theme .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYFBXV/8PAAJoAXX4kT2EAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/kr_theme\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-kuroir.js",
    "content": "define(\"ace/theme/kuroir\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssClass=\"ace-kuroir\",t.cssText=\".ace-kuroir .ace_gutter {background: #e8e8e8;color: #333;}.ace-kuroir .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-kuroir {background-color: #E8E9E8;color: #363636;}.ace-kuroir .ace_cursor {color: #202020;}.ace-kuroir .ace_marker-layer .ace_selection {background: rgba(245, 170, 0, 0.57);}.ace-kuroir.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #E8E9E8;}.ace-kuroir .ace_marker-layer .ace_step {background: rgb(198, 219, 174);}.ace-kuroir .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(0, 0, 0, 0.29);}.ace-kuroir .ace_marker-layer .ace_active-line {background: rgba(203, 220, 47, 0.22);}.ace-kuroir .ace_gutter-active-line {background-color: rgba(203, 220, 47, 0.22);}.ace-kuroir .ace_marker-layer .ace_selected-word {border: 1px solid rgba(245, 170, 0, 0.57);}.ace-kuroir .ace_invisible {color: #BFBFBF}.ace-kuroir .ace_fold {border-color: #363636;}.ace-kuroir .ace_constant{color:#CD6839;}.ace-kuroir .ace_constant.ace_numeric{color:#9A5925;}.ace-kuroir .ace_support{color:#104E8B;}.ace-kuroir .ace_support.ace_function{color:#005273;}.ace-kuroir .ace_support.ace_constant{color:#CF6A4C;}.ace-kuroir .ace_storage{color:#A52A2A;}.ace-kuroir .ace_invalid.ace_illegal{color:#FD1224;background-color:rgba(255, 6, 0, 0.15);}.ace-kuroir .ace_invalid.ace_deprecated{text-decoration:underline;font-style:italic;color:#FD1732;background-color:#E8E9E8;}.ace-kuroir .ace_string{color:#639300;}.ace-kuroir .ace_string.ace_regexp{color:#417E00;background-color:#C9D4BE;}.ace-kuroir .ace_comment{color:rgba(148, 148, 148, 0.91);background-color:rgba(220, 220, 220, 0.56);}.ace-kuroir .ace_variable{color:#009ACD;}.ace-kuroir .ace_meta.ace_tag{color:#005273;}.ace-kuroir .ace_markup.ace_heading{color:#B8012D;background-color:rgba(191, 97, 51, 0.051);}.ace-kuroir .ace_markup.ace_list{color:#8F5B26;}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/kuroir\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-merbivore.js",
    "content": "define(\"ace/theme/merbivore\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-merbivore\",t.cssText=\".ace-merbivore .ace_gutter {background: #202020;color: #E6E1DC}.ace-merbivore .ace_print-margin {width: 1px;background: #555651}.ace-merbivore {background-color: #161616;color: #E6E1DC}.ace-merbivore .ace_cursor {color: #FFFFFF}.ace-merbivore .ace_marker-layer .ace_selection {background: #454545}.ace-merbivore.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #161616;}.ace-merbivore .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-merbivore .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #404040}.ace-merbivore .ace_marker-layer .ace_active-line {background: #333435}.ace-merbivore .ace_gutter-active-line {background-color: #333435}.ace-merbivore .ace_marker-layer .ace_selected-word {border: 1px solid #454545}.ace-merbivore .ace_invisible {color: #404040}.ace-merbivore .ace_entity.ace_name.ace_tag,.ace-merbivore .ace_keyword,.ace-merbivore .ace_meta,.ace-merbivore .ace_meta.ace_tag,.ace-merbivore .ace_storage,.ace-merbivore .ace_support.ace_function {color: #FC6F09}.ace-merbivore .ace_constant,.ace-merbivore .ace_constant.ace_character,.ace-merbivore .ace_constant.ace_character.ace_escape,.ace-merbivore .ace_constant.ace_other,.ace-merbivore .ace_support.ace_type {color: #1EDAFB}.ace-merbivore .ace_constant.ace_character.ace_escape {color: #519F50}.ace-merbivore .ace_constant.ace_language {color: #FDC251}.ace-merbivore .ace_constant.ace_library,.ace-merbivore .ace_string,.ace-merbivore .ace_support.ace_constant {color: #8DFF0A}.ace-merbivore .ace_constant.ace_numeric {color: #58C554}.ace-merbivore .ace_invalid {color: #FFFFFF;background-color: #990000}.ace-merbivore .ace_fold {background-color: #FC6F09;border-color: #E6E1DC}.ace-merbivore .ace_comment {font-style: italic;color: #AD2EA4}.ace-merbivore .ace_entity.ace_other.ace_attribute-name {color: #FFFF89}.ace-merbivore .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQFxf3ZXB1df0PAAdsAmERTkEHAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/merbivore\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-merbivore_soft.js",
    "content": "define(\"ace/theme/merbivore_soft\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-merbivore-soft\",t.cssText=\".ace-merbivore-soft .ace_gutter {background: #262424;color: #E6E1DC}.ace-merbivore-soft .ace_print-margin {width: 1px;background: #262424}.ace-merbivore-soft {background-color: #1C1C1C;color: #E6E1DC}.ace-merbivore-soft .ace_cursor {color: #FFFFFF}.ace-merbivore-soft .ace_marker-layer .ace_selection {background: #494949}.ace-merbivore-soft.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #1C1C1C;}.ace-merbivore-soft .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-merbivore-soft .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #404040}.ace-merbivore-soft .ace_marker-layer .ace_active-line {background: #333435}.ace-merbivore-soft .ace_gutter-active-line {background-color: #333435}.ace-merbivore-soft .ace_marker-layer .ace_selected-word {border: 1px solid #494949}.ace-merbivore-soft .ace_invisible {color: #404040}.ace-merbivore-soft .ace_entity.ace_name.ace_tag,.ace-merbivore-soft .ace_keyword,.ace-merbivore-soft .ace_meta,.ace-merbivore-soft .ace_meta.ace_tag,.ace-merbivore-soft .ace_storage {color: #FC803A}.ace-merbivore-soft .ace_constant,.ace-merbivore-soft .ace_constant.ace_character,.ace-merbivore-soft .ace_constant.ace_character.ace_escape,.ace-merbivore-soft .ace_constant.ace_other,.ace-merbivore-soft .ace_support.ace_type {color: #68C1D8}.ace-merbivore-soft .ace_constant.ace_character.ace_escape {color: #B3E5B4}.ace-merbivore-soft .ace_constant.ace_language {color: #E1C582}.ace-merbivore-soft .ace_constant.ace_library,.ace-merbivore-soft .ace_string,.ace-merbivore-soft .ace_support.ace_constant {color: #8EC65F}.ace-merbivore-soft .ace_constant.ace_numeric {color: #7FC578}.ace-merbivore-soft .ace_invalid,.ace-merbivore-soft .ace_invalid.ace_deprecated {color: #FFFFFF;background-color: #FE3838}.ace-merbivore-soft .ace_fold {background-color: #FC803A;border-color: #E6E1DC}.ace-merbivore-soft .ace_comment,.ace-merbivore-soft .ace_meta {font-style: italic;color: #AC4BB8}.ace-merbivore-soft .ace_entity.ace_other.ace_attribute-name {color: #EAF1A3}.ace-merbivore-soft .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWOQkpLyZfD09PwPAAfYAnaStpHRAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/merbivore_soft\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-mono_industrial.js",
    "content": "define(\"ace/theme/mono_industrial\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-mono-industrial\",t.cssText=\".ace-mono-industrial .ace_gutter {background: #1d2521;color: #C5C9C9}.ace-mono-industrial .ace_print-margin {width: 1px;background: #555651}.ace-mono-industrial {background-color: #222C28;color: #FFFFFF}.ace-mono-industrial .ace_cursor {color: #FFFFFF}.ace-mono-industrial .ace_marker-layer .ace_selection {background: rgba(145, 153, 148, 0.40)}.ace-mono-industrial.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #222C28;}.ace-mono-industrial .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-mono-industrial .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(102, 108, 104, 0.50)}.ace-mono-industrial .ace_marker-layer .ace_active-line {background: rgba(12, 13, 12, 0.25)}.ace-mono-industrial .ace_gutter-active-line {background-color: rgba(12, 13, 12, 0.25)}.ace-mono-industrial .ace_marker-layer .ace_selected-word {border: 1px solid rgba(145, 153, 148, 0.40)}.ace-mono-industrial .ace_invisible {color: rgba(102, 108, 104, 0.50)}.ace-mono-industrial .ace_string {background-color: #151C19;color: #FFFFFF}.ace-mono-industrial .ace_keyword,.ace-mono-industrial .ace_meta {color: #A39E64}.ace-mono-industrial .ace_constant,.ace-mono-industrial .ace_constant.ace_character,.ace-mono-industrial .ace_constant.ace_character.ace_escape,.ace-mono-industrial .ace_constant.ace_numeric,.ace-mono-industrial .ace_constant.ace_other {color: #E98800}.ace-mono-industrial .ace_entity.ace_name.ace_function,.ace-mono-industrial .ace_keyword.ace_operator,.ace-mono-industrial .ace_variable {color: #A8B3AB}.ace-mono-industrial .ace_invalid {color: #FFFFFF;background-color: rgba(153, 0, 0, 0.68)}.ace-mono-industrial .ace_support.ace_constant {color: #C87500}.ace-mono-industrial .ace_fold {background-color: #A8B3AB;border-color: #FFFFFF}.ace-mono-industrial .ace_support.ace_function {color: #588E60}.ace-mono-industrial .ace_entity.ace_name,.ace-mono-industrial .ace_support.ace_class,.ace-mono-industrial .ace_support.ace_type {color: #5778B6}.ace-mono-industrial .ace_storage {color: #C23B00}.ace-mono-industrial .ace_variable.ace_language,.ace-mono-industrial .ace_variable.ace_parameter {color: #648BD2}.ace-mono-industrial .ace_comment {color: #666C68;background-color: #151C19}.ace-mono-industrial .ace_entity.ace_other.ace_attribute-name {color: #909993}.ace-mono-industrial .ace_entity.ace_name.ace_tag {color: #A65EFF}.ace-mono-industrial .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQ1NbwZfALD/4PAAlTArlEC4r/AAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/mono_industrial\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-monokai.js",
    "content": "define(\"ace/theme/monokai\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-monokai\",t.cssText=\".ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/monokai\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-nord_dark.js",
    "content": "define(\"ace/theme/nord_dark\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-nord-dark\",t.cssText=\".ace-nord-dark .ace_gutter {color: #616e88;}.ace-nord-dark .ace_print-margin {width: 1px;background: #4c566a;}.ace-nord-dark {background-color: #2e3440;color: #d8dee9;}.ace-nord-dark .ace_entity.ace_other.ace_attribute-name,.ace-nord-dark .ace_storage {color: #d8dee9;}.ace-nord-dark .ace_cursor {color: #d8dee9;},.ace-nord-dark .ace_string.ace_regexp {color: #bf616a;}.ace-nord-dark .ace_marker-layer .ace_active-line {background: #434c5ecc;}.ace-nord-dark .ace_marker-layer .ace_selection {background: #434c5ecc;}.ace-nord-dark.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #2e3440;}.ace-nord-dark .ace_marker-layer .ace_step {background: #ebcb8b;}.ace-nord-dark .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #88c0d066;}.ace-nord-dark .ace_gutter-active-line {background-color: #434c5ecc;}.ace-nord-dark .ace_marker-layer .ace_selected-word {border: 1px solid #88c0d066;}.ace-nord-dark .ace_invisible {color: #4c566a;}.ace-nord-dark .ace_keyword,.ace-nord-dark .ace_meta,.ace-nord-dark .ace_support.ace_class,.ace-nord-dark .ace_support.ace_type {color: #81a1c1;}.ace-nord-dark .ace_constant.ace_character,.ace-nord-dark .ace_constant.ace_other {color: #d8dee9;}.ace-nord-dark .ace_constant.ace_language {color: #5e81ac;}.ace-nord-dark .ace_constant.ace_escape {color: #ebcB8b;}.ace-nord-dark .ace_constant.ace_numeric {color: #b48ead;}.ace-nord-dark .ace_fold {background-color: #4c566a;border-color: #d8dee9;}.ace-nord-dark .ace_entity.ace_name.ace_function,.ace-nord-dark .ace_entity.ace_name.ace_tag,.ace-nord-dark .ace_support.ace_function,.ace-nord-dark .ace_variable,.ace-nord-dark .ace_variable.ace_language {color: #8fbcbb;}.ace-nord-dark .ace_string {color: #a3be8c;}.ace-nord-dark .ace_comment {color: #616e88;}.ace-nord-dark .ace_indent-guide {box-shadow: inset -1px 0 0 0 #434c5eb3;}\",t.$selectionColorConflict=!0;var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/nord_dark\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-pastel_on_dark.js",
    "content": "define(\"ace/theme/pastel_on_dark\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-pastel-on-dark\",t.cssText=\".ace-pastel-on-dark .ace_gutter {background: #353030;color: #8F938F}.ace-pastel-on-dark .ace_print-margin {width: 1px;background: #353030}.ace-pastel-on-dark {background-color: #2C2828;color: #8F938F}.ace-pastel-on-dark .ace_cursor {color: #A7A7A7}.ace-pastel-on-dark .ace_marker-layer .ace_selection {background: rgba(221, 240, 255, 0.20)}.ace-pastel-on-dark.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #2C2828;}.ace-pastel-on-dark .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-pastel-on-dark .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 255, 255, 0.25)}.ace-pastel-on-dark .ace_marker-layer .ace_active-line {background: rgba(255, 255, 255, 0.031)}.ace-pastel-on-dark .ace_gutter-active-line {background-color: rgba(255, 255, 255, 0.031)}.ace-pastel-on-dark .ace_marker-layer .ace_selected-word {border: 1px solid rgba(221, 240, 255, 0.20)}.ace-pastel-on-dark .ace_invisible {color: rgba(255, 255, 255, 0.25)}.ace-pastel-on-dark .ace_keyword,.ace-pastel-on-dark .ace_meta {color: #757aD8}.ace-pastel-on-dark .ace_constant,.ace-pastel-on-dark .ace_constant.ace_character,.ace-pastel-on-dark .ace_constant.ace_character.ace_escape,.ace-pastel-on-dark .ace_constant.ace_other {color: #4FB7C5}.ace-pastel-on-dark .ace_keyword.ace_operator {color: #797878}.ace-pastel-on-dark .ace_constant.ace_character {color: #AFA472}.ace-pastel-on-dark .ace_constant.ace_language {color: #DE8E30}.ace-pastel-on-dark .ace_constant.ace_numeric {color: #CCCCCC}.ace-pastel-on-dark .ace_invalid,.ace-pastel-on-dark .ace_invalid.ace_illegal {color: #F8F8F8;background-color: rgba(86, 45, 86, 0.75)}.ace-pastel-on-dark .ace_invalid.ace_deprecated {text-decoration: underline;font-style: italic;color: #D2A8A1}.ace-pastel-on-dark .ace_fold {background-color: #757aD8;border-color: #8F938F}.ace-pastel-on-dark .ace_support.ace_function {color: #AEB2F8}.ace-pastel-on-dark .ace_string {color: #66A968}.ace-pastel-on-dark .ace_string.ace_regexp {color: #E9C062}.ace-pastel-on-dark .ace_comment {color: #A6C6FF}.ace-pastel-on-dark .ace_variable {color: #BEBF55}.ace-pastel-on-dark .ace_variable.ace_language {color: #C1C144}.ace-pastel-on-dark .ace_xml-pe {color: #494949}.ace-pastel-on-dark .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYIiPj/8PAARgAh2NTMh8AAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/pastel_on_dark\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-solarized_dark.js",
    "content": "define(\"ace/theme/solarized_dark\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-solarized-dark\",t.cssText=\".ace-solarized-dark .ace_gutter {background: #01313f;color: #d0edf7}.ace-solarized-dark .ace_print-margin {width: 1px;background: #33555E}.ace-solarized-dark {background-color: #002B36;color: #93A1A1}.ace-solarized-dark .ace_entity.ace_other.ace_attribute-name,.ace-solarized-dark .ace_storage {color: #93A1A1}.ace-solarized-dark .ace_cursor,.ace-solarized-dark .ace_string.ace_regexp {color: #D30102}.ace-solarized-dark .ace_marker-layer .ace_active-line,.ace-solarized-dark .ace_marker-layer .ace_selection {background: rgba(255, 255, 255, 0.1)}.ace-solarized-dark.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #002B36;}.ace-solarized-dark .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-solarized-dark .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(147, 161, 161, 0.50)}.ace-solarized-dark .ace_gutter-active-line {background-color: #0d3440}.ace-solarized-dark .ace_marker-layer .ace_selected-word {border: 1px solid #073642}.ace-solarized-dark .ace_invisible {color: rgba(147, 161, 161, 0.50)}.ace-solarized-dark .ace_keyword,.ace-solarized-dark .ace_meta,.ace-solarized-dark .ace_support.ace_class,.ace-solarized-dark .ace_support.ace_type {color: #859900}.ace-solarized-dark .ace_constant.ace_character,.ace-solarized-dark .ace_constant.ace_other {color: #CB4B16}.ace-solarized-dark .ace_constant.ace_language {color: #B58900}.ace-solarized-dark .ace_constant.ace_numeric {color: #D33682}.ace-solarized-dark .ace_fold {background-color: #268BD2;border-color: #93A1A1}.ace-solarized-dark .ace_entity.ace_name.ace_function,.ace-solarized-dark .ace_entity.ace_name.ace_tag,.ace-solarized-dark .ace_support.ace_function,.ace-solarized-dark .ace_variable,.ace-solarized-dark .ace_variable.ace_language {color: #268BD2}.ace-solarized-dark .ace_string {color: #2AA198}.ace-solarized-dark .ace_comment {font-style: italic;color: #657B83}.ace-solarized-dark .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNg0Db1ZVCxc/sPAAd4AlUHlLenAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/solarized_dark\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-solarized_light.js",
    "content": "define(\"ace/theme/solarized_light\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssClass=\"ace-solarized-light\",t.cssText=\".ace-solarized-light .ace_gutter {background: #fbf1d3;color: #333}.ace-solarized-light .ace_print-margin {width: 1px;background: #e8e8e8}.ace-solarized-light {background-color: #FDF6E3;color: #586E75}.ace-solarized-light .ace_cursor {color: #000000}.ace-solarized-light .ace_marker-layer .ace_selection {background: rgba(7, 54, 67, 0.09)}.ace-solarized-light.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FDF6E3;}.ace-solarized-light .ace_marker-layer .ace_step {background: rgb(255, 255, 0)}.ace-solarized-light .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(147, 161, 161, 0.50)}.ace-solarized-light .ace_marker-layer .ace_active-line {background: #EEE8D5}.ace-solarized-light .ace_gutter-active-line {background-color : #EDE5C1}.ace-solarized-light .ace_marker-layer .ace_selected-word {border: 1px solid #7f9390}.ace-solarized-light .ace_invisible {color: rgba(147, 161, 161, 0.50)}.ace-solarized-light .ace_keyword,.ace-solarized-light .ace_meta,.ace-solarized-light .ace_support.ace_class,.ace-solarized-light .ace_support.ace_type {color: #859900}.ace-solarized-light .ace_constant.ace_character,.ace-solarized-light .ace_constant.ace_other {color: #CB4B16}.ace-solarized-light .ace_constant.ace_language {color: #B58900}.ace-solarized-light .ace_constant.ace_numeric {color: #D33682}.ace-solarized-light .ace_fold {background-color: #268BD2;border-color: #586E75}.ace-solarized-light .ace_entity.ace_name.ace_function,.ace-solarized-light .ace_entity.ace_name.ace_tag,.ace-solarized-light .ace_support.ace_function,.ace-solarized-light .ace_variable,.ace-solarized-light .ace_variable.ace_language {color: #268BD2}.ace-solarized-light .ace_storage {color: #073642}.ace-solarized-light .ace_string {color: #2AA198}.ace-solarized-light .ace_string.ace_regexp {color: #D30102}.ace-solarized-light .ace_comment,.ace-solarized-light .ace_entity.ace_other.ace_attribute-name {color: #93A1A1}.ace-solarized-light .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHjy8NJ/AAjgA5fzQUmBAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/solarized_light\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-sqlserver.js",
    "content": "define(\"ace/theme/sqlserver\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssClass=\"ace-sqlserver\",t.cssText='.ace-sqlserver .ace_gutter {background: #ebebeb;color: #333;overflow: hidden;}.ace-sqlserver .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-sqlserver {background-color: #FFFFFF;color: black;}.ace-sqlserver .ace_identifier {color: black;}.ace-sqlserver .ace_keyword {color: #0000FF;}.ace-sqlserver .ace_numeric {color: black;}.ace-sqlserver .ace_storage {color: #11B7BE;}.ace-sqlserver .ace_keyword.ace_operator,.ace-sqlserver .ace_lparen,.ace-sqlserver .ace_rparen,.ace-sqlserver .ace_punctuation {color: #808080;}.ace-sqlserver .ace_set.ace_statement {color: #0000FF;text-decoration: underline;}.ace-sqlserver .ace_cursor {color: black;}.ace-sqlserver .ace_invisible {color: rgb(191, 191, 191);}.ace-sqlserver .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-sqlserver .ace_constant.ace_language {color: #979797;}.ace-sqlserver .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-sqlserver .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-sqlserver .ace_support.ace_function {color: #FF00FF;}.ace-sqlserver .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-sqlserver .ace_class {color: #008080;}.ace-sqlserver .ace_support.ace_other {color: #6D79DE;}.ace-sqlserver .ace_variable.ace_parameter {font-style: italic;color: #FD971F;}.ace-sqlserver .ace_comment {color: #008000;}.ace-sqlserver .ace_constant.ace_numeric {color: black;}.ace-sqlserver .ace_variable {color: rgb(49, 132, 149);}.ace-sqlserver .ace_xml-pe {color: rgb(104, 104, 91);}.ace-sqlserver .ace_support.ace_storedprocedure {color: #800000;}.ace-sqlserver .ace_heading {color: rgb(12, 7, 255);}.ace-sqlserver .ace_list {color: rgb(185, 6, 144);}.ace-sqlserver .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-sqlserver .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-sqlserver .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-sqlserver .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-sqlserver .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-sqlserver .ace_gutter-active-line {background-color: #dcdcdc;}.ace-sqlserver .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-sqlserver .ace_meta.ace_tag {color: #0000FF;}.ace-sqlserver .ace_string.ace_regex {color: #FF0000;}.ace-sqlserver .ace_string {color: #FF0000;}.ace-sqlserver .ace_entity.ace_other.ace_attribute-name {color: #994409;}.ace-sqlserver .ace_indent-guide {background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;}';var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/sqlserver\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-terminal.js",
    "content": "define(\"ace/theme/terminal\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-terminal-theme\",t.cssText=\".ace-terminal-theme .ace_gutter {background: #1a0005;color: steelblue}.ace-terminal-theme .ace_print-margin {width: 1px;background: #1a1a1a}.ace-terminal-theme {background-color: black;color: #DEDEDE}.ace-terminal-theme .ace_cursor {color: #9F9F9F}.ace-terminal-theme .ace_marker-layer .ace_selection {background: #424242}.ace-terminal-theme.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px black;}.ace-terminal-theme .ace_marker-layer .ace_step {background: rgb(0, 0, 0)}.ace-terminal-theme .ace_marker-layer .ace_bracket {background: #090;}.ace-terminal-theme .ace_marker-layer .ace_bracket-start {background: #090;}.ace-terminal-theme .ace_marker-layer .ace_bracket-unmatched {margin: -1px 0 0 -1px;border: 1px solid #900}.ace-terminal-theme .ace_marker-layer .ace_active-line {background: #2A2A2A}.ace-terminal-theme .ace_gutter-active-line {background-color: #2A112A}.ace-terminal-theme .ace_marker-layer .ace_selected-word {border: 1px solid #424242}.ace-terminal-theme .ace_invisible {color: #343434}.ace-terminal-theme .ace_keyword,.ace-terminal-theme .ace_meta,.ace-terminal-theme .ace_storage,.ace-terminal-theme .ace_storage.ace_type,.ace-terminal-theme .ace_support.ace_type {color: tomato}.ace-terminal-theme .ace_keyword.ace_operator {color: deeppink}.ace-terminal-theme .ace_constant.ace_character,.ace-terminal-theme .ace_constant.ace_language,.ace-terminal-theme .ace_constant.ace_numeric,.ace-terminal-theme .ace_keyword.ace_other.ace_unit,.ace-terminal-theme .ace_support.ace_constant,.ace-terminal-theme .ace_variable.ace_parameter {color: #E78C45}.ace-terminal-theme .ace_constant.ace_other {color: gold}.ace-terminal-theme .ace_invalid {color: yellow;background-color: red}.ace-terminal-theme .ace_invalid.ace_deprecated {color: #CED2CF;background-color: #B798BF}.ace-terminal-theme .ace_fold {background-color: #7AA6DA;border-color: #DEDEDE}.ace-terminal-theme .ace_entity.ace_name.ace_function,.ace-terminal-theme .ace_support.ace_function,.ace-terminal-theme .ace_variable {color: #7AA6DA}.ace-terminal-theme .ace_support.ace_class,.ace-terminal-theme .ace_support.ace_type {color: #E7C547}.ace-terminal-theme .ace_heading,.ace-terminal-theme .ace_string {color: #B9CA4A}.ace-terminal-theme .ace_entity.ace_name.ace_tag,.ace-terminal-theme .ace_entity.ace_other.ace_attribute-name,.ace-terminal-theme .ace_meta.ace_tag,.ace-terminal-theme .ace_string.ace_regexp,.ace-terminal-theme .ace_variable {color: #D54E53}.ace-terminal-theme .ace_comment {color: orangered}.ace-terminal-theme .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLBWV/8PAAK4AYnhiq+xAAAAAElFTkSuQmCC) right repeat-y;}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/terminal\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-textmate.js",
    "content": "define(\"ace/theme/textmate\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){\"use strict\";t.isDark=!1,t.cssClass=\"ace-tm\",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;}',t.$id=\"ace/theme/textmate\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/textmate\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-tomorrow.js",
    "content": "define(\"ace/theme/tomorrow\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssClass=\"ace-tomorrow\",t.cssText=\".ace-tomorrow .ace_gutter {background: #f6f6f6;color: #4D4D4C}.ace-tomorrow .ace_print-margin {width: 1px;background: #f6f6f6}.ace-tomorrow {background-color: #FFFFFF;color: #4D4D4C}.ace-tomorrow .ace_cursor {color: #AEAFAD}.ace-tomorrow .ace_marker-layer .ace_selection {background: #D6D6D6}.ace-tomorrow.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;}.ace-tomorrow .ace_marker-layer .ace_step {background: rgb(255, 255, 0)}.ace-tomorrow .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #D1D1D1}.ace-tomorrow .ace_marker-layer .ace_active-line {background: #EFEFEF}.ace-tomorrow .ace_gutter-active-line {background-color : #dcdcdc}.ace-tomorrow .ace_marker-layer .ace_selected-word {border: 1px solid #D6D6D6}.ace-tomorrow .ace_invisible {color: #D1D1D1}.ace-tomorrow .ace_keyword,.ace-tomorrow .ace_meta,.ace-tomorrow .ace_storage,.ace-tomorrow .ace_storage.ace_type,.ace-tomorrow .ace_support.ace_type {color: #8959A8}.ace-tomorrow .ace_keyword.ace_operator {color: #3E999F}.ace-tomorrow .ace_constant.ace_character,.ace-tomorrow .ace_constant.ace_language,.ace-tomorrow .ace_constant.ace_numeric,.ace-tomorrow .ace_keyword.ace_other.ace_unit,.ace-tomorrow .ace_support.ace_constant,.ace-tomorrow .ace_variable.ace_parameter {color: #F5871F}.ace-tomorrow .ace_constant.ace_other {color: #666969}.ace-tomorrow .ace_invalid {color: #FFFFFF;background-color: #C82829}.ace-tomorrow .ace_invalid.ace_deprecated {color: #FFFFFF;background-color: #8959A8}.ace-tomorrow .ace_fold {background-color: #4271AE;border-color: #4D4D4C}.ace-tomorrow .ace_entity.ace_name.ace_function,.ace-tomorrow .ace_support.ace_function,.ace-tomorrow .ace_variable {color: #4271AE}.ace-tomorrow .ace_support.ace_class,.ace-tomorrow .ace_support.ace_type {color: #C99E00}.ace-tomorrow .ace_heading,.ace-tomorrow .ace_markup.ace_heading,.ace-tomorrow .ace_string {color: #718C00}.ace-tomorrow .ace_entity.ace_name.ace_tag,.ace-tomorrow .ace_entity.ace_other.ace_attribute-name,.ace-tomorrow .ace_meta.ace_tag,.ace-tomorrow .ace_string.ace_regexp,.ace-tomorrow .ace_variable {color: #C82829}.ace-tomorrow .ace_comment {color: #8E908C}.ace-tomorrow .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/tomorrow\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-tomorrow_night.js",
    "content": "define(\"ace/theme/tomorrow_night\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-tomorrow-night\",t.cssText=\".ace-tomorrow-night .ace_gutter {background: #25282c;color: #C5C8C6}.ace-tomorrow-night .ace_print-margin {width: 1px;background: #25282c}.ace-tomorrow-night {background-color: #1D1F21;color: #C5C8C6}.ace-tomorrow-night .ace_cursor {color: #AEAFAD}.ace-tomorrow-night .ace_marker-layer .ace_selection {background: #373B41}.ace-tomorrow-night.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #1D1F21;}.ace-tomorrow-night .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-tomorrow-night .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #4B4E55}.ace-tomorrow-night .ace_marker-layer .ace_active-line {background: #282A2E}.ace-tomorrow-night .ace_gutter-active-line {background-color: #282A2E}.ace-tomorrow-night .ace_marker-layer .ace_selected-word {border: 1px solid #373B41}.ace-tomorrow-night .ace_invisible {color: #4B4E55}.ace-tomorrow-night .ace_keyword,.ace-tomorrow-night .ace_meta,.ace-tomorrow-night .ace_storage,.ace-tomorrow-night .ace_storage.ace_type,.ace-tomorrow-night .ace_support.ace_type {color: #B294BB}.ace-tomorrow-night .ace_keyword.ace_operator {color: #8ABEB7}.ace-tomorrow-night .ace_constant.ace_character,.ace-tomorrow-night .ace_constant.ace_language,.ace-tomorrow-night .ace_constant.ace_numeric,.ace-tomorrow-night .ace_keyword.ace_other.ace_unit,.ace-tomorrow-night .ace_support.ace_constant,.ace-tomorrow-night .ace_variable.ace_parameter {color: #DE935F}.ace-tomorrow-night .ace_constant.ace_other {color: #CED1CF}.ace-tomorrow-night .ace_invalid {color: #CED2CF;background-color: #DF5F5F}.ace-tomorrow-night .ace_invalid.ace_deprecated {color: #CED2CF;background-color: #B798BF}.ace-tomorrow-night .ace_fold {background-color: #81A2BE;border-color: #C5C8C6}.ace-tomorrow-night .ace_entity.ace_name.ace_function,.ace-tomorrow-night .ace_support.ace_function,.ace-tomorrow-night .ace_variable {color: #81A2BE}.ace-tomorrow-night .ace_support.ace_class,.ace-tomorrow-night .ace_support.ace_type {color: #F0C674}.ace-tomorrow-night .ace_heading,.ace-tomorrow-night .ace_markup.ace_heading,.ace-tomorrow-night .ace_string {color: #B5BD68}.ace-tomorrow-night .ace_entity.ace_name.ace_tag,.ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name,.ace-tomorrow-night .ace_meta.ace_tag,.ace-tomorrow-night .ace_string.ace_regexp,.ace-tomorrow-night .ace_variable {color: #CC6666}.ace-tomorrow-night .ace_comment {color: #969896}.ace-tomorrow-night .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/tomorrow_night\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-tomorrow_night_blue.js",
    "content": "define(\"ace/theme/tomorrow_night_blue\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-tomorrow-night-blue\",t.cssText=\".ace-tomorrow-night-blue .ace_gutter {background: #00204b;color: #7388b5}.ace-tomorrow-night-blue .ace_print-margin {width: 1px;background: #00204b}.ace-tomorrow-night-blue {background-color: #002451;color: #FFFFFF}.ace-tomorrow-night-blue .ace_constant.ace_other,.ace-tomorrow-night-blue .ace_cursor {color: #FFFFFF}.ace-tomorrow-night-blue .ace_marker-layer .ace_selection {background: #003F8E}.ace-tomorrow-night-blue.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #002451;}.ace-tomorrow-night-blue .ace_marker-layer .ace_step {background: rgb(127, 111, 19)}.ace-tomorrow-night-blue .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #404F7D}.ace-tomorrow-night-blue .ace_marker-layer .ace_active-line {background: #00346E}.ace-tomorrow-night-blue .ace_gutter-active-line {background-color: #022040}.ace-tomorrow-night-blue .ace_marker-layer .ace_selected-word {border: 1px solid #003F8E}.ace-tomorrow-night-blue .ace_invisible {color: #404F7D}.ace-tomorrow-night-blue .ace_keyword,.ace-tomorrow-night-blue .ace_meta,.ace-tomorrow-night-blue .ace_storage,.ace-tomorrow-night-blue .ace_storage.ace_type,.ace-tomorrow-night-blue .ace_support.ace_type {color: #EBBBFF}.ace-tomorrow-night-blue .ace_keyword.ace_operator {color: #99FFFF}.ace-tomorrow-night-blue .ace_constant.ace_character,.ace-tomorrow-night-blue .ace_constant.ace_language,.ace-tomorrow-night-blue .ace_constant.ace_numeric,.ace-tomorrow-night-blue .ace_keyword.ace_other.ace_unit,.ace-tomorrow-night-blue .ace_support.ace_constant,.ace-tomorrow-night-blue .ace_variable.ace_parameter {color: #FFC58F}.ace-tomorrow-night-blue .ace_invalid {color: #FFFFFF;background-color: #F99DA5}.ace-tomorrow-night-blue .ace_invalid.ace_deprecated {color: #FFFFFF;background-color: #EBBBFF}.ace-tomorrow-night-blue .ace_fold {background-color: #BBDAFF;border-color: #FFFFFF}.ace-tomorrow-night-blue .ace_entity.ace_name.ace_function,.ace-tomorrow-night-blue .ace_support.ace_function,.ace-tomorrow-night-blue .ace_variable {color: #BBDAFF}.ace-tomorrow-night-blue .ace_support.ace_class,.ace-tomorrow-night-blue .ace_support.ace_type {color: #FFEEAD}.ace-tomorrow-night-blue .ace_heading,.ace-tomorrow-night-blue .ace_markup.ace_heading,.ace-tomorrow-night-blue .ace_string {color: #D1F1A9}.ace-tomorrow-night-blue .ace_entity.ace_name.ace_tag,.ace-tomorrow-night-blue .ace_entity.ace_other.ace_attribute-name,.ace-tomorrow-night-blue .ace_meta.ace_tag,.ace-tomorrow-night-blue .ace_string.ace_regexp,.ace-tomorrow-night-blue .ace_variable {color: #FF9DA4}.ace-tomorrow-night-blue .ace_comment {color: #7285B7}.ace-tomorrow-night-blue .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYJDzqfwPAANXAeNsiA+ZAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/tomorrow_night_blue\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-tomorrow_night_bright.js",
    "content": "define(\"ace/theme/tomorrow_night_bright\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-tomorrow-night-bright\",t.cssText=\".ace-tomorrow-night-bright .ace_gutter {background: #1a1a1a;color: #DEDEDE}.ace-tomorrow-night-bright .ace_print-margin {width: 1px;background: #1a1a1a}.ace-tomorrow-night-bright {background-color: #000000;color: #DEDEDE}.ace-tomorrow-night-bright .ace_cursor {color: #9F9F9F}.ace-tomorrow-night-bright .ace_marker-layer .ace_selection {background: #424242}.ace-tomorrow-night-bright.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #000000;}.ace-tomorrow-night-bright .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-tomorrow-night-bright .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #888888}.ace-tomorrow-night-bright .ace_marker-layer .ace_highlight {border: 1px solid rgb(110, 119, 0);border-bottom: 0;box-shadow: inset 0 -1px rgb(110, 119, 0);margin: -1px 0 0 -1px;background: rgba(255, 235, 0, 0.1)}.ace-tomorrow-night-bright .ace_marker-layer .ace_active-line {background: #2A2A2A}.ace-tomorrow-night-bright .ace_gutter-active-line {background-color: #2A2A2A}.ace-tomorrow-night-bright .ace_stack {background-color: rgb(66, 90, 44)}.ace-tomorrow-night-bright .ace_marker-layer .ace_selected-word {border: 1px solid #888888}.ace-tomorrow-night-bright .ace_invisible {color: #343434}.ace-tomorrow-night-bright .ace_keyword,.ace-tomorrow-night-bright .ace_meta,.ace-tomorrow-night-bright .ace_storage,.ace-tomorrow-night-bright .ace_storage.ace_type,.ace-tomorrow-night-bright .ace_support.ace_type {color: #C397D8}.ace-tomorrow-night-bright .ace_keyword.ace_operator {color: #70C0B1}.ace-tomorrow-night-bright .ace_constant.ace_character,.ace-tomorrow-night-bright .ace_constant.ace_language,.ace-tomorrow-night-bright .ace_constant.ace_numeric,.ace-tomorrow-night-bright .ace_keyword.ace_other.ace_unit,.ace-tomorrow-night-bright .ace_support.ace_constant,.ace-tomorrow-night-bright .ace_variable.ace_parameter {color: #E78C45}.ace-tomorrow-night-bright .ace_constant.ace_other {color: #EEEEEE}.ace-tomorrow-night-bright .ace_invalid {color: #CED2CF;background-color: #DF5F5F}.ace-tomorrow-night-bright .ace_invalid.ace_deprecated {color: #CED2CF;background-color: #B798BF}.ace-tomorrow-night-bright .ace_fold {background-color: #7AA6DA;border-color: #DEDEDE}.ace-tomorrow-night-bright .ace_entity.ace_name.ace_function,.ace-tomorrow-night-bright .ace_support.ace_function,.ace-tomorrow-night-bright .ace_variable {color: #7AA6DA}.ace-tomorrow-night-bright .ace_support.ace_class,.ace-tomorrow-night-bright .ace_support.ace_type {color: #E7C547}.ace-tomorrow-night-bright .ace_heading,.ace-tomorrow-night-bright .ace_markup.ace_heading,.ace-tomorrow-night-bright .ace_string {color: #B9CA4A}.ace-tomorrow-night-bright .ace_entity.ace_name.ace_tag,.ace-tomorrow-night-bright .ace_entity.ace_other.ace_attribute-name,.ace-tomorrow-night-bright .ace_meta.ace_tag,.ace-tomorrow-night-bright .ace_string.ace_regexp,.ace-tomorrow-night-bright .ace_variable {color: #D54E53}.ace-tomorrow-night-bright .ace_comment {color: #969896}.ace-tomorrow-night-bright .ace_c9searchresults.ace_keyword {color: #C2C280}.ace-tomorrow-night-bright .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYFBXV/8PAAJoAXX4kT2EAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/tomorrow_night_bright\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-tomorrow_night_eighties.js",
    "content": "define(\"ace/theme/tomorrow_night_eighties\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-tomorrow-night-eighties\",t.cssText=\".ace-tomorrow-night-eighties .ace_gutter {background: #272727;color: #CCC}.ace-tomorrow-night-eighties .ace_print-margin {width: 1px;background: #272727}.ace-tomorrow-night-eighties {background-color: #2D2D2D;color: #CCCCCC}.ace-tomorrow-night-eighties .ace_constant.ace_other,.ace-tomorrow-night-eighties .ace_cursor {color: #CCCCCC}.ace-tomorrow-night-eighties .ace_marker-layer .ace_selection {background: #515151}.ace-tomorrow-night-eighties.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #2D2D2D;}.ace-tomorrow-night-eighties .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-tomorrow-night-eighties .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #6A6A6A}.ace-tomorrow-night-bright .ace_stack {background: rgb(66, 90, 44)}.ace-tomorrow-night-eighties .ace_marker-layer .ace_active-line {background: #393939}.ace-tomorrow-night-eighties .ace_gutter-active-line {background-color: #393939}.ace-tomorrow-night-eighties .ace_marker-layer .ace_selected-word {border: 1px solid #515151}.ace-tomorrow-night-eighties .ace_invisible {color: #6A6A6A}.ace-tomorrow-night-eighties .ace_keyword,.ace-tomorrow-night-eighties .ace_meta,.ace-tomorrow-night-eighties .ace_storage,.ace-tomorrow-night-eighties .ace_storage.ace_type,.ace-tomorrow-night-eighties .ace_support.ace_type {color: #CC99CC}.ace-tomorrow-night-eighties .ace_keyword.ace_operator {color: #66CCCC}.ace-tomorrow-night-eighties .ace_constant.ace_character,.ace-tomorrow-night-eighties .ace_constant.ace_language,.ace-tomorrow-night-eighties .ace_constant.ace_numeric,.ace-tomorrow-night-eighties .ace_keyword.ace_other.ace_unit,.ace-tomorrow-night-eighties .ace_support.ace_constant,.ace-tomorrow-night-eighties .ace_variable.ace_parameter {color: #F99157}.ace-tomorrow-night-eighties .ace_invalid {color: #CDCDCD;background-color: #F2777A}.ace-tomorrow-night-eighties .ace_invalid.ace_deprecated {color: #CDCDCD;background-color: #CC99CC}.ace-tomorrow-night-eighties .ace_fold {background-color: #6699CC;border-color: #CCCCCC}.ace-tomorrow-night-eighties .ace_entity.ace_name.ace_function,.ace-tomorrow-night-eighties .ace_support.ace_function,.ace-tomorrow-night-eighties .ace_variable {color: #6699CC}.ace-tomorrow-night-eighties .ace_support.ace_class,.ace-tomorrow-night-eighties .ace_support.ace_type {color: #FFCC66}.ace-tomorrow-night-eighties .ace_heading,.ace-tomorrow-night-eighties .ace_markup.ace_heading,.ace-tomorrow-night-eighties .ace_string {color: #99CC99}.ace-tomorrow-night-eighties .ace_comment {color: #999999}.ace-tomorrow-night-eighties .ace_entity.ace_name.ace_tag,.ace-tomorrow-night-eighties .ace_entity.ace_other.ace_attribute-name,.ace-tomorrow-night-eighties .ace_meta.ace_tag,.ace-tomorrow-night-eighties .ace_variable {color: #F2777A}.ace-tomorrow-night-eighties .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ09NrYAgMjP4PAAtGAwchHMyAAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/tomorrow_night_eighties\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-twilight.js",
    "content": "define(\"ace/theme/twilight\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-twilight\",t.cssText=\".ace-twilight .ace_gutter {background: #232323;color: #E2E2E2}.ace-twilight .ace_print-margin {width: 1px;background: #232323}.ace-twilight {background-color: #141414;color: #F8F8F8}.ace-twilight .ace_cursor {color: #A7A7A7}.ace-twilight .ace_marker-layer .ace_selection {background: rgba(221, 240, 255, 0.20)}.ace-twilight.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #141414;}.ace-twilight .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-twilight .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 255, 255, 0.25)}.ace-twilight .ace_marker-layer .ace_active-line {background: rgba(255, 255, 255, 0.031)}.ace-twilight .ace_gutter-active-line {background-color: rgba(255, 255, 255, 0.031)}.ace-twilight .ace_marker-layer .ace_selected-word {border: 1px solid rgba(221, 240, 255, 0.20)}.ace-twilight .ace_invisible {color: rgba(255, 255, 255, 0.25)}.ace-twilight .ace_keyword,.ace-twilight .ace_meta {color: #CDA869}.ace-twilight .ace_constant,.ace-twilight .ace_constant.ace_character,.ace-twilight .ace_constant.ace_character.ace_escape,.ace-twilight .ace_constant.ace_other,.ace-twilight .ace_heading,.ace-twilight .ace_markup.ace_heading,.ace-twilight .ace_support.ace_constant {color: #CF6A4C}.ace-twilight .ace_invalid.ace_illegal {color: #F8F8F8;background-color: rgba(86, 45, 86, 0.75)}.ace-twilight .ace_invalid.ace_deprecated {text-decoration: underline;font-style: italic;color: #D2A8A1}.ace-twilight .ace_support {color: #9B859D}.ace-twilight .ace_fold {background-color: #AC885B;border-color: #F8F8F8}.ace-twilight .ace_support.ace_function {color: #DAD085}.ace-twilight .ace_list,.ace-twilight .ace_markup.ace_list,.ace-twilight .ace_storage {color: #F9EE98}.ace-twilight .ace_entity.ace_name.ace_function,.ace-twilight .ace_meta.ace_tag,.ace-twilight .ace_variable {color: #AC885B}.ace-twilight .ace_string {color: #8F9D6A}.ace-twilight .ace_string.ace_regexp {color: #E9C062}.ace-twilight .ace_comment {font-style: italic;color: #5F5A60}.ace-twilight .ace_variable {color: #7587A6}.ace-twilight .ace_xml-pe {color: #494949}.ace-twilight .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/twilight\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-vibrant_ink.js",
    "content": "define(\"ace/theme/vibrant_ink\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!0,t.cssClass=\"ace-vibrant-ink\",t.cssText=\".ace-vibrant-ink .ace_gutter {background: #1a1a1a;color: #BEBEBE}.ace-vibrant-ink .ace_print-margin {width: 1px;background: #1a1a1a}.ace-vibrant-ink {background-color: #0F0F0F;color: #FFFFFF}.ace-vibrant-ink .ace_cursor {color: #FFFFFF}.ace-vibrant-ink .ace_marker-layer .ace_selection {background: #6699CC}.ace-vibrant-ink.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #0F0F0F;}.ace-vibrant-ink .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-vibrant-ink .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #404040}.ace-vibrant-ink .ace_marker-layer .ace_active-line {background: #333333}.ace-vibrant-ink .ace_gutter-active-line {background-color: #333333}.ace-vibrant-ink .ace_marker-layer .ace_selected-word {border: 1px solid #6699CC}.ace-vibrant-ink .ace_invisible {color: #404040}.ace-vibrant-ink .ace_keyword,.ace-vibrant-ink .ace_meta {color: #FF6600}.ace-vibrant-ink .ace_constant,.ace-vibrant-ink .ace_constant.ace_character,.ace-vibrant-ink .ace_constant.ace_character.ace_escape,.ace-vibrant-ink .ace_constant.ace_other {color: #339999}.ace-vibrant-ink .ace_constant.ace_numeric {color: #99CC99}.ace-vibrant-ink .ace_invalid,.ace-vibrant-ink .ace_invalid.ace_deprecated {color: #CCFF33;background-color: #000000}.ace-vibrant-ink .ace_fold {background-color: #FFCC00;border-color: #FFFFFF}.ace-vibrant-ink .ace_entity.ace_name.ace_function,.ace-vibrant-ink .ace_support.ace_function,.ace-vibrant-ink .ace_variable {color: #FFCC00}.ace-vibrant-ink .ace_variable.ace_parameter {font-style: italic}.ace-vibrant-ink .ace_string {color: #66FF00}.ace-vibrant-ink .ace_string.ace_regexp {color: #44B4CC}.ace-vibrant-ink .ace_comment {color: #9933CC}.ace-vibrant-ink .ace_entity.ace_other.ace_attribute-name {font-style: italic;color: #99CC99}.ace-vibrant-ink .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYNDTc/oPAALPAZ7hxlbYAAAAAElFTkSuQmCC) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/vibrant_ink\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/theme-xcode.js",
    "content": "define(\"ace/theme/xcode\",[\"require\",\"exports\",\"module\",\"ace/lib/dom\"],function(e,t,n){t.isDark=!1,t.cssClass=\"ace-xcode\",t.cssText=\".ace-xcode .ace_gutter {background: #e8e8e8;color: #333}.ace-xcode .ace_print-margin {width: 1px;background: #e8e8e8}.ace-xcode {background-color: #FFFFFF;color: #000000}.ace-xcode .ace_cursor {color: #000000}.ace-xcode .ace_marker-layer .ace_selection {background: #B5D5FF}.ace-xcode.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;}.ace-xcode .ace_marker-layer .ace_step {background: rgb(198, 219, 174)}.ace-xcode .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #BFBFBF}.ace-xcode .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.071)}.ace-xcode .ace_gutter-active-line {background-color: rgba(0, 0, 0, 0.071)}.ace-xcode .ace_marker-layer .ace_selected-word {border: 1px solid #B5D5FF}.ace-xcode .ace_constant.ace_language,.ace-xcode .ace_keyword,.ace-xcode .ace_meta,.ace-xcode .ace_variable.ace_language {color: #C800A4}.ace-xcode .ace_invisible {color: #BFBFBF}.ace-xcode .ace_constant.ace_character,.ace-xcode .ace_constant.ace_other {color: #275A5E}.ace-xcode .ace_constant.ace_numeric {color: #3A00DC}.ace-xcode .ace_entity.ace_other.ace_attribute-name,.ace-xcode .ace_support.ace_constant,.ace-xcode .ace_support.ace_function {color: #450084}.ace-xcode .ace_fold {background-color: #C800A4;border-color: #000000}.ace-xcode .ace_entity.ace_name.ace_tag,.ace-xcode .ace_support.ace_class,.ace-xcode .ace_support.ace_type {color: #790EAD}.ace-xcode .ace_storage {color: #C900A4}.ace-xcode .ace_string {color: #DF0002}.ace-xcode .ace_comment {color: #008E00}.ace-xcode .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==) right repeat-y}\";var r=e(\"../lib/dom\");r.importCssString(t.cssText,t.cssClass)});                (function() {\n                    window.require([\"ace/theme/xcode\"], function(m) {\n                        if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n                            module.exports = m;\n                        }\n                    });\n                })();\n            "
  },
  {
    "path": "pyp5js/http_local/static/js/ace/worker-coffee.js",
    "content": "\"no use strict\";!function(e){function t(e,t){var n=e,r=\"\";while(n){var i=t[n];if(typeof i==\"string\")return i+r;if(i)return i.location.replace(/\\/*$/,\"/\")+(r||i.main||i.name);if(i===!1)return\"\";var s=n.lastIndexOf(\"/\");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!=\"undefined\"&&e.document)return;if(e.require&&e.define)return;e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:\"log\",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:\"error\",data:{message:e,data:i.data,file:t,line:n,col:r,stack:i.stack}})},e.normalizeModule=function(t,n){if(n.indexOf(\"!\")!==-1){var r=n.split(\"!\");return e.normalizeModule(t,r[0])+\"!\"+e.normalizeModule(t,r[1])}if(n.charAt(0)==\".\"){var i=t.split(\"/\").slice(0,-1).join(\"/\");n=(i?i+\"/\":\"\")+n;while(n.indexOf(\".\")!==-1&&s!=n){var s=n;n=n.replace(/^\\.\\//,\"\").replace(/\\/\\.\\//,\"/\").replace(/[^\\/]+\\/\\.\\.\\//,\"\")}}return n},e.require=function(r,i){i||(i=r,r=null);if(!i.charAt)throw new Error(\"worker.js require() accepts only (parentId, id) as arguments\");i=e.normalizeModule(r,i);var s=e.require.modules[i];if(s)return s.initialized||(s.initialized=!0,s.exports=s.factory().exports),s.exports;if(!e.require.tlns)return console.log(\"unable to load \"+i);var o=t(i,e.require.tlns);return o.slice(-3)!=\".js\"&&(o+=\".js\"),e.require.id=i,e.require.modules[i]={},importScripts(o),e.require(r,i)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){arguments.length==2?(r=n,typeof t!=\"string\"&&(n=t,t=e.require.id)):arguments.length==1&&(r=t,n=[],t=e.require.id);if(typeof r!=\"function\"){e.require.modules[t]={exports:r,initialized:!0};return}n.length||(n=[\"require\",\"exports\",\"module\"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case\"require\":return i;case\"exports\":return e.exports;case\"module\":return e;default:return i(t)}}));return t&&(e.exports=t),e}}},e.define.amd={},require.tlns={},e.initBaseUrls=function(t){for(var n in t)require.tlns[n]=t[n]},e.initSender=function(){var n=e.require(\"ace/lib/event_emitter\").EventEmitter,r=e.require(\"ace/lib/oop\"),i=function(){};return function(){r.implement(this,n),this.callback=function(e,t){postMessage({type:\"call\",id:t,data:e})},this.emit=function(e,t){postMessage({type:\"event\",name:e,data:t})}}.call(i.prototype),new i};var n=e.main=null,r=e.sender=null;e.onmessage=function(t){var i=t.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw new Error(\"Unknown command:\"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),require(\"ace/lib/es5-shim\"),r=e.sender=e.initSender();var s=require(i.module)[i.classname];n=e.main=new s(r)}}}(this),define(\"ace/lib/oop\",[],function(e,t,n){\"use strict\";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),define(\"ace/range\",[],function(e,t,n){\"use strict\";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return\"Range: [\"+this.start.row+\"/\"+this.start.column+\"] -> [\"+this.end.row+\"/\"+this.end.column+\"]\"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e==\"object\"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e==\"object\"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?t<this.start.column?-1:t>this.end.column?1:0:e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)var n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)var r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(n==0)return this;if(n==-1)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define(\"ace/apply_delta\",[],function(e,t,n){\"use strict\";function r(e,t){throw console.log(\"Invalid Delta:\",e),\"Invalid Delta: \"+t}function i(e,t){return t.row>=0&&t.row<e.length&&t.column>=0&&t.column<=e[t.row].length}function s(e,t){t.action!=\"insert\"&&t.action!=\"remove\"&&r(t,\"delta.action must be 'insert' or 'remove'\"),t.lines instanceof Array||r(t,\"delta.lines must be an Array\"),(!t.start||!t.end)&&r(t,\"delta.start/end must be an present\");var n=t.start;i(e,t.start)||r(t,\"delta.start must be contained in document\");var s=t.end;t.action==\"remove\"&&!i(e,s)&&r(t,\"delta.end must contained in document for 'remove' actions\");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,\"delta.range must match delta lines\")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||\"\";switch(t.action){case\"insert\":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case\"remove\":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),define(\"ace/lib/event_emitter\",[],function(e,t,n){\"use strict\";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!=\"object\"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length;o++){n[o](t,this);if(t.propagationStopped)break}if(r&&!t.defaultPrevented)return r(t,this)},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(!n)return;n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)},r.once=function(e,t){var n=this;this.on(e,function r(){n.off(e,r),t.apply(null,arguments)});if(!t)return new Promise(function(e){t=e})},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;n||(n=this._defaultHandlers={_disabled_:{}});if(n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var s=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(!n)return;var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);i!=-1&&r.splice(i,1)}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?\"unshift\":\"push\"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(!n)return;var r=n.indexOf(t);r!==-1&&n.splice(r,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=r}),define(\"ace/anchor\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),typeof n==\"undefined\"?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i=t.action==\"insert\",s=(i?1:-1)*(t.end.row-t.start.row),o=(i?1:-1)*(t.end.column-t.start.column),u=t.start,a=i?u:t.end;return e(n,u,r)?{row:n.row,column:n.column}:e(a,n,!r)?{row:n.row+s,column:n.column+(n.row==a.row?o:0)}:{row:u.row,column:u.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(e.start.row==e.end.row&&e.start.row!=this.row)return;if(e.start.row>this.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal(\"change\",{old:i,value:r})},this.detach=function(){this.document.off(\"change\",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on(\"change\",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),define(\"ace/document\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./apply_delta\").applyDelta,s=e(\"./lib/event_emitter\").EventEmitter,o=e(\"./range\").Range,u=e(\"./anchor\").Anchor,a=function(e){this.$lines=[\"\"],e.length===0?this.$lines=[\"\"]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},\"aaa\".split(/a/).length===0?this.$split=function(e){return e.replace(/\\r\\n|\\r/g,\"\\n\").split(\"\\n\")}:this.$split=function(e){return e.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=t?t[1]:\"\\n\",this._signal(\"changeNewLineMode\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\"windows\":return\"\\r\\n\";case\"unix\":return\"\\n\";default:return this.$autoNewLine||\"\\n\"}},this.$autoNewLine=\"\",this.$newLineMode=\"auto\",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal(\"changeNewLineMode\")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==\"\\r\\n\"||e==\"\\r\"||e==\"\\n\"},this.getLine=function(e){return this.$lines[e]||\"\"},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||\"\").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\"),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\"),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\"),this.insertMergedLines(e,[\"\",\"\"])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:\"insert\",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([\"\"]),n=0):(t=[\"\"].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(t.length==1?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:\"insert\",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:\"remove\",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:\"remove\",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=new o(i,s,u,a),l=this.$lines.slice(e,t+1);return this.applyDelta({start:f.start,end:f.end,action:\"remove\",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:\"remove\",lines:[\"\",\"\"]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action==\"insert\";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal(\"change\",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action==\"remove\"&&e.start.row<t&&e.end.row<t||e.action==\"insert\"&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length-t+1,i=e.start.row,s=e.start.column;for(var o=0,u=0;o<r;o=u){u+=t-1;var a=n.slice(o,u);a.push(\"\"),this.applyDelta({start:this.pos(i+o,s),end:this.pos(i+u,s=0),action:e.action,lines:a},!0)}e.lines=n.slice(o),e.start.row=i+o,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action==\"insert\"?\"remove\":\"insert\",lines:e.lines.slice()})},this.indexToPosition=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length;for(var i=t||0,s=n.length;i<s;i++){e-=n[i].length+r;if(e<0)return{row:i,column:e+n[i].length+r}}return{row:s-1,column:e+n[s-1].length+r}},this.positionToIndex=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length);for(var o=t||0;o<s;++o)i+=n[o].length+r;return i+e.column}}).call(a.prototype),t.Document=a}),define(\"ace/lib/lang\",[],function(e,t,n){\"use strict\";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split(\"\").reverse().join(\"\")},t.stringRepeat=function(e,t){var n=\"\";while(t>0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\\s\\s*/,i=/\\s\\s*$/;t.stringTrimLeft=function(e){return e.replace(r,\"\")},t.stringTrimRight=function(e){return e.replace(i,\"\")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)e[n]&&typeof e[n]==\"object\"?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function s(e){if(typeof e!=\"object\"||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=s(e[n]);return t}if(Object.prototype.toString.call(e)!==\"[object Object]\")return e;t={};for(var n in e)t[n]=s(e[n]);return t},t.arrayToMap=function(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\")},t.escapeHTML=function(e){return(\"\"+e).replace(/&/g,\"&#38;\").replace(/\"/g,\"&#34;\").replace(/'/g,\"&#39;\").replace(/</g,\"&#60;\")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){n==null&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),define(\"ace/worker/mirror\",[],function(e,t,n){\"use strict\";var r=e(\"../range\").Range,i=e(\"../document\").Document,s=e(\"../lib/lang\"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new i(\"\"),n=this.deferredUpdate=s.delayedCall(this.onUpdate.bind(this)),r=this;e.on(\"change\",function(e){var i=e.data;if(i[0].start)t.applyDeltas(i);else for(var s=0;s<i.length;s+=2){if(Array.isArray(i[s+1]))var o={action:\"insert\",start:i[s],lines:i[s+1]};else var o={action:\"remove\",start:i[s],end:i[s+1]};t.applyDelta(o,!0)}if(r.$timeout)return n.schedule(r.$timeout);r.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),define(\"ace/mode/coffee/coffee\",[],function(require,exports,module){function define(e){module.exports=e()}function _toArray(e){return Array.isArray(e)?e:Array.from(e)}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function _inherits(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}define.amd={};var _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},_get=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var s=Object.getPrototypeOf(t);return null===s?void 0:e(s,n,r)}if(\"value\"in i)return i.value;var o=i.get;return void 0===o?void 0:o.call(r)},_slicedToArray=function(){function e(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var o=e[Symbol.iterator](),u;!(r=(u=o.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&o[\"return\"]&&o[\"return\"]()}finally{if(i)throw s}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}(),_createClass=function(){function e(e,t){for(var n=0,r;n<t.length;n++)r=t[n],r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();(function(root){var CoffeeScript=function(){function require(e){return require[e]}var _Mathabs=Math.abs,_StringfromCharCode=String.fromCharCode,_Mathfloor=Math.floor;return require[\"../../package.json\"]=function(){return{name:\"coffeescript\",description:\"Unfancy JavaScript\",keywords:[\"javascript\",\"language\",\"coffeescript\",\"compiler\"],author:\"Jeremy Ashkenas\",version:\"2.2.1\",license:\"MIT\",engines:{node:\">=6\"},directories:{lib:\"./lib/coffeescript\"},main:\"./lib/coffeescript/index\",browser:\"./lib/coffeescript/browser\",bin:{coffee:\"./bin/coffee\",cake:\"./bin/cake\"},files:[\"bin\",\"lib\",\"register.js\",\"repl.js\"],scripts:{test:\"node ./bin/cake test\",\"test-harmony\":\"node --harmony ./bin/cake test\"},homepage:\"http://coffeescript.org\",bugs:\"https://github.com/jashkenas/coffeescript/issues\",repository:{type:\"git\",url:\"git://github.com/jashkenas/coffeescript.git\"},devDependencies:{\"babel-core\":\"~6.26.0\",\"babel-preset-babili\":\"~0.1.4\",\"babel-preset-env\":\"~1.6.1\",\"babel-preset-minify\":\"^0.3.0\",codemirror:\"^5.32.0\",docco:\"~0.8.0\",\"highlight.js\":\"~9.12.0\",jison:\">=0.4.18\",\"markdown-it\":\"~8.4.0\",underscore:\"~1.8.3\",webpack:\"~3.10.0\"},dependencies:{}}}(),require[\"./helpers\"]=function(){var e={};return function(){var t,n,r,i,s,o,u,a;e.starts=function(e,t,n){return t===e.substr(n,t.length)},e.ends=function(e,t,n){var r;return r=t.length,t===e.substr(e.length-r-(n||0),r)},e.repeat=u=function(e,t){var n;for(n=\"\";0<t;)1&t&&(n+=e),t>>>=1,e+=e;return n},e.compact=function(e){var t,n,r,i;for(i=[],t=0,r=e.length;t<r;t++)n=e[t],n&&i.push(n);return i},e.count=function(e,t){var n,r;if(n=r=0,!t.length)return 1/0;for(;r=1+e.indexOf(t,r);)n++;return n},e.merge=function(e,t){return i(i({},e),t)},i=e.extend=function(e,t){var n,r;for(n in t)r=t[n],e[n]=r;return e},e.flatten=s=function(t){var n,r,i,o;for(r=[],i=0,o=t.length;i<o;i++)n=t[i],\"[object Array]\"===Object.prototype.toString.call(n)?r=r.concat(s(n)):r.push(n);return r},e.del=function(e,t){var n;return n=e[t],delete e[t],n},e.some=null==(o=Array.prototype.some)?function(e){var t,n,r,i;for(i=this,n=0,r=i.length;n<r;n++)if(t=i[n],e(t))return!0;return!1}:o,e.invertLiterate=function(e){var t,n,r,i,s,o,u,a,f;for(a=[],t=/^\\s*$/,r=/^[\\t ]/,u=/^(?:\\t?| {0,3})(?:[\\*\\-\\+]|[0-9]{1,9}\\.)[ \\t]/,i=!1,f=e.split(\"\\n\"),n=0,s=f.length;n<s;n++)o=f[n],t.test(o)?(i=!1,a.push(o)):i||u.test(o)?(i=!0,a.push(\"# \"+o)):!i&&r.test(o)?a.push(o):(i=!0,a.push(\"# \"+o));return a.join(\"\\n\")},n=function(e,t){return t?{first_line:e.first_line,first_column:e.first_column,last_line:t.last_line,last_column:t.last_column}:e},r=function(e){return e.first_line+\"x\"+e.first_column+\"-\"+e.last_line+\"x\"+e.last_column},e.addDataToNode=function(e,i,s){return function(o){var u,a,f,l,c,h;if(null!=(null==o?void 0:o.updateLocationDataIfMissing)&&null!=i&&o.updateLocationDataIfMissing(n(i,s)),!e.tokenComments)for(e.tokenComments={},l=e.parser.tokens,u=0,a=l.length;u<a;u++)if(c=l[u],!!c.comments)if(h=r(c[2]),null==e.tokenComments[h])e.tokenComments[h]=c.comments;else{var p;(p=e.tokenComments[h]).push.apply(p,_toConsumableArray(c.comments))}return null!=o.locationData&&(f=r(o.locationData),null!=e.tokenComments[f]&&t(e.tokenComments[f],o)),o}},e.attachCommentsToNode=t=function(e,t){var n;if(null!=e&&0!==e.length)return null==t.comments&&(t.comments=[]),(n=t.comments).push.apply(n,_toConsumableArray(e))},e.locationDataToString=function(e){var t;return\"2\"in e&&\"first_line\"in e[2]?t=e[2]:\"first_line\"in e&&(t=e),t?t.first_line+1+\":\"+(t.first_column+1)+\"-\"+(t.last_line+1+\":\"+(t.last_column+1)):\"No location data\"},e.baseFileName=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r,i;return(i=n?/\\\\|\\//:/\\//,r=e.split(i),e=r[r.length-1],!(t&&0<=e.indexOf(\".\")))?e:(r=e.split(\".\"),r.pop(),\"coffee\"===r[r.length-1]&&1<r.length&&r.pop(),r.join(\".\"))},e.isCoffee=function(e){return/\\.((lit)?coffee|coffee\\.md)$/.test(e)},e.isLiterate=function(e){return/\\.(litcoffee|coffee\\.md)$/.test(e)},e.throwSyntaxError=function(e,t){var n;throw n=new SyntaxError(e),n.location=t,n.toString=a,n.stack=n.toString(),n},e.updateSyntaxError=function(e,t,n){return e.toString===a&&(e.code||(e.code=t),e.filename||(e.filename=n),e.stack=e.toString()),e},a=function(){var e,t,n,r,i,s,o,a,f,l,c,h,p,d;if(!this.code||!this.location)return Error.prototype.toString.call(this);var v=this.location;return o=v.first_line,s=v.first_column,f=v.last_line,a=v.last_column,null==f&&(f=o),null==a&&(a=s),i=this.filename||\"[stdin]\",e=this.code.split(\"\\n\")[o],d=s,r=o===f?a+1:e.length,l=e.slice(0,d).replace(/[^\\s]/g,\" \")+u(\"^\",r-d),\"undefined\"!=typeof process&&null!==process&&(n=(null==(c=process.stdout)?void 0:c.isTTY)&&(null==(h=process.env)||!h.NODE_DISABLE_COLORS)),(null==(p=this.colorful)?n:p)&&(t=function(e){return\"\u001b[1;31m\"+e+\"\u001b[0m\"},e=e.slice(0,d)+t(e.slice(d,r))+e.slice(r),l=t(l)),i+\":\"+(o+1)+\":\"+(s+1)+\": error: \"+this.message+\"\\n\"+e+\"\\n\"+l},e.nameWhitespaceCharacter=function(e){return\" \"===e?\"space\":\"\\n\"===e?\"newline\":\"\\r\"===e?\"carriage return\":\"\t\"===e?\"tab\":e}}.call(this),{exports:e}.exports}(),require[\"./rewriter\"]=function(){var e={};return function(){var t=[].indexOf,n=require(\"./helpers\"),r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N;for(N=n.throwSyntaxError,x=function(e,t){var n,r,i,s,o;if(e.comments){if(t.comments&&0!==t.comments.length){for(o=[],s=e.comments,r=0,i=s.length;r<i;r++)n=s[r],n.unshift?o.push(n):t.comments.push(n);t.comments=o.concat(t.comments)}else t.comments=e.comments;return delete e.comments}},b=function(e,t,n,r){var i;return i=[e,t],i.generated=!0,n&&(i.origin=n),r&&x(r,i),i},e.Rewriter=m=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:\"rewrite\",value:function(t){var n,r,i;return this.tokens=t,(\"undefined\"!=typeof process&&null!==process?null==(n=process.env)?void 0:n.DEBUG_TOKEN_STREAM:void 0)&&(process.env.DEBUG_REWRITTEN_TOKEN_STREAM&&console.log(\"Initial token stream:\"),console.log(function(){var e,t,n,r;for(n=this.tokens,r=[],e=0,t=n.length;e<t;e++)i=n[e],r.push(i[0]+\"/\"+i[1]+(i.comments?\"*\":\"\"));return r}.call(this).join(\" \"))),this.removeLeadingNewlines(),this.closeOpenCalls(),this.closeOpenIndexes(),this.normalizeLines(),this.tagPostfixConditionals(),this.addImplicitBracesAndParens(),this.addParensToChainedDoIife(),this.rescueStowawayComments(),this.addLocationDataToGeneratedTokens(),this.enforceValidCSXAttributes(),this.fixOutdentLocationData(),(\"undefined\"!=typeof process&&null!==process?null==(r=process.env)?void 0:r.DEBUG_REWRITTEN_TOKEN_STREAM:void 0)&&(process.env.DEBUG_TOKEN_STREAM&&console.log(\"Rewritten token stream:\"),console.log(function(){var e,t,n,r;for(n=this.tokens,r=[],e=0,t=n.length;e<t;e++)i=n[e],r.push(i[0]+\"/\"+i[1]+(i.comments?\"*\":\"\"));return r}.call(this).join(\" \"))),this.tokens}},{key:\"scanTokens\",value:function(t){var n,r,i;for(i=this.tokens,n=0;r=i[n];)n+=t.call(this,r,n,i);return!0}},{key:\"detectEnd\",value:function(n,r,i){var s=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o,u,l,c,h;for(h=this.tokens,o=0;c=h[n];){if(0===o&&r.call(this,c,n))return i.call(this,c,n);if((u=c[0],0<=t.call(f,u))?o+=1:(l=c[0],0<=t.call(a,l))&&(o-=1),0>o)return s.returnOnNegativeLevel?void 0:i.call(this,c,n);n+=1}return n-1}},{key:\"removeLeadingNewlines\",value:function(){var t,n,r,i,s,o,u,a,f;for(u=this.tokens,t=n=0,s=u.length;n<s;t=++n){var l=_slicedToArray(u[t],1);if(f=l[0],\"TERMINATOR\"!==f)break}if(0!==t){for(a=this.tokens.slice(0,t),r=0,o=a.length;r<o;r++)i=a[r],x(i,this.tokens[t]);return this.tokens.splice(0,t)}}},{key:\"closeOpenCalls\",value:function(){var t,n;return n=function(e){var t;return\")\"===(t=e[0])||\"CALL_END\"===t},t=function(e){return e[0]=\"CALL_END\"},this.scanTokens(function(e,r){return\"CALL_START\"===e[0]&&this.detectEnd(r+1,n,t),1})}},{key:\"closeOpenIndexes\",value:function(){var t,n;return n=function(e){var t;return\"]\"===(t=e[0])||\"INDEX_END\"===t},t=function(e){return e[0]=\"INDEX_END\"},this.scanTokens(function(e,r){return\"INDEX_START\"===e[0]&&this.detectEnd(r+1,n,t),1})}},{key:\"indexOfTag\",value:function(n){var r,i,s,o,u;r=0;for(var a=arguments.length,f=Array(1<a?a-1:0),l=1;l<a;l++)f[l-1]=arguments[l];for(i=s=0,o=f.length;0<=o?0<=s&&s<o:0>=s&&s>o;i=0<=o?++s:--s)if(null!=f[i]&&(\"string\"==typeof f[i]&&(f[i]=[f[i]]),u=this.tag(n+i+r),0>t.call(f[i],u)))return-1;return n+i+r-1}},{key:\"looksObjectish\",value:function(n){var r,i;return-1!==this.indexOfTag(n,\"@\",null,\":\")||-1!==this.indexOfTag(n,null,\":\")||(i=this.indexOfTag(n,f),-1!==i&&(r=null,this.detectEnd(i+1,function(e){var n;return n=e[0],0<=t.call(a,n)},function(e,t){return r=t}),\":\"===this.tag(r+1)))}},{key:\"findTagsBackwards\",value:function(n,r){var i,s,o,u,l,c,h;for(i=[];0<=n&&(i.length||(u=this.tag(n),0>t.call(r,u))&&((l=this.tag(n),0>t.call(f,l))||this.tokens[n].generated)&&(c=this.tag(n),0>t.call(v,c)));)(s=this.tag(n),0<=t.call(a,s))&&i.push(this.tag(n)),(o=this.tag(n),0<=t.call(f,o))&&i.length&&i.pop(),n-=1;return h=this.tag(n),0<=t.call(r,h)}},{key:\"addImplicitBracesAndParens\",value:function(){var n,r;return n=[],r=null,this.scanTokens(function(e,o,u){var d=this,m=_slicedToArray(e,1),g,y,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I,q,R,U,z,W,X,V,$,J,K,Q;Q=m[0];var G=B=0<o?u[o-1]:[],Y=_slicedToArray(G,1);H=Y[0];var Z=D=o<u.length-1?u[o+1]:[],et=_slicedToArray(Z,1);if(_=et[0],X=function(){return n[n.length-1]},V=o,w=function(e){return o-V+e},k=function(e){var t;return null==e||null==(t=e[2])?void 0:t.ours},A=function(e){return k(e)&&\"{\"===(null==e?void 0:e[0])},L=function(e){return k(e)&&\"(\"===(null==e?void 0:e[0])},x=function(){return k(X())},T=function(){return L(X())},C=function(){return A(X())},N=function(){var e;return x()&&\"CONTROL\"===(null==(e=X())?void 0:e[0])},$=function(t){return n.push([\"(\",t,{ours:!0}]),u.splice(t,0,b(\"CALL_START\",\"(\",[\"\",\"implicit function call\",e[2]],B))},g=function(){return n.pop(),u.splice(o,0,b(\"CALL_END\",\")\",[\"\",\"end of input\",e[2]],B)),o+=1},J=function(t){var r=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i;return n.push([\"{\",t,{sameLine:!0,startsLine:r,ours:!0}]),i=new String(\"{\"),i.generated=!0,u.splice(t,0,b(\"{\",i,e,B))},y=function(t){return t=null==t?o:t,n.pop(),u.splice(t,0,b(\"}\",\"}\",e,B)),o+=1},E=function(e){var t;return t=null,d.detectEnd(e,function(e){return\"TERMINATOR\"===e[0]},function(e,n){return t=n},{returnOnNegativeLevel:!0}),null!=t&&d.looksObjectish(t+1)},(T()||C())&&0<=t.call(s,Q)||C()&&\":\"===H&&\"FOR\"===Q)return n.push([\"CONTROL\",o,{ours:!0}]),w(1);if(\"INDENT\"===Q&&x()){if(\"=>\"!==H&&\"->\"!==H&&\"[\"!==H&&\"(\"!==H&&\",\"!==H&&\"{\"!==H&&\"ELSE\"!==H&&\"=\"!==H)for(;T()||C()&&\":\"!==H;)T()?g():y();return N()&&n.pop(),n.push([Q,o]),w(1)}if(0<=t.call(f,Q))return n.push([Q,o]),w(1);if(0<=t.call(a,Q)){for(;x();)T()?g():C()?y():n.pop();r=n.pop()}if(S=function(){var n,r,i,s;return(i=d.findTagsBackwards(o,[\"FOR\"])&&d.findTagsBackwards(o,[\"FORIN\",\"FOROF\",\"FORFROM\"]),n=i||d.findTagsBackwards(o,[\"WHILE\",\"UNTIL\",\"LOOP\",\"LEADING_WHEN\"]),!!n)&&(r=!1,s=e[2].first_line,d.detectEnd(o,function(e){var n;return n=e[0],0<=t.call(v,n)},function(e,t){var n=u[t-1]||[],i=_slicedToArray(n,3),o;return H=i[0],o=i[2].first_line,r=s===o&&(\"->\"===H||\"=>\"===H)},{returnOnNegativeLevel:!0}),r)},(0<=t.call(h,Q)&&e.spaced||\"?\"===Q&&0<o&&!u[o-1].spaced)&&(0<=t.call(l,_)||\"...\"===_&&(j=this.tag(o+2),0<=t.call(l,j))&&!this.findTagsBackwards(o,[\"INDEX_START\",\"[\"])||0<=t.call(p,_)&&!D.spaced&&!D.newLine)&&!S())return\"?\"===Q&&(Q=e[0]=\"FUNC_EXIST\"),$(o+1),w(2);if(0<=t.call(h,Q)&&-1<this.indexOfTag(o+1,\"INDENT\")&&this.looksObjectish(o+2)&&!this.findTagsBackwards(o,[\"CLASS\",\"EXTENDS\",\"IF\",\"CATCH\",\"SWITCH\",\"LEADING_WHEN\",\"FOR\",\"WHILE\",\"UNTIL\"]))return $(o+1),n.push([\"INDENT\",o+2]),w(3);if(\":\"===Q){if(q=function(){var e;switch(!1){case e=this.tag(o-1),0>t.call(a,e):return r[1];case\"@\"!==this.tag(o-2):return o-2;default:return o-1}}.call(this),K=0>=q||(F=this.tag(q-1),0<=t.call(v,F))||u[q-1].newLine,X()){var tt=X(),nt=_slicedToArray(tt,2);if(W=nt[0],U=nt[1],(\"{\"===W||\"INDENT\"===W&&\"{\"===this.tag(U-1))&&(K||\",\"===this.tag(q-1)||\"{\"===this.tag(q-1)))return w(1)}return J(q,!!K),w(2)}if(0<=t.call(v,Q))for(O=n.length-1;0<=O&&(z=n[O],!!k(z));O+=-1)A(z)&&(z[2].sameLine=!1);if(M=\"OUTDENT\"===H||B.newLine,0<=t.call(c,Q)||0<=t.call(i,Q)&&M||(\"..\"===Q||\"...\"===Q)&&this.findTagsBackwards(o,[\"INDEX_START\"]))for(;x();){var rt=X(),it=_slicedToArray(rt,3);W=it[0],U=it[1];var st=it[2];if(R=st.sameLine,K=st.startsLine,T()&&\",\"!==H||\",\"===H&&\"TERMINATOR\"===Q&&null==_)g();else if(C()&&R&&\"TERMINATOR\"!==Q&&\":\"!==H&&(\"POST_IF\"!==Q&&\"FOR\"!==Q&&\"WHILE\"!==Q&&\"UNTIL\"!==Q||!K||!E(o+1)))y();else{if(!C()||\"TERMINATOR\"!==Q||\",\"===H||!!K&&!!this.looksObjectish(o+1))break;y()}}if(\",\"===Q&&!this.looksObjectish(o+1)&&C()&&\"FOROF\"!==(I=this.tag(o+2))&&\"FORIN\"!==I&&(\"TERMINATOR\"!==_||!this.looksObjectish(o+2)))for(P=\"OUTDENT\"===_?1:0;C();)y(o+P);return w(1)})}},{key:\"enforceValidCSXAttributes\",value:function(){return this.scanTokens(function(e,t,n){var r,i;return e.csxColon&&(r=n[t+1],\"STRING_START\"!==(i=r[0])&&\"STRING\"!==i&&\"(\"!==i&&N(\"expected wrapped or quoted JSX attribute\",r[2])),1})}},{key:\"rescueStowawayComments\",value:function(){var n,r,i;return n=function(e,t,n,r){return\"TERMINATOR\"!==n[t][0]&&n[r](b(\"TERMINATOR\",\"\\n\",n[t])),n[r](b(\"JS\",\"\",n[t],e))},i=function(e,r,i){var s,u,a,f,l,c,h;for(u=r;u!==i.length&&(l=i[u][0],0<=t.call(o,l));)u++;if(u===i.length||(c=i[u][0],0<=t.call(o,c)))return u=i.length-1,n(e,u,i,\"push\"),1;for(h=e.comments,a=0,f=h.length;a<f;a++)s=h[a],s.unshift=!0;return x(e,i[u]),1},r=function(e,r,i){var s,u,a;for(s=r;-1!==s&&(u=i[s][0],0<=t.call(o,u));)s--;return-1===s||(a=i[s][0],0<=t.call(o,a))?(n(e,0,i,\"unshift\"),3):(x(e,i[s]),1)},this.scanTokens(function(e,n,s){var u,a,f,l,c;if(!e.comments)return 1;if(c=1,f=e[0],0<=t.call(o,f)){for(u={comments:[]},a=e.comments.length-1;-1!==a;)!1===e.comments[a].newLine&&!1===e.comments[a].here&&(u.comments.unshift(e.comments[a]),e.comments.splice(a,1)),a--;0!==u.comments.length&&(c=r(u,n-1,s)),0!==e.comments.length&&i(e,n,s)}else{for(u={comments:[]},a=e.comments.length-1;-1!==a;)!e.comments[a].newLine||e.comments[a].unshift||\"JS\"===e[0]&&e.generated||(u.comments.unshift(e.comments[a]),e.comments.splice(a,1)),a--;0!==u.comments.length&&(c=i(u,n+1,s))}return 0===(null==(l=e.comments)?void 0:l.length)&&delete e.comments,c})}},{key:\"addLocationDataToGeneratedTokens\",value:function(){return this.scanTokens(function(e,t,n){var r,i,s,o,u,a;if(e[2])return 1;if(!e.generated&&!e.explicit)return 1;if(\"{\"===e[0]&&(s=null==(u=n[t+1])?void 0:u[2])){var f=s;i=f.first_line,r=f.first_column}else if(o=null==(a=n[t-1])?void 0:a[2]){var l=o;i=l.last_line,r=l.last_column}else i=r=0;return e[2]={first_line:i,first_column:r,last_line:i,last_column:r},1})}},{key:\"fixOutdentLocationData\",value:function(){return this.scanTokens(function(e,t,n){var r;return\"OUTDENT\"===e[0]||e.generated&&\"CALL_END\"===e[0]||e.generated&&\"}\"===e[0]?(r=n[t-1][2],e[2]={first_line:r.last_line,first_column:r.last_column,last_line:r.last_line,last_column:r.last_column},1):1})}},{key:\"addParensToChainedDoIife\",value:function(){var n,r,s;return r=function(e,t){return\"OUTDENT\"===this.tag(t-1)},n=function(e,n){var r;if(r=e[0],!(0>t.call(i,r)))return this.tokens.splice(s,0,b(\"(\",\"(\",this.tokens[s])),this.tokens.splice(n+1,0,b(\")\",\")\",this.tokens[n]))},s=null,this.scanTokens(function(e,t){var i,o;return\"do\"===e[1]?(s=t,i=t+1,\"PARAM_START\"===this.tag(t+1)&&(i=null,this.detectEnd(t+1,function(e,t){return\"PARAM_END\"===this.tag(t-1)},function(e,t){return i=t})),null==i||\"->\"!==(o=this.tag(i))&&\"=>\"!==o||\"INDENT\"!==this.tag(i+1))?1:(this.detectEnd(i+1,r,n),2):1})}},{key:\"normalizeLines\",value:function(){var n=this,r,s,o,a,f,l,c,h,p;return p=f=h=null,c=null,l=null,a=[],o=function(e,n){var r,s,o,a;return\";\"!==e[1]&&(r=e[0],0<=t.call(g,r))&&!(\"TERMINATOR\"===e[0]&&(s=this.tag(n+1),0<=t.call(u,s)))&&(\"ELSE\"!==e[0]||\"THEN\"===p&&!l&&!c)&&(\"CATCH\"!==(o=e[0])&&\"FINALLY\"!==o||\"->\"!==p&&\"=>\"!==p)||(a=e[0],0<=t.call(i,a))&&(this.tokens[n-1].newLine||\"OUTDENT\"===this.tokens[n-1][0])},r=function(e,t){return\"ELSE\"===e[0]&&\"THEN\"===p&&a.pop(),this.tokens.splice(\",\"===this.tag(t-1)?t-1:t,0,h)},s=function(e,t){var r,i,s;if(s=a.length,0<s){r=a.pop();var o=n.indentation(e[r]),u=_slicedToArray(o,2);return i=u[1],i[1]=2*s,e.splice(t,0,i),i[1]=2,e.splice(t+1,0,i),n.detectEnd(t+2,function(e){var t;return\"OUTDENT\"===(t=e[0])||\"TERMINATOR\"===t},function(t,n){if(\"OUTDENT\"===this.tag(n)&&\"OUTDENT\"===this.tag(n+1))return e.splice(n,2)}),t+2}return t},this.scanTokens(function(e,n,i){var d=_slicedToArray(e,1),v,m,g,b,w,E;if(E=d[0],v=(\"->\"===E||\"=>\"===E)&&this.findTagsBackwards(n,[\"IF\",\"WHILE\",\"FOR\",\"UNTIL\",\"SWITCH\",\"WHEN\",\"LEADING_WHEN\",\"[\",\"INDEX_START\"])&&!this.findTagsBackwards(n,[\"THEN\",\"..\",\"...\"]),\"TERMINATOR\"===E){if(\"ELSE\"===this.tag(n+1)&&\"OUTDENT\"!==this.tag(n-1))return i.splice.apply(i,[n,1].concat(_toConsumableArray(this.indentation()))),1;if(b=this.tag(n+1),0<=t.call(u,b))return i.splice(n,1),0}if(\"CATCH\"===E)for(m=g=1;2>=g;m=++g)if(\"OUTDENT\"===(w=this.tag(n+m))||\"TERMINATOR\"===w||\"FINALLY\"===w)return i.splice.apply(i,[n+m,0].concat(_toConsumableArray(this.indentation()))),2+m;if(\"->\"!==E&&\"=>\"!==E||!(\",\"===this.tag(n+1)||\".\"===this.tag(n+1)&&e.newLine)){if(0<=t.call(y,E)&&\"INDENT\"!==this.tag(n+1)&&(\"ELSE\"!==E||\"IF\"!==this.tag(n+1))&&!v){p=E;var T=this.indentation(i[n]),N=_slicedToArray(T,2);return f=N[0],h=N[1],\"THEN\"===p&&(f.fromThen=!0),\"THEN\"===E&&(c=this.findTagsBackwards(n,[\"LEADING_WHEN\"])&&\"IF\"===this.tag(n+1),l=this.findTagsBackwards(n,[\"IF\"])&&\"IF\"===this.tag(n+1)),\"THEN\"===E&&this.findTagsBackwards(n,[\"IF\"])&&a.push(n),\"ELSE\"===E&&\"OUTDENT\"!==this.tag(n-1)&&(n=s(i,n)),i.splice(n+1,0,f),this.detectEnd(n+2,o,r),\"THEN\"===E&&i.splice(n,1),1}return 1}var S=this.indentation(i[n]),x=_slicedToArray(S,2);return f=x[0],h=x[1],i.splice(n+1,0,f,h),1})}},{key:\"tagPostfixConditionals\",value:function(){var n,r,i;return i=null,r=function(e,n){var r=_slicedToArray(e,1),i,s;s=r[0];var o=_slicedToArray(this.tokens[n-1],1);return i=o[0],\"TERMINATOR\"===s||\"INDENT\"===s&&0>t.call(y,i)},n=function(e){if(\"INDENT\"!==e[0]||e.generated&&!e.fromThen)return i[0]=\"POST_\"+i[0]},this.scanTokens(function(e,t){return\"IF\"===e[0]?(i=e,this.detectEnd(t+1,r,n),1):1})}},{key:\"indentation\",value:function(t){var n,r;return n=[\"INDENT\",2],r=[\"OUTDENT\",2],t?(n.generated=r.generated=!0,n.origin=r.origin=t):n.explicit=r.explicit=!0,[n,r]}},{key:\"tag\",value:function(t){var n;return null==(n=this.tokens[t])?void 0:n[0]}}]),e}();return e.prototype.generate=b,e}.call(this),r=[[\"(\",\")\"],[\"[\",\"]\"],[\"{\",\"}\"],[\"INDENT\",\"OUTDENT\"],[\"CALL_START\",\"CALL_END\"],[\"PARAM_START\",\"PARAM_END\"],[\"INDEX_START\",\"INDEX_END\"],[\"STRING_START\",\"STRING_END\"],[\"REGEX_START\",\"REGEX_END\"]],e.INVERSES=d={},f=[],a=[],w=0,S=r.length;w<S;w++){var C=_slicedToArray(r[w],2);E=C[0],T=C[1],f.push(d[T]=E),a.push(d[E]=T)}u=[\"CATCH\",\"THEN\",\"ELSE\",\"FINALLY\"].concat(a),h=[\"IDENTIFIER\",\"PROPERTY\",\"SUPER\",\")\",\"CALL_END\",\"]\",\"INDEX_END\",\"@\",\"THIS\"],l=[\"IDENTIFIER\",\"CSX_TAG\",\"PROPERTY\",\"NUMBER\",\"INFINITY\",\"NAN\",\"STRING\",\"STRING_START\",\"REGEX\",\"REGEX_START\",\"JS\",\"NEW\",\"PARAM_START\",\"CLASS\",\"IF\",\"TRY\",\"SWITCH\",\"THIS\",\"UNDEFINED\",\"NULL\",\"BOOL\",\"UNARY\",\"YIELD\",\"AWAIT\",\"UNARY_MATH\",\"SUPER\",\"THROW\",\"@\",\"->\",\"=>\",\"[\",\"(\",\"{\",\"--\",\"++\"],p=[\"+\",\"-\"],c=[\"POST_IF\",\"FOR\",\"WHILE\",\"UNTIL\",\"WHEN\",\"BY\",\"LOOP\",\"TERMINATOR\"],y=[\"ELSE\",\"->\",\"=>\",\"TRY\",\"FINALLY\",\"THEN\"],g=[\"TERMINATOR\",\"CATCH\",\"FINALLY\",\"ELSE\",\"OUTDENT\",\"LEADING_WHEN\"],v=[\"TERMINATOR\",\"INDENT\",\"OUTDENT\"],i=[\".\",\"?.\",\"::\",\"?::\"],s=[\"IF\",\"TRY\",\"FINALLY\",\"CATCH\",\"CLASS\",\"SWITCH\"],o=[\"(\",\")\",\"[\",\"]\",\"{\",\"}\",\".\",\"..\",\"...\",\",\",\"=\",\"++\",\"--\",\"?\",\"AS\",\"AWAIT\",\"CALL_START\",\"CALL_END\",\"DEFAULT\",\"ELSE\",\"EXTENDS\",\"EXPORT\",\"FORIN\",\"FOROF\",\"FORFROM\",\"IMPORT\",\"INDENT\",\"INDEX_SOAK\",\"LEADING_WHEN\",\"OUTDENT\",\"PARAM_END\",\"REGEX_START\",\"REGEX_END\",\"RETURN\",\"STRING_END\",\"THROW\",\"UNARY\",\"YIELD\"].concat(p.concat(c.concat(i.concat(s))))}.call(this),{exports:e}.exports}(),require[\"./lexer\"]=function(){var e={};return function(){var t=[].indexOf,n=[].slice,r=require(\"./rewriter\"),i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I,q,R,U,z,W,X,V,$,J,K,Q,G,Y,Z,et,tt,nt,rt,it,st,ot,ut,at,ft,lt,ct,ht,pt,dt,vt,mt,gt,yt,bt,wt,Et,St,xt;K=r.Rewriter,O=r.INVERSES;var Tt=require(\"./helpers\");dt=Tt.count,St=Tt.starts,pt=Tt.compact,Et=Tt.repeat,vt=Tt.invertLiterate,wt=Tt.merge,ht=Tt.attachCommentsToNode,bt=Tt.locationDataToString,xt=Tt.throwSyntaxError,e.Lexer=B=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:\"tokenize\",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r,i,s,o;for(this.literate=n.literate,this.indent=0,this.baseIndent=0,this.indebt=0,this.outdebt=0,this.indents=[],this.indentLiteral=\"\",this.ends=[],this.tokens=[],this.seenFor=!1,this.seenImport=!1,this.seenExport=!1,this.importSpecifierList=!1,this.exportSpecifierList=!1,this.csxDepth=0,this.csxObjAttribute={},this.chunkLine=n.line||0,this.chunkColumn=n.column||0,t=this.clean(t),s=0;this.chunk=t.slice(s);){r=this.identifierToken()||this.commentToken()||this.whitespaceToken()||this.lineToken()||this.stringToken()||this.numberToken()||this.csxToken()||this.regexToken()||this.jsToken()||this.literalToken();var u=this.getLineAndColumnFromChunk(r),a=_slicedToArray(u,2);if(this.chunkLine=a[0],this.chunkColumn=a[1],s+=r,n.untilBalanced&&0===this.ends.length)return{tokens:this.tokens,index:s}}return this.closeIndentation(),(i=this.ends.pop())&&this.error(\"missing \"+i.tag,(null==(o=i.origin)?i:o)[2]),!1===n.rewrite?this.tokens:(new K).rewrite(this.tokens)}},{key:\"clean\",value:function(t){return t.charCodeAt(0)===i&&(t=t.slice(1)),t=t.replace(/\\r/g,\"\").replace(st,\"\"),ct.test(t)&&(t=\"\\n\"+t,this.chunkLine--),this.literate&&(t=vt(t)),t}},{key:\"identifierToken\",value:function(){var n,r,i,s,u,c,h,p,d,m,g,y,b,w,E,S,x,T,N,k,L,A,O,M,D,H,B,j;if(h=this.atCSXTag(),D=h?v:C,!(d=D.exec(this.chunk)))return 0;var F=d,I=_slicedToArray(F,3);if(p=I[0],u=I[1],r=I[2],c=u.length,m=void 0,\"own\"===u&&\"FOR\"===this.tag())return this.token(\"OWN\",u),u.length;if(\"from\"===u&&\"YIELD\"===this.tag())return this.token(\"FROM\",u),u.length;if(\"as\"===u&&this.seenImport){if(\"*\"===this.value())this.tokens[this.tokens.length-1][0]=\"IMPORT_ALL\";else if(b=this.value(!0),0<=t.call(l,b)){g=this.prev();var q=[\"IDENTIFIER\",this.value(!0)];g[0]=q[0],g[1]=q[1]}if(\"DEFAULT\"===(w=this.tag())||\"IMPORT_ALL\"===w||\"IDENTIFIER\"===w)return this.token(\"AS\",u),u.length}if(\"as\"===u&&this.seenExport){if(\"IDENTIFIER\"===(S=this.tag())||\"DEFAULT\"===S)return this.token(\"AS\",u),u.length;if(x=this.value(!0),0<=t.call(l,x)){g=this.prev();var R=[\"IDENTIFIER\",this.value(!0)];return g[0]=R[0],g[1]=R[1],this.token(\"AS\",u),u.length}}if(\"default\"!==u||!this.seenExport||\"EXPORT\"!==(T=this.tag())&&\"AS\"!==T){if(\"do\"===u&&(M=/^(\\s*super)(?!\\(\\))/.exec(this.chunk.slice(3)))){this.token(\"SUPER\",\"super\"),this.token(\"CALL_START\",\"(\"),this.token(\"CALL_END\",\")\");var U=M,z=_slicedToArray(U,2);return p=z[0],H=z[1],H.length+3}if(g=this.prev(),B=r||null!=g&&(\".\"===(N=g[0])||\"?.\"===N||\"::\"===N||\"?::\"===N||!g.spaced&&\"@\"===g[0])?\"PROPERTY\":\"IDENTIFIER\",\"IDENTIFIER\"===B&&(0<=t.call(_,u)||0<=t.call(l,u))&&!(this.exportSpecifierList&&0<=t.call(l,u))?(B=u.toUpperCase(),\"WHEN\"===B&&(k=this.tag(),0<=t.call(P,k))?B=\"LEADING_WHEN\":\"FOR\"===B?this.seenFor=!0:\"UNLESS\"===B?B=\"IF\":\"IMPORT\"===B?this.seenImport=!0:\"EXPORT\"===B?this.seenExport=!0:0<=t.call(ot,B)?B=\"UNARY\":0<=t.call($,B)&&(\"INSTANCEOF\"!==B&&this.seenFor?(B=\"FOR\"+B,this.seenFor=!1):(B=\"RELATION\",\"!\"===this.value()&&(m=this.tokens.pop(),u=\"!\"+u)))):\"IDENTIFIER\"===B&&this.seenFor&&\"from\"===u&&mt(g)?(B=\"FORFROM\",this.seenFor=!1):\"PROPERTY\"===B&&g&&(g.spaced&&(L=g[0],0<=t.call(o,L))&&/^[gs]et$/.test(g[1])&&1<this.tokens.length&&\".\"!==(A=this.tokens[this.tokens.length-2][0])&&\"?.\"!==A&&\"@\"!==A?this.error(\"'\"+g[1]+\"' cannot be used as a keyword, or as a function call without parentheses\",g[2]):2<this.tokens.length&&(y=this.tokens[this.tokens.length-2],(\"@\"===(O=g[0])||\"THIS\"===O)&&y&&y.spaced&&/^[gs]et$/.test(y[1])&&\".\"!==(E=this.tokens[this.tokens.length-3][0])&&\"?.\"!==E&&\"@\"!==E&&this.error(\"'\"+y[1]+\"' cannot be used as a keyword, or as a function call without parentheses\",y[2]))),\"IDENTIFIER\"===B&&0<=t.call(J,u)&&this.error(\"reserved word '\"+u+\"'\",{length:u.length}),\"PROPERTY\"===B||this.exportSpecifierList||(0<=t.call(a,u)&&(n=u,u=f[u]),B=function(){return\"!\"===u?\"UNARY\":\"==\"===u||\"!=\"===u?\"COMPARE\":\"true\"===u||\"false\"===u?\"BOOL\":\"break\"===u||\"continue\"===u||\"debugger\"===u?\"STATEMENT\":\"&&\"===u||\"||\"===u?u:B}()),j=this.token(B,u,0,c),n&&(j.origin=[B,n,j[2]]),m){var W=[m[2].first_line,m[2].first_column];j[2].first_line=W[0],j[2].first_column=W[1]}return r&&(i=p.lastIndexOf(h?\"=\":\":\"),s=this.token(\":\",\":\",i,r.length),h&&(s.csxColon=!0)),h&&\"IDENTIFIER\"===B&&\":\"!==g[0]&&this.token(\",\",\",\",0,0,j),p.length}return this.token(\"DEFAULT\",u),u.length}},{key:\"numberToken\",value:function(){var t,n,r,i,s,o;if(!(r=q.exec(this.chunk)))return 0;switch(i=r[0],n=i.length,!1){case!/^0[BOX]/.test(i):this.error(\"radix prefix in '\"+i+\"' must be lowercase\",{offset:1});break;case!/^(?!0x).*E/.test(i):this.error(\"exponential notation in '\"+i+\"' must be indicated with a lowercase 'e'\",{offset:i.indexOf(\"E\")});break;case!/^0\\d*[89]/.test(i):this.error(\"decimal literal '\"+i+\"' must not be prefixed with '0'\",{length:n});break;case!/^0\\d+/.test(i):this.error(\"octal literal '\"+i+\"' must be prefixed with '0o'\",{length:n})}return t=function(){switch(i.charAt(1)){case\"b\":return 2;case\"o\":return 8;case\"x\":return 16;default:return null}}(),s=null==t?parseFloat(i):parseInt(i.slice(2),t),o=Infinity===s?\"INFINITY\":\"NUMBER\",this.token(o,i,0,n),n}},{key:\"stringToken\",value:function(){var t=this,n=rt.exec(this.chunk)||[],r=_slicedToArray(n,1),i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b;if(v=r[0],!v)return 0;d=this.prev(),d&&\"from\"===this.value()&&(this.seenImport||this.seenExport)&&(d[0]=\"FROM\"),g=function(){return\"'\"===v?nt:'\"'===v?Z:\"'''\"===v?S:'\"\"\"'===v?w:void 0}(),f=3===v.length;var x=this.matchWithInterpolations(g,v);if(b=x.tokens,a=x.index,i=b.length-1,o=v.charAt(0),f){for(c=null,u=function(){var e,t,n;for(n=[],l=e=0,t=b.length;e<t;l=++e)y=b[l],\"NEOSTRING\"===y[0]&&n.push(y[1]);return n}().join(\"#{}\");p=E.exec(u);)s=p[1],(null===c||0<(m=s.length)&&m<c.length)&&(c=s);c&&(h=RegExp(\"\\\\n\"+c,\"g\")),this.mergeInterpolationTokens(b,{delimiter:o},function(e,n){return e=t.formatString(e,{delimiter:v}),h&&(e=e.replace(h,\"\\n\")),0===n&&(e=e.replace(D,\"\")),n===i&&(e=e.replace(it,\"\")),e})}else this.mergeInterpolationTokens(b,{delimiter:o},function(e,n){return e=t.formatString(e,{delimiter:v}),e=e.replace(G,function(t,r){return 0===n&&0===r||n===i&&r+t.length===e.length?\"\":\" \"}),e});return this.atCSXTag()&&this.token(\",\",\",\",0,0,this.prev),a}},{key:\"commentToken\",value:function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.chunk,r,i,s,o,u,a,f,l,h,p,d;if(!(f=n.match(c)))return 0;var v=f,m=_slicedToArray(v,2);return r=m[0],u=m[1],o=null,h=/^\\s*\\n+\\s*#/.test(r),u?(l=b.exec(r),l&&this.error(\"block comments cannot contain \"+l[0],{offset:l.index,length:l[0].length}),n=n.replace(\"###\"+u+\"###\",\"\"),n=n.replace(/^\\n+/,\"\"),this.lineToken(n),s=u,0<=t.call(s,\"\\n\")&&(s=s.replace(RegExp(\"\\\\n\"+Et(\" \",this.indent),\"g\"),\"\\n\")),o=[s]):(s=r.replace(/^(\\n*)/,\"\"),s=s.replace(/^([ |\\t]*)#/gm,\"\"),o=s.split(\"\\n\")),i=function(){var e,t,n;for(n=[],a=e=0,t=o.length;e<t;a=++e)s=o[a],n.push({content:s,here:null!=u,newLine:h||0!==a});return n}(),d=this.prev(),d?ht(i,d):(i[0].newLine=!0,this.lineToken(this.chunk.slice(r.length)),p=this.makeToken(\"JS\",\"\"),p.generated=!0,p.comments=i,this.tokens.push(p),this.newlineToken(0)),r.length}},{key:\"jsToken\",value:function(){var t,n;return\"`\"===this.chunk.charAt(0)&&(t=N.exec(this.chunk)||M.exec(this.chunk))?(n=t[1].replace(/\\\\+(`|$)/g,function(e){return e.slice(-Math.ceil(e.length/2))}),this.token(\"JS\",n,0,t[0].length),t[0].length):0}},{key:\"regexToken\",value:function(){var n=this,r,i,s,u,a,f,l,c,h,p,d,v,m,g,y,b;switch(!1){case!(p=X.exec(this.chunk)):this.error(\"regular expressions cannot begin with \"+p[2],{offset:p.index+p[1].length});break;case!(p=this.matchWithInterpolations(x,\"///\")):var w=p;if(b=w.tokens,l=w.index,u=this.chunk.slice(0,l).match(/\\s+(#(?!{).*)/g),u)for(c=0,h=u.length;c<h;c++)s=u[c],this.commentToken(s);break;case!(p=z.exec(this.chunk)):var E=p,S=_slicedToArray(E,3);if(y=S[0],r=S[1],i=S[2],this.validateEscapes(r,{isRegex:!0,offsetInChunk:1}),l=y.length,v=this.prev(),v)if(v.spaced&&(m=v[0],0<=t.call(o,m))){if(!i||U.test(y))return 0}else if(g=v[0],0<=t.call(I,g))return 0;i||this.error(\"missing / (unclosed regex)\");break;default:return 0}var T=W.exec(this.chunk.slice(l)),N=_slicedToArray(T,1);switch(f=N[0],a=l+f.length,d=this.makeToken(\"REGEX\",null,0,a),!1){case!!lt.test(f):this.error(\"invalid regular expression flags \"+f,{offset:l,length:f.length});break;case!y&&1!==b.length:r=r?this.formatRegex(r,{flags:f,delimiter:\"/\"}):this.formatHeregex(b[0][1],{flags:f}),this.token(\"REGEX\",\"\"+this.makeDelimitedLiteral(r,{delimiter:\"/\"})+f,0,a,d);break;default:this.token(\"REGEX_START\",\"(\",0,0,d),this.token(\"IDENTIFIER\",\"RegExp\",0,0),this.token(\"CALL_START\",\"(\",0,0),this.mergeInterpolationTokens(b,{delimiter:'\"',\"double\":!0},function(e){return n.formatHeregex(e,{flags:f})}),f&&(this.token(\",\",\",\",l-1,0),this.token(\"STRING\",'\"'+f+'\"',l-1,f.length)),this.token(\")\",\")\",a-1,0),this.token(\"REGEX_END\",\")\",a-1,0)}return a}},{key:\"lineToken\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.chunk,n,r,i,s,o,u,a,f,l;if(!(s=F.exec(t)))return 0;if(i=s[0],f=this.prev(),n=null!=f&&\"\\\\\"===f[0],n&&this.seenFor||(this.seenFor=!1),this.importSpecifierList||(this.seenImport=!1),this.exportSpecifierList||(this.seenExport=!1),l=i.length-1-i.lastIndexOf(\"\\n\"),a=this.unfinished(),u=0<l?i.slice(-l):\"\",!/^(.?)\\1*$/.exec(u))return this.error(\"mixed indentation\",{offset:i.length}),i.length;if(o=Math.min(u.length,this.indentLiteral.length),u.slice(0,o)!==this.indentLiteral.slice(0,o))return this.error(\"indentation mismatch\",{offset:i.length}),i.length;if(l-this.indebt===this.indent)return a?this.suppressNewlines():this.newlineToken(0),i.length;if(l>this.indent){if(a)return this.indebt=l-this.indent,this.suppressNewlines(),i.length;if(!this.tokens.length)return this.baseIndent=this.indent=l,this.indentLiteral=u,i.length;r=l-this.indent+this.outdebt,this.token(\"INDENT\",r,i.length-l,l),this.indents.push(r),this.ends.push({tag:\"OUTDENT\"}),this.outdebt=this.indebt=0,this.indent=l,this.indentLiteral=u}else l<this.baseIndent?this.error(\"missing indentation\",{offset:i.length}):(this.indebt=0,this.outdentToken(this.indent-l,a,i.length));return i.length}},{key:\"outdentToken\",value:function(n,r,i){var s,o,u,a;for(s=this.indent-n;0<n;)u=this.indents[this.indents.length-1],u?this.outdebt&&n<=this.outdebt?(this.outdebt-=n,n=0):(o=this.indents.pop()+this.outdebt,i&&(a=this.chunk[i],0<=t.call(k,a))&&(s-=o-n,n=o),this.outdebt=0,this.pair(\"OUTDENT\"),this.token(\"OUTDENT\",n,0,i),n-=o):this.outdebt=n=0;return o&&(this.outdebt-=n),this.suppressSemicolons(),\"TERMINATOR\"===this.tag()||r||this.token(\"TERMINATOR\",\"\\n\",i,0),this.indent=s,this.indentLiteral=this.indentLiteral.slice(0,s),this}},{key:\"whitespaceToken\",value:function(){var t,n,r;return(t=ct.exec(this.chunk))||(n=\"\\n\"===this.chunk.charAt(0))?(r=this.prev(),r&&(r[t?\"spaced\":\"newLine\"]=!0),t?t[0].length:0):0}},{key:\"newlineToken\",value:function(t){return this.suppressSemicolons(),\"TERMINATOR\"!==this.tag()&&this.token(\"TERMINATOR\",\"\\n\",t,0),this}},{key:\"suppressNewlines\",value:function(){var t;return t=this.prev(),\"\\\\\"===t[1]&&(t.comments&&1<this.tokens.length&&ht(t.comments,this.tokens[this.tokens.length-2]),this.tokens.pop()),this}},{key:\"csxToken\",value:function(){var n=this,r,i,s,o,u,a,f,l,c,p,d,v,b,w;if(u=this.chunk[0],d=0<this.tokens.length?this.tokens[this.tokens.length-1][0]:\"\",\"<\"===u){if(l=g.exec(this.chunk.slice(1))||m.exec(this.chunk.slice(1)),!l||!(0<this.csxDepth||!(p=this.prev())||p.spaced||(v=p[0],0>t.call(h,v))))return 0;var E=l,S=_slicedToArray(E,3);return f=S[0],a=S[1],i=S[2],c=this.token(\"CSX_TAG\",a,1,a.length),this.token(\"CALL_START\",\"(\"),this.token(\"[\",\"[\"),this.ends.push({tag:\"/>\",origin:c,name:a}),this.csxDepth++,a.length+1}if(s=this.atCSXTag()){if(\"/>\"===this.chunk.slice(0,2))return this.pair(\"/>\"),this.token(\"]\",\"]\",0,2),this.token(\"CALL_END\",\")\",0,2),this.csxDepth--,2;if(\"{\"===u)return\":\"===d?(b=this.token(\"(\",\"(\"),this.csxObjAttribute[this.csxDepth]=!1):(b=this.token(\"{\",\"{\"),this.csxObjAttribute[this.csxDepth]=!0),this.ends.push({tag:\"}\",origin:b}),1;if(\">\"===u){this.pair(\"/>\"),c=this.token(\"]\",\"]\"),this.token(\",\",\",\");var x=this.matchWithInterpolations(A,\">\",\"</\",y);return w=x.tokens,o=x.index,this.mergeInterpolationTokens(w,{delimiter:'\"'},function(e){return n.formatString(e,{delimiter:\">\"})}),l=g.exec(this.chunk.slice(o))||m.exec(this.chunk.slice(o)),l&&l[1]===s.name||this.error(\"expected corresponding CSX closing tag for \"+s.name,s.origin[2]),r=o+s.name.length,\">\"!==this.chunk[r]&&this.error(\"missing closing > after tag name\",{offset:r,length:1}),this.token(\"CALL_END\",\")\",o,s.name.length+1),this.csxDepth--,r+1}return 0}return this.atCSXTag(1)?\"}\"===u?(this.pair(u),this.csxObjAttribute[this.csxDepth]?(this.token(\"}\",\"}\"),this.csxObjAttribute[this.csxDepth]=!1):this.token(\")\",\")\"),this.token(\",\",\",\"),1):0:0}},{key:\"atCSXTag\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,n,r,i;if(0===this.csxDepth)return!1;for(n=this.ends.length-1;\"OUTDENT\"===(null==(i=this.ends[n])?void 0:i.tag)||0<t--;)n--;return r=this.ends[n],\"/>\"===(null==r?void 0:r.tag)&&r}},{key:\"literalToken\",value:function(){var n,r,i,s,a,f,l,c,h,v,m,g,y;if(n=R.exec(this.chunk)){var b=n,w=_slicedToArray(b,1);y=w[0],u.test(y)&&this.tagParameters()}else y=this.chunk.charAt(0);if(m=y,s=this.prev(),s&&0<=t.call([\"=\"].concat(_toConsumableArray(d)),y)&&(v=!1,\"=\"!==y||\"||\"!==(a=s[1])&&\"&&\"!==a||s.spaced||(s[0]=\"COMPOUND_ASSIGN\",s[1]+=\"=\",s=this.tokens[this.tokens.length-2],v=!0),s&&\"PROPERTY\"!==s[0]&&(i=null==(f=s.origin)?s:f,r=gt(s[1],i[1]),r&&this.error(r,i[2])),v))return y.length;if(\"{\"===y&&this.seenImport?this.importSpecifierList=!0:this.importSpecifierList&&\"}\"===y?this.importSpecifierList=!1:\"{\"===y&&\"EXPORT\"===(null==s?void 0:s[0])?this.exportSpecifierList=!0:this.exportSpecifierList&&\"}\"===y&&(this.exportSpecifierList=!1),\";\"===y)(l=null==s?void 0:s[0],0<=t.call([\"=\"].concat(_toConsumableArray(at)),l))&&this.error(\"unexpected ;\"),this.seenFor=this.seenImport=this.seenExport=!1,m=\"TERMINATOR\";else if(\"*\"===y&&\"EXPORT\"===(null==s?void 0:s[0]))m=\"EXPORT_ALL\";else if(0<=t.call(j,y))m=\"MATH\";else if(0<=t.call(p,y))m=\"COMPARE\";else if(0<=t.call(d,y))m=\"COMPOUND_ASSIGN\";else if(0<=t.call(ot,y))m=\"UNARY\";else if(0<=t.call(ut,y))m=\"UNARY_MATH\";else if(0<=t.call(Q,y))m=\"SHIFT\";else if(\"?\"===y&&(null==s?void 0:s.spaced))m=\"BIN?\";else if(s)if(\"(\"===y&&!s.spaced&&(c=s[0],0<=t.call(o,c)))\"?\"===s[0]&&(s[0]=\"FUNC_EXIST\"),m=\"CALL_START\";else if(\"[\"===y&&((h=s[0],0<=t.call(L,h))&&!s.spaced||\"::\"===s[0]))switch(m=\"INDEX_START\",s[0]){case\"?\":s[0]=\"INDEX_SOAK\"}return g=this.makeToken(m,y),\"(\"===y||\"{\"===y||\"[\"===y?this.ends.push({tag:O[y],origin:g}):\")\"===y||\"}\"===y||\"]\"===y?this.pair(y):void 0,this.tokens.push(this.makeToken(m,y)),y.length}},{key:\"tagParameters\",value:function(){var t,n,r,i,s;if(\")\"!==this.tag())return this;for(r=[],s=this.tokens,t=s.length,n=s[--t],n[0]=\"PARAM_END\";i=s[--t];)switch(i[0]){case\")\":r.push(i);break;case\"(\":case\"CALL_START\":if(!r.length)return\"(\"===i[0]?(i[0]=\"PARAM_START\",this):(n[0]=\"CALL_END\",this);r.pop()}return this}},{key:\"closeIndentation\",value:function(){return this.outdentToken(this.indent)}},{key:\"matchWithInterpolations\",value:function(r,i,s,o){var u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L;if(null==s&&(s=i),null==o&&(o=/^#\\{/),L=[],S=i.length,this.chunk.slice(0,S)!==i)return null;for(C=this.chunk.slice(S);;){var A=r.exec(C),O=_slicedToArray(A,1);if(k=O[0],this.validateEscapes(k,{isRegex:\"/\"===i.charAt(0),offsetInChunk:S}),L.push(this.makeToken(\"NEOSTRING\",k,S)),C=C.slice(k.length),S+=k.length,!(w=o.exec(C)))break;var M=w,_=_slicedToArray(M,1);g=_[0],m=g.length-1;var D=this.getLineAndColumnFromChunk(S+m),P=_slicedToArray(D,2);b=P[0],p=P[1],N=C.slice(m);var H=(new e).tokenize(N,{line:b,column:p,untilBalanced:!0});if(E=H.tokens,v=H.index,v+=m,c=\"}\"===C[v-1],c){var B,j,F,I;B=E,j=_slicedToArray(B,1),x=j[0],B,F=n.call(E,-1),I=_slicedToArray(F,1),h=I[0],F,x[0]=x[1]=\"(\",h[0]=h[1]=\")\",h.origin=[\"\",\"end of interpolation\",h[2]]}\"TERMINATOR\"===(null==(T=E[1])?void 0:T[0])&&E.splice(1,1),c||(x=this.makeToken(\"(\",\"(\",S,0),h=this.makeToken(\")\",\")\",S+v,0),E=[x].concat(_toConsumableArray(E),[h])),L.push([\"TOKENS\",E]),C=C.slice(v),S+=v}return C.slice(0,s.length)!==s&&this.error(\"missing \"+s,{length:i.length}),u=L,a=_slicedToArray(u,1),d=a[0],u,f=n.call(L,-1),l=_slicedToArray(f,1),y=l[0],f,d[2].first_column-=i.length,\"\\n\"===y[1].substr(-1)?(y[2].last_line+=1,y[2].last_column=s.length-1):y[2].last_column+=s.length,0===y[1].length&&(y[2].last_column-=1),{tokens:L,index:S+s.length}}},{key:\"mergeInterpolationTokens\",value:function(t,r,i){var s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x;for(1<t.length&&(v=this.token(\"STRING_START\",\"(\",0,0)),u=this.tokens.length,a=f=0,h=t.length;f<h;a=++f){var T;w=t[a];var N=w,C=_slicedToArray(N,2);switch(b=C[0],x=C[1],b){case\"TOKENS\":if(2===x.length){if(!x[0].comments&&!x[1].comments)continue;for(m=0===this.csxDepth?this.makeToken(\"STRING\",\"''\"):this.makeToken(\"JS\",\"\"),m[2]=x[0][2],l=0,p=x.length;l<p;l++){var k;(S=x[l],!!S.comments)&&(null==m.comments&&(m.comments=[]),(k=m.comments).push.apply(k,_toConsumableArray(S.comments)))}x.splice(1,0,m)}d=x[0],E=x;break;case\"NEOSTRING\":if(s=i.call(this,w[1],a),0===s.length){if(0!==a)continue;o=this.tokens.length}2===a&&null!=o&&this.tokens.splice(o,2),w[0]=\"STRING\",w[1]=this.makeDelimitedLiteral(s,r),d=w,E=[w]}this.tokens.length>u&&(g=this.token(\"+\",\"+\"),g[2]={first_line:d[2].first_line,first_column:d[2].first_column,last_line:d[2].first_line,last_column:d[2].first_column}),(T=this.tokens).push.apply(T,_toConsumableArray(E))}if(v){var L=n.call(t,-1),A=_slicedToArray(L,1);return c=A[0],v.origin=[\"STRING\",null,{first_line:v[2].first_line,first_column:v[2].first_column,last_line:c[2].last_line,last_column:c[2].last_column}],v[2]=v.origin[2],y=this.token(\"STRING_END\",\")\"),y[2]={first_line:c[2].last_line,first_column:c[2].last_column,last_line:c[2].last_line,last_column:c[2].last_column}}}},{key:\"pair\",value:function(t){var r,i,s,o,u,a,f;if(u=this.ends,r=n.call(u,-1),i=_slicedToArray(r,1),o=i[0],r,t!==(f=null==o?void 0:o.tag)){var l,c;return\"OUTDENT\"!==f&&this.error(\"unmatched \"+t),a=this.indents,l=n.call(a,-1),c=_slicedToArray(l,1),s=c[0],l,this.outdentToken(s,!0),this.pair(t)}return this.ends.pop()}},{key:\"getLineAndColumnFromChunk\",value:function(t){var r,i,s,o,u;if(0===t)return[this.chunkLine,this.chunkColumn];if(u=t>=this.chunk.length?this.chunk:this.chunk.slice(0,+(t-1)+1||9e9),s=dt(u,\"\\n\"),r=this.chunkColumn,0<s){var a,f;o=u.split(\"\\n\"),a=n.call(o,-1),f=_slicedToArray(a,1),i=f[0],a,r=i.length}else r+=u.length;return[this.chunkLine+s,r]}},{key:\"makeToken\",value:function(t,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:n.length,s,o,u;o={};var a=this.getLineAndColumnFromChunk(r),f=_slicedToArray(a,2);o.first_line=f[0],o.first_column=f[1],s=0<i?i-1:0;var l=this.getLineAndColumnFromChunk(r+s),c=_slicedToArray(l,2);return o.last_line=c[0],o.last_column=c[1],u=[t,n,o],u}},{key:\"token\",value:function(e,t,n,r,i){var s;return s=this.makeToken(e,t,n,r),i&&(s.origin=i),this.tokens.push(s),s}},{key:\"tag\",value:function(){var t,r,i,s;return i=this.tokens,t=n.call(i,-1),r=_slicedToArray(t,1),s=r[0],t,null==s?void 0:s[0]}},{key:\"value\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r,i,s,o,u;return s=this.tokens,r=n.call(s,-1),i=_slicedToArray(r,1),u=i[0],r,t&&null!=(null==u?void 0:u.origin)?null==(o=u.origin)?void 0:o[1]:null==u?void 0:u[1]}},{key:\"prev\",value:function(){return this.tokens[this.tokens.length-1]}},{key:\"unfinished\",value:function(){var n;return H.test(this.chunk)||(n=this.tag(),0<=t.call(at,n))}},{key:\"formatString\",value:function(t,n){return this.replaceUnicodeCodePointEscapes(t.replace(tt,\"$1\"),n)}},{key:\"formatHeregex\",value:function(t,n){return this.formatRegex(t.replace(T,\"$1$2\"),wt(n,{delimiter:\"///\"}))}},{key:\"formatRegex\",value:function(t,n){return this.replaceUnicodeCodePointEscapes(t,n)}},{key:\"unicodeCodePointToUnicodeEscapes\",value:function(t){var n,r,i;return(i=function(e){var t;return t=e.toString(16),\"\\\\u\"+Et(\"0\",4-t.length)+t},65536>t)?i(t):(n=_Mathfloor((t-65536)/1024)+55296,r=(t-65536)%1024+56320,\"\"+i(n)+i(r))}},{key:\"replaceUnicodeCodePointEscapes\",value:function(n,r){var i=this,s;return s=null!=r.flags&&0>t.call(r.flags,\"u\"),n.replace(ft,function(e,t,n,o){var u;return t?t:(u=parseInt(n,16),1114111<u&&i.error(\"unicode code point escapes greater than \\\\u{10ffff} are not allowed\",{offset:o+r.delimiter.length,length:n.length+4}),s?i.unicodeCodePointToUnicodeEscapes(u):e)})}},{key:\"validateEscapes\",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r,i,s,o,u,a,f,l,c,h;if(o=n.isRegex?V:et,u=o.exec(t),!!u)return u[0],r=u[1],f=u[2],i=u[3],h=u[4],c=u[5],a=f?\"octal escape sequences are not allowed\":\"invalid escape sequence\",s=\"\\\\\"+(f||i||h||c),this.error(a+\" \"+s,{offset:(null==(l=n.offsetInChunk)?0:l)+u.index+r.length,length:s.length})}},{key:\"makeDelimitedLiteral\",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r;return\"\"===t&&\"/\"===n.delimiter&&(t=\"(?:)\"),r=RegExp(\"(\\\\\\\\\\\\\\\\)|(\\\\\\\\0(?=[1-7]))|\\\\\\\\?(\"+n.delimiter+\")|\\\\\\\\?(?:(\\\\n)|(\\\\r)|(\\\\u2028)|(\\\\u2029))|(\\\\\\\\.)\",\"g\"),t=t.replace(r,function(e,t,r,i,s,o,u,a,f){switch(!1){case!t:return n.double?t+t:t;case!r:return\"\\\\x00\";case!i:return\"\\\\\"+i;case!s:return\"\\\\n\";case!o:return\"\\\\r\";case!u:return\"\\\\u2028\";case!a:return\"\\\\u2029\";case!f:return n.double?\"\\\\\"+f:f}}),\"\"+n.delimiter+t+n.delimiter}},{key:\"suppressSemicolons\",value:function(){var n,r,i;for(i=[];\";\"===this.value();)this.tokens.pop(),(n=null==(r=this.prev())?void 0:r[0],0<=t.call([\"=\"].concat(_toConsumableArray(at)),n))?i.push(this.error(\"unexpected ;\")):i.push(void 0);return i}},{key:\"error\",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r,i,s,o,u,a,f;return u=\"first_line\"in n?n:(r=this.getLineAndColumnFromChunk(null==(a=n.offset)?0:a),i=_slicedToArray(r,2),o=i[0],s=i[1],r,{first_line:o,first_column:s,last_column:s+(null==(f=n.length)?1:f)-1}),xt(t,u)}}]),e}(),gt=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e;switch(!1){case 0>t.call([].concat(_toConsumableArray(_),_toConsumableArray(l)),e):return\"keyword '\"+n+\"' can't be assigned\";case 0>t.call(Y,e):return\"'\"+n+\"' can't be assigned\";case 0>t.call(J,e):return\"reserved word '\"+n+\"' can't be assigned\";default:return!1}},e.isUnassignable=gt,mt=function(e){var t;return\"IDENTIFIER\"===e[0]?(\"from\"===e[1]&&(e[1][0]=\"IDENTIFIER\",!0),!0):\"FOR\"!==e[0]&&\"{\"!==(t=e[1])&&\"[\"!==t&&\",\"!==t&&\":\"!==t},_=[\"true\",\"false\",\"null\",\"this\",\"new\",\"delete\",\"typeof\",\"in\",\"instanceof\",\"return\",\"throw\",\"break\",\"continue\",\"debugger\",\"yield\",\"await\",\"if\",\"else\",\"switch\",\"for\",\"while\",\"do\",\"try\",\"catch\",\"finally\",\"class\",\"extends\",\"super\",\"import\",\"export\",\"default\"],l=[\"undefined\",\"Infinity\",\"NaN\",\"then\",\"unless\",\"until\",\"loop\",\"of\",\"by\",\"when\"],f={and:\"&&\",or:\"||\",is:\"==\",isnt:\"!=\",not:\"!\",yes:\"true\",no:\"false\",on:\"true\",off:\"false\"},a=function(){var e;for(yt in e=[],f)e.push(yt);return e}(),l=l.concat(a),J=[\"case\",\"function\",\"var\",\"void\",\"with\",\"const\",\"let\",\"enum\",\"native\",\"implements\",\"interface\",\"package\",\"private\",\"protected\",\"public\",\"static\"],Y=[\"arguments\",\"eval\"],e.JS_FORBIDDEN=_.concat(J).concat(Y),i=65279,C=/^(?!\\d)((?:(?!\\s)[$\\w\\x7f-\\uffff])+)([^\\n\\S]*:(?!:))?/,g=/^(?![\\d<])((?:(?!\\s)[\\.\\-$\\w\\x7f-\\uffff])+)/,m=/^()>/,v=/^(?!\\d)((?:(?!\\s)[\\-$\\w\\x7f-\\uffff])+)([^\\S]*=(?!=))?/,q=/^0b[01]+|^0o[0-7]+|^0x[\\da-f]+|^\\d*\\.?\\d+(?:e[+-]?\\d+)?/i,R=/^(?:[-=]>|[-+*\\/%<>&|^!?=]=|>>>=?|([-+:])\\1|([&|<>*\\/%])\\2=?|\\?(\\.|::)|\\.{2,3})/,ct=/^[^\\n\\S]+/,c=/^\\s*###([^#][\\s\\S]*?)(?:###[^\\n\\S]*|###$)|^(?:\\s*#(?!##[^#]).*)+/,u=/^[-=]>/,F=/^(?:\\n[^\\n\\S]*)+/,M=/^`(?!``)((?:[^`\\\\]|\\\\[\\s\\S])*)`/,N=/^```((?:[^`\\\\]|\\\\[\\s\\S]|`(?!``))*)```/,rt=/^(?:'''|\"\"\"|'|\")/,nt=/^(?:[^\\\\']|\\\\[\\s\\S])*/,Z=/^(?:[^\\\\\"#]|\\\\[\\s\\S]|\\#(?!\\{))*/,S=/^(?:[^\\\\']|\\\\[\\s\\S]|'(?!''))*/,w=/^(?:[^\\\\\"#]|\\\\[\\s\\S]|\"(?!\"\")|\\#(?!\\{))*/,A=/^(?:[^\\{<])*/,y=/^(?:\\{|<(?!\\/))/,tt=/((?:\\\\\\\\)+)|\\\\[^\\S\\n]*\\n\\s*/g,G=/\\s*\\n\\s*/g,E=/\\n+([^\\n\\S]*)(?=\\S)/g,z=/^\\/(?!\\/)((?:[^[\\/\\n\\\\]|\\\\[^\\n]|\\[(?:\\\\[^\\n]|[^\\]\\n\\\\])*\\])*)(\\/)?/,W=/^\\w*/,lt=/^(?!.*(.).*\\1)[imguy]*$/,x=/^(?:[^\\\\\\/#\\s]|\\\\[\\s\\S]|\\/(?!\\/\\/)|\\#(?!\\{)|\\s+(?:#(?!\\{).*)?)*/,T=/((?:\\\\\\\\)+)|\\\\(\\s)|\\s+(?:#.*)?/g,X=/^(\\/|\\/{3}\\s*)(\\*)/,U=/^\\/=?\\s/,b=/\\*\\//,H=/^\\s*(?:,|\\??\\.(?![.\\d])|::)/,et=/((?:^|[^\\\\])(?:\\\\\\\\)*)\\\\(?:(0[0-7]|[1-7])|(x(?![\\da-fA-F]{2}).{0,2})|(u\\{(?![\\da-fA-F]{1,}\\})[^}]*\\}?)|(u(?!\\{|[\\da-fA-F]{4}).{0,4}))/,V=/((?:^|[^\\\\])(?:\\\\\\\\)*)\\\\(?:(0[0-7])|(x(?![\\da-fA-F]{2}).{0,2})|(u\\{(?![\\da-fA-F]{1,}\\})[^}]*\\}?)|(u(?!\\{|[\\da-fA-F]{4}).{0,4}))/,ft=/(\\\\\\\\)|\\\\u\\{([\\da-fA-F]+)\\}/g,D=/^[^\\n\\S]*\\n/,it=/\\n[^\\n\\S]*$/,st=/\\s+$/,d=[\"-=\",\"+=\",\"/=\",\"*=\",\"%=\",\"||=\",\"&&=\",\"?=\",\"<<=\",\">>=\",\">>>=\",\"&=\",\"^=\",\"|=\",\"**=\",\"//=\",\"%%=\"],ot=[\"NEW\",\"TYPEOF\",\"DELETE\",\"DO\"],ut=[\"!\",\"~\"],Q=[\"<<\",\">>\",\">>>\"],p=[\"==\",\"!=\",\"<\",\">\",\"<=\",\">=\"],j=[\"*\",\"/\",\"%\",\"//\",\"%%\"],$=[\"IN\",\"OF\",\"INSTANCEOF\"],s=[\"TRUE\",\"FALSE\"],o=[\"IDENTIFIER\",\"PROPERTY\",\")\",\"]\",\"?\",\"@\",\"THIS\",\"SUPER\"],L=o.concat([\"NUMBER\",\"INFINITY\",\"NAN\",\"STRING\",\"STRING_END\",\"REGEX\",\"REGEX_END\",\"BOOL\",\"NULL\",\"UNDEFINED\",\"}\",\"::\"]),h=[\"IDENTIFIER\",\")\",\"]\",\"NUMBER\"],I=L.concat([\"++\",\"--\"]),P=[\"INDENT\",\"OUTDENT\",\"TERMINATOR\"],k=[\")\",\"}\",\"]\"],at=[\"\\\\\",\".\",\"?.\",\"?::\",\"UNARY\",\"MATH\",\"UNARY_MATH\",\"+\",\"-\",\"**\",\"SHIFT\",\"RELATION\",\"COMPARE\",\"&\",\"^\",\"|\",\"&&\",\"||\",\"BIN?\",\"EXTENDS\"]}.call(this),{exports:e}.exports}(),require[\"./parser\"]=function(){var e={},t={exports:e},n=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,24],r=[1,56],i=[1,91],s=[1,92],o=[1,87],u=[1,93],a=[1,94],f=[1,89],l=[1,90],c=[1,64],h=[1,66],p=[1,67],d=[1,68],v=[1,69],m=[1,70],g=[1,72],y=[1,73],b=[1,58],w=[1,42],E=[1,36],S=[1,76],x=[1,77],T=[1,86],N=[1,54],C=[1,59],k=[1,60],L=[1,74],A=[1,75],O=[1,47],M=[1,55],_=[1,71],D=[1,81],P=[1,82],H=[1,83],B=[1,84],j=[1,53],F=[1,80],I=[1,38],q=[1,39],R=[1,40],U=[1,41],z=[1,43],W=[1,44],X=[1,95],V=[1,6,36,47,146],$=[1,6,35,36,47,69,70,93,127,135,146,149,157],J=[1,113],K=[1,114],Q=[1,115],G=[1,110],Y=[1,98],Z=[1,97],et=[1,96],tt=[1,99],nt=[1,100],rt=[1,101],it=[1,102],st=[1,103],ot=[1,104],ut=[1,105],at=[1,106],ft=[1,107],lt=[1,108],ct=[1,109],ht=[1,117],pt=[1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],dt=[2,196],vt=[1,123],mt=[1,128],gt=[1,124],yt=[1,125],bt=[1,126],wt=[1,129],Et=[1,122],St=[1,6,35,36,47,69,70,93,127,135,146,148,149,150,156,157,174],xt=[1,6,35,36,45,46,47,69,70,80,81,83,88,93,101,102,103,105,109,125,126,127,135,146,148,149,150,156,157,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],Tt=[2,122],Nt=[2,126],Ct=[6,35,88,93],kt=[2,99],Lt=[1,141],At=[1,135],Ot=[1,140],Mt=[1,144],_t=[1,149],Dt=[1,147],Pt=[1,151],Ht=[1,155],Bt=[1,153],jt=[1,6,35,36,45,46,47,61,69,70,80,81,83,88,93,101,102,103,105,109,125,126,127,135,146,148,149,150,156,157,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],Ft=[2,119],It=[1,6,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],qt=[2,31],Rt=[1,183],Ut=[2,86],zt=[1,187],Wt=[1,193],Xt=[1,208],Vt=[1,203],$t=[1,212],Jt=[1,209],Kt=[1,214],Qt=[1,215],Gt=[1,217],Yt=[14,32,35,38,39,43,45,46,49,50,54,55,56,57,58,59,68,77,84,85,86,90,91,107,110,112,120,129,130,140,144,145,148,150,153,156,167,173,176,177,178,179,180,181],Zt=[1,6,35,36,45,46,47,61,69,70,80,81,83,88,93,101,102,103,105,109,111,125,126,127,135,146,148,149,150,156,157,174,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194],en=[1,228],tn=[2,142],nn=[1,250],rn=[1,245],sn=[1,256],on=[1,6,35,36,45,46,47,65,69,70,80,81,83,88,93,101,102,103,105,109,125,126,127,135,146,148,149,150,156,157,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],un=[1,6,33,35,36,45,46,47,61,65,69,70,80,81,83,88,93,101,102,103,105,109,111,117,125,126,127,135,146,148,149,150,156,157,164,165,166,174,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194],an=[1,6,35,36,45,46,47,52,65,69,70,80,81,83,88,93,101,102,103,105,109,125,126,127,135,146,148,149,150,156,157,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],fn=[1,286],ln=[45,46,126],cn=[1,297],hn=[1,296],pn=[6,35],dn=[2,97],vn=[1,303],mn=[6,35,36,88,93],gn=[6,35,36,61,70,88,93],yn=[1,6,35,36,47,69,70,80,81,83,88,93,101,102,103,105,109,127,135,146,148,149,150,156,157,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],bn=[1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,178,179,183,184,185,186,187,188,189,190,191,192,193],wn=[2,347],En=[1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,178,179,183,185,186,187,188,189,190,191,192,193],Sn=[45,46,80,81,101,102,103,105,125,126],xn=[1,330],Tn=[1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174],Nn=[2,84],Cn=[1,346],kn=[1,348],Ln=[1,353],An=[1,355],On=[6,35,69,93],Mn=[2,221],_n=[2,222],Dn=[1,6,35,36,45,46,47,61,69,70,80,81,83,88,93,101,102,103,105,109,125,126,127,135,146,148,149,150,156,157,164,165,166,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],Pn=[1,369],Hn=[6,14,32,35,36,38,39,43,45,46,49,50,54,55,56,57,58,59,68,69,70,77,84,85,86,90,91,93,107,110,112,120,129,130,140,144,145,148,150,153,156,167,173,176,177,178,179,180,181],Bn=[6,35,36,69,93],jn=[6,35,36,69,93,127],Fn=[1,6,35,36,45,46,47,61,65,69,70,80,81,83,88,93,101,102,103,105,109,111,125,126,127,135,146,148,149,150,156,157,164,165,166,174,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194],In=[1,6,35,36,47,69,70,83,88,93,109,127,135,146,157,174],qn=[1,6,35,36,47,69,70,83,88,93,109,127,135,146,149,157,174],Rn=[2,273],Un=[164,165,166],zn=[93,164,165,166],Wn=[6,35,109],Xn=[1,393],Vn=[6,35,36,93,109],$n=[6,35,36,65,93,109],Jn=[1,399],Kn=[1,400],Qn=[6,35,36,61,65,70,80,81,93,109,126],Gn=[6,35,36,70,80,81,93,109,126],Yn=[1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,178,179,185,186,187,188,189,190,191,192,193],Zn=[2,339],er=[2,338],tr=[1,6,35,36,45,46,47,52,69,70,80,81,83,88,93,101,102,103,105,109,125,126,127,135,146,148,149,150,156,157,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],nr=[1,422],rr=[14,32,38,39,43,45,46,49,50,54,55,56,57,58,59,68,77,83,84,85,86,90,91,107,110,112,120,129,130,140,144,145,148,150,153,156,167,173,176,177,178,179,180,181],ir=[2,207],sr=[6,35,36],or=[2,98],ur=[1,431],ar=[1,432],fr=[1,6,35,36,47,69,70,80,81,83,88,93,101,102,103,105,109,127,135,142,143,146,148,149,150,156,157,169,171,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],lr=[1,312],cr=[36,169,171],hr=[1,6,36,47,69,70,83,88,93,109,127,135,146,149,157,174],pr=[1,467],dr=[1,473],vr=[1,6,35,36,47,69,70,93,127,135,146,149,157,174],mr=[2,113],gr=[1,486],yr=[1,487],br=[6,35,36,69],wr=[1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,169,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],Er=[1,6,35,36,47,69,70,93,127,135,146,149,157,169],Sr=[2,286],xr=[2,287],Tr=[2,302],Nr=[1,510],Cr=[1,511],kr=[6,35,36,109],Lr=[1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,150,156,157,174],Ar=[1,532],Or=[6,35,36,93,127],Mr=[6,35,36,93],_r=[1,6,35,36,47,69,70,83,88,93,109,127,135,142,146,148,149,150,156,157,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],Dr=[35,93],Pr=[1,560],Hr=[1,561],Br=[1,567],jr=[1,568],Fr=[2,258],Ir=[2,261],qr=[2,274],Rr=[1,617],Ur=[1,618],zr=[2,288],Wr=[2,292],Xr=[2,289],Vr=[2,293],$r=[2,290],Jr=[2,291],Kr=[2,303],Qr=[2,304],Gr=[1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,174],Yr=[2,294],Zr=[2,296],ei=[2,298],ti=[2,300],ni=[2,295],ri=[2,297],ii=[2,299],si=[2,301],oi={trace:function(){},yy:{},symbols_:{error:2,Root:3,Body:4,Line:5,TERMINATOR:6,Expression:7,ExpressionLine:8,Statement:9,FuncDirective:10,YieldReturn:11,AwaitReturn:12,Return:13,STATEMENT:14,Import:15,Export:16,Value:17,Code:18,Operation:19,Assign:20,If:21,Try:22,While:23,For:24,Switch:25,Class:26,Throw:27,Yield:28,CodeLine:29,IfLine:30,OperationLine:31,YIELD:32,FROM:33,Block:34,INDENT:35,OUTDENT:36,Identifier:37,IDENTIFIER:38,CSX_TAG:39,Property:40,PROPERTY:41,AlphaNumeric:42,NUMBER:43,String:44,STRING:45,STRING_START:46,STRING_END:47,Regex:48,REGEX:49,REGEX_START:50,Invocation:51,REGEX_END:52,Literal:53,JS:54,UNDEFINED:55,NULL:56,BOOL:57,INFINITY:58,NAN:59,Assignable:60,\"=\":61,AssignObj:62,ObjAssignable:63,ObjRestValue:64,\":\":65,SimpleObjAssignable:66,ThisProperty:67,\"[\":68,\"]\":69,\"...\":70,ObjSpreadExpr:71,ObjSpreadIdentifier:72,Object:73,Parenthetical:74,Super:75,This:76,SUPER:77,Arguments:78,ObjSpreadAccessor:79,\".\":80,INDEX_START:81,IndexValue:82,INDEX_END:83,RETURN:84,AWAIT:85,PARAM_START:86,ParamList:87,PARAM_END:88,FuncGlyph:89,\"->\":90,\"=>\":91,OptComma:92,\",\":93,Param:94,ParamVar:95,Array:96,Splat:97,SimpleAssignable:98,Accessor:99,Range:100,\"?.\":101,\"::\":102,\"?::\":103,Index:104,INDEX_SOAK:105,Slice:106,\"{\":107,AssignList:108,\"}\":109,CLASS:110,EXTENDS:111,IMPORT:112,ImportDefaultSpecifier:113,ImportNamespaceSpecifier:114,ImportSpecifierList:115,ImportSpecifier:116,AS:117,DEFAULT:118,IMPORT_ALL:119,EXPORT:120,ExportSpecifierList:121,EXPORT_ALL:122,ExportSpecifier:123,OptFuncExist:124,FUNC_EXIST:125,CALL_START:126,CALL_END:127,ArgList:128,THIS:129,\"@\":130,Elisions:131,ArgElisionList:132,OptElisions:133,RangeDots:134,\"..\":135,Arg:136,ArgElision:137,Elision:138,SimpleArgs:139,TRY:140,Catch:141,FINALLY:142,CATCH:143,THROW:144,\"(\":145,\")\":146,WhileLineSource:147,WHILE:148,WHEN:149,UNTIL:150,WhileSource:151,Loop:152,LOOP:153,ForBody:154,ForLineBody:155,FOR:156,BY:157,ForStart:158,ForSource:159,ForLineSource:160,ForVariables:161,OWN:162,ForValue:163,FORIN:164,FOROF:165,FORFROM:166,SWITCH:167,Whens:168,ELSE:169,When:170,LEADING_WHEN:171,IfBlock:172,IF:173,POST_IF:174,IfBlockLine:175,UNARY:176,UNARY_MATH:177,\"-\":178,\"+\":179,\"--\":180,\"++\":181,\"?\":182,MATH:183,\"**\":184,SHIFT:185,COMPARE:186,\"&\":187,\"^\":188,\"|\":189,\"&&\":190,\"||\":191,\"BIN?\":192,RELATION:193,COMPOUND_ASSIGN:194,$accept:0,$end:1},terminals_:{2:\"error\",6:\"TERMINATOR\",14:\"STATEMENT\",32:\"YIELD\",33:\"FROM\",35:\"INDENT\",36:\"OUTDENT\",38:\"IDENTIFIER\",39:\"CSX_TAG\",41:\"PROPERTY\",43:\"NUMBER\",45:\"STRING\",46:\"STRING_START\",47:\"STRING_END\",49:\"REGEX\",50:\"REGEX_START\",52:\"REGEX_END\",54:\"JS\",55:\"UNDEFINED\",56:\"NULL\",57:\"BOOL\",58:\"INFINITY\",59:\"NAN\",61:\"=\",65:\":\",68:\"[\",69:\"]\",70:\"...\",77:\"SUPER\",80:\".\",81:\"INDEX_START\",83:\"INDEX_END\",84:\"RETURN\",85:\"AWAIT\",86:\"PARAM_START\",88:\"PARAM_END\",90:\"->\",91:\"=>\",93:\",\",101:\"?.\",102:\"::\",103:\"?::\",105:\"INDEX_SOAK\",107:\"{\",109:\"}\",110:\"CLASS\",111:\"EXTENDS\",112:\"IMPORT\",117:\"AS\",118:\"DEFAULT\",119:\"IMPORT_ALL\",120:\"EXPORT\",122:\"EXPORT_ALL\",125:\"FUNC_EXIST\",126:\"CALL_START\",127:\"CALL_END\",129:\"THIS\",130:\"@\",135:\"..\",140:\"TRY\",142:\"FINALLY\",143:\"CATCH\",144:\"THROW\",145:\"(\",146:\")\",148:\"WHILE\",149:\"WHEN\",150:\"UNTIL\",153:\"LOOP\",156:\"FOR\",157:\"BY\",162:\"OWN\",164:\"FORIN\",165:\"FOROF\",166:\"FORFROM\",167:\"SWITCH\",169:\"ELSE\",171:\"LEADING_WHEN\",173:\"IF\",174:\"POST_IF\",176:\"UNARY\",177:\"UNARY_MATH\",178:\"-\",179:\"+\",180:\"--\",181:\"++\",182:\"?\",183:\"MATH\",184:\"**\",185:\"SHIFT\",186:\"COMPARE\",187:\"&\",188:\"^\",189:\"|\",190:\"&&\",191:\"||\",192:\"BIN?\",193:\"RELATION\",194:\"COMPOUND_ASSIGN\"},productions_:[0,[3,0],[3,1],[4,1],[4,3],[4,2],[5,1],[5,1],[5,1],[5,1],[10,1],[10,1],[9,1],[9,1],[9,1],[9,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[8,1],[8,1],[8,1],[28,1],[28,2],[28,3],[34,2],[34,3],[37,1],[37,1],[40,1],[42,1],[42,1],[44,1],[44,3],[48,1],[48,3],[53,1],[53,1],[53,1],[53,1],[53,1],[53,1],[53,1],[53,1],[20,3],[20,4],[20,5],[62,1],[62,1],[62,3],[62,5],[62,3],[62,5],[66,1],[66,1],[66,1],[66,3],[63,1],[63,1],[64,2],[64,2],[64,2],[64,2],[71,1],[71,1],[71,1],[71,1],[71,1],[71,2],[71,2],[71,2],[72,2],[72,2],[79,2],[79,3],[13,2],[13,4],[13,1],[11,3],[11,2],[12,3],[12,2],[18,5],[18,2],[29,5],[29,2],[89,1],[89,1],[92,0],[92,1],[87,0],[87,1],[87,3],[87,4],[87,6],[94,1],[94,2],[94,2],[94,3],[94,1],[95,1],[95,1],[95,1],[95,1],[97,2],[97,2],[98,1],[98,2],[98,2],[98,1],[60,1],[60,1],[60,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[75,3],[75,4],[99,2],[99,2],[99,2],[99,2],[99,1],[99,1],[104,3],[104,2],[82,1],[82,1],[73,4],[108,0],[108,1],[108,3],[108,4],[108,6],[26,1],[26,2],[26,3],[26,4],[26,2],[26,3],[26,4],[26,5],[15,2],[15,4],[15,4],[15,5],[15,7],[15,6],[15,9],[115,1],[115,3],[115,4],[115,4],[115,6],[116,1],[116,3],[116,1],[116,3],[113,1],[114,3],[16,3],[16,5],[16,2],[16,4],[16,5],[16,6],[16,3],[16,5],[16,4],[16,7],[121,1],[121,3],[121,4],[121,4],[121,6],[123,1],[123,3],[123,3],[123,1],[123,3],[51,3],[51,3],[51,3],[124,0],[124,1],[78,2],[78,4],[76,1],[76,1],[67,2],[96,2],[96,3],[96,4],[134,1],[134,1],[100,5],[100,5],[106,3],[106,2],[106,3],[106,2],[106,2],[106,1],[128,1],[128,3],[128,4],[128,4],[128,6],[136,1],[136,1],[136,1],[136,1],[132,1],[132,3],[132,4],[132,4],[132,6],[137,1],[137,2],[133,1],[133,2],[131,1],[131,2],[138,1],[139,1],[139,1],[139,3],[139,3],[22,2],[22,3],[22,4],[22,5],[141,3],[141,3],[141,2],[27,2],[27,4],[74,3],[74,5],[147,2],[147,4],[147,2],[147,4],[151,2],[151,4],[151,4],[151,2],[151,4],[151,4],[23,2],[23,2],[23,2],[23,2],[23,1],[152,2],[152,2],[24,2],[24,2],[24,2],[24,2],[154,2],[154,4],[154,2],[155,4],[155,2],[158,2],[158,3],[163,1],[163,1],[163,1],[163,1],[161,1],[161,3],[159,2],[159,2],[159,4],[159,4],[159,4],[159,4],[159,4],[159,4],[159,6],[159,6],[159,6],[159,6],[159,6],[159,6],[159,6],[159,6],[159,2],[159,4],[159,4],[160,2],[160,2],[160,4],[160,4],[160,4],[160,4],[160,4],[160,4],[160,6],[160,6],[160,6],[160,6],[160,6],[160,6],[160,6],[160,6],[160,2],[160,4],[160,4],[25,5],[25,5],[25,7],[25,7],[25,4],[25,6],[168,1],[168,2],[170,3],[170,4],[172,3],[172,5],[21,1],[21,3],[21,3],[21,3],[175,3],[175,5],[30,1],[30,3],[30,3],[30,3],[31,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,3],[19,5],[19,4]],performAction:function(e,t,n,r,i,s,o){var u=s.length-1;switch(i){case 1:return this.$=r.addDataToNode(r,o[u],o[u])(new r.Block);case 2:return this.$=s[u];case 3:this.$=r.addDataToNode(r,o[u],o[u])(r.Block.wrap([s[u]]));break;case 4:this.$=r.addDataToNode(r,o[u-2],o[u])(s[u-2].push(s[u]));break;case 5:this.$=s[u-1];break;case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 40:case 45:case 47:case 57:case 62:case 63:case 64:case 66:case 67:case 72:case 73:case 74:case 75:case 76:case 97:case 98:case 109:case 110:case 111:case 112:case 118:case 119:case 122:case 127:case 136:case 221:case 222:case 223:case 225:case 237:case 238:case 280:case 281:case 330:case 336:case 342:this.$=s[u];break;case 13:this.$=r.addDataToNode(r,o[u],o[u])(new r.StatementLiteral(s[u]));break;case 31:this.$=r.addDataToNode(r,o[u],o[u])(new r.Op(s[u],new r.Value(new r.Literal(\"\"))));break;case 32:case 346:case 347:case 348:case 351:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Op(s[u-1],s[u]));break;case 33:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Op(s[u-2].concat(s[u-1]),s[u]));break;case 34:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Block);break;case 35:case 83:case 137:this.$=r.addDataToNode(r,o[u-2],o[u])(s[u-1]);break;case 36:this.$=r.addDataToNode(r,o[u],o[u])(new r.IdentifierLiteral(s[u]));break;case 37:this.$=r.addDataToNode(r,o[u],o[u])(new r.CSXTag(s[u]));break;case 38:this.$=r.addDataToNode(r,o[u],o[u])(new r.PropertyName(s[u]));break;case 39:this.$=r.addDataToNode(r,o[u],o[u])(new r.NumberLiteral(s[u]));break;case 41:this.$=r.addDataToNode(r,o[u],o[u])(new r.StringLiteral(s[u]));break;case 42:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.StringWithInterpolations(s[u-1]));break;case 43:this.$=r.addDataToNode(r,o[u],o[u])(new r.RegexLiteral(s[u]));break;case 44:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.RegexWithInterpolations(s[u-1].args));break;case 46:this.$=r.addDataToNode(r,o[u],o[u])(new r.PassthroughLiteral(s[u]));break;case 48:this.$=r.addDataToNode(r,o[u],o[u])(new r.UndefinedLiteral(s[u]));break;case 49:this.$=r.addDataToNode(r,o[u],o[u])(new r.NullLiteral(s[u]));break;case 50:this.$=r.addDataToNode(r,o[u],o[u])(new r.BooleanLiteral(s[u]));break;case 51:this.$=r.addDataToNode(r,o[u],o[u])(new r.InfinityLiteral(s[u]));break;case 52:this.$=r.addDataToNode(r,o[u],o[u])(new r.NaNLiteral(s[u]));break;case 53:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Assign(s[u-2],s[u]));break;case 54:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.Assign(s[u-3],s[u]));break;case 55:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.Assign(s[u-4],s[u-1]));break;case 56:case 115:case 120:case 121:case 123:case 124:case 125:case 126:case 128:case 282:case 283:this.$=r.addDataToNode(r,o[u],o[u])(new r.Value(s[u]));break;case 58:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Assign(r.addDataToNode(r,o[u-2])(new r.Value(s[u-2])),s[u],\"object\",{operatorToken:r.addDataToNode(r,o[u-1])(new r.Literal(s[u-1]))}));break;case 59:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.Assign(r.addDataToNode(r,o[u-4])(new r.Value(s[u-4])),s[u-1],\"object\",{operatorToken:r.addDataToNode(r,o[u-3])(new r.Literal(s[u-3]))}));break;case 60:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Assign(r.addDataToNode(r,o[u-2])(new r.Value(s[u-2])),s[u],null,{operatorToken:r.addDataToNode(r,o[u-1])(new r.Literal(s[u-1]))}));break;case 61:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.Assign(r.addDataToNode(r,o[u-4])(new r.Value(s[u-4])),s[u-1],null,{operatorToken:r.addDataToNode(r,o[u-3])(new r.Literal(s[u-3]))}));break;case 65:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Value(new r.ComputedPropertyName(s[u-1])));break;case 68:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Splat(new r.Value(s[u-1])));break;case 69:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Splat(new r.Value(s[u])));break;case 70:case 113:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Splat(s[u-1]));break;case 71:case 114:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Splat(s[u]));break;case 77:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.SuperCall(r.addDataToNode(r,o[u-1])(new r.Super),s[u],!1,s[u-1]));break;case 78:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Call(new r.Value(s[u-1]),s[u]));break;case 79:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Call(s[u-1],s[u]));break;case 80:case 81:this.$=r.addDataToNode(r,o[u-1],o[u])((new r.Value(s[u-1])).add(s[u]));break;case 82:case 131:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Access(s[u]));break;case 84:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Return(s[u]));break;case 85:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.Return(new r.Value(s[u-1])));break;case 86:this.$=r.addDataToNode(r,o[u],o[u])(new r.Return);break;case 87:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.YieldReturn(s[u]));break;case 88:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.YieldReturn);break;case 89:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.AwaitReturn(s[u]));break;case 90:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.AwaitReturn);break;case 91:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.Code(s[u-3],s[u],s[u-1],r.addDataToNode(r,o[u-4])(new r.Literal(s[u-4]))));break;case 92:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Code([],s[u],s[u-1]));break;case 93:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.Code(s[u-3],r.addDataToNode(r,o[u])(r.Block.wrap([s[u]])),s[u-1],r.addDataToNode(r,o[u-4])(new r.Literal(s[u-4]))));break;case 94:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Code([],r.addDataToNode(r,o[u])(r.Block.wrap([s[u]])),s[u-1]));break;case 95:case 96:this.$=r.addDataToNode(r,o[u],o[u])(new r.FuncGlyph(s[u]));break;case 99:case 142:case 232:this.$=r.addDataToNode(r,o[u],o[u])([]);break;case 100:case 143:case 162:case 183:case 216:case 230:case 234:case 284:this.$=r.addDataToNode(r,o[u],o[u])([s[u]]);break;case 101:case 144:case 163:case 184:case 217:case 226:this.$=r.addDataToNode(r,o[u-2],o[u])(s[u-2].concat(s[u]));break;case 102:case 145:case 164:case 185:case 218:this.$=r.addDataToNode(r,o[u-3],o[u])(s[u-3].concat(s[u]));break;case 103:case 146:case 166:case 187:case 220:this.$=r.addDataToNode(r,o[u-5],o[u])(s[u-5].concat(s[u-2]));break;case 104:this.$=r.addDataToNode(r,o[u],o[u])(new r.Param(s[u]));break;case 105:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Param(s[u-1],null,!0));break;case 106:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Param(s[u],null,!0));break;case 107:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Param(s[u-2],s[u]));break;case 108:case 224:this.$=r.addDataToNode(r,o[u],o[u])(new r.Expansion);break;case 116:this.$=r.addDataToNode(r,o[u-1],o[u])(s[u-1].add(s[u]));break;case 117:this.$=r.addDataToNode(r,o[u-1],o[u])((new r.Value(s[u-1])).add(s[u]));break;case 129:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Super(r.addDataToNode(r,o[u])(new r.Access(s[u])),[],!1,s[u-2]));break;case 130:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.Super(r.addDataToNode(r,o[u-1])(new r.Index(s[u-1])),[],!1,s[u-3]));break;case 132:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Access(s[u],\"soak\"));break;case 133:this.$=r.addDataToNode(r,o[u-1],o[u])([r.addDataToNode(r,o[u-1])(new r.Access(new r.PropertyName(\"prototype\"))),r.addDataToNode(r,o[u])(new r.Access(s[u]))]);break;case 134:this.$=r.addDataToNode(r,o[u-1],o[u])([r.addDataToNode(r,o[u-1])(new r.Access(new r.PropertyName(\"prototype\"),\"soak\")),r.addDataToNode(r,o[u])(new r.Access(s[u]))]);break;case 135:this.$=r.addDataToNode(r,o[u],o[u])(new r.Access(new r.PropertyName(\"prototype\")));break;case 138:this.$=r.addDataToNode(r,o[u-1],o[u])(r.extend(s[u],{soak:!0}));break;case 139:this.$=r.addDataToNode(r,o[u],o[u])(new r.Index(s[u]));break;case 140:this.$=r.addDataToNode(r,o[u],o[u])(new r.Slice(s[u]));break;case 141:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.Obj(s[u-2],s[u-3].generated));break;case 147:this.$=r.addDataToNode(r,o[u],o[u])(new r.Class);break;case 148:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Class(null,null,s[u]));break;case 149:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Class(null,s[u]));break;case 150:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.Class(null,s[u-1],s[u]));break;case 151:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Class(s[u]));break;case 152:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Class(s[u-1],null,s[u]));break;case 153:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.Class(s[u-2],s[u]));break;case 154:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.Class(s[u-3],s[u-1],s[u]));break;case 155:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.ImportDeclaration(null,s[u]));break;case 156:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.ImportDeclaration(new r.ImportClause(s[u-2],null),s[u]));break;case 157:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.ImportDeclaration(new r.ImportClause(null,s[u-2]),s[u]));break;case 158:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.ImportDeclaration(new r.ImportClause(null,new r.ImportSpecifierList([])),s[u]));break;case 159:this.$=r.addDataToNode(r,o[u-6],o[u])(new r.ImportDeclaration(new r.ImportClause(null,new r.ImportSpecifierList(s[u-4])),s[u]));break;case 160:this.$=r.addDataToNode(r,o[u-5],o[u])(new r.ImportDeclaration(new r.ImportClause(s[u-4],s[u-2]),s[u]));break;case 161:this.$=r.addDataToNode(r,o[u-8],o[u])(new r.ImportDeclaration(new r.ImportClause(s[u-7],new r.ImportSpecifierList(s[u-4])),s[u]));break;case 165:case 186:case 199:case 219:this.$=r.addDataToNode(r,o[u-3],o[u])(s[u-2]);break;case 167:this.$=r.addDataToNode(r,o[u],o[u])(new r.ImportSpecifier(s[u]));break;case 168:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.ImportSpecifier(s[u-2],s[u]));break;case 169:this.$=r.addDataToNode(r,o[u],o[u])(new r.ImportSpecifier(new r.Literal(s[u])));break;case 170:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.ImportSpecifier(new r.Literal(s[u-2]),s[u]));break;case 171:this.$=r.addDataToNode(r,o[u],o[u])(new r.ImportDefaultSpecifier(s[u]));break;case 172:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.ImportNamespaceSpecifier(new r.Literal(s[u-2]),s[u]));break;case 173:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.ExportNamedDeclaration(new r.ExportSpecifierList([])));break;case 174:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.ExportNamedDeclaration(new r.ExportSpecifierList(s[u-2])));break;case 175:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.ExportNamedDeclaration(s[u]));break;case 176:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.ExportNamedDeclaration(new r.Assign(s[u-2],s[u],null,{moduleDeclaration:\"export\"})));break;case 177:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.ExportNamedDeclaration(new r.Assign(s[u-3],s[u],null,{moduleDeclaration:\"export\"})));break;case 178:this.$=r.addDataToNode(r,o[u-5],o[u])(new r.ExportNamedDeclaration(new r.Assign(s[u-4],s[u-1],null,{moduleDeclaration:\"export\"})));break;case 179:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.ExportDefaultDeclaration(s[u]));break;case 180:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.ExportDefaultDeclaration(new r.Value(s[u-1])));break;case 181:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.ExportAllDeclaration(new r.Literal(s[u-2]),s[u]));break;case 182:this.$=r.addDataToNode(r,o[u-6],o[u])(new r.ExportNamedDeclaration(new r.ExportSpecifierList(s[u-4]),s[u]));break;case 188:this.$=r.addDataToNode(r,o[u],o[u])(new r.ExportSpecifier(s[u]));break;case 189:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.ExportSpecifier(s[u-2],s[u]));break;case 190:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.ExportSpecifier(s[u-2],new r.Literal(s[u])));break;case 191:this.$=r.addDataToNode(r,o[u],o[u])(new r.ExportSpecifier(new r.Literal(s[u])));break;case 192:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.ExportSpecifier(new r.Literal(s[u-2]),s[u]));break;case 193:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.TaggedTemplateCall(s[u-2],s[u],s[u-1]));break;case 194:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Call(s[u-2],s[u],s[u-1]));break;case 195:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.SuperCall(r.addDataToNode(r,o[u-2])(new r.Super),s[u],s[u-1],s[u-2]));break;case 196:this.$=r.addDataToNode(r,o[u],o[u])(!1);break;case 197:this.$=r.addDataToNode(r,o[u],o[u])(!0);break;case 198:this.$=r.addDataToNode(r,o[u-1],o[u])([]);break;case 200:case 201:this.$=r.addDataToNode(r,o[u],o[u])(new r.Value(new r.ThisLiteral(s[u])));break;case 202:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Value(r.addDataToNode(r,o[u-1])(new r.ThisLiteral(s[u-1])),[r.addDataToNode(r,o[u])(new r.Access(s[u]))],\"this\"));break;case 203:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Arr([]));break;case 204:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Arr(s[u-1]));break;case 205:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.Arr([].concat(s[u-2],s[u-1])));break;case 206:this.$=r.addDataToNode(r,o[u],o[u])(\"inclusive\");break;case 207:this.$=r.addDataToNode(r,o[u],o[u])(\"exclusive\");break;case 208:case 209:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.Range(s[u-3],s[u-1],s[u-2]));break;case 210:case 212:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Range(s[u-2],s[u],s[u-1]));break;case 211:case 213:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Range(s[u-1],null,s[u]));break;case 214:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Range(null,s[u],s[u-1]));break;case 215:this.$=r.addDataToNode(r,o[u],o[u])(new r.Range(null,null,s[u]));break;case 227:this.$=r.addDataToNode(r,o[u-3],o[u])(s[u-3].concat(s[u-2],s[u]));break;case 228:this.$=r.addDataToNode(r,o[u-3],o[u])(s[u-2].concat(s[u-1]));break;case 229:this.$=r.addDataToNode(r,o[u-5],o[u])(s[u-5].concat(s[u-4],s[u-2],s[u-1]));break;case 231:case 235:case 331:this.$=r.addDataToNode(r,o[u-1],o[u])(s[u-1].concat(s[u]));break;case 233:this.$=r.addDataToNode(r,o[u-1],o[u])([].concat(s[u]));break;case 236:this.$=r.addDataToNode(r,o[u],o[u])(new r.Elision);break;case 239:case 240:this.$=r.addDataToNode(r,o[u-2],o[u])([].concat(s[u-2],s[u]));break;case 241:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Try(s[u]));break;case 242:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Try(s[u-1],s[u][0],s[u][1]));break;case 243:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.Try(s[u-2],null,null,s[u]));break;case 244:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.Try(s[u-3],s[u-2][0],s[u-2][1],s[u]));break;case 245:this.$=r.addDataToNode(r,o[u-2],o[u])([s[u-1],s[u]]);break;case 246:this.$=r.addDataToNode(r,o[u-2],o[u])([r.addDataToNode(r,o[u-1])(new r.Value(s[u-1])),s[u]]);break;case 247:this.$=r.addDataToNode(r,o[u-1],o[u])([null,s[u]]);break;case 248:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Throw(s[u]));break;case 249:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.Throw(new r.Value(s[u-1])));break;case 250:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Parens(s[u-1]));break;case 251:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.Parens(s[u-2]));break;case 252:case 256:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.While(s[u]));break;case 253:case 257:case 258:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.While(s[u-2],{guard:s[u]}));break;case 254:case 259:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.While(s[u],{invert:!0}));break;case 255:case 260:case 261:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.While(s[u-2],{invert:!0,guard:s[u]}));break;case 262:case 263:this.$=r.addDataToNode(r,o[u-1],o[u])(s[u-1].addBody(s[u]));break;case 264:case 265:this.$=r.addDataToNode(r,o[u-1],o[u])(s[u].addBody(r.addDataToNode(r,o[u-1])(r.Block.wrap([s[u-1]]))));break;case 266:this.$=r.addDataToNode(r,o[u],o[u])(s[u]);break;case 267:this.$=r.addDataToNode(r,o[u-1],o[u])((new r.While(r.addDataToNode(r,o[u-1])(new r.BooleanLiteral(\"true\")))).addBody(s[u]));break;case 268:this.$=r.addDataToNode(r,o[u-1],o[u])((new r.While(r.addDataToNode(r,o[u-1])(new r.BooleanLiteral(\"true\")))).addBody(r.addDataToNode(r,o[u])(r.Block.wrap([s[u]]))));break;case 269:case 270:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.For(s[u-1],s[u]));break;case 271:case 272:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.For(s[u],s[u-1]));break;case 273:this.$=r.addDataToNode(r,o[u-1],o[u])({source:r.addDataToNode(r,o[u])(new r.Value(s[u]))});break;case 274:case 276:this.$=r.addDataToNode(r,o[u-3],o[u])({source:r.addDataToNode(r,o[u-2])(new r.Value(s[u-2])),step:s[u]});break;case 275:case 277:this.$=r.addDataToNode(r,o[u-1],o[u])(function(){return s[u].own=s[u-1].own,s[u].ownTag=s[u-1].ownTag,s[u].name=s[u-1][0],s[u].index=s[u-1][1],s[u]}());break;case 278:this.$=r.addDataToNode(r,o[u-1],o[u])(s[u]);break;case 279:this.$=r.addDataToNode(r,o[u-2],o[u])(function(){return s[u].own=!0,s[u].ownTag=r.addDataToNode(r,o[u-1])(new r.Literal(s[u-1])),s[u]}());break;case 285:this.$=r.addDataToNode(r,o[u-2],o[u])([s[u-2],s[u]]);break;case 286:case 305:this.$=r.addDataToNode(r,o[u-1],o[u])({source:s[u]});break;case 287:case 306:this.$=r.addDataToNode(r,o[u-1],o[u])({source:s[u],object:!0});break;case 288:case 289:case 307:case 308:this.$=r.addDataToNode(r,o[u-3],o[u])({source:s[u-2],guard:s[u]});break;case 290:case 291:case 309:case 310:this.$=r.addDataToNode(r,o[u-3],o[u])({source:s[u-2],guard:s[u],object:!0});break;case 292:case 293:case 311:case 312:this.$=r.addDataToNode(r,o[u-3],o[u])({source:s[u-2],step:s[u]});break;case 294:case 295:case 296:case 297:case 313:case 314:case 315:case 316:this.$=r.addDataToNode(r,o[u-5],o[u])({source:s[u-4],guard:s[u-2],step:s[u]});break;case 298:case 299:case 300:case 301:case 317:case 318:case 319:case 320:this.$=r.addDataToNode(r,o[u-5],o[u])({source:s[u-4],step:s[u-2],guard:s[u]});break;case 302:case 321:this.$=r.addDataToNode(r,o[u-1],o[u])({source:s[u],from:!0});break;case 303:case 304:case 322:case 323:this.$=r.addDataToNode(r,o[u-3],o[u])({source:s[u-2],guard:s[u],from:!0});break;case 324:case 325:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.Switch(s[u-3],s[u-1]));break;case 326:case 327:this.$=r.addDataToNode(r,o[u-6],o[u])(new r.Switch(s[u-5],s[u-3],s[u-1]));break;case 328:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.Switch(null,s[u-1]));break;case 329:this.$=r.addDataToNode(r,o[u-5],o[u])(new r.Switch(null,s[u-3],s[u-1]));break;case 332:this.$=r.addDataToNode(r,o[u-2],o[u])([[s[u-1],s[u]]]);break;case 333:this.$=r.addDataToNode(r,o[u-3],o[u])([[s[u-2],s[u-1]]]);break;case 334:case 340:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.If(s[u-1],s[u],{type:s[u-2]}));break;case 335:case 341:this.$=r.addDataToNode(r,o[u-4],o[u])(s[u-4].addElse(r.addDataToNode(r,o[u-2],o[u])(new r.If(s[u-1],s[u],{type:s[u-2]}))));break;case 337:case 343:this.$=r.addDataToNode(r,o[u-2],o[u])(s[u-2].addElse(s[u]));break;case 338:case 339:case 344:case 345:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.If(s[u],r.addDataToNode(r,o[u-2])(r.Block.wrap([s[u-2]])),{type:s[u-1],statement:!0}));break;case 349:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Op(\"-\",s[u]));break;case 350:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Op(\"+\",s[u]));break;case 352:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Op(\"--\",s[u]));break;case 353:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Op(\"++\",s[u]));break;case 354:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Op(\"--\",s[u-1],null,!0));break;case 355:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Op(\"++\",s[u-1],null,!0));break;case 356:this.$=r.addDataToNode(r,o[u-1],o[u])(new r.Existence(s[u-1]));break;case 357:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Op(\"+\",s[u-2],s[u]));break;case 358:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Op(\"-\",s[u-2],s[u]));break;case 359:case 360:case 361:case 362:case 363:case 364:case 365:case 366:case 367:case 368:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Op(s[u-1],s[u-2],s[u]));break;case 369:this.$=r.addDataToNode(r,o[u-2],o[u])(function(){return\"!\"===s[u-1].charAt(0)?(new r.Op(s[u-1].slice(1),s[u-2],s[u])).invert():new r.Op(s[u-1],s[u-2],s[u])}());break;case 370:this.$=r.addDataToNode(r,o[u-2],o[u])(new r.Assign(s[u-2],s[u],s[u-1]));break;case 371:this.$=r.addDataToNode(r,o[u-4],o[u])(new r.Assign(s[u-4],s[u-1],s[u-3]));break;case 372:this.$=r.addDataToNode(r,o[u-3],o[u])(new r.Assign(s[u-3],s[u],s[u-2]))}},table:[{1:[2,1],3:1,4:2,5:3,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:r,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:w,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{1:[3]},{1:[2,2],6:X},t(V,[2,3]),t($,[2,6],{151:111,154:112,158:116,148:J,150:K,156:Q,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t($,[2,7]),t($,[2,8],{158:116,151:118,154:119,148:J,150:K,156:Q,174:ht}),t($,[2,9]),t(pt,[2,16],{124:120,99:121,104:127,45:dt,46:dt,126:dt,80:vt,81:mt,101:gt,102:yt,103:bt,105:wt,125:Et}),t(pt,[2,17],{104:127,99:130,80:vt,81:mt,101:gt,102:yt,103:bt,105:wt}),t(pt,[2,18]),t(pt,[2,19]),t(pt,[2,20]),t(pt,[2,21]),t(pt,[2,22]),t(pt,[2,23]),t(pt,[2,24]),t(pt,[2,25]),t(pt,[2,26]),t(pt,[2,27]),t($,[2,28]),t($,[2,29]),t($,[2,30]),t(St,[2,12]),t(St,[2,13]),t(St,[2,14]),t(St,[2,15]),t($,[2,10]),t($,[2,11]),t(xt,Tt,{61:[1,131]}),t(xt,[2,123]),t(xt,[2,124]),t(xt,[2,125]),t(xt,Nt),t(xt,[2,127]),t(xt,[2,128]),t(Ct,kt,{87:132,94:133,95:134,37:136,67:137,96:138,73:139,38:i,39:s,68:Lt,70:At,107:T,130:Ot}),{5:143,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:r,34:142,35:Mt,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:w,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:145,8:146,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:150,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:156,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:157,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:158,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:[1,159],85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{17:161,18:162,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:163,67:79,68:g,73:62,74:31,75:35,76:34,77:y,86:Pt,89:152,90:S,91:x,96:61,98:160,100:32,107:T,129:L,130:A,145:_},{17:161,18:162,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:163,67:79,68:g,73:62,74:31,75:35,76:34,77:y,86:Pt,89:152,90:S,91:x,96:61,98:164,100:32,107:T,129:L,130:A,145:_},t(jt,Ft,{180:[1,165],181:[1,166],194:[1,167]}),t(pt,[2,336],{169:[1,168]}),{34:169,35:Mt},{34:170,35:Mt},{34:171,35:Mt},t(pt,[2,266]),{34:172,35:Mt},{34:173,35:Mt},{7:174,8:175,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,35:[1,176],37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(It,[2,147],{53:30,74:31,100:32,51:33,76:34,75:35,96:61,73:62,42:63,48:65,37:78,67:79,44:88,89:152,17:161,18:162,60:163,34:177,98:179,35:Mt,38:i,39:s,43:o,45:u,46:a,49:f,50:l,54:c,55:h,56:p,57:d,58:v,59:m,68:g,77:y,86:Pt,90:S,91:x,107:T,111:[1,178],129:L,130:A,145:_}),{7:180,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,35:[1,181],37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t([1,6,35,36,47,69,70,93,127,135,146,148,149,150,156,157,174,182,183,184,185,186,187,188,189,190,191,192,193],qt,{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,60:29,53:30,74:31,100:32,51:33,76:34,75:35,98:45,172:46,151:48,147:49,152:50,154:51,155:52,96:61,73:62,42:63,48:65,37:78,67:79,158:85,44:88,89:152,9:154,7:182,14:n,32:_t,33:Rt,38:i,39:s,43:o,45:u,46:a,49:f,50:l,54:c,55:h,56:p,57:d,58:v,59:m,68:g,77:y,84:[1,184],85:Dt,86:Pt,90:S,91:x,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,153:H,167:j,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W}),t($,[2,342],{169:[1,185]}),t([1,6,36,47,69,70,93,127,135,146,148,149,150,156,157,174],Ut,{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,60:29,53:30,74:31,100:32,51:33,76:34,75:35,98:45,172:46,151:48,147:49,152:50,154:51,155:52,96:61,73:62,42:63,48:65,37:78,67:79,158:85,44:88,89:152,9:154,7:186,14:n,32:_t,35:zt,38:i,39:s,43:o,45:u,46:a,49:f,50:l,54:c,55:h,56:p,57:d,58:v,59:m,68:g,77:y,84:b,85:Dt,86:Pt,90:S,91:x,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,153:H,167:j,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W}),{37:192,38:i,39:s,44:188,45:u,46:a,107:[1,191],113:189,114:190,119:Wt},{26:195,37:196,38:i,39:s,107:[1,194],110:N,118:[1,197],122:[1,198]},t(jt,[2,120]),t(jt,[2,121]),t(xt,[2,45]),t(xt,[2,46]),t(xt,[2,47]),t(xt,[2,48]),t(xt,[2,49]),t(xt,[2,50]),t(xt,[2,51]),t(xt,[2,52]),{4:199,5:3,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:r,35:[1,200],37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:w,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:201,8:202,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,35:Xt,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,69:Vt,70:$t,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,93:Jt,96:61,97:211,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,131:204,132:205,136:210,137:207,138:206,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{80:Kt,81:Qt,124:213,125:Et,126:dt},t(xt,[2,200]),t(xt,[2,201],{40:216,41:Gt}),t(Yt,[2,95]),t(Yt,[2,96]),t(Zt,[2,115]),t(Zt,[2,118]),{7:218,8:219,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:220,8:221,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:222,8:223,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:225,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,34:224,35:Mt,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{37:230,38:i,39:s,67:231,68:g,73:233,96:232,100:226,107:T,130:Ot,161:227,162:en,163:229},{159:234,160:235,164:[1,236],165:[1,237],166:[1,238]},t([6,35,93,109],tn,{44:88,108:239,62:240,63:241,64:242,66:243,42:244,71:246,37:247,40:248,67:249,72:251,73:252,74:253,75:254,76:255,38:i,39:s,41:Gt,43:o,45:u,46:a,68:nn,70:rn,77:sn,107:T,129:L,130:A,145:_}),t(on,[2,39]),t(on,[2,40]),t(xt,[2,43]),{17:161,18:162,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:257,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:163,67:79,68:g,73:62,74:31,75:35,76:34,77:y,86:Pt,89:152,90:S,91:x,96:61,98:258,100:32,107:T,129:L,130:A,145:_},t(un,[2,36]),t(un,[2,37]),t(an,[2,41]),{4:259,5:3,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:r,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:w,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(V,[2,5],{7:4,8:5,9:6,10:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,13:23,15:25,16:26,11:27,12:28,60:29,53:30,74:31,100:32,51:33,76:34,75:35,89:37,98:45,172:46,151:48,147:49,152:50,154:51,155:52,175:57,96:61,73:62,42:63,48:65,37:78,67:79,158:85,44:88,5:260,14:n,32:r,38:i,39:s,43:o,45:u,46:a,49:f,50:l,54:c,55:h,56:p,57:d,58:v,59:m,68:g,77:y,84:b,85:w,86:E,90:S,91:x,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,148:D,150:P,153:H,156:B,167:j,173:F,176:I,177:q,178:R,179:U,180:z,181:W}),t(pt,[2,356]),{7:261,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:262,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:263,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:264,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:265,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:266,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:267,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:268,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:269,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:270,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:271,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:272,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:273,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:274,8:275,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(pt,[2,265]),t(pt,[2,270]),{7:220,8:276,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:222,8:277,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{37:230,38:i,39:s,67:231,68:g,73:233,96:232,100:278,107:T,130:Ot,161:227,162:en,163:229},{159:234,164:[1,279],165:[1,280],166:[1,281]},{7:282,8:283,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(pt,[2,264]),t(pt,[2,269]),{44:284,45:u,46:a,78:285,126:fn},t(Zt,[2,116]),t(ln,[2,197]),{40:287,41:Gt},{40:288,41:Gt},t(Zt,[2,135],{40:289,41:Gt}),{40:290,41:Gt},t(Zt,[2,136]),{7:292,8:294,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,70:cn,73:62,74:31,75:35,76:34,77:y,82:291,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,106:293,107:T,110:N,112:C,120:k,129:L,130:A,134:295,135:hn,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{81:mt,104:298,105:wt},t(Zt,[2,117]),{6:[1,300],7:299,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,35:[1,301],37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(pn,dn,{92:304,88:[1,302],93:vn}),t(mn,[2,100]),t(mn,[2,104],{61:[1,306],70:[1,305]}),t(mn,[2,108],{37:136,67:137,96:138,73:139,95:307,38:i,39:s,68:Lt,107:T,130:Ot}),t(gn,[2,109]),t(gn,[2,110]),t(gn,[2,111]),t(gn,[2,112]),{40:216,41:Gt},{7:308,8:309,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,35:Xt,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,69:Vt,70:$t,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,93:Jt,96:61,97:211,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,131:204,132:205,136:210,137:207,138:206,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(yn,[2,92]),t($,[2,94]),{4:311,5:3,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:r,36:[1,310],37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:w,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(bn,wn,{151:111,154:112,158:116,182:et}),t($,[2,346]),{7:158,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{148:J,150:K,151:118,154:119,156:Q,158:116,174:ht},t([1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,182,183,184,185,186,187,188,189,190,191,192,193],qt,{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,60:29,53:30,74:31,100:32,51:33,76:34,75:35,98:45,172:46,151:48,147:49,152:50,154:51,155:52,96:61,73:62,42:63,48:65,37:78,67:79,158:85,44:88,89:152,9:154,7:182,14:n,32:_t,33:Rt,38:i,39:s,43:o,45:u,46:a,49:f,50:l,54:c,55:h,56:p,57:d,58:v,59:m,68:g,77:y,84:b,85:Dt,86:Pt,90:S,91:x,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,153:H,167:j,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W}),t(En,[2,348],{151:111,154:112,158:116,182:et,184:nt}),t(Ct,kt,{94:133,95:134,37:136,67:137,96:138,73:139,87:313,38:i,39:s,68:Lt,70:At,107:T,130:Ot}),{34:142,35:Mt},{7:314,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{148:J,150:K,151:118,154:119,156:Q,158:116,174:[1,315]},{7:316,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(En,[2,349],{151:111,154:112,158:116,182:et,184:nt}),t(En,[2,350],{151:111,154:112,158:116,182:et,184:nt}),t(bn,[2,351],{151:111,154:112,158:116,182:et}),t($,[2,90],{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,60:29,53:30,74:31,100:32,51:33,76:34,75:35,98:45,172:46,151:48,147:49,152:50,154:51,155:52,96:61,73:62,42:63,48:65,37:78,67:79,158:85,44:88,89:152,9:154,7:317,14:n,32:_t,38:i,39:s,43:o,45:u,46:a,49:f,50:l,54:c,55:h,56:p,57:d,58:v,59:m,68:g,77:y,84:b,85:Dt,86:Pt,90:S,91:x,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,148:Ut,150:Ut,156:Ut,174:Ut,153:H,167:j,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W}),t(pt,[2,352],{45:Ft,46:Ft,80:Ft,81:Ft,101:Ft,102:Ft,103:Ft,105:Ft,125:Ft,126:Ft}),t(ln,dt,{124:120,99:121,104:127,80:vt,81:mt,101:gt,102:yt,103:bt,105:wt,125:Et}),{80:vt,81:mt,99:130,101:gt,102:yt,103:bt,104:127,105:wt},t(Sn,Tt),t(pt,[2,353],{45:Ft,46:Ft,80:Ft,81:Ft,101:Ft,102:Ft,103:Ft,105:Ft,125:Ft,126:Ft}),t(pt,[2,354]),t(pt,[2,355]),{6:[1,320],7:318,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,35:[1,319],37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{34:321,35:Mt,173:[1,322]},t(pt,[2,241],{141:323,142:[1,324],143:[1,325]}),t(pt,[2,262]),t(pt,[2,263]),t(pt,[2,271]),t(pt,[2,272]),{35:[1,326],148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[1,327]},{168:328,170:329,171:xn},t(pt,[2,148]),{7:331,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(It,[2,151],{34:332,35:Mt,45:Ft,46:Ft,80:Ft,81:Ft,101:Ft,102:Ft,103:Ft,105:Ft,125:Ft,126:Ft,111:[1,333]}),t(Tn,[2,248],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{73:334,107:T},t(Tn,[2,32],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{7:335,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t([1,6,36,47,69,70,93,127,135,146,149,157],[2,88],{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,60:29,53:30,74:31,100:32,51:33,76:34,75:35,98:45,172:46,151:48,147:49,152:50,154:51,155:52,96:61,73:62,42:63,48:65,37:78,67:79,158:85,44:88,89:152,9:154,7:336,14:n,32:_t,35:zt,38:i,39:s,43:o,45:u,46:a,49:f,50:l,54:c,55:h,56:p,57:d,58:v,59:m,68:g,77:y,84:b,85:Dt,86:Pt,90:S,91:x,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,148:Ut,150:Ut,156:Ut,174:Ut,153:H,167:j,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W}),{34:337,35:Mt,173:[1,338]},t(St,Nn,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{73:339,107:T},t(St,[2,155]),{33:[1,340],93:[1,341]},{33:[1,342]},{35:Cn,37:347,38:i,39:s,109:[1,343],115:344,116:345,118:kn},t([33,93],[2,171]),{117:[1,349]},{35:Ln,37:354,38:i,39:s,109:[1,350],118:An,121:351,123:352},t(St,[2,175]),{61:[1,356]},{7:357,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,35:[1,358],37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{33:[1,359]},{6:X,146:[1,360]},{4:361,5:3,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:r,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:w,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(On,Mn,{151:111,154:112,158:116,134:362,70:[1,363],135:hn,148:J,150:K,156:Q,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(On,_n,{134:364,70:cn,135:hn}),t(Dn,[2,203]),{7:308,8:309,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,69:[1,365],70:$t,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,93:Jt,96:61,97:211,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,136:367,138:366,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t([6,35,69],dn,{133:368,92:370,93:Pn}),t(Hn,[2,234]),t(Bn,[2,225]),{7:308,8:309,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,35:Xt,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,70:$t,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,93:Jt,96:61,97:211,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,131:372,132:371,136:210,137:207,138:206,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(Hn,[2,236]),t(Bn,[2,230]),t(jn,[2,223]),t(jn,[2,224],{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,13:23,15:25,16:26,60:29,53:30,74:31,100:32,51:33,76:34,75:35,98:45,172:46,151:48,147:49,152:50,154:51,155:52,96:61,73:62,42:63,48:65,37:78,67:79,158:85,44:88,89:152,9:154,7:373,14:n,32:_t,38:i,39:s,43:o,45:u,46:a,49:f,50:l,54:c,55:h,56:p,57:d,58:v,59:m,68:g,77:y,84:b,85:Dt,86:Pt,90:S,91:x,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,148:D,150:P,153:H,156:B,167:j,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W}),{78:374,126:fn},{40:375,41:Gt},{7:376,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(Fn,[2,202]),t(Fn,[2,38]),{34:377,35:Mt,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{34:378,35:Mt},t(In,[2,256],{151:111,154:112,158:116,148:J,149:[1,379],150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{35:[2,252],149:[1,380]},t(In,[2,259],{151:111,154:112,158:116,148:J,149:[1,381],150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{35:[2,254],149:[1,382]},t(pt,[2,267]),t(qn,[2,268],{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{35:Rn,157:[1,383]},t(Un,[2,278]),{37:230,38:i,39:s,67:231,68:Lt,73:233,96:232,107:T,130:Ot,161:384,163:229},t(Un,[2,284],{93:[1,385]}),t(zn,[2,280]),t(zn,[2,281]),t(zn,[2,282]),t(zn,[2,283]),t(pt,[2,275]),{35:[2,277]},{7:386,8:387,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:388,8:389,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:390,8:391,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(Wn,dn,{92:392,93:Xn}),t(Vn,[2,143]),t(Vn,[2,56],{65:[1,394]}),t(Vn,[2,57]),t($n,[2,66],{78:397,79:398,61:[1,395],70:[1,396],80:Jn,81:Kn,126:fn}),t($n,[2,67]),{37:247,38:i,39:s,40:248,41:Gt,66:401,67:249,68:nn,71:402,72:251,73:252,74:253,75:254,76:255,77:sn,107:T,129:L,130:A,145:_},{70:[1,403],78:404,79:405,80:Jn,81:Kn,126:fn},t(Qn,[2,62]),t(Qn,[2,63]),t(Qn,[2,64]),{7:406,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(Gn,[2,72]),t(Gn,[2,73]),t(Gn,[2,74]),t(Gn,[2,75]),t(Gn,[2,76]),{78:407,80:Kt,81:Qt,126:fn},t(Sn,Nt,{52:[1,408]}),t(Sn,Ft),{6:X,47:[1,409]},t(V,[2,4]),t(Yn,[2,357],{151:111,154:112,158:116,182:et,183:tt,184:nt}),t(Yn,[2,358],{151:111,154:112,158:116,182:et,183:tt,184:nt}),t(En,[2,359],{151:111,154:112,158:116,182:et,184:nt}),t(En,[2,360],{151:111,154:112,158:116,182:et,184:nt}),t([1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,185,186,187,188,189,190,191,192,193],[2,361],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt}),t([1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,186,187,188,189,190,191,192],[2,362],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,193:ct}),t([1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,187,188,189,190,191,192],[2,363],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,193:ct}),t([1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,188,189,190,191,192],[2,364],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,193:ct}),t([1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,189,190,191,192],[2,365],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,193:ct}),t([1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,190,191,192],[2,366],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,193:ct}),t([1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,191,192],[2,367],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,193:ct}),t([1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,192],[2,368],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,193:ct}),t([1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,157,174,186,187,188,189,190,191,192,193],[2,369],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt}),t(qn,Zn,{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t($,[2,345]),{149:[1,410]},{149:[1,411]},t([1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,149,150,156,174,178,179,182,183,184,185,186,187,188,189,190,191,192,193],Rn,{157:[1,412]}),{7:413,8:414,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:415,8:416,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:417,8:418,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(qn,er,{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t($,[2,344]),t(tr,[2,193]),t(tr,[2,194]),{7:308,8:309,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,35:nr,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,70:$t,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,97:211,98:45,100:32,107:T,110:N,112:C,120:k,127:[1,419],128:420,129:L,130:A,136:421,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(Zt,[2,131]),t(Zt,[2,132]),t(Zt,[2,133]),t(Zt,[2,134]),{83:[1,423]},{70:cn,83:[2,139],134:424,135:hn,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{83:[2,140]},{70:cn,134:425,135:hn},{7:426,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,83:[2,215],84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(rr,[2,206]),t(rr,ir),t(Zt,[2,138]),t(Tn,[2,53],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{7:427,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:428,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{89:429,90:S,91:x},t(sr,or,{95:134,37:136,67:137,96:138,73:139,94:430,38:i,39:s,68:Lt,70:At,107:T,130:Ot}),{6:ur,35:ar},t(mn,[2,105]),{7:433,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(mn,[2,106]),t(jn,Mn,{151:111,154:112,158:116,70:[1,434],148:J,150:K,156:Q,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(jn,_n),t(fr,[2,34]),{6:X,36:[1,435]},{7:436,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(pn,dn,{92:304,88:[1,437],93:vn}),t(bn,wn,{151:111,154:112,158:116,182:et}),{7:438,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{34:377,35:Mt,148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},t($,[2,89],{151:111,154:112,158:116,148:Nn,150:Nn,156:Nn,174:Nn,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Tn,[2,370],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{7:439,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:440,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(pt,[2,337]),{7:441,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(pt,[2,242],{142:[1,442]}),{34:443,35:Mt},{34:446,35:Mt,37:444,38:i,39:s,73:445,107:T},{168:447,170:329,171:xn},{168:448,170:329,171:xn},{36:[1,449],169:[1,450],170:451,171:xn},t(cr,[2,330]),{7:453,8:454,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,139:452,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(hr,[2,149],{151:111,154:112,158:116,34:455,35:Mt,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(pt,[2,152]),{7:456,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{36:[1,457]},t(Tn,[2,33],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t($,[2,87],{151:111,154:112,158:116,148:Nn,150:Nn,156:Nn,174:Nn,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t($,[2,343]),{7:459,8:458,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{36:[1,460]},{44:461,45:u,46:a},{107:[1,463],114:462,119:Wt},{44:464,45:u,46:a},{33:[1,465]},t(Wn,dn,{92:466,93:pr}),t(Vn,[2,162]),{35:Cn,37:347,38:i,39:s,115:468,116:345,118:kn},t(Vn,[2,167],{117:[1,469]}),t(Vn,[2,169],{117:[1,470]}),{37:471,38:i,39:s},t(St,[2,173]),t(Wn,dn,{92:472,93:dr}),t(Vn,[2,183]),{35:Ln,37:354,38:i,39:s,118:An,121:474,123:352},t(Vn,[2,188],{117:[1,475]}),t(Vn,[2,191],{117:[1,476]}),{6:[1,478],7:477,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,35:[1,479],37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(vr,[2,179],{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{73:480,107:T},{44:481,45:u,46:a},t(xt,[2,250]),{6:X,36:[1,482]},{7:483,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t([14,32,38,39,43,45,46,49,50,54,55,56,57,58,59,68,77,84,85,86,90,91,107,110,112,120,129,130,140,144,145,148,150,153,156,167,173,176,177,178,179,180,181],ir,{6:mr,35:mr,69:mr,93:mr}),{7:484,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(Dn,[2,204]),t(Hn,[2,235]),t(Bn,[2,231]),{6:gr,35:yr,69:[1,485]},t(br,or,{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,13:23,15:25,16:26,60:29,53:30,74:31,100:32,51:33,76:34,75:35,89:37,98:45,172:46,151:48,147:49,152:50,154:51,155:52,175:57,96:61,73:62,42:63,48:65,37:78,67:79,158:85,44:88,9:148,138:206,136:210,97:211,7:308,8:309,137:488,131:489,14:n,32:_t,38:i,39:s,43:o,45:u,46:a,49:f,50:l,54:c,55:h,56:p,57:d,58:v,59:m,68:g,70:$t,77:y,84:b,85:Dt,86:E,90:S,91:x,93:Jt,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,148:D,150:P,153:H,156:B,167:j,173:F,176:I,177:q,178:R,179:U,180:z,181:W}),t(br,[2,232]),t(sr,dn,{92:370,133:490,93:Pn}),{7:308,8:309,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,70:$t,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,93:Jt,96:61,97:211,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,136:367,138:366,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(jn,[2,114],{151:111,154:112,158:116,148:J,150:K,156:Q,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(tr,[2,195]),t(xt,[2,129]),{83:[1,491],148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},t(wr,[2,334]),t(Er,[2,340]),{7:492,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:493,8:494,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:495,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:496,8:497,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:498,8:499,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(Un,[2,279]),{37:230,38:i,39:s,67:231,68:Lt,73:233,96:232,107:T,130:Ot,163:500},{35:Sr,148:J,149:[1,501],150:K,151:111,154:112,156:Q,157:[1,502],158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,305],149:[1,503],157:[1,504]},{35:xr,148:J,149:[1,505],150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,306],149:[1,506]},{35:Tr,148:J,149:[1,507],150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,321],149:[1,508]},{6:Nr,35:Cr,109:[1,509]},t(kr,or,{44:88,63:241,64:242,66:243,42:244,71:246,37:247,40:248,67:249,72:251,73:252,74:253,75:254,76:255,62:512,38:i,39:s,41:Gt,43:o,45:u,46:a,68:nn,70:rn,77:sn,107:T,129:L,130:A,145:_}),{7:513,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,35:[1,514],37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:515,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,35:[1,516],37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(Vn,[2,68]),t(Gn,[2,78]),t(Gn,[2,80]),{40:517,41:Gt},{7:292,8:294,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,70:cn,73:62,74:31,75:35,76:34,77:y,82:518,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,106:293,107:T,110:N,112:C,120:k,129:L,130:A,134:295,135:hn,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(Vn,[2,69],{78:397,79:398,80:Jn,81:Kn,126:fn}),t(Vn,[2,71],{78:404,79:405,80:Jn,81:Kn,126:fn}),t(Vn,[2,70]),t(Gn,[2,79]),t(Gn,[2,81]),{69:[1,519],148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},t(Gn,[2,77]),t(xt,[2,44]),t(an,[2,42]),{7:520,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:521,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:522,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t([1,6,35,36,47,69,70,83,88,93,109,127,135,146,148,150,156,174],Sr,{151:111,154:112,158:116,149:[1,523],157:[1,524],178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{149:[1,525],157:[1,526]},t(Lr,xr,{151:111,154:112,158:116,149:[1,527],178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{149:[1,528]},t(Lr,Tr,{151:111,154:112,158:116,149:[1,529],178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{149:[1,530]},t(tr,[2,198]),t([6,35,127],dn,{92:531,93:Ar}),t(Or,[2,216]),{7:308,8:309,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,35:nr,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,70:$t,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,97:211,98:45,100:32,107:T,110:N,112:C,120:k,128:533,129:L,130:A,136:421,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(Zt,[2,137]),{7:534,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,83:[2,211],84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:535,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,83:[2,213],84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{83:[2,214],148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},t(Tn,[2,54],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{36:[1,536],148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{5:538,7:4,8:5,9:6,10:7,11:27,12:28,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:r,34:537,35:Mt,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:w,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(mn,[2,101]),{37:136,38:i,39:s,67:137,68:Lt,70:At,73:139,94:539,95:134,96:138,107:T,130:Ot},t(Mr,kt,{94:133,95:134,37:136,67:137,96:138,73:139,87:540,38:i,39:s,68:Lt,70:At,107:T,130:Ot}),t(mn,[2,107],{151:111,154:112,158:116,148:J,150:K,156:Q,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(jn,mr),t(fr,[2,35]),t(qn,Zn,{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{89:541,90:S,91:x},t(qn,er,{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{36:[1,542],148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},t(Tn,[2,372],{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{34:543,35:Mt,148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{34:544,35:Mt},t(pt,[2,243]),{34:545,35:Mt},{34:546,35:Mt},t(_r,[2,247]),{36:[1,547],169:[1,548],170:451,171:xn},{36:[1,549],169:[1,550],170:451,171:xn},t(pt,[2,328]),{34:551,35:Mt},t(cr,[2,331]),{34:552,35:Mt,93:[1,553]},t(Dr,[2,237],{151:111,154:112,158:116,148:J,150:K,156:Q,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Dr,[2,238]),t(pt,[2,150]),t(hr,[2,153],{151:111,154:112,158:116,34:554,35:Mt,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(pt,[2,249]),{34:555,35:Mt},{148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},t(St,[2,85]),t(St,[2,156]),{33:[1,556]},{35:Cn,37:347,38:i,39:s,115:557,116:345,118:kn},t(St,[2,157]),{44:558,45:u,46:a},{6:Pr,35:Hr,109:[1,559]},t(kr,or,{37:347,116:562,38:i,39:s,118:kn}),t(sr,dn,{92:563,93:pr}),{37:564,38:i,39:s},{37:565,38:i,39:s},{33:[2,172]},{6:Br,35:jr,109:[1,566]},t(kr,or,{37:354,123:569,38:i,39:s,118:An}),t(sr,dn,{92:570,93:dr}),{37:571,38:i,39:s,118:[1,572]},{37:573,38:i,39:s},t(vr,[2,176],{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{7:574,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:575,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{36:[1,576]},t(St,[2,181]),{146:[1,577]},{69:[1,578],148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{69:[1,579],148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},t(Dn,[2,205]),{7:308,8:309,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,70:$t,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,93:Jt,96:61,97:211,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,131:372,136:210,137:580,138:206,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:308,8:309,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,35:Xt,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,70:$t,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,93:Jt,96:61,97:211,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,131:372,132:581,136:210,137:207,138:206,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(Bn,[2,226]),t(br,[2,233],{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,13:23,15:25,16:26,60:29,53:30,74:31,100:32,51:33,76:34,75:35,89:37,98:45,172:46,151:48,147:49,152:50,154:51,155:52,175:57,96:61,73:62,42:63,48:65,37:78,67:79,158:85,44:88,9:148,97:211,7:308,8:309,138:366,136:367,14:n,32:_t,38:i,39:s,43:o,45:u,46:a,49:f,50:l,54:c,55:h,56:p,57:d,58:v,59:m,68:g,70:$t,77:y,84:b,85:Dt,86:E,90:S,91:x,93:Jt,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,148:D,150:P,153:H,156:B,167:j,173:F,176:I,177:q,178:R,179:U,180:z,181:W}),{6:gr,35:yr,36:[1,582]},t(xt,[2,130]),t(qn,[2,257],{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{35:Fr,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,253]},t(qn,[2,260],{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{35:Ir,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,255]},{35:qr,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,276]},t(Un,[2,285]),{7:583,8:584,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:585,8:586,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:587,8:588,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:589,8:590,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:591,8:592,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:593,8:594,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:595,8:596,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:597,8:598,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(Dn,[2,141]),{37:247,38:i,39:s,40:248,41:Gt,42:244,43:o,44:88,45:u,46:a,62:599,63:241,64:242,66:243,67:249,68:nn,70:rn,71:246,72:251,73:252,74:253,75:254,76:255,77:sn,107:T,129:L,130:A,145:_},t(Mr,tn,{44:88,62:240,63:241,64:242,66:243,42:244,71:246,37:247,40:248,67:249,72:251,73:252,74:253,75:254,76:255,108:600,38:i,39:s,41:Gt,43:o,45:u,46:a,68:nn,70:rn,77:sn,107:T,129:L,130:A,145:_}),t(Vn,[2,144]),t(Vn,[2,58],{151:111,154:112,158:116,148:J,150:K,156:Q,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{7:601,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(Vn,[2,60],{151:111,154:112,158:116,148:J,150:K,156:Q,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{7:602,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(Gn,[2,82]),{83:[1,603]},t(Qn,[2,65]),t(qn,Fr,{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(qn,Ir,{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(qn,qr,{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{7:604,8:605,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:606,8:607,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:608,8:609,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:610,8:611,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:612,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:613,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:614,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:615,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{6:Rr,35:Ur,127:[1,616]},t([6,35,36,127],or,{17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,13:23,15:25,16:26,60:29,53:30,74:31,100:32,51:33,76:34,75:35,89:37,98:45,172:46,151:48,147:49,152:50,154:51,155:52,175:57,96:61,73:62,42:63,48:65,37:78,67:79,158:85,44:88,9:148,97:211,7:308,8:309,136:619,14:n,32:_t,38:i,39:s,43:o,45:u,46:a,49:f,50:l,54:c,55:h,56:p,57:d,58:v,59:m,68:g,70:$t,77:y,84:b,85:Dt,86:E,90:S,91:x,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,148:D,150:P,153:H,156:B,167:j,173:F,176:I,177:q,178:R,179:U,180:z,181:W}),t(sr,dn,{92:620,93:Ar}),{83:[2,210],148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{83:[2,212],148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},t(pt,[2,55]),t(yn,[2,91]),t($,[2,93]),t(mn,[2,102]),t(sr,dn,{92:621,93:vn}),{34:537,35:Mt},t(pt,[2,371]),t(wr,[2,335]),t(pt,[2,244]),t(_r,[2,245]),t(_r,[2,246]),t(pt,[2,324]),{34:622,35:Mt},t(pt,[2,325]),{34:623,35:Mt},{36:[1,624]},t(cr,[2,332],{6:[1,625]}),{7:626,8:627,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(pt,[2,154]),t(Er,[2,341]),{44:628,45:u,46:a},t(Wn,dn,{92:629,93:pr}),t(St,[2,158]),{33:[1,630]},{37:347,38:i,39:s,116:631,118:kn},{35:Cn,37:347,38:i,39:s,115:632,116:345,118:kn},t(Vn,[2,163]),{6:Pr,35:Hr,36:[1,633]},t(Vn,[2,168]),t(Vn,[2,170]),t(St,[2,174],{33:[1,634]}),{37:354,38:i,39:s,118:An,123:635},{35:Ln,37:354,38:i,39:s,118:An,121:636,123:352},t(Vn,[2,184]),{6:Br,35:jr,36:[1,637]},t(Vn,[2,189]),t(Vn,[2,190]),t(Vn,[2,192]),t(vr,[2,177],{151:111,154:112,158:116,148:J,150:K,156:Q,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{36:[1,638],148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},t(St,[2,180]),t(xt,[2,251]),t(xt,[2,208]),t(xt,[2,209]),t(Bn,[2,227]),t(sr,dn,{92:370,133:639,93:Pn}),t(Bn,[2,228]),{35:zr,148:J,150:K,151:111,154:112,156:Q,157:[1,640],158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,307],157:[1,641]},{35:Wr,148:J,149:[1,642],150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,311],149:[1,643]},{35:Xr,148:J,150:K,151:111,154:112,156:Q,157:[1,644],158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,308],157:[1,645]},{35:Vr,148:J,149:[1,646],150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,312],149:[1,647]},{35:$r,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,309]},{35:Jr,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,310]},{35:Kr,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,322]},{35:Qr,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,323]},t(Vn,[2,145]),t(sr,dn,{92:648,93:Xn}),{36:[1,649],148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{36:[1,650],148:J,150:K,151:111,154:112,156:Q,158:116,174:lr,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},t(Gn,[2,83]),t(Gr,zr,{151:111,154:112,158:116,157:[1,651],178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{157:[1,652]},t(Lr,Wr,{151:111,154:112,158:116,149:[1,653],178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{149:[1,654]},t(Gr,Xr,{151:111,154:112,158:116,157:[1,655],178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{157:[1,656]},t(Lr,Vr,{151:111,154:112,158:116,149:[1,657],178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{149:[1,658]},t(Tn,$r,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Tn,Jr,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Tn,Kr,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Tn,Qr,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(tr,[2,199]),{7:308,8:309,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,70:$t,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,97:211,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,136:659,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:308,8:309,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,35:nr,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,70:$t,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,97:211,98:45,100:32,107:T,110:N,112:C,120:k,128:660,129:L,130:A,136:421,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},t(Or,[2,217]),{6:Rr,35:Ur,36:[1,661]},{6:ur,35:ar,36:[1,662]},{36:[1,663]},{36:[1,664]},t(pt,[2,329]),t(cr,[2,333]),t(Dr,[2,239],{151:111,154:112,158:116,148:J,150:K,156:Q,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Dr,[2,240]),t(St,[2,160]),{6:Pr,35:Hr,109:[1,665]},{44:666,45:u,46:a},t(Vn,[2,164]),t(sr,dn,{92:667,93:pr}),t(Vn,[2,165]),{44:668,45:u,46:a},t(Vn,[2,185]),t(sr,dn,{92:669,93:dr}),t(Vn,[2,186]),t(St,[2,178]),{6:gr,35:yr,36:[1,670]},{7:671,8:672,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:673,8:674,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:675,8:676,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:677,8:678,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:679,8:680,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:681,8:682,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:683,8:684,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{7:685,8:686,9:148,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:E,89:37,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:F,175:57,176:I,177:q,178:R,179:U,180:z,181:W},{6:Nr,35:Cr,36:[1,687]},t(Vn,[2,59]),t(Vn,[2,61]),{7:688,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:689,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:690,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:691,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:692,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:693,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:694,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},{7:695,9:154,13:23,14:n,15:25,16:26,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,32:_t,37:78,38:i,39:s,42:63,43:o,44:88,45:u,46:a,48:65,49:f,50:l,51:33,53:30,54:c,55:h,56:p,57:d,58:v,59:m,60:29,67:79,68:g,73:62,74:31,75:35,76:34,77:y,84:b,85:Dt,86:Pt,89:152,90:S,91:x,96:61,98:45,100:32,107:T,110:N,112:C,120:k,129:L,130:A,140:O,144:M,145:_,147:49,148:D,150:P,151:48,152:50,153:H,154:51,155:52,156:B,158:85,167:j,172:46,173:Ht,176:Bt,177:q,178:R,179:U,180:z,181:W},t(Or,[2,218]),t(sr,dn,{92:696,93:Ar}),t(Or,[2,219]),t(mn,[2,103]),t(pt,[2,326]),t(pt,[2,327]),{33:[1,697]},t(St,[2,159]),{6:Pr,35:Hr,36:[1,698]},t(St,[2,182]),{6:Br,35:jr,36:[1,699]},t(Bn,[2,229]),{35:Yr,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,313]},{35:Zr,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,315]},{35:ei,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,317]},{35:ti,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,319]},{35:ni,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,314]},{35:ri,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,316]},{35:ii,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,318]},{35:si,148:J,150:K,151:111,154:112,156:Q,158:116,174:G,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct},{35:[2,320]},t(Vn,[2,146]),t(Tn,Yr,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Tn,Zr,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Tn,ei,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Tn,ti,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Tn,ni,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Tn,ri,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Tn,ii,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),t(Tn,si,{151:111,154:112,158:116,178:Y,179:Z,182:et,183:tt,184:nt,185:rt,186:it,187:st,188:ot,189:ut,190:at,191:ft,192:lt,193:ct}),{6:Rr,35:Ur,36:[1,700]},{44:701,45:u,46:a},t(Vn,[2,166]),t(Vn,[2,187]),t(Or,[2,220]),t(St,[2,161])],defaultActions:{235:[2,277],293:[2,140],471:[2,172],494:[2,253],497:[2,255],499:[2,276],592:[2,309],594:[2,310],596:[2,322],598:[2,323],672:[2,313],674:[2,315],676:[2,317],678:[2,319],680:[2,314],682:[2,316],684:[2,318],686:[2,320]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],s=this.table,o=\"\",u=0,a=0,f=0,l=1,c=i.slice.call(arguments,1),h=Object.create(this.lexer),p={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(p.yy[d]=this.yy[d]);h.setInput(e,p.yy),p.yy.lexer=h,p.yy.parser=this,\"undefined\"==typeof h.yylloc&&(h.yylloc={});var v=h.yylloc;i.push(v);var m=h.options&&h.options.ranges;this.parseError=\"function\"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;var g=function(){var e;return e=h.lex()||l,\"number\"!=typeof e&&(e=t.symbols_[e]||e),e};for(var y={},b,w,E,S,x,T,N,C,k;;){if(E=n[n.length-1],this.defaultActions[E]?S=this.defaultActions[E]:((null===b||\"undefined\"==typeof b)&&(b=g()),S=s[E]&&s[E][b]),\"undefined\"==typeof S||!S.length||!S[0]){var L=\"\";for(T in k=[],s[E])this.terminals_[T]&&T>2&&k.push(\"'\"+this.terminals_[T]+\"'\");L=h.showPosition?\"Parse error on line \"+(u+1)+\":\\n\"+h.showPosition()+\"\\nExpecting \"+k.join(\", \")+\", got '\"+(this.terminals_[b]||b)+\"'\":\"Parse error on line \"+(u+1)+\": Unexpected \"+(b==l?\"end of input\":\"'\"+(this.terminals_[b]||b)+\"'\"),this.parseError(L,{text:h.match,token:this.terminals_[b]||b,line:h.yylineno,loc:v,expected:k})}if(S[0]instanceof Array&&1<S.length)throw new Error(\"Parse Error: multiple actions possible at state: \"+E+\", token: \"+b);switch(S[0]){case 1:n.push(b),r.push(h.yytext),i.push(h.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(a=h.yyleng,o=h.yytext,u=h.yylineno,v=h.yylloc,0<f&&f--);break;case 2:if(N=this.productions_[S[1]][1],y.$=r[r.length-N],y._$={first_line:i[i.length-(N||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(N||1)].first_column,last_column:i[i.length-1].last_column},m&&(y._$.range=[i[i.length-(N||1)].range[0],i[i.length-1].range[1]]),x=this.performAction.apply(y,[o,a,u,p.yy,S[1],r,i].concat(c)),\"undefined\"!=typeof x)return x;N&&(n=n.slice(0,2*-1*N),r=r.slice(0,-1*N),i=i.slice(0,-1*N)),n.push(this.productions_[S[1]][0]),r.push(y.$),i.push(y._$),C=s[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}};return e.prototype=oi,oi.Parser=e,new e}();return\"undefined\"!=typeof require&&\"undefined\"!=typeof e&&(e.parser=n,e.Parser=n.Parser,e.parse=function(){return n.parse.apply(n,arguments)},e.main=function(){},require.main===t&&e.main(process.argv.slice(1))),t.exports}(),require[\"./scope\"]=function(){var e={};return function(){var t=[].indexOf,n;e.Scope=n=function(){function e(t,n,r,i){_classCallCheck(this,e);var s,o;this.parent=t,this.expressions=n,this.method=r,this.referencedVars=i,this.variables=[{name:\"arguments\",type:\"arguments\"}],this.comments={},this.positions={},this.parent||(this.utilities={}),this.root=null==(s=null==(o=this.parent)?void 0:o.root)?this:s}return _createClass(e,[{key:\"add\",value:function(t,n,r){return this.shared&&!r?this.parent.add(t,n,r):Object.prototype.hasOwnProperty.call(this.positions,t)?this.variables[this.positions[t]].type=n:this.positions[t]=this.variables.push({name:t,type:n})-1}},{key:\"namedMethod\",value:function(){var t;return(null==(t=this.method)?void 0:t.name)||!this.parent?this.method:this.parent.namedMethod()}},{key:\"find\",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:\"var\";return!!this.check(t)||(this.add(t,n),!1)}},{key:\"parameter\",value:function(t){return this.shared&&this.parent.check(t,!0)?void 0:this.add(t,\"param\")}},{key:\"check\",value:function(t){var n;return!!(this.type(t)||(null==(n=this.parent)?void 0:n.check(t)))}},{key:\"temporary\",value:function(t,n){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i,s,o,u,a,f;return r?(f=t.charCodeAt(0),s=122,i=s-f,u=f+n%(i+1),o=_StringfromCharCode(u),a=_Mathfloor(n/(i+1)),\"\"+o+(a||\"\")):\"\"+t+(n||\"\")}},{key:\"type\",value:function(t){var n,r,i,s;for(i=this.variables,n=0,r=i.length;n<r;n++)if(s=i[n],s.name===t)return s.type;return null}},{key:\"freeVariable\",value:function(n){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i,s,o;for(i=0;o=this.temporary(n,i,r.single),!!(this.check(o)||0<=t.call(this.root.referencedVars,o));)i++;return(null==(s=r.reserve)||s)&&this.add(o,\"var\",!0),o}},{key:\"assign\",value:function(t,n){return this.add(t,{value:n,assigned:!0},!0),this.hasAssignments=!0}},{key:\"hasDeclarations\",value:function(){return!!this.declaredVariables().length}},{key:\"declaredVariables\",value:function(){var t;return function(){var e,n,r,i;for(r=this.variables,i=[],e=0,n=r.length;e<n;e++)t=r[e],\"var\"===t.type&&i.push(t.name);return i}.call(this).sort()}},{key:\"assignedVariables\",value:function(){var t,n,r,i,s;for(r=this.variables,i=[],t=0,n=r.length;t<n;t++)s=r[t],s.type.assigned&&i.push(s.name+\" = \"+s.type.value);return i}}]),e}()}.call(this),{exports:e}.exports}(),require[\"./nodes\"]=function(){var e={};return function(){var t=[].indexOf,n=[].splice,r=[].slice,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I,q,R,U,z,W,X,V,$,J,K,Q,G,Y,Z,et,tt,nt,rt,it,st,ot,ut,at,ft,lt,ct,ht,pt,dt,vt,mt,gt,yt,bt,wt,Et,St,xt,Tt,Nt,Ct,kt,Lt,At,Ot,Mt,_t,Dt,Pt,Ht,Bt,jt,Ft,It,qt,Rt,Ut,zt,Wt,Xt,Vt,$t,Jt,Kt,Qt,Gt,Yt,Zt,en,tn,nn,rn,sn,on,un,an;Error.stackTraceLimit=Infinity;var fn=require(\"./scope\");gt=fn.Scope;var ln=require(\"./lexer\");Qt=ln.isUnassignable,z=ln.JS_FORBIDDEN;var cn=require(\"./helpers\");qt=cn.compact,Wt=cn.flatten,zt=cn.extend,Yt=cn.merge,Rt=cn.del,rn=cn.starts,Ut=cn.ends,nn=cn.some,Ft=cn.addDataToNode,It=cn.attachCommentsToNode,Gt=cn.locationDataToString,sn=cn.throwSyntaxError,e.extend=zt,e.addDataToNode=Ft,Bt=function(){return!0},nt=function(){return!1},kt=function(){return this},tt=function(){return this.negated=!this.negated,this},e.CodeFragment=v=function(){function e(t,n){_classCallCheck(this,e);var r;this.code=\"\"+n,this.type=(null==t||null==(r=t.constructor)?void 0:r.name)||\"unknown\",this.locationData=null==t?void 0:t.locationData,this.comments=null==t?void 0:t.comments}return _createClass(e,[{key:\"toString\",value:function t(){return\"\"+this.code+(this.locationData?\": \"+Gt(this.locationData):\"\")}}]),e}(),Xt=function(e){var t;return function(){var n,r,i;for(i=[],n=0,r=e.length;n<r;n++)t=e[n],i.push(t.code);return i}().join(\"\")},e.Base=a=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:\"compile\",value:function(t,n){return Xt(this.compileToFragments(t,n))}},{key:\"compileWithoutComments\",value:function(t,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:\"compile\",i,s;return this.comments&&(this.ignoreTheseCommentsTemporarily=this.comments,delete this.comments),s=this.unwrapAll(),s.comments&&(s.ignoreTheseCommentsTemporarily=s.comments,delete s.comments),i=this[r](t,n),this.ignoreTheseCommentsTemporarily&&(this.comments=this.ignoreTheseCommentsTemporarily,delete this.ignoreTheseCommentsTemporarily),s.ignoreTheseCommentsTemporarily&&(s.comments=s.ignoreTheseCommentsTemporarily,delete s.ignoreTheseCommentsTemporarily),i}},{key:\"compileNodeWithoutComments\",value:function(t,n){return this.compileWithoutComments(t,n,\"compileNode\")}},{key:\"compileToFragments\",value:function(t,n){var r,i;return t=zt({},t),n&&(t.level=n),i=this.unfoldSoak(t)||this,i.tab=t.indent,r=t.level!==K&&i.isStatement(t)?i.compileClosure(t):i.compileNode(t),this.compileCommentFragments(t,i,r),r}},{key:\"compileToFragmentsWithoutComments\",value:function(t,n){return this.compileWithoutComments(t,n,\"compileToFragments\")}},{key:\"compileClosure\",value:function(t){var n,r,s,o,u,a,l,c;switch((o=this.jumps())&&o.error(\"cannot use a pure statement in an expression\"),t.sharedScope=!0,s=new d([],f.wrap([this])),n=[],this.contains(function(e){return e instanceof Tt})?s.bound=!0:((r=this.contains(Jt))||this.contains(Kt))&&(n=[new At],r?(u=\"apply\",n.push(new _(\"arguments\"))):u=\"call\",s=new Pt(s,[new i(new ct(u))])),a=(new h(s,n)).compileNode(t),!1){case!(s.isGenerator||(null==(l=s.base)?void 0:l.isGenerator)):a.unshift(this.makeCode(\"(yield* \")),a.push(this.makeCode(\")\"));break;case!(s.isAsync||(null==(c=s.base)?void 0:c.isAsync)):a.unshift(this.makeCode(\"(await \")),a.push(this.makeCode(\")\"))}return a}},{key:\"compileCommentFragments\",value:function(n,r,i){var s,o,u,a,f,l,c,h;if(!r.comments)return i;for(h=function(e){var t;return e.unshift?un(i,e):(0!==i.length&&(t=i[i.length-1],e.newLine&&\"\"!==t.code&&!/\\n\\s*$/.test(t.code)&&(e.code=\"\\n\"+e.code)),i.push(e))},c=r.comments,f=0,l=c.length;f<l;f++)(u=c[f],0>t.call(this.compiledComments,u))&&(this.compiledComments.push(u),a=u.here?(new O(u)).compileNode(n):(new Q(u)).compileNode(n),a.isHereComment&&!a.newLine||r.includeCommentFragments()?h(a):(0===i.length&&i.push(this.makeCode(\"\")),a.unshift?(null==(s=i[0]).precedingComments&&(s.precedingComments=[]),i[0].precedingComments.push(a)):(null==(o=i[i.length-1]).followingComments&&(o.followingComments=[]),i[i.length-1].followingComments.push(a))));return i}},{key:\"cache\",value:function(t,n,r){var i,s,u;return i=null==r?this.shouldCache():r(this),i?(s=new _(t.scope.freeVariable(\"ref\")),u=new o(s,this),n?[u.compileToFragments(t,n),[this.makeCode(s.value)]]:[u,s]):(s=n?this.compileToFragments(t,n):this,[s,s])}},{key:\"hoist\",value:function(){var t,n,r;return this.hoisted=!0,r=new M(this),t=this.compileNode,n=this.compileToFragments,this.compileNode=function(e){return r.update(t,e)},this.compileToFragments=function(e){return r.update(n,e)},r}},{key:\"cacheToCodeFragments\",value:function(t){return[Xt(t[0]),Xt(t[1])]}},{key:\"makeReturn\",value:function(t){var n;return n=this.unwrapAll(),t?new h(new G(t+\".push\"),[n]):new vt(n)}},{key:\"contains\",value:function(t){var n;return n=void 0,this.traverseChildren(!1,function(e){if(t(e))return n=e,!1}),n}},{key:\"lastNode\",value:function(t){return 0===t.length?null:t[t.length-1]}},{key:\"toString\",value:function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:\"\",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.constructor.name,n;return n=\"\\n\"+e+t,this.soak&&(n+=\"?\"),this.eachChild(function(t){return n+=t.toString(e+Ct)}),n}},{key:\"eachChild\",value:function(t){var n,r,i,s,o,u,a,f;if(!this.children)return this;for(a=this.children,i=0,o=a.length;i<o;i++)if(n=a[i],this[n])for(f=Wt([this[n]]),s=0,u=f.length;s<u;s++)if(r=f[s],!1===t(r))return this;return this}},{key:\"traverseChildren\",value:function(t,n){return this.eachChild(function(e){var r;if(r=n(e),!1!==r)return e.traverseChildren(t,n)})}},{key:\"replaceInContext\",value:function(t,r){var i,s,o,u,a,f,l,c,h,p;if(!this.children)return!1;for(h=this.children,a=0,l=h.length;a<l;a++)if(i=h[a],o=this[i])if(Array.isArray(o))for(u=f=0,c=o.length;f<c;u=++f){if(s=o[u],t(s))return n.apply(o,[u,u-u+1].concat(p=r(s,this))),p,!0;if(s.replaceInContext(t,r))return!0}else{if(t(o))return this[i]=r(o,this),!0;if(o.replaceInContext(t,r))return!0}}},{key:\"invert\",value:function(){return new ut(\"!\",this)}},{key:\"unwrapAll\",value:function(){var t;for(t=this;t!==(t=t.unwrap());)continue;return t}},{key:\"updateLocationDataIfMissing\",value:function(t){return this.locationData&&!this.forceUpdateLocation?this:(delete this.forceUpdateLocation,this.locationData=t,this.eachChild(function(e){return e.updateLocationDataIfMissing(t)}))}},{key:\"error\",value:function(t){return sn(t,this.locationData)}},{key:\"makeCode\",value:function(t){return new v(this,t)}},{key:\"wrapInParentheses\",value:function(t){return[this.makeCode(\"(\")].concat(_toConsumableArray(t),[this.makeCode(\")\")])}},{key:\"wrapInBraces\",value:function(t){return[this.makeCode(\"{\")].concat(_toConsumableArray(t),[this.makeCode(\"}\")])}},{key:\"joinFragmentArrays\",value:function(t,n){var r,i,s,o,u;for(r=[],s=o=0,u=t.length;o<u;s=++o)i=t[s],s&&r.push(this.makeCode(n)),r=r.concat(i);return r}}]),e}();return e.prototype.children=[],e.prototype.isStatement=nt,e.prototype.compiledComments=[],e.prototype.includeCommentFragments=nt,e.prototype.jumps=nt,e.prototype.shouldCache=Bt,e.prototype.isChainable=nt,e.prototype.isAssignable=nt,e.prototype.isNumber=nt,e.prototype.unwrap=kt,e.prototype.unfoldSoak=nt,e.prototype.assigns=nt,e}.call(this),e.HoistTarget=M=function(e){function t(e){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.source=e,n.options={},n.targetFragments={fragments:[]},n}return _inherits(t,e),_createClass(t,null,[{key:\"expand\",value:function(t){var r,i,s,o;for(i=s=t.length-1;0<=s;i=s+=-1)r=t[i],r.fragments&&(n.apply(t,[i,i-i+1].concat(o=this.expand(r.fragments))),o);return t}}]),_createClass(t,[{key:\"isStatement\",value:function(t){return this.source.isStatement(t)}},{key:\"update\",value:function(t,n){return this.targetFragments.fragments=t.call(this.source,Yt(n,this.options))}},{key:\"compileToFragments\",value:function(t,n){return this.options.indent=t.indent,this.options.level=null==n?t.level:n,[this.targetFragments]}},{key:\"compileNode\",value:function(t){return this.compileToFragments(t)}},{key:\"compileClosure\",value:function(t){return this.compileToFragments(t)}}]),t}(a),e.Block=f=function(){var e=function(e){function n(e){_classCallCheck(this,n);var t=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.expressions=qt(Wt(e||[])),t}return _inherits(n,e),_createClass(n,[{key:\"push\",value:function(t){return this.expressions.push(t),this}},{key:\"pop\",value:function(){return this.expressions.pop()}},{key:\"unshift\",value:function(t){return this.expressions.unshift(t),this}},{key:\"unwrap\",value:function(){return 1===this.expressions.length?this.expressions[0]:this}},{key:\"isEmpty\",value:function(){return!this.expressions.length}},{key:\"isStatement\",value:function(t){var n,r,i,s;for(s=this.expressions,r=0,i=s.length;r<i;r++)if(n=s[r],n.isStatement(t))return!0;return!1}},{key:\"jumps\",value:function(t){var n,r,i,s,o;for(o=this.expressions,r=0,s=o.length;r<s;r++)if(n=o[r],i=n.jumps(t))return i}},{key:\"makeReturn\",value:function(t){var n,r;for(r=this.expressions.length;r--;){n=this.expressions[r],this.expressions[r]=n.makeReturn(t),n instanceof vt&&!n.expression&&this.expressions.splice(r,1);break}return this}},{key:\"compileToFragments\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];return t.scope?_get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"compileToFragments\",this).call(this,t,r):this.compileRoot(t)}},{key:\"compileNode\",value:function(t){var i,s,o,u,a,f,l,c,h,p;for(this.tab=t.indent,p=t.level===K,s=[],h=this.expressions,u=a=0,l=h.length;a<l;u=++a){if(c=h[u],c.hoisted){c.compileToFragments(t);continue}if(c=c.unfoldSoak(t)||c,c instanceof n)s.push(c.compileNode(t));else if(p){if(c.front=!0,o=c.compileToFragments(t),!c.isStatement(t)){o=$t(o,this);var d=r.call(o,-1),v=_slicedToArray(d,1);f=v[0],\"\"===f.code||f.isComment||o.push(this.makeCode(\";\"))}s.push(o)}else s.push(c.compileToFragments(t,V))}return p?this.spaced?[].concat(this.joinFragmentArrays(s,\"\\n\\n\"),this.makeCode(\"\\n\")):this.joinFragmentArrays(s,\"\\n\"):(i=s.length?this.joinFragmentArrays(s,\", \"):[this.makeCode(\"void 0\")],1<s.length&&t.level>=V?this.wrapInParentheses(i):i)}},{key:\"compileRoot\",value:function(t){var n,r,i,s,o,u;for(t.indent=t.bare?\"\":Ct,t.level=K,this.spaced=!0,t.scope=new gt(null,this,null,null==(o=t.referencedVars)?[]:o),u=t.locals||[],r=0,i=u.length;r<i;r++)s=u[r],t.scope.parameter(s);return n=this.compileWithDeclarations(t),M.expand(n),n=this.compileComments(n),t.bare?n:[].concat(this.makeCode(\"(function() {\\n\"),n,this.makeCode(\"\\n}).call(this);\\n\"))}},{key:\"compileWithDeclarations\",value:function(t){var n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y;for(a=[],d=[],v=this.expressions,f=l=0,h=v.length;l<h&&(u=v[f],u=u.unwrap(),u instanceof G);f=++l);if(t=Yt(t,{level:K}),f){m=this.expressions.splice(f,9e9);var b=[this.spaced,!1];y=b[0],this.spaced=b[1];var w=[this.compileNode(t),y];a=w[0],this.spaced=w[1],this.expressions=m}d=this.compileNode(t);var E=t;if(g=E.scope,g.expressions===this)if(o=t.scope.hasDeclarations(),n=g.hasAssignments,o||n){if(f&&a.push(this.makeCode(\"\\n\")),a.push(this.makeCode(this.tab+\"var \")),o)for(i=g.declaredVariables(),s=c=0,p=i.length;c<p;s=++c){if(r=i[s],a.push(this.makeCode(r)),Object.prototype.hasOwnProperty.call(t.scope.comments,r)){var S;(S=a).push.apply(S,_toConsumableArray(t.scope.comments[r]))}s!==i.length-1&&a.push(this.makeCode(\", \"))}n&&(o&&a.push(this.makeCode(\",\\n\"+(this.tab+Ct))),a.push(this.makeCode(g.assignedVariables().join(\",\\n\"+(this.tab+Ct))))),a.push(this.makeCode(\";\\n\"+(this.spaced?\"\\n\":\"\")))}else a.length&&d.length&&a.push(this.makeCode(\"\\n\"));return a.concat(d)}},{key:\"compileComments\",value:function(n){var r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k;for(u=f=0,h=n.length;f<h;u=++f){if(s=n[u],s.precedingComments){for(o=\"\",E=n.slice(0,u+1),l=E.length-1;0<=l;l+=-1){if(g=E[l],a=/^ {2,}/m.exec(g.code),a){o=a[0];break}if(0<=t.call(g.code,\"\\n\"))break}for(r=\"\\n\"+o+function(){var e,t,n,r;for(n=s.precedingComments,r=[],e=0,t=n.length;e<t;e++)i=n[e],i.isHereComment&&i.multiline?r.push(en(i.code,o,!1)):r.push(i.code);return r}().join(\"\\n\"+o).replace(/^(\\s*)$/gm,\"\"),S=n.slice(0,u+1),y=c=S.length-1;0<=c;y=c+=-1){if(g=S[y],v=g.code.lastIndexOf(\"\\n\"),-1===v)if(0===y)g.code=\"\\n\"+g.code,v=0;else{if(!g.isStringWithInterpolations||\"{\"!==g.code)continue;r=r.slice(1)+\"\\n\",v=1}delete s.precedingComments,g.code=g.code.slice(0,v)+r+g.code.slice(v);break}}if(s.followingComments){if(N=s.followingComments[0].trail,o=\"\",!N||1!==s.followingComments.length)for(m=!1,x=n.slice(u),b=0,p=x.length;b<p;b++)if(C=x[b],!m){if(!(0<=t.call(C.code,\"\\n\")))continue;m=!0}else{if(a=/^ {2,}/m.exec(C.code),a){o=a[0];break}if(0<=t.call(C.code,\"\\n\"))break}for(r=1===u&&/^\\s+$/.test(n[0].code)?\"\":N?\" \":\"\\n\"+o,r+=function(){var e,t,n,r;for(n=s.followingComments,r=[],t=0,e=n.length;t<e;t++)i=n[t],i.isHereComment&&i.multiline?r.push(en(i.code,o,!1)):r.push(i.code);return r}().join(\"\\n\"+o).replace(/^(\\s*)$/gm,\"\"),T=n.slice(u),k=w=0,d=T.length;w<d;k=++w){if(C=T[k],v=C.code.indexOf(\"\\n\"),-1===v)if(k===n.length-1)C.code+=\"\\n\",v=C.code.length;else{if(!C.isStringWithInterpolations||\"}\"!==C.code)continue;r+=\"\\n\",v=0}delete s.followingComments,\"\\n\"===C.code&&(r=r.replace(/^\\n/,\"\")),C.code=C.code.slice(0,v)+r+C.code.slice(v);break}}}return n}}],[{key:\"wrap\",value:function(t){return 1===t.length&&t[0]instanceof n?t[0]:new n(t)}}]),n}(a);return e.prototype.children=[\"expressions\"],e}.call(this),e.Literal=G=function(){var e=function(e){function t(e){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.value=e,n}return _inherits(t,e),_createClass(t,[{key:\"assigns\",value:function(t){return t===this.value}},{key:\"compileNode\",value:function(){return[this.makeCode(this.value)]}},{key:\"toString\",value:function n(){return\" \"+(this.isStatement()?_get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"toString\",this).call(this):this.constructor.name)+\": \"+this.value}}]),t}(a);return e.prototype.shouldCache=nt,e}.call(this),e.NumberLiteral=st=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(G),e.InfinityLiteral=U=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(){return[this.makeCode(\"2e308\")]}}]),t}(st),e.NaNLiteral=rt=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,\"NaN\"))}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n;return n=[this.makeCode(\"0/0\")],t.level>=$?this.wrapInParentheses(n):n}}]),t}(st),e.StringLiteral=Et=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(){var n;return n=this.csx?[this.makeCode(this.unquote(!0,!0))]:_get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"compileNode\",this).call(this)}},{key:\"unquote\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r;return r=this.value.slice(1,-1),t&&(r=r.replace(/\\\\\"/g,'\"')),n&&(r=r.replace(/\\\\n/g,\"\\n\")),r}}]),t}(G),e.RegexLiteral=pt=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(G),e.PassthroughLiteral=lt=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(G),e.IdentifierLiteral=_=function(){var e=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:\"eachName\",value:function(t){return t(this)}}]),t}(G);return e.prototype.isAssignable=Bt,e}.call(this),e.CSXTag=c=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(_),e.PropertyName=ct=function(){var e=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(G);return e.prototype.isAssignable=Bt,e}.call(this),e.ComputedPropertyName=m=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){return[this.makeCode(\"[\")].concat(_toConsumableArray(this.value.compileToFragments(t,V)),[this.makeCode(\"]\")])}}]),t}(ct),e.StatementLiteral=wt=function(){var e=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:\"jumps\",value:function(t){return\"break\"!==this.value||(null==t?void 0:t.loop)||(null==t?void 0:t.block)?\"continue\"!==this.value||null!=t&&t.loop?void 0:this:this}},{key:\"compileNode\",value:function(){return[this.makeCode(\"\"+this.tab+this.value+\";\")]}}]),t}(G);return e.prototype.isStatement=Bt,e.prototype.makeReturn=kt,e}.call(this),e.ThisLiteral=At=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,\"this\"))}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n,r;return n=(null==(r=t.scope.method)?void 0:r.bound)?t.scope.method.context:this.value,[this.makeCode(n)]}}]),t}(G),e.UndefinedLiteral=Dt=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,\"undefined\"))}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){return[this.makeCode(t.level>=W?\"(void 0)\":\"void 0\")]}}]),t}(G),e.NullLiteral=it=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,\"null\"))}return _inherits(t,e),t}(G),e.BooleanLiteral=l=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(G),e.Return=vt=function(){var e=function(e){function n(e){_classCallCheck(this,n);var t=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.expression=e,t}return _inherits(n,e),_createClass(n,[{key:\"compileToFragments\",value:function(t,r){var i,s;return i=null==(s=this.expression)?void 0:s.makeReturn(),!i||i instanceof n?_get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"compileToFragments\",this).call(this,t,r):i.compileToFragments(t,r)}},{key:\"compileNode\",value:function(n){var r,i,s,o;if(r=[],this.expression)for(r=this.expression.compileToFragments(n,J),un(r,this.makeCode(this.tab+\"return \")),s=0,o=r.length;s<o;s++)if(i=r[s],i.isHereComment&&0<=t.call(i.code,\"\\n\"))i.code=en(i.code,this.tab);else{if(!i.isLineComment)break;i.code=\"\"+this.tab+i.code}else r.push(this.makeCode(this.tab+\"return\"));return r.push(this.makeCode(\";\")),r}}]),n}(a);return e.prototype.children=[\"expression\"],e.prototype.isStatement=Bt,e.prototype.makeReturn=kt,e.prototype.jumps=kt,e}.call(this),e.YieldReturn=jt=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(n){return null==n.scope.parent&&this.error(\"yield can only occur inside functions\"),_get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"compileNode\",this).call(this,n)}}]),t}(vt),e.AwaitReturn=u=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(n){return null==n.scope.parent&&this.error(\"await can only occur inside functions\"),_get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"compileNode\",this).call(this,n)}}]),t}(vt),e.Value=Pt=function(){var e=function(e){function t(e,n,r){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,t);var s=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o,u;if(!n&&e instanceof t){var a;return a=e,_possibleConstructorReturn(s,a)}if(e instanceof ft&&e.contains(function(e){return e instanceof wt})){var f;return f=e.unwrap(),_possibleConstructorReturn(s,f)}return s.base=e,s.properties=n||[],r&&(s[r]=!0),s.isDefaultValue=i,(null==(o=s.base)?void 0:o.comments)&&s.base instanceof At&&null!=(null==(u=s.properties[0])?void 0:u.name)&&Zt(s.base,s.properties[0].name),s}return _inherits(t,e),_createClass(t,[{key:\"add\",value:function(t){return this.properties=this.properties.concat(t),this.forceUpdateLocation=!0,this}},{key:\"hasProperties\",value:function(){return 0!==this.properties.length}},{key:\"bareLiteral\",value:function(t){return!this.properties.length&&this.base instanceof t}},{key:\"isArray\",value:function(){return this.bareLiteral(s)}},{key:\"isRange\",value:function(){return this.bareLiteral(ht)}},{key:\"shouldCache\",value:function(){return this.hasProperties()||this.base.shouldCache()}},{key:\"isAssignable\",value:function(){return this.hasProperties()||this.base.isAssignable()}},{key:\"isNumber\",value:function(){return this.bareLiteral(st)}},{key:\"isString\",value:function(){return this.bareLiteral(Et)}},{key:\"isRegex\",value:function(){return this.bareLiteral(pt)}},{key:\"isUndefined\",value:function(){return this.bareLiteral(Dt)}},{key:\"isNull\",value:function(){return this.bareLiteral(it)}},{key:\"isBoolean\",value:function(){return this.bareLiteral(l)}},{key:\"isAtomic\",value:function(){var t,n,r,i;for(i=this.properties.concat(this.base),t=0,n=i.length;t<n;t++)if(r=i[t],r.soak||r instanceof h)return!1;return!0}},{key:\"isNotCallable\",value:function(){return this.isNumber()||this.isString()||this.isRegex()||this.isArray()||this.isRange()||this.isSplice()||this.isObject()||this.isUndefined()||this.isNull()||this.isBoolean()}},{key:\"isStatement\",value:function(t){return!this.properties.length&&this.base.isStatement(t)}},{key:\"assigns\",value:function(t){return!this.properties.length&&this.base.assigns(t)}},{key:\"jumps\",value:function(t){return!this.properties.length&&this.base.jumps(t)}},{key:\"isObject\",value:function(t){return!this.properties.length&&this.base instanceof ot&&(!t||this.base.generated)}},{key:\"isElision\",value:function(){return this.base instanceof s&&this.base.hasElision()}},{key:\"isSplice\",value:function(){var t,n,i,s;return s=this.properties,t=r.call(s,-1),n=_slicedToArray(t,1),i=n[0],t,i instanceof yt}},{key:\"looksStatic\",value:function(t){var n;return(this.this||this.base instanceof At||this.base.value===t)&&1===this.properties.length&&\"prototype\"!==(null==(n=this.properties[0].name)?void 0:n.value)}},{key:\"unwrap\",value:function(){return this.properties.length?this:this.base}},{key:\"cacheReference\",value:function(n){var i,s,u,a,f,l,c;return(c=this.properties,i=r.call(c,-1),s=_slicedToArray(i,1),f=s[0],i,2>this.properties.length&&!this.base.shouldCache()&&(null==f||!f.shouldCache()))?[this,this]:(u=new t(this.base,this.properties.slice(0,-1)),u.shouldCache()&&(a=new _(n.scope.freeVariable(\"base\")),u=new t(new ft(new o(a,u)))),!f)?[u,a]:(f.shouldCache()&&(l=new _(n.scope.freeVariable(\"name\")),f=new R(new o(l,f.index)),l=new R(l)),[u.add(f),new t(a||u.base,[l||f])])}},{key:\"compileNode\",value:function(t){var n,r,i,s,o;for(this.base.front=this.front,o=this.properties,n=o.length&&null!=this.base.cached?this.base.cached:this.base.compileToFragments(t,o.length?W:null),o.length&&mt.test(Xt(n))&&n.push(this.makeCode(\".\")),r=0,i=o.length;r<i;r++){var u;s=o[r],(u=n).push.apply(u,_toConsumableArray(s.compileToFragments(t)))}return n}},{key:\"unfoldSoak\",value:function(n){var r=this;return null==this.unfoldedSoak?this.unfoldedSoak=function(){var e,i,s,u,a,f,l,c,h;if(s=r.base.unfoldSoak(n),s){var p;return(p=s.body.properties).push.apply(p,_toConsumableArray(r.properties)),s}for(c=r.properties,i=u=0,a=c.length;u<a;i=++u)if(f=c[i],!!f.soak)return f.soak=!1,e=new t(r.base,r.properties.slice(0,i)),h=new t(r.base,r.properties.slice(i)),e.shouldCache()&&(l=new _(n.scope.freeVariable(\"ref\")),e=new ft(new o(l,e)),h.base=l),new D(new b(e),h,{soak:!0});return!1}():this.unfoldedSoak}},{key:\"eachName\",value:function(t){return this.hasProperties()?t(this):this.base.isAssignable()?this.base.eachName(t):this.error(\"tried to assign to unassignable value\")}}]),t}(a);return e.prototype.children=[\"base\",\"properties\"],e}.call(this),e.HereComment=O=function(e){function n(e){var t=e.content,r=e.newLine,i=e.unshift;_classCallCheck(this,n);var s=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return s.content=t,s.newLine=r,s.unshift=i,s}return _inherits(n,e),_createClass(n,[{key:\"compileNode\",value:function(){var n,r,i,s,o,u,a,f,l;if(f=0<=t.call(this.content,\"\\n\"),r=/\\n\\s*[#|\\*]/.test(this.content),r&&(this.content=this.content.replace(/^([ \\t]*)#(?=\\s)/gm,\" *\")),f){for(s=\"\",l=this.content.split(\"\\n\"),i=0,u=l.length;i<u;i++)a=l[i],o=/^\\s*/.exec(a)[0],o.length>s.length&&(s=o);this.content=this.content.replace(RegExp(\"^(\"+o+\")\",\"gm\"),\"\")}return this.content=\"/*\"+this.content+(r?\" \":\"\")+\"*/\",n=this.makeCode(this.content),n.newLine=this.newLine,n.unshift=this.unshift,n.multiline=f,n.isComment=n.isHereComment=!0,n}}]),n}(a),e.LineComment=Q=function(e){function t(e){var n=e.content,r=e.newLine,i=e.unshift;_classCallCheck(this,t);var s=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return s.content=n,s.newLine=r,s.unshift=i,s}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(){var t;return t=this.makeCode(/^\\s*$/.test(this.content)?\"\":\"//\"+this.content),t.newLine=this.newLine,t.unshift=this.unshift,t.trail=!this.newLine&&!this.unshift,t.isComment=t.isLineComment=!0,t}}]),t}(a),e.Call=h=function(){var e=function(e){function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],r=arguments[2],i=arguments[3];_classCallCheck(this,t);var s=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o;return s.variable=e,s.args=n,s.soak=r,s.token=i,s.isNew=!1,s.variable instanceof Pt&&s.variable.isNotCallable()&&s.variable.error(\"literal is not a function\"),s.csx=s.variable.base instanceof c,\"RegExp\"===(null==(o=s.variable.base)?void 0:o.value)&&0!==s.args.length&&Zt(s.variable,s.args[0]),s}return _inherits(t,e),_createClass(t,[{key:\"updateLocationDataIfMissing\",value:function(n){var r,i;return this.locationData&&this.needsUpdatedStartLocation&&(this.locationData.first_line=n.first_line,this.locationData.first_column=n.first_column,r=(null==(i=this.variable)?void 0:i.base)||this.variable,r.needsUpdatedStartLocation&&(this.variable.locationData.first_line=n.first_line,this.variable.locationData.first_column=n.first_column,r.updateLocationDataIfMissing(n)),delete this.needsUpdatedStartLocation),_get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"updateLocationDataIfMissing\",this).call(this,n)}},{key:\"newInstance\",value:function(){var n,r;return n=(null==(r=this.variable)?void 0:r.base)||this.variable,n instanceof t&&!n.isNew?n.newInstance():this.isNew=!0,this.needsUpdatedStartLocation=!0,this}},{key:\"unfoldSoak\",value:function(n){var r,i,s,o,u,a,f,l;if(this.soak){if(this.variable instanceof xt)o=new G(this.variable.compile(n)),l=new Pt(o),null==this.variable.accessor&&this.variable.error(\"Unsupported reference to 'super'\");else{if(i=on(n,this,\"variable\"))return i;var c=(new Pt(this.variable)).cacheReference(n),h=_slicedToArray(c,2);o=h[0],l=h[1]}return l=new t(l,this.args),l.isNew=this.isNew,o=new G(\"typeof \"+o.compile(n)+' === \"function\"'),new D(o,new Pt(l),{soak:!0})}for(r=this,a=[];;){if(r.variable instanceof t){a.push(r),r=r.variable;continue}if(!(r.variable instanceof Pt))break;if(a.push(r),!((r=r.variable.base)instanceof t))break}for(f=a.reverse(),s=0,u=f.length;s<u;s++)r=f[s],i&&(r.variable instanceof t?r.variable=i:r.variable.base=i),i=on(n,r,\"variable\");return i}},{key:\"compileNode\",value:function(t){var n,r,s,o,u,a,f,l,c,h,p,v,m,g,y;if(this.csx)return this.compileCSX(t);if(null!=(p=this.variable)&&(p.front=this.front),f=[],y=(null==(v=this.variable)||null==(m=v.properties)?void 0:m[0])instanceof i,o=function(){var e,t,n,r;for(n=this.args||[],r=[],e=0,t=n.length;e<t;e++)s=n[e],s instanceof d&&r.push(s);return r}.call(this),0<o.length&&y&&!this.variable.base.cached){var b=this.variable.base.cache(t,W,function(){return!1}),w=_slicedToArray(b,1);a=w[0],this.variable.base.cached=a}for(g=this.args,u=c=0,h=g.length;c<h;u=++c){var E;s=g[u],u&&f.push(this.makeCode(\", \")),(E=f).push.apply(E,_toConsumableArray(s.compileToFragments(t,V)))}return l=[],this.isNew&&(this.variable instanceof xt&&this.variable.error(\"Unsupported reference to 'super'\"),l.push(this.makeCode(\"new \"))),(n=l).push.apply(n,_toConsumableArray(this.variable.compileToFragments(t,W))),(r=l).push.apply(r,[this.makeCode(\"(\")].concat(_toConsumableArray(f),[this.makeCode(\")\")])),l}},{key:\"compileCSX\",value:function(t){var n=_slicedToArray(this.args,2),r,i,o,u,a,f,l,c,h,p,d;if(u=n[0],a=n[1],u.base.csx=!0,null!=a&&(a.base.csx=!0),f=[this.makeCode(\"<\")],(r=f).push.apply(r,_toConsumableArray(d=this.variable.compileToFragments(t,W))),u.base instanceof s)for(p=u.base.objects,l=0,c=p.length;l<c;l++){var v;h=p[l],i=h.base,o=(null==i?void 0:i.properties)||[],(i instanceof ot||i instanceof _)&&(!(i instanceof ot)||i.generated||!(1<o.length)&&o[0]instanceof bt)||h.error('Unexpected token. Allowed CSX attributes are: id=\"val\", src={source}, {props...} or attribute.'),h.base instanceof ot&&(h.base.csx=!0),f.push(this.makeCode(\" \")),(v=f).push.apply(v,_toConsumableArray(h.compileToFragments(t,J)))}if(a){var m,g;f.push(this.makeCode(\">\")),(m=f).push.apply(m,_toConsumableArray(a.compileNode(t,V))),(g=f).push.apply(g,[this.makeCode(\"</\")].concat(_toConsumableArray(d),[this.makeCode(\">\")]))}else f.push(this.makeCode(\" />\"));return f}}]),t}(a);return e.prototype.children=[\"variable\",\"args\"],e}.call(this),e.SuperCall=Tt=function(){var e=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:\"isStatement\",value:function(t){var n;return(null==(n=this.expressions)?void 0:n.length)&&t.level===K}},{key:\"compileNode\",value:function(n){var r,i,s,o;if(null==(i=this.expressions)||!i.length)return _get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"compileNode\",this).call(this,n);if(o=new G(Xt(_get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"compileNode\",this).call(this,n))),s=new f(this.expressions.slice()),n.level>K){var u=o.cache(n,null,Bt),a=_slicedToArray(u,2);o=a[0],r=a[1],s.push(r)}return s.unshift(o),s.compileToFragments(n,n.level===K?n.level:V)}}]),t}(h);return e.prototype.children=h.prototype.children.concat([\"expressions\"]),e}.call(this),e.Super=xt=function(){var e=function(e){function t(e){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.accessor=e,n}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n,r,i,s,u,a,f,l;if(r=t.scope.namedMethod(),(null==r?void 0:r.isMethod)||this.error(\"cannot use super outside of an instance method\"),null==r.ctor&&null==this.accessor){var c=r;i=c.name,l=c.variable,(i.shouldCache()||i instanceof R&&i.index.isAssignable())&&(s=new _(t.scope.parent.freeVariable(\"name\")),i.index=new o(s,i.index)),this.accessor=null==s?i:new R(s)}return(null==(u=this.accessor)||null==(a=u.name)?void 0:a.comments)&&(f=this.accessor.name.comments,delete this.accessor.name.comments),n=(new Pt(new G(\"super\"),this.accessor?[this.accessor]:[])).compileToFragments(t),f&&It(f,this.accessor.name),n}}]),t}(a);return e.prototype.children=[\"accessor\"],e}.call(this),e.RegexWithInterpolations=dt=function(e){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,new Pt(new _(\"RegExp\")),e,!1))}return _inherits(t,e),t}(h),e.TaggedTemplateCall=Lt=function(e){function t(e,n,r){return _classCallCheck(this,t),n instanceof Et&&(n=new St(f.wrap([new Pt(n)]))),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,[n],r))}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){return this.variable.compileToFragments(t,W).concat(this.args[0].compileToFragments(t,V))}}]),t}(h),e.Extends=k=function(){var e=function(e){function t(e,n){_classCallCheck(this,t);var r=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.child=e,r.parent=n,r}return _inherits(t,e),_createClass(t,[{key:\"compileToFragments\",value:function(t){return(new h(new Pt(new G(an(\"extend\",t))),[this.child,this.parent])).compileToFragments(t)}}]),t}(a);return e.prototype.children=[\"child\",\"parent\"],e}.call(this),e.Access=i=function(){var e=function(e){function t(e,n){_classCallCheck(this,t);var r=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.name=e,r.soak=\"soak\"===n,r}return _inherits(t,e),_createClass(t,[{key:\"compileToFragments\",value:function(t){var n,r;return n=this.name.compileToFragments(t),r=this.name.unwrap(),r instanceof ct?[this.makeCode(\".\")].concat(_toConsumableArray(n)):[this.makeCode(\"[\")].concat(_toConsumableArray(n),[this.makeCode(\"]\")])}}]),t}(a);return e.prototype.children=[\"name\"],e.prototype.shouldCache=nt,e}.call(this),e.Index=R=function(){var e=function(e){function t(e){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.index=e,n}return _inherits(t,e),_createClass(t,[{key:\"compileToFragments\",value:function(t){return[].concat(this.makeCode(\"[\"),this.index.compileToFragments(t,J),this.makeCode(\"]\"))}},{key:\"shouldCache\",value:function(){return this.index.shouldCache()}}]),t}(a);return e.prototype.children=[\"index\"],e}.call(this),e.Range=ht=function(){var e=function(e){function t(e,n,r){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.from=e,i.to=n,i.exclusive=\"exclusive\"===r,i.equals=i.exclusive?\"\":\"=\",i}return _inherits(t,e),_createClass(t,[{key:\"compileVariables\",value:function(t){var n,r;t=Yt(t,{top:!0}),n=Rt(t,\"shouldCache\");var i=this.cacheToCodeFragments(this.from.cache(t,V,n)),s=_slicedToArray(i,2);this.fromC=s[0],this.fromVar=s[1];var o=this.cacheToCodeFragments(this.to.cache(t,V,n)),u=_slicedToArray(o,2);if(this.toC=u[0],this.toVar=u[1],r=Rt(t,\"step\")){var a=this.cacheToCodeFragments(r.cache(t,V,n)),f=_slicedToArray(a,2);this.step=f[0],this.stepVar=f[1]}return this.fromNum=this.from.isNumber()?+this.fromVar:null,this.toNum=this.to.isNumber()?+this.toVar:null,this.stepNum=(null==r?void 0:r.isNumber())?+this.stepVar:null}},{key:\"compileNode\",value:function(t){var n,r,i,s,o,u,a,f,l,c,h,p,d,v,m;if(this.fromVar||this.compileVariables(t),!t.index)return this.compileArray(t);a=null!=this.fromNum&&null!=this.toNum,o=Rt(t,\"index\"),u=Rt(t,\"name\"),c=u&&u!==o,m=a&&!c?\"var \"+o+\" = \"+this.fromC:o+\" = \"+this.fromC,this.toC!==this.toVar&&(m+=\", \"+this.toC),this.step!==this.stepVar&&(m+=\", \"+this.step),l=o+\" <\"+this.equals,s=o+\" >\"+this.equals;var g=[this.fromNum,this.toNum];return i=g[0],d=g[1],h=this.stepNum?this.stepNum+\" !== 0\":this.stepVar+\" !== 0\",r=a?null==this.step?i<=d?l+\" \"+d:s+\" \"+d:(f=i+\" <= \"+o+\" && \"+l+\" \"+d,v=i+\" >= \"+o+\" && \"+s+\" \"+d,i<=d?h+\" && \"+f:h+\" && \"+v):(f=this.fromVar+\" <= \"+o+\" && \"+l+\" \"+this.toVar,v=this.fromVar+\" >= \"+o+\" && \"+s+\" \"+this.toVar,h+\" && (\"+this.fromVar+\" <= \"+this.toVar+\" ? \"+f+\" : \"+v+\")\"),n=this.stepVar?this.stepVar+\" > 0\":this.fromVar+\" <= \"+this.toVar,p=this.stepVar?o+\" += \"+this.stepVar:a?c?i<=d?\"++\"+o:\"--\"+o:i<=d?o+\"++\":o+\"--\":c?n+\" ? ++\"+o+\" : --\"+o:n+\" ? \"+o+\"++ : \"+o+\"--\",c&&(m=u+\" = \"+m),c&&(p=u+\" = \"+p),[this.makeCode(m+\"; \"+r+\"; \"+p)]}},{key:\"compileArray\",value:function(t){var n,r,i,s,o,u,a,f,l,c,h,p,d;return(a=null!=this.fromNum&&null!=this.toNum,a&&20>=_Mathabs(this.fromNum-this.toNum))?(c=function(){for(var e=[],t=h=this.fromNum,n=this.toNum;h<=n?t<=n:t>=n;h<=n?t++:t--)e.push(t);return e}.apply(this),this.exclusive&&c.pop(),[this.makeCode(\"[\"+c.join(\", \")+\"]\")]):(u=this.tab+Ct,o=t.scope.freeVariable(\"i\",{single:!0,reserve:!1}),p=t.scope.freeVariable(\"results\",{reserve:!1}),l=\"\\n\"+u+\"var \"+p+\" = [];\",a?(t.index=o,r=Xt(this.compileNode(t))):(d=o+\" = \"+this.fromC+(this.toC===this.toVar?\"\":\", \"+this.toC),i=this.fromVar+\" <= \"+this.toVar,r=\"var \"+d+\"; \"+i+\" ? \"+o+\" <\"+this.equals+\" \"+this.toVar+\" : \"+o+\" >\"+this.equals+\" \"+this.toVar+\"; \"+i+\" ? \"+o+\"++ : \"+o+\"--\"),f=\"{ \"+p+\".push(\"+o+\"); }\\n\"+u+\"return \"+p+\";\\n\"+t.indent,s=function(e){return null==e?void 0:e.contains(Jt)},(s(this.from)||s(this.to))&&(n=\", arguments\"),[this.makeCode(\"(function() {\"+l+\"\\n\"+u+\"for (\"+r+\")\"+f+\"}).apply(this\"+(null==n?\"\":n)+\")\")])}}]),t}(a);return e.prototype.children=[\"from\",\"to\"],e}.call(this),e.Slice=yt=function(){var e=function(e){function t(e){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.range=e,n}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n=this.range,r,i,s,o,u,a;return u=n.to,s=n.from,(null==s?void 0:s.shouldCache())&&(s=new Pt(new ft(s))),(null==u?void 0:u.shouldCache())&&(u=new Pt(new ft(u))),o=(null==s?void 0:s.compileToFragments(t,J))||[this.makeCode(\"0\")],u&&(r=u.compileToFragments(t,J),i=Xt(r),(this.range.exclusive||-1!=+i)&&(a=\", \"+(this.range.exclusive?i:u.isNumber()?\"\"+(+i+1):(r=u.compileToFragments(t,W),\"+\"+Xt(r)+\" + 1 || 9e9\")))),[this.makeCode(\".slice(\"+Xt(o)+(a||\"\")+\")\")]}}]),t}(a);return e.prototype.children=[\"range\"],e}.call(this),e.Obj=ot=function(){var e=function(e){function t(e){var n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.generated=n,i.lhs=r,i.objects=i.properties=e||[],i}return _inherits(t,e),_createClass(t,[{key:\"isAssignable\",value:function(){var t,n,r,i,s;for(s=this.properties,t=0,n=s.length;t<n;t++)if(i=s[t],r=Qt(i.unwrapAll().value),r&&i.error(r),i instanceof o&&\"object\"===i.context&&(i=i.value),!i.isAssignable())return!1;return!0}},{key:\"shouldCache\",value:function(){return!this.isAssignable()}},{key:\"hasSplat\",value:function(){var t,n,r,i;for(i=this.properties,t=0,n=i.length;t<n;t++)if(r=i[t],r instanceof bt)return!0;return!1}},{key:\"compileNode\",value:function(n){var r,i,u,a,f,l,c,h,p,d,v,g,y,b,w,E,S,x,T,N,C,k;if(x=this.properties,this.generated)for(l=0,g=x.length;l<g;l++)E=x[l],E instanceof Pt&&E.error(\"cannot have an implicit value in an implicit object\");if(this.hasSplat()&&!this.csx)return this.compileSpread(n);if(u=n.indent+=Ct,v=this.lastNode(this.properties),this.csx)return this.compileCSXAttributes(n);if(this.lhs)for(h=0,y=x.length;h<y;h++)if(S=x[h],S instanceof o){var L=S;k=L.value,C=k.unwrapAll(),C instanceof s||C instanceof t?C.lhs=!0:C instanceof o&&(C.nestedLhs=!0)}for(f=!0,N=this.properties,d=0,b=N.length;d<b;d++)S=N[d],S instanceof o&&\"object\"===S.context&&(f=!1);for(r=[],r.push(this.makeCode(f?\"\":\"\\n\")),i=T=0,w=x.length;T<w;i=++T){var A;if(S=x[i],c=i===x.length-1?\"\":f?\", \":S===v?\"\\n\":\",\\n\",a=f?\"\":u,p=S instanceof o&&\"object\"===S.context?S.variable:S instanceof o?(this.lhs?void 0:S.operatorToken.error(\"unexpected \"+S.operatorToken.value),S.variable):S,p instanceof Pt&&p.hasProperties()&&((\"object\"===S.context||!p.this)&&p.error(\"invalid object key\"),p=p.properties[0].name,S=new o(p,S,\"object\")),p===S)if(S.shouldCache()){var O=S.base.cache(n),M=_slicedToArray(O,2);p=M[0],k=M[1],p instanceof _&&(p=new ct(p.value)),S=new o(p,k,\"object\")}else if(p instanceof Pt&&p.base instanceof m)if(S.base.value.shouldCache()){var D=S.base.value.cache(n),P=_slicedToArray(D,2);p=P[0],k=P[1],p instanceof _&&(p=new m(p.value)),S=new o(p,k,\"object\")}else S=new o(p,S.base.value,\"object\");else\"function\"==typeof S.bareLiteral&&S.bareLiteral(_)||(S=new o(S,S,\"object\"));a&&r.push(this.makeCode(a)),(A=r).push.apply(A,_toConsumableArray(S.compileToFragments(n,K))),c&&r.push(this.makeCode(c))}return r.push(this.makeCode(f?\"\":\"\\n\"+this.tab)),r=this.wrapInBraces(r),this.front?this.wrapInParentheses(r):r}},{key:\"assigns\",value:function(t){var n,r,i,s;for(s=this.properties,n=0,r=s.length;n<r;n++)if(i=s[n],i.assigns(t))return!0;return!1}},{key:\"eachName\",value:function(t){var n,r,i,s,u;for(s=this.properties,u=[],n=0,r=s.length;n<r;n++)i=s[n],i instanceof o&&\"object\"===i.context&&(i=i.value),i=i.unwrapAll(),null==i.eachName?u.push(void 0):u.push(i.eachName(t));return u}},{key:\"compileSpread\",value:function(n){var r,i,s,o,u,a,f,l,c;for(f=this.properties,c=[],a=[],l=[],i=function(){if(a.length&&l.push(new t(a)),c.length){var e;(e=l).push.apply(e,_toConsumableArray(c))}return c=[],a=[]},s=0,o=f.length;s<o;s++)u=f[s],u instanceof bt?(c.push(new Pt(u.name)),i()):a.push(u);return i(),l[0]instanceof t||l.unshift(new t),r=new Pt(new G(an(\"_extends\",n))),(new h(r,l)).compileToFragments(n)}},{key:\"compileCSXAttributes\",value:function(t){var n,r,i,s,o,u,a;for(a=this.properties,n=[],r=i=0,o=a.length;i<o;r=++i){var f;u=a[r],u.csx=!0,s=r===a.length-1?\"\":\" \",u instanceof bt&&(u=new G(\"{\"+u.compile(t)+\"}\")),(f=n).push.apply(f,_toConsumableArray(u.compileToFragments(t,K))),n.push(this.makeCode(s))}return this.front?this.wrapInParentheses(n):n}}]),t}(a);return e.prototype.children=[\"properties\"],e}.call(this),e.Arr=s=function(){var e=function(e){function n(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,n);var r=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return r.lhs=t,r.objects=e||[],r}return _inherits(n,e),_createClass(n,[{key:\"hasElision\",value:function(){var t,n,r,i;for(i=this.objects,t=0,n=i.length;t<n;t++)if(r=i[t],r instanceof g)return!0;return!1}},{key:\"isAssignable\",value:function(){var t,n,r,i,s;if(!this.objects.length)return!1;for(s=this.objects,t=n=0,r=s.length;n<r;t=++n){if(i=s[t],i instanceof bt&&t+1!==this.objects.length)return!1;if(!i.isAssignable()||!!i.isAtomic&&!i.isAtomic())return!1}return!0}},{key:\"shouldCache\",value:function(){return!this.isAssignable()}},{key:\"compileNode\",value:function(r){var i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k;if(!this.objects.length)return[this.makeCode(\"[]\")];for(r.indent+=Ct,a=function(e){return\",\"===Xt(e).trim()},x=!1,i=[],C=this.objects,E=h=0,v=C.length;h<v;E=++h)w=C[E],k=w.unwrapAll(),k.comments&&0===k.comments.filter(function(e){return!e.here}).length&&(k.includeCommentFragments=Bt),this.lhs&&(k instanceof n||k instanceof ot)&&(k.lhs=!0);for(s=function(){var e,t,n,i;for(n=this.objects,i=[],e=0,t=n.length;e<t;e++)w=n[e],i.push(w.compileToFragments(r,V));return i}.call(this),S=s.length,l=!1,c=p=0,m=s.length;p<m;c=++p){var L;for(f=s[c],d=0,g=f.length;d<g;d++)o=f[d],o.isHereComment?o.code=o.code.trim():0!==c&&!1===l&&Vt(o)&&(l=!0);0!==c&&x&&(!a(f)||c===S-1)&&i.push(this.makeCode(\", \")),x=x||!a(f),(L=i).push.apply(L,_toConsumableArray(f))}if(l||0<=t.call(Xt(i),\"\\n\")){for(u=T=0,y=i.length;T<y;u=++T)o=i[u],o.isHereComment?o.code=en(o.code,r.indent,!1)+\"\\n\"+r.indent:\", \"===o.code&&(null==o||!o.isElision)&&(o.code=\",\\n\"+r.indent);i.unshift(this.makeCode(\"[\\n\"+r.indent)),i.push(this.makeCode(\"\\n\"+this.tab+\"]\"))}else{for(N=0,b=i.length;N<b;N++)o=i[N],o.isHereComment&&(o.code+=\" \");i.unshift(this.makeCode(\"[\")),i.push(this.makeCode(\"]\"))}return i}},{key:\"assigns\",value:function(t){var n,r,i,s;for(s=this.objects,n=0,r=s.length;n<r;n++)if(i=s[n],i.assigns(t))return!0;return!1}},{key:\"eachName\",value:function(t){var n,r,i,s,o;for(s=this.objects,o=[],n=0,r=s.length;n<r;n++)i=s[n],i=i.unwrapAll(),o.push(i.eachName(t));return o}}]),n}(a);return e.prototype.children=[\"objects\"],e}.call(this),e.Class=p=function(){var e=function(e){function s(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new f;_classCallCheck(this,s);var r=_possibleConstructorReturn(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return r.variable=e,r.parent=t,r.body=n,r}return _inherits(s,e),_createClass(s,[{key:\"compileNode\",value:function(t){var n,r,i;if(this.name=this.determineName(),n=this.walkBody(),this.parent instanceof Pt&&!this.parent.hasProperties()&&(i=this.parent.base.value),this.hasNameClash=null!=this.name&&this.name===i,r=this,n||this.hasNameClash?r=new y(r,n):null==this.name&&t.level===K&&(r=new ft(r)),this.boundMethods.length&&this.parent&&(null==this.variable&&(this.variable=new _(t.scope.freeVariable(\"_class\"))),null==this.variableRef)){var s=this.variable.cache(t),u=_slicedToArray(s,2);this.variable=u[0],this.variableRef=u[1]}this.variable&&(r=new o(this.variable,r,null,{moduleDeclaration:this.moduleDeclaration})),this.compileNode=this.compileClassDeclaration;try{return r.compileToFragments(t)}finally{delete this.compileNode}}},{key:\"compileClassDeclaration\",value:function(t){var n,r,i;if((this.externalCtor||this.boundMethods.length)&&null==this.ctor&&(this.ctor=this.makeDefaultConstructor()),null!=(n=this.ctor)&&(n.noReturn=!0),this.boundMethods.length&&this.proxyBoundMethods(),t.indent+=Ct,i=[],i.push(this.makeCode(\"class \")),this.name&&i.push(this.makeCode(this.name)),null!=(null==(r=this.variable)?void 0:r.comments)&&this.compileCommentFragments(t,this.variable,i),this.name&&i.push(this.makeCode(\" \")),this.parent){var s;(s=i).push.apply(s,[this.makeCode(\"extends \")].concat(_toConsumableArray(this.parent.compileToFragments(t)),[this.makeCode(\" \")]))}if(i.push(this.makeCode(\"{\")),!this.body.isEmpty()){var o;this.body.spaced=!0,i.push(this.makeCode(\"\\n\")),(o=i).push.apply(o,_toConsumableArray(this.body.compileToFragments(t,K))),i.push(this.makeCode(\"\\n\"+this.tab))}return i.push(this.makeCode(\"}\")),i}},{key:\"determineName\",value:function(){var n,s,o,u,a,f,l;return this.variable?(f=this.variable.properties,n=r.call(f,-1),s=_slicedToArray(n,1),l=s[0],n,a=l?l instanceof i&&l.name:this.variable.base,a instanceof _||a instanceof ct)?(u=a.value,l||(o=Qt(u),o&&this.variable.error(o)),0<=t.call(z,u)?\"_\"+u:u):null:null}},{key:\"walkBody\",value:function(){var t,r,i,s,o,u,a,l,c,h,p,v,m,g,y,b,w,E;for(this.ctor=null,this.boundMethods=[],i=null,l=[],o=this.body.expressions,a=0,w=o.slice(),h=0,v=w.length;h<v;h++)if(s=w[h],s instanceof Pt&&s.isObject(!0)){for(y=s.base.properties,u=[],r=0,E=0,b=function(){if(r>E)return u.push(new Pt(new ot(y.slice(E,r),!0)))};t=y[r];)(c=this.addInitializerExpression(t))&&(b(),u.push(c),l.push(c),E=r+1),r++;b(),n.apply(o,[a,a-a+1].concat(u)),u,a+=u.length}else(c=this.addInitializerExpression(s))&&(l.push(c),o[a]=c),a+=1;for(p=0,m=l.length;p<m;p++)g=l[p],g instanceof d&&(g.ctor?(this.ctor&&g.error(\"Cannot define more than one constructor in a class\"),this.ctor=g):g.isStatic&&g.bound?g.context=this.name:g.bound&&this.boundMethods.push(g));if(l.length!==o.length)return this.body.expressions=function(){var e,t,n;for(n=[],e=0,t=l.length;e<t;e++)s=l[e],n.push(s.hoist());return n}(),new f(o)}},{key:\"addInitializerExpression\",value:function(t){return t.unwrapAll()instanceof lt?t:this.validInitializerMethod(t)?this.addInitializerMethod(t):null}},{key:\"validInitializerMethod\",value:function(t){return t instanceof o&&t.value instanceof d&&(\"object\"===t.context&&!t.variable.hasProperties()||t.variable.looksStatic(this.name)&&(this.name||!t.value.bound))}},{key:\"addInitializerMethod\",value:function(t){var n,r,s;return s=t.variable,n=t.value,n.isMethod=!0,n.isStatic=s.looksStatic(this.name),n.isStatic?n.name=s.properties[0]:(r=s.base,n.name=new(r.shouldCache()?R:i)(r),n.name.updateLocationDataIfMissing(r.locationData),\"constructor\"===r.value&&(n.ctor=this.parent?\"derived\":\"base\"),n.bound&&n.ctor&&n.error(\"Cannot define a constructor as a bound (fat arrow) function\")),n}},{key:\"makeDefaultConstructor\",value:function(){var t,n,r;return r=this.addInitializerMethod(new o(new Pt(new ct(\"constructor\")),new d)),this.body.unshift(r),this.parent&&r.body.push(new Tt(new xt,[new bt(new _(\"arguments\"))])),this.externalCtor&&(n=new Pt(this.externalCtor,[new i(new ct(\"apply\"))]),t=[new At,new _(\"arguments\")],r.body.push(new h(n,t)),r.body.makeReturn()),r}},{key:\"proxyBoundMethods\",value:function(){var t,n;return this.ctor.thisAssignments=function(){var e,r,s,u;for(s=this.boundMethods,u=[],e=0,r=s.length;e<r;e++)t=s[e],this.parent&&(t.classVariable=this.variableRef),n=new Pt(new At,[t.name]),u.push(new o(n,new h(new Pt(n,[new i(new ct(\"bind\"))]),[new At])));return u}.call(this),null}}]),s}(a);return e.prototype.children=[\"variable\",\"parent\",\"body\"],e}.call(this),e.ExecutableClassBody=y=function(){var e=function(e){function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new f;_classCallCheck(this,t);var r=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.class=e,r.body=n,r}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n,r,s,u,a,f,l,c,p,v,m,g;return(l=this.body.jumps())&&l.error(\"Class bodies cannot contain pure statements\"),(s=this.body.contains(Jt))&&s.error(\"Class bodies shouldn't reference arguments\"),p=[],r=[new At],g=new d(p,this.body),c=new ft(new h(new Pt(g,[new i(new ct(\"call\"))]),r)),this.body.spaced=!0,t.classScope=g.makeScope(t.scope),this.name=null==(m=this.class.name)?t.classScope.freeVariable(this.defaultClassVariableName):m,f=new _(this.name),u=this.walkBody(),this.setContext(),this.class.hasNameClash&&(v=new _(t.classScope.freeVariable(\"superClass\")),g.params.push(new at(v)),r.push(this.class.parent),this.class.parent=v),this.externalCtor&&(a=new _(t.classScope.freeVariable(\"ctor\",{reserve:!1})),this.class.externalCtor=a,this.externalCtor.variable.base=a),this.name===this.class.name?this.body.expressions.unshift(this.class):this.body.expressions.unshift(new o(new _(this.name),this.class)),(n=this.body.expressions).unshift.apply(n,_toConsumableArray(u)),this.body.push(f),c.compileToFragments(t)}},{key:\"walkBody\",value:function(){var t=this,n,r,i;for(n=[],i=0;(r=this.body.expressions[i])&&!!(r instanceof Pt&&r.isString());)if(r.hoisted)i++;else{var s;(s=n).push.apply(s,_toConsumableArray(this.body.expressions.splice(i,1)))}return this.traverseChildren(!1,function(e){var n,r,i,s,u,a;if(e instanceof p||e instanceof M)return!1;if(n=!0,e instanceof f){for(a=e.expressions,r=i=0,s=a.length;i<s;r=++i)u=a[r],u instanceof Pt&&u.isObject(!0)?(n=!1,e.expressions[r]=t.addProperties(u.base.properties)):u instanceof o&&u.variable.looksStatic(t.name)&&(u.value.isStatic=!0);e.expressions=Wt(e.expressions)}return n}),n}},{key:\"setContext\",value:function(){var t=this;return this.body.traverseChildren(!1,function(e){return e instanceof At?e.value=t.name:e instanceof d&&e.bound&&e.isStatic?e.context=t.name:void 0})}},{key:\"addProperties\",value:function(t){var n,r,s,u,a,f,l;return a=function(){var e,a,c;for(c=[],e=0,a=t.length;e<a;e++)n=t[e],l=n.variable,r=null==l?void 0:l.base,f=n.value,delete n.context,\"constructor\"===r.value?(f instanceof d&&r.error(\"constructors must be defined at the top level of a class body\"),n=this.externalCtor=new o(new Pt,f)):n.variable.this?n.value instanceof d&&(n.value.isStatic=!0):(s=new(r.shouldCache()?R:i)(r),u=new i(new ct(\"prototype\")),l=new Pt(new At,[u,s]),n.variable=l),c.push(n);return c}.call(this),qt(a)}}]),t}(a);return e.prototype.children=[\"class\",\"body\"],e.prototype.defaultClassVariableName=\"_Class\",e}.call(this),e.ModuleDeclaration=Y=function(){var e=function(e){function t(e,n){_classCallCheck(this,t);var r=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.clause=e,r.source=n,r.checkSource(),r}return _inherits(t,e),_createClass(t,[{key:\"checkSource\",value:function(){if(null!=this.source&&this.source instanceof St)return this.source.error(\"the name of the module to be imported from must be an uninterpolated string\")}},{key:\"checkScope\",value:function(t,n){if(0!==t.indent.length)return this.error(n+\" statements must be at top-level scope\")}}]),t}(a);return e.prototype.children=[\"clause\",\"source\"],e.prototype.isStatement=Bt,e.prototype.jumps=kt,e.prototype.makeReturn=kt,e}.call(this),e.ImportDeclaration=H=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n,r;if(this.checkScope(t,\"import\"),t.importedSymbols=[],n=[],n.push(this.makeCode(this.tab+\"import \")),null!=this.clause){var i;(i=n).push.apply(i,_toConsumableArray(this.clause.compileNode(t)))}return null!=(null==(r=this.source)?void 0:r.value)&&(null!==this.clause&&n.push(this.makeCode(\" from \")),n.push(this.makeCode(this.source.value))),n.push(this.makeCode(\";\")),n}}]),t}(Y),e.ImportClause=P=function(){var e=function(e){function t(e,n){_classCallCheck(this,t);var r=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.defaultBinding=e,r.namedImports=n,r}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n;if(n=[],null!=this.defaultBinding){var r;(r=n).push.apply(r,_toConsumableArray(this.defaultBinding.compileNode(t))),null!=this.namedImports&&n.push(this.makeCode(\", \"))}if(null!=this.namedImports){var i;(i=n).push.apply(i,_toConsumableArray(this.namedImports.compileNode(t)))}return n}}]),t}(a);return e.prototype.children=[\"defaultBinding\",\"namedImports\"],e}.call(this),e.ExportDeclaration=S=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n,r;return this.checkScope(t,\"export\"),n=[],n.push(this.makeCode(this.tab+\"export \")),this instanceof x&&n.push(this.makeCode(\"default \")),!(this instanceof x)&&(this.clause instanceof o||this.clause instanceof p)&&(this.clause instanceof p&&!this.clause.variable&&this.clause.error(\"anonymous classes cannot be exported\"),n.push(this.makeCode(\"var \")),this.clause.moduleDeclaration=\"export\"),n=null!=this.clause.body&&this.clause.body instanceof f?n.concat(this.clause.compileToFragments(t,K)):n.concat(this.clause.compileNode(t)),null!=(null==(r=this.source)?void 0:r.value)&&n.push(this.makeCode(\" from \"+this.source.value)),n.push(this.makeCode(\";\")),n}}]),t}(Y),e.ExportNamedDeclaration=T=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(S),e.ExportDefaultDeclaration=x=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(S),e.ExportAllDeclaration=E=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(S),e.ModuleSpecifierList=et=function(){var e=function(e){function t(e){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.specifiers=e,n}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n,r,i,s,o,u,a;if(n=[],t.indent+=Ct,r=function(){var e,n,r,i;for(r=this.specifiers,i=[],e=0,n=r.length;e<n;e++)a=r[e],i.push(a.compileToFragments(t,V));return i}.call(this),0!==this.specifiers.length){for(n.push(this.makeCode(\"{\\n\"+t.indent)),s=o=0,u=r.length;o<u;s=++o){var f;i=r[s],s&&n.push(this.makeCode(\",\\n\"+t.indent)),(f=n).push.apply(f,_toConsumableArray(i))}n.push(this.makeCode(\"\\n}\"))}else n.push(this.makeCode(\"{}\"));return n}}]),t}(a);return e.prototype.children=[\"specifiers\"],e}.call(this),e.ImportSpecifierList=I=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(et),e.ExportSpecifierList=C=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(et),e.ModuleSpecifier=Z=function(){var e=function(e){function t(e,n,r){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),s,o;if(i.original=e,i.alias=n,i.moduleDeclarationType=r,i.original.comments||(null==(s=i.alias)?void 0:s.comments)){if(i.comments=[],i.original.comments){var u;(u=i.comments).push.apply(u,_toConsumableArray(i.original.comments))}if(null==(o=i.alias)?void 0:o.comments){var a;(a=i.comments).push.apply(a,_toConsumableArray(i.alias.comments))}}return i.identifier=null==i.alias?i.original.value:i.alias.value,i}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n;return t.scope.find(this.identifier,this.moduleDeclarationType),n=[],n.push(this.makeCode(this.original.value)),null!=this.alias&&n.push(this.makeCode(\" as \"+this.alias.value)),n}}]),t}(a);return e.prototype.children=[\"original\",\"alias\"],e}.call(this),e.ImportSpecifier=F=function(e){function n(e,t){return _classCallCheck(this,n),_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t,\"import\"))}return _inherits(n,e),_createClass(n,[{key:\"compileNode\",value:function(r){var i;return(i=this.identifier,0<=t.call(r.importedSymbols,i))||r.scope.check(this.identifier)?this.error(\"'\"+this.identifier+\"' has already been declared\"):r.importedSymbols.push(this.identifier),_get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"compileNode\",this).call(this,r)}}]),n}(Z),e.ImportDefaultSpecifier=B=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(F),e.ImportNamespaceSpecifier=j=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),t}(F),e.ExportSpecifier=N=function(e){function t(e,n){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,\"export\"))}return _inherits(t,e),t}(Z),e.Assign=o=function(){var e=function(e){function r(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};_classCallCheck(this,r);var s=_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return s.variable=e,s.value=t,s.context=n,s.param=i.param,s.subpattern=i.subpattern,s.operatorToken=i.operatorToken,s.moduleDeclaration=i.moduleDeclaration,s}return _inherits(r,e),_createClass(r,[{key:\"isStatement\",value:function(n){return(null==n?void 0:n.level)===K&&null!=this.context&&(this.moduleDeclaration||0<=t.call(this.context,\"?\"))}},{key:\"checkAssignability\",value:function(t,n){if(Object.prototype.hasOwnProperty.call(t.scope.positions,n.value)&&\"import\"===t.scope.variables[t.scope.positions[n.value]].type)return n.error(\"'\"+n.value+\"' is read-only\")}},{key:\"assigns\",value:function(t){return this[\"object\"===this.context?\"value\":\"variable\"].assigns(t)}},{key:\"unfoldSoak\",value:function(t){return on(t,this,\"variable\")}},{key:\"compileNode\",value:function(t){var r=this,i,s,o,u,a,f,l,c,h,v,m,g,y,b,w;if(u=this.variable instanceof Pt,u){if(this.variable.param=this.param,this.variable.isArray()||this.variable.isObject()){if(this.variable.base.lhs=!0,o=this.variable.contains(function(e){return e instanceof ot&&e.hasSplat()}),!this.variable.isAssignable()||this.variable.isArray()&&o)return this.compileDestructuring(t);if(this.variable.isObject()&&o&&(f=this.compileObjectDestruct(t)),f)return f}if(this.variable.isSplice())return this.compileSplice(t);if(\"||=\"===(h=this.context)||\"&&=\"===h||\"?=\"===h)return this.compileConditional(t);if(\"**=\"===(v=this.context)||\"//=\"===v||\"%%=\"===v)return this.compileSpecialMath(t)}if(this.context||(w=this.variable.unwrapAll(),!w.isAssignable()&&this.variable.error(\"'\"+this.variable.compile(t)+\"' can't be assigned\"),w.eachName(function(e){var n,i,s;if(\"function\"!=typeof e.hasProperties||!e.hasProperties())return(s=Qt(e.value),s&&e.error(s),r.checkAssignability(t,e),r.moduleDeclaration)?t.scope.add(e.value,r.moduleDeclaration):r.param?t.scope.add(e.value,\"alwaysDeclare\"===r.param?\"var\":\"param\"):(t.scope.find(e.value),e.comments&&!t.scope.comments[e.value]&&!(r.value instanceof p)&&e.comments.every(function(e){return e.here&&!e.multiline}))?(i=new _(e.value),i.comments=e.comments,n=[],r.compileCommentFragments(t,i,n),t.scope.comments[e.value]=n):void 0})),this.value instanceof d)if(this.value.isStatic)this.value.name=this.variable.properties[0];else if(2<=(null==(m=this.variable.properties)?void 0:m.length)){var E,S,x,T;g=this.variable.properties,E=g,S=_toArray(E),l=S.slice(0),E,x=n.call(l,-2),T=_slicedToArray(x,2),c=T[0],a=T[1],x,\"prototype\"===(null==(y=c.name)?void 0:y.value)&&(this.value.name=a)}return(this.csx&&(this.value.base.csxAttribute=!0),b=this.value.compileToFragments(t,V),s=this.variable.compileToFragments(t,V),\"object\"===this.context)?(this.variable.shouldCache()&&(s.unshift(this.makeCode(\"[\")),s.push(this.makeCode(\"]\"))),s.concat(this.makeCode(this.csx?\"=\":\": \"),b)):(i=s.concat(this.makeCode(\" \"+(this.context||\"=\")+\" \"),b),t.level>V||u&&this.variable.base instanceof ot&&!this.nestedLhs&&!0!==this.param?this.wrapInParentheses(i):i)}},{key:\"compileObjectDestruct\",value:function(t){var n,o,u,a,l,c,p,d,v,m,g,y;if(o=function(e){var n;if(e instanceof r){var i=e.variable.cache(t),s=_slicedToArray(i,2);return e.variable=s[0],n=s[1],n}return e},u=function(e){var n,i;return i=o(e),n=e instanceof r&&e.variable!==i,n||!i.isAssignable()?i:new G(\"'\"+i.compileWithoutComments(t)+\"'\")},v=function(n,a){var f,l,c,h,p,d,m,g,y,b,w;for(b=[],w=void 0,null==a.properties&&(a=new Pt(a)),l=c=0,h=n.length;c<h;l=++c)if(y=n[l],m=d=p=null,y instanceof r){if(\"function\"==typeof (f=y.value).isObject?f.isObject():void 0){if(\"object\"!==y.context)continue;p=y.value.base.properties}else if(y.value instanceof r&&y.value.variable.isObject()){p=y.value.variable.base.properties;var E=y.value.value.cache(t),S=_slicedToArray(E,2);y.value.value=S[0],m=S[1]}if(p){var x;d=new Pt(a.base,a.properties.concat([new i(o(y))])),m&&(d=new Pt(new ut(\"?\",d,m))),(x=b).push.apply(x,_toConsumableArray(v(p,d)))}}else y instanceof bt&&(null!=w&&y.error(\"multiple rest elements are disallowed in object destructuring\"),w=l,b.push({name:y.name.unwrapAll(),source:a,excludeProps:new s(function(){var e,t,r;for(r=[],e=0,t=n.length;e<t;e++)g=n[e],g!==y&&r.push(u(g));return r}())}));return null!=w&&n.splice(w,1),b},y=this.value.shouldCache()?new _(t.scope.freeVariable(\"ref\",{reserve:!1})):this.value.base,p=v(this.variable.base.properties,y),!(p&&0<p.length))return!1;var b=this.value.cache(t),w=_slicedToArray(b,2);for(this.value=w[0],g=w[1],d=new f([this]),a=0,l=p.length;a<l;a++)c=p[a],m=new h(new Pt(new G(an(\"objectWithoutKeys\",t))),[c.source,c.excludeProps]),d.push(new r(new Pt(c.name),m,null,{param:this.param?\"alwaysDeclare\":null}));return n=d.compileToFragments(t),t.level===K&&(n.shift(),n.pop()),n}},{key:\"compileDestructuring\",value:function(n){var o=this,u,a,f,l,c,p,d,v,m,y,b,E,S,x,T,N,C,k,L,A,O,M,D,P,H,B,j,F,I,q,U,z,W,X;if(U=n.level===K,z=this.value,O=this.variable.base.objects,M=O.length,0===M)return f=z.compileToFragments(n),n.level>=$?this.wrapInParentheses(f):f;var J=O,Q=_slicedToArray(J,1);return L=Q[0],1===M&&L instanceof w&&L.error(\"Destructuring assignment has no target\"),I=function(){var e,t,n;for(n=[],E=e=0,t=O.length;e<t;E=++e)L=O[E],L instanceof bt&&n.push(E);return n}(),v=function(){var e,t,n;for(n=[],E=e=0,t=O.length;e<t;E=++e)L=O[E],L instanceof w&&n.push(E);return n}(),q=[].concat(_toConsumableArray(I),_toConsumableArray(v)),1<q.length&&O[q.sort()[1]].error(\"multiple splats/expansions are disallowed in an assignment\"),N=0<(null==I?void 0:I.length),x=0<(null==v?void 0:v.length),T=this.variable.isObject(),S=this.variable.isArray(),W=z.compileToFragments(n,V),X=Xt(W),a=[],(!(z.unwrap()instanceof _)||this.variable.assigns(X))&&(P=n.scope.freeVariable(\"ref\"),a.push([this.makeCode(P+\" = \")].concat(_toConsumableArray(W))),W=[this.makeCode(P)],X=P),F=function(e){return function(t,r){var s=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o,u;return o=[new _(t),new st(r)],s&&o.push(new st(s)),u=new Pt(new _(an(e,n)),[new i(new ct(\"call\"))]),new Pt(new h(u,o))}},l=F(\"slice\"),c=F(\"splice\"),b=function(e){var t,n,r;for(r=[],E=t=0,n=e.length;t<n;E=++t)L=e[E],L.base instanceof ot&&L.base.hasSplat()&&r.push(E);return r},y=function(e){var t,n,i;for(i=[],E=t=0,n=e.length;t<n;E=++t)L=e[E],L instanceof r&&\"object\"===L.context&&i.push(E);return i},A=function(e){var t,n;for(t=0,n=e.length;t<n;t++)if(L=e[t],!L.isAssignable())return!0;return!1},p=function(e){return b(e).length||y(e).length||A(e)||1===M},k=function(e,s,u){var f,c,h,p,d,v,m,y;for(v=b(e),m=[],E=h=0,p=e.length;h<p;E=++h)if(L=e[E],!(L instanceof g)){if(L instanceof r&&\"object\"===L.context){var w=L;if(c=w.variable.base,s=w.value,s instanceof r){var S=s;s=S.variable}c=s.this?s.properties[0].name:new ct(s.unwrap().value),f=c.unwrap()instanceof ct,y=new Pt(z,[new(f?i:R)(c)])}else s=function(){switch(!1){case!(L instanceof bt):return new Pt(L.name);case 0>t.call(v,E):return new Pt(L.base);default:return L}}(),y=function(){switch(!1){case!(L instanceof bt):return l(u,E);default:return new Pt(new G(u),[new R(new st(E))])}}();d=Qt(s.unwrap().value),d&&s.error(d),m.push(a.push((new r(s,y,null,{param:o.param,subpattern:!0})).compileToFragments(n,V)))}return m},u=function(e,t,i){var u;return t=new Pt(new s(e,!0)),u=i instanceof Pt?i:new Pt(new G(i)),a.push((new r(t,u,null,{param:o.param,subpattern:!0})).compileToFragments(n,V))},D=function(e,t,n){return p(e)?k(e,t,n):u(e,t,n)},q.length?(d=q[0],C=O.slice(0,d+(N?1:0)),j=O.slice(d+1),0!==C.length&&D(C,W,X),0!==j.length&&(H=function(){switch(!1){case!N:return c(O[d].unwrapAll().value,-1*j.length);case!x:return l(X,-1*j.length)}}(),p(j)&&(B=H,H=n.scope.freeVariable(\"ref\"),a.push([this.makeCode(H+\" = \")].concat(_toConsumableArray(B.compileToFragments(n,V))))),D(j,W,H))):D(O,W,X),U||this.subpattern||a.push(W),m=this.joinFragmentArrays(a,\", \"),n.level<V?m:this.wrapInParentheses(m)}},{key:\"compileConditional\",value:function(n){var i=this.variable.cacheReference(n),s=_slicedToArray(i,2),o,u,a;return u=s[0],a=s[1],u.properties.length||!(u.base instanceof G)||u.base instanceof At||n.scope.check(u.base.value)||this.variable.error('the variable \"'+u.base.value+\"\\\" can't be assigned with \"+this.context+\" because it has not been declared before\"),0<=t.call(this.context,\"?\")?(n.isExistentialEquals=!0,(new D(new b(u),a,{type:\"if\"})).addElse(new r(a,this.value,\"=\")).compileToFragments(n)):(o=(new ut(this.context.slice(0,-1),u,new r(a,this.value,\"=\"))).compileToFragments(n),n.level<=V?o:this.wrapInParentheses(o))}},{key:\"compileSpecialMath\",value:function(t){var n=this.variable.cacheReference(t),i=_slicedToArray(n,2),s,o;return s=i[0],o=i[1],(new r(s,new ut(this.context.slice(0,-1),o,this.value))).compileToFragments(t)}},{key:\"compileSplice\",value:function(t){var n=this.variable.properties.pop(),r=n.range,i,s,o,u,a,f,l,c,h,p;if(o=r.from,l=r.to,s=r.exclusive,c=this.variable.unwrapAll(),c.comments&&(Zt(c,this),delete this.variable.comments),f=this.variable.compile(t),o){var d=this.cacheToCodeFragments(o.cache(t,$)),v=_slicedToArray(d,2);u=v[0],a=v[1]}else u=a=\"0\";l?(null==o?void 0:o.isNumber())&&l.isNumber()?(l=l.compile(t)-a,!s&&(l+=1)):(l=l.compile(t,W)+\" - \"+a,!s&&(l+=\" + 1\")):l=\"9e9\";var m=this.value.cache(t,V),g=_slicedToArray(m,2);return h=g[0],p=g[1],i=[].concat(this.makeCode(an(\"splice\",t)+\".apply(\"+f+\", [\"+u+\", \"+l+\"].concat(\"),h,this.makeCode(\")), \"),p),t.level>K?this.wrapInParentheses(i):i}},{key:\"eachName\",value:function(t){return this.variable.unwrapAll().eachName(t)}}]),r}(a);return e.prototype.children=[\"variable\",\"value\"],e.prototype.isAssignable=Bt,e}.call(this),e.FuncGlyph=A=function(e){function t(e){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.glyph=e,n}return _inherits(t,e),t}(a),e.Code=d=function(){var e=function(e){function n(e,t,r,i){_classCallCheck(this,n);var s=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),o;return s.funcGlyph=r,s.paramStart=i,s.params=e||[],s.body=t||new f,s.bound=\"=>\"===(null==(o=s.funcGlyph)?void 0:o.glyph),s.isGenerator=!1,s.isAsync=!1,s.isMethod=!1,s.body.traverseChildren(!1,function(e){if((e instanceof ut&&e.isYield()||e instanceof jt)&&(s.isGenerator=!0),(e instanceof ut&&e.isAwait()||e instanceof u)&&(s.isAsync=!0),s.isGenerator&&s.isAsync)return e.error(\"function can't contain both yield and await\")}),s}return _inherits(n,e),_createClass(n,[{key:\"isStatement\",value:function(){return this.isMethod}},{key:\"makeScope\",value:function(t){return new gt(t,this.body,this)}},{key:\"compileNode\",value:function(n){var r,i,u,a,f,l,c,p,d,v,m,g,y,b,E,S,x,T,N,C,k,L,A,O,M,P,H,B,j,F,I,q,R,U,X,V,$,J,K,Q,Y,Z,et;for(this.ctor&&(this.isAsync&&this.name.error(\"Class constructor may not be async\"),this.isGenerator&&this.name.error(\"Class constructor may not be a generator\")),this.bound&&((null==(F=n.scope.method)?void 0:F.bound)&&(this.context=n.scope.method.context),!this.context&&(this.context=\"this\")),n.scope=Rt(n,\"classScope\")||this.makeScope(n.scope),n.scope.shared=Rt(n,\"sharedScope\"),n.indent+=Ct,delete n.bare,delete n.isExistentialEquals,H=[],p=[],Y=null==(I=null==(q=this.thisAssignments)?void 0:q.slice())?[]:I,B=[],m=!1,v=!1,M=[],this.eachParamName(function(e,r,i,s){var u,a;if(0<=t.call(M,e)&&r.error(\"multiple parameters named '\"+e+\"'\"),M.push(e),r.this)return e=r.properties[0].name.value,0<=t.call(z,e)&&(e=\"_\"+e),a=new _(n.scope.freeVariable(e,{reserve:!1})),u=i.name instanceof ot&&s instanceof o&&\"=\"===s.operatorToken.value?new o(new _(e),a,\"object\"):a,i.renameParam(r,u),Y.push(new o(r,a))}),R=this.params,g=b=0,x=R.length;b<x;g=++b)O=R[g],O.splat||O instanceof w?(m?O.error(\"only one splat or expansion parameter is allowed per function definition\"):O instanceof w&&1===this.params.length&&O.error(\"an expansion parameter cannot be the only parameter in a function definition\"),m=!0,O.splat?(O.name instanceof s?(Q=n.scope.freeVariable(\"arg\"),H.push(j=new Pt(new _(Q))),p.push(new o(new Pt(O.name),j))):(H.push(j=O.asReference(n)),Q=Xt(j.compileNodeWithoutComments(n))),O.shouldCache()&&p.push(new o(new Pt(O.name),j))):(Q=n.scope.freeVariable(\"args\"),H.push(new Pt(new _(Q)))),n.scope.parameter(Q)):((O.shouldCache()||v)&&(O.assignedInBody=!0,v=!0,null==O.value?p.push(new o(new Pt(O.name),O.asReference(n),null,{param:\"alwaysDeclare\"})):(c=new ut(\"===\",O,new Dt),y=new o(new Pt(O.name),O.value),p.push(new D(c,y)))),m?(B.push(O),null!=O.value&&!O.shouldCache()&&(c=new ut(\"===\",O,new Dt),y=new o(new Pt(O.name),O.value),p.push(new D(c,y))),null!=(null==(U=O.name)?void 0:U.value)&&n.scope.add(O.name.value,\"var\",!0)):(j=O.shouldCache()?O.asReference(n):null==O.value||O.assignedInBody?O:new o(new Pt(O.name),O.value,null,{param:!0}),O.name instanceof s||O.name instanceof ot?(O.name.lhs=!0,O.name instanceof ot&&O.name.hasSplat()?(Q=n.scope.freeVariable(\"arg\"),n.scope.parameter(Q),j=new Pt(new _(Q)),p.push(new o(new Pt(O.name),j,null,{param:\"alwaysDeclare\"})),null!=O.value&&!O.assignedInBody&&(j=new o(j,O.value,null,{param:!0}))):!O.shouldCache()&&O.name.eachName(function(e){return n.scope.parameter(e.value)})):(P=null==O.value?j:O,n.scope.parameter(Xt(P.compileToFragmentsWithoutComments(n)))),H.push(j)));if(0!==B.length&&p.unshift(new o(new Pt(new s([new bt(new _(Q))].concat(_toConsumableArray(function(){var e,t,r;for(r=[],e=0,t=B.length;e<t;e++)O=B[e],r.push(O.asReference(n));return r}())))),new Pt(new _(Q)))),Z=this.body.isEmpty(),!this.expandCtorSuper(Y)){var tt;(tt=this.body.expressions).unshift.apply(tt,_toConsumableArray(Y))}for((r=this.body.expressions).unshift.apply(r,_toConsumableArray(p)),this.isMethod&&this.bound&&!this.isStatic&&this.classVariable&&(f=new Pt(new G(an(\"boundMethodCheck\",n))),this.body.expressions.unshift(new h(f,[new Pt(new At),this.classVariable]))),Z||this.noReturn||this.body.makeReturn(),this.bound&&this.isGenerator&&(et=this.body.contains(function(e){return e instanceof ut&&\"yield\"===e.operator}),(et||this).error(\"yield cannot occur inside bound (fat arrow) functions\")),L=[],this.isMethod&&this.isStatic&&L.push(\"static\"),this.isAsync&&L.push(\"async\"),this.isMethod||this.bound?this.isGenerator&&L.push(\"*\"):L.push(\"function\"+(this.isGenerator?\"*\":\"\")),K=[this.makeCode(\"(\")],null!=(null==(X=this.paramStart)?void 0:X.comments)&&this.compileCommentFragments(n,this.paramStart,K),g=E=0,T=H.length;E<T;g=++E){var nt;if(O=H[g],0!==g&&K.push(this.makeCode(\", \")),m&&g===H.length-1&&K.push(this.makeCode(\"...\")),J=n.scope.variables.length,(nt=K).push.apply(nt,_toConsumableArray(O.compileToFragments(n))),J!==n.scope.variables.length){var rt;d=n.scope.variables.splice(J),(rt=n.scope.parent.variables).push.apply(rt,_toConsumableArray(d))}}if(K.push(this.makeCode(\")\")),null!=(null==(V=this.funcGlyph)?void 0:V.comments)){for($=this.funcGlyph.comments,S=0,N=$.length;S<N;S++)l=$[S],l.unshift=!1;this.compileCommentFragments(n,this.funcGlyph,K)}if(this.body.isEmpty()||(a=this.body.compileWithDeclarations(n)),this.isMethod){var it=[n.scope,n.scope.parent];k=it[0],n.scope=it[1],A=this.name.compileToFragments(n),\".\"===A[0].code&&A.shift(),n.scope=k}if(u=this.joinFragmentArrays(function(){var e,t,n;for(n=[],t=0,e=L.length;t<e;t++)C=L[t],n.push(this.makeCode(C));return n}.call(this),\" \"),L.length&&A&&u.push(this.makeCode(\" \")),A){var st;(st=u).push.apply(st,_toConsumableArray(A))}if((i=u).push.apply(i,_toConsumableArray(K)),this.bound&&!this.isMethod&&u.push(this.makeCode(\" =>\")),u.push(this.makeCode(\" {\")),null==a?void 0:a.length){var at;(at=u).push.apply(at,[this.makeCode(\"\\n\")].concat(_toConsumableArray(a),[this.makeCode(\"\\n\"+this.tab)]))}return u.push(this.makeCode(\"}\")),this.isMethod?$t(u,this):this.front||n.level>=W?this.wrapInParentheses(u):u}},{key:\"eachParamName\",value:function(t){var n,r,i,s,o;for(s=this.params,o=[],n=0,r=s.length;n<r;n++)i=s[n],o.push(i.eachName(t));return o}},{key:\"traverseChildren\",value:function(t,r){if(t)return _get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"traverseChildren\",this).call(this,t,r)}},{key:\"replaceInContext\",value:function(t,r){return!!this.bound&&_get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),\"replaceInContext\",this).call(this,t,r)}},{key:\"expandCtorSuper\",value:function(t){var n=this,r,i,s,o;return!!this.ctor&&(this.eachSuperCall(f.wrap(this.params),function(e){return e.error(\"'super' is not allowed in constructor parameter defaults\")}),o=this.eachSuperCall(this.body,function(e){return\"base\"===n.ctor&&e.error(\"'super' is only allowed in derived class constructors\"),e.expressions=t}),r=t.length&&t.length!==(null==(s=this.thisAssignments)?void 0:s.length),\"derived\"===this.ctor&&!o&&r&&(i=t[0].variable,i.error(\"Can't use @params in derived class constructors without calling super\")),o)}},{key:\"eachSuperCall\",value:function(t,r){var i=this,s;return s=!1,t.traverseChildren(!0,function(e){var t;return e instanceof Tt?(!e.variable.accessor&&(t=e.args.filter(function(e){return!(e instanceof p)&&(!(e instanceof n)||e.bound)}),f.wrap(t).traverseChildren(!0,function(e){if(e.this)return e.error(\"Can't call super with @params in derived class constructors\")})),s=!0,r(e)):e instanceof At&&\"derived\"===i.ctor&&!s&&e.error(\"Can't reference 'this' before calling super in derived class constructors\"),!(e instanceof Tt)&&(!(e instanceof n)||e.bound)}),s}}]),n}(a);return e.prototype.children=[\"params\",\"body\"],e.prototype.jumps=nt,e}.call(this),e.Param=at=function(){var e=function(e){function n(e,t,r){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),s,o;return i.name=e,i.value=t,i.splat=r,s=Qt(i.name.unwrapAll().value),s&&i.name.error(s),i.name instanceof ot&&i.name.generated&&(o=i.name.objects[0].operatorToken,o.error(\"unexpected \"+o.value)),i}return _inherits(n,e),_createClass(n,[{key:\"compileToFragments\",value:function(t){return this.name.compileToFragments(t,V)}},{key:\"compileToFragmentsWithoutComments\",value:function(t){return this.name.compileToFragmentsWithoutComments(t,V)}},{key:\"asReference\",value:function(n){var r,i;return this.reference?this.reference:(i=this.name,i.this?(r=i.properties[0].name.value,0<=t.call(z,r)&&(r=\"_\"+r),i=new _(n.scope.freeVariable(r))):i.shouldCache()&&(i=new _(n.scope.freeVariable(\"arg\"))),i=new Pt(i),i.updateLocationDataIfMissing(this.locationData),this.reference=i)}},{key:\"shouldCache\",value:function(){return this.name.shouldCache()}},{key:\"eachName\",value:function(t){var n=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.name,i,s,u,a,f,l,c,h;if(i=function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return t(\"@\"+e.properties[0].name.value,e,n,r)},r instanceof G)return t(r.value,r,this);if(r instanceof Pt)return i(r);for(h=null==(c=r.objects)?[]:c,s=0,u=h.length;s<u;s++)l=h[s],a=l,l instanceof o&&null==l.context&&(l=l.variable),l instanceof o?(l=l.value instanceof o?l.value.variable:l.value,this.eachName(t,l.unwrap())):l instanceof bt?(f=l.name.unwrap(),t(f.value,f,this)):l instanceof Pt?l.isArray()||l.isObject()?this.eachName(t,l.base):l.this?i(l,a):t(l.base.value,l.base,this):l instanceof g?l:!(l instanceof w)&&l.error(\"illegal parameter \"+l.compile())}},{key:\"renameParam\",value:function(t,n){var r,i;return r=function(e){return e===t},i=function(e,t){var r;return t instanceof ot?(r=e,e.this&&(r=e.properties[0].name),e.this&&r.value===n.value?new Pt(n):new o(new Pt(r),n,\"object\")):n},this.replaceInContext(r,i)}}]),n}(a);return e.prototype.children=[\"name\",\"value\"],e}.call(this),e.Splat=bt=function(){var e=function(e){function t(e){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.name=e.compile?e:new G(e),n}return _inherits(t,e),_createClass(t,[{key:\"isAssignable\",value:function(){return this.name.isAssignable()&&(!this.name.isAtomic||this.name.isAtomic())}},{key:\"assigns\",value:function(t){return this.name.assigns(t)}},{key:\"compileNode\",value:function(t){return[this.makeCode(\"...\")].concat(_toConsumableArray(this.name.compileToFragments(t,$)))}},{key:\"unwrap\",value:function(){return this.name}}]),t}(a);return e.prototype.children=[\"name\"],e}.call(this),e.Expansion=w=function(){var e=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(){return this.error(\"Expansion must be used inside a destructuring assignment or parameter list\")}},{key:\"asReference\",value:function(){return this}},{key:\"eachName\",value:function(){}}]),t}(a);return e.prototype.shouldCache=nt,e}.call(this),e.Elision=g=function(){var e=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:\"compileToFragments\",value:function(n,r){var i;return i=_get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"compileToFragments\",this).call(this,n,r),i.isElision=!0,i}},{key:\"compileNode\",value:function(){return[this.makeCode(\", \")]}},{key:\"asReference\",value:function(){return this}},{key:\"eachName\",value:function(){}}]),t}(a);return e.prototype.isAssignable=Bt,e.prototype.shouldCache=nt,e}.call(this),e.While=Ht=function(){var e=function(e){function t(e,n){_classCallCheck(this,t);var r=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.condition=(null==n?void 0:n.invert)?e.invert():e,r.guard=null==n?void 0:n.guard,r}return _inherits(t,e),_createClass(t,[{key:\"makeReturn\",value:function(n){return n?_get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"makeReturn\",this).call(this,n):(this.returns=!this.jumps(),this)}},{key:\"addBody\",value:function(t){return this.body=t,this}},{key:\"jumps\",value:function(){var t,n,r,i,s;if(t=this.body.expressions,!t.length)return!1;for(n=0,i=t.length;n<i;n++)if(s=t[n],r=s.jumps({loop:!0}))return r;return!1}},{key:\"compileNode\",value:function(t){var n,r,i,s;return t.indent+=Ct,s=\"\",r=this.body,r.isEmpty()?r=this.makeCode(\"\"):(this.returns&&(r.makeReturn(i=t.scope.freeVariable(\"results\")),s=\"\"+this.tab+i+\" = [];\\n\"),this.guard&&(1<r.expressions.length?r.expressions.unshift(new D((new ft(this.guard)).invert(),new wt(\"continue\"))):this.guard&&(r=f.wrap([new D(this.guard,r)]))),r=[].concat(this.makeCode(\"\\n\"),r.compileToFragments(t,K),this.makeCode(\"\\n\"+this.tab))),n=[].concat(this.makeCode(s+this.tab+\"while (\"),this.condition.compileToFragments(t,J),this.makeCode(\") {\"),r,this.makeCode(\"}\")),this.returns&&n.push(this.makeCode(\"\\n\"+this.tab+\"return \"+i+\";\")),n}}]),t}(a);return e.prototype.children=[\"condition\",\"guard\",\"body\"],e.prototype.isStatement=Bt,e}.call(this),e.Op=ut=function(){var e=function(e){function s(e,t,r,i){var o;_classCallCheck(this,s);var u=_possibleConstructorReturn(this,(s.__proto__||Object.getPrototypeOf(s)).call(this)),a;if(\"in\"===e){var f;return f=new q(t,r),_possibleConstructorReturn(u,f)}if(\"do\"===e){var l;return l=s.prototype.generateDo(t),_possibleConstructorReturn(u,l)}if(\"new\"===e){if((a=t.unwrap())instanceof h&&!a.do&&!a.isNew){var c;return c=a.newInstance(),_possibleConstructorReturn(u,c)}(t instanceof d&&t.bound||t.do)&&(t=new ft(t))}return u.operator=n[e]||e,u.first=t,u.second=r,u.flip=!!i,o=u,_possibleConstructorReturn(u,o)}return _inherits(s,e),_createClass(s,[{key:\"isNumber\",value:function(){var t;return this.isUnary()&&(\"+\"===(t=this.operator)||\"-\"===t)&&this.first instanceof Pt&&this.first.isNumber()}},{key:\"isAwait\",value:function(){return\"await\"===this.operator}},{key:\"isYield\",value:function(){var t;return\"yield\"===(t=this.operator)||\"yield*\"===t}},{key:\"isUnary\",value:function(){return!this.second}},{key:\"shouldCache\",value:function(){return!this.isNumber()}},{key:\"isChainable\",value:function(){var t;return\"<\"===(t=this.operator)||\">\"===t||\">=\"===t||\"<=\"===t||\"===\"===t||\"!==\"===t}},{key:\"invert\",value:function(){var t,n,i,o,u;if(this.isChainable()&&this.first.isChainable()){for(t=!0,n=this;n&&n.operator;)t&&(t=n.operator in r),n=n.first;if(!t)return(new ft(this)).invert();for(n=this;n&&n.operator;)n.invert=!n.invert,n.operator=r[n.operator],n=n.first;return this}return(o=r[this.operator])?(this.operator=o,this.first.unwrap()instanceof s&&this.first.invert(),this):this.second?(new ft(this)).invert():\"!\"===this.operator&&(i=this.first.unwrap())instanceof s&&(\"!\"===(u=i.operator)||\"in\"===u||\"instanceof\"===u)?i:new s(\"!\",this)}},{key:\"unfoldSoak\",value:function(t){var n;return(\"++\"===(n=this.operator)||\"--\"===n||\"delete\"===n)&&on(t,this,\"first\")}},{key:\"generateDo\",value:function(t){var n,r,i,s,u,a,f,l;for(a=[],r=t instanceof o&&(f=t.value.unwrap())instanceof d?f:t,l=r.params||[],i=0,s=l.length;i<s;i++)u=l[i],u.value?(a.push(u.value),delete u.value):a.push(u);return n=new h(t,a),n.do=!0,n}},{key:\"compileNode\",value:function(t){var n,r,i,s,o,u;if(r=this.isChainable()&&this.first.isChainable(),r||(this.first.front=this.front),\"delete\"===this.operator&&t.scope.check(this.first.unwrapAll().value)&&this.error(\"delete operand may not be argument or var\"),(\"--\"===(o=this.operator)||\"++\"===o)&&(s=Qt(this.first.unwrapAll().value),s&&this.first.error(s)),this.isYield()||this.isAwait())return this.compileContinuation(t);if(this.isUnary())return this.compileUnary(t);if(r)return this.compileChain(t);switch(this.operator){case\"?\":return this.compileExistence(t,this.second.isDefaultValue);case\"**\":return this.compilePower(t);case\"//\":return this.compileFloorDivision(t);case\"%%\":return this.compileModulo(t);default:return i=this.first.compileToFragments(t,$),u=this.second.compileToFragments(t,$),n=[].concat(i,this.makeCode(\" \"+this.operator+\" \"),u),t.level<=$?n:this.wrapInParentheses(n)}}},{key:\"compileChain\",value:function(t){var n=this.first.second.cache(t),r=_slicedToArray(n,2),i,s,o;return this.first.second=r[0],o=r[1],s=this.first.compileToFragments(t,$),i=s.concat(this.makeCode(\" \"+(this.invert?\"&&\":\"||\")+\" \"),o.compileToFragments(t),this.makeCode(\" \"+this.operator+\" \"),this.second.compileToFragments(t,$)),this.wrapInParentheses(i)}},{key:\"compileExistence\",value:function(t,n){var r,i;return this.first.shouldCache()?(i=new _(t.scope.freeVariable(\"ref\")),r=new ft(new o(i,this.first))):(r=this.first,i=r),(new D(new b(r,n),i,{type:\"if\"})).addElse(this.second).compileToFragments(t)}},{key:\"compileUnary\",value:function(t){var n,r,i;return(r=[],n=this.operator,r.push([this.makeCode(n)]),\"!\"===n&&this.first instanceof b)?(this.first.negated=!this.first.negated,this.first.compileToFragments(t)):t.level>=W?(new ft(this)).compileToFragments(t):(i=\"+\"===n||\"-\"===n,(\"new\"===n||\"typeof\"===n||\"delete\"===n||i&&this.first instanceof s&&this.first.operator===n)&&r.push([this.makeCode(\" \")]),(i&&this.first instanceof s||\"new\"===n&&this.first.isStatement(t))&&(this.first=new ft(this.first)),r.push(this.first.compileToFragments(t,$)),this.flip&&r.reverse(),this.joinFragmentArrays(r,\"\"))}},{key:\"compileContinuation\",value:function(n){var r,i,s,o;return i=[],r=this.operator,null==n.scope.parent&&this.error(this.operator+\" can only occur inside functions\"),(null==(s=n.scope.method)?void 0:s.bound)&&n.scope.method.isGenerator&&this.error(\"yield cannot occur inside bound (fat arrow) functions\"),0<=t.call(Object.keys(this.first),\"expression\")&&!(this.first instanceof Ot)?null!=this.first.expression&&i.push(this.first.expression.compileToFragments(n,$)):(n.level>=J&&i.push([this.makeCode(\"(\")]),i.push([this.makeCode(r)]),\"\"!==(null==(o=this.first.base)?void 0:o.value)&&i.push([this.makeCode(\" \")]),i.push(this.first.compileToFragments(n,$)),n.level>=J&&i.push([this.makeCode(\")\")])),this.joinFragmentArrays(i,\"\")}},{key:\"compilePower\",value:function(t){var n;return n=new Pt(new _(\"Math\"),[new i(new ct(\"pow\"))]),(new h(n,[this.first,this.second])).compileToFragments(t)}},{key:\"compileFloorDivision\",value:function(t){var n,r,o;return r=new Pt(new _(\"Math\"),[new i(new ct(\"floor\"))]),o=this.second.shouldCache()?new ft(this.second):this.second,n=new s(\"/\",this.first,o),(new h(r,[n])).compileToFragments(t)}},{key:\"compileModulo\",value:function(t){var n;return n=new Pt(new G(an(\"modulo\",t))),(new h(n,[this.first,this.second])).compileToFragments(t)}},{key:\"toString\",value:function u(e){return _get(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),\"toString\",this).call(this,e,this.constructor.name+\" \"+this.operator)}}]),s}(a),n,r;return n={\"==\":\"===\",\"!=\":\"!==\",of:\"in\",yieldfrom:\"yield*\"},r={\"!==\":\"===\",\"===\":\"!==\"},e.prototype.children=[\"first\",\"second\"],e}.call(this),e.In=q=function(){var e=function(e){function t(e,n){_classCallCheck(this,t);var r=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.object=e,r.array=n,r}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n,r,i,s,o;if(this.array instanceof Pt&&this.array.isArray()&&this.array.base.objects.length){for(o=this.array.base.objects,r=0,i=o.length;r<i;r++)if(s=o[r],s instanceof bt){n=!0;break}if(!n)return this.compileOrTest(t)}return this.compileLoopTest(t)}},{key:\"compileOrTest\",value:function(t){var n=this.object.cache(t,$),r=_slicedToArray(n,2),i,s,o,u,a,f,l,c,h,p;h=r[0],l=r[1];var d=this.negated?[\" !== \",\" && \"]:[\" === \",\" || \"],v=_slicedToArray(d,2);for(i=v[0],s=v[1],p=[],c=this.array.base.objects,o=a=0,f=c.length;a<f;o=++a)u=c[o],o&&p.push(this.makeCode(s)),p=p.concat(o?l:h,this.makeCode(i),u.compileToFragments(t,W));return t.level<$?p:this.wrapInParentheses(p)}},{key:\"compileLoopTest\",value:function(t){var n=this.object.cache(t,V),r=_slicedToArray(n,2),i,s,o;return(o=r[0],s=r[1],i=[].concat(this.makeCode(an(\"indexOf\",t)+\".call(\"),this.array.compileToFragments(t,V),this.makeCode(\", \"),s,this.makeCode(\") \"+(this.negated?\"< 0\":\">= 0\"))),Xt(o)===Xt(s))?i:(i=o.concat(this.makeCode(\", \"),i),t.level<V?i:this.wrapInParentheses(i))}},{key:\"toString\",value:function n(e){return _get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"toString\",this).call(this,e,this.constructor.name+(this.negated?\"!\":\"\"))}}]),t}(a);return e.prototype.children=[\"object\",\"array\"],e.prototype.invert=tt,e}.call(this),e.Try=Mt=function(){var e=function(e){function t(e,n,r,i){_classCallCheck(this,t);var s=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return s.attempt=e,s.errorVariable=n,s.recovery=r,s.ensure=i,s}return _inherits(t,e),_createClass(t,[{key:\"jumps\",value:function(t){var n;return this.attempt.jumps(t)||(null==(n=this.recovery)?void 0:n.jumps(t))}},{key:\"makeReturn\",value:function(t){return this.attempt&&(this.attempt=this.attempt.makeReturn(t)),this.recovery&&(this.recovery=this.recovery.makeReturn(t)),this}},{key:\"compileNode\",value:function(t){var n,r,i,s,u,a;return t.indent+=Ct,a=this.attempt.compileToFragments(t,K),n=this.recovery?(i=t.scope.freeVariable(\"error\",{reserve:!1}),u=new _(i),this.errorVariable?(s=Qt(this.errorVariable.unwrapAll().value),s?this.errorVariable.error(s):void 0,this.recovery.unshift(new o(this.errorVariable,u))):void 0,[].concat(this.makeCode(\" catch (\"),u.compileToFragments(t),this.makeCode(\") {\\n\"),this.recovery.compileToFragments(t,K),this.makeCode(\"\\n\"+this.tab+\"}\"))):this.ensure||this.recovery?[]:(i=t.scope.freeVariable(\"error\",{reserve:!1}),[this.makeCode(\" catch (\"+i+\") {}\")]),r=this.ensure?[].concat(this.makeCode(\" finally {\\n\"),this.ensure.compileToFragments(t,K),this.makeCode(\"\\n\"+this.tab+\"}\")):[],[].concat(this.makeCode(this.tab+\"try {\\n\"),a,this.makeCode(\"\\n\"+this.tab+\"}\"),n,r)}}]),t}(a);return e.prototype.children=[\"attempt\",\"recovery\",\"ensure\"],e.prototype.isStatement=Bt,e}.call(this),e.Throw=Ot=function(){var e=function(e){function t(e){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.expression=e,n}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n;return n=this.expression.compileToFragments(t,V),un(n,this.makeCode(\"throw \")),n.unshift(this.makeCode(this.tab)),n.push(this.makeCode(\";\")),n}}]),t}(a);return e.prototype.children=[\"expression\"],e.prototype.isStatement=Bt,e.prototype.jumps=nt,e.prototype.makeReturn=kt,e}.call(this),e.Existence=b=function(){var e=function(e){function n(e){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),s;return i.expression=e,i.comparisonTarget=r?\"undefined\":\"null\",s=[],i.expression.traverseChildren(!0,function(e){var n,r,i,o;if(e.comments){for(o=e.comments,r=0,i=o.length;r<i;r++)n=o[r],0>t.call(s,n)&&s.push(n);return delete e.comments}}),It(s,i),Zt(i.expression,i),i}return _inherits(n,e),_createClass(n,[{key:\"compileNode\",value:function(t){var n,r,i;if(this.expression.front=this.front,i=this.expression.compile(t,$),this.expression.unwrap()instanceof _&&!t.scope.check(i)){var s=this.negated?[\"===\",\"||\"]:[\"!==\",\"&&\"],o=_slicedToArray(s,2);n=o[0],r=o[1],i=\"typeof \"+i+\" \"+n+' \"undefined\"'+(\"undefined\"===this.comparisonTarget?\"\":\" \"+r+\" \"+i+\" \"+n+\" \"+this.comparisonTarget)}else n=\"null\"===this.comparisonTarget?this.negated?\"==\":\"!=\":this.negated?\"===\":\"!==\",i=i+\" \"+n+\" \"+this.comparisonTarget;return[this.makeCode(t.level<=X?i:\"(\"+i+\")\")]}}]),n}(a);return e.prototype.children=[\"expression\"],e.prototype.invert=tt,e}.call(this),e.Parens=ft=function(){var e=function(e){function t(e){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.body=e,n}return _inherits(t,e),_createClass(t,[{key:\"unwrap\",value:function(){return this.body}},{key:\"shouldCache\",value:function(){return this.body.shouldCache()}},{key:\"compileNode\",value:function(t){var n,r,i,s,o;return(r=this.body.unwrap(),o=null==(s=r.comments)?void 0:s.some(function(e){return e.here&&!e.unshift&&!e.newLine}),r instanceof Pt&&r.isAtomic()&&!this.csxAttribute&&!o)?(r.front=this.front,r.compileToFragments(t)):(i=r.compileToFragments(t,J),n=t.level<$&&!o&&(r instanceof ut||r.unwrap()instanceof h||r instanceof L&&r.returns)&&(t.level<X||3>=i.length),this.csxAttribute?this.wrapInBraces(i):n?i:this.wrapInParentheses(i))}}]),t}(a);return e.prototype.children=[\"body\"],e}.call(this),e.StringWithInterpolations=St=function(){var e=function(e){function t(e){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.body=e,n}return _inherits(t,e),_createClass(t,[{key:\"unwrap\",value:function(){return this}},{key:\"shouldCache\",value:function(){return this.body.shouldCache()}},{key:\"compileNode\",value:function(n){var r,i,s,o,u,a,f,l,c;if(this.csxAttribute)return c=new ft(new t(this.body)),c.csxAttribute=!0,c.compileNode(n);for(o=this.body.unwrap(),s=[],l=[],o.traverseChildren(!1,function(e){var t,n,r,i,o,u;if(e instanceof Et){if(e.comments){var a;(a=l).push.apply(a,_toConsumableArray(e.comments)),delete e.comments}return s.push(e),!0}if(e instanceof ft){if(0!==l.length){for(n=0,i=l.length;n<i;n++)t=l[n],t.unshift=!0,t.newLine=!0;It(l,e)}return s.push(e),!1}if(e.comments){if(0===s.length||s[s.length-1]instanceof Et){var f;(f=l).push.apply(f,_toConsumableArray(e.comments))}else{for(u=e.comments,r=0,o=u.length;r<o;r++)t=u[r],t.unshift=!1,t.newLine=!0;It(e.comments,s[s.length-1])}delete e.comments}return!0}),u=[],this.csx||u.push(this.makeCode(\"`\")),a=0,f=s.length;a<f;a++)if(i=s[a],i instanceof Et){var h;i.value=i.unquote(!0,this.csx),this.csx||(i.value=i.value.replace(/(\\\\*)(`|\\$\\{)/g,function(e,t,n){return 0==t.length%2?t+\"\\\\\"+n:e})),(h=u).push.apply(h,_toConsumableArray(i.compileToFragments(n)))}else{var p;this.csx||u.push(this.makeCode(\"$\")),r=i.compileToFragments(n,J),(!this.isNestedTag(i)||r.some(function(e){return null!=e.comments}))&&(r=this.wrapInBraces(r),r[0].isStringWithInterpolations=!0,r[r.length-1].isStringWithInterpolations=!0),(p=u).push.apply(p,_toConsumableArray(r))}return this.csx||u.push(this.makeCode(\"`\")),u}},{key:\"isNestedTag\",value:function(t){var n,r,i;return r=null==(i=t.body)?void 0:i.expressions,n=null==r?void 0:r[0].unwrap(),this.csx&&r&&1===r.length&&n instanceof h&&n.csx}}]),t}(a);return e.prototype.children=[\"body\"],e}.call(this),e.For=L=function(){var e=function(e){function t(e,n){_classCallCheck(this,t);var r=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),i,s,o,u,a,l;if(r.source=n.source,r.guard=n.guard,r.step=n.step,r.name=n.name,r.index=n.index,r.body=f.wrap([e]),r.own=null!=n.own,r.object=null!=n.object,r.from=null!=n.from,r.from&&r.index&&r.index.error(\"cannot use index with for-from\"),r.own&&!r.object&&n.ownTag.error(\"cannot use own with for-\"+(r.from?\"from\":\"in\")),r.object){var c=[r.index,r.name];r.name=c[0],r.index=c[1]}for(((null==(u=r.index)?void 0:\"function\"==typeof u.isArray?u.isArray():void 0)||(null==(a=r.index)?void 0:\"function\"==typeof a.isObject?a.isObject():void 0))&&r.index.error(\"index cannot be a pattern matching expression\"),r.range=r.source instanceof Pt&&r.source.base instanceof ht&&!r.source.properties.length&&!r.from,r.pattern=r.name instanceof Pt,r.range&&r.index&&r.index.error(\"indexes do not apply to range loops\"),r.range&&r.pattern&&r.name.error(\"cannot pattern match over range loops\"),r.returns=!1,l=[\"source\",\"guard\",\"step\",\"name\",\"index\"],s=0,o=l.length;s<o;s++)(i=l[s],!!r[i])&&(r[i].traverseChildren(!0,function(e){var t,n,s,o;if(e.comments){for(o=e.comments,n=0,s=o.length;n<s;n++)t=o[n],t.newLine=t.unshift=!0;return Zt(e,r[i])}}),Zt(r[i],r));return r}return _inherits(t,e),_createClass(t,[{key:\"compileNode\",value:function(t){var n,i,s,u,a,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,P,H,B,j,F,I,q,R;if(s=f.wrap([this.body]),A=s.expressions,n=r.call(A,-1),i=_slicedToArray(n,1),T=i[0],n,(null==T?void 0:T.jumps())instanceof vt&&(this.returns=!1),B=this.range?this.source.base:this.source,H=t.scope,this.pattern||(C=this.name&&this.name.compile(t,V)),w=this.index&&this.index.compile(t,V),C&&!this.pattern&&H.find(C),w&&!(this.index instanceof Pt)&&H.find(w),this.returns&&(P=H.freeVariable(\"results\")),this.from?this.pattern&&(E=H.freeVariable(\"x\",{single:!0})):E=this.object&&w||H.freeVariable(\"i\",{single:!0}),S=(this.range||this.from)&&C||w||E,x=S===E?\"\":S+\" = \",this.step&&!this.range){var U=this.cacheToCodeFragments(this.step.cache(t,V,tn)),z=_slicedToArray(U,2);j=z[0],I=z[1],this.step.isNumber()&&(F=+I)}return this.pattern&&(C=E),R=\"\",g=\"\",p=\"\",y=this.tab+Ct,this.range?v=B.compileToFragments(Yt(t,{index:E,name:C,step:this.step,shouldCache:tn})):(q=this.source.compile(t,V),(C||this.own)&&!(this.source.unwrap()instanceof _)&&(p+=\"\"+this.tab+(L=H.freeVariable(\"ref\"))+\" = \"+q+\";\\n\",q=L),C&&!this.pattern&&!this.from&&(k=C+\" = \"+q+\"[\"+S+\"]\"),!this.object&&!this.from&&(j!==I&&(p+=\"\"+this.tab+j+\";\\n\"),d=0>F,(!this.step||null==F||!d)&&(N=H.freeVariable(\"len\")),c=\"\"+x+E+\" = 0, \"+N+\" = \"+q+\".length\",h=\"\"+x+E+\" = \"+q+\".length - 1\",a=E+\" < \"+N,l=E+\" >= 0\",this.step?(null==F?(a=I+\" > 0 ? \"+a+\" : \"+l,c=\"(\"+I+\" > 0 ? (\"+c+\") : \"+h+\")\"):d&&(a=l,c=h),b=E+\" += \"+I):b=\"\"+(S===E?E+\"++\":\"++\"+E),v=[this.makeCode(c+\"; \"+a+\"; \"+x+b)])),this.returns&&(O=\"\"+this.tab+P+\" = [];\\n\",M=\"\\n\"+this.tab+\"return \"+P+\";\",s.makeReturn(P)),this.guard&&(1<s.expressions.length?s.expressions.unshift(new D((new ft(this.guard)).invert(),new wt(\"continue\"))):this.guard&&(s=f.wrap([new D(this.guard,s)]))),this.pattern&&s.expressions.unshift(new o(this.name,this.from?new _(S):new G(q+\"[\"+S+\"]\"))),k&&(R=\"\\n\"+y+k+\";\"),this.object?(v=[this.makeCode(S+\" in \"+q)],this.own&&(g=\"\\n\"+y+\"if (!\"+an(\"hasProp\",t)+\".call(\"+q+\", \"+S+\")) continue;\")):this.from&&(v=[this.makeCode(S+\" of \"+q)]),u=s.compileToFragments(Yt(t,{indent:y}),K),u&&0<u.length&&(u=[].concat(this.makeCode(\"\\n\"),u,this.makeCode(\"\\n\"))),m=[this.makeCode(p)],O&&m.push(this.makeCode(O)),m=m.concat(this.makeCode(this.tab),this.makeCode(\"for (\"),v,this.makeCode(\") {\"+g+R),u,this.makeCode(this.tab),this.makeCode(\"}\")),M&&m.push(this.makeCode(M)),m}}]),t}(Ht);return e.prototype.children=[\"body\",\"source\",\"guard\",\"step\"],e}.call(this),e.Switch=Nt=function(){var e=function(e){function t(e,n,r){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.subject=e,i.cases=n,i.otherwise=r,i}return _inherits(t,e),_createClass(t,[{key:\"jumps\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{block:!0},n,r,i,s,o,u,a;for(u=this.cases,i=0,o=u.length;i<o;i++){var f=_slicedToArray(u[i],2);if(r=f[0],n=f[1],s=n.jumps(t))return s}return null==(a=this.otherwise)?void 0:a.jumps(t)}},{key:\"makeReturn\",value:function(t){var n,r,i,s,o;for(s=this.cases,n=0,r=s.length;n<r;n++)i=s[n],i[1].makeReturn(t);return t&&(this.otherwise||(this.otherwise=new f([new G(\"void 0\")]))),null!=(o=this.otherwise)&&o.makeReturn(t),this}},{key:\"compileNode\",value:function(t){var n,r,i,s,o,u,a,f,l,c,h,p,d,v,m;for(f=t.indent+Ct,l=t.indent=f+Ct,u=[].concat(this.makeCode(this.tab+\"switch (\"),this.subject?this.subject.compileToFragments(t,J):this.makeCode(\"false\"),this.makeCode(\") {\\n\")),v=this.cases,a=c=0,p=v.length;c<p;a=++c){var g=_slicedToArray(v[a],2);for(s=g[0],n=g[1],m=Wt([s]),h=0,d=m.length;h<d;h++)i=m[h],this.subject||(i=i.invert()),u=u.concat(this.makeCode(f+\"case \"),i.compileToFragments(t,J),this.makeCode(\":\\n\"));if(0<(r=n.compileToFragments(t,K)).length&&(u=u.concat(r,this.makeCode(\"\\n\"))),a===this.cases.length-1&&!this.otherwise)break;(o=this.lastNode(n.expressions),!(o instanceof vt||o instanceof Ot||o instanceof G&&o.jumps()&&\"debugger\"!==o.value))&&u.push(i.makeCode(l+\"break;\\n\"))}if(this.otherwise&&this.otherwise.expressions.length){var y;(y=u).push.apply(y,[this.makeCode(f+\"default:\\n\")].concat(_toConsumableArray(this.otherwise.compileToFragments(t,K)),[this.makeCode(\"\\n\")]))}return u.push(this.makeCode(this.tab+\"}\")),u}}]),t}(a);return e.prototype.children=[\"subject\",\"cases\",\"otherwise\"],e.prototype.isStatement=Bt,e}.call(this),e.If=D=function(){var e=function(e){function t(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.body=n,i.condition=\"unless\"===r.type?e.invert():e,i.elseBody=null,i.isChain=!1,i.soak=r.soak,i.condition.comments&&Zt(i.condition,i),i}return _inherits(t,e),_createClass(t,[{key:\"bodyNode\",value:function(){var t;return null==(t=this.body)?void 0:t.unwrap()}},{key:\"elseBodyNode\",value:function(){var t;return null==(t=this.elseBody)?void 0:t.unwrap()}},{key:\"addElse\",value:function(n){return this.isChain?this.elseBodyNode().addElse(n):(this.isChain=n instanceof t,this.elseBody=this.ensureBlock(n),this.elseBody.updateLocationDataIfMissing(n.locationData)),this}},{key:\"isStatement\",value:function(t){var n;return(null==t?void 0:t.level)===K||this.bodyNode().isStatement(t)||(null==(n=this.elseBodyNode())?void 0:n.isStatement(t))}},{key:\"jumps\",value:function(t){var n;return this.body.jumps(t)||(null==(n=this.elseBody)?void 0:n.jumps(t))}},{key:\"compileNode\",value:function(t){return this.isStatement(t)?this.compileStatement(t):this.compileExpression(t)}},{key:\"makeReturn\",value:function(t){return t&&(this.elseBody||(this.elseBody=new f([new G(\"void 0\")]))),this.body&&(this.body=new f([this.body.makeReturn(t)])),this.elseBody&&(this.elseBody=new f([this.elseBody.makeReturn(t)])),this}},{key:\"ensureBlock\",value:function(t){return t instanceof f?t:new f([t])}},{key:\"compileStatement\",value:function(n){var r,i,s,o,u,a,f;return(s=Rt(n,\"chainChild\"),u=Rt(n,\"isExistentialEquals\"),u)?(new t(this.condition.invert(),this.elseBodyNode(),{type:\"if\"})).compileToFragments(n):(f=n.indent+Ct,o=this.condition.compileToFragments(n,J),i=this.ensureBlock(this.body).compileToFragments(Yt(n,{indent:f})),a=[].concat(this.makeCode(\"if (\"),o,this.makeCode(\") {\\n\"),i,this.makeCode(\"\\n\"+this.tab+\"}\")),s||a.unshift(this.makeCode(this.tab)),!this.elseBody)?a:(r=a.concat(this.makeCode(\" else \")),this.isChain?(n.chainChild=!0,r=r.concat(this.elseBody.unwrap().compileToFragments(n,K))):r=r.concat(this.makeCode(\"{\\n\"),this.elseBody.compileToFragments(Yt(n,{indent:f}),K),this.makeCode(\"\\n\"+this.tab+\"}\")),r)}},{key:\"compileExpression\",value:function(t){var n,r,i,s;return i=this.condition.compileToFragments(t,X),r=this.bodyNode().compileToFragments(t,V),n=this.elseBodyNode()?this.elseBodyNode().compileToFragments(t,V):[this.makeCode(\"void 0\")],s=i.concat(this.makeCode(\" ? \"),r,this.makeCode(\" : \"),n),t.level>=X?this.wrapInParentheses(s):s}},{key:\"unfoldSoak\",value:function(){return this.soak&&this}}]),t}(a);return e.prototype.children=[\"condition\",\"body\",\"elseBody\"],e}.call(this),_t={modulo:function(){return\"function(a, b) { return (+a % (b = +b) + b) % b; }\"},objectWithoutKeys:function(){return\"function(o, ks) { var res = {}; for (var k in o) ([].indexOf.call(ks, k) < 0 && {}.hasOwnProperty.call(o, k)) && (res[k] = o[k]); return res; }\"},boundMethodCheck:function(){return\"function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }\"},_extends:function(){return\"Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }\"},hasProp:function(){return\"{}.hasOwnProperty\"},indexOf:function(){return\"[].indexOf\"},slice:function(){return\"[].slice\"},splice:function(){return\"[].splice\"}},K=1,J=2,V=3,X=4,$=5,W=6,Ct=\"  \",mt=/^[+-]?\\d+$/,an=function(e,t){var n,r;return r=t.scope.root,e in r.utilities?r.utilities[e]:(n=r.freeVariable(e),r.assign(n,_t[e](t)),r.utilities[e]=n)},en=function(e,t){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r;return r=\"\\n\"===e[e.length-1],e=(n?t:\"\")+e.replace(/\\n/g,\"$&\"+t),e=e.replace(/\\s+$/,\"\"),r&&(e+=\"\\n\"),e},$t=function(e,t){var n,r,i,s;for(r=i=0,s=e.length;i<s;r=++i){if(n=e[r],!n.isHereComment){e.splice(r,0,t.makeCode(\"\"+t.tab));break}n.code=en(n.code,t.tab)}return e},Vt=function(e){var t,n,r,i;if(!e.comments)return!1;for(i=e.comments,n=0,r=i.length;n<r;n++)if(t=i[n],!1===t.here)return!0;return!1},Zt=function(e,t){if(null!=e&&e.comments)return It(e.comments,t),delete e.comments},un=function(e,t){var n,r,i,s,o;for(i=!1,r=s=0,o=e.length;s<o;r=++s)if(n=e[r],!n.isComment){e.splice(r,0,t),i=!0;break}return i||e.push(t),e},Jt=function(e){return e instanceof _&&\"arguments\"===e.value},Kt=function(e){return e instanceof At||e instanceof d&&e.bound},tn=function(e){return e.shouldCache()||(\"function\"==typeof e.isAssignable?e.isAssignable():void 0)},on=function(e,t,n){var r;if(r=t[n].unfoldSoak(e))return t[n]=r.body,r.body=new Pt(t),r}}.call(this),{exports:e}.exports}(),require[\"./sourcemap\"]=function(){var e={exports:{}};return function(){var t,n;t=function(){function e(t){_classCallCheck(this,e),this.line=t,this.columns=[]}return _createClass(e,[{key:\"add\",value:function(t,n){var r=_slicedToArray(n,2),i=r[0],s=r[1],o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return this.columns[t]&&o.noReplace?void 0:this.columns[t]={line:this.line,column:t,sourceLine:i,sourceColumn:s}}},{key:\"sourceLocation\",value:function(t){for(var n;!((n=this.columns[t])||0>=t);)t--;return n&&[n.sourceLine,n.sourceColumn]}}]),e}(),n=function(){var e=function(){function e(){_classCallCheck(this,e),this.lines=[]}return _createClass(e,[{key:\"add\",value:function(n,r){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},s=_slicedToArray(r,2),o,u,f,l;return f=s[0],u=s[1],l=(o=this.lines)[f]||(o[f]=new t(f)),l.add(u,n,i)}},{key:\"sourceLocation\",value:function(t){for(var n=_slicedToArray(t,2),r=n[0],i=n[1],s;!((s=this.lines[r])||0>=r);)r--;return s&&s.sourceLocation(i)}},{key:\"generate\",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b;for(b=0,o=0,a=0,u=0,d=!1,r=\"\",v=this.lines,h=i=0,f=v.length;i<f;h=++i)if(c=v[h],c)for(m=c.columns,s=0,l=m.length;s<l;s++)if(p=m[s],!!p){for(;b<p.line;)o=0,d=!1,r+=\";\",b++;d&&(r+=\",\",d=!1),r+=this.encodeVlq(p.column-o),o=p.column,r+=this.encodeVlq(0),r+=this.encodeVlq(p.sourceLine-a),a=p.sourceLine,r+=this.encodeVlq(p.sourceColumn-u),u=p.sourceColumn,d=!0}return g=t.sourceFiles?t.sourceFiles:t.filename?[t.filename]:[\"<anonymous>\"],y={version:3,file:t.generatedFile||\"\",sourceRoot:t.sourceRoot||\"\",sources:g,names:[],mappings:r},(t.sourceMap||t.inlineMap)&&(y.sourcesContent=[n]),y}},{key:\"encodeVlq\",value:function(t){var n,u,a,f;for(n=\"\",a=0>t?1:0,f=(_Mathabs(t)<<1)+a;f||!n;)u=f&s,f>>=i,f&&(u|=r),n+=this.encodeBase64(u);return n}},{key:\"encodeBase64\",value:function(t){return n[t]||function(){throw new Error(\"Cannot Base64 encode value: \"+t)}()}}]),e}(),n,r,i,s;return i=5,r=1<<i,s=r-1,n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",e}.call(this),e.exports=n}.call(this),e.exports}(),require[\"./coffeescript\"]=function(){var e={};return function(){var t=[].indexOf,n=require(\"./lexer\"),r,i,s,o,u,a,f,l,c,h,p,d,v,m,g;i=n.Lexer;var y=require(\"./parser\");d=y.parser,c=require(\"./helpers\"),s=require(\"./sourcemap\"),p=require(\"../../package.json\"),e.VERSION=p.version,e.FILE_EXTENSIONS=r=[\".coffee\",\".litcoffee\",\".coffee.md\"],e.helpers=c,o=function(e){switch(!1){case\"function\"!=typeof Buffer:return Buffer.from(e).toString(\"base64\");case\"function\"!=typeof btoa:return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return _StringfromCharCode(\"0x\"+t)}));default:throw new Error(\"Unable to base64 encode inline sourcemap.\")}},g=function(e){return function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n;try{return r.call(this,e,t)}catch(r){throw(n=r,\"string\"!=typeof e)?n:c.updateSyntaxError(n,e,t.filename)}}},m={},v={},e.compile=a=g(function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n,r,i,a,f,l,p,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P;if(t=Object.assign({},t),p=t.sourceMap||t.inlineMap||null==t.filename,a=t.filename||\"<anonymous>\",u(a,e),null==m[a]&&(m[a]=[]),m[a].push(e),p&&(x=new s),O=h.tokenize(e,t),t.referencedVars=function(){var e,t,n;for(n=[],e=0,t=O.length;e<t;e++)A=O[e],\"IDENTIFIER\"===A[0]&&n.push(A[1]);return n}(),null==t.bare||!0!==t.bare)for(y=0,E=O.length;y<E;y++)if(A=O[y],\"IMPORT\"===(N=A[0])||\"EXPORT\"===N){t.bare=!0;break}for(l=d.parse(O).compileToFragments(t),r=0,t.header&&(r+=1),t.shiftLine&&(r+=1),n=0,w=\"\",b=0,S=l.length;b<S;b++)f=l[b],p&&(f.locationData&&!/^[;\\s]*$/.test(f.code)&&x.add([f.locationData.first_line,f.locationData.first_column],[r,n],{noReplace:!0}),T=c.count(f.code,\"\\n\"),r+=T,T?n=f.code.length-(f.code.lastIndexOf(\"\\n\")+1):n+=f.code.length),w+=f.code;if(t.header&&(g=\"Generated by CoffeeScript \"+this.VERSION,w=\"// \"+g+\"\\n\"+w),p&&(P=x.generate(t,e),null==v[a]&&(v[a]=[]),v[a].push(x)),t.transpile){if(\"object\"!==_typeof(t.transpile))throw new Error(\"The transpile option must be given an object with options to pass to Babel\");M=t.transpile.transpile,delete t.transpile.transpile,_=Object.assign({},t.transpile),P&&null==_.inputSourceMap&&(_.inputSourceMap=P),D=M(w,_),w=D.code,P&&D.map&&(P=D.map)}return t.inlineMap&&(i=o(JSON.stringify(P)),k=\"//# sourceMappingURL=data:application/json;base64,\"+i,L=\"//# sourceURL=\"+(null==(C=t.filename)?\"coffeescript\":C),w=w+\"\\n\"+k+\"\\n\"+L),t.sourceMap?{js:w,sourceMap:x,v3SourceMap:JSON.stringify(P,null,2)}:w}),e.tokens=g(function(e,t){return h.tokenize(e,t)}),e.nodes=g(function(e,t){return\"string\"==typeof e?d.parse(h.tokenize(e,t)):d.parse(e)}),e.run=e.eval=e.register=function(){throw new Error(\"require index.coffee, not this file\")},h=new i,d.lexer={lex:function(){var t,n;if(n=d.tokens[this.pos++],n){var r=n,i=_slicedToArray(r,3);t=i[0],this.yytext=i[1],this.yylloc=i[2],d.errorToken=n.origin||n,this.yylineno=this.yylloc.first_line}else t=\"\";return t},setInput:function(t){return d.tokens=t,this.pos=0},upcomingInput:function(){return\"\"}},d.yy=require(\"./nodes\"),d.yy.parseError=function(e,t){var n=t.token,r=d,i,s,o,u,a;u=r.errorToken,a=r.tokens;var f=u,l=_slicedToArray(f,3);return s=l[0],o=l[1],i=l[2],o=function(){switch(!1){case u!==a[a.length-1]:return\"end of input\";case\"INDENT\"!==s&&\"OUTDENT\"!==s:return\"indentation\";case\"IDENTIFIER\"!==s&&\"NUMBER\"!==s&&\"INFINITY\"!==s&&\"STRING\"!==s&&\"STRING_START\"!==s&&\"REGEX\"!==s&&\"REGEX_START\"!==s:return s.replace(/_START$/,\"\").toLowerCase();default:return c.nameWhitespaceCharacter(o)}}(),c.throwSyntaxError(\"unexpected \"+o,i)},f=function(e,t){var n,r,i,s,o,u,a,f,l,c,h,p;return s=void 0,i=\"\",e.isNative()?i=\"native\":(e.isEval()?(s=e.getScriptNameOrSourceURL(),!s&&(i=e.getEvalOrigin()+\", \")):s=e.getFileName(),s||(s=\"<anonymous>\"),f=e.getLineNumber(),r=e.getColumnNumber(),c=t(s,f,r),i=c?s+\":\"+c[0]+\":\"+c[1]:s+\":\"+f+\":\"+r),o=e.getFunctionName(),u=e.isConstructor(),a=!e.isToplevel()&&!u,a?(l=e.getMethodName(),p=e.getTypeName(),o?(h=n=\"\",p&&o.indexOf(p)&&(h=p+\".\"),l&&o.indexOf(\".\"+l)!==o.length-l.length-1&&(n=\" [as \"+l+\"]\"),\"\"+h+o+n+\" (\"+i+\")\"):p+\".\"+(l||\"<anonymous>\")+\" (\"+i+\")\"):u?\"new \"+(o||\"<anonymous>\")+\" (\"+i+\")\":o?o+\" (\"+i+\")\":i},l=function(e,n,i){var s,o,u,f,l,h;if(\"<anonymous>\"===e||(f=e.slice(e.lastIndexOf(\".\")),0<=t.call(r,f))){if(\"<anonymous>\"!==e&&null!=v[e])return v[e][v[e].length-1];if(null!=v[\"<anonymous>\"])for(l=v[\"<anonymous>\"],o=l.length-1;0<=o;o+=-1)if(u=l[o],h=u.sourceLocation([n-1,i-1]),null!=(null==h?void 0:h[0])&&null!=h[1])return u;return null==m[e]?null:(s=a(m[e][m[e].length-1],{filename:e,sourceMap:!0,literate:c.isLiterate(e)}),s.sourceMap)}return null},Error.prepareStackTrace=function(t,n){var r,i,s;return s=function(e,t,n){var r,i;return i=l(e,t,n),null!=i&&(r=i.sourceLocation([t-1,n-1])),null==r?null:[r[0]+1,r[1]+1]},i=function(){var t,i,o;for(o=[],t=0,i=n.length;t<i&&(r=n[t],r.getFunction()!==e.run);t++)o.push(\"    at \"+f(r,s));return o}(),t.toString()+\"\\n\"+i.join(\"\\n\")+\"\\n\"},u=function(e,t){var n,r,i,s;if(r=t.split(/$/m)[0],s=null==r?void 0:r.match(/^#!\\s*([^\\s]+\\s*)(.*)/),n=null==s||null==(i=s[2])?void 0:i.split(/\\s/).filter(function(e){return\"\"!==e}),1<(null==n?void 0:n.length))return console.error(\"The script to be run begins with a shebang line with more than one\\nargument. This script will fail on platforms such as Linux which only\\nallow a single argument.\"),console.error(\"The shebang line was: '\"+r+\"' in file '\"+e+\"'\"),console.error(\"The arguments were: \"+JSON.stringify(n))}}.call(this),{exports:e}.exports}(),require[\"./browser\"]=function(){var exports={},module={exports:exports};return function(){var indexOf=[].indexOf,CoffeeScript,compile,runScripts;CoffeeScript=require(\"./coffeescript\"),compile=CoffeeScript.compile,CoffeeScript.eval=function(code){var options=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return null==options.bare&&(options.bare=!0),eval(compile(code,options))},CoffeeScript.run=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t.bare=!0,t.shiftLine=!0,Function(compile(e,t))()},module.exports=CoffeeScript,\"undefined\"==typeof window||null===window||(\"undefined\"!=typeof btoa&&null!==btoa&&\"undefined\"!=typeof JSON&&null!==JSON&&(compile=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t.inlineMap=!0,CoffeeScript.compile(e,t)}),CoffeeScript.load=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=3<arguments.length&&void 0!==arguments[3]&&arguments[3],i;return n.sourceFiles=[e],i=window.ActiveXObject?new window.ActiveXObject(\"Microsoft.XMLHTTP\"):new window.XMLHttpRequest,i.open(\"GET\",e,!0),\"overrideMimeType\"in i&&i.overrideMimeType(\"text/plain\"),i.onreadystatechange=function(){var s,u;if(4===i.readyState){if(0!==(u=i.status)&&200!==u)throw new Error(\"Could not load \"+e);if(s=[i.responseText,n],!r){var f;(f=CoffeeScript).run.apply(f,_toConsumableArray(s))}if(t)return t(s)}},i.send(null)},runScripts=function(){var e,t,n,r,i,s,o,u,a,f;for(f=window.document.getElementsByTagName(\"script\"),t=[\"text/coffeescript\",\"text/literate-coffeescript\"],e=function(){var e,n,r,i;for(i=[],e=0,n=f.length;e<n;e++)u=f[e],(r=u.type,0<=indexOf.call(t,r))&&i.push(u);return i}(),i=0,n=function(){var r;if(r=e[i],r instanceof Array){var s;return(s=CoffeeScript).run.apply(s,_toConsumableArray(r)),i++,n()}},r=s=0,o=e.length;s<o;r=++s)a=e[r],function(r,i){var s,o;return s={literate:r.type===t[1]},o=r.src||r.getAttribute(\"data-src\"),o?(s.filename=o,CoffeeScript.load(o,function(t){return e[i]=t,n()},s,!0)):(s.filename=r.id&&\"\"!==r.id?r.id:\"coffeescript\"+(0===i?\"\":i),s.sourceFiles=[\"embedded\"],e[i]=[r.innerHTML,s])}(a,r);return n()},window.addEventListener?window.addEventListener(\"DOMContentLoaded\",runScripts,!1):window.attachEvent(\"onload\",runScripts))}.call(this),module.exports}(),require[\"./browser\"]}();\"function\"==typeof define&&define.amd?define(function(){return CoffeeScript}):root.CoffeeScript=CoffeeScript})(this)}),define(\"ace/mode/coffee_worker\",[],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"../worker/mirror\").Mirror,s=e(\"../mode/coffee/coffee\");window.addEventListener=function(){};var o=t.Worker=function(e){i.call(this,e),this.setTimeout(250)};r.inherits(o,i),function(){this.onUpdate=function(){var e=this.doc.getValue(),t=[];try{s.compile(e)}catch(n){var r=n.location;r&&t.push({row:r.first_line,column:r.first_column,endRow:r.last_line,endColumn:r.last_column,text:n.message,type:\"error\"})}this.sender.emit(\"annotate\",t)}}.call(o.prototype)}),define(\"ace/lib/es5-shim\",[],function(e,t,n){function r(){}function w(e){try{return Object.defineProperty(e,\"sentinel\",{}),\"sentinel\"in e}catch(t){}}function H(e){return e=+e,e!==e?e=0:e!==0&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}function B(e){var t=typeof e;return e===null||t===\"undefined\"||t===\"boolean\"||t===\"number\"||t===\"string\"}function j(e){var t,n,r;if(B(e))return e;n=e.valueOf;if(typeof n==\"function\"){t=n.call(e);if(B(t))return t}r=e.toString;if(typeof r==\"function\"){t=r.call(e);if(B(t))return t}throw new TypeError}Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!=\"function\")throw new TypeError(\"Function.prototype.bind called on incompatible \"+n);var i=u.call(arguments,1),s=function(){if(this instanceof s){var e=n.apply(this,i.concat(u.call(arguments)));return Object(e)===e?e:this}return n.apply(t,i.concat(u.call(arguments)))};return n.prototype&&(r.prototype=n.prototype,s.prototype=new r,r.prototype=null),s});var i=Function.prototype.call,s=Array.prototype,o=Object.prototype,u=s.slice,a=i.bind(o.toString),f=i.bind(o.hasOwnProperty),l,c,h,p,d;if(d=f(o,\"__defineGetter__\"))l=i.bind(o.__defineGetter__),c=i.bind(o.__defineSetter__),h=i.bind(o.__lookupGetter__),p=i.bind(o.__lookupSetter__);if([1,2].splice(0).length!=2)if(!function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t=[],n;t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,\"XXX\"),n+1==t.length;if(n+1==t.length)return!0}())Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):e==void 0?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=u.call(arguments,2),s=i.length;if(e===n)s&&this.push.apply(this,i);else{var o=Math.min(t,n-e),a=e+o,f=a+s-o,l=n-a,c=n-o;if(f<a)for(var h=0;h<l;++h)this[f+h]=this[a+h];else if(f>a)for(h=l;h--;)this[f+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,i);else{this.length=c+s;for(h=0;h<s;++h)this[e+h]=i[h]}}return r};else{var v=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?v.apply(this,[e===void 0?0:e,t===void 0?this.length-e:t].concat(u.call(arguments,2))):[]}}Array.isArray||(Array.isArray=function(t){return a(t)==\"[object Array]\"});var m=Object(\"a\"),g=m[0]!=\"a\"||!(0 in m);Array.prototype.forEach||(Array.prototype.forEach=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=arguments[1],s=-1,o=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError;while(++s<o)s in r&&t.call(i,r[s],s,n)}),Array.prototype.map||(Array.prototype.map=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=Array(i),o=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var u=0;u<i;u++)u in r&&(s[u]=t.call(o,r[u],u,n));return s}),Array.prototype.filter||(Array.prototype.filter=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=[],o,u=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var f=0;f<i;f++)f in r&&(o=r[f],t.call(u,o,f,n)&&s.push(o));return s}),Array.prototype.every||(Array.prototype.every=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&!t.call(s,r[o],o,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&t.call(s,r[o],o,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduce of empty array with no initial value\");var s=0,o;if(arguments.length>=2)o=arguments[1];else do{if(s in r){o=r[s++];break}if(++s>=i)throw new TypeError(\"reduce of empty array with no initial value\")}while(!0);for(;s<i;s++)s in r&&(o=t.call(void 0,o,r[s],s,n));return o}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduceRight of empty array with no initial value\");var s,o=i-1;if(arguments.length>=2)s=arguments[1];else do{if(o in r){s=r[o--];break}if(--o<0)throw new TypeError(\"reduceRight of empty array with no initial value\")}while(!0);do o in this&&(s=t.call(void 0,s,r[o],o,n));while(o--);return s});if(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)Array.prototype.indexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=0;arguments.length>1&&(i=H(arguments[1])),i=i>=0?i:Math.max(0,r+i);for(;i<r;i++)if(i in n&&n[i]===t)return i;return-1};if(!Array.prototype.lastIndexOf||[0,1].lastIndexOf(0,-3)!=-1)Array.prototype.lastIndexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=r-1;arguments.length>1&&(i=Math.min(i,H(arguments[1]))),i=i>=0?i:r-Math.abs(i);for(;i>=0;i--)if(i in n&&t===n[i])return i;return-1};Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:o)});if(!Object.getOwnPropertyDescriptor){var y=\"Object.getOwnPropertyDescriptor called on a non-object: \";Object.getOwnPropertyDescriptor=function(t,n){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(y+t);if(!f(t,n))return;var r,i,s;r={enumerable:!0,configurable:!0};if(d){var u=t.__proto__;t.__proto__=o;var i=h(t,n),s=p(t,n);t.__proto__=u;if(i||s)return i&&(r.get=i),s&&(r.set=s),r}return r.value=t[n],r}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)});if(!Object.create){var b;Object.prototype.__proto__===null?b=function(){return{__proto__:null}}:b=function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(t,n){var r;if(t===null)r=b();else{if(typeof t!=\"object\")throw new TypeError(\"typeof prototype[\"+typeof t+\"] != 'object'\");var i=function(){};i.prototype=t,r=new i,r.__proto__=t}return n!==void 0&&Object.defineProperties(r,n),r}}if(Object.defineProperty){var E=w({}),S=typeof document==\"undefined\"||w(document.createElement(\"div\"));if(!E||!S)var x=Object.defineProperty}if(!Object.defineProperty||x){var T=\"Property description must be an object: \",N=\"Object.defineProperty called on non-object: \",C=\"getters & setters can not be defined on this javascript engine\";Object.defineProperty=function(t,n,r){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(N+t);if(typeof r!=\"object\"&&typeof r!=\"function\"||r===null)throw new TypeError(T+r);if(x)try{return x.call(Object,t,n,r)}catch(i){}if(f(r,\"value\"))if(d&&(h(t,n)||p(t,n))){var s=t.__proto__;t.__proto__=o,delete t[n],t[n]=r.value,t.__proto__=s}else t[n]=r.value;else{if(!d)throw new TypeError(C);f(r,\"get\")&&l(t,n,r.get),f(r,\"set\")&&c(t,n,r.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,n){for(var r in n)f(n,r)&&Object.defineProperty(t,r,n[r]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(k){Object.freeze=function(t){return function(n){return typeof n==\"function\"?n:t(n)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;var n=\"\";while(f(t,n))n+=\"?\";t[n]=!0;var r=f(t,n);return delete t[n],r});if(!Object.keys){var L=!0,A=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],O=A.length;for(var M in{toString:null})L=!1;Object.keys=function I(e){if(typeof e!=\"object\"&&typeof e!=\"function\"||e===null)throw new TypeError(\"Object.keys called on a non-object\");var I=[];for(var t in e)f(e,t)&&I.push(t);if(L)for(var n=0,r=O;n<r;n++){var i=A[n];f(e,i)&&I.push(i)}return I}}Date.now||(Date.now=function(){return(new Date).getTime()});var _=\"\t\\n\\x0b\\f\\r \\u00a0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029\\ufeff\";if(!String.prototype.trim){_=\"[\"+_+\"]\";var D=new RegExp(\"^\"+_+_+\"*\"),P=new RegExp(_+_+\"*$\");String.prototype.trim=function(){return String(this).replace(D,\"\").replace(P,\"\")}}var F=function(e){if(e==null)throw new TypeError(\"can't convert \"+e+\" to object\");return Object(e)}})"
  },
  {
    "path": "pyp5js/http_local/static/js/ace/worker-css.js",
    "content": "\"no use strict\";!function(e){function t(e,t){var n=e,r=\"\";while(n){var i=t[n];if(typeof i==\"string\")return i+r;if(i)return i.location.replace(/\\/*$/,\"/\")+(r||i.main||i.name);if(i===!1)return\"\";var s=n.lastIndexOf(\"/\");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!=\"undefined\"&&e.document)return;if(e.require&&e.define)return;e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:\"log\",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:\"error\",data:{message:e,data:i.data,file:t,line:n,col:r,stack:i.stack}})},e.normalizeModule=function(t,n){if(n.indexOf(\"!\")!==-1){var r=n.split(\"!\");return e.normalizeModule(t,r[0])+\"!\"+e.normalizeModule(t,r[1])}if(n.charAt(0)==\".\"){var i=t.split(\"/\").slice(0,-1).join(\"/\");n=(i?i+\"/\":\"\")+n;while(n.indexOf(\".\")!==-1&&s!=n){var s=n;n=n.replace(/^\\.\\//,\"\").replace(/\\/\\.\\//,\"/\").replace(/[^\\/]+\\/\\.\\.\\//,\"\")}}return n},e.require=function(r,i){i||(i=r,r=null);if(!i.charAt)throw new Error(\"worker.js require() accepts only (parentId, id) as arguments\");i=e.normalizeModule(r,i);var s=e.require.modules[i];if(s)return s.initialized||(s.initialized=!0,s.exports=s.factory().exports),s.exports;if(!e.require.tlns)return console.log(\"unable to load \"+i);var o=t(i,e.require.tlns);return o.slice(-3)!=\".js\"&&(o+=\".js\"),e.require.id=i,e.require.modules[i]={},importScripts(o),e.require(r,i)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){arguments.length==2?(r=n,typeof t!=\"string\"&&(n=t,t=e.require.id)):arguments.length==1&&(r=t,n=[],t=e.require.id);if(typeof r!=\"function\"){e.require.modules[t]={exports:r,initialized:!0};return}n.length||(n=[\"require\",\"exports\",\"module\"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case\"require\":return i;case\"exports\":return e.exports;case\"module\":return e;default:return i(t)}}));return t&&(e.exports=t),e}}},e.define.amd={},require.tlns={},e.initBaseUrls=function(t){for(var n in t)require.tlns[n]=t[n]},e.initSender=function(){var n=e.require(\"ace/lib/event_emitter\").EventEmitter,r=e.require(\"ace/lib/oop\"),i=function(){};return function(){r.implement(this,n),this.callback=function(e,t){postMessage({type:\"call\",id:t,data:e})},this.emit=function(e,t){postMessage({type:\"event\",name:e,data:t})}}.call(i.prototype),new i};var n=e.main=null,r=e.sender=null;e.onmessage=function(t){var i=t.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw new Error(\"Unknown command:\"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),require(\"ace/lib/es5-shim\"),r=e.sender=e.initSender();var s=require(i.module)[i.classname];n=e.main=new s(r)}}}(this),define(\"ace/lib/oop\",[],function(e,t,n){\"use strict\";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),define(\"ace/lib/lang\",[],function(e,t,n){\"use strict\";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split(\"\").reverse().join(\"\")},t.stringRepeat=function(e,t){var n=\"\";while(t>0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\\s\\s*/,i=/\\s\\s*$/;t.stringTrimLeft=function(e){return e.replace(r,\"\")},t.stringTrimRight=function(e){return e.replace(i,\"\")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)e[n]&&typeof e[n]==\"object\"?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function s(e){if(typeof e!=\"object\"||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=s(e[n]);return t}if(Object.prototype.toString.call(e)!==\"[object Object]\")return e;t={};for(var n in e)t[n]=s(e[n]);return t},t.arrayToMap=function(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\")},t.escapeHTML=function(e){return(\"\"+e).replace(/&/g,\"&#38;\").replace(/\"/g,\"&#34;\").replace(/'/g,\"&#39;\").replace(/</g,\"&#60;\")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){n==null&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),define(\"ace/range\",[],function(e,t,n){\"use strict\";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return\"Range: [\"+this.start.row+\"/\"+this.start.column+\"] -> [\"+this.end.row+\"/\"+this.end.column+\"]\"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e==\"object\"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e==\"object\"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?t<this.start.column?-1:t>this.end.column?1:0:e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)var n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)var r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(n==0)return this;if(n==-1)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define(\"ace/apply_delta\",[],function(e,t,n){\"use strict\";function r(e,t){throw console.log(\"Invalid Delta:\",e),\"Invalid Delta: \"+t}function i(e,t){return t.row>=0&&t.row<e.length&&t.column>=0&&t.column<=e[t.row].length}function s(e,t){t.action!=\"insert\"&&t.action!=\"remove\"&&r(t,\"delta.action must be 'insert' or 'remove'\"),t.lines instanceof Array||r(t,\"delta.lines must be an Array\"),(!t.start||!t.end)&&r(t,\"delta.start/end must be an present\");var n=t.start;i(e,t.start)||r(t,\"delta.start must be contained in document\");var s=t.end;t.action==\"remove\"&&!i(e,s)&&r(t,\"delta.end must contained in document for 'remove' actions\");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,\"delta.range must match delta lines\")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||\"\";switch(t.action){case\"insert\":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case\"remove\":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),define(\"ace/lib/event_emitter\",[],function(e,t,n){\"use strict\";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!=\"object\"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length;o++){n[o](t,this);if(t.propagationStopped)break}if(r&&!t.defaultPrevented)return r(t,this)},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(!n)return;n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)},r.once=function(e,t){var n=this;this.on(e,function r(){n.off(e,r),t.apply(null,arguments)});if(!t)return new Promise(function(e){t=e})},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;n||(n=this._defaultHandlers={_disabled_:{}});if(n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var s=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(!n)return;var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);i!=-1&&r.splice(i,1)}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?\"unshift\":\"push\"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(!n)return;var r=n.indexOf(t);r!==-1&&n.splice(r,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=r}),define(\"ace/anchor\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),typeof n==\"undefined\"?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i=t.action==\"insert\",s=(i?1:-1)*(t.end.row-t.start.row),o=(i?1:-1)*(t.end.column-t.start.column),u=t.start,a=i?u:t.end;return e(n,u,r)?{row:n.row,column:n.column}:e(a,n,!r)?{row:n.row+s,column:n.column+(n.row==a.row?o:0)}:{row:u.row,column:u.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(e.start.row==e.end.row&&e.start.row!=this.row)return;if(e.start.row>this.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal(\"change\",{old:i,value:r})},this.detach=function(){this.document.off(\"change\",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on(\"change\",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),define(\"ace/document\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./apply_delta\").applyDelta,s=e(\"./lib/event_emitter\").EventEmitter,o=e(\"./range\").Range,u=e(\"./anchor\").Anchor,a=function(e){this.$lines=[\"\"],e.length===0?this.$lines=[\"\"]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},\"aaa\".split(/a/).length===0?this.$split=function(e){return e.replace(/\\r\\n|\\r/g,\"\\n\").split(\"\\n\")}:this.$split=function(e){return e.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=t?t[1]:\"\\n\",this._signal(\"changeNewLineMode\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\"windows\":return\"\\r\\n\";case\"unix\":return\"\\n\";default:return this.$autoNewLine||\"\\n\"}},this.$autoNewLine=\"\",this.$newLineMode=\"auto\",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal(\"changeNewLineMode\")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==\"\\r\\n\"||e==\"\\r\"||e==\"\\n\"},this.getLine=function(e){return this.$lines[e]||\"\"},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||\"\").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\"),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\"),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\"),this.insertMergedLines(e,[\"\",\"\"])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:\"insert\",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([\"\"]),n=0):(t=[\"\"].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(t.length==1?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:\"insert\",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:\"remove\",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:\"remove\",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=new o(i,s,u,a),l=this.$lines.slice(e,t+1);return this.applyDelta({start:f.start,end:f.end,action:\"remove\",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:\"remove\",lines:[\"\",\"\"]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action==\"insert\";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal(\"change\",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action==\"remove\"&&e.start.row<t&&e.end.row<t||e.action==\"insert\"&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length-t+1,i=e.start.row,s=e.start.column;for(var o=0,u=0;o<r;o=u){u+=t-1;var a=n.slice(o,u);a.push(\"\"),this.applyDelta({start:this.pos(i+o,s),end:this.pos(i+u,s=0),action:e.action,lines:a},!0)}e.lines=n.slice(o),e.start.row=i+o,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action==\"insert\"?\"remove\":\"insert\",lines:e.lines.slice()})},this.indexToPosition=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length;for(var i=t||0,s=n.length;i<s;i++){e-=n[i].length+r;if(e<0)return{row:i,column:e+n[i].length+r}}return{row:s-1,column:e+n[s-1].length+r}},this.positionToIndex=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length);for(var o=t||0;o<s;++o)i+=n[o].length+r;return i+e.column}}).call(a.prototype),t.Document=a}),define(\"ace/worker/mirror\",[],function(e,t,n){\"use strict\";var r=e(\"../range\").Range,i=e(\"../document\").Document,s=e(\"../lib/lang\"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new i(\"\"),n=this.deferredUpdate=s.delayedCall(this.onUpdate.bind(this)),r=this;e.on(\"change\",function(e){var i=e.data;if(i[0].start)t.applyDeltas(i);else for(var s=0;s<i.length;s+=2){if(Array.isArray(i[s+1]))var o={action:\"insert\",start:i[s],lines:i[s+1]};else var o={action:\"remove\",start:i[s],end:i[s+1]};t.applyDelta(o,!0)}if(r.$timeout)return n.schedule(r.$timeout);r.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),define(\"ace/mode/css/csslint\",[],function(require,exports,module){function objectToString(e){return Object.prototype.toString.call(e)}function clone(e,t,n,r){function u(e,n){if(e===null)return null;if(n==0)return e;var a;if(typeof e!=\"object\")return e;if(util.isArray(e))a=[];else if(util.isRegExp(e))a=new RegExp(e.source,util.getRegExpFlags(e)),e.lastIndex&&(a.lastIndex=e.lastIndex);else if(util.isDate(e))a=new Date(e.getTime());else{if(o&&Buffer.isBuffer(e))return a=new Buffer(e.length),e.copy(a),a;typeof r==\"undefined\"?a=Object.create(Object.getPrototypeOf(e)):a=Object.create(r)}if(t){var f=i.indexOf(e);if(f!=-1)return s[f];i.push(e),s.push(a)}for(var l in e)a[l]=u(e[l],n-1);return a}var i=[],s=[],o=typeof Buffer!=\"undefined\";return typeof t==\"undefined\"&&(t=!0),typeof n==\"undefined\"&&(n=Infinity),u(e,n)}function Reporter(e,t){this.messages=[],this.stats=[],this.lines=e,this.ruleset=t}var parserlib={};(function(){function e(){this._listeners={}}function t(e){this._input=e.replace(/\\n\\r?/g,\"\\n\"),this._line=1,this._col=1,this._cursor=0}function n(e,t,n){this.col=n,this.line=t,this.message=e}function r(e,t,n,r){this.col=n,this.line=t,this.text=e,this.type=r}function i(e,n){this._reader=e?new t(e.toString()):null,this._token=null,this._tokenData=n,this._lt=[],this._ltIndex=0,this._ltIndexCache=[]}e.prototype={constructor:e,addListener:function(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)},fire:function(e){typeof e==\"string\"&&(e={type:e}),typeof e.target!=\"undefined\"&&(e.target=this);if(typeof e.type==\"undefined\")throw new Error(\"Event object missing 'type' property.\");if(this._listeners[e.type]){var t=this._listeners[e.type].concat();for(var n=0,r=t.length;n<r;n++)t[n].call(this,e)}},removeListener:function(e,t){if(this._listeners[e]){var n=this._listeners[e];for(var r=0,i=n.length;r<i;r++)if(n[r]===t){n.splice(r,1);break}}}},t.prototype={constructor:t,getCol:function(){return this._col},getLine:function(){return this._line},eof:function(){return this._cursor==this._input.length},peek:function(e){var t=null;return e=typeof e==\"undefined\"?1:e,this._cursor<this._input.length&&(t=this._input.charAt(this._cursor+e-1)),t},read:function(){var e=null;return this._cursor<this._input.length&&(this._input.charAt(this._cursor)==\"\\n\"?(this._line++,this._col=1):this._col++,e=this._input.charAt(this._cursor++)),e},mark:function(){this._bookmark={cursor:this._cursor,line:this._line,col:this._col}},reset:function(){this._bookmark&&(this._cursor=this._bookmark.cursor,this._line=this._bookmark.line,this._col=this._bookmark.col,delete this._bookmark)},readTo:function(e){var t=\"\",n;while(t.length<e.length||t.lastIndexOf(e)!=t.length-e.length){n=this.read();if(!n)throw new Error('Expected \"'+e+'\" at line '+this._line+\", col \"+this._col+\".\");t+=n}return t},readWhile:function(e){var t=\"\",n=this.read();while(n!==null&&e(n))t+=n,n=this.read();return t},readMatch:function(e){var t=this._input.substring(this._cursor),n=null;return typeof e==\"string\"?t.indexOf(e)===0&&(n=this.readCount(e.length)):e instanceof RegExp&&e.test(t)&&(n=this.readCount(RegExp.lastMatch.length)),n},readCount:function(e){var t=\"\";while(e--)t+=this.read();return t}},n.prototype=new Error,r.fromToken=function(e){return new r(e.value,e.startLine,e.startCol)},r.prototype={constructor:r,valueOf:function(){return this.text},toString:function(){return this.text}},i.createTokenData=function(e){var t=[],n={},r=e.concat([]),i=0,s=r.length+1;r.UNKNOWN=-1,r.unshift({name:\"EOF\"});for(;i<s;i++)t.push(r[i].name),r[r[i].name]=i,r[i].text&&(n[r[i].text]=i);return r.name=function(e){return t[e]},r.type=function(e){return n[e]},r},i.prototype={constructor:i,match:function(e,t){e instanceof Array||(e=[e]);var n=this.get(t),r=0,i=e.length;while(r<i)if(n==e[r++])return!0;return this.unget(),!1},mustMatch:function(e,t){var r;e instanceof Array||(e=[e]);if(!this.match.apply(this,arguments))throw r=this.LT(1),new n(\"Expected \"+this._tokenData[e[0]].name+\" at line \"+r.startLine+\", col \"+r.startCol+\".\",r.startLine,r.startCol)},advance:function(e,t){while(this.LA(0)!==0&&!this.match(e,t))this.get();return this.LA(0)},get:function(e){var t=this._tokenData,n=this._reader,r,i=0,s=t.length,o=!1,u,a;if(this._lt.length&&this._ltIndex>=0&&this._ltIndex<this._lt.length){i++,this._token=this._lt[this._ltIndex++],a=t[this._token.type];while(a.channel!==undefined&&e!==a.channel&&this._ltIndex<this._lt.length)this._token=this._lt[this._ltIndex++],a=t[this._token.type],i++;if((a.channel===undefined||e===a.channel)&&this._ltIndex<=this._lt.length)return this._ltIndexCache.push(i),this._token.type}return u=this._getToken(),u.type>-1&&!t[u.type].hide&&(u.channel=t[u.type].channel,this._token=u,this._lt.push(u),this._ltIndexCache.push(this._lt.length-this._ltIndex+i),this._lt.length>5&&this._lt.shift(),this._ltIndexCache.length>5&&this._ltIndexCache.shift(),this._ltIndex=this._lt.length),a=t[u.type],a&&(a.hide||a.channel!==undefined&&e!==a.channel)?this.get(e):u.type},LA:function(e){var t=e,n;if(e>0){if(e>5)throw new Error(\"Too much lookahead.\");while(t)n=this.get(),t--;while(t<e)this.unget(),t++}else if(e<0){if(!this._lt[this._ltIndex+e])throw new Error(\"Too much lookbehind.\");n=this._lt[this._ltIndex+e].type}else n=this._token.type;return n},LT:function(e){return this.LA(e),this._lt[this._ltIndex+e-1]},peek:function(){return this.LA(1)},token:function(){return this._token},tokenName:function(e){return e<0||e>this._tokenData.length?\"UNKNOWN_TOKEN\":this._tokenData[e].name},tokenType:function(e){return this._tokenData[e]||-1},unget:function(){if(!this._ltIndexCache.length)throw new Error(\"Too much lookahead.\");this._ltIndex-=this._ltIndexCache.pop(),this._token=this._lt[this._ltIndex-1]}},parserlib.util={StringReader:t,SyntaxError:n,SyntaxUnit:r,EventTarget:e,TokenStreamBase:i}})(),function(){function Combinator(e,t,n){SyntaxUnit.call(this,e,t,n,Parser.COMBINATOR_TYPE),this.type=\"unknown\",/^\\s+$/.test(e)?this.type=\"descendant\":e==\">\"?this.type=\"child\":e==\"+\"?this.type=\"adjacent-sibling\":e==\"~\"&&(this.type=\"sibling\")}function MediaFeature(e,t){SyntaxUnit.call(this,\"(\"+e+(t!==null?\":\"+t:\"\")+\")\",e.startLine,e.startCol,Parser.MEDIA_FEATURE_TYPE),this.name=e,this.value=t}function MediaQuery(e,t,n,r,i){SyntaxUnit.call(this,(e?e+\" \":\"\")+(t?t:\"\")+(t&&n.length>0?\" and \":\"\")+n.join(\" and \"),r,i,Parser.MEDIA_QUERY_TYPE),this.modifier=e,this.mediaType=t,this.features=n}function Parser(e){EventTarget.call(this),this.options=e||{},this._tokenStream=null}function PropertyName(e,t,n,r){SyntaxUnit.call(this,e,n,r,Parser.PROPERTY_NAME_TYPE),this.hack=t}function PropertyValue(e,t,n){SyntaxUnit.call(this,e.join(\" \"),t,n,Parser.PROPERTY_VALUE_TYPE),this.parts=e}function PropertyValueIterator(e){this._i=0,this._parts=e.parts,this._marks=[],this.value=e}function PropertyValuePart(text,line,col){SyntaxUnit.call(this,text,line,col,Parser.PROPERTY_VALUE_PART_TYPE),this.type=\"unknown\";var temp;if(/^([+\\-]?[\\d\\.]+)([a-z]+)$/i.test(text)){this.type=\"dimension\",this.value=+RegExp.$1,this.units=RegExp.$2;switch(this.units.toLowerCase()){case\"em\":case\"rem\":case\"ex\":case\"px\":case\"cm\":case\"mm\":case\"in\":case\"pt\":case\"pc\":case\"ch\":case\"vh\":case\"vw\":case\"fr\":case\"vmax\":case\"vmin\":this.type=\"length\";break;case\"deg\":case\"rad\":case\"grad\":this.type=\"angle\";break;case\"ms\":case\"s\":this.type=\"time\";break;case\"hz\":case\"khz\":this.type=\"frequency\";break;case\"dpi\":case\"dpcm\":this.type=\"resolution\"}}else/^([+\\-]?[\\d\\.]+)%$/i.test(text)?(this.type=\"percentage\",this.value=+RegExp.$1):/^([+\\-]?\\d+)$/i.test(text)?(this.type=\"integer\",this.value=+RegExp.$1):/^([+\\-]?[\\d\\.]+)$/i.test(text)?(this.type=\"number\",this.value=+RegExp.$1):/^#([a-f0-9]{3,6})/i.test(text)?(this.type=\"color\",temp=RegExp.$1,temp.length==3?(this.red=parseInt(temp.charAt(0)+temp.charAt(0),16),this.green=parseInt(temp.charAt(1)+temp.charAt(1),16),this.blue=parseInt(temp.charAt(2)+temp.charAt(2),16)):(this.red=parseInt(temp.substring(0,2),16),this.green=parseInt(temp.substring(2,4),16),this.blue=parseInt(temp.substring(4,6),16))):/^rgb\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)/i.test(text)?(this.type=\"color\",this.red=+RegExp.$1,this.green=+RegExp.$2,this.blue=+RegExp.$3):/^rgb\\(\\s*(\\d+)%\\s*,\\s*(\\d+)%\\s*,\\s*(\\d+)%\\s*\\)/i.test(text)?(this.type=\"color\",this.red=+RegExp.$1*255/100,this.green=+RegExp.$2*255/100,this.blue=+RegExp.$3*255/100):/^rgba\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*([\\d\\.]+)\\s*\\)/i.test(text)?(this.type=\"color\",this.red=+RegExp.$1,this.green=+RegExp.$2,this.blue=+RegExp.$3,this.alpha=+RegExp.$4):/^rgba\\(\\s*(\\d+)%\\s*,\\s*(\\d+)%\\s*,\\s*(\\d+)%\\s*,\\s*([\\d\\.]+)\\s*\\)/i.test(text)?(this.type=\"color\",this.red=+RegExp.$1*255/100,this.green=+RegExp.$2*255/100,this.blue=+RegExp.$3*255/100,this.alpha=+RegExp.$4):/^hsl\\(\\s*(\\d+)\\s*,\\s*(\\d+)%\\s*,\\s*(\\d+)%\\s*\\)/i.test(text)?(this.type=\"color\",this.hue=+RegExp.$1,this.saturation=+RegExp.$2/100,this.lightness=+RegExp.$3/100):/^hsla\\(\\s*(\\d+)\\s*,\\s*(\\d+)%\\s*,\\s*(\\d+)%\\s*,\\s*([\\d\\.]+)\\s*\\)/i.test(text)?(this.type=\"color\",this.hue=+RegExp.$1,this.saturation=+RegExp.$2/100,this.lightness=+RegExp.$3/100,this.alpha=+RegExp.$4):/^url\\([\"']?([^\\)\"']+)[\"']?\\)/i.test(text)?(this.type=\"uri\",this.uri=RegExp.$1):/^([^\\(]+)\\(/i.test(text)?(this.type=\"function\",this.name=RegExp.$1,this.value=text):/^[\"'][^\"']*[\"']/.test(text)?(this.type=\"string\",this.value=eval(text)):Colors[text.toLowerCase()]?(this.type=\"color\",temp=Colors[text.toLowerCase()].substring(1),this.red=parseInt(temp.substring(0,2),16),this.green=parseInt(temp.substring(2,4),16),this.blue=parseInt(temp.substring(4,6),16)):/^[\\,\\/]$/.test(text)?(this.type=\"operator\",this.value=text):/^[a-z\\-_\\u0080-\\uFFFF][a-z0-9\\-_\\u0080-\\uFFFF]*$/i.test(text)&&(this.type=\"identifier\",this.value=text)}function Selector(e,t,n){SyntaxUnit.call(this,e.join(\" \"),t,n,Parser.SELECTOR_TYPE),this.parts=e,this.specificity=Specificity.calculate(this)}function SelectorPart(e,t,n,r,i){SyntaxUnit.call(this,n,r,i,Parser.SELECTOR_PART_TYPE),this.elementName=e,this.modifiers=t}function SelectorSubPart(e,t,n,r){SyntaxUnit.call(this,e,n,r,Parser.SELECTOR_SUB_PART_TYPE),this.type=t,this.args=[]}function Specificity(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}function isHexDigit(e){return e!==null&&h.test(e)}function isDigit(e){return e!==null&&/\\d/.test(e)}function isWhitespace(e){return e!==null&&/\\s/.test(e)}function isNewLine(e){return e!==null&&nl.test(e)}function isNameStart(e){return e!==null&&/[a-z_\\u0080-\\uFFFF\\\\]/i.test(e)}function isNameChar(e){return e!==null&&(isNameStart(e)||/[0-9\\-\\\\]/.test(e))}function isIdentStart(e){return e!==null&&(isNameStart(e)||/\\-\\\\/.test(e))}function mix(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function TokenStream(e){TokenStreamBase.call(this,e,Tokens)}function ValidationError(e,t,n){this.col=n,this.line=t,this.message=e}var EventTarget=parserlib.util.EventTarget,TokenStreamBase=parserlib.util.TokenStreamBase,StringReader=parserlib.util.StringReader,SyntaxError=parserlib.util.SyntaxError,SyntaxUnit=parserlib.util.SyntaxUnit,Colors={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgrey:\"#a9a9a9\",darkgreen:\"#006400\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",ghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",grey:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgrey:\"#d3d3d3\",lightgreen:\"#90ee90\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",lightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370d8\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",moccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#d87093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",seashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\",activeBorder:\"Active window border.\",activecaption:\"Active window caption.\",appworkspace:\"Background color of multiple document interface.\",background:\"Desktop background.\",buttonface:\"The face background color for 3-D elements that appear 3-D due to one layer of surrounding border.\",buttonhighlight:\"The color of the border facing the light source for 3-D elements that appear 3-D due to one layer of surrounding border.\",buttonshadow:\"The color of the border away from the light source for 3-D elements that appear 3-D due to one layer of surrounding border.\",buttontext:\"Text on push buttons.\",captiontext:\"Text in caption, size box, and scrollbar arrow box.\",graytext:\"Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.\",greytext:\"Greyed (disabled) text. This color is set to #000 if the current display driver does not support a solid grey color.\",highlight:\"Item(s) selected in a control.\",highlighttext:\"Text of item(s) selected in a control.\",inactiveborder:\"Inactive window border.\",inactivecaption:\"Inactive window caption.\",inactivecaptiontext:\"Color of text in an inactive caption.\",infobackground:\"Background color for tooltip controls.\",infotext:\"Text color for tooltip controls.\",menu:\"Menu background.\",menutext:\"Text in menus.\",scrollbar:\"Scroll bar gray area.\",threeddarkshadow:\"The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.\",threedface:\"The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border.\",threedhighlight:\"The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.\",threedlightshadow:\"The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.\",threedshadow:\"The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.\",window:\"Window background.\",windowframe:\"Window frame.\",windowtext:\"Text in windows.\"};Combinator.prototype=new SyntaxUnit,Combinator.prototype.constructor=Combinator,MediaFeature.prototype=new SyntaxUnit,MediaFeature.prototype.constructor=MediaFeature,MediaQuery.prototype=new SyntaxUnit,MediaQuery.prototype.constructor=MediaQuery,Parser.DEFAULT_TYPE=0,Parser.COMBINATOR_TYPE=1,Parser.MEDIA_FEATURE_TYPE=2,Parser.MEDIA_QUERY_TYPE=3,Parser.PROPERTY_NAME_TYPE=4,Parser.PROPERTY_VALUE_TYPE=5,Parser.PROPERTY_VALUE_PART_TYPE=6,Parser.SELECTOR_TYPE=7,Parser.SELECTOR_PART_TYPE=8,Parser.SELECTOR_SUB_PART_TYPE=9,Parser.prototype=function(){var e=new EventTarget,t,n={constructor:Parser,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var e=this._tokenStream,t=null,n,r,i;this.fire(\"startstylesheet\"),this._charset(),this._skipCruft();while(e.peek()==Tokens.IMPORT_SYM)this._import(),this._skipCruft();while(e.peek()==Tokens.NAMESPACE_SYM)this._namespace(),this._skipCruft();i=e.peek();while(i>Tokens.EOF){try{switch(i){case Tokens.MEDIA_SYM:this._media(),this._skipCruft();break;case Tokens.PAGE_SYM:this._page(),this._skipCruft();break;case Tokens.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case Tokens.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case Tokens.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case Tokens.UNKNOWN_SYM:e.get();if(!!this.options.strict)throw new SyntaxError(\"Unknown @ rule.\",e.LT(0).startLine,e.LT(0).startCol);this.fire({type:\"error\",error:null,message:\"Unknown @ rule: \"+e.LT(0).value+\".\",line:e.LT(0).startLine,col:e.LT(0).startCol}),n=0;while(e.advance([Tokens.LBRACE,Tokens.RBRACE])==Tokens.LBRACE)n++;while(n)e.advance([Tokens.RBRACE]),n--;break;case Tokens.S:this._readWhitespace();break;default:if(!this._ruleset())switch(i){case Tokens.CHARSET_SYM:throw r=e.LT(1),this._charset(!1),new SyntaxError(\"@charset not allowed here.\",r.startLine,r.startCol);case Tokens.IMPORT_SYM:throw r=e.LT(1),this._import(!1),new SyntaxError(\"@import not allowed here.\",r.startLine,r.startCol);case Tokens.NAMESPACE_SYM:throw r=e.LT(1),this._namespace(!1),new SyntaxError(\"@namespace not allowed here.\",r.startLine,r.startCol);default:e.get(),this._unexpectedToken(e.token())}}}catch(s){if(!(s instanceof SyntaxError&&!this.options.strict))throw s;this.fire({type:\"error\",error:s,message:s.message,line:s.line,col:s.col})}i=e.peek()}i!=Tokens.EOF&&this._unexpectedToken(e.token()),this.fire(\"endstylesheet\")},_charset:function(e){var t=this._tokenStream,n,r,i,s;t.match(Tokens.CHARSET_SYM)&&(i=t.token().startLine,s=t.token().startCol,this._readWhitespace(),t.mustMatch(Tokens.STRING),r=t.token(),n=r.value,this._readWhitespace(),t.mustMatch(Tokens.SEMICOLON),e!==!1&&this.fire({type:\"charset\",charset:n,line:i,col:s}))},_import:function(e){var t=this._tokenStream,n,r,i,s=[];t.mustMatch(Tokens.IMPORT_SYM),i=t.token(),this._readWhitespace(),t.mustMatch([Tokens.STRING,Tokens.URI]),r=t.token().value.replace(/^(?:url\\()?[\"']?([^\"']+?)[\"']?\\)?$/,\"$1\"),this._readWhitespace(),s=this._media_query_list(),t.mustMatch(Tokens.SEMICOLON),this._readWhitespace(),e!==!1&&this.fire({type:\"import\",uri:r,media:s,line:i.startLine,col:i.startCol})},_namespace:function(e){var t=this._tokenStream,n,r,i,s;t.mustMatch(Tokens.NAMESPACE_SYM),n=t.token().startLine,r=t.token().startCol,this._readWhitespace(),t.match(Tokens.IDENT)&&(i=t.token().value,this._readWhitespace()),t.mustMatch([Tokens.STRING,Tokens.URI]),s=t.token().value.replace(/(?:url\\()?[\"']([^\"']+)[\"']\\)?/,\"$1\"),this._readWhitespace(),t.mustMatch(Tokens.SEMICOLON),this._readWhitespace(),e!==!1&&this.fire({type:\"namespace\",prefix:i,uri:s,line:n,col:r})},_media:function(){var e=this._tokenStream,t,n,r;e.mustMatch(Tokens.MEDIA_SYM),t=e.token().startLine,n=e.token().startCol,this._readWhitespace(),r=this._media_query_list(),e.mustMatch(Tokens.LBRACE),this._readWhitespace(),this.fire({type:\"startmedia\",media:r,line:t,col:n});for(;;)if(e.peek()==Tokens.PAGE_SYM)this._page();else if(e.peek()==Tokens.FONT_FACE_SYM)this._font_face();else if(e.peek()==Tokens.VIEWPORT_SYM)this._viewport();else if(!this._ruleset())break;e.mustMatch(Tokens.RBRACE),this._readWhitespace(),this.fire({type:\"endmedia\",media:r,line:t,col:n})},_media_query_list:function(){var e=this._tokenStream,t=[];this._readWhitespace(),(e.peek()==Tokens.IDENT||e.peek()==Tokens.LPAREN)&&t.push(this._media_query());while(e.match(Tokens.COMMA))this._readWhitespace(),t.push(this._media_query());return t},_media_query:function(){var e=this._tokenStream,t=null,n=null,r=null,i=[];e.match(Tokens.IDENT)&&(n=e.token().value.toLowerCase(),n!=\"only\"&&n!=\"not\"?(e.unget(),n=null):r=e.token()),this._readWhitespace(),e.peek()==Tokens.IDENT?(t=this._media_type(),r===null&&(r=e.token())):e.peek()==Tokens.LPAREN&&(r===null&&(r=e.LT(1)),i.push(this._media_expression()));if(t===null&&i.length===0)return null;this._readWhitespace();while(e.match(Tokens.IDENT))e.token().value.toLowerCase()!=\"and\"&&this._unexpectedToken(e.token()),this._readWhitespace(),i.push(this._media_expression());return new MediaQuery(n,t,i,r.startLine,r.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var e=this._tokenStream,t=null,n,r=null;return e.mustMatch(Tokens.LPAREN),this._readWhitespace(),t=this._media_feature(),this._readWhitespace(),e.match(Tokens.COLON)&&(this._readWhitespace(),n=e.LT(1),r=this._expression()),e.mustMatch(Tokens.RPAREN),this._readWhitespace(),new MediaFeature(t,r?new SyntaxUnit(r,n.startLine,n.startCol):null)},_media_feature:function(){var e=this._tokenStream;return e.mustMatch(Tokens.IDENT),SyntaxUnit.fromToken(e.token())},_page:function(){var e=this._tokenStream,t,n,r=null,i=null;e.mustMatch(Tokens.PAGE_SYM),t=e.token().startLine,n=e.token().startCol,this._readWhitespace(),e.match(Tokens.IDENT)&&(r=e.token().value,r.toLowerCase()===\"auto\"&&this._unexpectedToken(e.token())),e.peek()==Tokens.COLON&&(i=this._pseudo_page()),this._readWhitespace(),this.fire({type:\"startpage\",id:r,pseudo:i,line:t,col:n}),this._readDeclarations(!0,!0),this.fire({type:\"endpage\",id:r,pseudo:i,line:t,col:n})},_margin:function(){var e=this._tokenStream,t,n,r=this._margin_sym();return r?(t=e.token().startLine,n=e.token().startCol,this.fire({type:\"startpagemargin\",margin:r,line:t,col:n}),this._readDeclarations(!0),this.fire({type:\"endpagemargin\",margin:r,line:t,col:n}),!0):!1},_margin_sym:function(){var e=this._tokenStream;return e.match([Tokens.TOPLEFTCORNER_SYM,Tokens.TOPLEFT_SYM,Tokens.TOPCENTER_SYM,Tokens.TOPRIGHT_SYM,Tokens.TOPRIGHTCORNER_SYM,Tokens.BOTTOMLEFTCORNER_SYM,Tokens.BOTTOMLEFT_SYM,Tokens.BOTTOMCENTER_SYM,Tokens.BOTTOMRIGHT_SYM,Tokens.BOTTOMRIGHTCORNER_SYM,Tokens.LEFTTOP_SYM,Tokens.LEFTMIDDLE_SYM,Tokens.LEFTBOTTOM_SYM,Tokens.RIGHTTOP_SYM,Tokens.RIGHTMIDDLE_SYM,Tokens.RIGHTBOTTOM_SYM])?SyntaxUnit.fromToken(e.token()):null},_pseudo_page:function(){var e=this._tokenStream;return e.mustMatch(Tokens.COLON),e.mustMatch(Tokens.IDENT),e.token().value},_font_face:function(){var e=this._tokenStream,t,n;e.mustMatch(Tokens.FONT_FACE_SYM),t=e.token().startLine,n=e.token().startCol,this._readWhitespace(),this.fire({type:\"startfontface\",line:t,col:n}),this._readDeclarations(!0),this.fire({type:\"endfontface\",line:t,col:n})},_viewport:function(){var e=this._tokenStream,t,n;e.mustMatch(Tokens.VIEWPORT_SYM),t=e.token().startLine,n=e.token().startCol,this._readWhitespace(),this.fire({type:\"startviewport\",line:t,col:n}),this._readDeclarations(!0),this.fire({type:\"endviewport\",line:t,col:n})},_operator:function(e){var t=this._tokenStream,n=null;if(t.match([Tokens.SLASH,Tokens.COMMA])||e&&t.match([Tokens.PLUS,Tokens.STAR,Tokens.MINUS]))n=t.token(),this._readWhitespace();return n?PropertyValuePart.fromToken(n):null},_combinator:function(){var e=this._tokenStream,t=null,n;return e.match([Tokens.PLUS,Tokens.GREATER,Tokens.TILDE])&&(n=e.token(),t=new Combinator(n.value,n.startLine,n.startCol),this._readWhitespace()),t},_unary_operator:function(){var e=this._tokenStream;return e.match([Tokens.MINUS,Tokens.PLUS])?e.token().value:null},_property:function(){var e=this._tokenStream,t=null,n=null,r,i,s,o;return e.peek()==Tokens.STAR&&this.options.starHack&&(e.get(),i=e.token(),n=i.value,s=i.startLine,o=i.startCol),e.match(Tokens.IDENT)&&(i=e.token(),r=i.value,r.charAt(0)==\"_\"&&this.options.underscoreHack&&(n=\"_\",r=r.substring(1)),t=new PropertyName(r,n,s||i.startLine,o||i.startCol),this._readWhitespace()),t},_ruleset:function(){var e=this._tokenStream,t,n;try{n=this._selectors_group()}catch(r){if(r instanceof SyntaxError&&!this.options.strict){this.fire({type:\"error\",error:r,message:r.message,line:r.line,col:r.col}),t=e.advance([Tokens.RBRACE]);if(t!=Tokens.RBRACE)throw r;return!0}throw r}return n&&(this.fire({type:\"startrule\",selectors:n,line:n[0].line,col:n[0].col}),this._readDeclarations(!0),this.fire({type:\"endrule\",selectors:n,line:n[0].line,col:n[0].col})),n},_selectors_group:function(){var e=this._tokenStream,t=[],n;n=this._selector();if(n!==null){t.push(n);while(e.match(Tokens.COMMA))this._readWhitespace(),n=this._selector(),n!==null?t.push(n):this._unexpectedToken(e.LT(1))}return t.length?t:null},_selector:function(){var e=this._tokenStream,t=[],n=null,r=null,i=null;n=this._simple_selector_sequence();if(n===null)return null;t.push(n);do{r=this._combinator();if(r!==null)t.push(r),n=this._simple_selector_sequence(),n===null?this._unexpectedToken(e.LT(1)):t.push(n);else{if(!this._readWhitespace())break;i=new Combinator(e.token().value,e.token().startLine,e.token().startCol),r=this._combinator(),n=this._simple_selector_sequence(),n===null?r!==null&&this._unexpectedToken(e.LT(1)):(r!==null?t.push(r):t.push(i),t.push(n))}}while(!0);return new Selector(t,t[0].line,t[0].col)},_simple_selector_sequence:function(){var e=this._tokenStream,t=null,n=[],r=\"\",i=[function(){return e.match(Tokens.HASH)?new SelectorSubPart(e.token().value,\"id\",e.token().startLine,e.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],s=0,o=i.length,u=null,a=!1,f,l;f=e.LT(1).startLine,l=e.LT(1).startCol,t=this._type_selector(),t||(t=this._universal()),t!==null&&(r+=t);for(;;){if(e.peek()===Tokens.S)break;while(s<o&&u===null)u=i[s++].call(this);if(u===null){if(r===\"\")return null;break}s=0,n.push(u),r+=u.toString(),u=null}return r!==\"\"?new SelectorPart(t,n,r,f,l):null},_type_selector:function(){var e=this._tokenStream,t=this._namespace_prefix(),n=this._element_name();return n?(t&&(n.text=t+n.text,n.col-=t.length),n):(t&&(e.unget(),t.length>1&&e.unget()),null)},_class:function(){var e=this._tokenStream,t;return e.match(Tokens.DOT)?(e.mustMatch(Tokens.IDENT),t=e.token(),new SelectorSubPart(\".\"+t.value,\"class\",t.startLine,t.startCol-1)):null},_element_name:function(){var e=this._tokenStream,t;return e.match(Tokens.IDENT)?(t=e.token(),new SelectorSubPart(t.value,\"elementName\",t.startLine,t.startCol)):null},_namespace_prefix:function(){var e=this._tokenStream,t=\"\";if(e.LA(1)===Tokens.PIPE||e.LA(2)===Tokens.PIPE)e.match([Tokens.IDENT,Tokens.STAR])&&(t+=e.token().value),e.mustMatch(Tokens.PIPE),t+=\"|\";return t.length?t:null},_universal:function(){var e=this._tokenStream,t=\"\",n;return n=this._namespace_prefix(),n&&(t+=n),e.match(Tokens.STAR)&&(t+=\"*\"),t.length?t:null},_attrib:function(){var e=this._tokenStream,t=null,n,r;return e.match(Tokens.LBRACKET)?(r=e.token(),t=r.value,t+=this._readWhitespace(),n=this._namespace_prefix(),n&&(t+=n),e.mustMatch(Tokens.IDENT),t+=e.token().value,t+=this._readWhitespace(),e.match([Tokens.PREFIXMATCH,Tokens.SUFFIXMATCH,Tokens.SUBSTRINGMATCH,Tokens.EQUALS,Tokens.INCLUDES,Tokens.DASHMATCH])&&(t+=e.token().value,t+=this._readWhitespace(),e.mustMatch([Tokens.IDENT,Tokens.STRING]),t+=e.token().value,t+=this._readWhitespace()),e.mustMatch(Tokens.RBRACKET),new SelectorSubPart(t+\"]\",\"attribute\",r.startLine,r.startCol)):null},_pseudo:function(){var e=this._tokenStream,t=null,n=\":\",r,i;return e.match(Tokens.COLON)&&(e.match(Tokens.COLON)&&(n+=\":\"),e.match(Tokens.IDENT)?(t=e.token().value,r=e.token().startLine,i=e.token().startCol-n.length):e.peek()==Tokens.FUNCTION&&(r=e.LT(1).startLine,i=e.LT(1).startCol-n.length,t=this._functional_pseudo()),t&&(t=new SelectorSubPart(n+t,\"pseudo\",r,i))),t},_functional_pseudo:function(){var e=this._tokenStream,t=null;return e.match(Tokens.FUNCTION)&&(t=e.token().value,t+=this._readWhitespace(),t+=this._expression(),e.mustMatch(Tokens.RPAREN),t+=\")\"),t},_expression:function(){var e=this._tokenStream,t=\"\";while(e.match([Tokens.PLUS,Tokens.MINUS,Tokens.DIMENSION,Tokens.NUMBER,Tokens.STRING,Tokens.IDENT,Tokens.LENGTH,Tokens.FREQ,Tokens.ANGLE,Tokens.TIME,Tokens.RESOLUTION,Tokens.SLASH]))t+=e.token().value,t+=this._readWhitespace();return t.length?t:null},_negation:function(){var e=this._tokenStream,t,n,r=\"\",i,s=null;return e.match(Tokens.NOT)&&(r=e.token().value,t=e.token().startLine,n=e.token().startCol,r+=this._readWhitespace(),i=this._negation_arg(),r+=i,r+=this._readWhitespace(),e.match(Tokens.RPAREN),r+=e.token().value,s=new SelectorSubPart(r,\"not\",t,n),s.args.push(i)),s},_negation_arg:function(){var e=this._tokenStream,t=[this._type_selector,this._universal,function(){return e.match(Tokens.HASH)?new SelectorSubPart(e.token().value,\"id\",e.token().startLine,e.token().startCol):null},this._class,this._attrib,this._pseudo],n=null,r=0,i=t.length,s,o,u,a;o=e.LT(1).startLine,u=e.LT(1).startCol;while(r<i&&n===null)n=t[r].call(this),r++;return n===null&&this._unexpectedToken(e.LT(1)),n.type==\"elementName\"?a=new SelectorPart(n,[],n.toString(),o,u):a=new SelectorPart(null,[n],n.toString(),o,u),a},_declaration:function(){var e=this._tokenStream,t=null,n=null,r=null,i=null,s=null,o=\"\";t=this._property();if(t!==null){e.mustMatch(Tokens.COLON),this._readWhitespace(),n=this._expr(),(!n||n.length===0)&&this._unexpectedToken(e.LT(1)),r=this._prio(),o=t.toString();if(this.options.starHack&&t.hack==\"*\"||this.options.underscoreHack&&t.hack==\"_\")o=t.text;try{this._validateProperty(o,n)}catch(u){s=u}return this.fire({type:\"property\",property:t,value:n,important:r,line:t.line,col:t.col,invalid:s}),!0}return!1},_prio:function(){var e=this._tokenStream,t=e.match(Tokens.IMPORTANT_SYM);return this._readWhitespace(),t},_expr:function(e){var t=this._tokenStream,n=[],r=null,i=null;r=this._term(e);if(r!==null){n.push(r);do{i=this._operator(e),i&&n.push(i),r=this._term(e);if(r===null)break;n.push(r)}while(!0)}return n.length>0?new PropertyValue(n,n[0].line,n[0].col):null},_term:function(e){var t=this._tokenStream,n=null,r=null,i=null,s,o,u;return n=this._unary_operator(),n!==null&&(o=t.token().startLine,u=t.token().startCol),t.peek()==Tokens.IE_FUNCTION&&this.options.ieFilters?(r=this._ie_function(),n===null&&(o=t.token().startLine,u=t.token().startCol)):e&&t.match([Tokens.LPAREN,Tokens.LBRACE,Tokens.LBRACKET])?(s=t.token(),i=s.endChar,r=s.value+this._expr(e).text,n===null&&(o=t.token().startLine,u=t.token().startCol),t.mustMatch(Tokens.type(i)),r+=i,this._readWhitespace()):t.match([Tokens.NUMBER,Tokens.PERCENTAGE,Tokens.LENGTH,Tokens.ANGLE,Tokens.TIME,Tokens.FREQ,Tokens.STRING,Tokens.IDENT,Tokens.URI,Tokens.UNICODE_RANGE])?(r=t.token().value,n===null&&(o=t.token().startLine,u=t.token().startCol),this._readWhitespace()):(s=this._hexcolor(),s===null?(n===null&&(o=t.LT(1).startLine,u=t.LT(1).startCol),r===null&&(t.LA(3)==Tokens.EQUALS&&this.options.ieFilters?r=this._ie_function():r=this._function())):(r=s.value,n===null&&(o=s.startLine,u=s.startCol))),r!==null?new PropertyValuePart(n!==null?n+r:r,o,u):null},_function:function(){var e=this._tokenStream,t=null,n=null,r;if(e.match(Tokens.FUNCTION)){t=e.token().value,this._readWhitespace(),n=this._expr(!0),t+=n;if(this.options.ieFilters&&e.peek()==Tokens.EQUALS)do{this._readWhitespace()&&(t+=e.token().value),e.LA(0)==Tokens.COMMA&&(t+=e.token().value),e.match(Tokens.IDENT),t+=e.token().value,e.match(Tokens.EQUALS),t+=e.token().value,r=e.peek();while(r!=Tokens.COMMA&&r!=Tokens.S&&r!=Tokens.RPAREN)e.get(),t+=e.token().value,r=e.peek()}while(e.match([Tokens.COMMA,Tokens.S]));e.match(Tokens.RPAREN),t+=\")\",this._readWhitespace()}return t},_ie_function:function(){var e=this._tokenStream,t=null,n=null,r;if(e.match([Tokens.IE_FUNCTION,Tokens.FUNCTION])){t=e.token().value;do{this._readWhitespace()&&(t+=e.token().value),e.LA(0)==Tokens.COMMA&&(t+=e.token().value),e.match(Tokens.IDENT),t+=e.token().value,e.match(Tokens.EQUALS),t+=e.token().value,r=e.peek();while(r!=Tokens.COMMA&&r!=Tokens.S&&r!=Tokens.RPAREN)e.get(),t+=e.token().value,r=e.peek()}while(e.match([Tokens.COMMA,Tokens.S]));e.match(Tokens.RPAREN),t+=\")\",this._readWhitespace()}return t},_hexcolor:function(){var e=this._tokenStream,t=null,n;if(e.match(Tokens.HASH)){t=e.token(),n=t.value;if(!/#[a-f0-9]{3,6}/i.test(n))throw new SyntaxError(\"Expected a hex color but found '\"+n+\"' at line \"+t.startLine+\", col \"+t.startCol+\".\",t.startLine,t.startCol);this._readWhitespace()}return t},_keyframes:function(){var e=this._tokenStream,t,n,r,i=\"\";e.mustMatch(Tokens.KEYFRAMES_SYM),t=e.token(),/^@\\-([^\\-]+)\\-/.test(t.value)&&(i=RegExp.$1),this._readWhitespace(),r=this._keyframe_name(),this._readWhitespace(),e.mustMatch(Tokens.LBRACE),this.fire({type:\"startkeyframes\",name:r,prefix:i,line:t.startLine,col:t.startCol}),this._readWhitespace(),n=e.peek();while(n==Tokens.IDENT||n==Tokens.PERCENTAGE)this._keyframe_rule(),this._readWhitespace(),n=e.peek();this.fire({type:\"endkeyframes\",name:r,prefix:i,line:t.startLine,col:t.startCol}),this._readWhitespace(),e.mustMatch(Tokens.RBRACE)},_keyframe_name:function(){var e=this._tokenStream,t;return e.mustMatch([Tokens.IDENT,Tokens.STRING]),SyntaxUnit.fromToken(e.token())},_keyframe_rule:function(){var e=this._tokenStream,t,n=this._key_list();this.fire({type:\"startkeyframerule\",keys:n,line:n[0].line,col:n[0].col}),this._readDeclarations(!0),this.fire({type:\"endkeyframerule\",keys:n,line:n[0].line,col:n[0].col})},_key_list:function(){var e=this._tokenStream,t,n,r=[];r.push(this._key()),this._readWhitespace();while(e.match(Tokens.COMMA))this._readWhitespace(),r.push(this._key()),this._readWhitespace();return r},_key:function(){var e=this._tokenStream,t;if(e.match(Tokens.PERCENTAGE))return SyntaxUnit.fromToken(e.token());if(e.match(Tokens.IDENT)){t=e.token();if(/from|to/i.test(t.value))return SyntaxUnit.fromToken(t);e.unget()}this._unexpectedToken(e.LT(1))},_skipCruft:function(){while(this._tokenStream.match([Tokens.S,Tokens.CDO,Tokens.CDC]));},_readDeclarations:function(e,t){var n=this._tokenStream,r;this._readWhitespace(),e&&n.mustMatch(Tokens.LBRACE),this._readWhitespace();try{for(;;){if(!(n.match(Tokens.SEMICOLON)||t&&this._margin())){if(!this._declaration())break;if(!n.match(Tokens.SEMICOLON))break}this._readWhitespace()}n.mustMatch(Tokens.RBRACE),this._readWhitespace()}catch(i){if(!(i instanceof SyntaxError&&!this.options.strict))throw i;this.fire({type:\"error\",error:i,message:i.message,line:i.line,col:i.col}),r=n.advance([Tokens.SEMICOLON,Tokens.RBRACE]);if(r==Tokens.SEMICOLON)this._readDeclarations(!1,t);else if(r!=Tokens.RBRACE)throw i}},_readWhitespace:function(){var e=this._tokenStream,t=\"\";while(e.match(Tokens.S))t+=e.token().value;return t},_unexpectedToken:function(e){throw new SyntaxError(\"Unexpected token '\"+e.value+\"' at line \"+e.startLine+\", col \"+e.startCol+\".\",e.startLine,e.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!=Tokens.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(e,t){Validation.validate(e,t)},parse:function(e){this._tokenStream=new TokenStream(e,Tokens),this._stylesheet()},parseStyleSheet:function(e){return this.parse(e)},parseMediaQuery:function(e){this._tokenStream=new TokenStream(e,Tokens);var t=this._media_query();return this._verifyEnd(),t},parsePropertyValue:function(e){this._tokenStream=new TokenStream(e,Tokens),this._readWhitespace();var t=this._expr();return this._readWhitespace(),this._verifyEnd(),t},parseRule:function(e){this._tokenStream=new TokenStream(e,Tokens),this._readWhitespace();var t=this._ruleset();return this._readWhitespace(),this._verifyEnd(),t},parseSelector:function(e){this._tokenStream=new TokenStream(e,Tokens),this._readWhitespace();var t=this._selector();return this._readWhitespace(),this._verifyEnd(),t},parseStyleAttribute:function(e){e+=\"}\",this._tokenStream=new TokenStream(e,Tokens),this._readDeclarations()}};for(t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}();var Properties={\"align-items\":\"flex-start | flex-end | center | baseline | stretch\",\"align-content\":\"flex-start | flex-end | center | space-between | space-around | stretch\",\"align-self\":\"auto | flex-start | flex-end | center | baseline | stretch\",\"-webkit-align-items\":\"flex-start | flex-end | center | baseline | stretch\",\"-webkit-align-content\":\"flex-start | flex-end | center | space-between | space-around | stretch\",\"-webkit-align-self\":\"auto | flex-start | flex-end | center | baseline | stretch\",\"alignment-adjust\":\"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | <percentage> | <length>\",\"alignment-baseline\":\"baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical\",animation:1,\"animation-delay\":{multi:\"<time>\",comma:!0},\"animation-direction\":{multi:\"normal | reverse | alternate | alternate-reverse\",comma:!0},\"animation-duration\":{multi:\"<time>\",comma:!0},\"animation-fill-mode\":{multi:\"none | forwards | backwards | both\",comma:!0},\"animation-iteration-count\":{multi:\"<number> | infinite\",comma:!0},\"animation-name\":{multi:\"none | <ident>\",comma:!0},\"animation-play-state\":{multi:\"running | paused\",comma:!0},\"animation-timing-function\":1,\"-moz-animation-delay\":{multi:\"<time>\",comma:!0},\"-moz-animation-direction\":{multi:\"normal | reverse | alternate | alternate-reverse\",comma:!0},\"-moz-animation-duration\":{multi:\"<time>\",comma:!0},\"-moz-animation-iteration-count\":{multi:\"<number> | infinite\",comma:!0},\"-moz-animation-name\":{multi:\"none | <ident>\",comma:!0},\"-moz-animation-play-state\":{multi:\"running | paused\",comma:!0},\"-ms-animation-delay\":{multi:\"<time>\",comma:!0},\"-ms-animation-direction\":{multi:\"normal | reverse | alternate | alternate-reverse\",comma:!0},\"-ms-animation-duration\":{multi:\"<time>\",comma:!0},\"-ms-animation-iteration-count\":{multi:\"<number> | infinite\",comma:!0},\"-ms-animation-name\":{multi:\"none | <ident>\",comma:!0},\"-ms-animation-play-state\":{multi:\"running | paused\",comma:!0},\"-webkit-animation-delay\":{multi:\"<time>\",comma:!0},\"-webkit-animation-direction\":{multi:\"normal | reverse | alternate | alternate-reverse\",comma:!0},\"-webkit-animation-duration\":{multi:\"<time>\",comma:!0},\"-webkit-animation-fill-mode\":{multi:\"none | forwards | backwards | both\",comma:!0},\"-webkit-animation-iteration-count\":{multi:\"<number> | infinite\",comma:!0},\"-webkit-animation-name\":{multi:\"none | <ident>\",comma:!0},\"-webkit-animation-play-state\":{multi:\"running | paused\",comma:!0},\"-o-animation-delay\":{multi:\"<time>\",comma:!0},\"-o-animation-direction\":{multi:\"normal | reverse | alternate | alternate-reverse\",comma:!0},\"-o-animation-duration\":{multi:\"<time>\",comma:!0},\"-o-animation-iteration-count\":{multi:\"<number> | infinite\",comma:!0},\"-o-animation-name\":{multi:\"none | <ident>\",comma:!0},\"-o-animation-play-state\":{multi:\"running | paused\",comma:!0},appearance:\"icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal | none | inherit\",azimuth:function(e){var t=\"<angle> | leftwards | rightwards | inherit\",n=\"left-side | far-left | left | center-left | center | center-right | right | far-right | right-side\",r=!1,i=!1,s;ValidationTypes.isAny(e,t)||(ValidationTypes.isAny(e,\"behind\")&&(r=!0,i=!0),ValidationTypes.isAny(e,n)&&(i=!0,r||ValidationTypes.isAny(e,\"behind\")));if(e.hasNext())throw s=e.next(),i?new ValidationError(\"Expected end of value but found '\"+s+\"'.\",s.line,s.col):new ValidationError(\"Expected (<'azimuth'>) but found '\"+s+\"'.\",s.line,s.col)},\"backface-visibility\":\"visible | hidden\",background:1,\"background-attachment\":{multi:\"<attachment>\",comma:!0},\"background-clip\":{multi:\"<box>\",comma:!0},\"background-color\":\"<color> | inherit\",\"background-image\":{multi:\"<bg-image>\",comma:!0},\"background-origin\":{multi:\"<box>\",comma:!0},\"background-position\":{multi:\"<bg-position>\",comma:!0},\"background-repeat\":{multi:\"<repeat-style>\"},\"background-size\":{multi:\"<bg-size>\",comma:!0},\"baseline-shift\":\"baseline | sub | super | <percentage> | <length>\",behavior:1,binding:1,bleed:\"<length>\",\"bookmark-label\":\"<content> | <attr> | <string>\",\"bookmark-level\":\"none | <integer>\",\"bookmark-state\":\"open | closed\",\"bookmark-target\":\"none | <uri> | <attr>\",border:\"<border-width> || <border-style> || <color>\",\"border-bottom\":\"<border-width> || <border-style> || <color>\",\"border-bottom-color\":\"<color> | inherit\",\"border-bottom-left-radius\":\"<x-one-radius>\",\"border-bottom-right-radius\":\"<x-one-radius>\",\"border-bottom-style\":\"<border-style>\",\"border-bottom-width\":\"<border-width>\",\"border-collapse\":\"collapse | separate | inherit\",\"border-color\":{multi:\"<color> | inherit\",max:4},\"border-image\":1,\"border-image-outset\":{multi:\"<length> | <number>\",max:4},\"border-image-repeat\":{multi:\"stretch | repeat | round\",max:2},\"border-image-slice\":function(e){var t=!1,n=\"<number> | <percentage>\",r=!1,i=0,s=4,o;ValidationTypes.isAny(e,\"fill\")&&(r=!0,t=!0);while(e.hasNext()&&i<s){t=ValidationTypes.isAny(e,n);if(!t)break;i++}r?t=!0:ValidationTypes.isAny(e,\"fill\");if(e.hasNext())throw o=e.next(),t?new ValidationError(\"Expected end of value but found '\"+o+\"'.\",o.line,o.col):new ValidationError(\"Expected ([<number> | <percentage>]{1,4} && fill?) but found '\"+o+\"'.\",o.line,o.col)},\"border-image-source\":\"<image> | none\",\"border-image-width\":{multi:\"<length> | <percentage> | <number> | auto\",max:4},\"border-left\":\"<border-width> || <border-style> || <color>\",\"border-left-color\":\"<color> | inherit\",\"border-left-style\":\"<border-style>\",\"border-left-width\":\"<border-width>\",\"border-radius\":function(e){var t=!1,n=\"<length> | <percentage> | inherit\",r=!1,i=!1,s=0,o=8,u;while(e.hasNext()&&s<o){t=ValidationTypes.isAny(e,n);if(!t){if(!(e.peek()==\"/\"&&s>0&&!r))break;r=!0,o=s+5,e.next()}s++}if(e.hasNext())throw u=e.next(),t?new ValidationError(\"Expected end of value but found '\"+u+\"'.\",u.line,u.col):new ValidationError(\"Expected (<'border-radius'>) but found '\"+u+\"'.\",u.line,u.col)},\"border-right\":\"<border-width> || <border-style> || <color>\",\"border-right-color\":\"<color> | inherit\",\"border-right-style\":\"<border-style>\",\"border-right-width\":\"<border-width>\",\"border-spacing\":{multi:\"<length> | inherit\",max:2},\"border-style\":{multi:\"<border-style>\",max:4},\"border-top\":\"<border-width> || <border-style> || <color>\",\"border-top-color\":\"<color> | inherit\",\"border-top-left-radius\":\"<x-one-radius>\",\"border-top-right-radius\":\"<x-one-radius>\",\"border-top-style\":\"<border-style>\",\"border-top-width\":\"<border-width>\",\"border-width\":{multi:\"<border-width>\",max:4},bottom:\"<margin-width> | inherit\",\"-moz-box-align\":\"start | end | center | baseline | stretch\",\"-moz-box-decoration-break\":\"slice |clone\",\"-moz-box-direction\":\"normal | reverse | inherit\",\"-moz-box-flex\":\"<number>\",\"-moz-box-flex-group\":\"<integer>\",\"-moz-box-lines\":\"single | multiple\",\"-moz-box-ordinal-group\":\"<integer>\",\"-moz-box-orient\":\"horizontal | vertical | inline-axis | block-axis | inherit\",\"-moz-box-pack\":\"start | end | center | justify\",\"-webkit-box-align\":\"start | end | center | baseline | stretch\",\"-webkit-box-decoration-break\":\"slice |clone\",\"-webkit-box-direction\":\"normal | reverse | inherit\",\"-webkit-box-flex\":\"<number>\",\"-webkit-box-flex-group\":\"<integer>\",\"-webkit-box-lines\":\"single | multiple\",\"-webkit-box-ordinal-group\":\"<integer>\",\"-webkit-box-orient\":\"horizontal | vertical | inline-axis | block-axis | inherit\",\"-webkit-box-pack\":\"start | end | center | justify\",\"box-shadow\":function(e){var t=!1,n;if(!ValidationTypes.isAny(e,\"none\"))Validation.multiProperty(\"<shadow>\",e,!0,Infinity);else if(e.hasNext())throw n=e.next(),new ValidationError(\"Expected end of value but found '\"+n+\"'.\",n.line,n.col)},\"box-sizing\":\"content-box | border-box | inherit\",\"break-after\":\"auto | always | avoid | left | right | page | column | avoid-page | avoid-column\",\"break-before\":\"auto | always | avoid | left | right | page | column | avoid-page | avoid-column\",\"break-inside\":\"auto | avoid | avoid-page | avoid-column\",\"caption-side\":\"top | bottom | inherit\",clear:\"none | right | left | both | inherit\",clip:1,color:\"<color> | inherit\",\"color-profile\":1,\"column-count\":\"<integer> | auto\",\"column-fill\":\"auto | balance\",\"column-gap\":\"<length> | normal\",\"column-rule\":\"<border-width> || <border-style> || <color>\",\"column-rule-color\":\"<color>\",\"column-rule-style\":\"<border-style>\",\"column-rule-width\":\"<border-width>\",\"column-span\":\"none | all\",\"column-width\":\"<length> | auto\",columns:1,content:1,\"counter-increment\":1,\"counter-reset\":1,crop:\"<shape> | auto\",cue:\"cue-after | cue-before | inherit\",\"cue-after\":1,\"cue-before\":1,cursor:1,direction:\"ltr | rtl | inherit\",display:\"inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | grid | inline-grid | none | inherit | -moz-box | -moz-inline-block | -moz-inline-box | -moz-inline-grid | -moz-inline-stack | -moz-inline-table | -moz-grid | -moz-grid-group | -moz-grid-line | -moz-groupbox | -moz-deck | -moz-popup | -moz-stack | -moz-marker | -webkit-box | -webkit-inline-box | -ms-flexbox | -ms-inline-flexbox | flex | -webkit-flex | inline-flex | -webkit-inline-flex\",\"dominant-baseline\":1,\"drop-initial-after-adjust\":\"central | middle | after-edge | text-after-edge | ideographic | alphabetic | mathematical | <percentage> | <length>\",\"drop-initial-after-align\":\"baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical\",\"drop-initial-before-adjust\":\"before-edge | text-before-edge | central | middle | hanging | mathematical | <percentage> | <length>\",\"drop-initial-before-align\":\"caps-height | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical\",\"drop-initial-size\":\"auto | line | <length> | <percentage>\",\"drop-initial-value\":\"initial | <integer>\",elevation:\"<angle> | below | level | above | higher | lower | inherit\",\"empty-cells\":\"show | hide | inherit\",filter:1,fit:\"fill | hidden | meet | slice\",\"fit-position\":1,flex:\"<flex>\",\"flex-basis\":\"<width>\",\"flex-direction\":\"row | row-reverse | column | column-reverse\",\"flex-flow\":\"<flex-direction> || <flex-wrap>\",\"flex-grow\":\"<number>\",\"flex-shrink\":\"<number>\",\"flex-wrap\":\"nowrap | wrap | wrap-reverse\",\"-webkit-flex\":\"<flex>\",\"-webkit-flex-basis\":\"<width>\",\"-webkit-flex-direction\":\"row | row-reverse | column | column-reverse\",\"-webkit-flex-flow\":\"<flex-direction> || <flex-wrap>\",\"-webkit-flex-grow\":\"<number>\",\"-webkit-flex-shrink\":\"<number>\",\"-webkit-flex-wrap\":\"nowrap | wrap | wrap-reverse\",\"-ms-flex\":\"<flex>\",\"-ms-flex-align\":\"start | end | center | stretch | baseline\",\"-ms-flex-direction\":\"row | row-reverse | column | column-reverse | inherit\",\"-ms-flex-order\":\"<number>\",\"-ms-flex-pack\":\"start | end | center | justify\",\"-ms-flex-wrap\":\"nowrap | wrap | wrap-reverse\",\"float\":\"left | right | none | inherit\",\"float-offset\":1,font:1,\"font-family\":1,\"font-size\":\"<absolute-size> | <relative-size> | <length> | <percentage> | inherit\",\"font-size-adjust\":\"<number> | none | inherit\",\"font-stretch\":\"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | inherit\",\"font-style\":\"normal | italic | oblique | inherit\",\"font-variant\":\"normal | small-caps | inherit\",\"font-weight\":\"normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit\",\"grid-cell-stacking\":\"columns | rows | layer\",\"grid-column\":1,\"grid-columns\":1,\"grid-column-align\":\"start | end | center | stretch\",\"grid-column-sizing\":1,\"grid-column-span\":\"<integer>\",\"grid-flow\":\"none | rows | columns\",\"grid-layer\":\"<integer>\",\"grid-row\":1,\"grid-rows\":1,\"grid-row-align\":\"start | end | center | stretch\",\"grid-row-gap\":1,\"grid-row-span\":\"<integer>\",\"grid-row-sizing\":1,\"grid-template\":1,\"grid-template-areas\":1,\"grid-template-columns\":1,\"grid-template-rows\":1,\"hanging-punctuation\":1,height:\"<margin-width> | <content-sizing> | inherit\",\"hyphenate-after\":\"<integer> | auto\",\"hyphenate-before\":\"<integer> | auto\",\"hyphenate-character\":\"<string> | auto\",\"hyphenate-lines\":\"no-limit | <integer>\",\"hyphenate-resource\":1,hyphens:\"none | manual | auto\",icon:1,\"image-orientation\":\"angle | auto\",\"image-rendering\":1,\"image-resolution\":1,\"inline-box-align\":\"initial | last | <integer>\",\"justify-content\":\"flex-start | flex-end | center | space-between | space-around\",\"-webkit-justify-content\":\"flex-start | flex-end | center | space-between | space-around\",left:\"<margin-width> | inherit\",\"letter-spacing\":\"<length> | normal | inherit\",\"line-height\":\"<number> | <length> | <percentage> | normal | inherit\",\"line-break\":\"auto | loose | normal | strict\",\"line-stacking\":1,\"line-stacking-ruby\":\"exclude-ruby | include-ruby\",\"line-stacking-shift\":\"consider-shifts | disregard-shifts\",\"line-stacking-strategy\":\"inline-line-height | block-line-height | max-height | grid-height\",\"list-style\":1,\"list-style-image\":\"<uri> | none | inherit\",\"list-style-position\":\"inside | outside | inherit\",\"list-style-type\":\"disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none | inherit\",margin:{multi:\"<margin-width> | inherit\",max:4},\"margin-bottom\":\"<margin-width> | inherit\",\"margin-left\":\"<margin-width> | inherit\",\"margin-right\":\"<margin-width> | inherit\",\"margin-top\":\"<margin-width> | inherit\",mark:1,\"mark-after\":1,\"mark-before\":1,marks:1,\"marquee-direction\":1,\"marquee-play-count\":1,\"marquee-speed\":1,\"marquee-style\":1,\"max-height\":\"<length> | <percentage> | <content-sizing> | none | inherit\",\"max-width\":\"<length> | <percentage> | <content-sizing> | none | inherit\",\"max-zoom\":\"<number> | <percentage> | auto\",\"min-height\":\"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats | inherit\",\"min-width\":\"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats | inherit\",\"min-zoom\":\"<number> | <percentage> | auto\",\"move-to\":1,\"nav-down\":1,\"nav-index\":1,\"nav-left\":1,\"nav-right\":1,\"nav-up\":1,opacity:\"<number> | inherit\",order:\"<integer>\",\"-webkit-order\":\"<integer>\",orphans:\"<integer> | inherit\",outline:1,\"outline-color\":\"<color> | invert | inherit\",\"outline-offset\":1,\"outline-style\":\"<border-style> | inherit\",\"outline-width\":\"<border-width> | inherit\",overflow:\"visible | hidden | scroll | auto | inherit\",\"overflow-style\":1,\"overflow-wrap\":\"normal | break-word\",\"overflow-x\":1,\"overflow-y\":1,padding:{multi:\"<padding-width> | inherit\",max:4},\"padding-bottom\":\"<padding-width> | inherit\",\"padding-left\":\"<padding-width> | inherit\",\"padding-right\":\"<padding-width> | inherit\",\"padding-top\":\"<padding-width> | inherit\",page:1,\"page-break-after\":\"auto | always | avoid | left | right | inherit\",\"page-break-before\":\"auto | always | avoid | left | right | inherit\",\"page-break-inside\":\"auto | avoid | inherit\",\"page-policy\":1,pause:1,\"pause-after\":1,\"pause-before\":1,perspective:1,\"perspective-origin\":1,phonemes:1,pitch:1,\"pitch-range\":1,\"play-during\":1,\"pointer-events\":\"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit\",position:\"static | relative | absolute | fixed | inherit\",\"presentation-level\":1,\"punctuation-trim\":1,quotes:1,\"rendering-intent\":1,resize:1,rest:1,\"rest-after\":1,\"rest-before\":1,richness:1,right:\"<margin-width> | inherit\",rotation:1,\"rotation-point\":1,\"ruby-align\":1,\"ruby-overhang\":1,\"ruby-position\":1,\"ruby-span\":1,size:1,speak:\"normal | none | spell-out | inherit\",\"speak-header\":\"once | always | inherit\",\"speak-numeral\":\"digits | continuous | inherit\",\"speak-punctuation\":\"code | none | inherit\",\"speech-rate\":1,src:1,stress:1,\"string-set\":1,\"table-layout\":\"auto | fixed | inherit\",\"tab-size\":\"<integer> | <length>\",target:1,\"target-name\":1,\"target-new\":1,\"target-position\":1,\"text-align\":\"left | right | center | justify | inherit\",\"text-align-last\":1,\"text-decoration\":1,\"text-emphasis\":1,\"text-height\":1,\"text-indent\":\"<length> | <percentage> | inherit\",\"text-justify\":\"auto | none | inter-word | inter-ideograph | inter-cluster | distribute | kashida\",\"text-outline\":1,\"text-overflow\":1,\"text-rendering\":\"auto | optimizeSpeed | optimizeLegibility | geometricPrecision | inherit\",\"text-shadow\":1,\"text-transform\":\"capitalize | uppercase | lowercase | none | inherit\",\"text-wrap\":\"normal | none | avoid\",top:\"<margin-width> | inherit\",\"-ms-touch-action\":\"auto | none | pan-x | pan-y\",\"touch-action\":\"auto | none | pan-x | pan-y\",transform:1,\"transform-origin\":1,\"transform-style\":1,transition:1,\"transition-delay\":1,\"transition-duration\":1,\"transition-property\":1,\"transition-timing-function\":1,\"unicode-bidi\":\"normal | embed | isolate | bidi-override | isolate-override | plaintext | inherit\",\"user-modify\":\"read-only | read-write | write-only | inherit\",\"user-select\":\"none | text | toggle | element | elements | all | inherit\",\"user-zoom\":\"zoom | fixed\",\"vertical-align\":\"auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length>\",visibility:\"visible | hidden | collapse | inherit\",\"voice-balance\":1,\"voice-duration\":1,\"voice-family\":1,\"voice-pitch\":1,\"voice-pitch-range\":1,\"voice-rate\":1,\"voice-stress\":1,\"voice-volume\":1,volume:1,\"white-space\":\"normal | pre | nowrap | pre-wrap | pre-line | inherit | -pre-wrap | -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap\",\"white-space-collapse\":1,widows:\"<integer> | inherit\",width:\"<length> | <percentage> | <content-sizing> | auto | inherit\",\"word-break\":\"normal | keep-all | break-all\",\"word-spacing\":\"<length> | normal | inherit\",\"word-wrap\":\"normal | break-word\",\"writing-mode\":\"horizontal-tb | vertical-rl | vertical-lr | lr-tb | rl-tb | tb-rl | bt-rl | tb-lr | bt-lr | lr-bt | rl-bt | lr | rl | tb | inherit\",\"z-index\":\"<integer> | auto | inherit\",zoom:\"<number> | <percentage> | normal\"};PropertyName.prototype=new SyntaxUnit,PropertyName.prototype.constructor=PropertyName,PropertyName.prototype.toString=function(){return(this.hack?this.hack:\"\")+this.text},PropertyValue.prototype=new SyntaxUnit,PropertyValue.prototype.constructor=PropertyValue,PropertyValueIterator.prototype.count=function(){return this._parts.length},PropertyValueIterator.prototype.isFirst=function(){return this._i===0},PropertyValueIterator.prototype.hasNext=function(){return this._i<this._parts.length},PropertyValueIterator.prototype.mark=function(){this._marks.push(this._i)},PropertyValueIterator.prototype.peek=function(e){return this.hasNext()?this._parts[this._i+(e||0)]:null},PropertyValueIterator.prototype.next=function(){return this.hasNext()?this._parts[this._i++]:null},PropertyValueIterator.prototype.previous=function(){return this._i>0?this._parts[--this._i]:null},PropertyValueIterator.prototype.restore=function(){this._marks.length&&(this._i=this._marks.pop())},PropertyValuePart.prototype=new SyntaxUnit,PropertyValuePart.prototype.constructor=PropertyValuePart,PropertyValuePart.fromToken=function(e){return new PropertyValuePart(e.value,e.startLine,e.startCol)};var Pseudos={\":first-letter\":1,\":first-line\":1,\":before\":1,\":after\":1};Pseudos.ELEMENT=1,Pseudos.CLASS=2,Pseudos.isElement=function(e){return e.indexOf(\"::\")===0||Pseudos[e.toLowerCase()]==Pseudos.ELEMENT},Selector.prototype=new SyntaxUnit,Selector.prototype.constructor=Selector,SelectorPart.prototype=new SyntaxUnit,SelectorPart.prototype.constructor=SelectorPart,SelectorSubPart.prototype=new SyntaxUnit,SelectorSubPart.prototype.constructor=SelectorSubPart,Specificity.prototype={constructor:Specificity,compare:function(e){var t=[\"a\",\"b\",\"c\",\"d\"],n,r;for(n=0,r=t.length;n<r;n++){if(this[t[n]]<e[t[n]])return-1;if(this[t[n]]>e[t[n]])return 1}return 0},valueOf:function(){return this.a*1e3+this.b*100+this.c*10+this.d},toString:function(){return this.a+\",\"+this.b+\",\"+this.c+\",\"+this.d}},Specificity.calculate=function(e){function u(e){var t,n,r,a,f=e.elementName?e.elementName.text:\"\",l;f&&f.charAt(f.length-1)!=\"*\"&&o++;for(t=0,r=e.modifiers.length;t<r;t++){l=e.modifiers[t];switch(l.type){case\"class\":case\"attribute\":s++;break;case\"id\":i++;break;case\"pseudo\":Pseudos.isElement(l.text)?o++:s++;break;case\"not\":for(n=0,a=l.args.length;n<a;n++)u(l.args[n])}}}var t,n,r,i=0,s=0,o=0;for(t=0,n=e.parts.length;t<n;t++)r=e.parts[t],r instanceof SelectorPart&&u(r);return new Specificity(0,i,s,o)};var h=/^[0-9a-fA-F]$/,nonascii=/^[\\u0080-\\uFFFF]$/,nl=/\\n|\\r\\n|\\r|\\f/;TokenStream.prototype=mix(new TokenStreamBase,{_getToken:function(e){var t,n=this._reader,r=null,i=n.getLine(),s=n.getCol();t=n.read();while(t){switch(t){case\"/\":n.peek()==\"*\"?r=this.commentToken(t,i,s):r=this.charToken(t,i,s);break;case\"|\":case\"~\":case\"^\":case\"$\":case\"*\":n.peek()==\"=\"?r=this.comparisonToken(t,i,s):r=this.charToken(t,i,s);break;case'\"':case\"'\":r=this.stringToken(t,i,s);break;case\"#\":isNameChar(n.peek())?r=this.hashToken(t,i,s):r=this.charToken(t,i,s);break;case\".\":isDigit(n.peek())?r=this.numberToken(t,i,s):r=this.charToken(t,i,s);break;case\"-\":n.peek()==\"-\"?r=this.htmlCommentEndToken(t,i,s):isNameStart(n.peek())?r=this.identOrFunctionToken(t,i,s):r=this.charToken(t,i,s);break;case\"!\":r=this.importantToken(t,i,s);break;case\"@\":r=this.atRuleToken(t,i,s);break;case\":\":r=this.notToken(t,i,s);break;case\"<\":r=this.htmlCommentStartToken(t,i,s);break;case\"U\":case\"u\":if(n.peek()==\"+\"){r=this.unicodeRangeToken(t,i,s);break};default:isDigit(t)?r=this.numberToken(t,i,s):isWhitespace(t)?r=this.whitespaceToken(t,i,s):isIdentStart(t)?r=this.identOrFunctionToken(t,i,s):r=this.charToken(t,i,s)}break}return!r&&t===null&&(r=this.createToken(Tokens.EOF,null,i,s)),r},createToken:function(e,t,n,r,i){var s=this._reader;return i=i||{},{value:t,type:e,channel:i.channel,endChar:i.endChar,hide:i.hide||!1,startLine:n,startCol:r,endLine:s.getLine(),endCol:s.getCol()}},atRuleToken:function(e,t,n){var r=e,i=this._reader,s=Tokens.CHAR,o=!1,u,a;i.mark(),u=this.readName(),r=e+u,s=Tokens.type(r.toLowerCase());if(s==Tokens.CHAR||s==Tokens.UNKNOWN)r.length>1?s=Tokens.UNKNOWN_SYM:(s=Tokens.CHAR,r=e,i.reset());return this.createToken(s,r,t,n)},charToken:function(e,t,n){var r=Tokens.type(e),i={};return r==-1?r=Tokens.CHAR:i.endChar=Tokens[r].endChar,this.createToken(r,e,t,n,i)},commentToken:function(e,t,n){var r=this._reader,i=this.readComment(e);return this.createToken(Tokens.COMMENT,i,t,n)},comparisonToken:function(e,t,n){var r=this._reader,i=e+r.read(),s=Tokens.type(i)||Tokens.CHAR;return this.createToken(s,i,t,n)},hashToken:function(e,t,n){var r=this._reader,i=this.readName(e);return this.createToken(Tokens.HASH,i,t,n)},htmlCommentStartToken:function(e,t,n){var r=this._reader,i=e;return r.mark(),i+=r.readCount(3),i==\"<!--\"?this.createToken(Tokens.CDO,i,t,n):(r.reset(),this.charToken(e,t,n))},htmlCommentEndToken:function(e,t,n){var r=this._reader,i=e;return r.mark(),i+=r.readCount(2),i==\"-->\"?this.createToken(Tokens.CDC,i,t,n):(r.reset(),this.charToken(e,t,n))},identOrFunctionToken:function(e,t,n){var r=this._reader,i=this.readName(e),s=Tokens.IDENT;return r.peek()==\"(\"?(i+=r.read(),i.toLowerCase()==\"url(\"?(s=Tokens.URI,i=this.readURI(i),i.toLowerCase()==\"url(\"&&(s=Tokens.FUNCTION)):s=Tokens.FUNCTION):r.peek()==\":\"&&i.toLowerCase()==\"progid\"&&(i+=r.readTo(\"(\"),s=Tokens.IE_FUNCTION),this.createToken(s,i,t,n)},importantToken:function(e,t,n){var r=this._reader,i=e,s=Tokens.CHAR,o,u;r.mark(),u=r.read();while(u){if(u==\"/\"){if(r.peek()!=\"*\")break;o=this.readComment(u);if(o===\"\")break}else{if(!isWhitespace(u)){if(/i/i.test(u)){o=r.readCount(8),/mportant/i.test(o)&&(i+=u+o,s=Tokens.IMPORTANT_SYM);break}break}i+=u+this.readWhitespace()}u=r.read()}return s==Tokens.CHAR?(r.reset(),this.charToken(e,t,n)):this.createToken(s,i,t,n)},notToken:function(e,t,n){var r=this._reader,i=e;return r.mark(),i+=r.readCount(4),i.toLowerCase()==\":not(\"?this.createToken(Tokens.NOT,i,t,n):(r.reset(),this.charToken(e,t,n))},numberToken:function(e,t,n){var r=this._reader,i=this.readNumber(e),s,o=Tokens.NUMBER,u=r.peek();return isIdentStart(u)?(s=this.readName(r.read()),i+=s,/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^fr$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(s)?o=Tokens.LENGTH:/^deg|^rad$|^grad$/i.test(s)?o=Tokens.ANGLE:/^ms$|^s$/i.test(s)?o=Tokens.TIME:/^hz$|^khz$/i.test(s)?o=Tokens.FREQ:/^dpi$|^dpcm$/i.test(s)?o=Tokens.RESOLUTION:o=Tokens.DIMENSION):u==\"%\"&&(i+=r.read(),o=Tokens.PERCENTAGE),this.createToken(o,i,t,n)},stringToken:function(e,t,n){var r=e,i=e,s=this._reader,o=e,u=Tokens.STRING,a=s.read();while(a){i+=a;if(a==r&&o!=\"\\\\\")break;if(isNewLine(s.peek())&&a!=\"\\\\\"){u=Tokens.INVALID;break}o=a,a=s.read()}return a===null&&(u=Tokens.INVALID),this.createToken(u,i,t,n)},unicodeRangeToken:function(e,t,n){var r=this._reader,i=e,s,o=Tokens.CHAR;return r.peek()==\"+\"&&(r.mark(),i+=r.read(),i+=this.readUnicodeRangePart(!0),i.length==2?r.reset():(o=Tokens.UNICODE_RANGE,i.indexOf(\"?\")==-1&&r.peek()==\"-\"&&(r.mark(),s=r.read(),s+=this.readUnicodeRangePart(!1),s.length==1?r.reset():i+=s))),this.createToken(o,i,t,n)},whitespaceToken:function(e,t,n){var r=this._reader,i=e+this.readWhitespace();return this.createToken(Tokens.S,i,t,n)},readUnicodeRangePart:function(e){var t=this._reader,n=\"\",r=t.peek();while(isHexDigit(r)&&n.length<6)t.read(),n+=r,r=t.peek();if(e)while(r==\"?\"&&n.length<6)t.read(),n+=r,r=t.peek();return n},readWhitespace:function(){var e=this._reader,t=\"\",n=e.peek();while(isWhitespace(n))e.read(),t+=n,n=e.peek();return t},readNumber:function(e){var t=this._reader,n=e,r=e==\".\",i=t.peek();while(i){if(isDigit(i))n+=t.read();else{if(i!=\".\")break;if(r)break;r=!0,n+=t.read()}i=t.peek()}return n},readString:function(){var e=this._reader,t=e.read(),n=t,r=t,i=e.peek();while(i){i=e.read(),n+=i;if(i==t&&r!=\"\\\\\")break;if(isNewLine(e.peek())&&i!=\"\\\\\"){n=\"\";break}r=i,i=e.peek()}return i===null&&(n=\"\"),n},readURI:function(e){var t=this._reader,n=e,r=\"\",i=t.peek();t.mark();while(i&&isWhitespace(i))t.read(),i=t.peek();i==\"'\"||i=='\"'?r=this.readString():r=this.readURL(),i=t.peek();while(i&&isWhitespace(i))t.read(),i=t.peek();return r===\"\"||i!=\")\"?(n=e,t.reset()):n+=r+t.read(),n},readURL:function(){var e=this._reader,t=\"\",n=e.peek();while(/^[!#$%&\\\\*-~]$/.test(n))t+=e.read(),n=e.peek();return t},readName:function(e){var t=this._reader,n=e||\"\",r=t.peek();for(;;)if(r==\"\\\\\")n+=this.readEscape(t.read()),r=t.peek();else{if(!r||!isNameChar(r))break;n+=t.read(),r=t.peek()}return n},readEscape:function(e){var t=this._reader,n=e||\"\",r=0,i=t.peek();if(isHexDigit(i))do n+=t.read(),i=t.peek();while(i&&isHexDigit(i)&&++r<6);return n.length==3&&/\\s/.test(i)||n.length==7||n.length==1?t.read():i=\"\",n+i},readComment:function(e){var t=this._reader,n=e||\"\",r=t.read();if(r==\"*\"){while(r){n+=r;if(n.length>2&&r==\"*\"&&t.peek()==\"/\"){n+=t.read();break}r=t.read()}return n}return\"\"}});var Tokens=[{name:\"CDO\"},{name:\"CDC\"},{name:\"S\",whitespace:!0},{name:\"COMMENT\",comment:!0,hide:!0,channel:\"comment\"},{name:\"INCLUDES\",text:\"~=\"},{name:\"DASHMATCH\",text:\"|=\"},{name:\"PREFIXMATCH\",text:\"^=\"},{name:\"SUFFIXMATCH\",text:\"$=\"},{name:\"SUBSTRINGMATCH\",text:\"*=\"},{name:\"STRING\"},{name:\"IDENT\"},{name:\"HASH\"},{name:\"IMPORT_SYM\",text:\"@import\"},{name:\"PAGE_SYM\",text:\"@page\"},{name:\"MEDIA_SYM\",text:\"@media\"},{name:\"FONT_FACE_SYM\",text:\"@font-face\"},{name:\"CHARSET_SYM\",text:\"@charset\"},{name:\"NAMESPACE_SYM\",text:\"@namespace\"},{name:\"VIEWPORT_SYM\",text:[\"@viewport\",\"@-ms-viewport\"]},{name:\"UNKNOWN_SYM\"},{name:\"KEYFRAMES_SYM\",text:[\"@keyframes\",\"@-webkit-keyframes\",\"@-moz-keyframes\",\"@-o-keyframes\"]},{name:\"IMPORTANT_SYM\"},{name:\"LENGTH\"},{name:\"ANGLE\"},{name:\"TIME\"},{name:\"FREQ\"},{name:\"DIMENSION\"},{name:\"PERCENTAGE\"},{name:\"NUMBER\"},{name:\"URI\"},{name:\"FUNCTION\"},{name:\"UNICODE_RANGE\"},{name:\"INVALID\"},{name:\"PLUS\",text:\"+\"},{name:\"GREATER\",text:\">\"},{name:\"COMMA\",text:\",\"},{name:\"TILDE\",text:\"~\"},{name:\"NOT\"},{name:\"TOPLEFTCORNER_SYM\",text:\"@top-left-corner\"},{name:\"TOPLEFT_SYM\",text:\"@top-left\"},{name:\"TOPCENTER_SYM\",text:\"@top-center\"},{name:\"TOPRIGHT_SYM\",text:\"@top-right\"},{name:\"TOPRIGHTCORNER_SYM\",text:\"@top-right-corner\"},{name:\"BOTTOMLEFTCORNER_SYM\",text:\"@bottom-left-corner\"},{name:\"BOTTOMLEFT_SYM\",text:\"@bottom-left\"},{name:\"BOTTOMCENTER_SYM\",text:\"@bottom-center\"},{name:\"BOTTOMRIGHT_SYM\",text:\"@bottom-right\"},{name:\"BOTTOMRIGHTCORNER_SYM\",text:\"@bottom-right-corner\"},{name:\"LEFTTOP_SYM\",text:\"@left-top\"},{name:\"LEFTMIDDLE_SYM\",text:\"@left-middle\"},{name:\"LEFTBOTTOM_SYM\",text:\"@left-bottom\"},{name:\"RIGHTTOP_SYM\",text:\"@right-top\"},{name:\"RIGHTMIDDLE_SYM\",text:\"@right-middle\"},{name:\"RIGHTBOTTOM_SYM\",text:\"@right-bottom\"},{name:\"RESOLUTION\",state:\"media\"},{name:\"IE_FUNCTION\"},{name:\"CHAR\"},{name:\"PIPE\",text:\"|\"},{name:\"SLASH\",text:\"/\"},{name:\"MINUS\",text:\"-\"},{name:\"STAR\",text:\"*\"},{name:\"LBRACE\",endChar:\"}\",text:\"{\"},{name:\"RBRACE\",text:\"}\"},{name:\"LBRACKET\",endChar:\"]\",text:\"[\"},{name:\"RBRACKET\",text:\"]\"},{name:\"EQUALS\",text:\"=\"},{name:\"COLON\",text:\":\"},{name:\"SEMICOLON\",text:\";\"},{name:\"LPAREN\",endChar:\")\",text:\"(\"},{name:\"RPAREN\",text:\")\"},{name:\"DOT\",text:\".\"}];(function(){var e=[],t={};Tokens.UNKNOWN=-1,Tokens.unshift({name:\"EOF\"});for(var n=0,r=Tokens.length;n<r;n++){e.push(Tokens[n].name),Tokens[Tokens[n].name]=n;if(Tokens[n].text)if(Tokens[n].text instanceof Array)for(var i=0;i<Tokens[n].text.length;i++)t[Tokens[n].text[i]]=n;else t[Tokens[n].text]=n}Tokens.name=function(t){return e[t]},Tokens.type=function(e){return t[e]||-1}})();var Validation={validate:function(e,t){var n=e.toString().toLowerCase(),r=t.parts,i=new PropertyValueIterator(t),s=Properties[n],o,u,a,f,l,c,h,p,d,v,m;if(!s){if(n.indexOf(\"-\")!==0)throw new ValidationError(\"Unknown property '\"+e+\"'.\",e.line,e.col)}else typeof s!=\"number\"&&(typeof s==\"string\"?s.indexOf(\"||\")>-1?this.groupProperty(s,i):this.singleProperty(s,i,1):s.multi?this.multiProperty(s.multi,i,s.comma,s.max||Infinity):typeof s==\"function\"&&s(i))},singleProperty:function(e,t,n,r){var i=!1,s=t.value,o=0,u;while(t.hasNext()&&o<n){i=ValidationTypes.isAny(t,e);if(!i)break;o++}if(!i)throw t.hasNext()&&!t.isFirst()?(u=t.peek(),new ValidationError(\"Expected end of value but found '\"+u+\"'.\",u.line,u.col)):new ValidationError(\"Expected (\"+e+\") but found '\"+s+\"'.\",s.line,s.col);if(t.hasNext())throw u=t.next(),new ValidationError(\"Expected end of value but found '\"+u+\"'.\",u.line,u.col)},multiProperty:function(e,t,n,r){var i=!1,s=t.value,o=0,u=!1,a;while(t.hasNext()&&!i&&o<r){if(!ValidationTypes.isAny(t,e))break;o++;if(!t.hasNext())i=!0;else if(n){if(t.peek()!=\",\")break;a=t.next()}}if(!i)throw t.hasNext()&&!t.isFirst()?(a=t.peek(),new ValidationError(\"Expected end of value but found '\"+a+\"'.\",a.line,a.col)):(a=t.previous(),n&&a==\",\"?new ValidationError(\"Expected end of value but found '\"+a+\"'.\",a.line,a.col):new ValidationError(\"Expected (\"+e+\") but found '\"+s+\"'.\",s.line,s.col));if(t.hasNext())throw a=t.next(),new ValidationError(\"Expected end of value but found '\"+a+\"'.\",a.line,a.col)},groupProperty:function(e,t,n){var r=!1,i=t.value,s=e.split(\"||\").length,o={count:0},u=!1,a,f;while(t.hasNext()&&!r){a=ValidationTypes.isAnyOfGroup(t,e);if(!a)break;if(o[a])break;o[a]=1,o.count++,u=!0;if(o.count==s||!t.hasNext())r=!0}if(!r)throw u&&t.hasNext()?(f=t.peek(),new ValidationError(\"Expected end of value but found '\"+f+\"'.\",f.line,f.col)):new ValidationError(\"Expected (\"+e+\") but found '\"+i+\"'.\",i.line,i.col);if(t.hasNext())throw f=t.next(),new ValidationError(\"Expected end of value but found '\"+f+\"'.\",f.line,f.col)}};ValidationError.prototype=new Error;var ValidationTypes={isLiteral:function(e,t){var n=e.text.toString().toLowerCase(),r=t.split(\" | \"),i,s,o=!1;for(i=0,s=r.length;i<s&&!o;i++)n==r[i].toLowerCase()&&(o=!0);return o},isSimple:function(e){return!!this.simple[e]},isComplex:function(e){return!!this.complex[e]},isAny:function(e,t){var n=t.split(\" | \"),r,i,s=!1;for(r=0,i=n.length;r<i&&!s&&e.hasNext();r++)s=this.isType(e,n[r]);return s},isAnyOfGroup:function(e,t){var n=t.split(\" || \"),r,i,s=!1;for(r=0,i=n.length;r<i&&!s;r++)s=this.isType(e,n[r]);return s?n[r-1]:!1},isType:function(e,t){var n=e.peek(),r=!1;return t.charAt(0)!=\"<\"?(r=this.isLiteral(n,t),r&&e.next()):this.simple[t]?(r=this.simple[t](n),r&&e.next()):r=this.complex[t](e),r},simple:{\"<absolute-size>\":function(e){return ValidationTypes.isLiteral(e,\"xx-small | x-small | small | medium | large | x-large | xx-large\")},\"<attachment>\":function(e){return ValidationTypes.isLiteral(e,\"scroll | fixed | local\")},\"<attr>\":function(e){return e.type==\"function\"&&e.name==\"attr\"},\"<bg-image>\":function(e){return this[\"<image>\"](e)||this[\"<gradient>\"](e)||e==\"none\"},\"<gradient>\":function(e){return e.type==\"function\"&&/^(?:\\-(?:ms|moz|o|webkit)\\-)?(?:repeating\\-)?(?:radial\\-|linear\\-)?gradient/i.test(e)},\"<box>\":function(e){return ValidationTypes.isLiteral(e,\"padding-box | border-box | content-box\")},\"<content>\":function(e){return e.type==\"function\"&&e.name==\"content\"},\"<relative-size>\":function(e){return ValidationTypes.isLiteral(e,\"smaller | larger\")},\"<ident>\":function(e){return e.type==\"identifier\"},\"<length>\":function(e){return e.type==\"function\"&&/^(?:\\-(?:ms|moz|o|webkit)\\-)?calc/i.test(e)?!0:e.type==\"length\"||e.type==\"number\"||e.type==\"integer\"||e==\"0\"},\"<color>\":function(e){return e.type==\"color\"||e==\"transparent\"},\"<number>\":function(e){return e.type==\"number\"||this[\"<integer>\"](e)},\"<integer>\":function(e){return e.type==\"integer\"},\"<line>\":function(e){return e.type==\"integer\"},\"<angle>\":function(e){return e.type==\"angle\"},\"<uri>\":function(e){return e.type==\"uri\"},\"<image>\":function(e){return this[\"<uri>\"](e)},\"<percentage>\":function(e){return e.type==\"percentage\"||e==\"0\"},\"<border-width>\":function(e){return this[\"<length>\"](e)||ValidationTypes.isLiteral(e,\"thin | medium | thick\")},\"<border-style>\":function(e){return ValidationTypes.isLiteral(e,\"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset\")},\"<content-sizing>\":function(e){return ValidationTypes.isLiteral(e,\"fill-available | -moz-available | -webkit-fill-available | max-content | -moz-max-content | -webkit-max-content | min-content | -moz-min-content | -webkit-min-content | fit-content | -moz-fit-content | -webkit-fit-content\")},\"<margin-width>\":function(e){return this[\"<length>\"](e)||this[\"<percentage>\"](e)||ValidationTypes.isLiteral(e,\"auto\")},\"<padding-width>\":function(e){return this[\"<length>\"](e)||this[\"<percentage>\"](e)},\"<shape>\":function(e){return e.type==\"function\"&&(e.name==\"rect\"||e.name==\"inset-rect\")},\"<time>\":function(e){return e.type==\"time\"},\"<flex-grow>\":function(e){return this[\"<number>\"](e)},\"<flex-shrink>\":function(e){return this[\"<number>\"](e)},\"<width>\":function(e){return this[\"<margin-width>\"](e)},\"<flex-basis>\":function(e){return this[\"<width>\"](e)},\"<flex-direction>\":function(e){return ValidationTypes.isLiteral(e,\"row | row-reverse | column | column-reverse\")},\"<flex-wrap>\":function(e){return ValidationTypes.isLiteral(e,\"nowrap | wrap | wrap-reverse\")}},complex:{\"<bg-position>\":function(e){var t=this,n=!1,r=\"<percentage> | <length>\",i=\"left | right\",s=\"top | bottom\",o=0,u=function(){return e.hasNext()&&e.peek()!=\",\"};while(e.peek(o)&&e.peek(o)!=\",\")o++;return o<3?ValidationTypes.isAny(e,i+\" | center | \"+r)?(n=!0,ValidationTypes.isAny(e,s+\" | center | \"+r)):ValidationTypes.isAny(e,s)&&(n=!0,ValidationTypes.isAny(e,i+\" | center\")):ValidationTypes.isAny(e,i)?ValidationTypes.isAny(e,s)?(n=!0,ValidationTypes.isAny(e,r)):ValidationTypes.isAny(e,r)&&(ValidationTypes.isAny(e,s)?(n=!0,ValidationTypes.isAny(e,r)):ValidationTypes.isAny(e,\"center\")&&(n=!0)):ValidationTypes.isAny(e,s)?ValidationTypes.isAny(e,i)?(n=!0,ValidationTypes.isAny(e,r)):ValidationTypes.isAny(e,r)&&(ValidationTypes.isAny(e,i)?(n=!0,ValidationTypes.isAny(e,r)):ValidationTypes.isAny(e,\"center\")&&(n=!0)):ValidationTypes.isAny(e,\"center\")&&ValidationTypes.isAny(e,i+\" | \"+s)&&(n=!0,ValidationTypes.isAny(e,r)),n},\"<bg-size>\":function(e){var t=this,n=!1,r=\"<percentage> | <length> | auto\",i,s,o;return ValidationTypes.isAny(e,\"cover | contain\")?n=!0:ValidationTypes.isAny(e,r)&&(n=!0,ValidationTypes.isAny(e,r)),n},\"<repeat-style>\":function(e){var t=!1,n=\"repeat | space | round | no-repeat\",r;return e.hasNext()&&(r=e.next(),ValidationTypes.isLiteral(r,\"repeat-x | repeat-y\")?t=!0:ValidationTypes.isLiteral(r,n)&&(t=!0,e.hasNext()&&ValidationTypes.isLiteral(e.peek(),n)&&e.next())),t},\"<shadow>\":function(e){var t=!1,n=0,r=!1,i=!1,s;if(e.hasNext()){ValidationTypes.isAny(e,\"inset\")&&(r=!0),ValidationTypes.isAny(e,\"<color>\")&&(i=!0);while(ValidationTypes.isAny(e,\"<length>\")&&n<4)n++;e.hasNext()&&(i||ValidationTypes.isAny(e,\"<color>\"),r||ValidationTypes.isAny(e,\"inset\")),t=n>=2&&n<=4}return t},\"<x-one-radius>\":function(e){var t=!1,n=\"<length> | <percentage> | inherit\";return ValidationTypes.isAny(e,n)&&(t=!0,ValidationTypes.isAny(e,n)),t},\"<flex>\":function(e){var t,n=!1;ValidationTypes.isAny(e,\"none | inherit\")?n=!0:ValidationTypes.isType(e,\"<flex-grow>\")?e.peek()?ValidationTypes.isType(e,\"<flex-shrink>\")?e.peek()?n=ValidationTypes.isType(e,\"<flex-basis>\"):n=!0:ValidationTypes.isType(e,\"<flex-basis>\")&&(n=e.peek()===null):n=!0:ValidationTypes.isType(e,\"<flex-basis>\")&&(n=!0);if(!n)throw t=e.peek(),new ValidationError(\"Expected (none | [ <flex-grow> <flex-shrink>? || <flex-basis> ]) but found '\"+e.value.text+\"'.\",t.line,t.col);return n}}};parserlib.css={Colors:Colors,Combinator:Combinator,Parser:Parser,PropertyName:PropertyName,PropertyValue:PropertyValue,PropertyValuePart:PropertyValuePart,MediaFeature:MediaFeature,MediaQuery:MediaQuery,Selector:Selector,SelectorPart:SelectorPart,SelectorSubPart:SelectorSubPart,Specificity:Specificity,TokenStream:TokenStream,Tokens:Tokens,ValidationError:ValidationError}}(),function(){for(var e in parserlib)exports[e]=parserlib[e]}();var util={isArray:function(e){return Array.isArray(e)||typeof e==\"object\"&&objectToString(e)===\"[object Array]\"},isDate:function(e){return typeof e==\"object\"&&objectToString(e)===\"[object Date]\"},isRegExp:function(e){return typeof e==\"object\"&&objectToString(e)===\"[object RegExp]\"},getRegExpFlags:function(e){var t=\"\";return e.global&&(t+=\"g\"),e.ignoreCase&&(t+=\"i\"),e.multiline&&(t+=\"m\"),t}};typeof module==\"object\"&&(module.exports=clone),clone.clonePrototype=function(e){if(e===null)return null;var t=function(){};return t.prototype=e,new t};var CSSLint=function(){function i(e,t){var r,i=e&&e.match(n),s=i&&i[1];return s&&(r={\"true\":2,\"\":1,\"false\":0,2:2,1:1,0:0},s.toLowerCase().split(\",\").forEach(function(e){var n=e.split(\":\"),i=n[0]||\"\",s=n[1]||\"\";t[i.trim()]=r[s.trim()]})),t}var e=[],t=[],n=/\\/\\*csslint([^\\*]*)\\*\\//,r=new parserlib.util.EventTarget;return r.version=\"@VERSION@\",r.addRule=function(t){e.push(t),e[t.id]=t},r.clearRules=function(){e=[]},r.getRules=function(){return[].concat(e).sort(function(e,t){return e.id>t.id?1:0})},r.getRuleset=function(){var t={},n=0,r=e.length;while(n<r)t[e[n++].id]=1;return t},r.addFormatter=function(e){t[e.id]=e},r.getFormatter=function(e){return t[e]},r.format=function(e,t,n,r){var i=this.getFormatter(n),s=null;return i&&(s=i.startFormat(),s+=i.formatResults(e,t,r||{}),s+=i.endFormat()),s},r.hasFormat=function(e){return t.hasOwnProperty(e)},r.verify=function(t,r){var s=0,o,u,a,f=new parserlib.css.Parser({starHack:!0,ieFilters:!0,underscoreHack:!0,strict:!1});u=t.replace(/\\n\\r?/g,\"$split$\").split(\"$split$\"),r||(r=this.getRuleset()),n.test(t)&&(r=clone(r),r=i(t,r)),o=new Reporter(u,r),r.errors=2;for(s in r)r.hasOwnProperty(s)&&r[s]&&e[s]&&e[s].init(f,o);try{f.parse(t)}catch(l){o.error(\"Fatal error, cannot continue: \"+l.message,l.line,l.col,{})}return a={messages:o.messages,stats:o.stats,ruleset:o.ruleset},a.messages.sort(function(e,t){return e.rollup&&!t.rollup?1:!e.rollup&&t.rollup?-1:e.line-t.line}),a},r}();Reporter.prototype={constructor:Reporter,error:function(e,t,n,r){this.messages.push({type:\"error\",line:t,col:n,message:e,evidence:this.lines[t-1],rule:r||{}})},warn:function(e,t,n,r){this.report(e,t,n,r)},report:function(e,t,n,r){this.messages.push({type:this.ruleset[r.id]===2?\"error\":\"warning\",line:t,col:n,message:e,evidence:this.lines[t-1],rule:r})},info:function(e,t,n,r){this.messages.push({type:\"info\",line:t,col:n,message:e,evidence:this.lines[t-1],rule:r})},rollupError:function(e,t){this.messages.push({type:\"error\",rollup:!0,message:e,rule:t})},rollupWarn:function(e,t){this.messages.push({type:\"warning\",rollup:!0,message:e,rule:t})},stat:function(e,t){this.stats[e]=t}},CSSLint._Reporter=Reporter,CSSLint.Util={mix:function(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return n},indexOf:function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t){if(e.forEach)return e.forEach(t);for(var n=0,r=e.length;n<r;n++)t(e[n],n,e)}},CSSLint.addRule({id:\"adjoining-classes\",name:\"Disallow adjoining classes\",desc:\"Don't use adjoining classes.\",browsers:\"IE6\",init:function(e,t){var n=this;e.addListener(\"startrule\",function(r){var i=r.selectors,s,o,u,a,f,l,c;for(f=0;f<i.length;f++){s=i[f];for(l=0;l<s.parts.length;l++){o=s.parts[l];if(o.type===e.SELECTOR_PART_TYPE){a=0;for(c=0;c<o.modifiers.length;c++)u=o.modifiers[c],u.type===\"class\"&&a++,a>1&&t.report(\"Don't use adjoining classes.\",o.line,o.col,n)}}}})}}),CSSLint.addRule({id:\"box-model\",name:\"Beware of broken box size\",desc:\"Don't use width or height when using padding or border.\",browsers:\"All\",init:function(e,t){function u(){s={},o=!1}function a(){var e,u;if(!o){if(s.height)for(e in i)i.hasOwnProperty(e)&&s[e]&&(u=s[e].value,(e!==\"padding\"||u.parts.length!==2||u.parts[0].value!==0)&&t.report(\"Using height with \"+e+\" can sometimes make elements larger than you expect.\",s[e].line,s[e].col,n));if(s.width)for(e in r)r.hasOwnProperty(e)&&s[e]&&(u=s[e].value,(e!==\"padding\"||u.parts.length!==2||u.parts[1].value!==0)&&t.report(\"Using width with \"+e+\" can sometimes make elements larger than you expect.\",s[e].line,s[e].col,n))}}var n=this,r={border:1,\"border-left\":1,\"border-right\":1,padding:1,\"padding-left\":1,\"padding-right\":1},i={border:1,\"border-bottom\":1,\"border-top\":1,padding:1,\"padding-bottom\":1,\"padding-top\":1},s,o=!1;e.addListener(\"startrule\",u),e.addListener(\"startfontface\",u),e.addListener(\"startpage\",u),e.addListener(\"startpagemargin\",u),e.addListener(\"startkeyframerule\",u),e.addListener(\"property\",function(e){var t=e.property.text.toLowerCase();i[t]||r[t]?!/^0\\S*$/.test(e.value)&&(t!==\"border\"||e.value.toString()!==\"none\")&&(s[t]={line:e.property.line,col:e.property.col,value:e.value}):/^(width|height)/i.test(t)&&/^(length|percentage)/.test(e.value.parts[0].type)?s[t]=1:t===\"box-sizing\"&&(o=!0)}),e.addListener(\"endrule\",a),e.addListener(\"endfontface\",a),e.addListener(\"endpage\",a),e.addListener(\"endpagemargin\",a),e.addListener(\"endkeyframerule\",a)}}),CSSLint.addRule({id:\"box-sizing\",name:\"Disallow use of box-sizing\",desc:\"The box-sizing properties isn't supported in IE6 and IE7.\",browsers:\"IE6, IE7\",tags:[\"Compatibility\"],init:function(e,t){var n=this;e.addListener(\"property\",function(e){var r=e.property.text.toLowerCase();r===\"box-sizing\"&&t.report(\"The box-sizing property isn't supported in IE6 and IE7.\",e.line,e.col,n)})}}),CSSLint.addRule({id:\"bulletproof-font-face\",name:\"Use the bulletproof @font-face syntax\",desc:\"Use the bulletproof @font-face syntax to avoid 404's in old IE (http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax).\",browsers:\"All\",init:function(e,t){var n=this,r=!1,i=!0,s=!1,o,u;e.addListener(\"startfontface\",function(){r=!0}),e.addListener(\"property\",function(e){if(!r)return;var t=e.property.toString().toLowerCase(),n=e.value.toString();o=e.line,u=e.col;if(t===\"src\"){var a=/^\\s?url\\(['\"].+\\.eot\\?.*['\"]\\)\\s*format\\(['\"]embedded-opentype['\"]\\).*$/i;!n.match(a)&&i?(s=!0,i=!1):n.match(a)&&!i&&(s=!1)}}),e.addListener(\"endfontface\",function(){r=!1,s&&t.report(\"@font-face declaration doesn't follow the fontspring bulletproof syntax.\",o,u,n)})}}),CSSLint.addRule({id:\"compatible-vendor-prefixes\",name:\"Require compatible vendor prefixes\",desc:\"Include all compatible vendor prefixes to reach a wider range of users.\",browsers:\"All\",init:function(e,t){var n=this,r,i,s,o,u,a,f,l=!1,c=Array.prototype.push,h=[];r={animation:\"webkit moz\",\"animation-delay\":\"webkit moz\",\"animation-direction\":\"webkit moz\",\"animation-duration\":\"webkit moz\",\"animation-fill-mode\":\"webkit moz\",\"animation-iteration-count\":\"webkit moz\",\"animation-name\":\"webkit moz\",\"animation-play-state\":\"webkit moz\",\"animation-timing-function\":\"webkit moz\",appearance:\"webkit moz\",\"border-end\":\"webkit moz\",\"border-end-color\":\"webkit moz\",\"border-end-style\":\"webkit moz\",\"border-end-width\":\"webkit moz\",\"border-image\":\"webkit moz o\",\"border-radius\":\"webkit\",\"border-start\":\"webkit moz\",\"border-start-color\":\"webkit moz\",\"border-start-style\":\"webkit moz\",\"border-start-width\":\"webkit moz\",\"box-align\":\"webkit moz ms\",\"box-direction\":\"webkit moz ms\",\"box-flex\":\"webkit moz ms\",\"box-lines\":\"webkit ms\",\"box-ordinal-group\":\"webkit moz ms\",\"box-orient\":\"webkit moz ms\",\"box-pack\":\"webkit moz ms\",\"box-sizing\":\"webkit moz\",\"box-shadow\":\"webkit moz\",\"column-count\":\"webkit moz ms\",\"column-gap\":\"webkit moz ms\",\"column-rule\":\"webkit moz ms\",\"column-rule-color\":\"webkit moz ms\",\"column-rule-style\":\"webkit moz ms\",\"column-rule-width\":\"webkit moz ms\",\"column-width\":\"webkit moz ms\",hyphens:\"epub moz\",\"line-break\":\"webkit ms\",\"margin-end\":\"webkit moz\",\"margin-start\":\"webkit moz\",\"marquee-speed\":\"webkit wap\",\"marquee-style\":\"webkit wap\",\"padding-end\":\"webkit moz\",\"padding-start\":\"webkit moz\",\"tab-size\":\"moz o\",\"text-size-adjust\":\"webkit ms\",transform:\"webkit moz ms o\",\"transform-origin\":\"webkit moz ms o\",transition:\"webkit moz o\",\"transition-delay\":\"webkit moz o\",\"transition-duration\":\"webkit moz o\",\"transition-property\":\"webkit moz o\",\"transition-timing-function\":\"webkit moz o\",\"user-modify\":\"webkit moz\",\"user-select\":\"webkit moz ms\",\"word-break\":\"epub ms\",\"writing-mode\":\"epub ms\"};for(s in r)if(r.hasOwnProperty(s)){o=[],u=r[s].split(\" \");for(a=0,f=u.length;a<f;a++)o.push(\"-\"+u[a]+\"-\"+s);r[s]=o,c.apply(h,o)}e.addListener(\"startrule\",function(){i=[]}),e.addListener(\"startkeyframes\",function(e){l=e.prefix||!0}),e.addListener(\"endkeyframes\",function(){l=!1}),e.addListener(\"property\",function(e){var t=e.property;CSSLint.Util.indexOf(h,t.text)>-1&&(!l||typeof l!=\"string\"||t.text.indexOf(\"-\"+l+\"-\")!==0)&&i.push(t)}),e.addListener(\"endrule\",function(){if(!i.length)return;var e={},s,o,u,a,f,l,c,h,p,d;for(s=0,o=i.length;s<o;s++){u=i[s];for(a in r)r.hasOwnProperty(a)&&(f=r[a],CSSLint.Util.indexOf(f,u.text)>-1&&(e[a]||(e[a]={full:f.slice(0),actual:[],actualNodes:[]}),CSSLint.Util.indexOf(e[a].actual,u.text)===-1&&(e[a].actual.push(u.text),e[a].actualNodes.push(u))))}for(a in e)if(e.hasOwnProperty(a)){l=e[a],c=l.full,h=l.actual;if(c.length>h.length)for(s=0,o=c.length;s<o;s++)p=c[s],CSSLint.Util.indexOf(h,p)===-1&&(d=h.length===1?h[0]:h.length===2?h.join(\" and \"):h.join(\", \"),t.report(\"The property \"+p+\" is compatible with \"+d+\" and should be included as well.\",l.actualNodes[0].line,l.actualNodes[0].col,n))}})}}),CSSLint.addRule({id:\"display-property-grouping\",name:\"Require properties appropriate for display\",desc:\"Certain properties shouldn't be used with certain display property values.\",browsers:\"All\",init:function(e,t){function s(e,s,o){i[e]&&(typeof r[e]!=\"string\"||i[e].value.toLowerCase()!==r[e])&&t.report(o||e+\" can't be used with display: \"+s+\".\",i[e].line,i[e].col,n)}function o(){i={}}function u(){var e=i.display?i.display.value:null;if(e)switch(e){case\"inline\":s(\"height\",e),s(\"width\",e),s(\"margin\",e),s(\"margin-top\",e),s(\"margin-bottom\",e),s(\"float\",e,\"display:inline has no effect on floated elements (but may be used to fix the IE6 double-margin bug).\");break;case\"block\":s(\"vertical-align\",e);break;case\"inline-block\":s(\"float\",e);break;default:e.indexOf(\"table-\")===0&&(s(\"margin\",e),s(\"margin-left\",e),s(\"margin-right\",e),s(\"margin-top\",e),s(\"margin-bottom\",e),s(\"float\",e))}}var n=this,r={display:1,\"float\":\"none\",height:1,width:1,margin:1,\"margin-left\":1,\"margin-right\":1,\"margin-bottom\":1,\"margin-top\":1,padding:1,\"padding-left\":1,\"padding-right\":1,\"padding-bottom\":1,\"padding-top\":1,\"vertical-align\":1},i;e.addListener(\"startrule\",o),e.addListener(\"startfontface\",o),e.addListener(\"startkeyframerule\",o),e.addListener(\"startpagemargin\",o),e.addListener(\"startpage\",o),e.addListener(\"property\",function(e){var t=e.property.text.toLowerCase();r[t]&&(i[t]={value:e.value.text,line:e.property.line,col:e.property.col})}),e.addListener(\"endrule\",u),e.addListener(\"endfontface\",u),e.addListener(\"endkeyframerule\",u),e.addListener(\"endpagemargin\",u),e.addListener(\"endpage\",u)}}),CSSLint.addRule({id:\"duplicate-background-images\",name:\"Disallow duplicate background images\",desc:\"Every background-image should be unique. Use a common class for e.g. sprites.\",browsers:\"All\",init:function(e,t){var n=this,r={};e.addListener(\"property\",function(e){var i=e.property.text,s=e.value,o,u;if(i.match(/background/i))for(o=0,u=s.parts.length;o<u;o++)s.parts[o].type===\"uri\"&&(typeof r[s.parts[o].uri]==\"undefined\"?r[s.parts[o].uri]=e:t.report(\"Background image '\"+s.parts[o].uri+\"' was used multiple times, first declared at line \"+r[s.parts[o].uri].line+\", col \"+r[s.parts[o].uri].col+\".\",e.line,e.col,n))})}}),CSSLint.addRule({id:\"duplicate-properties\",name:\"Disallow duplicate properties\",desc:\"Duplicate properties must appear one after the other.\",browsers:\"All\",init:function(e,t){function s(){r={}}var n=this,r,i;e.addListener(\"startrule\",s),e.addListener(\"startfontface\",s),e.addListener(\"startpage\",s),e.addListener(\"startpagemargin\",s),e.addListener(\"startkeyframerule\",s),e.addListener(\"property\",function(e){var s=e.property,o=s.text.toLowerCase();r[o]&&(i!==o||r[o]===e.value.text)&&t.report(\"Duplicate property '\"+e.property+\"' found.\",e.line,e.col,n),r[o]=e.value.text,i=o})}}),CSSLint.addRule({id:\"empty-rules\",name:\"Disallow empty rules\",desc:\"Rules without any properties specified should be removed.\",browsers:\"All\",init:function(e,t){var n=this,r=0;e.addListener(\"startrule\",function(){r=0}),e.addListener(\"property\",function(){r++}),e.addListener(\"endrule\",function(e){var i=e.selectors;r===0&&t.report(\"Rule is empty.\",i[0].line,i[0].col,n)})}}),CSSLint.addRule({id:\"errors\",name:\"Parsing Errors\",desc:\"This rule looks for recoverable syntax errors.\",browsers:\"All\",init:function(e,t){var n=this;e.addListener(\"error\",function(e){t.error(e.message,e.line,e.col,n)})}}),CSSLint.addRule({id:\"fallback-colors\",name:\"Require fallback colors\",desc:\"For older browsers that don't support RGBA, HSL, or HSLA, provide a fallback color.\",browsers:\"IE6,IE7,IE8\",init:function(e,t){function o(){s={},r=null}var n=this,r,i={color:1,background:1,\"border-color\":1,\"border-top-color\":1,\"border-right-color\":1,\"border-bottom-color\":1,\"border-left-color\":1,border:1,\"border-top\":1,\"border-right\":1,\"border-bottom\":1,\"border-left\":1,\"background-color\":1},s;e.addListener(\"startrule\",o),e.addListener(\"startfontface\",o),e.addListener(\"startpage\",o),e.addListener(\"startpagemargin\",o),e.addListener(\"startkeyframerule\",o),e.addListener(\"property\",function(e){var s=e.property,o=s.text.toLowerCase(),u=e.value.parts,a=0,f=\"\",l=u.length;if(i[o])while(a<l)u[a].type===\"color\"&&(\"alpha\"in u[a]||\"hue\"in u[a]?(/([^\\)]+)\\(/.test(u[a])&&(f=RegExp.$1.toUpperCase()),(!r||r.property.text.toLowerCase()!==o||r.colorType!==\"compat\")&&t.report(\"Fallback \"+o+\" (hex or RGB) should precede \"+f+\" \"+o+\".\",e.line,e.col,n)):e.colorType=\"compat\"),a++;r=e})}}),CSSLint.addRule({id:\"floats\",name:\"Disallow too many floats\",desc:\"This rule tests if the float property is used too many times\",browsers:\"All\",init:function(e,t){var n=this,r=0;e.addListener(\"property\",function(e){e.property.text.toLowerCase()===\"float\"&&e.value.text.toLowerCase()!==\"none\"&&r++}),e.addListener(\"endstylesheet\",function(){t.stat(\"floats\",r),r>=10&&t.rollupWarn(\"Too many floats (\"+r+\"), you're probably using them for layout. Consider using a grid system instead.\",n)})}}),CSSLint.addRule({id:\"font-faces\",name:\"Don't use too many web fonts\",desc:\"Too many different web fonts in the same stylesheet.\",browsers:\"All\",init:function(e,t){var n=this,r=0;e.addListener(\"startfontface\",function(){r++}),e.addListener(\"endstylesheet\",function(){r>5&&t.rollupWarn(\"Too many @font-face declarations (\"+r+\").\",n)})}}),CSSLint.addRule({id:\"font-sizes\",name:\"Disallow too many font sizes\",desc:\"Checks the number of font-size declarations.\",browsers:\"All\",init:function(e,t){var n=this,r=0;e.addListener(\"property\",function(e){e.property.toString()===\"font-size\"&&r++}),e.addListener(\"endstylesheet\",function(){t.stat(\"font-sizes\",r),r>=10&&t.rollupWarn(\"Too many font-size declarations (\"+r+\"), abstraction needed.\",n)})}}),CSSLint.addRule({id:\"gradients\",name:\"Require all gradient definitions\",desc:\"When using a vendor-prefixed gradient, make sure to use them all.\",browsers:\"All\",init:function(e,t){var n=this,r;e.addListener(\"startrule\",function(){r={moz:0,webkit:0,oldWebkit:0,o:0}}),e.addListener(\"property\",function(e){/\\-(moz|o|webkit)(?:\\-(?:linear|radial))\\-gradient/i.test(e.value)?r[RegExp.$1]=1:/\\-webkit\\-gradient/i.test(e.value)&&(r.oldWebkit=1)}),e.addListener(\"endrule\",function(e){var i=[];r.moz||i.push(\"Firefox 3.6+\"),r.webkit||i.push(\"Webkit (Safari 5+, Chrome)\"),r.oldWebkit||i.push(\"Old Webkit (Safari 4+, Chrome)\"),r.o||i.push(\"Opera 11.1+\"),i.length&&i.length<4&&t.report(\"Missing vendor-prefixed CSS gradients for \"+i.join(\", \")+\".\",e.selectors[0].line,e.selectors[0].col,n)})}}),CSSLint.addRule({id:\"ids\",name:\"Disallow IDs in selectors\",desc:\"Selectors should not contain IDs.\",browsers:\"All\",init:function(e,t){var n=this;e.addListener(\"startrule\",function(r){var i=r.selectors,s,o,u,a,f,l,c;for(f=0;f<i.length;f++){s=i[f],a=0;for(l=0;l<s.parts.length;l++){o=s.parts[l];if(o.type===e.SELECTOR_PART_TYPE)for(c=0;c<o.modifiers.length;c++)u=o.modifiers[c],u.type===\"id\"&&a++}a===1?t.report(\"Don't use IDs in selectors.\",s.line,s.col,n):a>1&&t.report(a+\" IDs in the selector, really?\",s.line,s.col,n)}})}}),CSSLint.addRule({id:\"import\",name:\"Disallow @import\",desc:\"Don't use @import, use <link> instead.\",browsers:\"All\",init:function(e,t){var n=this;e.addListener(\"import\",function(e){t.report(\"@import prevents parallel downloads, use <link> instead.\",e.line,e.col,n)})}}),CSSLint.addRule({id:\"important\",name:\"Disallow !important\",desc:\"Be careful when using !important declaration\",browsers:\"All\",init:function(e,t){var n=this,r=0;e.addListener(\"property\",function(e){e.important===!0&&(r++,t.report(\"Use of !important\",e.line,e.col,n))}),e.addListener(\"endstylesheet\",function(){t.stat(\"important\",r),r>=10&&t.rollupWarn(\"Too many !important declarations (\"+r+\"), try to use less than 10 to avoid specificity issues.\",n)})}}),CSSLint.addRule({id:\"known-properties\",name:\"Require use of known properties\",desc:\"Properties should be known (listed in CSS3 specification) or be a vendor-prefixed property.\",browsers:\"All\",init:function(e,t){var n=this;e.addListener(\"property\",function(e){e.invalid&&t.report(e.invalid.message,e.line,e.col,n)})}}),CSSLint.addRule({id:\"order-alphabetical\",name:\"Alphabetical order\",desc:\"Assure properties are in alphabetical order\",browsers:\"All\",init:function(e,t){var n=this,r,i=function(){r=[]};e.addListener(\"startrule\",i),e.addListener(\"startfontface\",i),e.addListener(\"startpage\",i),e.addListener(\"startpagemargin\",i),e.addListener(\"startkeyframerule\",i),e.addListener(\"property\",function(e){var t=e.property.text,n=t.toLowerCase().replace(/^-.*?-/,\"\");r.push(n)}),e.addListener(\"endrule\",function(e){var i=r.join(\",\"),s=r.sort().join(\",\");i!==s&&t.report(\"Rule doesn't have all its properties in alphabetical ordered.\",e.line,e.col,n)})}}),CSSLint.addRule({id:\"outline-none\",name:\"Disallow outline: none\",desc:\"Use of outline: none or outline: 0 should be limited to :focus rules.\",browsers:\"All\",tags:[\"Accessibility\"],init:function(e,t){function i(e){e.selectors?r={line:e.line,col:e.col,selectors:e.selectors,propCount:0,outline:!1}:r=null}function s(){r&&r.outline&&(r.selectors.toString().toLowerCase().indexOf(\":focus\")===-1?t.report(\"Outlines should only be modified using :focus.\",r.line,r.col,n):r.propCount===1&&t.report(\"Outlines shouldn't be hidden unless other visual changes are made.\",r.line,r.col,n))}var n=this,r;e.addListener(\"startrule\",i),e.addListener(\"startfontface\",i),e.addListener(\"startpage\",i),e.addListener(\"startpagemargin\",i),e.addListener(\"startkeyframerule\",i),e.addListener(\"property\",function(e){var t=e.property.text.toLowerCase(),n=e.value;r&&(r.propCount++,t===\"outline\"&&(n.toString()===\"none\"||n.toString()===\"0\")&&(r.outline=!0))}),e.addListener(\"endrule\",s),e.addListener(\"endfontface\",s),e.addListener(\"endpage\",s),e.addListener(\"endpagemargin\",s),e.addListener(\"endkeyframerule\",s)}}),CSSLint.addRule({id:\"overqualified-elements\",name:\"Disallow overqualified elements\",desc:\"Don't use classes or IDs with elements (a.foo or a#foo).\",browsers:\"All\",init:function(e,t){var n=this,r={};e.addListener(\"startrule\",function(i){var s=i.selectors,o,u,a,f,l,c;for(f=0;f<s.length;f++){o=s[f];for(l=0;l<o.parts.length;l++){u=o.parts[l];if(u.type===e.SELECTOR_PART_TYPE)for(c=0;c<u.modifiers.length;c++)a=u.modifiers[c],u.elementName&&a.type===\"id\"?t.report(\"Element (\"+u+\") is overqualified, just use \"+a+\" without element name.\",u.line,u.col,n):a.type===\"class\"&&(r[a]||(r[a]=[]),r[a].push({modifier:a,part:u}))}}}),e.addListener(\"endstylesheet\",function(){var e;for(e in r)r.hasOwnProperty(e)&&r[e].length===1&&r[e][0].part.elementName&&t.report(\"Element (\"+r[e][0].part+\") is overqualified, just use \"+r[e][0].modifier+\" without element name.\",r[e][0].part.line,r[e][0].part.col,n)})}}),CSSLint.addRule({id:\"qualified-headings\",name:\"Disallow qualified headings\",desc:\"Headings should not be qualified (namespaced).\",browsers:\"All\",init:function(e,t){var n=this;e.addListener(\"startrule\",function(r){var i=r.selectors,s,o,u,a;for(u=0;u<i.length;u++){s=i[u];for(a=0;a<s.parts.length;a++)o=s.parts[a],o.type===e.SELECTOR_PART_TYPE&&o.elementName&&/h[1-6]/.test(o.elementName.toString())&&a>0&&t.report(\"Heading (\"+o.elementName+\") should not be qualified.\",o.line,o.col,n)}})}}),CSSLint.addRule({id:\"regex-selectors\",name:\"Disallow selectors that look like regexs\",desc:\"Selectors that look like regular expressions are slow and should be avoided.\",browsers:\"All\",init:function(e,t){var n=this;e.addListener(\"startrule\",function(r){var i=r.selectors,s,o,u,a,f,l;for(a=0;a<i.length;a++){s=i[a];for(f=0;f<s.parts.length;f++){o=s.parts[f];if(o.type===e.SELECTOR_PART_TYPE)for(l=0;l<o.modifiers.length;l++)u=o.modifiers[l],u.type===\"attribute\"&&/([\\~\\|\\^\\$\\*]=)/.test(u)&&t.report(\"Attribute selectors with \"+RegExp.$1+\" are slow!\",u.line,u.col,n)}}})}}),CSSLint.addRule({id:\"rules-count\",name:\"Rules Count\",desc:\"Track how many rules there are.\",browsers:\"All\",init:function(e,t){var n=0;e.addListener(\"startrule\",function(){n++}),e.addListener(\"endstylesheet\",function(){t.stat(\"rule-count\",n)})}}),CSSLint.addRule({id:\"selector-max-approaching\",name:\"Warn when approaching the 4095 selector limit for IE\",desc:\"Will warn when selector count is >= 3800 selectors.\",browsers:\"IE\",init:function(e,t){var n=this,r=0;e.addListener(\"startrule\",function(e){r+=e.selectors.length}),e.addListener(\"endstylesheet\",function(){r>=3800&&t.report(\"You have \"+r+\" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.\",0,0,n)})}}),CSSLint.addRule({id:\"selector-max\",name:\"Error when past the 4095 selector limit for IE\",desc:\"Will error when selector count is > 4095.\",browsers:\"IE\",init:function(e,t){var n=this,r=0;e.addListener(\"startrule\",function(e){r+=e.selectors.length}),e.addListener(\"endstylesheet\",function(){r>4095&&t.report(\"You have \"+r+\" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.\",0,0,n)})}}),CSSLint.addRule({id:\"selector-newline\",name:\"Disallow new-line characters in selectors\",desc:\"New-line characters in selectors are usually a forgotten comma and not a descendant combinator.\",browsers:\"All\",init:function(e,t){function r(e){var r,i,s,o,u,a,f,l,c,h,p,d=e.selectors;for(r=0,i=d.length;r<i;r++){s=d[r];for(o=0,a=s.parts.length;o<a;o++)for(u=o+1;u<a;u++)f=s.parts[o],l=s.parts[u],c=f.type,h=f.line,p=l.line,c===\"descendant\"&&p>h&&t.report(\"newline character found in selector (forgot a comma?)\",h,d[r].parts[0].col,n)}}var n=this;e.addListener(\"startrule\",r)}}),CSSLint.addRule({id:\"shorthand\",name:\"Require shorthand properties\",desc:\"Use shorthand properties where possible.\",browsers:\"All\",init:function(e,t){function f(){u={}}function l(e){var r,i,s,o;for(r in a)if(a.hasOwnProperty(r)){o=0;for(i=0,s=a[r].length;i<s;i++)o+=u[a[r][i]]?1:0;o===a[r].length&&t.report(\"The properties \"+a[r].join(\", \")+\" can be replaced by \"+r+\".\",e.line,e.col,n)}}var n=this,r,i,s,o={},u,a={margin:[\"margin-top\",\"margin-bottom\",\"margin-left\",\"margin-right\"],padding:[\"padding-top\",\"padding-bottom\",\"padding-left\",\"padding-right\"]};for(r in a)if(a.hasOwnProperty(r))for(i=0,s=a[r].length;i<s;i++)o[a[r][i]]=r;e.addListener(\"startrule\",f),e.addListener(\"startfontface\",f),e.addListener(\"property\",function(e){var t=e.property.toString().toLowerCase();o[t]&&(u[t]=1)}),e.addListener(\"endrule\",l),e.addListener(\"endfontface\",l)}}),CSSLint.addRule({id:\"star-property-hack\",name:\"Disallow properties with a star prefix\",desc:\"Checks for the star property hack (targets IE6/7)\",browsers:\"All\",init:function(e,t){var n=this;e.addListener(\"property\",function(e){var r=e.property;r.hack===\"*\"&&t.report(\"Property with star prefix found.\",e.property.line,e.property.col,n)})}}),CSSLint.addRule({id:\"text-indent\",name:\"Disallow negative text-indent\",desc:\"Checks for text indent less than -99px\",browsers:\"All\",init:function(e,t){function s(){r=!1,i=\"inherit\"}function o(){r&&i!==\"ltr\"&&t.report(\"Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set direction for that item to ltr.\",r.line,r.col,n)}var n=this,r,i;e.addListener(\"startrule\",s),e.addListener(\"startfontface\",s),e.addListener(\"property\",function(e){var t=e.property.toString().toLowerCase(),n=e.value;t===\"text-indent\"&&n.parts[0].value<-99?r=e.property:t===\"direction\"&&n.toString()===\"ltr\"&&(i=\"ltr\")}),e.addListener(\"endrule\",o),e.addListener(\"endfontface\",o)}}),CSSLint.addRule({id:\"underscore-property-hack\",name:\"Disallow properties with an underscore prefix\",desc:\"Checks for the underscore property hack (targets IE6)\",browsers:\"All\",init:function(e,t){var n=this;e.addListener(\"property\",function(e){var r=e.property;r.hack===\"_\"&&t.report(\"Property with underscore prefix found.\",e.property.line,e.property.col,n)})}}),CSSLint.addRule({id:\"unique-headings\",name:\"Headings should only be defined once\",desc:\"Headings should be defined only once.\",browsers:\"All\",init:function(e,t){var n=this,r={h1:0,h2:0,h3:0,h4:0,h5:0,h6:0};e.addListener(\"startrule\",function(e){var i=e.selectors,s,o,u,a,f;for(a=0;a<i.length;a++){s=i[a],o=s.parts[s.parts.length-1];if(o.elementName&&/(h[1-6])/i.test(o.elementName.toString())){for(f=0;f<o.modifiers.length;f++)if(o.modifiers[f].type===\"pseudo\"){u=!0;break}u||(r[RegExp.$1]++,r[RegExp.$1]>1&&t.report(\"Heading (\"+o.elementName+\") has already been defined.\",o.line,o.col,n))}}}),e.addListener(\"endstylesheet\",function(){var e,i=[];for(e in r)r.hasOwnProperty(e)&&r[e]>1&&i.push(r[e]+\" \"+e+\"s\");i.length&&t.rollupWarn(\"You have \"+i.join(\", \")+\" defined in this stylesheet.\",n)})}}),CSSLint.addRule({id:\"universal-selector\",name:\"Disallow universal selector\",desc:\"The universal selector (*) is known to be slow.\",browsers:\"All\",init:function(e,t){var n=this;e.addListener(\"startrule\",function(e){var r=e.selectors,i,s,o;for(o=0;o<r.length;o++)i=r[o],s=i.parts[i.parts.length-1],s.elementName===\"*\"&&t.report(n.desc,s.line,s.col,n)})}}),CSSLint.addRule({id:\"unqualified-attributes\",name:\"Disallow unqualified attribute selectors\",desc:\"Unqualified attribute selectors are known to be slow.\",browsers:\"All\",init:function(e,t){var n=this;e.addListener(\"startrule\",function(r){var i=r.selectors,s,o,u,a,f;for(a=0;a<i.length;a++){s=i[a],o=s.parts[s.parts.length-1];if(o.type===e.SELECTOR_PART_TYPE)for(f=0;f<o.modifiers.length;f++)u=o.modifiers[f],u.type===\"attribute\"&&(!o.elementName||o.elementName===\"*\")&&t.report(n.desc,o.line,o.col,n)}})}}),CSSLint.addRule({id:\"vendor-prefix\",name:\"Require standard property with vendor prefix\",desc:\"When using a vendor-prefixed property, make sure to include the standard one.\",browsers:\"All\",init:function(e,t){function o(){r={},i=1}function u(){var e,i,o,u,a,f=[];for(e in r)s[e]&&f.push({actual:e,needed:s[e]});for(i=0,o=f.length;i<o;i++)u=f[i].needed,a=f[i].actual,r[u]?r[u][0].pos<r[a][0].pos&&t.report(\"Standard property '\"+u+\"' should come after vendor-prefixed property '\"+a+\"'.\",r[a][0].name.line,r[a][0].name.col,n):t.report(\"Missing standard property '\"+u+\"' to go along with '\"+a+\"'.\",r[a][0].name.line,r[a][0].name.col,n)}var n=this,r,i,s={\"-webkit-border-radius\":\"border-radius\",\"-webkit-border-top-left-radius\":\"border-top-left-radius\",\"-webkit-border-top-right-radius\":\"border-top-right-radius\",\"-webkit-border-bottom-left-radius\":\"border-bottom-left-radius\",\"-webkit-border-bottom-right-radius\":\"border-bottom-right-radius\",\"-o-border-radius\":\"border-radius\",\"-o-border-top-left-radius\":\"border-top-left-radius\",\"-o-border-top-right-radius\":\"border-top-right-radius\",\"-o-border-bottom-left-radius\":\"border-bottom-left-radius\",\"-o-border-bottom-right-radius\":\"border-bottom-right-radius\",\"-moz-border-radius\":\"border-radius\",\"-moz-border-radius-topleft\":\"border-top-left-radius\",\"-moz-border-radius-topright\":\"border-top-right-radius\",\"-moz-border-radius-bottomleft\":\"border-bottom-left-radius\",\"-moz-border-radius-bottomright\":\"border-bottom-right-radius\",\"-moz-column-count\":\"column-count\",\"-webkit-column-count\":\"column-count\",\"-moz-column-gap\":\"column-gap\",\"-webkit-column-gap\":\"column-gap\",\"-moz-column-rule\":\"column-rule\",\"-webkit-column-rule\":\"column-rule\",\"-moz-column-rule-style\":\"column-rule-style\",\"-webkit-column-rule-style\":\"column-rule-style\",\"-moz-column-rule-color\":\"column-rule-color\",\"-webkit-column-rule-color\":\"column-rule-color\",\"-moz-column-rule-width\":\"column-rule-width\",\"-webkit-column-rule-width\":\"column-rule-width\",\"-moz-column-width\":\"column-width\",\"-webkit-column-width\":\"column-width\",\"-webkit-column-span\":\"column-span\",\"-webkit-columns\":\"columns\",\"-moz-box-shadow\":\"box-shadow\",\"-webkit-box-shadow\":\"box-shadow\",\"-moz-transform\":\"transform\",\"-webkit-transform\":\"transform\",\"-o-transform\":\"transform\",\"-ms-transform\":\"transform\",\"-moz-transform-origin\":\"transform-origin\",\"-webkit-transform-origin\":\"transform-origin\",\"-o-transform-origin\":\"transform-origin\",\"-ms-transform-origin\":\"transform-origin\",\"-moz-box-sizing\":\"box-sizing\",\"-webkit-box-sizing\":\"box-sizing\"};e.addListener(\"startrule\",o),e.addListener(\"startfontface\",o),e.addListener(\"startpage\",o),e.addListener(\"startpagemargin\",o),e.addListener(\"startkeyframerule\",o),e.addListener(\"property\",function(e){var t=e.property.text.toLowerCase();r[t]||(r[t]=[]),r[t].push({name:e.property,value:e.value,pos:i++})}),e.addListener(\"endrule\",u),e.addListener(\"endfontface\",u),e.addListener(\"endpage\",u),e.addListener(\"endpagemargin\",u),e.addListener(\"endkeyframerule\",u)}}),CSSLint.addRule({id:\"zero-units\",name:\"Disallow units for 0 values\",desc:\"You don't need to specify units when a value is 0.\",browsers:\"All\",init:function(e,t){var n=this;e.addListener(\"property\",function(e){var r=e.value.parts,i=0,s=r.length;while(i<s)(r[i].units||r[i].type===\"percentage\")&&r[i].value===0&&r[i].type!==\"time\"&&t.report(\"Values of 0 shouldn't have units specified.\",r[i].line,r[i].col,n),i++})}}),function(){var e=function(e){return!e||e.constructor!==String?\"\":e.replace(/[\\\"&><]/g,function(e){switch(e){case'\"':return\"&quot;\";case\"&\":return\"&amp;\";case\"<\":return\"&lt;\";case\">\":return\"&gt;\"}})};CSSLint.addFormatter({id:\"checkstyle-xml\",name:\"Checkstyle XML format\",startFormat:function(){return'<?xml version=\"1.0\" encoding=\"utf-8\"?><checkstyle>'},endFormat:function(){return\"</checkstyle>\"},readError:function(t,n){return'<file name=\"'+e(t)+'\"><error line=\"0\" column=\"0\" severty=\"error\" message=\"'+e(n)+'\"></error></file>'},formatResults:function(t,n){var r=t.messages,i=[],s=function(e){return!!e&&\"name\"in e?\"net.csslint.\"+e.name.replace(/\\s/g,\"\"):\"\"};return r.length>0&&(i.push('<file name=\"'+n+'\">'),CSSLint.Util.forEach(r,function(t){t.rollup||i.push('<error line=\"'+t.line+'\" column=\"'+t.col+'\" severity=\"'+t.type+'\"'+' message=\"'+e(t.message)+'\" source=\"'+s(t.rule)+'\"/>')}),i.push(\"</file>\")),i.join(\"\")}})}(),CSSLint.addFormatter({id:\"compact\",name:\"Compact, 'porcelain' format\",startFormat:function(){return\"\"},endFormat:function(){return\"\"},formatResults:function(e,t,n){var r=e.messages,i=\"\";n=n||{};var s=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};return r.length===0?n.quiet?\"\":t+\": Lint Free!\":(CSSLint.Util.forEach(r,function(e){e.rollup?i+=t+\": \"+s(e.type)+\" - \"+e.message+\"\\n\":i+=t+\": \"+\"line \"+e.line+\", col \"+e.col+\", \"+s(e.type)+\" - \"+e.message+\" (\"+e.rule.id+\")\\n\"}),i)}}),CSSLint.addFormatter({id:\"csslint-xml\",name:\"CSSLint XML format\",startFormat:function(){return'<?xml version=\"1.0\" encoding=\"utf-8\"?><csslint>'},endFormat:function(){return\"</csslint>\"},formatResults:function(e,t){var n=e.messages,r=[],i=function(e){return!e||e.constructor!==String?\"\":e.replace(/\\\"/g,\"'\").replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\")};return n.length>0&&(r.push('<file name=\"'+t+'\">'),CSSLint.Util.forEach(n,function(e){e.rollup?r.push('<issue severity=\"'+e.type+'\" reason=\"'+i(e.message)+'\" evidence=\"'+i(e.evidence)+'\"/>'):r.push('<issue line=\"'+e.line+'\" char=\"'+e.col+'\" severity=\"'+e.type+'\"'+' reason=\"'+i(e.message)+'\" evidence=\"'+i(e.evidence)+'\"/>')}),r.push(\"</file>\")),r.join(\"\")}}),CSSLint.addFormatter({id:\"junit-xml\",name:\"JUNIT XML format\",startFormat:function(){return'<?xml version=\"1.0\" encoding=\"utf-8\"?><testsuites>'},endFormat:function(){return\"</testsuites>\"},formatResults:function(e,t){var n=e.messages,r=[],i={error:0,failure:0},s=function(e){return!!e&&\"name\"in e?\"net.csslint.\"+e.name.replace(/\\s/g,\"\"):\"\"},o=function(e){return!e||e.constructor!==String?\"\":e.replace(/\\\"/g,\"'\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\")};return n.length>0&&(n.forEach(function(e){var t=e.type===\"warning\"?\"error\":e.type;e.rollup||(r.push('<testcase time=\"0\" name=\"'+s(e.rule)+'\">'),r.push(\"<\"+t+' message=\"'+o(e.message)+'\"><![CDATA['+e.line+\":\"+e.col+\":\"+o(e.evidence)+\"]]></\"+t+\">\"),r.push(\"</testcase>\"),i[t]+=1)}),r.unshift('<testsuite time=\"0\" tests=\"'+n.length+'\" skipped=\"0\" errors=\"'+i.error+'\" failures=\"'+i.failure+'\" package=\"net.csslint\" name=\"'+t+'\">'),r.push(\"</testsuite>\")),r.join(\"\")}}),CSSLint.addFormatter({id:\"lint-xml\",name:\"Lint XML format\",startFormat:function(){return'<?xml version=\"1.0\" encoding=\"utf-8\"?><lint>'},endFormat:function(){return\"</lint>\"},formatResults:function(e,t){var n=e.messages,r=[],i=function(e){return!e||e.constructor!==String?\"\":e.replace(/\\\"/g,\"'\").replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\")};return n.length>0&&(r.push('<file name=\"'+t+'\">'),CSSLint.Util.forEach(n,function(e){e.rollup?r.push('<issue severity=\"'+e.type+'\" reason=\"'+i(e.message)+'\" evidence=\"'+i(e.evidence)+'\"/>'):r.push('<issue line=\"'+e.line+'\" char=\"'+e.col+'\" severity=\"'+e.type+'\"'+' reason=\"'+i(e.message)+'\" evidence=\"'+i(e.evidence)+'\"/>')}),r.push(\"</file>\")),r.join(\"\")}}),CSSLint.addFormatter({id:\"text\",name:\"Plain Text\",startFormat:function(){return\"\"},endFormat:function(){return\"\"},formatResults:function(e,t,n){var r=e.messages,i=\"\";n=n||{};if(r.length===0)return n.quiet?\"\":\"\\n\\ncsslint: No errors in \"+t+\".\";i=\"\\n\\ncsslint: There \",r.length===1?i+=\"is 1 problem\":i+=\"are \"+r.length+\" problems\",i+=\" in \"+t+\".\";var s=t.lastIndexOf(\"/\"),o=t;return s===-1&&(s=t.lastIndexOf(\"\\\\\")),s>-1&&(o=t.substring(s+1)),CSSLint.Util.forEach(r,function(e,t){i=i+\"\\n\\n\"+o,e.rollup?(i+=\"\\n\"+(t+1)+\": \"+e.type,i+=\"\\n\"+e.message):(i+=\"\\n\"+(t+1)+\": \"+e.type+\" at line \"+e.line+\", col \"+e.col,i+=\"\\n\"+e.message,i+=\"\\n\"+e.evidence)}),i}}),module.exports.CSSLint=CSSLint}),define(\"ace/mode/css_worker\",[],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"../lib/lang\"),s=e(\"../worker/mirror\").Mirror,o=e(\"./css/csslint\").CSSLint,u=t.Worker=function(e){s.call(this,e),this.setTimeout(400),this.ruleset=null,this.setDisabledRules(\"ids|order-alphabetical\"),this.setInfoRules(\"adjoining-classes|qualified-headings|zero-units|gradients|import|outline-none|vendor-prefix\")};r.inherits(u,s),function(){this.setInfoRules=function(e){typeof e==\"string\"&&(e=e.split(\"|\")),this.infoRules=i.arrayToMap(e),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.setDisabledRules=function(e){if(!e)this.ruleset=null;else{typeof e==\"string\"&&(e=e.split(\"|\"));var t={};o.getRules().forEach(function(e){t[e.id]=!0}),e.forEach(function(e){delete t[e]}),this.ruleset=t}this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.onUpdate=function(){var e=this.doc.getValue();if(!e)return this.sender.emit(\"annotate\",[]);var t=this.infoRules,n=o.verify(e,this.ruleset);this.sender.emit(\"annotate\",n.messages.map(function(e){return{row:e.line-1,column:e.col-1,text:e.message,type:t[e.rule.id]?\"info\":e.type,rule:e.rule.name}}))}}.call(u.prototype)}),define(\"ace/lib/es5-shim\",[],function(e,t,n){function r(){}function w(e){try{return Object.defineProperty(e,\"sentinel\",{}),\"sentinel\"in e}catch(t){}}function H(e){return e=+e,e!==e?e=0:e!==0&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}function B(e){var t=typeof e;return e===null||t===\"undefined\"||t===\"boolean\"||t===\"number\"||t===\"string\"}function j(e){var t,n,r;if(B(e))return e;n=e.valueOf;if(typeof n==\"function\"){t=n.call(e);if(B(t))return t}r=e.toString;if(typeof r==\"function\"){t=r.call(e);if(B(t))return t}throw new TypeError}Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!=\"function\")throw new TypeError(\"Function.prototype.bind called on incompatible \"+n);var i=u.call(arguments,1),s=function(){if(this instanceof s){var e=n.apply(this,i.concat(u.call(arguments)));return Object(e)===e?e:this}return n.apply(t,i.concat(u.call(arguments)))};return n.prototype&&(r.prototype=n.prototype,s.prototype=new r,r.prototype=null),s});var i=Function.prototype.call,s=Array.prototype,o=Object.prototype,u=s.slice,a=i.bind(o.toString),f=i.bind(o.hasOwnProperty),l,c,h,p,d;if(d=f(o,\"__defineGetter__\"))l=i.bind(o.__defineGetter__),c=i.bind(o.__defineSetter__),h=i.bind(o.__lookupGetter__),p=i.bind(o.__lookupSetter__);if([1,2].splice(0).length!=2)if(!function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t=[],n;t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,\"XXX\"),n+1==t.length;if(n+1==t.length)return!0}())Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):e==void 0?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=u.call(arguments,2),s=i.length;if(e===n)s&&this.push.apply(this,i);else{var o=Math.min(t,n-e),a=e+o,f=a+s-o,l=n-a,c=n-o;if(f<a)for(var h=0;h<l;++h)this[f+h]=this[a+h];else if(f>a)for(h=l;h--;)this[f+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,i);else{this.length=c+s;for(h=0;h<s;++h)this[e+h]=i[h]}}return r};else{var v=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?v.apply(this,[e===void 0?0:e,t===void 0?this.length-e:t].concat(u.call(arguments,2))):[]}}Array.isArray||(Array.isArray=function(t){return a(t)==\"[object Array]\"});var m=Object(\"a\"),g=m[0]!=\"a\"||!(0 in m);Array.prototype.forEach||(Array.prototype.forEach=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=arguments[1],s=-1,o=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError;while(++s<o)s in r&&t.call(i,r[s],s,n)}),Array.prototype.map||(Array.prototype.map=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=Array(i),o=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var u=0;u<i;u++)u in r&&(s[u]=t.call(o,r[u],u,n));return s}),Array.prototype.filter||(Array.prototype.filter=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=[],o,u=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var f=0;f<i;f++)f in r&&(o=r[f],t.call(u,o,f,n)&&s.push(o));return s}),Array.prototype.every||(Array.prototype.every=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&!t.call(s,r[o],o,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&t.call(s,r[o],o,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduce of empty array with no initial value\");var s=0,o;if(arguments.length>=2)o=arguments[1];else do{if(s in r){o=r[s++];break}if(++s>=i)throw new TypeError(\"reduce of empty array with no initial value\")}while(!0);for(;s<i;s++)s in r&&(o=t.call(void 0,o,r[s],s,n));return o}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduceRight of empty array with no initial value\");var s,o=i-1;if(arguments.length>=2)s=arguments[1];else do{if(o in r){s=r[o--];break}if(--o<0)throw new TypeError(\"reduceRight of empty array with no initial value\")}while(!0);do o in this&&(s=t.call(void 0,s,r[o],o,n));while(o--);return s});if(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)Array.prototype.indexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=0;arguments.length>1&&(i=H(arguments[1])),i=i>=0?i:Math.max(0,r+i);for(;i<r;i++)if(i in n&&n[i]===t)return i;return-1};if(!Array.prototype.lastIndexOf||[0,1].lastIndexOf(0,-3)!=-1)Array.prototype.lastIndexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=r-1;arguments.length>1&&(i=Math.min(i,H(arguments[1]))),i=i>=0?i:r-Math.abs(i);for(;i>=0;i--)if(i in n&&t===n[i])return i;return-1};Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:o)});if(!Object.getOwnPropertyDescriptor){var y=\"Object.getOwnPropertyDescriptor called on a non-object: \";Object.getOwnPropertyDescriptor=function(t,n){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(y+t);if(!f(t,n))return;var r,i,s;r={enumerable:!0,configurable:!0};if(d){var u=t.__proto__;t.__proto__=o;var i=h(t,n),s=p(t,n);t.__proto__=u;if(i||s)return i&&(r.get=i),s&&(r.set=s),r}return r.value=t[n],r}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)});if(!Object.create){var b;Object.prototype.__proto__===null?b=function(){return{__proto__:null}}:b=function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(t,n){var r;if(t===null)r=b();else{if(typeof t!=\"object\")throw new TypeError(\"typeof prototype[\"+typeof t+\"] != 'object'\");var i=function(){};i.prototype=t,r=new i,r.__proto__=t}return n!==void 0&&Object.defineProperties(r,n),r}}if(Object.defineProperty){var E=w({}),S=typeof document==\"undefined\"||w(document.createElement(\"div\"));if(!E||!S)var x=Object.defineProperty}if(!Object.defineProperty||x){var T=\"Property description must be an object: \",N=\"Object.defineProperty called on non-object: \",C=\"getters & setters can not be defined on this javascript engine\";Object.defineProperty=function(t,n,r){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(N+t);if(typeof r!=\"object\"&&typeof r!=\"function\"||r===null)throw new TypeError(T+r);if(x)try{return x.call(Object,t,n,r)}catch(i){}if(f(r,\"value\"))if(d&&(h(t,n)||p(t,n))){var s=t.__proto__;t.__proto__=o,delete t[n],t[n]=r.value,t.__proto__=s}else t[n]=r.value;else{if(!d)throw new TypeError(C);f(r,\"get\")&&l(t,n,r.get),f(r,\"set\")&&c(t,n,r.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,n){for(var r in n)f(n,r)&&Object.defineProperty(t,r,n[r]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(k){Object.freeze=function(t){return function(n){return typeof n==\"function\"?n:t(n)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;var n=\"\";while(f(t,n))n+=\"?\";t[n]=!0;var r=f(t,n);return delete t[n],r});if(!Object.keys){var L=!0,A=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],O=A.length;for(var M in{toString:null})L=!1;Object.keys=function I(e){if(typeof e!=\"object\"&&typeof e!=\"function\"||e===null)throw new TypeError(\"Object.keys called on a non-object\");var I=[];for(var t in e)f(e,t)&&I.push(t);if(L)for(var n=0,r=O;n<r;n++){var i=A[n];f(e,i)&&I.push(i)}return I}}Date.now||(Date.now=function(){return(new Date).getTime()});var _=\"\t\\n\\x0b\\f\\r \\u00a0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029\\ufeff\";if(!String.prototype.trim){_=\"[\"+_+\"]\";var D=new RegExp(\"^\"+_+_+\"*\"),P=new RegExp(_+_+\"*$\");String.prototype.trim=function(){return String(this).replace(D,\"\").replace(P,\"\")}}var F=function(e){if(e==null)throw new TypeError(\"can't convert \"+e+\" to object\");return Object(e)}})"
  },
  {
    "path": "pyp5js/http_local/static/js/ace/worker-html.js",
    "content": "\"no use strict\";!function(e){function t(e,t){var n=e,r=\"\";while(n){var i=t[n];if(typeof i==\"string\")return i+r;if(i)return i.location.replace(/\\/*$/,\"/\")+(r||i.main||i.name);if(i===!1)return\"\";var s=n.lastIndexOf(\"/\");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!=\"undefined\"&&e.document)return;if(e.require&&e.define)return;e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:\"log\",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:\"error\",data:{message:e,data:i.data,file:t,line:n,col:r,stack:i.stack}})},e.normalizeModule=function(t,n){if(n.indexOf(\"!\")!==-1){var r=n.split(\"!\");return e.normalizeModule(t,r[0])+\"!\"+e.normalizeModule(t,r[1])}if(n.charAt(0)==\".\"){var i=t.split(\"/\").slice(0,-1).join(\"/\");n=(i?i+\"/\":\"\")+n;while(n.indexOf(\".\")!==-1&&s!=n){var s=n;n=n.replace(/^\\.\\//,\"\").replace(/\\/\\.\\//,\"/\").replace(/[^\\/]+\\/\\.\\.\\//,\"\")}}return n},e.require=function(r,i){i||(i=r,r=null);if(!i.charAt)throw new Error(\"worker.js require() accepts only (parentId, id) as arguments\");i=e.normalizeModule(r,i);var s=e.require.modules[i];if(s)return s.initialized||(s.initialized=!0,s.exports=s.factory().exports),s.exports;if(!e.require.tlns)return console.log(\"unable to load \"+i);var o=t(i,e.require.tlns);return o.slice(-3)!=\".js\"&&(o+=\".js\"),e.require.id=i,e.require.modules[i]={},importScripts(o),e.require(r,i)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){arguments.length==2?(r=n,typeof t!=\"string\"&&(n=t,t=e.require.id)):arguments.length==1&&(r=t,n=[],t=e.require.id);if(typeof r!=\"function\"){e.require.modules[t]={exports:r,initialized:!0};return}n.length||(n=[\"require\",\"exports\",\"module\"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case\"require\":return i;case\"exports\":return e.exports;case\"module\":return e;default:return i(t)}}));return t&&(e.exports=t),e}}},e.define.amd={},require.tlns={},e.initBaseUrls=function(t){for(var n in t)require.tlns[n]=t[n]},e.initSender=function(){var n=e.require(\"ace/lib/event_emitter\").EventEmitter,r=e.require(\"ace/lib/oop\"),i=function(){};return function(){r.implement(this,n),this.callback=function(e,t){postMessage({type:\"call\",id:t,data:e})},this.emit=function(e,t){postMessage({type:\"event\",name:e,data:t})}}.call(i.prototype),new i};var n=e.main=null,r=e.sender=null;e.onmessage=function(t){var i=t.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw new Error(\"Unknown command:\"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),require(\"ace/lib/es5-shim\"),r=e.sender=e.initSender();var s=require(i.module)[i.classname];n=e.main=new s(r)}}}(this),define(\"ace/lib/oop\",[],function(e,t,n){\"use strict\";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),define(\"ace/lib/lang\",[],function(e,t,n){\"use strict\";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split(\"\").reverse().join(\"\")},t.stringRepeat=function(e,t){var n=\"\";while(t>0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\\s\\s*/,i=/\\s\\s*$/;t.stringTrimLeft=function(e){return e.replace(r,\"\")},t.stringTrimRight=function(e){return e.replace(i,\"\")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)e[n]&&typeof e[n]==\"object\"?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function s(e){if(typeof e!=\"object\"||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=s(e[n]);return t}if(Object.prototype.toString.call(e)!==\"[object Object]\")return e;t={};for(var n in e)t[n]=s(e[n]);return t},t.arrayToMap=function(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\")},t.escapeHTML=function(e){return(\"\"+e).replace(/&/g,\"&#38;\").replace(/\"/g,\"&#34;\").replace(/'/g,\"&#39;\").replace(/</g,\"&#60;\")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){n==null&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),define(\"ace/range\",[],function(e,t,n){\"use strict\";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return\"Range: [\"+this.start.row+\"/\"+this.start.column+\"] -> [\"+this.end.row+\"/\"+this.end.column+\"]\"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e==\"object\"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e==\"object\"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?t<this.start.column?-1:t>this.end.column?1:0:e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)var n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)var r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(n==0)return this;if(n==-1)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define(\"ace/apply_delta\",[],function(e,t,n){\"use strict\";function r(e,t){throw console.log(\"Invalid Delta:\",e),\"Invalid Delta: \"+t}function i(e,t){return t.row>=0&&t.row<e.length&&t.column>=0&&t.column<=e[t.row].length}function s(e,t){t.action!=\"insert\"&&t.action!=\"remove\"&&r(t,\"delta.action must be 'insert' or 'remove'\"),t.lines instanceof Array||r(t,\"delta.lines must be an Array\"),(!t.start||!t.end)&&r(t,\"delta.start/end must be an present\");var n=t.start;i(e,t.start)||r(t,\"delta.start must be contained in document\");var s=t.end;t.action==\"remove\"&&!i(e,s)&&r(t,\"delta.end must contained in document for 'remove' actions\");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,\"delta.range must match delta lines\")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||\"\";switch(t.action){case\"insert\":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case\"remove\":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),define(\"ace/lib/event_emitter\",[],function(e,t,n){\"use strict\";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!=\"object\"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length;o++){n[o](t,this);if(t.propagationStopped)break}if(r&&!t.defaultPrevented)return r(t,this)},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(!n)return;n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)},r.once=function(e,t){var n=this;this.on(e,function r(){n.off(e,r),t.apply(null,arguments)});if(!t)return new Promise(function(e){t=e})},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;n||(n=this._defaultHandlers={_disabled_:{}});if(n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var s=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(!n)return;var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);i!=-1&&r.splice(i,1)}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?\"unshift\":\"push\"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(!n)return;var r=n.indexOf(t);r!==-1&&n.splice(r,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=r}),define(\"ace/anchor\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),typeof n==\"undefined\"?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i=t.action==\"insert\",s=(i?1:-1)*(t.end.row-t.start.row),o=(i?1:-1)*(t.end.column-t.start.column),u=t.start,a=i?u:t.end;return e(n,u,r)?{row:n.row,column:n.column}:e(a,n,!r)?{row:n.row+s,column:n.column+(n.row==a.row?o:0)}:{row:u.row,column:u.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(e.start.row==e.end.row&&e.start.row!=this.row)return;if(e.start.row>this.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal(\"change\",{old:i,value:r})},this.detach=function(){this.document.off(\"change\",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on(\"change\",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),define(\"ace/document\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./apply_delta\").applyDelta,s=e(\"./lib/event_emitter\").EventEmitter,o=e(\"./range\").Range,u=e(\"./anchor\").Anchor,a=function(e){this.$lines=[\"\"],e.length===0?this.$lines=[\"\"]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},\"aaa\".split(/a/).length===0?this.$split=function(e){return e.replace(/\\r\\n|\\r/g,\"\\n\").split(\"\\n\")}:this.$split=function(e){return e.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=t?t[1]:\"\\n\",this._signal(\"changeNewLineMode\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\"windows\":return\"\\r\\n\";case\"unix\":return\"\\n\";default:return this.$autoNewLine||\"\\n\"}},this.$autoNewLine=\"\",this.$newLineMode=\"auto\",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal(\"changeNewLineMode\")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==\"\\r\\n\"||e==\"\\r\"||e==\"\\n\"},this.getLine=function(e){return this.$lines[e]||\"\"},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||\"\").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\"),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\"),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\"),this.insertMergedLines(e,[\"\",\"\"])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:\"insert\",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([\"\"]),n=0):(t=[\"\"].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(t.length==1?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:\"insert\",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:\"remove\",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:\"remove\",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=new o(i,s,u,a),l=this.$lines.slice(e,t+1);return this.applyDelta({start:f.start,end:f.end,action:\"remove\",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:\"remove\",lines:[\"\",\"\"]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action==\"insert\";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal(\"change\",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action==\"remove\"&&e.start.row<t&&e.end.row<t||e.action==\"insert\"&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length-t+1,i=e.start.row,s=e.start.column;for(var o=0,u=0;o<r;o=u){u+=t-1;var a=n.slice(o,u);a.push(\"\"),this.applyDelta({start:this.pos(i+o,s),end:this.pos(i+u,s=0),action:e.action,lines:a},!0)}e.lines=n.slice(o),e.start.row=i+o,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action==\"insert\"?\"remove\":\"insert\",lines:e.lines.slice()})},this.indexToPosition=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length;for(var i=t||0,s=n.length;i<s;i++){e-=n[i].length+r;if(e<0)return{row:i,column:e+n[i].length+r}}return{row:s-1,column:e+n[s-1].length+r}},this.positionToIndex=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length);for(var o=t||0;o<s;++o)i+=n[o].length+r;return i+e.column}}).call(a.prototype),t.Document=a}),define(\"ace/worker/mirror\",[],function(e,t,n){\"use strict\";var r=e(\"../range\").Range,i=e(\"../document\").Document,s=e(\"../lib/lang\"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new i(\"\"),n=this.deferredUpdate=s.delayedCall(this.onUpdate.bind(this)),r=this;e.on(\"change\",function(e){var i=e.data;if(i[0].start)t.applyDeltas(i);else for(var s=0;s<i.length;s+=2){if(Array.isArray(i[s+1]))var o={action:\"insert\",start:i[s],lines:i[s+1]};else var o={action:\"remove\",start:i[s],end:i[s+1]};t.applyDelta(o,!0)}if(r.$timeout)return n.schedule(r.$timeout);r.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),define(\"ace/mode/html/saxparser\",[],function(e,t,n){n.exports=function r(t,n,i){function s(u,a){if(!n[u]){if(!t[u]){var f=typeof e==\"function\"&&e;if(!a&&f)return f(u,!0);if(o)return o(u,!0);throw new Error(\"Cannot find module '\"+u+\"'\")}var l=n[u]={exports:{}};t[u][0].call(l.exports,function(e){var n=t[u][1][e];return s(n?n:e)},l,l.exports,r,t,n,i)}return n[u].exports}var o=typeof e==\"function\"&&e;for(var u=0;u<i.length;u++)s(i[u]);return s}({1:[function(e,t,n){function r(e){if(e.namespaceURI===\"http://www.w3.org/1999/xhtml\")return e.localName===\"applet\"||e.localName===\"caption\"||e.localName===\"marquee\"||e.localName===\"object\"||e.localName===\"table\"||e.localName===\"td\"||e.localName===\"th\";if(e.namespaceURI===\"http://www.w3.org/1998/Math/MathML\")return e.localName===\"mi\"||e.localName===\"mo\"||e.localName===\"mn\"||e.localName===\"ms\"||e.localName===\"mtext\"||e.localName===\"annotation-xml\";if(e.namespaceURI===\"http://www.w3.org/2000/svg\")return e.localName===\"foreignObject\"||e.localName===\"desc\"||e.localName===\"title\"}function i(e){return r(e)||e.namespaceURI===\"http://www.w3.org/1999/xhtml\"&&e.localName===\"ol\"||e.namespaceURI===\"http://www.w3.org/1999/xhtml\"&&e.localName===\"ul\"}function s(e){return e.namespaceURI===\"http://www.w3.org/1999/xhtml\"&&e.localName===\"table\"||e.namespaceURI===\"http://www.w3.org/1999/xhtml\"&&e.localName===\"html\"}function o(e){return e.namespaceURI===\"http://www.w3.org/1999/xhtml\"&&e.localName===\"tbody\"||e.namespaceURI===\"http://www.w3.org/1999/xhtml\"&&e.localName===\"tfoot\"||e.namespaceURI===\"http://www.w3.org/1999/xhtml\"&&e.localName===\"thead\"||e.namespaceURI===\"http://www.w3.org/1999/xhtml\"&&e.localName===\"html\"}function u(e){return e.namespaceURI===\"http://www.w3.org/1999/xhtml\"&&e.localName===\"tr\"||e.namespaceURI===\"http://www.w3.org/1999/xhtml\"&&e.localName===\"html\"}function a(e){return r(e)||e.namespaceURI===\"http://www.w3.org/1999/xhtml\"&&e.localName===\"button\"}function f(e){return(e.namespaceURI!==\"http://www.w3.org/1999/xhtml\"||e.localName!==\"optgroup\")&&(e.namespaceURI!==\"http://www.w3.org/1999/xhtml\"||e.localName!==\"option\")}function l(){this.elements=[],this.rootNode=null,this.headElement=null,this.bodyElement=null}l.prototype._inScope=function(e,t){for(var n=this.elements.length-1;n>=0;n--){var r=this.elements[n];if(r.localName===e)return!0;if(t(r))return!1}},l.prototype.push=function(e){this.elements.push(e)},l.prototype.pushHtmlElement=function(e){this.rootNode=e.node,this.push(e)},l.prototype.pushHeadElement=function(e){this.headElement=e.node,this.push(e)},l.prototype.pushBodyElement=function(e){this.bodyElement=e.node,this.push(e)},l.prototype.pop=function(){return this.elements.pop()},l.prototype.remove=function(e){this.elements.splice(this.elements.indexOf(e),1)},l.prototype.popUntilPopped=function(e){var t;do t=this.pop();while(t.localName!=e)},l.prototype.popUntilTableScopeMarker=function(){while(!s(this.top))this.pop()},l.prototype.popUntilTableBodyScopeMarker=function(){while(!o(this.top))this.pop()},l.prototype.popUntilTableRowScopeMarker=function(){while(!u(this.top))this.pop()},l.prototype.item=function(e){return this.elements[e]},l.prototype.contains=function(e){return this.elements.indexOf(e)!==-1},l.prototype.inScope=function(e){return this._inScope(e,r)},l.prototype.inListItemScope=function(e){return this._inScope(e,i)},l.prototype.inTableScope=function(e){return this._inScope(e,s)},l.prototype.inButtonScope=function(e){return this._inScope(e,a)},l.prototype.inSelectScope=function(e){return this._inScope(e,f)},l.prototype.hasNumberedHeaderElementInScope=function(){for(var e=this.elements.length-1;e>=0;e--){var t=this.elements[e];if(t.isNumberedHeader())return!0;if(r(t))return!1}},l.prototype.furthestBlockForFormattingElement=function(e){var t=null;for(var n=this.elements.length-1;n>=0;n--){var r=this.elements[n];if(r.node===e)break;r.isSpecial()&&(t=r)}return t},l.prototype.findIndex=function(e){for(var t=this.elements.length-1;t>=0;t--)if(this.elements[t].localName==e)return t;return-1},l.prototype.remove_openElements_until=function(e){var t=!1,n;while(!t)n=this.elements.pop(),t=e(n);return n},Object.defineProperty(l.prototype,\"top\",{get:function(){return this.elements[this.elements.length-1]}}),Object.defineProperty(l.prototype,\"length\",{get:function(){return this.elements.length}}),n.ElementStack=l},{}],2:[function(e,t,n){function o(e){return e>=\"0\"&&e<=\"9\"||e>=\"a\"&&e<=\"z\"||e>=\"A\"&&e<=\"Z\"}function u(e){return e>=\"0\"&&e<=\"9\"||e>=\"a\"&&e<=\"f\"||e>=\"A\"&&e<=\"F\"}function a(e){return e>=\"0\"&&e<=\"9\"}var r=e(\"html5-entities\"),i=e(\"./InputStream\").InputStream,s={};Object.keys(r).forEach(function(e){for(var t=0;t<e.length;t++)s[e.substring(0,t+1)]=!0});var f={};f.consumeEntity=function(e,t,n){var f=\"\",l=\"\",c=e.char();if(c===i.EOF)return!1;l+=c;if(c==\"\t\"||c==\"\\n\"||c==\"\\x0b\"||c==\" \"||c==\"<\"||c==\"&\")return e.unget(l),!1;if(n===c)return e.unget(l),!1;if(c==\"#\"){c=e.shift(1);if(c===i.EOF)return t._parseError(\"expected-numeric-entity-but-got-eof\"),e.unget(l),!1;l+=c;var h=10,p=a;if(c==\"x\"||c==\"X\"){h=16,p=u,c=e.shift(1);if(c===i.EOF)return t._parseError(\"expected-numeric-entity-but-got-eof\"),e.unget(l),!1;l+=c}if(p(c)){var d=\"\";while(c!==i.EOF&&p(c))d+=c,c=e.char();d=parseInt(d,h);var v=this.replaceEntityNumbers(d);v&&(t._parseError(\"invalid-numeric-entity-replaced\"),d=v);if(d>65535&&d<=1114111){d-=65536;var m=((1047552&d)>>10)+55296,g=(1023&d)+56320;f=String.fromCharCode(m,g)}else f=String.fromCharCode(d);return c!==\";\"&&(t._parseError(\"numeric-entity-without-semicolon\"),e.unget(c)),f}return e.unget(l),t._parseError(\"expected-numeric-entity\"),!1}if(c>=\"a\"&&c<=\"z\"||c>=\"A\"&&c<=\"Z\"){var y=\"\";while(s[l]){r[l]&&(y=l);if(c==\";\")break;c=e.char();if(c===i.EOF)break;l+=c}return y?(f=r[y],c===\";\"||!n||!o(c)&&c!==\"=\"?(l.length>y.length&&e.unget(l.substring(y.length)),c!==\";\"&&t._parseError(\"named-entity-without-semicolon\"),f):(e.unget(l),!1)):(t._parseError(\"expected-named-entity\"),e.unget(l),!1)}},f.replaceEntityNumbers=function(e){switch(e){case 0:return 65533;case 19:return 16;case 128:return 8364;case 129:return 129;case 130:return 8218;case 131:return 402;case 132:return 8222;case 133:return 8230;case 134:return 8224;case 135:return 8225;case 136:return 710;case 137:return 8240;case 138:return 352;case 139:return 8249;case 140:return 338;case 141:return 141;case 142:return 381;case 143:return 143;case 144:return 144;case 145:return 8216;case 146:return 8217;case 147:return 8220;case 148:return 8221;case 149:return 8226;case 150:return 8211;case 151:return 8212;case 152:return 732;case 153:return 8482;case 154:return 353;case 155:return 8250;case 156:return 339;case 157:return 157;case 158:return 382;case 159:return 376;default:if(e>=55296&&e<=57343||e>1114111)return 65533;if(e>=1&&e<=8||e>=14&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||e==11||e==65534||e==131070||e==3145726||e==196607||e==262142||e==262143||e==327678||e==327679||e==393214||e==393215||e==458750||e==458751||e==524286||e==524287||e==589822||e==589823||e==655358||e==655359||e==720894||e==720895||e==786430||e==786431||e==851966||e==851967||e==917502||e==917503||e==983038||e==983039||e==1048574||e==1048575||e==1114110||e==1114111)return e}},n.EntityParser=f},{\"./InputStream\":3,\"html5-entities\":12}],3:[function(e,t,n){function r(){this.data=\"\",this.start=0,this.committed=0,this.eof=!1,this.lastLocation={line:0,column:0}}r.EOF=-1,r.DRAIN=-2,r.prototype={slice:function(){if(this.start>=this.data.length){if(!this.eof)throw r.DRAIN;return r.EOF}return this.data.slice(this.start,this.data.length)},\"char\":function(){if(!this.eof&&this.start>=this.data.length-1)throw r.DRAIN;if(this.start>=this.data.length)return r.EOF;var e=this.data[this.start++];return e===\"\\r\"&&(e=\"\\n\"),e},advance:function(e){this.start+=e;if(this.start>=this.data.length){if(!this.eof)throw r.DRAIN;return r.EOF}this.committed>this.data.length/2&&(this.lastLocation=this.location(),this.data=this.data.slice(this.committed),this.start=this.start-this.committed,this.committed=0)},matchWhile:function(e){if(this.eof&&this.start>=this.data.length)return\"\";var t=new RegExp(\"^\"+e+\"+\"),n=t.exec(this.slice());if(n){if(!this.eof&&n[0].length==this.data.length-this.start)throw r.DRAIN;return this.advance(n[0].length),n[0]}return\"\"},matchUntil:function(e){var t,n;n=this.slice();if(n===r.EOF)return\"\";if(t=(new RegExp(e+(this.eof?\"|$\":\"\"))).exec(n)){var i=this.data.slice(this.start,this.start+t.index);return this.advance(t.index),i.replace(/\\r/g,\"\\n\").replace(/\\n{2,}/g,\"\\n\")}throw r.DRAIN},append:function(e){this.data+=e},shift:function(e){if(!this.eof&&this.start+e>=this.data.length)throw r.DRAIN;if(this.eof&&this.start>=this.data.length)return r.EOF;var t=this.data.slice(this.start,this.start+e).toString();return this.advance(Math.min(e,this.data.length-this.start)),t},peek:function(e){if(!this.eof&&this.start+e>=this.data.length)throw r.DRAIN;return this.eof&&this.start>=this.data.length?r.EOF:this.data.slice(this.start,Math.min(this.start+e,this.data.length)).toString()},length:function(){return this.data.length-this.start-1},unget:function(e){if(e===r.EOF)return;this.start-=e.length},undo:function(){this.start=this.committed},commit:function(){this.committed=this.start},location:function(){var e=this.lastLocation.line,t=this.lastLocation.column,n=this.data.slice(0,this.committed),r=n.match(/\\n/g),i=r?e+r.length:e,s=r?n.length-n.lastIndexOf(\"\\n\")-1:t+n.length;return{line:i,column:s}}},n.InputStream=r},{}],4:[function(e,t,n){function i(e,t,n,r){this.localName=t,this.namespaceURI=e,this.attributes=n,this.node=r}function s(e,t){for(var n=0;n<e.attributes.length;n++)if(e.attributes[n].nodeName==t)return e.attributes[n].nodeValue;return null}var r={\"http://www.w3.org/1999/xhtml\":[\"address\",\"applet\",\"area\",\"article\",\"aside\",\"base\",\"basefont\",\"bgsound\",\"blockquote\",\"body\",\"br\",\"button\",\"caption\",\"center\",\"col\",\"colgroup\",\"dd\",\"details\",\"dir\",\"div\",\"dl\",\"dt\",\"embed\",\"fieldset\",\"figcaption\",\"figure\",\"footer\",\"form\",\"frame\",\"frameset\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"header\",\"hgroup\",\"hr\",\"html\",\"iframe\",\"img\",\"input\",\"isindex\",\"li\",\"link\",\"listing\",\"main\",\"marquee\",\"menu\",\"menuitem\",\"meta\",\"nav\",\"noembed\",\"noframes\",\"noscript\",\"object\",\"ol\",\"p\",\"param\",\"plaintext\",\"pre\",\"script\",\"section\",\"select\",\"source\",\"style\",\"summary\",\"table\",\"tbody\",\"td\",\"textarea\",\"tfoot\",\"th\",\"thead\",\"title\",\"tr\",\"track\",\"ul\",\"wbr\",\"xmp\"],\"http://www.w3.org/1998/Math/MathML\":[\"mi\",\"mo\",\"mn\",\"ms\",\"mtext\",\"annotation-xml\"],\"http://www.w3.org/2000/svg\":[\"foreignObject\",\"desc\",\"title\"]};i.prototype.isSpecial=function(){return this.namespaceURI in r&&r[this.namespaceURI].indexOf(this.localName)>-1},i.prototype.isFosterParenting=function(){return this.namespaceURI===\"http://www.w3.org/1999/xhtml\"?this.localName===\"table\"||this.localName===\"tbody\"||this.localName===\"tfoot\"||this.localName===\"thead\"||this.localName===\"tr\":!1},i.prototype.isNumberedHeader=function(){return this.namespaceURI===\"http://www.w3.org/1999/xhtml\"?this.localName===\"h1\"||this.localName===\"h2\"||this.localName===\"h3\"||this.localName===\"h4\"||this.localName===\"h5\"||this.localName===\"h6\":!1},i.prototype.isForeign=function(){return this.namespaceURI!=\"http://www.w3.org/1999/xhtml\"},i.prototype.isHtmlIntegrationPoint=function(){if(this.namespaceURI===\"http://www.w3.org/1998/Math/MathML\"){if(this.localName!==\"annotation-xml\")return!1;var e=s(this,\"encoding\");return e?(e=e.toLowerCase(),e===\"text/html\"||e===\"application/xhtml+xml\"):!1}return this.namespaceURI===\"http://www.w3.org/2000/svg\"?this.localName===\"foreignObject\"||this.localName===\"desc\"||this.localName===\"title\":!1},i.prototype.isMathMLTextIntegrationPoint=function(){return this.namespaceURI===\"http://www.w3.org/1998/Math/MathML\"?this.localName===\"mi\"||this.localName===\"mo\"||this.localName===\"mn\"||this.localName===\"ms\"||this.localName===\"mtext\":!1},n.StackItem=i},{}],5:[function(e,t,n){function s(e){return e===\" \"||e===\"\\n\"||e===\"\t\"||e===\"\\r\"||e===\"\\f\"}function o(e){return e>=\"A\"&&e<=\"Z\"||e>=\"a\"&&e<=\"z\"}function u(e){this._tokenHandler=e,this._state=u.DATA,this._inputStream=new r,this._currentToken=null,this._temporaryBuffer=\"\",this._additionalAllowedCharacter=\"\"}var r=e(\"./InputStream\").InputStream,i=e(\"./EntityParser\").EntityParser;u.prototype._parseError=function(e,t){this._tokenHandler.parseError(e,t)},u.prototype._emitToken=function(e){if(e.type===\"StartTag\")for(var t=1;t<e.data.length;t++)e.data[t].nodeName||e.data.splice(t--,1);else e.type===\"EndTag\"&&(e.selfClosing&&this._parseError(\"self-closing-flag-on-end-tag\"),e.data.length!==0&&this._parseError(\"attributes-in-end-tag\"));this._tokenHandler.processToken(e),e.type===\"StartTag\"&&e.selfClosing&&!this._tokenHandler.isSelfClosingFlagAcknowledged()&&this._parseError(\"non-void-element-with-trailing-solidus\",{name:e.name})},u.prototype._emitCurrentToken=function(){this._state=u.DATA,this._emitToken(this._currentToken)},u.prototype._currentAttribute=function(){return this._currentToken.data[this._currentToken.data.length-1]},u.prototype.setState=function(e){this._state=e},u.prototype.tokenize=function(e){function n(e){var n=e.char();if(n===r.EOF)return t._emitToken({type:\"EOF\",data:null}),!1;if(n===\"&\")t.setState(a);else if(n===\"<\")t.setState(j);else if(n===\"\\0\")t._emitToken({type:\"Characters\",data:n}),e.commit();else{var i=e.matchUntil(\"&|<|\\0\");t._emitToken({type:\"Characters\",data:n+i}),e.commit()}return!0}function a(e){var r=i.consumeEntity(e,t);return t.setState(n),t._emitToken({type:\"Characters\",data:r||\"&\"}),!0}function f(e){var n=e.char();if(n===r.EOF)return t._emitToken({type:\"EOF\",data:null}),!1;if(n===\"&\")t.setState(l);else if(n===\"<\")t.setState(d);else if(n===\"\\0\")t._parseError(\"invalid-codepoint\"),t._emitToken({type:\"Characters\",data:\"\\ufffd\"}),e.commit();else{var i=e.matchUntil(\"&|<|\\0\");t._emitToken({type:\"Characters\",data:n+i}),e.commit()}return!0}function l(e){var n=i.consumeEntity(e,t);return t.setState(f),t._emitToken({type:\"Characters\",data:n||\"&\"}),!0}function c(e){var n=e.char();if(n===r.EOF)return t._emitToken({type:\"EOF\",data:null}),!1;if(n===\"<\")t.setState(g);else if(n===\"\\0\")t._parseError(\"invalid-codepoint\"),t._emitToken({type:\"Characters\",data:\"\\ufffd\"}),e.commit();else{var i=e.matchUntil(\"<|\\0\");t._emitToken({type:\"Characters\",data:n+i})}return!0}function h(e){var n=e.char();if(n===r.EOF)return t._emitToken({type:\"EOF\",data:null}),!1;if(n===\"\\0\")t._parseError(\"invalid-codepoint\"),t._emitToken({type:\"Characters\",data:\"\\ufffd\"}),e.commit();else{var i=e.matchUntil(\"\\0\");t._emitToken({type:\"Characters\",data:n+i})}return!0}function p(e){var n=e.char();if(n===r.EOF)return t._emitToken({type:\"EOF\",data:null}),!1;if(n===\"<\")t.setState(w);else if(n===\"\\0\")t._parseError(\"invalid-codepoint\"),t._emitToken({type:\"Characters\",data:\"\\ufffd\"}),e.commit();else{var i=e.matchUntil(\"<|\\0\");t._emitToken({type:\"Characters\",data:n+i})}return!0}function d(e){var n=e.char();return n===\"/\"?(this._temporaryBuffer=\"\",t.setState(v)):(t._emitToken({type:\"Characters\",data:\"<\"}),e.unget(n),t.setState(f)),!0}function v(e){var n=e.char();return o(n)?(this._temporaryBuffer+=n,t.setState(m)):(t._emitToken({type:\"Characters\",data:\"</\"}),e.unget(n),t.setState(f)),!0}function m(e){var r=t._currentToken&&t._currentToken.name===this._temporaryBuffer.toLowerCase(),i=e.char();return s(i)&&r?(t._currentToken={type:\"EndTag\",name:this._temporaryBuffer,data:[],selfClosing:!1},t.setState(q)):i===\"/\"&&r?(t._currentToken={type:\"EndTag\",name:this._temporaryBuffer,data:[],selfClosing:!1},t.setState(K)):i===\">\"&&r?(t._currentToken={type:\"EndTag\",name:this._temporaryBuffer,data:[],selfClosing:!1},t._emitCurrentToken(),t.setState(n)):o(i)?(this._temporaryBuffer+=i,e.commit()):(t._emitToken({type:\"Characters\",data:\"</\"+this._temporaryBuffer}),e.unget(i),t.setState(f)),!0}function g(e){var n=e.char();return n===\"/\"?(this._temporaryBuffer=\"\",t.setState(y)):(t._emitToken({type:\"Characters\",data:\"<\"}),e.unget(n),t.setState(c)),!0}function y(e){var n=e.char();return o(n)?(this._temporaryBuffer+=n,t.setState(b)):(t._emitToken({type:\"Characters\",data:\"</\"}),e.unget(n),t.setState(c)),!0}function b(e){var r=t._currentToken&&t._currentToken.name===this._temporaryBuffer.toLowerCase(),i=e.char();return s(i)&&r?(t._currentToken={type:\"EndTag\",name:this._temporaryBuffer,data:[],selfClosing:!1},t.setState(q)):i===\"/\"&&r?(t._currentToken={type:\"EndTag\",name:this._temporaryBuffer,data:[],selfClosing:!1},t.setState(K)):i===\">\"&&r?(t._currentToken={type:\"EndTag\",name:this._temporaryBuffer,data:[],selfClosing:!1},t._emitCurrentToken(),t.setState(n)):o(i)?(this._temporaryBuffer+=i,e.commit()):(t._emitToken({type:\"Characters\",data:\"</\"+this._temporaryBuffer}),e.unget(i),t.setState(c)),!0}function w(e){var n=e.char();return n===\"/\"?(this._temporaryBuffer=\"\",t.setState(E)):n===\"!\"?(t._emitToken({type:\"Characters\",data:\"<!\"}),t.setState(x)):(t._emitToken({type:\"Characters\",data:\"<\"}),e.unget(n),t.setState(p)),!0}function E(e){var n=e.char();return o(n)?(this._temporaryBuffer+=n,t.setState(S)):(t._emitToken({type:\"Characters\",data:\"</\"}),e.unget(n),t.setState(p)),!0}function S(e){var n=t._currentToken&&t._currentToken.name===this._temporaryBuffer.toLowerCase(),r=e.char();return s(r)&&n?(t._currentToken={type:\"EndTag\",name:\"script\",data:[],selfClosing:!1},t.setState(q)):r===\"/\"&&n?(t._currentToken={type:\"EndTag\",name:\"script\",data:[],selfClosing:!1},t.setState(K)):r===\">\"&&n?(t._currentToken={type:\"EndTag\",name:\"script\",data:[],selfClosing:!1},t._emitCurrentToken()):o(r)?(this._temporaryBuffer+=r,e.commit()):(t._emitToken({type:\"Characters\",data:\"</\"+this._temporaryBuffer}),e.unget(r),t.setState(p)),!0}function x(e){var n=e.char();return n===\"-\"?(t._emitToken({type:\"Characters\",data:\"-\"}),t.setState(T)):(e.unget(n),t.setState(p)),!0}function T(e){var n=e.char();return n===\"-\"?(t._emitToken({type:\"Characters\",data:\"-\"}),t.setState(k)):(e.unget(n),t.setState(p)),!0}function N(e){var i=e.char();if(i===r.EOF)e.unget(i),t.setState(n);else if(i===\"-\")t._emitToken({type:\"Characters\",data:\"-\"}),t.setState(C);else if(i===\"<\")t.setState(L);else if(i===\"\\0\")t._parseError(\"invalid-codepoint\"),t._emitToken({type:\"Characters\",data:\"\\ufffd\"}),e.commit();else{var s=e.matchUntil(\"<|-|\\0\");t._emitToken({type:\"Characters\",data:i+s})}return!0}function C(e){var i=e.char();return i===r.EOF?(e.unget(i),t.setState(n)):i===\"-\"?(t._emitToken({type:\"Characters\",data:\"-\"}),t.setState(k)):i===\"<\"?t.setState(L):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._emitToken({type:\"Characters\",data:\"\\ufffd\"}),t.setState(N)):(t._emitToken({type:\"Characters\",data:i}),t.setState(N)),!0}function k(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-script\"),e.unget(i),t.setState(n)):i===\"<\"?t.setState(L):i===\">\"?(t._emitToken({type:\"Characters\",data:\">\"}),t.setState(p)):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._emitToken({type:\"Characters\",data:\"\\ufffd\"}),t.setState(N)):(t._emitToken({type:\"Characters\",data:i}),t.setState(N)),!0}function L(e){var n=e.char();return n===\"/\"?(this._temporaryBuffer=\"\",t.setState(A)):o(n)?(t._emitToken({type:\"Characters\",data:\"<\"+n}),this._temporaryBuffer=n,t.setState(M)):(t._emitToken({type:\"Characters\",data:\"<\"}),e.unget(n),t.setState(N)),!0}function A(e){var n=e.char();return o(n)?(this._temporaryBuffer=n,t.setState(O)):(t._emitToken({type:\"Characters\",data:\"</\"}),e.unget(n),t.setState(N)),!0}function O(e){var r=t._currentToken&&t._currentToken.name===this._temporaryBuffer.toLowerCase(),i=e.char();return s(i)&&r?(t._currentToken={type:\"EndTag\",name:\"script\",data:[],selfClosing:!1},t.setState(q)):i===\"/\"&&r?(t._currentToken={type:\"EndTag\",name:\"script\",data:[],selfClosing:!1},t.setState(K)):i===\">\"&&r?(t._currentToken={type:\"EndTag\",name:\"script\",data:[],selfClosing:!1},t.setState(n),t._emitCurrentToken()):o(i)?(this._temporaryBuffer+=i,e.commit()):(t._emitToken({type:\"Characters\",data:\"</\"+this._temporaryBuffer}),e.unget(i),t.setState(N)),!0}function M(e){var n=e.char();return s(n)||n===\"/\"||n===\">\"?(t._emitToken({type:\"Characters\",data:n}),this._temporaryBuffer.toLowerCase()===\"script\"?t.setState(_):t.setState(N)):o(n)?(t._emitToken({type:\"Characters\",data:n}),this._temporaryBuffer+=n,e.commit()):(e.unget(n),t.setState(N)),!0}function _(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-script\"),e.unget(i),t.setState(n)):i===\"-\"?(t._emitToken({type:\"Characters\",data:\"-\"}),t.setState(D)):i===\"<\"?(t._emitToken({type:\"Characters\",data:\"<\"}),t.setState(H)):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._emitToken({type:\"Characters\",data:\"\\ufffd\"}),e.commit()):(t._emitToken({type:\"Characters\",data:i}),e.commit()),!0}function D(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-script\"),e.unget(i),t.setState(n)):i===\"-\"?(t._emitToken({type:\"Characters\",data:\"-\"}),t.setState(P)):i===\"<\"?(t._emitToken({type:\"Characters\",data:\"<\"}),t.setState(H)):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._emitToken({type:\"Characters\",data:\"\\ufffd\"}),t.setState(_)):(t._emitToken({type:\"Characters\",data:i}),t.setState(_)),!0}function P(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-script\"),e.unget(i),t.setState(n)):i===\"-\"?(t._emitToken({type:\"Characters\",data:\"-\"}),e.commit()):i===\"<\"?(t._emitToken({type:\"Characters\",data:\"<\"}),t.setState(H)):i===\">\"?(t._emitToken({type:\"Characters\",data:\">\"}),t.setState(p)):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._emitToken({type:\"Characters\",data:\"\\ufffd\"}),t.setState(_)):(t._emitToken({type:\"Characters\",data:i}),t.setState(_)),!0}function H(e){var n=e.char();return n===\"/\"?(t._emitToken({type:\"Characters\",data:\"/\"}),this._temporaryBuffer=\"\",t.setState(B)):(e.unget(n),t.setState(_)),!0}function B(e){var n=e.char();return s(n)||n===\"/\"||n===\">\"?(t._emitToken({type:\"Characters\",data:n}),this._temporaryBuffer.toLowerCase()===\"script\"?t.setState(N):t.setState(_)):o(n)?(t._emitToken({type:\"Characters\",data:n}),this._temporaryBuffer+=n,e.commit()):(e.unget(n),t.setState(_)),!0}function j(e){var i=e.char();return i===r.EOF?(t._parseError(\"bare-less-than-sign-at-eof\"),t._emitToken({type:\"Characters\",data:\"<\"}),e.unget(i),t.setState(n)):o(i)?(t._currentToken={type:\"StartTag\",name:i.toLowerCase(),data:[]},t.setState(I)):i===\"!\"?t.setState(G):i===\"/\"?t.setState(F):i===\">\"?(t._parseError(\"expected-tag-name-but-got-right-bracket\"),t._emitToken({type:\"Characters\",data:\"<>\"}),t.setState(n)):i===\"?\"?(t._parseError(\"expected-tag-name-but-got-question-mark\"),e.unget(i),t.setState(Q)):(t._parseError(\"expected-tag-name\"),t._emitToken({type:\"Characters\",data:\"<\"}),e.unget(i),t.setState(n)),!0}function F(e){var i=e.char();return i===r.EOF?(t._parseError(\"expected-closing-tag-but-got-eof\"),t._emitToken({type:\"Characters\",data:\"</\"}),e.unget(i),t.setState(n)):o(i)?(t._currentToken={type:\"EndTag\",name:i.toLowerCase(),data:[]},t.setState(I)):i===\">\"?(t._parseError(\"expected-closing-tag-but-got-right-bracket\"),t.setState(n)):(t._parseError(\"expected-closing-tag-but-got-char\",{data:i}),e.unget(i),t.setState(Q)),!0}function I(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-tag-name\"),e.unget(i),t.setState(n)):s(i)?t.setState(q):o(i)?t._currentToken.name+=i.toLowerCase():i===\">\"?t._emitCurrentToken():i===\"/\"?t.setState(K):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._currentToken.name+=\"\\ufffd\"):t._currentToken.name+=i,e.commit(),!0}function q(e){var i=e.char();if(i===r.EOF)t._parseError(\"expected-attribute-name-but-got-eof\"),e.unget(i),t.setState(n);else{if(s(i))return!0;o(i)?(t._currentToken.data.push({nodeName:i.toLowerCase(),nodeValue:\"\"}),t.setState(R)):i===\">\"?t._emitCurrentToken():i===\"/\"?t.setState(K):i===\"'\"||i==='\"'||i===\"=\"||i===\"<\"?(t._parseError(\"invalid-character-in-attribute-name\"),t._currentToken.data.push({nodeName:i,nodeValue:\"\"}),t.setState(R)):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._currentToken.data.push({nodeName:\"\\ufffd\",nodeValue:\"\"})):(t._currentToken.data.push({nodeName:i,nodeValue:\"\"}),t.setState(R))}return!0}function R(e){var i=e.char(),u=!0,a=!1;i===r.EOF?(t._parseError(\"eof-in-attribute-name\"),e.unget(i),t.setState(n),a=!0):i===\"=\"?t.setState(z):o(i)?(t._currentAttribute().nodeName+=i.toLowerCase(),u=!1):i===\">\"?a=!0:s(i)?t.setState(U):i===\"/\"?t.setState(K):i===\"'\"||i==='\"'?(t._parseError(\"invalid-character-in-attribute-name\"),t._currentAttribute().nodeName+=i,u=!1):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._currentAttribute().nodeName+=\"\\ufffd\"):(t._currentAttribute().nodeName+=i,u=!1);if(u){var f=t._currentToken.data,l=f[f.length-1];for(var c=f.length-2;c>=0;c--)if(l.nodeName===f[c].nodeName){t._parseError(\"duplicate-attribute\",{name:l.nodeName}),l.nodeName=null;break}a&&t._emitCurrentToken()}else e.commit();return!0}function U(e){var i=e.char();if(i===r.EOF)t._parseError(\"expected-end-of-tag-but-got-eof\"),e.unget(i),t.setState(n);else{if(s(i))return!0;i===\"=\"?t.setState(z):i===\">\"?t._emitCurrentToken():o(i)?(t._currentToken.data.push({nodeName:i,nodeValue:\"\"}),t.setState(R)):i===\"/\"?t.setState(K):i===\"'\"||i==='\"'||i===\"<\"?(t._parseError(\"invalid-character-after-attribute-name\"),t._currentToken.data.push({nodeName:i,nodeValue:\"\"}),t.setState(R)):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._currentToken.data.push({nodeName:\"\\ufffd\",nodeValue:\"\"})):(t._currentToken.data.push({nodeName:i,nodeValue:\"\"}),t.setState(R))}return!0}function z(e){var i=e.char();if(i===r.EOF)t._parseError(\"expected-attribute-value-but-got-eof\"),e.unget(i),t.setState(n);else{if(s(i))return!0;i==='\"'?t.setState(W):i===\"&\"?(t.setState(V),e.unget(i)):i===\"'\"?t.setState(X):i===\">\"?(t._parseError(\"expected-attribute-value-but-got-right-bracket\"),t._emitCurrentToken()):i===\"=\"||i===\"<\"||i===\"`\"?(t._parseError(\"unexpected-character-in-unquoted-attribute-value\"),t._currentAttribute().nodeValue+=i,t.setState(V)):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._currentAttribute().nodeValue+=\"\\ufffd\"):(t._currentAttribute().nodeValue+=i,t.setState(V))}return!0}function W(e){var i=e.char();if(i===r.EOF)t._parseError(\"eof-in-attribute-value-double-quote\"),e.unget(i),t.setState(n);else if(i==='\"')t.setState(J);else if(i===\"&\")this._additionalAllowedCharacter='\"',t.setState($);else if(i===\"\\0\")t._parseError(\"invalid-codepoint\"),t._currentAttribute().nodeValue+=\"\\ufffd\";else{var s=e.matchUntil('[\\0\"&]');i+=s,t._currentAttribute().nodeValue+=i}return!0}function X(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-attribute-value-single-quote\"),e.unget(i),t.setState(n)):i===\"'\"?t.setState(J):i===\"&\"?(this._additionalAllowedCharacter=\"'\",t.setState($)):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._currentAttribute().nodeValue+=\"\\ufffd\"):t._currentAttribute().nodeValue+=i+e.matchUntil(\"\\0|['&]\"),!0}function V(e){var i=e.char();if(i===r.EOF)t._parseError(\"eof-after-attribute-value\"),e.unget(i),t.setState(n);else if(s(i))t.setState(q);else if(i===\"&\")this._additionalAllowedCharacter=\">\",t.setState($);else if(i===\">\")t._emitCurrentToken();else if(i==='\"'||i===\"'\"||i===\"=\"||i===\"`\"||i===\"<\")t._parseError(\"unexpected-character-in-unquoted-attribute-value\"),t._currentAttribute().nodeValue+=i,e.commit();else if(i===\"\\0\")t._parseError(\"invalid-codepoint\"),t._currentAttribute().nodeValue+=\"\\ufffd\";else{var o=e.matchUntil(\"\\0|[\t\\n\\x0b\\f \\r&<>\\\"'=`]\");o===r.EOF&&(t._parseError(\"eof-in-attribute-value-no-quotes\"),t._emitCurrentToken()),e.commit(),t._currentAttribute().nodeValue+=i+o}return!0}function $(e){var n=i.consumeEntity(e,t,this._additionalAllowedCharacter);return this._currentAttribute().nodeValue+=n||\"&\",this._additionalAllowedCharacter==='\"'?t.setState(W):this._additionalAllowedCharacter===\"'\"?t.setState(X):this._additionalAllowedCharacter===\">\"&&t.setState(V),!0}function J(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-after-attribute-value\"),e.unget(i),t.setState(n)):s(i)?t.setState(q):i===\">\"?(t.setState(n),t._emitCurrentToken()):i===\"/\"?t.setState(K):(t._parseError(\"unexpected-character-after-attribute-value\"),e.unget(i),t.setState(q)),!0}function K(e){var i=e.char();return i===r.EOF?(t._parseError(\"unexpected-eof-after-solidus-in-tag\"),e.unget(i),t.setState(n)):i===\">\"?(t._currentToken.selfClosing=!0,t.setState(n),t._emitCurrentToken()):(t._parseError(\"unexpected-character-after-solidus-in-tag\"),e.unget(i),t.setState(q)),!0}function Q(e){var r=e.matchUntil(\">\");return r=r.replace(/\\u0000/g,\"\\ufffd\"),e.char(),t._emitToken({type:\"Comment\",data:r}),t.setState(n),!0}function G(e){var n=e.shift(2);if(n===\"--\")t._currentToken={type:\"Comment\",data:\"\"},t.setState(Z);else{var i=e.shift(5);if(i===r.EOF||n===r.EOF)return t._parseError(\"expected-dashes-or-doctype\"),t.setState(Q),e.unget(n),!0;n+=i,n.toUpperCase()===\"DOCTYPE\"?(t._currentToken={type:\"Doctype\",name:\"\",publicId:null,systemId:null,forceQuirks:!1},t.setState(st)):t._tokenHandler.isCdataSectionAllowed()&&n===\"[CDATA[\"?t.setState(Y):(t._parseError(\"expected-dashes-or-doctype\"),e.unget(n),t.setState(Q))}return!0}function Y(e){var r=e.matchUntil(\"]]>\");return e.shift(3),r&&t._emitToken({type:\"Characters\",data:r}),t.setState(n),!0}function Z(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-comment\"),t._emitToken(t._currentToken),e.unget(i),t.setState(n)):i===\"-\"?t.setState(et):i===\">\"?(t._parseError(\"incorrect-comment\"),t._emitToken(t._currentToken),t.setState(n)):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._currentToken.data+=\"\\ufffd\"):(t._currentToken.data+=i,t.setState(tt)),!0}function et(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-comment\"),t._emitToken(t._currentToken),e.unget(i),t.setState(n)):i===\"-\"?t.setState(rt):i===\">\"?(t._parseError(\"incorrect-comment\"),t._emitToken(t._currentToken),t.setState(n)):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._currentToken.data+=\"\\ufffd\"):(t._currentToken.data+=\"-\"+i,t.setState(tt)),!0}function tt(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-comment\"),t._emitToken(t._currentToken),e.unget(i),t.setState(n)):i===\"-\"?t.setState(nt):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._currentToken.data+=\"\\ufffd\"):(t._currentToken.data+=i,e.commit()),!0}function nt(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-comment-end-dash\"),t._emitToken(t._currentToken),e.unget(i),t.setState(n)):i===\"-\"?t.setState(rt):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._currentToken.data+=\"-\\ufffd\",t.setState(tt)):(t._currentToken.data+=\"-\"+i+e.matchUntil(\"\\0|-\"),e.char()),!0}function rt(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-comment-double-dash\"),t._emitToken(t._currentToken),e.unget(i),t.setState(n)):i===\">\"?(t._emitToken(t._currentToken),t.setState(n)):i===\"!\"?(t._parseError(\"unexpected-bang-after-double-dash-in-comment\"),t.setState(it)):i===\"-\"?(t._parseError(\"unexpected-dash-after-double-dash-in-comment\"),t._currentToken.data+=i):i===\"\\0\"?(t._parseError(\"invalid-codepoint\"),t._currentToken.data+=\"--\\ufffd\",t.setState(tt)):(t._parseError(\"unexpected-char-in-comment\"),t._currentToken.data+=\"--\"+i,t.setState(tt)),!0}function it(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-comment-end-bang-state\"),t._emitToken(t._currentToken),e.unget(i),t.setState(n)):i===\">\"?(t._emitToken(t._currentToken),t.setState(n)):i===\"-\"?(t._currentToken.data+=\"--!\",t.setState(nt)):(t._currentToken.data+=\"--!\"+i,t.setState(tt)),!0}function st(e){var i=e.char();return i===r.EOF?(t._parseError(\"expected-doctype-name-but-got-eof\"),t._currentToken.forceQuirks=!0,e.unget(i),t.setState(n),t._emitCurrentToken()):s(i)?t.setState(ot):(t._parseError(\"need-space-after-doctype\"),e.unget(i),t.setState(ot)),!0}function ot(e){var i=e.char();return i===r.EOF?(t._parseError(\"expected-doctype-name-but-got-eof\"),t._currentToken.forceQuirks=!0,e.unget(i),t.setState(n),t._emitCurrentToken()):s(i)||(i===\">\"?(t._parseError(\"expected-doctype-name-but-got-right-bracket\"),t._currentToken.forceQuirks=!0,t.setState(n),t._emitCurrentToken()):(o(i)&&(i=i.toLowerCase()),t._currentToken.name=i,t.setState(ut))),!0}function ut(e){var i=e.char();return i===r.EOF?(t._currentToken.forceQuirks=!0,e.unget(i),t._parseError(\"eof-in-doctype-name\"),t.setState(n),t._emitCurrentToken()):s(i)?t.setState(at):i===\">\"?(t.setState(n),t._emitCurrentToken()):(o(i)&&(i=i.toLowerCase()),t._currentToken.name+=i,e.commit()),!0}function at(e){var i=e.char();if(i===r.EOF)t._currentToken.forceQuirks=!0,e.unget(i),t._parseError(\"eof-in-doctype\"),t.setState(n),t._emitCurrentToken();else if(!s(i))if(i===\">\")t.setState(n),t._emitCurrentToken();else{if([\"p\",\"P\"].indexOf(i)>-1){var o=[[\"u\",\"U\"],[\"b\",\"B\"],[\"l\",\"L\"],[\"i\",\"I\"],[\"c\",\"C\"]],u=o.every(function(t){return i=e.char(),t.indexOf(i)>-1});if(u)return t.setState(ft),!0}else if([\"s\",\"S\"].indexOf(i)>-1){var o=[[\"y\",\"Y\"],[\"s\",\"S\"],[\"t\",\"T\"],[\"e\",\"E\"],[\"m\",\"M\"]],u=o.every(function(t){return i=e.char(),t.indexOf(i)>-1});if(u)return t.setState(vt),!0}e.unget(i),t._currentToken.forceQuirks=!0,i===r.EOF?(t._parseError(\"eof-in-doctype\"),e.unget(i),t.setState(n),t._emitCurrentToken()):(t._parseError(\"expected-space-or-right-bracket-in-doctype\",{data:i}),t.setState(wt))}return!0}function ft(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-doctype\"),t._currentToken.forceQuirks=!0,e.unget(i),t.setState(n),t._emitCurrentToken()):s(i)?t.setState(lt):i===\"'\"||i==='\"'?(t._parseError(\"unexpected-char-in-doctype\"),e.unget(i),t.setState(lt)):(e.unget(i),t.setState(lt)),!0}function lt(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-doctype\"),t._currentToken.forceQuirks=!0,e.unget(i),t.setState(n),t._emitCurrentToken()):s(i)||(i==='\"'?(t._currentToken.publicId=\"\",t.setState(ct)):i===\"'\"?(t._currentToken.publicId=\"\",t.setState(ht)):i===\">\"?(t._parseError(\"unexpected-end-of-doctype\"),t._currentToken.forceQuirks=!0,t.setState(n),t._emitCurrentToken()):(t._parseError(\"unexpected-char-in-doctype\"),t._currentToken.forceQuirks=!0,t.setState(wt))),!0}function ct(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-doctype\"),t._currentToken.forceQuirks=!0,e.unget(i),t.setState(n),t._emitCurrentToken()):i==='\"'?t.setState(pt):i===\">\"?(t._parseError(\"unexpected-end-of-doctype\"),t._currentToken.forceQuirks=!0,t.setState(n),t._emitCurrentToken()):t._currentToken.publicId+=i,!0}function ht(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-doctype\"),t._currentToken.forceQuirks=!0,e.unget(i),t.setState(n),t._emitCurrentToken()):i===\"'\"?t.setState(pt):i===\">\"?(t._parseError(\"unexpected-end-of-doctype\"),t._currentToken.forceQuirks=!0,t.setState(n),t._emitCurrentToken()):t._currentToken.publicId+=i,!0}function pt(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-doctype\"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):s(i)?t.setState(dt):i===\">\"?(t.setState(n),t._emitCurrentToken()):i==='\"'?(t._parseError(\"unexpected-char-in-doctype\"),t._currentToken.systemId=\"\",t.setState(gt)):i===\"'\"?(t._parseError(\"unexpected-char-in-doctype\"),t._currentToken.systemId=\"\",t.setState(yt)):(t._parseError(\"unexpected-char-in-doctype\"),t._currentToken.forceQuirks=!0,t.setState(wt)),!0}function dt(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-doctype\"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):s(i)||(i===\">\"?(t._emitCurrentToken(),t.setState(n)):i==='\"'?(t._currentToken.systemId=\"\",t.setState(gt)):i===\"'\"?(t._currentToken.systemId=\"\",t.setState(yt)):(t._parseError(\"unexpected-char-in-doctype\"),t._currentToken.forceQuirks=!0,t.setState(wt))),!0}function vt(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-doctype\"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):s(i)?t.setState(mt):i===\"'\"||i==='\"'?(t._parseError(\"unexpected-char-in-doctype\"),e.unget(i),t.setState(mt)):(e.unget(i),t.setState(mt)),!0}function mt(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-doctype\"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):s(i)||(i==='\"'?(t._currentToken.systemId=\"\",t.setState(gt)):i===\"'\"?(t._currentToken.systemId=\"\",t.setState(yt)):i===\">\"?(t._parseError(\"unexpected-end-of-doctype\"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),t.setState(n)):(t._parseError(\"unexpected-char-in-doctype\"),t._currentToken.forceQuirks=!0,t.setState(wt))),!0}function gt(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-doctype\"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):i==='\"'?t.setState(bt):i===\">\"?(t._parseError(\"unexpected-end-of-doctype\"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),t.setState(n)):t._currentToken.systemId+=i,!0}function yt(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-doctype\"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):i===\"'\"?t.setState(bt):i===\">\"?(t._parseError(\"unexpected-end-of-doctype\"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),t.setState(n)):t._currentToken.systemId+=i,!0}function bt(e){var i=e.char();return i===r.EOF?(t._parseError(\"eof-in-doctype\"),t._currentToken.forceQuirks=!0,t._emitCurrentToken(),e.unget(i),t.setState(n)):s(i)||(i===\">\"?(t._emitCurrentToken(),t.setState(n)):(t._parseError(\"unexpected-char-in-doctype\"),t.setState(wt))),!0}function wt(e){var i=e.char();return i===r.EOF?(e.unget(i),t._emitCurrentToken(),t.setState(n)):i===\">\"&&(t._emitCurrentToken(),t.setState(n)),!0}u.DATA=n,u.RCDATA=f,u.RAWTEXT=c,u.SCRIPT_DATA=p,u.PLAINTEXT=h,this._state=u.DATA,this._inputStream.append(e),this._tokenHandler.startTokenization(this),this._inputStream.eof=!0;var t=this;while(this._state.call(this,this._inputStream));},Object.defineProperty(u.prototype,\"lineNumber\",{get:function(){return this._inputStream.location().line}}),Object.defineProperty(u.prototype,\"columnNumber\",{get:function(){return this._inputStream.location().column}}),n.Tokenizer=u},{\"./EntityParser\":2,\"./InputStream\":3}],6:[function(e,t,n){function c(e){return e===\" \"||e===\"\\n\"||e===\"\t\"||e===\"\\r\"||e===\"\\f\"}function h(e){return c(e)||e===\"\\ufffd\"}function p(e){for(var t=0;t<e.length;t++){var n=e[t];if(!c(n))return!1}return!0}function d(e){for(var t=0;t<e.length;t++){var n=e[t];if(!h(n))return!1}return!0}function v(e,t){for(var n=0;n<e.attributes.length;n++){var r=e.attributes[n];if(r.nodeName===t)return r}return null}function m(e){this.characters=e,this.current=0,this.end=this.characters.length}function g(){this.tokenizer=null,this.errorHandler=null,this.scriptingEnabled=!1,this.document=null,this.head=null,this.form=null,this.openElements=new a,this.activeFormattingElements=[],this.insertionMode=null,this.insertionModeName=\"\",this.originalInsertionMode=\"\",this.inQuirksMode=!1,this.compatMode=\"no quirks\",this.framesetOk=!0,this.redirectAttachToFosterParent=!1,this.selfClosingFlagAcknowledged=!1,this.context=\"\",this.pendingTableCharacters=[],this.shouldSkipLeadingNewline=!1;var e=this,t=this.insertionModes={};t.base={end_tag_handlers:{\"-default\":\"endTagOther\"},start_tag_handlers:{\"-default\":\"startTagOther\"},processEOF:function(){e.generateImpliedEndTags(),e.openElements.length>2?e.parseError(\"expected-closing-tag-but-got-eof\"):e.openElements.length==2&&e.openElements.item(1).localName!=\"body\"?e.parseError(\"expected-closing-tag-but-got-eof\"):e.context&&e.openElements.length>1},processComment:function(t){e.insertComment(t,e.currentStackItem().node)},processDoctype:function(t,n,r,i){e.parseError(\"unexpected-doctype\")},processStartTag:function(e,t,n){if(this[this.start_tag_handlers[e]])this[this.start_tag_handlers[e]](e,t,n);else{if(!this[this.start_tag_handlers[\"-default\"]])throw new Error(\"No handler found for \"+e);this[this.start_tag_handlers[\"-default\"]](e,t,n)}},processEndTag:function(e){if(this[this.end_tag_handlers[e]])this[this.end_tag_handlers[e]](e);else{if(!this[this.end_tag_handlers[\"-default\"]])throw new Error(\"No handler found for \"+e);this[this.end_tag_handlers[\"-default\"]](e)}},startTagHtml:function(e,n){t.inBody.startTagHtml(e,n)}},t.initial=Object.create(t.base),t.initial.processEOF=function(){e.parseError(\"expected-doctype-but-got-eof\"),this.anythingElse(),e.insertionMode.processEOF()},t.initial.processComment=function(t){e.insertComment(t,e.document)},t.initial.processDoctype=function(t,n,r,i){function s(e){return n.toLowerCase().indexOf(e)===0}e.insertDoctype(t||\"\",n||\"\",r||\"\"),i||t!=\"html\"||n!=null&&([\"+//silmaril//dtd html pro v0r11 19970101//\",\"-//advasoft ltd//dtd html 3.0 aswedit + extensions//\",\"-//as//dtd html 3.0 aswedit + extensions//\",\"-//ietf//dtd html 2.0 level 1//\",\"-//ietf//dtd html 2.0 level 2//\",\"-//ietf//dtd html 2.0 strict level 1//\",\"-//ietf//dtd html 2.0 strict level 2//\",\"-//ietf//dtd html 2.0 strict//\",\"-//ietf//dtd html 2.0//\",\"-//ietf//dtd html 2.1e//\",\"-//ietf//dtd html 3.0//\",\"-//ietf//dtd html 3.0//\",\"-//ietf//dtd html 3.2 final//\",\"-//ietf//dtd html 3.2//\",\"-//ietf//dtd html 3//\",\"-//ietf//dtd html level 0//\",\"-//ietf//dtd html level 0//\",\"-//ietf//dtd html level 1//\",\"-//ietf//dtd html level 1//\",\"-//ietf//dtd html level 2//\",\"-//ietf//dtd html level 2//\",\"-//ietf//dtd html level 3//\",\"-//ietf//dtd html level 3//\",\"-//ietf//dtd html strict level 0//\",\"-//ietf//dtd html strict level 0//\",\"-//ietf//dtd html strict level 1//\",\"-//ietf//dtd html strict level 1//\",\"-//ietf//dtd html strict level 2//\",\"-//ietf//dtd html strict level 2//\",\"-//ietf//dtd html strict level 3//\",\"-//ietf//dtd html strict level 3//\",\"-//ietf//dtd html strict//\",\"-//ietf//dtd html strict//\",\"-//ietf//dtd html strict//\",\"-//ietf//dtd html//\",\"-//ietf//dtd html//\",\"-//ietf//dtd html//\",\"-//metrius//dtd metrius presentational//\",\"-//microsoft//dtd internet explorer 2.0 html strict//\",\"-//microsoft//dtd internet explorer 2.0 html//\",\"-//microsoft//dtd internet explorer 2.0 tables//\",\"-//microsoft//dtd internet explorer 3.0 html strict//\",\"-//microsoft//dtd internet explorer 3.0 html//\",\"-//microsoft//dtd internet explorer 3.0 tables//\",\"-//netscape comm. corp.//dtd html//\",\"-//netscape comm. corp.//dtd strict html//\",\"-//o'reilly and associates//dtd html 2.0//\",\"-//o'reilly and associates//dtd html extended 1.0//\",\"-//spyglass//dtd html 2.0 extended//\",\"-//sq//dtd html 2.0 hotmetal + extensions//\",\"-//sun microsystems corp.//dtd hotjava html//\",\"-//sun microsystems corp.//dtd hotjava strict html//\",\"-//w3c//dtd html 3 1995-03-24//\",\"-//w3c//dtd html 3.2 draft//\",\"-//w3c//dtd html 3.2 final//\",\"-//w3c//dtd html 3.2//\",\"-//w3c//dtd html 3.2s draft//\",\"-//w3c//dtd html 4.0 frameset//\",\"-//w3c//dtd html 4.0 transitional//\",\"-//w3c//dtd html experimental 19960712//\",\"-//w3c//dtd html experimental 970421//\",\"-//w3c//dtd w3 html//\",\"-//w3o//dtd w3 html 3.0//\",\"-//webtechs//dtd mozilla html 2.0//\",\"-//webtechs//dtd mozilla html//\",\"html\"].some(s)||[\"-//w3o//dtd w3 html strict 3.0//en//\",\"-/w3c/dtd html 4.0 transitional/en\",\"html\"].indexOf(n.toLowerCase())>-1||r==null&&[\"-//w3c//dtd html 4.01 transitional//\",\"-//w3c//dtd html 4.01 frameset//\"].some(s))||r!=null&&r.toLowerCase()==\"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd\"?(e.compatMode=\"quirks\",e.parseError(\"quirky-doctype\")):n!=null&&([\"-//w3c//dtd xhtml 1.0 transitional//\",\"-//w3c//dtd xhtml 1.0 frameset//\"].some(s)||r!=null&&[\"-//w3c//dtd html 4.01 transitional//\",\"-//w3c//dtd html 4.01 frameset//\"].indexOf(n.toLowerCase())>-1)?(e.compatMode=\"limited quirks\",e.parseError(\"almost-standards-doctype\")):n==\"-//W3C//DTD HTML 4.0//EN\"&&(r==null||r==\"http://www.w3.org/TR/REC-html40/strict.dtd\")||n==\"-//W3C//DTD HTML 4.01//EN\"&&(r==null||r==\"http://www.w3.org/TR/html4/strict.dtd\")||n==\"-//W3C//DTD XHTML 1.0 Strict//EN\"&&r==\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"||n==\"-//W3C//DTD XHTML 1.1//EN\"&&r==\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\"||(r!=null&&r!=\"about:legacy-compat\"||n!=null)&&e.parseError(\"unknown-doctype\"),e.setInsertionMode(\"beforeHTML\")},t.initial.processCharacters=function(t){t.skipLeadingWhitespace();if(!t.length)return;e.parseError(\"expected-doctype-but-got-chars\"),this.anythingElse(),e.insertionMode.processCharacters(t)},t.initial.processStartTag=function(t,n,r){e.parseError(\"expected-doctype-but-got-start-tag\",{name:t}),this.anythingElse(),e.insertionMode.processStartTag(t,n,r)},t.initial.processEndTag=function(t){e.parseError(\"expected-doctype-but-got-end-tag\",{name:t}),this.anythingElse(),e.insertionMode.processEndTag(t)},t.initial.anythingElse=function(){e.compatMode=\"quirks\",e.setInsertionMode(\"beforeHTML\")},t.beforeHTML=Object.create(t.base),t.beforeHTML.start_tag_handlers={html:\"startTagHtml\",\"-default\":\"startTagOther\"},t.beforeHTML.processEOF=function(){this.anythingElse(),e.insertionMode.processEOF()},t.beforeHTML.processComment=function(t){e.insertComment(t,e.document)},t.beforeHTML.processCharacters=function(t){t.skipLeadingWhitespace();if(!t.length)return;this.anythingElse(),e.insertionMode.processCharacters(t)},t.beforeHTML.startTagHtml=function(t,n,r){e.insertHtmlElement(n),e.setInsertionMode(\"beforeHead\")},t.beforeHTML.startTagOther=function(t,n,r){this.anythingElse(),e.insertionMode.processStartTag(t,n,r)},t.beforeHTML.processEndTag=function(t){this.anythingElse(),e.insertionMode.processEndTag(t)},t.beforeHTML.anythingElse=function(){e.insertHtmlElement(),e.setInsertionMode(\"beforeHead\")},t.afterAfterBody=Object.create(t.base),t.afterAfterBody.start_tag_handlers={html:\"startTagHtml\",\"-default\":\"startTagOther\"},t.afterAfterBody.processComment=function(t){e.insertComment(t,e.document)},t.afterAfterBody.processDoctype=function(e){t.inBody.processDoctype(e)},t.afterAfterBody.startTagHtml=function(e,n){t.inBody.startTagHtml(e,n)},t.afterAfterBody.startTagOther=function(t,n,r){e.parseError(\"unexpected-start-tag\",{name:t}),e.setInsertionMode(\"inBody\"),e.insertionMode.processStartTag(t,n,r)},t.afterAfterBody.endTagOther=function(t){e.parseError(\"unexpected-end-tag\",{name:t}),e.setInsertionMode(\"inBody\"),e.insertionMode.processEndTag(t)},t.afterAfterBody.processCharacters=function(n){if(!p(n.characters))return e.parseError(\"unexpected-char-after-body\"),e.setInsertionMode(\"inBody\"),e.insertionMode.processCharacters(n);t.inBody.processCharacters(n)},t.afterBody=Object.create(t.base),t.afterBody.end_tag_handlers={html:\"endTagHtml\",\"-default\":\"endTagOther\"},t.afterBody.processComment=function(t){e.insertComment(t,e.openElements.rootNode)},t.afterBody.processCharacters=function(n){if(!p(n.characters))return e.parseError(\"unexpected-char-after-body\"),e.setInsertionMode(\"inBody\"),e.insertionMode.processCharacters(n);t.inBody.processCharacters(n)},t.afterBody.processStartTag=function(t,n,r){e.parseError(\"unexpected-start-tag-after-body\",{name:t}),e.setInsertionMode(\"inBody\"),e.insertionMode.processStartTag(t,n,r)},t.afterBody.endTagHtml=function(t){e.context?e.parseError(\"end-html-in-innerhtml\"):e.setInsertionMode(\"afterAfterBody\")},t.afterBody.endTagOther=function(t){e.parseError(\"unexpected-end-tag-after-body\",{name:t}),e.setInsertionMode(\"inBody\"),e.insertionMode.processEndTag(t)},t.afterFrameset=Object.create(t.base),t.afterFrameset.start_tag_handlers={html:\"startTagHtml\",noframes:\"startTagNoframes\",\"-default\":\"startTagOther\"},t.afterFrameset.end_tag_handlers={html:\"endTagHtml\",\"-default\":\"endTagOther\"},t.afterFrameset.processCharacters=function(t){var n=t.takeRemaining(),r=\"\";for(var i=0;i<n.length;i++){var s=n[i];c(s)&&(r+=s)}r&&e.insertText(r),r.length<n.length&&e.parseError(\"expected-eof-but-got-char\")},t.afterFrameset.startTagNoframes=function(e,n){t.inHead.processStartTag(e,n)},t.afterFrameset.startTagOther=function(t,n){e.parseError(\"unexpected-start-tag-after-frameset\",{name:t})},t.afterFrameset.endTagHtml=function(t){e.setInsertionMode(\"afterAfterFrameset\")},t.afterFrameset.endTagOther=function(t){e.parseError(\"unexpected-end-tag-after-frameset\",{name:t})},t.beforeHead=Object.create(t.base),t.beforeHead.start_tag_handlers={html:\"startTagHtml\",head:\"startTagHead\",\"-default\":\"startTagOther\"},t.beforeHead.end_tag_handlers={html:\"endTagImplyHead\",head:\"endTagImplyHead\",body:\"endTagImplyHead\",br:\"endTagImplyHead\",\"-default\":\"endTagOther\"},t.beforeHead.processEOF=function(){this.startTagHead(\"head\",[]),e.insertionMode.processEOF()},t.beforeHead.processCharacters=function(t){t.skipLeadingWhitespace();if(!t.length)return;this.startTagHead(\"head\",[]),e.insertionMode.processCharacters(t)},t.beforeHead.startTagHead=function(t,n){e.insertHeadElement(n),e.setInsertionMode(\"inHead\")},t.beforeHead.startTagOther=function(t,n,r){this.startTagHead(\"head\",[]),e.insertionMode.processStartTag(t,n,r)},t.beforeHead.endTagImplyHead=function(t){this.startTagHead(\"head\",[]),e.insertionMode.processEndTag(t)},t.beforeHead.endTagOther=function(t){e.parseError(\"end-tag-after-implied-root\",{name:t})},t.inHead=Object.create(t.base),t.inHead.start_tag_handlers={html:\"startTagHtml\",head:\"startTagHead\",title:\"startTagTitle\",script:\"startTagScript\",style:\"startTagNoFramesStyle\",noscript:\"startTagNoScript\",noframes:\"startTagNoFramesStyle\",base:\"startTagBaseBasefontBgsoundLink\",basefont:\"startTagBaseBasefontBgsoundLink\",bgsound:\"startTagBaseBasefontBgsoundLink\",link:\"startTagBaseBasefontBgsoundLink\",meta:\"startTagMeta\",\"-default\":\"startTagOther\"},t.inHead.end_tag_handlers={head:\"endTagHead\",html:\"endTagHtmlBodyBr\",body:\"endTagHtmlBodyBr\",br:\"endTagHtmlBodyBr\",\"-default\":\"endTagOther\"},t.inHead.processEOF=function(){var t=e.currentStackItem().localName;[\"title\",\"style\",\"script\"].indexOf(t)!=-1&&(e.parseError(\"expected-named-closing-tag-but-got-eof\",{name:t}),e.popElement()),this.anythingElse(),e.insertionMode.processEOF()},t.inHead.processCharacters=function(t){var n=t.takeLeadingWhitespace();n&&e.insertText(n);if(!t.length)return;this.anythingElse(),e.insertionMode.processCharacters(t)},t.inHead.startTagHtml=function(e,n){t.inBody.processStartTag(e,n)},t.inHead.startTagHead=function(t,n){e.parseError(\"two-heads-are-not-better-than-one\")},t.inHead.startTagTitle=function(t,n){e.processGenericRCDATAStartTag(t,n)},t.inHead.startTagNoScript=function(t,n){if(e.scriptingEnabled)return e.processGenericRawTextStartTag(t,n);e.insertElement(t,n),e.setInsertionMode(\"inHeadNoscript\")},t.inHead.startTagNoFramesStyle=function(t,n){e.processGenericRawTextStartTag(t,n)},t.inHead.startTagScript=function(t,n){e.insertElement(t,n),e.tokenizer.setState(u.SCRIPT_DATA),e.originalInsertionMode=e.insertionModeName,e.setInsertionMode(\"text\")},t.inHead.startTagBaseBasefontBgsoundLink=function(t,n){e.insertSelfClosingElement(t,n)},t.inHead.startTagMeta=function(t,n){e.insertSelfClosingElement(t,n)},t.inHead.startTagOther=function(t,n,r){this.anythingElse(),e.insertionMode.processStartTag(t,n,r)},t.inHead.endTagHead=function(t){e.openElements.item(e.openElements.length-1).localName==\"head\"?e.openElements.pop():e.parseError(\"unexpected-end-tag\",{name:\"head\"}),e.setInsertionMode(\"afterHead\")},t.inHead.endTagHtmlBodyBr=function(t){this.anythingElse(),e.insertionMode.processEndTag(t)},t.inHead.endTagOther=function(t){e.parseError(\"unexpected-end-tag\",{name:t})},t.inHead.anythingElse=function(){this.endTagHead(\"head\")},t.afterHead=Object.create(t.base),t.afterHead.start_tag_handlers={html:\"startTagHtml\",head:\"startTagHead\",body:\"startTagBody\",frameset:\"startTagFrameset\",base:\"startTagFromHead\",link:\"startTagFromHead\",meta:\"startTagFromHead\",script:\"startTagFromHead\",style:\"startTagFromHead\",title:\"startTagFromHead\",\"-default\":\"startTagOther\"},t.afterHead.end_tag_handlers={body:\"endTagBodyHtmlBr\",html:\"endTagBodyHtmlBr\",br:\"endTagBodyHtmlBr\",\"-default\":\"endTagOther\"},t.afterHead.processEOF=function(){this.anythingElse(),e.insertionMode.processEOF()},t.afterHead.processCharacters=function(t){var n=t.takeLeadingWhitespace();n&&e.insertText(n);if(!t.length)return;this.anythingElse(),e.insertionMode.processCharacters(t)},t.afterHead.startTagHtml=function(e,n){t.inBody.processStartTag(e,n)},t.afterHead.startTagBody=function(t,n){e.framesetOk=!1,e.insertBodyElement(n),e.setInsertionMode(\"inBody\")},t.afterHead.startTagFrameset=function(t,n){e.insertElement(t,n),e.setInsertionMode(\"inFrameset\")},t.afterHead.startTagFromHead=function(n,r,i){e.parseError(\"unexpected-start-tag-out-of-my-head\",{name:n}),e.openElements.push(e.head),t.inHead.processStartTag(n,r,i),e.openElements.remove(e.head)},t.afterHead.startTagHead=function(t,n,r){e.parseError(\"unexpected-start-tag\",{name:t})},t.afterHead.startTagOther=function(t,n,r){this.anythingElse(),e.insertionMode.processStartTag(t,n,r)},t.afterHead.endTagBodyHtmlBr=function(t){this.anythingElse(),e.insertionMode.processEndTag(t)},t.afterHead.endTagOther=function(t){e.parseError(\"unexpected-end-tag\",{name:t})},t.afterHead.anythingElse=function(){e.insertBodyElement([]),e.setInsertionMode(\"inBody\"),e.framesetOk=!0},t.inBody=Object.create(t.base),t.inBody.start_tag_handlers={html:\"startTagHtml\",head:\"startTagMisplaced\",base:\"startTagProcessInHead\",basefont:\"startTagProcessInHead\",bgsound:\"startTagProcessInHead\",link:\"startTagProcessInHead\",meta:\"startTagProcessInHead\",noframes:\"startTagProcessInHead\",script:\"startTagProcessInHead\",style:\"startTagProcessInHead\",title:\"startTagProcessInHead\",body:\"startTagBody\",form:\"startTagForm\",plaintext:\"startTagPlaintext\",a:\"startTagA\",button:\"startTagButton\",xmp:\"startTagXmp\",table:\"startTagTable\",hr:\"startTagHr\",image:\"startTagImage\",input:\"startTagInput\",textarea:\"startTagTextarea\",select:\"startTagSelect\",isindex:\"startTagIsindex\",applet:\"startTagAppletMarqueeObject\",marquee:\"startTagAppletMarqueeObject\",object:\"startTagAppletMarqueeObject\",li:\"startTagListItem\",dd:\"startTagListItem\",dt:\"startTagListItem\",address:\"startTagCloseP\",article:\"startTagCloseP\",aside:\"startTagCloseP\",blockquote:\"startTagCloseP\",center:\"startTagCloseP\",details:\"startTagCloseP\",dir:\"startTagCloseP\",div:\"startTagCloseP\",dl:\"startTagCloseP\",fieldset:\"startTagCloseP\",figcaption:\"startTagCloseP\",figure:\"startTagCloseP\",footer:\"startTagCloseP\",header:\"startTagCloseP\",hgroup:\"startTagCloseP\",main:\"startTagCloseP\",menu:\"startTagCloseP\",nav:\"startTagCloseP\",ol:\"startTagCloseP\",p:\"startTagCloseP\",section:\"startTagCloseP\",summary:\"startTagCloseP\",ul:\"startTagCloseP\",listing:\"startTagPreListing\",pre:\"startTagPreListing\",b:\"startTagFormatting\",big:\"startTagFormatting\",code:\"startTagFormatting\",em:\"startTagFormatting\",font:\"startTagFormatting\",i:\"startTagFormatting\",s:\"startTagFormatting\",small:\"startTagFormatting\",strike:\"startTagFormatting\",strong:\"startTagFormatting\",tt:\"startTagFormatting\",u:\"startTagFormatting\",nobr:\"startTagNobr\",area:\"startTagVoidFormatting\",br:\"startTagVoidFormatting\",embed:\"startTagVoidFormatting\",img:\"startTagVoidFormatting\",keygen:\"startTagVoidFormatting\",wbr:\"startTagVoidFormatting\",param:\"startTagParamSourceTrack\",source:\"startTagParamSourceTrack\",track:\"startTagParamSourceTrack\",iframe:\"startTagIFrame\",noembed:\"startTagRawText\",noscript:\"startTagRawText\",h1:\"startTagHeading\",h2:\"startTagHeading\",h3:\"startTagHeading\",h4:\"startTagHeading\",h5:\"startTagHeading\",h6:\"startTagHeading\",caption:\"startTagMisplaced\",col:\"startTagMisplaced\",colgroup:\"startTagMisplaced\",frame:\"startTagMisplaced\",frameset:\"startTagFrameset\",tbody:\"startTagMisplaced\",td:\"startTagMisplaced\",tfoot:\"startTagMisplaced\",th:\"startTagMisplaced\",thead:\"startTagMisplaced\",tr:\"startTagMisplaced\",option:\"startTagOptionOptgroup\",optgroup:\"startTagOptionOptgroup\",math:\"startTagMath\",svg:\"startTagSVG\",rt:\"startTagRpRt\",rp:\"startTagRpRt\",\"-default\":\"startTagOther\"},t.inBody.end_tag_handlers={p:\"endTagP\",body:\"endTagBody\",html:\"endTagHtml\",address:\"endTagBlock\",article:\"endTagBlock\",aside:\"endTagBlock\",blockquote:\"endTagBlock\",button:\"endTagBlock\",center:\"endTagBlock\",details:\"endTagBlock\",dir:\"endTagBlock\",div:\"endTagBlock\",dl:\"endTagBlock\",fieldset:\"endTagBlock\",figcaption:\"endTagBlock\",figure:\"endTagBlock\",footer:\"endTagBlock\",header:\"endTagBlock\",hgroup:\"endTagBlock\",listing:\"endTagBlock\",main:\"endTagBlock\",menu:\"endTagBlock\",nav:\"endTagBlock\",ol:\"endTagBlock\",pre:\"endTagBlock\",section:\"endTagBlock\",summary:\"endTagBlock\",ul:\"endTagBlock\",form:\"endTagForm\",applet:\"endTagAppletMarqueeObject\",marquee:\"endTagAppletMarqueeObject\",object:\"endTagAppletMarqueeObject\",dd:\"endTagListItem\",dt:\"endTagListItem\",li:\"endTagListItem\",h1:\"endTagHeading\",h2:\"endTagHeading\",h3:\"endTagHeading\",h4:\"endTagHeading\",h5:\"endTagHeading\",h6:\"endTagHeading\",a:\"endTagFormatting\",b:\"endTagFormatting\",big:\"endTagFormatting\",code:\"endTagFormatting\",em:\"endTagFormatting\",font:\"endTagFormatting\",i:\"endTagFormatting\",nobr:\"endTagFormatting\",s:\"endTagFormatting\",small:\"endTagFormatting\",strike:\"endTagFormatting\",strong:\"endTagFormatting\",tt:\"endTagFormatting\",u:\"endTagFormatting\",br:\"endTagBr\",\"-default\":\"endTagOther\"},t.inBody.processCharacters=function(t){e.shouldSkipLeadingNewline&&(e.shouldSkipLeadingNewline=!1,t.skipAtMostOneLeadingNewline()),e.reconstructActiveFormattingElements();var n=t.takeRemaining();n=n.replace(/\\u0000/g,function(t,n){return e.parseError(\"invalid-codepoint\"),\"\"});if(!n)return;e.insertText(n),e.framesetOk&&!d(n)&&(e.framesetOk=!1)},t.inBody.startTagHtml=function(t,n){e.parseError(\"non-html-root\"),e.addAttributesToElement(e.openElements.rootNode,n)},t.inBody.startTagProcessInHead=function(e,n){t.inHead.processStartTag(e,n)},t.inBody.startTagBody=function(t,n){e.parseError(\"unexpected-start-tag\",{name:\"body\"}),e.openElements.length==1||e.openElements.item(1).localName!=\"body\"?r.ok(e.context):(e.framesetOk=!1,e.addAttributesToElement(e.openElements.bodyElement,n))},t.inBody.startTagFrameset=function(t,n){e.parseError(\"unexpected-start-tag\",{name:\"frameset\"});if(e.openElements.length==1||e.openElements.item(1).localName!=\"body\")r.ok(e.context);else if(e.framesetOk){e.detachFromParent(e.openElements.bodyElement);while(e.openElements.length>1)e.openElements.pop();e.insertElement(t,n),e.setInsertionMode(\"inFrameset\")}},t.inBody.startTagCloseP=function(t,n){e.openElements.inButtonScope(\"p\")&&this.endTagP(\"p\"),e.insertElement(t,n)},t.inBody.startTagPreListing=function(t,n){e.openElements.inButtonScope(\"p\")&&this.endTagP(\"p\"),e.insertElement(t,n),e.framesetOk=!1,e.shouldSkipLeadingNewline=!0},t.inBody.startTagForm=function(t,n){e.form?e.parseError(\"unexpected-start-tag\",{name:t}):(e.openElements.inButtonScope(\"p\")&&this.endTagP(\"p\"),e.insertElement(t,n),e.form=e.currentStackItem())},t.inBody.startTagRpRt=function(t,n){e.openElements.inScope(\"ruby\")&&(e.generateImpliedEndTags(),e.currentStackItem().localName!=\"ruby\"&&e.parseError(\"unexpected-start-tag\",{name:t})),e.insertElement(t,n)},t.inBody.startTagListItem=function(t,n){var r={li:[\"li\"],dd:[\"dd\",\"dt\"],dt:[\"dd\",\"dt\"]},i=r[t],s=e.openElements;for(var o=s.length-1;o>=0;o--){var u=s.item(o);if(i.indexOf(u.localName)!=-1){e.insertionMode.processEndTag(u.localName);break}if(u.isSpecial()&&u.localName!==\"p\"&&u.localName!==\"address\"&&u.localName!==\"div\")break}e.openElements.inButtonScope(\"p\")&&this.endTagP(\"p\"),e.insertElement(t,n),e.framesetOk=!1},t.inBody.startTagPlaintext=function(t,n){e.openElements.inButtonScope(\"p\")&&this.endTagP(\"p\"),e.insertElement(t,n),e.tokenizer.setState(u.PLAINTEXT)},t.inBody.startTagHeading=function(t,n){e.openElements.inButtonScope(\"p\")&&this.endTagP(\"p\"),e.currentStackItem().isNumberedHeader()&&(e.parseError(\"unexpected-start-tag\",{name:t}),e.popElement()),e.insertElement(t,n)},t.inBody.startTagA=function(t,n){var r=e.elementInActiveFormattingElements(\"a\");r&&(e.parseError(\"unexpected-start-tag-implies-end-tag\",{startName:\"a\",endName:\"a\"}),e.adoptionAgencyEndTag(\"a\"),e.openElements.contains(r)&&e.openElements.remove(r),e.removeElementFromActiveFormattingElements(r)),e.reconstructActiveFormattingElements(),e.insertFormattingElement(t,n)},t.inBody.startTagFormatting=function(t,n){e.reconstructActiveFormattingElements(),e.insertFormattingElement(t,n)},t.inBody.startTagNobr=function(t,n){e.reconstructActiveFormattingElements(),e.openElements.inScope(\"nobr\")&&(e.parseError(\"unexpected-start-tag-implies-end-tag\",{startName:\"nobr\",endName:\"nobr\"}),this.processEndTag(\"nobr\"),e.reconstructActiveFormattingElements()),e.insertFormattingElement(t,n)},t.inBody.startTagButton=function(t,n){e.openElements.inScope(\"button\")?(e.parseError(\"unexpected-start-tag-implies-end-tag\",{startName:\"button\",endName:\"button\"}),this.processEndTag(\"button\"),e.insertionMode.processStartTag(t,n)):(e.framesetOk=!1,e.reconstructActiveFormattingElements(),e.insertElement(t,n))},t.inBody.startTagAppletMarqueeObject=function(t,n){e.reconstructActiveFormattingElements(),e.insertElement(t,n),e.activeFormattingElements.push(l),e.framesetOk=!1},t.inBody.endTagAppletMarqueeObject=function(t){e.openElements.inScope(t)?(e.generateImpliedEndTags(),e.currentStackItem().localName!=t&&e.parseError(\"end-tag-too-early\",{name:t}),e.openElements.popUntilPopped(t),e.clearActiveFormattingElements()):e.parseError(\"unexpected-end-tag\",{name:t})},t.inBody.startTagXmp=function(t,n){e.openElements.inButtonScope(\"p\")&&this.processEndTag(\"p\"),e.reconstructActiveFormattingElements(),e.processGenericRawTextStartTag(t,n),e.framesetOk=!1},t.inBody.startTagTable=function(t,n){e.compatMode!==\"quirks\"&&e.openElements.inButtonScope(\"p\")&&this.processEndTag(\"p\"),e.insertElement(t,n),e.setInsertionMode(\"inTable\"),e.framesetOk=!1},t.inBody.startTagVoidFormatting=function(t,n){e.reconstructActiveFormattingElements(),e.insertSelfClosingElement(t,n),e.framesetOk=!1},t.inBody.startTagParamSourceTrack=function(t,n){e.insertSelfClosingElement(t,n)},t.inBody.startTagHr=function(t,n){e.openElements.inButtonScope(\"p\")&&this.endTagP(\"p\"),e.insertSelfClosingElement(t,n),e.framesetOk=!1},t.inBody.startTagImage=function(t,n){e.parseError(\"unexpected-start-tag-treated-as\",{originalName:\"image\",newName:\"img\"}),this.processStartTag(\"img\",n)},t.inBody.startTagInput=function(t,n){var r=e.framesetOk;this.startTagVoidFormatting(t,n);for(var i in n)if(n[i].nodeName==\"type\"){n[i].nodeValue.toLowerCase()==\"hidden\"&&(e.framesetOk=r);break}},t.inBody.startTagIsindex=function(t,n){e.parseError(\"deprecated-tag\",{name:\"isindex\"}),e.selfClosingFlagAcknowledged=!0;if(e.form)return;var r=[],i=[],s=\"This is a searchable index. Enter search keywords: \";for(var o in n)switch(n[o].nodeName){case\"action\":r.push({nodeName:\"action\",nodeValue:n[o].nodeValue});break;case\"prompt\":s=n[o].nodeValue;break;case\"name\":break;default:i.push({nodeName:n[o].nodeName,nodeValue:n[o].nodeValue})}i.push({nodeName:\"name\",nodeValue:\"isindex\"}),this.processStartTag(\"form\",r),this.processStartTag(\"hr\"),this.processStartTag(\"label\"),this.processCharacters(new m(s)),this.processStartTag(\"input\",i),this.processEndTag(\"label\"),this.processStartTag(\"hr\"),this.processEndTag(\"form\")},t.inBody.startTagTextarea=function(t,n){e.insertElement(t,n),e.tokenizer.setState(u.RCDATA),e.originalInsertionMode=e.insertionModeName,e.shouldSkipLeadingNewline=!0,e.framesetOk=!1,e.setInsertionMode(\"text\")},t.inBody.startTagIFrame=function(t,n){e.framesetOk=!1,this.startTagRawText(t,n)},t.inBody.startTagRawText=function(t,n){e.processGenericRawTextStartTag(t,n)},t.inBody.startTagSelect=function(t,n){e.reconstructActiveFormattingElements(),e.insertElement(t,n),e.framesetOk=!1;var r=e.insertionModeName;r==\"inTable\"||r==\"inCaption\"||r==\"inColumnGroup\"||r==\"inTableBody\"||r==\"inRow\"||r==\"inCell\"?e.setInsertionMode(\"inSelectInTable\"):e.setInsertionMode(\"inSelect\")},t.inBody.startTagMisplaced=function(t,n){e.parseError(\"unexpected-start-tag-ignored\",{name:t})},t.inBody.endTagMisplaced=function(t){e.parseError(\"unexpected-end-tag\",{name:t})},t.inBody.endTagBr=function(t){e.parseError(\"unexpected-end-tag-treated-as\",{originalName:\"br\",newName:\"br element\"}),e.reconstructActiveFormattingElements(),e.insertElement(t,[]),e.popElement()},t.inBody.startTagOptionOptgroup=function(t,n){e.currentStackItem().localName==\"option\"&&e.popElement(),e.reconstructActiveFormattingElements(),e.insertElement(t,n)},t.inBody.startTagOther=function(t,n){e.reconstructActiveFormattingElements(),e.insertElement(t,n)},t.inBody.endTagOther=function(t){var n;for(var r=e.openElements.length-1;r>0;r--){n=e.openElements.item(r);if(n.localName==t){e.generateImpliedEndTags(t),e.currentStackItem().localName!=t&&e.parseError(\"unexpected-end-tag\",{name:t}),e.openElements.remove_openElements_until(function(e){return e===n});break}if(n.isSpecial()){e.parseError(\"unexpected-end-tag\",{name:t});break}}},t.inBody.startTagMath=function(t,n,r){e.reconstructActiveFormattingElements(),n=e.adjustMathMLAttributes(n),n=e.adjustForeignAttributes(n),e.insertForeignElement(t,n,\"http://www.w3.org/1998/Math/MathML\",r)},t.inBody.startTagSVG=function(t,n,r){e.reconstructActiveFormattingElements(),n=e.adjustSVGAttributes(n),n=e.adjustForeignAttributes(n),e.insertForeignElement(t,n,\"http://www.w3.org/2000/svg\",r)},t.inBody.endTagP=function(t){e.openElements.inButtonScope(\"p\")?(e.generateImpliedEndTags(\"p\"),e.currentStackItem().localName!=\"p\"&&e.parseError(\"unexpected-implied-end-tag\",{name:\"p\"}),e.openElements.popUntilPopped(t)):(e.parseError(\"unexpected-end-tag\",{name:\"p\"}),this.startTagCloseP(\"p\",[]),this.endTagP(\"p\"))},t.inBody.endTagBody=function(t){if(!e.openElements.inScope(\"body\")){e.parseError(\"unexpected-end-tag\",{name:t});return}e.currentStackItem().localName!=\"body\"&&e.parseError(\"expected-one-end-tag-but-got-another\",{expectedName:e.currentStackItem().localName,gotName:t}),e.setInsertionMode(\"afterBody\")},t.inBody.endTagHtml=function(t){if(!e.openElements.inScope(\"body\")){e.parseError(\"unexpected-end-tag\",{name:t});return}e.currentStackItem().localName!=\"body\"&&e.parseError(\"expected-one-end-tag-but-got-another\",{expectedName:e.currentStackItem().localName,gotName:t}),e.setInsertionMode(\"afterBody\"),e.insertionMode.processEndTag(t)},t.inBody.endTagBlock=function(t){e.openElements.inScope(t)?(e.generateImpliedEndTags(),e.currentStackItem().localName!=t&&e.parseError(\"end-tag-too-early\",{name:t}),e.openElements.popUntilPopped(t)):e.parseError(\"unexpected-end-tag\",{name:t})},t.inBody.endTagForm=function(t){var n=e.form;e.form=null,!n||!e.openElements.inScope(t)?e.parseError(\"unexpected-end-tag\",{name:t}):(e.generateImpliedEndTags(),e.currentStackItem()!=n&&e.parseError(\"end-tag-too-early-ignored\",{name:\"form\"}),e.openElements.remove(n))},t.inBody.endTagListItem=function(t){e.openElements.inListItemScope(t)?(e.generateImpliedEndTags(t),e.currentStackItem().localName!=t&&e.parseError(\"end-tag-too-early\",{name:t}),e.openElements.popUntilPopped(t)):e.parseError(\"unexpected-end-tag\",{name:t})},t.inBody.endTagHeading=function(t){if(!e.openElements.hasNumberedHeaderElementInScope()){e.parseError(\"unexpected-end-tag\",{name:t});return}e.generateImpliedEndTags(),e.currentStackItem().localName!=t&&e.parseError(\"end-tag-too-early\",{name:t}),e.openElements.remove_openElements_until(function(e){return e.isNumberedHeader()})},t.inBody.endTagFormatting=function(t,n){e.adoptionAgencyEndTag(t)||this.endTagOther(t,n)},t.inCaption=Object.create(t.base),t.inCaption.start_tag_handlers={html:\"startTagHtml\",caption:\"startTagTableElement\",col:\"startTagTableElement\",colgroup:\"startTagTableElement\",tbody:\"startTagTableElement\",td:\"startTagTableElement\",tfoot:\"startTagTableElement\",thead:\"startTagTableElement\",tr:\"startTagTableElement\",\"-default\":\"startTagOther\"},t.inCaption.end_tag_handlers={caption:\"endTagCaption\",table:\"endTagTable\",body:\"endTagIgnore\",col:\"endTagIgnore\",colgroup:\"endTagIgnore\",html:\"endTagIgnore\",tbody:\"endTagIgnore\",td:\"endTagIgnore\",tfood:\"endTagIgnore\",thead:\"endTagIgnore\",tr:\"endTagIgnore\",\"-default\":\"endTagOther\"},t.inCaption.processCharacters=function(e){t.inBody.processCharacters(e)},t.inCaption.startTagTableElement=function(t,n){e.parseError(\"unexpected-end-tag\",{name:t});var r=!e.openElements.inTableScope(\"caption\");e.insertionMode.processEndTag(\"caption\"),r||e.insertionMode.processStartTag(t,n)},t.inCaption.startTagOther=function(e,n,r){t.inBody.processStartTag(e,n,r)},t.inCaption.endTagCaption=function(t){e.openElements.inTableScope(\"caption\")?(e.generateImpliedEndTags(),e.currentStackItem().localName!=\"caption\"&&e.parseError(\"expected-one-end-tag-but-got-another\",{gotName:\"caption\",expectedName:e.currentStackItem().localName}),e.openElements.popUntilPopped(\"caption\"),e.clearActiveFormattingElements(),e.setInsertionMode(\"inTable\")):(r.ok(e.context),e.parseError(\"unexpected-end-tag\",{name:t}))},t.inCaption.endTagTable=function(t){e.parseError(\"unexpected-end-table-in-caption\");var n=!e.openElements.inTableScope(\"caption\");e.insertionMode.processEndTag(\"caption\"),n||e.insertionMode.processEndTag(t)},t.inCaption.endTagIgnore=function(t){e.parseError(\"unexpected-end-tag\",{name:t})},t.inCaption.endTagOther=function(e){t.inBody.processEndTag(e)},t.inCell=Object.create(t.base),t.inCell.start_tag_handlers={html:\"startTagHtml\",caption:\"startTagTableOther\",col:\"startTagTableOther\",colgroup:\"startTagTableOther\",tbody:\"startTagTableOther\",td:\"startTagTableOther\",tfoot:\"startTagTableOther\",th:\"startTagTableOther\",thead:\"startTagTableOther\",tr:\"startTagTableOther\",\"-default\":\"startTagOther\"},t.inCell.end_tag_handlers={td:\"endTagTableCell\",th:\"endTagTableCell\",body:\"endTagIgnore\",caption:\"endTagIgnore\",col:\"endTagIgnore\",colgroup:\"endTagIgnore\",html:\"endTagIgnore\",table:\"endTagImply\",tbody:\"endTagImply\",tfoot:\"endTagImply\",thead:\"endTagImply\",tr:\"endTagImply\",\"-default\":\"endTagOther\"},t.inCell.processCharacters=function(e){t.inBody.processCharacters(e)},t.inCell.startTagTableOther=function(t,n,r){e.openElements.inTableScope(\"td\")||e.openElements.inTableScope(\"th\")?(this.closeCell(),e.insertionMode.processStartTag(t,n,r)):e.parseError(\"unexpected-start-tag\",{name:t})},t.inCell.startTagOther=function(e,n,r){t.inBody.processStartTag(e,n,r)},t.inCell.endTagTableCell=function(t){e.openElements.inTableScope(t)?(e.generateImpliedEndTags(t),e.currentStackItem().localName!=t.toLowerCase()?(e.parseError(\"unexpected-cell-end-tag\",{name:t}),e.openElements.popUntilPopped(t)):e.popElement(),e.clearActiveFormattingElements(),e.setInsertionMode(\"inRow\")):e.parseError(\"unexpected-end-tag\",{name:t})},t.inCell.endTagIgnore=function(t){e.parseError(\"unexpected-end-tag\",{name:t})},t.inCell.endTagImply=function(t){e.openElements.inTableScope(t)?(this.closeCell(),e.insertionMode.processEndTag(t)):e.parseError(\"unexpected-end-tag\",{name:t})},t.inCell.endTagOther=function(e){t.inBody.processEndTag(e)},t.inCell.closeCell=function(){e.openElements.inTableScope(\"td\")?this.endTagTableCell(\"td\"):e.openElements.inTableScope(\"th\")&&this.endTagTableCell(\"th\")},t.inColumnGroup=Object.create(t.base),t.inColumnGroup.start_tag_handlers={html:\"startTagHtml\",col:\"startTagCol\",\"-default\":\"startTagOther\"},t.inColumnGroup.end_tag_handlers={colgroup:\"endTagColgroup\",col:\"endTagCol\",\"-default\":\"endTagOther\"},t.inColumnGroup.ignoreEndTagColgroup=function(){return e.currentStackItem().localName==\"html\"},t.inColumnGroup.processCharacters=function(t){var n=t.takeLeadingWhitespace();n&&e.insertText(n);if(!t.length)return;var r=this.ignoreEndTagColgroup();this.endTagColgroup(\"colgroup\"),r||e.insertionMode.processCharacters(t)},t.inColumnGroup.startTagCol=function(t,n){e.insertSelfClosingElement(t,n)},t.inColumnGroup.startTagOther=function(t,n,r){var i=this.ignoreEndTagColgroup();this.endTagColgroup(\"colgroup\"),i||e.insertionMode.processStartTag(t,n,r)},t.inColumnGroup.endTagColgroup=function(t){this.ignoreEndTagColgroup()?(r.ok(e.context),e.parseError(\"unexpected-end-tag\",{name:t})):(e.popElement(),e.setInsertionMode(\"inTable\"))},t.inColumnGroup.endTagCol=function(t){e.parseError(\"no-end-tag\",{name:\"col\"})},t.inColumnGroup.endTagOther=function(t){var n=this.ignoreEndTagColgroup();this.endTagColgroup(\"colgroup\"),n||e.insertionMode.processEndTag(t)},t.inForeignContent=Object.create(t.base),t.inForeignContent.processStartTag=function(t,n,r){if([\"b\",\"big\",\"blockquote\",\"body\",\"br\",\"center\",\"code\",\"dd\",\"div\",\"dl\",\"dt\",\"em\",\"embed\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"hr\",\"i\",\"img\",\"li\",\"listing\",\"menu\",\"meta\",\"nobr\",\"ol\",\"p\",\"pre\",\"ruby\",\"s\",\"small\",\"span\",\"strong\",\"strike\",\"sub\",\"sup\",\"table\",\"tt\",\"u\",\"ul\",\"var\"].indexOf(t)!=-1||t==\"font\"&&n.some(function(e){return[\"color\",\"face\",\"size\"].indexOf(e.nodeName)>=0})){e.parseError(\"unexpected-html-element-in-foreign-content\",{name:t});while(e.currentStackItem().isForeign()&&!e.currentStackItem().isHtmlIntegrationPoint()&&!e.currentStackItem().isMathMLTextIntegrationPoint())e.openElements.pop();e.insertionMode.processStartTag(t,n,r);return}e.currentStackItem().namespaceURI==\"http://www.w3.org/1998/Math/MathML\"&&(n=e.adjustMathMLAttributes(n)),e.currentStackItem().namespaceURI==\"http://www.w3.org/2000/svg\"&&(t=e.adjustSVGTagNameCase(t),n=e.adjustSVGAttributes(n)),n=e.adjustForeignAttributes(n),e.insertForeignElement(t,n,e.currentStackItem().namespaceURI,r)},t.inForeignContent.processEndTag=function(t){var n=e.currentStackItem(),r=e.openElements.length-1;n.localName.toLowerCase()!=t&&e.parseError(\"unexpected-end-tag\",{name:t});for(;;){if(r===0)break;if(n.localName.toLowerCase()==t){while(e.openElements.pop()!=n);break}r-=1,n=e.openElements.item(r);if(n.isForeign())continue;e.insertionMode.processEndTag(t);break}},t.inForeignContent.processCharacters=function(t){var n=t.takeRemaining();n=n.replace(/\\u0000/g,function(t,n){return e.parseError(\"invalid-codepoint\"),\"\\ufffd\"}),e.framesetOk&&!d(n)&&(e.framesetOk=!1),e.insertText(n)},t.inHeadNoscript=Object.create(t.base),t.inHeadNoscript.start_tag_handlers={html:\"startTagHtml\",basefont:\"startTagBasefontBgsoundLinkMetaNoframesStyle\",bgsound:\"startTagBasefontBgsoundLinkMetaNoframesStyle\",link:\"startTagBasefontBgsoundLinkMetaNoframesStyle\",meta:\"startTagBasefontBgsoundLinkMetaNoframesStyle\",noframes:\"startTagBasefontBgsoundLinkMetaNoframesStyle\",style:\"startTagBasefontBgsoundLinkMetaNoframesStyle\",head:\"startTagHeadNoscript\",noscript:\"startTagHeadNoscript\",\"-default\":\"startTagOther\"},t.inHeadNoscript.end_tag_handlers={noscript:\"endTagNoscript\",br:\"endTagBr\",\"-default\":\"endTagOther\"},t.inHeadNoscript.processCharacters=function(t){var n=t.takeLeadingWhitespace();n&&e.insertText(n);if(!t.length)return;e.parseError(\"unexpected-char-in-frameset\"),this.anythingElse(),e.insertionMode.processCharacters(t)},t.inHeadNoscript.processComment=function(e){t.inHead.processComment(e)},t.inHeadNoscript.startTagBasefontBgsoundLinkMetaNoframesStyle=function(e,n){t.inHead.processStartTag(e,n)},t.inHeadNoscript.startTagHeadNoscript=function(t,n){e.parseError(\"unexpected-start-tag-in-frameset\",{name:t})},t.inHeadNoscript.startTagOther=function(t,n){e.parseError(\"unexpected-start-tag-in-frameset\",{name:t}),this.anythingElse(),e.insertionMode.processStartTag(t,n)},t.inHeadNoscript.endTagBr=function(t,n){e.parseError(\"unexpected-end-tag-in-frameset\",{name:t}),this.anythingElse(),e.insertionMode.processEndTag(t,n)},t.inHeadNoscript.endTagNoscript=function(t,n){e.popElement(),e.setInsertionMode(\"inHead\")},t.inHeadNoscript.endTagOther=function(t,n){e.parseError(\"unexpected-end-tag-in-frameset\",{name:t})},t.inHeadNoscript.anythingElse=function(){e.popElement(),e.setInsertionMode(\"inHead\")},t.inFrameset=Object.create(t.base),t.inFrameset.start_tag_handlers={html:\"startTagHtml\",frameset:\"startTagFrameset\",frame:\"startTagFrame\",noframes:\"startTagNoframes\",\"-default\":\"startTagOther\"},t.inFrameset.end_tag_handlers={frameset:\"endTagFrameset\",noframes:\"endTagNoframes\",\"-default\":\"endTagOther\"},t.inFrameset.processCharacters=function(t){e.parseError(\"unexpected-char-in-frameset\")},t.inFrameset.startTagFrameset=function(t,n){e.insertElement(t,n)},t.inFrameset.startTagFrame=function(t,n){e.insertSelfClosingElement(t,n)},t.inFrameset.startTagNoframes=function(e,n){t.inBody.processStartTag(e,n)},t.inFrameset.startTagOther=function(t,n){e.parseError(\"unexpected-start-tag-in-frameset\",{name:t})},t.inFrameset.endTagFrameset=function(t,n){e.currentStackItem().localName==\"html\"?e.parseError(\"unexpected-frameset-in-frameset-innerhtml\"):e.popElement(),!e.context&&e.currentStackItem().localName!=\"frameset\"&&e.setInsertionMode(\"afterFrameset\")},t.inFrameset.endTagNoframes=function(e){t.inBody.processEndTag(e)},t.inFrameset.endTagOther=function(t){e.parseError(\"unexpected-end-tag-in-frameset\",{name:t})},t.inTable=Object.create(t.base),t.inTable.start_tag_handlers={html:\"startTagHtml\",caption:\"startTagCaption\",colgroup:\"startTagColgroup\",col:\"startTagCol\",table:\"startTagTable\",tbody:\"startTagRowGroup\",tfoot:\"startTagRowGroup\",thead:\"startTagRowGroup\",td:\"startTagImplyTbody\",th:\"startTagImplyTbody\",tr:\"startTagImplyTbody\",style:\"startTagStyleScript\",script:\"startTagStyleScript\",input:\"startTagInput\",form:\"startTagForm\",\"-default\":\"startTagOther\"},t.inTable.end_tag_handlers={table:\"endTagTable\",body:\"endTagIgnore\",caption:\"endTagIgnore\",col:\"endTagIgnore\",colgroup:\"endTagIgnore\",html:\"endTagIgnore\",tbody:\"endTagIgnore\",td:\"endTagIgnore\",tfoot:\"endTagIgnore\",th:\"endTagIgnore\",thead:\"endTagIgnore\",tr:\"endTagIgnore\",\"-default\":\"endTagOther\"},t.inTable.processCharacters=function(n){if(e.currentStackItem().isFosterParenting()){var r=e.insertionModeName;e.setInsertionMode(\"inTableText\"),e.originalInsertionMode=r,e.insertionMode.processCharacters(n)}else e.redirectAttachToFosterParent=!0,t.inBody.processCharacters(n),e.redirectAttachToFosterParent=!1},t.inTable.startTagCaption=function(t,n){e.openElements.popUntilTableScopeMarker(),e.activeFormattingElements.push(l),e.insertElement(t,n),e.setInsertionMode(\"inCaption\")},t.inTable.startTagColgroup=function(t,n){e.openElements.popUntilTableScopeMarker(),e.insertElement(t,n),e.setInsertionMode(\"inColumnGroup\")},t.inTable.startTagCol=function(t,n){this.startTagColgroup(\"colgroup\",[]),e.insertionMode.processStartTag(t,n)},t.inTable.startTagRowGroup=function(t,n){e.openElements.popUntilTableScopeMarker(),e.insertElement(t,n),e.setInsertionMode(\"inTableBody\")},t.inTable.startTagImplyTbody=function(t,n){this.startTagRowGroup(\"tbody\",[]),e.insertionMode.processStartTag(t,n)},t.inTable.startTagTable=function(t,n){e.parseError(\"unexpected-start-tag-implies-end-tag\",{startName:\"table\",endName:\"table\"}),e.insertionMode.processEndTag(\"table\"),e.context||e.insertionMode.processStartTag(t,n)},t.inTable.startTagStyleScript=function(e,n){t.inHead.processStartTag(e,n)},t.inTable.startTagInput=function(t,n){for(var r in n)if(n[r].nodeName.toLowerCase()==\"type\"){if(n[r].nodeValue.toLowerCase()==\"hidden\"){e.parseError(\"unexpected-hidden-input-in-table\"),e.insertElement(t,n),e.openElements.pop();return}break}this.startTagOther(t,n)},t.inTable.startTagForm=function(t,n){e.parseError(\"unexpected-form-in-table\"),e.form||(e.insertElement(t,n),e.form=e.currentStackItem(),e.openElements.pop())},t.inTable.startTagOther=function(n,r,i){e.parseError(\"unexpected-start-tag-implies-table-voodoo\",{name:n}),e.redirectAttachToFosterParent=!0,t.inBody.processStartTag(n,r,i),e.redirectAttachToFosterParent=!1},t.inTable.endTagTable=function(t){e.openElements.inTableScope(t)?(e.generateImpliedEndTags(),e.currentStackItem().localName!=t&&e.parseError(\"end-tag-too-early-named\",{gotName:\"table\",expectedName:e.currentStackItem().localName}),e.openElements.popUntilPopped(\"table\"),e.resetInsertionMode()):(r.ok(e.context),e.parseError(\"unexpected-end-tag\",{name:t}))},t.inTable.endTagIgnore=function(t){e.parseError(\"unexpected-end-tag\",{name:t})},t.inTable.endTagOther=function(n){e.parseError(\"unexpected-end-tag-implies-table-voodoo\",{name:n}),e.redirectAttachToFosterParent=!0,t.inBody.processEndTag(n),e.redirectAttachToFosterParent=!1},t.inTableText=Object.create(t.base),t.inTableText.flushCharacters=function(){var t=e.pendingTableCharacters.join(\"\");p(t)?e.insertText(t):(e.redirectAttachToFosterParent=!0,e.reconstructActiveFormattingElements(),e.insertText(t),e.framesetOk=!1,e.redirectAttachToFosterParent=!1),e.pendingTableCharacters=[]},t.inTableText.processComment=function(t){this.flushCharacters(),e.setInsertionMode(e.originalInsertionMode),e.insertionMode.processComment(t)},t.inTableText.processEOF=function(t){this.flushCharacters(),e.setInsertionMode(e.originalInsertionMode),e.insertionMode.processEOF()},t.inTableText.processCharacters=function(t){var n=t.takeRemaining();n=n.replace(/\\u0000/g,function(t,n){return e.parseError(\"invalid-codepoint\"),\"\"});if(!n)return;e.pendingTableCharacters.push(n)},t.inTableText.processStartTag=function(t,n,r){this.flushCharacters(),e.setInsertionMode(e.originalInsertionMode),e.insertionMode.processStartTag(t,n,r)},t.inTableText.processEndTag=function(t,n){this.flushCharacters(),e.setInsertionMode(e.originalInsertionMode),e.insertionMode.processEndTag(t,n)},t.inTableBody=Object.create(t.base),t.inTableBody.start_tag_handlers={html:\"startTagHtml\",tr:\"startTagTr\",td:\"startTagTableCell\",th:\"startTagTableCell\",caption:\"startTagTableOther\",col:\"startTagTableOther\",colgroup:\"startTagTableOther\",tbody:\"startTagTableOther\",tfoot:\"startTagTableOther\",thead:\"startTagTableOther\",\"-default\":\"startTagOther\"},t.inTableBody.end_tag_handlers={table:\"endTagTable\",tbody:\"endTagTableRowGroup\",tfoot:\"endTagTableRowGroup\",thead:\"endTagTableRowGroup\",body:\"endTagIgnore\",caption:\"endTagIgnore\",col:\"endTagIgnore\",colgroup:\"endTagIgnore\",html:\"endTagIgnore\",td:\"endTagIgnore\",th:\"endTagIgnore\",tr:\"endTagIgnore\",\"-default\":\"endTagOther\"},t.inTableBody.processCharacters=function(e){t.inTable.processCharacters(e)},t.inTableBody.startTagTr=function(t,n){e.openElements.popUntilTableBodyScopeMarker(),e.insertElement(t,n),e.setInsertionMode(\"inRow\")},t.inTableBody.startTagTableCell=function(t,n){e.parseError(\"unexpected-cell-in-table-body\",{name:t}),this.startTagTr(\"tr\",[]),e.insertionMode.processStartTag(t,n)},t.inTableBody.startTagTableOther=function(t,n){e.openElements.inTableScope(\"tbody\")||e.openElements.inTableScope(\"thead\")||e.openElements.inTableScope(\"tfoot\")?(e.openElements.popUntilTableBodyScopeMarker(),this.endTagTableRowGroup(e.currentStackItem().localName),e.insertionMode.processStartTag(t,n)):e.parseError(\"unexpected-start-tag\",{name:t})},t.inTableBody.startTagOther=function(e,n){t.inTable.processStartTag(e,n)},t.inTableBody.endTagTableRowGroup=function(t){e.openElements.inTableScope(t)?(e.openElements.popUntilTableBodyScopeMarker(),e.popElement(),e.setInsertionMode(\"inTable\")):e.parseError(\"unexpected-end-tag-in-table-body\",{name:t})},t.inTableBody.endTagTable=function(t){e.openElements.inTableScope(\"tbody\")||e.openElements.inTableScope(\"thead\")||e.openElements.inTableScope(\"tfoot\")?(e.openElements.popUntilTableBodyScopeMarker(),this.endTagTableRowGroup(e.currentStackItem().localName),e.insertionMode.processEndTag(t)):e.parseError(\"unexpected-end-tag\",{name:t})},t.inTableBody.endTagIgnore=function(t){e.parseError(\"unexpected-end-tag-in-table-body\",{name:t})},t.inTableBody.endTagOther=function(e){t.inTable.processEndTag(e)},t.inSelect=Object.create(t.base),t.inSelect.start_tag_handlers={html:\"startTagHtml\",option:\"startTagOption\",optgroup:\"startTagOptgroup\",select:\"startTagSelect\",input:\"startTagInput\",keygen:\"startTagInput\",textarea:\"startTagInput\",script:\"startTagScript\",\"-default\":\"startTagOther\"},t.inSelect.end_tag_handlers={option:\"endTagOption\",optgroup:\"endTagOptgroup\",select:\"endTagSelect\",caption:\"endTagTableElements\",table:\"endTagTableElements\",tbody:\"endTagTableElements\",tfoot:\"endTagTableElements\",thead:\"endTagTableElements\",tr:\"endTagTableElements\",td:\"endTagTableElements\",th:\"endTagTableElements\",\"-default\":\"endTagOther\"},t.inSelect.processCharacters=function(t){var n=t.takeRemaining();n=n.replace(/\\u0000/g,function(t,n){return e.parseError(\"invalid-codepoint\"),\"\"});if(!n)return;e.insertText(n)},t.inSelect.startTagOption=function(t,n){e.currentStackItem().localName==\"option\"&&e.popElement(),e.insertElement(t,n)},t.inSelect.startTagOptgroup=function(t,n){e.currentStackItem().localName==\"option\"&&e.popElement(),e.currentStackItem().localName==\"optgroup\"&&e.popElement(),e.insertElement(t,n)},t.inSelect.endTagOption=function(t){if(e.currentStackItem().localName!==\"option\"){e.parseError(\"unexpected-end-tag-in-select\",{name:t});return}e.popElement()},t.inSelect.endTagOptgroup=function(t){e.currentStackItem().localName==\"option\"&&e.openElements.item(e.openElements.length-2).localName==\"optgroup\"&&e.popElement(),e.currentStackItem().localName==\"optgroup\"?e.popElement():e.parseError(\"unexpected-end-tag-in-select\",{name:\"optgroup\"})},t.inSelect.startTagSelect=function(t){e.parseError(\"unexpected-select-in-select\"),this.endTagSelect(\"select\")},t.inSelect.endTagSelect=function(t){e.openElements.inTableScope(\"select\")?(e.openElements.popUntilPopped(\"select\"),e.resetInsertionMode()):e.parseError(\"unexpected-end-tag\",{name:t})},t.inSelect.startTagInput=function(t,n){e.parseError(\"unexpected-input-in-select\"),e.openElements.inSelectScope(\"select\")&&(this.endTagSelect(\"select\"),e.insertionMode.processStartTag(t,n))},t.inSelect.startTagScript=function(e,n){t.inHead.processStartTag(e,n)},t.inSelect.endTagTableElements=function(t){e.parseError(\"unexpected-end-tag-in-select\",{name:t}),e.openElements.inTableScope(t)&&(this.endTagSelect(\"select\"),e.insertionMode.processEndTag(t))},t.inSelect.startTagOther=function(t,n){e.parseError(\"unexpected-start-tag-in-select\",{name:t})},t.inSelect.endTagOther=function(t){e.parseError(\"unexpected-end-tag-in-select\",{name:t})},t.inSelectInTable=Object.create(t.base),t.inSelectInTable.start_tag_handlers={caption:\"startTagTable\",table:\"startTagTable\",tbody:\"startTagTable\",tfoot:\"startTagTable\",thead:\"startTagTable\",tr:\"startTagTable\",td:\"startTagTable\",th:\"startTagTable\",\"-default\":\"startTagOther\"},t.inSelectInTable.end_tag_handlers={caption:\"endTagTable\",table:\"endTagTable\",tbody:\"endTagTable\",tfoot:\"endTagTable\",thead:\"endTagTable\",tr:\"endTagTable\",td:\"endTagTable\",th:\"endTagTable\",\"-default\":\"endTagOther\"},t.inSelectInTable.processCharacters=function(e){t.inSelect.processCharacters(e)},t.inSelectInTable.startTagTable=function(t,n){e.parseError(\"unexpected-table-element-start-tag-in-select-in-table\",{name:t}),this.endTagOther(\"select\"),e.insertionMode.processStartTag(t,n)},t.inSelectInTable.startTagOther=function(e,n,r){t.inSelect.processStartTag(e,n,r)},t.inSelectInTable.endTagTable=function(t){e.parseError(\"unexpected-table-element-end-tag-in-select-in-table\",{name:t}),e.openElements.inTableScope(t)&&(this.endTagOther(\"select\"),e.insertionMode.processEndTag(t))},t.inSelectInTable.endTagOther=function(e){t.inSelect.processEndTag(e)},t.inRow=Object.create(t.base),t.inRow.start_tag_handlers={html:\"startTagHtml\",td:\"startTagTableCell\",th:\"startTagTableCell\",caption:\"startTagTableOther\",col:\"startTagTableOther\",colgroup:\"startTagTableOther\",tbody:\"startTagTableOther\",tfoot:\"startTagTableOther\",thead:\"startTagTableOther\",tr:\"startTagTableOther\",\"-default\":\"startTagOther\"},t.inRow.end_tag_handlers={tr:\"endTagTr\",table:\"endTagTable\",tbody:\"endTagTableRowGroup\",tfoot:\"endTagTableRowGroup\",thead:\"endTagTableRowGroup\",body:\"endTagIgnore\",caption:\"endTagIgnore\",col:\"endTagIgnore\",colgroup:\"endTagIgnore\",html:\"endTagIgnore\",td:\"endTagIgnore\",th:\"endTagIgnore\",\"-default\":\"endTagOther\"},t.inRow.processCharacters=function(e){t.inTable.processCharacters(e)},t.inRow.startTagTableCell=function(t,n){e.openElements.popUntilTableRowScopeMarker(),e.insertElement(t,n),e.setInsertionMode(\"inCell\"),e.activeFormattingElements.push(l)},t.inRow.startTagTableOther=function(t,n){var r=this.ignoreEndTagTr();this.endTagTr(\"tr\"),r||e.insertionMode.processStartTag(t,n)},t.inRow.startTagOther=function(e,n,r){t.inTable.processStartTag(e,n,r)},t.inRow.endTagTr=function(t){this.ignoreEndTagTr()?(r.ok(e.context),e.parseError(\"unexpected-end-tag\",{name:t})):(e.openElements.popUntilTableRowScopeMarker(),e.popElement(),e.setInsertionMode(\"inTableBody\"))},t.inRow.endTagTable=function(t){var n=this.ignoreEndTagTr();this.endTagTr(\"tr\"),n||e.insertionMode.processEndTag(t)},t.inRow.endTagTableRowGroup=function(t){e.openElements.inTableScope(t)?(this.endTagTr(\"tr\"),e.insertionMode.processEndTag(t)):e.parseError(\"unexpected-end-tag\",{name:t})},t.inRow.endTagIgnore=function(t){e.parseError(\"unexpected-end-tag-in-table-row\",{name:t})},t.inRow.endTagOther=function(e){t.inTable.processEndTag(e)},t.inRow.ignoreEndTagTr=function(){return!e.openElements.inTableScope(\"tr\")},t.afterAfterFrameset=Object.create(t.base),t.afterAfterFrameset.start_tag_handlers={html:\"startTagHtml\",noframes:\"startTagNoFrames\",\"-default\":\"startTagOther\"},t.afterAfterFrameset.processEOF=function(){},t.afterAfterFrameset.processComment=function(t){e.insertComment(t,e.document)},t.afterAfterFrameset.processCharacters=function(t){var n=t.takeRemaining(),r=\"\";for(var i=0;i<n.length;i++){var s=n[i];c(s)&&(r+=s)}r&&(e.reconstructActiveFormattingElements(),e.insertText(r)),r.length<n.length&&e.parseError(\"expected-eof-but-got-char\")},t.afterAfterFrameset.startTagNoFrames=function(e,n){t.inHead.processStartTag(e,n)},t.afterAfterFrameset.startTagOther=function(t,n,r){e.parseError(\"expected-eof-but-got-start-tag\",{name:t})},t.afterAfterFrameset.processEndTag=function(t,n){e.parseError(\"expected-eof-but-got-end-tag\",{name:t})},t.text=Object.create(t.base),t.text.start_tag_handlers={\"-default\":\"startTagOther\"},t.text.end_tag_handlers={script:\"endTagScript\",\"-default\":\"endTagOther\"},t.text.processCharacters=function(t){e.shouldSkipLeadingNewline&&(e.shouldSkipLeadingNewline=!1,t.skipAtMostOneLeadingNewline());var n=t.takeRemaining();if(!n)return;e.insertText(n)},t.text.processEOF=function(){e.parseError(\"expected-named-closing-tag-but-got-eof\",{name:e.currentStackItem().localName}),e.openElements.pop(),e.setInsertionMode(e.originalInsertionMode),e.insertionMode.processEOF()},t.text.startTagOther=function(e){throw\"Tried to process start tag \"+e+\" in RCDATA/RAWTEXT mode\"},t.text.endTagScript=function(t){var n=e.openElements.pop();r.ok(n.localName==\"script\"),e.setInsertionMode(e.originalInsertionMode)},t.text.endTagOther=function(t){e.openElements.pop(),e.setInsertionMode(e.originalInsertionMode)}}function y(e,t){return e.replace(new RegExp(\"{[0-9a-z-]+}\",\"gi\"),function(e){return t[e.slice(1,-1)]||e})}var r=e(\"assert\"),i=e(\"./messages.json\"),s=e(\"./constants\"),o=e(\"events\").EventEmitter,u=e(\"./Tokenizer\").Tokenizer,a=e(\"./ElementStack\").ElementStack,f=e(\"./StackItem\").StackItem,l={};m.prototype.skipAtMostOneLeadingNewline=function(){this.characters[this.current]===\"\\n\"&&this.current++},m.prototype.skipLeadingWhitespace=function(){while(c(this.characters[this.current]))if(++this.current==this.end)return},m.prototype.skipLeadingNonWhitespace=function(){while(!c(this.characters[this.current]))if(++this.current==this.end)return},m.prototype.takeRemaining=function(){return this.characters.substring(this.current)},m.prototype.takeLeadingWhitespace=function(){var e=this.current;return this.skipLeadingWhitespace(),e===this.current?\"\":this.characters.substring(e,this.current-e)},Object.defineProperty(m.prototype,\"length\",{get:function(){return this.end-this.current}}),g.prototype.setInsertionMode=function(e){this.insertionMode=this.insertionModes[e],this.insertionModeName=e},g.prototype.adoptionAgencyEndTag=function(e){function i(e){return e===r}var t=8,n=3,r,s=0;while(s++<t){r=this.elementInActiveFormattingElements(e);if(!r||this.openElements.contains(r)&&!this.openElements.inScope(r.localName))return this.parseError(\"adoption-agency-1.1\",{name:e}),!1;if(!this.openElements.contains(r))return this.parseError(\"adoption-agency-1.2\",{name:e}),this.removeElementFromActiveFormattingElements(r),!0;this.openElements.inScope(r.localName)||this.parseError(\"adoption-agency-4.4\",{name:e}),r!=this.currentStackItem()&&this.parseError(\"adoption-agency-1.3\",{name:e});var o=this.openElements.furthestBlockForFormattingElement(r.node);if(!o)return this.openElements.remove_openElements_until(i),this.removeElementFromActiveFormattingElements(r),!0;var u=this.openElements.elements.indexOf(r),a=this.openElements.item(u-1),l=this.activeFormattingElements.indexOf(r),c=o,h=o,p=this.openElements.elements.indexOf(c),d=0;while(d++<n){p-=1,c=this.openElements.item(p);if(this.activeFormattingElements.indexOf(c)<0){this.openElements.elements.splice(p,1);continue}if(c==r)break;h==o&&(l=this.activeFormattingElements.indexOf(c)+1);var v=this.createElement(c.namespaceURI,c.localName,c.attributes),m=new f(c.namespaceURI,c.localName,c.attributes,v);this.activeFormattingElements[this.activeFormattingElements.indexOf(c)]=m,this.openElements.elements[this.openElements.elements.indexOf(c)]=m,c=m,this.detachFromParent(h.node),this.attachNode(h.node,c.node),h=c}this.detachFromParent(h.node),a.isFosterParenting()?this.insertIntoFosterParent(h.node):this.attachNode(h.node,a.node);var v=this.createElement(\"http://www.w3.org/1999/xhtml\",r.localName,r.attributes),g=new f(r.namespaceURI,r.localName,r.attributes,v);this.reparentChildren(o.node,v),this.attachNode(v,o.node),this.removeElementFromActiveFormattingElements(r),this.activeFormattingElements.splice(Math.min(l,this.activeFormattingElements.length),0,g),this.openElements.remove(r),this.openElements.elements.splice(this.openElements.elements.indexOf(o)+1,0,g)}return!0},g.prototype.start=function(){throw\"Not mplemented\"},g.prototype.startTokenization=function(e){this.tokenizer=e,this.compatMode=\"no quirks\",this.originalInsertionMode=\"initial\",this.framesetOk=!0,this.openElements=new a,this.activeFormattingElements=[],this.start();if(this.context){switch(this.context){case\"title\":case\"textarea\":this.tokenizer.setState(u.RCDATA);break;case\"style\":case\"xmp\":case\"iframe\":case\"noembed\":case\"noframes\":this.tokenizer.setState(u.RAWTEXT);break;case\"script\":this.tokenizer.setState(u.SCRIPT_DATA);break;case\"noscript\":this.scriptingEnabled&&this.tokenizer.setState(u.RAWTEXT);break;case\"plaintext\":this.tokenizer.setState(u.PLAINTEXT)}this.insertHtmlElement(),this.resetInsertionMode()}else this.setInsertionMode(\"initial\")},g.prototype.processToken=function(e){this.selfClosingFlagAcknowledged=!1;var t=this.openElements.top||null,n;!t||!t.isForeign()||t.isMathMLTextIntegrationPoint()&&(e.type==\"StartTag\"&&!(e.name in{mglyph:0,malignmark:0})||e.type===\"Characters\")||t.namespaceURI==\"http://www.w3.org/1998/Math/MathML\"&&t.localName==\"annotation-xml\"&&e.type==\"StartTag\"&&e.name==\"svg\"||t.isHtmlIntegrationPoint()&&e.type in{StartTag:0,Characters:0}||e.type==\"EOF\"?n=this.insertionMode:n=this.insertionModes.inForeignContent;switch(e.type){case\"Characters\":var r=new m(e.data);n.processCharacters(r);break;case\"Comment\":n.processComment(e.data);break;case\"StartTag\":n.processStartTag(e.name,e.data,e.selfClosing);break;case\"EndTag\":n.processEndTag(e.name);break;case\"Doctype\":n.processDoctype(e.name,e.publicId,e.systemId,e.forceQuirks);break;case\"EOF\":n.processEOF()}},g.prototype.isCdataSectionAllowed=function(){return this.openElements.length>0&&this.currentStackItem().isForeign()},g.prototype.isSelfClosingFlagAcknowledged=function(){return this.selfClosingFlagAcknowledged},g.prototype.createElement=function(e,t,n){throw new Error(\"Not implemented\")},g.prototype.attachNode=function(e,t){throw new Error(\"Not implemented\")},g.prototype.attachNodeToFosterParent=function(e,t,n){throw new Error(\"Not implemented\")},g.prototype.detachFromParent=function(e){throw new Error(\"Not implemented\")},g.prototype.addAttributesToElement=function(e,t){throw new Error(\"Not implemented\")},g.prototype.insertHtmlElement=function(e){var t=this.createElement(\"http://www.w3.org/1999/xhtml\",\"html\",e);return this.attachNode(t,this.document),this.openElements.pushHtmlElement(new f(\"http://www.w3.org/1999/xhtml\",\"html\",e,t)),t},g.prototype.insertHeadElement=function(e){var t=this.createElement(\"http://www.w3.org/1999/xhtml\",\"head\",e);return this.head=new f(\"http://www.w3.org/1999/xhtml\",\"head\",e,t),this.attachNode(t,this.openElements.top.node),this.openElements.pushHeadElement(this.head),t},g.prototype.insertBodyElement=function(e){var t=this.createElement(\"http://www.w3.org/1999/xhtml\",\"body\",e);return this.attachNode(t,this.openElements.top.node),this.openElements.pushBodyElement(new f(\"http://www.w3.org/1999/xhtml\",\"body\",e,t)),t},g.prototype.insertIntoFosterParent=function(e){var t=this.openElements.findIndex(\"table\"),n=this.openElements.item(t).node;if(t===0)return this.attachNode(e,n);this.attachNodeToFosterParent(e,n,this.openElements.item(t-1).node)},g.prototype.insertElement=function(e,t,n,r){n||(n=\"http://www.w3.org/1999/xhtml\");var i=this.createElement(n,e,t);this.shouldFosterParent()?this.insertIntoFosterParent(i):this.attachNode(i,this.openElements.top.node),r||this.openElements.push(new f(n,e,t,i))},g.prototype.insertFormattingElement=function(e,t){this.insertElement(e,t,\"http://www.w3.org/1999/xhtml\"),this.appendElementToActiveFormattingElements(this.currentStackItem())},g.prototype.insertSelfClosingElement=function(e,t){this.selfClosingFlagAcknowledged=!0,this.insertElement(e,t,\"http://www.w3.org/1999/xhtml\",!0)},g.prototype.insertForeignElement=function(e,t,n,r){r&&(this.selfClosingFlagAcknowledged=!0),this.insertElement(e,t,n,r)},g.prototype.insertComment=function(e,t){throw new Error(\"Not implemented\")},g.prototype.insertDoctype=function(e,t,n){throw new Error(\"Not implemented\")},g.prototype.insertText=function(e){throw new Error(\"Not implemented\")},g.prototype.currentStackItem=function(){return this.openElements.top},g.prototype.popElement=function(){return this.openElements.pop()},g.prototype.shouldFosterParent=function(){return this.redirectAttachToFosterParent&&this.currentStackItem().isFosterParenting()},g.prototype.generateImpliedEndTags=function(e){var t=this.openElements.top.localName;[\"dd\",\"dt\",\"li\",\"option\",\"optgroup\",\"p\",\"rp\",\"rt\"].indexOf(t)!=-1&&t!=e&&(this.popElement(),this.generateImpliedEndTags(e))},g.prototype.reconstructActiveFormattingElements=function(){if(this.activeFormattingElements.length===0)return;var e=this.activeFormattingElements.length-1,t=this.activeFormattingElements[e];if(t==l||this.openElements.contains(t))return;while(t!=l&&!this.openElements.contains(t)){e-=1,t=this.activeFormattingElements[e];if(!t)break}for(;;){e+=1,t=this.activeFormattingElements[e],this.insertElement(t.localName,t.attributes);var n=this.currentStackItem();this.activeFormattingElements[e]=n;if(n==this.activeFormattingElements[this.activeFormattingElements.length-1])break}},g.prototype.ensureNoahsArkCondition=function(e){var t=3;if(this.activeFormattingElements.length<t)return;var n=[],r=e.attributes.length;for(var i=this.activeFormattingElements.length-1;i>=0;i--){var s=this.activeFormattingElements[i];if(s===l)break;if(e.localName!==s.localName||e.namespaceURI!==s.namespaceURI)continue;if(s.attributes.length!=r)continue;n.push(s)}if(n.length<t)return;var o=[],u=e.attributes;for(var i=0;i<u.length;i++){var a=u[i];for(var f=0;f<n.length;f++){var s=n[f],c=v(s,a.nodeName);c&&c.nodeValue===a.nodeValue&&o.push(s)}if(o.length<t)return;n=o,o=[]}for(var i=t-1;i<n.length;i++)this.removeElementFromActiveFormattingElements(n[i])},g.prototype.appendElementToActiveFormattingElements=function(e){this.ensureNoahsArkCondition(e),this.activeFormattingElements.push(e)},g.prototype.removeElementFromActiveFormattingElements=function(e){var t=this.activeFormattingElements.indexOf(e);t>=0&&this.activeFormattingElements.splice(t,1)},g.prototype.elementInActiveFormattingElements=function(e){var t=this.activeFormattingElements;for(var n=t.length-1;n>=0;n--){if(t[n]==l)break;if(t[n].localName==e)return t[n]}return!1},g.prototype.clearActiveFormattingElements=function(){while(this.activeFormattingElements.length!==0&&this.activeFormattingElements.pop()!=l);},g.prototype.reparentChildren=function(e,t){throw new Error(\"Not implemented\")},g.prototype.setFragmentContext=function(e){this.context=e},g.prototype.parseError=function(e,t){if(!this.errorHandler)return;var n=y(i[e],t);this.errorHandler.error(n,this.tokenizer._inputStream.location(),e)},g.prototype.resetInsertionMode=function(){var e=!1,t=null;for(var n=this.openElements.length-1;n>=0;n--){t=this.openElements.item(n),n===0&&(r.ok(this.context),e=!0,t=new f(\"http://www.w3.org/1999/xhtml\",this.context,[],null));if(t.namespaceURI===\"http://www.w3.org/1999/xhtml\"){if(t.localName===\"select\")return this.setInsertionMode(\"inSelect\");if(t.localName===\"td\"||t.localName===\"th\")return this.setInsertionMode(\"inCell\");if(t.localName===\"tr\")return this.setInsertionMode(\"inRow\");if(t.localName===\"tbody\"||t.localName===\"thead\"||t.localName===\"tfoot\")return this.setInsertionMode(\"inTableBody\");if(t.localName===\"caption\")return this.setInsertionMode(\"inCaption\");if(t.localName===\"colgroup\")return this.setInsertionMode(\"inColumnGroup\");if(t.localName===\"table\")return this.setInsertionMode(\"inTable\");if(t.localName===\"head\"&&!e)return this.setInsertionMode(\"inHead\");if(t.localName===\"body\")return this.setInsertionMode(\"inBody\");if(t.localName===\"frameset\")return this.setInsertionMode(\"inFrameset\");if(t.localName===\"html\")return this.openElements.headElement?this.setInsertionMode(\"afterHead\"):this.setInsertionMode(\"beforeHead\")}if(e)return this.setInsertionMode(\"inBody\")}},g.prototype.processGenericRCDATAStartTag=function(e,t){this.insertElement(e,t),this.tokenizer.setState(u.RCDATA),this.originalInsertionMode=this.insertionModeName,this.setInsertionMode(\"text\")},g.prototype.processGenericRawTextStartTag=function(e,t){this.insertElement(e,t),this.tokenizer.setState(u.RAWTEXT),this.originalInsertionMode=this.insertionModeName,this.setInsertionMode(\"text\")},g.prototype.adjustMathMLAttributes=function(e){return e.forEach(function(e){e.namespaceURI=\"http://www.w3.org/1998/Math/MathML\",s.MATHMLAttributeMap[e.nodeName]&&(e.nodeName=s.MATHMLAttributeMap[e.nodeName])}),e},g.prototype.adjustSVGTagNameCase=function(e){return s.SVGTagMap[e]||e},g.prototype.adjustSVGAttributes=function(e){return e.forEach(function(e){e.namespaceURI=\"http://www.w3.org/2000/svg\",s.SVGAttributeMap[e.nodeName]&&(e.nodeName=s.SVGAttributeMap[e.nodeName])}),e},g.prototype.adjustForeignAttributes=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=s.ForeignAttributeMap[n.nodeName];r&&(n.nodeName=r.localName,n.prefix=r.prefix,n.namespaceURI=r.namespaceURI)}return e},n.TreeBuilder=g},{\"./ElementStack\":1,\"./StackItem\":4,\"./Tokenizer\":5,\"./constants\":7,\"./messages.json\":8,assert:13,events:16}],7:[function(e,t,n){n.SVGTagMap={altglyph:\"altGlyph\",altglyphdef:\"altGlyphDef\",altglyphitem:\"altGlyphItem\",animatecolor:\"animateColor\",animatemotion:\"animateMotion\",animatetransform:\"animateTransform\",clippath:\"clipPath\",feblend:\"feBlend\",fecolormatrix:\"feColorMatrix\",fecomponenttransfer:\"feComponentTransfer\",fecomposite:\"feComposite\",feconvolvematrix:\"feConvolveMatrix\",fediffuselighting:\"feDiffuseLighting\",fedisplacementmap:\"feDisplacementMap\",fedistantlight:\"feDistantLight\",feflood:\"feFlood\",fefunca:\"feFuncA\",fefuncb:\"feFuncB\",fefuncg:\"feFuncG\",fefuncr:\"feFuncR\",fegaussianblur:\"feGaussianBlur\",feimage:\"feImage\",femerge:\"feMerge\",femergenode:\"feMergeNode\",femorphology:\"feMorphology\",feoffset:\"feOffset\",fepointlight:\"fePointLight\",fespecularlighting:\"feSpecularLighting\",fespotlight:\"feSpotLight\",fetile:\"feTile\",feturbulence:\"feTurbulence\",foreignobject:\"foreignObject\",glyphref:\"glyphRef\",lineargradient:\"linearGradient\",radialgradient:\"radialGradient\",textpath:\"textPath\"},n.MATHMLAttributeMap={definitionurl:\"definitionURL\"},n.SVGAttributeMap={attributename:\"attributeName\",attributetype:\"attributeType\",basefrequency:\"baseFrequency\",baseprofile:\"baseProfile\",calcmode:\"calcMode\",clippathunits:\"clipPathUnits\",contentscripttype:\"contentScriptType\",contentstyletype:\"contentStyleType\",diffuseconstant:\"diffuseConstant\",edgemode:\"edgeMode\",externalresourcesrequired:\"externalResourcesRequired\",filterres:\"filterRes\",filterunits:\"filterUnits\",glyphref:\"glyphRef\",gradienttransform:\"gradientTransform\",gradientunits:\"gradientUnits\",kernelmatrix:\"kernelMatrix\",kernelunitlength:\"kernelUnitLength\",keypoints:\"keyPoints\",keysplines:\"keySplines\",keytimes:\"keyTimes\",lengthadjust:\"lengthAdjust\",limitingconeangle:\"limitingConeAngle\",markerheight:\"markerHeight\",markerunits:\"markerUnits\",markerwidth:\"markerWidth\",maskcontentunits:\"maskContentUnits\",maskunits:\"maskUnits\",numoctaves:\"numOctaves\",pathlength:\"pathLength\",patterncontentunits:\"patternContentUnits\",patterntransform:\"patternTransform\",patternunits:\"patternUnits\",pointsatx:\"pointsAtX\",pointsaty:\"pointsAtY\",pointsatz:\"pointsAtZ\",preservealpha:\"preserveAlpha\",preserveaspectratio:\"preserveAspectRatio\",primitiveunits:\"primitiveUnits\",refx:\"refX\",refy:\"refY\",repeatcount:\"repeatCount\",repeatdur:\"repeatDur\",requiredextensions:\"requiredExtensions\",requiredfeatures:\"requiredFeatures\",specularconstant:\"specularConstant\",specularexponent:\"specularExponent\",spreadmethod:\"spreadMethod\",startoffset:\"startOffset\",stddeviation:\"stdDeviation\",stitchtiles:\"stitchTiles\",surfacescale:\"surfaceScale\",systemlanguage:\"systemLanguage\",tablevalues:\"tableValues\",targetx:\"targetX\",targety:\"targetY\",textlength:\"textLength\",viewbox:\"viewBox\",viewtarget:\"viewTarget\",xchannelselector:\"xChannelSelector\",ychannelselector:\"yChannelSelector\",zoomandpan:\"zoomAndPan\"},n.ForeignAttributeMap={\"xlink:actuate\":{prefix:\"xlink\",localName:\"actuate\",namespaceURI:\"http://www.w3.org/1999/xlink\"},\"xlink:arcrole\":{prefix:\"xlink\",localName:\"arcrole\",namespaceURI:\"http://www.w3.org/1999/xlink\"},\"xlink:href\":{prefix:\"xlink\",localName:\"href\",namespaceURI:\"http://www.w3.org/1999/xlink\"},\"xlink:role\":{prefix:\"xlink\",localName:\"role\",namespaceURI:\"http://www.w3.org/1999/xlink\"},\"xlink:show\":{prefix:\"xlink\",localName:\"show\",namespaceURI:\"http://www.w3.org/1999/xlink\"},\"xlink:title\":{prefix:\"xlink\",localName:\"title\",namespaceURI:\"http://www.w3.org/1999/xlink\"},\"xlink:type\":{prefix:\"xlink\",localName:\"title\",namespaceURI:\"http://www.w3.org/1999/xlink\"},\"xml:base\":{prefix:\"xml\",localName:\"base\",namespaceURI:\"http://www.w3.org/XML/1998/namespace\"},\"xml:lang\":{prefix:\"xml\",localName:\"lang\",namespaceURI:\"http://www.w3.org/XML/1998/namespace\"},\"xml:space\":{prefix:\"xml\",localName:\"space\",namespaceURI:\"http://www.w3.org/XML/1998/namespace\"},xmlns:{prefix:null,localName:\"xmlns\",namespaceURI:\"http://www.w3.org/2000/xmlns/\"},\"xmlns:xlink\":{prefix:\"xmlns\",localName:\"xlink\",namespaceURI:\"http://www.w3.org/2000/xmlns/\"}}},{}],8:[function(e,t,n){t.exports={\"null-character\":\"Null character in input stream, replaced with U+FFFD.\",\"invalid-codepoint\":\"Invalid codepoint in stream\",\"incorrectly-placed-solidus\":\"Solidus (/) incorrectly placed in tag.\",\"incorrect-cr-newline-entity\":\"Incorrect CR newline entity, replaced with LF.\",\"illegal-windows-1252-entity\":\"Entity used with illegal number (windows-1252 reference).\",\"cant-convert-numeric-entity\":\"Numeric entity couldn't be converted to character (codepoint U+{charAsInt}).\",\"invalid-numeric-entity-replaced\":\"Numeric entity represents an illegal codepoint. Expanded to the C1 controls range.\",\"numeric-entity-without-semicolon\":\"Numeric entity didn't end with ';'.\",\"expected-numeric-entity-but-got-eof\":\"Numeric entity expected. Got end of file instead.\",\"expected-numeric-entity\":\"Numeric entity expected but none found.\",\"named-entity-without-semicolon\":\"Named entity didn't end with ';'.\",\"expected-named-entity\":\"Named entity expected. Got none.\",\"attributes-in-end-tag\":\"End tag contains unexpected attributes.\",\"self-closing-flag-on-end-tag\":\"End tag contains unexpected self-closing flag.\",\"bare-less-than-sign-at-eof\":\"End of file after <.\",\"expected-tag-name-but-got-right-bracket\":\"Expected tag name. Got '>' instead.\",\"expected-tag-name-but-got-question-mark\":\"Expected tag name. Got '?' instead. (HTML doesn't support processing instructions.)\",\"expected-tag-name\":\"Expected tag name. Got something else instead.\",\"expected-closing-tag-but-got-right-bracket\":\"Expected closing tag. Got '>' instead. Ignoring '</>'.\",\"expected-closing-tag-but-got-eof\":\"Expected closing tag. Unexpected end of file.\",\"expected-closing-tag-but-got-char\":\"Expected closing tag. Unexpected character '{data}' found.\",\"eof-in-tag-name\":\"Unexpected end of file in the tag name.\",\"expected-attribute-name-but-got-eof\":\"Unexpected end of file. Expected attribute name instead.\",\"eof-in-attribute-name\":\"Unexpected end of file in attribute name.\",\"invalid-character-in-attribute-name\":\"Invalid character in attribute name.\",\"duplicate-attribute\":\"Dropped duplicate attribute '{name}' on tag.\",\"expected-end-of-tag-but-got-eof\":\"Unexpected end of file. Expected = or end of tag.\",\"expected-attribute-value-but-got-eof\":\"Unexpected end of file. Expected attribute value.\",\"expected-attribute-value-but-got-right-bracket\":\"Expected attribute value. Got '>' instead.\",\"unexpected-character-in-unquoted-attribute-value\":\"Unexpected character in unquoted attribute\",\"invalid-character-after-attribute-name\":\"Unexpected character after attribute name.\",\"unexpected-character-after-attribute-value\":\"Unexpected character after attribute value.\",\"eof-in-attribute-value-double-quote\":'Unexpected end of file in attribute value (\").',\"eof-in-attribute-value-single-quote\":\"Unexpected end of file in attribute value (').\",\"eof-in-attribute-value-no-quotes\":\"Unexpected end of file in attribute value.\",\"eof-after-attribute-value\":\"Unexpected end of file after attribute value.\",\"unexpected-eof-after-solidus-in-tag\":\"Unexpected end of file in tag. Expected >.\",\"unexpected-character-after-solidus-in-tag\":\"Unexpected character after / in tag. Expected >.\",\"expected-dashes-or-doctype\":\"Expected '--' or 'DOCTYPE'. Not found.\",\"unexpected-bang-after-double-dash-in-comment\":\"Unexpected ! after -- in comment.\",\"incorrect-comment\":\"Incorrect comment.\",\"eof-in-comment\":\"Unexpected end of file in comment.\",\"eof-in-comment-end-dash\":\"Unexpected end of file in comment (-).\",\"unexpected-dash-after-double-dash-in-comment\":\"Unexpected '-' after '--' found in comment.\",\"eof-in-comment-double-dash\":\"Unexpected end of file in comment (--).\",\"eof-in-comment-end-bang-state\":\"Unexpected end of file in comment.\",\"unexpected-char-in-comment\":\"Unexpected character in comment found.\",\"need-space-after-doctype\":\"No space after literal string 'DOCTYPE'.\",\"expected-doctype-name-but-got-right-bracket\":\"Unexpected > character. Expected DOCTYPE name.\",\"expected-doctype-name-but-got-eof\":\"Unexpected end of file. Expected DOCTYPE name.\",\"eof-in-doctype-name\":\"Unexpected end of file in DOCTYPE name.\",\"eof-in-doctype\":\"Unexpected end of file in DOCTYPE.\",\"expected-space-or-right-bracket-in-doctype\":\"Expected space or '>'. Got '{data}'.\",\"unexpected-end-of-doctype\":\"Unexpected end of DOCTYPE.\",\"unexpected-char-in-doctype\":\"Unexpected character in DOCTYPE.\",\"eof-in-bogus-doctype\":\"Unexpected end of file in bogus doctype.\",\"eof-in-innerhtml\":\"Unexpected EOF in inner html mode.\",\"unexpected-doctype\":\"Unexpected DOCTYPE. Ignored.\",\"non-html-root\":\"html needs to be the first start tag.\",\"expected-doctype-but-got-eof\":\"Unexpected End of file. Expected DOCTYPE.\",\"unknown-doctype\":\"Erroneous DOCTYPE. Expected <!DOCTYPE html>.\",\"quirky-doctype\":\"Quirky doctype. Expected <!DOCTYPE html>.\",\"almost-standards-doctype\":\"Almost standards mode doctype. Expected <!DOCTYPE html>.\",\"obsolete-doctype\":\"Obsolete doctype. Expected <!DOCTYPE html>.\",\"expected-doctype-but-got-chars\":\"Non-space characters found without seeing a doctype first. Expected e.g. <!DOCTYPE html>.\",\"expected-doctype-but-got-start-tag\":\"Start tag seen without seeing a doctype first. Expected e.g. <!DOCTYPE html>.\",\"expected-doctype-but-got-end-tag\":\"End tag seen without seeing a doctype first. Expected e.g. <!DOCTYPE html>.\",\"end-tag-after-implied-root\":\"Unexpected end tag ({name}) after the (implied) root element.\",\"expected-named-closing-tag-but-got-eof\":\"Unexpected end of file. Expected end tag ({name}).\",\"two-heads-are-not-better-than-one\":\"Unexpected start tag head in existing head. Ignored.\",\"unexpected-end-tag\":\"Unexpected end tag ({name}). Ignored.\",\"unexpected-implied-end-tag\":\"End tag {name} implied, but there were open elements.\",\"unexpected-start-tag-out-of-my-head\":\"Unexpected start tag ({name}) that can be in head. Moved.\",\"unexpected-start-tag\":\"Unexpected start tag ({name}).\",\"missing-end-tag\":\"Missing end tag ({name}).\",\"missing-end-tags\":\"Missing end tags ({name}).\",\"unexpected-start-tag-implies-end-tag\":\"Unexpected start tag ({startName}) implies end tag ({endName}).\",\"unexpected-start-tag-treated-as\":\"Unexpected start tag ({originalName}). Treated as {newName}.\",\"deprecated-tag\":\"Unexpected start tag {name}. Don't use it!\",\"unexpected-start-tag-ignored\":\"Unexpected start tag {name}. Ignored.\",\"expected-one-end-tag-but-got-another\":\"Unexpected end tag ({gotName}). Missing end tag ({expectedName}).\",\"end-tag-too-early\":\"End tag ({name}) seen too early. Expected other end tag.\",\"end-tag-too-early-named\":\"Unexpected end tag ({gotName}). Expected end tag ({expectedName}.\",\"end-tag-too-early-ignored\":\"End tag ({name}) seen too early. Ignored.\",\"adoption-agency-1.1\":\"End tag ({name}) violates step 1, paragraph 1 of the adoption agency algorithm.\",\"adoption-agency-1.2\":\"End tag ({name}) violates step 1, paragraph 2 of the adoption agency algorithm.\",\"adoption-agency-1.3\":\"End tag ({name}) violates step 1, paragraph 3 of the adoption agency algorithm.\",\"adoption-agency-4.4\":\"End tag ({name}) violates step 4, paragraph 4 of the adoption agency algorithm.\",\"unexpected-end-tag-treated-as\":\"Unexpected end tag ({originalName}). Treated as {newName}.\",\"no-end-tag\":\"This element ({name}) has no end tag.\",\"unexpected-implied-end-tag-in-table\":\"Unexpected implied end tag ({name}) in the table phase.\",\"unexpected-implied-end-tag-in-table-body\":\"Unexpected implied end tag ({name}) in the table body phase.\",\"unexpected-char-implies-table-voodoo\":\"Unexpected non-space characters in table context caused voodoo mode.\",\"unexpected-hidden-input-in-table\":\"Unexpected input with type hidden in table context.\",\"unexpected-form-in-table\":\"Unexpected form in table context.\",\"unexpected-start-tag-implies-table-voodoo\":\"Unexpected start tag ({name}) in table context caused voodoo mode.\",\"unexpected-end-tag-implies-table-voodoo\":\"Unexpected end tag ({name}) in table context caused voodoo mode.\",\"unexpected-cell-in-table-body\":\"Unexpected table cell start tag ({name}) in the table body phase.\",\"unexpected-cell-end-tag\":\"Got table cell end tag ({name}) while required end tags are missing.\",\"unexpected-end-tag-in-table-body\":\"Unexpected end tag ({name}) in the table body phase. Ignored.\",\"unexpected-implied-end-tag-in-table-row\":\"Unexpected implied end tag ({name}) in the table row phase.\",\"unexpected-end-tag-in-table-row\":\"Unexpected end tag ({name}) in the table row phase. Ignored.\",\"unexpected-select-in-select\":\"Unexpected select start tag in the select phase treated as select end tag.\",\"unexpected-input-in-select\":\"Unexpected input start tag in the select phase.\",\"unexpected-start-tag-in-select\":\"Unexpected start tag token ({name}) in the select phase. Ignored.\",\"unexpected-end-tag-in-select\":\"Unexpected end tag ({name}) in the select phase. Ignored.\",\"unexpected-table-element-start-tag-in-select-in-table\":\"Unexpected table element start tag ({name}) in the select in table phase.\",\"unexpected-table-element-end-tag-in-select-in-table\":\"Unexpected table element end tag ({name}) in the select in table phase.\",\"unexpected-char-after-body\":\"Unexpected non-space characters in the after body phase.\",\"unexpected-start-tag-after-body\":\"Unexpected start tag token ({name}) in the after body phase.\",\"unexpected-end-tag-after-body\":\"Unexpected end tag token ({name}) in the after body phase.\",\"unexpected-char-in-frameset\":\"Unepxected characters in the frameset phase. Characters ignored.\",\"unexpected-start-tag-in-frameset\":\"Unexpected start tag token ({name}) in the frameset phase. Ignored.\",\"unexpected-frameset-in-frameset-innerhtml\":\"Unexpected end tag token (frameset in the frameset phase (innerHTML).\",\"unexpected-end-tag-in-frameset\":\"Unexpected end tag token ({name}) in the frameset phase. Ignored.\",\"unexpected-char-after-frameset\":\"Unexpected non-space characters in the after frameset phase. Ignored.\",\"unexpected-start-tag-after-frameset\":\"Unexpected start tag ({name}) in the after frameset phase. Ignored.\",\"unexpected-end-tag-after-frameset\":\"Unexpected end tag ({name}) in the after frameset phase. Ignored.\",\"expected-eof-but-got-char\":\"Unexpected non-space characters. Expected end of file.\",\"expected-eof-but-got-start-tag\":\"Unexpected start tag ({name}). Expected end of file.\",\"expected-eof-but-got-end-tag\":\"Unexpected end tag ({name}). Expected end of file.\",\"unexpected-end-table-in-caption\":\"Unexpected end table tag in caption. Generates implied end caption.\",\"end-html-in-innerhtml\":\"Unexpected html end tag in inner html mode.\",\"eof-in-table\":\"Unexpected end of file. Expected table content.\",\"eof-in-script\":\"Unexpected end of file. Expected script content.\",\"non-void-element-with-trailing-solidus\":\"Trailing solidus not allowed on element {name}.\",\"unexpected-html-element-in-foreign-content\":'HTML start tag \"{name}\" in a foreign namespace context.',\"unexpected-start-tag-in-table\":\"Unexpected {name}. Expected table content.\"}},{}],9:[function(e,t,n){function o(){this.contentHandler=null,this._errorHandler=null,this._treeBuilder=new r,this._tokenizer=new i(this._treeBuilder),this._scriptingEnabled=!1}var r=e(\"./SAXTreeBuilder\").SAXTreeBuilder,i=e(\"../Tokenizer\").Tokenizer,s=e(\"./TreeParser\").TreeParser;o.prototype.parse=function(e){this._tokenizer.tokenize(e);var t=this._treeBuilder.document;t&&(new s(this.contentHandler)).parse(t)},o.prototype.parseFragment=function(e,t){this._treeBuilder.setFragmentContext(t),this._tokenizer.tokenize(e);var n=this._treeBuilder.getFragment();n&&(new s(this.contentHandler)).parse(n)},Object.defineProperty(o.prototype,\"scriptingEnabled\",{get:function(){return this._scriptingEnabled},set:function(e){this._scriptingEnabled=e,this._treeBuilder.scriptingEnabled=e}}),Object.defineProperty(o.prototype,\"errorHandler\",{get:function(){return this._errorHandler},set:function(e){this._errorHandler=e,this._treeBuilder.errorHandler=e}}),n.SAXParser=o},{\"../Tokenizer\":5,\"./SAXTreeBuilder\":10,\"./TreeParser\":11}],10:[function(e,t,n){function s(){i.call(this)}function o(e,t){for(var n=0;n<e.attributes.length;n++){var r=e.attributes[n];if(r.nodeName===t)return r.nodeValue}}function a(e){e?(this.columnNumber=e.columnNumber,this.lineNumber=e.lineNumber):(this.columnNumber=-1,this.lineNumber=-1),this.parentNode=null,this.nextSibling=null,this.firstChild=null}function f(e){a.call(this,e),this.lastChild=null,this._endLocator=null}function l(e){f.call(this,e),this.nodeType=u.DOCUMENT}function c(){f.call(this,new Locator),this.nodeType=u.DOCUMENT_FRAGMENT}function h(e,t,n,r,i,s){f.call(this,e),this.uri=t,this.localName=n,this.qName=r,this.attributes=i,this.prefixMappings=s,this.nodeType=u.ELEMENT}function p(e,t){a.call(this,e),this.data=t,this.nodeType=u.CHARACTERS}function d(e,t){a.call(this,e),this.data=t,this.nodeType=u.IGNORABLE_WHITESPACE}function v(e,t){a.call(this,e),this.data=t,this.nodeType=u.COMMENT}function m(e){f.call(this,e),this.nodeType=u.CDATA}function g(e){f.call(this),this.name=e,this.nodeType=u.ENTITY}function y(e){a.call(this),this.name=e,this.nodeType=u.SKIPPED_ENTITY}function b(e,t){a.call(this),this.target=e,this.data=t}function w(e,t,n){f.call(this),this.name=e,this.publicIdentifier=t,this.systemIdentifier=n,this.nodeType=u.DTD}var r=e(\"util\"),i=e(\"../TreeBuilder\").TreeBuilder;r.inherits(s,i),s.prototype.start=function(e){this.document=new l(this.tokenizer)},s.prototype.end=function(){this.document.endLocator=this.tokenizer},s.prototype.insertDoctype=function(e,t,n){var r=new w(this.tokenizer,e,t,n);r.endLocator=this.tokenizer,this.document.appendChild(r)},s.prototype.createElement=function(e,t,n){var r=new h(this.tokenizer,e,t,t,n||[]);return r},s.prototype.insertComment=function(e,t){t||(t=this.currentStackItem());var n=new v(this.tokenizer,e);t.appendChild(n)},s.prototype.appendCharacters=function(e,t){var n=new p(this.tokenizer,t);e.appendChild(n)},s.prototype.insertText=function(e){if(this.redirectAttachToFosterParent&&this.openElements.top.isFosterParenting()){var t=this.openElements.findIndex(\"table\"),n=this.openElements.item(t),r=n.node;if(t===0)return this.appendCharacters(r,e);var i=new p(this.tokenizer,e),s=r.parentNode;if(s){s.insertBetween(i,r.previousSibling,r);return}var o=this.openElements.item(t-1).node;o.appendChild(i);return}this.appendCharacters(this.currentStackItem().node,e)},s.prototype.attachNode=function(e,t){t.appendChild(e)},s.prototype.attachNodeToFosterParent=function(e,t,n){var r=t.parentNode;r?r.insertBetween(e,t.previousSibling,t):n.appendChild(e)},s.prototype.detachFromParent=function(e){e.detach()},s.prototype.reparentChildren=function(e,t){t.appendChildren(e.firstChild)},s.prototype.getFragment=function(){var e=new c;return this.reparentChildren(this.openElements.rootNode,e),e},s.prototype.addAttributesToElement=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];o(e,r.nodeName)||e.attributes.push(r)}};var u={CDATA:1,CHARACTERS:2,COMMENT:3,DOCUMENT:4,DOCUMENT_FRAGMENT:5,DTD:6,ELEMENT:7,ENTITY:8,IGNORABLE_WHITESPACE:9,PROCESSING_INSTRUCTION:10,SKIPPED_ENTITY:11};a.prototype.visit=function(e){throw new Error(\"Not Implemented\")},a.prototype.revisit=function(e){return},a.prototype.detach=function(){this.parentNode!==null&&(this.parentNode.removeChild(this),this.parentNode=null)},Object.defineProperty(a.prototype,\"previousSibling\",{get:function(){var e=null,t=this.parentNode.firstChild;for(;;){if(this==t)return e;e=t,t=t.nextSibling}}}),f.prototype=Object.create(a.prototype),f.prototype.insertBefore=function(e,t){if(!t)return this.appendChild(e);e.detach(),e.parentNode=this;if(this.firstChild==t)e.nextSibling=t,this.firstChild=e;else{var n=this.firstChild,r=this.firstChild.nextSibling;while(r!=t)n=r,r=r.nextSibling;n.nextSibling=e,e.nextSibling=r}return e},f.prototype.insertBetween=function(e,t,n){return n?(e.detach(),e.parentNode=this,e.nextSibling=n,t?t.nextSibling=e:firstChild=e,e):this.appendChild(e)},f.prototype.appendChild=function(e){return e.detach(),e.parentNode=this,this.firstChild?this.lastChild.nextSibling=e:this.firstChild=e,this.lastChild=e,e},f.prototype.appendChildren=function(e){var t=e.firstChild;if(!t)return;var n=e;this.firstChild?this.lastChild.nextSibling=t:this.firstChild=t,this.lastChild=n.lastChild;do t.parentNode=this;while(t=t.nextSibling);n.firstChild=null,n.lastChild=null},f.prototype.removeChild=function(e){if(this.firstChild==e)this.firstChild=e.nextSibling,this.lastChild==e&&(this.lastChild=null);else{var t=this.firstChild,n=this.firstChild.nextSibling;while(n!=e)t=n,n=n.nextSibling;t.nextSibling=e.nextSibling,this.lastChild==e&&(this.lastChild=t)}return e.parentNode=null,e},Object.defineProperty(f.prototype,\"endLocator\",{get:function(){return this._endLocator},set:function(e){this._endLocator={lineNumber:e.lineNumber,columnNumber:e.columnNumber}}}),l.prototype=Object.create(f.prototype),l.prototype.visit=function(e){e.startDocument(this)},l.prototype.revisit=function(e){e.endDocument(this.endLocator)},c.prototype=Object.create(f.prototype),c.prototype.visit=function(e){},h.prototype=Object.create(f.prototype),h.prototype.visit=function(e){if(this.prefixMappings)for(var t in prefixMappings){var n=prefixMappings[t];e.startPrefixMapping(n.getPrefix(),n.getUri(),this)}e.startElement(this.uri,this.localName,this.qName,this.attributes,this)},h.prototype.revisit=function(e){e.endElement(this.uri,this.localName,this.qName,this.endLocator);if(this.prefixMappings)for(var t in prefixMappings){var n=prefixMappings[t];e.endPrefixMapping(n.getPrefix(),this.endLocator)}},p.prototype=Object.create(a.prototype),p.prototype.visit=function(e){e.characters(this.data,0,this.data.length,this)},d.prototype=Object.create(a.prototype),d.prototype.visit=function(e){e.ignorableWhitespace(this.data,0,this.data.length,this)},v.prototype=Object.create(a.prototype),v.prototype.visit=function(e){e.comment(this.data,0,this.data.length,this)},m.prototype=Object.create(f.prototype),m.prototype.visit=function(e){e.startCDATA(this)},m.prototype.revisit=function(e){e.endCDATA(this.endLocator)},g.prototype=Object.create(f.prototype),g.prototype.visit=function(e){e.startEntity(this.name,this)},g.prototype.revisit=function(e){e.endEntity(this.name)},y.prototype=Object.create(a.prototype),y.prototype.visit=function(e){e.skippedEntity(this.name,this)},b.prototype=Object.create(a.prototype),b.prototype.visit=function(e){e.processingInstruction(this.target,this.data,this)},b.prototype.getNodeType=function(){return u.PROCESSING_INSTRUCTION},w.prototype=Object.create(f.prototype),w.prototype.visit=function(e){e.startDTD(this.name,this.publicIdentifier,this.systemIdentifier,this)},w.prototype.revisit=function(e){e.endDTD()},n.SAXTreeBuilder=s},{\"../TreeBuilder\":6,util:20}],11:[function(e,t,n){function r(e,t){this.contentHandler,this.lexicalHandler,this.locatorDelegate;if(!e)throw new IllegalArgumentException(\"contentHandler was null.\");this.contentHandler=e,t?this.lexicalHandler=t:this.lexicalHandler=new i}function i(){}r.prototype.parse=function(e){this.contentHandler.documentLocator=this;var t=e,n;for(;;){t.visit(this);if(n=t.firstChild){t=n;continue}for(;;){t.revisit(this);if(t==e)return;if(n=t.nextSibling){t=n;break}t=t.parentNode}}},r.prototype.characters=function(e,t,n,r){this.locatorDelegate=r,this.contentHandler.characters(e,t,n)},r.prototype.endDocument=function(e){this.locatorDelegate=e,this.contentHandler.endDocument()},r.prototype.endElement=function(e,t,n,r){this.locatorDelegate=r,this.contentHandler.endElement(e,t,n)},r.prototype.endPrefixMapping=function(e,t){this.locatorDelegate=t,this.contentHandler.endPrefixMapping(e)},r.prototype.ignorableWhitespace=function(e,t,n,r){this.locatorDelegate=r,this.contentHandler.ignorableWhitespace(e,t,n)},r.prototype.processingInstruction=function(e,t,n){this.locatorDelegate=n,this.contentHandler.processingInstruction(e,t)},r.prototype.skippedEntity=function(e,t){this.locatorDelegate=t,this.contentHandler.skippedEntity(e)},r.prototype.startDocument=function(e){this.locatorDelegate=e,this.contentHandler.startDocument()},r.prototype.startElement=function(e,t,n,r,i){this.locatorDelegate=i,this.contentHandler.startElement(e,t,n,r)},r.prototype.startPrefixMapping=function(e,t,n){this.locatorDelegate=n,this.contentHandler.startPrefixMapping(e,t)},r.prototype.comment=function(e,t,n,r){this.locatorDelegate=r,this.lexicalHandler.comment(e,t,n)},r.prototype.endCDATA=function(e){this.locatorDelegate=e,this.lexicalHandler.endCDATA()},r.prototype.endDTD=function(e){this.locatorDelegate=e,this.lexicalHandler.endDTD()},r.prototype.endEntity=function(e,t){this.locatorDelegate=t,this.lexicalHandler.endEntity(e)},r.prototype.startCDATA=function(e){this.locatorDelegate=e,this.lexicalHandler.startCDATA()},r.prototype.startDTD=function(e,t,n,r){this.locatorDelegate=r,this.lexicalHandler.startDTD(e,t,n)},r.prototype.startEntity=function(e,t){this.locatorDelegate=t,this.lexicalHandler.startEntity(e)},Object.defineProperty(r.prototype,\"columnNumber\",{get:function(){return this.locatorDelegate?this.locatorDelegate.columnNumber:-1}}),Object.defineProperty(r.prototype,\"lineNumber\",{get:function(){return this.locatorDelegate?this.locatorDelegate.lineNumber:-1}}),i.prototype.comment=function(){},i.prototype.endCDATA=function(){},i.prototype.endDTD=function(){},i.prototype.endEntity=function(){},i.prototype.startCDATA=function(){},i.prototype.startDTD=function(){},i.prototype.startEntity=function(){},n.TreeParser=r},{}],12:[function(e,t,n){t.exports={\"Aacute;\":\"\\u00c1\",Aacute:\"\\u00c1\",\"aacute;\":\"\\u00e1\",aacute:\"\\u00e1\",\"Abreve;\":\"\\u0102\",\"abreve;\":\"\\u0103\",\"ac;\":\"\\u223e\",\"acd;\":\"\\u223f\",\"acE;\":\"\\u223e\\u0333\",\"Acirc;\":\"\\u00c2\",Acirc:\"\\u00c2\",\"acirc;\":\"\\u00e2\",acirc:\"\\u00e2\",\"acute;\":\"\\u00b4\",acute:\"\\u00b4\",\"Acy;\":\"\\u0410\",\"acy;\":\"\\u0430\",\"AElig;\":\"\\u00c6\",AElig:\"\\u00c6\",\"aelig;\":\"\\u00e6\",aelig:\"\\u00e6\",\"af;\":\"\\u2061\",\"Afr;\":\"\\ud835\\udd04\",\"afr;\":\"\\ud835\\udd1e\",\"Agrave;\":\"\\u00c0\",Agrave:\"\\u00c0\",\"agrave;\":\"\\u00e0\",agrave:\"\\u00e0\",\"alefsym;\":\"\\u2135\",\"aleph;\":\"\\u2135\",\"Alpha;\":\"\\u0391\",\"alpha;\":\"\\u03b1\",\"Amacr;\":\"\\u0100\",\"amacr;\":\"\\u0101\",\"amalg;\":\"\\u2a3f\",\"amp;\":\"&\",amp:\"&\",\"AMP;\":\"&\",AMP:\"&\",\"andand;\":\"\\u2a55\",\"And;\":\"\\u2a53\",\"and;\":\"\\u2227\",\"andd;\":\"\\u2a5c\",\"andslope;\":\"\\u2a58\",\"andv;\":\"\\u2a5a\",\"ang;\":\"\\u2220\",\"ange;\":\"\\u29a4\",\"angle;\":\"\\u2220\",\"angmsdaa;\":\"\\u29a8\",\"angmsdab;\":\"\\u29a9\",\"angmsdac;\":\"\\u29aa\",\"angmsdad;\":\"\\u29ab\",\"angmsdae;\":\"\\u29ac\",\"angmsdaf;\":\"\\u29ad\",\"angmsdag;\":\"\\u29ae\",\"angmsdah;\":\"\\u29af\",\"angmsd;\":\"\\u2221\",\"angrt;\":\"\\u221f\",\"angrtvb;\":\"\\u22be\",\"angrtvbd;\":\"\\u299d\",\"angsph;\":\"\\u2222\",\"angst;\":\"\\u00c5\",\"angzarr;\":\"\\u237c\",\"Aogon;\":\"\\u0104\",\"aogon;\":\"\\u0105\",\"Aopf;\":\"\\ud835\\udd38\",\"aopf;\":\"\\ud835\\udd52\",\"apacir;\":\"\\u2a6f\",\"ap;\":\"\\u2248\",\"apE;\":\"\\u2a70\",\"ape;\":\"\\u224a\",\"apid;\":\"\\u224b\",\"apos;\":\"'\",\"ApplyFunction;\":\"\\u2061\",\"approx;\":\"\\u2248\",\"approxeq;\":\"\\u224a\",\"Aring;\":\"\\u00c5\",Aring:\"\\u00c5\",\"aring;\":\"\\u00e5\",aring:\"\\u00e5\",\"Ascr;\":\"\\ud835\\udc9c\",\"ascr;\":\"\\ud835\\udcb6\",\"Assign;\":\"\\u2254\",\"ast;\":\"*\",\"asymp;\":\"\\u2248\",\"asympeq;\":\"\\u224d\",\"Atilde;\":\"\\u00c3\",Atilde:\"\\u00c3\",\"atilde;\":\"\\u00e3\",atilde:\"\\u00e3\",\"Auml;\":\"\\u00c4\",Auml:\"\\u00c4\",\"auml;\":\"\\u00e4\",auml:\"\\u00e4\",\"awconint;\":\"\\u2233\",\"awint;\":\"\\u2a11\",\"backcong;\":\"\\u224c\",\"backepsilon;\":\"\\u03f6\",\"backprime;\":\"\\u2035\",\"backsim;\":\"\\u223d\",\"backsimeq;\":\"\\u22cd\",\"Backslash;\":\"\\u2216\",\"Barv;\":\"\\u2ae7\",\"barvee;\":\"\\u22bd\",\"barwed;\":\"\\u2305\",\"Barwed;\":\"\\u2306\",\"barwedge;\":\"\\u2305\",\"bbrk;\":\"\\u23b5\",\"bbrktbrk;\":\"\\u23b6\",\"bcong;\":\"\\u224c\",\"Bcy;\":\"\\u0411\",\"bcy;\":\"\\u0431\",\"bdquo;\":\"\\u201e\",\"becaus;\":\"\\u2235\",\"because;\":\"\\u2235\",\"Because;\":\"\\u2235\",\"bemptyv;\":\"\\u29b0\",\"bepsi;\":\"\\u03f6\",\"bernou;\":\"\\u212c\",\"Bernoullis;\":\"\\u212c\",\"Beta;\":\"\\u0392\",\"beta;\":\"\\u03b2\",\"beth;\":\"\\u2136\",\"between;\":\"\\u226c\",\"Bfr;\":\"\\ud835\\udd05\",\"bfr;\":\"\\ud835\\udd1f\",\"bigcap;\":\"\\u22c2\",\"bigcirc;\":\"\\u25ef\",\"bigcup;\":\"\\u22c3\",\"bigodot;\":\"\\u2a00\",\"bigoplus;\":\"\\u2a01\",\"bigotimes;\":\"\\u2a02\",\"bigsqcup;\":\"\\u2a06\",\"bigstar;\":\"\\u2605\",\"bigtriangledown;\":\"\\u25bd\",\"bigtriangleup;\":\"\\u25b3\",\"biguplus;\":\"\\u2a04\",\"bigvee;\":\"\\u22c1\",\"bigwedge;\":\"\\u22c0\",\"bkarow;\":\"\\u290d\",\"blacklozenge;\":\"\\u29eb\",\"blacksquare;\":\"\\u25aa\",\"blacktriangle;\":\"\\u25b4\",\"blacktriangledown;\":\"\\u25be\",\"blacktriangleleft;\":\"\\u25c2\",\"blacktriangleright;\":\"\\u25b8\",\"blank;\":\"\\u2423\",\"blk12;\":\"\\u2592\",\"blk14;\":\"\\u2591\",\"blk34;\":\"\\u2593\",\"block;\":\"\\u2588\",\"bne;\":\"=\\u20e5\",\"bnequiv;\":\"\\u2261\\u20e5\",\"bNot;\":\"\\u2aed\",\"bnot;\":\"\\u2310\",\"Bopf;\":\"\\ud835\\udd39\",\"bopf;\":\"\\ud835\\udd53\",\"bot;\":\"\\u22a5\",\"bottom;\":\"\\u22a5\",\"bowtie;\":\"\\u22c8\",\"boxbox;\":\"\\u29c9\",\"boxdl;\":\"\\u2510\",\"boxdL;\":\"\\u2555\",\"boxDl;\":\"\\u2556\",\"boxDL;\":\"\\u2557\",\"boxdr;\":\"\\u250c\",\"boxdR;\":\"\\u2552\",\"boxDr;\":\"\\u2553\",\"boxDR;\":\"\\u2554\",\"boxh;\":\"\\u2500\",\"boxH;\":\"\\u2550\",\"boxhd;\":\"\\u252c\",\"boxHd;\":\"\\u2564\",\"boxhD;\":\"\\u2565\",\"boxHD;\":\"\\u2566\",\"boxhu;\":\"\\u2534\",\"boxHu;\":\"\\u2567\",\"boxhU;\":\"\\u2568\",\"boxHU;\":\"\\u2569\",\"boxminus;\":\"\\u229f\",\"boxplus;\":\"\\u229e\",\"boxtimes;\":\"\\u22a0\",\"boxul;\":\"\\u2518\",\"boxuL;\":\"\\u255b\",\"boxUl;\":\"\\u255c\",\"boxUL;\":\"\\u255d\",\"boxur;\":\"\\u2514\",\"boxuR;\":\"\\u2558\",\"boxUr;\":\"\\u2559\",\"boxUR;\":\"\\u255a\",\"boxv;\":\"\\u2502\",\"boxV;\":\"\\u2551\",\"boxvh;\":\"\\u253c\",\"boxvH;\":\"\\u256a\",\"boxVh;\":\"\\u256b\",\"boxVH;\":\"\\u256c\",\"boxvl;\":\"\\u2524\",\"boxvL;\":\"\\u2561\",\"boxVl;\":\"\\u2562\",\"boxVL;\":\"\\u2563\",\"boxvr;\":\"\\u251c\",\"boxvR;\":\"\\u255e\",\"boxVr;\":\"\\u255f\",\"boxVR;\":\"\\u2560\",\"bprime;\":\"\\u2035\",\"breve;\":\"\\u02d8\",\"Breve;\":\"\\u02d8\",\"brvbar;\":\"\\u00a6\",brvbar:\"\\u00a6\",\"bscr;\":\"\\ud835\\udcb7\",\"Bscr;\":\"\\u212c\",\"bsemi;\":\"\\u204f\",\"bsim;\":\"\\u223d\",\"bsime;\":\"\\u22cd\",\"bsolb;\":\"\\u29c5\",\"bsol;\":\"\\\\\",\"bsolhsub;\":\"\\u27c8\",\"bull;\":\"\\u2022\",\"bullet;\":\"\\u2022\",\"bump;\":\"\\u224e\",\"bumpE;\":\"\\u2aae\",\"bumpe;\":\"\\u224f\",\"Bumpeq;\":\"\\u224e\",\"bumpeq;\":\"\\u224f\",\"Cacute;\":\"\\u0106\",\"cacute;\":\"\\u0107\",\"capand;\":\"\\u2a44\",\"capbrcup;\":\"\\u2a49\",\"capcap;\":\"\\u2a4b\",\"cap;\":\"\\u2229\",\"Cap;\":\"\\u22d2\",\"capcup;\":\"\\u2a47\",\"capdot;\":\"\\u2a40\",\"CapitalDifferentialD;\":\"\\u2145\",\"caps;\":\"\\u2229\\ufe00\",\"caret;\":\"\\u2041\",\"caron;\":\"\\u02c7\",\"Cayleys;\":\"\\u212d\",\"ccaps;\":\"\\u2a4d\",\"Ccaron;\":\"\\u010c\",\"ccaron;\":\"\\u010d\",\"Ccedil;\":\"\\u00c7\",Ccedil:\"\\u00c7\",\"ccedil;\":\"\\u00e7\",ccedil:\"\\u00e7\",\"Ccirc;\":\"\\u0108\",\"ccirc;\":\"\\u0109\",\"Cconint;\":\"\\u2230\",\"ccups;\":\"\\u2a4c\",\"ccupssm;\":\"\\u2a50\",\"Cdot;\":\"\\u010a\",\"cdot;\":\"\\u010b\",\"cedil;\":\"\\u00b8\",cedil:\"\\u00b8\",\"Cedilla;\":\"\\u00b8\",\"cemptyv;\":\"\\u29b2\",\"cent;\":\"\\u00a2\",cent:\"\\u00a2\",\"centerdot;\":\"\\u00b7\",\"CenterDot;\":\"\\u00b7\",\"cfr;\":\"\\ud835\\udd20\",\"Cfr;\":\"\\u212d\",\"CHcy;\":\"\\u0427\",\"chcy;\":\"\\u0447\",\"check;\":\"\\u2713\",\"checkmark;\":\"\\u2713\",\"Chi;\":\"\\u03a7\",\"chi;\":\"\\u03c7\",\"circ;\":\"\\u02c6\",\"circeq;\":\"\\u2257\",\"circlearrowleft;\":\"\\u21ba\",\"circlearrowright;\":\"\\u21bb\",\"circledast;\":\"\\u229b\",\"circledcirc;\":\"\\u229a\",\"circleddash;\":\"\\u229d\",\"CircleDot;\":\"\\u2299\",\"circledR;\":\"\\u00ae\",\"circledS;\":\"\\u24c8\",\"CircleMinus;\":\"\\u2296\",\"CirclePlus;\":\"\\u2295\",\"CircleTimes;\":\"\\u2297\",\"cir;\":\"\\u25cb\",\"cirE;\":\"\\u29c3\",\"cire;\":\"\\u2257\",\"cirfnint;\":\"\\u2a10\",\"cirmid;\":\"\\u2aef\",\"cirscir;\":\"\\u29c2\",\"ClockwiseContourIntegral;\":\"\\u2232\",\"CloseCurlyDoubleQuote;\":\"\\u201d\",\"CloseCurlyQuote;\":\"\\u2019\",\"clubs;\":\"\\u2663\",\"clubsuit;\":\"\\u2663\",\"colon;\":\":\",\"Colon;\":\"\\u2237\",\"Colone;\":\"\\u2a74\",\"colone;\":\"\\u2254\",\"coloneq;\":\"\\u2254\",\"comma;\":\",\",\"commat;\":\"@\",\"comp;\":\"\\u2201\",\"compfn;\":\"\\u2218\",\"complement;\":\"\\u2201\",\"complexes;\":\"\\u2102\",\"cong;\":\"\\u2245\",\"congdot;\":\"\\u2a6d\",\"Congruent;\":\"\\u2261\",\"conint;\":\"\\u222e\",\"Conint;\":\"\\u222f\",\"ContourIntegral;\":\"\\u222e\",\"copf;\":\"\\ud835\\udd54\",\"Copf;\":\"\\u2102\",\"coprod;\":\"\\u2210\",\"Coproduct;\":\"\\u2210\",\"copy;\":\"\\u00a9\",copy:\"\\u00a9\",\"COPY;\":\"\\u00a9\",COPY:\"\\u00a9\",\"copysr;\":\"\\u2117\",\"CounterClockwiseContourIntegral;\":\"\\u2233\",\"crarr;\":\"\\u21b5\",\"cross;\":\"\\u2717\",\"Cross;\":\"\\u2a2f\",\"Cscr;\":\"\\ud835\\udc9e\",\"cscr;\":\"\\ud835\\udcb8\",\"csub;\":\"\\u2acf\",\"csube;\":\"\\u2ad1\",\"csup;\":\"\\u2ad0\",\"csupe;\":\"\\u2ad2\",\"ctdot;\":\"\\u22ef\",\"cudarrl;\":\"\\u2938\",\"cudarrr;\":\"\\u2935\",\"cuepr;\":\"\\u22de\",\"cuesc;\":\"\\u22df\",\"cularr;\":\"\\u21b6\",\"cularrp;\":\"\\u293d\",\"cupbrcap;\":\"\\u2a48\",\"cupcap;\":\"\\u2a46\",\"CupCap;\":\"\\u224d\",\"cup;\":\"\\u222a\",\"Cup;\":\"\\u22d3\",\"cupcup;\":\"\\u2a4a\",\"cupdot;\":\"\\u228d\",\"cupor;\":\"\\u2a45\",\"cups;\":\"\\u222a\\ufe00\",\"curarr;\":\"\\u21b7\",\"curarrm;\":\"\\u293c\",\"curlyeqprec;\":\"\\u22de\",\"curlyeqsucc;\":\"\\u22df\",\"curlyvee;\":\"\\u22ce\",\"curlywedge;\":\"\\u22cf\",\"curren;\":\"\\u00a4\",curren:\"\\u00a4\",\"curvearrowleft;\":\"\\u21b6\",\"curvearrowright;\":\"\\u21b7\",\"cuvee;\":\"\\u22ce\",\"cuwed;\":\"\\u22cf\",\"cwconint;\":\"\\u2232\",\"cwint;\":\"\\u2231\",\"cylcty;\":\"\\u232d\",\"dagger;\":\"\\u2020\",\"Dagger;\":\"\\u2021\",\"daleth;\":\"\\u2138\",\"darr;\":\"\\u2193\",\"Darr;\":\"\\u21a1\",\"dArr;\":\"\\u21d3\",\"dash;\":\"\\u2010\",\"Dashv;\":\"\\u2ae4\",\"dashv;\":\"\\u22a3\",\"dbkarow;\":\"\\u290f\",\"dblac;\":\"\\u02dd\",\"Dcaron;\":\"\\u010e\",\"dcaron;\":\"\\u010f\",\"Dcy;\":\"\\u0414\",\"dcy;\":\"\\u0434\",\"ddagger;\":\"\\u2021\",\"ddarr;\":\"\\u21ca\",\"DD;\":\"\\u2145\",\"dd;\":\"\\u2146\",\"DDotrahd;\":\"\\u2911\",\"ddotseq;\":\"\\u2a77\",\"deg;\":\"\\u00b0\",deg:\"\\u00b0\",\"Del;\":\"\\u2207\",\"Delta;\":\"\\u0394\",\"delta;\":\"\\u03b4\",\"demptyv;\":\"\\u29b1\",\"dfisht;\":\"\\u297f\",\"Dfr;\":\"\\ud835\\udd07\",\"dfr;\":\"\\ud835\\udd21\",\"dHar;\":\"\\u2965\",\"dharl;\":\"\\u21c3\",\"dharr;\":\"\\u21c2\",\"DiacriticalAcute;\":\"\\u00b4\",\"DiacriticalDot;\":\"\\u02d9\",\"DiacriticalDoubleAcute;\":\"\\u02dd\",\"DiacriticalGrave;\":\"`\",\"DiacriticalTilde;\":\"\\u02dc\",\"diam;\":\"\\u22c4\",\"diamond;\":\"\\u22c4\",\"Diamond;\":\"\\u22c4\",\"diamondsuit;\":\"\\u2666\",\"diams;\":\"\\u2666\",\"die;\":\"\\u00a8\",\"DifferentialD;\":\"\\u2146\",\"digamma;\":\"\\u03dd\",\"disin;\":\"\\u22f2\",\"div;\":\"\\u00f7\",\"divide;\":\"\\u00f7\",divide:\"\\u00f7\",\"divideontimes;\":\"\\u22c7\",\"divonx;\":\"\\u22c7\",\"DJcy;\":\"\\u0402\",\"djcy;\":\"\\u0452\",\"dlcorn;\":\"\\u231e\",\"dlcrop;\":\"\\u230d\",\"dollar;\":\"$\",\"Dopf;\":\"\\ud835\\udd3b\",\"dopf;\":\"\\ud835\\udd55\",\"Dot;\":\"\\u00a8\",\"dot;\":\"\\u02d9\",\"DotDot;\":\"\\u20dc\",\"doteq;\":\"\\u2250\",\"doteqdot;\":\"\\u2251\",\"DotEqual;\":\"\\u2250\",\"dotminus;\":\"\\u2238\",\"dotplus;\":\"\\u2214\",\"dotsquare;\":\"\\u22a1\",\"doublebarwedge;\":\"\\u2306\",\"DoubleContourIntegral;\":\"\\u222f\",\"DoubleDot;\":\"\\u00a8\",\"DoubleDownArrow;\":\"\\u21d3\",\"DoubleLeftArrow;\":\"\\u21d0\",\"DoubleLeftRightArrow;\":\"\\u21d4\",\"DoubleLeftTee;\":\"\\u2ae4\",\"DoubleLongLeftArrow;\":\"\\u27f8\",\"DoubleLongLeftRightArrow;\":\"\\u27fa\",\"DoubleLongRightArrow;\":\"\\u27f9\",\"DoubleRightArrow;\":\"\\u21d2\",\"DoubleRightTee;\":\"\\u22a8\",\"DoubleUpArrow;\":\"\\u21d1\",\"DoubleUpDownArrow;\":\"\\u21d5\",\"DoubleVerticalBar;\":\"\\u2225\",\"DownArrowBar;\":\"\\u2913\",\"downarrow;\":\"\\u2193\",\"DownArrow;\":\"\\u2193\",\"Downarrow;\":\"\\u21d3\",\"DownArrowUpArrow;\":\"\\u21f5\",\"DownBreve;\":\"\\u0311\",\"downdownarrows;\":\"\\u21ca\",\"downharpoonleft;\":\"\\u21c3\",\"downharpoonright;\":\"\\u21c2\",\"DownLeftRightVector;\":\"\\u2950\",\"DownLeftTeeVector;\":\"\\u295e\",\"DownLeftVectorBar;\":\"\\u2956\",\"DownLeftVector;\":\"\\u21bd\",\"DownRightTeeVector;\":\"\\u295f\",\"DownRightVectorBar;\":\"\\u2957\",\"DownRightVector;\":\"\\u21c1\",\"DownTeeArrow;\":\"\\u21a7\",\"DownTee;\":\"\\u22a4\",\"drbkarow;\":\"\\u2910\",\"drcorn;\":\"\\u231f\",\"drcrop;\":\"\\u230c\",\"Dscr;\":\"\\ud835\\udc9f\",\"dscr;\":\"\\ud835\\udcb9\",\"DScy;\":\"\\u0405\",\"dscy;\":\"\\u0455\",\"dsol;\":\"\\u29f6\",\"Dstrok;\":\"\\u0110\",\"dstrok;\":\"\\u0111\",\"dtdot;\":\"\\u22f1\",\"dtri;\":\"\\u25bf\",\"dtrif;\":\"\\u25be\",\"duarr;\":\"\\u21f5\",\"duhar;\":\"\\u296f\",\"dwangle;\":\"\\u29a6\",\"DZcy;\":\"\\u040f\",\"dzcy;\":\"\\u045f\",\"dzigrarr;\":\"\\u27ff\",\"Eacute;\":\"\\u00c9\",Eacute:\"\\u00c9\",\"eacute;\":\"\\u00e9\",eacute:\"\\u00e9\",\"easter;\":\"\\u2a6e\",\"Ecaron;\":\"\\u011a\",\"ecaron;\":\"\\u011b\",\"Ecirc;\":\"\\u00ca\",Ecirc:\"\\u00ca\",\"ecirc;\":\"\\u00ea\",ecirc:\"\\u00ea\",\"ecir;\":\"\\u2256\",\"ecolon;\":\"\\u2255\",\"Ecy;\":\"\\u042d\",\"ecy;\":\"\\u044d\",\"eDDot;\":\"\\u2a77\",\"Edot;\":\"\\u0116\",\"edot;\":\"\\u0117\",\"eDot;\":\"\\u2251\",\"ee;\":\"\\u2147\",\"efDot;\":\"\\u2252\",\"Efr;\":\"\\ud835\\udd08\",\"efr;\":\"\\ud835\\udd22\",\"eg;\":\"\\u2a9a\",\"Egrave;\":\"\\u00c8\",Egrave:\"\\u00c8\",\"egrave;\":\"\\u00e8\",egrave:\"\\u00e8\",\"egs;\":\"\\u2a96\",\"egsdot;\":\"\\u2a98\",\"el;\":\"\\u2a99\",\"Element;\":\"\\u2208\",\"elinters;\":\"\\u23e7\",\"ell;\":\"\\u2113\",\"els;\":\"\\u2a95\",\"elsdot;\":\"\\u2a97\",\"Emacr;\":\"\\u0112\",\"emacr;\":\"\\u0113\",\"empty;\":\"\\u2205\",\"emptyset;\":\"\\u2205\",\"EmptySmallSquare;\":\"\\u25fb\",\"emptyv;\":\"\\u2205\",\"EmptyVerySmallSquare;\":\"\\u25ab\",\"emsp13;\":\"\\u2004\",\"emsp14;\":\"\\u2005\",\"emsp;\":\"\\u2003\",\"ENG;\":\"\\u014a\",\"eng;\":\"\\u014b\",\"ensp;\":\"\\u2002\",\"Eogon;\":\"\\u0118\",\"eogon;\":\"\\u0119\",\"Eopf;\":\"\\ud835\\udd3c\",\"eopf;\":\"\\ud835\\udd56\",\"epar;\":\"\\u22d5\",\"eparsl;\":\"\\u29e3\",\"eplus;\":\"\\u2a71\",\"epsi;\":\"\\u03b5\",\"Epsilon;\":\"\\u0395\",\"epsilon;\":\"\\u03b5\",\"epsiv;\":\"\\u03f5\",\"eqcirc;\":\"\\u2256\",\"eqcolon;\":\"\\u2255\",\"eqsim;\":\"\\u2242\",\"eqslantgtr;\":\"\\u2a96\",\"eqslantless;\":\"\\u2a95\",\"Equal;\":\"\\u2a75\",\"equals;\":\"=\",\"EqualTilde;\":\"\\u2242\",\"equest;\":\"\\u225f\",\"Equilibrium;\":\"\\u21cc\",\"equiv;\":\"\\u2261\",\"equivDD;\":\"\\u2a78\",\"eqvparsl;\":\"\\u29e5\",\"erarr;\":\"\\u2971\",\"erDot;\":\"\\u2253\",\"escr;\":\"\\u212f\",\"Escr;\":\"\\u2130\",\"esdot;\":\"\\u2250\",\"Esim;\":\"\\u2a73\",\"esim;\":\"\\u2242\",\"Eta;\":\"\\u0397\",\"eta;\":\"\\u03b7\",\"ETH;\":\"\\u00d0\",ETH:\"\\u00d0\",\"eth;\":\"\\u00f0\",eth:\"\\u00f0\",\"Euml;\":\"\\u00cb\",Euml:\"\\u00cb\",\"euml;\":\"\\u00eb\",euml:\"\\u00eb\",\"euro;\":\"\\u20ac\",\"excl;\":\"!\",\"exist;\":\"\\u2203\",\"Exists;\":\"\\u2203\",\"expectation;\":\"\\u2130\",\"exponentiale;\":\"\\u2147\",\"ExponentialE;\":\"\\u2147\",\"fallingdotseq;\":\"\\u2252\",\"Fcy;\":\"\\u0424\",\"fcy;\":\"\\u0444\",\"female;\":\"\\u2640\",\"ffilig;\":\"\\ufb03\",\"fflig;\":\"\\ufb00\",\"ffllig;\":\"\\ufb04\",\"Ffr;\":\"\\ud835\\udd09\",\"ffr;\":\"\\ud835\\udd23\",\"filig;\":\"\\ufb01\",\"FilledSmallSquare;\":\"\\u25fc\",\"FilledVerySmallSquare;\":\"\\u25aa\",\"fjlig;\":\"fj\",\"flat;\":\"\\u266d\",\"fllig;\":\"\\ufb02\",\"fltns;\":\"\\u25b1\",\"fnof;\":\"\\u0192\",\"Fopf;\":\"\\ud835\\udd3d\",\"fopf;\":\"\\ud835\\udd57\",\"forall;\":\"\\u2200\",\"ForAll;\":\"\\u2200\",\"fork;\":\"\\u22d4\",\"forkv;\":\"\\u2ad9\",\"Fouriertrf;\":\"\\u2131\",\"fpartint;\":\"\\u2a0d\",\"frac12;\":\"\\u00bd\",frac12:\"\\u00bd\",\"frac13;\":\"\\u2153\",\"frac14;\":\"\\u00bc\",frac14:\"\\u00bc\",\"frac15;\":\"\\u2155\",\"frac16;\":\"\\u2159\",\"frac18;\":\"\\u215b\",\"frac23;\":\"\\u2154\",\"frac25;\":\"\\u2156\",\"frac34;\":\"\\u00be\",frac34:\"\\u00be\",\"frac35;\":\"\\u2157\",\"frac38;\":\"\\u215c\",\"frac45;\":\"\\u2158\",\"frac56;\":\"\\u215a\",\"frac58;\":\"\\u215d\",\"frac78;\":\"\\u215e\",\"frasl;\":\"\\u2044\",\"frown;\":\"\\u2322\",\"fscr;\":\"\\ud835\\udcbb\",\"Fscr;\":\"\\u2131\",\"gacute;\":\"\\u01f5\",\"Gamma;\":\"\\u0393\",\"gamma;\":\"\\u03b3\",\"Gammad;\":\"\\u03dc\",\"gammad;\":\"\\u03dd\",\"gap;\":\"\\u2a86\",\"Gbreve;\":\"\\u011e\",\"gbreve;\":\"\\u011f\",\"Gcedil;\":\"\\u0122\",\"Gcirc;\":\"\\u011c\",\"gcirc;\":\"\\u011d\",\"Gcy;\":\"\\u0413\",\"gcy;\":\"\\u0433\",\"Gdot;\":\"\\u0120\",\"gdot;\":\"\\u0121\",\"ge;\":\"\\u2265\",\"gE;\":\"\\u2267\",\"gEl;\":\"\\u2a8c\",\"gel;\":\"\\u22db\",\"geq;\":\"\\u2265\",\"geqq;\":\"\\u2267\",\"geqslant;\":\"\\u2a7e\",\"gescc;\":\"\\u2aa9\",\"ges;\":\"\\u2a7e\",\"gesdot;\":\"\\u2a80\",\"gesdoto;\":\"\\u2a82\",\"gesdotol;\":\"\\u2a84\",\"gesl;\":\"\\u22db\\ufe00\",\"gesles;\":\"\\u2a94\",\"Gfr;\":\"\\ud835\\udd0a\",\"gfr;\":\"\\ud835\\udd24\",\"gg;\":\"\\u226b\",\"Gg;\":\"\\u22d9\",\"ggg;\":\"\\u22d9\",\"gimel;\":\"\\u2137\",\"GJcy;\":\"\\u0403\",\"gjcy;\":\"\\u0453\",\"gla;\":\"\\u2aa5\",\"gl;\":\"\\u2277\",\"glE;\":\"\\u2a92\",\"glj;\":\"\\u2aa4\",\"gnap;\":\"\\u2a8a\",\"gnapprox;\":\"\\u2a8a\",\"gne;\":\"\\u2a88\",\"gnE;\":\"\\u2269\",\"gneq;\":\"\\u2a88\",\"gneqq;\":\"\\u2269\",\"gnsim;\":\"\\u22e7\",\"Gopf;\":\"\\ud835\\udd3e\",\"gopf;\":\"\\ud835\\udd58\",\"grave;\":\"`\",\"GreaterEqual;\":\"\\u2265\",\"GreaterEqualLess;\":\"\\u22db\",\"GreaterFullEqual;\":\"\\u2267\",\"GreaterGreater;\":\"\\u2aa2\",\"GreaterLess;\":\"\\u2277\",\"GreaterSlantEqual;\":\"\\u2a7e\",\"GreaterTilde;\":\"\\u2273\",\"Gscr;\":\"\\ud835\\udca2\",\"gscr;\":\"\\u210a\",\"gsim;\":\"\\u2273\",\"gsime;\":\"\\u2a8e\",\"gsiml;\":\"\\u2a90\",\"gtcc;\":\"\\u2aa7\",\"gtcir;\":\"\\u2a7a\",\"gt;\":\">\",gt:\">\",\"GT;\":\">\",GT:\">\",\"Gt;\":\"\\u226b\",\"gtdot;\":\"\\u22d7\",\"gtlPar;\":\"\\u2995\",\"gtquest;\":\"\\u2a7c\",\"gtrapprox;\":\"\\u2a86\",\"gtrarr;\":\"\\u2978\",\"gtrdot;\":\"\\u22d7\",\"gtreqless;\":\"\\u22db\",\"gtreqqless;\":\"\\u2a8c\",\"gtrless;\":\"\\u2277\",\"gtrsim;\":\"\\u2273\",\"gvertneqq;\":\"\\u2269\\ufe00\",\"gvnE;\":\"\\u2269\\ufe00\",\"Hacek;\":\"\\u02c7\",\"hairsp;\":\"\\u200a\",\"half;\":\"\\u00bd\",\"hamilt;\":\"\\u210b\",\"HARDcy;\":\"\\u042a\",\"hardcy;\":\"\\u044a\",\"harrcir;\":\"\\u2948\",\"harr;\":\"\\u2194\",\"hArr;\":\"\\u21d4\",\"harrw;\":\"\\u21ad\",\"Hat;\":\"^\",\"hbar;\":\"\\u210f\",\"Hcirc;\":\"\\u0124\",\"hcirc;\":\"\\u0125\",\"hearts;\":\"\\u2665\",\"heartsuit;\":\"\\u2665\",\"hellip;\":\"\\u2026\",\"hercon;\":\"\\u22b9\",\"hfr;\":\"\\ud835\\udd25\",\"Hfr;\":\"\\u210c\",\"HilbertSpace;\":\"\\u210b\",\"hksearow;\":\"\\u2925\",\"hkswarow;\":\"\\u2926\",\"hoarr;\":\"\\u21ff\",\"homtht;\":\"\\u223b\",\"hookleftarrow;\":\"\\u21a9\",\"hookrightarrow;\":\"\\u21aa\",\"hopf;\":\"\\ud835\\udd59\",\"Hopf;\":\"\\u210d\",\"horbar;\":\"\\u2015\",\"HorizontalLine;\":\"\\u2500\",\"hscr;\":\"\\ud835\\udcbd\",\"Hscr;\":\"\\u210b\",\"hslash;\":\"\\u210f\",\"Hstrok;\":\"\\u0126\",\"hstrok;\":\"\\u0127\",\"HumpDownHump;\":\"\\u224e\",\"HumpEqual;\":\"\\u224f\",\"hybull;\":\"\\u2043\",\"hyphen;\":\"\\u2010\",\"Iacute;\":\"\\u00cd\",Iacute:\"\\u00cd\",\"iacute;\":\"\\u00ed\",iacute:\"\\u00ed\",\"ic;\":\"\\u2063\",\"Icirc;\":\"\\u00ce\",Icirc:\"\\u00ce\",\"icirc;\":\"\\u00ee\",icirc:\"\\u00ee\",\"Icy;\":\"\\u0418\",\"icy;\":\"\\u0438\",\"Idot;\":\"\\u0130\",\"IEcy;\":\"\\u0415\",\"iecy;\":\"\\u0435\",\"iexcl;\":\"\\u00a1\",iexcl:\"\\u00a1\",\"iff;\":\"\\u21d4\",\"ifr;\":\"\\ud835\\udd26\",\"Ifr;\":\"\\u2111\",\"Igrave;\":\"\\u00cc\",Igrave:\"\\u00cc\",\"igrave;\":\"\\u00ec\",igrave:\"\\u00ec\",\"ii;\":\"\\u2148\",\"iiiint;\":\"\\u2a0c\",\"iiint;\":\"\\u222d\",\"iinfin;\":\"\\u29dc\",\"iiota;\":\"\\u2129\",\"IJlig;\":\"\\u0132\",\"ijlig;\":\"\\u0133\",\"Imacr;\":\"\\u012a\",\"imacr;\":\"\\u012b\",\"image;\":\"\\u2111\",\"ImaginaryI;\":\"\\u2148\",\"imagline;\":\"\\u2110\",\"imagpart;\":\"\\u2111\",\"imath;\":\"\\u0131\",\"Im;\":\"\\u2111\",\"imof;\":\"\\u22b7\",\"imped;\":\"\\u01b5\",\"Implies;\":\"\\u21d2\",\"incare;\":\"\\u2105\",\"in;\":\"\\u2208\",\"infin;\":\"\\u221e\",\"infintie;\":\"\\u29dd\",\"inodot;\":\"\\u0131\",\"intcal;\":\"\\u22ba\",\"int;\":\"\\u222b\",\"Int;\":\"\\u222c\",\"integers;\":\"\\u2124\",\"Integral;\":\"\\u222b\",\"intercal;\":\"\\u22ba\",\"Intersection;\":\"\\u22c2\",\"intlarhk;\":\"\\u2a17\",\"intprod;\":\"\\u2a3c\",\"InvisibleComma;\":\"\\u2063\",\"InvisibleTimes;\":\"\\u2062\",\"IOcy;\":\"\\u0401\",\"iocy;\":\"\\u0451\",\"Iogon;\":\"\\u012e\",\"iogon;\":\"\\u012f\",\"Iopf;\":\"\\ud835\\udd40\",\"iopf;\":\"\\ud835\\udd5a\",\"Iota;\":\"\\u0399\",\"iota;\":\"\\u03b9\",\"iprod;\":\"\\u2a3c\",\"iquest;\":\"\\u00bf\",iquest:\"\\u00bf\",\"iscr;\":\"\\ud835\\udcbe\",\"Iscr;\":\"\\u2110\",\"isin;\":\"\\u2208\",\"isindot;\":\"\\u22f5\",\"isinE;\":\"\\u22f9\",\"isins;\":\"\\u22f4\",\"isinsv;\":\"\\u22f3\",\"isinv;\":\"\\u2208\",\"it;\":\"\\u2062\",\"Itilde;\":\"\\u0128\",\"itilde;\":\"\\u0129\",\"Iukcy;\":\"\\u0406\",\"iukcy;\":\"\\u0456\",\"Iuml;\":\"\\u00cf\",Iuml:\"\\u00cf\",\"iuml;\":\"\\u00ef\",iuml:\"\\u00ef\",\"Jcirc;\":\"\\u0134\",\"jcirc;\":\"\\u0135\",\"Jcy;\":\"\\u0419\",\"jcy;\":\"\\u0439\",\"Jfr;\":\"\\ud835\\udd0d\",\"jfr;\":\"\\ud835\\udd27\",\"jmath;\":\"\\u0237\",\"Jopf;\":\"\\ud835\\udd41\",\"jopf;\":\"\\ud835\\udd5b\",\"Jscr;\":\"\\ud835\\udca5\",\"jscr;\":\"\\ud835\\udcbf\",\"Jsercy;\":\"\\u0408\",\"jsercy;\":\"\\u0458\",\"Jukcy;\":\"\\u0404\",\"jukcy;\":\"\\u0454\",\"Kappa;\":\"\\u039a\",\"kappa;\":\"\\u03ba\",\"kappav;\":\"\\u03f0\",\"Kcedil;\":\"\\u0136\",\"kcedil;\":\"\\u0137\",\"Kcy;\":\"\\u041a\",\"kcy;\":\"\\u043a\",\"Kfr;\":\"\\ud835\\udd0e\",\"kfr;\":\"\\ud835\\udd28\",\"kgreen;\":\"\\u0138\",\"KHcy;\":\"\\u0425\",\"khcy;\":\"\\u0445\",\"KJcy;\":\"\\u040c\",\"kjcy;\":\"\\u045c\",\"Kopf;\":\"\\ud835\\udd42\",\"kopf;\":\"\\ud835\\udd5c\",\"Kscr;\":\"\\ud835\\udca6\",\"kscr;\":\"\\ud835\\udcc0\",\"lAarr;\":\"\\u21da\",\"Lacute;\":\"\\u0139\",\"lacute;\":\"\\u013a\",\"laemptyv;\":\"\\u29b4\",\"lagran;\":\"\\u2112\",\"Lambda;\":\"\\u039b\",\"lambda;\":\"\\u03bb\",\"lang;\":\"\\u27e8\",\"Lang;\":\"\\u27ea\",\"langd;\":\"\\u2991\",\"langle;\":\"\\u27e8\",\"lap;\":\"\\u2a85\",\"Laplacetrf;\":\"\\u2112\",\"laquo;\":\"\\u00ab\",laquo:\"\\u00ab\",\"larrb;\":\"\\u21e4\",\"larrbfs;\":\"\\u291f\",\"larr;\":\"\\u2190\",\"Larr;\":\"\\u219e\",\"lArr;\":\"\\u21d0\",\"larrfs;\":\"\\u291d\",\"larrhk;\":\"\\u21a9\",\"larrlp;\":\"\\u21ab\",\"larrpl;\":\"\\u2939\",\"larrsim;\":\"\\u2973\",\"larrtl;\":\"\\u21a2\",\"latail;\":\"\\u2919\",\"lAtail;\":\"\\u291b\",\"lat;\":\"\\u2aab\",\"late;\":\"\\u2aad\",\"lates;\":\"\\u2aad\\ufe00\",\"lbarr;\":\"\\u290c\",\"lBarr;\":\"\\u290e\",\"lbbrk;\":\"\\u2772\",\"lbrace;\":\"{\",\"lbrack;\":\"[\",\"lbrke;\":\"\\u298b\",\"lbrksld;\":\"\\u298f\",\"lbrkslu;\":\"\\u298d\",\"Lcaron;\":\"\\u013d\",\"lcaron;\":\"\\u013e\",\"Lcedil;\":\"\\u013b\",\"lcedil;\":\"\\u013c\",\"lceil;\":\"\\u2308\",\"lcub;\":\"{\",\"Lcy;\":\"\\u041b\",\"lcy;\":\"\\u043b\",\"ldca;\":\"\\u2936\",\"ldquo;\":\"\\u201c\",\"ldquor;\":\"\\u201e\",\"ldrdhar;\":\"\\u2967\",\"ldrushar;\":\"\\u294b\",\"ldsh;\":\"\\u21b2\",\"le;\":\"\\u2264\",\"lE;\":\"\\u2266\",\"LeftAngleBracket;\":\"\\u27e8\",\"LeftArrowBar;\":\"\\u21e4\",\"leftarrow;\":\"\\u2190\",\"LeftArrow;\":\"\\u2190\",\"Leftarrow;\":\"\\u21d0\",\"LeftArrowRightArrow;\":\"\\u21c6\",\"leftarrowtail;\":\"\\u21a2\",\"LeftCeiling;\":\"\\u2308\",\"LeftDoubleBracket;\":\"\\u27e6\",\"LeftDownTeeVector;\":\"\\u2961\",\"LeftDownVectorBar;\":\"\\u2959\",\"LeftDownVector;\":\"\\u21c3\",\"LeftFloor;\":\"\\u230a\",\"leftharpoondown;\":\"\\u21bd\",\"leftharpoonup;\":\"\\u21bc\",\"leftleftarrows;\":\"\\u21c7\",\"leftrightarrow;\":\"\\u2194\",\"LeftRightArrow;\":\"\\u2194\",\"Leftrightarrow;\":\"\\u21d4\",\"leftrightarrows;\":\"\\u21c6\",\"leftrightharpoons;\":\"\\u21cb\",\"leftrightsquigarrow;\":\"\\u21ad\",\"LeftRightVector;\":\"\\u294e\",\"LeftTeeArrow;\":\"\\u21a4\",\"LeftTee;\":\"\\u22a3\",\"LeftTeeVector;\":\"\\u295a\",\"leftthreetimes;\":\"\\u22cb\",\"LeftTriangleBar;\":\"\\u29cf\",\"LeftTriangle;\":\"\\u22b2\",\"LeftTriangleEqual;\":\"\\u22b4\",\"LeftUpDownVector;\":\"\\u2951\",\"LeftUpTeeVector;\":\"\\u2960\",\"LeftUpVectorBar;\":\"\\u2958\",\"LeftUpVector;\":\"\\u21bf\",\"LeftVectorBar;\":\"\\u2952\",\"LeftVector;\":\"\\u21bc\",\"lEg;\":\"\\u2a8b\",\"leg;\":\"\\u22da\",\"leq;\":\"\\u2264\",\"leqq;\":\"\\u2266\",\"leqslant;\":\"\\u2a7d\",\"lescc;\":\"\\u2aa8\",\"les;\":\"\\u2a7d\",\"lesdot;\":\"\\u2a7f\",\"lesdoto;\":\"\\u2a81\",\"lesdotor;\":\"\\u2a83\",\"lesg;\":\"\\u22da\\ufe00\",\"lesges;\":\"\\u2a93\",\"lessapprox;\":\"\\u2a85\",\"lessdot;\":\"\\u22d6\",\"lesseqgtr;\":\"\\u22da\",\"lesseqqgtr;\":\"\\u2a8b\",\"LessEqualGreater;\":\"\\u22da\",\"LessFullEqual;\":\"\\u2266\",\"LessGreater;\":\"\\u2276\",\"lessgtr;\":\"\\u2276\",\"LessLess;\":\"\\u2aa1\",\"lesssim;\":\"\\u2272\",\"LessSlantEqual;\":\"\\u2a7d\",\"LessTilde;\":\"\\u2272\",\"lfisht;\":\"\\u297c\",\"lfloor;\":\"\\u230a\",\"Lfr;\":\"\\ud835\\udd0f\",\"lfr;\":\"\\ud835\\udd29\",\"lg;\":\"\\u2276\",\"lgE;\":\"\\u2a91\",\"lHar;\":\"\\u2962\",\"lhard;\":\"\\u21bd\",\"lharu;\":\"\\u21bc\",\"lharul;\":\"\\u296a\",\"lhblk;\":\"\\u2584\",\"LJcy;\":\"\\u0409\",\"ljcy;\":\"\\u0459\",\"llarr;\":\"\\u21c7\",\"ll;\":\"\\u226a\",\"Ll;\":\"\\u22d8\",\"llcorner;\":\"\\u231e\",\"Lleftarrow;\":\"\\u21da\",\"llhard;\":\"\\u296b\",\"lltri;\":\"\\u25fa\",\"Lmidot;\":\"\\u013f\",\"lmidot;\":\"\\u0140\",\"lmoustache;\":\"\\u23b0\",\"lmoust;\":\"\\u23b0\",\"lnap;\":\"\\u2a89\",\"lnapprox;\":\"\\u2a89\",\"lne;\":\"\\u2a87\",\"lnE;\":\"\\u2268\",\"lneq;\":\"\\u2a87\",\"lneqq;\":\"\\u2268\",\"lnsim;\":\"\\u22e6\",\"loang;\":\"\\u27ec\",\"loarr;\":\"\\u21fd\",\"lobrk;\":\"\\u27e6\",\"longleftarrow;\":\"\\u27f5\",\"LongLeftArrow;\":\"\\u27f5\",\"Longleftarrow;\":\"\\u27f8\",\"longleftrightarrow;\":\"\\u27f7\",\"LongLeftRightArrow;\":\"\\u27f7\",\"Longleftrightarrow;\":\"\\u27fa\",\"longmapsto;\":\"\\u27fc\",\"longrightarrow;\":\"\\u27f6\",\"LongRightArrow;\":\"\\u27f6\",\"Longrightarrow;\":\"\\u27f9\",\"looparrowleft;\":\"\\u21ab\",\"looparrowright;\":\"\\u21ac\",\"lopar;\":\"\\u2985\",\"Lopf;\":\"\\ud835\\udd43\",\"lopf;\":\"\\ud835\\udd5d\",\"loplus;\":\"\\u2a2d\",\"lotimes;\":\"\\u2a34\",\"lowast;\":\"\\u2217\",\"lowbar;\":\"_\",\"LowerLeftArrow;\":\"\\u2199\",\"LowerRightArrow;\":\"\\u2198\",\"loz;\":\"\\u25ca\",\"lozenge;\":\"\\u25ca\",\"lozf;\":\"\\u29eb\",\"lpar;\":\"(\",\"lparlt;\":\"\\u2993\",\"lrarr;\":\"\\u21c6\",\"lrcorner;\":\"\\u231f\",\"lrhar;\":\"\\u21cb\",\"lrhard;\":\"\\u296d\",\"lrm;\":\"\\u200e\",\"lrtri;\":\"\\u22bf\",\"lsaquo;\":\"\\u2039\",\"lscr;\":\"\\ud835\\udcc1\",\"Lscr;\":\"\\u2112\",\"lsh;\":\"\\u21b0\",\"Lsh;\":\"\\u21b0\",\"lsim;\":\"\\u2272\",\"lsime;\":\"\\u2a8d\",\"lsimg;\":\"\\u2a8f\",\"lsqb;\":\"[\",\"lsquo;\":\"\\u2018\",\"lsquor;\":\"\\u201a\",\"Lstrok;\":\"\\u0141\",\"lstrok;\":\"\\u0142\",\"ltcc;\":\"\\u2aa6\",\"ltcir;\":\"\\u2a79\",\"lt;\":\"<\",lt:\"<\",\"LT;\":\"<\",LT:\"<\",\"Lt;\":\"\\u226a\",\"ltdot;\":\"\\u22d6\",\"lthree;\":\"\\u22cb\",\"ltimes;\":\"\\u22c9\",\"ltlarr;\":\"\\u2976\",\"ltquest;\":\"\\u2a7b\",\"ltri;\":\"\\u25c3\",\"ltrie;\":\"\\u22b4\",\"ltrif;\":\"\\u25c2\",\"ltrPar;\":\"\\u2996\",\"lurdshar;\":\"\\u294a\",\"luruhar;\":\"\\u2966\",\"lvertneqq;\":\"\\u2268\\ufe00\",\"lvnE;\":\"\\u2268\\ufe00\",\"macr;\":\"\\u00af\",macr:\"\\u00af\",\"male;\":\"\\u2642\",\"malt;\":\"\\u2720\",\"maltese;\":\"\\u2720\",\"Map;\":\"\\u2905\",\"map;\":\"\\u21a6\",\"mapsto;\":\"\\u21a6\",\"mapstodown;\":\"\\u21a7\",\"mapstoleft;\":\"\\u21a4\",\"mapstoup;\":\"\\u21a5\",\"marker;\":\"\\u25ae\",\"mcomma;\":\"\\u2a29\",\"Mcy;\":\"\\u041c\",\"mcy;\":\"\\u043c\",\"mdash;\":\"\\u2014\",\"mDDot;\":\"\\u223a\",\"measuredangle;\":\"\\u2221\",\"MediumSpace;\":\"\\u205f\",\"Mellintrf;\":\"\\u2133\",\"Mfr;\":\"\\ud835\\udd10\",\"mfr;\":\"\\ud835\\udd2a\",\"mho;\":\"\\u2127\",\"micro;\":\"\\u00b5\",micro:\"\\u00b5\",\"midast;\":\"*\",\"midcir;\":\"\\u2af0\",\"mid;\":\"\\u2223\",\"middot;\":\"\\u00b7\",middot:\"\\u00b7\",\"minusb;\":\"\\u229f\",\"minus;\":\"\\u2212\",\"minusd;\":\"\\u2238\",\"minusdu;\":\"\\u2a2a\",\"MinusPlus;\":\"\\u2213\",\"mlcp;\":\"\\u2adb\",\"mldr;\":\"\\u2026\",\"mnplus;\":\"\\u2213\",\"models;\":\"\\u22a7\",\"Mopf;\":\"\\ud835\\udd44\",\"mopf;\":\"\\ud835\\udd5e\",\"mp;\":\"\\u2213\",\"mscr;\":\"\\ud835\\udcc2\",\"Mscr;\":\"\\u2133\",\"mstpos;\":\"\\u223e\",\"Mu;\":\"\\u039c\",\"mu;\":\"\\u03bc\",\"multimap;\":\"\\u22b8\",\"mumap;\":\"\\u22b8\",\"nabla;\":\"\\u2207\",\"Nacute;\":\"\\u0143\",\"nacute;\":\"\\u0144\",\"nang;\":\"\\u2220\\u20d2\",\"nap;\":\"\\u2249\",\"napE;\":\"\\u2a70\\u0338\",\"napid;\":\"\\u224b\\u0338\",\"napos;\":\"\\u0149\",\"napprox;\":\"\\u2249\",\"natural;\":\"\\u266e\",\"naturals;\":\"\\u2115\",\"natur;\":\"\\u266e\",\"nbsp;\":\"\\u00a0\",nbsp:\"\\u00a0\",\"nbump;\":\"\\u224e\\u0338\",\"nbumpe;\":\"\\u224f\\u0338\",\"ncap;\":\"\\u2a43\",\"Ncaron;\":\"\\u0147\",\"ncaron;\":\"\\u0148\",\"Ncedil;\":\"\\u0145\",\"ncedil;\":\"\\u0146\",\"ncong;\":\"\\u2247\",\"ncongdot;\":\"\\u2a6d\\u0338\",\"ncup;\":\"\\u2a42\",\"Ncy;\":\"\\u041d\",\"ncy;\":\"\\u043d\",\"ndash;\":\"\\u2013\",\"nearhk;\":\"\\u2924\",\"nearr;\":\"\\u2197\",\"neArr;\":\"\\u21d7\",\"nearrow;\":\"\\u2197\",\"ne;\":\"\\u2260\",\"nedot;\":\"\\u2250\\u0338\",\"NegativeMediumSpace;\":\"\\u200b\",\"NegativeThickSpace;\":\"\\u200b\",\"NegativeThinSpace;\":\"\\u200b\",\"NegativeVeryThinSpace;\":\"\\u200b\",\"nequiv;\":\"\\u2262\",\"nesear;\":\"\\u2928\",\"nesim;\":\"\\u2242\\u0338\",\"NestedGreaterGreater;\":\"\\u226b\",\"NestedLessLess;\":\"\\u226a\",\"NewLine;\":\"\\n\",\"nexist;\":\"\\u2204\",\"nexists;\":\"\\u2204\",\"Nfr;\":\"\\ud835\\udd11\",\"nfr;\":\"\\ud835\\udd2b\",\"ngE;\":\"\\u2267\\u0338\",\"nge;\":\"\\u2271\",\"ngeq;\":\"\\u2271\",\"ngeqq;\":\"\\u2267\\u0338\",\"ngeqslant;\":\"\\u2a7e\\u0338\",\"nges;\":\"\\u2a7e\\u0338\",\"nGg;\":\"\\u22d9\\u0338\",\"ngsim;\":\"\\u2275\",\"nGt;\":\"\\u226b\\u20d2\",\"ngt;\":\"\\u226f\",\"ngtr;\":\"\\u226f\",\"nGtv;\":\"\\u226b\\u0338\",\"nharr;\":\"\\u21ae\",\"nhArr;\":\"\\u21ce\",\"nhpar;\":\"\\u2af2\",\"ni;\":\"\\u220b\",\"nis;\":\"\\u22fc\",\"nisd;\":\"\\u22fa\",\"niv;\":\"\\u220b\",\"NJcy;\":\"\\u040a\",\"njcy;\":\"\\u045a\",\"nlarr;\":\"\\u219a\",\"nlArr;\":\"\\u21cd\",\"nldr;\":\"\\u2025\",\"nlE;\":\"\\u2266\\u0338\",\"nle;\":\"\\u2270\",\"nleftarrow;\":\"\\u219a\",\"nLeftarrow;\":\"\\u21cd\",\"nleftrightarrow;\":\"\\u21ae\",\"nLeftrightarrow;\":\"\\u21ce\",\"nleq;\":\"\\u2270\",\"nleqq;\":\"\\u2266\\u0338\",\"nleqslant;\":\"\\u2a7d\\u0338\",\"nles;\":\"\\u2a7d\\u0338\",\"nless;\":\"\\u226e\",\"nLl;\":\"\\u22d8\\u0338\",\"nlsim;\":\"\\u2274\",\"nLt;\":\"\\u226a\\u20d2\",\"nlt;\":\"\\u226e\",\"nltri;\":\"\\u22ea\",\"nltrie;\":\"\\u22ec\",\"nLtv;\":\"\\u226a\\u0338\",\"nmid;\":\"\\u2224\",\"NoBreak;\":\"\\u2060\",\"NonBreakingSpace;\":\"\\u00a0\",\"nopf;\":\"\\ud835\\udd5f\",\"Nopf;\":\"\\u2115\",\"Not;\":\"\\u2aec\",\"not;\":\"\\u00ac\",not:\"\\u00ac\",\"NotCongruent;\":\"\\u2262\",\"NotCupCap;\":\"\\u226d\",\"NotDoubleVerticalBar;\":\"\\u2226\",\"NotElement;\":\"\\u2209\",\"NotEqual;\":\"\\u2260\",\"NotEqualTilde;\":\"\\u2242\\u0338\",\"NotExists;\":\"\\u2204\",\"NotGreater;\":\"\\u226f\",\"NotGreaterEqual;\":\"\\u2271\",\"NotGreaterFullEqual;\":\"\\u2267\\u0338\",\"NotGreaterGreater;\":\"\\u226b\\u0338\",\"NotGreaterLess;\":\"\\u2279\",\"NotGreaterSlantEqual;\":\"\\u2a7e\\u0338\",\"NotGreaterTilde;\":\"\\u2275\",\"NotHumpDownHump;\":\"\\u224e\\u0338\",\"NotHumpEqual;\":\"\\u224f\\u0338\",\"notin;\":\"\\u2209\",\"notindot;\":\"\\u22f5\\u0338\",\"notinE;\":\"\\u22f9\\u0338\",\"notinva;\":\"\\u2209\",\"notinvb;\":\"\\u22f7\",\"notinvc;\":\"\\u22f6\",\"NotLeftTriangleBar;\":\"\\u29cf\\u0338\",\"NotLeftTriangle;\":\"\\u22ea\",\"NotLeftTriangleEqual;\":\"\\u22ec\",\"NotLess;\":\"\\u226e\",\"NotLessEqual;\":\"\\u2270\",\"NotLessGreater;\":\"\\u2278\",\"NotLessLess;\":\"\\u226a\\u0338\",\"NotLessSlantEqual;\":\"\\u2a7d\\u0338\",\"NotLessTilde;\":\"\\u2274\",\"NotNestedGreaterGreater;\":\"\\u2aa2\\u0338\",\"NotNestedLessLess;\":\"\\u2aa1\\u0338\",\"notni;\":\"\\u220c\",\"notniva;\":\"\\u220c\",\"notnivb;\":\"\\u22fe\",\"notnivc;\":\"\\u22fd\",\"NotPrecedes;\":\"\\u2280\",\"NotPrecedesEqual;\":\"\\u2aaf\\u0338\",\"NotPrecedesSlantEqual;\":\"\\u22e0\",\"NotReverseElement;\":\"\\u220c\",\"NotRightTriangleBar;\":\"\\u29d0\\u0338\",\"NotRightTriangle;\":\"\\u22eb\",\"NotRightTriangleEqual;\":\"\\u22ed\",\"NotSquareSubset;\":\"\\u228f\\u0338\",\"NotSquareSubsetEqual;\":\"\\u22e2\",\"NotSquareSuperset;\":\"\\u2290\\u0338\",\"NotSquareSupersetEqual;\":\"\\u22e3\",\"NotSubset;\":\"\\u2282\\u20d2\",\"NotSubsetEqual;\":\"\\u2288\",\"NotSucceeds;\":\"\\u2281\",\"NotSucceedsEqual;\":\"\\u2ab0\\u0338\",\"NotSucceedsSlantEqual;\":\"\\u22e1\",\"NotSucceedsTilde;\":\"\\u227f\\u0338\",\"NotSuperset;\":\"\\u2283\\u20d2\",\"NotSupersetEqual;\":\"\\u2289\",\"NotTilde;\":\"\\u2241\",\"NotTildeEqual;\":\"\\u2244\",\"NotTildeFullEqual;\":\"\\u2247\",\"NotTildeTilde;\":\"\\u2249\",\"NotVerticalBar;\":\"\\u2224\",\"nparallel;\":\"\\u2226\",\"npar;\":\"\\u2226\",\"nparsl;\":\"\\u2afd\\u20e5\",\"npart;\":\"\\u2202\\u0338\",\"npolint;\":\"\\u2a14\",\"npr;\":\"\\u2280\",\"nprcue;\":\"\\u22e0\",\"nprec;\":\"\\u2280\",\"npreceq;\":\"\\u2aaf\\u0338\",\"npre;\":\"\\u2aaf\\u0338\",\"nrarrc;\":\"\\u2933\\u0338\",\"nrarr;\":\"\\u219b\",\"nrArr;\":\"\\u21cf\",\"nrarrw;\":\"\\u219d\\u0338\",\"nrightarrow;\":\"\\u219b\",\"nRightarrow;\":\"\\u21cf\",\"nrtri;\":\"\\u22eb\",\"nrtrie;\":\"\\u22ed\",\"nsc;\":\"\\u2281\",\"nsccue;\":\"\\u22e1\",\"nsce;\":\"\\u2ab0\\u0338\",\"Nscr;\":\"\\ud835\\udca9\",\"nscr;\":\"\\ud835\\udcc3\",\"nshortmid;\":\"\\u2224\",\"nshortparallel;\":\"\\u2226\",\"nsim;\":\"\\u2241\",\"nsime;\":\"\\u2244\",\"nsimeq;\":\"\\u2244\",\"nsmid;\":\"\\u2224\",\"nspar;\":\"\\u2226\",\"nsqsube;\":\"\\u22e2\",\"nsqsupe;\":\"\\u22e3\",\"nsub;\":\"\\u2284\",\"nsubE;\":\"\\u2ac5\\u0338\",\"nsube;\":\"\\u2288\",\"nsubset;\":\"\\u2282\\u20d2\",\"nsubseteq;\":\"\\u2288\",\"nsubseteqq;\":\"\\u2ac5\\u0338\",\"nsucc;\":\"\\u2281\",\"nsucceq;\":\"\\u2ab0\\u0338\",\"nsup;\":\"\\u2285\",\"nsupE;\":\"\\u2ac6\\u0338\",\"nsupe;\":\"\\u2289\",\"nsupset;\":\"\\u2283\\u20d2\",\"nsupseteq;\":\"\\u2289\",\"nsupseteqq;\":\"\\u2ac6\\u0338\",\"ntgl;\":\"\\u2279\",\"Ntilde;\":\"\\u00d1\",Ntilde:\"\\u00d1\",\"ntilde;\":\"\\u00f1\",ntilde:\"\\u00f1\",\"ntlg;\":\"\\u2278\",\"ntriangleleft;\":\"\\u22ea\",\"ntrianglelefteq;\":\"\\u22ec\",\"ntriangleright;\":\"\\u22eb\",\"ntrianglerighteq;\":\"\\u22ed\",\"Nu;\":\"\\u039d\",\"nu;\":\"\\u03bd\",\"num;\":\"#\",\"numero;\":\"\\u2116\",\"numsp;\":\"\\u2007\",\"nvap;\":\"\\u224d\\u20d2\",\"nvdash;\":\"\\u22ac\",\"nvDash;\":\"\\u22ad\",\"nVdash;\":\"\\u22ae\",\"nVDash;\":\"\\u22af\",\"nvge;\":\"\\u2265\\u20d2\",\"nvgt;\":\">\\u20d2\",\"nvHarr;\":\"\\u2904\",\"nvinfin;\":\"\\u29de\",\"nvlArr;\":\"\\u2902\",\"nvle;\":\"\\u2264\\u20d2\",\"nvlt;\":\"<\\u20d2\",\"nvltrie;\":\"\\u22b4\\u20d2\",\"nvrArr;\":\"\\u2903\",\"nvrtrie;\":\"\\u22b5\\u20d2\",\"nvsim;\":\"\\u223c\\u20d2\",\"nwarhk;\":\"\\u2923\",\"nwarr;\":\"\\u2196\",\"nwArr;\":\"\\u21d6\",\"nwarrow;\":\"\\u2196\",\"nwnear;\":\"\\u2927\",\"Oacute;\":\"\\u00d3\",Oacute:\"\\u00d3\",\"oacute;\":\"\\u00f3\",oacute:\"\\u00f3\",\"oast;\":\"\\u229b\",\"Ocirc;\":\"\\u00d4\",Ocirc:\"\\u00d4\",\"ocirc;\":\"\\u00f4\",ocirc:\"\\u00f4\",\"ocir;\":\"\\u229a\",\"Ocy;\":\"\\u041e\",\"ocy;\":\"\\u043e\",\"odash;\":\"\\u229d\",\"Odblac;\":\"\\u0150\",\"odblac;\":\"\\u0151\",\"odiv;\":\"\\u2a38\",\"odot;\":\"\\u2299\",\"odsold;\":\"\\u29bc\",\"OElig;\":\"\\u0152\",\"oelig;\":\"\\u0153\",\"ofcir;\":\"\\u29bf\",\"Ofr;\":\"\\ud835\\udd12\",\"ofr;\":\"\\ud835\\udd2c\",\"ogon;\":\"\\u02db\",\"Ograve;\":\"\\u00d2\",Ograve:\"\\u00d2\",\"ograve;\":\"\\u00f2\",ograve:\"\\u00f2\",\"ogt;\":\"\\u29c1\",\"ohbar;\":\"\\u29b5\",\"ohm;\":\"\\u03a9\",\"oint;\":\"\\u222e\",\"olarr;\":\"\\u21ba\",\"olcir;\":\"\\u29be\",\"olcross;\":\"\\u29bb\",\"oline;\":\"\\u203e\",\"olt;\":\"\\u29c0\",\"Omacr;\":\"\\u014c\",\"omacr;\":\"\\u014d\",\"Omega;\":\"\\u03a9\",\"omega;\":\"\\u03c9\",\"Omicron;\":\"\\u039f\",\"omicron;\":\"\\u03bf\",\"omid;\":\"\\u29b6\",\"ominus;\":\"\\u2296\",\"Oopf;\":\"\\ud835\\udd46\",\"oopf;\":\"\\ud835\\udd60\",\"opar;\":\"\\u29b7\",\"OpenCurlyDoubleQuote;\":\"\\u201c\",\"OpenCurlyQuote;\":\"\\u2018\",\"operp;\":\"\\u29b9\",\"oplus;\":\"\\u2295\",\"orarr;\":\"\\u21bb\",\"Or;\":\"\\u2a54\",\"or;\":\"\\u2228\",\"ord;\":\"\\u2a5d\",\"order;\":\"\\u2134\",\"orderof;\":\"\\u2134\",\"ordf;\":\"\\u00aa\",ordf:\"\\u00aa\",\"ordm;\":\"\\u00ba\",ordm:\"\\u00ba\",\"origof;\":\"\\u22b6\",\"oror;\":\"\\u2a56\",\"orslope;\":\"\\u2a57\",\"orv;\":\"\\u2a5b\",\"oS;\":\"\\u24c8\",\"Oscr;\":\"\\ud835\\udcaa\",\"oscr;\":\"\\u2134\",\"Oslash;\":\"\\u00d8\",Oslash:\"\\u00d8\",\"oslash;\":\"\\u00f8\",oslash:\"\\u00f8\",\"osol;\":\"\\u2298\",\"Otilde;\":\"\\u00d5\",Otilde:\"\\u00d5\",\"otilde;\":\"\\u00f5\",otilde:\"\\u00f5\",\"otimesas;\":\"\\u2a36\",\"Otimes;\":\"\\u2a37\",\"otimes;\":\"\\u2297\",\"Ouml;\":\"\\u00d6\",Ouml:\"\\u00d6\",\"ouml;\":\"\\u00f6\",ouml:\"\\u00f6\",\"ovbar;\":\"\\u233d\",\"OverBar;\":\"\\u203e\",\"OverBrace;\":\"\\u23de\",\"OverBracket;\":\"\\u23b4\",\"OverParenthesis;\":\"\\u23dc\",\"para;\":\"\\u00b6\",para:\"\\u00b6\",\"parallel;\":\"\\u2225\",\"par;\":\"\\u2225\",\"parsim;\":\"\\u2af3\",\"parsl;\":\"\\u2afd\",\"part;\":\"\\u2202\",\"PartialD;\":\"\\u2202\",\"Pcy;\":\"\\u041f\",\"pcy;\":\"\\u043f\",\"percnt;\":\"%\",\"period;\":\".\",\"permil;\":\"\\u2030\",\"perp;\":\"\\u22a5\",\"pertenk;\":\"\\u2031\",\"Pfr;\":\"\\ud835\\udd13\",\"pfr;\":\"\\ud835\\udd2d\",\"Phi;\":\"\\u03a6\",\"phi;\":\"\\u03c6\",\"phiv;\":\"\\u03d5\",\"phmmat;\":\"\\u2133\",\"phone;\":\"\\u260e\",\"Pi;\":\"\\u03a0\",\"pi;\":\"\\u03c0\",\"pitchfork;\":\"\\u22d4\",\"piv;\":\"\\u03d6\",\"planck;\":\"\\u210f\",\"planckh;\":\"\\u210e\",\"plankv;\":\"\\u210f\",\"plusacir;\":\"\\u2a23\",\"plusb;\":\"\\u229e\",\"pluscir;\":\"\\u2a22\",\"plus;\":\"+\",\"plusdo;\":\"\\u2214\",\"plusdu;\":\"\\u2a25\",\"pluse;\":\"\\u2a72\",\"PlusMinus;\":\"\\u00b1\",\"plusmn;\":\"\\u00b1\",plusmn:\"\\u00b1\",\"plussim;\":\"\\u2a26\",\"plustwo;\":\"\\u2a27\",\"pm;\":\"\\u00b1\",\"Poincareplane;\":\"\\u210c\",\"pointint;\":\"\\u2a15\",\"popf;\":\"\\ud835\\udd61\",\"Popf;\":\"\\u2119\",\"pound;\":\"\\u00a3\",pound:\"\\u00a3\",\"prap;\":\"\\u2ab7\",\"Pr;\":\"\\u2abb\",\"pr;\":\"\\u227a\",\"prcue;\":\"\\u227c\",\"precapprox;\":\"\\u2ab7\",\"prec;\":\"\\u227a\",\"preccurlyeq;\":\"\\u227c\",\"Precedes;\":\"\\u227a\",\"PrecedesEqual;\":\"\\u2aaf\",\"PrecedesSlantEqual;\":\"\\u227c\",\"PrecedesTilde;\":\"\\u227e\",\"preceq;\":\"\\u2aaf\",\"precnapprox;\":\"\\u2ab9\",\"precneqq;\":\"\\u2ab5\",\"precnsim;\":\"\\u22e8\",\"pre;\":\"\\u2aaf\",\"prE;\":\"\\u2ab3\",\"precsim;\":\"\\u227e\",\"prime;\":\"\\u2032\",\"Prime;\":\"\\u2033\",\"primes;\":\"\\u2119\",\"prnap;\":\"\\u2ab9\",\"prnE;\":\"\\u2ab5\",\"prnsim;\":\"\\u22e8\",\"prod;\":\"\\u220f\",\"Product;\":\"\\u220f\",\"profalar;\":\"\\u232e\",\"profline;\":\"\\u2312\",\"profsurf;\":\"\\u2313\",\"prop;\":\"\\u221d\",\"Proportional;\":\"\\u221d\",\"Proportion;\":\"\\u2237\",\"propto;\":\"\\u221d\",\"prsim;\":\"\\u227e\",\"prurel;\":\"\\u22b0\",\"Pscr;\":\"\\ud835\\udcab\",\"pscr;\":\"\\ud835\\udcc5\",\"Psi;\":\"\\u03a8\",\"psi;\":\"\\u03c8\",\"puncsp;\":\"\\u2008\",\"Qfr;\":\"\\ud835\\udd14\",\"qfr;\":\"\\ud835\\udd2e\",\"qint;\":\"\\u2a0c\",\"qopf;\":\"\\ud835\\udd62\",\"Qopf;\":\"\\u211a\",\"qprime;\":\"\\u2057\",\"Qscr;\":\"\\ud835\\udcac\",\"qscr;\":\"\\ud835\\udcc6\",\"quaternions;\":\"\\u210d\",\"quatint;\":\"\\u2a16\",\"quest;\":\"?\",\"questeq;\":\"\\u225f\",\"quot;\":'\"',quot:'\"',\"QUOT;\":'\"',QUOT:'\"',\"rAarr;\":\"\\u21db\",\"race;\":\"\\u223d\\u0331\",\"Racute;\":\"\\u0154\",\"racute;\":\"\\u0155\",\"radic;\":\"\\u221a\",\"raemptyv;\":\"\\u29b3\",\"rang;\":\"\\u27e9\",\"Rang;\":\"\\u27eb\",\"rangd;\":\"\\u2992\",\"range;\":\"\\u29a5\",\"rangle;\":\"\\u27e9\",\"raquo;\":\"\\u00bb\",raquo:\"\\u00bb\",\"rarrap;\":\"\\u2975\",\"rarrb;\":\"\\u21e5\",\"rarrbfs;\":\"\\u2920\",\"rarrc;\":\"\\u2933\",\"rarr;\":\"\\u2192\",\"Rarr;\":\"\\u21a0\",\"rArr;\":\"\\u21d2\",\"rarrfs;\":\"\\u291e\",\"rarrhk;\":\"\\u21aa\",\"rarrlp;\":\"\\u21ac\",\"rarrpl;\":\"\\u2945\",\"rarrsim;\":\"\\u2974\",\"Rarrtl;\":\"\\u2916\",\"rarrtl;\":\"\\u21a3\",\"rarrw;\":\"\\u219d\",\"ratail;\":\"\\u291a\",\"rAtail;\":\"\\u291c\",\"ratio;\":\"\\u2236\",\"rationals;\":\"\\u211a\",\"rbarr;\":\"\\u290d\",\"rBarr;\":\"\\u290f\",\"RBarr;\":\"\\u2910\",\"rbbrk;\":\"\\u2773\",\"rbrace;\":\"}\",\"rbrack;\":\"]\",\"rbrke;\":\"\\u298c\",\"rbrksld;\":\"\\u298e\",\"rbrkslu;\":\"\\u2990\",\"Rcaron;\":\"\\u0158\",\"rcaron;\":\"\\u0159\",\"Rcedil;\":\"\\u0156\",\"rcedil;\":\"\\u0157\",\"rceil;\":\"\\u2309\",\"rcub;\":\"}\",\"Rcy;\":\"\\u0420\",\"rcy;\":\"\\u0440\",\"rdca;\":\"\\u2937\",\"rdldhar;\":\"\\u2969\",\"rdquo;\":\"\\u201d\",\"rdquor;\":\"\\u201d\",\"rdsh;\":\"\\u21b3\",\"real;\":\"\\u211c\",\"realine;\":\"\\u211b\",\"realpart;\":\"\\u211c\",\"reals;\":\"\\u211d\",\"Re;\":\"\\u211c\",\"rect;\":\"\\u25ad\",\"reg;\":\"\\u00ae\",reg:\"\\u00ae\",\"REG;\":\"\\u00ae\",REG:\"\\u00ae\",\"ReverseElement;\":\"\\u220b\",\"ReverseEquilibrium;\":\"\\u21cb\",\"ReverseUpEquilibrium;\":\"\\u296f\",\"rfisht;\":\"\\u297d\",\"rfloor;\":\"\\u230b\",\"rfr;\":\"\\ud835\\udd2f\",\"Rfr;\":\"\\u211c\",\"rHar;\":\"\\u2964\",\"rhard;\":\"\\u21c1\",\"rharu;\":\"\\u21c0\",\"rharul;\":\"\\u296c\",\"Rho;\":\"\\u03a1\",\"rho;\":\"\\u03c1\",\"rhov;\":\"\\u03f1\",\"RightAngleBracket;\":\"\\u27e9\",\"RightArrowBar;\":\"\\u21e5\",\"rightarrow;\":\"\\u2192\",\"RightArrow;\":\"\\u2192\",\"Rightarrow;\":\"\\u21d2\",\"RightArrowLeftArrow;\":\"\\u21c4\",\"rightarrowtail;\":\"\\u21a3\",\"RightCeiling;\":\"\\u2309\",\"RightDoubleBracket;\":\"\\u27e7\",\"RightDownTeeVector;\":\"\\u295d\",\"RightDownVectorBar;\":\"\\u2955\",\"RightDownVector;\":\"\\u21c2\",\"RightFloor;\":\"\\u230b\",\"rightharpoondown;\":\"\\u21c1\",\"rightharpoonup;\":\"\\u21c0\",\"rightleftarrows;\":\"\\u21c4\",\"rightleftharpoons;\":\"\\u21cc\",\"rightrightarrows;\":\"\\u21c9\",\"rightsquigarrow;\":\"\\u219d\",\"RightTeeArrow;\":\"\\u21a6\",\"RightTee;\":\"\\u22a2\",\"RightTeeVector;\":\"\\u295b\",\"rightthreetimes;\":\"\\u22cc\",\"RightTriangleBar;\":\"\\u29d0\",\"RightTriangle;\":\"\\u22b3\",\"RightTriangleEqual;\":\"\\u22b5\",\"RightUpDownVector;\":\"\\u294f\",\"RightUpTeeVector;\":\"\\u295c\",\"RightUpVectorBar;\":\"\\u2954\",\"RightUpVector;\":\"\\u21be\",\"RightVectorBar;\":\"\\u2953\",\"RightVector;\":\"\\u21c0\",\"ring;\":\"\\u02da\",\"risingdotseq;\":\"\\u2253\",\"rlarr;\":\"\\u21c4\",\"rlhar;\":\"\\u21cc\",\"rlm;\":\"\\u200f\",\"rmoustache;\":\"\\u23b1\",\"rmoust;\":\"\\u23b1\",\"rnmid;\":\"\\u2aee\",\"roang;\":\"\\u27ed\",\"roarr;\":\"\\u21fe\",\"robrk;\":\"\\u27e7\",\"ropar;\":\"\\u2986\",\"ropf;\":\"\\ud835\\udd63\",\"Ropf;\":\"\\u211d\",\"roplus;\":\"\\u2a2e\",\"rotimes;\":\"\\u2a35\",\"RoundImplies;\":\"\\u2970\",\"rpar;\":\")\",\"rpargt;\":\"\\u2994\",\"rppolint;\":\"\\u2a12\",\"rrarr;\":\"\\u21c9\",\"Rrightarrow;\":\"\\u21db\",\"rsaquo;\":\"\\u203a\",\"rscr;\":\"\\ud835\\udcc7\",\"Rscr;\":\"\\u211b\",\"rsh;\":\"\\u21b1\",\"Rsh;\":\"\\u21b1\",\"rsqb;\":\"]\",\"rsquo;\":\"\\u2019\",\"rsquor;\":\"\\u2019\",\"rthree;\":\"\\u22cc\",\"rtimes;\":\"\\u22ca\",\"rtri;\":\"\\u25b9\",\"rtrie;\":\"\\u22b5\",\"rtrif;\":\"\\u25b8\",\"rtriltri;\":\"\\u29ce\",\"RuleDelayed;\":\"\\u29f4\",\"ruluhar;\":\"\\u2968\",\"rx;\":\"\\u211e\",\"Sacute;\":\"\\u015a\",\"sacute;\":\"\\u015b\",\"sbquo;\":\"\\u201a\",\"scap;\":\"\\u2ab8\",\"Scaron;\":\"\\u0160\",\"scaron;\":\"\\u0161\",\"Sc;\":\"\\u2abc\",\"sc;\":\"\\u227b\",\"sccue;\":\"\\u227d\",\"sce;\":\"\\u2ab0\",\"scE;\":\"\\u2ab4\",\"Scedil;\":\"\\u015e\",\"scedil;\":\"\\u015f\",\"Scirc;\":\"\\u015c\",\"scirc;\":\"\\u015d\",\"scnap;\":\"\\u2aba\",\"scnE;\":\"\\u2ab6\",\"scnsim;\":\"\\u22e9\",\"scpolint;\":\"\\u2a13\",\"scsim;\":\"\\u227f\",\"Scy;\":\"\\u0421\",\"scy;\":\"\\u0441\",\"sdotb;\":\"\\u22a1\",\"sdot;\":\"\\u22c5\",\"sdote;\":\"\\u2a66\",\"searhk;\":\"\\u2925\",\"searr;\":\"\\u2198\",\"seArr;\":\"\\u21d8\",\"searrow;\":\"\\u2198\",\"sect;\":\"\\u00a7\",sect:\"\\u00a7\",\"semi;\":\";\",\"seswar;\":\"\\u2929\",\"setminus;\":\"\\u2216\",\"setmn;\":\"\\u2216\",\"sext;\":\"\\u2736\",\"Sfr;\":\"\\ud835\\udd16\",\"sfr;\":\"\\ud835\\udd30\",\"sfrown;\":\"\\u2322\",\"sharp;\":\"\\u266f\",\"SHCHcy;\":\"\\u0429\",\"shchcy;\":\"\\u0449\",\"SHcy;\":\"\\u0428\",\"shcy;\":\"\\u0448\",\"ShortDownArrow;\":\"\\u2193\",\"ShortLeftArrow;\":\"\\u2190\",\"shortmid;\":\"\\u2223\",\"shortparallel;\":\"\\u2225\",\"ShortRightArrow;\":\"\\u2192\",\"ShortUpArrow;\":\"\\u2191\",\"shy;\":\"\\u00ad\",shy:\"\\u00ad\",\"Sigma;\":\"\\u03a3\",\"sigma;\":\"\\u03c3\",\"sigmaf;\":\"\\u03c2\",\"sigmav;\":\"\\u03c2\",\"sim;\":\"\\u223c\",\"simdot;\":\"\\u2a6a\",\"sime;\":\"\\u2243\",\"simeq;\":\"\\u2243\",\"simg;\":\"\\u2a9e\",\"simgE;\":\"\\u2aa0\",\"siml;\":\"\\u2a9d\",\"simlE;\":\"\\u2a9f\",\"simne;\":\"\\u2246\",\"simplus;\":\"\\u2a24\",\"simrarr;\":\"\\u2972\",\"slarr;\":\"\\u2190\",\"SmallCircle;\":\"\\u2218\",\"smallsetminus;\":\"\\u2216\",\"smashp;\":\"\\u2a33\",\"smeparsl;\":\"\\u29e4\",\"smid;\":\"\\u2223\",\"smile;\":\"\\u2323\",\"smt;\":\"\\u2aaa\",\"smte;\":\"\\u2aac\",\"smtes;\":\"\\u2aac\\ufe00\",\"SOFTcy;\":\"\\u042c\",\"softcy;\":\"\\u044c\",\"solbar;\":\"\\u233f\",\"solb;\":\"\\u29c4\",\"sol;\":\"/\",\"Sopf;\":\"\\ud835\\udd4a\",\"sopf;\":\"\\ud835\\udd64\",\"spades;\":\"\\u2660\",\"spadesuit;\":\"\\u2660\",\"spar;\":\"\\u2225\",\"sqcap;\":\"\\u2293\",\"sqcaps;\":\"\\u2293\\ufe00\",\"sqcup;\":\"\\u2294\",\"sqcups;\":\"\\u2294\\ufe00\",\"Sqrt;\":\"\\u221a\",\"sqsub;\":\"\\u228f\",\"sqsube;\":\"\\u2291\",\"sqsubset;\":\"\\u228f\",\"sqsubseteq;\":\"\\u2291\",\"sqsup;\":\"\\u2290\",\"sqsupe;\":\"\\u2292\",\"sqsupset;\":\"\\u2290\",\"sqsupseteq;\":\"\\u2292\",\"square;\":\"\\u25a1\",\"Square;\":\"\\u25a1\",\"SquareIntersection;\":\"\\u2293\",\"SquareSubset;\":\"\\u228f\",\"SquareSubsetEqual;\":\"\\u2291\",\"SquareSuperset;\":\"\\u2290\",\"SquareSupersetEqual;\":\"\\u2292\",\"SquareUnion;\":\"\\u2294\",\"squarf;\":\"\\u25aa\",\"squ;\":\"\\u25a1\",\"squf;\":\"\\u25aa\",\"srarr;\":\"\\u2192\",\"Sscr;\":\"\\ud835\\udcae\",\"sscr;\":\"\\ud835\\udcc8\",\"ssetmn;\":\"\\u2216\",\"ssmile;\":\"\\u2323\",\"sstarf;\":\"\\u22c6\",\"Star;\":\"\\u22c6\",\"star;\":\"\\u2606\",\"starf;\":\"\\u2605\",\"straightepsilon;\":\"\\u03f5\",\"straightphi;\":\"\\u03d5\",\"strns;\":\"\\u00af\",\"sub;\":\"\\u2282\",\"Sub;\":\"\\u22d0\",\"subdot;\":\"\\u2abd\",\"subE;\":\"\\u2ac5\",\"sube;\":\"\\u2286\",\"subedot;\":\"\\u2ac3\",\"submult;\":\"\\u2ac1\",\"subnE;\":\"\\u2acb\",\"subne;\":\"\\u228a\",\"subplus;\":\"\\u2abf\",\"subrarr;\":\"\\u2979\",\"subset;\":\"\\u2282\",\"Subset;\":\"\\u22d0\",\"subseteq;\":\"\\u2286\",\"subseteqq;\":\"\\u2ac5\",\"SubsetEqual;\":\"\\u2286\",\"subsetneq;\":\"\\u228a\",\"subsetneqq;\":\"\\u2acb\",\"subsim;\":\"\\u2ac7\",\"subsub;\":\"\\u2ad5\",\"subsup;\":\"\\u2ad3\",\"succapprox;\":\"\\u2ab8\",\"succ;\":\"\\u227b\",\"succcurlyeq;\":\"\\u227d\",\"Succeeds;\":\"\\u227b\",\"SucceedsEqual;\":\"\\u2ab0\",\"SucceedsSlantEqual;\":\"\\u227d\",\"SucceedsTilde;\":\"\\u227f\",\"succeq;\":\"\\u2ab0\",\"succnapprox;\":\"\\u2aba\",\"succneqq;\":\"\\u2ab6\",\"succnsim;\":\"\\u22e9\",\"succsim;\":\"\\u227f\",\"SuchThat;\":\"\\u220b\",\"sum;\":\"\\u2211\",\"Sum;\":\"\\u2211\",\"sung;\":\"\\u266a\",\"sup1;\":\"\\u00b9\",sup1:\"\\u00b9\",\"sup2;\":\"\\u00b2\",sup2:\"\\u00b2\",\"sup3;\":\"\\u00b3\",sup3:\"\\u00b3\",\"sup;\":\"\\u2283\",\"Sup;\":\"\\u22d1\",\"supdot;\":\"\\u2abe\",\"supdsub;\":\"\\u2ad8\",\"supE;\":\"\\u2ac6\",\"supe;\":\"\\u2287\",\"supedot;\":\"\\u2ac4\",\"Superset;\":\"\\u2283\",\"SupersetEqual;\":\"\\u2287\",\"suphsol;\":\"\\u27c9\",\"suphsub;\":\"\\u2ad7\",\"suplarr;\":\"\\u297b\",\"supmult;\":\"\\u2ac2\",\"supnE;\":\"\\u2acc\",\"supne;\":\"\\u228b\",\"supplus;\":\"\\u2ac0\",\"supset;\":\"\\u2283\",\"Supset;\":\"\\u22d1\",\"supseteq;\":\"\\u2287\",\"supseteqq;\":\"\\u2ac6\",\"supsetneq;\":\"\\u228b\",\"supsetneqq;\":\"\\u2acc\",\"supsim;\":\"\\u2ac8\",\"supsub;\":\"\\u2ad4\",\"supsup;\":\"\\u2ad6\",\"swarhk;\":\"\\u2926\",\"swarr;\":\"\\u2199\",\"swArr;\":\"\\u21d9\",\"swarrow;\":\"\\u2199\",\"swnwar;\":\"\\u292a\",\"szlig;\":\"\\u00df\",szlig:\"\\u00df\",\"Tab;\":\"\t\",\"target;\":\"\\u2316\",\"Tau;\":\"\\u03a4\",\"tau;\":\"\\u03c4\",\"tbrk;\":\"\\u23b4\",\"Tcaron;\":\"\\u0164\",\"tcaron;\":\"\\u0165\",\"Tcedil;\":\"\\u0162\",\"tcedil;\":\"\\u0163\",\"Tcy;\":\"\\u0422\",\"tcy;\":\"\\u0442\",\"tdot;\":\"\\u20db\",\"telrec;\":\"\\u2315\",\"Tfr;\":\"\\ud835\\udd17\",\"tfr;\":\"\\ud835\\udd31\",\"there4;\":\"\\u2234\",\"therefore;\":\"\\u2234\",\"Therefore;\":\"\\u2234\",\"Theta;\":\"\\u0398\",\"theta;\":\"\\u03b8\",\"thetasym;\":\"\\u03d1\",\"thetav;\":\"\\u03d1\",\"thickapprox;\":\"\\u2248\",\"thicksim;\":\"\\u223c\",\"ThickSpace;\":\"\\u205f\\u200a\",\"ThinSpace;\":\"\\u2009\",\"thinsp;\":\"\\u2009\",\"thkap;\":\"\\u2248\",\"thksim;\":\"\\u223c\",\"THORN;\":\"\\u00de\",THORN:\"\\u00de\",\"thorn;\":\"\\u00fe\",thorn:\"\\u00fe\",\"tilde;\":\"\\u02dc\",\"Tilde;\":\"\\u223c\",\"TildeEqual;\":\"\\u2243\",\"TildeFullEqual;\":\"\\u2245\",\"TildeTilde;\":\"\\u2248\",\"timesbar;\":\"\\u2a31\",\"timesb;\":\"\\u22a0\",\"times;\":\"\\u00d7\",times:\"\\u00d7\",\"timesd;\":\"\\u2a30\",\"tint;\":\"\\u222d\",\"toea;\":\"\\u2928\",\"topbot;\":\"\\u2336\",\"topcir;\":\"\\u2af1\",\"top;\":\"\\u22a4\",\"Topf;\":\"\\ud835\\udd4b\",\"topf;\":\"\\ud835\\udd65\",\"topfork;\":\"\\u2ada\",\"tosa;\":\"\\u2929\",\"tprime;\":\"\\u2034\",\"trade;\":\"\\u2122\",\"TRADE;\":\"\\u2122\",\"triangle;\":\"\\u25b5\",\"triangledown;\":\"\\u25bf\",\"triangleleft;\":\"\\u25c3\",\"trianglelefteq;\":\"\\u22b4\",\"triangleq;\":\"\\u225c\",\"triangleright;\":\"\\u25b9\",\"trianglerighteq;\":\"\\u22b5\",\"tridot;\":\"\\u25ec\",\"trie;\":\"\\u225c\",\"triminus;\":\"\\u2a3a\",\"TripleDot;\":\"\\u20db\",\"triplus;\":\"\\u2a39\",\"trisb;\":\"\\u29cd\",\"tritime;\":\"\\u2a3b\",\"trpezium;\":\"\\u23e2\",\"Tscr;\":\"\\ud835\\udcaf\",\"tscr;\":\"\\ud835\\udcc9\",\"TScy;\":\"\\u0426\",\"tscy;\":\"\\u0446\",\"TSHcy;\":\"\\u040b\",\"tshcy;\":\"\\u045b\",\"Tstrok;\":\"\\u0166\",\"tstrok;\":\"\\u0167\",\"twixt;\":\"\\u226c\",\"twoheadleftarrow;\":\"\\u219e\",\"twoheadrightarrow;\":\"\\u21a0\",\"Uacute;\":\"\\u00da\",Uacute:\"\\u00da\",\"uacute;\":\"\\u00fa\",uacute:\"\\u00fa\",\"uarr;\":\"\\u2191\",\"Uarr;\":\"\\u219f\",\"uArr;\":\"\\u21d1\",\"Uarrocir;\":\"\\u2949\",\"Ubrcy;\":\"\\u040e\",\"ubrcy;\":\"\\u045e\",\"Ubreve;\":\"\\u016c\",\"ubreve;\":\"\\u016d\",\"Ucirc;\":\"\\u00db\",Ucirc:\"\\u00db\",\"ucirc;\":\"\\u00fb\",ucirc:\"\\u00fb\",\"Ucy;\":\"\\u0423\",\"ucy;\":\"\\u0443\",\"udarr;\":\"\\u21c5\",\"Udblac;\":\"\\u0170\",\"udblac;\":\"\\u0171\",\"udhar;\":\"\\u296e\",\"ufisht;\":\"\\u297e\",\"Ufr;\":\"\\ud835\\udd18\",\"ufr;\":\"\\ud835\\udd32\",\"Ugrave;\":\"\\u00d9\",Ugrave:\"\\u00d9\",\"ugrave;\":\"\\u00f9\",ugrave:\"\\u00f9\",\"uHar;\":\"\\u2963\",\"uharl;\":\"\\u21bf\",\"uharr;\":\"\\u21be\",\"uhblk;\":\"\\u2580\",\"ulcorn;\":\"\\u231c\",\"ulcorner;\":\"\\u231c\",\"ulcrop;\":\"\\u230f\",\"ultri;\":\"\\u25f8\",\"Umacr;\":\"\\u016a\",\"umacr;\":\"\\u016b\",\"uml;\":\"\\u00a8\",uml:\"\\u00a8\",\"UnderBar;\":\"_\",\"UnderBrace;\":\"\\u23df\",\"UnderBracket;\":\"\\u23b5\",\"UnderParenthesis;\":\"\\u23dd\",\"Union;\":\"\\u22c3\",\"UnionPlus;\":\"\\u228e\",\"Uogon;\":\"\\u0172\",\"uogon;\":\"\\u0173\",\"Uopf;\":\"\\ud835\\udd4c\",\"uopf;\":\"\\ud835\\udd66\",\"UpArrowBar;\":\"\\u2912\",\"uparrow;\":\"\\u2191\",\"UpArrow;\":\"\\u2191\",\"Uparrow;\":\"\\u21d1\",\"UpArrowDownArrow;\":\"\\u21c5\",\"updownarrow;\":\"\\u2195\",\"UpDownArrow;\":\"\\u2195\",\"Updownarrow;\":\"\\u21d5\",\"UpEquilibrium;\":\"\\u296e\",\"upharpoonleft;\":\"\\u21bf\",\"upharpoonright;\":\"\\u21be\",\"uplus;\":\"\\u228e\",\"UpperLeftArrow;\":\"\\u2196\",\"UpperRightArrow;\":\"\\u2197\",\"upsi;\":\"\\u03c5\",\"Upsi;\":\"\\u03d2\",\"upsih;\":\"\\u03d2\",\"Upsilon;\":\"\\u03a5\",\"upsilon;\":\"\\u03c5\",\"UpTeeArrow;\":\"\\u21a5\",\"UpTee;\":\"\\u22a5\",\"upuparrows;\":\"\\u21c8\",\"urcorn;\":\"\\u231d\",\"urcorner;\":\"\\u231d\",\"urcrop;\":\"\\u230e\",\"Uring;\":\"\\u016e\",\"uring;\":\"\\u016f\",\"urtri;\":\"\\u25f9\",\"Uscr;\":\"\\ud835\\udcb0\",\"uscr;\":\"\\ud835\\udcca\",\"utdot;\":\"\\u22f0\",\"Utilde;\":\"\\u0168\",\"utilde;\":\"\\u0169\",\"utri;\":\"\\u25b5\",\"utrif;\":\"\\u25b4\",\"uuarr;\":\"\\u21c8\",\"Uuml;\":\"\\u00dc\",Uuml:\"\\u00dc\",\"uuml;\":\"\\u00fc\",uuml:\"\\u00fc\",\"uwangle;\":\"\\u29a7\",\"vangrt;\":\"\\u299c\",\"varepsilon;\":\"\\u03f5\",\"varkappa;\":\"\\u03f0\",\"varnothing;\":\"\\u2205\",\"varphi;\":\"\\u03d5\",\"varpi;\":\"\\u03d6\",\"varpropto;\":\"\\u221d\",\"varr;\":\"\\u2195\",\"vArr;\":\"\\u21d5\",\"varrho;\":\"\\u03f1\",\"varsigma;\":\"\\u03c2\",\"varsubsetneq;\":\"\\u228a\\ufe00\",\"varsubsetneqq;\":\"\\u2acb\\ufe00\",\"varsupsetneq;\":\"\\u228b\\ufe00\",\"varsupsetneqq;\":\"\\u2acc\\ufe00\",\"vartheta;\":\"\\u03d1\",\"vartriangleleft;\":\"\\u22b2\",\"vartriangleright;\":\"\\u22b3\",\"vBar;\":\"\\u2ae8\",\"Vbar;\":\"\\u2aeb\",\"vBarv;\":\"\\u2ae9\",\"Vcy;\":\"\\u0412\",\"vcy;\":\"\\u0432\",\"vdash;\":\"\\u22a2\",\"vDash;\":\"\\u22a8\",\"Vdash;\":\"\\u22a9\",\"VDash;\":\"\\u22ab\",\"Vdashl;\":\"\\u2ae6\",\"veebar;\":\"\\u22bb\",\"vee;\":\"\\u2228\",\"Vee;\":\"\\u22c1\",\"veeeq;\":\"\\u225a\",\"vellip;\":\"\\u22ee\",\"verbar;\":\"|\",\"Verbar;\":\"\\u2016\",\"vert;\":\"|\",\"Vert;\":\"\\u2016\",\"VerticalBar;\":\"\\u2223\",\"VerticalLine;\":\"|\",\"VerticalSeparator;\":\"\\u2758\",\"VerticalTilde;\":\"\\u2240\",\"VeryThinSpace;\":\"\\u200a\",\"Vfr;\":\"\\ud835\\udd19\",\"vfr;\":\"\\ud835\\udd33\",\"vltri;\":\"\\u22b2\",\"vnsub;\":\"\\u2282\\u20d2\",\"vnsup;\":\"\\u2283\\u20d2\",\"Vopf;\":\"\\ud835\\udd4d\",\"vopf;\":\"\\ud835\\udd67\",\"vprop;\":\"\\u221d\",\"vrtri;\":\"\\u22b3\",\"Vscr;\":\"\\ud835\\udcb1\",\"vscr;\":\"\\ud835\\udccb\",\"vsubnE;\":\"\\u2acb\\ufe00\",\"vsubne;\":\"\\u228a\\ufe00\",\"vsupnE;\":\"\\u2acc\\ufe00\",\"vsupne;\":\"\\u228b\\ufe00\",\"Vvdash;\":\"\\u22aa\",\"vzigzag;\":\"\\u299a\",\"Wcirc;\":\"\\u0174\",\"wcirc;\":\"\\u0175\",\"wedbar;\":\"\\u2a5f\",\"wedge;\":\"\\u2227\",\"Wedge;\":\"\\u22c0\",\"wedgeq;\":\"\\u2259\",\"weierp;\":\"\\u2118\",\"Wfr;\":\"\\ud835\\udd1a\",\"wfr;\":\"\\ud835\\udd34\",\"Wopf;\":\"\\ud835\\udd4e\",\"wopf;\":\"\\ud835\\udd68\",\"wp;\":\"\\u2118\",\"wr;\":\"\\u2240\",\"wreath;\":\"\\u2240\",\"Wscr;\":\"\\ud835\\udcb2\",\"wscr;\":\"\\ud835\\udccc\",\"xcap;\":\"\\u22c2\",\"xcirc;\":\"\\u25ef\",\"xcup;\":\"\\u22c3\",\"xdtri;\":\"\\u25bd\",\"Xfr;\":\"\\ud835\\udd1b\",\"xfr;\":\"\\ud835\\udd35\",\"xharr;\":\"\\u27f7\",\"xhArr;\":\"\\u27fa\",\"Xi;\":\"\\u039e\",\"xi;\":\"\\u03be\",\"xlarr;\":\"\\u27f5\",\"xlArr;\":\"\\u27f8\",\"xmap;\":\"\\u27fc\",\"xnis;\":\"\\u22fb\",\"xodot;\":\"\\u2a00\",\"Xopf;\":\"\\ud835\\udd4f\",\"xopf;\":\"\\ud835\\udd69\",\"xoplus;\":\"\\u2a01\",\"xotime;\":\"\\u2a02\",\"xrarr;\":\"\\u27f6\",\"xrArr;\":\"\\u27f9\",\"Xscr;\":\"\\ud835\\udcb3\",\"xscr;\":\"\\ud835\\udccd\",\"xsqcup;\":\"\\u2a06\",\"xuplus;\":\"\\u2a04\",\"xutri;\":\"\\u25b3\",\"xvee;\":\"\\u22c1\",\"xwedge;\":\"\\u22c0\",\"Yacute;\":\"\\u00dd\",Yacute:\"\\u00dd\",\"yacute;\":\"\\u00fd\",yacute:\"\\u00fd\",\"YAcy;\":\"\\u042f\",\"yacy;\":\"\\u044f\",\"Ycirc;\":\"\\u0176\",\"ycirc;\":\"\\u0177\",\"Ycy;\":\"\\u042b\",\"ycy;\":\"\\u044b\",\"yen;\":\"\\u00a5\",yen:\"\\u00a5\",\"Yfr;\":\"\\ud835\\udd1c\",\"yfr;\":\"\\ud835\\udd36\",\"YIcy;\":\"\\u0407\",\"yicy;\":\"\\u0457\",\"Yopf;\":\"\\ud835\\udd50\",\"yopf;\":\"\\ud835\\udd6a\",\"Yscr;\":\"\\ud835\\udcb4\",\"yscr;\":\"\\ud835\\udcce\",\"YUcy;\":\"\\u042e\",\"yucy;\":\"\\u044e\",\"yuml;\":\"\\u00ff\",yuml:\"\\u00ff\",\"Yuml;\":\"\\u0178\",\"Zacute;\":\"\\u0179\",\"zacute;\":\"\\u017a\",\"Zcaron;\":\"\\u017d\",\"zcaron;\":\"\\u017e\",\"Zcy;\":\"\\u0417\",\"zcy;\":\"\\u0437\",\"Zdot;\":\"\\u017b\",\"zdot;\":\"\\u017c\",\"zeetrf;\":\"\\u2128\",\"ZeroWidthSpace;\":\"\\u200b\",\"Zeta;\":\"\\u0396\",\"zeta;\":\"\\u03b6\",\"zfr;\":\"\\ud835\\udd37\",\"Zfr;\":\"\\u2128\",\"ZHcy;\":\"\\u0416\",\"zhcy;\":\"\\u0436\",\"zigrarr;\":\"\\u21dd\",\"zopf;\":\"\\ud835\\udd6b\",\"Zopf;\":\"\\u2124\",\"Zscr;\":\"\\ud835\\udcb5\",\"zscr;\":\"\\ud835\\udccf\",\"zwj;\":\"\\u200d\",\"zwnj;\":\"\\u200c\"}},{}],13:[function(e,t,n){function u(e,t){return r.isUndefined(t)?\"\"+t:r.isNumber(t)&&(isNaN(t)||!isFinite(t))?t.toString():r.isFunction(t)||r.isRegExp(t)?t.toString():t}function a(e,t){return r.isString(e)?e.length<t?e:e.slice(0,t):e}function f(e){return a(JSON.stringify(e.actual,u),128)+\" \"+e.operator+\" \"+a(JSON.stringify(e.expected,u),128)}function l(e,t,n,r,i){throw new o.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function c(e,t){e||l(e,!0,t,\"==\",o.ok)}function h(e,t){if(e===t)return!0;if(r.isBuffer(e)&&r.isBuffer(t)){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return r.isDate(e)&&r.isDate(t)?e.getTime()===t.getTime():r.isRegExp(e)&&r.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:!r.isObject(e)&&!r.isObject(t)?e==t:d(e,t)}function p(e){return Object.prototype.toString.call(e)==\"[object Arguments]\"}function d(e,t){if(r.isNullOrUndefined(e)||r.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(p(e))return p(t)?(e=i.call(e),t=i.call(t),h(e,t)):!1;try{var n=g(e),s=g(t),o,u}catch(a){return!1}if(n.length!=s.length)return!1;n.sort(),s.sort();for(u=n.length-1;u>=0;u--)if(n[u]!=s[u])return!1;for(u=n.length-1;u>=0;u--){o=n[u];if(!h(e[o],t[o]))return!1}return!0}function v(e,t){return!e||!t?!1:Object.prototype.toString.call(t)==\"[object RegExp]\"?t.test(e):e instanceof t?!0:t.call({},e)===!0?!0:!1}function m(e,t,n,i){var s;r.isString(n)&&(i=n,n=null);try{t()}catch(o){s=o}i=(n&&n.name?\" (\"+n.name+\").\":\".\")+(i?\" \"+i:\".\"),e&&!s&&l(s,n,\"Missing expected exception\"+i),!e&&v(s,n)&&l(s,n,\"Got unwanted exception\"+i);if(e&&s&&n&&!v(s,n)||!e&&s)throw s}var r=e(\"util/\"),i=Array.prototype.slice,s=Object.prototype.hasOwnProperty,o=t.exports=c;o.AssertionError=function(t){this.name=\"AssertionError\",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=f(this),this.generatedMessage=!0);var n=t.stackStartFunction||l;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,s=n.name,o=i.indexOf(\"\\n\"+s);if(o>=0){var u=i.indexOf(\"\\n\",o+1);i=i.substring(u+1)}this.stack=i}}},r.inherits(o.AssertionError,Error),o.fail=l,o.ok=c,o.equal=function(t,n,r){t!=n&&l(t,n,r,\"==\",o.equal)},o.notEqual=function(t,n,r){t==n&&l(t,n,r,\"!=\",o.notEqual)},o.deepEqual=function(t,n,r){h(t,n)||l(t,n,r,\"deepEqual\",o.deepEqual)},o.notDeepEqual=function(t,n,r){h(t,n)&&l(t,n,r,\"notDeepEqual\",o.notDeepEqual)},o.strictEqual=function(t,n,r){t!==n&&l(t,n,r,\"===\",o.strictEqual)},o.notStrictEqual=function(t,n,r){t===n&&l(t,n,r,\"!==\",o.notStrictEqual)},o.throws=function(e,t,n){m.apply(this,[!0].concat(i.call(arguments)))},o.doesNotThrow=function(e,t){m.apply(this,[!1].concat(i.call(arguments)))},o.ifError=function(e){if(e)throw e};var g=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}},{\"util/\":15}],14:[function(e,t,n){t.exports=function(t){return t&&typeof t==\"object\"&&typeof t.copy==\"function\"&&typeof t.fill==\"function\"&&typeof t.readUInt8==\"function\"}},{}],15:[function(e,t,n){(function(t,r){function u(e,t){var r={seen:[],stylize:f};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&n._extend(r,t),T(r.showHidden)&&(r.showHidden=!1),T(r.depth)&&(r.depth=2),T(r.colors)&&(r.colors=!1),T(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),c(r,e,r.depth)}function a(e,t){var n=u.styles[t];return n?\"\u001b[\"+u.colors[n][0]+\"m\"+e+\"\u001b[\"+u.colors[n][1]+\"m\":e}function f(e,t){return e}function l(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function c(e,t,r){if(e.customInspect&&t&&A(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return S(i)||(i=c(e,i,r)),i}var s=h(e,t);if(s)return s;var o=Object.keys(t),u=l(o);e.showHidden&&(o=Object.getOwnPropertyNames(t));if(L(t)&&(o.indexOf(\"message\")>=0||o.indexOf(\"description\")>=0))return p(t);if(o.length===0){if(A(t)){var a=t.name?\": \"+t.name:\"\";return e.stylize(\"[Function\"+a+\"]\",\"special\")}if(N(t))return e.stylize(RegExp.prototype.toString.call(t),\"regexp\");if(k(t))return e.stylize(Date.prototype.toString.call(t),\"date\");if(L(t))return p(t)}var f=\"\",y=!1,b=[\"{\",\"}\"];g(t)&&(y=!0,b=[\"[\",\"]\"]);if(A(t)){var w=t.name?\": \"+t.name:\"\";f=\" [Function\"+w+\"]\"}N(t)&&(f=\" \"+RegExp.prototype.toString.call(t)),k(t)&&(f=\" \"+Date.prototype.toUTCString.call(t)),L(t)&&(f=\" \"+p(t));if(o.length!==0||!!y&&t.length!=0){if(r<0)return N(t)?e.stylize(RegExp.prototype.toString.call(t),\"regexp\"):e.stylize(\"[Object]\",\"special\");e.seen.push(t);var E;return y?E=d(e,t,r,u,o):E=o.map(function(n){return v(e,t,r,u,n,y)}),e.seen.pop(),m(E,f,b)}return b[0]+f+b[1]}function h(e,t){if(T(t))return e.stylize(\"undefined\",\"undefined\");if(S(t)){var n=\"'\"+JSON.stringify(t).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return e.stylize(n,\"string\")}if(E(t))return e.stylize(\"\"+t,\"number\");if(y(t))return e.stylize(\"\"+t,\"boolean\");if(b(t))return e.stylize(\"null\",\"null\")}function p(e){return\"[\"+Error.prototype.toString.call(e)+\"]\"}function d(e,t,n,r,i){var s=[];for(var o=0,u=t.length;o<u;++o)H(t,String(o))?s.push(v(e,t,n,r,String(o),!0)):s.push(\"\");return i.forEach(function(i){i.match(/^\\d+$/)||s.push(v(e,t,n,r,i,!0))}),s}function v(e,t,n,r,i,s){var o,u,a;a=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},a.get?a.set?u=e.stylize(\"[Getter/Setter]\",\"special\"):u=e.stylize(\"[Getter]\",\"special\"):a.set&&(u=e.stylize(\"[Setter]\",\"special\")),H(r,i)||(o=\"[\"+i+\"]\"),u||(e.seen.indexOf(a.value)<0?(b(n)?u=c(e,a.value,null):u=c(e,a.value,n-1),u.indexOf(\"\\n\")>-1&&(s?u=u.split(\"\\n\").map(function(e){return\"  \"+e}).join(\"\\n\").substr(2):u=\"\\n\"+u.split(\"\\n\").map(function(e){return\"   \"+e}).join(\"\\n\"))):u=e.stylize(\"[Circular]\",\"special\"));if(T(o)){if(s&&i.match(/^\\d+$/))return u;o=JSON.stringify(\"\"+i),o.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,\"name\")):(o=o.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),o=e.stylize(o,\"string\"))}return o+\": \"+u}function m(e,t,n){var r=0,i=e.reduce(function(e,t){return r++,t.indexOf(\"\\n\")>=0&&r++,e+t.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1},0);return i>60?n[0]+(t===\"\"?\"\":t+\"\\n \")+\" \"+e.join(\",\\n  \")+\" \"+n[1]:n[0]+t+\" \"+e.join(\", \")+\" \"+n[1]}function g(e){return Array.isArray(e)}function y(e){return typeof e==\"boolean\"}function b(e){return e===null}function w(e){return e==null}function E(e){return typeof e==\"number\"}function S(e){return typeof e==\"string\"}function x(e){return typeof e==\"symbol\"}function T(e){return e===void 0}function N(e){return C(e)&&M(e)===\"[object RegExp]\"}function C(e){return typeof e==\"object\"&&e!==null}function k(e){return C(e)&&M(e)===\"[object Date]\"}function L(e){return C(e)&&(M(e)===\"[object Error]\"||e instanceof Error)}function A(e){return typeof e==\"function\"}function O(e){return e===null||typeof e==\"boolean\"||typeof e==\"number\"||typeof e==\"string\"||typeof e==\"symbol\"||typeof e==\"undefined\"}function M(e){return Object.prototype.toString.call(e)}function _(e){return e<10?\"0\"+e.toString(10):e.toString(10)}function P(){var e=new Date,t=[_(e.getHours()),_(e.getMinutes()),_(e.getSeconds())].join(\":\");return[e.getDate(),D[e.getMonth()],t].join(\" \")}function H(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var i=/%[sdj%]/g;n.format=function(e){if(!S(e)){var t=[];for(var n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(\" \")}var n=1,r=arguments,s=r.length,o=String(e).replace(i,function(e){if(e===\"%%\")return\"%\";if(n>=s)return e;switch(e){case\"%s\":return String(r[n++]);case\"%d\":return Number(r[n++]);case\"%j\":try{return JSON.stringify(r[n++])}catch(t){return\"[Circular]\"};default:return e}});for(var a=r[n];n<s;a=r[++n])b(a)||!C(a)?o+=\" \"+a:o+=\" \"+u(a);return o},n.deprecate=function(e,i){function o(){if(!s){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}if(T(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(t.noDeprecation===!0)return e;var s=!1;return o};var s={},o;n.debuglog=function(e){T(o)&&(o=t.env.NODE_DEBUG||\"\"),e=e.toUpperCase();if(!s[e])if((new RegExp(\"\\\\b\"+e+\"\\\\b\",\"i\")).test(o)){var r=t.pid;s[e]=function(){var t=n.format.apply(n,arguments);console.error(\"%s %d: %s\",e,r,t)}}else s[e]=function(){};return s[e]},n.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:\"cyan\",number:\"yellow\",\"boolean\":\"yellow\",\"undefined\":\"grey\",\"null\":\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},n.isArray=g,n.isBoolean=y,n.isNull=b,n.isNullOrUndefined=w,n.isNumber=E,n.isString=S,n.isSymbol=x,n.isUndefined=T,n.isRegExp=N,n.isObject=C,n.isDate=k,n.isError=L,n.isFunction=A,n.isPrimitive=O,n.isBuffer=e(\"./support/isBuffer\");var D=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];n.log=function(){console.log(\"%s - %s\",P(),n.format.apply(n,arguments))},n.inherits=e(\"inherits\"),n._extend=function(e,t){if(!t||!C(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e}}).call(this,e(\"/usr/local/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js\"),typeof self!=\"undefined\"?self:typeof window!=\"undefined\"?window:{})},{\"./support/isBuffer\":14,\"/usr/local/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js\":18,inherits:17}],16:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||undefined}function i(e){return typeof e==\"function\"}function s(e){return typeof e==\"number\"}function o(e){return typeof e==\"object\"&&e!==null}function u(e){return e===void 0}t.exports=r,r.EventEmitter=r,r.prototype._events=undefined,r.prototype._maxListeners=undefined,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!s(e)||e<0||isNaN(e))throw TypeError(\"n must be a positive number\");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,s,a,f;this._events||(this._events={});if(e===\"error\")if(!this._events.error||o(this._events.error)&&!this._events.error.length)throw t=arguments[1],t instanceof Error?t:TypeError('Uncaught, unspecified \"error\" event.');n=this._events[e];if(u(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:r=arguments.length,s=new Array(r-1);for(a=1;a<r;a++)s[a-1]=arguments[a];n.apply(this,s)}else if(o(n)){r=arguments.length,s=new Array(r-1);for(a=1;a<r;a++)s[a-1]=arguments[a];f=n.slice(),r=f.length;for(a=0;a<r;a++)f[a].apply(this,s)}return!0},r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError(\"listener must be a function\");this._events||(this._events={}),this._events.newListener&&this.emit(\"newListener\",e,i(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t;if(o(this._events[e])&&!this._events[e].warned){var n;u(this._maxListeners)?n=r.defaultMaxListeners:n=this._maxListeners,n&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error(\"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.\",this._events[e].length),console.trace())}return this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}if(!i(t))throw TypeError(\"listener must be a function\");var n=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,s,u;if(!i(t))throw TypeError(\"listener must be a function\");if(!this._events||!this._events[e])return this;n=this._events[e],s=n.length,r=-1;if(n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit(\"removeListener\",e,t);else if(o(n)){for(u=s;u-->0;)if(n[u]===t||n[u].listener&&n[u].listener===t){r=u;break}if(r<0)return this;n.length===1?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit(\"removeListener\",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(t in this._events){if(t===\"removeListener\")continue;this.removeAllListeners(t)}return this.removeAllListeners(\"removeListener\"),this._events={},this}n=this._events[e];if(i(n))this.removeListener(e,n);else while(n.length)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return!this._events||!this._events[e]?t=[]:i(this._events[e])?t=[this._events[e]]:t=this._events[e].slice(),t},r.listenerCount=function(e,t){var n;return!e._events||!e._events[t]?n=0:i(e._events[t])?n=1:n=e._events[t].length,n}},{}],17:[function(e,t,n){typeof Object.create==\"function\"?t.exports=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],18:[function(e,t,n){function i(){}var r=t.exports={};r.nextTick=function(){var e=typeof window!=\"undefined\"&&window.setImmediate,t=typeof window!=\"undefined\"&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener(\"message\",function(e){var t=e.source;if((t===window||t===null)&&e.data===\"process-tick\"){e.stopPropagation();if(n.length>0){var r=n.shift();r()}}},!0),function(t){n.push(t),window.postMessage(\"process-tick\",\"*\")}}return function(t){setTimeout(t,0)}}(),r.title=\"browser\",r.browser=!0,r.env={},r.argv=[],r.on=i,r.once=i,r.off=i,r.emit=i,r.binding=function(e){throw new Error(\"process.binding is not supported\")},r.cwd=function(){return\"/\"},r.chdir=function(e){throw new Error(\"process.chdir is not supported\")}},{}],19:[function(e,t,n){t.exports=e(14)},{}],20:[function(e,t,n){t.exports=e(15)},{\"./support/isBuffer\":19,\"/usr/local/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js\":18,inherits:17}]},{},[9])(9)}),define(\"ace/mode/html_worker\",[],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"../lib/lang\"),s=e(\"../worker/mirror\").Mirror,o=e(\"./html/saxparser\").SAXParser,u={\"expected-doctype-but-got-start-tag\":\"info\",\"expected-doctype-but-got-chars\":\"info\",\"non-html-root\":\"info\"},a=t.Worker=function(e){s.call(this,e),this.setTimeout(400),this.context=null};r.inherits(a,s),function(){this.setOptions=function(e){this.context=e.context},this.onUpdate=function(){var e=this.doc.getValue();if(!e)return;var t=new o,n=[],r=function(){};t.contentHandler={startDocument:r,endDocument:r,startElement:r,endElement:r,characters:r},t.errorHandler={error:function(e,t,r){n.push({row:t.line,column:t.column,text:e,type:u[r]||\"error\"})}},this.context?t.parseFragment(e,this.context):t.parse(e),this.sender.emit(\"error\",n)}}.call(a.prototype)}),define(\"ace/lib/es5-shim\",[],function(e,t,n){function r(){}function w(e){try{return Object.defineProperty(e,\"sentinel\",{}),\"sentinel\"in e}catch(t){}}function H(e){return e=+e,e!==e?e=0:e!==0&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}function B(e){var t=typeof e;return e===null||t===\"undefined\"||t===\"boolean\"||t===\"number\"||t===\"string\"}function j(e){var t,n,r;if(B(e))return e;n=e.valueOf;if(typeof n==\"function\"){t=n.call(e);if(B(t))return t}r=e.toString;if(typeof r==\"function\"){t=r.call(e);if(B(t))return t}throw new TypeError}Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!=\"function\")throw new TypeError(\"Function.prototype.bind called on incompatible \"+n);var i=u.call(arguments,1),s=function(){if(this instanceof s){var e=n.apply(this,i.concat(u.call(arguments)));return Object(e)===e?e:this}return n.apply(t,i.concat(u.call(arguments)))};return n.prototype&&(r.prototype=n.prototype,s.prototype=new r,r.prototype=null),s});var i=Function.prototype.call,s=Array.prototype,o=Object.prototype,u=s.slice,a=i.bind(o.toString),f=i.bind(o.hasOwnProperty),l,c,h,p,d;if(d=f(o,\"__defineGetter__\"))l=i.bind(o.__defineGetter__),c=i.bind(o.__defineSetter__),h=i.bind(o.__lookupGetter__),p=i.bind(o.__lookupSetter__);if([1,2].splice(0).length!=2)if(!function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t=[],n;t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,\"XXX\"),n+1==t.length;if(n+1==t.length)return!0}())Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):e==void 0?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=u.call(arguments,2),s=i.length;if(e===n)s&&this.push.apply(this,i);else{var o=Math.min(t,n-e),a=e+o,f=a+s-o,l=n-a,c=n-o;if(f<a)for(var h=0;h<l;++h)this[f+h]=this[a+h];else if(f>a)for(h=l;h--;)this[f+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,i);else{this.length=c+s;for(h=0;h<s;++h)this[e+h]=i[h]}}return r};else{var v=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?v.apply(this,[e===void 0?0:e,t===void 0?this.length-e:t].concat(u.call(arguments,2))):[]}}Array.isArray||(Array.isArray=function(t){return a(t)==\"[object Array]\"});var m=Object(\"a\"),g=m[0]!=\"a\"||!(0 in m);Array.prototype.forEach||(Array.prototype.forEach=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=arguments[1],s=-1,o=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError;while(++s<o)s in r&&t.call(i,r[s],s,n)}),Array.prototype.map||(Array.prototype.map=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=Array(i),o=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var u=0;u<i;u++)u in r&&(s[u]=t.call(o,r[u],u,n));return s}),Array.prototype.filter||(Array.prototype.filter=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=[],o,u=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var f=0;f<i;f++)f in r&&(o=r[f],t.call(u,o,f,n)&&s.push(o));return s}),Array.prototype.every||(Array.prototype.every=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&!t.call(s,r[o],o,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&t.call(s,r[o],o,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduce of empty array with no initial value\");var s=0,o;if(arguments.length>=2)o=arguments[1];else do{if(s in r){o=r[s++];break}if(++s>=i)throw new TypeError(\"reduce of empty array with no initial value\")}while(!0);for(;s<i;s++)s in r&&(o=t.call(void 0,o,r[s],s,n));return o}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduceRight of empty array with no initial value\");var s,o=i-1;if(arguments.length>=2)s=arguments[1];else do{if(o in r){s=r[o--];break}if(--o<0)throw new TypeError(\"reduceRight of empty array with no initial value\")}while(!0);do o in this&&(s=t.call(void 0,s,r[o],o,n));while(o--);return s});if(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)Array.prototype.indexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=0;arguments.length>1&&(i=H(arguments[1])),i=i>=0?i:Math.max(0,r+i);for(;i<r;i++)if(i in n&&n[i]===t)return i;return-1};if(!Array.prototype.lastIndexOf||[0,1].lastIndexOf(0,-3)!=-1)Array.prototype.lastIndexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=r-1;arguments.length>1&&(i=Math.min(i,H(arguments[1]))),i=i>=0?i:r-Math.abs(i);for(;i>=0;i--)if(i in n&&t===n[i])return i;return-1};Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:o)});if(!Object.getOwnPropertyDescriptor){var y=\"Object.getOwnPropertyDescriptor called on a non-object: \";Object.getOwnPropertyDescriptor=function(t,n){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(y+t);if(!f(t,n))return;var r,i,s;r={enumerable:!0,configurable:!0};if(d){var u=t.__proto__;t.__proto__=o;var i=h(t,n),s=p(t,n);t.__proto__=u;if(i||s)return i&&(r.get=i),s&&(r.set=s),r}return r.value=t[n],r}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)});if(!Object.create){var b;Object.prototype.__proto__===null?b=function(){return{__proto__:null}}:b=function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(t,n){var r;if(t===null)r=b();else{if(typeof t!=\"object\")throw new TypeError(\"typeof prototype[\"+typeof t+\"] != 'object'\");var i=function(){};i.prototype=t,r=new i,r.__proto__=t}return n!==void 0&&Object.defineProperties(r,n),r}}if(Object.defineProperty){var E=w({}),S=typeof document==\"undefined\"||w(document.createElement(\"div\"));if(!E||!S)var x=Object.defineProperty}if(!Object.defineProperty||x){var T=\"Property description must be an object: \",N=\"Object.defineProperty called on non-object: \",C=\"getters & setters can not be defined on this javascript engine\";Object.defineProperty=function(t,n,r){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(N+t);if(typeof r!=\"object\"&&typeof r!=\"function\"||r===null)throw new TypeError(T+r);if(x)try{return x.call(Object,t,n,r)}catch(i){}if(f(r,\"value\"))if(d&&(h(t,n)||p(t,n))){var s=t.__proto__;t.__proto__=o,delete t[n],t[n]=r.value,t.__proto__=s}else t[n]=r.value;else{if(!d)throw new TypeError(C);f(r,\"get\")&&l(t,n,r.get),f(r,\"set\")&&c(t,n,r.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,n){for(var r in n)f(n,r)&&Object.defineProperty(t,r,n[r]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(k){Object.freeze=function(t){return function(n){return typeof n==\"function\"?n:t(n)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;var n=\"\";while(f(t,n))n+=\"?\";t[n]=!0;var r=f(t,n);return delete t[n],r});if(!Object.keys){var L=!0,A=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],O=A.length;for(var M in{toString:null})L=!1;Object.keys=function I(e){if(typeof e!=\"object\"&&typeof e!=\"function\"||e===null)throw new TypeError(\"Object.keys called on a non-object\");var I=[];for(var t in e)f(e,t)&&I.push(t);if(L)for(var n=0,r=O;n<r;n++){var i=A[n];f(e,i)&&I.push(i)}return I}}Date.now||(Date.now=function(){return(new Date).getTime()});var _=\"\t\\n\\x0b\\f\\r \\u00a0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029\\ufeff\";if(!String.prototype.trim){_=\"[\"+_+\"]\";var D=new RegExp(\"^\"+_+_+\"*\"),P=new RegExp(_+_+\"*$\");String.prototype.trim=function(){return String(this).replace(D,\"\").replace(P,\"\")}}var F=function(e){if(e==null)throw new TypeError(\"can't convert \"+e+\" to object\");return Object(e)}})"
  },
  {
    "path": "pyp5js/http_local/static/js/ace/worker-javascript.js",
    "content": "\"no use strict\";!function(e){function t(e,t){var n=e,r=\"\";while(n){var i=t[n];if(typeof i==\"string\")return i+r;if(i)return i.location.replace(/\\/*$/,\"/\")+(r||i.main||i.name);if(i===!1)return\"\";var s=n.lastIndexOf(\"/\");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!=\"undefined\"&&e.document)return;if(e.require&&e.define)return;e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:\"log\",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:\"error\",data:{message:e,data:i.data,file:t,line:n,col:r,stack:i.stack}})},e.normalizeModule=function(t,n){if(n.indexOf(\"!\")!==-1){var r=n.split(\"!\");return e.normalizeModule(t,r[0])+\"!\"+e.normalizeModule(t,r[1])}if(n.charAt(0)==\".\"){var i=t.split(\"/\").slice(0,-1).join(\"/\");n=(i?i+\"/\":\"\")+n;while(n.indexOf(\".\")!==-1&&s!=n){var s=n;n=n.replace(/^\\.\\//,\"\").replace(/\\/\\.\\//,\"/\").replace(/[^\\/]+\\/\\.\\.\\//,\"\")}}return n},e.require=function(r,i){i||(i=r,r=null);if(!i.charAt)throw new Error(\"worker.js require() accepts only (parentId, id) as arguments\");i=e.normalizeModule(r,i);var s=e.require.modules[i];if(s)return s.initialized||(s.initialized=!0,s.exports=s.factory().exports),s.exports;if(!e.require.tlns)return console.log(\"unable to load \"+i);var o=t(i,e.require.tlns);return o.slice(-3)!=\".js\"&&(o+=\".js\"),e.require.id=i,e.require.modules[i]={},importScripts(o),e.require(r,i)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){arguments.length==2?(r=n,typeof t!=\"string\"&&(n=t,t=e.require.id)):arguments.length==1&&(r=t,n=[],t=e.require.id);if(typeof r!=\"function\"){e.require.modules[t]={exports:r,initialized:!0};return}n.length||(n=[\"require\",\"exports\",\"module\"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case\"require\":return i;case\"exports\":return e.exports;case\"module\":return e;default:return i(t)}}));return t&&(e.exports=t),e}}},e.define.amd={},require.tlns={},e.initBaseUrls=function(t){for(var n in t)require.tlns[n]=t[n]},e.initSender=function(){var n=e.require(\"ace/lib/event_emitter\").EventEmitter,r=e.require(\"ace/lib/oop\"),i=function(){};return function(){r.implement(this,n),this.callback=function(e,t){postMessage({type:\"call\",id:t,data:e})},this.emit=function(e,t){postMessage({type:\"event\",name:e,data:t})}}.call(i.prototype),new i};var n=e.main=null,r=e.sender=null;e.onmessage=function(t){var i=t.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw new Error(\"Unknown command:\"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),require(\"ace/lib/es5-shim\"),r=e.sender=e.initSender();var s=require(i.module)[i.classname];n=e.main=new s(r)}}}(this),define(\"ace/lib/oop\",[],function(e,t,n){\"use strict\";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),define(\"ace/range\",[],function(e,t,n){\"use strict\";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return\"Range: [\"+this.start.row+\"/\"+this.start.column+\"] -> [\"+this.end.row+\"/\"+this.end.column+\"]\"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e==\"object\"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e==\"object\"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?t<this.start.column?-1:t>this.end.column?1:0:e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)var n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)var r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(n==0)return this;if(n==-1)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define(\"ace/apply_delta\",[],function(e,t,n){\"use strict\";function r(e,t){throw console.log(\"Invalid Delta:\",e),\"Invalid Delta: \"+t}function i(e,t){return t.row>=0&&t.row<e.length&&t.column>=0&&t.column<=e[t.row].length}function s(e,t){t.action!=\"insert\"&&t.action!=\"remove\"&&r(t,\"delta.action must be 'insert' or 'remove'\"),t.lines instanceof Array||r(t,\"delta.lines must be an Array\"),(!t.start||!t.end)&&r(t,\"delta.start/end must be an present\");var n=t.start;i(e,t.start)||r(t,\"delta.start must be contained in document\");var s=t.end;t.action==\"remove\"&&!i(e,s)&&r(t,\"delta.end must contained in document for 'remove' actions\");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,\"delta.range must match delta lines\")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||\"\";switch(t.action){case\"insert\":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case\"remove\":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),define(\"ace/lib/event_emitter\",[],function(e,t,n){\"use strict\";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!=\"object\"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length;o++){n[o](t,this);if(t.propagationStopped)break}if(r&&!t.defaultPrevented)return r(t,this)},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(!n)return;n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)},r.once=function(e,t){var n=this;this.on(e,function r(){n.off(e,r),t.apply(null,arguments)});if(!t)return new Promise(function(e){t=e})},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;n||(n=this._defaultHandlers={_disabled_:{}});if(n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var s=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(!n)return;var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);i!=-1&&r.splice(i,1)}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?\"unshift\":\"push\"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(!n)return;var r=n.indexOf(t);r!==-1&&n.splice(r,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=r}),define(\"ace/anchor\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),typeof n==\"undefined\"?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i=t.action==\"insert\",s=(i?1:-1)*(t.end.row-t.start.row),o=(i?1:-1)*(t.end.column-t.start.column),u=t.start,a=i?u:t.end;return e(n,u,r)?{row:n.row,column:n.column}:e(a,n,!r)?{row:n.row+s,column:n.column+(n.row==a.row?o:0)}:{row:u.row,column:u.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(e.start.row==e.end.row&&e.start.row!=this.row)return;if(e.start.row>this.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal(\"change\",{old:i,value:r})},this.detach=function(){this.document.off(\"change\",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on(\"change\",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),define(\"ace/document\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./apply_delta\").applyDelta,s=e(\"./lib/event_emitter\").EventEmitter,o=e(\"./range\").Range,u=e(\"./anchor\").Anchor,a=function(e){this.$lines=[\"\"],e.length===0?this.$lines=[\"\"]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},\"aaa\".split(/a/).length===0?this.$split=function(e){return e.replace(/\\r\\n|\\r/g,\"\\n\").split(\"\\n\")}:this.$split=function(e){return e.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=t?t[1]:\"\\n\",this._signal(\"changeNewLineMode\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\"windows\":return\"\\r\\n\";case\"unix\":return\"\\n\";default:return this.$autoNewLine||\"\\n\"}},this.$autoNewLine=\"\",this.$newLineMode=\"auto\",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal(\"changeNewLineMode\")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==\"\\r\\n\"||e==\"\\r\"||e==\"\\n\"},this.getLine=function(e){return this.$lines[e]||\"\"},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||\"\").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\"),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\"),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\"),this.insertMergedLines(e,[\"\",\"\"])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:\"insert\",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([\"\"]),n=0):(t=[\"\"].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(t.length==1?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:\"insert\",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:\"remove\",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:\"remove\",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=new o(i,s,u,a),l=this.$lines.slice(e,t+1);return this.applyDelta({start:f.start,end:f.end,action:\"remove\",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:\"remove\",lines:[\"\",\"\"]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action==\"insert\";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal(\"change\",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action==\"remove\"&&e.start.row<t&&e.end.row<t||e.action==\"insert\"&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length-t+1,i=e.start.row,s=e.start.column;for(var o=0,u=0;o<r;o=u){u+=t-1;var a=n.slice(o,u);a.push(\"\"),this.applyDelta({start:this.pos(i+o,s),end:this.pos(i+u,s=0),action:e.action,lines:a},!0)}e.lines=n.slice(o),e.start.row=i+o,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action==\"insert\"?\"remove\":\"insert\",lines:e.lines.slice()})},this.indexToPosition=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length;for(var i=t||0,s=n.length;i<s;i++){e-=n[i].length+r;if(e<0)return{row:i,column:e+n[i].length+r}}return{row:s-1,column:e+n[s-1].length+r}},this.positionToIndex=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length);for(var o=t||0;o<s;++o)i+=n[o].length+r;return i+e.column}}).call(a.prototype),t.Document=a}),define(\"ace/lib/lang\",[],function(e,t,n){\"use strict\";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split(\"\").reverse().join(\"\")},t.stringRepeat=function(e,t){var n=\"\";while(t>0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\\s\\s*/,i=/\\s\\s*$/;t.stringTrimLeft=function(e){return e.replace(r,\"\")},t.stringTrimRight=function(e){return e.replace(i,\"\")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)e[n]&&typeof e[n]==\"object\"?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function s(e){if(typeof e!=\"object\"||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=s(e[n]);return t}if(Object.prototype.toString.call(e)!==\"[object Object]\")return e;t={};for(var n in e)t[n]=s(e[n]);return t},t.arrayToMap=function(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\")},t.escapeHTML=function(e){return(\"\"+e).replace(/&/g,\"&#38;\").replace(/\"/g,\"&#34;\").replace(/'/g,\"&#39;\").replace(/</g,\"&#60;\")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){n==null&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),define(\"ace/worker/mirror\",[],function(e,t,n){\"use strict\";var r=e(\"../range\").Range,i=e(\"../document\").Document,s=e(\"../lib/lang\"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new i(\"\"),n=this.deferredUpdate=s.delayedCall(this.onUpdate.bind(this)),r=this;e.on(\"change\",function(e){var i=e.data;if(i[0].start)t.applyDeltas(i);else for(var s=0;s<i.length;s+=2){if(Array.isArray(i[s+1]))var o={action:\"insert\",start:i[s],lines:i[s+1]};else var o={action:\"remove\",start:i[s],end:i[s+1]};t.applyDelta(o,!0)}if(r.$timeout)return n.schedule(r.$timeout);r.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),define(\"ace/mode/javascript/jshint\",[],function(e,t,n){n.exports=function r(t,n,i){function o(u,a){if(!n[u]){if(!t[u]){var f=typeof e==\"function\"&&e;if(!a&&f)return f(u,!0);if(s)return s(u,!0);var l=new Error(\"Cannot find module '\"+u+\"'\");throw l.code=\"MODULE_NOT_FOUND\",l}var c=n[u]={exports:{}};t[u][0].call(c.exports,function(e){var n=t[u][1][e];return o(n?n:e)},c,c.exports,r,t,n,i)}return n[u].exports}var s=typeof e==\"function\"&&e;for(var u=0;u<i.length;u++)o(i[u]);return o(i[0])}({\"/node_modules/browserify/node_modules/events/events.js\":[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||undefined}function i(e){return typeof e==\"function\"}function s(e){return typeof e==\"number\"}function o(e){return typeof e==\"object\"&&e!==null}function u(e){return e===void 0}t.exports=r,r.EventEmitter=r,r.prototype._events=undefined,r.prototype._maxListeners=undefined,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!s(e)||e<0||isNaN(e))throw TypeError(\"n must be a positive number\");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,s,a,f;this._events||(this._events={});if(e===\"error\")if(!this._events.error||o(this._events.error)&&!this._events.error.length)throw t=arguments[1],t instanceof Error?t:TypeError('Uncaught, unspecified \"error\" event.');n=this._events[e];if(u(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:r=arguments.length,s=new Array(r-1);for(a=1;a<r;a++)s[a-1]=arguments[a];n.apply(this,s)}else if(o(n)){r=arguments.length,s=new Array(r-1);for(a=1;a<r;a++)s[a-1]=arguments[a];f=n.slice(),r=f.length;for(a=0;a<r;a++)f[a].apply(this,s)}return!0},r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError(\"listener must be a function\");this._events||(this._events={}),this._events.newListener&&this.emit(\"newListener\",e,i(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t;if(o(this._events[e])&&!this._events[e].warned){var n;u(this._maxListeners)?n=r.defaultMaxListeners:n=this._maxListeners,n&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error(\"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.\",this._events[e].length),typeof console.trace==\"function\"&&console.trace())}return this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}if(!i(t))throw TypeError(\"listener must be a function\");var n=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,s,u;if(!i(t))throw TypeError(\"listener must be a function\");if(!this._events||!this._events[e])return this;n=this._events[e],s=n.length,r=-1;if(n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit(\"removeListener\",e,t);else if(o(n)){for(u=s;u-->0;)if(n[u]===t||n[u].listener&&n[u].listener===t){r=u;break}if(r<0)return this;n.length===1?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit(\"removeListener\",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(t in this._events){if(t===\"removeListener\")continue;this.removeAllListeners(t)}return this.removeAllListeners(\"removeListener\"),this._events={},this}n=this._events[e];if(i(n))this.removeListener(e,n);else while(n.length)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return!this._events||!this._events[e]?t=[]:i(this._events[e])?t=[this._events[e]]:t=this._events[e].slice(),t},r.listenerCount=function(e,t){var n;return!e._events||!e._events[t]?n=0:i(e._events[t])?n=1:n=e._events[t].length,n}},{}],\"/node_modules/jshint/data/ascii-identifier-data.js\":[function(e,t,n){var r=[];for(var i=0;i<128;i++)r[i]=i===36||i>=65&&i<=90||i===95||i>=97&&i<=122;var s=[];for(var i=0;i<128;i++)s[i]=r[i]||i>=48&&i<=57;t.exports={asciiIdentifierStartTable:r,asciiIdentifierPartTable:s}},{}],\"/node_modules/jshint/lodash.js\":[function(e,t,n){(function(e){(function(){function $(e,t,n){var r=e.length,i=n?r:-1;while(n?i--:++i<r)if(t(e[i],i,e))return i;return-1}function J(e,t,n){if(t!==t)return G(e,n);var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function K(e){return typeof e==\"function\"||!1}function Q(e){return typeof e==\"string\"?e:e==null?\"\":e+\"\"}function G(e,t,n){var r=e.length,i=t+(n?0:-1);while(n?i--:++i<r){var s=e[i];if(s!==s)return i}return-1}function Y(e){return!!e&&typeof e==\"object\"}function Ct(){}function Lt(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}function At(e,t){var n=-1,r=e.length;while(++n<r)if(t(e[n],n,e)===!1)break;return e}function Ot(e,t){var n=-1,r=e.length,i=-1,s=[];while(++n<r){var o=e[n];t(o,n,e)&&(s[++i]=o)}return s}function Mt(e,t){var n=-1,r=e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function _t(e){var t=-1,n=e.length,r=wt;while(++t<n){var i=e[t];i>r&&(r=i)}return r}function Dt(e,t){var n=-1,r=e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}function Pt(e,t,n){var i=rr(t);lt.apply(i,bn(t));var s=-1,o=i.length;while(++s<o){var u=i[s],a=e[u],f=n(a,t[u],u,e,t);if((f===f?f!==a:a===a)||a===r&&!(u in e))e[u]=f}return e}function Bt(e,t,n){n||(n={});var r=-1,i=t.length;while(++r<i){var s=t[r];n[s]=e[s]}return n}function jt(e,t,n){var i=typeof e;return i==\"function\"?t===r?e:on(e,t,n):e==null?lr:i==\"object\"?Jt(e):t===r?cr(e):Kt(e,t)}function Ft(e,t,n,i,s,u,a){var f;n&&(f=s?n(e,i,s):n(e));if(f!==r)return f;if(!Jn(e))return e;var l=Xn(e);if(l){f=wn(e);if(!t)return Lt(e,f)}else{var h=rt.call(e),p=h==c;if(!(h==d||h==o||p&&!s))return F[h]?Sn(e,h,t):s?e:{};f=En(p?{}:e);if(!t)return Ht(f,e)}u||(u=[]),a||(a=[]);var v=u.length;while(v--)if(u[v]==e)return a[v];return u.push(e),a.push(f),(l?At:zt)(e,function(r,i){f[i]=Ft(r,t,n,i,e,u,a)}),f}function qt(e,t){var n=[];return It(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Ut(e,t){return Rt(e,t,ir)}function zt(e,t){return Rt(e,t,rr)}function Wt(e,t,n){if(e==null)return;n!==r&&n in On(e)&&(t=[n]);var i=-1,s=t.length;while(e!=null&&++i<s)var o=e=e[t[i]];return o}function Xt(e,t,n,r,i,s){if(e===t)return e!==0||1/e==1/t;var o=typeof e,u=typeof t;return o!=\"function\"&&o!=\"object\"&&u!=\"function\"&&u!=\"object\"||e==null||t==null?e!==e&&t!==t:Vt(e,t,Xt,n,r,i,s)}function Vt(e,t,n,r,i,s,a){var f=Xn(e),l=Xn(t),c=u,h=u;f||(c=rt.call(e),c==o?c=d:c!=d&&(f=Zn(e))),l||(h=rt.call(t),h==o?h=d:h!=d&&(l=Zn(t)));var p=c==d,v=h==d,m=c==h;if(m&&!f&&!p)return dn(e,t,c);if(!i){var g=p&&nt.call(e,\"__wrapped__\"),y=v&&nt.call(t,\"__wrapped__\");if(g||y)return n(g?e.value():e,y?t.value():t,r,i,s,a)}if(!m)return!1;s||(s=[]),a||(a=[]);var b=s.length;while(b--)if(s[b]==e)return a[b]==t;s.push(e),a.push(t);var w=(f?pn:vn)(e,t,n,r,i,s,a);return s.pop(),a.pop(),w}function $t(e,t,n,i,s){var o=-1,u=t.length,a=!s;while(++o<u)if(a&&i[o]?n[o]!==e[t[o]]:!(t[o]in e))return!1;o=-1;while(++o<u){var f=t[o],l=e[f],c=n[o];if(a&&i[o])var h=l!==r||f in e;else h=s?s(l,c,f):r,h===r&&(h=Xt(c,l,s,!0));if(!h)return!1}return!0}function Jt(e){var t=rr(e),n=t.length;if(!n)return fr(!0);if(n==1){var i=t[0],s=e[i];if(kn(s))return function(e){return e==null?!1:e[i]===s&&(s!==r||i in On(e))}}var o=Array(n),u=Array(n);while(n--)s=e[t[n]],o[n]=s,u[n]=kn(s);return function(e){return e!=null&&$t(On(e),t,o,u)}}function Kt(e,t){var n=Xn(e),i=Nn(e)&&kn(t),s=e+\"\";return e=Mn(e),function(o){if(o==null)return!1;var u=s;o=On(o);if((n||!i)&&!(u in o)){o=e.length==1?o:Wt(o,en(e,0,-1));if(o==null)return!1;u=Pn(e),o=On(o)}return o[u]===t?t!==r||u in o:Xt(t,o[u],null,!0)}}function Qt(e,t,n,i,s){if(!Jn(e))return e;var o=Cn(t.length)&&(Xn(t)||Zn(t));if(!o){var u=rr(t);lt.apply(u,bn(t))}return At(u||t,function(a,f){u&&(f=a,a=t[f]);if(Y(a))i||(i=[]),s||(s=[]),Gt(e,t,f,Qt,n,i,s);else{var l=e[f],c=n?n(l,a,f,e,t):r,h=c===r;h&&(c=a),(o||c!==r)&&(h||(c===c?c!==l:l===l))&&(e[f]=c)}}),e}function Gt(e,t,n,i,s,o,u){var a=o.length,f=t[n];while(a--)if(o[a]==f){e[n]=u[a];return}var l=e[n],c=s?s(l,f,n,e,t):r,h=c===r;h&&(c=f,Cn(f.length)&&(Xn(f)||Zn(f))?c=Xn(l)?l:yn(l)?Lt(l):[]:Gn(f)||Wn(f)?c=Wn(l)?er(l):Gn(l)?l:{}:h=!1),o.push(f),u.push(c);if(h)e[n]=i(c,f,s,o,u);else if(c===c?c!==l:l===l)e[n]=c}function Yt(e){return function(t){return t==null?r:t[e]}}function Zt(e){var t=e+\"\";return e=Mn(e),function(n){return Wt(n,e,t)}}function en(e,t,n){var i=-1,s=e.length;t=t==null?0:+t||0,t<0&&(t=-t>s?0:s+t),n=n===r||n>s?s:+n||0,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;var o=Array(s);while(++i<s)o[i]=e[i+t];return o}function tn(e,t){var n;return It(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function nn(e,t){var n=-1,r=t.length,i=Array(r);while(++n<r)i[n]=e[t[n]];return i}function rn(e,t,n){var r=0,i=e?e.length:r;if(typeof t==\"number\"&&t===t&&i<=xt){while(r<i){var s=r+i>>>1,o=e[s];(n?o<=t:o<t)?r=s+1:i=s}return i}return sn(e,t,lr,n)}function sn(e,t,n,i){t=n(t);var s=0,o=e?e.length:0,u=t!==t,a=t===r;while(s<o){var f=ut((s+o)/2),l=n(e[f]),c=l===l;if(u)var h=c||i;else a?h=c&&(i||l!==r):h=i?l<=t:l<t;h?s=f+1:o=f}return bt(o,St)}function on(e,t,n){if(typeof e!=\"function\")return lr;if(t===r)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,s){return e.call(t,n,r,i,s)};case 5:return function(n,r,i,s,o){return e.call(t,n,r,i,s,o)}}return function(){return e.apply(t,arguments)}}function un(e){return ot.call(e,0)}function an(e){return Un(function(t,n){var r=-1,i=t==null?0:n.length,s=i>2&&n[i-2],o=i>2&&n[2],u=i>1&&n[i-1];typeof s==\"function\"?(s=on(s,u,5),i-=2):(s=typeof u==\"function\"?u:null,i-=s?1:0),o&&Tn(n[0],n[1],o)&&(s=i<3?null:s,i=1);while(++r<i){var a=n[r];a&&e(t,a,s)}return t})}function fn(e,t){return function(n,r){var i=n?yn(n):0;if(!Cn(i))return e(n,r);var s=t?i:-1,o=On(n);while(t?s--:++s<i)if(r(o[s],s,o)===!1)break;return n}}function ln(e){return function(t,n,r){var i=On(t),s=r(t),o=s.length,u=e?o:-1;while(e?u--:++u<o){var a=s[u];if(n(i[a],a,i)===!1)break}return t}}function cn(e){return function(t,n,r){return!t||!t.length?-1:(n=mn(n,r,3),$(t,n,e))}}function hn(e,t){return function(n,i,s){return typeof i==\"function\"&&s===r&&Xn(n)?e(n,i):t(n,on(i,s,3))}}function pn(e,t,n,i,s,o,u){var a=-1,f=e.length,l=t.length,c=!0;if(f!=l&&!(s&&l>f))return!1;while(c&&++a<f){var h=e[a],p=t[a];c=r,i&&(c=s?i(p,h,a):i(h,p,a));if(c===r)if(s){var d=l;while(d--){p=t[d],c=h&&h===p||n(h,p,i,s,o,u);if(c)break}}else c=h&&h===p||n(h,p,i,s,o,u)}return!!c}function dn(e,t,n){switch(n){case a:case f:return+e==+t;case l:return e.name==t.name&&e.message==t.message;case p:return e!=+e?t!=+t:e==0?1/e==1/t:e==+t;case v:case g:return e==t+\"\"}return!1}function vn(e,t,n,i,s,o,u){var a=rr(e),f=a.length,l=rr(t),c=l.length;if(f!=c&&!s)return!1;var h=s,p=-1;while(++p<f){var d=a[p],v=s?d in t:nt.call(t,d);if(v){var m=e[d],g=t[d];v=r,i&&(v=s?i(g,m,d):i(m,g,d)),v===r&&(v=m&&m===g||n(m,g,i,s,o,u))}if(!v)return!1;h||(h=d==\"constructor\")}if(!h){var y=e.constructor,b=t.constructor;if(y!=b&&\"constructor\"in e&&\"constructor\"in t&&!(typeof y==\"function\"&&y instanceof y&&typeof b==\"function\"&&b instanceof b))return!1}return!0}function mn(e,t,n){var r=Ct.callback||ar;return r=r===ar?jt:r,n?r(e,t,n):r}function gn(e,t,n){var r=Ct.indexOf||Dn;return r=r===Dn?J:r,e?r(e,t,n):r}function wn(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==\"string\"&&nt.call(e,\"index\")&&(n.index=e.index,n.input=e.input),n}function En(e){var t=e.constructor;return typeof t==\"function\"&&t instanceof t||(t=Object),new t}function Sn(e,t,n){var r=e.constructor;switch(t){case b:return un(e);case a:case f:return new r(+e);case w:case E:case S:case x:case T:case N:case C:case k:case L:var i=e.buffer;return new r(n?un(i):i,e.byteOffset,e.length);case p:case g:return new r(e);case v:var s=new r(e.source,H.exec(e));s.lastIndex=e.lastIndex}return s}function xn(e,t){return e=+e,t=t==null?Nt:t,e>-1&&e%1==0&&e<t}function Tn(e,t,n){if(!Jn(n))return!1;var r=typeof t;if(r==\"number\")var i=yn(n),s=Cn(i)&&xn(t,i);else s=r==\"string\"&&t in n;if(s){var o=n[t];return e===e?e===o:o!==o}return!1}function Nn(e,t){var n=typeof e;if(n==\"string\"&&O.test(e)||n==\"number\")return!0;if(Xn(e))return!1;var r=!A.test(e);return r||t!=null&&e in On(t)}function Cn(e){return typeof e==\"number\"&&e>-1&&e%1==0&&e<=Nt}function kn(e){return e===e&&(e===0?1/e>0:!Jn(e))}function Ln(e){var t,n=Ct.support;if(!Y(e)||rt.call(e)!=d||!nt.call(e,\"constructor\")&&(t=e.constructor,typeof t==\"function\"&&!(t instanceof t)))return!1;var i;return Ut(e,function(e,t){i=t}),i===r||nt.call(e,i)}function An(e){var t=ir(e),n=t.length,r=n&&e.length,i=Ct.support,s=r&&Cn(r)&&(Xn(e)||i.nonEnumArgs&&Wn(e)),o=-1,u=[];while(++o<n){var a=t[o];(s&&xn(a,r)||nt.call(e,a))&&u.push(a)}return u}function On(e){return Jn(e)?e:Object(e)}function Mn(e){if(Xn(e))return e;var t=[];return Q(e).replace(M,function(e,n,r,i){t.push(r?i.replace(P,\"$1\"):n||e)}),t}function Dn(e,t,n){var r=e?e.length:0;if(!r)return-1;if(typeof n==\"number\")n=n<0?yt(r+n,0):n;else if(n){var i=rn(e,t),s=e[i];return(t===t?t===s:s!==s)?i:-1}return J(e,t,n||0)}function Pn(e){var t=e?e.length:0;return t?e[t-1]:r}function Hn(e,t,n){var r=e?e.length:0;return r?(n&&typeof n!=\"number\"&&Tn(e,t,n)&&(t=0,n=r),en(e,t,n)):[]}function Bn(e){var t=-1,n=(e&&e.length&&_t(Mt(e,yn)))>>>0,r=Array(n);while(++t<n)r[t]=Mt(e,Yt(t));return r}function In(e,t,n,r){var i=e?yn(e):0;return Cn(i)||(e=or(e),i=e.length),i?(typeof n!=\"number\"||r&&Tn(t,n,r)?n=0:n=n<0?yt(i+n,0):n||0,typeof e==\"string\"||!Xn(e)&&Yn(e)?n<i&&e.indexOf(t,n)>-1:gn(e,t,n)>-1):!1}function qn(e,t,n){var r=Xn(e)?Ot:qt;return t=mn(t,n,3),r(e,function(e,n,r){return!t(e,n,r)})}function Rn(e,t,n){var i=Xn(e)?Dt:tn;n&&Tn(e,t,n)&&(t=null);if(typeof t!=\"function\"||n!==r)t=mn(t,n,3);return i(e,t)}function Un(e,t){if(typeof e!=\"function\")throw new TypeError(s);return t=yt(t===r?e.length-1:+t||0,0),function(){var n=arguments,r=-1,i=yt(n.length-t,0),s=Array(i);while(++r<i)s[r]=n[t+r];switch(t){case 0:return e.call(this,s);case 1:return e.call(this,n[0],s);case 2:return e.call(this,n[0],n[1],s)}var o=Array(t+1);r=-1;while(++r<t)o[r]=n[r];return o[t]=s,e.apply(this,o)}}function zn(e,t,n,r){return t&&typeof t!=\"boolean\"&&Tn(e,t,n)?t=!1:typeof t==\"function\"&&(r=n,n=t,t=!1),n=typeof n==\"function\"&&on(n,r,1),Ft(e,t,n)}function Wn(e){var t=Y(e)?e.length:r;return Cn(t)&&rt.call(e)==o}function Vn(e){if(e==null)return!0;var t=yn(e);return Cn(t)&&(Xn(e)||Yn(e)||Wn(e)||Y(e)&&$n(e.splice))?!t:!rr(e).length}function Jn(e){var t=typeof e;return t==\"function\"||!!e&&t==\"object\"}function Kn(e){return e==null?!1:rt.call(e)==c?it.test(tt.call(e)):Y(e)&&B.test(e)}function Qn(e){return typeof e==\"number\"||Y(e)&&rt.call(e)==p}function Yn(e){return typeof e==\"string\"||Y(e)&&rt.call(e)==g}function Zn(e){return Y(e)&&Cn(e.length)&&!!j[rt.call(e)]}function er(e){return Bt(e,ir(e))}function nr(e,t){if(e==null)return!1;var n=nt.call(e,t);return!n&&!Nn(t)&&(t=Mn(t),e=t.length==1?e:Wt(e,en(t,0,-1)),t=Pn(t),n=e!=null&&nt.call(e,t)),n}function ir(e){if(e==null)return[];Jn(e)||(e=Object(e));var t=e.length;t=t&&Cn(t)&&(Xn(e)||kt.nonEnumArgs&&Wn(e))&&t||0;var n=e.constructor,r=-1,i=typeof n==\"function\"&&n.prototype===e,s=Array(t),o=t>0;while(++r<t)s[r]=r+\"\";for(var u in e)(!o||!xn(u,t))&&(u!=\"constructor\"||!i&&!!nt.call(e,u))&&s.push(u);return s}function or(e){return nn(e,rr(e))}function ur(e){return e=Q(e),e&&D.test(e)?e.replace(_,\"\\\\$&\"):e}function ar(e,t,n){return n&&Tn(e,t,n)&&(t=null),jt(e,t)}function fr(e){return function(){return e}}function lr(e){return e}function cr(e){return Nn(e)?Yt(e):Zt(e)}var r,i=\"3.7.0\",s=\"Expected a function\",o=\"[object Arguments]\",u=\"[object Array]\",a=\"[object Boolean]\",f=\"[object Date]\",l=\"[object Error]\",c=\"[object Function]\",h=\"[object Map]\",p=\"[object Number]\",d=\"[object Object]\",v=\"[object RegExp]\",m=\"[object Set]\",g=\"[object String]\",y=\"[object WeakMap]\",b=\"[object ArrayBuffer]\",w=\"[object Float32Array]\",E=\"[object Float64Array]\",S=\"[object Int8Array]\",x=\"[object Int16Array]\",T=\"[object Int32Array]\",N=\"[object Uint8Array]\",C=\"[object Uint8ClampedArray]\",k=\"[object Uint16Array]\",L=\"[object Uint32Array]\",A=/\\.|\\[(?:[^[\\]]+|([\"'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?)\\1\\]/,O=/^\\w*$/,M=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,_=/[.*+?^${}()|[\\]\\/\\\\]/g,D=RegExp(_.source),P=/\\\\(\\\\)?/g,H=/\\w*$/,B=/^\\[object .+?Constructor\\]$/,j={};j[w]=j[E]=j[S]=j[x]=j[T]=j[N]=j[C]=j[k]=j[L]=!0,j[o]=j[u]=j[b]=j[a]=j[f]=j[l]=j[c]=j[h]=j[p]=j[d]=j[v]=j[m]=j[g]=j[y]=!1;var F={};F[o]=F[u]=F[b]=F[a]=F[f]=F[w]=F[E]=F[S]=F[x]=F[T]=F[p]=F[d]=F[v]=F[g]=F[N]=F[C]=F[k]=F[L]=!0,F[l]=F[c]=F[h]=F[m]=F[y]=!1;var I={\"function\":!0,object:!0},q=I[typeof n]&&n&&!n.nodeType&&n,R=I[typeof t]&&t&&!t.nodeType&&t,U=q&&R&&typeof e==\"object\"&&e&&e.Object&&e,z=I[typeof self]&&self&&self.Object&&self,W=I[typeof window]&&window&&window.Object&&window,X=R&&R.exports===q&&q,V=U||W!==(this&&this.window)&&W||z||this,Z=Array.prototype,et=Object.prototype,tt=Function.prototype.toString,nt=et.hasOwnProperty,rt=et.toString,it=RegExp(\"^\"+ur(rt).replace(/toString|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),st=Kn(st=V.ArrayBuffer)&&st,ot=Kn(ot=st&&(new st(0)).slice)&&ot,ut=Math.floor,at=Kn(at=Object.getOwnPropertySymbols)&&at,ft=Kn(ft=Object.getPrototypeOf)&&ft,lt=Z.push,ct=Kn(Object.preventExtensions=Object.preventExtensions)&&ct,ht=et.propertyIsEnumerable,pt=Kn(pt=V.Uint8Array)&&pt,dt=function(){try{var e=Kn(e=V.Float64Array)&&e,t=new e(new st(10),0,1)&&e}catch(n){}return t}(),vt=function(){var e={1:0},t=ct&&Kn(t=Object.assign)&&t;try{t(ct(e),\"xo\")}catch(n){}return!e[1]&&t}(),mt=Kn(mt=Array.isArray)&&mt,gt=Kn(gt=Object.keys)&&gt,yt=Math.max,bt=Math.min,wt=Number.NEGATIVE_INFINITY,Et=Math.pow(2,32)-1,St=Et-1,xt=Et>>>1,Tt=dt?dt.BYTES_PER_ELEMENT:0,Nt=Math.pow(2,53)-1,kt=Ct.support={};(function(e){var t=function(){this.x=e},n={0:e,length:e},r=[];t.prototype={valueOf:e,y:e};for(var i in new t)r.push(i);kt.funcDecomp=/\\bthis\\b/.test(function(){return this}),kt.funcNames=typeof Function.name==\"string\";try{kt.nonEnumArgs=!ht.call(arguments,1)}catch(s){kt.nonEnumArgs=!0}})(1,0);var Ht=vt||function(e,t){return t==null?e:Bt(t,bn(t),Bt(t,rr(t),e))},It=fn(zt),Rt=ln();ot||(un=!st||!pt?fr(null):function(e){var t=e.byteLength,n=dt?ut(t/Tt):0,r=n*Tt,i=new st(t);if(n){var s=new dt(i,0,n);s.set(new dt(e,0,n))}return t!=r&&(s=new pt(i,r),s.set(new pt(e,r))),i});var yn=Yt(\"length\"),bn=at?function(e){return at(On(e))}:fr([]),_n=cn(!0),jn=Un(Bn),Fn=hn(At,It),Xn=mt||function(e){return Y(e)&&Cn(e.length)&&rt.call(e)==u},$n=K(/x/)||pt&&!K(pt)?function(e){return rt.call(e)==c}:K,Gn=ft?function(e){if(!e||rt.call(e)!=d)return!1;var t=e.valueOf,n=Kn(t)&&(n=ft(t))&&ft(n);return n?e==n||ft(e)==n:Ln(e)}:Ln,tr=an(function(e,t,n){return n?Pt(e,t,n):Ht(e,t)}),rr=gt?function(e){if(e)var t=e.constructor,n=e.length;return typeof t==\"function\"&&t.prototype===e||typeof e!=\"function\"&&Cn(n)?An(e):Jn(e)?gt(e):[]}:An,sr=an(Qt);Ct.assign=tr,Ct.callback=ar,Ct.constant=fr,Ct.forEach=Fn,Ct.keys=rr,Ct.keysIn=ir,Ct.merge=sr,Ct.property=cr,Ct.reject=qn,Ct.restParam=Un,Ct.slice=Hn,Ct.toPlainObject=er,Ct.unzip=Bn,Ct.values=or,Ct.zip=jn,Ct.each=Fn,Ct.extend=tr,Ct.iteratee=ar,Ct.clone=zn,Ct.escapeRegExp=ur,Ct.findLastIndex=_n,Ct.has=nr,Ct.identity=lr,Ct.includes=In,Ct.indexOf=Dn,Ct.isArguments=Wn,Ct.isArray=Xn,Ct.isEmpty=Vn,Ct.isFunction=$n,Ct.isNative=Kn,Ct.isNumber=Qn,Ct.isObject=Jn,Ct.isPlainObject=Gn,Ct.isString=Yn,Ct.isTypedArray=Zn,Ct.last=Pn,Ct.some=Rn,Ct.any=Rn,Ct.contains=In,Ct.include=In,Ct.VERSION=i,q&&R?X?(R.exports=Ct)._=Ct:q._=Ct:V._=Ct}).call(this)}).call(this,typeof global!=\"undefined\"?global:typeof self!=\"undefined\"?self:typeof window!=\"undefined\"?window:{})},{}],\"/node_modules/jshint/src/jshint.js\":[function(e,t,n){var r=e(\"../lodash\"),i=e(\"events\"),s=e(\"./vars.js\"),o=e(\"./messages.js\"),u=e(\"./lex.js\").Lexer,a=e(\"./reg.js\"),f=e(\"./state.js\").state,l=e(\"./style.js\"),c=e(\"./options.js\"),h=e(\"./scope-manager.js\"),p=function(){\"use strict\";function k(e,t){return e=e.trim(),/^[+-]W\\d{3}$/g.test(e)?!0:c.validNames.indexOf(e)===-1&&t.type!==\"jslint\"&&!r.has(c.removed,e)?(q(\"E001\",t,e),!1):!0}function L(e){return Object.prototype.toString.call(e)===\"[object String]\"}function A(e,t){return e?!e.identifier||e.value!==t?!1:!0:!1}function O(e){if(!e.reserved)return!1;var t=e.meta;if(t&&t.isFutureReservedWord&&f.inES5()){if(!t.es5)return!1;if(t.strictOnly&&!f.option.strict&&!f.isStrict())return!1;if(e.isProperty)return!1}return!0}function M(e,t){return e.replace(/\\{([^{}]*)\\}/g,function(e,n){var r=t[n];return typeof r==\"string\"||typeof r==\"number\"?r:e})}function D(e,t){Object.keys(t).forEach(function(n){if(r.has(p.blacklist,n))return;e[n]=t[n]})}function P(){if(f.option.enforceall){for(var e in c.bool.enforcing)f.option[e]===undefined&&!c.noenforceall[e]&&(f.option[e]=!0);for(var t in c.bool.relaxing)f.option[t]===undefined&&(f.option[t]=!1)}}function H(){P(),!f.option.esversion&&!f.option.moz&&(f.option.es3?f.option.esversion=3:f.option.esnext?f.option.esversion=6:f.option.esversion=5),f.inES5()&&D(S,s.ecmaIdentifiers[5]),f.inES6()&&D(S,s.ecmaIdentifiers[6]),f.option.module&&(f.option.strict===!0&&(f.option.strict=\"global\"),f.inES6()||F(\"W134\",f.tokens.next,\"module\",6)),f.option.couch&&D(S,s.couch),f.option.qunit&&D(S,s.qunit),f.option.rhino&&D(S,s.rhino),f.option.shelljs&&(D(S,s.shelljs),D(S,s.node)),f.option.typed&&D(S,s.typed),f.option.phantom&&(D(S,s.phantom),f.option.strict===!0&&(f.option.strict=\"global\")),f.option.prototypejs&&D(S,s.prototypejs),f.option.node&&(D(S,s.node),D(S,s.typed),f.option.strict===!0&&(f.option.strict=\"global\")),f.option.devel&&D(S,s.devel),f.option.dojo&&D(S,s.dojo),f.option.browser&&(D(S,s.browser),D(S,s.typed)),f.option.browserify&&(D(S,s.browser),D(S,s.typed),D(S,s.browserify),f.option.strict===!0&&(f.option.strict=\"global\")),f.option.nonstandard&&D(S,s.nonstandard),f.option.jasmine&&D(S,s.jasmine),f.option.jquery&&D(S,s.jquery),f.option.mootools&&D(S,s.mootools),f.option.worker&&D(S,s.worker),f.option.wsh&&D(S,s.wsh),f.option.globalstrict&&f.option.strict!==!1&&(f.option.strict=\"global\"),f.option.yui&&D(S,s.yui),f.option.mocha&&D(S,s.mocha)}function B(e,t,n){var r=Math.floor(t/f.lines.length*100),i=o.errors[e].desc;throw{name:\"JSHintError\",line:t,character:n,message:i+\" (\"+r+\"% scanned).\",raw:i,code:e}}function j(){var e=f.ignoredLines;if(r.isEmpty(e))return;p.errors=r.reject(p.errors,function(t){return e[t.line]})}function F(e,t,n,r,i,s){var u,a,l,c;if(/^W\\d{3}$/.test(e)){if(f.ignored[e])return;c=o.warnings[e]}else/E\\d{3}/.test(e)?c=o.errors[e]:/I\\d{3}/.test(e)&&(c=o.info[e]);return t=t||f.tokens.next||{},t.id===\"(end)\"&&(t=f.tokens.curr),a=t.line||0,u=t.from||0,l={id:\"(error)\",raw:c.desc,code:c.code,evidence:f.lines[a-1]||\"\",line:a,character:u,scope:p.scope,a:n,b:r,c:i,d:s},l.reason=M(c.desc,l),p.errors.push(l),j(),p.errors.length>=f.option.maxerr&&B(\"E043\",a,u),l}function I(e,t,n,r,i,s,o){return F(e,{line:t,from:n},r,i,s,o)}function q(e,t,n,r,i,s){F(e,t,n,r,i,s)}function R(e,t,n,r,i,s,o){return q(e,{line:t,from:n},r,i,s,o)}function U(e,t){var n;return n={id:\"(internal)\",elem:e,value:t},p.internals.push(n),n}function z(){var e=f.tokens.next,t=e.body.match(/(-\\s+)?[^\\s,:]+(?:\\s*:\\s*(-\\s+)?[^\\s,]+)?/g)||[],i={};if(e.type===\"globals\"){t.forEach(function(n,r){n=n.split(\":\");var s=(n[0]||\"\").trim(),o=(n[1]||\"\").trim();if(s===\"-\"||!s.length){if(r>0&&r===t.length-1)return;q(\"E002\",e);return}s.charAt(0)===\"-\"?(s=s.slice(1),o=!1,p.blacklist[s]=s,delete S[s]):i[s]=o===\"true\"}),D(S,i);for(var s in i)r.has(i,s)&&(n[s]=e)}e.type===\"exported\"&&t.forEach(function(n,r){if(!n.length){if(r>0&&r===t.length-1)return;q(\"E002\",e);return}f.funct[\"(scope)\"].addExported(n)}),e.type===\"members\"&&(E=E||{},t.forEach(function(e){var t=e.charAt(0),n=e.charAt(e.length-1);t===n&&(t==='\"'||t===\"'\")&&(e=e.substr(1,e.length-2).replace('\\\\\"','\"')),E[e]=!1}));var o=[\"maxstatements\",\"maxparams\",\"maxdepth\",\"maxcomplexity\",\"maxerr\",\"maxlen\",\"indent\"];if(e.type===\"jshint\"||e.type===\"jslint\")t.forEach(function(t){t=t.split(\":\");var n=(t[0]||\"\").trim(),i=(t[1]||\"\").trim();if(!k(n,e))return;if(o.indexOf(n)>=0){if(i!==\"false\"){i=+i;if(typeof i!=\"number\"||!isFinite(i)||i<=0||Math.floor(i)!==i){q(\"E032\",e,t[1].trim());return}f.option[n]=i}else f.option[n]=n===\"indent\"?4:!1;return}if(n===\"validthis\"){if(f.funct[\"(global)\"])return void q(\"E009\");if(i!==\"true\"&&i!==\"false\")return void q(\"E002\",e);f.option.validthis=i===\"true\";return}if(n===\"quotmark\"){switch(i){case\"true\":case\"false\":f.option.quotmark=i===\"true\";break;case\"double\":case\"single\":f.option.quotmark=i;break;default:q(\"E002\",e)}return}if(n===\"shadow\"){switch(i){case\"true\":f.option.shadow=!0;break;case\"outer\":f.option.shadow=\"outer\";break;case\"false\":case\"inner\":f.option.shadow=\"inner\";break;default:q(\"E002\",e)}return}if(n===\"unused\"){switch(i){case\"true\":f.option.unused=!0;break;case\"false\":f.option.unused=!1;break;case\"vars\":case\"strict\":f.option.unused=i;break;default:q(\"E002\",e)}return}if(n===\"latedef\"){switch(i){case\"true\":f.option.latedef=!0;break;case\"false\":f.option.latedef=!1;break;case\"nofunc\":f.option.latedef=\"nofunc\";break;default:q(\"E002\",e)}return}if(n===\"ignore\"){switch(i){case\"line\":f.ignoredLines[e.line]=!0,j();break;default:q(\"E002\",e)}return}if(n===\"strict\"){switch(i){case\"true\":f.option.strict=!0;break;case\"false\":f.option.strict=!1;break;case\"func\":case\"global\":case\"implied\":f.option.strict=i;break;default:q(\"E002\",e)}return}n===\"module\"&&(zt(f.funct)||q(\"E055\",f.tokens.next,\"module\"));var s={es3:3,es5:5,esnext:6};if(r.has(s,n)){switch(i){case\"true\":f.option.moz=!1,f.option.esversion=s[n];break;case\"false\":f.option.moz||(f.option.esversion=5);break;default:q(\"E002\",e)}return}if(n===\"esversion\"){switch(i){case\"5\":f.inES5(!0)&&F(\"I003\");case\"3\":case\"6\":f.option.moz=!1,f.option.esversion=+i;break;case\"2015\":f.option.moz=!1,f.option.esversion=6;break;default:q(\"E002\",e)}zt(f.funct)||q(\"E055\",f.tokens.next,\"esversion\");return}var u=/^([+-])(W\\d{3})$/g.exec(n);if(u){f.ignored[u[2]]=u[1]===\"-\";return}var a;if(i===\"true\"||i===\"false\"){e.type===\"jslint\"?(a=c.renamed[n]||n,f.option[a]=i===\"true\",c.inverted[a]!==undefined&&(f.option[a]=!f.option[a])):f.option[n]=i===\"true\",n===\"newcap\"&&(f.option[\"(explicitNewcap)\"]=!0);return}q(\"E002\",e)}),H()}function W(e){var t=e||0,n=y.length,r;if(t<n)return y[t];while(n<=t)r=y[n],r||(r=y[n]=b.token()),n+=1;return!r&&f.tokens.next.id===\"(end)\"?f.tokens.next:r}function X(){var e=0,t;do t=W(e++);while(t.id===\"(endline)\");return t}function V(e,t){switch(f.tokens.curr.id){case\"(number)\":f.tokens.next.id===\".\"&&F(\"W005\",f.tokens.curr);break;case\"-\":(f.tokens.next.id===\"-\"||f.tokens.next.id===\"--\")&&F(\"W006\");break;case\"+\":(f.tokens.next.id===\"+\"||f.tokens.next.id===\"++\")&&F(\"W007\")}e&&f.tokens.next.id!==e&&(t?f.tokens.next.id===\"(end)\"?q(\"E019\",t,t.id):q(\"E020\",f.tokens.next,e,t.id,t.line,f.tokens.next.value):(f.tokens.next.type!==\"(identifier)\"||f.tokens.next.value!==e)&&F(\"W116\",f.tokens.next,e,f.tokens.next.value)),f.tokens.prev=f.tokens.curr,f.tokens.curr=f.tokens.next;for(;;){f.tokens.next=y.shift()||b.token(),f.tokens.next||B(\"E041\",f.tokens.curr.line);if(f.tokens.next.id===\"(end)\"||f.tokens.next.id===\"(error)\")return;f.tokens.next.check&&f.tokens.next.check();if(f.tokens.next.isSpecial)f.tokens.next.type===\"falls through\"?f.tokens.curr.caseFallsThrough=!0:z();else if(f.tokens.next.id!==\"(endline)\")break}}function $(e){return e.infix||!e.identifier&&!e.template&&!!e.led}function J(){var e=f.tokens.curr,t=f.tokens.next;return t.id===\";\"||t.id===\"}\"||t.id===\":\"?!0:$(t)===$(e)||e.id===\"yield\"&&f.inMoz()?e.line!==G(t):!1}function K(e){return!e.left&&e.arity!==\"unary\"}function Q(e,t){var n,i=!1,s=!1,o=!1;f.nameStack.push(),!t&&f.tokens.next.value===\"let\"&&W(0).value===\"(\"&&(f.inMoz()||F(\"W118\",f.tokens.next,\"let expressions\"),o=!0,f.funct[\"(scope)\"].stack(),V(\"let\"),V(\"(\"),f.tokens.prev.fud(),V(\")\")),f.tokens.next.id===\"(end)\"&&q(\"E006\",f.tokens.curr);var u=f.option.asi&&f.tokens.prev.line!==G(f.tokens.curr)&&r.contains([\"]\",\")\"],f.tokens.prev.id)&&r.contains([\"[\",\"(\"],f.tokens.curr.id);u&&F(\"W014\",f.tokens.curr,f.tokens.curr.id),V(),t&&(f.funct[\"(verb)\"]=f.tokens.curr.value,f.tokens.curr.beginsStmt=!0);if(t===!0&&f.tokens.curr.fud)n=f.tokens.curr.fud();else{f.tokens.curr.nud?n=f.tokens.curr.nud():q(\"E030\",f.tokens.curr,f.tokens.curr.id);while((e<f.tokens.next.lbp||f.tokens.next.type===\"(template)\")&&!J())i=f.tokens.curr.value===\"Array\",s=f.tokens.curr.value===\"Object\",n&&(n.value||n.first&&n.first.value)&&(n.value!==\"new\"||n.first&&n.first.value&&n.first.value===\".\")&&(i=!1,n.value!==f.tokens.curr.value&&(s=!1)),V(),i&&f.tokens.curr.id===\"(\"&&f.tokens.next.id===\")\"&&F(\"W009\",f.tokens.curr),s&&f.tokens.curr.id===\"(\"&&f.tokens.next.id===\")\"&&F(\"W010\",f.tokens.curr),n&&f.tokens.curr.led?n=f.tokens.curr.led(n):q(\"E033\",f.tokens.curr,f.tokens.curr.id)}return o&&f.funct[\"(scope)\"].unstack(),f.nameStack.pop(),n}function G(e){return e.startLine||e.line}function Y(e,t){e=e||f.tokens.curr,t=t||f.tokens.next,!f.option.laxbreak&&e.line!==G(t)&&F(\"W014\",t,t.value)}function Z(e){e=e||f.tokens.curr,e.line!==G(f.tokens.next)&&F(\"E022\",e,e.value)}function et(e,t){e.line!==G(t)&&(f.option.laxcomma||(tt.first&&(F(\"I001\"),tt.first=!1),F(\"W014\",e,t.value)))}function tt(e){e=e||{},e.peek?et(f.tokens.prev,f.tokens.curr):(et(f.tokens.curr,f.tokens.next),V(\",\"));if(f.tokens.next.identifier&&(!e.property||!f.inES5()))switch(f.tokens.next.value){case\"break\":case\"case\":case\"catch\":case\"continue\":case\"default\":case\"do\":case\"else\":case\"finally\":case\"for\":case\"if\":case\"in\":case\"instanceof\":case\"return\":case\"switch\":case\"throw\":case\"try\":case\"var\":case\"let\":case\"while\":case\"with\":return q(\"E024\",f.tokens.next,f.tokens.next.value),!1}if(f.tokens.next.type===\"(punctuator)\")switch(f.tokens.next.value){case\"}\":case\"]\":case\",\":if(e.allowTrailing)return!0;case\")\":return q(\"E024\",f.tokens.next,f.tokens.next.value),!1}return!0}function nt(e,t){var n=f.syntax[e];if(!n||typeof n!=\"object\")f.syntax[e]=n={id:e,lbp:t,value:e};return n}function rt(e){var t=nt(e,0);return t.delim=!0,t}function it(e,t){var n=rt(e);return n.identifier=n.reserved=!0,n.fud=t,n}function st(e,t){var n=it(e,t);return n.block=!0,n}function ot(e){var t=e.id.charAt(0);if(t>=\"a\"&&t<=\"z\"||t>=\"A\"&&t<=\"Z\")e.identifier=e.reserved=!0;return e}function ut(e,t){var n=nt(e,150);return ot(n),n.nud=typeof t==\"function\"?t:function(){this.arity=\"unary\",this.right=Q(150);if(this.id===\"++\"||this.id===\"--\")f.option.plusplus?F(\"W016\",this,this.id):this.right&&(!this.right.identifier||O(this.right))&&this.right.id!==\".\"&&this.right.id!==\"[\"&&F(\"W017\",this),this.right&&this.right.isMetaProperty?q(\"E031\",this):this.right&&this.right.identifier&&f.funct[\"(scope)\"].block.modify(this.right.value,this);return this},n}function at(e,t){var n=rt(e);return n.type=e,n.nud=t,n}function ft(e,t){var n=at(e,t);return n.identifier=!0,n.reserved=!0,n}function lt(e,t){var n=at(e,t&&t.nud||function(){return this});return t=t||{},t.isFutureReservedWord=!0,n.value=e,n.identifier=!0,n.reserved=!0,n.meta=t,n}function ct(e,t){return ft(e,function(){return typeof t==\"function\"&&t(this),this})}function ht(e,t,n,r){var i=nt(e,n);return ot(i),i.infix=!0,i.led=function(i){return r||Y(f.tokens.prev,f.tokens.curr),(e===\"in\"||e===\"instanceof\")&&i.id===\"!\"&&F(\"W018\",i,\"!\"),typeof t==\"function\"?t(i,this):(this.left=i,this.right=Q(n),this)},i}function pt(e){var t=nt(e,42);return t.led=function(e){return Y(f.tokens.prev,f.tokens.curr),this.left=e,this.right=Xt({type:\"arrow\",loneArg:e}),this},t}function dt(e,t){var n=nt(e,100);return n.led=function(e){Y(f.tokens.prev,f.tokens.curr),this.left=e;var n=this.right=Q(100);return A(e,\"NaN\")||A(n,\"NaN\")?F(\"W019\",this):t&&t.apply(this,[e,n]),(!e||!n)&&B(\"E041\",f.tokens.curr.line),e.id===\"!\"&&F(\"W018\",e,\"!\"),n.id===\"!\"&&F(\"W018\",n,\"!\"),this},n}function vt(e){return e&&(e.type===\"(number)\"&&+e.value===0||e.type===\"(string)\"&&e.value===\"\"||e.type===\"null\"&&!f.option.eqnull||e.type===\"true\"||e.type===\"false\"||e.type===\"undefined\")}function gt(e,t,n){var i;return n.option.notypeof?!1:!e||!t?!1:(i=n.inES6()?mt.es6:mt.es3,t.type===\"(identifier)\"&&t.value===\"typeof\"&&e.type===\"(string)\"?!r.contains(i,e.value):!1)}function yt(e,t){var n=!1;return e.type===\"this\"&&t.funct[\"(context)\"]===null?n=!0:e.type===\"(identifier)\"&&(t.option.node&&e.value===\"global\"?n=!0:t.option.browser&&(e.value===\"window\"||e.value===\"document\")&&(n=!0)),n}function bt(e){function n(e){if(typeof e!=\"object\")return;return e.right===\"prototype\"?e:n(e.left)}function r(e){while(!e.identifier&&typeof e.left==\"object\")e=e.left;if(e.identifier&&t.indexOf(e.value)>=0)return e.value}var t=[\"Array\",\"ArrayBuffer\",\"Boolean\",\"Collator\",\"DataView\",\"Date\",\"DateTimeFormat\",\"Error\",\"EvalError\",\"Float32Array\",\"Float64Array\",\"Function\",\"Infinity\",\"Intl\",\"Int16Array\",\"Int32Array\",\"Int8Array\",\"Iterator\",\"Number\",\"NumberFormat\",\"Object\",\"RangeError\",\"ReferenceError\",\"RegExp\",\"StopIteration\",\"String\",\"SyntaxError\",\"TypeError\",\"Uint16Array\",\"Uint32Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"URIError\"],i=n(e);if(i)return r(i)}function wt(e,t,n){var r=n&&n.allowDestructuring;t=t||e;if(f.option.freeze){var i=bt(e);i&&F(\"W121\",e,i)}return e.identifier&&!e.isMetaProperty&&f.funct[\"(scope)\"].block.reassign(e.value,e),e.id===\".\"?((!e.left||e.left.value===\"arguments\"&&!f.isStrict())&&F(\"E031\",t),f.nameStack.set(f.tokens.prev),!0):e.id===\"{\"||e.id===\"[\"?(r&&f.tokens.curr.left.destructAssign?f.tokens.curr.left.destructAssign.forEach(function(e){e.id&&f.funct[\"(scope)\"].block.modify(e.id,e.token)}):e.id===\"{\"||!e.left?F(\"E031\",t):e.left.value===\"arguments\"&&!f.isStrict()&&F(\"E031\",t),e.id===\"[\"&&f.nameStack.set(e.right),!0):e.isMetaProperty?(q(\"E031\",t),!0):e.identifier&&!O(e)?(f.funct[\"(scope)\"].labeltype(e.value)===\"exception\"&&F(\"W022\",e),f.nameStack.set(e),!0):(e===f.syntax[\"function\"]&&F(\"W023\",f.tokens.curr),!1)}function Et(e,t,n){var r=ht(e,typeof t==\"function\"?t:function(e,t){t.left=e;if(e&&wt(e,t,{allowDestructuring:!0}))return t.right=Q(10),t;q(\"E031\",t)},n);return r.exps=!0,r.assign=!0,r}function St(e,t,n){var r=nt(e,n);return ot(r),r.led=typeof t==\"function\"?t:function(e){return f.option.bitwise&&F(\"W016\",this,this.id),this.left=e,this.right=Q(n),this},r}function xt(e){return Et(e,function(e,t){f.option.bitwise&&F(\"W016\",t,t.id);if(e&&wt(e,t))return t.right=Q(10),t;q(\"E031\",t)},20)}function Tt(e){var t=nt(e,150);return t.led=function(e){return f.option.plusplus?F(\"W016\",this,this.id):(!e.identifier||O(e))&&e.id!==\".\"&&e.id!==\"[\"&&F(\"W017\",this),e.isMetaProperty?q(\"E031\",this):e&&e.identifier&&f.funct[\"(scope)\"].block.modify(e.value,e),this.left=e,this},t}function Nt(e,t,n){if(!f.tokens.next.identifier)return;n||V();var r=f.tokens.curr,i=f.tokens.curr.value;return O(r)?t&&f.inES5()?i:e&&i===\"undefined\"?i:(F(\"W024\",f.tokens.curr,f.tokens.curr.id),i):i}function Ct(e,t){var n=Nt(e,t,!1);if(n)return n;if(f.tokens.next.value===\"...\"){f.inES6(!0)||F(\"W119\",f.tokens.next,\"spread/rest operator\",\"6\"),V();if(pn(f.tokens.next,\"...\")){F(\"E024\",f.tokens.next,\"...\");while(pn(f.tokens.next,\"...\"))V()}if(!f.tokens.next.identifier){F(\"E024\",f.tokens.curr,\"...\");return}return Ct(e,t)}q(\"E030\",f.tokens.next,f.tokens.next.value),f.tokens.next.id!==\";\"&&V()}function kt(e){var t=0,n;if(f.tokens.next.id!==\";\"||e.inBracelessBlock)return;for(;;){do n=W(t),t+=1;while(n.id!==\"(end)\"&&n.id===\"(comment)\");if(n.reach)return;if(n.id!==\"(endline)\"){if(n.id===\"function\"){f.option.latedef===!0&&F(\"W026\",n);break}F(\"W027\",n,n.value,e.value);break}}}function Lt(){if(f.tokens.next.id!==\";\"){if(f.tokens.next.isUnclosed)return V();var e=G(f.tokens.next)===f.tokens.curr.line&&f.tokens.next.id!==\"(end)\",t=pn(f.tokens.next,\"}\");e&&!t?R(\"E058\",f.tokens.curr.line,f.tokens.curr.character):f.option.asi||(t&&!f.option.lastsemic||!e)&&I(\"W033\",f.tokens.curr.line,f.tokens.curr.character)}else V(\";\")}function At(){var e=g,t,n=f.tokens.next,r=!1;if(n.id===\";\"){V(\";\");return}var i=O(n);i&&n.meta&&n.meta.isFutureReservedWord&&W().id===\":\"&&(F(\"W024\",n,n.id),i=!1),n.identifier&&!i&&W().id===\":\"&&(V(),V(\":\"),r=!0,f.funct[\"(scope)\"].stack(),f.funct[\"(scope)\"].block.addBreakLabel(n.value,{token:f.tokens.curr}),!f.tokens.next.labelled&&f.tokens.next.value!==\"{\"&&F(\"W028\",f.tokens.next,n.value,f.tokens.next.value),f.tokens.next.label=n.value,n=f.tokens.next);if(n.id===\"{\"){var s=f.funct[\"(verb)\"]===\"case\"&&f.tokens.curr.value===\":\";_t(!0,!0,!1,!1,s);return}return t=Q(0,!0),t&&(!t.identifier||t.value!==\"function\")&&(t.type!==\"(punctuator)\"||!t.left||!t.left.identifier||t.left.value!==\"function\")&&!f.isStrict()&&f.option.strict===\"global\"&&F(\"E007\"),n.block||(!f.option.expr&&(!t||!t.exps)?F(\"W030\",f.tokens.curr):f.option.nonew&&t&&t.left&&t.id===\"(\"&&t.left.id===\"new\"&&F(\"W031\",n),Lt()),g=e,r&&f.funct[\"(scope)\"].unstack(),t}function Ot(){var e=[],t;while(!f.tokens.next.reach&&f.tokens.next.id!==\"(end)\")f.tokens.next.id===\";\"?(t=W(),(!t||t.id!==\"(\"&&t.id!==\"[\")&&F(\"W032\"),V(\";\")):e.push(At());return e}function Mt(){var e,t,n;while(f.tokens.next.id===\"(string)\"){t=W(0);if(t.id===\"(endline)\"){e=1;do n=W(e++);while(n.id===\"(endline)\");if(n.id===\";\")t=n;else{if(n.value===\"[\"||n.value===\".\")break;(!f.option.asi||n.value===\"(\")&&F(\"W033\",f.tokens.next)}}else{if(t.id===\".\"||t.id===\"[\")break;t.id!==\";\"&&F(\"W033\",t)}V();var r=f.tokens.curr.value;(f.directive[r]||r===\"use strict\"&&f.option.strict===\"implied\")&&F(\"W034\",f.tokens.curr,r),f.directive[r]=!0,t.id===\";\"&&V(\";\")}f.isStrict()&&(f.option[\"(explicitNewcap)\"]||(f.option.newcap=!0),f.option.undef=!0)}function _t(e,t,n,i,s){var o,u=m,a=g,l,c,h,p;m=e,c=f.tokens.next;var d=f.funct[\"(metrics)\"];d.nestedBlockDepth+=1,d.verifyMaxNestedBlockDepthPerFunction();if(f.tokens.next.id===\"{\"){V(\"{\"),f.funct[\"(scope)\"].stack(),h=f.tokens.curr.line;if(f.tokens.next.id!==\"}\"){g+=f.option.indent;while(!e&&f.tokens.next.from>g)g+=f.option.indent;if(n){l={};for(p in f.directive)r.has(f.directive,p)&&(l[p]=f.directive[p]);Mt(),f.option.strict&&f.funct[\"(context)\"][\"(global)\"]&&!l[\"use strict\"]&&!f.isStrict()&&F(\"E007\")}o=Ot(),d.statementCount+=o.length,g-=f.option.indent}V(\"}\",c),n&&(f.funct[\"(scope)\"].validateParams(),l&&(f.directive=l)),f.funct[\"(scope)\"].unstack(),g=a}else if(!e)if(n){f.funct[\"(scope)\"].stack(),l={},t&&!i&&!f.inMoz()&&q(\"W118\",f.tokens.curr,\"function closure expressions\");if(!t)for(p in f.directive)r.has(f.directive,p)&&(l[p]=f.directive[p]);Q(10),f.option.strict&&f.funct[\"(context)\"][\"(global)\"]&&!l[\"use strict\"]&&!f.isStrict()&&F(\"E007\"),f.funct[\"(scope)\"].unstack()}else q(\"E021\",f.tokens.next,\"{\",f.tokens.next.value);else f.funct[\"(noblockscopedvar)\"]=f.tokens.next.id!==\"for\",f.funct[\"(scope)\"].stack(),(!t||f.option.curly)&&F(\"W116\",f.tokens.next,\"{\",f.tokens.next.value),f.tokens.next.inBracelessBlock=!0,g+=f.option.indent,o=[At()],g-=f.option.indent,f.funct[\"(scope)\"].unstack(),delete f.funct[\"(noblockscopedvar)\"];switch(f.funct[\"(verb)\"]){case\"break\":case\"continue\":case\"return\":case\"throw\":if(s)break;default:f.funct[\"(verb)\"]=null}return m=u,e&&f.option.noempty&&(!o||o.length===0)&&F(\"W035\",f.tokens.prev),d.nestedBlockDepth-=1,o}function Dt(e){E&&typeof E[e]!=\"boolean\"&&F(\"W036\",f.tokens.curr,e),typeof w[e]==\"number\"?w[e]+=1:w[e]=1}function Bt(){var e={};e.exps=!0,f.funct[\"(comparray)\"].stack();var t=!1;return f.tokens.next.value!==\"for\"&&(t=!0,f.inMoz()||F(\"W116\",f.tokens.next,\"for\",f.tokens.next.value),f.funct[\"(comparray)\"].setState(\"use\"),e.right=Q(10)),V(\"for\"),f.tokens.next.value===\"each\"&&(V(\"each\"),f.inMoz()||F(\"W118\",f.tokens.curr,\"for each\")),V(\"(\"),f.funct[\"(comparray)\"].setState(\"define\"),e.left=Q(130),r.contains([\"in\",\"of\"],f.tokens.next.value)?V():q(\"E045\",f.tokens.curr),f.funct[\"(comparray)\"].setState(\"generate\"),Q(10),V(\")\"),f.tokens.next.value===\"if\"&&(V(\"if\"),V(\"(\"),f.funct[\"(comparray)\"].setState(\"filter\"),e.filter=Q(10),V(\")\")),t||(f.funct[\"(comparray)\"].setState(\"use\"),e.right=Q(10)),V(\"]\"),f.funct[\"(comparray)\"].unstack(),e}function jt(){return f.funct[\"(statement)\"]&&f.funct[\"(statement)\"].type===\"class\"||f.funct[\"(context)\"]&&f.funct[\"(context)\"][\"(verb)\"]===\"class\"}function Ft(e){return e.identifier||e.id===\"(string)\"||e.id===\"(number)\"}function It(e){var t,n=!0;return typeof e==\"object\"?t=e:(n=e,t=Nt(!1,!0,n)),t?typeof t==\"object\"&&(t.id===\"(string)\"||t.id===\"(identifier)\"?t=t.value:t.id===\"(number)\"&&(t=t.value.toString())):f.tokens.next.id===\"(string)\"?(t=f.tokens.next.value,n||V()):f.tokens.next.id===\"(number)\"&&(t=f.tokens.next.value.toString(),n||V()),t===\"hasOwnProperty\"&&F(\"W001\"),t}function qt(e){function h(e){f.funct[\"(scope)\"].addParam.apply(f.funct[\"(scope)\"],e)}var t,n=[],i,s=[],o,u=!1,a=!1,l=0,c=e&&e.loneArg;if(c&&c.identifier===!0)return f.funct[\"(scope)\"].addParam(c.value,c),{arity:1,params:[c.value]};t=f.tokens.next,(!e||!e.parsedOpening)&&V(\"(\");if(f.tokens.next.id===\")\"){V(\")\");return}for(;;){l++;var p=[];if(r.contains([\"{\",\"[\"],f.tokens.next.id)){s=Gt();for(o in s)o=s[o],o.id&&(n.push(o.id),p.push([o.id,o.token]))}else{pn(f.tokens.next,\"...\")&&(a=!0),i=Ct(!0);if(i)n.push(i),p.push([i,f.tokens.curr]);else while(!hn(f.tokens.next,[\",\",\")\"]))V()}u&&f.tokens.next.id!==\"=\"&&q(\"W138\",f.tokens.current),f.tokens.next.id===\"=\"&&(f.inES6()||F(\"W119\",f.tokens.next,\"default parameters\",\"6\"),V(\"=\"),u=!0,Q(10)),p.forEach(h);if(f.tokens.next.id!==\",\")return V(\")\",t),{arity:l,params:n};a&&F(\"W131\",f.tokens.next),tt()}}function Rt(e,t,n){var i={\"(name)\":e,\"(breakage)\":0,\"(loopage)\":0,\"(tokens)\":{},\"(properties)\":{},\"(catch)\":!1,\"(global)\":!1,\"(line)\":null,\"(character)\":null,\"(metrics)\":null,\"(statement)\":null,\"(context)\":null,\"(scope)\":null,\"(comparray)\":null,\"(generator)\":null,\"(arrow)\":null,\"(params)\":null};return t&&r.extend(i,{\"(line)\":t.line,\"(character)\":t.character,\"(metrics)\":Vt(t)}),r.extend(i,n),i[\"(context)\"]&&(i[\"(scope)\"]=i[\"(context)\"][\"(scope)\"],i[\"(comparray)\"]=i[\"(context)\"][\"(comparray)\"]),i}function Ut(e){return\"(scope)\"in e}function zt(e){return e[\"(global)\"]&&!e[\"(verb)\"]}function Wt(e){function i(){if(f.tokens.curr.template&&f.tokens.curr.tail&&f.tokens.curr.context===t)return!0;var e=f.tokens.next.template&&f.tokens.next.tail&&f.tokens.next.context===t;return e&&V(),e||f.tokens.next.isUnclosed}var t=this.context,n=this.noSubst,r=this.depth;if(!n)while(!i())!f.tokens.next.template||f.tokens.next.depth>r?Q(0):V();return{id:\"(template)\",type:\"(template)\",tag:e}}function Xt(e){var t,n,r,i,s,o,u,a,l=f.option,c=f.ignored;e&&(r=e.name,i=e.statement,s=e.classExprBinding,o=e.type===\"generator\",u=e.type===\"arrow\",a=e.ignoreLoopFunc),f.option=Object.create(f.option),f.ignored=Object.create(f.ignored),f.funct=Rt(r||f.nameStack.infer(),f.tokens.next,{\"(statement)\":i,\"(context)\":f.funct,\"(arrow)\":u,\"(generator)\":o}),t=f.funct,n=f.tokens.curr,n.funct=f.funct,v.push(f.funct),f.funct[\"(scope)\"].stack(\"functionouter\");var h=r||s;h&&f.funct[\"(scope)\"].block.add(h,s?\"class\":\"function\",f.tokens.curr,!1),f.funct[\"(scope)\"].stack(\"functionparams\");var p=qt(e);return p?(f.funct[\"(params)\"]=p.params,f.funct[\"(metrics)\"].arity=p.arity,f.funct[\"(metrics)\"].verifyMaxParametersPerFunction()):f.funct[\"(metrics)\"].arity=0,u&&(f.inES6(!0)||F(\"W119\",f.tokens.curr,\"arrow function syntax (=>)\",\"6\"),e.loneArg||V(\"=>\")),_t(!1,!0,!0,u),!f.option.noyield&&o&&f.funct[\"(generator)\"]!==\"yielded\"&&F(\"W124\",f.tokens.curr),f.funct[\"(metrics)\"].verifyMaxStatementsPerFunction(),f.funct[\"(metrics)\"].verifyMaxComplexityPerFunction(),f.funct[\"(unusedOption)\"]=f.option.unused,f.option=l,f.ignored=c,f.funct[\"(last)\"]=f.tokens.curr.line,f.funct[\"(lastcharacter)\"]=f.tokens.curr.character,f.funct[\"(scope)\"].unstack(),f.funct[\"(scope)\"].unstack(),f.funct=f.funct[\"(context)\"],!a&&!f.option.loopfunc&&f.funct[\"(loopage)\"]&&t[\"(isCapturing)\"]&&F(\"W083\",n),t}function Vt(e){return{statementCount:0,nestedBlockDepth:-1,ComplexityCount:1,arity:0,verifyMaxStatementsPerFunction:function(){f.option.maxstatements&&this.statementCount>f.option.maxstatements&&F(\"W071\",e,this.statementCount)},verifyMaxParametersPerFunction:function(){r.isNumber(f.option.maxparams)&&this.arity>f.option.maxparams&&F(\"W072\",e,this.arity)},verifyMaxNestedBlockDepthPerFunction:function(){f.option.maxdepth&&this.nestedBlockDepth>0&&this.nestedBlockDepth===f.option.maxdepth+1&&F(\"W073\",null,this.nestedBlockDepth)},verifyMaxComplexityPerFunction:function(){var t=f.option.maxcomplexity,n=this.ComplexityCount;t&&n>t&&F(\"W074\",e,n)}}}function $t(){f.funct[\"(metrics)\"].ComplexityCount+=1}function Jt(e){var t,n;e&&(t=e.id,n=e.paren,t===\",\"&&(e=e.exprs[e.exprs.length-1])&&(t=e.id,n=n||e.paren));switch(t){case\"=\":case\"+=\":case\"-=\":case\"*=\":case\"%=\":case\"&=\":case\"|=\":case\"^=\":case\"/=\":!n&&!f.option.boss&&F(\"W084\")}}function Kt(e){if(f.inES5())for(var t in e)e[t]&&e[t].setterToken&&!e[t].getterToken&&F(\"W078\",e[t].setterToken)}function Qt(e,t){if(pn(f.tokens.next,\".\")){var n=f.tokens.curr.id;V(\".\");var r=Ct();return f.tokens.curr.isMetaProperty=!0,e!==r?q(\"E057\",f.tokens.prev,n,r):t(),f.tokens.curr}}function Gt(e){var t=e&&e.assignment;return f.inES6()||F(\"W104\",f.tokens.curr,t?\"destructuring assignment\":\"destructuring binding\",\"6\"),Yt(e)}function Yt(e){var t,n=[],r=e&&e.openingParsed,i=e&&e.assignment,s=i?{assignment:i}:null,o=r?f.tokens.curr:f.tokens.next,u=function(){var e;if(hn(f.tokens.next,[\"[\",\"{\"])){t=Yt(s);for(var r in t)r=t[r],n.push({id:r.id,token:r.token})}else if(pn(f.tokens.next,\",\"))n.push({id:null,token:f.tokens.curr});else{if(!pn(f.tokens.next,\"(\")){var o=pn(f.tokens.next,\"...\");if(i){var a=o?W(0):f.tokens.next;a.identifier||F(\"E030\",a,a.value);var l=Q(155);l&&(wt(l),l.identifier&&(e=l.value))}else e=Ct();return e&&n.push({id:e,token:f.tokens.curr}),o}V(\"(\"),u(),V(\")\")}return!1},a=function(){var e;pn(f.tokens.next,\"[\")?(V(\"[\"),Q(10),V(\"]\"),V(\":\"),u()):f.tokens.next.id===\"(string)\"||f.tokens.next.id===\"(number)\"?(V(),V(\":\"),u()):(e=Ct(),pn(f.tokens.next,\":\")?(V(\":\"),u()):e&&(i&&wt(f.tokens.curr),n.push({id:e,token:f.tokens.curr})))};if(pn(o,\"[\")){r||V(\"[\"),pn(f.tokens.next,\"]\")&&F(\"W137\",f.tokens.curr);var l=!1;while(!pn(f.tokens.next,\"]\"))u()&&!l&&pn(f.tokens.next,\",\")&&(F(\"W130\",f.tokens.next),l=!0),pn(f.tokens.next,\"=\")&&(pn(f.tokens.prev,\"...\")?V(\"]\"):V(\"=\"),f.tokens.next.id===\"undefined\"&&F(\"W080\",f.tokens.prev,f.tokens.prev.value),Q(10)),pn(f.tokens.next,\"]\")||V(\",\");V(\"]\")}else if(pn(o,\"{\")){r||V(\"{\"),pn(f.tokens.next,\"}\")&&F(\"W137\",f.tokens.curr);while(!pn(f.tokens.next,\"}\")){a(),pn(f.tokens.next,\"=\")&&(V(\"=\"),f.tokens.next.id===\"undefined\"&&F(\"W080\",f.tokens.prev,f.tokens.prev.value),Q(10));if(!pn(f.tokens.next,\"}\")){V(\",\");if(pn(f.tokens.next,\"}\"))break}}V(\"}\")}return n}function Zt(e,t){var n=t.first;if(!n)return;r.zip(e,Array.isArray(n)?n:[n]).forEach(function(e){var t=e[0],n=e[1];t&&n?t.first=n:t&&t.first&&!n&&F(\"W080\",t.first,t.first.value)})}function en(e,t,n){var i=n&&n.prefix,s=n&&n.inexport,o=e===\"let\",u=e===\"const\",a,l,c,h;f.inES6()||F(\"W104\",f.tokens.curr,e,\"6\"),o&&f.tokens.next.value===\"(\"?(f.inMoz()||F(\"W118\",f.tokens.next,\"let block\"),V(\"(\"),f.funct[\"(scope)\"].stack(),h=!0):f.funct[\"(noblockscopedvar)\"]&&q(\"E048\",f.tokens.curr,u?\"Const\":\"Let\"),t.first=[];for(;;){var p=[];r.contains([\"{\",\"[\"],f.tokens.next.value)?(a=Gt(),l=!1):(a=[{id:Ct(),token:f.tokens.curr}],l=!0),!i&&u&&f.tokens.next.id!==\"=\"&&F(\"E012\",f.tokens.curr,f.tokens.curr.value);for(var d in a)a.hasOwnProperty(d)&&(d=a[d],f.funct[\"(scope)\"].block.isGlobal()&&S[d.id]===!1&&F(\"W079\",d.token,d.id),d.id&&!f.funct[\"(noblockscopedvar)\"]&&(f.funct[\"(scope)\"].addlabel(d.id,{type:e,token:d.token}),p.push(d.token),l&&s&&f.funct[\"(scope)\"].setExported(d.token.value,d.token)));f.tokens.next.id===\"=\"&&(V(\"=\"),!i&&f.tokens.next.id===\"undefined\"&&F(\"W080\",f.tokens.prev,f.tokens.prev.value),!i&&W(0).id===\"=\"&&f.tokens.next.identifier&&F(\"W120\",f.tokens.next,f.tokens.next.value),c=Q(i?120:10),l?a[0].first=c:Zt(p,c)),t.first=t.first.concat(p);if(f.tokens.next.id!==\",\")break;tt()}return h&&(V(\")\"),_t(!0,!0),t.block=!0,f.funct[\"(scope)\"].unstack()),t}function sn(e){return f.inES6()||F(\"W104\",f.tokens.curr,\"class\",\"6\"),e?(this.name=Ct(),f.funct[\"(scope)\"].addlabel(this.name,{type:\"class\",token:f.tokens.curr})):f.tokens.next.identifier&&f.tokens.next.value!==\"extends\"?(this.name=Ct(),this.namedExpr=!0):this.name=f.nameStack.infer(),on(this),this}function on(e){var t=f.inClassBody;f.tokens.next.value===\"extends\"&&(V(\"extends\"),e.heritage=Q(10)),f.inClassBody=!0,V(\"{\"),e.body=un(e),V(\"}\"),f.inClassBody=t}function un(e){var t,n,r,i,s=Object.create(null),o=Object.create(null),u;for(var a=0;f.tokens.next.id!==\"}\";++a){t=f.tokens.next,n=!1,r=!1,i=null;if(t.id===\";\"){F(\"W032\"),V(\";\");continue}t.id===\"*\"&&(r=!0,V(\"*\"),t=f.tokens.next);if(t.id===\"[\")t=cn(),u=!0;else{if(!Ft(t)){F(\"W052\",f.tokens.next,f.tokens.next.value||f.tokens.next.type),V();continue}V(),u=!1;if(t.identifier&&t.value===\"static\"){pn(f.tokens.next,\"*\")&&(r=!0,V(\"*\"));if(Ft(f.tokens.next)||f.tokens.next.id===\"[\")u=f.tokens.next.id===\"[\",n=!0,t=f.tokens.next,f.tokens.next.id===\"[\"?t=cn():V()}t.identifier&&(t.value===\"get\"||t.value===\"set\")&&(Ft(f.tokens.next)||f.tokens.next.id===\"[\")&&(u=f.tokens.next.id===\"[\",i=t,t=f.tokens.next,f.tokens.next.id===\"[\"?t=cn():V())}if(!pn(f.tokens.next,\"(\")){q(\"E054\",f.tokens.next,f.tokens.next.value);while(f.tokens.next.id!==\"}\"&&!pn(f.tokens.next,\"(\"))V();f.tokens.next.value!==\"(\"&&Xt({statement:e})}u||(i?ln(i.value,n?o:s,t.value,t,!0,n):(t.value===\"constructor\"?f.nameStack.set(e):f.nameStack.set(t),fn(n?o:s,t.value,t,!0,n)));if(i&&t.value===\"constructor\"){var l=i.value===\"get\"?\"class getter method\":\"class setter method\";q(\"E049\",t,l,\"constructor\")}else t.value===\"prototype\"&&q(\"E049\",t,\"class method\",\"prototype\");It(t),Xt({statement:e,type:r?\"generator\":null,classExprBinding:e.namedExpr?e.name:null})}Kt(s)}function fn(e,t,n,r,i){var s=[\"key\",\"class method\",\"static class method\"];s=s[(r||!1)+(i||!1)],n.identifier&&(t=n.value),e[t]&&t!==\"__proto__\"?F(\"W075\",f.tokens.next,s,t):e[t]=Object.create(null),e[t].basic=!0,e[t].basictkn=n}function ln(e,t,n,r,i,s){var o=e===\"get\"?\"getterToken\":\"setterToken\",u=\"\";i?(s&&(u+=\"static \"),u+=e+\"ter method\"):u=\"key\",f.tokens.curr.accessorType=e,f.nameStack.set(r),t[n]?(t[n].basic||t[n][o])&&n!==\"__proto__\"&&F(\"W075\",f.tokens.next,u,n):t[n]=Object.create(null),t[n][o]=r}function cn(){V(\"[\"),f.inES6()||F(\"W119\",f.tokens.curr,\"computed property names\",\"6\");var e=Q(10);return V(\"]\"),e}function hn(e,t){return e.type===\"(punctuator)\"?r.contains(t,e.value):!1}function pn(e,t){return e.type===\"(punctuator)\"&&e.value===t}function dn(){var e=an();e.notJson?(!f.inES6()&&e.isDestAssign&&F(\"W104\",f.tokens.curr,\"destructuring assignment\",\"6\"),Ot()):(f.option.laxbreak=!0,f.jsonMode=!0,mn())}function mn(){function e(){var e={},t=f.tokens.next;V(\"{\");if(f.tokens.next.id!==\"}\")for(;;){if(f.tokens.next.id===\"(end)\")q(\"E026\",f.tokens.next,t.line);else{if(f.tokens.next.id===\"}\"){F(\"W094\",f.tokens.curr);break}f.tokens.next.id===\",\"?q(\"E028\",f.tokens.next):f.tokens.next.id!==\"(string)\"&&F(\"W095\",f.tokens.next,f.tokens.next.value)}e[f.tokens.next.value]===!0?F(\"W075\",f.tokens.next,\"key\",f.tokens.next.value):f.tokens.next.value===\"__proto__\"&&!f.option.proto||f.tokens.next.value===\"__iterator__\"&&!f.option.iterator?F(\"W096\",f.tokens.next,f.tokens.next.value):e[f.tokens.next.value]=!0,V(),V(\":\"),mn();if(f.tokens.next.id!==\",\")break;V(\",\")}V(\"}\")}function t(){var e=f.tokens.next;V(\"[\");if(f.tokens.next.id!==\"]\")for(;;){if(f.tokens.next.id===\"(end)\")q(\"E027\",f.tokens.next,e.line);else{if(f.tokens.next.id===\"]\"){F(\"W094\",f.tokens.curr);break}f.tokens.next.id===\",\"&&q(\"E028\",f.tokens.next)}mn();if(f.tokens.next.id!==\",\")break;V(\",\")}V(\"]\")}switch(f.tokens.next.id){case\"{\":e();break;case\"[\":t();break;case\"true\":case\"false\":case\"null\":case\"(number)\":case\"(string)\":V();break;case\"-\":V(\"-\"),V(\"(number)\");break;default:q(\"E003\",f.tokens.next)}}var e,t={\"<\":!0,\"<=\":!0,\"==\":!0,\"===\":!0,\"!==\":!0,\"!=\":!0,\">\":!0,\">=\":!0,\"+\":!0,\"-\":!0,\"*\":!0,\"/\":!0,\"%\":!0},n,d=[\"closure\",\"exception\",\"global\",\"label\",\"outer\",\"unused\",\"var\"],v,m,g,y,b,w,E,S,x,T,N=[],C=new i.EventEmitter,mt={};mt.legacy=[\"xml\",\"unknown\"],mt.es3=[\"undefined\",\"boolean\",\"number\",\"string\",\"function\",\"object\"],mt.es3=mt.es3.concat(mt.legacy),mt.es6=mt.es3.concat(\"symbol\"),at(\"(number)\",function(){return this}),at(\"(string)\",function(){return this}),f.syntax[\"(identifier)\"]={type:\"(identifier)\",lbp:0,identifier:!0,nud:function(){var e=this.value;return f.tokens.next.id===\"=>\"?this:(f.funct[\"(comparray)\"].check(e)||f.funct[\"(scope)\"].block.use(e,f.tokens.curr),this)},led:function(){q(\"E033\",f.tokens.next,f.tokens.next.value)}};var Pt={lbp:0,identifier:!1,template:!0};f.syntax[\"(template)\"]=r.extend({type:\"(template)\",nud:Wt,led:Wt,noSubst:!1},Pt),f.syntax[\"(template middle)\"]=r.extend({type:\"(template middle)\",middle:!0,noSubst:!1},Pt),f.syntax[\"(template tail)\"]=r.extend({type:\"(template tail)\",tail:!0,noSubst:!1},Pt),f.syntax[\"(no subst template)\"]=r.extend({type:\"(template)\",nud:Wt,led:Wt,noSubst:!0,tail:!0},Pt),at(\"(regexp)\",function(){return this}),rt(\"(endline)\"),rt(\"(begin)\"),rt(\"(end)\").reach=!0,rt(\"(error)\").reach=!0,rt(\"}\").reach=!0,rt(\")\"),rt(\"]\"),rt('\"').reach=!0,rt(\"'\").reach=!0,rt(\";\"),rt(\":\").reach=!0,rt(\"#\"),ft(\"else\"),ft(\"case\").reach=!0,ft(\"catch\"),ft(\"default\").reach=!0,ft(\"finally\"),ct(\"arguments\",function(e){f.isStrict()&&f.funct[\"(global)\"]&&F(\"E008\",e)}),ct(\"eval\"),ct(\"false\"),ct(\"Infinity\"),ct(\"null\"),ct(\"this\",function(e){f.isStrict()&&!jt()&&!f.option.validthis&&(f.funct[\"(statement)\"]&&f.funct[\"(name)\"].charAt(0)>\"Z\"||f.funct[\"(global)\"])&&F(\"W040\",e)}),ct(\"true\"),ct(\"undefined\"),Et(\"=\",\"assign\",20),Et(\"+=\",\"assignadd\",20),Et(\"-=\",\"assignsub\",20),Et(\"*=\",\"assignmult\",20),Et(\"/=\",\"assigndiv\",20).nud=function(){q(\"E014\")},Et(\"%=\",\"assignmod\",20),xt(\"&=\"),xt(\"|=\"),xt(\"^=\"),xt(\"<<=\"),xt(\">>=\"),xt(\">>>=\"),ht(\",\",function(e,t){var n;t.exprs=[e],f.option.nocomma&&F(\"W127\");if(!tt({peek:!0}))return t;for(;;){if(!(n=Q(10)))break;t.exprs.push(n);if(f.tokens.next.value!==\",\"||!tt())break}return t},10,!0),ht(\"?\",function(e,t){return $t(),t.left=e,t.right=Q(10),V(\":\"),t[\"else\"]=Q(10),t},30);var Ht=40;ht(\"||\",function(e,t){return $t(),t.left=e,t.right=Q(Ht),t},Ht),ht(\"&&\",\"and\",50),St(\"|\",\"bitor\",70),St(\"^\",\"bitxor\",80),St(\"&\",\"bitand\",90),dt(\"==\",function(e,t){var n=f.option.eqnull&&((e&&e.value)===\"null\"||(t&&t.value)===\"null\");switch(!0){case!n&&f.option.eqeqeq:this.from=this.character,F(\"W116\",this,\"===\",\"==\");break;case vt(e):F(\"W041\",this,\"===\",e.value);break;case vt(t):F(\"W041\",this,\"===\",t.value);break;case gt(t,e,f):F(\"W122\",this,t.value);break;case gt(e,t,f):F(\"W122\",this,e.value)}return this}),dt(\"===\",function(e,t){return gt(t,e,f)?F(\"W122\",this,t.value):gt(e,t,f)&&F(\"W122\",this,e.value),this}),dt(\"!=\",function(e,t){var n=f.option.eqnull&&((e&&e.value)===\"null\"||(t&&t.value)===\"null\");return!n&&f.option.eqeqeq?(this.from=this.character,F(\"W116\",this,\"!==\",\"!=\")):vt(e)?F(\"W041\",this,\"!==\",e.value):vt(t)?F(\"W041\",this,\"!==\",t.value):gt(t,e,f)?F(\"W122\",this,t.value):gt(e,t,f)&&F(\"W122\",this,e.value),this}),dt(\"!==\",function(e,t){return gt(t,e,f)?F(\"W122\",this,t.value):gt(e,t,f)&&F(\"W122\",this,e.value),this}),dt(\"<\"),dt(\">\"),dt(\"<=\"),dt(\">=\"),St(\"<<\",\"shiftleft\",120),St(\">>\",\"shiftright\",120),St(\">>>\",\"shiftrightunsigned\",120),ht(\"in\",\"in\",120),ht(\"instanceof\",\"instanceof\",120),ht(\"+\",function(e,t){var n;return t.left=e,t.right=n=Q(130),e&&n&&e.id===\"(string)\"&&n.id===\"(string)\"?(e.value+=n.value,e.character=n.character,!f.option.scripturl&&a.javascriptURL.test(e.value)&&F(\"W050\",e),e):t},130),ut(\"+\",\"num\"),ut(\"+++\",function(){return F(\"W007\"),this.arity=\"unary\",this.right=Q(150),this}),ht(\"+++\",function(e){return F(\"W007\"),this.left=e,this.right=Q(130),this},130),ht(\"-\",\"sub\",130),ut(\"-\",\"neg\"),ut(\"---\",function(){return F(\"W006\"),this.arity=\"unary\",this.right=Q(150),this}),ht(\"---\",function(e){return F(\"W006\"),this.left=e,this.right=Q(130),this},130),ht(\"*\",\"mult\",140),ht(\"/\",\"div\",140),ht(\"%\",\"mod\",140),Tt(\"++\"),ut(\"++\",\"preinc\"),f.syntax[\"++\"].exps=!0,Tt(\"--\"),ut(\"--\",\"predec\"),f.syntax[\"--\"].exps=!0,ut(\"delete\",function(){var e=Q(10);return e?(e.id!==\".\"&&e.id!==\"[\"&&F(\"W051\"),this.first=e,e.identifier&&!f.isStrict()&&(e.forgiveUndef=!0),this):this}).exps=!0,ut(\"~\",function(){return f.option.bitwise&&F(\"W016\",this,\"~\"),this.arity=\"unary\",this.right=Q(150),this}),ut(\"...\",function(){return f.inES6(!0)||F(\"W119\",this,\"spread/rest operator\",\"6\"),!f.tokens.next.identifier&&f.tokens.next.type!==\"(string)\"&&!hn(f.tokens.next,[\"[\",\"(\"])&&q(\"E030\",f.tokens.next,f.tokens.next.value),Q(150),this}),ut(\"!\",function(){return this.arity=\"unary\",this.right=Q(150),this.right||B(\"E041\",this.line||0),t[this.right.id]===!0&&F(\"W018\",this,\"!\"),this}),ut(\"typeof\",function(){var e=Q(150);return this.first=this.right=e,e||B(\"E041\",this.line||0,this.character||0),e.identifier&&(e.forgiveUndef=!0),this}),ut(\"new\",function(){var e=Qt(\"target\",function(){f.inES6(!0)||F(\"W119\",f.tokens.prev,\"new.target\",\"6\");var e,t=f.funct;while(t){e=!t[\"(global)\"];if(!t[\"(arrow)\"])break;t=t[\"(context)\"]}e||F(\"W136\",f.tokens.prev,\"new.target\")});if(e)return e;var t=Q(155),n;if(t&&t.id!==\"function\")if(t.identifier){t[\"new\"]=!0;switch(t.value){case\"Number\":case\"String\":case\"Boolean\":case\"Math\":case\"JSON\":F(\"W053\",f.tokens.prev,t.value);break;case\"Symbol\":f.inES6()&&F(\"W053\",f.tokens.prev,t.value);break;case\"Function\":f.option.evil||F(\"W054\");break;case\"Date\":case\"RegExp\":case\"this\":break;default:t.id!==\"function\"&&(n=t.value.substr(0,1),f.option.newcap&&(n<\"A\"||n>\"Z\")&&!f.funct[\"(scope)\"].isPredefined(t.value)&&F(\"W055\",f.tokens.curr))}}else t.id!==\".\"&&t.id!==\"[\"&&t.id!==\"(\"&&F(\"W056\",f.tokens.curr);else f.option.supernew||F(\"W057\",this);return f.tokens.next.id!==\"(\"&&!f.option.supernew&&F(\"W058\",f.tokens.curr,f.tokens.curr.value),this.first=this.right=t,this}),f.syntax[\"new\"].exps=!0,ut(\"void\").exps=!0,ht(\".\",function(e,t){var n=Ct(!1,!0);return typeof n==\"string\"&&Dt(n),t.left=e,t.right=n,n&&n===\"hasOwnProperty\"&&f.tokens.next.value===\"=\"&&F(\"W001\"),!e||e.value!==\"arguments\"||n!==\"callee\"&&n!==\"caller\"?!f.option.evil&&e&&e.value===\"document\"&&(n===\"write\"||n===\"writeln\")&&F(\"W060\",e):f.option.noarg?F(\"W059\",e,n):f.isStrict()&&q(\"E008\"),!f.option.evil&&(n===\"eval\"||n===\"execScript\")&&yt(e,f)&&F(\"W061\"),t},160,!0),ht(\"(\",function(e,t){f.option.immed&&e&&!e.immed&&e.id===\"function\"&&F(\"W062\");var n=0,r=[];e&&e.type===\"(identifier)\"&&e.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&\"Array Number String Boolean Date Object Error Symbol\".indexOf(e.value)===-1&&(e.value===\"Math\"?F(\"W063\",e):f.option.newcap&&F(\"W064\",e));if(f.tokens.next.id!==\")\")for(;;){r[r.length]=Q(10),n+=1;if(f.tokens.next.id!==\",\")break;tt()}return V(\")\"),typeof e==\"object\"&&(!f.inES5()&&e.value===\"parseInt\"&&n===1&&F(\"W065\",f.tokens.curr),f.option.evil||(e.value===\"eval\"||e.value===\"Function\"||e.value===\"execScript\"?(F(\"W061\",e),r[0]&&[0].id===\"(string)\"&&U(e,r[0].value)):!r[0]||r[0].id!==\"(string)\"||e.value!==\"setTimeout\"&&e.value!==\"setInterval\"?r[0]&&r[0].id===\"(string)\"&&e.value===\".\"&&e.left.value===\"window\"&&(e.right===\"setTimeout\"||e.right===\"setInterval\")&&(F(\"W066\",e),U(e,r[0].value)):(F(\"W066\",e),U(e,r[0].value))),!e.identifier&&e.id!==\".\"&&e.id!==\"[\"&&e.id!==\"=>\"&&e.id!==\"(\"&&e.id!==\"&&\"&&e.id!==\"||\"&&e.id!==\"?\"&&(!f.inES6()||!e[\"(name)\"])&&F(\"W067\",t)),t.left=e,t},155,!0).exps=!0,ut(\"(\",function(){var e=f.tokens.next,t,n=-1,r,i,s,o,u=1,a=f.tokens.curr,l=f.tokens.prev,c=!f.option.singleGroups;do e.value===\"(\"?u+=1:e.value===\")\"&&(u-=1),n+=1,t=e,e=W(n);while((u!==0||t.value!==\")\")&&e.value!==\";\"&&e.type!==\"(end)\");f.tokens.next.id===\"function\"&&(i=f.tokens.next.immed=!0);if(e.value===\"=>\")return Xt({type:\"arrow\",parsedOpening:!0});var h=[];if(f.tokens.next.id!==\")\")for(;;){h.push(Q(10));if(f.tokens.next.id!==\",\")break;f.option.nocomma&&F(\"W127\"),tt()}V(\")\",this),f.option.immed&&h[0]&&h[0].id===\"function\"&&f.tokens.next.id!==\"(\"&&f.tokens.next.id!==\".\"&&f.tokens.next.id!==\"[\"&&F(\"W068\",this);if(!h.length)return;return h.length>1?(r=Object.create(f.syntax[\",\"]),r.exprs=h,s=h[0],o=h[h.length-1],c||(c=l.assign||l.delim)):(r=s=o=h[0],c||(c=a.beginsStmt&&(r.id===\"{\"||i||Ut(r))||i&&(!J()||f.tokens.prev.id!==\"}\")||Ut(r)&&!J()||r.id===\"{\"&&l.id===\"=>\"||r.type===\"(number)\"&&pn(e,\".\")&&/^\\d+$/.test(r.value))),r&&(!c&&(s.left||s.right||r.exprs)&&(c=!K(l)&&s.lbp<=l.lbp||!J()&&o.lbp<f.tokens.next.lbp),c||F(\"W126\",a),r.paren=!0),r}),pt(\"=>\"),ht(\"[\",function(e,t){var n=Q(10),r;return n&&n.type===\"(string)\"&&(!f.option.evil&&(n.value===\"eval\"||n.value===\"execScript\")&&yt(e,f)&&F(\"W061\"),Dt(n.value),!f.option.sub&&a.identifier.test(n.value)&&(r=f.syntax[n.value],(!r||!O(r))&&F(\"W069\",f.tokens.prev,n.value))),V(\"]\",t),n&&n.value===\"hasOwnProperty\"&&f.tokens.next.value===\"=\"&&F(\"W001\"),t.left=e,t.right=n,t},160,!0),ut(\"[\",function(){var e=an();if(e.isCompArray)return!f.option.esnext&&!f.inMoz()&&F(\"W118\",f.tokens.curr,\"array comprehension\"),Bt();if(e.isDestAssign)return this.destructAssign=Gt({openingParsed:!0,assignment:!0}),this;var t=f.tokens.curr.line!==G(f.tokens.next);this.first=[],t&&(g+=f.option.indent,f.tokens.next.from===g+f.option.indent&&(g+=f.option.indent));while(f.tokens.next.id!==\"(end)\"){while(f.tokens.next.id===\",\"){if(!f.option.elision){if(!!f.inES5()){F(\"W128\");do V(\",\");while(f.tokens.next.id===\",\");continue}F(\"W070\")}V(\",\")}if(f.tokens.next.id===\"]\")break;this.first.push(Q(10));if(f.tokens.next.id!==\",\")break;tt({allowTrailing:!0});if(f.tokens.next.id===\"]\"&&!f.inES5()){F(\"W070\",f.tokens.curr);break}}return t&&(g-=f.option.indent),V(\"]\",this),this}),function(e){e.nud=function(){var e,t,n,r,i,s=!1,o,u=Object.create(null);e=f.tokens.curr.line!==G(f.tokens.next),e&&(g+=f.option.indent,f.tokens.next.from===g+f.option.indent&&(g+=f.option.indent));var a=an();if(a.isDestAssign)return this.destructAssign=Gt({openingParsed:!0,assignment:!0}),this;for(;;){if(f.tokens.next.id===\"}\")break;o=f.tokens.next.value;if(!f.tokens.next.identifier||X().id!==\",\"&&X().id!==\"}\")if(W().id===\":\"||o!==\"get\"&&o!==\"set\"){f.tokens.next.value===\"*\"&&f.tokens.next.type===\"(punctuator)\"?(f.inES6()||F(\"W104\",f.tokens.next,\"generator functions\",\"6\"),V(\"*\"),s=!0):s=!1;if(f.tokens.next.id===\"[\")n=cn(),f.nameStack.set(n);else{f.nameStack.set(f.tokens.next),n=It(),fn(u,n,f.tokens.next);if(typeof n!=\"string\")break}f.tokens.next.value===\"(\"?(f.inES6()||F(\"W104\",f.tokens.curr,\"concise methods\",\"6\"),Xt({type:s?\"generator\":null})):(V(\":\"),Q(10))}else V(o),f.inES5()||q(\"E034\"),n=It(),!n&&!f.inES6()&&q(\"E035\"),n&&ln(o,u,n,f.tokens.curr),i=f.tokens.next,t=Xt(),r=t[\"(params)\"],o===\"get\"&&n&&r?F(\"W076\",i,r[0],n):o===\"set\"&&n&&(!r||r.length!==1)&&F(\"W077\",i,n);else f.inES6()||F(\"W104\",f.tokens.next,\"object short notation\",\"6\"),n=It(!0),fn(u,n,f.tokens.next),Q(10);Dt(n);if(f.tokens.next.id!==\",\")break;tt({allowTrailing:!0,property:!0}),f.tokens.next.id===\",\"?F(\"W070\",f.tokens.curr):f.tokens.next.id===\"}\"&&!f.inES5()&&F(\"W070\",f.tokens.curr)}return e&&(g-=f.option.indent),V(\"}\",this),Kt(u),this},e.fud=function(){q(\"E036\",f.tokens.curr)}}(rt(\"{\"));var tn=it(\"const\",function(e){return en(\"const\",this,e)});tn.exps=!0;var nn=it(\"let\",function(e){return en(\"let\",this,e)});nn.exps=!0;var rn=it(\"var\",function(e){var t=e&&e.prefix,n=e&&e.inexport,i,o,u,a=e&&e.implied,l=!e||!e.ignore;this.first=[];for(;;){var c=[];r.contains([\"{\",\"[\"],f.tokens.next.value)?(i=Gt(),o=!1):(i=[{id:Ct(),token:f.tokens.curr}],o=!0),(!t||!a)&&l&&f.option.varstmt&&F(\"W132\",this),this.first=this.first.concat(c);for(var h in i)i.hasOwnProperty(h)&&(h=i[h],!a&&f.funct[\"(global)\"]&&(S[h.id]===!1?F(\"W079\",h.token,h.id):f.option.futurehostile===!1&&(!f.inES5()&&s.ecmaIdentifiers[5][h.id]===!1||!f.inES6()&&s.ecmaIdentifiers[6][h.id]===!1)&&F(\"W129\",h.token,h.id)),h.id&&(a===\"for\"?(f.funct[\"(scope)\"].has(h.id)||l&&F(\"W088\",h.token,h.id),f.funct[\"(scope)\"].block.use(h.id,h.token)):(f.funct[\"(scope)\"].addlabel(h.id,{type:\"var\",token:h.token}),o&&n&&f.funct[\"(scope)\"].setExported(h.id,h.token)),c.push(h.token)));f.tokens.next.id===\"=\"&&(f.nameStack.set(f.tokens.curr),V(\"=\"),!t&&l&&!f.funct[\"(loopage)\"]&&f.tokens.next.id===\"undefined\"&&F(\"W080\",f.tokens.prev,f.tokens.prev.value),W(0).id===\"=\"&&f.tokens.next.identifier&&(!t&&l&&!f.funct[\"(params)\"]||f.funct[\"(params)\"].indexOf(f.tokens.next.value)===-1)&&F(\"W120\",f.tokens.next,f.tokens.next.value),u=Q(t?120:10),o?i[0].first=u:Zt(c,u));if(f.tokens.next.id!==\",\")break;tt()}return this});rn.exps=!0,st(\"class\",function(){return sn.call(this,!0)}),st(\"function\",function(e){var t=e&&e.inexport,n=!1;f.tokens.next.value===\"*\"&&(V(\"*\"),f.inES6({strict:!0})?n=!0:F(\"W119\",f.tokens.curr,\"function*\",\"6\")),m&&F(\"W082\",f.tokens.curr);var r=Nt();return f.funct[\"(scope)\"].addlabel(r,{type:\"function\",token:f.tokens.curr}),r===undefined?F(\"W025\"):t&&f.funct[\"(scope)\"].setExported(r,f.tokens.prev),Xt({name:r,statement:this,type:n?\"generator\":null,ignoreLoopFunc:m}),f.tokens.next.id===\"(\"&&f.tokens.next.line===f.tokens.curr.line&&q(\"E039\"),this}),ut(\"function\",function(){var e=!1;f.tokens.next.value===\"*\"&&(f.inES6()||F(\"W119\",f.tokens.curr,\"function*\",\"6\"),V(\"*\"),e=!0);var t=Nt();return Xt({name:t,type:e?\"generator\":null}),this}),st(\"if\",function(){var e=f.tokens.next;$t(),f.condition=!0,V(\"(\");var t=Q(0);Jt(t);var n=null;f.option.forin&&f.forinifcheckneeded&&(f.forinifcheckneeded=!1,n=f.forinifchecks[f.forinifchecks.length-1],t.type===\"(punctuator)\"&&t.value===\"!\"?n.type=\"(negative)\":n.type=\"(positive)\"),V(\")\",e),f.condition=!1;var r=_t(!0,!0);return n&&n.type===\"(negative)\"&&r&&r[0]&&r[0].type===\"(identifier)\"&&r[0].value===\"continue\"&&(n.type=\"(negative-with-continue)\"),f.tokens.next.id===\"else\"&&(V(\"else\"),f.tokens.next.id===\"if\"||f.tokens.next.id===\"switch\"?At():_t(!0,!0)),this}),st(\"try\",function(){function t(){V(\"catch\"),V(\"(\"),f.funct[\"(scope)\"].stack(\"catchparams\");if(hn(f.tokens.next,[\"[\",\"{\"])){var e=Gt();r.each(e,function(e){e.id&&f.funct[\"(scope)\"].addParam(e.id,e,\"exception\")})}else f.tokens.next.type!==\"(identifier)\"?F(\"E030\",f.tokens.next,f.tokens.next.value):f.funct[\"(scope)\"].addParam(Ct(),f.tokens.curr,\"exception\");f.tokens.next.value===\"if\"&&(f.inMoz()||F(\"W118\",f.tokens.curr,\"catch filter\"),V(\"if\"),Q(0)),V(\")\"),_t(!1),f.funct[\"(scope)\"].unstack()}var e;_t(!0);while(f.tokens.next.id===\"catch\")$t(),e&&!f.inMoz()&&F(\"W118\",f.tokens.next,\"multiple catch blocks\"),t(),e=!0;if(f.tokens.next.id===\"finally\"){V(\"finally\"),_t(!0);return}return e||q(\"E021\",f.tokens.next,\"catch\",f.tokens.next.value),this}),st(\"while\",function(){var e=f.tokens.next;return f.funct[\"(breakage)\"]+=1,f.funct[\"(loopage)\"]+=1,$t(),V(\"(\"),Jt(Q(0)),V(\")\",e),_t(!0,!0),f.funct[\"(breakage)\"]-=1,f.funct[\"(loopage)\"]-=1,this}).labelled=!0,st(\"with\",function(){var e=f.tokens.next;return f.isStrict()?q(\"E010\",f.tokens.curr):f.option.withstmt||F(\"W085\",f.tokens.curr),V(\"(\"),Q(0),V(\")\",e),_t(!0,!0),this}),st(\"switch\",function(){var e=f.tokens.next,t=!1,n=!1;f.funct[\"(breakage)\"]+=1,V(\"(\"),Jt(Q(0)),V(\")\",e),e=f.tokens.next,V(\"{\"),f.tokens.next.from===g&&(n=!0),n||(g+=f.option.indent),this.cases=[];for(;;)switch(f.tokens.next.id){case\"case\":switch(f.funct[\"(verb)\"]){case\"yield\":case\"break\":case\"case\":case\"continue\":case\"return\":case\"switch\":case\"throw\":break;default:f.tokens.curr.caseFallsThrough||F(\"W086\",f.tokens.curr,\"case\")}V(\"case\"),this.cases.push(Q(0)),$t(),t=!0,V(\":\"),f.funct[\"(verb)\"]=\"case\";break;case\"default\":switch(f.funct[\"(verb)\"]){case\"yield\":case\"break\":case\"continue\":case\"return\":case\"throw\":break;default:this.cases.length&&(f.tokens.curr.caseFallsThrough||F(\"W086\",f.tokens.curr,\"default\"))}V(\"default\"),t=!0,V(\":\");break;case\"}\":n||(g-=f.option.indent),V(\"}\",e),f.funct[\"(breakage)\"]-=1,f.funct[\"(verb)\"]=undefined;return;case\"(end)\":q(\"E023\",f.tokens.next,\"}\");return;default:g+=f.option.indent;if(t)switch(f.tokens.curr.id){case\",\":q(\"E040\");return;case\":\":t=!1,Ot();break;default:q(\"E025\",f.tokens.curr);return}else{if(f.tokens.curr.id!==\":\"){q(\"E021\",f.tokens.next,\"case\",f.tokens.next.value);return}V(\":\"),q(\"E024\",f.tokens.curr,\":\"),Ot()}g-=f.option.indent}return this}).labelled=!0,it(\"debugger\",function(){return f.option.debug||F(\"W087\",this),this}).exps=!0,function(){var e=it(\"do\",function(){f.funct[\"(breakage)\"]+=1,f.funct[\"(loopage)\"]+=1,$t(),this.first=_t(!0,!0),V(\"while\");var e=f.tokens.next;return V(\"(\"),Jt(Q(0)),V(\")\",e),f.funct[\"(breakage)\"]-=1,f.funct[\"(loopage)\"]-=1,this});e.labelled=!0,e.exps=!0}(),st(\"for\",function(){var e,t=f.tokens.next,n=!1,i=null;t.value===\"each\"&&(i=t,V(\"each\"),f.inMoz()||F(\"W118\",f.tokens.curr,\"for each\")),$t(),V(\"(\");var s,o=0,u=[\"in\",\"of\"],a=0,l,c;hn(f.tokens.next,[\"{\",\"[\"])&&++a;do{s=W(o),++o,hn(s,[\"{\",\"[\"])?++a:hn(s,[\"}\",\"]\"])&&--a;if(a<0)break;a===0&&(!l&&pn(s,\",\")?l=s:!c&&pn(s,\"=\")&&(c=s))}while(a>0||!r.contains(u,s.value)&&s.value!==\";\"&&s.type!==\"(end)\");if(r.contains(u,s.value)){!f.inES6()&&s.value===\"of\"&&F(\"W104\",s,\"for of\",\"6\");var h=!c&&!l;c&&q(\"W133\",l,s.value,\"initializer is forbidden\"),l&&q(\"W133\",l,s.value,\"more than one ForBinding\"),f.tokens.next.id===\"var\"?(V(\"var\"),f.tokens.curr.fud({prefix:!0})):f.tokens.next.id===\"let\"||f.tokens.next.id===\"const\"?(V(f.tokens.next.id),n=!0,f.funct[\"(scope)\"].stack(),f.tokens.curr.fud({prefix:!0})):Object.create(rn).fud({prefix:!0,implied:\"for\",ignore:!h}),V(s.value),Q(20),V(\")\",t),s.value===\"in\"&&f.option.forin&&(f.forinifcheckneeded=!0,f.forinifchecks===undefined&&(f.forinifchecks=[]),f.forinifchecks.push({type:\"(none)\"})),f.funct[\"(breakage)\"]+=1,f.funct[\"(loopage)\"]+=1,e=_t(!0,!0);if(s.value===\"in\"&&f.option.forin){if(f.forinifchecks&&f.forinifchecks.length>0){var p=f.forinifchecks.pop();(e&&e.length>0&&(typeof e[0]!=\"object\"||e[0].value!==\"if\")||p.type===\"(positive)\"&&e.length>1||p.type===\"(negative)\")&&F(\"W089\",this)}f.forinifcheckneeded=!1}f.funct[\"(breakage)\"]-=1,f.funct[\"(loopage)\"]-=1}else{i&&q(\"E045\",i);if(f.tokens.next.id!==\";\")if(f.tokens.next.id===\"var\")V(\"var\"),f.tokens.curr.fud();else if(f.tokens.next.id===\"let\")V(\"let\"),n=!0,f.funct[\"(scope)\"].stack(),f.tokens.curr.fud();else for(;;){Q(0,\"for\");if(f.tokens.next.id!==\",\")break;l()}Z(f.tokens.curr),V(\";\"),f.funct[\"(loopage)\"]+=1,f.tokens.next.id!==\";\"&&Jt(Q(0)),Z(f.tokens.curr),V(\";\"),f.tokens.next.id===\";\"&&q(\"E021\",f.tokens.next,\")\",\";\");if(f.tokens.next.id!==\")\")for(;;){Q(0,\"for\");if(f.tokens.next.id!==\",\")break;l()}V(\")\",t),f.funct[\"(breakage)\"]+=1,_t(!0,!0),f.funct[\"(breakage)\"]-=1,f.funct[\"(loopage)\"]-=1}return n&&f.funct[\"(scope)\"].unstack(),this}).labelled=!0,it(\"break\",function(){var e=f.tokens.next.value;return f.option.asi||Z(this),f.tokens.next.id!==\";\"&&!f.tokens.next.reach&&f.tokens.curr.line===G(f.tokens.next)?(f.funct[\"(scope)\"].funct.hasBreakLabel(e)||F(\"W090\",f.tokens.next,e),this.first=f.tokens.next,V()):f.funct[\"(breakage)\"]===0&&F(\"W052\",f.tokens.next,this.value),kt(this),this}).exps=!0,it(\"continue\",function(){var e=f.tokens.next.value;return f.funct[\"(breakage)\"]===0&&F(\"W052\",f.tokens.next,this.value),f.funct[\"(loopage)\"]||F(\"W052\",f.tokens.next,this.value),f.option.asi||Z(this),f.tokens.next.id!==\";\"&&!f.tokens.next.reach&&f.tokens.curr.line===G(f.tokens.next)&&(f.funct[\"(scope)\"].funct.hasBreakLabel(e)||F(\"W090\",f.tokens.next,e),this.first=f.tokens.next,V()),kt(this),this}).exps=!0,it(\"return\",function(){return this.line===G(f.tokens.next)?f.tokens.next.id!==\";\"&&!f.tokens.next.reach&&(this.first=Q(0),this.first&&this.first.type===\"(punctuator)\"&&this.first.value===\"=\"&&!this.first.paren&&!f.option.boss&&I(\"W093\",this.first.line,this.first.character)):f.tokens.next.type===\"(punctuator)\"&&[\"[\",\"{\",\"+\",\"-\"].indexOf(f.tokens.next.value)>-1&&Z(this),kt(this),this}).exps=!0,function(e){e.exps=!0,e.lbp=25}(ut(\"yield\",function(){var e=f.tokens.prev;f.inES6(!0)&&!f.funct[\"(generator)\"]?(\"(catch)\"!==f.funct[\"(name)\"]||!f.funct[\"(context)\"][\"(generator)\"])&&q(\"E046\",f.tokens.curr,\"yield\"):f.inES6()||F(\"W104\",f.tokens.curr,\"yield\",\"6\"),f.funct[\"(generator)\"]=\"yielded\";var t=!1;f.tokens.next.value===\"*\"&&(t=!0,V(\"*\"));if(this.line===G(f.tokens.next)||!f.inMoz()){if(t||f.tokens.next.id!==\";\"&&!f.option.asi&&!f.tokens.next.reach&&f.tokens.next.nud)Y(f.tokens.curr,f.tokens.next),this.first=Q(10),this.first.type===\"(punctuator)\"&&this.first.value===\"=\"&&!this.first.paren&&!f.option.boss&&I(\"W093\",this.first.line,this.first.character);f.inMoz()&&f.tokens.next.id!==\")\"&&(e.lbp>30||!e.assign&&!J()||e.id===\"yield\")&&q(\"E050\",this)}else f.option.asi||Z(this);return this})),it(\"throw\",function(){return Z(this),this.first=Q(20),kt(this),this}).exps=!0,it(\"import\",function(){f.inES6()||F(\"W119\",f.tokens.curr,\"import\",\"6\");if(f.tokens.next.type===\"(string)\")return V(\"(string)\"),this;if(f.tokens.next.identifier){this.name=Ct(),f.funct[\"(scope)\"].addlabel(this.name,{type:\"const\",token:f.tokens.curr});if(f.tokens.next.value!==\",\")return V(\"from\"),V(\"(string)\"),this;V(\",\")}if(f.tokens.next.id===\"*\")V(\"*\"),V(\"as\"),f.tokens.next.identifier&&(this.name=Ct(),f.funct[\"(scope)\"].addlabel(this.name,{type:\"const\",token:f.tokens.curr}));else{V(\"{\");for(;;){if(f.tokens.next.value===\"}\"){V(\"}\");break}var e;f.tokens.next.type===\"default\"?(e=\"default\",V(\"default\")):e=Ct(),f.tokens.next.value===\"as\"&&(V(\"as\"),e=Ct()),f.funct[\"(scope)\"].addlabel(e,{type:\"const\",token:f.tokens.curr});if(f.tokens.next.value!==\",\"){if(f.tokens.next.value===\"}\"){V(\"}\");break}q(\"E024\",f.tokens.next,f.tokens.next.value);break}V(\",\")}}return V(\"from\"),V(\"(string)\"),this}).exps=!0,it(\"export\",function(){var e=!0,t,n;f.inES6()||(F(\"W119\",f.tokens.curr,\"export\",\"6\"),e=!1),f.funct[\"(scope)\"].block.isGlobal()||(q(\"E053\",f.tokens.curr),e=!1);if(f.tokens.next.value===\"*\")return V(\"*\"),V(\"from\"),V(\"(string)\"),this;if(f.tokens.next.type===\"default\"){f.nameStack.set(f.tokens.next),V(\"default\");var r=f.tokens.next.id;if(r===\"function\"||r===\"class\")this.block=!0;return t=W(),Q(10),n=t.value,this.block&&(f.funct[\"(scope)\"].addlabel(n,{type:r,token:t}),f.funct[\"(scope)\"].setExported(n,t)),this}if(f.tokens.next.value===\"{\"){V(\"{\");var i=[];for(;;){f.tokens.next.identifier||q(\"E030\",f.tokens.next,f.tokens.next.value),V(),i.push(f.tokens.curr),f.tokens.next.value===\"as\"&&(V(\"as\"),f.tokens.next.identifier||q(\"E030\",f.tokens.next,f.tokens.next.value),V());if(f.tokens.next.value!==\",\"){if(f.tokens.next.value===\"}\"){V(\"}\");break}q(\"E024\",f.tokens.next,f.tokens.next.value);break}V(\",\")}return f.tokens.next.value===\"from\"?(V(\"from\"),V(\"(string)\")):e&&i.forEach(function(e){f.funct[\"(scope)\"].setExported(e.value,e)}),this}if(f.tokens.next.id===\"var\")V(\"var\"),f.tokens.curr.fud({inexport:!0});else if(f.tokens.next.id===\"let\")V(\"let\"),f.tokens.curr.fud({inexport:!0});else if(f.tokens.next.id===\"const\")V(\"const\"),f.tokens.curr.fud({inexport:!0});else if(f.tokens.next.id===\"function\")this.block=!0,V(\"function\"),f.syntax[\"function\"].fud({inexport:!0});else if(f.tokens.next.id===\"class\"){this.block=!0,V(\"class\");var s=f.tokens.next;f.syntax[\"class\"].fud(),f.funct[\"(scope)\"].setExported(s.value,s)}else q(\"E024\",f.tokens.next,f.tokens.next.value);return this}).exps=!0,lt(\"abstract\"),lt(\"boolean\"),lt(\"byte\"),lt(\"char\"),lt(\"class\",{es5:!0,nud:sn}),lt(\"double\"),lt(\"enum\",{es5:!0}),lt(\"export\",{es5:!0}),lt(\"extends\",{es5:!0}),lt(\"final\"),lt(\"float\"),lt(\"goto\"),lt(\"implements\",{es5:!0,strictOnly:!0}),lt(\"import\",{es5:!0}),lt(\"int\"),lt(\"interface\",{es5:!0,strictOnly:!0}),lt(\"long\"),lt(\"native\"),lt(\"package\",{es5:!0,strictOnly:!0}),lt(\"private\",{es5:!0,strictOnly:!0}),lt(\"protected\",{es5:!0,strictOnly:!0}),lt(\"public\",{es5:!0,strictOnly:!0}),lt(\"short\"),lt(\"static\",{es5:!0,strictOnly:!0}),lt(\"super\",{es5:!0}),lt(\"synchronized\"),lt(\"transient\"),lt(\"volatile\");var an=function(){var e,t,n,r=-1,i=0,s={};hn(f.tokens.curr,[\"[\",\"{\"])&&(i+=1);do{n=r===-1?f.tokens.curr:e,e=r===-1?f.tokens.next:W(r),t=W(r+1),r+=1,hn(e,[\"[\",\"{\"])?i+=1:hn(e,[\"]\",\"}\"])&&(i-=1);if(i===1&&e.identifier&&e.value===\"for\"&&!pn(n,\".\")){s.isCompArray=!0,s.notJson=!0;break}if(i===0&&hn(e,[\"}\",\"]\"])){if(t.value===\"=\"){s.isDestAssign=!0,s.notJson=!0;break}if(t.value===\".\"){s.notJson=!0;break}}pn(e,\";\")&&(s.isBlock=!0,s.notJson=!0)}while(i>0&&e.id!==\"(end)\");return s},vn=function(){function i(e){var t=n.variables.filter(function(t){if(t.value===e)return t.undef=!1,e}).length;return t!==0}function s(e){var t=n.variables.filter(function(t){if(t.value===e&&!t.undef)return t.unused===!0&&(t.unused=!1),e}).length;return t===0}var e=function(){this.mode=\"use\",this.variables=[]},t=[],n;return{stack:function(){n=new e,t.push(n)},unstack:function(){n.variables.filter(function(e){e.unused&&F(\"W098\",e.token,e.raw_text||e.value),e.undef&&f.funct[\"(scope)\"].block.use(e.value,e.token)}),t.splice(-1,1),n=t[t.length-1]},setState:function(e){r.contains([\"use\",\"define\",\"generate\",\"filter\"],e)&&(n.mode=e)},check:function(e){if(!n)return;return n&&n.mode===\"use\"?(s(e)&&n.variables.push({funct:f.funct,token:f.tokens.curr,value:e,undef:!0,unused:!1}),!0):n&&n.mode===\"define\"?(i(e)||n.variables.push({funct:f.funct,token:f.tokens.curr,value:e,undef:!1,unused:!0}),!0):n&&n.mode===\"generate\"?(f.funct[\"(scope)\"].block.use(e,f.tokens.curr),!0):n&&n.mode===\"filter\"?(s(e)&&f.funct[\"(scope)\"].block.use(e,f.tokens.curr),!0):!1}}},gn=function(e){return e.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")},yn=function(t,i,o){function U(e,t){if(!e)return;!Array.isArray(e)&&typeof e==\"object\"&&(e=Object.keys(e)),e.forEach(t)}var a,l,c,d,A,O,M={},P={};i=r.clone(i),f.reset(),i&&i.scope?p.scope=i.scope:(p.errors=[],p.undefs=[],p.internals=[],p.blacklist={},p.scope=\"(main)\"),S=Object.create(null),D(S,s.ecmaIdentifiers[3]),D(S,s.reservedVars),D(S,o||{}),n=Object.create(null);var j=Object.create(null);if(i){U(i.predef||null,function(e){var t,n;e[0]===\"-\"?(t=e.slice(1),p.blacklist[t]=t,delete S[t]):(n=Object.getOwnPropertyDescriptor(i.predef,e),S[e]=n?n.value:!1)}),U(i.exported||null,function(e){j[e]=!0}),delete i.predef,delete i.exported,O=Object.keys(i);for(c=0;c<O.length;c++)if(/^-W\\d{3}$/g.test(O[c]))P[O[c].slice(1)]=!0;else{var z=O[c];M[z]=i[z],(z===\"esversion\"&&i[z]===5||z===\"es5\"&&i[z])&&F(\"I003\"),O[c]===\"newcap\"&&i[z]===!1&&(M[\"(explicitNewcap)\"]=!0)}}f.option=M,f.ignored=P,f.option.indent=f.option.indent||4,f.option.maxerr=f.option.maxerr||50,g=1;var W=h(f,S,j,n);W.on(\"warning\",function(e){F.apply(null,[e.code,e.token].concat(e.data))}),W.on(\"error\",function(e){q.apply(null,[e.code,e.token].concat(e.data))}),f.funct=Rt(\"(global)\",null,{\"(global)\":!0,\"(scope)\":W,\"(comparray)\":vn(),\"(metrics)\":Vt(f.tokens.next)}),v=[f.funct],T=[],x=null,w={},E=null,m=!1,y=[];if(!L(t)&&!Array.isArray(t))return R(\"E004\",0),!1;e={get isJSON(){return f.jsonMode},getOption:function(e){return f.option[e]||null},getCache:function(e){return f.cache[e]},setCache:function(e,t){f.cache[e]=t},warn:function(e,t){I.apply(null,[e,t.line,t.char].concat(t.data))},on:function(e,t){e.split(\" \").forEach(function(e){C.on(e,t)}.bind(this))}},C.removeAllListeners(),(N||[]).forEach(function(t){t(e)}),f.tokens.prev=f.tokens.curr=f.tokens.next=f.syntax[\"(begin)\"],i&&i.ignoreDelimiters&&(Array.isArray(i.ignoreDelimiters)||(i.ignoreDelimiters=[i.ignoreDelimiters]),i.ignoreDelimiters.forEach(function(e){if(!e.start||!e.end)return;d=gn(e.start)+\"[\\\\s\\\\S]*?\"+gn(e.end),A=new RegExp(d,\"ig\"),t=t.replace(A,function(e){return e.replace(/./g,\" \")})})),b=new u(t),b.on(\"warning\",function(e){I.apply(null,[e.code,e.line,e.character].concat(e.data))}),b.on(\"error\",function(e){R.apply(null,[e.code,e.line,e.character].concat(e.data))}),b.on(\"fatal\",function(e){B(\"E041\",e.line,e.from)}),b.on(\"Identifier\",function(e){C.emit(\"Identifier\",e)}),b.on(\"String\",function(e){C.emit(\"String\",e)}),b.on(\"Number\",function(e){C.emit(\"Number\",e)}),b.start();for(var X in i)r.has(i,X)&&k(X,f.tokens.curr);H(),D(S,o||{}),tt.first=!0;try{V();switch(f.tokens.next.id){case\"{\":case\"[\":dn();break;default:Mt(),f.directive[\"use strict\"]&&f.option.strict!==\"global\"&&F(\"W097\",f.tokens.prev),Ot()}f.tokens.next.id!==\"(end)\"&&B(\"E041\",f.tokens.curr.line),f.funct[\"(scope)\"].unstack()}catch($){if(!$||$.name!==\"JSHintError\")throw $;var J=f.tokens.next||{};p.errors.push({scope:\"(main)\",raw:$.raw,code:$.code,reason:$.message,line:$.line||J.line,character:$.character||J.from},null)}if(p.scope===\"(main)\"){i=i||{};for(a=0;a<p.internals.length;a+=1)l=p.internals[a],i.scope=l.elem,yn(l.value,i,o)}return p.errors.length===0};return yn.addModule=function(e){N.push(e)},yn.addModule(l.register),yn.data=function(){var e={functions:[],options:f.option},t,n,r,i,s,o;yn.errors.length&&(e.errors=yn.errors),f.jsonMode&&(e.json=!0);var u=f.funct[\"(scope)\"].getImpliedGlobals();u.length>0&&(e.implieds=u),T.length>0&&(e.urls=T),o=f.funct[\"(scope)\"].getUsedOrDefinedGlobals(),o.length>0&&(e.globals=o);for(r=1;r<v.length;r+=1){n=v[r],t={};for(i=0;i<d.length;i+=1)t[d[i]]=[];for(i=0;i<d.length;i+=1)t[d[i]].length===0&&delete t[d[i]];t.name=n[\"(name)\"],t.param=n[\"(params)\"],t.line=n[\"(line)\"],t.character=n[\"(character)\"],t.last=n[\"(last)\"],t.lastcharacter=n[\"(lastcharacter)\"],t.metrics={complexity:n[\"(metrics)\"].ComplexityCount,parameters:n[\"(metrics)\"].arity,statements:n[\"(metrics)\"].statementCount},e.functions.push(t)}var a=f.funct[\"(scope)\"].getUnuseds();a.length>0&&(e.unused=a);for(s in w)if(typeof w[s]==\"number\"){e.member=w;break}return e},yn.jshint=yn,yn}();typeof n==\"object\"&&n&&(n.JSHINT=p)},{\"../lodash\":\"/node_modules/jshint/lodash.js\",\"./lex.js\":\"/node_modules/jshint/src/lex.js\",\"./messages.js\":\"/node_modules/jshint/src/messages.js\",\"./options.js\":\"/node_modules/jshint/src/options.js\",\"./reg.js\":\"/node_modules/jshint/src/reg.js\",\"./scope-manager.js\":\"/node_modules/jshint/src/scope-manager.js\",\"./state.js\":\"/node_modules/jshint/src/state.js\",\"./style.js\":\"/node_modules/jshint/src/style.js\",\"./vars.js\":\"/node_modules/jshint/src/vars.js\",events:\"/node_modules/browserify/node_modules/events/events.js\"}],\"/node_modules/jshint/src/lex.js\":[function(e,t,n){\"use strict\";function h(){var e=[];return{push:function(t){e.push(t)},check:function(){for(var t=0;t<e.length;++t)e[t]();e.splice(0,e.length)}}}function p(e){var t=e;typeof t==\"string\"&&(t=t.replace(/\\r\\n/g,\"\\n\").replace(/\\r/g,\"\\n\").split(\"\\n\")),t[0]&&t[0].substr(0,2)===\"#!\"&&(t[0].indexOf(\"node\")!==-1&&(o.option.node=!0),t[0]=\"\"),this.emitter=new i.EventEmitter,this.source=e,this.setLines(t),this.prereg=!0,this.line=0,this.char=1,this.from=1,this.input=\"\",this.inComment=!1,this.context=[],this.templateStarts=[];for(var n=0;n<o.option.indent;n+=1)o.tab+=\" \";this.ignoreLinterErrors=!1}var r=e(\"../lodash\"),i=e(\"events\"),s=e(\"./reg.js\"),o=e(\"./state.js\").state,u=e(\"../data/ascii-identifier-data.js\"),a=u.asciiIdentifierStartTable,f=u.asciiIdentifierPartTable,l={Identifier:1,Punctuator:2,NumericLiteral:3,StringLiteral:4,Comment:5,Keyword:6,NullLiteral:7,BooleanLiteral:8,RegExp:9,TemplateHead:10,TemplateMiddle:11,TemplateTail:12,NoSubstTemplate:13},c={Block:1,Template:2};p.prototype={_lines:[],inContext:function(e){return this.context.length>0&&this.context[this.context.length-1].type===e},pushContext:function(e){this.context.push({type:e})},popContext:function(){return this.context.pop()},isContext:function(e){return this.context.length>0&&this.context[this.context.length-1]===e},currentContext:function(){return this.context.length>0&&this.context[this.context.length-1]},getLines:function(){return this._lines=o.lines,this._lines},setLines:function(e){this._lines=e,o.lines=this._lines},peek:function(e){return this.input.charAt(e||0)},skip:function(e){e=e||1,this.char+=e,this.input=this.input.slice(e)},on:function(e,t){e.split(\" \").forEach(function(e){this.emitter.on(e,t)}.bind(this))},trigger:function(){this.emitter.emit.apply(this.emitter,Array.prototype.slice.call(arguments))},triggerAsync:function(e,t,n,r){n.push(function(){r()&&this.trigger(e,t)}.bind(this))},scanPunctuator:function(){var e=this.peek(),t,n,r;switch(e){case\".\":if(/^[0-9]$/.test(this.peek(1)))return null;if(this.peek(1)===\".\"&&this.peek(2)===\".\")return{type:l.Punctuator,value:\"...\"};case\"(\":case\")\":case\";\":case\",\":case\"[\":case\"]\":case\":\":case\"~\":case\"?\":return{type:l.Punctuator,value:e};case\"{\":return this.pushContext(c.Block),{type:l.Punctuator,value:e};case\"}\":return this.inContext(c.Block)&&this.popContext(),{type:l.Punctuator,value:e};case\"#\":return{type:l.Punctuator,value:e};case\"\":return null}return t=this.peek(1),n=this.peek(2),r=this.peek(3),e===\">\"&&t===\">\"&&n===\">\"&&r===\"=\"?{type:l.Punctuator,value:\">>>=\"}:e===\"=\"&&t===\"=\"&&n===\"=\"?{type:l.Punctuator,value:\"===\"}:e===\"!\"&&t===\"=\"&&n===\"=\"?{type:l.Punctuator,value:\"!==\"}:e===\">\"&&t===\">\"&&n===\">\"?{type:l.Punctuator,value:\">>>\"}:e===\"<\"&&t===\"<\"&&n===\"=\"?{type:l.Punctuator,value:\"<<=\"}:e===\">\"&&t===\">\"&&n===\"=\"?{type:l.Punctuator,value:\">>=\"}:e===\"=\"&&t===\">\"?{type:l.Punctuator,value:e+t}:e===t&&\"+-<>&|\".indexOf(e)>=0?{type:l.Punctuator,value:e+t}:\"<>=!+-*%&|^\".indexOf(e)>=0?t===\"=\"?{type:l.Punctuator,value:e+t}:{type:l.Punctuator,value:e}:e===\"/\"?t===\"=\"?{type:l.Punctuator,value:\"/=\"}:{type:l.Punctuator,value:\"/\"}:null},scanComments:function(){function u(e,t,n){var r=[\"jshint\",\"jslint\",\"members\",\"member\",\"globals\",\"global\",\"exported\"],i=!1,u=e+t,a=\"plain\";return n=n||{},n.isMultiline&&(u+=\"*/\"),t=t.replace(/\\n/g,\" \"),e===\"/*\"&&s.fallsThrough.test(t)&&(i=!0,a=\"falls through\"),r.forEach(function(n){if(i)return;if(e===\"//\"&&n!==\"jshint\")return;t.charAt(n.length)===\" \"&&t.substr(0,n.length)===n&&(i=!0,e+=n,t=t.substr(n.length)),!i&&t.charAt(0)===\" \"&&t.charAt(n.length+1)===\" \"&&t.substr(1,n.length)===n&&(i=!0,e=e+\" \"+n,t=t.substr(n.length+1));if(!i)return;switch(n){case\"member\":a=\"members\";break;case\"global\":a=\"globals\";break;default:var r=t.split(\":\").map(function(e){return e.replace(/^\\s+/,\"\").replace(/\\s+$/,\"\")});if(r.length===2)switch(r[0]){case\"ignore\":switch(r[1]){case\"start\":o.ignoringLinterErrors=!0,i=!1;break;case\"end\":o.ignoringLinterErrors=!1,i=!1}}a=n}}),{type:l.Comment,commentType:a,value:u,body:t,isSpecial:i,isMultiline:n.isMultiline||!1,isMalformed:n.isMalformed||!1}}var e=this.peek(),t=this.peek(1),n=this.input.substr(2),r=this.line,i=this.char,o=this;if(e===\"*\"&&t===\"/\")return this.trigger(\"error\",{code:\"E018\",line:r,character:i}),this.skip(2),null;if(e!==\"/\"||t!==\"*\"&&t!==\"/\")return null;if(t===\"/\")return this.skip(this.input.length),u(\"//\",n);var a=\"\";if(t===\"*\"){this.inComment=!0,this.skip(2);while(this.peek()!==\"*\"||this.peek(1)!==\"/\")if(this.peek()===\"\"){a+=\"\\n\";if(!this.nextLine())return this.trigger(\"error\",{code:\"E017\",line:r,character:i}),this.inComment=!1,u(\"/*\",a,{isMultiline:!0,isMalformed:!0})}else a+=this.peek(),this.skip();return this.skip(2),this.inComment=!1,u(\"/*\",a,{isMultiline:!0})}},scanKeyword:function(){var e=/^[a-zA-Z_$][a-zA-Z0-9_$]*/.exec(this.input),t=[\"if\",\"in\",\"do\",\"var\",\"for\",\"new\",\"try\",\"let\",\"this\",\"else\",\"case\",\"void\",\"with\",\"enum\",\"while\",\"break\",\"catch\",\"throw\",\"const\",\"yield\",\"class\",\"super\",\"return\",\"typeof\",\"delete\",\"switch\",\"export\",\"import\",\"default\",\"finally\",\"extends\",\"function\",\"continue\",\"debugger\",\"instanceof\"];return e&&t.indexOf(e[0])>=0?{type:l.Keyword,value:e[0]}:null},scanIdentifier:function(){function i(e){return e>256}function s(e){return e>256}function o(e){return/^[0-9a-fA-F]$/.test(e)}function p(e){return e.replace(/\\\\u([0-9a-fA-F]{4})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})}var e=\"\",t=0,n,r,u=function(){t+=1;if(this.peek(t)!==\"u\")return null;var e=this.peek(t+1),n=this.peek(t+2),r=this.peek(t+3),i=this.peek(t+4),u;return o(e)&&o(n)&&o(r)&&o(i)?(u=parseInt(e+n+r+i,16),f[u]||s(u)?(t+=5,\"\\\\u\"+e+n+r+i):null):null}.bind(this),c=function(){var e=this.peek(t),n=e.charCodeAt(0);return n===92?u():n<128?a[n]?(t+=1,e):null:i(n)?(t+=1,e):null}.bind(this),h=function(){var e=this.peek(t),n=e.charCodeAt(0);return n===92?u():n<128?f[n]?(t+=1,e):null:s(n)?(t+=1,e):null}.bind(this);r=c();if(r===null)return null;e=r;for(;;){r=h();if(r===null)break;e+=r}switch(e){case\"true\":case\"false\":n=l.BooleanLiteral;break;case\"null\":n=l.NullLiteral;break;default:n=l.Identifier}return{type:n,value:p(e),text:e,tokenLength:e.length}},scanNumericLiteral:function(){function f(e){return/^[0-9]$/.test(e)}function c(e){return/^[0-7]$/.test(e)}function h(e){return/^[01]$/.test(e)}function p(e){return/^[0-9a-fA-F]$/.test(e)}function d(e){return e===\"$\"||e===\"_\"||e===\"\\\\\"||e>=\"a\"&&e<=\"z\"||e>=\"A\"&&e<=\"Z\"}var e=0,t=\"\",n=this.input.length,r=this.peek(e),i,s=f,u=10,a=!1;if(r!==\".\"&&!f(r))return null;if(r!==\".\"){t=this.peek(e),e+=1,r=this.peek(e);if(t===\"0\"){if(r===\"x\"||r===\"X\")s=p,u=16,e+=1,t+=r;if(r===\"o\"||r===\"O\")s=c,u=8,o.inES6(!0)||this.trigger(\"warning\",{code:\"W119\",line:this.line,character:this.char,data:[\"Octal integer literal\",\"6\"]}),e+=1,t+=r;if(r===\"b\"||r===\"B\")s=h,u=2,o.inES6(!0)||this.trigger(\"warning\",{code:\"W119\",line:this.line,character:this.char,data:[\"Binary integer literal\",\"6\"]}),e+=1,t+=r;c(r)&&(s=c,u=8,a=!0,i=!1,e+=1,t+=r),!c(r)&&f(r)&&(e+=1,t+=r)}while(e<n){r=this.peek(e);if(a&&f(r))i=!0;else if(!s(r))break;t+=r,e+=1}if(s!==f){if(!a&&t.length<=2)return{type:l.NumericLiteral,value:t,isMalformed:!0};if(e<n){r=this.peek(e);if(d(r))return null}return{type:l.NumericLiteral,value:t,base:u,isLegacy:a,isMalformed:!1}}}if(r===\".\"){t+=r,e+=1;while(e<n){r=this.peek(e);if(!f(r))break;t+=r,e+=1}}if(r===\"e\"||r===\"E\"){t+=r,e+=1,r=this.peek(e);if(r===\"+\"||r===\"-\")t+=this.peek(e),e+=1;r=this.peek(e);if(!f(r))return null;t+=r,e+=1;while(e<n){r=this.peek(e);if(!f(r))break;t+=r,e+=1}}if(e<n){r=this.peek(e);if(d(r))return null}return{type:l.NumericLiteral,value:t,base:u,isMalformed:!isFinite(t)}},scanEscapeSequence:function(e){var t=!1,n=1;this.skip();var r=this.peek();switch(r){case\"'\":this.triggerAsync(\"warning\",{code:\"W114\",line:this.line,character:this.char,data:[\"\\\\'\"]},e,function(){return o.jsonMode});break;case\"b\":r=\"\\\\b\";break;case\"f\":r=\"\\\\f\";break;case\"n\":r=\"\\\\n\";break;case\"r\":r=\"\\\\r\";break;case\"t\":r=\"\\\\t\";break;case\"0\":r=\"\\\\0\";var i=parseInt(this.peek(1),10);this.triggerAsync(\"warning\",{code:\"W115\",line:this.line,character:this.char},e,function(){return i>=0&&i<=7&&o.isStrict()});break;case\"u\":var s=this.input.substr(1,4),u=parseInt(s,16);isNaN(u)&&this.trigger(\"warning\",{code:\"W052\",line:this.line,character:this.char,data:[\"u\"+s]}),r=String.fromCharCode(u),n=5;break;case\"v\":this.triggerAsync(\"warning\",{code:\"W114\",line:this.line,character:this.char,data:[\"\\\\v\"]},e,function(){return o.jsonMode}),r=\"\\x0b\";break;case\"x\":var a=parseInt(this.input.substr(1,2),16);this.triggerAsync(\"warning\",{code:\"W114\",line:this.line,character:this.char,data:[\"\\\\x-\"]},e,function(){return o.jsonMode}),r=String.fromCharCode(a),n=3;break;case\"\\\\\":r=\"\\\\\\\\\";break;case'\"':r='\\\\\"';break;case\"/\":break;case\"\":t=!0,r=\"\"}return{\"char\":r,jump:n,allowNewLine:t}},scanTemplateLiteral:function(e){var t,n=\"\",r,i=this.line,s=this.char,u=this.templateStarts.length;if(!o.inES6(!0))return null;if(this.peek()===\"`\")t=l.TemplateHead,this.templateStarts.push({line:this.line,\"char\":this.char}),u=this.templateStarts.length,this.skip(1),this.pushContext(c.Template);else{if(!this.inContext(c.Template)||this.peek()!==\"}\")return null;t=l.TemplateMiddle}while(this.peek()!==\"`\"){while((r=this.peek())===\"\"){n+=\"\\n\";if(!this.nextLine()){var a=this.templateStarts.pop();return this.trigger(\"error\",{code:\"E052\",line:a.line,character:a.char}),{type:t,value:n,startLine:i,startChar:s,isUnclosed:!0,depth:u,context:this.popContext()}}}if(r===\"$\"&&this.peek(1)===\"{\")return n+=\"${\",this.skip(2),{type:t,value:n,startLine:i,startChar:s,isUnclosed:!1,depth:u,context:this.currentContext()};if(r===\"\\\\\"){var f=this.scanEscapeSequence(e);n+=f.char,this.skip(f.jump)}else r!==\"`\"&&(n+=r,this.skip(1))}return t=t===l.TemplateHead?l.NoSubstTemplate:l.TemplateTail,this.skip(1),this.templateStarts.pop(),{type:t,value:n,startLine:i,startChar:s,isUnclosed:!1,depth:u,context:this.popContext()}},scanStringLiteral:function(e){var t=this.peek();if(t!=='\"'&&t!==\"'\")return null;this.triggerAsync(\"warning\",{code:\"W108\",line:this.line,character:this.char},e,function(){return o.jsonMode&&t!=='\"'});var n=\"\",r=this.line,i=this.char,s=!1;this.skip();while(this.peek()!==t)if(this.peek()===\"\"){s?(s=!1,this.triggerAsync(\"warning\",{code:\"W043\",line:this.line,character:this.char},e,function(){return!o.option.multistr}),this.triggerAsync(\"warning\",{code:\"W042\",line:this.line,character:this.char},e,function(){return o.jsonMode&&o.option.multistr})):this.trigger(\"warning\",{code:\"W112\",line:this.line,character:this.char});if(!this.nextLine())return this.trigger(\"error\",{code:\"E029\",line:r,character:i}),{type:l.StringLiteral,value:n,startLine:r,startChar:i,isUnclosed:!0,quote:t}}else{s=!1;var u=this.peek(),a=1;u<\" \"&&this.trigger(\"warning\",{code:\"W113\",line:this.line,character:this.char,data:[\"<non-printable>\"]});if(u===\"\\\\\"){var f=this.scanEscapeSequence(e);u=f.char,a=f.jump,s=f.allowNewLine}n+=u,this.skip(a)}return this.skip(),{type:l.StringLiteral,value:n,startLine:r,startChar:i,isUnclosed:!1,quote:t}},scanRegExp:function(){var e=0,t=this.input.length,n=this.peek(),r=n,i=\"\",s=[],o=!1,u=!1,a,f=function(){n<\" \"&&(o=!0,this.trigger(\"warning\",{code:\"W048\",line:this.line,character:this.char})),n===\"<\"&&(o=!0,this.trigger(\"warning\",{code:\"W049\",line:this.line,character:this.char,data:[n]}))}.bind(this);if(!this.prereg||n!==\"/\")return null;e+=1,a=!1;while(e<t){n=this.peek(e),r+=n,i+=n;if(u){n===\"]\"&&(this.peek(e-1)!==\"\\\\\"||this.peek(e-2)===\"\\\\\")&&(u=!1),n===\"\\\\\"&&(e+=1,n=this.peek(e),i+=n,r+=n,f()),e+=1;continue}if(n===\"\\\\\"){e+=1,n=this.peek(e),i+=n,r+=n,f();if(n===\"/\"){e+=1;continue}if(n===\"[\"){e+=1;continue}}if(n===\"[\"){u=!0,e+=1;continue}if(n===\"/\"){i=i.substr(0,i.length-1),a=!0,e+=1;break}e+=1}if(!a)return this.trigger(\"error\",{code:\"E015\",line:this.line,character:this.from}),void this.trigger(\"fatal\",{line:this.line,from:this.from});while(e<t){n=this.peek(e);if(!/[gim]/.test(n))break;s.push(n),r+=n,e+=1}try{new RegExp(i,s.join(\"\"))}catch(c){o=!0,this.trigger(\"error\",{code:\"E016\",line:this.line,character:this.char,data:[c.message]})}return{type:l.RegExp,value:r,flags:s,isMalformed:o}},scanNonBreakingSpaces:function(){return o.option.nonbsp?this.input.search(/(\\u00A0)/):-1},scanUnsafeChars:function(){return this.input.search(s.unsafeChars)},next:function(e){this.from=this.char;var t;if(/\\s/.test(this.peek())){t=this.char;while(/\\s/.test(this.peek()))this.from+=1,this.skip()}var n=this.scanComments()||this.scanStringLiteral(e)||this.scanTemplateLiteral(e);return n?n:(n=this.scanRegExp()||this.scanPunctuator()||this.scanKeyword()||this.scanIdentifier()||this.scanNumericLiteral(),n?(this.skip(n.tokenLength||n.value.length),n):null)},nextLine:function(){var e;if(this.line>=this.getLines().length)return!1;this.input=this.getLines()[this.line],this.line+=1,this.char=1,this.from=1;var t=this.input.trim(),n=function(){return r.some(arguments,function(e){return t.indexOf(e)===0})},i=function(){return r.some(arguments,function(e){return t.indexOf(e,t.length-e.length)!==-1})};this.ignoringLinterErrors===!0&&!n(\"/*\",\"//\")&&(!this.inComment||!i(\"*/\"))&&(this.input=\"\"),e=this.scanNonBreakingSpaces(),e>=0&&this.trigger(\"warning\",{code:\"W125\",line:this.line,character:e+1}),this.input=this.input.replace(/\\t/g,o.tab),e=this.scanUnsafeChars(),e>=0&&this.trigger(\"warning\",{code:\"W100\",line:this.line,character:e});if(!this.ignoringLinterErrors&&o.option.maxlen&&o.option.maxlen<this.input.length){var u=this.inComment||n.call(t,\"//\")||n.call(t,\"/*\"),a=!u||!s.maxlenException.test(t);a&&this.trigger(\"warning\",{code:\"W101\",line:this.line,character:this.input.length})}return!0},start:function(){this.nextLine()},token:function(){function n(e,t){if(!e.reserved)return!1;var n=e.meta;if(n&&n.isFutureReservedWord&&o.inES5()){if(!n.es5)return!1;if(n.strictOnly&&!o.option.strict&&!o.isStrict())return!1;if(t)return!1}return!0}var e=h(),t,i=function(t,i,s,u){var a;t!==\"(endline)\"&&t!==\"(end)\"&&(this.prereg=!1);if(t===\"(punctuator)\"){switch(i){case\".\":case\")\":case\"~\":case\"#\":case\"]\":case\"++\":case\"--\":this.prereg=!1;break;default:this.prereg=!0}a=Object.create(o.syntax[i]||o.syntax[\"(error)\"])}if(t===\"(identifier)\"){if(i===\"return\"||i===\"case\"||i===\"typeof\")this.prereg=!0;r.has(o.syntax,i)&&(a=Object.create(o.syntax[i]||o.syntax[\"(error)\"]),n(a,s&&t===\"(identifier)\")||(a=null))}return a||(a=Object.create(o.syntax[t])),a.identifier=t===\"(identifier)\",a.type=a.type||t,a.value=i,a.line=this.line,a.character=this.char,a.from=this.from,a.identifier&&u&&(a.raw_text=u.text||u.value),u&&u.startLine&&u.startLine!==this.line&&(a.startLine=u.startLine),u&&u.context&&(a.context=u.context),u&&u.depth&&(a.depth=u.depth),u&&u.isUnclosed&&(a.isUnclosed=u.isUnclosed),s&&a.identifier&&(a.isProperty=s),a.check=e.check,a}.bind(this);for(;;){if(!this.input.length)return this.nextLine()?i(\"(endline)\",\"\"):this.exhausted?null:(this.exhausted=!0,i(\"(end)\",\"\"));t=this.next(e);if(!t){this.input.length&&(this.trigger(\"error\",{code:\"E024\",line:this.line,character:this.char,data:[this.peek()]}),this.input=\"\");continue}switch(t.type){case l.StringLiteral:return this.triggerAsync(\"String\",{line:this.line,\"char\":this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value,quote:t.quote},e,function(){return!0}),i(\"(string)\",t.value,null,t);case l.TemplateHead:return this.trigger(\"TemplateHead\",{line:this.line,\"char\":this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value}),i(\"(template)\",t.value,null,t);case l.TemplateMiddle:return this.trigger(\"TemplateMiddle\",{line:this.line,\"char\":this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value}),i(\"(template middle)\",t.value,null,t);case l.TemplateTail:return this.trigger(\"TemplateTail\",{line:this.line,\"char\":this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value}),i(\"(template tail)\",t.value,null,t);case l.NoSubstTemplate:return this.trigger(\"NoSubstTemplate\",{line:this.line,\"char\":this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value}),i(\"(no subst template)\",t.value,null,t);case l.Identifier:this.triggerAsync(\"Identifier\",{line:this.line,\"char\":this.char,from:this.form,name:t.value,raw_name:t.text,isProperty:o.tokens.curr.id===\".\"},e,function(){return!0});case l.Keyword:case l.NullLiteral:case l.BooleanLiteral:return i(\"(identifier)\",t.value,o.tokens.curr.id===\".\",t);case l.NumericLiteral:return t.isMalformed&&this.trigger(\"warning\",{code:\"W045\",line:this.line,character:this.char,data:[t.value]}),this.triggerAsync(\"warning\",{code:\"W114\",line:this.line,character:this.char,data:[\"0x-\"]},e,function(){return t.base===16&&o.jsonMode}),this.triggerAsync(\"warning\",{code:\"W115\",line:this.line,character:this.char},e,function(){return o.isStrict()&&t.base===8&&t.isLegacy}),this.trigger(\"Number\",{line:this.line,\"char\":this.char,from:this.from,value:t.value,base:t.base,isMalformed:t.malformed}),i(\"(number)\",t.value);case l.RegExp:return i(\"(regexp)\",t.value);case l.Comment:o.tokens.curr.comment=!0;if(t.isSpecial)return{id:\"(comment)\",value:t.value,body:t.body,type:t.commentType,isSpecial:t.isSpecial,line:this.line,character:this.char,from:this.from};break;case\"\":break;default:return i(\"(punctuator)\",t.value)}}}},n.Lexer=p,n.Context=c},{\"../data/ascii-identifier-data.js\":\"/node_modules/jshint/data/ascii-identifier-data.js\",\"../lodash\":\"/node_modules/jshint/lodash.js\",\"./reg.js\":\"/node_modules/jshint/src/reg.js\",\"./state.js\":\"/node_modules/jshint/src/state.js\",events:\"/node_modules/browserify/node_modules/events/events.js\"}],\"/node_modules/jshint/src/messages.js\":[function(e,t,n){\"use strict\";var r=e(\"../lodash\"),i={E001:\"Bad option: '{a}'.\",E002:\"Bad option value.\",E003:\"Expected a JSON value.\",E004:\"Input is neither a string nor an array of strings.\",E005:\"Input is empty.\",E006:\"Unexpected early end of program.\",E007:'Missing \"use strict\" statement.',E008:\"Strict violation.\",E009:\"Option 'validthis' can't be used in a global scope.\",E010:\"'with' is not allowed in strict mode.\",E011:\"'{a}' has already been declared.\",E012:\"const '{a}' is initialized to 'undefined'.\",E013:\"Attempting to override '{a}' which is a constant.\",E014:\"A regular expression literal can be confused with '/='.\",E015:\"Unclosed regular expression.\",E016:\"Invalid regular expression.\",E017:\"Unclosed comment.\",E018:\"Unbegun comment.\",E019:\"Unmatched '{a}'.\",E020:\"Expected '{a}' to match '{b}' from line {c} and instead saw '{d}'.\",E021:\"Expected '{a}' and instead saw '{b}'.\",E022:\"Line breaking error '{a}'.\",E023:\"Missing '{a}'.\",E024:\"Unexpected '{a}'.\",E025:\"Missing ':' on a case clause.\",E026:\"Missing '}' to match '{' from line {a}.\",E027:\"Missing ']' to match '[' from line {a}.\",E028:\"Illegal comma.\",E029:\"Unclosed string.\",E030:\"Expected an identifier and instead saw '{a}'.\",E031:\"Bad assignment.\",E032:\"Expected a small integer or 'false' and instead saw '{a}'.\",E033:\"Expected an operator and instead saw '{a}'.\",E034:\"get/set are ES5 features.\",E035:\"Missing property name.\",E036:\"Expected to see a statement and instead saw a block.\",E037:null,E038:null,E039:\"Function declarations are not invocable. Wrap the whole function invocation in parens.\",E040:\"Each value should have its own case label.\",E041:\"Unrecoverable syntax error.\",E042:\"Stopping.\",E043:\"Too many errors.\",E044:null,E045:\"Invalid for each loop.\",E046:\"A yield statement shall be within a generator function (with syntax: `function*`)\",E047:null,E048:\"{a} declaration not directly within block.\",E049:\"A {a} cannot be named '{b}'.\",E050:\"Mozilla requires the yield expression to be parenthesized here.\",E051:null,E052:\"Unclosed template literal.\",E053:\"Export declaration must be in global scope.\",E054:\"Class properties must be methods. Expected '(' but instead saw '{a}'.\",E055:\"The '{a}' option cannot be set after any executable code.\",E056:\"'{a}' was used before it was declared, which is illegal for '{b}' variables.\",E057:\"Invalid meta property: '{a}.{b}'.\",E058:\"Missing semicolon.\"},s={W001:\"'hasOwnProperty' is a really bad name.\",W002:\"Value of '{a}' may be overwritten in IE 8 and earlier.\",W003:\"'{a}' was used before it was defined.\",W004:\"'{a}' is already defined.\",W005:\"A dot following a number can be confused with a decimal point.\",W006:\"Confusing minuses.\",W007:\"Confusing plusses.\",W008:\"A leading decimal point can be confused with a dot: '{a}'.\",W009:\"The array literal notation [] is preferable.\",W010:\"The object literal notation {} is preferable.\",W011:null,W012:null,W013:null,W014:\"Bad line breaking before '{a}'.\",W015:null,W016:\"Unexpected use of '{a}'.\",W017:\"Bad operand.\",W018:\"Confusing use of '{a}'.\",W019:\"Use the isNaN function to compare with NaN.\",W020:\"Read only.\",W021:\"Reassignment of '{a}', which is is a {b}. Use 'var' or 'let' to declare bindings that may change.\",W022:\"Do not assign to the exception parameter.\",W023:\"Expected an identifier in an assignment and instead saw a function invocation.\",W024:\"Expected an identifier and instead saw '{a}' (a reserved word).\",W025:\"Missing name in function declaration.\",W026:\"Inner functions should be listed at the top of the outer function.\",W027:\"Unreachable '{a}' after '{b}'.\",W028:\"Label '{a}' on {b} statement.\",W030:\"Expected an assignment or function call and instead saw an expression.\",W031:\"Do not use 'new' for side effects.\",W032:\"Unnecessary semicolon.\",W033:\"Missing semicolon.\",W034:'Unnecessary directive \"{a}\".',W035:\"Empty block.\",W036:\"Unexpected /*member '{a}'.\",W037:\"'{a}' is a statement label.\",W038:\"'{a}' used out of scope.\",W039:\"'{a}' is not allowed.\",W040:\"Possible strict violation.\",W041:\"Use '{a}' to compare with '{b}'.\",W042:\"Avoid EOL escaping.\",W043:\"Bad escaping of EOL. Use option multistr if needed.\",W044:\"Bad or unnecessary escaping.\",W045:\"Bad number '{a}'.\",W046:\"Don't use extra leading zeros '{a}'.\",W047:\"A trailing decimal point can be confused with a dot: '{a}'.\",W048:\"Unexpected control character in regular expression.\",W049:\"Unexpected escaped character '{a}' in regular expression.\",W050:\"JavaScript URL.\",W051:\"Variables should not be deleted.\",W052:\"Unexpected '{a}'.\",W053:\"Do not use {a} as a constructor.\",W054:\"The Function constructor is a form of eval.\",W055:\"A constructor name should start with an uppercase letter.\",W056:\"Bad constructor.\",W057:\"Weird construction. Is 'new' necessary?\",W058:\"Missing '()' invoking a constructor.\",W059:\"Avoid arguments.{a}.\",W060:\"document.write can be a form of eval.\",W061:\"eval can be harmful.\",W062:\"Wrap an immediate function invocation in parens to assist the reader in understanding that the expression is the result of a function, and not the function itself.\",W063:\"Math is not a function.\",W064:\"Missing 'new' prefix when invoking a constructor.\",W065:\"Missing radix parameter.\",W066:\"Implied eval. Consider passing a function instead of a string.\",W067:\"Bad invocation.\",W068:\"Wrapping non-IIFE function literals in parens is unnecessary.\",W069:\"['{a}'] is better written in dot notation.\",W070:\"Extra comma. (it breaks older versions of IE)\",W071:\"This function has too many statements. ({a})\",W072:\"This function has too many parameters. ({a})\",W073:\"Blocks are nested too deeply. ({a})\",W074:\"This function's cyclomatic complexity is too high. ({a})\",W075:\"Duplicate {a} '{b}'.\",W076:\"Unexpected parameter '{a}' in get {b} function.\",W077:\"Expected a single parameter in set {a} function.\",W078:\"Setter is defined without getter.\",W079:\"Redefinition of '{a}'.\",W080:\"It's not necessary to initialize '{a}' to 'undefined'.\",W081:null,W082:\"Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.\",W083:\"Don't make functions within a loop.\",W084:\"Assignment in conditional expression\",W085:\"Don't use 'with'.\",W086:\"Expected a 'break' statement before '{a}'.\",W087:\"Forgotten 'debugger' statement?\",W088:\"Creating global 'for' variable. Should be 'for (var {a} ...'.\",W089:\"The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.\",W090:\"'{a}' is not a statement label.\",W091:null,W093:\"Did you mean to return a conditional instead of an assignment?\",W094:\"Unexpected comma.\",W095:\"Expected a string and instead saw {a}.\",W096:\"The '{a}' key may produce unexpected results.\",W097:'Use the function form of \"use strict\".',W098:\"'{a}' is defined but never used.\",W099:null,W100:\"This character may get silently deleted by one or more browsers.\",W101:\"Line is too long.\",W102:null,W103:\"The '{a}' property is deprecated.\",W104:\"'{a}' is available in ES{b} (use 'esversion: {b}') or Mozilla JS extensions (use moz).\",W105:\"Unexpected {a} in '{b}'.\",W106:\"Identifier '{a}' is not in camel case.\",W107:\"Script URL.\",W108:\"Strings must use doublequote.\",W109:\"Strings must use singlequote.\",W110:\"Mixed double and single quotes.\",W112:\"Unclosed string.\",W113:\"Control character in string: {a}.\",W114:\"Avoid {a}.\",W115:\"Octal literals are not allowed in strict mode.\",W116:\"Expected '{a}' and instead saw '{b}'.\",W117:\"'{a}' is not defined.\",W118:\"'{a}' is only available in Mozilla JavaScript extensions (use moz option).\",W119:\"'{a}' is only available in ES{b} (use 'esversion: {b}').\",W120:\"You might be leaking a variable ({a}) here.\",W121:\"Extending prototype of native object: '{a}'.\",W122:\"Invalid typeof value '{a}'\",W123:\"'{a}' is already defined in outer scope.\",W124:\"A generator function shall contain a yield statement.\",W125:\"This line contains non-breaking spaces: http://jshint.com/doc/options/#nonbsp\",W126:\"Unnecessary grouping operator.\",W127:\"Unexpected use of a comma operator.\",W128:\"Empty array elements require elision=true.\",W129:\"'{a}' is defined in a future version of JavaScript. Use a different variable name to avoid migration issues.\",W130:\"Invalid element after rest element.\",W131:\"Invalid parameter after rest parameter.\",W132:\"`var` declarations are forbidden. Use `let` or `const` instead.\",W133:\"Invalid for-{a} loop left-hand-side: {b}.\",W134:\"The '{a}' option is only available when linting ECMAScript {b} code.\",W135:\"{a} may not be supported by non-browser environments.\",W136:\"'{a}' must be in function scope.\",W137:\"Empty destructuring.\",W138:\"Regular parameters should not come after default parameters.\"},o={I001:\"Comma warnings can be turned off with 'laxcomma'.\",I002:null,I003:\"ES5 option is now set per default\"};n.errors={},n.warnings={},n.info={},r.each(i,function(e,t){n.errors[t]={code:t,desc:e}}),r.each(s,function(e,t){n.warnings[t]={code:t,desc:e}}),r.each(o,function(e,t){n.info[t]={code:t,desc:e}})},{\"../lodash\":\"/node_modules/jshint/lodash.js\"}],\"/node_modules/jshint/src/name-stack.js\":[function(e,t,n){\"use strict\";function r(){this._stack=[]}Object.defineProperty(r.prototype,\"length\",{get:function(){return this._stack.length}}),r.prototype.push=function(){this._stack.push(null)},r.prototype.pop=function(){this._stack.pop()},r.prototype.set=function(e){this._stack[this.length-1]=e},r.prototype.infer=function(){var e=this._stack[this.length-1],t=\"\",n;if(!e||e.type===\"class\")e=this._stack[this.length-2];return e?(n=e.type,n!==\"(string)\"&&n!==\"(number)\"&&n!==\"(identifier)\"&&n!==\"default\"?\"(expression)\":(e.accessorType&&(t=e.accessorType+\" \"),t+e.value)):\"(empty)\"},t.exports=r},{}],\"/node_modules/jshint/src/options.js\":[function(e,t,n){\"use strict\";n.bool={enforcing:{bitwise:!0,freeze:!0,camelcase:!0,curly:!0,eqeqeq:!0,futurehostile:!0,notypeof:!0,es3:!0,es5:!0,forin:!0,funcscope:!0,immed:!0,iterator:!0,newcap:!0,noarg:!0,nocomma:!0,noempty:!0,nonbsp:!0,nonew:!0,undef:!0,singleGroups:!1,varstmt:!1,enforceall:!1},relaxing:{asi:!0,multistr:!0,debug:!0,boss:!0,evil:!0,globalstrict:!0,plusplus:!0,proto:!0,scripturl:!0,sub:!0,supernew:!0,laxbreak:!0,laxcomma:!0,validthis:!0,withstmt:!0,moz:!0,noyield:!0,eqnull:!0,lastsemic:!0,loopfunc:!0,expr:!0,esnext:!0,elision:!0},environments:{mootools:!0,couch:!0,jasmine:!0,jquery:!0,node:!0,qunit:!0,rhino:!0,shelljs:!0,prototypejs:!0,yui:!0,mocha:!0,module:!0,wsh:!0,worker:!0,nonstandard:!0,browser:!0,browserify:!0,devel:!0,dojo:!0,typed:!0,phantom:!0},obsolete:{onecase:!0,regexp:!0,regexdash:!0}},n.val={maxlen:!1,indent:!1,maxerr:!1,predef:!1,globals:!1,quotmark:!1,scope:!1,maxstatements:!1,maxdepth:!1,maxparams:!1,maxcomplexity:!1,shadow:!1,strict:!0,unused:!0,latedef:!1,ignore:!1,ignoreDelimiters:!1,esversion:5},n.inverted={bitwise:!0,forin:!0,newcap:!0,plusplus:!0,regexp:!0,undef:!0,eqeqeq:!0,strict:!0},n.validNames=Object.keys(n.val).concat(Object.keys(n.bool.relaxing)).concat(Object.keys(n.bool.enforcing)).concat(Object.keys(n.bool.obsolete)).concat(Object.keys(n.bool.environments)),n.renamed={eqeq:\"eqeqeq\",windows:\"wsh\",sloppy:\"strict\"},n.removed={nomen:!0,onevar:!0,passfail:!0,white:!0,gcl:!0,smarttabs:!0,trailing:!0},n.noenforceall={varstmt:!0,strict:!0}},{}],\"/node_modules/jshint/src/reg.js\":[function(e,t,n){\"use strict\";n.unsafeString=/@cc|<\\/?|script|\\]\\s*\\]|<\\s*!|&lt/i,n.unsafeChars=/[\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/,n.needEsc=/[\\u0000-\\u001f&<\"\\/\\\\\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/,n.needEscGlobal=/[\\u0000-\\u001f&<\"\\/\\\\\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g,n.starSlash=/\\*\\//,n.identifier=/^([a-zA-Z_$][a-zA-Z0-9_$]*)$/,n.javascriptURL=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i,n.fallsThrough=/^\\s*falls?\\sthrough\\s*$/,n.maxlenException=/^(?:(?:\\/\\/|\\/\\*|\\*) ?)?[^ ]+$/},{}],\"/node_modules/jshint/src/scope-manager.js\":[function(e,t,n){\"use strict\";var r=e(\"../lodash\"),i=e(\"events\"),s={},o=function(e,t,n,o){function f(e){u={\"(labels)\":Object.create(null),\"(usages)\":Object.create(null),\"(breakLabels)\":Object.create(null),\"(parent)\":u,\"(type)\":e,\"(params)\":e===\"functionparams\"||e===\"catchparams\"?[]:null},a.push(u)}function v(e,t){d.emit(\"warning\",{code:e,token:t,data:r.slice(arguments,2)})}function m(e,t){d.emit(\"warning\",{code:e,token:t,data:r.slice(arguments,2)})}function g(e){u[\"(usages)\"][e]||(u[\"(usages)\"][e]={\"(modified)\":[],\"(reassigned)\":[],\"(tokens)\":[]})}function w(){if(u[\"(type)\"]===\"functionparams\"){E();return}var e=u[\"(labels)\"];for(var t in e)e[t]&&e[t][\"(type)\"]!==\"exception\"&&e[t][\"(unused)\"]&&b(t,e[t][\"(token)\"],\"var\")}function E(){var t=u[\"(params)\"];if(!t)return;var n=t.pop(),r;while(n){var i=u[\"(labels)\"][n];r=y(e.funct[\"(unusedOption)\"]);if(n===\"undefined\")return;if(i[\"(unused)\"])b(n,i[\"(token)\"],\"param\",e.funct[\"(unusedOption)\"]);else if(r===\"last-param\")return;n=t.pop()}}function S(e){for(var t=a.length-1;t>=0;--t){var n=a[t][\"(labels)\"];if(n[e])return n}}function x(e){for(var t=a.length-1;t>=0;t--){var n=a[t];if(n[\"(usages)\"][e])return n[\"(usages)\"][e];if(n===l)break}return!1}function T(t,n){if(e.option.shadow!==\"outer\")return;var r=l[\"(type)\"]===\"global\",i=u[\"(type)\"]===\"functionparams\",s=!r;for(var o=0;o<a.length;o++){var f=a[o];!i&&a[o+1]===l&&(s=!1),s&&f[\"(labels)\"][t]&&v(\"W123\",n,t),f[\"(breakLabels)\"][t]&&v(\"W123\",n,t)}}function N(t,n,r){e.option.latedef&&(e.option.latedef===!0&&t===\"function\"||t!==\"function\")&&v(\"W003\",r,n)}var u,a=[];f(\"global\"),u[\"(predefined)\"]=t;var l=u,c=Object.create(null),h=Object.create(null),p=[],d=new i.EventEmitter,y=function(t){return t===undefined&&(t=e.option.unused),t===!0&&(t=\"last-param\"),t},b=function(e,t,n,r){var i=t.line,s=t.from,o=t.raw_text||e;r=y(r);var u={vars:[\"var\"],\"last-param\":[\"var\",\"param\"],strict:[\"var\",\"param\",\"last-param\"]};r&&u[r]&&u[r].indexOf(n)!==-1&&v(\"W098\",{line:i,from:s},o),(r||n===\"var\")&&p.push({name:e,line:i,character:s})},C={on:function(e,t){e.split(\" \").forEach(function(e){d.on(e,t)})},isPredefined:function(e){return!this.has(e)&&r.has(a[0][\"(predefined)\"],e)},stack:function(e){var t=u;f(e),!e&&t[\"(type)\"]===\"functionparams\"&&(u[\"(isFuncBody)\"]=!0,u[\"(context)\"]=l,l=u)},unstack:function(){var t=a.length>1?a[a.length-2]:null,n=u===l,i=u[\"(type)\"]===\"functionparams\",f=u[\"(type)\"]===\"functionouter\",p,d,g=u[\"(usages)\"],y=u[\"(labels)\"],E=Object.keys(g);g.__proto__&&E.indexOf(\"__proto__\")===-1&&E.push(\"__proto__\");for(p=0;p<E.length;p++){var S=E[p],x=g[S],T=y[S];if(T){var N=T[\"(type)\"];if(T[\"(useOutsideOfScope)\"]&&!e.option.funcscope){var C=x[\"(tokens)\"];if(C)for(d=0;d<C.length;d++)T[\"(function)\"]===C[d][\"(function)\"]&&m(\"W038\",C[d],S)}u[\"(labels)\"][S][\"(unused)\"]=!1;if(N===\"const\"&&x[\"(modified)\"])for(d=0;d<x[\"(modified)\"].length;d++)m(\"E013\",x[\"(modified)\"][d],S);if((N===\"function\"||N===\"class\")&&x[\"(reassigned)\"])for(d=0;d<x[\"(reassigned)\"].length;d++)m(\"W021\",x[\"(reassigned)\"][d],S,N);continue}f&&(e.funct[\"(isCapturing)\"]=!0);if(t)if(!t[\"(usages)\"][S])t[\"(usages)\"][S]=x,n&&(t[\"(usages)\"][S][\"(onlyUsedSubFunction)\"]=!0);else{var k=t[\"(usages)\"][S];k[\"(modified)\"]=k[\"(modified)\"].concat(x[\"(modified)\"]),k[\"(tokens)\"]=k[\"(tokens)\"].concat(x[\"(tokens)\"]),k[\"(reassigned)\"]=k[\"(reassigned)\"].concat(x[\"(reassigned)\"]),k[\"(onlyUsedSubFunction)\"]=!1}else if(typeof u[\"(predefined)\"][S]==\"boolean\"){delete o[S],c[S]=s;if(u[\"(predefined)\"][S]===!1&&x[\"(reassigned)\"])for(d=0;d<x[\"(reassigned)\"].length;d++)v(\"W020\",x[\"(reassigned)\"][d])}else if(x[\"(tokens)\"])for(d=0;d<x[\"(tokens)\"].length;d++){var L=x[\"(tokens)\"][d];L.forgiveUndef||(e.option.undef&&!L.ignoreUndef&&v(\"W117\",L,S),h[S]?h[S].line.push(L.line):h[S]={name:S,line:[L.line]})}}t||Object.keys(o).forEach(function(e){b(e,o[e],\"var\")});if(t&&!n&&!i&&!f){var A=Object.keys(y);for(p=0;p<A.length;p++){var O=A[p];!y[O][\"(blockscoped)\"]&&y[O][\"(type)\"]!==\"exception\"&&!this.funct.has(O,{excludeCurrent:!0})&&(t[\"(labels)\"][O]=y[O],l[\"(type)\"]!==\"global\"&&(t[\"(labels)\"][O][\"(useOutsideOfScope)\"]=!0),delete y[O])}}w(),a.pop(),n&&(l=a[r.findLastIndex(a,function(e){return e[\"(isFuncBody)\"]||e[\"(type)\"]===\"global\"})]),u=t},addParam:function(t,n,i){i=i||\"param\";if(i===\"exception\"){var s=this.funct.labeltype(t);s&&s!==\"exception\"&&(e.option.node||v(\"W002\",e.tokens.next,t))}r.has(u[\"(labels)\"],t)?u[\"(labels)\"][t].duplicated=!0:(T(t,n,i),u[\"(labels)\"][t]={\"(type)\":i,\"(token)\":n,\"(unused)\":!0},u[\"(params)\"].push(t));if(r.has(u[\"(usages)\"],t)){var o=u[\"(usages)\"][t];o[\"(onlyUsedSubFunction)\"]?N(i,t,n):v(\"E056\",n,t,i)}},validateParams:function(){if(l[\"(type)\"]===\"global\")return;var t=e.isStrict(),n=l[\"(parent)\"];if(!n[\"(params)\"])return;n[\"(params)\"].forEach(function(r){var i=n[\"(labels)\"][r];i&&i.duplicated&&(t?v(\"E011\",i[\"(token)\"],r):e.option.shadow!==!0&&v(\"W004\",i[\"(token)\"],r))})},getUsedOrDefinedGlobals:function(){var e=Object.keys(c);return c.__proto__===s&&e.indexOf(\"__proto__\")===-1&&e.push(\"__proto__\"),e},getImpliedGlobals:function(){var e=r.values(h),t=!1;return h.__proto__&&(t=e.some(function(e){return e.name===\"__proto__\"}),t||e.push(h.__proto__)),e},getUnuseds:function(){return p},has:function(e){return Boolean(S(e))},labeltype:function(e){var t=S(e);return t?t[e][\"(type)\"]:null},addExported:function(e){var t=a[0][\"(labels)\"];if(r.has(o,e))delete o[e];else if(r.has(t,e))t[e][\"(unused)\"]=!1;else{for(var i=1;i<a.length;i++){var s=a[i];if(!!s[\"(type)\"])break;if(r.has(s[\"(labels)\"],e)&&!s[\"(labels)\"][e][\"(blockscoped)\"]){s[\"(labels)\"][e][\"(unused)\"]=!1;return}}n[e]=!0}},setExported:function(e,t){this.block.use(e,t)},addlabel:function(t,i){var o=i.type,a=i.token,f=o===\"let\"||o===\"const\"||o===\"class\",h=(f?u:l)[\"(type)\"]===\"global\"&&r.has(n,t);T(t,a,o);if(f){var p=u[\"(labels)\"][t];!p&&u===l&&u[\"(type)\"]!==\"global\"&&(p=!!l[\"(parent)\"][\"(labels)\"][t]);if(!p&&u[\"(usages)\"][t]){var d=u[\"(usages)\"][t];d[\"(onlyUsedSubFunction)\"]?N(o,t,a):v(\"E056\",a,t,o)}p?v(\"E011\",a,t):e.option.shadow===\"outer\"&&C.funct.has(t)&&v(\"W004\",a,t),C.block.add(t,o,a,!h)}else{var m=C.funct.has(t);!m&&x(t)&&N(o,t,a),C.funct.has(t,{onlyBlockscoped:!0})?v(\"E011\",a,t):e.option.shadow!==!0&&m&&t!==\"__proto__\"&&l[\"(type)\"]!==\"global\"&&v(\"W004\",a,t),C.funct.add(t,o,a,!h),l[\"(type)\"]===\"global\"&&(c[t]=s)}},funct:{labeltype:function(e,t){var n=t&&t.onlyBlockscoped,r=t&&t.excludeParams,i=a.length-(t&&t.excludeCurrent?2:1);for(var s=i;s>=0;s--){var o=a[s];if(o[\"(labels)\"][e]&&(!n||o[\"(labels)\"][e][\"(blockscoped)\"]))return o[\"(labels)\"][e][\"(type)\"];var u=r?a[s-1]:o;if(u&&u[\"(type)\"]===\"functionparams\")return null}return null},hasBreakLabel:function(e){for(var t=a.length-1;t>=0;t--){var n=a[t];if(n[\"(breakLabels)\"][e])return!0;if(n[\"(type)\"]===\"functionparams\")return!1}return!1},has:function(e,t){return Boolean(this.labeltype(e,t))},add:function(e,t,n,r){u[\"(labels)\"][e]={\"(type)\":t,\"(token)\":n,\"(blockscoped)\":!1,\"(function)\":l,\"(unused)\":r}}},block:{isGlobal:function(){return u[\"(type)\"]===\"global\"},use:function(t,n){var r=l[\"(parent)\"];r&&r[\"(labels)\"][t]&&r[\"(labels)\"][t][\"(type)\"]===\"param\"&&(C.funct.has(t,{excludeParams:!0,onlyBlockscoped:!0})||(r[\"(labels)\"][t][\"(unused)\"]=!1)),n&&(e.ignored.W117||e.option.undef===!1)&&(n.ignoreUndef=!0),g(t),n&&(n[\"(function)\"]=l,u[\"(usages)\"][t][\"(tokens)\"].push(n))},reassign:function(e,t){this.modify(e,t),u[\"(usages)\"][e][\"(reassigned)\"].push(t)},modify:function(e,t){g(e),u[\"(usages)\"][e][\"(modified)\"].push(t)},add:function(e,t,n,r){u[\"(labels)\"][e]={\"(type)\":t,\"(token)\":n,\"(blockscoped)\":!0,\"(unused)\":r}},addBreakLabel:function(t,n){var r=n.token;C.funct.hasBreakLabel(t)?v(\"E011\",r,t):e.option.shadow===\"outer\"&&(C.funct.has(t)?v(\"W004\",r,t):T(t,r)),u[\"(breakLabels)\"][t]=r}}};return C};t.exports=o},{\"../lodash\":\"/node_modules/jshint/lodash.js\",events:\"/node_modules/browserify/node_modules/events/events.js\"}],\"/node_modules/jshint/src/state.js\":[function(e,t,n){\"use strict\";var r=e(\"./name-stack.js\"),i={syntax:{},isStrict:function(){return this.directive[\"use strict\"]||this.inClassBody||this.option.module||this.option.strict===\"implied\"},inMoz:function(){return this.option.moz},inES6:function(){return this.option.moz||this.option.esversion>=6},inES5:function(e){return e?(!this.option.esversion||this.option.esversion===5)&&!this.option.moz:!this.option.esversion||this.option.esversion>=5||this.option.moz},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={},this.funct=null,this.ignored={},this.directive={},this.jsonMode=!1,this.jsonWarnings=[],this.lines=[],this.tab=\"\",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new r,this.inClassBody=!1}};n.state=i},{\"./name-stack.js\":\"/node_modules/jshint/src/name-stack.js\"}],\"/node_modules/jshint/src/style.js\":[function(e,t,n){\"use strict\";n.register=function(e){e.on(\"Identifier\",function(n){if(e.getOption(\"proto\"))return;n.name===\"__proto__\"&&e.warn(\"W103\",{line:n.line,\"char\":n.char,data:[n.name,\"6\"]})}),e.on(\"Identifier\",function(n){if(e.getOption(\"iterator\"))return;n.name===\"__iterator__\"&&e.warn(\"W103\",{line:n.line,\"char\":n.char,data:[n.name]})}),e.on(\"Identifier\",function(n){if(!e.getOption(\"camelcase\"))return;n.name.replace(/^_+|_+$/g,\"\").indexOf(\"_\")>-1&&!n.name.match(/^[A-Z0-9_]*$/)&&e.warn(\"W106\",{line:n.line,\"char\":n.from,data:[n.name]})}),e.on(\"String\",function(n){var r=e.getOption(\"quotmark\"),i;if(!r)return;r===\"single\"&&n.quote!==\"'\"&&(i=\"W109\"),r===\"double\"&&n.quote!=='\"'&&(i=\"W108\"),r===!0&&(e.getCache(\"quotmark\")||e.setCache(\"quotmark\",n.quote),e.getCache(\"quotmark\")!==n.quote&&(i=\"W110\")),i&&e.warn(i,{line:n.line,\"char\":n.char})}),e.on(\"Number\",function(n){n.value.charAt(0)===\".\"&&e.warn(\"W008\",{line:n.line,\"char\":n.char,data:[n.value]}),n.value.substr(n.value.length-1)===\".\"&&e.warn(\"W047\",{line:n.line,\"char\":n.char,data:[n.value]}),/^00+/.test(n.value)&&e.warn(\"W046\",{line:n.line,\"char\":n.char,data:[n.value]})}),e.on(\"String\",function(n){var r=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i;if(e.getOption(\"scripturl\"))return;r.test(n.value)&&e.warn(\"W107\",{line:n.line,\"char\":n.char})})}},{}],\"/node_modules/jshint/src/vars.js\":[function(e,t,n){\"use strict\";n.reservedVars={arguments:!1,NaN:!1},n.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,WeakMap:!1,WeakSet:!1}},n.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,performance:!1,print:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},n.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},n.worker={importScripts:!0,postMessage:!0,self:!0,FileReaderSync:!0},n.nonstandard={escape:!1,unescape:!1},n.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},n.node={__filename:!1,__dirname:!1,GLOBAL:!1,global:!1,module:!1,require:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},n.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,require:!1,Buffer:!0,exports:!0,process:!0},n.phantom={phantom:!0,require:!0,WebPage:!0,console:!0,exports:!0},n.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,\"throws\":!1},n.rhino={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},n.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},n.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},n.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},n.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},n.jquery={$:!1,jQuery:!1},n.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},n.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},n.yui={YUI:!1,Y:!1,YUI_config:!1},n.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},n.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1}},{}]},{},[\"/node_modules/jshint/src/jshint.js\"])}),define(\"ace/mode/javascript_worker\",[],function(require,exports,module){\"use strict\";function startRegex(e){return RegExp(\"^(\"+e.join(\"|\")+\")\")}var oop=require(\"../lib/oop\"),Mirror=require(\"../worker/mirror\").Mirror,lint=require(\"./javascript/jshint\").JSHINT,disabledWarningsRe=startRegex([\"Bad for in variable '(.+)'.\",'Missing \"use strict\"']),errorsRe=startRegex([\"Unexpected\",\"Expected \",\"Confusing (plus|minus)\",\"\\\\{a\\\\} unterminated regular expression\",\"Unclosed \",\"Unmatched \",\"Unbegun comment\",\"Bad invocation\",\"Missing space after\",\"Missing operator at\"]),infoRe=startRegex([\"Expected an assignment\",\"Bad escapement of EOL\",\"Unexpected comma\",\"Unexpected space\",\"Missing radix parameter.\",\"A leading decimal point can\",\"\\\\['{a}'\\\\] is better written in dot notation.\",\"'{a}' used out of scope\"]),JavaScriptWorker=exports.JavaScriptWorker=function(e){Mirror.call(this,e),this.setTimeout(500),this.setOptions()};oop.inherits(JavaScriptWorker,Mirror),function(){this.setOptions=function(e){this.options=e||{esnext:!0,moz:!0,devel:!0,browser:!0,node:!0,laxcomma:!0,laxbreak:!0,lastsemic:!0,onevar:!1,passfail:!1,maxerr:100,expr:!0,multistr:!0,globalstrict:!0},this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(e){oop.mixin(this.options,e),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.isValidJS=function(str){try{eval(\"throw 0;\"+str)}catch(e){if(e===0)return!0}return!1},this.onUpdate=function(){var e=this.doc.getValue();e=e.replace(/^#!.*\\n/,\"\\n\");if(!e)return this.sender.emit(\"annotate\",[]);var t=[],n=this.isValidJS(e)?\"warning\":\"error\";lint(e,this.options,this.options.globals);var r=lint.errors,i=!1;for(var s=0;s<r.length;s++){var o=r[s];if(!o)continue;var u=o.raw,a=\"warning\";if(u==\"Missing semicolon.\"){var f=o.evidence.substr(o.character);f=f.charAt(f.search(/\\S/)),n==\"error\"&&f&&/[\\w\\d{(['\"]/.test(f)?(o.reason='Missing \";\" before statement',a=\"error\"):a=\"info\"}else{if(disabledWarningsRe.test(u))continue;infoRe.test(u)?a=\"info\":errorsRe.test(u)?(i=!0,a=n):u==\"'{a}' is not defined.\"?a=\"warning\":u==\"'{a}' is defined but never used.\"&&(a=\"info\")}t.push({row:o.line-1,column:o.character-1,text:o.reason,type:a,raw:u}),i}this.sender.emit(\"annotate\",t)}}.call(JavaScriptWorker.prototype)}),define(\"ace/lib/es5-shim\",[],function(e,t,n){function r(){}function w(e){try{return Object.defineProperty(e,\"sentinel\",{}),\"sentinel\"in e}catch(t){}}function H(e){return e=+e,e!==e?e=0:e!==0&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}function B(e){var t=typeof e;return e===null||t===\"undefined\"||t===\"boolean\"||t===\"number\"||t===\"string\"}function j(e){var t,n,r;if(B(e))return e;n=e.valueOf;if(typeof n==\"function\"){t=n.call(e);if(B(t))return t}r=e.toString;if(typeof r==\"function\"){t=r.call(e);if(B(t))return t}throw new TypeError}Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!=\"function\")throw new TypeError(\"Function.prototype.bind called on incompatible \"+n);var i=u.call(arguments,1),s=function(){if(this instanceof s){var e=n.apply(this,i.concat(u.call(arguments)));return Object(e)===e?e:this}return n.apply(t,i.concat(u.call(arguments)))};return n.prototype&&(r.prototype=n.prototype,s.prototype=new r,r.prototype=null),s});var i=Function.prototype.call,s=Array.prototype,o=Object.prototype,u=s.slice,a=i.bind(o.toString),f=i.bind(o.hasOwnProperty),l,c,h,p,d;if(d=f(o,\"__defineGetter__\"))l=i.bind(o.__defineGetter__),c=i.bind(o.__defineSetter__),h=i.bind(o.__lookupGetter__),p=i.bind(o.__lookupSetter__);if([1,2].splice(0).length!=2)if(!function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t=[],n;t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,\"XXX\"),n+1==t.length;if(n+1==t.length)return!0}())Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):e==void 0?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=u.call(arguments,2),s=i.length;if(e===n)s&&this.push.apply(this,i);else{var o=Math.min(t,n-e),a=e+o,f=a+s-o,l=n-a,c=n-o;if(f<a)for(var h=0;h<l;++h)this[f+h]=this[a+h];else if(f>a)for(h=l;h--;)this[f+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,i);else{this.length=c+s;for(h=0;h<s;++h)this[e+h]=i[h]}}return r};else{var v=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?v.apply(this,[e===void 0?0:e,t===void 0?this.length-e:t].concat(u.call(arguments,2))):[]}}Array.isArray||(Array.isArray=function(t){return a(t)==\"[object Array]\"});var m=Object(\"a\"),g=m[0]!=\"a\"||!(0 in m);Array.prototype.forEach||(Array.prototype.forEach=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=arguments[1],s=-1,o=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError;while(++s<o)s in r&&t.call(i,r[s],s,n)}),Array.prototype.map||(Array.prototype.map=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=Array(i),o=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var u=0;u<i;u++)u in r&&(s[u]=t.call(o,r[u],u,n));return s}),Array.prototype.filter||(Array.prototype.filter=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=[],o,u=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var f=0;f<i;f++)f in r&&(o=r[f],t.call(u,o,f,n)&&s.push(o));return s}),Array.prototype.every||(Array.prototype.every=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&!t.call(s,r[o],o,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&t.call(s,r[o],o,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduce of empty array with no initial value\");var s=0,o;if(arguments.length>=2)o=arguments[1];else do{if(s in r){o=r[s++];break}if(++s>=i)throw new TypeError(\"reduce of empty array with no initial value\")}while(!0);for(;s<i;s++)s in r&&(o=t.call(void 0,o,r[s],s,n));return o}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduceRight of empty array with no initial value\");var s,o=i-1;if(arguments.length>=2)s=arguments[1];else do{if(o in r){s=r[o--];break}if(--o<0)throw new TypeError(\"reduceRight of empty array with no initial value\")}while(!0);do o in this&&(s=t.call(void 0,s,r[o],o,n));while(o--);return s});if(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)Array.prototype.indexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=0;arguments.length>1&&(i=H(arguments[1])),i=i>=0?i:Math.max(0,r+i);for(;i<r;i++)if(i in n&&n[i]===t)return i;return-1};if(!Array.prototype.lastIndexOf||[0,1].lastIndexOf(0,-3)!=-1)Array.prototype.lastIndexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=r-1;arguments.length>1&&(i=Math.min(i,H(arguments[1]))),i=i>=0?i:r-Math.abs(i);for(;i>=0;i--)if(i in n&&t===n[i])return i;return-1};Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:o)});if(!Object.getOwnPropertyDescriptor){var y=\"Object.getOwnPropertyDescriptor called on a non-object: \";Object.getOwnPropertyDescriptor=function(t,n){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(y+t);if(!f(t,n))return;var r,i,s;r={enumerable:!0,configurable:!0};if(d){var u=t.__proto__;t.__proto__=o;var i=h(t,n),s=p(t,n);t.__proto__=u;if(i||s)return i&&(r.get=i),s&&(r.set=s),r}return r.value=t[n],r}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)});if(!Object.create){var b;Object.prototype.__proto__===null?b=function(){return{__proto__:null}}:b=function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(t,n){var r;if(t===null)r=b();else{if(typeof t!=\"object\")throw new TypeError(\"typeof prototype[\"+typeof t+\"] != 'object'\");var i=function(){};i.prototype=t,r=new i,r.__proto__=t}return n!==void 0&&Object.defineProperties(r,n),r}}if(Object.defineProperty){var E=w({}),S=typeof document==\"undefined\"||w(document.createElement(\"div\"));if(!E||!S)var x=Object.defineProperty}if(!Object.defineProperty||x){var T=\"Property description must be an object: \",N=\"Object.defineProperty called on non-object: \",C=\"getters & setters can not be defined on this javascript engine\";Object.defineProperty=function(t,n,r){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(N+t);if(typeof r!=\"object\"&&typeof r!=\"function\"||r===null)throw new TypeError(T+r);if(x)try{return x.call(Object,t,n,r)}catch(i){}if(f(r,\"value\"))if(d&&(h(t,n)||p(t,n))){var s=t.__proto__;t.__proto__=o,delete t[n],t[n]=r.value,t.__proto__=s}else t[n]=r.value;else{if(!d)throw new TypeError(C);f(r,\"get\")&&l(t,n,r.get),f(r,\"set\")&&c(t,n,r.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,n){for(var r in n)f(n,r)&&Object.defineProperty(t,r,n[r]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(k){Object.freeze=function(t){return function(n){return typeof n==\"function\"?n:t(n)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;var n=\"\";while(f(t,n))n+=\"?\";t[n]=!0;var r=f(t,n);return delete t[n],r});if(!Object.keys){var L=!0,A=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],O=A.length;for(var M in{toString:null})L=!1;Object.keys=function I(e){if(typeof e!=\"object\"&&typeof e!=\"function\"||e===null)throw new TypeError(\"Object.keys called on a non-object\");var I=[];for(var t in e)f(e,t)&&I.push(t);if(L)for(var n=0,r=O;n<r;n++){var i=A[n];f(e,i)&&I.push(i)}return I}}Date.now||(Date.now=function(){return(new Date).getTime()});var _=\"\t\\n\\x0b\\f\\r \\u00a0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029\\ufeff\";if(!String.prototype.trim){_=\"[\"+_+\"]\";var D=new RegExp(\"^\"+_+_+\"*\"),P=new RegExp(_+_+\"*$\");String.prototype.trim=function(){return String(this).replace(D,\"\").replace(P,\"\")}}var F=function(e){if(e==null)throw new TypeError(\"can't convert \"+e+\" to object\");return Object(e)}})"
  },
  {
    "path": "pyp5js/http_local/static/js/ace/worker-json.js",
    "content": "\"no use strict\";!function(e){function t(e,t){var n=e,r=\"\";while(n){var i=t[n];if(typeof i==\"string\")return i+r;if(i)return i.location.replace(/\\/*$/,\"/\")+(r||i.main||i.name);if(i===!1)return\"\";var s=n.lastIndexOf(\"/\");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!=\"undefined\"&&e.document)return;if(e.require&&e.define)return;e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:\"log\",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:\"error\",data:{message:e,data:i.data,file:t,line:n,col:r,stack:i.stack}})},e.normalizeModule=function(t,n){if(n.indexOf(\"!\")!==-1){var r=n.split(\"!\");return e.normalizeModule(t,r[0])+\"!\"+e.normalizeModule(t,r[1])}if(n.charAt(0)==\".\"){var i=t.split(\"/\").slice(0,-1).join(\"/\");n=(i?i+\"/\":\"\")+n;while(n.indexOf(\".\")!==-1&&s!=n){var s=n;n=n.replace(/^\\.\\//,\"\").replace(/\\/\\.\\//,\"/\").replace(/[^\\/]+\\/\\.\\.\\//,\"\")}}return n},e.require=function(r,i){i||(i=r,r=null);if(!i.charAt)throw new Error(\"worker.js require() accepts only (parentId, id) as arguments\");i=e.normalizeModule(r,i);var s=e.require.modules[i];if(s)return s.initialized||(s.initialized=!0,s.exports=s.factory().exports),s.exports;if(!e.require.tlns)return console.log(\"unable to load \"+i);var o=t(i,e.require.tlns);return o.slice(-3)!=\".js\"&&(o+=\".js\"),e.require.id=i,e.require.modules[i]={},importScripts(o),e.require(r,i)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){arguments.length==2?(r=n,typeof t!=\"string\"&&(n=t,t=e.require.id)):arguments.length==1&&(r=t,n=[],t=e.require.id);if(typeof r!=\"function\"){e.require.modules[t]={exports:r,initialized:!0};return}n.length||(n=[\"require\",\"exports\",\"module\"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case\"require\":return i;case\"exports\":return e.exports;case\"module\":return e;default:return i(t)}}));return t&&(e.exports=t),e}}},e.define.amd={},require.tlns={},e.initBaseUrls=function(t){for(var n in t)require.tlns[n]=t[n]},e.initSender=function(){var n=e.require(\"ace/lib/event_emitter\").EventEmitter,r=e.require(\"ace/lib/oop\"),i=function(){};return function(){r.implement(this,n),this.callback=function(e,t){postMessage({type:\"call\",id:t,data:e})},this.emit=function(e,t){postMessage({type:\"event\",name:e,data:t})}}.call(i.prototype),new i};var n=e.main=null,r=e.sender=null;e.onmessage=function(t){var i=t.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw new Error(\"Unknown command:\"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),require(\"ace/lib/es5-shim\"),r=e.sender=e.initSender();var s=require(i.module)[i.classname];n=e.main=new s(r)}}}(this),define(\"ace/lib/oop\",[],function(e,t,n){\"use strict\";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),define(\"ace/range\",[],function(e,t,n){\"use strict\";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return\"Range: [\"+this.start.row+\"/\"+this.start.column+\"] -> [\"+this.end.row+\"/\"+this.end.column+\"]\"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e==\"object\"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e==\"object\"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?t<this.start.column?-1:t>this.end.column?1:0:e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)var n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)var r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(n==0)return this;if(n==-1)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define(\"ace/apply_delta\",[],function(e,t,n){\"use strict\";function r(e,t){throw console.log(\"Invalid Delta:\",e),\"Invalid Delta: \"+t}function i(e,t){return t.row>=0&&t.row<e.length&&t.column>=0&&t.column<=e[t.row].length}function s(e,t){t.action!=\"insert\"&&t.action!=\"remove\"&&r(t,\"delta.action must be 'insert' or 'remove'\"),t.lines instanceof Array||r(t,\"delta.lines must be an Array\"),(!t.start||!t.end)&&r(t,\"delta.start/end must be an present\");var n=t.start;i(e,t.start)||r(t,\"delta.start must be contained in document\");var s=t.end;t.action==\"remove\"&&!i(e,s)&&r(t,\"delta.end must contained in document for 'remove' actions\");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,\"delta.range must match delta lines\")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||\"\";switch(t.action){case\"insert\":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case\"remove\":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),define(\"ace/lib/event_emitter\",[],function(e,t,n){\"use strict\";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!=\"object\"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length;o++){n[o](t,this);if(t.propagationStopped)break}if(r&&!t.defaultPrevented)return r(t,this)},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(!n)return;n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)},r.once=function(e,t){var n=this;this.on(e,function r(){n.off(e,r),t.apply(null,arguments)});if(!t)return new Promise(function(e){t=e})},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;n||(n=this._defaultHandlers={_disabled_:{}});if(n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var s=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(!n)return;var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);i!=-1&&r.splice(i,1)}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?\"unshift\":\"push\"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(!n)return;var r=n.indexOf(t);r!==-1&&n.splice(r,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=r}),define(\"ace/anchor\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),typeof n==\"undefined\"?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i=t.action==\"insert\",s=(i?1:-1)*(t.end.row-t.start.row),o=(i?1:-1)*(t.end.column-t.start.column),u=t.start,a=i?u:t.end;return e(n,u,r)?{row:n.row,column:n.column}:e(a,n,!r)?{row:n.row+s,column:n.column+(n.row==a.row?o:0)}:{row:u.row,column:u.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(e.start.row==e.end.row&&e.start.row!=this.row)return;if(e.start.row>this.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal(\"change\",{old:i,value:r})},this.detach=function(){this.document.off(\"change\",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on(\"change\",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),define(\"ace/document\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./apply_delta\").applyDelta,s=e(\"./lib/event_emitter\").EventEmitter,o=e(\"./range\").Range,u=e(\"./anchor\").Anchor,a=function(e){this.$lines=[\"\"],e.length===0?this.$lines=[\"\"]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},\"aaa\".split(/a/).length===0?this.$split=function(e){return e.replace(/\\r\\n|\\r/g,\"\\n\").split(\"\\n\")}:this.$split=function(e){return e.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=t?t[1]:\"\\n\",this._signal(\"changeNewLineMode\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\"windows\":return\"\\r\\n\";case\"unix\":return\"\\n\";default:return this.$autoNewLine||\"\\n\"}},this.$autoNewLine=\"\",this.$newLineMode=\"auto\",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal(\"changeNewLineMode\")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==\"\\r\\n\"||e==\"\\r\"||e==\"\\n\"},this.getLine=function(e){return this.$lines[e]||\"\"},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||\"\").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\"),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\"),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\"),this.insertMergedLines(e,[\"\",\"\"])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:\"insert\",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([\"\"]),n=0):(t=[\"\"].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(t.length==1?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:\"insert\",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:\"remove\",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:\"remove\",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=new o(i,s,u,a),l=this.$lines.slice(e,t+1);return this.applyDelta({start:f.start,end:f.end,action:\"remove\",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:\"remove\",lines:[\"\",\"\"]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action==\"insert\";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal(\"change\",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action==\"remove\"&&e.start.row<t&&e.end.row<t||e.action==\"insert\"&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length-t+1,i=e.start.row,s=e.start.column;for(var o=0,u=0;o<r;o=u){u+=t-1;var a=n.slice(o,u);a.push(\"\"),this.applyDelta({start:this.pos(i+o,s),end:this.pos(i+u,s=0),action:e.action,lines:a},!0)}e.lines=n.slice(o),e.start.row=i+o,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action==\"insert\"?\"remove\":\"insert\",lines:e.lines.slice()})},this.indexToPosition=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length;for(var i=t||0,s=n.length;i<s;i++){e-=n[i].length+r;if(e<0)return{row:i,column:e+n[i].length+r}}return{row:s-1,column:e+n[s-1].length+r}},this.positionToIndex=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length);for(var o=t||0;o<s;++o)i+=n[o].length+r;return i+e.column}}).call(a.prototype),t.Document=a}),define(\"ace/lib/lang\",[],function(e,t,n){\"use strict\";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split(\"\").reverse().join(\"\")},t.stringRepeat=function(e,t){var n=\"\";while(t>0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\\s\\s*/,i=/\\s\\s*$/;t.stringTrimLeft=function(e){return e.replace(r,\"\")},t.stringTrimRight=function(e){return e.replace(i,\"\")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)e[n]&&typeof e[n]==\"object\"?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function s(e){if(typeof e!=\"object\"||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=s(e[n]);return t}if(Object.prototype.toString.call(e)!==\"[object Object]\")return e;t={};for(var n in e)t[n]=s(e[n]);return t},t.arrayToMap=function(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\")},t.escapeHTML=function(e){return(\"\"+e).replace(/&/g,\"&#38;\").replace(/\"/g,\"&#34;\").replace(/'/g,\"&#39;\").replace(/</g,\"&#60;\")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){n==null&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),define(\"ace/worker/mirror\",[],function(e,t,n){\"use strict\";var r=e(\"../range\").Range,i=e(\"../document\").Document,s=e(\"../lib/lang\"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new i(\"\"),n=this.deferredUpdate=s.delayedCall(this.onUpdate.bind(this)),r=this;e.on(\"change\",function(e){var i=e.data;if(i[0].start)t.applyDeltas(i);else for(var s=0;s<i.length;s+=2){if(Array.isArray(i[s+1]))var o={action:\"insert\",start:i[s],lines:i[s+1]};else var o={action:\"remove\",start:i[s],end:i[s+1]};t.applyDelta(o,!0)}if(r.$timeout)return n.schedule(r.$timeout);r.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),define(\"ace/mode/json/json_parse\",[],function(e,t,n){\"use strict\";var r,i,s={'\"':'\"',\"\\\\\":\"\\\\\",\"/\":\"/\",b:\"\\b\",f:\"\\f\",n:\"\\n\",r:\"\\r\",t:\"\t\"},o,u=function(e){throw{name:\"SyntaxError\",message:e,at:r,text:o}},a=function(e){return e&&e!==i&&u(\"Expected '\"+e+\"' instead of '\"+i+\"'\"),i=o.charAt(r),r+=1,i},f=function(){var e,t=\"\";i===\"-\"&&(t=\"-\",a(\"-\"));while(i>=\"0\"&&i<=\"9\")t+=i,a();if(i===\".\"){t+=\".\";while(a()&&i>=\"0\"&&i<=\"9\")t+=i}if(i===\"e\"||i===\"E\"){t+=i,a();if(i===\"-\"||i===\"+\")t+=i,a();while(i>=\"0\"&&i<=\"9\")t+=i,a()}e=+t;if(!isNaN(e))return e;u(\"Bad number\")},l=function(){var e,t,n=\"\",r;if(i==='\"')while(a()){if(i==='\"')return a(),n;if(i===\"\\\\\"){a();if(i===\"u\"){r=0;for(t=0;t<4;t+=1){e=parseInt(a(),16);if(!isFinite(e))break;r=r*16+e}n+=String.fromCharCode(r)}else{if(typeof s[i]!=\"string\")break;n+=s[i]}}else{if(i==\"\\n\"||i==\"\\r\")break;n+=i}}u(\"Bad string\")},c=function(){while(i&&i<=\" \")a()},h=function(){switch(i){case\"t\":return a(\"t\"),a(\"r\"),a(\"u\"),a(\"e\"),!0;case\"f\":return a(\"f\"),a(\"a\"),a(\"l\"),a(\"s\"),a(\"e\"),!1;case\"n\":return a(\"n\"),a(\"u\"),a(\"l\"),a(\"l\"),null}u(\"Unexpected '\"+i+\"'\")},p,d=function(){var e=[];if(i===\"[\"){a(\"[\"),c();if(i===\"]\")return a(\"]\"),e;while(i){e.push(p()),c();if(i===\"]\")return a(\"]\"),e;a(\",\"),c()}}u(\"Bad array\")},v=function(){var e,t={};if(i===\"{\"){a(\"{\"),c();if(i===\"}\")return a(\"}\"),t;while(i){e=l(),c(),a(\":\"),Object.hasOwnProperty.call(t,e)&&u('Duplicate key \"'+e+'\"'),t[e]=p(),c();if(i===\"}\")return a(\"}\"),t;a(\",\"),c()}}u(\"Bad object\")};return p=function(){c();switch(i){case\"{\":return v();case\"[\":return d();case'\"':return l();case\"-\":return f();default:return i>=\"0\"&&i<=\"9\"?f():h()}},function(e,t){var n;return o=e,r=0,i=\" \",n=p(),c(),i&&u(\"Syntax error\"),typeof t==\"function\"?function s(e,n){var r,i,o=e[n];if(o&&typeof o==\"object\")for(r in o)Object.hasOwnProperty.call(o,r)&&(i=s(o,r),i!==undefined?o[r]=i:delete o[r]);return t.call(e,n,o)}({\"\":n},\"\"):n}}),define(\"ace/mode/json_worker\",[],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"../worker/mirror\").Mirror,s=e(\"./json/json_parse\"),o=t.JsonWorker=function(e){i.call(this,e),this.setTimeout(200)};r.inherits(o,i),function(){this.onUpdate=function(){var e=this.doc.getValue(),t=[];try{e&&s(e)}catch(n){var r=this.doc.indexToPosition(n.at-1);t.push({row:r.row,column:r.column,text:n.message,type:\"error\"})}this.sender.emit(\"annotate\",t)}}.call(o.prototype)}),define(\"ace/lib/es5-shim\",[],function(e,t,n){function r(){}function w(e){try{return Object.defineProperty(e,\"sentinel\",{}),\"sentinel\"in e}catch(t){}}function H(e){return e=+e,e!==e?e=0:e!==0&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}function B(e){var t=typeof e;return e===null||t===\"undefined\"||t===\"boolean\"||t===\"number\"||t===\"string\"}function j(e){var t,n,r;if(B(e))return e;n=e.valueOf;if(typeof n==\"function\"){t=n.call(e);if(B(t))return t}r=e.toString;if(typeof r==\"function\"){t=r.call(e);if(B(t))return t}throw new TypeError}Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!=\"function\")throw new TypeError(\"Function.prototype.bind called on incompatible \"+n);var i=u.call(arguments,1),s=function(){if(this instanceof s){var e=n.apply(this,i.concat(u.call(arguments)));return Object(e)===e?e:this}return n.apply(t,i.concat(u.call(arguments)))};return n.prototype&&(r.prototype=n.prototype,s.prototype=new r,r.prototype=null),s});var i=Function.prototype.call,s=Array.prototype,o=Object.prototype,u=s.slice,a=i.bind(o.toString),f=i.bind(o.hasOwnProperty),l,c,h,p,d;if(d=f(o,\"__defineGetter__\"))l=i.bind(o.__defineGetter__),c=i.bind(o.__defineSetter__),h=i.bind(o.__lookupGetter__),p=i.bind(o.__lookupSetter__);if([1,2].splice(0).length!=2)if(!function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t=[],n;t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,\"XXX\"),n+1==t.length;if(n+1==t.length)return!0}())Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):e==void 0?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=u.call(arguments,2),s=i.length;if(e===n)s&&this.push.apply(this,i);else{var o=Math.min(t,n-e),a=e+o,f=a+s-o,l=n-a,c=n-o;if(f<a)for(var h=0;h<l;++h)this[f+h]=this[a+h];else if(f>a)for(h=l;h--;)this[f+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,i);else{this.length=c+s;for(h=0;h<s;++h)this[e+h]=i[h]}}return r};else{var v=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?v.apply(this,[e===void 0?0:e,t===void 0?this.length-e:t].concat(u.call(arguments,2))):[]}}Array.isArray||(Array.isArray=function(t){return a(t)==\"[object Array]\"});var m=Object(\"a\"),g=m[0]!=\"a\"||!(0 in m);Array.prototype.forEach||(Array.prototype.forEach=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=arguments[1],s=-1,o=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError;while(++s<o)s in r&&t.call(i,r[s],s,n)}),Array.prototype.map||(Array.prototype.map=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=Array(i),o=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var u=0;u<i;u++)u in r&&(s[u]=t.call(o,r[u],u,n));return s}),Array.prototype.filter||(Array.prototype.filter=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=[],o,u=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var f=0;f<i;f++)f in r&&(o=r[f],t.call(u,o,f,n)&&s.push(o));return s}),Array.prototype.every||(Array.prototype.every=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&!t.call(s,r[o],o,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&t.call(s,r[o],o,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduce of empty array with no initial value\");var s=0,o;if(arguments.length>=2)o=arguments[1];else do{if(s in r){o=r[s++];break}if(++s>=i)throw new TypeError(\"reduce of empty array with no initial value\")}while(!0);for(;s<i;s++)s in r&&(o=t.call(void 0,o,r[s],s,n));return o}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduceRight of empty array with no initial value\");var s,o=i-1;if(arguments.length>=2)s=arguments[1];else do{if(o in r){s=r[o--];break}if(--o<0)throw new TypeError(\"reduceRight of empty array with no initial value\")}while(!0);do o in this&&(s=t.call(void 0,s,r[o],o,n));while(o--);return s});if(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)Array.prototype.indexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=0;arguments.length>1&&(i=H(arguments[1])),i=i>=0?i:Math.max(0,r+i);for(;i<r;i++)if(i in n&&n[i]===t)return i;return-1};if(!Array.prototype.lastIndexOf||[0,1].lastIndexOf(0,-3)!=-1)Array.prototype.lastIndexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=r-1;arguments.length>1&&(i=Math.min(i,H(arguments[1]))),i=i>=0?i:r-Math.abs(i);for(;i>=0;i--)if(i in n&&t===n[i])return i;return-1};Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:o)});if(!Object.getOwnPropertyDescriptor){var y=\"Object.getOwnPropertyDescriptor called on a non-object: \";Object.getOwnPropertyDescriptor=function(t,n){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(y+t);if(!f(t,n))return;var r,i,s;r={enumerable:!0,configurable:!0};if(d){var u=t.__proto__;t.__proto__=o;var i=h(t,n),s=p(t,n);t.__proto__=u;if(i||s)return i&&(r.get=i),s&&(r.set=s),r}return r.value=t[n],r}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)});if(!Object.create){var b;Object.prototype.__proto__===null?b=function(){return{__proto__:null}}:b=function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(t,n){var r;if(t===null)r=b();else{if(typeof t!=\"object\")throw new TypeError(\"typeof prototype[\"+typeof t+\"] != 'object'\");var i=function(){};i.prototype=t,r=new i,r.__proto__=t}return n!==void 0&&Object.defineProperties(r,n),r}}if(Object.defineProperty){var E=w({}),S=typeof document==\"undefined\"||w(document.createElement(\"div\"));if(!E||!S)var x=Object.defineProperty}if(!Object.defineProperty||x){var T=\"Property description must be an object: \",N=\"Object.defineProperty called on non-object: \",C=\"getters & setters can not be defined on this javascript engine\";Object.defineProperty=function(t,n,r){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(N+t);if(typeof r!=\"object\"&&typeof r!=\"function\"||r===null)throw new TypeError(T+r);if(x)try{return x.call(Object,t,n,r)}catch(i){}if(f(r,\"value\"))if(d&&(h(t,n)||p(t,n))){var s=t.__proto__;t.__proto__=o,delete t[n],t[n]=r.value,t.__proto__=s}else t[n]=r.value;else{if(!d)throw new TypeError(C);f(r,\"get\")&&l(t,n,r.get),f(r,\"set\")&&c(t,n,r.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,n){for(var r in n)f(n,r)&&Object.defineProperty(t,r,n[r]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(k){Object.freeze=function(t){return function(n){return typeof n==\"function\"?n:t(n)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;var n=\"\";while(f(t,n))n+=\"?\";t[n]=!0;var r=f(t,n);return delete t[n],r});if(!Object.keys){var L=!0,A=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],O=A.length;for(var M in{toString:null})L=!1;Object.keys=function I(e){if(typeof e!=\"object\"&&typeof e!=\"function\"||e===null)throw new TypeError(\"Object.keys called on a non-object\");var I=[];for(var t in e)f(e,t)&&I.push(t);if(L)for(var n=0,r=O;n<r;n++){var i=A[n];f(e,i)&&I.push(i)}return I}}Date.now||(Date.now=function(){return(new Date).getTime()});var _=\"\t\\n\\x0b\\f\\r \\u00a0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029\\ufeff\";if(!String.prototype.trim){_=\"[\"+_+\"]\";var D=new RegExp(\"^\"+_+_+\"*\"),P=new RegExp(_+_+\"*$\");String.prototype.trim=function(){return String(this).replace(D,\"\").replace(P,\"\")}}var F=function(e){if(e==null)throw new TypeError(\"can't convert \"+e+\" to object\");return Object(e)}})"
  },
  {
    "path": "pyp5js/http_local/static/js/ace/worker-lua.js",
    "content": "\"no use strict\";!function(e){function t(e,t){var n=e,r=\"\";while(n){var i=t[n];if(typeof i==\"string\")return i+r;if(i)return i.location.replace(/\\/*$/,\"/\")+(r||i.main||i.name);if(i===!1)return\"\";var s=n.lastIndexOf(\"/\");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!=\"undefined\"&&e.document)return;if(e.require&&e.define)return;e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:\"log\",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:\"error\",data:{message:e,data:i.data,file:t,line:n,col:r,stack:i.stack}})},e.normalizeModule=function(t,n){if(n.indexOf(\"!\")!==-1){var r=n.split(\"!\");return e.normalizeModule(t,r[0])+\"!\"+e.normalizeModule(t,r[1])}if(n.charAt(0)==\".\"){var i=t.split(\"/\").slice(0,-1).join(\"/\");n=(i?i+\"/\":\"\")+n;while(n.indexOf(\".\")!==-1&&s!=n){var s=n;n=n.replace(/^\\.\\//,\"\").replace(/\\/\\.\\//,\"/\").replace(/[^\\/]+\\/\\.\\.\\//,\"\")}}return n},e.require=function(r,i){i||(i=r,r=null);if(!i.charAt)throw new Error(\"worker.js require() accepts only (parentId, id) as arguments\");i=e.normalizeModule(r,i);var s=e.require.modules[i];if(s)return s.initialized||(s.initialized=!0,s.exports=s.factory().exports),s.exports;if(!e.require.tlns)return console.log(\"unable to load \"+i);var o=t(i,e.require.tlns);return o.slice(-3)!=\".js\"&&(o+=\".js\"),e.require.id=i,e.require.modules[i]={},importScripts(o),e.require(r,i)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){arguments.length==2?(r=n,typeof t!=\"string\"&&(n=t,t=e.require.id)):arguments.length==1&&(r=t,n=[],t=e.require.id);if(typeof r!=\"function\"){e.require.modules[t]={exports:r,initialized:!0};return}n.length||(n=[\"require\",\"exports\",\"module\"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case\"require\":return i;case\"exports\":return e.exports;case\"module\":return e;default:return i(t)}}));return t&&(e.exports=t),e}}},e.define.amd={},require.tlns={},e.initBaseUrls=function(t){for(var n in t)require.tlns[n]=t[n]},e.initSender=function(){var n=e.require(\"ace/lib/event_emitter\").EventEmitter,r=e.require(\"ace/lib/oop\"),i=function(){};return function(){r.implement(this,n),this.callback=function(e,t){postMessage({type:\"call\",id:t,data:e})},this.emit=function(e,t){postMessage({type:\"event\",name:e,data:t})}}.call(i.prototype),new i};var n=e.main=null,r=e.sender=null;e.onmessage=function(t){var i=t.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw new Error(\"Unknown command:\"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),require(\"ace/lib/es5-shim\"),r=e.sender=e.initSender();var s=require(i.module)[i.classname];n=e.main=new s(r)}}}(this),define(\"ace/lib/oop\",[],function(e,t,n){\"use strict\";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),define(\"ace/range\",[],function(e,t,n){\"use strict\";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return\"Range: [\"+this.start.row+\"/\"+this.start.column+\"] -> [\"+this.end.row+\"/\"+this.end.column+\"]\"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e==\"object\"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e==\"object\"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?t<this.start.column?-1:t>this.end.column?1:0:e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)var n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)var r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(n==0)return this;if(n==-1)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define(\"ace/apply_delta\",[],function(e,t,n){\"use strict\";function r(e,t){throw console.log(\"Invalid Delta:\",e),\"Invalid Delta: \"+t}function i(e,t){return t.row>=0&&t.row<e.length&&t.column>=0&&t.column<=e[t.row].length}function s(e,t){t.action!=\"insert\"&&t.action!=\"remove\"&&r(t,\"delta.action must be 'insert' or 'remove'\"),t.lines instanceof Array||r(t,\"delta.lines must be an Array\"),(!t.start||!t.end)&&r(t,\"delta.start/end must be an present\");var n=t.start;i(e,t.start)||r(t,\"delta.start must be contained in document\");var s=t.end;t.action==\"remove\"&&!i(e,s)&&r(t,\"delta.end must contained in document for 'remove' actions\");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,\"delta.range must match delta lines\")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||\"\";switch(t.action){case\"insert\":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case\"remove\":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),define(\"ace/lib/event_emitter\",[],function(e,t,n){\"use strict\";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!=\"object\"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length;o++){n[o](t,this);if(t.propagationStopped)break}if(r&&!t.defaultPrevented)return r(t,this)},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(!n)return;n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)},r.once=function(e,t){var n=this;this.on(e,function r(){n.off(e,r),t.apply(null,arguments)});if(!t)return new Promise(function(e){t=e})},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;n||(n=this._defaultHandlers={_disabled_:{}});if(n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var s=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(!n)return;var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);i!=-1&&r.splice(i,1)}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?\"unshift\":\"push\"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(!n)return;var r=n.indexOf(t);r!==-1&&n.splice(r,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=r}),define(\"ace/anchor\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),typeof n==\"undefined\"?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i=t.action==\"insert\",s=(i?1:-1)*(t.end.row-t.start.row),o=(i?1:-1)*(t.end.column-t.start.column),u=t.start,a=i?u:t.end;return e(n,u,r)?{row:n.row,column:n.column}:e(a,n,!r)?{row:n.row+s,column:n.column+(n.row==a.row?o:0)}:{row:u.row,column:u.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(e.start.row==e.end.row&&e.start.row!=this.row)return;if(e.start.row>this.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal(\"change\",{old:i,value:r})},this.detach=function(){this.document.off(\"change\",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on(\"change\",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),define(\"ace/document\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./apply_delta\").applyDelta,s=e(\"./lib/event_emitter\").EventEmitter,o=e(\"./range\").Range,u=e(\"./anchor\").Anchor,a=function(e){this.$lines=[\"\"],e.length===0?this.$lines=[\"\"]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},\"aaa\".split(/a/).length===0?this.$split=function(e){return e.replace(/\\r\\n|\\r/g,\"\\n\").split(\"\\n\")}:this.$split=function(e){return e.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=t?t[1]:\"\\n\",this._signal(\"changeNewLineMode\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\"windows\":return\"\\r\\n\";case\"unix\":return\"\\n\";default:return this.$autoNewLine||\"\\n\"}},this.$autoNewLine=\"\",this.$newLineMode=\"auto\",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal(\"changeNewLineMode\")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==\"\\r\\n\"||e==\"\\r\"||e==\"\\n\"},this.getLine=function(e){return this.$lines[e]||\"\"},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||\"\").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\"),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\"),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\"),this.insertMergedLines(e,[\"\",\"\"])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:\"insert\",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([\"\"]),n=0):(t=[\"\"].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(t.length==1?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:\"insert\",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:\"remove\",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:\"remove\",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=new o(i,s,u,a),l=this.$lines.slice(e,t+1);return this.applyDelta({start:f.start,end:f.end,action:\"remove\",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:\"remove\",lines:[\"\",\"\"]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action==\"insert\";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal(\"change\",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action==\"remove\"&&e.start.row<t&&e.end.row<t||e.action==\"insert\"&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length-t+1,i=e.start.row,s=e.start.column;for(var o=0,u=0;o<r;o=u){u+=t-1;var a=n.slice(o,u);a.push(\"\"),this.applyDelta({start:this.pos(i+o,s),end:this.pos(i+u,s=0),action:e.action,lines:a},!0)}e.lines=n.slice(o),e.start.row=i+o,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action==\"insert\"?\"remove\":\"insert\",lines:e.lines.slice()})},this.indexToPosition=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length;for(var i=t||0,s=n.length;i<s;i++){e-=n[i].length+r;if(e<0)return{row:i,column:e+n[i].length+r}}return{row:s-1,column:e+n[s-1].length+r}},this.positionToIndex=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length);for(var o=t||0;o<s;++o)i+=n[o].length+r;return i+e.column}}).call(a.prototype),t.Document=a}),define(\"ace/lib/lang\",[],function(e,t,n){\"use strict\";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split(\"\").reverse().join(\"\")},t.stringRepeat=function(e,t){var n=\"\";while(t>0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\\s\\s*/,i=/\\s\\s*$/;t.stringTrimLeft=function(e){return e.replace(r,\"\")},t.stringTrimRight=function(e){return e.replace(i,\"\")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)e[n]&&typeof e[n]==\"object\"?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function s(e){if(typeof e!=\"object\"||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=s(e[n]);return t}if(Object.prototype.toString.call(e)!==\"[object Object]\")return e;t={};for(var n in e)t[n]=s(e[n]);return t},t.arrayToMap=function(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\")},t.escapeHTML=function(e){return(\"\"+e).replace(/&/g,\"&#38;\").replace(/\"/g,\"&#34;\").replace(/'/g,\"&#39;\").replace(/</g,\"&#60;\")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){n==null&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),define(\"ace/worker/mirror\",[],function(e,t,n){\"use strict\";var r=e(\"../range\").Range,i=e(\"../document\").Document,s=e(\"../lib/lang\"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new i(\"\"),n=this.deferredUpdate=s.delayedCall(this.onUpdate.bind(this)),r=this;e.on(\"change\",function(e){var i=e.data;if(i[0].start)t.applyDeltas(i);else for(var s=0;s<i.length;s+=2){if(Array.isArray(i[s+1]))var o={action:\"insert\",start:i[s],lines:i[s+1]};else var o={action:\"remove\",start:i[s],end:i[s+1]};t.applyDelta(o,!0)}if(r.$timeout)return n.schedule(r.$timeout);r.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),define(\"ace/mode/lua/luaparse\",[],function(e,t,n){(function(e,n,r){r(t)})(this,\"luaparse\",function(e){\"use strict\";function m(e){if(mt){var t=vt.pop();t.complete(),n.locations&&(e.loc=t.loc),n.ranges&&(e.range=t.range)}return e}function w(e,t,n){for(var r=0,i=e.length;r<i;r++)if(e[r][t]===n)return r;return-1}function E(e){var t=g.call(arguments,1);return e=e.replace(/%(\\d)/g,function(e,n){return\"\"+t[n-1]||\"\"}),e}function S(){var e=g.call(arguments),t={},n,r;for(var i=0,s=e.length;i<s;i++){n=e[i];for(r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}return t}function x(e){var t=E.apply(null,g.call(arguments,1)),n,r;throw\"undefined\"!=typeof e.line?(r=e.range[0]-e.lineStart,n=new SyntaxError(E(\"[%1:%2] %3\",e.line,r,t)),n.line=e.line,n.index=e.range[0],n.column=r):(r=C-D+1,n=new SyntaxError(E(\"[%1:%2] %3\",_,r,t)),n.index=C,n.line=_,n.column=r),n}function T(e,t){x(t,d.expectedToken,e,t.value)}function N(e,t){\"undefined\"==typeof t&&(t=A.value);if(\"undefined\"!=typeof e.type){var n;switch(e.type){case o:n=\"string\";break;case u:n=\"keyword\";break;case a:n=\"identifier\";break;case f:n=\"number\";break;case l:n=\"symbol\";break;case c:n=\"boolean\";break;case h:return x(e,d.unexpected,\"symbol\",\"nil\",t)}return x(e,d.unexpected,n,e.value,t)}return x(e,d.unexpected,\"symbol\",e,t)}function P(){H();while(45===t.charCodeAt(C)&&45===t.charCodeAt(C+1))X(),H();if(C>=r)return{type:s,value:\"<eof>\",line:_,lineStart:D,range:[C,C]};var e=t.charCodeAt(C),n=t.charCodeAt(C+1);M=C;if(et(e))return B();switch(e){case 39:case 34:return I();case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return R();case 46:if(Y(n))return R();if(46===n)return 46===t.charCodeAt(C+2)?F():j(\"..\");return j(\".\");case 61:if(61===n)return j(\"==\");return j(\"=\");case 62:if(61===n)return j(\">=\");return j(\">\");case 60:if(61===n)return j(\"<=\");return j(\"<\");case 126:if(61===n)return j(\"~=\");return j(\"~\");case 58:if(58===n)return j(\"::\");return j(\":\");case 91:if(91===n||61===n)return q();return j(\"[\");case 42:case 47:case 94:case 37:case 44:case 123:case 125:case 93:case 40:case 41:case 59:case 35:case 45:case 43:case 38:case 124:return j(t.charAt(C))}return N(t.charAt(C))}function H(){while(C<r){var e=t.charCodeAt(C);if(Q(e))C++;else{if(!G(e))break;_++,D=++C}}}function B(){var e,n;while(tt(t.charCodeAt(++C)));return e=t.slice(M,C),nt(e)?n=u:\"true\"===e||\"false\"===e?(n=c,e=\"true\"===e):\"nil\"===e?(n=h,e=null):n=a,{type:n,value:e,line:_,lineStart:D,range:[M,C]}}function j(e){return C+=e.length,{type:l,value:e,line:_,lineStart:D,range:[M,C]}}function F(){return C+=3,{type:p,value:\"...\",line:_,lineStart:D,range:[M,C]}}function I(){var e=t.charCodeAt(C++),n=C,i=\"\",s;while(C<r){s=t.charCodeAt(C++);if(e===s)break;if(92===s)i+=t.slice(n,C-1)+W(),n=C;else if(C>=r||G(s))i+=t.slice(n,C-1),x({},d.unfinishedString,i+String.fromCharCode(s))}return i+=t.slice(n,C-1),{type:o,value:i,line:_,lineStart:D,range:[M,C]}}function q(){var e=V();return!1===e&&x(k,d.expected,\"[\",k.value),{type:o,value:e,line:_,lineStart:D,range:[M,C]}}function R(){var e=t.charAt(C),n=t.charAt(C+1),r=\"0\"===e&&\"xX\".indexOf(n||null)>=0?U():z();return{type:f,value:r,line:_,lineStart:D,range:[M,C]}}function U(){var e=0,n=1,r=1,i,s,o,u;u=C+=2,Z(t.charCodeAt(C))||x({},d.malformedNumber,t.slice(M,C));while(Z(t.charCodeAt(C)))C++;i=parseInt(t.slice(u,C),16);if(\".\"===t.charAt(C)){s=++C;while(Z(t.charCodeAt(C)))C++;e=t.slice(s,C),e=s===C?0:parseInt(e,16)/Math.pow(16,C-s)}if(\"pP\".indexOf(t.charAt(C)||null)>=0){C++,\"+-\".indexOf(t.charAt(C)||null)>=0&&(r=\"+\"===t.charAt(C++)?1:-1),o=C,Y(t.charCodeAt(C))||x({},d.malformedNumber,t.slice(M,C));while(Y(t.charCodeAt(C)))C++;n=t.slice(o,C),n=Math.pow(2,n*r)}return(i+e)*n}function z(){while(Y(t.charCodeAt(C)))C++;if(\".\"===t.charAt(C)){C++;while(Y(t.charCodeAt(C)))C++}if(\"eE\".indexOf(t.charAt(C)||null)>=0){C++,\"+-\".indexOf(t.charAt(C)||null)>=0&&C++,Y(t.charCodeAt(C))||x({},d.malformedNumber,t.slice(M,C));while(Y(t.charCodeAt(C)))C++}return parseFloat(t.slice(M,C))}function W(){var e=C;switch(t.charAt(C)){case\"n\":return C++,\"\\n\";case\"r\":return C++,\"\\r\";case\"t\":return C++,\"\t\";case\"v\":return C++,\"\\x0b\";case\"b\":return C++,\"\\b\";case\"f\":return C++,\"\\f\";case\"z\":return C++,H(),\"\";case\"x\":if(Z(t.charCodeAt(C+1))&&Z(t.charCodeAt(C+2)))return C+=3,\"\\\\\"+t.slice(e,C);return\"\\\\\"+t.charAt(C++);default:if(Y(t.charCodeAt(C))){while(Y(t.charCodeAt(++C)));return\"\\\\\"+t.slice(e,C)}return t.charAt(C++)}}function X(){M=C,C+=2;var e=t.charAt(C),i=\"\",s=!1,o=C,u=D,a=_;\"[\"===e&&(i=V(),!1===i?i=e:s=!0);if(!s){while(C<r){if(G(t.charCodeAt(C)))break;C++}n.comments&&(i=t.slice(o,C))}if(n.comments){var f=v.comment(i,t.slice(M,C));n.locations&&(f.loc={start:{line:a,column:M-u},end:{line:_,column:C-D}}),n.ranges&&(f.range=[M,C]),O.push(f)}}function V(){var e=0,n=\"\",i=!1,s,o;C++;while(\"=\"===t.charAt(C+e))e++;if(\"[\"!==t.charAt(C+e))return!1;C+=e+1,G(t.charCodeAt(C))&&(_++,D=C++),o=C;while(C<r){s=t.charAt(C++),G(s.charCodeAt(0))&&(_++,D=C);if(\"]\"===s){i=!0;for(var u=0;u<e;u++)\"=\"!==t.charAt(C+u)&&(i=!1);\"]\"!==t.charAt(C+e)&&(i=!1)}if(i)break}return n+=t.slice(o,C-1),C+=e+1,n}function $(){L=k,k=A,A=P()}function J(e){return e===k.value?($(),!0):!1}function K(e){e===k.value?$():x(k,d.expected,e,k.value)}function Q(e){return 9===e||32===e||11===e||12===e}function G(e){return 10===e||13===e}function Y(e){return e>=48&&e<=57}function Z(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function et(e){return e>=65&&e<=90||e>=97&&e<=122||95===e}function tt(e){return e>=65&&e<=90||e>=97&&e<=122||95===e||e>=48&&e<=57}function nt(e){switch(e.length){case 2:return\"do\"===e||\"if\"===e||\"in\"===e||\"or\"===e;case 3:return\"and\"===e||\"end\"===e||\"for\"===e||\"not\"===e;case 4:return\"else\"===e||\"goto\"===e||\"then\"===e;case 5:return\"break\"===e||\"local\"===e||\"until\"===e||\"while\"===e;case 6:return\"elseif\"===e||\"repeat\"===e||\"return\"===e;case 8:return\"function\"===e}return!1}function rt(e){return l===e.type?\"#-~\".indexOf(e.value)>=0:u===e.type?\"not\"===e.value:!1}function it(e){switch(e.type){case\"CallExpression\":case\"TableCallExpression\":case\"StringCallExpression\":return!0}return!1}function st(e){if(s===e.type)return!0;if(u!==e.type)return!1;switch(e.value){case\"else\":case\"elseif\":case\"end\":case\"until\":return!0;default:return!1}}function ft(){ot.push(Array.apply(null,ot[ut++]))}function lt(){ot.pop(),ut--}function ct(e){if(-1!==b(ot[ut],e))return;ot[ut].push(e)}function ht(e){ct(e.name),pt(e,!0)}function pt(e,t){!t&&-1===w(at,\"name\",e.name)&&at.push(e),e.isLocal=t}function dt(e){return-1!==b(ot[ut],e)}function gt(){return new yt(k)}function yt(e){n.locations&&(this.loc={start:{line:e.line,column:e.range[0]-e.lineStart},end:{line:0,column:0}}),n.ranges&&(this.range=[e.range[0],0])}function bt(){mt&&vt.push(gt())}function wt(e){mt&&vt.push(e)}function Et(){$(),bt();var e=St();return s!==k.type&&N(k),mt&&!e.length&&(L=k),m(v.chunk(e))}function St(e){var t=[],r;n.scope&&ft();while(!st(k)){if(\"return\"===k.value){t.push(xt());break}r=xt(),r&&t.push(r)}return n.scope&&lt(),t}function xt(){bt();if(u===k.type)switch(k.value){case\"local\":return $(),Dt();case\"if\":return $(),Mt();case\"return\":return $(),Ot();case\"function\":$();var e=jt();return Bt(e);case\"while\":return $(),Lt();case\"for\":return $(),_t();case\"repeat\":return $(),At();case\"break\":return $(),Nt();case\"do\":return $(),kt();case\"goto\":return $(),Ct()}if(l===k.type&&J(\"::\"))return Tt();mt&&vt.pop();if(J(\";\"))return;return Pt()}function Tt(){var e=k.value,t=Ht();return n.scope&&(ct(\"::\"+e+\"::\"),pt(t,!0)),K(\"::\"),m(v.labelStatement(t))}function Nt(){return m(v.breakStatement())}function Ct(){var e=k.value,t=Ht();return n.scope&&(t.isLabel=dt(\"::\"+e+\"::\")),m(v.gotoStatement(t))}function kt(){var e=St();return K(\"end\"),m(v.doStatement(e))}function Lt(){var e=qt();K(\"do\");var t=St();return K(\"end\"),m(v.whileStatement(e,t))}function At(){var e=St();K(\"until\");var t=qt();return m(v.repeatStatement(t,e))}function Ot(){var e=[];if(\"end\"!==k.value){var t=It();null!=t&&e.push(t);while(J(\",\"))t=qt(),e.push(t);J(\";\")}return m(v.returnStatement(e))}function Mt(){var e=[],t,n,r;mt&&(r=vt[vt.length-1],vt.push(r)),t=qt(),K(\"then\"),n=St(),e.push(m(v.ifClause(t,n))),mt&&(r=gt());while(J(\"elseif\"))wt(r),t=qt(),K(\"then\"),n=St(),e.push(m(v.elseifClause(t,n))),mt&&(r=gt());return J(\"else\")&&(mt&&(r=new yt(L),vt.push(r)),n=St(),e.push(m(v.elseClause(n)))),K(\"end\"),m(v.ifStatement(e))}function _t(){var e=Ht(),t;n.scope&&ht(e);if(J(\"=\")){var r=qt();K(\",\");var i=qt(),s=J(\",\")?qt():null;return K(\"do\"),t=St(),K(\"end\"),m(v.forNumericStatement(e,r,i,s,t))}var o=[e];while(J(\",\"))e=Ht(),n.scope&&ht(e),o.push(e);K(\"in\");var u=[];do{var a=qt();u.push(a)}while(J(\",\"));return K(\"do\"),t=St(),K(\"end\"),m(v.forGenericStatement(o,u,t))}function Dt(){var e;if(a===k.type){var t=[],r=[];do e=Ht(),t.push(e);while(J(\",\"));if(J(\"=\"))do{var i=qt();r.push(i)}while(J(\",\"));if(n.scope)for(var s=0,o=t.length;s<o;s++)ht(t[s]);return m(v.localStatement(t,r))}if(J(\"function\"))return e=Ht(),n.scope&&ht(e),Bt(e,!0);T(\"<name>\",k)}function Pt(){var e=k,t,n;mt&&(n=gt()),t=zt();if(null==t)return N(k);if(\",=\".indexOf(k.value)>=0){var r=[t],i=[],s;while(J(\",\"))s=zt(),null==s&&T(\"<expression>\",k),r.push(s);K(\"=\");do s=qt(),i.push(s);while(J(\",\"));return wt(n),m(v.assignmentStatement(r,i))}return it(t)?(wt(n),m(v.callStatement(t))):N(e)}function Ht(){bt();var e=k.value;return a!==k.type&&T(\"<name>\",k),$(),m(v.identifier(e))}function Bt(e,t){var r=[];K(\"(\");if(!J(\")\"))for(;;)if(a===k.type){var i=Ht();n.scope&&ht(i),r.push(i);if(J(\",\"))continue;if(J(\")\"))break}else{if(p===k.type){r.push(Xt()),K(\")\");break}T(\"<name> or '...'\",k)}var s=St();return K(\"end\"),t=t||!1,m(v.functionStatement(e,r,t,s))}function jt(){var e,t,r;mt&&(r=gt()),e=Ht(),n.scope&&pt(e,!1);while(J(\".\"))wt(r),t=Ht(),n.scope&&pt(t,!1),e=m(v.memberExpression(e,\".\",t));return J(\":\")&&(wt(r),t=Ht(),n.scope&&pt(t,!1),e=m(v.memberExpression(e,\":\",t))),e}function Ft(){var e=[],t,n;for(;;){bt();if(l===k.type&&J(\"[\"))t=qt(),K(\"]\"),K(\"=\"),n=qt(),e.push(m(v.tableKey(t,n)));else if(a===k.type)t=qt(),J(\"=\")?(n=qt(),e.push(m(v.tableKeyString(t,n)))):e.push(m(v.tableValue(t)));else{if(null==(n=It())){vt.pop();break}e.push(m(v.tableValue(n)))}if(\",;\".indexOf(k.value)>=0){$();continue}if(\"}\"===k.value)break}return K(\"}\"),m(v.tableConstructorExpression(e))}function It(){var e=Ut(0);return e}function qt(){var e=It();if(null!=e)return e;T(\"<expression>\",k)}function Rt(e){var t=e.charCodeAt(0),n=e.length;if(1===n)switch(t){case 94:return 10;case 42:case 47:case 37:return 7;case 43:case 45:return 6;case 60:case 62:return 3;case 38:case 124:return 7}else if(2===n)switch(t){case 46:return 5;case 60:case 62:case 61:case 126:return 3;case 111:return 1}else if(97===t&&\"and\"===e)return 2;return 0}function Ut(e){var t=k.value,n,r;mt&&(r=gt());if(rt(k)){bt(),$();var i=Ut(8);i==null&&T(\"<expression>\",k),n=m(v.unaryExpression(t,i))}null==n&&(n=Xt(),null==n&&(n=zt()));if(null==n)return null;var s;for(;;){t=k.value,s=l===k.type||u===k.type?Rt(t):0;if(s===0||s<=e)break;(\"^\"===t||\"..\"===t)&&s--,$();var o=Ut(s);null==o&&T(\"<expression>\",k),mt&&vt.push(r),n=m(v.binaryExpression(t,n,o))}return n}function zt(){var e,t,r,i;mt&&(r=gt());if(a===k.type)t=k.value,e=Ht(),n.scope&&pt(e,i=dt(t));else{if(!J(\"(\"))return null;e=qt(),K(\")\"),n.scope&&(i=e.isLocal)}var s,u;for(;;)if(l===k.type)switch(k.value){case\"[\":wt(r),$(),s=qt(),e=m(v.indexExpression(e,s)),K(\"]\");break;case\".\":wt(r),$(),u=Ht(),n.scope&&pt(u,i),e=m(v.memberExpression(e,\".\",u));break;case\":\":wt(r),$(),u=Ht(),n.scope&&pt(u,i),e=m(v.memberExpression(e,\":\",u)),wt(r),e=Wt(e);break;case\"(\":case\"{\":wt(r),e=Wt(e);break;default:return e}else{if(o!==k.type)break;wt(r),e=Wt(e)}return e}function Wt(e){if(l===k.type)switch(k.value){case\"(\":$();var t=[],n=It();null!=n&&t.push(n);while(J(\",\"))n=qt(),t.push(n);return K(\")\"),m(v.callExpression(e,t));case\"{\":bt(),$();var r=Ft();return m(v.tableCallExpression(e,r))}else if(o===k.type)return m(v.stringCallExpression(e,Xt()));T(\"function arguments\",k)}function Xt(){var e=o|f|c|h|p,n=k.value,r=k.type,i;mt&&(i=gt());if(r&e){wt(i);var s=t.slice(k.range[0],k.range[1]);return $(),m(v.literal(r,n,s))}if(u===r&&\"function\"===n)return wt(i),$(),Bt(null);if(J(\"{\"))return wt(i),Ft()}function Vt(s,o){return\"undefined\"==typeof o&&\"object\"==typeof s&&(o=s,s=undefined),o||(o={}),t=s||\"\",n=S(i,o),C=0,_=1,D=0,r=t.length,ot=[[]],ut=0,at=[],vt=[],n.comments&&(O=[]),n.wait?e:Jt()}function $t(n){return t+=String(n),r=t.length,e}function Jt(e){\"undefined\"!=typeof e&&$t(e),r=t.length,mt=n.locations||n.ranges,A=P();var i=Et();n.comments&&(i.comments=O),n.scope&&(i.globals=at);if(vt.length>0)throw new Error(\"Location tracking failed. This is most likely a bug in luaparse\");return i}e.version=\"0.1.4\";var t,n,r,i=e.defaultOptions={wait:!1,comments:!0,scope:!1,locations:!1,ranges:!1},s=1,o=2,u=4,a=8,f=16,l=32,c=64,h=128,p=256;e.tokenTypes={EOF:s,StringLiteral:o,Keyword:u,Identifier:a,NumericLiteral:f,Punctuator:l,BooleanLiteral:c,NilLiteral:h,VarargLiteral:p};var d=e.errors={unexpected:\"Unexpected %1 '%2' near '%3'\",expected:\"'%1' expected near '%2'\",expectedToken:\"%1 expected near '%2'\",unfinishedString:\"unfinished string near '%1'\",malformedNumber:\"malformed number near '%1'\"},v=e.ast={labelStatement:function(e){return{type:\"LabelStatement\",label:e}},breakStatement:function(){return{type:\"BreakStatement\"}},gotoStatement:function(e){return{type:\"GotoStatement\",label:e}},returnStatement:function(e){return{type:\"ReturnStatement\",arguments:e}},ifStatement:function(e){return{type:\"IfStatement\",clauses:e}},ifClause:function(e,t){return{type:\"IfClause\",condition:e,body:t}},elseifClause:function(e,t){return{type:\"ElseifClause\",condition:e,body:t}},elseClause:function(e){return{type:\"ElseClause\",body:e}},whileStatement:function(e,t){return{type:\"WhileStatement\",condition:e,body:t}},doStatement:function(e){return{type:\"DoStatement\",body:e}},repeatStatement:function(e,t){return{type:\"RepeatStatement\",condition:e,body:t}},localStatement:function(e,t){return{type:\"LocalStatement\",variables:e,init:t}},assignmentStatement:function(e,t){return{type:\"AssignmentStatement\",variables:e,init:t}},callStatement:function(e){return{type:\"CallStatement\",expression:e}},functionStatement:function(e,t,n,r){return{type:\"FunctionDeclaration\",identifier:e,isLocal:n,parameters:t,body:r}},forNumericStatement:function(e,t,n,r,i){return{type:\"ForNumericStatement\",variable:e,start:t,end:n,step:r,body:i}},forGenericStatement:function(e,t,n){return{type:\"ForGenericStatement\",variables:e,iterators:t,body:n}},chunk:function(e){return{type:\"Chunk\",body:e}},identifier:function(e){return{type:\"Identifier\",name:e}},literal:function(e,t,n){return e=e===o?\"StringLiteral\":e===f?\"NumericLiteral\":e===c?\"BooleanLiteral\":e===h?\"NilLiteral\":\"VarargLiteral\",{type:e,value:t,raw:n}},tableKey:function(e,t){return{type:\"TableKey\",key:e,value:t}},tableKeyString:function(e,t){return{type:\"TableKeyString\",key:e,value:t}},tableValue:function(e){return{type:\"TableValue\",value:e}},tableConstructorExpression:function(e){return{type:\"TableConstructorExpression\",fields:e}},binaryExpression:function(e,t,n){var r=\"and\"===e||\"or\"===e?\"LogicalExpression\":\"BinaryExpression\";return{type:r,operator:e,left:t,right:n}},unaryExpression:function(e,t){return{type:\"UnaryExpression\",operator:e,argument:t}},memberExpression:function(e,t,n){return{type:\"MemberExpression\",indexer:t,identifier:n,base:e}},indexExpression:function(e,t){return{type:\"IndexExpression\",base:e,index:t}},callExpression:function(e,t){return{type:\"CallExpression\",base:e,arguments:t}},tableCallExpression:function(e,t){return{type:\"TableCallExpression\",base:e,arguments:t}},stringCallExpression:function(e,t){return{type:\"StringCallExpression\",base:e,argument:t}},comment:function(e,t){return{type:\"Comment\",value:e,raw:t}}},g=Array.prototype.slice,y=Object.prototype.toString,b=function(t,n){for(var r=0,i=t.length;r<i;r++)if(t[r]===n)return r;return-1},C,k,L,A,O,M,_,D;e.lex=P;var ot,ut,at,vt=[],mt;yt.prototype.complete=function(){n.locations&&(this.loc.end.line=L.line,this.loc.end.column=L.range[1]-L.lineStart),n.ranges&&(this.range[1]=L.range[1])},e.parse=Vt,e.write=$t,e.end=Jt})}),define(\"ace/mode/lua_worker\",[],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"../worker/mirror\").Mirror,s=e(\"../mode/lua/luaparse\"),o=t.Worker=function(e){i.call(this,e),this.setTimeout(500)};r.inherits(o,i),function(){this.onUpdate=function(){var e=this.doc.getValue(),t=[];try{s.parse(e)}catch(n){n instanceof SyntaxError&&t.push({row:n.line-1,column:n.column,text:n.message,type:\"error\"})}this.sender.emit(\"annotate\",t)}}.call(o.prototype)}),define(\"ace/lib/es5-shim\",[],function(e,t,n){function r(){}function w(e){try{return Object.defineProperty(e,\"sentinel\",{}),\"sentinel\"in e}catch(t){}}function H(e){return e=+e,e!==e?e=0:e!==0&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}function B(e){var t=typeof e;return e===null||t===\"undefined\"||t===\"boolean\"||t===\"number\"||t===\"string\"}function j(e){var t,n,r;if(B(e))return e;n=e.valueOf;if(typeof n==\"function\"){t=n.call(e);if(B(t))return t}r=e.toString;if(typeof r==\"function\"){t=r.call(e);if(B(t))return t}throw new TypeError}Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!=\"function\")throw new TypeError(\"Function.prototype.bind called on incompatible \"+n);var i=u.call(arguments,1),s=function(){if(this instanceof s){var e=n.apply(this,i.concat(u.call(arguments)));return Object(e)===e?e:this}return n.apply(t,i.concat(u.call(arguments)))};return n.prototype&&(r.prototype=n.prototype,s.prototype=new r,r.prototype=null),s});var i=Function.prototype.call,s=Array.prototype,o=Object.prototype,u=s.slice,a=i.bind(o.toString),f=i.bind(o.hasOwnProperty),l,c,h,p,d;if(d=f(o,\"__defineGetter__\"))l=i.bind(o.__defineGetter__),c=i.bind(o.__defineSetter__),h=i.bind(o.__lookupGetter__),p=i.bind(o.__lookupSetter__);if([1,2].splice(0).length!=2)if(!function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t=[],n;t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,\"XXX\"),n+1==t.length;if(n+1==t.length)return!0}())Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):e==void 0?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=u.call(arguments,2),s=i.length;if(e===n)s&&this.push.apply(this,i);else{var o=Math.min(t,n-e),a=e+o,f=a+s-o,l=n-a,c=n-o;if(f<a)for(var h=0;h<l;++h)this[f+h]=this[a+h];else if(f>a)for(h=l;h--;)this[f+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,i);else{this.length=c+s;for(h=0;h<s;++h)this[e+h]=i[h]}}return r};else{var v=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?v.apply(this,[e===void 0?0:e,t===void 0?this.length-e:t].concat(u.call(arguments,2))):[]}}Array.isArray||(Array.isArray=function(t){return a(t)==\"[object Array]\"});var m=Object(\"a\"),g=m[0]!=\"a\"||!(0 in m);Array.prototype.forEach||(Array.prototype.forEach=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=arguments[1],s=-1,o=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError;while(++s<o)s in r&&t.call(i,r[s],s,n)}),Array.prototype.map||(Array.prototype.map=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=Array(i),o=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var u=0;u<i;u++)u in r&&(s[u]=t.call(o,r[u],u,n));return s}),Array.prototype.filter||(Array.prototype.filter=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=[],o,u=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var f=0;f<i;f++)f in r&&(o=r[f],t.call(u,o,f,n)&&s.push(o));return s}),Array.prototype.every||(Array.prototype.every=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&!t.call(s,r[o],o,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&t.call(s,r[o],o,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduce of empty array with no initial value\");var s=0,o;if(arguments.length>=2)o=arguments[1];else do{if(s in r){o=r[s++];break}if(++s>=i)throw new TypeError(\"reduce of empty array with no initial value\")}while(!0);for(;s<i;s++)s in r&&(o=t.call(void 0,o,r[s],s,n));return o}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduceRight of empty array with no initial value\");var s,o=i-1;if(arguments.length>=2)s=arguments[1];else do{if(o in r){s=r[o--];break}if(--o<0)throw new TypeError(\"reduceRight of empty array with no initial value\")}while(!0);do o in this&&(s=t.call(void 0,s,r[o],o,n));while(o--);return s});if(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)Array.prototype.indexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=0;arguments.length>1&&(i=H(arguments[1])),i=i>=0?i:Math.max(0,r+i);for(;i<r;i++)if(i in n&&n[i]===t)return i;return-1};if(!Array.prototype.lastIndexOf||[0,1].lastIndexOf(0,-3)!=-1)Array.prototype.lastIndexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=r-1;arguments.length>1&&(i=Math.min(i,H(arguments[1]))),i=i>=0?i:r-Math.abs(i);for(;i>=0;i--)if(i in n&&t===n[i])return i;return-1};Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:o)});if(!Object.getOwnPropertyDescriptor){var y=\"Object.getOwnPropertyDescriptor called on a non-object: \";Object.getOwnPropertyDescriptor=function(t,n){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(y+t);if(!f(t,n))return;var r,i,s;r={enumerable:!0,configurable:!0};if(d){var u=t.__proto__;t.__proto__=o;var i=h(t,n),s=p(t,n);t.__proto__=u;if(i||s)return i&&(r.get=i),s&&(r.set=s),r}return r.value=t[n],r}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)});if(!Object.create){var b;Object.prototype.__proto__===null?b=function(){return{__proto__:null}}:b=function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(t,n){var r;if(t===null)r=b();else{if(typeof t!=\"object\")throw new TypeError(\"typeof prototype[\"+typeof t+\"] != 'object'\");var i=function(){};i.prototype=t,r=new i,r.__proto__=t}return n!==void 0&&Object.defineProperties(r,n),r}}if(Object.defineProperty){var E=w({}),S=typeof document==\"undefined\"||w(document.createElement(\"div\"));if(!E||!S)var x=Object.defineProperty}if(!Object.defineProperty||x){var T=\"Property description must be an object: \",N=\"Object.defineProperty called on non-object: \",C=\"getters & setters can not be defined on this javascript engine\";Object.defineProperty=function(t,n,r){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(N+t);if(typeof r!=\"object\"&&typeof r!=\"function\"||r===null)throw new TypeError(T+r);if(x)try{return x.call(Object,t,n,r)}catch(i){}if(f(r,\"value\"))if(d&&(h(t,n)||p(t,n))){var s=t.__proto__;t.__proto__=o,delete t[n],t[n]=r.value,t.__proto__=s}else t[n]=r.value;else{if(!d)throw new TypeError(C);f(r,\"get\")&&l(t,n,r.get),f(r,\"set\")&&c(t,n,r.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,n){for(var r in n)f(n,r)&&Object.defineProperty(t,r,n[r]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(k){Object.freeze=function(t){return function(n){return typeof n==\"function\"?n:t(n)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;var n=\"\";while(f(t,n))n+=\"?\";t[n]=!0;var r=f(t,n);return delete t[n],r});if(!Object.keys){var L=!0,A=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],O=A.length;for(var M in{toString:null})L=!1;Object.keys=function I(e){if(typeof e!=\"object\"&&typeof e!=\"function\"||e===null)throw new TypeError(\"Object.keys called on a non-object\");var I=[];for(var t in e)f(e,t)&&I.push(t);if(L)for(var n=0,r=O;n<r;n++){var i=A[n];f(e,i)&&I.push(i)}return I}}Date.now||(Date.now=function(){return(new Date).getTime()});var _=\"\t\\n\\x0b\\f\\r \\u00a0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029\\ufeff\";if(!String.prototype.trim){_=\"[\"+_+\"]\";var D=new RegExp(\"^\"+_+_+\"*\"),P=new RegExp(_+_+\"*$\");String.prototype.trim=function(){return String(this).replace(D,\"\").replace(P,\"\")}}var F=function(e){if(e==null)throw new TypeError(\"can't convert \"+e+\" to object\");return Object(e)}})"
  },
  {
    "path": "pyp5js/http_local/static/js/ace/worker-php.js",
    "content": "\"no use strict\";!function(e){function t(e,t){var n=e,r=\"\";while(n){var i=t[n];if(typeof i==\"string\")return i+r;if(i)return i.location.replace(/\\/*$/,\"/\")+(r||i.main||i.name);if(i===!1)return\"\";var s=n.lastIndexOf(\"/\");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!=\"undefined\"&&e.document)return;if(e.require&&e.define)return;e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:\"log\",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:\"error\",data:{message:e,data:i.data,file:t,line:n,col:r,stack:i.stack}})},e.normalizeModule=function(t,n){if(n.indexOf(\"!\")!==-1){var r=n.split(\"!\");return e.normalizeModule(t,r[0])+\"!\"+e.normalizeModule(t,r[1])}if(n.charAt(0)==\".\"){var i=t.split(\"/\").slice(0,-1).join(\"/\");n=(i?i+\"/\":\"\")+n;while(n.indexOf(\".\")!==-1&&s!=n){var s=n;n=n.replace(/^\\.\\//,\"\").replace(/\\/\\.\\//,\"/\").replace(/[^\\/]+\\/\\.\\.\\//,\"\")}}return n},e.require=function(r,i){i||(i=r,r=null);if(!i.charAt)throw new Error(\"worker.js require() accepts only (parentId, id) as arguments\");i=e.normalizeModule(r,i);var s=e.require.modules[i];if(s)return s.initialized||(s.initialized=!0,s.exports=s.factory().exports),s.exports;if(!e.require.tlns)return console.log(\"unable to load \"+i);var o=t(i,e.require.tlns);return o.slice(-3)!=\".js\"&&(o+=\".js\"),e.require.id=i,e.require.modules[i]={},importScripts(o),e.require(r,i)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){arguments.length==2?(r=n,typeof t!=\"string\"&&(n=t,t=e.require.id)):arguments.length==1&&(r=t,n=[],t=e.require.id);if(typeof r!=\"function\"){e.require.modules[t]={exports:r,initialized:!0};return}n.length||(n=[\"require\",\"exports\",\"module\"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case\"require\":return i;case\"exports\":return e.exports;case\"module\":return e;default:return i(t)}}));return t&&(e.exports=t),e}}},e.define.amd={},require.tlns={},e.initBaseUrls=function(t){for(var n in t)require.tlns[n]=t[n]},e.initSender=function(){var n=e.require(\"ace/lib/event_emitter\").EventEmitter,r=e.require(\"ace/lib/oop\"),i=function(){};return function(){r.implement(this,n),this.callback=function(e,t){postMessage({type:\"call\",id:t,data:e})},this.emit=function(e,t){postMessage({type:\"event\",name:e,data:t})}}.call(i.prototype),new i};var n=e.main=null,r=e.sender=null;e.onmessage=function(t){var i=t.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw new Error(\"Unknown command:\"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),require(\"ace/lib/es5-shim\"),r=e.sender=e.initSender();var s=require(i.module)[i.classname];n=e.main=new s(r)}}}(this),define(\"ace/lib/oop\",[],function(e,t,n){\"use strict\";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),define(\"ace/range\",[],function(e,t,n){\"use strict\";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return\"Range: [\"+this.start.row+\"/\"+this.start.column+\"] -> [\"+this.end.row+\"/\"+this.end.column+\"]\"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e==\"object\"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e==\"object\"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?t<this.start.column?-1:t>this.end.column?1:0:e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)var n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)var r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(n==0)return this;if(n==-1)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define(\"ace/apply_delta\",[],function(e,t,n){\"use strict\";function r(e,t){throw console.log(\"Invalid Delta:\",e),\"Invalid Delta: \"+t}function i(e,t){return t.row>=0&&t.row<e.length&&t.column>=0&&t.column<=e[t.row].length}function s(e,t){t.action!=\"insert\"&&t.action!=\"remove\"&&r(t,\"delta.action must be 'insert' or 'remove'\"),t.lines instanceof Array||r(t,\"delta.lines must be an Array\"),(!t.start||!t.end)&&r(t,\"delta.start/end must be an present\");var n=t.start;i(e,t.start)||r(t,\"delta.start must be contained in document\");var s=t.end;t.action==\"remove\"&&!i(e,s)&&r(t,\"delta.end must contained in document for 'remove' actions\");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,\"delta.range must match delta lines\")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||\"\";switch(t.action){case\"insert\":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case\"remove\":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),define(\"ace/lib/event_emitter\",[],function(e,t,n){\"use strict\";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!=\"object\"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length;o++){n[o](t,this);if(t.propagationStopped)break}if(r&&!t.defaultPrevented)return r(t,this)},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(!n)return;n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)},r.once=function(e,t){var n=this;this.on(e,function r(){n.off(e,r),t.apply(null,arguments)});if(!t)return new Promise(function(e){t=e})},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;n||(n=this._defaultHandlers={_disabled_:{}});if(n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var s=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(!n)return;var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);i!=-1&&r.splice(i,1)}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?\"unshift\":\"push\"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(!n)return;var r=n.indexOf(t);r!==-1&&n.splice(r,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=r}),define(\"ace/anchor\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),typeof n==\"undefined\"?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i=t.action==\"insert\",s=(i?1:-1)*(t.end.row-t.start.row),o=(i?1:-1)*(t.end.column-t.start.column),u=t.start,a=i?u:t.end;return e(n,u,r)?{row:n.row,column:n.column}:e(a,n,!r)?{row:n.row+s,column:n.column+(n.row==a.row?o:0)}:{row:u.row,column:u.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(e.start.row==e.end.row&&e.start.row!=this.row)return;if(e.start.row>this.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal(\"change\",{old:i,value:r})},this.detach=function(){this.document.off(\"change\",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on(\"change\",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),define(\"ace/document\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./apply_delta\").applyDelta,s=e(\"./lib/event_emitter\").EventEmitter,o=e(\"./range\").Range,u=e(\"./anchor\").Anchor,a=function(e){this.$lines=[\"\"],e.length===0?this.$lines=[\"\"]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},\"aaa\".split(/a/).length===0?this.$split=function(e){return e.replace(/\\r\\n|\\r/g,\"\\n\").split(\"\\n\")}:this.$split=function(e){return e.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=t?t[1]:\"\\n\",this._signal(\"changeNewLineMode\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\"windows\":return\"\\r\\n\";case\"unix\":return\"\\n\";default:return this.$autoNewLine||\"\\n\"}},this.$autoNewLine=\"\",this.$newLineMode=\"auto\",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal(\"changeNewLineMode\")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==\"\\r\\n\"||e==\"\\r\"||e==\"\\n\"},this.getLine=function(e){return this.$lines[e]||\"\"},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||\"\").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\"),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\"),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\"),this.insertMergedLines(e,[\"\",\"\"])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:\"insert\",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([\"\"]),n=0):(t=[\"\"].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(t.length==1?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:\"insert\",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:\"remove\",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:\"remove\",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=new o(i,s,u,a),l=this.$lines.slice(e,t+1);return this.applyDelta({start:f.start,end:f.end,action:\"remove\",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:\"remove\",lines:[\"\",\"\"]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action==\"insert\";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal(\"change\",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action==\"remove\"&&e.start.row<t&&e.end.row<t||e.action==\"insert\"&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length-t+1,i=e.start.row,s=e.start.column;for(var o=0,u=0;o<r;o=u){u+=t-1;var a=n.slice(o,u);a.push(\"\"),this.applyDelta({start:this.pos(i+o,s),end:this.pos(i+u,s=0),action:e.action,lines:a},!0)}e.lines=n.slice(o),e.start.row=i+o,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action==\"insert\"?\"remove\":\"insert\",lines:e.lines.slice()})},this.indexToPosition=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length;for(var i=t||0,s=n.length;i<s;i++){e-=n[i].length+r;if(e<0)return{row:i,column:e+n[i].length+r}}return{row:s-1,column:e+n[s-1].length+r}},this.positionToIndex=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length);for(var o=t||0;o<s;++o)i+=n[o].length+r;return i+e.column}}).call(a.prototype),t.Document=a}),define(\"ace/lib/lang\",[],function(e,t,n){\"use strict\";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split(\"\").reverse().join(\"\")},t.stringRepeat=function(e,t){var n=\"\";while(t>0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\\s\\s*/,i=/\\s\\s*$/;t.stringTrimLeft=function(e){return e.replace(r,\"\")},t.stringTrimRight=function(e){return e.replace(i,\"\")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)e[n]&&typeof e[n]==\"object\"?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function s(e){if(typeof e!=\"object\"||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=s(e[n]);return t}if(Object.prototype.toString.call(e)!==\"[object Object]\")return e;t={};for(var n in e)t[n]=s(e[n]);return t},t.arrayToMap=function(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\")},t.escapeHTML=function(e){return(\"\"+e).replace(/&/g,\"&#38;\").replace(/\"/g,\"&#34;\").replace(/'/g,\"&#39;\").replace(/</g,\"&#60;\")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){n==null&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),define(\"ace/worker/mirror\",[],function(e,t,n){\"use strict\";var r=e(\"../range\").Range,i=e(\"../document\").Document,s=e(\"../lib/lang\"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new i(\"\"),n=this.deferredUpdate=s.delayedCall(this.onUpdate.bind(this)),r=this;e.on(\"change\",function(e){var i=e.data;if(i[0].start)t.applyDeltas(i);else for(var s=0;s<i.length;s+=2){if(Array.isArray(i[s+1]))var o={action:\"insert\",start:i[s],lines:i[s+1]};else var o={action:\"remove\",start:i[s],end:i[s+1]};t.applyDelta(o,!0)}if(r.$timeout)return n.schedule(r.$timeout);r.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),define(\"ace/mode/php/php\",[],function(e,t,n){var r={Constants:{}};r.Constants.T_INCLUDE=257,r.Constants.T_INCLUDE_ONCE=258,r.Constants.T_EVAL=259,r.Constants.T_REQUIRE=260,r.Constants.T_REQUIRE_ONCE=261,r.Constants.T_LOGICAL_OR=262,r.Constants.T_LOGICAL_XOR=263,r.Constants.T_LOGICAL_AND=264,r.Constants.T_PRINT=265,r.Constants.T_YIELD=266,r.Constants.T_DOUBLE_ARROW=267,r.Constants.T_YIELD_FROM=268,r.Constants.T_PLUS_EQUAL=269,r.Constants.T_MINUS_EQUAL=270,r.Constants.T_MUL_EQUAL=271,r.Constants.T_DIV_EQUAL=272,r.Constants.T_CONCAT_EQUAL=273,r.Constants.T_MOD_EQUAL=274,r.Constants.T_AND_EQUAL=275,r.Constants.T_OR_EQUAL=276,r.Constants.T_XOR_EQUAL=277,r.Constants.T_SL_EQUAL=278,r.Constants.T_SR_EQUAL=279,r.Constants.T_POW_EQUAL=280,r.Constants.T_COALESCE=281,r.Constants.T_BOOLEAN_OR=282,r.Constants.T_BOOLEAN_AND=283,r.Constants.T_IS_EQUAL=284,r.Constants.T_IS_NOT_EQUAL=285,r.Constants.T_IS_IDENTICAL=286,r.Constants.T_IS_NOT_IDENTICAL=287,r.Constants.T_SPACESHIP=288,r.Constants.T_IS_SMALLER_OR_EQUAL=289,r.Constants.T_IS_GREATER_OR_EQUAL=290,r.Constants.T_SL=291,r.Constants.T_SR=292,r.Constants.T_INSTANCEOF=293,r.Constants.T_INC=294,r.Constants.T_DEC=295,r.Constants.T_INT_CAST=296,r.Constants.T_DOUBLE_CAST=297,r.Constants.T_STRING_CAST=298,r.Constants.T_ARRAY_CAST=299,r.Constants.T_OBJECT_CAST=300,r.Constants.T_BOOL_CAST=301,r.Constants.T_UNSET_CAST=302,r.Constants.T_POW=303,r.Constants.T_NEW=304,r.Constants.T_CLONE=305,r.Constants.T_EXIT=306,r.Constants.T_IF=307,r.Constants.T_ELSEIF=308,r.Constants.T_ELSE=309,r.Constants.T_ENDIF=310,r.Constants.T_LNUMBER=311,r.Constants.T_DNUMBER=312,r.Constants.T_STRING=313,r.Constants.T_STRING_VARNAME=314,r.Constants.T_VARIABLE=315,r.Constants.T_NUM_STRING=316,r.Constants.T_INLINE_HTML=317,r.Constants.T_CHARACTER=318,r.Constants.T_BAD_CHARACTER=319,r.Constants.T_ENCAPSED_AND_WHITESPACE=320,r.Constants.T_CONSTANT_ENCAPSED_STRING=321,r.Constants.T_ECHO=322,r.Constants.T_DO=323,r.Constants.T_WHILE=324,r.Constants.T_ENDWHILE=325,r.Constants.T_FOR=326,r.Constants.T_ENDFOR=327,r.Constants.T_FOREACH=328,r.Constants.T_ENDFOREACH=329,r.Constants.T_DECLARE=330,r.Constants.T_ENDDECLARE=331,r.Constants.T_AS=332,r.Constants.T_SWITCH=333,r.Constants.T_ENDSWITCH=334,r.Constants.T_CASE=335,r.Constants.T_DEFAULT=336,r.Constants.T_BREAK=337,r.Constants.T_CONTINUE=338,r.Constants.T_GOTO=339,r.Constants.T_FUNCTION=340,r.Constants.T_CONST=341,r.Constants.T_RETURN=342,r.Constants.T_TRY=343,r.Constants.T_CATCH=344,r.Constants.T_FINALLY=345,r.Constants.T_THROW=346,r.Constants.T_USE=347,r.Constants.T_INSTEADOF=348,r.Constants.T_GLOBAL=349,r.Constants.T_STATIC=350,r.Constants.T_ABSTRACT=351,r.Constants.T_FINAL=352,r.Constants.T_PRIVATE=353,r.Constants.T_PROTECTED=354,r.Constants.T_PUBLIC=355,r.Constants.T_VAR=356,r.Constants.T_UNSET=357,r.Constants.T_ISSET=358,r.Constants.T_EMPTY=359,r.Constants.T_HALT_COMPILER=360,r.Constants.T_CLASS=361,r.Constants.T_TRAIT=362,r.Constants.T_INTERFACE=363,r.Constants.T_EXTENDS=364,r.Constants.T_IMPLEMENTS=365,r.Constants.T_OBJECT_OPERATOR=366,r.Constants.T_LIST=367,r.Constants.T_ARRAY=368,r.Constants.T_CALLABLE=369,r.Constants.T_CLASS_C=370,r.Constants.T_TRAIT_C=371,r.Constants.T_METHOD_C=372,r.Constants.T_FUNC_C=373,r.Constants.T_LINE=374,r.Constants.T_FILE=375,r.Constants.T_COMMENT=376,r.Constants.T_DOC_COMMENT=377,r.Constants.T_OPEN_TAG=378,r.Constants.T_OPEN_TAG_WITH_ECHO=379,r.Constants.T_CLOSE_TAG=380,r.Constants.T_WHITESPACE=381,r.Constants.T_START_HEREDOC=382,r.Constants.T_END_HEREDOC=383,r.Constants.T_DOLLAR_OPEN_CURLY_BRACES=384,r.Constants.T_CURLY_OPEN=385,r.Constants.T_PAAMAYIM_NEKUDOTAYIM=386,r.Constants.T_NAMESPACE=387,r.Constants.T_NS_C=388,r.Constants.T_DIR=389,r.Constants.T_NS_SEPARATOR=390,r.Constants.T_ELLIPSIS=391,r.Lexer=function(e,t){var n,i,s=[\"INITIAL\"],o=0,u=function(e){s[o]=e},a=function(e){s[++o]=e},f=function(){--o},l=t===undefined||/^(on|true|1)$/i.test(t.short_open_tag),c=l?/^(\\<\\?php(?:\\r\\n|[ \\t\\r\\n])|<\\?|\\<script language\\=('|\")?php('|\")?\\>)/i:/^(\\<\\?php(?:\\r\\n|[ \\t\\r\\n])|\\<script language\\=('|\")?php('|\")?\\>)/i,h=l?/[^<]*(?:<(?!\\?|script language\\=('|\")?php('|\")?\\>)[^<]*)*/i:/[^<]*(?:<(?!\\?=|\\?php[ \\t\\r\\n]|script language\\=('|\")?php('|\")?\\>)[^<]*)*/i,p=\"[a-zA-Z_\\\\x7f-\\\\uffff][a-zA-Z0-9_\\\\x7f-\\\\uffff]*\",d=function(e){return\"[^\"+e+\"\\\\\\\\${]*(?:(?:\\\\\\\\[\\\\s\\\\S]|\\\\$(?!\\\\{|[a-zA-Z_\\\\x7f-\\\\uffff])|\\\\{(?!\\\\$))[^\"+e+\"\\\\\\\\${]*)*\"},v=[{value:r.Constants.T_VARIABLE,re:new RegExp(\"^\\\\$\"+p+\"(?=\\\\[)\"),func:function(){a(\"VAR_OFFSET\")}},{value:r.Constants.T_VARIABLE,re:new RegExp(\"^\\\\$\"+p+\"(?=->\"+p+\")\"),func:function(){a(\"LOOKING_FOR_PROPERTY\")}},{value:r.Constants.T_DOLLAR_OPEN_CURLY_BRACES,re:new RegExp(\"^\\\\$\\\\{(?=\"+p+\"[\\\\[}])\"),func:function(){a(\"LOOKING_FOR_VARNAME\")}},{value:r.Constants.T_VARIABLE,re:new RegExp(\"^\\\\$\"+p)},{value:r.Constants.T_DOLLAR_OPEN_CURLY_BRACES,re:/^\\$\\{/,func:function(){a(\"IN_SCRIPTING\")}},{value:r.Constants.T_CURLY_OPEN,re:/^\\{(?=\\$)/,func:function(){a(\"IN_SCRIPTING\")}}],m={INITIAL:[{value:r.Constants.T_OPEN_TAG_WITH_ECHO,re:/^<\\?=/i,func:function(){u(\"IN_SCRIPTING\")}},{value:r.Constants.T_OPEN_TAG,re:c,func:function(){u(\"IN_SCRIPTING\")}},{value:r.Constants.T_INLINE_HTML,re:h}],IN_SCRIPTING:[{value:r.Constants.T_WHITESPACE,re:/^[ \\n\\r\\t]+/},{value:r.Constants.T_ABSTRACT,re:/^abstract\\b/i},{value:r.Constants.T_LOGICAL_AND,re:/^and\\b/i},{value:r.Constants.T_ARRAY,re:/^array\\b/i},{value:r.Constants.T_AS,re:/^as\\b/i},{value:r.Constants.T_BREAK,re:/^break\\b/i},{value:r.Constants.T_CALLABLE,re:/^callable\\b/i},{value:r.Constants.T_CASE,re:/^case\\b/i},{value:r.Constants.T_CATCH,re:/^catch\\b/i},{value:r.Constants.T_CLASS,re:/^class\\b/i},{value:r.Constants.T_CLONE,re:/^clone\\b/i},{value:r.Constants.T_CONST,re:/^const\\b/i},{value:r.Constants.T_CONTINUE,re:/^continue\\b/i},{value:r.Constants.T_DECLARE,re:/^declare\\b/i},{value:r.Constants.T_DEFAULT,re:/^default\\b/i},{value:r.Constants.T_DO,re:/^do\\b/i},{value:r.Constants.T_ECHO,re:/^echo\\b/i},{value:r.Constants.T_ELSE,re:/^else\\b/i},{value:r.Constants.T_ELSEIF,re:/^elseif\\b/i},{value:r.Constants.T_ENDDECLARE,re:/^enddeclare\\b/i},{value:r.Constants.T_ENDFOR,re:/^endfor\\b/i},{value:r.Constants.T_ENDFOREACH,re:/^endforeach\\b/i},{value:r.Constants.T_ENDIF,re:/^endif\\b/i},{value:r.Constants.T_ENDSWITCH,re:/^endswitch\\b/i},{value:r.Constants.T_ENDWHILE,re:/^endwhile\\b/i},{value:r.Constants.T_EMPTY,re:/^empty\\b/i},{value:r.Constants.T_EVAL,re:/^eval\\b/i},{value:r.Constants.T_EXIT,re:/^(?:exit|die)\\b/i},{value:r.Constants.T_EXTENDS,re:/^extends\\b/i},{value:r.Constants.T_FINAL,re:/^final\\b/i},{value:r.Constants.T_FINALLY,re:/^finally\\b/i},{value:r.Constants.T_FOR,re:/^for\\b/i},{value:r.Constants.T_FOREACH,re:/^foreach\\b/i},{value:r.Constants.T_FUNCTION,re:/^function\\b/i},{value:r.Constants.T_GLOBAL,re:/^global\\b/i},{value:r.Constants.T_GOTO,re:/^goto\\b/i},{value:r.Constants.T_IF,re:/^if\\b/i},{value:r.Constants.T_IMPLEMENTS,re:/^implements\\b/i},{value:r.Constants.T_INCLUDE,re:/^include\\b/i},{value:r.Constants.T_INCLUDE_ONCE,re:/^include_once\\b/i},{value:r.Constants.T_INSTANCEOF,re:/^instanceof\\b/i},{value:r.Constants.T_INSTEADOF,re:/^insteadof\\b/i},{value:r.Constants.T_INTERFACE,re:/^interface\\b/i},{value:r.Constants.T_ISSET,re:/^isset\\b/i},{value:r.Constants.T_LIST,re:/^list\\b/i},{value:r.Constants.T_NAMESPACE,re:/^namespace\\b/i},{value:r.Constants.T_NEW,re:/^new\\b/i},{value:r.Constants.T_LOGICAL_OR,re:/^or\\b/i},{value:r.Constants.T_PRINT,re:/^print\\b/i},{value:r.Constants.T_PRIVATE,re:/^private\\b/i},{value:r.Constants.T_PROTECTED,re:/^protected\\b/i},{value:r.Constants.T_PUBLIC,re:/^public\\b/i},{value:r.Constants.T_REQUIRE,re:/^require\\b/i},{value:r.Constants.T_REQUIRE_ONCE,re:/^require_once\\b/i},{value:r.Constants.T_STATIC,re:/^static\\b/i},{value:r.Constants.T_SWITCH,re:/^switch\\b/i},{value:r.Constants.T_THROW,re:/^throw\\b/i},{value:r.Constants.T_TRAIT,re:/^trait\\b/i},{value:r.Constants.T_TRY,re:/^try\\b/i},{value:r.Constants.T_UNSET,re:/^unset\\b/i},{value:r.Constants.T_USE,re:/^use\\b/i},{value:r.Constants.T_VAR,re:/^var\\b/i},{value:r.Constants.T_WHILE,re:/^while\\b/i},{value:r.Constants.T_LOGICAL_XOR,re:/^xor\\b/i},{value:r.Constants.T_YIELD_FROM,re:/^yield\\s+from\\b/i},{value:r.Constants.T_YIELD,re:/^yield\\b/i},{value:r.Constants.T_RETURN,re:/^return\\b/i},{value:r.Constants.T_METHOD_C,re:/^__METHOD__\\b/i},{value:r.Constants.T_LINE,re:/^__LINE__\\b/i},{value:r.Constants.T_FILE,re:/^__FILE__\\b/i},{value:r.Constants.T_FUNC_C,re:/^__FUNCTION__\\b/i},{value:r.Constants.T_NS_C,re:/^__NAMESPACE__\\b/i},{value:r.Constants.T_TRAIT_C,re:/^__TRAIT__\\b/i},{value:r.Constants.T_DIR,re:/^__DIR__\\b/i},{value:r.Constants.T_CLASS_C,re:/^__CLASS__\\b/i},{value:r.Constants.T_AND_EQUAL,re:/^&=/},{value:r.Constants.T_ARRAY_CAST,re:/^\\([ \\t]*array[ \\t]*\\)/i},{value:r.Constants.T_BOOL_CAST,re:/^\\([ \\t]*(?:bool|boolean)[ \\t]*\\)/i},{value:r.Constants.T_DOUBLE_CAST,re:/^\\([ \\t]*(?:real|float|double)[ \\t]*\\)/i},{value:r.Constants.T_INT_CAST,re:/^\\([ \\t]*(?:int|integer)[ \\t]*\\)/i},{value:r.Constants.T_OBJECT_CAST,re:/^\\([ \\t]*object[ \\t]*\\)/i},{value:r.Constants.T_STRING_CAST,re:/^\\([ \\t]*(?:binary|string)[ \\t]*\\)/i},{value:r.Constants.T_UNSET_CAST,re:/^\\([ \\t]*unset[ \\t]*\\)/i},{value:r.Constants.T_BOOLEAN_AND,re:/^&&/},{value:r.Constants.T_BOOLEAN_OR,re:/^\\|\\|/},{value:r.Constants.T_CLOSE_TAG,re:/^(?:\\?>|<\\/script>)(\\r\\n|\\r|\\n)?/i,func:function(){u(\"INITIAL\")}},{value:r.Constants.T_DOUBLE_ARROW,re:/^=>/},{value:r.Constants.T_PAAMAYIM_NEKUDOTAYIM,re:/^::/},{value:r.Constants.T_INC,re:/^\\+\\+/},{value:r.Constants.T_DEC,re:/^--/},{value:r.Constants.T_CONCAT_EQUAL,re:/^\\.=/},{value:r.Constants.T_DIV_EQUAL,re:/^\\/=/},{value:r.Constants.T_XOR_EQUAL,re:/^\\^=/},{value:r.Constants.T_MUL_EQUAL,re:/^\\*=/},{value:r.Constants.T_MOD_EQUAL,re:/^%=/},{value:r.Constants.T_SL_EQUAL,re:/^<<=/},{value:r.Constants.T_START_HEREDOC,re:new RegExp(\"^[bB]?<<<[ \\\\t]*'(\"+p+\")'(?:\\\\r\\\\n|\\\\r|\\\\n)\"),func:function(e){n=e[1],u(\"NOWDOC\")}},{value:r.Constants.T_START_HEREDOC,re:new RegExp('^[bB]?<<<[ \\\\t]*(\"?)('+p+\")\\\\1(?:\\\\r\\\\n|\\\\r|\\\\n)\"),func:function(e){n=e[2],i=!0,u(\"HEREDOC\")}},{value:r.Constants.T_SL,re:/^<</},{value:r.Constants.T_SPACESHIP,re:/^<=>/},{value:r.Constants.T_IS_SMALLER_OR_EQUAL,re:/^<=/},{value:r.Constants.T_SR_EQUAL,re:/^>>=/},{value:r.Constants.T_SR,re:/^>>/},{value:r.Constants.T_IS_GREATER_OR_EQUAL,re:/^>=/},{value:r.Constants.T_OR_EQUAL,re:/^\\|=/},{value:r.Constants.T_PLUS_EQUAL,re:/^\\+=/},{value:r.Constants.T_MINUS_EQUAL,re:/^-=/},{value:r.Constants.T_OBJECT_OPERATOR,re:new RegExp(\"^->(?=[ \\n\\r\t]*\"+p+\")\"),func:function(){a(\"LOOKING_FOR_PROPERTY\")}},{value:r.Constants.T_OBJECT_OPERATOR,re:/^->/i},{value:r.Constants.T_ELLIPSIS,re:/^\\.\\.\\./},{value:r.Constants.T_POW_EQUAL,re:/^\\*\\*=/},{value:r.Constants.T_POW,re:/^\\*\\*/},{value:r.Constants.T_COALESCE,re:/^\\?\\?/},{value:r.Constants.T_COMMENT,re:/^\\/\\*([\\S\\s]*?)(?:\\*\\/|$)/},{value:r.Constants.T_COMMENT,re:/^(?:\\/\\/|#)[^\\r\\n?]*(?:\\?(?!>)[^\\r\\n?]*)*(?:\\r\\n|\\r|\\n)?/},{value:r.Constants.T_IS_IDENTICAL,re:/^===/},{value:r.Constants.T_IS_EQUAL,re:/^==/},{value:r.Constants.T_IS_NOT_IDENTICAL,re:/^!==/},{value:r.Constants.T_IS_NOT_EQUAL,re:/^(!=|<>)/},{value:r.Constants.T_DNUMBER,re:/^(?:[0-9]+\\.[0-9]*|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?/},{value:r.Constants.T_DNUMBER,re:/^[0-9]+[eE][+-]?[0-9]+/},{value:r.Constants.T_LNUMBER,re:/^(?:0x[0-9A-F]+|0b[01]+|[0-9]+)/i},{value:r.Constants.T_VARIABLE,re:new RegExp(\"^\\\\$\"+p)},{value:r.Constants.T_CONSTANT_ENCAPSED_STRING,re:/^[bB]?'[^'\\\\]*(?:\\\\[\\s\\S][^'\\\\]*)*'/},{value:r.Constants.T_CONSTANT_ENCAPSED_STRING,re:new RegExp('^[bB]?\"'+d('\"')+'\"')},{value:-1,re:/^[bB]?\"/,func:function(){u(\"DOUBLE_QUOTES\")}},{value:-1,re:/^`/,func:function(){u(\"BACKTICKS\")}},{value:r.Constants.T_NS_SEPARATOR,re:/^\\\\/},{value:r.Constants.T_STRING,re:/^[a-zA-Z_\\x7f-\\uffff][a-zA-Z0-9_\\x7f-\\uffff]*/},{value:-1,re:/^\\{/,func:function(){a(\"IN_SCRIPTING\")}},{value:-1,re:/^\\}/,func:function(){o>0&&f()}},{value:-1,re:/^[\\[\\];:?()!.,><=+-/*|&@^%\"'$~]/}],DOUBLE_QUOTES:v.concat([{value:-1,re:/^\"/,func:function(){u(\"IN_SCRIPTING\")}},{value:r.Constants.T_ENCAPSED_AND_WHITESPACE,re:new RegExp(\"^\"+d('\"'))}]),BACKTICKS:v.concat([{value:-1,re:/^`/,func:function(){u(\"IN_SCRIPTING\")}},{value:r.Constants.T_ENCAPSED_AND_WHITESPACE,re:new RegExp(\"^\"+d(\"`\"))}]),VAR_OFFSET:[{value:-1,re:/^\\]/,func:function(){f()}},{value:r.Constants.T_NUM_STRING,re:/^(?:0x[0-9A-F]+|0b[01]+|[0-9]+)/i},{value:r.Constants.T_VARIABLE,re:new RegExp(\"^\\\\$\"+p)},{value:r.Constants.T_STRING,re:new RegExp(\"^\"+p)},{value:-1,re:/^[;:,.\\[()|^&+-/*=%!~$<>?@{}\"`]/}],LOOKING_FOR_PROPERTY:[{value:r.Constants.T_OBJECT_OPERATOR,re:/^->/},{value:r.Constants.T_STRING,re:new RegExp(\"^\"+p),func:function(){f()}},{value:r.Constants.T_WHITESPACE,re:/^[ \\n\\r\\t]+/}],LOOKING_FOR_VARNAME:[{value:r.Constants.T_STRING_VARNAME,re:new RegExp(\"^\"+p+\"(?=[\\\\[}])\"),func:function(){u(\"IN_SCRIPTING\")}}],NOWDOC:[{value:r.Constants.T_END_HEREDOC,matchFunc:function(e){var t=new RegExp(\"^\"+n+\"(?=;?[\\\\r\\\\n])\");return e.match(t)?[e.substr(0,n.length)]:null},func:function(){u(\"IN_SCRIPTING\")}},{value:r.Constants.T_ENCAPSED_AND_WHITESPACE,matchFunc:function(e){var t=new RegExp(\"[\\\\r\\\\n]\"+n+\"(?=;?[\\\\r\\\\n])\"),r=t.exec(e),i=r?r.index+1:e.length;return[e.substring(0,i)]}}],HEREDOC:v.concat([{value:r.Constants.T_END_HEREDOC,matchFunc:function(e){if(!i)return null;var t=new RegExp(\"^\"+n+\"(?=;?[\\\\r\\\\n])\");return e.match(t)?[e.substr(0,n.length)]:null},func:function(){u(\"IN_SCRIPTING\")}},{value:r.Constants.T_ENCAPSED_AND_WHITESPACE,matchFunc:function(e){var t=e.length,r=new RegExp(\"^\"+d(\"\")),s=r.exec(e);return s&&(t=s[0].length),r=new RegExp(\"([\\\\r\\\\n])\"+n+\"(?=;?[\\\\r\\\\n])\"),s=r.exec(e.substring(0,t)),s?(t=s.index+1,i=!0):i=!1,t==0?null:[e.substring(0,t)]}}])},g=[],y=1,b=!0;if(e===null)return g;typeof e!=\"string\"&&(e=e.toString());while(e.length>0&&b===!0){var w=s[o],E=m[w];b=E.some(function(t){var n=t.matchFunc!==undefined?t.matchFunc(e):e.match(t.re);if(n!==null){if(n[0].length==0)throw new Error(\"empty match\");t.func!==undefined&&t.func(n);if(t.value===-1)g.push(n[0]);else{var r=n[0];g.push([parseInt(t.value,10),r,y]),y+=r.split(\"\\n\").length-1}return e=e.substring(n[0].length),!0}return!1})}return g},r.Parser=function(e,t){var n=this.yybase,i=this.yydefault,s=this.yycheck,o=this.yyaction,u=this.yylen,a=this.yygbase,f=this.yygcheck,l=this.yyp,c=this.yygoto,h=this.yylhs,p=this.terminals,d=this.translate,v=this.yygdefault;this.pos=-1,this.line=1,this.tokenMap=this.createTokenMap(),this.dropTokens={},this.dropTokens[r.Constants.T_WHITESPACE]=1,this.dropTokens[r.Constants.T_OPEN_TAG]=1;var m=[];e.forEach(function(e,t){typeof e==\"object\"&&e[0]===r.Constants.T_OPEN_TAG_WITH_ECHO?(m.push([r.Constants.T_OPEN_TAG,e[1],e[2]]),m.push([r.Constants.T_ECHO,e[1],e[2]])):m.push(e)}),this.tokens=m;var g=this.TOKEN_NONE;this.startAttributes={startLine:1},this.endAttributes={};var y=[this.startAttributes],b=0,w=[b];this.yyastk=[],this.stackPos=0;var E,S;for(;;){if(n[b]===0)E=i[b];else{g===this.TOKEN_NONE&&(S=this.getNextToken(),g=S>=0&&S<this.TOKEN_MAP_SIZE?d[S]:this.TOKEN_INVALID,y[this.stackPos]=this.startAttributes);if(((E=n[b]+g)>=0&&E<this.YYLAST&&s[E]===g||b<this.YY2TBLSTATE&&(E=n[b+this.YYNLSTATES]+g)>=0&&E<this.YYLAST&&s[E]===g)&&(E=o[E])!==this.YYDEFAULT)if(E>0){++this.stackPos,w[this.stackPos]=b=E,this.yyastk[this.stackPos]=this.tokenValue,y[this.stackPos]=this.startAttributes,g=this.TOKEN_NONE;if(E<this.YYNLSTATES)continue;E-=this.YYNLSTATES}else E=-E;else E=i[b]}for(;;){if(E===0)return this.yyval;if(E===this.YYUNEXPECTED){if(t!==!0){var T=[];for(var N=0;N<this.TOKEN_MAP_SIZE;++N)if((E=n[b]+N)>=0&&E<this.YYLAST&&s[E]==N||b<this.YY2TBLSTATE&&(E=n[b+this.YYNLSTATES]+N)&&E<this.YYLAST&&s[E]==N)if(o[E]!=this.YYUNEXPECTED){if(T.length==4){T=[];break}T.push(this.terminals[N])}var C=\"\";throw T.length&&(C=\", expecting \"+T.join(\" or \")),new r.ParseError(\"syntax error, unexpected \"+p[g]+C,this.startAttributes.startLine)}return this.startAttributes.startLine}for(var x in this.endAttributes)y[this.stackPos-u[E]][x]=this.endAttributes[x];this.stackPos-=u[E],E=h[E],(l=a[E]+w[this.stackPos])>=0&&l<this.YYGLAST&&f[l]===E?b=c[l]:b=v[E],++this.stackPos,w[this.stackPos]=b,this.yyastk[this.stackPos]=this.yyval,y[this.stackPos]=this.startAttributes;if(b<this.YYNLSTATES)break;E=b-this.YYNLSTATES}}},r.ParseError=function(e,t){this.message=e,this.line=t},r.Parser.prototype.getNextToken=function(){this.startAttributes={},this.endAttributes={};var e,t;while(this.tokens[++this.pos]!==undefined){e=this.tokens[this.pos];if(typeof e==\"string\")return this.startAttributes.startLine=this.line,this.endAttributes.endLine=this.line,'b\"'===e?(this.tokenValue='b\"','\"'.charCodeAt(0)):(this.tokenValue=e,e.charCodeAt(0));this.line+=(t=e[1].match(/\\n/g))===null?0:t.length;if(r.Constants.T_COMMENT===e[0])Array.isArray(this.startAttributes.comments)||(this.startAttributes.comments=[]),this.startAttributes.comments.push({type:\"comment\",comment:e[1],line:e[2]});else if(r.Constants.T_DOC_COMMENT===e[0])this.startAttributes.comments.push(new PHPParser_Comment_Doc(e[1],e[2]));else if(this.dropTokens[e[0]]===undefined)return this.tokenValue=e[1],this.startAttributes.startLine=e[2],this.endAttributes.endLine=this.line,this.tokenMap[e[0]]}return this.startAttributes.startLine=this.line,0},r.Parser.prototype.tokenName=function(e){var t=[\"T_INCLUDE\",\"T_INCLUDE_ONCE\",\"T_EVAL\",\"T_REQUIRE\",\"T_REQUIRE_ONCE\",\"T_LOGICAL_OR\",\"T_LOGICAL_XOR\",\"T_LOGICAL_AND\",\"T_PRINT\",\"T_YIELD\",\"T_DOUBLE_ARROW\",\"T_YIELD_FROM\",\"T_PLUS_EQUAL\",\"T_MINUS_EQUAL\",\"T_MUL_EQUAL\",\"T_DIV_EQUAL\",\"T_CONCAT_EQUAL\",\"T_MOD_EQUAL\",\"T_AND_EQUAL\",\"T_OR_EQUAL\",\"T_XOR_EQUAL\",\"T_SL_EQUAL\",\"T_SR_EQUAL\",\"T_POW_EQUAL\",\"T_COALESCE\",\"T_BOOLEAN_OR\",\"T_BOOLEAN_AND\",\"T_IS_EQUAL\",\"T_IS_NOT_EQUAL\",\"T_IS_IDENTICAL\",\"T_IS_NOT_IDENTICAL\",\"T_SPACESHIP\",\"T_IS_SMALLER_OR_EQUAL\",\"T_IS_GREATER_OR_EQUAL\",\"T_SL\",\"T_SR\",\"T_INSTANCEOF\",\"T_INC\",\"T_DEC\",\"T_INT_CAST\",\"T_DOUBLE_CAST\",\"T_STRING_CAST\",\"T_ARRAY_CAST\",\"T_OBJECT_CAST\",\"T_BOOL_CAST\",\"T_UNSET_CAST\",\"T_POW\",\"T_NEW\",\"T_CLONE\",\"T_EXIT\",\"T_IF\",\"T_ELSEIF\",\"T_ELSE\",\"T_ENDIF\",\"T_LNUMBER\",\"T_DNUMBER\",\"T_STRING\",\"T_STRING_VARNAME\",\"T_VARIABLE\",\"T_NUM_STRING\",\"T_INLINE_HTML\",\"T_CHARACTER\",\"T_BAD_CHARACTER\",\"T_ENCAPSED_AND_WHITESPACE\",\"T_CONSTANT_ENCAPSED_STRING\",\"T_ECHO\",\"T_DO\",\"T_WHILE\",\"T_ENDWHILE\",\"T_FOR\",\"T_ENDFOR\",\"T_FOREACH\",\"T_ENDFOREACH\",\"T_DECLARE\",\"T_ENDDECLARE\",\"T_AS\",\"T_SWITCH\",\"T_ENDSWITCH\",\"T_CASE\",\"T_DEFAULT\",\"T_BREAK\",\"T_CONTINUE\",\"T_GOTO\",\"T_FUNCTION\",\"T_CONST\",\"T_RETURN\",\"T_TRY\",\"T_CATCH\",\"T_FINALLY\",\"T_THROW\",\"T_USE\",\"T_INSTEADOF\",\"T_GLOBAL\",\"T_STATIC\",\"T_ABSTRACT\",\"T_FINAL\",\"T_PRIVATE\",\"T_PROTECTED\",\"T_PUBLIC\",\"T_VAR\",\"T_UNSET\",\"T_ISSET\",\"T_EMPTY\",\"T_HALT_COMPILER\",\"T_CLASS\",\"T_TRAIT\",\"T_INTERFACE\",\"T_EXTENDS\",\"T_IMPLEMENTS\",\"T_OBJECT_OPERATOR\",\"T_DOUBLE_ARROW\",\"T_LIST\",\"T_ARRAY\",\"T_CALLABLE\",\"T_CLASS_C\",\"T_TRAIT_C\",\"T_METHOD_C\",\"T_FUNC_C\",\"T_LINE\",\"T_FILE\",\"T_COMMENT\",\"T_DOC_COMMENT\",\"T_OPEN_TAG\",\"T_OPEN_TAG_WITH_ECHO\",\"T_CLOSE_TAG\",\"T_WHITESPACE\",\"T_START_HEREDOC\",\"T_END_HEREDOC\",\"T_DOLLAR_OPEN_CURLY_BRACES\",\"T_CURLY_OPEN\",\"T_PAAMAYIM_NEKUDOTAYIM\",\"T_NAMESPACE\",\"T_NS_C\",\"T_DIR\",\"T_NS_SEPARATOR\",\"T_ELLIPSIS\"],n=\"UNKNOWN\";return t.some(function(t){return r.Constants[t]===e?(n=t,!0):!1}),n},r.Parser.prototype.createTokenMap=function(){var e={},t,n;for(n=256;n<1e3;++n)r.Constants.T_OPEN_TAG_WITH_ECHO===n?e[n]=r.Constants.T_ECHO:r.Constants.T_CLOSE_TAG===n?e[n]=59:\"UNKNOWN\"!==(t=this.tokenName(n))&&(e[n]=this[t]);return e},r.Parser.prototype.TOKEN_NONE=-1,r.Parser.prototype.TOKEN_INVALID=157,r.Parser.prototype.TOKEN_MAP_SIZE=392,r.Parser.prototype.YYLAST=889,r.Parser.prototype.YY2TBLSTATE=337,r.Parser.prototype.YYGLAST=410,r.Parser.prototype.YYNLSTATES=564,r.Parser.prototype.YYUNEXPECTED=32767,r.Parser.prototype.YYDEFAULT=-32766,r.Parser.prototype.YYERRTOK=256,r.Parser.prototype.T_INCLUDE=257,r.Parser.prototype.T_INCLUDE_ONCE=258,r.Parser.prototype.T_EVAL=259,r.Parser.prototype.T_REQUIRE=260,r.Parser.prototype.T_REQUIRE_ONCE=261,r.Parser.prototype.T_LOGICAL_OR=262,r.Parser.prototype.T_LOGICAL_XOR=263,r.Parser.prototype.T_LOGICAL_AND=264,r.Parser.prototype.T_PRINT=265,r.Parser.prototype.T_YIELD=266,r.Parser.prototype.T_DOUBLE_ARROW=267,r.Parser.prototype.T_YIELD_FROM=268,r.Parser.prototype.T_PLUS_EQUAL=269,r.Parser.prototype.T_MINUS_EQUAL=270,r.Parser.prototype.T_MUL_EQUAL=271,r.Parser.prototype.T_DIV_EQUAL=272,r.Parser.prototype.T_CONCAT_EQUAL=273,r.Parser.prototype.T_MOD_EQUAL=274,r.Parser.prototype.T_AND_EQUAL=275,r.Parser.prototype.T_OR_EQUAL=276,r.Parser.prototype.T_XOR_EQUAL=277,r.Parser.prototype.T_SL_EQUAL=278,r.Parser.prototype.T_SR_EQUAL=279,r.Parser.prototype.T_POW_EQUAL=280,r.Parser.prototype.T_COALESCE=281,r.Parser.prototype.T_BOOLEAN_OR=282,r.Parser.prototype.T_BOOLEAN_AND=283,r.Parser.prototype.T_IS_EQUAL=284,r.Parser.prototype.T_IS_NOT_EQUAL=285,r.Parser.prototype.T_IS_IDENTICAL=286,r.Parser.prototype.T_IS_NOT_IDENTICAL=287,r.Parser.prototype.T_SPACESHIP=288,r.Parser.prototype.T_IS_SMALLER_OR_EQUAL=289,r.Parser.prototype.T_IS_GREATER_OR_EQUAL=290,r.Parser.prototype.T_SL=291,r.Parser.prototype.T_SR=292,r.Parser.prototype.T_INSTANCEOF=293,r.Parser.prototype.T_INC=294,r.Parser.prototype.T_DEC=295,r.Parser.prototype.T_INT_CAST=296,r.Parser.prototype.T_DOUBLE_CAST=297,r.Parser.prototype.T_STRING_CAST=298,r.Parser.prototype.T_ARRAY_CAST=299,r.Parser.prototype.T_OBJECT_CAST=300,r.Parser.prototype.T_BOOL_CAST=301,r.Parser.prototype.T_UNSET_CAST=302,r.Parser.prototype.T_POW=303,r.Parser.prototype.T_NEW=304,r.Parser.prototype.T_CLONE=305,r.Parser.prototype.T_EXIT=306,r.Parser.prototype.T_IF=307,r.Parser.prototype.T_ELSEIF=308,r.Parser.prototype.T_ELSE=309,r.Parser.prototype.T_ENDIF=310,r.Parser.prototype.T_LNUMBER=311,r.Parser.prototype.T_DNUMBER=312,r.Parser.prototype.T_STRING=313,r.Parser.prototype.T_STRING_VARNAME=314,r.Parser.prototype.T_VARIABLE=315,r.Parser.prototype.T_NUM_STRING=316,r.Parser.prototype.T_INLINE_HTML=317,r.Parser.prototype.T_CHARACTER=318,r.Parser.prototype.T_BAD_CHARACTER=319,r.Parser.prototype.T_ENCAPSED_AND_WHITESPACE=320,r.Parser.prototype.T_CONSTANT_ENCAPSED_STRING=321,r.Parser.prototype.T_ECHO=322,r.Parser.prototype.T_DO=323,r.Parser.prototype.T_WHILE=324,r.Parser.prototype.T_ENDWHILE=325,r.Parser.prototype.T_FOR=326,r.Parser.prototype.T_ENDFOR=327,r.Parser.prototype.T_FOREACH=328,r.Parser.prototype.T_ENDFOREACH=329,r.Parser.prototype.T_DECLARE=330,r.Parser.prototype.T_ENDDECLARE=331,r.Parser.prototype.T_AS=332,r.Parser.prototype.T_SWITCH=333,r.Parser.prototype.T_ENDSWITCH=334,r.Parser.prototype.T_CASE=335,r.Parser.prototype.T_DEFAULT=336,r.Parser.prototype.T_BREAK=337,r.Parser.prototype.T_CONTINUE=338,r.Parser.prototype.T_GOTO=339,r.Parser.prototype.T_FUNCTION=340,r.Parser.prototype.T_CONST=341,r.Parser.prototype.T_RETURN=342,r.Parser.prototype.T_TRY=343,r.Parser.prototype.T_CATCH=344,r.Parser.prototype.T_FINALLY=345,r.Parser.prototype.T_THROW=346,r.Parser.prototype.T_USE=347,r.Parser.prototype.T_INSTEADOF=348,r.Parser.prototype.T_GLOBAL=349,r.Parser.prototype.T_STATIC=350,r.Parser.prototype.T_ABSTRACT=351,r.Parser.prototype.T_FINAL=352,r.Parser.prototype.T_PRIVATE=353,r.Parser.prototype.T_PROTECTED=354,r.Parser.prototype.T_PUBLIC=355,r.Parser.prototype.T_VAR=356,r.Parser.prototype.T_UNSET=357,r.Parser.prototype.T_ISSET=358,r.Parser.prototype.T_EMPTY=359,r.Parser.prototype.T_HALT_COMPILER=360,r.Parser.prototype.T_CLASS=361,r.Parser.prototype.T_TRAIT=362,r.Parser.prototype.T_INTERFACE=363,r.Parser.prototype.T_EXTENDS=364,r.Parser.prototype.T_IMPLEMENTS=365,r.Parser.prototype.T_OBJECT_OPERATOR=366,r.Parser.prototype.T_LIST=367,r.Parser.prototype.T_ARRAY=368,r.Parser.prototype.T_CALLABLE=369,r.Parser.prototype.T_CLASS_C=370,r.Parser.prototype.T_TRAIT_C=371,r.Parser.prototype.T_METHOD_C=372,r.Parser.prototype.T_FUNC_C=373,r.Parser.prototype.T_LINE=374,r.Parser.prototype.T_FILE=375,r.Parser.prototype.T_COMMENT=376,r.Parser.prototype.T_DOC_COMMENT=377,r.Parser.prototype.T_OPEN_TAG=378,r.Parser.prototype.T_OPEN_TAG_WITH_ECHO=379,r.Parser.prototype.T_CLOSE_TAG=380,r.Parser.prototype.T_WHITESPACE=381,r.Parser.prototype.T_START_HEREDOC=382,r.Parser.prototype.T_END_HEREDOC=383,r.Parser.prototype.T_DOLLAR_OPEN_CURLY_BRACES=384,r.Parser.prototype.T_CURLY_OPEN=385,r.Parser.prototype.T_PAAMAYIM_NEKUDOTAYIM=386,r.Parser.prototype.T_NAMESPACE=387,r.Parser.prototype.T_NS_C=388,r.Parser.prototype.T_DIR=389,r.Parser.prototype.T_NS_SEPARATOR=390,r.Parser.prototype.T_ELLIPSIS=391,r.Parser.prototype.terminals=[\"$EOF\",\"error\",\"T_INCLUDE\",\"T_INCLUDE_ONCE\",\"T_EVAL\",\"T_REQUIRE\",\"T_REQUIRE_ONCE\",\"','\",\"T_LOGICAL_OR\",\"T_LOGICAL_XOR\",\"T_LOGICAL_AND\",\"T_PRINT\",\"T_YIELD\",\"T_DOUBLE_ARROW\",\"T_YIELD_FROM\",\"'='\",\"T_PLUS_EQUAL\",\"T_MINUS_EQUAL\",\"T_MUL_EQUAL\",\"T_DIV_EQUAL\",\"T_CONCAT_EQUAL\",\"T_MOD_EQUAL\",\"T_AND_EQUAL\",\"T_OR_EQUAL\",\"T_XOR_EQUAL\",\"T_SL_EQUAL\",\"T_SR_EQUAL\",\"T_POW_EQUAL\",\"'?'\",\"':'\",\"T_COALESCE\",\"T_BOOLEAN_OR\",\"T_BOOLEAN_AND\",\"'|'\",\"'^'\",\"'&'\",\"T_IS_EQUAL\",\"T_IS_NOT_EQUAL\",\"T_IS_IDENTICAL\",\"T_IS_NOT_IDENTICAL\",\"T_SPACESHIP\",\"'<'\",\"T_IS_SMALLER_OR_EQUAL\",\"'>'\",\"T_IS_GREATER_OR_EQUAL\",\"T_SL\",\"T_SR\",\"'+'\",\"'-'\",\"'.'\",\"'*'\",\"'/'\",\"'%'\",\"'!'\",\"T_INSTANCEOF\",\"'~'\",\"T_INC\",\"T_DEC\",\"T_INT_CAST\",\"T_DOUBLE_CAST\",\"T_STRING_CAST\",\"T_ARRAY_CAST\",\"T_OBJECT_CAST\",\"T_BOOL_CAST\",\"T_UNSET_CAST\",\"'@'\",\"T_POW\",\"'['\",\"T_NEW\",\"T_CLONE\",\"T_EXIT\",\"T_IF\",\"T_ELSEIF\",\"T_ELSE\",\"T_ENDIF\",\"T_LNUMBER\",\"T_DNUMBER\",\"T_STRING\",\"T_STRING_VARNAME\",\"T_VARIABLE\",\"T_NUM_STRING\",\"T_INLINE_HTML\",\"T_ENCAPSED_AND_WHITESPACE\",\"T_CONSTANT_ENCAPSED_STRING\",\"T_ECHO\",\"T_DO\",\"T_WHILE\",\"T_ENDWHILE\",\"T_FOR\",\"T_ENDFOR\",\"T_FOREACH\",\"T_ENDFOREACH\",\"T_DECLARE\",\"T_ENDDECLARE\",\"T_AS\",\"T_SWITCH\",\"T_ENDSWITCH\",\"T_CASE\",\"T_DEFAULT\",\"T_BREAK\",\"T_CONTINUE\",\"T_GOTO\",\"T_FUNCTION\",\"T_CONST\",\"T_RETURN\",\"T_TRY\",\"T_CATCH\",\"T_FINALLY\",\"T_THROW\",\"T_USE\",\"T_INSTEADOF\",\"T_GLOBAL\",\"T_STATIC\",\"T_ABSTRACT\",\"T_FINAL\",\"T_PRIVATE\",\"T_PROTECTED\",\"T_PUBLIC\",\"T_VAR\",\"T_UNSET\",\"T_ISSET\",\"T_EMPTY\",\"T_HALT_COMPILER\",\"T_CLASS\",\"T_TRAIT\",\"T_INTERFACE\",\"T_EXTENDS\",\"T_IMPLEMENTS\",\"T_OBJECT_OPERATOR\",\"T_LIST\",\"T_ARRAY\",\"T_CALLABLE\",\"T_CLASS_C\",\"T_TRAIT_C\",\"T_METHOD_C\",\"T_FUNC_C\",\"T_LINE\",\"T_FILE\",\"T_START_HEREDOC\",\"T_END_HEREDOC\",\"T_DOLLAR_OPEN_CURLY_BRACES\",\"T_CURLY_OPEN\",\"T_PAAMAYIM_NEKUDOTAYIM\",\"T_NAMESPACE\",\"T_NS_C\",\"T_DIR\",\"T_NS_SEPARATOR\",\"T_ELLIPSIS\",\"';'\",\"'{'\",\"'}'\",\"'('\",\"')'\",\"'`'\",\"']'\",\"'\\\"'\",\"'$'\",\"???\"],r.Parser.prototype.translate=[0,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,53,155,157,156,52,35,157,151,152,50,47,7,48,49,51,157,157,157,157,157,157,157,157,157,157,29,148,41,15,43,28,65,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,67,157,154,34,157,153,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,149,33,150,55,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,1,2,3,4,5,6,8,9,10,11,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,36,37,38,39,40,42,44,45,46,54,56,57,58,59,60,61,62,63,64,66,68,69,70,71,72,73,74,75,76,77,78,79,80,81,157,157,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,157,157,157,157,157,157,138,139,140,141,142,143,144,145,146,147],r.Parser.prototype.yyaction=[569,570,571,572,573,215,574,575,576,612,613,0,27,99,100,101,102,103,104,105,106,107,108,109,110,-32766,-32766,-32766,95,96,97,24,240,226,-267,-32766,-32766,-32766,-32766,-32766,-32766,530,344,114,98,-32766,286,-32766,-32766,-32766,-32766,-32766,577,870,872,-32766,-32766,-32766,-32766,-32766,-32766,-32766,-32766,224,-32766,714,578,579,580,581,582,583,584,-32766,264,644,840,841,842,839,838,837,585,586,587,588,589,590,591,592,593,594,595,615,616,617,618,619,607,608,609,610,611,596,597,598,599,600,601,602,638,639,640,641,642,643,603,604,605,606,636,627,625,626,622,623,116,614,620,621,628,629,631,630,632,633,42,43,381,44,45,624,635,634,-214,46,47,289,48,-32767,-32767,-32767,-32767,90,91,92,93,94,267,241,22,840,841,842,839,838,837,832,-32766,-32766,-32766,306,1e3,1e3,1037,120,966,436,-423,244,797,49,50,660,661,272,362,51,-32766,52,219,220,53,54,55,56,57,58,59,60,1016,22,238,61,351,945,-32766,-32766,-32766,967,968,646,705,1e3,28,-456,125,966,-32766,-32766,-32766,715,398,399,216,1e3,-32766,339,-32766,-32766,-32766,-32766,25,222,980,552,355,378,-32766,-423,-32766,-32766,-32766,121,65,1045,408,1047,1046,274,274,131,244,-423,394,395,358,519,945,537,-423,111,-426,398,399,130,972,973,974,975,969,970,243,128,-422,-421,1013,409,976,971,353,791,792,7,-162,63,124,255,701,256,274,382,-122,-122,-122,-4,715,383,646,1042,-421,704,274,-219,33,17,384,-122,385,-122,386,-122,387,-122,369,388,-122,-122,-122,34,35,389,352,520,36,390,353,702,62,112,818,287,288,391,392,-422,-421,-161,350,393,40,38,690,735,396,397,361,22,122,-422,-421,-32766,-32766,-32766,791,792,-422,-421,-425,1e3,-456,-421,-238,966,409,41,382,353,717,535,-122,-32766,383,-32766,-32766,-421,704,21,813,33,17,384,-421,385,-466,386,224,387,-467,273,388,367,945,-458,34,35,389,352,345,36,390,248,247,62,254,715,287,288,391,392,399,-32766,-32766,-32766,393,295,1e3,652,735,396,397,117,115,113,814,119,72,73,74,-162,764,65,240,541,370,518,274,118,270,92,93,94,242,717,535,-4,26,1e3,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,547,240,713,715,382,276,-32766,-32766,126,945,383,-161,938,98,704,225,659,33,17,384,346,385,274,386,728,387,221,120,388,505,506,540,34,35,389,715,-238,36,390,1017,223,62,494,18,287,288,127,297,376,6,98,798,393,274,660,661,490,491,-466,39,-466,514,-467,539,-467,16,458,-458,315,791,792,829,553,382,817,563,653,538,765,383,449,751,535,704,448,435,33,17,384,430,385,646,386,359,387,357,647,388,673,429,1040,34,35,389,715,382,36,390,941,492,62,383,503,287,288,704,434,440,33,17,384,393,385,-32766,386,445,387,495,509,388,10,529,542,34,35,389,715,515,36,390,499,500,62,214,-80,287,288,452,269,736,717,535,488,393,356,266,979,265,730,982,722,358,338,493,548,0,294,737,0,3,0,309,0,0,382,0,0,271,0,0,383,0,717,535,704,227,0,33,17,384,9,385,0,386,0,387,-382,0,388,0,0,325,34,35,389,715,382,36,390,321,341,62,383,340,287,288,704,22,320,33,17,384,393,385,442,386,337,387,562,1e3,388,32,31,966,34,35,389,823,657,36,390,656,821,62,703,711,287,288,561,822,825,717,535,695,393,747,749,693,759,758,752,767,945,824,706,700,712,699,698,658,0,263,262,559,558,382,556,554,551,398,399,383,550,717,535,704,546,545,33,17,384,543,385,536,386,71,387,933,932,388,30,65,731,34,35,389,274,724,36,390,830,734,62,663,662,287,288,-32766,-32766,-32766,733,732,934,393,665,664,756,555,691,1041,1001,994,1006,1011,1014,757,1043,-32766,654,-32766,-32766,-32766,-32766,-32766,-32766,-32767,-32767,-32767,-32767,-32767,655,1044,717,535,-446,926,348,343,268,237,236,235,234,218,217,132,129,-426,-425,-424,123,20,23,70,69,29,37,64,68,66,67,-448,0,15,19,250,910,296,-217,467,484,909,472,528,913,11,964,955,-215,525,379,375,373,371,14,13,12,-214,0,-393,0,1005,1039,992,993,963,0,981],r.Parser.prototype.yycheck=[2,3,4,5,6,13,8,9,10,11,12,0,15,16,17,18,19,20,21,22,23,24,25,26,27,8,9,10,50,51,52,7,54,7,79,8,9,10,8,9,10,77,7,13,66,28,7,30,31,32,33,34,54,56,57,28,8,30,31,32,33,34,35,35,109,1,68,69,70,71,72,73,74,118,7,77,112,113,114,115,116,117,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,7,129,130,131,132,133,134,135,136,137,2,3,4,5,6,143,144,145,152,11,12,7,14,41,42,43,44,45,46,47,48,49,109,7,67,112,113,114,115,116,117,118,8,9,10,79,79,79,82,147,83,82,67,28,152,47,48,102,103,7,7,53,28,55,56,57,58,59,60,61,62,63,64,65,1,67,68,69,70,112,8,9,10,75,76,77,148,79,13,7,67,83,8,9,10,1,129,130,13,79,28,146,30,31,32,33,140,141,139,29,102,7,28,128,30,31,32,149,151,77,112,79,80,156,156,15,28,142,120,121,146,77,112,149,149,15,151,129,130,15,132,133,134,135,136,137,138,15,67,67,77,143,144,145,146,130,131,7,7,151,15,153,148,155,156,71,72,73,74,0,1,77,77,150,67,81,156,152,84,85,86,87,88,89,90,91,92,93,29,95,96,97,98,99,100,101,102,143,104,105,146,148,108,15,150,111,112,113,114,128,128,7,7,119,67,67,122,123,124,125,7,67,149,142,142,8,9,10,130,131,149,149,151,79,152,128,7,83,143,7,71,146,148,149,150,28,77,30,31,142,81,7,148,84,85,86,149,88,7,90,35,92,7,33,95,7,112,7,99,100,101,102,103,104,105,128,128,108,109,1,111,112,113,114,130,8,9,10,119,142,79,122,123,124,125,15,149,149,148,29,8,9,10,152,29,151,54,29,149,79,156,15,143,47,48,49,29,148,149,150,28,79,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,29,54,29,1,71,67,8,9,29,112,77,152,152,66,81,35,148,84,85,86,123,88,156,90,35,92,35,147,95,72,73,29,99,100,101,1,152,104,105,152,35,108,72,73,111,112,97,98,102,103,66,152,119,156,102,103,106,107,152,67,154,74,152,29,154,152,128,152,78,130,131,148,149,71,148,149,148,149,148,77,77,148,149,81,77,77,84,85,86,77,88,77,90,77,92,77,77,95,77,77,77,99,100,101,1,71,104,105,79,79,108,77,79,111,112,81,79,82,84,85,86,119,88,82,90,86,92,87,96,95,94,89,29,99,100,101,1,91,104,105,93,96,108,94,94,111,112,94,110,123,148,149,109,119,102,127,139,126,147,139,150,146,149,154,29,-1,142,123,-1,142,-1,146,-1,-1,71,-1,-1,126,-1,-1,77,-1,148,149,81,35,-1,84,85,86,142,88,-1,90,-1,92,142,-1,95,-1,-1,146,99,100,101,1,71,104,105,146,146,108,77,146,111,112,81,67,146,84,85,86,119,88,146,90,149,92,148,79,95,148,148,83,99,100,101,148,148,104,105,148,148,108,148,148,111,112,148,148,148,148,149,148,119,148,148,148,148,148,148,148,112,148,148,148,148,148,148,148,-1,149,149,149,149,71,149,149,149,129,130,77,149,148,149,81,149,149,84,85,86,149,88,149,90,149,92,150,150,95,151,151,150,99,100,101,156,150,104,105,150,150,108,150,150,111,112,8,9,10,150,150,150,119,150,150,150,150,150,150,150,150,150,150,150,150,150,28,150,30,31,32,33,34,35,36,37,38,39,40,150,150,148,149,151,153,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,-1,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,-1,153,-1,154,154,154,154,154,-1,155],r.Parser.prototype.yybase=[0,220,295,94,180,560,-2,-2,-2,-2,-36,473,574,606,574,505,404,675,675,675,28,351,462,462,462,461,396,476,451,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,401,64,201,568,704,713,708,702,714,520,706,705,211,650,651,450,652,653,654,655,709,480,703,712,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,48,30,469,403,403,403,403,403,403,403,403,403,403,403,403,403,403,403,403,403,403,403,160,160,160,343,210,208,198,17,233,27,780,780,780,780,780,108,108,108,108,621,621,93,280,280,280,280,280,280,280,280,280,280,280,632,641,642,643,392,392,151,151,151,151,368,-45,146,224,224,95,410,491,733,199,199,111,207,-22,-22,-22,81,506,92,92,233,233,273,233,423,423,423,221,221,221,221,221,110,221,221,221,617,512,168,516,647,397,503,656,274,381,377,538,535,337,523,337,421,441,428,525,337,337,285,401,394,378,567,474,339,564,140,179,409,399,384,594,561,711,330,710,358,149,378,378,378,370,593,548,355,-8,646,484,277,417,386,645,635,230,634,276,331,356,565,485,485,485,485,485,485,460,485,483,691,691,478,501,460,696,460,485,691,460,460,502,485,522,522,483,508,499,691,691,499,478,460,571,551,514,482,413,413,514,460,413,501,413,11,697,699,444,700,695,698,676,694,493,615,497,515,684,683,693,479,489,620,692,549,592,487,246,314,498,463,689,523,486,455,455,455,463,687,455,455,455,455,455,455,455,455,732,24,495,510,591,590,589,406,588,496,524,422,599,488,549,549,649,727,673,490,682,716,690,555,119,271,681,648,543,492,534,680,598,246,715,494,672,549,671,455,674,701,730,731,688,728,722,152,526,587,178,729,659,596,595,554,725,707,721,720,178,576,511,717,518,677,504,678,613,258,657,686,584,724,723,726,583,582,609,608,250,236,685,442,458,517,581,500,628,604,679,580,579,623,619,718,521,486,519,509,507,513,600,618,719,206,578,586,573,481,572,631,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,134,134,-2,-2,-2,0,0,0,0,-2,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,418,-3,418,418,-3,418,418,418,418,418,418,-22,-22,-22,-22,221,221,221,221,221,221,221,221,221,221,221,221,221,221,49,49,49,49,-22,-22,221,221,221,221,221,49,221,221,221,92,221,92,92,337,337,0,0,0,0,0,485,92,0,0,0,0,0,0,485,485,485,0,0,0,0,0,485,0,0,0,337,92,0,420,420,178,420,420,0,0,0,485,485,0,508,0,0,0,0,691,0,0,0,0,0,455,119,682,0,39,0,0,0,0,0,490,39,26,0,26,0,0,455,455,455,0,490,490,0,0,67,490,0,0,0,67,35,0,35,0,0,0,178],r.Parser.prototype.yydefault=[3,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,468,468,468,32767,32767,32767,32767,285,460,285,285,32767,419,419,419,419,419,419,419,460,32767,32767,32767,32767,32767,364,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,465,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,347,348,350,351,284,420,237,464,283,116,246,239,191,282,223,119,312,365,314,363,367,313,290,294,295,296,297,298,299,300,301,302,303,304,305,288,289,366,344,343,342,310,311,287,315,317,287,316,333,334,331,332,335,336,337,338,339,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,269,269,269,269,324,325,229,229,229,229,32767,270,32767,229,32767,32767,32767,32767,32767,32767,32767,413,341,319,320,318,32767,392,32767,394,307,309,387,291,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,389,421,421,32767,32767,32767,381,32767,159,210,212,397,32767,32767,32767,32767,32767,329,32767,32767,32767,32767,32767,32767,474,32767,32767,32767,32767,32767,421,32767,32767,32767,321,322,323,32767,32767,32767,421,421,32767,32767,421,32767,421,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,163,32767,32767,395,395,32767,32767,163,390,163,32767,32767,163,163,176,32767,174,174,32767,32767,178,32767,435,178,32767,163,196,196,373,165,231,231,373,163,231,32767,231,32767,32767,32767,82,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,383,32767,32767,32767,401,32767,414,433,381,32767,327,328,330,32767,423,352,353,354,355,356,357,358,360,32767,461,386,32767,32767,32767,32767,32767,32767,84,108,245,32767,473,84,384,32767,473,32767,32767,32767,32767,32767,32767,286,32767,32767,32767,84,32767,84,32767,32767,457,32767,32767,421,385,32767,326,398,439,32767,32767,422,32767,32767,218,84,32767,177,32767,32767,32767,32767,32767,32767,401,32767,32767,179,32767,32767,421,32767,32767,32767,32767,32767,281,32767,32767,32767,32767,32767,421,32767,32767,32767,32767,222,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,82,60,32767,263,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,121,121,3,3,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,248,154,248,204,248,248,207,196,196,255],r.Parser.prototype.yygoto=[163,163,135,135,135,146,148,179,164,161,145,161,161,161,162,162,162,162,162,162,162,145,157,158,159,160,176,174,177,410,411,299,412,415,416,417,418,419,420,421,422,857,136,137,138,139,140,141,142,143,144,147,173,175,178,195,198,199,201,202,204,205,206,207,208,209,210,211,212,213,232,233,251,252,253,316,317,318,462,180,181,182,183,184,185,186,187,188,189,190,191,192,193,149,194,150,165,166,167,196,168,151,152,153,169,154,197,133,170,155,171,172,156,521,200,257,246,464,432,687,649,278,481,482,527,200,437,437,437,766,5,746,650,557,437,426,775,770,428,431,444,465,466,468,483,279,651,336,450,453,437,560,485,487,508,511,763,516,517,777,524,762,526,532,773,534,480,480,965,965,965,965,965,965,965,965,965,965,965,965,413,413,413,413,413,413,413,413,413,413,413,413,413,413,942,502,478,496,512,456,298,437,437,451,471,437,437,674,437,229,456,230,231,463,828,533,681,438,513,826,461,475,460,414,414,414,414,414,414,414,414,414,414,414,414,414,414,301,674,674,443,454,1033,1033,1034,1034,425,531,425,708,750,800,457,372,1033,943,1034,1026,300,1018,497,8,313,904,796,944,996,785,789,1007,285,670,1036,329,307,310,804,668,544,332,935,940,366,807,678,477,377,754,844,0,667,667,675,675,675,677,0,666,323,498,328,312,312,258,259,283,459,261,322,284,326,486,280,281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,790,790,790,790,946,0,946,790,790,1004,790,1004,0,0,0,0,836,0,1015,1015,0,0,0,0,0,0,0,0,0,0,0,744,744,744,720,744,0,739,745,721,780,780,1023,0,0,1002,0,0,0,0,0,0,0,0,0,0,0,0,806,0,806,0,0,0,0,1008,1009],r.Parser.prototype.yygcheck=[23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,52,45,112,112,80,8,10,10,64,55,55,55,45,8,8,8,10,92,10,11,10,8,10,10,10,38,38,38,38,38,38,62,62,12,62,28,8,8,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,70,70,70,70,70,70,70,70,70,70,70,70,70,70,113,113,113,113,113,113,113,113,113,113,113,113,113,113,76,56,35,35,56,69,56,8,8,8,8,8,8,19,8,60,69,60,60,7,7,7,25,8,7,7,2,2,8,115,115,115,115,115,115,115,115,115,115,115,115,115,115,53,19,19,53,53,123,123,124,124,109,5,109,44,29,78,114,53,123,76,124,122,41,120,43,53,42,96,74,76,76,72,75,117,14,21,123,18,9,13,79,20,66,17,102,104,58,81,22,59,100,63,94,-1,19,19,19,19,19,19,-1,19,45,45,45,45,45,45,45,45,45,45,45,45,45,45,64,64,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,52,52,52,52,52,-1,52,52,52,80,52,80,-1,-1,-1,-1,92,-1,80,80,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,52,52,52,52,52,-1,52,52,52,69,69,69,-1,-1,80,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,80,-1,80,-1,-1,-1,-1,80,80],r.Parser.prototype.yygbase=[0,0,-317,0,0,237,0,210,-136,4,118,130,144,-10,16,0,0,-59,10,-47,-9,7,-77,-20,0,209,0,0,-388,234,0,0,0,0,0,165,0,0,103,0,0,225,44,45,235,84,0,0,0,0,0,0,109,-115,0,-113,-179,0,-78,-81,-347,0,-122,-80,-249,0,-19,0,0,169,-48,0,26,0,22,24,-99,0,230,-13,114,-79,0,0,0,0,0,0,0,0,0,0,120,0,-90,0,23,0,0,0,-89,0,-67,0,-69,0,0,0,0,8,0,0,-140,-34,229,9,0,21,0,0,218,0,233,-3,-1,0],r.Parser.prototype.yygdefault=[-32768,380,565,2,566,637,645,504,400,433,748,688,689,303,342,401,302,330,324,676,669,671,679,134,333,682,1,684,439,716,291,692,292,507,694,446,696,697,427,304,305,447,311,479,707,203,308,709,290,710,719,335,293,510,489,469,501,402,363,476,228,455,473,753,277,761,549,769,772,403,404,470,784,368,794,788,960,319,799,805,991,808,811,349,331,327,815,816,4,820,522,523,835,239,843,856,347,923,925,441,374,936,360,334,939,995,354,405,364,952,260,282,245,406,423,249,407,365,998,314,1019,424,1027,1035,275,474],r.Parser.prototype.yylhs=[0,1,3,3,2,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,7,7,8,8,9,4,4,4,4,4,4,4,4,4,4,4,14,14,15,15,15,15,17,17,13,13,18,18,19,19,20,20,21,21,16,16,22,24,24,25,26,26,28,27,27,27,27,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,10,10,48,48,51,51,50,49,49,42,42,53,53,54,54,11,12,12,12,57,57,57,58,58,61,61,59,59,62,62,36,36,44,44,47,47,47,46,46,63,37,37,37,37,64,64,65,65,66,66,34,34,30,30,67,32,32,68,31,31,33,33,43,43,43,43,55,55,71,71,72,72,74,74,75,75,75,73,73,56,56,76,76,77,77,78,78,78,39,39,79,40,40,81,81,60,60,82,82,82,82,87,87,88,88,89,89,89,89,89,90,91,91,86,86,83,83,85,85,93,93,92,92,92,92,92,92,84,84,94,94,41,41,35,35,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,101,95,95,100,100,103,103,104,105,105,105,109,109,52,52,52,96,96,107,107,97,97,99,99,99,102,102,113,113,70,115,115,115,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,38,38,111,111,111,106,106,106,116,116,116,116,116,116,45,45,45,80,80,80,118,110,110,110,110,110,110,108,108,108,117,117,117,117,69,119,119,120,120,120,120,120,114,121,121,122,122,122,122,122,112,112,112,112,124,123,123,123,123,123,123,123,125,125,125],r.Parser.prototype.yylen=[1,1,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,1,1,1,1,3,5,4,3,4,2,3,1,1,7,8,6,7,3,1,3,1,3,1,1,3,1,2,1,2,3,1,3,3,1,3,2,0,1,1,1,1,1,3,7,10,5,7,9,5,3,3,3,3,3,3,1,2,5,7,9,5,6,3,3,2,2,1,1,1,0,2,1,3,8,0,4,1,3,0,1,0,1,10,7,6,5,1,2,2,0,2,0,2,0,2,1,3,1,4,1,4,1,1,4,1,3,3,3,4,4,5,0,2,4,3,1,1,1,4,0,2,5,0,2,6,0,2,0,3,1,2,1,1,1,0,1,3,4,6,1,2,1,1,1,0,1,0,2,2,3,1,3,1,2,2,3,1,1,3,1,1,3,2,0,3,4,9,3,1,3,0,2,4,5,4,4,4,3,1,1,1,3,1,1,0,1,1,2,1,1,1,1,1,1,1,3,1,3,3,1,0,1,1,3,3,3,4,1,2,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,5,4,3,4,4,2,2,4,2,2,2,2,2,2,2,2,2,2,2,1,3,2,1,2,4,2,10,11,7,3,2,0,4,1,3,2,2,2,4,1,1,1,2,3,1,1,1,1,0,3,0,1,1,0,1,1,3,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,2,3,3,0,1,1,3,1,1,3,1,1,4,4,4,1,4,1,1,3,1,4,2,3,1,4,4,3,3,3,1,3,1,1,3,1,1,4,3,1,1,1,3,3,0,1,3,1,3,1,4,2,0,2,2,1,2,1,1,4,3,3,3,6,3,1,1,1],t.PHP=r}),define(\"ace/mode/php_worker\",[],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"../worker/mirror\").Mirror,s=e(\"./php/php\").PHP,o=t.PhpWorker=function(e){i.call(this,e),this.setTimeout(500)};r.inherits(o,i),function(){this.setOptions=function(e){this.inlinePhp=e&&e.inline},this.onUpdate=function(){var e=this.doc.getValue(),t=[];this.inlinePhp&&(e=\"<?\"+e+\"?>\");var n=s.Lexer(e,{short_open_tag:1});try{new s.Parser(n)}catch(r){t.push({row:r.line-1,column:null,text:r.message.charAt(0).toUpperCase()+r.message.substring(1),type:\"error\"})}this.sender.emit(\"annotate\",t)}}.call(o.prototype)}),define(\"ace/lib/es5-shim\",[],function(e,t,n){function r(){}function w(e){try{return Object.defineProperty(e,\"sentinel\",{}),\"sentinel\"in e}catch(t){}}function H(e){return e=+e,e!==e?e=0:e!==0&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}function B(e){var t=typeof e;return e===null||t===\"undefined\"||t===\"boolean\"||t===\"number\"||t===\"string\"}function j(e){var t,n,r;if(B(e))return e;n=e.valueOf;if(typeof n==\"function\"){t=n.call(e);if(B(t))return t}r=e.toString;if(typeof r==\"function\"){t=r.call(e);if(B(t))return t}throw new TypeError}Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!=\"function\")throw new TypeError(\"Function.prototype.bind called on incompatible \"+n);var i=u.call(arguments,1),s=function(){if(this instanceof s){var e=n.apply(this,i.concat(u.call(arguments)));return Object(e)===e?e:this}return n.apply(t,i.concat(u.call(arguments)))};return n.prototype&&(r.prototype=n.prototype,s.prototype=new r,r.prototype=null),s});var i=Function.prototype.call,s=Array.prototype,o=Object.prototype,u=s.slice,a=i.bind(o.toString),f=i.bind(o.hasOwnProperty),l,c,h,p,d;if(d=f(o,\"__defineGetter__\"))l=i.bind(o.__defineGetter__),c=i.bind(o.__defineSetter__),h=i.bind(o.__lookupGetter__),p=i.bind(o.__lookupSetter__);if([1,2].splice(0).length!=2)if(!function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t=[],n;t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,\"XXX\"),n+1==t.length;if(n+1==t.length)return!0}())Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):e==void 0?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=u.call(arguments,2),s=i.length;if(e===n)s&&this.push.apply(this,i);else{var o=Math.min(t,n-e),a=e+o,f=a+s-o,l=n-a,c=n-o;if(f<a)for(var h=0;h<l;++h)this[f+h]=this[a+h];else if(f>a)for(h=l;h--;)this[f+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,i);else{this.length=c+s;for(h=0;h<s;++h)this[e+h]=i[h]}}return r};else{var v=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?v.apply(this,[e===void 0?0:e,t===void 0?this.length-e:t].concat(u.call(arguments,2))):[]}}Array.isArray||(Array.isArray=function(t){return a(t)==\"[object Array]\"});var m=Object(\"a\"),g=m[0]!=\"a\"||!(0 in m);Array.prototype.forEach||(Array.prototype.forEach=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=arguments[1],s=-1,o=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError;while(++s<o)s in r&&t.call(i,r[s],s,n)}),Array.prototype.map||(Array.prototype.map=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=Array(i),o=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var u=0;u<i;u++)u in r&&(s[u]=t.call(o,r[u],u,n));return s}),Array.prototype.filter||(Array.prototype.filter=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=[],o,u=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var f=0;f<i;f++)f in r&&(o=r[f],t.call(u,o,f,n)&&s.push(o));return s}),Array.prototype.every||(Array.prototype.every=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&!t.call(s,r[o],o,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&t.call(s,r[o],o,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduce of empty array with no initial value\");var s=0,o;if(arguments.length>=2)o=arguments[1];else do{if(s in r){o=r[s++];break}if(++s>=i)throw new TypeError(\"reduce of empty array with no initial value\")}while(!0);for(;s<i;s++)s in r&&(o=t.call(void 0,o,r[s],s,n));return o}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduceRight of empty array with no initial value\");var s,o=i-1;if(arguments.length>=2)s=arguments[1];else do{if(o in r){s=r[o--];break}if(--o<0)throw new TypeError(\"reduceRight of empty array with no initial value\")}while(!0);do o in this&&(s=t.call(void 0,s,r[o],o,n));while(o--);return s});if(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)Array.prototype.indexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=0;arguments.length>1&&(i=H(arguments[1])),i=i>=0?i:Math.max(0,r+i);for(;i<r;i++)if(i in n&&n[i]===t)return i;return-1};if(!Array.prototype.lastIndexOf||[0,1].lastIndexOf(0,-3)!=-1)Array.prototype.lastIndexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=r-1;arguments.length>1&&(i=Math.min(i,H(arguments[1]))),i=i>=0?i:r-Math.abs(i);for(;i>=0;i--)if(i in n&&t===n[i])return i;return-1};Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:o)});if(!Object.getOwnPropertyDescriptor){var y=\"Object.getOwnPropertyDescriptor called on a non-object: \";Object.getOwnPropertyDescriptor=function(t,n){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(y+t);if(!f(t,n))return;var r,i,s;r={enumerable:!0,configurable:!0};if(d){var u=t.__proto__;t.__proto__=o;var i=h(t,n),s=p(t,n);t.__proto__=u;if(i||s)return i&&(r.get=i),s&&(r.set=s),r}return r.value=t[n],r}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)});if(!Object.create){var b;Object.prototype.__proto__===null?b=function(){return{__proto__:null}}:b=function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(t,n){var r;if(t===null)r=b();else{if(typeof t!=\"object\")throw new TypeError(\"typeof prototype[\"+typeof t+\"] != 'object'\");var i=function(){};i.prototype=t,r=new i,r.__proto__=t}return n!==void 0&&Object.defineProperties(r,n),r}}if(Object.defineProperty){var E=w({}),S=typeof document==\"undefined\"||w(document.createElement(\"div\"));if(!E||!S)var x=Object.defineProperty}if(!Object.defineProperty||x){var T=\"Property description must be an object: \",N=\"Object.defineProperty called on non-object: \",C=\"getters & setters can not be defined on this javascript engine\";Object.defineProperty=function(t,n,r){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(N+t);if(typeof r!=\"object\"&&typeof r!=\"function\"||r===null)throw new TypeError(T+r);if(x)try{return x.call(Object,t,n,r)}catch(i){}if(f(r,\"value\"))if(d&&(h(t,n)||p(t,n))){var s=t.__proto__;t.__proto__=o,delete t[n],t[n]=r.value,t.__proto__=s}else t[n]=r.value;else{if(!d)throw new TypeError(C);f(r,\"get\")&&l(t,n,r.get),f(r,\"set\")&&c(t,n,r.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,n){for(var r in n)f(n,r)&&Object.defineProperty(t,r,n[r]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(k){Object.freeze=function(t){return function(n){return typeof n==\"function\"?n:t(n)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;var n=\"\";while(f(t,n))n+=\"?\";t[n]=!0;var r=f(t,n);return delete t[n],r});if(!Object.keys){var L=!0,A=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],O=A.length;for(var M in{toString:null})L=!1;Object.keys=function I(e){if(typeof e!=\"object\"&&typeof e!=\"function\"||e===null)throw new TypeError(\"Object.keys called on a non-object\");var I=[];for(var t in e)f(e,t)&&I.push(t);if(L)for(var n=0,r=O;n<r;n++){var i=A[n];f(e,i)&&I.push(i)}return I}}Date.now||(Date.now=function(){return(new Date).getTime()});var _=\"\t\\n\\x0b\\f\\r \\u00a0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029\\ufeff\";if(!String.prototype.trim){_=\"[\"+_+\"]\";var D=new RegExp(\"^\"+_+_+\"*\"),P=new RegExp(_+_+\"*$\");String.prototype.trim=function(){return String(this).replace(D,\"\").replace(P,\"\")}}var F=function(e){if(e==null)throw new TypeError(\"can't convert \"+e+\" to object\");return Object(e)}})"
  },
  {
    "path": "pyp5js/http_local/static/js/ace/worker-xml.js",
    "content": "\"no use strict\";!function(e){function t(e,t){var n=e,r=\"\";while(n){var i=t[n];if(typeof i==\"string\")return i+r;if(i)return i.location.replace(/\\/*$/,\"/\")+(r||i.main||i.name);if(i===!1)return\"\";var s=n.lastIndexOf(\"/\");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!=\"undefined\"&&e.document)return;if(e.require&&e.define)return;e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:\"log\",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:\"error\",data:{message:e,data:i.data,file:t,line:n,col:r,stack:i.stack}})},e.normalizeModule=function(t,n){if(n.indexOf(\"!\")!==-1){var r=n.split(\"!\");return e.normalizeModule(t,r[0])+\"!\"+e.normalizeModule(t,r[1])}if(n.charAt(0)==\".\"){var i=t.split(\"/\").slice(0,-1).join(\"/\");n=(i?i+\"/\":\"\")+n;while(n.indexOf(\".\")!==-1&&s!=n){var s=n;n=n.replace(/^\\.\\//,\"\").replace(/\\/\\.\\//,\"/\").replace(/[^\\/]+\\/\\.\\.\\//,\"\")}}return n},e.require=function(r,i){i||(i=r,r=null);if(!i.charAt)throw new Error(\"worker.js require() accepts only (parentId, id) as arguments\");i=e.normalizeModule(r,i);var s=e.require.modules[i];if(s)return s.initialized||(s.initialized=!0,s.exports=s.factory().exports),s.exports;if(!e.require.tlns)return console.log(\"unable to load \"+i);var o=t(i,e.require.tlns);return o.slice(-3)!=\".js\"&&(o+=\".js\"),e.require.id=i,e.require.modules[i]={},importScripts(o),e.require(r,i)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){arguments.length==2?(r=n,typeof t!=\"string\"&&(n=t,t=e.require.id)):arguments.length==1&&(r=t,n=[],t=e.require.id);if(typeof r!=\"function\"){e.require.modules[t]={exports:r,initialized:!0};return}n.length||(n=[\"require\",\"exports\",\"module\"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case\"require\":return i;case\"exports\":return e.exports;case\"module\":return e;default:return i(t)}}));return t&&(e.exports=t),e}}},e.define.amd={},require.tlns={},e.initBaseUrls=function(t){for(var n in t)require.tlns[n]=t[n]},e.initSender=function(){var n=e.require(\"ace/lib/event_emitter\").EventEmitter,r=e.require(\"ace/lib/oop\"),i=function(){};return function(){r.implement(this,n),this.callback=function(e,t){postMessage({type:\"call\",id:t,data:e})},this.emit=function(e,t){postMessage({type:\"event\",name:e,data:t})}}.call(i.prototype),new i};var n=e.main=null,r=e.sender=null;e.onmessage=function(t){var i=t.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw new Error(\"Unknown command:\"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),require(\"ace/lib/es5-shim\"),r=e.sender=e.initSender();var s=require(i.module)[i.classname];n=e.main=new s(r)}}}(this),define(\"ace/lib/oop\",[],function(e,t,n){\"use strict\";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),define(\"ace/lib/lang\",[],function(e,t,n){\"use strict\";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split(\"\").reverse().join(\"\")},t.stringRepeat=function(e,t){var n=\"\";while(t>0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\\s\\s*/,i=/\\s\\s*$/;t.stringTrimLeft=function(e){return e.replace(r,\"\")},t.stringTrimRight=function(e){return e.replace(i,\"\")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)e[n]&&typeof e[n]==\"object\"?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function s(e){if(typeof e!=\"object\"||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=s(e[n]);return t}if(Object.prototype.toString.call(e)!==\"[object Object]\")return e;t={};for(var n in e)t[n]=s(e[n]);return t},t.arrayToMap=function(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\")},t.escapeHTML=function(e){return(\"\"+e).replace(/&/g,\"&#38;\").replace(/\"/g,\"&#34;\").replace(/'/g,\"&#39;\").replace(/</g,\"&#60;\")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){n==null&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),define(\"ace/range\",[],function(e,t,n){\"use strict\";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return\"Range: [\"+this.start.row+\"/\"+this.start.column+\"] -> [\"+this.end.row+\"/\"+this.end.column+\"]\"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e==\"object\"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e==\"object\"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?t<this.start.column?-1:t>this.end.column?1:0:e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)var n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)var r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(n==0)return this;if(n==-1)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define(\"ace/apply_delta\",[],function(e,t,n){\"use strict\";function r(e,t){throw console.log(\"Invalid Delta:\",e),\"Invalid Delta: \"+t}function i(e,t){return t.row>=0&&t.row<e.length&&t.column>=0&&t.column<=e[t.row].length}function s(e,t){t.action!=\"insert\"&&t.action!=\"remove\"&&r(t,\"delta.action must be 'insert' or 'remove'\"),t.lines instanceof Array||r(t,\"delta.lines must be an Array\"),(!t.start||!t.end)&&r(t,\"delta.start/end must be an present\");var n=t.start;i(e,t.start)||r(t,\"delta.start must be contained in document\");var s=t.end;t.action==\"remove\"&&!i(e,s)&&r(t,\"delta.end must contained in document for 'remove' actions\");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,\"delta.range must match delta lines\")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||\"\";switch(t.action){case\"insert\":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case\"remove\":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),define(\"ace/lib/event_emitter\",[],function(e,t,n){\"use strict\";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!=\"object\"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length;o++){n[o](t,this);if(t.propagationStopped)break}if(r&&!t.defaultPrevented)return r(t,this)},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(!n)return;n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)},r.once=function(e,t){var n=this;this.on(e,function r(){n.off(e,r),t.apply(null,arguments)});if(!t)return new Promise(function(e){t=e})},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;n||(n=this._defaultHandlers={_disabled_:{}});if(n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var s=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(!n)return;var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);i!=-1&&r.splice(i,1)}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?\"unshift\":\"push\"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(!n)return;var r=n.indexOf(t);r!==-1&&n.splice(r,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=r}),define(\"ace/anchor\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),typeof n==\"undefined\"?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i=t.action==\"insert\",s=(i?1:-1)*(t.end.row-t.start.row),o=(i?1:-1)*(t.end.column-t.start.column),u=t.start,a=i?u:t.end;return e(n,u,r)?{row:n.row,column:n.column}:e(a,n,!r)?{row:n.row+s,column:n.column+(n.row==a.row?o:0)}:{row:u.row,column:u.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(e.start.row==e.end.row&&e.start.row!=this.row)return;if(e.start.row>this.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal(\"change\",{old:i,value:r})},this.detach=function(){this.document.off(\"change\",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on(\"change\",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),define(\"ace/document\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./apply_delta\").applyDelta,s=e(\"./lib/event_emitter\").EventEmitter,o=e(\"./range\").Range,u=e(\"./anchor\").Anchor,a=function(e){this.$lines=[\"\"],e.length===0?this.$lines=[\"\"]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},\"aaa\".split(/a/).length===0?this.$split=function(e){return e.replace(/\\r\\n|\\r/g,\"\\n\").split(\"\\n\")}:this.$split=function(e){return e.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=t?t[1]:\"\\n\",this._signal(\"changeNewLineMode\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\"windows\":return\"\\r\\n\";case\"unix\":return\"\\n\";default:return this.$autoNewLine||\"\\n\"}},this.$autoNewLine=\"\",this.$newLineMode=\"auto\",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal(\"changeNewLineMode\")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==\"\\r\\n\"||e==\"\\r\"||e==\"\\n\"},this.getLine=function(e){return this.$lines[e]||\"\"},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||\"\").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\"),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\"),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\"),this.insertMergedLines(e,[\"\",\"\"])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:\"insert\",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([\"\"]),n=0):(t=[\"\"].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(t.length==1?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:\"insert\",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:\"remove\",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:\"remove\",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=new o(i,s,u,a),l=this.$lines.slice(e,t+1);return this.applyDelta({start:f.start,end:f.end,action:\"remove\",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:\"remove\",lines:[\"\",\"\"]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action==\"insert\";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal(\"change\",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action==\"remove\"&&e.start.row<t&&e.end.row<t||e.action==\"insert\"&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length-t+1,i=e.start.row,s=e.start.column;for(var o=0,u=0;o<r;o=u){u+=t-1;var a=n.slice(o,u);a.push(\"\"),this.applyDelta({start:this.pos(i+o,s),end:this.pos(i+u,s=0),action:e.action,lines:a},!0)}e.lines=n.slice(o),e.start.row=i+o,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action==\"insert\"?\"remove\":\"insert\",lines:e.lines.slice()})},this.indexToPosition=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length;for(var i=t||0,s=n.length;i<s;i++){e-=n[i].length+r;if(e<0)return{row:i,column:e+n[i].length+r}}return{row:s-1,column:e+n[s-1].length+r}},this.positionToIndex=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length);for(var o=t||0;o<s;++o)i+=n[o].length+r;return i+e.column}}).call(a.prototype),t.Document=a}),define(\"ace/worker/mirror\",[],function(e,t,n){\"use strict\";var r=e(\"../range\").Range,i=e(\"../document\").Document,s=e(\"../lib/lang\"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new i(\"\"),n=this.deferredUpdate=s.delayedCall(this.onUpdate.bind(this)),r=this;e.on(\"change\",function(e){var i=e.data;if(i[0].start)t.applyDeltas(i);else for(var s=0;s<i.length;s+=2){if(Array.isArray(i[s+1]))var o={action:\"insert\",start:i[s],lines:i[s+1]};else var o={action:\"remove\",start:i[s],end:i[s+1]};t.applyDelta(o,!0)}if(r.$timeout)return n.schedule(r.$timeout);r.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),define(\"ace/mode/xml/sax\",[],function(e,t,n){function d(){}function v(e,t,n,r,i){function s(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function o(e){var t=e.slice(1,-1);return t in n?n[t]:t.charAt(0)===\"#\"?s(parseInt(t.substr(1).replace(\"x\",\"0x\"))):(i.error(\"entity not found:\"+e),e)}function u(t){var n=e.substring(v,t).replace(/&#?\\w+;/g,o);h&&a(v),r.characters(n,0,t-v),v=t}function a(t,n){while(t>=l&&(n=c.exec(e)))f=n.index,l=f+n[0].length,h.lineNumber++;h.columnNumber=t-f+1}var f=0,l=0,c=/.+(?:\\r\\n?|\\n)|.*$/g,h=r.locator,p=[{currentNSMap:t}],d={},v=0;for(;;){var E=e.indexOf(\"<\",v);if(E<0){if(!e.substr(v).match(/^\\s*$/)){var N=r.document,C=N.createTextNode(e.substr(v));N.appendChild(C),r.currentElement=C}return}E>v&&u(E);switch(e.charAt(E+1)){case\"/\":var k=e.indexOf(\">\",E+3),L=e.substring(E+2,k),A;if(!(p.length>1)){i.fatalError(\"end tag name not found for: \"+L);break}A=p.pop();var O=A.localNSMap;A.tagName!=L&&i.fatalError(\"end tag name: \"+L+\" does not match the current start tagName: \"+A.tagName),r.endElement(A.uri,A.localName,L);if(O)for(var M in O)r.endPrefixMapping(M);k++;break;case\"?\":h&&a(E),k=x(e,E,r);break;case\"!\":h&&a(E),k=S(e,E,r,i);break;default:try{h&&a(E);var _=new T,k=g(e,E,_,o,i),D=_.length;if(D&&h){var P=m(h,{});for(var E=0;E<D;E++){var H=_[E];a(H.offset),H.offset=m(h,{})}m(P,h)}!_.closed&&w(e,k,_.tagName,d)&&(_.closed=!0,n.nbsp||i.warning(\"unclosed xml attribute\")),y(_,r,p),_.uri===\"http://www.w3.org/1999/xhtml\"&&!_.closed?k=b(e,k,_.tagName,o,r):k++}catch(B){i.error(\"element parse error: \"+B),k=-1}}k<0?u(E+1):v=k}}function m(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function g(e,t,n,r,i){var s,d,v=++t,m=o;for(;;){var g=e.charAt(v);switch(g){case\"=\":if(m===u)s=e.slice(t,v),m=f;else{if(m!==a)throw new Error(\"attribute equal must after attrName\");m=f}break;case\"'\":case'\"':if(m===f){t=v+1,v=e.indexOf(g,t);if(!(v>0))throw new Error(\"attribute value no end '\"+g+\"' match\");d=e.slice(t,v).replace(/&#?\\w+;/g,r),n.add(s,d,t-1),m=c}else{if(m!=l)throw new Error('attribute value must after \"=\"');d=e.slice(t,v).replace(/&#?\\w+;/g,r),n.add(s,d,t),i.warning('attribute \"'+s+'\" missed start quot('+g+\")!!\"),t=v+1,m=c}break;case\"/\":switch(m){case o:n.setTagName(e.slice(t,v));case c:case h:case p:m=p,n.closed=!0;case l:case u:case a:break;default:throw new Error(\"attribute invalid close char('/')\")}break;case\"\":i.error(\"unexpected end of input\");case\">\":switch(m){case o:n.setTagName(e.slice(t,v));case c:case h:case p:break;case l:case u:d=e.slice(t,v),d.slice(-1)===\"/\"&&(n.closed=!0,d=d.slice(0,-1));case a:m===a&&(d=s),m==l?(i.warning('attribute \"'+d+'\" missed quot(\")!!'),n.add(s,d.replace(/&#?\\w+;/g,r),t)):(i.warning('attribute \"'+d+'\" missed value!! \"'+d+'\" instead!!'),n.add(d,d,t));break;case f:throw new Error(\"attribute value missed!!\")}return v;case\"\\u0080\":g=\" \";default:if(g<=\" \")switch(m){case o:n.setTagName(e.slice(t,v)),m=h;break;case u:s=e.slice(t,v),m=a;break;case l:var d=e.slice(t,v).replace(/&#?\\w+;/g,r);i.warning('attribute \"'+d+'\" missed quot(\")!!'),n.add(s,d,t);case c:m=h}else switch(m){case a:i.warning('attribute \"'+s+'\" missed value!! \"'+s+'\" instead!!'),n.add(s,s,t),t=v,m=u;break;case c:i.warning('attribute space is required\"'+s+'\"!!');case h:m=u,t=v;break;case f:m=l,t=v;break;case p:throw new Error(\"elements closed character '/' and '>' must be connected to\")}}v++}}function y(e,t,n){var r=e.tagName,i=null,s=n[n.length-1].currentNSMap,o=e.length;while(o--){var u=e[o],a=u.qName,f=u.value,l=a.indexOf(\":\");if(l>0)var c=u.prefix=a.slice(0,l),h=a.slice(l+1),p=c===\"xmlns\"&&h;else h=a,c=null,p=a===\"xmlns\"&&\"\";u.localName=h,p!==!1&&(i==null&&(i={},E(s,s={})),s[p]=i[p]=f,u.uri=\"http://www.w3.org/2000/xmlns/\",t.startPrefixMapping(p,f))}var o=e.length;while(o--){u=e[o];var c=u.prefix;c&&(c===\"xml\"&&(u.uri=\"http://www.w3.org/XML/1998/namespace\"),c!==\"xmlns\"&&(u.uri=s[c]))}var l=r.indexOf(\":\");l>0?(c=e.prefix=r.slice(0,l),h=e.localName=r.slice(l+1)):(c=null,h=e.localName=r);var d=e.uri=s[c||\"\"];t.startElement(d,h,r,e);if(e.closed){t.endElement(d,h,r);if(i)for(c in i)t.endPrefixMapping(c)}else e.currentNSMap=s,e.localNSMap=i,n.push(e)}function b(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var s=e.indexOf(\"</\"+n+\">\",t),o=e.substring(t+1,s);if(/[&<]/.test(o))return/^script$/i.test(n)?(i.characters(o,0,o.length),s):(o=o.replace(/&#?\\w+;/g,r),i.characters(o,0,o.length),s)}return t+1}function w(e,t,n,r){var i=r[n];return i==null&&(i=r[n]=e.lastIndexOf(\"</\"+n+\">\")),i<t}function E(e,t){for(var n in e)t[n]=e[n]}function S(e,t,n,r){var i=e.charAt(t+2);switch(i){case\"-\":if(e.charAt(t+3)===\"-\"){var s=e.indexOf(\"-->\",t+4);return s>t?(n.comment(e,t+4,s-t-4),s+3):(r.error(\"Unclosed comment\"),-1)}return-1;default:if(e.substr(t+3,6)==\"CDATA[\"){var s=e.indexOf(\"]]>\",t+9);return s>t?(n.startCDATA(),n.characters(e,t+9,s-t-9),n.endCDATA(),s+3):(r.error(\"Unclosed CDATA\"),-1)}var o=C(e,t),u=o.length;if(u>1&&/!doctype/i.test(o[0][0])){var a=o[1][0],f=u>3&&/^public$/i.test(o[2][0])&&o[3][0],l=u>4&&o[4][0],c=o[u-1];return n.startDTD(a,f&&f.replace(/^(['\"])(.*?)\\1$/,\"$2\"),l&&l.replace(/^(['\"])(.*?)\\1$/,\"$2\")),n.endDTD(),c.index+c[0].length}}return-1}function x(e,t,n){var r=e.indexOf(\"?>\",t);if(r){var i=e.substring(t,r).match(/^<\\?(\\S*)\\s*([\\s\\S]*?)\\s*$/);if(i){var s=i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function T(e){}function N(e,t){return e.__proto__=t,e}function C(e,t){var n,r=[],i=/'[^']+'|\"[^\"]+\"|[^\\s<>\\/=]+=?|(\\/?\\s*>|<)/g;i.lastIndex=t,i.exec(e);while(n=i.exec(e)){r.push(n);if(n[1])return r}}var r=/[A-Z_a-z\\xC0-\\xD6\\xD8-\\xF6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/,i=new RegExp(\"[\\\\-\\\\.0-9\"+r.source.slice(1,-1)+\"\\u00b7\\u0300-\\u036f\\\\ux203F-\\u2040]\"),s=new RegExp(\"^\"+r.source+i.source+\"*(?::\"+r.source+i.source+\"*)?$\"),o=0,u=1,a=2,f=3,l=4,c=5,h=6,p=7;return d.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),E(t,t={}),v(e,t,n,r,this.errorHandler),r.endDocument()}},T.prototype={setTagName:function(e){if(!s.test(e))throw new Error(\"invalid tagName:\"+e);this.tagName=e},add:function(e,t,n){if(!s.test(e))throw new Error(\"invalid attribute:\"+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getOffset:function(e){return this[e].offset},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},N({},N.prototype)instanceof N||(N=function(e,t){function n(){}n.prototype=t,n=new n;for(t in e)n[t]=e[t];return n}),d}),define(\"ace/mode/xml/dom\",[],function(e,t,n){function r(e,t){for(var n in e)t[n]=e[n]}function i(e,t){var n=function(){},i=e.prototype;if(Object.create){var s=Object.create(t.prototype);i.__proto__=s}i instanceof t||(n.prototype=t.prototype,n=new n,r(i,n),e.prototype=i=n),i.constructor!=e&&(typeof e!=\"function\"&&console.error(\"unknown Class:\"+e),i.constructor=e)}function B(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,w[e]),this.message=w[e],Error.captureStackTrace&&Error.captureStackTrace(this,B);return n.code=e,t&&(this.message=this.message+\": \"+t),n}function j(){}function F(e,t){this._node=e,this._refresh=t,I(this)}function I(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);gt(e,\"length\",n.length),r(n,e),e._inc=t}}function q(){}function R(e,t){var n=e.length;while(n--)if(e[n]===t)return n}function U(e,t,n,r){r?t[R(t,r)]=n:t[t.length++]=n;if(e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&Q(i,e,r),K(i,e,n))}}function z(e,t,n){var r=R(t,n);if(!(r>=0))throw new B(L,new Error);var i=t.length-1;while(r<i)t[r]=t[++r];t.length=i;if(e){var s=e.ownerDocument;s&&(Q(s,e,n),n.ownerElement=null)}}function W(e){this._features={};if(e)for(var t in e)this._features=e[t]}function X(){}function V(e){return e==\"<\"&&\"&lt;\"||e==\">\"&&\"&gt;\"||e==\"&\"&&\"&amp;\"||e=='\"'&&\"&quot;\"||\"&#\"+e.charCodeAt()+\";\"}function $(e,t){if(t(e))return!0;if(e=e.firstChild)do if($(e,t))return!0;while(e=e.nextSibling)}function J(){}function K(e,t,n){e&&e._inc++;var r=n.namespaceURI;r==\"http://www.w3.org/2000/xmlns/\"&&(t._nsMap[n.prefix?n.localName:\"\"]=n.value)}function Q(e,t,n,r){e&&e._inc++;var i=n.namespaceURI;i==\"http://www.w3.org/2000/xmlns/\"&&delete t._nsMap[n.prefix?n.localName:\"\"]}function G(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{var i=t.firstChild,s=0;while(i)r[s++]=i,i=i.nextSibling;r.length=s}}}function Y(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,G(e.ownerDocument,e),t}function Z(e,t,n){var r=t.parentNode;r&&r.removeChild(t);if(t.nodeType===g){var i=t.firstChild;if(i==null)return t;var s=t.lastChild}else i=s=t;var o=n?n.previousSibling:e.lastChild;i.previousSibling=o,s.nextSibling=n,o?o.nextSibling=i:e.firstChild=i,n==null?e.lastChild=s:n.previousSibling=s;do i.parentNode=e;while(i!==s&&(i=i.nextSibling));return G(e.ownerDocument||e,e),t.nodeType==g&&(t.firstChild=t.lastChild=null),t}function et(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t);var r=e.lastChild}var r=e.lastChild;return t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,G(e.ownerDocument,e,t),t}function tt(){this._nsMap={}}function nt(){}function rt(){}function it(){}function st(){}function ot(){}function ut(){}function at(){}function ft(){}function lt(){}function ct(){}function ht(){}function pt(){}function dt(e,t){switch(e.nodeType){case u:var n=e.attributes,r=n.length,i=e.firstChild,o=e.tagName,h=s===e.namespaceURI;t.push(\"<\",o);for(var y=0;y<r;y++)dt(n.item(y),t);if(i||h&&!/^(?:meta|link|img|br|hr|input|button)$/i.test(o)){t.push(\">\");if(h&&/^script$/i.test(o))i&&t.push(i.data);else while(i)dt(i,t),i=i.nextSibling;t.push(\"</\",o,\">\")}else t.push(\"/>\");return;case v:case g:var i=e.firstChild;while(i)dt(i,t),i=i.nextSibling;return;case a:return t.push(\" \",e.name,'=\"',e.value.replace(/[<&\"]/g,V),'\"');case f:return t.push(e.data.replace(/[<&]/g,V));case l:return t.push(\"<![CDATA[\",e.data,\"]]>\");case d:return t.push(\"<!--\",e.data,\"-->\");case m:var b=e.publicId,w=e.systemId;t.push(\"<!DOCTYPE \",e.name);if(b)t.push(' PUBLIC \"',b),w&&w!=\".\"&&t.push('\" \"',w),t.push('\">');else if(w&&w!=\".\")t.push(' SYSTEM \"',w,'\">');else{var E=e.internalSubset;E&&t.push(\" [\",E,\"]\"),t.push(\">\")}return;case p:return t.push(\"<?\",e.target,\" \",e.data,\"?>\");case c:return t.push(\"&\",e.nodeName,\";\");default:t.push(\"??\",e.nodeName)}}function vt(e,t,n){var r;switch(t.nodeType){case u:r=t.cloneNode(!1),r.ownerDocument=e;case g:break;case a:n=!0}r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null;if(n){var i=t.firstChild;while(i)r.appendChild(vt(e,i,n)),i=i.nextSibling}return r}function mt(e,t,n){var r=new t.constructor;for(var i in t){var s=t[i];typeof s!=\"object\"&&s!=r[i]&&(r[i]=s)}t.childNodes&&(r.childNodes=new j),r.ownerDocument=e;switch(r.nodeType){case u:var o=t.attributes,f=r.attributes=new q,l=o.length;f._ownerElement=r;for(var c=0;c<l;c++)r.setAttributeNode(mt(e,o.item(c),!0));break;case a:n=!0}if(n){var h=t.firstChild;while(h)r.appendChild(mt(e,h,n)),h=h.nextSibling}return r}function gt(e,t,n){e[t]=n}function yt(e){switch(e.nodeType){case 1:case 11:var t=[];e=e.firstChild;while(e)e.nodeType!==7&&e.nodeType!==8&&t.push(yt(e)),e=e.nextSibling;return t.join(\"\");default:return e.nodeValue}}var s=\"http://www.w3.org/1999/xhtml\",o={},u=o.ELEMENT_NODE=1,a=o.ATTRIBUTE_NODE=2,f=o.TEXT_NODE=3,l=o.CDATA_SECTION_NODE=4,c=o.ENTITY_REFERENCE_NODE=5,h=o.ENTITY_NODE=6,p=o.PROCESSING_INSTRUCTION_NODE=7,d=o.COMMENT_NODE=8,v=o.DOCUMENT_NODE=9,m=o.DOCUMENT_TYPE_NODE=10,g=o.DOCUMENT_FRAGMENT_NODE=11,y=o.NOTATION_NODE=12,b={},w={},E=b.INDEX_SIZE_ERR=(w[1]=\"Index size error\",1),S=b.DOMSTRING_SIZE_ERR=(w[2]=\"DOMString size error\",2),x=b.HIERARCHY_REQUEST_ERR=(w[3]=\"Hierarchy request error\",3),T=b.WRONG_DOCUMENT_ERR=(w[4]=\"Wrong document\",4),N=b.INVALID_CHARACTER_ERR=(w[5]=\"Invalid character\",5),C=b.NO_DATA_ALLOWED_ERR=(w[6]=\"No data allowed\",6),k=b.NO_MODIFICATION_ALLOWED_ERR=(w[7]=\"No modification allowed\",7),L=b.NOT_FOUND_ERR=(w[8]=\"Not found\",8),A=b.NOT_SUPPORTED_ERR=(w[9]=\"Not supported\",9),O=b.INUSE_ATTRIBUTE_ERR=(w[10]=\"Attribute in use\",10),M=b.INVALID_STATE_ERR=(w[11]=\"Invalid state\",11),_=b.SYNTAX_ERR=(w[12]=\"Syntax error\",12),D=b.INVALID_MODIFICATION_ERR=(w[13]=\"Invalid modification\",13),P=b.NAMESPACE_ERR=(w[14]=\"Invalid namespace\",14),H=b.INVALID_ACCESS_ERR=(w[15]=\"Invalid access\",15);B.prototype=Error.prototype,r(b,B),j.prototype={length:0,item:function(e){return this[e]||null}},F.prototype.item=function(e){return I(this),this[e]},i(F,j),q.prototype={length:0,item:j.prototype.item,getNamedItem:function(e){var t=this.length;while(t--){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new B(O);var n=this.getNamedItem(e.nodeName);return U(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t=e.ownerElement,n;if(t&&t!=this._ownerElement)throw new B(O);return n=this.getNamedItemNS(e.namespaceURI,e.localName),U(this._ownerElement,this,e,n),n},removeNamedItem:function(e){var t=this.getNamedItem(e);return z(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return z(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){var n=this.length;while(n--){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},W.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return n&&(!t||t in n)?!0:!1},createDocument:function(e,t,n){var r=new J;r.implementation=this,r.childNodes=new j,r.doctype=n,n&&r.appendChild(n);if(t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new ut;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},X.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Z(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return Y(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return mt(this.ownerDocument||this,this,e)},normalize:function(){var e=this.firstChild;while(e){var t=e.nextSibling;t&&t.nodeType==f&&e.nodeType==f?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){var t=this;while(t){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==2?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==2?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return t==null}},r(o,X),r(o,X.prototype),J.prototype={nodeName:\"#document\",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==g){var n=e.firstChild;while(n){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return this.documentElement==null&&e.nodeType==1&&(this.documentElement=e),Z(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Y(this,e)},importNode:function(e,t){return vt(this,e,t)},getElementById:function(e){var t=null;return $(this.documentElement,function(n){if(n.nodeType==1&&n.getAttribute(\"id\")==e)return t=n,!0}),t},createElement:function(e){var t=new tt;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new j;var n=t.attributes=new q;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new ct;return e.ownerDocument=this,e.childNodes=new j,e},createTextNode:function(e){var t=new it;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new st;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ot;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new ht;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new nt;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new lt;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new tt,r=t.split(\":\"),i=n.attributes=new q;return n.childNodes=new j,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new nt,r=t.split(\":\");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,r.length==2?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},i(J,X),tt.prototype={nodeType:u,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||\"\"},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=\"\"+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===g?this.insertBefore(e,null):et(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||\"\"},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=\"\"+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new F(this,function(t){var n=[];return $(t,function(r){r!==t&&r.nodeType==u&&(e===\"*\"||r.tagName==e)&&n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new F(this,function(n){var r=[];return $(n,function(i){i!==n&&i.nodeType===u&&(e===\"*\"||i.namespaceURI===e)&&(t===\"*\"||i.localName==t)&&r.push(i)}),r})}},J.prototype.getElementsByTagName=tt.prototype.getElementsByTagName,J.prototype.getElementsByTagNameNS=tt.prototype.getElementsByTagNameNS,i(tt,X),nt.prototype.nodeType=a,i(nt,X),rt.prototype={data:\"\",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(w[3])},deleteData:function(e,t){this.replaceData(e,t,\"\")},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}},i(rt,X),it.prototype={nodeName:\"#text\",nodeType:f,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},i(it,rt),st.prototype={nodeName:\"#comment\",nodeType:d},i(st,rt),ot.prototype={nodeName:\"#cdata-section\",nodeType:l},i(ot,rt),ut.prototype.nodeType=m,i(ut,X),at.prototype.nodeType=y,i(at,X),ft.prototype.nodeType=h,i(ft,X),lt.prototype.nodeType=c,i(lt,X),ct.prototype.nodeName=\"#document-fragment\",ct.prototype.nodeType=g,i(ct,X),ht.prototype.nodeType=p,i(ht,X),pt.prototype.serializeToString=function(e){var t=[];return dt(e,t),t.join(\"\")},X.prototype.toString=function(){return pt.prototype.serializeToString(this)};try{Object.defineProperty&&(Object.defineProperty(F.prototype,\"length\",{get:function(){return I(this),this.$$length}}),Object.defineProperty(X.prototype,\"textContent\",{get:function(){return yt(this)},set:function(e){switch(this.nodeType){case 1:case 11:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=value,this.nodeValue=e}}}),gt=function(e,t,n){e[\"$$\"+t]=n})}catch(bt){}return W}),define(\"ace/mode/xml/dom-parser\",[],function(e,t,n){\"use strict\";function s(e){this.options=e||{locator:{}}}function o(e,t,n){function s(t){var s=e[t];if(!s)if(i)s=e.length==2?function(n){e(t,n)}:e;else{var o=arguments.length;while(--o)if(s=e[arguments[o]])break}r[t]=s&&function(e){s(e+f(n),e,n)}||function(){}}if(!e){if(t instanceof u)return t;e=t}var r={},i=e instanceof Function;return n=n||{},s(\"warning\",\"warn\"),s(\"error\",\"warn\",\"warning\"),s(\"fatalError\",\"warn\",\"warning\",\"error\"),r}function u(){this.cdata=!1}function a(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function f(e){if(e)return\"\\n@\"+(e.systemId||\"\")+\"#[line:\"+e.lineNumber+\",col:\"+e.columnNumber+\"]\"}function l(e,t,n){return typeof e==\"string\"?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+\"\":e}function c(e,t){e.currentElement?e.currentElement.appendChild(t):e.document.appendChild(t)}var r=e(\"./sax\"),i=e(\"./dom\");return s.prototype.parseFromString=function(e,t){var n=this.options,i=new r,s=n.domBuilder||new u,a=n.errorHandler,f=n.locator,l=n.xmlns||{},c={lt:\"<\",gt:\">\",amp:\"&\",quot:'\"',apos:\"'\"};return f&&s.setDocumentLocator(f),i.errorHandler=o(a,s,f),i.domBuilder=n.domBuilder||s,/\\/x?html?$/.test(t)&&(c.nbsp=\"\\u00a0\",c.copy=\"\\u00a9\",l[\"\"]=\"http://www.w3.org/1999/xhtml\"),e?i.parse(e,l,c):i.errorHandler.error(\"invalid document source\"),s.document},u.prototype={startDocument:function(){this.document=(new i).createDocument(null,null,null),this.locator&&(this.document.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.document,s=i.createElementNS(e,n||t),o=r.length;c(this,s),this.currentElement=s,this.locator&&a(this.locator,s);for(var u=0;u<o;u++){var e=r.getURI(u),f=r.getValue(u),n=r.getQName(u),l=i.createAttributeNS(e,n);l.getOffset&&a(l.getOffset(1),l),l.value=l.nodeValue=f,s.setAttributeNode(l)}},endElement:function(e,t,n){var r=this.currentElement,i=r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.document.createProcessingInstruction(e,t);this.locator&&a(this.locator,n),c(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){e=l.apply(this,arguments);if(this.currentElement&&e){if(this.cdata){var r=this.document.createCDATASection(e);this.currentElement.appendChild(r)}else{var r=this.document.createTextNode(e);this.currentElement.appendChild(r)}this.locator&&a(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.document.normalize()},setDocumentLocator:function(e){if(this.locator=e)e.lineNumber=0},comment:function(e,t,n){e=l.apply(this,arguments);var r=this.document.createComment(e);this.locator&&a(this.locator,r),c(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.document.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&a(this.locator,i),c(this,i)}},warning:function(e){console.warn(e,f(this.locator))},error:function(e){console.error(e,f(this.locator))},fatalError:function(e){throw console.error(e,f(this.locator)),e}},\"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl\".replace(/\\w+/g,function(e){u.prototype[e]=function(){return null}}),{DOMParser:s}}),define(\"ace/mode/xml_worker\",[],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"../lib/lang\"),s=e(\"../worker/mirror\").Mirror,o=e(\"./xml/dom-parser\").DOMParser,u=t.Worker=function(e){s.call(this,e),this.setTimeout(400),this.context=null};r.inherits(u,s),function(){this.setOptions=function(e){this.context=e.context},this.onUpdate=function(){var e=this.doc.getValue();if(!e)return;var t=new o,n=[];t.options.errorHandler={fatalError:function(e,t,r){n.push({row:r.lineNumber,column:r.columnNumber,text:t,type:\"error\"})},error:function(e,t,r){n.push({row:r.lineNumber,column:r.columnNumber,text:t,type:\"error\"})},warning:function(e,t,r){n.push({row:r.lineNumber,column:r.columnNumber,text:t,type:\"warning\"})}},t.parseFromString(e),this.sender.emit(\"error\",n)}}.call(u.prototype)}),define(\"ace/lib/es5-shim\",[],function(e,t,n){function r(){}function w(e){try{return Object.defineProperty(e,\"sentinel\",{}),\"sentinel\"in e}catch(t){}}function H(e){return e=+e,e!==e?e=0:e!==0&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}function B(e){var t=typeof e;return e===null||t===\"undefined\"||t===\"boolean\"||t===\"number\"||t===\"string\"}function j(e){var t,n,r;if(B(e))return e;n=e.valueOf;if(typeof n==\"function\"){t=n.call(e);if(B(t))return t}r=e.toString;if(typeof r==\"function\"){t=r.call(e);if(B(t))return t}throw new TypeError}Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!=\"function\")throw new TypeError(\"Function.prototype.bind called on incompatible \"+n);var i=u.call(arguments,1),s=function(){if(this instanceof s){var e=n.apply(this,i.concat(u.call(arguments)));return Object(e)===e?e:this}return n.apply(t,i.concat(u.call(arguments)))};return n.prototype&&(r.prototype=n.prototype,s.prototype=new r,r.prototype=null),s});var i=Function.prototype.call,s=Array.prototype,o=Object.prototype,u=s.slice,a=i.bind(o.toString),f=i.bind(o.hasOwnProperty),l,c,h,p,d;if(d=f(o,\"__defineGetter__\"))l=i.bind(o.__defineGetter__),c=i.bind(o.__defineSetter__),h=i.bind(o.__lookupGetter__),p=i.bind(o.__lookupSetter__);if([1,2].splice(0).length!=2)if(!function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t=[],n;t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,\"XXX\"),n+1==t.length;if(n+1==t.length)return!0}())Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):e==void 0?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=u.call(arguments,2),s=i.length;if(e===n)s&&this.push.apply(this,i);else{var o=Math.min(t,n-e),a=e+o,f=a+s-o,l=n-a,c=n-o;if(f<a)for(var h=0;h<l;++h)this[f+h]=this[a+h];else if(f>a)for(h=l;h--;)this[f+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,i);else{this.length=c+s;for(h=0;h<s;++h)this[e+h]=i[h]}}return r};else{var v=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?v.apply(this,[e===void 0?0:e,t===void 0?this.length-e:t].concat(u.call(arguments,2))):[]}}Array.isArray||(Array.isArray=function(t){return a(t)==\"[object Array]\"});var m=Object(\"a\"),g=m[0]!=\"a\"||!(0 in m);Array.prototype.forEach||(Array.prototype.forEach=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=arguments[1],s=-1,o=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError;while(++s<o)s in r&&t.call(i,r[s],s,n)}),Array.prototype.map||(Array.prototype.map=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=Array(i),o=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var u=0;u<i;u++)u in r&&(s[u]=t.call(o,r[u],u,n));return s}),Array.prototype.filter||(Array.prototype.filter=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=[],o,u=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var f=0;f<i;f++)f in r&&(o=r[f],t.call(u,o,f,n)&&s.push(o));return s}),Array.prototype.every||(Array.prototype.every=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&!t.call(s,r[o],o,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&t.call(s,r[o],o,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduce of empty array with no initial value\");var s=0,o;if(arguments.length>=2)o=arguments[1];else do{if(s in r){o=r[s++];break}if(++s>=i)throw new TypeError(\"reduce of empty array with no initial value\")}while(!0);for(;s<i;s++)s in r&&(o=t.call(void 0,o,r[s],s,n));return o}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduceRight of empty array with no initial value\");var s,o=i-1;if(arguments.length>=2)s=arguments[1];else do{if(o in r){s=r[o--];break}if(--o<0)throw new TypeError(\"reduceRight of empty array with no initial value\")}while(!0);do o in this&&(s=t.call(void 0,s,r[o],o,n));while(o--);return s});if(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)Array.prototype.indexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=0;arguments.length>1&&(i=H(arguments[1])),i=i>=0?i:Math.max(0,r+i);for(;i<r;i++)if(i in n&&n[i]===t)return i;return-1};if(!Array.prototype.lastIndexOf||[0,1].lastIndexOf(0,-3)!=-1)Array.prototype.lastIndexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=r-1;arguments.length>1&&(i=Math.min(i,H(arguments[1]))),i=i>=0?i:r-Math.abs(i);for(;i>=0;i--)if(i in n&&t===n[i])return i;return-1};Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:o)});if(!Object.getOwnPropertyDescriptor){var y=\"Object.getOwnPropertyDescriptor called on a non-object: \";Object.getOwnPropertyDescriptor=function(t,n){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(y+t);if(!f(t,n))return;var r,i,s;r={enumerable:!0,configurable:!0};if(d){var u=t.__proto__;t.__proto__=o;var i=h(t,n),s=p(t,n);t.__proto__=u;if(i||s)return i&&(r.get=i),s&&(r.set=s),r}return r.value=t[n],r}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)});if(!Object.create){var b;Object.prototype.__proto__===null?b=function(){return{__proto__:null}}:b=function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(t,n){var r;if(t===null)r=b();else{if(typeof t!=\"object\")throw new TypeError(\"typeof prototype[\"+typeof t+\"] != 'object'\");var i=function(){};i.prototype=t,r=new i,r.__proto__=t}return n!==void 0&&Object.defineProperties(r,n),r}}if(Object.defineProperty){var E=w({}),S=typeof document==\"undefined\"||w(document.createElement(\"div\"));if(!E||!S)var x=Object.defineProperty}if(!Object.defineProperty||x){var T=\"Property description must be an object: \",N=\"Object.defineProperty called on non-object: \",C=\"getters & setters can not be defined on this javascript engine\";Object.defineProperty=function(t,n,r){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(N+t);if(typeof r!=\"object\"&&typeof r!=\"function\"||r===null)throw new TypeError(T+r);if(x)try{return x.call(Object,t,n,r)}catch(i){}if(f(r,\"value\"))if(d&&(h(t,n)||p(t,n))){var s=t.__proto__;t.__proto__=o,delete t[n],t[n]=r.value,t.__proto__=s}else t[n]=r.value;else{if(!d)throw new TypeError(C);f(r,\"get\")&&l(t,n,r.get),f(r,\"set\")&&c(t,n,r.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,n){for(var r in n)f(n,r)&&Object.defineProperty(t,r,n[r]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(k){Object.freeze=function(t){return function(n){return typeof n==\"function\"?n:t(n)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;var n=\"\";while(f(t,n))n+=\"?\";t[n]=!0;var r=f(t,n);return delete t[n],r});if(!Object.keys){var L=!0,A=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],O=A.length;for(var M in{toString:null})L=!1;Object.keys=function I(e){if(typeof e!=\"object\"&&typeof e!=\"function\"||e===null)throw new TypeError(\"Object.keys called on a non-object\");var I=[];for(var t in e)f(e,t)&&I.push(t);if(L)for(var n=0,r=O;n<r;n++){var i=A[n];f(e,i)&&I.push(i)}return I}}Date.now||(Date.now=function(){return(new Date).getTime()});var _=\"\t\\n\\x0b\\f\\r \\u00a0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029\\ufeff\";if(!String.prototype.trim){_=\"[\"+_+\"]\";var D=new RegExp(\"^\"+_+_+\"*\"),P=new RegExp(_+_+\"*$\");String.prototype.trim=function(){return String(this).replace(D,\"\").replace(P,\"\")}}var F=function(e){if(e==null)throw new TypeError(\"can't convert \"+e+\" to object\");return Object(e)}})"
  },
  {
    "path": "pyp5js/http_local/static/js/ace/worker-xquery.js",
    "content": "\"no use strict\";!function(e){function t(e,t){var n=e,r=\"\";while(n){var i=t[n];if(typeof i==\"string\")return i+r;if(i)return i.location.replace(/\\/*$/,\"/\")+(r||i.main||i.name);if(i===!1)return\"\";var s=n.lastIndexOf(\"/\");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!=\"undefined\"&&e.document)return;if(e.require&&e.define)return;e.console||(e.console=function(){var e=Array.prototype.slice.call(arguments,0);postMessage({type:\"log\",data:e})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(e,t,n,r,i){postMessage({type:\"error\",data:{message:e,data:i.data,file:t,line:n,col:r,stack:i.stack}})},e.normalizeModule=function(t,n){if(n.indexOf(\"!\")!==-1){var r=n.split(\"!\");return e.normalizeModule(t,r[0])+\"!\"+e.normalizeModule(t,r[1])}if(n.charAt(0)==\".\"){var i=t.split(\"/\").slice(0,-1).join(\"/\");n=(i?i+\"/\":\"\")+n;while(n.indexOf(\".\")!==-1&&s!=n){var s=n;n=n.replace(/^\\.\\//,\"\").replace(/\\/\\.\\//,\"/\").replace(/[^\\/]+\\/\\.\\.\\//,\"\")}}return n},e.require=function(r,i){i||(i=r,r=null);if(!i.charAt)throw new Error(\"worker.js require() accepts only (parentId, id) as arguments\");i=e.normalizeModule(r,i);var s=e.require.modules[i];if(s)return s.initialized||(s.initialized=!0,s.exports=s.factory().exports),s.exports;if(!e.require.tlns)return console.log(\"unable to load \"+i);var o=t(i,e.require.tlns);return o.slice(-3)!=\".js\"&&(o+=\".js\"),e.require.id=i,e.require.modules[i]={},importScripts(o),e.require(r,i)},e.require.modules={},e.require.tlns={},e.define=function(t,n,r){arguments.length==2?(r=n,typeof t!=\"string\"&&(n=t,t=e.require.id)):arguments.length==1&&(r=t,n=[],t=e.require.id);if(typeof r!=\"function\"){e.require.modules[t]={exports:r,initialized:!0};return}n.length||(n=[\"require\",\"exports\",\"module\"]);var i=function(n){return e.require(t,n)};e.require.modules[t]={exports:{},factory:function(){var e=this,t=r.apply(this,n.slice(0,r.length).map(function(t){switch(t){case\"require\":return i;case\"exports\":return e.exports;case\"module\":return e;default:return i(t)}}));return t&&(e.exports=t),e}}},e.define.amd={},require.tlns={},e.initBaseUrls=function(t){for(var n in t)require.tlns[n]=t[n]},e.initSender=function(){var n=e.require(\"ace/lib/event_emitter\").EventEmitter,r=e.require(\"ace/lib/oop\"),i=function(){};return function(){r.implement(this,n),this.callback=function(e,t){postMessage({type:\"call\",id:t,data:e})},this.emit=function(e,t){postMessage({type:\"event\",name:e,data:t})}}.call(i.prototype),new i};var n=e.main=null,r=e.sender=null;e.onmessage=function(t){var i=t.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw new Error(\"Unknown command:\"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),require(\"ace/lib/es5-shim\"),r=e.sender=e.initSender();var s=require(i.module)[i.classname];n=e.main=new s(r)}}}(this),define(\"ace/lib/oop\",[],function(e,t,n){\"use strict\";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),define(\"ace/range\",[],function(e,t,n){\"use strict\";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return\"Range: [\"+this.start.row+\"/\"+this.start.column+\"] -> [\"+this.end.row+\"/\"+this.end.column+\"]\"},this.contains=function(e,t){return this.compare(e,t)==0},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),t==1?(t=this.compare(r.row,r.column),t==1?2:t==0?1:0):t==-1?-2:(t=this.compare(r.row,r.column),t==-1?-1:t==1?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return this.comparePoint(e.start)==0&&this.comparePoint(e.end)==0},this.intersects=function(e){var t=this.compareRange(e);return t==-1||t==0||t==1},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){typeof e==\"object\"?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){typeof e==\"object\"?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)||this.isStart(e,t)?!1:!0:!1},this.insideStart=function(e,t){return this.compare(e,t)==0?this.isEnd(e,t)?!1:!0:!1},this.insideEnd=function(e,t){return this.compare(e,t)==0?this.isStart(e,t)?!1:!0:!1},this.compare=function(e,t){return!this.isMultiLine()&&e===this.start.row?t<this.start.column?-1:t>this.end.column?1:0:e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)var n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)var r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(n==0)return this;if(n==-1)var r={row:e,column:t};else var s={row:e,column:t};return i.fromPoints(r||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define(\"ace/apply_delta\",[],function(e,t,n){\"use strict\";function r(e,t){throw console.log(\"Invalid Delta:\",e),\"Invalid Delta: \"+t}function i(e,t){return t.row>=0&&t.row<e.length&&t.column>=0&&t.column<=e[t.row].length}function s(e,t){t.action!=\"insert\"&&t.action!=\"remove\"&&r(t,\"delta.action must be 'insert' or 'remove'\"),t.lines instanceof Array||r(t,\"delta.lines must be an Array\"),(!t.start||!t.end)&&r(t,\"delta.start/end must be an present\");var n=t.start;i(e,t.start)||r(t,\"delta.start must be contained in document\");var s=t.end;t.action==\"remove\"&&!i(e,s)&&r(t,\"delta.end must contained in document for 'remove' actions\");var o=s.row-n.row,u=s.column-(o==0?n.column:0);(o!=t.lines.length-1||t.lines[o].length!=u)&&r(t,\"delta.range must match delta lines\")}t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,s=e[r]||\"\";switch(t.action){case\"insert\":var o=t.lines;if(o.length===1)e[r]=s.substring(0,i)+t.lines[0]+s.substring(i);else{var u=[r,1].concat(t.lines);e.splice.apply(e,u),e[r]=s.substring(0,i)+e[r],e[r+t.lines.length-1]+=s.substring(i)}break;case\"remove\":var a=t.end.column,f=t.end.row;r===f?e[r]=s.substring(0,i)+s.substring(a):e.splice(r,f-r+1,s.substring(0,i)+e[f].substring(a))}}}),define(\"ace/lib/event_emitter\",[],function(e,t,n){\"use strict\";var r={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(!n.length&&!r)return;if(typeof t!=\"object\"||!t)t={};t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length;o++){n[o](t,this);if(t.propagationStopped)break}if(r&&!t.defaultPrevented)return r(t,this)},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(!n)return;n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)},r.once=function(e,t){var n=this;this.on(e,function r(){n.off(e,r),t.apply(null,arguments)});if(!t)return new Promise(function(e){t=e})},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;n||(n=this._defaultHandlers={_disabled_:{}});if(n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var s=i.indexOf(t);s!=-1&&i.splice(s,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(!n)return;var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);i!=-1&&r.splice(i,1)}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),r.indexOf(t)==-1&&r[n?\"unshift\":\"push\"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(!n)return;var r=n.indexOf(t);r!==-1&&n.splice(r,1)},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=r}),define(\"ace/anchor\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./lib/event_emitter\").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),typeof n==\"undefined\"?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i=t.action==\"insert\",s=(i?1:-1)*(t.end.row-t.start.row),o=(i?1:-1)*(t.end.column-t.start.column),u=t.start,a=i?u:t.end;return e(n,u,r)?{row:n.row,column:n.column}:e(a,n,!r)?{row:n.row+s,column:n.column+(n.row==a.row?o:0)}:{row:u.row,column:u.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(e.start.row==e.end.row&&e.start.row!=this.row)return;if(e.start.row>this.row)return;var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)},this.setPosition=function(e,t,n){var r;n?r={row:e,column:t}:r=this.$clipPositionToDocument(e,t);if(this.row==r.row&&this.column==r.column)return;var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal(\"change\",{old:i,value:r})},this.detach=function(){this.document.off(\"change\",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on(\"change\",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)}),define(\"ace/document\",[],function(e,t,n){\"use strict\";var r=e(\"./lib/oop\"),i=e(\"./apply_delta\").applyDelta,s=e(\"./lib/event_emitter\").EventEmitter,o=e(\"./range\").Range,u=e(\"./anchor\").Anchor,a=function(e){this.$lines=[\"\"],e.length===0?this.$lines=[\"\"]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new o(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new u(this,e,t)},\"aaa\".split(/a/).length===0?this.$split=function(e){return e.replace(/\\r\\n|\\r/g,\"\\n\").split(\"\\n\")}:this.$split=function(e){return e.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=t?t[1]:\"\\n\",this._signal(\"changeNewLineMode\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\"windows\":return\"\\r\\n\";case\"unix\":return\"\\n\";default:return this.$autoNewLine||\"\\n\"}},this.$autoNewLine=\"\",this.$newLineMode=\"auto\",this.setNewLineMode=function(e){if(this.$newLineMode===e)return;this.$newLineMode=e,this._signal(\"changeNewLineMode\")},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==\"\\r\\n\"||e==\"\\r\"||e==\"\\n\"},this.getLine=function(e){return this.$lines[e]||\"\"},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||\"\").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\"),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\"),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\"),this.insertMergedLines(e,[\"\",\"\"])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:\"insert\",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:e>=n&&(e=n-1,t=undefined);var r=this.getLine(e);return t==undefined&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([\"\"]),n=0):(t=[\"\"].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(t.length==1?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:\"insert\",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:\"remove\",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:\"remove\",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,s=n?this.getLine(i).length:0,u=r?t+1:t,a=r?0:this.getLine(u).length,f=new o(i,s,u,a),l=this.$lines.slice(e,t+1);return this.applyDelta({start:f.start,end:f.end,action:\"remove\",lines:this.getLinesForRange(f)}),l},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:\"remove\",lines:[\"\",\"\"]})},this.replace=function(e,t){e instanceof o||(e=o.fromPoints(e.start,e.end));if(t.length===0&&e.isEmpty())return e.start;if(t==this.getTextRange(e))return e.end;this.remove(e);var n;return t?n=this.insert(e.start,t):n=e.start,n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n=e.action==\"insert\";if(n?e.lines.length<=1&&!e.lines[0]:!o.comparePoints(e.start,e.end))return;n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal(\"change\",e))},this.$safeApplyDelta=function(e){var t=this.$lines.length;(e.action==\"remove\"&&e.start.row<t&&e.end.row<t||e.action==\"insert\"&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length-t+1,i=e.start.row,s=e.start.column;for(var o=0,u=0;o<r;o=u){u+=t-1;var a=n.slice(o,u);a.push(\"\"),this.applyDelta({start:this.pos(i+o,s),end:this.pos(i+u,s=0),action:e.action,lines:a},!0)}e.lines=n.slice(o),e.start.row=i+o,e.start.column=s,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action==\"insert\"?\"remove\":\"insert\",lines:e.lines.slice()})},this.indexToPosition=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length;for(var i=t||0,s=n.length;i<s;i++){e-=n[i].length+r;if(e<0)return{row:i,column:e+n[i].length+r}}return{row:s-1,column:e+n[s-1].length+r}},this.positionToIndex=function(e,t){var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,s=Math.min(e.row,n.length);for(var o=t||0;o<s;++o)i+=n[o].length+r;return i+e.column}}).call(a.prototype),t.Document=a}),define(\"ace/lib/lang\",[],function(e,t,n){\"use strict\";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split(\"\").reverse().join(\"\")},t.stringRepeat=function(e,t){var n=\"\";while(t>0){t&1&&(n+=e);if(t>>=1)e+=e}return n};var r=/^\\s\\s*/,i=/\\s\\s*$/;t.stringTrimLeft=function(e){return e.replace(r,\"\")},t.stringTrimRight=function(e){return e.replace(i,\"\")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)e[n]&&typeof e[n]==\"object\"?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function s(e){if(typeof e!=\"object\"||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=s(e[n]);return t}if(Object.prototype.toString.call(e)!==\"[object Object]\")return e;t={};for(var n in e)t[n]=s(e[n]);return t},t.arrayToMap=function(e){var t={};for(var n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\")},t.escapeHTML=function(e){return(\"\"+e).replace(/&/g,\"&#38;\").replace(/\"/g,\"&#34;\").replace(/'/g,\"&#39;\").replace(/</g,\"&#60;\")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){n==null&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}}),define(\"ace/worker/mirror\",[],function(e,t,n){\"use strict\";var r=e(\"../range\").Range,i=e(\"../document\").Document,s=e(\"../lib/lang\"),o=t.Mirror=function(e){this.sender=e;var t=this.doc=new i(\"\"),n=this.deferredUpdate=s.delayedCall(this.onUpdate.bind(this)),r=this;e.on(\"change\",function(e){var i=e.data;if(i[0].start)t.applyDeltas(i);else for(var s=0;s<i.length;s+=2){if(Array.isArray(i[s+1]))var o={action:\"insert\",start:i[s],lines:i[s+1]};else var o={action:\"remove\",start:i[s],end:i[s+1]};t.applyDelta(o,!0)}if(r.$timeout)return n.schedule(r.$timeout);r.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(e){this.$timeout=e},this.setValue=function(e){this.doc.setValue(e),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(e){this.sender.callback(this.doc.getValue(),e)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),define(\"ace/mode/xquery/xqlint\",[],function(e,t,n){n.exports=function r(t,n,i){function o(u,a){if(!n[u]){if(!t[u]){var f=typeof e==\"function\"&&e;if(!a&&f)return f(u,!0);if(s)return s(u,!0);var l=new Error(\"Cannot find module '\"+u+\"'\");throw l.code=\"MODULE_NOT_FOUND\",l}var c=n[u]={exports:{}};t[u][0].call(c.exports,function(e){var n=t[u][1][e];return o(n?n:e)},c,c.exports,r,t,n,i)}return n[u].exports}var s=typeof e==\"function\"&&e;for(var u=0;u<i.length;u++)o(i[u]);return o(i[0])}({\"/node_modules/xqlint/lib/compiler/errors.js\":[function(e,t,n){\"use strict\";var r=function(e,t,n,r,i){if(!t)throw new Error(i+\" code is missing.\");if(!n)throw new Error(i+\" message is missing.\");if(!r)throw new Error(i+\" position is missing.\");e.getCode=function(){return t},e.getMessage=function(){return n},e.getPos=function(){return r}},i={},s={};i.prototype=new Error,s.prototype=new Error,n.StaticError=i.prototype.constructor=function(e,t,n){r(this,e,t,n,\"Error\")},n.StaticWarning=s.prototype.constructor=function(e,t,n){r(this,e,t,n,\"Warning\")}},{}],\"/node_modules/xqlint/lib/compiler/handlers.js\":[function(e,t,n){\"use strict\";var r=e(\"../tree_ops\").TreeOps,i=e(\"./errors\"),s=i.StaticWarning;n.ModuleDecl=function(e,t,n){var i=\"\";return{NCName:function(e){i=r.flatten(e)},URILiteral:function(s){s=r.flatten(s),s=s.substring(1,s.length-1),e.apply(function(){t.moduleNamespace=s,t.addNamespace(s,i,n.pos,\"moduleDecl\")})}}},n.ModuleImport=function(e,t,n){var i=\"\",s;return{NCName:function(e){i=r.flatten(e)},URILiteral:function(o){if(s!==undefined)return;o=r.flatten(o),o=o.substring(1,o.length-1),s=o,e.apply(function(){t.importModule(o,i,n.pos)})}}},n.SchemaImport=function(e,t,n){var i=\"\",s;return{SchemaPrefix:function(t){var n=function(){this.NCName=function(e){i=r.flatten(e)}};e.visitChildren(t,new n)},URILiteral:function(o){if(s!==undefined)return;o=r.flatten(o),o=o.substring(1,o.length-1),s=o,e.apply(function(){t.addNamespace(o,i,n.pos,\"schema\")})}}},n.DefaultNamespaceDecl=function(e,t,n){var i=!1,o=\"\";return{TOKEN:function(e){i=i?!0:e.value===\"function\"},URILiteral:function(u){o=r.flatten(u),o=o.substring(1,o.length-1),i?t.defaultFunctionNamespace=o:(e.apply(function(){throw new s(\"W06\",\"Avoid default element namespace declarations.\",n.pos)}),t.defaultElementNamespace=o)}}},n.NamespaceDecl=function(e,t,n){var i=\"\";return{NCName:function(e){i=r.flatten(e)},URILiteral:function(s){s=r.flatten(s),s=s.substring(1,s.length-1),e.apply(function(){t.addNamespace(s,i,n.pos,\"declare\")})}}},n.VarHandler=function(e,t,n){var i=function(i){var s=r.flatten(i);e.apply(function(){var e=t.resolveQName(s,i.pos);t.addVariable(e,n.name,i.pos)})};return{ExprSingle:function(){return!0},VarValue:function(){return!0},VarDefaultValue:function(){return!0},VarName:i,EQName:i}},n.VarRefHandler=function(e,t,n){return{VarName:function(i){var s=r.flatten(i);e.apply(function(){var e=t.resolveQName(s,n.pos);e.uri!==\"\"&&(t.root.namespaces[e.uri].used=!0),t.addVarRef(e,i.pos)})}}}},{\"../tree_ops\":\"/node_modules/xqlint/lib/tree_ops.js\",\"./errors\":\"/node_modules/xqlint/lib/compiler/errors.js\"}],\"/node_modules/xqlint/lib/compiler/schema_built-in_types.js\":[function(e,t,n){\"use strict\";n.getSchemaBuiltinTypes=function(){var e=\"http://www.w3.org/2001/XMLSchema\",t={};return t[e]={variables:{},functions:{}},t[e].functions[e+\"#string#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"string\",arity:1,eqname:{uri:e,name:\"string\"}},t[e].functions[e+\"#boolean#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"boolean\",arity:1,eqname:{uri:e,name:\"boolean\"}},t[e].functions[e+\"#decimal#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"decimal\",arity:1,eqname:{uri:e,name:\"decimal\"}},t[e].functions[e+\"#float#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"float\",arity:1,eqname:{uri:e,name:\"float\"}},t[e].functions[e+\"#double#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"double\",arity:1,eqname:{uri:e,name:\"double\"}},t[e].functions[e+\"#duration#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"duration\",arity:1,eqname:{uri:e,name:\"duration\"}},t[e].functions[e+\"#dateTime#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"dateTime\",arity:1,eqname:{uri:e,name:\"dateTime\"}},t[e].functions[e+\"#time#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"time\",arity:1,eqname:{uri:e,name:\"time\"}},t[e].functions[e+\"#date#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"date\",arity:1,eqname:{uri:e,name:\"date\"}},t[e].functions[e+\"#gYearMonth#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"gYearMonth\",arity:1,eqname:{uri:e,name:\"gYearMonth\"}},t[e].functions[e+\"#gYear#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"gYear\",arity:1,eqname:{uri:e,name:\"gYear\"}},t[e].functions[e+\"#gMonthDay#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"gMonthDay\",arity:1,eqname:{uri:e,name:\"gMonthDay\"}},t[e].functions[e+\"#gDay#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"gDay\",arity:1,eqname:{uri:e,name:\"gDay\"}},t[e].functions[e+\"#gMonth#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"gMonth\",arity:1,eqname:{uri:e,name:\"gMonth\"}},t[e].functions[e+\"#hexBinary#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"hexBinary\",arity:1,eqname:{uri:e,name:\"hexBinary\"}},t[e].functions[e+\"#base64Binary#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"base64Binary\",arity:1,eqname:{uri:e,name:\"base64Binary\"}},t[e].functions[e+\"#anyURI#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"anyURI\",arity:1,eqname:{uri:e,name:\"anyURI\"}},t[e].functions[e+\"#QName#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"QName\",arity:1,eqname:{uri:e,name:\"QName\"}},t[e].functions[e+\"#normalizedString#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"normalizedString\",arity:1,eqname:{uri:e,name:\"normalizedString\"}},t[e].functions[e+\"#token#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"token\",arity:1,eqname:{uri:e,name:\"token\"}},t[e].functions[e+\"#language#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"language\",arity:1,eqname:{uri:e,name:\"language\"}},t[e].functions[e+\"#NMTOKEN#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"NMTOKEN\",arity:1,eqname:{uri:e,name:\"NMTOKEN\"}},t[e].functions[e+\"#Name#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"Name\",arity:1,eqname:{uri:e,name:\"Name\"}},t[e].functions[e+\"#NCName#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"NCName\",arity:1,eqname:{uri:e,name:\"NCName\"}},t[e].functions[e+\"#ID#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"ID\",arity:1,eqname:{uri:e,name:\"ID\"}},t[e].functions[e+\"#IDREF#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"IDREF\",arity:1,eqname:{uri:e,name:\"IDREF\"}},t[e].functions[e+\"#ENTITY#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"ENTITY\",arity:1,eqname:{uri:e,name:\"ENTITY\"}},t[e].functions[e+\"#integer#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"integer\",arity:1,eqname:{uri:e,name:\"integer\"}},t[e].functions[e+\"#nonPositiveInteger#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"nonPositiveInteger\",arity:1,eqname:{uri:e,name:\"nonPositiveInteger\"}},t[e].functions[e+\"#negativeInteger#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"negativeInteger\",arity:1,eqname:{uri:e,name:\"negativeInteger\"}},t[e].functions[e+\"#long#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"long\",arity:1,eqname:{uri:e,name:\"long\"}},t[e].functions[e+\"#int#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"int\",arity:1,eqname:{uri:e,name:\"int\"}},t[e].functions[e+\"#short#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"short\",arity:1,eqname:{uri:e,name:\"short\"}},t[e].functions[e+\"#byte#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"byte\",arity:1,eqname:{uri:e,name:\"byte\"}},t[e].functions[e+\"#nonNegativeInteger#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"nonNegativeInteger\",arity:1,eqname:{uri:e,name:\"nonNegativeInteger\"}},t[e].functions[e+\"#unsignedLong#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"unsignedLong\",arity:1,eqname:{uri:e,name:\"unsignedLong\"}},t[e].functions[e+\"#unsignedInt#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"unsignedInt\",arity:1,eqname:{uri:e,name:\"unsignedInt\"}},t[e].functions[e+\"#unsignedShort#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"unsignedShort\",arity:1,eqname:{uri:e,name:\"unsignedShort\"}},t[e].functions[e+\"#unsignedByte#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"unsignedByte\",arity:1,eqname:{uri:e,name:\"unsignedByte\"}},t[e].functions[e+\"#positiveInteger#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"positiveInteger\",arity:1,eqname:{uri:e,name:\"positiveInteger\"}},t[e].functions[e+\"#yearMonthDuration#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"yearMonthDuration\",arity:1,eqname:{uri:e,name:\"yearMonthDuration\"}},t[e].functions[e+\"#dayTimeDuration#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"dayTimeDuration\",arity:1,eqname:{uri:e,name:\"dayTimeDuration\"}},t[e].functions[e+\"#untypedAtomic#1\"]={params:[\"$arg as xs:anyAtomicType?\"],annotations:[],name:\"untypedAtomic\",arity:1,eqname:{uri:e,name:\"untypedAtomic\"}},t}},{}],\"/node_modules/xqlint/lib/compiler/static_context.js\":[function(e,t,n){n.StaticContext=function(t,n){\"use strict\";var r=e(\"../tree_ops\").TreeOps,i=e(\"./errors\"),s=i.StaticError,o=i.StaticWarning,u=e(\"./schema_built-in_types\").getSchemaBuiltinTypes,a={sl:0,sc:0,el:0,ec:0},f={},l=function(e){return e.uri+\"#\"+e.name},c=function(e,t){return l(e)+\"#\"+t};t||(f[\"http://jsoniq.org/functions\"]={prefixes:[\"jn\"],pos:a,type:\"module\",override:!0},f[\"http://www.28msec.com/modules/collections\"]={prefixes:[\"db\"],pos:a,type:\"module\",override:!0},f[\"http://www.28msec.com/modules/store\"]={prefixes:[\"store\"],pos:a,type:\"module\",override:!0},f[\"http://jsoniq.org/function-library\"]={prefixes:[\"libjn\"],pos:a,type:\"module\",override:!0},f[\"http://www.w3.org/2005/xpath-functions\"]={prefixes:[\"fn\"],pos:a,type:\"module\",override:!0},f[\"http://www.w3.org/2005/xquery-local-functions\"]={prefixes:[\"local\"],pos:a,type:\"declare\",override:!0},f[\"http://www.w3.org/2001/XMLSchema-instance\"]={prefixes:[\"xsi\"],pos:a,type:\"declare\"},f[\"http://www.w3.org/2001/XMLSchema\"]={prefixes:[\"xs\"],pos:a,type:\"declare\"},f[\"http://www.w3.org/XML/1998/namespace\"]={prefixes:[\"xml\"],pos:a,type:\"declare\"},f[\"http://zorba.io/annotations\"]={prefixes:[\"an\"],pos:a,type:\"declare\",override:!0},f[\"http://www.28msec.com/annotations/rest\"]={prefixes:[\"rest\"],pos:a,type:\"declare\",override:!0},f[\"http://www.w3.org/2005/xqt-errors\"]={prefixes:[\"err\"],pos:a,type:\"declare\",override:!0},f[\"http://zorba.io/errors\"]={prefixes:[\"zerr\"],pos:a,type:\"declare\",override:!0});var h={parent:t,children:[],pos:n,setModuleResolver:function(e){return this.root.moduleResolver=e,this},setModules:function(e){if(this!==this.root)throw new Error(\"setModules() not invoked from the root static context.\");this.moduleResolver=function(t){return e[t]};var t=this;return Object.keys(this.namespaces).forEach(function(e){var n=t.namespaces[e];if(n.type===\"module\"){var i=t.moduleResolver(e);i.variables&&r.concat(t.variables,i.variables),i.functions&&r.concat(t.functions,i.functions)}}),this},setModulesFromXQDoc:function(e){if(this!==this.root)throw new Error(\"setModulesFromXQDoc() not invoked from the root static context.\");var t={};Object.keys(e).forEach(function(n){var r=e[n],i={},s={};r.functions.forEach(function(e){s[n+\"#\"+e.name+\"#\"+e.arity]={params:[],annotations:[],name:e.name,arity:e.arity,eqname:{uri:n,name:e.name}},e.parameters.forEach(function(t){s[n+\"#\"+e.name+\"#\"+e.arity].params.push(\"$\"+t.name)})}),r.variables.forEach(function(e){var t=e.name.substring(e.name.indexOf(\":\")+1);i[n+\"#\"+t]={type:\"VarDecl\",annotations:[],eqname:{uri:n,name:t}}}),t[n]={variables:i,functions:s}}),this.root.moduleResolver=function(e){return t[e]};var n=this;return Object.keys(this.namespaces).forEach(function(e){var t=n.namespaces[e];if(t.type===\"module\"){var i=n.moduleResolver(e);i.variables&&r.concat(n.variables,i.variables),i.functions&&r.concat(n.functions,i.functions)}}),this},moduleNamespace:\"\",description:\"\",defaultFunctionNamespace:\"http://www.w3.org/2005/xpath-functions\",defaultFunctionNamespaces:[\"http://www.28msec.com/modules/collections\",\"http://www.28msec.com/modules/store\",\"http://jsoniq.org/functions\",\"http://jsoniq.org/function-library\",\"http://www.w3.org/2001/XMLSchema\"],defaultElementNamespace:\"\",namespaces:f,availableModuleNamespaces:[],importModule:function(e,t,n){if(this!==this.root)throw new Error(\"Function not invoked from the root static context.\");this.addNamespace(e,t,n,\"module\");if(this.moduleResolver)try{var i=this.moduleResolver(e,[]);i.variables&&r.concat(this.variables,i.variables),i.functions&&r.concat(this.functions,i.functions)}catch(o){throw new s(\"XQST0059\",'module \"'+e+'\" not found',n)}return this},getAvailableModuleNamespaces:function(){return this.root.availableModuleNamespaces},getPrefixesByNamespace:function(e){return this.root.namespaces[e].prefixes},addNamespace:function(e,t,n,r){if(t===\"\"&&r===\"module\")throw new o(\"W01\",\"Avoid this type of import. Use import module namespace instead\",n);if(e===\"\")throw new s(\"XQST0088\",\"empty target namespace in module import or module declaration\",n);var i=this.getNamespace(e);if(i&&i.type===r&&r!==\"declare\"&&!i.override)throw new s(\"XQST0047\",'\"'+e+'\": duplicate target namespace',n);i=this.getNamespaceByPrefix(t);if(i&&!i.override)throw new s(\"XQST0033\",'\"'+t+'\": namespace prefix already bound to \"'+i.uri+'\"',n);i=this.namespaces[e];var u=[t];i&&(u=u.concat(this.namespaces[e].prefixes)),this.namespaces[e]={prefixes:u,pos:n,type:r};if(i)throw new o(\"W02\",'\"'+e+'\" already bound to the \"'+i.prefixes.join(\", \")+'\" prefix',n)},getNamespaces:function(){return this.root.namespaces},getNamespace:function(e){var t=this;while(t){var n=t.namespaces[e];if(n)return n;t=t.parent}},getNamespaceByPrefix:function(e){var t=[],n=function(n){var i=r.namespaces[n];i.prefixes.indexOf(e)!==-1&&(i.uri=n,t.push(i))},r=this;while(r)Object.keys(r.namespaces).forEach(n),r=r.parent;var i;return t.forEach(function(e){e.type===\"moduleDecl\"&&(i=e)}),i?i:t[0]},resolveQName:function(e,t){var n={uri:\"\",prefix:\"\",name:\"\"},r;if(e.substring(0,2)===\"Q{\")r=e.indexOf(\"}\"),n.uri=e.substring(2,r),n.name=e.substring(r+1);else{r=e.indexOf(\":\"),n.prefix=e.substring(0,r);var i=this.getNamespaceByPrefix(n.prefix);if(!i&&n.prefix!==\"\"&&[\"fn\",\"jn\"].indexOf(n.prefix)===-1)throw new s(\"XPST0081\",'\"'+n.prefix+'\": can not expand prefix of lexical QName to namespace URI',t);i&&(n.uri=i.uri),n.name=e.substring(r+1)}return n},variables:{},varRefs:{},functionCalls:{},addVariable:function(e,t,n){if(t===\"VarDecl\"&&this.moduleNamespace!==\"\"&&this.moduleNamespace!==e.uri&&e.uri!==\"\")throw new s(\"XQST0048\",'\"'+e.prefix+\":\"+e.name+'\": Qname not library namespace',n);var r=l(e);if(t===\"VarDecl\"&&this.variables[r])throw new s(\"XQST0049\",'\"'+e.name+'\": duplicate variable declaration',n);return this.variables[r]={type:t,pos:n,qname:e,annotations:{}},this},getVariables:function(){var e={},t=this,n=function(n){e[n]||(e[n]=t.variables[n])};while(t)Object.keys(t.variables).forEach(n),t=t.parent;return e},getVariable:function(e){var t=l(e),n=this;while(n){if(n.variables[t])return n.variables[t];n=n.parent}},addVarRef:function(e,t){var n=this.getVariable(e);if(!n&&(e.uri===\"\"||this.root.moduleResolver))throw new s(\"XPST0008\",'\"'+e.name+'\": undeclared variable',t);var r=l(e);this.varRefs[r]=!0},addFunctionCall:function(e,t,n){var r=this.getFunction(e,t);if(!(!!r||e.uri!==\"http://www.w3.org/2005/xquery-local-functions\"&&!this.root.moduleResolver||(e.uri===\"http://www.w3.org/2005/xpath-functions\"||e.uri===\"\"&&this.root.defaultFunctionNamespaces.concat(this.root.defaultFunctionNamespace).indexOf(\"http://www.w3.org/2005/xpath-functions\")!==-1)&&e.name===\"concat\")&&!r)throw new s(\"XPST0008\",'\"'+e.name+\"#\"+t+'\": undeclared function',n);var i=c(e,t);this.functionCalls[i]=!0},functions:u()[\"http://www.w3.org/2001/XMLSchema\"].functions,getFunctions:function(){return this.root.functions},getFunction:function(e,t){var n=c(e,t),r;if(e.uri===\"\"){var i=this;return this.root.defaultFunctionNamespaces.concat([this.root.defaultFunctionNamespace]).forEach(function(n){if(!!r)return!1;r=i.getFunction({uri:n,prefix:e.prefix,name:e.name},t)}),r}return this.root.functions[n]},addFunction:function(e,t,n){if(this!==this.root)throw new Error(\"addFunction() not invoked from the root static context.\");var r=n.length;if(this.moduleNamespace===\"\"||this.moduleNamespace===e.uri||e.uri===\"\"&&this.defaultFunctionNamespace===this.moduleNamespace){var i=c(e,r);if(this.functions[i])throw new s(\"XQST0034\",'\"'+e.name+'\": duplicate function declaration',t);return this.functions[i]={pos:t,params:n},this}throw new s(\"XQST0048\",'\"'+e.prefix+\":\"+e.name+'\": Qname not library namespace',t)}};return h.root=t?t.root:h,h}},{\"../tree_ops\":\"/node_modules/xqlint/lib/tree_ops.js\",\"./errors\":\"/node_modules/xqlint/lib/compiler/errors.js\",\"./schema_built-in_types\":\"/node_modules/xqlint/lib/compiler/schema_built-in_types.js\"}],\"/node_modules/xqlint/lib/compiler/translator.js\":[function(e,t,n){n.Translator=function(t,n){\"use strict\";var r=e(\"./errors\"),i=r.StaticError,s=r.StaticWarning,o=e(\"../tree_ops\").TreeOps,u=e(\"./static_context\").StaticContext,a=e(\"./handlers\"),f=function(e,t){var n=[];return t.length===0?e:(e.children.forEach(function(e){e.name===t[0]&&t.length>1?n=f(e,t.slice(1)):e.name===t[0]&&n.push(e)}),n)},l=[];this.apply=function(e){try{e()}catch(t){if(t instanceof i)c(t);else{if(!(t instanceof s))throw t;h(t.getCode(),t.getMessage(),t.getPos())}}};var c=function(e){l.push({pos:e.getPos(),type:\"error\",level:\"error\",message:\"[\"+e.getCode()+\"] \"+e.getMessage()})},h=function(e,t,n){l.push({pos:n,type:\"warning\",level:\"warning\",message:\"[\"+e+\"] \"+t})};this.getMarkers=function(){return l};var p=this;t.pos=n.pos;var d=t,v=function(e){d=new u(d,e),d.parent.children.push(d)},m=function(e){e!==undefined&&(d.pos.el=e.el,d.pos.ec=e.ec),Object.keys(d.varRefs).forEach(function(e){d.variables[e]||(d.parent.varRefs[e]=!0)}),Object.keys(d.variables).forEach(function(e){!d.varRefs[e]&&d.variables[e].type!==\"GroupingVariable\"&&d.variables[e].type!==\"CatchVar\"&&h(\"W03\",'Unused variable \"$'+d.variables[e].qname.name+'\"',d.variables[e].pos)}),d=d.parent};this.visitOnly=function(e,t){e.children.forEach(function(e){t.indexOf(e.name)!==-1&&p.visit(e)})},this.getFirstChild=function(e,t){var n;return e.children.forEach(function(e){e.name===t&&n===undefined&&(n=e)}),n},this.XQuery=function(e){t.description=e.comment?e.comment.description:undefined},this.ModuleDecl=function(e){return this.visitChildren(e,a.ModuleDecl(p,t,e)),!0},this.Prolog=function(e){return this.visitOnly(e,[\"DefaultNamespaceDecl\",\"Setter\",\"NamespaceDecl\",\"Import\"]),n.index.forEach(function(e){if(e.name===\"VarDecl\")e.children.forEach(function(n){n.name===\"VarName\"&&p.apply(function(){var r=o.flatten(n),i=t.resolveQName(r,n.pos);t.addVariable(i,e.name,n.pos)})});else if(e.name===\"FunctionDecl\"){var n,r,i=[];e.children.forEach(function(e){e.name===\"EQName\"?(n=e,r=e.pos):e.name===\"ParamList\"&&e.children.forEach(function(e){e.name===\"Param\"&&i.push(o.flatten(e))})}),p.apply(function(){n=o.flatten(n),n=t.resolveQName(n,r),t.addFunction(n,r,i)})}}),this.visitOnly(e,[\"ContextItemDecl\",\"AnnotatedDecl\",\"OptionDecl\"]),!0},this.ModuleImport=function(e){return this.visitChildren(e,a.ModuleImport(p,t,e)),!0},this.SchemaImport=function(e){return this.visitChildren(e,a.SchemaImport(p,t,e)),!0},this.DefaultNamespaceDecl=function(e){return this.visitChildren(e,a.DefaultNamespaceDecl(p,t,e)),!0},this.NamespaceDecl=function(e){return this.visitChildren(e,a.NamespaceDecl(p,t,e)),!0};var g={};this.AnnotatedDecl=function(e){return g={},this.visitChildren(e,a.NamespaceDecl(p,t,e)),!0},this.CompatibilityAnnotation=function(){return g[\"http://www.w3.org/2012/xquery#updating\"]=[],!0},this.Annotation=function(e){return this.visitChildren(e,{EQName:function(e){var t=o.flatten(e);p.apply(function(){var n=d.resolveQName(t,e.pos);g[n.uri+\"#\"+n.name]=[]})}}),!0},this.VarDecl=function(e){try{var n=p.getFirstChild(e,\"VarName\"),r=o.flatten(n),i=d.resolveQName(r,n.pos),s=t.getVariable(i);if(s){s.annotations=g,s.description=e.getParent.comment?e.getParent.comment.description:undefined,s.type=o.flatten(f(e,[\"TypeDeclaration\"])[0]).substring(2).trim();var u=s.type.substring(s.type.length-1);u===\"?\"?(s.occurrence=0,s.type=s.type.substring(0,s.type.length-1)):u===\"*\"?(s.occurrence=-1,s.type=s.type.substring(0,s.type.length-1)):u===\"+\"?(s.occurrence=2,s.type=s.type.substring(0,s.type.length-1)):s.occurrence=1}}catch(a){}return this.visitOnly(e,[\"ExprSingle\",\"VarValue\",\"VarDefaultValue\"]),!0},this.FunctionDecl=function(e){var t=g[\"http://www.w3.org/2012/xquery#updating\"]!==undefined,n=f(e,[\"ReturnType\"])[0],r=f(e,[\"EQName\"])[0];!n&&!t&&h(\"W05\",\"Untyped return value\",r.pos);var i=!1;return e.children.forEach(function(e){if(e.name===\"TOKEN\"&&e.value===\"external\")return i=!0,!1}),i||(v(e.pos),this.visitChildren(e),m()),!0},this.VarRef=function(e){return this.visitChildren(e,a.VarRefHandler(p,d,e)),!0},this.Param=function(e){var t=f(e,[\"TypeDeclaration\"])[0];return t||h(\"W05\",\"Untyped function parameter\",e.pos),this.visitChildren(e,a.VarHandler(p,d,e)),!0},this.InlineFunctionExpr=function(e){return v(e.pos),this.visitChildren(e),m(),!0};var y=[],b=function(e){v(e.pos),y.push(0),p.visitChildren(e);for(var t=1;t<=y[y.length-1];t++)m(e.pos);y.pop(),m()};this.StatementsAndOptionalExpr=function(e){return b(e),!0},this.StatementsAndExpr=function(e){return b(e),!0},this.BlockStatement=function(e){return b(e),!0},this.VarDeclStatement=function(e){v(e.pos),y[y.length-1]++,this.visitChildren(e,a.VarHandler(p,d,e))};var w=[];this.FLWORExpr=this.FLWORStatement=function(e){v(e.pos),w.push(0),this.visitChildren(e);for(var t=1;t<=w[w.length-1];t++)m(e.pos);return w.pop(),m(),!0},this.ForBinding=function(e){return this.visitOnly(e,[\"ExprSingle\",\"VarValue\",\"VarDefaultValue\"]),v(e.pos),w[w.length-1]++,this.visitChildren(e,a.VarHandler(p,d,e)),!0},this.LetBinding=function(e){return this.visitOnly(e,[\"ExprSingle\",\"VarValue\",\"VarDefaultValue\"]),v(e.pos),w[w.length-1]++,this.visitChildren(e,a.VarHandler(p,d,e)),!0},this.GroupingSpec=function(e){var t=!1;e.children.forEach(function(e){if(e.value===\":=\")return t=!0,!1});if(t){var n=e.children[0];return this.visitOnly(e,[\"ExprSingle\",\"VarValue\",\"VarDefaultValue\"]),v(e.pos),w[w.length-1]++,this.visitChildren(n,a.VarHandler(p,d,n)),!0}},this.TumblingWindowClause=function(e){return this.visitOnly(e,[\"ExprSingle\"]),v(e.pos),w[w.length-1]++,this.visitChildren(e,a.VarHandler(p,d,e)),this.visitOnly(e,[\"WindowStartCondition\",\"WindowEndCondition\"]),!0},this.WindowVars=function(e){return v(e.pos),w[w.length-1]++,this.visitChildren(e,a.VarHandler(p,d,e)),!0},this.SlidingWindowClause=function(e){return this.visitOnly(e,[\"ExprSingle\",\"VarValue\",\"VarDefaultValue\"]),v(e.pos),w[w.length-1]++,this.visitChildren(e,a.VarHandler(p,d,e)),this.visitOnly(e,[\"WindowStartCondition\",\"WindowEndCondition\"]),!0},this.PositionalVar=function(e){return this.visitChildren(e,a.VarHandler(p,d,e)),!0},this.PositionalVar=function(e){return this.visitChildren(e,a.VarHandler(p,d,e)),!0},this.CurrentItem=function(e){return this.visitChildren(e,a.VarHandler(p,d,e)),!0},this.PreviousItem=function(e){return this.visitChildren(e,a.VarHandler(p,d,e)),!0},this.NextItem=function(e){return this.visitChildren(e,a.VarHandler(p,d,e)),!0},this.CountClause=function(e){return v(e.pos),w[w.length-1]++,this.visitChildren(e,a.VarHandler(p,d,e)),!0},this.CaseClause=function(e){return v(e.pos),this.visitChildren(e,a.VarHandler(p,d,e)),this.visitOnly(e,[\"ExprSingle\"]),m(),!0};var E=[];this.TransformExpr=function(e){v(e.pos),E.push(0),this.visitChildren(e);for(var t=1;t<=E[E.length-1];t++)m(e.pos);return E.pop(),m(),!0},this.TransformSpec=function(e){return this.visitOnly(e,[\"ExprSingle\"]),v(e.pos),E[E.length-1]+=1,this.visitChildren(e,a.VarHandler(p,d,e)),!0};var S=[];this.QuantifiedExpr=function(e){v(e.pos),S.push(0),this.visitChildren(e);for(var t=1;t<=S[S.length-1];t++)m(e.pos);return S.pop(),m(),!0},this.QuantifiedVarDecl=function(e){return this.visitOnly(e,[\"ExprSingle\"]),v(e.pos),S[S.length-1]++,this.visitChildren(e,a.VarHandler(p,d,e)),!0},this.FunctionCall=function(e){this.visitOnly(e,[\"ArgumentList\"]);var t=p.getFirstChild(e,\"EQName\"),n=o.flatten(t),r=f(e,[\"ArgumentList\",\"Argument\"]).length;return p.apply(function(){var i=d.resolveQName(n,e.pos);try{i.uri!==\"\"&&(d.root.namespaces[i.uri].used=!0)}catch(s){}d.addFunctionCall(i,r,t.pos)}),!0},this.TryClause=function(e){return v(e.pos),this.visitChildren(e),m(),!0},this.CatchClause=function(e){v(e.pos);var t=\"err\",n=\"http://www.w3.org/2005/xqt-errors\",r={sl:0,sc:0,el:0,ec:0};return d.addVariable({prefix:t,uri:n,name:\"code\"},\"CatchVar\",r),d.addVariable({prefix:t,uri:n,name:\"description\"},\"CatchVar\",r),d.addVariable({prefix:t,uri:n,name:\"value\"},\"CatchVar\",r),d.addVariable({prefix:t,uri:n,name:\"module\"},\"CatchVar\",r),d.addVariable({prefix:t,uri:n,name:\"line-number\"},\"CatchVar\",r),d.addVariable({prefix:t,uri:n,name:\"column-number\"},\"CatchVar\",r),d.addVariable({prefix:t,uri:n,name:\"additional\"},\"CatchVar\",r),this.visitChildren(e),m(),!0},this.Pragma=function(e){var n=o.flatten(f(e,[\"EQName\"])[0]);n=t.resolveQName(n,e);var r=o.flatten(f(e,[\"PragmaContents\"])[0]);if(n.name===\"xqlint\"&&n.uri===\"http://xqlint.io\"){v(e.pos);var i=r.match(/[a-zA-Z]+\\(([^)]+)\\)/g);return i.forEach(function(t){var n=t.substring(0,t.indexOf(\"(\")),r=t.substring(0,t.length-1).substring(t.indexOf(\"(\")+1).split(\",\").map(function(e){return e.trim()});n===\"varrefs\"&&r.forEach(function(t){var n=d.resolveQName(t.substring(1),e.pos);n.uri!==\"\"&&(d.root.namespaces[n.uri].used=!0),d.addVarRef(n,e.pos)})}),this.visitChildren(e),m(),!0}},this.visit=function(e){var t=e.name,n=!1;typeof this[t]==\"function\"&&(n=this[t](e)===!0),n||this.visitChildren(e)},this.visitChildren=function(e,t){for(var n=0;n<e.children.length;n++){var r=e.children[n];t!==undefined&&typeof t[r.name]==\"function\"?t[r.name](r):this.visit(r)}},this.visit(n),Object.keys(t.variables).forEach(function(e){!t.varRefs[e]&&(t.variables[e].annotations[\"http://www.w3.org/2005/xpath-functions#private\"]||t.moduleNamespace===\"\")&&t.variables[e].pos&&h(\"W03\",'Unused variable \"'+t.variables[e].qname.name+'\"',t.variables[e].pos)}),Object.keys(t.namespaces).forEach(function(e){var n=t.namespaces[e];n.used===undefined&&!n.override&&n.type===\"module\"&&h(\"W04\",'Unused module \"'+e+'\"',n.pos)})}},{\"../tree_ops\":\"/node_modules/xqlint/lib/tree_ops.js\",\"./errors\":\"/node_modules/xqlint/lib/compiler/errors.js\",\"./handlers\":\"/node_modules/xqlint/lib/compiler/handlers.js\",\"./static_context\":\"/node_modules/xqlint/lib/compiler/static_context.js\"}],\"/node_modules/xqlint/lib/completion/completer.js\":[function(e,t,n){\"use strict\";function s(e,t,n){n=n||i;var r=[];for(var s=t-1;s>=0;s--){if(!n.test(e[s]))break;r.push(e[s])}return r.reverse().join(\"\")}function o(e,t){var n=0,r=e.length-1,i=Math.floor((r+n)/2);while(r>n&&i>=0&&e[i].indexOf(t)!==0)t<e[i]?r=i-1:t>e[i]&&(n=i+1),i=Math.floor((r+n)/2);while(i>0&&e[i-1].indexOf(t)===0)i--;return i>=0?i:0}var r=e(\"../tree_ops\").TreeOps,i=/[a-zA-Z_0-9\\$]/,u=/[a-zA-Z_0-9\\/\\.:\\-#]/,a=\"-._A-Za-z0-9:\\u00b7\\u00c0-\\u00d6\\u00d8-\\u00f6\\u00f8-\\u02ff\\u0300-\\u037d\\u037f-\\u1fff\\u200c\\u200d\\u203f\\u2040\\u2070-\\u218f\\u2c00-\\u2fef\\u3001-\\ud7ff\\uf900-\\ufdcf\\ufdf0-\\ufffd\",f=\"[\"+a+\"]\",l=\"[\"+a+\"\\\\$]\",c=new RegExp(f),h=new RegExp(l),p={LetBinding:\"Let binding\",Param:\"Function parameter\",QuantifiedExpr:\"Quantified expression binding\",VarDeclStatement:\"Local variable\",ForBinding:\"For binding\",TumblingWindowClause:\"Tumbling window binding\",WindowVars:\"Window variable\",SlidingWindowClause:\"Sliding window binding\",PositionalVar:\"Positional variable\",CurrentItem:\"Current item\",PreviousItem:\"Previous item\",NextItem:\"Next item\",CountClause:\"Count binding\",GroupingVariable:\"Grouping variable\",VarDecl:\"Module variable\"},d=function(e,t){t.sort();var n=o(t,e),r=[];for(var i=n;i<t.length&&t[i].indexOf(e)===0;i++)r.push(t[i]);return r},v=function(e,t,n){var r=e.indexOf(\":\");if(r===-1){var i=[],s=n.getNamespaces();Object.keys(s).forEach(function(e){(s[e].type===\"module\"||e===\"http://www.w3.org/2005/xquery-local-functions\")&&i.push(s[e].prefixes[0])});var o=d(e,i),u=function(e){return{name:e+\":\",value:e+\":\",meta:\"prefix\"}};return o.map(u)}return[]},m=function(e,t,n){var r=[],i={},s=n.getFunctions(),o=\"\",u=\"\",a=e,f=e.indexOf(\":\"),l=!1;if(f!==-1){u=e.substring(0,f),a=e.substring(f+1);var h=n.getNamespaceByPrefix(u);h&&(o=n.getNamespaceByPrefix(u).uri)}else l=!0,o=n.root.defaultFunctionNamespace;Object.keys(s).forEach(function(e){var t=s[e],u=e.substring(0,e.indexOf(\"#\")),a=e.substring(e.indexOf(\"#\")+1);a=a.substring(0,a.indexOf(\"#\"));if(u!==o)return;l||(a=n.getNamespaces()[u].prefixes[0]+\":\"+a),a+=\"(\";var f=a;f+=t.params.map(function(e,t){return\"${\"+(t+1)+\":\\\\\"+e.split(\" \")[0]+\"}\"}).join(\", \"),a+=t.params.join(\", \"),a+=\")\",f+=\")\",r.push(a),i[a]=f});var p=d(e,r),v=function(e){return{name:e,value:e,meta:\"function\",priority:4,identifierRegex:c,snippet:i[e]}};return p.map(v)},g=function(e,t,n){var r=\"\",i=\"\",s=e.indexOf(\":\");s!==-1&&(i=e.substring(0,s),r=n.getNamespaceByPrefix(i).uri);var o=n.getVariables(),u=[],a={};Object.keys(o).forEach(function(e){var t=e.indexOf(\"#\"),r=e.substring(0,t),i=e.substring(t+1);r!==\"\"?(u.push(n.getPrefixesByNamespace(r)[0]+\":\"+i),a[n.getPrefixesByNamespace(r)[0]+\":\"+i]=o[e].type):(u.push(i),a[i]=o[e].type)});var f=d(e,u),l=function(e){return{name:\"$\"+e,value:\"$\"+e,meta:p[a[e]],priority:4,identifierRegex:h}};return f.map(l)},y=function(e,t,n){var r=s(e,t.col,c),i=e.substring(0,t.col-(r.length===0?0:r.length)),o=i[i.length-1]===\"$\";return o?g(r,t,n):r!==\"\"?m(r,t,n).concat(v(r,t,n)):g(r,t,n).concat(m(r,t,n)).concat(v(r,t,n))},b=function(e,t,n){var r=s(e,t.col,u),i=d(r,n.getAvailableModuleNamespaces()),o=function(e){return{name:e,value:e,meta:\"module\",priority:4,identifierRegex:u}};return i.map(o)};n.complete=function(e,t,n,i){var s=e.split(\"\\n\")[i.line],o=r.findNode(t,i),u=r.findNode(n,i);return u=u?u:n,o&&o.name===\"URILiteral\"&&o.getParent&&o.getParent.name===\"ModuleImport\"?b(s,i,u):y(s,i,u)}},{\"../tree_ops\":\"/node_modules/xqlint/lib/tree_ops.js\"}],\"/node_modules/xqlint/lib/formatter/style_checker.js\":[function(e,t,n){n.StyleChecker=function(e,t){\"use strict\";var n=\"    \",r=[];this.getMarkers=function(){return r},this.WS=function(e){var t=e.value.split(\"\\n\");return t.forEach(function(i,s){var o=s===0,u=s===t.length-1;/\\r$/.test(i)&&r.push({pos:{sl:e.pos.sl+s,el:e.pos.sl+s,sc:i.length-1,ec:i.length},type:\"warning\",level:\"warning\",message:\"[SW01] Detected CRLF\"});var a=i.match(/\\t+/);a!==null&&r.push({pos:{sl:e.pos.sl+s,el:e.pos.sl+s,sc:a.index,ec:a.index+a[0].length},type:\"warning\",level:\"warning\",message:\"[SW02] Tabs detected\"});if(!o&&u){a=i.match(/^\\ +/);if(a!==null){var f=a[0].length%n.length;f!==0&&r.push({pos:{sl:e.pos.sl+s,el:e.pos.sl+s,sc:a.index,ec:a.index+a[0].length},type:\"warning\",level:\"warning\",message:\"[SW03] Unexcepted indentation of \"+a[0].length})}}}),!0},this.visit=function(e,t){var n=e.name,r=!1;typeof this[n]==\"function\"&&(r=this[n](e,t)===!0),r||this.visitChildren(e)},this.visitChildren=function(e,t){for(var n=0;n<e.children.length;n++){var r=e.children[n];t!==undefined&&typeof t[r.name]==\"function\"?t[r.name](r):this.visit(r)}},t.split(\"\\n\").forEach(function(e,t){var n=e.match(/\\ +$/);n&&r.push({pos:{sl:t,el:t,sc:n.index,ec:n.index+n[0].length},type:\"warning\",level:\"warning\",message:\"[SW04] Trailing whitespace\"})}),this.visit(e)}},{}],\"/node_modules/xqlint/lib/lexers/JSONiqTokenizer.js\":[function(e,t,n){var r=n.JSONiqTokenizer=function i(e,t){function r(e,t){E=t,S=e,x=e.length,s(0,0,0)}function s(e,t,n){m=t,g=t,y=e,b=t,w=n,N=n,E.reset(S)}function o(){E.startNonterminal(\"EQName\",g);switch(y){case 80:f(80);break;case 94:f(94);break;case 118:f(118);break;case 119:f(119);break;case 122:f(122);break;case 143:f(143);break;case 150:f(150);break;case 163:f(163);break;case 183:f(183);break;case 189:f(189);break;case 214:f(214);break;case 224:f(224);break;case 225:f(225);break;case 241:f(241);break;case 242:f(242);break;case 251:f(251);break;default:u()}E.endNonterminal(\"EQName\",g)}function u(){E.startNonterminal(\"FunctionName\",g);switch(y){case 17:f(17);break;case 68:f(68);break;case 71:f(71);break;case 72:f(72);break;case 73:f(73);break;case 77:f(77);break;case 78:f(78);break;case 82:f(82);break;case 86:f(86);break;case 87:f(87);break;case 88:f(88);break;case 91:f(91);break;case 92:f(92);break;case 101:f(101);break;case 103:f(103);break;case 106:f(106);break;case 107:f(107);break;case 108:f(108);break;case 109:f(109);break;case 110:f(110);break;case 111:f(111);break;case 116:f(116);break;case 117:f(117);break;case 120:f(120);break;case 121:f(121);break;case 124:f(124);break;case 126:f(126);break;case 127:f(127);break;case 129:f(129);break;case 132:f(132);break;case 133:f(133);break;case 134:f(134);break;case 135:f(135);break;case 144:f(144);break;case 146:f(146);break;case 148:f(148);break;case 149:f(149);break;case 151:f(151);break;case 157:f(157);break;case 158:f(158);break;case 160:f(160);break;case 161:f(161);break;case 162:f(162);break;case 168:f(168);break;case 170:f(170);break;case 172:f(172);break;case 176:f(176);break;case 178:f(178);break;case 179:f(179);break;case 180:f(180);break;case 182:f(182);break;case 184:f(184);break;case 196:f(196);break;case 198:f(198);break;case 199:f(199);break;case 200:f(200);break;case 204:f(204);break;case 210:f(210);break;case 211:f(211);break;case 216:f(216);break;case 217:f(217);break;case 218:f(218);break;case 222:f(222);break;case 227:f(227);break;case 233:f(233);break;case 234:f(234);break;case 235:f(235);break;case 246:f(246);break;case 247:f(247);break;case 248:f(248);break;case 252:f(252);break;case 254:f(254);break;case 258:f(258);break;case 264:f(264);break;case 268:f(268);break;case 272:f(272);break;case 70:f(70);break;case 79:f(79);break;case 81:f(81);break;case 83:f(83);break;case 84:f(84);break;case 89:f(89);break;case 96:f(96);break;case 99:f(99);break;case 100:f(100);break;case 102:f(102);break;case 104:f(104);break;case 123:f(123);break;case 130:f(130);break;case 131:f(131);break;case 139:f(139);break;case 152:f(152);break;case 153:f(153);break;case 159:f(159);break;case 169:f(169);break;case 190:f(190);break;case 197:f(197);break;case 201:f(201);break;case 220:f(220);break;case 223:f(223);break;case 226:f(226);break;case 232:f(232);break;case 238:f(238);break;case 249:f(249);break;case 250:f(250);break;case 255:f(255);break;case 259:f(259);break;case 260:f(260);break;case 261:f(261);break;case 265:f(265);break;case 95:f(95);break;case 174:f(174);break;default:f(219)}E.endNonterminal(\"FunctionName\",g)}function a(){E.startNonterminal(\"NCName\",g);switch(y){case 28:f(28);break;case 68:f(68);break;case 73:f(73);break;case 77:f(77);break;case 78:f(78);break;case 82:f(82);break;case 86:f(86);break;case 87:f(87);break;case 88:f(88);break;case 92:f(92);break;case 103:f(103);break;case 107:f(107);break;case 111:f(111);break;case 116:f(116);break;case 120:f(120);break;case 121:f(121);break;case 124:f(124);break;case 126:f(126);break;case 129:f(129);break;case 135:f(135);break;case 144:f(144);break;case 146:f(146);break;case 148:f(148);break;case 149:f(149);break;case 158:f(158);break;case 160:f(160);break;case 161:f(161);break;case 162:f(162);break;case 170:f(170);break;case 172:f(172);break;case 176:f(176);break;case 178:f(178);break;case 179:f(179);break;case 184:f(184);break;case 196:f(196);break;case 198:f(198);break;case 199:f(199);break;case 218:f(218);break;case 222:f(222);break;case 234:f(234);break;case 235:f(235);break;case 246:f(246);break;case 247:f(247);break;case 252:f(252);break;case 264:f(264);break;case 268:f(268);break;case 71:f(71);break;case 72:f(72);break;case 80:f(80);break;case 91:f(91);break;case 94:f(94);break;case 101:f(101);break;case 106:f(106);break;case 108:f(108);break;case 109:f(109);break;case 110:f(110);break;case 117:f(117);break;case 118:f(118);break;case 119:f(119);break;case 122:f(122);break;case 127:f(127);break;case 132:f(132);break;case 133:f(133);break;case 134:f(134);break;case 143:f(143);break;case 150:f(150);break;case 151:f(151);break;case 157:f(157);break;case 163:f(163);break;case 168:f(168);break;case 180:f(180);break;case 182:f(182);break;case 183:f(183);break;case 189:f(189);break;case 200:f(200);break;case 204:f(204);break;case 210:f(210);break;case 211:f(211);break;case 214:f(214);break;case 216:f(216);break;case 217:f(217);break;case 224:f(224);break;case 225:f(225);break;case 227:f(227);break;case 233:f(233);break;case 241:f(241);break;case 242:f(242);break;case 248:f(248);break;case 251:f(251);break;case 254:f(254);break;case 258:f(258);break;case 260:f(260);break;case 272:f(272);break;case 70:f(70);break;case 79:f(79);break;case 81:f(81);break;case 83:f(83);break;case 84:f(84);break;case 89:f(89);break;case 96:f(96);break;case 99:f(99);break;case 100:f(100);break;case 102:f(102);break;case 104:f(104);break;case 123:f(123);break;case 130:f(130);break;case 131:f(131);break;case 139:f(139);break;case 152:f(152);break;case 153:f(153);break;case 159:f(159);break;case 169:f(169);break;case 190:f(190);break;case 197:f(197);break;case 201:f(201);break;case 220:f(220);break;case 223:f(223);break;case 226:f(226);break;case 232:f(232);break;case 238:f(238);break;case 249:f(249);break;case 250:f(250);break;case 255:f(255);break;case 259:f(259);break;case 261:f(261);break;case 265:f(265);break;case 95:f(95);break;case 174:f(174);break;default:f(219)}E.endNonterminal(\"NCName\",g)}function f(e){y==e?(l(),E.terminal(i.TOKEN[y],b,w>x?x:w),m=b,g=w,y=0):d(b,w,0,y,e)}function l(){g!=b&&(m=g,g=b,E.whitespace(m,g))}function c(e){var t;for(;;){t=C(e);if(t!=30)break}return t}function h(e){y==0&&(y=c(e),b=T,w=N)}function p(e){y==0&&(y=C(e),b=T,w=N)}function d(e,t,r,i,s){throw new n.ParseException(e,t,r,i,s)}function C(e){var t=!1;T=N;var n=N,r=i.INITIAL[e],s=0;for(var o=r&4095;o!=0;){var u,a=n<x?S.charCodeAt(n):0;++n;if(a<128)u=i.MAP0[a];else if(a<55296){var f=a>>4;u=i.MAP1[(a&15)+i.MAP1[(f&31)+i.MAP1[f>>5]]]}else{if(a<56320){var f=n<x?S.charCodeAt(n):0;f>=56320&&f<57344&&(++n,a=((a&1023)<<10)+(f&1023)+65536,t=!0)}var l=0,c=5;for(var h=3;;h=c+l>>1){if(i.MAP2[h]>a)c=h-1;else{if(!(i.MAP2[6+h]<a)){u=i.MAP2[12+h];break}l=h+1}if(l>c){u=0;break}}}s=o;var p=(u<<12)+o-1;o=i.TRANSITION[(p&15)+i.TRANSITION[p>>4]],o>4095&&(r=o,o&=4095,N=n)}r>>=12;if(r==0){N=n-1;var f=N<x?S.charCodeAt(N):0;return f>=56320&&f<57344&&--N,d(T,N,s,-1,-1)}if(t)for(var v=r>>9;v>0;--v){--N;var f=N<x?S.charCodeAt(N):0;f>=56320&&f<57344&&--N}else N-=r>>9;return(r&511)-1}r(e,t);var n=this;this.ParseException=function(e,t,n,r,i){var s=e,o=t,u=n,a=r,f=i;this.getBegin=function(){return s},this.getEnd=function(){return o},this.getState=function(){return u},this.getExpected=function(){return f},this.getOffending=function(){return a},this.getMessage=function(){return a<0?\"lexical analysis failed\":\"syntax error\"}},this.getInput=function(){return S},this.getOffendingToken=function(e){var t=e.getOffending();return t>=0?i.TOKEN[t]:null},this.getExpectedTokenSet=function(e){var t;return e.getExpected()<0?t=i.getTokenSet(-e.getState()):t=[i.TOKEN[e.getExpected()]],t},this.getErrorMessage=function(e){var t=this.getExpectedTokenSet(e),n=this.getOffendingToken(e),r=S.substring(0,e.getBegin()),i=r.split(\"\\n\"),s=i.length,o=i[s-1].length+1,u=e.getEnd()-e.getBegin();return e.getMessage()+(n==null?\"\":\", found \"+n)+\"\\nwhile expecting \"+(t.length==1?t[0]:\"[\"+t.join(\", \")+\"]\")+\"\\n\"+(u==0||n!=null?\"\":\"after successfully scanning \"+u+\" characters beginning \")+\"at line \"+s+\", column \"+o+\":\\n...\"+S.substring(e.getBegin(),Math.min(S.length,e.getBegin()+64))+\"...\"},this.parse_start=function(){E.startNonterminal(\"start\",g),h(14);switch(y){case 58:f(58);break;case 57:f(57);break;case 59:f(59);break;case 43:f(43);break;case 45:f(45);break;case 44:f(44);break;case 37:f(37);break;case 41:f(41);break;case 277:f(277);break;case 274:f(274);break;case 42:f(42);break;case 46:f(46);break;case 52:f(52);break;case 65:f(65);break;case 66:f(66);break;case 49:f(49);break;case 51:f(51);break;case 56:f(56);break;case 54:f(54);break;case 36:f(36);break;case 276:f(276);break;case 40:f(40);break;case 5:f(5);break;case 4:f(4);break;case 6:f(6);break;case 15:f(15);break;case 16:f(16);break;case 18:f(18);break;case 19:f(19);break;case 20:f(20);break;case 8:f(8);break;case 9:f(9);break;case 7:f(7);break;case 35:f(35);break;default:o()}E.endNonterminal(\"start\",g)},this.parse_StartTag=function(){E.startNonterminal(\"StartTag\",g),h(8);switch(y){case 61:f(61);break;case 53:f(53);break;case 29:f(29);break;case 60:f(60);break;case 37:f(37);break;case 41:f(41);break;default:f(35)}E.endNonterminal(\"StartTag\",g)},this.parse_TagContent=function(){E.startNonterminal(\"TagContent\",g),p(11);switch(y){case 25:f(25);break;case 9:f(9);break;case 10:f(10);break;case 58:f(58);break;case 57:f(57);break;case 21:f(21);break;case 31:f(31);break;case 275:f(275);break;case 278:f(278);break;case 274:f(274);break;default:f(35)}E.endNonterminal(\"TagContent\",g)},this.parse_AposAttr=function(){E.startNonterminal(\"AposAttr\",g),p(10);switch(y){case 23:f(23);break;case 27:f(27);break;case 21:f(21);break;case 31:f(31);break;case 275:f(275);break;case 278:f(278);break;case 274:f(274);break;case 41:f(41);break;default:f(35)}E.endNonterminal(\"AposAttr\",g)},this.parse_QuotAttr=function(){E.startNonterminal(\"QuotAttr\",g),p(9);switch(y){case 22:f(22);break;case 26:f(26);break;case 21:f(21);break;case 31:f(31);break;case 275:f(275);break;case 278:f(278);break;case 274:f(274);break;case 37:f(37);break;default:f(35)}E.endNonterminal(\"QuotAttr\",g)},this.parse_CData=function(){E.startNonterminal(\"CData\",g),p(1);switch(y){case 14:f(14);break;case 67:f(67);break;default:f(35)}E.endNonterminal(\"CData\",g)},this.parse_XMLComment=function(){E.startNonterminal(\"XMLComment\",g),p(0);switch(y){case 12:f(12);break;case 50:f(50);break;default:f(35)}E.endNonterminal(\"XMLComment\",g)},this.parse_PI=function(){E.startNonterminal(\"PI\",g),p(3);switch(y){case 13:f(13);break;case 62:f(62);break;case 63:f(63);break;default:f(35)}E.endNonterminal(\"PI\",g)},this.parse_Pragma=function(){E.startNonterminal(\"Pragma\",g),p(2);switch(y){case 11:f(11);break;case 38:f(38);break;case 39:f(39);break;default:f(35)}E.endNonterminal(\"Pragma\",g)},this.parse_Comment=function(){E.startNonterminal(\"Comment\",g),p(4);switch(y){case 55:f(55);break;case 44:f(44);break;case 32:f(32);break;default:f(35)}E.endNonterminal(\"Comment\",g)},this.parse_CommentDoc=function(){E.startNonterminal(\"CommentDoc\",g),p(6);switch(y){case 33:f(33);break;case 34:f(34);break;case 55:f(55);break;case 44:f(44);break;default:f(35)}E.endNonterminal(\"CommentDoc\",g)},this.parse_QuotString=function(){E.startNonterminal(\"QuotString\",g),p(5);switch(y){case 3:f(3);break;case 2:f(2);break;case 1:f(1);break;case 37:f(37);break;default:f(35)}E.endNonterminal(\"QuotString\",g)},this.parse_AposString=function(){E.startNonterminal(\"AposString\",g),p(7);switch(y){case 21:f(21);break;case 31:f(31);break;case 23:f(23);break;case 24:f(24);break;case 41:f(41);break;default:f(35)}E.endNonterminal(\"AposString\",g)},this.parse_Prefix=function(){E.startNonterminal(\"Prefix\",g),h(13),l(),a(),E.endNonterminal(\"Prefix\",g)},this.parse__EQName=function(){E.startNonterminal(\"_EQName\",g),h(12),l(),o(),E.endNonterminal(\"_EQName\",g)};var v,m,g,y,b,w,E,S,x,T,N};r.getTokenSet=function(e){var t=[],n=e<0?-e:INITIAL[e]&4095;for(var i=0;i<279;i+=32){var s=i,o=(i>>5)*2066+n-1,u=o>>2,a=u>>2,f=r.EXPECTED[(o&3)+r.EXPECTED[(u&3)+r.EXPECTED[(a&3)+r.EXPECTED[a>>2]]]];for(;f!=0;f>>>=1,++s)(f&1)!=0&&t.push(r.TOKEN[s])}return t},r.MAP0=[67,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,18,18,18,18,18,18,18,18,18,19,20,21,22,23,24,25,26,27,28,29,30,27,31,31,31,31,31,31,31,31,31,31,32,31,31,33,31,31,31,31,31,31,34,35,36,37,31,37,38,39,40,41,42,43,44,45,46,31,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,31,62,63,64,65,37],r.MAP1=[108,124,214,214,214,214,214,214,214,214,214,214,214,214,214,214,156,181,181,181,181,181,214,215,213,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,247,261,277,293,309,347,363,379,416,416,416,408,331,323,331,323,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,433,433,433,433,433,433,433,316,331,331,331,331,331,331,331,331,394,416,416,417,415,416,416,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,330,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,416,67,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,18,18,18,18,18,18,18,18,18,19,20,21,22,23,24,25,26,27,28,29,30,27,31,31,31,31,31,31,31,31,31,31,31,31,31,31,37,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,32,31,31,33,31,31,31,31,31,31,34,35,36,37,31,37,38,39,40,41,42,43,44,45,46,31,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,31,62,63,64,65,37,37,37,37,37,37,37,37,37,37,37,37,31,31,37,37,37,37,37,37,37,66,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66],r.MAP2=[57344,63744,64976,65008,65536,983040,63743,64975,65007,65533,983039,1114111,37,31,37,31,31,37],r.INITIAL=[1,2,49155,57348,5,6,7,8,9,10,11,12,13,14,15],r.TRANSITION=[19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,17408,19288,17439,36866,17466,36890,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,22126,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17672,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,19469,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,36919,18234,18262,18278,18294,18320,18336,18361,18397,18419,18432,18304,18448,18485,18523,18553,18583,18599,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,18825,18841,18871,18906,18944,18960,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19074,36169,17439,36866,17466,36890,36866,22314,19105,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,22126,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17672,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,19469,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,36919,18234,18262,18278,18294,18320,18336,18361,18397,18419,18432,18304,18448,18485,18523,18553,18583,18599,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,18825,18841,18871,18906,18944,18960,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22182,19288,19121,36866,17466,18345,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19273,19552,19304,36866,17466,36890,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19332,17423,19363,36866,17466,17537,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,18614,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,19391,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,19427,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36154,19288,19457,36866,17466,17740,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22780,19288,19457,36866,17466,36890,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22375,22197,18469,36866,17466,36890,36866,21991,24018,22987,17556,17575,22288,17486,17509,17525,18373,21331,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,19485,19501,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19537,22390,19568,36866,17466,36890,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19596,19611,19457,36866,17466,36890,36866,18246,19627,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22242,20553,19457,36866,17466,36890,36866,18648,30477,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36472,19288,19457,36866,17466,17809,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,21770,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,19643,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,19672,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,20538,19288,19457,36866,17466,36890,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,17975,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22345,19288,19457,36866,17466,36890,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19726,19742,21529,24035,23112,26225,23511,27749,27397,24035,34360,24035,24036,23114,35166,23114,23114,19758,23511,35247,23511,23511,28447,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,24254,19821,23511,23511,23511,23511,23512,19441,36539,24035,24035,24035,24035,19846,19869,23114,23114,23114,28618,32187,19892,23511,23511,23511,34585,20402,36647,24035,24035,24036,23114,33757,23114,23114,23029,20271,23511,27070,23511,23511,30562,24035,24035,29274,26576,23114,23114,31118,23036,29695,23511,23511,32431,23634,30821,24035,23110,19913,23114,23467,31261,23261,34299,19932,24035,32609,19965,35389,19984,27689,19830,29391,29337,20041,22643,35619,33728,20062,20121,20166,35100,26145,20211,23008,19876,20208,20227,25670,20132,26578,27685,20141,20243,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36094,19288,19457,36866,17466,21724,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22735,19552,20287,36866,17466,36890,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22750,19288,21529,24035,23112,28056,23511,29483,28756,24035,24035,24035,24036,23114,23114,23114,23114,20327,23511,23511,23511,23511,31156,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,24254,20371,23511,23511,23511,23511,27443,20395,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,29457,29700,23511,23511,23511,23511,33444,20402,24035,24035,24035,24036,23114,23114,23114,23114,28350,20421,23511,23511,23511,23511,25645,24035,24035,24035,26576,23114,23114,23114,20447,20475,23511,23511,23511,23634,24035,24035,23110,23114,23114,20499,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,20523,22257,20569,20783,21715,17603,20699,20837,20614,20630,21149,20670,21405,17486,17509,17525,18373,19179,20695,20716,20732,20755,19194,18042,21641,20592,20779,20598,21412,17470,17591,20896,17468,17619,20799,20700,21031,20744,20699,20828,18075,21259,20581,20853,18048,20868,20884,17756,17784,17800,17825,17854,21171,21200,20931,20947,21378,20955,20971,18086,20645,21002,20986,18178,17960,18012,18381,18064,29176,21044,21438,21018,21122,21393,21060,21844,21094,20654,17493,18150,18166,18214,25967,20763,21799,21110,21830,21138,21246,21301,18336,18361,21165,21187,20812,21216,21232,21287,21317,18553,21347,21363,21428,21454,21271,21483,21499,21515,21575,21467,18712,21591,21633,21078,18189,18198,20679,21657,21701,21074,21687,21740,21756,21786,21815,21860,21876,21892,21946,21962,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36457,19288,19457,36866,17466,36890,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,36813,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,21981,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,22151,22007,18884,17900,17922,17944,18178,17960,18012,18381,18064,27898,17884,18890,17906,17928,22042,25022,18130,36931,36963,17493,18150,18166,22070,22112,25026,18134,36935,18262,18278,18294,18320,18336,18361,22142,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36109,19288,18469,36866,17466,36890,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22167,19288,19457,36866,17466,17768,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22227,36487,22273,36866,17466,36890,36866,19316,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18749,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,22304,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,19580,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22330,19089,19457,36866,17466,18721,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22765,19347,19457,36866,17466,36890,36866,18114,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36079,19288,21605,24035,23112,32618,23511,29483,29939,24035,24035,24035,24036,23114,23114,23114,23114,22420,23511,23511,23511,23511,29116,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,22468,23511,23511,23511,23511,27443,22493,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,28618,29700,23511,23511,23511,23511,34541,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,22839,23511,23511,23511,23511,25645,24035,24035,24035,26576,23114,23114,23114,32683,22516,23511,23511,23511,22540,24035,24035,23110,23114,23114,20499,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36079,19288,21605,24035,23112,32618,23511,29483,29939,24035,24035,24035,24036,23114,23114,23114,23114,22420,23511,23511,23511,23511,29116,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,22468,23511,23511,23511,23511,27443,22493,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,28618,29700,23511,23511,23511,23511,34564,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,22839,23511,23511,23511,23511,25645,24035,24035,24035,26576,23114,23114,23114,32683,22516,23511,23511,23511,23634,24035,24035,23110,23114,23114,20499,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36079,19288,21605,24035,23112,32618,23511,29483,29939,24035,24035,24035,24036,23114,23114,23114,23114,22420,23511,23511,23511,23511,29908,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,22468,23511,23511,23511,23511,27443,22493,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,28618,29700,23511,23511,23511,23511,34564,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,22839,23511,23511,23511,23511,25645,24035,24035,24035,26576,23114,23114,23114,32683,22516,23511,23511,23511,23634,24035,24035,23110,23114,23114,20499,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36079,19288,21605,24035,23112,32618,23511,29483,29939,24035,24035,24035,24036,23114,23114,23114,23114,22420,23511,23511,23511,23511,29116,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,22468,23511,23511,23511,23511,27443,22561,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,28618,29700,23511,23511,23511,23511,34564,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,22839,23511,23511,23511,23511,25645,24035,24035,24035,26576,23114,23114,23114,32683,22516,23511,23511,23511,23634,24035,24035,23110,23114,23114,20499,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36079,19288,21605,24035,23112,23837,23511,29483,29939,24035,24035,24035,24036,23114,23114,23114,23114,22584,23511,23511,23511,23511,29116,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,22468,23511,23511,23511,23511,27443,22493,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,28618,29700,23511,23511,23511,23511,34564,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,22839,23511,23511,23511,23511,25645,24035,24035,24035,26576,23114,23114,23114,32683,22516,23511,23511,23511,23634,24035,24035,23110,23114,23114,20499,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36079,19288,21605,24035,23112,32618,23511,31507,29939,24035,24035,24035,24036,23114,23114,23114,23114,22420,23511,23511,23511,23511,28306,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,22468,23511,23511,23511,23511,23512,24694,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,28618,29700,23511,23511,23511,23511,34585,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,20271,23511,23511,23511,23511,30562,24035,24035,24035,26576,23114,23114,23114,23036,29695,23511,23511,23511,23634,24035,24035,23110,23114,23114,23467,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36442,19288,21605,24035,23112,28137,23511,31507,29939,24035,24035,24035,24036,23114,23114,23114,23114,22420,23511,23511,23511,23511,28306,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,22468,23511,23511,23511,23511,23512,24694,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,28618,29700,23511,23511,23511,23511,34585,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,20271,23511,23511,23511,23511,30562,24035,24035,24035,26576,23114,23114,23114,23036,29695,23511,23511,23511,23634,24035,24035,23110,23114,23114,23467,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36079,19288,21605,24035,23112,32618,23511,31507,29939,24035,24035,24035,24036,23114,23114,23114,23114,22420,23511,23511,23511,23511,28306,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,22468,23511,23511,23511,23511,23512,24694,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,28618,29700,23511,23511,23511,23511,34585,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,20271,23511,23511,23511,23511,31568,24035,24035,24035,26576,23114,23114,23114,23036,29695,23511,23511,23511,23634,24035,24035,23110,23114,23114,23467,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22690,19288,19457,36866,17466,36890,36866,21991,27584,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,22659,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22360,19552,19457,36866,17466,36890,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22675,22811,19457,36866,17466,36890,36866,19133,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,22827,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36139,19288,19457,36866,17466,36890,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36064,19288,22865,22881,32031,22897,22913,22956,29939,24035,24035,24035,23003,23114,23114,23114,23024,22420,23511,23511,23511,23052,29116,23073,29268,24035,25563,26915,23106,23131,23114,23114,23159,23181,23197,23248,23511,23511,23282,23305,22493,32364,24035,33472,30138,26325,31770,33508,27345,33667,23114,23321,23473,23351,35793,36576,23511,23375,22500,24145,24035,29197,20192,24533,23440,23114,19017,23459,22839,23489,23510,23511,33563,23528,32076,25389,24035,26576,23561,23583,23114,32683,22516,23622,23655,23511,23634,35456,37144,23110,23683,34153,20499,32513,25824,23705,24035,24035,23111,23114,19874,27078,33263,19830,24035,23112,19872,27741,23266,24036,23114,30243,20507,32241,20150,31862,27464,35108,23727,23007,35895,34953,26578,27685,20141,24569,31691,19787,33967,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36427,19552,21605,24035,23112,32618,23511,29483,29939,24035,24035,24035,24036,23114,23114,23114,23114,22420,23511,23511,23511,23511,29116,19803,24035,24035,24035,27027,26576,23114,23114,23114,31471,23756,22468,23511,23511,23511,34687,23772,22493,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,28618,29700,23511,23511,23511,23511,34564,23788,24035,24035,24035,21559,23828,23114,23114,23114,25086,22839,23853,23511,23511,23511,23876,24035,24035,24035,26576,23114,23114,23114,32683,22516,23511,23511,23511,23634,24035,24035,23110,23114,23114,20499,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,31761,23909,23953,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36049,19288,21605,30825,23112,23987,23511,24003,31001,27617,24034,24035,24036,24052,24089,23114,23114,22420,24109,24168,23511,23511,29116,24188,27609,20017,29516,24035,26576,24222,19968,23114,24252,33811,22468,24270,33587,23511,24320,27443,22493,24035,24035,24035,24035,24339,23113,23114,23114,23114,28128,28618,29700,23511,23511,23511,28276,34564,20402,24035,24035,32929,24036,23114,23114,23114,24357,23029,22839,23511,23511,23511,24377,25645,24035,34112,24035,26576,23114,26643,23114,32683,22516,23511,25638,23511,23711,24035,24395,27809,23114,24414,20499,24432,30917,23628,24035,30680,23111,23114,30233,27078,25748,24452,24035,23112,19872,27741,23266,24036,23114,24475,19829,26577,26597,26154,24519,24556,24596,23007,20046,20132,26578,24634,20141,24569,31691,24679,24727,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36412,19288,21605,19943,34861,32618,26027,29483,32016,32050,36233,24776,35574,24801,24819,32671,31289,22420,24868,24886,20087,26849,29116,19803,24035,24035,24035,36228,26576,23114,23114,23114,24981,33811,22468,23511,23511,23511,29028,27443,22493,24923,27965,24035,24035,32797,24946,23443,23114,23114,29636,24997,22849,28252,23511,23511,23511,25042,25110,24035,24035,34085,24036,25133,23114,23114,25152,23029,22839,25169,23511,36764,23511,25645,30403,24035,25186,26576,31806,24093,25212,32683,22516,32713,26245,34293,23634,24035,24035,23110,23114,23114,20499,23511,23261,23628,24035,32406,23111,23114,28676,30944,27689,25234,24035,23112,19872,37063,23266,24036,23114,30243,20379,26100,29218,20211,30105,25257,25284,23007,20046,20132,26578,27685,20141,24569,24834,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36034,19288,21671,25314,25072,25330,25346,25362,29939,29951,35288,29984,23812,27216,25405,25424,30456,22584,26292,25461,25480,31592,29116,25516,34963,25545,27007,25579,33937,25614,25661,25686,34872,25702,25718,25734,25769,25795,25811,25840,22493,26533,25856,24035,25876,30763,27481,25909,23114,28987,25936,25954,29700,25983,23511,31412,26043,26063,22568,29241,29592,26116,31216,35383,26170,34783,26194,26221,22839,26241,26261,22477,26283,26308,27306,31035,24655,26576,29854,33386,26341,32683,22516,32153,30926,26361,19996,26381,35463,26397,26424,34646,26478,35605,31386,26494,35567,31964,22940,23689,25218,30309,32289,19830,33605,23112,32109,27733,27084,24496,35886,35221,26525,36602,26549,26558,26574,26594,26613,26629,26666,26700,26578,27685,23740,24285,31691,26733,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36397,19552,18991,25887,28117,32618,26776,29483,29939,26802,24035,24035,24036,28664,23114,23114,23114,22420,30297,23511,23511,23511,29116,19803,24035,24035,24035,25559,26576,23114,23114,23114,30525,33811,22468,23511,23511,23511,28725,27443,22493,24035,24035,27249,24035,24035,23113,23114,23114,26827,23114,28618,29700,23511,23511,26845,23511,34564,20402,24035,24035,26979,24036,23114,23114,23114,24974,23029,22839,23511,23511,23511,26865,25645,24035,24035,24035,26576,23114,23114,23114,32683,22516,23511,23511,23511,23634,24035,24035,23110,23114,23114,20499,23511,23261,23628,33305,24035,25598,23114,19874,34253,27689,19830,24035,23112,19872,27741,23266,24036,23114,26886,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,26931,24569,26439,26947,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36019,19288,26995,24035,23112,32618,23511,31507,29939,24035,24035,24035,24036,23114,23114,23114,23114,22420,23511,23511,23511,23511,28306,27043,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,27061,23511,23511,23511,23511,23512,24694,24035,24035,29978,24035,24035,23113,23114,33114,23114,23114,30010,29700,23511,35913,23511,23511,34585,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,20271,23511,23511,23511,23511,30562,24035,24035,27155,26576,23114,23114,30447,23036,29695,23511,23511,30935,20099,24152,25529,27100,34461,27121,22625,29156,26009,27137,30422,31903,31655,28870,27171,32439,31731,19830,27232,22612,27265,26786,25494,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,20342,27288,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36079,19288,21605,27322,27339,28020,27361,27382,29939,24035,24035,32581,24036,23114,23114,23114,27425,22420,23511,23511,23511,27442,28306,19803,24035,24035,24035,24035,26710,23114,23114,23114,23114,32261,22468,23511,23511,23511,23511,35719,24694,29510,24035,24035,24035,24035,26717,23114,23114,23114,23114,28618,32217,23511,23511,23511,23511,34585,20402,24035,24035,24035,27459,23114,23114,23114,36252,23029,20271,23511,23511,23511,28840,30562,24035,24035,24035,26576,23114,23114,23114,23036,29695,23511,23511,23511,23634,24035,24035,23110,23114,23114,23467,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,27480,34483,28401,29761,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36382,19288,21605,27497,27517,28504,28898,27569,29939,29401,27600,27323,27633,19025,27662,23114,27705,22420,20483,27721,23511,27765,28306,19803,23540,24035,24610,27781,27805,26650,23114,28573,32990,25920,22468,26870,23511,26684,34262,34737,25057,34622,24035,24035,23971,24206,27825,27847,23114,23114,27865,27885,35766,27914,23511,23511,32766,32844,27934,28795,26909,27955,26092,27988,25445,28005,28036,28052,21965,23511,32196,19897,28072,28102,36534,21541,23801,28153,28180,28197,28221,23036,32695,28251,28268,28292,23667,34825,23930,24580,28322,28344,31627,28366,25996,23628,24035,24035,23111,23114,19874,27078,27689,35625,33477,33359,27674,28393,33992,24036,23114,30243,19829,28417,28433,28463,23008,19876,20208,23007,20046,20132,28489,28520,20141,24569,31691,19787,28550,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36079,19288,21605,24035,23112,32618,23511,31507,29939,24035,24035,24035,24036,23114,23114,23114,23114,22420,23511,23511,23511,23511,28306,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,22468,23511,23511,23511,23511,23512,24694,28589,24035,24035,24035,24035,28608,23114,23114,23114,23114,28618,20431,23511,23511,23511,23511,34585,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,20271,23511,23511,23511,23511,30562,24035,24035,24035,26576,23114,23114,23114,23036,29695,23511,23511,23511,23634,24035,24035,23110,23114,23114,23467,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36004,19288,28634,31951,28565,28702,28718,28741,32544,20175,28792,32086,20105,28811,29059,29862,28856,22420,28886,30354,23359,28922,28306,28952,23888,26320,36506,24035,29331,28968,36609,23114,29003,31661,27061,30649,27366,23511,29023,27918,24694,24035,24035,23893,33094,30867,23113,23114,23114,29044,34184,30010,29700,23511,23511,29081,29102,34585,20402,27789,24035,24035,24036,23114,29132,23114,23114,23029,20271,23511,29153,23511,23511,30562,30174,24035,24035,27409,25438,23114,23114,29172,36668,31332,23511,23511,29192,30144,24035,23110,30203,23114,23467,31544,23261,23628,24035,22545,23111,23114,29213,27078,27689,29234,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,29257,23008,19876,20208,28768,29290,29320,34776,29353,20141,22435,29378,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36367,19288,21605,34616,19006,32618,31497,31507,36216,20184,24035,34393,29424,34668,23114,34900,29447,22420,30360,23511,37089,29473,28306,19803,29499,24398,24035,24035,26576,31799,29532,29550,23114,33811,22468,32298,29571,31184,23511,23512,37127,36628,29589,24035,24135,24035,23113,29608,23114,27831,29634,28618,29652,30037,23511,24172,29671,34585,20402,24035,24035,24035,24036,23114,23114,23114,23114,29555,29690,23511,23511,23511,23511,30562,24035,24035,24035,26576,23114,23114,23114,23036,29695,23511,23511,23511,23634,29719,24035,23110,29738,23114,23467,34035,29756,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,29777,34364,28181,30243,29799,31920,27272,27185,23008,31126,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29828,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,35989,19552,19687,35139,28649,29878,29894,29924,29939,23224,23085,31969,24036,35173,24752,24803,23114,22420,31190,30318,24870,23511,28306,29967,23967,24035,24035,24035,26576,3e4,23114,23114,23114,33811,22468,30026,23511,23511,23511,23512,26078,24035,24035,24035,30053,37137,30071,23114,23114,33368,25136,28618,30723,23511,23511,37096,31356,34585,20402,30092,30127,30160,24036,35740,30219,24960,30259,23029,20271,34042,30285,30342,30376,23289,30055,30400,30419,30438,32640,33532,33514,30472,18792,26267,24323,23057,30493,23639,20008,30196,33188,30517,20075,23511,30541,23628,30578,33928,28776,30594,19874,30610,30637,19830,30677,27646,19872,25779,23266,23232,35016,30243,30696,29812,30712,30746,27206,30779,30807,23007,33395,20132,26578,27685,31703,22928,31691,19787,31079,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36352,19288,23335,30841,26131,30888,30904,30986,29939,24035,24704,31017,20025,23114,26178,31051,31095,22420,23511,22524,31142,31172,28534,31206,35497,25196,24035,28592,24503,23114,31239,31285,23114,31305,31321,31355,31372,31407,23511,30556,24694,24035,27501,19805,24035,24035,23113,23114,31428,24066,23114,28618,29700,23511,31837,18809,23511,34585,31448,24035,24035,24035,23090,23114,23114,23114,23114,31619,35038,23511,23511,23511,23511,33714,24035,33085,24035,29431,23114,31467,23114,23143,31487,23511,31523,23511,35195,36783,24035,30111,23567,23114,23467,31543,31560,23628,24035,24035,23111,23114,19874,30953,31584,34508,24035,31608,26345,37055,23266,31643,31677,31719,31747,31786,31822,26898,23008,19876,31859,23007,20046,20132,26578,27685,20141,24569,31691,31878,31936,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,35974,19288,21605,27972,35663,31985,29655,32001,36715,24785,25893,23545,31912,19853,19916,25938,24540,22420,31843,29674,29573,32735,28936,19803,24035,24035,32047,24035,26576,23114,23114,27544,23114,33811,22468,23511,23511,32161,23511,23512,32066,24035,33313,24035,24035,24035,23113,27426,32102,23114,23114,28618,32125,23511,32144,23511,23511,33569,20402,24035,27045,24035,24036,23114,23114,28328,23114,30076,32177,23511,23511,30384,23511,30562,24035,24035,24035,26576,23114,23114,23114,23595,32212,23511,23511,23511,23634,24035,24035,23110,23114,23114,23467,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,22635,25753,32233,32257,32277,19829,26577,26597,20211,23008,19876,32322,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36079,19288,32352,35285,32380,34196,33016,30661,29939,24035,24035,24035,24036,23114,23114,23114,23114,22420,23511,23511,23511,23511,28306,32404,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,32422,23511,23511,23511,23511,23512,24694,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,30269,29700,23511,23511,23511,23511,34585,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,20271,23511,23511,23511,23511,30562,24035,24035,24035,26576,23114,23114,23114,23036,29695,23511,23511,23511,23634,24035,24035,23110,23114,23114,23467,23511,23261,23628,19949,24035,23111,32455,19874,31269,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36337,19552,19209,21617,26509,32475,32491,32529,29939,24035,32578,25241,32597,23114,32634,29007,32656,22420,23511,32729,26365,32751,28306,32788,32882,24035,24035,32813,36727,23114,33182,23114,27553,33235,32829,23511,32706,23511,28906,28377,26962,32881,32904,32898,32920,24035,32953,23114,32977,26408,23114,28164,33006,23511,33039,35774,23511,32306,20402,33076,30872,24035,24036,25408,33110,28979,23114,23029,20271,35835,33130,33054,23511,30562,33148,24035,24035,33167,23114,23114,33775,23036,20459,23511,23511,25464,24646,24035,24035,22446,23114,23114,25627,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,31391,33204,33220,33251,33287,26577,26597,20211,33329,19876,33345,23007,20046,20132,26578,27685,28473,22599,31691,33411,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,35959,19288,21907,27243,29843,32618,33427,31507,29939,33460,34090,24035,24036,33493,24416,33530,23114,22420,33548,24379,33585,23511,28306,19803,33603,24202,24035,24035,25593,33749,28205,23114,23114,32388,22468,33853,33060,23511,23511,31339,33621,24035,24035,34397,24618,30757,33663,23114,23114,33683,35684,28618,26678,23511,23511,32506,33699,34585,20402,24035,32562,26973,24036,23114,23114,33377,33773,23029,20271,23511,23511,30621,23511,23860,24035,33791,21553,26576,36558,23114,33809,23036,32857,26047,23511,33827,23634,24035,24035,23110,23114,23114,31252,23511,33845,23628,24035,24459,23111,23114,33869,27078,30791,29783,24035,24742,19872,33895,23266,26462,19710,33879,33919,26577,26597,24123,24930,21930,20208,30501,33953,25268,20252,33983,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36322,19552,23390,33634,35154,34008,34024,34058,35544,34106,34128,26811,33151,34144,34169,34212,23114,34228,34244,34278,34315,23511,34331,34347,34380,34413,24035,24663,26576,34429,34453,34477,29534,33811,22468,34499,34524,34557,25170,34580,35436,23937,34601,24035,24341,26453,23113,34638,34662,23114,24236,28618,34684,34703,34729,23511,35352,34753,34799,24035,34815,32558,34848,34888,35814,34923,23165,29137,23606,30326,30730,34939,33023,30562,36848,34979,24035,24847,34996,23114,23114,35032,29695,35054,23511,23511,35091,33296,35124,24296,28235,24361,36276,32772,35067,35189,27301,30855,24852,22452,35211,35237,35316,25500,35270,23405,24304,35304,29362,24036,23114,35332,19829,26577,26597,20211,23008,19876,20208,35368,28823,23920,32336,35405,20141,24569,31691,35421,35479,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,35944,22795,21605,33647,35877,35513,30962,35529,34073,35557,24035,24035,20405,31107,23114,23114,23114,35590,34713,23511,23511,23511,35641,19803,29408,32937,25298,24035,35657,23115,27849,24760,35679,26205,22468,23511,35700,24907,24901,35075,31893,34980,24035,24035,24035,24035,23113,35009,23114,23114,23114,28618,35716,30970,23511,23511,23511,34585,23215,24035,24035,24035,24036,35735,23114,23114,23114,27105,35756,35790,23511,23511,23511,35254,35446,24035,24035,31223,35809,23114,23114,23036,36825,35830,23511,23511,23634,24035,24035,23110,23114,23114,23467,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,31031,20355,19872,33903,23266,24036,23114,28686,19829,26577,26597,20211,23008,23424,20208,24711,31065,24486,26578,27685,20141,19773,35851,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36307,19288,21605,35494,19702,32618,33437,31507,29939,25117,24035,27939,24036,27869,23114,26829,23114,22420,23494,23511,33132,23511,28306,19803,24035,34832,24035,24035,26576,23114,25153,23114,23114,33811,22468,23511,23511,35911,23511,23512,24694,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,28618,29700,23511,23511,23511,23511,34585,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,20271,23511,23511,23511,23511,30562,24035,24035,24035,26576,23114,23114,23114,23036,29695,23511,23511,23511,23634,24035,24035,23110,23114,23114,23467,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,35929,19288,21605,25860,23112,36185,23511,36201,29939,24035,24035,24035,24036,23114,23114,23114,23114,22420,23511,23511,23511,23511,28306,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,22468,23511,23511,23511,23511,23512,26748,24035,24035,24035,24035,24035,36249,23114,23114,23114,23114,28618,28835,23511,23511,23511,23511,34585,20402,24035,27151,24035,26760,23114,27989,23114,23114,36268,20271,23511,24436,23511,29703,30562,24035,24035,24035,26576,23114,23114,23114,23036,29695,23511,23511,23511,23634,24035,24035,23110,23114,23114,23467,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36292,19288,21605,36503,21922,32618,34534,31507,36522,24035,33793,24035,35864,23114,23114,36555,23417,22420,23511,23511,36574,26020,28306,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,33811,22468,23511,23511,23511,23511,23512,36592,24035,24035,36625,24035,24035,23113,23114,32961,23114,23114,29618,29700,23511,29086,23511,23511,34585,20402,36644,24035,24035,24036,29740,23114,23114,23114,29065,36663,31527,23511,23511,23511,30562,24035,24035,24035,26576,23114,23114,23114,23036,29695,23511,23511,23511,23634,24035,24035,23110,23114,23114,23467,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36079,19288,21605,31451,23112,36684,23511,36700,29939,24035,24035,24035,30185,23114,23114,23114,27526,22420,23511,23511,23511,32865,28306,19803,36743,24035,27017,24035,26576,27535,23114,31432,23114,33811,22468,33271,23511,32128,23511,23512,24694,24035,27196,24035,24035,24035,23113,32459,23114,23114,23114,28618,29700,33829,36762,23511,23511,34585,20402,24035,36746,24035,29722,23114,23114,34437,23114,34907,20271,23511,23511,18801,23511,23206,24035,24035,24035,26576,23114,23114,23114,23036,29695,23511,23511,23511,36837,24035,24035,33739,23114,23114,25094,23511,23261,23628,24035,36780,23111,24073,19874,27078,35344,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22720,19288,36799,36866,17466,36890,36864,21991,22211,22987,17556,17575,22288,17486,17509,17525,18373,17631,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,36883,36906,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,22705,19288,19457,36866,17466,36890,36866,19375,22971,22987,17556,17575,22288,17486,17509,17525,18373,18855,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36124,19288,36951,36866,17466,36890,36866,21991,22404,22987,17556,17575,22288,17486,17509,17525,18373,18567,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,36979,36995,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36139,19288,19457,36866,17466,36890,36866,21991,22971,22987,17556,17575,22288,17486,17509,17525,18373,18027,22984,17553,17572,22285,18462,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,17619,22083,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,36139,19288,21529,24035,23112,23033,23511,31507,25377,24035,24035,24035,24036,23114,23114,23114,23114,37040,23511,23511,23511,23511,28086,19803,24035,24035,24035,24035,26576,23114,23114,23114,23114,24254,37079,23511,23511,23511,23511,23512,34766,24035,24035,24035,24035,24035,23113,23114,23114,23114,23114,28618,29700,23511,23511,23511,23511,34585,20402,24035,24035,24035,24036,23114,23114,23114,23114,23029,20271,23511,23511,23511,23511,30562,24035,24035,24035,26576,23114,23114,23114,23036,29695,23511,23511,23511,23634,24035,24035,23110,23114,23114,23467,23511,23261,23628,24035,24035,23111,23114,19874,27078,27689,19830,24035,23112,19872,27741,23266,24036,23114,30243,19829,26577,26597,20211,23008,19876,20208,23007,20046,20132,26578,27685,20141,24569,31691,19787,29304,20268,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,37112,37160,18469,36866,17466,36890,36866,17656,37174,22987,17556,17575,22288,17486,17509,17525,18373,18537,22984,17553,17572,22285,18780,17990,18622,19411,20306,17996,17689,17470,17591,20896,17468,36883,36906,36867,19404,20299,36866,17647,17862,18921,19514,17705,20311,37017,17728,17756,17784,17800,17825,17854,18403,18928,19521,17712,37008,37024,17878,18884,17900,17922,17944,18178,17960,18012,18381,18064,18218,17884,18890,17906,17928,18102,25022,18130,36931,36963,17493,18150,18166,18214,25010,25026,18134,36935,18262,18278,18294,18320,18336,18361,18397,18274,22096,18304,18448,18485,18523,18553,18583,19149,18638,18497,19656,18664,18680,18507,18696,19164,18712,18737,17681,22026,20906,20915,22054,17838,17450,22022,18765,19225,18841,18871,18906,19241,19257,18976,19041,19056,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,19058,53264,18,49172,57366,24,8192,28,102432,127011,110630,114730,106539,127011,127011,127011,53264,18,18,0,0,57366,0,24,24,24,0,28,28,28,28,102432,0,0,127011,0,2220032,110630,0,0,0,114730,106539,0,2170880,2170880,2170880,2170880,0,0,0,2170880,2170880,2170880,3002368,2170880,2170880,2170880,2170880,2170880,2170880,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2576384,2215936,2215936,2215936,2416640,2424832,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2543616,2215936,2215936,2215936,2215936,2215936,2629632,2215936,2617344,2215936,2215936,2215936,2215936,2215936,2215936,2691072,2215936,2707456,2215936,2715648,2215936,2723840,2764800,2215936,2215936,2797568,2215936,2822144,2215936,2215936,2854912,2215936,2215936,2215936,2912256,2215936,2215936,2215936,2215936,2215936,2215936,2215936,0,0,0,180224,0,0,2174976,0,0,2170880,2617344,2170880,2170880,2170880,2170880,2170880,2170880,2691072,2170880,2707456,2170880,2715648,2170880,2723840,2764800,2170880,2170880,2797568,2170880,2170880,2797568,2170880,2822144,2170880,2170880,2854912,2170880,2170880,2170880,2912256,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2215936,2215936,2215936,2215936,2609152,2215936,2215936,2215936,2215936,2215936,2215936,2654208,2215936,2215936,2215936,2215936,2215936,2215936,2215936,0,0,0,184599,280,0,2174976,0,0,2215936,3117056,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,0,544,0,546,0,0,2179072,0,0,0,552,0,0,2170880,2170880,2170880,3117056,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,0,0,0,2158592,2158592,2232320,2232320,0,2240512,2240512,0,0,0,644,0,0,0,0,0,0,2170880,2170880,2170880,2170880,2170880,2170880,3129344,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2215936,2215936,2215936,2400256,2215936,2215936,2215936,2215936,2711552,2170880,2170880,2170880,2170880,2170880,2760704,2768896,2789376,2813952,2170880,2170880,2170880,2875392,2904064,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2453504,2457600,2215936,2215936,2215936,2215936,2215936,2215936,2215936,0,167936,0,0,0,0,2174976,0,0,2215936,2215936,2514944,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2592768,2215936,2215936,2215936,2215936,2215936,2215936,2215936,32768,0,0,0,0,0,2174976,32768,0,2633728,2215936,2215936,2215936,2215936,2215936,2215936,2711552,2215936,2215936,2215936,2215936,2215936,2760704,2768896,2789376,2813952,2215936,2215936,2215936,2875392,2904064,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,0,0,0,0,0,0,2174976,0,65819,2215936,2215936,3031040,2215936,3055616,2215936,2215936,2215936,2215936,3092480,2215936,2215936,3125248,2215936,2215936,2215936,2215936,2215936,2215936,3002368,2215936,2215936,2170880,2170880,2494464,2170880,2170880,0,0,2215936,2215936,2215936,2215936,2215936,2215936,3198976,2215936,0,0,0,0,0,0,0,0,0,0,2170880,2170880,2170880,2170880,2170880,2170880,0,0,0,2379776,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2445312,2170880,2465792,2473984,2170880,2170880,2170880,2170880,2170880,2170880,2523136,2170880,2170880,2641920,2170880,2170880,2170880,2699264,2170880,2727936,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2879488,2170880,2916352,2170880,2170880,2170880,2879488,2170880,2916352,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,3026944,2170880,2170880,3063808,2170880,2170880,3112960,2170880,2170880,3133440,2170880,2170880,3112960,2170880,2170880,3133440,2170880,2170880,2170880,3162112,2170880,2170880,3182592,3186688,2170880,2379776,2215936,2523136,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2596864,2215936,2621440,2215936,2215936,2641920,2215936,2215936,0,0,0,0,0,0,2179072,548,0,0,0,0,287,2170880,0,2170880,2170880,2170880,2400256,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,3117056,2170880,2170880,2170880,2170880,2215936,2215936,2699264,2215936,2727936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2879488,2215936,2916352,2215936,2215936,0,0,0,0,188416,0,2179072,0,0,0,0,0,287,2170880,0,2171019,2171019,2171019,2400395,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,3031179,2171019,3055755,2171019,2171019,2215936,3133440,2215936,2215936,2215936,3162112,2215936,2215936,3182592,3186688,2215936,0,0,0,0,0,0,0,0,0,0,2171019,2171019,2171019,2171019,2171019,2171019,2523275,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2597003,2171019,2621579,2170880,2170880,2170880,3162112,2170880,2170880,3182592,3186688,2170880,0,0,0,2170880,2170880,2170880,2170880,2170880,2170880,0,53264,0,18,18,24,24,0,4337664,28,2170880,2170880,2170880,2629632,2170880,2170880,2170880,2170880,2719744,2744320,2170880,2170880,2170880,2834432,2838528,2170880,2908160,2170880,2170880,2936832,2215936,2215936,2215936,2215936,2719744,2744320,2215936,2215936,2215936,2834432,2838528,2215936,2908160,2215936,2215936,2936832,2215936,2215936,2985984,2215936,2994176,2215936,2215936,3014656,2215936,3059712,3076096,3088384,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2445312,2215936,2465792,2473984,2215936,2215936,2215936,2215936,2215936,2215936,2171166,2171166,2171166,2171166,2171166,0,0,0,2171166,2171166,2171166,2171166,2171166,2171166,2171019,2171019,2494603,2171019,2171019,2215936,2215936,2215936,3215360,0,0,0,0,0,0,0,0,0,0,0,0,0,2379776,2170880,2170880,2170880,2170880,2985984,2170880,2994176,2170880,2170880,3016168,2170880,3059712,3076096,3088384,2170880,2170880,2170880,2170880,2170880,2170880,0,53264,0,18,18,124,124,0,128,128,2170880,2170880,2170880,3215360,0,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2486272,2170880,2170880,2506752,2170880,2170880,2170880,2535424,2539520,2170880,2170880,2588672,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2920448,2170880,2170880,2170880,2990080,2170880,2170880,2170880,2170880,3051520,2170880,2170880,2170880,2170880,2170880,2170880,3170304,0,2387968,2392064,2170880,2170880,2433024,2170880,2170880,2170880,3170304,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2486272,2215936,2215936,2506752,2215936,2215936,2215936,2535424,2539520,2215936,2215936,2588672,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,0,0,0,0,0,0,2174976,136,0,2215936,2215936,2920448,2215936,2215936,2215936,2990080,2215936,2215936,2215936,2215936,3051520,2215936,2215936,2215936,2215936,2215936,2215936,2215936,3108864,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,3026944,2215936,2215936,3063808,2215936,2215936,3112960,2215936,2215936,2215936,3170304,0,0,0,0,0,0,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2453504,2457600,2170880,2170880,2170880,2486272,2170880,2170880,2506752,2170880,2170880,2170880,2537049,2539520,2170880,2170880,2588672,2170880,2170880,2170880,1508,2170880,2170880,2170880,1512,2170880,2920448,2170880,2170880,2170880,2990080,2170880,2170880,2170880,2461696,2170880,2170880,2170880,2510848,2170880,2170880,2170880,2170880,2580480,2170880,2605056,2637824,2170880,2170880,18,0,0,0,0,0,0,0,0,2220032,0,0,0,0,0,0,0,2170880,2170880,2170880,2170880,2686976,2748416,2170880,2170880,2170880,2924544,2170880,2170880,2170880,2170880,2170880,2170880,2170880,3121152,2170880,2170880,3145728,3158016,3166208,2170880,2420736,2428928,2170880,2478080,2170880,2170880,2170880,2170880,0,0,2170880,2170880,2170880,2170880,2646016,2670592,0,0,3145728,3158016,3166208,2387968,2392064,2215936,2215936,2433024,2215936,2461696,2215936,2215936,2215936,2510848,2215936,2215936,0,0,0,0,0,0,2179072,0,0,0,0,0,0,2170880,2215936,2215936,2580480,2215936,2605056,2637824,2215936,2215936,2686976,2748416,2215936,2215936,2215936,2924544,2215936,2215936,0,0,0,0,0,0,2179072,0,0,0,0,0,286,2170880,2215936,2215936,2215936,2215936,2215936,3121152,2215936,2215936,3145728,3158016,3166208,2387968,2392064,2170880,2170880,2433024,2170880,2461696,2170880,2170880,2170880,2510848,2170880,2170880,1625,2170880,2170880,2580480,2170880,2605056,2637824,2170880,647,2170880,2170880,2170880,2400256,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2576384,2170880,2170880,2170880,2170880,2170880,2609152,2170880,2170880,2686976,0,0,2748416,2170880,2170880,0,2170880,2924544,2170880,2170880,2170880,2170880,2170880,2170880,0,53264,0,18,18,24,0,0,28,28,2170880,3141632,2215936,2420736,2428928,2215936,2478080,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2646016,2670592,2752512,2756608,2846720,2961408,2215936,2998272,2215936,3010560,2215936,2215936,2215936,3141632,2170880,2420736,2428928,2752512,2756608,0,2846720,2961408,2170880,2998272,2170880,3010560,2170880,2170880,2170880,3141632,2170880,2170880,2490368,2215936,2490368,2215936,2215936,2215936,2547712,2555904,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,0,0,0,0,0,0,2174976,245760,0,3129344,2170880,2170880,2490368,2170880,2170880,2170880,0,0,2547712,2555904,2170880,2170880,2170880,0,0,0,0,0,0,0,0,0,2220032,0,0,45056,0,2584576,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2170880,2170880,2170880,2170880,0,0,0,2170880,2170880,2158592,0,0,0,0,0,0,0,0,2220032,0,0,0,0,0,0,0,0,1482,97,97,97,97,97,97,97,1354,97,97,97,97,97,97,97,97,1148,97,97,97,97,97,97,97,2584576,2170880,2170880,1512,0,2170880,2170880,2170880,2170880,2170880,2170880,2441216,2170880,2527232,2170880,2600960,2170880,2850816,2170880,2170880,2170880,3022848,2215936,2441216,2215936,2527232,2215936,2600960,2215936,2850816,2215936,2215936,0,0,0,0,0,0,2179072,0,0,0,0,0,287,2170880,2215936,3022848,2170880,2441216,2170880,2527232,0,0,2170880,2600960,2170880,0,2850816,2170880,2170880,2170880,2170880,2170880,2523136,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2596864,2170880,2621440,2170880,2170880,2641920,2170880,2170880,2170880,3022848,2170880,2519040,2170880,2170880,2170880,2170880,2170880,2215936,2519040,2215936,2215936,2215936,2215936,2215936,2170880,2170880,2170880,2453504,2457600,2170880,2170880,2170880,2170880,2170880,2170880,2514944,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2592768,2170880,2170880,2519040,0,2024,2170880,2170880,0,2170880,2170880,2170880,2396160,2170880,2170880,2170880,2170880,3018752,2396160,2215936,2215936,2215936,2215936,3018752,2396160,0,2024,2170880,2170880,2170880,2170880,3018752,2170880,2650112,2965504,2170880,2215936,2650112,2965504,2215936,0,0,2170880,2650112,2965504,2170880,2551808,2170880,2551808,2215936,0,0,0,0,37,110630,0,0,0,114730,106539,41098,45,45,141,45,45,67,67,67,67,67,224,67,67,238,67,67,67,67,67,67,67,1288,67,67,67,67,67,67,67,67,67,469,67,67,67,67,67,67,0,2551808,2170880,2170880,2215936,0,2170880,2170880,2215936,0,2170880,2170880,2215936,0,2170880,2977792,2977792,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,53264,18,49172,57366,24,8192,29,102432,127011,110630,114730,106539,127011,127011,127011,53264,18,18,49172,0,0,0,24,24,24,0,28,28,28,28,102432,127,0,0,0,0,0,0,0,0,0,0,140,2170880,2170880,2170880,2416640,0,0,0,0,2220032,110630,0,0,0,114730,106539,136,2170880,2170880,2170880,2170880,2170880,2170880,0,53264,0,4256099,4256099,24,24,0,28,28,2170880,2461696,2170880,2170880,2170880,2510848,2170880,2170880,0,2170880,2170880,2580480,2170880,2605056,2637824,2170880,2170880,2170880,2547712,2555904,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,3129344,2215936,2215936,543,543,545,545,0,0,2179072,0,550,551,551,0,287,2171166,2171166,18,0,0,0,0,0,0,0,0,2220032,0,0,645,0,0,0,0,37,110630,0,0,0,114730,106539,41098,45,45,45,149,2584576,2170880,2170880,0,0,2170880,2170880,2170880,2170880,2170880,2170880,2441216,2170880,2527232,2170880,2600960,2519040,0,0,2170880,2170880,0,2170880,2170880,2170880,2396160,2170880,2170880,2170880,2170880,3018752,2396160,2215936,2215936,2215936,2215936,3018752,2396160,0,0,2170880,2170880,2170880,2170880,3018752,2170880,2650112,2965504,53264,18,49172,57366,24,155648,28,102432,155648,155687,114730,106539,0,0,155648,53264,18,18,49172,0,57366,0,24,24,24,0,28,28,28,28,102432,0,0,0,0,2220032,0,94208,0,0,114730,106539,0,2170880,2170880,2170880,2170880,2170880,2170880,0,53264,208896,18,278528,24,24,0,28,28,53264,18,159765,57366,24,8192,28,102432,0,110630,114730,106539,0,0,0,53264,18,18,49172,0,57366,0,24,24,24,0,28,139394,28,28,102432,131,0,0,0,2220032,110630,0,0,0,114730,106539,0,2170880,2170880,2170880,2170880,2170880,2170880,32768,53264,0,18,18,24,24,0,28,28,0,546,0,0,2183168,0,0,552,832,2170880,2170880,2170880,2400256,2170880,2170880,2170880,2170880,2170880,2609152,2170880,2170880,2170880,2170880,2170880,2170880,2654208,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2215936,2215936,2215936,2215936,2215936,2215936,3198976,2215936,0,1084,0,1088,0,1092,0,0,0,0,0,41606,0,0,0,0,45,45,45,45,45,937,0,0,0,0,2220032,110630,0,0,0,114730,106539,0,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,3198976,2170880,0,0,644,0,0,0,2215936,3117056,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,0,826,0,828,0,0,2183168,0,0,830,0,2170880,2170880,2170880,2400256,2170880,2170880,2170880,2170880,2592768,2170880,2170880,2170880,2170880,2633728,2170880,2170880,2170880,2170880,2170880,2170880,2711552,2170880,2170880,2170880,2170880,2170880,2760704,53264,18,49172,57366,24,8192,28,172066,172032,110630,172066,106539,0,0,172032,53264,18,18,49172,0,57366,0,24,24,24,16384,28,28,28,28,102432,0,98304,0,0,2220032,110630,0,0,0,0,106539,0,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,3198976,2170880,0,0,45056,0,0,0,53264,18,49172,57366,25,8192,30,102432,0,110630,114730,106539,0,0,176219,53264,18,18,49172,0,57366,0,124,124,124,0,128,128,128,128,102432,128,0,0,0,0,0,0,0,0,0,0,140,2170880,2170880,2170880,2416640,0,546,0,0,2183168,0,65536,552,0,2170880,2170880,2170880,2400256,2170880,2170880,2170880,2170880,2646016,2670592,2752512,2756608,2846720,2961408,2170880,2998272,2170880,3010560,2170880,2170880,2215936,2215936,2215936,2215936,2215936,2215936,3198976,2215936,0,0,0,0,0,0,65536,0,0,0,0,37,110630,0,0,0,114730,106539,41098,45,45,143,45,45,67,67,67,67,67,227,67,67,67,67,67,67,67,67,67,1824,67,1826,67,67,67,67,17,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,32768,120,121,18,18,49172,0,57366,0,24,24,24,0,28,28,28,28,102432,67,67,37139,37139,24853,24853,0,0,2179072,548,0,65820,65820,0,287,97,0,0,97,97,0,97,97,97,45,45,45,45,2033,45,67,67,67,67,0,0,97,97,97,97,45,45,67,67,0,369,0,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,978,0,546,70179,0,2183168,0,0,552,0,97,97,97,97,97,97,97,45,45,45,45,45,45,45,45,45,45,67,67,67,67,67,1013,67,67,67,67,67,67,67,67,67,67,473,67,67,67,67,483,67,67,1025,67,67,67,67,67,67,67,67,67,67,67,67,67,97,97,97,97,97,0,0,97,97,97,97,1119,97,97,97,97,97,97,97,97,97,97,97,97,1359,97,97,97,67,67,1584,67,67,67,67,67,67,67,67,67,67,67,67,67,497,67,67,1659,45,45,45,45,45,45,45,45,45,1667,45,45,45,45,45,169,45,45,45,45,45,45,45,45,45,45,45,1668,45,45,45,45,67,67,1694,67,67,67,67,67,67,67,67,67,67,67,67,67,774,67,67,1713,97,97,97,97,97,97,97,0,97,97,1723,97,97,97,97,0,45,45,45,45,45,45,1538,45,45,45,45,45,1559,45,45,1561,45,45,45,45,45,45,45,687,45,45,45,45,45,45,45,45,448,45,45,45,45,45,45,67,67,67,67,1771,1772,67,67,67,67,67,67,67,67,97,97,97,97,0,0,0,97,67,67,67,67,67,1821,67,67,67,67,67,67,1827,67,67,67,0,0,0,0,0,0,97,97,1614,97,97,97,97,97,603,97,97,605,97,97,608,97,97,97,97,0,1532,45,45,45,45,45,45,45,45,45,45,450,45,45,45,45,67,67,97,97,97,97,97,97,0,0,1839,97,97,97,97,0,0,97,97,97,97,97,45,45,45,45,45,45,45,67,67,67,67,67,67,67,97,1883,97,1885,97,0,1888,0,97,97,0,97,97,1848,97,97,97,97,1852,45,45,45,45,45,45,45,384,391,45,45,45,45,45,45,45,385,45,45,45,45,45,45,45,45,1237,45,45,45,45,45,45,67,0,97,97,97,97,0,0,0,97,97,97,97,97,97,45,45,45,45,45,45,45,1951,45,45,45,45,45,45,45,45,67,67,67,67,1963,97,2023,0,97,97,0,97,97,97,45,45,45,45,45,45,67,67,1994,67,1995,67,67,67,67,67,67,97,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,97,97,0,0,0,0,2220032,110630,0,0,0,114730,106539,137,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2793472,2805760,2170880,2830336,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,3031040,2170880,3055616,2170880,2170880,67,67,37139,37139,24853,24853,0,0,281,549,0,65820,65820,0,287,97,0,0,97,97,0,97,97,97,45,45,2031,2032,45,45,67,67,67,67,67,67,67,67,67,67,67,67,1769,67,0,546,70179,549,549,0,0,552,0,97,97,97,97,97,97,97,45,45,45,45,45,45,1858,45,641,0,0,0,0,41606,926,0,0,0,45,45,45,45,45,45,45,45,45,45,45,45,45,45,456,67,0,0,0,1313,0,0,0,1096,1319,0,0,0,0,97,97,97,97,97,97,97,97,1110,97,97,97,97,67,67,67,67,1301,1476,0,0,0,0,1307,1478,0,0,0,0,0,0,0,0,97,97,97,97,1486,97,1487,97,1313,1480,0,0,0,0,1319,0,97,97,97,97,97,97,97,97,97,566,97,97,97,97,97,97,67,67,67,1476,0,1478,0,1480,0,97,97,97,97,97,97,97,45,1853,45,1855,45,45,45,45,53264,18,49172,57366,26,8192,31,102432,0,110630,114730,106539,0,0,225368,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,32768,53264,18,18,49172,163840,57366,0,24,24,229376,0,28,28,28,229376,102432,0,0,0,0,2220167,110630,0,0,0,114730,106539,0,2171019,2171019,2171019,2171019,2592907,2171019,2171019,2171019,2171019,2633867,2171019,2171019,2171019,2171019,2171019,2171019,2654347,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,3117195,2171019,2171019,2171019,2171019,2240641,0,0,0,0,0,0,0,0,368,0,140,2171019,2171019,2171019,2416779,2424971,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2617483,2171019,2171019,2642059,2171019,2171019,2171019,2699403,2171019,2728075,2171019,2171019,2171019,2171019,2171019,2171019,2171019,3215499,2215936,2215936,2215936,2215936,2215936,2437120,2215936,2215936,2171019,2822283,2171019,2171019,2855051,2171019,2171019,2171019,2912395,2171019,2171019,2171019,2171019,2171019,2171019,2171019,3002507,2171019,2171019,2215936,2215936,2494464,2215936,2215936,2215936,2171166,2171166,2416926,2425118,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2576670,2171166,2617630,2171166,2171166,2171166,2171166,2171166,2171166,2691358,2171166,2707742,2171166,2715934,2171166,2724126,2765086,2171166,2171166,2797854,2171166,2822430,2171166,2171166,2855198,2171166,2171166,2171166,2912542,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2793758,2806046,2171166,2830622,2171166,2171166,2171166,2171166,2171166,2171166,2171166,3109150,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2543902,2171166,2171166,2171166,2171166,2171166,2629918,2793611,2805899,2171019,2830475,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,0,546,0,0,2183168,0,0,552,0,2171166,2171166,2171166,2400542,2171166,2171166,2171166,0,2171166,2171166,2171166,0,2171166,2920734,2171166,2171166,2171166,2990366,2171166,2171166,2171166,2171166,3117342,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,0,53264,0,18,18,4329472,2232445,0,2240641,4337664,2711691,2171019,2171019,2171019,2171019,2171019,2760843,2769035,2789515,2814091,2171019,2171019,2171019,2875531,2904203,2171019,2171019,3092619,2171019,2171019,3125387,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,3199115,2171019,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2453504,2457600,2215936,2215936,2215936,2215936,2215936,2215936,2793472,2805760,2215936,2830336,2215936,2215936,2215936,2215936,2215936,2215936,2170880,2170880,2170880,2170880,2170880,0,0,0,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2494464,2170880,2170880,2171166,2171166,2634014,2171166,2171166,2171166,2171166,2171166,2171166,2711838,2171166,2171166,2171166,2171166,2171166,2760990,2769182,2789662,2814238,2171166,2171166,2171166,2875678,2904350,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,3199262,2171166,0,0,0,0,0,0,0,0,0,2379915,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2445451,2171019,2465931,2474123,2171019,2171019,3113099,2171019,2171019,3133579,2171019,2171019,2171019,3162251,2171019,2171019,3182731,3186827,2171019,2379776,2879627,2171019,2916491,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,3027083,2171019,2171019,3063947,2699550,2171166,2728222,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2879774,2171166,2916638,2171166,2171166,2171166,2171166,2171166,2609438,2171166,2171166,2171166,2171166,2171166,2171166,2654494,2171166,2171166,2171166,2171166,2171166,2445598,2171166,2466078,2474270,2171166,2171166,2171166,2171166,2171166,2171166,2523422,2171019,2437259,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2543755,2171019,2171019,2171019,2584715,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2908299,2171019,2171019,2936971,2171019,2171019,2986123,2171019,2994315,2171019,2171019,3014795,2171019,3059851,3076235,3088523,2171166,2171166,2986270,2171166,2994462,2171166,2171166,3014942,2171166,3059998,3076382,3088670,2171166,2171166,2171166,2171166,2171166,2171166,3027230,2171166,2171166,3064094,2171166,2171166,3113246,2171166,2171166,3133726,2506891,2171019,2171019,2171019,2535563,2539659,2171019,2171019,2588811,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2691211,2171019,2707595,2171019,2715787,2171019,2723979,2764939,2171019,2171019,2797707,2215936,2215936,3170304,0,0,0,0,0,0,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2453790,2457886,2171166,2171166,2171166,2486558,2171166,2171166,2507038,2171166,2171166,2171166,2535710,2539806,2171166,2171166,2588958,2171166,2171166,2171166,2171166,2515230,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2593054,2171166,2171166,2171166,2171166,3051806,2171166,2171166,2171166,2171166,2171166,2171166,3170590,0,2388107,2392203,2171019,2171019,2433163,2171019,2461835,2171019,2171019,2171019,2510987,2171019,2171019,2171019,2171019,2580619,2171019,2605195,2637963,2171019,2171019,2171019,2920587,2171019,2171019,2171019,2990219,2171019,2171019,2171019,2171019,3051659,2171019,2171019,2171019,2453643,2457739,2171019,2171019,2171019,2171019,2171019,2171019,2515083,2171019,2171019,2171019,2171019,2646155,2670731,2752651,2756747,2846859,2961547,2171019,2998411,2171019,3010699,2171019,2171019,2687115,2748555,2171019,2171019,2171019,2924683,2171019,2171019,2171019,2171019,2171019,2171019,2171019,3121291,2171019,2171019,2171019,3170443,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2486272,2215936,2215936,2506752,3145867,3158155,3166347,2387968,2392064,2215936,2215936,2433024,2215936,2461696,2215936,2215936,2215936,2510848,2215936,2215936,0,0,0,0,0,0,2179072,0,0,0,0,0,553,2170880,2215936,2215936,2215936,2215936,2215936,3121152,2215936,2215936,3145728,3158016,3166208,2388254,2392350,2171166,2171166,2433310,2171166,2461982,2171166,2171166,2171166,2511134,2171166,2171166,0,2171166,2171166,2580766,2171166,2605342,2638110,2171166,2171166,2171166,2171166,3031326,2171166,3055902,2171166,2171166,2171166,2171166,3092766,2171166,2171166,3125534,2171166,2171166,2171166,3162398,2171166,2171166,3182878,3186974,2171166,0,0,0,2171019,2171019,2171019,2171019,3109003,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2215936,2215936,2215936,2400256,2215936,2215936,2215936,2215936,2171166,2687262,0,0,2748702,2171166,2171166,0,2171166,2924830,2171166,2171166,2171166,2171166,2171166,2171166,2171166,2597150,2171166,2621726,2171166,2171166,2642206,2171166,2171166,2171166,2171166,3121438,2171166,2171166,3146014,3158302,3166494,2171019,2420875,2429067,2171019,2478219,2171019,2171019,2171019,2171019,2547851,2556043,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,3129483,2215936,2171019,3141771,2215936,2420736,2428928,2215936,2478080,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2646016,2670592,2752512,2756608,2846720,2961408,2215936,2998272,2215936,3010560,2215936,2215936,2215936,3141632,2171166,2421022,2429214,2171166,2478366,2171166,2171166,2171166,2171166,0,0,2171166,2171166,2171166,2171166,2646302,2670878,0,0,0,0,37,110630,0,0,0,114730,106539,0,45,45,45,45,45,1405,1406,45,45,45,45,1409,45,45,45,45,45,1415,45,45,45,45,45,45,45,45,45,45,1238,45,45,45,45,67,2752798,2756894,0,2847006,2961694,2171166,2998558,2171166,3010846,2171166,2171166,2171166,3141918,2171019,2171019,2490507,3129344,2171166,2171166,2490654,2171166,2171166,2171166,0,0,2547998,2556190,2171166,2171166,2171166,0,0,0,0,37,110630,0,0,0,114730,106539,41098,45,45,45,45,167,45,45,45,45,185,187,45,45,198,45,45,0,2171166,2171166,2171166,2171166,2171166,2171166,3129630,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2576523,2171019,2171019,2171019,2171019,2171019,2609291,2171019,2215936,2215936,2215936,2215936,2215936,2215936,3002368,2215936,2215936,2171166,2171166,2494750,2171166,2171166,0,0,0,0,37,110630,0,0,0,114730,106539,41098,45,45,45,147,2584576,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2171166,2171166,2171166,2171166,0,0,0,2171166,2171166,2171166,2171166,0,0,0,2171166,2171166,2171166,3002654,2171166,2171166,2171019,2171019,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,0,0,0,0,0,0,2175257,0,0,2584862,2171166,2171166,0,0,2171166,2171166,2171166,2171166,2171166,2171019,2441355,2171019,2527371,2171019,2601099,2171019,2850955,2171019,2171019,2171019,3022987,2215936,2441216,2215936,2527232,2215936,2600960,2215936,2850816,2215936,2215936,0,0,0,0,0,0,2179072,0,0,0,0,69632,287,2170880,2215936,3022848,2171166,2441502,2171166,2527518,0,0,2171166,2601246,2171166,0,2851102,2171166,2171166,2171166,2171166,2720030,2744606,2171166,2171166,2171166,2834718,2838814,2171166,2908446,2171166,2171166,2937118,3023134,2171019,2519179,2171019,2171019,2171019,2171019,2171019,2215936,2519040,2215936,2215936,2215936,2215936,2215936,2171166,2171166,2171166,3215646,0,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2171019,2486411,2171019,2171019,2171019,2629771,2171019,2171019,2171019,2171019,2719883,2744459,2171019,2171019,2171019,2834571,2838667,2171019,2519326,0,0,2171166,2171166,0,2171166,2171166,2171166,2396299,2171019,2171019,2171019,2171019,3018891,2396160,2215936,2215936,2215936,2215936,3018752,2396446,0,0,2171166,2171166,2171166,2171166,3019038,2171019,2650251,2965643,2171019,2215936,2650112,2965504,2215936,0,0,2171166,2650398,2965790,2171166,2551947,2171019,2551808,2215936,0,0,0,0,37,110630,0,0,0,114730,106539,41098,45,45,144,45,45,67,67,67,67,67,228,67,67,67,67,67,67,67,67,67,1929,97,97,97,97,0,0,0,2552094,2171166,2171019,2215936,0,2171166,2171019,2215936,0,2171166,2171019,2215936,0,2171166,2977931,2977792,2978078,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,1321,97,131072,0,0,0,0,0,0,0,0,0,2170880,2170880,2170880,2170880,2170880,2170880,0,53264,0,18,18,24,24,0,28,28,0,140,0,2379776,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2445312,2170880,2465792,2473984,2170880,2170880,2170880,2584576,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2170880,2170880,2170880,3162112,2170880,2170880,3182592,3186688,2170880,0,140,0,2170880,2170880,2170880,2170880,2170880,2170880,2170880,3002368,2170880,2170880,2215936,2215936,2494464,2215936,2215936,2215936,2215936,2215936,2215936,3215360,544,0,0,0,544,0,546,0,0,0,546,0,0,2183168,0,0,552,0,2170880,2170880,2170880,2400256,2170880,2170880,2170880,0,2170880,2170880,2170880,0,2170880,2920448,2170880,2170880,2170880,2990080,2170880,2170880,552,0,0,0,552,0,287,0,2170880,2170880,2170880,2170880,2170880,2437120,2170880,2170880,18,0,0,0,0,0,0,0,0,2220032,0,0,644,0,2215936,2215936,3170304,544,0,546,0,552,0,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,3198976,2170880,0,0,0,140,0,0,53264,18,49172,57366,24,8192,28,102432,249856,110630,114730,106539,0,0,32768,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,151640,53264,18,18,49172,0,57366,0,24,24,24,0,28,28,28,28,0,0,0,0,0,0,0,0,0,0,0,2170880,2170880,2170880,2416640,53264,18,49172,57366,24,8192,28,102432,253952,110630,114730,106539,0,0,32856,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,192512,53264,18,18,49172,0,57366,0,2232445,184320,2232445,0,2240641,2240641,184320,2240641,102432,0,0,0,221184,2220032,110630,0,0,0,114730,106539,0,2170880,2170880,2170880,2170880,2170880,2170880,2170880,3108864,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2215936,0,0,0,45056,0,0,0,0,0,0,2170880,2170880,2170880,2170880,2170880,2170880,0,53264,0,18,18,24,24,0,127,127,53264,18,49172,258071,24,8192,28,102432,0,110630,114730,106539,0,0,32768,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,204800,53264,18,49172,57366,24,27,28,102432,0,110630,114730,106539,0,0,0,53264,18,49172,57366,24,8192,28,33,0,33,33,33,0,0,0,53264,18,18,49172,0,57366,0,24,24,24,16384,28,28,28,28,0,0,0,0,0,0,0,0,0,0,139,2170880,2170880,2170880,2416640,67,67,37139,37139,24853,24853,0,70179,0,0,0,65820,65820,369,287,97,0,0,97,97,0,97,97,97,45,2030,45,45,45,45,67,1573,67,67,67,67,67,67,67,67,67,67,67,1699,67,67,67,67,25403,546,70179,0,0,66365,66365,552,0,97,97,97,97,97,97,97,97,1355,97,97,97,1358,97,97,97,641,0,0,0,925,41606,0,0,0,0,45,45,45,45,45,45,45,1187,45,45,45,45,45,0,1480,0,0,0,0,1319,0,97,97,97,97,97,97,97,97,97,592,97,97,97,97,97,97,97,97,97,97,1531,45,45,45,45,45,45,45,45,45,45,45,45,1680,45,45,45,641,0,924,0,925,41606,0,0,0,0,45,45,45,45,45,45,1186,45,45,45,45,45,45,67,67,37139,37139,24853,24853,0,70179,282,0,0,65820,65820,369,287,97,0,0,97,97,0,97,2028,97,45,45,45,45,45,45,67,67,67,67,67,67,67,67,67,67,1767,67,67,67,0,0,0,0,0,0,1612,97,97,97,97,97,97,0,1785,97,97,97,97,97,97,0,0,97,97,97,97,1790,97,0,0,2170880,2170880,3051520,2170880,2170880,2170880,2170880,2170880,2170880,3170304,241664,2387968,2392064,2170880,2170880,2433024,53264,19,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,274432,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,270336,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,1134711,53264,18,49172,57366,24,8192,28,102432,0,1126440,1126440,1126440,0,0,1126400,53264,18,49172,57366,24,8192,28,102432,36,110630,114730,106539,0,0,217088,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,94,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,96,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,24666,53264,18,18,49172,0,57366,0,24,24,24,126,28,28,28,28,102432,53264,122,123,49172,0,57366,0,24,24,24,0,28,28,28,28,102432,2170880,2170880,4256099,0,0,0,0,0,0,0,0,2220032,0,0,0,0,0,0,0,0,1319,0,0,0,0,97,97,97,97,97,97,97,1109,97,97,97,97,1113,132,0,0,0,37,110630,0,0,0,114730,106539,41098,45,45,45,146,150,45,45,45,45,45,175,45,180,45,186,45,189,45,45,203,67,256,67,67,270,67,67,0,37139,24853,0,0,0,0,41098,65820,97,97,97,293,297,97,97,97,97,97,322,97,327,97,333,97,0,0,97,2026,0,2027,97,97,45,45,45,45,45,45,67,67,67,1685,67,67,67,67,67,67,67,1690,67,336,97,97,350,97,97,0,53264,0,18,18,24,24,356,28,28,0,0,0,0,0,0,0,0,0,0,140,2170880,2170880,2170880,2416640,2424832,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2617344,2170880,45,439,45,45,45,45,45,45,45,45,45,45,45,45,45,67,67,67,67,67,67,67,67,67,67,525,67,67,67,67,67,67,67,67,67,67,67,0,0,0,0,0,0,0,0,0,0,0,0,97,97,97,97,622,97,97,97,97,97,97,97,97,97,97,97,97,1524,97,97,1527,369,648,45,45,45,45,45,45,45,45,45,659,45,45,45,45,408,45,45,45,45,45,45,45,45,45,45,45,1239,45,45,45,67,729,45,45,45,45,45,45,45,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,762,67,746,67,67,67,67,67,67,67,67,67,759,67,67,67,67,0,0,0,1477,0,1086,0,0,0,1479,0,1090,67,67,796,67,67,799,67,67,67,67,67,67,67,67,67,67,67,67,1291,67,67,67,811,67,67,67,67,67,816,67,67,67,67,67,67,67,37689,544,25403,546,70179,0,0,66365,66365,552,833,97,97,97,97,97,97,97,97,1380,0,0,0,45,45,45,45,45,1185,45,45,45,45,45,45,45,386,45,45,45,45,45,45,45,45,1810,45,45,45,45,45,45,67,97,97,844,97,97,97,97,97,97,97,97,97,857,97,97,97,0,97,97,97,0,97,97,97,97,97,97,97,97,97,97,45,45,45,97,97,97,894,97,97,897,97,97,97,97,97,97,97,97,97,0,0,0,1382,45,45,45,97,909,97,97,97,97,97,914,97,97,97,97,97,97,97,923,67,67,1079,67,67,67,67,67,37689,1085,25403,1089,66365,1093,0,0,0,0,37,110630,0,0,0,114730,106539,41098,45,45,45,148,1114,97,97,97,97,97,97,1122,97,97,97,97,97,97,97,97,97,606,97,97,97,97,97,97,97,97,97,97,1173,97,97,97,97,97,12288,0,925,0,1179,0,0,0,0,37,110630,0,0,0,114730,106539,41098,45,45,145,45,45,67,67,67,67,67,1762,67,67,67,1766,67,67,67,67,67,67,528,67,67,67,67,67,67,67,67,67,97,97,97,97,97,0,1934,67,67,1255,67,67,67,67,67,67,67,67,67,67,67,67,67,1035,67,67,67,67,67,67,1297,67,67,67,67,67,67,0,0,0,0,0,0,97,97,97,97,97,97,97,97,97,97,1111,97,97,97,97,97,97,1327,97,97,97,97,97,97,97,97,97,97,97,97,33344,97,97,97,1335,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,0,97,97,1377,97,97,97,97,97,97,0,1179,0,45,45,45,45,670,45,45,45,45,45,45,45,45,45,45,45,430,45,45,45,45,67,67,1438,67,67,1442,67,67,67,67,67,67,67,67,67,67,67,67,1592,67,67,67,1451,67,67,67,67,67,67,67,67,67,67,1458,67,67,67,67,0,0,1305,0,0,0,0,0,1311,0,0,0,1317,0,0,0,0,0,0,0,97,97,1322,97,97,1491,97,97,1495,97,97,97,97,97,97,97,97,97,97,0,45,45,45,45,45,45,45,45,45,45,45,45,1551,45,1553,45,1504,97,97,97,97,97,97,97,97,97,97,1513,97,97,97,97,0,45,45,45,45,1536,45,45,45,45,1540,45,67,67,67,67,67,1585,67,67,67,67,67,67,67,67,67,67,67,67,1700,67,67,67,97,1648,97,97,97,97,97,97,97,97,0,45,45,45,45,45,45,45,45,45,45,1541,0,97,97,97,97,0,1940,0,97,97,97,97,97,97,45,45,2011,45,45,45,2015,67,67,2017,67,67,67,2021,97,67,67,812,67,67,67,67,67,67,67,67,67,67,67,37689,544,97,97,97,910,97,97,97,97,97,97,97,97,97,97,97,923,0,0,0,45,45,45,45,1184,45,45,45,45,1188,45,45,45,45,1414,45,45,45,1417,45,1419,45,45,45,45,45,443,45,45,45,45,45,45,453,45,45,67,67,67,67,1244,67,67,67,67,1248,67,67,67,67,67,67,67,0,37139,24853,0,0,0,282,41098,65820,97,1324,97,97,97,97,1328,97,97,97,97,97,97,97,97,97,0,0,930,45,45,45,45,97,97,97,97,1378,97,97,97,97,0,1179,0,45,45,45,45,671,45,45,45,45,45,45,45,45,45,45,45,975,45,45,45,45,67,67,1923,67,1925,67,67,1927,67,97,97,97,97,97,0,0,97,97,97,97,1985,45,45,45,45,45,45,1560,45,45,45,45,45,45,45,45,45,946,45,45,950,45,45,45,0,97,97,97,1939,0,0,0,97,1943,97,97,1945,97,45,45,45,669,45,45,45,45,45,45,45,45,45,45,45,45,990,45,45,45,67,257,67,67,67,67,67,0,37139,24853,0,0,0,0,41098,65820,337,97,97,97,97,97,0,53264,0,18,18,24,24,356,28,28,0,0,0,0,0,0,0,0,0,0,370,2170880,2170880,2170880,2416640,401,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,67,67,459,461,67,67,67,67,67,67,67,67,475,67,480,67,67,67,67,67,67,1054,67,67,67,67,67,67,67,67,67,67,1698,67,67,67,67,67,484,67,67,487,67,67,67,67,67,67,67,67,67,67,67,67,67,1459,67,67,97,556,558,97,97,97,97,97,97,97,97,572,97,577,97,97,0,0,1896,97,97,97,97,97,97,1903,45,45,45,45,983,45,45,45,45,988,45,45,45,45,45,45,1195,45,45,45,45,45,45,45,45,45,45,1549,45,45,45,45,45,581,97,97,584,97,97,97,97,97,97,97,97,97,97,97,97,97,1153,97,97,369,0,45,45,45,45,45,45,45,45,45,45,45,662,45,45,45,684,45,45,45,45,45,45,45,45,45,45,45,45,1004,45,45,45,67,67,67,749,67,67,67,67,67,67,67,67,67,761,67,67,67,67,67,67,1068,67,67,67,1071,67,67,67,67,1076,794,795,67,67,67,67,67,67,67,67,67,67,67,67,67,67,0,544,97,97,97,97,847,97,97,97,97,97,97,97,97,97,859,97,0,0,2025,97,20480,97,97,2029,45,45,45,45,45,45,67,67,67,1575,67,67,67,67,67,67,67,67,67,1775,67,67,67,97,97,97,97,892,893,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1515,97,993,994,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,992,67,67,67,1284,67,67,67,67,67,67,67,67,67,67,67,67,67,1607,67,67,97,1364,97,97,97,97,97,97,97,97,97,97,97,97,97,97,596,97,45,1556,1557,45,45,45,45,45,45,45,45,45,45,45,45,45,45,696,45,1596,1597,67,67,67,67,67,67,67,67,67,67,67,67,67,67,499,67,97,97,97,1621,97,97,97,97,97,97,97,97,97,97,97,97,97,1346,97,97,97,97,1740,97,97,97,97,45,45,45,45,45,45,45,45,45,45,1678,45,45,45,45,45,67,97,97,97,97,97,97,1836,0,97,97,97,97,97,0,0,97,97,97,1984,97,45,45,45,45,45,45,1808,45,45,45,45,45,45,45,45,67,739,67,67,67,67,67,744,45,45,1909,45,45,45,45,45,45,45,67,1917,67,1918,67,67,67,67,67,67,1247,67,67,67,67,67,67,67,67,67,67,532,67,67,67,67,67,67,1922,67,67,67,67,67,67,67,97,1930,97,1931,97,0,0,97,97,0,97,97,97,45,45,45,45,45,45,67,67,67,67,1576,67,67,67,67,1580,67,67,0,97,97,1938,97,0,0,0,97,97,97,97,97,97,45,45,45,699,45,45,45,704,45,45,45,45,45,45,45,45,987,45,45,45,45,45,45,45,67,67,97,97,97,97,0,0,97,97,97,2006,97,97,97,97,0,45,1533,45,45,45,45,45,45,45,45,45,1416,45,45,45,45,45,45,45,45,722,723,45,45,45,45,45,45,2045,67,67,67,2047,0,0,97,97,97,2051,45,45,67,67,0,0,0,0,925,41606,0,0,0,0,45,45,45,45,45,45,409,45,45,45,45,45,45,45,45,45,1957,45,67,67,67,67,67,1836,97,97,45,67,0,97,45,67,0,97,45,67,0,97,45,45,67,67,67,1761,67,67,67,1764,67,67,67,67,67,67,67,494,67,67,67,67,67,67,67,67,67,787,67,67,67,67,67,67,45,45,420,45,45,422,45,45,425,45,45,45,45,45,45,45,387,45,45,45,45,397,45,45,45,67,460,67,67,67,67,67,67,67,67,67,67,67,67,67,67,515,67,485,67,67,67,67,67,67,67,67,67,67,67,67,67,498,67,67,67,67,67,97,0,2039,97,97,97,97,97,45,45,45,45,1426,45,45,45,67,67,67,67,67,67,67,67,67,1689,67,67,67,97,557,97,97,97,97,97,97,97,97,97,97,97,97,97,97,612,97,582,97,97,97,97,97,97,97,97,97,97,97,97,97,595,97,97,97,97,97,896,97,97,97,97,97,97,97,97,97,97,885,97,97,97,97,97,45,939,45,45,45,45,943,45,45,45,45,45,45,45,45,45,45,1916,67,67,67,67,67,45,67,67,67,67,67,67,67,1015,67,67,67,67,1019,67,67,67,67,67,67,1271,67,67,67,67,67,67,1277,67,67,67,67,67,67,1287,67,67,67,67,67,67,67,67,67,67,804,67,67,67,67,67,1077,67,67,67,67,67,67,67,37689,0,25403,0,66365,0,0,0,0,0,0,0,0,2170880,2170880,2170880,2170880,2170880,2437120,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2543616,2170880,2170880,2170880,2170880,2170880,2629632,1169,97,1171,97,97,97,97,97,97,97,12288,0,925,0,1179,0,0,0,0,925,41606,0,0,0,0,45,45,45,45,936,45,45,67,67,214,67,220,67,67,233,67,243,67,248,67,67,67,67,67,67,1298,67,67,67,67,0,0,0,0,0,0,97,97,97,97,97,1617,97,0,0,0,45,45,45,1183,45,45,45,45,45,45,45,45,45,393,45,45,45,45,45,45,67,67,1243,67,67,67,67,67,67,67,67,67,67,67,67,67,1074,67,67,1281,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,776,1323,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,907,45,1412,45,45,45,45,45,45,45,1418,45,45,45,45,45,45,686,45,45,45,690,45,45,695,45,45,67,67,67,67,67,1465,67,67,67,67,67,67,67,67,67,67,67,97,97,97,1712,97,97,97,97,1741,97,97,97,45,45,45,45,45,45,45,45,45,426,45,45,45,45,45,45,67,67,67,1924,67,67,67,67,67,97,97,97,97,97,0,0,97,97,1983,97,97,45,45,1987,45,1988,45,0,97,97,97,97,0,0,0,1942,97,97,97,97,97,45,45,45,700,45,45,45,45,45,45,45,45,45,45,711,45,45,153,45,45,166,45,176,45,181,45,45,188,191,196,45,204,255,258,263,67,271,67,67,0,37139,24853,0,0,0,282,41098,65820,97,97,97,294,97,300,97,97,313,97,323,97,328,97,97,335,338,343,97,351,97,97,0,53264,0,18,18,24,24,356,28,28,0,0,0,0,0,0,0,0,41098,0,140,45,45,45,45,1404,45,45,45,45,45,45,45,45,45,45,1411,67,67,486,67,67,67,67,67,67,67,67,67,67,67,67,67,1251,67,67,501,67,67,67,67,67,67,67,67,67,67,67,67,513,67,67,67,67,67,67,1443,67,67,67,67,67,67,67,67,67,67,1263,67,67,67,67,67,97,97,583,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1526,97,598,97,97,97,97,97,97,97,97,97,97,97,97,610,97,97,0,97,97,1796,97,97,97,97,97,97,97,45,45,45,45,45,1744,45,45,45,369,0,651,45,653,45,654,45,656,45,45,45,660,45,45,45,45,1558,45,45,45,45,45,45,45,45,1566,45,45,681,45,683,45,45,45,45,45,45,45,45,691,692,694,45,45,45,716,45,45,45,45,45,45,45,45,45,45,45,45,709,45,45,712,45,714,45,45,45,718,45,45,45,45,45,45,45,726,45,45,45,733,45,45,45,45,67,67,67,67,67,67,67,67,67,67,67,67,1691,67,67,747,67,67,67,67,67,67,67,67,67,760,67,67,67,0,0,0,0,0,0,97,1613,97,97,97,97,97,97,1509,97,97,97,97,97,97,97,97,97,0,1179,0,45,45,45,45,67,764,67,67,67,67,768,67,770,67,67,67,67,67,67,67,67,97,97,97,97,0,0,0,1977,67,778,779,781,67,67,67,67,67,67,788,789,67,67,792,793,67,67,67,813,67,67,67,67,67,67,67,67,67,824,37689,544,25403,546,70179,0,0,66365,66365,552,0,836,97,838,97,839,97,841,97,97,97,845,97,97,97,97,97,97,97,97,97,858,97,97,0,1728,97,97,97,0,97,97,97,97,97,97,97,97,97,97,45,1802,45,97,97,862,97,97,97,97,866,97,868,97,97,97,97,97,97,0,0,97,97,1788,97,97,97,0,0,97,97,876,877,879,97,97,97,97,97,97,886,887,97,97,890,891,97,97,97,97,97,97,97,899,97,97,97,903,97,97,97,0,97,97,97,0,97,97,97,97,97,97,97,1646,97,97,97,97,911,97,97,97,97,97,97,97,97,97,922,923,45,955,45,957,45,45,45,45,45,45,45,45,45,45,45,45,195,45,45,45,45,45,981,982,45,45,45,45,45,45,989,45,45,45,45,45,170,45,45,45,45,45,45,45,45,45,45,411,45,45,45,45,45,67,1023,67,67,67,67,67,67,1031,67,1033,67,67,67,67,67,67,67,817,819,67,67,67,67,67,37689,544,67,1065,67,67,67,67,67,67,67,67,67,67,67,67,67,67,516,67,67,1078,67,67,1081,1082,67,67,37689,0,25403,0,66365,0,0,0,0,0,0,0,0,2171166,2171166,2171166,2171166,2171166,2437406,2171166,2171166,97,1115,97,1117,97,97,97,97,97,97,1125,97,1127,97,97,97,0,97,97,97,0,97,97,97,97,1644,97,97,97,0,97,97,97,0,97,97,1642,97,97,97,97,97,97,625,97,97,97,97,97,97,97,97,97,316,97,97,97,97,97,97,97,97,97,1159,97,97,97,97,97,97,97,97,97,97,97,97,97,1502,97,97,97,97,97,1172,97,97,1175,1176,97,97,12288,0,925,0,1179,0,0,0,0,925,41606,0,0,0,0,45,45,45,935,45,45,45,1233,45,45,45,1236,45,45,45,45,45,45,45,67,67,67,67,67,67,1873,67,67,45,45,1218,45,45,45,1223,45,45,45,45,45,45,45,1230,45,45,67,67,215,219,222,67,230,67,67,244,246,249,67,67,67,67,67,67,1882,97,97,97,97,0,0,0,97,97,97,97,97,97,45,1904,45,1905,45,67,67,67,67,67,1258,67,1260,67,67,67,67,67,67,67,67,67,495,67,67,67,67,67,67,67,67,1283,67,67,67,67,67,67,67,1290,67,67,67,67,67,67,67,818,67,67,67,67,67,67,37689,544,67,67,1295,67,67,67,67,67,67,67,67,0,0,0,0,0,0,2174976,0,0,97,97,97,1326,97,97,97,97,97,97,97,97,97,97,97,97,97,1514,97,97,97,97,97,1338,97,1340,97,97,97,97,97,97,97,97,97,97,97,1500,97,97,1503,97,1363,97,97,97,97,97,97,97,1370,97,97,97,97,97,97,97,563,97,97,97,97,97,97,578,97,1375,97,97,97,97,97,97,97,97,0,1179,0,45,45,45,45,685,45,45,45,45,45,45,45,45,45,45,45,1003,45,45,45,45,67,67,67,1463,67,67,67,67,67,67,67,67,67,67,67,67,67,1778,97,97,97,97,97,1518,97,97,97,97,97,97,97,97,97,97,97,97,609,97,97,97,45,1542,45,45,45,45,45,45,45,1548,45,45,45,45,45,1554,45,1570,1571,45,67,67,67,67,67,67,1578,67,67,67,67,67,67,67,1055,67,67,67,67,67,1061,67,67,1582,67,67,67,67,67,67,67,1588,67,67,67,67,67,1594,67,67,67,67,67,97,2038,0,97,97,97,97,97,2044,45,45,45,995,45,45,45,45,1e3,45,45,45,45,45,45,45,1809,45,1811,45,45,45,45,45,67,1610,1611,67,1476,0,1478,0,1480,0,97,97,97,97,97,97,1618,1647,1649,97,97,97,1652,97,1654,1655,97,0,45,45,45,1658,45,45,67,67,216,67,67,67,67,234,67,67,67,67,252,254,1845,97,97,97,97,97,97,97,45,45,45,45,45,45,45,45,945,45,947,45,45,45,45,45,67,67,67,67,67,1881,97,97,97,97,97,0,0,0,97,97,97,97,97,1902,45,45,45,45,45,45,1908,45,45,45,45,45,45,45,45,67,67,67,67,67,67,67,67,67,67,1921,67,67,67,67,67,67,67,67,97,97,97,97,97,0,0,0,97,97,0,97,1937,97,97,1940,0,0,97,97,97,97,97,97,1947,1948,1949,45,45,45,1952,45,1954,45,45,45,45,1959,1960,1961,67,67,67,67,67,67,1455,67,67,67,67,67,67,67,67,67,67,757,67,67,67,67,67,67,1964,67,1966,67,67,67,67,1971,1972,1973,97,0,0,0,97,97,1104,97,97,97,97,97,97,97,97,97,97,884,97,97,97,889,97,97,1978,97,0,0,1981,97,97,97,97,45,45,45,45,45,45,736,45,67,67,67,67,67,67,67,67,67,67,67,1018,67,67,67,45,67,67,67,67,0,2049,97,97,97,97,45,45,67,67,0,0,0,0,925,41606,0,0,0,0,45,933,45,45,45,45,1234,45,45,45,45,45,45,45,45,45,45,67,97,97,288,97,97,97,97,97,97,317,97,97,97,97,97,97,0,0,97,1787,97,97,97,97,0,0,45,45,378,45,45,45,45,45,390,45,45,45,45,45,45,45,424,45,45,45,431,433,45,45,45,67,1050,67,67,67,67,67,67,67,67,67,67,67,67,67,67,518,67,97,97,97,1144,97,97,97,97,97,97,97,97,97,97,97,97,632,97,97,97,97,97,97,97,1367,97,97,97,97,97,97,97,97,97,97,97,855,97,97,97,97,67,97,97,97,97,97,97,1837,0,97,97,97,97,97,0,0,0,1897,97,97,97,97,97,45,45,45,45,45,1208,45,45,45,45,45,45,45,45,45,45,724,45,45,45,45,45,97,2010,45,45,45,45,45,45,2016,67,67,67,67,67,67,2022,45,2046,67,67,67,0,0,2050,97,97,97,45,45,67,67,0,0,0,0,925,41606,0,0,0,0,932,45,45,45,45,45,1222,45,45,45,45,45,45,45,45,45,45,1227,45,45,45,45,45,133,0,0,0,37,110630,0,0,0,114730,106539,41098,45,45,45,45,701,702,45,45,705,706,45,45,45,45,45,45,703,45,45,45,45,45,45,45,45,45,719,45,45,45,45,45,725,45,45,45,369,649,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1216,25403,546,70179,0,0,66365,66365,552,834,97,97,97,97,97,97,97,1342,97,97,97,97,97,97,97,97,0,97,97,97,97,97,97,97,1799,97,97,45,45,45,1569,45,45,45,1572,67,67,67,67,67,67,67,67,67,67,67,0,0,0,1306,0,67,67,67,1598,67,67,67,67,67,67,67,67,1606,67,67,1609,97,97,97,1650,97,97,1653,97,97,97,0,45,45,1657,45,45,45,1206,45,45,45,45,45,45,45,45,45,45,45,45,1421,45,45,45,1703,67,67,67,67,67,67,67,67,67,67,97,97,1711,97,97,0,1895,0,97,97,97,97,97,97,45,45,45,45,45,958,45,960,45,45,45,45,45,45,45,45,1913,45,45,1915,67,67,67,67,67,67,67,466,67,67,67,67,67,67,481,67,45,1749,45,45,45,45,45,45,45,45,1755,45,45,45,45,45,173,45,45,45,45,45,45,45,45,45,45,974,45,45,45,45,45,67,67,67,67,67,1773,67,67,67,67,67,67,67,97,97,97,97,1886,0,0,0,97,97,67,2035,2036,67,67,97,0,0,97,2041,2042,97,97,45,45,45,45,1662,45,45,45,45,45,45,45,45,45,45,45,1397,45,45,45,45,151,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,437,205,45,67,67,67,218,67,67,67,67,67,67,67,67,67,67,67,1047,67,67,67,67,97,97,97,97,298,97,97,97,97,97,97,97,97,97,97,97,870,97,97,97,97,97,97,97,97,352,97,0,53264,0,18,18,24,24,0,28,28,0,0,0,0,0,0,365,0,41098,0,140,45,45,45,45,45,1427,45,45,67,67,67,67,67,67,67,1435,520,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1037,617,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,923,45,1232,45,45,45,45,45,45,45,45,45,45,45,45,45,67,67,67,67,1919,67,1759,45,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1021,45,154,45,162,45,45,45,45,45,45,45,45,45,45,45,45,964,45,45,45,206,45,67,67,67,67,221,67,229,67,67,67,67,67,67,67,67,530,67,67,67,67,67,67,67,67,755,67,67,67,67,67,67,67,67,785,67,67,67,67,67,67,67,67,802,67,67,67,807,67,67,67,97,97,97,97,353,97,0,53264,0,18,18,24,24,0,28,28,0,0,0,0,0,0,366,0,0,0,140,2170880,2170880,2170880,2416640,402,45,45,45,45,45,45,45,410,45,45,45,45,45,45,45,674,45,45,45,45,45,45,45,45,389,45,394,45,45,398,45,45,45,45,441,45,45,45,45,45,447,45,45,45,454,45,45,67,67,67,67,67,67,67,67,67,67,67,1768,67,67,67,67,67,488,67,67,67,67,67,67,67,496,67,67,67,67,67,67,67,1774,67,67,67,67,67,97,97,97,97,0,0,97,97,97,0,97,97,97,97,97,97,97,97,67,67,523,67,67,527,67,67,67,67,67,533,67,67,67,540,97,97,97,585,97,97,97,97,97,97,97,593,97,97,97,97,97,97,1784,0,97,97,97,97,97,97,0,0,97,97,97,97,97,97,0,0,0,18,18,24,24,0,28,28,97,97,620,97,97,624,97,97,97,97,97,630,97,97,97,637,713,45,45,45,45,45,45,721,45,45,45,45,45,45,45,45,1197,45,45,45,45,45,45,45,45,730,732,45,45,45,45,45,67,67,67,67,67,67,67,67,67,67,1581,67,45,67,67,67,67,1012,67,67,67,67,67,67,67,67,67,67,67,1059,67,67,67,67,67,1024,67,67,67,67,67,67,67,67,67,67,67,67,67,67,775,67,67,67,67,1066,67,67,67,67,67,67,67,67,67,67,67,67,479,67,67,67,67,67,67,1080,67,67,67,67,37689,0,25403,0,66365,0,0,0,0,0,0,0,287,0,0,0,287,0,2379776,2170880,2170880,97,97,97,1118,97,97,97,97,97,97,97,97,97,97,97,97,920,97,97,0,0,0,0,45,1181,45,45,45,45,45,45,45,45,45,45,45,432,45,45,45,45,45,45,1219,45,45,45,45,45,45,1226,45,45,45,45,45,45,959,45,45,45,45,45,45,45,45,45,184,45,45,45,45,202,45,1241,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1266,67,1268,67,67,67,67,67,67,67,67,67,67,67,67,1279,67,67,67,67,67,272,67,0,37139,24853,0,0,0,0,41098,65820,67,67,67,67,67,1286,67,67,67,67,67,67,67,67,67,1293,67,67,67,1296,67,67,67,67,67,67,67,0,0,0,0,0,281,94,0,0,97,97,97,1366,97,97,97,97,97,97,97,97,97,1373,97,97,18,0,139621,0,0,0,0,0,0,364,0,0,367,0,97,1376,97,97,97,97,97,97,97,0,0,0,45,45,1384,45,45,67,208,67,67,67,67,67,67,237,67,67,67,67,67,67,67,1069,1070,67,67,67,67,67,67,67,0,37140,24854,0,0,0,0,41098,65821,45,1423,45,45,45,45,45,45,67,67,1431,67,67,67,67,67,67,67,1083,37689,0,25403,0,66365,0,0,0,1436,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1830,67,1452,1453,67,67,67,67,1456,67,67,67,67,67,67,67,67,67,771,67,67,67,67,67,67,1461,67,67,67,1464,67,1466,67,67,67,67,67,67,1470,67,67,67,67,67,67,1587,67,67,67,67,67,67,67,67,1595,1489,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1129,97,1505,1506,97,97,97,97,1510,97,97,97,97,97,97,97,97,97,1163,1164,97,97,97,97,97,1516,97,97,97,1519,97,1521,97,97,97,97,97,97,1525,97,97,18,0,139621,0,0,0,0,0,0,364,0,0,367,41606,67,67,67,67,67,1586,67,67,67,67,67,67,67,67,67,67,67,1276,67,67,67,67,67,67,67,67,67,1600,67,67,67,67,67,67,67,67,67,67,67,1301,0,0,0,1307,97,97,1620,97,97,97,97,97,97,97,1627,97,97,97,97,97,97,913,97,97,97,97,919,97,97,97,0,97,97,97,1781,97,97,0,0,97,97,97,97,97,97,0,0,97,97,97,97,97,97,0,1792,1860,45,1862,1863,45,1865,45,67,67,67,67,67,67,67,67,1875,67,1877,1878,67,1880,67,97,97,97,97,97,1887,0,1889,97,97,18,0,139621,0,0,0,0,0,0,364,237568,0,367,0,97,1893,0,0,0,97,1898,1899,97,1901,97,45,45,45,45,45,2014,45,67,67,67,67,67,2020,67,97,1989,45,1990,45,45,45,67,67,67,67,67,67,1996,67,1997,67,67,67,67,67,273,67,0,37139,24853,0,0,0,0,41098,65820,67,67,97,97,97,97,0,0,97,97,2005,0,97,2007,97,97,18,0,139621,0,0,0,642,0,133,364,0,0,367,41606,0,97,97,2056,2057,0,2059,45,67,0,97,45,67,0,97,45,45,67,209,67,67,67,223,67,67,67,67,67,67,67,67,67,786,67,67,67,791,67,67,45,45,940,45,45,45,45,45,45,45,45,45,45,45,45,45,45,727,45,45,67,67,67,67,67,67,67,67,1016,67,67,67,67,67,67,67,67,37689,0,25403,0,66365,0,0,0,133,0,0,0,37,110630,0,0,0,114730,106539,41098,45,45,142,45,45,67,210,67,67,67,225,67,67,239,67,67,67,250,67,67,67,67,67,464,67,67,67,67,67,476,67,67,67,67,67,67,67,1709,67,67,67,97,97,97,97,97,97,0,0,97,97,97,97,97,1843,0,67,259,67,67,67,67,67,0,37139,24853,0,0,0,0,41098,65820,97,97,289,97,97,97,303,97,97,97,97,97,97,97,97,97,97,901,97,97,97,97,97,339,97,97,97,97,97,0,53264,0,18,18,24,24,0,28,28,0,358,0,0,0,0,0,0,41098,0,140,45,45,45,45,45,1953,45,1955,45,45,45,67,67,67,67,67,67,67,1687,1688,67,67,67,67,45,45,405,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1203,45,458,67,67,67,67,67,67,67,67,67,470,477,67,67,67,67,67,67,67,1970,97,97,97,1974,0,0,0,97,1103,97,97,97,97,97,97,97,97,97,97,97,1372,97,97,97,97,67,522,67,67,67,67,67,67,67,67,67,67,67,536,67,67,67,67,67,67,1696,67,67,67,67,67,67,67,1701,67,555,97,97,97,97,97,97,97,97,97,567,574,97,97,97,97,97,301,97,309,97,97,97,97,97,97,97,97,97,900,97,97,97,905,97,97,97,619,97,97,97,97,97,97,97,97,97,97,97,633,97,97,18,0,139621,0,0,362,0,0,0,364,0,0,367,41606,369,649,45,45,45,45,45,45,45,45,45,45,45,45,663,664,67,67,67,67,750,751,67,67,67,67,758,67,67,67,67,67,67,67,1272,67,67,67,67,67,67,67,67,67,1057,1058,67,67,67,67,67,67,67,67,797,67,67,67,67,67,67,67,67,67,67,67,67,512,67,67,67,97,97,97,97,895,97,97,97,97,97,97,97,97,97,97,97,902,97,97,97,97,67,67,1051,67,67,67,67,67,67,67,67,67,67,67,1062,67,67,67,67,67,491,67,67,67,67,67,67,67,67,67,67,67,1302,0,0,0,1308,97,97,97,97,1145,97,97,97,97,97,97,97,97,97,97,97,1139,97,97,97,97,1156,97,97,97,97,97,97,1161,97,97,97,97,97,1166,97,97,18,640,139621,0,641,0,0,0,0,364,0,0,367,41606,67,67,67,67,1257,67,67,67,67,67,67,67,67,67,67,67,0,0,1305,0,0,97,97,1337,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1630,97,67,1474,67,67,0,0,0,0,0,0,0,0,0,0,0,0,0,2380062,2171166,2171166,97,1529,97,97,0,45,45,45,45,45,45,45,45,45,45,45,1228,45,45,45,45,67,67,67,67,1707,67,67,67,67,67,67,97,97,97,97,97,0,0,0,97,1891,1739,97,97,97,97,97,97,45,45,45,45,45,45,45,45,45,1198,45,1200,45,45,45,45,97,97,1894,0,0,97,97,97,97,97,97,45,45,45,45,45,672,45,45,45,45,45,45,45,45,45,45,45,1420,45,45,45,45,67,67,1965,67,1967,67,67,67,97,97,97,97,0,1976,0,97,97,45,67,0,97,45,67,0,97,45,67,0,97,45,97,97,1979,0,0,97,1982,97,97,97,1986,45,45,45,45,45,735,45,45,67,67,67,67,67,67,67,67,67,67,67,67,67,1770,67,67,2e3,97,97,97,2002,0,97,97,97,0,97,97,97,97,97,97,1798,97,97,97,45,45,45,2034,67,67,67,67,97,0,0,2040,97,97,97,97,45,45,45,45,1752,45,45,45,1753,1754,45,45,45,45,45,45,383,45,45,45,45,45,45,45,45,45,675,45,45,45,45,45,45,438,45,45,45,45,45,445,45,45,45,45,45,45,45,45,67,1430,67,67,67,67,67,67,67,67,67,524,67,67,67,67,67,531,67,67,67,67,67,67,67,67,37689,0,25403,0,66365,0,0,1096,97,97,97,621,97,97,97,97,97,628,97,97,97,97,97,97,0,53264,0,18,18,24,24,356,28,28,665,45,45,45,45,45,45,45,45,45,676,45,45,45,45,45,942,45,45,45,45,45,45,45,45,45,45,707,708,45,45,45,45,763,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,809,810,67,67,67,67,783,67,67,67,67,67,67,67,67,67,67,67,0,1303,0,0,0,97,861,97,97,97,97,97,97,97,97,97,97,97,97,97,97,613,97,45,45,956,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1215,45,67,67,67,67,1027,67,67,67,67,1032,67,67,67,67,67,67,67,67,37689,0,25403,0,66365,0,0,1097,1064,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1075,67,1098,0,0,97,97,97,97,97,97,97,97,97,97,97,97,97,331,97,97,97,97,1158,97,97,97,97,97,97,97,97,97,97,97,97,97,594,97,97,1309,0,0,0,1315,0,0,0,0,0,0,0,0,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1374,97,45,45,1543,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1240,67,67,1583,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1252,67,97,97,97,1635,97,97,97,0,97,97,97,97,97,97,97,97,1800,97,45,45,45,97,97,1793,97,97,97,97,97,97,97,97,97,97,45,45,45,1743,45,45,45,1746,45,0,97,97,97,97,97,1851,97,45,45,45,45,1856,45,45,45,45,1864,45,45,67,67,1869,67,67,67,67,1874,67,0,97,97,45,67,2058,97,45,67,0,97,45,67,0,97,45,45,67,211,67,67,67,67,67,67,240,67,67,67,67,67,67,67,1444,67,67,67,67,67,67,67,67,67,509,67,67,67,67,67,67,67,67,67,268,67,67,67,0,37139,24853,0,0,0,0,41098,65820,97,97,290,97,97,97,305,97,97,319,97,97,97,330,97,97,18,640,139621,0,641,0,0,0,0,364,0,643,367,41606,97,97,348,97,97,97,0,53264,0,18,18,24,24,0,28,28,139621,0,0,0,0,364,0,367,41098,369,140,45,45,45,45,380,45,45,45,45,45,45,395,45,45,45,400,369,0,45,45,45,45,45,45,45,45,658,45,45,45,45,45,972,45,45,45,45,45,45,45,45,45,45,427,45,45,45,45,45,745,67,67,67,67,67,67,67,67,756,67,67,67,67,67,67,67,67,37689,1086,25403,1090,66365,1094,0,0,97,843,97,97,97,97,97,97,97,97,854,97,97,97,97,97,97,1121,97,97,97,97,1126,97,97,97,97,45,980,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1400,45,67,67,67,1011,67,67,67,67,67,67,67,67,67,67,67,0,1304,0,0,0,1190,45,45,1193,1194,45,45,45,45,45,1199,45,1201,45,45,45,45,1911,45,45,45,45,45,67,67,67,67,67,67,67,1579,67,67,67,67,45,1205,45,45,45,45,45,45,45,45,1211,45,45,45,45,45,984,45,45,45,45,45,45,45,45,45,45,45,1550,45,45,45,45,45,1217,45,45,45,45,45,45,1225,45,45,45,45,1229,45,45,45,1388,45,45,45,45,45,45,1396,45,45,45,45,45,444,45,45,45,45,45,45,45,45,45,67,67,1574,67,67,67,67,67,67,67,67,67,67,1590,67,67,67,67,67,1254,67,67,67,67,67,1259,67,1261,67,67,67,67,1265,67,67,67,67,67,67,1708,67,67,67,67,97,97,97,97,97,97,0,0,97,97,97,97,97,0,0,67,67,67,67,1285,67,67,67,67,1289,67,67,67,67,67,67,67,67,37689,1087,25403,1091,66365,1095,0,0,97,97,97,97,1339,97,1341,97,97,97,97,1345,97,97,97,97,97,561,97,97,97,97,97,573,97,97,97,97,97,97,1717,97,0,97,97,97,97,97,97,97,591,97,97,97,97,97,97,97,97,97,1329,97,97,97,97,97,97,97,97,97,97,1351,97,97,97,97,97,97,1357,97,97,97,97,97,588,97,97,97,97,97,97,97,97,97,97,568,97,97,97,97,97,97,97,1365,97,97,97,97,1369,97,97,97,97,97,97,97,97,97,1356,97,97,97,97,97,97,45,45,1403,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1399,45,45,45,1413,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1669,45,1422,45,45,1425,45,45,1428,45,1429,67,67,67,67,67,67,67,67,1468,67,67,67,67,67,67,67,67,529,67,67,67,67,67,67,539,67,67,1475,67,0,0,0,0,0,0,0,0,0,0,0,0,140,2170880,2170880,2170880,2416640,97,97,1530,97,0,45,45,1534,45,45,45,45,45,45,45,45,1956,45,45,67,67,67,67,67,67,67,67,67,1599,67,67,1601,67,67,67,67,67,67,67,67,67,803,67,67,67,67,67,67,1632,97,1634,0,97,97,97,1640,97,97,97,1643,97,97,1645,97,97,97,97,97,912,97,97,97,97,97,97,97,97,97,0,0,0,45,45,45,45,45,45,1660,1661,45,45,45,45,1665,1666,45,45,45,45,45,1670,1692,1693,67,67,67,67,67,1697,67,67,67,67,67,67,67,1702,97,97,1714,1715,97,97,97,97,0,1721,1722,97,97,97,97,97,97,1353,97,97,97,97,97,97,97,97,1362,1726,97,0,0,97,97,97,0,97,97,97,1734,97,97,97,97,97,848,849,97,97,97,97,856,97,97,97,97,97,354,0,53264,0,18,18,24,24,0,28,28,45,45,1750,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1681,45,0,1846,97,97,97,97,97,97,45,45,1854,45,45,45,45,1859,67,67,67,1879,67,67,97,97,1884,97,97,0,0,0,97,97,97,1105,97,97,97,97,97,97,97,97,97,97,1344,97,97,97,1347,97,1892,97,0,0,0,97,97,97,1900,97,97,45,45,45,45,45,997,45,45,45,45,45,45,45,45,45,45,1002,45,45,1005,1006,45,67,67,67,67,67,1926,67,67,1928,97,97,97,97,97,0,0,97,97,97,0,97,97,97,97,97,97,1737,97,0,97,97,97,97,0,0,0,97,97,1944,97,97,1946,45,45,45,1544,45,45,45,45,45,45,45,45,45,45,45,45,190,45,45,45,152,155,45,163,45,45,177,179,182,45,45,45,193,197,45,45,45,1672,45,45,45,45,45,1677,45,1679,45,45,45,45,996,45,45,45,45,45,45,45,45,45,45,45,1212,45,45,45,45,67,260,264,67,67,67,67,0,37139,24853,0,0,0,0,41098,65820,97,97,97,295,299,302,97,310,97,97,324,326,329,97,97,97,0,97,97,1639,0,1641,97,97,97,97,97,97,97,97,1511,97,97,97,97,97,97,97,97,1523,97,97,97,97,97,97,97,97,1719,97,97,97,97,97,97,97,97,1720,97,97,97,97,97,97,97,312,97,97,97,97,97,97,97,97,1123,97,97,97,97,97,97,97,340,344,97,97,97,97,0,53264,0,18,18,24,24,0,28,28,139621,0,0,0,0,364,0,367,41098,369,140,45,45,373,375,419,45,45,45,45,45,45,45,45,45,428,45,45,435,45,45,45,1751,45,45,45,45,45,45,45,45,45,45,45,45,1410,45,45,45,67,67,67,505,67,67,67,67,67,67,67,67,67,514,67,67,67,67,67,67,1969,67,97,97,97,97,0,0,0,97,97,45,67,0,97,45,67,0,97,2064,2065,0,2066,45,521,67,67,67,67,67,67,67,67,67,67,534,67,67,67,67,67,67,465,67,67,67,474,67,67,67,67,67,67,67,1467,67,67,67,67,67,67,67,67,67,97,97,97,97,97,1933,0,97,97,97,602,97,97,97,97,97,97,97,97,97,611,97,97,18,640,139621,358,641,0,0,0,0,364,0,0,367,0,618,97,97,97,97,97,97,97,97,97,97,631,97,97,97,97,97,881,97,97,97,97,97,97,97,97,97,97,569,97,97,97,97,97,369,0,45,652,45,45,45,45,45,657,45,45,45,45,45,45,1235,45,45,45,45,45,45,45,45,67,67,67,1432,67,67,67,67,67,67,67,766,67,67,67,67,67,67,67,67,773,67,67,67,0,1305,0,1311,0,1317,97,97,97,97,97,97,97,1624,97,97,97,97,97,97,97,97,0,97,97,97,1724,97,97,97,777,67,67,782,67,67,67,67,67,67,67,67,67,67,67,67,535,67,67,67,67,67,67,67,814,67,67,67,67,67,67,67,67,67,37689,544,25403,546,70179,0,0,66365,66365,552,0,97,837,97,97,97,97,97,97,1496,97,97,97,97,97,97,97,97,97,97,918,97,97,97,97,0,842,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1168,97,97,97,97,864,97,97,97,97,97,97,97,97,871,97,97,97,0,1637,97,97,0,97,97,97,97,97,97,97,97,97,97,1801,45,45,97,875,97,97,880,97,97,97,97,97,97,97,97,97,97,97,1151,1152,97,97,97,67,67,67,1040,67,67,67,67,67,67,67,67,67,67,67,67,790,67,67,67,1180,0,649,45,45,45,45,45,45,45,45,45,45,45,45,45,200,45,45,67,67,67,1454,67,67,67,67,67,67,67,67,67,67,67,67,806,67,67,67,0,0,0,1481,0,1094,0,0,97,1483,97,97,97,97,97,97,304,97,97,318,97,97,97,97,97,97,0,53264,0,18,18,24,24,0,28,28,97,97,97,1507,97,97,97,97,97,97,97,97,97,97,97,97,1332,97,97,97,1619,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1631,97,1633,97,0,97,97,97,0,97,97,97,97,97,97,97,97,97,1381,0,0,45,45,45,45,97,97,1727,0,97,97,97,0,97,97,97,97,97,97,97,97,626,97,97,97,97,97,97,636,45,45,1760,67,67,67,67,67,67,67,1765,67,67,67,67,67,67,67,1299,67,67,67,0,0,0,0,0,0,97,97,97,97,1616,97,97,1803,45,45,45,45,1807,45,45,45,45,45,1813,45,45,45,67,67,1684,67,67,67,67,67,67,67,67,67,67,67,822,67,67,37689,544,67,67,1818,67,67,67,67,1822,67,67,67,67,67,1828,67,67,67,67,67,97,0,0,97,97,97,97,97,45,45,45,2012,2013,45,45,67,67,67,2018,2019,67,67,97,67,97,97,97,1833,97,97,0,0,97,97,1840,97,97,0,0,97,97,97,0,97,97,1733,97,1735,97,97,97,0,97,97,97,1849,97,97,97,45,45,45,45,45,1857,45,45,45,1910,45,1912,45,45,1914,45,67,67,67,67,67,67,67,67,67,67,1017,67,67,1020,67,45,1861,45,45,45,45,45,67,67,67,67,67,1872,67,67,67,67,67,67,752,67,67,67,67,67,67,67,67,67,67,1446,67,67,67,67,67,1876,67,67,67,67,67,97,97,97,97,97,0,0,0,1890,97,97,97,97,97,1134,97,97,97,97,97,97,97,97,97,97,570,97,97,97,97,580,1935,97,97,97,97,0,0,0,97,97,97,97,97,97,45,45,45,45,1906,45,67,67,67,67,2048,0,97,97,97,97,45,45,67,67,0,0,0,0,925,41606,0,0,0,931,45,45,45,45,45,45,1674,45,1676,45,45,45,45,45,45,45,446,45,45,45,45,45,45,45,67,67,67,67,1871,67,67,67,67,0,97,97,45,67,0,97,2060,2061,0,2063,45,67,0,97,45,45,156,45,45,45,45,45,45,45,45,45,192,45,45,45,45,1673,45,45,45,45,45,45,45,45,45,45,45,429,45,45,45,45,67,67,67,269,67,67,67,0,37139,24853,0,0,0,0,41098,65820,97,97,349,97,97,97,0,53264,0,18,18,24,24,0,28,28,139621,0,0,0,0,364,0,367,41098,369,140,45,45,374,45,45,67,67,213,217,67,67,67,67,67,242,67,247,67,253,45,45,698,45,45,45,45,45,45,45,45,45,45,45,45,45,399,45,45,0,0,0,0,925,41606,0,929,0,0,45,45,45,45,45,45,1391,45,45,1395,45,45,45,45,45,45,423,45,45,45,45,45,45,45,436,45,67,67,67,67,1041,67,1043,67,67,67,67,67,67,67,67,67,67,1776,67,67,97,97,97,1099,0,0,97,97,97,97,97,97,97,97,97,97,97,97,97,888,97,97,97,1131,97,97,97,97,1135,97,1137,97,97,97,97,97,97,97,1497,97,97,97,97,97,97,97,97,97,883,97,97,97,97,97,97,1310,0,0,0,1316,0,0,0,0,1100,0,0,0,97,97,97,97,97,1107,97,97,97,97,97,97,97,97,1343,97,97,97,97,97,97,1348,0,0,1317,0,0,0,0,0,97,97,97,97,97,97,97,97,97,97,97,1112,97,45,1804,45,45,45,45,45,45,45,45,45,45,45,45,45,67,1868,67,1870,67,67,67,67,67,1817,67,67,1819,67,67,67,67,67,67,67,67,67,67,67,67,823,67,37689,544,67,97,1832,97,97,1834,97,0,0,97,97,97,97,97,0,0,97,97,97,0,1732,97,97,97,97,97,97,97,850,97,97,97,97,97,97,97,97,97,1177,0,0,925,0,0,0,0,97,97,97,97,0,0,1941,97,97,97,97,97,97,45,45,45,1991,1992,45,67,67,67,67,67,67,67,67,67,1998,134,0,0,0,37,110630,0,0,0,114730,106539,41098,45,45,45,45,941,45,45,944,45,45,45,45,45,45,952,45,45,207,67,67,67,67,67,226,67,67,67,67,67,67,67,67,67,820,67,67,67,67,37689,544,369,650,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1682,25403,546,70179,0,0,66365,66365,552,835,97,97,97,97,97,97,97,1522,97,97,97,97,97,97,97,97,0,97,97,97,97,97,97,1725,67,67,67,1695,67,67,67,67,67,67,67,67,67,67,67,67,1034,67,1036,67,67,67,265,67,67,67,67,0,37139,24853,0,0,0,0,41098,65820,97,97,97,296,97,97,97,97,314,97,97,97,97,332,334,97,97,97,97,97,1146,1147,97,97,97,97,97,97,97,97,97,97,1626,97,97,97,97,97,97,345,97,97,97,97,0,53264,0,18,18,24,24,0,28,28,139621,0,0,0,0,364,0,367,41098,369,140,45,372,45,45,45,1220,45,45,45,45,45,45,45,45,45,45,45,45,1213,45,45,45,45,404,406,45,45,45,45,45,45,45,45,45,45,45,45,45,434,45,45,45,440,45,45,45,45,45,45,45,45,451,452,45,45,45,67,1683,67,67,67,1686,67,67,67,67,67,67,67,0,37139,24853,0,0,0,0,41098,65820,67,67,67,67,490,492,67,67,67,67,67,67,67,67,67,67,67,1447,67,67,1450,67,67,67,67,67,526,67,67,67,67,67,67,67,67,537,538,67,67,67,67,67,506,67,67,508,67,67,511,67,67,67,67,0,1476,0,0,0,0,0,1478,0,0,0,0,0,0,0,0,97,97,1484,97,97,97,97,97,97,865,97,97,97,97,97,97,97,97,97,97,1499,97,97,97,97,97,97,97,97,97,587,589,97,97,97,97,97,97,97,97,97,97,629,97,97,97,97,97,97,97,97,97,623,97,97,97,97,97,97,97,97,634,635,97,97,97,97,97,1160,97,97,97,97,97,97,97,97,97,97,97,1628,97,97,97,97,369,0,45,45,45,45,45,655,45,45,45,45,45,45,45,45,999,45,1001,45,45,45,45,45,45,45,45,715,45,45,45,720,45,45,45,45,45,45,45,45,728,25403,546,70179,0,0,66365,66365,552,0,97,97,97,97,97,840,97,97,97,97,97,1174,97,97,97,97,0,0,925,0,0,0,0,0,0,0,1100,97,97,97,97,97,97,97,97,627,97,97,97,97,97,97,97,938,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,680,45,968,45,970,45,973,45,45,45,45,45,45,45,45,45,45,962,45,45,45,45,45,979,45,45,45,45,45,985,45,45,45,45,45,45,45,45,45,1224,45,45,45,45,45,45,45,45,688,45,45,45,45,45,45,45,1007,1008,67,67,67,67,67,1014,67,67,67,67,67,67,67,67,67,1045,67,67,67,67,67,67,67,1038,67,67,67,67,67,67,1044,67,1046,67,1049,67,67,67,67,67,67,800,67,67,67,67,67,67,808,67,67,0,0,0,1102,97,97,97,97,97,1108,97,97,97,97,97,97,306,97,97,97,97,97,97,97,97,97,97,1371,97,97,97,97,97,97,97,97,1132,97,97,97,97,97,97,1138,97,1140,97,1143,97,97,97,97,97,1352,97,97,97,97,97,97,97,97,97,97,869,97,97,97,97,97,45,1191,45,45,45,45,45,1196,45,45,45,45,45,45,45,45,1407,45,45,45,45,45,45,45,45,986,45,45,45,45,45,45,991,45,67,67,67,1256,67,67,67,67,67,67,67,67,67,67,67,67,1048,67,67,67,97,1336,97,97,97,97,97,97,97,97,97,97,97,97,97,97,615,97,1386,45,1387,45,45,45,45,45,45,45,45,45,45,45,45,45,455,45,457,45,45,1424,45,45,45,45,45,67,67,67,67,1433,67,1434,67,67,67,67,67,767,67,67,67,67,67,67,67,67,67,67,67,1591,67,1593,67,67,45,45,1805,45,45,45,45,45,45,45,45,45,1814,45,45,1816,67,67,67,67,1820,67,67,67,67,67,67,67,67,67,1829,67,67,67,67,67,815,67,67,67,67,821,67,67,67,37689,544,67,1831,97,97,97,97,1835,0,0,97,97,97,97,97,0,0,97,97,97,1731,97,97,97,97,97,97,97,97,97,853,97,97,97,97,97,97,0,97,97,97,97,1850,97,97,45,45,45,45,45,45,45,45,1547,45,45,45,45,45,45,45,45,1664,45,45,45,45,45,45,45,45,961,45,45,45,45,965,45,967,1907,45,45,45,45,45,45,45,45,45,67,67,67,67,67,1920,0,1936,97,97,97,0,0,0,97,97,97,97,97,97,45,45,67,67,67,67,67,67,1763,67,67,67,67,67,67,67,67,1056,67,67,67,67,67,67,67,67,1273,67,67,67,67,67,67,67,67,1457,67,67,67,67,67,67,67,67,97,97,97,97,0,0,28672,97,45,67,67,67,67,0,0,97,97,97,97,45,45,67,67,2054,97,97,291,97,97,97,97,97,97,320,97,97,97,97,97,97,307,97,97,97,97,97,97,97,97,97,97,12288,0,925,926,1179,0,45,377,45,45,45,381,45,45,392,45,45,396,45,45,45,45,971,45,45,45,45,45,45,45,45,45,45,45,45,1756,45,45,45,67,67,67,67,463,67,67,67,467,67,67,478,67,67,482,67,67,67,67,67,1028,67,67,67,67,67,67,67,67,67,67,67,67,1469,67,67,1472,67,502,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1460,67,97,97,97,97,560,97,97,97,564,97,97,575,97,97,579,97,97,97,97,97,1368,97,97,97,97,97,97,97,97,97,97,0,0,925,0,0,930,97,599,97,97,97,97,97,97,97,97,97,97,97,97,97,97,872,97,45,666,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1758,0,362,0,0,925,41606,0,0,0,0,45,45,934,45,45,45,164,168,174,178,45,45,45,45,45,194,45,45,45,165,45,45,45,45,45,45,45,45,45,199,45,45,45,67,67,1010,67,67,67,67,67,67,67,67,67,67,67,67,1060,67,67,67,67,67,67,1052,1053,67,67,67,67,67,67,67,67,67,67,1063,97,1157,97,97,97,97,97,97,97,97,97,97,97,97,1167,97,97,97,97,97,1379,97,97,97,0,0,0,45,1383,45,45,45,1806,45,45,45,45,45,45,1812,45,45,45,45,67,67,67,67,67,1577,67,67,67,67,67,67,67,753,67,67,67,67,67,67,67,67,67,1262,67,67,67,67,67,67,67,1282,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1471,67,45,1402,45,45,45,45,45,45,45,45,45,45,45,45,45,45,417,45,67,1462,67,67,67,67,67,67,67,67,67,67,67,67,67,67,37689,544,97,1517,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1128,97,97,97,97,1636,97,97,97,0,97,97,97,97,97,97,97,97,851,97,97,97,97,97,97,97,67,67,1705,67,67,67,67,67,67,67,67,97,97,97,97,97,97,0,0,97,97,97,97,1842,0,0,1779,97,97,97,1782,97,0,0,97,97,97,97,97,97,0,0,97,97,97,1789,97,97,0,0,0,97,1847,97,97,97,97,97,45,45,45,45,45,45,45,45,1675,45,45,45,45,45,45,45,45,737,738,67,740,67,741,67,743,67,67,67,67,67,67,1968,67,67,97,97,97,97,0,0,0,97,97,45,67,0,97,45,67,2062,97,45,67,0,97,45,67,67,97,97,2001,97,0,0,2004,97,97,0,97,97,97,97,1797,97,97,97,97,97,45,45,45,67,261,67,67,67,67,67,0,37139,24853,0,0,0,0,41098,65820,97,97,292,97,97,97,97,311,315,321,325,97,97,97,97,97,97,1623,97,97,97,97,97,97,97,97,97,97,1330,97,97,1333,1334,97,341,97,97,97,97,97,0,53264,0,18,18,24,24,0,28,28,139621,0,0,0,363,364,0,367,41098,369,140,45,45,45,45,1221,45,45,45,45,45,45,45,45,45,45,45,413,45,45,416,45,376,45,45,45,45,382,45,45,45,45,45,45,45,45,45,45,1408,45,45,45,45,45,403,45,45,45,45,45,45,45,45,45,45,414,45,45,45,418,67,67,67,462,67,67,67,67,468,67,67,67,67,67,67,67,67,1602,67,1604,67,67,67,67,67,67,67,67,489,67,67,67,67,67,67,67,67,67,67,500,67,67,67,67,67,1067,67,67,67,67,67,1072,67,67,67,67,67,67,274,0,37139,24853,0,0,0,0,41098,65820,67,67,504,67,67,67,67,67,67,67,510,67,67,67,517,519,541,67,37139,37139,24853,24853,0,70179,0,0,0,65820,65820,369,287,554,97,97,97,559,97,97,97,97,565,97,97,97,97,97,97,97,1718,0,97,97,97,97,97,97,97,898,97,97,97,97,97,97,906,97,97,97,97,586,97,97,97,97,97,97,97,97,97,97,597,97,97,97,97,97,1520,97,97,97,97,97,97,97,97,97,97,0,45,1656,45,45,45,97,97,601,97,97,97,97,97,97,97,607,97,97,97,614,616,638,97,18,0,139621,0,0,0,0,0,0,364,0,0,367,41606,369,0,45,45,45,45,45,45,45,45,45,45,661,45,45,45,407,45,45,45,45,45,45,45,45,45,45,45,45,45,1815,45,67,45,667,45,45,45,45,45,45,45,45,45,45,678,45,45,45,421,45,45,45,45,45,45,45,45,45,45,45,45,976,977,45,45,45,682,45,45,45,45,45,45,45,45,45,45,693,45,45,697,67,67,748,67,67,67,67,754,67,67,67,67,67,67,67,67,67,1274,67,67,67,67,67,67,67,67,765,67,67,67,67,769,67,67,67,67,67,67,67,67,67,1589,67,67,67,67,67,67,67,67,780,67,67,784,67,67,67,67,67,67,67,67,67,67,67,1777,67,97,97,97,97,97,97,846,97,97,97,97,852,97,97,97,97,97,97,97,1742,45,45,45,45,45,45,45,1747,97,97,97,863,97,97,97,97,867,97,97,97,97,97,97,97,308,97,97,97,97,97,97,97,97,97,97,12288,1178,925,0,1179,0,97,97,97,878,97,97,882,97,97,97,97,97,97,97,97,97,97,12288,0,925,0,1179,0,908,97,97,97,97,97,97,97,97,97,97,97,97,97,97,0,0,925,0,0,0,954,45,45,45,45,45,45,45,45,45,45,963,45,45,966,45,45,157,45,45,171,45,45,45,45,45,45,45,45,45,45,948,45,45,45,45,45,1022,67,67,1026,67,67,67,1030,67,67,67,67,67,67,67,67,67,1603,1605,67,67,67,1608,67,67,67,1039,67,67,1042,67,67,67,67,67,67,67,67,67,67,471,67,67,67,67,67,0,1100,0,97,97,97,97,97,97,97,97,97,97,97,97,97,904,97,97,97,97,1116,97,97,1120,97,97,97,1124,97,97,97,97,97,97,562,97,97,97,571,97,97,97,97,97,97,97,97,97,1133,97,97,1136,97,97,97,97,97,97,97,97,915,917,97,97,97,97,97,0,97,1170,97,97,97,97,97,97,97,97,0,0,925,0,0,0,0,0,41606,0,0,0,0,45,45,45,45,45,45,1993,67,67,67,67,67,67,67,67,67,67,1275,67,67,67,1278,67,0,0,0,45,45,1182,45,45,45,45,45,45,45,45,45,1189,1204,45,45,45,1207,45,45,1209,45,1210,45,45,45,45,45,45,1546,45,45,45,45,45,45,45,45,45,689,45,45,45,45,45,45,1231,45,45,45,45,45,45,45,45,45,45,45,45,45,45,67,67,67,67,67,67,67,67,236,67,67,67,67,67,67,67,801,67,67,67,805,67,67,67,67,67,1242,67,67,67,67,67,67,67,67,67,1249,67,67,67,67,67,67,507,67,67,67,67,67,67,67,67,67,67,1300,0,0,0,0,0,1267,67,67,1269,67,1270,67,67,67,67,67,67,67,67,67,1280,97,1349,97,1350,97,97,97,97,97,97,97,97,97,1360,97,97,97,0,1980,97,97,97,97,97,45,45,45,45,45,45,673,45,45,45,45,677,45,45,45,45,1401,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,953,67,1437,67,1440,67,67,67,67,1445,67,67,67,1448,67,67,67,67,67,67,1029,67,67,67,67,67,67,67,67,67,67,1825,67,67,67,67,67,1473,67,67,67,0,0,0,0,0,0,0,0,0,0,0,0,1320,0,834,97,97,97,97,1490,97,1493,97,97,97,97,1498,97,97,97,1501,97,97,97,0,97,1638,97,0,97,97,97,97,97,97,97,97,916,97,97,97,97,97,97,0,1528,97,97,97,0,45,45,45,1535,45,45,45,45,45,45,45,1867,67,67,67,67,67,67,67,67,67,97,97,97,97,1932,0,0,1555,45,45,45,45,45,45,45,45,45,45,45,45,45,1567,45,45,158,45,45,172,45,45,45,183,45,45,45,45,201,45,45,67,212,67,67,67,67,231,235,241,245,67,67,67,67,67,67,493,67,67,67,67,67,67,67,67,67,67,472,67,67,67,67,67,97,97,97,97,1651,97,97,97,97,97,0,45,45,45,45,45,45,45,1539,45,45,45,67,1704,67,1706,67,67,67,67,67,67,67,97,97,97,97,97,97,0,0,97,97,97,1841,97,0,1844,97,97,97,97,1716,97,97,97,0,97,97,97,97,97,97,97,590,97,97,97,97,97,97,97,97,97,0,0,0,45,45,45,1385,1748,45,45,45,45,45,45,45,45,45,45,45,45,45,1757,45,45,159,45,45,45,45,45,45,45,45,45,45,45,45,45,415,45,45,97,97,1780,97,97,97,0,0,1786,97,97,97,97,97,0,0,97,97,1730,0,97,97,97,97,97,1736,97,1738,67,97,97,97,97,97,97,0,1838,97,97,97,97,97,0,0,97,1729,97,0,97,97,97,97,97,97,97,97,1162,97,97,97,1165,97,97,97,45,1950,45,45,45,45,45,45,45,45,1958,67,67,67,1962,67,67,67,67,67,1246,67,67,67,67,67,67,67,67,67,67,67,97,1710,97,97,97,1999,67,97,97,97,97,0,2003,97,97,97,0,97,97,2008,2009,45,67,67,67,67,0,0,97,97,97,97,45,2052,67,2053,0,0,0,0,925,41606,0,0,930,0,45,45,45,45,45,45,1392,45,1394,45,45,45,45,45,45,45,1545,45,45,45,45,45,45,45,45,45,45,1563,1565,45,45,45,1568,0,97,2055,45,67,0,97,45,67,0,97,45,67,28672,97,45,45,160,45,45,45,45,45,45,45,45,45,45,45,45,45,679,45,45,67,67,266,67,67,67,67,0,37139,24853,0,0,0,0,41098,65820,97,346,97,97,97,97,0,53264,0,18,18,24,24,0,28,28,139621,0,0,362,0,364,0,367,41098,369,140,371,45,45,45,379,45,45,45,388,45,45,45,45,45,45,45,45,1663,45,45,45,45,45,45,45,45,45,449,45,45,45,45,45,67,67,542,37139,37139,24853,24853,0,70179,0,0,0,65820,65820,369,287,97,97,97,97,97,1622,97,97,97,97,97,97,97,1629,97,97,0,1794,1795,97,97,97,97,97,97,97,97,45,45,45,45,45,45,1745,45,45,97,639,18,0,139621,0,0,0,0,0,0,364,0,0,367,41606,45,731,45,45,45,45,45,45,67,67,67,67,67,67,67,67,67,67,67,67,251,67,67,67,67,67,798,67,67,67,67,67,67,67,67,67,67,67,67,1073,67,67,67,860,97,97,97,97,97,97,97,97,97,97,97,97,97,97,873,0,0,1101,97,97,97,97,97,97,97,97,97,97,97,97,97,921,97,0,67,67,67,67,1245,67,67,67,67,67,67,67,67,67,67,67,67,1250,67,67,1253,0,0,1312,0,0,0,1318,0,0,0,0,0,0,97,97,97,97,1106,97,97,97,97,97,97,97,97,97,1149,97,97,97,97,97,1155,97,97,1325,97,97,97,97,97,97,97,97,97,97,97,97,97,1141,97,97,67,67,1439,67,1441,67,67,67,67,67,67,67,67,67,67,67,67,1264,67,67,67,97,97,1492,97,1494,97,97,97,97,97,97,97,97,97,97,97,1331,97,97,97,97,67,67,67,2037,67,97,0,0,97,97,97,2043,97,45,45,45,442,45,45,45,45,45,45,45,45,45,45,45,67,67,67,67,67,67,232,67,67,67,67,67,67,67,67,1823,67,67,67,67,67,67,67,67,97,97,97,97,1975,0,0,97,874,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1142,97,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,65,86,117,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,63,84,115,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,61,82,113,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,59,80,111,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,57,78,109,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,55,76,107,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,53,74,105,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,51,72,103,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,49,70,101,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,47,68,99,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,45,67,97,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,213085,53264,18,49172,57366,24,8192,28,102432,0,0,0,44,0,0,32863,53264,18,49172,57366,24,8192,28,102432,0,41,41,41,0,0,1138688,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,0,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,89,53264,18,18,49172,0,57366,0,24,24,24,0,127,127,127,127,102432,67,262,67,67,67,67,67,0,37139,24853,0,0,0,0,41098,65820,342,97,97,97,97,97,0,53264,0,18,18,24,24,0,28,28,139621,0,360,0,0,364,0,367,41098,369,140,45,45,45,45,717,45,45,45,45,45,45,45,45,45,45,45,412,45,45,45,45,45,67,1009,67,67,67,67,67,67,67,67,67,67,67,67,67,1292,67,67,1294,67,67,67,67,67,67,67,67,67,67,0,0,0,0,0,0,97,97,97,1615,97,97,97,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,66,87,118,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,64,85,116,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,62,83,114,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,60,81,112,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,58,79,110,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,56,77,108,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,54,75,106,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,52,73,104,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,50,71,102,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,48,69,100,53264,18,49172,57366,24,8192,28,102432,37,110630,114730,106539,46,67,98,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,233472,53264,18,49172,57366,24,8192,28,102432,0,110630,114730,106539,0,0,69724,53264,18,18,49172,0,57366,262144,24,24,24,0,28,28,28,28,102432,45,45,161,45,45,45,45,45,45,45,45,45,45,45,45,45,710,45,45,28,139621,359,0,0,0,364,0,367,41098,369,140,45,45,45,45,1389,45,45,45,45,45,45,45,45,45,45,45,949,45,45,45,45,67,503,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1449,67,67,97,600,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1154,97,0,0,0,0,925,41606,927,0,0,0,45,45,45,45,45,45,1866,67,67,67,67,67,67,67,67,67,67,772,67,67,67,67,67,45,45,969,45,45,45,45,45,45,45,45,45,45,45,45,45,951,45,45,45,45,1192,45,45,45,45,45,45,45,45,45,45,45,45,45,1202,45,45,0,0,0,1314,0,0,0,0,0,0,0,0,0,97,97,97,97,97,97,97,1488,67,67,267,67,67,67,67,0,37139,24853,0,0,0,0,41098,65820,97,347,97,97,97,97,0,53264,0,18,18,24,24,0,28,28,139621,0,361,0,0,364,0,367,41098,369,140,45,45,45,45,734,45,45,45,67,67,67,67,67,742,67,67,45,45,668,45,45,45,45,45,45,45,45,45,45,45,45,45,1214,45,45,1130,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1361,97,45,45,1671,45,45,45,45,45,45,45,45,45,45,45,45,45,1552,45,45,0,0,0,0,2220032,0,0,1130496,0,0,0,0,2170880,2171020,2170880,2170880,18,0,0,131072,0,0,0,90112,0,2220032,0,0,0,0,0,0,0,0,97,97,97,1485,97,97,97,97,0,45,45,45,45,45,1537,45,45,45,45,45,1390,45,1393,45,45,45,45,1398,45,45,45,2170880,2171167,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2576384,2215936,3117056,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,0,0,0,0,0,0,2174976,0,0,0,0,0,0,2183168,0,0,0,0,2170880,2170880,2170880,2400256,2170880,2170880,2170880,2170880,2721252,2744320,2170880,2170880,2170880,2834432,2840040,2170880,2908160,2170880,2170880,2936832,2170880,2170880,2985984,2170880,2994176,2170880,2170880,3014656,2170880,3059712,3076096,3088384,2170880,2170880,2170880,2170880,0,0,0,0,2220032,0,0,0,1142784,0,0,0,2170880,2170880,2170880,2170880,2170880,2170880,2170880,3215360,2215936,2215936,2215936,2215936,2215936,2437120,2215936,2215936,2215936,3117056,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,2215936,0,543,0,545,0,0,2183168,0,0,831,0,2170880,2170880,2170880,2400256,2170880,2170880,2170880,2170880,3031040,2170880,3055616,2170880,2170880,2170880,2170880,3092480,2170880,2170880,3125248,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,2170880,3198976,2170880,0,0,0,0,0,0,67,67,37139,37139,24853,24853,0,0,0,0,0,65820,65820,0,287,97,97,97,97,97,1783,0,0,97,97,97,97,97,97,0,0,97,97,97,97,97,97,1791,0,0,546,70179,0,0,0,0,552,0,97,97,97,97,97,97,97,604,97,97,97,97,97,97,97,97,97,97,1150,97,97,97,97,97,147456,147456,147456,147456,147456,147456,147456,147456,147456,147456,147456,147456,0,0,147456,0,0,0,0,925,41606,0,928,0,0,45,45,45,45,45,45,998,45,45,45,45,45,45,45,45,45,1562,45,1564,45,45,45,45,0,2158592,2158592,0,0,0,0,2232320,2232320,2232320,0,2240512,2240512,2240512,2240512,0,0,0,0,0,0,0,0,0,0,0,2170880,2170880,2170880,2416640],r.EXPECTED=[291,300,304,341,315,309,305,295,319,323,327,329,296,333,337,339,342,346,350,294,356,360,312,367,352,371,363,375,379,383,387,391,395,726,399,405,518,684,405,405,405,405,808,405,405,405,512,405,405,405,431,405,405,406,405,405,404,405,405,405,405,405,405,405,908,631,410,415,405,414,419,608,405,429,602,405,435,443,405,441,641,478,405,447,451,450,456,643,461,460,762,679,465,469,741,473,477,482,486,492,932,931,523,498,504,720,405,510,596,405,516,941,580,522,929,527,590,589,897,939,534,538,547,551,555,559,563,567,571,969,575,708,690,689,579,584,634,405,594,731,405,600,882,405,606,895,786,452,612,405,615,620,876,624,628,638,647,651,655,659,663,667,676,683,688,695,694,791,405,699,437,405,706,714,405,712,825,870,405,718,724,769,768,823,730,735,745,751,422,755,759,425,766,902,810,587,775,888,887,405,773,992,405,779,962,405,785,781,986,790,795,797,506,500,499,801,805,814,820,829,833,837,841,845,849,853,857,861,616,865,869,868,488,405,874,816,405,880,738,405,886,892,543,405,901,906,913,912,918,494,541,922,926,936,945,949,953,957,530,966,973,960,702,701,405,979,981,405,985,747,405,990,998,914,405,996,1004,672,975,974,1014,1002,1008,670,1012,405,405,405,405,405,401,1018,1022,1026,1106,1071,1111,1111,1111,1082,1145,1030,1101,1034,1038,1106,1106,1106,1106,1046,1206,1052,1106,1072,1111,1111,1042,1134,1065,1111,1112,1056,1160,1207,1062,1204,1208,1069,1106,1106,1106,1076,1111,1207,1161,1122,1205,1064,1094,1106,1106,1107,1111,1111,1111,1078,1086,1207,1092,1098,1046,1058,1106,1106,1110,1111,1111,1116,1120,1161,1126,1202,1104,1106,1145,1146,1129,1138,1088,1151,1048,1157,1153,1132,1141,1165,1107,1111,1172,1179,1109,1183,1175,1143,1147,1187,1108,1191,1195,1144,1199,1168,1212,1216,1220,1224,1228,1232,1236,1557,1247,1241,1241,1038,1434,1241,1241,1241,1241,1254,1275,1617,1241,1280,1287,1241,1241,1241,1287,1241,2114,1291,1241,1243,1241,2049,1824,2094,2095,1520,1309,1241,1241,1302,1241,1321,1311,1241,1241,1313,1778,1325,1336,1241,1241,1325,1330,1353,1241,1241,1695,1354,1241,1241,1241,1294,1686,1331,1241,1696,1368,1241,1338,1370,1241,1392,1399,1364,2017,1406,2016,1405,1716,1406,1407,1422,1417,1421,1241,1241,1241,1349,1426,1241,1774,1756,1241,1773,1241,1241,1345,1964,1812,1432,1241,1241,1345,1993,1459,1241,1241,1241,1395,1848,1767,1465,1241,1241,1394,1847,1242,1477,1241,1241,1428,1241,1445,1492,1241,1241,1438,1241,1499,1241,1241,1241,1455,1241,1818,1448,1241,1250,1241,2026,1623,1449,1241,1612,1616,1241,1614,1241,1257,1241,1241,1985,1292,1586,1512,1241,1517,2050,1526,1674,1519,1524,1647,2051,1532,1537,1551,1544,1550,1555,1561,1571,1578,1584,1590,1591,1653,1595,1602,1606,1610,1634,1628,1640,1633,1645,1241,1241,1241,1469,1241,1970,1651,1241,1270,1241,1241,1819,1449,1241,1293,1664,1241,1241,1481,1485,1574,1672,1241,1241,1513,1317,1487,1684,1241,1241,1533,1299,1694,1241,1241,1295,1241,1241,1241,1546,1700,1241,1241,1707,1241,1713,1241,1849,1715,1241,1720,1241,1276,1267,1241,1241,2107,1657,1864,1241,1881,1241,1326,1292,1241,1685,1358,1724,1338,1241,1363,1362,1342,1340,1361,1339,1833,1372,1360,1833,1833,1342,1343,1835,1341,1731,1738,1344,1241,1745,1241,1379,1241,1241,2092,1241,1388,1761,1754,1241,1386,1241,1400,1760,1241,1241,1241,1598,1734,1241,1241,1241,1635,1645,1241,1780,1766,1241,1241,1332,1771,1241,1241,1629,2079,1241,1242,1784,1241,1241,1680,1639,2063,1790,1241,1241,1741,1241,1241,1800,1241,1241,1762,1473,1241,1806,1241,1241,1786,1240,1709,1241,1241,1241,1668,1811,1241,1940,1241,1401,1974,1241,1408,1413,1382,1241,1816,1241,1241,1802,2086,1811,1241,1817,1945,1823,2095,2095,2047,2094,2046,2080,1241,1409,1312,1376,2096,2048,1241,1241,1807,1241,1241,1241,2035,1241,1241,1828,1241,2057,2061,1241,1241,1843,1241,2059,1241,1241,1241,1690,1847,1241,1241,1241,1703,2102,1848,1241,1241,1853,1292,1848,1241,2016,1857,1241,2002,1868,1241,1436,1241,1241,1271,1305,1241,1874,1241,1241,1884,2037,1892,1241,1890,1241,1461,1241,1241,1795,1241,1241,1891,1241,1878,1241,1888,1241,1888,1905,1896,2087,1912,1903,1241,1911,1906,1916,1905,2027,1863,1925,2088,1859,1861,1922,1927,1931,1935,1494,1241,1241,1918,1907,1939,1917,1944,1949,1241,1241,1451,1955,1241,1241,1241,1796,1727,2061,1241,1241,1899,1241,1660,1968,1241,1241,1951,1678,1978,1241,1241,1241,1839,1241,1241,1984,1982,1241,1488,1241,1241,1624,1450,1989,1241,1241,1241,1870,1995,1292,1241,1241,1958,1261,1241,1996,1241,1241,1241,2039,2008,1241,1241,1750,2e3,1241,1256,2001,1960,1241,1564,1241,1504,1241,1241,1442,1241,1241,1564,1528,1263,1241,1508,1241,1241,1468,1498,2006,1540,2015,1539,2014,1748,2013,1539,1831,2014,2012,1500,1567,2022,2021,1241,1580,1241,1241,2033,2037,1791,2045,2031,1241,1621,1241,1641,2044,1241,1241,1241,2093,1241,1241,2055,1241,1241,2067,1241,1283,1241,1241,1241,2101,2071,1241,1241,1241,2073,1848,2040,1241,1241,1241,2077,1241,1241,2106,1241,1241,2084,1241,2111,1241,1241,1381,1380,1241,1241,1241,2100,1241,2129,2118,2122,2126,2197,2133,3010,2825,2145,2698,2156,2226,2160,2161,2165,2174,2293,2194,2630,2201,2203,2152,3019,2226,2263,2209,2213,2218,2269,2292,2269,2269,2184,2226,2238,2148,2151,3017,2245,2214,2269,2269,2185,2226,2292,2269,2291,2269,2269,2269,2292,2205,3019,2226,2226,2160,2160,2160,2261,2160,2160,2160,2262,2276,2160,2160,2277,2216,2283,2216,2269,2269,2268,2269,2267,2269,2269,2269,2271,2568,2292,2269,2293,2269,2182,2190,2269,2186,2226,2226,2226,2226,2227,2160,2160,2160,2160,2263,2160,2275,2277,2282,2215,2217,2269,2269,2291,2269,2269,2293,2291,2269,2220,2269,2295,2294,2269,2269,2305,2233,2262,2278,2218,2269,2234,2226,2226,2228,2160,2160,2160,2289,2220,2294,2294,2269,2269,2304,2269,2160,2160,2287,2269,2269,2305,2269,2269,2312,2269,2269,2225,2226,2160,2287,2289,2219,2304,2295,2314,2234,2226,2314,2269,2226,2226,2160,2288,2219,2222,2304,2296,2269,2224,2160,2160,2269,2302,2294,2314,2224,2226,2288,2220,2294,2269,2290,2269,2269,2293,2269,2269,2269,2269,2270,2221,2313,2225,2227,2160,2300,2269,2225,2261,2309,2234,2229,2223,2318,2318,2318,2328,2336,2340,2344,2350,2637,2712,2358,2362,2372,2135,2378,2398,2135,2135,2135,2135,2136,2417,2241,2135,2378,2135,2135,2980,2984,2135,3006,2135,2135,2135,2945,2931,2425,2400,2135,2135,2135,2954,2135,2481,2433,2135,2135,2988,2824,2135,2135,2482,2434,2135,2135,2440,2445,2452,2135,2135,2998,3002,2961,2441,2446,2453,2463,2974,2135,2135,2135,2140,2642,2709,2459,2470,2465,2135,2135,3005,2135,2135,2987,2823,2458,2469,2464,2975,2135,2135,2135,2353,2488,2447,2324,2974,2135,2409,2459,2448,2135,2961,2487,2446,2476,2323,2973,2135,2135,2135,2354,2476,2974,2135,2135,2135,2957,2135,2135,2960,2135,2135,2135,2363,2409,2459,2474,2465,2487,2571,2973,2135,2135,2168,2973,2135,2135,2135,2959,2135,2135,2135,2506,2135,2957,2488,2170,2135,2135,2135,2960,2135,2818,2493,2135,2135,3033,2135,2135,2135,2934,2819,2494,2135,2135,2135,2976,2780,2499,2135,2135,2135,3e3,2968,2135,2935,2135,2135,2135,2364,2507,2135,2135,2934,2135,2135,2780,2492,2507,2135,2135,2506,2780,2135,2135,2782,2780,2135,2782,2135,2783,2374,2514,2135,2135,2135,3007,2530,2974,2135,2135,2135,3008,2135,2135,2134,2135,2526,2531,2975,2135,2135,3042,2581,2575,2956,2135,2135,2135,2394,2135,2508,2535,2840,2844,2495,2135,2135,2136,2684,2537,2842,2846,2135,2136,2561,2581,2551,2536,2841,2845,2975,3043,2582,2843,2555,2135,3040,3044,2538,2844,2975,2135,2135,2253,2644,2672,2542,2554,2135,2135,2346,2873,2551,2555,2135,2135,2135,2381,2559,2565,2538,2553,2135,2560,2914,2576,2590,2135,2135,2135,2408,2136,2596,2624,2135,2135,2135,2409,2135,2618,2597,3008,2135,2135,2380,2956,2601,2135,2135,2135,2410,2620,2624,2135,2136,2383,2135,2135,2783,2623,2135,2135,2393,2888,2136,2621,3008,2135,2618,2618,2622,2135,2135,2405,2414,2619,2384,2624,2135,2136,2950,2135,2138,2135,2139,2135,2604,2623,2135,2140,2878,2665,2957,2622,2135,2135,2428,2762,2606,2612,2135,2135,2501,2586,2604,3038,2135,2604,3036,2387,2958,2386,2135,2141,2135,2421,2387,2385,2135,2385,2384,2384,2135,2386,2628,2384,2135,2135,2501,2596,2591,2135,2135,2135,2400,2135,2634,2135,2135,2559,2580,2575,2648,2135,2135,2135,2429,2649,2135,2135,2135,2435,2654,2658,2135,2135,2135,2436,2649,2178,2659,2135,2135,2595,2601,2669,2677,2135,2135,2616,2957,2879,2665,2691,2135,2363,2367,2900,2878,2664,2690,2975,2877,2643,2670,2974,2671,2975,2135,2135,2619,2608,2669,2673,2135,2135,2653,2177,2672,2135,2135,2135,2486,2168,2251,2255,2695,2974,2709,2135,2135,2135,2487,2169,2399,2716,2975,2135,2363,2770,2776,2640,2717,2135,2135,2729,2135,2135,2641,2718,2135,2135,2135,2505,2135,2640,2257,2974,2135,2727,2975,2135,2365,2332,2895,2957,2135,2959,2135,2365,2749,2754,2959,2958,2958,2135,2380,2793,2799,2135,2735,2738,2135,2381,2135,2135,2940,2974,2135,2744,2135,2135,2739,2519,2976,2745,2135,2135,2135,2509,2755,2135,2135,2135,2510,2772,2778,2135,2135,2740,2520,2135,2771,2777,2135,2135,2759,2750,2792,2798,2135,2135,2781,2392,2779,2135,2135,2135,2521,2135,2679,2248,2135,2135,2681,2480,2135,2135,2786,3e3,2135,2679,2683,2135,2135,2416,2135,2135,2135,2525,2135,2730,2135,2135,2135,2560,2581,2135,2805,2135,2135,2804,2962,2832,2974,2135,2382,2135,2135,2958,2135,2135,2960,2135,2829,2833,2975,2961,2965,2969,2973,2968,2972,2135,2135,2135,2641,2135,2515,2966,2970,2851,2478,2135,2135,2808,2135,2809,2135,2135,2135,2722,2852,2479,2135,2135,2815,2135,2135,2766,2853,2480,2135,2857,2479,2135,2388,2723,2135,2364,2331,2894,2858,2480,2135,2135,2850,2478,2135,2135,2135,2806,2864,2135,2399,2256,2974,2865,2135,2135,2862,2135,2135,2135,2685,2807,2865,2135,2135,2807,2863,2135,2135,2135,2686,2884,2807,2135,2809,2807,2135,2135,2807,2806,2705,2810,2808,2700,2869,2702,2702,2702,2704,2883,2135,2135,2135,2730,2884,2135,2135,2135,2731,2321,2546,2135,2135,2876,2255,2889,2322,2547,2135,2401,2135,2135,2135,2949,2367,2893,2544,2973,2906,2973,2135,2135,2877,2663,2368,2901,2907,2974,2366,2899,2905,2972,2920,2974,2135,2135,2911,2900,2920,2363,2913,2918,2465,2941,2975,2135,2135,2924,2928,2974,2945,2931,2135,2135,2135,2765,2136,2955,2135,2135,2939,2931,2380,2135,2135,2380,2135,2135,2135,2780,2507,2137,2135,2137,2135,2139,2135,2806,2810,2135,2135,2135,2992,2135,2135,2962,2966,2970,2974,2135,2135,2787,3014,2135,2521,2993,2135,2135,2135,2803,2135,2135,2135,2618,2607,2997,3001,2135,2135,2963,2967,2971,2975,2135,2135,2791,2797,2135,3009,2999,3003,2787,3001,2135,2135,2964,2968,2785,2999,3003,2135,2135,2135,2804,2785,2999,3004,2135,2135,2135,2807,2135,2135,3023,2135,2135,2135,2811,2135,2135,3027,2135,2135,2135,2837,2968,3028,2135,2135,2135,2875,2135,2784,3029,2135,2408,2457,2446,0,14,0,-2120220672,1610612736,-2074083328,-2002780160,-2111830528,1073872896,1342177280,1075807216,4096,16384,2048,8192,0,8192,0,0,0,0,1,0,0,0,2,0,-2145386496,8388608,1073741824,0,2147483648,2147483648,2097152,2097152,2097152,536870912,0,0,134217728,33554432,1536,268435456,268435456,268435456,268435456,128,256,32,0,65536,131072,524288,16777216,268435456,2147483648,1572864,1835008,640,32768,65536,262144,1048576,2097152,196608,196800,196608,196608,0,131072,131072,131072,196608,196624,196608,196624,196608,196608,128,4096,16384,16384,2048,0,4,0,0,2147483648,2097152,0,1024,32,32,0,65536,1572864,1048576,32768,32768,32768,32768,196608,196608,196608,64,64,196608,196608,131072,131072,131072,131072,268435456,268435456,64,196736,196608,196608,196608,131072,196608,196608,16384,4,4,4,2,32,32,65536,1048576,12582912,1073741824,0,0,2,8,16,96,2048,32768,0,0,131072,268435456,268435456,268435456,256,256,196608,196672,196608,196608,196608,196608,4,0,256,256,256,256,32,32,32768,32,32,32,32,32768,268435456,268435456,268435456,196608,196608,196608,196624,196608,196608,196608,16,16,16,268435456,196608,64,64,64,196608,196608,196608,196672,268435456,64,64,196608,196608,16,196608,196608,196608,268435456,64,196608,131072,262144,4194304,25165824,33554432,134217728,268435456,268435456,196608,262152,8,256,512,3072,16384,200,-1073741816,8392713,40,8392718,520,807404072,40,520,100663304,0,0,-540651761,-540651761,257589048,0,262144,0,0,3,8,256,0,4,6,4100,8388612,0,0,0,3,4,8,256,512,1024,0,2097152,0,0,-537854471,-537854471,0,100663296,0,0,1,2,0,0,0,16384,0,0,0,96,14336,0,0,0,7,8,234881024,0,0,0,8,0,0,0,0,262144,0,0,16,64,384,512,0,1,1,0,12582912,0,0,0,0,33554432,67108864,-606084144,-606084144,-606084138,0,0,28,32,768,1966080,-608174080,0,0,0,14,35056,16,64,896,24576,98304,98304,131072,262144,524288,1048576,4194304,25165824,1048576,62914560,134217728,-805306368,0,384,512,16384,65536,131072,262144,29360128,33554432,134217728,268435456,1073741824,2147483648,262144,524288,1048576,29360128,33554432,524288,1048576,16777216,33554432,134217728,268435456,1073741824,0,0,0,123856,1966080,0,64,384,16384,65536,131072,16384,65536,524288,268435456,2147483648,0,0,524288,2147483648,0,0,1,16,0,256,524288,0,0,0,25,96,128,-537854471,0,0,0,32,7404800,-545259520,0,0,0,60,0,249,64768,1048576,6291456,6291456,25165824,100663296,402653184,1073741824,96,128,1280,2048,4096,57344,6291456,57344,6291456,8388608,16777216,33554432,201326592,1342177280,2147483648,0,57344,6291456,8388608,100663296,134217728,2147483648,0,0,0,1,8,16,64,128,64,128,256,1024,131072,131072,131072,262144,524288,16777216,57344,6291456,8388608,67108864,134217728,64,256,1024,2048,4096,57344,64,256,0,24576,32768,6291456,67108864,134217728,0,1,64,256,24576,32768,4194304,32768,4194304,67108864,0,0,64,256,0,0,24576,32768,0,16384,4194304,67108864,64,16384,0,0,1,64,256,16384,4194304,67108864,0,0,0,16384,0,16384,16384,0,-470447874,-470447874,-470447874,0,0,128,0,0,8,96,2048,32768,262144,8388608,35056,1376256,-471859200,0,0,14,16,224,2048,32768,2097152,4194304,8388608,-486539264,0,96,128,2048,32768,262144,2097152,262144,2097152,8388608,33554432,536870912,1073741824,2147483648,0,1610612736,2147483648,0,0,1,524288,1048576,12582912,0,0,0,151311,264503296,2097152,8388608,33554432,1610612736,2147483648,262144,8388608,33554432,536870912,67108864,4194304,0,4194304,0,4194304,4194304,0,0,524288,8388608,536870912,1073741824,2147483648,1,4097,8388609,96,2048,32768,1073741824,2147483648,0,96,2048,2147483648,0,0,96,2048,0,0,1,12582912,0,0,0,0,1641895695,1641895695,0,0,0,249,7404800,15,87808,1835008,1639972864,0,768,5120,16384,65536,1835008,1835008,12582912,16777216,1610612736,0,3,4,8,768,4096,65536,0,0,256,512,786432,8,256,512,4096,16384,1835008,16384,1835008,12582912,1610612736,0,0,0,256,0,0,0,4,8,16,32,1,2,8,256,16384,524288,16384,524288,1048576,12582912,1610612736,0,0,0,8388608,0,0,0,524288,4194304,0,0,0,8388608,-548662288,-548662288,-548662288,0,0,256,16384,65536,520093696,-1073741824,0,0,0,16777216,0,16,32,960,4096,4980736,520093696,1073741824,0,32,896,4096,57344,1048576,6291456,8388608,16777216,100663296,134217728,268435456,2147483648,0,512,786432,4194304,33554432,134217728,268435456,0,786432,4194304,134217728,268435456,0,524288,4194304,268435456,0,0,0,0,0,4194304,4194304,-540651761,0,0,0,2,4,8,16,96,128,264503296,-805306368,0,0,0,8,256,512,19456,131072,3072,16384,131072,262144,8388608,16777216,512,1024,2048,16384,131072,262144,131072,262144,8388608,33554432,201326592,268435456,0,3,4,256,1024,2048,57344,16384,131072,8388608,33554432,134217728,268435456,0,3,256,1024,16384,131072,33554432,134217728,1073741824,2147483648,0,0,256,524288,2147483648,0,3,256,33554432,134217728,1073741824,0,1,2,33554432,1,2,134217728,1073741824,0,1,2,134217728,0,0,0,64,0,0,0,16,32,896,4096,786432,4194304,16777216,33554432,201326592,268435456,1073741824,2147483648,0,0,0,15,0,4980736,4980736,4980736,70460,70460,3478332,0,0,1008,4984832,520093696,60,4864,65536,0,0,0,12,16,32,256,512,4096,65536,0,0,0,67108864,0,0,0,12,0,256,512,65536,0,0,1024,512,131072,131072,4,16,32,65536,0,4,16,32,0,0,0,4,16,0,0,16384,67108864,0,0,1,24,96,128,256,1024],r.TOKEN=[\"(0)\",\"JSONChar\",\"JSONCharRef\",\"JSONPredefinedCharRef\",\"ModuleDecl\",\"Annotation\",\"OptionDecl\",\"Operator\",\"Variable\",\"Tag\",\"EndTag\",\"PragmaContents\",\"DirCommentContents\",\"DirPIContents\",\"CDataSectionContents\",\"AttrTest\",\"Wildcard\",\"EQName\",\"IntegerLiteral\",\"DecimalLiteral\",\"DoubleLiteral\",\"PredefinedEntityRef\",\"'\\\"\\\"'\",\"EscapeApos\",\"AposChar\",\"ElementContentChar\",\"QuotAttrContentChar\",\"AposAttrContentChar\",\"NCName\",\"QName\",\"S\",\"CharRef\",\"CommentContents\",\"DocTag\",\"DocCommentContents\",\"EOF\",\"'!'\",\"'\\\"'\",\"'#'\",\"'#)'\",\"'$$'\",\"''''\",\"'('\",\"'(#'\",\"'(:'\",\"'(:~'\",\"')'\",\"'*'\",\"'*'\",\"','\",\"'-->'\",\"'.'\",\"'/'\",\"'/>'\",\"':'\",\"':)'\",\"';'\",\"'<!--'\",\"'<![CDATA['\",\"'<?'\",\"'='\",\"'>'\",\"'?'\",\"'?>'\",\"'NaN'\",\"'['\",\"']'\",\"']]>'\",\"'after'\",\"'all'\",\"'allowing'\",\"'ancestor'\",\"'ancestor-or-self'\",\"'and'\",\"'any'\",\"'append'\",\"'array'\",\"'as'\",\"'ascending'\",\"'at'\",\"'attribute'\",\"'base-uri'\",\"'before'\",\"'boundary-space'\",\"'break'\",\"'by'\",\"'case'\",\"'cast'\",\"'castable'\",\"'catch'\",\"'check'\",\"'child'\",\"'collation'\",\"'collection'\",\"'comment'\",\"'constraint'\",\"'construction'\",\"'contains'\",\"'content'\",\"'context'\",\"'continue'\",\"'copy'\",\"'copy-namespaces'\",\"'count'\",\"'decimal-format'\",\"'decimal-separator'\",\"'declare'\",\"'default'\",\"'delete'\",\"'descendant'\",\"'descendant-or-self'\",\"'descending'\",\"'diacritics'\",\"'different'\",\"'digit'\",\"'distance'\",\"'div'\",\"'document'\",\"'document-node'\",\"'element'\",\"'else'\",\"'empty'\",\"'empty-sequence'\",\"'encoding'\",\"'end'\",\"'entire'\",\"'eq'\",\"'every'\",\"'exactly'\",\"'except'\",\"'exit'\",\"'external'\",\"'first'\",\"'following'\",\"'following-sibling'\",\"'for'\",\"'foreach'\",\"'foreign'\",\"'from'\",\"'ft-option'\",\"'ftand'\",\"'ftnot'\",\"'ftor'\",\"'function'\",\"'ge'\",\"'greatest'\",\"'group'\",\"'grouping-separator'\",\"'gt'\",\"'idiv'\",\"'if'\",\"'import'\",\"'in'\",\"'index'\",\"'infinity'\",\"'inherit'\",\"'insensitive'\",\"'insert'\",\"'instance'\",\"'integrity'\",\"'intersect'\",\"'into'\",\"'is'\",\"'item'\",\"'json'\",\"'json-item'\",\"'key'\",\"'language'\",\"'last'\",\"'lax'\",\"'le'\",\"'least'\",\"'let'\",\"'levels'\",\"'loop'\",\"'lowercase'\",\"'lt'\",\"'minus-sign'\",\"'mod'\",\"'modify'\",\"'module'\",\"'most'\",\"'namespace'\",\"'namespace-node'\",\"'ne'\",\"'next'\",\"'no'\",\"'no-inherit'\",\"'no-preserve'\",\"'node'\",\"'nodes'\",\"'not'\",\"'object'\",\"'occurs'\",\"'of'\",\"'on'\",\"'only'\",\"'option'\",\"'or'\",\"'order'\",\"'ordered'\",\"'ordering'\",\"'paragraph'\",\"'paragraphs'\",\"'parent'\",\"'pattern-separator'\",\"'per-mille'\",\"'percent'\",\"'phrase'\",\"'position'\",\"'preceding'\",\"'preceding-sibling'\",\"'preserve'\",\"'previous'\",\"'processing-instruction'\",\"'relationship'\",\"'rename'\",\"'replace'\",\"'return'\",\"'returning'\",\"'revalidation'\",\"'same'\",\"'satisfies'\",\"'schema'\",\"'schema-attribute'\",\"'schema-element'\",\"'score'\",\"'self'\",\"'sensitive'\",\"'sentence'\",\"'sentences'\",\"'skip'\",\"'sliding'\",\"'some'\",\"'stable'\",\"'start'\",\"'stemming'\",\"'stop'\",\"'strict'\",\"'strip'\",\"'structured-item'\",\"'switch'\",\"'text'\",\"'then'\",\"'thesaurus'\",\"'times'\",\"'to'\",\"'treat'\",\"'try'\",\"'tumbling'\",\"'type'\",\"'typeswitch'\",\"'union'\",\"'unique'\",\"'unordered'\",\"'updating'\",\"'uppercase'\",\"'using'\",\"'validate'\",\"'value'\",\"'variable'\",\"'version'\",\"'weight'\",\"'when'\",\"'where'\",\"'while'\",\"'wildcards'\",\"'window'\",\"'with'\",\"'without'\",\"'word'\",\"'words'\",\"'xquery'\",\"'zero-digit'\",\"'{'\",\"'{{'\",\"'|'\",\"'}'\",\"'}}'\"]},{}],\"/node_modules/xqlint/lib/lexers/XQueryTokenizer.js\":[function(e,t,n){var r=n.XQueryTokenizer=function i(e,t){function r(e,t){E=t,S=e,x=e.length,s(0,0,0)}function s(e,t,n){m=t,g=t,y=e,b=t,w=n,N=n,E.reset(S)}function o(){E.startNonterminal(\"EQName\",g);switch(y){case 77:f(77);break;case 91:f(91);break;case 115:f(115);break;case 116:f(116);break;case 119:f(119);break;case 140:f(140);break;case 147:f(147);break;case 160:f(160);break;case 180:f(180);break;case 186:f(186);break;case 211:f(211);break;case 221:f(221);break;case 222:f(222);break;case 238:f(238);break;case 239:f(239);break;case 248:f(248);break;default:u()}E.endNonterminal(\"EQName\",g)}function u(){E.startNonterminal(\"FunctionName\",g);switch(y){case 14:f(14);break;case 65:f(65);break;case 68:f(68);break;case 69:f(69);break;case 70:f(70);break;case 74:f(74);break;case 75:f(75);break;case 79:f(79);break;case 83:f(83);break;case 84:f(84);break;case 85:f(85);break;case 88:f(88);break;case 89:f(89);break;case 98:f(98);break;case 100:f(100);break;case 103:f(103);break;case 104:f(104);break;case 105:f(105);break;case 106:f(106);break;case 107:f(107);break;case 108:f(108);break;case 113:f(113);break;case 114:f(114);break;case 117:f(117);break;case 118:f(118);break;case 121:f(121);break;case 123:f(123);break;case 124:f(124);break;case 126:f(126);break;case 129:f(129);break;case 130:f(130);break;case 131:f(131);break;case 132:f(132);break;case 141:f(141);break;case 143:f(143);break;case 145:f(145);break;case 146:f(146);break;case 148:f(148);break;case 154:f(154);break;case 155:f(155);break;case 157:f(157);break;case 158:f(158);break;case 159:f(159);break;case 165:f(165);break;case 167:f(167);break;case 169:f(169);break;case 173:f(173);break;case 175:f(175);break;case 176:f(176);break;case 177:f(177);break;case 179:f(179);break;case 181:f(181);break;case 193:f(193);break;case 195:f(195);break;case 196:f(196);break;case 197:f(197);break;case 201:f(201);break;case 207:f(207);break;case 208:f(208);break;case 213:f(213);break;case 214:f(214);break;case 215:f(215);break;case 219:f(219);break;case 224:f(224);break;case 230:f(230);break;case 231:f(231);break;case 232:f(232);break;case 243:f(243);break;case 244:f(244);break;case 245:f(245);break;case 249:f(249);break;case 251:f(251);break;case 255:f(255);break;case 261:f(261);break;case 265:f(265);break;case 269:f(269);break;case 67:f(67);break;case 76:f(76);break;case 78:f(78);break;case 80:f(80);break;case 81:f(81);break;case 86:f(86);break;case 93:f(93);break;case 96:f(96);break;case 97:f(97);break;case 99:f(99);break;case 101:f(101);break;case 120:f(120);break;case 127:f(127);break;case 128:f(128);break;case 136:f(136);break;case 149:f(149);break;case 150:f(150);break;case 156:f(156);break;case 166:f(166);break;case 187:f(187);break;case 194:f(194);break;case 198:f(198);break;case 217:f(217);break;case 220:f(220);break;case 223:f(223);break;case 229:f(229);break;case 235:f(235);break;case 246:f(246);break;case 247:f(247);break;case 252:f(252);break;case 256:f(256);break;case 257:f(257);break;case 258:f(258);break;case 262:f(262);break;case 92:f(92);break;case 171:f(171);break;default:f(216)}E.endNonterminal(\"FunctionName\",g)}function a(){E.startNonterminal(\"NCName\",g);switch(y){case 26:f(26);break;case 65:f(65);break;case 70:f(70);break;case 74:f(74);break;case 75:f(75);break;case 79:f(79);break;case 83:f(83);break;case 84:f(84);break;case 85:f(85);break;case 89:f(89);break;case 100:f(100);break;case 104:f(104);break;case 108:f(108);break;case 113:f(113);break;case 117:f(117);break;case 118:f(118);break;case 121:f(121);break;case 123:f(123);break;case 126:f(126);break;case 132:f(132);break;case 141:f(141);break;case 143:f(143);break;case 145:f(145);break;case 146:f(146);break;case 155:f(155);break;case 157:f(157);break;case 158:f(158);break;case 159:f(159);break;case 167:f(167);break;case 169:f(169);break;case 173:f(173);break;case 175:f(175);break;case 176:f(176);break;case 181:f(181);break;case 193:f(193);break;case 195:f(195);break;case 196:f(196);break;case 215:f(215);break;case 219:f(219);break;case 231:f(231);break;case 232:f(232);break;case 243:f(243);break;case 244:f(244);break;case 249:f(249);break;case 261:f(261);break;case 265:f(265);break;case 68:f(68);break;case 69:f(69);break;case 77:f(77);break;case 88:f(88);break;case 91:f(91);break;case 98:f(98);break;case 103:f(103);break;case 105:f(105);break;case 106:f(106);break;case 107:f(107);break;case 114:f(114);break;case 115:f(115);break;case 116:f(116);break;case 119:f(119);break;case 124:f(124);break;case 129:f(129);break;case 130:f(130);break;case 131:f(131);break;case 140:f(140);break;case 147:f(147);break;case 148:f(148);break;case 154:f(154);break;case 160:f(160);break;case 165:f(165);break;case 177:f(177);break;case 179:f(179);break;case 180:f(180);break;case 186:f(186);break;case 197:f(197);break;case 201:f(201);break;case 207:f(207);break;case 208:f(208);break;case 211:f(211);break;case 213:f(213);break;case 214:f(214);break;case 221:f(221);break;case 222:f(222);break;case 224:f(224);break;case 230:f(230);break;case 238:f(238);break;case 239:f(239);break;case 245:f(245);break;case 248:f(248);break;case 251:f(251);break;case 255:f(255);break;case 257:f(257);break;case 269:f(269);break;case 67:f(67);break;case 76:f(76);break;case 78:f(78);break;case 80:f(80);break;case 81:f(81);break;case 86:f(86);break;case 93:f(93);break;case 96:f(96);break;case 97:f(97);break;case 99:f(99);break;case 101:f(101);break;case 120:f(120);break;case 127:f(127);break;case 128:f(128);break;case 136:f(136);break;case 149:f(149);break;case 150:f(150);break;case 156:f(156);break;case 166:f(166);break;case 187:f(187);break;case 194:f(194);break;case 198:f(198);break;case 217:f(217);break;case 220:f(220);break;case 223:f(223);break;case 229:f(229);break;case 235:f(235);break;case 246:f(246);break;case 247:f(247);break;case 252:f(252);break;case 256:f(256);break;case 258:f(258);break;case 262:f(262);break;case 92:f(92);break;case 171:f(171);break;default:f(216)}E.endNonterminal(\"NCName\",g)}function f(e){y==e?(l(),E.terminal(i.TOKEN[y],b,w>x?x:w),m=b,g=w,y=0):d(b,w,0,y,e)}function l(){g!=b&&(m=g,g=b,E.whitespace(m,g))}function c(e){var t;for(;;){t=C(e);if(t!=28)break}return t}function h(e){y==0&&(y=c(e),b=T,w=N)}function p(e){y==0&&(y=C(e),b=T,w=N)}function d(e,t,r,i,s){throw new n.ParseException(e,t,r,i,s)}function C(e){var t=!1;T=N;var n=N,r=i.INITIAL[e],s=0;for(var o=r&4095;o!=0;){var u,a=n<x?S.charCodeAt(n):0;++n;if(a<128)u=i.MAP0[a];else if(a<55296){var f=a>>4;u=i.MAP1[(a&15)+i.MAP1[(f&31)+i.MAP1[f>>5]]]}else{if(a<56320){var f=n<x?S.charCodeAt(n):0;f>=56320&&f<57344&&(++n,a=((a&1023)<<10)+(f&1023)+65536,t=!0)}var l=0,c=5;for(var h=3;;h=c+l>>1){if(i.MAP2[h]>a)c=h-1;else{if(!(i.MAP2[6+h]<a)){u=i.MAP2[12+h];break}l=h+1}if(l>c){u=0;break}}}s=o;var p=(u<<12)+o-1;o=i.TRANSITION[(p&15)+i.TRANSITION[p>>4]],o>4095&&(r=o,o&=4095,N=n)}r>>=12;if(r==0){N=n-1;var f=N<x?S.charCodeAt(N):0;return f>=56320&&f<57344&&--N,d(T,N,s,-1,-1)}if(t)for(var v=r>>9;v>0;--v){--N;var f=N<x?S.charCodeAt(N):0;f>=56320&&f<57344&&--N}else N-=r>>9;return(r&511)-1}r(e,t);var n=this;this.ParseException=function(e,t,n,r,i){var s=e,o=t,u=n,a=r,f=i;this.getBegin=function(){return s},this.getEnd=function(){return o},this.getState=function(){return u},this.getExpected=function(){return f},this.getOffending=function(){return a},this.getMessage=function(){return a<0?\"lexical analysis failed\":\"syntax error\"}},this.getInput=function(){return S},this.getOffendingToken=function(e){var t=e.getOffending();return t>=0?i.TOKEN[t]:null},this.getExpectedTokenSet=function(e){var t;return e.getExpected()<0?t=i.getTokenSet(-e.getState()):t=[i.TOKEN[e.getExpected()]],t},this.getErrorMessage=function(e){var t=this.getExpectedTokenSet(e),n=this.getOffendingToken(e),r=S.substring(0,e.getBegin()),i=r.split(\"\\n\"),s=i.length,o=i[s-1].length+1,u=e.getEnd()-e.getBegin();return e.getMessage()+(n==null?\"\":\", found \"+n)+\"\\nwhile expecting \"+(t.length==1?t[0]:\"[\"+t.join(\", \")+\"]\")+\"\\n\"+(u==0||n!=null?\"\":\"after successfully scanning \"+u+\" characters beginning \")+\"at line \"+s+\", column \"+o+\":\\n...\"+S.substring(e.getBegin(),Math.min(S.length,e.getBegin()+64))+\"...\"},this.parse_start=function(){E.startNonterminal(\"start\",g),h(14);switch(y){case 55:f(55);break;case 54:f(54);break;case 56:f(56);break;case 40:f(40);break;case 42:f(42);break;case 41:f(41);break;case 35:f(35);break;case 38:f(38);break;case 274:f(274);break;case 271:f(271);break;case 39:f(39);break;case 43:f(43);break;case 49:f(49);break;case 62:f(62);break;case 63:f(63);break;case 46:f(46);break;case 48:f(48);break;case 53:f(53);break;case 51:f(51);break;case 34:f(34);break;case 273:f(273);break;case 2:f(2);break;case 1:f(1);break;case 3:f(3);break;case 12:f(12);break;case 13:f(13);break;case 15:f(15);break;case 16:f(16);break;case 17:f(17);break;case 5:f(5);break;case 6:f(6);break;case 4:f(4);break;case 33:f(33);break;default:o()}E.endNonterminal(\"start\",g)},this.parse_StartTag=function(){E.startNonterminal(\"StartTag\",g),h(8);switch(y){case 58:f(58);break;case 50:f(50);break;case 27:f(27);break;case 57:f(57);break;case 35:f(35);break;case 38:f(38);break;default:f(33)}E.endNonterminal(\"StartTag\",g)},this.parse_TagContent=function(){E.startNonterminal(\"TagContent\",g),p(11);switch(y){case 23:f(23);break;case 6:f(6);break;case 7:f(7);break;case 55:f(55);break;case 54:f(54);break;case 18:f(18);break;case 29:f(29);break;case 272:f(272);break;case 275:f(275);break;case 271:f(271);break;default:f(33)}E.endNonterminal(\"TagContent\",g)},this.parse_AposAttr=function(){E.startNonterminal(\"AposAttr\",g),p(10);switch(y){case 20:f(20);break;case 25:f(25);break;case 18:f(18);break;case 29:f(29);break;case 272:f(272);break;case 275:f(275);break;case 271:f(271);break;case 38:f(38);break;default:f(33)}E.endNonterminal(\"AposAttr\",g)},this.parse_QuotAttr=function(){E.startNonterminal(\"QuotAttr\",g),p(9);switch(y){case 19:f(19);break;case 24:f(24);break;case 18:f(18);break;case 29:f(29);break;case 272:f(272);break;case 275:f(275);break;case 271:f(271);break;case 35:f(35);break;default:f(33)}E.endNonterminal(\"QuotAttr\",g)},this.parse_CData=function(){E.startNonterminal(\"CData\",g),p(1);switch(y){case 11:f(11);break;case 64:f(64);break;default:f(33)}E.endNonterminal(\"CData\",g)},this.parse_XMLComment=function(){E.startNonterminal(\"XMLComment\",g),p(0);switch(y){case 9:f(9);break;case 47:f(47);break;default:f(33)}E.endNonterminal(\"XMLComment\",g)},this.parse_PI=function(){E.startNonterminal(\"PI\",g),p(3);switch(y){case 10:f(10);break;case 59:f(59);break;case 60:f(60);break;default:f(33)}E.endNonterminal(\"PI\",g)},this.parse_Pragma=function(){E.startNonterminal(\"Pragma\",g),p(2);switch(y){case 8:f(8);break;case 36:f(36);break;case 37:f(37);break;default:f(33)}E.endNonterminal(\"Pragma\",g)},this.parse_Comment=function(){E.startNonterminal(\"Comment\",g),p(4);switch(y){case 52:f(52);break;case 41:f(41);break;case 30:f(30);break;default:f(33)}E.endNonterminal(\"Comment\",g)},this.parse_CommentDoc=function(){E.startNonterminal(\"CommentDoc\",g),p(5);switch(y){case 31:f(31);break;case 32:f(32);break;case 52:f(52);break;case 41:f(41);break;default:f(33)}E.endNonterminal(\"CommentDoc\",g)},this.parse_QuotString=function(){E.startNonterminal(\"QuotString\",g),p(6);switch(y){case 18:f(18);break;case 29:f(29);break;case 19:f(19);break;case 21:f(21);break;case 35:f(35);break;default:f(33)}E.endNonterminal(\"QuotString\",g)},this.parse_AposString=function(){E.startNonterminal(\"AposString\",g),p(7);switch(y){case 18:f(18);break;case 29:f(29);break;case 20:f(20);break;case 22:f(22);break;case 38:f(38);break;default:f(33)}E.endNonterminal(\"AposString\",g)},this.parse_Prefix=function(){E.startNonterminal(\"Prefix\",g),h(13),l(),a(),E.endNonterminal(\"Prefix\",g)},this.parse__EQName=function(){E.startNonterminal(\"_EQName\",g),h(12),l(),o(),E.endNonterminal(\"_EQName\",g)};var v,m,g,y,b,w,E,S,x,T,N};r.getTokenSet=function(e){var t=[],n=e<0?-e:INITIAL[e]&4095;for(var i=0;i<276;i+=32){var s=i,o=(i>>5)*2062+n-1,u=o>>2,a=u>>2,f=r.EXPECTED[(o&3)+r.EXPECTED[(u&3)+r.EXPECTED[(a&3)+r.EXPECTED[a>>2]]]];for(;f!=0;f>>>=1,++s)(f&1)!=0&&t.push(r.TOKEN[s])}return t},r.MAP0=[66,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,18,18,18,18,18,18,18,18,18,19,20,21,22,23,24,25,26,27,28,29,30,27,31,31,31,31,31,31,31,31,31,31,32,31,31,33,31,31,31,31,31,31,34,35,36,35,31,35,37,38,39,40,41,42,43,44,45,31,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,31,61,62,63,64,35],r.MAP1=[108,124,214,214,214,214,214,214,214,214,214,214,214,214,214,214,156,181,181,181,181,181,214,215,213,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,247,261,277,293,309,347,363,379,416,416,416,408,331,323,331,323,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,433,433,433,433,433,433,433,316,331,331,331,331,331,331,331,331,394,416,416,417,415,416,416,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,416,330,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,331,416,66,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,18,18,18,18,18,18,18,18,18,19,20,21,22,23,24,25,26,27,28,29,30,27,31,31,31,31,31,31,31,31,31,31,31,31,31,31,35,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,32,31,31,33,31,31,31,31,31,31,34,35,36,35,31,35,37,38,39,40,41,42,43,44,45,31,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,31,61,62,63,64,35,35,35,35,35,35,35,35,35,35,35,35,31,31,35,35,35,35,35,35,35,65,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65],r.MAP2=[57344,63744,64976,65008,65536,983040,63743,64975,65007,65533,983039,1114111,35,31,35,31,31,35],r.INITIAL=[1,2,36867,45060,5,6,7,8,9,10,11,12,13,14,15],r.TRANSITION=[17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22908,18836,17152,19008,19233,20367,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,17365,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,17470,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,18157,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,17848,17880,18731,17918,36551,17292,17934,17979,18727,18023,36545,18621,18039,18056,18072,18117,18143,18173,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17687,18805,18421,18437,18101,17393,18489,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,18579,21711,17152,19008,19233,20367,19008,28684,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,17365,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,17470,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,18157,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,17848,17880,18731,17918,36551,17292,17934,17979,18727,18023,36545,18621,18039,18056,18072,18117,18143,18173,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17687,18805,18421,18437,18101,17393,18489,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,20116,18836,18637,19008,19233,21267,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,18763,18778,18794,19008,19233,20367,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,18821,22923,18906,19008,19233,17431,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18937,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,19054,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,18953,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21843,18836,18987,19008,19233,20367,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21696,18836,18987,19008,19233,20367,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22429,20131,18720,19008,19233,20367,19008,17173,23559,36437,17330,17349,18921,17189,17208,17281,20355,18087,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,21242,19111,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,19024,18836,18609,19008,19233,20367,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,19081,22444,18987,19008,19233,20367,19008,19065,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21992,22007,18987,19008,19233,20367,19008,18690,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22414,18836,18987,19008,19233,30651,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,19138,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,19280,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,19172,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21783,18836,18987,19008,19233,20367,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,19218,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21651,18836,18987,19008,19233,20367,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,19249,19265,19307,18888,27857,30536,24401,31444,23357,18888,19351,18888,18890,27211,19370,27211,27211,19392,24401,31911,24401,24401,25467,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,28537,19440,24401,24401,24401,24401,24036,17994,24060,18888,18888,18888,18890,19468,27211,27211,27211,27211,19484,35367,19520,24401,24401,24401,19628,18888,29855,18888,18888,23086,27211,19538,27211,27211,30756,24012,24401,19560,24401,24401,26750,18888,18888,19327,27855,27211,27211,19580,17590,24017,24401,24401,19600,25665,18888,18888,28518,27211,27212,24016,19620,19868,28435,25722,18889,19644,27211,32888,35852,19868,31018,19694,19376,19717,22215,19735,22098,19751,35203,19776,19797,19817,19840,25783,31738,24135,19701,19856,31015,23516,31008,28311,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21768,18836,19307,18888,27857,27904,24401,29183,28015,18888,18888,18888,18890,27211,27211,27211,27211,19888,24401,24401,24401,24401,22953,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,28537,19440,24401,24401,24401,24401,24036,18881,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,19484,24401,24401,24401,24401,24401,19628,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,24012,24401,24401,24401,24401,26750,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22399,18836,19918,19008,19233,20367,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21666,18836,19307,18888,27857,27525,24401,29183,21467,18888,18888,18888,18890,27211,27211,27211,27211,19946,24401,24401,24401,24401,32382,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,28537,19998,24401,24401,24401,24401,31500,18467,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,20021,24401,24401,24401,24401,24401,34271,18888,18888,18888,18888,23086,27211,27211,27211,27211,32926,29908,24401,24401,24401,24401,26095,18888,18888,18888,27855,27211,27211,27211,20050,22968,24401,24401,24401,18887,18888,18888,27211,27211,35779,20080,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,20101,19039,20191,20412,20903,17569,20309,20872,25633,20623,20505,20218,20242,17189,17208,17281,20355,20265,20306,20328,20383,22490,20796,20619,21354,20654,20410,20956,21232,20765,17421,20535,17192,18127,22459,20312,25531,22470,20309,20428,18964,20466,20491,21342,21070,20521,20682,17714,18326,17543,17559,17585,22497,20559,19504,20279,20575,20290,20475,20604,20639,20226,20670,17661,21190,17703,21176,17730,19494,20698,20711,22480,21046,21116,18971,21130,20727,20755,17675,17753,17832,17590,25518,20394,20781,20831,20202,20847,21401,17292,17934,17979,18549,20863,20588,25542,20888,20919,18072,18117,20935,20972,21032,21062,21086,18239,21102,18563,21146,21162,21206,18351,20949,20902,18340,21222,21258,21283,18360,20249,17405,21295,21311,21327,20739,20343,21370,21386,21417,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21977,18836,18987,19008,19233,20367,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,21452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,21504,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,36501,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,28674,21946,17617,36473,18223,17237,17477,19152,17860,17892,17675,17753,17832,21575,21534,17481,19156,17864,18731,17918,36551,17292,17934,21560,30628,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21798,18836,21612,19008,19233,20367,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21636,18836,18987,19008,19233,17902,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21753,19096,21903,19008,19233,20367,19008,19291,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,17379,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,21931,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,18280,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21962,18594,18987,19008,19233,22043,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21681,21858,18987,19008,19233,20367,19008,21544,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22339,18836,22059,18888,27857,34097,24401,29183,22087,18888,18888,18888,18890,27211,27211,27211,27211,22121,24401,24401,24401,24401,30613,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,22164,24401,24401,24401,24401,31500,31693,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,19484,24401,24401,24401,24401,24401,32319,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,21431,24401,24401,24401,24401,26095,18888,18888,18888,27855,27211,27211,27211,22187,22968,24401,24401,24401,22231,18888,18888,27211,27211,35779,20080,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22339,18836,22059,18888,27857,34097,24401,29183,22087,18888,18888,18888,18890,27211,27211,27211,27211,22121,24401,24401,24401,24401,30613,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,22164,24401,24401,24401,24401,31500,31693,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,19484,24401,24401,24401,24401,24401,31181,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,21431,24401,24401,24401,24401,26095,18888,18888,18888,27855,27211,27211,27211,22187,22968,24401,24401,24401,18887,18888,18888,27211,27211,35779,20080,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22339,18836,22059,18888,27857,34097,24401,29183,22087,18888,18888,18888,18890,27211,27211,27211,27211,22121,24401,24401,24401,24401,31678,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,22164,24401,24401,24401,24401,31500,31693,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,19484,24401,24401,24401,24401,24401,31181,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,21431,24401,24401,24401,24401,26095,18888,18888,18888,27855,27211,27211,27211,22187,22968,24401,24401,24401,18887,18888,18888,27211,27211,35779,20080,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22339,18836,22059,18888,27857,34097,24401,29183,22087,18888,18888,18888,18890,27211,27211,27211,27211,22121,24401,24401,24401,24401,30613,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,22164,24401,24401,24401,24401,33588,31693,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,19484,24401,24401,24401,24401,24401,31181,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,21431,24401,24401,24401,24401,26095,18888,18888,18888,27855,27211,27211,27211,22187,22968,24401,24401,24401,18887,18888,18888,27211,27211,35779,20080,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22339,18836,22059,18888,27857,35019,24401,29183,22087,18888,18888,18888,18890,27211,27211,27211,27211,22248,24401,24401,24401,24401,30613,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,22164,24401,24401,24401,24401,31500,31693,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,19484,24401,24401,24401,24401,24401,31181,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,21431,24401,24401,24401,24401,26095,18888,18888,18888,27855,27211,27211,27211,22187,22968,24401,24401,24401,18887,18888,18888,27211,27211,35779,20080,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22339,18836,22059,18888,27857,34097,24401,29183,22087,18888,18888,18888,18890,27211,27211,27211,27211,22121,24401,24401,24401,24401,18866,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,22164,24401,24401,24401,24401,24036,31693,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,19484,24401,24401,24401,24401,24401,19628,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,24012,24401,24401,24401,24401,26750,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22324,18836,22059,18888,27857,30501,24401,29183,22087,18888,18888,18888,18890,27211,27211,27211,27211,22121,24401,24401,24401,24401,18866,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,22164,24401,24401,24401,24401,24036,31693,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,19484,24401,24401,24401,24401,24401,19628,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,24012,24401,24401,24401,24401,26750,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22339,18836,22059,18888,27857,34097,24401,29183,22087,18888,18888,18888,18890,27211,27211,27211,27211,22121,24401,24401,24401,24401,18866,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,22164,24401,24401,24401,24401,24036,31693,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,19484,24401,24401,24401,24401,24401,19628,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,24012,24401,24401,24401,24401,34365,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22354,18836,18987,19008,19233,20367,19008,17173,27086,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,19930,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21828,18836,18987,19008,19233,20367,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22309,22513,18987,19008,19233,20367,19008,19122,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,22544,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22608,18836,22988,23004,27585,23020,23036,23067,22087,18888,18888,18888,23083,27211,27211,27211,23102,22121,24401,24401,24401,23122,31386,26154,19674,18888,28119,28232,19424,23705,27211,27211,23142,23173,23189,23212,24401,24401,23246,34427,31693,23262,18888,23290,23308,27783,27620,23327,35263,35107,33383,23346,18193,23393,32748,23968,24401,23414,35153,23463,18888,33913,23442,23482,27211,27211,23532,23552,21431,23575,24401,24401,23604,26095,23635,23657,18888,33482,23685,33251,27211,22187,18851,23721,35536,24401,18887,23750,32641,27211,23769,23787,20080,33012,24384,25659,18888,18889,27211,27211,19719,23889,23803,31018,18890,27211,31833,19406,19447,23086,23330,19828,28224,31826,23823,26917,34978,23850,26493,25782,23878,23914,23516,31008,22105,19419,27963,19659,29781,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22623,18836,22059,18888,27857,34097,24401,29183,22087,18888,18888,18888,18890,27211,27211,27211,27211,22121,24401,24401,24401,24401,30613,18888,18888,18888,18888,28909,25783,27211,27211,27211,34048,23933,22164,24401,24401,24401,28409,23949,31693,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,19484,24401,24401,24401,24401,24401,31181,26583,18888,18888,18888,35585,23984,27211,27211,27211,24005,22201,24033,24401,24401,24401,24052,18888,18888,18888,27855,27211,27211,27211,22187,22968,24401,24401,24401,18887,18888,18888,27211,27211,35779,20080,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,26496,24076,24126,24151,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22638,18836,22059,19678,27857,24185,24401,24201,24217,26592,18888,18888,18890,24252,24268,27211,27211,22121,24287,24303,24401,24401,30613,19781,35432,36007,32649,18888,25783,24322,28966,23771,27211,35072,22164,24358,32106,26829,24400,31500,31693,18888,18888,18888,24801,18890,27211,27211,27211,27211,24418,19484,24401,24401,24401,24401,20167,31181,18888,18888,18888,27833,23086,27211,27211,33540,27211,30756,21431,24401,24401,22972,24401,26095,18888,36131,18888,27855,27211,24440,27211,22187,22968,24401,24459,24401,31699,28454,18888,34528,34570,35779,24478,24402,24494,25659,18888,36228,27211,27211,24515,30981,23734,31018,18890,27211,31833,19406,19447,23086,23330,24538,31017,27856,31741,30059,23377,24563,19837,25782,19760,31015,23516,25374,22105,19419,29793,24579,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22653,18836,22059,25756,19982,34097,23196,29183,24614,24110,23641,24673,26103,24697,24443,24713,28558,22121,24748,24462,24764,23398,30613,18888,18888,18888,18888,24798,25783,27211,27211,27211,34232,35072,22164,24401,24401,24401,33302,31500,22559,24106,24232,18888,18888,34970,24817,30411,27211,27211,32484,19484,29750,35127,24401,24401,19872,31181,24852,18888,18888,24871,29221,27211,27211,32072,27211,30756,34441,24401,24401,31571,24401,26095,33141,27802,27011,27855,25295,25607,24888,22187,22968,19195,34593,24906,18887,18888,18888,27211,27211,35779,20080,24402,19868,25659,18888,33663,27211,27211,24924,24947,23588,31018,18890,27211,31833,22135,19447,23086,23330,19828,30904,31042,24972,19840,25e3,31738,30898,25782,19760,31015,23516,31008,22105,19419,25016,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22668,18836,25041,25057,31320,25073,25089,25105,22087,34796,24236,36138,34870,34125,25121,23106,35497,22248,36613,25137,30671,27365,30613,25153,26447,25199,25233,22574,23274,25249,25265,25281,25318,25344,25360,25400,25428,25452,26731,25504,31693,23669,25558,27407,25575,28599,25934,25599,27211,28180,27304,25623,25839,25649,24401,34820,25681,25698,22586,27775,30190,25745,25778,25799,25817,28995,33569,30756,21518,33443,25837,25855,25893,26095,31254,26677,30136,27855,25930,25950,27211,22187,22968,25966,25986,24401,23428,27763,36330,26959,26002,26029,26045,26085,26119,26170,26203,26222,26239,30527,26372,26274,28404,31018,33757,27211,34262,26316,36729,26345,26366,35337,31017,26388,26407,30954,26350,33861,26434,26463,26479,26512,23516,33189,26531,26547,27963,31293,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22683,18836,26568,26181,26608,34097,26643,29183,22087,26669,18888,18888,18890,26693,27211,27211,27211,22121,26720,24401,24401,24401,30613,18888,18888,18888,18888,26774,25783,27211,27211,27211,26619,35072,22164,24401,24401,24401,21596,31500,31693,18888,18888,33978,18888,18890,27211,27211,25801,27211,27211,19484,24401,24401,24401,26792,24401,31181,18888,18888,18888,35464,23086,27211,27211,27211,26809,30756,21431,24401,24401,24401,26828,26095,18888,18888,18888,27855,27211,27211,27211,22187,22968,24401,24401,24401,18887,18888,18888,27211,27211,35779,20080,24402,19868,25659,31948,18889,35707,27211,19719,26845,19868,31018,18890,27211,31833,19406,19447,23086,23330,26905,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,24984,31088,19419,26945,27651,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22698,18836,26999,18888,27857,34097,24401,29183,22087,18888,18888,18888,18890,27211,27211,27211,27211,22121,24401,24401,24401,24401,23051,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,27033,24401,24401,24401,24401,24036,31693,18888,18888,27056,18888,18890,27211,27211,30320,27211,27211,27075,24401,24401,29032,24401,24401,19628,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,24012,24401,24401,24401,24401,26750,18888,18888,33986,27855,27211,27211,27102,17590,24017,24401,24401,27123,27144,36254,27162,27210,27228,28500,18187,34842,33426,27244,35980,27277,27302,27320,36048,34013,20999,31882,21478,27895,27356,30287,27381,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,26329,30087,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22339,18836,22059,27406,27423,27445,35294,27461,22087,18888,18888,30140,18890,27211,27211,27989,27211,22121,24401,24401,25682,24401,18866,18888,18888,18888,18888,18888,34042,27211,27211,27211,27211,29700,22164,24401,24401,24401,24401,27128,31693,27477,18888,18888,18888,18890,27194,27211,27211,27211,27211,19484,35299,24401,24401,24401,24401,19628,18888,18888,18888,27059,23086,27211,27211,27211,33366,30756,24012,24401,24401,24401,35044,26750,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,20815,27211,30818,19960,33969,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22713,18836,22059,27496,27516,27541,35231,27557,22087,29662,26292,23292,27573,24836,27601,27211,27636,22121,35544,27686,24401,27721,18866,18888,27799,18888,27818,22071,27853,32260,27211,26013,27873,27920,22164,29419,24401,29946,33413,26742,27751,26881,18888,18888,27261,36776,27936,27211,27211,27211,27988,28005,28031,28052,24401,24401,28069,28088,28135,25488,28152,26069,28167,27211,28340,24657,28196,30756,31523,24401,28212,34176,36174,24956,28248,28266,28290,21488,33077,28327,28356,17590,20986,23126,28391,28425,28102,28451,28470,28490,28516,28534,20034,33728,25868,25659,18888,18889,27211,27211,19719,23889,19868,30241,28274,28553,28574,19406,28590,23086,23330,19828,19452,28615,28660,26147,25783,31738,19837,25782,19760,29613,35958,29276,22105,19419,27963,23157,28700,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22339,18836,22059,18888,27857,34097,24401,29183,22087,18888,18888,18888,18890,27211,27211,27211,27211,22121,24401,24401,24401,24401,18866,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,22164,24401,24401,24401,24401,24036,22528,18888,18888,18888,18888,18890,27333,27211,27211,27211,27211,19484,30853,24401,24401,24401,24401,19628,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,24012,24401,24401,24401,24401,26750,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22728,18836,28747,28782,28817,28841,28857,28880,28896,24161,28943,32011,36261,27340,28961,29492,28982,29011,24522,29027,25436,29048,23051,27500,29090,29110,30713,18888,23512,29130,25183,27211,29155,28927,27033,29173,23230,24401,29199,35373,31693,18888,18888,25583,32629,29218,27211,27211,31461,30692,29237,27075,24401,24401,24401,29262,29302,19628,18888,34329,18888,18888,23086,27211,29329,27211,27211,30756,24012,35933,24401,24401,24401,27705,31612,18888,18888,29346,29374,27211,35650,17590,21436,29393,24401,25970,18887,33895,18888,27211,32528,27212,24016,32769,19868,25659,18888,26889,27211,27211,29412,23889,24371,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31768,19840,25783,31738,19837,29435,29508,31102,29550,29606,22105,30300,29462,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22743,18836,22059,29629,29473,34097,33285,29183,29651,27254,18888,29678,33329,32535,27211,29694,29716,22121,19202,24401,32742,29741,18866,26776,33921,28474,18888,18888,25783,29766,27211,29809,27211,35072,22164,35825,24401,29828,24401,24036,36769,25217,18888,18888,29848,18890,27211,29871,27211,26258,27211,29894,24401,29929,24401,36587,24401,19628,18888,18888,18888,18888,23086,27211,27211,27211,27211,29725,29962,24401,24401,24401,24401,26750,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,18473,18888,18888,19584,27211,27212,24016,29982,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19902,19447,32052,19544,19828,29998,30097,30031,19840,25783,30047,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,30075,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22758,18836,30121,30156,30206,30257,30273,30336,22087,35624,32837,25762,18890,29878,34934,26812,27211,22121,24931,23223,29202,24401,18866,34373,30352,18888,18888,18888,23447,24828,27211,27211,27211,35072,30370,35052,24401,24401,24401,24036,29523,18888,18888,27146,18888,31308,30386,27211,27211,30405,30558,19484,30427,24401,24401,29938,35686,19628,28766,30447,34506,35614,23086,28731,30482,30517,30552,30756,24012,20156,30574,30598,30667,26283,33464,28945,27670,30687,32915,33504,25328,17590,23963,20450,33837,21016,32397,26300,30708,30729,27885,30748,21588,36373,30779,26653,24628,33220,32514,30806,31835,25412,25906,26515,18890,28825,31833,26133,19447,28304,31730,23834,26057,30869,30885,32181,30920,30942,32797,25782,30970,31015,23516,31008,30997,31034,27963,19659,29450,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22773,18836,31058,31074,32463,31125,31141,31197,22087,18888,29534,35471,36738,27211,24342,31213,24424,22121,24401,20175,31229,31917,27736,31245,34334,27175,18888,29094,27286,27211,31278,31336,27211,31355,31371,24401,31402,31418,24401,31437,31693,18888,31619,32841,18888,18890,27211,27211,31460,31477,27211,19484,24401,24401,31497,36581,24401,33020,18888,18888,18888,18888,30007,27211,27211,27211,27211,31516,32310,24401,24401,24401,24401,31539,18888,28762,18888,24651,35740,27211,27211,28644,31565,35796,24401,24401,19318,32188,18888,24334,28366,27212,29966,29832,19868,25659,18888,18889,27211,27211,19719,31587,19868,31635,32435,33693,30105,31663,20005,31715,31757,31784,31812,30015,31851,31878,25783,31898,19837,25782,19760,31015,23516,31008,22105,19419,27963,31933,30221,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22788,18836,22059,25729,30466,31968,24306,31984,32e3,32807,35160,27017,29590,34941,19801,29377,33700,22121,27040,30431,29396,28864,29565,18888,18888,18888,32027,18888,25783,27211,27211,23698,27211,35072,22164,24401,24401,30845,24401,24036,32045,18888,26929,18888,18888,18890,27211,31481,32068,27211,27211,32088,24401,33058,32122,24401,24401,33736,18888,18888,33162,18888,23086,27211,27211,29484,27211,28375,32144,24401,24401,33831,24401,26750,18888,18888,18888,27855,27211,27211,27211,36704,24017,24401,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,33107,22171,33224,24271,32169,31017,27856,31741,19840,25783,31738,30234,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22339,18836,32204,32232,32252,32677,33295,29074,22087,18888,18888,18888,18890,27211,27211,27211,27211,22121,24401,24401,24401,24401,23619,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,32276,24401,24401,24401,24401,24036,31693,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,32299,24401,24401,24401,24401,24401,19628,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,24012,24401,24401,24401,24401,26750,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,33886,18889,36065,27211,19719,35326,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22803,18836,32335,31647,34666,32351,32367,32417,22087,18888,32433,19335,32451,27211,32479,27107,32500,22121,24401,32551,20085,32572,18866,22287,23753,18888,18888,32602,32665,27211,32693,27211,26972,32713,32729,24401,32764,24401,25877,32785,34768,18888,27390,32823,24594,24855,32857,24890,32878,32904,27211,32942,32977,24401,33e3,29313,24401,30790,26206,27666,33904,18888,23086,36353,27211,33036,27211,30756,24012,32153,24401,33056,24401,35861,18888,18888,30354,27972,27211,27211,33800,17590,20145,24401,24401,34638,20811,18888,18888,33074,27211,27212,36167,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,34616,24169,33093,33123,33157,27856,31741,23862,26552,34302,19837,25782,19760,31015,23516,31008,33178,19973,27963,23497,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22818,18836,33205,28113,33240,34097,33275,29183,22087,33318,35438,18888,18890,33345,26391,33382,27211,22121,33399,28072,33442,24401,18866,22232,18888,33459,18888,18888,33480,33498,25175,27211,27211,26704,22164,24775,35239,24401,24401,25914,29580,18888,18888,31109,25211,33520,33539,27211,27211,33556,36284,19484,33585,24401,24401,33604,32556,19628,18888,18888,31262,33658,23086,27211,27211,33679,27211,30756,24012,24401,24401,33716,24401,26854,27480,18888,33752,27855,33259,34701,27211,17590,32102,24782,23807,24401,18887,18888,18888,27211,27211,27212,33773,36105,19868,25659,18888,23368,27211,29157,19719,23889,34454,29286,18890,33794,25302,33816,19447,34079,33853,31862,31017,27856,31741,33877,28920,33937,19837,30461,34002,22276,36041,34029,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22833,18836,34064,32616,34113,34141,34157,34192,34208,32216,36013,31549,31952,34224,34248,34287,29330,34350,34389,34413,34481,26793,18866,26187,29635,22293,18888,36654,25783,34522,34544,34566,25821,35072,22164,34586,34609,34632,19604,24036,36644,36674,24681,18888,32401,34654,31339,34682,34698,27211,34717,34753,28053,34812,34836,24401,33619,19628,34858,32236,34906,24598,33523,27612,34890,34922,24732,29246,36717,33634,34465,32984,34168,26750,34957,18888,18888,34994,35010,27211,33040,17590,29913,35035,24401,36304,25482,30171,35883,35068,35088,26627,20441,31173,35123,35143,35176,24640,30492,29358,19719,35192,35219,25384,28801,35255,35279,32586,34496,23086,23330,29061,31017,27856,31741,19840,25783,31738,24547,25164,35315,31796,35353,34316,22105,19419,27963,24091,28630,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22848,18836,22059,34782,34088,35389,21008,35405,35421,35454,18888,18888,23466,35487,27211,27211,27211,35513,31154,24401,24401,24401,35560,18888,26863,36664,35601,24872,25783,30389,23536,26250,35647,35666,22164,19522,19564,30582,35682,27697,35575,29114,18888,18888,18888,18890,27211,35702,27211,27211,27211,35723,24401,35527,24401,24401,24401,19628,30184,18888,18888,18888,23086,35739,27211,27211,27211,29139,22938,24401,24401,24401,24401,23898,35756,18888,18888,25025,35778,27211,27211,17590,20064,35795,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,23917,18890,34550,31833,22262,19447,23086,23330,26418,31017,27856,31741,19840,25783,35812,19837,27187,35841,33135,23516,31008,22105,22148,28712,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22863,18836,22059,35877,28723,34097,31164,29183,22087,26758,18888,22592,18890,23989,27211,29812,27211,22121,33778,24401,31421,24401,18866,18888,18888,26872,18888,18888,25783,27211,30732,27211,27211,35072,22164,24401,24908,24401,24401,24036,31693,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,19484,24401,24401,24401,24401,24401,19628,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,24012,24401,24401,24401,24401,26750,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22878,18836,22059,27837,27857,35899,24401,35915,22087,18888,18888,18888,18890,27211,27211,27211,27211,22121,24401,24401,24401,24401,18866,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,22164,24401,24401,24401,24401,24036,31602,18888,18888,18888,18888,26223,27211,27211,27211,27211,27211,19484,35931,24401,24401,24401,24401,19628,18888,28136,18888,18888,35949,27211,32862,27211,32697,30756,24012,24401,32283,24401,32128,26750,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22893,18836,22059,35974,34882,34097,33960,29183,35996,18888,23311,18888,36029,27211,27211,36064,36081,22121,24401,24401,36104,33950,18866,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,35072,22164,24401,24401,24401,24401,24036,36121,18888,25559,18888,18888,18890,27211,27211,30313,27211,27211,36154,24401,24401,34397,24401,24401,19628,28250,18888,18888,18888,23086,30926,27211,27211,27211,26983,24012,33642,24401,24401,24401,26750,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22339,18836,22059,19354,27857,36190,24401,36206,22087,18888,18888,18888,18007,27211,27211,27211,24724,22121,24401,24401,24401,30827,18866,18888,36222,18888,28795,18888,25783,35100,27211,27429,27211,35072,22164,30836,24401,24499,24401,24036,31693,18888,36244,18888,18888,18890,27211,36088,27211,27211,27211,19484,24401,28036,24401,24401,24401,19628,18888,18888,35631,18888,35762,27211,27211,36277,27211,34730,24012,24401,24401,36300,24401,36320,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,25712,18888,18888,36346,27211,27212,19184,24402,19868,25659,32029,18889,27211,33359,19719,23889,36369,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22384,18836,36389,19008,19233,20367,36434,17173,17595,36437,17330,17349,18921,17189,17208,17281,20355,36453,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,20362,21726,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,22369,18836,18987,19008,19233,20367,19008,21737,30763,36437,17330,17349,18921,17189,17208,17281,20355,17949,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21813,18836,36489,19008,19233,20367,19008,17173,17737,36437,17330,17349,18921,17189,17208,17281,20355,17768,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,20543,22022,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21828,18836,18987,19008,19233,20367,19008,17173,30763,36437,17330,17349,18921,17189,17208,17281,20355,36517,17308,17327,17346,18918,18452,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,18127,21873,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,21828,18836,19307,18888,27857,30756,24401,29183,28015,18888,18888,18888,18890,27211,27211,27211,27211,36567,24401,24401,24401,24401,22953,18888,18888,18888,18888,18888,25783,27211,27211,27211,27211,28537,36603,24401,24401,24401,24401,24036,18881,18888,18888,18888,18888,18890,27211,27211,27211,27211,27211,19484,24401,24401,24401,24401,24401,19628,18888,18888,18888,18888,23086,27211,27211,27211,27211,30756,24012,24401,24401,24401,24401,26750,18888,18888,18888,27855,27211,27211,27211,17590,24017,24401,24401,24401,18887,18888,18888,27211,27211,27212,24016,24402,19868,25659,18888,18889,27211,27211,19719,23889,19868,31018,18890,27211,31833,19406,19447,23086,23330,19828,31017,27856,31741,19840,25783,31738,19837,25782,19760,31015,23516,31008,22105,19419,27963,19659,27951,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,36629,36690,18720,19008,19233,20367,19008,17454,17595,36437,17330,17349,18921,17189,17208,17281,20355,17223,17308,17327,17346,18918,36754,21880,18649,18665,19006,17265,22033,20765,17421,20535,17192,20362,21726,17311,18658,18999,19008,17447,32952,17497,17520,17251,36411,17782,20682,17714,18326,17543,17559,17585,21887,17504,17527,17258,36418,21915,21940,17611,36467,18217,17633,17661,21190,17703,21176,17730,34737,21946,17617,36473,18223,36531,17477,19152,17860,17892,17675,17753,17832,17590,21620,17481,19156,17864,18731,17918,36551,17292,17934,17979,18727,18681,18405,18621,18039,18056,18072,18117,18143,18706,18052,18209,18250,18239,18266,17963,18296,18312,18376,17807,36403,19232,17796,17163,30642,18392,17816,32961,17645,18805,18421,18437,18519,17393,18747,18505,18535,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,17590,0,94242,0,118820,0,2211840,102439,0,0,106538,98347,0,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2482176,2158592,2158592,2158592,2158592,2158592,2158592,0,40976,0,18,18,24,24,27,27,27,2207744,2404352,2412544,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,3104768,2605056,2207744,2207744,2207744,2207744,2207744,2207744,2678784,2207744,2695168,2207744,2703360,2207744,2711552,2752512,2207744,0,0,0,0,0,0,2166784,0,0,0,0,0,0,2158592,2158592,3170304,3174400,2158592,0,139,0,2158592,2158592,2158592,2158592,2158592,2424832,2158592,2158592,2158592,2748416,2756608,2777088,2801664,2158592,2158592,2158592,2863104,2891776,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,3104768,2158592,2158592,2158592,2158592,2158592,2158592,2207744,2785280,2207744,2809856,2207744,2207744,2842624,2207744,2207744,2207744,2899968,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2473984,2207744,2207744,2494464,2207744,2207744,2207744,2523136,2158592,2404352,2412544,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2564096,2158592,2158592,2605056,2158592,2158592,2158592,2158592,2158592,2158592,2678784,2158592,2695168,2158592,2703360,2158592,2711552,2752512,2158592,2158592,2785280,2158592,2158592,2785280,2158592,2809856,2158592,2158592,2842624,2158592,2158592,2158592,2899968,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,18,0,0,0,0,0,0,0,2211840,0,0,641,0,2158592,0,0,0,0,0,0,0,0,2211840,0,0,32768,0,2158592,0,2158592,2158592,2158592,2383872,2158592,2158592,2158592,2158592,3006464,2383872,2207744,2207744,2207744,2207744,2158877,2158877,2158877,2158877,0,0,0,2158877,2572573,2158877,2158877,0,2207744,2207744,2596864,2207744,2207744,2207744,2207744,2207744,2207744,2641920,2207744,2207744,2207744,2207744,2207744,2207744,2207744,0,0,0,167936,0,0,2162688,0,0,3104768,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,0,0,0,2146304,2146304,2224128,2224128,2232320,2232320,2232320,641,0,0,0,0,0,0,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2531328,2158592,2158592,2158592,2158592,2158592,2617344,2158592,2158592,2158592,2158592,2441216,2445312,2158592,2158592,2158592,2158592,2158592,2158592,2502656,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2580480,2158592,2158592,2158592,2158592,2621440,2158592,2580480,2158592,2158592,2158592,2158592,2621440,2158592,2158592,2158592,2158592,2158592,2158592,2699264,2158592,2158592,2158592,2158592,2158592,2748416,2756608,2777088,2801664,2207744,2863104,2891776,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,3018752,2207744,3043328,2207744,2207744,2207744,2207744,3080192,2207744,2207744,3112960,2207744,2207744,2207744,2207744,2207744,2207744,2207744,0,0,0,172310,279,0,2162688,0,0,2207744,2207744,2207744,3186688,2207744,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2158592,2158592,2158592,2404352,2412544,2158592,2510848,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2584576,2158592,2609152,2158592,2158592,2629632,2158592,2158592,2158592,2686976,2158592,2715648,2158592,2158592,3121152,2158592,2158592,2158592,3149824,2158592,2158592,3170304,3174400,2158592,2367488,2207744,2207744,2207744,2207744,2158592,2158592,2158592,2158592,0,0,0,2158592,2572288,2158592,2158592,0,2207744,2207744,2207744,2433024,2207744,2453504,2461696,2207744,2207744,2207744,2207744,2207744,2207744,2510848,2207744,2207744,2207744,2207744,2207744,2531328,2207744,2207744,2207744,2207744,2207744,2617344,2207744,2207744,2207744,2207744,2158592,2158592,2158592,2158592,0,0,0,2158592,2572288,2158592,2158592,1508,2715648,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2867200,2207744,2904064,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2580480,2207744,2207744,2207744,2207744,2621440,2207744,2207744,2207744,3149824,2207744,2207744,3170304,3174400,2207744,0,0,0,0,0,0,0,0,0,0,138,2158592,2158592,2158592,2404352,2412544,2707456,2732032,2207744,2207744,2207744,2822144,2826240,2207744,2895872,2207744,2207744,2924544,2207744,2207744,2973696,2207744,0,0,0,0,0,0,2166784,0,0,0,0,0,285,2158592,2158592,3112960,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,3186688,2158592,2207744,2207744,2158592,2158592,2158592,2158592,2158592,0,0,0,2158592,2158592,2158592,2158592,0,0,2535424,2543616,2158592,2158592,2158592,0,0,0,2158592,2158592,2158592,2990080,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2572288,2981888,2207744,2207744,3002368,2207744,3047424,3063808,3076096,2207744,2207744,2207744,2207744,2207744,2207744,2207744,3203072,2708960,2732032,2158592,2158592,2158592,2822144,2827748,2158592,2895872,2158592,2158592,2924544,2158592,2158592,2973696,2158592,2981888,2158592,2158592,3002368,2158592,3047424,3063808,3076096,2158592,2158592,2158592,2158592,2158592,2158592,2158592,3203072,2981888,2158592,2158592,3003876,2158592,3047424,3063808,3076096,2158592,2158592,2158592,2158592,2158592,2158592,2158592,3203072,2207744,2207744,2207744,2207744,2207744,2424832,2207744,2207744,2207744,2207744,2207744,2207744,2207744,20480,0,0,0,0,0,2162688,20480,0,2523136,2527232,2158592,2158592,2576384,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2908160,2527232,2207744,2207744,2576384,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2908160,2207744,0,0,0,0,0,0,2166784,0,0,0,0,0,286,2158592,2158592,0,0,2158592,2158592,2158592,2158592,2633728,2658304,0,0,2740224,2744320,0,2834432,2207744,2207744,2977792,2207744,2207744,2207744,2207744,3039232,2207744,2207744,2207744,2207744,2207744,2207744,3158016,0,0,29315,0,0,0,0,45,45,45,45,45,933,45,45,45,45,442,45,45,45,45,45,45,45,45,45,67,67,2494464,2158592,2158592,2158592,2524757,2527232,2158592,2158592,2576384,2158592,2158592,2158592,2158592,2158592,2158592,1504,2158592,2498560,2158592,2158592,2158592,2158592,2568192,2158592,2592768,2625536,2158592,2158592,2674688,2736128,2158592,2158592,0,2158592,2912256,2158592,2158592,2158592,2158592,2158592,2158592,2158592,3108864,2158592,2158592,3133440,3145728,3153920,2375680,2379776,2207744,2207744,2420736,2207744,2449408,2207744,2207744,2207744,2498560,2207744,2207744,2207744,2207744,2568192,2207744,0,0,0,0,0,0,2166784,0,0,0,0,0,551,2158592,2158592,2158592,2158592,2207744,2506752,2207744,2207744,2207744,2207744,2207744,2158592,2506752,0,2020,2158592,2592768,2625536,2207744,2207744,2674688,2736128,2207744,2207744,2207744,2912256,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,0,542,0,544,2207744,3108864,2207744,2207744,3133440,3145728,3153920,2375680,2379776,2158592,2158592,2420736,2158592,2449408,2158592,2158592,2158592,2158592,2158592,3186688,2158592,0,641,0,0,0,0,0,0,2367488,2158592,2498560,2158592,2158592,1621,2158592,2158592,2568192,2158592,2592768,2625536,2158592,2158592,2674688,0,0,0,0,0,1608,97,97,97,97,97,97,97,97,97,97,1107,97,97,1110,97,97,3133440,3145728,3153920,2158592,2408448,2416640,2158592,2465792,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,3014656,2158592,2158592,3051520,2158592,2158592,3100672,2158592,2158592,3121152,2158592,2158592,2158592,3149824,2416640,2207744,2465792,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2633728,2658304,2740224,2744320,2834432,2949120,2158592,2985984,2158592,2998272,2158592,2158592,2158592,3129344,2207744,2408448,2949120,2207744,2985984,2207744,2998272,2207744,2207744,2207744,3129344,2158592,2408448,2416640,2158592,2465792,2158592,2158592,2158592,2158592,2158592,3186688,2158592,0,32768,0,0,0,0,0,0,2367488,2949120,2158592,2985984,2158592,2998272,2158592,2158592,2158592,3129344,2158592,2158592,2478080,2158592,2158592,2158592,2535424,2543616,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,3117056,2207744,2207744,2478080,2207744,2207744,2207744,2207744,2699264,2207744,2207744,2207744,2207744,2207744,2748416,2756608,2777088,2801664,2207744,2207744,2158877,2158877,2158877,2158877,2158877,0,0,0,2158877,2158877,2158877,2158877,0,0,2535709,2543901,2158877,2158877,2158877,0,0,0,2158877,2158877,2158877,2990365,2158877,2158877,2158730,2158730,2158730,2158730,2158730,2572426,2207744,2535424,2543616,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,3117056,2158592,2158592,2478080,2207744,2207744,2990080,2207744,2207744,2158592,2158592,2482176,2158592,2158592,0,0,0,2158592,2158592,2158592,0,2158592,2908160,2158592,2158592,2158592,2977792,2158592,2158592,2158592,2158592,3039232,2158592,2158592,3010560,2207744,2428928,2207744,2514944,2207744,2588672,2207744,2838528,2207744,2207744,2207744,3010560,2158592,2428928,2158592,2514944,0,0,2158592,2588672,2158592,0,2838528,2158592,2158592,2158592,3010560,2158592,2506752,2158592,18,0,0,0,0,0,0,0,2211840,0,0,0,0,2158592,0,0,29315,922,0,0,0,45,45,45,45,45,45,45,45,45,45,45,45,45,1539,45,3006464,2383872,0,2020,2158592,2158592,2158592,2158592,3006464,2158592,2637824,2953216,2158592,2207744,2637824,2953216,2207744,0,0,2158592,2637824,2953216,2158592,2539520,2158592,2539520,2207744,0,0,2539520,2158592,2158592,2158592,2158592,2207744,2506752,2207744,2207744,2207744,2207744,2207744,2158592,2506752,0,0,2158592,2207744,0,2158592,2158592,2207744,0,2158592,2158592,2207744,0,2158592,2965504,2965504,2965504,0,0,0,0,0,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2474269,2158877,2158877,0,0,2158877,2158877,2158877,2158877,2634013,2658589,0,0,2740509,2744605,0,2834717,40976,18,36884,45078,24,28,90143,94242,118820,102439,106538,98347,118820,118820,118820,40976,18,18,36884,0,0,0,24,24,24,27,27,27,27,90143,0,0,86016,0,0,2211840,102439,0,0,0,98347,0,2158592,2158592,2158592,2158592,2158592,3158016,0,2375680,2379776,2158592,2158592,2420736,2158592,2449408,2158592,2158592,0,94242,0,0,0,2211840,102439,0,0,106538,98347,135,2158592,2158592,2158592,2158592,2158592,2158592,2564096,2158592,2158592,2158592,2158592,2158592,2596864,2158592,2158592,2158592,2158592,2158592,2158592,2641920,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2781184,2793472,2494464,2158592,2158592,2158592,2523136,2527232,2158592,2158592,2576384,2158592,2158592,2158592,2158592,2158592,2158592,0,40976,0,18,18,24,0,27,27,0,2158592,2498560,2158592,2158592,0,2158592,2158592,2568192,2158592,2592768,2625536,2158592,2158592,2674688,0,0,0,0,0,2211840,0,0,0,0,0,0,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2473984,2158592,2158592,2494464,2158592,2158592,2158592,3006464,2383872,0,0,2158592,2158592,2158592,2158592,3006464,2158592,2637824,2953216,2158592,2207744,2637824,2953216,40976,18,36884,45078,24,27,147488,94242,147456,147488,106538,98347,0,0,147456,40976,18,18,36884,0,45078,0,24,24,24,27,27,27,27,0,81920,0,94242,0,0,0,2211840,0,0,0,106538,98347,0,2158592,2158592,2158592,2158592,2158592,2158592,2428928,2158592,2514944,2158592,2588672,2158592,2838528,2158592,2158592,40976,18,151573,45078,24,27,90143,94242,0,102439,106538,98347,0,0,0,40976,18,18,36884,0,45078,0,24,24,24,27,27,27,27,90143,0,0,1315,0,97,97,97,97,97,97,97,97,97,97,1487,97,18,131427,0,0,0,0,0,0,362,0,0,365,29315,367,0,0,29315,0,0,0,0,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,67,67,130,94242,0,0,0,2211840,102439,0,0,106538,98347,0,2158592,2158592,2158592,2158592,2158592,2158592,3096576,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2207744,2207744,2158592,18,0,0,0,0,0,0,0,2211840,0,0,0,0,2158592,644,2207744,2207744,2207744,3186688,2207744,0,1080,0,1084,0,1088,0,0,0,0,0,0,0,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2531466,2158730,2158730,2158730,2158730,2158730,2617482,0,94242,0,0,0,2211840,102439,0,0,106538,98347,0,2158592,2158592,2158592,2158592,2158592,2781184,2793472,2158592,2818048,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,40976,18,36884,45078,24,27,90143,159779,159744,102439,159779,98347,0,0,159744,40976,18,18,36884,0,45078,0,2224253,172032,2224253,2232448,2232448,172032,2232448,90143,0,0,2170880,0,0,550,829,2158592,2158592,2158592,2387968,2158592,2158592,2158592,2158592,2158592,2158592,0,40976,0,18,18,124,124,127,127,127,40976,18,36884,45078,25,29,90143,94242,0,102439,106538,98347,0,0,163931,40976,18,18,36884,0,45078,249856,24,24,24,27,27,27,27,90143,0,0,2170880,0,0,827,0,2158592,2158592,2158592,2387968,2158592,2158592,2158592,2158592,2158592,2158592,0,40976,0,4243810,4243810,24,24,27,27,27,2207744,0,0,0,0,0,0,2166784,0,0,0,0,57344,286,2158592,2158592,2158592,2158592,2707456,2732032,2158592,2158592,2158592,2822144,2826240,2158592,2895872,2158592,2158592,2924544,2158592,2158592,2973696,2158592,2207744,2207744,2207744,3186688,2207744,0,0,0,0,0,0,53248,0,0,0,0,0,97,97,97,97,97,1613,97,97,97,97,97,97,1495,97,97,97,97,97,97,97,97,97,566,97,97,97,97,97,97,2207744,0,0,0,0,0,0,2166784,546,0,0,0,0,286,2158592,2158592,2158592,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,17,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,20480,120,121,18,18,36884,0,45078,0,24,24,24,27,27,27,27,90143,0,0,2170880,0,53248,550,0,2158592,2158592,2158592,2387968,2158592,2158592,2158592,2158592,2158592,2158592,0,40976,196608,18,266240,24,24,27,27,27,0,94242,0,0,0,38,102439,0,0,106538,98347,0,45,45,45,45,45,45,45,1535,45,45,45,45,45,45,45,1416,45,45,45,45,45,45,45,45,424,45,45,45,45,45,45,45,45,45,405,45,45,45,45,45,45,45,45,45,45,45,45,45,199,45,45,67,67,67,67,67,491,67,67,67,67,67,67,67,67,67,67,67,1766,67,67,67,1767,67,24850,24850,12564,12564,0,0,2166784,546,0,53531,53531,0,286,97,97,0,0,97,97,97,97,97,97,0,0,97,97,0,97,97,97,45,45,45,45,45,45,67,67,67,67,67,67,67,67,67,743,57889,0,2170880,0,0,550,0,97,97,97,97,97,97,97,97,97,45,45,45,45,45,45,45,45,1856,45,1858,1859,67,67,67,1009,67,67,67,67,67,67,67,67,67,67,67,1021,67,67,67,67,67,25398,0,13112,0,54074,0,0,0,0,0,0,0,0,0,2367773,2158877,2158877,2158877,2158877,2158877,2158877,2699549,2158877,2158877,2158877,2158877,2158877,2748701,2756893,2777373,2801949,97,1115,97,97,97,97,97,97,97,97,97,97,97,97,97,97,857,97,67,67,67,67,67,1258,67,67,67,67,67,67,67,67,67,67,67,1826,67,97,97,97,97,97,97,1338,97,97,97,97,97,97,97,97,97,97,97,97,97,870,97,97,67,67,67,1463,67,67,67,67,67,67,67,67,67,67,67,67,67,1579,67,67,97,97,97,1518,97,97,97,97,97,97,97,97,97,97,97,97,97,904,905,97,97,97,97,1620,97,97,97,97,97,97,97,97,97,97,97,0,921,0,0,0,0,0,0,45,1679,67,67,67,1682,67,67,67,67,67,67,67,67,67,1690,67,0,0,97,97,97,97,45,45,67,67,0,0,97,97,45,45,45,669,45,45,45,45,45,45,45,45,45,45,45,45,189,45,45,45,1748,45,45,45,1749,1750,45,45,45,45,45,45,45,45,67,67,67,67,1959,67,67,67,67,1768,67,67,67,67,67,67,67,67,97,97,97,97,97,97,97,97,97,1791,97,97,97,97,97,97,97,97,45,45,45,45,45,45,1802,67,1817,67,67,67,67,67,67,1823,67,67,67,67,97,97,97,97,0,0,0,97,97,97,97,0,97,97,97,97,1848,45,45,45,45,45,45,45,45,45,45,45,659,45,45,45,45,45,45,45,1863,67,67,67,67,67,67,67,67,67,67,67,67,495,67,67,67,67,67,1878,97,97,97,97,0,0,0,97,97,97,97,0,0,97,97,97,97,97,0,0,0,97,97,97,97,97,97,45,45,45,45,45,45,45,45,45,67,67,67,67,97,97,97,97,0,0,0,1973,97,97,97,0,97,97,97,97,97,97,97,97,97,97,97,97,97,1165,97,1167,67,24850,24850,12564,12564,0,0,2166784,0,0,53531,53531,0,286,97,97,0,0,97,97,97,97,97,97,0,0,97,97,1789,97,0,94242,0,0,0,2211840,102439,0,0,106538,98347,136,2158592,2158592,2158592,2158592,2158592,3158016,229376,2375680,2379776,2158592,2158592,2420736,2158592,2449408,2158592,2158592,67,24850,24850,12564,12564,0,0,280,547,0,53531,53531,0,286,97,97,0,0,97,97,97,97,97,97,0,1788,97,97,0,97,2024,97,45,45,45,45,45,45,67,67,67,67,67,67,67,67,235,67,67,67,67,67,57889,547,547,0,0,550,0,97,97,97,97,97,97,97,97,97,45,45,45,1799,45,45,45,67,67,67,67,67,25398,0,13112,0,54074,0,0,1092,0,0,0,0,0,97,97,97,97,1612,97,97,97,97,1616,97,1297,1472,0,0,0,0,1303,1474,0,0,0,0,1309,1476,0,0,0,0,97,97,97,1481,97,97,97,97,97,97,1488,97,0,1474,0,1476,0,97,97,97,97,97,97,97,97,97,97,97,607,97,97,97,97,40976,18,36884,45078,26,30,90143,94242,0,102439,106538,98347,0,0,213080,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,143448,40976,18,18,36884,0,45078,0,24,24,24,27,27,27,27,0,0,0,0,97,97,97,97,1482,97,1483,97,97,97,97,97,97,1326,97,97,1329,1330,97,97,97,97,97,97,1159,1160,97,97,97,97,97,97,97,97,590,97,97,97,97,97,97,97,0,94242,0,0,0,2211974,102439,0,0,106538,98347,0,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2474122,2158730,2158730,2494602,2158730,2158730,2158730,2809994,2158730,2158730,2842762,2158730,2158730,2158730,2900106,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,3014794,2158730,2158730,3051658,2158730,2158730,3100810,2158730,2158730,2158730,2158730,3096714,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2207744,2207744,2207744,2207744,2207744,2572288,2207744,2207744,2207744,2207744,541,541,543,543,0,0,2166784,0,548,549,549,0,286,2158877,2158877,2158877,2863389,2892061,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,3186973,2158877,0,0,0,0,0,0,0,0,2367626,2158877,2404637,2412829,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2564381,2158877,2158877,2605341,2158877,2158877,2158877,2158877,2158877,2158877,2679069,2158877,2695453,2158877,2703645,2158877,2711837,2752797,2158877,0,2158877,2158877,2158877,2384010,2158730,2158730,2158730,2158730,3006602,2383872,2207744,2207744,2207744,2207744,2207744,2207744,3096576,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,0,0,0,0,0,0,2162688,0,0,2158877,2785565,2158877,2810141,2158877,2158877,2842909,2158877,2158877,2158877,2900253,2158877,2158877,2158877,2158877,2158877,2531613,2158877,2158877,2158877,2158877,2158877,2617629,2158877,2158877,2158877,2158877,2158730,2818186,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,3105053,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,0,0,0,0,0,97,97,97,1611,97,97,97,97,97,97,97,1496,97,97,1499,97,97,97,97,97,2441354,2445450,2158730,2158730,2158730,2158730,2158730,2158730,2502794,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2433162,2158730,2453642,2461834,2158730,2158730,2158730,2158730,2158730,2158730,2580618,2158730,2158730,2158730,2158730,2621578,2158730,2158730,2158730,2158730,2158730,2158730,2699402,2158730,2158730,2158730,2158730,2678922,2158730,2695306,2158730,2703498,2158730,2711690,2752650,2158730,2158730,2785418,2158730,2158730,2158730,3113098,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,3186826,2158730,2207744,2207744,2207744,2207744,2781184,2793472,2207744,2818048,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,0,541,0,543,2158877,2502941,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2580765,2158877,2158877,2158877,2158877,2621725,2158877,3019037,2158877,3043613,2158877,2158877,2158877,2158877,3080477,2158877,2158877,3113245,2158877,2158877,2158877,2158877,0,2158877,2908445,2158877,2158877,2158877,2978077,2158877,2158877,2158877,2158877,3039517,2158877,2158730,2510986,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2584714,2158730,2609290,2158730,2158730,2629770,2158730,2158730,2158730,2388106,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2605194,2158730,2158730,2158730,2158730,2687114,2158730,2715786,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2867338,2158730,2904202,2158730,2158730,2158730,2642058,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2781322,2793610,2158730,3121290,2158730,2158730,2158730,3149962,2158730,2158730,3170442,3174538,2158730,2367488,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2441216,2445312,2207744,2207744,2207744,2207744,2207744,2207744,2502656,2158877,2433309,2158877,2453789,2461981,2158877,2158877,2158877,2158877,2158877,2158877,2511133,2158877,2158877,2158877,2158877,2584861,2158877,2609437,2158877,2158877,2629917,2158877,2158877,2158877,2687261,2158877,2715933,2158877,2158730,2158730,2973834,2158730,2982026,2158730,2158730,3002506,2158730,3047562,3063946,3076234,2158730,2158730,2158730,2158730,2207744,2506752,2207744,2207744,2207744,2207744,2207744,2158877,2507037,0,0,2158877,2158730,2158730,2158730,3203210,2207744,2207744,2207744,2207744,2207744,2424832,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2564096,2207744,2207744,2207744,2707741,2732317,2158877,2158877,2158877,2822429,2826525,2158877,2896157,2158877,2158877,2924829,2158877,2158877,2973981,2158877,18,0,0,0,0,0,0,0,2211840,0,0,642,0,2158592,0,45,1529,45,45,45,45,45,45,45,45,45,45,45,45,45,1755,45,67,67,2982173,2158877,2158877,3002653,2158877,3047709,3064093,3076381,2158877,2158877,2158877,2158877,2158877,2158877,2158877,3203357,2523274,2527370,2158730,2158730,2576522,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2908298,2494749,2158877,2158877,2158877,2523421,2527517,2158877,2158877,2576669,2158877,2158877,2158877,2158877,2158877,2158877,0,40976,0,18,18,4321280,2224253,2232448,4329472,2232448,2158730,2498698,2158730,2158730,2158730,2158730,2568330,2158730,2592906,2625674,2158730,2158730,2674826,2736266,2158730,2158730,2158730,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2158730,2912394,2158730,2158730,2158730,2158730,2158730,2158730,2158730,3109002,2158730,2158730,3133578,3145866,3154058,2375680,2207744,3108864,2207744,2207744,3133440,3145728,3153920,2375965,2380061,2158877,2158877,2421021,2158877,2449693,2158877,2158877,2158877,3117341,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,3104906,2158730,2158730,2158730,2158730,2158730,2158730,2158877,2498845,2158877,2158877,0,2158877,2158877,2568477,2158877,2593053,2625821,2158877,2158877,2674973,0,0,0,0,97,97,1480,97,97,97,97,97,1485,97,97,97,0,97,97,1729,97,1731,97,97,97,97,97,97,97,311,97,97,97,97,97,97,97,97,1520,97,97,1523,97,97,1526,97,2736413,2158877,2158877,0,2158877,2912541,2158877,2158877,2158877,2158877,2158877,2158877,2158877,3109149,2158877,2158877,3014941,2158877,2158877,3051805,2158877,2158877,3100957,2158877,2158877,3121437,2158877,2158877,2158877,3150109,3133725,3146013,3154205,2158730,2408586,2416778,2158730,2465930,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,3018890,2158730,3043466,2158730,2158730,2158730,2158730,3080330,2633866,2658442,2740362,2744458,2834570,2949258,2158730,2986122,2158730,2998410,2158730,2158730,2158730,3129482,2207744,2408448,2949120,2207744,2985984,2207744,2998272,2207744,2207744,2207744,3129344,2158877,2408733,2416925,2158877,2466077,2158877,2158877,3170589,3174685,2158877,0,0,0,2158730,2158730,2158730,2158730,2158730,2424970,2158730,2158730,2158730,2158730,2707594,2732170,2158730,2158730,2158730,2822282,2826378,2158730,2896010,2158730,2158730,2924682,2949405,2158877,2986269,2158877,2998557,2158877,2158877,2158877,3129629,2158730,2158730,2478218,2158730,2158730,2158730,2535562,2543754,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,2158730,3117194,2207744,2207744,2478080,2207744,2207744,2207744,2207744,3014656,2207744,2207744,3051520,2207744,2207744,3100672,2207744,2207744,3121152,2207744,2207744,2207744,2207744,2207744,2584576,2207744,2609152,2207744,2207744,2629632,2207744,2207744,2207744,2686976,2207744,2207744,2535424,2543616,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,3117056,2158877,2158877,2478365,0,2158877,2158877,2158877,2158877,2158877,2158877,2158730,2158730,2482314,2158730,2158730,2158730,2158730,2158730,2158730,2207744,2207744,2207744,2387968,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,2207744,0,823,0,825,2158730,2158730,2158730,2990218,2158730,2158730,2207744,2207744,2482176,2207744,2207744,2207744,2207744,2207744,2207744,2207744,0,0,0,0,0,0,2162688,135,0,2207744,2207744,2990080,2207744,2207744,2158877,2158877,2482461,2158877,2158877,0,0,0,2158877,2158877,2158877,2158877,2158877,2158730,2429066,2158730,2515082,2158730,2588810,2158730,2838666,2158730,2158730,2158730,3010698,2207744,2428928,2207744,2514944,2207744,2588672,2207744,2838528,2207744,2207744,2207744,3010560,2158877,2429213,2158877,2515229,0,0,2158877,2588957,2158877,0,2838813,2158877,2158877,2158877,3010845,2158730,2506890,2158730,2158730,2158730,2748554,2756746,2777226,2801802,2158730,2158730,2158730,2863242,2891914,2158730,2158730,2158730,2158730,2158730,2158730,2564234,2158730,2158730,2158730,2158730,2158730,2597002,2158730,2158730,2158730,3006464,2384157,0,0,2158877,2158877,2158877,2158877,3006749,2158730,2637962,2953354,2158730,2207744,2637824,2953216,2207744,0,0,2158877,2638109,2953501,2158877,2539658,2158730,2539520,2207744,0,0,2539805,2158877,2158730,2158730,2158730,2977930,2158730,2158730,2158730,2158730,3039370,2158730,2158730,2158730,2158730,2158730,2158730,3158154,2207744,0,2158877,2158730,2207744,0,2158877,2158730,2207744,0,2158877,2965642,2965504,2965789,0,0,0,0,1315,0,0,0,0,97,97,97,97,97,97,97,1484,97,97,97,97,2158592,18,0,122880,0,0,0,77824,0,2211840,0,0,0,0,2158592,0,356,0,0,0,0,0,0,28809,0,139,45,45,45,45,45,45,1751,45,45,45,45,45,45,45,67,67,1427,67,67,67,67,67,1432,67,67,67,3104768,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,122880,0,0,0,0,1315,0,0,0,0,97,97,97,97,97,97,1322,550,0,286,0,2158592,2158592,2158592,2158592,2158592,2424832,2158592,2158592,2158592,2158592,2158592,2158592,0,40976,0,18,18,24,24,4329472,27,27,2207744,2207744,2977792,2207744,2207744,2207744,2207744,3039232,2207744,2207744,2207744,2207744,2207744,2207744,3158016,542,0,0,0,542,0,544,0,0,0,544,0,550,0,0,0,0,0,97,97,1610,97,97,97,97,97,97,97,97,898,97,97,97,97,97,97,97,0,94242,0,0,0,2211840,0,0,0,0,0,0,2158592,2158592,2158592,2158592,2158592,2424832,2158592,2158592,2158592,2158592,2158592,2158592,40976,18,36884,45078,24,27,90143,94242,237568,102439,106538,98347,0,0,20480,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,192512,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,94,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,96,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,12378,40976,18,18,36884,0,45078,0,24,24,24,126,126,126,126,90143,0,0,2170880,0,0,0,0,2158592,2158592,2158592,2387968,2158592,2158592,2158592,2158592,2158592,2158592,20480,40976,0,18,18,24,24,27,27,27,40976,18,36884,45078,24,27,90143,94242,241664,102439,106538,98347,0,0,20568,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,200797,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,20480,40976,18,36884,45078,24,27,90143,94242,0,0,0,44,0,0,20575,40976,18,36884,45078,24,27,90143,94242,0,41,41,41,0,0,1126400,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,0,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,89,40976,18,18,36884,0,45078,0,24,24,24,27,131201,27,27,90143,0,0,2170880,0,0,550,0,2158592,2158592,2158592,2387968,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2441216,2445312,2158592,2158592,2158592,2158592,2158592,0,94242,0,0,208896,2211840,102439,0,0,106538,98347,0,2158592,2158592,2158592,2158592,2158592,3186688,2158592,0,0,0,0,0,0,0,0,2367488,32768,0,0,0,0,0,0,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2433024,2158592,2453504,2461696,2158592,2158592,2158592,2158592,2158592,2158592,2510848,2158592,2158592,2158592,2158592,40976,18,36884,245783,24,27,90143,94242,0,102439,106538,98347,0,0,20480,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,221184,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,180224,40976,18,18,36884,155648,45078,0,24,24,217088,27,27,27,217088,90143,0,0,2170880,0,0,828,0,2158592,2158592,2158592,2387968,2158592,2158592,2158592,2158592,2158592,2158592,2207744,2207744,2207744,2387968,2207744,2207744,2207744,2207744,2207744,2207744,2207744,0,0,0,0,0,0,2162688,233472,0,0,94242,0,0,0,38,102439,0,0,106538,98347,28809,45,45,45,45,45,718,45,45,45,45,45,45,45,45,45,727,131427,0,0,0,0,362,0,365,28809,367,139,45,45,45,45,45,45,1808,45,45,45,45,67,67,67,67,67,67,67,97,97,0,0,97,67,24850,24850,12564,12564,0,57889,0,0,0,53531,53531,367,286,97,97,0,0,97,97,97,97,97,97,1787,0,97,97,0,97,97,97,45,45,45,45,2029,45,67,67,67,67,2033,57889,0,0,54074,54074,550,0,97,97,97,97,97,97,97,97,97,45,1798,45,45,1800,45,45,0,1472,0,0,0,0,0,1474,0,0,0,0,0,1476,0,0,0,0,1315,0,0,0,0,97,97,97,97,1320,97,97,0,0,97,97,97,97,1786,97,0,0,97,97,0,1790,1527,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,663,67,24850,24850,12564,12564,0,57889,281,0,0,53531,53531,367,286,97,97,0,0,97,97,97,1785,97,97,0,0,97,97,0,97,97,1979,97,97,45,45,1983,45,1984,45,45,45,45,45,652,45,45,45,45,45,45,45,45,45,45,690,45,45,694,45,45,40976,19,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,262144,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,46,67,98,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,45,67,97,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,258048,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,1122423,40976,18,36884,45078,24,27,90143,94242,0,1114152,1114152,1114152,0,0,1114112,40976,18,36884,45078,24,27,90143,94242,37,102439,106538,98347,0,0,204800,40976,18,36884,45078,24,27,90143,94242,0,102439,106538,98347,0,0,57436,40976,18,36884,45078,24,27,33,33,0,33,33,33,0,0,0,40976,18,18,36884,0,45078,0,124,124,124,127,127,127,127,90143,0,0,2170880,0,0,550,0,2158877,2158877,2158877,2388253,2158877,2158877,2158877,2158877,2158877,2781469,2793757,2158877,2818333,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2867485,2158877,2904349,2158877,2158877,2158877,2158877,2158877,2158877,2158877,3096861,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2158877,2441501,2445597,2158877,2158877,2158877,2158877,2158877,40976,122,123,36884,0,45078,0,24,24,24,27,27,27,27,90143,0,921,29315,0,0,0,0,45,45,45,45,45,45,45,45,936,2158592,4243810,0,0,0,0,0,0,0,2211840,0,0,0,0,2158592,0,921,29315,0,0,0,0,45,45,45,45,45,45,45,935,45,45,45,715,45,45,45,45,45,45,45,723,45,45,45,45,45,1182,45,45,45,45,45,45,45,45,45,45,430,45,45,45,45,45,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,47,68,99,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,48,69,100,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,49,70,101,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,50,71,102,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,51,72,103,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,52,73,104,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,53,74,105,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,54,75,106,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,55,76,107,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,56,77,108,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,57,78,109,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,58,79,110,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,59,80,111,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,60,81,112,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,61,82,113,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,62,83,114,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,63,84,115,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,64,85,116,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,65,86,117,40976,18,36884,45078,24,27,90143,94242,38,102439,106538,98347,66,87,118,40976,18,36884,45078,24,27,90143,94242,118820,102439,106538,98347,118820,118820,118820,40976,18,18,0,0,45078,0,24,24,24,27,27,27,27,90143,0,0,1314,0,0,0,0,0,0,97,97,97,97,97,1321,97,18,131427,0,0,0,0,0,0,362,0,0,365,0,367,0,0,1315,0,97,97,97,97,97,97,97,97,97,97,97,97,97,1360,97,97,131,94242,0,0,0,38,102439,0,0,106538,98347,28809,45,45,45,145,149,45,45,45,45,45,174,45,179,45,185,45,188,45,45,202,67,255,67,67,269,67,67,0,24850,12564,0,0,0,0,28809,53531,97,97,97,292,296,97,97,97,97,97,321,97,326,97,332,97,18,131427,0,0,0,0,0,0,362,0,0,365,29315,367,646,335,97,97,349,97,97,0,40976,0,18,18,24,24,27,27,27,437,45,45,45,45,45,45,45,45,45,45,45,45,45,67,67,67,67,67,67,67,67,523,67,67,67,67,67,67,67,67,67,67,67,67,511,67,67,67,97,97,97,620,97,97,97,97,97,97,97,97,97,97,97,97,97,1501,1502,97,793,67,67,796,67,67,67,67,67,67,67,67,67,67,808,67,0,0,97,97,97,97,45,45,67,67,0,0,97,97,2052,67,67,67,67,813,67,67,67,67,67,67,67,25398,542,13112,544,57889,0,0,54074,54074,550,830,97,97,97,97,97,97,97,97,97,315,97,97,97,97,97,97,841,97,97,97,97,97,97,97,97,97,854,97,97,97,97,97,97,589,97,97,97,97,97,97,97,97,97,867,97,97,97,97,97,97,97,891,97,97,894,97,97,97,97,97,97,97,97,97,97,906,45,937,45,45,940,45,45,45,45,45,45,948,45,45,45,45,45,734,735,67,737,67,738,67,740,67,67,67,45,967,45,45,45,45,45,45,45,45,45,45,45,45,45,45,435,45,45,45,980,45,45,45,45,45,45,45,45,45,45,45,45,45,415,45,45,67,67,1024,67,67,67,67,67,67,67,67,67,67,67,67,67,97,97,97,67,67,67,67,67,25398,1081,13112,1085,54074,1089,0,0,0,0,0,0,363,0,28809,0,139,45,45,45,45,45,45,1674,45,45,45,45,45,45,45,45,67,1913,67,1914,67,67,67,1918,67,67,97,97,97,97,1118,97,97,97,97,97,97,97,97,97,97,97,630,97,97,97,97,97,1169,97,97,97,97,97,0,921,0,1175,0,0,0,0,45,45,45,45,45,45,1534,45,45,45,45,45,1538,45,45,45,45,1233,45,45,45,45,45,45,67,67,67,67,67,67,67,67,742,67,45,45,1191,45,45,45,45,45,45,45,45,45,45,45,45,45,454,67,67,67,67,1243,67,67,67,67,67,67,67,67,67,67,67,1251,67,0,0,97,97,97,97,45,45,67,67,2050,0,97,97,45,45,45,732,45,45,67,67,67,67,67,67,67,67,67,67,67,67,97,97,67,67,67,1284,67,67,67,67,67,67,67,67,67,67,67,67,772,67,67,67,1293,67,67,67,67,67,67,0,0,0,0,0,0,0,0,0,0,368,2158592,2158592,2158592,2404352,2412544,1323,97,97,97,97,97,97,97,97,97,97,97,1331,97,97,97,0,97,97,97,97,97,97,97,97,97,97,97,1737,97,1364,97,97,97,97,97,97,97,97,97,97,97,97,1373,97,18,131427,0,0,0,0,0,0,362,0,0,365,29315,367,647,45,45,1387,45,45,1391,45,45,45,45,45,45,45,45,45,45,410,45,45,45,45,45,1400,45,45,45,45,45,45,45,45,45,45,1407,45,45,45,45,45,941,45,943,45,45,45,45,45,45,951,45,67,1438,67,67,67,67,67,67,67,67,67,67,1447,67,67,67,67,67,67,782,67,67,67,67,67,67,67,67,67,756,67,67,67,67,67,67,97,1491,97,97,97,97,97,97,97,97,97,97,1500,97,97,97,0,97,97,97,97,97,97,97,97,97,97,1736,97,45,45,1541,45,45,45,45,45,45,45,45,45,45,45,45,45,677,45,45,67,1581,67,67,67,67,67,67,67,67,67,67,67,67,67,67,791,792,67,67,67,67,1598,67,1600,67,67,67,67,67,67,67,67,1472,97,97,97,1727,97,97,97,97,97,97,97,97,97,97,97,97,97,1513,97,97,67,67,97,1879,97,1881,97,0,1884,0,97,97,97,97,0,0,97,97,97,97,97,0,0,0,1842,97,97,67,67,67,67,67,97,97,97,97,1928,0,0,0,97,97,97,97,97,97,45,45,45,45,45,1903,45,45,45,67,67,67,67,97,97,97,97,1971,0,0,97,97,97,97,0,97,97,97,97,97,97,97,97,97,0,0,0,45,45,45,1381,45,45,45,45,1976,97,97,97,97,97,45,45,45,45,45,45,45,45,45,45,45,45,1747,809,67,67,67,67,67,67,67,67,67,67,67,25398,542,13112,544,97,907,97,97,97,97,97,97,97,97,97,97,97,638,0,0,0,0,1478,97,97,97,97,97,97,97,97,97,97,97,1150,97,97,97,97,67,67,67,67,1244,67,67,67,67,67,67,67,67,67,67,67,477,67,67,67,67,67,67,1294,67,67,67,67,0,0,0,0,0,0,0,0,0,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1324,97,97,97,97,97,97,97,97,97,97,97,97,97,0,0,0,1374,97,97,97,97,0,1175,0,45,45,45,45,45,45,45,45,945,45,45,45,45,45,45,45,45,1908,45,45,1910,45,67,67,67,67,67,67,67,67,1919,67,0,0,97,97,97,97,45,2048,67,2049,0,0,97,2051,45,45,45,939,45,45,45,45,45,45,45,45,45,45,45,45,397,45,45,45,1921,67,67,1923,67,97,97,97,97,97,0,0,0,97,97,97,97,97,97,45,45,45,45,1947,45,1935,0,0,0,97,1939,97,97,1941,97,45,45,45,45,45,45,382,389,45,45,45,45,45,45,45,45,1810,45,45,1812,67,67,67,67,67,256,67,67,67,67,67,0,24850,12564,0,0,0,0,28809,53531,336,97,97,97,97,97,0,40976,0,18,18,24,24,27,27,27,131427,0,0,0,0,362,0,365,28809,367,139,45,45,371,373,45,45,45,955,45,45,45,45,45,45,45,45,45,45,45,45,413,45,45,45,457,459,67,67,67,67,67,67,67,67,473,67,478,67,67,482,67,67,485,67,67,67,67,67,67,67,67,67,67,67,67,67,97,1828,97,554,556,97,97,97,97,97,97,97,97,570,97,575,97,97,579,97,97,582,97,97,97,97,97,97,97,97,97,97,97,97,97,330,97,97,67,746,67,67,67,67,67,67,67,67,67,758,67,67,67,67,67,67,67,1575,67,67,67,67,67,67,67,67,493,67,67,67,67,67,67,67,97,97,844,97,97,97,97,97,97,97,97,97,856,97,97,97,0,97,97,97,97,97,97,97,97,1735,97,97,97,0,97,97,97,97,97,97,97,1642,97,1644,97,97,890,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,0,67,67,67,67,1065,1066,67,67,67,67,67,67,67,67,67,67,532,67,67,67,67,67,67,67,1451,67,67,67,67,67,67,67,67,67,67,67,67,67,496,67,67,97,97,1505,97,97,97,97,97,97,97,97,97,97,97,97,97,593,97,97,0,1474,0,1476,0,97,97,97,97,97,97,97,97,97,97,1617,97,97,1635,0,1637,97,97,97,97,97,97,97,97,97,97,97,885,97,97,97,97,67,67,1704,67,67,67,67,97,97,97,97,97,97,97,97,97,565,572,97,97,97,97,97,97,97,97,1832,0,97,97,97,97,97,0,0,0,97,97,97,97,97,97,45,45,45,1946,45,45,67,67,67,67,67,97,1926,97,1927,97,0,0,0,97,97,1934,2043,0,0,97,97,97,2047,45,45,67,67,0,1832,97,97,45,45,45,981,45,45,45,45,45,45,45,45,45,45,45,45,1227,45,45,45,131427,0,0,0,0,362,0,365,28809,367,139,45,45,372,45,45,45,45,1661,1662,45,45,45,45,45,1666,45,45,45,45,45,1673,45,1675,45,45,45,45,45,45,45,67,1426,67,67,67,67,67,67,67,67,67,67,1275,67,67,67,67,67,45,418,45,45,420,45,45,423,45,45,45,45,45,45,45,45,959,45,45,962,45,45,45,45,458,67,67,67,67,67,67,67,67,67,67,67,67,67,67,483,67,67,67,67,504,67,67,506,67,67,509,67,67,67,67,67,67,67,528,67,67,67,67,67,67,67,67,1287,67,67,67,67,67,67,67,555,97,97,97,97,97,97,97,97,97,97,97,97,97,97,580,97,97,97,97,601,97,97,603,97,97,606,97,97,97,97,97,97,848,97,97,97,97,97,97,97,97,97,1498,97,97,97,97,97,97,45,45,714,45,45,45,45,45,45,45,45,45,45,45,45,45,989,990,45,67,67,67,67,67,1011,67,67,67,67,1015,67,67,67,67,67,67,67,753,67,67,67,67,67,67,67,67,467,67,67,67,67,67,67,67,45,45,1179,45,45,45,45,45,45,45,45,45,45,45,45,45,1003,1004,67,1217,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,728,67,1461,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1034,67,97,1516,97,97,97,97,97,97,97,97,97,97,97,97,97,97,871,97,67,67,67,1705,67,67,67,97,97,97,97,97,97,97,97,97,567,97,97,97,97,97,97,97,97,97,97,1715,97,97,97,97,97,97,97,97,97,0,0,0,45,45,1380,45,45,45,45,45,67,67,97,97,97,97,97,0,0,0,97,1887,97,97,0,0,97,97,97,0,97,97,97,97,97,2006,45,45,1907,45,45,45,45,45,67,67,67,67,67,67,67,67,67,1920,67,97,0,2035,97,97,97,97,97,45,45,45,45,67,67,67,1428,67,67,67,67,67,67,1435,67,0,94242,0,0,0,38,102439,0,0,106538,98347,28809,45,45,45,146,45,152,45,45,165,45,175,45,180,45,45,187,190,195,45,203,254,257,262,67,270,67,67,0,24850,12564,0,0,0,281,28809,53531,97,97,97,293,97,299,97,97,312,97,322,97,327,97,97,334,337,342,97,350,97,97,0,40976,0,18,18,24,24,27,27,27,67,484,67,67,67,67,67,67,67,67,67,67,67,67,67,499,97,581,97,97,97,97,97,97,97,97,97,97,97,97,97,596,648,45,650,45,651,45,653,45,45,45,657,45,45,45,45,45,45,1954,67,67,67,1958,67,67,67,67,67,67,67,768,67,67,67,67,67,67,67,67,769,67,67,67,67,67,67,67,680,45,45,45,45,45,45,45,45,688,689,691,45,45,45,45,45,983,45,45,45,45,45,45,45,45,45,45,947,45,45,45,45,952,45,45,698,699,45,45,702,703,45,45,45,45,45,45,45,711,744,67,67,67,67,67,67,67,67,67,757,67,67,67,67,761,67,67,67,67,765,67,767,67,67,67,67,67,67,67,67,775,776,778,67,67,67,67,67,67,785,786,67,67,789,790,67,67,67,67,67,67,1442,67,67,67,67,67,67,67,67,67,97,97,97,1775,97,97,97,67,67,67,67,67,798,67,67,67,802,67,67,67,67,67,67,67,67,1465,67,67,1468,67,67,1471,67,67,810,67,67,67,67,67,67,67,67,67,821,25398,542,13112,544,57889,0,0,54074,54074,550,0,833,97,835,97,836,97,838,97,97,0,0,97,97,97,2002,97,97,97,97,97,45,45,45,45,45,1740,45,45,45,1744,45,45,45,97,842,97,97,97,97,97,97,97,97,97,855,97,97,97,97,0,1717,1718,97,97,97,97,97,1722,97,0,0,859,97,97,97,97,863,97,865,97,97,97,97,97,97,97,97,604,97,97,97,97,97,97,97,873,874,876,97,97,97,97,97,97,883,884,97,97,887,888,97,18,131427,0,0,0,0,0,0,362,225280,0,365,0,367,0,45,45,45,1531,45,45,45,45,45,45,45,45,45,45,45,1199,45,45,45,45,45,97,97,908,97,97,97,97,97,97,97,97,97,919,638,0,0,0,0,2158877,2158877,2158877,2158877,2158877,2425117,2158877,2158877,2158877,2158877,2158877,2158877,2597149,2158877,2158877,2158877,2158877,2158877,2158877,2642205,2158877,2158877,2158877,2158877,2158877,3158301,0,2375818,2379914,2158730,2158730,2420874,2158730,2449546,2158730,2158730,953,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,965,978,45,45,45,45,45,45,985,45,45,45,45,45,45,45,45,971,45,45,45,45,45,45,45,67,67,67,67,67,1027,67,1029,67,67,67,67,67,67,67,67,67,1455,67,67,67,67,67,67,67,1077,1078,67,67,25398,0,13112,0,54074,0,0,0,0,0,0,0,0,366,0,139,2158730,2158730,2158730,2404490,2412682,1113,97,97,97,97,97,97,1121,97,1123,97,97,97,97,97,97,0,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1540,1155,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,615,1168,97,97,1171,1172,97,97,0,921,0,1175,0,0,0,0,45,45,45,45,45,1533,45,45,45,45,45,45,45,45,45,1663,45,45,45,45,45,45,45,45,45,183,45,45,45,45,201,45,45,45,1219,45,45,45,45,45,45,45,1226,45,45,45,45,45,168,45,45,45,45,45,45,45,45,45,45,427,45,45,45,45,45,45,45,1231,45,45,45,45,45,45,45,45,67,67,67,67,67,67,67,67,67,67,67,1242,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1046,67,67,1254,67,1256,67,67,67,67,67,67,67,67,67,67,67,67,806,807,67,67,97,1336,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1111,97,97,97,97,97,1351,97,97,97,1354,97,97,97,1359,97,97,97,0,97,97,97,97,1640,97,97,97,97,97,97,97,897,97,97,97,902,97,97,97,97,97,97,97,97,1366,97,97,97,97,97,97,97,1371,97,97,97,0,97,97,97,1730,97,97,97,97,97,97,97,97,915,97,97,97,97,0,360,0,67,67,67,1440,67,67,67,67,67,67,67,67,67,67,67,67,1017,67,1019,67,67,67,67,67,1453,67,67,67,67,67,67,67,67,67,67,1459,97,97,97,1493,97,97,97,97,97,97,97,97,97,97,97,97,97,1525,97,97,97,97,97,97,1507,97,97,97,97,97,97,97,97,97,97,1514,67,67,67,67,1584,67,67,67,67,67,1590,67,67,67,67,67,67,67,783,67,67,67,788,67,67,67,67,67,67,67,67,67,1599,1601,67,67,67,1604,67,1606,1607,67,1472,0,1474,0,1476,0,97,97,97,97,97,97,1614,97,97,97,97,45,45,1850,45,45,45,45,1855,45,45,45,45,45,1222,45,45,45,45,45,45,45,45,45,1229,97,1618,97,97,97,97,97,97,97,1625,97,97,97,97,97,0,1175,0,45,45,45,45,45,45,45,45,447,45,45,45,45,45,67,67,1633,97,97,0,97,97,97,97,97,97,97,97,1643,1645,97,97,0,0,97,97,1784,97,97,97,0,0,97,97,0,97,1894,1895,97,1897,97,45,45,45,45,45,45,45,45,45,656,45,45,45,45,45,45,97,1648,97,1650,1651,97,0,45,45,45,1654,45,45,45,45,45,169,45,45,45,45,45,45,45,45,45,45,658,45,45,45,45,664,45,45,1659,45,45,45,45,45,45,45,45,45,45,45,45,45,1187,45,45,1669,45,45,45,45,45,45,45,45,45,45,45,45,45,45,67,1005,67,67,1681,67,67,67,67,67,67,67,1686,67,67,67,67,67,67,67,784,67,67,67,67,67,67,67,67,1055,67,67,67,67,1060,67,67,97,97,1713,97,0,97,97,97,97,97,97,97,97,97,0,0,0,1378,45,45,45,45,45,45,45,408,45,45,45,45,45,45,45,45,1547,45,1549,45,45,45,45,45,97,97,1780,0,97,97,97,97,97,97,0,0,97,97,0,97,97,97,45,45,2027,2028,45,45,67,67,2031,2032,67,45,45,1804,45,45,45,45,45,45,45,45,67,67,67,67,67,67,1917,67,67,67,67,67,67,67,1819,67,67,67,67,67,67,67,67,97,97,97,1708,97,97,97,97,97,45,45,1862,67,67,67,67,67,67,67,67,67,67,67,67,67,497,67,67,67,1877,97,97,97,97,97,0,0,0,97,97,97,97,0,0,97,97,97,97,97,1839,0,0,97,97,97,97,1936,0,0,97,97,97,97,97,97,1943,1944,1945,45,45,45,45,670,45,45,45,45,674,45,45,45,45,678,45,1948,45,1950,45,45,45,45,1955,1956,1957,67,67,67,1960,67,1962,67,67,67,67,1967,1968,1969,97,0,0,0,97,97,1974,97,0,1936,0,97,97,97,97,97,97,45,45,45,45,45,45,45,45,1906,0,1977,97,97,97,97,45,45,45,45,45,45,45,45,45,45,45,1746,45,45,45,45,2011,67,67,2013,67,67,67,2017,97,97,0,0,2021,97,8192,97,97,2025,45,45,45,45,45,45,67,67,67,67,67,1916,67,67,67,67,0,94242,0,0,0,38,102439,0,0,106538,98347,28809,45,45,140,45,45,45,1180,45,45,45,45,1184,45,45,45,45,45,45,45,387,45,392,45,45,396,45,45,399,45,45,67,207,67,67,67,67,67,67,236,67,67,67,67,67,67,67,800,67,67,67,67,67,67,67,67,67,1603,67,67,67,67,67,0,97,97,287,97,97,97,97,97,97,316,97,97,97,97,97,97,0,45,45,45,45,45,45,45,1656,1657,45,376,45,45,45,45,45,388,45,45,45,45,45,45,45,45,1406,45,45,45,45,45,45,45,67,67,67,67,462,67,67,67,67,67,474,67,67,67,67,67,67,67,817,67,67,67,67,25398,542,13112,544,97,97,97,97,559,97,97,97,97,97,571,97,97,97,97,97,97,896,97,97,97,900,97,97,97,97,97,97,912,914,97,97,97,97,97,0,0,0,45,45,45,45,45,45,45,45,391,45,45,45,45,45,45,45,45,713,45,45,45,45,45,45,45,45,45,45,45,45,45,45,662,45,1140,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,636,67,67,1283,67,67,67,67,67,67,67,67,67,67,67,67,67,513,67,67,1363,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,889,97,97,97,1714,0,97,97,97,97,97,97,97,97,97,0,0,926,45,45,45,45,45,45,45,45,672,45,45,45,45,45,45,45,45,686,45,45,45,45,45,45,45,45,944,45,45,45,45,45,45,45,45,1676,45,45,45,45,45,45,67,97,97,97,1833,0,97,97,97,97,97,0,0,0,97,97,97,97,97,97,45,45,45,45,1902,45,45,45,45,45,957,45,45,45,45,961,45,963,45,45,45,67,97,2034,0,97,97,97,97,97,2040,45,45,45,2042,67,67,67,67,67,67,1574,67,67,67,67,67,1578,67,67,67,67,67,67,799,67,67,67,804,67,67,67,67,67,67,67,1298,0,0,0,1304,0,0,0,1310,132,94242,0,0,0,38,102439,0,0,106538,98347,28809,45,45,45,45,45,1414,45,45,45,45,45,45,45,45,45,45,428,45,45,45,45,45,57889,0,0,54074,54074,550,831,97,97,97,97,97,97,97,97,97,568,97,97,97,97,578,97,45,45,968,45,45,45,45,45,45,45,45,45,45,45,45,45,1228,45,45,67,67,67,67,67,25398,1082,13112,1086,54074,1090,0,0,0,0,0,0,364,0,0,0,139,2158592,2158592,2158592,2404352,2412544,67,67,67,67,1464,67,67,67,67,67,67,67,67,67,67,67,510,67,67,67,67,97,97,97,97,1519,97,97,97,97,97,97,97,97,97,97,97,918,97,0,0,0,0,1528,45,45,45,45,45,45,45,45,45,45,45,45,45,45,976,45,1554,45,45,45,45,45,45,45,45,1562,45,45,1565,45,45,45,45,683,45,45,45,687,45,45,692,45,45,45,45,45,1953,45,67,67,67,67,67,67,67,67,67,1014,67,67,67,67,67,67,1568,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,0,67,67,67,67,67,1585,67,67,67,67,67,67,67,67,67,1594,97,97,1649,97,97,97,0,45,45,1653,45,45,45,45,45,45,383,45,45,45,45,45,45,45,45,45,986,45,45,45,45,45,45,45,45,1670,45,1672,45,45,45,45,45,45,45,45,45,45,67,736,67,67,67,67,67,741,67,67,67,1680,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1074,67,67,67,1692,67,67,67,67,67,67,67,1697,67,1699,67,67,67,67,67,67,1012,67,67,67,67,67,67,67,67,67,468,475,67,67,67,67,67,67,1769,67,67,67,67,67,67,67,97,97,97,97,97,97,97,624,97,97,97,97,97,97,634,97,97,1792,97,97,97,97,97,97,97,45,45,45,45,45,45,45,958,45,45,45,45,45,45,964,45,150,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,977,204,45,67,67,67,217,67,67,67,67,67,67,67,67,67,67,787,67,67,67,67,67,67,67,67,67,67,271,67,0,24850,12564,0,0,0,0,28809,53531,97,97,97,97,351,97,0,40976,0,18,18,24,24,27,27,27,45,45,938,45,45,45,45,45,45,45,45,45,45,45,45,45,1398,45,45,45,153,45,161,45,45,45,45,45,45,45,45,45,45,45,45,660,661,45,45,205,45,67,67,67,67,220,67,228,67,67,67,67,67,67,67,0,0,0,0,0,280,94,0,0,67,67,67,67,67,272,67,0,24850,12564,0,0,0,0,28809,53531,97,97,97,97,352,97,0,40976,0,18,18,24,24,27,27,27,45,439,45,45,45,45,45,445,45,45,45,452,45,45,67,67,212,216,67,67,67,67,67,241,67,246,67,252,67,67,486,67,67,67,67,67,67,67,494,67,67,67,67,67,67,67,1245,67,67,67,67,67,67,67,67,1013,67,67,1016,67,67,67,67,67,521,67,67,525,67,67,67,67,67,531,67,67,67,538,67,0,0,2046,97,97,97,45,45,67,67,0,0,97,97,45,45,45,1192,45,45,45,45,45,45,45,45,45,45,45,45,1418,45,45,1421,97,97,583,97,97,97,97,97,97,97,591,97,97,97,97,97,97,913,97,97,97,97,97,97,0,0,0,45,45,45,45,45,45,45,1384,97,618,97,97,622,97,97,97,97,97,628,97,97,97,635,97,18,131427,0,0,0,639,0,132,362,0,0,365,29315,367,0,921,29315,0,0,0,0,45,45,45,45,932,45,45,45,45,45,1544,45,45,45,45,45,1550,45,45,45,45,45,1194,45,1196,45,45,45,45,45,45,45,45,999,45,45,45,45,45,67,67,45,45,667,45,45,45,45,45,45,45,45,45,45,45,45,45,1408,45,45,45,696,45,45,45,701,45,45,45,45,45,45,45,45,710,45,45,45,1220,45,45,45,45,45,45,45,45,45,45,45,45,194,45,45,45,729,45,45,45,45,45,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,797,67,67,67,67,67,67,805,67,67,67,67,67,67,67,1587,67,1589,67,67,67,67,67,67,67,67,1763,67,67,67,67,67,67,67,0,0,0,0,0,0,2162968,0,0,67,67,67,67,67,814,816,67,67,67,67,67,25398,542,13112,544,67,67,1008,67,67,67,67,67,67,67,67,67,67,67,1020,67,0,97,45,67,0,97,45,67,0,97,45,67,97,0,0,97,97,97,97,97,45,45,45,45,67,67,67,67,1429,67,1430,67,67,67,67,67,1062,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,518,1076,67,67,67,67,25398,0,13112,0,54074,0,0,0,0,0,0,0,0,28809,0,139,45,45,45,45,45,97,97,97,97,1102,97,97,97,97,97,97,97,97,97,97,97,1124,97,1126,97,97,1114,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1112,97,97,1156,97,97,97,97,97,97,97,97,97,97,97,97,97,594,97,97,97,97,1170,97,97,97,97,0,921,0,0,0,0,0,0,45,45,45,45,1532,45,45,45,45,1536,45,45,45,45,45,172,45,45,45,45,45,45,45,45,45,45,706,45,45,709,45,45,1177,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1202,45,1204,45,45,45,45,45,45,45,45,45,45,45,45,1215,45,45,45,1232,45,45,45,45,45,45,45,67,1237,67,67,67,67,67,67,1053,1054,67,67,67,67,67,67,1061,67,67,1282,67,67,67,67,67,67,67,67,67,1289,67,67,67,1292,97,97,97,97,1339,97,97,97,97,97,97,1344,97,97,97,97,45,1849,45,1851,45,45,45,45,45,45,45,45,721,45,45,45,45,45,726,45,1385,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1188,45,45,1401,1402,45,45,45,45,1405,45,45,45,45,45,45,45,45,1752,45,45,45,45,45,67,67,1410,45,45,45,1413,45,1415,45,45,45,45,45,45,1419,45,45,45,45,1806,45,45,45,45,45,45,67,67,67,67,67,67,67,97,97,2019,0,97,67,67,67,1452,67,67,67,67,67,67,67,67,1457,67,67,67,67,67,67,1259,67,67,67,67,67,67,1264,67,67,1460,67,1462,67,67,67,67,67,67,1466,67,67,67,67,67,67,67,67,1588,67,67,67,67,67,67,67,0,1300,0,0,0,1306,0,0,0,97,97,97,1506,97,97,97,97,97,97,97,97,1512,97,97,97,0,1728,97,97,97,97,97,97,97,97,97,97,97,901,97,97,97,97,1515,97,1517,97,97,97,97,97,97,1521,97,97,97,97,97,97,0,45,1652,45,45,45,1655,45,45,45,45,45,1542,45,45,45,45,45,45,45,45,45,45,45,45,45,1552,1553,45,45,45,1556,45,45,45,45,45,45,45,45,45,45,45,45,45,693,45,45,45,67,67,67,67,1572,67,67,67,67,1576,67,67,67,67,67,67,67,67,1602,67,67,1605,67,67,67,0,67,1582,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1580,67,67,1596,67,67,67,67,67,67,67,67,67,67,67,67,67,0,542,0,544,67,67,67,67,1759,67,67,67,67,67,67,67,67,67,67,67,533,67,67,67,67,67,67,67,1770,67,67,67,67,67,97,97,97,97,97,97,1777,97,97,97,1793,97,97,97,97,97,45,45,45,45,45,45,45,998,45,45,1001,1002,45,45,67,67,45,1861,45,67,67,67,67,67,67,67,67,1871,67,1873,1874,67,0,97,45,67,0,97,45,67,16384,97,45,67,97,0,0,0,1473,0,1082,0,0,0,1475,0,1086,0,0,0,1477,1876,67,97,97,97,97,97,1883,0,1885,97,97,97,1889,0,0,0,286,0,0,0,286,0,2367488,2158592,2158592,2158592,2158592,2158592,2158592,0,40976,0,18,18,24,24,126,126,126,2053,0,2055,45,67,0,97,45,67,0,97,45,67,97,0,0,97,97,97,2039,97,45,45,45,45,67,67,67,67,67,226,67,67,67,67,67,67,67,67,1246,67,67,1249,1250,67,67,67,132,94242,0,0,0,38,102439,0,0,106538,98347,28809,45,45,141,45,45,45,1403,45,45,45,45,45,45,45,45,45,45,45,45,1186,45,45,1189,45,45,155,45,45,45,45,45,45,45,45,45,191,45,45,45,45,700,45,45,45,45,45,45,45,45,45,45,45,1753,45,45,45,67,67,45,45,67,208,67,67,67,222,67,67,67,67,67,67,67,67,67,1764,67,67,67,67,67,67,67,258,67,67,67,67,67,0,24850,12564,0,0,0,0,28809,53531,97,97,288,97,97,97,302,97,97,97,97,97,97,97,97,97,627,97,97,97,97,97,97,338,97,97,97,97,97,0,40976,0,18,18,24,24,27,27,27,131427,0,0,0,0,362,0,365,28809,367,139,45,370,45,45,45,45,716,45,45,45,45,45,722,45,45,45,45,45,45,1912,67,67,67,67,67,67,67,67,67,819,67,67,25398,542,13112,544,45,403,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1409,45,67,67,67,67,489,67,67,67,67,67,67,67,67,67,67,67,771,67,67,67,67,520,67,67,67,67,67,67,67,67,67,67,67,534,67,67,67,67,67,67,1271,67,67,67,1274,67,67,67,1279,67,67,24850,24850,12564,12564,0,57889,0,0,0,53531,53531,367,286,97,553,97,97,97,97,586,97,97,97,97,97,97,97,97,97,97,97,1138,97,97,97,97,617,97,97,97,97,97,97,97,97,97,97,97,631,97,97,97,0,1834,97,97,97,97,97,0,0,0,97,97,97,97,97,353,0,40976,0,18,18,24,24,27,27,27,45,45,668,45,45,45,45,45,45,45,45,45,45,45,45,45,724,45,45,45,45,45,682,45,45,45,45,45,45,45,45,45,45,45,45,45,949,45,45,45,67,67,747,748,67,67,67,67,755,67,67,67,67,67,67,67,0,0,0,1302,0,0,0,1308,0,67,794,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1701,67,97,97,97,845,846,97,97,97,97,853,97,97,97,97,97,97,0,40976,0,18,18,24,24,27,27,27,97,97,892,97,97,97,97,97,97,97,97,97,97,97,97,97,610,97,97,45,992,45,45,45,45,45,45,45,45,45,45,45,45,67,67,67,1239,67,67,67,1063,67,67,67,67,67,1068,67,67,67,67,67,67,67,0,0,1301,0,0,0,1307,0,0,97,1141,97,97,97,97,97,97,97,97,97,97,97,1152,97,97,0,0,97,97,2001,0,97,2003,97,97,97,45,45,45,1739,45,45,45,1742,45,45,45,45,45,97,97,97,97,1157,97,97,97,97,97,1162,97,97,97,97,97,97,1145,97,97,97,97,97,1151,97,97,97,1253,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,539,45,1423,45,45,67,67,67,67,67,67,67,1431,67,67,67,67,67,67,67,1695,67,67,67,67,67,1700,67,1702,67,67,1439,67,67,67,67,67,67,67,67,67,67,67,67,67,514,67,67,97,97,1492,97,97,97,97,97,97,97,97,97,97,97,97,97,611,97,97,1703,67,67,67,67,67,67,97,97,97,97,97,97,97,97,97,852,97,97,97,97,97,97,45,1949,45,1951,45,45,45,67,67,67,67,67,67,67,1961,67,0,97,45,67,0,97,2060,2061,0,2062,45,67,97,0,0,2036,97,97,97,97,45,45,45,45,67,67,67,67,67,223,67,67,237,67,67,67,67,67,67,67,1272,67,67,67,67,67,67,67,67,507,67,67,67,67,67,67,67,1963,67,67,67,97,97,97,97,0,1972,0,97,97,97,1975,0,921,29315,0,0,0,0,45,45,45,931,45,45,45,45,45,407,45,45,45,45,45,45,45,45,45,417,45,45,1989,67,67,67,67,67,67,67,67,67,67,67,1996,97,18,131427,0,0,360,0,0,0,362,0,0,365,29315,367,0,921,29315,0,0,0,0,45,45,930,45,45,45,45,45,45,444,45,45,45,45,45,45,45,67,67,97,97,1998,0,97,97,97,0,97,97,97,97,97,45,45,45,45,45,45,1985,45,1986,45,45,45,156,45,45,170,45,45,45,45,45,45,45,45,45,45,675,45,45,45,45,679,131427,0,358,0,0,362,0,365,28809,367,139,45,45,45,45,45,381,45,45,45,45,45,45,45,45,45,400,45,45,419,45,45,45,45,45,45,45,45,45,45,45,45,436,67,67,67,67,67,505,67,67,67,67,67,67,67,67,67,67,820,67,25398,542,13112,544,67,67,522,67,67,67,67,67,529,67,67,67,67,67,67,67,0,1299,0,0,0,1305,0,0,0,97,97,619,97,97,97,97,97,626,97,97,97,97,97,97,97,1105,97,97,97,97,1109,97,97,97,67,67,67,67,749,67,67,67,67,67,67,67,67,67,760,67,0,97,45,67,2058,97,45,67,0,97,45,67,97,0,0,97,97,97,97,97,45,45,45,2041,67,67,67,67,67,780,67,67,67,67,67,67,67,67,67,67,67,67,67,516,67,67,97,97,97,878,97,97,97,97,97,97,97,97,97,97,97,97,97,1629,97,0,45,979,45,45,45,45,984,45,45,45,45,45,45,45,45,45,1198,45,45,45,45,45,45,67,1023,67,67,67,67,1028,67,67,67,67,67,67,67,67,67,470,67,67,67,67,67,67,67,67,67,67,67,25398,0,13112,0,54074,0,0,0,1094,0,0,0,1092,1315,0,0,0,0,97,97,97,97,97,97,97,97,97,1486,97,1489,97,97,97,1117,97,97,97,97,1122,97,97,97,97,97,97,97,1146,97,97,97,97,97,97,97,97,881,97,97,97,886,97,97,97,1311,0,0,0,0,0,0,0,0,97,97,97,97,97,97,97,1615,97,97,97,97,97,1619,97,97,97,97,97,97,97,97,97,97,97,97,1631,97,97,1847,97,45,45,45,45,1852,45,45,45,45,45,45,45,1235,45,45,45,67,67,67,67,67,1868,67,67,67,1872,67,67,67,67,67,97,97,97,97,1882,0,0,0,97,97,97,97,0,1891,67,67,67,67,67,97,97,97,97,97,1929,0,0,97,97,97,97,97,97,45,1900,45,1901,45,45,45,1905,45,67,2054,97,45,67,0,97,45,67,0,97,45,67,97,0,0,97,2037,2038,97,97,45,45,45,45,67,67,67,67,1867,67,67,67,67,67,67,67,67,67,1774,97,97,97,97,97,97,0,94242,0,0,0,38,102439,0,0,106538,98347,28809,45,45,142,45,45,45,1412,45,45,45,45,45,45,45,45,45,45,45,45,432,45,45,45,45,45,157,45,45,171,45,45,45,182,45,45,45,45,200,45,45,45,1543,45,45,45,45,45,45,45,45,1551,45,45,45,45,1181,45,45,45,45,45,45,45,45,45,45,45,1211,45,45,45,1214,45,45,45,67,209,67,67,67,224,67,67,238,67,67,67,249,67,0,97,2056,2057,0,2059,45,67,0,97,45,67,97,0,0,1937,97,97,97,97,97,97,45,45,45,45,45,45,1741,45,45,45,45,45,45,67,67,67,267,67,67,67,0,24850,12564,0,0,0,0,28809,53531,97,97,289,97,97,97,304,97,97,318,97,97,97,329,97,97,0,0,97,1783,97,97,97,97,0,0,97,97,0,97,97,97,45,2026,45,45,45,45,67,2030,67,67,67,67,67,67,1041,67,67,67,67,67,67,67,67,67,1044,67,67,67,67,67,67,97,97,347,97,97,97,0,40976,0,18,18,24,24,27,27,27,45,666,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1420,45,57889,0,0,54074,54074,550,0,97,97,97,97,97,97,97,97,840,67,1007,67,67,67,67,67,67,67,67,67,67,67,67,67,67,759,67,67,67,67,67,67,67,1052,67,67,67,67,67,67,67,67,67,67,1031,67,67,67,67,67,97,97,97,1101,97,97,97,97,97,97,97,97,97,97,97,97,592,97,97,97,1190,45,45,45,45,45,1195,45,1197,45,45,45,45,1201,45,45,45,45,1952,45,45,67,67,67,67,67,67,67,67,67,67,67,67,250,67,67,67,1255,67,1257,67,67,67,67,1261,67,67,67,67,67,67,67,67,1685,67,67,67,67,67,67,67,0,24851,12565,0,0,0,0,28809,53532,67,67,1267,67,67,67,67,67,67,1273,67,67,67,67,67,67,67,67,1696,67,67,67,67,67,67,67,0,0,0,0,0,0,2162688,0,0,1281,67,67,67,67,1285,67,67,67,67,67,67,67,67,67,67,1070,67,67,67,67,67,1335,97,1337,97,97,97,97,1341,97,97,97,97,97,97,97,97,882,97,97,97,97,97,97,97,1347,97,97,97,97,97,97,1353,97,97,97,97,97,97,1361,97,18,131427,0,638,0,0,0,0,362,0,0,365,29315,367,0,544,0,550,0,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2473984,2158592,2158592,2158592,2990080,2158592,2158592,2207744,2207744,2482176,2207744,2207744,2207744,2207744,2207744,2207744,2207744,0,0,0,0,0,0,2162688,0,53530,97,97,97,1365,97,97,97,97,97,97,97,97,97,97,97,97,608,97,97,97,45,45,1424,45,1425,67,67,67,67,67,67,67,67,67,67,67,1058,67,67,67,67,45,1555,45,45,1557,45,45,45,45,45,45,45,45,45,45,45,707,45,45,45,45,67,67,1570,67,67,67,67,67,67,67,67,67,67,67,67,67,773,67,67,1595,67,67,1597,67,67,67,67,67,67,67,67,67,67,67,0,0,0,0,0,0,0,0,0,0,139,2158592,2158592,2158592,2404352,2412544,97,97,97,1636,97,97,97,1639,97,97,1641,97,97,97,97,97,97,1173,0,921,0,0,0,0,0,0,45,67,67,67,1693,67,67,67,67,67,67,67,1698,67,67,67,67,67,67,67,1773,67,97,97,97,97,97,97,97,625,97,97,97,97,97,97,97,97,850,97,97,97,97,97,97,97,97,880,97,97,97,97,97,97,97,97,1106,97,97,97,97,97,97,97,1860,45,45,67,67,1865,67,67,67,67,1870,67,67,67,67,1875,67,67,97,97,1880,97,97,0,0,0,97,97,1888,97,0,0,0,1938,97,97,97,97,97,45,45,45,45,45,45,1854,45,45,45,45,45,45,45,1909,45,45,1911,67,67,67,67,67,67,67,67,67,67,1248,67,67,67,67,67,67,1922,67,67,1924,97,97,97,97,97,0,0,0,97,97,97,97,97,1898,45,45,45,45,45,45,1904,45,45,67,67,67,67,97,97,97,97,0,0,16384,97,97,97,97,0,97,97,97,97,97,97,97,97,97,0,1724,2008,2009,45,45,67,67,67,2014,2015,67,67,97,97,0,0,97,97,97,0,97,97,97,97,97,45,45,45,45,45,45,45,45,45,45,45,45,45,2022,0,2023,97,97,45,45,45,45,45,45,67,67,67,67,67,67,1869,67,67,67,67,67,67,0,94242,0,0,0,38,102439,0,0,106538,98347,28809,45,45,45,147,151,154,45,162,45,45,176,178,181,45,45,45,192,196,45,45,45,45,2012,67,67,67,67,67,67,2018,97,0,0,97,1978,97,97,97,1982,45,45,45,45,45,45,45,45,45,972,973,45,45,45,45,45,67,259,263,67,67,67,67,0,24850,12564,0,0,0,0,28809,53531,97,97,97,294,298,301,97,309,97,97,323,325,328,97,97,97,97,97,560,97,97,97,569,97,97,97,97,97,97,306,97,97,97,97,97,97,97,97,97,1624,97,97,97,97,97,97,97,0,921,0,1175,0,0,0,0,45,339,343,97,97,97,97,0,40976,0,18,18,24,24,27,27,27,67,67,503,67,67,67,67,67,67,67,67,67,512,67,67,519,97,97,600,97,97,97,97,97,97,97,97,97,609,97,97,616,45,649,45,45,45,45,45,654,45,45,45,45,45,45,45,45,1393,45,45,45,45,45,45,45,45,1209,45,45,45,45,45,45,45,67,763,67,67,67,67,67,67,67,67,770,67,67,67,774,67,0,2045,97,97,97,97,45,45,67,67,0,0,97,97,45,45,45,994,45,45,45,45,45,45,45,45,45,45,67,67,213,67,219,67,67,232,67,242,67,247,67,67,67,779,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1018,67,67,67,67,811,67,67,67,67,67,67,67,67,67,25398,542,13112,544,57889,0,0,54074,54074,550,0,97,834,97,97,97,97,97,839,97,18,131427,0,638,0,0,0,0,362,0,0,365,29315,367,645,97,97,861,97,97,97,97,97,97,97,97,868,97,97,97,872,97,97,877,97,97,97,97,97,97,97,97,97,97,97,97,97,613,97,97,97,97,97,909,97,97,97,97,97,97,97,97,97,0,0,0,18,18,24,24,27,27,27,1036,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1047,67,67,67,1050,67,67,67,67,67,67,67,67,67,67,67,67,1033,67,67,67,97,97,1130,97,97,97,97,97,97,97,97,97,97,97,97,97,638,0,0,67,67,67,1295,67,67,67,0,0,0,0,0,0,0,0,0,97,1317,97,97,97,97,97,97,1375,97,97,97,0,0,0,45,1379,45,45,45,45,45,45,422,45,45,45,429,431,45,45,45,45,0,1090,0,0,97,1479,97,97,97,97,97,97,97,97,97,97,1357,97,97,97,97,97,97,97,97,97,1716,97,97,97,97,97,97,97,97,97,1723,0,921,29315,0,0,0,0,45,929,45,45,45,45,45,45,45,1392,45,45,45,45,45,45,45,45,45,960,45,45,45,45,45,45,97,97,97,1738,45,45,45,45,45,45,45,1743,45,45,45,45,166,45,45,45,45,184,186,45,45,197,45,45,97,1779,0,0,97,97,97,97,97,97,0,0,97,97,0,97,18,131427,0,638,0,0,0,0,362,0,640,365,29315,367,0,921,29315,0,0,0,0,45,45,45,45,45,45,45,45,45,45,1537,45,45,45,45,45,1803,45,45,45,45,45,1809,45,45,45,67,67,67,1814,67,67,67,67,67,67,1821,67,67,67,67,67,67,97,97,97,97,97,0,0,0,97,97,97,97,0,0,67,67,67,1818,67,67,67,67,67,1824,67,67,67,97,97,97,97,97,0,0,0,97,97,97,97,1890,0,1829,97,97,0,0,97,97,1836,97,97,0,0,0,97,97,97,97,1981,45,45,45,45,45,45,45,45,45,1987,1845,97,97,97,45,45,45,45,45,1853,45,45,45,1857,45,45,45,67,1864,67,1866,67,67,67,67,67,67,67,67,67,97,97,97,97,97,97,97,1710,1711,67,67,97,97,97,97,97,0,0,0,1886,97,97,97,0,0,97,97,97,97,1838,0,0,0,97,1843,97,0,1893,97,97,97,97,97,45,45,45,45,45,45,45,45,45,45,1745,45,45,67,67,67,67,67,97,97,97,97,97,0,0,1931,97,97,97,97,97,588,97,97,97,97,97,97,97,97,97,97,629,97,97,97,97,97,67,2044,0,97,97,97,97,45,45,67,67,0,0,97,97,45,45,45,1660,45,45,45,45,45,45,45,45,45,45,45,45,453,45,455,67,67,67,67,268,67,67,67,0,24850,12564,0,0,0,0,28809,53531,97,97,348,97,97,97,0,40976,0,18,18,24,24,27,27,27,131427,0,359,0,0,362,0,365,28809,367,139,45,45,45,45,45,421,45,45,45,45,45,45,45,434,45,45,695,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1667,45,0,921,29315,0,925,0,0,45,45,45,45,45,45,45,45,45,1811,45,67,67,67,67,67,67,1037,67,1039,67,67,67,67,67,67,67,67,67,67,67,67,1277,67,67,67,67,67,67,67,67,25398,0,13112,0,54074,0,0,0,1095,0,0,0,1096,97,97,97,97,97,97,97,97,97,97,97,97,869,97,97,97,97,97,97,1131,97,1133,97,97,97,97,97,97,97,97,97,97,1370,97,97,97,97,97,1312,0,0,0,0,1096,0,0,0,97,97,97,97,97,97,97,1327,97,97,97,97,97,1332,97,97,97,1830,97,0,0,97,97,97,97,97,0,0,0,97,97,97,1896,97,97,45,45,45,45,45,45,45,45,45,1548,45,45,45,45,45,45,133,94242,0,0,0,38,102439,0,0,106538,98347,28809,45,45,45,45,380,45,45,45,45,45,45,45,45,45,45,401,45,45,158,45,45,45,45,45,45,45,45,45,45,45,45,45,1200,45,45,45,45,206,67,67,67,67,67,225,67,67,67,67,67,67,67,67,754,67,67,67,67,67,67,67,57889,0,0,54074,54074,550,832,97,97,97,97,97,97,97,97,97,1342,97,97,97,97,97,97,67,67,67,67,67,25398,1083,13112,1087,54074,1091,0,0,0,0,0,0,1316,0,831,97,97,97,97,97,97,97,1174,921,0,1175,0,0,0,0,45,0,94242,0,0,0,38,102439,0,0,106538,98347,28809,45,45,45,148,67,67,264,67,67,67,67,0,24850,12564,0,0,0,0,28809,53531,97,97,97,295,97,97,97,97,313,97,97,97,97,331,333,97,18,131427,356,638,0,0,0,0,362,0,0,365,0,367,0,45,45,1530,45,45,45,45,45,45,45,45,45,45,45,45,988,45,45,45,97,344,97,97,97,97,0,40976,0,18,18,24,24,27,27,27,402,404,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1756,67,438,45,45,45,45,45,45,45,45,449,450,45,45,45,67,67,214,218,221,67,229,67,67,243,245,248,67,67,67,67,67,488,490,67,67,67,67,67,67,67,67,67,67,67,1071,67,1073,67,67,67,67,67,524,67,67,67,67,67,67,67,67,535,536,67,67,67,67,67,67,1683,1684,67,67,67,67,1688,1689,67,67,67,67,67,67,1586,67,67,67,67,67,67,67,67,67,469,67,67,67,67,67,67,97,97,97,585,587,97,97,97,97,97,97,97,97,97,97,97,1163,97,97,97,97,97,97,97,621,97,97,97,97,97,97,97,97,632,633,97,97,0,0,1782,97,97,97,97,97,0,0,97,97,0,97,712,45,45,45,717,45,45,45,45,45,45,45,45,725,45,45,45,163,167,173,177,45,45,45,45,45,193,45,45,45,45,982,45,45,45,45,45,45,987,45,45,45,45,45,1558,45,1560,45,45,45,45,45,45,45,45,704,705,45,45,45,45,45,45,45,45,731,45,45,45,67,67,67,67,67,739,67,67,67,67,67,67,273,0,24850,12564,0,0,0,0,28809,53531,67,67,67,764,67,67,67,67,67,67,67,67,67,67,67,67,1290,67,67,67,67,67,67,812,67,67,67,67,818,67,67,67,25398,542,13112,544,57889,0,0,54074,54074,550,0,97,97,97,97,97,837,97,97,97,97,97,602,97,97,97,97,97,97,97,97,97,97,1137,97,97,97,97,97,97,97,97,97,862,97,97,97,97,97,97,97,97,97,97,97,1627,97,97,97,0,97,97,97,97,910,97,97,97,97,916,97,97,97,0,0,0,97,97,1940,97,97,1942,45,45,45,45,45,45,385,45,45,45,45,395,45,45,45,45,966,45,969,45,45,45,45,45,45,45,45,45,45,975,45,45,45,406,45,45,45,45,45,45,45,45,45,45,45,45,974,45,45,45,67,67,67,67,1010,67,67,67,67,67,67,67,67,67,67,67,1262,67,67,67,67,67,67,67,67,67,1040,67,1042,67,1045,67,67,67,67,67,67,67,97,1706,97,97,97,1709,97,97,97,67,67,67,67,1051,67,67,67,67,67,1057,67,67,67,67,67,67,67,1443,67,67,1446,67,67,67,67,67,67,67,1297,0,0,0,1303,0,0,0,1309,67,67,67,67,1079,25398,0,13112,0,54074,0,0,0,0,0,0,0,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2207744,2207744,2207744,2207744,2207744,2572288,2207744,2207744,2207744,1098,97,97,97,97,97,1104,97,97,97,97,97,97,97,97,97,1356,97,97,97,97,97,97,1128,97,97,97,97,97,97,1134,97,1136,97,1139,97,97,97,97,97,97,1622,97,97,97,97,97,97,97,97,0,921,0,0,0,1176,0,646,45,67,67,67,1268,67,67,67,67,67,67,67,67,67,67,67,67,1469,67,67,67,97,1348,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1127,97,67,1569,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1448,1449,67,1816,67,67,67,67,67,67,67,67,67,1825,67,67,1827,97,97,0,1781,97,97,97,97,97,97,0,0,97,97,0,97,97,97,1831,0,0,97,97,97,97,97,0,0,0,97,97,97,1980,97,45,45,45,45,45,45,45,45,45,45,1395,45,45,45,45,45,97,1846,97,97,45,45,45,45,45,45,45,45,45,45,45,45,1212,45,45,45,45,45,45,2010,45,67,67,67,67,67,2016,67,97,97,0,0,97,97,97,0,97,97,97,97,97,45,45,2007,0,94242,0,0,0,38,102439,0,0,106538,98347,28809,45,45,143,45,45,45,1671,45,45,45,45,45,45,45,45,45,45,45,67,1813,67,67,1815,45,45,67,210,67,67,67,67,67,67,239,67,67,67,67,67,67,67,1454,67,67,67,67,67,67,67,67,67,1445,67,67,67,67,67,67,97,97,290,97,97,97,97,97,97,319,97,97,97,97,97,97,303,97,97,317,97,97,97,97,97,97,305,97,97,97,97,97,97,97,97,97,899,97,97,97,97,97,97,375,45,45,45,379,45,45,390,45,45,394,45,45,45,45,45,443,45,45,45,45,45,45,45,45,67,67,67,67,67,461,67,67,67,465,67,67,476,67,67,480,67,67,67,67,67,67,1694,67,67,67,67,67,67,67,67,67,1288,67,67,67,67,67,67,500,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1075,97,97,97,558,97,97,97,562,97,97,573,97,97,577,97,97,97,97,97,895,97,97,97,97,97,97,903,97,97,97,0,97,97,1638,97,97,97,97,97,97,97,97,1646,597,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1334,45,681,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1396,45,45,1399,45,45,730,45,45,45,45,67,67,67,67,67,67,67,67,67,67,1434,67,67,67,67,67,67,750,67,67,67,67,67,67,67,67,67,67,1456,67,67,67,67,67,45,45,993,45,45,45,45,45,45,45,45,45,45,45,67,67,1238,67,67,1006,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1280,1048,1049,67,67,67,67,67,67,67,67,67,67,1059,67,67,67,67,67,67,1286,67,67,67,67,67,67,67,1291,67,97,97,1100,97,97,97,97,97,97,97,97,97,97,97,97,97,638,0,920,97,97,1142,1143,97,97,97,97,97,97,97,97,97,97,1153,97,97,97,97,97,1158,97,97,97,1161,97,97,97,97,1166,97,97,97,97,97,1325,97,97,97,97,97,97,97,97,97,97,1328,97,97,97,97,97,97,97,45,1218,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1678,45,45,45,67,67,67,67,67,1269,67,67,67,67,67,67,67,67,1278,67,67,67,67,67,67,1761,67,67,67,67,67,67,67,67,67,530,67,67,67,67,67,67,97,97,1349,97,97,97,97,97,97,97,97,1358,97,97,97,97,97,97,1623,97,97,97,97,97,97,97,97,0,921,0,0,926,0,0,0,45,45,1411,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1754,45,45,67,67,1301,0,1307,0,1313,97,97,97,97,97,97,97,97,97,97,97,21054,97,97,97,97,67,1757,67,67,67,1760,67,67,67,67,67,67,67,67,67,67,1467,67,67,67,67,67,1778,97,0,0,97,97,97,97,97,97,0,0,97,97,0,97,97,97,97,97,1352,97,97,97,97,97,97,97,97,97,97,1511,97,97,97,97,97,67,67,67,67,67,1820,67,1822,67,67,67,67,67,97,97,97,97,97,0,0,0,97,1933,97,1892,97,97,97,97,97,97,1899,45,45,45,45,45,45,45,45,1664,45,45,45,45,45,45,45,45,1546,45,45,45,45,45,45,45,45,1208,45,45,45,45,45,45,45,45,1224,45,45,45,45,45,45,45,45,673,45,45,45,45,45,45,45,67,67,67,67,67,1925,97,97,97,97,0,0,0,97,97,97,97,97,623,97,97,97,97,97,97,97,97,97,97,307,97,97,97,97,97,97,97,97,97,1796,97,45,45,45,45,45,45,45,970,45,45,45,45,45,45,45,45,1417,45,45,45,45,45,45,45,67,1964,67,67,97,97,97,97,0,0,0,97,97,97,97,0,97,97,97,97,97,97,1721,97,97,0,0,1997,97,0,0,2e3,97,97,0,97,97,97,97,97,45,45,45,45,733,45,67,67,67,67,67,67,67,67,67,67,803,67,67,67,67,67,0,94242,0,0,0,38,102439,0,0,106538,98347,28809,45,45,144,45,45,45,1805,45,1807,45,45,45,45,45,67,67,67,67,67,67,231,67,67,67,67,67,67,67,0,24850,12564,0,0,0,0,28809,53531,45,45,67,211,67,67,67,67,230,234,240,244,67,67,67,67,67,67,464,67,67,67,67,67,67,479,67,67,67,260,67,67,67,67,67,0,24850,12564,0,0,0,0,28809,53531,97,97,291,97,97,97,97,310,314,320,324,97,97,97,97,97,97,1367,97,97,97,97,97,97,97,97,97,1355,97,97,97,97,97,97,1362,340,97,97,97,97,97,0,40976,0,18,18,24,24,27,27,27,131427,0,0,360,0,362,0,365,28809,367,139,369,45,45,45,374,67,67,460,67,67,67,67,466,67,67,67,67,67,67,67,67,801,67,67,67,67,67,67,67,67,67,487,67,67,67,67,67,67,67,67,67,67,498,67,67,67,67,67,67,1772,67,67,97,97,97,97,97,97,97,0,921,922,1175,0,0,0,0,45,67,502,67,67,67,67,67,67,67,508,67,67,67,515,517,67,67,67,67,67,97,97,97,97,97,0,0,0,1932,97,97,0,1999,97,97,97,0,97,97,2004,2005,97,45,45,45,45,1193,45,45,45,45,45,45,45,45,45,45,45,676,45,45,45,45,67,24850,24850,12564,12564,0,57889,0,0,0,53531,53531,367,286,552,97,97,97,97,97,1377,0,0,45,45,45,45,45,45,45,45,655,45,45,45,45,45,45,45,97,97,557,97,97,97,97,563,97,97,97,97,97,97,97,97,1135,97,97,97,97,97,97,97,97,97,584,97,97,97,97,97,97,97,97,97,97,595,97,97,97,97,97,911,97,97,97,97,97,97,97,638,0,0,0,0,1315,0,0,0,0,97,97,97,1319,97,97,97,0,97,97,97,97,97,97,1733,97,97,97,97,97,97,1340,97,97,97,1343,97,97,1345,97,1346,97,599,97,97,97,97,97,97,97,605,97,97,97,612,614,97,97,97,97,97,1794,97,97,97,45,45,45,45,45,45,45,1207,45,45,45,45,45,45,1213,45,45,745,67,67,67,67,751,67,67,67,67,67,67,67,67,67,67,1577,67,67,67,67,67,762,67,67,67,67,766,67,67,67,67,67,67,67,67,67,67,1765,67,67,67,67,67,777,67,67,781,67,67,67,67,67,67,67,67,67,67,67,67,1592,1593,67,67,97,843,97,97,97,97,849,97,97,97,97,97,97,97,97,97,1510,97,97,97,97,97,97,97,860,97,97,97,97,864,97,97,97,97,97,97,97,97,97,1797,45,45,45,45,1801,45,97,875,97,97,879,97,97,97,97,97,97,97,97,97,97,97,1522,97,97,97,97,97,991,45,45,45,45,996,45,45,45,45,45,45,45,45,67,67,215,67,67,67,67,233,67,67,67,67,251,253,1022,67,67,67,1026,67,67,67,67,67,67,67,67,67,67,1035,67,67,1038,67,67,67,67,67,67,67,67,67,67,67,67,67,1458,67,67,67,67,67,1064,67,67,67,1067,67,67,67,67,1072,67,67,67,67,67,67,1296,0,0,0,0,0,0,0,0,0,2367488,2158592,2158592,2158592,2158592,2158592,2158592,67,67,67,67,67,25398,0,13112,0,54074,0,0,0,0,1096,0,921,29315,0,0,0,0,928,45,45,45,45,45,934,45,45,45,164,45,45,45,45,45,45,45,45,45,198,45,45,45,378,45,45,45,45,45,45,393,45,45,45,398,45,97,97,1116,97,97,97,1120,97,97,97,97,97,97,97,97,97,1147,1148,97,97,97,97,97,97,97,1129,97,97,1132,97,97,97,97,97,97,97,97,97,97,97,1626,97,97,97,97,0,45,1178,45,45,45,45,45,45,45,45,45,1185,45,45,45,45,441,45,45,45,45,45,45,451,45,45,67,67,67,67,67,227,67,67,67,67,67,67,67,67,1260,67,67,67,1263,67,67,1265,1203,45,45,1205,45,1206,45,45,45,45,45,45,45,45,45,1216,67,1266,67,67,67,67,67,67,67,67,67,1276,67,67,67,67,67,67,492,67,67,67,67,67,67,67,67,67,471,67,67,67,67,481,67,45,1386,45,1389,45,45,45,45,1394,45,45,45,1397,45,45,45,45,995,45,997,45,45,45,45,45,45,45,67,67,67,67,1915,67,67,67,67,67,1422,45,45,45,67,67,67,67,67,67,67,67,67,1433,67,1436,67,67,67,67,1441,67,67,67,1444,67,67,67,67,67,67,67,0,24850,12564,0,0,0,281,28809,53531,97,97,97,97,1494,97,97,97,1497,97,97,97,97,97,97,97,1368,97,97,97,97,97,97,97,97,851,97,97,97,97,97,97,97,67,67,67,1571,67,67,67,67,67,67,67,67,67,67,67,67,25398,542,13112,544,67,67,1583,67,67,67,67,67,67,67,67,1591,67,67,67,67,67,67,752,67,67,67,67,67,67,67,67,67,1056,67,67,67,67,67,67,97,1634,97,0,97,97,97,97,97,97,97,97,97,97,97,97,1125,97,97,97,1647,97,97,97,97,97,0,45,45,45,45,45,45,45,45,45,1183,45,45,45,45,45,45,45,45,45,409,45,45,45,45,45,45,1658,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1668,1712,97,97,97,0,97,97,97,97,97,97,97,97,97,0,0,1835,97,97,97,97,0,0,0,97,97,1844,97,97,1726,0,97,97,97,97,97,1732,97,1734,97,97,97,97,97,300,97,308,97,97,97,97,97,97,97,97,866,97,97,97,97,97,97,97,67,67,67,1758,67,67,67,1762,67,67,67,67,67,67,67,67,1043,67,67,67,67,67,67,67,67,67,67,67,67,1771,67,67,67,97,97,97,97,97,1776,97,97,97,97,297,97,97,97,97,97,97,97,97,97,97,97,1108,97,97,97,97,67,67,67,1966,97,97,97,1970,0,0,0,97,97,97,97,0,97,97,97,1720,97,97,97,97,97,0,0,97,97,97,1837,97,0,1840,1841,97,97,97,1988,45,67,67,67,67,67,67,67,67,67,1994,1995,67,97,97,97,97,97,1103,97,97,97,97,97,97,97,97,97,97,917,97,97,0,0,0,67,67,265,67,67,67,67,0,24850,12564,0,0,0,0,28809,53531,97,345,97,97,97,97,0,40976,0,18,18,24,24,27,27,27,131427,0,0,0,361,362,0,365,28809,367,139,45,45,45,45,45,671,45,45,45,45,45,45,45,45,45,45,411,45,45,414,45,45,45,45,377,45,45,45,386,45,45,45,45,45,45,45,45,45,1223,45,45,45,45,45,45,45,45,45,426,45,45,433,45,45,45,67,67,67,67,67,463,67,67,67,472,67,67,67,67,67,67,67,527,67,67,67,67,67,67,537,67,540,24850,24850,12564,12564,0,57889,0,0,0,53531,53531,367,286,97,97,97,97,97,1119,97,97,97,97,97,97,97,97,97,97,1509,97,97,97,97,97,97,97,97,564,97,97,97,97,97,97,97,637,18,131427,0,0,0,0,0,0,362,0,0,365,29315,367,0,921,29315,0,0,0,927,45,45,45,45,45,45,45,45,45,1234,45,45,45,45,67,67,67,67,1240,45,697,45,45,45,45,45,45,45,45,45,45,708,45,45,45,45,1221,45,45,45,45,1225,45,45,45,45,45,45,384,45,45,45,45,45,45,45,45,45,1210,45,45,45,45,45,45,67,67,795,67,67,67,67,67,67,67,67,67,67,67,67,67,1470,67,67,67,67,67,67,67,815,67,67,67,67,67,67,25398,542,13112,544,97,97,97,893,97,97,97,97,97,97,97,97,97,97,97,97,1164,97,97,97,67,67,67,1025,67,67,67,67,67,67,67,67,67,67,67,67,1687,67,67,67,67,67,67,67,67,67,25398,0,13112,0,54074,0,0,0,0,0,1097,1241,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1450,45,45,1388,45,1390,45,45,45,45,45,45,45,45,45,45,45,1236,67,67,67,67,67,1437,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1472,1490,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1503,67,67,67,67,67,97,97,97,97,97,0,1930,0,97,97,97,97,97,847,97,97,97,97,97,97,97,97,97,858,67,67,1965,67,97,97,97,97,0,0,0,97,97,97,97,0,97,97,1719,97,97,97,97,97,97,0,0,0,45,45,45,45,1382,45,1383,45,45,45,159,45,45,45,45,45,45,45,45,45,45,45,45,45,1563,45,45,45,45,45,67,261,67,67,67,67,67,0,24850,12564,0,0,0,0,28809,53531,341,97,97,97,97,97,0,40976,0,18,18,24,24,27,27,27,97,1099,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1333,97,1230,45,45,45,45,45,45,45,45,45,45,67,67,67,67,67,67,1992,67,1993,67,67,67,97,97,45,45,160,45,45,45,45,45,45,45,45,45,45,45,45,45,1665,45,45,45,45,45,131427,357,0,0,0,362,0,365,28809,367,139,45,45,45,45,45,684,45,45,45,45,45,45,45,45,45,45,412,45,45,45,416,45,45,45,440,45,45,45,45,45,45,45,45,45,45,45,67,67,1990,67,1991,67,67,67,67,67,67,67,97,97,1707,97,97,97,97,97,97,501,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,1691,67,67,67,67,67,526,67,67,67,67,67,67,67,67,67,67,1030,67,1032,67,67,67,67,598,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,1632,0,921,29315,923,0,0,0,45,45,45,45,45,45,45,45,45,1404,45,45,45,45,45,45,45,45,45,425,45,45,45,45,45,45,67,67,67,67,67,25398,0,13112,0,54074,0,0,1093,0,0,0,0,0,97,1609,97,97,97,97,97,97,97,97,97,1369,97,97,97,1372,97,97,67,67,266,67,67,67,67,0,24850,12564,0,0,0,0,28809,53531,97,346,97,97,97,97,0,40976,0,18,18,24,24,27,27,27,665,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,1677,45,45,45,45,67,45,45,954,45,956,45,45,45,45,45,45,45,45,45,45,45,1545,45,45,45,45,45,45,45,45,45,448,45,45,45,45,67,456,67,67,67,67,67,1270,67,67,67,67,67,67,67,67,67,67,1069,67,67,67,67,67,67,97,97,97,1350,97,97,97,97,97,97,97,97,97,97,97,97,1524,97,97,97,97,97,97,97,1376,0,0,0,45,45,45,45,45,45,45,45,1559,1561,45,45,45,1564,45,1566,1567,45,67,67,67,67,67,1573,67,67,67,67,67,67,67,67,67,67,1247,67,67,67,67,67,1252,97,1725,97,0,97,97,97,97,97,97,97,97,97,97,97,97,1628,97,1630,0,0,94242,0,0,0,2211840,0,1118208,0,0,0,0,2158592,2158731,2158592,2158592,2158592,3117056,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,3018752,2158592,3043328,2158592,2158592,2158592,2158592,3080192,2158592,2158592,3112960,2158592,2158592,2158592,2158592,2158592,2158878,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2605056,2158592,2158592,2207744,0,542,0,544,0,0,2166784,0,0,0,550,0,0,2158592,2158592,2686976,2158592,2715648,2158592,2158592,2158592,2158592,2158592,2158592,2158592,2867200,2158592,2904064,2158592,2158592,2158592,2158592,2158592,2158592,2158592,0,94242,0,0,0,2211840,0,0,1130496,0,0,0,2158592,2158592,2158592,2158592,2158592,3186688,2158592,0,0,139,0,0,0,139,0,2367488,2207744,0,0,0,0,176128,0,2166784,0,0,0,0,0,286,2158592,2158592,3170304,3174400,2158592,0,0,0,2158592,2158592,2158592,2158592,2158592,2424832,2158592,2158592,2158592,1508,2158592,2908160,2158592,2158592,2158592,2977792,2158592,2158592,2158592,2158592,3039232,2158592,2158592,2158592,2158592,2158592,2158592,3158016,67,24850,24850,12564,12564,0,0,0,0,0,53531,53531,0,286,97,97,97,97,97,1144,97,97,97,97,97,97,97,97,97,97,1149,97,97,97,97,1154,57889,0,0,0,0,550,0,97,97,97,97,97,97,97,97,97,561,97,97,97,97,97,97,576,97,97,139264,139264,139264,139264,139264,139264,139264,139264,139264,139264,139264,139264,0,0,139264,0,921,29315,0,0,926,0,45,45,45,45,45,45,45,45,45,719,720,45,45,45,45,45,45,45,45,685,45,45,45,45,45,45,45,45,45,942,45,45,946,45,45,45,950,45,45,0,2146304,2146304,0,0,0,0,2224128,2224128,2224128,2232320,2232320,2232320,2232320,0,0,1301,0,0,0,0,0,1307,0,0,0,0,0,1313,0,0,0,0,0,0,0,97,97,1318,97,97,97,97,97,97,1795,97,97,45,45,45,45,45,45,45,446,45,45,45,45,45,45,67,67,2158592,2146304,0,0,0,0,0,0,0,2211840,0,0,0,0,2158592,0,921,29315,0,924,0,0,45,45,45,45,45,45,45,45,45,1e3,45,45,45,45,67,67],r.EXPECTED=[290,300,304,353,296,309,305,319,315,324,328,352,354,334,338,330,320,345,349,293,358,362,341,366,312,370,374,378,382,386,390,394,398,737,402,634,439,604,634,634,634,634,408,634,634,634,404,634,634,634,457,634,634,963,634,634,413,634,634,634,634,634,634,634,663,418,422,903,902,426,431,548,634,437,521,919,443,615,409,449,455,624,731,751,634,461,465,672,470,469,474,481,485,477,489,493,629,542,497,505,603,602,991,648,510,804,634,515,958,526,525,530,768,634,546,552,711,710,593,558,562,618,566,570,574,578,582,586,590,608,612,660,822,821,634,622,596,444,628,533,724,633,640,653,647,652,536,1008,451,450,445,657,670,676,685,689,693,697,701,704,707,715,719,798,815,634,723,762,996,634,728,969,730,735,908,634,741,679,889,511,747,634,750,755,499,666,499,501,759,772,776,780,634,787,784,797,802,809,808,427,814,1006,517,634,519,853,634,813,850,793,634,819,826,833,832,837,843,847,857,861,863,867,871,875,879,883,643,887,539,980,979,634,893,944,634,900,896,634,907,933,506,912,917,828,433,636,635,554,961,923,930,927,937,941,634,634,634,974,948,952,985,913,968,967,743,634,973,839,634,978,599,634,984,989,765,444,995,1e3,634,1003,790,955,1012,681,634,634,634,634,634,414,1016,1020,1024,1085,1027,1090,1090,1046,1080,1137,1108,1215,1049,1032,1039,1085,1085,1085,1085,1058,1062,1068,1085,1086,1090,1090,1091,1072,1064,1107,1090,1090,1090,1118,1123,1138,1078,1074,1084,1085,1085,1085,1087,1090,1062,1052,1060,1114,1062,1104,1085,1085,1090,1090,1028,1122,1063,1128,1139,1127,1158,1085,1085,1151,1090,1090,1090,1095,1090,1132,1073,1136,1143,1061,1150,1085,1155,1098,1101,1146,1162,1169,1101,1185,1151,1090,1110,1173,1054,1087,1109,1177,1165,1089,1204,1184,1107,1189,1193,1088,1197,1180,1201,1208,1042,1212,1219,1223,1227,1231,1235,1245,1777,1527,1686,1686,1238,1686,1254,1686,1686,1686,1294,1669,1686,1686,1686,1322,1625,1534,1268,1624,1275,1281,1443,1292,1300,1686,1686,1686,1350,1826,1306,1686,1686,1240,2032,1317,1321,1686,1686,1253,1686,1326,1686,1686,1686,1418,1709,1446,1686,1686,1686,1492,1686,1295,1447,1686,1686,1258,1686,1736,1686,1686,1520,1355,1686,1288,1348,1361,1686,1359,1686,1364,1498,1368,1302,1362,1381,1389,1395,1486,1686,1371,1377,1370,1686,1375,1382,1384,1402,1408,1385,1383,1619,1413,1423,1428,1433,1686,1686,1270,1686,1338,1686,1440,1686,1686,1686,1499,1465,1686,1686,1686,1639,1473,1884,1686,1686,1293,1864,1686,1686,1296,1321,1483,1686,1686,1686,1646,1686,1748,1496,1686,1418,1675,1686,1418,1702,1686,1418,1981,1686,1429,1409,1427,1504,1692,1686,1686,1313,1448,1651,1508,1686,1686,1340,1686,1903,1686,1686,1435,1513,1686,1283,1287,1519,1686,1524,1363,1568,1938,1539,1566,1579,1479,1533,1538,1553,1544,1552,1557,1563,1574,1557,1583,1589,1590,1759,1594,1603,1607,1611,1686,1436,1514,1686,1434,1656,1686,1434,1680,1686,1453,1686,1686,1686,1559,1617,1686,1770,1418,1623,1769,1629,1686,1515,1335,1686,1285,1686,1671,1921,1650,1686,1686,1344,1308,1666,1686,1686,1686,1659,1685,1686,1686,1686,1686,1241,1686,1686,1844,1691,1686,1630,1977,1970,1362,1686,1686,1686,1693,1698,1686,1686,1686,1697,1686,1764,1715,1686,1634,1638,1686,1599,1585,1686,1271,1686,1269,1686,1721,1686,1686,1354,1686,1801,1686,1799,1686,1640,1686,1686,1461,1686,1686,1732,1686,1944,1686,1740,1686,1746,1415,1396,1686,1598,1547,1417,1597,1416,1577,1546,1397,1577,1547,1548,1570,1398,1753,1686,1652,1509,1686,1686,1686,1757,1686,1419,1686,1763,1418,1768,1781,1686,1686,1686,1705,1686,2048,1792,1686,1686,1686,1735,1686,1797,1686,1686,1404,1686,1639,1815,1686,1686,1418,2017,1820,1686,1686,1803,1686,1686,1686,1736,1489,1686,1686,1825,1338,1260,1263,1686,1686,1785,1686,1686,1728,1686,1686,1749,1497,1830,1830,1262,1248,1261,1329,1260,1264,1329,1248,1249,1259,1540,1849,1842,1686,1686,1835,1686,1686,1816,1686,1686,1831,1882,1848,1686,1686,1686,1774,2071,1854,1686,1686,1469,1884,1686,1821,1859,1686,1686,1350,1883,1686,1686,1686,1781,1391,1875,1686,1686,1613,1644,1686,1686,1889,1686,1686,1662,1884,1686,1885,1890,1686,1686,1686,1894,1686,1686,1678,1686,1907,1686,1686,1529,1914,1686,1838,1686,1686,1881,1686,1686,1872,1876,1836,1919,1686,1837,1692,1910,1686,1925,1928,1742,1686,1811,1811,1930,1810,1929,1935,1928,1900,1942,1867,1868,1931,1035,1788,1948,1952,1956,1960,1964,1686,1976,1686,1686,1686,2065,1686,1992,2037,1686,1686,1998,2009,1972,2002,1686,1686,1686,2077,1300,2023,1686,1686,1686,1807,2031,1686,1686,1686,1860,1500,2032,1686,1686,1686,2083,1686,2036,1686,1277,1276,2042,1877,1686,1686,2041,1686,1686,2027,2037,2012,1686,2012,1855,1850,1686,2046,1686,1686,2054,1996,1686,1897,1309,2059,2052,1686,2058,1686,1686,2081,1686,1717,1477,1686,1331,1686,1686,1687,1686,1860,1681,1686,1686,1686,1966,1724,1686,1686,1686,1984,2015,1686,1686,1686,1988,1686,2063,1686,1686,1686,2005,1686,1727,1686,1686,1711,1457,2069,1686,1686,1686,2019,2075,1686,1686,1915,1686,1686,1793,1874,1686,1686,1491,1362,1449,1686,1686,1460,2098,2087,2091,2095,2184,2102,2113,2780,2117,2134,2142,2281,2146,2146,2146,2304,2296,2181,2639,2591,2872,2592,2873,2313,2195,2200,2281,2146,2273,2226,2204,2152,2219,2276,2167,2177,2276,2235,2276,2276,2230,2281,2276,2296,2276,2293,2276,2276,2276,2276,2234,2276,2311,2314,2210,2199,2217,2222,2276,2276,2276,2240,2276,2294,2276,2276,2173,2276,2198,2281,2281,2281,2281,2282,2146,2146,2146,2146,2205,2146,2204,2248,2276,2235,2276,2297,2276,2276,2276,2277,2256,2281,2283,2146,2146,2146,2275,2276,2295,2276,2276,2293,2146,2304,2264,2269,2221,2276,2276,2276,2293,2295,2276,2276,2276,2295,2263,2205,2268,2220,2172,2276,2276,2276,2296,2276,2276,2296,2294,2276,2276,2278,2281,2281,2280,2281,2281,2281,2283,2206,2223,2276,2276,2279,2281,2281,2146,2273,2276,2276,2281,2281,2281,2276,2292,2276,2298,2225,2276,2298,2169,2224,2292,2298,2171,2229,2281,2281,2171,2236,2281,2281,2281,2146,2275,2225,2292,2299,2276,2229,2281,2146,2276,2290,2297,2283,2146,2146,2274,2224,2227,2298,2225,2297,2276,2230,2170,2230,2282,2146,2147,2151,2156,2288,2276,2230,2303,2308,2236,2284,2228,2318,2318,2318,2326,2335,2339,2343,2349,2416,2693,2357,2592,2109,2592,2592,2162,2943,2823,2646,2592,2361,2592,2122,2592,2592,2122,2470,2592,2592,2592,2109,2107,2592,2592,2592,2123,2592,2592,2592,2125,2592,2413,2592,2592,2592,2127,2592,2592,2414,2592,2592,2592,2130,2952,2592,2594,2592,2592,2212,2609,2252,2592,2592,2592,2446,2434,2592,2592,2592,2212,2446,2450,2456,2431,2435,2592,2592,2243,2478,2448,2439,2946,2592,2592,2592,2368,2809,2813,2450,2441,2212,2812,2449,2440,2947,2592,2592,2592,2345,2451,2457,2948,2592,2124,2592,2592,2650,2823,2449,2455,2946,2592,2128,2592,2592,2649,2952,2592,2810,2448,2461,2991,2467,2592,2592,2329,2817,2474,2990,2466,2592,2592,2373,2447,2992,2469,2592,2592,2592,2373,2447,2477,2468,2592,2592,2353,2469,2592,2495,2592,2592,2415,2483,2592,2415,2496,2592,2592,2352,2592,2592,2352,2352,2469,2592,2592,2363,2331,2494,2592,2592,2592,2375,2592,2375,2415,2504,2592,2592,2367,2372,2503,2592,2592,2592,2389,2418,2415,2592,2592,2373,2592,2592,2592,2593,2732,2417,2415,2592,2417,2520,2592,2592,2592,2390,2521,2521,2592,2592,2592,2401,2599,2585,2526,2531,2120,2592,2212,2426,2450,2463,2948,2592,2592,2592,2213,2389,2527,2532,2121,2542,2551,2105,2592,2213,2592,2592,2592,2558,2538,2544,2553,2557,2537,2543,2552,2421,2572,2576,2546,2543,2547,2592,2592,2373,2615,2575,2545,2105,2592,2244,2479,2592,2129,2592,2592,2628,2690,2469,2562,2566,2592,2592,2592,2415,2928,2934,2401,2570,2574,2564,2572,2585,2590,2592,2592,2585,2965,2592,2592,2592,2445,2251,2592,2592,2592,2474,2592,2609,2892,2592,2362,2592,2592,2138,2851,2159,2592,2592,2592,2509,2888,2892,2592,2592,2592,2490,2418,2891,2592,2592,2376,2592,2592,2374,2592,2889,2388,2592,2373,2373,2890,2592,2592,2387,2592,2887,2505,2892,2592,2373,2610,2388,2592,2592,2376,2373,2592,2887,2891,2592,2374,2592,2592,2608,2159,2614,2620,2592,2592,2394,2594,2887,2399,2592,2887,2397,2508,2374,2507,2592,2375,2592,2592,2592,2595,2508,2506,2592,2506,2505,2505,2592,2507,2637,2505,2592,2592,2401,2661,2592,2643,2592,2592,2417,2592,2655,2592,2592,2592,2510,2414,2656,2592,2592,2592,2516,2592,2593,2660,2665,2880,2592,2592,2592,2522,2767,2666,2881,2592,2592,2420,2571,2696,2592,2592,2592,2580,2572,2686,2632,2698,2592,2383,2514,2592,2163,2932,2465,2685,2631,2697,2592,2388,2592,2592,2212,2604,2671,2632,2678,2592,2401,2405,2409,2592,2592,2592,2679,2592,2592,2592,2592,2108,2677,2591,2592,2592,2592,2419,2592,2683,2187,2191,2469,2671,2189,2467,2592,2401,2629,2633,2702,2468,2592,2592,2421,2536,2703,2469,2592,2592,2422,2573,2593,2672,2467,2592,2402,2406,2592,2402,2979,2592,2592,2626,2673,2467,2592,2446,2259,2947,2592,2377,2709,2592,2592,2522,2862,2713,2468,2592,2592,2581,2572,2562,2374,2374,2592,2376,2721,2724,2592,2592,2624,2373,2731,2592,2592,2592,2626,2732,2592,2592,2592,2755,2656,2726,2736,2741,2592,2486,2593,2381,2592,2727,2737,2742,2715,2747,2753,2592,2498,2469,2873,2743,2592,2592,2592,2791,2759,2763,2592,2592,2627,2704,2592,2592,2522,2789,2593,2761,2753,2592,2498,2863,2592,2592,2767,2592,2592,2592,2792,2789,2592,2592,2592,2803,2126,2592,2592,2592,2811,2122,2592,2592,2592,2834,2777,2592,2592,2592,2848,2936,2591,2489,2797,2592,2592,2670,2631,2490,2798,2592,2592,2592,2963,2807,2592,2592,2592,2965,2838,2592,2592,2592,2975,2330,2818,2829,2592,2498,2939,2592,2498,2592,2791,2331,2819,2830,2592,2592,2592,2982,2834,2817,2828,2106,2592,2592,2592,2405,2405,2817,2828,2592,2592,2415,2849,2842,2592,2522,2773,2592,2522,2868,2592,2580,2600,2586,2137,2850,2843,2592,2592,2855,2937,2844,2592,2592,2592,2987,2936,2591,2592,2592,2684,2630,2592,2856,2938,2592,2592,2860,2939,2592,2592,2872,2592,2861,2591,2592,2592,2887,2616,2592,2867,2592,2592,2708,2592,2498,2469,2498,2497,2785,2773,2499,2783,2770,2877,2877,2877,2772,2592,2592,2345,2885,2592,2592,2592,2715,2762,2515,2896,2592,2592,2715,2917,2516,2897,2592,2592,2592,2901,2906,2911,2592,2592,2956,2960,2715,2902,2907,2912,2593,2916,2920,2820,2922,2822,2592,2592,2715,2927,2921,2821,2106,2592,2592,2974,2408,2321,2821,2106,2592,2592,2983,2592,2593,2404,2408,2592,2592,2717,2749,2716,2928,2322,2822,2593,2926,2919,2820,2934,2823,2592,2592,2592,2651,2824,2592,2592,2592,2130,2952,2592,2592,2592,2592,2964,2592,2592,2716,2748,2592,2969,2592,2592,2716,2918,2368,2970,2592,2592,2592,2403,2407,2592,2592,2787,2211,2404,2409,2592,2592,2802,2837,2987,2592,2592,2592,2809,2427,2592,2793,2592,2592,2809,2447,1073741824,2147483648,539754496,542375936,402653184,554434560,571736064,545521856,268451840,335544320,268693630,512,2048,256,1024,0,1024,0,1073741824,2147483648,0,0,0,8388608,0,0,1073741824,1073741824,0,2147483648,537133056,4194304,1048576,268435456,-1073741824,0,0,0,1048576,0,0,0,1572864,0,0,0,4194304,0,134217728,16777216,0,0,32,64,98304,0,33554432,8388608,192,67108864,67108864,67108864,67108864,16,32,4,0,8192,196608,196608,229376,80,4096,524288,8388608,0,0,32,128,256,24576,24600,24576,24576,2,24576,24576,24576,24584,24592,24576,24578,24576,24578,24576,24576,16,512,2048,2048,256,4096,32768,1048576,4194304,67108864,134217728,268435456,262144,134217728,0,128,128,64,16384,16384,16384,67108864,32,32,4,4,4096,262144,134217728,0,0,0,2,0,8192,131072,131072,4096,4096,4096,4096,24576,24576,24576,8,8,24576,24576,16384,16384,16384,24576,24584,24576,24576,24576,16384,24576,536870912,262144,0,0,32,2048,8192,4,4096,4096,4096,786432,8388608,16777216,0,128,16384,16384,16384,32768,65536,2097152,32,32,32,32,4,4,4,4,4,4096,67108864,67108864,67108864,24576,24576,24576,24576,0,16384,16384,16384,16384,67108864,67108864,8,67108864,24576,8,8,8,24576,24576,24576,24578,24576,24576,24576,2,2,2,16384,67108864,67108864,67108864,32,67108864,8,8,24576,2048,2147483648,536870912,262144,262144,262144,67108864,8,24576,16384,32768,1048576,4194304,25165824,67108864,24576,32770,2,4,112,512,98304,524288,50,402653186,1049090,1049091,10,66,100925514,10,66,12582914,0,0,-1678194207,-1678194207,-1041543218,0,32768,0,0,32,65536,268435456,1,1,513,1048577,0,12582912,0,0,0,4,1792,0,0,0,7,29360128,0,0,0,8,0,0,0,12,1,1,0,0,-604102721,-604102721,4194304,8388608,0,0,0,31,925600,997981306,997981306,997981306,0,0,2048,8388608,0,0,1,2,4,32,64,512,8192,0,0,0,245760,997720064,0,0,0,32,0,0,0,3,12,16,32,8,112,3072,12288,16384,32768,65536,131072,7864320,16777216,973078528,0,0,65536,131072,3670016,4194304,16777216,33554432,2,8,48,2048,8192,16384,32768,65536,131072,524288,131072,524288,3145728,4194304,16777216,33554432,65536,131072,2097152,4194304,16777216,33554432,134217728,268435456,536870912,0,0,0,1024,0,8,48,2048,8192,65536,33554432,268435456,536870912,65536,268435456,536870912,0,0,32768,0,0,126,623104,65011712,0,32,65536,536870912,0,0,65536,524288,0,32,65536,0,0,0,2048,0,0,0,15482,245760,-604102721,0,0,0,18913,33062912,925600,-605028352,0,0,0,65536,31,8096,131072,786432,3145728,3145728,12582912,50331648,134217728,268435456,160,256,512,7168,131072,786432,131072,786432,1048576,2097152,12582912,16777216,268435456,1073741824,2147483648,12582912,16777216,33554432,268435456,1073741824,2147483648,3,12,16,160,256,7168,786432,1048576,12582912,16777216,268435456,1073741824,0,8,16,32,128,256,512,7168,786432,1048576,2097152,0,1,2,8,16,7168,786432,1048576,8388608,16777216,16777216,1073741824,0,0,0,0,1,0,0,8,32,128,256,7168,8,32,0,3072,0,8,32,3072,4096,524288,8,32,0,0,3072,4096,0,2048,524288,8388608,8,2048,0,0,1,12,256,4096,32768,262144,1048576,4194304,67108864,0,2048,0,2048,2048,1073741824,-58805985,-58805985,-58805985,0,0,262144,0,0,32,4194304,16777216,134217728,4382,172032,-58982400,0,0,2,28,256,4096,8192,8192,32768,131072,262144,524288,1,2,12,256,4096,0,0,4194304,67108864,134217728,805306368,1073741824,0,0,1,2,12,16,256,4096,1048576,67108864,134217728,268435456,0,512,1048576,4194304,201326592,1879048192,0,0,12,256,4096,134217728,268435456,536870912,12,256,268435456,536870912,0,12,256,0,0,1,32,64,512,0,0,205236961,205236961,0,0,0,1,96,640,1,10976,229376,204996608,0,640,2048,8192,229376,1572864,1572864,2097152,201326592,0,0,0,64,512,2048,229376,1572864,201326592,1572864,201326592,0,0,1,4382,0,1,32,2048,65536,131072,1572864,201326592,131072,1572864,134217728,0,0,524288,524288,0,0,0,-68582786,-68582786,-68582786,0,0,2097152,524288,0,524288,0,0,65536,131072,1572864,0,0,2,4,0,0,65011712,-134217728,0,0,0,0,2,4,120,512,-268435456,0,0,0,2,8,48,64,2048,8192,98304,524288,2097152,4194304,25165824,33554432,134217728,268435456,2147483648,0,0,25165824,33554432,134217728,1879048192,2147483648,0,0,4,112,512,622592,65011712,134217728,-268435456,16777216,33554432,134217728,1610612736,0,0,0,64,98304,524288,4194304,16777216,33554432,0,98304,524288,16777216,33554432,0,65536,524288,33554432,536870912,1073741824,0,65536,524288,536870912,1073741824,0,0,65536,524288,536870912,0,524288,0,524288,524288,1048576,2086666240,2147483648,0,-1678194207,0,0,0,8,32,2048,524288,8388608,0,0,33062912,436207616,2147483648,0,0,32,64,2432,16384,32768,32768,524288,3145728,4194304,25165824,25165824,167772160,268435456,2147483648,0,32,64,384,2048,16384,32768,1048576,2097152,4194304,25165824,32,64,128,256,2048,16384,2048,16384,1048576,4194304,16777216,33554432,134217728,536870912,1073741824,0,0,2048,16384,4194304,16777216,33554432,134217728,805306368,0,0,16777216,134217728,268435456,2147483648,0,622592,622592,622592,8807,8807,434791,0,0,16777216,0,0,0,7,608,8192,0,0,0,3,4,96,512,32,64,8192,0,0,16777216,134217728,0,0,2,4,8192,16384,65536,2097152,33554432,268435456],r.TOKEN=[\"(0)\",\"ModuleDecl\",\"Annotation\",\"OptionDecl\",\"Operator\",\"Variable\",\"Tag\",\"EndTag\",\"PragmaContents\",\"DirCommentContents\",\"DirPIContents\",\"CDataSectionContents\",\"AttrTest\",\"Wildcard\",\"EQName\",\"IntegerLiteral\",\"DecimalLiteral\",\"DoubleLiteral\",\"PredefinedEntityRef\",\"'\\\"\\\"'\",\"EscapeApos\",\"QuotChar\",\"AposChar\",\"ElementContentChar\",\"QuotAttrContentChar\",\"AposAttrContentChar\",\"NCName\",\"QName\",\"S\",\"CharRef\",\"CommentContents\",\"DocTag\",\"DocCommentContents\",\"EOF\",\"'!'\",\"'\\\"'\",\"'#'\",\"'#)'\",\"''''\",\"'('\",\"'(#'\",\"'(:'\",\"'(:~'\",\"')'\",\"'*'\",\"'*'\",\"','\",\"'-->'\",\"'.'\",\"'/'\",\"'/>'\",\"':'\",\"':)'\",\"';'\",\"'<!--'\",\"'<![CDATA['\",\"'<?'\",\"'='\",\"'>'\",\"'?'\",\"'?>'\",\"'NaN'\",\"'['\",\"']'\",\"']]>'\",\"'after'\",\"'all'\",\"'allowing'\",\"'ancestor'\",\"'ancestor-or-self'\",\"'and'\",\"'any'\",\"'append'\",\"'array'\",\"'as'\",\"'ascending'\",\"'at'\",\"'attribute'\",\"'base-uri'\",\"'before'\",\"'boundary-space'\",\"'break'\",\"'by'\",\"'case'\",\"'cast'\",\"'castable'\",\"'catch'\",\"'check'\",\"'child'\",\"'collation'\",\"'collection'\",\"'comment'\",\"'constraint'\",\"'construction'\",\"'contains'\",\"'content'\",\"'context'\",\"'continue'\",\"'copy'\",\"'copy-namespaces'\",\"'count'\",\"'decimal-format'\",\"'decimal-separator'\",\"'declare'\",\"'default'\",\"'delete'\",\"'descendant'\",\"'descendant-or-self'\",\"'descending'\",\"'diacritics'\",\"'different'\",\"'digit'\",\"'distance'\",\"'div'\",\"'document'\",\"'document-node'\",\"'element'\",\"'else'\",\"'empty'\",\"'empty-sequence'\",\"'encoding'\",\"'end'\",\"'entire'\",\"'eq'\",\"'every'\",\"'exactly'\",\"'except'\",\"'exit'\",\"'external'\",\"'first'\",\"'following'\",\"'following-sibling'\",\"'for'\",\"'foreach'\",\"'foreign'\",\"'from'\",\"'ft-option'\",\"'ftand'\",\"'ftnot'\",\"'ftor'\",\"'function'\",\"'ge'\",\"'greatest'\",\"'group'\",\"'grouping-separator'\",\"'gt'\",\"'idiv'\",\"'if'\",\"'import'\",\"'in'\",\"'index'\",\"'infinity'\",\"'inherit'\",\"'insensitive'\",\"'insert'\",\"'instance'\",\"'integrity'\",\"'intersect'\",\"'into'\",\"'is'\",\"'item'\",\"'json'\",\"'json-item'\",\"'key'\",\"'language'\",\"'last'\",\"'lax'\",\"'le'\",\"'least'\",\"'let'\",\"'levels'\",\"'loop'\",\"'lowercase'\",\"'lt'\",\"'minus-sign'\",\"'mod'\",\"'modify'\",\"'module'\",\"'most'\",\"'namespace'\",\"'namespace-node'\",\"'ne'\",\"'next'\",\"'no'\",\"'no-inherit'\",\"'no-preserve'\",\"'node'\",\"'nodes'\",\"'not'\",\"'object'\",\"'occurs'\",\"'of'\",\"'on'\",\"'only'\",\"'option'\",\"'or'\",\"'order'\",\"'ordered'\",\"'ordering'\",\"'paragraph'\",\"'paragraphs'\",\"'parent'\",\"'pattern-separator'\",\"'per-mille'\",\"'percent'\",\"'phrase'\",\"'position'\",\"'preceding'\",\"'preceding-sibling'\",\"'preserve'\",\"'previous'\",\"'processing-instruction'\",\"'relationship'\",\"'rename'\",\"'replace'\",\"'return'\",\"'returning'\",\"'revalidation'\",\"'same'\",\"'satisfies'\",\"'schema'\",\"'schema-attribute'\",\"'schema-element'\",\"'score'\",\"'self'\",\"'sensitive'\",\"'sentence'\",\"'sentences'\",\"'skip'\",\"'sliding'\",\"'some'\",\"'stable'\",\"'start'\",\"'stemming'\",\"'stop'\",\"'strict'\",\"'strip'\",\"'structured-item'\",\"'switch'\",\"'text'\",\"'then'\",\"'thesaurus'\",\"'times'\",\"'to'\",\"'treat'\",\"'try'\",\"'tumbling'\",\"'type'\",\"'typeswitch'\",\"'union'\",\"'unique'\",\"'unordered'\",\"'updating'\",\"'uppercase'\",\"'using'\",\"'validate'\",\"'value'\",\"'variable'\",\"'version'\",\"'weight'\",\"'when'\",\"'where'\",\"'while'\",\"'wildcards'\",\"'window'\",\"'with'\",\"'without'\",\"'word'\",\"'words'\",\"'xquery'\",\"'zero-digit'\",\"'{'\",\"'{{'\",\"'|'\",\"'}'\",\"'}}'\"]},{}],\"/node_modules/xqlint/lib/lexers/jsoniq_lexer.js\":[function(e,t,n){\"use strict\";var r=e(\"./JSONiqTokenizer\").JSONiqTokenizer,i=e(\"./lexer\").Lexer,s=\"NaN|after|allowing|ancestor|ancestor-or-self|and|append|array|as|ascending|at|attribute|base-uri|before|boundary-space|break|by|case|cast|castable|catch|child|collation|comment|constraint|construction|contains|context|continue|copy|copy-namespaces|count|decimal-format|decimal-separator|declare|default|delete|descendant|descendant-or-self|descending|digit|div|document|document-node|element|else|empty|empty-sequence|encoding|end|eq|every|except|exit|external|false|first|following|following-sibling|for|from|ft-option|function|ge|greatest|group|grouping-separator|gt|idiv|if|import|in|index|infinity|insert|instance|integrity|intersect|into|is|item|json|json-item|jsoniq|last|lax|le|least|let|loop|lt|minus-sign|mod|modify|module|namespace|namespace-node|ne|next|node|nodes|not|null|object|of|only|option|or|order|ordered|ordering|paragraphs|parent|pattern-separator|per-mille|percent|preceding|preceding-sibling|previous|processing-instruction|rename|replace|return|returning|revalidation|satisfies|schema|schema-attribute|schema-element|score|select|self|sentences|sliding|some|stable|start|strict|switch|text|then|times|to|treat|true|try|tumbling|type|typeswitch|union|unordered|updating|validate|value|variable|version|when|where|while|window|with|words|xquery|zero-digit\".split(\"|\"),o=s.map(function(e){return{name:\"'\"+e+\"'\",token:\"keyword\"}}),u=s.map(function(e){return{name:\"'\"+e+\"'\",token:\"text\",next:function(e){e.pop()}}}),a=\"constant.language\",f=\"constant\",l=\"comment\",c=\"xml-pe\",h=\"constant.buildin\",p=function(e){return\"'\"+e+\"'\"},d={start:[{name:p(\"(#\"),token:h,next:function(e){e.push(\"Pragma\")}},{name:p(\"(:\"),token:\"comment\",next:function(e){e.push(\"Comment\")}},{name:p(\"(:~\"),token:\"comment.doc\",next:function(e){e.push(\"CommentDoc\")}},{name:p(\"<!--\"),token:l,next:function(e){e.push(\"XMLComment\")}},{name:p(\"<?\"),token:c,next:function(e){e.push(\"PI\")}},{name:p(\"''\"),token:\"string\",next:function(e){e.push(\"AposString\")}},{name:p('\"'),token:\"string\",next:function(e){e.push(\"QuotString\")}},{name:\"Annotation\",token:\"support.function\"},{name:\"ModuleDecl\",token:\"keyword\",next:function(e){e.push(\"Prefix\")}},{name:\"OptionDecl\",token:\"keyword\",next:function(e){e.push(\"_EQName\")}},{name:\"AttrTest\",token:\"support.type\"},{name:\"Variable\",token:\"variable\"},{name:p(\"<![CDATA[\"),token:a,next:function(e){e.push(\"CData\")}},{name:\"IntegerLiteral\",token:f},{name:\"DecimalLiteral\",token:f},{name:\"DoubleLiteral\",token:f},{name:\"Operator\",token:\"keyword.operator\"},{name:\"EQName\",token:function(e){return s.indexOf(e)!==-1?\"keyword\":\"support.function\"}},{name:p(\"(\"),token:\"lparen\"},{name:p(\")\"),token:\"rparen\"},{name:\"Tag\",token:\"meta.tag\",next:function(e){e.push(\"StartTag\")}},{name:p(\"}\"),token:\"text\",next:function(e){e.length>1&&e.pop()}},{name:p(\"{\"),token:\"text\",next:function(e){e.push(\"start\")}}].concat(o),_EQName:[{name:\"EQName\",token:\"text\",next:function(e){e.pop()}}].concat(u),Prefix:[{name:\"NCName\",token:\"text\",next:function(e){e.pop()}}].concat(u),StartTag:[{name:p(\">\"),token:\"meta.tag\",next:function(e){e.push(\"TagContent\")}},{name:\"QName\",token:\"entity.other.attribute-name\"},{name:p(\"=\"),token:\"text\"},{name:p(\"''\"),token:\"string\",next:function(e){e.push(\"AposAttr\")}},{name:p('\"'),token:\"string\",next:function(e){e.push(\"QuotAttr\")}},{name:p(\"/>\"),token:\"meta.tag.r\",next:function(e){e.pop()}}],TagContent:[{name:\"ElementContentChar\",token:\"text\"},{name:p(\"<![CDATA[\"),token:a,next:function(e){e.push(\"CData\")}},{name:p(\"<!--\"),token:l,next:function(e){e.push(\"XMLComment\")}},{name:\"Tag\",token:\"meta.tag\",next:function(e){e.push(\"StartTag\")}},{name:\"PredefinedEntityRef\",token:\"constant.language.escape\"},{name:\"CharRef\",token:\"constant.language.escape\"},{name:p(\"{{\"),token:\"text\"},{name:p(\"}}\"),token:\"text\"},{name:p(\"{\"),token:\"text\",next:function(e){e.push(\"start\")}},{name:\"EndTag\",token:\"meta.tag\",next:function(e){e.pop(),e.pop()}}],AposAttr:[{name:p(\"''\"),token:\"string\",next:function(e){e.pop()}},{name:\"EscapeApos\",token:\"constant.language.escape\"},{name:\"AposAttrContentChar\",token:\"string\"},{name:\"PredefinedEntityRef\",token:\"constant.language.escape\"},{name:\"CharRef\",token:\"constant.language.escape\"},{name:p(\"{{\"),token:\"string\"},{name:p(\"}}\"),token:\"string\"},{name:p(\"{\"),token:\"text\",next:function(e){e.push(\"start\")}}],QuotAttr:[{name:p('\"'),token:\"string\",next:function(e){e.pop()}},{name:\"EscapeQuot\",token:\"constant.language.escape\"},{name:\"QuotAttrContentChar\",token:\"string\"},{name:\"PredefinedEntityRef\",token:\"constant.language.escape\"},{name:\"CharRef\",token:\"constant.language.escape\"},{name:p(\"{{\"),token:\"string\"},{name:p(\"}}\"),token:\"string\"},{name:p(\"{\"),token:\"text\",next:function(e){e.push(\"start\")}}],Pragma:[{name:\"PragmaContents\",token:h},{name:p(\"#\"),token:h},{name:p(\"#)\"),token:h,next:function(e){e.pop()}}],Comment:[{name:\"CommentContents\",token:\"comment\"},{name:p(\"(:\"),token:\"comment\",next:function(e){e.push(\"Comment\")}},{name:p(\":)\"),token:\"comment\",next:function(e){e.pop()}}],CommentDoc:[{name:\"DocCommentContents\",token:\"comment.doc\"},{name:\"DocTag\",token:\"comment.doc.tag\"},{name:p(\"(:\"),token:\"comment.doc\",next:function(e){e.push(\"CommentDoc\")}},{name:p(\":)\"),token:\"comment.doc\",next:function(e){e.pop()}}],XMLComment:[{name:\"DirCommentContents\",token:l},{name:p(\"-->\"),token:l,next:function(e){e.pop()}}],CData:[{name:\"CDataSectionContents\",token:a},{name:p(\"]]>\"),token:a,next:function(e){e.pop()}}],PI:[{name:\"DirPIContents\",token:c},{name:p(\"?\"),token:c},{name:p(\"?>\"),token:c,next:function(e){e.pop()}}],AposString:[{name:p(\"''\"),token:\"string\",next:function(e){e.pop()}},{name:\"PredefinedEntityRef\",token:\"constant.language.escape\"},{name:\"CharRef\",token:\"constant.language.escape\"},{name:\"EscapeApos\",token:\"constant.language.escape\"},{name:\"AposChar\",token:\"string\"}],QuotString:[{name:p('\"'),token:\"string\",next:function(e){e.pop()}},{name:\"JSONPredefinedCharRef\",token:\"constant.language.escape\"},{name:\"JSONCharRef\",token:\"constant.language.escape\"},{name:\"JSONChar\",token:\"string\"}]};n.JSONiqLexer=function(){return new i(r,d)}},{\"./JSONiqTokenizer\":\"/node_modules/xqlint/lib/lexers/JSONiqTokenizer.js\",\"./lexer\":\"/node_modules/xqlint/lib/lexers/lexer.js\"}],\"/node_modules/xqlint/lib/lexers/lexer.js\":[function(e,t,n){\"use strict\";var r=function(e){var t=e;this.tokens=[],this.reset=function(){t=t,this.tokens=[]},this.startNonterminal=function(){},this.endNonterminal=function(){},this.terminal=function(e,n,r){this.tokens.push({name:e,value:t.substring(n,r)})},this.whitespace=function(e,n){this.tokens.push({name:\"WS\",value:t.substring(e,n)})}};n.Lexer=function(e,t){this.tokens=[],this.getLineTokens=function(n,i){i=i===\"start\"||!i?'[\"start\"]':i;var s=JSON.parse(i),o=new r(n),u=new e(n,o),a=[];for(;;){var f=s[s.length-1];try{o.tokens=[],u[\"parse_\"+f]();var l=null;o.tokens.length>1&&o.tokens[0].name===\"WS\"&&(a.push({type:\"text\",value:o.tokens[0].value}),o.tokens.splice(0,1));var c=o.tokens[0],h=t[f];for(var p=0;p<h.length;p++){var d=t[f][p];if(typeof d.name==\"function\"&&d.name(c)||d.name===c.name){l=d;break}}if(c.name===\"EOF\")break;if(c.value===\"\")throw\"Encountered empty string lexical rule.\";a.push({type:l===null?\"text\":typeof l.token==\"function\"?l.token(c.value):l.token,value:c.value}),l&&l.next&&l.next(s)}catch(v){if(v instanceof u.ParseException){var m=0;for(var g=0;g<a.length;g++)m+=a[g].value.length;return a.push({type:\"text\",value:n.substring(m)}),{tokens:a,state:JSON.stringify([\"start\"])}}throw v}}return{tokens:a,state:JSON.stringify(s)}}}},{}],\"/node_modules/xqlint/lib/lexers/xquery_lexer.js\":[function(e,t,n){\"use strict\";var r=e(\"./XQueryTokenizer\").XQueryTokenizer,i=e(\"./lexer\").Lexer,s=\"after|ancestor|ancestor-or-self|and|as|ascending|attribute|before|case|cast|castable|child|collation|comment|copy|count|declare|default|delete|descendant|descendant-or-self|descending|div|document|document-node|element|else|empty|empty-sequence|end|eq|every|except|first|following|following-sibling|for|function|ge|group|gt|idiv|if|import|insert|instance|intersect|into|is|item|last|le|let|lt|mod|modify|module|namespace|namespace-node|ne|node|only|or|order|ordered|parent|preceding|preceding-sibling|processing-instruction|rename|replace|return|satisfies|schema-attribute|schema-element|self|some|stable|start|switch|text|to|treat|try|typeswitch|union|unordered|validate|where|with|xquery|contains|paragraphs|sentences|times|words|by|collectionreturn|variable|version|option|when|encoding|toswitch|catch|tumbling|sliding|window|at|using|stemming|collection|schema|while|on|nodes|index|external|then|in|updating|value|of|containsbreak|loop|continue|exit|returning|append|json|position|strict\".split(\"|\"),o=s.map(function(e){return{name:\"'\"+e+\"'\",token:\"keyword\"}}),u=s.map(function(e){return{name:\"'\"+e+\"'\",token:\"text\",next:function(e){e.pop()}}}),a=\"constant.language\",f=\"constant\",l=\"comment\",c=\"xml-pe\",h=\"constant.buildin\",p=function(e){return\"'\"+e+\"'\"},d={start:[{name:p(\"(#\"),token:h,next:function(e){e.push(\"Pragma\")}},{name:p(\"(:\"),token:\"comment\",next:function(e){e.push(\"Comment\")}},{name:p(\"(:~\"),token:\"comment.doc\",next:function(e){e.push(\"CommentDoc\")}},{name:p(\"<!--\"),token:l,next:function(e){e.push(\"XMLComment\")}},{name:p(\"<?\"),token:c,next:function(e){e.push(\"PI\")}},{name:p(\"''\"),token:\"string\",next:function(e){e.push(\"AposString\")}},{name:p('\"'),token:\"string\",next:function(e){e.push(\"QuotString\")}},{name:\"Annotation\",token:\"support.function\"},{name:\"ModuleDecl\",token:\"keyword\",next:function(e){e.push(\"Prefix\")}},{name:\"OptionDecl\",token:\"keyword\",next:function(e){e.push(\"_EQName\")}},{name:\"AttrTest\",token:\"support.type\"},{name:\"Variable\",token:\"variable\"},{name:p(\"<![CDATA[\"),token:a,next:function(e){e.push(\"CData\")}},{name:\"IntegerLiteral\",token:f},{name:\"DecimalLiteral\",token:f},{name:\"DoubleLiteral\",token:f},{name:\"Operator\",token:\"keyword.operator\"},{name:\"EQName\",token:function(e){return s.indexOf(e)!==-1?\"keyword\":\"support.function\"}},{name:p(\"(\"),token:\"lparen\"},{name:p(\")\"),token:\"rparen\"},{name:\"Tag\",token:\"meta.tag\",next:function(e){e.push(\"StartTag\")}},{name:p(\"}\"),token:\"text\",next:function(e){e.length>1&&e.pop()}},{name:p(\"{\"),token:\"text\",next:function(e){e.push(\"start\")}}].concat(o),_EQName:[{name:\"EQName\",token:\"text\",next:function(e){e.pop()}}].concat(u),Prefix:[{name:\"NCName\",token:\"text\",next:function(e){e.pop()}}].concat(u),StartTag:[{name:p(\">\"),token:\"meta.tag\",next:function(e){e.push(\"TagContent\")}},{name:\"QName\",token:\"entity.other.attribute-name\"},{name:p(\"=\"),token:\"text\"},{name:p(\"''\"),token:\"string\",next:function(e){e.push(\"AposAttr\")}},{name:p('\"'),token:\"string\",next:function(e){e.push(\"QuotAttr\")}},{name:p(\"/>\"),token:\"meta.tag.r\",next:function(e){e.pop()}}],TagContent:[{name:\"ElementContentChar\",token:\"text\"},{name:p(\"<![CDATA[\"),token:a,next:function(e){e.push(\"CData\")}},{name:p(\"<!--\"),token:l,next:function(e){e.push(\"XMLComment\")}},{name:\"Tag\",token:\"meta.tag\",next:function(e){e.push(\"StartTag\")}},{name:\"PredefinedEntityRef\",token:\"constant.language.escape\"},{name:\"CharRef\",token:\"constant.language.escape\"},{name:p(\"{{\"),token:\"text\"},{name:p(\"}}\"),token:\"text\"},{name:p(\"{\"),token:\"text\",next:function(e){e.push(\"start\")}},{name:\"EndTag\",token:\"meta.tag\",next:function(e){e.pop(),e.pop()}}],AposAttr:[{name:p(\"''\"),token:\"string\",next:function(e){e.pop()}},{name:\"EscapeApos\",token:\"constant.language.escape\"},{name:\"AposAttrContentChar\",token:\"string\"},{name:\"PredefinedEntityRef\",token:\"constant.language.escape\"},{name:\"CharRef\",token:\"constant.language.escape\"},{name:p(\"{{\"),token:\"string\"},{name:p(\"}}\"),token:\"string\"},{name:p(\"{\"),token:\"text\",next:function(e){e.push(\"start\")}}],QuotAttr:[{name:p('\"'),token:\"string\",next:function(e){e.pop()}},{name:\"EscapeQuot\",token:\"constant.language.escape\"},{name:\"QuotAttrContentChar\",token:\"string\"},{name:\"PredefinedEntityRef\",token:\"constant.language.escape\"},{name:\"CharRef\",token:\"constant.language.escape\"},{name:p(\"{{\"),token:\"string\"},{name:p(\"}}\"),token:\"string\"},{name:p(\"{\"),token:\"text\",next:function(e){e.push(\"start\")}}],Pragma:[{name:\"PragmaContents\",token:h},{name:p(\"#\"),token:h},{name:p(\"#)\"),token:h,next:function(e){e.pop()}}],Comment:[{name:\"CommentContents\",token:\"comment\"},{name:p(\"(:\"),token:\"comment\",next:function(e){e.push(\"Comment\")}},{name:p(\":)\"),token:\"comment\",next:function(e){e.pop()}}],CommentDoc:[{name:\"DocCommentContents\",token:\"comment.doc\"},{name:\"DocTag\",token:\"comment.doc.tag\"},{name:p(\"(:\"),token:\"comment.doc\",next:function(e){e.push(\"CommentDoc\")}},{name:p(\":)\"),token:\"comment.doc\",next:function(e){e.pop()}}],XMLComment:[{name:\"DirCommentContents\",token:l},{name:p(\"-->\"),token:l,next:function(e){e.pop()}}],CData:[{name:\"CDataSectionContents\",token:a},{name:p(\"]]>\"),token:a,next:function(e){e.pop()}}],PI:[{name:\"DirPIContents\",token:c},{name:p(\"?\"),token:c},{name:p(\"?>\"),token:c,next:function(e){e.pop()}}],AposString:[{name:p(\"''\"),token:\"string\",next:function(e){e.pop()}},{name:\"PredefinedEntityRef\",token:\"constant.language.escape\"},{name:\"CharRef\",token:\"constant.language.escape\"},{name:\"EscapeApos\",token:\"constant.language.escape\"},{name:\"AposChar\",token:\"string\"}],QuotString:[{name:p('\"'),token:\"string\",next:function(e){e.pop()}},{name:\"PredefinedEntityRef\",token:\"constant.language.escape\"},{name:\"CharRef\",token:\"constant.language.escape\"},{name:\"EscapeQuot\",token:\"constant.language.escape\"},{name:\"QuotChar\",token:\"string\"}]};n.XQueryLexer=function(){return new i(r,d)}},{\"./XQueryTokenizer\":\"/node_modules/xqlint/lib/lexers/XQueryTokenizer.js\",\"./lexer\":\"/node_modules/xqlint/lib/lexers/lexer.js\"}],\"/node_modules/xqlint/lib/parsers/JSONParseTreeHandler.js\":[function(e,t,n){n.JSONParseTreeHandler=function(e){\"use strict\";function f(e){return{name:e,children:[],getParent:null,pos:{sl:0,sc:0,el:0,ec:0}}}function l(e){var t=f(e);r===null?(r=t,r.index=[],i=t):(t.getParent=i,i.children.push(t),i=i.children[i.children.length-1])}function c(){if(i.children.length>0){var e=i.children[0],s=null;for(var o=i.children.length-1;o>=0;o--){s=i.children[o];if(s.pos.el!==0||s.pos.ec!==0)break}i.pos.sl=e.pos.sl,i.pos.sc=e.pos.sc,i.pos.el=s.pos.el,i.pos.ec=s.pos.ec}i.name===\"FunctionName\"&&(i.name=\"EQName\"),i.name===\"EQName\"&&i.value===undefined&&(i.value=i.children[0].value,i.children.pop()),t.indexOf(i.name)!==-1&&r.index.push(i),i.getParent!==null&&(i=i.getParent);if(i.children.length>0){var u=i.children[i.children.length-1];u.children.length===1&&n.indexOf(u.name)!==-1&&(i.children[i.children.length-1]=u.children[0])}}function h(e,t,n){var r=n-o;i.value=s.substring(0,r),s=s.substring(r),o=n;var f=a,l=u,c=f+i.value.split(\"\\n\").length-1,h=i.value.lastIndexOf(\"\\n\"),p=h===-1?l+i.value.length:i.value.substring(h+1).length;a=c,u=p,i.pos.sl=f,i.pos.sc=l,i.pos.el=c,i.pos.ec=p}var t=[\"VarDecl\",\"FunctionDecl\"],n=[\"OrExpr\",\"AndExpr\",\"ComparisonExpr\",\"StringConcatExpr\",\"RangeExpr\",\"AdditiveExpr\",\"MultiplicativeExpr\",\"UnionExpr\",\"IntersectExceptExpr\",\"InstanceofExpr\",\"TreatExpr\",\"CastableExpr\",\"CastExpr\",\"UnaryExpr\",\"ValueExpr\",\"FTContainsExpr\",\"SimpleMapExpr\",\"PathExpr\",\"RelativePathExpr\",\"PostfixExpr\",\"StepExpr\"],r=null,i=null,s=e,o=0,u=0,a=0;this.closeParseTree=function(){while(i.getParent!==null)c();c()},this.peek=function(){return i},this.getParseTree=function(){return r},this.reset=function(){},this.startNonterminal=function(e,t){l(e,t)},this.endNonterminal=function(){c()},this.terminal=function(e,t,n){e=e.substring(0,1)===\"'\"&&e.substring(e.length-1)===\"'\"?\"TOKEN\":e,l(e,t),h(i,t,n),c()},this.whitespace=function(e,t){var n=\"WS\";l(n,e),h(i,e,t),c()}}},{}],\"/node_modules/xqlint/lib/parsers/JSONiqParser.js\":[function(e,t,n){var r=n.JSONiqParser=function i(e,t){function r(e,t){ic=t,ac=e,fc=e.length,s(0,0,0)}function s(e,t,n){Xl=t,Vl=t,$l=e,Jl=t,Kl=n,Ql=0,cc=n,ec=-1,sc={},ic.reset(ac)}function o(){ic.startNonterminal(\"Module\",Vl);switch($l){case 170:ql(168);break;default:Wl=$l}(Wl==64682||Wl==137898)&&u(),Il(277);switch($l){case 185:ql(146);break;default:Wl=$l}switch(Wl){case 95929:jl(),a();break;default:jl(),Za()}ic.endNonterminal(\"Module\",Vl)}function u(){ic.startNonterminal(\"VersionDecl\",Vl),Pl(170),Il(120);switch($l){case 126:Pl(126),Il(17),Pl(11);break;default:Pl(269),Il(17),Pl(11),Il(113),$l==126&&(Pl(126),Il(17),Pl(11))}Il(29),jl(),c(),ic.endNonterminal(\"VersionDecl\",Vl)}function a(){ic.startNonterminal(\"LibraryModule\",Vl),f(),Il(142),jl(),l(),ic.endNonterminal(\"LibraryModule\",Vl)}function f(){ic.startNonterminal(\"ModuleDecl\",Vl),Pl(185),Il(64),Pl(187),Il(239),jl(),Ga(),Il(30),Pl(61),Il(15),Pl(7),Il(29),jl(),c(),ic.endNonterminal(\"ModuleDecl\",Vl)}function l(){ic.startNonterminal(\"Prolog\",Vl);for(;;){Il(277);switch($l){case 109:ql(206);break;case 155:ql(169);break;default:Wl=$l}if(Wl!=43117&&Wl!=44141&&Wl!=50797&&Wl!=53869&&Wl!=54893&&Wl!=56429&&Wl!=73325&&Wl!=94875&&Wl!=95853&&Wl!=106093&&Wl!=115821&&Wl!=117403)break;switch($l){case 109:ql(200);break;default:Wl=$l}if(Wl==56429){Wl=uc(0,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{_(),Wl=-1}catch(a){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(0,Vl,Wl)}}switch(Wl){case-1:jl(),M();break;case 95853:jl(),O();break;case 155:jl(),C();break;case 73325:jl(),D();break;default:jl(),h()}Il(29),jl(),c()}for(;;){Il(277);switch($l){case 109:ql(201);break;default:Wl=$l}if(Wl!=17005&&Wl!=49261&&Wl!=52333&&Wl!=75373&&Wl!=80493&&Wl!=83565&&Wl!=104045&&Wl!=134765&&Wl!=137325)break;switch($l){case 109:ql(197);break;default:Wl=$l}switch(Wl){case 52333:jl(),R();break;case 104045:jl(),Q();break;default:jl(),P()}Il(29),jl(),c()}ic.endNonterminal(\"Prolog\",Vl)}function c(){ic.startNonterminal(\"Separator\",Vl),Pl(54),ic.endNonterminal(\"Separator\",Vl)}function h(){ic.startNonterminal(\"Setter\",Vl);switch($l){case 109:ql(194);break;default:Wl=$l}if(Wl==56429){Wl=uc(1,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{v(),Wl=-2}catch(a){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),w(),Wl=-6}catch(f){Wl=-9}}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(1,Vl,Wl)}}switch(Wl){case 44141:p();break;case-2:d();break;case 43117:m();break;case 50797:g();break;case 106093:y();break;case-6:b();break;case 115821:Io();break;case 53869:E();break;default:T()}ic.endNonterminal(\"Setter\",Vl)}function p(){ic.startNonterminal(\"BoundarySpaceDecl\",Vl),Pl(109),Il(36),Pl(86),Il(137);switch($l){case 218:Pl(218);break;default:Pl(246)}ic.endNonterminal(\"BoundarySpaceDecl\",Vl)}function d(){ic.startNonterminal(\"DefaultCollationDecl\",Vl),Pl(109),Il(49),Pl(110),Il(41),Pl(95),Il(15),Pl(7),ic.endNonterminal(\"DefaultCollationDecl\",Vl)}function v(){Hl(109),Il(49),Hl(110),Il(41),Hl(95),Il(15),Hl(7)}function m(){ic.startNonterminal(\"BaseURIDecl\",Vl),Pl(109),Il(35),Pl(84),Il(15),Pl(7),ic.endNonterminal(\"BaseURIDecl\",Vl)}function g(){ic.startNonterminal(\"ConstructionDecl\",Vl),Pl(109),Il(44),Pl(99),Il(137);switch($l){case 246:Pl(246);break;default:Pl(218)}ic.endNonterminal(\"ConstructionDecl\",Vl)}function y(){ic.startNonterminal(\"OrderingModeDecl\",Vl),Pl(109),Il(71),Pl(207),Il(135);switch($l){case 206:Pl(206);break;default:Pl(262)}ic.endNonterminal(\"OrderingModeDecl\",Vl)}function b(){ic.startNonterminal(\"EmptyOrderDecl\",Vl),Pl(109),Il(49),Pl(110),Il(70),Pl(205),Il(52),Pl(124),Il(125);switch($l){case 149:Pl(149);break;default:Pl(176)}ic.endNonterminal(\"EmptyOrderDecl\",Vl)}function w(){Hl(109),Il(49),Hl(110),Il(70),Hl(205),Il(52),Hl(124),Il(125);switch($l){case 149:Hl(149);break;default:Hl(176)}}function E(){ic.startNonterminal(\"CopyNamespacesDecl\",Vl),Pl(109),Il(47),Pl(105),Il(132),jl(),S(),Il(25),Pl(42),Il(127),jl(),x(),ic.endNonterminal(\"CopyNamespacesDecl\",Vl)}function S(){ic.startNonterminal(\"PreserveMode\",Vl);switch($l){case 218:Pl(218);break;default:Pl(193)}ic.endNonterminal(\"PreserveMode\",Vl)}function x(){ic.startNonterminal(\"InheritMode\",Vl);switch($l){case 159:Pl(159);break;default:Pl(192)}ic.endNonterminal(\"InheritMode\",Vl)}function T(){ic.startNonterminal(\"DecimalFormatDecl\",Vl),Pl(109),Il(118);switch($l){case 107:Pl(107),Il(245),jl(),$a();break;default:Pl(110),Il(48),Pl(107)}for(;;){Il(203);if($l==54)break;jl(),N(),Il(30),Pl(61),Il(17),Pl(11)}ic.endNonterminal(\"DecimalFormatDecl\",Vl)}function N(){ic.startNonterminal(\"DFPropertyName\",Vl);switch($l){case 108:Pl(108);break;case 151:Pl(151);break;case 158:Pl(158);break;case 182:Pl(182);break;case 68:Pl(68);break;case 213:Pl(213);break;case 212:Pl(212);break;case 280:Pl(280);break;case 117:Pl(117);break;default:Pl(211)}ic.endNonterminal(\"DFPropertyName\",Vl)}function C(){ic.startNonterminal(\"Import\",Vl);switch($l){case 155:ql(130);break;default:Wl=$l}switch(Wl){case 117403:k();break;default:A()}ic.endNonterminal(\"Import\",Vl)}function k(){ic.startNonterminal(\"SchemaImport\",Vl),Pl(155),Il(76),Pl(229),Il(141),$l!=7&&(jl(),L()),Il(15),Pl(7),Il(112);if($l==82){Pl(82),Il(15),Pl(7);for(;;){Il(107);if($l!=42)break;Pl(42),Il(15),Pl(7)}}ic.endNonterminal(\"SchemaImport\",Vl)}function L(){ic.startNonterminal(\"SchemaPrefix\",Vl);switch($l){case 187:Pl(187),Il(239),jl(),Ga(),Il(30),Pl(61);break;default:Pl(110),Il(50),Pl(122),Il(64),Pl(187)}ic.endNonterminal(\"SchemaPrefix\",Vl)}function A(){ic.startNonterminal(\"ModuleImport\",Vl),Pl(155),Il(63),Pl(185),Il(93),$l==187&&(Pl(187),Il(239),jl(),Ga(),Il(30),Pl(61)),Il(15),Pl(7),Il(112);if($l==82){Pl(82),Il(15),Pl(7);for(;;){Il(107);if($l!=42)break;Pl(42),Il(15),Pl(7)}}ic.endNonterminal(\"ModuleImport\",Vl)}function O(){ic.startNonterminal(\"NamespaceDecl\",Vl),Pl(109),Il(64),Pl(187),Il(239),jl(),Ga(),Il(30),Pl(61),Il(15),Pl(7),ic.endNonterminal(\"NamespaceDecl\",Vl)}function M(){ic.startNonterminal(\"DefaultNamespaceDecl\",Vl),Pl(109),Il(49),Pl(110),Il(119);switch($l){case 122:Pl(122);break;default:Pl(147)}Il(64),Pl(187),Il(15),Pl(7),ic.endNonterminal(\"DefaultNamespaceDecl\",Vl)}function _(){Hl(109),Il(49),Hl(110),Il(119);switch($l){case 122:Hl(122);break;default:Hl(147)}Il(64),Hl(187),Il(15),Hl(7)}function D(){ic.startNonterminal(\"FTOptionDecl\",Vl),Pl(109),Il(55),Pl(143),Il(84),jl(),Qu(),ic.endNonterminal(\"FTOptionDecl\",Vl)}function P(){ic.startNonterminal(\"AnnotatedDecl\",Vl),Pl(109);for(;;){Il(192);if($l!=33&&$l!=263)break;switch($l){case 263:jl(),H();break;default:jl(),B()}}switch($l){case 268:jl(),F();break;case 147:jl(),_l();break;case 96:jl(),Ca();break;case 157:jl(),Ha();break;default:jl(),Ba()}ic.endNonterminal(\"AnnotatedDecl\",Vl)}function H(){ic.startNonterminal(\"CompatibilityAnnotation\",Vl),Pl(263),ic.endNonterminal(\"CompatibilityAnnotation\",Vl)}function B(){ic.startNonterminal(\"Annotation\",Vl),Pl(33),Il(245),jl(),$a(),Il(193);if($l==35){Pl(35),Il(190),jl(),di();for(;;){Il(105);if($l!=42)break;Pl(42),Il(190),jl(),di()}Pl(38)}ic.endNonterminal(\"Annotation\",Vl)}function j(){Hl(33),Il(245),Ja(),Il(193);if($l==35){Hl(35),Il(190),vi();for(;;){Il(105);if($l!=42)break;Hl(42),Il(190),vi()}Hl(38)}}function F(){ic.startNonterminal(\"VarDecl\",Vl),Pl(268),Il(21),Pl(31),Il(245),jl(),Ti(),Il(157),$l==80&&(jl(),Cs()),Il(110);switch($l){case 53:Pl(53),Il(266),jl(),I();break;default:Pl(134),Il(108),$l==53&&(Pl(53),Il(266),jl(),q())}ic.endNonterminal(\"VarDecl\",Vl)}function I(){ic.startNonterminal(\"VarValue\",Vl),Wf(),ic.endNonterminal(\"VarValue\",Vl)}function q(){ic.startNonterminal(\"VarDefaultValue\",Vl),Wf(),ic.endNonterminal(\"VarDefaultValue\",Vl)}function R(){ic.startNonterminal(\"ContextItemDecl\",Vl),Pl(109),Il(46),Pl(102),Il(58),Pl(167),Il(157),$l==80&&(Pl(80),Il(253),jl(),_s()),Il(110);switch($l){case 53:Pl(53),Il(266),jl(),I();break;default:Pl(134),Il(108),$l==53&&(Pl(53),Il(266),jl(),q())}ic.endNonterminal(\"ContextItemDecl\",Vl)}function U(){ic.startNonterminal(\"ParamList\",Vl),W();for(;;){Il(105);if($l!=42)break;Pl(42),Il(21),jl(),W()}ic.endNonterminal(\"ParamList\",Vl)}function z(){X();for(;;){Il(105);if($l!=42)break;Hl(42),Il(21),X()}}function W(){ic.startNonterminal(\"Param\",Vl),Pl(31),Il(245),jl(),$a(),Il(153),$l==80&&(jl(),Cs()),ic.endNonterminal(\"Param\",Vl)}function X(){Hl(31),Il(245),Ja(),Il(153),$l==80&&ks()}function V(){ic.startNonterminal(\"FunctionBody\",Vl),J(),ic.endNonterminal(\"FunctionBody\",Vl)}function $(){K()}function J(){ic.startNonterminal(\"EnclosedExpr\",Vl),Pl(281),Il(266),jl(),G(),Pl(287),ic.endNonterminal(\"EnclosedExpr\",Vl)}function K(){Hl(281),Il(266),Y(),Hl(287)}function Q(){ic.startNonterminal(\"OptionDecl\",Vl),Pl(109),Il(69),Pl(203),Il(245),jl(),$a(),Il(17),Pl(11),ic.endNonterminal(\"OptionDecl\",Vl)}function G(){ic.startNonterminal(\"Expr\",Vl),Wf();for(;;){if($l!=42)break;Pl(42),Il(266),jl(),Wf()}ic.endNonterminal(\"Expr\",Vl)}function Y(){Xf();for(;;){if($l!=42)break;Hl(42),Il(266),Xf()}}function Z(){ic.startNonterminal(\"FLWORExpr\",Vl),tt();for(;;){Il(195);if($l==224)break;jl(),rt()}jl(),rn(),ic.endNonterminal(\"FLWORExpr\",Vl)}function et(){nt();for(;;){Il(195);if($l==224)break;it()}sn()}function tt(){ic.startNonterminal(\"InitialClause\",Vl);switch($l){case 139:ql(151);break;default:Wl=$l}switch(Wl){case 16011:st();break;case 177:vt();break;default:bt()}ic.endNonterminal(\"InitialClause\",Vl)}function nt(){switch($l){case 139:ql(151);break;default:Wl=$l}switch(Wl){case 16011:ot();break;case 177:mt();break;default:wt()}}function rt(){ic.startNonterminal(\"IntermediateClause\",Vl);switch($l){case 139:case 177:tt();break;case 272:It();break;case 150:Rt();break;case 106:jt();break;default:Kt()}ic.endNonterminal(\"IntermediateClause\",Vl)}function it(){switch($l){case 139:case 177:nt();break;case 272:qt();break;case 150:Ut();break;case 106:Ft();break;default:Qt()}}function st(){ic.startNonterminal(\"ForClause\",Vl),Pl(139),Il(21),jl(),ut();for(;;){if($l!=42)break;Pl(42),Il(21),jl(),ut()}ic.endNonterminal(\"ForClause\",Vl)}function ot(){Hl(139),Il(21),at();for(;;){if($l!=42)break;Hl(42),Il(21),at()}}function ut(){ic.startNonterminal(\"ForBinding\",Vl),Pl(31),Il(245),jl(),Ti(),Il(182),$l==80&&(jl(),Cs()),Il(173),$l==73&&(jl(),ft()),Il(160),$l==82&&(jl(),ct()),Il(126),$l==232&&(jl(),pt()),Il(56),Pl(156),Il(266),jl(),Wf(),ic.endNonterminal(\"ForBinding\",Vl)}function at(){Hl(31),Il(245),Ni(),Il(182),$l==80&&ks(),Il(173),$l==73&&lt(),Il(160),$l==82&&ht(),Il(126),$l==232&&dt(),Il(56),Hl(156),Il(266),Xf()}function ft(){ic.startNonterminal(\"AllowingEmpty\",Vl),Pl(73),Il(52),Pl(124),ic.endNonterminal(\"AllowingEmpty\",Vl)}function lt(){Hl(73),Il(52),Hl(124)}function ct(){ic.startNonterminal(\"PositionalVar\",Vl),Pl(82),Il(21),Pl(31),Il(245),jl(),Ti(),ic.endNonterminal(\"PositionalVar\",Vl)}function ht(){Hl(82),Il(21),Hl(31),Il(245),Ni()}function pt(){ic.startNonterminal(\"FTScoreVar\",Vl),Pl(232),Il(21),Pl(31),Il(245),jl(),Ti(),ic.endNonterminal(\"FTScoreVar\",Vl)}function dt(){Hl(232),Il(21),Hl(31),Il(245),Ni()}function vt(){ic.startNonterminal(\"LetClause\",Vl),Pl(177),Il(100),jl(),gt();for(;;){if($l!=42)break;Pl(42),Il(100),jl(),gt()}ic.endNonterminal(\"LetClause\",Vl)}function mt(){Hl(177),Il(100),yt();for(;;){if($l!=42)break;Hl(42),Il(100),yt()}}function gt(){ic.startNonterminal(\"LetBinding\",Vl);switch($l){case 31:Pl(31),Il(245),jl(),Ti(),Il(109),$l==80&&(jl(),Cs());break;default:pt()}Il(28),Pl(53),Il(266),jl(),Wf(),ic.endNonterminal(\"LetBinding\",Vl)}function yt(){switch($l){case 31:Hl(31),Il(245),Ni(),Il(109),$l==80&&ks();break;default:dt()}Il(28),Hl(53),Il(266),Xf()}function bt(){ic.startNonterminal(\"WindowClause\",Vl),Pl(139),Il(139);switch($l){case 257:jl(),Et();break;default:jl(),xt()}ic.endNonterminal(\"WindowClause\",Vl)}function wt(){Hl(139),Il(139);switch($l){case 257:St();break;default:Tt()}}function Et(){ic.startNonterminal(\"TumblingWindowClause\",Vl),Pl(257),Il(88),Pl(275),Il(21),Pl(31),Il(245),jl(),Ti(),Il(114),$l==80&&(jl(),Cs()),Il(56),Pl(156),Il(266),jl(),Wf(),jl(),Nt();if($l==127||$l==202)jl(),kt();ic.endNonterminal(\"TumblingWindowClause\",Vl)}function St(){Hl(257),Il(88),Hl(275),Il(21),Hl(31),Il(245),Ni(),Il(114),$l==80&&ks(),Il(56),Hl(156),Il(266),Xf(),Ct(),($l==127||$l==202)&&Lt()}function xt(){ic.startNonterminal(\"SlidingWindowClause\",Vl),Pl(239),Il(88),Pl(275),Il(21),Pl(31),Il(245),jl(),Ti(),Il(114),$l==80&&(jl(),Cs()),Il(56),Pl(156),Il(266),jl(),Wf(),jl(),Nt(),jl(),kt(),ic.endNonterminal(\"SlidingWindowClause\",Vl)}function Tt(){Hl(239),Il(88),Hl(275),Il(21),Hl(31),Il(245),Ni(),Il(114),$l==80&&ks(),Il(56),Hl(156),Il(266),Xf(),Ct(),Lt()}function Nt(){ic.startNonterminal(\"WindowStartCondition\",Vl),Pl(242),Il(181),jl(),At(),Il(86),Pl(271),Il(266),jl(),Wf(),ic.endNonterminal(\"WindowStartCondition\",Vl)}function Ct(){Hl(242),Il(181),Ot(),Il(86),Hl(271),Il(266),Xf()}function kt(){ic.startNonterminal(\"WindowEndCondition\",Vl),$l==202&&Pl(202),Il(53),Pl(127),Il(181),jl(),At(),Il(86),Pl(271),Il(266),jl(),Wf(),ic.endNonterminal(\"WindowEndCondition\",Vl)}function Lt(){$l==202&&Hl(202),Il(53),Hl(127),Il(181),Ot(),Il(86),Hl(271),Il(266),Xf()}function At(){ic.startNonterminal(\"WindowVars\",Vl),$l==31&&(Pl(31),Il(245),jl(),Mt()),Il(174),$l==82&&(jl(),ct()),Il(163),$l==219&&(Pl(219),Il(21),Pl(31),Il(245),jl(),Dt()),Il(131),$l==190&&(Pl(190),Il(21),Pl(31),Il(245),jl(),Ht()),ic.endNonterminal(\"WindowVars\",Vl)}function Ot(){$l==31&&(Hl(31),Il(245),_t()),Il(174),$l==82&&ht(),Il(163),$l==219&&(Hl(219),Il(21),Hl(31),Il(245),Pt()),Il(131),$l==190&&(Hl(190),Il(21),Hl(31),Il(245),Bt())}function Mt(){ic.startNonterminal(\"CurrentItem\",Vl),$a(),ic.endNonterminal(\"CurrentItem\",Vl)}function _t(){Ja()}function Dt(){ic.startNonterminal(\"PreviousItem\",Vl),$a(),ic.endNonterminal(\"PreviousItem\",Vl)}function Pt(){Ja()}function Ht(){ic.startNonterminal(\"NextItem\",Vl),$a(),ic.endNonterminal(\"NextItem\",Vl)}function Bt(){Ja()}function jt(){ic.startNonterminal(\"CountClause\",Vl),Pl(106),Il(21),Pl(31),Il(245),jl(),Ti(),ic.endNonterminal(\"CountClause\",Vl)}function Ft(){Hl(106),Il(21),Hl(31),Il(245),Ni()}function It(){ic.startNonterminal(\"WhereClause\",Vl),Pl(272),Il(266),jl(),Wf(),ic.endNonterminal(\"WhereClause\",Vl)}function qt(){Hl(272),Il(266),Xf()}function Rt(){ic.startNonterminal(\"GroupByClause\",Vl),Pl(150),Il(37),Pl(88),Il(266),jl(),zt(),ic.endNonterminal(\"GroupByClause\",Vl)}function Ut(){Hl(150),Il(37),Hl(88),Il(266),Wt()}function zt(){ic.startNonterminal(\"GroupingSpecList\",Vl),Xt();for(;;){Il(198);if($l!=42)break;Pl(42),Il(266),jl(),Xt()}ic.endNonterminal(\"GroupingSpecList\",Vl)}function Wt(){Vt();for(;;){Il(198);if($l!=42)break;Hl(42),Il(266),Vt()}}function Xt(){ic.startNonterminal(\"GroupingSpec\",Vl);switch($l){case 31:ql(245);break;default:Wl=$l}if(Wl==3103||Wl==36383||Wl==37407||Wl==37919||Wl==38431||Wl==38943||Wl==39967||Wl==40479||Wl==40991||Wl==41503||Wl==42015||Wl==42527||Wl==43039||Wl==43551||Wl==44063||Wl==44575||Wl==45599||Wl==46111||Wl==46623||Wl==47135||Wl==48159||Wl==48671||Wl==49695||Wl==50207||Wl==50719||Wl==52255||Wl==52767||Wl==53279||Wl==53791||Wl==54303||Wl==54815||Wl==55839||Wl==56351||Wl==56863||Wl==57375||Wl==57887||Wl==58399||Wl==60959||Wl==61471||Wl==61983||Wl==62495||Wl==63007||Wl==63519||Wl==64031||Wl==64543||Wl==65055||Wl==66079||Wl==66591||Wl==67615||Wl==68127||Wl==68639||Wl==69151||Wl==69663||Wl==70175||Wl==70687||Wl==71199||Wl==72735||Wl==73247||Wl==75295||Wl==75807||Wl==76831||Wl==77855||Wl==78367||Wl==78879||Wl==79391||Wl==79903||Wl==80415||Wl==82463||Wl==82975||Wl==83487||Wl==83999||Wl==84511||Wl==85023||Wl==85535||Wl==86047||Wl==86559||Wl==87071||Wl==88607||Wl==89119||Wl==89631||Wl==90655||Wl==91679||Wl==92703||Wl==93727||Wl==94239||Wl==94751||Wl==95775||Wl==96287||Wl==96799||Wl==99359||Wl==99871||Wl==100895||Wl==101407||Wl==103455||Wl==103967||Wl==104479||Wl==104991||Wl==105503||Wl==106015||Wl==107551||Wl==110623||Wl==111135||Wl==112671||Wl==113695||Wl==114207||Wl==114719||Wl==115231||Wl==115743||Wl==116767||Wl==117279||Wl==117791||Wl==118303||Wl==118815||Wl==119327||Wl==119839||Wl==122399||Wl==122911||Wl==123423||Wl==123935||Wl==125471||Wl==126495||Wl==127007||Wl==127519||Wl==129567||Wl==130079||Wl==130591||Wl==131103||Wl==131615||Wl==132127||Wl==132639||Wl==133151||Wl==134175||Wl==134687||Wl==136223||Wl==136735||Wl==137247||Wl==137759||Wl==139295||Wl==139807||Wl==141343){Wl=uc(2,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Jt(),Il(205);if($l==53||$l==80)$l==80&&ks(),Il(28),Hl(53),Il(266),Xf();$l==95&&(Hl(95),Il(15),Hl(7)),Wl=-1}catch(a){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(2,Vl,Wl)}}switch(Wl){case-1:$t(),Il(205);if($l==53||$l==80)$l==80&&(jl(),Cs()),Il(28),Pl(53),Il(266),jl(),Wf();$l==95&&(Pl(95),Il(15),Pl(7));break;default:Wf()}ic.endNonterminal(\"GroupingSpec\",Vl)}function Vt(){switch($l){case 31:ql(245);break;default:Wl=$l}if(Wl==3103||Wl==36383||Wl==37407||Wl==37919||Wl==38431||Wl==38943||Wl==39967||Wl==40479||Wl==40991||Wl==41503||Wl==42015||Wl==42527||Wl==43039||Wl==43551||Wl==44063||Wl==44575||Wl==45599||Wl==46111||Wl==46623||Wl==47135||Wl==48159||Wl==48671||Wl==49695||Wl==50207||Wl==50719||Wl==52255||Wl==52767||Wl==53279||Wl==53791||Wl==54303||Wl==54815||Wl==55839||Wl==56351||Wl==56863||Wl==57375||Wl==57887||Wl==58399||Wl==60959||Wl==61471||Wl==61983||Wl==62495||Wl==63007||Wl==63519||Wl==64031||Wl==64543||Wl==65055||Wl==66079||Wl==66591||Wl==67615||Wl==68127||Wl==68639||Wl==69151||Wl==69663||Wl==70175||Wl==70687||Wl==71199||Wl==72735||Wl==73247||Wl==75295||Wl==75807||Wl==76831||Wl==77855||Wl==78367||Wl==78879||Wl==79391||Wl==79903||Wl==80415||Wl==82463||Wl==82975||Wl==83487||Wl==83999||Wl==84511||Wl==85023||Wl==85535||Wl==86047||Wl==86559||Wl==87071||Wl==88607||Wl==89119||Wl==89631||Wl==90655||Wl==91679||Wl==92703||Wl==93727||Wl==94239||Wl==94751||Wl==95775||Wl==96287||Wl==96799||Wl==99359||Wl==99871||Wl==100895||Wl==101407||Wl==103455||Wl==103967||Wl==104479||Wl==104991||Wl==105503||Wl==106015||Wl==107551||Wl==110623||Wl==111135||Wl==112671||Wl==113695||Wl==114207||Wl==114719||Wl==115231||Wl==115743||Wl==116767||Wl==117279||Wl==117791||Wl==118303||Wl==118815||Wl==119327||Wl==119839||Wl==122399||Wl==122911||Wl==123423||Wl==123935||Wl==125471||Wl==126495||Wl==127007||Wl==127519||Wl==129567||Wl==130079||Wl==130591||Wl==131103||Wl==131615||Wl==132127||Wl==132639||Wl==133151||Wl==134175||Wl==134687||Wl==136223||Wl==136735||Wl==137247||Wl==137759||Wl==139295||Wl==139807||Wl==141343){Wl=uc(2,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Jt(),Il(205);if($l==53||$l==80)$l==80&&ks(),Il(28),Hl(53),Il(266),Xf();$l==95&&(Hl(95),Il(15),Hl(7)),oc(2,t,-1),Wl=-3}catch(a){Wl=-2,Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(2,t,-2)}}}switch(Wl){case-1:Jt(),Il(205);if($l==53||$l==80)$l==80&&ks(),Il(28),Hl(53),Il(266),Xf();$l==95&&(Hl(95),Il(15),Hl(7));break;case-3:break;default:Xf()}}function $t(){ic.startNonterminal(\"GroupingVariable\",Vl),Pl(31),Il(245),jl(),Ti(),ic.endNonterminal(\"GroupingVariable\",Vl)}function Jt(){Hl(31),Il(245),Ni()}function Kt(){ic.startNonterminal(\"OrderByClause\",Vl);switch($l){case 205:Pl(205),Il(37),Pl(88);break;default:Pl(241),Il(70),Pl(205),Il(37),Pl(88)}Il(266),jl(),Gt(),ic.endNonterminal(\"OrderByClause\",Vl)}function Qt(){switch($l){case 205:Hl(205),Il(37),Hl(88);break;default:Hl(241),Il(70),Hl(205),Il(37),Hl(88)}Il(266),Yt()}function Gt(){ic.startNonterminal(\"OrderSpecList\",Vl),Zt();for(;;){Il(198);if($l!=42)break;Pl(42),Il(266),jl(),Zt()}ic.endNonterminal(\"OrderSpecList\",Vl)}function Yt(){en();for(;;){Il(198);if($l!=42)break;Hl(42),Il(266),en()}}function Zt(){ic.startNonterminal(\"OrderSpec\",Vl),Wf(),jl(),tn(),ic.endNonterminal(\"OrderSpec\",Vl)}function en(){Xf(),nn()}function tn(){ic.startNonterminal(\"OrderModifier\",Vl);if($l==81||$l==114)switch($l){case 81:Pl(81);break;default:Pl(114)}Il(202);if($l==124){Pl(124),Il(125);switch($l){case 149:Pl(149);break;default:Pl(176)}}Il(199),$l==95&&(Pl(95),Il(15),Pl(7)),ic.endNonterminal(\"OrderModifier\",Vl)}function nn(){if($l==81||$l==114)switch($l){case 81:Hl(81);break;default:Hl(114)}Il(202);if($l==124){Hl(124),Il(125);switch($l){case 149:Hl(149);break;default:Hl(176)}}Il(199),$l==95&&(Hl(95),Il(15),Hl(7))}function rn(){ic.startNonterminal(\"ReturnClause\",Vl),Pl(224),Il(266),jl(),Wf(),ic.endNonterminal(\"ReturnClause\",Vl)}function sn(){Hl(224),Il(266),Xf()}function on(){ic.startNonterminal(\"QuantifiedExpr\",Vl);switch($l){case 240:Pl(240);break;default:Pl(130)}Il(21),jl(),an();for(;;){if($l!=42)break;Pl(42),Il(21),jl(),an()}Pl(228),Il(266),jl(),Wf(),ic.endNonterminal(\"QuantifiedExpr\",Vl)}function un(){switch($l){case 240:Hl(240);break;default:Hl(130)}Il(21),fn();for(;;){if($l!=42)break;Hl(42),Il(21),fn()}Hl(228),Il(266),Xf()}function an(){ic.startNonterminal(\"QuantifiedVarDecl\",Vl),Pl(31),Il(245),jl(),Ti(),Il(114),$l==80&&(jl(),Cs()),Il(56),Pl(156),Il(266),jl(),Wf(),ic.endNonterminal(\"QuantifiedVarDecl\",Vl)}function fn(){Hl(31),Il(245),Ni(),Il(114),$l==80&&ks(),Il(56),Hl(156),Il(266),Xf()}function ln(){ic.startNonterminal(\"SwitchExpr\",Vl),Pl(248),Il(22),Pl(35),Il(266),jl(),G(),Pl(38);for(;;){Il(38),jl(),hn();if($l!=89)break}Pl(110),Il(73),Pl(224),Il(266),jl(),Wf(),ic.endNonterminal(\"SwitchExpr\",Vl)}function cn(){Hl(248),Il(22),Hl(35),Il(266),Y(),Hl(38);for(;;){Il(38),pn();if($l!=89)break}Hl(110),Il(73),Hl(224),Il(266),Xf()}function hn(){ic.startNonterminal(\"SwitchCaseClause\",Vl);for(;;){Pl(89),Il(266),jl(),dn();if($l!=89)break}Pl(224),Il(266),jl(),Wf(),ic.endNonterminal(\"SwitchCaseClause\",Vl)}function pn(){for(;;){Hl(89),Il(266),vn();if($l!=89)break}Hl(224),Il(266),Xf()}function dn(){ic.startNonterminal(\"SwitchCaseOperand\",Vl),Wf(),ic.endNonterminal(\"SwitchCaseOperand\",Vl)}function vn(){Xf()}function mn(){ic.startNonterminal(\"TypeswitchExpr\",Vl),Pl(259),Il(22),Pl(35),Il(266),jl(),G(),Pl(38);for(;;){Il(38),jl(),yn();if($l!=89)break}Pl(110),Il(99),$l==31&&(Pl(31),Il(245),jl(),Ti()),Il(73),Pl(224),Il(266),jl(),Wf(),ic.endNonterminal(\"TypeswitchExpr\",Vl)}function gn(){Hl(259),Il(22),Hl(35),Il(266),Y(),Hl(38);for(;;){Il(38),bn();if($l!=89)break}Hl(110),Il(99),$l==31&&(Hl(31),Il(245),Ni()),Il(73),Hl(224),Il(266),Xf()}function yn(){ic.startNonterminal(\"CaseClause\",Vl),Pl(89),Il(257),$l==31&&(Pl(31),Il(245),jl(),Ti(),Il(33),Pl(80)),Il(253),jl(),wn(),Pl(224),Il(266),jl(),Wf(),ic.endNonterminal(\"CaseClause\",Vl)}function bn(){Hl(89),Il(257),$l==31&&(Hl(31),Il(245),Ni(),Il(33),Hl(80)),Il(253),En(),Hl(224),Il(266),Xf()}function wn(){ic.startNonterminal(\"SequenceTypeUnion\",Vl),Ls();for(;;){Il(138);if($l!=284)break;Pl(284),Il(253),jl(),Ls()}ic.endNonterminal(\"SequenceTypeUnion\",Vl)}function En(){As();for(;;){Il(138);if($l!=284)break;Hl(284),Il(253),As()}}function Sn(){ic.startNonterminal(\"IfExpr\",Vl),Pl(154),Il(22),Pl(35),Il(266),jl(),G(),Pl(38),Il(80),Pl(250),Il(266),jl(),Wf(),Pl(123),Il(266),jl(),Wf(),ic.endNonterminal(\"IfExpr\",Vl)}function xn(){Hl(154),Il(22),Hl(35),Il(266),Y(),Hl(38),Il(80),Hl(250),Il(266),Xf(),Hl(123),Il(266),Xf()}function Tn(){ic.startNonterminal(\"TryCatchExpr\",Vl),Cn();for(;;){Il(39),jl(),On(),Il(207);if($l!=92)break}ic.endNonterminal(\"TryCatchExpr\",Vl)}function Nn(){kn();for(;;){Il(39),Mn(),Il(207);if($l!=92)break}}function Cn(){ic.startNonterminal(\"TryClause\",Vl),Pl(256),Il(90),Pl(281),Il(266),jl(),Ln(),Pl(287),ic.endNonterminal(\"TryClause\",Vl)}function kn(){Hl(256),Il(90),Hl(281),Il(266),An(),Hl(287)}function Ln(){ic.startNonterminal(\"TryTargetExpr\",Vl),G(),ic.endNonterminal(\"TryTargetExpr\",Vl)}function An(){Y()}function On(){ic.startNonterminal(\"CatchClause\",Vl),Pl(92),Il(248),jl(),_n(),Pl(281),Il(266),jl(),G(),Pl(287),ic.endNonterminal(\"CatchClause\",Vl)}function Mn(){Hl(92),Il(248),Dn(),Hl(281),Il(266),Y(),Hl(287)}function _n(){ic.startNonterminal(\"CatchErrorList\",Vl),Yr();for(;;){Il(140);if($l!=284)break;Pl(284),Il(248),jl(),Yr()}ic.endNonterminal(\"CatchErrorList\",Vl)}function Dn(){Zr();for(;;){Il(140);if($l!=284)break;Hl(284),Il(248),Zr()}}function Pn(){ic.startNonterminal(\"OrExpr\",Vl),Bn();for(;;){if($l!=204)break;Pl(204),Il(266),jl(),Bn()}ic.endNonterminal(\"OrExpr\",Vl)}function Hn(){jn();for(;;){if($l!=204)break;Hl(204),Il(266),jn()}}function Bn(){ic.startNonterminal(\"AndExpr\",Vl),Fn();for(;;){if($l!=76)break;Pl(76),Il(266),jl(),Fn()}ic.endNonterminal(\"AndExpr\",Vl)}function jn(){In();for(;;){if($l!=76)break;Hl(76),Il(266),In()}}function Fn(){ic.startNonterminal(\"NotExpr\",Vl),$l==196&&Pl(196),Il(265),jl(),qn(),ic.endNonterminal(\"NotExpr\",Vl)}function In(){$l==196&&Hl(196),Il(265),Rn()}function qn(){ic.startNonterminal(\"ComparisonExpr\",Vl),Un();if($l==27||$l==55||$l==58||$l==59||$l==61||$l==62||$l==63||$l==64||$l==129||$l==148||$l==152||$l==166||$l==175||$l==181||$l==189){switch($l){case 129:case 148:case 152:case 175:case 181:case 189:jl(),yr();break;case 58:case 64:case 166:jl(),wr();break;default:jl(),mr()}Il(265),jl(),Un()}ic.endNonterminal(\"ComparisonExpr\",Vl)}function Rn(){zn();if($l==27||$l==55||$l==58||$l==59||$l==61||$l==62||$l==63||$l==64||$l==129||$l==148||$l==152||$l==166||$l==175||$l==181||$l==189){switch($l){case 129:case 148:case 152:case 175:case 181:case 189:br();break;case 58:case 64:case 166:Er();break;default:gr()}Il(265),zn()}}function Un(){ic.startNonterminal(\"FTContainsExpr\",Vl),Wn(),$l==100&&(Pl(100),Il(79),Pl(249),Il(177),jl(),ou(),$l==277&&(jl(),Ta())),ic.endNonterminal(\"FTContainsExpr\",Vl)}function zn(){Xn(),$l==100&&(Hl(100),Il(79),Hl(249),Il(177),uu(),$l==277&&Na())}function Wn(){ic.startNonterminal(\"StringConcatExpr\",Vl),Vn();for(;;){if($l!=285)break;Pl(285),Il(265),jl(),Vn()}ic.endNonterminal(\"StringConcatExpr\",Vl)}function Xn(){$n();for(;;){if($l!=285)break;Hl(285),Il(265),$n()}}function Vn(){ic.startNonterminal(\"RangeExpr\",Vl),Jn(),$l==253&&(Pl(253),Il(265),jl(),Jn()),ic.endNonterminal(\"RangeExpr\",Vl)}function $n(){Kn(),$l==253&&(Hl(253),Il(265),Kn())}function Jn(){ic.startNonterminal(\"AdditiveExpr\",Vl),Qn();for(;;){if($l!=41&&$l!=43)break;switch($l){case 41:Pl(41);break;default:Pl(43)}Il(265),jl(),Qn()}ic.endNonterminal(\"AdditiveExpr\",Vl)}function Kn(){Gn();for(;;){if($l!=41&&$l!=43)break;switch($l){case 41:Hl(41);break;default:Hl(43)}Il(265),Gn()}}function Qn(){ic.startNonterminal(\"MultiplicativeExpr\",Vl),Yn();for(;;){if($l!=39&&$l!=119&&$l!=153&&$l!=183)break;switch($l){case 39:Pl(39);break;case 119:Pl(119);break;case 153:Pl(153);break;default:Pl(183)}Il(265),jl(),Yn()}ic.endNonterminal(\"MultiplicativeExpr\",Vl)}function Gn(){Zn();for(;;){if($l!=39&&$l!=119&&$l!=153&&$l!=183)break;switch($l){case 39:Hl(39);break;case 119:Hl(119);break;case 153:Hl(153);break;default:Hl(183)}Il(265),Zn()}}function Yn(){ic.startNonterminal(\"UnionExpr\",Vl),er();for(;;){if($l!=260&&$l!=284)break;switch($l){case 260:Pl(260);break;default:Pl(284)}Il(265),jl(),er()}ic.endNonterminal(\"UnionExpr\",Vl)}function Zn(){tr();for(;;){if($l!=260&&$l!=284)break;switch($l){case 260:Hl(260);break;default:Hl(284)}Il(265),tr()}}function er(){ic.startNonterminal(\"IntersectExceptExpr\",Vl),nr();for(;;){Il(221);if($l!=132&&$l!=164)break;switch($l){case 164:Pl(164);break;default:Pl(132)}Il(265),jl(),nr()}ic.endNonterminal(\"IntersectExceptExpr\",Vl)}function tr(){rr();for(;;){Il(221);if($l!=132&&$l!=164)break;switch($l){case 164:Hl(164);break;default:Hl(132)}Il(265),rr()}}function nr(){ic.startNonterminal(\"InstanceofExpr\",Vl),ir(),Il(222),$l==162&&(Pl(162),Il(67),Pl(200),Il(253),jl(),Ls()),ic.endNonterminal(\"InstanceofExpr\",Vl)}function rr(){sr(),Il(222),$l==162&&(Hl(162),Il(67),Hl(200),Il(253),As())}function ir(){ic.startNonterminal(\"TreatExpr\",Vl),or(),Il(223),$l==254&&(Pl(254),Il(33),Pl(80),Il(253),jl(),Ls()),ic.endNonterminal(\"TreatExpr\",Vl)}function sr(){ur(),Il(223),$l==254&&(Hl(254),Il(33),Hl(80),Il(253),As())}function or(){ic.startNonterminal(\"CastableExpr\",Vl),ar(),Il(224),$l==91&&(Pl(91),Il(33),Pl(80),Il(245),jl(),Ts()),ic.endNonterminal(\"CastableExpr\",Vl)}function ur(){fr(),Il(224),$l==91&&(Hl(91),Il(33),Hl(80),Il(245),Ns())}function ar(){ic.startNonterminal(\"CastExpr\",Vl),lr(),Il(226),$l==90&&(Pl(90),Il(33),Pl(80),Il(245),jl(),Ts()),ic.endNonterminal(\"CastExpr\",Vl)}function fr(){cr(),Il(226),$l==90&&(Hl(90),Il(33),Hl(80),Il(245),Ns())}function lr(){ic.startNonterminal(\"UnaryExpr\",Vl);for(;;){Il(265);if($l!=41&&$l!=43)break;switch($l){case 43:Pl(43);break;default:Pl(41)}}jl(),hr(),ic.endNonterminal(\"UnaryExpr\",Vl)}function cr(){for(;;){Il(265);if($l!=41&&$l!=43)break;switch($l){case 43:Hl(43);break;default:Hl(41)}}pr()}function hr(){ic.startNonterminal(\"ValueExpr\",Vl);switch($l){case 266:ql(188);break;default:Wl=$l}switch(Wl){case 89354:case 125706:case 132362:case 144138:Sr();break;case 36:Cr();break;default:dr()}ic.endNonterminal(\"ValueExpr\",Vl)}function pr(){switch($l){case 266:ql(188);break;default:Wl=$l}switch(Wl){case 89354:case 125706:case 132362:case 144138:xr();break;case 36:kr();break;default:vr()}}function dr(){ic.startNonterminal(\"SimpleMapExpr\",Vl),Or();for(;;){if($l!=26)break;Pl(26),Il(262),jl(),Or()}ic.endNonterminal(\"SimpleMapExpr\",Vl)}function vr(){Mr();for(;;){if($l!=26)break;Hl(26),Il(262),Mr()}}function mr(){ic.startNonterminal(\"GeneralComp\",Vl);switch($l){case 61:Pl(61);break;case 27:Pl(27);break;case 55:Pl(55);break;case 59:Pl(59);break;case 62:Pl(62);break;default:Pl(63)}ic.endNonterminal(\"GeneralComp\",Vl)}function gr(){switch($l){case 61:Hl(61);break;case 27:Hl(27);break;case 55:Hl(55);break;case 59:Hl(59);break;case 62:Hl(62);break;default:Hl(63)}}function yr(){ic.startNonterminal(\"ValueComp\",Vl);switch($l){case 129:Pl(129);break;case 189:Pl(189);break;case 181:Pl(181);break;case 175:Pl(175);break;case 152:Pl(152);break;default:Pl(148)}ic.endNonterminal(\"ValueComp\",Vl)}function br(){switch($l){case 129:Hl(129);break;case 189:Hl(189);break;case 181:Hl(181);break;case 175:Hl(175);break;case 152:Hl(152);break;default:Hl(148)}}function wr(){ic.startNonterminal(\"NodeComp\",Vl);switch($l){case 166:Pl(166);break;case 58:Pl(58);break;default:Pl(64)}ic.endNonterminal(\"NodeComp\",Vl)}function Er(){switch($l){case 166:Hl(166);break;case 58:Hl(58);break;default:Hl(64)}}function Sr(){ic.startNonterminal(\"ValidateExpr\",Vl),Pl(266),Il(175);if($l!=281)switch($l){case 258:Pl(258),Il(245),jl(),Ao();break;default:jl(),Tr()}Il(90),Pl(281),Il(266),jl(),G(),Pl(287),ic.endNonterminal(\"ValidateExpr\",Vl)}function xr(){Hl(266),Il(175);if($l!=281)switch($l){case 258:Hl(258),Il(245),Oo();break;default:Nr()}Il(90),Hl(281),Il(266),Y(),Hl(287)}function Tr(){ic.startNonterminal(\"ValidationMode\",Vl);switch($l){case 174:Pl(174);break;default:Pl(245)}ic.endNonterminal(\"ValidationMode\",Vl)}function Nr(){switch($l){case 174:Hl(174);break;default:Hl(245)}}function Cr(){ic.startNonterminal(\"ExtensionExpr\",Vl);for(;;){jl(),Lr(),Il(104);if($l!=36)break}Pl(281),Il(274),$l!=287&&(jl(),G()),Pl(287),ic.endNonterminal(\"ExtensionExpr\",Vl)}function kr(){for(;;){Ar(),Il(104);if($l!=36)break}Hl(281),Il(274),$l!=287&&Y(),Hl(287)}function Lr(){ic.startNonterminal(\"Pragma\",Vl),Pl(36),Rl(242),$l==21&&Pl(21),$a(),Rl(10),$l==21&&(Pl(21),Rl(0),Pl(1)),Rl(5),Pl(30),ic.endNonterminal(\"Pragma\",Vl)}function Ar(){Hl(36),Rl(242),$l==21&&Hl(21),Ja(),Rl(10),$l==21&&(Hl(21),Rl(0),Hl(1)),Rl(5),Hl(30)}function Or(){ic.startNonterminal(\"PathExpr\",Vl);switch($l){case 47:Pl(47),Il(288);switch($l){case 25:case 26:case 27:case 38:case 39:case 41:case 42:case 43:case 50:case 54:case 58:case 59:case 61:case 62:case 63:case 64:case 70:case 88:case 100:case 209:case 237:case 252:case 279:case 284:case 285:case 286:case 287:break;default:jl(),_r()}break;case 48:Pl(48),Il(259),jl(),_r();break;default:_r()}ic.endNonterminal(\"PathExpr\",Vl)}function Mr(){switch($l){case 47:Hl(47),Il(288);switch($l){case 25:case 26:case 27:case 38:case 39:case 41:case 42:case 43:case 50:case 54:case 58:case 59:case 61:case 62:case 63:case 64:case 70:case 88:case 100:case 209:case 237:case 252:case 279:case 284:case 285:case 286:case 287:break;default:Dr()}break;case 48:Hl(48),Il(259),Dr();break;default:Dr()}}function _r(){ic.startNonterminal(\"RelativePathExpr\",Vl),ei();for(;;){switch($l){case 26:ql(264);break;default:Wl=$l}if(Wl!=25&&Wl!=27&&Wl!=38&&Wl!=39&&Wl!=41&&Wl!=42&&Wl!=43&&Wl!=47&&Wl!=48&&Wl!=50&&Wl!=54&&Wl!=55&&Wl!=58&&Wl!=59&&Wl!=61&&Wl!=62&&Wl!=63&&Wl!=64&&Wl!=70&&Wl!=71&&Wl!=76&&Wl!=80&&Wl!=81&&Wl!=82&&Wl!=85&&Wl!=88&&Wl!=89&&Wl!=90&&Wl!=91&&Wl!=95&&Wl!=100&&Wl!=106&&Wl!=110&&Wl!=114&&Wl!=119&&Wl!=123&&Wl!=124&&Wl!=127&&Wl!=129&&Wl!=132&&Wl!=139&&Wl!=148&&Wl!=150&&Wl!=152&&Wl!=153&&Wl!=162&&Wl!=164&&Wl!=165&&Wl!=166&&Wl!=175&&Wl!=177&&Wl!=181&&Wl!=183&&Wl!=184&&Wl!=189&&Wl!=202&&Wl!=204&&Wl!=205&&Wl!=209&&Wl!=224&&Wl!=228&&Wl!=237&&Wl!=241&&Wl!=242&&Wl!=252&&Wl!=253&&Wl!=254&&Wl!=260&&Wl!=272&&Wl!=276&&Wl!=279&&Wl!=284&&Wl!=285&&Wl!=286&&Wl!=287&&Wl!=2586&&Wl!=23578&&Wl!=24090&&Wl!=24602&&Wl!=34330){Wl=uc(3,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{switch($l){case 47:Hl(47);break;case 48:Hl(48);break;default:Hl(26)}Il(263),Hr(),Wl=-1}catch(a){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(3,Vl,Wl)}}if(Wl!=-1&&Wl!=47&&Wl!=48&&Wl!=2586&&Wl!=23578&&Wl!=34330)break;switch($l){case 47:Pl(47);break;case 48:Pl(48);break;default:Pl(26)}Il(263),jl(),Pr()}ic.endNonterminal(\"RelativePathExpr\",Vl)}function Dr(){ti();for(;;){switch($l){case 26:ql(264);break;default:Wl=$l}if(Wl!=25&&Wl!=27&&Wl!=38&&Wl!=39&&Wl!=41&&Wl!=42&&Wl!=43&&Wl!=47&&Wl!=48&&Wl!=50&&Wl!=54&&Wl!=55&&Wl!=58&&Wl!=59&&Wl!=61&&Wl!=62&&Wl!=63&&Wl!=64&&Wl!=70&&Wl!=71&&Wl!=76&&Wl!=80&&Wl!=81&&Wl!=82&&Wl!=85&&Wl!=88&&Wl!=89&&Wl!=90&&Wl!=91&&Wl!=95&&Wl!=100&&Wl!=106&&Wl!=110&&Wl!=114&&Wl!=119&&Wl!=123&&Wl!=124&&Wl!=127&&Wl!=129&&Wl!=132&&Wl!=139&&Wl!=148&&Wl!=150&&Wl!=152&&Wl!=153&&Wl!=162&&Wl!=164&&Wl!=165&&Wl!=166&&Wl!=175&&Wl!=177&&Wl!=181&&Wl!=183&&Wl!=184&&Wl!=189&&Wl!=202&&Wl!=204&&Wl!=205&&Wl!=209&&Wl!=224&&Wl!=228&&Wl!=237&&Wl!=241&&Wl!=242&&Wl!=252&&Wl!=253&&Wl!=254&&Wl!=260&&Wl!=272&&Wl!=276&&Wl!=279&&Wl!=284&&Wl!=285&&Wl!=286&&Wl!=287&&Wl!=2586&&Wl!=23578&&Wl!=24090&&Wl!=24602&&Wl!=34330){Wl=uc(3,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{switch($l){case 47:Hl(47);break;case 48:Hl(48);break;default:Hl(26)}Il(263),Hr(),oc(3,t,-1);continue}catch(a){Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(3,t,-2);break}}}if(Wl!=-1&&Wl!=47&&Wl!=48&&Wl!=2586&&Wl!=23578&&Wl!=34330)break;switch($l){case 47:Hl(47);break;case 48:Hl(48);break;default:Hl(26)}Il(263),Hr()}}function Pr(){ic.startNonterminal(\"StepExpr\",Vl);switch($l){case 83:ql(287);break;case 122:ql(286);break;case 187:case 220:ql(284);break;case 135:case 197:case 255:ql(236);break;case 97:case 120:case 206:case 249:case 262:ql(238);break;case 79:case 125:case 154:case 167:case 169:case 247:case 248:case 259:ql(229);break;case 74:case 75:case 94:case 112:case 113:case 137:case 138:case 210:case 216:case 217:case 234:ql(237);break;case 6:case 71:case 73:case 76:case 78:case 80:case 81:case 82:case 84:case 85:case 86:case 87:case 89:case 90:case 91:case 92:case 95:case 98:case 99:case 102:case 103:case 104:case 105:case 106:case 107:case 109:case 110:case 111:case 114:case 119:case 121:case 123:case 124:case 126:case 127:case 129:case 130:case 132:case 133:case 134:case 136:case 139:case 142:case 143:case 147:case 148:case 150:case 152:case 153:case 155:case 156:case 157:case 161:case 162:case 163:case 164:case 165:case 166:case 168:case 170:case 173:case 174:case 175:case 177:case 179:case 181:case 183:case 184:case 185:case 188:case 189:case 194:case 195:case 198:case 202:case 203:case 204:case 205:case 207:case 222:case 223:case 224:case 225:case 226:case 228:case 229:case 230:case 231:case 232:case 233:case 239:case 240:case 241:case 242:case 245:case 253:case 254:case 256:case 257:case 258:case 260:case 263:case 266:case 267:case 268:case 269:case 272:case 273:case 276:ql(233);break;default:Wl=$l}if(Wl==12935||Wl==12997||Wl==13055||Wl==13447||Wl==13509||Wl==13567||Wl==13959||Wl==14021||Wl==14079||Wl==19591||Wl==19653||Wl==19711||Wl==20103||Wl==20165||Wl==20223||Wl==21127||Wl==21189||Wl==21247||Wl==21639||Wl==21701||Wl==21759||Wl==22151||Wl==22213||Wl==22271||Wl==24199||Wl==24261||Wl==24319||Wl==24711||Wl==24773||Wl==24831||Wl==25735||Wl==25797||Wl==25855||Wl==27783||Wl==27845||Wl==27903||Wl==28295||Wl==28357||Wl==28415||Wl==29831||Wl==29893||Wl==29951||Wl==30343||Wl==30405||Wl==30463||Wl==31367||Wl==31429||Wl==31487||Wl==31879||Wl==31941||Wl==31999||Wl==32391||Wl==32453||Wl==32511||Wl==32903||Wl==32965||Wl==33023||Wl==35463||Wl==35525||Wl==35583||Wl==35975||Wl==36037||Wl==36095||Wl==36435||Wl==36474||Wl==36487||Wl==36539||Wl==36549||Wl==36572||Wl==36607||Wl==38995||Wl==39034||Wl==39047||Wl==39099||Wl==39109||Wl==39132||Wl==39167||Wl==41043||Wl==41082||Wl==41095||Wl==41147||Wl==41157||Wl==41180||Wl==41215||Wl==41555||Wl==41594||Wl==41607||Wl==41659||Wl==41669||Wl==41692||Wl==41727||Wl==42067||Wl==42106||Wl==42119||Wl==42171||Wl==42181||Wl==42204||Wl==42239||Wl==43603||Wl==43642||Wl==43655||Wl==43707||Wl==43717||Wl==43740||Wl==43775||Wl==45191||Wl==45253||Wl==45311||Wl==45651||Wl==45690||Wl==45703||Wl==45755||Wl==45765||Wl==45788||Wl==45823||Wl==46163||Wl==46202||Wl==46215||Wl==46267||Wl==46277||Wl==46300||Wl==46335||Wl==46675||Wl==46714||Wl==46727||Wl==46779||Wl==46789||Wl==46812||Wl==46847||Wl==48723||Wl==48762||Wl==48775||Wl==48827||Wl==48837||Wl==48860||Wl==48895||Wl==51335||Wl==51397||Wl==51455||Wl==54355||Wl==54394||Wl==54407||Wl==54459||Wl==54469||Wl==54492||Wl==54527||Wl==56403||Wl==56442||Wl==56455||Wl==56507||Wl==56517||Wl==56540||Wl==56575||Wl==58451||Wl==58490||Wl==58503||Wl==58555||Wl==58565||Wl==58588||Wl==58623||Wl==61011||Wl==61050||Wl==61063||Wl==61115||Wl==61125||Wl==61148||Wl==61183||Wl==63059||Wl==63098||Wl==63111||Wl==63163||Wl==63173||Wl==63196||Wl==63231||Wl==63571||Wl==63610||Wl==63623||Wl==63675||Wl==63685||Wl==63708||Wl==63743||Wl==65107||Wl==65146||Wl==65159||Wl==65211||Wl==65221||Wl==65244||Wl==65279||Wl==66131||Wl==66170||Wl==66183||Wl==66235||Wl==66245||Wl==66268||Wl==66303||Wl==67667||Wl==67706||Wl==67719||Wl==67771||Wl==67781||Wl==67804||Wl==67839||Wl==71251||Wl==71290||Wl==71303||Wl==71355||Wl==71365||Wl==71388||Wl==71423||Wl==75859||Wl==75898||Wl==75911||Wl==75963||Wl==75973||Wl==75996||Wl==76031||Wl==76883||Wl==76922||Wl==76935||Wl==76987||Wl==76997||Wl==77020||Wl==77055||Wl==77907||Wl==77946||Wl==77959||Wl==78011||Wl==78021||Wl==78044||Wl==78079||Wl==78419||Wl==78458||Wl==78471||Wl==78523||Wl==78533||Wl==78556||Wl==78591||Wl==83027||Wl==83066||Wl==83079||Wl==83131||Wl==83141||Wl==83164||Wl==83199||Wl==84051||Wl==84090||Wl==84103||Wl==84155||Wl==84165||Wl==84188||Wl==84223||Wl==84563||Wl==84602||Wl==84615||Wl==84667||Wl==84677||Wl==84700||Wl==84735||Wl==85075||Wl==85114||Wl==85127||Wl==85179||Wl==85189||Wl==85212||Wl==85247||Wl==89683||Wl==89722||Wl==89735||Wl==89787||Wl==89797||Wl==89820||Wl==89855||Wl==90707||Wl==90746||Wl==90759||Wl==90811||Wl==90821||Wl==90844||Wl==90879||Wl==92755||Wl==92794||Wl==92807||Wl==92859||Wl==92869||Wl==92892||Wl==92927||Wl==93779||Wl==93818||Wl==93831||Wl==93883||Wl==93893||Wl==93916||Wl==93951||Wl==94291||Wl==94330||Wl==94343||Wl==94395||Wl==94405||Wl==94428||Wl==94463||Wl==96851||Wl==96890||Wl==96903||Wl==96955||Wl==96965||Wl==96988||Wl==97023||Wl==103507||Wl==103546||Wl==103559||Wl==103611||Wl==103621||Wl==103644||Wl==103679||Wl==104531||Wl==104570||Wl==104583||Wl==104635||Wl==104645||Wl==104668||Wl==104703||Wl==105043||Wl==105082||Wl==105095||Wl==105147||Wl==105157||Wl==105180||Wl==105215||Wl==107143||Wl==107205||Wl==107263||Wl==114771||Wl==114810||Wl==114823||Wl==114875||Wl==114885||Wl==114908||Wl==114943||Wl==116819||Wl==116858||Wl==116871||Wl==116923||Wl==116933||Wl==116956||Wl==116991||Wl==121479||Wl==121541||Wl==121599||Wl==123475||Wl==123514||Wl==123527||Wl==123579||Wl==123589||Wl==123612||Wl==123647||Wl==123987||Wl==124026||Wl==124039||Wl==124091||Wl==124101||Wl==124124||Wl==124159||Wl==129159||Wl==129221||Wl==129279||Wl==129619||Wl==129658||Wl==129671||Wl==129723||Wl==129733||Wl==129756||Wl==129791||Wl==130131||Wl==130170||Wl==130183||Wl==130235||Wl==130245||Wl==130268||Wl==130303||Wl==133203||Wl==133242||Wl==133255||Wl==133307||Wl==133317||Wl==133340||Wl==133375||Wl==139347||Wl==139386||Wl==139399||Wl==139451||Wl==139461||Wl==139484||Wl==139519||Wl==141395||Wl==141434||Wl==141447||Wl==141499||Wl==141509||Wl==141532||Wl==141567||Wl==142983||Wl==143045||Wl==143103||Wl==145543||Wl==145605||Wl==145663||Wl==146055||Wl==146117||Wl==146175||Wl==146567||Wl==146629||Wl==146687||Wl==147079||Wl==147141||Wl==147199){Wl=uc(4,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{ti(),Wl=-1}catch(a){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(4,Vl,Wl)}}switch(Wl){case-1:case 8:case 9:case 10:case 11:case 31:case 32:case 33:case 35:case 55:case 56:case 60:case 69:case 281:case 283:case 3155:case 3194:case 9915:case 9948:case 14854:case 14919:case 14921:case 14922:case 14923:case 14924:case 14926:case 14927:case 14928:case 14929:case 14930:case 14931:case 14932:case 14933:case 14934:case 14935:case 14937:case 14938:case 14939:case 14940:case 14942:case 14943:case 14945:case 14946:case 14947:case 14950:case 14951:case 14952:case 14953:case 14954:case 14955:case 14957:case 14958:case 14959:case 14960:case 14961:case 14962:case 14967:case 14968:case 14969:case 14970:case 14971:case 14972:case 14973:case 14974:case 14975:case 14977:case 14978:case 14980:case 14981:case 14982:case 14983:case 14984:case 14985:case 14986:case 14987:case 14990:case 14991:case 14995:case 14996:case 14998:case 15e3:case 15001:case 15002:case 15003:case 15004:case 15005:case 15009:case 15010:case 15011:case 15012:case 15013:case 15014:case 15015:case 15016:case 15017:case 15018:case 15021:case 15022:case 15023:case 15025:case 15027:case 15029:case 15031:case 15032:case 15033:case 15035:case 15036:case 15037:case 15042:case 15043:case 15045:case 15046:case 15050:case 15051:case 15052:case 15053:case 15054:case 15055:case 15058:case 15064:case 15065:case 15068:case 15070:case 15071:case 15072:case 15073:case 15074:case 15076:case 15077:case 15078:case 15079:case 15080:case 15081:case 15082:case 15087:case 15088:case 15089:case 15090:case 15093:case 15095:case 15096:case 15097:case 15101:case 15102:case 15103:case 15104:case 15105:case 15106:case 15107:case 15108:case 15110:case 15111:case 15114:case 15115:case 15116:case 15117:case 15120:case 15121:case 15124:case 17926:case 17991:case 17993:case 17994:case 17995:case 17996:case 17998:case 18e3:case 18001:case 18002:case 18004:case 18005:case 18006:case 18007:case 18009:case 18010:case 18011:case 18012:case 18014:case 18015:case 18018:case 18019:case 18022:case 18023:case 18024:case 18025:case 18026:case 18027:case 18029:case 18030:case 18031:case 18032:case 18033:case 18034:case 18039:case 18040:case 18043:case 18044:case 18046:case 18047:case 18049:case 18050:case 18052:case 18053:case 18054:case 18055:case 18056:case 18057:case 18058:case 18059:case 18062:case 18063:case 18067:case 18068:case 18070:case 18072:case 18073:case 18075:case 18076:case 18077:case 18081:case 18082:case 18083:case 18084:case 18085:case 18086:case 18088:case 18090:case 18093:case 18094:case 18095:case 18097:case 18099:case 18101:case 18103:case 18104:case 18105:case 18107:case 18109:case 18115:case 18117:case 18118:case 18122:case 18123:case 18124:case 18125:case 18126:case 18127:case 18130:case 18136:case 18137:case 18142:case 18143:case 18144:case 18145:case 18146:case 18148:case 18149:case 18152:case 18153:case 18154:case 18159:case 18160:case 18161:case 18162:case 18165:case 18173:case 18174:case 18175:case 18176:case 18177:case 18178:case 18180:case 18182:case 18183:case 18186:case 18187:case 18188:case 18189:case 18192:case 18193:case 18196:case 23175:case 23237:case 23295:case 37459:case 37498:case 37563:case 37596:case 37971:case 38010:case 38075:case 38108:case 38483:case 38522:case 38587:case 38620:case 40019:case 40058:case 40123:case 40156:case 40531:case 40570:case 42579:case 42618:case 42683:case 42716:case 43091:case 43130:case 43195:case 43228:case 44115:case 44154:case 44219:case 44252:case 44627:case 44666:case 44731:case 44764:case 47187:case 47226:case 47291:case 47324:case 48211:case 48250:case 48315:case 48348:case 49747:case 49786:case 49851:case 49884:case 50259:case 50298:case 50363:case 50396:case 50771:case 50810:case 50875:case 50908:case 52307:case 52346:case 52411:case 52444:case 52819:case 52858:case 52923:case 52956:case 53331:case 53370:case 53435:case 53468:case 53843:case 53882:case 53947:case 53980:case 54867:case 54906:case 54971:case 55004:case 55891:case 55930:case 55995:case 56028:case 56915:case 56954:case 57019:case 57052:case 57427:case 57466:case 57531:case 57564:case 57939:case 57978:case 58043:case 58076:case 61523:case 61562:case 61627:case 61660:case 62035:case 62074:case 62139:case 62172:case 62547:case 62586:case 62651:case 62684:case 64083:case 64122:case 64187:case 64220:case 64595:case 64634:case 64699:case 64732:case 66643:case 66682:case 66747:case 66780:case 68179:case 68218:case 68283:case 68316:case 68691:case 68730:case 68795:case 68828:case 69203:case 69242:case 69307:case 69340:case 69715:case 69754:case 69819:case 69852:case 70227:case 70266:case 70331:case 70364:case 70739:case 70778:case 70843:case 70876:case 72787:case 72826:case 72891:case 72924:case 73299:case 73338:case 73403:case 73436:case 75347:case 75386:case 75451:case 75484:case 78931:case 78970:case 79035:case 79068:case 79443:case 79482:case 79547:case 79580:case 79955:case 79994:case 80059:case 80092:case 80467:case 80506:case 80571:case 80604:case 82515:case 82554:case 82619:case 82652:case 83539:case 83578:case 83643:case 83676:case 85587:case 85626:case 85691:case 85724:case 86099:case 86138:case 86203:case 86236:case 86611:case 86650:case 87123:case 87162:case 87227:case 87260:case 88659:case 88698:case 88763:case 88796:case 89171:case 89210:case 89275:case 89308:case 91731:case 91770:case 91835:case 91868:case 94803:case 94842:case 94907:case 94940:case 95827:case 95866:case 95931:case 95964:case 96339:case 96378:case 96443:case 96476:case 99411:case 99450:case 99515:case 99548:case 99923:case 99962:case 100027:case 100060:case 100947:case 100986:case 101051:case 101084:case 101459:case 101498:case 101563:case 101596:case 104019:case 104058:case 104123:case 104156:case 105555:case 105594:case 105659:case 105692:case 106067:case 106106:case 106171:case 106204:case 107603:case 107642:case 107707:case 107740:case 110675:case 110714:case 110779:case 110812:case 111187:case 111226:case 111291:case 111324:case 112723:case 112762:case 112827:case 112860:case 113747:case 113786:case 113851:case 113884:case 114259:case 114298:case 114363:case 114396:case 115283:case 115322:case 115387:case 115420:case 115795:case 115834:case 115899:case 115932:case 117331:case 117370:case 117435:case 117468:case 117843:case 117882:case 117947:case 117980:case 118355:case 118394:case 118459:case 118492:case 118867:case 118906:case 118971:case 119004:case 119379:case 119418:case 119483:case 119516:case 119891:case 119930:case 119995:case 120028:case 122451:case 122490:case 122555:case 122588:case 122963:case 123002:case 123067:case 123100:case 125523:case 125562:case 125627:case 125660:case 126547:case 126586:case 127059:case 127098:case 127163:case 127196:case 127571:case 127610:case 127675:case 127708:case 130643:case 130682:case 130747:case 130780:case 131155:case 131194:case 131259:case 131292:case 131667:case 131706:case 131771:case 131804:case 132179:case 132218:case 132283:case 132316:case 132691:case 132730:case 132795:case 132828:case 134227:case 134266:case 134331:case 134364:case 134739:case 134778:case 134843:case 134876:case 136275:case 136314:case 136379:case 136412:case 136787:case 136826:case 136891:case 136924:case 137299:case 137338:case 137403:case 137436:case 137811:case 137850:case 137915:case 137948:case 139859:case 139898:case 139963:case 139996:case 143955:case 143969:case 143992:case 143994:case 144059:case 144078:case 144092:case 144121:case 144134:ei();break;default:Br()}ic.endNonterminal(\"StepExpr\",Vl)}function Hr(){switch($l){case 83:ql(287);break;case 122:ql(286);break;case 187:case 220:ql(284);break;case 135:case 197:case 255:ql(236);break;case 97:case 120:case 206:case 249:case 262:ql(238);break;case 79:case 125:case 154:case 167:case 169:case 247:case 248:case 259:ql(229);break;case 74:case 75:case 94:case 112:case 113:case 137:case 138:case 210:case 216:case 217:case 234:ql(237);break;case 6:case 71:case 73:case 76:case 78:case 80:case 81:case 82:case 84:case 85:case 86:case 87:case 89:case 90:case 91:case 92:case 95:case 98:case 99:case 102:case 103:case 104:case 105:case 106:case 107:case 109:case 110:case 111:case 114:case 119:case 121:case 123:case 124:case 126:case 127:case 129:case 130:case 132:case 133:case 134:case 136:case 139:case 142:case 143:case 147:case 148:case 150:case 152:case 153:case 155:case 156:case 157:case 161:case 162:case 163:case 164:case 165:case 166:case 168:case 170:case 173:case 174:case 175:case 177:case 179:case 181:case 183:case 184:case 185:case 188:case 189:case 194:case 195:case 198:case 202:case 203:case 204:case 205:case 207:case 222:case 223:case 224:case 225:case 226:case 228:case 229:case 230:case 231:case 232:case 233:case 239:case 240:case 241:case 242:case 245:case 253:case 254:case 256:case 257:case 258:case 260:case 263:case 266:case 267:case 268:case 269:case 272:case 273:case 276:ql(233);break;default:Wl=$l}if(Wl==12935||Wl==12997||Wl==13055||Wl==13447||Wl==13509||Wl==13567||Wl==13959||Wl==14021||Wl==14079||Wl==19591||Wl==19653||Wl==19711||Wl==20103||Wl==20165||Wl==20223||Wl==21127||Wl==21189||Wl==21247||Wl==21639||Wl==21701||Wl==21759||Wl==22151||Wl==22213||Wl==22271||Wl==24199||Wl==24261||Wl==24319||Wl==24711||Wl==24773||Wl==24831||Wl==25735||Wl==25797||Wl==25855||Wl==27783||Wl==27845||Wl==27903||Wl==28295||Wl==28357||Wl==28415||Wl==29831||Wl==29893||Wl==29951||Wl==30343||Wl==30405||Wl==30463||Wl==31367||Wl==31429||Wl==31487||Wl==31879||Wl==31941||Wl==31999||Wl==32391||Wl==32453||Wl==32511||Wl==32903||Wl==32965||Wl==33023||Wl==35463||Wl==35525||Wl==35583||Wl==35975||Wl==36037||Wl==36095||Wl==36435||Wl==36474||Wl==36487||Wl==36539||Wl==36549||Wl==36572||Wl==36607||Wl==38995||Wl==39034||Wl==39047||Wl==39099||Wl==39109||Wl==39132||Wl==39167||Wl==41043||Wl==41082||Wl==41095||Wl==41147||Wl==41157||Wl==41180||Wl==41215||Wl==41555||Wl==41594||Wl==41607||Wl==41659||Wl==41669||Wl==41692||Wl==41727||Wl==42067||Wl==42106||Wl==42119||Wl==42171||Wl==42181||Wl==42204||Wl==42239||Wl==43603||Wl==43642||Wl==43655||Wl==43707||Wl==43717||Wl==43740||Wl==43775||Wl==45191||Wl==45253||Wl==45311||Wl==45651||Wl==45690||Wl==45703||Wl==45755||Wl==45765||Wl==45788||Wl==45823||Wl==46163||Wl==46202||Wl==46215||Wl==46267||Wl==46277||Wl==46300||Wl==46335||Wl==46675||Wl==46714||Wl==46727||Wl==46779||Wl==46789||Wl==46812||Wl==46847||Wl==48723||Wl==48762||Wl==48775||Wl==48827||Wl==48837||Wl==48860||Wl==48895||Wl==51335||Wl==51397||Wl==51455||Wl==54355||Wl==54394||Wl==54407||Wl==54459||Wl==54469||Wl==54492||Wl==54527||Wl==56403||Wl==56442||Wl==56455||Wl==56507||Wl==56517||Wl==56540||Wl==56575||Wl==58451||Wl==58490||Wl==58503||Wl==58555||Wl==58565||Wl==58588||Wl==58623||Wl==61011||Wl==61050||Wl==61063||Wl==61115||Wl==61125||Wl==61148||Wl==61183||Wl==63059||Wl==63098||Wl==63111||Wl==63163||Wl==63173||Wl==63196||Wl==63231||Wl==63571||Wl==63610||Wl==63623||Wl==63675||Wl==63685||Wl==63708||Wl==63743||Wl==65107||Wl==65146||Wl==65159||Wl==65211||Wl==65221||Wl==65244||Wl==65279||Wl==66131||Wl==66170||Wl==66183||Wl==66235||Wl==66245||Wl==66268||Wl==66303||Wl==67667||Wl==67706||Wl==67719||Wl==67771||Wl==67781||Wl==67804||Wl==67839||Wl==71251||Wl==71290||Wl==71303||Wl==71355||Wl==71365||Wl==71388||Wl==71423||Wl==75859||Wl==75898||Wl==75911||Wl==75963||Wl==75973||Wl==75996||Wl==76031||Wl==76883||Wl==76922||Wl==76935||Wl==76987||Wl==76997||Wl==77020||Wl==77055||Wl==77907||Wl==77946||Wl==77959||Wl==78011||Wl==78021||Wl==78044||Wl==78079||Wl==78419||Wl==78458||Wl==78471||Wl==78523||Wl==78533||Wl==78556||Wl==78591||Wl==83027||Wl==83066||Wl==83079||Wl==83131||Wl==83141||Wl==83164||Wl==83199||Wl==84051||Wl==84090||Wl==84103||Wl==84155||Wl==84165||Wl==84188||Wl==84223||Wl==84563||Wl==84602||Wl==84615||Wl==84667||Wl==84677||Wl==84700||Wl==84735||Wl==85075||Wl==85114||Wl==85127||Wl==85179||Wl==85189||Wl==85212||Wl==85247||Wl==89683||Wl==89722||Wl==89735||Wl==89787||Wl==89797||Wl==89820||Wl==89855||Wl==90707||Wl==90746||Wl==90759||Wl==90811||Wl==90821||Wl==90844||Wl==90879||Wl==92755||Wl==92794||Wl==92807||Wl==92859||Wl==92869||Wl==92892||Wl==92927||Wl==93779||Wl==93818||Wl==93831||Wl==93883||Wl==93893||Wl==93916||Wl==93951||Wl==94291||Wl==94330||Wl==94343||Wl==94395||Wl==94405||Wl==94428||Wl==94463||Wl==96851||Wl==96890||Wl==96903||Wl==96955||Wl==96965||Wl==96988||Wl==97023||Wl==103507||Wl==103546||Wl==103559||Wl==103611||Wl==103621||Wl==103644||Wl==103679||Wl==104531||Wl==104570||Wl==104583||Wl==104635||Wl==104645||Wl==104668||Wl==104703||Wl==105043||Wl==105082||Wl==105095||Wl==105147||Wl==105157||Wl==105180||Wl==105215||Wl==107143||Wl==107205||Wl==107263||Wl==114771||Wl==114810||Wl==114823||Wl==114875||Wl==114885||Wl==114908||Wl==114943||Wl==116819||Wl==116858||Wl==116871||Wl==116923||Wl==116933||Wl==116956||Wl==116991||Wl==121479||Wl==121541||Wl==121599||Wl==123475||Wl==123514||Wl==123527||Wl==123579||Wl==123589||Wl==123612||Wl==123647||Wl==123987||Wl==124026||Wl==124039||Wl==124091||Wl==124101||Wl==124124||Wl==124159||Wl==129159||Wl==129221||Wl==129279||Wl==129619||Wl==129658||Wl==129671||Wl==129723||Wl==129733||Wl==129756||Wl==129791||Wl==130131||Wl==130170||Wl==130183||Wl==130235||Wl==130245||Wl==130268||Wl==130303||Wl==133203||Wl==133242||Wl==133255||Wl==133307||Wl==133317||Wl==133340||Wl==133375||Wl==139347||Wl==139386||Wl==139399||Wl==139451||Wl==139461||Wl==139484||Wl==139519||Wl==141395||Wl==141434||Wl==141447||Wl==141499||Wl==141509||Wl==141532||Wl==141567||Wl==142983||Wl==143045||Wl==143103||Wl==145543||Wl==145605||Wl==145663||Wl==146055||Wl==146117||Wl==146175||Wl==146567||Wl==146629||Wl==146687||Wl==147079||Wl==147141||Wl==147199){Wl=uc(4,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{ti(),oc(4,t,-1),Wl=-3}catch(a){Wl=-2,Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(4,t,-2)}}}switch(Wl){case-1:case 8:case 9:case 10:case 11:case 31:case 32:case 33:case 35:case 55:case 56:case 60:case 69:case 281:case 283:case 3155:case 3194:case 9915:case 9948:case 14854:case 14919:case 14921:case 14922:case 14923:case 14924:case 14926:case 14927:case 14928:case 14929:case 14930:case 14931:case 14932:case 14933:case 14934:case 14935:case 14937:case 14938:case 14939:case 14940:case 14942:case 14943:case 14945:case 14946:case 14947:case 14950:case 14951:case 14952:case 14953:case 14954:case 14955:case 14957:case 14958:case 14959:case 14960:case 14961:case 14962:case 14967:case 14968:case 14969:case 14970:case 14971:case 14972:case 14973:case 14974:case 14975:case 14977:case 14978:case 14980:case 14981:case 14982:case 14983:case 14984:case 14985:case 14986:case 14987:case 14990:case 14991:case 14995:case 14996:case 14998:case 15e3:case 15001:case 15002:case 15003:case 15004:case 15005:case 15009:case 15010:case 15011:case 15012:case 15013:case 15014:case 15015:case 15016:case 15017:case 15018:case 15021:case 15022:case 15023:case 15025:case 15027:case 15029:case 15031:case 15032:case 15033:case 15035:case 15036:case 15037:case 15042:case 15043:case 15045:case 15046:case 15050:case 15051:case 15052:case 15053:case 15054:case 15055:case 15058:case 15064:case 15065:case 15068:case 15070:case 15071:case 15072:case 15073:case 15074:case 15076:case 15077:case 15078:case 15079:case 15080:case 15081:case 15082:case 15087:case 15088:case 15089:case 15090:case 15093:case 15095:case 15096:case 15097:case 15101:case 15102:case 15103:case 15104:case 15105:case 15106:case 15107:case 15108:case 15110:case 15111:case 15114:case 15115:case 15116:case 15117:case 15120:case 15121:case 15124:case 17926:case 17991:case 17993:case 17994:case 17995:case 17996:case 17998:case 18e3:case 18001:case 18002:case 18004:case 18005:case 18006:case 18007:case 18009:case 18010:case 18011:case 18012:case 18014:case 18015:case 18018:case 18019:case 18022:case 18023:case 18024:case 18025:case 18026:case 18027:case 18029:case 18030:case 18031:case 18032:case 18033:case 18034:case 18039:case 18040:case 18043:case 18044:case 18046:case 18047:case 18049:case 18050:case 18052:case 18053:case 18054:case 18055:case 18056:case 18057:case 18058:case 18059:case 18062:case 18063:case 18067:case 18068:case 18070:case 18072:case 18073:case 18075:case 18076:case 18077:case 18081:case 18082:case 18083:case 18084:case 18085:case 18086:case 18088:case 18090:case 18093:case 18094:case 18095:case 18097:case 18099:case 18101:case 18103:case 18104:case 18105:case 18107:case 18109:case 18115:case 18117:case 18118:case 18122:case 18123:case 18124:case 18125:case 18126:case 18127:case 18130:case 18136:case 18137:case 18142:case 18143:case 18144:case 18145:case 18146:case 18148:case 18149:case 18152:case 18153:case 18154:case 18159:case 18160:case 18161:case 18162:case 18165:case 18173:case 18174:case 18175:case 18176:case 18177:case 18178:case 18180:case 18182:case 18183:case 18186:case 18187:case 18188:case 18189:case 18192:case 18193:case 18196:case 23175:case 23237:case 23295:case 37459:case 37498:case 37563:case 37596:case 37971:case 38010:case 38075:case 38108:case 38483:case 38522:case 38587:case 38620:case 40019:case 40058:case 40123:case 40156:case 40531:case 40570:case 42579:case 42618:case 42683:case 42716:case 43091:case 43130:case 43195:case 43228:case 44115:case 44154:case 44219:case 44252:case 44627:case 44666:case 44731:case 44764:case 47187:case 47226:case 47291:case 47324:case 48211:case 48250:case 48315:case 48348:case 49747:case 49786:case 49851:case 49884:case 50259:case 50298:case 50363:case 50396:case 50771:case 50810:case 50875:case 50908:case 52307:case 52346:case 52411:case 52444:case 52819:case 52858:case 52923:case 52956:case 53331:case 53370:case 53435:case 53468:case 53843:case 53882:case 53947:case 53980:case 54867:case 54906:case 54971:case 55004:case 55891:case 55930:case 55995:case 56028:case 56915:case 56954:case 57019:case 57052:case 57427:case 57466:case 57531:case 57564:case 57939:case 57978:case 58043:case 58076:case 61523:case 61562:case 61627:case 61660:case 62035:case 62074:case 62139:case 62172:case 62547:case 62586:case 62651:case 62684:case 64083:case 64122:case 64187:case 64220:case 64595:case 64634:case 64699:case 64732:case 66643:case 66682:case 66747:case 66780:case 68179:case 68218:case 68283:case 68316:case 68691:case 68730:case 68795:case 68828:case 69203:case 69242:case 69307:case 69340:case 69715:case 69754:case 69819:case 69852:case 70227:case 70266:case 70331:case 70364:case 70739:case 70778:case 70843:case 70876:case 72787:case 72826:case 72891:case 72924:case 73299:case 73338:case 73403:case 73436:case 75347:case 75386:case 75451:case 75484:case 78931:case 78970:case 79035:case 79068:case 79443:case 79482:case 79547:case 79580:case 79955:case 79994:case 80059:case 80092:case 80467:case 80506:case 80571:case 80604:case 82515:case 82554:case 82619:case 82652:case 83539:case 83578:case 83643:case 83676:case 85587:case 85626:case 85691:case 85724:case 86099:case 86138:case 86203:case 86236:case 86611:case 86650:case 87123:case 87162:case 87227:case 87260:case 88659:case 88698:case 88763:case 88796:case 89171:case 89210:case 89275:case 89308:case 91731:case 91770:case 91835:case 91868:case 94803:case 94842:case 94907:case 94940:case 95827:case 95866:case 95931:case 95964:case 96339:case 96378:case 96443:case 96476:case 99411:case 99450:case 99515:case 99548:case 99923:case 99962:case 100027:case 100060:case 100947:case 100986:case 101051:case 101084:case 101459:case 101498:case 101563:case 101596:case 104019:case 104058:case 104123:case 104156:case 105555:case 105594:case 105659:case 105692:case 106067:case 106106:case 106171:case 106204:case 107603:case 107642:case 107707:case 107740:case 110675:case 110714:case 110779:case 110812:case 111187:case 111226:case 111291:case 111324:case 112723:case 112762:case 112827:case 112860:case 113747:case 113786:case 113851:case 113884:case 114259:case 114298:case 114363:case 114396:case 115283:case 115322:case 115387:case 115420:case 115795:case 115834:case 115899:case 115932:case 117331:case 117370:case 117435:case 117468:case 117843:case 117882:case 117947:case 117980:case 118355:case 118394:case 118459:case 118492:case 118867:case 118906:case 118971:case 119004:case 119379:case 119418:case 119483:case 119516:case 119891:case 119930:case 119995:case 120028:case 122451:case 122490:case 122555:case 122588:case 122963:case 123002:case 123067:case 123100:case 125523:case 125562:case 125627:case 125660:case 126547:case 126586:case 127059:case 127098:case 127163:case 127196:case 127571:case 127610:case 127675:case 127708:case 130643:case 130682:case 130747:case 130780:case 131155:case 131194:case 131259:case 131292:case 131667:case 131706:case 131771:case 131804:case 132179:case 132218:case 132283:case 132316:case 132691:case 132730:case 132795:case 132828:case 134227:case 134266:case 134331:case 134364:case 134739:case 134778:case 134843:case 134876:case 136275:case 136314:case 136379:case 136412:case 136787:case 136826:case 136891:case 136924:case 137299:case 137338:case 137403:case 137436:case 137811:case 137850:case 137915:case 137948:case 139859:case 139898:case 139963:case 139996:case 143955:case 143969:case 143992:case 143994:case 144059:case 144078:case 144092:case 144121:case 144134:ti();break;case-3:break;default:jr()}}function Br(){ic.startNonterminal(\"AxisStep\",Vl);switch($l){case 74:case 75:case 210:case 216:case 217:ql(231);break;default:Wl=$l}switch(Wl){case 46:case 26698:case 26699:case 26834:case 26840:case 26841:Wr();break;default:Fr()}Il(227),jl(),li(),ic.endNonterminal(\"AxisStep\",Vl)}function jr(){switch($l){case 74:case 75:case 210:case 216:case 217:ql(231);break;default:Wl=$l}switch(Wl){case 46:case 26698:case 26699:case 26834:case 26840:case 26841:Xr();break;default:Ir()}Il(227),ci()}function Fr(){ic.startNonterminal(\"ForwardStep\",Vl);switch($l){case 83:ql(235);break;case 94:case 112:case 113:case 137:case 138:case 234:ql(231);break;default:Wl=$l}switch(Wl){case 26707:case 26718:case 26736:case 26737:case 26761:case 26762:case 26858:qr(),Il(248),jl(),Qr();break;default:Ur()}ic.endNonterminal(\"ForwardStep\",Vl)}function Ir(){switch($l){case 83:ql(235);break;case 94:case 112:case 113:case 137:case 138:case 234:ql(231);break;default:Wl=$l}switch(Wl){case 26707:case 26718:case 26736:case 26737:case 26761:case 26762:case 26858:Rr(),Il(248),Gr();break;default:zr()}}function qr(){ic.startNonterminal(\"ForwardAxis\",Vl);switch($l){case 94:Pl(94),Il(27),Pl(52);break;case 112:Pl(112),Il(27),Pl(52);break;case 83:Pl(83),Il(27),Pl(52);break;case 234:Pl(234),Il(27),Pl(52);break;case 113:Pl(113),Il(27),Pl(52);break;case 138:Pl(138),Il(27),Pl(52);break;default:Pl(137),Il(27),Pl(52)}ic.endNonterminal(\"ForwardAxis\",Vl)}function Rr(){switch($l){case 94:Hl(94),Il(27),Hl(52);break;case 112:Hl(112),Il(27),Hl(52);break;case 83:Hl(83),Il(27),Hl(52);break;case 234:Hl(234),Il(27),Hl(52);break;case 113:Hl(113),Il(27),Hl(52);break;case 138:Hl(138),Il(27),Hl(52);break;default:Hl(137),Il(27),Hl(52)}}function Ur(){ic.startNonterminal(\"AbbrevForwardStep\",Vl),$l==67&&Pl(67),Il(248),jl(),Qr(),ic.endNonterminal(\"AbbrevForwardStep\",Vl)}function zr(){$l==67&&Hl(67),Il(248),Gr()}function Wr(){ic.startNonterminal(\"ReverseStep\",Vl);switch($l){case 46:Jr();break;default:Vr(),Il(248),jl(),Qr()}ic.endNonterminal(\"ReverseStep\",Vl)}function Xr(){switch($l){case 46:Kr();break;default:$r(),Il(248),Gr()}}function Vr(){ic.startNonterminal(\"ReverseAxis\",Vl);switch($l){case 210:Pl(210),Il(27),Pl(52);break;case 74:Pl(74),Il(27),Pl(52);break;case 217:Pl(217),Il(27),Pl(52);break;case 216:Pl(216),Il(27),Pl(52);break;default:Pl(75),Il(27),Pl(52)}ic.endNonterminal(\"ReverseAxis\",Vl)}function $r(){switch($l){case 210:Hl(210),Il(27),Hl(52);break;case 74:Hl(74),Il(27),Hl(52);break;case 217:Hl(217),Il(27),Hl(52);break;case 216:Hl(216),Il(27),Hl(52);break;default:Hl(75),Il(27),Hl(52)}}function Jr(){ic.startNonterminal(\"AbbrevReverseStep\",Vl),Pl(46),ic.endNonterminal(\"AbbrevReverseStep\",Vl)}function Kr(){Hl(46)}function Qr(){ic.startNonterminal(\"NodeTest\",Vl);switch($l){case 83:case 97:case 121:case 122:case 188:case 194:case 220:case 230:case 231:case 249:ql(230);break;default:Wl=$l}switch(Wl){case 18003:case 18017:case 18041:case 18042:case 18108:case 18114:case 18140:case 18150:case 18151:case 18169:Vs();break;default:Yr()}ic.endNonterminal(\"NodeTest\",Vl)}function Gr(){switch($l){case 83:case 97:case 121:case 122:case 188:case 194:case 220:case 230:case 231:case 249:ql(230);break;default:Wl=$l}switch(Wl){case 18003:case 18017:case 18041:case 18042:case 18108:case 18114:case 18140:case 18150:case 18151:case 18169:$s();break;default:Zr()}}function Yr(){ic.startNonterminal(\"NameTest\",Vl);switch($l){case 5:Pl(5);break;default:$a()}ic.endNonterminal(\"NameTest\",Vl)}function Zr(){switch($l){case 5:Hl(5);break;default:Ja()}}function ei(){ic.startNonterminal(\"PostfixExpr\",Vl),yl();for(;;){Il(234);if($l!=35&&$l!=45&&$l!=69)break;switch($l){case 69:ql(272);break;default:Wl=$l}if(Wl==35397){Wl=uc(5,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{pi(),Wl=-1}catch(a){Wl=-4}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(5,Vl,Wl)}}switch(Wl){case 35:jl(),ai();break;case 45:jl(),ni();break;case-4:jl(),ii();break;case 35909:jl(),oi();break;default:jl(),hi()}}ic.endNonterminal(\"PostfixExpr\",Vl)}function ti(){bl();for(;;){Il(234);if($l!=35&&$l!=45&&$l!=69)break;switch($l){case 69:ql(272);break;default:Wl=$l}if(Wl==35397){Wl=uc(5,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{pi(),oc(5,t,-1),Wl=-6}catch(a){Wl=-4,Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(5,t,-4)}}}switch(Wl){case 35:fi();break;case 45:ri();break;case-4:si();break;case 35909:ui();break;case-6:break;default:pi()}}}function ni(){ic.startNonterminal(\"ObjectLookup\",Vl),Pl(45),Il(250);switch($l){case 11:Pl(11);break;case 35:jl(),Ci();break;case 31:jl(),Si();break;case 32:jl(),Li();break;default:jl(),Ga()}ic.endNonterminal(\"ObjectLookup\",Vl)}function ri(){Hl(45),Il(250);switch($l){case 11:Hl(11);break;case 35:ki();break;case 31:xi();break;case 32:Ai();break;default:Ya()}}function ii(){ic.startNonterminal(\"ArrayLookup\",Vl),Pl(69),Il(31),Pl(69),Il(266),jl(),G(),Pl(70),Il(32),Pl(70),ic.endNonterminal(\"ArrayLookup\",Vl)}function si(){Hl(69),Il(31),Hl(69),Il(266),Y(),Hl(70),Il(32),Hl(70)}function oi(){ic.startNonterminal(\"ArrayUnboxing\",Vl),Pl(69),Il(32),Pl(70),ic.endNonterminal(\"ArrayUnboxing\",Vl)}function ui(){Hl(69),Il(32),Hl(70)}function ai(){ic.startNonterminal(\"ArgumentList\",Vl),Pl(35),Il(279);if($l!=38){jl(),Bi();for(;;){Il(105);if($l!=42)break;Pl(42),Il(271),jl(),Bi()}}Pl(38),ic.endNonterminal(\"ArgumentList\",Vl)}function fi(){Hl(35),Il(279);if($l!=38){ji();for(;;){Il(105);if($l!=42)break;Hl(42),Il(271),ji()}}Hl(38)}function li(){ic.startNonterminal(\"PredicateList\",Vl);for(;;){Il(227);if($l!=69)break;jl(),hi()}ic.endNonterminal(\"PredicateList\",Vl)}function ci(){for(;;){Il(227);if($l!=69)break;pi()}}function hi(){ic.startNonterminal(\"Predicate\",Vl),Pl(69),Il(266),jl(),G(),Pl(70),ic.endNonterminal(\"Predicate\",Vl)}function pi(){Hl(69),Il(266),Y(),Hl(70)}function di(){ic.startNonterminal(\"Literal\",Vl);switch($l){case 11:Pl(11);break;case 135:case 255:mi();break;case 197:yi();break;default:wi()}ic.endNonterminal(\"Literal\",Vl)}function vi(){switch($l){case 11:Hl(11);break;case 135:case 255:gi();break;case 197:bi();break;default:Ei()}}function mi(){ic.startNonterminal(\"BooleanLiteral\",Vl);switch($l){case 255:Pl(255);break;default:Pl(135)}ic.endNonterminal(\"BooleanLiteral\",Vl)}function gi(){switch($l){case 255:Hl(255);break;default:Hl(135)}}function yi(){ic.startNonterminal(\"NullLiteral\",Vl),Pl(197),ic.endNonterminal(\"NullLiteral\",Vl)}function bi(){Hl(197)}function wi(){ic.startNonterminal(\"NumericLiteral\",Vl);switch($l){case 8:Pl(8);break;case 9:Pl(9);break;default:Pl(10)}ic.endNonterminal(\"NumericLiteral\",Vl)}function Ei(){switch($l){case 8:Hl(8);break;case 9:Hl(9);break;default:Hl(10)}}function Si(){ic.startNonterminal(\"VarRef\",Vl),Pl(31),Il(245),jl(),Ti(),ic.endNonterminal(\"VarRef\",Vl)}function xi(){Hl(31),Il(245),Ni()}function Ti(){ic.startNonterminal(\"VarName\",Vl),$a(),ic.endNonterminal(\"VarName\",Vl)}function Ni(){Ja()}function Ci(){ic.startNonterminal(\"ParenthesizedExpr\",Vl),Pl(35),Il(269),$l!=38&&(jl(),G()),Pl(38),ic.endNonterminal(\"ParenthesizedExpr\",Vl)}function ki(){Hl(35),Il(269),$l!=38&&Y(),Hl(38)}function Li(){ic.startNonterminal(\"ContextItemExpr\",Vl),Pl(32),ic.endNonterminal(\"ContextItemExpr\",Vl)}function Ai(){Hl(32)}function Oi(){ic.startNonterminal(\"OrderedExpr\",Vl),Pl(206),Il(90),Pl(281),Il(266),jl(),G(),Pl(287),ic.endNonterminal(\"OrderedExpr\",Vl)}function Mi(){Hl(206),Il(90),Hl(281),Il(266),Y(),Hl(287)}function _i(){ic.startNonterminal(\"UnorderedExpr\",Vl),Pl(262),Il(90),Pl(281),Il(266),jl(),G(),Pl(287),ic.endNonterminal(\"UnorderedExpr\",Vl)}function Di(){Hl(262),Il(90),Hl(281),Il(266),Y(),Hl(287)}function Pi(){ic.startNonterminal(\"FunctionCall\",Vl),Ka(),Il(22),jl(),ai(),ic.endNonterminal(\"FunctionCall\",Vl)}function Hi(){Qa(),Il(22),fi()}function Bi(){ic.startNonterminal(\"Argument\",Vl);switch($l){case 65:Fi();break;default:Wf()}ic.endNonterminal(\"Argument\",Vl)}function ji(){switch($l){case 65:Ii();break;default:Xf()}}function Fi(){ic.startNonterminal(\"ArgumentPlaceholder\",Vl),Pl(65),ic.endNonterminal(\"ArgumentPlaceholder\",Vl)}function Ii(){Hl(65)}function qi(){ic.startNonterminal(\"Constructor\",Vl);switch($l){case 55:case 56:case 60:Ui();break;default:os()}ic.endNonterminal(\"Constructor\",Vl)}function Ri(){switch($l){case 55:case 56:case 60:zi();break;default:us()}}function Ui(){ic.startNonterminal(\"DirectConstructor\",Vl);switch($l){case 55:Wi();break;case 56:ns();break;default:is()}ic.endNonterminal(\"DirectConstructor\",Vl)}function zi(){switch($l){case 55:Xi();break;case 56:rs();break;default:ss()}}function Wi(){ic.startNonterminal(\"DirElemConstructor\",Vl),Pl(55),Rl(4),Pl(20),Vi();switch($l){case 49:Pl(49);break;default:Pl(62);for(;;){Rl(196);if($l==57)break;es()}Pl(57),Rl(4),Pl(20),Rl(12),$l==21&&Pl(21),Rl(8),Pl(62)}ic.endNonterminal(\"DirElemConstructor\",Vl)}function Xi(){Hl(55),Rl(4),Hl(20),$i();switch($l){case 49:Hl(49);break;default:Hl(62);for(;;){Rl(196);if($l==57)break;ts()}Hl(57),Rl(4),Hl(20),Rl(12),$l==21&&Hl(21),Rl(8),Hl(62)}}function Vi(){ic.startNonterminal(\"DirAttributeList\",Vl);for(;;){Rl(19);if($l!=21)break;Pl(21),Rl(94),$l==20&&(Pl(20),Rl(11),$l==21&&Pl(21),Rl(7),Pl(61),Rl(18),$l==21&&Pl(21),Ji())}ic.endNonterminal(\"DirAttributeList\",Vl)}function $i(){for(;;){Rl(19);if($l!=21)break;Hl(21),Rl(94),$l==20&&(Hl(20),Rl(11),$l==21&&Hl(21),Rl(7),Hl(61),Rl(18),$l==21&&Hl(21),Ki())}}function Ji(){ic.startNonterminal(\"DirAttributeValue\",Vl),Rl(14);switch($l){case 28:Pl(28);for(;;){Rl(185);if($l==28)break;switch($l){case 13:Pl(13);break;default:Qi()}}Pl(28);break;default:Pl(34);for(;;){Rl(186);if($l==34)break;switch($l){case 14:Pl(14);break;default:Yi()}}Pl(34)}ic.endNonterminal(\"DirAttributeValue\",Vl)}function Ki(){Rl(14);switch($l){case 28:Hl(28);for(;;){Rl(185);if($l==28)break;switch($l){case 13:Hl(13);break;default:Gi()}}Hl(28);break;default:Hl(34);for(;;){Rl(186);if($l==34)break;switch($l){case 14:Hl(14);break;default:Zi()}}Hl(34)}}function Qi(){ic.startNonterminal(\"QuotAttrValueContent\",Vl);switch($l){case 16:Pl(16);break;default:il()}ic.endNonterminal(\"QuotAttrValueContent\",Vl)}function Gi(){switch($l){case 16:Hl(16);break;default:sl()}}function Yi(){ic.startNonterminal(\"AposAttrValueContent\",Vl);switch($l){case 17:Pl(17);break;default:il()}ic.endNonterminal(\"AposAttrValueContent\",Vl)}function Zi(){switch($l){case 17:Hl(17);break;default:sl()}}function es(){ic.startNonterminal(\"DirElemContent\",Vl);switch($l){case 55:case 56:case 60:Ui();break;case 4:Pl(4);break;case 15:Pl(15);break;default:il()}ic.endNonterminal(\"DirElemContent\",Vl)}function ts(){switch($l){case 55:case 56:case 60:zi();break;case 4:Hl(4);break;case 15:Hl(15);break;default:sl()}}function ns(){ic.startNonterminal(\"DirCommentConstructor\",Vl),Pl(56),Rl(1),Pl(2),Rl(6),Pl(44),ic.endNonterminal(\"DirCommentConstructor\",Vl)}function rs(){Hl(56),Rl(1),Hl(2),Rl(6),Hl(44)}function is(){ic.startNonterminal(\"DirPIConstructor\",Vl),Pl(60),Rl(3),Pl(18),Rl(13),$l==21&&(Pl(21),Rl(2),Pl(3)),Rl(9),Pl(66),ic.endNonterminal(\"DirPIConstructor\",Vl)}function ss(){Hl(60),Rl(3),Hl(18),Rl(13),$l==21&&(Hl(21),Rl(2),Hl(3)),Rl(9),Hl(66)}function os(){ic.startNonterminal(\"ComputedConstructor\",Vl);switch($l){case 120:al();break;case 122:as();break;case 83:ll();break;case 187:ls();break;case 249:ml();break;case 97:dl();break;default:hl()}ic.endNonterminal(\"ComputedConstructor\",Vl)}function us(){switch($l){case 120:fl();break;case 122:fs();break;case 83:cl();break;case 187:cs();break;case 249:gl();break;case 97:vl();break;default:pl()}}function as(){ic.startNonterminal(\"CompElemConstructor\",Vl),Pl(122),Il(249);switch($l){case 281:Pl(281),Il(266),jl(),G(),Pl(287);break;default:jl(),$a()}Il(90),Pl(281),Il(280),$l!=287&&(jl(),ol()),Pl(287),ic.endNonterminal(\"CompElemConstructor\",Vl)}function fs(){Hl(122),Il(249);switch($l){case 281:Hl(281),Il(266),Y(),Hl(287);break;default:Ja()}Il(90),Hl(281),Il(280),$l!=287&&ul(),Hl(287)}function ls(){ic.startNonterminal(\"CompNamespaceConstructor\",Vl),Pl(187),Il(241);switch($l){case 281:Pl(281),Il(266),jl(),ds(),Pl(287);break;default:jl(),hs()}Il(90),Pl(281),Il(266),jl(),ms(),Pl(287),ic.endNonterminal(\"CompNamespaceConstructor\",Vl)}function cs(){Hl(187),Il(241);switch($l){case 281:Hl(281),Il(266),vs(),Hl(287);break;default:ps()}Il(90),Hl(281),Il(266),gs(),Hl(287)}function hs(){ic.startNonterminal(\"Prefix\",Vl),Ga(),ic.endNonterminal(\"Prefix\",Vl)}function ps(){Ya()}function ds(){ic.startNonterminal(\"PrefixExpr\",Vl),G(),ic.endNonterminal(\"PrefixExpr\",Vl)}function vs(){Y()}function ms(){ic.startNonterminal(\"URIExpr\",Vl),G(),ic.endNonterminal(\"URIExpr\",Vl)}function gs(){Y()}function ys(){ic.startNonterminal(\"FunctionItemExpr\",Vl);switch($l){case 147:ql(95);break;default:Wl=$l}switch(Wl){case 33:case 18067:Ss();break;default:ws()}ic.endNonterminal(\"FunctionItemExpr\",Vl)}function bs(){switch($l){case 147:ql(95);break;default:Wl=$l}switch(Wl){case 33:case 18067:xs();break;default:Es()}}function ws(){ic.startNonterminal(\"NamedFunctionRef\",Vl),$a(),Il(20),Pl(29),Il(16),Pl(8),ic.endNonterminal(\"NamedFunctionRef\",Vl)}function Es(){Ja(),Il(20),Hl(29),Il(16),Hl(8)}function Ss(){ic.startNonterminal(\"InlineFunctionExpr\",Vl);for(;;){Il(101);if($l!=33)break;jl(),B()}Pl(147),Il(22),Pl(35),Il(98),$l==31&&(jl(),U()),Pl(38),Il(115),$l==80&&(Pl(80),Il(253),jl(),Ls()),Il(90),jl(),V(),ic.endNonterminal(\"InlineFunctionExpr\",Vl)}function xs(){for(;;){Il(101);if($l!=33)break;j()}Hl(147),Il(22),Hl(35),Il(98),$l==31&&z(),Hl(38),Il(115),$l==80&&(Hl(80),Il(253),As()),Il(90),$()}function Ts(){ic.startNonterminal(\"SingleType\",Vl),ko(),Il(225),$l==65&&Pl(65),ic.endNonterminal(\"SingleType\",Vl)}function Ns(){Lo(),Il(225),$l==65&&Hl(65)}function Cs(){ic.startNonterminal(\"TypeDeclaration\",Vl),Pl(80),Il(253),jl(),Ls(),ic.endNonterminal(\"TypeDeclaration\",Vl)}function ks(){Hl(80),Il(253),As()}function Ls(){ic.startNonterminal(\"SequenceType\",Vl);switch($l){case 35:ql(258);break;case 125:ql(232);break;default:Wl=$l}switch(Wl){case 18045:case 19491:$l==125&&Pl(125),Il(22),Pl(35),Il(23),Pl(38);break;default:_s(),Il(228);switch($l){case 40:case 41:case 65:jl(),Os();break;default:}}ic.endNonterminal(\"SequenceType\",Vl)}function As(){switch($l){case 35:ql(258);break;case 125:ql(232);break;default:Wl=$l}switch(Wl){case 18045:case 19491:$l==125&&Hl(125),Il(22),Hl(35),Il(23),Hl(38);break;default:Ds(),Il(228);switch($l){case 40:case 41:case 65:Ms();break;default:}}}function Os(){ic.startNonterminal(\"OccurrenceIndicator\",Vl);switch($l){case 65:Pl(65);break;case 40:Pl(40);break;default:Pl(41)}ic.endNonterminal(\"OccurrenceIndicator\",Vl)}function Ms(){switch($l){case 65:Hl(65);break;case 40:Hl(40);break;default:Hl(41)}}function _s(){ic.startNonterminal(\"ItemType\",Vl);switch($l){case 79:case 83:case 97:case 121:case 122:case 147:case 167:case 169:case 188:case 194:case 198:case 220:case 230:case 231:case 247:case 249:ql(232);break;default:Wl=$l}if(Wl==12879||Wl==12969||Wl==12998||Wl==13047||Wl==13903||Wl==13993||Wl==14022||Wl==14071||Wl==19535||Wl==19625||Wl==19654||Wl==19703||Wl==20047||Wl==20137||Wl==20166||Wl==20215||Wl==20559||Wl==20649||Wl==20678||Wl==20727||Wl==21071||Wl==21161||Wl==21190||Wl==21239||Wl==21583||Wl==21673||Wl==21702||Wl==21751||Wl==22095||Wl==22185||Wl==22214||Wl==22263||Wl==25679||Wl==25769||Wl==25798||Wl==25847||Wl==27215||Wl==27305||Wl==27334||Wl==27383||Wl==27727||Wl==27817||Wl==27846||Wl==27895||Wl==28239||Wl==28329||Wl==28358||Wl==28407||Wl==29775||Wl==29865||Wl==29894||Wl==29943||Wl==30287||Wl==30377||Wl==30406||Wl==30455||Wl==31311||Wl==31401||Wl==31430||Wl==31479||Wl==31823||Wl==31913||Wl==31942||Wl==31991||Wl==32335||Wl==32425||Wl==32454||Wl==32503||Wl==32847||Wl==32937||Wl==32966||Wl==33015||Wl==33359||Wl==33449||Wl==33478||Wl==33527||Wl==35919||Wl==36009||Wl==36038||Wl==36087||Wl==36431||Wl==36521||Wl==36550||Wl==36599||Wl==37455||Wl==37545||Wl==37574||Wl==37623||Wl==38991||Wl==39081||Wl==39110||Wl==39159||Wl==41039||Wl==41129||Wl==41158||Wl==41207||Wl==41551||Wl==41641||Wl==41670||Wl==41719||Wl==42063||Wl==42153||Wl==42182||Wl==42231||Wl==43599||Wl==43689||Wl==43718||Wl==43767||Wl==45647||Wl==45737||Wl==45766||Wl==45815||Wl==48719||Wl==48809||Wl==48838||Wl==48887||Wl==51279||Wl==51369||Wl==51398||Wl==51447||Wl==54351||Wl==54441||Wl==54470||Wl==54519||Wl==56399||Wl==56489||Wl==56518||Wl==56567||Wl==58447||Wl==58537||Wl==58566||Wl==58615||Wl==61007||Wl==61097||Wl==61126||Wl==61175||Wl==63055||Wl==63145||Wl==63174||Wl==63223||Wl==63567||Wl==63657||Wl==63686||Wl==63735||Wl==65103||Wl==65193||Wl==65222||Wl==65271||Wl==66127||Wl==66217||Wl==66246||Wl==66295||Wl==67663||Wl==67753||Wl==67782||Wl==67831||Wl==68687||Wl==68777||Wl==68806||Wl==68855||Wl==71247||Wl==71337||Wl==71366||Wl==71415||Wl==75855||Wl==75945||Wl==75974||Wl==76023||Wl==76879||Wl==76969||Wl==76998||Wl==77047||Wl==77903||Wl==77993||Wl==78022||Wl==78071||Wl==78415||Wl==78505||Wl==78534||Wl==78583||Wl==79951||Wl==80041||Wl==80070||Wl==80119||Wl==83023||Wl==83113||Wl==83142||Wl==83191||Wl==84047||Wl==84137||Wl==84166||Wl==84215||Wl==84559||Wl==84649||Wl==84678||Wl==84727||Wl==85071||Wl==85161||Wl==85190||Wl==85239||Wl==89679||Wl==89769||Wl==89798||Wl==89847||Wl==90703||Wl==90793||Wl==90822||Wl==90871||Wl==92751||Wl==92841||Wl==92870||Wl==92919||Wl==93775||Wl==93865||Wl==93894||Wl==93943||Wl==94287||Wl==94377||Wl==94406||Wl==94455||Wl==96847||Wl==96937||Wl==96966||Wl==97015||Wl==103503||Wl==103593||Wl==103622||Wl==103671||Wl==104527||Wl==104617||Wl==104646||Wl==104695||Wl==105039||Wl==105129||Wl==105158||Wl==105207||Wl==107087||Wl==107177||Wl==107206||Wl==107255||Wl==114767||Wl==114857||Wl==114886||Wl==114935||Wl==116815||Wl==116905||Wl==116934||Wl==116983||Wl==118863||Wl==118953||Wl==118982||Wl==119031||Wl==121423||Wl==121513||Wl==121542||Wl==121591||Wl==123471||Wl==123561||Wl==123590||Wl==123639||Wl==123983||Wl==124073||Wl==124102||Wl==124151||Wl==129103||Wl==129193||Wl==129222||Wl==129271||Wl==129615||Wl==129705||Wl==129734||Wl==129783||Wl==133199||Wl==133289||Wl==133318||Wl==133367||Wl==139343||Wl==139433||Wl==139462||Wl==139511||Wl==141391||Wl==141481||Wl==141510||Wl==141559||Wl==142927||Wl==143017||Wl==143046||Wl==143095||Wl==143951||Wl==144041||Wl==144070||Wl==144119||Wl==145487||Wl==145577||Wl==145606||Wl==145655||Wl==145999||Wl==146089||Wl==146118||Wl==146167||Wl==146511||Wl==146601||Wl==146630||Wl==146679||Wl==147023||Wl==147113||Wl==147142||Wl==147191){Wl=uc(6,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Xs(),Wl=-4}catch(a){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Hs(),Wl=-6}catch(f){Wl=-7}}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(6,Vl,Wl)}}switch(Wl){case 18003:case 18017:case 18041:case 18042:case 18108:case 18114:case 18140:case 18150:case 18151:case 18169:Vs();break;case 18087:Pl(167),Il(22),Pl(35),Il(23),Pl(38);break;case 33:case 18067:Mo();break;case 35:jo();break;case-6:case 17999:case 18089:case 18118:Ps();break;case-7:case 18167:Bs();break;default:Ws()}ic.endNonterminal(\"ItemType\",Vl)}function Ds(){switch($l){case 79:case 83:case 97:case 121:case 122:case 147:case 167:case 169:case 188:case 194:case 198:case 220:case 230:case 231:case 247:case 249:ql(232);break;default:Wl=$l}if(Wl==12879||Wl==12969||Wl==12998||Wl==13047||Wl==13903||Wl==13993||Wl==14022||Wl==14071||Wl==19535||Wl==19625||Wl==19654||Wl==19703||Wl==20047||Wl==20137||Wl==20166||Wl==20215||Wl==20559||Wl==20649||Wl==20678||Wl==20727||Wl==21071||Wl==21161||Wl==21190||Wl==21239||Wl==21583||Wl==21673||Wl==21702||Wl==21751||Wl==22095||Wl==22185||Wl==22214||Wl==22263||Wl==25679||Wl==25769||Wl==25798||Wl==25847||Wl==27215||Wl==27305||Wl==27334||Wl==27383||Wl==27727||Wl==27817||Wl==27846||Wl==27895||Wl==28239||Wl==28329||Wl==28358||Wl==28407||Wl==29775||Wl==29865||Wl==29894||Wl==29943||Wl==30287||Wl==30377||Wl==30406||Wl==30455||Wl==31311||Wl==31401||Wl==31430||Wl==31479||Wl==31823||Wl==31913||Wl==31942||Wl==31991||Wl==32335||Wl==32425||Wl==32454||Wl==32503||Wl==32847||Wl==32937||Wl==32966||Wl==33015||Wl==33359||Wl==33449||Wl==33478||Wl==33527||Wl==35919||Wl==36009||Wl==36038||Wl==36087||Wl==36431||Wl==36521||Wl==36550||Wl==36599||Wl==37455||Wl==37545||Wl==37574||Wl==37623||Wl==38991||Wl==39081||Wl==39110||Wl==39159||Wl==41039||Wl==41129||Wl==41158||Wl==41207||Wl==41551||Wl==41641||Wl==41670||Wl==41719||Wl==42063||Wl==42153||Wl==42182||Wl==42231||Wl==43599||Wl==43689||Wl==43718||Wl==43767||Wl==45647||Wl==45737||Wl==45766||Wl==45815||Wl==48719||Wl==48809||Wl==48838||Wl==48887||Wl==51279||Wl==51369||Wl==51398||Wl==51447||Wl==54351||Wl==54441||Wl==54470||Wl==54519||Wl==56399||Wl==56489||Wl==56518||Wl==56567||Wl==58447||Wl==58537||Wl==58566||Wl==58615||Wl==61007||Wl==61097||Wl==61126||Wl==61175||Wl==63055||Wl==63145||Wl==63174||Wl==63223||Wl==63567||Wl==63657||Wl==63686||Wl==63735||Wl==65103||Wl==65193||Wl==65222||Wl==65271||Wl==66127||Wl==66217||Wl==66246||Wl==66295||Wl==67663||Wl==67753||Wl==67782||Wl==67831||Wl==68687||Wl==68777||Wl==68806||Wl==68855||Wl==71247||Wl==71337||Wl==71366||Wl==71415||Wl==75855||Wl==75945||Wl==75974||Wl==76023||Wl==76879||Wl==76969||Wl==76998||Wl==77047||Wl==77903||Wl==77993||Wl==78022||Wl==78071||Wl==78415||Wl==78505||Wl==78534||Wl==78583||Wl==79951||Wl==80041||Wl==80070||Wl==80119||Wl==83023||Wl==83113||Wl==83142||Wl==83191||Wl==84047||Wl==84137||Wl==84166||Wl==84215||Wl==84559||Wl==84649||Wl==84678||Wl==84727||Wl==85071||Wl==85161||Wl==85190||Wl==85239||Wl==89679||Wl==89769||Wl==89798||Wl==89847||Wl==90703||Wl==90793||Wl==90822||Wl==90871||Wl==92751||Wl==92841||Wl==92870||Wl==92919||Wl==93775||Wl==93865||Wl==93894||Wl==93943||Wl==94287||Wl==94377||Wl==94406||Wl==94455||Wl==96847||Wl==96937||Wl==96966||Wl==97015||Wl==103503||Wl==103593||Wl==103622||Wl==103671||Wl==104527||Wl==104617||Wl==104646||Wl==104695||Wl==105039||Wl==105129||Wl==105158||Wl==105207||Wl==107087||Wl==107177||Wl==107206||Wl==107255||Wl==114767||Wl==114857||Wl==114886||Wl==114935||Wl==116815||Wl==116905||Wl==116934||Wl==116983||Wl==118863||Wl==118953||Wl==118982||Wl==119031||Wl==121423||Wl==121513||Wl==121542||Wl==121591||Wl==123471||Wl==123561||Wl==123590||Wl==123639||Wl==123983||Wl==124073||Wl==124102||Wl==124151||Wl==129103||Wl==129193||Wl==129222||Wl==129271||Wl==129615||Wl==129705||Wl==129734||Wl==129783||Wl==133199||Wl==133289||Wl==133318||Wl==133367||Wl==139343||Wl==139433||Wl==139462||Wl==139511||Wl==141391||Wl==141481||Wl==141510||Wl==141559||Wl==142927||Wl==143017||Wl==143046||Wl==143095||Wl==143951||Wl==144041||Wl==144070||Wl==144119||Wl==145487||Wl==145577||Wl==145606||Wl==145655||Wl==145999||Wl==146089||Wl==146118||Wl==146167||Wl==146511||Wl==146601||Wl==146630||Wl==146679||Wl==147023||Wl==147113||Wl==147142||Wl==147191){Wl=uc(6,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Xs(),oc(6,t,-4),Wl=-8}catch(a){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Hs(),oc(6,t,-6),Wl=-8}catch(f){Wl=-7,Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(6,t,-7)}}}}switch(Wl){case 18003:case 18017:case 18041:case 18042:case 18108:case 18114:case 18140:case 18150:case 18151:case 18169:$s();break;case 18087:Hl(167),Il(22),Hl(35),Il(23),Hl(38);break;case 33:case 18067:_o();break;case 35:Fo();break;case-6:case 17999:case 18089:case 18118:Hs();break;case-7:case 18167:js();break;case-8:break;default:Xs()}}function Ps(){ic.startNonterminal(\"JSONTest\",Vl);switch($l){case 169:Fs();break;case 198:qs();break;default:Us()}ic.endNonterminal(\"JSONTest\",Vl)}function Hs(){switch($l){case 169:Is();break;case 198:Rs();break;default:zs()}}function Bs(){ic.startNonterminal(\"StructuredItemTest\",Vl),Pl(247),Il(232),$l==35&&(Pl(35),Il(23),Pl(38)),ic.endNonterminal(\"StructuredItemTest\",Vl)}function js(){Hl(247),Il(232),$l==35&&(Hl(35),Il(23),Hl(38))}function Fs(){ic.startNonterminal(\"JSONItemTest\",Vl),Pl(169),Il(232),$l==35&&(Pl(35),Il(23),Pl(38)),ic.endNonterminal(\"JSONItemTest\",Vl)}function Is(){Hl(169),Il(232),$l==35&&(Hl(35),Il(23),Hl(38))}function qs(){ic.startNonterminal(\"JSONObjectTest\",Vl),Pl(198),Il(232),$l==35&&(Pl(35),Il(23),Pl(38)),ic.endNonterminal(\"JSONObjectTest\",Vl)}function Rs(){Hl(198),Il(232),$l==35&&(Hl(35),Il(23),Hl(38))}function Us(){ic.startNonterminal(\"JSONArrayTest\",Vl),Pl(79),Il(232),$l==35&&(Pl(35),Il(23),Pl(38)),ic.endNonterminal(\"JSONArrayTest\",Vl)}function zs(){Hl(79),Il(232),$l==35&&(Hl(35),Il(23),Hl(38))}function Ws(){ic.startNonterminal(\"AtomicOrUnionType\",Vl),$a(),ic.endNonterminal(\"AtomicOrUnionType\",Vl)}function Xs(){Ja()}function Vs(){ic.startNonterminal(\"KindTest\",Vl);switch($l){case 121:Qs();break;case 122:vo();break;case 83:oo();break;case 231:bo();break;case 230:lo();break;case 220:io();break;case 97:eo();break;case 249:Ys();break;case 188:no();break;default:Js()}ic.endNonterminal(\"KindTest\",Vl)}function $s(){switch($l){case 121:Gs();break;case 122:mo();break;case 83:uo();break;case 231:wo();break;case 230:co();break;case 220:so();break;case 97:to();break;case 249:Zs();break;case 188:ro();break;default:Ks()}}function Js(){ic.startNonterminal(\"AnyKindTest\",Vl),Pl(194),Il(22),Pl(35),Il(23),Pl(38),ic.endNonterminal(\"AnyKindTest\",Vl)}function Ks(){Hl(194),Il(22),Hl(35),Il(23),Hl(38)}function Qs(){ic.startNonterminal(\"DocumentTest\",Vl),Pl(121),Il(22),Pl(35),Il(154);if($l!=38)switch($l){case 122:jl(),vo();break;default:jl(),bo()}Il(23),Pl(38),ic.endNonterminal(\"DocumentTest\",Vl)}function Gs(){Hl(121),Il(22),Hl(35),Il(154);if($l!=38)switch($l){case 122:mo();break;default:wo()}Il(23),Hl(38)}function Ys(){ic.startNonterminal(\"TextTest\",Vl),Pl(249),Il(22),Pl(35),Il(23),Pl(38),ic.endNonterminal(\"TextTest\",Vl)}function Zs(){Hl(249),Il(22),Hl(35),Il(23),Hl(38)}function eo(){ic.startNonterminal(\"CommentTest\",Vl),Pl(97),Il(22),Pl(35),Il(23),Pl(38),ic.endNonterminal(\"CommentTest\",Vl)}function to(){Hl(97),Il(22),Hl(35),Il(23),Hl(38)}function no(){ic.startNonterminal(\"NamespaceNodeTest\",Vl),Pl(188),Il(22),Pl(35),Il(23),Pl(38),ic.endNonterminal(\"NamespaceNodeTest\",Vl)}function ro(){Hl(188),Il(22),Hl(35),Il(23),Hl(38)}function io(){ic.startNonterminal(\"PITest\",Vl),Pl(220),Il(22),Pl(35),Il(243);if($l!=38)switch($l){case 11:Pl(11);break;default:jl(),Ga()}Il(23),Pl(38),ic.endNonterminal(\"PITest\",Vl)}function so(){Hl(220),Il(22),Hl(35),Il(243);if($l!=38)switch($l){case 11:Hl(11);break;default:Ya()}Il(23),Hl(38)}function oo(){ic.startNonterminal(\"AttributeTest\",Vl),Pl(83),Il(22),Pl(35),Il(254),$l!=38&&(jl(),ao(),Il(105),$l==42&&(Pl(42),Il(245),jl(),Ao())),Il(23),Pl(38),ic.endNonterminal(\"AttributeTest\",Vl)}function uo(){Hl(83),Il(22),Hl(35),Il(254),$l!=38&&(fo(),Il(105),$l==42&&(Hl(42),Il(245),Oo())),Il(23),Hl(38)}function ao(){ic.startNonterminal(\"AttribNameOrWildcard\",Vl);switch($l){case 39:Pl(39);break;default:xo()}ic.endNonterminal(\"AttribNameOrWildcard\",Vl)}function fo(){switch($l){case 39:Hl(39);break;default:To()}}function lo(){ic.startNonterminal(\"SchemaAttributeTest\",Vl),Pl(230),Il(22),Pl(35),Il(245),jl(),ho(),Il(23),Pl(38),ic.endNonterminal(\"SchemaAttributeTest\",Vl)}function co(){Hl(230),Il(22),Hl(35),Il(245),po(),Il(23),Hl(38)}function ho(){ic.startNonterminal(\"AttributeDeclaration\",Vl),xo(),ic.endNonterminal(\"AttributeDeclaration\",Vl)}function po(){To()}function vo(){ic.startNonterminal(\"ElementTest\",Vl),Pl(122),Il(22),Pl(35),Il(254),$l!=38&&(jl(),go(),Il(105),$l==42&&(Pl(42),Il(245),jl(),Ao(),Il(106),$l==65&&Pl(65))),Il(23),Pl(38),ic.endNonterminal(\"ElementTest\",Vl)}function mo(){Hl(122),Il(22),Hl(35),Il(254),$l!=38&&(yo(),Il(105),$l==42&&(Hl(42),Il(245),Oo(),Il(106),$l==65&&Hl(65))),Il(23),Hl(38)}function go(){ic.startNonterminal(\"ElementNameOrWildcard\",Vl);switch($l){case 39:Pl(39);break;default:No()}ic.endNonterminal(\"ElementNameOrWildcard\",Vl)}function yo(){switch($l){case 39:Hl(39);break;default:Co()}}function bo(){ic.startNonterminal(\"SchemaElementTest\",Vl),Pl(231),Il(22),Pl(35),Il(245),jl(),Eo(),Il(23),Pl(38),ic.endNonterminal(\"SchemaElementTest\",Vl)}function wo(){Hl(231),Il(22),Hl(35),Il(245),So(),Il(23),Hl(38)}function Eo(){ic.startNonterminal(\"ElementDeclaration\",Vl),No(),ic.endNonterminal(\"ElementDeclaration\",Vl)}function So(){Co()}function xo(){ic.startNonterminal(\"AttributeName\",Vl),$a(),ic.endNonterminal(\"AttributeName\",Vl)}function To(){Ja()}function No(){ic.startNonterminal(\"ElementName\",Vl),$a(),ic.endNonterminal(\"ElementName\",Vl)}function Co(){Ja()}function ko(){ic.startNonterminal(\"SimpleTypeName\",Vl),Ao(),ic.endNonterminal(\"SimpleTypeName\",Vl)}function Lo(){Oo()}function Ao(){ic.startNonterminal(\"TypeName\",Vl),$a(),ic.endNonterminal(\"TypeName\",Vl)}function Oo(){Ja()}function Mo(){ic.startNonterminal(\"FunctionTest\",Vl);for(;;){Il(101);if($l!=33)break;jl(),B()}switch($l){case 147:ql(22);break;default:Wl=$l}Wl=uc(7,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Po(),Wl=-1}catch(a){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(7,Vl,Wl)}switch(Wl){case-1:jl(),Do();break;default:jl(),Ho()}ic.endNonterminal(\"FunctionTest\",Vl)}function _o(){for(;;){Il(101);if($l!=33)break;j()}switch($l){case 147:ql(22);break;default:Wl=$l}Wl=uc(7,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Po(),oc(7,t,-1),Wl=-3}catch(a){Wl=-2,Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(7,t,-2)}}switch(Wl){case-1:Po();break;case-3:break;default:Bo()}}function Do(){ic.startNonterminal(\"AnyFunctionTest\",Vl),Pl(147),Il(22),Pl(35),Il(24),Pl(39),Il(23),Pl(38),ic.endNonterminal(\"AnyFunctionTest\",Vl)}function Po(){Hl(147),Il(22),Hl(35),Il(24),Hl(39),Il(23),Hl(38)}function Ho(){ic.startNonterminal(\"TypedFunctionTest\",Vl),Pl(147),Il(22),Pl(35),Il(258);if($l!=38){jl(),Ls();for(;;){Il(105);if($l!=42)break;Pl(42),Il(253),jl(),Ls()}}Pl(38),Il(33),Pl(80),Il(253),jl(),Ls(),ic.endNonterminal(\"TypedFunctionTest\",Vl)}function Bo(){Hl(147),Il(22),Hl(35),Il(258);if($l!=38){As();for(;;){Il(105);if($l!=42)break;Hl(42),Il(253),As()}}Hl(38),Il(33),Hl(80),Il(253),As()}function jo(){ic.startNonterminal(\"ParenthesizedItemType\",Vl),Pl(35),Il(253),jl(),_s(),Il(23),Pl(38),ic.endNonterminal(\"ParenthesizedItemType\",Vl)}function Fo(){Hl(35),Il(253),Ds(),Il(23),Hl(38)}function Io(){ic.startNonterminal(\"RevalidationDecl\",Vl),Pl(109),Il(75),Pl(226),Il(162);switch($l){case 245:Pl(245);break;case 174:Pl(174);break;default:Pl(238)}ic.endNonterminal(\"RevalidationDecl\",Vl)}function qo(){ic.startNonterminal(\"InsertExprTargetChoice\",Vl);switch($l){case 71:Pl(71);break;case 85:Pl(85);break;default:if($l==80){Pl(80),Il(123);switch($l){case 136:Pl(136);break;default:Pl(173)}}Il(57),Pl(165)}ic.endNonterminal(\"InsertExprTargetChoice\",Vl)}function Ro(){switch($l){case 71:Hl(71);break;case 85:Hl(85);break;default:if($l==80){Hl(80),Il(123);switch($l){case 136:Hl(136);break;default:Hl(173)}}Il(57),Hl(165)}}function Uo(){ic.startNonterminal(\"InsertExpr\",Vl),Pl(161),Il(133);switch($l){case 194:Pl(194);break;default:Pl(195)}Il(266),jl(),Qo(),jl(),qo(),Il(266),jl(),Yo(),ic.endNonterminal(\"InsertExpr\",Vl)}function zo(){Hl(161),Il(133);switch($l){case 194:Hl(194);break;default:Hl(195)}Il(266),Go(),Ro(),Il(266),Zo()}function Wo(){ic.startNonterminal(\"DeleteExpr\",Vl),Pl(111),Il(133);switch($l){case 194:Pl(194);break;default:Pl(195)}Il(266),jl(),Yo(),ic.endNonterminal(\"DeleteExpr\",Vl)}function Xo(){Hl(111),Il(133);switch($l){case 194:Hl(194);break;default:Hl(195)}Il(266),Zo()}function Vo(){ic.startNonterminal(\"ReplaceExpr\",Vl),Pl(223),Il(134),$l==267&&(Pl(267),Il(67),Pl(200)),Il(65),Pl(194),Il(266),jl(),Yo(),Pl(276),Il(266),jl(),Wf(),ic.endNonterminal(\"ReplaceExpr\",Vl)}function $o(){Hl(223),Il(134),$l==267&&(Hl(267),Il(67),Hl(200)),Il(65),Hl(194),Il(266),Zo(),Hl(276),Il(266),Xf()}function Jo(){ic.startNonterminal(\"RenameExpr\",Vl),Pl(222),Il(65),Pl(194),Il(266),jl(),Yo(),Pl(80),Il(266),jl(),eu(),ic.endNonterminal(\"RenameExpr\",Vl)}function Ko(){Hl(222),Il(65),Hl(194),Il(266),Zo(),Hl(80),Il(266),tu()}function Qo(){ic.startNonterminal(\"SourceExpr\",Vl),Wf(),ic.endNonterminal(\"SourceExpr\",Vl)}function Go(){Xf()}function Yo(){ic.startNonterminal(\"TargetExpr\",Vl),Wf(),ic.endNonterminal(\"TargetExpr\",Vl)}function Zo(){Xf()}function eu(){ic.startNonterminal(\"NewNameExpr\",Vl),Wf(),ic.endNonterminal(\"NewNameExpr\",Vl)}function tu(){Xf()}function nu(){ic.startNonterminal(\"TransformExpr\",Vl),Pl(104),Il(21),jl(),iu();for(;;){if($l!=42)break;Pl(42),Il(21),jl(),iu()}Pl(184),Il(266),jl(),Wf(),Pl(224),Il(266),jl(),Wf(),ic.endNonterminal(\"TransformExpr\",Vl)}function ru(){Hl(104),Il(21),su();for(;;){if($l!=42)break;Hl(42),Il(21),su()}Hl(184),Il(266),Xf(),Hl(224),Il(266),Xf()}function iu(){ic.startNonterminal(\"TransformSpec\",Vl),Pl(31),Il(245),jl(),Ti(),Il(28),Pl(53),Il(266),jl(),Wf(),ic.endNonterminal(\"TransformSpec\",Vl)}function su(){Hl(31),Il(245),Ni(),Il(28),Hl(53),Il(266),Xf()}function ou(){ic.startNonterminal(\"FTSelection\",Vl),lu();for(;;){Il(211);switch($l){case 82:ql(161);break;default:Wl=$l}if(Wl!=116&&Wl!=118&&Wl!=128&&Wl!=206&&Wl!=227&&Wl!=275&&Wl!=65106&&Wl!=123986)break;jl(),Pu()}ic.endNonterminal(\"FTSelection\",Vl)}function uu(){cu();for(;;){Il(211);switch($l){case 82:ql(161);break;default:Wl=$l}if(Wl!=116&&Wl!=118&&Wl!=128&&Wl!=206&&Wl!=227&&Wl!=275&&Wl!=65106&&Wl!=123986)break;Hu()}}function au(){ic.startNonterminal(\"FTWeight\",Vl),Pl(270),Il(90),Pl(281),Il(266),jl(),G(),Pl(287),ic.endNonterminal(\"FTWeight\",Vl)}function fu(){Hl(270),Il(90),Hl(281),Il(266),Y(),Hl(287)}function lu(){ic.startNonterminal(\"FTOr\",Vl),hu();for(;;){if($l!=146)break;Pl(146),Il(177),jl(),hu()}ic.endNonterminal(\"FTOr\",Vl)}function cu(){pu();for(;;){if($l!=146)break;Hl(146),Il(177),pu()}}function hu(){ic.startNonterminal(\"FTAnd\",Vl),du();for(;;){if($l!=144)break;Pl(144),Il(177),jl(),du()}ic.endNonterminal(\"FTAnd\",Vl)}function pu(){vu();for(;;){if($l!=144)break;Hl(144),Il(177),vu()}}function du(){ic.startNonterminal(\"FTMildNot\",Vl),mu();for(;;){Il(212);if($l!=196)break;Pl(196),Il(56),Pl(156),Il(177),jl(),mu()}ic.endNonterminal(\"FTMildNot\",Vl)}function vu(){gu();for(;;){Il(212);if($l!=196)break;Hl(196),Il(56),Hl(156),Il(177),gu()}}function mu(){ic.startNonterminal(\"FTUnaryNot\",Vl),$l==145&&Pl(145),Il(164),jl(),yu(),ic.endNonterminal(\"FTUnaryNot\",Vl)}function gu(){$l==145&&Hl(145),Il(164),bu()}function yu(){ic.startNonterminal(\"FTPrimaryWithOptions\",Vl),wu(),Il(213),$l==265&&(jl(),Qu()),$l==270&&(jl(),au()),ic.endNonterminal(\"FTPrimaryWithOptions\",Vl)}function bu(){Eu(),Il(213),$l==265&&Gu(),$l==270&&fu()}function wu(){ic.startNonterminal(\"FTPrimary\",Vl);switch($l){case 35:Pl(35),Il(177),jl(),ou(),Pl(38);break;case 36:Cu();break;default:Su(),Il(214),$l==199&&(jl(),Ou())}ic.endNonterminal(\"FTPrimary\",Vl)}function Eu(){switch($l){case 35:Hl(35),Il(177),uu(),Hl(38);break;case 36:ku();break;default:xu(),Il(214),$l==199&&Mu()}}function Su(){ic.startNonterminal(\"FTWords\",Vl),Tu(),Il(220);if($l==72||$l==77||$l==214)jl(),Lu();ic.endNonterminal(\"FTWords\",Vl)}function xu(){Nu(),Il(220),($l==72||$l==77||$l==214)&&Au()}function Tu(){ic.startNonterminal(\"FTWordsValue\",Vl);switch($l){case 11:Pl(11);break;default:Pl(281),Il(266),jl(),G(),Pl(287)}ic.endNonterminal(\"FTWordsValue\",Vl)}function Nu(){switch($l){case 11:Hl(11);break;default:Hl(281),Il(266),Y(),Hl(287)}}function Cu(){ic.startNonterminal(\"FTExtensionSelection\",Vl);for(;;){jl(),Lr(),Il(104);if($l!=36)break}Pl(281),Il(184),$l!=287&&(jl(),ou()),Pl(287),ic.endNonterminal(\"FTExtensionSelection\",Vl)}function ku(){for(;;){Ar(),Il(104);if($l!=36)break}Hl(281),Il(184),$l!=287&&uu(),Hl(287)}function Lu(){ic.startNonterminal(\"FTAnyallOption\",Vl);switch($l){case 77:Pl(77),Il(217),$l==278&&Pl(278);break;case 72:Pl(72),Il(218),$l==279&&Pl(279);break;default:Pl(214)}ic.endNonterminal(\"FTAnyallOption\",Vl)}function Au(){switch($l){case 77:Hl(77),Il(217),$l==278&&Hl(278);break;case 72:Hl(72),Il(218),$l==279&&Hl(279);break;default:Hl(214)}}function Ou(){ic.startNonterminal(\"FTTimes\",Vl),Pl(199),Il(159),jl(),_u(),Pl(252),ic.endNonterminal(\"FTTimes\",Vl)}function Mu(){Hl(199),Il(159),Du(),Hl(252)}function _u(){ic.startNonterminal(\"FTRange\",Vl);switch($l){case 131:Pl(131),Il(265),jl(),Jn();break;case 82:Pl(82),Il(129);switch($l){case 176:Pl(176),Il(265),jl(),Jn();break;default:Pl(186),Il(265),jl(),Jn()}break;default:Pl(142),Il(265),jl(),Jn(),Pl(253),Il(265),jl(),Jn()}ic.endNonterminal(\"FTRange\",Vl)}function Du(){switch($l){case 131:Hl(131),Il(265),Kn();break;case 82:Hl(82),Il(129);switch($l){case 176:Hl(176),Il(265),Kn();break;default:Hl(186),Il(265),Kn()}break;default:Hl(142),Il(265),Kn(),Hl(253),Il(265),Kn()}}function Pu(){ic.startNonterminal(\"FTPosFilter\",Vl);switch($l){case 206:Bu();break;case 275:Fu();break;case 118:qu();break;case 116:case 227:Wu();break;default:Ju()}ic.endNonterminal(\"FTPosFilter\",Vl)}function Hu(){switch($l){case 206:ju();break;case 275:Iu();break;case 118:Ru();break;case 116:case 227:Xu();break;default:Ku()}}function Bu(){ic.startNonterminal(\"FTOrder\",Vl),Pl(206),ic.endNonterminal(\"FTOrder\",Vl)}function ju(){Hl(206)}function Fu(){ic.startNonterminal(\"FTWindow\",Vl),Pl(275),Il(265),jl(),Jn(),jl(),Uu(),ic.endNonterminal(\"FTWindow\",Vl)}function Iu(){Hl(275),Il(265),Kn(),zu()}function qu(){ic.startNonterminal(\"FTDistance\",Vl),Pl(118),Il(159),jl(),_u(),jl(),Uu(),ic.endNonterminal(\"FTDistance\",Vl)}function Ru(){Hl(118),Il(159),Du(),zu()}function Uu(){ic.startNonterminal(\"FTUnit\",Vl);switch($l){case 279:Pl(279);break;case 237:Pl(237);break;default:Pl(209)}ic.endNonterminal(\"FTUnit\",Vl)}function zu(){switch($l){case 279:Hl(279);break;case 237:Hl(237);break;default:Hl(209)}}function Wu(){ic.startNonterminal(\"FTScope\",Vl);switch($l){case 227:Pl(227);break;default:Pl(116)}Il(136),jl(),Vu(),ic.endNonterminal(\"FTScope\",Vl)}function Xu(){switch($l){case 227:Hl(227);break;default:Hl(116)}Il(136),$u()}function Vu(){ic.startNonterminal(\"FTBigUnit\",Vl);switch($l){case 236:Pl(236);break;default:Pl(208)}ic.endNonterminal(\"FTBigUnit\",Vl)}function $u(){switch($l){case 236:Hl(236);break;default:Hl(208)}}function Ju(){ic.startNonterminal(\"FTContent\",Vl);switch($l){case 82:Pl(82),Il(121);switch($l){case 242:Pl(242);break;default:Pl(127)}break;default:Pl(128),Il(45),Pl(101)}ic.endNonterminal(\"FTContent\",Vl)}function Ku(){switch($l){case 82:Hl(82),Il(121);switch($l){case 242:Hl(242);break;default:Hl(127)}break;default:Hl(128),Il(45),Hl(101)}}function Qu(){ic.startNonterminal(\"FTMatchOptions\",Vl);for(;;){Pl(265),Il(204),jl(),Yu(),Il(213);if($l!=265)break}ic.endNonterminal(\"FTMatchOptions\",Vl)}function Gu(){for(;;){Hl(265),Il(204),Zu(),Il(213);if($l!=265)break}}function Yu(){ic.startNonterminal(\"FTMatchOption\",Vl);switch($l){case 191:ql(176);break;default:Wl=$l}switch(Wl){case 172:ya();break;case 274:case 140479:wa();break;case 251:case 128703:oa();break;case 243:case 124607:ia();break;case 115:na();break;case 244:case 125119:ha();break;case 203:Sa();break;default:ea()}ic.endNonterminal(\"FTMatchOption\",Vl)}function Zu(){switch($l){case 191:ql(176);break;default:Wl=$l}switch(Wl){case 172:ba();break;case 274:case 140479:Ea();break;case 251:case 128703:ua();break;case 243:case 124607:sa();break;case 115:ra();break;case 244:case 125119:pa();break;case 203:xa();break;default:ta()}}function ea(){ic.startNonterminal(\"FTCaseOption\",Vl);switch($l){case 89:Pl(89),Il(128);switch($l){case 160:Pl(160);break;default:Pl(235)}break;case 180:Pl(180);break;default:Pl(264)}ic.endNonterminal(\"FTCaseOption\",Vl)}function ta(){switch($l){case 89:Hl(89),Il(128);switch($l){case 160:Hl(160);break;default:Hl(235)}break;case 180:Hl(180);break;default:Hl(264)}}function na(){ic.startNonterminal(\"FTDiacriticsOption\",Vl),Pl(115),Il(128);switch($l){case 160:Pl(160);break;default:Pl(235)}ic.endNonterminal(\"FTDiacriticsOption\",Vl)}function ra(){Hl(115),Il(128);switch($l){case 160:Hl(160);break;default:Hl(235)}}function ia(){ic.startNonterminal(\"FTStemOption\",Vl);switch($l){case 243:Pl(243);break;default:Pl(191),Il(77),Pl(243)}ic.endNonterminal(\"FTStemOption\",Vl)}function sa(){switch($l){case 243:Hl(243);break;default:Hl(191),Il(77),Hl(243)}}function oa(){ic.startNonterminal(\"FTThesaurusOption\",Vl);switch($l){case 251:Pl(251),Il(152);switch($l){case 82:jl(),aa();break;case 110:Pl(110);break;default:Pl(35),Il(116);switch($l){case 82:jl(),aa();break;default:Pl(110)}for(;;){Il(105);if($l!=42)break;Pl(42),Il(34),jl(),aa()}Pl(38)}break;default:Pl(191),Il(81),Pl(251)}ic.endNonterminal(\"FTThesaurusOption\",Vl)}function ua(){switch($l){case 251:Hl(251),Il(152);switch($l){case 82:fa();break;case 110:Hl(110);break;default:Hl(35),Il(116);switch($l){case 82:fa();break;default:Hl(110)}for(;;){Il(105);if($l!=42)break;Hl(42),Il(34),fa()}Hl(38)}break;default:Hl(191),Il(81),Hl(251)}}function aa(){ic.startNonterminal(\"FTThesaurusID\",Vl),Pl(82),Il(15),Pl(7),Il(219),$l==221&&(Pl(221),Il(17),Pl(11)),Il(215);switch($l){case 82:ql(183);break;default:Wl=$l}if(Wl==131||Wl==142||Wl==90194||Wl==95314)jl(),la(),Il(61),Pl(178);ic.endNonterminal(\"FTThesaurusID\",Vl)}function fa(){Hl(82),Il(15),Hl(7),Il(219),$l==221&&(Hl(221),Il(17),Hl(11)),Il(215);switch($l){case 82:ql(183);break;default:Wl=$l}if(Wl==131||Wl==142||Wl==90194||Wl==95314)ca(),Il(61),Hl(178)}function la(){ic.startNonterminal(\"FTLiteralRange\",Vl);switch($l){case 131:Pl(131),Il(16),Pl(8);break;case 82:Pl(82),Il(129);switch($l){case 176:Pl(176),Il(16),Pl(8);break;default:Pl(186),Il(16),Pl(8)}break;default:Pl(142),Il(16),Pl(8),Il(82),Pl(253),Il(16),Pl(8)}ic.endNonterminal(\"FTLiteralRange\",Vl)}function ca(){switch($l){case 131:Hl(131),Il(16),Hl(8);break;case 82:Hl(82),Il(129);switch($l){case 176:Hl(176),Il(16),Hl(8);break;default:Hl(186),Il(16),Hl(8)}break;default:Hl(142),Il(16),Hl(8),Il(82),Hl(253),Il(16),Hl(8)}}function ha(){ic.startNonterminal(\"FTStopWordOption\",Vl);switch($l){case 244:Pl(244),Il(89),Pl(279),Il(152);switch($l){case 110:Pl(110);for(;;){Il(216);if($l!=132&&$l!=260)break;jl(),ma()}break;default:jl(),da();for(;;){Il(216);if($l!=132&&$l!=260)break;jl(),ma()}}break;default:Pl(191),Il(78),Pl(244),Il(89),Pl(279)}ic.endNonterminal(\"FTStopWordOption\",Vl)}function pa(){switch($l){case 244:Hl(244),Il(89),Hl(279),Il(152);switch($l){case 110:Hl(110);for(;;){Il(216);if($l!=132&&$l!=260)break;ga()}break;default:va();for(;;){Il(216);if($l!=132&&$l!=260)break;ga()}}break;default:Hl(191),Il(78),Hl(244),Il(89),Hl(279)}}function da(){ic.startNonterminal(\"FTStopWords\",Vl);switch($l){case 82:Pl(82),Il(15),Pl(7);break;default:Pl(35),Il(17),Pl(11);for(;;){Il(105);if($l!=42)break;Pl(42),Il(17),Pl(11)}Pl(38)}ic.endNonterminal(\"FTStopWords\",Vl)}function va(){switch($l){case 82:Hl(82),Il(15),Hl(7);break;default:Hl(35),Il(17),Hl(11);for(;;){Il(105);if($l!=42)break;Hl(42),Il(17),Hl(11)}Hl(38)}}function ma(){ic.startNonterminal(\"FTStopWordsInclExcl\",Vl);switch($l){case 260:Pl(260);break;default:Pl(132)}Il(103),jl(),da(),ic.endNonterminal(\"FTStopWordsInclExcl\",Vl)}function ga(){switch($l){case 260:Hl(260);break;default:Hl(132)}Il(103),va()}function ya(){ic.startNonterminal(\"FTLanguageOption\",Vl),Pl(172),Il(17),Pl(11),ic.endNonterminal(\"FTLanguageOption\",Vl)}function ba(){Hl(172),Il(17),Hl(11)}function wa(){ic.startNonterminal(\"FTWildCardOption\",Vl);switch($l){case 274:Pl(274);break;default:Pl(191),Il(87),Pl(274)}ic.endNonterminal(\"FTWildCardOption\",Vl)}function Ea(){switch($l){case 274:Hl(274);break;default:Hl(191),Il(87),Hl(274)}}function Sa(){ic.startNonterminal(\"FTExtensionOption\",Vl),Pl(203),Il(245),jl(),$a(),Il(17),Pl(11),ic.endNonterminal(\"FTExtensionOption\",Vl)}function xa(){Hl(203),Il(245),Ja(),Il(17),Hl(11)}function Ta(){ic.startNonterminal(\"FTIgnoreOption\",Vl),Pl(277),Il(45),Pl(101),Il(265),jl(),Yn(),ic.endNonterminal(\"FTIgnoreOption\",Vl)}function Na(){Hl(277),Il(45),Hl(101),Il(265),Zn()}function Ca(){ic.startNonterminal(\"CollectionDecl\",Vl),Pl(96),Il(245),jl(),$a(),Il(111),$l==80&&(jl(),ka()),ic.endNonterminal(\"CollectionDecl\",Vl)}function ka(){ic.startNonterminal(\"CollectionTypeDecl\",Vl),Pl(80),Il(253),jl(),_s(),Il(171),$l!=54&&(jl(),Os()),ic.endNonterminal(\"CollectionTypeDecl\",Vl)}function La(){ic.startNonterminal(\"IndexName\",Vl),$a(),ic.endNonterminal(\"IndexName\",Vl)}function Aa(){ic.startNonterminal(\"IndexDomainExpr\",Vl),Or(),ic.endNonterminal(\"IndexDomainExpr\",Vl)}function Oa(){ic.startNonterminal(\"IndexKeySpec\",Vl),Ma(),$l==80&&(jl(),_a()),Il(156),$l==95&&(jl(),Pa()),ic.endNonterminal(\"IndexKeySpec\",Vl)}function Ma(){ic.startNonterminal(\"IndexKeyExpr\",Vl),Or(),ic.endNonterminal(\"IndexKeyExpr\",Vl)}function _a(){ic.startNonterminal(\"IndexKeyTypeDecl\",Vl),Pl(80),Il(245),jl(),Da(),Il(189);if($l==40||$l==41||$l==65)jl(),Os();ic.endNonterminal(\"IndexKeyTypeDecl\",Vl)}function Da(){ic.startNonterminal(\"AtomicType\",Vl),$a(),ic.endNonterminal(\"AtomicType\",Vl)}function Pa(){ic.startNonterminal(\"IndexKeyCollation\",Vl),Pl(95),Il(15),Pl(7),ic.endNonterminal(\"IndexKeyCollation\",Vl)}function Ha(){ic.startNonterminal(\"IndexDecl\",Vl),Pl(157),Il(245),jl(),La(),Il(68),Pl(201),Il(66),Pl(195),Il(262),jl(),Aa(),Pl(88),Il(262),jl(),Oa();for(;;){Il(107);if($l!=42)break;Pl(42),Il(262),jl(),Oa()}ic.endNonterminal(\"IndexDecl\",Vl)}function Ba(){ic.startNonterminal(\"ICDecl\",Vl),Pl(163),Il(43),Pl(98),Il(245),jl(),$a(),Il(124);switch($l){case 201:jl(),ja();break;default:jl(),Ra()}ic.endNonterminal(\"ICDecl\",Vl)}function ja(){ic.startNonterminal(\"ICCollection\",Vl),Pl(201),Il(42),Pl(96),Il(245),jl(),$a(),Il(150);switch($l){case 31:jl(),Fa();break;case 194:jl(),Ia();break;default:jl(),qa()}ic.endNonterminal(\"ICCollection\",Vl)}function Fa(){ic.startNonterminal(\"ICCollSequence\",Vl),Si(),Il(40),Pl(93),Il(266),jl(),Wf(),ic.endNonterminal(\"ICCollSequence\",Vl)}function Ia(){ic.startNonterminal(\"ICCollSequenceUnique\",Vl),Pl(194),Il(21),jl(),Si(),Il(40),Pl(93),Il(83),Pl(261),Il(60),Pl(171),Il(262),jl(),Or(),ic.endNonterminal(\"ICCollSequenceUnique\",Vl)}function qa(){ic.startNonterminal(\"ICCollNode\",Vl),Pl(140),Il(65),Pl(194),Il(21),jl(),Si(),Il(40),Pl(93),Il(266),jl(),Wf(),ic.endNonterminal(\"ICCollNode\",Vl)}function Ra(){ic.startNonterminal(\"ICForeignKey\",Vl),Pl(141),Il(60),Pl(171),Il(54),jl(),Ua(),jl(),za(),ic.endNonterminal(\"ICForeignKey\",Vl)}function Ua(){ic.startNonterminal(\"ICForeignKeySource\",Vl),Pl(142),Il(42),jl(),Wa(),ic.endNonterminal(\"ICForeignKeySource\",Vl)}function za(){ic.startNonterminal(\"ICForeignKeyTarget\",Vl),Pl(253),Il(42),jl(),Wa(),ic.endNonterminal(\"ICForeignKeyTarget\",Vl)}function Wa(){ic.startNonterminal(\"ICForeignKeyValues\",Vl),Pl(96),Il(245),jl(),$a(),Il(65),Pl(194),Il(21),jl(),Si(),Il(60),Pl(171),Il(262),jl(),Or(),ic.endNonterminal(\"ICForeignKeyValues\",Vl)}function Xa(){Hl(37);for(;;){Rl(92);if($l==51)break;switch($l){case 24:Hl(24);break;default:Xa()}}Hl(51)}function Va(){switch($l){case 22:Hl(22);break;default:Xa()}}function $a(){ic.startNonterminal(\"EQName\",Vl),Rl(240);switch($l){case 83:Pl(83);break;case 97:Pl(97);break;case 121:Pl(121);break;case 122:Pl(122);break;case 125:Pl(125);break;case 147:Pl(147);break;case 154:Pl(154);break;case 167:Pl(167);break;case 188:Pl(188);break;case 194:Pl(194);break;case 220:Pl(220);break;case 230:Pl(230);break;case 231:Pl(231);break;case 248:Pl(248);break;case 249:Pl(249);break;case 259:Pl(259);break;case 79:Pl(79);break;case 169:Pl(169);break;case 247:Pl(247);break;default:Ka()}ic.endNonterminal(\"EQName\",Vl)}function Ja(){Rl(240);switch($l){case 83:Hl(83);break;case 97:Hl(97);break;case 121:Hl(121);break;case 122:Hl(122);break;case 125:Hl(125);break;case 147:Hl(147);break;case 154:Hl(154);break;case 167:Hl(167);break;case 188:Hl(188);break;case 194:Hl(194);break;case 220:Hl(220);break;case 230:Hl(230);break;case 231:Hl(231);break;case 248:Hl(248);break;case 249:Hl(249);break;case 259:Hl(259);break;case 79:Hl(79);break;case 169:Hl(169);break;case 247:Hl(247);break;default:Qa()}}function Ka(){ic.startNonterminal(\"FunctionName\",Vl);switch($l){case 6:Pl(6);break;case 71:Pl(71);break;case 74:Pl(74);break;case 75:Pl(75);break;case 76:Pl(76);break;case 80:Pl(80);break;case 81:Pl(81);break;case 85:Pl(85);break;case 89:Pl(89);break;case 90:Pl(90);break;case 91:Pl(91);break;case 94:Pl(94);break;case 95:Pl(95);break;case 104:Pl(104);break;case 106:Pl(106);break;case 109:Pl(109);break;case 110:Pl(110);break;case 111:Pl(111);break;case 112:Pl(112);break;case 113:Pl(113);break;case 114:Pl(114);break;case 119:Pl(119);break;case 120:Pl(120);break;case 123:Pl(123);break;case 124:Pl(124);break;case 127:Pl(127);break;case 129:Pl(129);break;case 130:Pl(130);break;case 132:Pl(132);break;case 136:Pl(136);break;case 137:Pl(137);break;case 138:Pl(138);break;case 139:Pl(139);break;case 148:Pl(148);break;case 150:Pl(150);break;case 152:Pl(152);break;case 153:Pl(153);break;case 155:Pl(155);break;case 161:Pl(161);break;case 162:Pl(162);break;case 164:Pl(164);break;case 165:Pl(165);break;case 166:Pl(166);break;case 173:Pl(173);break;case 175:Pl(175);break;case 177:Pl(177);break;case 181:Pl(181);break;case 183:Pl(183);break;case 184:Pl(184);break;case 185:Pl(185);break;case 187:Pl(187);break;case 189:Pl(189);break;case 202:Pl(202);break;case 204:Pl(204);break;case 205:Pl(205);break;case 206:Pl(206);break;case 210:Pl(210);break;case 216:Pl(216);break;case 217:Pl(217);break;case 222:Pl(222);break;case 223:Pl(223);break;case 224:Pl(224);break;case 228:Pl(228);break;case 234:Pl(234);break;case 240:Pl(240);break;case 241:Pl(241);break;case 242:Pl(242);break;case 253:Pl(253);break;case 254:Pl(254);break;case 256:Pl(256);break;case 260:Pl(260);break;case 262:Pl(262);break;case 266:Pl(266);break;case 272:Pl(272);break;case 276:Pl(276);break;case 170:Pl(170);break;case 73:Pl(73);break;case 82:Pl(82);break;case 84:Pl(84);break;case 86:Pl(86);break;case 87:Pl(87);break;case 92:Pl(92);break;case 99:Pl(99);break;case 102:Pl(102);break;case 103:Pl(103);break;case 105:Pl(105);break;case 107:Pl(107);break;case 126:Pl(126);break;case 133:Pl(133);break;case 134:Pl(134);break;case 143:Pl(143);break;case 156:Pl(156);break;case 157:Pl(157);break;case 163:Pl(163);break;case 174:Pl(174);break;case 195:Pl(195);break;case 203:Pl(203);break;case 207:Pl(207);break;case 226:Pl(226);break;case 229:Pl(229);break;case 232:Pl(232);break;case 239:Pl(239);break;case 245:Pl(245);break;case 257:Pl(257);break;case 258:Pl(258);break;case 263:Pl(263);break;case 267:Pl(267);break;case 268:Pl(268);break;case 269:Pl(269);break;case 273:Pl(273);break;case 98:Pl(98);break;case 179:Pl(179);break;case 225:Pl(225);break;case 78:Pl(78);break;case 135:Pl(135);break;case 142:Pl(142);break;case 197:Pl(197);break;case 168:Pl(168);break;case 198:Pl(198);break;case 233:Pl(233);break;default:Pl(255)}ic.endNonterminal(\"FunctionName\",Vl)}function Qa(){switch($l){case 6:Hl(6);break;case 71:Hl(71);break;case 74:Hl(74);break;case 75:Hl(75);break;case 76:Hl(76);break;case 80:Hl(80);break;case 81:Hl(81);break;case 85:Hl(85);break;case 89:Hl(89);break;case 90:Hl(90);break;case 91:Hl(91);break;case 94:Hl(94);break;case 95:Hl(95);break;case 104:Hl(104);break;case 106:Hl(106);break;case 109:Hl(109);break;case 110:Hl(110);break;case 111:Hl(111);break;case 112:Hl(112);break;case 113:Hl(113);break;case 114:Hl(114);break;case 119:Hl(119);break;case 120:Hl(120);break;case 123:Hl(123);break;case 124:Hl(124);break;case 127:Hl(127);break;case 129:Hl(129);break;case 130:Hl(130);break;case 132:Hl(132);break;case 136:Hl(136);break;case 137:Hl(137);break;case 138:Hl(138);break;case 139:Hl(139);break;case 148:Hl(148);break;case 150:Hl(150);break;case 152:Hl(152);break;case 153:Hl(153);break;case 155:Hl(155);break;case 161:Hl(161);break;case 162:Hl(162);break;case 164:Hl(164);break;case 165:Hl(165);break;case 166:Hl(166);break;case 173:Hl(173);break;case 175:Hl(175);break;case 177:Hl(177);break;case 181:Hl(181);break;case 183:Hl(183);break;case 184:Hl(184);break;case 185:Hl(185);break;case 187:Hl(187);break;case 189:Hl(189);break;case 202:Hl(202);break;case 204:Hl(204);break;case 205:Hl(205);break;case 206:Hl(206);break;case 210:Hl(210);break;case 216:Hl(216);break;case 217:Hl(217);break;case 222:Hl(222);break;case 223:Hl(223);break;case 224:Hl(224);break;case 228:Hl(228);break;case 234:Hl(234);break;case 240:Hl(240);break;case 241:Hl(241);break;case 242:Hl(242);break;case 253:Hl(253);break;case 254:Hl(254);break;case 256:Hl(256);break;case 260:Hl(260);break;case 262:Hl(262);break;case 266:Hl(266);break;case 272:Hl(272);break;case 276:Hl(276);break;case 170:Hl(170);break;case 73:Hl(73);break;case 82:Hl(82);break;case 84:Hl(84);break;case 86:Hl(86);break;case 87:Hl(87);break;case 92:Hl(92);break;case 99:Hl(99);break;case 102:Hl(102);break;case 103:Hl(103);break;case 105:Hl(105);break;case 107:Hl(107);break;case 126:Hl(126);break;case 133:Hl(133);break;case 134:Hl(134);break;case 143:Hl(143);break;case 156:Hl(156);break;case 157:Hl(157);break;case 163:Hl(163);break;case 174:Hl(174);break;case 195:Hl(195);break;case 203:Hl(203);break;case 207:Hl(207);break;case 226:Hl(226);break;case 229:Hl(229);break;case 232:Hl(232);break;case 239:Hl(239);break;case 245:Hl(245);break;case 257:Hl(257);break;case 258:Hl(258);break;case 263:Hl(263);break;case 267:Hl(267);break;case 268:Hl(268);break;case 269:Hl(269);break;case 273:Hl(273);break;case 98:Hl(98);break;case 179:Hl(179);break;case 225:Hl(225);break;case 78:Hl(78);break;case 135:Hl(135);break;case 142:Hl(142);break;case 197:Hl(197);break;case 168:Hl(168);break;case 198:Hl(198);break;case 233:Hl(233);break;default:Hl(255)}}function Ga(){ic.startNonterminal(\"NCName\",Vl);switch($l){case 19:Pl(19);break;case 71:Pl(71);break;case 76:Pl(76);break;case 80:Pl(80);break;case 81:Pl(81);break;case 85:Pl(85);break;case 89:Pl(89);break;case 90:Pl(90);break;case 91:Pl(91);break;case 95:Pl(95);break;case 106:Pl(106);break;case 110:Pl(110);break;case 114:Pl(114);break;case 119:Pl(119);break;case 123:Pl(123);break;case 124:Pl(124);break;case 127:Pl(127);break;case 129:Pl(129);break;case 132:Pl(132);break;case 139:Pl(139);break;case 148:Pl(148);break;case 150:Pl(150);break;case 152:Pl(152);break;case 153:Pl(153);break;case 162:Pl(162);break;case 164:Pl(164);break;case 165:Pl(165);break;case 166:Pl(166);break;case 175:Pl(175);break;case 177:Pl(177);break;case 181:Pl(181);break;case 183:Pl(183);break;case 184:Pl(184);break;case 189:Pl(189);break;case 202:Pl(202);break;case 204:Pl(204);break;case 205:Pl(205);break;case 224:Pl(224);break;case 228:Pl(228);break;case 241:Pl(241);break;case 242:Pl(242);break;case 253:Pl(253);break;case 254:Pl(254);break;case 260:Pl(260);break;case 272:Pl(272);break;case 276:Pl(276);break;case 74:Pl(74);break;case 75:Pl(75);break;case 83:Pl(83);break;case 94:Pl(94);break;case 97:Pl(97);break;case 104:Pl(104);break;case 109:Pl(109);break;case 111:Pl(111);break;case 112:Pl(112);break;case 113:Pl(113);break;case 120:Pl(120);break;case 121:Pl(121);break;case 122:Pl(122);break;case 125:Pl(125);break;case 130:Pl(130);break;case 136:Pl(136);break;case 137:Pl(137);break;case 138:Pl(138);break;case 147:Pl(147);break;case 154:Pl(154);break;case 155:Pl(155);break;case 161:Pl(161);break;case 167:Pl(167);break;case 173:Pl(173);break;case 185:Pl(185);break;case 187:Pl(187);break;case 188:Pl(188);break;case 194:Pl(194);break;case 206:Pl(206);break;case 210:Pl(210);break;case 216:Pl(216);break;case 217:Pl(217);break;case 220:Pl(220);break;case 222:Pl(222);break;case 223:Pl(223);break;case 230:Pl(230);break;case 231:Pl(231);break;case 234:Pl(234);break;case 240:Pl(240);break;case 248:Pl(248);break;case 249:Pl(249);break;case 256:Pl(256);break;case 259:Pl(259);break;case 262:Pl(262);break;case 266:Pl(266);break;case 268:Pl(268);break;case 170:Pl(170);break;case 73:Pl(73);break;case 82:Pl(82);break;case 84:Pl(84);break;case 86:Pl(86);break;case 87:Pl(87);break;case 92:Pl(92);break;case 99:Pl(99);break;case 102:Pl(102);break;case 103:Pl(103);break;case 105:Pl(105);break;case 107:Pl(107);break;case 126:Pl(126);break;case 133:Pl(133);break;case 134:Pl(134);break;case 143:Pl(143);break;case 156:Pl(156);break;case 157:Pl(157);break;case 163:Pl(163);break;case 174:Pl(174);break;case 195:Pl(195);break;case 203:Pl(203);break;case 207:Pl(207);break;case 226:Pl(226);break;case 229:Pl(229);break;case 232:Pl(232);break;case 239:Pl(239);break;case 245:Pl(245);break;case 257:Pl(257);break;case 258:Pl(258);break;case 263:Pl(263);break;case 267:Pl(267);break;case 269:Pl(269);break;case 273:Pl(273);break;case 98:Pl(98);break;case 179:Pl(179);break;case 225:Pl(225);break;case 78:Pl(78);break;case 135:Pl(135);break;case 142:Pl(142);break;case 197:Pl(197);break;case 168:Pl(168);break;case 198:Pl(198);break;case 233:Pl(233);break;default:Pl(255)}ic.endNonterminal(\"NCName\",Vl)}function Ya(){switch($l){case 19:Hl(19);break;case 71:Hl(71);break;case 76:Hl(76);break;case 80:Hl(80);break;case 81:Hl(81);break;case 85:Hl(85);break;case 89:Hl(89);break;case 90:Hl(90);break;case 91:Hl(91);break;case 95:Hl(95);break;case 106:Hl(106);break;case 110:Hl(110);break;case 114:Hl(114);break;case 119:Hl(119);break;case 123:Hl(123);break;case 124:Hl(124);break;case 127:Hl(127);break;case 129:Hl(129);break;case 132:Hl(132);break;case 139:Hl(139);break;case 148:Hl(148);break;case 150:Hl(150);break;case 152:Hl(152);break;case 153:Hl(153);break;case 162:Hl(162);break;case 164:Hl(164);break;case 165:Hl(165);break;case 166:Hl(166);break;case 175:Hl(175);break;case 177:Hl(177);break;case 181:Hl(181);break;case 183:Hl(183);break;case 184:Hl(184);break;case 189:Hl(189);break;case 202:Hl(202);break;case 204:Hl(204);break;case 205:Hl(205);break;case 224:Hl(224);break;case 228:Hl(228);break;case 241:Hl(241);break;case 242:Hl(242);break;case 253:Hl(253);break;case 254:Hl(254);break;case 260:Hl(260);break;case 272:Hl(272);break;case 276:Hl(276);break;case 74:Hl(74);break;case 75:Hl(75);break;case 83:Hl(83);break;case 94:Hl(94);break;case 97:Hl(97);break;case 104:Hl(104);break;case 109:Hl(109);break;case 111:Hl(111);break;case 112:Hl(112);break;case 113:Hl(113);break;case 120:Hl(120);break;case 121:Hl(121);break;case 122:Hl(122);break;case 125:Hl(125);break;case 130:Hl(130);break;case 136:Hl(136);break;case 137:Hl(137);break;case 138:Hl(138);break;case 147:Hl(147);break;case 154:Hl(154);break;case 155:Hl(155);break;case 161:Hl(161);break;case 167:Hl(167);break;case 173:Hl(173);break;case 185:Hl(185);break;case 187:Hl(187);break;case 188:Hl(188);break;case 194:Hl(194);break;case 206:Hl(206);break;case 210:Hl(210);break;case 216:Hl(216);break;case 217:Hl(217);break;case 220:Hl(220);break;case 222:Hl(222);break;case 223:Hl(223);break;case 230:Hl(230);break;case 231:Hl(231);break;case 234:Hl(234);break;case 240:Hl(240);break;case 248:Hl(248);break;case 249:Hl(249);break;case 256:Hl(256);break;case 259:Hl(259);break;case 262:Hl(262);break;case 266:Hl(266);break;case 268:Hl(268);break;case 170:Hl(170);break;case 73:Hl(73);break;case 82:Hl(82);break;case 84:Hl(84);break;case 86:Hl(86);break;case 87:Hl(87);break;case 92:Hl(92);break;case 99:Hl(99);break;case 102:Hl(102);break;case 103:Hl(103);break;case 105:Hl(105);break;case 107:Hl(107);break;case 126:Hl(126);break;case 133:Hl(133);break;case 134:Hl(134);break;case 143:Hl(143);break;case 156:Hl(156);break;case 157:Hl(157);break;case 163:Hl(163);break;case 174:Hl(174);break;case 195:Hl(195);break;case 203:Hl(203);break;case 207:Hl(207);break;case 226:Hl(226);break;case 229:Hl(229);break;case 232:Hl(232);break;case 239:Hl(239);break;case 245:Hl(245);break;case 257:Hl(257);break;case 258:Hl(258);break;case 263:Hl(263);break;case 267:Hl(267);break;case 269:Hl(269);break;case 273:Hl(273);break;case 98:Hl(98);break;case 179:Hl(179);break;case 225:Hl(225);break;case 78:Hl(78);break;case 135:Hl(135);break;case 142:Hl(142);break;case 197:Hl(197);break;case 168:Hl(168);break;case 198:Hl(198);break;case 233:Hl(233);break;default:Hl(255)}}function Za(){ic.startNonterminal(\"MainModule\",Vl),l(),jl(),ef(),ic.endNonterminal(\"MainModule\",Vl)}function ef(){ic.startNonterminal(\"Program\",Vl),of(),ic.endNonterminal(\"Program\",Vl)}function tf(){ic.startNonterminal(\"Statements\",Vl);for(;;){Il(283);switch($l){case 35:ql(269);break;case 36:Ul(242);break;case 47:ql(285);break;case 48:ql(259);break;case 55:Ul(4);break;case 56:Ul(1);break;case 60:Ul(3);break;case 69:ql(272);break;case 78:ql(268);break;case 133:ql(147);break;case 139:ql(179);break;case 161:ql(275);break;case 177:ql(166);break;case 187:ql(246);break;case 220:ql(244);break;case 223:ql(170);break;case 266:ql(188);break;case 281:ql(282);break;case 283:ql(273);break;case 31:case 33:ql(245);break;case 83:case 122:ql(252);break;case 87:case 103:ql(145);break;case 97:case 249:ql(97);break;case 111:case 222:ql(260);break;case 41:case 43:case 196:ql(265);break;case 135:case 197:case 255:ql(210);break;case 104:case 130:case 240:case 268:ql(143);break;case 120:case 206:case 256:case 262:ql(148);break;case 8:case 9:case 10:case 11:case 32:ql(209);break;case 79:case 121:case 125:case 167:case 169:case 188:case 194:case 230:case 231:case 247:ql(20);break;case 6:case 71:case 73:case 74:case 75:case 76:case 80:case 81:case 82:case 84:case 85:case 86:case 89:case 90:case 91:case 92:case 94:case 95:case 98:case 99:case 102:case 105:case 106:case 107:case 109:case 110:case 112:case 113:case 114:case 119:case 123:case 124:case 126:case 127:case 129:case 132:case 134:case 136:case 137:case 138:case 142:case 143:case 147:case 148:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 162:case 163:case 164:case 165:case 166:case 168:case 170:case 173:case 174:case 175:case 179:case 181:case 183:case 184:case 185:case 189:case 195:case 198:case 202:case 203:case 204:case 205:case 207:case 210:case 216:case 217:case 224:case 225:case 226:case 228:case 229:case 232:case 233:case 234:case 239:case 241:case 242:case 245:case 248:case 253:case 254:case 257:case 258:case 259:case 260:case 263:case 267:case 269:case 272:case 273:case 276:ql(95);break;default:Wl=$l}if(Wl!=25&&Wl!=54&&Wl!=287&&Wl!=12808&&Wl!=12809&&Wl!=12810&&Wl!=12811&&Wl!=12832&&Wl!=12847&&Wl!=12935&&Wl!=12997&&Wl!=13055&&Wl!=16140&&Wl!=21512&&Wl!=21513&&Wl!=21514&&Wl!=21515&&Wl!=21536&&Wl!=21551&&Wl!=21639&&Wl!=21701&&Wl!=21759&&Wl!=27656&&Wl!=27657&&Wl!=27658&&Wl!=27659&&Wl!=27680&&Wl!=27695&&Wl!=27783&&Wl!=27845&&Wl!=27903&&Wl!=91735&&Wl!=91751&&Wl!=115333&&Wl!=146952&&Wl!=146953&&Wl!=146954&&Wl!=146955&&Wl!=146976&&Wl!=146991&&Wl!=147079&&Wl!=147141&&Wl!=147199){Wl=uc(8,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{ff(),Wl=-1}catch(a){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(8,Vl,Wl)}}if(Wl!=-1&&Wl!=54&&Wl!=16140&&Wl!=27656&&Wl!=27657&&Wl!=27658&&Wl!=27659&&Wl!=27680&&Wl!=27695&&Wl!=27783&&Wl!=27845&&Wl!=27903&&Wl!=91735&&Wl!=91751&&Wl!=115333)break;jl(),af()}ic.endNonterminal(\"Statements\",Vl)}function nf(){for(;;){Il(283);switch($l){case 35:ql(269);break;case 36:Ul(242);break;case 47:ql(285);break;case 48:ql(259);break;case 55:Ul(4);break;case 56:Ul(1);break;case 60:Ul(3);break;case 69:ql(272);break;case 78:ql(268);break;case 133:ql(147);break;case 139:ql(179);break;case 161:ql(275);break;case 177:ql(166);break;case 187:ql(246);break;case 220:ql(244);break;case 223:ql(170);break;case 266:ql(188);break;case 281:ql(282);break;case 283:ql(273);break;case 31:case 33:ql(245);break;case 83:case 122:ql(252);break;case 87:case 103:ql(145);break;case 97:case 249:ql(97);break;case 111:case 222:ql(260);break;case 41:case 43:case 196:ql(265);break;case 135:case 197:case 255:ql(210);break;case 104:case 130:case 240:case 268:ql(143);break;case 120:case 206:case 256:case 262:ql(148);break;case 8:case 9:case 10:case 11:case 32:ql(209);break;case 79:case 121:case 125:case 167:case 169:case 188:case 194:case 230:case 231:case 247:ql(20);break;case 6:case 71:case 73:case 74:case 75:case 76:case 80:case 81:case 82:case 84:case 85:case 86:case 89:case 90:case 91:case 92:case 94:case 95:case 98:case 99:case 102:case 105:case 106:case 107:case 109:case 110:case 112:case 113:case 114:case 119:case 123:case 124:case 126:case 127:case 129:case 132:case 134:case 136:case 137:case 138:case 142:case 143:case 147:case 148:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 162:case 163:case 164:case 165:case 166:case 168:case 170:case 173:case 174:case 175:case 179:case 181:case 183:case 184:case 185:case 189:case 195:case 198:case 202:case 203:case 204:case 205:case 207:case 210:case 216:case 217:case 224:case 225:case 226:case 228:case 229:case 232:case 233:case 234:case 239:case 241:case 242:case 245:case 248:case 253:case 254:case 257:case 258:case 259:case 260:case 263:case 267:case 269:case 272:case 273:case 276:ql(95);break;default:Wl=$l}if(Wl!=25&&Wl!=54&&Wl!=287&&Wl!=12808&&Wl!=12809&&Wl!=12810&&Wl!=12811&&Wl!=12832&&Wl!=12847&&Wl!=12935&&Wl!=12997&&Wl!=13055&&Wl!=16140&&Wl!=21512&&Wl!=21513&&Wl!=21514&&Wl!=21515&&Wl!=21536&&Wl!=21551&&Wl!=21639&&Wl!=21701&&Wl!=21759&&Wl!=27656&&Wl!=27657&&Wl!=27658&&Wl!=27659&&Wl!=27680&&Wl!=27695&&Wl!=27783&&Wl!=27845&&Wl!=27903&&Wl!=91735&&Wl!=91751&&Wl!=115333&&Wl!=146952&&Wl!=146953&&Wl!=146954&&Wl!=146955&&Wl!=146976&&Wl!=146991&&Wl!=147079&&Wl!=147141&&Wl!=147199){Wl=uc(8,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{ff(),oc(8,t,-1);continue}catch(a){Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(8,t,-2);break}}}if(Wl!=-1&&Wl!=54&&Wl!=16140&&Wl!=27656&&Wl!=27657&&Wl!=27658&&Wl!=27659&&Wl!=27680&&Wl!=27695&&Wl!=27783&&Wl!=27845&&Wl!=27903&&Wl!=91735&&Wl!=91751&&Wl!=115333)break;ff()}}function rf(){ic.startNonterminal(\"StatementsAndExpr\",Vl),tf(),jl(),G(),ic.endNonterminal(\"StatementsAndExpr\",Vl)}function sf(){nf(),Y()}function of(){ic.startNonterminal(\"StatementsAndOptionalExpr\",Vl),tf(),$l!=25&&$l!=287&&(jl(),G()),ic.endNonterminal(\"StatementsAndOptionalExpr\",Vl)}function uf(){nf(),$l!=25&&$l!=287&&Y()}function af(){ic.startNonterminal(\"Statement\",Vl);switch($l){case 133:ql(147);break;case 139:ql(179);break;case 177:ql(166);break;case 256:ql(148);break;case 268:ql(143);break;case 281:ql(282);break;case 31:case 33:ql(245);break;case 87:case 103:ql(145);break;case 154:case 248:case 259:case 273:ql(95);break;default:Wl=$l}if(Wl!=6&&Wl!=8&&Wl!=9&&Wl!=10&&Wl!=11&&Wl!=32&&Wl!=35&&Wl!=36&&Wl!=41&&Wl!=43&&Wl!=47&&Wl!=48&&Wl!=54&&Wl!=55&&Wl!=56&&Wl!=60&&Wl!=69&&Wl!=71&&Wl!=73&&Wl!=74&&Wl!=75&&Wl!=76&&Wl!=78&&Wl!=79&&Wl!=80&&Wl!=81&&Wl!=82&&Wl!=83&&Wl!=84&&Wl!=85&&Wl!=86&&Wl!=89&&Wl!=90&&Wl!=91&&Wl!=92&&Wl!=94&&Wl!=95&&Wl!=97&&Wl!=98&&Wl!=99&&Wl!=102&&Wl!=104&&Wl!=105&&Wl!=106&&Wl!=107&&Wl!=109&&Wl!=110&&Wl!=111&&Wl!=112&&Wl!=113&&Wl!=114&&Wl!=119&&Wl!=120&&Wl!=121&&Wl!=122&&Wl!=123&&Wl!=124&&Wl!=125&&Wl!=126&&Wl!=127&&Wl!=129&&Wl!=130&&Wl!=132&&Wl!=134&&Wl!=135&&Wl!=136&&Wl!=137&&Wl!=138&&Wl!=142&&Wl!=143&&Wl!=147&&Wl!=148&&Wl!=150&&Wl!=152&&Wl!=153&&Wl!=155&&Wl!=156&&Wl!=157&&Wl!=161&&Wl!=162&&Wl!=163&&Wl!=164&&Wl!=165&&Wl!=166&&Wl!=167&&Wl!=168&&Wl!=169&&Wl!=170&&Wl!=173&&Wl!=174&&Wl!=175&&Wl!=179&&Wl!=181&&Wl!=183&&Wl!=184&&Wl!=185&&Wl!=187&&Wl!=188&&Wl!=189&&Wl!=194&&Wl!=195&&Wl!=196&&Wl!=197&&Wl!=198&&Wl!=202&&Wl!=203&&Wl!=204&&Wl!=205&&Wl!=206&&Wl!=207&&Wl!=210&&Wl!=216&&Wl!=217&&Wl!=220&&Wl!=222&&Wl!=223&&Wl!=224&&Wl!=225&&Wl!=226&&Wl!=228&&Wl!=229&&Wl!=230&&Wl!=231&&Wl!=232&&Wl!=233&&Wl!=234&&Wl!=239&&Wl!=240&&Wl!=241&&Wl!=242&&Wl!=245&&Wl!=247&&Wl!=249&&Wl!=253&&Wl!=254&&Wl!=255&&Wl!=257&&Wl!=258&&Wl!=260&&Wl!=262&&Wl!=263&&Wl!=266&&Wl!=267&&Wl!=269&&Wl!=272&&Wl!=276&&Wl!=283&&Wl!=10009&&Wl!=14935&&Wl!=14951&&Wl!=14981&&Wl!=14987&&Wl!=15002&&Wl!=15025&&Wl!=15096&&Wl!=15104&&Wl!=15107&&Wl!=15116&&Wl!=15121&&Wl!=16011&&Wl!=16049&&Wl!=16140&&Wl!=18007&&Wl!=18023&&Wl!=18053&&Wl!=18059&&Wl!=18074&&Wl!=18097&&Wl!=18168&&Wl!=18176&&Wl!=18179&&Wl!=18188&&Wl!=91735&&Wl!=91751&&Wl!=115333&&Wl!=118961&&Wl!=122507&&Wl!=131723&&Wl!=144128&&Wl!=147225){Wl=uc(9,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{cf(),Wl=-1}catch(a){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),pf(),Wl=-2}catch(f){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),vf(),Wl=-3}catch(l){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),If(),Wl=-12}catch(c){Wl=-13}}}}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(9,Vl,Wl)}}switch(Wl){case-2:hf();break;case-3:df();break;case 91735:mf();break;case 91751:yf();break;case 115333:wf();break;case 16011:case 16049:case 118961:case 122507:case 131723:Sf();break;case 18074:Cf();break;case 18168:Lf();break;case 144128:_f();break;case 18179:Pf();break;case-12:case 16140:Ff();break;case-13:qf();break;case 54:Uf();break;default:lf()}ic.endNonterminal(\"Statement\",Vl)}function ff(){switch($l){case 133:ql(147);break;case 139:ql(179);break;case 177:ql(166);break;case 256:ql(148);break;case 268:ql(143);break;case 281:ql(282);break;case 31:case 33:ql(245);break;case 87:case 103:ql(145);break;case 154:case 248:case 259:case 273:ql(95);break;default:Wl=$l}if(Wl!=6&&Wl!=8&&Wl!=9&&Wl!=10&&Wl!=11&&Wl!=32&&Wl!=35&&Wl!=36&&Wl!=41&&Wl!=43&&Wl!=47&&Wl!=48&&Wl!=54&&Wl!=55&&Wl!=56&&Wl!=60&&Wl!=69&&Wl!=71&&Wl!=73&&Wl!=74&&Wl!=75&&Wl!=76&&Wl!=78&&Wl!=79&&Wl!=80&&Wl!=81&&Wl!=82&&Wl!=83&&Wl!=84&&Wl!=85&&Wl!=86&&Wl!=89&&Wl!=90&&Wl!=91&&Wl!=92&&Wl!=94&&Wl!=95&&Wl!=97&&Wl!=98&&Wl!=99&&Wl!=102&&Wl!=104&&Wl!=105&&Wl!=106&&Wl!=107&&Wl!=109&&Wl!=110&&Wl!=111&&Wl!=112&&Wl!=113&&Wl!=114&&Wl!=119&&Wl!=120&&Wl!=121&&Wl!=122&&Wl!=123&&Wl!=124&&Wl!=125&&Wl!=126&&Wl!=127&&Wl!=129&&Wl!=130&&Wl!=132&&Wl!=134&&Wl!=135&&Wl!=136&&Wl!=137&&Wl!=138&&Wl!=142&&Wl!=143&&Wl!=147&&Wl!=148&&Wl!=150&&Wl!=152&&Wl!=153&&Wl!=155&&Wl!=156&&Wl!=157&&Wl!=161&&Wl!=162&&Wl!=163&&Wl!=164&&Wl!=165&&Wl!=166&&Wl!=167&&Wl!=168&&Wl!=169&&Wl!=170&&Wl!=173&&Wl!=174&&Wl!=175&&Wl!=179&&Wl!=181&&Wl!=183&&Wl!=184&&Wl!=185&&Wl!=187&&Wl!=188&&Wl!=189&&Wl!=194&&Wl!=195&&Wl!=196&&Wl!=197&&Wl!=198&&Wl!=202&&Wl!=203&&Wl!=204&&Wl!=205&&Wl!=206&&Wl!=207&&Wl!=210&&Wl!=216&&Wl!=217&&Wl!=220&&Wl!=222&&Wl!=223&&Wl!=224&&Wl!=225&&Wl!=226&&Wl!=228&&Wl!=229&&Wl!=230&&Wl!=231&&Wl!=232&&Wl!=233&&Wl!=234&&Wl!=239&&Wl!=240&&Wl!=241&&Wl!=242&&Wl!=245&&Wl!=247&&Wl!=249&&Wl!=253&&Wl!=254&&Wl!=255&&Wl!=257&&Wl!=258&&Wl!=260&&Wl!=262&&Wl!=263&&Wl!=266&&Wl!=267&&Wl!=269&&Wl!=272&&Wl!=276&&Wl!=283&&Wl!=10009&&Wl!=14935&&Wl!=14951&&Wl!=14981&&Wl!=14987&&Wl!=15002&&Wl!=15025&&Wl!=15096&&Wl!=15104&&Wl!=15107&&Wl!=15116&&Wl!=15121&&Wl!=16011&&Wl!=16049&&Wl!=16140&&Wl!=18007&&Wl!=18023&&Wl!=18053&&Wl!=18059&&Wl!=18074&&Wl!=18097&&Wl!=18168&&Wl!=18176&&Wl!=18179&&Wl!=18188&&Wl!=91735&&Wl!=91751&&Wl!=115333&&Wl!=118961&&Wl!=122507&&Wl!=131723&&Wl!=144128&&Wl!=147225){Wl=uc(9,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{cf(),oc(9,t,-1),Wl=-15}catch(a){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),pf(),oc(9,t,-2),Wl=-15}catch(f){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),vf(),oc(9,t,-3),Wl=-15}catch(l){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),If(),oc(9,t,-12),Wl=-15}catch(c){Wl=-13,Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(9,t,-13)}}}}}}switch(Wl){case-2:pf();break;case-3:vf();break;case 91735:gf();break;case 91751:bf();break;case 115333:Ef();break;case 16011:case 16049:case 118961:case 122507:case 131723:xf();break;case 18074:kf();break;case 18168:Af();break;case 144128:Df();break;case 18179:Hf();break;case-12:case 16140:If();break;case-13:Rf();break;case 54:zf();break;case-15:break;default:cf()}}function lf(){ic.startNonterminal(\"ApplyStatement\",Vl),Vf(),Pl(54),ic.endNonterminal(\"ApplyStatement\",Vl)}function cf(){$f(),Hl(54)}function hf(){ic.startNonterminal(\"AssignStatement\",Vl),Pl(31),Il(245),jl(),Ti(),Il(28),Pl(53),Il(266),jl(),Wf(),Pl(54),ic.endNonterminal(\"AssignStatement\",Vl)}function pf(){Hl(31),Il(245),Ni(),Il(28),Hl(53),Il(266),Xf(),Hl(54)}function df(){ic.startNonterminal(\"BlockStatement\",Vl),Pl(281),Il(270),jl(),af(),Il(280),jl(),tf(),Pl(287),ic.endNonterminal(\"BlockStatement\",Vl)}function vf(){Hl(281),Il(270),ff(),Il(280),nf(),Hl(287)}function mf(){ic.startNonterminal(\"BreakStatement\",Vl),Pl(87),Il(62),Pl(179),Il(29),Pl(54),ic.endNonterminal(\"BreakStatement\",Vl)}function gf(){Hl(87),Il(62),Hl(179),Il(29),Hl(54)}function yf(){ic.startNonterminal(\"ContinueStatement\",Vl),Pl(103),Il(62),Pl(179),Il(29),Pl(54),ic.endNonterminal(\"ContinueStatement\",Vl)}function bf(){Hl(103),Il(62),Hl(179),Il(29),Hl(54)}function wf(){ic.startNonterminal(\"ExitStatement\",Vl),Pl(133),Il(74),Pl(225),Il(266),jl(),Wf(),Pl(54),ic.endNonterminal(\"ExitStatement\",Vl)}function Ef(){Hl(133),Il(74),Hl(225),Il(266),Xf(),Hl(54)}function Sf(){ic.startNonterminal(\"FLWORStatement\",Vl),tt();for(;;){Il(195);if($l==224)break;jl(),rt()}jl(),Tf(),ic.endNonterminal(\"FLWORStatement\",Vl)}function xf(){nt();for(;;){Il(195);if($l==224)break;it()}Nf()}function Tf(){ic.startNonterminal(\"ReturnStatement\",Vl),Pl(224),Il(270),jl(),af(),ic.endNonterminal(\"ReturnStatement\",Vl)}function Nf(){Hl(224),Il(270),ff()}function Cf(){ic.startNonterminal(\"IfStatement\",Vl),Pl(154),Il(22),Pl(35),Il(266),jl(),G(),Pl(38),Il(80),Pl(250),Il(270),jl(),af(),Il(51),Pl(123),Il(270),jl(),af(),ic.endNonterminal(\"IfStatement\",Vl)}function kf(){Hl(154),Il(22),Hl(35),Il(266),Y(),Hl(38),Il(80),Hl(250),Il(270),ff(),Il(51),Hl(123),Il(270),ff()}function Lf(){ic.startNonterminal(\"SwitchStatement\",Vl),Pl(248),Il(22),Pl(35),Il(266),jl(),G(),Pl(38);for(;;){Il(38),jl(),Of(),Il(117);if($l!=89)break}Pl(110),Il(73),Pl(224),Il(270),jl(),af(),ic.endNonterminal(\"SwitchStatement\",Vl)}function Af(){Hl(248),Il(22),Hl(35),Il(266),Y(),Hl(38);for(;;){Il(38),Mf(),Il(117);if($l!=89)break}Hl(110),Il(73),Hl(224),Il(270),ff()}function Of(){ic.startNonterminal(\"SwitchCaseStatement\",Vl);for(;;){Pl(89),Il(266),jl(),dn();if($l!=89)break}Pl(224),Il(270),jl(),af(),ic.endNonterminal(\"SwitchCaseStatement\",Vl)}function Mf(){for(;;){Hl(89),Il(266),vn();if($l!=89)break}Hl(224),Il(270),ff()}function _f(){ic.startNonterminal(\"TryCatchStatement\",Vl),Pl(256),Il(90),jl(),df();for(;;){Il(39),Pl(92),Il(248),jl(),_n(),jl(),df(),Il(283);switch($l){case 92:ql(255);break;default:Wl=$l}if(Wl!=2652&&Wl!=3164&&Wl!=36444&&Wl!=37468&&Wl!=37980&&Wl!=38492&&Wl!=39004&&Wl!=40028&&Wl!=40540&&Wl!=41052&&Wl!=41564&&Wl!=42076&&Wl!=42588&&Wl!=43100&&Wl!=43612&&Wl!=44124&&Wl!=44636&&Wl!=45660&&Wl!=46172&&Wl!=46684&&Wl!=47196&&Wl!=48220&&Wl!=48732&&Wl!=49756&&Wl!=50268&&Wl!=50780&&Wl!=52316&&Wl!=52828&&Wl!=53340&&Wl!=53852&&Wl!=54364&&Wl!=54876&&Wl!=55900&&Wl!=56412&&Wl!=56924&&Wl!=57436&&Wl!=57948&&Wl!=58460&&Wl!=61020&&Wl!=61532&&Wl!=62044&&Wl!=62556&&Wl!=63068&&Wl!=63580&&Wl!=64092&&Wl!=64604&&Wl!=65116&&Wl!=66140&&Wl!=66652&&Wl!=67676&&Wl!=68188&&Wl!=68700&&Wl!=69212&&Wl!=69724&&Wl!=70236&&Wl!=70748&&Wl!=71260&&Wl!=72796&&Wl!=73308&&Wl!=75356&&Wl!=75868&&Wl!=76892&&Wl!=77916&&Wl!=78428&&Wl!=78940&&Wl!=79452&&Wl!=79964&&Wl!=80476&&Wl!=82524&&Wl!=83036&&Wl!=83548&&Wl!=84060&&Wl!=84572&&Wl!=85084&&Wl!=85596&&Wl!=86108&&Wl!=86620&&Wl!=87132&&Wl!=88668&&Wl!=89180&&Wl!=89692&&Wl!=90716&&Wl!=91740&&Wl!=92764&&Wl!=93788&&Wl!=94300&&Wl!=94812&&Wl!=95836&&Wl!=96348&&Wl!=96860&&Wl!=99420&&Wl!=99932&&Wl!=100956&&Wl!=101468&&Wl!=103516&&Wl!=104028&&Wl!=104540&&Wl!=105052&&Wl!=105564&&Wl!=106076&&Wl!=107612&&Wl!=110684&&Wl!=111196&&Wl!=112732&&Wl!=113756&&Wl!=114268&&Wl!=114780&&Wl!=115292&&Wl!=115804&&Wl!=116828&&Wl!=117340&&Wl!=117852&&Wl!=118364&&Wl!=118876&&Wl!=119388&&Wl!=119900&&Wl!=122460&&Wl!=122972&&Wl!=123484&&Wl!=123996&&Wl!=125532&&Wl!=126556&&Wl!=127068&&Wl!=127580&&Wl!=129628&&Wl!=130140&&Wl!=130652&&Wl!=131164&&Wl!=131676&&Wl!=132188&&Wl!=132700&&Wl!=133212&&Wl!=134236&&Wl!=134748&&Wl!=136284&&Wl!=136796&&Wl!=137308&&Wl!=137820&&Wl!=139356&&Wl!=139868&&Wl!=141404)break}ic.endNonterminal(\"TryCatchStatement\",Vl)}function Df(){Hl(256),Il(90),vf();for(;;){Il(39),Hl(92),Il(248),Dn(),vf(),Il(283);switch($l){case 92:ql(255);break;default:Wl=$l}if(Wl!=2652&&Wl!=3164&&Wl!=36444&&Wl!=37468&&Wl!=37980&&Wl!=38492&&Wl!=39004&&Wl!=40028&&Wl!=40540&&Wl!=41052&&Wl!=41564&&Wl!=42076&&Wl!=42588&&Wl!=43100&&Wl!=43612&&Wl!=44124&&Wl!=44636&&Wl!=45660&&Wl!=46172&&Wl!=46684&&Wl!=47196&&Wl!=48220&&Wl!=48732&&Wl!=49756&&Wl!=50268&&Wl!=50780&&Wl!=52316&&Wl!=52828&&Wl!=53340&&Wl!=53852&&Wl!=54364&&Wl!=54876&&Wl!=55900&&Wl!=56412&&Wl!=56924&&Wl!=57436&&Wl!=57948&&Wl!=58460&&Wl!=61020&&Wl!=61532&&Wl!=62044&&Wl!=62556&&Wl!=63068&&Wl!=63580&&Wl!=64092&&Wl!=64604&&Wl!=65116&&Wl!=66140&&Wl!=66652&&Wl!=67676&&Wl!=68188&&Wl!=68700&&Wl!=69212&&Wl!=69724&&Wl!=70236&&Wl!=70748&&Wl!=71260&&Wl!=72796&&Wl!=73308&&Wl!=75356&&Wl!=75868&&Wl!=76892&&Wl!=77916&&Wl!=78428&&Wl!=78940&&Wl!=79452&&Wl!=79964&&Wl!=80476&&Wl!=82524&&Wl!=83036&&Wl!=83548&&Wl!=84060&&Wl!=84572&&Wl!=85084&&Wl!=85596&&Wl!=86108&&Wl!=86620&&Wl!=87132&&Wl!=88668&&Wl!=89180&&Wl!=89692&&Wl!=90716&&Wl!=91740&&Wl!=92764&&Wl!=93788&&Wl!=94300&&Wl!=94812&&Wl!=95836&&Wl!=96348&&Wl!=96860&&Wl!=99420&&Wl!=99932&&Wl!=100956&&Wl!=101468&&Wl!=103516&&Wl!=104028&&Wl!=104540&&Wl!=105052&&Wl!=105564&&Wl!=106076&&Wl!=107612&&Wl!=110684&&Wl!=111196&&Wl!=112732&&Wl!=113756&&Wl!=114268&&Wl!=114780&&Wl!=115292&&Wl!=115804&&Wl!=116828&&Wl!=117340&&Wl!=117852&&Wl!=118364&&Wl!=118876&&Wl!=119388&&Wl!=119900&&Wl!=122460&&Wl!=122972&&Wl!=123484&&Wl!=123996&&Wl!=125532&&Wl!=126556&&Wl!=127068&&Wl!=127580&&Wl!=129628&&Wl!=130140&&Wl!=130652&&Wl!=131164&&Wl!=131676&&Wl!=132188&&Wl!=132700&&Wl!=133212&&Wl!=134236&&Wl!=134748&&Wl!=136284&&Wl!=136796&&Wl!=137308&&Wl!=137820&&Wl!=139356&&Wl!=139868&&Wl!=141404)break}}function Pf(){ic.startNonterminal(\"TypeswitchStatement\",Vl),Pl(259),Il(22),Pl(35),Il(266),jl(),G(),Pl(38);for(;;){Il(38),jl(),Bf(),Il(117);if($l!=89)break}Pl(110),Il(99),$l==31&&(Pl(31),Il(245),jl(),Ti()),Il(73),Pl(224),Il(270),jl(),af(),ic.endNonterminal(\"TypeswitchStatement\",Vl)}function Hf(){Hl(259),Il(22),Hl(35),Il(266),Y(),Hl(38);for(;;){Il(38),jf(),Il(117);if($l!=89)break}Hl(110),Il(99),$l==31&&(Hl(31),Il(245),Ni()),Il(73),Hl(224),Il(270),ff()}function Bf(){ic.startNonterminal(\"CaseStatement\",Vl),Pl(89),Il(257),$l==31&&(Pl(31),Il(245),jl(),Ti(),Il(33),Pl(80)),Il(253),jl(),Ls(),Il(73),Pl(224),Il(270),jl(),af(),ic.endNonterminal(\"CaseStatement\",Vl)}function jf(){Hl(89),Il(257),$l==31&&(Hl(31),Il(245),Ni(),Il(33),Hl(80)),Il(253),As(),Il(73),Hl(224),Il(270),ff()}function Ff(){ic.startNonterminal(\"VarDeclStatement\",Vl);for(;;){Il(102);if($l!=33)break;jl(),B()}Pl(268),Il(21),Pl(31),Il(245),jl(),Ti(),Il(172),$l==80&&(jl(),Cs()),Il(155),$l==53&&(Pl(53),Il(266),jl(),Wf());for(;;){if($l!=42)break;Pl(42),Il(21),Pl(31),Il(245),jl(),Ti(),Il(172),$l==80&&(jl(),Cs()),Il(155),$l==53&&(Pl(53),Il(266),jl(),Wf())}Pl(54),ic.endNonterminal(\"VarDeclStatement\",Vl)}function If(){for(;;){Il(102);if($l!=33)break;j()}Hl(268),Il(21),Hl(31),Il(245),Ni(),Il(172),$l==80&&ks(),Il(155),$l==53&&(Hl(53),Il(266),Xf());for(;;){if($l!=42)break;Hl(42),Il(21),Hl(31),Il(245),Ni(),Il(172),$l==80&&ks(),Il(155),$l==53&&(Hl(53),Il(266),Xf())}Hl(54)}function qf(){ic.startNonterminal(\"WhileStatement\",Vl),Pl(273),Il(22),Pl(35),Il(266),jl(),G(),Pl(38),Il(270),jl(),af(),ic.endNonterminal(\"WhileStatement\",Vl)}function Rf(){Hl(273),Il(22),Hl(35),Il(266),Y(),Hl(38),Il(270),ff()}function Uf(){ic.startNonterminal(\"VoidStatement\",Vl),Pl(54),ic.endNonterminal(\"VoidStatement\",Vl)}function zf(){Hl(54)}function Wf(){ic.startNonterminal(\"ExprSingle\",Vl);switch($l){case 139:ql(179);break;case 177:ql(166);break;case 256:ql(148);break;case 154:case 248:case 259:ql(95);break;default:Wl=$l}switch(Wl){case 16011:case 16049:case 118961:case 122507:case 131723:Z();break;case 18074:Sn();break;case 18168:ln();break;case 144128:Tn();break;case 18179:mn();break;default:Vf()}ic.endNonterminal(\"ExprSingle\",Vl)}function Xf(){switch($l){case 139:ql(179);break;case 177:ql(166);break;case 256:ql(148);break;case 154:case 248:case 259:ql(95);break;default:Wl=$l}switch(Wl){case 16011:case 16049:case 118961:case 122507:case 131723:et();break;case 18074:xn();break;case 18168:cn();break;case 144128:Nn();break;case 18179:gn();break;default:$f()}}function Vf(){ic.startNonterminal(\"ExprSimple\",Vl);switch($l){case 78:ql(268);break;case 161:ql(275);break;case 223:ql(170);break;case 111:case 222:ql(260);break;case 104:case 130:case 240:ql(143);break;default:Wl=$l}if(Wl==17998||Wl==18031||Wl==18081||Wl==18142||Wl==99439||Wl==99489||Wl==99550||Wl==99951||Wl==100001||Wl==136927){Wl=uc(10,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hn(),Wl=-2}catch(a){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),zo(),Wl=-3}catch(f){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Xo(),Wl=-4}catch(l){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Ko(),Wl=-5}catch(c){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),$o(),Wl=-6}catch(h){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Kf(),Wl=-8}catch(p){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Gf(),Wl=-9}catch(d){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Zf(),Wl=-10}catch(v){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),tl(),Wl=-11}catch(m){Wl=-12}}}}}}}}}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(10,Vl,Wl)}}switch(Wl){case 16002:case 16112:on();break;case-3:Uo();break;case-4:Wo();break;case-5:Jo();break;case-6:case 99551:Vo();break;case 15976:nu();break;case-8:case 3183:case 4207:case 4719:case 5231:case 5743:case 15983:case 16495:case 17007:case 28271:case 28783:case 30831:case 35439:case 36463:case 37487:case 37999:case 38511:case 39023:case 40047:case 40559:case 41071:case 41583:case 42095:case 42607:case 43119:case 43631:case 44143:case 44655:case 45679:case 46191:case 46703:case 47215:case 48239:case 48751:case 49775:case 50287:case 50799:case 52335:case 52847:case 53359:case 53871:case 54383:case 54895:case 55919:case 56431:case 56943:case 57455:case 57967:case 58479:case 61039:case 61551:case 62063:case 62575:case 63087:case 63599:case 64111:case 64623:case 65135:case 66159:case 66671:case 67695:case 68207:case 68719:case 69231:case 69743:case 70255:case 70767:case 71279:case 72815:case 73327:case 75375:case 75887:case 76911:case 77935:case 78447:case 78959:case 79471:case 79983:case 80495:case 82543:case 83055:case 83567:case 84079:case 84591:case 85103:case 85615:case 86127:case 86639:case 87151:case 88687:case 89199:case 89711:case 90735:case 91759:case 92783:case 93807:case 94319:case 94831:case 95855:case 96367:case 96879:case 100975:case 101487:case 103535:case 104047:case 104559:case 105071:case 105583:case 106095:case 107631:case 110703:case 111215:case 112751:case 113775:case 114287:case 114799:case 115311:case 115823:case 116847:case 117359:case 117871:case 118383:case 118895:case 119407:case 119919:case 122479:case 122991:case 123503:case 124015:case 125551:case 126575:case 127087:case 127599:case 129647:case 130159:case 130671:case 131183:case 131695:case 132207:case 132719:case 133231:case 134255:case 134767:case 136303:case 136815:case 137327:case 137839:case 139375:case 139887:case 141423:case 143983:case 145007:Jf();break;case-9:case 3233:case 4257:case 4769:case 5281:case 5793:case 9889:case 16033:case 16545:case 17057:case 18593:case 21153:case 22177:case 24225:case 24737:case 28321:case 28833:case 30881:case 35489:case 36513:case 37537:case 38049:case 38561:case 39073:case 40097:case 40609:case 41121:case 41633:case 42145:case 42657:case 43169:case 43681:case 44193:case 44705:case 45729:case 46241:case 46753:case 47265:case 48289:case 48801:case 49825:case 50337:case 50849:case 52385:case 52897:case 53409:case 53921:case 54433:case 54945:case 55969:case 56481:case 56993:case 57505:case 58017:case 58529:case 61089:case 61601:case 62113:case 62625:case 63137:case 63649:case 64161:case 64673:case 65185:case 66209:case 66721:case 67745:case 68257:case 68769:case 69281:case 69793:case 70305:case 70817:case 71329:case 72865:case 73377:case 75425:case 75937:case 76961:case 77985:case 78497:case 79009:case 79521:case 80033:case 80545:case 82593:case 83105:case 83617:case 84129:case 84641:case 85153:case 85665:case 86177:case 86689:case 87201:case 88737:case 89249:case 89761:case 90785:case 91809:case 92833:case 93857:case 94369:case 94881:case 95905:case 96417:case 96929:case 100513:case 101025:case 101537:case 103585:case 104097:case 104609:case 105121:case 105633:case 106145:case 107681:case 110753:case 111265:case 112801:case 113825:case 114337:case 114849:case 115361:case 115873:case 116897:case 117409:case 117921:case 118433:case 118945:case 119457:case 119969:case 122529:case 123041:case 123553:case 124065:case 125601:case 126625:case 127137:case 127649:case 129697:case 130209:case 130721:case 131233:case 131745:case 132257:case 132769:case 133281:case 134305:case 134817:case 136353:case 136865:case 137377:case 137889:case 139425:case 139937:case 141473:case 144033:case 145057:Qf();break;case-10:case 3294:case 4318:case 4830:case 5342:case 5854:case 16094:case 16606:case 17118:case 28382:case 28894:case 30942:case 35550:case 36574:case 37598:case 38110:case 38622:case 39134:case 40158:case 40670:case 41182:case 41694:case 42206:case 42718:case 43230:case 43742:case 44254:case 44766:case 45790:case 46302:case 46814:case 47326:case 48350:case 48862:case 49886:case 50398:case 50910:case 52446:case 52958:case 53470:case 53982:case 54494:case 55006:case 56030:case 56542:case 57054:case 57566:case 58078:case 58590:case 61150:case 61662:case 62174:case 62686:case 63198:case 63710:case 64222:case 64734:case 65246:case 66270:case 66782:case 67806:case 68318:case 68830:case 69342:case 69854:case 70366:case 70878:case 71390:case 72926:case 73438:case 75486:case 75998:case 77022:case 78046:case 78558:case 79070:case 79582:case 80094:case 80606:case 82654:case 83166:case 83678:case 84190:case 84702:case 85214:case 85726:case 86238:case 86750:case 87262:case 88798:case 89310:case 89822:case 90846:case 91870:case 92894:case 93918:case 94430:case 94942:case 95966:case 96478:case 96990:case 100062:case 101086:case 101598:case 103646:case 104158:case 104670:case 105182:case 105694:case 106206:case 107742:case 110814:case 111326:case 112862:case 113886:case 114398:case 114910:case 115422:case 115934:case 116958:case 117470:case 117982:case 118494:case 119006:case 119518:case 120030:case 122590:case 123102:case 123614:case 124126:case 125662:case 126686:case 127198:case 127710:case 129758:case 130270:case 130782:case 131294:case 131806:case 132318:case 132830:case 133342:case 134366:case 134878:case 136414:case 136926:case 137438:case 137950:case 139486:case 139998:case 141534:case 144094:case 145118:Yf();break;case-11:el();break;case-12:case 3150:case 4174:case 4686:case 5198:case 5710:case 15950:case 16462:case 16974:case 18510:case 21070:case 22094:case 24142:case 24654:case 28238:case 28750:case 30798:case 35406:case 36430:case 37454:case 37966:case 38478:case 38990:case 40014:case 40526:case 41038:case 41550:case 42062:case 42574:case 43086:case 43598:case 44110:case 44622:case 45646:case 46158:case 46670:case 47182:case 48206:case 48718:case 49742:case 50254:case 50766:case 52302:case 52814:case 53326:case 53838:case 54350:case 54862:case 55886:case 56398:case 56910:case 57422:case 57934:case 58446:case 61006:case 61518:case 62030:case 62542:case 63054:case 63566:case 64078:case 64590:case 65102:case 66126:case 66638:case 67662:case 68174:case 68686:case 69198:case 69710:case 70222:case 70734:case 71246:case 72782:case 73294:case 75342:case 75854:case 76878:case 77902:case 78414:case 78926:case 79438:case 79950:case 80462:case 82510:case 83022:case 83534:case 84046:case 84558:case 85070:case 85582:case 86094:case 86606:case 87118:case 88654:case 89166:case 89678:case 90702:case 91726:case 92750:case 93774:case 94286:case 94798:case 95822:case 96334:case 96846:case 99406:case 99918:case 100430:case 100942:case 101454:case 103502:case 104014:case 104526:case 105038:case 105550:case 106062:case 107598:case 110670:case 111182:case 112718:case 113742:case 114254:case 114766:case 115278:case 115790:case 116814:case 117326:case 117838:case 118350:case 118862:case 119374:case 119886:case 122446:case 122958:case 123470:case 123982:case 125518:case 126542:case 127054:case 127566:case 129614:case 130126:case 130638:case 131150:case 131662:case 132174:case 132686:case 133198:case 134222:case 134734:case 136270:case 136782:case 137294:case 137806:case 139342:case 139854:case 141390:case 143950:case 144974:nl();break;default:Pn()}ic.endNonterminal(\"ExprSimple\",Vl)}function $f(){switch($l){case 78:ql(268);break;case 161:ql(275);break;case 223:ql(170);break;case 111:case 222:ql(260);break;case 104:case 130:case 240:ql(143);break;default:Wl=$l}if(Wl==17998||Wl==18031||Wl==18081||Wl==18142||Wl==99439||Wl==99489||Wl==99550||Wl==99951||Wl==100001||Wl==136927){Wl=uc(10,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hn(),oc(10,t,-2),Wl=-13}catch(a){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),zo(),oc(10,t,-3),Wl=-13}catch(f){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Xo(),oc(10,t,-4),Wl=-13}catch(l){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Ko(),oc(10,t,-5),Wl=-13}catch(c){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),$o(),oc(10,t,-6),Wl=-13}catch(h){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Kf(),oc(10,t,-8),Wl=-13}catch(p){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Gf(),oc(10,t,-9),Wl=-13}catch(d){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Zf(),oc(10,t,-10),Wl=-13}catch(v){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),tl(),oc(10,t,-11),Wl=-13}catch(m){Wl=-12,Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(10,t,-12)}}}}}}}}}}}switch(Wl){case 16002:case 16112:un();break;case-3:zo();break;case-4:Xo();break;case-5:Ko();break;case-6:case 99551:$o();break;case 15976:ru();break;case-8:case 3183:case 4207:case 4719:case 5231:case 5743:case 15983:case 16495:case 17007:case 28271:case 28783:case 30831:case 35439:case 36463:case 37487:case 37999:case 38511:case 39023:case 40047:case 40559:case 41071:case 41583:case 42095:case 42607:case 43119:case 43631:case 44143:case 44655:case 45679:case 46191:case 46703:case 47215:case 48239:case 48751:case 49775:case 50287:case 50799:case 52335:case 52847:case 53359:case 53871:case 54383:case 54895:case 55919:case 56431:case 56943:case 57455:case 57967:case 58479:case 61039:case 61551:case 62063:case 62575:case 63087:case 63599:case 64111:case 64623:case 65135:case 66159:case 66671:case 67695:case 68207:case 68719:case 69231:case 69743:case 70255:case 70767:case 71279:case 72815:case 73327:case 75375:case 75887:case 76911:case 77935:case 78447:case 78959:case 79471:case 79983:case 80495:case 82543:case 83055:case 83567:case 84079:case 84591:case 85103:case 85615:case 86127:case 86639:case 87151:case 88687:case 89199:case 89711:case 90735:case 91759:case 92783:case 93807:case 94319:case 94831:case 95855:case 96367:case 96879:case 100975:case 101487:case 103535:case 104047:case 104559:case 105071:case 105583:case 106095:case 107631:case 110703:case 111215:case 112751:case 113775:case 114287:case 114799:case 115311:case 115823:case 116847:case 117359:case 117871:case 118383:case 118895:case 119407:case 119919:case 122479:case 122991:case 123503:case 124015:case 125551:case 126575:case 127087:case 127599:case 129647:case 130159:case 130671:case 131183:case 131695:case 132207:case 132719:case 133231:case 134255:case 134767:case 136303:case 136815:case 137327:case 137839:case 139375:case 139887:case 141423:case 143983:case 145007:Kf();break;case-9:case 3233:case 4257:case 4769:case 5281:case 5793:case 9889:case 16033:case 16545:case 17057:case 18593:case 21153:case 22177:case 24225:case 24737:case 28321:case 28833:case 30881:case 35489:case 36513:case 37537:case 38049:case 38561:case 39073:case 40097:case 40609:case 41121:case 41633:case 42145:case 42657:case 43169:case 43681:case 44193:case 44705:case 45729:case 46241:case 46753:case 47265:case 48289:case 48801:case 49825:case 50337:case 50849:case 52385:case 52897:case 53409:case 53921:case 54433:case 54945:case 55969:case 56481:case 56993:case 57505:case 58017:case 58529:case 61089:case 61601:case 62113:case 62625:case 63137:case 63649:case 64161:case 64673:case 65185:case 66209:case 66721:case 67745:case 68257:case 68769:case 69281:case 69793:case 70305:case 70817:case 71329:case 72865:case 73377:case 75425:case 75937:case 76961:case 77985:case 78497:case 79009:case 79521:case 80033:case 80545:case 82593:case 83105:case 83617:case 84129:case 84641:case 85153:case 85665:case 86177:case 86689:case 87201:case 88737:case 89249:case 89761:case 90785:case 91809:case 92833:case 93857:case 94369:case 94881:case 95905:case 96417:case 96929:case 100513:case 101025:case 101537:case 103585:case 104097:case 104609:case 105121:case 105633:case 106145:case 107681:case 110753:case 111265:case 112801:case 113825:case 114337:case 114849:case 115361:case 115873:case 116897:case 117409:case 117921:case 118433:case 118945:case 119457:case 119969:case 122529:case 123041:case 123553:case 124065:case 125601:case 126625:case 127137:case 127649:case 129697:case 130209:case 130721:case 131233:case 131745:case 132257:case 132769:case 133281:case 134305:case 134817:case 136353:case 136865:case 137377:case 137889:case 139425:case 139937:case 141473:case 144033:case 145057:Gf();break;case-10:case 3294:case 4318:case 4830:case 5342:case 5854:case 16094:case 16606:case 17118:case 28382:case 28894:case 30942:case 35550:case 36574:case 37598:case 38110:case 38622:case 39134:case 40158:case 40670:case 41182:case 41694:case 42206:case 42718:case 43230:case 43742:case 44254:case 44766:case 45790:case 46302:case 46814:case 47326:case 48350:case 48862:case 49886:case 50398:case 50910:case 52446:case 52958:case 53470:case 53982:case 54494:case 55006:case 56030:case 56542:case 57054:case 57566:case 58078:case 58590:case 61150:case 61662:case 62174:case 62686:case 63198:case 63710:case 64222:case 64734:case 65246:case 66270:case 66782:case 67806:case 68318:case 68830:case 69342:case 69854:case 70366:case 70878:case 71390:case 72926:case 73438:case 75486:case 75998:case 77022:case 78046:case 78558:case 79070:case 79582:case 80094:case 80606:case 82654:case 83166:case 83678:case 84190:case 84702:case 85214:case 85726:case 86238:case 86750:case 87262:case 88798:case 89310:case 89822:case 90846:case 91870:case 92894:case 93918:case 94430:case 94942:case 95966:case 96478:case 96990:case 100062:case 101086:case 101598:case 103646:case 104158:case 104670:case 105182:case 105694:case 106206:case 107742:case 110814:case 111326:case 112862:case 113886:case 114398:case 114910:case 115422:case 115934:case 116958:case 117470:case 117982:case 118494:case 119006:case 119518:case 120030:case 122590:case 123102:case 123614:case 124126:case 125662:case 126686:case 127198:case 127710:case 129758:case 130270:case 130782:case 131294:case 131806:case 132318:case 132830:case 133342:case 134366:case 134878:case 136414:case 136926:case 137438:case 137950:case 139486:case 139998:case 141534:case 144094:case 145118:Zf();break;case-11:tl();break;case-12:case 3150:case 4174:case 4686:case 5198:case 5710:case 15950:case 16462:case 16974:case 18510:case 21070:case 22094:case 24142:case 24654:case 28238:case 28750:case 30798:case 35406:case 36430:case 37454:case 37966:case 38478:case 38990:case 40014:case 40526:case 41038:case 41550:case 42062:case 42574:case 43086:case 43598:case 44110:case 44622:case 45646:case 46158:case 46670:case 47182:case 48206:case 48718:case 49742:case 50254:case 50766:case 52302:case 52814:case 53326:case 53838:case 54350:case 54862:case 55886:case 56398:case 56910:case 57422:case 57934:case 58446:case 61006:case 61518:case 62030:case 62542:case 63054:case 63566:case 64078:case 64590:case 65102:case 66126:case 66638:case 67662:case 68174:case 68686:case 69198:case 69710:case 70222:case 70734:case 71246:case 72782:case 73294:case 75342:case 75854:case 76878:case 77902:case 78414:case 78926:case 79438:case 79950:case 80462:case 82510:case 83022:case 83534:case 84046:case 84558:case 85070:case 85582:case 86094:case 86606:case 87118:case 88654:case 89166:case 89678:case 90702:case 91726:case 92750:case 93774:case 94286:case 94798:case 95822:case 96334:case 96846:case 99406:case 99918:case 100430:case 100942:case 101454:case 103502:case 104014:case 104526:case 105038:case 105550:case 106062:case 107598:case 110670:case 111182:case 112718:case 113742:case 114254:case 114766:case 115278:case 115790:case 116814:case 117326:case 117838:case 118350:case 118862:case 119374:case 119886:case 122446:case 122958:case 123470:case 123982:case 125518:case 126542:case 127054:case 127566:case 129614:case 130126:case 130638:case 131150:case 131662:case 132174:case 132686:case 133198:case 134222:case 134734:case 136270:case 136782:case 137294:case 137806:case 139342:case 139854:case 141390:case 143950:case 144974:rl();break;case-13:break;default:Hn()}}function Jf(){ic.startNonterminal(\"JSONDeleteExpr\",Vl),Pl(111),Il(259);switch($l){case 168:ql(260);break;default:Wl=$l}if(Wl==18088){Wl=uc(11,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hl(168),Wl=-1}catch(a){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(11,Vl,Wl)}}(Wl==-1||Wl==3240||Wl==4264||Wl==4776||Wl==5288||Wl==5800||Wl==16040||Wl==16552||Wl==17064||Wl==28328||Wl==28840||Wl==30888||Wl==35496||Wl==36520||Wl==37544||Wl==38056||Wl==38568||Wl==39080||Wl==40104||Wl==40616||Wl==41128||Wl==41640||Wl==42152||Wl==42664||Wl==43176||Wl==43688||Wl==44200||Wl==44712||Wl==45736||Wl==46248||Wl==46760||Wl==47272||Wl==48296||Wl==48808||Wl==49832||Wl==50344||Wl==50856||Wl==52392||Wl==52904||Wl==53416||Wl==53928||Wl==54440||Wl==54952||Wl==55976||Wl==56488||Wl==57e3||Wl==57512||Wl==58024||Wl==58536||Wl==61096||Wl==61608||Wl==62120||Wl==62632||Wl==63144||Wl==63656||Wl==64168||Wl==64680||Wl==65192||Wl==66216||Wl==66728||Wl==67752||Wl==68264||Wl==68776||Wl==69288||Wl==69800||Wl==70312||Wl==70824||Wl==71336||Wl==72872||Wl==73384||Wl==75432||Wl==75944||Wl==76968||Wl==77992||Wl==78504||Wl==79016||Wl==79528||Wl==80040||Wl==80552||Wl==82600||Wl==83112||Wl==83624||Wl==84136||Wl==84648||Wl==85160||Wl==85672||Wl==86184||Wl==86696||Wl==87208||Wl==88744||Wl==89256||Wl==89768||Wl==90792||Wl==91816||Wl==92840||Wl==93864||Wl==94376||Wl==94888||Wl==95912||Wl==96424||Wl==96936||Wl==99496||Wl==100008||Wl==101032||Wl==101544||Wl==103592||Wl==104104||Wl==104616||Wl==105128||Wl==105640||Wl==106152||Wl==107688||Wl==110760||Wl==111272||Wl==112808||Wl==113832||Wl==114344||Wl==114856||Wl==115368||Wl==115880||Wl==116904||Wl==117416||Wl==117928||Wl==118440||Wl==118952||Wl==119464||Wl==119976||Wl==122536||Wl==123048||Wl==123560||Wl==124072||Wl==125608||Wl==126632||Wl==127144||Wl==127656||Wl==129704||Wl==130216||Wl==130728||Wl==131240||Wl==131752||Wl==132264||Wl==132776||Wl==133288||Wl==134312||Wl==134824||Wl==136360||Wl==136872||Wl==137384||Wl==137896||Wl==139432||Wl==139944||Wl==141480||Wl==144040||Wl==145064)&&Pl(168),Il(259),jl(),ei(),ic.endNonterminal(\"JSONDeleteExpr\",Vl)}function Kf(){Hl(111),Il(259);switch($l){case 168:ql(260);break;default:Wl=$l}if(Wl==18088){Wl=uc(11,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hl(168),oc(11,t,-1)}catch(a){Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(11,t,-2)}Wl=-2}}(Wl==-1||Wl==3240||Wl==4264||Wl==4776||Wl==5288||Wl==5800||Wl==16040||Wl==16552||Wl==17064||Wl==28328||Wl==28840||Wl==30888||Wl==35496||Wl==36520||Wl==37544||Wl==38056||Wl==38568||Wl==39080||Wl==40104||Wl==40616||Wl==41128||Wl==41640||Wl==42152||Wl==42664||Wl==43176||Wl==43688||Wl==44200||Wl==44712||Wl==45736||Wl==46248||Wl==46760||Wl==47272||Wl==48296||Wl==48808||Wl==49832||Wl==50344||Wl==50856||Wl==52392||Wl==52904||Wl==53416||Wl==53928||Wl==54440||Wl==54952||Wl==55976||Wl==56488||Wl==57e3||Wl==57512||Wl==58024||Wl==58536||Wl==61096||Wl==61608||Wl==62120||Wl==62632||Wl==63144||Wl==63656||Wl==64168||Wl==64680||Wl==65192||Wl==66216||Wl==66728||Wl==67752||Wl==68264||Wl==68776||Wl==69288||Wl==69800||Wl==70312||Wl==70824||Wl==71336||Wl==72872||Wl==73384||Wl==75432||Wl==75944||Wl==76968||Wl==77992||Wl==78504||Wl==79016||Wl==79528||Wl==80040||Wl==80552||Wl==82600||Wl==83112||Wl==83624||Wl==84136||Wl==84648||Wl==85160||Wl==85672||Wl==86184||Wl==86696||Wl==87208||Wl==88744||Wl==89256||Wl==89768||Wl==90792||Wl==91816||Wl==92840||Wl==93864||Wl==94376||Wl==94888||Wl==95912||Wl==96424||Wl==96936||Wl==99496||Wl==100008||Wl==101032||Wl==101544||Wl==103592||Wl==104104||Wl==104616||Wl==105128||Wl==105640||Wl==106152||Wl==107688||Wl==110760||Wl==111272||Wl==112808||Wl==113832||Wl==114344||Wl==114856||Wl==115368||Wl==115880||Wl==116904||Wl==117416||Wl==117928||Wl==118440||Wl==118952||Wl==119464||Wl==119976||Wl==122536||Wl==123048||Wl==123560||Wl==124072||Wl==125608||Wl==126632||Wl==127144||Wl==127656||Wl==129704||Wl==130216||Wl==130728||Wl==131240||Wl==131752||Wl==132264||Wl==132776||Wl==133288||Wl==134312||Wl==134824||Wl==136360||Wl==136872||Wl==137384||Wl==137896||Wl==139432||Wl==139944||Wl==141480||Wl==144040||Wl==145064)&&Hl(168),Il(259),ti()}function Qf(){ic.startNonterminal(\"JSONInsertExpr\",Vl);switch($l){case 161:ql(267);break;default:Wl=$l}if(Wl!=9889){Wl=uc(12,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hl(161),Il(266);switch($l){case 168:ql(268);break;default:Wl=$l}if(Wl==18088){Wl=uc(13,Vl);if(Wl==0){var a=Xl,f=Vl,l=$l,c=Jl,h=Kl,p=Ql,d=Gl,v=Yl;try{Hl(168),oc(13,f,-1)}catch(m){Xl=a,Vl=f,$l=l,$l==0?cc=f:(Jl=c,Kl=h,Ql=p,Ql==0?cc=h:(Gl=d,Yl=v,cc=v)),oc(13,f,-2)}Wl=-2}}(Wl==-1||Wl==3240||Wl==4264||Wl==4776||Wl==5288||Wl==5800||Wl==16040||Wl==16552||Wl==17064||Wl==18600||Wl==21160||Wl==22184||Wl==24232||Wl==24744||Wl==28328||Wl==28840||Wl==30888||Wl==35496||Wl==36520||Wl==37544||Wl==38056||Wl==38568||Wl==39080||Wl==40104||Wl==40616||Wl==41128||Wl==41640||Wl==42152||Wl==42664||Wl==43176||Wl==43688||Wl==44200||Wl==44712||Wl==45736||Wl==46248||Wl==46760||Wl==47272||Wl==48296||Wl==48808||Wl==49832||Wl==50344||Wl==50856||Wl==52392||Wl==52904||Wl==53416||Wl==53928||Wl==54440||Wl==54952||Wl==55976||Wl==56488||Wl==57e3||Wl==57512||Wl==58024||Wl==58536||Wl==61096||Wl==61608||Wl==62120||Wl==62632||Wl==63144||Wl==63656||Wl==64168||Wl==64680||Wl==65192||Wl==66216||Wl==66728||Wl==67752||Wl==68264||Wl==68776||Wl==69288||Wl==69800||Wl==70312||Wl==70824||Wl==71336||Wl==72872||Wl==73384||Wl==75432||Wl==75944||Wl==76968||Wl==77992||Wl==78504||Wl==79016||Wl==79528||Wl==80040||Wl==80552||Wl==82600||Wl==83112||Wl==83624||Wl==84136||Wl==84648||Wl==85160||Wl==85672||Wl==86184||Wl==86696||Wl==87208||Wl==88744||Wl==89256||Wl==89768||Wl==90792||Wl==91816||Wl==92840||Wl==93864||Wl==94376||Wl==94888||Wl==95912||Wl==96424||Wl==96936||Wl==99496||Wl==100008||Wl==100520||Wl==101032||Wl==101544||Wl==103592||Wl==104104||Wl==104616||Wl==105128||Wl==105640||Wl==106152||Wl==107688||Wl==110760||Wl==111272||Wl==112808||Wl==113832||Wl==114344||Wl==114856||Wl==115368||Wl==115880||Wl==116904||Wl==117416||Wl==117928||Wl==118440||Wl==118952||Wl==119464||Wl==119976||Wl==122536||Wl==123048||Wl==123560||Wl==124072||Wl==125608||Wl==126632||Wl==127144||Wl==127656||Wl==129704||Wl==130216||Wl==130728||Wl==131240||Wl==131752||Wl==132264||Wl==132776||Wl==133288||Wl==134312||Wl==134824||Wl==136360||Wl==136872||Wl==137384||Wl==137896||Wl==139432||Wl==139944||Wl==141480||Wl==144040||Wl==145064)&&Hl(168),Il(266),Xf(),Hl(165),Il(266),Xf();switch($l){case 82:ql(72);break;default:Wl=$l}if(Wl==110162){Wl=uc(14,Vl);if(Wl==0){var a=Xl,f=Vl,l=$l,c=Jl,h=Kl,p=Ql,d=Gl,v=Yl;try{Hl(82),Il(72),Hl(215),Il(266),Xf(),oc(14,f,-1)}catch(m){Xl=a,Vl=f,$l=l,$l==0?cc=f:(Jl=c,Kl=h,Ql=p,Ql==0?cc=h:(Gl=d,Yl=v,cc=v)),oc(14,f,-2)}Wl=-2}}Wl==-1&&(Hl(82),Il(72),Hl(215),Il(266),Xf()),Wl=-1}catch(g){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(12,Vl,Wl)}}switch(Wl){case-1:Pl(161),Il(266);switch($l){case 168:ql(268);break;default:Wl=$l}if(Wl==18088){Wl=uc(13,Vl);if(Wl==0){var a=Xl,f=Vl,l=$l,c=Jl,h=Kl,p=Ql,d=Gl,v=Yl;try{Hl(168),Wl=-1}catch(m){Wl=-2}Xl=a,Vl=f,$l=l,$l==0?cc=f:(Jl=c,Kl=h,Ql=p,Ql==0?cc=h:(Gl=d,Yl=v,cc=v)),oc(13,Vl,Wl)}}(Wl==-1||Wl==3240||Wl==4264||Wl==4776||Wl==5288||Wl==5800||Wl==16040||Wl==16552||Wl==17064||Wl==18600||Wl==21160||Wl==22184||Wl==24232||Wl==24744||Wl==28328||Wl==28840||Wl==30888||Wl==35496||Wl==36520||Wl==37544||Wl==38056||Wl==38568||Wl==39080||Wl==40104||Wl==40616||Wl==41128||Wl==41640||Wl==42152||Wl==42664||Wl==43176||Wl==43688||Wl==44200||Wl==44712||Wl==45736||Wl==46248||Wl==46760||Wl==47272||Wl==48296||Wl==48808||Wl==49832||Wl==50344||Wl==50856||Wl==52392||Wl==52904||Wl==53416||Wl==53928||Wl==54440||Wl==54952||Wl==55976||Wl==56488||Wl==57e3||Wl==57512||Wl==58024||Wl==58536||Wl==61096||Wl==61608||Wl==62120||Wl==62632||Wl==63144||Wl==63656||Wl==64168||Wl==64680||Wl==65192||Wl==66216||Wl==66728||Wl==67752||Wl==68264||Wl==68776||Wl==69288||Wl==69800||Wl==70312||Wl==70824||Wl==71336||Wl==72872||Wl==73384||Wl==75432||Wl==75944||Wl==76968||Wl==77992||Wl==78504||Wl==79016||Wl==79528||Wl==80040||Wl==80552||Wl==82600||Wl==83112||Wl==83624||Wl==84136||Wl==84648||Wl==85160||Wl==85672||Wl==86184||Wl==86696||Wl==87208||Wl==88744||Wl==89256||Wl==89768||Wl==90792||Wl==91816||Wl==92840||Wl==93864||Wl==94376||Wl==94888||Wl==95912||Wl==96424||Wl==96936||Wl==99496||Wl==100008||Wl==100520||Wl==101032||Wl==101544||Wl==103592||Wl==104104||Wl==104616||Wl==105128||Wl==105640||Wl==106152||Wl==107688||Wl==110760||Wl==111272||Wl==112808||Wl==113832||Wl==114344||Wl==114856||Wl==115368||Wl==115880||Wl==116904||Wl==117416||Wl==117928||Wl==118440||Wl==118952||Wl==119464||Wl==119976||Wl==122536||Wl==123048||Wl==123560||Wl==124072||Wl==125608||Wl==126632||Wl==127144||Wl==127656||Wl==129704||Wl==130216||Wl==130728||Wl==131240||Wl==131752||Wl==132264||Wl==132776||Wl==133288||Wl==134312||Wl==134824||Wl==136360||Wl==136872||Wl==137384||Wl==137896||Wl==139432||Wl==139944||Wl==141480||Wl==144040||Wl==145064)&&Pl(168),Il(266),jl(),Wf(),Pl(165),Il(266),jl(),Wf();switch($l){case 82:ql(72);break;default:Wl=$l}if(Wl==110162){Wl=uc(14,Vl);if(Wl==0){var a=Xl,f=Vl,l=$l,c=Jl,h=Kl,p=Ql,d=Gl,v=Yl;try{Hl(82),Il(72),Hl(215),Il(266),Xf(),Wl=-1}catch(m){Wl=-2}Xl=a,Vl=f,$l=l,$l==0?cc=f:(Jl=c,Kl=h,Ql=p,Ql==0?cc=h:(Gl=d,Yl=v,cc=v)),oc(14,Vl,Wl)}}Wl==-1&&(Pl(82),Il(72),Pl(215),Il(266),jl(),Wf());break;default:Pl(161),Il(267);switch($l){case 168:ql(281);break;default:Wl=$l}if(Wl==18088){Wl=uc(15,Vl);if(Wl==0){var a=Xl,f=Vl,l=$l,c=Jl,h=Kl,p=Ql,d=Gl,v=Yl;try{Hl(168),Wl=-1}catch(m){Wl=-2}Xl=a,Vl=f,$l=l,$l==0?cc=f:(Jl=c,Kl=h,Ql=p,Ql==0?cc=h:(Gl=d,Yl=v,cc=v)),oc(15,Vl,Wl)}}(Wl==-1||Wl==3240||Wl==4264||Wl==4776||Wl==5288||Wl==5800||Wl==9896||Wl==16040||Wl==16552||Wl==17064||Wl==18600||Wl==21160||Wl==22184||Wl==24232||Wl==24744||Wl==28328||Wl==28840||Wl==30888||Wl==35496||Wl==36520||Wl==37544||Wl==38056||Wl==38568||Wl==39080||Wl==40104||Wl==40616||Wl==41128||Wl==41640||Wl==42152||Wl==42664||Wl==43176||Wl==43688||Wl==44200||Wl==44712||Wl==45736||Wl==46248||Wl==46760||Wl==47272||Wl==48296||Wl==48808||Wl==49832||Wl==50344||Wl==50856||Wl==52392||Wl==52904||Wl==53416||Wl==53928||Wl==54440||Wl==54952||Wl==55976||Wl==56488||Wl==57e3||Wl==57512||Wl==58024||Wl==58536||Wl==61096||Wl==61608||Wl==62120||Wl==62632||Wl==63144||Wl==63656||Wl==64168||Wl==64680||Wl==65192||Wl==66216||Wl==66728||Wl==67752||Wl==68264||Wl==68776||Wl==69288||Wl==69800||Wl==70312||Wl==70824||Wl==71336||Wl==72872||Wl==73384||Wl==75432||Wl==75944||Wl==76968||Wl==77992||Wl==78504||Wl==79016||Wl==79528||Wl==80040||Wl==80552||Wl==82600||Wl==83112||Wl==83624||Wl==84136||Wl==84648||Wl==85160||Wl==85672||Wl==86184||Wl==86696||Wl==87208||Wl==88744||Wl==89256||Wl==89768||Wl==90792||Wl==91816||Wl==92840||Wl==93864||Wl==94376||Wl==94888||Wl==95912||Wl==96424||Wl==96936||Wl==99496||Wl==100008||Wl==100520||Wl==101032||Wl==101544||Wl==103592||Wl==104104||Wl==104616||Wl==105128||Wl==105640||Wl==106152||Wl==107688||Wl==110760||Wl==111272||Wl==112808||Wl==113832||Wl==114344||Wl==114856||Wl==115368||Wl==115880||Wl==116904||Wl==117416||Wl==117928||Wl==118440||Wl==118952||Wl==119464||Wl==119976||Wl==122536||Wl==123048||Wl==123560||Wl==124072||Wl==125608||Wl==126632||Wl==127144||Wl==127656||Wl==129704||Wl==130216||Wl==130728||Wl==131240||Wl==131752||Wl==132264||Wl==132776||Wl==133288||Wl==134312||Wl==134824||Wl==136360||Wl==136872||Wl==137384||Wl==137896||Wl==139432||Wl==139944||Wl==141480||Wl==144040||Wl==145064)&&Pl(168),Il(267),jl(),Tl(),Pl(165),Il(266),jl(),Wf()}ic.endNonterminal(\"JSONInsertExpr\",Vl)}function Gf(){switch($l){case 161:ql(267);break;default:Wl=$l}if(Wl!=9889){Wl=uc(12,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hl(161),Il(266);switch($l){case 168:ql(268);break;default:Wl=$l}if(Wl==18088){Wl=uc(13,Vl);if(Wl==0){var a=Xl,f=Vl,l=$l,c=Jl,h=Kl,p=Ql,d=Gl,v=Yl;try{Hl(168),oc(13,f,-1)}catch(m){Xl=a,Vl=f,$l=l,$l==0?cc=f:(Jl=c,Kl=h,Ql=p,Ql==0?cc=h:(Gl=d,Yl=v,cc=v)),oc(13,f,-2)}Wl=-2}}(Wl==-1||Wl==3240||Wl==4264||Wl==4776||Wl==5288||Wl==5800||Wl==16040||Wl==16552||Wl==17064||Wl==18600||Wl==21160||Wl==22184||Wl==24232||Wl==24744||Wl==28328||Wl==28840||Wl==30888||Wl==35496||Wl==36520||Wl==37544||Wl==38056||Wl==38568||Wl==39080||Wl==40104||Wl==40616||Wl==41128||Wl==41640||Wl==42152||Wl==42664||Wl==43176||Wl==43688||Wl==44200||Wl==44712||Wl==45736||Wl==46248||Wl==46760||Wl==47272||Wl==48296||Wl==48808||Wl==49832||Wl==50344||Wl==50856||Wl==52392||Wl==52904||Wl==53416||Wl==53928||Wl==54440||Wl==54952||Wl==55976||Wl==56488||Wl==57e3||Wl==57512||Wl==58024||Wl==58536||Wl==61096||Wl==61608||Wl==62120||Wl==62632||Wl==63144||Wl==63656||Wl==64168||Wl==64680||Wl==65192||Wl==66216||Wl==66728||Wl==67752||Wl==68264||Wl==68776||Wl==69288||Wl==69800||Wl==70312||Wl==70824||Wl==71336||Wl==72872||Wl==73384||Wl==75432||Wl==75944||Wl==76968||Wl==77992||Wl==78504||Wl==79016||Wl==79528||Wl==80040||Wl==80552||Wl==82600||Wl==83112||Wl==83624||Wl==84136||Wl==84648||Wl==85160||Wl==85672||Wl==86184||Wl==86696||Wl==87208||Wl==88744||Wl==89256||Wl==89768||Wl==90792||Wl==91816||Wl==92840||Wl==93864||Wl==94376||Wl==94888||Wl==95912||Wl==96424||Wl==96936||Wl==99496||Wl==100008||Wl==100520||Wl==101032||Wl==101544||Wl==103592||Wl==104104||Wl==104616||Wl==105128||Wl==105640||Wl==106152||Wl==107688||Wl==110760||Wl==111272||Wl==112808||Wl==113832||Wl==114344||Wl==114856||Wl==115368||Wl==115880||Wl==116904||Wl==117416||Wl==117928||Wl==118440||Wl==118952||Wl==119464||Wl==119976||Wl==122536||Wl==123048||Wl==123560||Wl==124072||Wl==125608||Wl==126632||Wl==127144||Wl==127656||Wl==129704||Wl==130216||Wl==130728||Wl==131240||Wl==131752||Wl==132264||Wl==132776||Wl==133288||Wl==134312||Wl==134824||Wl==136360||Wl==136872||Wl==137384||Wl==137896||Wl==139432||Wl==139944||Wl==141480||Wl==144040||Wl==145064)&&Hl(168),Il(266),Xf(),Hl(165),Il(266),Xf();switch($l){case 82:ql(72);break;default:Wl=$l}if(Wl==110162){Wl=uc(14,Vl);if(Wl==0){var a=Xl,f=Vl,l=$l,c=Jl,h=Kl,p=Ql,d=Gl,v=Yl;try{Hl(82),Il(72),Hl(215),Il(266),Xf(),oc(14,f,-1)}catch(m){Xl=a,Vl=f,$l=l,$l==0?cc=f:(Jl=c,Kl=h,Ql=p,Ql==0?cc=h:(Gl=d,Yl=v,cc=v)),oc(14,f,-2)}Wl=-2}}Wl==-1&&(Hl(82),Il(72),Hl(215),Il(266),Xf()),oc(12,t,-1),Wl=-3}catch(g){Wl=-2,Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(12,t,-2)}}}switch(Wl){case-1:Hl(161),Il(266);switch($l){case 168:ql(268);break;default:Wl=$l}if(Wl==18088){Wl=uc(13,Vl);if(Wl==0){var a=Xl,f=Vl,l=$l,c=Jl,h=Kl,p=Ql,d=Gl,v=Yl;try{Hl(168),oc(13,f,-1)}catch(m){Xl=a,Vl=f,$l=l,$l==0?cc=f:(Jl=c,Kl=h,Ql=p,Ql==0?cc=h:(Gl=d,Yl=v,cc=v)),oc(13,f,-2)}Wl=-2}}(Wl==-1||Wl==3240||Wl==4264||Wl==4776||Wl==5288||Wl==5800||Wl==16040||Wl==16552||Wl==17064||Wl==18600||Wl==21160||Wl==22184||Wl==24232||Wl==24744||Wl==28328||Wl==28840||Wl==30888||Wl==35496||Wl==36520||Wl==37544||Wl==38056||Wl==38568||Wl==39080||Wl==40104||Wl==40616||Wl==41128||Wl==41640||Wl==42152||Wl==42664||Wl==43176||Wl==43688||Wl==44200||Wl==44712||Wl==45736||Wl==46248||Wl==46760||Wl==47272||Wl==48296||Wl==48808||Wl==49832||Wl==50344||Wl==50856||Wl==52392||Wl==52904||Wl==53416||Wl==53928||Wl==54440||Wl==54952||Wl==55976||Wl==56488||Wl==57e3||Wl==57512||Wl==58024||Wl==58536||Wl==61096||Wl==61608||Wl==62120||Wl==62632||Wl==63144||Wl==63656||Wl==64168||Wl==64680||Wl==65192||Wl==66216||Wl==66728||Wl==67752||Wl==68264||Wl==68776||Wl==69288||Wl==69800||Wl==70312||Wl==70824||Wl==71336||Wl==72872||Wl==73384||Wl==75432||Wl==75944||Wl==76968||Wl==77992||Wl==78504||Wl==79016||Wl==79528||Wl==80040||Wl==80552||Wl==82600||Wl==83112||Wl==83624||Wl==84136||Wl==84648||Wl==85160||Wl==85672||Wl==86184||Wl==86696||Wl==87208||Wl==88744||Wl==89256||Wl==89768||Wl==90792||Wl==91816||Wl==92840||Wl==93864||Wl==94376||Wl==94888||Wl==95912||Wl==96424||Wl==96936||Wl==99496||Wl==100008||Wl==100520||Wl==101032||Wl==101544||Wl==103592||Wl==104104||Wl==104616||Wl==105128||Wl==105640||Wl==106152||Wl==107688||Wl==110760||Wl==111272||Wl==112808||Wl==113832||Wl==114344||Wl==114856||Wl==115368||Wl==115880||Wl==116904||Wl==117416||Wl==117928||Wl==118440||Wl==118952||Wl==119464||Wl==119976||Wl==122536||Wl==123048||Wl==123560||Wl==124072||Wl==125608||Wl==126632||Wl==127144||Wl==127656||Wl==129704||Wl==130216||Wl==130728||Wl==131240||Wl==131752||Wl==132264||Wl==132776||Wl==133288||Wl==134312||Wl==134824||Wl==136360||Wl==136872||Wl==137384||Wl==137896||Wl==139432||Wl==139944||Wl==141480||Wl==144040||Wl==145064)&&Hl(168),Il(266),Xf(),Hl(165),Il(266),Xf();switch($l){case 82:ql(72);break;default:Wl=$l}if(Wl==110162){Wl=uc(14,Vl);if(Wl==0){var a=Xl,f=Vl,l=$l,c=Jl,h=Kl,p=Ql,d=Gl,v=Yl;try{Hl(82),Il(72),Hl(215),Il(266),Xf(),oc(14,f,-1)}catch(m){Xl=a,Vl=f,$l=l,$l==0?cc=f:(Jl=c,Kl=h,Ql=p,Ql==0?cc=h:(Gl=d,Yl=v,cc=v)),oc(14,f,-2)}Wl=-2}}Wl==-1&&(Hl(82),Il(72),Hl(215),Il(266),Xf());break;case-3:break;default:Hl(161),Il(267);switch($l){case 168:ql(281);break;default:Wl=$l}if(Wl==18088){Wl=uc(15,Vl);if(Wl==0){var a=Xl,f=Vl,l=$l,c=Jl,h=Kl,p=Ql,d=Gl,v=Yl;try{Hl(168),oc(15,f,-1)}catch(m){Xl=a,Vl=f,$l=l,$l==0?cc=f:(Jl=c,Kl=h,Ql=p,Ql==0?cc=h:(Gl=d,Yl=v,cc=v)),oc(15,f,-2)}Wl=-2}}(Wl==-1||Wl==3240||Wl==4264||Wl==4776||Wl==5288||Wl==5800||Wl==9896||Wl==16040||Wl==16552||Wl==17064||Wl==18600||Wl==21160||Wl==22184||Wl==24232||Wl==24744||Wl==28328||Wl==28840||Wl==30888||Wl==35496||Wl==36520||Wl==37544||Wl==38056||Wl==38568||Wl==39080||Wl==40104||Wl==40616||Wl==41128||Wl==41640||Wl==42152||Wl==42664||Wl==43176||Wl==43688||Wl==44200||Wl==44712||Wl==45736||Wl==46248||Wl==46760||Wl==47272||Wl==48296||Wl==48808||Wl==49832||Wl==50344||Wl==50856||Wl==52392||Wl==52904||Wl==53416||Wl==53928||Wl==54440||Wl==54952||Wl==55976||Wl==56488||Wl==57e3||Wl==57512||Wl==58024||Wl==58536||Wl==61096||Wl==61608||Wl==62120||Wl==62632||Wl==63144||Wl==63656||Wl==64168||Wl==64680||Wl==65192||Wl==66216||Wl==66728||Wl==67752||Wl==68264||Wl==68776||Wl==69288||Wl==69800||Wl==70312||Wl==70824||Wl==71336||Wl==72872||Wl==73384||Wl==75432||Wl==75944||Wl==76968||Wl==77992||Wl==78504||Wl==79016||Wl==79528||Wl==80040||Wl==80552||Wl==82600||Wl==83112||Wl==83624||Wl==84136||Wl==84648||Wl==85160||Wl==85672||Wl==86184||Wl==86696||Wl==87208||Wl==88744||Wl==89256||Wl==89768||Wl==90792||Wl==91816||Wl==92840||Wl==93864||Wl==94376||Wl==94888||Wl==95912||Wl==96424||Wl==96936||Wl==99496||Wl==100008||Wl==100520||Wl==101032||Wl==101544||Wl==103592||Wl==104104||Wl==104616||Wl==105128||Wl==105640||Wl==106152||Wl==107688||Wl==110760||Wl==111272||Wl==112808||Wl==113832||Wl==114344||Wl==114856||Wl==115368||Wl==115880||Wl==116904||Wl==117416||Wl==117928||Wl==118440||Wl==118952||Wl==119464||Wl==119976||Wl==122536||Wl==123048||Wl==123560||Wl==124072||Wl==125608||Wl==126632||Wl==127144||Wl==127656||Wl==129704||Wl==130216||Wl==130728||Wl==131240||Wl==131752||Wl==132264||Wl==132776||Wl==133288||Wl==134312||Wl==134824||Wl==136360||Wl==136872||Wl==137384||Wl==137896||Wl==139432||Wl==139944||Wl==141480||Wl==144040||Wl==145064)&&Hl(168),Il(267),Nl(),Hl(165),Il(266),Xf()}}function Yf(){ic.startNonterminal(\"JSONRenameExpr\",Vl),Pl(222),Il(259);switch($l){case 168:ql(260);break;default:Wl=$l}if(Wl==18088){Wl=uc(16,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hl(168),Wl=-1}catch(a){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(16,Vl,Wl)}}(Wl==-1||Wl==3240||Wl==4264||Wl==4776||Wl==5288||Wl==5800||Wl==16040||Wl==16552||Wl==17064||Wl==28328||Wl==28840||Wl==30888||Wl==35496||Wl==36520||Wl==37544||Wl==38056||Wl==38568||Wl==39080||Wl==40104||Wl==40616||Wl==41128||Wl==41640||Wl==42152||Wl==42664||Wl==43176||Wl==43688||Wl==44200||Wl==44712||Wl==45736||Wl==46248||Wl==46760||Wl==47272||Wl==48296||Wl==48808||Wl==49832||Wl==50344||Wl==50856||Wl==52392||Wl==52904||Wl==53416||Wl==53928||Wl==54440||Wl==54952||Wl==55976||Wl==56488||Wl==57e3||Wl==57512||Wl==58024||Wl==58536||Wl==61096||Wl==61608||Wl==62120||Wl==62632||Wl==63144||Wl==63656||Wl==64168||Wl==64680||Wl==65192||Wl==66216||Wl==66728||Wl==67752||Wl==68264||Wl==68776||Wl==69288||Wl==69800||Wl==70312||Wl==70824||Wl==71336||Wl==72872||Wl==73384||Wl==75432||Wl==75944||Wl==76968||Wl==77992||Wl==78504||Wl==79016||Wl==79528||Wl==80040||Wl==80552||Wl==82600||Wl==83112||Wl==83624||Wl==84136||Wl==84648||Wl==85160||Wl==85672||Wl==86184||Wl==86696||Wl==87208||Wl==88744||Wl==89256||Wl==89768||Wl==90792||Wl==91816||Wl==92840||Wl==93864||Wl==94376||Wl==94888||Wl==95912||Wl==96424||Wl==96936||Wl==99496||Wl==100008||Wl==101032||Wl==101544||Wl==103592||Wl==104104||Wl==104616||Wl==105128||Wl==105640||Wl==106152||Wl==107688||Wl==110760||Wl==111272||Wl==112808||Wl==113832||Wl==114344||Wl==114856||Wl==115368||Wl==115880||Wl==116904||Wl==117416||Wl==117928||Wl==118440||Wl==118952||Wl==119464||Wl==119976||Wl==122536||Wl==123048||Wl==123560||Wl==124072||Wl==125608||Wl==126632||Wl==127144||Wl==127656||Wl==129704||Wl==130216||Wl==130728||Wl==131240||Wl==131752||Wl==132264||Wl==132776||Wl==133288||Wl==134312||Wl==134824||Wl==136360||Wl==136872||Wl==137384||Wl==137896||Wl==139432||Wl==139944||Wl==141480||Wl==144040||Wl==145064)&&Pl(168),Il(259),jl(),ei(),Pl(80),Il(266),jl(),Wf(),ic.endNonterminal(\"JSONRenameExpr\",Vl)}function Zf(){Hl(222),Il(259);switch($l){case 168:ql(260);break;default:Wl=$l}if(Wl==18088){Wl=uc(16,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hl(168),oc(16,t,-1)}catch(a){Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(16,t,-2)}Wl=-2}}(Wl==-1||Wl==3240||Wl==4264||Wl==4776||Wl==5288||Wl==5800||Wl==16040||Wl==16552||Wl==17064||Wl==28328||Wl==28840||Wl==30888||Wl==35496||Wl==36520||Wl==37544||Wl==38056||Wl==38568||Wl==39080||Wl==40104||Wl==40616||Wl==41128||Wl==41640||Wl==42152||Wl==42664||Wl==43176||Wl==43688||Wl==44200||Wl==44712||Wl==45736||Wl==46248||Wl==46760||Wl==47272||Wl==48296||Wl==48808||Wl==49832||Wl==50344||Wl==50856||Wl==52392||Wl==52904||Wl==53416||Wl==53928||Wl==54440||Wl==54952||Wl==55976||Wl==56488||Wl==57e3||Wl==57512||Wl==58024||Wl==58536||Wl==61096||Wl==61608||Wl==62120||Wl==62632||Wl==63144||Wl==63656||Wl==64168||Wl==64680||Wl==65192||Wl==66216||Wl==66728||Wl==67752||Wl==68264||Wl==68776||Wl==69288||Wl==69800||Wl==70312||Wl==70824||Wl==71336||Wl==72872||Wl==73384||Wl==75432||Wl==75944||Wl==76968||Wl==77992||Wl==78504||Wl==79016||Wl==79528||Wl==80040||Wl==80552||Wl==82600||Wl==83112||Wl==83624||Wl==84136||Wl==84648||Wl==85160||Wl==85672||Wl==86184||Wl==86696||Wl==87208||Wl==88744||Wl==89256||Wl==89768||Wl==90792||Wl==91816||Wl==92840||Wl==93864||Wl==94376||Wl==94888||Wl==95912||Wl==96424||Wl==96936||Wl==99496||Wl==100008||Wl==101032||Wl==101544||Wl==103592||Wl==104104||Wl==104616||Wl==105128||Wl==105640||Wl==106152||Wl==107688||Wl==110760||Wl==111272||Wl==112808||Wl==113832||Wl==114344||Wl==114856||Wl==115368||Wl==115880||Wl==116904||Wl==117416||Wl==117928||Wl==118440||Wl==118952||Wl==119464||Wl==119976||Wl==122536||Wl==123048||Wl==123560||Wl==124072||Wl==125608||Wl==126632||Wl==127144||Wl==127656||Wl==129704||Wl==130216||Wl==130728||Wl==131240||Wl==131752||Wl==132264||Wl==132776||Wl==133288||Wl==134312||Wl==134824||Wl==136360||Wl==136872||Wl==137384||Wl==137896||Wl==139432||Wl==139944||Wl==141480||Wl==144040||Wl==145064)&&Hl(168),Il(259),ti(),Hl(80),Il(266),Xf()}function el(){ic.startNonterminal(\"JSONReplaceExpr\",Vl),Pl(223),Il(85),Pl(267),Il(67),Pl(200),Il(59),Pl(168),Il(259),jl(),ei(),Pl(276),Il(266),jl(),Wf(),ic.endNonterminal(\"JSONReplaceExpr\",Vl)}function tl(){Hl(223),Il(85),Hl(267),Il(67),Hl(200),Il(59),Hl(168),Il(259),ti(),Hl(276),Il(266),Xf()}function nl(){ic.startNonterminal(\"JSONAppendExpr\",Vl),Pl(78),Il(266);switch($l){case 168:ql(268);break;default:Wl=$l}if(Wl==18088){Wl=uc(17,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hl(168),Wl=-1}catch(a){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(17,Vl,Wl)}}(Wl==-1||Wl==3240||Wl==4264||Wl==4776||Wl==5288||Wl==5800||Wl==16040||Wl==16552||Wl==17064||Wl==18600||Wl==21160||Wl==22184||Wl==24232||Wl==24744||Wl==28328||Wl==28840||Wl==30888||Wl==35496||Wl==36520||Wl==37544||Wl==38056||Wl==38568||Wl==39080||Wl==40104||Wl==40616||Wl==41128||Wl==41640||Wl==42152||Wl==42664||Wl==43176||Wl==43688||Wl==44200||Wl==44712||Wl==45736||Wl==46248||Wl==46760||Wl==47272||Wl==48296||Wl==48808||Wl==49832||Wl==50344||Wl==50856||Wl==52392||Wl==52904||Wl==53416||Wl==53928||Wl==54440||Wl==54952||Wl==55976||Wl==56488||Wl==57e3||Wl==57512||Wl==58024||Wl==58536||Wl==61096||Wl==61608||Wl==62120||Wl==62632||Wl==63144||Wl==63656||Wl==64168||Wl==64680||Wl==65192||Wl==66216||Wl==66728||Wl==67752||Wl==68264||Wl==68776||Wl==69288||Wl==69800||Wl==70312||Wl==70824||Wl==71336||Wl==72872||Wl==73384||Wl==75432||Wl==75944||Wl==76968||Wl==77992||Wl==78504||Wl==79016||Wl==79528||Wl==80040||Wl==80552||Wl==82600||Wl==83112||Wl==83624||Wl==84136||Wl==84648||Wl==85160||Wl==85672||Wl==86184||Wl==86696||Wl==87208||Wl==88744||Wl==89256||Wl==89768||Wl==90792||Wl==91816||Wl==92840||Wl==93864||Wl==94376||Wl==94888||Wl==95912||Wl==96424||Wl==96936||Wl==99496||Wl==100008||Wl==100520||Wl==101032||Wl==101544||Wl==103592||Wl==104104||Wl==104616||Wl==105128||Wl==105640||Wl==106152||Wl==107688||Wl==110760||Wl==111272||Wl==112808||Wl==113832||Wl==114344||Wl==114856||Wl==115368||Wl==115880||Wl==116904||Wl==117416||Wl==117928||Wl==118440||Wl==118952||Wl==119464||Wl==119976||Wl==122536||Wl==123048||Wl==123560||Wl==124072||Wl==125608||Wl==126632||Wl==127144||Wl==127656||Wl==129704||Wl==130216||Wl==130728||Wl==131240||Wl==131752||Wl==132264||Wl==132776||Wl==133288||Wl==134312||Wl==134824||Wl==136360||Wl==136872||Wl==137384||Wl==137896||Wl==139432||Wl==139944||Wl==141480||Wl==144040||Wl==145064)&&Pl(168),Il(266),jl(),Wf(),Pl(165),Il(266),jl(),Wf(),ic.endNonterminal(\"JSONAppendExpr\",Vl)}function rl(){Hl(78),Il(266);switch($l){case 168:ql(268);break;default:Wl=$l}if(Wl==18088){Wl=uc(17,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hl(168),oc(17,t,-1)}catch(a){Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(17,t,-2)}Wl=-2}}(Wl==-1||Wl==3240||Wl==4264||Wl==4776||Wl==5288||Wl==5800||Wl==16040||Wl==16552||Wl==17064||Wl==18600||Wl==21160||Wl==22184||Wl==24232||Wl==24744||Wl==28328||Wl==28840||Wl==30888||Wl==35496||Wl==36520||Wl==37544||Wl==38056||Wl==38568||Wl==39080||Wl==40104||Wl==40616||Wl==41128||Wl==41640||Wl==42152||Wl==42664||Wl==43176||Wl==43688||Wl==44200||Wl==44712||Wl==45736||Wl==46248||Wl==46760||Wl==47272||Wl==48296||Wl==48808||Wl==49832||Wl==50344||Wl==50856||Wl==52392||Wl==52904||Wl==53416||Wl==53928||Wl==54440||Wl==54952||Wl==55976||Wl==56488||Wl==57e3||Wl==57512||Wl==58024||Wl==58536||Wl==61096||Wl==61608||Wl==62120||Wl==62632||Wl==63144||Wl==63656||Wl==64168||Wl==64680||Wl==65192||Wl==66216||Wl==66728||Wl==67752||Wl==68264||Wl==68776||Wl==69288||Wl==69800||Wl==70312||Wl==70824||Wl==71336||Wl==72872||Wl==73384||Wl==75432||Wl==75944||Wl==76968||Wl==77992||Wl==78504||Wl==79016||Wl==79528||Wl==80040||Wl==80552||Wl==82600||Wl==83112||Wl==83624||Wl==84136||Wl==84648||Wl==85160||Wl==85672||Wl==86184||Wl==86696||Wl==87208||Wl==88744||Wl==89256||Wl==89768||Wl==90792||Wl==91816||Wl==92840||Wl==93864||Wl==94376||Wl==94888||Wl==95912||Wl==96424||Wl==96936||Wl==99496||Wl==100008||Wl==100520||Wl==101032||Wl==101544||Wl==103592||Wl==104104||Wl==104616||Wl==105128||Wl==105640||Wl==106152||Wl==107688||Wl==110760||Wl==111272||Wl==112808||Wl==113832||Wl==114344||Wl==114856||Wl==115368||Wl==115880||Wl==116904||Wl==117416||Wl==117928||Wl==118440||Wl==118952||Wl==119464||Wl==119976||Wl==122536||Wl==123048||Wl==123560||Wl==124072||Wl==125608||Wl==126632||Wl==127144||Wl==127656||Wl==129704||Wl==130216||Wl==130728||Wl==131240||Wl==131752||Wl==132264||Wl==132776||Wl==133288||Wl==134312||Wl==134824||Wl==136360||Wl==136872||Wl==137384||Wl==137896||Wl==139432||Wl==139944||Wl==141480||Wl==144040||Wl==145064)&&Hl(168),Il(266),Xf(),Hl(165),Il(266),Xf()}function il(){ic.startNonterminal(\"CommonContent\",Vl);switch($l){case 12:Pl(12);break;case 23:Pl(23);break;case 282:Pl(282);break;case 288:Pl(288);break;default:Ol()}ic.endNonterminal(\"CommonContent\",Vl)}function sl(){switch($l){case 12:Hl(12);break;case 23:Hl(23);break;case 282:Hl(282);break;case 288:Hl(288);break;default:Ml()}}function ol(){ic.startNonterminal(\"ContentExpr\",Vl),rf(),ic.endNonterminal(\"ContentExpr\",Vl)}function ul(){sf()}function al(){ic.startNonterminal(\"CompDocConstructor\",Vl),Pl(120),Il(90),jl(),Ol(),ic.endNonterminal(\"CompDocConstructor\",Vl)}function fl(){Hl(120),Il(90),Ml()}function ll(){ic.startNonterminal(\"CompAttrConstructor\",Vl),Pl(83),Il(249);switch($l){case 281:Pl(281),Il(266),jl(),G(),Pl(287);break;default:jl(),$a()}Il(90);switch($l){case 281:ql(280);break;default:Wl=$l}if(Wl==147225){Wl=uc(18,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hl(281),Il(91),Hl(287),Wl=-1}catch(a){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(18,Vl,Wl)}}switch(Wl){case-1:Pl(281),Il(91),Pl(287);break;default:jl(),Ol()}ic.endNonterminal(\"CompAttrConstructor\",Vl)}function cl(){Hl(83),Il(249);switch($l){case 281:Hl(281),Il(266),Y(),Hl(287);break;default:Ja()}Il(90);switch($l){case 281:ql(280);break;default:Wl=$l}if(Wl==147225){Wl=uc(18,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hl(281),Il(91),Hl(287),oc(18,t,-1),Wl=-3}catch(a){Wl=-2,Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(18,t,-2)}}}switch(Wl){case-1:Hl(281),Il(91),Hl(287);break;case-3:break;default:Ml()}}function hl(){ic.startNonterminal(\"CompPIConstructor\",Vl),Pl(220),Il(241);switch($l){case 281:Pl(281),Il(266),jl(),G(),Pl(287);break;default:jl(),Ga()}Il(90);switch($l){case 281:ql(280);break;default:Wl=$l}if(Wl==147225){Wl=uc(19,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hl(281),Il(91),Hl(287),Wl=-1}catch(a){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(19,Vl,Wl)}}switch(Wl){case-1:Pl(281),Il(91),Pl(287);break;default:jl(),Ol()}ic.endNonterminal(\"CompPIConstructor\",Vl)}function pl(){Hl(220),Il(241);switch($l){case 281:Hl(281),Il(266),Y(),Hl(287);break;default:Ya()}Il(90);switch($l){case 281:ql(280);break;default:Wl=$l}if(Wl==147225){Wl=uc(19,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Hl(281),Il(91),Hl(287),oc(19,t,-1),Wl=-3}catch(a){Wl=-2,Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(19,t,-2)}}}switch(Wl){case-1:Hl(281),Il(91),Hl(287);break;case-3:break;default:Ml()}}function dl(){ic.startNonterminal(\"CompCommentConstructor\",Vl),Pl(97),Il(90),jl(),Ol(),ic.endNonterminal(\"CompCommentConstructor\",Vl)}function vl(){Hl(97),Il(90),Ml()}function ml(){ic.startNonterminal(\"CompTextConstructor\",Vl),Pl(249),Il(90),jl(),Ol(),ic.endNonterminal(\"CompTextConstructor\",Vl)}function gl(){Hl(249),Il(90),Ml()}function yl(){ic.startNonterminal(\"PrimaryExpr\",Vl);switch($l){case 187:ql(246);break;case 220:ql(244);break;case 281:ql(282);break;case 83:case 122:ql(252);break;case 97:case 249:ql(97);break;case 120:case 206:case 262:ql(148);break;case 135:case 197:case 255:ql(236);break;case 6:case 71:case 73:case 74:case 75:case 76:case 78:case 80:case 81:case 82:case 84:case 85:case 86:case 87:case 89:case 90:case 91:case 92:case 94:case 95:case 98:case 99:case 102:case 103:case 104:case 105:case 106:case 107:case 109:case 110:case 111:case 112:case 113:case 114:case 119:case 123:case 124:case 126:case 127:case 129:case 130:case 132:case 133:case 134:case 136:case 137:case 138:case 139:case 142:case 143:case 148:case 150:case 152:case 153:case 155:case 156:case 157:case 161:case 162:case 163:case 164:case 165:case 166:case 168:case 170:case 173:case 174:case 175:case 177:case 179:case 181:case 183:case 184:case 185:case 189:case 195:case 198:case 202:case 203:case 204:case 205:case 207:case 210:case 216:case 217:case 222:case 223:case 224:case 225:case 226:case 228:case 229:case 232:case 233:case 234:case 239:case 240:case 241:case 242:case 245:case 253:case 254:case 256:case 257:case 258:case 260:case 263:case 266:case 267:case 268:case 269:case 272:case 273:case 276:ql(95);break;default:Wl=$l}if(Wl==3353||Wl==4377||Wl==4889||Wl==5401||Wl==5913||Wl==16153||Wl==16665||Wl==17177||Wl==18055||Wl==18117||Wl==18175||Wl==18201||Wl==18713||Wl==21273||Wl==22297||Wl==24345||Wl==24857||Wl==28441||Wl==28953||Wl==31001||Wl==35609||Wl==36633||Wl==37657||Wl==38169||Wl==38681||Wl==39193||Wl==40217||Wl==40729||Wl==41241||Wl==41753||Wl==42265||Wl==42777||Wl==43289||Wl==43801||Wl==44313||Wl==44825||Wl==45849||Wl==46361||Wl==46873||Wl==47385||Wl==48409||Wl==48921||Wl==49945||Wl==50457||Wl==50969||Wl==52505||Wl==53017||Wl==53529||Wl==54041||Wl==54553||Wl==55065||Wl==56089||Wl==56601||Wl==57113||Wl==57625||Wl==58137||Wl==58649||Wl==61209||Wl==61721||Wl==62233||Wl==62745||Wl==63257||Wl==63769||Wl==64281||Wl==64793||Wl==65305||Wl==66329||Wl==66841||Wl==67865||Wl==68377||Wl==68889||Wl==69401||Wl==69913||Wl==70425||Wl==70937||Wl==71449||Wl==72985||Wl==73497||Wl==75545||Wl==76057||Wl==77081||Wl==78105||Wl==78617||Wl==79129||Wl==79641||Wl==80153||Wl==80665||Wl==82713||Wl==83225||Wl==83737||Wl==84249||Wl==84761||Wl==85273||Wl==85785||Wl==86297||Wl==86809||Wl==87321||Wl==88857||Wl==89369||Wl==89881||Wl==90905||Wl==91929||Wl==92953||Wl==93977||Wl==94489||Wl==95001||Wl==96025||Wl==96537||Wl==97049||Wl==99609||Wl==100121||Wl==100633||Wl==101145||Wl==101657||Wl==103705||Wl==104217||Wl==104729||Wl==105241||Wl==105753||Wl==106265||Wl==107801||Wl==110873||Wl==111385||Wl==112921||Wl==113945||Wl==114457||Wl==114969||Wl==115481||Wl==115993||Wl==117017||Wl==117529||Wl==118041||Wl==118553||Wl==119065||Wl==119577||Wl==120089||Wl==122649||Wl==123161||Wl==123673||Wl==124185||Wl==125721||Wl==126745||Wl==127257||Wl==127769||Wl==129817||Wl==130329||Wl==130841||Wl==131353||Wl==131865||Wl==132377||Wl==132889||Wl==133401||Wl==134425||Wl==134937||Wl==136473||Wl==136985||Wl==137497||Wl==138009||Wl==139545||Wl==140057||Wl==141593||Wl==144153||Wl==145177||Wl==147225){Wl=uc(20,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{vi(),Wl=-1}catch(a){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Hi(),Wl=-5}catch(f){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Ml(),Wl=-10}catch(l){Wl=-11}}}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(20,Vl,Wl)}}switch(Wl){case-1:case 8:case 9:case 10:case 11:case 12935:case 12997:case 13055:case 13447:case 13509:case 13567:case 13959:case 14021:case 14079:case 19591:case 19653:case 19711:case 20103:case 20165:case 20223:case 21127:case 21189:case 21247:case 21639:case 21701:case 21759:case 22151:case 22213:case 22271:case 23175:case 23237:case 23295:case 24199:case 24261:case 24319:case 24711:case 24773:case 24831:case 25735:case 25797:case 25855:case 27783:case 27845:case 27903:case 28295:case 28357:case 28415:case 29831:case 29893:case 29951:case 30343:case 30405:case 30463:case 31367:case 31429:case 31487:case 31879:case 31941:case 31999:case 32391:case 32453:case 32511:case 32903:case 32965:case 33023:case 35463:case 35525:case 35583:case 35975:case 36037:case 36095:case 36487:case 36549:case 36607:case 39047:case 39109:case 39167:case 41095:case 41157:case 41215:case 41607:case 41669:case 41727:case 42119:case 42181:case 42239:case 43655:case 43717:case 43775:case 45191:case 45253:case 45311:case 45703:case 45765:case 45823:case 46215:case 46277:case 46335:case 46727:case 46789:case 46847:case 48775:case 48837:case 48895:case 51335:case 51397:case 51455:case 54407:case 54469:case 54527:case 56455:case 56517:case 56575:case 58503:case 58565:case 58623:case 61063:case 61125:case 61183:case 63111:case 63173:case 63231:case 63623:case 63685:case 63743:case 65159:case 65221:case 65279:case 66183:case 66245:case 66303:case 67719:case 67781:case 67839:case 71303:case 71365:case 71423:case 75911:case 75973:case 76031:case 76935:case 76997:case 77055:case 77959:case 78021:case 78079:case 78471:case 78533:case 78591:case 83079:case 83141:case 83199:case 84103:case 84165:case 84223:case 84615:case 84677:case 84735:case 85127:case 85189:case 85247:case 89735:case 89797:case 89855:case 90759:case 90821:case 90879:case 92807:case 92869:case 92927:case 93831:case 93893:case 93951:case 94343:case 94405:case 94463:case 96903:case 96965:case 97023:case 103559:case 103621:case 103679:case 104583:case 104645:case 104703:case 105095:case 105157:case 105215:case 107143:case 107205:case 107263:case 114823:case 114885:case 114943:case 116871:case 116933:case 116991:case 121479:case 121541:case 121599:case 123527:case 123589:case 123647:case 124039:case 124101:case 124159:case 129159:case 129221:case 129279:case 129671:case 129733:case 129791:case 130183:case 130245:case 130303:case 133255:case 133317:case 133375:case 139399:case 139461:case 139519:case 141447:case 141509:case 141567:case 142983:case 143045:case 143103:case 145543:case 145605:case 145663:case 146055:case 146117:case 146175:case 146567:case 146629:case 146687:case 147079:case 147141:case 147199:di();break;case 31:Si();break;case 35:Ci();break;case 32:Li();break;case-5:case 17926:case 17991:case 17993:case 17994:case 17995:case 17996:case 17998:case 18e3:case 18001:case 18002:case 18004:case 18005:case 18006:case 18007:case 18009:case 18010:case 18011:case 18012:case 18014:case 18015:case 18018:case 18019:case 18022:case 18023:case 18024:case 18025:case 18026:case 18027:case 18029:case 18030:case 18031:case 18032:case 18033:case 18034:case 18039:case 18040:case 18043:case 18044:case 18046:case 18047:case 18049:case 18050:case 18052:case 18053:case 18054:case 18056:case 18057:case 18058:case 18059:case 18062:case 18063:case 18068:case 18070:case 18072:case 18073:case 18075:case 18076:case 18077:case 18081:case 18082:case 18083:case 18084:case 18085:case 18086:case 18088:case 18090:case 18093:case 18094:case 18095:case 18097:case 18099:case 18101:case 18103:case 18104:case 18105:case 18107:case 18109:case 18115:case 18118:case 18122:case 18123:case 18124:case 18125:case 18126:case 18127:case 18130:case 18136:case 18137:case 18142:case 18143:case 18144:case 18145:case 18146:case 18148:case 18149:case 18152:case 18153:case 18154:case 18159:case 18160:case 18161:case 18162:case 18165:case 18173:case 18174:case 18176:case 18177:case 18178:case 18180:case 18182:case 18183:case 18186:case 18187:case 18188:case 18189:case 18192:case 18193:case 18196:Pi();break;case 144078:Oi();break;case 144134:_i();break;case 33:case 79:case 121:case 125:case 147:case 154:case 167:case 169:case 188:case 194:case 230:case 231:case 247:case 248:case 259:case 14854:case 14919:case 14921:case 14922:case 14923:case 14924:case 14926:case 14928:case 14929:case 14930:case 14931:case 14932:case 14933:case 14934:case 14935:case 14937:case 14938:case 14939:case 14940:case 14942:case 14943:case 14945:case 14946:case 14947:case 14950:case 14951:case 14952:case 14953:case 14954:case 14955:case 14957:case 14958:case 14959:case 14960:case 14961:case 14962:case 14967:case 14968:case 14970:case 14971:case 14972:case 14974:case 14975:case 14977:case 14978:case 14980:case 14981:case 14982:case 14983:case 14984:case 14985:case 14986:case 14987:case 14990:case 14991:case 14996:case 14998:case 15e3:case 15001:case 15003:case 15004:case 15005:case 15009:case 15010:case 15011:case 15012:case 15013:case 15014:case 15016:case 15018:case 15021:case 15022:case 15023:case 15025:case 15027:case 15029:case 15031:case 15032:case 15033:case 15035:case 15037:case 15043:case 15045:case 15046:case 15050:case 15051:case 15052:case 15053:case 15054:case 15055:case 15058:case 15064:case 15065:case 15068:case 15070:case 15071:case 15072:case 15073:case 15074:case 15076:case 15077:case 15080:case 15081:case 15082:case 15087:case 15088:case 15089:case 15090:case 15093:case 15097:case 15101:case 15102:case 15103:case 15104:case 15105:case 15106:case 15108:case 15110:case 15111:case 15114:case 15115:case 15116:case 15117:case 15120:case 15121:case 15124:ys();break;case-10:case 27929:Ol();break;case-11:case 10009:Sl();break;case 69:Ll();break;case 283:wl();break;default:qi()}ic.endNonterminal(\"PrimaryExpr\",Vl)}function bl(){switch($l){case 187:ql(246);break;case 220:ql(244);break;case 281:ql(282);break;case 83:case 122:ql(252);break;case 97:case 249:ql(97);break;case 120:case 206:case 262:ql(148);break;case 135:case 197:case 255:ql(236);break;case 6:case 71:case 73:case 74:case 75:case 76:case 78:case 80:case 81:case 82:case 84:case 85:case 86:case 87:case 89:case 90:case 91:case 92:case 94:case 95:case 98:case 99:case 102:case 103:case 104:case 105:case 106:case 107:case 109:case 110:case 111:case 112:case 113:case 114:case 119:case 123:case 124:case 126:case 127:case 129:case 130:case 132:case 133:case 134:case 136:case 137:case 138:case 139:case 142:case 143:case 148:case 150:case 152:case 153:case 155:case 156:case 157:case 161:case 162:case 163:case 164:case 165:case 166:case 168:case 170:case 173:case 174:case 175:case 177:case 179:case 181:case 183:case 184:case 185:case 189:case 195:case 198:case 202:case 203:case 204:case 205:case 207:case 210:case 216:case 217:case 222:case 223:case 224:case 225:case 226:case 228:case 229:case 232:case 233:case 234:case 239:case 240:case 241:case 242:case 245:case 253:case 254:case 256:case 257:case 258:case 260:case 263:case 266:case 267:case 268:case 269:case 272:case 273:case 276:ql(95);break;default:Wl=$l}if(Wl==3353||Wl==4377||Wl==4889||Wl==5401||Wl==5913||Wl==16153||Wl==16665||Wl==17177||Wl==18055||Wl==18117||Wl==18175||Wl==18201||Wl==18713||Wl==21273||Wl==22297||Wl==24345||Wl==24857||Wl==28441||Wl==28953||Wl==31001||Wl==35609||Wl==36633||Wl==37657||Wl==38169||Wl==38681||Wl==39193||Wl==40217||Wl==40729||Wl==41241||Wl==41753||Wl==42265||Wl==42777||Wl==43289||Wl==43801||Wl==44313||Wl==44825||Wl==45849||Wl==46361||Wl==46873||Wl==47385||Wl==48409||Wl==48921||Wl==49945||Wl==50457||Wl==50969||Wl==52505||Wl==53017||Wl==53529||Wl==54041||Wl==54553||Wl==55065||Wl==56089||Wl==56601||Wl==57113||Wl==57625||Wl==58137||Wl==58649||Wl==61209||Wl==61721||Wl==62233||Wl==62745||Wl==63257||Wl==63769||Wl==64281||Wl==64793||Wl==65305||Wl==66329||Wl==66841||Wl==67865||Wl==68377||Wl==68889||Wl==69401||Wl==69913||Wl==70425||Wl==70937||Wl==71449||Wl==72985||Wl==73497||Wl==75545||Wl==76057||Wl==77081||Wl==78105||Wl==78617||Wl==79129||Wl==79641||Wl==80153||Wl==80665||Wl==82713||Wl==83225||Wl==83737||Wl==84249||Wl==84761||Wl==85273||Wl==85785||Wl==86297||Wl==86809||Wl==87321||Wl==88857||Wl==89369||Wl==89881||Wl==90905||Wl==91929||Wl==92953||Wl==93977||Wl==94489||Wl==95001||Wl==96025||Wl==96537||Wl==97049||Wl==99609||Wl==100121||Wl==100633||Wl==101145||Wl==101657||Wl==103705||Wl==104217||Wl==104729||Wl==105241||Wl==105753||Wl==106265||Wl==107801||Wl==110873||Wl==111385||Wl==112921||Wl==113945||Wl==114457||Wl==114969||Wl==115481||Wl==115993||Wl==117017||Wl==117529||Wl==118041||Wl==118553||Wl==119065||Wl==119577||Wl==120089||Wl==122649||Wl==123161||Wl==123673||Wl==124185||Wl==125721||Wl==126745||Wl==127257||Wl==127769||Wl==129817||Wl==130329||Wl==130841||Wl==131353||Wl==131865||Wl==132377||Wl==132889||Wl==133401||Wl==134425||Wl==134937||Wl==136473||Wl==136985||Wl==137497||Wl==138009||Wl==139545||Wl==140057||Wl==141593||Wl==144153||Wl==145177||Wl==147225){Wl=uc(20,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{vi(),oc(20,t,-1),Wl=-14}catch(a){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Hi(),oc(20,t,-5),Wl=-14}catch(f){try{Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),Ml(),oc(20,t,-10),Wl=-14}catch(l){Wl=-11,Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(20,t,-11)}}}}}switch(Wl){case-1:case 8:case 9:case 10:case 11:case 12935:case 12997:case 13055:case 13447:case 13509:case 13567:case 13959:case 14021:case 14079:case 19591:case 19653:case 19711:case 20103:case 20165:case 20223:case 21127:case 21189:case 21247:case 21639:case 21701:case 21759:case 22151:case 22213:case 22271:case 23175:case 23237:case 23295:case 24199:case 24261:case 24319:case 24711:case 24773:case 24831:case 25735:case 25797:case 25855:case 27783:case 27845:case 27903:case 28295:case 28357:case 28415:case 29831:case 29893:case 29951:case 30343:case 30405:case 30463:case 31367:case 31429:case 31487:case 31879:case 31941:case 31999:case 32391:case 32453:case 32511:case 32903:case 32965:case 33023:case 35463:case 35525:case 35583:case 35975:case 36037:case 36095:case 36487:case 36549:case 36607:case 39047:case 39109:case 39167:case 41095:case 41157:case 41215:case 41607:case 41669:case 41727:case 42119:case 42181:case 42239:case 43655:case 43717:case 43775:case 45191:case 45253:case 45311:case 45703:case 45765:case 45823:case 46215:case 46277:case 46335:case 46727:case 46789:case 46847:case 48775:case 48837:case 48895:case 51335:case 51397:case 51455:case 54407:case 54469:case 54527:case 56455:case 56517:case 56575:case 58503:case 58565:case 58623:case 61063:case 61125:case 61183:case 63111:case 63173:case 63231:case 63623:case 63685:case 63743:case 65159:case 65221:case 65279:case 66183:case 66245:case 66303:case 67719:case 67781:case 67839:case 71303:case 71365:case 71423:case 75911:case 75973:case 76031:case 76935:case 76997:case 77055:case 77959:case 78021:case 78079:case 78471:case 78533:case 78591:case 83079:case 83141:case 83199:case 84103:case 84165:case 84223:case 84615:case 84677:case 84735:case 85127:case 85189:case 85247:case 89735:case 89797:case 89855:case 90759:case 90821:case 90879:case 92807:case 92869:case 92927:case 93831:case 93893:case 93951:case 94343:case 94405:case 94463:case 96903:case 96965:case 97023:case 103559:case 103621:case 103679:case 104583:case 104645:case 104703:case 105095:case 105157:case 105215:case 107143:case 107205:case 107263:case 114823:case 114885:case 114943:case 116871:case 116933:case 116991:case 121479:case 121541:case 121599:case 123527:case 123589:case 123647:case 124039:case 124101:case 124159:case 129159:case 129221:case 129279:case 129671:case 129733:case 129791:case 130183:case 130245:case 130303:case 133255:case 133317:case 133375:case 139399:case 139461:case 139519:case 141447:case 141509:case 141567:case 142983:case 143045:case 143103:case 145543:case 145605:case 145663:case 146055:case 146117:case 146175:case 146567:case 146629:case 146687:case 147079:case 147141:case 147199:vi();break;case 31:xi();break;case 35:ki();break;case 32:Ai();break;case-5:case 17926:case 17991:case 17993:case 17994:case 17995:case 17996:case 17998:case 18e3:case 18001:case 18002:case 18004:case 18005:case 18006:case 18007:case 18009:case 18010:case 18011:case 18012:case 18014:case 18015:case 18018:case 18019:case 18022:case 18023:case 18024:case 18025:case 18026:case 18027:case 18029:case 18030:case 18031:case 18032:case 18033:case 18034:case 18039:case 18040:case 18043:case 18044:case 18046:case 18047:case 18049:case 18050:case 18052:case 18053:case 18054:case 18056:case 18057:case 18058:case 18059:case 18062:case 18063:case 18068:case 18070:case 18072:case 18073:case 18075:case 18076:case 18077:case 18081:case 18082:case 18083:case 18084:case 18085:case 18086:case 18088:case 18090:case 18093:case 18094:case 18095:case 18097:case 18099:case 18101:case 18103:case 18104:case 18105:case 18107:case 18109:case 18115:case 18118:case 18122:case 18123:case 18124:case 18125:case 18126:case 18127:case 18130:case 18136:case 18137:case 18142:case 18143:case 18144:case 18145:case 18146:case 18148:case 18149:case 18152:case 18153:case 18154:case 18159:case 18160:case 18161:case 18162:case 18165:case 18173:case 18174:case 18176:case 18177:case 18178:case 18180:case 18182:case 18183:case 18186:case 18187:case 18188:case 18189:case 18192:case 18193:case 18196:Hi();break;case 144078:Mi();break;case 144134:Di();break;case 33:case 79:case 121:case 125:case 147:case 154:case 167:case 169:case 188:case 194:case 230:case 231:case 247:case 248:case 259:case 14854:case 14919:case 14921:case 14922:case 14923:case 14924:case 14926:case 14928:case 14929:case 14930:case 14931:case 14932:case 14933:case 14934:case 14935:case 14937:case 14938:case 14939:case 14940:case 14942:case 14943:case 14945:case 14946:case 14947:case 14950:case 14951:case 14952:case 14953:case 14954:case 14955:case 14957:case 14958:case 14959:case 14960:case 14961:case 14962:case 14967:case 14968:case 14970:case 14971:case 14972:case 14974:case 14975:case 14977:case 14978:case 14980:case 14981:case 14982:case 14983:case 14984:case 14985:case 14986:case 14987:case 14990:case 14991:case 14996:case 14998:case 15e3:case 15001:case 15003:case 15004:case 15005:case 15009:case 15010:case 15011:case 15012:case 15013:case 15014:case 15016:case 15018:case 15021:case 15022:case 15023:case 15025:case 15027:case 15029:case 15031:case 15032:case 15033:case 15035:case 15037:case 15043:case 15045:case 15046:case 15050:case 15051:case 15052:case 15053:case 15054:case 15055:case 15058:case 15064:case 15065:case 15068:case 15070:case 15071:case 15072:case 15073:case 15074:case 15076:case 15077:case 15080:case 15081:case 15082:case 15087:case 15088:case 15089:case 15090:case 15093:case 15097:case 15101:case 15102:case 15103:case 15104:case 15105:case 15106:case 15108:case 15110:case 15111:case 15114:case 15115:case 15116:case 15117:case 15120:case 15121:case 15124:bs();break;case-10:case 27929:Ml();break;case-11:case 10009:xl();break;case 69:Al();break;case 283:El();break;case-14:break;default:Ri()}}function wl(){ic.startNonterminal(\"JSONSimpleObjectUnion\",Vl),Pl(283),Il(273),$l!=286&&(jl(),G()),Pl(286),ic.endNonterminal(\"JSONSimpleObjectUnion\",Vl)}function El(){Hl(283),Il(273),$l!=286&&Y(),Hl(286)}function Sl(){ic.startNonterminal(\"ObjectConstructor\",Vl),Pl(281),Il(276),$l!=287&&(jl(),Tl()),Pl(287),ic.endNonterminal(\"ObjectConstructor\",Vl)}function xl(){Hl(281),Il(276),$l!=287&&Nl(),Hl(287)}function Tl(){ic.startNonterminal(\"PairConstructorList\",Vl),Cl();for(;;){if($l!=42)break;Pl(42),Il(267),jl(),Cl()}ic.endNonterminal(\"PairConstructorList\",Vl)}function Nl(){kl();for(;;){if($l!=42)break;Hl(42),Il(267),kl()}}function Cl(){ic.startNonterminal(\"PairConstructor\",Vl);switch($l){case 78:ql(278);break;case 139:ql(187);break;case 161:ql(281);break;case 177:ql(178);break;case 187:ql(251);break;case 220:ql(247);break;case 223:ql(180);break;case 266:ql(191);break;case 83:case 122:ql(256);break;case 97:case 249:ql(149);break;case 111:case 222:ql(261);break;case 104:case 130:case 240:ql(165);break;case 135:case 197:case 255:ql(208);break;case 120:case 206:case 256:case 262:ql(167);break;case 121:case 125:case 167:case 188:case 194:case 230:case 231:ql(96);break;case 71:case 73:case 74:case 75:case 76:case 80:case 81:case 82:case 84:case 85:case 86:case 87:case 89:case 90:case 91:case 92:case 94:case 95:case 98:case 99:case 102:case 103:case 105:case 106:case 107:case 109:case 110:case 112:case 113:case 114:case 119:case 123:case 124:case 126:case 127:case 129:case 132:case 133:case 134:case 136:case 137:case 138:case 142:case 143:case 147:case 148:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 162:case 163:case 164:case 165:case 166:case 168:case 170:case 173:case 174:case 175:case 179:case 181:case 183:case 184:case 185:case 189:case 195:case 198:case 202:case 203:case 204:case 205:case 207:case 210:case 216:case 217:case 224:case 225:case 226:case 228:case 229:case 232:case 233:case 234:case 239:case 241:case 242:case 245:case 248:case 253:case 254:case 257:case 258:case 259:case 260:case 263:case 267:case 268:case 269:case 272:case 273:case 276:ql(144);break;default:Wl=$l}if(Wl==25735||Wl==25797||Wl==25855){Wl=uc(21,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Xf(),Wl=-1}catch(a){Wl=-2}Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(21,Vl,Wl)}}switch(Wl){case-2:case 19:case 25671:case 25673:case 25674:case 25675:case 25676:case 25678:case 25680:case 25681:case 25682:case 25683:case 25684:case 25685:case 25686:case 25687:case 25689:case 25690:case 25691:case 25692:case 25694:case 25695:case 25697:case 25698:case 25699:case 25702:case 25703:case 25704:case 25705:case 25706:case 25707:case 25709:case 25710:case 25711:case 25712:case 25713:case 25714:case 25719:case 25720:case 25721:case 25722:case 25723:case 25724:case 25725:case 25726:case 25727:case 25729:case 25730:case 25732:case 25733:case 25734:case 25736:case 25737:case 25738:case 25739:case 25742:case 25743:case 25747:case 25748:case 25750:case 25752:case 25753:case 25754:case 25755:case 25756:case 25757:case 25761:case 25762:case 25763:case 25764:case 25765:case 25766:case 25767:case 25768:case 25770:case 25773:case 25774:case 25775:case 25777:case 25779:case 25781:case 25783:case 25784:case 25785:case 25787:case 25788:case 25789:case 25794:case 25795:case 25798:case 25802:case 25803:case 25804:case 25805:case 25806:case 25807:case 25810:case 25816:case 25817:case 25820:case 25822:case 25823:case 25824:case 25825:case 25826:case 25828:case 25829:case 25830:case 25831:case 25832:case 25833:case 25834:case 25839:case 25840:case 25841:case 25842:case 25845:case 25848:case 25849:case 25853:case 25854:case 25856:case 25857:case 25858:case 25859:case 25860:case 25862:case 25863:case 25866:case 25867:case 25868:case 25869:case 25872:case 25873:case 25876:Ga();break;default:Wf()}Il(26),Pl(50),Il(266),jl(),Wf(),ic.endNonterminal(\"PairConstructor\",Vl)}function kl(){switch($l){case 78:ql(278);break;case 139:ql(187);break;case 161:ql(281);break;case 177:ql(178);break;case 187:ql(251);break;case 220:ql(247);break;case 223:ql(180);break;case 266:ql(191);break;case 83:case 122:ql(256);break;case 97:case 249:ql(149);break;case 111:case 222:ql(261);break;case 104:case 130:case 240:ql(165);break;case 135:case 197:case 255:ql(208);break;case 120:case 206:case 256:case 262:ql(167);break;case 121:case 125:case 167:case 188:case 194:case 230:case 231:ql(96);break;case 71:case 73:case 74:case 75:case 76:case 80:case 81:case 82:case 84:case 85:case 86:case 87:case 89:case 90:case 91:case 92:case 94:case 95:case 98:case 99:case 102:case 103:case 105:case 106:case 107:case 109:case 110:case 112:case 113:case 114:case 119:case 123:case 124:case 126:case 127:case 129:case 132:case 133:case 134:case 136:case 137:case 138:case 142:case 143:case 147:case 148:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 162:case 163:case 164:case 165:case 166:case 168:case 170:case 173:case 174:case 175:case 179:case 181:case 183:case 184:case 185:case 189:case 195:case 198:case 202:case 203:case 204:case 205:case 207:case 210:case 216:case 217:case 224:case 225:case 226:case 228:case 229:case 232:case 233:case 234:case 239:case 241:case 242:case 245:case 248:case 253:case 254:case 257:case 258:case 259:case 260:case 263:case 267:case 268:case 269:case 272:case 273:case 276:ql(144);break;default:Wl=$l}if(Wl==25735||Wl==25797||Wl==25855){Wl=uc(21,Vl);if(Wl==0){var e=Xl,t=Vl,n=$l,r=Jl,i=Kl,s=Ql,o=Gl,u=Yl;try{Xf(),oc(21,t,-1),Wl=-3}catch(a){Wl=-2,Xl=e,Vl=t,$l=n,$l==0?cc=t:(Jl=r,Kl=i,Ql=s,Ql==0?cc=i:(Gl=o,Yl=u,cc=u)),oc(21,t,-2)}}}switch(Wl){case-2:case 19:case 25671:case 25673:case 25674:case 25675:case 25676:case 25678:case 25680:case 25681:case 25682:case 25683:case 25684:case 25685:case 25686:case 25687:case 25689:case 25690:case 25691:case 25692:case 25694:case 25695:case 25697:case 25698:case 25699:case 25702:case 25703:case 25704:case 25705:case 25706:case 25707:case 25709:case 25710:case 25711:case 25712:case 25713:case 25714:case 25719:case 25720:case 25721:case 25722:case 25723:case 25724:case 25725:case 25726:case 25727:case 25729:case 25730:case 25732:case 25733:case 25734:case 25736:case 25737:case 25738:case 25739:case 25742:case 25743:case 25747:case 25748:case 25750:case 25752:case 25753:case 25754:case 25755:case 25756:case 25757:case 25761:case 25762:case 25763:case 25764:case 25765:case 25766:case 25767:case 25768:case 25770:case 25773:case 25774:case 25775:case 25777:case 25779:case 25781:case 25783:case 25784:case 25785:case 25787:case 25788:case 25789:case 25794:case 25795:case 25798:case 25802:case 25803:case 25804:case 25805:case 25806:case 25807:case 25810:case 25816:case 25817:case 25820:case 25822:case 25823:case 25824:case 25825:case 25826:case 25828:case 25829:case 25830:case 25831:case 25832:case 25833:case 25834:case 25839:case 25840:case 25841:case 25842:case 25845:case 25848:case 25849:case 25853:case 25854:case 25856:case 25857:case 25858:case 25859:case 25860:case 25862:case 25863:case 25866:case 25867:case 25868:case 25869:case 25872:case 25873:case 25876:Ya();break;case-3:break;default:Xf()}Il(26),Hl(50),Il(266),Xf()}function Ll(){ic.startNonterminal(\"ArrayConstructor\",Vl),Pl(69),Il(272),$l!=70&&(jl(),G()),Pl(70),ic.endNonterminal(\"ArrayConstructor\",Vl)}function Al(){Hl(69),Il(272),$l!=70&&Y(),Hl(70)}function Ol(){ic.startNonterminal(\"BlockExpr\",Vl),Pl(281),Il(280),jl(),of(),Pl(287),ic.endNonterminal(\"BlockExpr\",Vl)}function Ml(){Hl(281),Il(280),uf(),Hl(287)}function _l(){ic.startNonterminal(\"FunctionDecl\",Vl),Pl(147),Il(245),jl(),$a(),Il(22),Pl(35),Il(98),$l==31&&(jl(),U()),Pl(38),Il(158),$l==80&&(jl(),Dl()),Il(122);switch($l){case 281:Pl(281),Il(280),jl(),of(),Pl(287);break;default:Pl(134)}ic.endNonterminal(\"FunctionDecl\",Vl)}function Dl(){ic.startNonterminal(\"ReturnType\",Vl),Pl(80),Il(253),jl(),Ls(),ic.endNonterminal(\"ReturnType\",Vl)}function Pl(e){$l==e?(jl(),ic.terminal(i.TOKEN[$l],Jl,Kl>fc?fc:Kl),Xl=Jl,Vl=Kl,$l=Ql,$l!=0&&(Jl=Gl,Kl=Yl,Ql=0)):zl(Jl,Kl,0,$l,e)}function Hl(e){$l==e?(Xl=Jl,Vl=Kl,$l=Ql,$l!=0&&(Jl=Gl,Kl=Yl,Ql=0)):zl(Jl,Kl,0,$l,e)}function Bl(e){var t=Xl,n=Vl,r=$l,i=Jl,s=Kl;$l=e,Jl=lc,Kl=cc,Ql=0,Va(),Xl=t,Vl=n,$l=r,$l!=0&&(Jl=i,Kl=s)}function jl(){Vl!=Jl&&(ic.whitespace(Vl,Jl),Vl=Jl)}function Fl(e){var t;for(;;){t=hc(e);if(t!=22){if(t!=37)break;Bl(t)}}return t}function Il(e){$l==0&&($l=Fl(e),Jl=lc,Kl=cc)}function ql(e){Ql==0&&(Ql=Fl(e),Gl=lc,Yl=cc),Wl=Ql<<9|$l}function Rl(e){$l==0&&($l=hc(e),Jl=lc,Kl=cc)}function Ul(e){Ql==0&&(Ql=hc(e),Gl=lc,Yl=cc),Wl=Ql<<9|$l}function zl(e,t,r,i,s){throw t>=ec&&(Zl=e,ec=t,tc=r,nc=i,rc=s),new n.ParseException(Zl,ec,tc,nc,rc)}function oc(e,t,n){sc[(t<<5)+e]=n}function uc(e,t){var n=sc[(t<<5)+e];return typeof n!=\"undefined\"?n:0}function hc(e){var t=!1;lc=cc;var n=cc,r=i.INITIAL[e],s=0;for(var o=r&8191;o!=0;){var u,a=n<fc?ac.charCodeAt(n):0;++n;if(a<128)u=i.MAP0[a];else if(a<55296){var f=a>>4;u=i.MAP1[(a&15)+i.MAP1[(f&31)+i.MAP1[f>>5]]]}else{if(a<56320){var f=n<fc?ac.charCodeAt(n):0;f>=56320&&f<57344&&(++n,a=((a&1023)<<10)+(f&1023)+65536,t=!0)}var l=0,c=5;for(var h=3;;h=c+l>>1){if(i.MAP2[h]>a)c=h-1;else{if(!(i.MAP2[6+h]<a)){u=i.MAP2[12+h];break}l=h+1}if(l>c){u=0;break}}}s=o;var p=(u<<13)+o-1;o=i.TRANSITION[(p&31)+i.TRANSITION[p>>5]],o>8191&&(r=o,o&=8191,cc=n)}r>>=13;if(r==0){cc=n-1;var f=cc<fc?ac.charCodeAt(cc):0;return f>=56320&&f<57344&&--cc,zl(lc,cc,s,-1,-1)}if(t)for(var d=r>>9;d>0;--d){--cc;var f=cc<fc?ac.charCodeAt(cc):0;f>=56320&&f<57344&&--cc}else cc-=r>>9;return(r&511)-1}r(e,t);var n=this;this.ParseException=function(e,t,n,r,i){var s=e,o=t,u=n,a=r,f=i;this.getBegin=function(){return s},this.getEnd=function(){return o},this.getState=function(){return u},this.getExpected=function(){return f},this.getOffending=function(){return a},this.getMessage=function(){return a<0?\"lexical analysis failed\":\"syntax error\"}},this.getInput=function(){return ac},this.getOffendingToken=function(e){var t=e.getOffending();return t>=0?i.TOKEN[t]:null},this.getExpectedTokenSet=function(e){var t;return e.getExpected()<0?t=i.getTokenSet(-e.getState()):t=[i.TOKEN[e.getExpected()]],t},this.getErrorMessage=function(e){var t=this.getExpectedTokenSet(e),n=this.getOffendingToken(e),r=ac.substring(0,e.getBegin()),i=r.split(\"\\n\"),s=i.length,o=i[s-1].length+1,u=e.getEnd()-e.getBegin();return e.getMessage()+(n==null?\"\":\", found \"+n)+\"\\nwhile expecting \"+(t.length==1?t[0]:\"[\"+t.join(\", \")+\"]\")+\"\\n\"+(u==0||n!=null?\"\":\"after successfully scanning \"+u+\" characters beginning \")+\"at line \"+s+\", column \"+o+\":\\n...\"+ac.substring(e.getBegin(),Math.min(ac.length,e.getBegin()+64))+\"...\"},this.parse_XQuery=function(){ic.startNonterminal(\"XQuery\",Vl),Il(277),jl(),o(),Pl(25),ic.endNonterminal(\"XQuery\",Vl)};var Wl,Xl,Vl,$l,Jl,Kl,Ql,Gl,Yl,Zl,ec,tc,nc,rc,ic,sc,ac,fc,lc,cc};r.getTokenSet=function(e){var t=[],n=e<0?-e:r.INITIAL[e]&8191;for(var i=0;i<289;i+=32){var s=i,o=(i>>5)*4235+n-1,u=o>>2,a=u>>2,f=r.EXPECTED[(o&3)+r.EXPECTED[(u&3)+r.EXPECTED[(a&15)+r.EXPECTED[a>>4]]]];for(;f!=0;f>>>=1,++s)(f&1)!=0&&t.push(r.TOKEN[s])}return t},r.MAP0=[71,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,17,17,17,17,17,17,17,17,17,18,19,20,21,22,23,24,25,26,27,28,29,26,30,30,30,30,30,31,32,33,30,30,34,30,30,35,30,30,30,36,30,30,37,38,39,40,30,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,40,40],r.MAP1=[108,124,214,214,214,214,214,214,214,214,214,214,214,214,214,214,156,181,181,181,181,181,214,215,213,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,247,261,277,293,309,355,371,387,423,423,423,415,339,331,339,331,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,440,440,440,440,440,440,440,324,339,339,339,339,339,339,339,339,401,423,423,424,422,423,423,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,338,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,423,71,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,17,17,17,17,17,17,17,17,17,18,19,20,21,22,23,24,25,26,27,28,29,26,30,30,30,30,30,31,32,33,30,30,30,30,30,30,30,30,30,30,30,30,30,30,40,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,34,30,30,35,30,30,30,36,30,30,37,38,39,40,30,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,40,40,40,40,40,40,40,40,40,40,40,40,30,30,40,40,40,40,40,40,40,70,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70],r.MAP2=[57344,63744,64976,65008,65536,983040,63743,64975,65007,65533,983039,1114111,40,30,40,30,30,40],r.INITIAL=[1,24578,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289],r.TRANSITION=[32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,18432,18508,18512,18508,18508,18471,18503,18452,18508,18544,32640,25253,32640,72986,32640,32640,18907,32640,23058,21807,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,61740,32640,32640,53140,22565,22594,54694,22641,32640,25253,32640,22707,32640,32640,18907,32640,40804,19219,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22757,32640,23442,32640,20728,22822,22912,62853,22949,23023,32640,25253,37379,72986,32640,32640,18907,32640,23058,40482,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,23090,32640,70756,57235,23625,57174,23143,53889,57205,23194,32640,44590,57237,72986,32640,32640,18907,32640,23058,18925,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,22132,19073,46732,23294,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,23361,32640,61740,23437,23807,23824,22912,35136,23474,23607,32640,25253,32640,72986,32640,32640,18907,32640,40461,21807,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,61740,57592,32640,53140,23657,43708,23704,23789,32640,25253,32640,72986,32640,32640,18907,32640,23058,21807,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,61740,32640,32640,39259,23856,32640,32640,23893,32640,25253,32640,72986,32640,32640,18907,32640,23058,21807,31154,19779,32640,18612,18649,18757,18789,18959,73053,22069,23965,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,24031,32640,23861,32640,22776,24082,22912,56240,24206,24329,32640,25253,32640,24379,32640,32640,18907,32640,23058,57529,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,24415,24449,24453,24440,24534,24485,24515,24566,24596,24628,32640,32105,32640,72986,32640,32640,18907,32640,23058,21807,31154,45903,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,24678,32640,61740,24746,48361,53140,24789,24808,24825,24857,32640,27397,32640,72986,32640,32640,18907,32640,23058,21807,31154,45563,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,24907,32640,61740,32640,32640,52064,24984,25013,61799,25045,32640,25253,32640,72986,32640,32640,18907,32640,23058,21807,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,25095,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,61740,32640,32640,54034,25151,25188,25171,25235,32640,25253,32640,72986,32640,32640,18907,32640,23058,21807,31154,19779,32640,25302,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,25340,32640,61740,24702,35413,25353,25385,25402,58363,25449,32640,25253,32640,72986,32640,32640,18907,32640,23058,21807,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,25499,32640,61740,32640,32640,53140,25538,25575,25558,25622,32640,25253,32640,72986,32640,32640,49347,54782,64809,35297,64457,32024,25672,25724,32640,25308,42746,72012,48724,25775,59604,63895,70062,53329,26051,44572,32640,32640,53365,69246,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,36217,25878,32640,32640,25912,56403,72012,72012,47453,69896,25776,64787,25947,25982,26472,26016,26050,68602,32640,32640,21278,65491,41507,72012,47768,59999,36922,55439,25983,53287,66001,26051,68608,32640,35129,65495,72012,26084,25776,26132,25983,66375,26051,26181,26227,36550,62167,71378,26264,56947,53286,26299,56814,66968,50229,37146,26336,26407,64681,37193,26609,67516,26450,26504,26590,60773,47253,26654,26722,26771,49912,26461,51539,26820,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,61740,32640,32640,29428,26976,69042,27027,27107,32640,25253,32640,27176,32640,32640,18907,32640,35800,21807,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,27212,32640,18617,32640,32640,53140,27264,27332,41428,27379,32640,25253,32640,27446,36386,32640,18907,32640,23058,40482,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,27496,32640,61740,32640,32640,45704,22912,32640,27545,27614,32640,25253,32640,27679,32640,32640,49347,54782,51035,35297,32640,32024,32640,27715,32640,25308,72012,72012,48724,25776,59604,25983,61672,26051,26051,49853,32640,32640,70980,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,40010,32640,32640,25692,32640,68393,72012,72012,27753,25776,25776,39830,25983,25983,39566,26051,26051,43098,32640,32640,32640,65491,72012,72012,27795,25776,60349,39842,25983,53287,26051,26051,70527,32640,32640,65495,72012,46827,25776,55996,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,27836,32640,26232,27985,34535,60068,27930,27958,60099,28032,32640,32366,32640,72986,32640,32640,73079,29194,30273,28620,31154,44986,32640,18612,18649,18757,18789,18959,32755,28084,30249,28403,29274,28141,28173,28885,36451,32640,24875,69179,19041,62458,19134,40819,21681,28259,30189,28317,28376,29214,30382,28201,30288,28732,66570,19251,21244,41014,19334,19366,19398,28435,28285,28497,28109,28529,28561,28593,28652,28684,28716,19661,19735,19811,19878,19910,19942,28764,21709,32781,28826,28935,28991,29023,29361,30055,20090,20138,20211,20265,29171,28465,29246,28344,29334,29302,29393,20579,20709,20774,29460,29082,29111,29139,29492,29611,20949,21030,29555,29643,29675,28857,29707,21310,29804,29832,29864,29896,29992,30024,30105,30173,28959,30221,29583,29053,28794,28227,30320,30352,29523,30414,30442,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,30485,32640,61740,55714,40332,67370,30532,30549,30500,30596,32640,25253,32640,72986,32640,32640,18907,32640,23058,21807,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,25063,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,62487,66570,19251,64424,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,30661,19661,19735,19811,19878,19910,19942,30758,30851,33683,30826,30858,20058,19907,21927,19969,20090,20138,20211,20265,30890,63521,30967,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,61740,32640,32640,32640,31025,31042,31089,31121,32640,25253,32640,72986,41921,32640,18907,32640,23058,19161,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31186,32640,61740,32640,32640,53140,31304,31321,61422,31368,32640,25253,32640,72986,38336,32640,18907,32640,23058,19597,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31436,32640,22917,32640,32640,53140,31488,31505,63455,31552,32640,25253,32640,72986,23911,32640,18907,32640,23058,20233,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,31603,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31688,32640,61740,27887,32640,57839,22912,31734,24347,31775,32640,25253,32640,31840,32640,32640,18907,32640,57508,20515,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,61740,32640,32640,53140,22912,32640,62571,27379,32640,25253,32640,72986,32640,32640,18907,32640,23058,21807,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,36567,70299,34240,32640,25253,32640,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,53e3,32640,32640,25682,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,34467,32640,32640,25692,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,43098,32640,32640,46497,65491,72012,72012,51277,25776,46932,39842,25983,53287,26051,26051,70527,32640,32640,65495,72012,46827,25776,55996,25983,53288,26051,37187,32640,52315,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,36567,70299,34240,32640,25253,32640,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,53e3,32640,32640,25682,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,34467,32640,32640,25692,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,43098,32640,32640,32640,65491,72012,72012,51277,25776,46932,39842,25983,53287,26051,26051,70527,32640,32640,65495,72012,46827,25776,55996,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,36567,70299,34240,32640,25253,32640,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,53e3,32640,32640,25682,32497,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,34467,32640,32640,25692,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,43098,32640,32640,32640,65491,72012,72012,51277,25776,46932,39842,25983,53287,26051,26051,70527,32640,32640,65495,72012,46827,25776,55996,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,36567,70299,34240,32640,25253,32640,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,53e3,32640,32640,25682,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,34467,32640,32640,20179,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,43098,32640,32640,32640,65491,72012,72012,51277,25776,46932,39842,25983,53287,26051,26051,70527,32640,32640,65495,72012,46827,25776,55996,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,36567,70299,34240,32640,25253,32640,31980,32640,32640,49347,54782,64809,51195,32640,32024,32640,31979,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,53e3,32640,32640,25682,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,34467,32640,32640,25692,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,43098,32640,32640,32640,65491,72012,72012,51277,25776,46932,39842,25983,53287,26051,26051,70527,32640,32640,65495,72012,46827,25776,55996,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,36567,70299,34240,32640,25253,32640,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,44572,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,58552,32640,32640,32640,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,36567,70299,34240,32640,25253,32640,32640,32640,32640,49347,54782,64809,69771,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,44572,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,58552,32640,32640,32640,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,36567,70299,41903,32640,25253,32640,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,44572,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,58552,32640,32640,32640,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,32012,36567,70299,34240,32640,25253,32640,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,57111,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,44572,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,58552,32640,32640,32640,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,27513,32056,32087,32640,25253,32640,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,44572,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,58552,32640,32640,32640,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,36567,70299,34240,32640,25253,32640,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,44572,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,58552,32640,32640,32640,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,31793,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32154,32640,72814,32640,32640,53140,22912,36567,70299,34240,32640,25253,32640,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,44572,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,58552,32640,32640,32640,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32191,32640,61740,32640,32640,53140,32266,32219,32317,32348,32640,25253,32640,72986,32640,32640,18907,32640,23058,21807,31154,19779,32640,32398,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,32449,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,61740,32640,32640,53140,22912,32640,32640,32541,32640,25253,32640,72986,32640,32640,18907,32640,23058,40482,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32639,61740,32640,32640,53140,32606,32625,66147,32673,32640,25253,32640,72986,32640,32640,18907,32640,23058,21807,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,32724,21452,21374,21431,32813,21618,21650,32920,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,61740,32640,32640,53140,22912,32640,32640,27379,32640,25253,32640,72986,32640,32640,18907,32640,23058,21807,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,33014,72814,65242,23329,65262,33049,33078,33110,33141,72172,33868,38406,33224,33302,35892,33415,33497,33529,33657,32640,70241,33715,23262,70547,65483,72012,56115,31942,25776,33771,25983,62395,26051,60426,53e3,43338,33820,20169,33900,28052,33936,72012,34004,34096,25776,69679,34153,25983,34209,34305,26051,34381,34413,59316,60982,34567,18580,43988,66280,56105,34613,34671,54769,57995,34763,50540,69616,34835,44365,69116,72659,27683,51215,45101,34941,55781,57901,25776,68182,34981,25983,35037,38017,43551,35100,35168,46148,32692,38542,69316,67857,54357,35200,37506,35270,39191,36089,32640,37090,24260,50683,56669,60278,35348,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,43929,35445,35530,35582,50980,66874,47849,48295,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,35651,72814,32640,32640,53140,35689,35718,35750,35781,32640,25253,32640,32640,32640,32640,42703,63159,35832,71490,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,53e3,32640,32640,71083,54414,54421,64131,72012,55872,25809,25776,60149,25844,25983,63179,26051,26051,34327,34467,32640,32640,25692,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,43098,32640,35952,27144,30726,72012,63213,63138,25776,69714,35989,25983,42068,36035,26051,36069,32640,32640,65495,72012,46827,25776,55996,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,20456,36134,36191,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,64516,72814,48426,59530,63767,36272,36304,36336,36367,32640,36432,25203,32640,32640,41660,37716,55922,36483,36530,48415,59494,31702,18855,62820,64973,39682,72012,36599,25776,18725,36659,69934,36699,26051,52493,36750,23246,55732,34581,32640,18679,55301,36783,36820,35485,36918,36954,37494,37030,64702,65892,37178,34467,32640,37225,65319,32640,68393,72012,37261,33962,25776,37316,55427,25983,39119,39566,26051,49047,43098,37375,42559,23999,65491,72012,48479,51277,25776,37411,39842,45287,53287,26051,67220,70527,32640,37538,37571,37131,46827,23541,55996,67894,53288,53572,47622,37618,25915,66600,37659,46843,32872,37796,37836,46302,47046,68392,23524,65621,25983,37889,41315,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,37927,37988,38060,47849,36159,34716,26535,44815,38151,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,20106,72814,32509,23162,53140,38224,38253,38285,38316,32640,25253,32640,32640,60657,39330,34441,50711,54836,51195,33270,38384,46719,22206,33192,38438,72385,38511,38616,40937,20657,38673,38705,39528,38892,38940,32640,47380,49323,32640,70823,64131,72012,32968,25809,25776,45195,25844,25983,46666,26051,26051,58683,38996,32640,59450,25692,27180,22361,39052,64136,40912,42209,25776,39090,66443,25983,39151,60300,26051,39223,32640,32640,36102,70444,72012,71366,65683,25776,39291,39362,35619,34803,26051,43538,70527,72942,37229,65495,39402,46827,39434,39492,52767,39560,39598,39731,22659,32640,64131,71378,25776,29955,53286,26051,46302,19837,68392,68106,33972,25983,39769,58918,26609,71375,56493,39511,67952,33375,70146,67746,39807,39877,27300,39932,39984,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,22609,72814,27464,30794,40060,40119,40148,40180,40211,40263,40295,40364,40412,40514,40546,40606,40667,40699,40731,40783,20976,40854,40994,52527,25308,41046,39699,41078,46357,49141,41137,44544,41236,41286,41368,47192,41460,41554,41610,40087,41703,41735,41816,41872,41968,42030,42100,42250,42282,42373,42458,42490,42522,42554,42591,31571,42679,24113,42735,42778,42826,42887,59586,42933,43014,20677,52796,43080,37857,50773,19009,50153,72778,68055,66201,43130,61992,43205,43285,43380,36003,43457,50341,43583,43639,62580,43704,43740,65764,46827,43772,55996,43804,43857,43893,43961,72604,44020,44104,67022,44136,44196,44228,44289,44397,41399,46788,44452,69369,44513,44648,70208,20438,68896,51376,63626,44257,54317,44622,67433,55113,55250,49487,51457,67801,44680,44712,34716,38736,44788,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,54076,72814,67462,71804,46979,44874,44903,44935,44966,65157,25253,32640,32640,45018,45029,45061,36627,47904,71490,70229,49986,32640,30141,65148,45093,45133,72012,45175,25776,67154,25983,61672,45240,26051,53e3,32640,32640,25682,32640,30614,64131,72012,62187,25809,25776,34052,25844,25983,58051,26051,26051,68586,34467,32640,32640,25692,49974,68393,36788,72012,33962,51715,25776,55427,25983,45283,39566,26051,45319,43098,32640,32640,22533,65491,72012,65748,51277,25776,40635,39842,48131,53287,26051,72059,70527,32640,32640,65495,72012,46827,25776,55996,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,26195,32640,30913,33383,31947,68516,43425,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,38767,44815,45355,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,72990,32640,53140,45461,45480,45512,45543,32640,25253,25880,32640,32640,32640,49347,54782,64809,65216,32640,32024,32640,29772,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,44572,32640,32640,32640,26944,43348,64131,72012,72012,45595,25776,25776,45631,25983,25984,26051,26051,26018,58552,32640,45666,62963,32640,45736,45143,72012,33962,47777,25776,55427,45634,25983,39566,62106,26051,66507,32640,61374,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,45776,65495,72012,45833,25776,43236,25983,48970,26051,35378,19759,45883,40885,45935,34121,45988,46059,68691,46114,46509,48784,46180,46232,52911,56583,46294,61320,46334,46389,52972,46541,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,57068,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,36567,70299,37061,32640,46592,32640,23927,23933,35920,72528,46641,71255,46698,32640,41638,46765,32640,32640,25308,72012,32982,31942,25812,62010,25983,52465,26051,62071,44572,32640,32640,32640,32640,46875,64131,72012,72012,46928,25776,25777,25844,25983,25846,26051,26051,48238,66922,32640,32640,32640,58432,34888,72012,72012,24139,25776,25776,64186,25983,25983,64365,26051,26051,68602,32640,31139,32640,65491,72012,59125,47768,25776,23575,39842,25983,43409,26051,51585,68608,32640,40326,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,23989,59115,71381,31947,25983,51580,26788,46560,61892,58181,67203,61301,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,48851,72814,23672,46964,47011,47078,47108,47140,47171,32640,41336,32640,50620,20998,40574,47224,47285,49169,47359,32640,35316,31404,32640,22498,71540,47426,22395,47485,41998,47553,68243,35005,43487,49590,47654,45801,22675,32476,32285,47707,67491,67589,47739,47809,47521,53771,47881,39370,54202,70106,63727,47936,58552,32640,49793,48007,32640,65551,71979,37586,48049,48729,71596,33444,48130,48163,50320,48235,48270,34864,70560,48327,48393,48458,72887,48523,38468,37956,42313,48632,55501,51516,36886,48664,48761,48816,50855,27414,41840,48883,63268,48941,45429,49017,55015,49079,32640,22725,23734,49111,51113,69533,55593,49224,46302,49298,68392,71381,31947,25983,51580,58698,26609,49388,58232,70503,49450,42622,70146,67746,49519,60834,49912,26461,39900,47849,56608,49551,26535,44815,49622,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,69860,72814,32640,32640,53140,22912,46609,49741,49772,32640,25253,32640,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,32640,32640,25308,72012,57444,31942,38479,62010,25983,49825,26051,53559,44572,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,58552,32640,32640,32640,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,59709,72814,32640,32640,53140,22912,36567,70299,34240,32640,25253,61385,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,44572,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,55063,32640,32640,32640,32640,51342,72012,72012,34031,25776,25776,21586,25983,25983,37804,26051,26051,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,52831,72814,72305,49953,50018,50050,50069,50101,50132,70815,25253,24050,32640,72261,50206,50261,50293,50389,50456,50572,49266,32159,46476,50609,46896,49653,37284,50652,61556,51136,34792,50743,43516,41182,50834,50887,32640,37764,32640,32640,39657,23757,50924,50956,53683,55377,51012,52437,51082,71275,51168,51247,58552,31456,32640,51318,32640,68393,71632,34909,33962,25776,51408,55427,25983,51489,51571,26051,51617,51676,60646,71309,32640,65491,66269,72012,47768,51714,36922,67551,25983,53287,50411,26051,51682,70346,19987,51747,72012,24952,25776,68123,51821,47327,51856,50424,31808,72723,44072,71378,24163,55203,53286,67732,46302,62840,68392,67136,45208,51824,51580,51892,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,49192,51996,52096,48579,26535,57041,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32641,72814,32640,52167,20380,52202,52231,52263,52294,52373,25253,38352,32640,52375,52359,29926,52407,61167,51195,57599,32024,25590,52525,32640,52559,51778,52613,52685,43173,52736,25950,43825,49580,44319,53632,52043,52828,32640,32640,32640,58759,38563,72012,52863,54749,25776,52943,55231,25984,38908,53056,26018,58552,53105,32640,22853,53172,39020,53205,55838,69472,53239,53488,67539,53276,33788,39566,53320,63643,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,53361,32640,72366,71378,53397,57660,53286,53431,46302,32640,68392,71381,47833,35238,66390,37193,26609,71375,60465,43860,63958,50482,38641,53073,53467,53538,49912,26461,39900,47849,36159,48078,53604,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,53715,36751,53803,53858,53921,53950,53982,54013,68341,65423,54066,22337,73196,54108,54140,54172,54234,54389,39321,25417,42341,50174,54455,44050,56059,66616,54504,54555,45851,57679,42130,56789,64232,60925,56829,19692,32640,54689,69055,20609,57455,72012,54726,52653,25776,54814,63908,25984,61227,36498,26018,58552,32640,47394,24383,68318,72870,72012,54868,18707,25776,69705,54929,25983,71927,54995,26051,43915,55047,31632,29738,32574,55095,55145,55282,55174,55347,55409,55471,55533,55625,55661,26850,67349,33333,55693,55764,55813,55904,55954,45409,55563,59673,58326,64010,31239,37627,56028,56147,63574,71739,56202,48600,52021,33017,44420,56272,51439,56304,26558,56379,49469,56435,56525,55629,58860,53658,56557,38796,56640,56760,53746,56861,56918,47849,36159,34716,35068,57014,26905,57100,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,57143,60501,46140,53140,57269,57298,57330,57361,57393,21867,57487,53826,57561,73137,57631,57725,57757,57818,64532,33845,25743,28903,32640,30718,48491,57871,57933,57965,50507,34177,46420,65902,58083,44572,34502,27347,47675,69192,32417,27057,58115,45744,58167,58213,58473,58264,36980,26375,58296,44349,69977,37742,31057,58358,32640,35957,68393,49673,58395,33962,23558,65824,55427,66456,46015,39566,60313,47611,68602,32640,47038,58431,65491,72012,72012,58464,25776,27804,58505,25983,57693,26051,26051,58542,33253,32640,51913,22383,49691,64312,64327,50524,46027,71028,38028,53132,32640,21514,49356,67641,68454,61634,65986,49249,32640,68392,71381,31947,25983,51580,39737,67971,58592,35498,68821,42982,65031,58624,58730,58791,58892,49912,26461,39900,47849,36159,34716,60897,62262,58971,59003,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,53024,32640,59046,59088,59157,59186,59218,59249,26690,25253,32640,62512,59314,32640,21399,45956,59348,59428,60204,32024,59282,59482,59526,27721,62325,42794,59562,37343,41105,59653,46262,57786,56728,42158,59014,59705,59741,32640,32640,64131,27582,72012,25809,51286,25776,25844,68525,25984,26051,69412,26018,38086,59766,53173,30453,31873,68393,59807,72012,38182,56458,25776,67880,68261,25983,39566,61247,26051,68602,40380,32640,32640,65491,72012,59857,47966,60005,45599,39842,71940,53287,26051,59892,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,71116,32640,59931,71378,25776,29955,53286,26051,56227,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,36718,59969,24280,60037,60131,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,36567,70299,34240,32640,25253,54423,32640,20742,60181,32843,60251,67710,54291,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,44572,32640,29420,32640,32640,32640,64131,72012,72012,60345,25776,25776,60381,25983,25984,26051,26051,26018,58552,32640,32640,32640,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,68602,32640,32640,32640,65491,53207,72012,47768,27763,36922,39842,71874,53287,26051,60418,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,70720,71381,60458,35226,48985,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,36240,60497,23383,53140,60533,60561,60593,60624,23405,25467,22160,33169,60689,60747,60715,60805,60866,60957,32640,36400,61023,26995,32640,33355,55315,59825,61082,65831,61145,47313,61199,61279,67236,61352,32640,30073,61417,71794,61454,22979,61508,38584,61544,61588,56170,61624,61666,64623,61704,26051,48694,58552,65333,72472,61736,61772,61831,56082,61881,64292,46200,55981,63076,32888,56329,36998,50357,58842,68602,61924,31336,31217,32949,61962,72012,54897,52135,36922,43253,54949,53287,62059,62103,54635,69791,32640,71552,72012,20633,25776,66700,25983,70631,26051,43048,60991,32640,27575,38860,26267,35612,71431,26052,46302,39252,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,59396,61050,48909,62138,49921,43861,50802,44756,26873,47849,36159,34716,33560,62235,62294,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,69266,62427,62544,62612,62644,62673,62705,62736,31256,49878,31910,32640,62790,62885,62917,44164,69556,51644,62949,62995,45696,32640,19278,63027,63108,63211,63245,54342,53506,63300,61672,63378,63410,44572,63450,21770,63487,58560,32640,57422,68884,61512,63553,47513,61592,63606,63675,29960,51050,63717,37895,63759,18562,21217,40028,32560,63799,59860,58135,43158,25776,63843,70614,25983,63875,63940,26051,63990,64042,64442,21262,32640,64117,58399,38848,47768,24174,64168,39842,56347,53287,26051,64218,68608,27898,31520,65495,64264,51931,42855,67656,26365,64359,39180,64397,32640,22880,64131,71378,25776,29955,53286,26051,56886,32234,41489,41766,51964,60386,51580,64489,54657,64564,34064,72128,35550,42184,64655,39628,49921,43861,62758,40962,68714,54610,64734,36847,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,25270,32640,23111,32122,64856,64887,64919,64950,31389,65005,27232,34519,65063,65120,65088,61113,65189,65294,65365,65397,32640,65455,65527,65583,65653,65730,65796,42647,52704,58025,65863,65934,65966,66033,64072,66099,26683,30564,66131,66179,66246,41522,66312,64765,26100,66344,66422,62027,63346,66488,48098,66539,38119,40439,30690,24714,66648,46809,22991,67082,66680,47975,66732,66764,58510,66819,66851,26304,66906,66954,31272,32640,67e3,67054,67114,21544,34639,21568,67186,67268,67325,67402,54264,43607,48017,34273,42426,67583,30935,67621,41784,67688,48203,67778,64824,41671,20315,24236,67833,44481,37470,67926,59378,68003,32640,68087,68155,34696,68214,39952,68293,68373,68425,68486,66787,35862,33375,70146,67746,49921,43861,49912,58817,68777,68557,68640,68746,58655,44815,68853,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,64085,32640,48353,53140,68928,68957,68989,69020,32640,27125,27632,30788,27143,32640,31656,64595,69087,69148,32640,32024,32640,69224,32640,49895,69298,39058,69348,25776,49418,25983,70024,69401,45323,46448,24757,70970,32640,27865,31743,52581,61849,69444,69504,54523,54583,69588,33465,69648,59899,33588,69746,58552,69823,32640,32640,69855,38964,72012,72012,65611,69892,25776,72113,69928,25983,39566,69966,26051,41254,35657,32640,32640,61476,72012,72012,62354,25776,36922,70009,25983,26418,26051,26051,34349,32640,18845,26622,72012,27075,25776,39460,70056,67293,70094,41204,31858,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,45386,70138,70178,58860,33375,70146,67746,49921,43861,49912,26461,46082,68666,70273,34716,26535,44842,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,22217,68030,66060,33739,70331,54472,70378,70409,32640,25253,32640,32640,32640,32640,19302,70476,56692,51195,59775,43315,32640,32640,27647,25308,37113,62203,70592,53244,62010,70663,47583,56714,33625,44572,32640,32640,28e3,32640,29763,64131,55855,72012,25809,51949,25776,25844,56967,25984,26051,33611,26018,58552,32640,32640,32640,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,50577,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,25506,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,70701,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,59056,32640,70752,70788,70855,70884,70916,70947,32640,25253,32640,32640,32640,32640,41578,49709,71012,71060,32640,32024,32640,32640,71115,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,44572,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,58552,32640,32640,38108,32640,24932,72012,72012,52641,25776,25776,71858,25983,25983,43032,26051,26051,68602,32640,71148,32640,65491,51789,34949,47768,56478,42901,39842,71181,63325,63418,36037,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32154,32640,72814,32640,32640,53140,22912,36567,70299,34240,32640,25640,43672,32640,22790,58939,37441,71228,41160,51195,32640,22183,71515,71307,32640,25308,72012,71341,31942,35465,71413,36667,59621,26051,71463,42401,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,58552,32640,32640,41936,32640,68393,66214,72012,71584,38192,25776,42053,70669,25983,39566,39775,26051,68602,35405,32640,32640,65491,71628,72012,48552,25776,36922,26149,25983,53287,71664,26051,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,22912,36567,70299,37690,32640,25253,66067,32640,32640,32640,71710,26739,42964,71771,20325,32024,32640,32640,32640,27283,72012,59937,31942,25776,52893,25983,56982,26051,51860,44572,23321,32640,32640,37539,32640,38825,72013,72012,71836,53399,25776,71906,39845,25984,71678,53435,26018,58552,30134,32640,32640,32640,68393,71972,72012,63054,52123,25776,62376,48188,25983,24297,36872,26051,68602,32640,32640,33904,65491,72012,72011,47768,42218,36922,39842,71196,53287,26051,72045,68608,32640,48843,65495,72012,51360,25776,65698,25983,53288,26051,45251,32640,34258,23504,63811,25776,68806,63685,26051,46302,23041,68392,72091,44738,54963,34731,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,31905,32640,72814,32640,32640,53140,72160,36567,70299,34240,32640,25253,32640,32640,32640,32640,49347,54782,64809,51195,32640,32024,32640,32640,32640,25308,72012,72012,31942,25776,62010,25983,61672,26051,26051,44572,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,58552,32640,32640,32640,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,72268,72234,40231,72204,72300,72337,72417,72449,32640,25253,71149,72986,32640,32640,22011,19703,24646,21807,31154,19779,32640,18612,18649,18757,18789,18959,21985,22069,72504,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,61740,32640,70431,53140,72560,72589,60219,72636,32640,25253,32640,72986,50892,50890,18907,32640,40751,21807,31154,19779,32640,18612,18649,18757,18789,18959,22037,22069,18821,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,61930,32640,32640,19846,72691,72708,30629,72755,32640,25253,32640,72810,59270,52170,18907,32640,23058,21807,31154,19779,32640,18612,18649,18757,18789,18959,22311,22069,72846,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,21310,21452,21374,21431,21484,21618,21650,21741,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,22530,32640,61740,32640,32640,53140,22912,32640,32640,72919,32640,25253,32640,32640,32640,32640,49347,54782,64809,35297,32640,32024,32640,32640,32640,25308,72012,72012,48724,25776,59604,25983,61672,26051,26051,44572,32640,32640,32640,32640,32640,64131,72012,72012,25809,25776,25776,25844,25983,25984,26051,26051,26018,58552,32640,32640,32640,32640,68393,72012,72012,33962,25776,25776,55427,25983,25983,39566,26051,26051,68602,32640,32640,32640,65491,72012,72012,47768,25776,36922,39842,25983,53287,26051,26051,68608,32640,32640,65495,72012,51360,25776,65698,25983,53288,26051,37187,32640,32640,64131,71378,25776,29955,53286,26051,46302,32640,68392,71381,31947,25983,51580,37193,26609,71375,60465,43860,58860,33375,70146,67746,49921,43861,49912,26461,39900,47849,36159,34716,26535,44815,26905,26933,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,34485,32640,23212,23229,52327,72974,32640,32640,32640,72986,32640,32640,18907,32640,23058,21807,31154,43659,32640,18612,18649,18757,18789,18959,21985,22069,72504,22057,18887,18787,18957,18991,36451,32640,24875,69179,19041,62458,19134,40819,21341,19073,46732,21342,19074,46733,19106,19193,40822,19438,66570,19251,21244,41014,19334,19366,19398,19470,19502,19538,25119,19498,19534,19570,19359,19629,19422,19661,19735,19811,19878,19910,19942,20019,30851,30993,20026,30858,20058,19907,21927,19969,20090,20138,20211,20265,20357,63521,20412,63518,20488,20547,20291,20579,20709,20774,20821,20870,20853,20885,20789,20917,20949,21030,21062,21094,21084,21126,21186,73022,21452,21374,21431,73111,21618,21650,73169,21802,23057,21839,21899,21959,22101,21154,22249,22281,22427,22459,22487,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,32640,1,24578,3,0,0,0,0,0,0,0,180523,180523,180523,180523,0,188716,188716,188716,180523,180523,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,0,188716,180523,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,139264,147456,188716,188716,188716,188716,188716,188716,188716,188716,188716,131072,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,188716,367,188716,180523,188716,188716,1,24578,3,0,0,4366336,0,0,0,180523,188716,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2289,0,2290,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2368,2369,0,0,2371,0,0,0,0,2376,0,0,0,0,0,0,0,0,0,0,0,4276224,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,0,307,0,0,5767168,0,0,0,4857856,0,0,0,0,0,0,0,0,0,0,0,0,5259264,0,5414912,5447680,0,0,5562368,5636096,5685248,0,5750784,5873664,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,1877,521,521,521,521,521,521,521,521,521,1889,521,521,521,521,521,521,0,0,0,0,57886,57886,57886,59821,57886,59823,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,50657,58754,977,57909,57909,58853,57909,57909,58857,57909,57909,57909,57909,57909,57909,57909,57909,58871,0,0,5636096,5873664,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5873664,0,0,0,0,0,0,0,5480448,4358144,4358144,4358144,4358144,4857856,4874240,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5259264,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5414912,4358144,5447680,4358144,5464064,4358144,5480448,5562368,4358144,0,0,0,0,6275072,0,0,0,0,0,0,0,0,0,0,0,977,0,0,0,0,0,4857856,4874240,0,0,0,0,0,0,0,0,0,3144,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1262,0,0,0,0,0,0,0,0,0,0,0,0,0,5873664,0,0,0,0,0,0,0,0,0,0,0,6275072,0,0,0,0,0,0,0,0,0,0,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,0,0,0,0,0,0,0,0,0,0,0,1140,0,0,1145,0,4857856,4874240,0,0,4923392,5562368,4358144,4358144,4358144,5636096,4358144,5685248,4358144,4358144,5750784,4358144,4358144,4358144,4358144,4358144,5873664,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6275072,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4923392,4358144,4358144,4358144,4358144,4358144,0,4923392,0,0,0,0,4366336,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2755,0,0,0,0,0,0,0,0,0,0,0,0,2766,0,0,0,0,0,0,4825088,0,0,5177344,0,0,0,0,5701632,0,0,0,0,0,0,0,0,0,0,5808128,0,0,0,0,4792320,4833280,0,0,5701632,0,5242880,0,0,0,0,0,0,0,5341184,0,0,0,0,0,0,0,0,0,0,0,0,5627904,5652480,0,5701632,0,0,0,0,0,0,0,4358144,4358144,4358144,4825088,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5177344,4358144,4358144,4358144,4358144,4358144,5242880,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5341184,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5627904,5652480,4358144,5701632,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,483328,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4857856,4874240,0,0,4923392,4358144,4358144,4358144,4358144,4358144,4358144,5341184,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5627904,5652480,4358144,5701632,4358144,4358144,5808128,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,1051,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4857856,4874240,0,0,4923392,0,0,6422528,0,0,0,0,0,0,0,0,0,0,0,5619712,0,0,0,0,0,0,0,5726208,5758976,0,0,5791744,0,0,0,0,0,0,0,1151,1278,0,0,0,0,0,0,1285,0,0,0,0,0,0,0,1290,0,0,0,0,0,0,0,0,521,521,521,521,521,848,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,0,6479872,0,0,0,0,0,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4931584,4939776,4358144,4358144,4358144,4358144,4358144,4358144,5054464,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5210112,4358144,4358144,4358144,4358144,5292032,4358144,4358144,4358144,4358144,5365760,4358144,4358144,4358144,5455872,4358144,4358144,4358144,4358144,4358144,5554176,5570560,5578752,5619712,5668864,4358144,4358144,4358144,5791744,5816320,4358144,5857280,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6119424,4358144,6168576,4358144,4358144,4358144,4358144,6242304,4358144,6291456,4358144,6316032,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6463488,4358144,4358144,4358144,4358144,4358144,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4931584,0,0,0,0,0,0,0,4358144,4358144,4358144,4358144,4358144,6463488,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4931584,4939776,0,0,0,0,0,0,5054464,0,0,0,0,0,0,0,0,5210112,0,0,0,0,5292032,0,0,0,0,5365760,0,0,0,5455872,0,0,0,0,0,5554176,5570560,5578752,5619712,5668864,0,5578752,5619712,5668864,0,0,0,5791744,5816320,0,5857280,0,0,0,0,0,0,0,0,0,0,0,0,0,6119424,0,6168576,0,0,0,0,0,6242304,0,6291456,0,6316032,0,6291456,0,6316032,0,0,0,0,0,0,0,0,0,6463488,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4931584,4939776,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,491520,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4857856,4874240,0,0,4923392,5578752,5619712,5668864,4358144,4358144,4358144,5791744,5816320,4358144,5857280,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6119424,4358144,6168576,4358144,4358144,4358144,4358144,4358144,6242304,4956160,4964352,0,0,0,0,0,0,0,0,0,0,5218304,0,0,0,0,5799936,0,5881856,0,0,0,0,0,0,0,0,0,6373376,6389760,0,0,0,0,0,1758,0,0,1761,0,1763,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,977,0,0,0,0,0,0,0,0,0,0,0,6488064,6103040,0,0,0,0,0,6184960,5316608,0,0,5644288,0,0,0,0,0,0,0,0,0,0,6217728,0,0,0,0,0,0,0,0,0,3384,0,0,0,3388,0,0,0,0,0,3394,0,0,0,0,0,0,0,0,0,0,0,0,6275072,0,0,0,0,0,0,0,367,367,0,0,0,0,0,0,0,0,0,0,0,0,5390336,5308416,5488640,0,0,5070848,5431296,0,6430720,0,0,5160960,0,0,0,0,0,0,0,0,0,0,0,4784128,0,0,0,0,0,0,0,0,3623,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2359296,417,417,0,0,0,0,0,0,0,0,0,6283264,6332416,0,0,0,5881856,0,5382144,0,0,0,0,0,0,6266880,4784128,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4915200,4358144,4956160,4972544,4358144,4358144,4358144,4358144,4358144,4358144,5070848,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5218304,4358144,5267456,4358144,4358144,5308416,5316608,4358144,4358144,4358144,5431296,4358144,5488640,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5799936,4358144,4358144,5881856,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6103040,4358144,4358144,4358144,6184960,4358144,4358144,6283264,4358144,4358144,6332416,4358144,4358144,4358144,6389760,4358144,4358144,6430720,6438912,4358144,4358144,4358144,6266880,6488064,0,0,0,6266880,6488064,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3149,0,0,0,0,3154,0,0,0,0,0,0,0,0,0,0,0,4358144,6430720,6438912,0,0,0,0,0,0,4784128,0,0,0,4849664,0,0,0,0,0,4915200,0,4956160,4972544,0,0,0,0,0,0,5070848,0,0,0,0,0,0,0,5218304,0,0,6103040,0,0,0,6184960,0,0,0,6283264,0,0,6332416,0,0,0,6389760,0,0,6430720,6438912,4784128,4358144,4358144,4358144,4849664,4358144,4358144,4358144,4358144,4358144,4915200,0,5660672,5718016,0,5865472,0,0,6037504,0,0,6078464,0,0,6340608,0,6455296,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,325,326,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5472256,0,0,0,6209536,0,0,0,0,6176768,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4898816,0,5709824,0,0,0,0,0,1790,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1806,0,0,0,0,0,0,0,0,0,0,0,2348,0,0,0,0,0,0,0,0,5283840,0,0,0,0,5251072,0,6414336,5832704,0,5955584,0,0,4358144,4358144,4841472,4358144,4358144,4358144,4898816,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,0,0,0,0,0,0,0,0,0,368640,0,0,0,0,0,0,4857856,4874240,0,0,4923392,4358144,5111808,4358144,4358144,4358144,4358144,4358144,5283840,4358144,4358144,4358144,4358144,5472256,5521408,4358144,4358144,4358144,5595136,5709824,5718016,4358144,5824512,5865472,4358144,4358144,5922816,4358144,4358144,6021120,4358144,6037504,4358144,4358144,6078464,6111232,4358144,6176768,6209536,4358144,6234112,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,0,0,0,0,0,0,0,0,0,3408,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1172,0,0,0,0,0,0,0,0,0,4358144,6078464,6111232,4358144,6176768,6209536,6234112,4358144,4358144,4358144,4358144,4358144,4358144,4358144,0,0,0,0,4841472,0,0,0,4898816,0,0,0,0,0,0,0,0,0,340,0,0,0,0,0,0,0,0,0,0,0,0,0,388,0,139264,147456,0,0,0,0,0,6037504,0,0,6078464,6111232,0,6176768,6209536,0,6234112,0,0,0,0,0,0,0,0,0,0,0,4841472,0,0,0,4898816,0,0,0,0,0,0,0,0,3773,0,3627,3775,0,0,3778,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,4024,521,4026,521,521,4028,521,57886,57886,57886,57886,57886,57886,57886,0,6021120,0,6037504,0,0,6078464,6111232,0,6176768,6209536,0,6234112,0,0,0,0,0,0,0,4358144,4358144,4841472,4358144,4358144,4358144,4898816,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,499712,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4857856,4874240,0,0,4923392,4358144,4358144,4358144,4358144,4358144,4358144,5111808,4358144,4358144,4358144,4358144,4358144,5283840,4358144,4358144,4358144,4358144,5472256,5521408,4358144,4358144,4358144,4358144,5595136,5709824,5718016,4358144,5824512,5865472,4358144,4358144,5922816,0,5029888,5038080,0,0,5103616,5201920,0,0,0,0,0,0,0,0,0,0,0,0,0,6406144,5357568,0,5505024,0,0,0,0,0,5890048,0,0,0,0,0,521,521,521,521,521,521,521,521,521,1873,521,521,521,521,521,521,521,521,1884,521,521,521,521,521,521,521,521,521,3216,521,521,521,521,0,0,57886,57886,57886,57886,57886,60569,57886,60570,57886,57886,57886,57886,57886,57886,57886,57886,57886,58842,57886,57886,57886,57886,50657,58754,977,57909,57909,58854,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59962,59963,57909,57909,57909,57909,57909,57909,59970,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,6160384,0,5095424,5349376,0,5275648,0,0,0,0,0,0,0,0,0,0,0,5947392,0,0,0,0,0,0,0,0,0,0,0,0,0,301,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,787,0,0,0,0,0,0,0,0,0,0,0,0,0,6471680,0,0,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4997120,4358144,4358144,5038080,4358144,4358144,4358144,5095424,5103616,4358144,4358144,5201920,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5890048,4358144,4358144,4358144,6029312,4358144,4358144,4358144,4358144,6160384,4358144,4358144,4358144,4358144,5890048,4358144,4358144,4358144,6029312,4358144,4358144,4358144,4358144,6160384,4358144,4358144,4358144,4358144,4358144,4358144,6406144,0,0,0,0,0,0,0,0,4997120,0,0,5038080,0,0,0,0,6406144,0,0,0,0,0,0,0,0,4997120,0,0,5038080,0,0,0,5095424,5103616,0,0,5201920,0,0,0,0,0,0,0,0,0,0,0,5890048,0,0,0,6029312,0,0,0,0,6160384,0,0,0,0,0,0,0,6406144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4997120,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6406144,4358144,4358144,4358144,0,0,0,4890624,0,0,0,0,0,0,0,0,0,5898240,5963776,0,0,6193152,0,0,5406720,6397952,5300224,5234688,5423104,0,0,0,0,5988352,0,0,6135808,6307840,0,5996544,4800512,0,6356992,0,0,0,5496832,0,0,0,0,0,5611520,0,0,0,0,0,0,0,1187,0,0,1190,1191,0,0,0,0,1195,0,0,0,367,367,0,0,0,0,0,0,0,0,0,0,782,0,0,0,0,0,0,0,786,0,0,0,0,0,0,0,0,0,0,0,0,801,4947968,5021696,5529600,0,0,5169152,0,0,0,4800512,4808704,4358144,4358144,4890624,4358144,4947968,4358144,4358144,4358144,5046272,4358144,4358144,4358144,4358144,5185536,4358144,5234688,5300224,4358144,4358144,5406720,5529600,4358144,4358144,4358144,5898240,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6307840,4358144,4358144,6356992,6381568,6397952,4800512,4808704,0,0,4890624,0,4947968,0,0,0,5046272,0,0,0,0,5185536,0,5234688,5300224,0,0,5406720,5529600,0,0,0,0,5898240,0,0,0,0,0,0,0,0,6307840,0,0,6356992,6381568,6397952,4800512,4808704,0,0,4890624,0,0,6356992,6381568,6397952,4800512,4808704,4358144,4358144,4890624,4358144,4947968,4358144,4358144,4358144,5046272,4358144,4358144,4358144,4358144,5185536,4358144,5234688,5300224,4358144,4358144,5406720,5529600,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4907008,0,5079040,6094848,0,0,0,4358144,4907008,4358144,5079040,4358144,5226496,4358144,5742592,4358144,4358144,4358144,6094848,0,4907008,0,5079040,0,5226496,5898240,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6307840,4358144,4358144,6356992,6381568,6397952,5021696,4358144,4358144,5021696,0,0,0,4980736,0,0,0,0,0,5373952,5734400,6045696,0,0,0,0,0,2306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2290,0,0,0,0,0,0,0,6152192,0,0,0,6316032,0,0,0,0,5816320,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2778,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2803,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6258688,6447104,0,0,6127616,0,6348800,5906432,0,5537792,3627,0,0,0,0,5939200,0,0,5677056,6365184,4866048,0,6070272,5545984,5152768,0,0,6144e3,4358144,4866048,4882432,4358144,0,0,0,0,0,4825088,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5177344,0,0,0,0,0,0,0,0,0,5324800,5373952,5537792,5545984,5586944,5734400,5971968,0,6045696,0,6070272,0,0,0,0,6348800,0,4866048,4882432,0,4980736,0,0,0,0,0,0,0,0,521,831,521,521,521,521,521,521,521,521,521,521,521,877,521,521,521,521,895,521,521,57886,57886,58249,0,5324800,5373952,5537792,5545984,5586944,5734400,5971968,0,6045696,0,6070272,0,0,0,0,6348800,4358144,4866048,4882432,4358144,4980736,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5324800,5373952,5537792,5545984,5734400,5971968,4358144,6045696,4358144,6070272,4358144,4358144,4358144,6348800,0,4866048,4882432,0,4980736,0,0,0,0,5537792,5545984,5586944,5734400,5971968,4358144,6045696,4358144,6070272,4358144,4358144,4358144,4358144,6348800,4358144,6144e3,0,6144e3,0,4988928,5005312,0,0,0,0,5775360,0,0,0,3627,0,0,0,0,0,521,521,521,521,521,521,521,3441,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3454,521,521,521,0,0,0,0,0,0,57886,57886,60242,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60250,57886,57886,57886,57886,57886,57886,57886,57886,57886,60293,57886,57886,57886,60296,60297,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59917,57909,57909,57909,57909,57909,57909,57909,5693440,0,6496256,5144576,5136384,0,5914624,4358144,4358144,5005312,4358144,4358144,4358144,512e4,5136384,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6324224,0,0,5005312,0,0,0,512e4,5136384,0,0,0,0,0,0,0,0,0,0,6324224,0,0,5005312,0,0,0,512e4,5136384,0,0,0,0,0,0,0,0,0,0,6324224,4358144,0,0,900,900,900,4825988,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,5178244,900,900,900,900,900,5219204,900,5268356,900,900,5309316,5317508,900,900,900,5432196,900,5489540,900,900,900,900,900,900,900,900,900,5800836,900,900,5882756,900,4358144,5005312,4358144,4358144,4358144,512e4,5136384,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6324224,5914624,5914624,0,0,0,0,0,5513216,5783552,0,3627,0,0,0,0,0,0,1759,0,0,0,0,0,0,0,0,0,0,0,0,1772,0,1774,0,0,0,1778,0,0,0,1782,0,0,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4857856,4874240,0,0,4923392,0,5013504,0,0,6053888,0,0,0,0,6012928,4358144,4358144,5013504,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6053888,4358144,4358144,0,0,5013504,0,0,0,0,0,0,685,0,0,0,0,0,0,692,367,367,367,0,0,0,0,0,0,0,0,0,0,0,705,0,0,0,0,0,0,0,0,6053888,0,0,0,0,0,5013504,0,0,0,0,0,0,0,0,0,6053888,0,0,0,4358144,4358144,5013504,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5799936,4358144,4358144,5881856,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6103040,4358144,4358144,4358144,6184960,4358144,4358144,4358144,6283264,4358144,4358144,6332416,4358144,4358144,4358144,4358144,4358144,6053888,4358144,4358144,4358144,0,0,0,0,0,0,0,4358144,4358144,4358144,4358144,4358144,5193728,4358144,4358144,4358144,4358144,4358144,4358144,4358144,0,0,0,0,0,0,0,4857856,4874240,0,0,0,0,0,0,0,0,0,0,0,0,0,5259264,0,0,0,0,0,0,0,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,0,901,0,0,0,0,0,4857856,4874240,0,0,0,0,0,0,0,0,0,0,0,0,0,5259264,0,0,0,0,0,0,0,0,5414912,0,5447680,0,5464064,0,5480448,5562368,0,0,0,5636096,0,5685248,0,0,5750784,0,0,0,0,0,5873664,0,0,0,0,0,0,0,0,0,5193728,0,0,0,0,0,0,0,0,0,0,0,0,0,5193728,0,0,0,0,0,0,0,0,4358144,4358144,4358144,4358144,4358144,5193728,4358144,0,1959,0,0,0,4825088,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5177344,0,0,0,0,0,0,715,0,717,0,0,0,0,0,0,0,0,0,0,0,0,0,732,0,0,0,0,0,0,0,0,0,1189,0,0,0,0,0,0,0,0,0,0,367,367,0,0,0,0,0,0,0,0,0,0,1250,1252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,362,0,0,0,0,0,0,367,0,295,0,0,5742592,0,0,0,6094848,0,0,4907008,0,5079040,0,5226496,0,5742592,0,0,0,6094848,0,4358144,4907008,4358144,5079040,4358144,5226496,4358144,5742592,4358144,4358144,4358144,6094848,4358144,5062656,0,0,0,4358144,5062656,4358144,4358144,4358144,4358144,4358144,0,5062656,0,0,0,0,0,6225920,0,5062656,0,0,0,0,0,6225920,4358144,5062656,4358144,4358144,4358144,0,900,0,0,0,0,0,4857856,4874240,0,0,0,0,0,0,0,0,0,0,0,0,0,5259264,0,0,0,0,0,0,0,746,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,762,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,2396,521,521,521,521,2400,521,521,521,521,521,521,521,521,521,521,521,3199,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1390,521,521,1394,521,521,521,521,521,1401,521,521,4358144,4358144,4358144,6225920,0,0,0,4816896,4358144,4358144,4358144,4358144,6086656,4816896,0,0,0,0,6086656,4816896,0,0,0,0,6086656,4816896,4358144,4358144,4358144,4358144,6086656,5087232,0,5931008,4358144,5332992,5980160,4358144,0,5332992,5980160,0,0,5332992,5980160,0,4358144,5332992,5980160,4358144,5439488,5128192,4358144,5128192,0,5128192,0,5128192,4358144,4358144,0,0,4358144,4358144,0,0,4358144,6004736,6004736,6004736,6004736,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1289,0,0,0,0,0,0,0,0,1294,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2816,0,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,0,221645,221645,221645,461,461,461,461,461,461,461,461,461,461,461,461,461,221645,461,221645,221645,221645,461,221645,221645,221645,221645,221645,221645,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,327,328,329,330,0,0,0,0,0,0,0,0,0,0,221645,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3390,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1769,0,0,0,0,0,0,0,0,0,0,1780,0,0,0,0,0,0,0,4268032,0,0,0,0,0,0,0,0,0,0,0,0,0,755,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3414,0,0,0,0,3418,0,0,0,0,3423,0,0,0,0,0,0,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,237568,301,0,305,237568,0,0,0,0,0,0,0,0,0,0,0,0,0,302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,788,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,305,0,0,0,0,0,0,0,0,0,0,0,0,305,0,0,0,0,0,0,305,237982,147456,0,0,0,305,0,0,0,0,0,2334,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2349,0,0,0,0,0,0,0,3406,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3420,3421,0,0,0,0,3426,0,0,0,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,0,516096,0,0,0,0,305,305,305,305,305,305,305,305,305,305,305,305,305,305,305,305,305,305,305,305,305,305,305,305,305,0,305,0,0,0,0,0,521,521,521,521,521,521,1870,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2453,521,521,521,2456,521,521,521,521,521,2461,521,305,1,24578,3,0,0,4366336,0,0,0,0,0,65536,302,0,4268032,98304,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3626,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4210978,24578,3,0,0,296,0,0,0,0,296,0,0,0,0,0,0,0,0,0,245760,0,0,0,0,0,0,0,0,0,0,0,399,0,0,0,0,0,0,0,0,0,0,0,399,0,0,0,0,0,0,0,0,0,0,0,0,131072,0,0,0,0,245760,0,0,0,0,245760,0,245760,0,245760,0,0,0,0,0,0,0,0,0,0,0,0,0,326,400,0,0,0,0,0,0,0,0,0,326,0,0,0,0,0,0,0,0,4210978,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,212992,0,212992,212992,212992,212992,212992,212992,212992,212992,212992,212992,212992,212992,212992,212992,212992,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1768,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1257,0,0,0,0,0,0,0,0,0,0,0,0,0,1270,0,0,2059,0,0,0,4825088,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5177344,0,0,0,0,0,0,0,1730,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,311,310,0,0,0,310,310,311,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,262144,0,0,0,0,0,0,0,0,0,0,350,0,0,0,0,0,0,0,0,351,0,0,0,0,0,0,0,0,0,0,0,0,657,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,673,674,0,0,0,0,0,0,262144,262144,262144,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,301,0,0,0,262144,0,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,262731,0,262731,0,0,0,0,0,521,521,521,521,521,3439,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3670,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60591,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59853,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60298,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,262731,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,245760,245760,245760,245760,245760,245760,245760,0,0,0,0,0,0,0,0,0,0,278528,278528,0,0,131072,278528,0,0,0,278528,0,0,0,0,278528,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,333,0,0,0,0,0,0,0,0,0,0,0,333,384,0,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,278528,0,278528,0,0,0,0,0,521,521,521,521,3438,521,521,521,521,3442,521,521,521,521,521,521,521,3448,521,521,521,521,521,521,521,521,521,1901,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1921,521,521,278528,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,262144,0,0,0,0,0,0,262144,262144,0,0,0,0,0,0,0,0,0,0,0,262144,262144,0,262144,0,0,0,139264,147456,262144,0,0,0,0,0,0,0,0,415,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,302,0,0,0,1,24578,3,0,0,4366336,0,0,0,0,0,301,631,0,4268032,305,634,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,532480,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,754,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6275072,0,0,0,0,0,0,0,0,0,0,0,1506,0,0,0,0,0,4857856,4874240,0,0,0,0,0,0,0,0,0,3624,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2810,2811,0,0,0,0,0,0,0,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,286720,302,0,306,286720,0,0,0,0,0,0,0,0,0,0,0,0,0,722,0,0,0,0,0,0,0,0,0,733,0,0,0,0,733,0,739,0,0,0,0,0,306,0,0,0,0,0,0,0,0,0,0,0,0,306,0,0,0,0,0,0,306,139264,287138,0,0,0,306,0,0,0,0,0,2386,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2402,521,2404,521,521,521,521,521,521,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59830,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60836,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60274,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,306,0,306,0,0,0,0,0,521,521,521,3437,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3449,521,521,521,521,521,521,521,521,521,3464,521,3466,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,61250,57909,57909,61252,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,59994,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,306,1,24578,3,0,0,4366336,0,0,0,0,0,301,66168,0,4268032,305,98939,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,540672,0,0,0,0,0,0,0,540672,0,0,0,0,0,0,0,0,0,122880,0,4268032,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2352,0,0,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,0,303,303,303,0,0,303,303,295215,303,303,303,303,303,303,303,303,303,295215,373,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,368,303,0,295215,303,303,303,303,295285,295215,295215,295215,295215,295215,295215,303,303,303,303,303,303,295285,295215,295215,295215,303,303,303,295285,139264,147456,295215,295215,303,303,295215,303,303,131072,303,303,303,303,295215,303,303,303,303,295215,303,295215,295215,295215,303,303,303,303,303,303,303,303,303,303,303,303,303,303,303,295215,295215,295215,295215,295215,295215,303,303,303,295215,303,303,303,303,303,303,303,303,303,303,303,303,303,295215,303,295215,295215,295215,295215,295215,295215,295215,303,0,303,0,303,303,303,295215,303,303,303,295215,295215,303,295215,303,295215,295215,295215,295215,295215,295215,295215,295215,295285,295285,295285,295285,295285,295285,295285,295285,295285,295285,295285,295285,295285,295285,295285,295285,295285,295285,295285,295215,295215,295215,295215,295215,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4358144,4359045,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,319488,0,0,0,0,0,0,0,0,0,352256,0,352256,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2373,0,0,0,0,0,0,0,0,0,0,0,0,319488,0,0,0,0,0,0,319488,319488,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1743,0,0,0,0,0,0,0,1751,1752,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,319488,0,0,0,319488,319488,319488,319488,319488,319488,319488,319488,319488,319488,319488,319488,319488,319488,319488,0,0,0,0,319488,0,0,0,0,0,0,0,0,0,0,319488,0,0,0,0,0,0,0,0,0,319488,0,0,0,0,319488,0,319488,319488,319488,0,24578,3,0,0,4366336,253952,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627904,0,0,0,0,0,0,0,0,0,0,0,0,0,4284416,0,0,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,327680,0,0,0,0,0,0,0,0,521,2389,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3219,521,0,0,57886,57886,57886,57886,57886,57886,57886,57886,60571,57886,57886,57886,57886,57886,57886,60579,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,0,327680,327680,327680,0,0,0,0,0,0,0,0,0,0,327680,327680,327680,327680,335872,327680,327680,327680,335872,327680,327680,327680,327680,327680,327680,0,0,0,0,0,0,0,0,0,49716,0,0,0,0,0,327680,49716,327680,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5627904,0,0,0,0,0,0,196608,0,0,0,106496,0,0,4284416,0,0,0,0,0,0,6275072,0,0,0,0,0,0,0,0,0,0,49152,977,0,0,0,0,0,4857856,4874240,0,0,0,0,0,0,0,0,0,6463488,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4931584,4939776,0,0,0,0,0,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,0,344064,344064,344064,0,0,0,0,0,0,0,0,0,0,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,344064,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,727,0,0,0,0,0,0,0,0,0,0,0,0,0,344064,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,367,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,356,357,358,359,0,0,0,0,0,0,0,0,0,367,0,295,0,0,0,0,0,4276224,1245,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,352256,0,0,0,0,0,0,0,0,0,0,0,0,139264,147456,0,0,352256,0,0,0,0,0,0,131072,0,352256,352256,0,0,352256,0,0,352256,0,352256,0,352256,352256,352256,352256,352256,352256,352256,352256,352256,352256,352256,352256,352256,352256,352256,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1197,0,367,367,0,1200,0,0,0,0,0,0,0,0,352256,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,367,0,0,0,0,0,0,0,0,0,0,0,0,706,0,0,1,291,3,0,0,0,297,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3398,0,0,0,0,0,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,0,360448,360448,360448,0,0,0,0,0,0,0,0,0,0,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,360448,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1226,0,0,0,0,0,0,0,0,0,0,0,0,0,360448,1,0,3,155941,155941,295,0,629,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,367,0,0,0,0,698,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1212,0,0,0,0,1217,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1806,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4276224,1245,0,0,0,0,0,0,0,0,0,0,0,0,1259,0,0,0,0,0,0,0,0,0,0,0,0,0,1221,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1188,0,58796,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59402,521,58754,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58826,57886,57886,50657,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59502,57886,0,2281,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,739,0,0,0,2357,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3428,0,57909,59926,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58906,57909,57909,59952,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57886,57936,60009,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,60035,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60937,521,3212,521,521,521,521,521,521,521,521,521,521,521,521,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59387,59388,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60604,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60320,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,60702,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,0,3612,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3381,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,369,0,0,0,57886,57886,60830,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60853,57886,57886,57936,57936,57936,57936,60914,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60057,57936,57936,57936,57936,61027,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,61045,57909,57909,57909,57909,57909,57909,57909,57909,57909,60634,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59493,57909,57909,57909,57909,57909,57909,57909,57909,57886,61048,57909,57909,57909,57909,57909,57909,57909,57909,57909,61056,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,60378,57936,57936,57936,57886,57886,57886,57886,61156,57886,57886,57886,57886,61157,61158,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,59997,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57909,61175,57909,57909,57909,57909,61176,61177,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61194,57936,0,0,0,0,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,61078,61079,57936,57936,57936,57936,61083,61084,57936,57936,57936,57936,57936,61088,57936,57936,57936,57936,57936,57936,57936,57936,57936,61195,61196,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,57886,57886,0,0,0,0,0,0,0,0,0,0,0,3627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,3177,521,521,521,521,521,521,3184,521,3186,521,521,521,57936,57936,57936,57936,57936,61270,57936,57936,57936,57936,57936,57936,61276,57936,57936,57936,61280,57936,521,57886,0,0,0,0,0,0,0,0,3627,0,0,0,0,0,0,1791,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,672,0,0,0,0,0,0,0,3947,521,521,521,521,521,521,521,521,521,521,521,521,521,521,61306,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58312,57886,57886,57886,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61322,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61338,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,3759,521,57886,61105,57886,0,0,0,0,0,0,0,0,0,0,0,57886,61439,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,61452,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,61465,57936,57936,57936,57936,57936,57936,57936,57936,57936,60413,57936,57936,57936,57936,57936,57936,60421,57936,57936,57936,57936,57936,60426,57936,57936,57936,57936,57936,57936,57936,57936,57936,0,0,0,0,0,4077,0,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,0,0,521,521,521,521,57886,57886,57886,57886,57909,57909,57909,57909,57936,57936,57936,57936,0,521,521,57886,57886,57909,57909,57936,57936,521,57886,57909,57936,521,57886,57909,57936,521,57886,57909,57936,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1829,0,0,0,0,0,0,0,0,0,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,0,376832,376832,376832,0,0,0,0,0,0,0,0,0,0,0,0,0,1254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1268,1269,0,0,0,0,0,419,419,419,419,590,590,419,419,419,419,419,419,419,419,419,419,419,419,419,419,419,419,419,419,419,0,419,0,0,0,0,0,521,1866,521,521,521,521,521,521,1872,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,0,0,57886,57886,57886,57886,60568,57886,57886,57886,57886,57886,57886,60575,57886,60577,57886,57886,419,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,367,0,696,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2817,0,0,0,4268773,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2380,0,0,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,307,0,0,0,0,0,0,0,0,0,0,0,0,721,0,0,0,0,0,0,0,0,731,0,637,731,0,735,736,637,0,0,0,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,0,393678,393678,393678,0,0,0,0,0,0,0,0,0,0,0,0,0,1309,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,4025,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,0,0,0,393678,0,393678,393678,393678,0,393678,393678,393678,393678,393678,393678,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1771,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,425984,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,3176,521,521,521,521,521,3181,521,521,521,521,521,521,521,0,0,0,4268032,0,0,0,0,0,0,0,0,0,0,0,0,0,475136,0,0,0,0,0,0,0,0,0,0,0,0,0,0,374,0,0,375,0,0,0,0,0,327,375,330,374,0,0,0,0,0,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,0,0,304,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,57887,521,57887,521,521,57887,521,521,57910,57887,521,521,57887,57887,57887,57910,0,0,0,420,420,420,420,420,420,420,420,420,420,420,420,420,420,420,420,420,420,420,420,420,420,420,420,420,0,420,0,0,0,0,0,521,3435,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1916,521,521,521,521,521,521,420,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,304,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,723,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1287,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,741,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2791,0,0,1239,0,0,0,741,1246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,1322,521,521,521,521,521,521,521,2468,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60276,57886,57886,57886,57886,57886,57886,57886,57886,521,521,521,2468,2895,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60305,57886,57886,0,0,0,2963,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,417792,308,309,0,0,0,0,0,0,1815,0,0,0,0,0,0,0,0,1821,0,1823,0,0,0,0,0,0,0,0,0,0,0,0,0,0,540672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3127,0,0,0,0,3132,0,0,0,0,0,0,0,0,131072,0,0,0,0,0,0,0,0,309,0,417792,417792,0,0,417792,417792,417792,417792,417792,417792,417792,417792,417792,417792,417792,417792,417792,418101,417792,417792,418100,418101,417792,417792,418100,417792,418100,417792,0,0,0,0,0,0,0,0,417792,0,0,0,417792,0,0,0,0,0,0,0,0,0,0,0,309,309,309,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1802,0,0,0,0,0,0,0,0,0,0,0,0,0,417792,1,24578,3,0,0,4366964,0,0,0,0,0,301,302,311296,4268032,305,306,0,434176,0,0,0,0,0,0,0,0,0,0,0,0,1846,0,0,0,0,0,0,0,0,0,0,0,0,0,1859,0,0,1860,0,0,900,900,5415812,900,5448580,900,5464964,900,5481348,5563268,900,900,900,5636996,900,5686148,900,900,5751684,900,900,900,900,900,5874564,900,900,900,900,900,900,900,900,900,6464388,0,0,0,0,976,976,976,976,976,976,976,976,976,976,976,4932560,4940752,976,976,976,976,976,4359044,4858756,4875140,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,5260164,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,5415812,4359044,5448580,4359044,5464964,4359044,5481348,5563268,4359044,4359044,4359044,5636996,4359044,5686148,4359044,4359044,5751684,4359044,4359044,4359044,4359044,4359044,5874564,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,6275972,4359044,4359044,4359044,4359044,4359044,4359044,5342084,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,5628804,5653380,4359044,5702532,4359044,4359044,5809028,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4907008,0,5079040,6094848,0,0,0,4358144,4907008,4358144,5079040,4358144,5226496,4358144,5742592,4358144,4358144,4358144,6094848,900,4907908,900,5079940,900,5227396,900,5243780,900,900,900,900,900,900,900,5342084,900,900,900,900,900,900,900,900,900,900,900,900,5628804,5653380,900,5702532,900,900,900,900,900,900,5211012,900,900,900,900,5292932,900,900,900,900,5366660,900,900,900,5456772,900,900,900,900,900,5555076,5571460,5579652,5620612,5669764,900,0,0,976,976,976,4826064,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,5178320,976,976,976,976,976,5112784,976,976,976,976,976,5284816,976,976,976,976,5473232,5522384,976,976,976,976,5596112,5710800,5718992,976,5825488,5866448,976,976,5923792,976,5243856,976,976,976,976,976,976,976,5342160,976,976,976,976,976,976,976,976,976,976,976,976,5628880,5653456,976,5702608,976,976,976,976,976,976,976,5260240,976,976,976,976,976,976,976,976,5415888,976,5448656,976,5465040,976,5481424,5563344,976,976,976,5637072,976,5686224,976,976,5751760,976,4358144,4358144,4358144,4358144,4358144,6463488,0,0,0,0,900,900,900,900,900,900,900,900,900,900,900,4932484,4940676,900,900,900,900,900,900,5055364,900,900,5112708,900,900,900,900,900,5284740,900,900,900,900,5473156,5522308,900,900,900,900,5596036,5710724,5718916,900,5825412,5866372,900,900,5923716,900,900,6022020,900,900,900,5792644,5817220,900,5858180,900,900,900,900,900,900,900,900,900,900,900,900,900,6120324,900,6169476,900,900,900,900,900,6243204,900,6292356,900,6316932,976,5055440,976,976,976,976,976,976,976,976,5211088,976,976,976,976,5293008,976,976,976,976,5366736,976,976,976,5456848,976,976,976,976,976,5555152,5571536,5579728,5620688,5669840,976,976,976,5792720,5817296,976,5858256,976,976,976,976,976,976,976,976,976,976,976,976,976,6120400,976,6169552,976,976,976,976,976,6243280,976,6292432,976,6317008,976,976,976,976,976,976,976,976,976,6464464,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4932484,4940676,4359044,4359044,4359044,4359044,4359044,4358144,4358144,4358144,4358144,4358144,4358144,0,900,900,900,900,900,900,0,0,0,0,0,0,0,0,0,4857856,4874240,0,0,4923392,4359044,5055364,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,5211012,4359044,4359044,4359044,4359044,5292932,4359044,4359044,4359044,4359044,5366660,4359044,4359044,4359044,5456772,4359044,4359044,4359044,4359044,4359044,5555076,5571460,5579652,5620612,5669764,4359044,4359044,4359044,5792644,5817220,4359044,5858180,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,6120324,4359044,6169476,4359044,4359044,4359044,4359044,4359044,6243204,4359044,6292356,4359044,6316932,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,6464388,4358144,4358144,4358144,4358144,4358144,900,900,900,900,900,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4931584,0,0,0,0,0,0,0,4358144,6430720,6438912,0,0,0,0,0,0,4785028,900,900,900,4850564,900,900,900,900,900,4916100,900,4957060,4973444,900,900,900,900,900,900,5071748,900,900,5194628,900,900,900,900,900,900,900,900,976,976,976,976,976,5194704,976,976,976,976,976,976,976,976,4359044,4359044,4359044,4359044,4359044,5194628,4359044,0,0,4785104,976,976,976,4850640,976,976,976,976,976,4916176,976,4957136,4973520,976,976,976,976,976,976,5071824,976,976,976,976,976,976,976,5219280,976,976,6357968,6382544,6398928,4801412,4809604,4359044,4359044,4891524,4359044,4948868,4359044,4359044,4359044,5047172,4359044,4359044,4359044,4359044,5186436,4359044,5235588,5301124,4359044,4359044,5407620,5530500,4359044,4359044,4359044,4359044,4359044,4923392,4358144,4358144,4358144,4358144,4358144,900,4924292,900,900,900,900,4366336,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1255,0,0,0,0,0,0,0,0,0,1264,0,0,0,0,0,0,0,5268432,976,976,5309392,5317584,976,976,976,5432272,976,5489616,976,976,976,976,976,976,976,976,976,5800912,976,976,5882832,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,976,6104016,976,976,976,6185936,976,976,976,6284240,976,976,6333392,976,976,976,6390736,976,976,6431696,6439888,4785028,4359044,4359044,4359044,4850564,4359044,4359044,4359044,4359044,4359044,4916100,4359044,4957060,4973444,4359044,4359044,4359044,4359044,4359044,4359044,5071748,4359044,4359044,4359044,4359044,4359044,4359044,4359044,5219204,4359044,5268356,4359044,4359044,5309316,5317508,4359044,4359044,4359044,5432196,4359044,5489540,4359044,4359044,4359044,4359044,4359044,6054788,4359044,4359044,4359044,0,0,0,0,0,0,0,4358144,4358144,4358144,4358144,4358144,5193728,4358144,4358144,4358144,4358144,4358144,4358144,4358144,900,900,900,5096324,5104516,900,900,5202820,900,900,900,900,900,900,900,900,900,900,900,5890948,900,900,900,6030212,900,900,900,900,6161284,900,900,900,900,6407044,976,976,976,976,976,976,976,976,4998096,976,976,5039056,976,976,976,5096400,5104592,976,976,5202896,976,976,976,976,976,976,976,5891024,976,976,976,6030288,976,976,976,976,6161360,976,976,976,976,976,976,976,6407120,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4998020,4359044,4358144,6078464,6111232,4358144,6176768,6209536,6234112,4358144,4358144,4358144,4358144,4358144,4358144,4358144,0,0,900,900,4842372,900,900,900,4899716,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,975,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,976,6300624,976,976,976,976,976,976,976,976,976,976,976,5809028,6038404,900,900,6079364,6112132,900,6177668,6210436,900,6235012,900,900,900,900,900,900,900,0,0,976,976,4842448,976,976,976,4899792,976,976,976,976,976,976,5874640,976,976,976,976,976,976,976,976,976,976,976,6276048,976,976,976,976,976,976,976,976,976,0,900,4359044,4359044,4359044,4359044,4359044,4359044,5112708,4359044,4359044,4359044,4359044,4359044,5284740,4359044,4359044,4359044,4359044,5473156,5522308,4359044,4359044,4359044,4359044,5596036,5710724,5718916,4359044,5825412,5866372,4359044,4359044,5923716,976,6022096,976,6038480,976,976,6079440,6112208,976,6177744,6210512,976,6235088,976,976,976,976,976,976,976,4359044,4359044,4842372,4359044,4359044,4359044,4899716,4359044,4359044,4359044,4359044,4359044,4359044,4359044,5800836,4359044,4359044,5882756,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,6103940,4359044,4359044,4359044,6185860,4359044,4359044,4359044,6284164,4359044,4359044,6333316,4359044,4359044,6022020,4359044,6038404,4359044,4359044,6079364,6112132,4359044,6177668,6210436,4359044,6235012,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4358144,4358144,4358144,900,900,900,0,0,0,0,0,0,0,1760,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,139264,147456,0,0,0,419,0,4358144,4358144,4358144,5890048,4358144,4358144,4358144,6029312,4358144,4358144,4358144,4358144,6160384,4358144,4358144,4358144,4358144,4358144,4358144,6406144,900,900,900,900,900,900,900,900,4998020,900,900,5038980,4359044,5038980,4359044,4359044,4359044,5096324,5104516,4359044,4359044,5202820,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,5890948,4359044,4359044,4359044,6030212,4359044,4359044,4359044,4359044,6161284,4359044,4359044,4359044,6226820,0,0,0,4816896,4358144,4358144,4358144,4358144,6086656,4817796,900,900,900,900,6087556,4817872,976,976,976,976,6087632,4817796,4359044,4359044,4359044,4359044,6087556,5087232,4358144,4358144,4358144,5898240,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6307840,4358144,4358144,6356992,6381568,6397952,4801412,4809604,900,900,4891524,900,4948868,900,900,900,5047172,900,900,900,900,900,6054788,900,900,900,976,976,5014480,976,976,976,976,976,976,976,976,976,6054864,976,976,976,4359044,4359044,5014404,4359044,4359044,4359044,4359044,4359044,4359044,6407044,4358144,4358144,4358144,900,900,900,4890624,0,0,0,0,0,0,0,0,0,5898240,5963776,0,0,6193152,0,0,5406720,6397952,5186436,900,5235588,5301124,900,900,5407620,5530500,900,900,900,900,5899140,900,900,900,900,900,900,900,900,6308740,900,900,6357892,6382468,6398852,4801488,4809680,976,976,4891600,976,4948944,976,976,976,5047248,976,976,976,976,5186512,976,5235664,5301200,976,976,5407696,5530576,976,976,976,976,5899216,976,976,976,976,976,976,976,976,6308816,5899140,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,6308740,4359044,4359044,6357892,6382468,6398852,5021696,4358144,4358144,5022596,900,900,0,4980736,0,0,0,0,0,5373952,5734400,6045696,0,0,0,0,0,2771,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2785,0,2786,0,0,0,0,0,0,0,0,1843,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1263,0,0,0,0,0,0,0,0,4980736,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5324800,5373952,5537792,5545984,5734400,5971968,4358144,6045696,4358144,6070272,4358144,4358144,4358144,6348800,900,4866948,4883332,900,4981636,900,900,900,900,5325700,5374852,5538692,5546884,5587844,5735300,5972868,900,6046596,900,6071172,900,900,900,900,6349700,976,4867024,4883408,976,4981712,976,976,976,976,976,976,976,976,5325776,5374928,5538768,5546960,5587920,5735376,5972944,976,6046672,976,6071248,976,976,976,976,6349776,4359044,4866948,4883332,4359044,4981636,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,5325700,5374852,5538692,5546884,5587844,5735300,5972868,4359044,6046596,4359044,6071172,4359044,4359044,4359044,4359044,6349700,4358144,6144e3,900,6144900,0,4988928,5005312,0,0,0,0,5775360,0,0,0,3627,0,0,0,0,0,655,0,0,521,521,521,521,521,845,521,521,861,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59499,57909,57909,57909,57886,5693440,0,6496256,5144576,5136384,0,5914624,4358144,4358144,5005312,4358144,4358144,4358144,512e4,5136384,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6324224,900,900,5006212,900,900,900,5120900,5137284,900,900,900,900,900,900,900,900,900,900,6325124,976,976,5006288,976,976,976,5120976,5137360,976,976,976,976,976,976,976,976,976,976,6325200,4359044,4359044,4359044,6390660,4359044,4359044,6431620,6439812,4358144,4358144,4358144,6266880,6488064,900,900,900,6267780,6488964,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1767,0,0,0,0,0,1773,0,0,0,0,0,0,0,0,0,0,0,4359044,5006212,4359044,4359044,4359044,5120900,5137284,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,6325124,5914624,5915524,0,0,0,0,0,5513216,5783552,0,3627,0,0,0,0,0,0,2285,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1265,0,0,0,0,0,0,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,6300548,900,900,900,900,900,900,900,900,900,900,900,0,5013504,0,0,6053888,0,0,0,0,6012928,4358144,4358144,5013504,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6053888,4358144,4358144,900,900,5014404,900,900,900,900,6275972,900,900,900,900,900,900,900,900,900,0,0,977,976,976,976,976,976,4858832,4875216,976,976,976,976,976,976,976,976,976,976,0,0,0,0,900,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,6300548,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4358144,4358144,900,5743492,900,900,900,6095748,900,976,4907984,976,5080016,976,5227472,976,5743568,976,976,976,6095824,976,4359044,4907908,4359044,5079940,4359044,5227396,4359044,5743492,4359044,4359044,4359044,6095748,4359044,5062656,0,0,0,4358144,5062656,4358144,4358144,4358144,4358144,4358144,900,5063556,900,900,900,900,900,6226820,976,5063632,976,976,976,976,976,6226896,4359044,5063556,4359044,4359044,4359044,4825988,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,4359044,5178244,4359044,4359044,4359044,4359044,4359044,5243780,4359044,0,5931008,4358144,5332992,5980160,4358144,900,5333892,5981060,900,976,5333968,5981136,976,4359044,5333892,5981060,4359044,5439488,5128192,4358144,5129092,900,5129168,976,5129092,4359044,4358144,900,976,4359044,4358144,900,976,4359044,6004736,6005636,6005712,6005636,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2345,0,0,0,0,0,2351,0,0,0,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,450560,0,0,0,0,0,0,450560,0,0,450560,0,450560,450560,450560,450560,450560,450560,0,0,0,0,131072,0,0,0,0,0,0,450560,0,0,0,450560,0,450560,450560,450560,450560,450560,450560,450560,450560,450560,450560,450560,450560,450560,450560,450560,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1824,0,0,0,0,0,0,1729,0,0,0,0,0,0,450560,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1848,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2359296,0,2359296,0,0,0,2359296,0,2359296,2359296,2359296,2359296,2359296,2359296,4358144,6291456,4358144,6316032,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6463488,4358144,4358144,4358144,4358144,4358144,0,0,0,0,0,0,302,0,0,306,0,0,0,0,0,0,2335,0,0,0,0,0,2339,0,0,0,0,0,0,0,2343,2344,0,0,0,0,0,2350,0,0,0,0,0,0,1302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,2836,521,521,521,521,2840,521,521,4358144,6430720,6438912,901,0,0,0,901,0,4784128,0,0,0,4849664,0,0,0,0,0,4915200,0,4956160,4972544,0,0,0,0,0,0,5070848,0,0,0,0,0,744,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,327,0,0,374,374,404,977,0,4784128,0,0,0,4849664,0,0,0,0,0,4915200,0,4956160,4972544,0,0,0,0,0,0,5070848,0,0,0,0,0,0,0,5218304,0,5267456,0,0,5308416,5316608,0,0,0,5431296,0,5488640,0,0,0,0,0,0,0,0,0,5799936,0,0,5881856,0,0,0,0,0,0,0,0,4358144,6078464,6111232,4358144,6176768,6209536,6234112,4358144,4358144,4358144,4358144,4358144,4358144,4358144,901,0,0,0,4841472,0,0,0,4898816,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,3653,521,521,521,521,521,521,521,521,521,521,521,3218,521,521,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60573,57886,60576,57886,57886,57886,6037504,0,0,6078464,6111232,0,6176768,6209536,0,6234112,0,0,0,0,0,0,0,977,0,0,0,4841472,0,0,0,4898816,0,0,0,0,0,0,0,0,6103040,0,0,0,6184960,0,0,0,6283264,0,0,6332416,0,0,0,6389760,0,0,6430720,6438912,0,0,0,0,0,0,0,0,459186,0,0,0,0,0,0,0,0,0,0,0,459215,459215,459215,459215,459215,459215,459215,459215,459215,459215,459215,459215,459215,459215,459215,459215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2291,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459340,459215,459372,459215,459215,459372,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2777,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5480448,0,0,0,0,0,0,0,0,0,0,5840896,5849088,0,1,24578,3,0,0,0,0,507904,0,0,0,507904,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,507904,0,0,0,0,0,2796,0,0,0,0,0,0,0,0,0,0,0,2804,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3385,3386,0,0,0,0,3391,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,662,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2779,0,0,0,0,0,0,0,0,0,0,2789,0,0,0,2793,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,0,507904,507904,507904,507904,507904,507904,507904,507904,507904,507904,507904,507904,507904,507904,507904,507904,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2781,0,0,2784,0,0,0,0,2788,0,0,0,0,0,507904,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,442368,0,0,0,0,0,0,0,0,0,0,0,658,0,0,661,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1225,0,0,0,0,0,0,0,1233,0,0,0,0,0,0,1,24578,3,0,0,0,0,0,516096,0,0,0,516096,0,0,0,0,0,0,516096,0,0,0,0,0,0,0,0,0,0,0,0,2287,0,2288,0,0,0,0,0,0,0,0,0,2297,0,0,0,0,0,0,0,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,0,516560,516560,516560,516560,516560,516560,516560,516560,516560,516560,516560,516560,516560,516560,516560,516560,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3152,0,0,0,0,0,0,0,0,0,0,0,0,0,516560,1,24578,0,0,0,4366336,0,0,548864,0,0,301,302,0,4268032,305,306,409600,0,0,0,0,0,0,0,0,0,0,0,0,0,1806,0,2340,0,0,0,0,0,0,0,0,2347,0,0,0,0,0,0,2354,4358144,5005312,4358144,4358144,4358144,512e4,5136384,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6324224,5914624,5914624,0,0,0,0,0,5513216,5783552,0,40960,0,0,0,0,0,0,2747,0,2749,0,0,2752,0,0,0,0,0,0,2757,0,0,0,2760,2761,0,0,0,0,0,0,0,0,521,521,521,521,521,521,855,521,521,521,521,521,874,521,521,521,521,892,521,521,521,57886,57886,57886,1,24578,4227364,0,0,0,0,0,0,298,0,0,0,298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1227,0,0,0,0,0,0,0,0,0,0,0,0,0,540672,0,0,540672,0,0,0,540672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1857,0,0,0,0,0,0,0,0,1,24578,4227364,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3148,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3393,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4268032,0,0,0,0,0,0,0,0,0,0,0,0,0,499712,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3389,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2370,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,24578,3,155941,295,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,636,0,0,0,521,521,521,58754,901,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,0,0,0,0,742,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,131072,0,0,0,0,0,0,437,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,0,0,0,0,0,0,0,0,0,0,57887,57887,57887,57887,57887,57887,57887,57910,57910,57887,57887,57937,57887,57887,57887,57887,57887,57887,57887,57937,57937,57887,57887,57887,57887,57937,57937,57887,521,57887,57887,57887,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4399797,4399797,4399797,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,410,358,0,0,399,0,0,0,0,0,139264,147456,399,410,0,423,410,1,24578,3,155942,295,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1236,0,0,0,1,24578,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,573440,0,573440,573440,573440,0,573440,573440,573440,573440,573440,573440,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3628,0,0,0,3631,0,0,0,0,0,0,0,0,3639,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,0,573440,573440,573440,0,0,0,0,0,0,0,0,0,0,0,0,0,1819,1820,0,1822,0,0,0,0,0,0,0,0,0,0,0,0,0,1836,0,0,0,0,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,573440,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4399798,311296,4399798,0,0,0,311296,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4276224,0,0,0,0,0,0,0,0,0,0,0,0,0,1260,0,0,0,0,0,0,0,0,0,0,0,0,0,1847,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1738,0,5300224,5234688,5423104,0,0,0,0,5988352,0,0,6135808,6307840,0,5996544,4800512,0,6356992,3627,0,0,5496832,0,0,0,0,0,5611520,0,0,0,0,0,0,0,1792,0,0,0,0,0,0,0,0,0,1801,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1818,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,326,326,376,0,0,0,0,0,0,0,0,0,0,1,24578,3,0,0,4366336,0,0,0,0,0,630,302,0,4268032,633,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2367,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2806,0,0,0,0,0,0,0,0,2814,0,0,0,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,581632,0,0,0,581632,581632,581632,581632,581632,581632,581632,581632,581632,581632,581632,581632,581632,581632,581632,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,340,581632,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3172,0,521,521,521,521,521,521,521,521,521,521,521,3183,521,521,3187,521,521,6258688,6447104,0,0,6127616,0,6348800,5906432,0,5537792,3774,0,0,0,0,5939200,0,0,5677056,6365184,4866048,0,6070272,5545984,5152768,0,0,6144e3,4358144,4866048,4882432,4358144,4358144,4358144,0,901,900,900,900,900,900,4858756,4875140,900,900,900,900,900,900,900,900,900,900,900,900,900,5260164,900,900,900,900,900,900,900,900,6103940,900,900,900,6185860,900,900,900,6284164,900,900,6333316,900,900,900,6390660,900,900,6431620,6439812,0,0,0,0,5537792,5545984,5586944,5734400,5971968,4358144,6045696,4358144,6070272,4358144,4358144,4358144,4358144,6348800,4358144,6144e3,0,6144e3,0,4988928,5005312,0,0,0,0,5775360,0,0,0,3869,0,0,0,0,0,787,0,0,521,521,521,521,521,847,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60869,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59939,57909,57909,57909,57909,57909,57909,57909,57909,59946,57909,59948,57909,59951,57909,57909,4358144,5005312,4358144,4358144,4358144,512e4,5136384,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6324224,5914624,5914624,0,0,0,0,0,5513216,5783552,0,3869,0,0,0,0,0,0,2822,0,0,0,0,0,0,0,0,0,2830,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,1938,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1387,521,521,521,521,521,521,521,521,521,521,521,521,521,0,310,311,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3638,0,0,0,0,0,131072,0,0,0,0,0,0,0,0,310,0,451,465,465,465,478,478,478,478,478,478,478,478,478,499,478,478,478,478,517,478,478,478,517,478,478,478,478,478,478,522,57888,522,57888,522,522,57888,522,522,57911,57888,522,522,57888,57888,57888,57911,57888,57888,57888,57888,57888,57888,57888,57911,57911,57888,57888,57938,57888,57888,57888,57888,57888,57888,57888,57938,57938,57888,57888,57888,57888,57938,57938,57888,522,57888,57888,57888,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,638,0,0,641,642,0,0,0,0,0,0,745,0,0,0,0,0,0,751,0,0,0,0,0,0,0,0,761,0,0,0,0,0,0,0,0,0,1279,0,0,0,0,1284,0,0,0,0,0,0,0,0,0,0,0,0,1292,0,0,0,0,0,0,0,0,743,0,0,0,0,638,0,0,0,0,0,0,0,0,0,0,758,0,0,0,0,764,0,0,768,0,0,0,0,0,0,3115,0,0,0,0,0,0,0,0,0,3121,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1166,0,0,0,0,0,0,0,0,0,1175,0,1177,1178,0,0,0,0,0,0,0,776,0,0,0,0,780,0,0,0,0,0,0,0,784,0,0,0,0,0,0,0,0,0,0,0,0,641,0,0,0,0,0,3114,0,0,0,0,0,3118,0,0,0,0,0,0,0,3124,3125,3126,0,0,0,0,0,0,0,0,0,0,1306,0,0,0,1310,0,0,0,0,1313,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61024,57886,57886,0,824,825,0,0,0,0,780,521,521,834,838,521,521,850,521,521,521,866,521,871,521,879,521,882,521,521,896,521,57886,57886,57886,57886,57886,57886,59898,57886,57886,57886,0,0,0,0,57909,57909,57909,57909,57909,57909,59913,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59448,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59461,57909,57909,57909,57909,57909,57909,57909,58253,58257,57886,57886,58269,57886,57886,57886,58285,57886,58290,57886,58298,57886,58301,57886,57886,58315,57886,0,57909,57909,57909,58329,58333,57909,57909,58345,57909,57909,57909,58361,57909,58366,57909,58374,57909,58377,57909,57909,58391,57909,0,0,0,0,58290,57936,57936,57936,58404,58408,57936,57936,58420,57936,57936,57936,58436,57936,58441,57936,58449,57936,0,0,0,0,521,521,521,521,521,4172,521,57886,57886,57886,57886,57886,61522,57886,57886,57909,57909,57909,57909,57909,61528,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59544,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59557,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59545,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59014,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58452,57936,57936,58466,57936,834,838,1128,882,521,521,0,58257,58253,58478,58301,57886,57886,155941,1138,0,0,1141,0,0,1146,0,0,0,0,0,0,0,0,6103040,0,0,0,6184960,0,0,0,6283264,0,0,6332416,0,0,0,6389760,0,0,6430720,6438912,977,0,0,0,0,0,1210,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1231,0,0,0,0,0,0,0,0,377,0,362,0,0,0,0,0,0,0,0,0,362,0,0,0,0,139264,147456,0,0,0,0,0,57886,58831,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,50657,58754,977,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59964,57909,57909,57909,57909,59969,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,1753,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1777,0,0,0,0,0,0,0,0,1188,0,0,0,0,0,0,0,0,0,0,0,367,367,1199,0,0,0,0,0,0,0,0,0,688,0,0,0,0,367,367,367,0,0,697,0,0,0,0,0,0,0,704,0,0,0,0,0,0,0,1813,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2815,0,0,1861,0,0,0,0,521,521,521,521,521,521,521,521,521,521,1874,521,521,521,521,521,521,521,521,521,1887,521,521,521,521,521,521,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61044,57886,57886,57886,57909,57909,57909,57909,57909,521,521,521,521,521,1929,521,521,1932,521,521,521,521,521,521,521,521,521,521,1945,521,521,521,521,521,521,1951,521,521,521,521,521,521,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59828,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59380,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,61166,57909,57909,57909,61169,57909,57909,57909,57909,521,58754,1960,57886,57886,57886,57886,57886,59311,57886,57886,57886,57886,57886,59317,57886,57886,57886,57886,57886,57886,57886,57886,57886,59330,57886,57886,57886,57886,57886,57886,57886,57886,57886,60835,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60845,57886,57886,57886,57886,57886,57886,57886,57886,57886,60854,57886,50657,2060,57909,57909,57909,57909,57909,59411,57909,57909,57909,57909,57909,59417,57909,57909,57909,57909,57909,57909,57909,57909,57909,59430,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58890,57909,57909,57909,58893,57909,57909,57909,57909,57909,57909,57909,58900,57909,57909,58904,57909,57909,57909,57909,57909,57909,57909,57909,59472,57909,57909,59475,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59489,57909,57909,57909,57909,57909,57909,59495,57909,57909,57909,57909,57909,57909,57886,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3413,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3151,0,0,0,3155,0,3157,0,0,0,0,0,0,0,0,57936,57936,57936,57936,57936,59507,57936,57936,57936,57936,57936,59513,57936,57936,57936,57936,57936,57936,57936,57936,57936,59526,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59579,57936,57936,57936,57936,57936,57936,59587,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,0,0,0,0,0,0,0,3105,0,0,0,0,0,0,57936,57936,59568,57936,57936,59571,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59585,57936,57936,57936,57936,57936,57936,59591,57936,57936,57936,57936,57936,57936,521,2256,521,521,521,57886,59605,57886,57886,57886,2265,0,2266,0,0,0,0,2268,0,2269,0,0,0,0,0,0,0,0,0,2275,0,0,0,0,0,0,791,0,521,521,521,521,521,521,521,521,859,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,2265,0,2266,0,0,0,0,2268,0,2269,0,0,0,0,0,0,0,0,0,0,0,0,0,0,212992,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1737,1738,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,753,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,417792,0,0,0,0,417792,0,0,0,0,0,309,0,309,0,0,0,0,2331,0,2333,0,0,0,0,0,0,0,0,1806,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1826,0,1828,0,0,0,0,0,0,0,1835,0,0,521,2464,521,521,521,521,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59829,57886,57886,59832,57886,57886,57886,57886,57886,57886,57886,57886,60265,57886,57886,57886,57886,60268,57886,57886,60270,57886,60271,57886,57886,57886,57886,57886,57886,57886,57886,57886,60280,57886,57886,60284,59840,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59860,57886,57886,57886,57886,57886,57886,57886,57886,57886,61032,57886,57886,57886,57886,57886,57886,61038,57886,61040,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61089,57936,57936,57936,57909,57909,57909,57909,59929,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59949,57909,57909,57909,57909,57909,57909,57909,57909,58886,57909,58888,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,60375,57936,60376,57936,57936,57936,57936,57936,57936,57936,57936,57936,60012,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60032,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60070,57936,57936,57936,2405,521,521,521,521,59836,57886,57886,57886,57886,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,2399,521,521,521,521,521,521,521,521,521,521,521,2446,521,521,521,521,521,521,521,2452,521,521,521,521,521,521,2457,521,521,521,521,521,521,521,521,521,521,521,521,2847,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2889,521,521,521,521,521,521,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,60315,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60323,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58924,57909,57909,58928,57909,57909,57909,57909,57909,58935,57909,57909,57909,58942,57909,0,57886,57936,57936,57936,57936,60359,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60370,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,60380,57936,0,0,0,0,521,521,521,4170,4171,521,521,57886,57886,57886,61520,61521,57886,57886,57886,57909,57909,57909,61526,61527,57909,57909,57909,57936,57936,57936,61532,57936,57936,60435,57936,57936,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,301,305,0,0,0,0,3104,0,0,0,3108,0,0,0,0,0,0,3142,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,262731,0,0,0,0,0,0,0,0,3113,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3123,0,0,0,0,0,0,0,0,0,0,0,0,3136,57909,60627,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60636,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60644,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61057,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61062,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,60676,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60685,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60693,57936,57936,57936,57936,57936,521,521,521,521,521,521,0,57886,57886,57886,57886,57886,57886,155941,0,0,0,0,0,0,0,0,0,0,0,0,0,1192,1193,0,0,0,0,0,367,367,0,0,0,0,0,0,0,0,0,0,57936,57936,57936,57936,57936,57936,57936,60915,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60933,57936,60935,57936,57936,57936,57936,57936,57936,57936,57936,57936,60703,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,0,2748,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,352256,0,352256,352256,0,0,0,0,521,3948,521,3950,521,521,521,521,521,521,521,521,521,521,521,57886,61307,57886,61309,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58807,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59347,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61165,57909,57909,57909,57909,57909,57909,57909,61170,57909,57909,57909,57909,61323,57909,61325,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,61339,57936,61341,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,3859,521,61204,57886,0,0,0,0,0,0,0,0,0,0,0,3627,0,0,0,0,0,4012,0,0,0,4015,0,0,521,521,521,521,4020,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,61377,57886,57886,57886,57886,57886,57909,60861,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60352,57909,57909,57909,57909,57909,57909,0,0,0,312,313,314,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2765,0,0,0,0,0,0,426,0,131072,0,0,0,426,0,0,0,0,0,426,452,0,0,0,452,452,452,452,452,452,452,452,452,452,452,452,452,516,452,516,516,516,452,516,516,516,516,516,516,523,57889,523,57889,523,523,57889,523,523,57912,57889,523,523,57889,57889,57889,57912,57889,57889,57889,57889,57889,57889,57889,57912,57912,57889,57889,57939,57889,57889,57889,57889,57889,57889,57889,57939,57939,57889,57889,57889,57889,57939,57939,57889,614,57889,57966,57966,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,385024,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,57909,57909,58370,57909,57909,57909,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58445,57936,57936,57936,57936,57936,57936,57936,57936,57936,61199,57936,57936,57936,57936,521,521,57886,57886,0,0,0,0,0,0,0,0,0,0,0,3627,0,0,0,0,0,805,0,0,0,0,0,0,0,0,0,0,0,0,0,0,641,0,0,0,0,0,820,780,0,0,0,0,0,0,754,0,0,754,0,0,0,0,0,754,754,0,0,815,0,0,0,0,0,0,0,0,0,754,0,0,0,0,0,0,2770,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2379,0,0,0,0,0,57909,57909,57909,57909,57909,57909,60312,57909,57909,57909,57909,60316,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60345,57909,57909,57909,57909,60349,57909,57909,57909,60354,57909,57909,57909,57909,60381,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60432,57936,57936,57936,57936,57936,60436,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,301,305,0,0,0,0,0,0,0,0,0,0,0,0,3387,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2807,0,0,0,0,0,2812,0,0,0,0,0,57886,61381,57886,61383,57886,57886,61385,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,61395,57909,61397,57909,57909,61399,57909,57909,57936,57936,57936,57936,57936,57936,57936,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57936,61409,57936,61411,57936,57936,61413,57936,57936,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2271,0,0,0,0,0,0,0,0,0,350,351,352,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,0,295,0,319,319,427,428,131072,435,428,436,427,435,436,0,315,436,448,453,466,466,466,479,479,479,479,479,479,479,479,479,479,501,501,501,514,514,515,515,501,515,515,515,501,515,515,515,515,515,515,524,57890,524,57890,524,524,57890,524,524,57913,57890,524,524,57890,57890,57890,57913,57890,57890,57890,57890,57890,57890,57890,57913,57913,57890,57890,57940,57890,57890,57890,57890,57890,57890,57890,57940,57940,57890,57890,57890,57890,57940,57940,57890,615,57965,57965,57965,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,401408,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1198,367,367,0,0,1201,0,0,0,1204,0,1206,0,679,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,367,695,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5242880,0,0,0,0,0,5603328,0,0,0,0,0,0,0,0,0,0,0,0,57909,57909,57909,57909,57909,58378,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59553,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58453,57936,57936,57936,57936,521,521,521,883,521,521,0,57886,57886,57886,58302,57886,57886,155941,1138,0,0,0,0,0,0,0,0,0,0,0,0,3411,0,0,0,3415,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,57886,521,57886,521,521,57886,521,521,57909,57886,521,521,57886,57886,57886,57909,521,521,521,58754,901,57886,57886,58758,57886,57886,58762,57886,57886,57886,57886,57886,57886,57886,57886,58776,57886,58781,57886,57886,58785,57886,57886,58788,57886,57886,57886,57886,57886,57886,58279,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,57909,57909,58322,57909,57909,57909,57909,57909,57909,58355,57909,57909,57909,58876,57909,57909,58880,57909,57909,58883,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58902,57909,57909,57909,57909,57909,57909,57909,57936,58951,57936,57936,57936,57936,57936,57936,57936,57936,58965,57936,58970,57936,57936,58974,57936,57936,58977,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,57886,57886,3861,0,0,0,3863,0,0,0,0,0,0,3627,3870,0,1723,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,385,521,521,521,1927,1928,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2433,521,521,521,521,58754,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59320,57886,57886,57886,57886,57886,57886,57886,57886,57886,59332,57886,57886,57886,57886,57886,57886,57886,57909,57909,61494,57909,61495,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,61502,57936,61503,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60018,57936,60020,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60396,57936,57936,57936,57936,57936,57936,57936,60401,57936,57936,57936,57936,57936,57886,57886,59370,59371,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,50657,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59420,57909,57909,57909,57909,57909,57909,57909,57909,57909,59432,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59446,57909,57909,57909,59450,57909,57909,59455,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59990,57936,57936,57936,57936,57936,57936,57936,59998,57936,57936,57936,57936,57936,57936,57936,57936,57936,57909,59470,59471,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57886,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,643,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3447,521,521,521,521,521,521,521,521,521,1341,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3200,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,61016,57886,57886,57886,61019,57886,57886,57886,57886,57886,57886,57886,57886,57886,59566,59567,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2304,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3162,0,0,521,2437,521,521,521,521,521,521,521,521,521,521,521,521,521,2450,521,521,521,521,521,2454,2455,521,521,521,521,521,521,521,521,521,1374,521,1376,521,521,521,521,521,521,521,1389,521,521,521,521,521,521,521,521,521,521,521,1404,57886,57886,57886,57886,59869,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59882,57886,57886,57886,57886,57886,59886,59887,59888,57886,57886,57886,57886,57886,57886,57886,58800,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58822,57886,57886,57886,57886,0,0,0,2744,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,114688,0,0,57886,57886,57886,60288,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,2962,0,0,0,0,0,826,0,0,521,521,521,521,521,849,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57909,57909,57909,60863,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60875,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59447,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60672,3137,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1837,0,0,0,3166,0,0,3169,0,0,0,0,0,0,0,3173,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2451,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3379,0,0,0,0,0,0,0,3383,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3422,0,0,0,0,0,0,3429,521,3458,3459,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60827,57886,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,640,0,0,0,0,0,0,0,695,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,883,521,521,521,521,57886,57886,57886,57886,57886,0,0,0,0,2267,0,1142,0,0,0,0,2270,0,1147,0,0,0,0,0,0,0,0,0,0,1795,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1809,57909,60884,57909,60886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,6e4,57936,57936,57936,57936,57936,57936,57936,60911,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60926,57936,60928,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60045,60046,57936,57936,57936,57936,57936,57936,60053,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61072,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59595,57936,57936,57936,1881,521,4010,0,4011,0,0,0,0,0,0,0,521,4018,521,4019,521,521,521,4023,521,521,521,521,521,521,521,57886,61375,57886,61376,57886,57886,57886,57886,57886,57886,60264,57886,57886,57886,57886,57886,57886,57886,60269,57886,57886,57886,57886,57886,57886,57886,60275,57886,57886,57886,57886,57886,57886,57886,60283,57886,61380,57886,57886,57886,57886,57886,57886,57886,57886,57909,61389,57909,61390,57909,57909,57909,61394,57909,57909,57909,57909,57909,57909,57909,57909,57936,61403,57936,61404,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60388,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,3376,0,0,61408,57936,57936,57936,57936,57936,57936,57936,57936,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,0,0,0,1710,0,0,0,0,0,0,1717,0,0,0,0,0,0,0,0,0,0,0,0,0,2338,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2294,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,4213,57886,57886,57886,61559,57909,57909,57909,61561,57936,57936,57936,61563,0,521,521,57886,57886,57909,57909,57936,57936,521,57886,57909,57936,521,521,521,521,521,521,0,2471,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59858,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,376,0,131072,0,0,0,376,0,0,438,444,0,376,454,467,467,467,480,480,480,480,480,480,480,480,480,480,502,502,502,502,502,502,502,502,502,502,502,502,502,502,502,525,57891,525,57891,525,525,57891,525,525,57914,57891,525,525,57891,57891,57891,57914,57891,57891,57891,57891,57891,57891,57891,57914,57914,57891,57891,57941,57891,57891,57891,57891,57891,57891,57891,57941,57941,57891,57891,57891,57891,57941,57941,57891,525,57891,57891,57891,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,229376,0,491520,524288,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,725,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1180,1181,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,0,0,0,0,0,0,0,0,0,0,719,0,0,0,0,0,0,0,0,0,729,0,0,0,0,0,0,0,0,0,738,0,0,1166,0,1298,0,0,0,0,0,0,0,0,0,1284,0,0,0,1312,1180,0,0,0,0,0,0,0,0,521,521,1321,521,521,521,0,0,0,0,0,0,57886,60241,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58814,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,521,521,521,521,521,1371,521,521,1373,521,521,521,521,1378,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1403,521,521,521,521,521,521,521,521,3196,521,521,521,521,521,521,521,521,521,521,521,3203,521,521,521,521,521,521,521,521,521,521,521,1902,521,521,521,521,521,521,521,521,1913,521,521,521,521,521,521,521,521,521,521,521,1935,521,521,521,1941,521,521,521,521,521,521,521,521,521,1950,521,521,521,521,1956,521,521,521,521,58754,901,57886,57886,58759,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58786,57886,57886,57886,57886,57886,57886,57886,57886,57886,61247,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61263,57909,57909,57936,57909,57909,57909,57909,58881,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58896,57909,57909,57909,57909,57909,57909,57909,58905,57909,57909,58907,57909,57909,57909,57909,58912,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58937,57909,57909,57909,57909,0,58812,57936,57936,58948,57936,0,0,0,0,521,521,4169,521,521,521,4173,57886,57886,61519,57886,57886,57886,61523,57886,57909,57909,61525,57909,57909,57909,61529,57909,57936,57936,61531,57936,0,0,0,0,4168,521,521,521,521,521,521,61518,57886,57886,57886,57886,57886,57886,57886,61524,57909,57909,57909,57909,57909,57909,57909,61530,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61274,57936,57936,57936,57936,57936,57936,57936,521,57886,0,3938,0,0,3941,0,0,0,3627,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1883,521,521,521,521,521,521,521,521,521,2876,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,60819,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57936,57936,57936,57936,57936,57936,57936,58999,57936,57936,59001,57936,57936,57936,57936,59007,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59519,57936,57936,57936,57936,57936,57936,57936,57936,57936,59530,57936,57936,57936,57936,57936,59032,57936,57936,57936,57936,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,1138,1705,0,0,0,0,1712,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2410,521,521,521,2259,57886,57886,57886,57886,59608,2265,0,2266,0,0,0,0,2268,0,2269,0,0,0,0,0,2272,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2408,521,521,521,521,521,521,521,521,2416,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1397,521,521,521,521,521,57886,59893,57886,59895,57886,57886,57886,57886,57886,57886,0,0,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,59916,57909,57909,57909,57909,59920,57909,57909,57909,57909,57909,57909,57909,57909,59958,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59971,57909,57909,57909,57909,57909,59975,59976,59977,57909,57909,57909,57909,57909,57909,59982,57909,59984,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,59999,57936,57936,57936,57936,60003,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60683,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,3369,521,57886,60716,57886,0,0,0,0,0,57936,57936,57936,57936,57936,60065,57936,60067,57936,57936,57936,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,2739,2266,0,2740,2269,0,0,0,0,0,0,3622,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,415,415,0,0,0,0,0,60285,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,2962,0,0,0,0,0,1156,1157,1158,1159,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,791,0,0,0,0,0,0,0,791,0,0,57909,57909,57909,60310,57909,60311,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59460,57909,57909,57909,57909,57909,59467,57909,521,521,3191,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3204,521,521,521,521,521,521,521,3210,57886,57886,57886,60582,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60596,57886,57886,57886,57886,57886,57886,57886,57886,60606,57886,57886,57886,57886,57886,57886,57886,57886,0,0,57909,57909,57909,57909,60617,57909,57909,57909,57909,57909,57909,60624,57909,57886,60602,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,2962,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61182,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58975,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58990,57909,57909,57909,57909,60651,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60680,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60694,57936,57936,57936,57936,57936,57936,57936,57936,57936,61273,57936,61275,57936,57936,57936,57936,57936,57936,521,57886,0,0,0,0,0,0,0,0,3627,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,1878,1879,521,521,521,521,1886,521,521,521,521,521,521,521,521,1337,521,1342,521,521,1346,521,521,1349,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1380,521,521,521,521,521,521,521,521,521,521,1396,521,521,521,521,521,57936,57936,57936,57936,57936,60700,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,3768,0,0,0,0,57909,61073,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60030,57936,57936,57936,57936,57936,0,521,521,521,521,521,521,3953,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,61312,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,2557,0,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59466,57909,57909,57909,57909,57909,57909,57909,57909,61328,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,61344,57936,57936,57936,57936,57936,57936,57936,57936,57936,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,61382,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,61396,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,61080,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61090,57936,57936,57936,57936,61410,57936,57936,57936,57936,57936,57936,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,2265,1706,2266,0,0,0,0,2268,1713,2269,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1243,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2353,0,0,330,0,0,0,0,0,0,375,0,0,0,0,0,0,0,0,0,0,0,0,0,0,330,0,139264,147456,0,0,0,0,0,0,0,1842,0,0,1845,0,0,0,0,0,0,1851,1852,0,0,0,0,0,0,0,0,0,0,0,1845,0,0,0,0,0,131072,0,0,0,0,0,329,0,0,0,0,455,468,468,468,481,481,481,481,492,494,481,481,492,481,503,503,503,503,518,503,503,503,518,503,503,503,503,503,503,526,57892,526,57892,526,526,57892,526,526,57915,57892,526,526,57892,57892,57892,57915,57892,57892,57892,57892,57892,57892,57892,57915,57915,57892,57892,57942,57892,57892,57892,57892,57892,57892,57892,57942,57942,57892,57892,57892,57892,57942,57942,57892,526,57892,57892,57892,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2310144,0,0,0,0,0,0,0,2310144,2310144,0,0,0,0,0,0,0,0,2310144,0,0,0,0,0,651,652,0,0,0,0,0,0,0,0,0,0,663,664,0,0,0,0,0,0,0,0,0,0,0,676,677,678,0,0,0,682,0,0,0,0,0,0,0,0,0,0,367,367,367,0,0,0,0,0,0,700,701,0,0,0,0,0,707,0,0,0,0,0,3141,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,450560,450560,0,0,0,0,0,711,0,713,0,0,0,0,0,0,720,0,0,0,724,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2756,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,742,0,0,0,0,0,0,0,0,0,0,752,0,0,0,0,0,0,759,0,0,0,765,766,0,0,0,0,0,0,0,2308,0,0,0,0,2313,2314,0,0,2316,2317,0,0,0,0,0,0,0,0,0,0,0,0,0,0,270336,0,0,0,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,0,0,0,0,0,0,0,0,0,0,301,0,0,305,0,0,4857856,4874240,0,0,4923392,0,0,0,775,0,777,0,0,0,0,0,0,0,0,0,0,0,0,0,0,789,0,794,0,797,0,0,0,0,0,0,777,0,789,0,803,0,0,0,0,797,809,0,0,0,0,0,809,809,812,0,0,0,777,0,0,0,0,0,821,0,0,0,0,0,0,806,0,0,806,0,0,0,0,0,806,806,0,0,0,0,786,0,0,0,0,0,0,822,782,0,0,0,0,0,775,0,0,0,821,521,521,835,521,841,521,521,856,521,521,867,521,872,521,521,881,884,889,521,897,521,57886,57886,57886,57886,57886,57886,60291,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,2962,0,0,58254,57886,58260,57886,57886,58275,57886,57886,58286,57886,58291,57886,57886,58300,58303,58308,57886,58316,57886,0,57909,57909,57909,58330,57909,58336,57909,57909,58351,57909,57909,58362,57909,58367,57909,57909,58376,58379,58384,57909,58392,57909,0,0,0,0,58291,57936,57936,57936,58405,57936,58411,57936,57936,58426,57936,57936,58437,57936,58442,57936,57936,58451,58454,58459,57936,58467,57936,835,521,521,1129,889,521,0,57886,58254,57886,58479,58308,57886,155941,1138,0,0,0,0,0,0,0,0,0,0,0,0,2326528,0,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,0,0,1153,0,0,0,0,0,0,0,0,0,1163,0,0,0,0,0,0,0,1170,0,0,0,0,0,0,0,0,0,0,0,1051,0,0,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6299648,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,0,1209,0,0,0,0,0,0,0,0,1218,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1235,0,0,1187,0,0,0,0,0,3434,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3451,521,521,521,521,521,521,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,59827,57886,57886,57886,57886,59831,57886,57886,57886,57886,57886,57886,57886,57886,58801,57886,57886,57886,57886,57886,57886,57886,58810,57886,57886,58812,57886,57886,57886,57886,58817,57886,57886,57886,57886,57886,57886,57886,57886,57886,61388,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61402,57936,57936,57936,57936,57936,57936,0,0,0,0,742,0,0,0,0,0,0,0,0,0,0,0,0,1258,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5857280,0,6463488,4939776,0,0,5455872,0,0,0,0,0,0,0,0,6062080,6463488,0,5398528,0,521,521,521,521,1328,521,521,521,521,521,521,1343,521,521,521,1348,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1365,521,1407,521,58754,901,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58767,57886,57886,57886,57886,57886,57886,58782,57886,57886,57886,58787,57886,57886,57886,57886,57886,57886,57886,58839,57886,57886,57886,57886,57886,57886,50657,58754,977,57909,57909,57909,58855,57909,57909,57909,57909,57909,57909,57909,57909,57909,58869,57909,57909,57909,58877,57909,57909,57909,58882,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58899,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,57936,57936,57936,57936,58419,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59003,57936,59005,57936,57936,57936,57936,57936,57936,57936,59018,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60704,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,57936,57936,57936,57936,57936,57936,58956,57936,57936,57936,57936,57936,57936,58971,57936,57936,57936,58976,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,0,0,0,0,0,0,2741,0,57936,58993,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59009,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59025,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61101,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,690,691,0,367,367,367,0,0,0,0,0,0,0,0,0,703,0,0,0,0,0,57936,57936,57936,59036,57936,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,1138,1705,0,0,0,0,1712,0,0,0,0,1719,0,1721,0,0,0,0,0,3621,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3632,0,0,0,3635,3636,0,0,0,0,0,0,393678,0,393678,393678,393678,393678,393678,393678,393678,393678,393678,393678,393678,393678,393678,393678,393678,393678,393678,393678,393678,393678,393678,0,393678,393678,0,1754,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1770,0,0,0,0,0,1776,0,0,1779,0,1781,0,0,0,0,0,0,3642,0,3644,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2854,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1943,1944,521,521,521,521,521,521,521,521,521,521,521,521,521,0,0,1787,1788,0,0,0,0,0,0,0,0,1797,1798,0,0,0,0,0,0,1804,0,0,1806,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,888,521,521,521,521,57886,57886,57886,1810,1811,1812,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1830,1831,0,1832,1833,0,0,0,0,0,0,1186,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,0,0,0,0,0,0,0,0,0,0,810,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3395,0,0,3397,0,0,0,0,0,0,0,0,1863,1721,1721,1865,521,1867,521,1868,1869,521,1871,521,521,521,1875,521,521,521,521,521,521,521,521,521,1888,521,521,521,521,1892,521,521,521,521,1896,521,1898,521,521,521,521,521,521,521,521,521,521,1908,1909,1911,521,521,521,521,521,521,521,1919,1920,521,1922,521,521,521,521,521,521,521,521,3667,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60611,57886,57886,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60622,57909,60625,521,1925,1926,521,521,521,521,521,521,521,1934,521,1936,521,1939,521,521,521,521,521,1946,521,521,1948,521,521,521,521,521,521,521,521,521,3197,3198,521,521,521,521,3201,521,521,521,521,521,521,521,521,521,521,3206,521,521,521,3209,521,521,58754,0,59307,57886,59309,57886,59310,57886,59312,57886,59314,57886,57886,57886,59318,57886,57886,57886,57886,57886,57886,57886,57886,57886,59331,57886,57886,57886,57886,59335,57886,1,24578,3,155941,156275,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,483328,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2341,0,0,0,0,0,0,0,0,0,0,0,0,0,57886,57886,57886,59339,57886,59341,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59351,59352,59354,57886,57886,57886,57886,57886,57886,57886,59362,59363,57886,59365,57886,57886,57886,57886,57886,58799,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58829,59368,59369,57886,57886,57886,57886,57886,57886,57886,59377,57886,59379,57886,59382,57886,57886,57886,57886,57886,59390,57886,57886,59392,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,2558,0,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60371,57909,57909,57909,57936,57936,57936,57936,57936,57936,60377,57936,57936,57936,57936,50657,0,59407,57909,59409,57909,59410,57909,59412,57909,59414,57909,57909,57909,59418,57909,57909,57909,57909,57909,57909,57909,57909,57909,59431,57909,57909,57909,57909,59435,57909,57909,57909,57909,57909,57909,57909,58916,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,57886,57936,57936,57936,57936,57936,521,1335,521,521,521,521,58774,57886,57886,57886,57886,57886,1138,0,0,1709,0,0,0,0,1716,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,3882,521,3884,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,59847,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60277,57886,57886,57886,57886,57886,57886,57886,57909,57909,59439,57909,59441,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59451,59452,59454,57909,57909,57909,57909,57909,57909,57909,59462,59463,57909,59465,57909,57909,59468,59469,57909,57909,57909,57909,57909,57909,57909,59477,57909,59479,57909,59482,57909,57909,57909,57909,57909,59490,57909,57909,59492,57909,57909,57909,57909,57909,57909,57909,57909,57909,57886,57886,57886,57886,57886,60290,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60299,57886,57886,57886,60302,57886,57886,57886,57886,57886,57886,0,0,0,0,0,0,1214,0,0,0,0,0,0,0,0,1223,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1238,59503,57936,59505,57936,59506,57936,59508,57936,59510,57936,57936,57936,59514,57936,57936,57936,57936,57936,57936,57936,57936,57936,59527,57936,57936,57936,57936,59531,57936,57936,57936,57936,57936,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,1138,0,1707,0,0,0,0,1714,0,0,0,0,0,0,0,0,3170,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,3182,521,3185,521,521,521,521,59535,57936,59537,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59547,59548,59550,57936,57936,57936,57936,57936,57936,57936,59558,59559,57936,57936,59561,57936,57936,59564,59565,57936,57936,57936,57936,57936,57936,57936,59573,57936,59575,57936,59578,57936,57936,57936,57936,57936,59586,57936,57936,59588,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,1926,521,2258,521,57886,59369,57886,59607,57886,2265,0,2266,0,0,0,0,2268,0,2269,0,0,0,0,0,0,0,0,0,0,2276,0,0,2279,2280,0,0,0,2284,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2790,0,0,0,0,2303,0,0,0,0,2307,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2323,0,0,0,0,2327,0,0,0,0,0,3873,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,58803,57886,57886,57886,57886,58808,57886,57886,57886,57886,57886,57886,57886,57886,57886,58816,57886,57886,57886,58823,58825,57886,57886,57886,0,2356,0,0,0,0,0,0,0,0,2365,0,0,0,0,0,0,0,0,0,0,0,0,2375,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,875,521,521,521,521,521,521,521,57886,57886,57886,2412,521,2414,521,521,521,521,521,521,521,2420,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1357,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2441,2442,521,521,521,521,521,521,2449,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1383,521,521,521,521,521,521,521,521,521,521,521,1400,521,521,521,2463,521,521,2466,2467,521,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59833,57886,59835,57886,57886,57886,57886,57886,57886,60585,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60599,57886,57886,57886,57886,57886,59843,57886,59845,57886,57886,57886,57886,57886,57886,57886,59851,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60300,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,57886,57886,57886,57886,59896,57886,57886,59899,59900,57886,0,0,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59922,57909,57909,57909,57909,57909,57909,58388,57909,57909,57909,0,0,0,0,57886,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,57886,57886,0,0,0,3862,0,0,3865,0,0,0,0,3627,0,0,59924,57909,57909,57909,57909,57909,57909,59932,57909,59934,57909,57909,57909,57909,57909,57909,57909,59940,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,59991,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60707,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,60007,57936,57936,57936,57936,57936,57936,60015,57936,60017,57936,57936,57936,57936,57936,57936,57936,60023,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,2739,2266,0,2740,2269,0,0,0,521,2868,521,521,521,521,2872,521,521,521,2877,521,521,521,521,521,521,521,521,2885,521,521,521,521,521,521,521,2890,521,521,521,521,521,521,0,0,0,0,57886,57886,59820,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58811,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60259,57886,60261,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60278,57886,57886,57886,57886,60282,57886,57886,57886,57886,57886,60605,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60319,57909,57909,57909,57909,57909,60324,57909,57909,57909,57909,57909,57909,57909,57886,57886,60287,57886,57886,57886,57886,57886,57886,57886,57886,60295,57886,57886,57886,57886,57886,57886,57886,57886,60301,57886,57886,57886,57886,57886,57886,57886,0,2962,0,0,0,0,0,1185,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,0,0,0,0,0,0,0,0,0,0,1732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1856,0,0,0,0,0,0,0,0,0,0,57909,57909,57909,57909,57909,57909,57909,57909,60314,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60326,57909,60328,57909,57909,57909,57909,57909,57909,57909,57909,60365,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61082,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57909,57909,57909,57909,60362,57909,57909,57909,57909,57909,57909,57909,57909,60368,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,60379,57936,57936,57936,57936,57936,57936,57936,57936,58959,57936,57936,57936,57936,57936,57936,57936,57936,57936,58978,57936,57936,57936,57936,57936,57936,57936,57936,57936,58988,57936,57936,57936,57936,57936,57936,57936,57936,57936,58960,58967,57936,57936,57936,57936,57936,57936,57936,57936,58980,57936,58982,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60417,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60424,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60410,57936,57936,57936,57936,60414,57936,57936,57936,60419,57936,57936,57936,57936,57936,57936,57936,57936,60427,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,0,0,0,0,0,3103,0,0,3106,3107,0,0,3110,3111,60433,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,301,305,0,0,0,0,0,0,0,0,0,0,0,0,6275072,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,278528,0,0,0,0,0,0,3167,3168,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3189,60580,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60593,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60600,57909,57909,57909,60629,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60642,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58925,57909,57909,57909,57909,57909,58933,57909,57909,57909,57909,57909,57909,57909,0,57886,57936,57936,57936,57936,57909,57909,60649,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60678,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60691,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60044,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,57886,3937,0,3939,0,0,0,0,0,3627,3943,0,3945,57936,57936,57936,60698,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,0,2368,521,521,521,521,521,521,521,521,521,521,521,2398,521,521,2401,521,521,521,521,521,521,2409,521,521,3403,0,0,0,0,3405,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3419,0,0,0,0,3424,3425,0,3427,0,0,0,0,0,1197,0,0,0,0,0,0,0,0,0,1286,0,0,0,0,1314,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3452,521,521,521,521,3430,0,0,0,3433,521,521,521,521,521,521,3440,521,521,521,521,521,3444,521,521,521,521,521,521,521,3450,521,521,521,521,521,3456,60828,57886,57886,57886,57886,57886,57886,57886,60834,57886,57886,57886,57886,57886,60840,57886,57886,60843,57886,57886,57886,57886,57886,57886,57886,57886,60850,60852,57886,57886,57886,57886,57886,57886,58282,58284,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,57909,57909,58327,57909,57909,57909,57909,57909,57909,58358,58360,57909,60856,57886,60858,60859,57886,57909,57909,57909,57909,57909,57909,60866,57909,57909,57909,57909,57909,60870,57909,57909,57909,57909,57909,57909,57909,60876,57909,57909,57909,57909,57909,60882,57909,57909,60885,57909,57909,57909,57909,57909,57909,57909,57909,60892,60894,57909,57909,57909,57909,60898,57909,60900,60901,57909,57936,57936,57936,57936,57936,57936,60908,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61200,57936,57936,57936,521,521,57886,57886,0,0,0,0,0,0,0,0,3866,3867,0,3627,0,3871,57936,57936,60912,57936,57936,57936,57936,57936,57936,57936,60918,57936,57936,57936,57936,57936,60924,57936,57936,60927,57936,57936,57936,57936,57936,57936,57936,57936,60934,60936,57936,57936,57936,57936,57936,57936,57936,57936,59e3,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59020,57936,57936,57936,57936,57936,59028,57936,57936,57936,57936,57936,57936,57936,57936,59542,57936,57936,57936,59546,57936,57936,59551,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60048,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60940,57936,60942,60943,57936,521,521,3602,57886,57886,60949,0,0,0,0,0,0,3611,0,0,3614,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,3649,3650,521,521,521,521,3654,3655,521,521,521,521,521,3659,521,521,521,521,3662,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,61018,57886,57886,57886,57886,57886,57886,57886,61023,57886,57886,57886,57886,57886,57886,60833,57886,57886,57886,57886,57886,57886,57886,57886,60841,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60855,57909,57909,57909,57909,57909,57909,61052,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61063,57909,57909,57909,57909,57909,57909,57909,57909,61071,57909,57909,57909,57909,57909,57909,58914,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58930,57909,57909,57909,57909,57909,57909,58941,57909,0,57886,57936,57936,57936,57936,57936,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,1138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,367,0,0,0,303104,0,0,0,0,0,0,0,0,0,0,0,57886,57886,61240,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,61256,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,61076,57936,57936,57936,57936,57936,57936,57936,61081,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61092,57886,57886,57886,61440,57886,61442,57886,57886,57886,57886,61447,61448,61449,61450,57909,57909,57909,61453,57909,61455,57909,57909,57909,57909,61460,61461,61462,61463,57936,57936,57936,61466,57936,61468,57936,57936,57936,57936,61473,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,61031,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,61392,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,61406,57936,57936,57936,61535,57936,0,0,0,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,0,0,0,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,0,0,0,521,521,521,521,4198,521,57886,57886,57886,57886,61546,57886,57909,57909,57909,57909,61550,57909,57936,57936,57936,57936,61554,57936,0,371,371,0,429,131072,371,429,429,332,371,429,0,0,429,449,429,0,0,0,429,488,488,488,493,488,488,488,493,488,429,429,429,429,429,429,429,429,429,429,429,429,429,429,429,527,57893,527,57893,527,527,57893,527,527,57916,57893,527,527,57893,57893,57893,57916,57893,57893,57893,57893,57893,57893,57893,57916,57916,57893,57893,57943,57893,57893,57893,57893,57893,57893,57893,57943,57943,57893,57893,57893,57893,57943,57943,57893,527,57893,57893,57893,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6275072,0,0,0,0,0,0,0,0,4399798,0,0,0,0,0,0,0,0,0,0,0,0,773,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,773,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,773,0,0,0,521,828,521,521,521,521,521,521,860,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,58246,1295,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,2839,521,521,521,521,521,521,1326,521,521,521,521,521,1338,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2430,521,521,521,521,521,521,521,521,521,521,521,521,58754,901,57886,57886,57886,57886,57886,57886,57886,57886,58765,57886,57886,57886,57886,57886,58777,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59381,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61041,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57936,57936,57936,57936,58954,57936,57936,57936,57936,57936,58966,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,3375,0,0,0,57909,57909,57909,59954,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60355,57909,57909,57909,57936,57936,57936,60037,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59026,57936,57936,57936,0,0,4212,521,521,521,61558,57886,57886,57886,61560,57909,57909,57909,61562,57936,57936,57936,0,521,521,57886,57886,57909,57909,57936,57936,521,57886,57909,57936,521,521,521,521,521,521,521,521,3793,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60607,57886,57886,60610,57886,57886,60613,0,0,60614,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60637,60638,57909,57909,57909,57909,60641,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60647,0,0,0,430,131072,0,430,430,0,0,430,439,0,430,0,430,469,469,469,482,482,482,482,482,482,482,482,482,482,482,482,482,482,482,528,57894,528,57894,528,528,57894,528,528,57917,57894,528,528,57894,57894,57894,57917,57894,57894,57894,57894,57894,57894,57894,57917,57917,57894,57894,57944,57894,57894,57894,57894,57894,57894,57894,57944,57944,57894,57894,57894,57894,57944,57944,57894,528,57894,57894,57894,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6275072,0,0,0,0,0,0,0,367,0,0,0,0,0,0,0,0,0,0,0,521,58754,1961,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,2561,0,50657,2061,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59950,57909,57909,2302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2326,0,0,0,0,0,1213,0,1215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,139264,147456,0,0,0,420,0,0,0,0,0,2385,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1949,521,521,521,521,521,521,521,0,3138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3158,0,0,0,0,0,0,0,0,1731,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1747,0,0,1750,0,0,521,521,521,3213,521,521,521,521,521,521,521,521,521,521,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,50657,58754,977,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58868,57909,0,0,3404,0,0,0,0,0,3407,0,3409,0,0,3412,0,0,0,0,0,3417,0,0,0,0,0,0,0,0,0,0,0,0,6275072,0,0,0,0,0,0,0,4399797,4399797,0,0,0,0,0,0,0,0,0,0,521,521,521,521,3460,521,521,521,521,521,521,521,521,3468,521,521,3471,521,521,521,60818,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58296,57886,57886,57886,57886,58314,57886,57886,0,57909,57909,58325,57909,57909,57909,57909,57909,57909,57909,57909,57909,57886,60857,57886,57886,57886,60860,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60877,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59959,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,60664,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57909,57909,57909,57909,57909,60887,57909,57909,57909,57909,57909,57909,57909,57909,57909,60896,57909,57909,60899,57909,57909,57909,60902,57936,57936,57936,57936,57936,57936,57936,57936,57936,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,4089,521,57886,57886,57886,60938,57936,57936,60941,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,0,3615,0,0,0,0,0,0,0,393,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3159,3160,0,0,0,0,0,521,521,521,521,3663,521,3665,521,521,521,521,521,521,521,521,521,521,57886,57886,61017,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59850,57886,57886,57886,57886,57886,57886,57886,57886,59857,57886,59859,57886,59862,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61029,57886,57886,57886,57886,57886,57886,57886,57886,61035,57886,61037,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,61046,57909,57909,57909,57909,57909,57909,57909,58917,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58934,57909,57909,57909,57909,57909,57909,0,57886,57936,57936,57936,58949,57936,61093,57936,61095,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,3791,521,521,521,521,521,521,521,521,3797,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58804,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58819,57886,57886,57886,57886,57886,57886,61153,57886,57886,57886,57886,57886,57886,57886,57886,57886,61159,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61172,57909,57909,57909,57909,57909,57909,58915,57909,57909,58922,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58936,57909,57909,57909,57909,57909,0,57886,57936,57936,57936,57936,57936,521,1336,521,521,521,521,58775,57886,57886,57886,57886,57886,1138,0,0,0,0,1711,0,0,0,0,1718,0,0,0,0,0,0,1247,1248,0,0,0,0,0,0,0,0,0,0,0,1155,1154,0,0,0,0,0,0,0,0,0,0,0,2799,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3630,0,0,0,0,0,0,0,3637,0,0,57936,57936,57936,57936,57936,61197,57936,57936,57936,57936,57936,57936,57936,57936,521,521,57886,57886,0,0,0,0,0,0,0,0,0,0,0,3627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3782,0,0,521,521,521,521,0,0,0,0,683,684,0,0,0,0,689,0,0,0,367,367,367,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,530,57896,530,57896,530,530,57896,530,530,57919,57896,530,530,57896,57896,57896,57919,57886,58258,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58317,0,57909,57909,57909,57909,58334,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59481,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57886,57936,57936,57936,57936,58468,521,839,521,521,521,898,0,58258,57886,57886,57886,57886,58317,155941,1138,0,0,0,0,0,0,0,0,0,0,0,0,1219,1220,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6299648,0,0,0,0,0,0,0,0,0,0,0,5808128,0,0,0,1211,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1230,0,0,0,0,0,0,0,0,0,521,521,521,3647,521,521,521,521,521,521,521,3652,521,521,521,521,521,521,521,521,521,521,521,2421,521,521,521,2424,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2895,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60842,57886,60844,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,1839,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1853,0,0,0,0,0,0,0,0,0,0,0,0,1307,1308,0,0,1154,0,0,0,0,0,0,0,0,0,0,0,521,1319,521,521,521,1958,58754,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,2962,0,0,386,0,0,0,0,0,0,0,0,0,0,0,0,0,401,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,412,0,0,0,0,0,0,412,139264,147456,0,0,0,421,0,333,0,0,0,0,0,0,0,0,0,0,0,0,333,0,0,0,0,0,0,0,0,333,0,0,139264,147456,0,0,0,0,0,0,0,2773,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3634,0,0,0,0,0,0,424,424,0,0,131072,424,0,0,0,424,0,440,0,0,424,334,470,470,470,483,483,483,483,483,483,483,483,483,483,504,512,512,512,512,519,512,512,512,519,512,512,512,512,512,512,529,57895,529,57895,529,529,57895,529,529,57918,57895,529,529,57895,57895,57895,57918,57895,57895,57895,57895,57895,57895,57895,57918,57918,57895,57895,57945,57895,57895,57895,57895,57895,57895,57895,57945,57945,57895,57895,57895,57895,57945,57945,57895,529,57895,57895,57895,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1734,0,0,0,0,0,0,0,0,1741,0,0,1744,1745,1746,0,1748,1749,0,0,0,822,0,0,0,0,0,0,0,521,521,521,521,842,521,851,521,521,521,521,521,521,521,521,521,521,521,521,521,899,57886,57886,57886,57886,57886,57886,61244,57886,57886,57886,61248,57886,57909,57909,57909,57909,57909,57909,61254,57909,57909,57909,57909,57909,57909,61260,57909,57909,57909,61264,57909,57936,57886,57886,58261,57886,58270,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58318,0,57909,57909,57909,57909,57909,58337,57909,58346,57909,57909,57909,57909,57909,57909,57909,57909,57909,58887,58889,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60661,57909,57936,57936,57936,57936,57936,57936,57936,57936,60669,57936,57936,57936,57936,57936,57936,57936,58469,521,521,521,521,1130,899,0,57886,57886,57886,57886,58480,58318,155941,1138,0,0,0,0,0,0,0,0,0,0,0,0,1764,1765,1766,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2319,2320,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,1331,521,521,521,521,521,521,521,521,521,1350,521,521,521,521,521,521,521,521,521,1360,521,521,521,521,521,521,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,59825,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59837,57886,57886,521,1408,521,58754,901,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58770,57886,57886,57886,57886,57886,57886,57886,57886,57886,58789,57886,57886,57886,57886,57886,57886,59342,59343,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59360,57886,57886,57886,57886,57886,59367,57886,57886,58833,57886,57886,57886,57886,57886,58840,57886,57886,57886,58847,57886,50657,58754,977,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58865,57909,57909,57909,57909,57909,57909,57909,58919,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,57886,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60042,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,3370,57886,57886,60717,0,0,0,0,0,57936,57936,57936,59037,57936,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,1138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1796,0,0,0,0,0,0,0,1803,0,1805,0,0,0,1807,0,739,0,0,0,0,1838,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1850,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1836,1924,521,521,521,521,521,521,521,521,1933,521,521,521,521,521,521,1942,521,521,521,521,521,521,521,521,521,521,1952,1954,521,521,521,0,0,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59861,57886,57886,57886,57886,57886,57886,521,58754,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59328,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61033,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,50657,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59428,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,58397,57936,57936,57936,57936,57936,57936,58430,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59572,57936,57936,57936,57936,57936,57936,59581,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59592,59594,57936,57936,57936,57936,521,521,521,0,0,2472,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59885,57886,57886,57886,57886,59889,57886,57886,57886,2329,0,0,0,0,0,0,0,0,2337,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3128,0,0,0,0,0,0,0,0,521,521,2465,521,521,521,0,0,0,0,57886,57886,57886,57886,57886,57886,59824,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59836,57886,57886,57886,57886,57886,57886,61492,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61500,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59583,59584,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,2255,521,59925,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60358,59953,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59972,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59935,57909,59937,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60660,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60671,57936,60008,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59598,521,521,60036,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60055,57936,57936,57936,57936,57936,57936,57936,0,0,0,0,0,4132,0,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,0,0,0,2769,0,0,2772,0,0,0,0,0,0,2776,0,0,0,0,0,0,0,0,0,0,0,2787,0,0,0,0,0,0,0,394,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,319488,319488,0,0,0,0,0,0,2795,0,0,0,0,2797,0,0,0,0,0,0,0,2801,2802,0,0,2805,0,0,2808,0,0,0,0,0,0,0,0,0,0,1161,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,2818,0,0,0,0,0,0,0,0,0,0,0,0,0,2828,0,0,0,0,521,2832,521,521,521,521,521,521,521,521,521,521,521,2878,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1356,521,521,521,1359,521,521,521,521,521,521,521,521,521,521,521,521,521,2873,521,521,521,521,521,521,2880,521,521,521,521,521,521,521,521,521,521,2888,521,521,521,2891,521,521,521,0,0,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60253,57886,57886,57886,57886,57886,57886,57886,61493,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61501,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60921,57936,60923,57936,57936,57936,57936,57936,57936,57936,60930,57936,57936,60932,57936,57936,57936,57936,57936,0,0,57909,60308,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60331,57936,57936,60407,57936,57936,57936,57936,57936,57936,57936,60415,57936,57936,57936,57936,57936,57936,60422,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60431,57936,57936,57936,57936,57936,57936,57936,57936,59574,57936,57936,57936,59580,57936,57936,57936,57936,57936,57936,57936,57936,57936,59590,57936,57936,57936,57936,59596,57936,57936,521,521,521,0,901,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59864,57886,57886,57886,57936,60434,57936,57936,57936,57936,57936,57936,3094,521,521,521,521,60441,57886,57886,57886,57886,0,0,0,0,3102,0,0,0,0,0,0,0,0,0,521,521,3646,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3658,521,521,521,3112,0,0,0,0,0,0,0,3116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3130,3131,0,0,0,0,0,0,0,3143,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,333,334,335,0,0,0,0,0,3211,521,521,521,521,521,521,521,3215,521,521,521,521,521,0,0,57886,57886,57886,60567,57886,57886,57886,57886,57886,60572,57886,57886,57886,57886,57886,57886,57886,57886,61246,57886,57886,57886,61249,57909,57909,57909,57909,61253,57909,57909,57909,57909,57909,57909,57909,57909,57909,61262,57909,57909,57909,61265,60601,57886,60603,57886,57886,57886,57886,57886,57886,57886,57886,60608,57886,57886,57886,57886,57886,0,0,57909,57909,57909,60616,57909,57909,57909,57909,57909,60621,57909,57909,57909,57909,57909,57909,57909,57909,60654,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61086,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57909,57909,57909,60650,57909,60652,57909,57909,57909,57909,57909,57909,57909,57909,60657,57909,57909,57909,57909,57909,57936,57936,57936,60665,57936,57936,57936,57936,57936,60670,57936,57936,57936,57936,57936,57936,57936,57936,60041,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60054,57936,57936,57936,57936,57936,60058,60059,60060,57936,60696,57936,57936,57936,60699,57936,60701,57936,57936,57936,57936,57936,57936,57936,57936,60706,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,3374,0,0,3377,3378,521,521,521,521,521,521,3462,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,60822,57886,57886,57886,57886,60826,57886,57886,57886,57886,57886,58835,57886,57886,57886,57886,57886,57886,58846,57886,50657,58754,977,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58862,57909,57909,57909,57909,57909,57909,57909,57909,57909,58394,0,0,0,0,57886,57936,57936,57936,57936,57936,58412,57936,58421,57936,57936,57936,57936,57936,57936,57936,57936,57936,0,0,0,0,0,0,0,521,521,521,521,521,521,521,4085,521,4087,521,521,521,57886,57886,57886,57936,57936,57936,57936,57936,57936,57936,60916,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60931,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,3608,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1194,0,1196,0,0,367,367,0,0,0,0,0,0,0,0,0,0,0,0,0,3619,3620,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3633,0,0,0,0,0,0,0,0,1793,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1806,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,60825,57886,57886,57886,57886,521,521,3787,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3798,521,521,521,521,521,57886,57886,57886,57886,57886,57886,61149,57886,57886,57886,57886,57886,58836,57886,57886,57886,57886,57886,57886,57886,57886,50657,58754,977,57909,57909,57909,57909,57909,57909,57909,57909,57909,58861,57909,57909,57909,58870,57909,57936,57936,57936,57936,57936,57936,57936,61198,57936,57936,57936,57936,57936,57936,521,521,57886,57886,0,0,0,0,0,0,0,0,0,0,0,3627,0,0,3777,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,4022,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,61379,0,521,521,521,521,521,521,521,521,3955,521,3957,3958,521,3960,521,57886,57886,57886,57886,57886,57886,57886,57886,61314,57886,61316,61317,57886,61319,57886,61321,61488,57886,61489,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,61496,57909,61497,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,61504,57936,61505,57936,57936,57936,57936,57936,57936,57936,57936,57936,58961,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59019,57936,57936,59023,57936,57936,57936,57936,57936,59030,0,0,521,521,521,521,57886,57886,57886,57886,57909,57909,57909,57909,57936,57936,57936,57936,0,521,521,57886,57886,57909,57909,57936,57936,4224,61569,61570,61571,521,521,521,521,521,521,521,1332,1339,521,521,521,521,521,521,521,521,1352,521,1354,521,521,521,521,521,521,521,521,521,521,521,521,2422,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,0,0,57886,60566,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58307,57886,57886,57886,57886,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57896,57896,57896,57896,57896,57896,57896,57919,57919,57896,57896,57946,57896,57896,57896,57896,57896,57896,57896,57946,57946,57896,57896,57896,57896,57946,57946,57896,530,57896,57896,57896,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2312,0,0,0,2315,0,0,0,0,0,2321,0,0,0,0,0,0,0,0,0,0,57909,58909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,57886,57936,57936,57936,57936,57936,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,1138,1705,1706,0,0,0,1712,1713,0,0,0,0,0,0,0,0,687,0,0,0,0,0,367,367,367,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1253,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,383,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,339,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2366,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,0,0,0,0,0,1162,0,0,0,0,0,0,405,0,0,0,0,0,0,0,0,0,0,0,0,405,0,0,0,0,0,0,0,383,0,139264,147456,0,405,0,0,405,0,0,0,431,131072,0,431,431,0,0,431,0,445,431,0,431,471,471,471,484,484,484,484,484,484,484,484,484,484,484,484,484,484,484,531,57897,531,57897,531,531,57897,531,531,57920,57897,531,531,57897,57897,57897,57920,57897,57897,57897,57897,57897,57897,57897,57920,57920,57897,57897,57947,57897,57897,57897,57897,57897,57897,57897,57947,57947,57897,57897,57897,57897,57947,57947,57897,531,57897,57897,57897,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2775,0,0,0,0,0,2780,0,2782,2783,0,0,0,0,0,0,0,0,0,0,0,1157,0,0,0,0,0,0,0,1159,0,0,0,0,0,0,1266,0,0,0,0,1271,654,0,0,0,0,0,0,0,0,0,0,654,0,654,0,0,0,0,813,0,0,0,654,0,0,0,0,0,0,0,0,0,521,3645,521,521,521,3648,521,521,521,521,521,521,521,521,521,3656,521,521,521,521,521,521,521,0,0,0,0,733,654,0,0,521,829,521,521,521,844,521,521,521,521,521,521,521,521,521,521,885,521,521,521,521,57886,57886,58247,57886,57886,57886,58263,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58304,57886,57886,57886,57886,0,57909,57909,58323,57909,57909,57909,58339,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59987,57909,57909,57909,57936,57936,57936,57936,57936,57936,59996,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60391,57936,60393,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60022,57936,57936,57936,57936,57936,57936,57936,57936,60029,57936,60031,57936,60034,57936,57936,57909,57909,57909,57909,57909,58380,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,58398,57936,57936,57936,58414,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60390,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60710,57936,521,521,521,57886,57886,57886,0,0,0,0,0,58455,57936,57936,57936,57936,521,521,521,885,521,521,0,57886,57886,57886,58304,57886,57886,293,1138,0,0,1142,0,0,1147,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3888,521,57886,57886,57886,57886,57886,57886,57886,57886,58841,57886,57886,57886,57886,57886,50657,58754,977,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60639,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59965,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,0,0,1154,1155,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3133,0,0,0,0,0,0,1155,0,0,0,0,0,0,1280,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,760,0,0,763,0,0,767,0,0,0,0,521,521,521,58754,901,57886,58757,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58771,58778,57886,57886,57886,57886,57886,57886,57886,57886,58791,57886,58793,57886,57886,57886,57886,57886,60831,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60849,57886,60851,57886,57886,57886,57886,57886,57886,58278,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,58354,57909,57909,58908,57909,58910,57909,57909,57909,57909,57909,57909,57909,58923,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58938,57909,57909,57909,0,57886,57936,58946,57936,57936,57936,57936,57936,57936,57936,57936,60068,57936,57936,60071,60072,57936,2404,521,2731,521,521,59835,57886,60080,57886,57886,2739,2266,0,2740,2269,0,0,0,0,0,0,4014,0,4016,0,521,521,521,521,521,4021,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,61378,57886,57936,59033,57936,57936,57936,521,1332,521,1389,521,521,58771,57886,57886,58828,57886,57886,1138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3146,0,0,0,0,0,0,0,0,0,0,3156,0,0,0,0,3161,0,0,0,3163,0,1724,1725,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2342912,0,0,0,521,521,521,521,521,521,1930,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1957,521,58754,1961,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59321,59322,57886,57886,57886,57886,59329,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,61391,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,61405,57936,57936,50657,2061,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59421,59422,57909,57909,57909,57909,59429,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,0,0,741,57886,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59520,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57909,57909,57909,57909,59473,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59501,57909,57886,57886,57886,57886,57886,60832,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60847,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58843,57886,57886,57886,50657,58754,977,57909,58852,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58866,58873,57936,57936,57936,57936,57936,59540,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59560,57936,57936,57936,57936,57936,521,521,521,521,521,521,0,57886,57886,57886,57886,57886,57886,155941,1138,0,0,0,0,0,0,0,0,0,0,0,0,2800,0,0,0,0,0,0,0,0,0,2809,0,0,0,0,0,0,0,0,0,57936,57936,57936,59569,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59597,57936,521,521,521,0,2895,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59359,57886,57886,57886,57886,57886,57886,57886,0,2330,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2346,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,2397,521,521,521,521,521,521,521,521,521,521,521,521,521,521,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61162,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59866,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59878,57886,57886,57886,57886,57886,57886,57886,59884,57886,57886,57886,57886,57886,57886,57886,59890,57886,57886,57886,57886,57886,61030,57886,57886,57886,57886,57886,57886,57886,57886,61036,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,61393,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,61407,57909,57909,57909,57909,59955,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59967,57909,57909,57909,57909,57909,57909,57909,59973,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60366,57909,57909,57909,60369,57909,57909,57909,57909,57909,57909,57936,60373,57936,57936,57936,57936,57936,57936,57936,57936,57936,0,0,0,0,0,0,0,521,521,521,521,4083,521,521,521,521,521,521,521,521,57886,57886,57886,57909,57909,59979,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60430,57936,57936,57936,57936,57936,57936,57936,57936,60038,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60050,57936,57936,57936,57936,57936,57936,57936,60056,57936,57936,57936,57936,57936,521,521,521,521,521,521,0,57886,57886,57886,57886,57886,57886,155941,1138,0,0,0,0,0,0,0,0,0,1149,0,0,57936,57936,60062,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,3109,0,0,60258,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59865,3164,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,3180,521,521,521,521,521,521,3188,521,521,521,521,521,521,521,1333,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2858,521,521,521,521,521,521,521,521,521,521,57909,57909,60628,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61070,57909,57909,57936,57936,57936,60677,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59027,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61099,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,3171,0,0,0,521,3175,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,0,2472,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59349,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61039,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57886,57886,57886,57886,61441,57886,61443,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,61454,57909,61456,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,3607,0,3609,0,0,0,3613,0,0,0,0,0,0,0,0,0,0,1733,0,0,0,1736,0,0,1739,0,0,0,0,0,0,0,0,0,0,0,0,0,0,335872,0,0,0,0,0,0,0,0,0,0,0,0,0,139264,147456,0,0,335872,0,0,61467,57936,61469,57936,57936,57936,57936,0,0,0,0,0,0,0,4134,521,521,521,521,521,521,521,521,521,521,521,61485,57886,57886,57886,57886,57886,57886,57886,59846,57886,59848,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60273,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,388,340,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2351104,0,0,0,0,0,131072,0,0,0,0,0,0,441,0,0,0,456,472,472,472,456,456,456,456,456,456,456,456,456,456,505,505,505,505,505,505,505,505,505,505,505,505,505,505,505,532,57898,532,57898,532,532,57898,532,532,57921,57898,532,532,57898,57898,57898,57921,57898,57898,57898,57898,57898,57898,57898,57921,57921,57898,57898,57948,57898,57898,57898,57898,57898,57898,57898,57948,57948,57898,57898,57898,57898,57948,57948,57898,532,57898,57898,57898,1,24578,3,155941,156275,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,212992,0,0,0,0,0,212992,212992,212992,212992,212992,655,0,0,0,0,0,0,0,0,0,0,655,0,655,0,0,0,0,0,0,0,0,655,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,57886,57886,57886,58264,57886,57886,58280,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,57909,57909,57909,57909,57909,57909,58340,57909,57909,58356,57909,57909,57909,57909,57909,57909,57909,59444,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59464,57909,57909,57909,57909,57909,57909,57909,57909,57909,58921,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,57886,57936,57936,57936,57936,57936,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,1138,1705,0,0,0,0,1712,0,0,0,0,0,0,0,1722,0,1241,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1293,0,0,0,0,0,1299,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1315,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1890,521,521,521,521,521,521,521,521,1372,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1391,521,521,521,521,521,1399,521,521,521,521,521,521,0,0,0,0,57886,59819,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59357,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,521,521,521,58754,901,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58772,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58848,50657,58754,977,58851,57909,57909,57909,57909,57909,58858,57909,57909,57909,57909,58864,57909,57909,57909,58830,57886,57886,57886,57886,57886,58838,57886,57886,57886,57886,57886,57886,57886,50657,58754,977,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58867,57909,57909,57909,57909,57909,57909,60631,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60645,57909,57909,57909,57909,57909,57909,57909,57909,59985,57909,57909,59988,59989,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60005,57936,0,0,1755,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,338,339,0,521,58754,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59323,57886,57886,57886,57886,57886,57886,57886,57886,57886,59334,57886,57886,57886,57886,57886,58837,57886,57886,57886,57886,57886,57886,57886,57886,50657,58754,977,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61058,57909,57909,57909,57909,57909,57909,57909,57909,61064,57909,61066,57909,57909,57909,57909,57909,57909,50657,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59423,57909,57909,57909,57909,57909,57909,57909,57909,57909,59434,57909,57909,57909,57909,57909,57909,57909,57909,61178,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61191,57936,57936,57936,57936,57936,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,1138,1705,0,0,0,0,1712,0,0,0,0,0,0,0,0,349,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,0,295,0,57936,57936,57936,57936,57936,57936,57936,59541,57936,57936,57936,57936,57936,57936,57936,57936,59552,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61279,57936,57936,521,57886,0,0,0,3940,0,0,0,0,3627,0,0,0,0,0,2282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2298,2299,0,0,0,0,0,0,0,3382,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,139264,147456,0,0,0,0,0,2355,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2328,521,2413,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2866,57886,57886,57886,57886,59844,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58824,57886,57886,57886,57886,57909,57909,57909,59928,57909,57909,57909,57909,59933,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60011,57936,57936,57936,57936,60016,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58985,57936,57936,57936,57936,57936,57936,57936,57936,0,0,0,3380,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4284416,0,0,57886,60829,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59366,57886,57936,57936,57936,60913,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59562,57936,57936,57936,0,521,521,521,521,3951,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,61310,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59875,57886,57886,57886,57886,59880,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,50657,58754,977,57909,57909,57909,57909,57909,57909,57909,58859,57909,57909,57909,58863,57909,57909,58874,57909,57909,57909,57909,61326,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,61342,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59004,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60689,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61508,0,0,0,0,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,521,1333,521,521,1698,521,58772,57886,57886,57886,59047,57886,1138,0,0,1708,0,0,0,0,1715,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,3883,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,59344,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59364,57886,57886,57886,341,342,343,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,341,295,0,0,0,0,0,4013,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,4027,521,521,4029,57886,57886,57886,57886,57886,57886,57886,57886,59376,57886,57886,57886,57886,57886,57886,59385,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59396,59398,57886,57886,57886,57886,0,0,0,389,390,392,342,0,0,0,0,0,0,341,0,0,0,0,341,0,0,0,342,0,0,0,0,0,0,0,0,0,639,748,749,750,0,0,0,0,0,756,757,0,0,0,0,0,0,0,0,769,770,0,772,0,0,0,389,0,0,0,0,0,0,342,0,0,0,389,0,0,0,0,0,342,389,0,0,0,139264,147456,0,0,0,422,0,0,0,0,0,245760,0,0,0,245760,0,0,245760,245760,245760,0,0,0,0,0,245760,0,245760,245760,0,0,0,245760,245760,0,0,245760,0,0,0,0,131072,0,0,0,341,0,0,0,446,0,341,0,473,473,473,473,489,489,489,489,489,489,489,489,489,473,473,473,473,473,473,473,473,473,473,473,473,473,473,473,533,57899,533,57899,533,533,57899,533,533,57922,57899,533,533,57899,57899,57899,57922,57899,57899,57899,57899,57899,57899,57899,57922,57922,57899,57935,57949,57935,57935,57935,57935,57935,57935,57935,57949,57949,57935,57935,57935,57935,57949,57949,57935,533,57899,57899,57899,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,344064,0,0,0,0,0,0,0,0,0,0,0,0,0,139264,147456,0,0,344064,0,0,0,710,0,0,0,0,0,0,0,718,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,331,332,0,0,0,0,0,0,0,0,802,0,660,0,779,0,0,0,0,0,779,802,0,802,800,0,0,0,814,0,0,0,656,817,0,779,0,0,0,0,0,823,0,0,0,0,783,656,827,0,521,830,521,521,521,846,521,521,862,521,521,521,521,876,521,521,521,521,894,521,521,57886,57886,58248,57886,57886,57886,58265,57886,57886,58281,57886,57886,57886,57886,58295,57886,57886,57886,57886,58313,57886,57886,0,57909,57909,58324,57909,57909,57909,58341,57909,57909,58357,57909,57909,57909,57909,57909,57909,57909,59476,57909,57909,57909,57909,57909,57909,59485,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59496,59498,57909,57909,57909,57909,57886,57909,57909,58371,57909,57909,57909,57909,58389,57909,57909,0,0,0,0,57886,57936,57936,58399,57936,57936,57936,58416,57936,57936,58432,57936,57936,57936,57936,58446,57936,57936,57936,57936,57936,57936,57936,57936,60412,57936,57936,60416,57936,57936,57936,57936,57936,57936,57936,57936,57936,60425,57936,57936,57936,60428,60429,57936,57936,57936,57936,57936,521,521,521,521,521,521,0,57886,57886,57886,57886,57886,57886,155941,1138,0,0,1143,0,0,1148,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,3881,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,58802,57886,57886,57886,58806,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,2962,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60623,57909,57936,57936,58464,57936,57936,521,521,521,521,521,521,0,57886,57886,57886,57886,57886,57886,155941,1138,0,301,0,0,305,0,0,0,0,0,0,0,0,1816,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,740,0,0,0,0,1274,0,0,0,0,0,0,0,0,0,0,0,0,1286,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,540,57906,540,57906,540,540,57906,540,540,57929,57906,540,540,57906,57906,57906,57929,521,521,521,58754,901,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58773,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59348,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59361,57886,57886,57886,57886,57886,57886,57886,58797,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58821,57886,57886,57886,57886,57886,57886,59374,57886,57886,57886,57886,57886,57886,57886,57886,59386,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59397,57886,57886,57886,57886,57886,57886,57886,61444,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61457,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,521,3095,521,521,521,57886,60442,57886,57886,57886,0,0,3100,3101,0,0,0,0,0,0,0,0,0,0,3627,0,3776,0,0,0,0,3780,0,0,0,0,0,0,0,0,3783,0,521,521,521,3785,0,0,0,0,1814,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,221645,221645,221645,221645,521,58754,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59316,57886,57886,57886,57886,57886,57886,57886,57886,59327,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59345,57886,57886,57886,57886,57886,57886,57886,57886,59356,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59876,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,50657,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59416,57909,57909,57909,57909,57909,57909,57909,57909,59427,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,57936,57936,57936,57936,57936,57936,57936,58429,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,2440,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2459,521,521,521,0,0,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60252,57886,57886,57886,57886,57886,60257,59892,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,57909,57909,57909,59910,57909,59912,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60340,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61060,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59981,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,59993,57936,59995,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60686,60687,57936,57936,57936,57936,60690,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60064,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2274,0,0,0,0,0,0,0,2820,0,0,0,0,2823,0,0,0,0,0,0,0,0,0,2831,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3961,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61320,57886,521,2842,521,521,2845,2846,521,521,521,521,521,2851,521,2853,521,521,521,521,2857,521,521,521,521,521,521,521,521,521,2863,521,521,521,0,0,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60251,57886,57886,60254,60255,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60878,57909,57909,57909,57909,57909,57909,57909,57909,57909,59445,57909,57909,57909,57909,57909,57909,57909,57909,59456,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61336,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61352,57936,521,521,521,521,521,2871,521,521,521,521,521,521,2879,521,521,521,521,521,2884,521,521,521,521,521,521,521,521,521,521,521,521,521,1904,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1353,1355,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,60260,57886,60262,57886,57886,57886,57886,60266,57886,57886,57886,57886,57886,57886,57886,57886,57886,60272,57886,57886,57886,57886,57886,57886,57886,57886,57886,60281,57886,57886,57886,57886,57886,59373,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59401,57886,57886,57886,57886,57886,60289,57886,57886,57886,57886,57886,60294,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60330,57909,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60318,57909,57909,60321,60322,57909,57909,57909,57909,57909,60327,57909,60329,57909,57909,57909,57909,57909,57909,57909,60336,57909,57909,57909,57909,57909,57909,57909,60342,57909,57909,57909,57909,57909,57909,57909,60350,57909,57909,57909,57909,57909,57909,60357,57909,57909,57909,60333,57909,57909,57909,57909,57909,57909,57909,57909,57909,60339,57909,57909,57909,57909,57909,57909,57909,57909,57909,60348,57909,57909,57909,57909,57909,57909,60356,57909,57909,57909,57909,57909,57909,57909,60632,57909,57909,60635,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60646,57909,57909,57909,57909,57909,57909,57909,60889,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,60906,57936,57936,57936,57936,60910,57909,57909,57909,60361,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61192,57936,57936,57936,57936,57936,57936,57936,60383,57936,57936,60386,60387,57936,57936,57936,57936,57936,60392,57936,60394,57936,57936,57936,57936,60398,57936,57936,57936,57936,57936,57936,57936,57936,57936,60404,0,0,3139,0,0,0,0,0,0,0,3145,0,3147,0,0,0,3150,0,0,3153,0,0,0,0,0,0,0,0,0,0,0,0,450560,450560,0,0,450560,450560,450560,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1799,0,0,0,0,0,0,0,0,1806,0,0,0,0,0,0,0,0,0,3165,0,0,0,0,0,0,0,0,0,0,0,0,0,3174,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2882,521,521,521,521,521,521,521,521,521,521,521,521,521,2892,521,521,521,521,521,3192,521,521,3195,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3205,521,521,521,521,521,521,521,521,2443,521,521,521,521,2448,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1906,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1940,521,521,521,521,521,521,1947,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3214,521,521,3217,521,521,3220,0,0,60565,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58302,57886,57886,57886,57886,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57886,57886,57886,57886,60583,57886,57886,60586,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60597,57886,57886,57886,57886,57886,57886,57886,59871,57886,57886,57886,57886,57886,59877,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,2962,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,0,3431,0,0,521,521,3436,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3453,521,3455,521,521,521,521,521,521,521,1334,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1358,521,521,521,521,521,521,521,521,521,2419,521,521,521,521,521,521,521,521,2426,521,2428,521,2431,521,521,521,521,521,521,521,521,521,2444,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1392,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3461,521,521,3463,521,521,521,521,521,521,521,521,521,521,521,57886,57886,60820,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59378,57886,57886,57886,59384,57886,57886,57886,57886,57886,57886,57886,57886,57886,59394,57886,57886,57886,57886,59400,57886,57886,57909,57909,57909,57909,57909,57909,60888,57909,57909,60890,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,60904,57936,57936,57936,57936,57936,57936,57936,521,3601,521,57886,60948,57886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,306,0,0,0,0,0,0,306,0,0,0,0,0,521,521,521,521,521,3664,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,61020,61021,57886,57886,57886,57886,61025,61026,57909,57909,61049,61050,57909,57909,57909,57909,61054,61055,57909,57909,57909,57909,57909,61059,57909,57909,57909,57909,57909,57909,57909,57909,61065,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59960,57909,57909,57909,57909,57909,59966,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60341,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60353,57909,57909,57909,57909,57909,57936,57936,61094,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,3764,0,0,0,0,0,0,0,0,521,521,521,521,521,521,2394,521,521,521,521,521,521,521,521,521,521,521,2406,521,521,521,521,521,521,521,521,521,521,521,521,3792,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59849,57886,57886,57886,57886,57886,57886,59854,57886,59856,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60267,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61163,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57886,57886,61154,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61173,57886,57886,57886,57886,61242,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61258,57909,57909,57909,57909,57909,57909,57909,57936,57936,61075,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61087,57936,57936,57936,57936,57936,57936,57936,0,0,0,0,0,0,0,521,521,521,521,521,521,4137,521,4138,521,521,521,57886,57886,57886,57886,57886,57886,0,521,521,3949,521,521,521,521,3954,521,521,521,521,3959,521,521,57886,57886,61308,57886,57886,57886,57886,61313,57886,57886,57886,57886,61318,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60873,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,57936,57936,57936,57936,58418,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58969,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59012,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59029,57936,57909,57909,61324,57909,57909,57909,57909,61329,57909,57909,57909,57909,61334,57909,57909,57909,57936,57936,61340,57936,57936,57936,57936,61345,57936,57936,57936,57936,61350,57936,57936,57936,57936,57936,57936,57936,57936,57936,58962,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58986,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,3606,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1740,0,0,0,0,0,0,0,0,0,0,0,0,0,57886,57886,57886,57886,61384,57886,57886,61386,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61398,57909,57909,61400,57909,57936,57936,57936,57936,57936,57936,57936,3600,521,521,60947,57886,57886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3617,3618,0,0,57936,57936,57936,57936,61412,57936,57936,61414,57936,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60872,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59449,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58932,57909,57909,57909,57909,57909,57909,57909,57909,0,57886,57936,57936,57936,57936,61533,57936,57936,57936,0,0,0,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,0,0,0,521,4195,521,521,521,521,57886,61543,57886,57886,57886,57886,57909,61547,57909,57909,57909,57909,57936,61551,57936,57936,57936,57936,0,0,0,521,521,4196,4197,521,521,57886,57886,61544,61545,57886,57886,57909,57909,61548,61549,57909,57909,57936,57936,61552,61553,57936,57936,0,57886,57909,57936,4232,61577,61578,61579,521,57886,57909,57936,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1261,0,0,0,0,0,0,0,0,0,0,0,0,0,344,345,346,347,348,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,0,295,0,0,0,0,0,245760,245760,245760,245760,245760,245760,0,0,0,0,0,0,0,245760,245760,245760,0,0,0,0,139264,147456,245760,245760,0,0,245760,0,0,0,245760,245760,0,0,0,0,0,0,245760,0,0,0,0,0,0,245760,0,0,245760,0,0,245760,0,0,245760,0,245760,245760,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,737,0,0,0,348,347,131072,346,347,347,348,346,347,0,346,347,450,457,474,474,474,485,485,485,491,485,485,491,491,485,491,506,506,506,506,506,506,506,506,506,506,506,506,506,506,506,534,57900,534,57900,534,534,57900,534,534,57923,57900,534,534,57900,57900,57900,57923,57900,57900,57900,57900,57900,57900,57900,57923,57923,57900,57900,57950,57900,57900,57900,57900,57900,57900,57900,57950,57950,57900,57900,57900,57900,57950,57950,57900,534,57900,57900,57900,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,639,0,0,0,0,644,645,646,647,648,649,650,0,0,0,0,0,0,0,0,0,0,0,0,0,0,665,666,0,668,669,0,0,0,0,0,675,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1881,521,521,521,521,521,521,521,521,521,521,1375,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1914,521,521,521,521,521,521,521,521,521,521,709,0,0,712,0,714,0,716,0,0,0,0,0,0,0,0,0,726,0,0,0,0,0,0,0,0,0,0,0,0,0,0,499712,0,0,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,0,0,0,0,0,0,0,0,0,0,301,0,302,305,0,306,4857856,4874240,0,0,4923392,0,0,0,0,757,0,0,778,0,0,0,0,0,0,0,0,0,785,0,0,0,0,0,796,0,0,685,0,0,0,757,0,0,0,0,0,278528,278528,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1176,0,0,0,0,0,685,816,816,0,0,0,0,0,521,521,836,840,843,521,852,521,521,521,868,870,873,521,521,521,886,890,521,521,521,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60871,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58892,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60372,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58255,58259,58262,57886,58271,57886,57886,57886,58287,58289,58292,57886,57886,57886,58305,58309,57886,57886,57886,0,57909,57909,57909,58331,58335,58338,57909,58347,57909,57909,57909,58363,58365,58368,57909,57909,57909,58381,58385,57909,57909,57909,0,0,0,0,58396,57936,57936,57936,58406,58410,58413,57936,58422,57936,57936,57936,58438,58440,58443,57936,57936,57936,57936,57936,57936,57936,57936,57936,58963,57936,57936,57936,57936,58973,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58989,57936,58456,58460,57936,57936,57936,836,1127,521,886,890,1131,0,58476,58255,57886,58305,58309,58481,155941,1138,0,0,0,0,0,0,0,0,0,0,0,0,540672,0,0,0,0,0,0,0,0,0,0,0,0,0,139264,147456,0,0,540672,0,0,1366,521,521,1370,521,521,521,521,521,521,521,521,521,521,521,1381,521,521,1388,521,521,521,521,521,521,521,521,521,521,1402,521,521,521,0,2895,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,60248,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60256,57886,521,521,521,58754,901,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58795,57886,57886,57886,58798,57886,57886,57886,57886,57886,57886,57886,58805,57886,57886,58809,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58820,57886,57886,58827,57886,57886,57886,57886,57886,59897,57886,57886,57886,57886,0,0,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59918,57909,57909,59921,57909,57909,57909,57909,57909,57909,57909,58885,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58898,57909,57909,57909,57909,58903,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59480,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57886,57936,57936,58994,57936,57936,58998,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59010,57936,57936,59017,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59031,521,1894,521,521,521,521,521,521,521,521,521,521,1903,521,521,521,1907,521,521,1912,521,521,521,521,521,521,521,521,521,521,521,521,2447,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2458,521,521,521,521,521,58754,0,57886,59308,57886,57886,57886,57886,57886,57886,57886,59315,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61164,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59337,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59346,57886,57886,57886,59350,57886,57886,59355,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61160,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,61168,57909,57909,57909,57909,57909,50657,0,57909,59408,57909,57909,57909,57909,57909,57909,57909,59415,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59437,57936,59504,57936,57936,57936,57936,57936,57936,57936,59511,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59533,57936,57936,57936,57936,57936,57936,57936,57936,60681,57936,57936,60684,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60695,57936,0,0,0,0,2305,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,352256,352256,352256,352256,521,521,521,2438,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2865,521,2794,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2381,2894,521,521,0,0,0,2896,0,1961,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59393,57886,57886,57886,57886,57886,57886,57886,57886,0,2061,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59974,57909,57909,57909,57909,57936,57936,57936,57936,57936,60437,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1727,0,0,0,0,0,0,521,521,521,521,3789,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,61146,57886,57886,57886,57886,57886,57886,57886,61151,57886,61239,57886,57886,57886,57886,57886,61245,57886,57886,57886,57886,57909,57909,57909,61251,57909,57909,57909,57909,61255,57909,57909,57909,57909,57909,61261,57909,57909,57909,57909,57936,0,0,4166,0,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59577,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,3766,0,0,0,0,0,3769,57936,57936,61267,57936,57936,57936,57936,61271,57936,57936,57936,57936,57936,61277,57936,57936,57936,57936,521,57886,0,0,0,0,0,0,0,0,3627,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1880,521,521,521,521,521,521,521,521,521,1891,521,0,521,521,521,521,521,3952,521,521,521,3956,521,521,521,521,521,57886,57886,57886,57886,57886,61311,57886,57886,57886,61315,57886,57886,57886,57886,57886,57886,57886,57886,61387,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61401,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60043,57936,57936,57936,57936,57936,60049,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,57886,57886,0,0,0,0,0,0,0,0,0,0,0,3627,0,0,57909,57909,57909,57909,57909,61327,57909,57909,57909,61331,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,61343,57936,57936,57936,61347,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61102,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,728,0,788,0,0,0,0,0,0,0,0,788,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,57886,57886,57886,57886,57909,57909,57909,57909,57936,57936,57936,57936,0,521,521,57886,57886,57909,57909,57936,57936,521,57886,57909,57936,4228,61573,61574,61575,521,57886,57909,57936,521,57886,57909,57936,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1742,0,0,0,0,0,0,0,0,0,0,0,0,0,0,391,0,0,0,395,391,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,363,364,365,366,0,0,367,0,295,0,0,349,0,407,0,0,0,0,0,0,0,0,0,0,407,0,0,0,0,0,0,407,0,349,0,139264,147456,0,0,0,0,0,0,0,3643,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2887,521,521,521,521,521,521,521,521,521,0,0,0,0,131072,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,500,507,507,507,507,507,507,507,507,507,507,507,507,507,507,507,535,57901,535,57901,535,535,57901,535,535,57924,57901,535,535,57901,57901,57901,57924,57901,57901,57901,57901,57901,57901,57901,57924,57924,57901,57901,57951,57901,57901,57901,57901,57901,57901,57901,57951,57951,57901,57901,57901,57901,57951,57951,57901,616,57901,57967,57967,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2351104,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1228,0,0,0,0,0,0,0,0,1237,0,0,0,672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2300,0,57909,57909,58372,57909,57909,57909,57909,58390,57909,57909,0,0,0,0,57886,57936,57936,58400,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58447,57936,57936,57936,57936,57936,57936,57936,57936,60917,57936,57936,57936,57936,57936,57936,57936,57936,60925,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,57886,57886,0,0,0,0,0,3864,0,0,0,0,0,3627,0,0,57936,57936,58465,57936,57936,521,521,521,521,521,521,0,57886,57886,57886,57886,57886,57886,155941,1138,0,0,0,0,0,0,0,0,0,0,0,0,2311,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2325,0,0,0,0,1242,0,0,0,0,0,0,0,0,0,1160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,0,0,0,0,1203,1161,0,0,0,0,0,0,1273,1160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,318,0,0,0,521,521,521,58754,901,57886,57886,57886,58760,57886,57886,57886,57886,57886,57886,57886,57886,57886,58774,57886,57886,57886,57886,58784,57886,57886,57886,57886,57886,57886,57886,57886,57886,59873,59874,57886,57886,57886,57886,57886,57886,59881,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,977,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58929,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,57886,57936,57936,57936,57936,57909,57909,57909,58879,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58895,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60656,57909,57909,60659,57909,57909,60662,60663,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,0,0,0,1756,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,337,0,0,0,1785,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1800,0,0,0,0,0,0,0,1243,0,0,0,0,0,0,0,0,2286,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1173,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,2418,521,521,521,521,521,521,2423,521,2425,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1379,521,521,521,521,521,521,521,1393,521,521,521,521,521,521,521,521,1405,521,521,2869,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2435,2436,57936,57936,57936,57936,57936,57936,60411,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59529,57936,57936,57936,57936,57936,57936,0,0,0,3432,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1398,521,521,521,521,521,0,3872,0,0,0,0,0,521,3875,521,521,3877,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,61234,57886,57886,61236,57886,57886,57886,57886,57886,60263,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60279,57886,57886,57886,57886,57886,61266,57936,57936,61268,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,57886,0,0,0,0,0,0,0,0,3627,0,3944,0,0,0,0,0,417792,0,417792,0,0,0,0,309,0,0,0,0,0,417792,0,417792,0,0,0,0,139264,147456,417792,0,0,0,417792,0,0,0,0,417792,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,417792,0,0,417792,0,0,417792,0,417792,418100,3946,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59383,57886,57886,57886,57886,57886,57886,59391,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,787,0,0,0,0,0,0,0,0,0,0,787,0,787,0,0,0,0,0,0,0,0,787,0,0,0,0,0,0,0,0,0,1160,0,0,0,0,1165,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,460,0,0,0,0,0,0,0,0,0,0,2335231,2335197,2335231,2335231,57886,57886,57886,58266,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,57909,57909,57909,57909,57909,57909,58342,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60891,57909,60893,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60019,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60025,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,58754,1962,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,2557,2962,0,0,50657,2062,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61068,57909,57909,57909,57909,57936,57936,57936,60408,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59021,57936,57936,57936,57936,57936,57936,57936,57886,61028,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,0,0,350,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,345,0,0,0,0,0,352,350,131072,0,350,350,352,0,350,0,0,350,352,350,0,0,0,350,350,350,350,350,350,350,350,498,350,350,350,350,350,350,350,350,350,350,350,350,350,350,350,536,57902,536,57902,536,536,57902,536,536,57925,57902,536,536,57902,57902,57902,57925,57902,57902,57902,57902,57902,57902,57902,57925,57925,57902,57902,57952,57902,57902,57902,57902,57902,57902,57902,57952,57952,57902,57902,57902,57902,57952,57952,57902,536,57902,57902,57902,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2751,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,791,0,0,0,0,0,0,0,0,0,0,0,674,0,0,0,0,0,0,673,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,798,799,0,0,0,0,0,0,0,521,521,837,521,521,521,853,857,521,521,521,521,521,878,880,521,521,891,521,521,521,57886,57886,58250,0,751,0,0,804,0,0,0,0,0,804,0,657,0,0,0,0,0,0,0,0,0,0,0,0,819,0,0,0,0,0,0,0,521,521,521,521,521,521,3879,521,521,521,521,521,521,3885,521,521,521,521,57886,57886,57886,57886,57886,57886,61238,58256,57886,57886,57886,58272,58276,57886,57886,57886,57886,57886,58297,58299,57886,57886,58310,57886,57886,57886,0,57909,57909,58326,58332,57909,57909,57909,58348,58352,57909,57909,57909,57909,57909,57909,57909,57909,61330,57909,61332,61333,57909,61335,57909,61337,57936,57936,57936,57936,57936,57936,57936,57936,61346,57936,61348,61349,57936,61351,57936,61353,57909,57909,58373,58375,57909,57909,58386,57909,57909,57909,0,0,0,0,57886,57936,57936,58401,58407,57936,57936,57936,58423,58427,57936,57936,57936,57936,57936,58448,58450,57936,0,4165,0,4167,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,521,1695,521,1697,521,521,59044,57886,57886,59046,57886,57886,1138,0,0,0,0,0,0,0,0,0,0,0,1720,0,0,57936,58461,57936,57936,57936,837,521,880,521,891,521,0,57886,58256,58299,57886,58310,57886,155941,1138,0,301,0,0,305,0,0,0,0,0,0,0,0,2309,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3396,0,0,0,0,0,0,0,1208,0,0,0,0,0,0,0,0,0,0,0,0,0,1222,0,1224,0,0,0,0,1229,0,0,0,0,1234,0,0,0,0,0,0,0,3874,521,521,521,521,3878,521,521,521,521,521,521,521,521,521,3887,521,521,61233,57886,57886,57886,57886,61237,57886,1406,521,521,58754,901,57886,57886,57886,57886,58761,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58792,58794,57886,57886,57886,57886,58273,58277,58283,57886,58288,57886,57886,57886,57886,57886,58306,57886,57886,57886,57886,0,57909,57909,58328,57909,57909,57909,57909,58349,58353,58359,57909,58364,57886,58832,57886,57886,57886,57886,57886,57886,57886,57886,58844,58845,57886,57886,50657,58754,977,57909,57909,57909,57909,58856,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,57936,57936,57936,57936,58415,57936,57936,58431,57936,57936,57936,57936,57936,57936,57936,57909,57909,57909,57909,57909,58913,57909,57909,57909,57909,57909,57909,57909,58927,57909,57909,57909,57909,57909,57909,57909,57909,58939,58940,57909,57909,0,57886,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59512,57936,57936,57936,57936,57936,57936,57936,57936,59523,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60021,57936,57936,57936,57936,57936,57936,60026,57936,60028,57936,57936,57936,57936,57936,57936,57936,57936,58950,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58981,58983,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61202,57936,521,521,57886,57886,0,0,0,0,0,0,0,0,0,0,0,3627,0,0,0,0,0,0,0,0,0,0,3781,0,0,0,0,0,0,521,521,521,521,57936,59034,59035,57936,57936,521,521,1696,521,521,1699,57886,57886,59045,57886,57886,59048,1138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2774,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,730,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1789,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,507904,507904,507904,507904,0,1773,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1855,0,0,0,0,0,0,0,0,0,0,2825,0,0,0,0,0,0,0,0,521,521,521,521,521,521,2837,521,521,521,521,521,521,521,521,521,1895,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1955,521,521,521,58754,0,57886,57886,57886,57886,57886,57886,57886,59313,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58813,57886,58815,57886,57886,57886,57886,57886,57886,57886,58828,57886,57886,57886,59338,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59399,57886,57886,57886,50657,0,57909,57909,57909,57909,57909,57909,57909,59413,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,60909,57936,57936,57909,59438,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,57886,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59509,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59534,0,0,0,2332,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,0,0,0,0,0,0,2358,0,2360,2361,2362,0,2364,0,0,0,0,0,0,0,0,0,0,2372,0,0,0,0,2377,2378,0,0,0,0,0,0,0,49716,49716,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,327680,327680,327680,327680,2382,0,0,0,0,0,0,0,2388,521,521,521,521,521,521,2395,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1905,521,521,521,521,521,521,521,521,521,521,521,1918,521,521,521,521,521,521,521,521,521,2439,521,521,521,521,521,2445,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3801,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,2745,2746,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2359296,367,0,0,0,521,521,2843,521,521,521,521,521,2848,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2864,521,521,521,0,2895,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,60247,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,50657,58754,977,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59487,59488,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57886,57936,57936,57936,57936,57936,60384,57936,57936,57936,57936,57936,60389,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59016,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60405,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60033,57936,57936,57936,57936,57936,57936,61269,57936,57936,57936,57936,57936,57936,57936,57936,57936,61278,57936,57936,57936,521,57886,0,0,0,0,0,0,0,0,3627,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3446,521,521,521,521,521,521,521,521,521,521,521,521,1937,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1385,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57936,61534,57936,57936,4192,0,4194,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,0,4193,0,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,0,4211,0,521,521,521,521,57886,57886,57886,57886,57909,57909,57909,57909,57936,57936,57936,57936,0,521,521,57886,57886,57909,57909,57936,57936,521,57886,57909,57936,521,521,521,521,521,521,521,1335,521,521,521,521,1345,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1361,521,521,521,0,0,0,0,0,0,57886,57886,57886,57886,57886,57886,57886,60246,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,57909,57909,57909,57909,59911,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58926,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,57886,57936,57936,57936,57936,0,0,0,0,370,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,378,0,0,0,0,370,0,0,0,0,0,4358144,4358144,4358144,4825088,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,5177344,4358144,4358144,4358144,0,0,0,0,0,0,302,0,0,0,302,0,0,306,0,0,0,306,0,0,0,4931584,0,0,0,0,0,0,0,0,747,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,771,0,387,0,353,0,0,0,0,0,396,397,0,398,0,0,0,0,0,0,0,0,0,0,0,398,0,0,403,0,0,0,0,0,0,0,557056,557056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3129,0,0,0,0,0,0,0,370,378,406,0,0,0,370,0,0,353,0,0,0,370,0,409,411,0,370,398,0,0,370,378,0,139264,147456,398,409,0,0,409,0,0,0,432,131072,0,432,432,0,0,432,0,411,432,0,458,0,0,0,486,486,486,486,486,486,486,486,486,486,508,508,508,508,520,508,508,508,520,508,508,508,508,508,508,537,57903,537,57903,537,537,57903,537,537,57926,57903,537,537,57903,57903,57903,57926,57903,57903,57903,57903,57903,57903,57903,57926,57926,57903,57903,57953,57903,57903,57903,57903,57903,57903,57903,57953,57953,57903,57903,57903,57903,57953,57953,57903,617,57903,57968,57968,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,636,0,0,0,0,0,0,0,0,0,0,4017,521,521,521,521,521,521,521,521,521,521,521,521,521,521,61374,57886,57886,57886,57886,57886,57886,0,0,774,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,793,0,0,0,0,0,0,0,774,0,0,0,0,0,1276,0,0,0,0,0,0,0,0,0,0,0,0,0,1288,0,0,0,0,0,0,0,0,0,0,0,0,3625,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,305,0,0,0,0,0,0,305,0,0,0,0,0,0,0,793,0,0,0,0,0,0,0,0,0,0,0,687,0,0,0,774,0,0,0,0,793,0,0,0,0,0,0,0,793,0,0,0,0,774,0,793,0,521,832,521,521,521,521,521,521,863,865,521,521,521,521,521,521,521,521,521,521,521,57886,57886,58251,1151,0,0,0,0,0,0,0,0,0,0,0,0,1164,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2342,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1182,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,0,0,0,0,0,0,0,0,0,1207,1296,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1290,1316,1317,0,1290,521,521,521,521,521,521,0,0,0,0,57886,57886,57886,57886,59822,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,59907,57909,57909,57909,57909,57909,57909,57909,59915,57909,57909,57909,57909,57909,57909,57909,57909,57909,521,1325,521,521,521,1329,521,521,1340,521,521,1344,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1363,521,521,521,0,2895,0,0,0,0,57886,57886,57886,57886,57886,57886,60245,57886,57886,57886,57886,60249,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58294,57886,57886,57886,57886,57886,57886,57886,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59483,57909,57909,57909,57909,57909,57909,59491,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57886,521,1367,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2893,521,521,521,58754,901,57886,57886,57886,57886,57886,57886,57886,58764,57886,57886,57886,58768,57886,57886,58779,57886,57886,58783,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60588,60589,57886,57886,57886,57886,60592,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60598,57886,57886,57886,57909,57909,58878,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58897,57909,57909,57909,58901,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60367,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59515,57936,57936,57936,57936,59521,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59532,57936,57936,57936,57936,57936,57936,58953,57936,57936,57936,58957,57936,57936,58968,57936,57936,58972,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58991,57936,57936,57936,58995,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60399,57936,57936,57936,57936,57936,57936,57936,0,0,0,1726,1727,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,516560,516560,516560,516560,0,1786,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1808,0,0,0,0,0,5111808,0,0,0,0,0,5283840,0,0,0,0,5472256,5521408,0,0,0,0,5595136,5709824,5718016,0,5824512,5865472,0,0,5922816,0,0,6021120,0,521,58754,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59324,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60837,57886,60839,57886,57886,57886,57886,57886,57886,57886,60846,57886,57886,60848,57886,57886,57886,57886,57886,57886,57886,50657,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59424,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61181,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60047,57936,57936,57936,57936,60052,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57909,57909,57909,57909,57909,59442,59443,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,60907,57936,57936,57936,57936,57936,57936,57936,59538,59539,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59556,57936,57936,57936,57936,57936,57936,59563,57936,57936,521,521,521,59324,57886,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,139264,147456,0,0,318,0,0,0,0,0,2384,0,0,2387,0,521,521,2390,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,60823,57886,57886,57886,57886,57886,57886,57886,59867,59868,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59879,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59891,57909,57909,57909,57909,57909,59956,59957,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59968,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58891,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59457,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59980,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,59992,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,57886,57886,0,0,0,0,0,0,0,0,0,0,3868,3627,0,0,57936,57936,57936,57936,57936,60039,60040,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60051,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60705,57936,57936,60708,57936,57936,60711,3368,521,521,60715,57886,57886,0,0,0,0,0,57936,57936,57936,60063,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,2732,2733,57886,57886,57886,60081,60082,0,0,1710,0,0,1717,0,0,0,0,0,1728,1729,0,0,0,0,0,1735,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,360,361,0,0,0,0,0,0,0,367,0,295,0,0,0,0,2821,0,0,0,0,0,0,0,0,0,2827,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2460,521,2462,57886,60286,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59919,57909,57909,57909,57909,57936,60406,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60418,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59011,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,3194,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3207,521,521,521,521,521,521,0,0,0,0,59818,57886,57886,57886,57886,57886,57886,57886,59826,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60590,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,57909,60615,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60648,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60002,57936,57936,57936,57936,57936,60697,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,0,6152192,0,0,0,6316032,0,196608,0,0,5816320,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2754,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1168,0,0,0,0,0,0,0,0,0,0,0,0,0,0,57936,57936,57936,57936,57936,61097,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,3760,57886,57886,61106,3763,0,0,0,0,3767,0,0,0,0,0,0,315,316,317,318,319,320,321,322,323,324,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1167,0,0,0,0,1171,0,0,1174,0,0,0,0,0,0,0,521,521,521,3788,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,61147,57886,57886,57886,61150,57886,57886,57886,57886,58274,57886,57886,57886,57886,57886,58293,57886,57886,57886,57886,58311,57886,57886,57886,0,57909,57909,57909,57909,57909,57909,57909,58350,57909,57909,57909,57909,57909,57909,57909,57909,57909,59478,57909,57909,57909,59484,57909,57909,57909,57909,57909,57909,57909,57909,57909,59494,57909,57909,57909,57909,59500,57909,57909,57886,57886,57886,57886,61241,57886,61243,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61257,57909,61259,57909,57909,57909,57909,57909,57909,57936,61074,57936,57936,57936,61077,57936,57936,57936,57936,57936,57936,57936,57936,57936,61085,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59516,57936,57936,57936,57936,57936,57936,57936,57936,57936,59528,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61470,57936,57936,57936,0,4130,0,0,0,0,0,521,521,4135,521,4136,521,521,521,521,521,521,521,57886,57886,61486,57886,61487,57886,57886,57886,57886,59340,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59353,57886,57886,57886,59358,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,57909,57909,57909,57909,57909,57909,57909,59914,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60709,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,0,0,0,131072,0,0,0,0,0,0,0,358,0,0,0,475,475,475,0,0,0,0,0,0,0,0,0,0,509,509,513,513,513,513,509,513,513,513,509,513,513,513,513,513,513,538,57904,538,57904,538,538,57904,538,538,57927,57904,538,538,57904,57904,57904,57927,57904,57904,57904,57904,57904,57904,57904,57927,57927,57904,57904,57954,57904,57904,57904,57904,57904,57904,57904,57954,57954,57904,57904,57904,57904,57954,57954,57904,618,57904,57969,57969,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,637,0,0,0,0,0,0,0,0,0,1305,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1288,0,521,521,1320,521,1323,0,680,681,0,0,0,0,0,0,0,0,0,0,0,367,367,367,0,0,0,0,0,0,0,0,702,0,0,0,0,0,0,0,521,521,521,3876,521,521,521,521,3880,521,521,521,521,521,3886,521,521,521,57886,57886,57886,61235,57886,57886,57886,658,0,637,0,0,0,0,0,0,781,0,0,0,0,0,0,0,0,0,0,790,0,795,0,0,0,0,0,0,637,0,0,781,521,833,521,521,521,521,854,858,864,521,869,521,521,521,521,521,887,521,521,521,521,57886,57886,58252,0,790,0,795,0,781,0,807,0,0,0,0,807,0,0,0,0,0,637,0,0,0,0,0,0,0,0,781,0,0,0,0,0,0,1277,0,1162,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,670,0,0,0,0,0,0,0,0,57909,57909,57909,57909,57909,58382,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,58403,57936,57936,57936,57936,58424,58428,58434,57936,58439,57936,57936,57936,57936,57936,521,521,521,521,521,521,0,57886,57886,57886,57886,57886,57886,155941,1138,0,0,1142,0,0,1147,0,0,0,0,0,0,0,311,0,0,0,0,0,310,0,310,311,0,310,310,311,0,0,0,0,0,0,0,0,0,0,0,310,408,311,0,0,0,0,0,0,311,413,0,0,139264,147456,0,0,0,0,0,58457,57936,57936,57936,57936,521,521,521,887,521,521,0,57886,57886,57886,58306,57886,57886,155941,1138,0,301,0,0,305,0,0,0,0,0,0,0,0,2336,0,0,0,0,1806,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2292,2293,0,2295,2296,0,0,0,0,0,0,0,0,0,1152,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1169,0,0,0,0,0,0,0,0,0,0,0,1179,0,0,0,1183,1184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,0,0,0,1202,0,0,0,0,0,0,0,686,0,0,0,0,0,0,367,367,367,0,0,0,0,0,699,0,0,0,0,0,0,0,0,708,0,0,1243,0,0,0,0,0,0,1251,0,0,0,0,0,1256,0,0,0,0,0,0,0,0,0,0,0,1267,0,0,0,0,0,0,1301,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,0,0,0,0,1275,0,0,1152,0,0,0,1281,0,1283,0,0,0,0,0,0,0,0,0,1291,0,0,0,0,0,0,0,0,521,521,521,521,521,2393,521,521,521,521,521,521,521,521,521,521,521,2405,521,521,521,521,521,521,0,1297,1256,0,1281,1300,0,1303,0,0,0,1183,0,0,0,0,1311,0,0,0,0,0,1311,0,0,1202,1311,1318,521,521,521,521,521,521,0,0,0,2473,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61043,57886,57886,57886,57886,57909,57909,57909,57909,57909,1324,521,521,521,521,1330,521,521,521,521,521,521,521,521,521,521,1351,521,521,521,521,521,521,521,521,521,521,521,521,1364,521,521,521,0,2895,0,0,0,0,57886,57886,57886,60243,57886,60244,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,521,521,1369,521,521,521,521,521,521,521,521,521,1377,521,521,521,1384,1386,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2881,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3202,521,521,521,521,521,521,521,521,521,521,521,521,3208,521,521,521,521,1409,58754,901,58756,57886,57886,57886,57886,57886,58763,57886,57886,57886,57886,58769,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58790,57886,57886,57886,57886,57886,57886,59870,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58818,57886,57886,57886,57886,57886,57886,57909,57909,57909,58911,57909,57909,57909,58918,58920,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58943,0,58944,58945,57936,57936,57936,57936,57936,57936,57936,57936,57936,59543,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58984,57936,57936,57936,58987,57936,57936,57936,57936,57936,57936,57936,58952,57936,57936,57936,57936,58958,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58979,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58992,57936,57936,57936,57936,58997,57936,57936,57936,57936,57936,59002,57936,57936,57936,59006,57936,57936,57936,59013,59015,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60922,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60395,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59038,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,1138,0,0,0,1710,0,0,0,0,1717,0,0,0,0,0,0,362,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,734,0,0,0,0,0,0,0,0,0,0,1757,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1775,0,0,0,0,0,0,0,1783,1784,0,0,0,0,1840,1841,0,0,0,1844,0,0,0,0,0,1849,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,581632,0,0,0,0,0,0,0,0,0,0,0,581632,0,581632,581632,0,1862,0,1864,1840,521,521,521,521,521,521,521,521,521,521,521,1876,521,521,521,521,1882,521,521,521,521,521,521,521,521,521,521,2850,521,2852,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2427,521,521,521,521,521,521,521,521,521,521,521,521,1893,521,521,521,521,1897,521,521,521,521,521,521,521,521,521,521,521,521,1910,521,521,521,1915,521,521,521,521,521,521,521,521,521,2849,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2429,521,521,521,521,521,521,521,521,521,521,521,58754,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59319,57886,57886,57886,57886,59325,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59336,50657,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59419,57909,57909,57909,57909,59425,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59436,57909,57909,57909,57909,57909,57909,60653,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61091,57936,57909,57909,57909,59440,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59453,57909,57909,57909,59458,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59936,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59942,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,59536,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59549,57936,57936,57936,59554,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,2730,521,521,521,57886,60079,57886,57886,57886,0,0,0,0,0,0,0,0,2257,521,521,59604,57886,59606,57886,57886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2277,2278,0,0,0,0,0,5210112,0,5365760,0,5554176,5570560,5578752,0,5668864,0,0,5791744,0,0,0,0,0,0,0,0,0,0,6201344,6242304,6250496,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,3443,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1382,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,0,0,2383,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2403,521,521,2407,521,521,521,2411,57886,57886,59842,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59852,57886,57886,57886,59855,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60609,57886,57886,57886,57886,0,0,57909,57909,57909,57909,57909,60618,57909,60619,57909,57909,57909,57909,57909,57886,57886,59894,57886,57886,57886,57886,57886,57886,57886,0,0,2561,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59923,57909,57909,59927,57909,57909,57909,59931,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59941,57909,57909,57909,59944,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61180,57909,57909,57909,57909,57936,57936,57936,57936,57936,61186,57936,57936,57936,61190,57936,57936,57936,57936,57936,59978,57909,57909,57909,57909,57909,59983,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60006,57936,57936,60010,57936,57936,57936,60014,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60024,57936,57936,57936,60027,57936,57936,57936,57936,57936,57936,57936,57936,57936,0,0,0,0,4076,0,4078,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,60061,57936,57936,57936,57936,57936,60066,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2273,0,0,0,0,0,0,0,0,2743,0,0,0,0,0,0,0,0,0,0,2753,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3629,0,0,0,0,0,0,0,0,0,0,0,0,0,2819,0,0,0,0,0,0,0,0,0,0,2826,0,0,0,0,0,0,521,521,2833,521,521,521,521,521,521,521,521,521,521,3465,3467,521,521,521,3470,521,3472,3473,521,57886,57886,57886,57886,57886,57886,60824,57886,57886,57886,57886,57886,2841,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2856,521,521,521,521,2859,521,521,2861,521,2862,521,521,521,521,521,521,0,0,2472,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59834,57886,57886,59838,57886,521,521,521,521,2870,521,521,2874,521,521,521,521,521,521,521,521,521,2883,521,521,521,2886,521,521,521,521,521,521,521,521,521,521,3669,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,50657,58754,977,57909,57909,57909,57909,57909,57909,57909,57909,58860,57909,57909,57909,57909,57909,58872,0,0,57909,57909,60309,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60317,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61183,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60420,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59008,57936,57936,57936,57936,57936,57936,57936,59022,57936,57936,57936,57936,57936,57936,57936,57909,60332,57909,57909,57909,57909,60335,57909,57909,60337,57909,60338,57909,57909,57909,57909,57909,57909,57909,57909,57909,60347,57909,57909,60351,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60655,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,60666,57936,57936,57936,57936,57936,57936,60673,57909,57909,60360,57909,57909,57909,60363,60364,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,60374,57936,57936,57936,57936,57936,57936,57936,57936,521,521,3096,521,521,57886,57886,60443,57886,57886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,450560,450560,0,0,0,0,0,0,0,0,0,0,0,0,139264,147456,0,0,450560,0,0,57936,57936,57936,60382,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60397,57936,57936,57936,57936,60400,57936,57936,60402,57936,60403,57936,57936,57936,57936,57936,57936,57936,57936,61272,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,57886,0,0,0,0,0,0,0,3942,3627,0,0,0,0,0,371,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,371,0,0,0,379,381,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1885,521,521,521,521,521,521,521,521,521,3794,521,521,521,3795,3796,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,2559,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60325,57909,57909,57909,57909,57909,57909,3190,521,521,521,3193,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1917,521,521,521,521,521,57886,60581,57886,57886,57886,60584,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60594,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60838,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,2561,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60630,57909,57909,57909,60633,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60643,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,57936,57936,57936,57936,58417,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60920,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,57886,0,0,0,0,0,0,0,0,3627,0,0,0,60674,57936,57936,57936,57936,60679,57936,57936,57936,60682,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60692,57936,57936,57936,57936,57936,57936,57936,57936,57936,4072,4073,0,0,0,0,0,4079,4080,4081,521,521,521,4084,521,4086,521,521,521,521,61435,61436,61437,3457,521,521,521,521,521,521,521,521,521,521,521,521,521,3469,521,521,521,521,521,57886,57886,57886,60821,57886,57886,57886,57886,57886,57886,57886,57886,57886,60587,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60595,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,2560,0,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60640,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60883,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60897,57909,57909,57909,57909,57909,57936,57936,57936,60905,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61201,57936,57936,521,521,57886,57886,0,0,0,0,0,0,0,0,0,0,0,3627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3784,521,521,521,57936,60939,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,3610,0,0,0,0,0,0,0,3616,0,0,0,0,0,0,372,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,377,0,0,0,0,0,0,0,0,2824,2782,0,0,0,0,0,2829,0,0,0,521,521,521,521,521,521,521,2838,521,521,521,521,521,0,0,0,3640,3641,0,0,0,0,521,521,521,521,521,521,521,521,521,3651,521,521,521,521,521,521,521,521,521,521,521,521,521,3671,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60612,57886,0,0,57909,57909,57909,57909,57909,57909,57909,57909,60620,57909,57909,57909,57909,521,3661,521,521,521,521,521,3666,521,3668,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,61022,57886,57886,57886,57886,57886,57886,57886,60292,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60303,57886,57886,57886,57886,57886,0,2962,0,0,57909,57909,57909,57909,61051,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61061,57909,57909,57909,57909,57909,57909,61067,57909,61069,57909,57909,57909,57909,57909,57909,57909,58884,57909,57909,57909,57909,57909,57909,57909,57909,57909,58894,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59938,57909,57909,57909,57909,57909,57909,59943,57909,59945,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,61096,57936,61098,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,3765,0,0,0,0,0,0,0,0,2363,0,0,0,0,0,0,0,0,0,0,0,0,0,2374,0,0,0,0,0,0,0,0,0,656,0,0,659,660,0,0,0,0,0,0,0,0,0,0,671,0,0,0,0,0,0,0,0,0,3770,0,0,0,0,0,0,0,3627,0,0,0,0,0,3779,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3786,521,521,521,3790,521,521,521,521,521,521,521,521,521,521,521,521,521,3799,521,521,521,57886,57886,57886,57886,57886,61148,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,60867,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60880,57909,57909,61152,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61161,57886,57886,57886,57886,57909,57909,57909,57909,57909,61167,57909,57909,57909,61171,57909,57909,57909,57909,57909,57909,57909,61053,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59459,57909,57909,57909,57909,57909,57909,57909,57909,61438,57886,57886,57886,57886,57886,57886,57886,57886,61446,57886,57909,57909,57909,61451,57909,57909,57909,57909,57909,57909,57909,57909,61459,57909,57936,57936,57936,61464,57936,57936,57936,57936,57936,57936,57936,57936,57936,59576,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,0,0,0,57936,57936,57936,57936,57936,61472,57936,0,0,0,0,4131,0,4133,521,521,521,521,521,521,521,521,521,4139,4140,521,57886,57886,57886,57886,57886,57886,57886,57886,61445,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61458,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60919,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60929,57936,57936,57936,57936,57936,57936,57936,57936,57936,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,4088,521,521,57886,57886,57886,57886,57886,57886,61490,61491,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,61498,61499,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,61506,61507,57936,57936,57936,57936,57936,57936,57936,57936,61415,0,0,4074,4075,0,0,0,521,521,521,4082,521,521,521,521,521,521,521,521,4090,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,60865,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61184,57936,57936,57936,57936,57936,57936,57936,61189,57936,57936,57936,57936,57936,57936,0,0,521,521,521,521,57886,57886,57886,57886,57909,57909,57909,57909,57936,57936,57936,57936,0,521,4220,57886,61565,57909,61566,57936,61567,521,57886,57909,57936,521,521,521,521,521,521,521,1899,1900,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3800,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,425,425,0,0,131072,425,0,0,0,425,0,0,447,0,425,0,476,476,476,0,0,361,361,361,495,361,361,361,361,476,476,476,476,476,476,476,476,476,476,476,476,476,476,476,539,57905,539,57905,539,539,57905,539,539,57928,57905,539,539,57905,57905,57905,57928,57905,57905,57905,57905,57905,57905,57905,57928,57928,57905,57905,57955,57905,57905,57905,57905,57905,57905,57905,57955,57955,57905,57905,57905,57905,57955,57955,57905,539,57905,57905,57905,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,376832,0,376832,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1854,0,0,0,0,0,0,0,0,0,0,0,57909,58369,57909,57909,57909,57909,58387,57909,57909,57909,0,0,0,0,58293,57936,57936,57936,57936,57936,57936,57936,58425,57936,57936,57936,57936,57936,58444,57936,57936,57936,57936,57936,57936,57936,57936,57936,60069,57936,57936,57936,57936,2729,521,521,521,521,60078,57886,57886,57886,57886,2739,2266,0,2740,2269,0,0,2742,57936,58462,57936,57936,57936,521,521,521,521,892,521,0,57886,57886,57886,57886,58311,57886,155941,1138,0,1139,0,0,1144,0,0,0,0,0,1150,0,0,0,0,0,5341184,0,5652480,0,0,0,0,4759552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1827,0,0,0,0,0,0,0,1834,0,0,0,0,0,0,1244,0,0,0,0,1249,0,0,0,1253,0,0,0,0,0,0,0,1253,0,0,0,0,0,0,0,0,0,0,0,466944,0,0,0,0,0,0,0,0,1825,0,0,0,0,0,0,0,0,0,0,0,0,353,354,355,0,0,0,0,0,0,0,0,0,0,0,0,0,367,0,295,0,521,521,521,1327,521,521,521,1336,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2895,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60574,57886,57886,60578,57886,521,521,521,58754,901,57886,57886,57886,57886,57886,57886,57886,57886,57886,58766,57886,57886,57886,58775,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,61034,57886,57886,57886,57886,57886,57886,57886,57886,61042,57886,57886,57886,57886,57886,57886,57909,57909,57909,61047,57909,57936,57936,57936,57936,57936,58955,57936,57936,57936,58964,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59555,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,521,521,1931,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1953,521,521,521,521,521,521,0,2470,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59839,521,58754,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59333,57886,57886,57886,57886,57886,57909,57909,57909,57909,60864,57909,57909,57909,57909,60868,57909,57909,57909,57909,57909,57909,57909,60874,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,58402,57936,57936,57936,57936,57936,57936,58433,58435,57936,57936,57936,57936,57936,57936,50657,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59433,57909,57909,57909,57909,57909,57909,57909,57909,57909,59986,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60001,57936,57936,60004,57936,57936,57909,57909,57909,57909,57909,59474,57909,57909,57909,57909,57909,57909,57909,57909,59486,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59497,57909,57909,57909,57909,57909,57886,57886,57886,57886,59372,57886,57886,59375,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59389,57886,57886,57886,57886,57886,57886,59395,57886,57886,57886,57886,57886,57886,57886,57886,59872,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,60304,57886,57886,57886,0,2962,0,0,57936,57936,57936,57936,59570,57936,57936,57936,57936,57936,57936,57936,57936,59582,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59593,57936,57936,57936,57936,57936,521,521,521,521,521,521,0,57886,57886,57886,57886,57886,57886,293,1138,0,0,0,0,0,0,0,0,0,0,0,0,3119,0,3120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3135,0,0,0,0,2283,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2301,0,0,0,0,2359,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,336,0,0,0,0,57886,59841,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59863,57886,57886,57886,57909,57909,57909,57909,57909,59930,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,0,57886,57936,57936,58947,57936,57936,57936,57936,57936,57936,60013,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59589,57936,57936,57936,57936,57936,57936,57936,57936,521,521,0,0,57909,57909,57909,57909,57909,57909,57909,60313,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,58931,57909,57909,57909,57909,57909,57909,57909,57909,0,57886,57936,57936,57936,57936,60626,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,1259,57886,57936,57936,57936,57936,57936,60675,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59524,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57886,57886,57886,61155,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,61174,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,61193,57936,57936,57936,57936,57936,57936,57936,57936,61100,57936,57936,57936,57936,57936,57936,521,521,521,57886,57886,57886,0,0,0,0,0,0,0,0,0,0,0,1162,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,367,0,0,0,0,0,0,0,1205,0,0,57936,57936,57936,57936,61471,57936,57936,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57909,57909,57886,57886,57936,57886,57886,57886,57886,57886,57886,57886,57936,57936,57886,57886,57886,57886,57936,57936,57886,521,57886,57886,57886,372,372,0,0,131072,372,0,0,0,372,0,0,0,0,372,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3122,0,0,0,0,0,0,0,0,0,0,0,0,0,0,57906,57906,57906,57906,57906,57906,57906,57929,57929,57906,57906,57956,57906,57906,57906,57906,57906,57906,57906,57956,57956,57906,57906,57906,57906,57956,57956,57906,540,57906,57906,57906,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2334720,0,2334720,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,2834,2835,521,521,521,521,521,521,521,521,57886,57886,57886,58267,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,57909,57909,57909,57909,57909,57909,58343,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,61179,57909,57909,57909,57909,57909,57909,57936,57936,57936,57936,57936,57936,61187,57936,57936,57936,57936,57936,57936,57936,57936,521,521,521,521,521,57886,57886,57886,57886,57886,301,305,0,0,0,0,0,0,0,0,0,0,0,0,1282,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2758,2759,0,0,2762,0,2764,0,0,0,0,0,521,521,521,58754,901,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58780,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,57909,57909,59909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60658,57909,57909,57909,57909,57936,57936,57936,57936,57936,60667,57936,60668,57936,57936,57936,57936,58875,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59947,57909,57909,57909,57909,57909,0,0,0,3771,0,3772,0,0,0,0,3627,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,3657,521,521,521,521,521,521,0,0,0,363,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,0,0,245760,0,0,0,363,0,0,0,0,0,0,0,0,0,0,363,0,364,0,0,0,0,363,0,0,0,139264,147456,0,0,0,0,0,0,653,654,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1858,0,0,0,0,0,0,0,0,0,433,131072,0,433,433,0,0,433,0,364,433,0,459,0,0,0,487,487,490,490,490,490,496,497,490,490,510,510,510,510,510,510,510,510,510,510,510,510,510,510,510,541,57907,541,57907,541,541,57907,541,541,57930,57907,541,541,57907,57907,57907,57930,57907,57907,57907,57907,57907,57907,57907,57930,57930,57907,57907,57957,57907,57907,57907,57907,57907,57907,57907,57957,57957,57907,57907,57907,57907,57957,57957,57907,619,57907,57970,57970,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1762,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1239,1806,0,0,0,0,1246,1246,0,0,57909,57909,57909,57909,57909,58383,57909,57909,57909,57909,0,0,0,0,57886,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60688,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58458,57936,57936,57936,57936,521,521,521,888,521,521,0,57886,57886,57886,58307,57886,57886,155941,1138,0,0,0,0,0,0,0,0,0,0,0,0,1794,0,0,0,0,0,0,0,0,0,0,0,0,0,1806,0,0,0,0,0,0,0,0,1272,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3402,2768,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2318336,57909,57909,57909,57909,57909,60334,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60344,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57886,57886,57886,58268,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,57909,57909,57909,57909,57909,57909,58344,57909,57909,57909,57909,57909,57909,57909,57909,57909,58393,0,0,0,0,57886,57936,57936,57936,57936,58409,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59517,59518,57936,57936,57936,57936,59525,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,1240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2792,0,521,1368,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1395,521,521,521,521,521,521,521,521,2875,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,58834,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,50657,58754,977,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60895,57909,57909,57909,57909,57909,57909,57909,57936,60903,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,58996,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59024,57936,57936,57936,57936,57936,521,521,521,521,521,521,0,57886,57886,57886,57886,57886,57886,155941,1138,0,301,0,0,305,0,0,0,0,0,0,0,0,1216,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1232,0,0,0,0,0,0,0,0,1304,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,521,521,521,521,521,3178,521,3179,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2469,0,0,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59883,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,521,521,521,2844,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2434,521,521,57936,57936,57936,57936,57936,57936,60385,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,59522,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,0,0,0,640,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,893,521,521,521,57886,57886,57886,57886,57886,57909,57909,60862,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60879,57909,60881,57909,57936,58463,57936,57936,57936,1126,521,521,521,893,521,0,57886,58477,57886,57886,58312,57886,155941,1138,0,0,0,0,0,0,0,0,0,0,0,0,1817,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,402,0,0,0,0,0,0,0,0,331,521,58754,0,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,59326,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,0,57909,59908,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60343,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,50657,0,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59426,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,59961,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,60346,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,521,521,521,521,2415,521,2417,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2432,521,521,521,521,521,521,2867,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1923,57936,57936,57936,57936,60409,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,60423,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,57936,3660,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,57886,0,0,0,2562,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57909,57936,57936,57936,61185,57936,57936,57936,61188,57936,57936,57936,57936,57936,57936,57936,0,0,0,0,131072,0,0,0,0,0,0,443,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,667,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2310144,0,0,2310144,0,0,0,0,0,0,0,2310144,0,2310144,0,0,0,0,0,0,2310144,2310560,2310560,0,2310144,0,0,2310144,0,0,0,0,0,0,2310144,0,0,0,0,0,0,0,0,0,0,2310144,0,0,0,0,0,0,2310144,0,0,0,0,0,0,654,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2310144,0,367,0,0,0,0,0,0,0,2310560,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,380,0,383,0,0,0,0,0,0,2310144,0,0,0,2310144,0,0,0,0,0,2310144,0,0,2310144,0,0,2310144,0,2310144,2310144,0,2310144,0,2310144,2310144,0,0,0,0,0,521,521,521,521,521,521,521,521,521,521,521,521,521,3445,521,521,521,521,521,521,521,521,521,521,521,521,521,1347,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,1362,521,521,2310144,0,0,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310733,2310144,2310733,2310144,2310144,2310733,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2310,0,0,0,0,0,0,0,0,2318,0,0,0,0,0,2322,0,0,2324,0,0,0,0,0,0,0,0,6275072,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4857856,4874240,0,0,0,0,0,0,0,0,521,521,521,839,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,898,57886,57886,57886,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,460,2335197,2335197,2335197,460,460,460,460,460,460,460,460,460,460,2335231,2335231,2335231,2335231,2335231,2335231,2335231,2335231,2335231,2335231,2335231,2335231,2335231,2335231,2335231,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3392,0,0,0,0,0,0,0,0,0,3399,3400,0,3401,0,2335231,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2750,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2763,0,0,0,0,0,2767,0,0,0,0,417,0,0,0,0,0,0,0,0,0,0,2359296,0,2359296,2359296,2359296,2359296,2359296,2359296,2359296,2359296,2359296,2359296,2359296,2359296,2359296,2359296,2359296,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3416,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2359296,1,24578,3,0,0,4366336,0,0,0,0,0,301,302,0,4268032,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2798,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2813,0,0,0,0,2367488,0,0,4268032,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,367,0,295,0,0,0,0,0,6275072,0,0,0,0,0,0,0,0,0,0,0,976,0,0,0,0,0,4857856,4874240,0,0,0,0,0,0,0,0,521,521,521,2391,2392,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,521,2855,521,521,521,521,521,521,521,2860,521,521,521,521,521,521,521,521,0,1,24578,3,155941,155941,295,0,0,0,0,0,301,302,0,0,305,306,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3117,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3134,0,0,212992,0,0,0,0,0,4366336,0,0,0,0,0,0,0,0,4268032,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,382,0,0,6258688,6447104,0,0,6127616,0,6348800,5906432,0,5537792,0,0,0,0,0,5939200,0,0,5677056,6365184,4866048,0,6070272,5545984,5152768,0,0,6144e3,4358144,4866048,4882432,4358144,4358144,4358144,0,1411,0,0,0,0,0,4857856,4874240,0,0,0,0,0,0,0,0,0,0,0,0,0,5259264,0,0,0,0,0,0,0,0,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,900,900,900,5537792,5545984,5586944,5734400,5971968,4358144,6045696,4358144,6070272,4358144,4358144,4358144,4358144,6348800,4358144,6144e3,0,6144e3,0,4988928,5005312,0,0,0,0,5775360,0,0,0,0,0,0,0,750,808,0,0,0,750,0,0,811,692,0,0,0,816,0,0,0,818,0,0,0,685,692,0,0,4358144,5005312,4358144,4358144,4358144,512e4,5136384,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,4358144,6324224,5914624,5914624,0,0,0,0,0,5513216,5783552,0,0,0,0,0,0,656,0,779,0,0,0,0,0,0,0,783,0,0,0,0,792,0,0,0,0,0,800,0,783,0,0],r.EXPECTED=[166,182,211,1104,242,1452,1467,273,289,712,1117,319,349,333,365,381,397,413,195,1866,2240,2243,2234,2234,2234,2234,2234,2234,2234,2234,2234,2234,2234,429,445,461,477,2088,226,493,2075,939,621,523,543,1716,559,575,591,607,1422,650,666,1822,697,1565,634,728,738,754,796,812,828,844,860,876,892,908,924,955,2180,985,681,2211,1015,1044,1028,1060,1090,1133,1320,1149,1165,1551,1181,1197,1213,1229,1259,1904,1365,1375,999,969,1762,1289,1305,1336,1351,1488,1391,1407,1504,1623,1520,1536,1581,1273,1610,1639,1655,1671,2118,2149,1687,1703,1437,507,1732,1748,1778,1074,780,1809,1838,1854,1890,1920,1936,1952,1968,1984,2e3,2016,2032,2061,257,2104,303,2045,767,1793,1594,2134,1243,2165,2196,2227,2234,1874,1479,2234,2234,2234,2234,2234,2234,2234,2234,2234,2234,2234,2234,2234,2234,536,2259,2263,2271,2271,2271,2265,2269,2271,2272,2276,2279,2286,2282,2290,2294,2298,2302,2306,2310,2381,2790,2790,4003,4941,2790,2791,2314,3074,2982,2790,2790,2790,2687,2790,5013,2790,2790,2790,2790,2790,2790,2790,2827,2790,2571,3537,4080,2436,2320,2443,2466,2326,2336,2790,2790,2790,2343,2790,2790,2349,3841,2707,2790,2734,2759,2790,2790,2790,2790,4756,2738,2790,2790,2790,2790,4767,2321,2390,2466,2466,2466,2466,2355,2361,2790,2790,2790,2790,2790,2371,4535,2790,2696,4816,2790,2790,2790,2697,4817,2790,2790,2790,4822,4790,2790,2790,3017,3842,2448,2790,2790,3537,4079,4079,4079,4079,4079,4099,2436,2436,2436,2436,2436,2387,2321,2321,2321,2321,2321,2459,2466,2466,2466,2466,2466,2332,2401,2790,2790,2762,4873,2790,2790,2790,2790,2820,4885,2790,2790,2790,2790,3243,4891,3542,4079,4079,4079,4097,2436,2436,2436,2436,2458,2321,2321,2321,2331,2466,2466,2426,2790,2790,3074,4076,4079,4079,2396,2436,2482,2321,2321,2464,2466,2466,2411,2790,2790,4535,2790,4077,4079,4079,2480,2436,2436,2457,2321,2321,2420,2467,2428,2834,3536,4079,2434,2436,2441,2321,2465,2332,2447,4095,4081,2437,2376,2466,2452,4078,2436,2321,2466,4335,4081,2456,2463,2422,4080,2482,2463,2471,4098,2483,2331,2478,2329,2487,2491,2474,2495,2498,2508,2512,2519,2519,2519,2515,2525,2519,2521,2529,2536,2532,2540,2544,2548,2552,2556,2560,4697,2790,2790,2790,4729,2790,4591,2584,2858,2790,2790,2790,3364,2591,2790,3610,2603,2609,2613,2617,2621,2625,2628,2632,2636,4053,2702,2790,2790,2790,2790,3877,2642,2648,2892,4432,2646,2915,2367,2654,3828,2813,2790,2652,3406,2659,2664,2790,2790,2790,2790,2790,2671,4434,2580,4063,2790,2676,2680,2790,2790,2790,3867,2684,2790,2790,2790,3868,2685,2750,2790,2790,2790,2790,2756,2760,2790,2790,2790,2790,2790,2880,2666,2790,2790,2777,4228,3359,2851,4232,4238,2790,4246,4420,4253,3266,4258,4264,3443,2790,4721,2782,2790,2790,2790,3228,3232,2790,2790,2790,2790,4105,2790,2790,2790,2790,2790,2790,3903,3876,2788,4641,2790,2790,2790,3307,2790,2790,2790,4640,2818,2790,2790,3306,2795,2935,2812,2790,2790,2744,2790,3875,3239,2817,2790,4088,2790,2790,2824,2790,3502,2818,2790,3007,2790,3959,3750,2960,2745,3748,2790,4626,2790,4622,2667,2940,2842,3754,2902,4615,2840,3753,3753,3753,4616,2838,4624,4624,3006,3753,2841,2903,2719,3291,3292,3752,2941,2998,3e3,2847,2790,2790,2790,2790,2790,3322,3326,2790,2790,2790,3241,4802,2775,4735,2782,2790,2790,2790,4802,3231,2790,2790,2790,2771,4780,3110,4601,2790,3607,2790,3763,3555,2886,2973,2790,3980,2790,3666,2790,4542,2416,2884,2890,2896,2907,4569,2911,2790,2919,5035,2790,2913,2925,2790,4599,2686,2790,3665,2790,4541,3125,4330,4429,2929,2934,2939,3953,2790,2790,4197,3440,2790,2790,2790,2790,4592,3426,2790,2790,2790,2790,2790,4860,2951,2790,3324,2790,2790,3609,3761,2790,4016,2955,2741,2842,2790,4742,2959,2790,2790,4535,2790,2790,4096,4079,4079,4079,4079,2435,2436,2436,2436,2436,2437,2980,2790,2790,2790,2790,2802,2989,2790,2790,2790,2790,2801,2988,2790,2790,2790,4818,4810,3928,2790,3608,3761,2316,2993,3004,2790,3011,3032,2790,2790,2790,4503,3015,2790,2790,2790,2790,3011,3032,2790,2790,2790,2790,2790,3026,4920,2790,2790,2790,2790,3025,4919,2790,2790,2790,2790,2790,4355,3755,4359,2790,2790,3354,3059,4366,4372,4240,2834,4504,3016,2790,2790,3635,3927,3023,3031,4541,3436,3037,3854,3044,2790,2790,3451,3049,2790,2790,3024,3043,2790,2790,2801,3048,2790,2790,3053,3064,3031,4492,3071,2975,3079,2790,3470,3088,2790,3421,3079,2790,2801,3098,2790,4152,3102,3109,2574,3114,3122,2790,4585,3124,2790,3129,2790,4584,3123,2790,4154,3033,3133,4950,3518,3142,4948,4952,3148,2790,4155,3156,3188,3160,3150,4950,3167,3186,3174,3174,3174,3180,3184,3192,3192,3196,3200,3175,3209,3433,3213,3176,3861,3217,3221,4494,3225,3236,3247,2790,2790,2790,2790,3914,2790,2790,3253,3263,3403,3170,3479,3270,3274,3278,3282,3285,3285,3286,2790,2790,3913,2790,3549,3337,3848,3342,3290,3496,2655,3296,3300,3311,3318,4953,3330,4637,2790,3320,2790,2790,3659,2790,2790,3336,2790,2790,4722,2770,2790,2790,2790,2790,4722,2770,2790,2790,2790,2790,2790,4190,3341,3484,3460,3144,3346,3363,3369,2976,3375,2790,2790,2790,3383,3388,2790,2790,2790,3472,2790,2790,2790,4413,2790,4305,3786,4825,2790,2790,2364,2790,3482,3486,2790,3416,3420,2790,4591,3425,2790,2790,2790,2790,2672,3430,2790,2790,2790,3769,2790,2790,2790,2790,3471,3736,2790,2790,2790,2790,3776,2790,3469,2790,2790,2790,2790,4198,3468,2790,2790,2790,2790,4198,3468,2790,2790,2790,2790,2921,3506,2790,2790,2790,4591,3513,2790,2790,2790,3724,2660,2790,4124,3542,3476,3490,3494,3634,3500,2790,2921,3506,2790,2790,2790,2790,3512,3517,3522,2833,3204,2790,3527,2790,2790,2790,4249,2790,2790,2790,3526,2790,2790,2790,3821,2761,2790,2790,2790,2790,4347,2686,2790,2790,2790,2790,4351,2790,4248,2790,2790,2790,3531,3517,3412,2790,2790,4987,2790,2790,2563,2790,2790,2790,4094,4079,4079,4079,4079,2435,2436,2436,2436,2397,2321,2321,2321,2321,2321,2464,2466,2466,2466,2466,2393,2405,2790,2790,2833,2790,4987,2790,2790,4422,2790,2790,4126,4322,3032,2790,4987,2790,3390,4989,2790,2605,2730,2790,3541,3547,4788,3547,2566,2566,2566,4894,4014,4014,4014,4788,2832,3553,2315,4875,2567,4015,4896,2830,2899,3559,3560,3564,2790,2790,2790,2790,2790,3615,3614,2790,2790,4465,3917,2585,3619,3625,3737,4266,4915,3629,3649,4306,3633,3639,3647,3653,2790,2790,4691,3658,2790,4464,3916,2790,3663,2722,3670,3674,4193,4196,2790,3690,2790,2790,2790,2382,3694,2790,2790,2790,2383,3695,2790,2790,2790,2339,3143,2790,2790,2790,4517,2790,2965,4474,4719,4065,4703,2578,3699,3704,2790,2790,3118,2790,2790,2790,4999,2790,4869,4984,5004,2752,2790,2790,3118,2790,4317,3723,2790,2790,2790,2790,4391,3711,2790,2790,2790,2790,3716,3847,2790,2790,3259,2790,2790,2790,2790,2790,3258,2783,2790,2790,2790,2790,3258,2783,3791,2725,2790,3795,2790,2790,3803,2790,2790,3810,2790,2790,2638,2790,4782,3202,2716,3818,2790,3795,2790,4584,3812,2790,2351,2790,2790,3811,2790,3825,3838,2790,2790,4988,2790,3725,4875,2790,2414,2790,3535,4942,2790,2430,2790,4323,4014,3846,3205,3847,4039,2790,2713,2790,3852,3683,3067,3104,2790,3685,4305,3685,3915,3915,3105,3683,3683,3683,3066,3331,3105,3332,3331,3332,3684,3256,2790,2790,3371,3735,2790,2790,2790,2790,3421,3742,2790,2790,2790,2790,2790,3741,2790,2790,2790,2790,3746,2790,3759,2703,3621,4113,3881,3885,3889,3893,3894,3898,3902,2790,2790,3162,2790,2790,3643,2983,4501,4562,3907,3765,4282,3921,2790,4554,4022,2790,3925,3932,4556,3936,2790,4242,3941,2790,2855,2784,3943,4375,4402,2862,2866,2870,2874,2874,2875,2879,2819,3325,2790,2778,2790,4182,4960,4187,2504,5007,4203,4207,4211,4215,4219,4222,4224,2790,2790,4077,4079,4079,4079,4079,4079,2396,2436,2436,2436,2436,2436,2375,2321,2321,2321,2322,2466,2466,2466,2466,2466,2332,2357,2380,2790,2790,2790,2790,2790,2790,2790,2790,3204,2790,2790,2790,2790,2790,2790,2790,2790,3163,2790,2790,2746,3858,4848,4930,3872,3642,4579,2727,4118,2315,3764,3947,3951,2790,2790,3814,3957,2790,2790,2790,3967,3350,2984,2729,3978,3548,3984,3961,2790,2790,3813,3988,2790,2790,2790,2790,3686,4027,2790,2790,2790,2790,3257,4051,2790,3074,2790,2790,4299,3993,2790,4007,2790,2984,2790,3568,3575,4260,3583,3587,3591,3594,3597,3600,3601,3605,2790,2790,2790,4750,2964,2790,2790,2790,2790,2969,2761,2790,2790,2790,2790,4743,2790,4834,2790,3348,4604,4013,4070,4311,4020,2790,2790,2790,4026,2790,2790,2790,2790,3578,4964,2790,2790,2790,2790,4969,2790,2790,2790,2790,3579,2790,4031,2790,4037,2790,4043,2789,4333,4571,4021,2790,2790,4362,2790,2790,2790,2790,3968,4183,2790,2790,4271,3972,4033,2790,2790,4832,2790,2796,2790,4360,3993,2790,2790,2790,2790,4049,2790,2790,2790,2790,4361,2761,4510,4241,4057,4254,4773,4069,4439,2790,2790,4976,2790,2790,2790,4457,2761,2790,2790,4485,3989,2790,2790,4456,4074,3731,4836,4254,4085,4092,3707,2790,4060,2790,2790,4060,4147,4132,4140,4134,4843,2501,4130,4921,4921,4921,4291,4135,4132,4132,4132,4139,4922,4135,4144,4922,4923,4133,4159,4169,4171,4166,4163,4175,4178,2790,2790,2790,2800,2790,2746,3958,4087,2818,2790,3314,2806,2790,3502,2818,2790,2790,4270,3039,4275,2790,2790,2790,4279,3358,2850,4286,4295,2790,3397,3607,4303,4310,2790,2790,4965,4315,2790,2790,2790,3378,4321,2790,2790,2790,3379,2790,2790,3472,2790,2790,2790,2345,3847,2790,2790,3471,3736,2790,4603,2790,4305,2790,4812,4327,4339,2790,2790,3352,3356,2996,4343,3937,4297,4995,4476,2843,2790,3025,4927,2790,2790,4934,2406,2599,4938,5023,4946,2790,2790,2790,2790,4957,4381,4359,2790,2790,2790,3806,4389,2790,2790,2790,2790,3963,4396,2790,2790,2790,2946,2790,2790,2790,3712,2947,2790,2790,2790,4234,3973,2790,2790,2790,3962,4395,2790,2790,2790,2790,3962,4395,3755,4359,2790,3056,3060,4368,3960,4535,4377,2790,2790,2790,2808,4400,2790,2790,2790,2790,4406,2790,2790,2790,2790,2790,2790,2790,4708,2790,2790,2790,2790,2790,2790,2790,2790,2790,3152,3203,2790,2790,2790,2790,2790,3963,4411,2790,2790,2790,2807,4407,4446,2790,4417,2942,4426,3654,3761,2790,2790,3720,2790,2790,2790,2790,2790,3729,2790,4472,2790,2586,3787,3138,2790,4862,4438,2790,2790,2807,4451,2790,2790,2790,4443,2790,2790,2790,4450,4689,3400,2942,4455,4536,4484,2790,4461,2790,2790,4469,2790,2790,4480,2790,2790,3779,4523,4489,4498,3654,4483,2790,4508,2790,5040,4002,2790,4514,2790,2790,4521,4525,4529,4540,4384,4590,4385,2790,4514,2790,4547,4551,2790,3997,4560,4566,3999,4575,3995,4009,4009,4009,4583,4589,4001,4001,4596,3680,4608,4879,4613,4620,4609,4877,2407,3782,4792,4793,2790,2790,2790,2790,2790,2790,2790,3018,4630,4634,4645,4649,4653,4657,4661,4665,4669,4672,4676,4679,4683,2790,2790,2790,3017,4695,4542,4761,4701,4577,4906,4707,4712,4716,4727,2790,3832,2594,3075,4733,3830,4739,2790,2790,2790,3019,4842,2597,4900,4904,4853,4912,2790,2790,2790,2790,2790,3027,4747,4754,4760,4765,4771,4777,4786,4797,4801,2790,2790,2790,2790,4807,2790,2790,3876,4543,4150,2930,2766,2790,2790,2790,2790,2790,4723,2790,2790,2790,2691,2790,2790,2790,3094,2695,2701,2790,2790,2790,2790,3508,2790,4840,2406,4847,4803,4111,4852,4857,4914,2790,2790,2790,2790,2696,4866,2790,2790,3910,2790,2790,4686,4531,4887,3772,3082,3706,2790,4289,2790,3974,3915,4973,2790,4980,4984,5018,4907,4994,2790,2790,2801,4830,2790,2790,2790,5e3,2790,3091,2790,2790,4103,4533,4109,3084,2790,4117,4908,2790,3303,2790,4122,3249,2790,4999,2790,2790,4828,2790,2790,3571,2790,5011,5017,5022,2790,2790,3799,2790,3384,3389,2790,2790,5029,3394,2790,2790,2790,2790,4881,2790,3543,3449,3410,3116,5028,2790,3798,2790,2790,5027,3365,3864,2790,4990,2790,4045,2790,2710,2790,3447,4603,3455,3459,3700,3677,2790,2790,3464,2790,2790,2790,2790,2790,4199,5033,3136,2790,4383,5039,2587,3834,2790,2790,2790,2790,2790,2790,2790,2790,2790,2790,2790,2790,2790,2790,2790,2790,2578,2790,2790,2790,2790,2790,2790,2790,2790,6090,6563,5044,5057,5054,6594,6596,6596,6596,6591,5074,6595,6596,6596,6596,6596,5087,5061,5074,6596,6596,5067,5062,6596,5078,5084,5080,5066,6594,6163,5071,5091,5094,5094,5094,5095,5099,5099,5103,5107,5114,5111,5118,5122,5134,5137,5129,5130,5127,5125,5141,5145,6561,6446,5234,5173,5635,5635,5635,5219,5598,5503,5251,5251,5251,5251,5252,5196,5267,6248,5502,5251,5251,5196,5196,5196,5266,5202,5212,5632,5635,5050,6519,6509,5635,6818,5635,5635,5146,5150,6535,5218,5635,5635,5147,5154,5196,5267,5268,5502,5213,5214,5232,5214,5631,5635,5146,5151,5635,5155,5619,6297,5635,6532,6536,5244,5250,5251,5251,5251,5295,5631,5633,5635,5635,5635,5049,6518,5502,5502,5293,5251,5251,5226,5196,5196,6247,5270,5502,5502,5502,5504,5268,5502,5214,5633,5282,5635,5635,5635,5273,6084,5196,5267,5271,5635,5166,5635,5635,5749,5219,5251,5296,5196,5196,5306,5635,5196,5265,5269,5273,5635,5635,5165,5635,6247,5268,5502,5502,5502,5502,5251,5502,5251,5251,5251,5186,5193,5272,5635,5635,6261,5635,5298,5635,5635,6262,5502,5502,5294,5251,5251,5251,5296,5251,5251,5264,5196,5196,5196,5196,5265,5196,5197,5635,6245,5269,5293,5296,5306,6246,6247,5502,5502,5502,5292,5251,5251,5196,6255,6247,5270,5292,5251,5264,5197,5198,5302,5297,5312,5312,5304,5635,5179,5635,5643,5168,5635,6860,5329,5590,5333,5336,5339,5343,5362,5419,5347,5351,5404,5419,5419,5419,5419,5368,5384,5393,5355,5359,5418,5367,5372,5346,5420,5381,5390,5397,5377,5386,5419,5376,5401,5416,5424,5428,5430,5430,5434,5436,5440,5473,5444,5446,5365,5407,5450,5454,5458,5466,5464,5466,5462,5470,5477,5635,5181,6353,5635,5219,5635,5635,5219,5635,7266,5635,5904,5635,6256,6080,5635,6853,5635,5635,5169,5672,6820,5635,5635,5635,5275,5635,5635,7112,6346,7172,5635,5220,7282,5635,5273,5642,5635,5635,6879,5246,5891,5635,5635,5182,6258,5523,6083,6080,5977,6569,5635,6877,6875,6150,5527,5530,5531,5535,5538,5542,5547,5545,5551,5553,5554,5558,5561,5569,5562,5566,5562,5572,5574,5578,5635,6820,6222,5635,5975,5635,5635,6702,6210,5614,5635,5635,5189,5635,5635,6773,5656,5635,5635,5635,5307,5668,5635,5635,5635,5315,6779,5662,5666,5635,5635,5635,5582,5675,5635,5635,5635,5320,5679,6567,5635,5683,5691,5698,5706,5734,5699,5707,6568,5635,5635,5635,5491,6736,5694,5700,5708,5162,5635,5635,5635,5513,7310,6318,5664,5635,5635,5635,5277,5746,5635,5712,5635,5274,5273,5635,5274,6223,5635,5275,5635,6695,5635,5635,6694,5823,6568,5635,5322,5635,5635,5910,5635,5635,5635,6618,5236,5635,5717,6739,6745,5731,6568,5635,5324,5635,6335,5811,5635,5635,5635,5675,5701,5732,5635,5635,5318,5635,5635,6736,6740,6744,5730,5734,5635,5635,5635,5514,5768,5701,5775,6568,5776,5635,5635,5635,5615,5747,7254,5635,5635,5512,6989,5208,6448,5733,5635,5635,5635,5625,5788,7253,5635,5635,5635,5635,5159,5797,5635,5635,5635,5638,6319,5635,5635,5635,5640,6027,5799,5635,5635,5635,5646,5650,6805,5635,5635,5635,5655,5805,5798,5635,5635,5635,5636,5515,5803,6804,6568,5635,5496,5048,5635,5219,6618,5635,5635,5635,6260,5635,5583,5635,5635,5819,6695,5635,5635,5635,5724,5819,5635,5821,5819,5635,5635,6934,6878,5756,5815,5829,5635,5508,5204,5664,5842,5846,5854,5858,5862,5866,5866,5868,5870,5870,5870,5870,5874,5874,5874,5874,5877,5879,5635,5635,5635,5738,7116,5885,5635,6258,6080,5635,5899,5917,5635,5635,5594,5635,5324,5635,5635,6618,5635,6618,5635,5582,5635,5635,5819,5921,5635,5635,5487,7303,5485,5635,6834,5635,5635,5612,5635,6832,5932,5635,5635,5635,7178,5635,6696,5635,5937,5325,5635,5635,5635,5761,5969,5635,5635,5635,5804,5984,5635,5635,5635,5819,5635,5850,6339,5992,5606,5635,5635,5635,6696,5635,5938,5635,6256,6930,6081,6015,5635,5635,5635,5895,6016,5635,5635,5635,5902,5640,5999,6005,6011,6261,5635,6095,5635,5635,6088,6289,6037,6042,5635,5635,5635,7255,5635,5635,6027,6032,6038,6043,5635,5635,6256,5635,6082,5635,5820,5635,5820,5635,5635,5821,6261,6335,6695,5635,5635,6692,6568,5923,7028,6032,6058,6033,6059,5635,5635,5635,5908,7128,7132,6613,5635,5635,5635,5923,5517,6786,6790,5635,6564,5635,5635,5635,5907,6260,6318,5635,5635,5635,7259,6072,6033,6064,5635,5635,7027,6032,6063,6564,5635,5635,6260,6261,5636,6988,7255,5678,5635,6082,5635,5821,5945,5412,5635,5635,5635,7285,5635,5635,6257,6081,6261,5635,5635,5635,5221,6071,6711,6064,5635,5635,6838,5635,5589,6617,6072,6712,6065,5635,5635,6844,5635,5635,6851,6568,6070,6710,6063,6564,5943,6983,5635,5635,5635,7286,5635,5756,5635,5635,5635,5943,6260,6094,5635,5635,5635,7332,5720,5635,6821,6073,6109,5635,5635,5635,5956,5635,6099,6107,6066,6256,6081,6337,5635,5635,6852,5635,5320,5635,6075,6079,5635,5635,5635,5958,5635,6820,7158,6077,5635,5635,5635,7346,5635,6131,6821,6074,6076,5635,5635,6820,6708,6127,5635,5635,7156,5634,5905,5635,5228,6053,5274,6116,6079,5635,6981,6142,7156,5822,5635,7157,6118,5635,5635,6115,6078,5635,5635,6114,6078,5635,5635,6115,6078,5635,5674,5285,5674,6117,5635,5635,5636,5635,5635,5635,6221,6118,5635,5635,6116,6139,6079,5635,6139,7083,5674,6617,7134,5635,7134,5635,7134,5635,6616,6614,5635,5635,6878,5764,6744,6449,5734,5635,5287,6614,6614,6614,7253,5635,5674,5635,5635,5512,5516,5635,6392,6392,5635,5636,5642,6257,5635,6085,7286,5635,5635,5635,6481,6485,5733,6255,6840,6147,5635,5635,6940,6946,7286,6617,6879,6154,6160,6167,6156,6171,6175,6179,6183,6184,6189,6189,6185,6193,6193,6193,6193,6196,7276,5635,5583,5635,5635,5582,6208,5635,5635,6214,6197,5278,6228,5635,5635,6975,5635,5635,7001,5769,5797,5308,5635,6961,5635,5635,7001,5770,6236,5635,5980,6254,5635,5635,5636,5945,5412,5951,5635,5635,6252,5635,5635,5635,6053,5635,6255,6086,6855,6868,5635,6399,5635,6614,5635,5635,6273,5635,5635,5638,5964,6676,5635,5635,5636,6988,6994,5635,5678,5635,6081,5635,5819,5972,5635,5635,5635,6082,6085,5635,6281,5635,5635,5640,6573,6802,5206,6295,5635,5635,7007,7016,7041,5635,7144,6290,6803,5207,5207,6296,5635,5635,5635,6084,6291,5771,6995,5635,5635,7034,5635,5635,7152,5635,5635,7253,5635,5635,6954,5657,5635,7252,6400,5635,6670,5635,6259,6209,5635,5639,6347,5635,5635,5635,6088,6309,6301,6325,6329,5635,6310,6302,6326,6079,5635,6982,5907,5635,6258,6081,6311,6801,6327,5635,5635,7257,6960,6255,6086,6856,6869,5635,5635,5640,7027,6400,5635,6735,7277,6693,5635,6671,5635,5635,5320,6310,6323,6327,6324,6328,5635,5635,5635,6089,5149,5153,6086,6866,6567,5635,5635,7287,6616,5635,6879,7278,5582,5635,6769,6564,5635,7252,6400,5288,6079,6695,6669,5635,5635,6201,5635,6344,5635,5635,5674,5805,6351,6357,5635,5635,5676,5635,6820,7179,6366,6329,5635,5260,5635,5635,5635,6122,6399,5635,5635,6671,5635,6259,6365,7255,5635,6021,5635,5635,5315,5167,5635,5635,5635,6247,6247,6619,5635,5635,5635,6255,6086,5635,6620,5635,5635,5635,6256,5219,5635,5635,6619,5904,5748,6771,6620,6618,5635,7096,6618,6618,6618,6770,5901,5511,6370,5635,5635,7333,5721,5635,7255,7154,5635,5635,7349,5518,7319,6209,6384,5635,6372,5985,6719,6390,6396,6404,6408,6411,6413,6417,6418,6418,6422,6424,6425,6429,6429,6429,6429,6430,6429,5635,5635,5755,5635,5635,5635,5888,5635,6604,7326,5635,5635,5635,6616,5635,6692,5635,5824,6457,6568,5635,6852,5635,6948,5635,6949,6455,5635,5635,5635,6261,6260,5635,6462,6456,5635,5637,5640,6675,7115,5635,6467,5635,5658,6453,5635,6463,5635,5635,5635,6262,7328,5635,5635,5635,6267,5277,6615,5635,5635,5755,5818,5635,6819,5635,5635,6494,6473,5635,6477,5635,5638,6346,5635,5635,7275,5635,5635,7287,5635,5635,5635,6480,5635,6498,6507,6513,6518,6508,6514,5635,5635,6523,5635,5635,5635,6315,5635,6540,5635,5635,5783,5635,5635,6554,5635,5635,5635,6339,5635,6263,6549,6503,5635,6547,5176,6553,5635,5635,5635,6334,5635,6558,7327,5635,5635,5784,5635,6578,5153,5635,5635,5635,6439,6088,6574,6579,5154,5635,5635,6583,5635,5635,5894,5810,5635,5635,5581,5635,5635,5635,5725,6054,5637,5635,5635,5900,5635,5635,5635,5904,5635,6088,6588,5153,5635,5638,6826,7252,6088,5148,5152,5635,5640,7087,6772,6084,6772,6084,5275,5635,6694,5904,6338,5277,6693,5635,5825,5635,6821,6600,5635,5640,7334,5907,5635,5635,6822,6224,5635,5644,5648,6102,5635,6821,6223,5635,5635,5635,6479,6762,5824,5635,5321,5635,5647,7054,7038,5635,7255,5637,5635,5654,5635,5635,5222,7284,5635,5635,5276,5635,5277,6695,6337,6260,5635,5635,5635,5256,6220,5154,5635,5635,5635,6399,5638,6692,5635,5635,5923,6072,5638,7024,6610,5635,5674,6141,5635,5635,6854,5635,5635,6878,5693,5699,7255,6216,6771,5635,5677,5635,5635,5635,5587,5911,6624,5628,6630,6638,6641,6645,6648,6656,6656,6656,6656,6651,6652,6652,6652,6660,6660,6660,6660,6662,6666,5635,5635,5635,6566,6048,5635,5622,5635,5686,5838,5635,5686,6053,5635,5635,5635,5985,5635,5589,6694,5939,6617,5912,6686,5635,5635,5944,5411,6052,6691,5635,5635,6756,6701,5635,5635,5635,6567,6125,6772,5635,5635,5987,5635,5635,6723,6729,7278,6695,6734,5635,5635,5991,5605,6749,5635,5635,5635,6615,5635,5635,5635,5645,5649,5635,6480,6763,6750,5635,6764,5607,5635,5635,5635,5835,5635,6717,5635,5635,6026,6031,5608,5635,6730,6143,6483,6487,6568,5635,5635,6486,5734,5635,5635,6133,6881,5635,5635,6133,7095,5635,5635,5635,6816,6204,6203,5635,5635,6134,6772,5909,5635,5635,5635,6620,5635,5597,6879,6795,5635,5635,5635,6685,6480,6484,6488,5635,5635,6616,6615,5635,5635,6204,6202,5274,6126,5635,5635,6220,6224,7347,6777,5635,5635,6230,5635,5635,6230,6485,5733,5635,5635,6054,5204,5635,7269,6772,5635,5687,5952,5635,5713,5635,5635,5276,6615,5635,6277,5635,5635,6619,6809,5734,5635,5635,6246,6247,6247,6247,6247,5270,5502,7114,5635,7254,5635,5674,5805,5798,6276,5748,5635,5635,6255,6247,6247,6247,5269,5502,5502,5835,6053,5635,5635,6318,6568,5635,7347,7114,5635,5635,6819,5321,5635,6845,5635,5635,5635,6716,5635,6974,5635,5635,6333,5635,6256,5317,6285,5635,5635,6966,5635,5635,6965,5635,5635,6257,5635,6961,6053,5635,5635,6967,5635,6255,5589,6617,5635,5753,5635,5635,5323,5635,6113,5634,5904,5635,6256,6961,6053,6255,6965,6965,6965,5635,6967,6965,5635,6965,5635,6258,6967,6965,7286,6269,5741,5741,5741,6053,6849,5635,5635,5635,6754,5635,7342,6334,5635,5780,6568,5635,5492,6542,6492,5635,5635,5635,6307,6311,6324,6936,6083,6873,5319,6886,6892,6890,6896,6900,6900,6902,6908,6906,6906,6908,6916,6915,6912,6920,6921,6921,6921,6921,6925,6928,5208,5635,5635,6855,6526,6380,5635,5635,6340,5993,6565,5635,5635,6617,5635,5635,5635,6706,5635,6239,5635,5635,6364,7154,5635,6242,5635,5635,5637,5965,5635,6953,5635,5635,6376,5635,5635,6958,5635,5635,6443,5589,7258,5635,5635,5635,6760,5635,6971,5635,6979,6987,6993,6329,5635,5832,6260,6680,6878,5791,6543,5635,5836,5635,5635,6284,5635,5635,6567,5635,6616,5635,5635,6469,6482,6999,5635,5639,5635,5635,5635,6461,5725,5635,5635,5635,6768,7012,7040,5635,5635,6547,6501,7041,5635,5635,5635,6769,5635,7008,7017,7042,5635,5848,5748,6255,5483,5635,5635,6245,6247,5635,7021,5933,6053,5904,6935,6879,5792,5644,5648,7055,7046,5645,7052,7056,7047,5646,7053,7057,7048,5724,5635,5635,5635,6783,6486,5734,5820,5635,5904,6935,6879,5748,6879,5793,5635,6566,5635,5757,5635,5635,5724,5756,5635,5277,5635,5635,5635,7176,7094,7061,7048,5635,5635,6548,6502,5649,6103,7067,7048,5635,7061,6564,5635,5635,6568,5635,5646,5650,7066,7124,5635,7065,7123,5635,5635,6584,5635,5635,6987,7154,5635,5881,5635,5635,6365,5635,6878,5318,6615,5635,5899,5962,5635,5602,5635,5635,5188,5635,7077,5635,5635,5635,6794,5647,7076,7069,5635,5900,6053,5726,5646,7075,7068,5635,5635,6879,5635,5635,5635,6799,6809,5635,7176,7081,5635,5901,7114,6434,5635,5635,7176,7089,5635,5902,5511,6435,5635,5635,5757,5274,5635,6088,7088,5635,5902,5635,5635,5635,6800,5635,6088,7154,5635,5903,5635,5906,6616,6614,5820,5904,6880,5635,5908,5635,5635,5924,7029,6033,5640,7178,5635,5635,6614,5635,5635,6088,7093,5635,5908,6605,7327,7177,7095,5635,5901,5902,5635,5640,6218,5821,6880,5635,5635,6615,6616,5635,5635,6259,5635,5635,6259,5635,5903,5635,5635,5635,5745,5640,7178,6772,5238,5635,7100,6880,5635,5913,6687,5635,6700,5635,5635,6135,5635,5635,6681,5635,5635,6820,7094,5635,5928,5635,5635,5608,6878,5635,7100,6881,5635,7115,5635,5635,7254,7106,5635,5635,5635,6821,6073,6820,7275,5635,5635,5635,6820,6309,6133,7095,6880,5635,5943,5410,5949,5635,5635,5635,7252,5635,5635,7120,5635,5635,7273,7120,6878,5635,5635,6693,5635,5635,5635,7274,5635,5635,6695,5635,5635,5819,5809,5635,7138,5635,6963,5905,6209,5635,6961,5635,5979,6253,5635,5635,7002,6744,5798,5240,5635,6021,5499,7109,5673,5635,7142,5635,6962,6021,6964,6625,6022,7174,7271,7149,7162,7166,7170,7183,7187,7191,7194,7202,7197,7198,7206,7208,7212,7218,7217,7213,7222,7232,7232,7225,7231,7227,7236,7240,5635,5985,5837,5635,5723,5635,5635,6602,6606,7128,7132,5904,5635,5910,5481,7100,7241,5635,5635,6695,5824,6360,5635,5635,5635,6853,6259,6079,5635,6529,7245,7247,7251,5635,5986,5635,5635,5763,6743,5702,5776,5635,7263,5635,5635,6725,5492,7283,7255,5635,5635,6737,5769,7291,5635,7292,5635,5997,6003,6009,6015,5635,7296,7130,5635,5998,6004,6010,5907,5903,5635,5635,6737,6741,5635,6086,5641,5635,5635,5635,7100,5635,5635,6738,6742,6879,5635,7114,5635,7252,5635,5635,6853,6855,5635,6020,5635,5635,5635,7254,5635,6337,5635,5635,6770,5635,6772,5635,6086,6084,5635,5635,6259,5635,7301,6386,5635,5635,5635,6878,5635,5512,7309,6633,5635,6047,5635,5635,5635,7256,7310,6634,5635,5635,5635,6882,5635,7307,7311,6338,6853,5320,5635,5640,7334,5722,5635,5635,6821,6126,5635,5635,6021,6772,7128,7132,5258,5635,5635,5635,6966,5642,5635,5635,7101,5635,6850,5635,6336,5635,6260,5635,6261,7102,5985,6334,5635,5635,5644,7073,7315,7319,6338,5635,6080,5906,5903,7316,6788,5635,5635,6772,5635,6084,7095,5635,5635,5686,5635,7317,6789,5635,5635,6813,5635,7318,6790,6770,6769,5635,5635,6619,5635,6769,6820,5635,5635,6881,7115,5635,6852,6855,5635,5635,5635,6845,5635,6718,6694,5635,5635,5635,6942,6786,6790,5635,5635,5635,6967,5635,5635,6786,6790,6770,6769,7254,5635,7101,5635,7297,7132,5258,7113,5635,5635,6819,5635,5635,5635,5166,6379,5048,5635,5635,6821,6074,6078,5635,5635,5635,5978,7350,5519,7320,5635,6081,5678,6626,7319,5635,5635,5635,7006,7348,5517,6786,6617,5635,6772,6771,5635,6084,6303,6488,5635,7324,5906,5903,5635,6085,5641,5635,6084,6352,5635,5635,5635,6231,5047,5635,5635,5635,7033,5635,7348,7335,5903,5635,6879,5635,6851,5678,5909,6855,6864,5635,7340,5635,5635,6829,5635,6087,5635,6881,5635,6852,6819,6850,5635,5635,6261,7332,7336,5635,5635,5635,7145,5635,6232,5635,5635,6833,5635,5274,5635,5635,5635,7177,0,0,1075838976,2097152,16384,0,0,0,62,64,4194560,4196352,270532608,2097152,2097152,268435456,4194432,541065216,541065216,541065216,541065216,4194304,4194304,4196352,-1606418432,-1606418432,541065216,541065216,4194304,4198144,541065216,541065216,-2143289344,-2143289344,8425488,4194304,4194304,4194304,541065216,37748736,4194304,541065216,4194304,4194304,4194432,37748736,-1606418432,742391808,239075328,775946240,171966464,171966464,171966464,171966464,239075328,171966464,775946240,239075328,239075328,775946240,775946240,775946240,4718592,64,4718592,2097216,4720640,4194400,4194368,-2142763008,541589504,4194368,541589504,541589504,541065280,4194368,4194368,541065312,541065280,-2143289280,4194368,-2143285440,-1605890240,-2142761152,-2109731008,-1606414528,-2143285440,-2143285440,-2143285440,-1605890240,-1606414528,-1606414528,-2143285440,-2143285408,-2143285440,-2143285440,-2142761152,776470528,-1908404416,775946304,775946304,-1908404416,2,4,8,16,512,1024,16777216,33554432,402653184,0,0,0,-1979711488,0,8192,8392704,0,2147483648,16777216,0,0,1536,32768,0,0,128,196608,0,16384,1536,1792,8192,16384,131072,131072,0,0,64,1536,32768,96,96,0,0,2147483648,16,0,0,1536,64,524352,524352,524352,524352,0,524288,64,64,262144,1048576,4194304,16777216,33554432,67108864,134217728,536870912,0,128,128,128,128,2048,1536,1024,0,0,0,15,208,15360,96,96,0,64,64,16392,64,1048576,128,128,0,256,8192,0,8192,0,33554432,0,1024,1024,0,0,2147483648,65536,32,96,96,96,96,64,0,8388608,4096,0,0,8192,2097152,2147483648,96,524352,524352,524352,524288,524288,524288,64,64,64,0,0,0,8,0,0,0,11,64,64,128,2048,0,4096,0,0,131072,128,64,64,64,96,96,96,524352,524352,524288,64,524288,64,64,96,524352,0,0,0,18,33554432,64,96,524352,524288,0,64,0,2097152,0,0,4,16,0,0,16,8388608,0,0,4096,536870912,1073741824,0,4,32,32,4,1073872896,32,40,96,160,1056,262176,1048608,2097184,32,32,32,524320,32,1073872896,40,262176,1120,96,4195360,6291488,2097184,2097184,4194336,4194336,536870944,32,32,40,262176,32,32,40,262184,1120,96,6292512,4195360,56,262184,40,262184,40,0,4,262184,40,40,40,40,4195104,6292512,4196128,32,262184,34,34,40,48,42,32,32,327155712,34,1056,1056,32,96,32,32,41,262184,32,64,512,2048,16384,67108864,42,1056,4194336,32,32,32,32,56,2098208,42,4457568,-326784344,-322851160,-322851160,-322698144,-322698144,-322698144,-322698144,-322695456,-322695456,-322695456,-322695456,-322597152,-320598176,-322597152,-322597144,-321548576,-320598168,-321548568,-322597144,32,0,96,32,42,224,40,262176,42,106,293601323,293601323,293863467,293699627,293617707,293716011,297896507,293964347,293702267,297896507,293702203,293702203,293702203,293702203,293964347,297896507,297896507,-322597144,-322588952,-321548568,-322588952,-37744981,-322597144,-321548568,-37482773,0,131072,1048576,2097152,0,0,-1744830464,0,-1744830464,0,318767104,0,0,0,48,0,1,285212672,0,0,2048,64,64,64,64,32,96,0,32,64,65536,0,0,1,2,12,16,64,128,1024,2048,4096,0,2,65536,262656,5242880,-1842937664,201330721,201330721,-2111369023,-2111369023,-2111369023,-2111369023,-2111369023,-2111369023,-2111360575,-2111369023,-2111369023,-1977151295,-1977151293,-1910042431,-1893265183,-2111368509,-1893265183,-1893265183,-1893265183,-1893265183,-2111368509,-1893265183,-1893265183,-553689472,-553656704,-553689472,-553689472,-553656704,-553656704,-553656704,-553656704,-553656704,-553656704,-553656672,-553656672,-553656672,-553656672,-553656672,-553656670,-553656608,-553656672,-553656664,-553656664,-553656672,-553656670,-553656672,-553656672,-536912159,-553656671,-536879391,-536879391,-536879391,0,0,2048,4194304,0,0,0,262656,0,0,0,536870912,1073741824,458880,2097152,-1845493760,0,0,4096,2097152,0,0,1,4096,201326592,805306368,-1073741824,0,0,0,24576,471424,0,-2113929216,0,0,0,220,-1912602624,18874368,463488,0,0,9216,0,0,16384,8192,8192,32768,2048,2048,2048,2048,0,0,0,0,1,0,0,0,2,0,0,0,3,4,16,224,256,512,32768,0,104e4,15728640,-570425344,0,0,0,254,4194304,16777216,33554432,268435456,536870912,2147483648,0,0,-570425344,32505856,2097152,301989888,0,0,0,512,0,0,0,256,12288,0,167772160,234881024,0,0,16384,32768,50331648,0,128,512,7168,16384,32768,196608,16384,196608,786432,1048576,2097152,4194304,8388608,33554432,2097152,4194304,8388608,503316480,1073741824,2147483648,0,4096,201326592,0,0,0,167772160,234881024,128,1024,4096,8192,0,0,8192,268435456,0,0,4194304,8388608,234881024,268435456,1073741824,2147483648,0,0,1048576,4194304,33554432,268435456,268435456,268435456,268435456,0,128,131072,2097152,0,0,0,520,0,201326592,0,0,0,1073741824,0,0,0,134217728,128,512,3072,16384,32768,3072,16384,131072,524288,1048576,4194304,16777216,33554432,201326592,268435456,1073741824,2147483648,1048576,4194304,268435456,536870912,131072,0,0,131072,0,131072,2097152,0,0,16384,2097152,0,0,2097152,4194304,134217728,2147483648,0,0,0,512,3072,131072,524288,1048576,131072,524288,4194304,2147483648,0,0,0,16384,16384,18432,0,0,0,2048,0,0,4096,1048576,0,0,67108864,1073741824,2147483648,0,0,29696,0,0,32768,50331648,268435456,2147483648,0,0,1,1,18952,1024,0,65,1024,0,4096,32768,0,1024,18952,65,268436480,2101248,524288,1024,19017,-1744550912,8388624,8388624,8388624,-1739308032,-1739308032,-1739308032,-1739308032,-1736162288,-1736162288,-1736162288,-1736162288,-7868466,-7868466,-7868466,-7868466,-7868450,-7868450,-7868450,0,0,0,1610612736,1024,0,2101248,0,0,262144,65536,262144,262144,0,0,2048,131072,524288,585,0,0,0,8192,0,0,0,4096,0,0,0,32,0,0,0,44,64576,0,1024,278528,-1744830464,5521408,-1744830464,0,0,2,12,64,0,1040,8667136,-1744830464,-67108864,0,0,0,9728,0,2014,0,0,0,13312,0,1,4,8,32,64,16384,67108864,134217728,268435456,2147483648,0,0,520,1024,0,0,2,16,0,278528,0,0,2,67108864,16384,0,5242880,2147483648,0,0,327680,0,0,328192,0,0,0,118,577408,22020096,1040,0,0,0,16384,0,67108864,1998,518144,8388608,50331648,201326592,805306368,0,2,204,768,1024,10240,1024,10240,16384,32768,458752,8388608,458752,8388608,50331648,67108864,134217728,805306368,134217728,805306368,1073741824,2147483648,0,220,0,0,0,32768,33554436,2,12,192,768,1024,1024,2048,8192,16384,32768,458752,32768,458752,50331648,67108864,134217728,134217728,805306368,1073741824,0,0,208,0,0,0,34816,67108864,268435456,0,0,0,65536,458752,50331648,67108864,805306368,1073741824,458752,50331648,67108864,536870912,1073741824,0,0,4,8,64,128,512,2048,196608,262144,33554432,536870912,0,0,0,262144,0,0,0,64,0,0,2,4,8,262144,0,1048576,4194304,0,0,4,8,128,512,1024,32768,65536,131072,2048,196608,262144,50331648,536870912,1073741824,1,4,8,512,2048,131072,33554432,536870912,0,0,4,8,512,2048,8192,32768,8388608,0,524288,262144,0,0,4,64,128,8388608,0,512,2048,131072,536870912,0,0,4194304,8192,2097152,268435456,2147483648,16,33554432,-2147418112,537395200,537395200,0,4196352,537427968,4196352,0,537395200,4196352,4196352,276901888,8540160,-1606418432,32768,537395200,4196352,1082130432,51380242,51380242,51380242,22022147,22349827,22349827,22349827,22366219,22349843,22349827,22349827,22366219,22349827,55576594,55576594,55576594,55576594,1062785014,324012114,55576594,55576594,55576594,1062785014,1062785014,1062785014,1062785014,0,0,0,329728,557056,0,0,0,393216,0,0,17825792,33554432,0,0,0,462976,3,22020096,0,0,4,134217728,0,0,8,16,512,402653184,0,0,346112,19,0,0,8,64,0,0,0,82,301989888,0,0,393232,0,0,393240,0,0,524288,524288,524288,524288,0,577408,22020096,1040187392,0,0,0,524288,0,0,0,16,0,0,0,6,16384,32768,268435456,0,268435456,0,1048576,16777216,33554432,0,0,524288,1048576,2097152,0,80,268435456,0,0,524288,536870912,0,112,128,256,3584,16384,32768,134217728,805306368,0,0,0,1007232,256,1536,2048,16384,32768,262144,0,4,16,32,64,128,256,1536,0,16,33554432,0,0,1048576,4194304,2147483648,1536,16384,32768,524288,4194304,33554432,134217728,536870912,0,0,0,32768,0,0,0,1048576,0,0,0,1998,518144,1,0,0,65536,262144,0,0,256,1536,32768,524288,0,0,4194304,134217728,536870912,0,0,1114112,1073741824,16,64,1536,32768,524288,4194304,67174400,33554432,1073741824,0,67174400,0,0,16384,1073741824,0,0,2097152,0,1572864,0,1073741824,16384,0,4194304,0,8,0,131072,0,131072,0,8,131072,131072,134217728,4096,0,8,0,8,131072,4194304,-2146430976,131072,134217736,16908320,547389524,547389524,555909216,555909216,555909216,555909216,564297840,564297844,564297844,564297844,564297844,564297844,564297844,1001055742,1001056254,1001055742,1001055742,1001056254,1001056254,1001056254,1001056254,1001056254,1001055742,1,0,67108864,1073741824,0,84,2129920,8388608,536870912,0,96,2260992,0,0,2097152,4194304,8388608,134217728,268435456,1280,2809856,58720256,939524096,0,0,0,1052672,0,254,1792,2809856,58720256,939524096,0,939524096,0,0,12,16,32768,2097152,8388608,536870912,0,163840,0,0,12,32,64,1024,2048,57344,262144,50331648,268435456,1073741824,2147483648,0,52,0,0,20,64,62,64,128,1280,8192,16384,131072,524288,58720256,24576,163840,524288,2097152,58720256,402653184,58720256,402653184,536870912,0,0,64,128,1792,24576,163840,4,16,8388608,0,0,2113536,0,0,3735552,0,0,8388608,8388608,4096,4096,4096,4096,0,48,25165824,0,0,0,1572864,0,6,56,128,1792,8192,524288,58720256,402653184,0,0,32,128,256,262144,262144,1048576,1073741824,0,0,0,2147483648,0,0,0,-2147483646,4,24,32,128,1792,1280,8192,524288,16777216,33554432,0,262144,33554432,134217728,0,8,16,1024,16777216,4194432,3145728,541065216,-2143289344,4194304,4194304,4194304,4194304,16,402653184,0,0,32,128,256,2048,262144,524288,4,16384,65536,67108864,0,0,0,131072,0,0,0,1024,0,0,32768,8192,0,2048,0,32,8192,3670016,2048,8192,196608,1048576,0,0,34816,9216,4096,4096,29696,29712,29712,29840,29712,29712,29840,536900624,4224144,144384,-754647956,-754647956,-754647956,-754647956,144384,144384,144384,144384,-754647940,-754647940,-754647940,-754647940,-754516884,-754647956,-754516884,-754516884,-754516884,0,0,8388608,1073741824,0,0,67108864,12,16384,0,65536,29824,0,0,0,3670016,44,64576,319029248,-1073741824,0,0,60,0,0,0,4194304,0,0,0,2014,0,319160320,0,0,0,5242880,0,4,8,256,512,2048,8192,16384,458752,50331648,0,524288,3145728,0,0,16384,8,0,28672,0,0,32,524288,0,16,0,128,0,12288,131072,0,0,128,512,3072,4096,16384,32768,131072,524288,1048576,2097152,4194304,262144,318767104,-1073741824,0,0,0,28,0,0,60,64576,28,32,64,1024,2048,61440,262144,318767104,24576,0,0,0,8388608,0,0,0,104e4,67108864,16384,0,65536,262144,1048576,0,8,64,2048,4096,8192,65536,131072,1048576,0,0,128,536870912,4194304,131072,0,0,64,2048,16384,32768,524288,1048576,4194304,134217728,2147483648,32768,262144,50331648,268435456,0,32768,8388608,0,0,16777216,16777216,0,0,0,4,8,16,2,67108864,0,65536,201326592,2147483648,0,0,1998,59238400,-67108864,0,524288,1048576,0,0,64,256,32768,50331648,268435456,0,0,1,256,0,0,0,16777216,0,0,256,0,8192,0,256,262144,2113536,2097152,135790592,0,256,8192,2097152,0,2147483648,0,32768,2097152,0,2147483648,5242880,0,0,0,128,0,0,0,208,131073,0,0,131073,0,135790592,131073,4,0,131073,393233,1610612736,1610612736,1610612736,393241,393241,393241,393241,805707793,805707793,1879449617,805708049,1879449617,1879449617,1879449617,1879449617,-483948553,-475559945,-475559945,-483948553,-483948553,-475559945,-483948553,-475559945,-483948553,-475559945,-475559945,-475559945,-475559945,-475559945,-215504905,-475559945,-207116297,-207116297,0,0,72,0,4096,4194304,32768,0,0,256,401424,805306368,0,0,112,25165824,0,1879048192,0,0,116,0,0,401680,0,0,0,32505856,7,19367920,-503316480,0,0,0,33554432,0,0,33554432,268435456,0,0,0,19376112,-234881024,0,0,50331648,268435456,0,27764720,-234881024,0,0,512,2048,0,0,1,2,4,32,524288,1048576,524288,1048576,33554432,67108864,134217728,805306368,0,24,0,0,512,3072,16384,0,7,16,480,1536,32768,1536,32768,65536,2490368,32768,65536,10878976,16777216,33554432,0,9728,268435456,0,0,67108866,12,64,128,512,1024,2048,0,16,393216,0,0,393216,2097152,16777216,33554432,536870912,-1073741824,0,0,10485760,16777216,33554432,1073741824,2147483648,0,16,224,256,1536,32768,65536,393216,10485760,16777216,131072,262144,2097152,16777216,32768,131072,262144,2097152,8388608,16777216,0,0,4,16,224,512,32768,131072,2097152,16777216,192,32768,0,0,512,4096,4,16,192,32768,8388608,0,16,64,128,8388608,0,0,1024,0,4,0,0,0,3145728,0,4,128,0,0,268435456,2,0,0,65536,0,0,0,65,0,64,128,8388608,16777216,1073741824,0,0,512,2048,32768,262144,524288,8388608,0,0,512,131072,524288,8388608,33554432,2147483648,33554432,33554432,0,2,4,112,128,-2113929216,100663296,100663296,2,4,524288,134217728,0,0,8,512,2048,196608,33554436,0,0,33554436,4224,4224,0,65536,100663296,4224,65536,65536,262144,33554432,0,2,4,16,64,128,256,0,4224,65536,16777216,262400,65536,4224,-1072627712,805306384,-1342177264,-1342177264,-1070006272,-1069989376,-1069989376,-1069989376,-258932720,-258932720,-258932720,-258932720,-1069989360,-1065795072,-1061600768,-1069989376,-225378288,-258932720,-258932720,-258932720,-225378288,1260767,1260767,34815199,1260767,1260767,1260767,1260767,34815199,1260767,34815199,34815199,34815199,1260767,1260767,169032927,1242774751,-1978450721,169032927,-1978450721,-1978450721,-1978450721,169032927,169032927,169032927,169032927,-225231649,-1173144353,-225231649,-225231649,-91013921,0,0,0,67108864,0,3751936,0,0,528,7946240,12140544,0,0,0,134217728,0,0,0,7,27756528,-503316480,0,0,9502720,1610612736,0,0,486539264,0,0,2048,32768,0,0,64,128,0,0,536870912,0,0,208,15360,1245184,0,0,0,268435456,0,0,0,15,9633792,0,0,0,32,512,2048,262144,0,3670016,0,0,1040,1040,1,2,12,80,128,7168,8192,196608,16,64,128,3072,4096,8192,65536,131072,0,0,32,262144,524288,33554432,134217728,0,0,0,2,8,64,128,1024,4096,0,0,262144,0,4096,4194304,1,1,1,0,0,2,8,16,64],r.TOKEN=[\"(0)\",\"PragmaContents\",\"DirCommentContents\",\"DirPIContents\",\"CDataSection\",\"Wildcard\",\"EQName\",\"URILiteral\",\"IntegerLiteral\",\"DecimalLiteral\",\"DoubleLiteral\",\"StringLiteral\",\"PredefinedEntityRef\",\"'\\\"\\\"'\",\"EscapeApos\",\"ElementContentChar\",\"QuotAttrContentChar\",\"AposAttrContentChar\",\"PITarget\",\"NCName\",\"QName\",\"S\",\"S\",\"CharRef\",\"CommentContents\",\"EOF\",\"'!'\",\"'!='\",\"'\\\"'\",\"'#'\",\"'#)'\",\"'$'\",\"'$$'\",\"'%'\",\"''''\",\"'('\",\"'(#'\",\"'(:'\",\"')'\",\"'*'\",\"'*'\",\"'+'\",\"','\",\"'-'\",\"'-->'\",\"'.'\",\"'..'\",\"'/'\",\"'//'\",\"'/>'\",\"':'\",\"':)'\",\"'::'\",\"':='\",\"';'\",\"'<'\",\"'<!--'\",\"'</'\",\"'<<'\",\"'<='\",\"'<?'\",\"'='\",\"'>'\",\"'>='\",\"'>>'\",\"'?'\",\"'?>'\",\"'@'\",\"'NaN'\",\"'['\",\"']'\",\"'after'\",\"'all'\",\"'allowing'\",\"'ancestor'\",\"'ancestor-or-self'\",\"'and'\",\"'any'\",\"'append'\",\"'array'\",\"'as'\",\"'ascending'\",\"'at'\",\"'attribute'\",\"'base-uri'\",\"'before'\",\"'boundary-space'\",\"'break'\",\"'by'\",\"'case'\",\"'cast'\",\"'castable'\",\"'catch'\",\"'check'\",\"'child'\",\"'collation'\",\"'collection'\",\"'comment'\",\"'constraint'\",\"'construction'\",\"'contains'\",\"'content'\",\"'context'\",\"'continue'\",\"'copy'\",\"'copy-namespaces'\",\"'count'\",\"'decimal-format'\",\"'decimal-separator'\",\"'declare'\",\"'default'\",\"'delete'\",\"'descendant'\",\"'descendant-or-self'\",\"'descending'\",\"'diacritics'\",\"'different'\",\"'digit'\",\"'distance'\",\"'div'\",\"'document'\",\"'document-node'\",\"'element'\",\"'else'\",\"'empty'\",\"'empty-sequence'\",\"'encoding'\",\"'end'\",\"'entire'\",\"'eq'\",\"'every'\",\"'exactly'\",\"'except'\",\"'exit'\",\"'external'\",\"'false'\",\"'first'\",\"'following'\",\"'following-sibling'\",\"'for'\",\"'foreach'\",\"'foreign'\",\"'from'\",\"'ft-option'\",\"'ftand'\",\"'ftnot'\",\"'ftor'\",\"'function'\",\"'ge'\",\"'greatest'\",\"'group'\",\"'grouping-separator'\",\"'gt'\",\"'idiv'\",\"'if'\",\"'import'\",\"'in'\",\"'index'\",\"'infinity'\",\"'inherit'\",\"'insensitive'\",\"'insert'\",\"'instance'\",\"'integrity'\",\"'intersect'\",\"'into'\",\"'is'\",\"'item'\",\"'json'\",\"'json-item'\",\"'jsoniq'\",\"'key'\",\"'language'\",\"'last'\",\"'lax'\",\"'le'\",\"'least'\",\"'let'\",\"'levels'\",\"'loop'\",\"'lowercase'\",\"'lt'\",\"'minus-sign'\",\"'mod'\",\"'modify'\",\"'module'\",\"'most'\",\"'namespace'\",\"'namespace-node'\",\"'ne'\",\"'next'\",\"'no'\",\"'no-inherit'\",\"'no-preserve'\",\"'node'\",\"'nodes'\",\"'not'\",\"'null'\",\"'object'\",\"'occurs'\",\"'of'\",\"'on'\",\"'only'\",\"'option'\",\"'or'\",\"'order'\",\"'ordered'\",\"'ordering'\",\"'paragraph'\",\"'paragraphs'\",\"'parent'\",\"'pattern-separator'\",\"'per-mille'\",\"'percent'\",\"'phrase'\",\"'position'\",\"'preceding'\",\"'preceding-sibling'\",\"'preserve'\",\"'previous'\",\"'processing-instruction'\",\"'relationship'\",\"'rename'\",\"'replace'\",\"'return'\",\"'returning'\",\"'revalidation'\",\"'same'\",\"'satisfies'\",\"'schema'\",\"'schema-attribute'\",\"'schema-element'\",\"'score'\",\"'select'\",\"'self'\",\"'sensitive'\",\"'sentence'\",\"'sentences'\",\"'skip'\",\"'sliding'\",\"'some'\",\"'stable'\",\"'start'\",\"'stemming'\",\"'stop'\",\"'strict'\",\"'strip'\",\"'structured-item'\",\"'switch'\",\"'text'\",\"'then'\",\"'thesaurus'\",\"'times'\",\"'to'\",\"'treat'\",\"'true'\",\"'try'\",\"'tumbling'\",\"'type'\",\"'typeswitch'\",\"'union'\",\"'unique'\",\"'unordered'\",\"'updating'\",\"'uppercase'\",\"'using'\",\"'validate'\",\"'value'\",\"'variable'\",\"'version'\",\"'weight'\",\"'when'\",\"'where'\",\"'while'\",\"'wildcards'\",\"'window'\",\"'with'\",\"'without'\",\"'word'\",\"'words'\",\"'zero-digit'\",\"'{'\",\"'{{'\",\"'{|'\",\"'|'\",\"'||'\",\"'|}'\",\"'}'\",\"'}}'\"]},{}],\"/node_modules/xqlint/lib/parsers/XQueryParser.js\":[function(e,t,n){var r=n.XQueryParser=function i(e,t){function r(e,t){Vl=t,Ql=e,Gl=e.length,s(0,0,0)}function s(e,t,n){Dl=t,Pl=t,Hl=e,Bl=t,jl=n,Fl=0,Zl=n,Ul=-1,$l={},Vl.reset(Ql)}function o(){Vl.startNonterminal(\"Module\",Pl);switch(Hl){case 274:Ll(198);break;default:_l=Hl}(_l==64274||_l==134930)&&u(),kl(274);switch(Hl){case 182:Ll(193);break;default:_l=Hl}switch(_l){case 94390:Nl(),a();break;default:Nl(),Ra()}Vl.endNonterminal(\"Module\",Pl)}function u(){Vl.startNonterminal(\"VersionDecl\",Pl),Sl(274),kl(116);switch(Hl){case 125:Sl(125),kl(17),Sl(11);break;default:Sl(263),kl(17),Sl(11),kl(109),Hl==125&&(Sl(125),kl(17),Sl(11))}kl(28),Nl(),c(),Vl.endNonterminal(\"VersionDecl\",Pl)}function a(){Vl.startNonterminal(\"LibraryModule\",Pl),f(),kl(138),Nl(),l(),Vl.endNonterminal(\"LibraryModule\",Pl)}function f(){Vl.startNonterminal(\"ModuleDecl\",Pl),Sl(182),kl(61),Sl(184),kl(248),Nl(),Ia(),kl(29),Sl(60),kl(15),Sl(7),kl(28),Nl(),c(),Vl.endNonterminal(\"ModuleDecl\",Pl)}function l(){Vl.startNonterminal(\"Prolog\",Pl);for(;;){kl(274);switch(Hl){case 108:Ll(213);break;case 153:Ll(201);break;default:_l=Hl}if(_l!=42604&&_l!=43628&&_l!=50284&&_l!=53356&&_l!=54380&&_l!=55916&&_l!=72300&&_l!=93337&&_l!=94316&&_l!=104044&&_l!=113772&&_l!=115353)break;switch(Hl){case 108:Ll(178);break;default:_l=Hl}if(_l==55916){_l=Kl(0,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{_(),_l=-1}catch(a){_l=-2}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(0,Pl,_l)}}switch(_l){case-1:Nl(),M();break;case 94316:Nl(),O();break;case 153:Nl(),C();break;case 72300:Nl(),D();break;default:Nl(),h()}kl(28),Nl(),c()}for(;;){kl(274);switch(Hl){case 108:Ll(210);break;default:_l=Hl}if(_l!=16492&&_l!=48748&&_l!=51820&&_l!=74348&&_l!=79468&&_l!=82540&&_l!=101996&&_l!=131692&&_l!=134252)break;switch(Hl){case 108:Ll(175);break;default:_l=Hl}switch(_l){case 51820:Nl(),R();break;case 101996:Nl(),Q();break;default:Nl(),P()}kl(28),Nl(),c()}Vl.endNonterminal(\"Prolog\",Pl)}function c(){Vl.startNonterminal(\"Separator\",Pl),Sl(53),Vl.endNonterminal(\"Separator\",Pl)}function h(){Vl.startNonterminal(\"Setter\",Pl);switch(Hl){case 108:Ll(172);break;default:_l=Hl}if(_l==55916){_l=Kl(1,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{v(),_l=-2}catch(a){try{Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),w(),_l=-6}catch(f){_l=-9}}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(1,Pl,_l)}}switch(_l){case 43628:p();break;case-2:d();break;case 42604:m();break;case 50284:g();break;case 104044:y();break;case-6:b();break;case 113772:ko();break;case 53356:E();break;default:T()}Vl.endNonterminal(\"Setter\",Pl)}function p(){Vl.startNonterminal(\"BoundarySpaceDecl\",Pl),Sl(108),kl(33),Sl(85),kl(133);switch(Hl){case 214:Sl(214);break;default:Sl(241)}Vl.endNonterminal(\"BoundarySpaceDecl\",Pl)}function d(){Vl.startNonterminal(\"DefaultCollationDecl\",Pl),Sl(108),kl(46),Sl(109),kl(38),Sl(94),kl(15),Sl(7),Vl.endNonterminal(\"DefaultCollationDecl\",Pl)}function v(){xl(108),kl(46),xl(109),kl(38),xl(94),kl(15),xl(7)}function m(){Vl.startNonterminal(\"BaseURIDecl\",Pl),Sl(108),kl(32),Sl(83),kl(15),Sl(7),Vl.endNonterminal(\"BaseURIDecl\",Pl)}function g(){Vl.startNonterminal(\"ConstructionDecl\",Pl),Sl(108),kl(41),Sl(98),kl(133);switch(Hl){case 241:Sl(241);break;default:Sl(214)}Vl.endNonterminal(\"ConstructionDecl\",Pl)}function y(){Vl.startNonterminal(\"OrderingModeDecl\",Pl),Sl(108),kl(68),Sl(203),kl(131);switch(Hl){case 202:Sl(202);break;default:Sl(256)}Vl.endNonterminal(\"OrderingModeDecl\",Pl)}function b(){Vl.startNonterminal(\"EmptyOrderDecl\",Pl),Sl(108),kl(46),Sl(109),kl(67),Sl(201),kl(49),Sl(123),kl(121);switch(Hl){case 147:Sl(147);break;default:Sl(173)}Vl.endNonterminal(\"EmptyOrderDecl\",Pl)}function w(){xl(108),kl(46),xl(109),kl(67),xl(201),kl(49),xl(123),kl(121);switch(Hl){case 147:xl(147);break;default:xl(173)}}function E(){Vl.startNonterminal(\"CopyNamespacesDecl\",Pl),Sl(108),kl(44),Sl(104),kl(128),Nl(),S(),kl(25),Sl(41),kl(123),Nl(),x(),Vl.endNonterminal(\"CopyNamespacesDecl\",Pl)}function S(){Vl.startNonterminal(\"PreserveMode\",Pl);switch(Hl){case 214:Sl(214);break;default:Sl(190)}Vl.endNonterminal(\"PreserveMode\",Pl)}function x(){Vl.startNonterminal(\"InheritMode\",Pl);switch(Hl){case 157:Sl(157);break;default:Sl(189)}Vl.endNonterminal(\"InheritMode\",Pl)}function T(){Vl.startNonterminal(\"DecimalFormatDecl\",Pl),Sl(108),kl(114);switch(Hl){case 106:Sl(106),kl(254),Nl(),Ha();break;default:Sl(109),kl(45),Sl(106)}for(;;){kl(180);if(Hl==53)break;Nl(),N(),kl(29),Sl(60),kl(17),Sl(11)}Vl.endNonterminal(\"DecimalFormatDecl\",Pl)}function N(){Vl.startNonterminal(\"DFPropertyName\",Pl);switch(Hl){case 107:Sl(107);break;case 149:Sl(149);break;case 156:Sl(156);break;case 179:Sl(179);break;case 67:Sl(67);break;case 209:Sl(209);break;case 208:Sl(208);break;case 275:Sl(275);break;case 116:Sl(116);break;default:Sl(207)}Vl.endNonterminal(\"DFPropertyName\",Pl)}function C(){Vl.startNonterminal(\"Import\",Pl);switch(Hl){case 153:Ll(126);break;default:_l=Hl}switch(_l){case 115353:k();break;default:A()}Vl.endNonterminal(\"Import\",Pl)}function k(){Vl.startNonterminal(\"SchemaImport\",Pl),Sl(153),kl(73),Sl(225),kl(137),Hl!=7&&(Nl(),L()),kl(15),Sl(7),kl(108);if(Hl==81){Sl(81),kl(15),Sl(7);for(;;){kl(103);if(Hl!=41)break;Sl(41),kl(15),Sl(7)}}Vl.endNonterminal(\"SchemaImport\",Pl)}function L(){Vl.startNonterminal(\"SchemaPrefix\",Pl);switch(Hl){case 184:Sl(184),kl(248),Nl(),Ia(),kl(29),Sl(60);break;default:Sl(109),kl(47),Sl(121),kl(61),Sl(184)}Vl.endNonterminal(\"SchemaPrefix\",Pl)}function A(){Vl.startNonterminal(\"ModuleImport\",Pl),Sl(153),kl(60),Sl(182),kl(90),Hl==184&&(Sl(184),kl(248),Nl(),Ia(),kl(29),Sl(60)),kl(15),Sl(7),kl(108);if(Hl==81){Sl(81),kl(15),Sl(7);for(;;){kl(103);if(Hl!=41)break;Sl(41),kl(15),Sl(7)}}Vl.endNonterminal(\"ModuleImport\",Pl)}function O(){Vl.startNonterminal(\"NamespaceDecl\",Pl),Sl(108),kl(61),Sl(184),kl(248),Nl(),Ia(),kl(29),Sl(60),kl(15),Sl(7),Vl.endNonterminal(\"NamespaceDecl\",Pl)}function M(){Vl.startNonterminal(\"DefaultNamespaceDecl\",Pl),Sl(108),kl(46),Sl(109),kl(115);switch(Hl){case 121:Sl(121);break;default:Sl(145)}kl(61),Sl(184),kl(15),Sl(7),Vl.endNonterminal(\"DefaultNamespaceDecl\",Pl)}function _(){xl(108),kl(46),xl(109),kl(115);switch(Hl){case 121:xl(121);break;default:xl(145)}kl(61),xl(184),kl(15),xl(7)}function D(){Vl.startNonterminal(\"FTOptionDecl\",Pl),Sl(108),kl(52),Sl(141),kl(81),Nl(),Fu(),Vl.endNonterminal(\"FTOptionDecl\",Pl)}function P(){Vl.startNonterminal(\"AnnotatedDecl\",Pl),Sl(108);for(;;){kl(170);if(Hl!=32&&Hl!=257)break;switch(Hl){case 257:Nl(),H();break;default:Nl(),B()}}switch(Hl){case 262:Nl(),F();break;case 145:Nl(),wl();break;case 95:Nl(),da();break;case 155:Nl(),xa();break;default:Nl(),Ta()}Vl.endNonterminal(\"AnnotatedDecl\",Pl)}function H(){Vl.startNonterminal(\"CompatibilityAnnotation\",Pl),Sl(257),Vl.endNonterminal(\"CompatibilityAnnotation\",Pl)}function B(){Vl.startNonterminal(\"Annotation\",Pl),Sl(32),kl(254),Nl(),Ha(),kl(171);if(Hl==34){Sl(34),kl(154),Nl(),oi();for(;;){kl(101);if(Hl!=41)break;Sl(41),kl(154),Nl(),oi()}Sl(37)}Vl.endNonterminal(\"Annotation\",Pl)}function j(){xl(32),kl(254),Ba(),kl(171);if(Hl==34){xl(34),kl(154),ui();for(;;){kl(101);if(Hl!=41)break;xl(41),kl(154),ui()}xl(37)}}function F(){Vl.startNonterminal(\"VarDecl\",Pl),Sl(262),kl(21),Sl(31),kl(254),Nl(),hi(),kl(147),Hl==79&&(Nl(),ds()),kl(106);switch(Hl){case 52:Sl(52),kl(266),Nl(),I();break;default:Sl(133),kl(104),Hl==52&&(Sl(52),kl(266),Nl(),q())}Vl.endNonterminal(\"VarDecl\",Pl)}function I(){Vl.startNonterminal(\"VarValue\",Pl),_f(),Vl.endNonterminal(\"VarValue\",Pl)}function q(){Vl.startNonterminal(\"VarDefaultValue\",Pl),_f(),Vl.endNonterminal(\"VarDefaultValue\",Pl)}function R(){Vl.startNonterminal(\"ContextItemDecl\",Pl),Sl(108),kl(43),Sl(101),kl(55),Sl(165),kl(147),Hl==79&&(Sl(79),kl(259),Nl(),ws()),kl(106);switch(Hl){case 52:Sl(52),kl(266),Nl(),I();break;default:Sl(133),kl(104),Hl==52&&(Sl(52),kl(266),Nl(),q())}Vl.endNonterminal(\"ContextItemDecl\",Pl)}function U(){Vl.startNonterminal(\"ParamList\",Pl),W();for(;;){kl(101);if(Hl!=41)break;Sl(41),kl(21),Nl(),W()}Vl.endNonterminal(\"ParamList\",Pl)}function z(){X();for(;;){kl(101);if(Hl!=41)break;xl(41),kl(21),X()}}function W(){Vl.startNonterminal(\"Param\",Pl),Sl(31),kl(254),Nl(),Ha(),kl(143),Hl==79&&(Nl(),ds()),Vl.endNonterminal(\"Param\",Pl)}function X(){xl(31),kl(254),Ba(),kl(143),Hl==79&&vs()}function V(){Vl.startNonterminal(\"FunctionBody\",Pl),J(),Vl.endNonterminal(\"FunctionBody\",Pl)}function $(){K()}function J(){Vl.startNonterminal(\"EnclosedExpr\",Pl),Sl(276),kl(266),Nl(),G(),Sl(282),Vl.endNonterminal(\"EnclosedExpr\",Pl)}function K(){xl(276),kl(266),Y(),xl(282)}function Q(){Vl.startNonterminal(\"OptionDecl\",Pl),Sl(108),kl(66),Sl(199),kl(254),Nl(),Ha(),kl(17),Sl(11),Vl.endNonterminal(\"OptionDecl\",Pl)}function G(){Vl.startNonterminal(\"Expr\",Pl),_f();for(;;){if(Hl!=41)break;Sl(41),kl(266),Nl(),_f()}Vl.endNonterminal(\"Expr\",Pl)}function Y(){Df();for(;;){if(Hl!=41)break;xl(41),kl(266),Df()}}function Z(){Vl.startNonterminal(\"FLWORExpr\",Pl),tt();for(;;){kl(173);if(Hl==220)break;Nl(),rt()}Nl(),rn(),Vl.endNonterminal(\"FLWORExpr\",Pl)}function et(){nt();for(;;){kl(173);if(Hl==220)break;it()}sn()}function tt(){Vl.startNonterminal(\"InitialClause\",Pl);switch(Hl){case 137:Ll(141);break;default:_l=Hl}switch(_l){case 16009:st();break;case 174:vt();break;default:bt()}Vl.endNonterminal(\"InitialClause\",Pl)}function nt(){switch(Hl){case 137:Ll(141);break;default:_l=Hl}switch(_l){case 16009:ot();break;case 174:mt();break;default:wt()}}function rt(){Vl.startNonterminal(\"IntermediateClause\",Pl);switch(Hl){case 137:case 174:tt();break;case 266:It();break;case 148:Rt();break;case 105:jt();break;default:Kt()}Vl.endNonterminal(\"IntermediateClause\",Pl)}function it(){switch(Hl){case 137:case 174:nt();break;case 266:qt();break;case 148:Ut();break;case 105:Ft();break;default:Qt()}}function st(){Vl.startNonterminal(\"ForClause\",Pl),Sl(137),kl(21),Nl(),ut();for(;;){if(Hl!=41)break;Sl(41),kl(21),Nl(),ut()}Vl.endNonterminal(\"ForClause\",Pl)}function ot(){xl(137),kl(21),at();for(;;){if(Hl!=41)break;xl(41),kl(21),at()}}function ut(){Vl.startNonterminal(\"ForBinding\",Pl),Sl(31),kl(254),Nl(),hi(),kl(164),Hl==79&&(Nl(),ds()),kl(158),Hl==72&&(Nl(),ft()),kl(150),Hl==81&&(Nl(),ct()),kl(122),Hl==228&&(Nl(),pt()),kl(53),Sl(154),kl(266),Nl(),_f(),Vl.endNonterminal(\"ForBinding\",Pl)}function at(){xl(31),kl(254),pi(),kl(164),Hl==79&&vs(),kl(158),Hl==72&&lt(),kl(150),Hl==81&&ht(),kl(122),Hl==228&&dt(),kl(53),xl(154),kl(266),Df()}function ft(){Vl.startNonterminal(\"AllowingEmpty\",Pl),Sl(72),kl(49),Sl(123),Vl.endNonterminal(\"AllowingEmpty\",Pl)}function lt(){xl(72),kl(49),xl(123)}function ct(){Vl.startNonterminal(\"PositionalVar\",Pl),Sl(81),kl(21),Sl(31),kl(254),Nl(),hi(),Vl.endNonterminal(\"PositionalVar\",Pl)}function ht(){xl(81),kl(21),xl(31),kl(254),pi()}function pt(){Vl.startNonterminal(\"FTScoreVar\",Pl),Sl(228),kl(21),Sl(31),kl(254),Nl(),hi(),Vl.endNonterminal(\"FTScoreVar\",Pl)}function dt(){xl(228),kl(21),xl(31),kl(254),pi()}function vt(){Vl.startNonterminal(\"LetClause\",Pl),Sl(174),kl(96),Nl(),gt();for(;;){if(Hl!=41)break;Sl(41),kl(96),Nl(),gt()}Vl.endNonterminal(\"LetClause\",Pl)}function mt(){xl(174),kl(96),yt();for(;;){if(Hl!=41)break;xl(41),kl(96),yt()}}function gt(){Vl.startNonterminal(\"LetBinding\",Pl);switch(Hl){case 31:Sl(31),kl(254),Nl(),hi(),kl(105),Hl==79&&(Nl(),ds());break;default:pt()}kl(27),Sl(52),kl(266),Nl(),_f(),Vl.endNonterminal(\"LetBinding\",Pl)}function yt(){switch(Hl){case 31:xl(31),kl(254),pi(),kl(105),Hl==79&&vs();break;default:dt()}kl(27),xl(52),kl(266),Df()}function bt(){Vl.startNonterminal(\"WindowClause\",Pl),Sl(137),kl(135);switch(Hl){case 251:Nl(),Et();break;default:Nl(),xt()}Vl.endNonterminal(\"WindowClause\",Pl)}function wt(){xl(137),kl(135);switch(Hl){case 251:St();break;default:Tt()}}function Et(){Vl.startNonterminal(\"TumblingWindowClause\",Pl),Sl(251),kl(85),Sl(269),kl(21),Sl(31),kl(254),Nl(),hi(),kl(110),Hl==79&&(Nl(),ds()),kl(53),Sl(154),kl(266),Nl(),_f(),Nl(),Nt();if(Hl==126||Hl==198)Nl(),kt();Vl.endNonterminal(\"TumblingWindowClause\",Pl)}function St(){xl(251),kl(85),xl(269),kl(21),xl(31),kl(254),pi(),kl(110),Hl==79&&vs(),kl(53),xl(154),kl(266),Df(),Ct(),(Hl==126||Hl==198)&&Lt()}function xt(){Vl.startNonterminal(\"SlidingWindowClause\",Pl),Sl(234),kl(85),Sl(269),kl(21),Sl(31),kl(254),Nl(),hi(),kl(110),Hl==79&&(Nl(),ds()),kl(53),Sl(154),kl(266),Nl(),_f(),Nl(),Nt(),Nl(),kt(),Vl.endNonterminal(\"SlidingWindowClause\",Pl)}function Tt(){xl(234),kl(85),xl(269),kl(21),xl(31),kl(254),pi(),kl(110),Hl==79&&vs(),kl(53),xl(154),kl(266),Df(),Ct(),Lt()}function Nt(){Vl.startNonterminal(\"WindowStartCondition\",Pl),Sl(237),kl(163),Nl(),At(),kl(83),Sl(265),kl(266),Nl(),_f(),Vl.endNonterminal(\"WindowStartCondition\",Pl)}function Ct(){xl(237),kl(163),Ot(),kl(83),xl(265),kl(266),Df()}function kt(){Vl.startNonterminal(\"WindowEndCondition\",Pl),Hl==198&&Sl(198),kl(50),Sl(126),kl(163),Nl(),At(),kl(83),Sl(265),kl(266),Nl(),_f(),Vl.endNonterminal(\"WindowEndCondition\",Pl)}function Lt(){Hl==198&&xl(198),kl(50),xl(126),kl(163),Ot(),kl(83),xl(265),kl(266),Df()}function At(){Vl.startNonterminal(\"WindowVars\",Pl),Hl==31&&(Sl(31),kl(254),Nl(),Mt()),kl(159),Hl==81&&(Nl(),ct()),kl(153),Hl==215&&(Sl(215),kl(21),Sl(31),kl(254),Nl(),Dt()),kl(127),Hl==187&&(Sl(187),kl(21),Sl(31),kl(254),Nl(),Ht()),Vl.endNonterminal(\"WindowVars\",Pl)}function Ot(){Hl==31&&(xl(31),kl(254),_t()),kl(159),Hl==81&&ht(),kl(153),Hl==215&&(xl(215),kl(21),xl(31),kl(254),Pt()),kl(127),Hl==187&&(xl(187),kl(21),xl(31),kl(254),Bt())}function Mt(){Vl.startNonterminal(\"CurrentItem\",Pl),Ha(),Vl.endNonterminal(\"CurrentItem\",Pl)}function _t(){Ba()}function Dt(){Vl.startNonterminal(\"PreviousItem\",Pl),Ha(),Vl.endNonterminal(\"PreviousItem\",Pl)}function Pt(){Ba()}function Ht(){Vl.startNonterminal(\"NextItem\",Pl),Ha(),Vl.endNonterminal(\"NextItem\",Pl)}function Bt(){Ba()}function jt(){Vl.startNonterminal(\"CountClause\",Pl),Sl(105),kl(21),Sl(31),kl(254),Nl(),hi(),Vl.endNonterminal(\"CountClause\",Pl)}function Ft(){xl(105),kl(21),xl(31),kl(254),pi()}function It(){Vl.startNonterminal(\"WhereClause\",Pl),Sl(266),kl(266),Nl(),_f(),Vl.endNonterminal(\"WhereClause\",Pl)}function qt(){xl(266),kl(266),Df()}function Rt(){Vl.startNonterminal(\"GroupByClause\",Pl),Sl(148),kl(34),Sl(87),kl(266),Nl(),zt(),Vl.endNonterminal(\"GroupByClause\",Pl)}function Ut(){xl(148),kl(34),xl(87),kl(266),Wt()}function zt(){Vl.startNonterminal(\"GroupingSpecList\",Pl),Xt();for(;;){kl(176);if(Hl!=41)break;Sl(41),kl(266),Nl(),Xt()}Vl.endNonterminal(\"GroupingSpecList\",Pl)}function Wt(){Vt();for(;;){kl(176);if(Hl!=41)break;xl(41),kl(266),Vt()}}function Xt(){Vl.startNonterminal(\"GroupingSpec\",Pl);switch(Hl){case 31:Ll(254);break;default:_l=Hl}if(_l==3103||_l==35871||_l==36895||_l==37407||_l==37919||_l==38431||_l==39455||_l==39967||_l==40479||_l==40991||_l==41503||_l==42015||_l==42527||_l==43039||_l==43551||_l==44063||_l==45087||_l==45599||_l==46111||_l==46623||_l==47647||_l==48159||_l==49183||_l==49695||_l==50207||_l==51743||_l==52255||_l==52767||_l==53279||_l==53791||_l==54303||_l==55327||_l==55839||_l==56351||_l==56863||_l==57375||_l==57887||_l==60447||_l==60959||_l==61471||_l==61983||_l==62495||_l==63007||_l==63519||_l==64031||_l==64543||_l==65567||_l==66079||_l==67103||_l==67615||_l==68127||_l==68639||_l==69151||_l==69663||_l==70175||_l==72223||_l==74271||_l==74783||_l==75807||_l==76831||_l==77343||_l==77855||_l==78367||_l==78879||_l==79391||_l==81439||_l==81951||_l==82463||_l==82975||_l==83487||_l==83999||_l==84511||_l==85023||_l==85535||_l==87071||_l==87583||_l==88095||_l==89119||_l==90143||_l==91167||_l==92191||_l==92703||_l==93215||_l==94239||_l==94751||_l==95263||_l==97823||_l==98335||_l==99359||_l==101407||_l==101919||_l==102431||_l==102943||_l==103455||_l==103967||_l==105503||_l==108575||_l==109087||_l==110623||_l==111647||_l==112159||_l==112671||_l==113183||_l==113695||_l==114719||_l==115231||_l==115743||_l==116255||_l==116767||_l==117279||_l==119839||_l==120351||_l==120863||_l==121375||_l==122911||_l==123935||_l==124447||_l==124959||_l==127007||_l==127519||_l==128031||_l==128543||_l==129055||_l==129567||_l==130079||_l==131103||_l==131615||_l==133151||_l==133663||_l==134175||_l==134687||_l==136223||_l==136735||_l==138271||_l==140319){_l=Kl(2,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{Jt(),kl(182);if(Hl==52||Hl==79)Hl==79&&vs(),kl(27),xl(52),kl(266),Df();Hl==94&&(xl(94),kl(15),xl(7)),_l=-1}catch(a){_l=-2}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(2,Pl,_l)}}switch(_l){case-1:$t(),kl(182);if(Hl==52||Hl==79)Hl==79&&(Nl(),ds()),kl(27),Sl(52),kl(266),Nl(),_f();Hl==94&&(Sl(94),kl(15),Sl(7));break;default:_f()}Vl.endNonterminal(\"GroupingSpec\",Pl)}function Vt(){switch(Hl){case 31:Ll(254);break;default:_l=Hl}if(_l==3103||_l==35871||_l==36895||_l==37407||_l==37919||_l==38431||_l==39455||_l==39967||_l==40479||_l==40991||_l==41503||_l==42015||_l==42527||_l==43039||_l==43551||_l==44063||_l==45087||_l==45599||_l==46111||_l==46623||_l==47647||_l==48159||_l==49183||_l==49695||_l==50207||_l==51743||_l==52255||_l==52767||_l==53279||_l==53791||_l==54303||_l==55327||_l==55839||_l==56351||_l==56863||_l==57375||_l==57887||_l==60447||_l==60959||_l==61471||_l==61983||_l==62495||_l==63007||_l==63519||_l==64031||_l==64543||_l==65567||_l==66079||_l==67103||_l==67615||_l==68127||_l==68639||_l==69151||_l==69663||_l==70175||_l==72223||_l==74271||_l==74783||_l==75807||_l==76831||_l==77343||_l==77855||_l==78367||_l==78879||_l==79391||_l==81439||_l==81951||_l==82463||_l==82975||_l==83487||_l==83999||_l==84511||_l==85023||_l==85535||_l==87071||_l==87583||_l==88095||_l==89119||_l==90143||_l==91167||_l==92191||_l==92703||_l==93215||_l==94239||_l==94751||_l==95263||_l==97823||_l==98335||_l==99359||_l==101407||_l==101919||_l==102431||_l==102943||_l==103455||_l==103967||_l==105503||_l==108575||_l==109087||_l==110623||_l==111647||_l==112159||_l==112671||_l==113183||_l==113695||_l==114719||_l==115231||_l==115743||_l==116255||_l==116767||_l==117279||_l==119839||_l==120351||_l==120863||_l==121375||_l==122911||_l==123935||_l==124447||_l==124959||_l==127007||_l==127519||_l==128031||_l==128543||_l==129055||_l==129567||_l==130079||_l==131103||_l==131615||_l==133151||_l==133663||_l==134175||_l==134687||_l==136223||_l==136735||_l==138271||_l==140319){_l=Kl(2,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{Jt(),kl(182);if(Hl==52||Hl==79)Hl==79&&vs(),kl(27),xl(52),kl(266),Df();Hl==94&&(xl(94),kl(15),xl(7)),Jl(2,t,-1),_l=-3}catch(a){_l=-2,Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(2,t,-2)}}}switch(_l){case-1:Jt(),kl(182);if(Hl==52||Hl==79)Hl==79&&vs(),kl(27),xl(52),kl(266),Df();Hl==94&&(xl(94),kl(15),xl(7));break;case-3:break;default:Df()}}function $t(){Vl.startNonterminal(\"GroupingVariable\",Pl),Sl(31),kl(254),Nl(),hi(),Vl.endNonterminal(\"GroupingVariable\",Pl)}function Jt(){xl(31),kl(254),pi()}function Kt(){Vl.startNonterminal(\"OrderByClause\",Pl);switch(Hl){case 201:Sl(201),kl(34),Sl(87);break;default:Sl(236),kl(67),Sl(201),kl(34),Sl(87)}kl(266),Nl(),Gt(),Vl.endNonterminal(\"OrderByClause\",Pl)}function Qt(){switch(Hl){case 201:xl(201),kl(34),xl(87);break;default:xl(236),kl(67),xl(201),kl(34),xl(87)}kl(266),Yt()}function Gt(){Vl.startNonterminal(\"OrderSpecList\",Pl),Zt();for(;;){kl(176);if(Hl!=41)break;Sl(41),kl(266),Nl(),Zt()}Vl.endNonterminal(\"OrderSpecList\",Pl)}function Yt(){en();for(;;){kl(176);if(Hl!=41)break;xl(41),kl(266),en()}}function Zt(){Vl.startNonterminal(\"OrderSpec\",Pl),_f(),Nl(),tn(),Vl.endNonterminal(\"OrderSpec\",Pl)}function en(){Df(),nn()}function tn(){Vl.startNonterminal(\"OrderModifier\",Pl);if(Hl==80||Hl==113)switch(Hl){case 80:Sl(80);break;default:Sl(113)}kl(179);if(Hl==123){Sl(123),kl(121);switch(Hl){case 147:Sl(147);break;default:Sl(173)}}kl(177),Hl==94&&(Sl(94),kl(15),Sl(7)),Vl.endNonterminal(\"OrderModifier\",Pl)}function nn(){if(Hl==80||Hl==113)switch(Hl){case 80:xl(80);break;default:xl(113)}kl(179);if(Hl==123){xl(123),kl(121);switch(Hl){case 147:xl(147);break;default:xl(173)}}kl(177),Hl==94&&(xl(94),kl(15),xl(7))}function rn(){Vl.startNonterminal(\"ReturnClause\",Pl),Sl(220),kl(266),Nl(),_f(),Vl.endNonterminal(\"ReturnClause\",Pl)}function sn(){xl(220),kl(266),Df()}function on(){Vl.startNonterminal(\"QuantifiedExpr\",Pl);switch(Hl){case 235:Sl(235);break;default:Sl(129)}kl(21),Nl(),an();for(;;){if(Hl!=41)break;Sl(41),kl(21),Nl(),an()}Sl(224),kl(266),Nl(),_f(),Vl.endNonterminal(\"QuantifiedExpr\",Pl)}function un(){switch(Hl){case 235:xl(235);break;default:xl(129)}kl(21),fn();for(;;){if(Hl!=41)break;xl(41),kl(21),fn()}xl(224),kl(266),Df()}function an(){Vl.startNonterminal(\"QuantifiedVarDecl\",Pl),Sl(31),kl(254),Nl(),hi(),kl(110),Hl==79&&(Nl(),ds()),kl(53),Sl(154),kl(266),Nl(),_f(),Vl.endNonterminal(\"QuantifiedVarDecl\",Pl)}function fn(){xl(31),kl(254),pi(),kl(110),Hl==79&&vs(),kl(53),xl(154),kl(266),Df()}function ln(){Vl.startNonterminal(\"SwitchExpr\",Pl),Sl(243),kl(22),Sl(34),kl(266),Nl(),G(),Sl(37);for(;;){kl(35),Nl(),hn();if(Hl!=88)break}Sl(109),kl(70),Sl(220),kl(266),Nl(),_f(),Vl.endNonterminal(\"SwitchExpr\",Pl)}function cn(){xl(243),kl(22),xl(34),kl(266),Y(),xl(37);for(;;){kl(35),pn();if(Hl!=88)break}xl(109),kl(70),xl(220),kl(266),Df()}function hn(){Vl.startNonterminal(\"SwitchCaseClause\",Pl);for(;;){Sl(88),kl(266),Nl(),dn();if(Hl!=88)break}Sl(220),kl(266),Nl(),_f(),Vl.endNonterminal(\"SwitchCaseClause\",Pl)}function pn(){for(;;){xl(88),kl(266),vn();if(Hl!=88)break}xl(220),kl(266),Df()}function dn(){Vl.startNonterminal(\"SwitchCaseOperand\",Pl),_f(),Vl.endNonterminal(\"SwitchCaseOperand\",Pl)}function vn(){Df()}function mn(){Vl.startNonterminal(\"TypeswitchExpr\",Pl),Sl(253),kl(22),Sl(34),kl(266),Nl(),G(),Sl(37);for(;;){kl(35),Nl(),yn();if(Hl!=88)break}Sl(109),kl(95),Hl==31&&(Sl(31),kl(254),Nl(),hi()),kl(70),Sl(220),kl(266),Nl(),_f(),Vl.endNonterminal(\"TypeswitchExpr\",Pl)}function gn(){xl(253),kl(22),xl(34),kl(266),Y(),xl(37);for(;;){kl(35),bn();if(Hl!=88)break}xl(109),kl(95),Hl==31&&(xl(31),kl(254),pi()),kl(70),xl(220),kl(266),Df()}function yn(){Vl.startNonterminal(\"CaseClause\",Pl),Sl(88),kl(261),Hl==31&&(Sl(31),kl(254),Nl(),hi(),kl(30),Sl(79)),kl(259),Nl(),wn(),Sl(220),kl(266),Nl(),_f(),Vl.endNonterminal(\"CaseClause\",Pl)}function bn(){xl(88),kl(261),Hl==31&&(xl(31),kl(254),pi(),kl(30),xl(79)),kl(259),En(),xl(220),kl(266),Df()}function wn(){Vl.startNonterminal(\"SequenceTypeUnion\",Pl),ms();for(;;){kl(134);if(Hl!=279)break;Sl(279),kl(259),Nl(),ms()}Vl.endNonterminal(\"SequenceTypeUnion\",Pl)}function En(){gs();for(;;){kl(134);if(Hl!=279)break;xl(279),kl(259),gs()}}function Sn(){Vl.startNonterminal(\"IfExpr\",Pl),Sl(152),kl(22),Sl(34),kl(266),Nl(),G(),Sl(37),kl(77),Sl(245),kl(266),Nl(),_f(),Sl(122),kl(266),Nl(),_f(),Vl.endNonterminal(\"IfExpr\",Pl)}function xn(){xl(152),kl(22),xl(34),kl(266),Y(),xl(37),kl(77),xl(245),kl(266),Df(),xl(122),kl(266),Df()}function Tn(){Vl.startNonterminal(\"TryCatchExpr\",Pl),Cn();for(;;){kl(36),Nl(),On(),kl(183);if(Hl!=91)break}Vl.endNonterminal(\"TryCatchExpr\",Pl)}function Nn(){kn();for(;;){kl(36),Mn(),kl(183);if(Hl!=91)break}}function Cn(){Vl.startNonterminal(\"TryClause\",Pl),Sl(250),kl(87),Sl(276),kl(266),Nl(),Ln(),Sl(282),Vl.endNonterminal(\"TryClause\",Pl)}function kn(){xl(250),kl(87),xl(276),kl(266),An(),xl(282)}function Ln(){Vl.startNonterminal(\"TryTargetExpr\",Pl),G(),Vl.endNonterminal(\"TryTargetExpr\",Pl)}function An(){Y()}function On(){Vl.startNonterminal(\"CatchClause\",Pl),Sl(91),kl(256),Nl(),_n(),Sl(276),kl(266),Nl(),G(),Sl(282),Vl.endNonterminal(\"CatchClause\",Pl)}function Mn(){xl(91),kl(256),Dn(),xl(276),kl(266),Y(),xl(282)}function _n(){Vl.startNonterminal(\"CatchErrorList\",Pl),Qr();for(;;){kl(136);if(Hl!=279)break;Sl(279),kl(256),Nl(),Qr()}Vl.endNonterminal(\"CatchErrorList\",Pl)}function Dn(){Gr();for(;;){kl(136);if(Hl!=279)break;xl(279),kl(256),Gr()}}function Pn(){Vl.startNonterminal(\"OrExpr\",Pl),Bn();for(;;){if(Hl!=200)break;Sl(200),kl(266),Nl(),Bn()}Vl.endNonterminal(\"OrExpr\",Pl)}function Hn(){jn();for(;;){if(Hl!=200)break;xl(200),kl(266),jn()}}function Bn(){Vl.startNonterminal(\"AndExpr\",Pl),Fn();for(;;){if(Hl!=75)break;Sl(75),kl(266),Nl(),Fn()}Vl.endNonterminal(\"AndExpr\",Pl)}function jn(){In();for(;;){if(Hl!=75)break;xl(75),kl(266),In()}}function Fn(){Vl.startNonterminal(\"ComparisonExpr\",Pl),qn();if(Hl==27||Hl==54||Hl==57||Hl==58||Hl==60||Hl==61||Hl==62||Hl==63||Hl==128||Hl==146||Hl==150||Hl==164||Hl==172||Hl==178||Hl==186){switch(Hl){case 128:case 146:case 150:case 172:case 178:case 186:Nl(),mr();break;case 57:case 63:case 164:Nl(),yr();break;default:Nl(),dr()}kl(266),Nl(),qn()}Vl.endNonterminal(\"ComparisonExpr\",Pl)}function In(){Rn();if(Hl==27||Hl==54||Hl==57||Hl==58||Hl==60||Hl==61||Hl==62||Hl==63||Hl==128||Hl==146||Hl==150||Hl==164||Hl==172||Hl==178||Hl==186){switch(Hl){case 128:case 146:case 150:case 172:case 178:case 186:gr();break;case 57:case 63:case 164:br();break;default:vr()}kl(266),Rn()}}function qn(){Vl.startNonterminal(\"FTContainsExpr\",Pl),Un(),Hl==99&&(Sl(99),kl(76),Sl(244),kl(162),Nl(),Jo(),Hl==271&&(Nl(),ha())),Vl.endNonterminal(\"FTContainsExpr\",Pl)}function Rn(){zn(),Hl==99&&(xl(99),kl(76),xl(244),kl(162),Ko(),Hl==271&&pa())}function Un(){Vl.startNonterminal(\"StringConcatExpr\",Pl),Wn();for(;;){if(Hl!=280)break;Sl(280),kl(266),Nl(),Wn()}Vl.endNonterminal(\"StringConcatExpr\",Pl)}function zn(){Xn();for(;;){if(Hl!=280)break;xl(280),kl(266),Xn()}}function Wn(){Vl.startNonterminal(\"RangeExpr\",Pl),Vn(),Hl==248&&(Sl(248),kl(266),Nl(),Vn()),Vl.endNonterminal(\"RangeExpr\",Pl)}function Xn(){$n(),Hl==248&&(xl(248),kl(266),$n())}function Vn(){Vl.startNonterminal(\"AdditiveExpr\",Pl),Jn();for(;;){if(Hl!=40&&Hl!=42)break;switch(Hl){case 40:Sl(40);break;default:Sl(42)}kl(266),Nl(),Jn()}Vl.endNonterminal(\"AdditiveExpr\",Pl)}function $n(){Kn();for(;;){if(Hl!=40&&Hl!=42)break;switch(Hl){case 40:xl(40);break;default:xl(42)}kl(266),Kn()}}function Jn(){Vl.startNonterminal(\"MultiplicativeExpr\",Pl),Qn();for(;;){if(Hl!=38&&Hl!=118&&Hl!=151&&Hl!=180)break;switch(Hl){case 38:Sl(38);break;case 118:Sl(118);break;case 151:Sl(151);break;default:Sl(180)}kl(266),Nl(),Qn()}Vl.endNonterminal(\"MultiplicativeExpr\",Pl)}function Kn(){Gn();for(;;){if(Hl!=38&&Hl!=118&&Hl!=151&&Hl!=180)break;switch(Hl){case 38:xl(38);break;case 118:xl(118);break;case 151:xl(151);break;default:xl(180)}kl(266),Gn()}}function Qn(){Vl.startNonterminal(\"UnionExpr\",Pl),Yn();for(;;){if(Hl!=254&&Hl!=279)break;switch(Hl){case 254:Sl(254);break;default:Sl(279)}kl(266),Nl(),Yn()}Vl.endNonterminal(\"UnionExpr\",Pl)}function Gn(){Zn();for(;;){if(Hl!=254&&Hl!=279)break;switch(Hl){case 254:xl(254);break;default:xl(279)}kl(266),Zn()}}function Yn(){Vl.startNonterminal(\"IntersectExceptExpr\",Pl),er();for(;;){kl(222);if(Hl!=131&&Hl!=162)break;switch(Hl){case 162:Sl(162);break;default:Sl(131)}kl(266),Nl(),er()}Vl.endNonterminal(\"IntersectExceptExpr\",Pl)}function Zn(){tr();for(;;){kl(222);if(Hl!=131&&Hl!=162)break;switch(Hl){case 162:xl(162);break;default:xl(131)}kl(266),tr()}}function er(){Vl.startNonterminal(\"InstanceofExpr\",Pl),nr(),kl(223),Hl==160&&(Sl(160),kl(64),Sl(196),kl(259),Nl(),ms()),Vl.endNonterminal(\"InstanceofExpr\",Pl)}function tr(){rr(),kl(223),Hl==160&&(xl(160),kl(64),xl(196),kl(259),gs())}function nr(){Vl.startNonterminal(\"TreatExpr\",Pl),ir(),kl(224),Hl==249&&(Sl(249),kl(30),Sl(79),kl(259),Nl(),ms()),Vl.endNonterminal(\"TreatExpr\",Pl)}function rr(){sr(),kl(224),Hl==249&&(xl(249),kl(30),xl(79),kl(259),gs())}function ir(){Vl.startNonterminal(\"CastableExpr\",Pl),or(),kl(225),Hl==90&&(Sl(90),kl(30),Sl(79),kl(254),Nl(),hs()),Vl.endNonterminal(\"CastableExpr\",Pl)}function sr(){ur(),kl(225),Hl==90&&(xl(90),kl(30),xl(79),kl(254),ps())}function or(){Vl.startNonterminal(\"CastExpr\",Pl),ar(),kl(227),Hl==89&&(Sl(89),kl(30),Sl(79),kl(254),Nl(),hs()),Vl.endNonterminal(\"CastExpr\",Pl)}function ur(){fr(),kl(227),Hl==89&&(xl(89),kl(30),xl(79),kl(254),ps())}function ar(){Vl.startNonterminal(\"UnaryExpr\",Pl);for(;;){kl(266);if(Hl!=40&&Hl!=42)break;switch(Hl){case 42:Sl(42);break;default:Sl(40)}}Nl(),lr(),Vl.endNonterminal(\"UnaryExpr\",Pl)}function fr(){for(;;){kl(266);if(Hl!=40&&Hl!=42)break;switch(Hl){case 42:xl(42);break;default:xl(40)}}cr()}function lr(){Vl.startNonterminal(\"ValueExpr\",Pl);switch(Hl){case 260:Ll(247);break;default:_l=Hl}switch(_l){case 87812:case 123140:case 129284:case 141572:wr();break;case 35:Tr();break;default:hr()}Vl.endNonterminal(\"ValueExpr\",Pl)}function cr(){switch(Hl){case 260:Ll(247);break;default:_l=Hl}switch(_l){case 87812:case 123140:case 129284:case 141572:Er();break;case 35:Nr();break;default:pr()}}function hr(){Vl.startNonterminal(\"SimpleMapExpr\",Pl),Lr();for(;;){if(Hl!=26)break;Sl(26),kl(265),Nl(),Lr()}Vl.endNonterminal(\"SimpleMapExpr\",Pl)}function pr(){Ar();for(;;){if(Hl!=26)break;xl(26),kl(265),Ar()}}function dr(){Vl.startNonterminal(\"GeneralComp\",Pl);switch(Hl){case 60:Sl(60);break;case 27:Sl(27);break;case 54:Sl(54);break;case 58:Sl(58);break;case 61:Sl(61);break;default:Sl(62)}Vl.endNonterminal(\"GeneralComp\",Pl)}function vr(){switch(Hl){case 60:xl(60);break;case 27:xl(27);break;case 54:xl(54);break;case 58:xl(58);break;case 61:xl(61);break;default:xl(62)}}function mr(){Vl.startNonterminal(\"ValueComp\",Pl);switch(Hl){case 128:Sl(128);break;case 186:Sl(186);break;case 178:Sl(178);break;case 172:Sl(172);break;case 150:Sl(150);break;default:Sl(146)}Vl.endNonterminal(\"ValueComp\",Pl)}function gr(){switch(Hl){case 128:xl(128);break;case 186:xl(186);break;case 178:xl(178);break;case 172:xl(172);break;case 150:xl(150);break;default:xl(146)}}function yr(){Vl.startNonterminal(\"NodeComp\",Pl);switch(Hl){case 164:Sl(164);break;case 57:Sl(57);break;default:Sl(63)}Vl.endNonterminal(\"NodeComp\",Pl)}function br(){switch(Hl){case 164:xl(164);break;case 57:xl(57);break;default:xl(63)}}function wr(){Vl.startNonterminal(\"ValidateExpr\",Pl),Sl(260),kl(160);if(Hl!=276)switch(Hl){case 252:Sl(252),kl(254),Nl(),go();break;default:Nl(),Sr()}kl(87),Sl(276),kl(266),Nl(),G(),Sl(282),Vl.endNonterminal(\"ValidateExpr\",Pl)}function Er(){xl(260),kl(160);if(Hl!=276)switch(Hl){case 252:xl(252),kl(254),yo();break;default:xr()}kl(87),xl(276),kl(266),Y(),xl(282)}function Sr(){Vl.startNonterminal(\"ValidationMode\",Pl);switch(Hl){case 171:Sl(171);break;default:Sl(240)}Vl.endNonterminal(\"ValidationMode\",Pl)}function xr(){switch(Hl){case 171:xl(171);break;default:xl(240)}}function Tr(){Vl.startNonterminal(\"ExtensionExpr\",Pl);for(;;){Nl(),Cr(),kl(100);if(Hl!=35)break}Sl(276),kl(273),Hl!=282&&(Nl(),G()),Sl(282),Vl.endNonterminal(\"ExtensionExpr\",Pl)}function Nr(){for(;;){kr(),kl(100);if(Hl!=35)break}xl(276),kl(273),Hl!=282&&Y(),xl(282)}function Cr(){Vl.startNonterminal(\"Pragma\",Pl),Sl(35),Al(251),Hl==21&&Sl(21),Ha(),Al(10),Hl==21&&(Sl(21),Al(0),Sl(1)),Al(5),Sl(30),Vl.endNonterminal(\"Pragma\",Pl)}function kr(){xl(35),Al(251),Hl==21&&xl(21),Ba(),Al(10),Hl==21&&(xl(21),Al(0),xl(1)),Al(5),xl(30)}function Lr(){Vl.startNonterminal(\"PathExpr\",Pl);switch(Hl){case 46:Sl(46),kl(285);switch(Hl){case 25:case 26:case 27:case 37:case 38:case 40:case 41:case 42:case 49:case 53:case 57:case 58:case 60:case 61:case 62:case 63:case 69:case 87:case 99:case 205:case 232:case 247:case 273:case 279:case 280:case 281:case 282:break;default:Nl(),Or()}break;case 47:Sl(47),kl(264),Nl(),Or();break;default:Or()}Vl.endNonterminal(\"PathExpr\",Pl)}function Ar(){switch(Hl){case 46:xl(46),kl(285);switch(Hl){case 25:case 26:case 27:case 37:case 38:case 40:case 41:case 42:case 49:case 53:case 57:case 58:case 60:case 61:case 62:case 63:case 69:case 87:case 99:case 205:case 232:case 247:case 273:case 279:case 280:case 281:case 282:break;default:Mr()}break;case 47:xl(47),kl(264),Mr();break;default:Mr()}}function Or(){Vl.startNonterminal(\"RelativePathExpr\",Pl),_r();for(;;){switch(Hl){case 26:Ll(265);break;default:_l=Hl}if(_l!=25&&_l!=27&&_l!=37&&_l!=38&&_l!=40&&_l!=41&&_l!=42&&_l!=46&&_l!=47&&_l!=49&&_l!=53&&_l!=54&&_l!=57&&_l!=58&&_l!=60&&_l!=61&&_l!=62&&_l!=63&&_l!=69&&_l!=70&&_l!=75&&_l!=79&&_l!=80&&_l!=81&&_l!=84&&_l!=87&&_l!=88&&_l!=89&&_l!=90&&_l!=94&&_l!=99&&_l!=105&&_l!=109&&_l!=113&&_l!=118&&_l!=122&&_l!=123&&_l!=126&&_l!=128&&_l!=131&&_l!=137&&_l!=146&&_l!=148&&_l!=150&&_l!=151&&_l!=160&&_l!=162&&_l!=163&&_l!=164&&_l!=172&&_l!=174&&_l!=178&&_l!=180&&_l!=181&&_l!=186&&_l!=198&&_l!=200&&_l!=201&&_l!=205&&_l!=220&&_l!=224&&_l!=232&&_l!=236&&_l!=237&&_l!=247&&_l!=248&&_l!=249&&_l!=254&&_l!=266&&_l!=270&&_l!=273&&_l!=279&&_l!=280&&_l!=281&&_l!=282&&_l!=23578&&_l!=24090){_l=Kl(3,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{switch(Hl){case 46:xl(46);break;case 47:xl(47);break;default:xl(26)}kl(264),Dr(),_l=-1}catch(a){_l=-2}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(3,Pl,_l)}}if(_l!=-1&&_l!=46&&_l!=47)break;switch(Hl){case 46:Sl(46);break;case 47:Sl(47);break;default:Sl(26)}kl(264),Nl(),_r()}Vl.endNonterminal(\"RelativePathExpr\",Pl)}function Mr(){Dr();for(;;){switch(Hl){case 26:Ll(265);break;default:_l=Hl}if(_l!=25&&_l!=27&&_l!=37&&_l!=38&&_l!=40&&_l!=41&&_l!=42&&_l!=46&&_l!=47&&_l!=49&&_l!=53&&_l!=54&&_l!=57&&_l!=58&&_l!=60&&_l!=61&&_l!=62&&_l!=63&&_l!=69&&_l!=70&&_l!=75&&_l!=79&&_l!=80&&_l!=81&&_l!=84&&_l!=87&&_l!=88&&_l!=89&&_l!=90&&_l!=94&&_l!=99&&_l!=105&&_l!=109&&_l!=113&&_l!=118&&_l!=122&&_l!=123&&_l!=126&&_l!=128&&_l!=131&&_l!=137&&_l!=146&&_l!=148&&_l!=150&&_l!=151&&_l!=160&&_l!=162&&_l!=163&&_l!=164&&_l!=172&&_l!=174&&_l!=178&&_l!=180&&_l!=181&&_l!=186&&_l!=198&&_l!=200&&_l!=201&&_l!=205&&_l!=220&&_l!=224&&_l!=232&&_l!=236&&_l!=237&&_l!=247&&_l!=248&&_l!=249&&_l!=254&&_l!=266&&_l!=270&&_l!=273&&_l!=279&&_l!=280&&_l!=281&&_l!=282&&_l!=23578&&_l!=24090){_l=Kl(3,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{switch(Hl){case 46:xl(46);break;case 47:xl(47);break;default:xl(26)}kl(264),Dr(),Jl(3,t,-1);continue}catch(a){Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(3,t,-2);break}}}if(_l!=-1&&_l!=46&&_l!=47)break;switch(Hl){case 46:xl(46);break;case 47:xl(47);break;default:xl(26)}kl(264),Dr()}}function _r(){Vl.startNonterminal(\"StepExpr\",Pl);switch(Hl){case 82:Ll(284);break;case 121:Ll(282);break;case 184:case 216:Ll(281);break;case 96:case 119:case 202:case 244:case 256:Ll(246);break;case 78:case 124:case 152:case 165:case 167:case 242:case 243:case 253:Ll(239);break;case 73:case 74:case 93:case 111:case 112:case 135:case 136:case 206:case 212:case 213:case 229:Ll(245);break;case 6:case 70:case 72:case 75:case 77:case 79:case 80:case 81:case 83:case 84:case 85:case 86:case 88:case 89:case 90:case 91:case 94:case 97:case 98:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 109:case 110:case 113:case 118:case 120:case 122:case 123:case 125:case 126:case 128:case 129:case 131:case 132:case 133:case 134:case 137:case 141:case 145:case 146:case 148:case 150:case 151:case 153:case 154:case 155:case 159:case 160:case 161:case 162:case 163:case 164:case 166:case 170:case 171:case 172:case 174:case 176:case 178:case 180:case 181:case 182:case 185:case 186:case 191:case 192:case 194:case 198:case 199:case 200:case 201:case 203:case 218:case 219:case 220:case 221:case 222:case 224:case 225:case 226:case 227:case 228:case 234:case 235:case 236:case 237:case 240:case 248:case 249:case 250:case 251:case 252:case 254:case 257:case 260:case 261:case 262:case 263:case 266:case 267:case 270:case 274:Ll(243);break;default:_l=Hl}if(_l==35922||_l==35961||_l==36024||_l==36056||_l==38482||_l==38521||_l==38584||_l==38616||_l==40530||_l==40569||_l==40632||_l==40664||_l==41042||_l==41081||_l==41144||_l==41176||_l==41554||_l==41593||_l==41656||_l==41688||_l==43090||_l==43129||_l==43192||_l==43224||_l==45138||_l==45177||_l==45240||_l==45272||_l==45650||_l==45689||_l==45752||_l==45784||_l==46162||_l==46201||_l==46264||_l==46296||_l==48210||_l==48249||_l==48312||_l==48344||_l==53842||_l==53881||_l==53944||_l==53976||_l==55890||_l==55929||_l==55992||_l==56024||_l==57938||_l==57977||_l==58040||_l==58072||_l==60498||_l==60537||_l==60600||_l==60632||_l==62546||_l==62585||_l==62648||_l==62680||_l==63058||_l==63097||_l==63160||_l==63192||_l==64594||_l==64633||_l==64696||_l==64728||_l==65618||_l==65657||_l==65720||_l==65752||_l==67154||_l==67193||_l==67256||_l==67288||_l==70226||_l==70265||_l==70328||_l==70360||_l==74834||_l==74873||_l==74936||_l==74968||_l==75858||_l==75897||_l==75960||_l==75992||_l==76882||_l==76921||_l==76984||_l==77016||_l==77394||_l==77433||_l==77496||_l==77528||_l==82002||_l==82041||_l==82104||_l==82136||_l==83026||_l==83065||_l==83128||_l==83160||_l==83538||_l==83577||_l==83640||_l==83672||_l==84050||_l==84089||_l==84152||_l==84184||_l==88146||_l==88185||_l==88248||_l==88280||_l==89170||_l==89209||_l==89272||_l==89304||_l==91218||_l==91257||_l==91320||_l==91352||_l==92242||_l==92281||_l==92344||_l==92376||_l==92754||_l==92793||_l==92856||_l==92888||_l==95314||_l==95353||_l==95416||_l==95448||_l==101458||_l==101497||_l==101560||_l==101592||_l==102482||_l==102521||_l==102584||_l==102616||_l==102994||_l==103033||_l==103096||_l==103128||_l==112722||_l==112761||_l==112824||_l==112856||_l==114770||_l==114809||_l==114872||_l==114904||_l==120914||_l==120953||_l==121016||_l==121048||_l==121426||_l==121465||_l==121528||_l==121560||_l==127058||_l==127097||_l==127160||_l==127192||_l==127570||_l==127609||_l==127672||_l==127704||_l==130130||_l==130169||_l==130232||_l==130264||_l==136274||_l==136313||_l==136376||_l==136408||_l==138322||_l==138361||_l==138424||_l==138456){_l=Kl(4,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{Zr(),_l=-1}catch(a){_l=-2}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(4,Pl,_l)}}switch(_l){case-1:case 8:case 9:case 10:case 11:case 31:case 32:case 34:case 44:case 54:case 55:case 59:case 68:case 276:case 278:case 3154:case 3193:case 9912:case 9944:case 14854:case 14918:case 14920:case 14921:case 14922:case 14923:case 14925:case 14926:case 14927:case 14928:case 14929:case 14930:case 14931:case 14932:case 14933:case 14934:case 14936:case 14937:case 14938:case 14939:case 14941:case 14942:case 14944:case 14945:case 14946:case 14949:case 14950:case 14951:case 14952:case 14953:case 14954:case 14956:case 14957:case 14958:case 14959:case 14960:case 14961:case 14966:case 14967:case 14968:case 14969:case 14970:case 14971:case 14972:case 14973:case 14974:case 14976:case 14977:case 14979:case 14980:case 14981:case 14982:case 14983:case 14984:case 14985:case 14989:case 14993:case 14994:case 14996:case 14998:case 14999:case 15e3:case 15001:case 15002:case 15003:case 15007:case 15008:case 15009:case 15010:case 15011:case 15012:case 15013:case 15014:case 15015:case 15018:case 15019:case 15020:case 15022:case 15024:case 15026:case 15028:case 15029:case 15030:case 15032:case 15033:case 15034:case 15039:case 15040:case 15042:case 15046:case 15047:case 15048:case 15049:case 15050:case 15051:case 15054:case 15060:case 15061:case 15064:case 15066:case 15067:case 15068:case 15069:case 15070:case 15072:case 15073:case 15074:case 15075:case 15076:case 15077:case 15082:case 15083:case 15084:case 15085:case 15088:case 15090:case 15091:case 15092:case 15096:case 15097:case 15098:case 15099:case 15100:case 15101:case 15102:case 15104:case 15105:case 15108:case 15109:case 15110:case 15111:case 15114:case 15115:case 15118:case 15122:case 17414:case 17478:case 17480:case 17481:case 17482:case 17483:case 17485:case 17487:case 17488:case 17489:case 17491:case 17492:case 17493:case 17494:case 17496:case 17497:case 17498:case 17499:case 17501:case 17502:case 17505:case 17506:case 17509:case 17510:case 17511:case 17512:case 17513:case 17514:case 17516:case 17517:case 17518:case 17519:case 17520:case 17521:case 17526:case 17527:case 17530:case 17531:case 17533:case 17534:case 17536:case 17537:case 17539:case 17540:case 17541:case 17542:case 17543:case 17544:case 17545:case 17549:case 17553:case 17554:case 17556:case 17558:case 17559:case 17561:case 17562:case 17563:case 17567:case 17568:case 17569:case 17570:case 17571:case 17572:case 17574:case 17578:case 17579:case 17580:case 17582:case 17584:case 17586:case 17588:case 17589:case 17590:case 17592:case 17594:case 17600:case 17602:case 17606:case 17607:case 17608:case 17609:case 17610:case 17611:case 17614:case 17620:case 17621:case 17626:case 17627:case 17628:case 17629:case 17630:case 17632:case 17633:case 17636:case 17637:case 17642:case 17643:case 17644:case 17645:case 17648:case 17656:case 17657:case 17658:case 17659:case 17660:case 17662:case 17664:case 17665:case 17668:case 17669:case 17670:case 17671:case 17674:case 17675:case 17678:case 17682:case 36946:case 36985:case 37048:case 37080:case 37458:case 37497:case 37560:case 37592:case 37970:case 38009:case 38072:case 38104:case 39506:case 39545:case 39608:case 39640:case 40018:case 40057:case 42066:case 42105:case 42168:case 42200:case 42578:case 42617:case 42680:case 42712:case 43602:case 43641:case 43704:case 43736:case 44114:case 44153:case 44216:case 44248:case 46674:case 46713:case 46776:case 46808:case 47698:case 47737:case 47800:case 47832:case 49234:case 49273:case 49336:case 49368:case 49746:case 49785:case 49848:case 49880:case 50258:case 50297:case 50360:case 50392:case 51794:case 51833:case 51896:case 51928:case 52306:case 52345:case 52408:case 52440:case 52818:case 52857:case 52920:case 52952:case 53330:case 53369:case 53432:case 53464:case 54354:case 54393:case 54456:case 54488:case 55378:case 55417:case 55480:case 55512:case 56402:case 56441:case 56504:case 56536:case 56914:case 56953:case 57016:case 57048:case 57426:case 57465:case 57528:case 57560:case 61010:case 61049:case 61112:case 61144:case 61522:case 61561:case 61624:case 61656:case 62034:case 62073:case 62136:case 62168:case 63570:case 63609:case 63672:case 63704:case 64082:case 64121:case 64184:case 64216:case 66130:case 66169:case 66232:case 66264:case 67666:case 67705:case 67768:case 67800:case 68178:case 68217:case 68280:case 68312:case 68690:case 68729:case 68792:case 68824:case 69202:case 69241:case 69304:case 69336:case 69714:case 69753:case 69816:case 69848:case 72274:case 72313:case 72376:case 72408:case 74322:case 74361:case 74424:case 74456:case 77906:case 77945:case 78008:case 78040:case 78418:case 78457:case 78520:case 78552:case 78930:case 78969:case 79032:case 79064:case 79442:case 79481:case 79544:case 79576:case 81490:case 81529:case 81592:case 81624:case 82514:case 82553:case 82616:case 82648:case 84562:case 84601:case 84664:case 84696:case 85074:case 85113:case 85176:case 85208:case 85586:case 85625:case 87122:case 87161:case 87224:case 87256:case 87634:case 87673:case 87736:case 87768:case 90194:case 90233:case 90296:case 90328:case 93266:case 93305:case 93368:case 93400:case 94290:case 94329:case 94392:case 94424:case 94802:case 94841:case 94904:case 94936:case 97874:case 97913:case 97976:case 98008:case 98386:case 98425:case 98488:case 98520:case 99410:case 99449:case 99512:case 99544:case 101970:case 102009:case 102072:case 102104:case 103506:case 103545:case 103608:case 103640:case 104018:case 104057:case 104120:case 104152:case 105554:case 105593:case 105656:case 105688:case 108626:case 108665:case 108728:case 108760:case 109138:case 109177:case 109240:case 109272:case 110674:case 110713:case 110776:case 110808:case 111698:case 111737:case 111800:case 111832:case 112210:case 112249:case 112312:case 112344:case 113234:case 113273:case 113336:case 113368:case 113746:case 113785:case 113848:case 113880:case 115282:case 115321:case 115384:case 115416:case 115794:case 115833:case 115896:case 115928:case 116306:case 116345:case 116408:case 116440:case 116818:case 116857:case 116920:case 116952:case 117330:case 117369:case 117432:case 117464:case 119890:case 119929:case 119992:case 120024:case 120402:case 120441:case 120504:case 120536:case 122962:case 123001:case 123064:case 123096:case 123986:case 124025:case 124498:case 124537:case 124600:case 124632:case 125010:case 125049:case 125112:case 125144:case 128082:case 128121:case 128184:case 128216:case 128594:case 128633:case 128696:case 128728:case 129106:case 129145:case 129208:case 129240:case 129618:case 129657:case 129720:case 129752:case 131154:case 131193:case 131256:case 131288:case 131666:case 131705:case 131768:case 131800:case 133202:case 133241:case 133304:case 133336:case 133714:case 133753:case 133816:case 133848:case 134226:case 134265:case 134328:case 134360:case 134738:case 134777:case 134840:case 134872:case 136786:case 136825:case 136888:case 136920:case 140370:case 140409:case 140472:case 140504:case 141394:case 141408:case 141431:case 141433:case 141496:case 141514:case 141528:case 141556:case 141568:Yr();break;default:Pr()}Vl.endNonterminal(\"StepExpr\",Pl)}function Dr(){switch(Hl){case 82:Ll(284);break;case 121:Ll(282);break;case 184:case 216:Ll(281);break;case 96:case 119:case 202:case 244:case 256:Ll(246);break;case 78:case 124:case 152:case 165:case 167:case 242:case 243:case 253:Ll(239);break;case 73:case 74:case 93:case 111:case 112:case 135:case 136:case 206:case 212:case 213:case 229:Ll(245);break;case 6:case 70:case 72:case 75:case 77:case 79:case 80:case 81:case 83:case 84:case 85:case 86:case 88:case 89:case 90:case 91:case 94:case 97:case 98:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 109:case 110:case 113:case 118:case 120:case 122:case 123:case 125:case 126:case 128:case 129:case 131:case 132:case 133:case 134:case 137:case 141:case 145:case 146:case 148:case 150:case 151:case 153:case 154:case 155:case 159:case 160:case 161:case 162:case 163:case 164:case 166:case 170:case 171:case 172:case 174:case 176:case 178:case 180:case 181:case 182:case 185:case 186:case 191:case 192:case 194:case 198:case 199:case 200:case 201:case 203:case 218:case 219:case 220:case 221:case 222:case 224:case 225:case 226:case 227:case 228:case 234:case 235:case 236:case 237:case 240:case 248:case 249:case 250:case 251:case 252:case 254:case 257:case 260:case 261:case 262:case 263:case 266:case 267:case 270:case 274:Ll(243);break;default:_l=Hl}if(_l==35922||_l==35961||_l==36024||_l==36056||_l==38482||_l==38521||_l==38584||_l==38616||_l==40530||_l==40569||_l==40632||_l==40664||_l==41042||_l==41081||_l==41144||_l==41176||_l==41554||_l==41593||_l==41656||_l==41688||_l==43090||_l==43129||_l==43192||_l==43224||_l==45138||_l==45177||_l==45240||_l==45272||_l==45650||_l==45689||_l==45752||_l==45784||_l==46162||_l==46201||_l==46264||_l==46296||_l==48210||_l==48249||_l==48312||_l==48344||_l==53842||_l==53881||_l==53944||_l==53976||_l==55890||_l==55929||_l==55992||_l==56024||_l==57938||_l==57977||_l==58040||_l==58072||_l==60498||_l==60537||_l==60600||_l==60632||_l==62546||_l==62585||_l==62648||_l==62680||_l==63058||_l==63097||_l==63160||_l==63192||_l==64594||_l==64633||_l==64696||_l==64728||_l==65618||_l==65657||_l==65720||_l==65752||_l==67154||_l==67193||_l==67256||_l==67288||_l==70226||_l==70265||_l==70328||_l==70360||_l==74834||_l==74873||_l==74936||_l==74968||_l==75858||_l==75897||_l==75960||_l==75992||_l==76882||_l==76921||_l==76984||_l==77016||_l==77394||_l==77433||_l==77496||_l==77528||_l==82002||_l==82041||_l==82104||_l==82136||_l==83026||_l==83065||_l==83128||_l==83160||_l==83538||_l==83577||_l==83640||_l==83672||_l==84050||_l==84089||_l==84152||_l==84184||_l==88146||_l==88185||_l==88248||_l==88280||_l==89170||_l==89209||_l==89272||_l==89304||_l==91218||_l==91257||_l==91320||_l==91352||_l==92242||_l==92281||_l==92344||_l==92376||_l==92754||_l==92793||_l==92856||_l==92888||_l==95314||_l==95353||_l==95416||_l==95448||_l==101458||_l==101497||_l==101560||_l==101592||_l==102482||_l==102521||_l==102584||_l==102616||_l==102994||_l==103033||_l==103096||_l==103128||_l==112722||_l==112761||_l==112824||_l==112856||_l==114770||_l==114809||_l==114872||_l==114904||_l==120914||_l==120953||_l==121016||_l==121048||_l==121426||_l==121465||_l==121528||_l==121560||_l==127058||_l==127097||_l==127160||_l==127192||_l==127570||_l==127609||_l==127672||_l==127704||_l==130130||_l==130169||_l==130232||_l==130264||_l==136274||_l==136313||_l==136376||_l==136408||_l==138322||_l==138361||_l==138424||_l==138456){_l=Kl(4,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{Zr(),Jl(4,t,-1),_l=-3}catch(a){_l=-2,Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(4,t,-2)}}}switch(_l){case-1:case 8:case 9:case 10:case 11:case 31:case 32:case 34:case 44:case 54:case 55:case 59:case 68:case 276:case 278:case 3154:case 3193:case 9912:case 9944:case 14854:case 14918:case 14920:case 14921:case 14922:case 14923:case 14925:case 14926:case 14927:case 14928:case 14929:case 14930:case 14931:case 14932:case 14933:case 14934:case 14936:case 14937:case 14938:case 14939:case 14941:case 14942:case 14944:case 14945:case 14946:case 14949:case 14950:case 14951:case 14952:case 14953:case 14954:case 14956:case 14957:case 14958:case 14959:case 14960:case 14961:case 14966:case 14967:case 14968:case 14969:case 14970:case 14971:case 14972:case 14973:case 14974:case 14976:case 14977:case 14979:case 14980:case 14981:case 14982:case 14983:case 14984:case 14985:case 14989:case 14993:case 14994:case 14996:case 14998:case 14999:case 15e3:case 15001:case 15002:case 15003:case 15007:case 15008:case 15009:case 15010:case 15011:case 15012:case 15013:case 15014:case 15015:case 15018:case 15019:case 15020:case 15022:case 15024:case 15026:case 15028:case 15029:case 15030:case 15032:case 15033:case 15034:case 15039:case 15040:case 15042:case 15046:case 15047:case 15048:case 15049:case 15050:case 15051:case 15054:case 15060:case 15061:case 15064:case 15066:case 15067:case 15068:case 15069:case 15070:case 15072:case 15073:case 15074:case 15075:case 15076:case 15077:case 15082:case 15083:case 15084:case 15085:case 15088:case 15090:case 15091:case 15092:case 15096:case 15097:case 15098:case 15099:case 15100:case 15101:case 15102:case 15104:case 15105:case 15108:case 15109:case 15110:case 15111:case 15114:case 15115:case 15118:case 15122:case 17414:case 17478:case 17480:case 17481:case 17482:case 17483:case 17485:case 17487:case 17488:case 17489:case 17491:case 17492:case 17493:case 17494:case 17496:case 17497:case 17498:case 17499:case 17501:case 17502:case 17505:case 17506:case 17509:case 17510:case 17511:case 17512:case 17513:case 17514:case 17516:case 17517:case 17518:case 17519:case 17520:case 17521:case 17526:case 17527:case 17530:case 17531:case 17533:case 17534:case 17536:case 17537:case 17539:case 17540:case 17541:case 17542:case 17543:case 17544:case 17545:case 17549:case 17553:case 17554:case 17556:case 17558:case 17559:case 17561:case 17562:case 17563:case 17567:case 17568:case 17569:case 17570:case 17571:case 17572:case 17574:case 17578:case 17579:case 17580:case 17582:case 17584:case 17586:case 17588:case 17589:case 17590:case 17592:case 17594:case 17600:case 17602:case 17606:case 17607:case 17608:case 17609:case 17610:case 17611:case 17614:case 17620:case 17621:case 17626:case 17627:case 17628:case 17629:case 17630:case 17632:case 17633:case 17636:case 17637:case 17642:case 17643:case 17644:case 17645:case 17648:case 17656:case 17657:case 17658:case 17659:case 17660:case 17662:case 17664:case 17665:case 17668:case 17669:case 17670:case 17671:case 17674:case 17675:case 17678:case 17682:case 36946:case 36985:case 37048:case 37080:case 37458:case 37497:case 37560:case 37592:case 37970:case 38009:case 38072:case 38104:case 39506:case 39545:case 39608:case 39640:case 40018:case 40057:case 42066:case 42105:case 42168:case 42200:case 42578:case 42617:case 42680:case 42712:case 43602:case 43641:case 43704:case 43736:case 44114:case 44153:case 44216:case 44248:case 46674:case 46713:case 46776:case 46808:case 47698:case 47737:case 47800:case 47832:case 49234:case 49273:case 49336:case 49368:case 49746:case 49785:case 49848:case 49880:case 50258:case 50297:case 50360:case 50392:case 51794:case 51833:case 51896:case 51928:case 52306:case 52345:case 52408:case 52440:case 52818:case 52857:case 52920:case 52952:case 53330:case 53369:case 53432:case 53464:case 54354:case 54393:case 54456:case 54488:case 55378:case 55417:case 55480:case 55512:case 56402:case 56441:case 56504:case 56536:case 56914:case 56953:case 57016:case 57048:case 57426:case 57465:case 57528:case 57560:case 61010:case 61049:case 61112:case 61144:case 61522:case 61561:case 61624:case 61656:case 62034:case 62073:case 62136:case 62168:case 63570:case 63609:case 63672:case 63704:case 64082:case 64121:case 64184:case 64216:case 66130:case 66169:case 66232:case 66264:case 67666:case 67705:case 67768:case 67800:case 68178:case 68217:case 68280:case 68312:case 68690:case 68729:case 68792:case 68824:case 69202:case 69241:case 69304:case 69336:case 69714:case 69753:case 69816:case 69848:case 72274:case 72313:case 72376:case 72408:case 74322:case 74361:case 74424:case 74456:case 77906:case 77945:case 78008:case 78040:case 78418:case 78457:case 78520:case 78552:case 78930:case 78969:case 79032:case 79064:case 79442:case 79481:case 79544:case 79576:case 81490:case 81529:case 81592:case 81624:case 82514:case 82553:case 82616:case 82648:case 84562:case 84601:case 84664:case 84696:case 85074:case 85113:case 85176:case 85208:case 85586:case 85625:case 87122:case 87161:case 87224:case 87256:case 87634:case 87673:case 87736:case 87768:case 90194:case 90233:case 90296:case 90328:case 93266:case 93305:case 93368:case 93400:case 94290:case 94329:case 94392:case 94424:case 94802:case 94841:case 94904:case 94936:case 97874:case 97913:case 97976:case 98008:case 98386:case 98425:case 98488:case 98520:case 99410:case 99449:case 99512:case 99544:case 101970:case 102009:case 102072:case 102104:case 103506:case 103545:case 103608:case 103640:case 104018:case 104057:case 104120:case 104152:case 105554:case 105593:case 105656:case 105688:case 108626:case 108665:case 108728:case 108760:case 109138:case 109177:case 109240:case 109272:case 110674:case 110713:case 110776:case 110808:case 111698:case 111737:case 111800:case 111832:case 112210:case 112249:case 112312:case 112344:case 113234:case 113273:case 113336:case 113368:case 113746:case 113785:case 113848:case 113880:case 115282:case 115321:case 115384:case 115416:case 115794:case 115833:case 115896:case 115928:case 116306:case 116345:case 116408:case 116440:case 116818:case 116857:case 116920:case 116952:case 117330:case 117369:case 117432:case 117464:case 119890:case 119929:case 119992:case 120024:case 120402:case 120441:case 120504:case 120536:case 122962:case 123001:case 123064:case 123096:case 123986:case 124025:case 124498:case 124537:case 124600:case 124632:case 125010:case 125049:case 125112:case 125144:case 128082:case 128121:case 128184:case 128216:case 128594:case 128633:case 128696:case 128728:case 129106:case 129145:case 129208:case 129240:case 129618:case 129657:case 129720:case 129752:case 131154:case 131193:case 131256:case 131288:case 131666:case 131705:case 131768:case 131800:case 133202:case 133241:case 133304:case 133336:case 133714:case 133753:case 133816:case 133848:case 134226:case 134265:case 134328:case 134360:case 134738:case 134777:case 134840:case 134872:case 136786:case 136825:case 136888:case 136920:case 140370:case 140409:case 140472:case 140504:case 141394:case 141408:case 141431:case 141433:case 141496:case 141514:case 141528:case 141556:case 141568:Zr();break;case-3:break;default:Hr()}}function Pr(){Vl.startNonterminal(\"AxisStep\",Pl);switch(Hl){case 73:case 74:case 206:case 212:case 213:Ll(241);break;default:_l=Hl}switch(_l){case 45:case 26185:case 26186:case 26318:case 26324:case 26325:Ur();break;default:Br()}kl(237),Nl(),ni(),Vl.endNonterminal(\"AxisStep\",Pl)}function Hr(){switch(Hl){case 73:case 74:case 206:case 212:case 213:Ll(241);break;default:_l=Hl}switch(_l){case 45:case 26185:case 26186:case 26318:case 26324:case 26325:zr();break;default:jr()}kl(237),ri()}function Br(){Vl.startNonterminal(\"ForwardStep\",Pl);switch(Hl){case 82:Ll(244);break;case 93:case 111:case 112:case 135:case 136:case 229:Ll(241);break;default:_l=Hl}switch(_l){case 26194:case 26205:case 26223:case 26224:case 26247:case 26248:case 26341:Fr(),kl(256),Nl(),Jr();break;default:qr()}Vl.endNonterminal(\"ForwardStep\",Pl)}function jr(){switch(Hl){case 82:Ll(244);break;case 93:case 111:case 112:case 135:case 136:case 229:Ll(241);break;default:_l=Hl}switch(_l){case 26194:case 26205:case 26223:case 26224:case 26247:case 26248:case 26341:Ir(),kl(256),Kr();break;default:Rr()}}function Fr(){Vl.startNonterminal(\"ForwardAxis\",Pl);switch(Hl){case 93:Sl(93),kl(26),Sl(51);break;case 111:Sl(111),kl(26),Sl(51);break;case 82:Sl(82),kl(26),Sl(51);break;case 229:Sl(229),kl(26),Sl(51);break;case 112:Sl(112),kl(26),Sl(51);break;case 136:Sl(136),kl(26),Sl(51);break;default:Sl(135),kl(26),Sl(51)}Vl.endNonterminal(\"ForwardAxis\",Pl)}function Ir(){switch(Hl){case 93:xl(93),kl(26),xl(51);break;case 111:xl(111),kl(26),xl(51);break;case 82:xl(82),kl(26),xl(51);break;case 229:xl(229),kl(26),xl(51);break;case 112:xl(112),kl(26),xl(51);break;case 136:xl(136),kl(26),xl(51);break;default:xl(135),kl(26),xl(51)}}function qr(){Vl.startNonterminal(\"AbbrevForwardStep\",Pl),Hl==66&&Sl(66),kl(256),Nl(),Jr(),Vl.endNonterminal(\"AbbrevForwardStep\",Pl)}function Rr(){Hl==66&&xl(66),kl(256),Kr()}function Ur(){Vl.startNonterminal(\"ReverseStep\",Pl);switch(Hl){case 45:Vr();break;default:Wr(),kl(256),Nl(),Jr()}Vl.endNonterminal(\"ReverseStep\",Pl)}function zr(){switch(Hl){case 45:$r();break;default:Xr(),kl(256),Kr()}}function Wr(){Vl.startNonterminal(\"ReverseAxis\",Pl);switch(Hl){case 206:Sl(206),kl(26),Sl(51);break;case 73:Sl(73),kl(26),Sl(51);break;case 213:Sl(213),kl(26),Sl(51);break;case 212:Sl(212),kl(26),Sl(51);break;default:Sl(74),kl(26),Sl(51)}Vl.endNonterminal(\"ReverseAxis\",Pl)}function Xr(){switch(Hl){case 206:xl(206),kl(26),xl(51);break;case 73:xl(73),kl(26),xl(51);break;case 213:xl(213),kl(26),xl(51);break;case 212:xl(212),kl(26),xl(51);break;default:xl(74),kl(26),xl(51)}}function Vr(){Vl.startNonterminal(\"AbbrevReverseStep\",Pl),Sl(45),Vl.endNonterminal(\"AbbrevReverseStep\",Pl)}function $r(){xl(45)}function Jr(){Vl.startNonterminal(\"NodeTest\",Pl);switch(Hl){case 82:case 96:case 120:case 121:case 185:case 191:case 216:case 226:case 227:case 244:Ll(240);break;default:_l=Hl}switch(_l){case 17490:case 17504:case 17528:case 17529:case 17593:case 17599:case 17624:case 17634:case 17635:case 17652:Ps();break;default:Qr()}Vl.endNonterminal(\"NodeTest\",Pl)}function Kr(){switch(Hl){case 82:case 96:case 120:case 121:case 185:case 191:case 216:case 226:case 227:case 244:Ll(240);break;default:_l=Hl}switch(_l){case 17490:case 17504:case 17528:case 17529:case 17593:case 17599:case 17624:case 17634:case 17635:case 17652:Hs();break;default:Gr()}}function Qr(){Vl.startNonterminal(\"NameTest\",Pl);switch(Hl){case 5:Sl(5);break;default:Ha()}Vl.endNonterminal(\"NameTest\",Pl)}function Gr(){switch(Hl){case 5:xl(5);break;default:Ba()}}function Yr(){Vl.startNonterminal(\"PostfixExpr\",Pl),ol();for(;;){kl(240);if(Hl!=34&&Hl!=68)break;switch(Hl){case 68:Nl(),ii();break;default:Nl(),ei()}}Vl.endNonterminal(\"PostfixExpr\",Pl)}function Zr(){ul();for(;;){kl(240);if(Hl!=34&&Hl!=68)break;switch(Hl){case 68:si();break;default:ti()}}}function ei(){Vl.startNonterminal(\"ArgumentList\",Pl),Sl(34),kl(275);if(Hl!=37){Nl(),Ti();for(;;){kl(101);if(Hl!=41)break;Sl(41),kl(270),Nl(),Ti()}}Sl(37),Vl.endNonterminal(\"ArgumentList\",Pl)}function ti(){xl(34),kl(275);if(Hl!=37){Ni();for(;;){kl(101);if(Hl!=41)break;xl(41),kl(270),Ni()}}xl(37)}function ni(){Vl.startNonterminal(\"PredicateList\",Pl);for(;;){kl(237);if(Hl!=68)break;Nl(),ii()}Vl.endNonterminal(\"PredicateList\",Pl)}function ri(){for(;;){kl(237);if(Hl!=68)break;si()}}function ii(){Vl.startNonterminal(\"Predicate\",Pl),Sl(68),kl(266),Nl(),G(),Sl(69),Vl.endNonterminal(\"Predicate\",Pl)}function si(){xl(68),kl(266),Y(),xl(69)}function oi(){Vl.startNonterminal(\"Literal\",Pl);switch(Hl){case 11:Sl(11);break;default:ai()}Vl.endNonterminal(\"Literal\",Pl)}function ui(){switch(Hl){case 11:xl(11);break;default:fi()}}function ai(){Vl.startNonterminal(\"NumericLiteral\",Pl);switch(Hl){case 8:Sl(8);break;case 9:Sl(9);break;default:Sl(10)}Vl.endNonterminal(\"NumericLiteral\",Pl)}function fi(){switch(Hl){case 8:xl(8);break;case 9:xl(9);break;default:xl(10)}}function li(){Vl.startNonterminal(\"VarRef\",Pl),Sl(31),kl(254),Nl(),hi(),Vl.endNonterminal(\"VarRef\",Pl)}function ci(){xl(31),kl(254),pi()}function hi(){Vl.startNonterminal(\"VarName\",Pl),Ha(),Vl.endNonterminal(\"VarName\",Pl)}function pi(){Ba()}function di(){Vl.startNonterminal(\"ParenthesizedExpr\",Pl),Sl(34),kl(268),Hl!=37&&(Nl(),G()),Sl(37),Vl.endNonterminal(\"ParenthesizedExpr\",Pl)}function vi(){xl(34),kl(268),Hl!=37&&Y(),xl(37)}function mi(){Vl.startNonterminal(\"ContextItemExpr\",Pl),Sl(44),Vl.endNonterminal(\"ContextItemExpr\",Pl)}function gi(){xl(44)}function yi(){Vl.startNonterminal(\"OrderedExpr\",Pl),Sl(202),kl(87),Sl(276),kl(266),Nl(),G(),Sl(282),Vl.endNonterminal(\"OrderedExpr\",Pl)}function bi(){xl(202),kl(87),xl(276),kl(266),Y(),xl(282)}function wi(){Vl.startNonterminal(\"UnorderedExpr\",Pl),Sl(256),kl(87),Sl(276),kl(266),Nl(),G(),Sl(282),Vl.endNonterminal(\"UnorderedExpr\",Pl)}function Ei(){xl(256),kl(87),xl(276),kl(266),Y(),xl(282)}function Si(){Vl.startNonterminal(\"FunctionCall\",Pl),ja(),kl(22),Nl(),ei(),Vl.endNonterminal(\"FunctionCall\",Pl)}function xi(){Fa(),kl(22),ti()}function Ti(){Vl.startNonterminal(\"Argument\",Pl);switch(Hl){case 64:Ci();break;default:_f()}Vl.endNonterminal(\"Argument\",Pl)}function Ni(){switch(Hl){case 64:ki();break;default:Df()}}function Ci(){Vl.startNonterminal(\"ArgumentPlaceholder\",Pl),Sl(64),Vl.endNonterminal(\"ArgumentPlaceholder\",Pl)}function ki(){xl(64)}function Li(){Vl.startNonterminal(\"Constructor\",Pl);switch(Hl){case 54:case 55:case 59:Oi();break;default:Ji()}Vl.endNonterminal(\"Constructor\",Pl)}function Ai(){switch(Hl){case 54:case 55:case 59:Mi();break;default:Ki()}}function Oi(){Vl.startNonterminal(\"DirectConstructor\",Pl);switch(Hl){case 54:_i();break;case 55:Wi();break;default:Vi()}Vl.endNonterminal(\"DirectConstructor\",Pl)}function Mi(){switch(Hl){case 54:Di();break;case 55:Xi();break;default:$i()}}function _i(){Vl.startNonterminal(\"DirElemConstructor\",Pl),Sl(54),Al(4),Sl(20),Pi();switch(Hl){case 48:Sl(48);break;default:Sl(61);for(;;){Al(174);if(Hl==56)break;Ui()}Sl(56),Al(4),Sl(20),Al(12),Hl==21&&Sl(21),Al(8),Sl(61)}Vl.endNonterminal(\"DirElemConstructor\",Pl)}function Di(){xl(54),Al(4),xl(20),Hi();switch(Hl){case 48:xl(48);break;default:xl(61);for(;;){Al(174);if(Hl==56)break;zi()}xl(56),Al(4),xl(20),Al(12),Hl==21&&xl(21),Al(8),xl(61)}}function Pi(){Vl.startNonterminal(\"DirAttributeList\",Pl);for(;;){Al(19);if(Hl!=21)break;Sl(21),Al(91),Hl==20&&(Sl(20),Al(11),Hl==21&&Sl(21),Al(7),Sl(60),Al(18),Hl==21&&Sl(21),Bi())}Vl.endNonterminal(\"DirAttributeList\",Pl)}function Hi(){for(;;){Al(19);if(Hl!=21)break;xl(21),Al(91),Hl==20&&(xl(20),Al(11),Hl==21&&xl(21),Al(7),xl(60),Al(18),Hl==21&&xl(21),ji())}}function Bi(){Vl.startNonterminal(\"DirAttributeValue\",Pl),Al(14);switch(Hl){case 28:Sl(28);for(;;){Al(167);if(Hl==28)break;switch(Hl){case 13:Sl(13);break;default:Fi()}}Sl(28);break;default:Sl(33);for(;;){Al(168);if(Hl==33)break;switch(Hl){case 14:Sl(14);break;default:qi()}}Sl(33)}Vl.endNonterminal(\"DirAttributeValue\",Pl)}function ji(){Al(14);switch(Hl){case 28:xl(28);for(;;){Al(167);if(Hl==28)break;switch(Hl){case 13:xl(13);break;default:Ii()}}xl(28);break;default:xl(33);for(;;){Al(168);if(Hl==33)break;switch(Hl){case 14:xl(14);break;default:Ri()}}xl(33)}}function Fi(){Vl.startNonterminal(\"QuotAttrValueContent\",Pl);switch(Hl){case 16:Sl(16);break;default:Vf()}Vl.endNonterminal(\"QuotAttrValueContent\",Pl)}function Ii(){switch(Hl){case 16:xl(16);break;default:$f()}}function qi(){Vl.startNonterminal(\"AposAttrValueContent\",Pl);switch(Hl){case 17:Sl(17);break;default:Vf()}Vl.endNonterminal(\"AposAttrValueContent\",Pl)}function Ri(){switch(Hl){case 17:xl(17);break;default:$f()}}function Ui(){Vl.startNonterminal(\"DirElemContent\",Pl);switch(Hl){case 54:case 55:case 59:Oi();break;case 4:Sl(4);break;case 15:Sl(15);break;default:Vf()}Vl.endNonterminal(\"DirElemContent\",Pl)}function zi(){switch(Hl){case 54:case 55:case 59:Mi();break;case 4:xl(4);break;case 15:xl(15);break;default:$f()}}function Wi(){Vl.startNonterminal(\"DirCommentConstructor\",Pl),Sl(55),Al(1),Sl(2),Al(6),Sl(43),Vl.endNonterminal(\"DirCommentConstructor\",Pl)}function Xi(){xl(55),Al(1),xl(2),Al(6),xl(43)}function Vi(){Vl.startNonterminal(\"DirPIConstructor\",Pl),Sl(59),Al(3),Sl(18),Al(13),Hl==21&&(Sl(21),Al(2),Sl(3)),Al(9),Sl(65),Vl.endNonterminal(\"DirPIConstructor\",Pl)}function $i(){xl(59),Al(3),xl(18),Al(13),Hl==21&&(xl(21),Al(2),xl(3)),Al(9),xl(65)}function Ji(){Vl.startNonterminal(\"ComputedConstructor\",Pl);switch(Hl){case 119:Qf();break;case 121:Qi();break;case 82:Yf();break;case 184:Yi();break;case 244:il();break;case 96:nl();break;default:el()}Vl.endNonterminal(\"ComputedConstructor\",Pl)}function Ki(){switch(Hl){case 119:Gf();break;case 121:Gi();break;case 82:Zf();break;case 184:Zi();break;case 244:sl();break;case 96:rl();break;default:tl()}}function Qi(){Vl.startNonterminal(\"CompElemConstructor\",Pl),Sl(121),kl(257);switch(Hl){case 276:Sl(276),kl(266),Nl(),G(),Sl(282);break;default:Nl(),Ha()}kl(87),Sl(276),kl(276),Hl!=282&&(Nl(),Jf()),Sl(282),Vl.endNonterminal(\"CompElemConstructor\",Pl)}function Gi(){xl(121),kl(257);switch(Hl){case 276:xl(276),kl(266),Y(),xl(282);break;default:Ba()}kl(87),xl(276),kl(276),Hl!=282&&Kf(),xl(282)}function Yi(){Vl.startNonterminal(\"CompNamespaceConstructor\",Pl),Sl(184),kl(250);switch(Hl){case 276:Sl(276),kl(266),Nl(),ns(),Sl(282);break;default:Nl(),es()}kl(87),Sl(276),kl(266),Nl(),is(),Sl(282),Vl.endNonterminal(\"CompNamespaceConstructor\",Pl)}function Zi(){xl(184),kl(250);switch(Hl){case 276:xl(276),kl(266),rs(),xl(282);break;default:ts()}kl(87),xl(276),kl(266),ss(),xl(282)}function es(){Vl.startNonterminal(\"Prefix\",Pl),Ia(),Vl.endNonterminal(\"Prefix\",Pl)}function ts(){qa()}function ns(){Vl.startNonterminal(\"PrefixExpr\",Pl),G(),Vl.endNonterminal(\"PrefixExpr\",Pl)}function rs(){Y()}function is(){Vl.startNonterminal(\"URIExpr\",Pl),G(),Vl.endNonterminal(\"URIExpr\",Pl)}function ss(){Y()}function os(){Vl.startNonterminal(\"FunctionItemExpr\",Pl);switch(Hl){case 145:Ll(92);break;default:_l=Hl}switch(_l){case 32:case 17553:ls();break;default:as()}Vl.endNonterminal(\"FunctionItemExpr\",Pl)}function us(){switch(Hl){case 145:Ll(92);break;default:_l=Hl}switch(_l){case 32:case 17553:cs();break;default:fs()}}function as(){Vl.startNonterminal(\"NamedFunctionRef\",Pl),Ha(),kl(20),Sl(29),kl(16),Sl(8),Vl.endNonterminal(\"NamedFunctionRef\",Pl)}function fs(){Ba(),kl(20),xl(29),kl(16),xl(8)}function ls(){Vl.startNonterminal(\"InlineFunctionExpr\",Pl);for(;;){kl(97);if(Hl!=32)break;Nl(),B()}Sl(145),kl(22),Sl(34),kl(94),Hl==31&&(Nl(),U()),Sl(37),kl(111),Hl==79&&(Sl(79),kl(259),Nl(),ms()),kl(87),Nl(),V(),Vl.endNonterminal(\"InlineFunctionExpr\",Pl)}function cs(){for(;;){kl(97);if(Hl!=32)break;j()}xl(145),kl(22),xl(34),kl(94),Hl==31&&z(),xl(37),kl(111),Hl==79&&(xl(79),kl(259),gs()),kl(87),$()}function hs(){Vl.startNonterminal(\"SingleType\",Pl),vo(),kl(226),Hl==64&&Sl(64),Vl.endNonterminal(\"SingleType\",Pl)}function ps(){mo(),kl(226),Hl==64&&xl(64)}function ds(){Vl.startNonterminal(\"TypeDeclaration\",Pl),Sl(79),kl(259),Nl(),ms(),Vl.endNonterminal(\"TypeDeclaration\",Pl)}function vs(){xl(79),kl(259),gs()}function ms(){Vl.startNonterminal(\"SequenceType\",Pl);switch(Hl){case 124:Ll(242);break;default:_l=Hl}switch(_l){case 17532:Sl(124),kl(22),Sl(34),kl(23),Sl(37);break;default:ws(),kl(238);switch(Hl){case 39:case 40:case 64:Nl(),ys();break;default:}}Vl.endNonterminal(\"SequenceType\",Pl)}function gs(){switch(Hl){case 124:Ll(242);break;default:_l=Hl}switch(_l){case 17532:xl(124),kl(22),xl(34),kl(23),xl(37);break;default:Es(),kl(238);switch(Hl){case 39:case 40:case 64:bs();break;default:}}}function ys(){Vl.startNonterminal(\"OccurrenceIndicator\",Pl);switch(Hl){case 64:Sl(64);break;case 39:Sl(39);break;default:Sl(40)}Vl.endNonterminal(\"OccurrenceIndicator\",Pl)}function bs(){switch(Hl){case 64:xl(64);break;case 39:xl(39);break;default:xl(40)}}function ws(){Vl.startNonterminal(\"ItemType\",Pl);switch(Hl){case 78:case 82:case 96:case 120:case 121:case 145:case 165:case 167:case 185:case 191:case 194:case 216:case 226:case 227:case 242:case 244:Ll(242);break;default:_l=Hl}switch(_l){case 17490:case 17504:case 17528:case 17529:case 17593:case 17599:case 17624:case 17634:case 17635:case 17652:Ps();break;case 17573:Sl(165),kl(22),Sl(34),kl(23),Sl(37);break;case 32:case 17553:bo();break;case 34:No();break;case 17486:case 17575:case 17602:Ss();break;case 17650:Ts();break;default:_s()}Vl.endNonterminal(\"ItemType\",Pl)}function Es(){switch(Hl){case 78:case 82:case 96:case 120:case 121:case 145:case 165:case 167:case 185:case 191:case 194:case 216:case 226:case 227:case 242:case 244:Ll(242);break;default:_l=Hl}switch(_l){case 17490:case 17504:case 17528:case 17529:case 17593:case 17599:case 17624:case 17634:case 17635:case 17652:Hs();break;case 17573:xl(165),kl(22),xl(34),kl(23),xl(37);break;case 32:case 17553:wo();break;case 34:Co();break;case 17486:case 17575:case 17602:xs();break;case 17650:Ns();break;default:Ds()}}function Ss(){Vl.startNonterminal(\"JSONTest\",Pl);switch(Hl){case 167:Cs();break;case 194:Ls();break;default:Os()}Vl.endNonterminal(\"JSONTest\",Pl)}function xs(){switch(Hl){case 167:ks();break;case 194:As();break;default:Ms()}}function Ts(){Vl.startNonterminal(\"StructuredItemTest\",Pl),Sl(242),kl(22),Sl(34),kl(23),Sl(37),Vl.endNonterminal(\"StructuredItemTest\",Pl)}function Ns(){xl(242),kl(22),xl(34),kl(23),xl(37)}function Cs(){Vl.startNonterminal(\"JSONItemTest\",Pl),Sl(167),kl(22),Sl(34),kl(23),Sl(37),Vl.endNonterminal(\"JSONItemTest\",Pl)}function ks(){xl(167),kl(22),xl(34),kl(23),xl(37)}function Ls(){Vl.startNonterminal(\"JSONObjectTest\",Pl),Sl(194),kl(22),Sl(34),kl(23),Sl(37),Vl.endNonterminal(\"JSONObjectTest\",Pl)}function As(){xl(194),kl(22),xl(34),kl(23),xl(37)}function Os(){Vl.startNonterminal(\"JSONArrayTest\",Pl),Sl(78),kl(22),Sl(34),kl(23),Sl(37),Vl.endNonterminal(\"JSONArrayTest\",Pl)}function Ms(){xl(78),kl(22),xl(34),kl(23),xl(37)}function _s(){Vl.startNonterminal(\"AtomicOrUnionType\",Pl),Ha(),Vl.endNonterminal(\"AtomicOrUnionType\",Pl)}function Ds(){Ba()}function Ps(){Vl.startNonterminal(\"KindTest\",Pl);switch(Hl){case 120:Fs();break;case 121:no();break;case 82:Js();break;case 227:oo();break;case 226:Ys();break;case 216:Vs();break;case 96:Us();break;case 244:qs();break;case 185:Ws();break;default:Bs()}Vl.endNonterminal(\"KindTest\",Pl)}function Hs(){switch(Hl){case 120:Is();break;case 121:ro();break;case 82:Ks();break;case 227:uo();break;case 226:Zs();break;case 216:$s();break;case 96:zs();break;case 244:Rs();break;case 185:Xs();break;default:js()}}function Bs(){Vl.startNonterminal(\"AnyKindTest\",Pl),Sl(191),kl(22),Sl(34),kl(23),Sl(37),Vl.endNonterminal(\"AnyKindTest\",Pl)}function js(){xl(191),kl(22),xl(34),kl(23),xl(37)}function Fs(){Vl.startNonterminal(\"DocumentTest\",Pl),Sl(120),kl(22),Sl(34),kl(144);if(Hl!=37)switch(Hl){case 121:Nl(),no();break;default:Nl(),oo()}kl(23),Sl(37),Vl.endNonterminal(\"DocumentTest\",Pl)}function Is(){xl(120),kl(22),xl(34),kl(144);if(Hl!=37)switch(Hl){case 121:ro();break;default:uo()}kl(23),xl(37)}function qs(){Vl.startNonterminal(\"TextTest\",Pl),Sl(244),kl(22),Sl(34),kl(23),Sl(37),Vl.endNonterminal(\"TextTest\",Pl)}function Rs(){xl(244),kl(22),xl(34),kl(23),xl(37)}function Us(){Vl.startNonterminal(\"CommentTest\",Pl),Sl(96),kl(22),Sl(34),kl(23),Sl(37),Vl.endNonterminal(\"CommentTest\",Pl)}function zs(){xl(96),kl(22),xl(34),kl(23),xl(37)}function Ws(){Vl.startNonterminal(\"NamespaceNodeTest\",Pl),Sl(185),kl(22),Sl(34),kl(23),Sl(37),Vl.endNonterminal(\"NamespaceNodeTest\",Pl)}function Xs(){xl(185),kl(22),xl(34),kl(23),xl(37)}function Vs(){Vl.startNonterminal(\"PITest\",Pl),Sl(216),kl(22),Sl(34),kl(252);if(Hl!=37)switch(Hl){case 11:Sl(11);break;default:Nl(),Ia()}kl(23),Sl(37),Vl.endNonterminal(\"PITest\",Pl)}function $s(){xl(216),kl(22),xl(34),kl(252);if(Hl!=37)switch(Hl){case 11:xl(11);break;default:qa()}kl(23),xl(37)}function Js(){Vl.startNonterminal(\"AttributeTest\",Pl),Sl(82),kl(22),Sl(34),kl(260),Hl!=37&&(Nl(),Qs(),kl(101),Hl==41&&(Sl(41),kl(254),Nl(),go())),kl(23),Sl(37),Vl.endNonterminal(\"AttributeTest\",Pl)}function Ks(){xl(82),kl(22),xl(34),kl(260),Hl!=37&&(Gs(),kl(101),Hl==41&&(xl(41),kl(254),yo())),kl(23),xl(37)}function Qs(){Vl.startNonterminal(\"AttribNameOrWildcard\",Pl);switch(Hl){case 38:Sl(38);break;default:lo()}Vl.endNonterminal(\"AttribNameOrWildcard\",Pl)}function Gs(){switch(Hl){case 38:xl(38);break;default:co()}}function Ys(){Vl.startNonterminal(\"SchemaAttributeTest\",Pl),Sl(226),kl(22),Sl(34),kl(254),Nl(),eo(),kl(23),Sl(37),Vl.endNonterminal(\"SchemaAttributeTest\",Pl)}function Zs(){xl(226),kl(22),xl(34),kl(254),to(),kl(23),xl(37)}function eo(){Vl.startNonterminal(\"AttributeDeclaration\",Pl),lo(),Vl.endNonterminal(\"AttributeDeclaration\",Pl)}function to(){co()}function no(){Vl.startNonterminal(\"ElementTest\",Pl),Sl(121),kl(22),Sl(34),kl(260),Hl!=37&&(Nl(),io(),kl(101),Hl==41&&(Sl(41),kl(254),Nl(),go(),kl(102),Hl==64&&Sl(64))),kl(23),Sl(37),Vl.endNonterminal(\"ElementTest\",Pl)}function ro(){xl(121),kl(22),xl(34),kl(260),Hl!=37&&(so(),kl(101),Hl==41&&(xl(41),kl(254),yo(),kl(102),Hl==64&&xl(64))),kl(23),xl(37)}function io(){Vl.startNonterminal(\"ElementNameOrWildcard\",Pl);switch(Hl){case 38:Sl(38);break;default:ho()}Vl.endNonterminal(\"ElementNameOrWildcard\",Pl)}function so(){switch(Hl){case 38:xl(38);break;default:po()}}function oo(){Vl.startNonterminal(\"SchemaElementTest\",Pl),Sl(227),kl(22),Sl(34),kl(254),Nl(),ao(),kl(23),Sl(37),Vl.endNonterminal(\"SchemaElementTest\",Pl)}function uo(){xl(227),kl(22),xl(34),kl(254),fo(),kl(23),xl(37)}function ao(){Vl.startNonterminal(\"ElementDeclaration\",Pl),ho(),Vl.endNonterminal(\"ElementDeclaration\",Pl)}function fo(){po()}function lo(){Vl.startNonterminal(\"AttributeName\",Pl),Ha(),Vl.endNonterminal(\"AttributeName\",Pl)}function co(){Ba()}function ho(){Vl.startNonterminal(\"ElementName\",Pl),Ha(),Vl.endNonterminal(\"ElementName\",Pl)}function po(){Ba()}function vo(){Vl.startNonterminal(\"SimpleTypeName\",Pl),go(),Vl.endNonterminal(\"SimpleTypeName\",Pl)}function mo(){yo()}function go(){Vl.startNonterminal(\"TypeName\",Pl),Ha(),Vl.endNonterminal(\"TypeName\",Pl)}function yo(){Ba()}function bo(){Vl.startNonterminal(\"FunctionTest\",Pl);for(;;){kl(97);if(Hl!=32)break;Nl(),B()}switch(Hl){case 145:Ll(22);break;default:_l=Hl}_l=Kl(5,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{So(),_l=-1}catch(a){_l=-2}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(5,Pl,_l)}switch(_l){case-1:Nl(),Eo();break;default:Nl(),xo()}Vl.endNonterminal(\"FunctionTest\",Pl)}function wo(){for(;;){kl(97);if(Hl!=32)break;j()}switch(Hl){case 145:Ll(22);break;default:_l=Hl}_l=Kl(5,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{So(),Jl(5,t,-1),_l=-3}catch(a){_l=-2,Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(5,t,-2)}}switch(_l){case-1:So();break;case-3:break;default:To()}}function Eo(){Vl.startNonterminal(\"AnyFunctionTest\",Pl),Sl(145),kl(22),Sl(34),kl(24),Sl(38),kl(23),Sl(37),Vl.endNonterminal(\"AnyFunctionTest\",Pl)}function So(){xl(145),kl(22),xl(34),kl(24),xl(38),kl(23),xl(37)}function xo(){Vl.startNonterminal(\"TypedFunctionTest\",Pl),Sl(145),kl(22),Sl(34),kl(262);if(Hl!=37){Nl(),ms();for(;;){kl(101);if(Hl!=41)break;Sl(41),kl(259),Nl(),ms()}}Sl(37),kl(30),Sl(79),kl(259),Nl(),ms(),Vl.endNonterminal(\"TypedFunctionTest\",Pl)}function To(){xl(145),kl(22),xl(34),kl(262);if(Hl!=37){gs();for(;;){kl(101);if(Hl!=41)break;xl(41),kl(259),gs()}}xl(37),kl(30),xl(79),kl(259),gs()}function No(){Vl.startNonterminal(\"ParenthesizedItemType\",Pl),Sl(34),kl(259),Nl(),ws(),kl(23),Sl(37),Vl.endNonterminal(\"ParenthesizedItemType\",Pl)}function Co(){xl(34),kl(259),Es(),kl(23),xl(37)}function ko(){Vl.startNonterminal(\"RevalidationDecl\",Pl),Sl(108),kl(72),Sl(222),kl(152);switch(Hl){case 240:Sl(240);break;case 171:Sl(171);break;default:Sl(233)}Vl.endNonterminal(\"RevalidationDecl\",Pl)}function Lo(){Vl.startNonterminal(\"InsertExprTargetChoice\",Pl);switch(Hl){case 70:Sl(70);break;case 84:Sl(84);break;default:if(Hl==79){Sl(79),kl(119);switch(Hl){case 134:Sl(134);break;default:Sl(170)}}kl(54),Sl(163)}Vl.endNonterminal(\"InsertExprTargetChoice\",Pl)}function Ao(){switch(Hl){case 70:xl(70);break;case 84:xl(84);break;default:if(Hl==79){xl(79),kl(119);switch(Hl){case 134:xl(134);break;default:xl(170)}}kl(54),xl(163)}}function Oo(){Vl.startNonterminal(\"InsertExpr\",Pl),Sl(159),kl(129);switch(Hl){case 191:Sl(191);break;default:Sl(192)}kl(266),Nl(),Fo(),Nl(),Lo(),kl(266),Nl(),qo(),Vl.endNonterminal(\"InsertExpr\",Pl)}function Mo(){xl(159),kl(129);switch(Hl){case 191:xl(191);break;default:xl(192)}kl(266),Io(),Ao(),kl(266),Ro()}function _o(){Vl.startNonterminal(\"DeleteExpr\",Pl),Sl(110),kl(129);switch(Hl){case 191:Sl(191);break;default:Sl(192)}kl(266),Nl(),qo(),Vl.endNonterminal(\"DeleteExpr\",Pl)}function Do(){xl(110),kl(129);switch(Hl){case 191:xl(191);break;default:xl(192)}kl(266),Ro()}function Po(){Vl.startNonterminal(\"ReplaceExpr\",Pl),Sl(219),kl(130),Hl==261&&(Sl(261),kl(64),Sl(196)),kl(62),Sl(191),kl(266),Nl(),qo(),Sl(270),kl(266),Nl(),_f(),Vl.endNonterminal(\"ReplaceExpr\",Pl)}function Ho(){xl(219),kl(130),Hl==261&&(xl(261),kl(64),xl(196)),kl(62),xl(191),kl(266),Ro(),xl(270),kl(266),Df()}function Bo(){Vl.startNonterminal(\"RenameExpr\",Pl),Sl(218),kl(62),Sl(191),kl(266),Nl(),qo(),Sl(79),kl(266),Nl(),Uo(),Vl.endNonterminal(\"RenameExpr\",Pl)}function jo(){xl(218),kl(62),xl(191),kl(266),Ro(),xl(79),kl(266),zo()}function Fo(){Vl.startNonterminal(\"SourceExpr\",Pl),_f(),Vl.endNonterminal(\"SourceExpr\",Pl)}function Io(){Df()}function qo(){Vl.startNonterminal(\"TargetExpr\",Pl),_f(),Vl.endNonterminal(\"TargetExpr\",Pl)}function Ro(){Df()}function Uo(){Vl.startNonterminal(\"NewNameExpr\",Pl),_f(),Vl.endNonterminal(\"NewNameExpr\",Pl)}function zo(){Df()}function Wo(){Vl.startNonterminal(\"TransformExpr\",Pl),Sl(103),kl(21),Nl(),Vo();for(;;){if(Hl!=41)break;Sl(41),kl(21),Nl(),Vo()}Sl(181),kl(266),Nl(),_f(),Sl(220),kl(266),Nl(),_f(),Vl.endNonterminal(\"TransformExpr\",Pl)}function Xo(){xl(103),kl(21),$o();for(;;){if(Hl!=41)break;xl(41),kl(21),$o()}xl(181),kl(266),Df(),xl(220),kl(266),Df()}function Vo(){Vl.startNonterminal(\"TransformSpec\",Pl),Sl(31),kl(254),Nl(),hi(),kl(27),Sl(52),kl(266),Nl(),_f(),Vl.endNonterminal(\"TransformSpec\",Pl)}function $o(){xl(31),kl(254),pi(),kl(27),xl(52),kl(266),Df()}function Jo(){Vl.startNonterminal(\"FTSelection\",Pl),Yo();for(;;){kl(211);switch(Hl){case 81:Ll(151);break;default:_l=Hl}if(_l!=115&&_l!=117&&_l!=127&&_l!=202&&_l!=223&&_l!=269&&_l!=64593&&_l!=121425)break;Nl(),Su()}Vl.endNonterminal(\"FTSelection\",Pl)}function Ko(){Zo();for(;;){kl(211);switch(Hl){case 81:Ll(151);break;default:_l=Hl}if(_l!=115&&_l!=117&&_l!=127&&_l!=202&&_l!=223&&_l!=269&&_l!=64593&&_l!=121425)break;xu()}}function Qo(){Vl.startNonterminal(\"FTWeight\",Pl),Sl(264),kl(87),Sl(276),kl(266),Nl(),G(),Sl(282),Vl.endNonterminal(\"FTWeight\",Pl)}function Go(){xl(264),kl(87),xl(276),kl(266),Y(),xl(282)}function Yo(){Vl.startNonterminal(\"FTOr\",Pl),eu();for(;;){if(Hl!=144)break;Sl(144),kl(162),Nl(),eu()}Vl.endNonterminal(\"FTOr\",Pl)}function Zo(){tu();for(;;){if(Hl!=144)break;xl(144),kl(162),tu()}}function eu(){Vl.startNonterminal(\"FTAnd\",Pl),nu();for(;;){if(Hl!=142)break;Sl(142),kl(162),Nl(),nu()}Vl.endNonterminal(\"FTAnd\",Pl)}function tu(){ru();for(;;){if(Hl!=142)break;xl(142),kl(162),ru()}}function nu(){Vl.startNonterminal(\"FTMildNot\",Pl),iu();for(;;){kl(212);if(Hl!=193)break;Sl(193),kl(53),Sl(154),kl(162),Nl(),iu()}Vl.endNonterminal(\"FTMildNot\",Pl)}function ru(){su();for(;;){kl(212);if(Hl!=193)break;xl(193),kl(53),xl(154),kl(162),su()}}function iu(){Vl.startNonterminal(\"FTUnaryNot\",Pl),Hl==143&&Sl(143),kl(155),Nl(),ou(),Vl.endNonterminal(\"FTUnaryNot\",Pl)}function su(){Hl==143&&xl(143),kl(155),uu()}function ou(){Vl.startNonterminal(\"FTPrimaryWithOptions\",Pl),au(),kl(214),Hl==259&&(Nl(),Fu()),Hl==264&&(Nl(),Qo()),Vl.endNonterminal(\"FTPrimaryWithOptions\",Pl)}function uu(){fu(),kl(214),Hl==259&&Iu(),Hl==264&&Go()}function au(){Vl.startNonterminal(\"FTPrimary\",Pl);switch(Hl){case 34:Sl(34),kl(162),Nl(),Jo(),Sl(37);break;case 35:du();break;default:lu(),kl(215),Hl==195&&(Nl(),yu())}Vl.endNonterminal(\"FTPrimary\",Pl)}function fu(){switch(Hl){case 34:xl(34),kl(162),Ko(),xl(37);break;case 35:vu();break;default:cu(),kl(215),Hl==195&&bu()}}function lu(){Vl.startNonterminal(\"FTWords\",Pl),hu(),kl(221);if(Hl==71||Hl==76||Hl==210)Nl(),mu();Vl.endNonterminal(\"FTWords\",Pl)}function cu(){pu(),kl(221),(Hl==71||Hl==76||Hl==210)&&gu()}function hu(){Vl.startNonterminal(\"FTWordsValue\",Pl);switch(Hl){case 11:Sl(11);break;default:Sl(276),kl(266),Nl(),G(),Sl(282)}Vl.endNonterminal(\"FTWordsValue\",Pl)}function pu(){switch(Hl){case 11:xl(11);break;default:xl(276),kl(266),Y(),xl(282)}}function du(){Vl.startNonterminal(\"FTExtensionSelection\",Pl);for(;;){Nl(),Cr(),kl(100);if(Hl!=35)break}Sl(276),kl(166),Hl!=282&&(Nl(),Jo()),Sl(282),Vl.endNonterminal(\"FTExtensionSelection\",Pl)}function vu(){for(;;){kr(),kl(100);if(Hl!=35)break}xl(276),kl(166),Hl!=282&&Ko(),xl(282)}function mu(){Vl.startNonterminal(\"FTAnyallOption\",Pl);switch(Hl){case 76:Sl(76),kl(218),Hl==272&&Sl(272);break;case 71:Sl(71),kl(219),Hl==273&&Sl(273);break;default:Sl(210)}Vl.endNonterminal(\"FTAnyallOption\",Pl)}function gu(){switch(Hl){case 76:xl(76),kl(218),Hl==272&&xl(272);break;case 71:xl(71),kl(219),Hl==273&&xl(273);break;default:xl(210)}}function yu(){Vl.startNonterminal(\"FTTimes\",Pl),Sl(195),kl(149),Nl(),wu(),Sl(247),Vl.endNonterminal(\"FTTimes\",Pl)}function bu(){xl(195),kl(149),Eu(),xl(247)}function wu(){Vl.startNonterminal(\"FTRange\",Pl);switch(Hl){case 130:Sl(130),kl(266),Nl(),Vn();break;case 81:Sl(81),kl(125);switch(Hl){case 173:Sl(173),kl(266),Nl(),Vn();break;default:Sl(183),kl(266),Nl(),Vn()}break;default:Sl(140),kl(266),Nl(),Vn(),Sl(248),kl(266),Nl(),Vn()}Vl.endNonterminal(\"FTRange\",Pl)}function Eu(){switch(Hl){case 130:xl(130),kl(266),$n();break;case 81:xl(81),kl(125);switch(Hl){case 173:xl(173),kl(266),$n();break;default:xl(183),kl(266),$n()}break;default:xl(140),kl(266),$n(),xl(248),kl(266),$n()}}function Su(){Vl.startNonterminal(\"FTPosFilter\",Pl);switch(Hl){case 202:Tu();break;case 269:Cu();break;case 117:Lu();break;case 115:case 223:_u();break;default:Bu()}Vl.endNonterminal(\"FTPosFilter\",Pl)}function xu(){switch(Hl){case 202:Nu();break;case 269:ku();break;case 117:Au();break;case 115:case 223:Du();break;default:ju()}}function Tu(){Vl.startNonterminal(\"FTOrder\",Pl),Sl(202),Vl.endNonterminal(\"FTOrder\",Pl)}function Nu(){xl(202)}function Cu(){Vl.startNonterminal(\"FTWindow\",Pl),Sl(269),kl(266),Nl(),Vn(),Nl(),Ou(),Vl.endNonterminal(\"FTWindow\",Pl)}function ku(){xl(269),kl(266),$n(),Mu()}function Lu(){Vl.startNonterminal(\"FTDistance\",Pl),Sl(117),kl(149),Nl(),wu(),Nl(),Ou(),Vl.endNonterminal(\"FTDistance\",Pl)}function Au(){xl(117),kl(149),Eu(),Mu()}function Ou(){Vl.startNonterminal(\"FTUnit\",Pl);switch(Hl){case 273:Sl(273);break;case 232:Sl(232);break;default:Sl(205)}Vl.endNonterminal(\"FTUnit\",Pl)}function Mu(){switch(Hl){case 273:xl(273);break;case 232:xl(232);break;default:xl(205)}}function _u(){Vl.startNonterminal(\"FTScope\",Pl);switch(Hl){case 223:Sl(223);break;default:Sl(115)}kl(132),Nl(),Pu(),Vl.endNonterminal(\"FTScope\",Pl)}function Du(){switch(Hl){case 223:xl(223);break;default:xl(115)}kl(132),Hu()}function Pu(){Vl.startNonterminal(\"FTBigUnit\",Pl);switch(Hl){case 231:Sl(231);break;default:Sl(204)}Vl.endNonterminal(\"FTBigUnit\",Pl)}function Hu(){switch(Hl){case 231:xl(231);break;default:xl(204)}}function Bu(){Vl.startNonterminal(\"FTContent\",Pl);switch(Hl){case 81:Sl(81),kl(117);switch(Hl){case 237:Sl(237);break;default:Sl(126)}break;default:Sl(127),kl(42),Sl(100)}Vl.endNonterminal(\"FTContent\",Pl)}function ju(){switch(Hl){case 81:xl(81),kl(117);switch(Hl){case 237:xl(237);break;default:xl(126)}break;default:xl(127),kl(42),xl(100)}}function Fu(){Vl.startNonterminal(\"FTMatchOptions\",Pl);for(;;){Sl(259),kl(181),Nl(),qu(),kl(214);if(Hl!=259)break}Vl.endNonterminal(\"FTMatchOptions\",Pl)}function Iu(){for(;;){xl(259),kl(181),Ru(),kl(214);if(Hl!=259)break}}function qu(){Vl.startNonterminal(\"FTMatchOption\",Pl);switch(Hl){case 188:Ll(161);break;default:_l=Hl}switch(_l){case 169:oa();break;case 268:case 137404:aa();break;case 246:case 126140:Ju();break;case 238:case 122044:Vu();break;case 114:Wu();break;case 239:case 122556:ea();break;case 199:la();break;default:Uu()}Vl.endNonterminal(\"FTMatchOption\",Pl)}function Ru(){switch(Hl){case 188:Ll(161);break;default:_l=Hl}switch(_l){case 169:ua();break;case 268:case 137404:fa();break;case 246:case 126140:Ku();break;case 238:case 122044:$u();break;case 114:Xu();break;case 239:case 122556:ta();break;case 199:ca();break;default:zu()}}function Uu(){Vl.startNonterminal(\"FTCaseOption\",Pl);switch(Hl){case 88:Sl(88),kl(124);switch(Hl){case 158:Sl(158);break;default:Sl(230)}break;case 177:Sl(177);break;default:Sl(258)}Vl.endNonterminal(\"FTCaseOption\",Pl)}function zu(){switch(Hl){case 88:xl(88),kl(124);switch(Hl){case 158:xl(158);break;default:xl(230)}break;case 177:xl(177);break;default:xl(258)}}function Wu(){Vl.startNonterminal(\"FTDiacriticsOption\",Pl),Sl(114),kl(124);switch(Hl){case 158:Sl(158);break;default:Sl(230)}Vl.endNonterminal(\"FTDiacriticsOption\",Pl)}function Xu(){xl(114),kl(124);switch(Hl){case 158:xl(158);break;default:xl(230)}}function Vu(){Vl.startNonterminal(\"FTStemOption\",Pl);switch(Hl){case 238:Sl(238);break;default:Sl(188),kl(74),Sl(238)}Vl.endNonterminal(\"FTStemOption\",Pl)}function $u(){switch(Hl){case 238:xl(238);break;default:xl(188),kl(74),xl(238)}}function Ju(){Vl.startNonterminal(\"FTThesaurusOption\",Pl);switch(Hl){case 246:Sl(246),kl(142);switch(Hl){case 81:Nl(),Qu();break;case 109:Sl(109);break;default:Sl(34),kl(112);switch(Hl){case 81:Nl(),Qu();break;default:Sl(109)}for(;;){kl(101);if(Hl!=41)break;Sl(41),kl(31),Nl(),Qu()}Sl(37)}break;default:Sl(188),kl(78),Sl(246)}Vl.endNonterminal(\"FTThesaurusOption\",Pl)}function Ku(){switch(Hl){case 246:xl(246),kl(142);switch(Hl){case 81:Gu();break;case 109:xl(109);break;default:xl(34),kl(112);switch(Hl){case 81:Gu();break;default:xl(109)}for(;;){kl(101);if(Hl!=41)break;xl(41),kl(31),Gu()}xl(37)}break;default:xl(188),kl(78),xl(246)}}function Qu(){Vl.startNonterminal(\"FTThesaurusID\",Pl),Sl(81),kl(15),Sl(7),kl(220),Hl==217&&(Sl(217),kl(17),Sl(11)),kl(216);switch(Hl){case 81:Ll(165);break;default:_l=Hl}if(_l==130||_l==140||_l==88657||_l==93777)Nl(),Yu(),kl(58),Sl(175);Vl.endNonterminal(\"FTThesaurusID\",Pl)}function Gu(){xl(81),kl(15),xl(7),kl(220),Hl==217&&(xl(217),kl(17),xl(11)),kl(216);switch(Hl){case 81:Ll(165);break;default:_l=Hl}if(_l==130||_l==140||_l==88657||_l==93777)Zu(),kl(58),xl(175)}function Yu(){Vl.startNonterminal(\"FTLiteralRange\",Pl);switch(Hl){case 130:Sl(130),kl(16),Sl(8);break;case 81:Sl(81),kl(125);switch(Hl){case 173:Sl(173),kl(16),Sl(8);break;default:Sl(183),kl(16),Sl(8)}break;default:Sl(140),kl(16),Sl(8),kl(79),Sl(248),kl(16),Sl(8)}Vl.endNonterminal(\"FTLiteralRange\",Pl)}function Zu(){switch(Hl){case 130:xl(130),kl(16),xl(8);break;case 81:xl(81),kl(125);switch(Hl){case 173:xl(173),kl(16),xl(8);break;default:xl(183),kl(16),xl(8)}break;default:xl(140),kl(16),xl(8),kl(79),xl(248),kl(16),xl(8)}}function ea(){Vl.startNonterminal(\"FTStopWordOption\",Pl);switch(Hl){case 239:Sl(239),kl(86),Sl(273),kl(142);switch(Hl){case 109:Sl(109);for(;;){kl(217);if(Hl!=131&&Hl!=254)break;Nl(),ia()}break;default:Nl(),na();for(;;){kl(217);if(Hl!=131&&Hl!=254)break;Nl(),ia()}}break;default:Sl(188),kl(75),Sl(239),kl(86),Sl(273)}Vl.endNonterminal(\"FTStopWordOption\",Pl)}function ta(){switch(Hl){case 239:xl(239),kl(86),xl(273),kl(142);switch(Hl){case 109:xl(109);for(;;){kl(217);if(Hl!=131&&Hl!=254)break;sa()}break;default:ra();for(;;){kl(217);if(Hl!=131&&Hl!=254)break;sa()}}break;default:xl(188),kl(75),xl(239),kl(86),xl(273)}}function na(){Vl.startNonterminal(\"FTStopWords\",Pl);switch(Hl){case 81:Sl(81),kl(15),Sl(7);break;default:Sl(34),kl(17),Sl(11);for(;;){kl(101);if(Hl!=41)break;Sl(41),kl(17),Sl(11)}Sl(37)}Vl.endNonterminal(\"FTStopWords\",Pl)}function ra(){switch(Hl){case 81:xl(81),kl(15),xl(7);break;default:xl(34),kl(17),xl(11);for(;;){kl(101);if(Hl!=41)break;xl(41),kl(17),xl(11)}xl(37)}}function ia(){Vl.startNonterminal(\"FTStopWordsInclExcl\",Pl);switch(Hl){case 254:Sl(254);break;default:Sl(131)}kl(99),Nl(),na(),Vl.endNonterminal(\"FTStopWordsInclExcl\",Pl)}function sa(){switch(Hl){case 254:xl(254);break;default:xl(131)}kl(99),ra()}function oa(){Vl.startNonterminal(\"FTLanguageOption\",Pl),Sl(169),kl(17),Sl(11),Vl.endNonterminal(\"FTLanguageOption\",Pl)}function ua(){xl(169),kl(17),xl(11)}function aa(){Vl.startNonterminal(\"FTWildCardOption\",Pl);switch(Hl){case 268:Sl(268);break;default:Sl(188),kl(84),Sl(268)}Vl.endNonterminal(\"FTWildCardOption\",Pl)}function fa(){switch(Hl){case 268:xl(268);break;default:xl(188),kl(84),xl(268)}}function la(){Vl.startNonterminal(\"FTExtensionOption\",Pl),Sl(199),kl(254),Nl(),Ha(),kl(17),Sl(11),Vl.endNonterminal(\"FTExtensionOption\",Pl)}function ca(){xl(199),kl(254),Ba(),kl(17),xl(11)}function ha(){Vl.startNonterminal(\"FTIgnoreOption\",Pl),Sl(271),kl(42),Sl(100),kl(266),Nl(),Qn(),Vl.endNonterminal(\"FTIgnoreOption\",Pl)}function pa(){xl(271),kl(42),xl(100),kl(266),Gn()}function da(){Vl.startNonterminal(\"CollectionDecl\",Pl),Sl(95),kl(254),Nl(),Ha(),kl(107),Hl==79&&(Nl(),va()),Vl.endNonterminal(\"CollectionDecl\",Pl)}function va(){Vl.startNonterminal(\"CollectionTypeDecl\",Pl),Sl(79),kl(259),Nl(),ws(),kl(156),Hl!=53&&(Nl(),ys()),Vl.endNonterminal(\"CollectionTypeDecl\",Pl)}function ma(){Vl.startNonterminal(\"IndexName\",Pl),Ha(),Vl.endNonterminal(\"IndexName\",Pl)}function ga(){Vl.startNonterminal(\"IndexDomainExpr\",Pl),Lr(),Vl.endNonterminal(\"IndexDomainExpr\",Pl)}function ya(){Vl.startNonterminal(\"IndexKeySpec\",Pl),ba(),Hl==79&&(Nl(),wa()),kl(146),Hl==94&&(Nl(),Sa()),Vl.endNonterminal(\"IndexKeySpec\",Pl)}function ba(){Vl.startNonterminal(\"IndexKeyExpr\",Pl),Lr(),Vl.endNonterminal(\"IndexKeyExpr\",Pl)}function wa(){Vl.startNonterminal(\"IndexKeyTypeDecl\",Pl),Sl(79),kl(254),Nl(),Ea(),kl(169);if(Hl==39||Hl==40||Hl==64)Nl(),ys();Vl.endNonterminal(\"IndexKeyTypeDecl\",Pl)}function Ea(){Vl.startNonterminal(\"AtomicType\",Pl),Ha(),Vl.endNonterminal(\"AtomicType\",Pl)}function Sa(){Vl.startNonterminal(\"IndexKeyCollation\",Pl),Sl(94),kl(15),Sl(7),Vl.endNonterminal(\"IndexKeyCollation\",Pl)}function xa(){Vl.startNonterminal(\"IndexDecl\",Pl),Sl(155),kl(254),Nl(),ma(),kl(65),Sl(197),kl(63),Sl(192),kl(265),Nl(),ga(),Sl(87),kl(265),Nl(),ya();for(;;){kl(103);if(Hl!=41)break;Sl(41),kl(265),Nl(),ya()}Vl.endNonterminal(\"IndexDecl\",Pl)}function Ta(){Vl.startNonterminal(\"ICDecl\",Pl),Sl(161),kl(40),Sl(97),kl(254),Nl(),Ha(),kl(120);switch(Hl){case 197:Nl(),Na();break;default:Nl(),Aa()}Vl.endNonterminal(\"ICDecl\",Pl)}function Na(){Vl.startNonterminal(\"ICCollection\",Pl),Sl(197),kl(39),Sl(95),kl(254),Nl(),Ha(),kl(140);switch(Hl){case 31:Nl(),Ca();break;case 191:Nl(),ka();break;default:Nl(),La()}Vl.endNonterminal(\"ICCollection\",Pl)}function Ca(){Vl.startNonterminal(\"ICCollSequence\",Pl),li(),kl(37),Sl(92),kl(266),Nl(),_f(),Vl.endNonterminal(\"ICCollSequence\",Pl)}function ka(){Vl.startNonterminal(\"ICCollSequenceUnique\",Pl),Sl(191),kl(21),Nl(),li(),kl(37),Sl(92),kl(80),Sl(255),kl(57),Sl(168),kl(265),Nl(),Lr(),Vl.endNonterminal(\"ICCollSequenceUnique\",Pl)}function La(){Vl.startNonterminal(\"ICCollNode\",Pl),Sl(138),kl(62),Sl(191),kl(21),Nl(),li(),kl(37),Sl(92),kl(266),Nl(),_f(),Vl.endNonterminal(\"ICCollNode\",Pl)}function Aa(){Vl.startNonterminal(\"ICForeignKey\",Pl),Sl(139),kl(57),Sl(168),kl(51),Nl(),Oa(),Nl(),Ma(),Vl.endNonterminal(\"ICForeignKey\",Pl)}function Oa(){Vl.startNonterminal(\"ICForeignKeySource\",Pl),Sl(140),kl(39),Nl(),_a(),Vl.endNonterminal(\"ICForeignKeySource\",Pl)}function Ma(){Vl.startNonterminal(\"ICForeignKeyTarget\",Pl),Sl(248),kl(39),Nl(),_a(),Vl.endNonterminal(\"ICForeignKeyTarget\",Pl)}function _a(){Vl.startNonterminal(\"ICForeignKeyValues\",Pl),Sl(95),kl(254),Nl(),Ha(),kl(62),Sl(191),kl(21),Nl(),li(),kl(57),Sl(168),kl(265),Nl(),Lr(),Vl.endNonterminal(\"ICForeignKeyValues\",Pl)}function Da(){xl(36);for(;;){Al(89);if(Hl==50)break;switch(Hl){case 24:xl(24);break;default:Da()}}xl(50)}function Pa(){switch(Hl){case 22:xl(22);break;default:Da()}}function Ha(){Vl.startNonterminal(\"EQName\",Pl),Al(249);switch(Hl){case 82:Sl(82);break;case 96:Sl(96);break;case 120:Sl(120);break;case 121:Sl(121);break;case 124:Sl(124);break;case 145:Sl(145);break;case 152:Sl(152);break;case 165:Sl(165);break;case 185:Sl(185);break;case 191:Sl(191);break;case 216:Sl(216);break;case 226:Sl(226);break;case 227:Sl(227);break;case 243:Sl(243);break;case 244:Sl(244);break;case 253:Sl(253);break;case 78:Sl(78);break;case 167:Sl(167);break;case 242:Sl(242);break;default:ja()}Vl.endNonterminal(\"EQName\",Pl)}function Ba(){Al(249);switch(Hl){case 82:xl(82);break;case 96:xl(96);break;case 120:xl(120);break;case 121:xl(121);break;case 124:xl(124);break;case 145:xl(145);break;case 152:xl(152);break;case 165:xl(165);break;case 185:xl(185);break;case 191:xl(191);break;case 216:xl(216);break;case 226:xl(226);break;case 227:xl(227);break;case 243:xl(243);break;case 244:xl(244);break;case 253:xl(253);break;case 78:xl(78);break;case 167:xl(167);break;case 242:xl(242);break;default:Fa()}}function ja(){Vl.startNonterminal(\"FunctionName\",Pl);switch(Hl){case 6:Sl(6);break;case 70:Sl(70);break;case 73:Sl(73);break;case 74:Sl(74);break;case 75:Sl(75);break;case 79:Sl(79);break;case 80:Sl(80);break;case 84:Sl(84);break;case 88:Sl(88);break;case 89:Sl(89);break;case 90:Sl(90);break;case 93:Sl(93);break;case 94:Sl(94);break;case 103:Sl(103);break;case 105:Sl(105);break;case 108:Sl(108);break;case 109:Sl(109);break;case 110:Sl(110);break;case 111:Sl(111);break;case 112:Sl(112);break;case 113:Sl(113);break;case 118:Sl(118);break;case 119:Sl(119);break;case 122:Sl(122);break;case 123:Sl(123);break;case 126:Sl(126);break;case 128:Sl(128);break;case 129:Sl(129);break;case 131:Sl(131);break;case 134:Sl(134);break;case 135:Sl(135);break;case 136:Sl(136);break;case 137:Sl(137);break;case 146:Sl(146);break;case 148:Sl(148);break;case 150:Sl(150);break;case 151:Sl(151);break;case 153:Sl(153);break;case 159:Sl(159);break;case 160:Sl(160);break;case 162:Sl(162);break;case 163:Sl(163);break;case 164:Sl(164);break;case 170:Sl(170);break;case 172:Sl(172);break;case 174:Sl(174);break;case 178:Sl(178);break;case 180:Sl(180);break;case 181:Sl(181);break;case 182:Sl(182);break;case 184:Sl(184);break;case 186:Sl(186);break;case 198:Sl(198);break;case 200:Sl(200);break;case 201:Sl(201);break;case 202:Sl(202);break;case 206:Sl(206);break;case 212:Sl(212);break;case 213:Sl(213);break;case 218:Sl(218);break;case 219:Sl(219);break;case 220:Sl(220);break;case 224:Sl(224);break;case 229:Sl(229);break;case 235:Sl(235);break;case 236:Sl(236);break;case 237:Sl(237);break;case 248:Sl(248);break;case 249:Sl(249);break;case 250:Sl(250);break;case 254:Sl(254);break;case 256:Sl(256);break;case 260:Sl(260);break;case 266:Sl(266);break;case 270:Sl(270);break;case 274:Sl(274);break;case 72:Sl(72);break;case 81:Sl(81);break;case 83:Sl(83);break;case 85:Sl(85);break;case 86:Sl(86);break;case 91:Sl(91);break;case 98:Sl(98);break;case 101:Sl(101);break;case 102:Sl(102);break;case 104:Sl(104);break;case 106:Sl(106);break;case 125:Sl(125);break;case 132:Sl(132);break;case 133:Sl(133);break;case 141:Sl(141);break;case 154:Sl(154);break;case 155:Sl(155);break;case 161:Sl(161);break;case 171:Sl(171);break;case 192:Sl(192);break;case 199:Sl(199);break;case 203:Sl(203);break;case 222:Sl(222);break;case 225:Sl(225);break;case 228:Sl(228);break;case 234:Sl(234);break;case 240:Sl(240);break;case 251:Sl(251);break;case 252:Sl(252);break;case 257:Sl(257);break;case 261:Sl(261);break;case 262:Sl(262);break;case 263:Sl(263);break;case 267:Sl(267);break;case 97:Sl(97);break;case 176:Sl(176);break;case 221:Sl(221);break;case 77:Sl(77);break;case 166:Sl(166);break;default:Sl(194)}Vl.endNonterminal(\"FunctionName\",Pl)}function Fa(){switch(Hl){case 6:xl(6);break;case 70:xl(70);break;case 73:xl(73);break;case 74:xl(74);break;case 75:xl(75);break;case 79:xl(79);break;case 80:xl(80);break;case 84:xl(84);break;case 88:xl(88);break;case 89:xl(89);break;case 90:xl(90);break;case 93:xl(93);break;case 94:xl(94);break;case 103:xl(103);break;case 105:xl(105);break;case 108:xl(108);break;case 109:xl(109);break;case 110:xl(110);break;case 111:xl(111);break;case 112:xl(112);break;case 113:xl(113);break;case 118:xl(118);break;case 119:xl(119);break;case 122:xl(122);break;case 123:xl(123);break;case 126:xl(126);break;case 128:xl(128);break;case 129:xl(129);break;case 131:xl(131);break;case 134:xl(134);break;case 135:xl(135);break;case 136:xl(136);break;case 137:xl(137);break;case 146:xl(146);break;case 148:xl(148);break;case 150:xl(150);break;case 151:xl(151);break;case 153:xl(153);break;case 159:xl(159);break;case 160:xl(160);break;case 162:xl(162);break;case 163:xl(163);break;case 164:xl(164);break;case 170:xl(170);break;case 172:xl(172);break;case 174:xl(174);break;case 178:xl(178);break;case 180:xl(180);break;case 181:xl(181);break;case 182:xl(182);break;case 184:xl(184);break;case 186:xl(186);break;case 198:xl(198);break;case 200:xl(200);break;case 201:xl(201);break;case 202:xl(202);break;case 206:xl(206);break;case 212:xl(212);break;case 213:xl(213);break;case 218:xl(218);break;case 219:xl(219);break;case 220:xl(220);break;case 224:xl(224);break;case 229:xl(229);break;case 235:xl(235);break;case 236:xl(236);break;case 237:xl(237);break;case 248:xl(248);break;case 249:xl(249);break;case 250:xl(250);break;case 254:xl(254);break;case 256:xl(256);break;case 260:xl(260);break;case 266:xl(266);break;case 270:xl(270);break;case 274:xl(274);break;case 72:xl(72);break;case 81:xl(81);break;case 83:xl(83);break;case 85:xl(85);break;case 86:xl(86);break;case 91:xl(91);break;case 98:xl(98);break;case 101:xl(101);break;case 102:xl(102);break;case 104:xl(104);break;case 106:xl(106);break;case 125:xl(125);break;case 132:xl(132);break;case 133:xl(133);break;case 141:xl(141);break;case 154:xl(154);break;case 155:xl(155);break;case 161:xl(161);break;case 171:xl(171);break;case 192:xl(192);break;case 199:xl(199);break;case 203:xl(203);break;case 222:xl(222);break;case 225:xl(225);break;case 228:xl(228);break;case 234:xl(234);break;case 240:xl(240);break;case 251:xl(251);break;case 252:xl(252);break;case 257:xl(257);break;case 261:xl(261);break;case 262:xl(262);break;case 263:xl(263);break;case 267:xl(267);break;case 97:xl(97);break;case 176:xl(176);break;case 221:xl(221);break;case 77:xl(77);break;case 166:xl(166);break;default:xl(194)}}function Ia(){Vl.startNonterminal(\"NCName\",Pl);switch(Hl){case 19:Sl(19);break;case 70:Sl(70);break;case 75:Sl(75);break;case 79:Sl(79);break;case 80:Sl(80);break;case 84:Sl(84);break;case 88:Sl(88);break;case 89:Sl(89);break;case 90:Sl(90);break;case 94:Sl(94);break;case 105:Sl(105);break;case 109:Sl(109);break;case 113:Sl(113);break;case 118:Sl(118);break;case 122:Sl(122);break;case 123:Sl(123);break;case 126:Sl(126);break;case 128:Sl(128);break;case 131:Sl(131);break;case 137:Sl(137);break;case 146:Sl(146);break;case 148:Sl(148);break;case 150:Sl(150);break;case 151:Sl(151);break;case 160:Sl(160);break;case 162:Sl(162);break;case 163:Sl(163);break;case 164:Sl(164);break;case 172:Sl(172);break;case 174:Sl(174);break;case 178:Sl(178);break;case 180:Sl(180);break;case 181:Sl(181);break;case 186:Sl(186);break;case 198:Sl(198);break;case 200:Sl(200);break;case 201:Sl(201);break;case 220:Sl(220);break;case 224:Sl(224);break;case 236:Sl(236);break;case 237:Sl(237);break;case 248:Sl(248);break;case 249:Sl(249);break;case 254:Sl(254);break;case 266:Sl(266);break;case 270:Sl(270);break;case 73:Sl(73);break;case 74:Sl(74);break;case 82:Sl(82);break;case 93:Sl(93);break;case 96:Sl(96);break;case 103:Sl(103);break;case 108:Sl(108);break;case 110:Sl(110);break;case 111:Sl(111);break;case 112:Sl(112);break;case 119:Sl(119);break;case 120:Sl(120);break;case 121:Sl(121);break;case 124:Sl(124);break;case 129:Sl(129);break;case 134:Sl(134);break;case 135:Sl(135);break;case 136:Sl(136);break;case 145:Sl(145);break;case 152:Sl(152);break;case 153:Sl(153);break;case 159:Sl(159);break;case 165:Sl(165);break;case 170:Sl(170);break;case 182:Sl(182);break;case 184:Sl(184);break;case 185:Sl(185);break;case 191:Sl(191);break;case 202:Sl(202);break;case 206:Sl(206);break;case 212:Sl(212);break;case 213:Sl(213);break;case 216:Sl(216);break;case 218:Sl(218);break;case 219:Sl(219);break;case 226:Sl(226);break;case 227:Sl(227);break;case 229:Sl(229);break;case 235:Sl(235);break;case 243:Sl(243);break;case 244:Sl(244);break;case 250:Sl(250);break;case 253:Sl(253);break;case 256:Sl(256);break;case 260:Sl(260);break;case 262:Sl(262);break;case 274:Sl(274);break;case 72:Sl(72);break;case 81:Sl(81);break;case 83:Sl(83);break;case 85:Sl(85);break;case 86:Sl(86);break;case 91:Sl(91);break;case 98:Sl(98);break;case 101:Sl(101);break;case 102:Sl(102);break;case 104:Sl(104);break;case 106:Sl(106);break;case 125:Sl(125);break;case 132:Sl(132);break;case 133:Sl(133);break;case 141:Sl(141);break;case 154:Sl(154);break;case 155:Sl(155);break;case 161:Sl(161);break;case 171:Sl(171);break;case 192:Sl(192);break;case 199:Sl(199);break;case 203:Sl(203);break;case 222:Sl(222);break;case 225:Sl(225);break;case 228:Sl(228);break;case 234:Sl(234);break;case 240:Sl(240);break;case 251:Sl(251);break;case 252:Sl(252);break;case 257:Sl(257);break;case 261:Sl(261);break;case 263:Sl(263);break;case 267:Sl(267);break;case 97:Sl(97);break;case 176:Sl(176);break;case 221:Sl(221);break;case 77:Sl(77);break;case 166:Sl(166);break;default:Sl(194)}Vl.endNonterminal(\"NCName\",Pl)}function qa(){switch(Hl){case 19:xl(19);break;case 70:xl(70);break;case 75:xl(75);break;case 79:xl(79);break;case 80:xl(80);break;case 84:xl(84);break;case 88:xl(88);break;case 89:xl(89);break;case 90:xl(90);break;case 94:xl(94);break;case 105:xl(105);break;case 109:xl(109);break;case 113:xl(113);break;case 118:xl(118);break;case 122:xl(122);break;case 123:xl(123);break;case 126:xl(126);break;case 128:xl(128);break;case 131:xl(131);break;case 137:xl(137);break;case 146:xl(146);break;case 148:xl(148);break;case 150:xl(150);break;case 151:xl(151);break;case 160:xl(160);break;case 162:xl(162);break;case 163:xl(163);break;case 164:xl(164);break;case 172:xl(172);break;case 174:xl(174);break;case 178:xl(178);break;case 180:xl(180);break;case 181:xl(181);break;case 186:xl(186);break;case 198:xl(198);break;case 200:xl(200);break;case 201:xl(201);break;case 220:xl(220);break;case 224:xl(224);break;case 236:xl(236);break;case 237:xl(237);break;case 248:xl(248);break;case 249:xl(249);break;case 254:xl(254);break;case 266:xl(266);break;case 270:xl(270);break;case 73:xl(73);break;case 74:xl(74);break;case 82:xl(82);break;case 93:xl(93);break;case 96:xl(96);break;case 103:xl(103);break;case 108:xl(108);break;case 110:xl(110);break;case 111:xl(111);break;case 112:xl(112);break;case 119:xl(119);break;case 120:xl(120);break;case 121:xl(121);break;case 124:xl(124);break;case 129:xl(129);break;case 134:xl(134);break;case 135:xl(135);break;case 136:xl(136);break;case 145:xl(145);break;case 152:xl(152);break;case 153:xl(153);break;case 159:xl(159);break;case 165:xl(165);break;case 170:xl(170);break;case 182:xl(182);break;case 184:xl(184);break;case 185:xl(185);break;case 191:xl(191);break;case 202:xl(202);break;case 206:xl(206);break;case 212:xl(212);break;case 213:xl(213);break;case 216:xl(216);break;case 218:xl(218);break;case 219:xl(219);break;case 226:xl(226);break;case 227:xl(227);break;case 229:xl(229);break;case 235:xl(235);break;case 243:xl(243);break;case 244:xl(244);break;case 250:xl(250);break;case 253:xl(253);break;case 256:xl(256);break;case 260:xl(260);break;case 262:xl(262);break;case 274:xl(274);break;case 72:xl(72);break;case 81:xl(81);break;case 83:xl(83);break;case 85:xl(85);break;case 86:xl(86);break;case 91:xl(91);break;case 98:xl(98);break;case 101:xl(101);break;case 102:xl(102);break;case 104:xl(104);break;case 106:xl(106);break;case 125:xl(125);break;case 132:xl(132);break;case 133:xl(133);break;case 141:xl(141);break;case 154:xl(154);break;case 155:xl(155);break;case 161:xl(161);break;case 171:xl(171);break;case 192:xl(192);break;case 199:xl(199);break;case 203:xl(203);break;case 222:xl(222);break;case 225:xl(225);break;case 228:xl(228);break;case 234:xl(234);break;case 240:xl(240);break;case 251:xl(251);break;case 252:xl(252);break;case 257:xl(257);break;case 261:xl(261);break;case 263:xl(263);break;case 267:xl(267);break;case 97:xl(97);break;case 176:xl(176);break;case 221:xl(221);break;case 77:xl(77);break;case 166:xl(166);break;default:xl(194)}}function Ra(){Vl.startNonterminal(\"MainModule\",Pl),l(),Nl(),Ua(),Vl.endNonterminal(\"MainModule\",Pl)}function Ua(){Vl.startNonterminal(\"Program\",Pl),$a(),Vl.endNonterminal(\"Program\",Pl)}function za(){Vl.startNonterminal(\"Statements\",Pl);for(;;){kl(277);switch(Hl){case 34:Ll(268);break;case 35:Ol(251);break;case 46:Ll(283);break;case 47:Ll(264);break;case 54:Ol(4);break;case 55:Ol(1);break;case 59:Ol(3);break;case 66:Ll(256);break;case 68:Ll(271);break;case 77:Ll(199);break;case 82:Ll(280);break;case 121:Ll(279);break;case 132:Ll(202);break;case 137:Ll(207);break;case 174:Ll(204);break;case 218:Ll(205);break;case 219:Ll(206);break;case 260:Ll(209);break;case 276:Ll(276);break;case 278:Ll(272);break;case 5:case 45:Ll(185);break;case 31:case 32:Ll(254);break;case 40:case 42:Ll(266);break;case 86:case 102:Ll(200);break;case 110:case 159:Ll(208);break;case 184:case 216:Ll(267);break;case 103:case 129:case 235:case 262:Ll(196);break;case 8:case 9:case 10:case 11:case 44:Ll(191);break;case 78:case 124:case 165:case 167:case 242:Ll(190);break;case 96:case 119:case 202:case 244:case 250:case 256:Ll(203);break;case 73:case 74:case 93:case 111:case 112:case 135:case 136:case 206:case 212:case 213:case 229:Ll(197);break;case 6:case 70:case 72:case 75:case 79:case 80:case 81:case 83:case 84:case 85:case 88:case 89:case 90:case 91:case 94:case 97:case 98:case 101:case 104:case 105:case 106:case 108:case 109:case 113:case 118:case 120:case 122:case 123:case 125:case 126:case 128:case 131:case 133:case 134:case 141:case 145:case 146:case 148:case 150:case 151:case 152:case 153:case 154:case 155:case 160:case 161:case 162:case 163:case 164:case 166:case 170:case 171:case 172:case 176:case 178:case 180:case 181:case 182:case 185:case 186:case 191:case 192:case 194:case 198:case 199:case 200:case 201:case 203:case 220:case 221:case 222:case 224:case 225:case 226:case 227:case 228:case 234:case 236:case 237:case 240:case 243:case 248:case 249:case 251:case 252:case 253:case 254:case 257:case 261:case 263:case 266:case 267:case 270:case 274:Ll(194);break;default:_l=Hl}if(_l!=25&&_l!=53&&_l!=282&&_l!=12805&&_l!=12806&&_l!=12808&&_l!=12809&&_l!=12810&&_l!=12811&&_l!=12844&&_l!=12845&&_l!=12846&&_l!=12870&&_l!=12872&&_l!=12873&&_l!=12874&&_l!=12875&&_l!=12877&&_l!=12878&&_l!=12879&&_l!=12880&&_l!=12881&&_l!=12882&&_l!=12883&&_l!=12884&&_l!=12885&&_l!=12886&&_l!=12888&&_l!=12889&&_l!=12890&&_l!=12891&&_l!=12893&&_l!=12894&&_l!=12896&&_l!=12897&&_l!=12898&&_l!=12901&&_l!=12902&&_l!=12903&&_l!=12904&&_l!=12905&&_l!=12906&&_l!=12908&&_l!=12909&&_l!=12910&&_l!=12911&&_l!=12912&&_l!=12913&&_l!=12918&&_l!=12919&&_l!=12920&&_l!=12921&&_l!=12922&&_l!=12923&&_l!=12924&&_l!=12925&&_l!=12926&&_l!=12928&&_l!=12929&&_l!=12931&&_l!=12932&&_l!=12933&&_l!=12934&&_l!=12935&&_l!=12936&&_l!=12937&&_l!=12941&&_l!=12945&&_l!=12946&&_l!=12948&&_l!=12950&&_l!=12951&&_l!=12952&&_l!=12953&&_l!=12954&&_l!=12955&&_l!=12959&&_l!=12960&&_l!=12961&&_l!=12962&&_l!=12963&&_l!=12964&&_l!=12965&&_l!=12966&&_l!=12967&&_l!=12970&&_l!=12971&&_l!=12972&&_l!=12974&&_l!=12976&&_l!=12978&&_l!=12980&&_l!=12981&&_l!=12982&&_l!=12984&&_l!=12985&&_l!=12986&&_l!=12991&&_l!=12992&&_l!=12994&&_l!=12998&&_l!=12999&&_l!=13e3&&_l!=13001&&_l!=13002&&_l!=13003&&_l!=13006&&_l!=13012&&_l!=13013&&_l!=13016&&_l!=13018&&_l!=13019&&_l!=13020&&_l!=13021&&_l!=13022&&_l!=13024&&_l!=13025&&_l!=13026&&_l!=13027&&_l!=13028&&_l!=13029&&_l!=13034&&_l!=13035&&_l!=13036&&_l!=13037&&_l!=13040&&_l!=13042&&_l!=13043&&_l!=13044&&_l!=13048&&_l!=13049&&_l!=13050&&_l!=13051&&_l!=13052&&_l!=13053&&_l!=13054&&_l!=13056&&_l!=13057&&_l!=13060&&_l!=13061&&_l!=13062&&_l!=13063&&_l!=13066&&_l!=13067&&_l!=13070&&_l!=13074&&_l!=16134&&_l!=20997&&_l!=20998&&_l!=21e3&&_l!=21001&&_l!=21002&&_l!=21003&&_l!=21036&&_l!=21037&&_l!=21038&&_l!=21062&&_l!=21064&&_l!=21065&&_l!=21066&&_l!=21067&&_l!=21069&&_l!=21070&&_l!=21071&&_l!=21072&&_l!=21073&&_l!=21074&&_l!=21075&&_l!=21076&&_l!=21077&&_l!=21078&&_l!=21080&&_l!=21081&&_l!=21082&&_l!=21083&&_l!=21085&&_l!=21086&&_l!=21088&&_l!=21089&&_l!=21090&&_l!=21093&&_l!=21094&&_l!=21095&&_l!=21096&&_l!=21097&&_l!=21098&&_l!=21100&&_l!=21101&&_l!=21102&&_l!=21103&&_l!=21104&&_l!=21105&&_l!=21110&&_l!=21111&&_l!=21112&&_l!=21113&&_l!=21114&&_l!=21115&&_l!=21116&&_l!=21117&&_l!=21118&&_l!=21120&&_l!=21121&&_l!=21123&&_l!=21124&&_l!=21125&&_l!=21126&&_l!=21127&&_l!=21128&&_l!=21129&&_l!=21133&&_l!=21137&&_l!=21138&&_l!=21140&&_l!=21142&&_l!=21143&&_l!=21144&&_l!=21145&&_l!=21146&&_l!=21147&&_l!=21151&&_l!=21152&&_l!=21153&&_l!=21154&&_l!=21155&&_l!=21156&&_l!=21157&&_l!=21158&&_l!=21159&&_l!=21162&&_l!=21163&&_l!=21164&&_l!=21166&&_l!=21168&&_l!=21170&&_l!=21172&&_l!=21173&&_l!=21174&&_l!=21176&&_l!=21177&&_l!=21178&&_l!=21183&&_l!=21184&&_l!=21186&&_l!=21190&&_l!=21191&&_l!=21192&&_l!=21193&&_l!=21194&&_l!=21195&&_l!=21198&&_l!=21204&&_l!=21205&&_l!=21208&&_l!=21210&&_l!=21211&&_l!=21212&&_l!=21213&&_l!=21214&&_l!=21216&&_l!=21217&&_l!=21218&&_l!=21219&&_l!=21220&&_l!=21221&&_l!=21226&&_l!=21227&&_l!=21228&&_l!=21229&&_l!=21232&&_l!=21234&&_l!=21235&&_l!=21236&&_l!=21240&&_l!=21241&&_l!=21242&&_l!=21243&&_l!=21244&&_l!=21245&&_l!=21246&&_l!=21248&&_l!=21249&&_l!=21252&&_l!=21253&&_l!=21254&&_l!=21255&&_l!=21258&&_l!=21259&&_l!=21262&&_l!=21266&&_l!=27141&&_l!=27142&&_l!=27144&&_l!=27145&&_l!=27146&&_l!=27147&&_l!=27180&&_l!=27181&&_l!=27182&&_l!=27206&&_l!=27208&&_l!=27209&&_l!=27210&&_l!=27211&&_l!=27213&&_l!=27214&&_l!=27215&&_l!=27216&&_l!=27217&&_l!=27218&&_l!=27219&&_l!=27220&&_l!=27221&&_l!=27222&&_l!=27224&&_l!=27225&&_l!=27226&&_l!=27227&&_l!=27229&&_l!=27230&&_l!=27232&&_l!=27233&&_l!=27234&&_l!=27237&&_l!=27238&&_l!=27239&&_l!=27240&&_l!=27241&&_l!=27242&&_l!=27244&&_l!=27245&&_l!=27246&&_l!=27247&&_l!=27248&&_l!=27249&&_l!=27254&&_l!=27255&&_l!=27256&&_l!=27257&&_l!=27258&&_l!=27259&&_l!=27260&&_l!=27261&&_l!=27262&&_l!=27264&&_l!=27265&&_l!=27267&&_l!=27268&&_l!=27269&&_l!=27270&&_l!=27271&&_l!=27272&&_l!=27273&&_l!=27277&&_l!=27281&&_l!=27282&&_l!=27284&&_l!=27286&&_l!=27287&&_l!=27288&&_l!=27289&&_l!=27290&&_l!=27291&&_l!=27295&&_l!=27296&&_l!=27297&&_l!=27298&&_l!=27299&&_l!=27300&&_l!=27301&&_l!=27302&&_l!=27303&&_l!=27306&&_l!=27307&&_l!=27308&&_l!=27310&&_l!=27312&&_l!=27314&&_l!=27316&&_l!=27317&&_l!=27318&&_l!=27320&&_l!=27321&&_l!=27322&&_l!=27327&&_l!=27328&&_l!=27330&&_l!=27334&&_l!=27335&&_l!=27336&&_l!=27337&&_l!=27338&&_l!=27339&&_l!=27342&&_l!=27348&&_l!=27349&&_l!=27352&&_l!=27354&&_l!=27355&&_l!=27356&&_l!=27357&&_l!=27358&&_l!=27360&&_l!=27361&&_l!=27362&&_l!=27363&&_l!=27364&&_l!=27365&&_l!=27370&&_l!=27371&&_l!=27372&&_l!=27373&&_l!=27376&&_l!=27378&&_l!=27379&&_l!=27380&&_l!=27384&&_l!=27385&&_l!=27386&&_l!=27387&&_l!=27388&&_l!=27389&&_l!=27390&&_l!=27392&&_l!=27393&&_l!=27396&&_l!=27397&&_l!=27398&&_l!=27399&&_l!=27402&&_l!=27403&&_l!=27406&&_l!=27410&&_l!=90198&&_l!=90214&&_l!=113284&&_l!=144389&&_l!=144390&&_l!=144392&&_l!=144393&&_l!=144394&&_l!=144395&&_l!=144428&&_l!=144429&&_l!=144430&&_l!=144454&&_l!=144456&&_l!=144457&&_l!=144458&&_l!=144459&&_l!=144461&&_l!=144462&&_l!=144463&&_l!=144464&&_l!=144465&&_l!=144466&&_l!=144467&&_l!=144468&&_l!=144469&&_l!=144470&&_l!=144472&&_l!=144473&&_l!=144474&&_l!=144475&&_l!=144477&&_l!=144478&&_l!=144480&&_l!=144481&&_l!=144482&&_l!=144485&&_l!=144486&&_l!=144487&&_l!=144488&&_l!=144489&&_l!=144490&&_l!=144492&&_l!=144493&&_l!=144494&&_l!=144495&&_l!=144496&&_l!=144497&&_l!=144502&&_l!=144503&&_l!=144504&&_l!=144505&&_l!=144506&&_l!=144507&&_l!=144508&&_l!=144509&&_l!=144510&&_l!=144512&&_l!=144513&&_l!=144515&&_l!=144516&&_l!=144517&&_l!=144518&&_l!=144519&&_l!=144520&&_l!=144521&&_l!=144525&&_l!=144529&&_l!=144530&&_l!=144532&&_l!=144534&&_l!=144535&&_l!=144536&&_l!=144537&&_l!=144538&&_l!=144539&&_l!=144543&&_l!=144544&&_l!=144545&&_l!=144546&&_l!=144547&&_l!=144548&&_l!=144549&&_l!=144550&&_l!=144551&&_l!=144554&&_l!=144555&&_l!=144556&&_l!=144558&&_l!=144560&&_l!=144562&&_l!=144564&&_l!=144565&&_l!=144566&&_l!=144568&&_l!=144569&&_l!=144570&&_l!=144575&&_l!=144576&&_l!=144578&&_l!=144582&&_l!=144583&&_l!=144584&&_l!=144585&&_l!=144586&&_l!=144587&&_l!=144590&&_l!=144596&&_l!=144597&&_l!=144600&&_l!=144602&&_l!=144603&&_l!=144604&&_l!=144605&&_l!=144606&&_l!=144608&&_l!=144609&&_l!=144610&&_l!=144611&&_l!=144612&&_l!=144613&&_l!=144618&&_l!=144619&&_l!=144620&&_l!=144621&&_l!=144624&&_l!=144626&&_l!=144627&&_l!=144628&&_l!=144632&&_l!=144633&&_l!=144634&&_l!=144635&&_l!=144636&&_l!=144637&&_l!=144638&&_l!=144640&&_l!=144641&&_l!=144644&&_l!=144645&&_l!=144646&&_l!=144647&&_l!=144650&&_l!=144651&&_l!=144654&&_l!=144658){_l=Kl(6,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{Qa(),_l=-1}catch(a){_l=-2}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(6,Pl,_l)}}if(_l!=-1&&_l!=53&&_l!=16134&&_l!=27141&&_l!=27142&&_l!=27144&&_l!=27145&&_l!=27146&&_l!=27147&&_l!=27180&&_l!=27181&&_l!=27182&&_l!=27206&&_l!=27208&&_l!=27209&&_l!=27210&&_l!=27211&&_l!=27213&&_l!=27214&&_l!=27215&&_l!=27216&&_l!=27217&&_l!=27218&&_l!=27219&&_l!=27220&&_l!=27221&&_l!=27222&&_l!=27224&&_l!=27225&&_l!=27226&&_l!=27227&&_l!=27229&&_l!=27230&&_l!=27232&&_l!=27233&&_l!=27234&&_l!=27237&&_l!=27238&&_l!=27239&&_l!=27240&&_l!=27241&&_l!=27242&&_l!=27244&&_l!=27245&&_l!=27246&&_l!=27247&&_l!=27248&&_l!=27249&&_l!=27254&&_l!=27255&&_l!=27256&&_l!=27257&&_l!=27258&&_l!=27259&&_l!=27260&&_l!=27261&&_l!=27262&&_l!=27264&&_l!=27265&&_l!=27267&&_l!=27268&&_l!=27269&&_l!=27270&&_l!=27271&&_l!=27272&&_l!=27273&&_l!=27277&&_l!=27281&&_l!=27282&&_l!=27284&&_l!=27286&&_l!=27287&&_l!=27288&&_l!=27289&&_l!=27290&&_l!=27291&&_l!=27295&&_l!=27296&&_l!=27297&&_l!=27298&&_l!=27299&&_l!=27300&&_l!=27301&&_l!=27302&&_l!=27303&&_l!=27306&&_l!=27307&&_l!=27308&&_l!=27310&&_l!=27312&&_l!=27314&&_l!=27316&&_l!=27317&&_l!=27318&&_l!=27320&&_l!=27321&&_l!=27322&&_l!=27327&&_l!=27328&&_l!=27330&&_l!=27334&&_l!=27335&&_l!=27336&&_l!=27337&&_l!=27338&&_l!=27339&&_l!=27342&&_l!=27348&&_l!=27349&&_l!=27352&&_l!=27354&&_l!=27355&&_l!=27356&&_l!=27357&&_l!=27358&&_l!=27360&&_l!=27361&&_l!=27362&&_l!=27363&&_l!=27364&&_l!=27365&&_l!=27370&&_l!=27371&&_l!=27372&&_l!=27373&&_l!=27376&&_l!=27378&&_l!=27379&&_l!=27380&&_l!=27384&&_l!=27385&&_l!=27386&&_l!=27387&&_l!=27388&&_l!=27389&&_l!=27390&&_l!=27392&&_l!=27393&&_l!=27396&&_l!=27397&&_l!=27398&&_l!=27399&&_l!=27402&&_l!=27403&&_l!=27406&&_l!=27410&&_l!=90198&&_l!=90214&&_l!=113284)break;Nl(),Ka()}Vl.endNonterminal(\"Statements\",Pl)}function Wa(){for(;;){kl(277);switch(Hl){case 34:Ll(268);break;case 35:Ol(251);break;case 46:Ll(283);break;case 47:Ll(264);break;case 54:Ol(4);break;case 55:Ol(1);break;case 59:Ol(3);break;case 66:Ll(256);break;case 68:Ll(271);break;case 77:Ll(199);break;case 82:Ll(280);break;case 121:Ll(279);break;case 132:Ll(202);break;case 137:Ll(207);break;case 174:Ll(204);break;case 218:Ll(205);break;case 219:Ll(206);break;case 260:Ll(209);break;case 276:Ll(276);break;case 278:Ll(272);break;case 5:case 45:Ll(185);break;case 31:case 32:Ll(254);break;case 40:case 42:Ll(266);break;case 86:case 102:Ll(200);break;case 110:case 159:Ll(208);break;case 184:case 216:Ll(267);break;case 103:case 129:case 235:case 262:Ll(196);break;case 8:case 9:case 10:case 11:case 44:Ll(191);break;case 78:case 124:case 165:case 167:case 242:Ll(190);break;case 96:case 119:case 202:case 244:case 250:case 256:Ll(203);break;case 73:case 74:case 93:case 111:case 112:case 135:case 136:case 206:case 212:case 213:case 229:Ll(197);break;case 6:case 70:case 72:case 75:case 79:case 80:case 81:case 83:case 84:case 85:case 88:case 89:case 90:case 91:case 94:case 97:case 98:case 101:case 104:case 105:case 106:case 108:case 109:case 113:case 118:case 120:case 122:case 123:case 125:case 126:case 128:case 131:case 133:case 134:case 141:case 145:case 146:case 148:case 150:case 151:case 152:case 153:case 154:case 155:case 160:case 161:case 162:case 163:case 164:case 166:case 170:case 171:case 172:case 176:case 178:case 180:case 181:case 182:case 185:case 186:case 191:case 192:case 194:case 198:case 199:case 200:case 201:case 203:case 220:case 221:case 222:case 224:case 225:case 226:case 227:case 228:case 234:case 236:case 237:case 240:case 243:case 248:case 249:case 251:case 252:case 253:case 254:case 257:case 261:case 263:case 266:case 267:case 270:case 274:Ll(194);break;default:_l=Hl}if(_l!=25&&_l!=53&&_l!=282&&_l!=12805&&_l!=12806&&_l!=12808&&_l!=12809&&_l!=12810&&_l!=12811&&_l!=12844&&_l!=12845&&_l!=12846&&_l!=12870&&_l!=12872&&_l!=12873&&_l!=12874&&_l!=12875&&_l!=12877&&_l!=12878&&_l!=12879&&_l!=12880&&_l!=12881&&_l!=12882&&_l!=12883&&_l!=12884&&_l!=12885&&_l!=12886&&_l!=12888&&_l!=12889&&_l!=12890&&_l!=12891&&_l!=12893&&_l!=12894&&_l!=12896&&_l!=12897&&_l!=12898&&_l!=12901&&_l!=12902&&_l!=12903&&_l!=12904&&_l!=12905&&_l!=12906&&_l!=12908&&_l!=12909&&_l!=12910&&_l!=12911&&_l!=12912&&_l!=12913&&_l!=12918&&_l!=12919&&_l!=12920&&_l!=12921&&_l!=12922&&_l!=12923&&_l!=12924&&_l!=12925&&_l!=12926&&_l!=12928&&_l!=12929&&_l!=12931&&_l!=12932&&_l!=12933&&_l!=12934&&_l!=12935&&_l!=12936&&_l!=12937&&_l!=12941&&_l!=12945&&_l!=12946&&_l!=12948&&_l!=12950&&_l!=12951&&_l!=12952&&_l!=12953&&_l!=12954&&_l!=12955&&_l!=12959&&_l!=12960&&_l!=12961&&_l!=12962&&_l!=12963&&_l!=12964&&_l!=12965&&_l!=12966&&_l!=12967&&_l!=12970&&_l!=12971&&_l!=12972&&_l!=12974&&_l!=12976&&_l!=12978&&_l!=12980&&_l!=12981&&_l!=12982&&_l!=12984&&_l!=12985&&_l!=12986&&_l!=12991&&_l!=12992&&_l!=12994&&_l!=12998&&_l!=12999&&_l!=13e3&&_l!=13001&&_l!=13002&&_l!=13003&&_l!=13006&&_l!=13012&&_l!=13013&&_l!=13016&&_l!=13018&&_l!=13019&&_l!=13020&&_l!=13021&&_l!=13022&&_l!=13024&&_l!=13025&&_l!=13026&&_l!=13027&&_l!=13028&&_l!=13029&&_l!=13034&&_l!=13035&&_l!=13036&&_l!=13037&&_l!=13040&&_l!=13042&&_l!=13043&&_l!=13044&&_l!=13048&&_l!=13049&&_l!=13050&&_l!=13051&&_l!=13052&&_l!=13053&&_l!=13054&&_l!=13056&&_l!=13057&&_l!=13060&&_l!=13061&&_l!=13062&&_l!=13063&&_l!=13066&&_l!=13067&&_l!=13070&&_l!=13074&&_l!=16134&&_l!=20997&&_l!=20998&&_l!=21e3&&_l!=21001&&_l!=21002&&_l!=21003&&_l!=21036&&_l!=21037&&_l!=21038&&_l!=21062&&_l!=21064&&_l!=21065&&_l!=21066&&_l!=21067&&_l!=21069&&_l!=21070&&_l!=21071&&_l!=21072&&_l!=21073&&_l!=21074&&_l!=21075&&_l!=21076&&_l!=21077&&_l!=21078&&_l!=21080&&_l!=21081&&_l!=21082&&_l!=21083&&_l!=21085&&_l!=21086&&_l!=21088&&_l!=21089&&_l!=21090&&_l!=21093&&_l!=21094&&_l!=21095&&_l!=21096&&_l!=21097&&_l!=21098&&_l!=21100&&_l!=21101&&_l!=21102&&_l!=21103&&_l!=21104&&_l!=21105&&_l!=21110&&_l!=21111&&_l!=21112&&_l!=21113&&_l!=21114&&_l!=21115&&_l!=21116&&_l!=21117&&_l!=21118&&_l!=21120&&_l!=21121&&_l!=21123&&_l!=21124&&_l!=21125&&_l!=21126&&_l!=21127&&_l!=21128&&_l!=21129&&_l!=21133&&_l!=21137&&_l!=21138&&_l!=21140&&_l!=21142&&_l!=21143&&_l!=21144&&_l!=21145&&_l!=21146&&_l!=21147&&_l!=21151&&_l!=21152&&_l!=21153&&_l!=21154&&_l!=21155&&_l!=21156&&_l!=21157&&_l!=21158&&_l!=21159&&_l!=21162&&_l!=21163&&_l!=21164&&_l!=21166&&_l!=21168&&_l!=21170&&_l!=21172&&_l!=21173&&_l!=21174&&_l!=21176&&_l!=21177&&_l!=21178&&_l!=21183&&_l!=21184&&_l!=21186&&_l!=21190&&_l!=21191&&_l!=21192&&_l!=21193&&_l!=21194&&_l!=21195&&_l!=21198&&_l!=21204&&_l!=21205&&_l!=21208&&_l!=21210&&_l!=21211&&_l!=21212&&_l!=21213&&_l!=21214&&_l!=21216&&_l!=21217&&_l!=21218&&_l!=21219&&_l!=21220&&_l!=21221&&_l!=21226&&_l!=21227&&_l!=21228&&_l!=21229&&_l!=21232&&_l!=21234&&_l!=21235&&_l!=21236&&_l!=21240&&_l!=21241&&_l!=21242&&_l!=21243&&_l!=21244&&_l!=21245&&_l!=21246&&_l!=21248&&_l!=21249&&_l!=21252&&_l!=21253&&_l!=21254&&_l!=21255&&_l!=21258&&_l!=21259&&_l!=21262&&_l!=21266&&_l!=27141&&_l!=27142&&_l!=27144&&_l!=27145&&_l!=27146&&_l!=27147&&_l!=27180&&_l!=27181&&_l!=27182&&_l!=27206&&_l!=27208&&_l!=27209&&_l!=27210&&_l!=27211&&_l!=27213&&_l!=27214&&_l!=27215&&_l!=27216&&_l!=27217&&_l!=27218&&_l!=27219&&_l!=27220&&_l!=27221&&_l!=27222&&_l!=27224&&_l!=27225&&_l!=27226&&_l!=27227&&_l!=27229&&_l!=27230&&_l!=27232&&_l!=27233&&_l!=27234&&_l!=27237&&_l!=27238&&_l!=27239&&_l!=27240&&_l!=27241&&_l!=27242&&_l!=27244&&_l!=27245&&_l!=27246&&_l!=27247&&_l!=27248&&_l!=27249&&_l!=27254&&_l!=27255&&_l!=27256&&_l!=27257&&_l!=27258&&_l!=27259&&_l!=27260&&_l!=27261&&_l!=27262&&_l!=27264&&_l!=27265&&_l!=27267&&_l!=27268&&_l!=27269&&_l!=27270&&_l!=27271&&_l!=27272&&_l!=27273&&_l!=27277&&_l!=27281&&_l!=27282&&_l!=27284&&_l!=27286&&_l!=27287&&_l!=27288&&_l!=27289&&_l!=27290&&_l!=27291&&_l!=27295&&_l!=27296&&_l!=27297&&_l!=27298&&_l!=27299&&_l!=27300&&_l!=27301&&_l!=27302&&_l!=27303&&_l!=27306&&_l!=27307&&_l!=27308&&_l!=27310&&_l!=27312&&_l!=27314&&_l!=27316&&_l!=27317&&_l!=27318&&_l!=27320&&_l!=27321&&_l!=27322&&_l!=27327&&_l!=27328&&_l!=27330&&_l!=27334&&_l!=27335&&_l!=27336&&_l!=27337&&_l!=27338&&_l!=27339&&_l!=27342&&_l!=27348&&_l!=27349&&_l!=27352&&_l!=27354&&_l!=27355&&_l!=27356&&_l!=27357&&_l!=27358&&_l!=27360&&_l!=27361&&_l!=27362&&_l!=27363&&_l!=27364&&_l!=27365&&_l!=27370&&_l!=27371&&_l!=27372&&_l!=27373&&_l!=27376&&_l!=27378&&_l!=27379&&_l!=27380&&_l!=27384&&_l!=27385&&_l!=27386&&_l!=27387&&_l!=27388&&_l!=27389&&_l!=27390&&_l!=27392&&_l!=27393&&_l!=27396&&_l!=27397&&_l!=27398&&_l!=27399&&_l!=27402&&_l!=27403&&_l!=27406&&_l!=27410&&_l!=90198&&_l!=90214&&_l!=113284&&_l!=144389&&_l!=144390&&_l!=144392&&_l!=144393&&_l!=144394&&_l!=144395&&_l!=144428&&_l!=144429&&_l!=144430&&_l!=144454&&_l!=144456&&_l!=144457&&_l!=144458&&_l!=144459&&_l!=144461&&_l!=144462&&_l!=144463&&_l!=144464&&_l!=144465&&_l!=144466&&_l!=144467&&_l!=144468&&_l!=144469&&_l!=144470&&_l!=144472&&_l!=144473&&_l!=144474&&_l!=144475&&_l!=144477&&_l!=144478&&_l!=144480&&_l!=144481&&_l!=144482&&_l!=144485&&_l!=144486&&_l!=144487&&_l!=144488&&_l!=144489&&_l!=144490&&_l!=144492&&_l!=144493&&_l!=144494&&_l!=144495&&_l!=144496&&_l!=144497&&_l!=144502&&_l!=144503&&_l!=144504&&_l!=144505&&_l!=144506&&_l!=144507&&_l!=144508&&_l!=144509&&_l!=144510&&_l!=144512&&_l!=144513&&_l!=144515&&_l!=144516&&_l!=144517&&_l!=144518&&_l!=144519&&_l!=144520&&_l!=144521&&_l!=144525&&_l!=144529&&_l!=144530&&_l!=144532&&_l!=144534&&_l!=144535&&_l!=144536&&_l!=144537&&_l!=144538&&_l!=144539&&_l!=144543&&_l!=144544&&_l!=144545&&_l!=144546&&_l!=144547&&_l!=144548&&_l!=144549&&_l!=144550&&_l!=144551&&_l!=144554&&_l!=144555&&_l!=144556&&_l!=144558&&_l!=144560&&_l!=144562&&_l!=144564&&_l!=144565&&_l!=144566&&_l!=144568&&_l!=144569&&_l!=144570&&_l!=144575&&_l!=144576&&_l!=144578&&_l!=144582&&_l!=144583&&_l!=144584&&_l!=144585&&_l!=144586&&_l!=144587&&_l!=144590&&_l!=144596&&_l!=144597&&_l!=144600&&_l!=144602&&_l!=144603&&_l!=144604&&_l!=144605&&_l!=144606&&_l!=144608&&_l!=144609&&_l!=144610&&_l!=144611&&_l!=144612&&_l!=144613&&_l!=144618&&_l!=144619&&_l!=144620&&_l!=144621&&_l!=144624&&_l!=144626&&_l!=144627&&_l!=144628&&_l!=144632&&_l!=144633&&_l!=144634&&_l!=144635&&_l!=144636&&_l!=144637&&_l!=144638&&_l!=144640&&_l!=144641&&_l!=144644&&_l!=144645&&_l!=144646&&_l!=144647&&_l!=144650&&_l!=144651&&_l!=144654&&_l!=144658){_l=Kl(6,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{Qa(),Jl(6,t,-1);continue}catch(a){Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(6,t,-2);break}}}if(_l!=-1&&_l!=53&&_l!=16134&&_l!=27141&&_l!=27142&&_l!=27144&&_l!=27145&&_l!=27146&&_l!=27147&&_l!=27180&&_l!=27181&&_l!=27182&&_l!=27206&&_l!=27208&&_l!=27209&&_l!=27210&&_l!=27211&&_l!=27213&&_l!=27214&&_l!=27215&&_l!=27216&&_l!=27217&&_l!=27218&&_l!=27219&&_l!=27220&&_l!=27221&&_l!=27222&&_l!=27224&&_l!=27225&&_l!=27226&&_l!=27227&&_l!=27229&&_l!=27230&&_l!=27232&&_l!=27233&&_l!=27234&&_l!=27237&&_l!=27238&&_l!=27239&&_l!=27240&&_l!=27241&&_l!=27242&&_l!=27244&&_l!=27245&&_l!=27246&&_l!=27247&&_l!=27248&&_l!=27249&&_l!=27254&&_l!=27255&&_l!=27256&&_l!=27257&&_l!=27258&&_l!=27259&&_l!=27260&&_l!=27261&&_l!=27262&&_l!=27264&&_l!=27265&&_l!=27267&&_l!=27268&&_l!=27269&&_l!=27270&&_l!=27271&&_l!=27272&&_l!=27273&&_l!=27277&&_l!=27281&&_l!=27282&&_l!=27284&&_l!=27286&&_l!=27287&&_l!=27288&&_l!=27289&&_l!=27290&&_l!=27291&&_l!=27295&&_l!=27296&&_l!=27297&&_l!=27298&&_l!=27299&&_l!=27300&&_l!=27301&&_l!=27302&&_l!=27303&&_l!=27306&&_l!=27307&&_l!=27308&&_l!=27310&&_l!=27312&&_l!=27314&&_l!=27316&&_l!=27317&&_l!=27318&&_l!=27320&&_l!=27321&&_l!=27322&&_l!=27327&&_l!=27328&&_l!=27330&&_l!=27334&&_l!=27335&&_l!=27336&&_l!=27337&&_l!=27338&&_l!=27339&&_l!=27342&&_l!=27348&&_l!=27349&&_l!=27352&&_l!=27354&&_l!=27355&&_l!=27356&&_l!=27357&&_l!=27358&&_l!=27360&&_l!=27361&&_l!=27362&&_l!=27363&&_l!=27364&&_l!=27365&&_l!=27370&&_l!=27371&&_l!=27372&&_l!=27373&&_l!=27376&&_l!=27378&&_l!=27379&&_l!=27380&&_l!=27384&&_l!=27385&&_l!=27386&&_l!=27387&&_l!=27388&&_l!=27389&&_l!=27390&&_l!=27392&&_l!=27393&&_l!=27396&&_l!=27397&&_l!=27398&&_l!=27399&&_l!=27402&&_l!=27403&&_l!=27406&&_l!=27410&&_l!=90198&&_l!=90214&&_l!=113284)break;Qa()}}function Xa(){Vl.startNonterminal(\"StatementsAndExpr\",Pl),za(),Nl(),G(),Vl.endNonterminal(\"StatementsAndExpr\",Pl)}function Va(){Wa(),Y()}function $a(){Vl.startNonterminal(\"StatementsAndOptionalExpr\",Pl),za(),Hl!=25&&Hl!=282&&(Nl(),G()),Vl.endNonterminal(\"StatementsAndOptionalExpr\",Pl)}function Ja(){Wa(),Hl!=25&&Hl!=282&&Y()}function Ka(){Vl.startNonterminal(\"Statement\",Pl);switch(Hl){case 132:Ll(188);break;case 137:Ll(195);break;case 174:Ll(192);break;case 250:Ll(189);break;case 262:Ll(186);break;case 276:Ll(276);break;case 31:case 32:Ll(254);break;case 86:case 102:Ll(187);break;case 152:case 243:case 253:case 267:Ll(184);break;default:_l=Hl}if(_l==2836||_l==3103||_l==3104||_l==3348||_l==4372||_l==4884||_l==5396||_l==5908||_l==16148||_l==16660||_l==17675||_l==17684||_l==18196||_l==20756||_l==21780||_l==22804||_l==23316||_l==23828||_l==24340||_l==27412||_l==27924||_l==28436||_l==30484||_l==34068||_l==35092||_l==35871||_l==35872||_l==36116||_l==36895||_l==36896||_l==37140||_l==37407||_l==37408||_l==37652||_l==37919||_l==37920||_l==38164||_l==38431||_l==38432||_l==38676||_l==39455||_l==39456||_l==39700||_l==39967||_l==39968||_l==40212||_l==40479||_l==40480||_l==40724||_l==40991||_l==40992||_l==41236||_l==41503||_l==41504||_l==41748||_l==42015||_l==42016||_l==42260||_l==42527||_l==42528||_l==42772||_l==43039||_l==43040||_l==43284||_l==43551||_l==43552||_l==43796||_l==44063||_l==44064||_l==44308||_l==45087||_l==45088||_l==45332||_l==45599||_l==45600||_l==45844||_l==46111||_l==46112||_l==46356||_l==46623||_l==46624||_l==46868||_l==47647||_l==47648||_l==47892||_l==48159||_l==48160||_l==48404||_l==49183||_l==49184||_l==49428||_l==49695||_l==49696||_l==49940||_l==50207||_l==50208||_l==50452||_l==51743||_l==51744||_l==51988||_l==52255||_l==52256||_l==52500||_l==52767||_l==52768||_l==53012||_l==53279||_l==53280||_l==53524||_l==53791||_l==53792||_l==54036||_l==54303||_l==54304||_l==54548||_l==55327||_l==55328||_l==55572||_l==55839||_l==55840||_l==56084||_l==56351||_l==56352||_l==56596||_l==56863||_l==56864||_l==57108||_l==57375||_l==57376||_l==57620||_l==57887||_l==57888||_l==58132||_l==60447||_l==60448||_l==60692||_l==60959||_l==60960||_l==61204||_l==61471||_l==61472||_l==61716||_l==61983||_l==61984||_l==62228||_l==62495||_l==62496||_l==62740||_l==63007||_l==63008||_l==63252||_l==63519||_l==63520||_l==63764||_l==64031||_l==64032||_l==64276||_l==64543||_l==64544||_l==64788||_l==65567||_l==65568||_l==65812||_l==66079||_l==66080||_l==66324||_l==67103||_l==67104||_l==67348||_l==67615||_l==67616||_l==67860||_l==68127||_l==68128||_l==68372||_l==68639||_l==68640||_l==68884||_l==69151||_l==69152||_l==69396||_l==69663||_l==69664||_l==69908||_l==70175||_l==70176||_l==70420||_l==72223||_l==72224||_l==72468||_l==74271||_l==74272||_l==74516||_l==74783||_l==74784||_l==75028||_l==75807||_l==75808||_l==76052||_l==76831||_l==76832||_l==77076||_l==77343||_l==77344||_l==77588||_l==77855||_l==77856||_l==78100||_l==78367||_l==78368||_l==78612||_l==78879||_l==78880||_l==79124||_l==79391||_l==79392||_l==79636||_l==81439||_l==81440||_l==81684||_l==81951||_l==81952||_l==82196||_l==82463||_l==82464||_l==82708||_l==82975||_l==82976||_l==83220||_l==83487||_l==83488||_l==83732||_l==83999||_l==84e3||_l==84244||_l==84511||_l==84512||_l==84756||_l==85023||_l==85024||_l==85268||_l==85535||_l==85536||_l==85780||_l==87071||_l==87072||_l==87316||_l==87583||_l==87584||_l==87828||_l==88095||_l==88096||_l==88340||_l==89119||_l==89120||_l==89364||_l==90143||_l==90144||_l==90388||_l==91167||_l==91168||_l==91412||_l==92191||_l==92192||_l==92436||_l==92703||_l==92704||_l==92948||_l==93215||_l==93216||_l==93460||_l==94239||_l==94240||_l==94484||_l==94751||_l==94752||_l==94996||_l==95263||_l==95264||_l==95508||_l==97823||_l==97824||_l==98068||_l==98335||_l==98336||_l==98580||_l==99359||_l==99360||_l==99604||_l==101407||_l==101408||_l==101652||_l==101919||_l==101920||_l==102164||_l==102431||_l==102432||_l==102676||_l==102943||_l==102944||_l==103188||_l==103455||_l==103456||_l==103700||_l==103967||_l==103968||_l==104212||_l==105503||_l==105504||_l==105748||_l==108575||_l==108576||_l==108820||_l==109087||_l==109088||_l==109332||_l==110623||_l==110624||_l==110868||_l==111647||_l==111648||_l==111892||_l==112159||_l==112160||_l==112404||_l==112671||_l==112672||_l==112916||_l==113183||_l==113184||_l==113428||_l==113695||_l==113696||_l==113940||_l==114719||_l==114720||_l==114964||_l==115231||_l==115232||_l==115476||_l==115743||_l==115744||_l==115988||_l==116255||_l==116256||_l==116500||_l==116767||_l==116768||_l==117012||_l==117279||_l==117280||_l==117524||_l==119839||_l==119840||_l==120084||_l==120351||_l==120352||_l==120596||_l==120863||_l==120864||_l==121108||_l==121375||_l==121376||_l==121620||_l==122911||_l==122912||_l==123156||_l==123935||_l==123936||_l==124180||_l==124447||_l==124448||_l==124692||_l==124959||_l==124960||_l==125204||_l==127007||_l==127008||_l==127252||_l==127519||_l==127520||_l==127764||_l==128031||_l==128032||_l==128276||_l==128543||_l==128544||_l==128788||_l==129055||_l==129056||_l==129300||_l==129567||_l==129568||_l==129812||_l==130079||_l==130080||_l==130324||_l==131103||_l==131104||_l==131348||_l==131615||_l==131616||_l==131860||_l==133151||_l==133152||_l==133396||_l==133663||_l==133664||_l==133908||_l==134175||_l==134176||_l==134420||_l==134687||_l==134688||_l==134932||_l==136223||_l==136224||_l==136468||_l==136735||_l==136736||_l==136980||_l==138271||_l==138272||_l==138516||_l==140319||_l==140320||_l==140564||_l==141588||_l==142612||_l==144660){_l=Kl(7,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{Ya(),_l=-1}catch(a){try{Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),ef(),_l=-2}catch(f){try{Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),nf(),_l=-3}catch(l){try{Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),kf(),_l=-12}catch(c){_l=-13}}}}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(7,Pl,_l)}}switch(_l){case-2:Za();break;case-3:tf();break;case 90198:rf();break;case 90214:of();break;case 113284:af();break;case 16009:case 16046:case 116910:case 119945:case 128649:lf();break;case 17560:df();break;case 17651:mf();break;case 141562:wf();break;case 17661:Sf();break;case-12:case 16134:Cf();break;case-13:Lf();break;case 53:Of();break;default:Ga()}Vl.endNonterminal(\"Statement\",Pl)}function Qa(){switch(Hl){case 132:Ll(188);break;case 137:Ll(195);break;case 174:Ll(192);break;case 250:Ll(189);break;case 262:Ll(186);break;case 276:Ll(276);break;case 31:case 32:Ll(254);break;case 86:case 102:Ll(187);break;case 152:case 243:case 253:case 267:Ll(184);break;default:_l=Hl}if(_l==2836||_l==3103||_l==3104||_l==3348||_l==4372||_l==4884||_l==5396||_l==5908||_l==16148||_l==16660||_l==17675||_l==17684||_l==18196||_l==20756||_l==21780||_l==22804||_l==23316||_l==23828||_l==24340||_l==27412||_l==27924||_l==28436||_l==30484||_l==34068||_l==35092||_l==35871||_l==35872||_l==36116||_l==36895||_l==36896||_l==37140||_l==37407||_l==37408||_l==37652||_l==37919||_l==37920||_l==38164||_l==38431||_l==38432||_l==38676||_l==39455||_l==39456||_l==39700||_l==39967||_l==39968||_l==40212||_l==40479||_l==40480||_l==40724||_l==40991||_l==40992||_l==41236||_l==41503||_l==41504||_l==41748||_l==42015||_l==42016||_l==42260||_l==42527||_l==42528||_l==42772||_l==43039||_l==43040||_l==43284||_l==43551||_l==43552||_l==43796||_l==44063||_l==44064||_l==44308||_l==45087||_l==45088||_l==45332||_l==45599||_l==45600||_l==45844||_l==46111||_l==46112||_l==46356||_l==46623||_l==46624||_l==46868||_l==47647||_l==47648||_l==47892||_l==48159||_l==48160||_l==48404||_l==49183||_l==49184||_l==49428||_l==49695||_l==49696||_l==49940||_l==50207||_l==50208||_l==50452||_l==51743||_l==51744||_l==51988||_l==52255||_l==52256||_l==52500||_l==52767||_l==52768||_l==53012||_l==53279||_l==53280||_l==53524||_l==53791||_l==53792||_l==54036||_l==54303||_l==54304||_l==54548||_l==55327||_l==55328||_l==55572||_l==55839||_l==55840||_l==56084||_l==56351||_l==56352||_l==56596||_l==56863||_l==56864||_l==57108||_l==57375||_l==57376||_l==57620||_l==57887||_l==57888||_l==58132||_l==60447||_l==60448||_l==60692||_l==60959||_l==60960||_l==61204||_l==61471||_l==61472||_l==61716||_l==61983||_l==61984||_l==62228||_l==62495||_l==62496||_l==62740||_l==63007||_l==63008||_l==63252||_l==63519||_l==63520||_l==63764||_l==64031||_l==64032||_l==64276||_l==64543||_l==64544||_l==64788||_l==65567||_l==65568||_l==65812||_l==66079||_l==66080||_l==66324||_l==67103||_l==67104||_l==67348||_l==67615||_l==67616||_l==67860||_l==68127||_l==68128||_l==68372||_l==68639||_l==68640||_l==68884||_l==69151||_l==69152||_l==69396||_l==69663||_l==69664||_l==69908||_l==70175||_l==70176||_l==70420||_l==72223||_l==72224||_l==72468||_l==74271||_l==74272||_l==74516||_l==74783||_l==74784||_l==75028||_l==75807||_l==75808||_l==76052||_l==76831||_l==76832||_l==77076||_l==77343||_l==77344||_l==77588||_l==77855||_l==77856||_l==78100||_l==78367||_l==78368||_l==78612||_l==78879||_l==78880||_l==79124||_l==79391||_l==79392||_l==79636||_l==81439||_l==81440||_l==81684||_l==81951||_l==81952||_l==82196||_l==82463||_l==82464||_l==82708||_l==82975||_l==82976||_l==83220||_l==83487||_l==83488||_l==83732||_l==83999||_l==84e3||_l==84244||_l==84511||_l==84512||_l==84756||_l==85023||_l==85024||_l==85268||_l==85535||_l==85536||_l==85780||_l==87071||_l==87072||_l==87316||_l==87583||_l==87584||_l==87828||_l==88095||_l==88096||_l==88340||_l==89119||_l==89120||_l==89364||_l==90143||_l==90144||_l==90388||_l==91167||_l==91168||_l==91412||_l==92191||_l==92192||_l==92436||_l==92703||_l==92704||_l==92948||_l==93215||_l==93216||_l==93460||_l==94239||_l==94240||_l==94484||_l==94751||_l==94752||_l==94996||_l==95263||_l==95264||_l==95508||_l==97823||_l==97824||_l==98068||_l==98335||_l==98336||_l==98580||_l==99359||_l==99360||_l==99604||_l==101407||_l==101408||_l==101652||_l==101919||_l==101920||_l==102164||_l==102431||_l==102432||_l==102676||_l==102943||_l==102944||_l==103188||_l==103455||_l==103456||_l==103700||_l==103967||_l==103968||_l==104212||_l==105503||_l==105504||_l==105748||_l==108575||_l==108576||_l==108820||_l==109087||_l==109088||_l==109332||_l==110623||_l==110624||_l==110868||_l==111647||_l==111648||_l==111892||_l==112159||_l==112160||_l==112404||_l==112671||_l==112672||_l==112916||_l==113183||_l==113184||_l==113428||_l==113695||_l==113696||_l==113940||_l==114719||_l==114720||_l==114964||_l==115231||_l==115232||_l==115476||_l==115743||_l==115744||_l==115988||_l==116255||_l==116256||_l==116500||_l==116767||_l==116768||_l==117012||_l==117279||_l==117280||_l==117524||_l==119839||_l==119840||_l==120084||_l==120351||_l==120352||_l==120596||_l==120863||_l==120864||_l==121108||_l==121375||_l==121376||_l==121620||_l==122911||_l==122912||_l==123156||_l==123935||_l==123936||_l==124180||_l==124447||_l==124448||_l==124692||_l==124959||_l==124960||_l==125204||_l==127007||_l==127008||_l==127252||_l==127519||_l==127520||_l==127764||_l==128031||_l==128032||_l==128276||_l==128543||_l==128544||_l==128788||_l==129055||_l==129056||_l==129300||_l==129567||_l==129568||_l==129812||_l==130079||_l==130080||_l==130324||_l==131103||_l==131104||_l==131348||_l==131615||_l==131616||_l==131860||_l==133151||_l==133152||_l==133396||_l==133663||_l==133664||_l==133908||_l==134175||_l==134176||_l==134420||_l==134687||_l==134688||_l==134932||_l==136223||_l==136224||_l==136468||_l==136735||_l==136736||_l==136980||_l==138271||_l==138272||_l==138516||_l==140319||_l==140320||_l==140564||_l==141588||_l==142612||_l==144660){_l=Kl(7,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{Ya(),Jl(7,t,-1),_l=-15}catch(a){try{Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),ef(),Jl(7,t,-2),_l=-15}catch(f){try{Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),nf(),Jl(7,t,-3),_l=-15}catch(l){try{Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),kf(),Jl(7,t,-12),_l=-15}catch(c){_l=-13,Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(7,t,-13)}}}}}}switch(_l){case-2:ef();break;case-3:nf();break;case 90198:sf();break;case 90214:uf();break;case 113284:ff();break;case 16009:case 16046:case 116910:case 119945:case 128649:cf();break;case 17560:vf();break;case 17651:gf();break;case 141562:Ef();break;case 17661:xf();break;case-12:case 16134:kf();break;case-13:Af();break;case 53:Mf();break;case-15:break;default:Ya()}}function Ga(){Vl.startNonterminal(\"ApplyStatement\",Pl),Pf(),Sl(53),Vl.endNonterminal(\"ApplyStatement\",Pl)}function Ya(){Hf(),xl(53)}function Za(){Vl.startNonterminal(\"AssignStatement\",Pl),Sl(31),kl(254),Nl(),hi(),kl(27),Sl(52),kl(266),Nl(),_f(),Sl(53),Vl.endNonterminal(\"AssignStatement\",Pl)}function ef(){xl(31),kl(254),pi(),kl(27),xl(52),kl(266),Df(),xl(53)}function tf(){Vl.startNonterminal(\"BlockStatement\",Pl),Sl(276),kl(276),Nl(),za(),Sl(282),Vl.endNonterminal(\"BlockStatement\",Pl)}function nf(){xl(276),kl(276),Wa(),xl(282)}function rf(){Vl.startNonterminal(\"BreakStatement\",Pl),Sl(86),kl(59),Sl(176),kl(28),Sl(53),Vl.endNonterminal(\"BreakStatement\",Pl)}function sf(){xl(86),kl(59),xl(176),kl(28),xl(53)}function of(){Vl.startNonterminal(\"ContinueStatement\",Pl),Sl(102),kl(59),Sl(176),kl(28),Sl(53),Vl.endNonterminal(\"ContinueStatement\",Pl)}function uf(){xl(102),kl(59),xl(176),kl(28),xl(53)}function af(){Vl.startNonterminal(\"ExitStatement\",Pl),Sl(132),kl(71),Sl(221),kl(266),Nl(),_f(),Sl(53),Vl.endNonterminal(\"ExitStatement\",Pl)}function ff(){xl(132),kl(71),xl(221),kl(266),Df(),xl(53)}function lf(){Vl.startNonterminal(\"FLWORStatement\",Pl),tt();for(;;){kl(173);if(Hl==220)break;Nl(),rt()}Nl(),hf(),Vl.endNonterminal(\"FLWORStatement\",Pl)}function cf(){nt();for(;;){kl(173);if(Hl==220)break;it()}pf()}function hf(){Vl.startNonterminal(\"ReturnStatement\",Pl),Sl(220),kl(269),Nl(),Ka(),Vl.endNonterminal(\"ReturnStatement\",Pl)}function pf(){xl(220),kl(269),Qa()}function df(){Vl.startNonterminal(\"IfStatement\",Pl),Sl(152),kl(22),Sl(34),kl(266),Nl(),G(),Sl(37),kl(77),Sl(245),kl(269),Nl(),Ka(),kl(48),Sl(122),kl(269),Nl(),Ka(),Vl.endNonterminal(\"IfStatement\",Pl)}function vf(){xl(152),kl(22),xl(34),kl(266),Y(),xl(37),kl(77),xl(245),kl(269),Qa(),kl(48),xl(122),kl(269),Qa()}function mf(){Vl.startNonterminal(\"SwitchStatement\",Pl),Sl(243),kl(22),Sl(34),kl(266),Nl(),G(),Sl(37);for(;;){kl(35),Nl(),yf(),kl(113);if(Hl!=88)break}Sl(109),kl(70),Sl(220),kl(269),Nl(),Ka(),Vl.endNonterminal(\"SwitchStatement\",Pl)}function gf(){xl(243),kl(22),xl(34),kl(266),Y(),xl(37);for(;;){kl(35),bf(),kl(113);if(Hl!=88)break}xl(109),kl(70),xl(220),kl(269),Qa()}function yf(){Vl.startNonterminal(\"SwitchCaseStatement\",Pl);for(;;){Sl(88),kl(266),Nl(),dn();if(Hl!=88)break}Sl(220),kl(269),Nl(),Ka(),Vl.endNonterminal(\"SwitchCaseStatement\",Pl)}function bf(){for(;;){xl(88),kl(266),vn();if(Hl!=88)break}xl(220),kl(269),Qa()}function wf(){Vl.startNonterminal(\"TryCatchStatement\",Pl),Sl(250),kl(87),Nl(),tf();for(;;){kl(36),Sl(91),kl(256),Nl(),_n(),Nl(),tf(),kl(277);switch(Hl){case 91:Ll(278);break;default:_l=Hl}if(_l==38491||_l==45659||_l==46171||_l==60507||_l==65627||_l==67163||_l==74843||_l==76891||_l==77403||_l==82011||_l==83035||_l==84059||_l==88155||_l==91227||_l==92251||_l==95323||_l==102491||_l==127067||_l==127579||_l==130139){_l=Kl(8,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{kl(36),xl(91),kl(256),Dn(),nf(),_l=-1}catch(a){_l=-2}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(8,Pl,_l)}}if(_l!=-1&&_l!=2651&&_l!=3163&&_l!=35931&&_l!=36955&&_l!=37467&&_l!=37979&&_l!=39515&&_l!=40027&&_l!=40539&&_l!=41051&&_l!=41563&&_l!=42075&&_l!=42587&&_l!=43099&&_l!=43611&&_l!=44123&&_l!=45147&&_l!=46683&&_l!=47707&&_l!=48219&&_l!=49243&&_l!=49755&&_l!=50267&&_l!=51803&&_l!=52315&&_l!=52827&&_l!=53339&&_l!=53851&&_l!=54363&&_l!=55387&&_l!=55899&&_l!=56411&&_l!=56923&&_l!=57435&&_l!=57947&&_l!=61019&&_l!=61531&&_l!=62043&&_l!=62555&&_l!=63067&&_l!=63579&&_l!=64091&&_l!=64603&&_l!=66139&&_l!=67675&&_l!=68187&&_l!=68699&&_l!=69211&&_l!=69723&&_l!=70235&&_l!=72283&&_l!=74331&&_l!=75867&&_l!=77915&&_l!=78427&&_l!=78939&&_l!=79451&&_l!=81499&&_l!=82523&&_l!=83547&&_l!=84571&&_l!=85083&&_l!=85595&&_l!=87131&&_l!=87643&&_l!=89179&&_l!=90203&&_l!=92763&&_l!=93275&&_l!=94299&&_l!=94811&&_l!=97883&&_l!=98395&&_l!=99419&&_l!=101467&&_l!=101979&&_l!=103003&&_l!=103515&&_l!=104027&&_l!=105563&&_l!=108635&&_l!=109147&&_l!=110683&&_l!=111707&&_l!=112219&&_l!=112731&&_l!=113243&&_l!=113755&&_l!=114779&&_l!=115291&&_l!=115803&&_l!=116315&&_l!=116827&&_l!=117339&&_l!=119899&&_l!=120411&&_l!=120923&&_l!=121435&&_l!=122971&&_l!=123995&&_l!=124507&&_l!=125019&&_l!=128091&&_l!=128603&&_l!=129115&&_l!=129627&&_l!=131163&&_l!=131675&&_l!=133211&&_l!=133723&&_l!=134235&&_l!=134747&&_l!=136283&&_l!=136795&&_l!=138331&&_l!=140379)break}Vl.endNonterminal(\"TryCatchStatement\",Pl)}function Ef(){xl(250),kl(87),nf(),kl(36),xl(91),kl(256),Dn(),nf();for(;;){kl(277);switch(Hl){case 91:Ll(278);break;default:_l=Hl}if(_l==38491||_l==45659||_l==46171||_l==60507||_l==65627||_l==67163||_l==74843||_l==76891||_l==77403||_l==82011||_l==83035||_l==84059||_l==88155||_l==91227||_l==92251||_l==95323||_l==102491||_l==127067||_l==127579||_l==130139){_l=Kl(8,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{kl(36),xl(91),kl(256),Dn(),nf(),Jl(8,t,-1);continue}catch(a){Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(8,t,-2);break}}}if(_l!=-1&&_l!=2651&&_l!=3163&&_l!=35931&&_l!=36955&&_l!=37467&&_l!=37979&&_l!=39515&&_l!=40027&&_l!=40539&&_l!=41051&&_l!=41563&&_l!=42075&&_l!=42587&&_l!=43099&&_l!=43611&&_l!=44123&&_l!=45147&&_l!=46683&&_l!=47707&&_l!=48219&&_l!=49243&&_l!=49755&&_l!=50267&&_l!=51803&&_l!=52315&&_l!=52827&&_l!=53339&&_l!=53851&&_l!=54363&&_l!=55387&&_l!=55899&&_l!=56411&&_l!=56923&&_l!=57435&&_l!=57947&&_l!=61019&&_l!=61531&&_l!=62043&&_l!=62555&&_l!=63067&&_l!=63579&&_l!=64091&&_l!=64603&&_l!=66139&&_l!=67675&&_l!=68187&&_l!=68699&&_l!=69211&&_l!=69723&&_l!=70235&&_l!=72283&&_l!=74331&&_l!=75867&&_l!=77915&&_l!=78427&&_l!=78939&&_l!=79451&&_l!=81499&&_l!=82523&&_l!=83547&&_l!=84571&&_l!=85083&&_l!=85595&&_l!=87131&&_l!=87643&&_l!=89179&&_l!=90203&&_l!=92763&&_l!=93275&&_l!=94299&&_l!=94811&&_l!=97883&&_l!=98395&&_l!=99419&&_l!=101467&&_l!=101979&&_l!=103003&&_l!=103515&&_l!=104027&&_l!=105563&&_l!=108635&&_l!=109147&&_l!=110683&&_l!=111707&&_l!=112219&&_l!=112731&&_l!=113243&&_l!=113755&&_l!=114779&&_l!=115291&&_l!=115803&&_l!=116315&&_l!=116827&&_l!=117339&&_l!=119899&&_l!=120411&&_l!=120923&&_l!=121435&&_l!=122971&&_l!=123995&&_l!=124507&&_l!=125019&&_l!=128091&&_l!=128603&&_l!=129115&&_l!=129627&&_l!=131163&&_l!=131675&&_l!=133211&&_l!=133723&&_l!=134235&&_l!=134747&&_l!=136283&&_l!=136795&&_l!=138331&&_l!=140379)break;kl(36),xl(91),kl(256),Dn(),nf()}}function Sf(){Vl.startNonterminal(\"TypeswitchStatement\",Pl),Sl(253),kl(22),Sl(34),kl(266),Nl(),G(),Sl(37);for(;;){kl(35),Nl(),Tf(),kl(113);if(Hl!=88)break}Sl(109),kl(95),Hl==31&&(Sl(31),kl(254),Nl(),hi()),kl(70),Sl(220),kl(269),Nl(),Ka(),Vl.endNonterminal(\"TypeswitchStatement\",Pl)}function xf(){xl(253),kl(22),xl(34),kl(266),Y(),xl(37);for(;;){kl(35),Nf(),kl(113);if(Hl!=88)break}xl(109),kl(95),Hl==31&&(xl(31),kl(254),pi()),kl(70),xl(220),kl(269),Qa()}function Tf(){Vl.startNonterminal(\"CaseStatement\",Pl),Sl(88),kl(261),Hl==31&&(Sl(31),kl(254),Nl(),hi(),kl(30),Sl(79)),kl(259),Nl(),ms(),kl(70),Sl(220),kl(269),Nl(),Ka(),Vl.endNonterminal(\"CaseStatement\",Pl)}function Nf(){xl(88),kl(261),Hl==31&&(xl(31),kl(254),pi(),kl(30),xl(79)),kl(259),gs(),kl(70),xl(220),kl(269),Qa()}function Cf(){Vl.startNonterminal(\"VarDeclStatement\",Pl);for(;;){kl(98);if(Hl!=32)break;Nl(),B()}Sl(262),kl(21),Sl(31),kl(254),Nl(),hi(),kl(157),Hl==79&&(Nl(),ds()),kl(145),Hl==52&&(Sl(52),kl(266),Nl(),_f());for(;;){if(Hl!=41)break;Sl(41),kl(21),Sl(31),kl(254),Nl(),hi(),kl(157),Hl==79&&(Nl(),ds()),kl(145),Hl==52&&(Sl(52),kl(266),Nl(),_f())}Sl(53),Vl.endNonterminal(\"VarDeclStatement\",Pl)}function kf(){for(;;){kl(98);if(Hl!=32)break;j()}xl(262),kl(21),xl(31),kl(254),pi(),kl(157),Hl==79&&vs(),kl(145),Hl==52&&(xl(52),kl(266),Df());for(;;){if(Hl!=41)break;xl(41),kl(21),xl(31),kl(254),pi(),kl(157),Hl==79&&vs(),kl(145),Hl==52&&(xl(52),kl(266),Df())}xl(53)}function Lf(){Vl.startNonterminal(\"WhileStatement\",Pl),Sl(267),kl(22),Sl(34),kl(266),Nl(),G(),Sl(37),kl(269),Nl(),Ka(),Vl.endNonterminal(\"WhileStatement\",Pl)}function Af(){xl(267),kl(22),xl(34),kl(266),Y(),xl(37),kl(269),Qa()}function Of(){Vl.startNonterminal(\"VoidStatement\",Pl),Sl(53),Vl.endNonterminal(\"VoidStatement\",Pl)}function Mf(){xl(53)}function _f(){Vl.startNonterminal(\"ExprSingle\",Pl);switch(Hl){case 137:Ll(235);break;case 174:Ll(232);break;case 250:Ll(231);break;case 152:case 243:case 253:Ll(228);break;default:_l=Hl}switch(_l){case 16009:case 16046:case 116910:case 119945:case 128649:Z();break;case 17560:Sn();break;case 17651:ln();break;case 141562:Tn();break;case 17661:mn();break;default:Pf()}Vl.endNonterminal(\"ExprSingle\",Pl)}function Df(){switch(Hl){case 137:Ll(235);break;case 174:Ll(232);break;case 250:Ll(231);break;case 152:case 243:case 253:Ll(228);break;default:_l=Hl}switch(_l){case 16009:case 16046:case 116910:case 119945:case 128649:et();break;case 17560:xn();break;case 17651:cn();break;case 141562:Nn();break;case 17661:gn();break;default:Hf()}}function Pf(){Vl.startNonterminal(\"ExprSimple\",Pl);switch(Hl){case 77:Ll(230);break;case 218:Ll(233);break;case 219:Ll(234);break;case 110:case 159:Ll(236);break;case 103:case 129:case 235:Ll(229);break;default:_l=Hl}if(_l==133851){_l=Kl(9,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{Ho(),_l=-6}catch(a){_l=-11}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(9,Pl,_l)}}switch(_l){case 16001:case 16107:on();break;case 97951:case 98463:Oo();break;case 97902:case 98414:_o();break;case 98010:Bo();break;case-6:case 98011:Po();break;case 15975:Wo();break;case 85102:Bf();break;case 85151:Ff();break;case 85210:qf();break;case-11:Uf();break;case 85069:Wf();break;default:Pn()}Vl.endNonterminal(\"ExprSimple\",Pl)}function Hf(){switch(Hl){case 77:Ll(230);break;case 218:Ll(233);break;case 219:Ll(234);break;case 110:case 159:Ll(236);break;case 103:case 129:case 235:Ll(229);break;default:_l=Hl}if(_l==133851){_l=Kl(9,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{Ho(),Jl(9,t,-6),_l=-13}catch(a){_l=-11,Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(9,t,-11)}}}switch(_l){case 16001:case 16107:un();break;case 97951:case 98463:Mo();break;case 97902:case 98414:Do();break;case 98010:jo();break;case-6:case 98011:Ho();break;case 15975:Xo();break;case 85102:jf();break;case 85151:If();break;case 85210:Rf();break;case-11:zf();break;case 85069:Xf();break;case-13:break;default:Hn()}}function Bf(){Vl.startNonterminal(\"JSONDeleteExpr\",Pl),Sl(110),kl(56),Sl(166),kl(263),Nl(),Yr(),Vl.endNonterminal(\"JSONDeleteExpr\",Pl)}function jf(){xl(110),kl(56),xl(166),kl(263),Zr()}function Ff(){Vl.startNonterminal(\"JSONInsertExpr\",Pl);switch(Hl){case 159:Ll(56);break;default:_l=Hl}_l=Kl(10,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{xl(159),kl(56),xl(166),kl(266),Df(),xl(163),kl(266),Df();switch(Hl){case 81:Ll(69);break;default:_l=Hl}if(_l==108113){_l=Kl(11,Pl);if(_l==0){var a=Dl,f=Pl,l=Hl,c=Bl,h=jl,p=Fl,d=Il,v=ql;try{xl(81),kl(69),xl(211),kl(266),Df(),Jl(11,f,-1)}catch(m){Dl=a,Pl=f,Hl=l,Hl==0?Zl=f:(Bl=c,jl=h,Fl=p,Fl==0?Zl=h:(Il=d,ql=v,Zl=v)),Jl(11,f,-2)}_l=-2}}_l==-1&&(xl(81),kl(69),xl(211),kl(266),Df()),_l=-1}catch(g){_l=-2}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(10,Pl,_l)}switch(_l){case-1:Sl(159),kl(56),Sl(166),kl(266),Nl(),_f(),Sl(163),kl(266),Nl(),_f();switch(Hl){case 81:Ll(69);break;default:_l=Hl}if(_l==108113){_l=Kl(11,Pl);if(_l==0){var a=Dl,f=Pl,l=Hl,c=Bl,h=jl,p=Fl,d=Il,v=ql;try{xl(81),kl(69),xl(211),kl(266),Df(),_l=-1}catch(m){_l=-2}Dl=a,Pl=f,Hl=l,Hl==0?Zl=f:(Bl=c,jl=h,Fl=p,Fl==0?Zl=h:(Il=d,ql=v,Zl=v)),Jl(11,Pl,_l)}}_l==-1&&(Sl(81),kl(69),Sl(211),kl(266),Nl(),_f());break;default:Sl(159),kl(56),Sl(166),kl(266),Nl(),hl(),Sl(163),kl(266),Nl(),_f()}Vl.endNonterminal(\"JSONInsertExpr\",Pl)}function If(){switch(Hl){case 159:Ll(56);break;default:_l=Hl}_l=Kl(10,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{xl(159),kl(56),xl(166),kl(266),Df(),xl(163),kl(266),Df();switch(Hl){case 81:Ll(69);break;default:_l=Hl}if(_l==108113){_l=Kl(11,Pl);if(_l==0){var a=Dl,f=Pl,l=Hl,c=Bl,h=jl,p=Fl,d=Il,v=ql;try{xl(81),kl(69),xl(211),kl(266),Df(),Jl(11,f,-1)}catch(m){Dl=a,Pl=f,Hl=l,Hl==0?Zl=f:(Bl=c,jl=h,Fl=p,Fl==0?Zl=h:(Il=d,ql=v,Zl=v)),Jl(11,f,-2)}_l=-2}}_l==-1&&(xl(81),kl(69),xl(211),kl(266),Df()),Jl(10,t,-1),_l=-3}catch(g){_l=-2,Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(10,t,-2)}}switch(_l){case-1:xl(159),kl(56),xl(166),kl(266),Df(),xl(163),kl(266),Df();switch(Hl){case 81:Ll(69);break;default:_l=Hl}if(_l==108113){_l=Kl(11,Pl);if(_l==0){var a=Dl,f=Pl,l=Hl,c=Bl,h=jl,p=Fl,d=Il,v=ql;try{xl(81),kl(69),xl(211),kl(266),Df(),Jl(11,f,-1)}catch(m){Dl=a,Pl=f,Hl=l,Hl==0?Zl=f:(Bl=c,jl=h,Fl=p,Fl==0?Zl=h:(Il=d,ql=v,Zl=v)),Jl(11,f,-2)}_l=-2}}_l==-1&&(xl(81),kl(69),xl(211),kl(266),Df());break;case-3:break;default:xl(159),kl(56),xl(166),kl(266),pl(),xl(163),kl(266),Df()}}function qf(){Vl.startNonterminal(\"JSONRenameExpr\",Pl),Sl(218),kl(56),Sl(166),kl(263),Nl(),Yr(),Sl(79),kl(266),Nl(),_f(),Vl.endNonterminal(\"JSONRenameExpr\",Pl)}function Rf(){xl(218),kl(56),xl(166),kl(263),Zr(),xl(79),kl(266),Df()}function Uf(){Vl.startNonterminal(\"JSONReplaceExpr\",Pl),Sl(219),kl(82),Sl(261),kl(64),Sl(196),kl(56),Sl(166),kl(263),Nl(),Yr(),Sl(270),kl(266),Nl(),_f(),Vl.endNonterminal(\"JSONReplaceExpr\",Pl)}function zf(){xl(219),kl(82),xl(261),kl(64),xl(196),kl(56),xl(166),kl(263),Zr(),xl(270),kl(266),Df()}function Wf(){Vl.startNonterminal(\"JSONAppendExpr\",Pl),Sl(77),kl(56),Sl(166),kl(266),Nl(),_f(),Sl(163),kl(266),Nl(),_f(),Vl.endNonterminal(\"JSONAppendExpr\",Pl)}function Xf(){xl(77),kl(56),xl(166),kl(266),Df(),xl(163),kl(266),Df()}function Vf(){Vl.startNonterminal(\"CommonContent\",Pl);switch(Hl){case 12:Sl(12);break;case 23:Sl(23);break;case 277:Sl(277);break;case 283:Sl(283);break;default:yl()}Vl.endNonterminal(\"CommonContent\",Pl)}function $f(){switch(Hl){case 12:xl(12);break;case 23:xl(23);break;case 277:xl(277);break;case 283:xl(283);break;default:bl()}}function Jf(){Vl.startNonterminal(\"ContentExpr\",Pl),Xa(),Vl.endNonterminal(\"ContentExpr\",Pl)}function Kf(){Va()}function Qf(){Vl.startNonterminal(\"CompDocConstructor\",Pl),Sl(119),kl(87),Nl(),yl(),Vl.endNonterminal(\"CompDocConstructor\",Pl)}function Gf(){xl(119),kl(87),bl()}function Yf(){Vl.startNonterminal(\"CompAttrConstructor\",Pl),Sl(82),kl(257);switch(Hl){case 276:Sl(276),kl(266),Nl(),G(),Sl(282);break;default:Nl(),Ha()}kl(87);switch(Hl){case 276:Ll(276);break;default:_l=Hl}if(_l==144660){_l=Kl(12,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{xl(276),kl(88),xl(282),_l=-1}catch(a){_l=-2}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(12,Pl,_l)}}switch(_l){case-1:Sl(276),kl(88),Sl(282);break;default:Nl(),yl()}Vl.endNonterminal(\"CompAttrConstructor\",Pl)}function Zf(){xl(82),kl(257);switch(Hl){case 276:xl(276),kl(266),Y(),xl(282);break;default:Ba()}kl(87);switch(Hl){case 276:Ll(276);break;default:_l=Hl}if(_l==144660){_l=Kl(12,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{xl(276),kl(88),xl(282),Jl(12,t,-1),_l=-3}catch(a){_l=-2,Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(12,t,-2)}}}switch(_l){case-1:xl(276),kl(88),xl(282);break;case-3:break;default:bl()}}function el(){Vl.startNonterminal(\"CompPIConstructor\",Pl),Sl(216),kl(250);switch(Hl){case 276:Sl(276),kl(266),Nl(),G(),Sl(282);break;default:Nl(),Ia()}kl(87);switch(Hl){case 276:Ll(276);break;default:_l=Hl}if(_l==144660){_l=Kl(13,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{xl(276),kl(88),xl(282),_l=-1}catch(a){_l=-2}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(13,Pl,_l)}}switch(_l){case-1:Sl(276),kl(88),Sl(282);break;default:Nl(),yl()}Vl.endNonterminal(\"CompPIConstructor\",Pl)}function tl(){xl(216),kl(250);switch(Hl){case 276:xl(276),kl(266),Y(),xl(282);break;default:qa()}kl(87);switch(Hl){case 276:Ll(276);break;default:_l=Hl}if(_l==144660){_l=Kl(13,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{xl(276),kl(88),xl(282),Jl(13,t,-1),_l=-3}catch(a){_l=-2,Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(13,t,-2)}}}switch(_l){case-1:xl(276),kl(88),xl(282);break;case-3:break;default:bl()}}function nl(){Vl.startNonterminal(\"CompCommentConstructor\",Pl),Sl(96),kl(87),Nl(),yl(),Vl.endNonterminal(\"CompCommentConstructor\",Pl)}function rl(){xl(96),kl(87),bl()}function il(){Vl.startNonterminal(\"CompTextConstructor\",Pl),Sl(244),kl(87),Nl(),yl(),Vl.endNonterminal(\"CompTextConstructor\",Pl)}function sl(){xl(244),kl(87),bl()}function ol(){Vl.startNonterminal(\"PrimaryExpr\",Pl);switch(Hl){case 184:Ll(255);break;case 216:Ll(253);break;case 276:Ll(276);break;case 82:case 121:Ll(258);break;case 96:case 244:Ll(93);break;case 119:case 202:case 256:Ll(139);break;case 6:case 70:case 72:case 73:case 74:case 75:case 77:case 79:case 80:case 81:case 83:case 84:case 85:case 86:case 88:case 89:case 90:case 91:case 93:case 94:case 97:case 98:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 109:case 110:case 111:case 112:case 113:case 118:case 122:case 123:case 125:case 126:case 128:case 129:case 131:case 132:case 133:case 134:case 135:case 136:case 137:case 141:case 146:case 148:case 150:case 151:case 153:case 154:case 155:case 159:case 160:case 161:case 162:case 163:case 164:case 166:case 170:case 171:case 172:case 174:case 176:case 178:case 180:case 181:case 182:case 186:case 192:case 194:case 198:case 199:case 200:case 201:case 203:case 206:case 212:case 213:case 218:case 219:case 220:case 221:case 222:case 224:case 225:case 228:case 229:case 234:case 235:case 236:case 237:case 240:case 248:case 249:case 250:case 251:case 252:case 254:case 257:case 260:case 261:case 262:case 263:case 266:case 267:case 270:case 274:Ll(92);break;default:_l=Hl}if(_l==2836||_l==3348||_l==4372||_l==4884||_l==5396||_l==5908||_l==16148||_l==16660||_l==17684||_l==18196||_l==20756||_l==21780||_l==22804||_l==23316||_l==23828||_l==24340||_l==27924||_l==28436||_l==30484||_l==34068||_l==35092||_l==36116||_l==37140||_l==37652||_l==38164||_l==38676||_l==39700||_l==40212||_l==40724||_l==41236||_l==41748||_l==42260||_l==42772||_l==43284||_l==43796||_l==44308||_l==45332||_l==45844||_l==46356||_l==46868||_l==47892||_l==48404||_l==49428||_l==49940||_l==50452||_l==51988||_l==52500||_l==53012||_l==53524||_l==54036||_l==54548||_l==55572||_l==56084||_l==56596||_l==57108||_l==57620||_l==58132||_l==60692||_l==61204||_l==61716||_l==62228||_l==62740||_l==63252||_l==63764||_l==64276||_l==64788||_l==65812||_l==66324||_l==67348||_l==67860||_l==68372||_l==68884||_l==69396||_l==69908||_l==70420||_l==72468||_l==74516||_l==75028||_l==76052||_l==77076||_l==77588||_l==78100||_l==78612||_l==79124||_l==79636||_l==81684||_l==82196||_l==82708||_l==83220||_l==83732||_l==84244||_l==84756||_l==85268||_l==85780||_l==87316||_l==87828||_l==88340||_l==89364||_l==90388||_l==91412||_l==92436||_l==92948||_l==93460||_l==94484||_l==94996||_l==95508||_l==98068||_l==98580||_l==99604||_l==101652||_l==102164||_l==102676||_l==103188||_l==103700||_l==104212||_l==105748||_l==108820||_l==109332||_l==110868||_l==111892||_l==112404||_l==112916||_l==113428||_l==113940||_l==114964||_l==115476||_l==115988||_l==116500||_l==117012||_l==117524||_l==120084||_l==120596||_l==121108||_l==121620||_l==123156||_l==124180||_l==124692||_l==125204||_l==127252||_l==127764||_l==128276||_l==128788||_l==129300||_l==129812||_l==130324||_l==131348||_l==131860||_l==133396||_l==133908||_l==134420||_l==134932||_l==136468||_l==136980||_l==138516||_l==140564||_l==141588||_l==142612||_l==144660){_l=Kl(14,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{bl(),_l=-10}catch(a){_l=-11}Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(14,Pl,_l)}}switch(_l){case 8:case 9:case 10:case 11:oi();break;case 31:li();break;case 34:di();break;case 44:mi();break;case 17414:case 17478:case 17480:case 17481:case 17482:case 17483:case 17485:case 17487:case 17488:case 17489:case 17491:case 17492:case 17493:case 17494:case 17496:case 17497:case 17498:case 17499:case 17501:case 17502:case 17505:case 17506:case 17509:case 17510:case 17511:case 17512:case 17513:case 17514:case 17516:case 17517:case 17518:case 17519:case 17520:case 17521:case 17526:case 17527:case 17530:case 17531:case 17533:case 17534:case 17536:case 17537:case 17539:case 17540:case 17541:case 17542:case 17543:case 17544:case 17545:case 17549:case 17554:case 17556:case 17558:case 17559:case 17561:case 17562:case 17563:case 17567:case 17568:case 17569:case 17570:case 17571:case 17572:case 17574:case 17578:case 17579:case 17580:case 17582:case 17584:case 17586:case 17588:case 17589:case 17590:case 17592:case 17594:case 17600:case 17602:case 17606:case 17607:case 17608:case 17609:case 17610:case 17611:case 17614:case 17620:case 17621:case 17626:case 17627:case 17628:case 17629:case 17630:case 17632:case 17633:case 17636:case 17637:case 17642:case 17643:case 17644:case 17645:case 17648:case 17656:case 17657:case 17658:case 17659:case 17660:case 17662:case 17664:case 17665:case 17668:case 17669:case 17670:case 17671:case 17674:case 17675:case 17678:case 17682:Si();break;case 141514:yi();break;case 141568:wi();break;case 32:case 78:case 120:case 124:case 145:case 152:case 165:case 167:case 185:case 191:case 226:case 227:case 242:case 243:case 253:case 14854:case 14918:case 14920:case 14921:case 14922:case 14923:case 14925:case 14927:case 14928:case 14929:case 14930:case 14931:case 14932:case 14933:case 14934:case 14936:case 14937:case 14938:case 14939:case 14941:case 14942:case 14944:case 14945:case 14946:case 14949:case 14950:case 14951:case 14952:case 14953:case 14954:case 14956:case 14957:case 14958:case 14959:case 14960:case 14961:case 14966:case 14967:case 14969:case 14970:case 14971:case 14973:case 14974:case 14976:case 14977:case 14979:case 14980:case 14981:case 14982:case 14983:case 14984:case 14985:case 14989:case 14994:case 14996:case 14998:case 14999:case 15001:case 15002:case 15003:case 15007:case 15008:case 15009:case 15010:case 15011:case 15012:case 15014:case 15018:case 15019:case 15020:case 15022:case 15024:case 15026:case 15028:case 15029:case 15030:case 15032:case 15034:case 15040:case 15042:case 15046:case 15047:case 15048:case 15049:case 15050:case 15051:case 15054:case 15060:case 15061:case 15064:case 15066:case 15067:case 15068:case 15069:case 15070:case 15072:case 15073:case 15076:case 15077:case 15082:case 15083:case 15084:case 15085:case 15088:case 15092:case 15096:case 15097:case 15098:case 15099:case 15100:case 15102:case 15104:case 15105:case 15108:case 15109:case 15110:case 15111:case 15114:case 15115:case 15118:case 15122:os();break;case-10:case 27412:yl();break;case-11:ll();break;case 68:ml();break;case 278:al();break;default:Li()}Vl.endNonterminal(\"PrimaryExpr\",Pl)}function ul(){switch(Hl){case 184:Ll(255);break;case 216:Ll(253);break;case 276:Ll(276);break;case 82:case 121:Ll(258);break;case 96:case 244:Ll(93);break;case 119:case 202:case 256:Ll(139);break;case 6:case 70:case 72:case 73:case 74:case 75:case 77:case 79:case 80:case 81:case 83:case 84:case 85:case 86:case 88:case 89:case 90:case 91:case 93:case 94:case 97:case 98:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 109:case 110:case 111:case 112:case 113:case 118:case 122:case 123:case 125:case 126:case 128:case 129:case 131:case 132:case 133:case 134:case 135:case 136:case 137:case 141:case 146:case 148:case 150:case 151:case 153:case 154:case 155:case 159:case 160:case 161:case 162:case 163:case 164:case 166:case 170:case 171:case 172:case 174:case 176:case 178:case 180:case 181:case 182:case 186:case 192:case 194:case 198:case 199:case 200:case 201:case 203:case 206:case 212:case 213:case 218:case 219:case 220:case 221:case 222:case 224:case 225:case 228:case 229:case 234:case 235:case 236:case 237:case 240:case 248:case 249:case 250:case 251:case 252:case 254:case 257:case 260:case 261:case 262:case 263:case 266:case 267:case 270:case 274:Ll(92);break;default:_l=Hl}if(_l==2836||_l==3348||_l==4372||_l==4884||_l==5396||_l==5908||_l==16148||_l==16660||_l==17684||_l==18196||_l==20756||_l==21780||_l==22804||_l==23316||_l==23828||_l==24340||_l==27924||_l==28436||_l==30484||_l==34068||_l==35092||_l==36116||_l==37140||_l==37652||_l==38164||_l==38676||_l==39700||_l==40212||_l==40724||_l==41236||_l==41748||_l==42260||_l==42772||_l==43284||_l==43796||_l==44308||_l==45332||_l==45844||_l==46356||_l==46868||_l==47892||_l==48404||_l==49428||_l==49940||_l==50452||_l==51988||_l==52500||_l==53012||_l==53524||_l==54036||_l==54548||_l==55572||_l==56084||_l==56596||_l==57108||_l==57620||_l==58132||_l==60692||_l==61204||_l==61716||_l==62228||_l==62740||_l==63252||_l==63764||_l==64276||_l==64788||_l==65812||_l==66324||_l==67348||_l==67860||_l==68372||_l==68884||_l==69396||_l==69908||_l==70420||_l==72468||_l==74516||_l==75028||_l==76052||_l==77076||_l==77588||_l==78100||_l==78612||_l==79124||_l==79636||_l==81684||_l==82196||_l==82708||_l==83220||_l==83732||_l==84244||_l==84756||_l==85268||_l==85780||_l==87316||_l==87828||_l==88340||_l==89364||_l==90388||_l==91412||_l==92436||_l==92948||_l==93460||_l==94484||_l==94996||_l==95508||_l==98068||_l==98580||_l==99604||_l==101652||_l==102164||_l==102676||_l==103188||_l==103700||_l==104212||_l==105748||_l==108820||_l==109332||_l==110868||_l==111892||_l==112404||_l==112916||_l==113428||_l==113940||_l==114964||_l==115476||_l==115988||_l==116500||_l==117012||_l==117524||_l==120084||_l==120596||_l==121108||_l==121620||_l==123156||_l==124180||_l==124692||_l==125204||_l==127252||_l==127764||_l==128276||_l==128788||_l==129300||_l==129812||_l==130324||_l==131348||_l==131860||_l==133396||_l==133908||_l==134420||_l==134932||_l==136468||_l==136980||_l==138516||_l==140564||_l==141588||_l==142612||_l==144660){_l=Kl(14,Pl);if(_l==0){var e=Dl,t=Pl,n=Hl,r=Bl,i=jl,s=Fl,o=Il,u=ql;try{bl(),Jl(14,t,-10),_l=-14}catch(a){_l=-11,Dl=e,Pl=t,Hl=n,Hl==0?Zl=t:(Bl=r,jl=i,Fl=s,Fl==0?Zl=i:(Il=o,ql=u,Zl=u)),Jl(14,t,-11)}}}switch(_l){case 8:case 9:case 10:case 11:ui();break;case 31:ci();break;case 34:vi();break;case 44:gi();break;case 17414:case 17478:case 17480:case 17481:case 17482:case 17483:case 17485:case 17487:case 17488:case 17489:case 17491:case 17492:case 17493:case 17494:case 17496:case 17497:case 17498:case 17499:case 17501:case 17502:case 17505:case 17506:case 17509:case 17510:case 17511:case 17512:case 17513:case 17514:case 17516:case 17517:case 17518:case 17519:case 17520:case 17521:case 17526:case 17527:case 17530:case 17531:case 17533:case 17534:case 17536:case 17537:case 17539:case 17540:case 17541:case 17542:case 17543:case 17544:case 17545:case 17549:case 17554:case 17556:case 17558:case 17559:case 17561:case 17562:case 17563:case 17567:case 17568:case 17569:case 17570:case 17571:case 17572:case 17574:case 17578:case 17579:case 17580:case 17582:case 17584:case 17586:case 17588:case 17589:case 17590:case 17592:case 17594:case 17600:case 17602:case 17606:case 17607:case 17608:case 17609:case 17610:case 17611:case 17614:case 17620:case 17621:case 17626:case 17627:case 17628:case 17629:case 17630:case 17632:case 17633:case 17636:case 17637:case 17642:case 17643:case 17644:case 17645:case 17648:case 17656:case 17657:case 17658:case 17659:case 17660:case 17662:case 17664:case 17665:case 17668:case 17669:case 17670:case 17671:case 17674:case 17675:case 17678:case 17682:xi();break;case 141514:bi();break;case 141568:Ei();break;case 32:case 78:case 120:case 124:case 145:case 152:case 165:case 167:case 185:case 191:case 226:case 227:case 242:case 243:case 253:case 14854:case 14918:case 14920:case 14921:case 14922:case 14923:case 14925:case 14927:case 14928:case 14929:case 14930:case 14931:case 14932:case 14933:case 14934:case 14936:case 14937:case 14938:case 14939:case 14941:case 14942:case 14944:case 14945:case 14946:case 14949:case 14950:case 14951:case 14952:case 14953:case 14954:case 14956:case 14957:case 14958:case 14959:case 14960:case 14961:case 14966:case 14967:case 14969:case 14970:case 14971:case 14973:case 14974:case 14976:case 14977:case 14979:case 14980:case 14981:case 14982:case 14983:case 14984:case 14985:case 14989:case 14994:case 14996:case 14998:case 14999:case 15001:case 15002:case 15003:case 15007:case 15008:case 15009:case 15010:case 15011:case 15012:case 15014:case 15018:case 15019:case 15020:case 15022:case 15024:case 15026:case 15028:case 15029:case 15030:case 15032:case 15034:case 15040:case 15042:case 15046:case 15047:case 15048:case 15049:case 15050:case 15051:case 15054:case 15060:case 15061:case 15064:case 15066:case 15067:case 15068:case 15069:case 15070:case 15072:case 15073:case 15076:case 15077:case 15082:case 15083:case 15084:case 15085:case 15088:case 15092:case 15096:case 15097:case 15098:case 15099:case 15100:case 15102:case 15104:case 15105:case 15108:case 15109:case 15110:case 15111:case 15114:case 15115:case 15118:case 15122:us();break;case-10:case 27412:bl();break;case-11:cl();break;case 68:gl();break;case 278:fl();break;case-14:break;default:Ai()}}function al(){Vl.startNonterminal(\"JSONSimpleObjectUnion\",Pl),Sl(278),kl(272),Hl!=281&&(Nl(),G()),Sl(281),Vl.endNonterminal(\"JSONSimpleObjectUnion\",Pl)}function fl(){xl(278),kl(272),Hl!=281&&Y(),xl(281)}function ll(){Vl.startNonterminal(\"ObjectConstructor\",Pl),Sl(276),kl(273),Hl!=282&&(Nl(),hl()),Sl(282),Vl.endNonterminal(\"ObjectConstructor\",Pl)}function cl(){xl(276),kl(273),Hl!=282&&pl(),xl(282)}function hl(){Vl.startNonterminal(\"PairConstructorList\",Pl),dl();for(;;){if(Hl!=41)break;Sl(41),kl(266),Nl(),dl()}Vl.endNonterminal(\"PairConstructorList\",Pl)}function pl(){vl();for(;;){if(Hl!=41)break;xl(41),kl(266),vl()}}function dl(){Vl.startNonterminal(\"PairConstructor\",Pl),_f(),Sl(49),kl(266),Nl(),_f(),Vl.endNonterminal(\"PairConstructor\",Pl)}function vl(){Df(),xl(49),kl(266),Df()}function ml(){Vl.startNonterminal(\"ArrayConstructor\",Pl),Sl(68),kl(271),Hl!=69&&(Nl(),G()),Sl(69),Vl.endNonterminal(\"ArrayConstructor\",Pl)}function gl(){xl(68),kl(271),Hl!=69&&Y(),xl(69)}function yl(){Vl.startNonterminal(\"BlockExpr\",Pl),Sl(276),kl(276),Nl(),$a(),Sl(282),Vl.endNonterminal(\"BlockExpr\",Pl)}function bl(){xl(276),kl(276),Ja(),xl(282)}function wl(){Vl.startNonterminal(\"FunctionDecl\",Pl),Sl(145),kl(254),Nl(),Ha(),kl(22),Sl(34),kl(94),Hl==31&&(Nl(),U()),Sl(37),kl(148),Hl==79&&(Nl(),El()),kl(118);switch(Hl){case 276:Sl(276),kl(276),Nl(),$a(),Sl(282);break;default:Sl(133)}Vl.endNonterminal(\"FunctionDecl\",Pl)}function El(){Vl.startNonterminal(\"ReturnType\",Pl),Sl(79),kl(259),Nl(),ms(),Vl.endNonterminal(\"ReturnType\",Pl)}function Sl(e){Hl==e?(Nl(),Vl.terminal(i.TOKEN[Hl],Bl,jl>Gl?Gl:jl),Dl=Bl,Pl=jl,Hl=Fl,Hl!=0&&(Bl=Il,jl=ql,Fl=0)):Ml(Bl,jl,0,Hl,e)}function xl(e){Hl==e?(Dl=Bl,Pl=jl,Hl=Fl,Hl!=0&&(Bl=Il,jl=ql,Fl=0)):Ml(Bl,jl,0,Hl,e)}function Tl(e){var t=Dl,n=Pl,r=Hl,i=Bl,s=jl;Hl=e,Bl=Yl,jl=Zl,Fl=0,Pa(),Dl=t,Pl=n,Hl=r,Hl!=0&&(Bl=i,jl=s)}function Nl(){Pl!=Bl&&(Vl.whitespace(Pl,Bl),Pl=Bl)}function Cl(e){var t;for(;;){t=ec(e);if(t!=22){if(t!=36)break;Tl(t)}}return t}function kl(e){Hl==0&&(Hl=Cl(e),Bl=Yl,jl=Zl)}function Ll(e){Fl==0&&(Fl=Cl(e),Il=Yl,ql=Zl),_l=Fl<<9|Hl}function Al(e){Hl==0&&(Hl=ec(e),Bl=Yl,jl=Zl)}function Ol(e){Fl==0&&(Fl=ec(e),Il=Yl,ql=Zl),_l=Fl<<9|Hl}function Ml(e,t,r,i,s){throw t>=Ul&&(Rl=e,Ul=t,zl=r,Wl=i,Xl=s),new n.ParseException(Rl,Ul,zl,Wl,Xl)}function Jl(e,t,n){$l[(t<<4)+e]=n}function Kl(e,t){var n=$l[(t<<4)+e];return typeof n!=\"undefined\"?n:0}function ec(e){var t=!1;Yl=Zl;var n=Zl,r=i.INITIAL[e],s=0;for(var o=r&4095;o!=0;){var u,a=n<Gl?Ql.charCodeAt(n):0;++n;if(a<128)u=i.MAP0[a];else if(a<55296){var f=a>>4;u=i.MAP1[(a&15)+i.MAP1[(f&31)+i.MAP1[f>>5]]]}else{if(a<56320){var f=n<Gl?Ql.charCodeAt(n):0;f>=56320&&f<57344&&(++n,a=((a&1023)<<10)+(f&1023)+65536,t=!0)}var l=0,c=5;for(var h=3;;h=c+l>>1){if(i.MAP2[h]>a)c=h-1;else{if(!(i.MAP2[6+h]<a)){u=i.MAP2[12+h];break}l=h+1}if(l>c){u=0;break}}}s=o;var p=(u<<12)+o-1;o=i.TRANSITION[(p&15)+i.TRANSITION[p>>4]],o>4095&&(r=o,o&=4095,Zl=n)}r>>=12;if(r==0){Zl=n-1;var f=Zl<Gl?Ql.charCodeAt(Zl):0;return f>=56320&&f<57344&&--Zl,Ml(Yl,Zl,s,-1,-1)}if(t)for(var d=r>>9;d>0;--d){--Zl;var f=Zl<Gl?Ql.charCodeAt(Zl):0;f>=56320&&f<57344&&--Zl}else Zl-=r>>9;return(r&511)-1}r(e,t);var n=this;this.ParseException=function(e,t,n,r,i){var s=e,o=t,u=n,a=r,f=i;this.getBegin=function(){return s},this.getEnd=function(){return o},this.getState=function(){return u},this.getExpected=function(){return f},this.getOffending=function(){return a},this.getMessage=function(){return a<0?\"lexical analysis failed\":\"syntax error\"}},this.getInput=function(){return Ql},this.getOffendingToken=function(e){var t=e.getOffending();return t>=0?i.TOKEN[t]:null},this.getExpectedTokenSet=function(e){var t;return e.getExpected()<0?t=i.getTokenSet(-e.getState()):t=[i.TOKEN[e.getExpected()]],t},this.getErrorMessage=function(e){var t=this.getExpectedTokenSet(e),n=this.getOffendingToken(e),r=Ql.substring(0,e.getBegin()),i=r.split(\"\\n\"),s=i.length,o=i[s-1].length+1,u=e.getEnd()-e.getBegin();return e.getMessage()+(n==null?\"\":\", found \"+n)+\"\\nwhile expecting \"+(t.length==1?t[0]:\"[\"+t.join(\", \")+\"]\")+\"\\n\"+(u==0||n!=null?\"\":\"after successfully scanning \"+u+\" characters beginning \")+\"at line \"+s+\", column \"+o+\":\\n...\"+Ql.substring(e.getBegin(),Math.min(Ql.length,e.getBegin()+64))+\"...\"},this.parse_XQuery=function(){Vl.startNonterminal(\"XQuery\",Pl),kl(274),Nl(),o(),Sl(25),Vl.endNonterminal(\"XQuery\",Pl)};var _l,Dl,Pl,Hl,Bl,jl,Fl,Il,ql,Rl,Ul,zl,Wl,Xl,Vl,$l,Ql,Gl,Yl,Zl};r.getTokenSet=function(e){var t=[],n=e<0?-e:r.INITIAL[e]&4095;for(var i=0;i<284;i+=32){var s=i,o=(i>>5)*3612+n-1,u=o>>2,a=u>>2,f=r.EXPECTED[(o&3)+r.EXPECTED[(u&3)+r.EXPECTED[(a&15)+r.EXPECTED[a>>4]]]];for(;f!=0;f>>>=1,++s)(f&1)!=0&&t.push(r.TOKEN[s])}return t},r.MAP0=[70,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,17,17,17,17,17,17,17,17,17,18,19,20,21,22,23,24,25,26,27,28,29,26,30,30,30,30,30,31,32,33,30,30,34,30,30,35,30,30,30,36,30,30,37,38,39,38,30,38,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,38,38],r.MAP1=[108,124,214,214,214,214,214,214,214,214,214,214,214,214,214,214,156,181,181,181,181,181,214,215,213,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,214,247,261,277,293,309,355,371,387,423,423,423,415,339,331,339,331,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,440,440,440,440,440,440,440,324,339,339,339,339,339,339,339,339,401,423,423,424,422,423,423,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,338,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,339,423,70,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,17,17,17,17,17,17,17,17,17,18,19,20,21,22,23,24,25,26,27,28,29,26,30,30,30,30,30,31,32,33,30,30,30,30,30,30,30,30,30,30,30,30,30,30,38,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,34,30,30,35,30,30,30,36,30,30,37,38,39,38,30,38,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,38,38,38,38,38,38,38,38,38,38,38,38,30,30,38,38,38,38,38,38,38,69,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69],r.MAP2=[57344,63744,64976,65008,65536,983040,63743,64975,65007,65533,983039,1114111,38,30,38,30,30,38],r.INITIAL=[1,12290,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286],r.TRANSITION=[38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25307,18176,18180,18180,18180,18210,18180,18180,18180,18180,18222,18180,18180,18180,18180,18198,18180,18182,18238,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,30470,38672,38672,38672,38672,42922,38623,20771,20784,20796,20808,43870,38625,20832,38672,38672,38672,43215,38672,38672,50505,28718,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19553,19028,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,22954,20869,38672,38672,38672,37958,38672,38672,36976,20909,20888,38672,38672,38672,38672,39926,20282,20925,20958,38672,38672,38672,43215,38672,38672,25928,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,20997,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,21013,21118,38672,38672,38672,24651,38672,38672,44696,38672,42922,38824,21095,21058,21048,21080,21111,48022,20832,38672,38672,38672,43215,21139,38672,25530,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,21157,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,18776,18792,20360,18810,18830,18835,19257,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38666,38672,38672,38672,21880,38671,38672,36460,38672,21173,38661,21224,38672,21231,38672,42738,42750,20832,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,30470,21247,38672,38672,38672,28875,38672,38672,21266,38672,38672,21288,21300,20832,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,30470,38672,38672,38672,38672,31059,38672,38672,38672,38672,38672,38672,24860,21316,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,18988,50434,18503,18525,21353,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,24749,21390,38672,38672,38672,23220,38672,38672,49687,45814,21411,38672,38672,38672,38672,41859,18366,21448,21478,38672,38672,38672,43215,38672,38672,50505,21515,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,46185,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,21462,21573,21537,21537,21537,21580,21532,21537,21542,21615,21558,21644,21596,21609,21631,21657,21669,21681,20832,38672,38672,38672,21337,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,21697,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,30462,38672,38672,38672,22025,23251,38672,22249,23257,42922,30462,38672,21719,21725,21741,21766,21750,21795,38672,38672,38672,46035,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,30475,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,24785,38672,38672,38672,30470,38672,38672,38672,37115,50393,21856,21832,21850,21834,21872,21896,21908,20832,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,21924,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,30470,38672,38672,38672,37301,25812,27394,21985,22003,21985,22017,27392,21987,20832,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,42072,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,20981,38672,38672,38672,30470,24643,38672,48413,22054,26165,22041,22070,22074,22074,22090,20979,48442,20832,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,22114,38672,38672,38672,38672,30470,38672,38672,38672,38672,42922,47221,22137,22155,22137,22169,47219,22139,22193,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,22230,38672,22247,38672,29641,22265,42072,33771,38672,38672,38672,38672,26929,22475,35267,22475,22475,36544,42277,22411,22411,33858,26727,37227,26727,26727,35540,39463,38672,38672,38672,38672,38672,38672,18609,24891,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,21432,38031,38672,38672,38672,38672,38672,22291,38672,26931,22311,22475,22475,22475,22475,33849,22352,22411,35447,22411,22411,33324,22381,26727,45449,26727,26727,32918,33802,38672,38672,38672,38672,30028,38672,38672,22475,36607,22475,22475,28015,33854,22411,22410,22411,22411,27851,26727,45441,26727,26727,22521,33795,38672,38672,22807,38672,38672,28255,22475,22475,38505,29442,22411,22411,34626,26485,26727,26727,26860,26998,22647,38672,38672,22428,26931,48359,22475,42142,32794,22411,28347,37402,26727,22521,32486,38672,18915,38672,22451,22474,36860,37042,22411,22492,22517,22520,26312,34036,26929,42625,42144,35207,26975,22537,26310,35759,22589,36765,22624,22640,22663,22685,22706,39617,42139,28345,26456,39814,47009,22727,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,30470,38672,38672,38672,23092,42922,38672,38672,38672,38672,38672,31140,31152,22751,38672,38672,38672,43215,38672,38672,26131,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,27937,27268,22230,38672,38672,38672,29641,38672,40144,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,36544,22411,22411,22411,33858,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,18609,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,22803,38672,38672,38672,22886,38672,38672,38672,38672,42922,36439,22823,22844,22866,22878,36438,22828,20832,38672,38672,38672,43215,38672,38672,50505,41329,38672,22902,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,22923,38672,38672,38672,30470,38672,38672,38672,23115,42922,38672,38672,38672,38672,38672,26339,22940,22970,38672,38672,38672,43215,38672,38672,23007,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,47631,27268,22230,38672,38672,38672,29641,38672,48650,23029,38672,38672,38672,38672,26929,22475,22475,22475,22475,36544,22411,22411,22411,33858,26727,26727,26727,26727,30990,42723,23085,38672,38672,38672,38672,38672,23048,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,23072,23108,38672,38672,38672,38672,38672,48411,38672,38672,26931,22475,22475,22475,22475,22475,46833,22411,22411,22411,22411,22411,47864,26727,26727,26727,26727,26727,32918,41804,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,43252,33854,22411,22411,22411,22411,48185,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,23131,22411,22411,22411,36778,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,18878,38672,38672,38672,35592,32963,38672,38672,23153,42922,37950,35335,23190,23196,23212,38672,41919,23236,23274,38672,38672,45078,23291,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,25157,23483,23350,24209,23309,45351,38672,18269,42564,28228,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19821,23376,23336,23369,23392,24203,23434,23465,24172,23726,19833,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,18729,23481,23642,24581,23499,23504,24048,23353,23520,23933,23353,24164,23917,24518,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,23536,23854,23815,23561,23577,23632,24450,24255,23689,23658,23674,23716,23742,24268,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,23773,23804,23842,24040,23870,23886,23449,23700,23902,23320,23949,23992,43796,19722,19792,19745,19771,19808,19113,19859,19875,24027,23545,23592,24064,24137,24459,24094,24110,23407,20069,47383,20010,46515,35979,20039,20679,24126,24567,24482,24153,24188,23616,24225,20191,20207,20223,20259,20298,20337,24284,24078,24374,24300,24330,24314,23418,20424,20452,20468,24361,23826,23606,24390,24419,20532,24435,24475,24498,24628,20608,23750,23928,24403,20644,23757,24508,20660,20054,24345,20695,24537,24597,24613,24552,23788,24240,23964,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,39906,38672,38672,38672,30470,24672,38672,38672,24667,26611,24688,24695,24695,24695,24711,26910,24735,20832,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,24765,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,20739,24828,48943,18855,18871,18894,40258,24858,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19087,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,24876,24922,24938,19905,19631,19046,24954,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,24970,18446,19976,19994,19525,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,30470,38672,38672,38672,38672,21250,35576,24999,24999,24999,35584,31668,31680,20832,38672,38672,38672,43215,38672,38672,50505,38672,38672,25271,38672,38672,38672,38672,18953,18958,18794,35998,19418,19887,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,50381,27744,38672,38672,38672,30470,38672,38672,38672,38672,42922,40452,25015,25015,25015,25023,27746,40454,20832,25047,38672,38672,43215,38672,38672,50505,38672,38672,25065,38672,38672,38672,38672,18953,18958,18794,35998,19418,20310,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,50286,50295,38672,38672,38672,23056,38672,38672,38672,38672,42922,44048,25088,25088,25088,25096,46630,44050,25120,38672,38672,38672,43215,38672,38672,50505,38672,38672,18699,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,25136,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,25152,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25173,38672,38672,38672,38672,30470,25218,38672,38672,21395,32346,38672,38672,38672,25210,25237,21393,25221,25256,38672,38672,38672,43215,38672,38672,50505,22214,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19206,20349,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,30470,38672,38672,38672,38672,42922,38672,38672,38672,38672,38672,41563,25293,20832,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,48405,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,30349,25414,38672,38672,38672,38672,38672,48411,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,41804,38672,38672,38672,38672,34976,38672,38672,22475,22475,22475,22475,33754,33854,22411,22411,22411,22411,31454,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,23131,22411,22411,22411,36778,26727,26727,26727,26998,46887,38672,38672,25437,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,48405,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,30349,25414,38672,38672,38672,38672,38672,48411,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,41804,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,33754,33854,22411,22411,22411,22411,31454,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,23131,22411,22411,22411,36778,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,48405,30057,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,30349,25414,38672,38672,38672,38672,38672,48411,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,41804,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,33754,33854,22411,22411,22411,22411,31454,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,23131,22411,22411,22411,36778,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,48405,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,30349,25414,38672,38672,38672,38672,38672,25455,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,41804,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,33754,33854,22411,22411,22411,22411,31454,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,23131,22411,22411,22411,36778,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,40102,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,49130,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,48405,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,30349,25414,38672,38672,38672,38672,38672,48411,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,41804,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,33754,33854,22411,22411,22411,22411,31454,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,23131,22411,22411,22411,36778,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25482,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25500,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38220,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,25563,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,28464,25582,25594,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,21426,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25610,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,30470,38672,38672,38672,38672,42922,44752,25631,25649,25671,25683,44753,25633,20832,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,35735,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,25717,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,30470,38672,38672,38672,38672,42922,38672,38672,38672,38672,38672,38672,24860,20832,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,30470,38672,38672,38672,38672,42922,31997,38672,25754,25760,25776,23293,41839,20832,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,25800,20452,20468,20484,20497,50424,20500,20516,25828,20548,20592,20589,50171,25844,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,25049,38672,38672,38672,22098,25865,25896,25377,25881,25913,30410,30418,25964,25978,25990,26006,26018,25344,45647,38672,26034,48091,26052,33210,26086,26116,26153,26223,35321,26181,25701,26211,26248,26264,43583,44602,26280,26296,26329,38672,38672,38672,30176,26355,38925,41958,22850,24803,38672,44654,30480,22475,22475,22475,36601,25393,22411,22411,43601,22690,26727,26727,26727,39641,30990,39463,38672,43148,28319,38672,29724,26374,19326,38672,38672,32428,40296,38574,45608,22475,22475,26394,26439,26475,26509,22411,37859,28780,26529,38451,26727,26727,43300,45056,22573,30349,25414,26545,38672,26563,38672,40287,48411,38672,26599,35364,28653,26627,31403,45616,49789,33849,44356,22411,30609,28411,41138,33324,35718,26727,47625,44193,29223,41749,42781,38094,28940,38672,21816,21032,26644,38672,47420,26664,22475,41307,22336,31195,39296,22411,22411,26685,31454,47988,26726,26727,30787,32911,36940,26744,38697,46064,38672,26779,26799,26821,22787,22475,23131,26837,37515,22411,36778,26853,26876,26727,33519,46887,26926,38672,38672,26931,37355,35081,26947,38899,38878,26969,48550,26727,26994,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,38555,27014,22600,47761,48246,27057,27076,27094,27113,28343,26456,27133,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,27153,38672,38672,22098,38672,38672,38672,38672,39378,27172,38672,27196,27202,27218,27234,27246,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,27262,42259,26453,27284,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,46100,48405,27326,25277,38672,38672,28258,22475,22475,22475,37137,27346,22411,22411,22411,22411,39760,37334,26727,26727,26727,26727,27410,32919,30349,25414,38672,38672,38672,38672,38672,48411,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,41804,38672,38672,27435,38672,38672,33108,38672,49441,22475,22475,22475,38002,42895,22411,22411,22411,22411,27454,27481,26727,26727,26727,43058,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,23131,22411,22411,22411,36778,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,46997,37168,35831,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,27504,38672,38672,22098,38672,27541,38672,27559,23976,27578,27586,27602,27617,27629,27645,27657,25344,38672,38672,27676,44992,38672,22924,38672,38672,38672,38672,38672,38672,27673,50511,27692,47251,26513,26453,41246,27710,25375,29768,38672,38672,32334,38672,27740,38672,27762,27784,38672,25948,27789,27805,27821,22475,22475,27840,27878,22411,22411,22690,27915,27931,26727,26727,30990,39463,44557,38672,38672,44934,38672,38225,48405,33126,27953,38672,38672,27694,47073,35424,37245,22475,35786,48497,47338,42686,30280,22411,37334,37394,27977,27995,43743,26727,32919,30349,25414,38672,38672,24003,38672,30096,48411,38672,38672,26931,22475,22475,22475,28013,28031,33849,22411,22411,22411,28053,28070,33324,26727,26727,26727,28092,28109,32918,41804,28131,38672,38672,49206,38672,28149,38672,22475,22475,22475,22780,33754,33854,22411,22411,42031,22411,31454,26727,26727,26727,28171,22521,33795,38672,38672,31346,38672,46687,21493,22475,28191,22475,23131,22411,30274,22411,36778,26727,35228,26727,31599,28213,38672,38672,38672,28250,28274,47411,42142,28296,31494,28347,36728,31954,22521,26313,38672,38672,28317,27136,22475,28335,22411,36897,26977,26727,22564,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,28363,28379,28427,28480,28257,28343,26456,28257,28345,26459,33538,36362,36357,28504,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,24521,38672,38672,22098,38672,28530,45484,38672,46575,28549,28557,28573,28587,28595,28611,28623,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,19750,26547,38672,26546,19755,28639,42141,48492,27360,44280,27268,25375,29257,27180,28679,29641,21703,38672,25730,38672,38083,42329,28697,28734,27137,27824,36531,43498,28750,22608,46434,28774,46408,28796,28814,28833,26727,28849,39463,38672,38672,38672,25738,38672,29761,48405,38672,38672,38672,19698,28258,22475,22475,22475,27023,35786,22411,22411,22411,22411,28891,37334,26727,26727,26727,26727,28912,43066,28929,28956,38672,38672,33876,38672,28992,48411,38672,38672,29009,29030,27032,22475,22475,22669,33849,29109,45393,22411,22411,32729,33324,29133,37067,26727,26727,34717,32918,41804,38672,38672,38672,38672,38672,29157,38672,29181,22475,22475,29202,33754,43112,22411,22411,32083,22411,34472,29222,26727,26727,29239,22521,33795,38672,29256,29273,38672,29294,28255,32383,27117,29315,23131,44876,34578,42252,36778,44915,26727,29337,26998,46887,21810,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,29370,38672,27136,22475,29387,22411,41041,26977,26727,43751,26312,34036,26929,22475,42144,22411,29411,29240,26310,35759,22476,22411,26978,48196,29430,26953,38544,39617,34809,33567,37775,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38673,29464,38672,22098,22435,29483,38672,29506,26195,29530,29540,29556,29570,29582,29598,29610,25344,38672,29626,25072,29668,50094,29711,40102,40331,29748,21064,29784,29812,29843,29873,29903,29919,29957,26423,29973,30010,25375,30044,30091,38782,30112,30134,26137,30161,38672,38672,26583,38672,26929,39099,30212,36878,44806,30228,43650,28758,46842,30244,46765,30296,30317,30336,30384,39463,20089,31354,30434,38799,41183,30450,30496,38672,30542,30564,29278,30580,39823,30631,28663,42103,30647,30685,30712,30766,30811,30837,34161,30878,30901,34681,30930,30980,31006,31022,25414,31049,38672,18321,49090,31075,31094,31128,34195,32584,46802,31168,22475,33645,42347,31190,47486,31211,22411,47598,49959,31232,32841,31257,26727,39569,42011,31278,31335,49499,35851,39273,31370,43966,34186,21188,33468,37601,29186,31389,31426,42239,40895,22411,31442,31481,31454,31519,31539,30795,31561,31595,33795,38672,48757,39401,38672,30196,28255,39519,43549,31615,23131,34822,47675,31635,36778,22546,47769,31572,26998,46887,39201,31656,18290,31696,31734,31750,31772,31808,31845,31869,31903,37385,31919,31970,26378,18593,32021,48908,39526,44237,32042,32063,32099,48723,41712,26312,41270,26929,22475,32144,22411,32167,44894,26310,32185,46276,40692,44326,31465,20435,32208,32228,32248,32274,32295,32319,32362,32399,32415,28257,28345,26459,32457,32473,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,32509,38672,22098,32530,32548,43771,30190,32600,32630,38672,32616,32654,32662,32678,32690,25344,38672,38672,48277,43215,38672,38672,38672,38672,29732,38672,38672,32706,29731,26036,33631,42208,32724,38438,44280,27268,25375,21272,38672,38672,31985,38672,38672,38672,26576,32745,36837,38672,26929,32766,22475,22475,22475,32810,32857,22411,22411,22690,27419,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,48405,38672,38672,40108,38672,28258,22475,22475,22475,42113,35786,22411,22411,22411,22411,32877,37334,26727,26727,26727,26728,26727,32919,30349,25414,38672,38672,38672,38672,38672,48411,32026,38672,26931,22475,22475,46869,22475,22475,33849,22411,22411,39678,22411,22411,33324,26727,26727,41099,26727,26727,32918,41804,38672,38672,38672,38672,38672,30118,38672,22475,22475,22475,42121,33754,33854,22411,22411,48685,22411,31454,26727,26727,26727,46758,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,23131,22411,22411,22411,36778,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,36404,38672,38672,38672,44299,22475,42143,31823,22411,32169,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,27097,32897,36362,47020,32935,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,25031,38672,38672,43445,32979,32987,33003,33009,33025,33041,33053,25344,38672,38672,38672,43215,38672,38672,29467,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,33069,38672,38672,38672,29641,38672,38672,38672,33103,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,33124,38672,18284,28258,22475,22475,22475,22475,40837,22411,22411,22411,22411,22411,34394,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,33142,38672,33163,42808,38672,42803,38566,22475,22475,37994,22475,22475,33849,22411,22411,47479,22411,22411,33324,26727,26727,31312,26727,26727,41720,33181,38672,38672,34958,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,34949,49071,38672,28255,22475,22475,29048,29442,22411,22411,43834,26485,26727,26727,49882,26998,33184,33200,40222,33234,22991,22475,33277,33313,50063,43479,33349,26727,33377,32128,26313,33405,26648,22985,33423,33443,35387,48797,34523,33492,40922,33514,26312,34036,46959,32375,33535,33554,33575,35236,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,28488,33591,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,32005,38672,38672,33617,38672,38672,38672,30064,38672,30073,38672,30064,33661,30069,38721,42958,22411,33692,33700,33716,25375,38672,38672,25941,29641,33732,20082,38672,38672,38672,38672,38672,26929,22475,22475,22475,33752,25393,22411,22411,23137,22690,26727,26727,26727,49362,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,25615,38672,33770,28258,22475,22475,22475,22475,40491,22411,22411,22411,22411,22411,40736,26727,26727,26727,26727,26727,33787,33803,33407,38672,38672,38672,38672,38672,38672,38672,38672,33819,48351,22475,22475,22475,22475,33849,46363,22411,22411,22411,22411,33324,48523,26727,26727,26727,26727,32918,33802,38672,38672,48282,38672,38672,38672,38672,22475,22475,22475,22475,33840,33854,22411,22411,22411,28403,27851,26727,26727,26727,43360,22521,33795,38672,38672,42813,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,33874,21141,27136,22475,42143,22411,22411,26977,26727,22520,33892,34036,21208,22475,46215,22411,33914,26727,33935,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,42795,38672,22098,25439,25194,32493,40646,40656,38304,38312,33959,33974,33986,34002,34014,25344,38672,38672,38672,49261,33079,38672,38672,23275,34030,34052,38672,34078,34127,34177,34211,38408,34239,34258,29354,34285,25375,38672,38672,36069,29641,38672,34301,38672,38672,38672,34327,24011,26929,47957,34366,22475,34410,34439,34460,34488,32881,44853,22711,39788,26727,49664,34508,39463,38672,28969,45656,28681,19706,18253,38672,26070,26232,47650,46594,28258,42618,22475,45107,34547,44588,22411,34575,22411,34594,34618,34642,27997,26727,35481,34668,34697,32919,33803,38672,38672,38672,44387,34733,34759,38672,38672,38672,26931,34796,22475,22475,22475,34845,34862,31216,22411,22411,37262,22411,34878,31262,26727,26727,28913,26727,34894,33802,38672,34931,35005,30145,35033,35049,30548,35079,26669,35097,35117,35142,44418,22411,35167,35192,43624,31718,26727,43013,39321,47169,35252,30750,31033,38672,35289,35307,35357,32192,22475,35380,35403,34559,22411,35440,35463,30821,35479,35497,35530,35556,35608,38672,38672,24906,47811,35630,37839,28037,35670,48379,27078,35705,48704,22521,26313,33898,38672,35734,27136,22475,42143,22411,22411,26977,26727,22520,28514,35751,26929,35782,35802,36916,32303,49941,26310,49171,22476,22411,26978,48196,35867,35883,35899,35915,42139,28345,26456,28257,28343,26456,35951,36348,35941,33538,36362,36357,34905,35967,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,33252,38672,22098,38672,38672,38672,38672,42922,38672,20573,33260,46302,45557,36019,36031,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,34780,22475,25393,22411,22411,36047,22690,26727,26727,36130,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,20243,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,36066,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,45849,38672,38672,38672,38672,38672,38672,38672,38672,26931,36085,22475,22475,22475,22475,33849,36106,22411,22411,22411,22411,33324,36126,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,19729,38672,22098,38672,39473,38672,44217,36146,36184,36196,36212,36218,36234,36250,36262,25344,38672,36278,38672,43215,38672,25421,18575,38672,27438,38672,38672,46139,36299,48111,34141,26409,36335,39145,44169,36378,36420,36455,38672,29371,36476,38672,27543,38672,36498,35844,31373,34743,36516,40527,36565,29321,36586,36623,36646,22411,36676,29093,36714,29346,28817,43388,36750,36802,37724,36836,38672,38672,38672,26061,38672,38672,38672,38672,38672,28258,36853,42951,22475,36876,38513,34492,36894,36913,40984,22411,43282,35514,28798,26727,43717,26727,36932,33803,38672,38672,36956,38672,38672,18909,32575,38672,38672,26931,22475,22475,41976,35273,36992,33849,22411,22411,45307,44424,37025,33324,26727,26727,40875,39885,37058,32918,33802,34967,38672,38672,32750,38672,38672,38672,22475,38401,22475,22475,28015,33854,34444,22411,22411,22411,27851,26727,37091,26727,26727,22521,33795,37110,34940,38672,46173,45770,29014,37131,22475,22475,37153,29988,22411,22411,37195,37219,26727,26727,36392,46887,38346,38672,39265,26931,22475,37243,42142,22411,37261,28347,26727,37278,22521,26313,38672,37296,38672,27136,22475,37317,22411,48861,26977,26727,48595,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,35925,29395,39608,37350,37371,26459,33538,37783,48331,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,41939,38672,22098,38672,25566,38672,38672,29887,39046,39054,37418,37432,37440,37456,37468,25500,38672,37493,38672,43215,38672,28533,38672,38672,27562,38672,38672,37494,37484,23258,20853,42141,37510,47612,44280,27268,25375,38672,29490,38672,29641,38672,37531,37550,38672,38672,38672,37570,27517,39732,22475,40520,37590,25393,37627,22412,37898,37646,31523,26727,48530,31241,31792,37683,37699,24812,38672,37723,38672,38672,38672,38672,38672,38672,38672,28258,37740,22475,37799,22475,35786,45030,31853,36110,22411,22411,37334,31545,34712,40790,26727,26727,32919,33803,38672,21024,48965,38672,38672,33943,28155,37816,38672,26931,46335,37834,22475,27041,22475,34377,49011,37855,22411,33297,22411,27890,39339,37875,26727,27899,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,48203,38672,38672,38672,26931,29057,22475,42142,32786,22411,28347,22555,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,37895,26977,49110,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,37914,31619,41895,26978,37938,37974,41757,45432,39617,42139,28345,26456,28257,28343,26456,28257,36549,37075,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,25240,38672,24719,38672,46651,38018,25104,38054,38118,38157,38142,38161,38126,38177,38189,25344,38672,45759,49561,49547,38205,49199,38672,38241,38259,34062,38289,38328,38371,38273,38387,38424,38467,39556,38529,27268,25375,40213,38672,38672,38590,21779,38672,38614,38641,21123,43234,38689,38713,41522,39725,26628,22475,25393,38737,22411,29117,22690,32232,31319,26727,38753,34652,38772,35341,38672,38798,38815,38672,38672,40618,38672,38672,38672,38840,33601,40485,22475,38858,22475,35786,47683,38876,40856,22411,22411,37334,32114,26727,42187,26727,26727,32919,33803,38672,38672,38672,38672,24776,38672,36500,33087,26755,48300,22475,22475,22475,46796,41600,49410,22411,22411,22411,38894,29994,47730,26727,26727,26727,46465,44085,32918,33802,38915,38949,38972,38992,38672,39015,39031,44824,39070,29039,39086,28015,33854,39115,39131,22365,39171,27851,40395,48234,48581,49654,22521,39190,33147,39225,26763,39254,38337,41515,31410,48668,36570,39289,44624,49920,36050,39312,46490,26727,39337,39355,46887,39394,38672,20942,22766,22475,39417,21499,22411,39448,25398,26727,39489,22521,47568,38672,38672,46680,45512,39505,42143,39542,32076,39585,39633,39657,35567,35614,26929,29075,42144,39674,26975,39694,26310,35759,35126,47451,29414,27465,39712,39748,39776,39804,46246,41657,47873,28257,28343,26456,28257,28345,26459,39839,39865,36357,34905,30398,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,39901,22098,38672,30368,39922,38672,45211,39942,39950,39966,39980,39988,40004,40016,25344,35063,40032,40048,40074,25784,40124,38672,40160,20023,50351,40199,40238,40274,40312,49237,40347,40363,36660,40411,40427,25375,38672,40443,18661,36161,37534,38672,18669,43864,38672,38672,44690,26929,22475,37009,40470,40507,25393,22411,40543,31503,45950,26727,47993,40578,40601,30990,39463,38672,44715,38672,38672,40617,29165,40634,41441,21201,19353,22907,40672,45368,47429,22475,22475,40708,37034,28896,40724,22411,47891,41633,40762,35506,40782,26727,47175,32919,22394,40806,38672,38654,32566,38672,38672,38672,38672,48740,26931,22475,38860,22475,40833,22475,33849,22411,41060,22411,40853,22411,33324,26727,38756,26727,40872,26727,32918,33802,38672,38672,20973,45998,38672,38672,38672,22475,22475,22475,22475,22458,40891,22411,22411,22411,22411,40911,26727,26727,26727,26727,22501,33795,23174,18332,38672,38672,38672,40938,22475,40962,22475,40684,22411,40981,22411,31782,26727,49841,26727,26998,28442,38672,38672,38672,26931,41e3,41019,42142,41039,41057,28347,41076,41095,22521,44039,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,34915,34036,27330,41115,29084,41137,35817,26727,27724,35759,41154,41218,41701,41262,41286,47258,44155,39617,42139,28345,26456,28257,28343,26456,28257,28345,28115,33538,27862,36357,34905,46290,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,26904,22098,38672,38672,41323,22275,41345,40139,38672,26358,41381,41394,41410,41422,25344,38672,38672,45842,43215,38672,38672,38672,41438,50256,38672,22231,41440,45848,38672,34773,41457,34829,39879,41487,27268,25375,38102,38672,38672,29641,38672,41538,41554,33261,38672,38672,36430,26929,41579,35101,34846,45533,41616,41649,40556,45401,41673,41736,41773,26727,41789,40746,42656,41831,38672,41855,41875,32532,32708,46542,38672,38672,38672,38672,28258,22475,22475,41594,22475,35786,22411,22411,22411,41893,22411,37334,26727,26727,37094,26727,26727,32919,27373,41911,29299,38672,38672,38672,41935,25466,38672,41955,26931,22475,41121,41974,22475,22475,34152,22411,46370,41992,22411,22411,30778,26727,31887,42009,26727,26727,32918,33802,38243,38672,38672,38672,38672,38672,38672,22475,22475,48461,22475,28015,42027,22411,22411,42047,22411,37764,26727,26727,48819,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,22208,38672,18340,22475,22475,42142,22411,22411,28347,26727,26727,28175,42067,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,30944,42088,42137,42160,42180,48196,42203,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,31078,38672,38672,32435,32438,32441,42224,25897,46967,28280,42275,42293,31579,27268,42319,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,46624,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,41023,22411,22411,22411,22411,22411,42864,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,42345,42143,29941,22411,26977,42363,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,44743,22177,38672,38672,27385,38672,45876,42383,22121,42412,42425,42433,42449,42461,25344,38672,32955,42527,43215,18706,42477,42499,33244,42519,38672,42543,40174,42559,42580,42605,42641,42672,40377,42708,42766,25375,38672,38672,38672,42829,42880,42911,43973,27961,38672,38672,23013,42938,22475,42974,41003,39432,42995,32861,22411,36698,35176,43029,43292,26727,43049,43082,43138,38672,38672,38672,25328,43172,43191,38672,43210,28234,38672,43231,48341,22475,43250,22475,22325,43268,47118,39174,22411,22411,43316,43332,43358,40585,26727,37280,43376,43410,33803,38672,38672,41815,45184,39238,30360,38672,43434,50186,43461,43495,48777,43514,43538,22475,43573,43599,31640,43617,43640,22411,43666,43692,49367,43710,43733,26727,47922,33802,43767,38672,38672,43787,43812,38672,43850,50024,43886,43557,22475,28015,33854,43908,34242,22411,22411,27851,46470,43935,44079,26727,39658,43953,38672,43989,21331,38672,38672,33824,22475,22475,49385,34223,22411,22411,22411,44011,26727,26727,26727,44027,46887,19958,38672,38672,50007,22475,22475,28197,22411,22411,44066,26727,26727,44101,26313,20872,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26890,47793,44124,44140,44185,44209,20435,28340,26976,33389,44233,44253,44277,44296,28343,26456,28257,28345,26459,44315,44342,38482,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,18636,22098,44386,29857,38069,44372,44403,44440,44464,44480,44494,44510,44526,44538,25344,44554,46908,38672,40088,38672,38672,41365,38672,43156,26783,26781,47212,47203,34311,44573,42979,44618,41232,44280,27268,44640,44676,38672,44712,29827,28456,38672,38672,38672,44731,44769,38672,40058,44785,40965,44822,22475,44840,44869,48063,22411,22690,39155,44892,44910,26727,30990,39463,38672,44931,38672,44950,44971,38672,38672,38672,38672,38672,44987,28258,45008,41301,22475,22475,37611,28054,22411,45028,22411,22411,45046,30301,30320,26727,26727,28093,30742,33803,38672,38672,45072,32638,30075,38672,46548,37818,38672,42396,22475,22475,47037,45094,33476,49452,22411,22411,49585,32047,36630,35654,26727,26727,39696,33919,26493,44108,45157,32514,38672,49604,38672,38672,38672,45200,22475,22475,43892,45227,28015,33854,22411,41993,40562,22411,27851,26727,26727,32834,45248,22521,33795,38672,22295,45267,19361,38672,28255,36090,22475,45286,43473,42051,22411,45304,43005,43694,26727,49877,26998,46887,38672,50299,46144,45323,22475,22475,42142,22411,22411,28347,26727,26727,49054,26313,45345,36168,40817,45367,22475,45384,22411,30669,26977,26727,45417,45465,36482,45500,45528,32279,22411,44261,26727,45549,35759,34423,35689,37179,48196,20435,28340,26976,27310,33427,47309,26456,32258,46222,29141,45599,45573,45589,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,42503,22098,38672,38672,19843,38672,45632,29682,29695,45672,45688,45703,45719,45731,25344,25697,36820,25484,43215,48936,33218,45747,38933,25691,45794,45830,45905,45865,45892,45921,30595,45937,41471,45980,45966,25375,45996,46014,46030,34093,38672,38672,46051,24794,46090,46124,46160,46201,46238,46262,46318,46334,46351,46386,26710,46424,30615,39597,40389,46450,46486,30259,41502,46506,46564,38672,46591,46610,46646,38672,45270,33165,46667,46703,46719,46781,46818,46866,45012,35786,47344,42692,28076,22411,34531,37334,42303,43342,43676,26727,37661,41688,46885,38672,46904,39209,44660,46924,28976,46946,38672,30957,20847,49903,46983,47036,22475,47053,33288,31829,47089,22411,22411,47105,35219,43394,47140,26727,26727,47156,32918,33802,47191,38672,41877,37707,38672,50210,38598,47237,45288,47274,47290,28015,43827,47306,47325,28394,29934,30696,36786,37667,47360,43033,22521,43418,47376,50112,38672,38355,49147,28255,47399,22475,22475,47445,47467,34602,22411,47502,47526,50046,26727,47556,46887,36283,49516,38672,48840,29206,44799,47584,47703,30662,30727,45251,31880,34269,39367,47647,38672,49567,38494,40946,47666,47699,47719,39849,48630,47746,32945,47785,47809,47827,47850,47889,47907,48880,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,49752,49772,47949,47973,48009,48038,49034,30862,33538,36362,36357,47933,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,48079,38672,38672,48107,38672,19671,30510,30518,48127,30518,30526,48143,48155,25344,38672,38672,38672,44955,38672,29647,38672,38672,38672,38672,29652,46888,38672,38672,45329,35643,48171,30851,45141,48219,48262,38672,38672,38672,29641,38672,38672,50200,50208,38672,38672,38672,48298,33458,22475,22475,22475,48316,48375,22411,22411,28301,37203,26727,26727,26727,30914,41169,48395,38672,34989,34103,38672,38672,38672,48429,38672,34985,36969,28258,49732,31174,47066,48458,46734,22411,37326,35682,48477,41625,48513,26727,48546,48566,33498,48611,32919,33803,38672,32557,38672,48646,38672,38672,38672,19786,38672,26931,22475,48666,22475,22475,22475,32777,22411,48684,22411,22411,22411,31945,26727,48701,26727,26727,26727,32918,33361,38672,45778,38672,38672,38672,38672,41194,35417,22475,22475,22475,28015,42844,22411,22411,22411,22411,27851,48720,26727,26727,26727,22521,33795,48739,38672,38672,48756,38672,35766,48773,22475,22475,45119,48793,22411,42164,43122,48813,26727,43937,26998,46887,48835,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,43522,42144,48856,26975,48877,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,20436,32151,30885,28257,28345,26459,33538,22735,48896,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,48924,48962,36314,45181,38672,50538,38672,45169,48959,38038,34111,48981,48993,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,27525,42141,49009,31292,44280,27268,25375,38672,36812,40252,29641,38672,38672,38672,38672,43194,38672,38672,26929,45232,22475,37800,22475,25393,49027,22411,46850,22690,27979,26727,26727,49050,30990,39463,38672,38672,38672,38672,38672,38672,49070,38672,38672,49087,38672,28258,22475,49810,22475,22475,35786,22411,22411,34386,22411,22411,37334,26727,26727,49106,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,49126,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,49146,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,49163,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,49187,38672,21516,38672,20816,49222,49253,38672,49277,49291,49304,49320,49332,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,31934,32212,26453,47540,49348,25375,38672,38672,38672,29641,38672,38672,38672,43175,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,35291,38672,38672,38672,36319,22475,22475,22475,22475,22475,31707,22411,22411,22411,22411,22411,45130,26727,26727,26727,26727,26727,32918,33802,38672,38842,38672,38672,38672,38672,38672,22475,22475,49383,22475,49401,33854,22411,42856,22411,47124,27851,26727,41079,26727,26727,49426,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25610,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,41202,49468,49480,25344,38672,38672,38672,43215,49496,38672,49515,38672,38672,46071,46074,38672,49532,28993,37922,42141,49583,32824,44280,27268,25375,38672,38672,46108,29641,46524,46533,49601,38672,38672,38672,38672,26929,22475,22475,49620,37001,25393,22411,29448,22411,49639,26727,26727,48625,36734,30990,43097,49680,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,49703,38672,38672,26931,22475,22475,49727,22475,22475,48053,22411,22411,49748,22411,22411,46748,26727,26727,49768,26727,26727,32918,33802,20903,38672,38672,38672,38672,38672,38672,22475,49788,22475,22475,28015,33854,26700,22411,22411,22411,27851,42367,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,38672,38672,38672,38672,44448,27298,33333,25344,45477,38672,38672,43215,38672,38672,49711,38672,38672,38672,49707,38672,38672,27156,49805,37753,37630,26453,49986,49826,25375,38672,20236,38672,29641,38672,38672,38672,38672,38672,38672,28133,26929,22475,22475,22475,47834,25393,22411,22411,22411,49862,26727,26727,26727,37879,30990,39463,38672,45808,38672,38672,38672,38672,38672,38672,29514,38672,38672,28258,49898,22475,31756,22475,35786,22411,49919,22411,36688,22411,37334,40766,26727,26727,49936,26727,32919,33803,38672,25655,38672,38672,38672,38672,38672,38672,38672,26931,22475,37984,22475,22475,22475,35151,22411,46398,22411,22411,22411,43919,26727,31302,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38999,38672,22475,22475,26805,22475,49623,33854,22411,22411,49957,22411,49975,26727,26727,47510,26727,49846,33795,38672,38672,18612,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,30025,38672,38672,50002,26931,50023,22475,27060,22411,22411,28347,50040,26727,22521,26313,38672,40323,38672,27136,29066,42143,22411,50062,26977,27488,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,25323,38672,38672,38672,38672,22098,38672,38672,38672,38672,42922,41360,38672,38672,38672,44448,27298,33333,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,25375,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,25393,22411,22411,22411,22690,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,34339,19585,19583,40183,33676,50079,27766,27768,50110,33673,34350,50128,50140,20832,38672,38672,38672,43215,38672,38672,25515,38672,38672,38672,38672,38672,38672,38672,18953,20613,18794,19200,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,18475,50434,18503,18525,50156,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,30470,38672,38672,20273,38672,42922,31104,31112,50226,50240,50248,42483,50272,20832,38672,38672,38672,43215,38672,38672,50505,38672,38672,38672,25547,38672,38672,25544,18953,18958,18794,35998,18531,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19406,50434,18503,18525,18547,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,42589,38672,38672,38672,38672,24842,35017,50315,50319,50335,50343,43995,50367,20832,38672,38672,38672,43215,38672,38672,25359,38672,38672,23171,38672,38672,38672,23167,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,29641,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,19075,50434,18503,18525,50409,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,20424,20452,20468,20484,20497,50424,20500,20516,20532,20548,20592,20589,50171,20608,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,20939,38672,38672,38672,38672,30470,38672,38672,38672,38672,42922,38672,38672,38672,38672,38672,38672,24860,25344,38672,38672,38672,43215,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28256,42141,22411,26453,44280,27268,22230,38672,38672,38672,29641,38672,38672,38672,38672,38672,38672,38672,26929,22475,22475,22475,22475,36544,22411,22411,22411,33858,26727,26727,26727,26727,30990,39463,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,28258,22475,22475,22475,22475,35786,22411,22411,22411,22411,22411,37334,26727,26727,26727,26727,26727,32919,33803,38672,38672,38672,38672,38672,38672,38672,38672,38672,26931,22475,22475,22475,22475,22475,33849,22411,22411,22411,22411,22411,33324,26727,26727,26727,26727,26727,32918,33802,38672,38672,38672,38672,38672,38672,38672,22475,22475,22475,22475,28015,33854,22411,22411,22411,22411,27851,26727,26727,26727,26727,22521,33795,38672,38672,38672,38672,38672,28255,22475,22475,22475,29442,22411,22411,22411,26485,26727,26727,26727,26998,46887,38672,38672,38672,26931,22475,22475,42142,22411,22411,28347,26727,26727,22521,26313,38672,38672,38672,27136,22475,42143,22411,22411,26977,26727,22520,26312,34036,26929,22475,42144,22411,26975,26727,26310,35759,22476,22411,26978,48196,20435,28340,26976,39617,42139,28345,26456,28257,28343,26456,28257,28345,26459,33538,36362,36357,34905,28863,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38956,38672,38672,29796,50456,50460,50460,50482,38955,50476,50498,38672,38672,38672,38672,38672,38672,50505,38672,38672,38672,38672,38672,38672,38672,18953,18958,18794,35998,19418,35990,45351,38672,18269,42564,38672,38672,40144,38672,23032,18306,18356,18382,18387,18403,18422,18462,20670,18475,50434,18503,18525,50156,19412,50440,18509,36003,19232,20563,38672,46930,18591,38672,38672,37574,18609,18628,33736,18652,18685,18722,18753,18745,18769,18406,25849,18792,20360,18810,18830,18835,19138,18794,20364,18814,18794,18839,19540,19955,37554,48943,18855,18871,18894,40258,38672,38976,18931,18947,18974,19016,19062,19169,19103,19129,20726,19934,19154,19185,19222,19248,20726,19934,19154,19185,19222,19273,19e3,30964,19299,19315,28712,19342,25187,19377,19393,19434,19464,19495,19569,19608,24938,19905,19631,19046,19601,24931,19898,19624,19039,19647,19687,43796,19722,19792,19745,19771,19808,19113,19859,19875,19921,18446,19976,19994,24983,18444,19974,19992,20321,18562,47383,20010,46515,35979,20039,20679,20105,20160,20116,20132,20159,20115,20176,19479,20207,20223,20259,20298,20337,20380,20402,21368,20386,20408,21374,19283,50527,20452,20468,20484,20497,50424,20500,20516,26100,20548,20592,20589,50171,18953,19547,18794,18487,20629,20143,19945,20660,18437,21954,20695,20711,21969,19448,21939,20755,19510,19659,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,38672,94505,94505,90408,90408,94505,94505,94505,94505,94505,94505,94505,94505,94505,94505,94505,94505,94505,94505,94505,94505,1,12290,94505,94505,94505,94505,94505,94505,94505,94505,94505,0,94505,90408,94505,94505,94505,94505,94505,94505,94505,94505,94505,364,94505,90408,94505,94505,94505,94505,94505,94505,94505,69632,73728,94505,94505,94505,94505,94505,65536,94505,3,0,0,2183168,0,0,0,90408,94505,298,299,0,2134016,302,303,0,0,0,0,0,1636,0,0,0,0,0,0,0,0,0,1645,0,0,2732032,0,0,0,0,0,0,0,0,0,0,2904064,2908160,0,0,0,0,0,1699,0,0,0,0,0,0,0,0,0,0,0,2963,0,0,0,0,0,2424832,0,0,0,0,0,0,0,0,0,0,0,0,2625536,0,0,0,0,0,2045,0,0,0,0,2049,0,0,0,0,0,0,0,2711,0,0,0,0,0,0,0,0,0,2976,0,534,534,534,534,534,2699264,2715648,0,0,2772992,2805760,2830336,0,2863104,2920448,0,0,0,0,0,0,0,303,303,303,303,0,303,303,303,303,0,2805760,2920448,0,0,0,0,0,2920448,0,0,0,0,0,0,0,2732032,0,2179072,2179072,2179072,2179072,2424832,2433024,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,3125248,2625536,2179072,2179072,2179072,2179072,2179072,2179072,2699264,2179072,2715648,2179072,2723840,2179072,2732032,2772992,2179072,2125824,2125824,2125824,2125824,2125824,2592768,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2551808,2125824,2125824,2125824,2125824,2125824,2637824,2125824,2179072,2179072,2805760,2179072,2830336,2179072,2179072,2863104,2179072,2179072,2179072,2179072,2920448,2179072,2179072,2179072,0,0,2125824,2125824,2125824,2125824,2125824,2424832,2433024,2125824,2125824,2125824,2125824,0,2502656,0,0,3010560,0,0,0,0,2990080,2179072,2179072,2699264,2125824,2715648,2125824,2723840,2125824,2732032,2772992,2125824,2125824,2125824,2805760,2125824,2830336,2125824,2125824,2863104,2125824,2125824,2125824,2125824,2920448,2863104,2125824,2125824,2125824,2125824,2920448,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,0,1142784,0,2179072,2125824,2125824,2125824,3117056,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,0,0,975,2125824,0,0,0,0,0,0,2510848,2514944,0,0,2547712,2596864,0,0,0,0,0,0,735,0,0,0,0,735,0,741,0,0,0,2789376,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3137,0,0,2142208,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2733,0,2662400,0,2813952,0,0,0,0,2375680,0,0,0,0,0,0,0,0,0,350,351,352,0,0,0,0,2584576,0,0,0,0,2838528,0,0,2838528,0,0,0,0,0,0,0,0,1122,0,0,0,0,0,0,0,0,0,0,1186,0,0,0,0,0,0,0,2891776,0,0,0,0,0,2392064,2412544,0,0,2838528,0,0,0,0,0,0,262144,0,0,0,0,0,0,0,0,0,0,706,0,0,0,0,0,0,0,0,2179072,2179072,2179072,2408448,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2125824,0,2126724,2126724,2617344,2179072,2179072,2179072,2179072,2179072,2179072,2662400,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2584576,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2801664,2813952,2179072,2838528,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2125824,1798,2125824,2125824,2125824,2408448,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2662400,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2801664,2813952,2125824,2838528,2125824,2813952,2125824,2838528,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3125248,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,0,2822144,0,0,2883584,0,0,0,0,0,0,0,0,0,0,3080192,3100672,3104768,0,0,0,0,3186688,0,0,0,0,0,0,0,0,0,0,305,306,0,0,0,0,0,0,2797568,0,0,0,0,0,0,0,2850816,2867200,0,0,2883584,0,0,0,0,0,2072,0,0,0,0,0,0,0,0,0,0,0,3134,0,0,0,0,2465792,0,0,2719744,0,0,0,0,0,0,0,0,0,0,3014656,3207168,0,2691072,0,0,3215360,0,0,0,0,0,0,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2125824,2125824,2125824,2125824,2125824,2179072,2179072,2179072,2179072,2179072,2461696,2465792,2179072,2179072,2179072,2179072,2179072,2179072,2523136,2179072,2179072,2179072,0,1342,2125824,2125824,2125824,2125824,2125824,2424832,2433024,2125824,2125824,2125824,2125824,0,0,0,0,0,0,0,0,0,0,2473984,2478080,2179072,2179072,2179072,2179072,2179072,2179072,2600960,2179072,2179072,2179072,2179072,2641920,2179072,2179072,2179072,2179072,2179072,2125824,2125824,2125824,2125824,2125824,1047,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3035136,2125824,2125824,3072e3,2125824,2125824,2125824,3121152,2125824,2125824,3141632,2125824,2125824,2125824,3170304,2179072,2179072,2719744,2179072,2179072,2179072,2179072,2179072,2768896,2777088,2781184,2797568,2822144,2179072,2179072,2179072,0,900,2125824,2125824,2125824,2125824,2125824,2424832,2433024,2125824,2125824,2125824,2125824,298,0,299,0,302,0,303,0,0,0,2473984,2478080,2179072,3063808,2179072,2179072,2179072,2179072,3100672,2179072,2179072,3133440,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2551808,2179072,2179072,2179072,2179072,2179072,2637824,2179072,2179072,2179072,2179072,3207168,2179072,0,0,0,0,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,0,0,2125824,2125824,2125824,2408448,2125824,2125824,2125824,2719744,2125824,2125824,2125824,2125824,2125824,2768896,2777088,2781184,2797568,2822144,2125824,2125824,2125824,2883584,2179072,2912256,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,3039232,2125824,2912256,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3039232,2125824,2125824,0,2125824,2126799,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,245760,0,0,2179072,2125824,2125824,3063808,2125824,2125824,2125824,2125824,2125824,3100672,2125824,2125824,3133440,2125824,2125824,2125824,2125824,2125824,2125824,0,2179072,2125824,2125824,2457600,2179072,2179072,2179072,2179072,2457600,2125824,2125824,2125824,3207168,2125824,0,0,0,0,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,0,1894,2125824,2125824,2125824,2408448,2125824,2125824,2125824,2125824,2125824,3207168,2125824,2179072,2125824,2125824,2179072,2179072,2179072,2179072,2125824,2125824,2125824,2125824,0,2486272,0,0,0,0,0,2678784,2854912,3006464,0,2924544,0,0,0,0,0,0,0,0,0,3162112,3170304,0,0,3219456,3035136,0,0,0,0,0,3072e3,2650112,0,0,2809856,0,0,0,0,0,0,0,1650,0,0,0,0,0,0,1654,0,2686976,2736128,0,0,2531328,2707456,0,3190784,0,0,2576384,0,0,0,0,0,0,0,1688,0,0,0,0,0,0,0,0,0,2742,0,0,0,0,0,0,0,3121152,3141632,0,0,0,2924544,0,2682880,0,0,0,0,0,0,3112960,2387968,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2453504,2179072,2473984,2482176,2179072,2179072,2179072,0,901,2125824,2125824,2125824,2125824,2125824,2424832,2433024,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,0,0,0,2179072,2125824,2125824,2179072,2179072,2179072,2531328,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2605056,2179072,2629632,2179072,2179072,2179072,2179072,2179072,2125824,2527232,2125824,2125824,2125824,2125824,2125824,3092480,2125824,2527232,2125824,2650112,2179072,2179072,2179072,2707456,2179072,2736128,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2887680,2179072,2125824,2125824,2125824,2125824,2441216,0,0,0,0,0,0,0,0,0,2932736,2179072,2924544,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,3035136,2179072,2179072,3072e3,2179072,2125824,2658304,2973696,2125824,2125824,2658304,2973696,2125824,2711552,256e4,2179072,256e4,2125824,256e4,2125824,2125824,2125824,2125824,2125824,3223552,975,0,2125824,2125824,2416640,2125824,2125824,2125824,2445312,2125824,2125824,2125824,2125824,2179072,2125824,2125824,2179072,2179072,2179072,2179072,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,1047,0,0,2179072,2125824,2125824,2179072,3121152,2179072,2179072,3141632,2179072,2179072,2179072,3170304,2179072,2179072,3190784,3194880,2179072,0,0,0,0,0,0,1134592,0,0,0,0,0,0,0,0,0,0,1134592,2125824,2125824,3190784,3194880,2125824,0,0,0,0,0,0,2387968,2125824,2125824,2125824,2420736,2125824,2125824,2125824,2125824,2125824,2453504,2125824,2707456,2125824,2736128,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2887680,2125824,2125824,2924544,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3141632,2125824,2125824,2125824,3170304,2125824,2125824,3190784,3194880,2125824,2179072,2125824,2125824,2179072,2125824,2125824,2179072,2125824,2125824,2985984,2985984,2985984,0,0,0,0,0,0,0,69632,73728,0,419,419,0,0,65536,419,2179072,3112960,3219456,2125824,2125824,3112960,3219456,2125824,2125824,3112960,3219456,0,0,0,0,0,0,0,1701,0,0,0,0,0,0,0,0,0,1624,0,0,0,0,0,0,0,3022848,0,0,3145728,0,3203072,0,0,0,0,0,0,0,0,0,0,335,336,0,0,0,0,0,0,0,0,3067904,0,0,0,0,0,0,0,0,0,0,0,0,787,0,0,0,0,0,0,0,0,0,0,0,2445312,0,2842624,0,0,0,2637824,0,0,0,0,2621440,0,0,0,0,0,2100,0,0,0,0,0,0,0,0,0,0,0,2727936,0,0,0,3084288,3182592,2899968,0,2961408,0,0,2179072,2179072,2416640,2179072,2179072,2179072,2445312,2179072,2179072,2179072,0,901,2126724,2126724,2126724,2126724,2126724,2425732,2433924,2126724,2126724,2126724,2126724,2458574,2126798,2126798,2126798,2126798,2183168,0,0,0,0,0,0,0,396,0,0,0,0,0,396,0,0,2179072,2179072,2179072,2727936,2752512,2179072,2179072,2179072,2842624,2846720,2179072,2895872,2916352,2179072,2179072,2945024,2179072,2179072,2994176,2179072,3002368,2179072,2179072,3022848,2179072,3067904,3084288,3096576,2179072,2179072,2179072,2179072,2179072,2125824,2125824,2125824,2125824,2125824,237568,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2605056,2125824,2629632,2125824,2125824,2650112,2125824,2125824,2125824,2707456,2125824,2736128,2125824,2125824,2125824,2125824,2179072,2179072,2179072,3223552,0,0,2125824,2125824,2416640,2125824,2125824,2125824,2445312,2125824,2125824,2125824,2125824,2125824,2600960,2125824,2125824,2125824,2125824,2641920,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3010560,2125824,2125824,2125824,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2940,0,2637824,2125824,2125824,2125824,2125824,2727936,2752512,2125824,2125824,2125824,2125824,2842624,2846720,2125824,2895872,2916352,2125824,2125824,2125824,2125824,2945024,2125824,2125824,2994176,2125824,3002368,2125824,2125824,3022848,2125824,3067904,3084288,2125824,3096576,2125824,2125824,0,0,0,2928640,0,0,0,3059712,0,2543616,2666496,0,2633728,0,0,0,0,0,0,766,767,0,0,0,754,0,0,774,0,2179072,2179072,2179072,2494464,2179072,2179072,2514944,2179072,2179072,2179072,2543616,2547712,2179072,2179072,2596864,2179072,2126724,2126724,2126724,2126724,2126724,2593668,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126798,0,0,0,0,0,0,2510848,2514944,0,0,2547712,2596864,0,0,0,0,0,0,1164,0,0,0,0,0,0,0,0,0,0,1564,0,1566,0,0,0,2179072,2179072,3059712,2179072,2179072,2179072,2179072,2179072,2179072,3178496,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2928640,2125824,2125824,2125824,2998272,2125824,2125824,2125824,2125824,3059712,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3178496,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3010560,2125824,2125824,2125824,2125824,2125824,2502656,2125824,2125824,2125824,2494464,2125824,2125824,2514944,2125824,2125824,2125824,2543616,2547712,2125824,2125824,2596864,2125824,2125824,2125824,2125824,2125824,3059712,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3178496,2179072,2125824,2125824,2179072,2126724,2126724,2126798,2126798,2441216,0,0,0,0,0,0,0,0,0,2932736,2965504,0,0,3076096,0,0,2695168,3174400,2646016,2613248,2703360,0,0,0,0,2977792,0,0,3047424,3129344,0,2981888,2396160,0,3153920,0,0,0,2740224,0,0,0,0,0,0,1106,0,0,0,0,0,0,0,0,0,334,0,0,0,0,0,0,0,0,2793472,0,0,0,0,0,2469888,2506752,2756608,0,0,2580480,0,0,0,0,0,0,1146880,0,1146880,0,0,0,0,0,0,0,302,302,302,302,0,302,302,302,302,0,2396160,2400256,2179072,2179072,2441216,2179072,2469888,2179072,2179072,2179072,2519040,2179072,2179072,2179072,2179072,2179072,2125824,2125824,2125824,2125824,2125824,241664,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3223552,2179072,2125824,2125824,2179072,2179072,2125824,2125824,2125824,2588672,2179072,2613248,2646016,2179072,2179072,2695168,2756608,2179072,2179072,2179072,2932736,2179072,2179072,2179072,2179072,2179072,2125824,2125824,2125824,2125824,2125824,245760,2125824,2125824,2125824,2125824,2125824,2125824,2584576,2125824,2125824,2125824,2125824,2125824,2617344,2125824,2125824,2125824,2125824,2125824,2125824,2662400,2179072,2179072,2179072,3129344,2179072,2179072,3153920,3166208,3174400,2396160,2400256,2125824,2125824,2441216,2125824,2469888,2125824,2125824,2125824,2519040,2125824,2125824,2125824,2125824,2125824,2519040,2125824,2125824,2125824,2125824,2588672,2125824,2613248,2646016,2125824,2125824,2695168,2756608,2125824,2125824,2125824,2125824,2932736,2125824,0,3108864,3198976,0,0,3043328,0,3149824,2936832,0,2760704,3132,0,0,0,0,534,534,534,534,534,534,534,534,534,534,534,3503,2953216,0,0,2826240,3158016,2428928,0,3018752,2764800,2572288,0,0,3051520,2179072,2428928,2437120,2179072,2486272,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2654208,2678784,2760704,2764800,2854912,2969600,2179072,3006464,2179072,3018752,2179072,2179072,2179072,3149824,2125824,2428928,2437120,2125824,2486272,2125824,2125824,2125824,2125824,2125824,2654208,2678784,2760704,2764800,2785280,2854912,2969600,2125824,3006464,2125824,3018752,2125824,2125824,2125824,2125824,3149824,2179072,3051520,2125824,3051520,2125824,3051520,0,2490368,2498560,0,0,0,0,2875392,0,0,0,3132,0,0,2834432,0,3227648,2568192,2564096,0,2940928,2179072,2179072,2498560,2179072,2179072,2179072,2555904,2564096,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,3137536,2125824,2125824,2125824,2125824,2457600,2125824,2125824,2125824,2125824,2183168,0,0,0,0,0,0,0,333,0,0,0,0,0,333,0,0,2125824,3137536,2125824,2125824,2498560,2125824,2125824,2125824,2555904,2564096,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3132,0,0,0,0,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2125824,2126725,2125824,2125824,2125824,2502656,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,3010560,2179072,2179072,2125824,2125824,2502656,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,3010560,2179072,2179072,2126724,2126724,2503556,0,0,0,0,2179072,2179072,2179072,2179072,2179072,2592768,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,3117056,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2928640,2179072,2179072,2179072,2998272,2179072,2179072,3031040,0,0,0,2179072,2449408,2179072,2535424,2179072,2609152,2179072,2859008,2179072,2179072,2179072,3031040,2125824,2449408,2125824,2535424,2125824,2609152,2125824,2859008,2125824,2125824,2125824,3031040,2125824,2125824,2449408,2125824,2125824,2125824,2125824,2461696,2465792,2125824,2125824,2125824,2125824,2125824,2125824,2523136,2125824,2125824,2125824,298,0,0,0,298,0,299,0,0,0,299,0,302,2125824,2125824,2125824,3026944,2404352,2125824,2125824,2125824,2125824,3026944,2539520,0,2949120,2179072,2658304,2973696,111044,111044,111044,111044,111044,111044,111044,111044,111044,111044,111044,111044,111044,111044,111044,111044,452,452,111044,452,452,452,452,452,452,452,452,452,452,111044,111044,111044,111044,111044,111044,111044,111044,111044,111044,452,111044,111044,111044,111044,111044,0,0,0,0,0,0,0,0,0,360,0,0,0,0,0,360,3,0,0,2183168,0,0,0,0,0,298,299,0,2134016,302,303,0,0,0,0,0,2124,0,0,0,0,0,534,534,534,534,534,847,534,534,861,534,534,0,302,118784,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3127,0,0,0,302,0,0,0,302,119197,73728,0,0,0,0,0,65536,0,0,0,0,0,2403,0,0,0,0,0,0,0,0,0,0,302,302,0,0,0,0,302,302,302,302,302,302,0,0,0,0,0,302,0,302,1,12290,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2966,0,3,0,0,2183168,0,0,0,0,0,33396,299,0,2134016,49784,303,0,0,0,0,0,2428,0,0,0,0,0,0,0,0,0,0,0,172032,0,0,0,0,0,0,0,0,0,298,0,0,0,302,0,0,0,2424832,2433024,0,0,2457600,2105631,12290,3,0,0,293,0,0,0,0,293,0,0,0,0,0,0,0,2024,0,0,0,0,0,0,0,0,0,2455,0,0,0,0,0,0,0,0,0,0,122880,122880,122880,122880,122880,122880,122880,122880,122880,0,0,122880,0,0,0,0,0,0,0,0,0,0,0,785,0,790,0,793,0,0,0,122880,0,122880,122880,122880,0,0,0,0,0,122880,0,122880,122880,122880,122880,122880,122880,122880,122880,122880,122880,122880,122880,122880,122880,122880,122880,0,0,122880,0,0,0,0,0,0,0,0,122880,0,0,0,0,0,0,0,0,0,0,0,0,1216,0,0,0,0,147456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3148,0,0,0,0,1067,1071,0,0,1075,1079,0,2424832,2433024,0,0,2457600,0,0,0,131072,0,0,0,69632,73728,0,0,0,0,0,65536,0,0,0,0,0,2479,2437,0,0,0,0,0,2484,0,0,0,0,0,0,1675,0,0,0,0,0,0,0,0,0,0,3260,0,0,534,534,534,131072,0,0,131072,131072,0,0,0,0,0,0,0,131072,0,0,131072,0,0,131072,0,0,0,0,0,135168,135168,0,0,0,0,0,0,0,0,0,0,0,0,0,0,225708,0,0,0,135168,0,0,135168,0,0,0,0,0,0,0,0,0,0,0,1096,0,0,0,0,0,0,0,135168,0,135168,135168,135168,135168,135168,135168,0,135168,135168,135168,135168,135168,135168,0,0,0,0,0,135168,0,135168,1,12290,3,0,0,2183168,0,0,0,0,0,629,630,0,2134016,633,634,0,0,0,0,0,2725,0,0,0,0,0,0,0,0,0,0,0,2200245,2200245,2200245,0,0,2125824,3117056,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,0,0,1434,2125824,2125824,2125824,2125824,2932736,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3129344,2125824,2125824,3153920,3166208,3174400,2506752,2506752,2506752,0,303,139264,0,0,0,0,0,0,0,0,0,0,0,0,0,0,266240,0,0,0,0,0,303,0,0,0,303,69632,139681,0,0,0,0,0,65536,0,0,0,0,0,2738,0,0,0,0,0,0,0,0,0,0,0,2013,0,0,0,0,303,303,303,303,303,303,0,0,0,0,0,303,0,303,1,12290,3,0,0,0,0,0,0,0,0,0,0,0,0,300,3,0,0,2183168,0,0,0,0,0,298,33399,0,2134016,302,49787,0,0,0,0,0,2763,534,534,534,534,534,534,534,534,534,534,556,556,3020,556,556,556,61440,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,360,300,300,300,143660,370,300,300,300,300,300,300,300,300,300,300,300,300,300,300,300,300,143660,300,300,143660,300,300,300,143730,300,300,300,143730,69632,73728,300,300,143660,300,300,65536,300,300,0,0,300,300,143660,300,300,300,300,300,300,300,300,300,365,300,0,143660,300,300,300,143660,143660,143660,143660,143660,143660,143660,143660,143660,143660,143660,143660,143660,143660,143660,143660,300,300,143660,300,300,300,300,300,300,300,300,300,300,300,143730,300,300,300,300,300,300,300,300,143660,143660,143660,143660,143660,143660,143660,143660,143660,300,300,300,300,300,300,300,300,143660,300,143660,143660,143660,143660,300,143660,143660,143660,143660,143660,143660,300,0,300,0,300,300,300,143660,300,143660,143660,143660,143660,143660,143730,143660,143730,143730,143730,143730,143730,143730,143660,143660,143660,143660,143660,143660,143660,143660,1,12290,0,0,0,0,2200245,2200245,0,0,0,0,0,0,0,0,0,0,0,1153,1154,0,0,0,0,0,0,155648,155648,0,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,155648,0,0,0,0,155648,0,0,0,0,0,155648,155648,0,155648,155648,0,12290,0,0,0,0,155648,0,155648,0,0,0,0,0,155648,0,0,0,0,0,0,1148,0,0,0,0,0,0,0,0,1157,3,0,0,2183168,126976,0,0,0,0,298,299,0,2134016,302,303,0,0,0,0,0,2934,0,0,0,0,0,0,0,0,0,0,0,2446,0,0,0,0,159744,159744,159744,159744,159744,159744,159744,159744,159744,159744,159744,159744,159744,159744,159744,159744,163840,159744,159744,159744,159744,0,0,159744,0,0,0,0,0,0,0,0,159744,159744,159744,159744,159744,159744,159744,159744,159744,159744,163840,159744,159744,159744,159744,159744,0,0,0,0,0,0,0,0,0,364,0,0,0,0,131072,131072,25155,0,0,0,159744,0,0,0,25155,25155,25155,159744,25155,25155,25155,25155,25155,25155,25155,159744,159744,159744,159744,25155,159744,25155,1,12290,2125824,3117056,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,0,24576,975,2125824,2125824,2125824,2125824,3092480,0,0,0,2404352,2179072,2179072,2179072,2179072,3026944,2404352,2125824,2125824,2125824,2125824,2592768,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2449408,0,2535424,2125824,2609152,2125824,2859008,2125824,2125824,2125824,3031040,2125824,2527232,0,0,0,2179072,2527232,167936,167936,167936,167936,167936,167936,167936,167936,167936,167936,167936,167936,167936,167936,167936,167936,1,12290,167936,167936,167936,0,0,167936,0,0,0,0,0,0,0,0,167936,167936,167936,167936,167936,167936,167936,167936,0,0,0,0,0,0,0,0,0,364,0,0,0,0,155648,0,172032,172032,0,172032,0,0,172032,172032,0,172032,0,0,0,0,172032,172032,0,0,0,0,0,0,0,0,0,0,172032,0,0,0,172032,172032,0,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,172032,0,0,0,0,0,0,0,0,0,364,0,292,0,0,0,0,1,288,3,0,0,0,294,0,0,0,0,0,0,0,0,0,0,348,0,0,0,0,0,176128,176128,176128,176128,176128,176128,176128,176128,176128,176128,176128,176128,176128,176128,176128,176128,1,0,176128,176128,176128,0,0,176128,0,0,0,0,0,0,0,0,176128,176128,176128,176128,176128,176128,176128,176128,0,0,0,0,0,0,0,0,0,364,0,292,0,0,0,347,3,78114,78114,292,0,627,0,0,0,298,299,0,2134016,302,303,0,0,0,0,0,2946,0,0,0,0,0,0,0,0,0,0,0,245760,0,0,0,0,78114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,672,0,1102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,155648,0,0,0,0,1146,0,0,0,0,1151,0,0,0,0,0,0,0,346,0,404,0,0,0,0,0,404,0,0,0,2098,0,0,0,0,0,0,0,0,0,0,0,0,0,2717,0,0,534,2135,534,534,534,534,534,534,534,534,534,534,534,2147,534,534,534,534,534,534,1775,534,534,534,1780,534,534,534,534,534,534,534,2545,534,534,534,534,534,534,0,2549,2220,556,556,556,556,556,556,556,556,556,556,556,2232,556,556,556,556,556,556,2590,556,556,556,556,556,556,2598,556,556,2307,580,580,580,580,580,580,580,580,580,580,580,2319,580,580,580,0,0,0,2006,0,1069,0,0,0,2008,0,1073,0,2573,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,1396,0,0,2955,0,0,0,2959,0,0,0,0,0,0,0,0,0,0,371,0,0,372,0,0,0,534,3150,534,534,534,3153,534,534,534,534,534,534,534,534,534,534,2547,534,534,534,0,0,3161,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,556,556,556,556,580,3206,580,580,580,3209,580,580,580,580,580,580,580,580,2679,580,580,580,534,580,556,534,580,580,3217,580,580,580,580,580,580,580,580,580,580,580,580,580,534,580,556,534,580,580,3309,580,580,580,580,3310,3311,580,580,580,580,580,580,580,580,2875,580,580,580,580,580,580,580,580,3071,580,580,580,580,580,580,580,580,3233,580,580,580,580,534,580,556,1993,534,534,534,1997,556,556,556,2001,534,534,534,3339,534,534,534,534,534,534,3345,534,534,534,534,556,3407,556,3409,556,556,556,556,556,556,556,556,1373,556,556,556,556,556,556,556,3364,556,580,580,580,580,580,580,3370,580,580,580,580,580,580,3376,580,580,580,3380,580,534,556,580,0,0,0,0,0,0,0,0,0,2925,0,0,0,0,0,3132,0,0,0,0,3391,534,534,534,534,534,534,534,534,534,534,534,2198,534,2200,534,534,534,534,534,534,3406,556,556,556,556,556,556,556,556,556,556,556,556,26009,1341,975,580,556,556,556,556,3422,580,580,580,580,580,580,580,580,580,580,580,1449,580,580,580,580,580,580,580,3522,580,580,580,580,580,580,580,580,580,0,0,0,534,534,534,534,3585,534,556,556,3,78114,78114,292,0,0,0,0,0,298,299,0,2134016,302,303,0,0,0,0,0,2973,0,0,2975,0,0,534,534,2980,534,534,534,534,534,534,2532,534,534,534,534,534,534,534,534,534,534,2793,534,534,534,534,534,0,0,0,304,0,0,0,0,0,0,0,0,0,0,0,0,0,2732,0,0,192965,192965,192965,192965,192965,192965,192965,192965,192965,192965,192965,192965,192965,192965,192965,192965,0,192965,0,1,12290,192965,192965,192965,0,0,192965,0,0,0,0,0,0,0,0,0,0,0,1201,0,0,0,0,0,0,0,0,192965,192965,192965,192965,192965,192965,192965,192965,192965,192965,0,192965,192965,192965,192965,192965,0,0,0,0,0,0,0,0,0,364,0,304,0,0,0,0,0,0,0,0,196608,0,0,0,0,0,0,0,0,0,0,0,0,1582,0,0,0,301,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,727,406,406,406,406,406,406,0,0,0,0,0,406,0,406,1,12290,3,0,0,0,0,0,0,0,0,0,0,0,118784,298,3,78114,78114,292,0,0,0,0,0,298,299,0,301,302,303,0,0,0,0,0,3142,0,0,0,0,0,0,0,0,0,0,0,2978,534,534,534,534,0,0,0,0,733,406,0,0,0,0,0,0,0,0,0,0,0,1240,0,0,0,1244,0,0,1175,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2871296,0,0,1171,1171,0,0,0,1175,1650,0,0,0,0,0,0,0,0,0,364,0,253952,0,0,0,0,580,580,580,1540,2005,0,0,0,0,1546,2007,0,0,0,0,1552,0,0,0,1558,0,0,0,0,0,0,0,0,0,0,405,0,0,0,0,0,2009,0,0,0,0,1558,2011,0,0,0,0,0,0,0,0,0,0,406,0,0,0,0,0,534,534,534,534,2549,0,556,556,556,556,556,556,556,556,556,556,1410,556,556,556,556,556,0,306,0,306,0,0,0,0,0,0,0,0,0,306,0,0,0,0,0,0,1155072,0,0,0,0,0,0,0,0,0,0,0,0,0,2705,0,0,0,0,0,204800,204800,0,204800,204800,204800,204800,204800,204800,204800,204800,204800,204800,204800,204800,204800,204800,205106,204800,204800,205105,205106,204800,205105,205105,204800,204800,0,0,0,0,0,0,0,0,0,364,299,0,0,0,0,0,3,0,0,2183794,0,0,0,0,0,298,299,151552,2134016,302,303,0,0,0,0,0,155648,155648,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,655,212992,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,757,0,151552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,286720,2179072,2179072,2179072,2179072,2179072,2126724,2126724,2126724,2126724,2126724,0,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,3036110,2126798,2126798,3072974,2126798,2126798,2126798,3122126,2700164,2126724,2716548,2126724,2724740,2126724,2732932,2773892,2126724,2126724,2126724,2806660,2126724,2831236,2126724,2126724,973,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2864004,2126724,2126724,2126724,2126724,2921348,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2626436,2126724,2126724,2126724,2126724,2126724,2126724,2126724,3117956,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,0,0,975,2126798,2126798,2126798,2126798,2126798,2126798,2126798,3224526,2179072,2126798,2126724,2179072,2179072,2126724,2126724,2126798,2126798,0,2486272,0,0,0,0,0,2678784,2854912,3006464,2126798,2126798,2126798,2626510,2126798,2126798,2126798,2126798,2126798,2126798,2700238,2126798,2716622,2126798,2724814,2126798,2126798,2126798,2126798,2126798,2454478,2126798,2474958,2483150,2126798,2126798,2126798,2126798,2126798,2126798,2532302,2733006,2773966,2126798,2126798,2126798,2806734,2126798,2831310,2126798,2126798,2864078,2126798,2126798,2126798,2126798,2921422,2126724,2409348,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2814852,2126724,2839428,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,3126148,2126724,2126724,2126724,2126724,2126798,2126798,2585550,2126798,2126798,2126798,2126798,2126798,2618318,2126798,2126798,2126798,2126798,2126798,2126798,2663374,2179072,2179072,2179072,3207168,2179072,0,0,0,0,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2552708,2126724,2126724,2126724,2126724,2126724,2638724,2126724,2126724,2720644,2126724,2126724,2126724,2126724,2126724,2769796,2777988,2782084,2798468,2823044,2126724,2126724,2126724,2884484,2126724,2913156,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,3040132,2126724,2126724,2126724,2728836,2753412,2126724,2126724,2126724,2126724,2843524,2847620,2126724,2896772,2917252,2126724,2126724,2126724,2126724,3150724,2126798,2429902,2438094,2126798,2487246,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2929614,2126798,2126798,2126798,2999246,2126798,3064708,2126724,2126724,2126724,2126724,2126724,3101572,2126724,2126724,3134340,2126724,2126724,2126724,2126724,2126724,2126724,2585476,2126724,2126724,2126724,2126724,2126724,2618244,2126724,2126724,2126724,2126798,2720718,2126798,2126798,2126798,2126798,2126798,2769870,2778062,2782158,2798542,2823118,2126798,2126798,2126798,2884558,2126798,2913230,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,3040206,2126798,2126798,2126798,2126798,2126798,2601934,2126798,2126798,2126798,2126798,2642894,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2606030,2126798,2630606,2126798,2126798,2651086,2126798,2126798,2126798,3064782,2126798,2126798,2126798,2126798,2126798,3101646,2126798,2126798,3134414,2126798,2126798,2126798,2126798,2126798,2126798,0,2179072,2126798,2126724,2457600,2179072,2179072,2179072,2179072,2458500,2126798,2126798,2126798,3208142,2126798,2179072,2126798,2126724,2179072,2179072,2179072,2179072,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,3011460,2126724,2126724,2126724,2126798,2126798,2503630,0,0,0,0,2388868,2126724,2126724,2126724,2421636,2126724,2126724,2126724,2126724,2126724,2454404,2126724,2126724,2126724,3027844,2405326,2126798,2126798,2126798,2126798,3027918,2539520,0,2949120,2179072,2658304,2973696,2474884,2483076,2126724,2126724,2126724,2126724,2126724,2126724,2532228,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2601860,2126724,2126724,2126724,2126724,2642820,2126724,2126724,2126724,2126724,2126724,2655108,2679684,2761604,2765700,2786180,2855812,2970500,2126724,3007364,2126724,3019652,2605956,2126724,2630532,2126724,2126724,2651012,2126724,2126724,2126724,2708356,2126724,2737028,2126724,2126724,2126724,2126724,2462596,2466692,2126724,2126724,2126724,2126724,2126724,2126724,2524036,2126724,2126724,2126724,2126724,3036036,2126724,2126724,3072900,2126724,2126724,2126724,3122052,2126724,2126724,3142532,2126724,2126724,2126724,3171204,2126724,2126724,3191684,3195780,2126724,0,0,0,0,0,0,2388942,2126798,2126798,2126798,2421710,2708430,2126798,2737102,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2888654,2126798,2126798,2925518,2126798,2126798,2126798,2126798,2179072,2126798,2126724,2179072,2179072,2179072,2179072,2126724,2126724,2126724,2126724,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2802638,2814926,2126798,2839502,2126798,2126798,2126798,3142606,2126798,2126798,2126798,3171278,2126798,2126798,3191758,3195854,2126798,2179072,2126798,2126724,2179072,2126724,2126798,2179072,2126724,2126798,2179072,2126724,2126798,2985984,2986884,2986958,0,0,0,0,0,0,0,69632,73728,315,316,316,421,422,65536,429,2179072,3112960,3219456,2126724,2126724,3113860,3220356,2126798,2126798,3113934,3220430,0,0,0,0,0,0,0,2046,0,0,0,0,0,0,0,0,0,1238,0,0,0,0,0,0,2179072,2179072,2179072,3223552,0,0,2126724,2126724,2417540,2126724,2126724,2126724,2446212,2126724,2126724,2126724,2126724,2888580,2126724,2126724,2925444,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,0,0,2126798,2126798,2126798,2409422,2126798,2126798,2945924,2126724,2126724,2995076,2126724,3003268,2126724,2126724,3023748,2126724,3068804,3085188,2126724,3097476,2126724,2126724,2126724,2519940,2126724,2126724,2126724,2126724,2589572,2126724,2614148,2646916,2126724,2126724,2696068,2757508,2638798,2126798,2126798,2126798,2126798,2728910,2753486,2126798,2126798,2126798,2126798,2843598,2847694,2126798,2896846,2917326,2126798,2126798,2945998,2126798,2126798,2995150,2126798,3003342,2126798,2126798,3023822,2126798,3068878,3085262,2126798,3097550,2179072,2179072,3059712,2179072,2179072,2179072,2179072,2179072,2179072,3178496,2126724,2126724,2126724,2126724,2126724,2126724,3224452,0,0,2126798,2126798,2417614,2126798,2126798,2126798,2446286,2126798,2126724,2126724,3060612,2126724,2126724,2126724,2126724,2126724,2126724,2126724,3179396,2126798,2126798,2126798,2126798,2126798,2126798,2126798,3126222,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,3118030,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2495438,2126798,2126798,2515918,2126798,2126798,2126798,2544590,2548686,2126798,2126798,2597838,2126798,2126798,2126798,2126798,2425806,2433998,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,0,0,0,2179072,2126798,2126724,2126798,2126798,2126798,3060686,2126798,2126798,2126798,2126798,2126798,2126798,2126798,3179470,2179072,2126798,2126724,2179072,2126724,2659204,2974596,2126724,2126798,2659278,2974670,2126798,2711552,256e4,2179072,2560900,2126724,2560974,2126798,2126798,2126798,2126798,2462670,2466766,2126798,2126798,2126798,2126798,2126798,2126798,2524110,2126798,2126798,2126798,2126798,0,0,0,0,0,0,0,0,0,0,2473984,2478080,2179072,2179072,2179072,3129344,2179072,2179072,3153920,3166208,3174400,2397060,2401156,2126724,2126724,2442116,2126724,2470788,3154820,3167108,3175300,2397134,2401230,2126798,2126798,2442190,2126798,2470862,2126798,2126798,2126798,2520014,2126798,2126798,2126798,2126798,2126798,2126798,2126798,3130318,2126798,2126798,3154894,3167182,3175374,2506752,2507726,2507652,2126798,2126798,2589646,2126798,2614222,2646990,2126798,2126798,2696142,2757582,2126798,2126798,2126798,2126798,2933710,2126798,2126798,2126798,2126798,2593742,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2449408,0,2535424,2179072,3006464,2179072,3018752,2179072,2179072,2179072,3149824,2126724,2429828,2438020,2126724,2487172,2126724,2126724,2126724,2126724,2933636,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,3130244,2126724,2126724,2126798,2126798,2655182,2679758,2761678,2765774,2786254,2855886,2970574,2126798,3007438,2126798,3019726,2126798,2126798,2126798,2126798,0,2502656,0,0,3010560,0,0,0,0,2990080,2179072,2179072,2126798,3150798,2179072,3051520,2126724,3052420,2126798,3052494,0,2490368,2498560,0,0,0,0,2875392,2179072,2179072,2179072,2555904,2564096,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,3137536,2126724,2126724,2126724,3208068,2126724,0,0,0,0,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2552782,2126798,2126798,2126798,2126798,2126798,2126724,2499460,2126724,2126724,2126724,2556804,2564996,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2929540,2126724,2126724,2126724,2999172,2126724,2126724,2126724,3138436,2126798,2126798,2499534,2126798,2126798,2126798,2556878,2565070,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,2126798,3011534,2126798,2126798,2126798,0,0,0,0,0,0,0,0,0,0,0,0,0,322,323,0,2126724,2450308,2126724,2536324,2126724,2610052,2126724,2859908,2126724,2126724,2126724,3031940,2126724,2126798,2450382,2126798,2126798,2126798,2126798,3093454,0,0,0,2404352,2179072,2179072,2179072,2179072,3026944,2405252,2126724,2126724,2495364,2126724,2126724,2515844,2126724,2126724,2126724,2544516,2548612,2126724,2126724,2597764,2126724,2126724,2126724,2663300,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2126724,2802564,2536398,2126798,2610126,2126798,2859982,2126798,2126798,2126798,3032014,2126798,2527232,0,0,0,2179072,2527232,2179072,2179072,2179072,2179072,2179072,2126724,2528132,2126724,2126724,2126724,2126724,2126724,3093380,2126798,2528206,2126798,2126798,2126798,2126798,3138510,2940928,2941828,2941902,0,0,0,0,0,2748416,2879488,0,0,0,0,0,172032,0,172032,0,0,0,0,0,0,0,0,0,364,0,0,122880,122880,0,0,0,221184,221184,0,0,0,0,0,0,0,0,0,221184,221184,0,0,221184,221184,221184,0,0,0,0,0,0,221184,0,0,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,0,0,0,0,0,0,0,0,0,364,338,292,0,0,0,0,0,0,221184,0,221184,221184,221184,221184,221184,221184,221184,221184,221184,221184,1,12290,3,0,0,0,0,0,0,0,0,0,0,0,139264,299,0,0,2142208,0,0,0,98304,0,0,0,53248,0,0,0,0,0,0,0,2061,2062,0,0,0,0,0,0,0,0,159744,0,0,0,0,0,0,0,0,1198,0,0,0,0,0,0,0,0,1212,0,0,0,0,0,0,0,0,1578,0,0,0,577536,0,0,1583,0,0,0,302,0,303,0,0,0,303,0,0,0,2461696,0,0,0,0,0,0,1159168,416,416,0,0,0,0,0,416,0,0,98304,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12290,2179072,3121152,2179072,2179072,3141632,2179072,2179072,2179072,3170304,2179072,2179072,3190784,3194880,2179072,901,0,0,0,0,0,229376,0,0,0,0,0,0,0,0,1666,0,0,0,0,0,2958,0,0,0,0,2962,0,0,0,0,2967,0,0,901,0,2387968,2125824,2125824,2125824,2420736,2125824,2125824,2125824,2125824,2125824,2453504,2125824,2473984,2482176,2125824,2125824,2125824,2125824,2125824,2125824,2531328,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3190784,3194880,2125824,975,0,0,0,975,0,2387968,2125824,2125824,2125824,2420736,2179072,2179072,2179072,3223552,901,0,2125824,2125824,2416640,2125824,2125824,2125824,2445312,2125824,2125824,2125824,2125824,2125824,3223552,0,0,2125824,2125824,2416640,2125824,2125824,2125824,2445312,2125824,225734,225734,225734,225734,225734,225734,225734,225734,225734,225734,225734,225734,225734,225734,225734,225734,249856,249856,249856,249856,249856,249856,249856,249856,249856,249856,249856,249856,249856,249856,249856,249856,0,0,0,0,0,0,0,0,0,379,0,0,0,0,0,0,0,217088,0,0,0,0,0,0,0,0,0,0,0,0,0,0,307,308,0,0,0,114688,0,241664,258048,0,0,0,0,0,0,0,0,0,0,676,677,678,0,0,0,254407,254407,254407,254407,254407,254407,254407,254407,254407,254407,254407,254407,254407,254407,254407,254407,0,0,0,0,0,0,0,0,0,386,0,0,0,0,0,386,0,0,0,2183168,0,0,270336,0,0,298,299,0,2134016,302,303,200704,0,0,180224,0,0,0,0,0,0,0,0,2424832,2433024,0,0,2457600,20480,0,0,0,0,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2126724,2126724,2126724,2126724,2126724,1,12290,2113825,0,0,0,0,0,0,295,0,0,0,295,0,0,0,0,0,0,2387968,0,0,0,0,0,0,0,0,0,0,330,381,383,0,0,0,0,0,266240,0,0,0,0,0,0,0,0,0,0,0,266240,0,0,0,0,0,0,0,0,0,0,1,12290,0,0,266240,0,0,0,0,0,0,0,0,0,0,0,0,0,338,339,340,2113825,0,0,2183168,0,0,0,0,0,298,299,0,2134016,302,303,0,0,0,0,0,237568,0,0,0,0,0,0,0,0,0,0,0,1657,0,0,0,0,274432,274432,274432,274432,274432,274432,0,0,0,0,0,274432,0,274432,1,12290,3,0,0,0,0,0,0,0,90408,90408,90408,90408,0,94505,1,12290,3,78114,292,0,0,0,0,0,0,0,0,0,0,0,0,1611,0,0,0,3,78114,78114,292,0,0,0,0,0,298,299,0,0,302,303,0,0,0,0,0,2134016,0,0,0,0,0,0,0,0,0,1163264,78114,1066,0,0,0,0,0,0,0,0,0,0,0,0,0,0,308,307,534,534,534,1341,901,556,556,556,556,556,556,556,556,556,556,556,580,580,3062,580,580,2009,0,0,0,0,0,2011,0,0,0,0,0,0,0,0,0,0,722,0,0,0,0,0,0,2954,0,0,0,0,0,0,0,0,0,0,0,0,0,0,330,0,0,1650,0,0,0,0,0,0,0,0,2089,0,0,0,0,0,0,0,2086,0,0,0,0,0,2092,0,0,290,1066,0,0,0,0,0,0,0,0,0,0,0,0,0,0,680,681,3,78114,78449,292,0,0,0,0,0,298,299,0,0,302,303,0,0,0,0,0,2134016,0,0,0,0,0,0,0,0,1138688,0,0,0,0,0,2134016,0,0,0,0,0,0,0,739,0,0,0,0,0,0,1150976,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1192,0,0,0,0,0,0,0,0,0,0,0,0,0,385,337,0,581,557,557,557,557,557,557,557,581,581,581,534,581,581,581,581,581,581,581,557,557,534,557,581,557,581,1,12290,1,12290,3,78115,292,0,0,0,0,0,0,0,0,0,0,0,0,1680,0,0,0,282624,282624,282624,282624,282624,282624,282624,282624,282624,282624,282624,282624,282624,282624,282624,282624,1,12290,282624,282624,282624,0,0,282624,0,0,0,0,0,0,0,0,0,0,0,2027,0,0,0,0,0,0,0,0,282624,282624,282624,282624,282624,282624,282624,282624,282624,282624,0,282624,282624,282624,282624,282624,0,0,0,0,0,0,0,0,0,637,0,0,0,0,0,0,0,0,0,0,0,0,641,0,0,0,0,0,3047424,3129344,0,2981888,2396160,0,3153920,3132,0,0,2740224,0,0,0,0,0,0,1181,1183,0,0,0,0,0,0,0,0,0,1608,1609,1610,0,0,0,0,0,0,0,286720,286720,0,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,286720,0,0,0,0,0,0,0,0,0,705,0,0,0,709,0,0,0,3108864,3198976,0,0,3043328,0,3149824,2936832,0,2760704,3252,0,0,0,0,0,0,0,69632,73728,167936,0,0,0,0,65536,0,0,0,0,3329,0,0,2834432,0,3227648,2568192,2564096,0,2940928,2179072,2179072,2498560,3329,0,0,0,0,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2179072,2125824,0,2125824,2125824,0,0,0,308,0,0,0,0,0,307,0,307,308,0,307,307,0,0,0,307,307,308,308,0,0,0,0,0,0,307,407,308,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,783,0,0,0,308,412,0,0,69632,73728,0,0,0,0,0,65536,0,0,0,0,0,2134016,0,0,0,0,0,0,57344,0,0,0,0,0,0,1120,0,0,0,0,0,0,0,0,0,0,1239,0,0,0,0,0,456,456,456,482,482,456,482,482,482,482,482,482,482,507,482,482,482,482,482,482,482,482,482,482,482,482,482,482,527,482,482,482,482,482,535,558,535,558,535,535,558,535,582,558,558,558,558,558,558,558,582,582,582,535,582,582,582,582,582,582,582,558,558,535,558,582,558,582,1,12290,0,667,0,0,0,0,0,0,0,0,0,0,0,0,0,0,769,0,697,0,0,0,0,0,0,0,704,0,0,0,0,0,0,0,0,1639,0,0,0,0,0,0,0,0,1660,1661,0,1663,0,0,0,0,0,729,0,0,0,0,0,0,0,0,0,0,0,740,0,0,0,0,0,0,2834432,0,3227648,2568192,2564096,0,2940928,2179072,2179072,2498560,0,0,0,638,0,0,0,0,0,0,0,0,0,0,755,0,0,0,0,0,2134749,0,0,0,0,0,0,0,0,0,0,0,1169,734,0,0,0,0,0,0,761,0,0,765,0,0,0,0,772,0,0,0,0,0,0,0,69632,73728,172032,0,0,0,0,65536,0,0,0,641,0,0,0,0,0,0,804,0,0,0,780,0,0,0,0,0,327,0,69632,73728,0,0,0,0,0,65536,0,0,0,821,776,0,0,0,0,0,825,826,776,776,0,0,0,0,0,0,0,780,0,0,0,0,0,0,0,0,1677,0,1679,0,0,0,0,0,0,776,729,776,0,534,534,836,840,534,534,534,534,534,534,866,534,871,534,878,534,881,534,534,895,534,534,556,556,556,909,913,1018,580,1025,580,1028,580,580,1042,580,580,0,0,0,840,987,913,836,1052,881,534,534,909,1057,954,556,556,0,983,1062,1028,580,580,534,534,556,556,580,580,0,0,0,0,0,0,0,0,0,0,0,78114,1066,0,0,1068,1072,0,0,1076,1080,0,0,0,0,0,0,0,406,406,406,406,0,406,406,406,406,0,0,1144,0,0,0,0,0,0,0,0,0,0,0,0,0,508,515,515,0,0,0,1634,0,0,0,0,0,0,0,0,0,0,0,0,0,3126,0,0,1769,534,534,1772,534,534,534,534,534,534,534,534,534,534,1784,534,534,534,534,534,884,534,534,534,534,534,556,556,903,556,556,0,580,580,580,984,580,990,580,580,1003,580,580,1014,580,534,534,534,534,1789,534,534,534,534,534,534,534,1341,1799,556,556,0,580,580,580,580,580,580,580,580,580,580,580,580,580,0,0,0,0,534,534,556,556,556,1806,556,556,556,556,556,1812,556,556,556,556,556,556,0,0,580,580,580,580,580,580,580,580,580,2370,580,580,580,580,580,580,556,556,556,1825,556,556,556,556,556,556,556,556,556,556,556,556,955,556,556,556,1885,556,556,556,556,556,556,556,26009,1895,580,580,580,580,580,1902,2017,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,787,0,0,0,2042,0,0,0,0,0,0,0,0,0,2051,0,0,0,0,0,0,1196,0,0,0,0,0,0,0,0,0,0,1223,0,0,0,0,0,2109,2110,0,0,2112,0,0,0,2110,0,0,2117,0,0,0,0,0,0,0,69632,73728,221184,0,0,0,0,65536,0,2150,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,1313,0,0,0,2464,0,0,0,0,0,0,0,0,0,0,0,0,0,3135,0,0,534,534,534,534,2502,534,534,534,534,534,534,534,534,534,534,534,534,2510,534,534,534,2601,556,556,556,556,556,556,556,556,556,556,556,556,556,2611,556,556,556,556,556,2563,556,556,556,556,556,556,556,556,556,556,1388,556,556,556,556,1393,556,556,556,556,2632,580,580,580,580,580,580,580,580,580,580,580,580,580,580,580,580,1967,0,0,0,2698,0,0,0,0,0,0,2703,0,0,0,0,0,0,0,2115,0,0,0,0,0,0,0,0,0,2729,0,0,0,0,0,0,2749,2750,0,0,0,0,0,0,0,0,0,0,0,0,0,0,789,0,0,0,0,0,0,0,2762,0,534,534,534,534,534,534,534,534,534,534,534,2521,534,534,534,534,534,2773,534,534,2777,534,534,534,534,534,534,534,534,534,534,2786,556,2820,556,556,2824,556,556,556,556,556,556,556,556,556,556,2833,580,580,580,2869,580,580,2873,580,580,580,580,580,580,580,580,580,580,2899,580,580,580,580,580,580,2882,580,580,580,580,580,580,580,580,580,580,580,2890,580,580,534,534,556,556,580,580,0,0,0,0,0,3324,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,221184,0,221184,0,0,0,0,2931,0,0,0,0,0,0,0,0,0,0,0,0,0,534,534,534,534,534,534,3010,534,534,534,534,534,534,534,534,556,556,556,556,556,556,3412,556,556,556,556,556,556,3051,556,556,556,556,556,556,556,556,556,580,580,580,580,580,580,580,580,580,580,580,580,580,580,3091,580,3093,580,580,580,580,580,580,580,580,580,534,580,556,534,534,556,556,580,3132,3387,0,3389,0,534,3392,534,3394,534,534,534,534,534,534,534,534,1777,534,534,534,534,534,534,534,534,2157,534,534,534,534,534,534,534,534,2182,534,534,534,534,2187,534,534,534,534,3448,534,534,534,534,534,534,534,534,534,534,556,556,556,556,556,3023,556,3461,556,556,556,556,556,556,556,556,556,556,556,580,580,580,580,3064,580,3475,580,580,580,580,580,580,580,580,580,580,580,0,0,0,0,3561,534,0,3490,0,3492,534,534,534,534,534,534,534,534,534,534,534,534,534,2794,534,534,0,0,3533,0,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,1281,309,310,311,0,0,0,0,0,0,0,0,0,0,0,0,0,640,0,0,0,0,420,0,0,0,0,443,0,0,0,0,0,0,0,0,0,1109,0,1111,1112,0,0,0,0,0,0,443,443,420,443,443,443,443,443,443,443,443,443,443,443,443,443,526,443,526,526,526,443,526,526,526,526,443,536,559,536,559,536,536,559,536,583,559,559,559,559,559,559,559,583,583,583,536,583,583,583,583,583,583,583,559,559,609,614,583,614,620,1,12290,534,534,874,534,534,534,534,534,534,534,534,556,556,556,556,556,0,580,580,580,580,580,580,1021,580,580,580,580,580,580,580,580,0,0,0,534,580,556,556,556,556,556,556,556,580,580,580,534,580,580,580,580,0,0,0,0,0,0,0,0,0,0,3445,534,0,0,0,1657,0,0,0,0,0,0,0,0,0,0,0,0,0,3262,534,534,1785,534,534,534,534,534,534,534,534,534,534,534,1341,0,556,556,0,580,580,580,580,580,580,580,580,580,1006,580,580,580,0,0,1544,0,0,0,0,0,1550,0,0,0,0,0,0,347,0,0,0,0,0,0,0,0,0,0,167936,167936,167936,167936,167936,167936,167936,167936,580,580,1970,580,580,580,580,580,1977,580,580,580,580,580,580,580,1444,580,580,580,580,580,1456,580,580,0,0,2425,0,0,0,0,0,0,0,0,0,0,0,0,0,654,0,0,2612,556,556,556,556,0,2615,0,0,0,0,580,580,580,580,580,534,556,580,0,3382,0,0,3385,0,0,0,580,2621,580,580,580,580,2625,580,580,580,580,580,580,580,580,580,580,3221,580,580,580,580,580,0,0,0,312,313,314,315,316,317,318,319,320,321,0,0,0,0,0,0,1249,0,0,0,0,0,0,534,534,534,534,534,850,534,534,534,534,534,0,312,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1172,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,655,0,0,422,430,421,430,0,312,430,444,457,457,457,457,457,457,457,457,457,457,457,457,457,457,457,457,457,457,478,483,483,494,483,483,483,483,483,483,483,483,509,509,522,522,523,523,523,523,523,523,523,523,523,523,523,509,523,523,523,523,523,537,560,537,560,537,537,560,537,584,560,560,560,560,560,560,560,584,584,584,606,584,584,584,584,584,584,607,608,608,606,608,607,608,607,1,12290,0,0,811,0,0,0,0,0,0,0,0,0,0,0,0,0,679,0,0,0,695,0,0,0,534,534,534,534,534,534,534,534,534,534,534,534,1720,534,534,882,534,534,556,556,955,556,556,0,580,580,1029,580,580,534,534,556,556,580,580,0,0,0,3322,0,0,3325,0,0,0,0,1161,0,0,0,0,0,0,0,0,0,0,0,0,0,249856,0,0,0,0,0,0,0,1193,0,0,0,0,0,0,0,0,0,0,0,0,0,1134592,0,0,0,0,0,1206,0,0,0,0,0,0,0,0,0,0,0,0,0,1218,0,0,534,534,1254,534,1257,534,534,534,534,534,534,534,534,1271,534,1276,534,534,1280,534,534,1283,534,534,534,534,534,534,534,534,534,534,534,534,534,1294,534,534,534,534,534,1341,901,556,556,1345,556,556,1349,556,556,556,556,556,0,0,0,0,0,0,580,580,580,580,580,0,3580,0,534,534,534,534,534,534,556,556,556,556,556,1363,556,1368,556,556,1372,556,556,1375,556,556,556,556,556,0,2296,0,0,580,580,580,580,580,580,580,2355,580,580,580,580,2360,580,580,580,580,1437,580,580,1441,580,580,580,580,580,580,580,580,1455,580,1460,580,580,1464,580,580,1467,580,580,580,580,580,580,580,580,580,580,0,0,188416,534,580,556,1669,0,0,0,0,0,0,1676,0,0,0,0,0,0,0,0,0,1199,1200,0,0,0,0,0,580,1923,580,580,580,580,580,580,580,580,580,580,580,580,580,580,1459,580,580,1936,580,580,580,580,580,580,580,580,580,580,580,580,580,580,1919,580,534,2176,534,534,534,534,534,534,534,534,534,534,534,534,534,534,0,0,534,534,534,534,2192,2193,534,534,534,534,534,534,534,534,534,534,556,556,556,556,3022,556,2262,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,1819,556,556,556,2278,2279,2280,556,556,556,556,556,556,556,556,556,556,1846,556,556,556,1851,556,2349,580,580,580,580,580,580,580,580,580,580,580,580,580,580,580,1985,580,580,580,2365,2366,2367,580,580,580,580,580,580,580,580,580,580,0,3558,0,3560,534,534,0,2399,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1243,0,0,0,0,0,2465,2466,0,0,0,0,0,0,0,0,0,0,0,2090,0,0,0,0,580,580,580,2663,580,580,580,580,580,580,580,580,580,580,580,580,534,580,556,3105,534,534,534,534,534,2790,534,534,534,534,534,534,534,534,534,534,556,3019,556,556,556,556,2917,0,0,0,0,0,2923,0,0,0,0,0,0,0,2927,0,0,0,0,0,2200246,0,0,0,0,0,0,0,0,0,0,0,1617,0,0,0,0,0,0,0,0,2972,0,0,0,0,0,0,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2987,534,534,534,534,534,534,534,534,534,534,899,556,556,556,556,556,556,556,556,556,3027,556,556,556,556,556,556,556,556,556,556,556,1432,26009,1341,975,580,0,3139,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1597,0,534,534,534,534,3175,534,534,534,534,556,556,556,556,556,556,556,556,556,556,556,556,556,556,580,580,580,580,580,580,580,580,580,3438,0,3439,0,0,0,0,0,0,0,534,3446,534,3447,534,534,534,3451,534,534,534,534,534,534,534,556,3459,556,556,556,556,556,2589,556,556,2593,556,556,556,556,556,556,556,2606,556,556,556,556,556,556,556,556,2269,556,556,556,556,556,556,556,3460,556,556,556,3464,556,556,556,556,556,556,556,556,580,3473,580,0,0,2920,0,0,0,0,0,0,0,0,0,2926,0,0,0,0,0,1147,0,1149,0,0,0,0,0,0,0,0,534,557,534,557,534,534,557,534,3474,580,580,580,3478,580,580,580,580,580,580,580,580,0,0,0,534,534,3583,3584,534,534,556,556,3596,556,556,556,3598,580,580,580,3600,0,534,534,556,556,580,580,0,0,0,0,3244,0,0,0,0,0,323,323,373,0,0,0,0,0,0,0,0,0,0,0,0,0,725,0,0,0,0,373,0,432,438,0,445,458,458,458,458,458,458,458,458,458,458,458,458,458,458,458,458,458,458,458,484,484,495,484,484,484,484,484,484,484,484,510,510,510,510,510,510,510,510,510,510,510,510,510,510,510,510,538,561,538,561,538,538,561,538,585,561,561,561,561,561,561,561,585,585,585,538,585,585,585,585,585,585,585,561,561,538,561,585,561,585,1,12290,787,0,0,0,0,534,534,534,534,534,534,534,534,859,534,534,534,534,534,534,2139,534,534,2142,534,534,534,534,534,534,534,1760,1761,1762,534,534,1765,1766,534,534,1114,1115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1613,0,1100,0,1231,0,0,0,0,0,1115,0,0,0,0,0,1214,0,0,0,0,0,3088384,0,0,0,0,0,0,0,0,0,0,0,752,0,0,0,0,0,0,1246,1114,0,0,0,0,0,0,0,0,0,534,534,1255,534,534,534,1341,901,556,556,1346,556,556,556,556,556,556,556,556,1389,556,556,556,556,556,556,556,556,1397,556,556,556,1401,556,556,556,556,556,556,556,556,556,556,1880,556,556,556,556,556,580,1438,580,580,580,580,580,580,580,580,580,580,580,580,580,580,1934,580,580,580,1465,580,580,580,580,580,580,580,580,580,580,580,580,580,1491,580,580,1478,580,580,580,580,580,580,580,1487,580,580,1489,580,580,580,1493,1517,580,580,580,580,580,0,534,580,556,534,534,534,534,534,556,580,534,556,580,534,556,580,534,556,580,0,0,0,0,0,0,0,69632,73728,0,135168,135168,0,0,65536,135168,556,556,556,556,1872,556,556,556,556,556,556,556,556,556,556,556,1832,556,556,556,556,1968,580,580,580,580,580,580,580,580,580,580,580,580,580,580,580,2362,580,580,2004,0,2005,0,0,0,0,0,2007,0,0,0,0,0,0,0,2418,0,0,0,0,0,2422,0,0,2009,0,0,0,0,0,2011,0,0,0,0,0,2014,0,0,0,0,0,0,1576,0,0,0,0,0,0,0,0,0,0,2077,0,0,0,0,0,2067,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,827,2121,0,0,0,0,0,0,0,0,0,0,534,534,534,534,534,534,534,534,2770,534,534,534,534,2137,534,534,534,534,2141,534,534,534,534,534,534,534,534,2518,534,534,534,534,534,534,534,534,2803,534,534,534,534,534,534,534,534,2989,534,534,534,534,534,534,534,534,3165,534,534,534,534,534,534,534,534,3270,534,534,534,534,534,534,534,534,3280,556,556,556,556,556,556,556,1426,556,556,556,556,26009,1341,975,580,556,556,2222,556,556,556,556,2226,556,556,556,556,556,556,556,556,1405,556,556,556,556,556,556,556,580,580,2309,580,580,580,580,2313,580,580,580,580,580,580,580,580,580,3527,580,580,580,0,3531,0,0,2462,0,0,0,0,0,2467,0,0,0,0,0,0,0,0,0,1640,0,0,0,0,0,0,534,534,534,2489,2490,534,534,534,534,534,534,534,534,534,534,534,534,2522,534,534,534,534,534,534,2529,534,534,534,534,534,534,534,534,534,534,534,534,534,2993,534,534,2620,580,580,580,580,580,580,580,580,580,580,580,580,580,580,580,2376,2660,580,580,580,580,580,580,580,580,580,580,580,580,580,580,580,3316,2707,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1100,0,0,0,0,2724,0,0,0,0,0,0,0,0,0,0,0,0,1686,0,0,0,0,0,0,0,2752,0,0,0,0,0,0,0,0,0,0,0,0,2028,0,0,0,534,534,534,534,534,2800,534,534,534,534,534,534,534,534,534,534,1307,534,534,534,534,534,2891,580,580,580,580,580,580,580,2897,580,580,580,580,580,580,580,1471,580,580,580,580,580,580,580,580,1045,580,0,0,0,534,580,556,3128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1128,534,534,534,534,534,3176,534,534,534,556,556,556,556,556,556,556,3511,556,3513,556,556,556,556,580,556,556,3297,556,556,580,580,580,580,580,580,580,580,580,580,580,3374,580,580,3132,0,0,0,0,534,534,534,534,534,534,3397,534,534,534,534,0,0,556,556,556,556,556,556,556,556,556,556,1392,556,556,556,556,556,325,326,327,0,0,0,0,0,0,0,0,0,0,0,0,0,741,0,0,0,0,0,324,372,327,371,0,0,0,0,0,0,0,0,0,0,1110,0,0,0,0,0,324,0,0,371,371,401,0,327,0,0,0,0,0,0,0,0,0,1678,0,0,0,0,0,0,0,0,0,326,0,0,0,446,459,459,459,459,459,459,459,459,472,459,459,459,459,459,459,459,459,459,459,459,459,485,485,459,485,485,500,502,485,485,500,485,511,511,511,511,511,511,511,511,511,511,511,511,511,511,528,511,511,511,511,511,539,562,539,562,539,539,562,539,586,562,562,562,562,562,562,562,586,586,586,539,586,586,586,586,586,586,586,562,562,539,562,586,562,586,1,12290,0,651,652,0,0,0,0,0,0,0,0,0,0,663,664,0,0,0,0,364,364,0,0,0,0,0,0,0,0,0,0,0,723,0,0,0,0,0,0,0,0,0,682,0,0,0,0,0,0,0,0,0,0,364,364,364,0,0,0,0,0,355,0,0,466,466,466,466,466,466,466,466,471,466,466,466,466,466,466,466,466,466,466,466,471,0,713,0,0,0,0,0,0,720,0,0,0,724,0,0,0,0,0,0,1621,0,0,0,0,0,0,0,0,0,0,769,0,0,0,0,0,0,0,0,0,762,763,0,0,0,0,0,771,0,773,0,0,0,0,0,0,1637,0,0,0,0,0,0,0,0,0,0,1095,0,0,0,0,0,0,0,0,0,790,793,0,0,0,793,793,790,0,0,0,0,0,0,0,106496,0,106496,0,0,0,0,106496,106496,0,0,0,773,0,785,0,802,0,0,0,0,793,0,700,0,0,0,0,364,364,0,0,0,0,0,0,0,0,0,1141,0,810,0,0,0,0,0,810,810,813,0,0,0,773,0,0,0,0,0,375,0,0,0,0,367,0,384,0,350,0,0,0,0,822,0,0,0,0,0,0,0,0,0,771,0,0,0,0,0,385,0,69632,73728,0,0,0,0,0,65536,0,0,822,802,822,0,534,534,837,534,843,534,534,856,534,534,867,534,872,534,534,880,883,888,534,896,534,534,556,556,556,910,556,556,556,556,556,2604,2605,556,556,556,556,556,556,556,556,556,3189,556,556,556,556,556,556,916,556,556,929,556,556,940,556,945,556,556,953,956,961,556,969,1019,580,580,1027,1030,1035,580,1043,580,580,0,0,0,534,580,556,556,556,556,556,2825,556,556,556,556,556,556,556,556,556,556,2284,556,556,556,556,556,837,534,1053,888,534,910,556,1058,961,556,0,984,580,1063,1035,580,0,2919,0,0,0,0,0,0,0,0,0,0,0,0,0,2458,0,0,0,0,1087,0,0,0,0,0,0,0,0,0,1097,0,0,0,0,0,0,1659,0,0,0,0,0,0,0,0,0,0,751,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2032,0,0,0,0,0,1104,0,0,0,0,0,0,0,0,0,0,0,0,2078,0,0,0,1129,0,0,0,364,364,0,0,0,0,0,0,0,0,0,0,0,2471,0,0,0,0,0,1143,0,0,0,0,0,0,0,0,1152,0,0,0,0,0,0,0,2442,0,0,0,0,0,0,0,2450,1121,0,0,0,0,0,0,0,0,0,0,0,0,0,1189,0,0,0,0,364,364,0,0,0,0,0,0,0,1139,0,0,0,0,0,328,0,0,0,0,0,0,0,0,0,0,0,2757,2758,0,0,0,534,1282,534,534,534,534,534,534,534,534,534,534,534,534,534,1297,1337,534,534,1341,901,556,556,556,556,556,556,556,556,556,556,1354,556,556,1419,556,556,556,556,556,556,1429,556,556,26009,1341,975,580,580,580,580,1523,580,0,534,580,556,534,534,534,534,534,556,556,556,556,556,2837,556,556,556,556,556,556,556,556,556,556,1862,1863,556,556,556,556,1461,580,580,580,1466,580,580,580,580,580,580,580,580,580,580,580,1915,580,580,580,580,580,580,1481,580,580,580,580,580,580,580,580,580,580,580,580,580,1933,580,580,580,1495,580,580,580,580,580,580,580,580,580,580,1511,580,580,580,0,2005,0,0,0,0,0,2007,0,0,0,0,0,0,0,2074,0,0,0,0,0,0,0,0,342,0,0,0,0,0,0,0,580,580,580,1521,580,580,0,534,580,556,534,534,534,534,534,556,580,534,556,580,3610,3611,3612,534,556,580,0,0,0,0,0,0,307,442,456,456,456,456,456,456,456,456,456,456,456,456,456,456,456,456,0,0,1585,0,0,1588,1589,1590,0,1592,1593,0,0,0,0,1598,1631,1632,0,0,0,0,0,0,0,0,1641,1642,0,0,0,0,0,0,0,155648,0,0,0,0,0,0,0,0,0,364,0,0,0,0,0,0,0,0,0,0,0,0,1212,534,534,534,0,0,0,0,1648,0,0,1650,0,0,0,0,1652,1653,0,0,0,0,0,441,0,0,467,467,467,467,467,467,467,467,467,467,467,467,467,467,467,467,552,575,552,575,552,552,575,552,0,0,1671,1672,1673,1674,0,0,0,0,0,0,0,0,0,0,0,2483,0,0,0,0,0,1683,0,0,1686,0,0,0,0,0,1690,0,0,0,1694,1695,1706,1566,1566,1708,534,1710,534,1711,1712,534,1714,534,534,534,1718,534,534,534,534,534,886,534,534,534,534,534,556,556,908,556,556,556,556,556,2254,556,556,556,556,556,556,556,556,556,556,1431,556,26009,1341,975,1435,534,534,1739,534,1741,534,534,534,534,534,534,534,534,1749,1750,1752,534,1786,534,534,534,534,534,534,534,534,534,1797,1341,0,1802,556,556,556,556,556,3041,556,556,556,556,556,556,556,556,556,556,3200,556,556,556,556,556,556,1804,556,1805,556,1807,556,1809,556,556,556,1813,556,556,556,556,556,0,0,0,0,0,0,580,580,2618,580,580,556,556,556,556,1826,556,556,556,556,1830,556,556,556,556,1834,556,556,556,556,556,3055,556,556,556,556,556,580,580,580,3063,580,580,580,580,1724,1915,1819,534,534,534,534,556,556,556,556,580,580,580,580,0,0,2692,0,0,1836,556,556,556,556,556,556,556,556,1844,1845,1847,556,556,556,556,556,0,2297,0,0,580,580,580,580,580,580,580,2667,580,580,580,580,580,580,580,580,580,2653,580,580,580,580,2657,580,556,556,556,1855,1856,1857,556,556,1860,1861,556,556,556,556,556,556,0,0,580,580,580,2862,580,580,580,580,556,1869,556,556,556,1873,556,556,556,556,556,556,556,1882,556,556,0,580,580,580,580,580,580,580,1002,580,580,580,580,580,580,3555,3556,580,580,0,0,3559,0,534,534,1903,580,1905,580,580,580,1909,580,580,580,580,580,580,580,580,580,580,3528,580,580,0,0,0,1922,580,580,580,580,1926,580,580,580,580,1930,580,1932,580,580,580,580,580,1524,0,1270,1454,1362,534,534,534,534,534,556,1952,1953,580,580,1956,1957,580,580,580,580,580,580,580,1965,580,580,534,534,556,556,580,580,3321,0,0,0,3323,0,0,0,0,0,0,2114,0,0,0,0,0,0,0,0,0,0,2605056,0,0,0,0,2887680,580,1969,580,580,580,580,580,580,580,1978,580,580,580,580,580,580,0,534,580,556,534,534,534,534,534,556,580,580,580,1989,534,580,556,1766,534,1995,534,1861,556,1999,556,1957,580,2003,580,0,2005,0,0,0,0,0,2007,0,0,0,0,0,0,0,2702,0,0,0,0,0,0,0,2706,0,2018,0,0,2021,2022,0,0,0,2026,0,0,0,0,0,0,0,414,414,0,0,0,0,0,414,0,0,0,2069,0,0,0,0,0,0,0,0,0,0,0,0,0,742,0,0,0,1650,0,0,0,0,0,0,0,2088,0,0,0,0,0,0,0,451,1147348,1147348,1147348,1147348,1147348,1147348,1147348,1147348,1147348,1147348,1147348,1147348,1147348,1147348,1147348,1147348,2095,0,2097,0,0,0,0,0,0,0,0,2106,0,0,0,0,0,0,0,184725,184925,184925,184925,0,184925,184925,184925,184925,184925,184925,0,0,0,0,0,184925,0,184925,1,12290,534,534,534,2153,534,2155,534,534,534,534,534,534,534,534,534,534,1746,534,534,534,534,534,534,2204,2205,534,534,0,0,0,0,556,556,556,556,556,556,556,556,556,2558,556,556,556,556,2238,556,2240,556,556,556,556,556,556,556,556,556,556,556,2231,556,556,556,556,556,2291,2292,556,556,0,0,0,0,580,580,580,580,580,580,580,1506,580,580,580,580,580,1513,580,580,580,580,2325,580,2327,580,580,580,580,580,580,580,580,580,580,580,2318,580,580,580,580,580,2378,2379,580,580,2145,2317,2230,534,2385,534,534,556,2389,556,556,0,580,580,580,580,580,580,997,580,580,580,580,580,580,2328,580,2330,580,580,580,580,580,580,580,2342,580,580,580,580,580,580,580,580,580,1474,580,580,580,580,580,580,580,2393,580,580,2005,0,2007,0,2009,0,2011,0,0,0,0,0,0,0,2727,0,0,0,0,0,0,0,0,0,1579,0,0,0,0,0,0,0,2437,2438,0,0,0,0,0,0,0,0,0,0,0,0,0,1089,0,0,534,2526,534,534,534,2531,534,534,534,534,534,534,534,2538,534,534,534,534,534,534,2169,534,534,534,534,534,534,534,534,534,534,2782,534,534,2785,534,534,534,534,534,534,534,2543,534,534,534,534,534,534,534,534,0,2549,556,556,2587,556,556,556,556,2591,556,556,556,2596,556,556,556,556,556,0,2615,0,0,0,0,580,580,580,580,580,534,556,580,0,0,0,0,0,0,0,3386,556,556,556,2603,556,556,556,556,556,556,556,556,2609,556,556,556,556,556,556,3042,556,3044,556,556,556,556,556,556,556,1404,556,556,1411,556,556,556,556,556,580,580,580,2623,580,580,580,580,580,580,580,580,580,580,580,580,1451,580,580,580,580,580,580,2635,580,2637,580,580,580,580,580,580,580,580,580,580,1914,580,580,580,580,580,580,580,2662,580,580,580,580,580,580,580,2669,580,580,580,580,580,580,2895,580,580,580,580,580,580,580,580,580,1046,0,0,0,534,580,556,580,580,580,2675,580,580,580,580,580,580,580,580,534,580,556,534,2913,556,2915,580,534,534,534,2798,534,534,534,534,534,534,534,534,534,534,534,534,534,3348,534,556,556,556,556,556,2846,556,556,556,556,556,556,556,556,556,556,556,2245,556,556,556,556,0,2943,2944,0,2945,0,2947,0,0,0,0,2949,0,0,0,0,0,0,0,225883,225883,225883,225883,225734,225883,225883,225883,225883,225883,225883,225734,225734,225734,225734,225734,225899,225734,225899,1,12290,2968,2969,0,2971,0,0,2974,0,0,0,2977,534,534,534,534,534,0,0,0,0,556,2214,556,556,556,556,556,0,0,0,0,0,0,580,2617,580,580,580,534,2984,534,534,534,534,534,2988,534,534,534,534,534,534,534,2994,534,534,534,534,534,3e3,534,534,534,534,534,534,534,534,534,534,1763,534,534,534,534,534,3009,3011,534,534,534,3014,534,3016,3017,534,556,556,556,556,556,556,0,0,580,2861,580,580,580,580,580,580,0,1267,1451,1359,534,534,534,1530,534,556,3024,556,556,556,556,556,3028,556,556,556,556,556,556,556,3034,556,556,556,556,556,3185,556,556,556,556,556,556,556,556,556,556,2229,556,556,2233,556,556,556,556,556,556,3040,556,556,3043,556,556,556,556,556,556,556,556,1829,556,556,556,556,556,556,556,3050,3052,556,556,556,556,3056,556,3058,3059,556,580,580,580,580,580,580,3083,580,580,580,580,580,580,580,580,580,2331,580,580,580,580,2335,580,580,3066,580,580,580,580,580,3070,580,580,580,580,580,580,580,3076,580,3092,3094,580,580,580,580,3098,580,3100,3101,580,534,580,556,534,534,534,534,534,887,534,534,534,534,534,556,556,556,556,556,0,0,0,2299,580,580,580,580,580,580,580,3084,580,3086,580,580,580,580,580,580,3106,556,3108,580,3110,0,0,0,0,0,0,3116,0,0,3119,0,0,0,0,364,364,0,0,0,0,0,1096,0,0,0,0,0,0,0,286720,0,0,0,0,0,0,0,0,0,643,0,0,0,0,0,0,0,0,0,3140,3141,0,0,0,0,0,0,0,0,0,0,0,0,2107,0,0,0,556,556,556,556,3184,556,556,556,556,556,556,556,556,556,556,556,2272,556,556,556,556,556,556,556,3195,556,556,556,556,556,556,556,556,3203,556,556,556,556,556,556,3197,556,556,556,556,556,556,556,556,556,2594,556,556,556,556,556,556,556,556,556,580,580,580,3208,580,580,580,580,580,580,580,3213,580,580,580,580,1907,580,580,580,580,580,580,580,580,1918,580,580,580,580,580,3096,580,580,3099,580,580,580,534,580,556,534,534,534,534,534,534,3278,534,534,556,556,556,556,556,556,556,556,556,556,556,3515,556,556,580,556,3296,556,556,556,580,580,580,580,580,580,580,580,580,580,580,580,3214,3326,3327,0,3132,0,3331,0,0,0,0,0,0,0,534,534,534,2766,534,534,534,534,534,2771,534,534,534,3405,556,556,556,556,556,556,556,556,556,556,556,556,960,556,556,556,556,556,3420,556,580,580,580,580,580,580,580,580,580,580,580,580,1452,580,580,580,580,580,3436,580,0,0,0,0,0,0,0,0,0,0,534,534,534,534,534,534,534,534,534,534,3502,534,534,534,534,534,3450,534,534,534,534,534,534,534,534,556,556,556,3281,556,556,556,3284,556,556,556,3463,556,556,556,556,556,556,556,556,556,580,580,580,580,580,580,3302,580,580,580,580,580,580,580,3477,580,580,580,580,580,580,580,580,580,3486,3487,0,0,0,0,364,364,0,0,0,0,1137,1095,0,0,0,0,0,0,0,69632,73728,266240,0,0,0,0,65536,0,0,0,0,0,3493,3494,3495,534,534,534,3498,534,3500,534,534,534,534,534,534,534,3269,534,534,534,534,534,534,534,534,534,2781,534,534,534,534,534,534,534,3505,3506,3507,556,556,556,3510,556,3512,556,556,556,556,3517,3518,3519,3520,580,580,580,3523,580,3525,580,580,580,580,3530,0,0,0,0,0,0,1687,0,0,0,0,0,0,0,0,0,0,783,0,0,0,0,0,0,0,0,0,0,0,3562,534,534,534,3566,556,556,3568,556,556,556,3572,556,580,580,3574,580,580,580,3578,580,0,0,0,534,534,534,534,534,534,556,556,580,580,0,3111,0,0,0,0,0,0,0,0,0,0,398,0,0,0,0,0,0,0,0,328,329,0,0,0,0,0,0,0,0,0,0,0,0,2409,0,0,0,0,368,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1629,0,0,0,0,368,0,0,0,376,378,0,0,0,0,0,0,0,0,2025,0,0,0,0,0,0,0,0,2047,0,0,0,0,0,0,0,0,2087,0,0,0,0,0,0,0,0,2127,0,0,534,534,534,534,534,0,0,411,0,0,0,411,69632,73728,0,368,368,0,423,65536,368,0,0,368,423,492,496,492,492,501,492,492,492,501,492,423,423,329,423,0,0,423,423,0,0,0,0,0,0,0,0,0,2048,0,0,0,0,0,0,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,423,540,563,540,563,540,540,563,540,587,563,563,563,563,563,563,563,587,587,587,540,587,587,587,587,587,587,587,563,563,540,563,587,563,587,1,12290,0,769,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1644,0,556,556,556,556,933,556,556,556,556,556,556,556,556,556,556,556,2285,556,2287,556,556,0,0,1207,0,1096,0,0,0,0,0,0,0,0,0,0,0,0,2447,0,0,0,534,534,534,534,1260,534,534,534,534,534,1272,534,534,534,534,534,0,0,0,2212,556,556,556,556,556,556,556,3029,556,556,556,556,556,556,556,556,3030,556,556,556,556,556,556,556,534,534,534,1341,901,556,556,556,556,556,556,556,556,1352,556,556,0,580,580,580,580,580,580,998,580,580,580,580,580,580,2650,580,580,580,580,580,580,580,580,580,2315,580,2317,580,580,580,580,556,556,556,1364,556,556,556,556,556,556,556,556,556,556,556,556,1378,1380,556,556,556,556,556,1871,556,556,556,556,556,556,556,556,556,556,556,556,1413,556,556,1417,534,534,534,534,534,3567,556,556,556,556,556,556,556,3573,580,580,580,580,580,2677,580,580,580,580,580,580,534,580,556,534,534,534,534,556,556,556,556,580,534,3597,556,556,556,3599,580,580,580,0,534,534,556,556,580,580,0,0,0,3243,0,0,0,0,0,0,0,657,0,0,0,0,0,0,0,0,306,306,306,0,0,0,0,0,424,424,0,424,433,0,424,424,460,460,460,460,460,460,460,460,460,460,460,460,460,460,460,460,460,460,460,486,486,460,486,486,486,486,486,486,486,486,486,486,486,486,486,486,486,486,486,486,486,486,486,486,486,486,541,564,541,564,541,541,564,541,588,564,564,564,564,564,564,564,588,588,588,541,588,588,588,588,588,588,588,564,564,541,564,588,564,588,1,12290,78114,1066,0,0,1069,1073,0,0,1077,1081,0,0,0,0,0,0,0,703,0,0,0,0,0,0,0,0,0,2104,0,0,0,0,0,0,0,0,0,0,1194,0,0,0,0,0,0,0,0,0,0,0,0,2472,0,0,0,0,1670,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1667,0,0,0,0,0,2044,0,0,0,0,0,0,0,0,0,0,0,0,2704,0,0,0,0,2068,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1681,1682,2392,580,580,580,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2928,0,0,0,2932,0,0,0,0,0,2938,0,0,0,0,0,0,0,719,0,0,0,0,0,0,0,0,0,721,0,0,0,0,0,0,2953,0,0,2956,0,0,0,0,0,2961,0,0,0,0,0,0,0,748,0,0,0,0,0,0,0,0,333,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1204,2995,534,534,534,534,534,534,534,534,534,3004,534,534,534,534,534,0,0,2211,0,556,556,556,556,556,556,556,2268,556,556,556,556,2273,556,556,556,534,534,534,3012,534,534,3015,534,534,534,3018,556,556,556,556,556,0,0,0,0,580,580,580,580,580,580,580,556,556,534,556,580,556,580,1,12290,556,556,556,556,3054,556,556,3057,556,556,556,3060,580,580,580,580,0,0,0,0,0,0,0,0,2396,0,0,0,3077,580,580,580,580,580,580,580,580,580,580,3087,580,580,580,580,0,0,0,0,0,0,3442,0,3444,0,534,534,0,3120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2015,0,0,534,534,3151,534,534,534,534,534,534,534,534,534,534,534,534,534,3458,556,556,534,534,534,534,3163,534,534,534,534,534,534,534,3168,534,3170,534,534,534,534,534,1261,534,534,534,1270,534,534,534,534,534,534,534,2493,534,534,534,534,534,534,534,534,534,2196,534,534,534,534,534,534,556,556,556,580,580,3207,580,580,580,580,580,580,580,580,580,580,1962,580,580,580,580,580,580,3227,580,580,580,580,580,580,580,580,580,580,580,534,580,556,2912,534,2914,556,2916,3275,534,534,534,534,534,534,534,556,556,556,556,556,556,556,556,580,580,580,556,556,3287,556,556,556,556,556,556,556,556,556,3293,556,556,556,556,556,556,3466,556,556,556,556,556,556,580,580,580,580,580,580,580,580,580,580,3306,3587,3588,556,556,580,580,3591,3592,580,580,0,0,0,534,534,534,534,534,534,534,534,534,1716,534,534,534,0,683,684,0,0,0,0,689,0,0,0,364,364,364,0,0,0,0,0,534,830,534,534,534,534,534,534,860,534,534,534,534,534,534,2180,2181,534,534,534,534,534,534,2188,534,0,751,0,0,0,0,0,751,751,0,0,816,0,0,0,0,0,0,0,1134592,0,0,0,0,0,0,1134592,0,0,0,0,970,556,0,580,580,580,580,988,580,580,580,580,580,580,580,580,1044,580,0,0,0,841,988,914,534,534,534,534,897,556,556,556,556,970,0,580,580,580,580,1044,0,0,0,1145,0,0,0,0,0,0,0,0,0,0,0,0,0,2408448,0,0,534,1318,534,534,534,534,534,534,534,534,534,534,534,534,534,534,0,2549,1696,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1190,580,580,1988,580,534,580,556,534,534,534,534,556,556,556,556,580,580,580,580,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2122,0,0,0,0,0,0,0,0,534,534,534,534,534,2768,534,2769,534,534,2540,534,534,534,534,534,534,534,534,534,534,534,534,534,0,0,0,0,556,556,556,556,556,556,556,556,556,556,556,556,0,0,975,580,0,3129,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2053,0,3235,534,3237,556,3239,580,0,0,0,0,0,0,0,0,0,0,0,3124,3125,0,0,0,556,556,556,3298,556,580,580,580,580,580,580,580,580,580,580,580,2359,580,580,580,580,3317,580,534,534,556,556,580,580,0,0,0,0,0,0,0,0,0,2076,0,0,0,0,0,0,461,461,479,487,487,479,487,487,487,487,487,487,487,487,512,520,520,520,520,520,520,520,520,520,520,520,520,520,520,529,520,520,520,520,520,542,565,542,565,542,542,565,542,589,565,565,565,565,565,565,565,589,589,589,542,589,589,589,589,589,589,589,565,565,542,565,589,565,589,1,12290,0,0,760,0,0,764,0,0,0,0,0,0,0,0,0,0,0,3132,0,0,0,0,0,778,0,0,0,0,0,0,0,782,0,0,0,0,0,0,0,779,0,0,0,0,788,0,0,0,0,0,0,800,0,0,0,0,0,0,805,0,0,0,782,0,0,0,0,364,364,0,0,0,1136,0,0,0,0,0,0,0,1606,0,0,0,0,0,0,0,0,553,576,553,576,553,553,576,553,0,805,0,0,0,0,0,805,805,0,0,0,0,782,0,0,0,0,0,534,831,534,534,534,846,534,534,534,534,534,0,2210,0,0,556,556,556,556,556,556,556,1893,26009,0,1898,580,1900,580,1901,580,0,0,0,0,823,778,0,0,823,0,0,0,0,0,0,0,0,2468,0,0,0,0,0,0,0,0,2022,0,2116,0,0,0,0,0,0,0,0,0,823,534,534,534,534,844,534,852,534,534,534,534,0,0,556,556,556,556,556,2815,556,2816,556,556,917,556,925,556,556,556,556,556,556,556,556,556,556,556,556,556,556,2583,556,971,556,0,580,580,580,580,580,991,580,999,580,580,580,580,580,580,3097,580,580,580,580,580,534,580,556,534,534,534,534,1054,898,556,556,556,1059,971,0,580,580,580,1064,1045,0,1159,0,0,0,0,0,0,0,1167,0,0,0,0,0,0,0,789,0,0,0,0,0,0,770,0,0,0,1219,0,0,0,0,0,0,0,0,1224,0,0,0,0,0,0,0,1134592,0,364,0,0,0,1134592,0,0,0,1134592,1134592,0,0,1134592,0,0,1134592,0,1134592,534,534,1284,534,534,534,534,534,534,534,1292,534,534,534,534,534,0,2209,0,0,556,556,556,556,556,556,556,1842,556,556,556,556,556,556,556,556,26009,1896,580,580,580,580,580,580,534,534,534,1321,534,534,1325,534,534,534,534,534,1331,534,534,534,534,534,534,534,3342,534,3344,534,534,534,534,534,556,1338,534,534,1341,901,556,556,556,556,556,556,556,556,556,556,556,2568,556,556,556,556,556,1357,556,556,556,556,556,556,556,556,556,1376,556,556,556,556,556,0,2615,0,0,0,0,580,580,580,2619,580,556,556,556,1384,556,556,556,556,556,556,556,556,556,556,556,556,1816,1817,556,556,580,580,580,1522,580,580,0,534,580,556,534,534,534,534,534,556,556,556,556,556,3196,556,3198,556,556,556,556,556,556,556,556,1878,1879,556,556,556,556,556,556,534,534,534,534,1773,534,534,534,534,534,534,1781,534,534,534,534,0,0,556,556,556,2813,556,556,556,556,556,2818,556,556,1823,556,556,556,556,556,556,556,556,556,556,556,556,556,556,2842,556,556,556,1853,556,556,556,556,1859,556,556,556,556,556,556,556,556,2840,556,556,556,556,556,556,556,1868,556,556,556,556,556,556,1876,556,556,556,556,556,556,556,556,2850,556,556,556,556,556,556,556,556,1886,1888,556,556,556,556,556,26009,0,580,580,580,580,580,580,0,1525,1526,1527,534,534,1529,534,534,556,580,580,580,1955,580,580,580,580,580,580,580,580,1964,580,580,580,580,580,1940,1941,1943,580,580,580,580,580,580,580,1951,580,580,580,1972,580,580,580,580,580,580,580,580,580,1982,1984,580,580,580,580,1925,580,580,580,580,580,580,580,580,580,580,580,2372,580,2374,580,580,0,0,0,2057,0,0,0,0,0,2063,0,0,0,0,0,0,0,1089,0,0,0,0,1241,1242,0,0,0,0,0,0,2071,0,0,0,0,0,0,0,0,2079,0,0,0,0,0,534,833,534,534,534,534,534,534,534,534,534,1306,534,534,534,534,534,534,2134,534,534,534,534,534,534,534,534,534,534,534,2146,534,534,534,534,534,534,534,3453,534,534,534,534,534,556,556,556,556,556,556,2826,556,556,556,556,556,556,556,556,556,949,556,556,556,556,967,556,2189,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,1314,2203,534,534,534,534,0,0,0,0,556,556,556,556,556,556,2219,2290,556,556,556,556,0,0,0,0,580,580,580,580,580,580,2306,2377,580,580,580,580,2146,2318,2231,534,534,534,534,556,556,556,556,580,580,580,580,0,534,534,556,556,580,580,0,0,0,0,0,0,3246,0,0,0,0,0,2413,2414,0,0,2417,0,2419,0,0,0,0,0,0,0,0,2712,0,0,0,0,0,0,0,0,2728,0,0,0,0,0,0,0,0,2429,0,0,0,0,0,0,0,0,2406,0,0,0,0,0,0,0,0,2454,0,0,0,0,0,0,0,0,1587,0,0,0,0,0,0,0,1595,1596,0,0,0,2424,0,0,2427,0,0,0,0,0,0,2431,0,0,0,0,0,0,0,1159168,0,1159168,0,0,0,0,1159168,1159168,0,0,0,2452,0,0,0,0,0,0,0,2456,2457,0,0,2460,0,0,2463,0,0,0,0,0,0,0,0,0,0,2473,0,0,0,0,0,639,0,0,0,0,644,645,646,647,648,649,534,2487,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,3008,534,534,534,2515,534,534,534,534,534,534,534,534,534,534,534,534,1293,534,534,534,534,2527,534,534,534,534,534,534,2534,534,534,534,534,534,534,534,534,3343,534,534,534,534,534,534,556,534,534,2541,534,534,534,2544,534,534,534,534,534,534,534,0,0,0,0,556,556,556,556,2217,556,556,556,2574,556,556,556,556,556,556,2579,556,556,556,556,556,556,556,1427,1428,556,556,556,26009,1341,975,580,2585,556,556,556,556,556,556,2592,556,556,556,556,556,556,2599,556,556,556,556,556,3290,556,556,556,556,3291,3292,556,556,556,556,556,0,0,2298,0,580,580,580,580,580,580,580,2886,580,580,580,580,580,580,580,580,580,3312,580,580,580,580,580,580,2673,580,580,580,2676,580,580,580,580,580,580,580,2681,2682,2683,534,534,534,534,534,1289,534,534,534,534,534,534,534,534,534,534,534,2185,534,534,534,534,2720,2721,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2080,0,0,0,2736,0,0,0,0,0,0,0,0,0,0,2746,0,0,0,0,0,667,0,0,0,0,0,729,0,780,0,0,0,0,0,305,0,0,0,0,0,0,0,0,0,0,0,1565,0,0,0,0,0,0,2751,0,0,0,2753,0,0,0,0,0,0,0,0,0,0,2109,534,534,534,534,534,2787,2788,534,534,534,534,2791,534,534,534,534,534,534,534,534,534,556,556,3178,556,556,556,556,2796,534,534,534,2799,534,2801,534,534,534,534,534,534,2805,534,534,534,534,534,534,2492,534,534,534,534,534,534,534,534,534,1745,534,534,534,534,534,534,2834,2835,556,556,556,556,2838,556,556,556,556,556,556,556,556,556,2257,556,556,556,556,556,556,556,2844,556,556,556,2847,556,2849,556,556,556,556,556,556,556,2854,580,2867,580,580,580,580,580,580,580,580,580,580,580,580,580,580,1949,580,580,580,2883,2884,580,580,580,580,2887,580,580,580,580,580,580,580,1928,580,580,580,580,580,580,580,580,1912,1913,580,580,580,580,1920,580,580,580,580,2893,580,580,580,2896,580,2898,580,580,580,580,580,580,1190,534,580,556,534,534,534,534,534,556,580,2903,580,580,580,580,580,580,534,580,556,534,534,556,556,580,580,0,0,3242,0,0,0,0,0,0,0,0,225734,225734,225734,225734,225734,225734,225734,225734,0,0,0,0,0,0,0,0,0,366,0,0,0,0,0,0,580,2918,0,0,2921,2922,0,0,0,0,0,0,0,0,0,0,0,3132,0,0,3255,0,534,534,534,534,2986,534,534,534,534,534,534,534,2992,534,534,534,534,534,534,891,534,534,534,534,556,556,556,556,556,0,0,0,0,580,580,2302,580,580,580,580,556,556,556,3026,556,556,556,556,556,556,556,3032,556,556,556,556,556,556,1841,556,556,556,556,556,556,556,556,556,3357,556,3359,556,556,556,556,580,580,580,580,3068,580,580,580,580,580,580,580,3074,580,580,580,580,580,2311,580,580,2314,580,580,580,580,580,580,2322,3138,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1191,3247,0,0,0,0,0,0,0,0,0,0,3132,0,0,0,0,0,0,0,0,0,534,534,534,534,2767,534,534,534,534,534,534,534,534,3265,534,534,534,534,534,534,534,534,534,534,534,534,1341,0,556,556,534,534,3276,534,534,534,534,534,556,556,556,556,556,556,3283,556,556,556,556,556,3299,580,580,580,580,580,580,580,3304,580,580,580,580,580,3479,580,3481,580,580,3483,580,580,0,0,0,0,0,0,1210,0,0,0,0,0,0,0,0,0,0,2421,0,0,0,0,0,3132,0,0,0,0,534,534,534,534,534,534,534,534,3399,534,3401,3402,534,3404,534,556,556,556,556,556,556,556,556,3414,556,3416,3417,556,3419,556,3421,580,580,580,580,580,580,580,580,3430,580,3432,3433,580,3435,580,3437,0,0,0,0,0,0,0,0,0,0,534,534,534,534,534,534,534,3499,534,3501,534,534,580,580,580,3553,580,3554,580,580,580,580,0,0,0,0,534,534,534,534,534,534,3538,534,3539,534,534,534,3604,3605,3606,534,556,580,534,556,580,534,556,580,0,0,0,0,0,0,0,3211264,0,0,0,2179072,2179072,2179072,2179072,2179072,2125824,2125824,2125824,2125824,2125824,0,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,3117056,2125824,2125824,2125824,2125824,590,566,566,566,566,566,566,566,590,590,590,543,590,590,590,590,590,590,590,566,566,543,566,590,566,590,1,12290,556,556,1398,556,556,556,556,556,556,556,556,556,556,556,556,556,556,2853,556,0,0,730,0,0,0,0,0,0,0,0,0,0,0,0,0,1126,1127,0,534,534,534,534,2138,534,534,534,534,534,534,534,534,534,534,534,534,2784,534,534,534,556,556,556,2223,556,556,556,556,556,556,556,556,556,556,556,556,1849,556,556,556,580,580,580,2310,580,580,580,580,580,580,580,580,580,580,580,580,1490,580,580,580,402,0,0,0,0,380,0,69632,73728,0,0,0,0,425,65536,0,0,0,0,364,364,1133,0,0,0,0,0,0,0,0,0,0,3133,0,0,0,3136,0,425,425,0,425,0,439,425,425,462,462,462,469,462,462,462,462,462,462,462,462,469,462,462,462,462,462,462,462,462,476,462,488,488,462,488,488,488,488,488,488,488,488,488,488,488,488,488,488,488,488,488,488,488,488,488,488,488,531,544,567,544,567,544,544,567,544,591,567,567,567,567,567,567,567,591,591,591,544,591,591,591,591,591,591,591,567,567,544,567,591,567,591,1,12290,0,0,0,653,654,0,0,0,0,0,0,0,0,0,0,0,0,2939,0,0,2941,0,0,0,654,0,654,0,0,0,0,814,0,0,0,654,0,0,0,0,374,0,0,0,0,0,0,0,0,0,0,0,534,2130,534,534,534,556,919,556,556,556,556,556,556,556,556,556,556,957,556,556,556,556,556,556,3545,556,3546,556,556,556,556,580,580,580,580,580,580,0,0,0,534,534,534,534,534,534,556,556,534,534,884,534,534,556,556,957,556,556,0,580,580,1031,580,580,580,580,580,2907,580,580,534,580,556,534,534,556,556,580,580,0,0,0,0,0,0,0,3117,0,0,0,290,1066,0,0,1069,1073,0,0,1077,1081,0,0,0,0,0,0,0,1094,0,0,0,0,0,0,0,0,0,192965,192965,192965,192965,192965,192965,192965,192965,0,0,0,1088,1089,0,0,0,0,0,0,0,0,0,0,0,0,131072,131072,0,0,0,1130,0,0,364,364,0,0,0,0,0,0,0,0,0,0,0,3132,0,3254,0,0,1089,1088,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2093,0,1088,0,0,0,0,0,0,0,0,0,0,0,0,534,1253,534,534,534,534,534,1303,534,534,1305,534,534,534,1309,534,534,534,0,901,556,556,556,556,556,556,556,556,556,556,556,556,3549,580,580,580,534,534,534,534,1287,534,534,534,534,534,534,534,534,534,534,534,534,2804,534,534,2807,534,534,1320,534,534,534,534,534,534,534,534,534,534,534,1334,534,534,534,534,534,1323,534,534,534,534,534,534,534,534,534,534,534,2509,534,534,534,534,534,534,534,1341,901,556,1344,556,556,556,556,556,556,556,556,556,2283,556,556,556,556,556,556,556,556,1358,1365,556,556,556,556,556,556,556,556,556,1379,556,556,0,580,580,580,985,989,992,580,1e3,580,580,580,1015,1017,556,556,556,1399,556,556,556,556,556,556,556,1412,556,556,556,556,556,556,1858,556,556,556,556,556,556,556,556,556,1402,556,556,556,556,556,556,556,1416,556,1436,580,580,580,580,580,580,580,580,580,580,580,1450,1457,580,580,580,580,580,3069,580,580,580,580,580,580,580,580,580,580,1510,580,580,580,580,580,580,1518,580,580,580,580,0,1266,1450,1358,534,534,1320,534,534,556,556,556,556,556,3354,556,556,556,556,556,556,3360,556,556,556,556,556,556,2615,0,580,580,580,580,580,580,580,580,580,2626,580,580,580,580,580,580,556,1412,556,556,580,580,1504,580,580,1066,0,0,0,0,0,0,0,1107,0,0,0,0,0,0,0,0,658,0,0,661,0,0,0,0,1570,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1228,1721,1722,534,534,534,534,1729,534,534,534,534,534,534,534,534,534,556,3177,556,556,556,3180,556,534,1770,534,534,534,534,534,534,534,534,534,534,534,534,534,534,1311,534,556,556,1824,556,556,556,556,556,556,556,556,556,556,556,556,556,556,3204,556,556,556,1838,556,556,556,556,556,556,556,556,556,556,556,556,556,556,3294,556,580,1987,580,580,534,580,556,534,534,534,534,556,556,556,556,580,580,580,580,0,0,0,0,2694,2029,0,2030,0,0,0,0,0,0,0,0,0,2039,0,0,0,0,0,0,1700,0,0,0,0,0,0,0,0,0,298,0,0,0,0,0,0,534,534,2190,534,534,534,534,534,2195,534,534,534,534,534,534,534,1326,534,534,534,534,534,534,534,534,1291,534,534,534,534,534,534,534,556,2276,556,556,556,556,556,556,2282,556,556,556,556,556,556,556,1810,556,556,556,556,556,556,556,556,3188,556,556,556,556,556,556,556,580,2363,580,580,580,580,580,580,2369,580,580,580,580,580,580,580,2329,580,580,580,580,580,580,580,580,580,3557,0,0,0,0,534,534,580,580,2634,580,580,580,580,580,580,580,580,580,580,580,580,580,1948,580,580,0,0,0,0,2699,0,0,0,0,0,0,0,0,0,0,0,0,163840,0,0,0,534,534,534,534,534,2778,534,534,534,534,534,534,534,534,534,534,1779,534,534,534,534,534,534,2809,534,534,0,0,556,556,556,556,556,556,556,556,2817,556,556,556,556,556,3465,556,3467,556,556,3469,556,556,580,580,580,580,580,580,580,580,580,580,3373,580,3375,580,556,556,556,2858,556,556,0,0,580,580,580,580,580,580,580,580,1445,580,580,580,1454,580,580,580,2866,580,580,580,580,580,580,2874,580,580,580,580,580,580,580,580,1473,580,580,580,580,580,580,580,534,2996,534,534,534,534,534,534,534,534,534,534,534,534,534,534,1767,1768,3036,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,2275,580,3078,580,580,580,580,580,580,580,580,580,580,580,580,580,580,1966,580,0,0,0,0,3130,0,0,0,0,0,0,0,0,0,0,0,0,167936,0,0,0,534,534,3174,534,534,534,534,534,534,556,556,556,556,556,556,556,1828,556,556,556,556,556,556,556,556,26009,0,580,580,580,580,580,580,0,0,0,0,3535,534,534,534,534,534,534,534,534,534,534,534,534,2991,534,534,534,3542,556,556,556,556,556,556,556,556,556,556,556,556,3550,580,580,580,580,580,3082,580,580,3085,580,580,580,580,580,580,580,1911,580,580,580,580,580,580,580,580,580,3072,580,580,580,580,580,580,463,463,463,447,447,463,447,447,447,447,447,447,447,447,513,513,513,513,513,513,513,513,513,513,513,513,513,513,513,513,545,568,545,568,545,545,568,545,592,568,568,568,568,568,568,568,592,592,592,545,592,592,592,592,592,592,592,568,568,545,568,592,568,592,1,12290,0,0,0,655,0,655,0,0,0,0,0,0,0,0,655,0,0,0,0,0,0,0,0,0,0,0,556,920,556,556,934,556,556,556,556,556,556,556,556,556,556,556,2841,556,556,556,556,0,0,1160,0,0,0,0,0,0,0,0,0,0,0,0,0,1155,0,0,0,0,0,1177,0,0,0,0,0,0,0,0,0,0,0,0,0,2461696,0,0,0,0,0,1232,0,0,0,0,0,0,0,0,0,0,0,0,0,2801664,0,0,534,534,534,534,1322,534,534,534,534,534,1329,534,534,534,534,534,534,534,2505,534,2507,534,534,534,534,534,534,534,1793,534,534,534,534,1341,0,556,556,556,556,1359,556,556,556,556,556,556,556,556,556,556,556,556,556,965,556,556,556,556,556,1421,556,556,556,556,556,556,556,556,26009,1341,975,580,580,580,580,1974,1975,580,580,580,580,580,580,580,580,580,580,2641,580,580,580,2644,580,556,556,1534,556,580,580,580,1538,580,1066,0,1542,0,0,0,1548,0,0,0,1554,0,0,0,1560,0,0,0,0,0,0,0,0,0,2444,0,0,0,2448,0,0,1599,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1569,534,534,1723,534,534,534,534,534,534,534,534,534,1734,534,534,534,534,534,534,892,534,534,534,534,556,556,556,556,556,0,0,2298,0,0,0,580,580,580,580,580,580,3480,580,580,580,580,580,580,0,0,0,534,3582,534,534,534,534,556,3586,1754,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,1316,0,2096,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2108,0,534,534,534,534,2154,534,534,534,534,534,534,534,534,534,534,534,534,3006,534,534,534,556,556,556,2239,556,556,556,556,556,556,556,556,556,556,556,556,1864,556,556,1867,580,580,580,2326,580,580,580,580,580,580,580,580,580,580,580,580,1512,580,580,580,556,556,3194,556,556,556,556,556,556,556,556,556,556,556,556,556,1414,556,556,0,0,3328,3132,0,0,0,0,0,0,0,0,0,534,534,534,534,534,851,534,534,534,534,534,580,580,3379,580,580,534,556,580,0,0,0,3384,0,0,0,0,0,0,306,204800,0,0,0,0,0,0,0,0,0,364,298,0,0,0,0,0,3132,0,0,0,0,534,534,534,534,3395,534,534,534,534,534,534,534,2156,534,2158,534,534,534,534,534,534,534,2170,534,534,534,534,534,534,534,534,534,2546,534,534,534,534,0,2549,387,389,339,0,0,0,0,0,0,338,0,0,339,0,0,0,0,0,0,2023,0,0,0,0,0,0,0,0,0,0,359,0,0,0,0,0,0,0,0,386,0,0,0,69632,73728,0,0,0,0,0,65536,0,0,0,0,393,394,0,395,0,0,0,0,0,395,0,0,0,0,0,1209,0,0,0,0,1214,0,0,0,0,0,0,0,2405,0,0,0,0,0,0,0,0,0,1094,0,0,0,0,1099,0,0,0,338,0,0,440,0,0,464,464,464,464,464,464,464,464,546,569,546,569,546,546,569,546,475,464,464,464,493,470,493,493,493,493,493,493,493,493,464,464,470,464,464,464,464,464,464,464,464,464,464,464,474,474,464,475,464,464,464,593,569,569,569,569,569,569,569,593,593,593,546,593,593,593,593,593,593,593,569,569,546,569,593,569,593,1,12290,0,0,0,699,0,0,0,0,0,0,0,0,708,0,710,0,0,0,0,431,0,0,0,0,0,0,0,0,0,0,0,0,1643,0,0,0,0,743,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2411,0,0,759,0,0,0,0,0,0,0,0,0,0,0,656,0,775,0,0,0,0,0,824,0,0,0,0,0,0,779,656,0,0,796,0,0,0,0,699,0,0,0,0,0,0,799,0,0,0,0,434,0,0,331,461,461,461,461,461,461,461,461,461,461,461,461,461,461,461,461,796,779,0,0,801,0,660,0,775,0,0,0,0,0,0,0,0,2755,0,0,0,0,0,0,0,0,2937,0,0,0,0,0,0,0,0,2741,0,0,0,2745,0,2747,0,0,0,775,801,0,801,796,0,0,0,815,0,0,0,656,818,828,0,0,0,0,534,832,534,534,534,848,534,534,862,534,534,534,534,534,534,2504,534,534,534,534,534,534,534,534,534,898,534,556,556,556,556,556,534,534,875,534,534,534,534,893,534,534,534,556,556,904,556,556,0,580,580,976,580,580,580,580,580,580,1007,580,580,580,580,580,1908,580,580,580,580,580,580,580,580,580,1921,556,921,556,556,935,556,556,556,556,948,556,556,556,556,966,556,556,556,556,580,580,580,580,580,580,0,3594,0,534,534,534,534,534,534,534,534,534,3156,534,534,534,534,534,534,534,2802,534,534,534,534,534,534,534,534,534,1795,534,534,1341,1800,556,556,580,1022,580,580,580,580,1040,580,580,580,0,0,0,534,580,556,556,556,556,580,580,580,580,580,580,3428,580,580,580,580,580,534,556,580,3381,0,3383,0,0,0,0,0,0,0,2126,0,0,0,534,534,534,534,534,534,534,534,534,534,1717,534,534,0,0,1131,0,364,364,0,1134,0,0,0,0,0,0,0,0,0,2481,0,0,0,0,0,0,0,1174,0,0,0,0,0,0,1091,0,0,0,0,0,0,0,0,111044,111044,111044,111044,111044,111044,111044,111044,1,12290,1093,0,0,0,0,0,0,1197,0,0,0,0,1202,0,0,0,0,0,0,2033,0,0,0,0,0,0,0,0,0,0,131072,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,324,0,0,0,0,1131,0,0,1237,0,0,0,0,0,0,0,0,0,2713,0,0,0,0,0,0,1216,0,0,0,0,1248,0,0,0,0,0,0,0,534,534,534,841,534,534,534,534,534,534,534,556,556,1360,556,556,556,556,556,556,556,556,556,556,556,556,1382,580,580,1497,580,580,580,580,580,580,580,580,580,580,580,580,580,2334,580,580,556,1533,556,556,580,580,1537,580,580,1066,0,0,0,0,0,0,0,1121,0,0,1124,1125,0,0,0,0,1584,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1614,0,0,0,1602,0,0,1605,0,1607,0,0,0,0,0,0,0,0,122880,0,122880,122880,122880,122880,122880,0,0,1697,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2423,0,534,1755,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2162,534,556,1822,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,3049,556,556,556,556,2265,556,556,556,556,556,556,556,556,556,556,556,3031,556,556,556,556,0,0,0,0,2402,0,2404,0,0,2407,0,0,0,0,0,0,0,1165,0,0,0,0,0,0,0,0,0,750,0,0,0,0,0,0,2412,0,0,0,2415,2416,0,0,0,0,0,0,0,0,0,0,0,106496,0,0,0,0,0,0,0,0,2426,0,0,0,0,0,0,0,0,0,0,0,0,0,2912256,0,3207168,0,0,0,0,2440,0,2441,0,0,0,0,0,0,0,0,0,0,2470,0,0,0,0,0,2461,0,0,0,0,0,0,0,0,2469,0,0,0,0,0,2475,0,0,0,0,2478,0,0,0,0,0,0,0,0,0,2486,0,0,0,0,435,0,0,447,463,463,463,463,463,463,463,463,463,473,463,463,463,463,463,463,534,2500,2501,534,534,534,534,534,2506,534,2508,534,534,534,534,2512,2525,534,534,534,534,534,534,2533,534,534,534,534,2537,534,534,534,534,534,534,1262,534,534,534,534,534,534,1277,534,534,556,556,556,2561,556,556,2564,2565,556,556,556,556,556,2570,556,2572,556,556,556,556,2576,556,556,556,556,556,556,556,556,2582,556,556,0,580,580,977,580,580,580,993,580,580,580,580,580,580,1443,580,580,580,1447,580,580,1458,580,580,556,556,2602,556,556,556,556,556,556,556,556,556,556,556,556,556,1833,556,556,2685,534,534,556,2687,556,556,580,2689,580,580,0,0,0,0,0,0,0,2936,0,0,0,0,0,0,0,0,0,2036,0,0,0,0,0,0,0,0,2708,0,0,0,0,0,0,0,2714,2715,2716,0,0,0,0,0,0,2060,0,0,0,0,0,2064,0,0,2066,0,2735,0,2737,0,0,0,2740,0,0,2743,0,0,0,0,0,0,0,2960,0,0,0,0,0,0,0,0,0,2430,0,0,0,0,0,2435,534,534,2810,534,0,0,2811,556,556,556,556,556,556,556,556,556,2566,556,556,556,556,556,556,556,2856,556,556,2859,556,0,0,2860,580,580,580,580,580,580,580,2651,580,580,580,580,580,580,2658,580,580,2892,580,580,580,580,580,580,580,580,580,580,580,580,580,580,2321,580,2902,580,580,2905,580,580,2908,580,2909,2910,2911,534,534,556,556,580,580,0,0,0,0,0,3115,0,0,0,0,0,0,0,69632,73728,0,0,0,420,0,65536,0,2929,2930,0,0,0,0,2935,0,0,0,0,0,0,0,0,0,0,2730,0,0,0,0,0,534,534,2997,534,2999,534,534,534,534,534,534,3005,534,534,3007,534,534,534,534,534,1324,534,534,534,534,534,534,534,534,1335,1336,556,3037,556,3039,556,556,556,556,556,556,556,3046,556,556,3048,556,556,556,556,580,580,580,580,580,1066,0,0,0,0,0,0,0,377,0,380,0,0,0,380,0,0,580,580,3079,580,3081,580,580,580,580,580,580,580,3088,580,580,3090,534,534,534,534,534,3164,534,534,534,534,534,534,534,3169,534,534,534,534,534,534,2779,534,534,534,534,534,534,534,534,534,534,3167,534,534,534,534,534,3181,3182,556,556,556,556,3186,3187,556,556,556,556,556,3191,556,556,0,580,580,978,580,580,580,995,580,580,1009,580,580,580,580,580,2353,2354,580,580,580,580,580,580,2361,580,580,556,556,556,580,580,580,580,580,580,580,3210,3211,580,580,580,580,580,1442,580,580,580,580,1448,580,580,580,580,580,580,3524,580,3526,580,580,580,580,0,0,0,0,0,0,0,0,0,0,534,534,3215,3216,580,580,580,580,580,3220,580,580,580,580,580,580,580,580,1507,580,580,580,580,580,580,580,3226,580,580,580,580,580,580,580,580,580,580,580,580,534,580,556,2684,556,556,556,3288,556,556,556,556,556,556,556,556,556,556,556,556,2258,556,556,556,3307,580,580,580,580,580,580,580,580,580,580,580,580,580,580,580,2347,2348,3132,0,0,0,0,534,534,3393,534,534,534,534,3398,534,534,534,534,534,534,1290,534,534,534,534,534,534,534,534,534,1267,534,534,534,534,534,534,534,3403,534,534,556,556,3408,556,556,556,556,3413,556,556,556,556,556,556,1874,556,556,556,556,556,1881,556,556,556,3418,556,556,556,580,580,3424,580,580,580,580,3429,580,580,580,580,580,1468,580,580,580,580,580,580,580,1476,580,580,3434,580,580,580,0,0,0,0,0,3441,0,0,0,0,534,534,534,534,3497,534,534,534,534,534,534,534,534,1731,534,534,534,534,1735,534,534,534,3563,3564,534,534,556,556,556,3569,3570,556,556,556,580,580,580,580,580,580,580,580,580,3212,580,580,580,3575,3576,580,580,580,0,0,0,534,534,534,534,534,534,556,556,0,580,580,979,580,580,580,580,580,580,580,580,580,580,2358,580,580,580,580,580,341,342,343,344,345,0,0,0,0,0,0,0,0,0,0,0,0,221184,0,0,0,0,0,0,390,0,0,0,0,0,0,0,0,0,0,0,0,302,0,0,0,344,344,345,344,0,343,344,448,465,465,465,465,465,465,465,465,465,465,465,465,465,465,465,465,465,465,480,489,489,497,489,499,489,489,499,499,489,499,514,514,514,514,514,514,514,514,514,514,514,514,514,514,514,514,547,570,547,570,547,547,570,547,594,570,570,570,570,570,570,570,594,594,594,547,594,594,594,594,594,594,594,570,570,547,570,594,570,594,1,12290,650,0,0,0,0,0,0,0,0,0,0,0,0,0,0,665,666,0,668,669,0,0,0,0,0,675,0,0,0,0,0,0,0,1220,1250,1251,0,1220,0,534,534,534,0,0,0,685,0,0,0,0,0,0,692,364,364,364,0,0,0,0,0,687,0,0,0,0,0,364,364,364,0,0,0,0,0,734,0,0,0,0,0,0,0,0,0,0,0,1691,0,0,0,0,712,0,714,0,716,0,0,0,0,0,0,0,0,0,726,0,0,0,0,436,0,0,0,0,0,0,0,0,0,0,0,0,2138112,0,0,0,0,0,0,639,745,746,747,0,0,0,0,0,753,754,0,0,0,0,0,748,0,0,803,0,0,0,0,0,0,0,0,1134592,0,0,1134592,0,0,0,0,0,685,0,0,665,0,685,0,797,668,716,0,685,798,0,0,0,0,0,1090,1091,1092,1093,0,0,0,0,0,0,0,0,2948,0,0,0,0,0,2951,0,0,0,754,0,0,0,0,0,0,0,0,747,807,808,0,0,0,0,0,1119,0,0,0,0,0,0,0,0,0,0,0,3055616,0,0,0,3133440,0,0,0,0,747,0,0,812,692,0,0,0,817,0,0,0,0,0,0,2073,0,2075,0,0,0,0,0,0,0,0,1702,0,0,1703,0,0,1704,0,819,0,0,0,685,692,0,0,685,817,817,0,0,0,0,0,0,0,3131,0,0,0,0,0,0,0,0,749,0,0,0,0,0,0,756,870,873,534,534,534,885,889,534,534,534,534,556,556,556,911,915,918,556,926,556,556,556,941,943,946,556,556,556,958,962,556,556,0,580,580,980,986,580,580,580,580,1004,580,580,580,580,580,1469,580,580,580,580,580,580,580,580,580,580,2627,580,580,2630,2631,580,1020,580,580,580,1032,1036,580,580,580,580,0,0,0,1048,1049,1050,838,534,885,889,1055,911,556,958,962,1060,0,985,580,1032,1036,1065,1101,0,0,0,0,1105,0,0,1108,0,0,0,0,0,0,0,0,249856,249856,249856,249856,249856,249856,249856,249856,1,12290,1298,534,534,1302,534,534,534,534,534,534,534,534,534,534,1312,534,534,534,534,534,1727,534,534,534,534,534,534,534,534,534,534,1796,534,1341,0,556,556,534,1319,534,534,534,534,534,534,534,534,534,534,1332,534,534,534,534,534,534,1304,534,534,534,534,534,534,534,534,534,1266,1273,534,534,534,534,534,556,1383,556,556,556,556,556,556,556,1390,556,556,1394,556,556,556,556,556,1385,556,556,556,556,556,556,556,556,556,556,2595,556,556,556,556,556,580,580,580,1482,580,580,1486,580,580,580,580,580,580,580,580,580,1929,580,580,580,580,580,580,580,1496,580,580,1503,580,580,580,580,580,580,580,580,580,580,1516,1615,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1655,0,0,0,1647,0,1649,0,0,0,1651,0,741,0,0,0,0,0,0,330,0,0,0,0,0,0,0,330,0,0,69632,73728,0,418,418,0,0,65536,418,0,0,0,534,1709,534,534,534,534,534,534,1715,534,534,534,534,0,0,556,2812,556,556,556,556,556,556,556,556,3356,556,556,556,556,556,556,556,534,534,1787,534,534,534,534,534,534,534,534,534,1341,0,556,1803,556,556,556,556,1839,556,556,556,1843,556,556,1848,556,556,556,556,556,556,1892,556,26009,0,580,580,580,580,580,580,0,1269,1453,1361,534,534,534,534,534,556,580,580,580,1906,580,580,580,580,580,580,580,580,580,580,580,580,1917,580,580,580,1935,580,580,580,1939,580,580,1944,580,580,580,580,580,580,580,580,1945,580,580,580,580,580,580,580,0,0,2010,0,1077,0,0,0,2012,0,1081,0,0,0,0,0,0,0,3144,0,0,0,0,0,0,3147,0,534,534,534,2177,534,534,534,534,534,534,534,534,534,534,534,534,1341,1800,556,556,556,556,2263,556,556,556,556,556,556,556,556,556,556,556,556,556,1850,556,556,580,580,2350,580,580,580,580,580,580,580,580,580,580,580,580,580,2346,580,580,0,2550,0,1800,556,556,556,556,556,556,556,556,556,556,556,556,2569,556,2571,556,556,2613,556,556,556,0,0,0,2616,0,1896,580,580,580,580,580,580,3219,580,580,580,580,580,580,580,580,3225,0,0,2761,0,0,0,534,2765,534,534,534,534,534,534,534,534,534,3166,534,534,534,534,534,3171,534,534,2789,534,534,534,534,534,534,534,534,534,534,534,534,534,1295,534,534,556,556,2836,556,556,556,556,556,556,556,556,556,556,556,556,556,1865,556,556,534,534,2985,534,534,534,534,534,534,534,534,534,534,534,534,534,1310,534,534,534,534,534,2998,534,534,534,534,534,534,534,534,534,534,534,534,1341,1801,556,556,556,3025,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,3205,556,556,3038,556,556,556,556,556,556,556,556,556,556,556,556,556,2247,556,556,580,580,3067,580,580,580,580,580,580,580,580,580,580,580,580,580,2643,580,580,580,580,580,3080,580,580,580,580,580,580,580,580,580,580,580,580,2345,580,580,580,534,534,534,534,534,3267,534,534,534,534,534,534,534,534,534,534,2159,534,534,534,534,2163,3285,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,2289,3336,534,534,534,534,3340,534,534,534,534,534,3346,534,534,534,556,556,556,556,580,580,580,580,580,1066,0,0,0,1545,0,0,0,0,0,1620,0,0,1623,0,1625,0,0,0,0,0,0,0,2480,0,0,0,0,0,0,0,0,555,578,555,578,555,555,578,555,556,556,3351,556,556,556,556,3355,556,556,556,556,556,3361,556,556,0,580,580,981,580,580,580,580,580,580,1010,1012,580,580,580,580,1029,580,580,580,580,580,0,0,0,534,580,556,3377,580,580,580,580,534,556,580,0,0,0,0,0,0,0,0,0,3251,0,3132,3253,0,0,3256,3132,0,0,0,0,534,534,534,534,534,3396,534,534,534,3400,534,534,534,534,534,1742,534,534,534,534,534,534,534,534,534,534,2536,534,534,534,534,534,388,0,0,0,392,388,0,0,0,0,0,0,0,0,0,0,0,233472,0,0,0,0,0,0,0,404,0,346,0,69632,73728,0,0,0,0,0,65536,0,0,0,0,437,0,0,0,0,0,0,0,0,0,0,0,636,0,0,0,0,515,515,515,515,0,0,0,0,0,0,0,0,0,515,515,515,515,515,515,515,515,548,571,548,571,548,548,571,548,595,571,571,571,571,571,571,571,595,595,595,548,595,595,595,595,595,595,595,571,571,610,615,595,615,621,1,12290,0,0,744,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1668,534,534,876,534,534,534,534,894,534,534,534,556,556,905,556,556,0,580,580,982,580,580,580,580,1001,1005,1011,580,1016,580,580,1023,580,580,580,580,1041,580,580,580,0,0,0,534,580,556,556,556,556,580,580,580,580,580,1066,0,0,1544,0,0,0,0,0,0,2764,534,534,534,534,534,534,534,534,534,1268,534,534,534,534,534,534,0,0,0,0,1162,0,0,0,0,0,0,0,0,0,0,1173,0,0,0,1178,0,0,0,0,1094,0,0,0,0,0,0,0,0,274432,274432,274432,0,274432,274432,274432,274432,1256,534,534,534,534,534,534,534,534,1269,534,534,534,534,1279,534,534,534,534,534,1757,534,534,534,534,534,534,534,534,534,534,2197,534,534,534,534,534,534,534,534,1341,901,556,556,556,1347,556,556,556,556,556,556,556,1877,556,556,556,556,556,556,556,556,26009,0,580,1899,580,580,580,580,556,556,1361,556,556,556,556,1371,556,556,556,556,556,556,556,556,3468,556,556,3470,556,580,580,580,556,556,556,556,1422,556,556,556,556,556,556,556,26009,1341,975,580,580,580,580,1990,1991,1992,534,1994,534,534,556,1998,556,556,580,580,580,3367,580,580,580,580,3371,580,580,580,580,580,580,3232,580,580,580,580,580,580,534,580,556,2384,534,534,534,2388,556,556,556,580,580,1439,580,580,580,580,580,580,580,580,580,1453,580,580,580,580,580,2381,2382,2383,534,534,534,534,556,556,556,556,3410,556,556,556,556,556,556,556,580,1463,580,580,580,580,580,580,580,580,580,580,580,580,580,1477,580,580,1498,580,580,580,580,580,580,580,580,580,580,580,1514,580,580,580,580,2005,0,2007,0,2009,0,2011,0,0,0,0,0,0,0,2034,2035,0,2037,2038,0,0,0,0,0,0,0,1555,0,0,0,1561,0,0,0,0,0,0,0,0,0,286720,286720,0,286720,286720,1,12290,0,0,0,1586,0,0,0,0,0,0,0,0,0,0,0,0,303,0,0,0,0,1600,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2434,0,556,1852,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,3363,0,1556,0,0,0,0,0,1562,0,0,0,0,0,0,0,0,305,204800,204800,0,205105,204800,1,12290,0,0,0,2070,0,0,0,0,0,0,0,0,0,0,0,0,337,0,0,0,0,0,2111,0,0,0,0,0,0,0,0,0,0,0,0,0,1188,0,0,534,2165,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2173,534,2250,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,2584,2337,580,580,580,580,580,580,580,580,580,580,580,580,580,580,580,2375,580,2211,0,0,0,556,556,556,556,556,556,556,556,556,556,556,556,2597,556,556,556,556,556,556,2588,556,556,556,556,556,556,556,556,556,556,556,556,2831,556,556,556,534,3107,556,3109,580,0,0,0,0,0,0,0,0,0,0,0,0,2138112,1170,0,0,0,0,0,3132,3330,0,0,3332,0,0,0,0,0,534,3335,534,534,534,534,534,1774,534,534,534,1778,534,534,534,534,534,534,534,1776,534,534,534,534,534,534,534,534,534,2535,534,534,534,534,534,534,534,3337,534,534,534,534,534,534,534,534,534,534,534,534,534,556,556,556,556,556,556,556,556,3350,556,556,3352,556,556,556,556,556,556,556,556,556,556,556,556,2852,556,556,556,556,556,580,3366,580,580,3368,580,580,580,580,580,580,580,580,580,1946,580,580,580,580,580,580,3132,0,3388,0,3390,534,534,534,534,534,534,534,534,534,534,534,556,556,902,556,556,0,0,0,783,0,783,0,0,0,0,0,0,0,0,783,0,0,0,0,556,556,556,556,556,556,556,556,2557,556,556,556,556,556,556,2848,556,556,556,556,556,556,556,556,556,947,556,556,556,556,556,556,556,922,556,556,556,556,556,556,556,556,556,556,556,556,556,556,1381,556,556,972,0,580,580,580,580,580,580,996,580,580,580,580,580,580,1910,580,580,580,580,1916,580,580,580,580,78114,1066,0,0,1070,1074,0,0,1078,1082,0,0,0,0,0,0,0,1222,0,0,0,0,1225,0,1181,0,534,3162,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2201,534,580,580,580,3218,580,580,580,580,580,580,580,580,580,580,580,580,2629,580,580,580,347,347,349,347,0,0,347,347,0,0,0,0,348,0,0,0,0,0,0,2125,0,0,2128,0,534,534,2131,534,534,0,0,0,347,347,349,347,347,347,347,347,347,506,347,347,347,347,347,347,347,347,347,347,347,347,347,347,347,347,549,572,549,572,549,549,572,549,596,572,572,572,572,572,572,572,596,596,596,549,596,596,596,596,596,596,596,572,572,549,572,596,572,596,1,12290,0,0,0,715,0,717,0,0,0,0,0,0,0,0,0,0,0,1147348,0,0,0,0,0,0,0,732,0,0,0,0,0,0,0,0,0,0,0,0,353,354,355,356,758,0,0,0,0,0,0,0,0,0,0,0,0,0,0,673,674,0,0,0,0,0,0,0,794,795,0,0,0,0,795,0,0,0,0,0,795,0,0,794,809,0,803,0,657,0,0,0,0,0,0,0,0,0,0,0,0,3117056,0,0,0,0,820,0,0,0,0,0,0,795,0,0,0,0,0,0,0,0,1159168,364,0,0,0,0,0,0,0,0,0,0,795,534,534,839,534,534,534,534,857,534,534,534,534,534,534,1728,534,534,534,534,534,534,534,534,534,534,3272,534,534,534,3273,3274,534,534,877,879,534,534,890,534,534,534,534,556,556,906,912,556,556,556,556,580,580,580,580,580,1066,0,1543,0,0,0,1549,556,556,556,930,556,556,556,556,556,950,952,556,556,963,556,556,556,556,556,1840,556,556,556,556,556,556,556,556,556,556,1831,556,556,556,556,1835,580,1024,1026,580,580,1037,580,580,580,580,0,0,0,534,580,556,556,556,556,580,580,580,580,580,1066,1540,0,0,0,1546,0,0,0,0,0,131072,0,131072,131072,131072,131072,0,131072,131072,131072,131072,131072,131072,0,0,0,0,0,131072,0,131072,1,12290,839,879,534,890,534,912,952,556,963,556,0,986,1026,580,1037,580,580,580,580,2005,0,2007,0,2009,0,2011,0,0,2397,0,0,0,0,0,330,331,332,0,0,0,0,0,0,0,0,0,2083,0,0,0,0,0,0,0,0,0,0,0,0,2731,0,0,0,0,0,0,1132,364,364,0,0,1135,0,0,0,1138,0,1140,0,0,0,0,556,556,556,556,556,556,556,2556,556,556,556,556,556,556,2577,556,556,556,556,556,556,556,556,556,26009,1897,580,580,580,580,580,580,1142,0,0,0,0,0,0,0,0,0,0,0,0,0,1156,0,0,0,0,556,556,556,556,556,556,2555,556,556,556,556,2559,1158,0,0,0,0,1163,0,0,0,0,1168,0,0,0,0,0,0,0,69632,73728,0,0,0,0,0,65536,0,0,0,0,0,1247,0,0,0,0,0,0,0,1168,534,534,534,534,534,534,1743,534,534,534,534,534,534,534,534,534,897,534,556,556,556,556,914,534,534,534,1286,1288,534,534,534,534,534,534,534,534,534,534,534,556,556,907,556,556,534,534,534,1341,901,556,556,556,556,1348,556,556,556,556,556,556,0,2298,580,580,580,580,580,580,580,580,2640,580,580,580,580,580,580,2645,580,580,580,1440,580,580,580,580,580,580,580,580,580,580,580,580,2670,2671,580,580,1494,580,580,580,580,580,580,580,1508,580,580,580,580,580,580,580,2678,580,580,580,580,534,580,556,534,534,534,1996,556,556,556,2e3,580,580,1519,1520,580,580,580,0,534,580,556,534,1528,534,534,1531,556,556,556,556,580,580,580,580,580,1066,1541,0,0,0,1547,0,0,0,0,556,556,556,2553,556,2554,556,556,556,556,556,556,0,0,580,580,580,580,2863,580,580,580,1532,556,556,1535,580,1536,580,580,1539,1066,0,0,0,0,0,0,0,1577,0,0,0,0,0,0,0,0,0,770,0,0,0,0,0,0,0,0,1617,0,0,0,0,0,0,0,0,0,0,0,0,0,1203,0,0,0,0,1633,0,0,0,0,0,0,0,0,0,0,0,0,0,1217,0,0,0,0,0,0,1658,0,0,0,0,0,0,0,0,0,0,0,364,364,364,0,0,0,0,1698,0,0,0,0,0,0,0,0,0,0,0,0,0,1226,0,0,534,1738,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2207,2549,534,534,534,1788,534,534,534,534,1794,534,534,534,1341,0,556,556,556,556,556,1891,556,556,26009,1896,580,580,580,580,580,580,1470,1472,580,580,580,580,580,580,580,580,1960,580,580,1963,580,580,580,580,556,556,1870,556,556,556,1875,556,556,556,556,556,556,556,556,1884,556,556,556,556,1890,556,556,556,26009,0,580,580,580,580,580,580,1927,580,580,580,580,1931,580,580,580,580,580,1904,580,580,580,580,580,580,580,580,580,580,580,580,580,580,2672,580,580,580,1971,580,580,580,580,580,580,580,580,1980,580,580,580,580,580,1504,580,580,580,580,580,580,580,580,580,580,2316,580,580,2320,580,580,1986,580,580,580,534,580,556,534,534,534,534,556,556,556,556,580,580,580,580,0,0,0,2693,0,0,0,0,0,2099,0,2101,2102,2103,0,2105,0,0,0,0,0,0,0,69632,73728,0,0,0,0,424,65536,0,0,0,0,2123,0,0,0,0,0,0,0,2129,534,534,534,534,0,2211,556,556,556,556,556,556,556,556,556,556,3045,556,556,556,556,556,534,534,2136,534,534,534,534,534,534,534,534,534,534,534,534,534,1333,534,534,534,534,534,2166,534,2168,534,2171,534,534,534,534,534,534,534,534,534,3271,534,534,534,534,534,534,534,534,534,534,2178,534,534,534,534,534,2184,534,534,534,534,534,534,534,2792,534,534,534,534,534,534,534,534,534,2519,534,534,534,534,534,534,534,534,534,534,2206,0,0,0,0,2213,556,556,556,556,556,556,939,556,944,556,951,556,954,556,556,968,556,2221,556,556,556,556,556,556,556,556,556,556,556,556,556,556,1415,556,556,556,2251,556,2253,556,2256,556,556,556,556,556,556,556,556,556,2607,556,556,556,2610,556,556,556,556,556,2264,556,556,556,556,556,2270,556,556,556,556,556,556,1369,556,556,556,1374,556,556,556,556,556,556,556,556,556,2293,0,0,0,0,2300,580,580,580,580,580,580,1942,580,580,580,1947,580,580,580,580,580,580,2308,580,580,580,580,580,580,580,580,580,580,580,580,580,580,2880,580,580,580,2338,580,2340,580,2343,580,580,580,580,580,580,580,580,580,1961,580,580,580,580,580,580,580,580,580,2351,580,580,580,580,580,2357,580,580,580,580,580,580,1958,1959,580,580,580,580,580,580,580,580,580,3234,580,580,580,534,580,556,0,0,2400,2401,0,0,0,0,0,0,0,0,0,0,0,0,399,0,0,0,2436,0,0,2439,0,0,0,0,2443,0,0,0,0,0,0,0,0,2818048,2846720,0,2916352,0,0,3002368,0,0,0,2451,0,0,0,0,0,0,0,0,0,0,0,2459,0,0,0,0,556,556,2552,556,556,556,556,556,556,556,556,556,2851,556,556,556,556,556,556,0,0,0,2477,0,0,0,0,0,0,0,0,0,2485,0,0,0,0,0,1195,0,0,0,0,0,0,0,0,0,0,0,111044,0,0,0,0,534,534,534,534,534,2503,534,534,534,534,534,534,534,534,534,534,2520,534,534,534,534,534,556,556,556,556,2562,556,556,556,556,556,2567,556,556,556,556,556,0,0,0,0,580,580,580,580,2304,580,580,580,2633,580,580,580,580,580,580,580,580,580,580,580,580,580,580,2901,580,534,534,534,2686,556,556,556,2688,580,580,580,2690,2691,0,0,0,0,0,0,2453,0,0,0,0,0,0,0,0,0,0,1185,0,0,0,0,0,0,0,0,2709,0,2710,0,0,0,0,0,0,0,0,0,0,0,1159168,0,0,0,0,2855,556,556,556,556,556,0,0,580,580,580,580,580,2864,580,2865,580,580,2904,580,580,580,580,580,534,580,556,534,534,556,556,580,580,0,0,0,3113,0,0,0,0,0,0,0,0,254407,254407,254407,254407,254407,254407,254407,254407,1,12290,556,556,556,3053,556,556,556,556,556,556,556,580,3061,580,580,580,580,580,2649,580,580,580,580,580,580,580,580,580,580,2371,580,580,580,580,580,580,580,580,580,3095,580,580,580,580,580,580,580,534,580,556,534,534,2386,2387,556,556,2390,2391,534,534,3338,534,534,534,534,534,534,534,534,534,3347,534,534,3349,556,556,556,556,3353,556,556,556,556,556,556,556,556,556,3362,556,556,556,556,580,580,580,580,580,3427,580,580,580,3431,580,580,580,580,1031,580,580,580,580,580,0,0,0,534,580,556,556,556,3365,580,580,580,580,3369,580,580,580,580,580,580,580,580,2356,580,580,580,580,580,580,580,580,3378,580,580,580,534,556,580,0,0,0,0,0,0,0,0,402,0,0,0,0,0,0,0,534,534,534,3449,534,534,534,534,534,534,534,534,534,556,556,556,3179,556,556,556,556,556,3462,556,556,556,556,556,556,556,556,556,556,580,580,580,3300,580,580,580,3303,580,580,580,580,580,3476,580,580,580,580,580,580,580,580,580,580,0,0,0,534,580,556,0,0,3491,0,534,534,534,534,534,534,534,534,534,534,534,534,3158,534,534,534,534,534,3565,534,556,556,556,556,556,3571,556,556,580,580,580,580,580,580,580,580,580,3372,580,580,580,580,580,580,3577,580,580,3579,0,3581,534,534,534,534,534,534,556,556,556,556,556,2224,556,556,2227,556,556,556,556,556,556,2235,400,0,0,0,0,0,367,375,403,0,0,0,0,0,367,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2054,408,410,0,0,367,375,0,69632,73728,0,0,0,0,426,65536,0,0,0,0,556,2551,556,556,556,556,556,556,556,556,556,556,2271,556,556,556,556,556,426,426,0,426,0,410,426,449,0,0,0,0,0,0,0,0,534,556,534,556,534,534,556,534,367,0,0,395,0,0,0,0,0,350,0,0,367,0,0,395,0,408,0,490,490,0,490,490,490,490,490,490,490,490,516,516,516,516,449,449,449,449,524,449,449,525,449,516,530,516,516,516,530,516,516,516,516,532,550,573,550,573,550,550,573,550,597,573,573,573,573,573,573,573,597,597,597,550,597,597,597,597,597,597,597,573,573,611,616,597,616,622,1,12290,0,0,636,0,0,0,0,0,0,0,0,0,0,0,0,0,1567,1568,0,789,0,0,0,0,534,834,534,534,534,534,534,534,863,865,534,534,534,534,534,1790,1792,534,534,534,534,534,1341,0,556,556,0,580,580,580,983,987,580,580,580,580,580,580,1013,580,556,556,556,556,936,938,556,556,556,556,556,556,556,556,556,556,2829,556,556,2832,556,556,78114,1066,0,0,0,0,0,0,0,0,0,0,0,1083,0,0,0,0,0,1234,0,0,0,0,0,0,0,0,0,0,0,2050,0,0,0,0,1085,0,0,0,0,0,0,0,0,0,0,0,0,1098,0,0,0,0,0,1235,0,0,0,0,0,0,0,0,0,0,0,122880,0,0,0,0,0,0,1116,0,0,0,0,0,0,0,0,0,0,0,0,0,1581,1582,0,0,0,0,1085,1208,0,0,0,0,0,0,1215,0,0,0,0,0,0,347,348,349,0,0,0,0,0,0,0,0,282624,282624,282624,282624,282624,282624,282624,282624,282624,0,0,0,1220,0,0,0,0,0,0,0,0,0,0,1220,1229,534,534,534,1259,534,534,534,1263,534,534,1274,534,534,1278,534,534,534,534,534,534,3001,534,534,534,534,534,534,534,534,534,1327,534,534,534,534,534,534,534,1299,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2497,534,534,534,534,1341,901,556,556,556,556,556,556,556,1351,556,556,556,556,556,1423,556,556,556,1430,556,556,26009,1341,975,580,1355,556,556,1366,556,556,1370,556,556,556,556,556,556,556,556,556,2828,556,556,556,556,556,556,1462,580,580,580,580,580,580,580,580,580,580,580,580,580,580,580,3315,580,1479,580,580,580,1483,580,580,580,580,580,580,580,580,580,580,580,2877,580,580,580,580,0,1571,1572,0,0,0,0,0,0,0,0,0,0,0,0,0,1612,0,0,0,0,0,0,1603,0,0,0,0,0,0,0,0,0,0,0,364,364,364,0,696,0,1616,0,1618,0,0,0,1622,0,0,0,1626,0,0,0,1630,0,0,0,0,1572,0,0,0,0,0,0,0,0,0,0,0,364,364,364,695,0,534,534,534,1724,534,534,534,534,534,534,534,534,534,534,534,534,1782,1783,534,534,556,1837,556,556,556,556,556,556,556,556,556,556,556,556,556,556,1818,556,556,556,556,1889,556,556,556,556,26009,0,580,580,580,580,580,580,1976,580,580,580,580,580,1981,580,580,580,0,0,0,2031,0,2032,0,0,0,0,0,0,0,0,0,0,0,2200246,151552,2200246,0,0,2175,534,534,534,534,534,534,534,534,534,534,534,2186,534,534,534,534,534,534,1758,534,534,534,534,1764,534,534,534,534,0,0,556,556,556,556,2814,556,556,556,556,556,0,0,0,0,580,2301,580,580,580,580,580,1038,580,580,580,580,0,0,0,534,580,556,580,580,2394,2395,0,1544,0,1550,0,1556,0,1562,0,0,0,0,0,0,374,0,0,0,0,0,0,0,359,0,0,0,0,0,0,0,0,0,0,0,0,0,2052,0,0,2476,0,0,0,0,0,0,0,0,0,2482,0,0,0,0,0,0,0,69632,73728,0,0,0,345,344,65536,343,534,534,534,534,2530,534,534,534,534,534,534,534,534,534,534,534,1275,534,534,534,534,580,2661,580,580,580,580,580,580,580,580,580,580,580,580,580,580,3075,580,580,0,0,2722,0,0,0,0,0,0,0,0,0,0,0,0,0,1665,0,0,534,2797,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2511,534,556,556,2845,556,556,556,556,556,556,556,556,556,556,556,556,556,2259,556,556,0,0,2970,0,0,0,0,0,0,0,0,534,534,534,534,534,534,855,534,534,534,534,0,0,0,0,3122,3123,0,0,0,0,0,0,0,0,0,0,0,2424832,2433024,0,0,2457600,3149,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,1737,3172,534,534,534,534,534,534,534,534,556,556,556,556,556,556,556,2242,556,556,556,556,556,556,556,556,1406,556,556,556,556,556,556,556,580,580,580,3229,580,580,580,580,580,580,580,580,580,534,580,556,556,556,556,580,580,580,580,3426,580,580,580,580,580,580,580,2639,580,580,580,580,580,580,580,580,580,2344,580,580,580,580,580,580,534,3236,556,3238,580,3240,3241,0,0,0,0,3245,0,0,0,0,0,0,640,0,0,0,0,0,0,0,0,0,323,397,0,0,0,323,0,0,0,3258,0,0,0,0,0,0,0,0,3261,0,534,534,534,534,534,534,534,3154,3155,534,534,534,534,3159,3160,3263,534,534,534,3266,534,534,534,534,534,534,534,534,534,534,534,1330,534,534,534,534,580,580,3318,534,3319,556,3320,580,0,0,0,0,0,0,0,0,543,566,543,566,543,543,566,543,556,556,3543,556,3544,556,556,556,556,556,556,556,556,580,580,3551,580,3552,580,580,580,580,580,580,580,580,0,0,0,0,534,534,3536,534,3537,534,534,534,534,534,534,534,1730,534,534,534,534,534,534,534,534,534,2183,534,534,534,534,534,534,409,355,0,0,0,0,0,69632,73728,0,0,0,0,0,65536,0,0,0,0,638,0,0,641,642,0,0,0,0,0,0,0,0,1591,0,0,1594,0,0,0,0,466,477,466,0,0,466,0,0,0,0,0,0,0,0,517,517,521,521,521,521,466,466,466,466,466,466,466,471,466,521,517,521,521,517,521,521,521,521,533,551,574,551,574,551,551,574,551,598,574,574,574,574,574,574,574,598,598,598,551,598,598,598,598,598,598,598,574,574,612,617,598,617,623,1,12290,0,0,731,0,0,0,637,731,0,737,738,637,0,0,0,0,0,0,656,0,0,659,660,0,0,0,0,0,0,0,2754,0,0,0,0,0,0,0,0,0,2420,0,0,0,0,0,0,777,0,0,0,0,0,0,0,0,0,0,786,0,791,0,0,0,0,0,1575,0,0,0,0,0,0,0,0,0,0,303,303,0,0,0,0,0,0,0,0,791,0,0,0,0,0,0,791,0,0,0,0,0,0,672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2016,0,0,0,0,806,0,0,0,0,0,637,0,0,0,0,0,0,0,69632,73728,0,0,0,349,347,65536,0,0,0,0,777,0,0,0,0,0,0,0,777,777,0,637,0,0,0,786,0,791,0,777,0,806,0,0,0,658,0,777,791,829,0,534,835,534,534,534,534,854,858,864,534,869,556,556,927,931,937,556,942,556,556,556,556,556,959,556,556,556,556,556,1424,556,556,556,556,556,556,26009,1341,975,580,534,534,886,534,534,556,556,959,556,556,0,580,580,1033,580,580,580,580,1033,580,580,580,580,580,0,0,0,534,580,556,0,1086,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2449,0,0,0,0,1103,0,0,0,0,0,0,0,0,0,0,0,1113,0,0,0,1117,1118,0,0,0,0,0,0,0,0,0,0,0,364,364,208896,0,0,0,0,0,0,1179,0,1182,0,0,0,0,0,1187,0,0,0,0,0,0,2726,0,0,0,0,0,0,0,0,0,0,784,0,0,0,0,0,0,0,0,1205,0,0,1086,0,0,0,1211,0,1213,0,0,0,0,0,0,0,1638,0,0,0,0,0,0,0,0,0,1123,0,0,0,0,0,0,0,0,0,1221,0,0,0,0,0,0,0,0,0,0,1227,0,0,0,0,654,0,0,0,0,0,0,0,0,0,0,0,0,2964,2965,0,0,1230,1187,0,1211,1233,0,1236,0,0,0,0,0,1117,0,0,0,0,0,0,2739,0,0,0,0,2744,0,0,0,0,0,0,299,0,0,0,303,2424832,2433024,0,0,2457600,0,1245,0,0,0,0,0,1245,0,0,1136,1245,0,1252,534,534,534,534,534,534,3279,534,556,556,556,556,556,556,556,556,556,556,3514,556,556,556,580,534,534,1258,534,534,534,534,1264,534,534,534,534,534,534,534,534,534,3455,534,534,3457,556,556,556,534,534,1285,534,534,534,534,534,534,534,534,534,534,1296,534,534,534,534,534,534,3341,534,534,534,534,534,534,534,534,556,580,3607,3608,3609,534,556,580,534,556,580,0,0,0,0,0,0,333,0,0,333,0,0,333,0,0,0,534,534,1301,534,534,534,534,534,534,534,534,1308,534,534,534,1315,1317,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2149,534,1339,534,1341,901,1343,556,556,556,556,556,1350,556,556,556,556,556,556,2225,556,556,556,556,556,556,556,556,556,2244,556,556,556,556,2248,556,1356,556,556,556,556,556,556,556,556,556,556,1377,556,556,556,556,556,556,2241,556,2243,556,556,556,556,556,556,556,1425,556,556,556,556,556,26009,1341,975,580,556,556,556,556,1400,556,556,556,1407,1409,556,556,556,556,556,556,1386,556,556,556,556,556,556,556,1395,556,1480,580,580,580,580,1485,580,580,580,580,580,580,580,580,1492,580,580,580,580,2352,580,580,580,580,580,580,580,580,580,580,580,2628,580,580,580,580,580,580,1499,1501,580,580,580,580,580,580,580,580,580,580,580,580,2878,580,580,2881,1550,0,0,0,1556,0,0,0,1562,0,0,0,0,0,0,0,0,2957312,0,0,0,0,0,0,0,0,1150,0,0,0,0,0,0,0,0,1166,0,0,0,0,0,0,0,0,1179,0,0,0,0,0,0,0,0,0,0,0,0,2094,0,0,0,1573,1574,0,0,0,0,0,1580,0,0,0,0,0,0,0,69632,73728,0,0,0,373,0,65536,0,0,0,1601,0,0,0,0,0,0,0,0,0,0,0,0,0,1677,0,0,0,0,0,0,1619,0,0,0,0,0,0,0,1627,1628,0,0,0,0,0,1604,0,0,0,0,0,0,0,0,0,0,0,254407,0,0,0,0,0,0,0,0,1635,0,0,0,0,0,0,0,0,0,0,0,382,0,0,0,386,0,0,0,1685,0,0,0,0,0,1689,0,0,1692,0,0,0,0,0,0,3143,0,0,0,0,0,0,0,0,0,0,2756,0,0,2759,0,0,0,0,0,0,1689,0,0,0,0,0,0,0,0,0,0,1705,0,1707,1681,534,534,534,534,534,534,534,534,534,534,534,1719,534,534,534,534,534,1791,534,534,534,534,534,534,1341,0,556,556,556,556,556,2295,0,0,0,580,580,580,580,580,580,580,2666,580,580,580,580,580,580,580,580,580,1446,580,580,580,580,580,580,534,534,534,1725,534,534,534,534,534,534,534,534,534,534,1736,534,534,534,534,534,2179,534,534,534,534,534,534,534,534,534,534,2143,534,2145,534,534,534,534,534,534,1740,534,534,534,534,534,534,534,534,534,534,1751,534,534,534,534,534,2207,0,0,0,556,556,556,556,556,556,556,1403,556,556,556,556,556,556,556,556,1408,556,556,556,556,556,556,556,534,534,1756,534,534,534,534,534,534,534,534,534,534,534,534,534,2172,534,534,2002,580,580,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,696,0,0,2019,2020,0,0,0,0,0,0,0,0,0,0,0,0,662,0,0,0,2055,2056,0,0,2058,2059,0,0,0,0,0,0,0,0,0,0,0,2617344,0,0,0,0,2081,0,0,0,0,2084,2085,0,0,0,0,0,2091,0,0,0,0,0,0,3259,0,0,0,0,0,0,534,534,534,534,534,849,534,534,534,534,534,534,534,2152,534,534,534,534,534,534,534,534,534,534,2161,534,534,534,534,534,534,3452,534,3454,534,534,3456,534,556,556,556,556,3509,556,556,556,556,556,556,556,556,556,580,580,580,580,580,580,0,0,0,3595,534,534,2164,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2174,534,534,534,2191,534,534,534,2194,534,534,534,534,2199,534,534,534,534,534,534,1759,534,534,534,534,534,534,534,534,534,1732,534,534,534,534,534,534,556,2237,556,556,556,556,556,556,556,556,556,556,2246,556,556,2249,556,556,2277,556,556,556,556,2281,556,556,556,556,2286,556,556,556,556,556,1808,556,556,556,556,556,556,556,556,556,556,2608,556,556,556,556,556,580,2324,580,580,580,580,580,580,580,580,580,580,2333,580,580,2336,580,580,2364,580,580,580,580,2368,580,580,580,580,2373,580,580,580,580,580,2665,580,580,580,580,580,580,580,580,580,580,1979,580,580,580,580,580,2398,0,0,0,0,0,0,0,0,0,0,2408,0,0,0,0,0,0,687,0,0,0,770,0,0,0,0,789,0,0,0,0,0,0,0,0,0,0,176128,176128,176128,176128,176128,176128,176128,176128,534,534,2488,534,534,534,534,534,534,534,534,534,534,2496,534,534,534,534,534,882,534,534,534,534,534,556,556,556,556,556,3411,556,556,556,3415,556,556,534,534,2514,534,534,2516,534,2517,534,534,534,534,534,534,534,2524,534,534,2528,534,534,534,534,534,534,534,534,534,534,534,534,2539,556,556,2560,556,556,556,556,556,556,556,556,556,556,556,556,556,3472,580,580,556,556,556,2575,556,556,556,2578,556,556,2580,556,2581,556,556,556,556,556,1827,556,556,556,556,556,556,556,556,556,556,1814,556,556,556,556,1820,580,2646,580,2647,580,580,580,580,580,580,580,580,2655,580,580,2659,0,2696,2697,0,0,2700,2701,0,0,0,0,0,0,0,0,0,0,3178496,2670592,0,2744320,0,0,2772,534,2775,534,534,534,534,2780,534,534,534,2783,534,534,534,534,534,534,534,3002,3003,534,534,534,534,534,534,534,534,2494,534,534,534,534,534,534,534,534,1744,534,534,534,1748,534,534,1753,2808,534,534,534,0,0,556,556,556,556,556,556,556,556,556,556,3358,556,556,556,556,556,2819,556,2822,556,556,556,556,2827,556,556,556,2830,556,556,556,556,556,556,2255,556,556,556,556,556,556,556,556,556,2228,556,2230,556,556,556,556,556,556,2857,556,556,556,0,0,580,580,580,580,580,580,580,580,2652,580,580,580,580,580,580,580,580,580,2868,580,2871,580,580,580,580,2876,580,580,580,2879,580,580,580,580,1034,580,580,580,580,580,0,0,0,534,580,556,580,580,580,580,2906,580,580,580,534,580,556,534,534,556,556,580,580,0,0,3112,0,3114,0,0,0,3118,0,0,534,534,534,534,3013,534,534,534,534,534,556,556,556,3021,556,556,556,556,556,2266,2267,556,556,556,556,556,556,2274,556,556,0,580,580,580,580,580,580,994,580,580,1008,580,580,580,580,580,2341,580,580,580,580,580,580,580,580,580,580,0,0,733,534,580,556,0,0,3121,0,0,0,0,0,0,0,0,0,0,0,0,0,1693,0,0,534,3173,534,534,534,534,534,534,534,556,556,556,556,556,556,556,2839,556,556,556,556,556,556,556,556,1811,556,556,556,556,556,556,556,556,556,3183,556,556,556,556,556,556,556,556,556,556,556,556,556,3033,556,556,556,556,3193,556,556,556,556,556,556,3199,556,3201,556,556,556,556,556,0,0,0,0,580,580,580,2303,580,2305,580,580,580,3228,580,3230,580,580,580,580,580,580,580,580,534,580,556,556,556,556,580,3423,580,3425,580,580,580,580,580,580,580,580,580,2888,580,580,580,580,580,580,0,0,0,3248,0,0,0,0,0,0,0,3132,0,0,0,0,0,0,0,0,0,3334,534,534,0,3257,0,0,0,0,0,0,0,0,0,0,0,534,534,534,534,2982,534,534,3264,534,534,534,3268,534,534,534,534,534,534,534,534,534,1328,534,534,534,534,534,534,534,534,534,534,3277,534,534,534,556,556,556,556,556,3282,556,556,556,556,556,2294,0,0,0,580,580,580,580,580,580,580,580,3482,580,580,3484,580,0,0,0,556,3286,556,556,556,556,556,556,556,556,556,556,556,556,556,556,1883,556,3295,556,556,556,556,580,580,580,580,580,3301,580,580,580,3305,580,580,580,580,2380,534,580,556,534,534,534,534,556,556,556,556,580,580,580,580,0,534,3601,556,3602,580,3603,3489,0,0,0,534,534,534,3496,534,534,534,534,534,534,534,534,1265,534,534,534,534,534,534,534,3504,556,556,556,3508,556,556,556,556,556,556,556,556,3516,556,580,580,580,580,2624,580,580,580,580,580,580,580,580,580,580,580,1475,580,580,580,580,580,580,3521,580,580,580,580,580,580,580,580,3529,580,0,0,0,0,0,0,122880,122880,122880,122880,122880,0,122880,0,2105631,12290,0,3532,0,3534,534,534,534,534,534,534,534,534,534,3540,3541,534,534,534,534,534,2208,0,0,0,556,556,556,556,556,556,556,1387,556,556,556,1391,556,556,556,556,556,357,358,0,0,0,0,0,0,0,364,0,292,0,0,0,0,0,0,688,0,0,0,0,364,364,364,0,0,0,0,0,391,0,0,0,0,0,0,0,0,0,0,0,0,722,0,735,654,467,467,481,0,0,481,358,358,358,503,358,358,358,358,467,467,599,575,575,575,575,575,575,575,599,599,599,552,599,599,599,599,599,599,599,575,575,552,575,599,575,599,1,12290,556,556,928,556,556,556,556,556,556,556,556,556,556,964,556,556,556,556,556,2294,2615,0,0,0,0,580,580,580,580,580,534,556,580,0,0,0,0,0,0,0,0,2924,0,0,0,0,0,0,534,534,534,891,534,556,556,556,964,556,0,580,580,580,1038,580,580,580,580,2636,580,2638,580,580,580,580,2642,580,580,580,580,0,0,0,3440,0,0,0,3443,0,0,534,534,78114,1066,0,0,0,0,0,0,0,0,0,0,0,0,1084,0,0,0,0,670,0,0,0,0,0,0,0,0,0,0,0,0,2432,0,0,0,1184,0,0,0,0,0,0,0,0,0,0,0,0,534,534,534,2132,2133,534,534,1340,1341,901,556,556,556,556,556,556,556,556,556,1353,556,556,556,556,580,3590,580,580,580,580,0,0,0,534,534,534,534,534,534,1713,534,534,534,534,534,534,534,2140,534,534,534,534,534,534,534,534,534,2990,534,534,534,534,534,534,556,556,1362,556,556,556,556,556,556,556,556,556,556,556,556,556,3047,556,556,556,0,1551,0,0,0,1557,0,0,0,1563,0,0,0,0,0,0,0,1650,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172032,0,1656,0,0,0,0,0,0,0,0,1662,0,1664,0,0,0,0,0,0,172032,172032,172032,172032,172032,172032,172032,172032,1,12290,534,534,1771,534,534,534,534,534,534,534,534,534,534,534,534,534,2523,534,534,556,556,1854,556,556,556,556,556,556,556,556,556,556,556,1866,556,556,556,556,932,556,556,556,556,556,556,556,556,556,556,556,1815,556,556,556,556,556,1887,556,556,556,556,556,556,26009,0,580,580,580,580,580,580,2312,580,580,580,580,580,580,580,580,580,1488,580,580,580,580,580,580,580,580,580,1924,580,580,580,580,580,580,580,580,580,580,580,580,3073,580,580,580,580,580,1937,580,580,580,580,580,580,580,580,580,580,580,1950,580,580,580,580,2648,580,580,580,580,580,580,580,580,2656,580,580,580,580,580,3231,580,580,580,580,580,580,580,534,580,556,580,580,580,1973,580,580,580,580,580,580,580,580,580,1983,580,580,580,580,1484,580,580,580,580,580,580,580,580,580,580,580,3222,580,580,580,580,0,0,0,2043,0,0,0,0,0,0,0,0,0,0,0,0,733,1171,0,0,534,2151,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2795,534,2236,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,2600,2323,580,580,580,580,580,580,580,580,580,580,580,580,580,580,580,3089,580,580,580,580,2622,580,580,580,580,580,580,580,580,580,580,580,580,580,3224,580,580,2695,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2120,2734,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2719,534,2774,534,2776,534,534,534,534,534,534,534,534,534,534,534,534,2160,534,534,534,556,2821,556,2823,556,556,556,556,556,556,556,556,556,556,556,556,3190,556,556,556,580,580,580,2870,580,2872,580,580,580,580,580,580,580,580,580,580,2654,580,580,580,580,580,0,0,0,0,2933,0,0,0,0,0,0,0,0,0,0,0,534,534,534,2981,534,556,556,556,556,3289,556,556,556,556,556,556,556,556,556,556,556,3202,556,556,556,556,580,3308,580,580,580,580,580,580,580,580,580,580,580,580,580,580,3314,580,580,556,556,3589,556,580,580,580,580,3593,580,0,0,0,534,534,534,3152,534,534,534,534,534,534,534,3157,534,534,534,0,0,359,0,0,0,0,0,0,364,0,292,0,0,0,0,0,0,702,0,0,0,0,0,0,0,0,0,0,2600960,0,0,2768896,2777088,2781184,0,0,369,0,0,369,0,0,0,0,0,0,0,0,0,0,0,0,0,2040,2041,0,600,576,576,576,576,576,576,576,600,600,600,553,600,600,600,600,600,600,600,576,576,553,576,600,576,600,1,12290,556,923,556,556,556,556,556,556,556,556,556,556,556,556,556,556,2234,556,556,556,556,556,1367,556,556,556,556,556,556,556,556,556,556,556,3547,3548,556,556,580,580,580,580,580,1500,580,580,580,580,580,580,580,580,580,580,580,580,580,3102,3103,3104,534,1646,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2748,0,0,1684,0,0,0,0,0,0,0,0,0,0,0,0,0,2065,0,0,580,580,580,1938,580,580,580,580,580,580,580,580,580,580,580,580,3223,580,580,580,0,0,0,2723,0,0,0,0,0,0,0,0,0,0,0,0,734,0,0,0,2942,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2760,0,0,0,0,3249,0,3250,0,0,0,0,3132,0,0,0,0,0,0,0,3333,0,534,534,534,0,0,0,360,361,362,363,0,0,364,0,292,0,0,0,0,0,0,718,0,0,0,0,0,0,0,0,0,0,2445,0,0,0,0,0,0,361,0,360,0,0,0,69632,73728,0,0,0,0,427,65536,0,0,0,0,685,534,534,838,842,845,534,853,534,534,534,868,427,427,0,427,0,361,427,450,0,0,0,0,0,0,0,0,690,691,0,364,364,364,0,0,0,0,0,491,491,0,498,498,498,498,504,505,498,498,518,518,518,518,450,450,450,450,450,450,450,450,450,518,518,518,518,518,518,518,518,554,577,554,577,554,554,577,554,601,577,577,577,577,577,577,577,601,601,601,554,601,601,601,601,601,601,601,577,577,613,618,601,618,624,1,12290,534,534,887,534,534,556,556,960,556,556,0,580,580,1034,580,580,580,580,1502,580,580,580,580,580,580,580,580,580,580,580,2332,580,580,580,580,534,2513,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2806,534,534,534,534,2542,534,534,534,534,534,534,534,534,534,534,0,0,0,0,556,556,556,2216,556,2218,556,580,2674,580,580,580,580,580,580,580,580,580,580,534,580,556,534,534,534,534,534,2491,534,534,534,534,2495,534,534,534,534,534,0,0,0,0,556,556,2215,556,556,556,556,602,578,578,578,578,578,578,578,602,602,602,555,602,602,602,602,602,602,602,578,578,555,578,602,578,602,1,12290,0,0,698,0,0,0,0,0,0,0,0,0,0,0,0,0,2410,0,0,728,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2952,0,0,0,728,0,784,0,0,0,0,0,0,0,0,784,0,0,0,0,686,0,0,0,0,0,0,364,364,364,0,0,0,0,0,671,0,0,0,0,0,0,0,0,0,0,0,3145,3146,0,0,0,556,924,556,556,556,556,556,556,556,556,556,556,556,556,556,556,2260,2261,0,0,1176,0,0,0,0,0,0,0,0,0,0,0,0,0,2433,0,0,534,1300,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2548,0,0,1418,556,556,556,556,556,556,556,556,556,556,556,26009,1341,975,580,580,580,580,2664,580,580,580,580,2668,580,580,580,580,580,580,1505,580,580,1509,580,580,580,580,580,1515,0,0,1553,0,0,0,1559,0,0,0,0,0,0,0,0,0,299,0,0,0,0,0,0,0,0,0,2082,0,0,0,0,0,0,0,0,0,0,0,0,736,0,0,0,0,0,0,0,534,534,534,534,2167,534,534,534,534,534,534,534,534,534,534,534,1733,534,534,534,534,556,556,556,2252,556,556,556,556,556,556,556,556,556,556,556,556,3471,580,580,580,580,580,580,2339,580,580,580,580,580,580,580,580,580,580,580,580,3485,0,0,3488,2499,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2202,0,0,0,0,736,534,534,534,534,534,534,534,534,534,534,534,1747,534,534,534,534,1051,534,534,892,534,1056,556,556,965,556,0,1061,580,580,1039,580,580,580,580,2885,580,580,580,580,580,580,580,580,580,580,580,2680,534,580,556,534,556,556,1420,556,556,556,556,556,556,556,556,556,26009,1341,975,580,580,580,580,2894,580,580,580,580,580,580,580,580,580,580,580,2900,580,580,580,580,534,534,534,534,1726,534,534,534,534,534,534,534,534,534,534,534,2144,534,534,2148,534,1821,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,2843,580,580,1954,580,580,580,580,580,580,580,580,580,580,580,580,580,3313,580,580,580,580,556,2586,556,556,556,556,556,556,556,556,556,556,556,556,556,556,2288,556,556,556,556,556,2614,0,0,0,0,0,0,580,580,580,580,580,1039,580,580,580,580,0,0,0,534,580,556,0,0,0,0,2957,0,0,0,0,0,0,0,0,0,0,0,534,2979,534,534,534,2983,534,534,534,534,534,534,534,534,534,534,534,534,534,534,534,2498,3065,580,580,580,580,580,580,580,580,580,580,580,580,580,580,580,2889,580,580,580,580,580,3192,556,556,556,556,556,556,556,556,556,556,556,556,556,556,556,3035,1134592,0,1134592,0,0,0,1134592,1135007,1135007,0,0,0,0,0,1135007,0,0,0,0,700,701,0,0,0,0,0,707,0,0,0,711,0,1134592,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2718,0,0,1134592,1134592,0,0,0,0,1135196,1135196,1135196,1135196,1134592,1135196,1135196,1135196,1135196,1135196,1135196,0,1134592,1134592,1134592,1134592,1135196,1134592,1135196,1,12290,2125824,3117056,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,0,0,0,2125824,2125824,2125824,2125824,3137536,2940928,2940928,2940928,0,0,0,0,0,2748416,2879488,0,0,0,0,0,2113,0,0,0,2113,0,0,2118,2119,0,0,0,0,0,1180,0,0,0,1184,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2474,0,1147348,1147348,1147348,451,451,1147348,451,451,451,451,451,451,451,451,1147399,1147399,1147399,1147399,1147399,1147399,1147399,1147399,1147399,1147399,1147399,1147399,1147399,1147399,1147399,1147399,0,0,0,0,0,0,0,0,768,0,0,0,0,0,0,0,451,0,0,0,0,0,1147348,1147348,1147348,1147399,1147399,1147348,1147399,1147399,1,12290,3,0,0,0,0,0,253952,0,0,0,253952,0,0,0,0,0,0,0,0,0,0,0,0,0,2950,0,0,0,0,1159168,0,1159168,1159168,0,1159168,1159168,0,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,0,0,0,0,0,0,0,0,781,0,0,0,0,0,792,0,0,1159168,0,0,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1159168,1,12290,3,0,0,0,0,249856,0,0,0,249856,0,0,0,0,0,0,0,69632,73728,163840,0,0,0,0,65536,0,2125824,3117056,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,0,0,974,2125824,2125824,2125824,2125824,3149824,2125824,2428928,2437120,2125824,2486272,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2125824,2625536,2125824,2125824,2125824,2125824,2125824,2125824,2699264,2125824,2715648,2125824,2723840,2125824,0,106496,106496,0,106496,106496,106496,106496,106496,106496,106496,106496,106496,106496,106496,106496,106496,106496,106496,106496,0,0,106496,0,0,106496,106496,106496,106496,106496,106496,106496,106496,106496,0,0,0,0,0,0,0,0,0,0,0,2183168,0,0,0,0,0,0,0,0,2134016,0,0,0,0,0,0,0,0,0,0,0,695,0,0,0,0,0,3108864,3198976,0,0,3043328,0,3149824,2936832,0,2760704,0,0,0,0,0,0,0,69632,73728,0,369,369,0,0,65536,369],r.EXPECTED=[127,143,342,950,172,201,188,217,769,963,247,263,279,295,311,327,1395,373,1083,374,374,374,374,374,374,374,374,374,419,391,407,466,435,589,1682,909,574,156,1220,451,495,511,527,543,559,634,1096,678,694,755,649,785,801,817,833,849,865,881,897,937,979,995,1023,1039,1055,479,1112,1128,1473,1144,1160,1206,1236,357,662,1266,709,1282,1292,1308,1324,1339,1355,1411,1427,1443,618,1459,724,1489,604,1518,1528,231,1070,1544,1560,1576,1592,1622,1250,1638,1654,1606,921,1670,739,1698,1714,1820,1190,1730,1746,1502,1758,1774,1790,1806,1175,1850,1860,1836,1009,1370,1876,1385,375,1892,1896,1903,1903,1903,1898,1902,1903,1910,1907,1914,1918,1922,1926,1929,1933,1937,1941,1945,4040,4040,4040,4106,4040,4040,2020,2279,4040,1949,4040,4040,4040,2429,2379,4040,4040,4040,4040,2438,4040,4040,3112,2651,3443,2444,1955,1984,1994,1998,4040,4040,4040,4040,4040,2017,2042,4040,4040,4040,2024,2285,2030,2034,4040,4040,4040,4040,4040,2041,4040,4040,3002,2285,2285,2285,2285,2285,2111,1988,1988,1988,1988,1988,1990,1955,1955,1955,1955,1955,2101,3099,1988,1988,1988,1988,1988,2120,1955,1955,1955,1955,1955,2046,2055,4040,4040,2212,2349,4040,4040,4040,4137,3441,4040,4040,4040,4040,3531,4040,2745,1988,1988,1988,2066,1955,1955,1955,1957,2073,4040,4040,2473,3002,2285,2285,2026,1988,1988,3101,1955,1955,1956,2072,4040,2471,4040,2284,2285,3098,1988,1988,2078,1955,2068,2129,2446,3554,2285,2112,1988,2120,1955,2083,2281,2286,1988,2067,2089,2095,2113,2049,2107,3097,2114,2079,3096,3100,2079,3096,2114,2051,2118,2126,2135,2139,2143,2156,2160,2170,2170,2170,2163,2167,2170,2173,2177,2181,2185,2189,2193,2197,2201,2205,2209,2216,4040,4040,4040,2131,4040,4040,4040,2220,4040,2226,4040,2283,2287,1988,1954,2122,2098,1961,4040,4040,4040,1970,4040,2474,1980,4040,2321,3139,4040,2440,3145,4427,2277,3219,2796,3151,3505,3155,4040,3263,3161,2906,4040,4040,4040,4040,4040,4040,4040,4040,4040,4040,4040,4040,4040,4040,4040,4040,4041,2255,2259,2262,2266,2270,2274,3465,2291,4040,4040,4040,4040,3213,2296,2312,2303,2396,2240,2243,2309,2316,2320,2649,4006,4040,2726,2326,3670,4040,4040,4040,4040,2231,3466,4040,4040,4040,3429,2237,4040,2618,3123,2249,2253,3877,2348,4040,4040,4013,2355,4040,2359,4040,4040,4040,4040,3173,2321,2227,2367,3192,4040,4040,2459,4040,4040,3192,4040,4040,4348,2989,2882,2918,3129,2349,4040,3014,2311,2670,2331,3577,4417,2336,2379,4040,4040,2549,2340,4040,4040,4040,2984,4040,4040,4040,4040,3591,2979,4040,4040,4040,3390,4180,4419,3131,4040,3190,3194,4040,2950,2989,2918,3210,4040,2469,2788,3212,4040,4005,3283,3279,4282,4040,3281,4226,4226,2601,4283,3283,3283,1966,3282,3279,1966,4227,3283,4191,2462,2478,4040,4040,4040,4040,2588,2522,4040,4040,4040,2007,2858,2484,3025,2492,2495,2498,2502,2503,2507,2511,2515,4040,2521,4040,4040,2526,4040,3968,2913,2541,2545,3867,2553,2563,2574,2578,4040,3387,3385,4040,2582,4040,3458,2587,4040,3120,4040,4040,4040,3174,2074,2409,2537,2432,4040,4040,4040,2536,2416,4040,2373,2377,4040,4040,4040,4040,4255,2378,4040,4040,4040,4040,4256,2379,4040,2838,3503,4040,4040,4040,4040,2839,3504,3974,3509,4040,4040,3730,3536,4040,3349,2906,4040,3326,2556,3181,3383,3394,3403,4040,4397,4040,3553,3551,3545,4040,2668,2912,3478,3399,2548,2592,3456,3471,2600,4040,4040,4040,4242,4040,3147,4040,3818,4040,4037,3923,3990,3561,4003,4040,2655,4039,4040,4040,4040,3167,4040,4040,4040,3331,3171,4040,4040,4040,4040,3632,3179,4040,2638,2611,2615,4040,2388,2622,4040,4040,4040,4040,2389,2349,4040,4040,4040,2397,2390,4040,4040,4040,3141,4040,4040,3846,4040,4040,2630,2517,4070,2637,2412,2989,4040,4040,4040,4040,2344,4040,4040,4040,4040,4040,3269,2989,2380,3207,4040,3463,4040,4040,4040,3861,3470,4040,4040,4040,3475,4040,3482,4040,4040,2631,3905,4040,4040,4040,4040,2631,3905,2424,3909,4040,2152,2595,3785,3915,2631,4365,2642,4040,4040,4040,4040,4085,2646,4040,4040,4040,4040,4085,2646,4040,4040,2464,4040,4040,2285,2285,2285,2285,2025,1988,1988,1988,1988,1988,2120,3610,3833,4040,4040,4040,4365,2656,4040,4040,4040,2660,2665,3980,2516,3196,2674,2678,3830,2685,4040,4040,3830,2685,4040,4040,2299,2690,4040,3184,3458,2004,3969,3197,3312,3251,2696,4040,2037,2690,4040,3251,2696,4040,2702,2709,3195,4e3,2713,2717,4040,2715,4040,2679,2723,4040,2730,2734,2739,3644,4040,2705,2583,3646,2583,2749,2753,2704,3203,2944,2566,2570,2956,2945,3843,2568,2568,2761,3815,3641,2765,3607,2769,2773,2775,2779,2783,2787,4040,4040,4040,3316,4040,4040,3564,2792,3570,2800,2804,2808,2810,2814,2818,2821,2823,2824,4040,4040,3315,4040,3428,2828,3896,3248,2833,2843,2434,2453,3918,2849,2907,2853,4040,2150,2148,4040,4040,4040,4040,2405,2349,4040,4040,4040,4040,2405,2349,4040,4040,4040,4040,2362,3442,4040,4040,4040,4040,2363,3773,3950,4040,4040,4040,2857,4040,2559,2968,3853,2862,2937,4379,2869,3988,3295,4040,2873,4040,4040,4040,3554,2285,2285,2285,2285,1987,1988,1988,1988,1989,1955,1955,1955,1955,1956,2103,4040,4040,4040,2472,4040,2109,2285,2285,2285,2113,3527,2877,4040,4040,4040,2886,2890,4040,4040,4040,4040,2980,4040,3336,2829,3897,2895,2899,4040,2911,2917,4040,4040,2922,4040,4040,4040,4040,2844,2923,4040,4040,2626,4289,4040,3453,3038,4353,4386,3183,4040,4040,4041,4370,4040,4040,2845,2924,4040,4040,4040,4040,4040,2990,4040,2558,2928,4420,2935,4040,2943,2949,4040,2970,2954,4040,4040,4040,4040,3855,2960,4040,4040,4040,4040,3855,2960,4040,4040,4040,4040,3389,4040,2966,3897,2974,2327,4275,4040,3590,2978,4040,3535,3379,3488,3521,3230,4040,4040,3540,4040,4040,4040,3439,4040,4040,4040,4364,4040,4040,4040,4040,4040,4040,4040,4040,4378,4040,4040,4040,2605,4040,4040,2245,4040,4040,3459,4040,4040,4038,3923,4040,2013,3616,2411,4040,3631,2988,4040,4040,3631,2988,4040,4040,4040,2994,4040,4040,2350,4262,2381,3617,4040,4040,4346,4040,4040,3e3,4040,4040,4346,4040,2350,4208,3615,2881,4040,2795,3174,3112,3180,3024,3111,3180,3180,3933,3014,3113,3113,3006,3181,3014,3013,3014,3175,4047,3018,3029,3053,4040,4040,4040,4040,3634,4040,4221,4040,3650,4040,4040,4040,4040,2631,3651,4040,4040,4040,4040,3648,4287,4291,4040,4010,4017,4303,4022,2632,3182,4040,4032,4040,1950,4012,4040,2865,4045,4051,3043,3047,4064,3061,3065,3069,3073,3077,3081,3105,3084,4040,4040,3633,4040,4040,3443,2444,4040,4040,4040,2450,4040,4040,4040,4349,4040,4040,3014,3276,2487,2961,2691,4276,3109,1976,3117,3127,3289,3135,3305,4040,3324,3322,4040,4040,3734,3779,3739,3744,3969,4040,3748,3754,3761,3943,3887,3765,4057,4040,2488,2962,2692,3163,3224,3188,3412,4040,4040,2085,3201,4040,4040,4040,4040,2343,3217,3223,3228,4040,4040,4040,3234,4040,4040,4040,4040,4040,3238,4040,4040,4040,4040,3422,4040,2529,2686,4354,3245,4040,4040,4040,4342,4040,4040,4040,4040,1972,4040,4040,4040,4040,4040,3255,4040,4040,4040,3423,3952,2686,4355,3261,4040,4040,3267,4040,4040,4040,1974,4040,4040,4040,3273,4040,4220,3981,2680,4356,3895,4040,3287,4040,4040,3293,4040,4040,2062,4040,4220,3953,3299,2146,4040,3303,4040,2607,4040,4040,2061,4040,4248,3309,3894,3498,4040,4360,4040,4040,4040,4369,4040,4374,3056,4383,3622,4040,4040,4390,4040,4040,4424,2742,4040,2633,4040,3056,4040,3039,3157,4040,4040,4040,4040,4040,4040,4040,2455,4325,4040,4040,4040,4040,4040,4040,4040,3320,4040,3330,3911,3335,3629,3588,4213,3943,3587,4213,4213,4040,3341,3589,3589,3628,4214,3341,3340,3341,3630,4040,4040,4040,4040,4040,4040,4040,4040,3836,2349,3347,4040,3354,3001,4080,4404,3358,3362,3366,3369,3373,3373,3377,4040,4040,3835,4091,3410,4040,4040,3416,4040,4040,3420,3427,4040,3433,4040,4331,3447,4040,4040,3797,4040,3795,4040,4040,4345,4040,2350,1964,4040,2879,4040,3397,4040,2904,4040,3350,3488,4040,3486,2535,3492,3496,4040,4040,4040,3502,4040,4040,4040,4127,4028,2010,4131,4141,4145,4149,4153,4157,4161,4165,4169,4173,4134,4377,4293,2534,3516,4040,4040,4040,2839,3504,4040,4040,4040,4040,2931,3442,4040,3450,4040,2902,4040,3799,4363,3520,4196,3525,3406,2349,2757,2305,2996,4393,4347,3544,4040,3549,4040,4040,3549,4040,4040,3558,2756,2305,4077,4395,3960,4040,3568,4040,3823,2349,4040,3997,3750,3574,3884,3961,4269,4040,4270,4040,3581,3944,3585,3595,3931,3600,2001,3930,3604,3604,4211,3614,3932,3621,3626,3662,3638,3655,3656,3660,3667,3674,3678,3682,3685,4040,4040,4040,3840,2596,3740,3850,2668,2332,3343,4040,3859,4040,4040,4040,2233,3865,2891,3735,2465,2351,3690,3698,3874,3702,3705,3709,3713,3717,3721,3725,3729,4040,2423,2421,3241,3772,4040,4040,2939,3777,3783,3789,3793,4136,2698,3342,2633,2425,3803,4040,4040,3808,2349,4040,4040,4186,3812,4040,4040,4040,3009,3822,3827,4040,3871,2532,4318,3881,4040,3891,3773,4040,4040,4040,4040,3901,4040,4040,4040,4040,4040,2385,4040,4040,4040,4040,3014,4040,2394,4040,2401,2379,4035,3922,4040,4040,2292,3927,4040,4040,4040,4040,3937,4040,4040,4040,4040,2091,3941,3948,4040,3957,3757,3966,2835,3112,4040,4040,2222,3979,4040,4040,2719,3973,2632,3183,3021,4040,4055,4040,4061,2419,4040,3023,4068,4074,4084,4112,4089,4095,3596,4100,4308,4099,4104,4110,4099,4113,4119,3257,4117,4123,4040,4040,4040,4040,4177,4184,2836,3686,4190,3693,4195,4200,4410,4205,4218,4040,3090,2735,4225,3093,4231,4040,4040,4040,3631,4235,2661,4040,2681,4429,2369,4040,4239,4040,4040,4040,4040,3804,4246,4040,4040,4040,4252,4040,4040,4040,2631,4260,4266,4040,4040,4040,4025,4185,2837,2686,2480,4274,4040,4280,4040,4040,4040,4040,4201,3978,4018,4303,3768,4040,3050,4040,4040,3985,4040,4040,3994,4040,4322,4385,4329,4040,4040,4040,4040,4335,4040,4040,4040,4040,3663,4339,4040,4040,4297,4040,3057,3087,4301,3962,3032,4040,4040,4040,4040,2624,4307,4040,4040,4040,4040,2624,4312,4315,4040,2322,3436,2837,2058,4040,4040,3035,4040,4401,4408,3694,4040,4040,3512,4040,2631,4414,4040,3511,4558,4433,6024,6027,4439,4466,4468,4468,4446,4455,4467,4468,4468,4468,4468,4468,4468,4473,4468,4468,4463,4457,4459,4479,4477,4483,4468,4469,4493,4496,4506,4510,4524,4519,4511,4500,4502,4502,4518,4519,4498,4515,4523,4528,4532,4536,4539,4547,4546,4543,4551,4554,4556,4566,5097,4574,6086,5003,5101,5101,5101,4593,4599,4602,4602,4602,4602,4608,4640,4568,4622,4628,5101,4434,5101,5099,5101,6713,5101,6256,5101,5101,4584,5992,5101,5101,4729,5101,5473,6277,5101,5007,4602,5693,4609,5696,5699,5699,5699,5699,4601,4602,5699,4602,4619,4621,4623,4627,6087,5101,4434,6165,6164,5101,5101,6380,6242,5096,5101,4576,5101,6463,5101,5101,5635,4488,5366,6275,5101,4581,5101,4590,5411,5123,5123,5123,5697,5699,4603,4621,4621,4622,4627,4627,4628,5101,4583,5448,6513,5474,5101,5008,5101,5101,4602,4632,5123,5699,4602,4602,4602,5704,5121,4602,4621,4627,5101,4583,6563,5101,4584,6017,5101,5101,5699,5701,4602,4602,4602,4632,4640,5705,5101,5101,5101,4734,5700,4602,4602,4602,5705,4643,5701,5101,5101,4824,5651,4602,4650,5101,5101,4824,6512,5010,5695,5123,5123,5698,5690,4602,4608,5696,5700,5703,5101,4602,5101,5101,5121,5123,5123,5123,5699,5699,5699,5702,5123,5698,5699,5702,4602,4602,5704,4607,4602,5705,5123,5697,5704,5101,5101,4816,4822,5699,4602,5704,5695,5698,5702,5694,5701,4651,4652,4650,5101,4592,5101,5101,5815,5567,5101,5101,5106,6519,6761,6550,6560,4662,4695,4656,4660,4693,4666,4673,4670,4680,4684,4691,4693,4693,4693,4693,4694,4676,4699,4693,4703,4708,4714,4704,4726,4740,4744,4687,4751,4753,4748,4787,4789,4789,4791,4757,4759,4761,4763,4776,4776,4770,4767,4774,4717,4675,4710,4780,4784,4795,4797,4801,4805,4809,5101,4592,6198,6202,4990,5007,5230,6461,5101,6373,5101,5101,4824,6698,4831,5101,5101,5101,4736,5108,5108,5101,5101,4826,6485,5490,5979,4838,5101,4720,4985,5101,4720,5101,5101,4853,5311,4857,5333,4876,4902,4906,4906,4906,4906,4908,4915,4917,4912,4921,4925,4928,4931,4934,4939,4938,4943,4944,4959,4949,4948,4953,4956,4963,5101,5107,5101,4892,5101,5007,5101,5101,5695,5123,5123,5123,5123,5696,5699,5988,5101,5101,5101,4825,5300,5101,5608,5101,4811,5449,6426,4969,5101,5101,4988,6219,5101,5018,4987,5101,5101,4860,5101,5101,4995,5015,5101,6412,5034,5101,5101,5101,4893,6751,6138,5101,5101,5101,4894,6729,5101,5101,5101,4965,5055,5068,5081,5086,5091,5076,5095,5101,4824,5933,5929,5376,5087,4434,5101,5101,5101,4979,5008,6409,5996,5101,5999,5151,5987,5376,5101,4826,6502,6738,6204,5101,6730,5101,5101,4891,5101,4570,5101,5115,5127,5074,4442,5096,5101,5101,5101,4975,5538,5411,5986,5281,5101,4840,5628,5355,5382,4434,4736,5101,4973,5101,5101,5101,4840,5687,5132,5075,5140,5890,5072,5076,5141,6462,4888,5101,5101,4895,5101,5343,5073,6582,4451,5101,4894,5101,5101,6416,5101,5101,5101,6191,5101,5415,5892,5074,6583,5096,5101,5101,4898,5999,5411,5280,5101,5101,4974,4978,5134,5157,5101,5101,5007,5101,5132,5075,5159,5101,4897,5101,5871,4980,5101,5949,5135,5159,5101,4976,5101,5101,5010,5101,5101,5169,4434,5101,5101,5009,5101,5101,5101,4613,4614,4975,5101,4614,5101,5411,4978,6164,6391,5101,4977,6380,5395,5376,5188,4872,5243,5197,5197,5194,5197,5199,5203,5205,5207,5209,5209,5209,5213,5213,5213,5213,5214,5213,5213,5215,5219,5221,5101,5101,5101,5036,5101,5059,5063,5372,5101,5101,5101,6378,6010,5101,4978,6569,5101,4980,5101,5417,5101,5101,5101,5891,5074,5240,5101,5351,6463,5247,5101,5101,5257,5101,5101,5101,5068,5263,6448,5875,5101,4981,5101,5101,5876,6281,5416,5275,4435,5874,5101,4990,6089,5406,5410,5101,5265,5407,5285,5101,5101,5297,6402,5101,5101,5304,5309,5101,5101,5101,5057,5371,5101,5101,5101,5059,5330,4833,5427,5101,5010,4978,5101,5415,5358,5101,5101,5101,5100,5883,5359,5101,5101,5102,6015,4893,5258,5101,5342,5432,5101,5348,5101,5024,6570,5977,5382,4434,5101,5101,5102,6113,5726,5101,6379,5101,5101,5101,5102,5101,5101,6462,5101,4561,5876,5101,6422,6426,5381,6381,6423,6427,5382,5101,5031,5101,5101,4866,4885,4811,5438,6425,5399,6381,5479,5101,5101,5101,5104,5106,5060,5064,5101,5035,5101,5101,5051,5101,5350,5101,5879,4896,5431,5101,5101,5101,5106,5101,4975,5471,5101,5101,5101,5107,6430,5101,5101,5101,5108,4890,6429,6381,5101,5101,5102,6446,5479,5101,5101,5453,5269,5410,5101,4614,5101,5101,6380,5153,5101,5101,5732,5268,5470,5101,5101,5102,6697,5459,5468,6381,5101,5041,5046,5045,5478,5101,5101,5453,4614,5101,5101,5101,5111,6088,5350,5877,5413,5538,5101,5101,5047,5047,5047,5461,5101,6088,6119,5106,5267,5271,5101,5047,6213,5101,5101,5404,4990,5404,5408,5404,4990,5404,5962,5423,5961,5101,6084,5423,5233,6104,5101,4990,5232,5230,5101,5232,4989,5232,5232,5232,5231,6488,5101,5101,5101,5168,5876,5722,5483,4434,5099,5101,5101,6498,6279,5487,5101,4886,6166,5489,5856,5494,5500,5498,5504,5504,5504,5504,5506,5513,5510,5517,5519,5519,5519,5521,5519,5525,5525,5525,5525,5527,6280,5415,5319,5672,5101,5005,6438,5101,5101,5103,5101,5101,5101,6361,6199,5571,5101,5101,5101,5176,5626,6498,5551,5101,6442,5561,5101,5814,5566,5575,5101,5101,5101,5181,6167,5004,6438,5101,5102,6092,6381,5580,5101,5101,5004,6127,5600,5863,5606,5862,5605,5101,5101,5235,5101,5101,5101,5424,5102,6128,5601,5864,5607,5101,5101,5101,5224,5101,6167,5101,5006,6440,5101,5569,5101,5102,6180,5148,5101,5101,5996,5101,6283,5464,5101,5101,5101,5228,5101,5620,5101,5101,5101,5232,5176,5626,6753,5665,5101,5101,5632,5321,4434,5101,5102,6362,6200,5027,5562,5101,5570,5101,5101,5223,5746,5463,5101,5101,5101,5266,4989,5621,5101,5101,5101,5278,6754,5666,5101,5101,5265,5407,6755,5376,5101,5101,4990,5101,5612,5415,5320,6393,5101,5101,5176,5639,5646,4577,5568,5410,5640,5664,5101,5101,5101,5293,5175,5639,5663,5376,5659,5376,5101,5101,5101,4980,5657,5676,5101,5101,5288,5037,5658,5101,5101,5101,5411,5123,5098,5101,5423,5101,5102,6471,6477,5098,5101,5424,5101,5101,5426,5098,5424,5101,5102,6558,5101,5101,5101,6393,5101,5426,5424,5568,5424,5233,5101,5101,5102,6562,5101,5104,5101,5101,5101,4974,6215,5710,4879,5101,6496,5376,5101,5105,5101,5424,5424,5099,5101,5105,5101,5101,5101,5720,4722,5730,5742,5751,5757,5766,5764,5767,5755,5761,5771,5774,5776,5778,5790,5782,5785,5789,5790,5791,5796,5795,5801,5797,5806,5101,5108,4976,5101,5110,6702,5101,5111,6707,5101,5123,5123,5123,5698,5699,5699,5700,4602,5801,5802,5801,5801,4998,5101,5098,5101,5101,5425,5101,5101,5812,5819,5557,5101,5145,5281,5101,4844,5876,4852,5595,5101,4888,5101,5950,5136,4434,5101,4615,5101,5101,5823,5848,5941,5101,5101,5363,5101,5472,5373,5101,5101,5386,5101,5860,4888,5868,5887,5011,5011,5101,5101,5414,5101,6528,5376,5101,5101,5414,6347,5545,5908,6527,4732,5904,6529,5101,5101,5423,5101,5101,5100,5942,5101,5101,5101,5426,5101,5101,5101,5479,5912,5924,5101,5101,5423,5163,5158,5101,5101,5101,4989,5101,5350,5929,5376,5101,5101,5454,5270,6215,5393,5374,5101,5168,5173,5101,5101,5101,5021,5109,5101,5411,5101,5853,5101,6347,5101,5100,5101,5102,5947,5925,5101,5101,5530,4980,4811,5650,5954,5376,4812,5959,5955,5101,5184,5539,6436,5879,5098,5102,5538,5101,6166,5101,5102,5447,5442,4585,5993,5101,5101,5538,6089,5099,4592,5101,5101,5546,5903,4584,5993,5101,5101,5649,5940,5102,4586,5994,5101,5231,4887,5101,4974,5100,5101,5101,6712,5101,5101,4584,5995,5101,5101,5706,5898,4585,5995,5101,5101,5808,5101,5106,5101,5413,6346,5102,6004,5101,5101,5833,5840,6392,5107,5412,5876,4894,5152,5101,5035,5576,5101,5101,5106,6016,5101,5101,5837,5841,5101,5101,5338,5101,6015,5101,5101,5101,5547,5412,5101,5101,5101,5612,5101,6161,5101,5101,5101,5679,5101,5101,6367,5101,5101,5842,6096,5101,6282,5101,4486,6021,6046,6045,6046,6046,6043,6046,6050,6054,6058,6062,6071,6066,6070,6071,6071,6075,6075,6075,6075,6078,6082,5101,5101,5842,6097,5103,5234,5101,5101,5880,5305,5101,5101,5047,5101,5101,6102,5109,6108,5101,5236,5101,5101,5325,5101,6117,5101,6123,5101,5249,6209,6202,5101,6493,5101,5101,5897,5101,5101,6142,6181,5096,5843,6097,5101,5101,5966,5101,5101,5996,5101,5101,5101,5876,5103,6174,5101,5101,5416,5421,5101,5101,5251,6200,6204,5101,5101,5101,5949,6147,6152,6e3,4980,4980,4980,5101,5292,4635,5101,5299,5101,5101,5058,5062,5371,6361,5737,5101,5101,5975,4848,5988,6137,5101,5101,5101,5882,5102,5734,5738,5101,5317,6462,5349,6382,5101,6160,6159,5101,6173,5101,5101,5999,5101,5101,6667,5106,4894,6247,4978,5101,5101,6004,5101,6361,6199,6203,5101,5101,5101,5896,6382,6382,5101,5101,6111,5418,5101,5101,6668,4893,6186,5101,6769,5879,5101,5101,5529,6188,5101,5101,6126,5599,5102,6197,6201,6205,5419,6182,4434,5101,5101,6089,5252,6201,6205,5585,5101,5101,5101,6007,6455,4450,5101,5101,6133,5101,5101,5101,5695,6454,4449,4434,5101,5350,5101,5878,5101,6280,4886,4988,6229,5101,5101,6162,4614,5101,6378,4434,5101,5375,5101,4562,6229,5101,4978,6214,6161,4980,5101,5101,6162,5101,5101,5101,5655,5640,6234,5101,5101,5101,6089,5101,6258,4434,6240,5101,6258,4434,5101,5404,5962,5101,5102,5437,6424,6235,5101,5101,5568,5410,5101,5101,6236,5101,6165,5101,5101,5101,6259,5101,5101,6164,5101,5101,5101,5648,5849,5942,5101,6260,5101,6165,5101,5405,5409,5101,5057,5268,5409,5101,5101,5102,6742,5253,5101,5101,5101,6260,5101,5101,6259,5101,6167,6258,5101,5101,5101,6112,6259,5101,6259,6165,4847,5987,5376,5568,6497,6259,5568,6497,6168,6257,6257,6261,6251,6254,6254,5101,5101,5101,6169,5118,5101,5916,5101,5414,5538,5101,5101,5918,4896,5553,4884,5037,6272,6287,6305,6299,6305,6303,6299,6309,6293,6290,6295,6322,6313,6327,6316,6319,6323,6332,6331,6339,6339,6340,6339,6339,6339,6336,6344,5101,5101,5101,6178,5224,5747,5376,5101,5101,5415,5101,5101,6351,4893,4893,4882,5230,5001,5101,6372,5101,5101,6214,4980,5101,6357,5969,5101,5417,5419,6353,6366,4434,5101,6371,6390,6397,6401,5101,5418,4636,5647,6434,5101,5101,5101,6192,5943,5101,5008,5101,4978,5101,4979,5101,5416,5101,6351,4893,5419,6352,4894,6268,6367,5002,5101,5101,6279,5641,5101,5101,5290,5101,6452,5101,5101,5101,6223,5101,6470,6459,6480,6475,6479,6205,5101,5423,5407,5101,5057,5061,5390,6481,5101,5101,5101,6228,5589,5588,5587,5101,5436,5442,6428,5402,5101,5101,5102,6143,6182,5106,5745,6520,5101,5455,5409,5101,5057,5061,5370,6267,5101,5410,5101,5535,5101,5101,5177,5640,5423,5999,5101,5101,6360,5736,6738,6204,5101,5101,6378,5101,5224,5077,5101,5008,6265,5555,5101,5415,5070,5082,5622,5101,5101,6278,6165,5233,5101,5377,6377,6386,5103,5101,5679,5101,5538,5101,5101,5101,5534,5538,4826,5935,6737,6204,4827,5936,6535,6204,6191,6191,5101,5101,6378,6393,5232,5101,5036,5101,5543,5259,5326,6190,5101,5101,5101,6278,5443,6506,4434,5101,5568,6236,5101,5101,5568,5101,5102,6511,5134,6507,5164,4451,5101,5101,6392,5101,6165,5101,6192,6192,6192,5101,5101,6378,6392,5101,5101,6517,5376,5101,5583,5101,5101,5101,6011,6524,5101,6278,5101,5101,5101,5037,6155,5101,5101,5101,6382,6533,6549,5101,5101,5101,6379,6393,5101,6544,6381,5101,5593,5101,5101,5229,5634,5101,6676,6549,5101,5616,6230,5101,5351,5877,4895,5411,5432,5101,5101,5101,5031,5101,6675,6548,5101,5101,5101,6391,5101,6539,5426,5101,5101,5417,5920,4896,5101,5648,6722,5416,6462,5101,5562,5101,6554,6381,5101,5680,5101,5101,6381,5101,5101,5101,5101,4583,5101,6540,5425,5101,5426,5101,5101,6709,5417,4895,5102,4595,5101,5101,6406,5101,4594,5403,6540,5101,5714,5003,4991,6090,6568,5101,5101,6464,4988,5101,6091,6381,5101,5842,5037,5998,5996,5996,5413,4893,5101,5101,5101,6419,5101,6091,5101,5101,6492,6491,5101,6091,5101,4895,4561,4896,5101,5101,6090,6089,4896,5101,5101,6494,6256,4559,5101,5101,6090,5101,5101,6090,4561,6089,4561,5101,6089,4560,5537,6089,5101,5537,6574,6752,4888,4577,5716,5997,6579,5101,5844,5037,5101,5101,5101,6196,5101,6462,6465,6463,4869,5826,5829,6587,4489,4646,6598,6591,6597,6593,6605,6602,6607,6611,6613,6617,6619,6628,6625,6632,6621,6635,6639,6640,6644,6647,6654,6653,6651,6658,6661,6665,5101,6574,6723,5101,5876,6281,5670,5418,5421,5101,5101,5101,6469,5107,5101,4975,5101,4976,6672,5101,5101,5101,6682,6494,5101,5101,5101,6695,6680,5313,6686,5101,5877,5684,4434,6246,5101,5101,6163,5101,5101,5101,6692,5101,5101,6495,5101,5101,6703,5101,5101,5101,6713,5101,5101,6718,6717,4834,6722,5101,5418,5422,5101,6727,6734,5101,5881,5357,5337,6746,5101,5101,5101,6495,6378,5101,6222,6745,5101,5889,5128,5074,4442,6224,6747,5101,5877,5615,5671,5876,5101,5879,5101,5899,6230,5101,5101,6089,5101,5101,4892,5101,5412,5002,6734,5101,5101,6711,5101,5101,5253,5101,5877,5877,5877,5101,5101,5101,6771,5101,5101,6575,5642,4635,5411,6089,5101,4889,5258,5101,5252,4561,5101,5101,6090,5252,4561,5876,5876,5101,5101,5101,5914,6353,6148,5106,4974,5101,5101,5972,5101,4989,5101,6165,5425,5101,6688,5107,5101,6111,5724,6759,5725,4561,5101,5101,5983,5994,5101,5190,5879,5101,5101,5101,5344,5376,5106,5101,5101,5413,6463,5879,5102,6775,6767,5101,5101,5997,5101,5101,5101,4811,4583,6765,5101,5101,5101,5101,6098,5420,5101,5998,5101,5101,5101,4818,5109,5101,5413,5537,5101,5101,6165,5101,6111,6564,5101,5998,5101,6769,5101,5101,6132,6137,5101,6098,5101,5101,6033,6031,6039,5105,5101,5109,5101,4863,5101,6776,5101,5101,5101,6035,4434,5101,6161,5536,5101,5036,5102,5101,5101,6088,5101,5101,5412,6089,1048576,1073741824,0,0,0,-872415232,4194560,4196352,270532608,2097152,4194304,117440512,134217728,4194304,16777216,4194432,3145728,16777216,134217728,536870912,1073741824,0,541065216,541065216,-2143289344,-2143289344,4194304,4194304,4196352,-2143289344,4194304,4194432,37748736,541065216,-2143289344,4194304,4194304,4194304,4194304,37748736,4194304,4194304,4198144,4196352,8540160,4194304,4194304,4194304,4196352,276901888,4194304,4194304,8425488,4194304,1,0,1024,1024,0,1024,742391808,239075328,-1405091840,742391808,742391808,775946240,239075328,171966464,775946240,171966464,171966464,171966464,171966464,-1405091840,775946240,775946240,-1405091840,-1371537408,775946240,775946240,775946240,171966464,239075328,239075328,171966464,775946240,-1371537408,775946240,775946240,-1371537408,239075328,775946240,775946240,775946240,775946240,4718592,64,4718592,2097216,4720640,541589504,4194368,541589504,4194400,4194368,541065280,4194368,-2143289280,4194368,-2143285440,-2143285408,-2143285408,-2109730976,-2143285408,-2143285408,-2143285408,-2143285408,776470528,-2143285408,-2109730976,775946336,775946304,776470528,775946304,-1908404384,2,4,8,262144,0,0,0,2147483648,8,262144,262144,1048576,0,128,4096,0,4194304,128,128,0,1048576,0,0,1536,1792,0,0,1,2,4,128,2097152,8192,8392704,0,0,1,4,8,262144,536870912,64,64,32,96,96,96,96,128,1536,524288,96,64,524288,524288,1536,1024,0,0,0,29,96,1048576,128,128,128,128,2048,2048,2048,2048,2048,2048,0,96,524288,96,64,0,0,128,1024,524288,64,64,96,96,524288,524288,4100,1024,100680704,96,524288,64,96,524288,64,80,528,524304,1048592,2097168,268435472,16,16,2,536936448,16,262160,16,536936448,16,17,17,20,16,48,16,16,20,560,24,560,48,2097680,3145744,1048592,1048592,2097168,16,1049104,2228784,2097168,2097168,16,16,16,16,20,48,48,3146256,2097680,1048592,16,16,16,28,0,2097552,3146256,16,16,16,21,16,16,28,16,0,16,0,-2046820352,0,0,2,2,2,2098064,17,21,266240,1048576,67108864,2147483648,0,0,64,65536,1048576,0,16,16,163577856,17,528,528,16,528,-161430188,-161429676,-161429676,-161430188,-161429680,-161430188,-161430188,-161429680,-161429676,-161349072,-161429675,-161349072,-161349072,-161349072,-161349072,-161347728,-161347728,-161347728,-161347728,-161298572,-160774288,-160299084,-161298572,-161298576,-160299088,-161298576,-160774284,-160774284,-161298572,-161298572,-161298572,-161298572,112,21,53,146804757,146812949,146862101,146863389,-161429676,-160905388,-161429676,-161429676,-161429676,-161429676,-161429675,-161349072,146863421,148960541,146863389,146863389,148960541,146863421,148960541,148960541,-161429740,-161429676,-160905388,-161298572,-161298572,-18860267,-160774284,-18729163,0,0,1,6,8,16,262144,0,0,1,8,0,24,0,0,1,14,16,32,1024,32768,100663296,-1073741824,0,0,0,150528,131072,16777216,0,0,1,102,1,32768,131328,131072,524288,2097152,8388608,16777216,164096,0,0,0,1007,0,1073741825,2147483648,2147483648,1073741824,8,0,0,58368,0,0,65536,1048576,4096,1048576,512,512,9476,134218240,0,1073741824,2621440,1073741824,2147483648,2147483648,0,0,66048,0,0,0,67108864,0,0,0,16384,0,0,0,8,0,0,0,9,4456448,8,16777216,1073774592,1226014816,100665360,100665360,100665360,100665360,-2046818288,1091799136,1091799136,1091803360,1091799136,1091799136,-2044196848,1091799136,1091799136,1091799136,1091799136,1091799136,1158908e3,1158908001,1192462432,1192462448,1192462448,1192462448,1192462448,1200851056,1091799393,1200851056,1200851056,1091799393,1200851056,1200851056,1200851056,1192462448,1870638912,1870638912,1870655296,1870638912,1870655296,1870655296,1870655296,1870655296,1870655296,1870655312,1870655316,1870655316,1870655316,1870655317,1870655348,1870655316,1870655316,1870655312,1870655312,1879027568,1879043952,1870655316,1870655316,1870655316,1870638928,1879043952,1879043956,0,0,1,12288,0,229440,1048576,1224736768,100663296,0,0,0,1024,0,0,8192,0,0,0,576,0,231488,1090519040,0,0,0,2048,0,0,134217728,0,1157627904,1191182336,0,0,131584,268435456,49152,0,0,0,134217728,0,0,0,16,0,0,0,13,0,9437184,231744,0,0,235712,0,0,131328,0,0,131072,32768,0,0,134217728,0,52e4,7864320,1862270976,0,0,0,4096,0,0,0,1862270976,1862270976,1862270976,0,16252928,0,0,0,8192,64,98304,1048576,150994944,83886080,117440512,0,0,2,4,16,32,256,1024,8192,33554432,0,0,64,256,3584,8192,16384,65536,262144,524288,1048576,2097152,4194304,2147483648,8192,98304,393216,524288,1048576,1048576,2097152,4194304,251658240,536870912,8192,16384,98304,393216,251658240,536870912,1073741824,0,0,2097152,0,0,0,0,1,0,0,0,2,0,0,0,3,240,0,83886080,117440512,64,0,2,0,0,524288,524288,524288,524288,256,1536,2048,8192,16384,256,1536,8192,65536,262144,524288,2097152,67108864,4194304,16777216,100663296,134217728,536870912,524288,2097152,134217728,268435456,536870912,1073741824,0,0,524288,2097152,0,0,1048576,2097152,67108864,1073741824,0,0,1536,65536,262144,524288,33554432,0,1024,65536,262144,2097152,2097152,1073741824,0,0,2,8,16,32,0,8192,4096,0,0,605503,1066401792,9476,512,0,32,384,8192,4194312,4194312,541065224,4194312,4194312,4194312,4194312,4194344,-869654016,-869654016,4203820,-869654016,-869654016,-869654016,-869654016,1279402504,1279402504,1279402504,1279402504,2143549415,2143549415,2143549415,2143549415,2143549423,2143549423,2143549423,2143549423,2143549423,2143549423,0,0,2,16384,32768,260,512,0,0,0,65536,0,0,0,384,8192,0,32,512,0,1050624,262144,512,1275208192,139264,1275068416,0,0,4,128,1024,2048,16384,262144,8,4194304,0,0,0,82432,0,40,0,0,4,256,1024,98304,131072,16777216,268435456,0,0,300,4203520,0,0,2097152,1073741824,2147483648,0,0,520,4333568,1275068416,0,0,4194304,1024,0,4096,8192,0,0,0,520,520,0,0,0,164096,999,29619200,2113929216,0,0,0,1007,1007,1007,0,0,8,124160,32,512,0,2048,524288,0,536870912,0,139264,0,0,0,139264,0,40,0,2621440,0,0,2147483648,1610612736,0,0,0,229376,0,40,0,524288,2097152,1073741824,44,0,0,0,262144,0,0,16384,229376,4194304,25165824,100663296,402653184,1610612736,0,110,110,110,0,0,8388608,8388608,8192,33554432,67108864,134217728,1073741824,0,2147483648,0,0,0,12545,25165824,33554432,67108864,402653184,536870912,0,104,104,104,8192,33554432,134217728,0,0,8388608,134217728,1073741824,0,229376,25165824,33554432,402653184,536870912,0,0,256,1024,65536,16777216,268435456,0,0,0,524288,0,0,0,64,0,0,0,128,0,0,0,256,0,0,0,300,524288,2097152,2147483648,0,0,1,6,32,64,256,512,256,1024,4096,8192,65536,2,4,32,64,256,1024,0,2,4,256,1024,65536,4,64,256,1024,0,0,8,8388608,0,98304,131072,25165824,268435456,536870912,0,0,8388608,4096,0,0,8,8,8,0,2048,524288,67108864,536870912,32,4100,67108864,0,32768,0,32768,0,1049088,0,134348800,270532608,0,1049088,1049088,8192,1049088,12845065,12845065,12845065,12845065,147193865,5505537,5591557,5587465,5587457,5587457,147202057,5587457,5587457,5591557,5587457,13894153,13894153,13894153,13894153,81003049,13894153,-1881791493,-1881791493,-1881791493,-1881791493,0,0,8,33554432,262144,0,33554432,1024,0,4,0,0,0,867647,1,5505024,0,0,15,16,32,192,86528,9,0,0,16,8192,0,0,23,0,75497472,0,0,0,1048576,5505024,-1887436800,0,0,0,2097152,268435456,0,0,4096,8192,67108864,0,0,262144,4194304,8388608,0,0,33554432,8192,0,0,288,8388608,0,0,0,81920,0,0,24,282624,64,896,8192,131072,262144,1048576,16777216,33554432,-1946157056,0,0,0,2621440,0,131072,0,32,0,0,2048,3145728,0,16384,65536,0,0,268435456,32,64,384,512,5120,8192,0,64,0,2048,1048576,0,0,32,64,384,8192,131072,0,0,32768,134217728,0,0,8,32,64,1024,2048,0,2,8,32,384,8192,131072,33554432,131072,1048576,33554432,134217728,2147483648,0,0,2048,524288,536870912,0,1073741824,0,131072,33554432,2147483648,0,0,33554432,1073741824,0,32,0,524288,0,0,67108864,64,64,0,96,96,0,524288,524288,524288,64,64,64,64,96,96,96,0,0,0,28,0,8396800,4194304,134217728,2048,134217728,0,0,32,1,0,8396800,0,0,32,64,128,1024,2048,262144,0,16384,0,2,4,64,128,3840,16384,19922944,2080374784,0,16384,16384,16777216,16384,32768,1048576,2097152,4194304,16777216,524288,268567040,16384,2113544,68489237,72618005,68423701,68423701,68423701,68489237,68423701,-2079059883,-2079059947,68423701,85200917,68423701,68423701,68423701,68423701,68423765,-2079059883,68425749,68423703,69488664,85200919,69488664,69488664,69488664,69488664,70537244,70537245,70537245,70537245,70537309,70537245,-2076946339,-2076946403,70537245,-2076946339,70537245,70537245,70537245,70537245,70539293,-2022351745,-2022351745,-2022351617,-2022351745,-2022351617,-2022351617,-2022351617,-2022351617,-2022351617,-2022351617,-2022351745,-2022351617,-2022351617,0,0,40,67108864,331776,83886080,0,0,59,140224,5505024,5242880,-2080374784,-2080374784,268288,29,0,284672,0,0,68157440,137363456,0,66,66,0,63,64,351232,63,192,351232,7340032,-2030043136,0,0,0,4194304,1,1024,32,64,256,32768,65536,512,131072,268435456,0,0,134348800,134348800,16,4096,262144,1048576,4194304,8388608,16777216,33554432,5242880,0,7,0,0,142606336,0,-872415232,0,0,0,131072,0,0,0,999,259072,4194304,25165824,0,20480,0,0,64,256,1536,8192,16384,0,12,3145728,0,0,0,3145728,64,3072,20480,65536,262144,32,192,3072,20480,4,1048576,0,0,128,131072,0,134218752,0,0,128,134217728,5242880,0,6,0,0,16384,65536,7340032,50331648,32,192,1024,2048,4096,8192,65536,32768,65536,4194304,16777216,2147483648,0,0,1,4,0,0,256,1536,65536,65536,2097152,4194304,50331648,2147483648,32,192,1024,65536,268435456,0,0,32768,4194304,16777216,0,0,184549376,0,0,243269632,0,0,32768,131072,131072,0,32768,32768,1,2,4,2097152,16777216,134217728,268435456,1073741824,2147483648,128,2097152,4194304,50331648,0,0,0,8388608,0,0,0,768,2,4,50331648,0,0,536870912,9216,0,0,0,49152,2,4,128,50331648,0,0,4096,4194304,268435456,0,0,1075838976,2097152,2097152,268435456,4194432,268435968,268435968,1073743872,268435968,0,128,6144,0,229376,128,268435968,268436032,256,256,536871168,256,256,256,256,257,256,384,-1879046336,-1879046334,1073744256,-1879046334,-1879046326,-1879046334,-1879046334,-1879046326,-1879046326,-1845491902,-1878784182,268444480,268444480,268436288,268436288,268436288,268436288,268436289,268444480,268444480,268444480,268444480,2100318149,2100318149,2100318149,2100318149,2100326341,2100326341,2100318149,2100326341,2100326341,0,0,256,2048,2048,0,0,0,4,8,262144,134217728,1,1024,0,4096,0,64,1856,2147483648,0,0,256,65536,2432,0,1864,0,1,2,16,32,64,0,301989888,0,262144,131072,0,0,832,8192,0,1,2,56,64,896,0,1,4036,19939328,2080374784,2080374784,0,0,0,16252928,1,16,32,128,512,2304,0,8,0,512,301989888,0,0,262144,524288,134217728,536870912,0,24576,0,0,0,33554432,0,0,0,32768,0,0,2097152,134217728,0,32768,196608,0,0,0,1,128,512,2048,524288,268435456,536870912,0,33554432,262144,8192,0,0,256,8388608,0,0,1,4,128,3584,16384,3145728,16777216,67108864,134217728,805306368,1073741824,0,0,1024,2048,16384,3145728,0,8192,0,8192,0,536870912,524288,536870912,1073741824,0,1,2,112,128,3072,2048,3145728,16777216,536870912,1073741824,0,0,2097152,16777216,1073741824,0,0,0,8192,8192,8192,9216,33554432,32768,33554432,0,0,262144,0,16777216,0,16777216,16777216,16777216,16777216,0,0,2097152,16777216,0,0,16777216,268500992,4243456,0,0,512,65536,0,4096,4096,0,4096,4096,4096,4096,0,0,0,32,0,0,0,41,0,4243456,4096,12289,1073754113,12289,12289,1124073472,12289,12289,1098920193,1098920193,1124073488,1124073472,1124073472,1258292224,1124073472,1124073474,1124073472,1124073472,1124073472,1124073472,1124073472,1392574464,1124073472,12289,1124085761,1124085761,1124085761,1124085761,1132474625,1098920209,1132474625,1132474625,1098920209,1132474625,1132474625,1132474625,1132474625,1400975617,1124085777,1124085761,1124085761,1258304513,2132360255,2132360255,2132622399,2132360255,2132622399,2132622399,2140749119,2141011263,2132622399,2132622399,2132622399,2132622399,2132360255,2141011263,2141011263,0,0,512,131072,0,128,131072,1024,134217728,0,0,0,50331648,1073741824,0,1,4,64,128,3584,318767104,0,0,0,268435456,0,12289,0,0,0,159383552,25165824,0,0,0,536870912,0,0,0,24576,58720256,0,0,12305,13313,0,0,0,1073741824,0,0,0,12561,0,78081,327155712,0,0,0,1275068416,0,605247,1058013184,1073741824,1073741824,8388608,0,0,503616,7864320,867391,1058013184,1073741824,0,1,6,96,384,512,1024,4096,8192,16384,229376,25165824,33554432,268435456,536870912,0,867647,1066401792,0,0,0,512,1048576,0,0,9,8388608,12288,0,0,0,512,2760704,77824,0,0,0,1024,2048,3145728,2048,77824,524288,1048576,0,0,0,512,0,1048576,0,1,30,32,1024,2048,1024,2048,339968,524288,1048576,16777216,100663296,134217728,805306368,1073741824,1024,2048,12288,65536,0,65536,0,0,19947520,0,0,0,16777216,0,0,0,5,1024,2048,12288,327680,524288,33554432,134217728,536870912,1073741824,14,16,1024,4096,8192,229376,0,2,16384,4194304,2147483648,0,0,0,8,0,65536,262144,7340032,50331648,67108864,2147483648,4096,65536,262144,524288,1048576,33554432,256,0,256,0,256,1,12,1024,134217728,262144,134217728,536870912,0,0,268435456,1,4,8,134217728,4,8,536870912,0,2,16,64,128,0,0,262144,536870912,0,0,1073741824,32768,0,8,32,512,4096,9437184,0,0,1048576,2097152,4194304,67108864,134217728,0,1024,137363456,66,25165824,26214400,92274688,92274688,25165952,92274688,25165824,25165824,92274688,25165824,25165824,92274688,92274688,92274720,92274688,25165824,92274688,93323264,25165890,100721664,100721664,25165890,100721928,100721928,100787464,100853e3,100721928,100721928,125977600,125977600,125977600,125977600,127026176,125977600,125846528,125846528,125846560,125846528,125846528,125846528,126895104,125846528,125977600,127026176,125977600,125977600,127026176,127026176,281843,281843,1330419,281843,1330419,281843,1330419,1330419,281843,281843,281843,5524723,39079155,72633587,5524723,5524723,5524723,5524723,93605107,72633587,72633587,92556531,93605107,127290611,127290611,97799411,127290611,131484915,0,0,1536,2147483648,0,0,17408,33554432,0,1,12,1024,262144,0,58624,0,0,1536,0,189696,0,0,0,1792,2147483648,0,148480,50331648,0,1,14,1024,4096,65536,524288,240,19456,262144,0,0,19456,262144,0,4194304,0,0,1024,2097152,0,0,0,150528,0,0,0,512,4096,8192,131072,0,57344,0,0,0,2048,100663296,0,0,256,0,65536,524288,1048576,33554432,67108864,2,48,64,128,3072,16384,262144,0,0,32,4096,8192,131072,1048576,8388608,33554432,134217728,2048,262144,0,0,2048,268435456,16,64,128,262144,0,0,32768,65536,131072,0,1,2,16,64,0],r.TOKEN=[\"(0)\",\"PragmaContents\",\"DirCommentContents\",\"DirPIContents\",\"CDataSection\",\"Wildcard\",\"EQName\",\"URILiteral\",\"IntegerLiteral\",\"DecimalLiteral\",\"DoubleLiteral\",\"StringLiteral\",\"PredefinedEntityRef\",\"'\\\"\\\"'\",\"EscapeApos\",\"ElementContentChar\",\"QuotAttrContentChar\",\"AposAttrContentChar\",\"PITarget\",\"NCName\",\"QName\",\"S\",\"S\",\"CharRef\",\"CommentContents\",\"EOF\",\"'!'\",\"'!='\",\"'\\\"'\",\"'#'\",\"'#)'\",\"'$'\",\"'%'\",\"''''\",\"'('\",\"'(#'\",\"'(:'\",\"')'\",\"'*'\",\"'*'\",\"'+'\",\"','\",\"'-'\",\"'-->'\",\"'.'\",\"'..'\",\"'/'\",\"'//'\",\"'/>'\",\"':'\",\"':)'\",\"'::'\",\"':='\",\"';'\",\"'<'\",\"'<!--'\",\"'</'\",\"'<<'\",\"'<='\",\"'<?'\",\"'='\",\"'>'\",\"'>='\",\"'>>'\",\"'?'\",\"'?>'\",\"'@'\",\"'NaN'\",\"'['\",\"']'\",\"'after'\",\"'all'\",\"'allowing'\",\"'ancestor'\",\"'ancestor-or-self'\",\"'and'\",\"'any'\",\"'append'\",\"'array'\",\"'as'\",\"'ascending'\",\"'at'\",\"'attribute'\",\"'base-uri'\",\"'before'\",\"'boundary-space'\",\"'break'\",\"'by'\",\"'case'\",\"'cast'\",\"'castable'\",\"'catch'\",\"'check'\",\"'child'\",\"'collation'\",\"'collection'\",\"'comment'\",\"'constraint'\",\"'construction'\",\"'contains'\",\"'content'\",\"'context'\",\"'continue'\",\"'copy'\",\"'copy-namespaces'\",\"'count'\",\"'decimal-format'\",\"'decimal-separator'\",\"'declare'\",\"'default'\",\"'delete'\",\"'descendant'\",\"'descendant-or-self'\",\"'descending'\",\"'diacritics'\",\"'different'\",\"'digit'\",\"'distance'\",\"'div'\",\"'document'\",\"'document-node'\",\"'element'\",\"'else'\",\"'empty'\",\"'empty-sequence'\",\"'encoding'\",\"'end'\",\"'entire'\",\"'eq'\",\"'every'\",\"'exactly'\",\"'except'\",\"'exit'\",\"'external'\",\"'first'\",\"'following'\",\"'following-sibling'\",\"'for'\",\"'foreach'\",\"'foreign'\",\"'from'\",\"'ft-option'\",\"'ftand'\",\"'ftnot'\",\"'ftor'\",\"'function'\",\"'ge'\",\"'greatest'\",\"'group'\",\"'grouping-separator'\",\"'gt'\",\"'idiv'\",\"'if'\",\"'import'\",\"'in'\",\"'index'\",\"'infinity'\",\"'inherit'\",\"'insensitive'\",\"'insert'\",\"'instance'\",\"'integrity'\",\"'intersect'\",\"'into'\",\"'is'\",\"'item'\",\"'json'\",\"'json-item'\",\"'key'\",\"'language'\",\"'last'\",\"'lax'\",\"'le'\",\"'least'\",\"'let'\",\"'levels'\",\"'loop'\",\"'lowercase'\",\"'lt'\",\"'minus-sign'\",\"'mod'\",\"'modify'\",\"'module'\",\"'most'\",\"'namespace'\",\"'namespace-node'\",\"'ne'\",\"'next'\",\"'no'\",\"'no-inherit'\",\"'no-preserve'\",\"'node'\",\"'nodes'\",\"'not'\",\"'object'\",\"'occurs'\",\"'of'\",\"'on'\",\"'only'\",\"'option'\",\"'or'\",\"'order'\",\"'ordered'\",\"'ordering'\",\"'paragraph'\",\"'paragraphs'\",\"'parent'\",\"'pattern-separator'\",\"'per-mille'\",\"'percent'\",\"'phrase'\",\"'position'\",\"'preceding'\",\"'preceding-sibling'\",\"'preserve'\",\"'previous'\",\"'processing-instruction'\",\"'relationship'\",\"'rename'\",\"'replace'\",\"'return'\",\"'returning'\",\"'revalidation'\",\"'same'\",\"'satisfies'\",\"'schema'\",\"'schema-attribute'\",\"'schema-element'\",\"'score'\",\"'self'\",\"'sensitive'\",\"'sentence'\",\"'sentences'\",\"'skip'\",\"'sliding'\",\"'some'\",\"'stable'\",\"'start'\",\"'stemming'\",\"'stop'\",\"'strict'\",\"'strip'\",\"'structured-item'\",\"'switch'\",\"'text'\",\"'then'\",\"'thesaurus'\",\"'times'\",\"'to'\",\"'treat'\",\"'try'\",\"'tumbling'\",\"'type'\",\"'typeswitch'\",\"'union'\",\"'unique'\",\"'unordered'\",\"'updating'\",\"'uppercase'\",\"'using'\",\"'validate'\",\"'value'\",\"'variable'\",\"'version'\",\"'weight'\",\"'when'\",\"'where'\",\"'while'\",\"'wildcards'\",\"'window'\",\"'with'\",\"'without'\",\"'word'\",\"'words'\",\"'xquery'\",\"'zero-digit'\",\"'{'\",\"'{{'\",\"'{|'\",\"'|'\",\"'||'\",\"'|}'\",\"'}'\",\"'}}'\"]},{}],\"/node_modules/xqlint/lib/tree_ops.js\":[function(e,t,n){\"use strict\";n.TreeOps={flatten:function(e){var t=this,n=\"\";if(!e)throw new Error(\"Invalid node found\");return e.value===undefined?e.children.forEach(function(e){n+=t.flatten(e)}):n+=e.value,n},concat:function(e,t,n){var r=n?{}:e;n&&Object.keys(e).forEach(function(t){r[t]=e[t]});var i=Object.keys(t);return i.forEach(function(e){r[e]=t[e]}),r},removeParentPtr:function(e){e.getParent!==undefined&&delete e.getParent;for(var t in e.children){var n=e.children[t];this.removeParentPtr(n)}},inRange:function(e,t,n){if(e&&e.sl<=t.line&&t.line<=e.el){if(e.sl<t.line&&t.line<e.el)return!0;if(e.sl===t.line&&t.line<e.el)return e.sc<=t.col;if(e.sl===t.line&&e.el===t.line)return e.sc<=t.col&&t.col<=e.ec+(n?1:0);if(e.sl<t.line&&e.el===t.line)return t.col<=e.ec+(n?1:0)}},findNode:function(e,t){if(!e)return;var n=e.pos;if(this.inRange(n,t)===!0){for(var r in e.children){var i=e.children[r],s=this.findNode(i,t);if(s!==undefined)return s}return e}return},astAsXML:function(e,t){var n=\"\";t=t?t:\"\",e.value&&(n+=t+\"<\"+e.name+\">\"+e.value+\"</\"+e.name+\">\\n\"),n+=t+\"<\"+e.name+\">\\n\";var r=this;return e.children.forEach(function(e){n+=r.astAsXML(e,t+\"  \")}),n+=t+\"</\"+e.name+\">\\n\",n}}},{}],\"/node_modules/xqlint/lib/xqdoc/parse_comment.js\":[function(e,t,n){\"use strict\";n.parseComment=function(e){e=e.trim();var t=e.substring(0,3)===\"(:~\";if(t){var n=e.split(\"\\n\"),r={description:\"\"};return n.forEach(function(e,t){t===0&&(e=e.substring(3)),e=e.trim(),e[0]===\":\"&&(e=e.substring(1)),e=e.trim(),r.description+=\" \"+e}),r.description=r.description.trim(),r.description=r.description.substring(0,r.description.length-2).trim(),r}}},{}],\"/node_modules/xqlint/lib/xqdoc/xqdoc.js\":[function(e,t,n){var r=e(\"lodash\"),i=e(\"./parse_comment\").parseComment;n.XQDoc=function(e){\"use strict\";var t={};this.getDoc=function(){return t},this.WS=function(e){e.value.trim().substring(0,3)===\"(:~\"&&(e.getParent.comment=i(e.value))},this.AnnotatedDecl=function(e){this.visitChildren(e),e.comment=e.getParent.comment,e.getParent.comment=undefined},this.XQuery=function(e){this.visitChildren(e)},this.getXQDoc=function(e){var t={moduleNamespace:e.moduleNamespace,description:e.description,variables:[],functions:[]};return r.forEach(e.variables,function(e){var n=r.cloneDeep(e.qname);n.annotations=e.annotations,n.description=e.description,n.type=e.type,n.occurrence=e.occurrence,t.variables.push(n)}),r.forEach(e.functions,function(e,n){if(n.substring(0,\"http://www.w3.org/2001/XMLSchema#\".length)===\"http://www.w3.org/2001/XMLSchema#\")return;var r=n.split(\"#\");t.functions.push({name:r[0],uri:r[1],params:e.params})}),t},this.visit=function(e){var t=e.name,n=!1;typeof this[t]==\"function\"&&(n=this[t](e)===!0),n||this.visitChildren(e)},this.visitChildren=function(e,t){for(var n=0;n<e.children.length;n++){var r=e.children[n];t!==undefined&&typeof t[r.name]==\"function\"?t[r.name](r):this.visit(r)}},this.visit(e)}},{\"./parse_comment\":\"/node_modules/xqlint/lib/xqdoc/parse_comment.js\",lodash:\"/node_modules/xqlint/node_modules/lodash/index.js\"}],\"/node_modules/xqlint/lib/xqlint.js\":[function(e,t,n){\"use strict\";var r=e(\"lodash\"),i=e(\"./parsers/JSONiqParser\").JSONiqParser,s=e(\"./parsers/XQueryParser\").XQueryParser,o=e(\"./parsers/JSONParseTreeHandler\").JSONParseTreeHandler,u=e(\"./compiler/translator\").Translator,a=e(\"./formatter/style_checker\").StyleChecker,f=e(\"./xqdoc/xqdoc\").XQDoc,l=e(\"../lib/completion/completer\"),c=e(\"./tree_ops\").TreeOps,h=n.createStaticContext=function(){var t=e(\"./compiler/static_context\").StaticContext;return new t},p=function(e,t,n){var r=e.substring(0,t),i=e.substring(0,n),s=r.split(\"\\n\").length,o=t-r.lastIndexOf(\"\\n\"),u=i.split(\"\\n\").length,a=n-i.lastIndexOf(\"\\n\"),f={sl:s-1,sc:o-1,el:u-1,ec:a-1};return f};n.JSONiqLexer=e(\"./lexers/jsoniq_lexer\").JSONiqLexer,n.XQueryLexer=e(\"./lexers/xquery_lexer\").XQueryLexer,n.XQLint=function(e,t){r.defaults&&(t=r.defaults(t?t:{},{styleCheck:!1}));var n,d,v=t.staticContext?t.staticContext:h();this.getAST=function(){return n},this.printAST=function(){return c.astAsXML(n,\"  \")},this.getXQDoc=function(){return d.getXQDoc(v)};var m=[];this.getMarkers=function(){return m},this.getMarkers=function(e){var t=[];return m.forEach(function(n){(n.type===e||e===undefined)&&t.push(n)}),t},this.getErrors=function(){return this.getMarkers(\"error\")},this.getWarnings=function(){return this.getMarkers(\"warning\")},this.getCompletions=function(t){return l.complete(e,n,v,t)};var g=!1;this.hasSyntaxError=function(){return g};var y=t.fileName?t.fileName:\"\",b=y.substring(y.length-\".jq\".length).indexOf(\".jq\")!==-1&&e.indexOf(\"xquery version\")!==0||e.indexOf(\"jsoniq version\")===0,w=new o(e),E=b?new i(e,w):new s(e,w);try{E.parse_XQuery()}catch(S){if(!(S instanceof E.ParseException))throw S;g=!0,w.closeParseTree();var x=p(e,S.getBegin(),S.getEnd()),T=E.getErrorMessage(S);x.sc===x.ec&&x.ec++,m.push({pos:x,type:\"error\",level:\"error\",message:T})}n=w.getParseTree(),t.styleCheck&&(m=m.concat((new a(n,e)).getMarkers())),d=new f(n);var N=new u(v,n);m=m.concat(N.getMarkers())}},{\"../lib/completion/completer\":\"/node_modules/xqlint/lib/completion/completer.js\",\"./compiler/static_context\":\"/node_modules/xqlint/lib/compiler/static_context.js\",\"./compiler/translator\":\"/node_modules/xqlint/lib/compiler/translator.js\",\"./formatter/style_checker\":\"/node_modules/xqlint/lib/formatter/style_checker.js\",\"./lexers/jsoniq_lexer\":\"/node_modules/xqlint/lib/lexers/jsoniq_lexer.js\",\"./lexers/xquery_lexer\":\"/node_modules/xqlint/lib/lexers/xquery_lexer.js\",\"./parsers/JSONParseTreeHandler\":\"/node_modules/xqlint/lib/parsers/JSONParseTreeHandler.js\",\"./parsers/JSONiqParser\":\"/node_modules/xqlint/lib/parsers/JSONiqParser.js\",\"./parsers/XQueryParser\":\"/node_modules/xqlint/lib/parsers/XQueryParser.js\",\"./tree_ops\":\"/node_modules/xqlint/lib/tree_ops.js\",\"./xqdoc/xqdoc\":\"/node_modules/xqlint/lib/xqdoc/xqdoc.js\",lodash:\"/node_modules/xqlint/node_modules/lodash/index.js\"}],\"/node_modules/xqlint/node_modules/lodash/index.js\":[function(e,t,n){(function(e){(function(){function Ht(e,t){if(e!==t){var n=e===null,i=e===r,s=e===e,o=t===null,u=t===r,a=t===t;if(e>t&&!o||!s||n&&!u&&a||i&&a)return 1;if(e<t&&!n||!a||o&&!i&&s||u&&s)return-1}return 0}function Bt(e,t,n){var r=e.length,i=n?r:-1;while(n?i--:++i<r)if(t(e[i],i,e))return i;return-1}function jt(e,t,n){if(t!==t)return Jt(e,n);var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function Ft(e){return typeof e==\"function\"||!1}function It(e){return e==null?\"\":e+\"\"}function qt(e,t){var n=-1,r=e.length;while(++n<r&&t.indexOf(e.charAt(n))>-1);return n}function Rt(e,t){var n=e.length;while(n--&&t.indexOf(e.charAt(n))>-1);return n}function Ut(e,t){return Ht(e.criteria,t.criteria)||e.index-t.index}function zt(e,t,n){var r=-1,i=e.criteria,s=t.criteria,o=i.length,u=n.length;while(++r<o){var a=Ht(i[r],s[r]);if(a){if(r>=u)return a;var f=n[r];return a*(f===\"asc\"||f===!0?1:-1)}}return e.index-t.index}function Wt(e){return St[e]}function Xt(e){return xt[e]}function Vt(e,t,n){return t?e=Ct[e]:n&&(e=kt[e]),\"\\\\\"+e}function $t(e){return\"\\\\\"+kt[e]}function Jt(e,t,n){var r=e.length,i=t+(n?0:-1);while(n?i--:++i<r){var s=e[i];if(s!==s)return i}return-1}function Kt(e){return!!e&&typeof e==\"object\"}function Qt(e){return e<=160&&e>=9&&e<=13||e==32||e==160||e==5760||e==6158||e>=8192&&(e<=8202||e==8232||e==8233||e==8239||e==8287||e==12288||e==65279)}function Gt(e,t){var n=-1,r=e.length,i=-1,s=[];while(++n<r)e[n]===t&&(e[n]=S,s[++i]=n);return s}function Yt(e,t){var n,r=-1,i=e.length,s=-1,o=[];while(++r<i){var u=e[r],a=t?t(u,r,e):u;if(!r||n!==a)n=a,o[++s]=u}return o}function Zt(e){var t=-1,n=e.length;while(++t<n&&Qt(e.charCodeAt(t)));return t}function en(e){var t=e.length;while(t--&&Qt(e.charCodeAt(t)));return t}function tn(e){return Tt[e]}function nn(e){function Hn(e){if(Kt(e)&&!mu(e)&&!(e instanceof In)){if(e instanceof jn)return e;if(Mt.call(e,\"__chain__\")&&Mt.call(e,\"__wrapped__\"))return gs(e)}return new jn(e)}function Bn(){}function jn(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}function In(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ln,this.__views__=[]}function qn(){var e=new In(this.__wrapped__);return e.__actions__=Yn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Yn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Yn(this.__views__),e}function Rn(){if(this.__filtered__){var e=new In(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Un(){var e=this.__wrapped__.value(),t=this.__dir__,n=mu(e),r=t<0,i=n?e.length:0,s=Ki(0,i,this.__views__),o=s.start,u=s.end,a=u-o,f=r?u:o-1,l=this.__iteratees__,c=l.length,h=0,p=xn(a,this.__takeCount__);if(!n||i<y||i==a&&p==a)return ii(r&&n?e.reverse():e,this.__actions__);var d=[];e:while(a--&&h<p){f+=t;var v=-1,m=e[f];while(++v<c){var g=l[v],E=g.iteratee,S=g.type,x=E(m);if(S==w)m=x;else if(!x){if(S==b)continue e;break e}}d[h++]=m}return d}function zn(){this.__data__={}}function Wn(e){return this.has(e)&&delete this.__data__[e]}function Xn(e){return e==\"__proto__\"?r:this.__data__[e]}function Vn(e){return e!=\"__proto__\"&&Mt.call(this.__data__,e)}function $n(e,t){return e!=\"__proto__\"&&(this.__data__[e]=t),this}function Jn(e){var t=e?e.length:0;this.data={hash:gn(null),set:new cn};while(t--)this.push(e[t])}function Kn(e,t){var n=e.data,r=typeof t==\"string\"||Nu(t)?n.set.has(t):n.hash[t];return r?0:-1}function Qn(e){var t=this.data;typeof e==\"string\"||Nu(e)?t.set.add(e):t.hash[e]=!0}function Gn(e,n){var r=-1,i=e.length,s=-1,o=n.length,u=t(i+o);while(++r<i)u[r]=e[r];while(++s<o)u[r++]=n[s];return u}function Yn(e,n){var r=-1,i=e.length;n||(n=t(i));while(++r<i)n[r]=e[r];return n}function Zn(e,t){var n=-1,r=e.length;while(++n<r)if(t(e[n],n,e)===!1)break;return e}function er(e,t){var n=e.length;while(n--)if(t(e[n],n,e)===!1)break;return e}function tr(e,t){var n=-1,r=e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function nr(e,t,n,r){var i=-1,s=e.length,o=r,u=o;while(++i<s){var a=e[i],f=+t(a);n(f,o)&&(o=f,u=a)}return u}function rr(e,t){var n=-1,r=e.length,i=-1,s=[];while(++n<r){var o=e[n];t(o,n,e)&&(s[++i]=o)}return s}function ir(e,n){var r=-1,i=e.length,s=t(i);while(++r<i)s[r]=n(e[r],r,e);return s}function sr(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function or(e,t,n,r){var i=-1,s=e.length;r&&s&&(n=e[++i]);while(++i<s)n=t(n,e[i],i,e);return n}function ur(e,t,n,r){var i=e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function ar(e,t){var n=-1,r=e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}function fr(e,t){var n=e.length,r=0;while(n--)r+=+t(e[n])||0;return r}function lr(e,t){return e===r?t:e}function cr(e,t,n,i){return e===r||!Mt.call(i,n)?t:e}function hr(e,t,n){var i=-1,s=ta(t),o=s.length;while(++i<o){var u=s[i],a=e[u],f=n(a,t[u],u,e,t);if((f===f?f!==a:a===a)||a===r&&!(u in e))e[u]=f}return e}function pr(e,t){return t==null?e:vr(t,ta(t),e)}function dr(e,n){var i=-1,s=e==null,o=!s&&es(e),u=o?e.length:0,a=n.length,f=t(a);while(++i<a){var l=n[i];o?f[i]=ts(l,u)?e[l]:r:f[i]=s?r:e[l]}return f}function vr(e,t,n){n||(n={});var r=-1,i=t.length;while(++r<i){var s=t[r];n[s]=e[s]}return n}function mr(e,t,n){var i=typeof e;return i==\"function\"?t===r?e:ui(e,t,n):e==null?qa:i==\"object\"?qr(e):t===r?Ja(e):Rr(e,t)}function gr(e,t,n,i,s,o,u){var a;n&&(a=s?n(e,i,s):n(e));if(a!==r)return a;if(!Nu(e))return e;var f=mu(e);if(f){a=Qi(e);if(!t)return Yn(e,a)}else{var l=Dt.call(e),c=l==L;if(!(l==M||l==x||c&&!s))return Et[l]?Yi(e,l,t):s?e:{};a=Gi(c?{}:e);if(!t)return pr(a,e)}o||(o=[]),u||(u=[]);var h=o.length;while(h--)if(o[h]==e)return u[h];return o.push(e),u.push(a),(f?Zn:_r)(e,function(r,i){a[i]=gr(r,t,n,i,e,o,u)}),a}function br(e,t,n){if(typeof e!=\"function\")throw new Ct(E);return hn(function(){e.apply(r,n)},t)}function wr(e,t){var n=e?e.length:0,r=[];if(!n)return r;var i=-1,s=Xi(),o=s==jt,u=o&&t.length>=y?mi(t):null,a=t.length;u&&(s=Kn,o=!1,t=u);e:while(++i<n){var f=e[i];if(o&&f===f){var l=a;while(l--)if(t[l]===f)continue e;r.push(f)}else s(t,f,0)<0&&r.push(f)}return r}function xr(e,t){var n=!0;return Er(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function Tr(e,t,n,r){var i=r,s=i;return Er(e,function(e,o,u){var a=+t(e,o,u);if(n(a,i)||a===r&&a===s)i=a,s=e}),s}function Nr(e,t,n,i){var s=e.length;n=n==null?0:+n||0,n<0&&(n=-n>s?0:s+n),i=i===r||i>s?s:+i||0,i<0&&(i+=s),s=n>i?0:i>>>0,n>>>=0;while(n<s)e[n++]=t;return e}function Cr(e,t){var n=[];return Er(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function kr(e,t,n,r){var i;return n(e,function(e,n,s){if(t(e,n,s))return i=r?n:e,!1}),i}function Lr(e,t,n,r){r||(r=[]);var i=-1,s=e.length;while(++i<s){var o=e[i];Kt(o)&&es(o)&&(n||mu(o)||vu(o))?t?Lr(o,t,n,r):sr(r,o):n||(r[r.length]=o)}return r}function Mr(e,t){return Ar(e,t,na)}function _r(e,t){return Ar(e,t,ta)}function Dr(e,t){return Or(e,t,ta)}function Pr(e,t){var n=-1,r=t.length,i=-1,s=[];while(++n<r){var o=t[n];Tu(e[o])&&(s[++i]=o)}return s}function Hr(e,t,n){if(e==null)return;n!==r&&n in vs(e)&&(t=[n]);var i=0,s=t.length;while(e!=null&&i<s)e=e[t[i++]];return i&&i==s?e:r}function Br(e,t,n,r,i,s){return e===t?!0:e==null||t==null||!Nu(e)&&!Kt(t)?e!==e&&t!==t:jr(e,t,Br,n,r,i,s)}function jr(e,t,n,r,i,s,o){var u=mu(e),a=mu(t),f=T,l=T;u||(f=Dt.call(e),f==x?f=M:f!=M&&(u=Pu(e))),a||(l=Dt.call(t),l==x?l=M:l!=M&&(a=Pu(t)));var c=f==M,h=l==M,p=f==l;if(p&&!u&&!c)return qi(e,t,f);if(!i){var d=c&&Mt.call(e,\"__wrapped__\"),v=h&&Mt.call(t,\"__wrapped__\");if(d||v)return n(d?e.value():e,v?t.value():t,r,i,s,o)}if(!p)return!1;s||(s=[]),o||(o=[]);var m=s.length;while(m--)if(s[m]==e)return o[m]==t;s.push(e),o.push(t);var g=(u?Ii:Ri)(e,t,n,r,i,s,o);return s.pop(),o.pop(),g}function Fr(e,t,n){var i=t.length,s=i,o=!n;if(e==null)return!s;e=vs(e);while(i--){var u=t[i];if(o&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}while(++i<s){u=t[i];var a=u[0],f=e[a],l=u[1];if(o&&u[2]){if(f===r&&!(a in e))return!1}else{var c=n?n(f,l,a):r;if(c===r?!Br(l,f,n,!0):!c)return!1}}return!0}function Ir(e,n){var r=-1,i=es(e)?t(e.length):[];return Er(e,function(e,t,s){i[++r]=n(e,t,s)}),i}function qr(e){var t=$i(e);if(t.length==1&&t[0][2]){var n=t[0][0],i=t[0][1];return function(e){return e==null?!1:e[n]===i&&(i!==r||n in vs(e))}}return function(e){return Fr(e,t)}}function Rr(e,t){var n=mu(e),i=rs(e)&&os(t),s=e+\"\";return e=ms(e),function(o){if(o==null)return!1;var u=s;o=vs(o);if((n||!i)&&!(u in o)){o=e.length==1?o:Hr(o,Qr(e,0,-1));if(o==null)return!1;u=Ps(e),o=vs(o)}return o[u]===t?t!==r||u in o:Br(t,o[u],r,!0)}}function Ur(e,t,n,i,s){if(!Nu(e))return e;var o=es(t)&&(mu(t)||Pu(t)),u=o?r:ta(t);return Zn(u||t,function(a,f){u&&(f=a,a=t[f]);if(Kt(a))i||(i=[]),s||(s=[]),zr(e,t,f,Ur,n,i,s);else{var l=e[f],c=n?n(l,a,f,e,t):r,h=c===r;h&&(c=a),(c!==r||o&&!(f in e))&&(h||(c===c?c!==l:l===l))&&(e[f]=c)}}),e}function zr(e,t,n,i,s,o,u){var a=o.length,f=t[n];while(a--)if(o[a]==f){e[n]=u[a];return}var l=e[n],c=s?s(l,f,n,e,t):r,h=c===r;h&&(c=f,es(f)&&(mu(f)||Pu(f))?c=mu(l)?l:es(l)?Yn(l):[]:Mu(f)||vu(f)?c=vu(l)?Iu(l):Mu(l)?l:{}:h=!1),o.push(f),u.push(c);if(h)e[n]=i(c,f,s,o,u);else if(c===c?c!==l:l===l)e[n]=c}function Wr(e){return function(t){return t==null?r:t[e]}}function Xr(e){var t=e+\"\";return e=ms(e),function(n){return Hr(n,e,t)}}function Vr(e,t){var n=e?t.length:0;while(n--){var r=t[n];if(r!=i&&ts(r)){var i=r;pn.call(e,r,1)}}return e}function $r(e,t){return e+yn(Cn()*(t-e+1))}function Jr(e,t,n,r,i){return i(e,function(e,i,s){n=r?(r=!1,e):t(n,e,i,s)}),n}function Qr(e,n,i){var s=-1,o=e.length;n=n==null?0:+n||0,n<0&&(n=-n>o?0:o+n),i=i===r||i>o?o:+i||0,i<0&&(i+=o),o=n>i?0:i-n>>>0,n>>>=0;var u=t(o);while(++s<o)u[s]=e[s+n];return u}function Gr(e,t){var n;return Er(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function Yr(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Zr(e,t,n){var r=Ui(),i=-1;t=ir(t,function(e){return r(e)});var s=Ir(e,function(e){var n=ir(t,function(t){return t(e)});return{criteria:n,index:++i,value:e}});return Yr(s,function(e,t){return zt(e,t,n)})}function ei(e,t){var n=0;return Er(e,function(e,r,i){n+=+t(e,r,i)||0}),n}function ti(e,t){var n=-1,r=Xi(),i=e.length,s=r==jt,o=s&&i>=y,u=o?mi():null,a=[];u?(r=Kn,s=!1):(o=!1,u=t?[]:a);e:while(++n<i){var f=e[n],l=t?t(f,n,e):f;if(s&&f===f){var c=u.length;while(c--)if(u[c]===l)continue e;t&&u.push(l),a.push(f)}else r(u,l,0)<0&&((t||o)&&u.push(l),a.push(f))}return a}function ni(e,n){var r=-1,i=n.length,s=t(i);while(++r<i)s[r]=e[n[r]];return s}function ri(e,t,n,r){var i=e.length,s=r?i:-1;while((r?s--:++s<i)&&t(e[s],s,e));return n?Qr(e,r?0:s,r?s+1:i):Qr(e,r?s+1:0,r?i:s)}function ii(e,t){var n=e;n instanceof In&&(n=n.value());var r=-1,i=t.length;while(++r<i){var s=t[r];n=s.func.apply(s.thisArg,sr([n],s.args))}return n}function si(e,t,n){var r=0,i=e?e.length:r;if(typeof t==\"number\"&&t===t&&i<=Mn){while(r<i){var s=r+i>>>1,o=e[s];(n?o<=t:o<t)&&o!==null?r=s+1:i=s}return i}return oi(e,t,qa,n)}function oi(e,t,n,i){t=n(t);var s=0,o=e?e.length:0,u=t!==t,a=t===null,f=t===r;while(s<o){var l=yn((s+o)/2),c=n(e[l]),h=c!==r,p=c===c;if(u)var d=p||i;else a?d=p&&h&&(i||c!=null):f?d=p&&(i||h):c==null?d=!1:d=i?c<=t:c<t;d?s=l+1:o=l}return xn(o,On)}function ui(e,t,n){if(typeof e!=\"function\")return qa;if(t===r)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,s){return e.call(t,n,r,i,s)};case 5:return function(n,r,i,s,o){return e.call(t,n,r,i,s,o)}}return function(){return e.apply(t,arguments)}}function ai(e){var t=new on(e.byteLength),n=new dn(t);return n.set(new dn(e)),t}function fi(e,n,r){var i=r.length,s=-1,o=Sn(e.length-i,0),u=-1,a=n.length,f=t(a+o);while(++u<a)f[u]=n[u];while(++s<i)f[r[s]]=e[s];while(o--)f[u++]=e[s++];return f}function li(e,n,r){var i=-1,s=r.length,o=-1,u=Sn(e.length-s,0),a=-1,f=n.length,l=t(u+f);while(++o<u)l[o]=e[o];var c=o;while(++a<f)l[c+a]=n[a];while(++i<s)l[c+r[i]]=e[o++];return l}function ci(e,t){return function(n,r,i){var s=t?t():{};r=Ui(r,i,3);if(mu(n)){var o=-1,u=n.length;while(++o<u){var a=n[o];e(s,a,r(a,o,n),n)}}else Er(n,function(t,n,i){e(s,t,r(t,n,i),i)});return s}}function hi(e){return uu(function(t,n){var i=-1,s=t==null?0:n.length,o=s>2?n[s-2]:r,u=s>2?n[2]:r,a=s>1?n[s-1]:r;typeof o==\"function\"?(o=ui(o,a,5),s-=2):(o=typeof a==\"function\"?a:r,s-=o?1:0),u&&ns(n[0],n[1],u)&&(o=s<3?r:o,s=1);while(++i<s){var f=n[i];f&&e(t,f,o)}return t})}function pi(e,t){return function(n,r){var i=n?Vi(n):0;if(!ss(i))return e(n,r);var s=t?i:-1,o=vs(n);while(t?s--:++s<i)if(r(o[s],s,o)===!1)break;return n}}function di(e){return function(t,n,r){var i=vs(t),s=r(t),o=s.length,u=e?o:-1;while(e?u--:++u<o){var a=s[u];if(n(i[a],a,i)===!1)break}return t}}function vi(e,t){function r(){var i=this&&this!==Pt&&this instanceof r?n:e;return i.apply(t,arguments)}var n=yi(e);return r}function mi(e){return gn&&cn?new Jn(e):null}function gi(e){return function(t){var n=-1,r=Ba(ga(t)),i=r.length,s=\"\";while(++n<i)s=e(s,r[n],n);return s}}function yi(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 n=yr(e.prototype),r=e.apply(n,t);return Nu(r)?r:n}}function bi(e){function t(n,i,s){s&&ns(n,i,s)&&(i=r);var o=Fi(n,e,r,r,r,r,r,i);return o.placeholder=t.placeholder,o}return t}function wi(e,t){return uu(function(n){var i=n[0];return i==null?i:(n.push(t),e.apply(r,n))})}function Ei(e,t){return function(n,i,s){s&&ns(n,i,s)&&(i=r),i=Ui(i,s,3);if(i.length==1){n=mu(n)?n:ds(n);var o=nr(n,i,e,t);if(!n.length||o!==t)return o}return Tr(n,i,e,t)}}function Si(e,t){return function(n,i,s){i=Ui(i,s,3);if(mu(n)){var o=Bt(n,i,t);return o>-1?n[o]:r}return kr(n,i,e)}}function xi(e){return function(t,n,r){return!t||!t.length?-1:(n=Ui(n,r,3),Bt(t,n,e))}}function Ti(e){return function(t,n,r){return n=Ui(n,r,3),kr(t,n,e,!0)}}function Ni(e){return function(){var n,i=arguments.length,s=e?i:-1,o=0,u=t(i);while(e?s--:++s<i){var f=u[o++]=arguments[s];if(typeof f!=\"function\")throw new Ct(E);!n&&jn.prototype.thru&&Wi(f)==\"wrapper\"&&(n=new jn([],!0))}s=n?-1:i;while(++s<i){f=u[s];var c=Wi(f),d=c==\"wrapper\"?zi(f):r;d&&is(d[0])&&d[1]==(h|a|l|p)&&!d[4].length&&d[9]==1?n=n[Wi(d[0])].apply(n,d[3]):n=f.length==1&&is(f)?n[c]():n.thru(f)}return function(){var e=arguments,t=e[0];if(n&&e.length==1&&mu(t)&&t.length>=y)return n.plant(t).value();var r=0,s=i?u[r].apply(this,e):t;while(++r<i)s=u[r].call(this,s);return s}}}function Ci(e,t){return function(n,i,s){return typeof i==\"function\"&&s===r&&mu(n)?e(n,i):t(n,ui(i,s,3))}}function ki(e){return function(t,n,i){if(typeof n!=\"function\"||i!==r)n=ui(n,i,3);return e(t,n,na)}}function Li(e){return function(t,n,i){if(typeof n!=\"function\"||i!==r)n=ui(n,i,3);return e(t,n)}}function Ai(e){return function(t,n,r){var i={};return n=Ui(n,r,3),_r(t,function(t,r,s){var o=n(t,r,s);r=e?o:r,t=e?t:o,i[r]=t}),i}}function Oi(e){return function(t,n,r){return t=It(t),(e?t:\"\")+Pi(t,n,r)+(e?\"\":t)}}function Mi(e){var t=uu(function(n,i){var s=Gt(i,t.placeholder);return Fi(n,e,r,i,s)});return t}function _i(e,t){return function(n,i,s,o){var u=arguments.length<3;return typeof i==\"function\"&&o===r&&mu(n)?e(n,i,s,u):Jr(n,Ui(i,o,4),s,u,t)}}function Di(e,n,i,p,d,v,m,g,y,b){function k(){var u=arguments.length,a=u,f=t(u);while(a--)f[a]=arguments[a];p&&(f=fi(f,p,d)),v&&(f=li(f,v,m));if(x||N){var h=k.placeholder,L=Gt(f,h);u-=L.length;if(u<b){var A=g?Yn(g):r,O=Sn(b-u,0),M=x?L:r,_=x?r:L,D=x?f:r,P=x?r:f;n|=x?l:c,n&=~(x?c:l),T||(n&=~(s|o));var H=[e,n,i,D,M,P,_,A,y,O],B=Di.apply(r,H);return is(e)&&hs(B,H),B.placeholder=h,B}}var j=E?i:this,F=S?j[e]:e;return g&&(f=cs(f,g)),w&&y<f.length&&(f.length=y),this&&this!==Pt&&this instanceof k&&(F=C||yi(e)),F.apply(j,f)}var w=n&h,E=n&s,S=n&o,x=n&a,T=n&u,N=n&f,C=S?r:yi(e);return k}function Pi(e,t,n){var r=e.length;t=+t;if(r>=t||!wn(t))return\"\";var i=t-r;return n=n==null?\" \":n+\"\",Ca(n,mn(i/n.length)).slice(0,i)}function Hi(e,n,r,i){function a(){var n=-1,s=arguments.length,f=-1,l=i.length,c=t(l+s);while(++f<l)c[f]=i[f];while(s--)c[f++]=arguments[++n];var h=this&&this!==Pt&&this instanceof a?u:e;return h.apply(o?r:this,c)}var o=n&s,u=yi(e);return a}function Bi(e){var t=H[e];return function(e,n){return n=n===r?0:+n||0,n?(n=fn(10,n),t(e*n)/n):t(e)}}function ji(e){return function(t,n,r,i){var s=Ui(r);return r==null&&s===mr?si(t,n,e):oi(t,n,s(r,i,1),e)}}function Fi(e,t,n,i,u,a,f,h){var p=t&o;if(!p&&typeof e!=\"function\")throw new Ct(E);var d=i?i.length:0;d||(t&=~(l|c),i=u=r),d-=u?u.length:0;if(t&c){var v=i,m=u;i=u=r}var g=p?r:zi(e),y=[e,t,n,i,u,v,m,a,f,h];g&&(us(y,g),t=y[1],h=y[9]),y[9]=h==null?p?0:e.length:Sn(h-d,0)||0;if(t==s)var b=vi(y[0],y[2]);else t!=l&&t!=(s|l)||!!y[4].length?b=Di.apply(r,y):b=Hi.apply(r,y);var w=g?Kr:hs;return w(b,y)}function Ii(e,t,n,i,s,o,u){var a=-1,f=e.length,l=t.length;if(f!=l&&!(s&&l>f))return!1;while(++a<f){var c=e[a],h=t[a],p=i?i(s?h:c,s?c:h,a):r;if(p!==r){if(p)continue;return!1}if(s){if(!ar(t,function(e){return c===e||n(c,e,i,s,o,u)}))return!1}else if(c!==h&&!n(c,h,i,s,o,u))return!1}return!0}function qi(e,t,n){switch(n){case N:case C:return+e==+t;case k:return e.name==t.name&&e.message==t.message;case O:return e!=+e?t!=+t:e==+t;case _:case P:return e==t+\"\"}return!1}function Ri(e,t,n,i,s,o,u){var a=ta(e),f=a.length,l=ta(t),c=l.length;if(f!=c&&!s)return!1;var h=f;while(h--){var p=a[h];if(!(s?p in t:Mt.call(t,p)))return!1}var d=s;while(++h<f){p=a[h];var v=e[p],m=t[p],g=i?i(s?m:v,s?v:m,p):r;if(g===r?!n(v,m,i,s,o,u):!g)return!1;d||(d=p==\"constructor\")}if(!d){var y=e.constructor,b=t.constructor;if(y!=b&&\"constructor\"in e&&\"constructor\"in t&&!(typeof y==\"function\"&&y instanceof y&&typeof b==\"function\"&&b instanceof b))return!1}return!0}function Ui(e,t,n){var r=Hn.callback||Fa;return r=r===Fa?mr:r,n?r(e,t,n):r}function Wi(e){var t=e.name,n=Pn[t],r=n?n.length:0;while(r--){var i=n[r],s=i.func;if(s==null||s==e)return i.name}return t}function Xi(e,t,n){var r=Hn.indexOf||Ms;return r=r===Ms?jt:r,e?r(e,t,n):r}function $i(e){var t=oa(e),n=t.length;while(n--)t[n][2]=os(t[n][1]);return t}function Ji(e,t){var n=e==null?r:e[t];return Lu(n)?n:r}function Ki(e,t,n){var r=-1,i=n.length;while(++r<i){var s=n[r],o=s.size;switch(s.type){case\"drop\":e+=o;break;case\"dropRight\":t-=o;break;case\"take\":t=xn(t,e+o);break;case\"takeRight\":e=Sn(e,t-o)}}return{start:e,end:t}}function Qi(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==\"string\"&&Mt.call(e,\"index\")&&(n.index=e.index,n.input=e.input),n}function Gi(e){var t=e.constructor;return typeof t==\"function\"&&t instanceof t||(t=xt),new t}function Yi(e,t,n){var r=e.constructor;switch(t){case B:return ai(e);case N:case C:return new r(+e);case j:case F:case I:case q:case R:case U:case z:case W:case X:var i=e.buffer;return new r(n?ai(i):i,e.byteOffset,e.length);case O:case P:return new r(e);case _:var s=new r(e.source,lt.exec(e));s.lastIndex=e.lastIndex}return s}function Zi(e,t,n){e!=null&&!rs(t,e)&&(t=ms(t),e=t.length==1?e:Hr(e,Qr(t,0,-1)),t=Ps(t));var i=e==null?e:e[t];return i==null?r:i.apply(e,n)}function es(e){return e!=null&&ss(Vi(e))}function ts(e,t){return e=typeof e==\"number\"||pt.test(e)?+e:-1,t=t==null?_n:t,e>-1&&e%1==0&&e<t}function ns(e,t,n){if(!Nu(n))return!1;var r=typeof t;if(r==\"number\"?es(n)&&ts(t,n.length):r==\"string\"&&t in n){var i=n[t];return e===e?e===i:i!==i}return!1}function rs(e,t){var n=typeof e;if(n==\"string\"&&rt.test(e)||n==\"number\")return!0;if(mu(e))return!1;var r=!nt.test(e);return r||t!=null&&e in vs(t)}function is(e){var t=Wi(e);if(t in In.prototype){var n=Hn[t];if(e===n)return!0;var r=zi(n);return!!r&&e===r[0]}return!1}function ss(e){return typeof e==\"number\"&&e>-1&&e%1==0&&e<=_n}function os(e){return e===e&&!Nu(e)}function us(e,t){var n=e[1],r=t[1],i=n|r,o=i<h,f=r==h&&n==a||r==h&&n==p&&e[7].length<=t[8]||r==(h|p)&&n==a;if(!o&&!f)return e;r&s&&(e[2]=t[2],i|=n&s?0:u);var l=t[3];if(l){var c=e[3];e[3]=c?fi(c,l,t[4]):Yn(l),e[4]=c?Gt(e[3],S):Yn(t[4])}return l=t[5],l&&(c=e[5],e[5]=c?li(c,l,t[6]):Yn(l),e[6]=c?Gt(e[5],S):Yn(t[6])),l=t[7],l&&(e[7]=Yn(l)),r&h&&(e[8]=e[8]==null?t[8]:xn(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function as(e,t){return e===r?t:qu(e,t,as)}function fs(e,t){e=vs(e);var n=-1,r=t.length,i={};while(++n<r){var s=t[n];s in e&&(i[s]=e[s])}return i}function ls(e,t){var n={};return Mr(e,function(e,r,i){t(e,r,i)&&(n[r]=e)}),n}function cs(e,t){var n=e.length,i=xn(t.length,n),s=Yn(e);while(i--){var o=t[i];e[i]=ts(o,n)?s[o]:r}return e}function ps(e){var t=na(e),n=t.length,r=n&&e.length,i=!!r&&ss(r)&&(mu(e)||vu(e)),s=-1,o=[];while(++s<n){var u=t[s];(i&&ts(u,r)||Mt.call(e,u))&&o.push(u)}return o}function ds(e){return e==null?[]:es(e)?Nu(e)?e:xt(e):ca(e)}function vs(e){return Nu(e)?e:xt(e)}function ms(e){if(mu(e))return e;var t=[];return It(e).replace(it,function(e,n,r,i){t.push(r?i.replace(at,\"$1\"):n||e)}),t}function gs(e){return e instanceof In?e.clone():new jn(e.__wrapped__,e.__chain__,Yn(e.__actions__))}function ys(e,n,r){(r?ns(e,n,r):n==null)?n=1:n=Sn(yn(n)||1,1);var i=0,s=e?e.length:0,o=-1,u=t(mn(s/n));while(i<s)u[++o]=Qr(e,i,i+=n);return u}function bs(e){var t=-1,n=e?e.length:0,r=-1,i=[];while(++t<n){var s=e[t];s&&(i[++r]=s)}return i}function Es(e,t,n){var r=e?e.length:0;if(!r)return[];if(n?ns(e,t,n):t==null)t=1;return Qr(e,t<0?0:t)}function Ss(e,t,n){var r=e?e.length:0;if(!r)return[];if(n?ns(e,t,n):t==null)t=1;return t=r-(+t||0),Qr(e,0,t<0?0:t)}function xs(e,t,n){return e&&e.length?ri(e,Ui(t,n,3),!0,!0):[]}function Ts(e,t,n){return e&&e.length?ri(e,Ui(t,n,3),!0):[]}function Ns(e,t,n,r){var i=e?e.length:0;return i?(n&&typeof n!=\"number\"&&ns(e,t,n)&&(n=0,r=i),Nr(e,t,n,r)):[]}function Ls(e){return e?e[0]:r}function As(e,t,n){var r=e?e.length:0;return n&&ns(e,t,n)&&(t=!1),r?Lr(e,t):[]}function Os(e){var t=e?e.length:0;return t?Lr(e,!0):[]}function Ms(e,t,n){var r=e?e.length:0;if(!r)return-1;if(typeof n==\"number\")n=n<0?Sn(r+n,0):n;else if(n){var i=si(e,t);return i<r&&(t===t?t===e[i]:e[i]!==e[i])?i:-1}return jt(e,t,n||0)}function _s(e){return Ss(e,1)}function Ps(e){var t=e?e.length:0;return t?e[t-1]:r}function Hs(e,t,n){var r=e?e.length:0;if(!r)return-1;var i=r;if(typeof n==\"number\")i=(n<0?Sn(r+n,0):xn(n||0,r-1))+1;else if(n){i=si(e,t,!0)-1;var s=e[i];return(t===t?t===s:s!==s)?i:-1}if(t!==t)return Jt(e,i,!0);while(i--)if(e[i]===t)return i;return-1}function Bs(){var e=arguments,t=e[0];if(!t||!t.length)return t;var n=0,r=Xi(),i=e.length;while(++n<i){var s=0,o=e[n];while((s=r(t,o,s))>-1)pn.call(t,s,1)}return t}function Fs(e,t,n){var r=[];if(!e||!e.length)return r;var i=-1,s=[],o=e.length;t=Ui(t,n,3);while(++i<o){var u=e[i];t(u,i,e)&&(r.push(u),s.push(i))}return Vr(e,s),r}function Is(e){return Es(e,1)}function qs(e,t,n){var r=e?e.length:0;return r?(n&&typeof n!=\"number\"&&ns(e,t,n)&&(t=0,n=r),Qr(e,t,n)):[]}function zs(e,t,n){var r=e?e.length:0;if(!r)return[];if(n?ns(e,t,n):t==null)t=1;return Qr(e,0,t<0?0:t)}function Ws(e,t,n){var r=e?e.length:0;if(!r)return[];if(n?ns(e,t,n):t==null)t=1;return t=r-(+t||0),Qr(e,t<0?0:t)}function Xs(e,t,n){return e&&e.length?ri(e,Ui(t,n,3),!1,!0):[]}function Vs(e,t,n){return e&&e.length?ri(e,Ui(t,n,3)):[]}function Js(e,t,n,i){var s=e?e.length:0;if(!s)return[];t!=null&&typeof t!=\"boolean\"&&(i=n,n=ns(e,t,i)?r:t,t=!1);var o=Ui();if(n!=null||o!==mr)n=o(n,i,3);return t&&Xi()==jt?Yt(e,n):ti(e,n)}function Ks(e){if(!e||!e.length)return[];var n=-1,r=0;e=rr(e,function(e){if(es(e))return r=Sn(e.length,r),!0});var i=t(r);while(++n<r)i[n]=ir(e,Wr(n));return i}function Qs(e,t,n){var i=e?e.length:0;if(!i)return[];var s=Ks(e);return t==null?s:(t=ui(t,n,4),ir(s,function(e){return or(e,t,r,!0)}))}function Ys(){var e=-1,t=arguments.length;while(++e<t){var n=arguments[e];if(es(n))var r=r?sr(wr(r,n),wr(n,r)):n}return r?ti(r):[]}function eo(e,t){var n=-1,r=e?e.length:0,i={};r&&!t&&!mu(e[0])&&(t=[]);while(++n<r){var s=e[n];t?i[s]=t[n]:s&&(i[s[0]]=s[1])}return i}function no(e){var t=Hn(e);return t.__chain__=!0,t}function ro(e,t,n){return t.call(n,e),e}function io(e,t,n){return t.call(n,e)}function so(){return no(this)}function oo(){return new jn(this.value(),this.__chain__)}function ao(e){var t,n=this;while(n instanceof Bn){var r=gs(n);t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function fo(){var e=this.__wrapped__,t=function(e){return n&&n.__dir__<0?e:e.reverse()};if(e instanceof In){var n=e;return this.__actions__.length&&(n=new In(this)),n=n.reverse(),n.__actions__.push({func:io,args:[t],thisArg:r}),new jn(n,this.__chain__)}return this.thru(t)}function lo(){return this.value()+\"\"}function co(){return ii(this.__wrapped__,this.__actions__)}function vo(e,t,n){var i=mu(e)?tr:xr;n&&ns(e,t,n)&&(t=r);if(typeof t!=\"function\"||n!==r)t=Ui(t,n,3);return i(e,t)}function mo(e,t,n){var r=mu(e)?rr:Cr;return t=Ui(t,n,3),r(e,t)}function bo(e,t){return go(e,qr(t))}function xo(e,t,n,r){var i=e?Vi(e):0;return ss(i)||(e=ca(e),i=e.length),typeof n!=\"number\"||r&&ns(t,n,r)?n=0:n=n<0?Sn(i+n,0):n||0,typeof e==\"string\"||!mu(e)&&Du(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Xi(e,t,n)>-1}function Co(e,t,n){var r=mu(e)?ir:Ir;return t=Ui(t,n,3),r(e,t)}function Lo(e,t){return Co(e,Ja(t))}function Mo(e,t,n){var r=mu(e)?rr:Cr;return t=Ui(t,n,3),r(e,function(e,n,r){return!t(e,n,r)})}function _o(e,t,n){if(n?ns(e,t,n):t==null){e=ds(e);var i=e.length;return i>0?e[$r(0,i-1)]:r}var s=-1,o=Fu(e),i=o.length,u=i-1;t=xn(t<0?0:+t||0,i);while(++s<t){var a=$r(s,u),f=o[a];o[a]=o[s],o[s]=f}return o.length=t,o}function Do(e){return _o(e,Ln)}function Po(e){var t=e?Vi(e):0;return ss(t)?t:ta(e).length}function Ho(e,t,n){var i=mu(e)?ar:Gr;n&&ns(e,t,n)&&(t=r);if(typeof t!=\"function\"||n!==r)t=Ui(t,n,3);return i(e,t)}function Bo(e,t,n){if(e==null)return[];n&&ns(e,t,n)&&(t=r);var i=-1;t=Ui(t,n,3);var s=Ir(e,function(e,n,r){return{criteria:t(e,n,r),index:++i,value:e}});return Yr(s,Ut)}function Fo(e,t,n,i){return e==null?[]:(i&&ns(t,n,i)&&(n=r),mu(t)||(t=t==null?[]:[t]),mu(n)||(n=n==null?[]:[n]),Zr(e,t,n))}function Io(e,t){return mo(e,qr(t))}function Ro(e,t){if(typeof t!=\"function\"){if(typeof e!=\"function\")throw new Ct(E);var n=e;e=t,t=n}return e=wn(e=+e)?e:0,function(){if(--e<1)return t.apply(this,arguments)}}function Uo(e,t,n){return n&&ns(e,t,n)&&(t=r),t=e&&t==null?e.length:Sn(+t||0,0),Fi(e,h,r,r,r,r,t)}function zo(e,t){var n;if(typeof t!=\"function\"){if(typeof e!=\"function\")throw new Ct(E);var i=e;e=t,t=i}return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}function Ko(e,t,n){function v(){f&&un(f),s&&un(s),c=0,s=f=l=r}function m(t,n){n&&un(n),s=f=l=r,t&&(c=qo(),o=e.apply(a,i),!f&&!s&&(i=a=r))}function g(){var e=t-(qo()-u);e<=0||e>t?m(l,s):f=hn(g,e)}function y(){m(p,f)}function b(){i=arguments,u=qo(),a=this,l=p&&(f||!d);if(h===!1)var n=d&&!f;else{!s&&!d&&(c=u);var v=h-(u-c),m=v<=0||v>h;m?(s&&(s=un(s)),c=u,o=e.apply(a,i)):s||(s=hn(y,v))}return m&&f?f=un(f):!f&&t!==h&&(f=hn(g,t)),n&&(m=!0,o=e.apply(a,i)),m&&!f&&!s&&(i=a=r),o}var i,s,o,u,a,f,l,c=0,h=!1,p=!0;if(typeof e!=\"function\")throw new Ct(E);t=t<0?0:+t||0;if(n===!0){var d=!0;p=!1}else Nu(n)&&(d=!!n.leading,h=\"maxWait\"in n&&Sn(+n.maxWait||0,t),p=\"trailing\"in n?!!n.trailing:p);return b.cancel=v,b}function eu(e,t){if(typeof e!=\"function\"||t&&typeof t!=\"function\")throw new Ct(E);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o),o};return n.cache=new eu.Cache,n}function nu(e){if(typeof e!=\"function\")throw new Ct(E);return function(){return!e.apply(this,arguments)}}function ru(e){return zo(2,e)}function uu(e,n){if(typeof e!=\"function\")throw new Ct(E);return n=Sn(n===r?e.length-1:+n||0,0),function(){var r=arguments,i=-1,s=Sn(r.length-n,0),o=t(s);while(++i<s)o[i]=r[n+i];switch(n){case 0:return e.call(this,o);case 1:return e.call(this,r[0],o);case 2:return e.call(this,r[0],r[1],o)}var u=t(n+1);i=-1;while(++i<n)u[i]=r[i];return u[n]=o,e.apply(this,u)}}function au(e){if(typeof e!=\"function\")throw new Ct(E);return function(t){return e.apply(this,t)}}function fu(e,t,n){var r=!0,i=!0;if(typeof e!=\"function\")throw new Ct(E);return n===!1?r=!1:Nu(n)&&(r=\"leading\"in n?!!n.leading:r,i=\"trailing\"in n?!!n.trailing:i),Ko(e,t,{leading:r,maxWait:+t,trailing:i})}function lu(e,t){return t=t==null?qa:t,Fi(t,l,r,[e],[])}function cu(e,t,n,r){return t&&typeof t!=\"boolean\"&&ns(e,t,n)?t=!1:typeof t==\"function\"&&(r=n,n=t,t=!1),typeof n==\"function\"?gr(e,t,ui(n,r,1)):gr(e,t)}function hu(e,t,n){return typeof t==\"function\"?gr(e,!0,ui(t,n,1)):gr(e,!0)}function pu(e,t){return e>t}function du(e,t){return e>=t}function vu(e){return Kt(e)&&es(e)&&Mt.call(e,\"callee\")&&!ln.call(e,\"callee\")}function gu(e){return e===!0||e===!1||Kt(e)&&Dt.call(e)==N}function yu(e){return Kt(e)&&Dt.call(e)==C}function bu(e){return!!e&&e.nodeType===1&&Kt(e)&&!Mu(e)}function wu(e){return e==null?!0:es(e)&&(mu(e)||Du(e)||vu(e)||Kt(e)&&Tu(e.splice))?!e.length:!ta(e).length}function Eu(e,t,n,i){n=typeof n==\"function\"?ui(n,i,3):r;var s=n?n(e,t):r;return s===r?Br(e,t,n):!!s}function Su(e){return Kt(e)&&typeof e.message==\"string\"&&Dt.call(e)==k}function xu(e){return typeof e==\"number\"&&wn(e)}function Tu(e){return Nu(e)&&Dt.call(e)==L}function Nu(e){var t=typeof e;return!!e&&(t==\"object\"||t==\"function\")}function Cu(e,t,n,i){return n=typeof n==\"function\"?ui(n,i,3):r,Fr(e,$i(t),n)}function ku(e){return Ou(e)&&e!=+e}function Lu(e){return e==null?!1:Tu(e)?sn.test(Ot.call(e)):Kt(e)&&ht.test(e)}function Au(e){return e===null}function Ou(e){return typeof e==\"number\"||Kt(e)&&Dt.call(e)==O}function Mu(e){var t;if(!Kt(e)||Dt.call(e)!=M||!!vu(e)||!Mt.call(e,\"constructor\")&&(t=e.constructor,typeof t==\"function\"&&!(t instanceof t)))return!1;var n;return Mr(e,function(e,t){n=t}),n===r||Mt.call(e,n)}function _u(e){return Nu(e)&&Dt.call(e)==_}function Du(e){return typeof e==\"string\"||Kt(e)&&Dt.call(e)==P}function Pu(e){return Kt(e)&&ss(e.length)&&!!wt[Dt.call(e)]}function Hu(e){return e===r}function Bu(e,t){return e<t}function ju(e,t){return e<=t}function Fu(e){var t=e?Vi(e):0;return ss(t)?t?Yn(e):[]:ca(e)}function Iu(e){return vr(e,na(e))}function Uu(e,t,n){var i=yr(e);return n&&ns(e,t,n)&&(t=r),t?pr(i,t):i}function Gu(e){return Pr(e,na(e))}function Yu(e,t,n){var i=e==null?r:Hr(e,ms(t),t+\"\");return i===r?n:i}function Zu(e,t){if(e==null)return!1;var n=Mt.call(e,t);if(!n&&!rs(t)){t=ms(t),e=t.length==1?e:Hr(e,Qr(t,0,-1));if(e==null)return!1;t=Ps(t),n=Mt.call(e,t)}return n||ss(e.length)&&ts(t,e.length)&&(mu(e)||vu(e))}function ea(e,t,n){n&&ns(e,t,n)&&(t=r);var i=-1,s=ta(e),o=s.length,u={};while(++i<o){var a=s[i],f=e[a];t?Mt.call(u,f)?u[f].push(a):u[f]=[a]:u[f]=a}return u}function na(e){if(e==null)return[];Nu(e)||(e=xt(e));var n=e.length;n=n&&ss(n)&&(mu(e)||vu(e))&&n||0;var r=e.constructor,i=-1,s=typeof r==\"function\"&&r.prototype===e,o=t(n),u=n>0;while(++i<n)o[i]=i+\"\";for(var a in e)(!u||!ts(a,n))&&(a!=\"constructor\"||!s&&!!Mt.call(e,a))&&o.push(a);return o}function oa(e){e=vs(e);var n=-1,r=ta(e),i=r.length,s=t(i);while(++n<i){var o=r[n];s[n]=[o,e[o]]}return s}function aa(e,t,n){var i=e==null?r:e[t];return i===r&&(e!=null&&!rs(t,e)&&(t=ms(t),e=t.length==1?e:Hr(e,Qr(t,0,-1)),i=e==null?r:e[Ps(t)]),i=i===r?n:i),Tu(i)?i.call(e):i}function fa(e,t,n){if(e==null)return e;var r=t+\"\";t=e[r]!=null||rs(t,e)?[r]:ms(t);var i=-1,s=t.length,o=s-1,u=e;while(u!=null&&++i<s){var a=t[i];Nu(u)&&(i==o?u[a]=n:u[a]==null&&(u[a]=ts(t[i+1])?[]:{})),u=u[a]}return e}function la(e,t,n,i){var s=mu(e)||Pu(e);t=Ui(t,i,4);if(n==null)if(s||Nu(e)){var o=e.constructor;s?n=mu(e)?new o:[]:n=yr(Tu(o)?o.prototype:r)}else n={};return(s?Zn:_r)(e,function(e,r,i){return t(n,e,r,i)}),n}function ca(e){return ni(e,ta(e))}function ha(e){return ni(e,na(e))}function pa(e,t,n){return t=+t||0,n===r?(n=t,t=0):n=+n||0,e>=xn(t,n)&&e<Sn(t,n)}function da(e,t,n){n&&ns(e,t,n)&&(t=n=r);var i=e==null,s=t==null;n==null&&(s&&typeof e==\"boolean\"?(n=e,e=1):typeof t==\"boolean\"&&(n=t,s=!0)),i&&s&&(t=1,s=!1),e=+e||0,s?(t=e,e=0):t=+t||0;if(n||e%1||t%1){var o=Cn();return xn(e+o*(t-e+an(\"1e-\"+((o+\"\").length-1))),t)}return $r(e,t)}function ma(e){return e=It(e),e&&e.charAt(0).toUpperCase()+e.slice(1)}function ga(e){return e=It(e),e&&e.replace(dt,Wt).replace(ut,\"\")}function ya(e,t,n){e=It(e),t+=\"\";var i=e.length;return n=n===r?i:xn(n<0?0:+n||0,i),n-=t.length,n>=0&&e.indexOf(t,n)==n}function ba(e){return e=It(e),e&&Y.test(e)?e.replace(Q,Xt):e}function wa(e){return e=It(e),e&&ot.test(e)?e.replace(st,Vt):e||\"(?:)\"}function Sa(e,t,n){e=It(e),t=+t;var r=e.length;if(r>=t||!wn(t))return e;var i=(t-r)/2,s=yn(i),o=mn(i);return n=Pi(\"\",o,n),n.slice(0,s)+e+n}function Na(e,t,n){return(n?ns(e,t,n):t==null)?t=0:t&&(t=+t),e=Ma(e),Nn(e,t||(ct.test(e)?16:10))}function Ca(e,t){var n=\"\";e=It(e),t=+t;if(t<1||!e||!wn(t))return n;do t%2&&(n+=e),t=yn(t/2),e+=e;while(t);return n}function Aa(e,t,n){return e=It(e),n=n==null?0:xn(n<0?0:+n||0,e.length),e.lastIndexOf(t,n)==n}function Oa(e,t,n){var i=Hn.templateSettings;n&&ns(e,t,n)&&(t=n=r),e=It(e),t=hr(pr({},n||t),i,cr);var s=hr(pr({},t.imports),i.imports,cr),o=ta(s),u=ni(s,o),a,f,l=0,c=t.interpolate||vt,h=\"__p += '\",p=Tt((t.escape||vt).source+\"|\"+c.source+\"|\"+(c===tt?ft:vt).source+\"|\"+(t.evaluate||vt).source+\"|$\",\"g\"),d=\"//# sourceURL=\"+(\"sourceURL\"in t?t.sourceURL:\"lodash.templateSources[\"+ ++bt+\"]\")+\"\\n\";e.replace(p,function(t,n,r,i,s,o){return r||(r=i),h+=e.slice(l,o).replace(mt,$t),n&&(a=!0,h+=\"' +\\n__e(\"+n+\") +\\n'\"),s&&(f=!0,h+=\"';\\n\"+s+\";\\n__p += '\"),r&&(h+=\"' +\\n((__t = (\"+r+\")) == null ? '' : __t) +\\n'\"),l=o+t.length,t}),h+=\"';\\n\";var v=t.variable;v||(h=\"with (obj) {\\n\"+h+\"\\n}\\n\"),h=(f?h.replace(V,\"\"):h).replace($,\"$1\").replace(J,\"$1;\"),h=\"function(\"+(v||\"obj\")+\") {\\n\"+(v?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(a?\", __e = _.escape\":\"\")+(f?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+h+\"return __p\\n}\";var m=ja(function(){return D(o,d+\"return \"+h).apply(r,u)});m.source=h;if(Su(m))throw m;return m}function Ma(e,t,n){var r=e;return e=It(e),e?(n?ns(r,t,n):t==null)?e.slice(Zt(e),en(e)+1):(t+=\"\",e.slice(qt(e,t),Rt(e,t)+1)):e}function _a(e,t,n){var r=e;return e=It(e),e?(n?ns(r,t,n):t==null)?e.slice(Zt(e)):e.slice(qt(e,t+\"\")):e}function Da(e,t,n){var r=e;return e=It(e),e?(n?ns(r,t,n):t==null)?e.slice(0,en(e)+1):e.slice(0,Rt(e,t+\"\")+1):e}function Pa(e,t,n){n&&ns(e,t,n)&&(t=r);var i=d,s=v;if(t!=null)if(Nu(t)){var o=\"separator\"in t?t.separator:o;i=\"length\"in t?+t.length||0:i,s=\"omission\"in t?It(t.omission):s}else i=+t||0;e=It(e);if(i>=e.length)return e;var u=i-s.length;if(u<1)return s;var a=e.slice(0,u);if(o==null)return a+s;if(_u(o)){if(e.slice(u).search(o)){var f,l,c=e.slice(0,u);o.global||(o=Tt(o.source,(lt.exec(o)||\"\")+\"g\")),o.lastIndex=0;while(f=o.exec(c))l=f.index;a=a.slice(0,l==null?u:l)}}else if(e.indexOf(o,u)!=u){var h=a.lastIndexOf(o);h>-1&&(a=a.slice(0,h))}return a+s}function Ha(e){return e=It(e),e&&G.test(e)?e.replace(K,tn):e}function Ba(e,t,n){return n&&ns(e,t,n)&&(t=r),e=It(e),e.match(t||gt)||[]}function Fa(e,t,n){return n&&ns(e,t,n)&&(t=r),Kt(e)?Ra(e):mr(e,t)}function Ia(e){return function(){return e}}function qa(e){return e}function Ra(e){return qr(gr(e,!0))}function Ua(e,t){return Rr(e,gr(t,!0))}function Xa(e,t,n){if(n==null){var i=Nu(t),s=i?ta(t):r,o=s&&s.length?Pr(t,s):r;if(o?!o.length:!i)o=!1,n=t,t=e,e=this}o||(o=Pr(t,ta(t)));var u=!0,a=-1,f=Tu(e),l=o.length;n===!1?u=!1:Nu(n)&&\"chain\"in n&&(u=n.chain);while(++a<l){var c=o[a],h=t[c];e[c]=h,f&&(e.prototype[c]=function(t){return function(){var n=this.__chain__;if(u||n){var r=e(this.__wrapped__),i=r.__actions__=Yn(this.__actions__);return i.push({func:t,args:arguments,thisArg:e}),r.__chain__=n,r}return t.apply(e,sr([this.value()],arguments))}}(h))}return e}function Va(){return Pt._=Qt,this}function $a(){}function Ja(e){return rs(e)?Wr(e):Xr(e)}function Ka(e){return function(t){return Hr(e,ms(t),t+\"\")}}function Qa(e,n,i){i&&ns(e,n,i)&&(n=i=r),e=+e||0,i=i==null?1:+i||0,n==null?(n=e,e=0):n=+n||0;var s=-1,o=Sn(mn((n-e)/(i||1)),0),u=t(o);while(++s<o)u[s]=e,e+=i;return u}function Ga(e,n,r){e=yn(e);if(e<1||!wn(e))return[];var i=-1,s=t(xn(e,An));n=ui(n,r,1);while(++i<e)i<An?s[i]=n(i):n(i);return s}function Ya(e){var t=++_t;return It(e)+t}function Za(e,t){return(+e||0)+(+t||0)}function of(e,t,n){return n&&ns(e,t,n)&&(t=r),t=Ui(t,n,3),t.length==1?fr(mu(e)?e:ds(e),t):ei(e,t)}e=e?rn.defaults(Pt.Object(),e,rn.pick(Pt,yt)):Pt;var t=e.Array,n=e.Date,A=e.Error,D=e.Function,H=e.Math,St=e.Number,xt=e.Object,Tt=e.RegExp,Nt=e.String,Ct=e.TypeError,kt=t.prototype,Lt=xt.prototype,At=Nt.prototype,Ot=D.prototype.toString,Mt=Lt.hasOwnProperty,_t=0,Dt=Lt.toString,Qt=Pt._,sn=Tt(\"^\"+Ot.call(Mt).replace(/[\\\\^$.*+?()[\\]{}|]/g,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),on=e.ArrayBuffer,un=e.clearTimeout,an=e.parseFloat,fn=H.pow,ln=Lt.propertyIsEnumerable,cn=Ji(e,\"Set\"),hn=e.setTimeout,pn=kt.splice,dn=e.Uint8Array,vn=Ji(e,\"WeakMap\"),mn=H.ceil,gn=Ji(xt,\"create\"),yn=H.floor,bn=Ji(t,\"isArray\"),wn=e.isFinite,En=Ji(xt,\"keys\"),Sn=H.max,xn=H.min,Tn=Ji(n,\"now\"),Nn=e.parseInt,Cn=H.random,kn=St.NEGATIVE_INFINITY,Ln=St.POSITIVE_INFINITY,An=4294967295,On=An-1,Mn=An>>>1,_n=9007199254740991,Dn=vn&&new vn,Pn={},Fn=Hn.support={};Hn.templateSettings={escape:Z,evaluate:et,interpolate:tt,variable:\"\",imports:{_:Hn}};var yr=function(){function e(){}return function(t){if(Nu(t)){e.prototype=t;var n=new e;e.prototype=r}return n||{}}}(),Er=pi(_r),Sr=pi(Dr,!0),Ar=di(),Or=di(!0),Kr=Dn?function(e,t){return Dn.set(e,t),e}:qa,zi=Dn?function(e){return Dn.get(e)}:$a,Vi=Wr(\"length\"),hs=function(){var e=0,t=0;return function(n,r){var i=qo(),s=g-(i-t);t=i;if(s>0){if(++e>=m)return n}else e=0;return Kr(n,r)}}(),ws=uu(function(e,t){return Kt(e)&&es(e)?wr(e,Lr(t,!1,!0)):[]}),Cs=xi(),ks=xi(!0),Ds=uu(function(e){var n=e.length,r=n,i=t(c),s=Xi(),o=s==jt,u=[];while(r--){var a=e[r]=es(a=e[r])?a:[];i[r]=o&&a.length>=120?mi(r&&a):null}var f=e[0],l=-1,c=f?f.length:0,h=i[0];e:while(++l<c){a=f[l];if((h?Kn(h,a):s(u,a,0))<0){var r=n;while(--r){var p=i[r];if((p?Kn(p,a):s(e[r],a,0))<0)continue e}h&&h.push(a),u.push(a)}}return u}),js=uu(function(e,t){t=Lr(t);var n=dr(e,t);return Vr(e,t.sort(Ht)),n}),Rs=ji(),Us=ji(!0),$s=uu(function(e){return ti(Lr(e,!1,!0))}),Gs=uu(function(e,t){return es(e)?wr(e,t):[]}),Zs=uu(Ks),to=uu(function(e){var t=e.length,n=t>2?e[t-2]:r,i=t>1?e[t-1]:r;return t>2&&typeof n==\"function\"?t-=2:(n=t>1&&typeof i==\"function\"?(--t,i):r,i=r),e.length=t,Qs(e,n,i)}),uo=uu(function(e){return e=Lr(e),this.thru(function(t){return Gn(mu(t)?t:[vs(t)],e)})}),ho=uu(function(e,t){return dr(e,Lr(t))}),po=ci(function(e,t,n){Mt.call(e,n)?++e[n]:e[n]=1}),go=Si(Er),yo=Si(Sr,!0),wo=Ci(Zn,Er),Eo=Ci(er,Sr),So=ci(function(e,t,n){Mt.call(e,n)?e[n].push(t):e[n]=[t]}),To=ci(function(e,t,n){e[n]=t}),No=uu(function(e,n,i){var s=-1,o=typeof n==\"function\",u=rs(n),a=es(e)?t(e.length):[];return Er(e,function(e){var t=o?n:u&&e!=null?e[n]:r;a[++s]=t?t.apply(e,i):Zi(e,n,i)}),a}),ko=ci(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ao=_i(or,Er),Oo=_i(ur,Sr),jo=uu(function(e,t){if(e==null)return[];var n=t[2];return n&&ns(t[0],t[1],n)&&(t.length=1),Zr(e,Lr(t),[])}),qo=Tn||function(){return(new n).getTime()},Wo=uu(function(e,t,n){var r=s;if(n.length){var i=Gt(n,Wo.placeholder);r|=l}return Fi(e,r,t,n,i)}),Xo=uu(function(e,t){t=t.length?Lr(t):Gu(e);var n=-1,r=t.length;while(++n<r){var i=t[n];e[i]=Fi(e[i],s,e)}return e}),Vo=uu(function(e,t,n){var r=s|o;if(n.length){var i=Gt(n,Vo.placeholder);r|=l}return Fi(t,r,e,n,i)}),$o=bi(a),Jo=bi(f),Qo=uu(function(e,t){return br(e,1,t)}),Go=uu(function(e,t,n){return br(e,t,n)}),Yo=Ni(),Zo=Ni(!0),tu=uu(function(e,t){t=Lr(t);if(typeof e!=\"function\"||!tr(t,Ft))throw new Ct(E);var n=t.length;return uu(function(r){var i=xn(r.length,n);while(i--)r[i]=t[i](r[i]);return e.apply(this,r)})}),iu=Mi(l),su=Mi(c),ou=uu(function(e,t){return Fi(e,p,r,r,r,Lr(t))}),mu=bn||function(e){return Kt(e)&&ss(e.length)&&Dt.call(e)==T},qu=hi(Ur),Ru=hi(function(e,t,n){return n?hr(e,t,n):pr(e,t)}),zu=wi(Ru,lr),Wu=wi(qu,as),Xu=Ti(_r),Vu=Ti(Dr),$u=ki(Ar),Ju=ki(Or),Ku=Li(_r),Qu=Li(Dr),ta=En?function(e){var t=e==null?r:e.constructor;return typeof t==\"function\"&&t.prototype===e||typeof e!=\"function\"&&es(e)?ps(e):Nu(e)?En(e):[]}:ps,ra=Ai(!0),ia=Ai(),sa=uu(function(e,t){if(e==null)return{};if(typeof t[0]!=\"function\"){var t=ir(Lr(t),Nt);return fs(e,wr(na(e),t))}var n=ui(t[0],t[1],3);return ls(e,function(e,t,r){return!n(e,t,r)})}),ua=uu(function(e,t){return e==null?{}:typeof t[0]==\"function\"?ls(e,ui(t[0],t[1],3)):fs(e,Lr(t))}),va=gi(function(e,t,n){return t=t.toLowerCase(),e+(n?t.charAt(0).toUpperCase()+t.slice(1):t)}),Ea=gi(function(e,t,n){return e+(n?\"-\":\"\")+t.toLowerCase()}),xa=Oi(),Ta=Oi(!0),ka=gi(function(e,t,n){return e+(n?\"_\":\"\")+t.toLowerCase()}),La=gi(function(e,t,n){return e+(n?\" \":\"\")+(t.charAt(0).toUpperCase()+t.slice(1))}),ja=uu(function(e,t){try{return e.apply(r,t)}catch(n){return Su(n)?n:new A(n)}}),za=uu(function(e,t){return function(n){return Zi(n,e,t)}}),Wa=uu(function(e,t){return function(n){return Zi(e,n,t)}}),ef=Bi(\"ceil\"),tf=Bi(\"floor\"),nf=Ei(pu,kn),rf=Ei(Bu,Ln),sf=Bi(\"round\");return Hn.prototype=Bn.prototype,jn.prototype=yr(Bn.prototype),jn.prototype.constructor=jn,In.prototype=yr(Bn.prototype),In.prototype.constructor=In,zn.prototype[\"delete\"]=Wn,zn.prototype.get=Xn,zn.prototype.has=Vn,zn.prototype.set=$n,Jn.prototype.push=Qn,eu.Cache=zn,Hn.after=Ro,Hn.ary=Uo,Hn.assign=Ru,Hn.at=ho,Hn.before=zo,Hn.bind=Wo,Hn.bindAll=Xo,Hn.bindKey=Vo,Hn.callback=Fa,Hn.chain=no,Hn.chunk=ys,Hn.compact=bs,Hn.constant=Ia,Hn.countBy=po,Hn.create=Uu,Hn.curry=$o,Hn.curryRight=Jo,Hn.debounce=Ko,Hn.defaults=zu,Hn.defaultsDeep=Wu,Hn.defer=Qo,Hn.delay=Go,Hn.difference=ws,Hn.drop=Es,Hn.dropRight=Ss,Hn.dropRightWhile=xs,Hn.dropWhile=Ts,Hn.fill=Ns,Hn.filter=mo,Hn.flatten=As,Hn.flattenDeep=Os,Hn.flow=Yo,Hn.flowRight=Zo,Hn.forEach=wo,Hn.forEachRight=Eo,Hn.forIn=$u,Hn.forInRight=Ju,Hn.forOwn=Ku,Hn.forOwnRight=Qu,Hn.functions=Gu,Hn.groupBy=So,Hn.indexBy=To,Hn.initial=_s,Hn.intersection=Ds,Hn.invert=ea,Hn.invoke=No,Hn.keys=ta,Hn.keysIn=na,Hn.map=Co,Hn.mapKeys=ra,Hn.mapValues=ia,Hn.matches=Ra,Hn.matchesProperty=Ua,Hn.memoize=eu,Hn.merge=qu,Hn.method=za,Hn.methodOf=Wa,Hn.mixin=Xa,Hn.modArgs=tu,Hn.negate=nu,Hn.omit=sa,Hn.once=ru,Hn.pairs=oa,Hn.partial=iu,Hn.partialRight=su,Hn.partition=ko,Hn.pick=ua,Hn.pluck=Lo,Hn.property=Ja,Hn.propertyOf=Ka,Hn.pull=Bs,Hn.pullAt=js,Hn.range=Qa,Hn.rearg=ou,Hn.reject=Mo,Hn.remove=Fs,Hn.rest=Is,Hn.restParam=uu,Hn.set=fa,Hn.shuffle=Do,Hn.slice=qs,Hn.sortBy=Bo,Hn.sortByAll=jo,Hn.sortByOrder=Fo,Hn.spread=au,Hn.take=zs,Hn.takeRight=Ws,Hn.takeRightWhile=Xs,Hn.takeWhile=Vs,Hn.tap=ro,Hn.throttle=fu,Hn.thru=io,Hn.times=Ga,Hn.toArray=Fu,Hn.toPlainObject=Iu,Hn.transform=la,Hn.union=$s,Hn.uniq=Js,Hn.unzip=Ks,Hn.unzipWith=Qs,Hn.values=ca,Hn.valuesIn=ha,Hn.where=Io,Hn.without=Gs,Hn.wrap=lu,Hn.xor=Ys,Hn.zip=Zs,Hn.zipObject=eo,Hn.zipWith=to,Hn.backflow=Zo,Hn.collect=Co,Hn.compose=Zo,Hn.each=wo,Hn.eachRight=Eo,Hn.extend=Ru,Hn.iteratee=Fa,Hn.methods=Gu,Hn.object=eo,Hn.select=mo,Hn.tail=Is,Hn.unique=Js,Xa(Hn,Hn),Hn.add=Za,Hn.attempt=ja,Hn.camelCase=va,Hn.capitalize=ma,Hn.ceil=ef,Hn.clone=cu,Hn.cloneDeep=hu,Hn.deburr=ga,Hn.endsWith=ya,Hn.escape=ba,Hn.escapeRegExp=wa,Hn.every=vo,Hn.find=go,Hn.findIndex=Cs,Hn.findKey=Xu,Hn.findLast=yo,Hn.findLastIndex=ks,Hn.findLastKey=Vu,Hn.findWhere=bo,Hn.first=Ls,Hn.floor=tf,Hn.get=Yu,Hn.gt=pu,Hn.gte=du,Hn.has=Zu,Hn.identity=qa,Hn.includes=xo,Hn.indexOf=Ms,Hn.inRange=pa,Hn.isArguments=vu,Hn.isArray=mu,Hn.isBoolean=gu,Hn.isDate=yu,Hn.isElement=bu,Hn.isEmpty=wu,Hn.isEqual=Eu,Hn.isError=Su,Hn.isFinite=xu,Hn.isFunction=Tu,Hn.isMatch=Cu,Hn.isNaN=ku,Hn.isNative=Lu,Hn.isNull=Au,Hn.isNumber=Ou,Hn.isObject=Nu,Hn.isPlainObject=Mu,Hn.isRegExp=_u,Hn.isString=Du,Hn.isTypedArray=Pu,Hn.isUndefined=Hu,Hn.kebabCase=Ea,Hn.last=Ps,Hn.lastIndexOf=Hs,Hn.lt=Bu,Hn.lte=ju,Hn.max=nf,Hn.min=rf,Hn.noConflict=Va,Hn.noop=$a,Hn.now=qo,Hn.pad=Sa,Hn.padLeft=xa,Hn.padRight=Ta,Hn.parseInt=Na,Hn.random=da,Hn.reduce=Ao,Hn.reduceRight=Oo,Hn.repeat=Ca,Hn.result=aa,Hn.round=sf,Hn.runInContext=nn,Hn.size=Po,Hn.snakeCase=ka,Hn.some=Ho,Hn.sortedIndex=Rs,Hn.sortedLastIndex=Us,Hn.startCase=La,Hn.startsWith=Aa,Hn.sum=of,Hn.template=Oa,Hn.trim=Ma,Hn.trimLeft=_a,Hn.trimRight=Da,Hn.trunc=Pa,Hn.unescape=Ha,Hn.uniqueId=Ya,Hn.words=Ba,Hn.all=vo,Hn.any=Ho,Hn.contains=xo,Hn.eq=Eu,Hn.detect=go,Hn.foldl=Ao,Hn.foldr=Oo,Hn.head=Ls,Hn.include=xo,Hn.inject=Ao,Xa(Hn,function(){var e={};return _r(Hn,function(t,n){Hn.prototype[n]||(e[n]=t)}),e}(),!1),Hn.sample=_o,Hn.prototype.sample=function(e){return!this.__chain__&&e==null?_o(this.value()):this.thru(function(t){return _o(t,e)})},Hn.VERSION=i,Zn([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(e){Hn[e].placeholder=Hn}),Zn([\"drop\",\"take\"],function(e,t){In.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new In(this);n=n==null?1:Sn(yn(n)||0,0);var i=this.clone();return r?i.__takeCount__=xn(i.__takeCount__,n):i.__views__.push({size:n,type:e+(i.__dir__<0?\"Right\":\"\")}),i},In.prototype[e+\"Right\"]=function(t){return this.reverse()[e](t).reverse()}}),Zn([\"filter\",\"map\",\"takeWhile\"],function(e,t){var n=t+1,r=n!=w;In.prototype[e]=function(e,t){var i=this.clone();return i.__iteratees__.push({iteratee:Ui(e,t,1),type:n}),i.__filtered__=i.__filtered__||r,i}}),Zn([\"first\",\"last\"],function(e,t){var n=\"take\"+(t?\"Right\":\"\");In.prototype[e]=function(){return this[n](1).value()[0]}}),Zn([\"initial\",\"rest\"],function(e,t){var n=\"drop\"+(t?\"\":\"Right\");In.prototype[e]=function(){return this.__filtered__?new In(this):this[n](1)}}),Zn([\"pluck\",\"where\"],function(e,t){var n=t?\"filter\":\"map\",r=t?qr:Ja;In.prototype[e]=function(e){return this[n](r(e))}}),In.prototype.compact=function(){return this.filter(qa)},In.prototype.reject=function(e,t){return e=Ui(e,t,1),this.filter(function(t){return!e(t)})},In.prototype.slice=function(e,t){e=e==null?0:+e||0;var n=this;return n.__filtered__&&(e>0||t<0)?new In(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=+t||0,n=t<0?n.dropRight(-t):n.take(t-e)),n)},In.prototype.takeRightWhile=function(e,t){return this.reverse().takeWhile(e,t).reverse()},In.prototype.toArray=function(){return this.take(Ln)},_r(In.prototype,function(e,t){var n=/^(?:filter|map|reject)|While$/.test(t),i=/^(?:first|last)$/.test(t),s=Hn[i?\"take\"+(t==\"last\"?\"Right\":\"\"):t];if(!s)return;Hn.prototype[t]=function(){var t=i?[1]:arguments,o=this.__chain__,u=this.__wrapped__,a=!!this.__actions__.length,f=u instanceof In,l=t[0],c=f||mu(u);c&&n&&typeof l==\"function\"&&l.length!=1&&(f=c=!1);var h=function(e){return i&&o?s(e,1)[0]:s.apply(r,sr([e],t))},p={func:io,args:[h],thisArg:r},d=f&&!a;if(i&&!o)return d?(u=u.clone(),u.__actions__.push(p),e.call(u)):s.call(r,this.value())[0];if(!i&&c){u=d?u:new In(this);var v=e.apply(u,t);return v.__actions__.push(p),new jn(v,o)}return this.thru(h)}}),Zn([\"join\",\"pop\",\"push\",\"replace\",\"shift\",\"sort\",\"splice\",\"split\",\"unshift\"],function(e){var t=(/^(?:replace|split)$/.test(e)?At:kt)[e],n=/^(?:push|sort|unshift)$/.test(e)?\"tap\":\"thru\",r=/^(?:join|pop|replace|shift)$/.test(e);Hn.prototype[e]=function(){var e=arguments;return r&&!this.__chain__?t.apply(this.value(),e):this[n](function(n){return t.apply(n,e)})}}),_r(In.prototype,function(e,t){var n=Hn[t];if(n){var r=n.name,i=Pn[r]||(Pn[r]=[]);i.push({name:t,func:n})}}),Pn[Di(r,o).name]=[{name:\"wrapper\",func:r}],In.prototype.clone=qn,In.prototype.reverse=Rn,In.prototype.value=Un,Hn.prototype.chain=so,Hn.prototype.commit=oo,Hn.prototype.concat=uo,Hn.prototype.plant=ao,Hn.prototype.reverse=fo,Hn.prototype.toString=lo,Hn.prototype.run=Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=co,Hn.prototype.collect=Hn.prototype.map,Hn.prototype.head=Hn.prototype.first,Hn.prototype.select=Hn.prototype.filter,Hn.prototype.tail=Hn.prototype.rest,Hn}var r,i=\"3.10.1\",s=1,o=2,u=4,a=8,f=16,l=32,c=64,h=128,p=256,d=30,v=\"...\",m=150,g=16,y=200,b=1,w=2,E=\"Expected a function\",S=\"__lodash_placeholder__\",x=\"[object Arguments]\",T=\"[object Array]\",N=\"[object Boolean]\",C=\"[object Date]\",k=\"[object Error]\",L=\"[object Function]\",A=\"[object Map]\",O=\"[object Number]\",M=\"[object Object]\",_=\"[object RegExp]\",D=\"[object Set]\",P=\"[object String]\",H=\"[object WeakMap]\",B=\"[object ArrayBuffer]\",j=\"[object Float32Array]\",F=\"[object Float64Array]\",I=\"[object Int8Array]\",q=\"[object Int16Array]\",R=\"[object Int32Array]\",U=\"[object Uint8Array]\",z=\"[object Uint8ClampedArray]\",W=\"[object Uint16Array]\",X=\"[object Uint32Array]\",V=/\\b__p \\+= '';/g,$=/\\b(__p \\+=) '' \\+/g,J=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,K=/&(?:amp|lt|gt|quot|#39|#96);/g,Q=/[&<>\"'`]/g,G=RegExp(K.source),Y=RegExp(Q.source),Z=/<%-([\\s\\S]+?)%>/g,et=/<%([\\s\\S]+?)%>/g,tt=/<%=([\\s\\S]+?)%>/g,nt=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?\\1)\\]/,rt=/^\\w*$/,it=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,st=/^[:!,]|[\\\\^$.*+?()[\\]{}|\\/]|(^[0-9a-fA-Fnrtuvx])|([\\n\\r\\u2028\\u2029])/g,ot=RegExp(st.source),ut=/[\\u0300-\\u036f\\ufe20-\\ufe23]/g,at=/\\\\(\\\\)?/g,ft=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,lt=/\\w*$/,ct=/^0[xX]/,ht=/^\\[object .+?Constructor\\]$/,pt=/^\\d+$/,dt=/[\\xc0-\\xd6\\xd8-\\xde\\xdf-\\xf6\\xf8-\\xff]/g,vt=/($^)/,mt=/['\\n\\r\\u2028\\u2029\\\\]/g,gt=function(){var e=\"[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",t=\"[a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff]+\";return RegExp(e+\"+(?=\"+e+t+\")|\"+e+\"?\"+t+\"|\"+e+\"+|[0-9]+\",\"g\")}(),yt=[\"Array\",\"ArrayBuffer\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Math\",\"Number\",\"Object\",\"RegExp\",\"Set\",\"String\",\"_\",\"clearTimeout\",\"isFinite\",\"parseFloat\",\"parseInt\",\"setTimeout\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\"],bt=-1,wt={};wt[j]=wt[F]=wt[I]=wt[q]=wt[R]=wt[U]=wt[z]=wt[W]=wt[X]=!0,wt[x]=wt[T]=wt[B]=wt[N]=wt[C]=wt[k]=wt[L]=wt[A]=wt[O]=wt[M]=wt[_]=wt[D]=wt[P]=wt[H]=!1;var Et={};Et[x]=Et[T]=Et[B]=Et[N]=Et[C]=Et[j]=Et[F]=Et[I]=Et[q]=Et[R]=Et[O]=Et[M]=Et[_]=Et[P]=Et[U]=Et[z]=Et[W]=Et[X]=!0,Et[k]=Et[L]=Et[A]=Et[D]=Et[H]=!1;var St={\"\\u00c0\":\"A\",\"\\u00c1\":\"A\",\"\\u00c2\":\"A\",\"\\u00c3\":\"A\",\"\\u00c4\":\"A\",\"\\u00c5\":\"A\",\"\\u00e0\":\"a\",\"\\u00e1\":\"a\",\"\\u00e2\":\"a\",\"\\u00e3\":\"a\",\"\\u00e4\":\"a\",\"\\u00e5\":\"a\",\"\\u00c7\":\"C\",\"\\u00e7\":\"c\",\"\\u00d0\":\"D\",\"\\u00f0\":\"d\",\"\\u00c8\":\"E\",\"\\u00c9\":\"E\",\"\\u00ca\":\"E\",\"\\u00cb\":\"E\",\"\\u00e8\":\"e\",\"\\u00e9\":\"e\",\"\\u00ea\":\"e\",\"\\u00eb\":\"e\",\"\\u00cc\":\"I\",\"\\u00cd\":\"I\",\"\\u00ce\":\"I\",\"\\u00cf\":\"I\",\"\\u00ec\":\"i\",\"\\u00ed\":\"i\",\"\\u00ee\":\"i\",\"\\u00ef\":\"i\",\"\\u00d1\":\"N\",\"\\u00f1\":\"n\",\"\\u00d2\":\"O\",\"\\u00d3\":\"O\",\"\\u00d4\":\"O\",\"\\u00d5\":\"O\",\"\\u00d6\":\"O\",\"\\u00d8\":\"O\",\"\\u00f2\":\"o\",\"\\u00f3\":\"o\",\"\\u00f4\":\"o\",\"\\u00f5\":\"o\",\"\\u00f6\":\"o\",\"\\u00f8\":\"o\",\"\\u00d9\":\"U\",\"\\u00da\":\"U\",\"\\u00db\":\"U\",\"\\u00dc\":\"U\",\"\\u00f9\":\"u\",\"\\u00fa\":\"u\",\"\\u00fb\":\"u\",\"\\u00fc\":\"u\",\"\\u00dd\":\"Y\",\"\\u00fd\":\"y\",\"\\u00ff\":\"y\",\"\\u00c6\":\"Ae\",\"\\u00e6\":\"ae\",\"\\u00de\":\"Th\",\"\\u00fe\":\"th\",\"\\u00df\":\"ss\"},xt={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\",\"`\":\"&#96;\"},Tt={\"&amp;\":\"&\",\"&lt;\":\"<\",\"&gt;\":\">\",\"&quot;\":'\"',\"&#39;\":\"'\",\"&#96;\":\"`\"},Nt={\"function\":!0,object:!0},Ct={0:\"x30\",1:\"x31\",2:\"x32\",3:\"x33\",4:\"x34\",5:\"x35\",6:\"x36\",7:\"x37\",8:\"x38\",9:\"x39\",A:\"x41\",B:\"x42\",C:\"x43\",D:\"x44\",E:\"x45\",F:\"x46\",a:\"x61\",b:\"x62\",c:\"x63\",d:\"x64\",e:\"x65\",f:\"x66\",n:\"x6e\",r:\"x72\",t:\"x74\",u:\"x75\",v:\"x76\",x:\"x78\"},kt={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},Lt=Nt[typeof n]&&n&&!n.nodeType&&n,At=Nt[typeof t]&&t&&!t.nodeType&&t,Ot=Lt&&At&&typeof e==\"object\"&&e&&e.Object&&e,Mt=Nt[typeof self]&&self&&self.Object&&self,_t=Nt[typeof window]&&window&&window.Object&&window,Dt=At&&At.exports===Lt&&Lt,Pt=Ot||_t!==(this&&this.window)&&_t||Mt||this,rn=nn();typeof define==\"function\"&&typeof define.amd==\"object\"&&define.amd?(Pt._=rn,define(function(){return rn})):Lt&&At?Dt?(At.exports=rn)._=rn:Lt._=rn:Pt._=rn}).call(this)}).call(this,typeof global!=\"undefined\"?global:typeof self!=\"undefined\"?self:typeof window!=\"undefined\"?window:{})},{}]},{},[\"/node_modules/xqlint/lib/xqlint.js\"])}),define(\"ace/mode/xquery_worker\",[],function(e,t,n){\"use strict\";var r=e(\"../lib/oop\"),i=e(\"../worker/mirror\").Mirror,s=e(\"./xquery/xqlint\"),o=s.XQLint,u=function(e){return function(t){var n=e,r=n[t],i={},s={};return r.functions.forEach(function(e){s[t+\"#\"+e.name+\"#\"+e.arity]={params:[]},e.parameters.forEach(function(n){s[t+\"#\"+e.name+\"#\"+e.arity].params.push(\"$\"+n.name)})}),r.variables.forEach(function(e){var n=e.name.substring(e.name.indexOf(\":\")+1);i[t+\"#\"+n]={type:\"VarDecl\",annotations:[]}}),{variables:i,functions:s}}},a=t.XQueryWorker=function(e){i.call(this,e),this.setTimeout(200);var t=this;this.sender.on(\"complete\",function(e){if(t.xqlint){var n={line:e.data.pos.row,col:e.data.pos.column},r=t.xqlint.getCompletions(n);t.sender.emit(\"complete\",r)}}),this.sender.on(\"setAvailableModuleNamespaces\",function(e){t.availableModuleNamespaces=e.data}),this.sender.on(\"setFileName\",function(e){t.fileName=e.data}),this.sender.on(\"setModuleResolver\",function(e){t.moduleResolver=u(e.data)})};r.inherits(a,i),function(){this.onUpdate=function(){this.sender.emit(\"start\");var e=this.doc.getValue(),t=s.createStaticContext();this.moduleResolver&&t.setModuleResolver(this.moduleResolver),this.availableModuleNamespaces&&(t.availableModuleNamespaces=this.availableModuleNamespaces);var n={styleCheck:this.styleCheck,staticContext:t,fileName:this.fileName};this.xqlint=new o(e,n),this.sender.emit(\"markers\",this.xqlint.getMarkers())}}.call(a.prototype)}),define(\"ace/lib/es5-shim\",[],function(e,t,n){function r(){}function w(e){try{return Object.defineProperty(e,\"sentinel\",{}),\"sentinel\"in e}catch(t){}}function H(e){return e=+e,e!==e?e=0:e!==0&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}function B(e){var t=typeof e;return e===null||t===\"undefined\"||t===\"boolean\"||t===\"number\"||t===\"string\"}function j(e){var t,n,r;if(B(e))return e;n=e.valueOf;if(typeof n==\"function\"){t=n.call(e);if(B(t))return t}r=e.toString;if(typeof r==\"function\"){t=r.call(e);if(B(t))return t}throw new TypeError}Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!=\"function\")throw new TypeError(\"Function.prototype.bind called on incompatible \"+n);var i=u.call(arguments,1),s=function(){if(this instanceof s){var e=n.apply(this,i.concat(u.call(arguments)));return Object(e)===e?e:this}return n.apply(t,i.concat(u.call(arguments)))};return n.prototype&&(r.prototype=n.prototype,s.prototype=new r,r.prototype=null),s});var i=Function.prototype.call,s=Array.prototype,o=Object.prototype,u=s.slice,a=i.bind(o.toString),f=i.bind(o.hasOwnProperty),l,c,h,p,d;if(d=f(o,\"__defineGetter__\"))l=i.bind(o.__defineGetter__),c=i.bind(o.__defineSetter__),h=i.bind(o.__lookupGetter__),p=i.bind(o.__lookupSetter__);if([1,2].splice(0).length!=2)if(!function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t=[],n;t.splice.apply(t,e(20)),t.splice.apply(t,e(26)),n=t.length,t.splice(5,0,\"XXX\"),n+1==t.length;if(n+1==t.length)return!0}())Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):e==void 0?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=u.call(arguments,2),s=i.length;if(e===n)s&&this.push.apply(this,i);else{var o=Math.min(t,n-e),a=e+o,f=a+s-o,l=n-a,c=n-o;if(f<a)for(var h=0;h<l;++h)this[f+h]=this[a+h];else if(f>a)for(h=l;h--;)this[f+h]=this[a+h];if(s&&e===c)this.length=c,this.push.apply(this,i);else{this.length=c+s;for(h=0;h<s;++h)this[e+h]=i[h]}}return r};else{var v=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?v.apply(this,[e===void 0?0:e,t===void 0?this.length-e:t].concat(u.call(arguments,2))):[]}}Array.isArray||(Array.isArray=function(t){return a(t)==\"[object Array]\"});var m=Object(\"a\"),g=m[0]!=\"a\"||!(0 in m);Array.prototype.forEach||(Array.prototype.forEach=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=arguments[1],s=-1,o=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError;while(++s<o)s in r&&t.call(i,r[s],s,n)}),Array.prototype.map||(Array.prototype.map=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=Array(i),o=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var u=0;u<i;u++)u in r&&(s[u]=t.call(o,r[u],u,n));return s}),Array.prototype.filter||(Array.prototype.filter=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=[],o,u=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var f=0;f<i;f++)f in r&&(o=r[f],t.call(u,o,f,n)&&s.push(o));return s}),Array.prototype.every||(Array.prototype.every=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&!t.call(s,r[o],o,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0,s=arguments[1];if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");for(var o=0;o<i;o++)if(o in r&&t.call(s,r[o],o,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduce of empty array with no initial value\");var s=0,o;if(arguments.length>=2)o=arguments[1];else do{if(s in r){o=r[s++];break}if(++s>=i)throw new TypeError(\"reduce of empty array with no initial value\")}while(!0);for(;s<i;s++)s in r&&(o=t.call(void 0,o,r[s],s,n));return o}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var n=F(this),r=g&&a(this)==\"[object String]\"?this.split(\"\"):n,i=r.length>>>0;if(a(t)!=\"[object Function]\")throw new TypeError(t+\" is not a function\");if(!i&&arguments.length==1)throw new TypeError(\"reduceRight of empty array with no initial value\");var s,o=i-1;if(arguments.length>=2)s=arguments[1];else do{if(o in r){s=r[o--];break}if(--o<0)throw new TypeError(\"reduceRight of empty array with no initial value\")}while(!0);do o in this&&(s=t.call(void 0,s,r[o],o,n));while(o--);return s});if(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)Array.prototype.indexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=0;arguments.length>1&&(i=H(arguments[1])),i=i>=0?i:Math.max(0,r+i);for(;i<r;i++)if(i in n&&n[i]===t)return i;return-1};if(!Array.prototype.lastIndexOf||[0,1].lastIndexOf(0,-3)!=-1)Array.prototype.lastIndexOf=function(t){var n=g&&a(this)==\"[object String]\"?this.split(\"\"):F(this),r=n.length>>>0;if(!r)return-1;var i=r-1;arguments.length>1&&(i=Math.min(i,H(arguments[1]))),i=i>=0?i:r-Math.abs(i);for(;i>=0;i--)if(i in n&&t===n[i])return i;return-1};Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:o)});if(!Object.getOwnPropertyDescriptor){var y=\"Object.getOwnPropertyDescriptor called on a non-object: \";Object.getOwnPropertyDescriptor=function(t,n){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(y+t);if(!f(t,n))return;var r,i,s;r={enumerable:!0,configurable:!0};if(d){var u=t.__proto__;t.__proto__=o;var i=h(t,n),s=p(t,n);t.__proto__=u;if(i||s)return i&&(r.get=i),s&&(r.set=s),r}return r.value=t[n],r}}Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)});if(!Object.create){var b;Object.prototype.__proto__===null?b=function(){return{__proto__:null}}:b=function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(t,n){var r;if(t===null)r=b();else{if(typeof t!=\"object\")throw new TypeError(\"typeof prototype[\"+typeof t+\"] != 'object'\");var i=function(){};i.prototype=t,r=new i,r.__proto__=t}return n!==void 0&&Object.defineProperties(r,n),r}}if(Object.defineProperty){var E=w({}),S=typeof document==\"undefined\"||w(document.createElement(\"div\"));if(!E||!S)var x=Object.defineProperty}if(!Object.defineProperty||x){var T=\"Property description must be an object: \",N=\"Object.defineProperty called on non-object: \",C=\"getters & setters can not be defined on this javascript engine\";Object.defineProperty=function(t,n,r){if(typeof t!=\"object\"&&typeof t!=\"function\"||t===null)throw new TypeError(N+t);if(typeof r!=\"object\"&&typeof r!=\"function\"||r===null)throw new TypeError(T+r);if(x)try{return x.call(Object,t,n,r)}catch(i){}if(f(r,\"value\"))if(d&&(h(t,n)||p(t,n))){var s=t.__proto__;t.__proto__=o,delete t[n],t[n]=r.value,t.__proto__=s}else t[n]=r.value;else{if(!d)throw new TypeError(C);f(r,\"get\")&&l(t,n,r.get),f(r,\"set\")&&c(t,n,r.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,n){for(var r in n)f(n,r)&&Object.defineProperty(t,r,n[r]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(k){Object.freeze=function(t){return function(n){return typeof n==\"function\"?n:t(n)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;var n=\"\";while(f(t,n))n+=\"?\";t[n]=!0;var r=f(t,n);return delete t[n],r});if(!Object.keys){var L=!0,A=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],O=A.length;for(var M in{toString:null})L=!1;Object.keys=function I(e){if(typeof e!=\"object\"&&typeof e!=\"function\"||e===null)throw new TypeError(\"Object.keys called on a non-object\");var I=[];for(var t in e)f(e,t)&&I.push(t);if(L)for(var n=0,r=O;n<r;n++){var i=A[n];f(e,i)&&I.push(i)}return I}}Date.now||(Date.now=function(){return(new Date).getTime()});var _=\"\t\\n\\x0b\\f\\r \\u00a0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\u2028\\u2029\\ufeff\";if(!String.prototype.trim){_=\"[\"+_+\"]\";var D=new RegExp(\"^\"+_+_+\"*\"),P=new RegExp(_+_+\"*$\");String.prototype.trim=function(){return String(this).replace(D,\"\").replace(P,\"\")}}var F=function(e){if(e==null)throw new TypeError(\"can't convert \"+e+\" to object\");return Object(e)}})"
  },
  {
    "path": "pyp5js/http_local/static/js/p5/addons/p5.sound.js",
    "content": "/** [p5.sound]  Version: 0.3.12 - 2020-01-06 */ \n /**\n *  <p>p5.sound extends p5 with <a href=\"http://caniuse.com/audio-api\"\n *  target=\"_blank\">Web Audio</a> functionality including audio input,\n *  playback, analysis and synthesis.\n *  </p>\n *  <ul>\n *  <li><a href=\"#/p5.SoundFile\"><b>p5.SoundFile</b></a>: Load and play sound files.</li>\n *  <li><a href=\"#/p5.Amplitude\"><b>p5.Amplitude</b></a>: Get the current volume of a sound.</li>\n *  <li><a href=\"#/p5.AudioIn\"><b>p5.AudioIn</b></a>: Get sound from an input source, typically\n *    a computer microphone.</li>\n *  <li><a href=\"#/p5.FFT\"><b>p5.FFT</b></a>: Analyze the frequency of sound. Returns\n *    results from the frequency spectrum or time domain (waveform).</li>\n *  <li><a href=\"#/p5.Oscillator\"><b>p5.Oscillator</b></a>: Generate Sine,\n *    Triangle, Square and Sawtooth waveforms. Base class of\n *    <li><a href=\"#/p5.Noise\">p5.Noise</a> and <a href=\"#/p5.Pulse\">p5.Pulse</a>.\n *    </li>\n *  <li>\n *    <a href=\"#/p5.MonoSynth\">p5.MonoSynth</a> and <a href=\"#/p5.PolySynth\">p5.PolySynth</a>: Play musical notes\n *  </li>\n *  <li><a href=\"#/p5.Envelope\"><b>p5.Envelope</b></a>: An Envelope is a series\n *    of fades over time. Often used to control an object's\n *    output gain level as an \"ADSR Envelope\" (Attack, Decay,\n *    Sustain, Release). Can also modulate other parameters.</li>\n *  <li><a href=\"#/p5.Delay\"><b>p5.Delay</b></a>: A delay effect with\n *    parameters for feedback, delayTime, and lowpass filter.</li>\n *  <li><a href=\"#/p5.Filter\"><b>p5.Filter</b></a>: Filter the frequency range of a\n *    sound.\n *  </li>\n *  <li><a href=\"#/p5.Reverb\"><b>p5.Reverb</b></a>: Add reverb to a sound by specifying\n *    duration and decay. </li>\n *  <b><li><a href=\"#/p5.Convolver\">p5.Convolver</a>:</b> Extends\n *  <a href=\"#/p5.Reverb\">p5.Reverb</a> to simulate the sound of real\n *    physical spaces through convolution.</li>\n *  <b><li><a href=\"#/p5.SoundRecorder\">p5.SoundRecorder</a></b>: Record sound for playback\n *    / save the .wav file.\n *  <b><li><a href=\"#/p5.SoundLoop\">p5.SoundLoop</a>, <a href=\"#/p5.Phrase\">p5.Phrase</a></b>, <b><a href=\"#/p5.Part\">p5.Part</a></b> and\n *  <b><a href=\"#/p5.Score\">p5.Score</a></b>: Compose musical sequences.\n *  </li>\n *  <li><a href=\"#/p5/userStartAudio\">userStartAudio</a>: Enable audio in a\n *  browser- and user-friendly way.</a>\n *  <p>p5.sound is on <a href=\"https://github.com/therewasaguy/p5.sound/\">GitHub</a>.\n *  Download the latest version\n *  <a href=\"https://github.com/therewasaguy/p5.sound/blob/master/lib/p5.sound.js\">here</a>.</p>\n *\n *  @module p5.sound\n *  @submodule p5.sound\n *  @for p5.sound\n *  @main\n */\n\n/**\n *  p5.sound \n *  https://p5js.org/reference/#/libraries/p5.sound\n *\n *  From the Processing Foundation and contributors\n *  https://github.com/processing/p5.js-sound/graphs/contributors\n *\n *  MIT License (MIT)\n *  https://github.com/processing/p5.js-sound/blob/master/LICENSE\n *\n *  Some of the many audio libraries & resources that inspire p5.sound:\n *   - TONE.js (c) Yotam Mann. Licensed under The MIT License (MIT). https://github.com/TONEnoTONE/Tone.js\n *   - buzz.js (c) Jay Salvat. Licensed under The MIT License (MIT). http://buzz.jaysalvat.com/\n *   - Boris Smus Web Audio API book, 2013. Licensed under the Apache License http://www.apache.org/licenses/LICENSE-2.0\n *   - wavesurfer.js https://github.com/katspaugh/wavesurfer.js\n *   - Web Audio Components by Jordan Santell https://github.com/web-audio-components\n *   - Wilm Thoben's Sound library for Processing https://github.com/processing/processing/tree/master/java/libraries/sound\n *\n *   Web Audio API: http://w3.org/TR/webaudio/\n */\n\n (function(modules) { \n \tvar installedModules = {};\n \tfunction __webpack_require__(moduleId) {\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n \t\tmodule.l = true;\n \t\treturn module.exports;\n \t}\n \t__webpack_require__.m = modules;\n \t__webpack_require__.c = installedModules;\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n \t__webpack_require__.p = \"\";\n \treturn __webpack_require__(__webpack_require__.s = 31);\n })\n ([\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_RESULT__ = (function(){\"use strict\";function a(t,e){this.isUndef(t)||1===t?this.input=this.context.createGain():1<t&&(this.input=new Array(t)),this.isUndef(e)||1===e?this.output=this.context.createGain():1<e&&(this.output=new Array(t))}var e;return a.prototype.set=function(t,e,n){if(this.isObject(t))n=e;else if(this.isString(t)){var o={};o[t]=e,t=o}t:for(var i in t){e=t[i];var r=this;if(-1!==i.indexOf(\".\")){for(var s=i.split(\".\"),u=0;u<s.length-1;u++)if((r=r[s[u]])instanceof a){s.splice(0,u+1);var p=s.join(\".\");r.set(p,e);continue t}i=s[s.length-1]}var c=r[i];this.isUndef(c)||(a.Signal&&c instanceof a.Signal||a.Param&&c instanceof a.Param?c.value!==e&&(this.isUndef(n)?c.value=e:c.rampTo(e,n)):c instanceof AudioParam?c.value!==e&&(c.value=e):c instanceof a?c.set(e):c!==e&&(r[i]=e))}return this},a.prototype.get=function(t){this.isUndef(t)?t=this._collectDefaults(this.constructor):this.isString(t)&&(t=[t]);for(var e={},n=0;n<t.length;n++){var o=t[n],i=this,r=e;if(-1!==o.indexOf(\".\")){for(var s=o.split(\".\"),u=0;u<s.length-1;u++){var p=s[u];r[p]=r[p]||{},r=r[p],i=i[p]}o=s[s.length-1]}var c=i[o];this.isObject(t[o])?r[o]=c.get():a.Signal&&c instanceof a.Signal?r[o]=c.value:a.Param&&c instanceof a.Param?r[o]=c.value:c instanceof AudioParam?r[o]=c.value:c instanceof a?r[o]=c.get():this.isFunction(c)||this.isUndef(c)||(r[o]=c)}return e},a.prototype._collectDefaults=function(t){var e=[];if(this.isUndef(t.defaults)||(e=Object.keys(t.defaults)),!this.isUndef(t._super))for(var n=this._collectDefaults(t._super),o=0;o<n.length;o++)-1===e.indexOf(n[o])&&e.push(n[o]);return e},a.prototype.toString=function(){for(var t in a){var e=t[0].match(/^[A-Z]$/),n=a[t]===this.constructor;if(this.isFunction(a[t])&&e&&n)return t}return\"Tone\"},Object.defineProperty(a.prototype,\"numberOfInputs\",{get:function(){return this.input?this.isArray(this.input)?this.input.length:1:0}}),Object.defineProperty(a.prototype,\"numberOfOutputs\",{get:function(){return this.output?this.isArray(this.output)?this.output.length:1:0}}),a.prototype.dispose=function(){return this.isUndef(this.input)||(this.input instanceof AudioNode&&this.input.disconnect(),this.input=null),this.isUndef(this.output)||(this.output instanceof AudioNode&&this.output.disconnect(),this.output=null),this},a.prototype.connect=function(t,e,n){return Array.isArray(this.output)?(e=this.defaultArg(e,0),this.output[e].connect(t,0,n)):this.output.connect(t,e,n),this},a.prototype.disconnect=function(t,e,n){this.isArray(this.output)?this.isNumber(t)?this.output[t].disconnect():(e=this.defaultArg(e,0),this.output[e].disconnect(t,0,n)):this.output.disconnect.apply(this.output,arguments)},a.prototype.connectSeries=function(){if(1<arguments.length)for(var t=arguments[0],e=1;e<arguments.length;e++){var n=arguments[e];t.connect(n),t=n}return this},a.prototype.chain=function(){if(0<arguments.length)for(var t=this,e=0;e<arguments.length;e++){var n=arguments[e];t.connect(n),t=n}return this},a.prototype.fan=function(){if(0<arguments.length)for(var t=0;t<arguments.length;t++)this.connect(arguments[t]);return this},AudioNode.prototype.chain=a.prototype.chain,AudioNode.prototype.fan=a.prototype.fan,a.prototype.defaultArg=function(t,e){if(this.isObject(t)&&this.isObject(e)){var n={};for(var o in t)n[o]=this.defaultArg(e[o],t[o]);for(var i in e)n[i]=this.defaultArg(t[i],e[i]);return n}return this.isUndef(t)?e:t},a.prototype.optionsObject=function(t,e,n){var o={};if(1===t.length&&this.isObject(t[0]))o=t[0];else for(var i=0;i<e.length;i++)o[e[i]]=t[i];return this.isUndef(n)?o:this.defaultArg(o,n)},a.prototype.isUndef=function(t){return void 0===t},a.prototype.isFunction=function(t){return\"function\"==typeof t},a.prototype.isNumber=function(t){return\"number\"==typeof t},a.prototype.isObject=function(t){return\"[object Object]\"===Object.prototype.toString.call(t)&&t.constructor===Object},a.prototype.isBoolean=function(t){return\"boolean\"==typeof t},a.prototype.isArray=function(t){return Array.isArray(t)},a.prototype.isString=function(t){return\"string\"==typeof t},a.noOp=function(){},a.prototype._readOnly=function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this._readOnly(t[e]);else Object.defineProperty(this,t,{writable:!1,enumerable:!0})},a.prototype._writable=function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this._writable(t[e]);else Object.defineProperty(this,t,{writable:!0})},a.State={Started:\"started\",Stopped:\"stopped\",Paused:\"paused\"},a.prototype.equalPowerScale=function(t){var e=.5*Math.PI;return Math.sin(t*e)},a.prototype.dbToGain=function(t){return Math.pow(2,t/6)},a.prototype.gainToDb=function(t){return Math.log(t)/Math.LN10*20},a.prototype.intervalToFrequencyRatio=function(t){return Math.pow(2,t/12)},a.prototype.now=function(){return a.context.now()},a.now=function(){return a.context.now()},a.extend=function(t,e){function n(){}a.prototype.isUndef(e)&&(e=a),n.prototype=e.prototype,t.prototype=new n,(t.prototype.constructor=t)._super=e},Object.defineProperty(a,\"context\",{get:function(){return e},set:function(t){e=a.Context&&t instanceof a.Context?t:new a.Context(t),a.Context&&a.Context.emit(\"init\",e)}}),Object.defineProperty(a.prototype,\"context\",{get:function(){return a.context}}),a.setContext=function(t){a.context=t},Object.defineProperty(a.prototype,\"blockTime\",{get:function(){return 128/this.context.sampleRate}}),Object.defineProperty(a.prototype,\"sampleTime\",{get:function(){return 1/this.context.sampleRate}}),Object.defineProperty(a,\"supported\",{get:function(){var t=window.hasOwnProperty(\"AudioContext\")||window.hasOwnProperty(\"webkitAudioContext\"),e=window.hasOwnProperty(\"Promise\"),n=window.hasOwnProperty(\"Worker\");return t&&e&&n}}),a.version=\"r10\",window.TONE_SILENCE_VERSION_LOGGING||console.log(\"%c * Tone.js \"+a.version+\" * \",\"background: #000; color: #fff\"),a}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(17)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (audiocontext) {\n  var Master = function Master() {\n    this.input = audiocontext.createGain();\n    this.output = audiocontext.createGain(); \n\n    this.limiter = audiocontext.createDynamicsCompressor();\n    this.limiter.threshold.value = -3;\n    this.limiter.ratio.value = 20;\n    this.limiter.knee.value = 1;\n    this.audiocontext = audiocontext;\n    this.output.disconnect(); \n\n    this.input.connect(this.limiter); \n\n    this.limiter.connect(this.output); \n\n    this.meter = audiocontext.createGain();\n    this.fftMeter = audiocontext.createGain();\n    this.output.connect(this.meter);\n    this.output.connect(this.fftMeter); \n\n    this.output.connect(this.audiocontext.destination); \n\n    this.soundArray = []; \n\n    this.parts = []; \n\n    this.extensions = [];\n  }; \n\n\n  var p5sound = new Master();\n  /**\n   * Returns a number representing the master amplitude (volume) for sound\n   * in this sketch.\n   *\n   * @method getMasterVolume\n   * @return {Number} Master amplitude (volume) for sound in this sketch.\n   *                  Should be between 0.0 (silence) and 1.0.\n   */\n\n  p5.prototype.getMasterVolume = function () {\n    return p5sound.output.gain.value;\n  };\n  /**\n   *  <p>Scale the output of all sound in this sketch</p>\n   *  Scaled between 0.0 (silence) and 1.0 (full volume).\n   *  1.0 is the maximum amplitude of a digital sound, so multiplying\n   *  by greater than 1.0 may cause digital distortion. To\n   *  fade, provide a <code>rampTime</code> parameter. For more\n   *  complex fades, see the Envelope class.\n   *\n   *  Alternately, you can pass in a signal source such as an\n   *  oscillator to modulate the amplitude with an audio signal.\n   *\n   *  <p><b>How This Works</b>: When you load the p5.sound module, it\n   *  creates a single instance of p5sound. All sound objects in this\n   *  module output to p5sound before reaching your computer's output.\n   *  So if you change the amplitude of p5sound, it impacts all of the\n   *  sound in this module.</p>\n   *\n   *  <p>If no value is provided, returns a Web Audio API Gain Node</p>\n   *\n   *  @method  masterVolume\n   *  @param {Number|Object} volume  Volume (amplitude) between 0.0\n   *                                     and 1.0 or modulating signal/oscillator\n   *  @param {Number} [rampTime]  Fade for t seconds\n   *  @param {Number} [timeFromNow]  Schedule this event to happen at\n   *                                 t seconds in the future\n   */\n\n\n  p5.prototype.masterVolume = function (vol, rampTime, tFromNow) {\n    if (typeof vol === 'number') {\n      var rampTime = rampTime || 0;\n      var tFromNow = tFromNow || 0;\n      var now = p5sound.audiocontext.currentTime;\n      var currentVol = p5sound.output.gain.value;\n      p5sound.output.gain.cancelScheduledValues(now + tFromNow);\n      p5sound.output.gain.linearRampToValueAtTime(currentVol, now + tFromNow);\n      p5sound.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime);\n    } else if (vol) {\n      vol.connect(p5sound.output.gain);\n    } else {\n      return p5sound.output.gain;\n    }\n  };\n  /**\n   *  `p5.soundOut` is the p5.sound master output. It sends output to\n   *  the destination of this window's web audio context. It contains\n   *  Web Audio API nodes including a dyanmicsCompressor (<code>.limiter</code>),\n   *  and Gain Nodes for <code>.input</code> and <code>.output</code>.\n   *\n   *  @property {Object} soundOut\n   */\n\n\n  p5.prototype.soundOut = p5.soundOut = p5sound; \n\n  p5.soundOut._silentNode = p5sound.audiocontext.createGain();\n  p5.soundOut._silentNode.gain.value = 0;\n\n  p5.soundOut._silentNode.connect(p5sound.audiocontext.destination);\n\n  return p5sound;\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(5),__webpack_require__(8),__webpack_require__(22),__webpack_require__(9)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(n){\"use strict\";return n.Signal=function(){var t=this.optionsObject(arguments,[\"value\",\"units\"],n.Signal.defaults);this.output=this._gain=this.context.createGain(),t.param=this._gain.gain,n.Param.call(this,t),this.input=this._param=this._gain.gain,this.context.getConstant(1).chain(this._gain)},n.extend(n.Signal,n.Param),n.Signal.defaults={value:0,units:n.Type.Default,convert:!0},n.Signal.prototype.connect=n.SignalBase.prototype.connect,n.Signal.prototype.dispose=function(){return n.Param.prototype.dispose.call(this),this._param=null,this._gain.disconnect(),this._gain=null,this},n.Signal}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(2),__webpack_require__(9)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(i){\"use strict\";return i.Multiply=function(t){this.createInsOuts(2,0),this._mult=this.input[0]=this.output=new i.Gain,this._param=this.input[1]=this.output.gain,this._param.value=this.defaultArg(t,0)},i.extend(i.Multiply,i.Signal),i.Multiply.prototype.dispose=function(){return i.prototype.dispose.call(this),this._mult.dispose(),this._mult=null,this._param=null,this},i.Multiply}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var CrossFade = __webpack_require__(51);\n  /**\n   * Effect is a base class for audio effects in p5. <br>\n   * This module handles the nodes and methods that are\n   * common and useful for current and future effects.\n   *\n   *\n   * This class is extended by <a href=\"/reference/#/p5.Distortion\">p5.Distortion</a>,\n   * <a href=\"/reference/#/p5.Compressor\">p5.Compressor</a>,\n   * <a href=\"/reference/#/p5.Delay\">p5.Delay</a>,\n   * <a href=\"/reference/#/p5.Filter\">p5.Filter</a>,\n   * <a href=\"/reference/#/p5.Reverb\">p5.Reverb</a>.\n   *\n   * @class  p5.Effect\n   * @constructor\n   *\n   * @param {Object} [ac]   Reference to the audio context of the p5 object\n   * @param {AudioNode} [input]  Gain Node effect wrapper\n   * @param {AudioNode} [output] Gain Node effect wrapper\n   * @param {Object} [_drywet]   Tone.JS CrossFade node (defaults to value: 1)\n   * @param {AudioNode} [wet]  Effects that extend this class should connect\n   *                              to the wet signal to this gain node, so that dry and wet\n   *                              signals are mixed properly.\n   */\n\n\n  p5.Effect = function () {\n    this.ac = p5sound.audiocontext;\n    this.input = this.ac.createGain();\n    this.output = this.ac.createGain();\n    /**\n     *\tThe p5.Effect class is built\n     * \tusing Tone.js CrossFade\n     * \t@private\n     */\n\n    this._drywet = new CrossFade(1);\n    /**\n     *\tIn classes that extend\n     *\tp5.Effect, connect effect nodes\n     *\tto the wet parameter\n     */\n\n    this.wet = this.ac.createGain();\n    this.input.connect(this._drywet.a);\n    this.wet.connect(this._drywet.b);\n\n    this._drywet.connect(this.output);\n\n    this.connect(); \n\n    p5sound.soundArray.push(this);\n  };\n  /**\n   *  Set the output volume of the filter.\n   *\n   *  @method  amp\n   *  @for p5.Effect\n   *  @param {Number} [vol] amplitude between 0 and 1.0\n   *  @param {Number} [rampTime] create a fade that lasts until rampTime\n   *  @param {Number} [tFromNow] schedule this event to happen in tFromNow seconds\n   */\n\n\n  p5.Effect.prototype.amp = function (vol, rampTime, tFromNow) {\n    var rampTime = rampTime || 0;\n    var tFromNow = tFromNow || 0;\n    var now = p5sound.audiocontext.currentTime;\n    var currentVol = this.output.gain.value;\n    this.output.gain.cancelScheduledValues(now);\n    this.output.gain.linearRampToValueAtTime(currentVol, now + tFromNow + .001);\n    this.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime + .001);\n  };\n  /**\n   *  Link effects together in a chain\n   *  Example usage: filter.chain(reverb, delay, panner);\n   *  May be used with an open-ended number of arguments\n   *\n   *  @method chain\n   *  @for p5.Effect\n   *  @param {Object} [arguments]  Chain together multiple sound objects\n   */\n\n\n  p5.Effect.prototype.chain = function () {\n    if (arguments.length > 0) {\n      this.connect(arguments[0]);\n\n      for (var i = 1; i < arguments.length; i += 1) {\n        arguments[i - 1].connect(arguments[i]);\n      }\n    }\n\n    return this;\n  };\n  /**\n   *  Adjust the dry/wet value.\n   *\n   *  @method drywet\n   *  @for p5.Effect\n   *  @param {Number} [fade] The desired drywet value (0 - 1.0)\n   */\n\n\n  p5.Effect.prototype.drywet = function (fade) {\n    if (typeof fade !== \"undefined\") {\n      this._drywet.fade.value = fade;\n    }\n\n    return this._drywet.fade.value;\n  };\n  /**\n   *  Send output to a p5.js-sound, Web Audio Node, or use signal to\n   *  control an AudioParam\n   *\n   *  @method connect\n   *  @for p5.Effect\n   *  @param {Object} unit\n   */\n\n\n  p5.Effect.prototype.connect = function (unit) {\n    var u = unit || p5.soundOut.input;\n    this.output.connect(u.input ? u.input : u);\n  };\n  /**\n   * Disconnect all output.\n   * @method disconnect\n   * @for p5.Effect\n   */\n\n\n  p5.Effect.prototype.disconnect = function () {\n    if (this.output) {\n      this.output.disconnect();\n    }\n  };\n\n  p5.Effect.prototype.dispose = function () {\n    var index = p5sound.soundArray.indexOf(this);\n    p5sound.soundArray.splice(index, 1);\n\n    if (this.input) {\n      this.input.disconnect();\n      delete this.input;\n    }\n\n    if (this.output) {\n      this.output.disconnect();\n      delete this.output;\n    }\n\n    if (this._drywet) {\n      this._drywet.disconnect();\n\n      delete this._drywet;\n    }\n\n    if (this.wet) {\n      this.wet.disconnect();\n      delete this.wet;\n    }\n\n    this.ac = undefined;\n  };\n\n  return p5.Effect;\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(19)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(e){\"use strict\";return e.WaveShaper=function(e,t){this._shaper=this.input=this.output=this.context.createWaveShaper(),this._curve=null,Array.isArray(e)?this.curve=e:isFinite(e)||this.isUndef(e)?this._curve=new Float32Array(this.defaultArg(e,1024)):this.isFunction(e)&&(this._curve=new Float32Array(this.defaultArg(t,1024)),this.setMap(e))},e.extend(e.WaveShaper,e.SignalBase),e.WaveShaper.prototype.setMap=function(e){for(var t=0,r=this._curve.length;t<r;t++){var s=t/(r-1)*2-1;this._curve[t]=e(s,t)}return this._shaper.curve=this._curve,this},Object.defineProperty(e.WaveShaper.prototype,\"curve\",{get:function(){return this._shaper.curve},set:function(e){this._curve=new Float32Array(e),this._shaper.curve=this._curve}}),Object.defineProperty(e.WaveShaper.prototype,\"oversample\",{get:function(){return this._shaper.oversample},set:function(e){if(-1===[\"none\",\"2x\",\"4x\"].indexOf(e))throw new RangeError(\"Tone.WaveShaper: oversampling must be either 'none', '2x', or '4x'\");this._shaper.oversample=e}}),e.WaveShaper.prototype.dispose=function(){return e.prototype.dispose.call(this),this._shaper.disconnect(),this._shaper=null,this._curve=null,this},e.WaveShaper}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var processorNames = __webpack_require__(10);\n  /**\n   * @for p5\n   */\n\n  /**\n   * Returns a number representing the sample rate, in samples per second,\n   * of all sound objects in this audio context. It is determined by the\n   * sampling rate of your operating system's sound card, and it is not\n   * currently possile to change.\n   * It is often 44100, or twice the range of human hearing.\n   *\n   * @method sampleRate\n   * @return {Number} samplerate samples per second\n   */\n\n\n  p5.prototype.sampleRate = function () {\n    return p5sound.audiocontext.sampleRate;\n  };\n  /**\n   *  Returns the closest MIDI note value for\n   *  a given frequency.\n   *\n   *  @method freqToMidi\n   *  @param  {Number} frequency A freqeuncy, for example, the \"A\"\n   *                             above Middle C is 440Hz\n   *  @return {Number}   MIDI note value\n   */\n\n\n  p5.prototype.freqToMidi = function (f) {\n    var mathlog2 = Math.log(f / 440) / Math.log(2);\n    var m = Math.round(12 * mathlog2) + 69;\n    return m;\n  };\n  /**\n   *  Returns the frequency value of a MIDI note value.\n   *  General MIDI treats notes as integers where middle C\n   *  is 60, C# is 61, D is 62 etc. Useful for generating\n   *  musical frequencies with oscillators.\n   *\n   *  @method  midiToFreq\n   *  @param  {Number} midiNote The number of a MIDI note\n   *  @return {Number} Frequency value of the given MIDI note\n   *  @example\n   *  <div><code>\n   *  let midiNotes = [60, 64, 67, 72];\n   *  let noteIndex = 0;\n   *  let midiVal, freq;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(startSound);\n   *    osc = new p5.TriOsc();\n   *    env = new p5.Envelope();\n   *  }\n   *\n   *  function draw() {\n   *    background(220);\n   *    text('tap to play', 10, 20);\n   *    if (midiVal) {\n   *      text('MIDI: ' + midiVal, 10, 40);\n   *      text('Freq: ' + freq, 10, 60);\n   *    }\n   *  }\n   *\n   *  function startSound() {\n   *    // see also: userStartAudio();\n   *    osc.start();\n   *\n   *    midiVal = midiNotes[noteIndex % midiNotes.length];\n   *    freq = midiToFreq(midiVal);\n   *    osc.freq(freq);\n   *    env.ramp(osc, 0, 1.0, 0);\n   *\n   *    noteIndex++;\n   *  }\n   *  </code></div>\n   */\n\n\n  var midiToFreq = p5.prototype.midiToFreq = function (m) {\n    return 440 * Math.pow(2, (m - 69) / 12.0);\n  }; \n\n\n  var noteToFreq = function noteToFreq(note) {\n    if (typeof note !== 'string') {\n      return note;\n    }\n\n    var wholeNotes = {\n      A: 21,\n      B: 23,\n      C: 24,\n      D: 26,\n      E: 28,\n      F: 29,\n      G: 31\n    };\n    var value = wholeNotes[note[0].toUpperCase()];\n    var octave = ~~note.slice(-1);\n    value += 12 * (octave - 1);\n\n    switch (note[1]) {\n      case '#':\n        value += 1;\n        break;\n\n      case 'b':\n        value -= 1;\n        break;\n\n      default:\n        break;\n    }\n\n    return midiToFreq(value);\n  };\n  /**\n   *  List the SoundFile formats that you will include. LoadSound\n   *  will search your directory for these extensions, and will pick\n   *  a format that is compatable with the client's web browser.\n   *  <a href=\"http://media.io/\">Here</a> is a free online file\n   *  converter.\n   *\n   *  @method soundFormats\n   *  @param {String} [...formats] i.e. 'mp3', 'wav', 'ogg'\n   *  @example\n   *  <div><code>\n   *  function preload() {\n   *    // set the global sound formats\n   *    soundFormats('mp3', 'ogg');\n   *\n   *    // load either beatbox.mp3, or .ogg, depending on browser\n   *    mySound = loadSound('assets/beatbox.mp3');\n   *  }\n   *\n   *  function setup() {\n   *       let cnv = createCanvas(100, 100);\n   *       background(220);\n   *       text('sound loaded! tap to play', 10, 20, width - 20);\n   *       cnv.mousePressed(function() {\n   *         mySound.play();\n   *       });\n   *     }\n   *  </code></div>\n   */\n\n\n  p5.prototype.soundFormats = function () {\n    p5sound.extensions = []; \n\n    for (var i = 0; i < arguments.length; i++) {\n      arguments[i] = arguments[i].toLowerCase();\n\n      if (['mp3', 'wav', 'ogg', 'm4a', 'aac'].indexOf(arguments[i]) > -1) {\n        p5sound.extensions.push(arguments[i]);\n      } else {\n        throw arguments[i] + ' is not a valid sound format!';\n      }\n    }\n  };\n\n  p5.prototype.disposeSound = function () {\n    for (var i = 0; i < p5sound.soundArray.length; i++) {\n      p5sound.soundArray[i].dispose();\n    }\n  }; \n\n\n  p5.prototype.registerMethod('remove', p5.prototype.disposeSound);\n\n  p5.prototype._checkFileFormats = function (paths) {\n    var path; \n\n    if (typeof paths === 'string') {\n      path = paths; \n\n      var extTest = path.split('.').pop(); \n\n      if (['mp3', 'wav', 'ogg', 'm4a', 'aac'].indexOf(extTest) > -1) {\n        if (p5.prototype.isFileSupported(extTest)) {\n          path = path;\n        } else {\n          var pathSplit = path.split('.');\n          var pathCore = pathSplit[pathSplit.length - 1];\n\n          for (var i = 0; i < p5sound.extensions.length; i++) {\n            var extension = p5sound.extensions[i];\n            var supported = p5.prototype.isFileSupported(extension);\n\n            if (supported) {\n              pathCore = '';\n\n              if (pathSplit.length === 2) {\n                pathCore += pathSplit[0];\n              }\n\n              for (var i = 1; i <= pathSplit.length - 2; i++) {\n                var p = pathSplit[i];\n                pathCore += '.' + p;\n              }\n\n              path = pathCore += '.';\n              path = path += extension;\n              break;\n            }\n          }\n        }\n      } \n      else {\n          for (var i = 0; i < p5sound.extensions.length; i++) {\n            var extension = p5sound.extensions[i];\n            var supported = p5.prototype.isFileSupported(extension);\n\n            if (supported) {\n              path = path + '.' + extension;\n              break;\n            }\n          }\n        }\n    } \n    else if (_typeof(paths) === 'object') {\n        for (var i = 0; i < paths.length; i++) {\n          var extension = paths[i].split('.').pop();\n          var supported = p5.prototype.isFileSupported(extension);\n\n          if (supported) {\n            path = paths[i];\n            break;\n          }\n        }\n      }\n\n    return path;\n  };\n  /**\n   *  Used by Osc and Envelope to chain signal math\n   */\n\n\n  p5.prototype._mathChain = function (o, math, thisChain, nextChain, type) {\n    for (var i in o.mathOps) {\n      if (o.mathOps[i] instanceof type) {\n        o.mathOps[i].dispose();\n        thisChain = i;\n\n        if (thisChain < o.mathOps.length - 1) {\n          nextChain = o.mathOps[i + 1];\n        }\n      }\n    }\n\n    o.mathOps[thisChain - 1].disconnect();\n    o.mathOps[thisChain - 1].connect(math);\n    math.connect(nextChain);\n    o.mathOps[thisChain] = math;\n    return o;\n  }; \n\n\n  function convertToWav(audioBuffer) {\n    var leftChannel, rightChannel;\n    leftChannel = audioBuffer.getChannelData(0); \n\n    if (audioBuffer.numberOfChannels > 1) {\n      rightChannel = audioBuffer.getChannelData(1);\n    } else {\n      rightChannel = leftChannel;\n    }\n\n    var interleaved = interleave(leftChannel, rightChannel); \n\n    var buffer = new window.ArrayBuffer(44 + interleaved.length * 2);\n    var view = new window.DataView(buffer); \n\n    writeUTFBytes(view, 0, 'RIFF');\n    view.setUint32(4, 36 + interleaved.length * 2, true);\n    writeUTFBytes(view, 8, 'WAVE'); \n\n    writeUTFBytes(view, 12, 'fmt ');\n    view.setUint32(16, 16, true);\n    view.setUint16(20, 1, true); \n\n    view.setUint16(22, 2, true);\n    view.setUint32(24, p5sound.audiocontext.sampleRate, true);\n    view.setUint32(28, p5sound.audiocontext.sampleRate * 4, true);\n    view.setUint16(32, 4, true);\n    view.setUint16(34, 16, true); \n\n    writeUTFBytes(view, 36, 'data');\n    view.setUint32(40, interleaved.length * 2, true); \n\n    var lng = interleaved.length;\n    var index = 44;\n    var volume = 1;\n\n    for (var i = 0; i < lng; i++) {\n      view.setInt16(index, interleaved[i] * (0x7FFF * volume), true);\n      index += 2;\n    }\n\n    return view;\n  } \n\n\n  function interleave(leftChannel, rightChannel) {\n    var length = leftChannel.length + rightChannel.length;\n    var result = new Float32Array(length);\n    var inputIndex = 0;\n\n    for (var index = 0; index < length;) {\n      result[index++] = leftChannel[inputIndex];\n      result[index++] = rightChannel[inputIndex];\n      inputIndex++;\n    }\n\n    return result;\n  }\n\n  function writeUTFBytes(view, offset, string) {\n    var lng = string.length;\n\n    for (var i = 0; i < lng; i++) {\n      view.setUint8(offset + i, string.charCodeAt(i));\n    }\n  }\n\n  function safeBufferSize(idealBufferSize) {\n    var bufferSize = idealBufferSize; \n\n    var tempAudioWorkletNode = new AudioWorkletNode(p5sound.audiocontext, processorNames.soundFileProcessor);\n\n    if (tempAudioWorkletNode instanceof ScriptProcessorNode) {\n      bufferSize = tempAudioWorkletNode.bufferSize;\n    }\n\n    tempAudioWorkletNode.disconnect();\n    tempAudioWorkletNode = null;\n    return bufferSize;\n  }\n\n  return {\n    convertToWav: convertToWav,\n    midiToFreq: midiToFreq,\n    noteToFreq: noteToFreq,\n    safeBufferSize: safeBufferSize\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(2),__webpack_require__(9)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(i){\"use strict\";return i.Add=function(t){this.createInsOuts(2,0),this._sum=this.input[0]=this.input[1]=this.output=new i.Gain,this._param=this.input[1]=new i.Signal(t),this._param.connect(this._sum)},i.extend(i.Add,i.Signal),i.Add.prototype.dispose=function(){return i.prototype.dispose.call(this),this._sum.dispose(),this._sum=null,this._param.dispose(),this._param=null,this},i.Add}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(20),__webpack_require__(45),__webpack_require__(46),__webpack_require__(12)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(t){return t.Type={Default:\"number\",Time:\"time\",Frequency:\"frequency\",TransportTime:\"transportTime\",Ticks:\"ticks\",NormalRange:\"normalRange\",AudioRange:\"audioRange\",Decibels:\"db\",Interval:\"interval\",BPM:\"bpm\",Positive:\"positive\",Cents:\"cents\",Degrees:\"degrees\",MIDI:\"midi\",BarsBeatsSixteenths:\"barsBeatsSixteenths\",Samples:\"samples\",Hertz:\"hertz\",Note:\"note\",Milliseconds:\"milliseconds\",Seconds:\"seconds\",Notation:\"notation\"},t.prototype.toSeconds=function(e){return this.isNumber(e)?e:this.isUndef(e)?this.now():this.isString(e)?new t.Time(e).toSeconds():e instanceof t.TimeBase?e.toSeconds():void 0},t.prototype.toFrequency=function(e){return this.isNumber(e)?e:this.isString(e)||this.isUndef(e)?new t.Frequency(e).valueOf():e instanceof t.TimeBase?e.toFrequency():void 0},t.prototype.toTicks=function(e){return this.isNumber(e)||this.isString(e)?new t.TransportTime(e).toTicks():this.isUndef(e)?t.Transport.ticks:e instanceof t.TimeBase?e.toTicks():void 0},t}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(22),__webpack_require__(8)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(i){\"use strict\";return window.GainNode&&!AudioContext.prototype.createGain&&(AudioContext.prototype.createGain=AudioContext.prototype.createGainNode),i.Gain=function(){var t=this.optionsObject(arguments,[\"gain\",\"units\"],i.Gain.defaults);this.input=this.output=this._gainNode=this.context.createGain(),this.gain=new i.Param({param:this._gainNode.gain,units:t.units,value:t.gain,convert:t.convert}),this._readOnly(\"gain\")},i.extend(i.Gain),i.Gain.defaults={gain:1,convert:!0},i.Gain.prototype.dispose=function(){i.Param.prototype.dispose.call(this),this._gainNode.disconnect(),this._gainNode=null,this._writable(\"gain\"),this.gain.dispose(),this.gain=null},i.prototype.createInsOuts=function(t,n){1===t?this.input=new i.Gain:1<t&&(this.input=new Array(t)),1===n?this.output=new i.Gain:1<n&&(this.output=new Array(t))},i.Gain}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports) {\n\nmodule.exports = {\n  recorderProcessor: 'recorder-processor',\n  soundFileProcessor: 'sound-file-processor',\n  amplitudeProcessor: 'amplitude-processor'\n};\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n  var CustomError = function CustomError(name, errorTrace, failedPath) {\n    var err = new Error();\n    var tempStack, splitStack;\n    err.name = name;\n    err.originalStack = err.stack + errorTrace;\n    tempStack = err.stack + errorTrace;\n    err.failedPath = failedPath; \n\n    var splitStack = tempStack.split('\\n');\n    splitStack = splitStack.filter(function (ln) {\n      return !ln.match(/(p5.|native code|globalInit)/g);\n    });\n    err.stack = splitStack.join('\\n');\n    return err; \n  };\n\n  return CustomError;\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(18)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(o){function t(e,t,n){if(e.input)Array.isArray(e.input)?(o.prototype.isUndef(n)&&(n=0),this.connect(e.input[n])):this.connect(e.input,t,n);else try{e instanceof AudioNode?i.call(this,e,t,n):i.call(this,e,t)}catch(t){throw new Error(\"error connecting to node: \"+e+\"\\n\"+t)}}var i,r;return!window.hasOwnProperty(\"AudioContext\")&&window.hasOwnProperty(\"webkitAudioContext\")&&(window.AudioContext=window.webkitAudioContext),o.Context=function(t){for(var e in o.Emitter.call(this),t=t||new window.AudioContext,this._context=t,this._context)this._defineProperty(this._context,e);this._latencyHint=\"interactive\",this._lookAhead=.1,this._updateInterval=this._lookAhead/3,this._computedUpdateInterval=0,this._worker=this._createWorker(),this._constants={}},o.extend(o.Context,o.Emitter),o.Emitter.mixin(o.Context),o.Context.prototype._defineProperty=function(e,n){this.isUndef(this[n])&&Object.defineProperty(this,n,{get:function(){return\"function\"==typeof e[n]?e[n].bind(e):e[n]},set:function(t){e[n]=t}})},o.Context.prototype.now=function(){return this._context.currentTime},o.Context.prototype._createWorker=function(){window.URL=window.URL||window.webkitURL;var t=new Blob([\"var timeoutTime = \"+(1e3*this._updateInterval).toFixed(1)+\";self.onmessage = function(msg){\\ttimeoutTime = parseInt(msg.data);};function tick(){\\tsetTimeout(tick, timeoutTime);\\tself.postMessage('tick');}tick();\"]),e=URL.createObjectURL(t),n=new Worker(e);return n.addEventListener(\"message\",function(){this.emit(\"tick\")}.bind(this)),n.addEventListener(\"message\",function(){var t=this.now();if(this.isNumber(this._lastUpdate)){var e=t-this._lastUpdate;this._computedUpdateInterval=Math.max(e,.97*this._computedUpdateInterval)}this._lastUpdate=t}.bind(this)),n},o.Context.prototype.getConstant=function(t){if(this._constants[t])return this._constants[t];for(var e=this._context.createBuffer(1,128,this._context.sampleRate),n=e.getChannelData(0),o=0;o<n.length;o++)n[o]=t;var i=this._context.createBufferSource();return i.channelCount=1,i.channelCountMode=\"explicit\",i.buffer=e,i.loop=!0,i.start(0),this._constants[t]=i},Object.defineProperty(o.Context.prototype,\"lag\",{get:function(){var t=this._computedUpdateInterval-this._updateInterval;return t=Math.max(t,0)}}),Object.defineProperty(o.Context.prototype,\"lookAhead\",{get:function(){return this._lookAhead},set:function(t){this._lookAhead=t}}),Object.defineProperty(o.Context.prototype,\"updateInterval\",{get:function(){return this._updateInterval},set:function(t){this._updateInterval=Math.max(t,o.prototype.blockTime),this._worker.postMessage(Math.max(1e3*t,1))}}),Object.defineProperty(o.Context.prototype,\"latencyHint\",{get:function(){return this._latencyHint},set:function(t){var e=t;if(this._latencyHint=t,this.isString(t))switch(t){case\"interactive\":e=.1,this._context.latencyHint=t;break;case\"playback\":e=.8,this._context.latencyHint=t;break;case\"balanced\":e=.25,this._context.latencyHint=t;break;case\"fastest\":e=.01}this.lookAhead=e,this.updateInterval=e/3}}),o.supported?(i=AudioNode.prototype.connect,r=AudioNode.prototype.disconnect,AudioNode.prototype.connect!==t&&(AudioNode.prototype.connect=t,AudioNode.prototype.disconnect=function(e,t,n){if(e&&e.input&&Array.isArray(e.input))o.prototype.isUndef(n)&&(n=0),this.disconnect(e.input[n],t,n);else if(e&&e.input)this.disconnect(e.input,t,n);else try{r.apply(this,arguments)}catch(t){throw new Error(\"error disconnecting node: \"+e+\"\\n\"+t)}}),o.context=new o.Context):console.warn(\"This browser does not support Tone.js\"),o.Context}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(7),__webpack_require__(3),__webpack_require__(2)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(i){\"use strict\";return i.Scale=function(t,e){this._outputMin=this.defaultArg(t,0),this._outputMax=this.defaultArg(e,1),this._scale=this.input=new i.Multiply(1),this._add=this.output=new i.Add(0),this._scale.connect(this._add),this._setRange()},i.extend(i.Scale,i.SignalBase),Object.defineProperty(i.Scale.prototype,\"min\",{get:function(){return this._outputMin},set:function(t){this._outputMin=t,this._setRange()}}),Object.defineProperty(i.Scale.prototype,\"max\",{get:function(){return this._outputMax},set:function(t){this._outputMax=t,this._setRange()}}),i.Scale.prototype._setRange=function(){this._add.value=this._outputMin,this._scale.value=this._outputMax-this._outputMin},i.Scale.prototype.dispose=function(){return i.prototype.dispose.call(this),this._add.dispose(),this._add=null,this._scale.dispose(),this._scale=null,this},i.Scale}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(2),__webpack_require__(24)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(o){\"use strict\";return o.TimelineSignal=function(){var e=this.optionsObject(arguments,[\"value\",\"units\"],o.Signal.defaults);this._events=new o.Timeline(10),o.Signal.apply(this,e),e.param=this._param,o.Param.call(this,e),this._initial=this._fromUnits(this._param.value)},o.extend(o.TimelineSignal,o.Param),o.TimelineSignal.Type={Linear:\"linear\",Exponential:\"exponential\",Target:\"target\",Curve:\"curve\",Set:\"set\"},Object.defineProperty(o.TimelineSignal.prototype,\"value\",{get:function(){var e=this.now(),t=this.getValueAtTime(e);return this._toUnits(t)},set:function(e){var t=this._fromUnits(e);this._initial=t,this.cancelScheduledValues(),this._param.value=t}}),o.TimelineSignal.prototype.setValueAtTime=function(e,t){return e=this._fromUnits(e),t=this.toSeconds(t),this._events.add({type:o.TimelineSignal.Type.Set,value:e,time:t}),this._param.setValueAtTime(e,t),this},o.TimelineSignal.prototype.linearRampToValueAtTime=function(e,t){return e=this._fromUnits(e),t=this.toSeconds(t),this._events.add({type:o.TimelineSignal.Type.Linear,value:e,time:t}),this._param.linearRampToValueAtTime(e,t),this},o.TimelineSignal.prototype.exponentialRampToValueAtTime=function(e,t){t=this.toSeconds(t);var i=this._searchBefore(t);i&&0===i.value&&this.setValueAtTime(this._minOutput,i.time),e=this._fromUnits(e);var n=Math.max(e,this._minOutput);return this._events.add({type:o.TimelineSignal.Type.Exponential,value:n,time:t}),e<this._minOutput?(this._param.exponentialRampToValueAtTime(this._minOutput,t-this.sampleTime),this.setValueAtTime(0,t)):this._param.exponentialRampToValueAtTime(e,t),this},o.TimelineSignal.prototype.setTargetAtTime=function(e,t,i){return e=this._fromUnits(e),e=Math.max(this._minOutput,e),i=Math.max(this._minOutput,i),t=this.toSeconds(t),this._events.add({type:o.TimelineSignal.Type.Target,value:e,time:t,constant:i}),this._param.setTargetAtTime(e,t,i),this},o.TimelineSignal.prototype.setValueCurveAtTime=function(e,t,i,n){n=this.defaultArg(n,1);for(var a=new Array(e.length),l=0;l<a.length;l++)a[l]=this._fromUnits(e[l])*n;t=this.toSeconds(t),i=this.toSeconds(i),this._events.add({type:o.TimelineSignal.Type.Curve,value:a,time:t,duration:i}),this._param.setValueAtTime(a[0],t);for(var s=1;s<a.length;s++){var r=t+s/(a.length-1)*i;this._param.linearRampToValueAtTime(a[s],r)}return this},o.TimelineSignal.prototype.cancelScheduledValues=function(e){return e=this.toSeconds(e),this._events.cancel(e),this._param.cancelScheduledValues(e),this},o.TimelineSignal.prototype.setRampPoint=function(e){e=this.toSeconds(e);var t=this._toUnits(this.getValueAtTime(e)),i=this._searchBefore(e);if(i&&i.time===e)this.cancelScheduledValues(e+this.sampleTime);else if(i&&i.type===o.TimelineSignal.Type.Curve&&i.time+i.duration>e)this.cancelScheduledValues(e),this.linearRampToValueAtTime(t,e);else{var n=this._searchAfter(e);n&&(this.cancelScheduledValues(e),n.type===o.TimelineSignal.Type.Linear?this.linearRampToValueAtTime(t,e):n.type===o.TimelineSignal.Type.Exponential&&this.exponentialRampToValueAtTime(t,e)),this.setValueAtTime(t,e)}return this},o.TimelineSignal.prototype.linearRampToValueBetween=function(e,t,i){return this.setRampPoint(t),this.linearRampToValueAtTime(e,i),this},o.TimelineSignal.prototype.exponentialRampToValueBetween=function(e,t,i){return this.setRampPoint(t),this.exponentialRampToValueAtTime(e,i),this},o.TimelineSignal.prototype._searchBefore=function(e){return this._events.get(e)},o.TimelineSignal.prototype._searchAfter=function(e){return this._events.getAfter(e)},o.TimelineSignal.prototype.getValueAtTime=function(e){e=this.toSeconds(e);var t=this._searchAfter(e),i=this._searchBefore(e),n=this._initial;if(null===i)n=this._initial;else if(i.type===o.TimelineSignal.Type.Target){var a,l=this._events.getBefore(i.time);a=null===l?this._initial:l.value,n=this._exponentialApproach(i.time,a,i.value,i.constant,e)}else n=i.type===o.TimelineSignal.Type.Curve?this._curveInterpolate(i.time,i.value,i.duration,e):null===t?i.value:t.type===o.TimelineSignal.Type.Linear?this._linearInterpolate(i.time,i.value,t.time,t.value,e):t.type===o.TimelineSignal.Type.Exponential?this._exponentialInterpolate(i.time,i.value,t.time,t.value,e):i.value;return n},o.TimelineSignal.prototype.connect=o.SignalBase.prototype.connect,o.TimelineSignal.prototype._exponentialApproach=function(e,t,i,n,a){return i+(t-i)*Math.exp(-(a-e)/n)},o.TimelineSignal.prototype._linearInterpolate=function(e,t,i,n,a){return t+(a-e)/(i-e)*(n-t)},o.TimelineSignal.prototype._exponentialInterpolate=function(e,t,i,n,a){return(t=Math.max(this._minOutput,t))*Math.pow(n/t,(a-e)/(i-e))},o.TimelineSignal.prototype._curveInterpolate=function(e,t,i,n){var a=t.length;if(e+i<=n)return t[a-1];if(n<=e)return t[0];var l=(n-e)/i,s=Math.floor((a-1)*l),r=Math.ceil((a-1)*l),o=t[s],p=t[r];return r===s?o:this._linearInterpolate(s,o,r,p,l*(a-1))},o.TimelineSignal.prototype.dispose=function(){o.Signal.prototype.dispose.call(this),o.Param.prototype.dispose.call(this),this._events.dispose(),this._events=null},o.TimelineSignal}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var Effect = __webpack_require__(4);\n  /**\n   *  <p>A p5.Filter uses a Web Audio Biquad Filter to filter\n   *  the frequency response of an input source. Subclasses\n   *  include:</p>\n   *  <a href=\"/reference/#/p5.LowPass\"><code>p5.LowPass</code></a>:\n   *  Allows frequencies below the cutoff frequency to pass through,\n   *  and attenuates frequencies above the cutoff.<br/>\n   *  <a href=\"/reference/#/p5.HighPass\"><code>p5.HighPass</code></a>:\n   *  The opposite of a lowpass filter. <br/>\n   *  <a href=\"/reference/#/p5.BandPass\"><code>p5.BandPass</code></a>:\n   *  Allows a range of frequencies to pass through and attenuates\n   *  the frequencies below and above this frequency range.<br/>\n   *\n   *  The <code>.res()</code> method controls either width of the\n   *  bandpass, or resonance of the low/highpass cutoff frequency.\n   *\n   *  This class extends <a href = \"/reference/#/p5.Effect\">p5.Effect</a>.\n   *  Methods <a href = \"/reference/#/p5.Effect/amp\">amp()</a>, <a href = \"/reference/#/p5.Effect/chain\">chain()</a>,\n   *  <a href = \"/reference/#/p5.Effect/drywet\">drywet()</a>, <a href = \"/reference/#/p5.Effect/connect\">connect()</a>, and\n   *  <a href = \"/reference/#/p5.Effect/disconnect\">disconnect()</a> are available.\n   *\n   *  @class p5.Filter\n   *  @extends p5.Effect\n   *  @constructor\n   *  @param {String} [type] 'lowpass' (default), 'highpass', 'bandpass'\n   *  @example\n   *  <div><code>\n  *  let fft, noise, filter;\n  *\n  *  function setup() {\n  *    let cnv = createCanvas(100,100);\n  *    cnv.mousePressed(makeNoise);\n  *    fill(255, 0, 255);\n  *\n  *    filter = new p5.BandPass();\n  *    noise = new p5.Noise();\n  *    noise.disconnect();\n  *    noise.connect(filter);\n  *\n  *    fft = new p5.FFT();\n  *  }\n  *\n  *  function draw() {\n  *    background(220);\n  *\n  *    // set the BandPass frequency based on mouseX\n  *    let freq = map(mouseX, 0, width, 20, 10000);\n  *    freq = constrain(freq, 0, 22050);\n  *    filter.freq(freq);\n  *    // give the filter a narrow band (lower res = wider bandpass)\n  *    filter.res(50);\n  *\n  *    // draw filtered spectrum\n  *    let spectrum = fft.analyze();\n  *    noStroke();\n  *    for (let i = 0; i < spectrum.length; i++) {\n  *      let x = map(i, 0, spectrum.length, 0, width);\n  *      let h = -height + map(spectrum[i], 0, 255, height, 0);\n  *      rect(x, height, width/spectrum.length, h);\n  *    }\n  *    if (!noise.started) {\n  *      text('tap here and drag to change frequency', 10, 20, width - 20);\n  *    } else {\n  *      text('Frequency: ' + round(freq)+'Hz', 20, 20, width - 20);\n  *    }\n  *  }\n  *\n  *  function makeNoise() {\n  *    // see also: `userStartAudio()`\n  *    noise.start();\n  *    noise.amp(0.5, 0.2);\n  *  }\n  *\n  *  function mouseReleased() {\n  *    noise.amp(0, 0.2);\n  *  }\n  *\n   *  </code></div>\n   */\n\n\n  p5.Filter = function (type) {\n    Effect.call(this); \n\n    /**\n      *  The p5.Filter is built with a\n      *  <a href=\"http://www.w3.org/TR/webaudio/#BiquadFilterNode\">\n      *  Web Audio BiquadFilter Node</a>.\n      *\n      *  @property {DelayNode} biquadFilter\n    */\n\n    this.biquad = this.ac.createBiquadFilter();\n    this.input.connect(this.biquad);\n    this.biquad.connect(this.wet);\n\n    if (type) {\n      this.setType(type);\n    } \n\n\n    this._on = true;\n    this._untoggledType = this.biquad.type;\n  };\n\n  p5.Filter.prototype = Object.create(Effect.prototype);\n  /**\n   *  Filter an audio signal according to a set\n   *  of filter parameters.\n   *\n   *  @method  process\n   *  @param  {Object} Signal  An object that outputs audio\n   *  @param {Number} [freq] Frequency in Hz, from 10 to 22050\n   *  @param {Number} [res] Resonance/Width of the filter frequency\n   *                        from 0.001 to 1000\n   */\n\n  p5.Filter.prototype.process = function (src, freq, res, time) {\n    src.connect(this.input);\n    this.set(freq, res, time);\n  };\n  /**\n   *  Set the frequency and the resonance of the filter.\n   *\n   *  @method  set\n   *  @param {Number} [freq] Frequency in Hz, from 10 to 22050\n   *  @param {Number} [res]  Resonance (Q) from 0.001 to 1000\n   *  @param {Number} [timeFromNow] schedule this event to happen\n   *                                seconds from now\n   */\n\n\n  p5.Filter.prototype.set = function (freq, res, time) {\n    if (freq) {\n      this.freq(freq, time);\n    }\n\n    if (res) {\n      this.res(res, time);\n    }\n  };\n  /**\n   *  Set the filter frequency, in Hz, from 10 to 22050 (the range of\n   *  human hearing, although in reality most people hear in a narrower\n   *  range).\n   *\n   *  @method  freq\n   *  @param  {Number} freq Filter Frequency\n   *  @param {Number} [timeFromNow] schedule this event to happen\n   *                                seconds from now\n   *  @return {Number} value  Returns the current frequency value\n   */\n\n\n  p5.Filter.prototype.freq = function (freq, time) {\n    var t = time || 0;\n\n    if (freq <= 0) {\n      freq = 1;\n    }\n\n    if (typeof freq === 'number') {\n      this.biquad.frequency.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.biquad.frequency.exponentialRampToValueAtTime(freq, this.ac.currentTime + 0.02 + t);\n    } else if (freq) {\n      freq.connect(this.biquad.frequency);\n    }\n\n    return this.biquad.frequency.value;\n  };\n  /**\n   *  Controls either width of a bandpass frequency,\n   *  or the resonance of a low/highpass cutoff frequency.\n   *\n   *  @method  res\n   *  @param {Number} res  Resonance/Width of filter freq\n   *                       from 0.001 to 1000\n   *  @param {Number} [timeFromNow] schedule this event to happen\n   *                                seconds from now\n   *  @return {Number} value Returns the current res value\n   */\n\n\n  p5.Filter.prototype.res = function (res, time) {\n    var t = time || 0;\n\n    if (typeof res === 'number') {\n      this.biquad.Q.value = res;\n      this.biquad.Q.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.biquad.Q.linearRampToValueAtTime(res, this.ac.currentTime + 0.02 + t);\n    } else if (res) {\n      res.connect(this.biquad.Q);\n    }\n\n    return this.biquad.Q.value;\n  };\n  /**\n   * Controls the gain attribute of a Biquad Filter.\n   * This is distinctly different from .amp() which is inherited from p5.Effect\n   * .amp() controls the volume via the output gain node\n   * p5.Filter.gain() controls the gain parameter of a Biquad Filter node.\n   *\n   * @method gain\n   * @param  {Number} gain\n   * @return {Number} Returns the current or updated gain value\n   */\n\n\n  p5.Filter.prototype.gain = function (gain, time) {\n    var t = time || 0;\n\n    if (typeof gain === 'number') {\n      this.biquad.gain.value = gain;\n      this.biquad.gain.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.biquad.gain.linearRampToValueAtTime(gain, this.ac.currentTime + 0.02 + t);\n    } else if (gain) {\n      gain.connect(this.biquad.gain);\n    }\n\n    return this.biquad.gain.value;\n  };\n  /**\n   * Toggle function. Switches between the specified type and allpass\n   *\n   * @method toggle\n   * @return {boolean} [Toggle value]\n   */\n\n\n  p5.Filter.prototype.toggle = function () {\n    this._on = !this._on;\n\n    if (this._on === true) {\n      this.biquad.type = this._untoggledType;\n    } else if (this._on === false) {\n      this.biquad.type = 'allpass';\n    }\n\n    return this._on;\n  };\n  /**\n   *  Set the type of a p5.Filter. Possible types include:\n   *  \"lowpass\" (default), \"highpass\", \"bandpass\",\n   *  \"lowshelf\", \"highshelf\", \"peaking\", \"notch\",\n   *  \"allpass\".\n   *\n   *  @method  setType\n   *  @param {String} t\n   */\n\n\n  p5.Filter.prototype.setType = function (t) {\n    this.biquad.type = t;\n    this._untoggledType = this.biquad.type;\n  };\n\n  p5.Filter.prototype.dispose = function () {\n    Effect.prototype.dispose.apply(this);\n\n    if (this.biquad) {\n      this.biquad.disconnect();\n      delete this.biquad;\n    }\n  };\n  /**\n   *  Constructor: <code>new p5.LowPass()</code> Filter.\n   *  This is the same as creating a p5.Filter and then calling\n   *  its method <code>setType('lowpass')</code>.\n   *  See p5.Filter for methods.\n   *\n   *  @class p5.LowPass\n   *  @constructor\n   *  @extends p5.Filter\n   */\n\n\n  p5.LowPass = function () {\n    p5.Filter.call(this, 'lowpass');\n  };\n\n  p5.LowPass.prototype = Object.create(p5.Filter.prototype);\n  /**\n   *  Constructor: <code>new p5.HighPass()</code> Filter.\n   *  This is the same as creating a p5.Filter and then calling\n   *  its method <code>setType('highpass')</code>.\n   *  See p5.Filter for methods.\n   *\n   *  @class p5.HighPass\n   *  @constructor\n   *  @extends p5.Filter\n   */\n\n  p5.HighPass = function () {\n    p5.Filter.call(this, 'highpass');\n  };\n\n  p5.HighPass.prototype = Object.create(p5.Filter.prototype);\n  /**\n   *  Constructor: <code>new p5.BandPass()</code> Filter.\n   *  This is the same as creating a p5.Filter and then calling\n   *  its method <code>setType('bandpass')</code>.\n   *  See p5.Filter for methods.\n   *\n   *  @class p5.BandPass\n   *  @constructor\n   *  @extends p5.Filter\n   */\n\n  p5.BandPass = function () {\n    p5.Filter.call(this, 'bandpass');\n  };\n\n  p5.BandPass.prototype = Object.create(p5.Filter.prototype);\n  return p5.Filter;\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(7),__webpack_require__(25),__webpack_require__(2),__webpack_require__(9)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(n){\"use strict\";return n.Subtract=function(t){this.createInsOuts(2,0),this._sum=this.input[0]=this.output=new n.Gain,this._neg=new n.Negate,this._param=this.input[1]=new n.Signal(t),this._param.chain(this._neg,this._sum)},n.extend(n.Subtract,n.Signal),n.Subtract.prototype.dispose=function(){return n.prototype.dispose.call(this),this._neg.dispose(),this._neg=null,this._sum.disconnect(),this._sum=null,this._param.dispose(),this._param=null,this},n.Subtract}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n(function(global) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nglobal.TONE_SILENCE_VERSION_LOGGING = true;\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(35), __webpack_require__(12), __webpack_require__(0)], __WEBPACK_AMD_DEFINE_RESULT__ = (function (StartAudioContext, Context, Tone) {\n  var audiocontext = new window.AudioContext(); \n\n  Tone.context.dispose();\n  Tone.setContext(audiocontext);\n  /**\n   * <p>Returns the Audio Context for this sketch. Useful for users\n   * who would like to dig deeper into the <a target='_blank' href=\n   * 'http://webaudio.github.io/web-audio-api/'>Web Audio API\n   * </a>.</p>\n   *\n   * <p>Some browsers require users to startAudioContext\n   * with a user gesture, such as touchStarted in the example below.</p>\n   *\n   * @for p5\n   * @method getAudioContext\n   * @return {Object}    AudioContext for this sketch\n   * @example\n   * <div><code>\n   *  function draw() {\n   *    background(255);\n   *    textAlign(CENTER);\n   *\n   *    if (getAudioContext().state !== 'running') {\n   *      text('click to start audio', width/2, height/2);\n   *    } else {\n   *      text('audio is enabled', width/2, height/2);\n   *    }\n   *  }\n   *\n   *  function touchStarted() {\n   *    if (getAudioContext().state !== 'running') {\n   *      getAudioContext().resume();\n   *    }\n   *    var synth = new p5.MonoSynth();\n   *    synth.play('A4', 0.5, 0, 0.2);\n   *  }\n   *\n   * </div></code>\n   */\n\n  p5.prototype.getAudioContext = function () {\n    return audiocontext;\n  };\n  /**\n   *  <p>It is not only a good practice to give users control over starting\n   *  audio. This policy is enforced by many web browsers, including iOS and\n   *  <a href=\"https://goo.gl/7K7WLu\" title=\"Google Chrome's autoplay\n   *  policy\">Google Chrome</a>, which create the Web Audio API's\n   *  <a href=\"https://developer.mozilla.org/en-US/docs/Web/API/AudioContext\"\n   *  title=\"Audio Context @ MDN\">Audio Context</a>\n   *  in a suspended state.</p>\n   *\n   *  <p>In these browser-specific policies, sound will not play until a user\n   *  interaction event (i.e. <code>mousePressed()</code>) explicitly resumes\n   *  the AudioContext, or starts an audio node. This can be accomplished by\n   *  calling <code>start()</code> on a <code>p5.Oscillator</code>,\n   *  <code> play()</code> on a <code>p5.SoundFile</code>, or simply\n   *  <code>userStartAudio()</code>.</p>\n   *\n   *  <p><code>userStartAudio()</code> starts the AudioContext on a user\n   *  gesture. The default behavior will enable audio on any\n   *  mouseUp or touchEnd event. It can also be placed in a specific\n   *  interaction function, such as <code>mousePressed()</code> as in the\n   *  example below. This method utilizes\n   *  <a href=\"https://github.com/tambien/StartAudioContext\">StartAudioContext\n   *  </a>, a library by Yotam Mann (MIT Licence, 2016).</p>\n   *  @param  {Element|Array}   [element(s)] This argument can be an Element,\n   *                                Selector String, NodeList, p5.Element,\n   *                                jQuery Element, or an Array of any of those.\n   *  @param  {Function} [callback] Callback to invoke when the AudioContext\n   *                                has started\n   *  @return {Promise}            Returns a Promise that resolves when\n   *                                       the AudioContext state is 'running'\n   *  @method userStartAudio\n   *  @for p5\n   *  @example\n   *  <div><code>\n   *  function setup() {\n   *    // mimics the autoplay policy\n   *    getAudioContext().suspend();\n   *\n   *    let mySynth = new p5.MonoSynth();\n   *\n   *    // This won't play until the context has resumed\n   *    mySynth.play('A6');\n   *  }\n   *  function draw() {\n   *    background(220);\n   *    textAlign(CENTER, CENTER);\n   *    text(getAudioContext().state, width/2, height/2);\n   *  }\n   *  function mousePressed() {\n   *    userStartAudio();\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.prototype.userStartAudio = function (elements, callback) {\n    var elt = elements;\n\n    if (elements instanceof p5.Element) {\n      elt = elements.elt;\n    } else if (elements instanceof Array && elements[0] instanceof p5.Element) {\n      elt = elements.map(function (e) {\n        return e.elt;\n      });\n    }\n\n    return StartAudioContext(audiocontext, elt, callback);\n  };\n\n  return audiocontext;\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n}.call(this, __webpack_require__(34)))\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(o){\"use strict\";return o.Emitter=function(){this._events={}},o.extend(o.Emitter),o.Emitter.prototype.on=function(t,e){for(var i=t.split(/\\W+/),r=0;r<i.length;r++){var n=i[r];this._events.hasOwnProperty(n)||(this._events[n]=[]),this._events[n].push(e)}return this},o.Emitter.prototype.off=function(t,e){for(var i=t.split(/\\W+/),r=0;r<i.length;r++)if(t=i[r],this._events.hasOwnProperty(t))if(o.prototype.isUndef(e))this._events[t]=[];else for(var n=this._events[t],s=0;s<n.length;s++)n[s]===e&&n.splice(s,1);return this},o.Emitter.prototype.emit=function(t){if(this._events){var e=Array.apply(null,arguments).slice(1);if(this._events.hasOwnProperty(t))for(var i=this._events[t],r=0,n=i.length;r<n;r++)i[r].apply(this,e)}return this},o.Emitter.mixin=function(t){var e=[\"on\",\"off\",\"emit\"];t._events={};for(var i=0;i<e.length;i++){var r=e[i],n=o.Emitter.prototype[r];t[r]=n}},o.Emitter.prototype.dispose=function(){return o.prototype.dispose.call(this),this._events=null,this},o.Emitter}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(c){\"use strict\";return c.SignalBase=function(){},c.extend(c.SignalBase),c.SignalBase.prototype.connect=function(e,n,a){return c.Signal&&c.Signal===e.constructor||c.Param&&c.Param===e.constructor||c.TimelineSignal&&c.TimelineSignal===e.constructor?(e._param.cancelScheduledValues(0),e._param.value=0,e.overridden=!0):e instanceof AudioParam&&(e.cancelScheduledValues(0),e.value=0),c.prototype.connect.call(this,e,n,a),this},c.SignalBase}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(21)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(o){return o.Time=function(t,e){if(!(this instanceof o.Time))return new o.Time(t,e);this._plusNow=!1,o.TimeBase.call(this,t,e)},o.extend(o.Time,o.TimeBase),o.Time.prototype._unaryExpressions=Object.create(o.TimeBase.prototype._unaryExpressions),o.Time.prototype._unaryExpressions.quantize={regexp:/^@/,method:function(t){return o.Transport.nextSubdivision(t())}},o.Time.prototype._unaryExpressions.now={regexp:/^\\+/,method:function(t){return this._plusNow=!0,t()}},o.Time.prototype.quantize=function(t,e){return e=this.defaultArg(e,1),this._expr=function(t,e,o){return t=t(),e=e.toSeconds(),t+(Math.round(t/e)*e-t)*o}.bind(this,this._expr,new this.constructor(t),e),this},o.Time.prototype.addNow=function(){return this._plusNow=!0,this},o.Time.prototype._defaultExpr=function(){return this._plusNow=!0,this._noOp},o.Time.prototype.copy=function(t){return o.TimeBase.prototype.copy.call(this,t),this._plusNow=t._plusNow,this},o.Time.prototype.toNotation=function(){var t=this.toSeconds(),e=this._toNotationHelper(t,[\"1m\",\"2n\",\"4n\",\"8n\",\"16n\",\"32n\",\"64n\",\"128n\"]),o=this._toNotationHelper(t,[\"1m\",\"2n\",\"2t\",\"4n\",\"4t\",\"8n\",\"8t\",\"16n\",\"16t\",\"32n\",\"32t\",\"64n\",\"64t\",\"128n\"]);return o.split(\"+\").length<e.split(\"+\").length?o:e},o.Time.prototype._toNotationHelper=function(t,e){for(var o=this._notationToUnits(e[e.length-1]),n=\"\",i=0;i<e.length;i++){var r=this._notationToUnits(e[i]),s=t/r;if(1-s%1<1e-6&&(s+=1e-6),0<(s=Math.floor(s))){if(n+=1===s?e[i]:s.toString()+\"*\"+e[i],(t-=s*r)<o)break;n+=\" + \"}}return\"\"===n&&(n=\"0\"),n},o.Time.prototype._notationToUnits=function(t){for(var e=this._primaryExpressions,o=[e.n,e.t,e.m],n=0;n<o.length;n++){var i=o[n],r=t.match(i.regexp);if(r)return i.method.call(this,r[1])}},o.Time.prototype.toBarsBeatsSixteenths=function(){var t=this._beatsToUnits(1),e=this.toSeconds()/t,o=Math.floor(e/this._timeSignature()),n=e%1*4;return e=Math.floor(e)%this._timeSignature(),3<(n=n.toString()).length&&(n=parseFloat(n).toFixed(3)),[o,e,n].join(\":\")},o.Time.prototype.toTicks=function(){var t=this._beatsToUnits(1),e=this.valueOf()/t;return Math.floor(e*o.Transport.PPQ)},o.Time.prototype.toSamples=function(){return this.toSeconds()*this.context.sampleRate},o.Time.prototype.toFrequency=function(){return 1/this.toSeconds()},o.Time.prototype.toSeconds=function(){return this.valueOf()},o.Time.prototype.toMilliseconds=function(){return 1e3*this.toSeconds()},o.Time.prototype.valueOf=function(){return this._expr()+(this._plusNow?this.now():0)},o.Time}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(n){return n.TimeBase=function(e,t){if(!(this instanceof n.TimeBase))return new n.TimeBase(e,t);if(this._expr=this._noOp,e instanceof n.TimeBase)this.copy(e);else if(!this.isUndef(t)||this.isNumber(e)){t=this.defaultArg(t,this._defaultUnits);var r=this._primaryExpressions[t].method;this._expr=r.bind(this,e)}else this.isString(e)?this.set(e):this.isUndef(e)&&(this._expr=this._defaultExpr())},n.extend(n.TimeBase),n.TimeBase.prototype.set=function(e){return this._expr=this._parseExprString(e),this},n.TimeBase.prototype.clone=function(){var e=new this.constructor;return e.copy(this),e},n.TimeBase.prototype.copy=function(e){var t=e._expr();return this.set(t)},n.TimeBase.prototype._primaryExpressions={n:{regexp:/^(\\d+)n/i,method:function(e){return 1===(e=parseInt(e))?this._beatsToUnits(this._timeSignature()):this._beatsToUnits(4/e)}},t:{regexp:/^(\\d+)t/i,method:function(e){return e=parseInt(e),this._beatsToUnits(8/(3*parseInt(e)))}},m:{regexp:/^(\\d+)m/i,method:function(e){return this._beatsToUnits(parseInt(e)*this._timeSignature())}},i:{regexp:/^(\\d+)i/i,method:function(e){return this._ticksToUnits(parseInt(e))}},hz:{regexp:/^(\\d+(?:\\.\\d+)?)hz/i,method:function(e){return this._frequencyToUnits(parseFloat(e))}},tr:{regexp:/^(\\d+(?:\\.\\d+)?):(\\d+(?:\\.\\d+)?):?(\\d+(?:\\.\\d+)?)?/,method:function(e,t,r){var n=0;return e&&\"0\"!==e&&(n+=this._beatsToUnits(this._timeSignature()*parseFloat(e))),t&&\"0\"!==t&&(n+=this._beatsToUnits(parseFloat(t))),r&&\"0\"!==r&&(n+=this._beatsToUnits(parseFloat(r)/4)),n}},s:{regexp:/^(\\d+(?:\\.\\d+)?s)/,method:function(e){return this._secondsToUnits(parseFloat(e))}},samples:{regexp:/^(\\d+)samples/,method:function(e){return parseInt(e)/this.context.sampleRate}},default:{regexp:/^(\\d+(?:\\.\\d+)?)/,method:function(e){return this._primaryExpressions[this._defaultUnits].method.call(this,e)}}},n.TimeBase.prototype._binaryExpressions={\"+\":{regexp:/^\\+/,precedence:2,method:function(e,t){return e()+t()}},\"-\":{regexp:/^\\-/,precedence:2,method:function(e,t){return e()-t()}},\"*\":{regexp:/^\\*/,precedence:1,method:function(e,t){return e()*t()}},\"/\":{regexp:/^\\//,precedence:1,method:function(e,t){return e()/t()}}},n.TimeBase.prototype._unaryExpressions={neg:{regexp:/^\\-/,method:function(e){return-e()}}},n.TimeBase.prototype._syntaxGlue={\"(\":{regexp:/^\\(/},\")\":{regexp:/^\\)/}},n.TimeBase.prototype._tokenize=function(e){for(var t=-1,r=[];0<e.length;){var n=i(e=e.trim(),this);r.push(n),e=e.substr(n.value.length)}function i(e,t){for(var r=[\"_binaryExpressions\",\"_unaryExpressions\",\"_primaryExpressions\",\"_syntaxGlue\"],n=0;n<r.length;n++){var i=t[r[n]];for(var s in i){var o=i[s],p=o.regexp,a=e.match(p);if(null!==a)return{method:o.method,precedence:o.precedence,regexp:o.regexp,value:a[0]}}}throw new SyntaxError(\"Tone.TimeBase: Unexpected token \"+e)}return{next:function(){return r[++t]},peek:function(){return r[t+1]}}},n.TimeBase.prototype._matchGroup=function(e,t,r){if(!this.isUndef(e))for(var n in t){var i=t[n];if(i.regexp.test(e.value)){if(this.isUndef(r))return i;if(i.precedence===r)return i}}return!1},n.TimeBase.prototype._parseBinary=function(e,t){var r;this.isUndef(t)&&(t=2),r=t<0?this._parseUnary(e):this._parseBinary(e,t-1);for(var n=e.peek();n&&this._matchGroup(n,this._binaryExpressions,t);)r=(n=e.next()).method.bind(this,r,this._parseBinary(e,t-1)),n=e.peek();return r},n.TimeBase.prototype._parseUnary=function(e){var t,r;t=e.peek();var n=this._matchGroup(t,this._unaryExpressions);return n?(t=e.next(),r=this._parseUnary(e),n.method.bind(this,r)):this._parsePrimary(e)},n.TimeBase.prototype._parsePrimary=function(e){var t,r;if(t=e.peek(),this.isUndef(t))throw new SyntaxError(\"Tone.TimeBase: Unexpected end of expression\");if(this._matchGroup(t,this._primaryExpressions)){var n=(t=e.next()).value.match(t.regexp);return t.method.bind(this,n[1],n[2],n[3])}if(t&&\"(\"===t.value){if(e.next(),r=this._parseBinary(e),!(t=e.next())||\")\"!==t.value)throw new SyntaxError(\"Expected )\");return r}throw new SyntaxError(\"Tone.TimeBase: Cannot process token \"+t.value)},n.TimeBase.prototype._parseExprString=function(e){this.isString(e)||(e=e.toString());var t=this._tokenize(e);return this._parseBinary(t)},n.TimeBase.prototype._noOp=function(){return 0},n.TimeBase.prototype._defaultExpr=function(){return this._noOp},n.TimeBase.prototype._defaultUnits=\"s\",n.TimeBase.prototype._frequencyToUnits=function(e){return 1/e},n.TimeBase.prototype._beatsToUnits=function(e){return 60/n.Transport.bpm.value*e},n.TimeBase.prototype._secondsToUnits=function(e){return e},n.TimeBase.prototype._ticksToUnits=function(e){return e*(this._beatsToUnits(1)/n.Transport.PPQ)},n.TimeBase.prototype._timeSignature=function(){return n.Transport.timeSignature},n.TimeBase.prototype._pushExpr=function(e,t,r){return e instanceof n.TimeBase||(e=new this.constructor(e,r)),this._expr=this._binaryExpressions[t].method.bind(this,this._expr,e._expr),this},n.TimeBase.prototype.add=function(e,t){return this._pushExpr(e,\"+\",t)},n.TimeBase.prototype.sub=function(e,t){return this._pushExpr(e,\"-\",t)},n.TimeBase.prototype.mult=function(e,t){return this._pushExpr(e,\"*\",t)},n.TimeBase.prototype.div=function(e,t){return this._pushExpr(e,\"/\",t)},n.TimeBase.prototype.valueOf=function(){return this._expr()},n.TimeBase.prototype.dispose=function(){this._expr=null},n.TimeBase}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(8)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(a){\"use strict\";return a.Param=function(){var t=this.optionsObject(arguments,[\"param\",\"units\",\"convert\"],a.Param.defaults);this._param=this.input=t.param,this.units=t.units,this.convert=t.convert,this.overridden=!1,this._lfo=null,this.isObject(t.lfo)?this.value=t.lfo:this.isUndef(t.value)||(this.value=t.value)},a.extend(a.Param),a.Param.defaults={units:a.Type.Default,convert:!0,param:void 0},Object.defineProperty(a.Param.prototype,\"value\",{get:function(){return this._toUnits(this._param.value)},set:function(t){if(this.isObject(t)){if(this.isUndef(a.LFO))throw new Error(\"Include 'Tone.LFO' to use an LFO as a Param value.\");this._lfo&&this._lfo.dispose(),this._lfo=new a.LFO(t).start(),this._lfo.connect(this.input)}else{var e=this._fromUnits(t);this._param.cancelScheduledValues(0),this._param.value=e}}}),a.Param.prototype._fromUnits=function(t){if(!this.convert&&!this.isUndef(this.convert))return t;switch(this.units){case a.Type.Time:return this.toSeconds(t);case a.Type.Frequency:return this.toFrequency(t);case a.Type.Decibels:return this.dbToGain(t);case a.Type.NormalRange:return Math.min(Math.max(t,0),1);case a.Type.AudioRange:return Math.min(Math.max(t,-1),1);case a.Type.Positive:return Math.max(t,0);default:return t}},a.Param.prototype._toUnits=function(t){if(!this.convert&&!this.isUndef(this.convert))return t;switch(this.units){case a.Type.Decibels:return this.gainToDb(t);default:return t}},a.Param.prototype._minOutput=1e-5,a.Param.prototype.setValueAtTime=function(t,e){return t=this._fromUnits(t),(e=this.toSeconds(e))<=this.now()+this.blockTime?this._param.value=t:this._param.setValueAtTime(t,e),this},a.Param.prototype.setRampPoint=function(t){t=this.defaultArg(t,this.now());var e=this._param.value;return 0===e&&(e=this._minOutput),this._param.setValueAtTime(e,t),this},a.Param.prototype.linearRampToValueAtTime=function(t,e){return t=this._fromUnits(t),this._param.linearRampToValueAtTime(t,this.toSeconds(e)),this},a.Param.prototype.exponentialRampToValueAtTime=function(t,e){return t=this._fromUnits(t),t=Math.max(this._minOutput,t),this._param.exponentialRampToValueAtTime(t,this.toSeconds(e)),this},a.Param.prototype.exponentialRampToValue=function(t,e,i){return i=this.toSeconds(i),this.setRampPoint(i),this.exponentialRampToValueAtTime(t,i+this.toSeconds(e)),this},a.Param.prototype.linearRampToValue=function(t,e,i){return i=this.toSeconds(i),this.setRampPoint(i),this.linearRampToValueAtTime(t,i+this.toSeconds(e)),this},a.Param.prototype.setTargetAtTime=function(t,e,i){return t=this._fromUnits(t),t=Math.max(this._minOutput,t),i=Math.max(this._minOutput,i),this._param.setTargetAtTime(t,this.toSeconds(e),i),this},a.Param.prototype.setValueCurveAtTime=function(t,e,i){for(var a=0;a<t.length;a++)t[a]=this._fromUnits(t[a]);return this._param.setValueCurveAtTime(t,this.toSeconds(e),this.toSeconds(i)),this},a.Param.prototype.cancelScheduledValues=function(t){return this._param.cancelScheduledValues(this.toSeconds(t)),this},a.Param.prototype.rampTo=function(t,e,i){return e=this.defaultArg(e,0),this.units===a.Type.Frequency||this.units===a.Type.BPM||this.units===a.Type.Decibels?this.exponentialRampToValue(t,e,i):this.linearRampToValue(t,e,i),this},Object.defineProperty(a.Param.prototype,\"lfo\",{get:function(){return this._lfo}}),a.Param.prototype.dispose=function(){return a.prototype.dispose.call(this),this._param=null,this._lfo&&(this._lfo.dispose(),this._lfo=null),this},a.Param}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var Add = __webpack_require__(7);\n\n  var Mult = __webpack_require__(3);\n\n  var Scale = __webpack_require__(13);\n  /**\n   *  <p>Creates a signal that oscillates between -1.0 and 1.0.\n   *  By default, the oscillation takes the form of a sinusoidal\n   *  shape ('sine'). Additional types include 'triangle',\n   *  'sawtooth' and 'square'. The frequency defaults to\n   *  440 oscillations per second (440Hz, equal to the pitch of an\n   *  'A' note).</p>\n   *\n   *  <p>Set the type of oscillation with setType(), or by instantiating a\n   *  specific oscillator: <a href=\"/reference/#/p5.SinOsc\">p5.SinOsc</a>, <a\n   *  href=\"/reference/#/p5.TriOsc\">p5.TriOsc</a>, <a\n   *  href=\"/reference/#/p5.SqrOsc\">p5.SqrOsc</a>, or <a\n   *  href=\"/reference/#/p5.SawOsc\">p5.SawOsc</a>.\n   *  </p>\n   *\n   *  @class p5.Oscillator\n   *  @constructor\n   *  @param {Number} [freq] frequency defaults to 440Hz\n   *  @param {String} [type] type of oscillator. Options:\n   *                         'sine' (default), 'triangle',\n   *                         'sawtooth', 'square'\n   *  @example\n   *  <div><code>\n   *  let osc, playing, freq, amp;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playOscillator);\n   *    osc = new p5.Oscillator('sine');\n   *  }\n   *\n   *  function draw() {\n   *    background(220)\n   *    freq = constrain(map(mouseX, 0, width, 100, 500), 100, 500);\n   *    amp = constrain(map(mouseY, height, 0, 0, 1), 0, 1);\n   *\n   *    text('tap to play', 20, 20);\n   *    text('freq: ' + freq, 20, 40);\n   *    text('amp: ' + amp, 20, 60);\n   *\n   *    if (playing) {\n   *      // smooth the transitions by 0.1 seconds\n   *      osc.freq(freq, 0.1);\n   *      osc.amp(amp, 0.1);\n   *    }\n   *  }\n   *\n   *  function playOscillator() {\n   *    // starting an oscillator on a user gesture will enable audio\n   *    // in browsers that have a strict autoplay policy.\n   *    // See also: userStartAudio();\n   *    osc.start();\n   *    playing = true;\n   *  }\n   *\n   *  function mouseReleased() {\n   *    // ramp amplitude to 0 over 0.5 seconds\n   *    osc.amp(0, 0.5);\n   *    playing = false;\n   *  }\n   *  </code> </div>\n   */\n\n\n  p5.Oscillator = function (freq, type) {\n    if (typeof freq === 'string') {\n      var f = type;\n      type = freq;\n      freq = f;\n    }\n\n    if (typeof type === 'number') {\n      var f = type;\n      type = freq;\n      freq = f;\n    }\n\n    this.started = false; \n\n    this.phaseAmount = undefined;\n    this.oscillator = p5sound.audiocontext.createOscillator();\n    this.f = freq || 440.0; \n\n    this.oscillator.type = type || 'sine';\n    this.oscillator.frequency.setValueAtTime(this.f, p5sound.audiocontext.currentTime); \n\n    this.output = p5sound.audiocontext.createGain();\n    this._freqMods = []; \n\n    this.output.gain.value = 0.5;\n    this.output.gain.setValueAtTime(0.5, p5sound.audiocontext.currentTime);\n    this.oscillator.connect(this.output); \n\n    this.panPosition = 0.0;\n    this.connection = p5sound.input; \n\n    this.panner = new p5.Panner(this.output, this.connection, 1); \n\n    this.mathOps = [this.output]; \n\n    p5sound.soundArray.push(this);\n  };\n  /**\n   *  Start an oscillator.\n   *\n   *  Starting an oscillator on a user gesture will enable audio in browsers\n   *  that have a strict autoplay policy, including Chrome and most mobile\n   *  devices. See also: `userStartAudio()`.\n   *\n   *  @method  start\n   *  @for p5.Oscillator\n   *  @param  {Number} [time] startTime in seconds from now.\n   *  @param  {Number} [frequency] frequency in Hz.\n   */\n\n\n  p5.Oscillator.prototype.start = function (time, f) {\n    if (this.started) {\n      var now = p5sound.audiocontext.currentTime;\n      this.stop(now);\n    }\n\n    if (!this.started) {\n      var freq = f || this.f;\n      var type = this.oscillator.type; \n\n      if (this.oscillator) {\n        this.oscillator.disconnect();\n        delete this.oscillator;\n      } \n\n\n      this.oscillator = p5sound.audiocontext.createOscillator();\n      this.oscillator.frequency.value = Math.abs(freq);\n      this.oscillator.type = type; \n\n      this.oscillator.connect(this.output);\n      time = time || 0;\n      this.oscillator.start(time + p5sound.audiocontext.currentTime);\n      this.freqNode = this.oscillator.frequency; \n\n      for (var i in this._freqMods) {\n        if (typeof this._freqMods[i].connect !== 'undefined') {\n          this._freqMods[i].connect(this.oscillator.frequency);\n        }\n      }\n\n      this.started = true;\n    }\n  };\n  /**\n   *  Stop an oscillator. Accepts an optional parameter\n   *  to determine how long (in seconds from now) until the\n   *  oscillator stops.\n   *\n   *  @method  stop\n   *  @for p5.Oscillator\n   *  @param  {Number} secondsFromNow Time, in seconds from now.\n   */\n\n\n  p5.Oscillator.prototype.stop = function (time) {\n    if (this.started) {\n      var t = time || 0;\n      var now = p5sound.audiocontext.currentTime;\n      this.oscillator.stop(t + now);\n      this.started = false;\n    }\n  };\n  /**\n   *  Set the amplitude between 0 and 1.0. Or, pass in an object\n   *  such as an oscillator to modulate amplitude with an audio signal.\n   *\n   *  @method  amp\n   *  @for p5.Oscillator\n   *  @param  {Number|Object} vol between 0 and 1.0\n   *                              or a modulating signal/oscillator\n   *  @param {Number} [rampTime] create a fade that lasts rampTime\n   *  @param {Number} [timeFromNow] schedule this event to happen\n   *                                seconds from now\n   *  @return  {AudioParam} gain  If no value is provided,\n   *                              returns the Web Audio API\n   *                              AudioParam that controls\n   *                              this oscillator's\n   *                              gain/amplitude/volume)\n   */\n\n\n  p5.Oscillator.prototype.amp = function (vol, rampTime, tFromNow) {\n    var self = this;\n\n    if (typeof vol === 'number') {\n      var rampTime = rampTime || 0;\n      var tFromNow = tFromNow || 0;\n      var now = p5sound.audiocontext.currentTime;\n      this.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime);\n    } else if (vol) {\n      vol.connect(self.output.gain);\n    } else {\n      return this.output.gain;\n    }\n  }; \n\n\n  p5.Oscillator.prototype.fade = p5.Oscillator.prototype.amp;\n\n  p5.Oscillator.prototype.getAmp = function () {\n    return this.output.gain.value;\n  };\n  /**\n   *  Set frequency of an oscillator to a value. Or, pass in an object\n   *  such as an oscillator to modulate the frequency with an audio signal.\n   *\n   *  @method  freq\n   *  @for p5.Oscillator\n   *  @param  {Number|Object} Frequency Frequency in Hz\n   *                                        or modulating signal/oscillator\n   *  @param  {Number} [rampTime] Ramp time (in seconds)\n   *  @param  {Number} [timeFromNow] Schedule this event to happen\n   *                                   at x seconds from now\n   *  @return  {AudioParam} Frequency If no value is provided,\n   *                                  returns the Web Audio API\n   *                                  AudioParam that controls\n   *                                  this oscillator's frequency\n   *  @example\n   *  <div><code>\n   *  let osc;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playOscillator);\n   *    osc = new p5.Oscillator(300);\n   *    background(220);\n   *    text('tap to play', 20, 20);\n   *  }\n   *\n   *  function playOscillator() {\n   *    osc.start();\n   *    osc.amp(0.5);\n   *    // start at 700Hz\n   *    osc.freq(700);\n   *    // ramp to 60Hz over 0.7 seconds\n   *    osc.freq(60, 0.7);\n   *    osc.amp(0, 0.1, 0.7);\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Oscillator.prototype.freq = function (val, rampTime, tFromNow) {\n    if (typeof val === 'number' && !isNaN(val)) {\n      this.f = val;\n      var now = p5sound.audiocontext.currentTime;\n      var rampTime = rampTime || 0;\n      var tFromNow = tFromNow || 0;\n      var t = now + tFromNow + rampTime; \n\n      if (rampTime === 0) {\n        this.oscillator.frequency.setValueAtTime(val, tFromNow + now);\n      } else {\n        if (val > 0) {\n          this.oscillator.frequency.exponentialRampToValueAtTime(val, tFromNow + rampTime + now);\n        } else {\n          this.oscillator.frequency.linearRampToValueAtTime(val, tFromNow + rampTime + now);\n        }\n      } \n\n\n      if (this.phaseAmount) {\n        this.phase(this.phaseAmount);\n      }\n    } else if (val) {\n      if (val.output) {\n        val = val.output;\n      }\n\n      val.connect(this.oscillator.frequency); \n\n      this._freqMods.push(val);\n    } else {\n      return this.oscillator.frequency;\n    }\n  };\n\n  p5.Oscillator.prototype.getFreq = function () {\n    return this.oscillator.frequency.value;\n  };\n  /**\n   *  Set type to 'sine', 'triangle', 'sawtooth' or 'square'.\n   *\n   *  @method  setType\n   *  @for p5.Oscillator\n   *  @param {String} type 'sine', 'triangle', 'sawtooth' or 'square'.\n   */\n\n\n  p5.Oscillator.prototype.setType = function (type) {\n    this.oscillator.type = type;\n  };\n\n  p5.Oscillator.prototype.getType = function () {\n    return this.oscillator.type;\n  };\n  /**\n   *  Connect to a p5.sound / Web Audio object.\n   *\n   *  @method  connect\n   *  @for p5.Oscillator\n   *  @param  {Object} unit A p5.sound or Web Audio object\n   */\n\n\n  p5.Oscillator.prototype.connect = function (unit) {\n    if (!unit) {\n      this.panner.connect(p5sound.input);\n    } else if (unit.hasOwnProperty('input')) {\n      this.panner.connect(unit.input);\n      this.connection = unit.input;\n    } else {\n      this.panner.connect(unit);\n      this.connection = unit;\n    }\n  };\n  /**\n   *  Disconnect all outputs\n   *\n   *  @method  disconnect\n   *  @for p5.Oscillator\n   */\n\n\n  p5.Oscillator.prototype.disconnect = function () {\n    if (this.output) {\n      this.output.disconnect();\n    }\n\n    if (this.panner) {\n      this.panner.disconnect();\n\n      if (this.output) {\n        this.output.connect(this.panner);\n      }\n    }\n\n    this.oscMods = [];\n  };\n  /**\n   *  Pan between Left (-1) and Right (1)\n   *\n   *  @method  pan\n   *  @for p5.Oscillator\n   *  @param  {Number} panning Number between -1 and 1\n   *  @param  {Number} timeFromNow schedule this event to happen\n   *                                seconds from now\n   */\n\n\n  p5.Oscillator.prototype.pan = function (pval, tFromNow) {\n    this.panPosition = pval;\n    this.panner.pan(pval, tFromNow);\n  };\n\n  p5.Oscillator.prototype.getPan = function () {\n    return this.panPosition;\n  }; \n\n\n  p5.Oscillator.prototype.dispose = function () {\n    var index = p5sound.soundArray.indexOf(this);\n    p5sound.soundArray.splice(index, 1);\n\n    if (this.oscillator) {\n      var now = p5sound.audiocontext.currentTime;\n      this.stop(now);\n      this.disconnect();\n      this.panner = null;\n      this.oscillator = null;\n    } \n\n\n    if (this.osc2) {\n      this.osc2.dispose();\n    }\n  };\n  /**\n   *  Set the phase of an oscillator between 0.0 and 1.0.\n   *  In this implementation, phase is a delay time\n   *  based on the oscillator's current frequency.\n   *\n   *  @method  phase\n   *  @for p5.Oscillator\n   *  @param  {Number} phase float between 0.0 and 1.0\n   */\n\n\n  p5.Oscillator.prototype.phase = function (p) {\n    var delayAmt = p5.prototype.map(p, 0, 1.0, 0, 1 / this.f);\n    var now = p5sound.audiocontext.currentTime;\n    this.phaseAmount = p;\n\n    if (!this.dNode) {\n      this.dNode = p5sound.audiocontext.createDelay(); \n\n      this.oscillator.disconnect();\n      this.oscillator.connect(this.dNode);\n      this.dNode.connect(this.output);\n    } \n\n\n    this.dNode.delayTime.setValueAtTime(delayAmt, now);\n  }; \n\n\n  var sigChain = function sigChain(o, mathObj, thisChain, nextChain, type) {\n    var chainSource = o.oscillator; \n\n    for (var i in o.mathOps) {\n      if (o.mathOps[i] instanceof type) {\n        chainSource.disconnect();\n        o.mathOps[i].dispose();\n        thisChain = i; \n\n        if (thisChain < o.mathOps.length - 2) {\n          nextChain = o.mathOps[i + 1];\n        }\n      }\n    }\n\n    if (thisChain === o.mathOps.length - 1) {\n      o.mathOps.push(nextChain);\n    } \n\n\n    if (i > 0) {\n      chainSource = o.mathOps[i - 1];\n    }\n\n    chainSource.disconnect();\n    chainSource.connect(mathObj);\n    mathObj.connect(nextChain);\n    o.mathOps[thisChain] = mathObj;\n    return o;\n  };\n  /**\n   *  Add a value to the p5.Oscillator's output amplitude,\n   *  and return the oscillator. Calling this method again\n   *  will override the initial add() with a new value.\n   *\n   *  @method  add\n   *  @for p5.Oscillator\n   *  @param {Number} number Constant number to add\n   *  @return {p5.Oscillator} Oscillator Returns this oscillator\n   *                                     with scaled output\n   *\n   */\n\n\n  p5.Oscillator.prototype.add = function (num) {\n    var add = new Add(num);\n    var thisChain = this.mathOps.length - 1;\n    var nextChain = this.output;\n    return sigChain(this, add, thisChain, nextChain, Add);\n  };\n  /**\n   *  Multiply the p5.Oscillator's output amplitude\n   *  by a fixed value (i.e. turn it up!). Calling this method\n   *  again will override the initial mult() with a new value.\n   *\n   *  @method  mult\n   *  @for p5.Oscillator\n   *  @param {Number} number Constant number to multiply\n   *  @return {p5.Oscillator} Oscillator Returns this oscillator\n   *                                     with multiplied output\n   */\n\n\n  p5.Oscillator.prototype.mult = function (num) {\n    var mult = new Mult(num);\n    var thisChain = this.mathOps.length - 1;\n    var nextChain = this.output;\n    return sigChain(this, mult, thisChain, nextChain, Mult);\n  };\n  /**\n   *  Scale this oscillator's amplitude values to a given\n   *  range, and return the oscillator. Calling this method\n   *  again will override the initial scale() with new values.\n   *\n   *  @method  scale\n   *  @for p5.Oscillator\n   *  @param  {Number} inMin  input range minumum\n   *  @param  {Number} inMax  input range maximum\n   *  @param  {Number} outMin input range minumum\n   *  @param  {Number} outMax input range maximum\n   *  @return {p5.Oscillator} Oscillator Returns this oscillator\n   *                                     with scaled output\n   */\n\n\n  p5.Oscillator.prototype.scale = function (inMin, inMax, outMin, outMax) {\n    var mapOutMin, mapOutMax;\n\n    if (arguments.length === 4) {\n      mapOutMin = p5.prototype.map(outMin, inMin, inMax, 0, 1) - 0.5;\n      mapOutMax = p5.prototype.map(outMax, inMin, inMax, 0, 1) - 0.5;\n    } else {\n      mapOutMin = arguments[0];\n      mapOutMax = arguments[1];\n    }\n\n    var scale = new Scale(mapOutMin, mapOutMax);\n    var thisChain = this.mathOps.length - 1;\n    var nextChain = this.output;\n    return sigChain(this, scale, thisChain, nextChain, Scale); \n  }; \n\n  /**\n   *  Constructor: <code>new p5.SinOsc()</code>.\n   *  This creates a Sine Wave Oscillator and is\n   *  equivalent to <code> new p5.Oscillator('sine')\n   *  </code> or creating a p5.Oscillator and then calling\n   *  its method <code>setType('sine')</code>.\n   *  See p5.Oscillator for methods.\n   *\n   *  @class  p5.SinOsc\n   *  @constructor\n   *  @extends p5.Oscillator\n   *  @param {Number} [freq] Set the frequency\n   */\n\n\n  p5.SinOsc = function (freq) {\n    p5.Oscillator.call(this, freq, 'sine');\n  };\n\n  p5.SinOsc.prototype = Object.create(p5.Oscillator.prototype);\n  /**\n   *  Constructor: <code>new p5.TriOsc()</code>.\n   *  This creates a Triangle Wave Oscillator and is\n   *  equivalent to <code>new p5.Oscillator('triangle')\n   *  </code> or creating a p5.Oscillator and then calling\n   *  its method <code>setType('triangle')</code>.\n   *  See p5.Oscillator for methods.\n   *\n   *  @class  p5.TriOsc\n   *  @constructor\n   *  @extends p5.Oscillator\n   *  @param {Number} [freq] Set the frequency\n   */\n\n  p5.TriOsc = function (freq) {\n    p5.Oscillator.call(this, freq, 'triangle');\n  };\n\n  p5.TriOsc.prototype = Object.create(p5.Oscillator.prototype);\n  /**\n   *  Constructor: <code>new p5.SawOsc()</code>.\n   *  This creates a SawTooth Wave Oscillator and is\n   *  equivalent to <code> new p5.Oscillator('sawtooth')\n   *  </code> or creating a p5.Oscillator and then calling\n   *  its method <code>setType('sawtooth')</code>.\n   *  See p5.Oscillator for methods.\n   *\n   *  @class  p5.SawOsc\n   *  @constructor\n   *  @extends p5.Oscillator\n   *  @param {Number} [freq] Set the frequency\n   */\n\n  p5.SawOsc = function (freq) {\n    p5.Oscillator.call(this, freq, 'sawtooth');\n  };\n\n  p5.SawOsc.prototype = Object.create(p5.Oscillator.prototype);\n  /**\n   *  Constructor: <code>new p5.SqrOsc()</code>.\n   *  This creates a Square Wave Oscillator and is\n   *  equivalent to <code> new p5.Oscillator('square')\n   *  </code> or creating a p5.Oscillator and then calling\n   *  its method <code>setType('square')</code>.\n   *  See p5.Oscillator for methods.\n   *\n   *  @class  p5.SqrOsc\n   *  @constructor\n   *  @extends p5.Oscillator\n   *  @param {Number} [freq] Set the frequency\n   */\n\n  p5.SqrOsc = function (freq) {\n    p5.Oscillator.call(this, freq, 'square');\n  };\n\n  p5.SqrOsc.prototype = Object.create(p5.Oscillator.prototype);\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(8)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(i){\"use strict\";return i.Timeline=function(){var e=this.optionsObject(arguments,[\"memory\"],i.Timeline.defaults);this._timeline=[],this._toRemove=[],this._iterating=!1,this.memory=e.memory},i.extend(i.Timeline),i.Timeline.defaults={memory:1/0},Object.defineProperty(i.Timeline.prototype,\"length\",{get:function(){return this._timeline.length}}),i.Timeline.prototype.add=function(e){if(this.isUndef(e.time))throw new Error(\"Tone.Timeline: events must have a time attribute\");if(this._timeline.length){var i=this._search(e.time);this._timeline.splice(i+1,0,e)}else this._timeline.push(e);if(this.length>this.memory){var t=this.length-this.memory;this._timeline.splice(0,t)}return this},i.Timeline.prototype.remove=function(e){if(this._iterating)this._toRemove.push(e);else{var i=this._timeline.indexOf(e);-1!==i&&this._timeline.splice(i,1)}return this},i.Timeline.prototype.get=function(e){var i=this._search(e);return-1!==i?this._timeline[i]:null},i.Timeline.prototype.peek=function(){return this._timeline[0]},i.Timeline.prototype.shift=function(){return this._timeline.shift()},i.Timeline.prototype.getAfter=function(e){var i=this._search(e);return i+1<this._timeline.length?this._timeline[i+1]:null},i.Timeline.prototype.getBefore=function(e){var i=this._timeline.length;if(0<i&&this._timeline[i-1].time<e)return this._timeline[i-1];var t=this._search(e);return 0<=t-1?this._timeline[t-1]:null},i.Timeline.prototype.cancel=function(e){if(1<this._timeline.length){var i=this._search(e);if(0<=i)if(this._timeline[i].time===e){for(var t=i;0<=t&&this._timeline[t].time===e;t--)i=t;this._timeline=this._timeline.slice(0,i)}else this._timeline=this._timeline.slice(0,i+1);else this._timeline=[]}else 1===this._timeline.length&&this._timeline[0].time>=e&&(this._timeline=[]);return this},i.Timeline.prototype.cancelBefore=function(e){if(this._timeline.length){var i=this._search(e);0<=i&&(this._timeline=this._timeline.slice(i+1))}return this},i.Timeline.prototype._search=function(e){var i=0,t=this._timeline.length,n=t;if(0<t&&this._timeline[t-1].time<=e)return t-1;for(;i<n;){var r=Math.floor(i+(n-i)/2),s=this._timeline[r],h=this._timeline[r+1];if(s.time===e){for(var l=r;l<this._timeline.length;l++){this._timeline[l].time===e&&(r=l)}return r}if(s.time<e&&h.time>e)return r;s.time>e?n=r:s.time<e&&(i=r+1)}return-1},i.Timeline.prototype._iterate=function(e,i,t){this._iterating=!0,i=this.defaultArg(i,0),t=this.defaultArg(t,this._timeline.length-1);for(var n=i;n<=t;n++)e(this._timeline[n]);if(this._iterating=!1,0<this._toRemove.length){for(var r=0;r<this._toRemove.length;r++){var s=this._timeline.indexOf(this._toRemove[r]);-1!==s&&this._timeline.splice(s,1)}this._toRemove=[]}},i.Timeline.prototype.forEach=function(e){return this._iterate(e),this},i.Timeline.prototype.forEachBefore=function(e,i){var t=this._search(e);return-1!==t&&this._iterate(i,0,t),this},i.Timeline.prototype.forEachAfter=function(e,i){var t=this._search(e);return this._iterate(i,t+1),this},i.Timeline.prototype.forEachFrom=function(e,i){for(var t=this._search(e);0<=t&&this._timeline[t].time>=e;)t--;return this._iterate(i,t+1),this},i.Timeline.prototype.forEachAtTime=function(i,t){var e=this._search(i);return-1!==e&&this._iterate(function(e){e.time===i&&t(e)},0,e),this},i.Timeline.prototype.dispose=function(){i.prototype.dispose.call(this),this._timeline=null,this._toRemove=null},i.Timeline}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(3),__webpack_require__(2)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(t){\"use strict\";return t.Negate=function(){this._multiply=this.input=this.output=new t.Multiply(-1)},t.extend(t.Negate,t.SignalBase),t.Negate.prototype.dispose=function(){return t.prototype.dispose.call(this),this._multiply.dispose(),this._multiply=null,this},t.Negate}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(2),__webpack_require__(3),__webpack_require__(5)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(e){\"use strict\";return e.GreaterThanZero=function(){this._thresh=this.output=new e.WaveShaper(function(e){return e<=0?0:1},127),this._scale=this.input=new e.Multiply(1e4),this._scale.connect(this._thresh)},e.extend(e.GreaterThanZero,e.SignalBase),e.GreaterThanZero.prototype.dispose=function(){return e.prototype.dispose.call(this),this._scale.dispose(),this._scale=null,this._thresh.dispose(),this._thresh=null,this},e.GreaterThanZero}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(14),__webpack_require__(66),__webpack_require__(18),__webpack_require__(12)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(o){\"use strict\";return o.Clock=function(){o.Emitter.call(this);var t=this.optionsObject(arguments,[\"callback\",\"frequency\"],o.Clock.defaults);this.callback=t.callback,this._nextTick=0,this._lastState=o.State.Stopped,this.frequency=new o.TimelineSignal(t.frequency,o.Type.Frequency),this._readOnly(\"frequency\"),this.ticks=0,this._state=new o.TimelineState(o.State.Stopped),this._boundLoop=this._loop.bind(this),this.context.on(\"tick\",this._boundLoop)},o.extend(o.Clock,o.Emitter),o.Clock.defaults={callback:o.noOp,frequency:1,lookAhead:\"auto\"},Object.defineProperty(o.Clock.prototype,\"state\",{get:function(){return this._state.getValueAtTime(this.now())}}),o.Clock.prototype.start=function(t,e){return t=this.toSeconds(t),this._state.getValueAtTime(t)!==o.State.Started&&this._state.add({state:o.State.Started,time:t,offset:e}),this},o.Clock.prototype.stop=function(t){return t=this.toSeconds(t),this._state.cancel(t),this._state.setStateAtTime(o.State.Stopped,t),this},o.Clock.prototype.pause=function(t){return t=this.toSeconds(t),this._state.getValueAtTime(t)===o.State.Started&&this._state.setStateAtTime(o.State.Paused,t),this},o.Clock.prototype._loop=function(){for(var t=this.now()+this.context.lookAhead+this.context.updateInterval+2*this.context.lag;t>this._nextTick&&this._state;){var e=this._state.getValueAtTime(this._nextTick);if(e!==this._lastState){this._lastState=e;var i=this._state.get(this._nextTick);e===o.State.Started?(this._nextTick=i.time,this.isUndef(i.offset)||(this.ticks=i.offset),this.emit(\"start\",i.time,this.ticks)):e===o.State.Stopped?(this.ticks=0,this.emit(\"stop\",i.time)):e===o.State.Paused&&this.emit(\"pause\",i.time)}var s=this._nextTick;this.frequency&&(this._nextTick+=1/this.frequency.getValueAtTime(this._nextTick),e===o.State.Started&&(this.callback(s),this.ticks++))}},o.Clock.prototype.getStateAtTime=function(t){return t=this.toSeconds(t),this._state.getValueAtTime(t)},o.Clock.prototype.dispose=function(){o.Emitter.prototype.dispose.call(this),this.context.off(\"tick\",this._boundLoop),this._writable(\"frequency\"),this.frequency.dispose(),this.frequency=null,this._boundLoop=null,this._nextTick=1/0,this.callback=null,this._state.dispose(),this._state=null},o.Clock}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var AudioVoice = __webpack_require__(29);\n\n  var noteToFreq = __webpack_require__(6).noteToFreq;\n\n  var DEFAULT_SUSTAIN = 0.15;\n  /**\n    *  A MonoSynth is used as a single voice for sound synthesis.\n    *  This is a class to be used in conjunction with the PolySynth\n    *  class. Custom synthetisers should be built inheriting from\n    *  this class.\n    *\n    *  @class p5.MonoSynth\n    *  @constructor\n    *  @example\n    *  <div><code>\n    *  let monoSynth;\n    *\n    *  function setup() {\n    *    let cnv = createCanvas(100, 100);\n    *    cnv.mousePressed(playSynth);\n    *    background(220);\n    *    textAlign(CENTER);\n    *    text('tap to play', width/2, height/2);\n    *\n    *    monoSynth = new p5.MonoSynth();\n    *  }\n    *\n    *  function playSynth() {\n    *    userStartAudio();\n    *\n    *    let note = random(['Fb4', 'G4']);\n    *    // note velocity (volume, from 0 to 1)\n    *    let velocity = random();\n    *    // time from now (in seconds)\n    *    let time = 0;\n    *    // note duration (in seconds)\n    *    let dur = 1/6;\n    *\n    *    monoSynth.play(note, velocity, time, dur);\n    *  }\n    *  </code></div>\n    **/\n\n  p5.MonoSynth = function () {\n    AudioVoice.call(this);\n    this.oscillator = new p5.Oscillator();\n    this.env = new p5.Envelope();\n    this.env.setRange(1, 0);\n    this.env.setExp(true); \n\n    this.setADSR(0.02, 0.25, 0.05, 0.35); \n\n    this.oscillator.disconnect();\n    this.oscillator.connect(this.output);\n    this.env.disconnect();\n    this.env.setInput(this.output.gain); \n\n    this.oscillator.output.gain.value = 1.0;\n    this.oscillator.start();\n    this.connect();\n    p5sound.soundArray.push(this);\n  };\n\n  p5.MonoSynth.prototype = Object.create(p5.AudioVoice.prototype);\n  /**\n    *  Play tells the MonoSynth to start playing a note. This method schedules\n    *  the calling of .triggerAttack and .triggerRelease.\n    *\n    *  @method play\n    *  @for p5.MonoSynth\n    *  @param {String | Number} note the note you want to play, specified as a\n    *                                 frequency in Hertz (Number) or as a midi\n    *                                 value in Note/Octave format (\"C4\", \"Eb3\"...etc\")\n    *                                 See <a href = \"https://github.com/Tonejs/Tone.js/wiki/Instruments\">\n    *                                 Tone</a>. Defaults to 440 hz.\n    *  @param  {Number} [velocity] velocity of the note to play (ranging from 0 to 1)\n    *  @param  {Number} [secondsFromNow]  time from now (in seconds) at which to play\n    *  @param  {Number} [sustainTime] time to sustain before releasing the envelope. Defaults to 0.15 seconds.\n    *  @example\n    *  <div><code>\n    *  let monoSynth;\n    *\n    *  function setup() {\n    *    let cnv = createCanvas(100, 100);\n    *    cnv.mousePressed(playSynth);\n    *    background(220);\n    *    textAlign(CENTER);\n    *    text('tap to play', width/2, height/2);\n    *\n    *    monoSynth = new p5.MonoSynth();\n    *  }\n    *\n    *  function playSynth() {\n    *    userStartAudio();\n    *\n    *    let note = random(['Fb4', 'G4']);\n    *    // note velocity (volume, from 0 to 1)\n    *    let velocity = random();\n    *    // time from now (in seconds)\n    *    let time = 0;\n    *    // note duration (in seconds)\n    *    let dur = 1/6;\n    *\n    *    monoSynth.play(note, velocity, time, dur);\n    *  }\n    *  </code></div>\n    *\n    */\n\n  p5.MonoSynth.prototype.play = function (note, velocity, secondsFromNow, susTime) {\n    this.triggerAttack(note, velocity, ~~secondsFromNow);\n    this.triggerRelease(~~secondsFromNow + (susTime || DEFAULT_SUSTAIN));\n  };\n  /**\n     *  Trigger the Attack, and Decay portion of the Envelope.\n     *  Similar to holding down a key on a piano, but it will\n     *  hold the sustain level until you let go.\n     *\n     *  @param {String | Number} note the note you want to play, specified as a\n     *                                 frequency in Hertz (Number) or as a midi\n     *                                 value in Note/Octave format (\"C4\", \"Eb3\"...etc\")\n     *                                 See <a href = \"https://github.com/Tonejs/Tone.js/wiki/Instruments\">\n     *                                 Tone</a>. Defaults to 440 hz\n     *  @param  {Number} [velocity] velocity of the note to play (ranging from 0 to 1)\n     *  @param  {Number} [secondsFromNow]  time from now (in seconds) at which to play\n     *  @method  triggerAttack\n     *  @for p5.MonoSynth\n     *  @example\n     *  <div><code>\n     *  let monoSynth;\n     *\n     *  function setup() {\n     *    let cnv = createCanvas(100, 100);\n     *    cnv.mousePressed(triggerAttack);\n     *    background(220);\n     *    text('tap here for attack, let go to release', 5, 20, width - 20);\n     *    monoSynth = new p5.MonoSynth();\n     *  }\n     *\n     *  function triggerAttack() {\n     *    userStartAudio();\n     *\n     *    monoSynth.triggerAttack(\"E3\");\n     *  }\n     *\n     *  function mouseReleased() {\n     *    monoSynth.triggerRelease();\n     *  }\n     *  </code></div>\n     */\n\n\n  p5.MonoSynth.prototype.triggerAttack = function (note, velocity, secondsFromNow) {\n    var secondsFromNow = ~~secondsFromNow;\n    var freq = noteToFreq(note);\n    var vel = velocity || 0.1;\n    this.oscillator.freq(freq, 0, secondsFromNow);\n    this.env.ramp(this.output.gain, secondsFromNow, vel);\n  };\n  /**\n     *  Trigger the release of the Envelope. This is similar to releasing\n     *  the key on a piano and letting the sound fade according to the\n     *  release level and release time.\n     *\n     *  @param  {Number} secondsFromNow time to trigger the release\n     *  @method  triggerRelease\n     *  @for p5.MonoSynth\n     *  @example\n     *  <div><code>\n     *  let monoSynth;\n     *\n     *  function setup() {\n     *    let cnv = createCanvas(100, 100);\n     *    cnv.mousePressed(triggerAttack);\n     *    background(220);\n     *    text('tap here for attack, let go to release', 5, 20, width - 20);\n     *    monoSynth = new p5.MonoSynth();\n     *  }\n     *\n     *  function triggerAttack() {\n     *    userStartAudio();\n     *\n     *    monoSynth.triggerAttack(\"E3\");\n     *  }\n     *\n     *  function mouseReleased() {\n     *    monoSynth.triggerRelease();\n     *  }\n     *  </code></div>\n     */\n\n\n  p5.MonoSynth.prototype.triggerRelease = function (secondsFromNow) {\n    var secondsFromNow = secondsFromNow || 0;\n    this.env.ramp(this.output.gain, secondsFromNow, 0);\n  };\n  /**\n     *  Set values like a traditional\n     *  <a href=\"https://en.wikipedia.org/wiki/Synthesizer#/media/File:ADSR_parameter.svg\">\n     *  ADSR envelope\n     *  </a>.\n     *\n     *  @method  setADSR\n     *  @for p5.MonoSynth\n     *  @param {Number} attackTime    Time (in seconds before envelope\n     *                                reaches Attack Level\n     *  @param {Number} [decayTime]    Time (in seconds) before envelope\n     *                                reaches Decay/Sustain Level\n     *  @param {Number} [susRatio]    Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n     *                                where 1.0 = attackLevel, 0.0 = releaseLevel.\n     *                                The susRatio determines the decayLevel and the level at which the\n     *                                sustain portion of the envelope will sustain.\n     *                                For example, if attackLevel is 0.4, releaseLevel is 0,\n     *                                and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n     *                                increased to 1.0 (using <code>setRange</code>),\n     *                                then decayLevel would increase proportionally, to become 0.5.\n     *  @param {Number} [releaseTime]   Time in seconds from now (defaults to 0)\n     */\n\n\n  p5.MonoSynth.prototype.setADSR = function (attack, decay, sustain, release) {\n    this.env.setADSR(attack, decay, sustain, release);\n  };\n  /**\n   * Getters and Setters\n   * @property {Number} attack\n   * @for p5.MonoSynth\n   */\n\n  /**\n   * @property {Number} decay\n   * @for p5.MonoSynth\n   */\n\n  /**\n   * @property {Number} sustain\n   * @for p5.MonoSynth\n   */\n\n  /**\n   * @property {Number} release\n   * @for p5.MonoSynth\n   */\n\n\n  Object.defineProperties(p5.MonoSynth.prototype, {\n    'attack': {\n      get: function get() {\n        return this.env.aTime;\n      },\n      set: function set(attack) {\n        this.env.setADSR(attack, this.env.dTime, this.env.sPercent, this.env.rTime);\n      }\n    },\n    'decay': {\n      get: function get() {\n        return this.env.dTime;\n      },\n      set: function set(decay) {\n        this.env.setADSR(this.env.aTime, decay, this.env.sPercent, this.env.rTime);\n      }\n    },\n    'sustain': {\n      get: function get() {\n        return this.env.sPercent;\n      },\n      set: function set(sustain) {\n        this.env.setADSR(this.env.aTime, this.env.dTime, sustain, this.env.rTime);\n      }\n    },\n    'release': {\n      get: function get() {\n        return this.env.rTime;\n      },\n      set: function set(release) {\n        this.env.setADSR(this.env.aTime, this.env.dTime, this.env.sPercent, release);\n      }\n    }\n  });\n  /**\n   * MonoSynth amp\n   * @method  amp\n   * @for p5.MonoSynth\n   * @param  {Number} vol      desired volume\n   * @param  {Number} [rampTime] Time to reach new volume\n   * @return {Number}          new volume value\n   */\n\n  p5.MonoSynth.prototype.amp = function (vol, rampTime) {\n    var t = rampTime || 0;\n\n    if (typeof vol !== 'undefined') {\n      this.oscillator.amp(vol, t);\n    }\n\n    return this.oscillator.amp().value;\n  };\n  /**\n   *  Connect to a p5.sound / Web Audio object.\n   *\n   *  @method  connect\n   *  @for p5.MonoSynth\n   *  @param  {Object} unit A p5.sound or Web Audio object\n   */\n\n\n  p5.MonoSynth.prototype.connect = function (unit) {\n    var u = unit || p5sound.input;\n    this.output.connect(u.input ? u.input : u);\n  };\n  /**\n   *  Disconnect all outputs\n   *\n   *  @method  disconnect\n   *  @for p5.MonoSynth\n   */\n\n\n  p5.MonoSynth.prototype.disconnect = function () {\n    if (this.output) {\n      this.output.disconnect();\n    }\n  };\n  /**\n   *  Get rid of the MonoSynth and free up its resources / memory.\n   *\n   *  @method  dispose\n   *  @for p5.MonoSynth\n   */\n\n\n  p5.MonoSynth.prototype.dispose = function () {\n    AudioVoice.prototype.dispose.apply(this);\n\n    if (this.env) {\n      this.env.dispose();\n    }\n\n    if (this.oscillator) {\n      this.oscillator.dispose();\n    }\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n  var p5sound = __webpack_require__(1);\n  /**\n   * Base class for monophonic synthesizers. Any extensions of this class\n   * should follow the API and implement the methods below in order to\n   * remain compatible with p5.PolySynth();\n   *\n   * @class p5.AudioVoice\n   * @constructor\n   */\n\n\n  p5.AudioVoice = function () {\n    this.ac = p5sound.audiocontext;\n    this.output = this.ac.createGain();\n    this.connect();\n    p5sound.soundArray.push(this);\n  };\n\n  p5.AudioVoice.prototype.play = function (note, velocity, secondsFromNow, sustime) {};\n\n  p5.AudioVoice.prototype.triggerAttack = function (note, velocity, secondsFromNow) {};\n\n  p5.AudioVoice.prototype.triggerRelease = function (secondsFromNow) {};\n\n  p5.AudioVoice.prototype.amp = function (vol, rampTime) {};\n  /**\n   * Connect to p5 objects or Web Audio Nodes\n   * @method  connect\n   * @for p5.AudioVoice\n   * @param {Object} unit\n   */\n\n\n  p5.AudioVoice.prototype.connect = function (unit) {\n    var u = unit || p5sound.input;\n    this.output.connect(u.input ? u.input : u);\n  };\n  /**\n   * Disconnect from soundOut\n   * @method  disconnect\n   * @for p5.AudioVoice\n   */\n\n\n  p5.AudioVoice.prototype.disconnect = function () {\n    this.output.disconnect();\n  };\n\n  p5.AudioVoice.prototype.dispose = function () {\n    if (this.output) {\n      this.output.disconnect();\n      delete this.output;\n    }\n  };\n\n  return p5.AudioVoice;\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var TimelineSignal = __webpack_require__(14);\n\n  var noteToFreq = __webpack_require__(6).noteToFreq;\n  /**\n    *  An AudioVoice is used as a single voice for sound synthesis.\n    *  The PolySynth class holds an array of AudioVoice, and deals\n    *  with voices allocations, with setting notes to be played, and\n    *  parameters to be set.\n    *\n    *  @class p5.PolySynth\n    *  @constructor\n    *\n    *  @param {Number} [synthVoice]   A monophonic synth voice inheriting\n    *                                 the AudioVoice class. Defaults to p5.MonoSynth\n    *  @param {Number} [maxVoices] Number of voices, defaults to 8;\n    *  @example\n    *  <div><code>\n    *  let polySynth;\n    *\n    *  function setup() {\n    *    let cnv = createCanvas(100, 100);\n    *    cnv.mousePressed(playSynth);\n    *    background(220);\n    *    text('click to play', 20, 20);\n    *\n    *    polySynth = new p5.PolySynth();\n    *  }\n    *\n    *  function playSynth() {\n    *    userStartAudio();\n    *\n    *    // note duration (in seconds)\n    *    let dur = 1.5;\n    *\n    *    // time from now (in seconds)\n    *    let time = 0;\n    *\n    *    // velocity (volume, from 0 to 1)\n    *    let vel = 0.1;\n    *\n    *    // notes can overlap with each other\n    *    polySynth.play('G2', vel, 0, dur);\n    *    polySynth.play('C3', vel, time += 1/3, dur);\n    *    polySynth.play('G3', vel, time += 1/3, dur);\n    *  }\n    *  </code></div>\n    **/\n\n\n  p5.PolySynth = function (audioVoice, maxVoices) {\n    this.audiovoices = [];\n    /**\n     * An object that holds information about which notes have been played and\n     * which notes are currently being played. New notes are added as keys\n     * on the fly. While a note has been attacked, but not released, the value of the\n     * key is the audiovoice which is generating that note. When notes are released,\n     * the value of the key becomes undefined.\n     * @property notes\n     */\n\n    this.notes = {}; \n\n    this._newest = 0;\n    this._oldest = 0;\n    /**\n     * A PolySynth must have at least 1 voice, defaults to 8\n     * @property polyvalue\n     */\n\n    this.maxVoices = maxVoices || 8;\n    /**\n     * Monosynth that generates the sound for each note that is triggered. The\n     * p5.PolySynth defaults to using the p5.MonoSynth as its voice.\n     * @property AudioVoice\n     */\n\n    this.AudioVoice = audioVoice === undefined ? p5.MonoSynth : audioVoice;\n    /**\n     * This value must only change as a note is attacked or released. Due to delay\n     * and sustain times, Tone.TimelineSignal is required to schedule the change in value.\n    * @private\n     * @property {Tone.TimelineSignal} _voicesInUse\n     */\n\n    this._voicesInUse = new TimelineSignal(0);\n    this.output = p5sound.audiocontext.createGain();\n    this.connect(); \n\n    this._allocateVoices();\n\n    p5sound.soundArray.push(this);\n  };\n  /**\n   * Construct the appropriate number of audiovoices\n   * @private\n   * @for p5.PolySynth\n   * @method  _allocateVoices\n   */\n\n\n  p5.PolySynth.prototype._allocateVoices = function () {\n    for (var i = 0; i < this.maxVoices; i++) {\n      this.audiovoices.push(new this.AudioVoice());\n      this.audiovoices[i].disconnect();\n      this.audiovoices[i].connect(this.output);\n    }\n  };\n  /**\n   *  Play a note by triggering noteAttack and noteRelease with sustain time\n   *\n   *  @method  play\n   *  @for p5.PolySynth\n   *  @param  {Number} [note] midi note to play (ranging from 0 to 127 - 60 being a middle C)\n   *  @param  {Number} [velocity] velocity of the note to play (ranging from 0 to 1)\n   *  @param  {Number} [secondsFromNow]  time from now (in seconds) at which to play\n   *  @param  {Number} [sustainTime] time to sustain before releasing the envelope\n   *  @example\n   *  <div><code>\n   *  let polySynth;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playSynth);\n   *    background(220);\n   *    text('click to play', 20, 20);\n   *\n   *    polySynth = new p5.PolySynth();\n   *  }\n   *\n   *  function playSynth() {\n   *    userStartAudio();\n   *\n   *    // note duration (in seconds)\n   *    let dur = 1.5;\n   *\n   *    // time from now (in seconds)\n   *    let time = 0;\n   *\n   *    // velocity (volume, from 0 to 1)\n   *    let vel = 0.1;\n   *\n   *    // notes can overlap with each other\n   *    polySynth.play('G2', vel, 0, dur);\n   *    polySynth.play('C3', vel, time += 1/3, dur);\n   *    polySynth.play('G3', vel, time += 1/3, dur);\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.PolySynth.prototype.play = function (note, velocity, secondsFromNow, susTime) {\n    var susTime = susTime || 1;\n    this.noteAttack(note, velocity, secondsFromNow);\n    this.noteRelease(note, secondsFromNow + susTime);\n  };\n  /**\n   *  noteADSR sets the envelope for a specific note that has just been triggered.\n   *  Using this method modifies the envelope of whichever audiovoice is being used\n   *  to play the desired note. The envelope should be reset before noteRelease is called\n   *  in order to prevent the modified envelope from being used on other notes.\n   *\n   *  @method  noteADSR\n   *  @for p5.PolySynth\n   *  @param {Number} [note]        Midi note on which ADSR should be set.\n   *  @param {Number} [attackTime]  Time (in seconds before envelope\n   *                                reaches Attack Level\n   *  @param {Number} [decayTime]   Time (in seconds) before envelope\n   *                                reaches Decay/Sustain Level\n   *  @param {Number} [susRatio]    Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n   *                                where 1.0 = attackLevel, 0.0 = releaseLevel.\n   *                                The susRatio determines the decayLevel and the level at which the\n   *                                sustain portion of the envelope will sustain.\n   *                                For example, if attackLevel is 0.4, releaseLevel is 0,\n   *                                and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n   *                                increased to 1.0 (using <code>setRange</code>),\n   *                                then decayLevel would increase proportionally, to become 0.5.\n   *  @param {Number} [releaseTime]   Time in seconds from now (defaults to 0)\n   **/\n\n\n  p5.PolySynth.prototype.noteADSR = function (note, a, d, s, r, timeFromNow) {\n    var now = p5sound.audiocontext.currentTime;\n    var timeFromNow = timeFromNow || 0;\n    var t = now + timeFromNow;\n    this.audiovoices[this.notes[note].getValueAtTime(t)].setADSR(a, d, s, r);\n  };\n  /**\n   * Set the PolySynths global envelope. This method modifies the envelopes of each\n   * monosynth so that all notes are played with this envelope.\n   *\n   *  @method  setADSR\n   *  @for p5.PolySynth\n   *  @param {Number} [attackTime]  Time (in seconds before envelope\n   *                                reaches Attack Level\n   *  @param {Number} [decayTime]   Time (in seconds) before envelope\n   *                                reaches Decay/Sustain Level\n   *  @param {Number} [susRatio]    Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n   *                                where 1.0 = attackLevel, 0.0 = releaseLevel.\n   *                                The susRatio determines the decayLevel and the level at which the\n   *                                sustain portion of the envelope will sustain.\n   *                                For example, if attackLevel is 0.4, releaseLevel is 0,\n   *                                and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n   *                                increased to 1.0 (using <code>setRange</code>),\n   *                                then decayLevel would increase proportionally, to become 0.5.\n   *  @param {Number} [releaseTime]   Time in seconds from now (defaults to 0)\n   **/\n\n\n  p5.PolySynth.prototype.setADSR = function (a, d, s, r) {\n    this.audiovoices.forEach(function (voice) {\n      voice.setADSR(a, d, s, r);\n    });\n  };\n  /**\n   *  Trigger the Attack, and Decay portion of a MonoSynth.\n   *  Similar to holding down a key on a piano, but it will\n   *  hold the sustain level until you let go.\n   *\n   *  @method  noteAttack\n   *  @for p5.PolySynth\n   *  @param  {Number} [note]           midi note on which attack should be triggered.\n   *  @param  {Number} [velocity]       velocity of the note to play (ranging from 0 to 1)/\n   *  @param  {Number} [secondsFromNow] time from now (in seconds)\n   *  @example\n   *  <div><code>\n   *  let polySynth = new p5.PolySynth();\n   *  let pitches = ['G', 'D', 'G', 'C'];\n   *  let octaves = [2, 3, 4];\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playChord);\n   *    background(220);\n   *    text('tap to play', 20, 20);\n   *  }\n   *\n   *  function playChord() {\n   *    userStartAudio();\n   *\n   *    // play a chord: multiple notes at the same time\n   *    for (let i = 0; i < 4; i++) {\n   *      let note = random(pitches) + random(octaves);\n   *      polySynth.noteAttack(note, 0.1);\n   *    }\n   *  }\n   *\n   *  function mouseReleased() {\n   *    // release all voices\n   *    polySynth.noteRelease();\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.PolySynth.prototype.noteAttack = function (_note, _velocity, secondsFromNow) {\n    var secondsFromNow = ~~secondsFromNow; \n\n    var acTime = p5sound.audiocontext.currentTime + secondsFromNow; \n\n    var note = noteToFreq(_note);\n    var velocity = _velocity || 0.1;\n    var currentVoice; \n\n    if (this.notes[note] && this.notes[note].getValueAtTime(acTime) !== null) {\n      this.noteRelease(note, 0);\n    } \n\n\n    if (this._voicesInUse.getValueAtTime(acTime) < this.maxVoices) {\n      currentVoice = Math.max(~~this._voicesInUse.getValueAtTime(acTime), 0);\n    } \n    else {\n        currentVoice = this._oldest;\n        var oldestNote = p5.prototype.freqToMidi(this.audiovoices[this._oldest].oscillator.freq().value);\n        this.noteRelease(oldestNote);\n        this._oldest = (this._oldest + 1) % (this.maxVoices - 1);\n      } \n\n\n    this.notes[note] = new TimelineSignal();\n    this.notes[note].setValueAtTime(currentVoice, acTime); \n\n    var previousVal = this._voicesInUse._searchBefore(acTime) === null ? 0 : this._voicesInUse._searchBefore(acTime).value;\n\n    this._voicesInUse.setValueAtTime(previousVal + 1, acTime); \n\n\n    this._updateAfter(acTime, 1);\n\n    this._newest = currentVoice; \n\n    if (typeof velocity === 'number') {\n      var maxRange = 1 / this._voicesInUse.getValueAtTime(acTime) * 2;\n      velocity = velocity > maxRange ? maxRange : velocity;\n    }\n\n    this.audiovoices[currentVoice].triggerAttack(note, velocity, secondsFromNow);\n  };\n  /**\n   * Private method to ensure accurate values of this._voicesInUse\n   * Any time a new value is scheduled, it is necessary to increment all subsequent\n   * scheduledValues after attack, and decrement all subsequent\n   * scheduledValues after release\n   *\n   * @private\n   * @for p5.PolySynth\n   * @param  {[type]} time  [description]\n   * @param  {[type]} value [description]\n   * @return {[type]}       [description]\n   */\n\n\n  p5.PolySynth.prototype._updateAfter = function (time, value) {\n    if (this._voicesInUse._searchAfter(time) === null) {\n      return;\n    } else {\n      this._voicesInUse._searchAfter(time).value += value;\n\n      var nextTime = this._voicesInUse._searchAfter(time).time;\n\n      this._updateAfter(nextTime, value);\n    }\n  };\n  /**\n   *  Trigger the Release of an AudioVoice note. This is similar to releasing\n   *  the key on a piano and letting the sound fade according to the\n   *  release level and release time.\n   *\n   *  @method  noteRelease\n   *  @for p5.PolySynth\n   *  @param  {Number} [note]           midi note on which attack should be triggered.\n   *                                    If no value is provided, all notes will be released.\n   *  @param  {Number} [secondsFromNow] time to trigger the release\n   *  @example\n   *  <div><code>\n   *  let polySynth = new p5.PolySynth();\n   *  let pitches = ['G', 'D', 'G', 'C'];\n   *  let octaves = [2, 3, 4];\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playChord);\n   *    background(220);\n   *    text('tap to play', 20, 20);\n   *  }\n   *\n   *  function playChord() {\n   *    userStartAudio();\n   *\n   *    // play a chord: multiple notes at the same time\n   *    for (let i = 0; i < 4; i++) {\n   *      let note = random(pitches) + random(octaves);\n   *      polySynth.noteAttack(note, 0.1);\n   *    }\n   *  }\n   *\n   *  function mouseReleased() {\n   *    // release all voices\n   *    polySynth.noteRelease();\n   *  }\n   *  </code></div>\n   *\n   */\n\n\n  p5.PolySynth.prototype.noteRelease = function (_note, secondsFromNow) {\n    var now = p5sound.audiocontext.currentTime;\n    var tFromNow = secondsFromNow || 0;\n    var t = now + tFromNow; \n\n    if (!_note) {\n      this.audiovoices.forEach(function (voice) {\n        voice.triggerRelease(tFromNow);\n      });\n\n      this._voicesInUse.setValueAtTime(0, t);\n\n      for (var n in this.notes) {\n        this.notes[n].dispose();\n        delete this.notes[n];\n      }\n\n      return;\n    } \n\n\n    var note = noteToFreq(_note);\n\n    if (!this.notes[note] || this.notes[note].getValueAtTime(t) === null) {\n      console.warn('Cannot release a note that is not already playing');\n    } else {\n      var previousVal = Math.max(~~this._voicesInUse.getValueAtTime(t).value, 1);\n\n      this._voicesInUse.setValueAtTime(previousVal - 1, t); \n\n\n      if (previousVal > 0) {\n        this._updateAfter(t, -1);\n      }\n\n      this.audiovoices[this.notes[note].getValueAtTime(t)].triggerRelease(tFromNow);\n      this.notes[note].dispose();\n      delete this.notes[note];\n      this._newest = this._newest === 0 ? 0 : (this._newest - 1) % (this.maxVoices - 1);\n    }\n  };\n  /**\n    *  Connect to a p5.sound / Web Audio object.\n    *\n    *  @method  connect\n    *  @for p5.PolySynth\n    *  @param  {Object} unit A p5.sound or Web Audio object\n    */\n\n\n  p5.PolySynth.prototype.connect = function (unit) {\n    var u = unit || p5sound.input;\n    this.output.connect(u.input ? u.input : u);\n  };\n  /**\n  *  Disconnect all outputs\n  *\n  *  @method  disconnect\n  *  @for p5.PolySynth\n  */\n\n\n  p5.PolySynth.prototype.disconnect = function () {\n    if (this.output) {\n      this.output.disconnect();\n    }\n  };\n  /**\n    *  Get rid of the MonoSynth and free up its resources / memory.\n    *\n    *  @method  dispose\n    *  @for p5.PolySynth\n    */\n\n\n  p5.PolySynth.prototype.dispose = function () {\n    this.audiovoices.forEach(function (voice) {\n      voice.dispose();\n    });\n\n    if (this.output) {\n      this.output.disconnect();\n      delete this.output;\n    }\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  __webpack_require__(32);\n\n  __webpack_require__(33);\n\n  __webpack_require__(17);\n\n  var p5SOUND = __webpack_require__(1);\n\n  __webpack_require__(6);\n\n  __webpack_require__(11);\n\n  __webpack_require__(36);\n\n  __webpack_require__(40);\n\n  __webpack_require__(41);\n\n  __webpack_require__(42);\n\n  __webpack_require__(43);\n\n  __webpack_require__(44);\n\n  __webpack_require__(23);\n\n  __webpack_require__(47);\n\n  __webpack_require__(48);\n\n  __webpack_require__(49);\n\n  __webpack_require__(50);\n\n  __webpack_require__(15);\n\n  __webpack_require__(59);\n\n  __webpack_require__(61);\n\n  __webpack_require__(62);\n\n  __webpack_require__(63);\n\n  __webpack_require__(64);\n\n  __webpack_require__(65);\n\n  __webpack_require__(67);\n\n  __webpack_require__(68);\n\n  __webpack_require__(69);\n\n  __webpack_require__(70);\n\n  __webpack_require__(71);\n\n  __webpack_require__(72);\n\n  __webpack_require__(28);\n\n  __webpack_require__(30);\n\n  __webpack_require__(73);\n\n  __webpack_require__(29);\n\n  __webpack_require__(28);\n\n  __webpack_require__(30);\n\n  return p5SOUND;\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports) {\n\n!function(){var l,s=[];function p(e){var o=this,n={},i=-1;this.parameters.forEach(function(e,t){var r=s[++i]||(s[i]=new Float32Array(o.bufferSize));r.fill(e.value),n[t]=r}),this.processor.realm.exec(\"self.sampleRate=sampleRate=\"+this.context.sampleRate+\";self.currentTime=currentTime=\"+this.context.currentTime);var t=a(e.inputBuffer),r=a(e.outputBuffer);this.instance.process([t],[r],n)}function a(e){for(var t=[],r=0;r<e.numberOfChannels;r++)t[r]=e.getChannelData(r);return t}function f(e){return e.$$processors||(e.$$processors={})}function e(e){this.$$context=e}\"function\"!=typeof AudioWorkletNode&&(self.AudioWorkletNode=function(e,t,r){var o=f(e)[t],n=e.createScriptProcessor(void 0,2,r&&r.outputChannelCount?r.outputChannelCount[0]:2);if(n.parameters=new Map,o.properties)for(var i=0;i<o.properties.length;i++){var s=o.properties[i],a=e.createGain().gain;a.value=s.defaultValue,n.parameters.set(s.name,a)}var u=new MessageChannel;l=u.port2;var c=new o.Processor(r||{});return l=null,n.port=u.port1,n.processor=o,n.instance=c,n.onaudioprocess=p,n},Object.defineProperty((self.AudioContext||self.webkitAudioContext).prototype,\"audioWorklet\",{get:function(){return this.$$audioWorklet||(this.$$audioWorklet=new self.AudioWorklet(this))}}),self.AudioWorklet=(e.prototype.addModule=function(e,t){var n=this;return fetch(e).then(function(e){if(!e.ok)throw Error(e.status);return e.text()}).then(function(e){var r={sampleRate:0,currentTime:0,AudioWorkletProcessor:function(){this.port=l},registerProcessor:function(e,t){f(n.$$context)[e]={realm:o,context:r,Processor:t,properties:t.parameterDescriptors||[]}}},o=new function(e,t){var r=document.createElement(\"iframe\");r.style.cssText=\"position:absolute;left:0;top:-999px;width:1px;height:1px;\",t.appendChild(r);var o=r.contentWindow,n=o.document,i=\"var window,$hook\";for(var s in o)s in e||\"eval\"===s||(i+=\",\",i+=s);for(var a in e)i+=\",\",i+=a,i+=\"=self.\",i+=a;var u=n.createElement(\"script\");u.appendChild(n.createTextNode('function $hook(self,console) {\"use strict\";\\n        '+i+\";return function() {return eval(arguments[0])}}\")),n.body.appendChild(u),this.exec=o.$hook(e,console)}(r.self=r,document.documentElement);return o.exec((t&&t.transpile||String)(e)),null})},e))}();\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n/**\n * This module has shims\n */\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n  (function () {\n    function fixSetTarget(param) {\n      if (!param) \n        return;\n      if (!param.setTargetAtTime) param.setTargetAtTime = param.setTargetValueAtTime;\n    }\n\n    if (window.hasOwnProperty('webkitAudioContext') && !window.hasOwnProperty('AudioContext')) {\n      window.AudioContext = window.webkitAudioContext;\n      if (typeof AudioContext.prototype.createGain !== 'function') AudioContext.prototype.createGain = AudioContext.prototype.createGainNode;\n      if (typeof AudioContext.prototype.createDelay !== 'function') AudioContext.prototype.createDelay = AudioContext.prototype.createDelayNode;\n      if (typeof AudioContext.prototype.createScriptProcessor !== 'function') AudioContext.prototype.createScriptProcessor = AudioContext.prototype.createJavaScriptNode;\n      if (typeof AudioContext.prototype.createPeriodicWave !== 'function') AudioContext.prototype.createPeriodicWave = AudioContext.prototype.createWaveTable;\n      AudioContext.prototype.internal_createGain = AudioContext.prototype.createGain;\n\n      AudioContext.prototype.createGain = function () {\n        var node = this.internal_createGain();\n        fixSetTarget(node.gain);\n        return node;\n      };\n\n      AudioContext.prototype.internal_createDelay = AudioContext.prototype.createDelay;\n\n      AudioContext.prototype.createDelay = function (maxDelayTime) {\n        var node = maxDelayTime ? this.internal_createDelay(maxDelayTime) : this.internal_createDelay();\n        fixSetTarget(node.delayTime);\n        return node;\n      };\n\n      AudioContext.prototype.internal_createBufferSource = AudioContext.prototype.createBufferSource;\n\n      AudioContext.prototype.createBufferSource = function () {\n        var node = this.internal_createBufferSource();\n\n        if (!node.start) {\n          node.start = function (when, offset, duration) {\n            if (offset || duration) this.noteGrainOn(when || 0, offset, duration);else this.noteOn(when || 0);\n          };\n        } else {\n          node.internal_start = node.start;\n\n          node.start = function (when, offset, duration) {\n            if (typeof duration !== 'undefined') node.internal_start(when || 0, offset, duration);else node.internal_start(when || 0, offset || 0);\n          };\n        }\n\n        if (!node.stop) {\n          node.stop = function (when) {\n            this.noteOff(when || 0);\n          };\n        } else {\n          node.internal_stop = node.stop;\n\n          node.stop = function (when) {\n            node.internal_stop(when || 0);\n          };\n        }\n\n        fixSetTarget(node.playbackRate);\n        return node;\n      };\n\n      AudioContext.prototype.internal_createDynamicsCompressor = AudioContext.prototype.createDynamicsCompressor;\n\n      AudioContext.prototype.createDynamicsCompressor = function () {\n        var node = this.internal_createDynamicsCompressor();\n        fixSetTarget(node.threshold);\n        fixSetTarget(node.knee);\n        fixSetTarget(node.ratio);\n        fixSetTarget(node.reduction);\n        fixSetTarget(node.attack);\n        fixSetTarget(node.release);\n        return node;\n      };\n\n      AudioContext.prototype.internal_createBiquadFilter = AudioContext.prototype.createBiquadFilter;\n\n      AudioContext.prototype.createBiquadFilter = function () {\n        var node = this.internal_createBiquadFilter();\n        fixSetTarget(node.frequency);\n        fixSetTarget(node.detune);\n        fixSetTarget(node.Q);\n        fixSetTarget(node.gain);\n        return node;\n      };\n\n      if (typeof AudioContext.prototype.createOscillator !== 'function') {\n        AudioContext.prototype.internal_createOscillator = AudioContext.prototype.createOscillator;\n\n        AudioContext.prototype.createOscillator = function () {\n          var node = this.internal_createOscillator();\n\n          if (!node.start) {\n            node.start = function (when) {\n              this.noteOn(when || 0);\n            };\n          } else {\n            node.internal_start = node.start;\n\n            node.start = function (when) {\n              node.internal_start(when || 0);\n            };\n          }\n\n          if (!node.stop) {\n            node.stop = function (when) {\n              this.noteOff(when || 0);\n            };\n          } else {\n            node.internal_stop = node.stop;\n\n            node.stop = function (when) {\n              node.internal_stop(when || 0);\n            };\n          }\n\n          if (!node.setPeriodicWave) node.setPeriodicWave = node.setWaveTable;\n          fixSetTarget(node.frequency);\n          fixSetTarget(node.detune);\n          return node;\n        };\n      }\n    }\n\n    if (window.hasOwnProperty('webkitOfflineAudioContext') && !window.hasOwnProperty('OfflineAudioContext')) {\n      window.OfflineAudioContext = window.webkitOfflineAudioContext;\n    }\n  })(window); \n\n\n  navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;\n  /**\n   * Determine which filetypes are supported (inspired by buzz.js)\n   * The audio element (el) will only be used to test browser support for various audio formats\n   */\n\n  var el = document.createElement('audio');\n\n  p5.prototype.isSupported = function () {\n    return !!el.canPlayType;\n  };\n\n  var isOGGSupported = function isOGGSupported() {\n    return !!el.canPlayType && el.canPlayType('audio/ogg; codecs=\"vorbis\"');\n  };\n\n  var isMP3Supported = function isMP3Supported() {\n    return !!el.canPlayType && el.canPlayType('audio/mpeg;');\n  };\n\n  var isWAVSupported = function isWAVSupported() {\n    return !!el.canPlayType && el.canPlayType('audio/wav; codecs=\"1\"');\n  };\n\n  var isAACSupported = function isAACSupported() {\n    return !!el.canPlayType && (el.canPlayType('audio/x-m4a;') || el.canPlayType('audio/aac;'));\n  };\n\n  var isAIFSupported = function isAIFSupported() {\n    return !!el.canPlayType && el.canPlayType('audio/x-aiff;');\n  };\n\n  p5.prototype.isFileSupported = function (extension) {\n    switch (extension.toLowerCase()) {\n      case 'mp3':\n        return isMP3Supported();\n\n      case 'wav':\n        return isWAVSupported();\n\n      case 'ogg':\n        return isOGGSupported();\n\n      case 'aac':\n      case 'm4a':\n      case 'mp4':\n        return isAACSupported();\n\n      case 'aif':\n      case 'aiff':\n        return isAIFSupported();\n\n      default:\n        return false;\n    }\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports) {\n\nvar g;g=function(){return this}();try{g=g||new Function(\"return this\")()}catch(t){\"object\"==typeof window&&(g=window)}module.exports=g;\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!function(e,t){ true?!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (t),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)):undefined}(this,function(){var r=function(e,t){this._dragged=!1,this._element=e,this._bindedMove=this._moved.bind(this),this._bindedEnd=this._ended.bind(this,t),e.addEventListener(\"touchstart\",this._bindedEnd),e.addEventListener(\"touchmove\",this._bindedMove),e.addEventListener(\"touchend\",this._bindedEnd),e.addEventListener(\"mouseup\",this._bindedEnd)};function o(e){return\"running\"===e.state}return r.prototype._moved=function(e){this._dragged=!0},r.prototype._ended=function(e){this._dragged||function(e){var t=e.createBuffer(1,1,e.sampleRate),n=e.createBufferSource();n.buffer=t,n.connect(e.destination),n.start(0),e.resume&&e.resume()}(e),this._dragged=!1},r.prototype.dispose=function(){this._element.removeEventListener(\"touchstart\",this._bindedEnd),this._element.removeEventListener(\"touchmove\",this._bindedMove),this._element.removeEventListener(\"touchend\",this._bindedEnd),this._element.removeEventListener(\"mouseup\",this._bindedEnd),this._bindedMove=null,this._bindedEnd=null,this._element=null},function(t,e,n){var i=new Promise(function(e){!function(t,n){o(t)?n():function e(){o(t)?n():(requestAnimationFrame(e),t.resume&&t.resume())}()}(t,e)}),d=[];return function e(t,n,i){if(Array.isArray(t)||NodeList&&t instanceof NodeList)for(var d=0;d<t.length;d++)e(t[d],n,i);else if(\"string\"==typeof t)e(document.querySelectorAll(t),n,i);else if(t.jquery&&\"function\"==typeof t.toArray)e(t.toArray(),n,i);else if(Element&&t instanceof Element){var o=new r(t,i);n.push(o)}}(e=e||document.body,d,t),i.then(function(){for(var e=0;e<d.length;e++)d[e].dispose();d=null,n&&n()}),i}});\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar p5sound = __webpack_require__(1);\n\nvar moduleSources = [__webpack_require__(37)[\"default\"], __webpack_require__(38)[\"default\"], __webpack_require__(39)[\"default\"]];\nvar ac = p5sound.audiocontext;\nvar initializedAudioWorklets = false;\n\nfunction loadAudioWorkletModules() {\n  return Promise.all(moduleSources.map(function (moduleSrc) {\n    var blob = new Blob([moduleSrc], {\n      type: 'application/javascript'\n    });\n    var objectURL = URL.createObjectURL(blob);\n    return ac.audioWorklet.addModule(objectURL);\n  }));\n}\n\np5.prototype.registerMethod('init', function () {\n  if (initializedAudioWorklets) return; \n\n  if (!this.preload && !window.preload) {\n    this.preload = function () {};\n  } \n\n\n  this._incrementPreload();\n\n  var onWorkletModulesLoad = function () {\n    initializedAudioWorklets = true;\n\n    this._decrementPreload();\n  }.bind(this);\n\n  loadAudioWorkletModules().then(onWorkletModulesLoad);\n});\n\n }),\n (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n __webpack_exports__[\"default\"] = (\"function _typeof(obj) { if (typeof Symbol === \\\"function\\\" && typeof Symbol.iterator === \\\"symbol\\\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \\\"function\\\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \\\"symbol\\\" : typeof obj; }; } return _typeof(obj); }\\n\\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \\\"object\\\" || typeof call === \\\"function\\\")) { return call; } return _assertThisInitialized(self); }\\n\\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\\\"this hasn't been initialised - super() hasn't been called\\\"); } return self; }\\n\\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \\\"function\\\" && superClass !== null) { throw new TypeError(\\\"Super expression must either be null or a function\\\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\\n\\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \\\"function\\\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \\\"function\\\") { throw new TypeError(\\\"Super expression must either be null or a function\\\"); } if (typeof _cache !== \\\"undefined\\\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\\n\\nfunction isNativeReflectConstruct() { if (typeof Reflect === \\\"undefined\\\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \\\"function\\\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\\n\\nfunction _construct(Parent, args, Class) { if (isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\\n\\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\\\"[native code]\\\") !== -1; }\\n\\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\\n\\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\\n\\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\\\"Cannot call a class as a function\\\"); } }\\n\\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\\\"value\\\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\\n\\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\\n\\n// import dependencies via preval.require so that they're available as values at compile time\\nvar processorNames = {\\n  \\\"recorderProcessor\\\": \\\"recorder-processor\\\",\\n  \\\"soundFileProcessor\\\": \\\"sound-file-processor\\\",\\n  \\\"amplitudeProcessor\\\": \\\"amplitude-processor\\\"\\n};\\nvar RingBuffer = {\\n  \\\"default\\\":\\n  /*#__PURE__*/\\n  function () {\\n    /**\\n     * @constructor\\n     * @param  {number} length Buffer length in frames.\\n     * @param  {number} channelCount Buffer channel count.\\n     */\\n    function RingBuffer(length, channelCount) {\\n      _classCallCheck(this, RingBuffer);\\n\\n      this._readIndex = 0;\\n      this._writeIndex = 0;\\n      this._framesAvailable = 0;\\n      this._channelCount = channelCount;\\n      this._length = length;\\n      this._channelData = [];\\n\\n      for (var i = 0; i < this._channelCount; ++i) {\\n        this._channelData[i] = new Float32Array(length);\\n      }\\n    }\\n    /**\\n     * Getter for Available frames in buffer.\\n     *\\n     * @return {number} Available frames in buffer.\\n     */\\n\\n\\n    _createClass(RingBuffer, [{\\n      key: \\\"push\\\",\\n\\n      /**\\n       * Push a sequence of Float32Arrays to buffer.\\n       *\\n       * @param  {array} arraySequence A sequence of Float32Arrays.\\n       */\\n      value: function push(arraySequence) {\\n        // The channel count of arraySequence and the length of each channel must\\n        // match with this buffer obejct.\\n        // Transfer data from the |arraySequence| storage to the internal buffer.\\n        var sourceLength = arraySequence[0].length;\\n\\n        for (var i = 0; i < sourceLength; ++i) {\\n          var writeIndex = (this._writeIndex + i) % this._length;\\n\\n          for (var channel = 0; channel < this._channelCount; ++channel) {\\n            this._channelData[channel][writeIndex] = arraySequence[channel][i];\\n          }\\n        }\\n\\n        this._writeIndex += sourceLength;\\n\\n        if (this._writeIndex >= this._length) {\\n          this._writeIndex = 0;\\n        } // For excessive frames, the buffer will be overwritten.\\n\\n\\n        this._framesAvailable += sourceLength;\\n\\n        if (this._framesAvailable > this._length) {\\n          this._framesAvailable = this._length;\\n        }\\n      }\\n      /**\\n       * Pull data out of buffer and fill a given sequence of Float32Arrays.\\n       *\\n       * @param  {array} arraySequence An array of Float32Arrays.\\n       */\\n\\n    }, {\\n      key: \\\"pull\\\",\\n      value: function pull(arraySequence) {\\n        // The channel count of arraySequence and the length of each channel must\\n        // match with this buffer obejct.\\n        // If the FIFO is completely empty, do nothing.\\n        if (this._framesAvailable === 0) {\\n          return;\\n        }\\n\\n        var destinationLength = arraySequence[0].length; // Transfer data from the internal buffer to the |arraySequence| storage.\\n\\n        for (var i = 0; i < destinationLength; ++i) {\\n          var readIndex = (this._readIndex + i) % this._length;\\n\\n          for (var channel = 0; channel < this._channelCount; ++channel) {\\n            arraySequence[channel][i] = this._channelData[channel][readIndex];\\n          }\\n        }\\n\\n        this._readIndex += destinationLength;\\n\\n        if (this._readIndex >= this._length) {\\n          this._readIndex = 0;\\n        }\\n\\n        this._framesAvailable -= destinationLength;\\n\\n        if (this._framesAvailable < 0) {\\n          this._framesAvailable = 0;\\n        }\\n      }\\n    }, {\\n      key: \\\"framesAvailable\\\",\\n      get: function get() {\\n        return this._framesAvailable;\\n      }\\n    }]);\\n\\n    return RingBuffer;\\n  }()\\n}[\\\"default\\\"];\\n\\nvar RecorderProcessor =\\n/*#__PURE__*/\\nfunction (_AudioWorkletProcesso) {\\n  _inherits(RecorderProcessor, _AudioWorkletProcesso);\\n\\n  function RecorderProcessor(options) {\\n    var _this;\\n\\n    _classCallCheck(this, RecorderProcessor);\\n\\n    _this = _possibleConstructorReturn(this, _getPrototypeOf(RecorderProcessor).call(this));\\n    var processorOptions = options.processorOptions || {};\\n    _this.numOutputChannels = options.outputChannelCount || 2;\\n    _this.numInputChannels = processorOptions.numInputChannels || 2;\\n    _this.bufferSize = processorOptions.bufferSize || 1024;\\n    _this.recording = false;\\n\\n    _this.clear();\\n\\n    _this.port.onmessage = function (event) {\\n      var data = event.data;\\n\\n      if (data.name === 'start') {\\n        _this.record(data.duration);\\n      } else if (data.name === 'stop') {\\n        _this.stop();\\n      }\\n    };\\n\\n    return _this;\\n  }\\n\\n  _createClass(RecorderProcessor, [{\\n    key: \\\"process\\\",\\n    value: function process(inputs) {\\n      if (!this.recording) {\\n        return true;\\n      } else if (this.sampleLimit && this.recordedSamples >= this.sampleLimit) {\\n        this.stop();\\n        return true;\\n      }\\n\\n      var input = inputs[0];\\n      this.inputRingBuffer.push(input);\\n\\n      if (this.inputRingBuffer.framesAvailable >= this.bufferSize) {\\n        this.inputRingBuffer.pull(this.inputRingBufferArraySequence);\\n\\n        for (var channel = 0; channel < this.numOutputChannels; ++channel) {\\n          var inputChannelCopy = this.inputRingBufferArraySequence[channel].slice();\\n\\n          if (channel === 0) {\\n            this.leftBuffers.push(inputChannelCopy);\\n\\n            if (this.numInputChannels === 1) {\\n              this.rightBuffers.push(inputChannelCopy);\\n            }\\n          } else if (channel === 1 && this.numInputChannels > 1) {\\n            this.rightBuffers.push(inputChannelCopy);\\n          }\\n        }\\n\\n        this.recordedSamples += this.bufferSize;\\n      }\\n\\n      return true;\\n    }\\n  }, {\\n    key: \\\"record\\\",\\n    value: function record(duration) {\\n      if (duration) {\\n        this.sampleLimit = Math.round(duration * sampleRate);\\n      }\\n\\n      this.recording = true;\\n    }\\n  }, {\\n    key: \\\"stop\\\",\\n    value: function stop() {\\n      this.recording = false;\\n      var buffers = this.getBuffers();\\n      var leftBuffer = buffers[0].buffer;\\n      var rightBuffer = buffers[1].buffer;\\n      this.port.postMessage({\\n        name: 'buffers',\\n        leftBuffer: leftBuffer,\\n        rightBuffer: rightBuffer\\n      }, [leftBuffer, rightBuffer]);\\n      this.clear();\\n    }\\n  }, {\\n    key: \\\"getBuffers\\\",\\n    value: function getBuffers() {\\n      var buffers = [];\\n      buffers.push(this.mergeBuffers(this.leftBuffers));\\n      buffers.push(this.mergeBuffers(this.rightBuffers));\\n      return buffers;\\n    }\\n  }, {\\n    key: \\\"mergeBuffers\\\",\\n    value: function mergeBuffers(channelBuffer) {\\n      var result = new Float32Array(this.recordedSamples);\\n      var offset = 0;\\n      var lng = channelBuffer.length;\\n\\n      for (var i = 0; i < lng; i++) {\\n        var buffer = channelBuffer[i];\\n        result.set(buffer, offset);\\n        offset += buffer.length;\\n      }\\n\\n      return result;\\n    }\\n  }, {\\n    key: \\\"clear\\\",\\n    value: function clear() {\\n      var _this2 = this;\\n\\n      this.leftBuffers = [];\\n      this.rightBuffers = [];\\n      this.inputRingBuffer = new RingBuffer(this.bufferSize, this.numInputChannels);\\n      this.inputRingBufferArraySequence = new Array(this.numInputChannels).fill(null).map(function () {\\n        return new Float32Array(_this2.bufferSize);\\n      });\\n      this.recordedSamples = 0;\\n      this.sampleLimit = null;\\n    }\\n  }]);\\n\\n  return RecorderProcessor;\\n}(_wrapNativeSuper(AudioWorkletProcessor));\\n\\nregisterProcessor(processorNames.recorderProcessor, RecorderProcessor);\");\n\n }),\n (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n __webpack_exports__[\"default\"] = (\"function _typeof(obj) { if (typeof Symbol === \\\"function\\\" && typeof Symbol.iterator === \\\"symbol\\\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \\\"function\\\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \\\"symbol\\\" : typeof obj; }; } return _typeof(obj); }\\n\\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \\\"object\\\" || typeof call === \\\"function\\\")) { return call; } return _assertThisInitialized(self); }\\n\\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\\\"this hasn't been initialised - super() hasn't been called\\\"); } return self; }\\n\\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \\\"function\\\" && superClass !== null) { throw new TypeError(\\\"Super expression must either be null or a function\\\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\\n\\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \\\"function\\\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \\\"function\\\") { throw new TypeError(\\\"Super expression must either be null or a function\\\"); } if (typeof _cache !== \\\"undefined\\\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\\n\\nfunction isNativeReflectConstruct() { if (typeof Reflect === \\\"undefined\\\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \\\"function\\\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\\n\\nfunction _construct(Parent, args, Class) { if (isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\\n\\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\\\"[native code]\\\") !== -1; }\\n\\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\\n\\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\\n\\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\\\"Cannot call a class as a function\\\"); } }\\n\\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\\\"value\\\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\\n\\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\\n\\n// import dependencies via preval.require so that they're available as values at compile time\\nvar processorNames = {\\n  \\\"recorderProcessor\\\": \\\"recorder-processor\\\",\\n  \\\"soundFileProcessor\\\": \\\"sound-file-processor\\\",\\n  \\\"amplitudeProcessor\\\": \\\"amplitude-processor\\\"\\n};\\nvar RingBuffer = {\\n  \\\"default\\\":\\n  /*#__PURE__*/\\n  function () {\\n    /**\\n     * @constructor\\n     * @param  {number} length Buffer length in frames.\\n     * @param  {number} channelCount Buffer channel count.\\n     */\\n    function RingBuffer(length, channelCount) {\\n      _classCallCheck(this, RingBuffer);\\n\\n      this._readIndex = 0;\\n      this._writeIndex = 0;\\n      this._framesAvailable = 0;\\n      this._channelCount = channelCount;\\n      this._length = length;\\n      this._channelData = [];\\n\\n      for (var i = 0; i < this._channelCount; ++i) {\\n        this._channelData[i] = new Float32Array(length);\\n      }\\n    }\\n    /**\\n     * Getter for Available frames in buffer.\\n     *\\n     * @return {number} Available frames in buffer.\\n     */\\n\\n\\n    _createClass(RingBuffer, [{\\n      key: \\\"push\\\",\\n\\n      /**\\n       * Push a sequence of Float32Arrays to buffer.\\n       *\\n       * @param  {array} arraySequence A sequence of Float32Arrays.\\n       */\\n      value: function push(arraySequence) {\\n        // The channel count of arraySequence and the length of each channel must\\n        // match with this buffer obejct.\\n        // Transfer data from the |arraySequence| storage to the internal buffer.\\n        var sourceLength = arraySequence[0].length;\\n\\n        for (var i = 0; i < sourceLength; ++i) {\\n          var writeIndex = (this._writeIndex + i) % this._length;\\n\\n          for (var channel = 0; channel < this._channelCount; ++channel) {\\n            this._channelData[channel][writeIndex] = arraySequence[channel][i];\\n          }\\n        }\\n\\n        this._writeIndex += sourceLength;\\n\\n        if (this._writeIndex >= this._length) {\\n          this._writeIndex = 0;\\n        } // For excessive frames, the buffer will be overwritten.\\n\\n\\n        this._framesAvailable += sourceLength;\\n\\n        if (this._framesAvailable > this._length) {\\n          this._framesAvailable = this._length;\\n        }\\n      }\\n      /**\\n       * Pull data out of buffer and fill a given sequence of Float32Arrays.\\n       *\\n       * @param  {array} arraySequence An array of Float32Arrays.\\n       */\\n\\n    }, {\\n      key: \\\"pull\\\",\\n      value: function pull(arraySequence) {\\n        // The channel count of arraySequence and the length of each channel must\\n        // match with this buffer obejct.\\n        // If the FIFO is completely empty, do nothing.\\n        if (this._framesAvailable === 0) {\\n          return;\\n        }\\n\\n        var destinationLength = arraySequence[0].length; // Transfer data from the internal buffer to the |arraySequence| storage.\\n\\n        for (var i = 0; i < destinationLength; ++i) {\\n          var readIndex = (this._readIndex + i) % this._length;\\n\\n          for (var channel = 0; channel < this._channelCount; ++channel) {\\n            arraySequence[channel][i] = this._channelData[channel][readIndex];\\n          }\\n        }\\n\\n        this._readIndex += destinationLength;\\n\\n        if (this._readIndex >= this._length) {\\n          this._readIndex = 0;\\n        }\\n\\n        this._framesAvailable -= destinationLength;\\n\\n        if (this._framesAvailable < 0) {\\n          this._framesAvailable = 0;\\n        }\\n      }\\n    }, {\\n      key: \\\"framesAvailable\\\",\\n      get: function get() {\\n        return this._framesAvailable;\\n      }\\n    }]);\\n\\n    return RingBuffer;\\n  }()\\n}[\\\"default\\\"];\\n\\nvar SoundFileProcessor =\\n/*#__PURE__*/\\nfunction (_AudioWorkletProcesso) {\\n  _inherits(SoundFileProcessor, _AudioWorkletProcesso);\\n\\n  function SoundFileProcessor(options) {\\n    var _this;\\n\\n    _classCallCheck(this, SoundFileProcessor);\\n\\n    _this = _possibleConstructorReturn(this, _getPrototypeOf(SoundFileProcessor).call(this));\\n    var processorOptions = options.processorOptions || {};\\n    _this.bufferSize = processorOptions.bufferSize || 256;\\n    _this.inputRingBuffer = new RingBuffer(_this.bufferSize, 1);\\n    _this.inputRingBufferArraySequence = [new Float32Array(_this.bufferSize)];\\n    return _this;\\n  }\\n\\n  _createClass(SoundFileProcessor, [{\\n    key: \\\"process\\\",\\n    value: function process(inputs) {\\n      var input = inputs[0]; // we only care about the first input channel, because that contains the position data\\n\\n      this.inputRingBuffer.push([input[0]]);\\n\\n      if (this.inputRingBuffer.framesAvailable >= this.bufferSize) {\\n        this.inputRingBuffer.pull(this.inputRingBufferArraySequence);\\n        var inputChannel = this.inputRingBufferArraySequence[0];\\n        var position = inputChannel[inputChannel.length - 1] || 0;\\n        this.port.postMessage({\\n          name: 'position',\\n          position: position\\n        });\\n      }\\n\\n      return true;\\n    }\\n  }]);\\n\\n  return SoundFileProcessor;\\n}(_wrapNativeSuper(AudioWorkletProcessor));\\n\\nregisterProcessor(processorNames.soundFileProcessor, SoundFileProcessor);\");\n\n }),\n (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n __webpack_exports__[\"default\"] = (\"function _typeof(obj) { if (typeof Symbol === \\\"function\\\" && typeof Symbol.iterator === \\\"symbol\\\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \\\"function\\\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \\\"symbol\\\" : typeof obj; }; } return _typeof(obj); }\\n\\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \\\"object\\\" || typeof call === \\\"function\\\")) { return call; } return _assertThisInitialized(self); }\\n\\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\\\"this hasn't been initialised - super() hasn't been called\\\"); } return self; }\\n\\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \\\"function\\\" && superClass !== null) { throw new TypeError(\\\"Super expression must either be null or a function\\\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\\n\\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \\\"function\\\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \\\"function\\\") { throw new TypeError(\\\"Super expression must either be null or a function\\\"); } if (typeof _cache !== \\\"undefined\\\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\\n\\nfunction isNativeReflectConstruct() { if (typeof Reflect === \\\"undefined\\\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \\\"function\\\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\\n\\nfunction _construct(Parent, args, Class) { if (isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\\n\\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\\\"[native code]\\\") !== -1; }\\n\\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\\n\\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\\n\\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\\\"Cannot call a class as a function\\\"); } }\\n\\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\\\"value\\\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\\n\\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\\n\\n// import dependencies via preval.require so that they're available as values at compile time\\nvar processorNames = {\\n  \\\"recorderProcessor\\\": \\\"recorder-processor\\\",\\n  \\\"soundFileProcessor\\\": \\\"sound-file-processor\\\",\\n  \\\"amplitudeProcessor\\\": \\\"amplitude-processor\\\"\\n};\\nvar RingBuffer = {\\n  \\\"default\\\":\\n  /*#__PURE__*/\\n  function () {\\n    /**\\n     * @constructor\\n     * @param  {number} length Buffer length in frames.\\n     * @param  {number} channelCount Buffer channel count.\\n     */\\n    function RingBuffer(length, channelCount) {\\n      _classCallCheck(this, RingBuffer);\\n\\n      this._readIndex = 0;\\n      this._writeIndex = 0;\\n      this._framesAvailable = 0;\\n      this._channelCount = channelCount;\\n      this._length = length;\\n      this._channelData = [];\\n\\n      for (var i = 0; i < this._channelCount; ++i) {\\n        this._channelData[i] = new Float32Array(length);\\n      }\\n    }\\n    /**\\n     * Getter for Available frames in buffer.\\n     *\\n     * @return {number} Available frames in buffer.\\n     */\\n\\n\\n    _createClass(RingBuffer, [{\\n      key: \\\"push\\\",\\n\\n      /**\\n       * Push a sequence of Float32Arrays to buffer.\\n       *\\n       * @param  {array} arraySequence A sequence of Float32Arrays.\\n       */\\n      value: function push(arraySequence) {\\n        // The channel count of arraySequence and the length of each channel must\\n        // match with this buffer obejct.\\n        // Transfer data from the |arraySequence| storage to the internal buffer.\\n        var sourceLength = arraySequence[0].length;\\n\\n        for (var i = 0; i < sourceLength; ++i) {\\n          var writeIndex = (this._writeIndex + i) % this._length;\\n\\n          for (var channel = 0; channel < this._channelCount; ++channel) {\\n            this._channelData[channel][writeIndex] = arraySequence[channel][i];\\n          }\\n        }\\n\\n        this._writeIndex += sourceLength;\\n\\n        if (this._writeIndex >= this._length) {\\n          this._writeIndex = 0;\\n        } // For excessive frames, the buffer will be overwritten.\\n\\n\\n        this._framesAvailable += sourceLength;\\n\\n        if (this._framesAvailable > this._length) {\\n          this._framesAvailable = this._length;\\n        }\\n      }\\n      /**\\n       * Pull data out of buffer and fill a given sequence of Float32Arrays.\\n       *\\n       * @param  {array} arraySequence An array of Float32Arrays.\\n       */\\n\\n    }, {\\n      key: \\\"pull\\\",\\n      value: function pull(arraySequence) {\\n        // The channel count of arraySequence and the length of each channel must\\n        // match with this buffer obejct.\\n        // If the FIFO is completely empty, do nothing.\\n        if (this._framesAvailable === 0) {\\n          return;\\n        }\\n\\n        var destinationLength = arraySequence[0].length; // Transfer data from the internal buffer to the |arraySequence| storage.\\n\\n        for (var i = 0; i < destinationLength; ++i) {\\n          var readIndex = (this._readIndex + i) % this._length;\\n\\n          for (var channel = 0; channel < this._channelCount; ++channel) {\\n            arraySequence[channel][i] = this._channelData[channel][readIndex];\\n          }\\n        }\\n\\n        this._readIndex += destinationLength;\\n\\n        if (this._readIndex >= this._length) {\\n          this._readIndex = 0;\\n        }\\n\\n        this._framesAvailable -= destinationLength;\\n\\n        if (this._framesAvailable < 0) {\\n          this._framesAvailable = 0;\\n        }\\n      }\\n    }, {\\n      key: \\\"framesAvailable\\\",\\n      get: function get() {\\n        return this._framesAvailable;\\n      }\\n    }]);\\n\\n    return RingBuffer;\\n  }()\\n}[\\\"default\\\"];\\n\\nvar AmplitudeProcessor =\\n/*#__PURE__*/\\nfunction (_AudioWorkletProcesso) {\\n  _inherits(AmplitudeProcessor, _AudioWorkletProcesso);\\n\\n  function AmplitudeProcessor(options) {\\n    var _this;\\n\\n    _classCallCheck(this, AmplitudeProcessor);\\n\\n    _this = _possibleConstructorReturn(this, _getPrototypeOf(AmplitudeProcessor).call(this));\\n    var processorOptions = options.processorOptions || {};\\n    _this.numOutputChannels = options.outputChannelCount || 1;\\n    _this.numInputChannels = processorOptions.numInputChannels || 2;\\n    _this.normalize = processorOptions.normalize || false;\\n    _this.smoothing = processorOptions.smoothing || 0;\\n    _this.bufferSize = processorOptions.bufferSize || 2048;\\n    _this.inputRingBuffer = new RingBuffer(_this.bufferSize, _this.numInputChannels);\\n    _this.outputRingBuffer = new RingBuffer(_this.bufferSize, _this.numOutputChannels);\\n    _this.inputRingBufferArraySequence = new Array(_this.numInputChannels).fill(null).map(function () {\\n      return new Float32Array(_this.bufferSize);\\n    });\\n    _this.stereoVol = [0, 0];\\n    _this.stereoVolNorm = [0, 0];\\n    _this.volMax = 0.001;\\n\\n    _this.port.onmessage = function (event) {\\n      var data = event.data;\\n\\n      if (data.name === 'toggleNormalize') {\\n        _this.normalize = data.normalize;\\n      } else if (data.name === 'smoothing') {\\n        _this.smoothing = Math.max(0, Math.min(1, data.smoothing));\\n      }\\n    };\\n\\n    return _this;\\n  } // TO DO make this stereo / dependent on # of audio channels\\n\\n\\n  _createClass(AmplitudeProcessor, [{\\n    key: \\\"process\\\",\\n    value: function process(inputs, outputs) {\\n      var input = inputs[0];\\n      var output = outputs[0];\\n      var smoothing = this.smoothing;\\n      this.inputRingBuffer.push(input);\\n\\n      if (this.inputRingBuffer.framesAvailable >= this.bufferSize) {\\n        this.inputRingBuffer.pull(this.inputRingBufferArraySequence);\\n\\n        for (var channel = 0; channel < this.numInputChannels; ++channel) {\\n          var inputBuffer = this.inputRingBufferArraySequence[channel];\\n          var bufLength = inputBuffer.length;\\n          var sum = 0;\\n\\n          for (var i = 0; i < bufLength; i++) {\\n            var x = inputBuffer[i];\\n\\n            if (this.normalize) {\\n              sum += Math.max(Math.min(x / this.volMax, 1), -1) * Math.max(Math.min(x / this.volMax, 1), -1);\\n            } else {\\n              sum += x * x;\\n            }\\n          } // ... then take the square root of the sum.\\n\\n\\n          var rms = Math.sqrt(sum / bufLength);\\n          this.stereoVol[channel] = Math.max(rms, this.stereoVol[channel] * smoothing);\\n          this.volMax = Math.max(this.stereoVol[channel], this.volMax);\\n        } // calculate stero normalized volume and add volume from all channels together\\n\\n\\n        var volSum = 0;\\n\\n        for (var index = 0; index < this.stereoVol.length; index++) {\\n          this.stereoVolNorm[index] = Math.max(Math.min(this.stereoVol[index] / this.volMax, 1), 0);\\n          volSum += this.stereoVol[index];\\n        } // volume is average of channels\\n\\n\\n        var volume = volSum / this.stereoVol.length; // normalized value\\n\\n        var volNorm = Math.max(Math.min(volume / this.volMax, 1), 0);\\n        this.port.postMessage({\\n          name: 'amplitude',\\n          volume: volume,\\n          volNorm: volNorm,\\n          stereoVol: this.stereoVol,\\n          stereoVolNorm: this.stereoVolNorm\\n        }); // pass input through to output\\n\\n        this.outputRingBuffer.push(this.inputRingBufferArraySequence);\\n      } // pull 128 frames out of the ring buffer\\n      // if the ring buffer does not have enough frames, the output will be silent\\n\\n\\n      this.outputRingBuffer.pull(output);\\n      return true;\\n    }\\n  }]);\\n\\n  return AmplitudeProcessor;\\n}(_wrapNativeSuper(AudioWorkletProcessor));\\n\\nregisterProcessor(processorNames.amplitudeProcessor, AmplitudeProcessor);\");\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var ac = p5sound.audiocontext; \n\n  if (typeof ac.createStereoPanner !== 'undefined') {\n    p5.Panner = function (input, output) {\n      this.stereoPanner = this.input = ac.createStereoPanner();\n      input.connect(this.stereoPanner);\n      this.stereoPanner.connect(output);\n    };\n\n    p5.Panner.prototype.pan = function (val, tFromNow) {\n      var time = tFromNow || 0;\n      var t = ac.currentTime + time;\n      this.stereoPanner.pan.linearRampToValueAtTime(val, t);\n    }; \n\n\n    p5.Panner.prototype.inputChannels = function () {};\n\n    p5.Panner.prototype.connect = function (obj) {\n      this.stereoPanner.connect(obj);\n    };\n\n    p5.Panner.prototype.disconnect = function () {\n      if (this.stereoPanner) {\n        this.stereoPanner.disconnect();\n      }\n    };\n  } else {\n    p5.Panner = function (input, output, numInputChannels) {\n      this.input = ac.createGain();\n      input.connect(this.input);\n      this.left = ac.createGain();\n      this.right = ac.createGain();\n      this.left.channelInterpretation = 'discrete';\n      this.right.channelInterpretation = 'discrete'; \n\n      if (numInputChannels > 1) {\n        this.splitter = ac.createChannelSplitter(2);\n        this.input.connect(this.splitter);\n        this.splitter.connect(this.left, 1);\n        this.splitter.connect(this.right, 0);\n      } else {\n        this.input.connect(this.left);\n        this.input.connect(this.right);\n      }\n\n      this.output = ac.createChannelMerger(2);\n      this.left.connect(this.output, 0, 1);\n      this.right.connect(this.output, 0, 0);\n      this.output.connect(output);\n    }; \n\n\n    p5.Panner.prototype.pan = function (val, tFromNow) {\n      var time = tFromNow || 0;\n      var t = ac.currentTime + time;\n      var v = (val + 1) / 2;\n      var rightVal = Math.cos(v * Math.PI / 2);\n      var leftVal = Math.sin(v * Math.PI / 2);\n      this.left.gain.linearRampToValueAtTime(leftVal, t);\n      this.right.gain.linearRampToValueAtTime(rightVal, t);\n    };\n\n    p5.Panner.prototype.inputChannels = function (numChannels) {\n      if (numChannels === 1) {\n        this.input.disconnect();\n        this.input.connect(this.left);\n        this.input.connect(this.right);\n      } else if (numChannels === 2) {\n        if (_typeof(this.splitter === 'undefined')) {\n          this.splitter = ac.createChannelSplitter(2);\n        }\n\n        this.input.disconnect();\n        this.input.connect(this.splitter);\n        this.splitter.connect(this.left, 1);\n        this.splitter.connect(this.right, 0);\n      }\n    };\n\n    p5.Panner.prototype.connect = function (obj) {\n      this.output.connect(obj);\n    };\n\n    p5.Panner.prototype.disconnect = function () {\n      if (this.output) {\n        this.output.disconnect();\n      }\n    };\n  }\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var CustomError = __webpack_require__(11);\n\n  var p5sound = __webpack_require__(1);\n\n  var ac = p5sound.audiocontext;\n\n  var _require = __webpack_require__(6),\n      midiToFreq = _require.midiToFreq,\n      convertToWav = _require.convertToWav,\n      safeBufferSize = _require.safeBufferSize;\n\n  var processorNames = __webpack_require__(10);\n  /**\n   *  <p>SoundFile object with a path to a file.</p>\n   *\n   *  <p>The p5.SoundFile may not be available immediately because\n   *  it loads the file information asynchronously.</p>\n   *\n   *  <p>To do something with the sound as soon as it loads\n   *  pass the name of a function as the second parameter.</p>\n   *\n   *  <p>Only one file path is required. However, audio file formats\n   *  (i.e. mp3, ogg, wav and m4a/aac) are not supported by all\n   *  web browsers. If you want to ensure compatability, instead of a single\n   *  file path, you may include an Array of filepaths, and the browser will\n   *  choose a format that works.</p>\n   *\n   *  @class p5.SoundFile\n   *  @constructor\n   *  @param {String|Array} path   path to a sound file (String). Optionally,\n   *                               you may include multiple file formats in\n   *                               an array. Alternately, accepts an object\n   *                               from the HTML5 File API, or a p5.File.\n   *  @param {Function} [successCallback]   Name of a function to call once file loads\n   *  @param {Function} [errorCallback]   Name of a function to call if file fails to\n   *                                      load. This function will receive an error or\n   *                                     XMLHttpRequest object with information\n   *                                     about what went wrong.\n   *  @param {Function} [whileLoadingCallback]   Name of a function to call while file\n   *                                             is loading. That function will\n   *                                             receive progress of the request to\n   *                                             load the sound file\n   *                                             (between 0 and 1) as its first\n   *                                             parameter. This progress\n   *                                             does not account for the additional\n   *                                             time needed to decode the audio data.\n   *\n   *  @example\n   *  <div><code>\n   *  let mySound;\n   *  function preload() {\n   *    soundFormats('mp3', 'ogg');\n   *    mySound = loadSound('assets/doorbell');\n   *  }\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *    background(220);\n   *    text('tap here to play', 10, 20);\n   *  }\n   *\n   *  function canvasPressed() {\n   *    // playing a sound file on a user gesture\n   *    // is equivalent to `userStartAudio()`\n   *    mySound.play();\n   *  }\n   * </code></div>\n   */\n\n\n  p5.SoundFile = function (paths, onload, onerror, whileLoading) {\n    if (typeof paths !== 'undefined') {\n      if (typeof paths === 'string' || typeof paths[0] === 'string') {\n        var path = p5.prototype._checkFileFormats(paths);\n\n        this.url = path;\n      } else if (_typeof(paths) === 'object') {\n        if (!(window.File && window.FileReader && window.FileList && window.Blob)) {\n          throw 'Unable to load file because the File API is not supported';\n        }\n      } \n\n\n      if (paths.file) {\n        paths = paths.file;\n      }\n\n      this.file = paths;\n    } \n\n\n    this._onended = function () {};\n\n    this._looping = false;\n    this._playing = false;\n    this._paused = false;\n    this._pauseTime = 0; \n\n    this._cues = [];\n    this._cueIDCounter = 0; \n\n    this._lastPos = 0;\n    this._counterNode = null;\n    this._workletNode = null; \n\n    this.bufferSourceNodes = []; \n\n    this.bufferSourceNode = null;\n    this.buffer = null;\n    this.playbackRate = 1;\n    this.input = p5sound.audiocontext.createGain();\n    this.output = p5sound.audiocontext.createGain();\n    this.reversed = false; \n\n    this.startTime = 0;\n    this.endTime = null;\n    this.pauseTime = 0; \n\n    this.mode = 'sustain'; \n\n    this.startMillis = null; \n\n    this.panPosition = 0.0;\n    this.panner = new p5.Panner(this.output, p5sound.input, 2); \n\n    if (this.url || this.file) {\n      this.load(onload, onerror);\n    } \n\n\n    p5sound.soundArray.push(this);\n\n    if (typeof whileLoading === 'function') {\n      this._whileLoading = whileLoading;\n    } else {\n      this._whileLoading = function () {};\n    }\n\n    this._clearOnEnd = _clearOnEnd.bind(this);\n  }; \n\n\n  p5.prototype.registerPreloadMethod('loadSound', p5.prototype);\n  /**\n   *  loadSound() returns a new p5.SoundFile from a specified\n   *  path. If called during preload(), the p5.SoundFile will be ready\n   *  to play in time for setup() and draw(). If called outside of\n   *  preload, the p5.SoundFile will not be ready immediately, so\n   *  loadSound accepts a callback as the second parameter. Using a\n   *  <a href=\"https://github.com/processing/p5.js/wiki/Local-server\">\n   *  local server</a> is recommended when loading external files.\n   *\n   *  @method loadSound\n   *  @for p5\n   *  @param  {String|Array}   path     Path to the sound file, or an array with\n   *                                    paths to soundfiles in multiple formats\n   *                                    i.e. ['sound.ogg', 'sound.mp3'].\n   *                                    Alternately, accepts an object: either\n   *                                    from the HTML5 File API, or a p5.File.\n   *  @param {Function} [successCallback]   Name of a function to call once file loads\n   *  @param {Function} [errorCallback]   Name of a function to call if there is\n   *                                      an error loading the file.\n   *  @param {Function} [whileLoading] Name of a function to call while file is loading.\n   *                                 This function will receive the percentage loaded\n   *                                 so far, from 0.0 to 1.0.\n   *  @return {SoundFile}            Returns a p5.SoundFile\n   *  @example\n   *  <div><code>\n   *  let mySound;\n   *  function preload() {\n   *    soundFormats('mp3', 'ogg');\n   *    mySound = loadSound('assets/doorbell');\n   *  }\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *    background(220);\n   *    text('tap here to play', 10, 20);\n   *  }\n   *\n   *  function canvasPressed() {\n   *    // playing a sound file on a user gesture\n   *    // is equivalent to `userStartAudio()`\n   *    mySound.play();\n   *  }\n   *  </code></div>\n   */\n\n  p5.prototype.loadSound = function (path, callback, onerror, whileLoading) {\n    if (window.location.origin.indexOf('file://') > -1 && window.cordova === 'undefined') {\n      window.alert('This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS');\n    }\n\n    var self = this;\n    var s = new p5.SoundFile(path, function () {\n      if (typeof callback === 'function') {\n        callback.apply(self, arguments);\n      }\n\n      if (typeof self._decrementPreload === 'function') {\n        self._decrementPreload();\n      }\n    }, onerror, whileLoading);\n    return s;\n  };\n  /**\n   * This is a helper function that the p5.SoundFile calls to load\n   * itself. Accepts a callback (the name of another function)\n   * as an optional parameter.\n   *\n   * @private\n   * @for p5.SoundFile\n   * @param {Function} [successCallback]   Name of a function to call once file loads\n   * @param {Function} [errorCallback]   Name of a function to call if there is an error\n   */\n\n\n  p5.SoundFile.prototype.load = function (callback, errorCallback) {\n    var self = this;\n    var errorTrace = new Error().stack;\n\n    if (this.url !== undefined && this.url !== '') {\n      var request = new XMLHttpRequest();\n      request.addEventListener('progress', function (evt) {\n        self._updateProgress(evt);\n      }, false);\n      request.open('GET', this.url, true);\n      request.responseType = 'arraybuffer';\n\n      request.onload = function () {\n        if (request.status === 200) {\n          if (!self.panner) return;\n          ac.decodeAudioData(request.response, \n          function (buff) {\n            if (!self.panner) return;\n            self.buffer = buff;\n            self.panner.inputChannels(buff.numberOfChannels);\n\n            if (callback) {\n              callback(self);\n            }\n          }, \n          function () {\n            if (!self.panner) return;\n            var err = new CustomError('decodeAudioData', errorTrace, self.url);\n            var msg = 'AudioContext error at decodeAudioData for ' + self.url;\n\n            if (errorCallback) {\n              err.msg = msg;\n              errorCallback(err);\n            } else {\n              console.error(msg + '\\n The error stack trace includes: \\n' + err.stack);\n            }\n          });\n        } \n        else {\n            if (!self.panner) return;\n            var err = new CustomError('loadSound', errorTrace, self.url);\n            var msg = 'Unable to load ' + self.url + '. The request status was: ' + request.status + ' (' + request.statusText + ')';\n\n            if (errorCallback) {\n              err.message = msg;\n              errorCallback(err);\n            } else {\n              console.error(msg + '\\n The error stack trace includes: \\n' + err.stack);\n            }\n          }\n      }; \n\n\n      request.onerror = function () {\n        var err = new CustomError('loadSound', errorTrace, self.url);\n        var msg = 'There was no response from the server at ' + self.url + '. Check the url and internet connectivity.';\n\n        if (errorCallback) {\n          err.message = msg;\n          errorCallback(err);\n        } else {\n          console.error(msg + '\\n The error stack trace includes: \\n' + err.stack);\n        }\n      };\n\n      request.send();\n    } else if (this.file !== undefined) {\n      var reader = new FileReader();\n\n      reader.onload = function () {\n        if (!self.panner) return;\n        ac.decodeAudioData(reader.result, function (buff) {\n          if (!self.panner) return;\n          self.buffer = buff;\n          self.panner.inputChannels(buff.numberOfChannels);\n\n          if (callback) {\n            callback(self);\n          }\n        });\n      };\n\n      reader.onerror = function (e) {\n        if (!self.panner) return;\n\n        if (onerror) {\n          onerror(e);\n        }\n      };\n\n      reader.readAsArrayBuffer(this.file);\n    }\n  }; \n\n\n  p5.SoundFile.prototype._updateProgress = function (evt) {\n    if (evt.lengthComputable) {\n      var percentComplete = evt.loaded / evt.total * 0.99;\n\n      this._whileLoading(percentComplete, evt); \n\n    } else {\n      this._whileLoading('size unknown');\n    }\n  };\n  /**\n   *  Returns true if the sound file finished loading successfully.\n   *\n   *  @method  isLoaded\n   *  @for p5.SoundFile\n   *  @return {Boolean}\n   */\n\n\n  p5.SoundFile.prototype.isLoaded = function () {\n    if (this.buffer) {\n      return true;\n    } else {\n      return false;\n    }\n  };\n  /**\n   * Play the p5.SoundFile\n   *\n   * @method play\n   * @for p5.SoundFile\n   * @param {Number} [startTime]            (optional) schedule playback to start (in seconds from now).\n   * @param {Number} [rate]             (optional) playback rate\n   * @param {Number} [amp]              (optional) amplitude (volume)\n   *                                     of playback\n   * @param {Number} [cueStart]        (optional) cue start time in seconds\n   * @param {Number} [duration]          (optional) duration of playback in seconds\n   */\n\n\n  p5.SoundFile.prototype.play = function (startTime, rate, amp, _cueStart, duration) {\n    if (!this.output) {\n      console.warn('SoundFile.play() called after dispose');\n      return;\n    }\n\n    var now = p5sound.audiocontext.currentTime;\n    var cueStart, cueEnd;\n    var time = startTime || 0;\n\n    if (time < 0) {\n      time = 0;\n    }\n\n    time = time + now;\n\n    if (typeof rate !== 'undefined') {\n      this.rate(rate);\n    }\n\n    if (typeof amp !== 'undefined') {\n      this.setVolume(amp);\n    } \n\n\n    if (this.buffer) {\n      this._pauseTime = 0; \n\n      if (this.mode === 'restart' && this.buffer && this.bufferSourceNode) {\n        this.bufferSourceNode.stop(time);\n\n        this._counterNode.stop(time);\n      } \n\n\n      if (this.mode === 'untildone' && this.isPlaying()) {\n        return;\n      } \n\n\n      this.bufferSourceNode = this._initSourceNode(); \n\n      delete this._counterNode;\n      this._counterNode = this._initCounterNode();\n\n      if (_cueStart) {\n        if (_cueStart >= 0 && _cueStart < this.buffer.duration) {\n          cueStart = _cueStart;\n        } else {\n          throw 'start time out of range';\n        }\n      } else {\n        cueStart = 0;\n      }\n\n      if (duration) {\n        duration = duration <= this.buffer.duration - cueStart ? duration : this.buffer.duration;\n      } \n\n\n      if (this._paused) {\n        this.bufferSourceNode.start(time, this.pauseTime, duration);\n\n        this._counterNode.start(time, this.pauseTime, duration);\n      } else {\n        this.bufferSourceNode.start(time, cueStart, duration);\n\n        this._counterNode.start(time, cueStart, duration);\n      }\n\n      this._playing = true;\n      this._paused = false; \n\n      this.bufferSourceNodes.push(this.bufferSourceNode);\n      this.bufferSourceNode._arrayIndex = this.bufferSourceNodes.length - 1;\n      this.bufferSourceNode.addEventListener('ended', this._clearOnEnd);\n    } \n    else {\n        throw 'not ready to play file, buffer has yet to load. Try preload()';\n      } \n\n\n    this.bufferSourceNode.loop = this._looping;\n    this._counterNode.loop = this._looping;\n\n    if (this._looping === true) {\n      cueEnd = duration ? duration : cueStart - 0.000000000000001;\n      this.bufferSourceNode.loopStart = cueStart;\n      this.bufferSourceNode.loopEnd = cueEnd;\n      this._counterNode.loopStart = cueStart;\n      this._counterNode.loopEnd = cueEnd;\n    }\n  };\n  /**\n   *  p5.SoundFile has two play modes: <code>restart</code> and\n   *  <code>sustain</code>. Play Mode determines what happens to a\n   *  p5.SoundFile if it is triggered while in the middle of playback.\n   *  In sustain mode, playback will continue simultaneous to the\n   *  new playback. In restart mode, play() will stop playback\n   *  and start over. With untilDone, a sound will play only if it's\n   *  not already playing. Sustain is the default mode.\n   *\n   *  @method  playMode\n   *  @for p5.SoundFile\n   *  @param  {String} str 'restart' or 'sustain' or 'untilDone'\n   *  @example\n   *  <div><code>\n   *  let mySound;\n   *  function preload(){\n   *    mySound = loadSound('assets/Damscray_DancingTiger.mp3');\n   *  }\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *    noFill();\n   *    rect(0, height/2, width - 1, height/2 - 1);\n   *    rect(0, 0, width - 1, height/2);\n   *    textAlign(CENTER, CENTER);\n   *    fill(20);\n   *    text('restart', width/2, 1 * height/4);\n   *    text('sustain', width/2, 3 * height/4);\n   *  }\n   *  function canvasPressed() {\n   *    if (mouseX < height/2) {\n   *      mySound.playMode('restart');\n   *    } else {\n   *      mySound.playMode('sustain');\n   *    }\n   *    mySound.play();\n   *  }\n   *\n   * </code></div>\n   */\n\n\n  p5.SoundFile.prototype.playMode = function (str) {\n    var s = str.toLowerCase(); \n\n    if (s === 'restart' && this.buffer && this.bufferSourceNode) {\n      for (var i = 0; i < this.bufferSourceNodes.length - 1; i++) {\n        var now = p5sound.audiocontext.currentTime;\n        this.bufferSourceNodes[i].stop(now);\n      }\n    } \n\n\n    if (s === 'restart' || s === 'sustain' || s === 'untildone') {\n      this.mode = s;\n    } else {\n      throw 'Invalid play mode. Must be either \"restart\" or \"sustain\"';\n    }\n  };\n  /**\n   *  Pauses a file that is currently playing. If the file is not\n   *  playing, then nothing will happen.\n   *\n   *  After pausing, .play() will resume from the paused\n   *  position.\n   *  If p5.SoundFile had been set to loop before it was paused,\n   *  it will continue to loop after it is unpaused with .play().\n   *\n   *  @method pause\n   *  @for p5.SoundFile\n   *  @param {Number} [startTime] (optional) schedule event to occur\n   *                               seconds from now\n   *  @example\n   *  <div><code>\n   *  let soundFile;\n   *  function preload() {\n   *    soundFormats('ogg', 'mp3');\n   *    soundFile = loadSound('assets/Damscray_-_Dancing_Tiger_02.mp3');\n   *  }\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *    background(220);\n   *    text('tap to play, release to pause', 10, 20, width - 20);\n   *  }\n   *  function canvasPressed() {\n   *    soundFile.loop();\n   *    background(0, 200, 50);\n   *  }\n   *  function mouseReleased() {\n   *    soundFile.pause();\n   *    background(220);\n   *  }\n   *  </code>\n   *  </div>\n   */\n\n\n  p5.SoundFile.prototype.pause = function (startTime) {\n    var now = p5sound.audiocontext.currentTime;\n    var time = startTime || 0;\n    var pTime = time + now;\n\n    if (this.isPlaying() && this.buffer && this.bufferSourceNode) {\n      this._paused = true;\n      this._playing = false;\n      this.pauseTime = this.currentTime();\n      this.bufferSourceNode.stop(pTime);\n\n      this._counterNode.stop(pTime);\n\n      this._pauseTime = this.currentTime(); \n    } else {\n      this._pauseTime = 0;\n    }\n  };\n  /**\n   * Loop the p5.SoundFile. Accepts optional parameters to set the\n   * playback rate, playback volume, loopStart, loopEnd.\n   *\n   * @method loop\n   * @for p5.SoundFile\n   * @param {Number} [startTime] (optional) schedule event to occur\n   *                             seconds from now\n   * @param {Number} [rate]        (optional) playback rate\n   * @param {Number} [amp]         (optional) playback volume\n   * @param {Number} [cueLoopStart] (optional) startTime in seconds\n   * @param {Number} [duration]  (optional) loop duration in seconds\n   * @example\n   *  <div><code>\n   *  let soundFile;\n   *  let loopStart = 0.5;\n   *  let loopDuration = 0.2;\n   *  function preload() {\n   *    soundFormats('ogg', 'mp3');\n   *    soundFile = loadSound('assets/Damscray_-_Dancing_Tiger_02.mp3');\n   *  }\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *    background(220);\n   *    text('tap to play, release to pause', 10, 20, width - 20);\n   *  }\n   *  function canvasPressed() {\n   *    soundFile.loop();\n   *    background(0, 200, 50);\n   *  }\n   *  function mouseReleased() {\n   *    soundFile.pause();\n   *    background(220);\n   *  }\n   *  </code>\n   *  </div>\n   */\n\n\n  p5.SoundFile.prototype.loop = function (startTime, rate, amp, loopStart, duration) {\n    this._looping = true;\n    this.play(startTime, rate, amp, loopStart, duration);\n  };\n  /**\n   * Set a p5.SoundFile's looping flag to true or false. If the sound\n   * is currently playing, this change will take effect when it\n   * reaches the end of the current playback.\n   *\n   * @method setLoop\n   * @for p5.SoundFile\n   * @param {Boolean} Boolean   set looping to true or false\n   */\n\n\n  p5.SoundFile.prototype.setLoop = function (bool) {\n    if (bool === true) {\n      this._looping = true;\n    } else if (bool === false) {\n      this._looping = false;\n    } else {\n      throw 'Error: setLoop accepts either true or false';\n    }\n\n    if (this.bufferSourceNode) {\n      this.bufferSourceNode.loop = this._looping;\n      this._counterNode.loop = this._looping;\n    }\n  };\n  /**\n   * Returns 'true' if a p5.SoundFile is currently looping and playing, 'false' if not.\n   *\n   * @method isLooping\n   * @for p5.SoundFile\n   * @return {Boolean}\n   */\n\n\n  p5.SoundFile.prototype.isLooping = function () {\n    if (!this.bufferSourceNode) {\n      return false;\n    }\n\n    if (this._looping === true && this.isPlaying() === true) {\n      return true;\n    }\n\n    return false;\n  };\n  /**\n   *  Returns true if a p5.SoundFile is playing, false if not (i.e.\n   *  paused or stopped).\n   *\n   *  @method isPlaying\n   *  @for p5.SoundFile\n   *  @return {Boolean}\n   */\n\n\n  p5.SoundFile.prototype.isPlaying = function () {\n    return this._playing;\n  };\n  /**\n   *  Returns true if a p5.SoundFile is paused, false if not (i.e.\n   *  playing or stopped).\n   *\n   *  @method  isPaused\n   *  @for p5.SoundFile\n   *  @return {Boolean}\n   */\n\n\n  p5.SoundFile.prototype.isPaused = function () {\n    return this._paused;\n  };\n  /**\n   * Stop soundfile playback.\n   *\n   * @method stop\n   * @for p5.SoundFile\n   * @param {Number} [startTime] (optional) schedule event to occur\n   *                             in seconds from now\n   */\n\n\n  p5.SoundFile.prototype.stop = function (timeFromNow) {\n    var time = timeFromNow || 0;\n\n    if (this.mode === 'sustain' || this.mode === 'untildone') {\n      this.stopAll(time);\n      this._playing = false;\n      this.pauseTime = 0;\n      this._paused = false;\n    } else if (this.buffer && this.bufferSourceNode) {\n      var now = p5sound.audiocontext.currentTime;\n      var t = time || 0;\n      this.pauseTime = 0;\n      this.bufferSourceNode.stop(now + t);\n\n      this._counterNode.stop(now + t);\n\n      this._playing = false;\n      this._paused = false;\n    }\n  };\n  /**\n   *  Stop playback on all of this soundfile's sources.\n   *  @private\n   */\n\n\n  p5.SoundFile.prototype.stopAll = function (_time) {\n    var now = p5sound.audiocontext.currentTime;\n    var time = _time || 0;\n\n    if (this.buffer && this.bufferSourceNode) {\n      for (var i in this.bufferSourceNodes) {\n        var bufferSourceNode = this.bufferSourceNodes[i];\n\n        if (!!bufferSourceNode) {\n          try {\n            bufferSourceNode.stop(now + time);\n          } catch (e) {\n          }\n        }\n      }\n\n      this._counterNode.stop(now + time);\n\n      this._onended(this);\n    }\n  };\n  /**\n   *  Multiply the output volume (amplitude) of a sound file\n   *  between 0.0 (silence) and 1.0 (full volume).\n   *  1.0 is the maximum amplitude of a digital sound, so multiplying\n   *  by greater than 1.0 may cause digital distortion. To\n   *  fade, provide a <code>rampTime</code> parameter. For more\n   *  complex fades, see the Envelope class.\n   *\n   *  Alternately, you can pass in a signal source such as an\n   *  oscillator to modulate the amplitude with an audio signal.\n   *\n   *  @method  setVolume\n   *  @for p5.SoundFile\n   *  @param {Number|Object} volume  Volume (amplitude) between 0.0\n   *                                     and 1.0 or modulating signal/oscillator\n   *  @param {Number} [rampTime]  Fade for t seconds\n   *  @param {Number} [timeFromNow]  Schedule this event to happen at\n   *                                 t seconds in the future\n   */\n\n\n  p5.SoundFile.prototype.setVolume = function (vol, _rampTime, _tFromNow) {\n    if (typeof vol === 'number') {\n      var rampTime = _rampTime || 0;\n      var tFromNow = _tFromNow || 0;\n      var now = p5sound.audiocontext.currentTime;\n      var currentVol = this.output.gain.value;\n      this.output.gain.cancelScheduledValues(now + tFromNow);\n      this.output.gain.linearRampToValueAtTime(currentVol, now + tFromNow);\n      this.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime);\n    } else if (vol) {\n      vol.connect(this.output.gain);\n    } else {\n      return this.output.gain;\n    }\n  }; \n\n\n  p5.SoundFile.prototype.amp = p5.SoundFile.prototype.setVolume; \n\n  p5.SoundFile.prototype.fade = p5.SoundFile.prototype.setVolume;\n\n  p5.SoundFile.prototype.getVolume = function () {\n    return this.output.gain.value;\n  };\n  /**\n   * Set the stereo panning of a p5.sound object to\n   * a floating point number between -1.0 (left) and 1.0 (right).\n   * Default is 0.0 (center).\n   *\n   * @method pan\n   * @for p5.SoundFile\n   * @param {Number} [panValue]     Set the stereo panner\n   * @param {Number} [timeFromNow]  schedule this event to happen\n   *                                 seconds from now\n   * @example\n   * <div><code>\n   *  let ballX = 0;\n   *  let soundFile;\n   *\n   *  function preload() {\n   *    soundFormats('ogg', 'mp3');\n   *    soundFile = loadSound('assets/beatbox.mp3');\n   *  }\n   *\n   *  function draw() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *    background(220);\n   *    ballX = constrain(mouseX, 0, width);\n   *    ellipse(ballX, height/2, 20, 20);\n   *  }\n   *\n   *  function canvasPressed(){\n   *    // map the ball's x location to a panning degree\n   *    // between -1.0 (left) and 1.0 (right)\n   *    let panning = map(ballX, 0., width,-1.0, 1.0);\n   *    soundFile.pan(panning);\n   *    soundFile.play();\n   *  }\n   *  </div></code>\n   */\n\n\n  p5.SoundFile.prototype.pan = function (pval, tFromNow) {\n    this.panPosition = pval;\n    this.panner.pan(pval, tFromNow);\n  };\n  /**\n   * Returns the current stereo pan position (-1.0 to 1.0)\n   *\n   * @method getPan\n   * @for p5.SoundFile\n   * @return {Number} Returns the stereo pan setting of the Oscillator\n   *                          as a number between -1.0 (left) and 1.0 (right).\n   *                          0.0 is center and default.\n   */\n\n\n  p5.SoundFile.prototype.getPan = function () {\n    return this.panPosition;\n  };\n  /**\n   *  Set the playback rate of a sound file. Will change the speed and the pitch.\n   *  Values less than zero will reverse the audio buffer.\n   *\n   *  @method rate\n   *  @for p5.SoundFile\n   *  @param {Number} [playbackRate]     Set the playback rate. 1.0 is normal,\n   *                                     .5 is half-speed, 2.0 is twice as fast.\n   *                                     Values less than zero play backwards.\n   *  @example\n   *  <div><code>\n   *  let mySound;\n   *\n   *  function preload() {\n   *    mySound = loadSound('assets/Damscray_DancingTiger.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *  }\n   *  function canvasPressed() {\n   *    mySound.loop();\n   *  }\n   *  function mouseReleased() {\n   *    mySound.pause();\n   *  }\n   *  function draw() {\n   *    background(220);\n   *\n   *    // Set the rate to a range between 0.1 and 4\n   *    // Changing the rate also alters the pitch\n   *    let playbackRate = map(mouseY, 0.1, height, 2, 0);\n   *    playbackRate = constrain(playbackRate, 0.01, 4);\n   *    mySound.rate(playbackRate);\n   *\n   *    line(0, mouseY, width, mouseY);\n   *    text('rate: ' + round(playbackRate * 100) + '%', 10, 20);\n   *  }\n   *\n   * </code>\n   * </div>\n   *\n   */\n\n\n  p5.SoundFile.prototype.rate = function (playbackRate) {\n    var reverse = false;\n\n    if (typeof playbackRate === 'undefined') {\n      return this.playbackRate;\n    }\n\n    this.playbackRate = playbackRate;\n\n    if (playbackRate === 0) {\n      playbackRate = 0.0000000000001;\n    } else if (playbackRate < 0 && !this.reversed) {\n      playbackRate = Math.abs(playbackRate);\n      reverse = true;\n    } else if (playbackRate > 0 && this.reversed) {\n      reverse = true;\n    }\n\n    if (this.bufferSourceNode) {\n      var now = p5sound.audiocontext.currentTime;\n      this.bufferSourceNode.playbackRate.cancelScheduledValues(now);\n      this.bufferSourceNode.playbackRate.linearRampToValueAtTime(Math.abs(playbackRate), now);\n\n      this._counterNode.playbackRate.cancelScheduledValues(now);\n\n      this._counterNode.playbackRate.linearRampToValueAtTime(Math.abs(playbackRate), now);\n    }\n\n    if (reverse) {\n      this.reverseBuffer();\n    }\n\n    return this.playbackRate;\n  }; \n\n\n  p5.SoundFile.prototype.setPitch = function (num) {\n    var newPlaybackRate = midiToFreq(num) / midiToFreq(60);\n    this.rate(newPlaybackRate);\n  };\n\n  p5.SoundFile.prototype.getPlaybackRate = function () {\n    return this.playbackRate;\n  };\n  /**\n   * Returns the duration of a sound file in seconds.\n   *\n   * @method duration\n   * @for p5.SoundFile\n   * @return {Number} The duration of the soundFile in seconds.\n   */\n\n\n  p5.SoundFile.prototype.duration = function () {\n    if (this.buffer) {\n      return this.buffer.duration;\n    } else {\n      return 0;\n    }\n  };\n  /**\n   * Return the current position of the p5.SoundFile playhead, in seconds.\n   * Time is relative to the normal buffer direction, so if `reverseBuffer`\n   * has been called, currentTime will count backwards.\n   *\n   * @method currentTime\n   * @for p5.SoundFile\n   * @return {Number}   currentTime of the soundFile in seconds.\n   */\n\n\n  p5.SoundFile.prototype.currentTime = function () {\n    return this.reversed ? Math.abs(this._lastPos - this.buffer.length) / ac.sampleRate : this._lastPos / ac.sampleRate;\n  };\n  /**\n   * Move the playhead of a soundfile that is currently playing to a\n   * new position and a new duration, in seconds.\n   * If none are given, will reset the file to play entire duration\n   * from start to finish. To set the position of a soundfile that is\n   * not currently playing, use the `play` or `loop` methods.\n   *\n   * @method jump\n   * @for p5.SoundFile\n   * @param {Number} cueTime    cueTime of the soundFile in seconds.\n   * @param {Number} duration    duration in seconds.\n   */\n\n\n  p5.SoundFile.prototype.jump = function (cueTime, duration) {\n    if (cueTime < 0 || cueTime > this.buffer.duration) {\n      throw 'jump time out of range';\n    }\n\n    if (duration > this.buffer.duration - cueTime) {\n      throw 'end time out of range';\n    }\n\n    var cTime = cueTime || 0;\n    var dur = duration || undefined;\n\n    if (this.isPlaying()) {\n      this.stop(0);\n      this.play(0, this.playbackRate, this.output.gain.value, cTime, dur);\n    }\n  };\n  /**\n    * Return the number of channels in a sound file.\n    * For example, Mono = 1, Stereo = 2.\n    *\n    * @method channels\n    * @for p5.SoundFile\n    * @return {Number} [channels]\n    */\n\n\n  p5.SoundFile.prototype.channels = function () {\n    return this.buffer.numberOfChannels;\n  };\n  /**\n    * Return the sample rate of the sound file.\n    *\n    * @method sampleRate\n    * @for p5.SoundFile\n    * @return {Number} [sampleRate]\n    */\n\n\n  p5.SoundFile.prototype.sampleRate = function () {\n    return this.buffer.sampleRate;\n  };\n  /**\n    * Return the number of samples in a sound file.\n    * Equal to sampleRate * duration.\n    *\n    * @method frames\n    * @for p5.SoundFile\n    * @return {Number} [sampleCount]\n    */\n\n\n  p5.SoundFile.prototype.frames = function () {\n    return this.buffer.length;\n  };\n  /**\n   * Returns an array of amplitude peaks in a p5.SoundFile that can be\n   * used to draw a static waveform. Scans through the p5.SoundFile's\n   * audio buffer to find the greatest amplitudes. Accepts one\n   * parameter, 'length', which determines size of the array.\n   * Larger arrays result in more precise waveform visualizations.\n   *\n   * Inspired by Wavesurfer.js.\n   *\n   * @method  getPeaks\n   * @for p5.SoundFile\n   * @params {Number} [length] length is the size of the returned array.\n   *                          Larger length results in more precision.\n   *                          Defaults to 5*width of the browser window.\n   * @returns {Float32Array} Array of peaks.\n   */\n\n\n  p5.SoundFile.prototype.getPeaks = function (length) {\n    if (this.buffer) {\n      if (!length) {\n        length = window.width * 5;\n      }\n\n      if (this.buffer) {\n        var buffer = this.buffer;\n        var sampleSize = buffer.length / length;\n        var sampleStep = ~~(sampleSize / 10) || 1;\n        var channels = buffer.numberOfChannels;\n        var peaks = new Float32Array(Math.round(length));\n\n        for (var c = 0; c < channels; c++) {\n          var chan = buffer.getChannelData(c);\n\n          for (var i = 0; i < length; i++) {\n            var start = ~~(i * sampleSize);\n            var end = ~~(start + sampleSize);\n            var max = 0;\n\n            for (var j = start; j < end; j += sampleStep) {\n              var value = chan[j];\n\n              if (value > max) {\n                max = value; \n              } else if (-value > max) {\n                max = value;\n              }\n            }\n\n            if (c === 0 || Math.abs(max) > peaks[i]) {\n              peaks[i] = max;\n            }\n          }\n        }\n\n        return peaks;\n      }\n    } else {\n      throw 'Cannot load peaks yet, buffer is not loaded';\n    }\n  };\n  /**\n   *  Reverses the p5.SoundFile's buffer source.\n   *  Playback must be handled separately (see example).\n   *\n   *  @method  reverseBuffer\n   *  @for p5.SoundFile\n   *  @example\n   *  <div><code>\n   *  let drum;\n   *  function preload() {\n   *    drum = loadSound('assets/drum.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *    background(220);\n   *    text('tap to play', 20, 20);\n   *  }\n   *\n   *  function canvasPressed() {\n   *    drum.stop();\n   *    drum.reverseBuffer();\n   *    drum.play();\n   *  }\n   * </code>\n   * </div>\n   */\n\n\n  p5.SoundFile.prototype.reverseBuffer = function () {\n    if (this.buffer) {\n      var currentPos = this._lastPos / ac.sampleRate;\n      var curVol = this.getVolume();\n      this.setVolume(0, 0.001);\n      var numChannels = this.buffer.numberOfChannels;\n\n      for (var i = 0; i < numChannels; i++) {\n        this.buffer.getChannelData(i).reverse();\n      } \n\n\n      this.reversed = !this.reversed;\n\n      if (this.isPlaying() && currentPos) {\n        this.jump(this.duration() - currentPos);\n      }\n\n      this.setVolume(curVol, 0.001);\n    } else {\n      throw 'SoundFile is not done loading';\n    }\n  };\n  /**\n   *  Schedule an event to be called when the soundfile\n   *  reaches the end of a buffer. If the soundfile is\n   *  playing through once, this will be called when it\n   *  ends. If it is looping, it will be called when\n   *  stop is called.\n   *\n   *  @method  onended\n   *  @for p5.SoundFile\n   *  @param  {Function} callback function to call when the\n   *                              soundfile has ended.\n   */\n\n\n  p5.SoundFile.prototype.onended = function (callback) {\n    this._onended = callback;\n    return this;\n  };\n\n  p5.SoundFile.prototype.add = function () {\n  };\n\n  p5.SoundFile.prototype.dispose = function () {\n    var now = p5sound.audiocontext.currentTime; \n\n    var index = p5sound.soundArray.indexOf(this);\n    p5sound.soundArray.splice(index, 1);\n    this.stop(now);\n\n    if (this.buffer && this.bufferSourceNode) {\n      for (var i = 0; i < this.bufferSourceNodes.length - 1; i++) {\n        if (this.bufferSourceNodes[i] !== null) {\n          this.bufferSourceNodes[i].disconnect();\n\n          try {\n            this.bufferSourceNodes[i].stop(now);\n          } catch (e) {\n            console.warn('no buffer source node to dispose');\n          }\n\n          this.bufferSourceNodes[i] = null;\n        }\n      }\n\n      if (this.isPlaying()) {\n        try {\n          this._counterNode.stop(now);\n        } catch (e) {\n          console.log(e);\n        }\n\n        this._counterNode = null;\n      }\n    }\n\n    if (this.output) {\n      this.output.disconnect();\n      this.output = null;\n    }\n\n    if (this.panner) {\n      this.panner.disconnect();\n      this.panner = null;\n    }\n  };\n  /**\n   * Connects the output of a p5sound object to input of another\n   * p5.sound object. For example, you may connect a p5.SoundFile to an\n   * FFT or an Effect. If no parameter is given, it will connect to\n   * the master output. Most p5sound objects connect to the master\n   * output when they are created.\n   *\n   * @method connect\n   * @for p5.SoundFile\n   * @param {Object} [object] Audio object that accepts an input\n   */\n\n\n  p5.SoundFile.prototype.connect = function (unit) {\n    if (!unit) {\n      this.panner.connect(p5sound.input);\n    } else {\n      if (unit.hasOwnProperty('input')) {\n        this.panner.connect(unit.input);\n      } else {\n        this.panner.connect(unit);\n      }\n    }\n  };\n  /**\n   * Disconnects the output of this p5sound object.\n   *\n   * @method disconnect\n   * @for p5.SoundFile\n   */\n\n\n  p5.SoundFile.prototype.disconnect = function () {\n    if (this.panner) {\n      this.panner.disconnect();\n    }\n  };\n  /**\n   */\n\n\n  p5.SoundFile.prototype.getLevel = function () {\n    console.warn('p5.SoundFile.getLevel has been removed from the library. Use p5.Amplitude instead');\n  };\n  /**\n   *  Reset the source for this SoundFile to a\n   *  new path (URL).\n   *\n   *  @method  setPath\n   *  @for p5.SoundFile\n   *  @param {String}   path     path to audio file\n   *  @param {Function} callback Callback\n   */\n\n\n  p5.SoundFile.prototype.setPath = function (p, callback) {\n    var path = p5.prototype._checkFileFormats(p);\n\n    this.url = path;\n    this.load(callback);\n  };\n  /**\n   *  Replace the current Audio Buffer with a new Buffer.\n   *\n   *  @method setBuffer\n   *  @for p5.SoundFile\n   *  @param {Array} buf Array of Float32 Array(s). 2 Float32 Arrays\n   *                     will create a stereo source. 1 will create\n   *                     a mono source.\n   */\n\n\n  p5.SoundFile.prototype.setBuffer = function (buf) {\n    var numChannels = buf.length;\n    var size = buf[0].length;\n    var newBuffer = ac.createBuffer(numChannels, size, ac.sampleRate);\n\n    if (!(buf[0] instanceof Float32Array)) {\n      buf[0] = new Float32Array(buf[0]);\n    }\n\n    for (var channelNum = 0; channelNum < numChannels; channelNum++) {\n      var channel = newBuffer.getChannelData(channelNum);\n      channel.set(buf[channelNum]);\n    }\n\n    this.buffer = newBuffer; \n\n    this.panner.inputChannels(numChannels);\n  }; \n\n\n  var _createCounterBuffer = function _createCounterBuffer(buffer) {\n    var len = buffer.length;\n    var audioBuf = ac.createBuffer(1, buffer.length, ac.sampleRate);\n    var arrayBuffer = audioBuf.getChannelData(0);\n\n    for (var index = 0; index < len; index++) {\n      arrayBuffer[index] = index;\n    }\n\n    return audioBuf;\n  }; \n\n\n  p5.SoundFile.prototype._initCounterNode = function () {\n    var _this = this;\n\n    var self = this;\n    var now = ac.currentTime;\n    var cNode = ac.createBufferSource();\n    var workletBufferSize = safeBufferSize(256); \n\n    if (self._workletNode) {\n      self._workletNode.disconnect();\n\n      delete self._workletNode;\n    }\n\n    self._workletNode = new AudioWorkletNode(ac, processorNames.soundFileProcessor, {\n      processorOptions: {\n        bufferSize: workletBufferSize\n      }\n    });\n\n    self._workletNode.port.onmessage = function (event) {\n      if (event.data.name === 'position') {\n        if (event.data.position === 0) {\n          return;\n        }\n\n        _this._lastPos = event.data.position; \n\n        _this._onTimeUpdate(self._lastPos);\n      }\n    }; \n\n\n    cNode.buffer = _createCounterBuffer(self.buffer);\n    cNode.playbackRate.setValueAtTime(self.playbackRate, now);\n    cNode.connect(self._workletNode);\n\n    self._workletNode.connect(p5.soundOut._silentNode);\n\n    return cNode;\n  }; \n\n\n  p5.SoundFile.prototype._initSourceNode = function () {\n    var bufferSourceNode = ac.createBufferSource();\n    bufferSourceNode.buffer = this.buffer;\n    bufferSourceNode.playbackRate.value = this.playbackRate;\n    bufferSourceNode.connect(this.output);\n    return bufferSourceNode;\n  };\n  /**\n   *  processPeaks returns an array of timestamps where it thinks there is a beat.\n   *\n   *  This is an asynchronous function that processes the soundfile in an offline audio context,\n   *  and sends the results to your callback function.\n   *\n   *  The process involves running the soundfile through a lowpass filter, and finding all of the\n   *  peaks above the initial threshold. If the total number of peaks are below the minimum number of peaks,\n   *  it decreases the threshold and re-runs the analysis until either minPeaks or minThreshold are reached.\n   *\n   *  @method  processPeaks\n   *  @for p5.SoundFile\n   *  @param  {Function} callback       a function to call once this data is returned\n   *  @param  {Number}   [initThreshold] initial threshold defaults to 0.9\n   *  @param  {Number}   [minThreshold]   minimum threshold defaults to 0.22\n   *  @param  {Number}   [minPeaks]       minimum number of peaks defaults to 200\n   *  @return {Array}                  Array of timestamped peaks\n   */\n\n\n  p5.SoundFile.prototype.processPeaks = function (callback, _initThreshold, _minThreshold, _minPeaks) {\n    var bufLen = this.buffer.length;\n    var sampleRate = this.buffer.sampleRate;\n    var buffer = this.buffer;\n    var allPeaks = [];\n    var initialThreshold = _initThreshold || 0.9,\n        threshold = initialThreshold,\n        minThreshold = _minThreshold || 0.22,\n        minPeaks = _minPeaks || 200; \n\n    var offlineContext = new window.OfflineAudioContext(1, bufLen, sampleRate); \n\n    var source = offlineContext.createBufferSource();\n    source.buffer = buffer; \n\n    var filter = offlineContext.createBiquadFilter();\n    filter.type = 'lowpass';\n    source.connect(filter);\n    filter.connect(offlineContext.destination); \n\n    source.start(0);\n    offlineContext.startRendering(); \n\n    offlineContext.oncomplete = function (e) {\n      if (!self.panner) return;\n      var filteredBuffer = e.renderedBuffer;\n      var bufferData = filteredBuffer.getChannelData(0); \n\n      do {\n        allPeaks = getPeaksAtThreshold(bufferData, threshold);\n        threshold -= 0.005;\n      } while (Object.keys(allPeaks).length < minPeaks && threshold >= minThreshold); \n\n\n      var intervalCounts = countIntervalsBetweenNearbyPeaks(allPeaks); \n\n      var groups = groupNeighborsByTempo(intervalCounts, filteredBuffer.sampleRate); \n\n      var topTempos = groups.sort(function (intA, intB) {\n        return intB.count - intA.count;\n      }).splice(0, 5); \n\n      this.tempo = topTempos[0].tempo; \n\n      var bpmVariance = 5;\n      var tempoPeaks = getPeaksAtTopTempo(allPeaks, topTempos[0].tempo, filteredBuffer.sampleRate, bpmVariance);\n      callback(tempoPeaks);\n    };\n  }; \n\n\n  var Peak = function Peak(amp, i) {\n    this.sampleIndex = i;\n    this.amplitude = amp;\n    this.tempos = [];\n    this.intervals = [];\n  }; \n\n\n  function getPeaksAtThreshold(data, threshold) {\n    var peaksObj = {};\n    var length = data.length;\n\n    for (var i = 0; i < length; i++) {\n      if (data[i] > threshold) {\n        var amp = data[i];\n        var peak = new Peak(amp, i);\n        peaksObj[i] = peak; \n\n        i += 6000;\n      }\n\n      i++;\n    }\n\n    return peaksObj;\n  } \n\n\n  function countIntervalsBetweenNearbyPeaks(peaksObj) {\n    var intervalCounts = [];\n    var peaksArray = Object.keys(peaksObj).sort();\n\n    for (var index = 0; index < peaksArray.length; index++) {\n      for (var i = 0; i < 10; i++) {\n        var startPeak = peaksObj[peaksArray[index]];\n        var endPeak = peaksObj[peaksArray[index + i]];\n\n        if (startPeak && endPeak) {\n          var startPos = startPeak.sampleIndex;\n          var endPos = endPeak.sampleIndex;\n          var interval = endPos - startPos; \n\n          if (interval > 0) {\n            startPeak.intervals.push(interval);\n          } \n\n\n          var foundInterval = intervalCounts.some(function (intervalCount) {\n            if (intervalCount.interval === interval) {\n              intervalCount.count++;\n              return intervalCount;\n            }\n          }); \n\n          if (!foundInterval) {\n            intervalCounts.push({\n              interval: interval,\n              count: 1\n            });\n          }\n        }\n      }\n    }\n\n    return intervalCounts;\n  } \n\n\n  function groupNeighborsByTempo(intervalCounts, sampleRate) {\n    var tempoCounts = [];\n    intervalCounts.forEach(function (intervalCount) {\n      try {\n        var theoreticalTempo = Math.abs(60 / (intervalCount.interval / sampleRate));\n        theoreticalTempo = mapTempo(theoreticalTempo);\n        var foundTempo = tempoCounts.some(function (tempoCount) {\n          if (tempoCount.tempo === theoreticalTempo) return tempoCount.count += intervalCount.count;\n        });\n\n        if (!foundTempo) {\n          if (isNaN(theoreticalTempo)) {\n            return;\n          }\n\n          tempoCounts.push({\n            tempo: Math.round(theoreticalTempo),\n            count: intervalCount.count\n          });\n        }\n      } catch (e) {\n        throw e;\n      }\n    });\n    return tempoCounts;\n  } \n\n\n  function getPeaksAtTopTempo(peaksObj, tempo, sampleRate, bpmVariance) {\n    var peaksAtTopTempo = [];\n    var peaksArray = Object.keys(peaksObj).sort(); \n\n    for (var i = 0; i < peaksArray.length; i++) {\n      var key = peaksArray[i];\n      var peak = peaksObj[key];\n\n      for (var j = 0; j < peak.intervals.length; j++) {\n        var intervalBPM = Math.round(Math.abs(60 / (peak.intervals[j] / sampleRate)));\n        intervalBPM = mapTempo(intervalBPM);\n\n        if (Math.abs(intervalBPM - tempo) < bpmVariance) {\n          peaksAtTopTempo.push(peak.sampleIndex / sampleRate);\n        }\n      }\n    } \n\n\n    peaksAtTopTempo = peaksAtTopTempo.filter(function (peakTime, index, arr) {\n      var dif = arr[index + 1] - peakTime;\n\n      if (dif > 0.01) {\n        return true;\n      }\n    });\n    return peaksAtTopTempo;\n  } \n\n\n  function mapTempo(theoreticalTempo) {\n    if (!isFinite(theoreticalTempo) || theoreticalTempo === 0) {\n      return;\n    } \n\n\n    while (theoreticalTempo < 90) {\n      theoreticalTempo *= 2;\n    }\n\n    while (theoreticalTempo > 180 && theoreticalTempo > 90) {\n      theoreticalTempo /= 2;\n    }\n\n    return theoreticalTempo;\n  }\n\n\n  var Cue = function Cue(callback, time, id, val) {\n    this.callback = callback;\n    this.time = time;\n    this.id = id;\n    this.val = val;\n  };\n  /**\n   *  Schedule events to trigger every time a MediaElement\n   *  (audio/video) reaches a playback cue point.\n   *\n   *  Accepts a callback function, a time (in seconds) at which to trigger\n   *  the callback, and an optional parameter for the callback.\n   *\n   *  Time will be passed as the first parameter to the callback function,\n   *  and param will be the second parameter.\n   *\n   *\n   *  @method  addCue\n   *  @for p5.SoundFile\n   *  @param {Number}   time     Time in seconds, relative to this media\n   *                             element's playback. For example, to trigger\n   *                             an event every time playback reaches two\n   *                             seconds, pass in the number 2. This will be\n   *                             passed as the first parameter to\n   *                             the callback function.\n   *  @param {Function} callback Name of a function that will be\n   *                             called at the given time. The callback will\n   *                             receive time and (optionally) param as its\n   *                             two parameters.\n   *  @param {Object} [value]    An object to be passed as the\n   *                             second parameter to the\n   *                             callback function.\n   *  @return {Number} id ID of this cue,\n   *                      useful for removeCue(id)\n   *  @example\n   *  <div><code>\n   *  let mySound;\n   *  function preload() {\n   *    mySound = loadSound('assets/Damscray_DancingTiger.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *    background(220);\n   *    text('tap to play', 10, 20);\n   *\n   *    // schedule calls to changeText\n   *    mySound.addCue(0, changeText, \"hello\" );\n   *    mySound.addCue(0.5, changeText, \"hello,\" );\n   *    mySound.addCue(1, changeText, \"hello, p5!\");\n   *    mySound.addCue(1.5, changeText, \"hello, p5!!\");\n   *    mySound.addCue(2, changeText, \"hello, p5!!!!!\");\n   *  }\n   *\n   *  function changeText(val) {\n   *    background(220);\n   *    text(val, 10, 20);\n   *  }\n   *\n   *  function canvasPressed() {\n   *    mySound.play();\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.SoundFile.prototype.addCue = function (time, callback, val) {\n    var id = this._cueIDCounter++;\n    var cue = new Cue(callback, time, id, val);\n\n    this._cues.push(cue); \n\n\n    return id;\n  };\n  /**\n   *  Remove a callback based on its ID. The ID is returned by the\n   *  addCue method.\n   *\n   *  @method removeCue\n   *  @for p5.SoundFile\n   *  @param  {Number} id ID of the cue, as returned by addCue\n   */\n\n\n  p5.SoundFile.prototype.removeCue = function (id) {\n    var cueLength = this._cues.length;\n\n    for (var i = 0; i < cueLength; i++) {\n      var cue = this._cues[i];\n\n      if (cue.id === id) {\n        this._cues.splice(i, 1);\n\n        break;\n      }\n    }\n\n    if (this._cues.length === 0) {\n    }\n  };\n  /**\n   *  Remove all of the callbacks that had originally been scheduled\n   *  via the addCue method.\n   *\n   *  @method  clearCues\n   */\n\n\n  p5.SoundFile.prototype.clearCues = function () {\n    this._cues = []; \n  }; \n\n\n  p5.SoundFile.prototype._onTimeUpdate = function (position) {\n    var playbackTime = position / this.buffer.sampleRate;\n    var cueLength = this._cues.length;\n\n    for (var i = 0; i < cueLength; i++) {\n      var cue = this._cues[i];\n      var callbackTime = cue.time;\n      var val = cue.val;\n\n      if (~~this._prevUpdateTime <= callbackTime && callbackTime <= playbackTime) {\n        cue.callback(val);\n      }\n    }\n\n    this._prevUpdateTime = playbackTime;\n  };\n  /**\n   * Save a p5.SoundFile as a .wav file. The browser will prompt the user\n   * to download the file to their device. To upload a file to a server, see\n   * <a href=\"/docs/reference/#/p5.SoundFile/getBlob\">getBlob</a>\n   *\n   * @method save\n   * @for p5.SoundFile\n   * @param  {String} [fileName]      name of the resulting .wav file.\n   * @example\n   *  <div><code>\n   *  let mySound;\n   *  function preload() {\n   *    mySound = loadSound('assets/doorbell.mp3');\n   *  }\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *    background(220);\n   *    text('tap to download', 10, 20);\n   *  }\n   *\n   *  function canvasPressed() {\n   *    mySound.save('my cool filename');\n   *  }\n   * </code></div>\n   */\n\n\n  p5.SoundFile.prototype.save = function (fileName) {\n    p5.prototype.saveSound(this, fileName, 'wav');\n  };\n  /**\n   * This method is useful for sending a SoundFile to a server. It returns the\n   * .wav-encoded audio data as a \"<a target=\"_blank\" title=\"Blob reference at\n   * MDN\" href=\"https://developer.mozilla.org/en-US/docs/Web/API/Blob\">Blob</a>\".\n   * A Blob is a file-like data object that can be uploaded to a server\n   * with an <a href=\"/docs/reference/#/p5/httpDo\">http</a> request. We'll\n   * use the `httpDo` options object to send a POST request with some\n   * specific options: we encode the request as `multipart/form-data`,\n   * and attach the blob as one of the form values using `FormData`.\n   *\n   *\n   * @method getBlob\n   * @for p5.SoundFile\n   * @returns {Blob} A file-like data object\n   * @example\n   *  <div><code>\n   *  function preload() {\n   *    mySound = loadSound('assets/doorbell.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    noCanvas();\n   *    let soundBlob = mySound.getBlob();\n   *\n   *    // Now we can send the blob to a server...\n   *    let serverUrl = 'https://jsonplaceholder.typicode.com/posts';\n   *    let httpRequestOptions = {\n   *      method: 'POST',\n   *      body: new FormData().append('soundBlob', soundBlob),\n   *      headers: new Headers({\n   *        'Content-Type': 'multipart/form-data'\n   *      })\n   *    };\n   *    httpDo(serverUrl, httpRequestOptions);\n   *\n   *    // We can also create an `ObjectURL` pointing to the Blob\n   *    let blobUrl = URL.createObjectURL(soundBlob);\n   *\n   *    // The `<Audio>` Element accepts Object URL's\n   *    createAudio(blobUrl).showControls();\n   *\n   *    createDiv();\n   *\n   *    // The ObjectURL exists as long as this tab is open\n   *    let input = createInput(blobUrl);\n   *    input.attribute('readonly', true);\n   *    input.mouseClicked(function() { input.elt.select() });\n   *  }\n   *\n   * </code></div>\n   */\n\n\n  p5.SoundFile.prototype.getBlob = function () {\n    var dataView = convertToWav(this.buffer);\n    return new Blob([dataView], {\n      type: 'audio/wav'\n    });\n  }; \n\n\n  function _clearOnEnd(e) {\n    var thisBufferSourceNode = e.target;\n    var soundFile = this; \n\n    thisBufferSourceNode._playing = false;\n    thisBufferSourceNode.removeEventListener('ended', soundFile._clearOnEnd); \n\n    soundFile._onended(soundFile); \n\n\n    soundFile.bufferSourceNodes.map(function (_, i) {\n      return i;\n    }).reverse().forEach(function (i) {\n      var n = soundFile.bufferSourceNodes[i];\n\n      if (n._playing === false) {\n        soundFile.bufferSourceNodes.splice(i, 1);\n      }\n    });\n\n    if (soundFile.bufferSourceNodes.length === 0) {\n      soundFile._playing = false;\n    }\n  }\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var _require = __webpack_require__(6),\n      safeBufferSize = _require.safeBufferSize;\n\n  var processorNames = __webpack_require__(10);\n  /**\n   *  Amplitude measures volume between 0.0 and 1.0.\n   *  Listens to all p5sound by default, or use setInput()\n   *  to listen to a specific sound source. Accepts an optional\n   *  smoothing value, which defaults to 0.\n   *\n   *  @class p5.Amplitude\n   *  @constructor\n   *  @param {Number} [smoothing] between 0.0 and .999 to smooth\n   *                             amplitude readings (defaults to 0)\n   *  @example\n   *  <div><code>\n   *  let sound, amplitude;\n   *\n   *  function preload(){\n   *    sound = loadSound('assets/beat.mp3');\n   *  }\n   *  function setup() {\n   *    let cnv = createCanvas(100,100);\n   *    cnv.mouseClicked(toggleSound);\n   *    amplitude = new p5.Amplitude();\n   *  }\n   *\n   *  function draw() {\n   *    background(220);\n   *    text('tap to play', 20, 20);\n   *\n   *    let level = amplitude.getLevel();\n   *    let size = map(level, 0, 1, 0, 200);\n   *    ellipse(width/2, height/2, size, size);\n   *  }\n   *\n   *  function toggleSound() {\n   *    if (sound.isPlaying() ){\n   *      sound.stop();\n   *    } else {\n   *      sound.play();\n   *    }\n   *  }\n   *\n   *  </code></div>\n   */\n\n\n  p5.Amplitude = function (smoothing) {\n    this.bufferSize = safeBufferSize(2048); \n\n    this.audiocontext = p5sound.audiocontext;\n    this._workletNode = new AudioWorkletNode(this.audiocontext, processorNames.amplitudeProcessor, {\n      outputChannelCount: [1],\n      parameterData: {\n        smoothing: smoothing || 0\n      },\n      processorOptions: {\n        normalize: false,\n        smoothing: smoothing || 0,\n        numInputChannels: 2,\n        bufferSize: this.bufferSize\n      }\n    });\n\n    this._workletNode.port.onmessage = function (event) {\n      if (event.data.name === 'amplitude') {\n        this.volume = event.data.volume;\n        this.volNorm = event.data.volNorm;\n        this.stereoVol = event.data.stereoVol;\n        this.stereoVolNorm = event.data.stereoVolNorm;\n      }\n    }.bind(this); \n\n\n    this.input = this._workletNode;\n    this.output = this.audiocontext.createGain(); \n\n    this.volume = 0;\n    this.volNorm = 0;\n    this.stereoVol = [0, 0];\n    this.stereoVolNorm = [0, 0];\n    this.normalize = false;\n\n    this._workletNode.connect(this.output);\n\n    this.output.gain.value = 0; \n\n    this.output.connect(this.audiocontext.destination); \n\n    p5sound.meter.connect(this._workletNode); \n\n    p5sound.soundArray.push(this);\n  };\n  /**\n   *  Connects to the p5sound instance (master output) by default.\n   *  Optionally, you can pass in a specific source (i.e. a soundfile).\n   *\n   *  @method setInput\n   *  @for p5.Amplitude\n   *  @param {soundObject|undefined} [snd] set the sound source\n   *                                       (optional, defaults to\n   *                                       master output)\n   *  @param {Number|undefined} [smoothing] a range between 0.0 and 1.0\n   *                                        to smooth amplitude readings\n   *  @example\n   *  <div><code>\n   *  function preload(){\n   *    sound1 = loadSound('assets/beat.mp3');\n   *    sound2 = loadSound('assets/drum.mp3');\n   *  }\n   *  function setup(){\n   *    cnv = createCanvas(100, 100);\n   *    cnv.mouseClicked(toggleSound);\n   *\n   *    amplitude = new p5.Amplitude();\n   *    amplitude.setInput(sound2);\n   *  }\n   *\n   *  function draw() {\n   *    background(220);\n   *    text('tap to play', 20, 20);\n   *\n   *    let level = amplitude.getLevel();\n   *    let size = map(level, 0, 1, 0, 200);\n   *    ellipse(width/2, height/2, size, size);\n   *  }\n   *\n   *  function toggleSound(){\n   *    if (sound1.isPlaying() && sound2.isPlaying()) {\n   *      sound1.stop();\n   *      sound2.stop();\n   *    } else {\n   *      sound1.play();\n   *      sound2.play();\n   *    }\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Amplitude.prototype.setInput = function (source, smoothing) {\n    p5sound.meter.disconnect();\n\n    if (smoothing) {\n      this._workletNode.parameters.get('smoothing').value = smoothing;\n    } \n\n\n    if (source == null) {\n      console.log('Amplitude input source is not ready! Connecting to master output instead');\n      p5sound.meter.connect(this._workletNode);\n    } \n    else if (source instanceof p5.Signal) {\n        source.output.connect(this._workletNode);\n      } \n      else if (source) {\n          source.connect(this._workletNode);\n\n          this._workletNode.disconnect();\n\n          this._workletNode.connect(this.output);\n        } \n        else {\n            p5sound.meter.connect(this._workletNode);\n          }\n  };\n\n  p5.Amplitude.prototype.connect = function (unit) {\n    if (unit) {\n      if (unit.hasOwnProperty('input')) {\n        this.output.connect(unit.input);\n      } else {\n        this.output.connect(unit);\n      }\n    } else {\n      this.output.connect(this.panner.connect(p5sound.input));\n    }\n  };\n\n  p5.Amplitude.prototype.disconnect = function () {\n    if (this.output) {\n      this.output.disconnect();\n    }\n  };\n  /**\n   *  Returns a single Amplitude reading at the moment it is called.\n   *  For continuous readings, run in the draw loop.\n   *\n   *  @method getLevel\n   *  @for p5.Amplitude\n   *  @param {Number} [channel] Optionally return only channel 0 (left) or 1 (right)\n   *  @return {Number}       Amplitude as a number between 0.0 and 1.0\n   *  @example\n   *  <div><code>\n   *  function preload(){\n   *    sound = loadSound('assets/beat.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mouseClicked(toggleSound);\n   *    amplitude = new p5.Amplitude();\n   *  }\n   *\n   *  function draw() {\n   *    background(220, 150);\n   *    textAlign(CENTER);\n   *    text('tap to play', width/2, 20);\n   *\n   *    let level = amplitude.getLevel();\n   *    let size = map(level, 0, 1, 0, 200);\n   *    ellipse(width/2, height/2, size, size);\n   *  }\n   *\n   *  function toggleSound(){\n   *    if (sound.isPlaying()) {\n   *      sound.stop();\n   *    } else {\n   *      sound.play();\n   *    }\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Amplitude.prototype.getLevel = function (channel) {\n    if (typeof channel !== 'undefined') {\n      if (this.normalize) {\n        return this.stereoVolNorm[channel];\n      } else {\n        return this.stereoVol[channel];\n      }\n    } else if (this.normalize) {\n      return this.volNorm;\n    } else {\n      return this.volume;\n    }\n  };\n  /**\n   * Determines whether the results of Amplitude.process() will be\n   * Normalized. To normalize, Amplitude finds the difference the\n   * loudest reading it has processed and the maximum amplitude of\n   * 1.0. Amplitude adds this difference to all values to produce\n   * results that will reliably map between 0.0 and 1.0. However,\n   * if a louder moment occurs, the amount that Normalize adds to\n   * all the values will change. Accepts an optional boolean parameter\n   * (true or false). Normalizing is off by default.\n   *\n   * @method toggleNormalize\n   * @for p5.Amplitude\n   * @param {boolean} [boolean] set normalize to true (1) or false (0)\n   */\n\n\n  p5.Amplitude.prototype.toggleNormalize = function (bool) {\n    if (typeof bool === 'boolean') {\n      this.normalize = bool;\n    } else {\n      this.normalize = !this.normalize;\n    }\n\n    this._workletNode.port.postMessage({\n      name: 'toggleNormalize',\n      normalize: this.normalize\n    });\n  };\n  /**\n   *  Smooth Amplitude analysis by averaging with the last analysis\n   *  frame. Off by default.\n   *\n   *  @method smooth\n   *  @for p5.Amplitude\n   *  @param {Number} set smoothing from 0.0 <= 1\n   */\n\n\n  p5.Amplitude.prototype.smooth = function (s) {\n    if (s >= 0 && s < 1) {\n      this._workletNode.port.postMessage({\n        name: 'smoothing',\n        smoothing: s\n      });\n    } else {\n      console.log('Error: smoothing must be between 0 and 1');\n    }\n  };\n\n  p5.Amplitude.prototype.dispose = function () {\n    var index = p5sound.soundArray.indexOf(this);\n    p5sound.soundArray.splice(index, 1);\n\n    if (this.input) {\n      this.input.disconnect();\n      delete this.input;\n    }\n\n    if (this.output) {\n      this.output.disconnect();\n      delete this.output;\n    }\n\n    this._workletNode.disconnect();\n\n    delete this._workletNode;\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n  /**\n   *  <p>FFT (Fast Fourier Transform) is an analysis algorithm that\n   *  isolates individual\n   *  <a href=\"https://en.wikipedia.org/wiki/Audio_frequency\">\n   *  audio frequencies</a> within a waveform.</p>\n   *\n   *  <p>Once instantiated, a p5.FFT object can return an array based on\n   *  two types of analyses: <br> • <code>FFT.waveform()</code> computes\n   *  amplitude values along the time domain. The array indices correspond\n   *  to samples across a brief moment in time. Each value represents\n   *  amplitude of the waveform at that sample of time.<br>\n   *  • <code>FFT.analyze() </code> computes amplitude values along the\n   *  frequency domain. The array indices correspond to frequencies (i.e.\n   *  pitches), from the lowest to the highest that humans can hear. Each\n   *  value represents amplitude at that slice of the frequency spectrum.\n   *  Use with <code>getEnergy()</code> to measure amplitude at specific\n   *  frequencies, or within a range of frequencies. </p>\n   *\n   *  <p>FFT analyzes a very short snapshot of sound called a sample\n   *  buffer. It returns an array of amplitude measurements, referred\n   *  to as <code>bins</code>. The array is 1024 bins long by default.\n   *  You can change the bin array length, but it must be a power of 2\n   *  between 16 and 1024 in order for the FFT algorithm to function\n   *  correctly. The actual size of the FFT buffer is twice the\n   *  number of bins, so given a standard sample rate, the buffer is\n   *  2048/44100 seconds long.</p>\n   *\n   *\n   *  @class p5.FFT\n   *  @constructor\n   *  @param {Number} [smoothing]   Smooth results of Freq Spectrum.\n   *                                0.0 < smoothing < 1.0.\n   *                                Defaults to 0.8.\n   *  @param {Number} [bins]    Length of resulting array.\n   *                            Must be a power of two between\n   *                            16 and 1024. Defaults to 1024.\n   *  @example\n   *  <div><code>\n   *  function preload(){\n   *    sound = loadSound('assets/Damscray_DancingTiger.mp3');\n   *  }\n   *\n   *  function setup(){\n   *    let cnv = createCanvas(100,100);\n   *    cnv.mouseClicked(togglePlay);\n   *    fft = new p5.FFT();\n   *    sound.amp(0.2);\n   *  }\n   *\n   *  function draw(){\n   *    background(220);\n   *\n   *    let spectrum = fft.analyze();\n   *    noStroke();\n   *    fill(255, 0, 255);\n   *    for (let i = 0; i< spectrum.length; i++){\n   *      let x = map(i, 0, spectrum.length, 0, width);\n   *      let h = -height + map(spectrum[i], 0, 255, height, 0);\n   *      rect(x, height, width / spectrum.length, h )\n   *    }\n   *\n   *    let waveform = fft.waveform();\n   *    noFill();\n   *    beginShape();\n   *    stroke(20);\n   *    for (let i = 0; i < waveform.length; i++){\n   *      let x = map(i, 0, waveform.length, 0, width);\n   *      let y = map( waveform[i], -1, 1, 0, height);\n   *      vertex(x,y);\n   *    }\n   *    endShape();\n   *\n   *    text('tap to play', 20, 20);\n   *  }\n   *\n   *  function togglePlay() {\n   *    if (sound.isPlaying()) {\n   *      sound.pause();\n   *    } else {\n   *      sound.loop();\n   *    }\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.FFT = function (smoothing, bins) {\n    this.input = this.analyser = p5sound.audiocontext.createAnalyser();\n    Object.defineProperties(this, {\n      bins: {\n        get: function get() {\n          return this.analyser.fftSize / 2;\n        },\n        set: function set(b) {\n          this.analyser.fftSize = b * 2;\n        },\n        configurable: true,\n        enumerable: true\n      },\n      smoothing: {\n        get: function get() {\n          return this.analyser.smoothingTimeConstant;\n        },\n        set: function set(s) {\n          this.analyser.smoothingTimeConstant = s;\n        },\n        configurable: true,\n        enumerable: true\n      }\n    }); \n\n    this.smooth(smoothing);\n    this.bins = bins || 1024; \n\n    p5sound.fftMeter.connect(this.analyser);\n    this.freqDomain = new Uint8Array(this.analyser.frequencyBinCount);\n    this.timeDomain = new Uint8Array(this.analyser.frequencyBinCount); \n\n    this.bass = [20, 140];\n    this.lowMid = [140, 400];\n    this.mid = [400, 2600];\n    this.highMid = [2600, 5200];\n    this.treble = [5200, 14000]; \n\n    p5sound.soundArray.push(this);\n  };\n  /**\n   *  Set the input source for the FFT analysis. If no source is\n   *  provided, FFT will analyze all sound in the sketch.\n   *\n   *  @method  setInput\n   *  @for p5.FFT\n   *  @param {Object} [source] p5.sound object (or web audio API source node)\n   */\n\n\n  p5.FFT.prototype.setInput = function (source) {\n    if (!source) {\n      p5sound.fftMeter.connect(this.analyser);\n    } else {\n      if (source.output) {\n        source.output.connect(this.analyser);\n      } else if (source.connect) {\n        source.connect(this.analyser);\n      }\n\n      p5sound.fftMeter.disconnect();\n    }\n  };\n  /**\n   *  Returns an array of amplitude values (between -1.0 and +1.0) that represent\n   *  a snapshot of amplitude readings in a single buffer. Length will be\n   *  equal to bins (defaults to 1024). Can be used to draw the waveform\n   *  of a sound.\n   *\n   *  @method waveform\n   *  @for p5.FFT\n   *  @param {Number} [bins]    Must be a power of two between\n   *                            16 and 1024. Defaults to 1024.\n   *  @param {String} [precision] If any value is provided, will return results\n   *                              in a Float32 Array which is more precise\n   *                              than a regular array.\n   *  @return {Array}  Array    Array of amplitude values (-1 to 1)\n   *                            over time. Array length = bins.\n   *\n   */\n\n\n  p5.FFT.prototype.waveform = function () {\n    var bins, mode, normalArray;\n\n    for (var i = 0; i < arguments.length; i++) {\n      if (typeof arguments[i] === 'number') {\n        bins = arguments[i];\n        this.analyser.fftSize = bins * 2;\n      }\n\n      if (typeof arguments[i] === 'string') {\n        mode = arguments[i];\n      }\n    } \n\n\n    if (mode && !p5.prototype._isSafari()) {\n      timeToFloat(this, this.timeDomain);\n      this.analyser.getFloatTimeDomainData(this.timeDomain);\n      return this.timeDomain;\n    } else {\n      timeToInt(this, this.timeDomain);\n      this.analyser.getByteTimeDomainData(this.timeDomain);\n      var normalArray = new Array();\n\n      for (var j = 0; j < this.timeDomain.length; j++) {\n        var scaled = p5.prototype.map(this.timeDomain[j], 0, 255, -1, 1);\n        normalArray.push(scaled);\n      }\n\n      return normalArray;\n    }\n  };\n  /**\n   *  Returns an array of amplitude values (between 0 and 255)\n   *  across the frequency spectrum. Length is equal to FFT bins\n   *  (1024 by default). The array indices correspond to frequencies\n   *  (i.e. pitches), from the lowest to the highest that humans can\n   *  hear. Each value represents amplitude at that slice of the\n   *  frequency spectrum. Must be called prior to using\n   *  <code>getEnergy()</code>.\n   *\n   *  @method analyze\n   *  @for p5.FFT\n   *  @param {Number} [bins]    Must be a power of two between\n   *                             16 and 1024. Defaults to 1024.\n   *  @param {Number} [scale]    If \"dB,\" returns decibel\n   *                             float measurements between\n   *                             -140 and 0 (max).\n   *                             Otherwise returns integers from 0-255.\n   *  @return {Array} spectrum    Array of energy (amplitude/volume)\n   *                              values across the frequency spectrum.\n   *                              Lowest energy (silence) = 0, highest\n   *                              possible is 255.\n   *  @example\n   *  <div><code>\n   *  let osc, fft;\n   *\n   *  function setup(){\n   *    let cnv = createCanvas(100,100);\n   *    cnv.mousePressed(startSound);\n   *    osc = new p5.Oscillator();\n   *    osc.amp(0);\n   *    fft = new p5.FFT();\n   *  }\n   *\n   *  function draw(){\n   *    background(220);\n   *\n   *    let freq = map(mouseX, 0, windowWidth, 20, 10000);\n   *    freq = constrain(freq, 1, 20000);\n   *    osc.freq(freq);\n   *\n   *    let spectrum = fft.analyze();\n   *    noStroke();\n   *    fill(255, 0, 255);\n   *    for (let i = 0; i< spectrum.length; i++){\n   *      let x = map(i, 0, spectrum.length, 0, width);\n   *      let h = -height + map(spectrum[i], 0, 255, height, 0);\n   *      rect(x, height, width / spectrum.length, h );\n   *    }\n   *\n   *    stroke(255);\n   *    if (!osc.started) {\n   *      text('tap here and drag to change frequency', 10, 20, width - 20);\n   *    } else {\n   *      text(round(freq)+'Hz', 10, 20);\n   *    }\n   *  }\n   *\n   *  function startSound() {\n   *    osc.start();\n   *    osc.amp(0.5, 0.2);\n   *  }\n   *\n   *  function mouseReleased() {\n   *    osc.amp(0, 0.2);\n   *  }\n   *  </code></div>\n   *\n   *\n   */\n\n\n  p5.FFT.prototype.analyze = function () {\n    var mode;\n\n    for (var i = 0; i < arguments.length; i++) {\n      if (typeof arguments[i] === 'number') {\n        this.bins = arguments[i];\n        this.analyser.fftSize = this.bins * 2;\n      }\n\n      if (typeof arguments[i] === 'string') {\n        mode = arguments[i];\n      }\n    }\n\n    if (mode && mode.toLowerCase() === 'db') {\n      freqToFloat(this);\n      this.analyser.getFloatFrequencyData(this.freqDomain);\n      return this.freqDomain;\n    } else {\n      freqToInt(this, this.freqDomain);\n      this.analyser.getByteFrequencyData(this.freqDomain);\n      var normalArray = Array.apply([], this.freqDomain);\n      return normalArray;\n    }\n  };\n  /**\n   *  Returns the amount of energy (volume) at a specific\n   *  <a href=\"https://en.wikipedia.org/wiki/Audio_frequency\" target=\"_blank\">\n   *  frequency</a>, or the average amount of energy between two\n   *  frequencies. Accepts Number(s) corresponding\n   *  to frequency (in Hz), or a String corresponding to predefined\n   *  frequency ranges (\"bass\", \"lowMid\", \"mid\", \"highMid\", \"treble\").\n   *  Returns a range between 0 (no energy/volume at that frequency) and\n   *  255 (maximum energy).\n   *  <em>NOTE: analyze() must be called prior to getEnergy(). Analyze()\n   *  tells the FFT to analyze frequency data, and getEnergy() uses\n   *  the results determine the value at a specific frequency or\n   *  range of frequencies.</em></p>\n   *\n   *  @method  getEnergy\n   *  @for p5.FFT\n   *  @param  {Number|String} frequency1   Will return a value representing\n   *                                energy at this frequency. Alternately,\n   *                                the strings \"bass\", \"lowMid\" \"mid\",\n   *                                \"highMid\", and \"treble\" will return\n   *                                predefined frequency ranges.\n   *  @param  {Number} [frequency2] If a second frequency is given,\n   *                                will return average amount of\n   *                                energy that exists between the\n   *                                two frequencies.\n   *  @return {Number}   Energy   Energy (volume/amplitude) from\n   *                              0 and 255.\n   *\n   */\n\n\n  p5.FFT.prototype.getEnergy = function (frequency1, frequency2) {\n    var nyquist = p5sound.audiocontext.sampleRate / 2;\n\n    if (frequency1 === 'bass') {\n      frequency1 = this.bass[0];\n      frequency2 = this.bass[1];\n    } else if (frequency1 === 'lowMid') {\n      frequency1 = this.lowMid[0];\n      frequency2 = this.lowMid[1];\n    } else if (frequency1 === 'mid') {\n      frequency1 = this.mid[0];\n      frequency2 = this.mid[1];\n    } else if (frequency1 === 'highMid') {\n      frequency1 = this.highMid[0];\n      frequency2 = this.highMid[1];\n    } else if (frequency1 === 'treble') {\n      frequency1 = this.treble[0];\n      frequency2 = this.treble[1];\n    }\n\n    if (typeof frequency1 !== 'number') {\n      throw 'invalid input for getEnergy()';\n    } else if (!frequency2) {\n      var index = Math.round(frequency1 / nyquist * this.freqDomain.length);\n      return this.freqDomain[index];\n    } else if (frequency1 && frequency2) {\n      if (frequency1 > frequency2) {\n        var swap = frequency2;\n        frequency2 = frequency1;\n        frequency1 = swap;\n      }\n\n      var lowIndex = Math.round(frequency1 / nyquist * this.freqDomain.length);\n      var highIndex = Math.round(frequency2 / nyquist * this.freqDomain.length);\n      var total = 0;\n      var numFrequencies = 0; \n\n      for (var i = lowIndex; i <= highIndex; i++) {\n        total += this.freqDomain[i];\n        numFrequencies += 1;\n      } \n\n\n      var toReturn = total / numFrequencies;\n      return toReturn;\n    } else {\n      throw 'invalid input for getEnergy()';\n    }\n  }; \n\n\n  p5.FFT.prototype.getFreq = function (freq1, freq2) {\n    console.log('getFreq() is deprecated. Please use getEnergy() instead.');\n    var x = this.getEnergy(freq1, freq2);\n    return x;\n  };\n  /**\n   *  Returns the\n   *  <a href=\"http://en.wikipedia.org/wiki/Spectral_centroid\" target=\"_blank\">\n   *  spectral centroid</a> of the input signal.\n   *  <em>NOTE: analyze() must be called prior to getCentroid(). Analyze()\n   *  tells the FFT to analyze frequency data, and getCentroid() uses\n   *  the results determine the spectral centroid.</em></p>\n   *\n   *  @method  getCentroid\n   *  @for p5.FFT\n   *  @return {Number}   Spectral Centroid Frequency   Frequency of the spectral centroid in Hz.\n   *\n   *\n   * @example\n   *  <div><code>\n   * function setup(){\n   *  cnv = createCanvas(100,100);\n   *  cnv.mousePressed(userStartAudio);\n   *  sound = new p5.AudioIn();\n   *  sound.start();\n   *  fft = new p5.FFT();\n   *  sound.connect(fft);\n   *}\n   *\n   *function draw() {\n   *  if (getAudioContext().state !== 'running') {\n   *    background(220);\n   *    text('tap here and enable mic to begin', 10, 20, width - 20);\n   *    return;\n   *  }\n   *  let centroidplot = 0.0;\n   *  let spectralCentroid = 0;\n   *\n   *  background(0);\n   *  stroke(0,255,0);\n   *  let spectrum = fft.analyze();\n   *  fill(0,255,0); // spectrum is green\n   *\n   *  //draw the spectrum\n   *  for (let i = 0; i < spectrum.length; i++){\n   *    let x = map(log(i), 0, log(spectrum.length), 0, width);\n   *    let h = map(spectrum[i], 0, 255, 0, height);\n   *    let rectangle_width = (log(i+1)-log(i))*(width/log(spectrum.length));\n   *    rect(x, height, rectangle_width, -h )\n   *  }\n   *  let nyquist = 22050;\n   *\n   *  // get the centroid\n   *  spectralCentroid = fft.getCentroid();\n   *\n   *  // the mean_freq_index calculation is for the display.\n   *  let mean_freq_index = spectralCentroid/(nyquist/spectrum.length);\n   *\n   *  centroidplot = map(log(mean_freq_index), 0, log(spectrum.length), 0, width);\n   *\n   *  stroke(255,0,0); // the line showing where the centroid is will be red\n   *\n   *  rect(centroidplot, 0, width / spectrum.length, height)\n   *  noStroke();\n   *  fill(255,255,255);  // text is white\n   *  text('centroid: ', 10, 20);\n   *  text(round(spectralCentroid)+' Hz', 10, 40);\n   *}\n   * </code></div>\n   */\n\n\n  p5.FFT.prototype.getCentroid = function () {\n    var nyquist = p5sound.audiocontext.sampleRate / 2;\n    var cumulative_sum = 0;\n    var centroid_normalization = 0;\n\n    for (var i = 0; i < this.freqDomain.length; i++) {\n      cumulative_sum += i * this.freqDomain[i];\n      centroid_normalization += this.freqDomain[i];\n    }\n\n    var mean_freq_index = 0;\n\n    if (centroid_normalization !== 0) {\n      mean_freq_index = cumulative_sum / centroid_normalization;\n    }\n\n    var spec_centroid_freq = mean_freq_index * (nyquist / this.freqDomain.length);\n    return spec_centroid_freq;\n  };\n  /**\n   *  Smooth FFT analysis by averaging with the last analysis frame.\n   *\n   *  @method smooth\n   *  @param {Number} smoothing    0.0 < smoothing < 1.0.\n   *                               Defaults to 0.8.\n   */\n\n\n  p5.FFT.prototype.smooth = function (s) {\n    if (typeof s !== 'undefined') {\n      this.smoothing = s;\n    }\n\n    return this.smoothing;\n  };\n\n  p5.FFT.prototype.dispose = function () {\n    var index = p5sound.soundArray.indexOf(this);\n    p5sound.soundArray.splice(index, 1);\n\n    if (this.analyser) {\n      this.analyser.disconnect();\n      delete this.analyser;\n    }\n  };\n  /**\n   *  Returns an array of average amplitude values for a given number\n   *  of frequency bands split equally. N defaults to 16.\n   *  <em>NOTE: analyze() must be called prior to linAverages(). Analyze()\n   *  tells the FFT to analyze frequency data, and linAverages() uses\n   *  the results to group them into a smaller set of averages.</em></p>\n   *\n   *  @method  linAverages\n   *  @for p5.FFT\n   *  @param  {Number}  N                Number of returned frequency groups\n   *  @return {Array}   linearAverages   Array of average amplitude values for each group\n   */\n\n\n  p5.FFT.prototype.linAverages = function (N) {\n    var N = N || 16; \n\n    var spectrum = this.freqDomain;\n    var spectrumLength = spectrum.length;\n    var spectrumStep = Math.floor(spectrumLength / N);\n    var linearAverages = new Array(N); \n\n    var groupIndex = 0;\n\n    for (var specIndex = 0; specIndex < spectrumLength; specIndex++) {\n      linearAverages[groupIndex] = linearAverages[groupIndex] !== undefined ? (linearAverages[groupIndex] + spectrum[specIndex]) / 2 : spectrum[specIndex]; \n\n      if (specIndex % spectrumStep === spectrumStep - 1) {\n        groupIndex++;\n      }\n    }\n\n    return linearAverages;\n  };\n  /**\n   *  Returns an array of average amplitude values of the spectrum, for a given\n   *  set of <a href=\"https://en.wikipedia.org/wiki/Octave_band\" target=\"_blank\">\n   *  Octave Bands</a>\n   *  <em>NOTE: analyze() must be called prior to logAverages(). Analyze()\n   *  tells the FFT to analyze frequency data, and logAverages() uses\n   *  the results to group them into a smaller set of averages.</em></p>\n   *\n   *  @method  logAverages\n   *  @for p5.FFT\n   *  @param  {Array}   octaveBands    Array of Octave Bands objects for grouping\n   *  @return {Array}   logAverages    Array of average amplitude values for each group\n   */\n\n\n  p5.FFT.prototype.logAverages = function (octaveBands) {\n    var nyquist = p5sound.audiocontext.sampleRate / 2;\n    var spectrum = this.freqDomain;\n    var spectrumLength = spectrum.length;\n    var logAverages = new Array(octaveBands.length); \n\n    var octaveIndex = 0;\n\n    for (var specIndex = 0; specIndex < spectrumLength; specIndex++) {\n      var specIndexFrequency = Math.round(specIndex * nyquist / this.freqDomain.length); \n\n      if (specIndexFrequency > octaveBands[octaveIndex].hi) {\n        octaveIndex++;\n      }\n\n      logAverages[octaveIndex] = logAverages[octaveIndex] !== undefined ? (logAverages[octaveIndex] + spectrum[specIndex]) / 2 : spectrum[specIndex];\n    }\n\n    return logAverages;\n  };\n  /**\n   *  Calculates and Returns the 1/N\n   *  <a href=\"https://en.wikipedia.org/wiki/Octave_band\" target=\"_blank\">Octave Bands</a>\n   *  N defaults to 3 and minimum central frequency to 15.625Hz.\n   *  (1/3 Octave Bands ~= 31 Frequency Bands)\n   *  Setting fCtr0 to a central value of a higher octave will ignore the lower bands\n   *  and produce less frequency groups.\n   *\n   *  @method   getOctaveBands\n   *  @for p5.FFT\n   *  @param  {Number}  N             Specifies the 1/N type of generated octave bands\n   *  @param  {Number}  fCtr0         Minimum central frequency for the lowest band\n   *  @return {Array}   octaveBands   Array of octave band objects with their bounds\n   */\n\n\n  p5.FFT.prototype.getOctaveBands = function (N, fCtr0) {\n    var N = N || 3; \n\n    var fCtr0 = fCtr0 || 15.625; \n\n    var octaveBands = [];\n    var lastFrequencyBand = {\n      lo: fCtr0 / Math.pow(2, 1 / (2 * N)),\n      ctr: fCtr0,\n      hi: fCtr0 * Math.pow(2, 1 / (2 * N))\n    };\n    octaveBands.push(lastFrequencyBand);\n    var nyquist = p5sound.audiocontext.sampleRate / 2;\n\n    while (lastFrequencyBand.hi < nyquist) {\n      var newFrequencyBand = {};\n      newFrequencyBand.lo = lastFrequencyBand.hi;\n      newFrequencyBand.ctr = lastFrequencyBand.ctr * Math.pow(2, 1 / N);\n      newFrequencyBand.hi = newFrequencyBand.ctr * Math.pow(2, 1 / (2 * N));\n      octaveBands.push(newFrequencyBand);\n      lastFrequencyBand = newFrequencyBand;\n    }\n\n    return octaveBands;\n  }; \n\n\n  var freqToFloat = function freqToFloat(fft) {\n    if (fft.freqDomain instanceof Float32Array === false) {\n      fft.freqDomain = new Float32Array(fft.analyser.frequencyBinCount);\n    }\n  };\n\n  var freqToInt = function freqToInt(fft) {\n    if (fft.freqDomain instanceof Uint8Array === false) {\n      fft.freqDomain = new Uint8Array(fft.analyser.frequencyBinCount);\n    }\n  };\n\n  var timeToFloat = function timeToFloat(fft) {\n    if (fft.timeDomain instanceof Float32Array === false) {\n      fft.timeDomain = new Float32Array(fft.analyser.frequencyBinCount);\n    }\n  };\n\n  var timeToInt = function timeToInt(fft) {\n    if (fft.timeDomain instanceof Uint8Array === false) {\n      fft.timeDomain = new Uint8Array(fft.analyser.frequencyBinCount);\n    }\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var Signal = __webpack_require__(2);\n\n  var Add = __webpack_require__(7);\n\n  var Mult = __webpack_require__(3);\n\n  var Scale = __webpack_require__(13);\n  /**\n   *  <p>p5.Signal is a constant audio-rate signal used by p5.Oscillator\n   *  and p5.Envelope for modulation math.</p>\n   *\n   *  <p>This is necessary because Web Audio is processed on a seprate clock.\n   *  For example, the p5 draw loop runs about 60 times per second. But\n   *  the audio clock must process samples 44100 times per second. If we\n   *  want to add a value to each of those samples, we can't do it in the\n   *  draw loop, but we can do it by adding a constant-rate audio signal.</p.\n   *\n   *  <p>This class mostly functions behind the scenes in p5.sound, and returns\n   *  a Tone.Signal from the Tone.js library by Yotam Mann.\n   *  If you want to work directly with audio signals for modular\n   *  synthesis, check out\n   *  <a href='http://bit.ly/1oIoEng' target=_'blank'>tone.js.</a></p>\n   *\n   *  @class  p5.Signal\n   *  @constructor\n   *  @return {Tone.Signal} A Signal object from the Tone.js library\n   *  @example\n   *  <div><code>\n   *  let carrier, modulator;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *    background(220);\n   *    text('tap to play', 20, 20);\n   *\n   *    carrier = new p5.Oscillator('sine');\n   *    carrier.start();\n   *    carrier.amp(1); // set amplitude\n   *    carrier.freq(220); // set frequency\n   *\n   *    modulator = new p5.Oscillator('sawtooth');\n   *    modulator.disconnect();\n   *    modulator.start();\n   *    modulator.amp(1);\n   *    modulator.freq(4);\n   *\n   *    // Modulator's default amplitude range is -1 to 1.\n   *    // Multiply it by -200, so the range is -200 to 200\n   *    // then add 220 so the range is 20 to 420\n   *    carrier.freq( modulator.mult(-400).add(220) );\n   *  }\n   *\n   *  function canvasPressed() {\n   *    userStartAudio();\n   *    carrier.amp(1.0);\n   *  }\n   *\n   *  function mouseReleased() {\n   *    carrier.amp(0);\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Signal = function (value) {\n    var s = new Signal(value); \n\n    return s; \n  };\n  /**\n   *  Fade to value, for smooth transitions\n   *\n   *  @method  fade\n   *  @for p5.Signal\n   *  @param  {Number} value          Value to set this signal\n   *  @param  {Number} [secondsFromNow] Length of fade, in seconds from now\n   */\n\n\n  Signal.prototype.fade = Signal.prototype.linearRampToValueAtTime;\n  Mult.prototype.fade = Signal.prototype.fade;\n  Add.prototype.fade = Signal.prototype.fade;\n  Scale.prototype.fade = Signal.prototype.fade;\n  /**\n   *  Connect a p5.sound object or Web Audio node to this\n   *  p5.Signal so that its amplitude values can be scaled.\n   *\n   *  @method setInput\n   *  @for p5.Signal\n   *  @param {Object} input\n   */\n\n  Signal.prototype.setInput = function (_input) {\n    _input.connect(this);\n  };\n\n  Mult.prototype.setInput = Signal.prototype.setInput;\n  Add.prototype.setInput = Signal.prototype.setInput;\n  Scale.prototype.setInput = Signal.prototype.setInput; \n\n  /**\n   *  Add a constant value to this audio signal,\n   *  and return the resulting audio signal. Does\n   *  not change the value of the original signal,\n   *  instead it returns a new p5.SignalAdd.\n   *\n   *  @method  add\n   *  @for p5.Signal\n   *  @param {Number} number\n   *  @return {p5.Signal} object\n   */\n\n  Signal.prototype.add = function (num) {\n    var add = new Add(num); \n\n    this.connect(add);\n    return add;\n  };\n\n  Mult.prototype.add = Signal.prototype.add;\n  Add.prototype.add = Signal.prototype.add;\n  Scale.prototype.add = Signal.prototype.add;\n  /**\n   *  Multiply this signal by a constant value,\n   *  and return the resulting audio signal. Does\n   *  not change the value of the original signal,\n   *  instead it returns a new p5.SignalMult.\n   *\n   *  @method  mult\n   *  @for p5.Signal\n   *  @param {Number} number to multiply\n   *  @return {p5.Signal} object\n   */\n\n  Signal.prototype.mult = function (num) {\n    var mult = new Mult(num); \n\n    this.connect(mult);\n    return mult;\n  };\n\n  Mult.prototype.mult = Signal.prototype.mult;\n  Add.prototype.mult = Signal.prototype.mult;\n  Scale.prototype.mult = Signal.prototype.mult;\n  /**\n   *  Scale this signal value to a given range,\n   *  and return the result as an audio signal. Does\n   *  not change the value of the original signal,\n   *  instead it returns a new p5.SignalScale.\n   *\n   *  @method  scale\n   *  @for p5.Signal\n   *  @param {Number} number to multiply\n   *  @param  {Number} inMin  input range minumum\n   *  @param  {Number} inMax  input range maximum\n   *  @param  {Number} outMin input range minumum\n   *  @param  {Number} outMax input range maximum\n   *  @return {p5.Signal} object\n   */\n\n  Signal.prototype.scale = function (inMin, inMax, outMin, outMax) {\n    var mapOutMin, mapOutMax;\n\n    if (arguments.length === 4) {\n      mapOutMin = p5.prototype.map(outMin, inMin, inMax, 0, 1) - 0.5;\n      mapOutMax = p5.prototype.map(outMax, inMin, inMax, 0, 1) - 0.5;\n    } else {\n      mapOutMin = arguments[0];\n      mapOutMax = arguments[1];\n    }\n\n    var scale = new Scale(mapOutMin, mapOutMax);\n    this.connect(scale);\n    return scale;\n  };\n\n  Mult.prototype.scale = Signal.prototype.scale;\n  Add.prototype.scale = Signal.prototype.scale;\n  Scale.prototype.scale = Signal.prototype.scale;\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(21)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(o){o.Frequency=function(e,t){if(!(this instanceof o.Frequency))return new o.Frequency(e,t);o.TimeBase.call(this,e,t)},o.extend(o.Frequency,o.TimeBase),o.Frequency.prototype._primaryExpressions=Object.create(o.TimeBase.prototype._primaryExpressions),o.Frequency.prototype._primaryExpressions.midi={regexp:/^(\\d+(?:\\.\\d+)?midi)/,method:function(e){return this.midiToFrequency(e)}},o.Frequency.prototype._primaryExpressions.note={regexp:/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i,method:function(e,t){var r=n[e.toLowerCase()]+12*(parseInt(t)+1);return this.midiToFrequency(r)}},o.Frequency.prototype._primaryExpressions.tr={regexp:/^(\\d+(?:\\.\\d+)?):(\\d+(?:\\.\\d+)?):?(\\d+(?:\\.\\d+)?)?/,method:function(e,t,r){var n=1;return e&&\"0\"!==e&&(n*=this._beatsToUnits(this._timeSignature()*parseFloat(e))),t&&\"0\"!==t&&(n*=this._beatsToUnits(parseFloat(t))),r&&\"0\"!==r&&(n*=this._beatsToUnits(parseFloat(r)/4)),n}},o.Frequency.prototype.transpose=function(e){return this._expr=function(e,t){return e()*this.intervalToFrequencyRatio(t)}.bind(this,this._expr,e),this},o.Frequency.prototype.harmonize=function(e){return this._expr=function(e,t){for(var r=e(),n=[],o=0;o<t.length;o++)n[o]=r*this.intervalToFrequencyRatio(t[o]);return n}.bind(this,this._expr,e),this},o.Frequency.prototype.toMidi=function(){return this.frequencyToMidi(this.valueOf())},o.Frequency.prototype.toNote=function(){var e=this.valueOf(),t=Math.log(e/o.Frequency.A4)/Math.LN2,r=Math.round(12*t)+57,n=Math.floor(r/12);return n<0&&(r+=-12*n),i[r%12]+n.toString()},o.Frequency.prototype.toSeconds=function(){return 1/this.valueOf()},o.Frequency.prototype.toFrequency=function(){return this.valueOf()},o.Frequency.prototype.toTicks=function(){var e=this._beatsToUnits(1),t=this.valueOf()/e;return Math.floor(t*o.Transport.PPQ)},o.Frequency.prototype._frequencyToUnits=function(e){return e},o.Frequency.prototype._ticksToUnits=function(e){return 1/(60*e/(o.Transport.bpm.value*o.Transport.PPQ))},o.Frequency.prototype._beatsToUnits=function(e){return 1/o.TimeBase.prototype._beatsToUnits.call(this,e)},o.Frequency.prototype._secondsToUnits=function(e){return 1/e},o.Frequency.prototype._defaultUnits=\"hz\";var n={cbb:-2,cb:-1,c:0,\"c#\":1,cx:2,dbb:0,db:1,d:2,\"d#\":3,dx:4,ebb:2,eb:3,e:4,\"e#\":5,ex:6,fbb:3,fb:4,f:5,\"f#\":6,fx:7,gbb:5,gb:6,g:7,\"g#\":8,gx:9,abb:7,ab:8,a:9,\"a#\":10,ax:11,bbb:9,bb:10,b:11,\"b#\":12,bx:13},i=[\"C\",\"C#\",\"D\",\"D#\",\"E\",\"F\",\"F#\",\"G\",\"G#\",\"A\",\"A#\",\"B\"];return o.Frequency.A4=440,o.Frequency.prototype.midiToFrequency=function(e){return o.Frequency.A4*Math.pow(2,(e-69)/12)},o.Frequency.prototype.frequencyToMidi=function(e){return 69+12*Math.log(e/o.Frequency.A4)/Math.LN2},o.Frequency}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(20)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(o){return o.TransportTime=function(t,r){if(!(this instanceof o.TransportTime))return new o.TransportTime(t,r);o.Time.call(this,t,r)},o.extend(o.TransportTime,o.Time),o.TransportTime.prototype._unaryExpressions=Object.create(o.Time.prototype._unaryExpressions),o.TransportTime.prototype._unaryExpressions.quantize={regexp:/^@/,method:function(t){var r=this._secondsToTicks(t()),e=Math.ceil(o.Transport.ticks/r);return this._ticksToUnits(e*r)}},o.TransportTime.prototype._secondsToTicks=function(t){var r=t/this._beatsToUnits(1);return Math.round(r*o.Transport.PPQ)},o.TransportTime.prototype.valueOf=function(){return this._secondsToTicks(this._expr())+(this._plusNow?o.Transport.ticks:0)},o.TransportTime.prototype.toTicks=function(){return this.valueOf()},o.TransportTime.prototype.toSeconds=function(){return this._expr()+(this._plusNow?o.Transport.seconds:0)},o.TransportTime.prototype.toFrequency=function(){return 1/this.toSeconds()},o.TransportTime}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var Add = __webpack_require__(7);\n\n  var Mult = __webpack_require__(3);\n\n  var Scale = __webpack_require__(13);\n\n  var TimelineSignal = __webpack_require__(14);\n  /**\n   *  <p>Envelopes are pre-defined amplitude distribution over time.\n   *  Typically, envelopes are used to control the output volume\n   *  of an object, a series of fades referred to as Attack, Decay,\n   *  Sustain and Release (\n   *  <a href=\"https://upload.wikimedia.org/wikipedia/commons/e/ea/ADSR_parameter.svg\">ADSR</a>\n   *  ). Envelopes can also control other Web Audio Parameters—for example, a p5.Envelope can\n   *  control an Oscillator's frequency like this: <code>osc.freq(env)</code>.</p>\n   *  <p>Use <code><a href=\"#/p5.Envelope/setRange\">setRange</a></code> to change the attack/release level.\n   *  Use <code><a href=\"#/p5.Envelope/setADSR\">setADSR</a></code> to change attackTime, decayTime, sustainPercent and releaseTime.</p>\n   *  <p>Use the <code><a href=\"#/p5.Envelope/play\">play</a></code> method to play the entire envelope,\n   *  the <code><a href=\"#/p5.Envelope/ramp\">ramp</a></code> method for a pingable trigger,\n   *  or <code><a href=\"#/p5.Envelope/triggerAttack\">triggerAttack</a></code>/\n   *  <code><a href=\"#/p5.Envelope/triggerRelease\">triggerRelease</a></code> to trigger noteOn/noteOff.</p>\n   *\n   *  @class p5.Envelope\n   *  @constructor\n   *  @example\n   *  <div><code>\n   *  let t1 = 0.1; // attack time in seconds\n   *  let l1 = 0.7; // attack level 0.0 to 1.0\n   *  let t2 = 0.3; // decay time in seconds\n   *  let l2 = 0.1; // decay level  0.0 to 1.0\n   *\n   *  let env;\n   *  let triOsc;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    background(220);\n   *    text('tap to play', 20, 20);\n   *    cnv.mousePressed(playSound);\n   *\n   *    env = new p5.Envelope(t1, l1, t2, l2);\n   *    triOsc = new p5.Oscillator('triangle');\n   *  }\n   *\n   *  function playSound() {\n   *    // starting the oscillator ensures that audio is enabled.\n   *    triOsc.start();\n   *    env.play(triOsc);\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Envelope = function (t1, l1, t2, l2, t3, l3) {\n    /**\n     * Time until envelope reaches attackLevel\n     * @property attackTime\n     */\n    this.aTime = t1 || 0.1;\n    /**\n     * Level once attack is complete.\n     * @property attackLevel\n     */\n\n    this.aLevel = l1 || 1;\n    /**\n     * Time until envelope reaches decayLevel.\n     * @property decayTime\n     */\n\n    this.dTime = t2 || 0.5;\n    /**\n     * Level after decay. The envelope will sustain here until it is released.\n     * @property decayLevel\n     */\n\n    this.dLevel = l2 || 0;\n    /**\n     * Duration of the release portion of the envelope.\n     * @property releaseTime\n     */\n\n    this.rTime = t3 || 0;\n    /**\n     * Level at the end of the release.\n     * @property releaseLevel\n     */\n\n    this.rLevel = l3 || 0;\n    this._rampHighPercentage = 0.98;\n    this._rampLowPercentage = 0.02;\n    this.output = p5sound.audiocontext.createGain();\n    this.control = new TimelineSignal();\n\n    this._init(); \n\n\n    this.control.connect(this.output); \n\n    this.connection = null; \n\n    this.mathOps = [this.control]; \n\n    this.isExponential = false; \n\n    this.sourceToClear = null; \n\n    this.wasTriggered = false; \n\n    p5sound.soundArray.push(this);\n  }; \n\n\n  p5.Envelope.prototype._init = function () {\n    var now = p5sound.audiocontext.currentTime;\n    var t = now;\n    this.control.setTargetAtTime(0.00001, t, .001); \n\n    this._setRampAD(this.aTime, this.dTime);\n  };\n  /**\n   *  Reset the envelope with a series of time/value pairs.\n   *\n   *  @method  set\n   *  @for p5.Envelope\n   *  @param {Number} attackTime     Time (in seconds) before level\n   *                                 reaches attackLevel\n   *  @param {Number} attackLevel    Typically an amplitude between\n   *                                 0.0 and 1.0\n   *  @param {Number} decayTime      Time\n   *  @param {Number} decayLevel   Amplitude (In a standard ADSR envelope,\n   *                                 decayLevel = sustainLevel)\n   *  @param {Number} releaseTime   Release Time (in seconds)\n   *  @param {Number} releaseLevel  Amplitude\n   *  @example\n   *  <div><code>\n   *  let attackTime;\n   *  let l1 = 0.7; // attack level 0.0 to 1.0\n   *  let t2 = 0.3; // decay time in seconds\n   *  let l2 = 0.1; // decay level  0.0 to 1.0\n   *  let l3 = 0.2; // release time in seconds\n   *\n   *  let env, triOsc;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playSound);\n   *\n   *    env = new p5.Envelope();\n   *    triOsc = new p5.Oscillator('triangle');\n   *  }\n   *\n   *  function draw() {\n   *    background(220);\n   *    text('tap here to play', 5, 20);\n   *\n   *    attackTime = map(mouseX, 0, width, 0.0, 1.0);\n   *    text('attack time: ' + attackTime, 5, height - 20);\n   *  }\n   *\n   *  // mouseClick triggers envelope if over canvas\n   *  function playSound() {\n   *    env.set(attackTime, l1, t2, l2, l3);\n   *\n   *    triOsc.start();\n   *    env.play(triOsc);\n   *  }\n   *  </code></div>\n   *\n   */\n\n\n  p5.Envelope.prototype.set = function (t1, l1, t2, l2, t3, l3) {\n    this.aTime = t1;\n    this.aLevel = l1;\n    this.dTime = t2 || 0;\n    this.dLevel = l2 || 0;\n    this.rTime = t3 || 0;\n    this.rLevel = l3 || 0; \n\n    this._setRampAD(t1, t2);\n  };\n  /**\n   *  Set values like a traditional\n   *  <a href=\"https://en.wikipedia.org/wiki/Synthesizer#/media/File:ADSR_parameter.svg\">\n   *  ADSR envelope\n   *  </a>.\n   *\n   *  @method  setADSR\n   *  @for p5.Envelope\n   *  @param {Number} attackTime    Time (in seconds before envelope\n   *                                reaches Attack Level\n   *  @param {Number} [decayTime]    Time (in seconds) before envelope\n   *                                reaches Decay/Sustain Level\n   *  @param {Number} [susRatio]    Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n   *                                where 1.0 = attackLevel, 0.0 = releaseLevel.\n   *                                The susRatio determines the decayLevel and the level at which the\n   *                                sustain portion of the envelope will sustain.\n   *                                For example, if attackLevel is 0.4, releaseLevel is 0,\n   *                                and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n   *                                increased to 1.0 (using <code>setRange</code>),\n   *                                then decayLevel would increase proportionally, to become 0.5.\n   *  @param {Number} [releaseTime]   Time in seconds from now (defaults to 0)\n   *  @example\n   *  <div><code>\n   *  let attackLevel = 1.0;\n   *  let releaseLevel = 0;\n   *\n   *  let attackTime = 0.001;\n   *  let decayTime = 0.2;\n   *  let susPercent = 0.2;\n   *  let releaseTime = 0.5;\n   *\n   *  let env, triOsc;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playEnv);\n   *\n   *    env = new p5.Envelope();\n   *    triOsc = new p5.Oscillator('triangle');\n   *    triOsc.amp(env);\n   *    triOsc.freq(220);\n   *  }\n   *\n   *  function draw() {\n   *    background(220);\n   *    text('tap here to play', 5, 20);\n   *    attackTime = map(mouseX, 0, width, 0, 1.0);\n   *    text('attack time: ' + attackTime, 5, height - 40);\n   *  }\n   *\n   *  function playEnv() {\n   *    triOsc.start();\n   *    env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n   *    env.play();\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Envelope.prototype.setADSR = function (aTime, dTime, sPercent, rTime) {\n    this.aTime = aTime;\n    this.dTime = dTime || 0; \n\n    this.sPercent = sPercent || 0;\n    this.dLevel = typeof sPercent !== 'undefined' ? sPercent * (this.aLevel - this.rLevel) + this.rLevel : 0;\n    this.rTime = rTime || 0; \n\n    this._setRampAD(aTime, dTime);\n  };\n  /**\n   *  Set max (attackLevel) and min (releaseLevel) of envelope.\n   *\n   *  @method  setRange\n   *  @for p5.Envelope\n   *  @param {Number} aLevel attack level (defaults to 1)\n   *  @param {Number} rLevel release level (defaults to 0)\n   *  @example\n   *  <div><code>\n   *  let attackLevel = 1.0;\n   *  let releaseLevel = 0;\n   *\n   *  let attackTime = 0.001;\n   *  let decayTime = 0.2;\n   *  let susPercent = 0.2;\n   *  let releaseTime = 0.5;\n   *\n   *  let env, triOsc;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playEnv);\n   *\n   *    env = new p5.Envelope();\n   *    triOsc = new p5.Oscillator('triangle');\n   *    triOsc.amp(env);\n   *    triOsc.freq(220);\n   *  }\n   *\n   *  function draw() {\n   *    background(220);\n   *    text('tap here to play', 5, 20);\n   *    attackLevel = map(mouseY, height, 0, 0, 1.0);\n   *    text('attack level: ' + attackLevel, 5, height - 20);\n   *  }\n   *\n   *  function playEnv() {\n   *    triOsc.start();\n   *    env.setRange(attackLevel, releaseLevel);\n   *    env.play();\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Envelope.prototype.setRange = function (aLevel, rLevel) {\n    this.aLevel = aLevel || 1;\n    this.rLevel = rLevel || 0; \n  }; \n\n\n  p5.Envelope.prototype._setRampAD = function (t1, t2) {\n    this._rampAttackTime = this.checkExpInput(t1);\n    this._rampDecayTime = this.checkExpInput(t2);\n    var TCDenominator = 1.0; \n\n    TCDenominator = Math.log(1.0 / this.checkExpInput(1.0 - this._rampHighPercentage));\n    this._rampAttackTC = t1 / this.checkExpInput(TCDenominator);\n    TCDenominator = Math.log(1.0 / this._rampLowPercentage);\n    this._rampDecayTC = t2 / this.checkExpInput(TCDenominator);\n  }; \n\n\n  p5.Envelope.prototype.setRampPercentages = function (p1, p2) {\n    this._rampHighPercentage = this.checkExpInput(p1);\n    this._rampLowPercentage = this.checkExpInput(p2);\n    var TCDenominator = 1.0; \n\n    TCDenominator = Math.log(1.0 / this.checkExpInput(1.0 - this._rampHighPercentage));\n    this._rampAttackTC = this._rampAttackTime / this.checkExpInput(TCDenominator);\n    TCDenominator = Math.log(1.0 / this._rampLowPercentage);\n    this._rampDecayTC = this._rampDecayTime / this.checkExpInput(TCDenominator);\n  };\n  /**\n   *  Assign a parameter to be controlled by this envelope.\n   *  If a p5.Sound object is given, then the p5.Envelope will control its\n   *  output gain. If multiple inputs are provided, the env will\n   *  control all of them.\n   *\n   *  @method  setInput\n   *  @for p5.Envelope\n   *  @param  {Object} [...inputs]         A p5.sound object or\n   *                                Web Audio Param.\n   */\n\n\n  p5.Envelope.prototype.setInput = function () {\n    for (var i = 0; i < arguments.length; i++) {\n      this.connect(arguments[i]);\n    }\n  };\n  /**\n   *  Set whether the envelope ramp is linear (default) or exponential.\n   *  Exponential ramps can be useful because we perceive amplitude\n   *  and frequency logarithmically.\n   *\n   *  @method  setExp\n   *  @for p5.Envelope\n   *  @param {Boolean} isExp true is exponential, false is linear\n   */\n\n\n  p5.Envelope.prototype.setExp = function (isExp) {\n    this.isExponential = isExp;\n  }; \n\n\n  p5.Envelope.prototype.checkExpInput = function (value) {\n    if (value <= 0) {\n      value = 0.00000001;\n    }\n\n    return value;\n  };\n  /**\n   *  <p>Play tells the envelope to start acting on a given input.\n   *  If the input is a p5.sound object (i.e. AudioIn, Oscillator,\n   *  SoundFile), then Envelope will control its output volume.\n   *  Envelopes can also be used to control any <a href=\"\n   *  http://docs.webplatform.org/wiki/apis/webaudio/AudioParam\">\n   *  Web Audio Audio Param.</a></p>\n   *\n   *  @method  play\n   *  @for p5.Envelope\n   *  @param  {Object} unit         A p5.sound object or\n   *                                Web Audio Param.\n   *  @param  {Number} [startTime]  time from now (in seconds) at which to play\n   *  @param  {Number} [sustainTime] time to sustain before releasing the envelope\n   *  @example\n   *  <div><code>\n   *  let attackLevel = 1.0;\n   *  let releaseLevel = 0;\n   *\n   *  let attackTime = 0.001;\n   *  let decayTime = 0.2;\n   *  let susPercent = 0.2;\n   *  let releaseTime = 0.5;\n   *\n   *  let env, triOsc;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playEnv);\n   *\n   *    env = new p5.Envelope();\n   *    triOsc = new p5.Oscillator('triangle');\n   *    triOsc.amp(env);\n   *    triOsc.freq(220);\n   *    triOsc.start();\n   *  }\n   *\n   *  function draw() {\n   *    background(220);\n   *    text('tap here to play', 5, 20);\n   *    attackTime = map(mouseX, 0, width, 0, 1.0);\n   *    attackLevel = map(mouseY, height, 0, 0, 1.0);\n   *    text('attack time: ' + attackTime, 5, height - 40);\n   *    text('attack level: ' + attackLevel, 5, height - 20);\n   *  }\n   *\n   *  function playEnv() {\n   *    // ensure that audio is enabled\n   *    userStartAudio();\n   *\n   *    env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n   *    env.setRange(attackLevel, releaseLevel);\n   *    env.play();\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Envelope.prototype.play = function (unit, secondsFromNow, susTime) {\n    var tFromNow = secondsFromNow || 0;\n    var susTime = susTime || 0;\n\n    if (unit) {\n      if (this.connection !== unit) {\n        this.connect(unit);\n      }\n    }\n\n    this.triggerAttack(unit, tFromNow);\n    this.triggerRelease(unit, tFromNow + this.aTime + this.dTime + susTime);\n  };\n  /**\n   *  Trigger the Attack, and Decay portion of the Envelope.\n   *  Similar to holding down a key on a piano, but it will\n   *  hold the sustain level until you let go. Input can be\n   *  any p5.sound object, or a <a href=\"\n   *  http://docs.webplatform.org/wiki/apis/webaudio/AudioParam\">\n   *  Web Audio Param</a>.\n   *\n   *  @method  triggerAttack\n   *  @for p5.Envelope\n   *  @param  {Object} unit p5.sound Object or Web Audio Param\n   *  @param  {Number} secondsFromNow time from now (in seconds)\n   *  @example\n   *  <div><code>\n   *  let attackTime = 0.001;\n   *  let decayTime = 0.2;\n   *  let susPercent = 0.3;\n   *  let releaseTime = 0.4;\n   *  let env, triOsc;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    background(220);\n   *    textAlign(CENTER);\n   *    textSize(10);\n   *    text('tap to triggerAttack', width/2, height/2);\n   *\n   *    env = new p5.Envelope();\n   *    env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n   *    env.setRange(1.0, 0.0);\n   *    triOsc = new p5.Oscillator('triangle');\n   *    triOsc.freq(220);\n   *\n   *    cnv.mousePressed(envAttack);\n   *  }\n   *\n   *  function envAttack()  {\n   *    background(0, 255, 255);\n   *    text('release to release', width/2, height/2);\n   *\n   *    // ensures audio is enabled. See also: `userStartAudio`\n   *    triOsc.start();\n   *\n   *    env.triggerAttack(triOsc);\n   *  }\n   *\n   *  function mouseReleased() {\n   *    background(220);\n   *    text('tap to triggerAttack', width/2, height/2);\n   *\n   *    env.triggerRelease(triOsc);\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Envelope.prototype.triggerAttack = function (unit, secondsFromNow) {\n    var now = p5sound.audiocontext.currentTime;\n    var tFromNow = secondsFromNow || 0;\n    var t = now + tFromNow;\n    this.lastAttack = t;\n    this.wasTriggered = true;\n\n    if (unit) {\n      if (this.connection !== unit) {\n        this.connect(unit);\n      }\n    } \n\n\n    var valToSet = this.control.getValueAtTime(t);\n\n    if (this.isExponential === true) {\n      this.control.exponentialRampToValueAtTime(this.checkExpInput(valToSet), t);\n    } else {\n      this.control.linearRampToValueAtTime(valToSet, t);\n    } \n\n\n    t += this.aTime;\n\n    if (this.isExponential === true) {\n      this.control.exponentialRampToValueAtTime(this.checkExpInput(this.aLevel), t);\n      valToSet = this.checkExpInput(this.control.getValueAtTime(t));\n      this.control.cancelScheduledValues(t);\n      this.control.exponentialRampToValueAtTime(valToSet, t);\n    } else {\n      this.control.linearRampToValueAtTime(this.aLevel, t);\n      valToSet = this.control.getValueAtTime(t);\n      this.control.cancelScheduledValues(t);\n      this.control.linearRampToValueAtTime(valToSet, t);\n    } \n\n\n    t += this.dTime;\n\n    if (this.isExponential === true) {\n      this.control.exponentialRampToValueAtTime(this.checkExpInput(this.dLevel), t);\n      valToSet = this.checkExpInput(this.control.getValueAtTime(t));\n      this.control.cancelScheduledValues(t);\n      this.control.exponentialRampToValueAtTime(valToSet, t);\n    } else {\n      this.control.linearRampToValueAtTime(this.dLevel, t);\n      valToSet = this.control.getValueAtTime(t);\n      this.control.cancelScheduledValues(t);\n      this.control.linearRampToValueAtTime(valToSet, t);\n    }\n  };\n  /**\n   *  Trigger the Release of the Envelope. This is similar to releasing\n   *  the key on a piano and letting the sound fade according to the\n   *  release level and release time.\n   *\n   *  @method  triggerRelease\n   *  @for p5.Envelope\n   *  @param  {Object} unit p5.sound Object or Web Audio Param\n   *  @param  {Number} secondsFromNow time to trigger the release\n   *  @example\n   *  <div><code>\n   *  let attackTime = 0.001;\n   *  let decayTime = 0.2;\n   *  let susPercent = 0.3;\n   *  let releaseTime = 0.4;\n   *  let env, triOsc;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    background(220);\n   *    textAlign(CENTER);\n   *    textSize(10);\n   *    text('tap to triggerAttack', width/2, height/2);\n   *\n   *    env = new p5.Envelope();\n   *    env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n   *    env.setRange(1.0, 0.0);\n   *    triOsc = new p5.Oscillator('triangle');\n   *    triOsc.freq(220);\n   *\n   *    cnv.mousePressed(envAttack);\n   *  }\n   *\n   *  function envAttack()  {\n   *    background(0, 255, 255);\n   *    text('release to release', width/2, height/2);\n   *\n   *    // ensures audio is enabled. See also: `userStartAudio`\n   *    triOsc.start();\n   *\n   *    env.triggerAttack(triOsc);\n   *  }\n   *\n   *  function mouseReleased() {\n   *    background(220);\n   *    text('tap to triggerAttack', width/2, height/2);\n   *\n   *    env.triggerRelease(triOsc);\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Envelope.prototype.triggerRelease = function (unit, secondsFromNow) {\n    if (!this.wasTriggered) {\n      return;\n    }\n\n    var now = p5sound.audiocontext.currentTime;\n    var tFromNow = secondsFromNow || 0;\n    var t = now + tFromNow;\n\n    if (unit) {\n      if (this.connection !== unit) {\n        this.connect(unit);\n      }\n    } \n\n\n    var valToSet = this.control.getValueAtTime(t);\n\n    if (this.isExponential === true) {\n      this.control.exponentialRampToValueAtTime(this.checkExpInput(valToSet), t);\n    } else {\n      this.control.linearRampToValueAtTime(valToSet, t);\n    } \n\n\n    t += this.rTime;\n\n    if (this.isExponential === true) {\n      this.control.exponentialRampToValueAtTime(this.checkExpInput(this.rLevel), t);\n      valToSet = this.checkExpInput(this.control.getValueAtTime(t));\n      this.control.cancelScheduledValues(t);\n      this.control.exponentialRampToValueAtTime(valToSet, t);\n    } else {\n      this.control.linearRampToValueAtTime(this.rLevel, t);\n      valToSet = this.control.getValueAtTime(t);\n      this.control.cancelScheduledValues(t);\n      this.control.linearRampToValueAtTime(valToSet, t);\n    }\n\n    this.wasTriggered = false;\n  };\n  /**\n   *  Exponentially ramp to a value using the first two\n   *  values from <code><a href=\"#/p5.Envelope/setADSR\">setADSR(attackTime, decayTime)</a></code>\n   *  as <a href=\"https://en.wikipedia.org/wiki/RC_time_constant\">\n   *  time constants</a> for simple exponential ramps.\n   *  If the value is higher than current value, it uses attackTime,\n   *  while a decrease uses decayTime.\n   *\n   *  @method  ramp\n   *  @for p5.Envelope\n   *  @param  {Object} unit           p5.sound Object or Web Audio Param\n   *  @param  {Number} secondsFromNow When to trigger the ramp\n   *  @param  {Number} v              Target value\n   *  @param  {Number} [v2]           Second target value (optional)\n   *  @example\n   *  <div><code>\n   *  let env, osc, amp;\n   *\n   *  let attackTime = 0.001;\n   *  let decayTime = 0.2;\n   *  let attackLevel = 1;\n   *  let decayLevel = 0;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    fill(0,255,0);\n   *    noStroke();\n   *\n   *    env = new p5.Envelope();\n   *    env.setADSR(attackTime, decayTime);\n   *    osc = new p5.Oscillator();\n   *    osc.amp(env);\n   *    amp = new p5.Amplitude();\n   *\n   *    cnv.mousePressed(triggerRamp);\n   *  }\n   *\n   *  function triggerRamp() {\n   *    // ensures audio is enabled. See also: `userStartAudio`\n   *    osc.start();\n   *\n   *    env.ramp(osc, 0, attackLevel, decayLevel);\n   *  }\n   *\n   *  function draw() {\n   *    background(20);\n   *    text('tap to play', 10, 20);\n   *    let h = map(amp.getLevel(), 0, 0.4, 0, height);;\n   *    rect(0, height, width, -h);\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Envelope.prototype.ramp = function (unit, secondsFromNow, v1, v2) {\n    var now = p5sound.audiocontext.currentTime;\n    var tFromNow = secondsFromNow || 0;\n    var t = now + tFromNow;\n    var destination1 = this.checkExpInput(v1);\n    var destination2 = typeof v2 !== 'undefined' ? this.checkExpInput(v2) : undefined; \n\n    if (unit) {\n      if (this.connection !== unit) {\n        this.connect(unit);\n      }\n    } \n\n\n    var currentVal = this.checkExpInput(this.control.getValueAtTime(t)); \n\n    if (destination1 > currentVal) {\n      this.control.setTargetAtTime(destination1, t, this._rampAttackTC);\n      t += this._rampAttackTime;\n    } \n    else if (destination1 < currentVal) {\n        this.control.setTargetAtTime(destination1, t, this._rampDecayTC);\n        t += this._rampDecayTime;\n      } \n\n\n    if (destination2 === undefined) return; \n\n    if (destination2 > destination1) {\n      this.control.setTargetAtTime(destination2, t, this._rampAttackTC);\n    } \n    else if (destination2 < destination1) {\n        this.control.setTargetAtTime(destination2, t, this._rampDecayTC);\n      }\n  };\n\n  p5.Envelope.prototype.connect = function (unit) {\n    this.connection = unit; \n\n    if (unit instanceof p5.Oscillator || unit instanceof p5.SoundFile || unit instanceof p5.AudioIn || unit instanceof p5.Reverb || unit instanceof p5.Noise || unit instanceof p5.Filter || unit instanceof p5.Delay) {\n      unit = unit.output.gain;\n    }\n\n    if (unit instanceof AudioParam) {\n      unit.setValueAtTime(0, p5sound.audiocontext.currentTime);\n    }\n\n    if (unit instanceof p5.Signal) {\n      unit.setValue(0);\n    }\n\n    this.output.connect(unit);\n  };\n\n  p5.Envelope.prototype.disconnect = function () {\n    if (this.output) {\n      this.output.disconnect();\n    }\n  }; \n\n  /**\n   *  Add a value to the p5.Oscillator's output amplitude,\n   *  and return the oscillator. Calling this method\n   *  again will override the initial add() with new values.\n   *\n   *  @method  add\n   *  @for p5.Envelope\n   *  @param {Number} number Constant number to add\n   *  @return {p5.Envelope} Envelope Returns this envelope\n   *                                     with scaled output\n   */\n\n\n  p5.Envelope.prototype.add = function (num) {\n    var add = new Add(num);\n    var thisChain = this.mathOps.length;\n    var nextChain = this.output;\n    return p5.prototype._mathChain(this, add, thisChain, nextChain, Add);\n  };\n  /**\n   *  Multiply the p5.Envelope's output amplitude\n   *  by a fixed value. Calling this method\n   *  again will override the initial mult() with new values.\n   *\n   *  @method  mult\n   *  @for p5.Envelope\n   *  @param {Number} number Constant number to multiply\n   *  @return {p5.Envelope} Envelope Returns this envelope\n   *                                     with scaled output\n   */\n\n\n  p5.Envelope.prototype.mult = function (num) {\n    var mult = new Mult(num);\n    var thisChain = this.mathOps.length;\n    var nextChain = this.output;\n    return p5.prototype._mathChain(this, mult, thisChain, nextChain, Mult);\n  };\n  /**\n   *  Scale this envelope's amplitude values to a given\n   *  range, and return the envelope. Calling this method\n   *  again will override the initial scale() with new values.\n   *\n   *  @method  scale\n   *  @for p5.Envelope\n   *  @param  {Number} inMin  input range minumum\n   *  @param  {Number} inMax  input range maximum\n   *  @param  {Number} outMin input range minumum\n   *  @param  {Number} outMax input range maximum\n   *  @return {p5.Envelope} Envelope Returns this envelope\n   *                                     with scaled output\n   */\n\n\n  p5.Envelope.prototype.scale = function (inMin, inMax, outMin, outMax) {\n    var scale = new Scale(inMin, inMax, outMin, outMax);\n    var thisChain = this.mathOps.length;\n    var nextChain = this.output;\n    return p5.prototype._mathChain(this, scale, thisChain, nextChain, Scale);\n  }; \n\n\n  p5.Envelope.prototype.dispose = function () {\n    var index = p5sound.soundArray.indexOf(this);\n    p5sound.soundArray.splice(index, 1);\n    this.disconnect();\n\n    if (this.control) {\n      this.control.dispose();\n      this.control = null;\n    }\n\n    for (var i = 1; i < this.mathOps.length; i++) {\n      this.mathOps[i].dispose();\n    }\n  }; \n\n\n  p5.Env = function (t1, l1, t2, l2, t3, l3) {\n    console.warn('WARNING: p5.Env is now deprecated and may be removed in future versions. ' + 'Please use the new p5.Envelope instead.');\n    p5.Envelope.call(this, t1, l1, t2, l2, t3, l3);\n  };\n\n  p5.Env.prototype = Object.create(p5.Envelope.prototype);\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  __webpack_require__(23);\n  /**\n   *  Creates a Pulse object, an oscillator that implements\n   *  Pulse Width Modulation.\n   *  The pulse is created with two oscillators.\n   *  Accepts a parameter for frequency, and to set the\n   *  width between the pulses. See <a href=\"\n   *  http://p5js.org/reference/#/p5.Oscillator\">\n   *  <code>p5.Oscillator</code> for a full list of methods.\n   *\n   *  @class p5.Pulse\n   *  @extends p5.Oscillator\n   *  @constructor\n   *  @param {Number} [freq] Frequency in oscillations per second (Hz)\n   *  @param {Number} [w]    Width between the pulses (0 to 1.0,\n   *                         defaults to 0)\n   *  @example\n   *  <div><code>\n   *  let pulse;\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(startPulse);\n   *    background(220);\n   *\n   *    pulse = new p5.Pulse();\n   *    pulse.amp(0.5);\n   *    pulse.freq(220);\n   *  }\n   *  function startPulse() {\n   *    pulse.start();\n   *    pulse.amp(0.5, 0.02);\n   *  }\n   *  function mouseReleased() {\n   *    pulse.amp(0, 0.2);\n   *  }\n   *  function draw() {\n   *    background(220);\n   *    text('tap to play', 5, 20, width - 20);\n   *    let w = map(mouseX, 0, width, 0, 1);\n   *    w = constrain(w, 0, 1);\n   *    pulse.width(w);\n   *    text('pulse width: ' + w, 5, height - 20);\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Pulse = function (freq, w) {\n    p5.Oscillator.call(this, freq, 'sawtooth'); \n\n    this.w = w || 0; \n\n    this.osc2 = new p5.SawOsc(freq); \n\n    this.dNode = p5sound.audiocontext.createDelay(); \n\n    this.dcOffset = createDCOffset();\n    this.dcGain = p5sound.audiocontext.createGain();\n    this.dcOffset.connect(this.dcGain);\n    this.dcGain.connect(this.output); \n\n    this.f = freq || 440;\n    var mW = this.w / this.oscillator.frequency.value;\n    this.dNode.delayTime.value = mW;\n    this.dcGain.gain.value = 1.7 * (0.5 - this.w); \n\n    this.osc2.disconnect();\n    this.osc2.panner.disconnect();\n    this.osc2.amp(-1); \n\n    this.osc2.output.connect(this.dNode);\n    this.dNode.connect(this.output);\n    this.output.gain.value = 1;\n    this.output.connect(this.panner);\n  };\n\n  p5.Pulse.prototype = Object.create(p5.Oscillator.prototype);\n  /**\n   *  Set the width of a Pulse object (an oscillator that implements\n   *  Pulse Width Modulation).\n   *\n   *  @method  width\n   *  @param {Number} [width]    Width between the pulses (0 to 1.0,\n   *                         defaults to 0)\n   */\n\n  p5.Pulse.prototype.width = function (w) {\n    if (typeof w === 'number') {\n      if (w <= 1.0 && w >= 0.0) {\n        this.w = w; \n\n        var mW = this.w / this.oscillator.frequency.value;\n        this.dNode.delayTime.value = mW;\n      }\n\n      this.dcGain.gain.value = 1.7 * (0.5 - this.w);\n    } else {\n      w.connect(this.dNode.delayTime);\n      var sig = new p5.SignalAdd(-0.5);\n      sig.setInput(w);\n      sig = sig.mult(-1);\n      sig = sig.mult(1.7);\n      sig.connect(this.dcGain.gain);\n    }\n  };\n\n  p5.Pulse.prototype.start = function (f, time) {\n    var now = p5sound.audiocontext.currentTime;\n    var t = time || 0;\n\n    if (!this.started) {\n      var freq = f || this.f;\n      var type = this.oscillator.type;\n      this.oscillator = p5sound.audiocontext.createOscillator();\n      this.oscillator.frequency.setValueAtTime(freq, now);\n      this.oscillator.type = type;\n      this.oscillator.connect(this.output);\n      this.oscillator.start(t + now); \n\n      this.osc2.oscillator = p5sound.audiocontext.createOscillator();\n      this.osc2.oscillator.frequency.setValueAtTime(freq, t + now);\n      this.osc2.oscillator.type = type;\n      this.osc2.oscillator.connect(this.osc2.output);\n      this.osc2.start(t + now);\n      this.freqNode = [this.oscillator.frequency, this.osc2.oscillator.frequency]; \n\n      this.dcOffset = createDCOffset();\n      this.dcOffset.connect(this.dcGain);\n      this.dcOffset.start(t + now); \n\n      if (this.mods !== undefined && this.mods.frequency !== undefined) {\n        this.mods.frequency.connect(this.freqNode[0]);\n        this.mods.frequency.connect(this.freqNode[1]);\n      }\n\n      this.started = true;\n      this.osc2.started = true;\n    }\n  };\n\n  p5.Pulse.prototype.stop = function (time) {\n    if (this.started) {\n      var t = time || 0;\n      var now = p5sound.audiocontext.currentTime;\n      this.oscillator.stop(t + now);\n\n      if (this.osc2.oscillator) {\n        this.osc2.oscillator.stop(t + now);\n      }\n\n      this.dcOffset.stop(t + now);\n      this.started = false;\n      this.osc2.started = false;\n    }\n  };\n\n  p5.Pulse.prototype.freq = function (val, rampTime, tFromNow) {\n    if (typeof val === 'number') {\n      this.f = val;\n      var now = p5sound.audiocontext.currentTime;\n      var rampTime = rampTime || 0;\n      var tFromNow = tFromNow || 0;\n      var currentFreq = this.oscillator.frequency.value;\n      this.oscillator.frequency.cancelScheduledValues(now);\n      this.oscillator.frequency.setValueAtTime(currentFreq, now + tFromNow);\n      this.oscillator.frequency.exponentialRampToValueAtTime(val, tFromNow + rampTime + now);\n      this.osc2.oscillator.frequency.cancelScheduledValues(now);\n      this.osc2.oscillator.frequency.setValueAtTime(currentFreq, now + tFromNow);\n      this.osc2.oscillator.frequency.exponentialRampToValueAtTime(val, tFromNow + rampTime + now);\n\n      if (this.freqMod) {\n        this.freqMod.output.disconnect();\n        this.freqMod = null;\n      }\n    } else if (val.output) {\n      val.output.disconnect();\n      val.output.connect(this.oscillator.frequency);\n      val.output.connect(this.osc2.oscillator.frequency);\n      this.freqMod = val;\n    }\n  }; \n\n\n  function createDCOffset() {\n    var ac = p5sound.audiocontext;\n    var buffer = ac.createBuffer(1, 2048, ac.sampleRate);\n    var data = buffer.getChannelData(0);\n\n    for (var i = 0; i < 2048; i++) {\n      data[i] = 1.0;\n    }\n\n    var bufferSource = ac.createBufferSource();\n    bufferSource.buffer = buffer;\n    bufferSource.loop = true;\n    return bufferSource;\n  }\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n  /**\n   *  Noise is a type of oscillator that generates a buffer with random values.\n   *\n   *  @class p5.Noise\n   *  @extends p5.Oscillator\n   *  @constructor\n   *  @param {String} type Type of noise can be 'white' (default),\n   *                       'brown' or 'pink'.\n   */\n\n\n  p5.Noise = function (type) {\n    var assignType;\n    p5.Oscillator.call(this);\n    delete this.f;\n    delete this.freq;\n    delete this.oscillator;\n\n    if (type === 'brown') {\n      assignType = _brownNoise;\n    } else if (type === 'pink') {\n      assignType = _pinkNoise;\n    } else {\n      assignType = _whiteNoise;\n    }\n\n    this.buffer = assignType;\n  };\n\n  p5.Noise.prototype = Object.create(p5.Oscillator.prototype); \n\n  var _whiteNoise = function () {\n    var bufferSize = 2 * p5sound.audiocontext.sampleRate;\n    var whiteBuffer = p5sound.audiocontext.createBuffer(1, bufferSize, p5sound.audiocontext.sampleRate);\n    var noiseData = whiteBuffer.getChannelData(0);\n\n    for (var i = 0; i < bufferSize; i++) {\n      noiseData[i] = Math.random() * 2 - 1;\n    }\n\n    whiteBuffer.type = 'white';\n    return whiteBuffer;\n  }();\n\n  var _pinkNoise = function () {\n    var bufferSize = 2 * p5sound.audiocontext.sampleRate;\n    var pinkBuffer = p5sound.audiocontext.createBuffer(1, bufferSize, p5sound.audiocontext.sampleRate);\n    var noiseData = pinkBuffer.getChannelData(0);\n    var b0, b1, b2, b3, b4, b5, b6;\n    b0 = b1 = b2 = b3 = b4 = b5 = b6 = 0.0;\n\n    for (var i = 0; i < bufferSize; i++) {\n      var white = Math.random() * 2 - 1;\n      b0 = 0.99886 * b0 + white * 0.0555179;\n      b1 = 0.99332 * b1 + white * 0.0750759;\n      b2 = 0.96900 * b2 + white * 0.1538520;\n      b3 = 0.86650 * b3 + white * 0.3104856;\n      b4 = 0.55000 * b4 + white * 0.5329522;\n      b5 = -0.7616 * b5 - white * 0.0168980;\n      noiseData[i] = b0 + b1 + b2 + b3 + b4 + b5 + b6 + white * 0.5362;\n      noiseData[i] *= 0.11; \n\n      b6 = white * 0.115926;\n    }\n\n    pinkBuffer.type = 'pink';\n    return pinkBuffer;\n  }();\n\n  var _brownNoise = function () {\n    var bufferSize = 2 * p5sound.audiocontext.sampleRate;\n    var brownBuffer = p5sound.audiocontext.createBuffer(1, bufferSize, p5sound.audiocontext.sampleRate);\n    var noiseData = brownBuffer.getChannelData(0);\n    var lastOut = 0.0;\n\n    for (var i = 0; i < bufferSize; i++) {\n      var white = Math.random() * 2 - 1;\n      noiseData[i] = (lastOut + 0.02 * white) / 1.02;\n      lastOut = noiseData[i];\n      noiseData[i] *= 3.5;\n    }\n\n    brownBuffer.type = 'brown';\n    return brownBuffer;\n  }();\n  /**\n   *  Set type of noise to 'white', 'pink' or 'brown'.\n   *  White is the default.\n   *\n   *  @method setType\n   *  @param {String} [type] 'white', 'pink' or 'brown'\n   */\n\n\n  p5.Noise.prototype.setType = function (type) {\n    switch (type) {\n      case 'white':\n        this.buffer = _whiteNoise;\n        break;\n\n      case 'pink':\n        this.buffer = _pinkNoise;\n        break;\n\n      case 'brown':\n        this.buffer = _brownNoise;\n        break;\n\n      default:\n        this.buffer = _whiteNoise;\n    }\n\n    if (this.started) {\n      var now = p5sound.audiocontext.currentTime;\n      this.stop(now);\n      this.start(now + .01);\n    }\n  };\n\n  p5.Noise.prototype.getType = function () {\n    return this.buffer.type;\n  };\n\n  p5.Noise.prototype.start = function () {\n    if (this.started) {\n      this.stop();\n    }\n\n    this.noise = p5sound.audiocontext.createBufferSource();\n    this.noise.buffer = this.buffer;\n    this.noise.loop = true;\n    this.noise.connect(this.output);\n    var now = p5sound.audiocontext.currentTime;\n    this.noise.start(now);\n    this.started = true;\n  };\n\n  p5.Noise.prototype.stop = function () {\n    var now = p5sound.audiocontext.currentTime;\n\n    if (this.noise) {\n      this.noise.stop(now);\n      this.started = false;\n    }\n  };\n\n  p5.Noise.prototype.dispose = function () {\n    var now = p5sound.audiocontext.currentTime; \n\n    var index = p5sound.soundArray.indexOf(this);\n    p5sound.soundArray.splice(index, 1);\n\n    if (this.noise) {\n      this.noise.disconnect();\n      this.stop(now);\n    }\n\n    if (this.output) {\n      this.output.disconnect();\n    }\n\n    if (this.panner) {\n      this.panner.disconnect();\n    }\n\n    this.output = null;\n    this.panner = null;\n    this.buffer = null;\n    this.noise = null;\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1); \n\n\n  p5sound.inputSources = [];\n  /**\n   *  <p>Get audio from an input, i.e. your computer's microphone.</p>\n   *\n   *  <p>Turn the mic on/off with the start() and stop() methods. When the mic\n   *  is on, its volume can be measured with getLevel or by connecting an\n   *  FFT object.</p>\n   *\n   *  <p>If you want to hear the AudioIn, use the .connect() method.\n   *  AudioIn does not connect to p5.sound output by default to prevent\n   *  feedback.</p>\n   *\n   *  <p><em>Note: This uses the <a href=\"http://caniuse.com/stream\">getUserMedia/\n   *  Stream</a> API, which is not supported by certain browsers. Access in Chrome browser\n   *  is limited to localhost and https, but access over http may be limited.</em></p>\n   *\n   *  @class p5.AudioIn\n   *  @constructor\n   *  @param {Function} [errorCallback] A function to call if there is an error\n   *                                    accessing the AudioIn. For example,\n   *                                    Safari and iOS devices do not\n   *                                    currently allow microphone access.\n   *  @example\n   *  <div><code>\n   *  let mic;\n   *\n   *   function setup(){\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(userStartAudio);\n   *    textAlign(CENTER);\n   *    mic = new p5.AudioIn();\n   *    mic.start();\n   *  }\n   *\n   *  function draw(){\n   *    background(0);\n   *    fill(255);\n   *    text('tap to start', width/2, 20);\n   *\n   *    micLevel = mic.getLevel();\n   *    let y = height - micLevel * height;\n   *    ellipse(width/2, y, 10, 10);\n   *  }\n   *  </code></div>\n   */\n\n  p5.AudioIn = function (errorCallback) {\n\n    /**\n     * @property {GainNode} input\n     */\n    this.input = p5sound.audiocontext.createGain();\n    /**\n     * @property {GainNode} output\n     */\n\n    this.output = p5sound.audiocontext.createGain();\n    /**\n     * @property {MediaStream|null} stream\n     */\n\n    this.stream = null;\n    /**\n     * @property {MediaStreamAudioSourceNode|null} mediaStream\n     */\n\n    this.mediaStream = null;\n    /**\n     * @property {Number|null} currentSource\n     */\n\n    this.currentSource = null;\n    /**\n     *  Client must allow browser to access their microphone / audioin source.\n     *  Default: false. Will become true when the client enables access.\n     *\n     *  @property {Boolean} enabled\n     */\n\n    this.enabled = false;\n    /**\n     * Input amplitude, connect to it by default but not to master out\n     *\n     *  @property {p5.Amplitude} amplitude\n     */\n\n    this.amplitude = new p5.Amplitude();\n    this.output.connect(this.amplitude.input);\n\n    if (!window.MediaStreamTrack || !window.navigator.mediaDevices || !window.navigator.mediaDevices.getUserMedia) {\n      errorCallback ? errorCallback() : window.alert('This browser does not support MediaStreamTrack and mediaDevices');\n    } \n\n\n    p5sound.soundArray.push(this);\n  };\n  /**\n   *  Start processing audio input. This enables the use of other\n   *  AudioIn methods like getLevel(). Note that by default, AudioIn\n   *  is not connected to p5.sound's output. So you won't hear\n   *  anything unless you use the connect() method.<br/>\n   *\n   *  Certain browsers limit access to the user's microphone. For example,\n   *  Chrome only allows access from localhost and over https. For this reason,\n   *  you may want to include an errorCallback—a function that is called in case\n   *  the browser won't provide mic access.\n   *\n   *  @method start\n   *  @for p5.AudioIn\n   *  @param {Function} [successCallback] Name of a function to call on\n   *                                    success.\n   *  @param {Function} [errorCallback] Name of a function to call if\n   *                                    there was an error. For example,\n   *                                    some browsers do not support\n   *                                    getUserMedia.\n   */\n\n\n  p5.AudioIn.prototype.start = function (successCallback, errorCallback) {\n    var self = this;\n\n    if (this.stream) {\n      this.stop();\n    } \n\n\n    var audioSource = p5sound.inputSources[self.currentSource];\n    var constraints = {\n      audio: {\n        sampleRate: p5sound.audiocontext.sampleRate,\n        echoCancellation: false\n      }\n    }; \n\n    if (p5sound.inputSources[this.currentSource]) {\n      constraints.audio.deviceId = audioSource.deviceId;\n    }\n\n    window.navigator.mediaDevices.getUserMedia(constraints).then(function (stream) {\n      self.stream = stream;\n      self.enabled = true; \n\n      self.mediaStream = p5sound.audiocontext.createMediaStreamSource(stream);\n      self.mediaStream.connect(self.output); \n\n      self.amplitude.setInput(self.output);\n      if (successCallback) successCallback();\n    })[\"catch\"](function (err) {\n      if (errorCallback) errorCallback(err);else console.error(err);\n    });\n  };\n  /**\n   *  Turn the AudioIn off. If the AudioIn is stopped, it cannot getLevel().\n   *  If re-starting, the user may be prompted for permission access.\n   *\n   *  @method stop\n   *  @for p5.AudioIn\n   */\n\n\n  p5.AudioIn.prototype.stop = function () {\n    if (this.stream) {\n      this.stream.getTracks().forEach(function (track) {\n        track.stop();\n      });\n      this.mediaStream.disconnect();\n      delete this.mediaStream;\n      delete this.stream;\n    }\n  };\n  /**\n   *  Connect to an audio unit. If no parameter is provided, will\n   *  connect to the master output (i.e. your speakers).<br/>\n   *\n   *  @method  connect\n   *  @for p5.AudioIn\n   *  @param  {Object} [unit] An object that accepts audio input,\n   *                          such as an FFT\n   */\n\n\n  p5.AudioIn.prototype.connect = function (unit) {\n    if (unit) {\n      if (unit.hasOwnProperty('input')) {\n        this.output.connect(unit.input);\n      } else if (unit.hasOwnProperty('analyser')) {\n        this.output.connect(unit.analyser);\n      } else {\n        this.output.connect(unit);\n      }\n    } else {\n      this.output.connect(p5sound.input);\n    }\n  };\n  /**\n   *  Disconnect the AudioIn from all audio units. For example, if\n   *  connect() had been called, disconnect() will stop sending\n   *  signal to your speakers.<br/>\n   *\n   *  @method  disconnect\n   *  @for p5.AudioIn\n   */\n\n\n  p5.AudioIn.prototype.disconnect = function () {\n    if (this.output) {\n      this.output.disconnect(); \n\n      this.output.connect(this.amplitude.input);\n    }\n  };\n  /**\n   *  Read the Amplitude (volume level) of an AudioIn. The AudioIn\n   *  class contains its own instance of the Amplitude class to help\n   *  make it easy to get a microphone's volume level. Accepts an\n   *  optional smoothing value (0.0 < 1.0). <em>NOTE: AudioIn must\n   *  .start() before using .getLevel().</em><br/>\n   *\n   *  @method  getLevel\n   *  @for p5.AudioIn\n   *  @param  {Number} [smoothing] Smoothing is 0.0 by default.\n   *                               Smooths values based on previous values.\n   *  @return {Number}           Volume level (between 0.0 and 1.0)\n   */\n\n\n  p5.AudioIn.prototype.getLevel = function (smoothing) {\n    if (smoothing) {\n      this.amplitude.smoothing = smoothing;\n    }\n\n    return this.amplitude.getLevel();\n  };\n  /**\n   *  Set amplitude (volume) of a mic input between 0 and 1.0. <br/>\n   *\n   *  @method  amp\n   *  @for p5.AudioIn\n   *  @param  {Number} vol between 0 and 1.0\n   *  @param {Number} [time] ramp time (optional)\n   */\n\n\n  p5.AudioIn.prototype.amp = function (vol, t) {\n    if (t) {\n      var rampTime = t || 0;\n      var currentVol = this.output.gain.value;\n      this.output.gain.cancelScheduledValues(p5sound.audiocontext.currentTime);\n      this.output.gain.setValueAtTime(currentVol, p5sound.audiocontext.currentTime);\n      this.output.gain.linearRampToValueAtTime(vol, rampTime + p5sound.audiocontext.currentTime);\n    } else {\n      this.output.gain.cancelScheduledValues(p5sound.audiocontext.currentTime);\n      this.output.gain.setValueAtTime(vol, p5sound.audiocontext.currentTime);\n    }\n  };\n  /**\n   * Returns a list of available input sources. This is a wrapper\n   * for <a title=\"MediaDevices.enumerateDevices() - Web APIs | MDN\" target=\"_blank\" href=\n   *  \"https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices\"\n   *  > and it returns a Promise.\n   *\n   * @method  getSources\n   * @for p5.AudioIn\n   * @param  {Function} [successCallback] This callback function handles the sources when they\n   *                                      have been enumerated. The callback function\n   *                                      receives the deviceList array as its only argument\n   * @param  {Function} [errorCallback] This optional callback receives the error\n   *                                    message as its argument.\n   * @returns {Promise} Returns a Promise that can be used in place of the callbacks, similar\n   *                            to the enumerateDevices() method\n   * @example\n   *  <div><code>\n   *  let audioIn;\n   *\n   *  function setup(){\n   *    text('getting sources...', 0, 20);\n   *    audioIn = new p5.AudioIn();\n   *    audioIn.getSources(gotSources);\n   *  }\n   *\n   *  function gotSources(deviceList) {\n   *    if (deviceList.length > 0) {\n   *      //set the source to the first item in the deviceList array\n   *      audioIn.setSource(0);\n   *      let currentSource = deviceList[audioIn.currentSource];\n   *      text('set source to: ' + currentSource.deviceId, 5, 20, width);\n   *    }\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.AudioIn.prototype.getSources = function (onSuccess, onError) {\n    return new Promise(function (resolve, reject) {\n      window.navigator.mediaDevices.enumerateDevices().then(function (devices) {\n        p5sound.inputSources = devices.filter(function (device) {\n          return device.kind === 'audioinput';\n        });\n        resolve(p5sound.inputSources);\n\n        if (onSuccess) {\n          onSuccess(p5sound.inputSources);\n        }\n      })[\"catch\"](function (error) {\n        reject(error);\n\n        if (onError) {\n          onError(error);\n        } else {\n          console.error('This browser does not support MediaStreamTrack.getSources()');\n        }\n      });\n    });\n  };\n  /**\n   *  Set the input source. Accepts a number representing a\n   *  position in the array returned by getSources().\n   *  This is only available in browsers that support\n   *  <a title=\"MediaDevices.enumerateDevices() - Web APIs | MDN\" target=\"_blank\" href=\n   *  \"https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices\"\n   *  >navigator.mediaDevices.enumerateDevices()</a>.<br/>\n   *\n   *  @method setSource\n   *  @for p5.AudioIn\n   *  @param {number} num position of input source in the array\n   *  @example\n   *  <div><code>\n   *  let audioIn;\n   *\n   *  function setup(){\n   *    text('getting sources...', 0, 20);\n   *    audioIn = new p5.AudioIn();\n   *    audioIn.getSources(gotSources);\n   *  }\n   *\n   *  function gotSources(deviceList) {\n   *    if (deviceList.length > 0) {\n   *      //set the source to the first item in the deviceList array\n   *      audioIn.setSource(0);\n   *      let currentSource = deviceList[audioIn.currentSource];\n   *      text('set source to: ' + currentSource.deviceId, 5, 20, width);\n   *    }\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.AudioIn.prototype.setSource = function (num) {\n    if (p5sound.inputSources.length > 0 && num < p5sound.inputSources.length) {\n      this.currentSource = num;\n      console.log('set source to ', p5sound.inputSources[this.currentSource]);\n    } else {\n      console.log('unable to set input source');\n    } \n\n\n    if (this.stream && this.stream.active) {\n      this.start();\n    }\n  }; \n\n\n  p5.AudioIn.prototype.dispose = function () {\n    var index = p5sound.soundArray.indexOf(this);\n    p5sound.soundArray.splice(index, 1);\n    this.stop();\n\n    if (this.output) {\n      this.output.disconnect();\n    }\n\n    if (this.amplitude) {\n      this.amplitude.disconnect();\n    }\n\n    delete this.amplitude;\n    delete this.output;\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(2),__webpack_require__(52),__webpack_require__(58),__webpack_require__(9)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(i){\"use strict\";return i.CrossFade=function(e){this.createInsOuts(2,1),this.a=this.input[0]=new i.Gain,this.b=this.input[1]=new i.Gain,this.fade=new i.Signal(this.defaultArg(e,.5),i.Type.NormalRange),this._equalPowerA=new i.EqualPowerGain,this._equalPowerB=new i.EqualPowerGain,this._invert=new i.Expr(\"1 - $0\"),this.a.connect(this.output),this.b.connect(this.output),this.fade.chain(this._equalPowerB,this.b.gain),this.fade.chain(this._invert,this._equalPowerA,this.a.gain),this._readOnly(\"fade\")},i.extend(i.CrossFade),i.CrossFade.prototype.dispose=function(){return i.prototype.dispose.call(this),this._writable(\"fade\"),this._equalPowerA.dispose(),this._equalPowerA=null,this._equalPowerB.dispose(),this._equalPowerB=null,this.fade.dispose(),this.fade=null,this._invert.dispose(),this._invert=null,this.a.dispose(),this.a=null,this.b.dispose(),this.b=null,this},i.CrossFade}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(7),__webpack_require__(16),__webpack_require__(3),__webpack_require__(53),__webpack_require__(26),__webpack_require__(54),__webpack_require__(25),__webpack_require__(55),__webpack_require__(56),__webpack_require__(57)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(p){\"use strict\";function r(e,n,r){var t=new e;return r._eval(n[0]).connect(t,0,0),r._eval(n[1]).connect(t,0,1),t}function t(e,n,r){var t=new e;return r._eval(n[0]).connect(t,0,0),t}function o(e){return e?parseFloat(e):void 0}function i(e){return e&&e.args?parseFloat(e.args):void 0}return p.Expr=function(){var n=this._replacements(Array.prototype.slice.call(arguments)),e=this._parseInputs(n);this._nodes=[],this.input=new Array(e);for(var r=0;r<e;r++)this.input[r]=this.context.createGain();var t,o=this._parseTree(n);try{t=this._eval(o)}catch(e){throw this._disposeNodes(),new Error(\"Tone.Expr: Could evaluate expression: \"+n)}this.output=t},p.extend(p.Expr,p.SignalBase),p.Expr._Expressions={value:{signal:{regexp:/^\\d+\\.\\d+|^\\d+/,method:function(e){return new p.Signal(o(e))}},input:{regexp:/^\\$\\d/,method:function(e,n){return n.input[o(e.substr(1))]}}},glue:{\"(\":{regexp:/^\\(/},\")\":{regexp:/^\\)/},\",\":{regexp:/^,/}},func:{abs:{regexp:/^abs/,method:t.bind(this,p.Abs)},mod:{regexp:/^mod/,method:function(e,n){var r=i(e[1]),t=new p.Modulo(r);return n._eval(e[0]).connect(t),t}},pow:{regexp:/^pow/,method:function(e,n){var r=i(e[1]),t=new p.Pow(r);return n._eval(e[0]).connect(t),t}},a2g:{regexp:/^a2g/,method:function(e,n){var r=new p.AudioToGain;return n._eval(e[0]).connect(r),r}}},binary:{\"+\":{regexp:/^\\+/,precedence:1,method:r.bind(this,p.Add)},\"-\":{regexp:/^\\-/,precedence:1,method:function(e,n){return 1===e.length?t(p.Negate,e,n):r(p.Subtract,e,n)}},\"*\":{regexp:/^\\*/,precedence:0,method:r.bind(this,p.Multiply)}},unary:{\"-\":{regexp:/^\\-/,method:t.bind(this,p.Negate)},\"!\":{regexp:/^\\!/,method:t.bind(this,p.NOT)}}},p.Expr.prototype._parseInputs=function(e){var n=e.match(/\\$\\d/g),r=0;if(null!==n)for(var t=0;t<n.length;t++){var o=parseInt(n[t].substr(1))+1;r=Math.max(r,o)}return r},p.Expr.prototype._replacements=function(e){for(var n=e.shift(),r=0;r<e.length;r++)n=n.replace(/\\%/i,e[r]);return n},p.Expr.prototype._tokenize=function(e){for(var n=-1,r=[];0<e.length;){var t=o(e=e.trim());r.push(t),e=e.substr(t.value.length)}function o(e){for(var n in p.Expr._Expressions){var r=p.Expr._Expressions[n];for(var t in r){var o=r[t],i=o.regexp,a=e.match(i);if(null!==a)return{type:n,value:a[0],method:o.method}}}throw new SyntaxError(\"Tone.Expr: Unexpected token \"+e)}return{next:function(){return r[++n]},peek:function(){return r[n+1]}}},p.Expr.prototype._parseTree=function(e){var t=this._tokenize(e),a=this.isUndef.bind(this);function r(e,n){return!a(e)&&\"glue\"===e.type&&e.value===n}function o(e,n,r){var t=p.Expr._Expressions[n];if(!a(e))for(var o in t){var i=t[o];if(i.regexp.test(e.value)){if(a(r))return!0;if(i.precedence===r)return!0}}return!1}function i(e){var n;a(e)&&(e=5),n=e<0?function e(){var n,r;n=t.peek();if(o(n,\"unary\"))return n=t.next(),r=e(),{operator:n.value,method:n.method,args:[r]};return s()}():i(e-1);for(var r=t.peek();o(r,\"binary\",e);)n={operator:(r=t.next()).value,method:r.method,args:[n,i(e-1)]},r=t.peek();return n}function s(){var e,n;if(e=t.peek(),a(e))throw new SyntaxError(\"Tone.Expr: Unexpected termination of expression\");if(\"func\"===e.type)return function(e){var n=[];if(!r(t.next(),\"(\"))throw new SyntaxError('Tone.Expr: Expected ( in a function call \"'+e.value+'\"');r(t.peek(),\")\")||(n=function(){var e,n=[];for(;e=i(),!a(e)&&(n.push(e),r(t.peek(),\",\"));)t.next();return n}());if(r(t.next(),\")\"))return{method:e.method,args:n,name:name};throw new SyntaxError('Tone.Expr: Expected ) in a function call \"'+e.value+'\"')}(e=t.next());if(\"value\"===e.type)return{method:(e=t.next()).method,args:e.value};if(r(e,\"(\")){if(t.next(),n=i(),!r(e=t.next(),\")\"))throw new SyntaxError(\"Expected )\");return n}throw new SyntaxError(\"Tone.Expr: Parse error, cannot process token \"+e.value)}return i()},p.Expr.prototype._eval=function(e){if(!this.isUndef(e)){var n=e.method(e.args,this);return this._nodes.push(n),n}},p.Expr.prototype._disposeNodes=function(){for(var e=0;e<this._nodes.length;e++){var n=this._nodes[e];this.isFunction(n.dispose)?n.dispose():this.isFunction(n.disconnect)&&n.disconnect(),n=null,this._nodes[e]=null}this._nodes=null},p.Expr.prototype.dispose=function(){p.prototype.dispose.call(this),this._disposeNodes()},p.Expr}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(26),__webpack_require__(16),__webpack_require__(2)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(e){\"use strict\";return e.GreaterThan=function(t){this.createInsOuts(2,0),this._param=this.input[0]=new e.Subtract(t),this.input[1]=this._param.input[1],this._gtz=this.output=new e.GreaterThanZero,this._param.connect(this._gtz)},e.extend(e.GreaterThan,e.Signal),e.GreaterThan.prototype.dispose=function(){return e.prototype.dispose.call(this),this._param.dispose(),this._param=null,this._gtz.dispose(),this._gtz=null,this},e.GreaterThan}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(5),__webpack_require__(19)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(s){\"use strict\";return s.Abs=function(){this._abs=this.input=this.output=new s.WaveShaper(function(s){return 0===s?0:Math.abs(s)},127)},s.extend(s.Abs,s.SignalBase),s.Abs.prototype.dispose=function(){return s.prototype.dispose.call(this),this._abs.dispose(),this._abs=null,this},s.Abs}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(5),__webpack_require__(3),__webpack_require__(16)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(i){\"use strict\";return i.Modulo=function(t){this.createInsOuts(1,0),this._shaper=new i.WaveShaper(Math.pow(2,16)),this._multiply=new i.Multiply,this._subtract=this.output=new i.Subtract,this._modSignal=new i.Signal(t),this.input.fan(this._shaper,this._subtract),this._modSignal.connect(this._multiply,0,0),this._shaper.connect(this._multiply,0,1),this._multiply.connect(this._subtract,0,1),this._setWaveShaper(t)},i.extend(i.Modulo,i.SignalBase),i.Modulo.prototype._setWaveShaper=function(i){this._shaper.setMap(function(t){return Math.floor((t+1e-4)/i)})},Object.defineProperty(i.Modulo.prototype,\"value\",{get:function(){return this._modSignal.value},set:function(t){this._modSignal.value=t,this._setWaveShaper(t)}}),i.Modulo.prototype.dispose=function(){return i.prototype.dispose.call(this),this._shaper.dispose(),this._shaper=null,this._multiply.dispose(),this._multiply=null,this._subtract.dispose(),this._subtract=null,this._modSignal.dispose(),this._modSignal=null,this},i.Modulo}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(5)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(t){\"use strict\";return t.Pow=function(e){this._exp=this.defaultArg(e,1),this._expScaler=this.input=this.output=new t.WaveShaper(this._expFunc(this._exp),8192)},t.extend(t.Pow,t.SignalBase),Object.defineProperty(t.Pow.prototype,\"value\",{get:function(){return this._exp},set:function(e){this._exp=e,this._expScaler.setMap(this._expFunc(this._exp))}}),t.Pow.prototype._expFunc=function(t){return function(e){return Math.pow(Math.abs(e),t)}},t.Pow.prototype.dispose=function(){return t.prototype.dispose.call(this),this._expScaler.dispose(),this._expScaler=null,this},t.Pow}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(5),__webpack_require__(2)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(n){\"use strict\";return n.AudioToGain=function(){this._norm=this.input=this.output=new n.WaveShaper(function(n){return(n+1)/2})},n.extend(n.AudioToGain,n.SignalBase),n.AudioToGain.prototype.dispose=function(){return n.prototype.dispose.call(this),this._norm.dispose(),this._norm=null,this},n.AudioToGain}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(5)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(e){\"use strict\";return e.EqualPowerGain=function(){this._eqPower=this.input=this.output=new e.WaveShaper(function(e){return Math.abs(e)<.001?0:this.equalPowerScale(e)}.bind(this),4096)},e.extend(e.EqualPowerGain,e.SignalBase),e.EqualPowerGain.prototype.dispose=function(){return e.prototype.dispose.call(this),this._eqPower.dispose(),this._eqPower=null,this},e.EqualPowerGain}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var Effect = __webpack_require__(4);\n\n  var EQFilter = __webpack_require__(60);\n  /**\n   * p5.EQ is an audio effect that performs the function of a multiband\n   * audio equalizer. Equalization is used to adjust the balance of\n   * frequency compoenents of an audio signal. This process is commonly used\n   * in sound production and recording to change the waveform before it reaches\n   * a sound output device. EQ can also be used as an audio effect to create\n   * interesting distortions by filtering out parts of the spectrum. p5.EQ is\n   * built using a chain of Web Audio Biquad Filter Nodes and can be\n   * instantiated with 3 or 8 bands. Bands can be added or removed from\n   * the EQ by directly modifying p5.EQ.bands (the array that stores filters).\n   *\n   * This class extends <a href = \"/reference/#/p5.Effect\">p5.Effect</a>.\n   * Methods <a href = \"/reference/#/p5.Effect/amp\">amp()</a>, <a href = \"/reference/#/p5.Effect/chain\">chain()</a>,\n   * <a href = \"/reference/#/p5.Effect/drywet\">drywet()</a>, <a href = \"/reference/#/p5.Effect/connect\">connect()</a>, and\n   * <a href = \"/reference/#/p5.Effect/disconnect\">disconnect()</a> are available.\n   *\n   * @class p5.EQ\n   * @constructor\n   * @extends p5.Effect\n   * @param {Number} [_eqsize] Constructor will accept 3 or 8, defaults to 3\n   * @return {Object} p5.EQ object\n   *\n   * @example\n   * <div><code>\n   * let eq, soundFile\n   * let eqBandIndex = 0;\n   * let eqBandNames = ['lows', 'mids', 'highs'];\n   *\n   * function preload() {\n   *   soundFormats('mp3', 'ogg');\n   *   soundFile = loadSound('assets/beat');\n   * }\n   *\n   * function setup() {\n   *   let cnv = createCanvas(100, 100);\n   *   cnv.mousePressed(toggleSound);\n   *\n   *   eq = new p5.EQ(eqBandNames.length);\n   *   soundFile.disconnect();\n   *   eq.process(soundFile);\n   * }\n   *\n   * function draw() {\n   *   background(30);\n   *   noStroke();\n   *   fill(255);\n   *   textAlign(CENTER);\n   *   text('filtering ', 50, 25);\n   *\n   *   fill(255, 40, 255);\n   *   textSize(26);\n   *   text(eqBandNames[eqBandIndex], 50, 55);\n   *\n   *   fill(255);\n   *   textSize(9);\n   *\n   *   if (!soundFile.isPlaying()) {\n   *     text('tap to play', 50, 80);\n   *   } else {\n   *     text('tap to filter next band', 50, 80)\n   *   }\n   * }\n   *\n   * function toggleSound() {\n   *   if (!soundFile.isPlaying()) {\n   *     soundFile.play();\n   *   } else {\n   *     eqBandIndex = (eqBandIndex + 1) % eq.bands.length;\n   *   }\n   *\n   *   for (let i = 0; i < eq.bands.length; i++) {\n   *     eq.bands[i].gain(0);\n   *   }\n   *   // filter the band we want to filter\n   *   eq.bands[eqBandIndex].gain(-40);\n   * }\n   * </code></div>\n   */\n\n\n  p5.EQ = function (_eqsize) {\n    Effect.call(this); \n\n    _eqsize = _eqsize === 3 || _eqsize === 8 ? _eqsize : 3;\n    var factor;\n    _eqsize === 3 ? factor = Math.pow(2, 3) : factor = 2;\n    /**\n      *  The p5.EQ is built with abstracted p5.Filter objects.\n      *  To modify any bands, use methods of the <a\n      *  href=\"/reference/#/p5.Filter\" title=\"p5.Filter reference\">\n      *  p5.Filter</a> API, especially `gain` and `freq`.\n      *  Bands are stored in an array, with indices 0 - 3, or 0 - 7\n      *  @property {Array}  bands\n      *\n    */\n\n    this.bands = [];\n    var freq, res;\n\n    for (var i = 0; i < _eqsize; i++) {\n      if (i === _eqsize - 1) {\n        freq = 21000;\n        res = .01;\n      } else if (i === 0) {\n        freq = 100;\n        res = .1;\n      } else if (i === 1) {\n        freq = _eqsize === 3 ? 360 * factor : 360;\n        res = 1;\n      } else {\n        freq = this.bands[i - 1].freq() * factor;\n        res = 1;\n      }\n\n      this.bands[i] = this._newBand(freq, res);\n\n      if (i > 0) {\n        this.bands[i - 1].connect(this.bands[i].biquad);\n      } else {\n        this.input.connect(this.bands[i].biquad);\n      }\n    }\n\n    this.bands[_eqsize - 1].connect(this.output);\n  };\n\n  p5.EQ.prototype = Object.create(Effect.prototype);\n  /**\n   * Process an input by connecting it to the EQ\n   * @method  process\n   * @param  {Object} src Audio source\n   */\n\n  p5.EQ.prototype.process = function (src) {\n    src.connect(this.input);\n  }; \n  //   * Set the frequency and gain of each band in the EQ. This method should be\n  //   * called with 3 or 8 frequency and gain pairs, depending on the size of the EQ.\n  //   * ex. eq.set(freq0, gain0, freq1, gain1, freq2, gain2);\n  //   *\n  //   * @method  set\n  //   * @for p5.EQ\n  //   * @param {Number} [freq0] Frequency value for band with index 0\n  //   * @param {Number} [gain0] Gain value for band with index 0\n  //   * @param {Number} [freq1] Frequency value for band with index 1\n  //   * @param {Number} [gain1] Gain value for band with index 1\n  //   * @param {Number} [freq2] Frequency value for band with index 2\n  //   * @param {Number} [gain2] Gain value for band with index 2\n  //   * @param {Number} [freq3] Frequency value for band with index 3\n  //   * @param {Number} [gain3] Gain value for band with index 3\n  //   * @param {Number} [freq4] Frequency value for band with index 4\n  //   * @param {Number} [gain4] Gain value for band with index 4\n  //   * @param {Number} [freq5] Frequency value for band with index 5\n  //   * @param {Number} [gain5] Gain value for band with index 5\n  //   * @param {Number} [freq6] Frequency value for band with index 6\n  //   * @param {Number} [gain6] Gain value for band with index 6\n  //   * @param {Number} [freq7] Frequency value for band with index 7\n  //   * @param {Number} [gain7] Gain value for band with index 7\n  //   */\n\n\n  p5.EQ.prototype.set = function () {\n    if (arguments.length === this.bands.length * 2) {\n      for (var i = 0; i < arguments.length; i += 2) {\n        this.bands[i / 2].freq(arguments[i]);\n        this.bands[i / 2].gain(arguments[i + 1]);\n      }\n    } else {\n      console.error('Argument mismatch. .set() should be called with ' + this.bands.length * 2 + ' arguments. (one frequency and gain value pair for each band of the eq)');\n    }\n  };\n  /**\n   * Add a new band. Creates a p5.Filter and strips away everything but\n   * the raw biquad filter. This method returns an abstracted p5.Filter,\n   * which can be added to p5.EQ.bands, in order to create new EQ bands.\n   * @private\n   * @for p5.EQ\n   * @method  _newBand\n   * @param  {Number} freq\n   * @param  {Number} res\n   * @return {Object}      Abstracted Filter\n   */\n\n\n  p5.EQ.prototype._newBand = function (freq, res) {\n    return new EQFilter(freq, res);\n  };\n\n  p5.EQ.prototype.dispose = function () {\n    Effect.prototype.dispose.apply(this);\n\n    if (this.bands) {\n      while (this.bands.length > 0) {\n        delete this.bands.pop().dispose();\n      }\n\n      delete this.bands;\n    }\n  };\n\n  return p5.EQ;\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var Filter = __webpack_require__(15);\n\n  var p5sound = __webpack_require__(1);\n  /**\n   *  EQFilter extends p5.Filter with constraints\n   *  necessary for the p5.EQ\n   *\n   *  @private\n   */\n\n\n  var EQFilter = function EQFilter(freq, res) {\n    Filter.call(this, 'peaking');\n    this.disconnect();\n    this.set(freq, res);\n    this.biquad.gain.value = 0;\n    delete this.input;\n    delete this.output;\n    delete this._drywet;\n    delete this.wet;\n  };\n\n  EQFilter.prototype = Object.create(Filter.prototype);\n\n  EQFilter.prototype.amp = function () {\n    console.warn('`amp()` is not available for p5.EQ bands. Use `.gain()`');\n  };\n\n  EQFilter.prototype.drywet = function () {\n    console.warn('`drywet()` is not available for p5.EQ bands.');\n  };\n\n  EQFilter.prototype.connect = function (unit) {\n    var u = unit || p5.soundOut.input;\n\n    if (this.biquad) {\n      this.biquad.connect(u.input ? u.input : u);\n    } else {\n      this.output.connect(u.input ? u.input : u);\n    }\n  };\n\n  EQFilter.prototype.disconnect = function () {\n    if (this.biquad) {\n      this.biquad.disconnect();\n    }\n  };\n\n  EQFilter.prototype.dispose = function () {\n    var index = p5sound.soundArray.indexOf(this);\n    p5sound.soundArray.splice(index, 1);\n    this.disconnect();\n    delete this.biquad;\n  };\n\n  return EQFilter;\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var Effect = __webpack_require__(4);\n  /**\n   * Panner3D is based on the <a title=\"Web Audio Panner docs\"  href=\n   * \"https://developer.mozilla.org/en-US/docs/Web/API/PannerNode\">\n   * Web Audio Spatial Panner Node</a>.\n   * This panner is a spatial processing node that allows audio to be positioned\n   * and oriented in 3D space.\n   *\n   * The position is relative to an <a title=\"Web Audio Listener docs\" href=\n   * \"https://developer.mozilla.org/en-US/docs/Web/API/AudioListener\">\n   * Audio Context Listener</a>, which can be accessed\n   * by <code>p5.soundOut.audiocontext.listener</code>\n   *\n   *\n   * @class p5.Panner3D\n   * @constructor\n   */\n\n\n  p5.Panner3D = function () {\n    Effect.call(this);\n    /**\n     *  <a title=\"Web Audio Panner docs\"  href=\n     *  \"https://developer.mozilla.org/en-US/docs/Web/API/PannerNode\">\n     *  Web Audio Spatial Panner Node</a>\n     *\n     *  Properties include\n     *    -  <a title=\"w3 spec for Panning Model\"\n     *    href=\"https://www.w3.org/TR/webaudio/#idl-def-PanningModelType\"\n     *    >panningModel</a>: \"equal power\" or \"HRTF\"\n     *    -  <a title=\"w3 spec for Distance Model\"\n     *    href=\"https://www.w3.org/TR/webaudio/#idl-def-DistanceModelType\"\n     *    >distanceModel</a>: \"linear\", \"inverse\", or \"exponential\"\n     *\n     *  @property {AudioNode} panner\n     *\n     */\n\n    this.panner = this.ac.createPanner();\n    this.panner.panningModel = 'HRTF';\n    this.panner.distanceModel = 'linear';\n    this.panner.connect(this.output);\n    this.input.connect(this.panner);\n  };\n\n  p5.Panner3D.prototype = Object.create(Effect.prototype);\n  /**\n   * Connect an audio sorce\n   *\n   * @method  process\n   * @for p5.Panner3D\n   * @param  {Object} src Input source\n   */\n\n  p5.Panner3D.prototype.process = function (src) {\n    src.connect(this.input);\n  };\n  /**\n   * Set the X,Y,Z position of the Panner\n   * @method set\n   * @for p5.Panner3D\n   * @param  {Number} xVal\n   * @param  {Number} yVal\n   * @param  {Number} zVal\n   * @param  {Number} time\n   * @return {Array}      Updated x, y, z values as an array\n   */\n\n\n  p5.Panner3D.prototype.set = function (xVal, yVal, zVal, time) {\n    this.positionX(xVal, time);\n    this.positionY(yVal, time);\n    this.positionZ(zVal, time);\n    return [this.panner.positionX.value, this.panner.positionY.value, this.panner.positionZ.value];\n  };\n  /**\n   * Getter and setter methods for position coordinates\n   * @method positionX\n   * @for p5.Panner3D\n   * @return {Number}      updated coordinate value\n   */\n\n  /**\n   * Getter and setter methods for position coordinates\n   * @method positionY\n   * @for p5.Panner3D\n   * @return {Number}      updated coordinate value\n   */\n\n  /**\n   * Getter and setter methods for position coordinates\n   * @method positionZ\n   * @for p5.Panner3D\n   * @return {Number}      updated coordinate value\n   */\n\n\n  p5.Panner3D.prototype.positionX = function (xVal, time) {\n    var t = time || 0;\n\n    if (typeof xVal === 'number') {\n      this.panner.positionX.value = xVal;\n      this.panner.positionX.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.panner.positionX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t);\n    } else if (xVal) {\n      xVal.connect(this.panner.positionX);\n    }\n\n    return this.panner.positionX.value;\n  };\n\n  p5.Panner3D.prototype.positionY = function (yVal, time) {\n    var t = time || 0;\n\n    if (typeof yVal === 'number') {\n      this.panner.positionY.value = yVal;\n      this.panner.positionY.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.panner.positionY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t);\n    } else if (yVal) {\n      yVal.connect(this.panner.positionY);\n    }\n\n    return this.panner.positionY.value;\n  };\n\n  p5.Panner3D.prototype.positionZ = function (zVal, time) {\n    var t = time || 0;\n\n    if (typeof zVal === 'number') {\n      this.panner.positionZ.value = zVal;\n      this.panner.positionZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.panner.positionZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t);\n    } else if (zVal) {\n      zVal.connect(this.panner.positionZ);\n    }\n\n    return this.panner.positionZ.value;\n  };\n  /**\n   * Set the X,Y,Z position of the Panner\n   * @method  orient\n   * @for p5.Panner3D\n   * @param  {Number} xVal\n   * @param  {Number} yVal\n   * @param  {Number} zVal\n   * @param  {Number} time\n   * @return {Array}      Updated x, y, z values as an array\n   */\n\n\n  p5.Panner3D.prototype.orient = function (xVal, yVal, zVal, time) {\n    this.orientX(xVal, time);\n    this.orientY(yVal, time);\n    this.orientZ(zVal, time);\n    return [this.panner.orientationX.value, this.panner.orientationY.value, this.panner.orientationZ.value];\n  };\n  /**\n   * Getter and setter methods for orient coordinates\n   * @method orientX\n   * @for p5.Panner3D\n   * @return {Number}      updated coordinate value\n   */\n\n  /**\n   * Getter and setter methods for orient coordinates\n   * @method orientY\n   * @for p5.Panner3D\n   * @return {Number}      updated coordinate value\n   */\n\n  /**\n   * Getter and setter methods for orient coordinates\n   * @method orientZ\n   * @for p5.Panner3D\n   * @return {Number}      updated coordinate value\n   */\n\n\n  p5.Panner3D.prototype.orientX = function (xVal, time) {\n    var t = time || 0;\n\n    if (typeof xVal === 'number') {\n      this.panner.orientationX.value = xVal;\n      this.panner.orientationX.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.panner.orientationX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t);\n    } else if (xVal) {\n      xVal.connect(this.panner.orientationX);\n    }\n\n    return this.panner.orientationX.value;\n  };\n\n  p5.Panner3D.prototype.orientY = function (yVal, time) {\n    var t = time || 0;\n\n    if (typeof yVal === 'number') {\n      this.panner.orientationY.value = yVal;\n      this.panner.orientationY.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.panner.orientationY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t);\n    } else if (yVal) {\n      yVal.connect(this.panner.orientationY);\n    }\n\n    return this.panner.orientationY.value;\n  };\n\n  p5.Panner3D.prototype.orientZ = function (zVal, time) {\n    var t = time || 0;\n\n    if (typeof zVal === 'number') {\n      this.panner.orientationZ.value = zVal;\n      this.panner.orientationZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.panner.orientationZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t);\n    } else if (zVal) {\n      zVal.connect(this.panner.orientationZ);\n    }\n\n    return this.panner.orientationZ.value;\n  };\n  /**\n   * Set the rolloff factor and max distance\n   * @method  setFalloff\n   * @for p5.Panner3D\n   * @param {Number} [maxDistance]\n   * @param {Number} [rolloffFactor]\n   */\n\n\n  p5.Panner3D.prototype.setFalloff = function (maxDistance, rolloffFactor) {\n    this.maxDist(maxDistance);\n    this.rolloff(rolloffFactor);\n  };\n  /**\n   * Maxium distance between the source and the listener\n   * @method  maxDist\n   * @for p5.Panner3D\n   * @param  {Number} maxDistance\n   * @return {Number} updated value\n   */\n\n\n  p5.Panner3D.prototype.maxDist = function (maxDistance) {\n    if (typeof maxDistance === 'number') {\n      this.panner.maxDistance = maxDistance;\n    }\n\n    return this.panner.maxDistance;\n  };\n  /**\n   * How quickly the volume is reduced as the source moves away from the listener\n   * @method  rollof\n   * @for p5.Panner3D\n   * @param  {Number} rolloffFactor\n   * @return {Number} updated value\n   */\n\n\n  p5.Panner3D.prototype.rolloff = function (rolloffFactor) {\n    if (typeof rolloffFactor === 'number') {\n      this.panner.rolloffFactor = rolloffFactor;\n    }\n\n    return this.panner.rolloffFactor;\n  };\n\n  p5.Panner3D.dispose = function () {\n    Effect.prototype.dispose.apply(this);\n\n    if (this.panner) {\n      this.panner.disconnect();\n      delete this.panner;\n    }\n  };\n\n  return p5.Panner3D;\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var Effect = __webpack_require__(4); \n  //   * listener is a class that can construct both a Spatial Panner\n  //   * and a Spatial Listener. The panner is based on the \n  //   * Web Audio Spatial Panner Node\n  //   * https://www.w3.org/TR/webaudio/#the-listenernode-interface\n  //   * This panner is a spatial processing node that allows audio to be positioned\n  //   * and oriented in 3D space. \n  //   *\n  //   * The Listener modifies the properties of the Audio Context Listener. \n  //   * Both objects types use the same methods. The default is a spatial panner.\n  //   *\n  //   * <code>p5.Panner3D</code> - Constructs a Spatial Panner<br/>\n  //   * <code>p5.Listener3D</code> - Constructs a Spatial Listener<br/>\n  //   *\n  //   * @class listener\n  //   * @constructor\n  //   * @return {Object} p5.Listener3D Object\n  //   *\n  //   * @param {Web Audio Node} listener Web Audio Spatial Panning Node\n  //   * @param {AudioParam} listener.panningModel \"equal power\" or \"HRTF\"\n  //   * @param {AudioParam} listener.distanceModel \"linear\", \"inverse\", or \"exponential\"\n  //   * @param {String} [type] [Specify construction of a spatial panner or listener]\n  //   */\n\n\n  p5.Listener3D = function (type) {\n    this.ac = p5sound.audiocontext;\n    this.listener = this.ac.listener;\n  }; \n  //   * Connect an audio sorce\n  //   * @param  {Object} src Input source\n  //   */\n\n\n  p5.Listener3D.prototype.process = function (src) {\n    src.connect(this.input);\n  }; \n  //   * Set the X,Y,Z position of the Panner\n  //   * @param  {[Number]} xVal\n  //   * @param  {[Number]} yVal\n  //   * @param  {[Number]} zVal\n  //   * @param  {[Number]} time\n  //   * @return {[Array]}      [Updated x, y, z values as an array]\n  //   */\n\n\n  p5.Listener3D.prototype.position = function (xVal, yVal, zVal, time) {\n    this.positionX(xVal, time);\n    this.positionY(yVal, time);\n    this.positionZ(zVal, time);\n    return [this.listener.positionX.value, this.listener.positionY.value, this.listener.positionZ.value];\n  }; \n  //   * Getter and setter methods for position coordinates\n  //   * @return {Number}      [updated coordinate value]\n  //   */\n\n\n  p5.Listener3D.prototype.positionX = function (xVal, time) {\n    var t = time || 0;\n\n    if (typeof xVal === 'number') {\n      this.listener.positionX.value = xVal;\n      this.listener.positionX.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.listener.positionX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t);\n    } else if (xVal) {\n      xVal.connect(this.listener.positionX);\n    }\n\n    return this.listener.positionX.value;\n  };\n\n  p5.Listener3D.prototype.positionY = function (yVal, time) {\n    var t = time || 0;\n\n    if (typeof yVal === 'number') {\n      this.listener.positionY.value = yVal;\n      this.listener.positionY.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.listener.positionY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t);\n    } else if (yVal) {\n      yVal.connect(this.listener.positionY);\n    }\n\n    return this.listener.positionY.value;\n  };\n\n  p5.Listener3D.prototype.positionZ = function (zVal, time) {\n    var t = time || 0;\n\n    if (typeof zVal === 'number') {\n      this.listener.positionZ.value = zVal;\n      this.listener.positionZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.listener.positionZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t);\n    } else if (zVal) {\n      zVal.connect(this.listener.positionZ);\n    }\n\n    return this.listener.positionZ.value;\n  }; \n  //   * Overrides the listener orient() method because Listener has slightly\n  //   * different params. In human terms, Forward vectors are the direction the \n  //   * nose is pointing. Up vectors are the direction of the top of the head.\n  //   *\n  //   * @method orient\n  //   * @param  {Number} xValF  Forward vector X direction\n  //   * @param  {Number} yValF  Forward vector Y direction\n  //   * @param  {Number} zValF  Forward vector Z direction\n  //   * @param  {Number} xValU  Up vector X direction\n  //   * @param  {Number} yValU  Up vector Y direction\n  //   * @param  {Number} zValU  Up vector Z direction\n  //   * @param  {Number} time  \n  //   * @return {Array}       All orienation params\n  //   */\n\n\n  p5.Listener3D.prototype.orient = function (xValF, yValF, zValF, xValU, yValU, zValU, time) {\n    if (arguments.length === 3 || arguments.length === 4) {\n      time = arguments[3];\n      this.orientForward(xValF, yValF, zValF, time);\n    } else if (arguments.length === 6 || arguments === 7) {\n      this.orientForward(xValF, yValF, zValF);\n      this.orientUp(xValU, yValU, zValU, time);\n    }\n\n    return [this.listener.forwardX.value, this.listener.forwardY.value, this.listener.forwardZ.value, this.listener.upX.value, this.listener.upY.value, this.listener.upZ.value];\n  };\n\n  p5.Listener3D.prototype.orientForward = function (xValF, yValF, zValF, time) {\n    this.forwardX(xValF, time);\n    this.forwardY(yValF, time);\n    this.forwardZ(zValF, time);\n    return [this.listener.forwardX, this.listener.forwardY, this.listener.forwardZ];\n  };\n\n  p5.Listener3D.prototype.orientUp = function (xValU, yValU, zValU, time) {\n    this.upX(xValU, time);\n    this.upY(yValU, time);\n    this.upZ(zValU, time);\n    return [this.listener.upX, this.listener.upY, this.listener.upZ];\n  }; \n  //   * Getter and setter methods for orient coordinates\n  //   * @return {Number}      [updated coordinate value]\n  //   */\n\n\n  p5.Listener3D.prototype.forwardX = function (xVal, time) {\n    var t = time || 0;\n\n    if (typeof xVal === 'number') {\n      this.listener.forwardX.value = xVal;\n      this.listener.forwardX.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.listener.forwardX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t);\n    } else if (xVal) {\n      xVal.connect(this.listener.forwardX);\n    }\n\n    return this.listener.forwardX.value;\n  };\n\n  p5.Listener3D.prototype.forwardY = function (yVal, time) {\n    var t = time || 0;\n\n    if (typeof yVal === 'number') {\n      this.listener.forwardY.value = yVal;\n      this.listener.forwardY.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.listener.forwardY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t);\n    } else if (yVal) {\n      yVal.connect(this.listener.forwardY);\n    }\n\n    return this.listener.forwardY.value;\n  };\n\n  p5.Listener3D.prototype.forwardZ = function (zVal, time) {\n    var t = time || 0;\n\n    if (typeof zVal === 'number') {\n      this.listener.forwardZ.value = zVal;\n      this.listener.forwardZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.listener.forwardZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t);\n    } else if (zVal) {\n      zVal.connect(this.listener.forwardZ);\n    }\n\n    return this.listener.forwardZ.value;\n  };\n\n  p5.Listener3D.prototype.upX = function (xVal, time) {\n    var t = time || 0;\n\n    if (typeof xVal === 'number') {\n      this.listener.upX.value = xVal;\n      this.listener.upX.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.listener.upX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t);\n    } else if (xVal) {\n      xVal.connect(this.listener.upX);\n    }\n\n    return this.listener.upX.value;\n  };\n\n  p5.Listener3D.prototype.upY = function (yVal, time) {\n    var t = time || 0;\n\n    if (typeof yVal === 'number') {\n      this.listener.upY.value = yVal;\n      this.listener.upY.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.listener.upY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t);\n    } else if (yVal) {\n      yVal.connect(this.listener.upY);\n    }\n\n    return this.listener.upY.value;\n  };\n\n  p5.Listener3D.prototype.upZ = function (zVal, time) {\n    var t = time || 0;\n\n    if (typeof zVal === 'number') {\n      this.listener.upZ.value = zVal;\n      this.listener.upZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.listener.upZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t);\n    } else if (zVal) {\n      zVal.connect(this.listener.upZ);\n    }\n\n    return this.listener.upZ.value;\n  };\n\n  return p5.Listener3D;\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var Filter = __webpack_require__(15);\n\n  var Effect = __webpack_require__(4);\n  /**\n   *  Delay is an echo effect. It processes an existing sound source,\n   *  and outputs a delayed version of that sound. The p5.Delay can\n   *  produce different effects depending on the delayTime, feedback,\n   *  filter, and type. In the example below, a feedback of 0.5 (the\n   *  default value) will produce a looping delay that decreases in\n   *  volume by 50% each repeat. A filter will cut out the high\n   *  frequencies so that the delay does not sound as piercing as the\n   *  original source.\n   *\n   *\n   *  This class extends <a href = \"/reference/#/p5.Effect\">p5.Effect</a>.\n   *  Methods <a href = \"/reference/#/p5.Effect/amp\">amp()</a>, <a href = \"/reference/#/p5.Effect/chain\">chain()</a>,\n   *  <a href = \"/reference/#/p5.Effect/drywet\">drywet()</a>, <a href = \"/reference/#/p5.Effect/connect\">connect()</a>, and\n   *  <a href = \"/reference/#/p5.Effect/disconnect\">disconnect()</a> are available.\n   *  @class p5.Delay\n   *  @extends p5.Effect\n   *  @constructor\n   *  @example\n   *  <div><code>\n   *  let osc;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    background(220);\n   *    textAlign(CENTER);\n   *    text('tap to play', width/2, height/2);\n   *\n   *    osc = new p5.Oscillator('square');\n   *    osc.amp(0.5);\n   *    delay = new p5.Delay();\n   *\n   *    // delay.process() accepts 4 parameters:\n   *    // source, delayTime (in seconds), feedback, filter frequency\n   *    delay.process(osc, 0.12, .7, 2300);\n   *\n   *    cnv.mousePressed(oscStart);\n   *  }\n   *\n   *  function oscStart() {\n   *    osc.start();\n   *  }\n   *\n   *  function mouseReleased() {\n   *    osc.stop();\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Delay = function () {\n    Effect.call(this);\n    this._split = this.ac.createChannelSplitter(2);\n    this._merge = this.ac.createChannelMerger(2);\n    this._leftGain = this.ac.createGain();\n    this._rightGain = this.ac.createGain();\n    /**\n     *  The p5.Delay is built with two\n     *  <a href=\"http://www.w3.org/TR/webaudio/#DelayNode\">\n     *  Web Audio Delay Nodes</a>, one for each stereo channel.\n     *\n     *  @for p5.Delay\n     *  @property {DelayNode} leftDelay\n     */\n\n    this.leftDelay = this.ac.createDelay();\n    /**\n     *  The p5.Delay is built with two\n     *  <a href=\"http://www.w3.org/TR/webaudio/#DelayNode\">\n     *  Web Audio Delay Nodes</a>, one for each stereo channel.\n     *  @for p5.Delay\n     *  @property {DelayNode} rightDelay\n     */\n\n    this.rightDelay = this.ac.createDelay();\n    this._leftFilter = new Filter();\n    this._rightFilter = new Filter();\n\n    this._leftFilter.disconnect();\n\n    this._rightFilter.disconnect();\n\n    this._leftFilter.biquad.frequency.setValueAtTime(1200, this.ac.currentTime);\n\n    this._rightFilter.biquad.frequency.setValueAtTime(1200, this.ac.currentTime);\n\n    this._leftFilter.biquad.Q.setValueAtTime(0.3, this.ac.currentTime);\n\n    this._rightFilter.biquad.Q.setValueAtTime(0.3, this.ac.currentTime); \n\n\n    this.input.connect(this._split);\n    this.leftDelay.connect(this._leftGain);\n    this.rightDelay.connect(this._rightGain);\n\n    this._leftGain.connect(this._leftFilter.input);\n\n    this._rightGain.connect(this._rightFilter.input);\n\n    this._merge.connect(this.wet);\n\n    this._leftFilter.biquad.gain.setValueAtTime(1, this.ac.currentTime);\n\n    this._rightFilter.biquad.gain.setValueAtTime(1, this.ac.currentTime); \n\n\n    this.setType(0);\n    this._maxDelay = this.leftDelay.delayTime.maxValue; \n\n    this.feedback(0.5);\n  };\n\n  p5.Delay.prototype = Object.create(Effect.prototype);\n  /**\n   *  Add delay to an audio signal according to a set\n   *  of delay parameters.\n   *\n   *  @method  process\n   *  @for p5.Delay\n   *  @param  {Object} Signal  An object that outputs audio\n   *  @param  {Number} [delayTime] Time (in seconds) of the delay/echo.\n   *                               Some browsers limit delayTime to\n   *                               1 second.\n   *  @param  {Number} [feedback]  sends the delay back through itself\n   *                               in a loop that decreases in volume\n   *                               each time.\n   *  @param  {Number} [lowPass]   Cutoff frequency. Only frequencies\n   *                               below the lowPass will be part of the\n   *                               delay.\n   */\n\n  p5.Delay.prototype.process = function (src, _delayTime, _feedback, _filter) {\n    var feedback = _feedback || 0;\n    var delayTime = _delayTime || 0;\n\n    if (feedback >= 1.0) {\n      throw new Error('Feedback value will force a positive feedback loop.');\n    }\n\n    if (delayTime >= this._maxDelay) {\n      throw new Error('Delay Time exceeds maximum delay time of ' + this._maxDelay + ' second.');\n    }\n\n    src.connect(this.input);\n    this.leftDelay.delayTime.setValueAtTime(delayTime, this.ac.currentTime);\n    this.rightDelay.delayTime.setValueAtTime(delayTime, this.ac.currentTime);\n    this._leftGain.gain.value = feedback;\n    this._rightGain.gain.value = feedback;\n\n    if (_filter) {\n      this._leftFilter.freq(_filter);\n\n      this._rightFilter.freq(_filter);\n    }\n  };\n  /**\n   *  Set the delay (echo) time, in seconds. Usually this value will be\n   *  a floating point number between 0.0 and 1.0.\n   *\n   *  @method  delayTime\n   *  @for p5.Delay\n   *  @param {Number} delayTime Time (in seconds) of the delay\n   */\n\n\n  p5.Delay.prototype.delayTime = function (t) {\n    if (typeof t !== 'number') {\n      t.connect(this.leftDelay.delayTime);\n      t.connect(this.rightDelay.delayTime);\n    } else {\n      this.leftDelay.delayTime.cancelScheduledValues(this.ac.currentTime);\n      this.rightDelay.delayTime.cancelScheduledValues(this.ac.currentTime);\n      this.leftDelay.delayTime.linearRampToValueAtTime(t, this.ac.currentTime);\n      this.rightDelay.delayTime.linearRampToValueAtTime(t, this.ac.currentTime);\n    }\n  };\n  /**\n   *  Feedback occurs when Delay sends its signal back through its input\n   *  in a loop. The feedback amount determines how much signal to send each\n   *  time through the loop. A feedback greater than 1.0 is not desirable because\n   *  it will increase the overall output each time through the loop,\n   *  creating an infinite feedback loop. The default value is 0.5\n   *\n   *  @method  feedback\n   *  @for p5.Delay\n   *  @param {Number|Object} feedback 0.0 to 1.0, or an object such as an\n   *                                  Oscillator that can be used to\n   *                                  modulate this param\n   *  @returns {Number} Feedback value\n   *\n   */\n\n\n  p5.Delay.prototype.feedback = function (f) {\n    if (f && typeof f !== 'number') {\n      f.connect(this._leftGain.gain);\n      f.connect(this._rightGain.gain);\n    } else if (f >= 1.0) {\n      throw new Error('Feedback value will force a positive feedback loop.');\n    } else if (typeof f === 'number') {\n      this._leftGain.gain.value = f;\n      this._rightGain.gain.value = f;\n    } \n\n\n    return this._leftGain.gain.value;\n  };\n  /**\n   *  Set a lowpass filter frequency for the delay. A lowpass filter\n   *  will cut off any frequencies higher than the filter frequency.\n   *\n   *  @method  filter\n   *  @for p5.Delay\n   *  @param {Number|Object} cutoffFreq  A lowpass filter will cut off any\n   *                              frequencies higher than the filter frequency.\n   *  @param {Number|Object} res  Resonance of the filter frequency\n   *                              cutoff, or an object (i.e. a p5.Oscillator)\n   *                              that can be used to modulate this parameter.\n   *                              High numbers (i.e. 15) will produce a resonance,\n   *                              low numbers (i.e. .2) will produce a slope.\n   */\n\n\n  p5.Delay.prototype.filter = function (freq, q) {\n    this._leftFilter.set(freq, q);\n\n    this._rightFilter.set(freq, q);\n  };\n  /**\n   *  Choose a preset type of delay. 'pingPong' bounces the signal\n   *  from the left to the right channel to produce a stereo effect.\n   *  Any other parameter will revert to the default delay setting.\n   *\n   *  @method  setType\n   *  @for p5.Delay\n   *  @param {String|Number} type 'pingPong' (1) or 'default' (0)\n   */\n\n\n  p5.Delay.prototype.setType = function (t) {\n    if (t === 1) {\n      t = 'pingPong';\n    }\n\n    this._split.disconnect();\n\n    this._leftFilter.disconnect();\n\n    this._rightFilter.disconnect();\n\n    this._split.connect(this.leftDelay, 0);\n\n    this._split.connect(this.rightDelay, 1);\n\n    switch (t) {\n      case 'pingPong':\n        this._rightFilter.setType(this._leftFilter.biquad.type);\n\n        this._leftFilter.output.connect(this._merge, 0, 0);\n\n        this._rightFilter.output.connect(this._merge, 0, 1);\n\n        this._leftFilter.output.connect(this.rightDelay);\n\n        this._rightFilter.output.connect(this.leftDelay);\n\n        break;\n\n      default:\n        this._leftFilter.output.connect(this._merge, 0, 0);\n\n        this._rightFilter.output.connect(this._merge, 0, 1);\n\n        this._leftFilter.output.connect(this.leftDelay);\n\n        this._rightFilter.output.connect(this.rightDelay);\n\n    }\n  }; \n\n  /**\n   *  Set the output level of the delay effect.\n   *\n   *  @method  amp\n   *  @for p5.Delay\n   *  @param  {Number} volume amplitude between 0 and 1.0\n   *  @param {Number} [rampTime] create a fade that lasts rampTime\n   *  @param {Number} [timeFromNow] schedule this event to happen\n   *                                seconds from now\n   */\n\n  /**\n   *  Send output to a p5.sound or web audio object\n   *\n   *  @method  connect\n   *  @for p5.Delay\n   *  @param  {Object} unit\n   */\n\n  /**\n   *  Disconnect all output.\n   *\n   *  @method disconnect\n   *  @for p5.Delay\n   */\n\n\n  p5.Delay.prototype.dispose = function () {\n    Effect.prototype.dispose.apply(this);\n\n    this._split.disconnect();\n\n    this._leftFilter.dispose();\n\n    this._rightFilter.dispose();\n\n    this._merge.disconnect();\n\n    this._leftGain.disconnect();\n\n    this._rightGain.disconnect();\n\n    this.leftDelay.disconnect();\n    this.rightDelay.disconnect();\n    this._split = undefined;\n    this._leftFilter = undefined;\n    this._rightFilter = undefined;\n    this._merge = undefined;\n    this._leftGain = undefined;\n    this._rightGain = undefined;\n    this.leftDelay = undefined;\n    this.rightDelay = undefined;\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var CustomError = __webpack_require__(11);\n\n  var Effect = __webpack_require__(4);\n  /**\n   *  Reverb adds depth to a sound through a large number of decaying\n   *  echoes. It creates the perception that sound is occurring in a\n   *  physical space. The p5.Reverb has paramters for Time (how long does the\n   *  reverb last) and decayRate (how much the sound decays with each echo)\n   *  that can be set with the .set() or .process() methods. The p5.Convolver\n   *  extends p5.Reverb allowing you to recreate the sound of actual physical\n   *  spaces through convolution.\n   *\n   *  This class extends <a href = \"/reference/#/p5.Effect\">p5.Effect</a>.\n   *  Methods <a href = \"/reference/#/p5.Effect/amp\">amp()</a>, <a href = \"/reference/#/p5.Effect/chain\">chain()</a>,\n   *  <a href = \"/reference/#/p5.Effect/drywet\">drywet()</a>, <a href = \"/reference/#/p5.Effect/connect\">connect()</a>, and\n   *  <a href = \"/reference/#/p5.Effect/disconnect\">disconnect()</a> are available.\n   *\n   *  @class p5.Reverb\n   *  @extends p5.Effect\n   *  @constructor\n   *  @example\n   *  <div><code>\n   *  let soundFile, reverb;\n   *  function preload() {\n   *    soundFile = loadSound('assets/Damscray_DancingTiger.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playSound);\n   *\n   *    reverb = new p5.Reverb();\n   *    soundFile.disconnect(); // so we'll only hear reverb...\n   *\n   *    // connect soundFile to reverb, process w/\n   *    // 3 second reverbTime, decayRate of 2%\n   *    reverb.process(soundFile, 3, 2);\n   *  }\n   *\n   *  function draw() {\n   *    let dryWet = constrain(map(mouseX, 0, width, 0, 1), 0, 1);\n   *    // 1 = all reverb, 0 = no reverb\n   *    reverb.drywet(dryWet);\n   *\n   *    background(220);\n   *    text('tap to play', 10, 20);\n   *    text('dry/wet: ' + round(dryWet * 100) + '%', 10, height - 20);\n   *  }\n   *\n   *  function playSound() {\n   *    soundFile.play();\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Reverb = function () {\n    Effect.call(this);\n\n    this._initConvolverNode(); \n\n\n    this.input.gain.value = 0.5; \n\n    this._seconds = 3;\n    this._decay = 2;\n    this._reverse = false;\n\n    this._buildImpulse();\n  };\n\n  p5.Reverb.prototype = Object.create(Effect.prototype);\n\n  p5.Reverb.prototype._initConvolverNode = function () {\n    this.convolverNode = this.ac.createConvolver();\n    this.input.connect(this.convolverNode);\n    this.convolverNode.connect(this.wet);\n  };\n\n  p5.Reverb.prototype._teardownConvolverNode = function () {\n    if (this.convolverNode) {\n      this.convolverNode.disconnect();\n      delete this.convolverNode;\n    }\n  };\n\n  p5.Reverb.prototype._setBuffer = function (audioBuffer) {\n    this._teardownConvolverNode();\n\n    this._initConvolverNode();\n\n    this.convolverNode.buffer = audioBuffer;\n  };\n  /**\n   *  Connect a source to the reverb, and assign reverb parameters.\n   *\n   *  @method  process\n   *  @for p5.Reverb\n   *  @param  {Object} src     p5.sound / Web Audio object with a sound\n   *                           output.\n   *  @param  {Number} [seconds] Duration of the reverb, in seconds.\n   *                           Min: 0, Max: 10. Defaults to 3.\n   *  @param  {Number} [decayRate] Percentage of decay with each echo.\n   *                            Min: 0, Max: 100. Defaults to 2.\n   *  @param  {Boolean} [reverse] Play the reverb backwards or forwards.\n   */\n\n\n  p5.Reverb.prototype.process = function (src, seconds, decayRate, reverse) {\n    src.connect(this.input);\n    var rebuild = false;\n\n    if (seconds) {\n      this._seconds = seconds;\n      rebuild = true;\n    }\n\n    if (decayRate) {\n      this._decay = decayRate;\n    }\n\n    if (reverse) {\n      this._reverse = reverse;\n    }\n\n    if (rebuild) {\n      this._buildImpulse();\n    }\n  };\n  /**\n   *  Set the reverb settings. Similar to .process(), but without\n   *  assigning a new input.\n   *\n   *  @method  set\n   *  @for p5.Reverb\n   *  @param  {Number} [seconds] Duration of the reverb, in seconds.\n   *                           Min: 0, Max: 10. Defaults to 3.\n   *  @param  {Number} [decayRate] Percentage of decay with each echo.\n   *                            Min: 0, Max: 100. Defaults to 2.\n   *  @param  {Boolean} [reverse] Play the reverb backwards or forwards.\n   */\n\n\n  p5.Reverb.prototype.set = function (seconds, decayRate, reverse) {\n    var rebuild = false;\n\n    if (seconds) {\n      this._seconds = seconds;\n      rebuild = true;\n    }\n\n    if (decayRate) {\n      this._decay = decayRate;\n    }\n\n    if (reverse) {\n      this._reverse = reverse;\n    }\n\n    if (rebuild) {\n      this._buildImpulse();\n    }\n  }; \n\n  /**\n   *  Set the output level of the reverb effect.\n   *\n   *  @method  amp\n   *  @for p5.Reverb\n   *  @param  {Number} volume amplitude between 0 and 1.0\n   *  @param  {Number} [rampTime] create a fade that lasts rampTime\n   *  @param  {Number} [timeFromNow] schedule this event to happen\n   *                                seconds from now\n   */\n\n  /**\n   *  Send output to a p5.sound or web audio object\n   *\n   *  @method  connect\n   *  @for p5.Reverb\n   *  @param  {Object} unit\n   */\n\n  /**\n   *  Disconnect all output.\n   *\n   *  @method disconnect\n   *  @for p5.Reverb\n   */\n\n  /**\n   *  Inspired by Simple Reverb by Jordan Santell\n   *  https://github.com/web-audio-components/simple-reverb/blob/master/index.js\n   *\n   *  Utility function for building an impulse response\n   *  based on the module parameters.\n   *\n   *  @private\n   */\n\n\n  p5.Reverb.prototype._buildImpulse = function () {\n    var rate = this.ac.sampleRate;\n    var length = rate * this._seconds;\n    var decay = this._decay;\n    var impulse = this.ac.createBuffer(2, length, rate);\n    var impulseL = impulse.getChannelData(0);\n    var impulseR = impulse.getChannelData(1);\n    var n, i;\n\n    for (i = 0; i < length; i++) {\n      n = this._reverse ? length - i : i;\n      impulseL[i] = (Math.random() * 2 - 1) * Math.pow(1 - n / length, decay);\n      impulseR[i] = (Math.random() * 2 - 1) * Math.pow(1 - n / length, decay);\n    }\n\n    this._setBuffer(impulse);\n  };\n\n  p5.Reverb.prototype.dispose = function () {\n    Effect.prototype.dispose.apply(this);\n\n    this._teardownConvolverNode();\n  }; \n\n  /**\n   *  <p>p5.Convolver extends p5.Reverb. It can emulate the sound of real\n   *  physical spaces through a process called <a href=\"\n   *  https://en.wikipedia.org/wiki/Convolution_reverb#Real_space_simulation\">\n   *  convolution</a>.</p>\n   *\n   *  <p>Convolution multiplies any audio input by an \"impulse response\"\n   *  to simulate the dispersion of sound over time. The impulse response is\n   *  generated from an audio file that you provide. One way to\n   *  generate an impulse response is to pop a balloon in a reverberant space\n   *  and record the echo. Convolution can also be used to experiment with\n   *  sound.</p>\n   *\n   *  <p>Use the method <code>createConvolution(path)</code> to instantiate a\n   *  p5.Convolver with a path to your impulse response audio file.</p>\n   *\n   *  @class p5.Convolver\n   *  @extends p5.Effect\n   *  @constructor\n   *  @param  {String}   path     path to a sound file\n   *  @param  {Function} [callback] function to call when loading succeeds\n   *  @param  {Function} [errorCallback] function to call if loading fails.\n   *                                     This function will receive an error or\n   *                                     XMLHttpRequest object with information\n   *                                     about what went wrong.\n   *  @example\n   *  <div><code>\n   *  let cVerb, sound;\n   *  function preload() {\n   *    // We have both MP3 and OGG versions of all sound assets\n   *    soundFormats('ogg', 'mp3');\n   *\n   *    // Try replacing 'bx-spring' with other soundfiles like\n   *    // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox'\n   *    cVerb = createConvolver('assets/bx-spring.mp3');\n   *\n   *    // Try replacing 'Damscray_DancingTiger' with\n   *    // 'beat', 'doorbell', lucky_dragons_-_power_melody'\n   *    sound = loadSound('assets/Damscray_DancingTiger.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playSound);\n   *    background(220);\n   *    text('tap to play', 20, 20);\n   *\n   *    // disconnect from master output...\n   *    sound.disconnect();\n   *\n   *    // ...and process with cVerb\n   *    // so that we only hear the convolution\n   *    cVerb.process(sound);\n   *  }\n   *\n   *  function playSound() {\n   *    sound.play();\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Convolver = function (path, callback, errorCallback) {\n    p5.Reverb.call(this);\n    /**\n     *  Internally, the p5.Convolver uses the a\n     *  <a href=\"http://www.w3.org/TR/webaudio/#ConvolverNode\">\n     *  Web Audio Convolver Node</a>.\n     *\n     *  @property {ConvolverNode} convolverNode\n     */\n\n    this._initConvolverNode(); \n\n\n    this.input.gain.value = 0.5;\n\n    if (path) {\n      this.impulses = [];\n\n      this._loadBuffer(path, callback, errorCallback);\n    } else {\n      this._seconds = 3;\n      this._decay = 2;\n      this._reverse = false;\n\n      this._buildImpulse();\n    }\n  };\n\n  p5.Convolver.prototype = Object.create(p5.Reverb.prototype);\n  p5.prototype.registerPreloadMethod('createConvolver', p5.prototype);\n  /**\n   *  Create a p5.Convolver. Accepts a path to a soundfile\n   *  that will be used to generate an impulse response.\n   *\n   *  @method  createConvolver\n   *  @for p5\n   *  @param  {String}   path     path to a sound file\n   *  @param  {Function} [callback] function to call if loading is successful.\n   *                                The object will be passed in as the argument\n   *                                to the callback function.\n   *  @param  {Function} [errorCallback] function to call if loading is not successful.\n   *                                A custom error will be passed in as the argument\n   *                                to the callback function.\n   *  @return {p5.Convolver}\n   *  @example\n   *  <div><code>\n   *  let cVerb, sound;\n   *  function preload() {\n   *    // We have both MP3 and OGG versions of all sound assets\n   *    soundFormats('ogg', 'mp3');\n   *\n   *    // Try replacing 'bx-spring' with other soundfiles like\n   *    // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox'\n   *    cVerb = createConvolver('assets/bx-spring.mp3');\n   *\n   *    // Try replacing 'Damscray_DancingTiger' with\n   *    // 'beat', 'doorbell', lucky_dragons_-_power_melody'\n   *    sound = loadSound('assets/Damscray_DancingTiger.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playSound);\n   *    background(220);\n   *    text('tap to play', 20, 20);\n   *\n   *    // disconnect from master output...\n   *    sound.disconnect();\n   *\n   *    // ...and process with cVerb\n   *    // so that we only hear the convolution\n   *    cVerb.process(sound);\n   *  }\n   *\n   *  function playSound() {\n   *    sound.play();\n   *  }\n   *  </code></div>\n   */\n\n  p5.prototype.createConvolver = function (path, callback, errorCallback) {\n    if (window.location.origin.indexOf('file://') > -1 && window.cordova === 'undefined') {\n      alert('This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS');\n    }\n\n    var self = this;\n    var cReverb = new p5.Convolver(path, function (buffer) {\n      if (typeof callback === 'function') {\n        callback(buffer);\n      }\n\n      if (typeof self._decrementPreload === 'function') {\n        self._decrementPreload();\n      }\n    }, errorCallback);\n    cReverb.impulses = [];\n    return cReverb;\n  };\n  /**\n   *  Private method to load a buffer as an Impulse Response,\n   *  assign it to the convolverNode, and add to the Array of .impulses.\n   *\n   *  @param   {String}   path\n   *  @param   {Function} callback\n   *  @param   {Function} errorCallback\n   *  @private\n   */\n\n\n  p5.Convolver.prototype._loadBuffer = function (path, callback, errorCallback) {\n    var path = p5.prototype._checkFileFormats(path);\n\n    var self = this;\n    var errorTrace = new Error().stack;\n    var ac = p5.prototype.getAudioContext();\n    var request = new XMLHttpRequest();\n    request.open('GET', path, true);\n    request.responseType = 'arraybuffer';\n\n    request.onload = function () {\n      if (request.status === 200) {\n        ac.decodeAudioData(request.response, function (buff) {\n          var buffer = {};\n          var chunks = path.split('/');\n          buffer.name = chunks[chunks.length - 1];\n          buffer.audioBuffer = buff;\n          self.impulses.push(buffer);\n\n          self._setBuffer(buffer.audioBuffer);\n\n          if (callback) {\n            callback(buffer);\n          }\n        }, \n        function () {\n          var err = new CustomError('decodeAudioData', errorTrace, self.url);\n          var msg = 'AudioContext error at decodeAudioData for ' + self.url;\n\n          if (errorCallback) {\n            err.msg = msg;\n            errorCallback(err);\n          } else {\n            console.error(msg + '\\n The error stack trace includes: \\n' + err.stack);\n          }\n        });\n      } \n      else {\n          var err = new CustomError('loadConvolver', errorTrace, self.url);\n          var msg = 'Unable to load ' + self.url + '. The request status was: ' + request.status + ' (' + request.statusText + ')';\n\n          if (errorCallback) {\n            err.message = msg;\n            errorCallback(err);\n          } else {\n            console.error(msg + '\\n The error stack trace includes: \\n' + err.stack);\n          }\n        }\n    }; \n\n\n    request.onerror = function () {\n      var err = new CustomError('loadConvolver', errorTrace, self.url);\n      var msg = 'There was no response from the server at ' + self.url + '. Check the url and internet connectivity.';\n\n      if (errorCallback) {\n        err.message = msg;\n        errorCallback(err);\n      } else {\n        console.error(msg + '\\n The error stack trace includes: \\n' + err.stack);\n      }\n    };\n\n    request.send();\n  };\n\n  p5.Convolver.prototype.set = null;\n  /**\n   *  Connect a source to the convolver.\n   *\n   *  @method  process\n   *  @for p5.Convolver\n   *  @param  {Object} src     p5.sound / Web Audio object with a sound\n   *                           output.\n   *  @example\n   *  <div><code>\n   *  let cVerb, sound;\n   *  function preload() {\n   *    // We have both MP3 and OGG versions of all sound assets\n   *    soundFormats('ogg', 'mp3');\n   *\n   *    // Try replacing 'bx-spring' with other soundfiles like\n   *    // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox'\n   *    cVerb = createConvolver('assets/bx-spring.mp3');\n   *\n   *    // Try replacing 'Damscray_DancingTiger' with\n   *    // 'beat', 'doorbell', lucky_dragons_-_power_melody'\n   *    sound = loadSound('assets/Damscray_DancingTiger.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playSound);\n   *    background(220);\n   *    text('tap to play', 20, 20);\n   *\n   *    // disconnect from master output...\n   *    sound.disconnect();\n   *\n   *    // ...and process with cVerb\n   *    // so that we only hear the convolution\n   *    cVerb.process(sound);\n   *  }\n   *\n   *  function playSound() {\n   *    sound.play();\n   *  }\n   *\n   *  </code></div>\n   */\n\n  p5.Convolver.prototype.process = function (src) {\n    src.connect(this.input);\n  };\n  /**\n   *  If you load multiple impulse files using the .addImpulse method,\n   *  they will be stored as Objects in this Array. Toggle between them\n   *  with the <code>toggleImpulse(id)</code> method.\n   *\n   *  @property {Array} impulses\n   *  @for p5.Convolver\n   */\n\n\n  p5.Convolver.prototype.impulses = [];\n  /**\n   *  Load and assign a new Impulse Response to the p5.Convolver.\n   *  The impulse is added to the <code>.impulses</code> array. Previous\n   *  impulses can be accessed with the <code>.toggleImpulse(id)</code>\n   *  method.\n   *\n   *  @method  addImpulse\n   *  @for p5.Convolver\n   *  @param  {String}   path     path to a sound file\n   *  @param  {Function} callback function (optional)\n   *  @param  {Function} errorCallback function (optional)\n   */\n\n  p5.Convolver.prototype.addImpulse = function (path, callback, errorCallback) {\n    if (window.location.origin.indexOf('file://') > -1 && window.cordova === 'undefined') {\n      alert('This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS');\n    }\n\n    this._loadBuffer(path, callback, errorCallback);\n  };\n  /**\n   *  Similar to .addImpulse, except that the <code>.impulses</code>\n   *  Array is reset to save memory. A new <code>.impulses</code>\n   *  array is created with this impulse as the only item.\n   *\n   *  @method  resetImpulse\n   *  @for p5.Convolver\n   *  @param  {String}   path     path to a sound file\n   *  @param  {Function} callback function (optional)\n   *  @param  {Function} errorCallback function (optional)\n   */\n\n\n  p5.Convolver.prototype.resetImpulse = function (path, callback, errorCallback) {\n    if (window.location.origin.indexOf('file://') > -1 && window.cordova === 'undefined') {\n      alert('This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS');\n    }\n\n    this.impulses = [];\n\n    this._loadBuffer(path, callback, errorCallback);\n  };\n  /**\n   *  If you have used <code>.addImpulse()</code> to add multiple impulses\n   *  to a p5.Convolver, then you can use this method to toggle between\n   *  the items in the <code>.impulses</code> Array. Accepts a parameter\n   *  to identify which impulse you wish to use, identified either by its\n   *  original filename (String) or by its position in the <code>.impulses\n   *  </code> Array (Number).<br/>\n   *  You can access the objects in the .impulses Array directly. Each\n   *  Object has two attributes: an <code>.audioBuffer</code> (type:\n   *  Web Audio <a href=\"\n   *  http://webaudio.github.io/web-audio-api/#the-audiobuffer-interface\">\n   *  AudioBuffer)</a> and a <code>.name</code>, a String that corresponds\n   *  with the original filename.\n   *\n   *  @method toggleImpulse\n   *  @for p5.Convolver\n   *  @param {String|Number} id Identify the impulse by its original filename\n   *                            (String), or by its position in the\n   *                            <code>.impulses</code> Array (Number).\n   */\n\n\n  p5.Convolver.prototype.toggleImpulse = function (id) {\n    if (typeof id === 'number' && id < this.impulses.length) {\n      this._setBuffer(this.impulses[id].audioBuffer);\n    }\n\n    if (typeof id === 'string') {\n      for (var i = 0; i < this.impulses.length; i++) {\n        if (this.impulses[i].name === id) {\n          this._setBuffer(this.impulses[i].audioBuffer);\n\n          break;\n        }\n      }\n    }\n  };\n\n  p5.Convolver.prototype.dispose = function () {\n    p5.Reverb.prototype.dispose.apply(this); \n\n    for (var i in this.impulses) {\n      if (this.impulses[i]) {\n        this.impulses[i] = null;\n      }\n    }\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1); \n\n\n  var Clock = __webpack_require__(27);\n\n  p5.Metro = function () {\n    this.clock = new Clock({\n      'callback': this.ontick.bind(this)\n    });\n    this.syncedParts = [];\n    this.bpm = 120; \n\n    this._init();\n\n    this.prevTick = 0;\n    this.tatumTime = 0;\n\n    this.tickCallback = function () {};\n  };\n\n  p5.Metro.prototype.ontick = function (tickTime) {\n    var elapsedTime = tickTime - this.prevTick;\n    var secondsFromNow = tickTime - p5sound.audiocontext.currentTime;\n\n    if (elapsedTime - this.tatumTime <= -0.02) {\n      return;\n    } else {\n      this.prevTick = tickTime; \n\n      var self = this;\n      this.syncedParts.forEach(function (thisPart) {\n        if (!thisPart.isPlaying) return;\n        thisPart.incrementStep(secondsFromNow); \n\n        thisPart.phrases.forEach(function (thisPhrase) {\n          var phraseArray = thisPhrase.sequence;\n          var bNum = self.metroTicks % phraseArray.length;\n\n          if (phraseArray[bNum] !== 0 && (self.metroTicks < phraseArray.length || !thisPhrase.looping)) {\n            thisPhrase.callback(secondsFromNow, phraseArray[bNum]);\n          }\n        });\n      });\n      this.metroTicks += 1;\n      this.tickCallback(secondsFromNow);\n    }\n  };\n\n  p5.Metro.prototype.setBPM = function (bpm, rampTime) {\n    var beatTime = 60 / (bpm * this.tatums);\n    var now = p5sound.audiocontext.currentTime;\n    this.tatumTime = beatTime;\n    var rampTime = rampTime || 0;\n    this.clock.frequency.setValueAtTime(this.clock.frequency.value, now);\n    this.clock.frequency.linearRampToValueAtTime(bpm, now + rampTime);\n    this.bpm = bpm;\n  };\n\n  p5.Metro.prototype.getBPM = function () {\n    return this.clock.getRate() / this.tatums * 60;\n  };\n\n  p5.Metro.prototype._init = function () {\n    this.metroTicks = 0; \n  }; \n\n\n  p5.Metro.prototype.resetSync = function (part) {\n    this.syncedParts = [part];\n  }; \n\n\n  p5.Metro.prototype.pushSync = function (part) {\n    this.syncedParts.push(part);\n  };\n\n  p5.Metro.prototype.start = function (timeFromNow) {\n    var t = timeFromNow || 0;\n    var now = p5sound.audiocontext.currentTime;\n    this.clock.start(now + t);\n    this.setBPM(this.bpm);\n  };\n\n  p5.Metro.prototype.stop = function (timeFromNow) {\n    var t = timeFromNow || 0;\n    var now = p5sound.audiocontext.currentTime;\n    this.clock.stop(now + t);\n  };\n\n  p5.Metro.prototype.beatLength = function (tatums) {\n    this.tatums = 1 / tatums / 4; \n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(0),__webpack_require__(24),__webpack_require__(8)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(t){\"use strict\";return t.TimelineState=function(e){t.Timeline.call(this),this._initial=e},t.extend(t.TimelineState,t.Timeline),t.TimelineState.prototype.getValueAtTime=function(e){var t=this.get(e);return null!==t?t.state:this._initial},t.TimelineState.prototype.setStateAtTime=function(e,t){this.add({state:e,time:t})},t.TimelineState}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var BPM = 120;\n  /**\n   *  Set the global tempo, in beats per minute, for all\n   *  p5.Parts. This method will impact all active p5.Parts.\n   *\n   *  @method setBPM\n   *  @for p5\n   *  @param {Number} BPM      Beats Per Minute\n   *  @param {Number} rampTime Seconds from now\n   */\n\n  p5.prototype.setBPM = function (bpm, rampTime) {\n    BPM = bpm;\n\n    for (var i in p5sound.parts) {\n      if (p5sound.parts[i]) {\n        p5sound.parts[i].setBPM(bpm, rampTime);\n      }\n    }\n  };\n  /**\n   *  <p>A phrase is a pattern of musical events over time, i.e.\n   *  a series of notes and rests.</p>\n   *\n   *  <p>Phrases must be added to a p5.Part for playback, and\n   *  each part can play multiple phrases at the same time.\n   *  For example, one Phrase might be a kick drum, another\n   *  could be a snare, and another could be the bassline.</p>\n   *\n   *  <p>The first parameter is a name so that the phrase can be\n   *  modified or deleted later. The callback is a a function that\n   *  this phrase will call at every step—for example it might be\n   *  called <code>playNote(value){}</code>. The array determines\n   *  which value is passed into the callback at each step of the\n   *  phrase. It can be numbers, an object with multiple numbers,\n   *  or a zero (0) indicates a rest so the callback won't be called).</p>\n   *\n   *  @class p5.Phrase\n   *  @constructor\n   *  @param {String}   name     Name so that you can access the Phrase.\n   *  @param {Function} callback The name of a function that this phrase\n   *                             will call. Typically it will play a sound,\n   *                             and accept two parameters: a time at which\n   *                             to play the sound (in seconds from now),\n   *                             and a value from the sequence array. The\n   *                             time should be passed into the play() or\n   *                             start() method to ensure precision.\n   *  @param {Array}   sequence    Array of values to pass into the callback\n   *                            at each step of the phrase.\n   *  @example\n   *  <div><code>\n   *  let mySound, myPhrase, myPart;\n   *  let pattern = [1,0,0,2,0,2,0,0];\n   *\n   *  function preload() {\n   *    mySound = loadSound('assets/beatbox.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playMyPart);\n   *    background(220);\n   *    text('tap to play', width/2, height/2);\n   *    textAlign(CENTER, CENTER);\n   *\n   *    myPhrase = new p5.Phrase('bbox', onEachStep, pattern);\n   *    myPart = new p5.Part();\n   *    myPart.addPhrase(myPhrase);\n   *    myPart.setBPM(60);\n   *  }\n   *\n   *  function onEachStep(time, playbackRate) {\n   *    mySound.rate(playbackRate);\n   *    mySound.play(time);\n   *  }\n   *\n   *  function playMyPart() {\n   *    userStartAudio();\n   *    myPart.start();\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Phrase = function (name, callback, sequence) {\n    this.phraseStep = 0;\n    this.name = name;\n    this.callback = callback;\n    /**\n     * Array of values to pass into the callback\n     * at each step of the phrase. Depending on the callback\n     * function's requirements, these values may be numbers,\n     * strings, or an object with multiple parameters.\n     * Zero (0) indicates a rest.\n     *\n     * @property {Array} sequence\n     */\n\n    this.sequence = sequence;\n  };\n  /**\n   *  <p>A p5.Part plays back one or more p5.Phrases. Instantiate a part\n   *  with steps and tatums. By default, each step represents a 1/16th note.</p>\n   *\n   *  <p>See p5.Phrase for more about musical timing.</p>\n   *\n   *  @class p5.Part\n   *  @constructor\n   *  @param {Number} [steps]   Steps in the part\n   *  @param {Number} [tatums] Divisions of a beat, e.g. use 1/4, or 0.25 for a quater note (default is 1/16, a sixteenth note)\n   *  @example\n   *  <div><code>\n   *  let box, drum, myPart;\n   *  let boxPat = [1,0,0,2,0,2,0,0];\n   *  let drumPat = [0,1,1,0,2,0,1,0];\n   *\n   *  function preload() {\n   *    box = loadSound('assets/beatbox.mp3');\n   *    drum = loadSound('assets/drum.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(playMyPart);\n   *    background(220);\n   *    textAlign(CENTER, CENTER);\n   *    text('tap to play', width/2, height/2);\n   *\n   *    let boxPhrase = new p5.Phrase('box', playBox, boxPat);\n   *    let drumPhrase = new p5.Phrase('drum', playDrum, drumPat);\n   *    myPart = new p5.Part();\n   *    myPart.addPhrase(boxPhrase);\n   *    myPart.addPhrase(drumPhrase);\n   *    myPart.setBPM(60);\n   *  }\n   *\n   *  function playBox(time, playbackRate) {\n   *    box.rate(playbackRate);\n   *    box.play(time);\n   *  }\n   *\n   *  function playDrum(time, playbackRate) {\n   *    drum.rate(playbackRate);\n   *    drum.play(time);\n   *  }\n   *\n   *  function playMyPart() {\n   *    userStartAudio();\n   *\n   *    myPart.start();\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.Part = function (steps, bLength) {\n    this.length = steps || 0; \n\n    this.partStep = 0;\n    this.phrases = [];\n    this.isPlaying = false;\n    this.noLoop();\n    this.tatums = bLength || 0.0625; \n\n    this.metro = new p5.Metro();\n\n    this.metro._init();\n\n    this.metro.beatLength(this.tatums);\n    this.metro.setBPM(BPM);\n    p5sound.parts.push(this);\n\n    this.callback = function () {};\n  };\n  /**\n   *  Set the tempo of this part, in Beats Per Minute.\n   *\n   *  @method  setBPM\n   *  @for p5.Part\n   *  @param {Number} BPM      Beats Per Minute\n   *  @param {Number} [rampTime] Seconds from now\n   */\n\n\n  p5.Part.prototype.setBPM = function (tempo, rampTime) {\n    this.metro.setBPM(tempo, rampTime);\n  };\n  /**\n   *  Returns the tempo, in Beats Per Minute, of this part.\n   *\n   *  @method getBPM\n   *  @for p5.Part\n   *  @return {Number}\n   */\n\n\n  p5.Part.prototype.getBPM = function () {\n    return this.metro.getBPM();\n  };\n  /**\n   *  Start playback of this part. It will play\n   *  through all of its phrases at a speed\n   *  determined by setBPM.\n   *\n   *  @method  start\n   *  @for p5.Part\n   *  @param  {Number} [time] seconds from now\n   */\n\n\n  p5.Part.prototype.start = function (time) {\n    if (!this.isPlaying) {\n      this.isPlaying = true;\n      this.metro.resetSync(this);\n      var t = time || 0;\n      this.metro.start(t);\n    }\n  };\n  /**\n   *  Loop playback of this part. It will begin\n   *  looping through all of its phrases at a speed\n   *  determined by setBPM.\n   *\n   *  @method  loop\n   *  @for p5.Part\n   *  @param  {Number} [time] seconds from now\n   */\n\n\n  p5.Part.prototype.loop = function (time) {\n    this.looping = true; \n\n    this.onended = function () {\n      this.partStep = 0;\n    };\n\n    var t = time || 0;\n    this.start(t);\n  };\n  /**\n   *  Tell the part to stop looping.\n   *\n   *  @method  noLoop\n   *  @for p5.Part\n   */\n\n\n  p5.Part.prototype.noLoop = function () {\n    this.looping = false; \n\n    this.onended = function () {\n      this.stop();\n    };\n  };\n  /**\n   *  Stop the part and cue it to step 0. Playback will resume from the begining of the Part when it is played again.\n   *\n   *  @method  stop\n   *  @for p5.Part\n   *  @param  {Number} [time] seconds from now\n   */\n\n\n  p5.Part.prototype.stop = function (time) {\n    this.partStep = 0;\n    this.pause(time);\n  };\n  /**\n   *  Pause the part. Playback will resume\n   *  from the current step.\n   *\n   *  @method  pause\n   *  @for p5.Part\n   *  @param  {Number} time seconds from now\n   */\n\n\n  p5.Part.prototype.pause = function (time) {\n    this.isPlaying = false;\n    var t = time || 0;\n    this.metro.stop(t);\n  };\n  /**\n   *  Add a p5.Phrase to this Part.\n   *\n   *  @method  addPhrase\n   *  @for p5.Part\n   *  @param {p5.Phrase}   phrase   reference to a p5.Phrase\n   */\n\n\n  p5.Part.prototype.addPhrase = function (name, callback, array) {\n    var p;\n\n    if (arguments.length === 3) {\n      p = new p5.Phrase(name, callback, array);\n    } else if (arguments[0] instanceof p5.Phrase) {\n      p = arguments[0];\n    } else {\n      throw 'invalid input. addPhrase accepts name, callback, array or a p5.Phrase';\n    }\n\n    this.phrases.push(p); \n\n    if (p.sequence.length > this.length) {\n      this.length = p.sequence.length;\n    }\n  };\n  /**\n   *  Remove a phrase from this part, based on the name it was\n   *  given when it was created.\n   *\n   *  @method  removePhrase\n   *  @for p5.Part\n   *  @param  {String} phraseName\n   */\n\n\n  p5.Part.prototype.removePhrase = function (name) {\n    for (var i in this.phrases) {\n      if (this.phrases[i].name === name) {\n        this.phrases.splice(i, 1);\n      }\n    }\n  };\n  /**\n   *  Get a phrase from this part, based on the name it was\n   *  given when it was created. Now you can modify its array.\n   *\n   *  @method  getPhrase\n   *  @for p5.Part\n   *  @param  {String} phraseName\n   */\n\n\n  p5.Part.prototype.getPhrase = function (name) {\n    for (var i in this.phrases) {\n      if (this.phrases[i].name === name) {\n        return this.phrases[i];\n      }\n    }\n  };\n  /**\n   *  Find all sequences with the specified name, and replace their patterns with the specified array.\n   *\n   *  @method  replaceSequence\n   *  @for p5.Part\n   *  @param  {String} phraseName\n   *  @param  {Array} sequence  Array of values to pass into the callback\n   *                            at each step of the phrase.\n   */\n\n\n  p5.Part.prototype.replaceSequence = function (name, array) {\n    for (var i in this.phrases) {\n      if (this.phrases[i].name === name) {\n        this.phrases[i].sequence = array;\n      }\n    }\n  };\n\n  p5.Part.prototype.incrementStep = function (time) {\n    if (this.partStep < this.length - 1) {\n      this.callback(time);\n      this.partStep += 1;\n    } else {\n      if (!this.looping && this.partStep === this.length - 1) {\n        this.onended();\n      }\n    }\n  };\n  /**\n   *  Set the function that will be called at every step. This will clear the previous function.\n   *\n   *  @method onStep\n   *  @for p5.Part\n   *  @param  {Function} callback The name of the callback\n   *                              you want to fire\n   *                              on every beat/tatum.\n   */\n\n\n  p5.Part.prototype.onStep = function (callback) {\n    this.callback = callback;\n  }; \n\n  /**\n   *  A Score consists of a series of Parts. The parts will\n   *  be played back in order. For example, you could have an\n   *  A part, a B part, and a C part, and play them back in this order\n   *  <code>new p5.Score(a, a, b, a, c)</code>\n   *\n   *  @class p5.Score\n   *  @constructor\n   *  @param {p5.Part} [...parts] One or multiple parts, to be played in sequence.\n   */\n\n\n  p5.Score = function () {\n    this.parts = [];\n    this.currentPart = 0;\n    var thisScore = this;\n\n    for (var i in arguments) {\n      if (arguments[i] && this.parts[i]) {\n        this.parts[i] = arguments[i];\n        this.parts[i].nextPart = this.parts[i + 1];\n\n        this.parts[i].onended = function () {\n          thisScore.resetPart(i);\n          playNextPart(thisScore);\n        };\n      }\n    }\n\n    this.looping = false;\n  };\n\n  p5.Score.prototype.onended = function () {\n    if (this.looping) {\n      this.parts[0].start();\n    } else {\n      this.parts[this.parts.length - 1].onended = function () {\n        this.stop();\n        this.resetParts();\n      };\n    }\n\n    this.currentPart = 0;\n  };\n  /**\n   *  Start playback of the score.\n   *\n   *  @method  start\n   *  @for p5.Score\n   */\n\n\n  p5.Score.prototype.start = function () {\n    this.parts[this.currentPart].start();\n    this.scoreStep = 0;\n  };\n  /**\n   *  Stop playback of the score.\n   *\n   *  @method  stop\n   *  @for p5.Score\n   */\n\n\n  p5.Score.prototype.stop = function () {\n    this.parts[this.currentPart].stop();\n    this.currentPart = 0;\n    this.scoreStep = 0;\n  };\n  /**\n   *  Pause playback of the score.\n   *\n   *  @method  pause\n   *  @for p5.Score\n   */\n\n\n  p5.Score.prototype.pause = function () {\n    this.parts[this.currentPart].stop();\n  };\n  /**\n   *  Loop playback of the score.\n   *\n   *  @method  loop\n   *  @for p5.Score\n   */\n\n\n  p5.Score.prototype.loop = function () {\n    this.looping = true;\n    this.start();\n  };\n  /**\n   *  Stop looping playback of the score. If it\n   *  is currently playing, this will go into effect\n   *  after the current round of playback completes.\n   *\n   *  @method  noLoop\n   *  @for p5.Score\n   */\n\n\n  p5.Score.prototype.noLoop = function () {\n    this.looping = false;\n  };\n\n  p5.Score.prototype.resetParts = function () {\n    var self = this;\n    this.parts.forEach(function (part) {\n      self.resetParts[part];\n    });\n  };\n\n  p5.Score.prototype.resetPart = function (i) {\n    this.parts[i].stop();\n    this.parts[i].partStep = 0;\n\n    for (var p in this.parts[i].phrases) {\n      if (this.parts[i]) {\n        this.parts[i].phrases[p].phraseStep = 0;\n      }\n    }\n  };\n  /**\n   *  Set the tempo for all parts in the score\n   *\n   *  @method setBPM\n   *  @for p5.Score\n   *  @param {Number} BPM      Beats Per Minute\n   *  @param {Number} rampTime Seconds from now\n   */\n\n\n  p5.Score.prototype.setBPM = function (bpm, rampTime) {\n    for (var i in this.parts) {\n      if (this.parts[i]) {\n        this.parts[i].setBPM(bpm, rampTime);\n      }\n    }\n  };\n\n  function playNextPart(aScore) {\n    aScore.currentPart++;\n\n    if (aScore.currentPart >= aScore.parts.length) {\n      aScore.scoreStep = 0;\n      aScore.onended();\n    } else {\n      aScore.scoreStep = 0;\n      aScore.parts[aScore.currentPart - 1].stop();\n      aScore.parts[aScore.currentPart].start();\n    }\n  }\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var Clock = __webpack_require__(27);\n  /**\n   * SoundLoop\n   *\n   * @class p5.SoundLoop\n   * @constructor\n   *\n   * @param {Function} callback this function will be called on each iteration of theloop\n   * @param {Number|String} [interval] amount of time (if a number) or beats (if a string, following <a href = \"https://github.com/Tonejs/Tone.js/wiki/Time\">Tone.Time</a> convention) for each iteration of the loop. Defaults to 1 second.\n   *\n   * @example\n   * <div><code>\n   *  let synth, soundLoop;\n   *  let notePattern = [60, 62, 64, 67, 69, 72];\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *    colorMode(HSB);\n   *    background(0, 0, 86);\n   *    text('tap to start/stop', 10, 20);\n   *\n   *    //the looper's callback is passed the timeFromNow\n   *    //this value should be used as a reference point from\n   *    //which to schedule sounds\n   *    let intervalInSeconds = 0.2;\n   *    soundLoop = new p5.SoundLoop(onSoundLoop, intervalInSeconds);\n   *\n   *    synth = new p5.MonoSynth();\n   * }\n   *\n   * function canvasPressed() {\n   *   // ensure audio is enabled\n   *   userStartAudio();\n   *\n   *   if (soundLoop.isPlaying) {\n   *     soundLoop.stop();\n   *   } else {\n   *     // start the loop\n   *     soundLoop.start();\n   *   }\n   * }\n   *\n   * function onSoundLoop(timeFromNow) {\n   *   let noteIndex = (soundLoop.iterations - 1) % notePattern.length;\n   *   let note = midiToFreq(notePattern[noteIndex]);\n   *   synth.play(note, 0.5, timeFromNow);\n   *   background(noteIndex * 360 / notePattern.length, 50, 100);\n   * }\n   * </code></div>\n   */\n\n\n  p5.SoundLoop = function (callback, interval) {\n    this.callback = callback;\n    /**\n     * musicalTimeMode uses <a href = \"https://github.com/Tonejs/Tone.js/wiki/Time\">Tone.Time</a> convention\n     * true if string, false if number\n     * @property {Boolean} musicalTimeMode\n     */\n\n    this.musicalTimeMode = typeof this._interval === 'number' ? false : true;\n    this._interval = interval || 1;\n    /**\n     * musicalTimeMode variables\n     * modify these only when the interval is specified in musicalTime format as a string\n     */\n\n    this._timeSignature = 4;\n    this._bpm = 60;\n    this.isPlaying = false;\n    /**\n     * Set a limit to the number of loops to play. defaults to Infinity\n     * @property {Number} maxIterations\n     */\n\n    this.maxIterations = Infinity;\n    var self = this;\n    this.clock = new Clock({\n      'callback': function callback(time) {\n        var timeFromNow = time - p5sound.audiocontext.currentTime;\n        /**\n         * Do not initiate the callback if timeFromNow is < 0\n         * This ususually occurs for a few milliseconds when the page\n         * is not fully loaded\n         *\n         * The callback should only be called until maxIterations is reached\n         */\n\n        if (timeFromNow > 0 && self.iterations <= self.maxIterations) {\n          self.callback(timeFromNow);\n        }\n      },\n      'frequency': this._calcFreq()\n    });\n  };\n  /**\n   * Start the loop\n   * @method  start\n   * @for p5.SoundLoop\n   * @param  {Number} [timeFromNow] schedule a starting time\n   */\n\n\n  p5.SoundLoop.prototype.start = function (timeFromNow) {\n    var t = timeFromNow || 0;\n    var now = p5sound.audiocontext.currentTime;\n\n    if (!this.isPlaying) {\n      this.clock.start(now + t);\n      this.isPlaying = true;\n    }\n  };\n  /**\n   * Stop the loop\n   * @method  stop\n   * @for p5.SoundLoop\n   * @param  {Number} [timeFromNow] schedule a stopping time\n   */\n\n\n  p5.SoundLoop.prototype.stop = function (timeFromNow) {\n    var t = timeFromNow || 0;\n    var now = p5sound.audiocontext.currentTime;\n\n    if (this.isPlaying) {\n      this.clock.stop(now + t);\n      this.isPlaying = false;\n    }\n  };\n  /**\n   * Pause the loop\n   * @method pause\n   * @for p5.SoundLoop\n   * @param  {Number} [timeFromNow] schedule a pausing time\n   */\n\n\n  p5.SoundLoop.prototype.pause = function (timeFromNow) {\n    var t = timeFromNow || 0;\n    var now = p5sound.audiocontext.currentTime;\n\n    if (this.isPlaying) {\n      this.clock.pause(now + t);\n      this.isPlaying = false;\n    }\n  };\n  /**\n   * Synchronize loops. Use this method to start two more more loops in synchronization\n   * or to start a loop in synchronization with a loop that is already playing\n   * This method will schedule the implicit loop in sync with the explicit master loop\n   * i.e. loopToStart.syncedStart(loopToSyncWith)\n   *\n   * @method  syncedStart\n   * @for p5.SoundLoop\n   * @param  {Object} otherLoop   a p5.SoundLoop to sync with\n   * @param  {Number} [timeFromNow] Start the loops in sync after timeFromNow seconds\n   */\n\n\n  p5.SoundLoop.prototype.syncedStart = function (otherLoop, timeFromNow) {\n    var t = timeFromNow || 0;\n    var now = p5sound.audiocontext.currentTime;\n\n    if (!otherLoop.isPlaying) {\n      otherLoop.clock.start(now + t);\n      otherLoop.isPlaying = true;\n      this.clock.start(now + t);\n      this.isPlaying = true;\n    } else if (otherLoop.isPlaying) {\n      var time = otherLoop.clock._nextTick - p5sound.audiocontext.currentTime;\n      this.clock.start(now + time);\n      this.isPlaying = true;\n    }\n  };\n  /**\n   * Updates frequency value, reflected in next callback\n   * @private\n   * @for p5.SoundLoop\n   * @method  _update\n   */\n\n\n  p5.SoundLoop.prototype._update = function () {\n    this.clock.frequency.value = this._calcFreq();\n  };\n  /**\n   * Calculate the frequency of the clock's callback based on bpm, interval, and timesignature\n   * @private\n   * @for p5.SoundLoop\n   * @method  _calcFreq\n   * @return {Number} new clock frequency value\n   */\n\n\n  p5.SoundLoop.prototype._calcFreq = function () {\n    if (typeof this._interval === 'number') {\n      this.musicalTimeMode = false;\n      return 1 / this._interval;\n    } \n    else if (typeof this._interval === 'string') {\n        this.musicalTimeMode = true;\n        return this._bpm / 60 / this._convertNotation(this._interval) * (this._timeSignature / 4);\n      }\n  };\n  /**\n   * Convert notation from musical time format to seconds\n   * Uses <a href = \"https://github.com/Tonejs/Tone.js/wiki/Time\">Tone.Time</a> convention\n   * @private\n   * @for p5.SoundLoop\n   * @method _convertNotation\n   * @param  {String} value value to be converted\n   * @return {Number}       converted value in seconds\n   */\n\n\n  p5.SoundLoop.prototype._convertNotation = function (value) {\n    var type = value.slice(-1);\n    value = Number(value.slice(0, -1));\n\n    switch (type) {\n      case 'm':\n        return this._measure(value);\n\n      case 'n':\n        return this._note(value);\n\n      default:\n        console.warn('Specified interval is not formatted correctly. See Tone.js ' + 'timing reference for more info: https://github.com/Tonejs/Tone.js/wiki/Time');\n    }\n  };\n  /**\n   * Helper conversion methods of measure and note\n   * @private\n   * @for p5.SoundLoop\n   * @method  _measure\n   */\n\n\n  p5.SoundLoop.prototype._measure = function (value) {\n    return value * this._timeSignature;\n  };\n  /**\n   * @private\n   * @method  _note\n   * @for p5.SoundLoop\n   */\n\n\n  p5.SoundLoop.prototype._note = function (value) {\n    return this._timeSignature / value;\n  };\n  /**\n   * Getters and Setters, setting any paramter will result in a change in the clock's\n   * frequency, that will be reflected after the next callback\n   * beats per minute (defaults to 60)\n   * @property {Number} bpm\n   * @for p5.SoundLoop\n   */\n\n\n  Object.defineProperty(p5.SoundLoop.prototype, 'bpm', {\n    get: function get() {\n      return this._bpm;\n    },\n    set: function set(bpm) {\n      if (!this.musicalTimeMode) {\n        console.warn('Changing the BPM in \"seconds\" mode has no effect. ' + 'BPM is only relevant in musicalTimeMode ' + 'when the interval is specified as a string ' + '(\"2n\", \"4n\", \"1m\"...etc)');\n      }\n\n      this._bpm = bpm;\n\n      this._update();\n    }\n  });\n  /**\n   * number of quarter notes in a measure (defaults to 4)\n   * @property {Number} timeSignature\n   * @for p5.SoundLoop\n   */\n\n  Object.defineProperty(p5.SoundLoop.prototype, 'timeSignature', {\n    get: function get() {\n      return this._timeSignature;\n    },\n    set: function set(timeSig) {\n      if (!this.musicalTimeMode) {\n        console.warn('Changing the timeSignature in \"seconds\" mode has no effect. ' + 'BPM is only relevant in musicalTimeMode ' + 'when the interval is specified as a string ' + '(\"2n\", \"4n\", \"1m\"...etc)');\n      }\n\n      this._timeSignature = timeSig;\n\n      this._update();\n    }\n  });\n  /**\n   * length of the loops interval\n   * @property {Number|String} interval\n   * @for p5.SoundLoop\n   */\n\n  Object.defineProperty(p5.SoundLoop.prototype, 'interval', {\n    get: function get() {\n      return this._interval;\n    },\n    set: function set(interval) {\n      this.musicalTimeMode = typeof interval === 'Number' ? false : true;\n      this._interval = interval;\n\n      this._update();\n    }\n  });\n  /**\n   * how many times the callback has been called so far\n   * @property {Number} iterations\n   * @for p5.SoundLoop\n   * @readonly\n   */\n\n  Object.defineProperty(p5.SoundLoop.prototype, 'iterations', {\n    get: function get() {\n      return this.clock.ticks;\n    }\n  });\n  return p5.SoundLoop;\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  'use strict';\n\n  var p5sound = __webpack_require__(1);\n\n  var Effect = __webpack_require__(4);\n\n  var CustomError = __webpack_require__(11);\n  /**\n   * Compressor is an audio effect class that performs dynamics compression\n   * on an audio input source. This is a very commonly used technique in music\n   * and sound production. Compression creates an overall louder, richer,\n   * and fuller sound by lowering the volume of louds and raising that of softs.\n   * Compression can be used to avoid clipping (sound distortion due to\n   * peaks in volume) and is especially useful when many sounds are played\n   * at once. Compression can be used on indivudal sound sources in addition\n   * to the master output.\n   *\n   * This class extends <a href = \"/reference/#/p5.Effect\">p5.Effect</a>.\n   * Methods <a href = \"/reference/#/p5.Effect/amp\">amp()</a>, <a href = \"/reference/#/p5.Effect/chain\">chain()</a>,\n   * <a href = \"/reference/#/p5.Effect/drywet\">drywet()</a>, <a href = \"/reference/#/p5.Effect/connect\">connect()</a>, and\n   * <a href = \"/reference/#/p5.Effect/disconnect\">disconnect()</a> are available.\n   *\n   * @class p5.Compressor\n   * @constructor\n   * @extends p5.Effect\n   *\n   *\n   */\n\n\n  p5.Compressor = function () {\n    Effect.call(this);\n    /**\n     * The p5.Compressor is built with a <a href=\"https://www.w3.org/TR/webaudio/#the-dynamicscompressornode-interface\"\n    *   target=\"_blank\" title=\"W3 spec for Dynamics Compressor Node\">Web Audio Dynamics Compressor Node\n    *   </a>\n     * @property {AudioNode} compressor\n     */\n\n    this.compressor = this.ac.createDynamicsCompressor();\n    this.input.connect(this.compressor);\n    this.compressor.connect(this.wet);\n  };\n\n  p5.Compressor.prototype = Object.create(Effect.prototype);\n  /**\n   * Performs the same function as .connect, but also accepts\n   * optional parameters to set compressor's audioParams\n   * @method process\n   * @for p5.Compressor\n   *\n   * @param {Object} src         Sound source to be connected\n   *\n   * @param {Number} [attack]     The amount of time (in seconds) to reduce the gain by 10dB,\n   *                            default = .003, range 0 - 1\n   * @param {Number} [knee]       A decibel value representing the range above the\n   *                            threshold where the curve smoothly transitions to the \"ratio\" portion.\n   *                            default = 30, range 0 - 40\n   * @param {Number} [ratio]      The amount of dB change in input for a 1 dB change in output\n   *                            default = 12, range 1 - 20\n   * @param {Number} [threshold]  The decibel value above which the compression will start taking effect\n   *                            default = -24, range -100 - 0\n   * @param {Number} [release]    The amount of time (in seconds) to increase the gain by 10dB\n   *                            default = .25, range 0 - 1\n   */\n\n  p5.Compressor.prototype.process = function (src, attack, knee, ratio, threshold, release) {\n    src.connect(this.input);\n    this.set(attack, knee, ratio, threshold, release);\n  };\n  /**\n   * Set the paramters of a compressor.\n   * @method  set\n   * @for p5.Compressor\n   * @param {Number} attack     The amount of time (in seconds) to reduce the gain by 10dB,\n   *                            default = .003, range 0 - 1\n   * @param {Number} knee       A decibel value representing the range above the\n   *                            threshold where the curve smoothly transitions to the \"ratio\" portion.\n   *                            default = 30, range 0 - 40\n   * @param {Number} ratio      The amount of dB change in input for a 1 dB change in output\n   *                            default = 12, range 1 - 20\n   * @param {Number} threshold  The decibel value above which the compression will start taking effect\n   *                            default = -24, range -100 - 0\n   * @param {Number} release    The amount of time (in seconds) to increase the gain by 10dB\n   *                            default = .25, range 0 - 1\n   */\n\n\n  p5.Compressor.prototype.set = function (attack, knee, ratio, threshold, release) {\n    if (typeof attack !== 'undefined') {\n      this.attack(attack);\n    }\n\n    if (typeof knee !== 'undefined') {\n      this.knee(knee);\n    }\n\n    if (typeof ratio !== 'undefined') {\n      this.ratio(ratio);\n    }\n\n    if (typeof threshold !== 'undefined') {\n      this.threshold(threshold);\n    }\n\n    if (typeof release !== 'undefined') {\n      this.release(release);\n    }\n  };\n  /**\n   * Get current attack or set value w/ time ramp\n   *\n   *\n   * @method attack\n   * @for p5.Compressor\n   * @param {Number} [attack] Attack is the amount of time (in seconds) to reduce the gain by 10dB,\n   *                          default = .003, range 0 - 1\n   * @param {Number} [time]  Assign time value to schedule the change in value\n   */\n\n\n  p5.Compressor.prototype.attack = function (attack, time) {\n    var t = time || 0;\n\n    if (typeof attack == 'number') {\n      this.compressor.attack.value = attack;\n      this.compressor.attack.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.compressor.attack.linearRampToValueAtTime(attack, this.ac.currentTime + 0.02 + t);\n    } else if (typeof attack !== 'undefined') {\n      attack.connect(this.compressor.attack);\n    }\n\n    return this.compressor.attack.value;\n  };\n  /**\n    * Get current knee or set value w/ time ramp\n    *\n    * @method knee\n    * @for p5.Compressor\n    * @param {Number} [knee] A decibel value representing the range above the\n    *                        threshold where the curve smoothly transitions to the \"ratio\" portion.\n    *                        default = 30, range 0 - 40\n    * @param {Number} [time]  Assign time value to schedule the change in value\n    */\n\n\n  p5.Compressor.prototype.knee = function (knee, time) {\n    var t = time || 0;\n\n    if (typeof knee == 'number') {\n      this.compressor.knee.value = knee;\n      this.compressor.knee.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.compressor.knee.linearRampToValueAtTime(knee, this.ac.currentTime + 0.02 + t);\n    } else if (typeof knee !== 'undefined') {\n      knee.connect(this.compressor.knee);\n    }\n\n    return this.compressor.knee.value;\n  };\n  /**\n   * Get current ratio or set value w/ time ramp\n   * @method ratio\n   * @for p5.Compressor\n   * @param {Number} [ratio]      The amount of dB change in input for a 1 dB change in output\n   *                            default = 12, range 1 - 20\n   * @param {Number} [time]  Assign time value to schedule the change in value\n   */\n\n\n  p5.Compressor.prototype.ratio = function (ratio, time) {\n    var t = time || 0;\n\n    if (typeof ratio == 'number') {\n      this.compressor.ratio.value = ratio;\n      this.compressor.ratio.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.compressor.ratio.linearRampToValueAtTime(ratio, this.ac.currentTime + 0.02 + t);\n    } else if (typeof ratio !== 'undefined') {\n      ratio.connect(this.compressor.ratio);\n    }\n\n    return this.compressor.ratio.value;\n  };\n  /**\n   * Get current threshold or set value w/ time ramp\n   * @method threshold\n   * @for p5.Compressor\n   * @param {Number} threshold  The decibel value above which the compression will start taking effect\n   *                            default = -24, range -100 - 0\n   * @param {Number} [time]  Assign time value to schedule the change in value\n   */\n\n\n  p5.Compressor.prototype.threshold = function (threshold, time) {\n    var t = time || 0;\n\n    if (typeof threshold == 'number') {\n      this.compressor.threshold.value = threshold;\n      this.compressor.threshold.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.compressor.threshold.linearRampToValueAtTime(threshold, this.ac.currentTime + 0.02 + t);\n    } else if (typeof threshold !== 'undefined') {\n      threshold.connect(this.compressor.threshold);\n    }\n\n    return this.compressor.threshold.value;\n  };\n  /**\n   * Get current release or set value w/ time ramp\n   * @method release\n   * @for p5.Compressor\n   * @param {Number} release    The amount of time (in seconds) to increase the gain by 10dB\n   *                            default = .25, range 0 - 1\n   *\n   * @param {Number} [time]  Assign time value to schedule the change in value\n   */\n\n\n  p5.Compressor.prototype.release = function (release, time) {\n    var t = time || 0;\n\n    if (typeof release == 'number') {\n      this.compressor.release.value = release;\n      this.compressor.release.cancelScheduledValues(this.ac.currentTime + 0.01 + t);\n      this.compressor.release.linearRampToValueAtTime(release, this.ac.currentTime + 0.02 + t);\n    } else if (typeof number !== 'undefined') {\n      release.connect(this.compressor.release);\n    }\n\n    return this.compressor.release.value;\n  };\n  /**\n   * Return the current reduction value\n   *\n   * @method reduction\n   * @for p5.Compressor\n   * @return {Number} Value of the amount of gain reduction that is applied to the signal\n   */\n\n\n  p5.Compressor.prototype.reduction = function () {\n    return this.compressor.reduction.value;\n  };\n\n  p5.Compressor.prototype.dispose = function () {\n    Effect.prototype.dispose.apply(this);\n\n    if (this.compressor) {\n      this.compressor.disconnect();\n      delete this.compressor;\n    }\n  };\n\n  return p5.Compressor;\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n\n  var _require = __webpack_require__(6),\n      convertToWav = _require.convertToWav,\n      safeBufferSize = _require.safeBufferSize;\n\n  var processorNames = __webpack_require__(10);\n\n  var ac = p5sound.audiocontext;\n  /**\n   *  <p>Record sounds for playback and/or to save as a .wav file.\n   *  The p5.SoundRecorder records all sound output from your sketch,\n   *  or can be assigned a specific source with setInput().</p>\n   *  <p>The record() method accepts a p5.SoundFile as a parameter.\n   *  When playback is stopped (either after the given amount of time,\n   *  or with the stop() method), the p5.SoundRecorder will send its\n   *  recording to that p5.SoundFile for playback.</p>\n   *\n   *  @class p5.SoundRecorder\n   *  @constructor\n   *  @example\n   *  <div><code>\n   *  let mic, recorder, soundFile;\n   *  let state = 0;\n   *\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(canvasPressed);\n   *    background(220);\n   *    textAlign(CENTER, CENTER);\n   *\n   *    // create an audio in\n   *    mic = new p5.AudioIn();\n   *\n   *    // prompts user to enable their browser mic\n   *    mic.start();\n   *\n   *    // create a sound recorder\n   *    recorder = new p5.SoundRecorder();\n   *\n   *    // connect the mic to the recorder\n   *    recorder.setInput(mic);\n   *\n   *    // this sound file will be used to\n   *    // playback & save the recording\n   *    soundFile = new p5.SoundFile();\n   *\n   *    text('tap to record', width/2, height/2);\n   *  }\n   *\n   *  function canvasPressed() {\n   *    // ensure audio is enabled\n   *    userStartAudio();\n   *\n   *    // make sure user enabled the mic\n   *    if (state === 0 && mic.enabled) {\n   *\n   *      // record to our p5.SoundFile\n   *      recorder.record(soundFile);\n   *\n   *      background(255,0,0);\n   *      text('Recording!', width/2, height/2);\n   *      state++;\n   *    }\n   *    else if (state === 1) {\n   *      background(0,255,0);\n   *\n   *      // stop recorder and\n   *      // send result to soundFile\n   *      recorder.stop();\n   *\n   *      text('Done! Tap to play and download', width/2, height/2, width - 20);\n   *      state++;\n   *    }\n   *\n   *    else if (state === 2) {\n   *      soundFile.play(); // play the result!\n   *      save(soundFile, 'mySound.wav');\n   *      state++;\n   *    }\n   *  }\n   *  </div></code>\n   */\n\n  p5.SoundRecorder = function () {\n    this.input = ac.createGain();\n    this.output = ac.createGain();\n    this._inputChannels = 2;\n    this._outputChannels = 2; \n\n    var workletBufferSize = safeBufferSize(1024);\n    this._workletNode = new AudioWorkletNode(ac, processorNames.recorderProcessor, {\n      outputChannelCount: [this._outputChannels],\n      processorOptions: {\n        numInputChannels: this._inputChannels,\n        bufferSize: workletBufferSize\n      }\n    });\n\n    this._workletNode.port.onmessage = function (event) {\n      if (event.data.name === 'buffers') {\n        var buffers = [new Float32Array(event.data.leftBuffer), new Float32Array(event.data.rightBuffer)];\n\n        this._callback(buffers);\n      }\n    }.bind(this);\n    /**\n     *  callback invoked when the recording is over\n     *  @private\n     *  @type Function(Float32Array)\n     */\n\n\n    this._callback = function () {}; \n\n\n    this._workletNode.connect(p5.soundOut._silentNode);\n\n    this.setInput(); \n\n    p5sound.soundArray.push(this);\n  };\n  /**\n   *  Connect a specific device to the p5.SoundRecorder.\n   *  If no parameter is given, p5.SoundRecorer will record\n   *  all audible p5.sound from your sketch.\n   *\n   *  @method  setInput\n   *  @for p5.SoundRecorder\n   *  @param {Object} [unit] p5.sound object or a web audio unit\n   *                         that outputs sound\n   */\n\n\n  p5.SoundRecorder.prototype.setInput = function (unit) {\n    this.input.disconnect();\n    this.input = null;\n    this.input = ac.createGain();\n    this.input.connect(this._workletNode);\n    this.input.connect(this.output);\n\n    if (unit) {\n      unit.connect(this.input);\n    } else {\n      p5.soundOut.output.connect(this.input);\n    }\n  };\n  /**\n   *  Start recording. To access the recording, provide\n   *  a p5.SoundFile as the first parameter. The p5.SoundRecorder\n   *  will send its recording to that p5.SoundFile for playback once\n   *  recording is complete. Optional parameters include duration\n   *  (in seconds) of the recording, and a callback function that\n   *  will be called once the complete recording has been\n   *  transfered to the p5.SoundFile.\n   *\n   *  @method  record\n   *  @for p5.SoundRecorder\n   *  @param  {p5.SoundFile}   soundFile    p5.SoundFile\n   *  @param  {Number}   [duration] Time (in seconds)\n   *  @param  {Function} [callback] The name of a function that will be\n   *                                called once the recording completes\n   */\n\n\n  p5.SoundRecorder.prototype.record = function (sFile, duration, callback) {\n    this._workletNode.port.postMessage({\n      name: 'start',\n      duration: duration\n    });\n\n    if (sFile && callback) {\n      this._callback = function (buffer) {\n        sFile.setBuffer(buffer);\n        callback();\n      };\n    } else if (sFile) {\n      this._callback = function (buffer) {\n        sFile.setBuffer(buffer);\n      };\n    }\n  };\n  /**\n   *  Stop the recording. Once the recording is stopped,\n   *  the results will be sent to the p5.SoundFile that\n   *  was given on .record(), and if a callback function\n   *  was provided on record, that function will be called.\n   *\n   *  @method  stop\n   *  @for p5.SoundRecorder\n   */\n\n\n  p5.SoundRecorder.prototype.stop = function () {\n    this._workletNode.port.postMessage({\n      name: 'stop'\n    });\n  };\n\n  p5.SoundRecorder.prototype.dispose = function () {\n    var index = p5sound.soundArray.indexOf(this);\n    p5sound.soundArray.splice(index, 1);\n\n    this._callback = function () {};\n\n    if (this.input) {\n      this.input.disconnect();\n    }\n\n    this.input = null;\n    this._workletNode = null;\n  };\n  /**\n   * Save a p5.SoundFile as a .wav file. The browser will prompt the user\n   * to download the file to their device.\n   * For uploading audio to a server, use\n   * <a href=\"/docs/reference/#/p5.SoundFile/saveBlob\">`p5.SoundFile.saveBlob`</a>.\n   *\n   *  @for p5\n   *  @method saveSound\n   *  @param  {p5.SoundFile} soundFile p5.SoundFile that you wish to save\n   *  @param  {String} fileName      name of the resulting .wav file.\n   */\n\n\n  p5.prototype.saveSound = function (soundFile, fileName) {\n    var dataView = convertToWav(soundFile.buffer);\n    p5.prototype.writeFile([dataView], fileName, 'wav');\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n  /**\n   *  <p>PeakDetect works in conjunction with p5.FFT to\n   *  look for onsets in some or all of the frequency spectrum.\n   *  </p>\n   *  <p>\n   *  To use p5.PeakDetect, call <code>update</code> in the draw loop\n   *  and pass in a p5.FFT object.\n   *  </p>\n   *  <p>\n   *  You can listen for a specific part of the frequency spectrum by\n   *  setting the range between <code>freq1</code> and <code>freq2</code>.\n   *  </p>\n   *\n   *  <p><code>threshold</code> is the threshold for detecting a peak,\n   *  scaled between 0 and 1. It is logarithmic, so 0.1 is half as loud\n   *  as 1.0.</p>\n   *\n   *  <p>\n   *  The update method is meant to be run in the draw loop, and\n   *  <b>frames</b> determines how many loops must pass before\n   *  another peak can be detected.\n   *  For example, if the frameRate() = 60, you could detect the beat of a\n   *  120 beat-per-minute song with this equation:\n   *  <code> framesPerPeak = 60 / (estimatedBPM / 60 );</code>\n   *  </p>\n   *\n   *  <p>\n   *  Based on example contribtued by @b2renger, and a simple beat detection\n   *  explanation by <a\n   *  href=\"http://www.airtightinteractive.com/2013/10/making-audio-reactive-visuals/\"\n   *  target=\"_blank\">Felix Turner</a>.\n   *  </p>\n   *\n   *  @class  p5.PeakDetect\n   *  @constructor\n   *  @param {Number} [freq1]     lowFrequency - defaults to 20Hz\n   *  @param {Number} [freq2]     highFrequency - defaults to 20000 Hz\n   *  @param {Number} [threshold] Threshold for detecting a beat between 0 and 1\n   *                            scaled logarithmically where 0.1 is 1/2 the loudness\n   *                            of 1.0. Defaults to 0.35.\n   *  @param {Number} [framesPerPeak]     Defaults to 20.\n   *  @example\n   *  <div><code>\n   *\n   *  var cnv, soundFile, fft, peakDetect;\n   *  var ellipseWidth = 10;\n   *\n   *  function preload() {\n   *    soundFile = loadSound('assets/beat.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    background(0);\n   *    noStroke();\n   *    fill(255);\n   *    textAlign(CENTER);\n   *\n   *    // p5.PeakDetect requires a p5.FFT\n   *    fft = new p5.FFT();\n   *    peakDetect = new p5.PeakDetect();\n   *  }\n   *\n   *  function draw() {\n   *    background(0);\n   *    text('click to play/pause', width/2, height/2);\n   *\n   *    // peakDetect accepts an fft post-analysis\n   *    fft.analyze();\n   *    peakDetect.update(fft);\n   *\n   *    if ( peakDetect.isDetected ) {\n   *      ellipseWidth = 50;\n   *    } else {\n   *      ellipseWidth *= 0.95;\n   *    }\n   *\n   *    ellipse(width/2, height/2, ellipseWidth, ellipseWidth);\n   *  }\n   *\n   *  // toggle play/stop when canvas is clicked\n   *  function mouseClicked() {\n   *    if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n   *      if (soundFile.isPlaying() ) {\n   *        soundFile.stop();\n   *      } else {\n   *        soundFile.play();\n   *      }\n   *    }\n   *  }\n   *  </code></div>\n   */\n  p5.PeakDetect = function (freq1, freq2, threshold, _framesPerPeak) {\n    this.framesPerPeak = _framesPerPeak || 20;\n    this.framesSinceLastPeak = 0;\n    this.decayRate = 0.95;\n    this.threshold = threshold || 0.35;\n    this.cutoff = 0; \n\n    this.cutoffMult = 1.5;\n    this.energy = 0;\n    this.penergy = 0; \n\n    this.currentValue = 0;\n    /**\n     *  isDetected is set to true when a peak is detected.\n     *\n     *  @attribute isDetected {Boolean}\n     *  @default  false\n     */\n\n    this.isDetected = false;\n    this.f1 = freq1 || 40;\n    this.f2 = freq2 || 20000; \n\n    this._onPeak = function () {};\n  };\n  /**\n   *  The update method is run in the draw loop.\n   *\n   *  Accepts an FFT object. You must call .analyze()\n   *  on the FFT object prior to updating the peakDetect\n   *  because it relies on a completed FFT analysis.\n   *\n   *  @method  update\n   *  @param  {p5.FFT} fftObject A p5.FFT object\n   */\n\n\n  p5.PeakDetect.prototype.update = function (fftObject) {\n    var nrg = this.energy = fftObject.getEnergy(this.f1, this.f2) / 255;\n\n    if (nrg > this.cutoff && nrg > this.threshold && nrg - this.penergy > 0) {\n      this._onPeak();\n\n      this.isDetected = true; \n\n      this.cutoff = nrg * this.cutoffMult;\n      this.framesSinceLastPeak = 0;\n    } else {\n      this.isDetected = false;\n\n      if (this.framesSinceLastPeak <= this.framesPerPeak) {\n        this.framesSinceLastPeak++;\n      } else {\n        this.cutoff *= this.decayRate;\n        this.cutoff = Math.max(this.cutoff, this.threshold);\n      }\n    }\n\n    this.currentValue = nrg;\n    this.penergy = nrg;\n  };\n  /**\n   *  onPeak accepts two arguments: a function to call when\n   *  a peak is detected. The value of the peak,\n   *  between 0.0 and 1.0, is passed to the callback.\n   *\n   *  @method  onPeak\n   *  @param  {Function} callback Name of a function that will\n   *                              be called when a peak is\n   *                              detected.\n   *  @param  {Object}   [val]    Optional value to pass\n   *                              into the function when\n   *                              a peak is detected.\n   *  @example\n   *  <div><code>\n   *  var cnv, soundFile, fft, peakDetect;\n   *  var ellipseWidth = 0;\n   *\n   *  function preload() {\n   *    soundFile = loadSound('assets/beat.mp3');\n   *  }\n   *\n   *  function setup() {\n   *    cnv = createCanvas(100,100);\n   *    textAlign(CENTER);\n   *\n   *    fft = new p5.FFT();\n   *    peakDetect = new p5.PeakDetect();\n   *\n   *    setupSound();\n   *\n   *    // when a beat is detected, call triggerBeat()\n   *    peakDetect.onPeak(triggerBeat);\n   *  }\n   *\n   *  function draw() {\n   *    background(0);\n   *    fill(255);\n   *    text('click to play', width/2, height/2);\n   *\n   *    fft.analyze();\n   *    peakDetect.update(fft);\n   *\n   *    ellipseWidth *= 0.95;\n   *    ellipse(width/2, height/2, ellipseWidth, ellipseWidth);\n   *  }\n   *\n   *  // this function is called by peakDetect.onPeak\n   *  function triggerBeat() {\n   *    ellipseWidth = 50;\n   *  }\n   *\n   *  // mouseclick starts/stops sound\n   *  function setupSound() {\n   *    cnv.mouseClicked( function() {\n   *      if (soundFile.isPlaying() ) {\n   *        soundFile.stop();\n   *      } else {\n   *        soundFile.play();\n   *      }\n   *    });\n   *  }\n   *  </code></div>\n   */\n\n\n  p5.PeakDetect.prototype.onPeak = function (callback, val) {\n    var self = this;\n\n    self._onPeak = function () {\n      callback(self.energy, val);\n    };\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var p5sound = __webpack_require__(1);\n  /**\n   *  A gain node is usefull to set the relative volume of sound.\n   *  It's typically used to build mixers.\n   *\n   *  @class p5.Gain\n   *  @constructor\n   *  @example\n   *  <div><code>\n   *\n   *  // load two soundfile and crossfade beetween them\n   *  let sound1,sound2;\n   *  let sound1Gain, sound2Gain, masterGain;\n   *  function preload(){\n   *    soundFormats('ogg', 'mp3');\n   *    sound1 = loadSound('assets/Damscray_-_Dancing_Tiger_01');\n   *    sound2 = loadSound('assets/beat');\n   *  }\n   *  function setup() {\n   *    let cnv = createCanvas(100, 100);\n   *    cnv.mousePressed(startSound);\n   *    // create a 'master' gain to which we will connect both soundfiles\n   *    masterGain = new p5.Gain();\n   *    masterGain.connect();\n   *    sound1.disconnect(); // diconnect from p5 output\n   *    sound1Gain = new p5.Gain(); // setup a gain node\n   *    sound1Gain.setInput(sound1); // connect the first sound to its input\n   *    sound1Gain.connect(masterGain); // connect its output to the 'master'\n   *    sound2.disconnect();\n   *    sound2Gain = new p5.Gain();\n   *    sound2Gain.setInput(sound2);\n   *    sound2Gain.connect(masterGain);\n   *  }\n   *  function startSound() {\n   *    sound1.loop();\n   *    sound2.loop();\n   *    loop();\n   *  }\n   *  function mouseReleased() {\n   *    sound1.stop();\n   *    sound2.stop();\n   *  }\n   *  function draw(){\n   *    background(220);\n   *    textAlign(CENTER);\n   *    textSize(11);\n   *    fill(0);\n   *    if (!sound1.isPlaying()) {\n   *      text('tap and drag to play', width/2, height/2);\n   *      return;\n   *    }\n   *    // map the horizontal position of the mouse to values useable for volume    *  control of sound1\n   *    var sound1Volume = constrain(map(mouseX,width,0,0,1), 0, 1);\n   *    var sound2Volume = 1-sound1Volume;\n   *    sound1Gain.amp(sound1Volume);\n   *    sound2Gain.amp(sound2Volume);\n   *    // map the vertical position of the mouse to values useable for 'master    *  volume control'\n   *    var masterVolume = constrain(map(mouseY,height,0,0,1), 0, 1);\n   *    masterGain.amp(masterVolume);\n   *    text('master', width/2, height - masterVolume * height * 0.9)\n   *    fill(255, 0, 255);\n   *    textAlign(LEFT);\n   *    text('sound1', 5, height - sound1Volume * height * 0.9);\n   *    textAlign(RIGHT);\n   *    text('sound2', width - 5, height - sound2Volume * height * 0.9);\n   *  }\n   *</code></div>\n   */\n\n\n  p5.Gain = function () {\n    this.ac = p5sound.audiocontext;\n    this.input = this.ac.createGain();\n    this.output = this.ac.createGain(); \n\n    this.input.gain.value = 0.5;\n    this.input.connect(this.output); \n\n    p5sound.soundArray.push(this);\n  };\n  /**\n   *  Connect a source to the gain node.\n   *\n   *  @method  setInput\n   *  @for p5.Gain\n   *  @param  {Object} src     p5.sound / Web Audio object with a sound\n   *                           output.\n   */\n\n\n  p5.Gain.prototype.setInput = function (src) {\n    src.connect(this.input);\n  };\n  /**\n   *  Send output to a p5.sound or web audio object\n   *\n   *  @method  connect\n   *  @for p5.Gain\n   *  @param  {Object} unit\n   */\n\n\n  p5.Gain.prototype.connect = function (unit) {\n    var u = unit || p5.soundOut.input;\n    this.output.connect(u.input ? u.input : u);\n  };\n  /**\n   *  Disconnect all output.\n   *\n   *  @method disconnect\n   *  @for p5.Gain\n   */\n\n\n  p5.Gain.prototype.disconnect = function () {\n    if (this.output) {\n      this.output.disconnect();\n    }\n  };\n  /**\n   *  Set the output level of the gain node.\n   *\n   *  @method  amp\n   *  @for p5.Gain\n   *  @param  {Number} volume amplitude between 0 and 1.0\n   *  @param  {Number} [rampTime] create a fade that lasts rampTime\n   *  @param  {Number} [timeFromNow] schedule this event to happen\n   *                                seconds from now\n   */\n\n\n  p5.Gain.prototype.amp = function (vol, rampTime, tFromNow) {\n    var rampTime = rampTime || 0;\n    var tFromNow = tFromNow || 0;\n    var now = p5sound.audiocontext.currentTime;\n    var currentVol = this.output.gain.value;\n    this.output.gain.cancelScheduledValues(now);\n    this.output.gain.linearRampToValueAtTime(currentVol, now + tFromNow);\n    this.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime);\n  };\n\n  p5.Gain.prototype.dispose = function () {\n    var index = p5sound.soundArray.indexOf(this);\n    p5sound.soundArray.splice(index, 1);\n\n    if (this.output) {\n      this.output.disconnect();\n      delete this.output;\n    }\n\n    if (this.input) {\n      this.input.disconnect();\n      delete this.input;\n    }\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n }),\n (function(module, exports, __webpack_require__) {\n\n\"use strict\";\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) {\n  var Effect = __webpack_require__(4);\n\n\n  function makeDistortionCurve(amount) {\n    var k = typeof amount === 'number' ? amount : 50;\n    var numSamples = 44100;\n    var curve = new Float32Array(numSamples);\n    var deg = Math.PI / 180;\n    var i = 0;\n    var x;\n\n    for (; i < numSamples; ++i) {\n      x = i * 2 / numSamples - 1;\n      curve[i] = (3 + k) * x * 20 * deg / (Math.PI + k * Math.abs(x));\n    }\n\n    return curve;\n  }\n  /**\n   * A Distortion effect created with a Waveshaper Node,\n   * with an approach adapted from\n   * [Kevin Ennis](http://stackoverflow.com/questions/22312841/waveshaper-node-in-webaudio-how-to-emulate-distortion)\n   *\n   * This class extends <a href = \"/reference/#/p5.Effect\">p5.Effect</a>.\n   * Methods <a href = \"/reference/#/p5.Effect/amp\">amp()</a>, <a href = \"/reference/#/p5.Effect/chain\">chain()</a>,\n   * <a href = \"/reference/#/p5.Effect/drywet\">drywet()</a>, <a href = \"/reference/#/p5.Effect/connect\">connect()</a>, and\n   * <a href = \"/reference/#/p5.Effect/disconnect\">disconnect()</a> are available.\n   *\n   * @class p5.Distortion\n   * @extends p5.Effect\n   * @constructor\n   * @param {Number} [amount=0.25] Unbounded distortion amount.\n   *                                Normal values range from 0-1.\n   * @param {String} [oversample='none'] 'none', '2x', or '4x'.\n   *\n   */\n\n\n  p5.Distortion = function (amount, oversample) {\n    Effect.call(this);\n\n    if (typeof amount === 'undefined') {\n      amount = 0.25;\n    }\n\n    if (typeof amount !== 'number') {\n      throw new Error('amount must be a number');\n    }\n\n    if (typeof oversample === 'undefined') {\n      oversample = '2x';\n    }\n\n    if (typeof oversample !== 'string') {\n      throw new Error('oversample must be a String');\n    }\n\n    var curveAmount = p5.prototype.map(amount, 0.0, 1.0, 0, 2000);\n    /**\n     *  The p5.Distortion is built with a\n     *  <a href=\"http://www.w3.org/TR/webaudio/#WaveShaperNode\">\n     *  Web Audio WaveShaper Node</a>.\n     *\n     *  @property {AudioNode} WaveShaperNode\n     */\n\n    this.waveShaperNode = this.ac.createWaveShaper();\n    this.amount = curveAmount;\n    this.waveShaperNode.curve = makeDistortionCurve(curveAmount);\n    this.waveShaperNode.oversample = oversample;\n    this.input.connect(this.waveShaperNode);\n    this.waveShaperNode.connect(this.wet);\n  };\n\n  p5.Distortion.prototype = Object.create(Effect.prototype);\n  /**\n   * Process a sound source, optionally specify amount and oversample values.\n   *\n   * @method process\n   * @for p5.Distortion\n   * @param {Number} [amount=0.25] Unbounded distortion amount.\n   *                                Normal values range from 0-1.\n   * @param {String} [oversample='none'] 'none', '2x', or '4x'.\n   */\n\n  p5.Distortion.prototype.process = function (src, amount, oversample) {\n    src.connect(this.input);\n    this.set(amount, oversample);\n  };\n  /**\n   * Set the amount and oversample of the waveshaper distortion.\n   *\n   * @method set\n   * @for p5.Distortion\n   * @param {Number} [amount=0.25] Unbounded distortion amount.\n   *                                Normal values range from 0-1.\n   * @param {String} [oversample='none'] 'none', '2x', or '4x'.\n   */\n\n\n  p5.Distortion.prototype.set = function (amount, oversample) {\n    if (amount) {\n      var curveAmount = p5.prototype.map(amount, 0.0, 1.0, 0, 2000);\n      this.amount = curveAmount;\n      this.waveShaperNode.curve = makeDistortionCurve(curveAmount);\n    }\n\n    if (oversample) {\n      this.waveShaperNode.oversample = oversample;\n    }\n  };\n  /**\n   *  Return the distortion amount, typically between 0-1.\n   *\n   *  @method  getAmount\n   *  @for p5.Distortion\n   *  @return {Number} Unbounded distortion amount.\n   *                   Normal values range from 0-1.\n   */\n\n\n  p5.Distortion.prototype.getAmount = function () {\n    return this.amount;\n  };\n  /**\n   *  Return the oversampling.\n   *\n   *  @method getOversample\n   *  @for p5.Distortion\n   *  @return {String} Oversample can either be 'none', '2x', or '4x'.\n   */\n\n\n  p5.Distortion.prototype.getOversample = function () {\n    return this.waveShaperNode.oversample;\n  };\n\n  p5.Distortion.prototype.dispose = function () {\n    Effect.prototype.dispose.apply(this);\n\n    if (this.waveShaperNode) {\n      this.waveShaperNode.disconnect();\n      this.waveShaperNode = null;\n    }\n  };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n })\n ]);\n"
  },
  {
    "path": "pyp5js/http_local/static/js/p5/p5.js",
    "content": "/*! p5.js v1.0.0 February 29, 2020 */\n(function(f) {\n  if (typeof exports === 'object' && typeof module !== 'undefined') {\n    module.exports = f();\n  } else if (typeof define === 'function' && define.amd) {\n    define([], f);\n  } else {\n    var g;\n    if (typeof window !== 'undefined') {\n      g = window;\n    } else if (typeof global !== 'undefined') {\n      g = global;\n    } else if (typeof self !== 'undefined') {\n      g = self;\n    } else {\n      g = this;\n    }\n    g.p5 = f();\n  }\n})(function() {\n  var define, module, exports;\n  return (function() {\n    function r(e, n, t) {\n      function o(i, f) {\n        if (!n[i]) {\n          if (!e[i]) {\n            var c = 'function' == typeof require && require;\n            if (!f && c) return c(i, !0);\n            if (u) return u(i, !0);\n            var a = new Error(\"Cannot find module '\" + i + \"'\");\n            throw ((a.code = 'MODULE_NOT_FOUND'), a);\n          }\n          var p = (n[i] = { exports: {} });\n          e[i][0].call(\n            p.exports,\n            function(r) {\n              var n = e[i][1][r];\n              return o(n || r);\n            },\n            p,\n            p.exports,\n            r,\n            e,\n            n,\n            t\n          );\n        }\n        return n[i].exports;\n      }\n      for (var u = 'function' == typeof require && require, i = 0; i < t.length; i++)\n        o(t[i]);\n      return o;\n    }\n    return r;\n  })()(\n    {\n      1: [\n        function(_dereq_, module, exports) {\n          module.exports = {\n            project: {\n              name: 'p5',\n              description:\n                '[![npm version](https://badge.fury.io/js/p5.svg)](https://www.npmjs.com/package/p5)',\n              version: '1.0.0',\n              url: 'https://github.com/processing/p5.js#readme'\n            },\n            files: {\n              'src/color/color_conversion.js': {\n                name: 'src/color/color_conversion.js',\n                modules: {\n                  'Color Conversion': 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/color/creating_reading.js': {\n                name: 'src/color/creating_reading.js',\n                modules: {\n                  'Creating & Reading': 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/color/p5.Color.js': {\n                name: 'src/color/p5.Color.js',\n                modules: {},\n                classes: {\n                  'p5.Color': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/color/setting.js': {\n                name: 'src/color/setting.js',\n                modules: {\n                  Setting: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/shape/2d_primitives.js': {\n                name: 'src/core/shape/2d_primitives.js',\n                modules: {\n                  '2D Primitives': 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/shape/attributes.js': {\n                name: 'src/core/shape/attributes.js',\n                modules: {\n                  Attributes: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/shape/curves.js': {\n                name: 'src/core/shape/curves.js',\n                modules: {\n                  Curves: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/shape/vertex.js': {\n                name: 'src/core/shape/vertex.js',\n                modules: {\n                  Vertex: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/constants.js': {\n                name: 'src/core/constants.js',\n                modules: {\n                  Constants: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/environment.js': {\n                name: 'src/core/environment.js',\n                modules: {\n                  Environment: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/error_helpers.js': {\n                name: 'src/core/error_helpers.js',\n                modules: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/helpers.js': {\n                name: 'src/core/helpers.js',\n                modules: {},\n                classes: {},\n                fors: {},\n                namespaces: {}\n              },\n              'src/core/init.js': {\n                name: 'src/core/init.js',\n                modules: {},\n                classes: {},\n                fors: {},\n                namespaces: {}\n              },\n              'src/core/internationalization.js': {\n                name: 'src/core/internationalization.js',\n                modules: {},\n                classes: {},\n                fors: {},\n                namespaces: {}\n              },\n              'src/core/legacy.js': {\n                name: 'src/core/legacy.js',\n                modules: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/main.js': {\n                name: 'src/core/main.js',\n                modules: {\n                  Structure: 1\n                },\n                classes: {\n                  p5: 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/p5.Element.js': {\n                name: 'src/core/p5.Element.js',\n                modules: {\n                  DOM: 1\n                },\n                classes: {\n                  'p5.Element': 1\n                },\n                fors: {\n                  'p5.Element': 1\n                },\n                namespaces: {}\n              },\n              'src/core/p5.Graphics.js': {\n                name: 'src/core/p5.Graphics.js',\n                modules: {\n                  Rendering: 1\n                },\n                classes: {\n                  'p5.Graphics': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/p5.Renderer.js': {\n                name: 'src/core/p5.Renderer.js',\n                modules: {},\n                classes: {\n                  'p5.Renderer': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/p5.Renderer2D.js': {\n                name: 'src/core/p5.Renderer2D.js',\n                modules: {},\n                classes: {},\n                fors: {},\n                namespaces: {}\n              },\n              'src/core/reference.js': {\n                name: 'src/core/reference.js',\n                modules: {\n                  Foundation: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1,\n                  JSON: 1,\n                  console: 1\n                },\n                namespaces: {}\n              },\n              'src/core/rendering.js': {\n                name: 'src/core/rendering.js',\n                modules: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/shim.js': {\n                name: 'src/core/shim.js',\n                modules: {},\n                classes: {},\n                fors: {},\n                namespaces: {}\n              },\n              'src/core/structure.js': {\n                name: 'src/core/structure.js',\n                modules: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/core/transform.js': {\n                name: 'src/core/transform.js',\n                modules: {\n                  Transform: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/data/local_storage.js': {\n                name: 'src/data/local_storage.js',\n                modules: {\n                  LocalStorage: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/data/p5.TypedDict.js': {\n                name: 'src/data/p5.TypedDict.js',\n                modules: {\n                  Dictionary: 1\n                },\n                classes: {\n                  'p5.TypedDict': 1,\n                  'p5.StringDict': 1,\n                  'p5.NumberDict': 1\n                },\n                fors: {\n                  'p5.TypedDict': 1,\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/dom/dom.js': {\n                name: 'src/dom/dom.js',\n                modules: {},\n                classes: {\n                  'p5.MediaElement': 1,\n                  'p5.File': 1\n                },\n                fors: {\n                  p5: 1,\n                  'p5.Element': 1\n                },\n                namespaces: {}\n              },\n              'src/events/acceleration.js': {\n                name: 'src/events/acceleration.js',\n                modules: {\n                  Acceleration: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/events/keyboard.js': {\n                name: 'src/events/keyboard.js',\n                modules: {\n                  Keyboard: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/events/mouse.js': {\n                name: 'src/events/mouse.js',\n                modules: {\n                  Mouse: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/events/touch.js': {\n                name: 'src/events/touch.js',\n                modules: {\n                  Touch: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/image/filters.js': {\n                name: 'src/image/filters.js',\n                modules: {},\n                classes: {},\n                fors: {},\n                namespaces: {}\n              },\n              'src/image/image.js': {\n                name: 'src/image/image.js',\n                modules: {\n                  Image: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/image/loading_displaying.js': {\n                name: 'src/image/loading_displaying.js',\n                modules: {\n                  'Loading & Displaying': 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/image/p5.Image.js': {\n                name: 'src/image/p5.Image.js',\n                modules: {},\n                classes: {\n                  'p5.Image': 1\n                },\n                fors: {},\n                namespaces: {}\n              },\n              'src/image/pixels.js': {\n                name: 'src/image/pixels.js',\n                modules: {\n                  Pixels: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/io/files.js': {\n                name: 'src/io/files.js',\n                modules: {\n                  Input: 1,\n                  Output: 1\n                },\n                classes: {\n                  'p5.PrintWriter': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/io/p5.Table.js': {\n                name: 'src/io/p5.Table.js',\n                modules: {\n                  Table: 1\n                },\n                classes: {\n                  'p5.Table': 1\n                },\n                fors: {},\n                namespaces: {}\n              },\n              'src/io/p5.TableRow.js': {\n                name: 'src/io/p5.TableRow.js',\n                modules: {},\n                classes: {\n                  'p5.TableRow': 1\n                },\n                fors: {},\n                namespaces: {}\n              },\n              'src/io/p5.XML.js': {\n                name: 'src/io/p5.XML.js',\n                modules: {},\n                classes: {\n                  'p5.XML': 1\n                },\n                fors: {},\n                namespaces: {}\n              },\n              'src/math/calculation.js': {\n                name: 'src/math/calculation.js',\n                modules: {\n                  Calculation: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/math/math.js': {\n                name: 'src/math/math.js',\n                modules: {\n                  Vector: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/math/noise.js': {\n                name: 'src/math/noise.js',\n                modules: {\n                  Noise: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/math/p5.Vector.js': {\n                name: 'src/math/p5.Vector.js',\n                modules: {},\n                classes: {\n                  'p5.Vector': 1\n                },\n                fors: {},\n                namespaces: {}\n              },\n              'src/math/random.js': {\n                name: 'src/math/random.js',\n                modules: {\n                  Random: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/math/trigonometry.js': {\n                name: 'src/math/trigonometry.js',\n                modules: {\n                  Trigonometry: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/typography/attributes.js': {\n                name: 'src/typography/attributes.js',\n                modules: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/typography/loading_displaying.js': {\n                name: 'src/typography/loading_displaying.js',\n                modules: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/typography/p5.Font.js': {\n                name: 'src/typography/p5.Font.js',\n                modules: {},\n                classes: {\n                  'p5.Font': 1\n                },\n                fors: {},\n                namespaces: {}\n              },\n              'src/utilities/array_functions.js': {\n                name: 'src/utilities/array_functions.js',\n                modules: {\n                  'Array Functions': 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/utilities/conversion.js': {\n                name: 'src/utilities/conversion.js',\n                modules: {\n                  Conversion: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/utilities/string_functions.js': {\n                name: 'src/utilities/string_functions.js',\n                modules: {\n                  'String Functions': 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/utilities/time_date.js': {\n                name: 'src/utilities/time_date.js',\n                modules: {\n                  'Time & Date': 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/webgl/3d_primitives.js': {\n                name: 'src/webgl/3d_primitives.js',\n                modules: {\n                  '3D Primitives': 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/webgl/interaction.js': {\n                name: 'src/webgl/interaction.js',\n                modules: {\n                  Interaction: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/webgl/light.js': {\n                name: 'src/webgl/light.js',\n                modules: {\n                  Lights: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/webgl/loading.js': {\n                name: 'src/webgl/loading.js',\n                modules: {\n                  '3D Models': 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/webgl/material.js': {\n                name: 'src/webgl/material.js',\n                modules: {\n                  Material: 1\n                },\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/webgl/p5.Camera.js': {\n                name: 'src/webgl/p5.Camera.js',\n                modules: {\n                  Camera: 1\n                },\n                classes: {\n                  'p5.Camera': 1\n                },\n                fors: {\n                  p5: 1,\n                  'p5.Camera': 1\n                },\n                namespaces: {}\n              },\n              'src/webgl/p5.Geometry.js': {\n                name: 'src/webgl/p5.Geometry.js',\n                modules: {},\n                classes: {\n                  'p5.Geometry': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/webgl/p5.Matrix.js': {\n                name: 'src/webgl/p5.Matrix.js',\n                modules: {},\n                classes: {\n                  'p5.Matrix': 1\n                },\n                fors: {},\n                namespaces: {}\n              },\n              'src/webgl/p5.RenderBuffer.js': {\n                name: 'src/webgl/p5.RenderBuffer.js',\n                modules: {},\n                classes: {},\n                fors: {},\n                namespaces: {}\n              },\n              'src/webgl/p5.RendererGL.Immediate.js': {\n                name: 'src/webgl/p5.RendererGL.Immediate.js',\n                modules: {},\n                classes: {},\n                fors: {},\n                namespaces: {}\n              },\n              'src/webgl/p5.RendererGL.Retained.js': {\n                name: 'src/webgl/p5.RendererGL.Retained.js',\n                modules: {},\n                classes: {},\n                fors: {},\n                namespaces: {}\n              },\n              'src/webgl/p5.RendererGL.js': {\n                name: 'src/webgl/p5.RendererGL.js',\n                modules: {},\n                classes: {\n                  'p5.RendererGL': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/webgl/p5.Shader.js': {\n                name: 'src/webgl/p5.Shader.js',\n                modules: {},\n                classes: {\n                  'p5.Shader': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/webgl/p5.Texture.js': {\n                name: 'src/webgl/p5.Texture.js',\n                modules: {},\n                classes: {\n                  'p5.Texture': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              'src/webgl/text.js': {\n                name: 'src/webgl/text.js',\n                modules: {},\n                classes: {\n                  ImageInfos: 1,\n                  FontInfo: 1,\n                  Cubic: 1\n                },\n                fors: {},\n                namespaces: {}\n              },\n              'lib/addons/p5.sound.js': {\n                name: 'lib/addons/p5.sound.js',\n                modules: {\n                  'p5.sound': 1\n                },\n                classes: {\n                  'p5.Effect': 1,\n                  'p5.Filter': 1,\n                  'p5.LowPass': 1,\n                  'p5.HighPass': 1,\n                  'p5.BandPass': 1,\n                  'p5.Oscillator': 1,\n                  'p5.SinOsc': 1,\n                  'p5.TriOsc': 1,\n                  'p5.SawOsc': 1,\n                  'p5.SqrOsc': 1,\n                  'p5.MonoSynth': 1,\n                  'p5.AudioVoice': 1,\n                  'p5.PolySynth': 1,\n                  'p5.SoundFile': 1,\n                  'p5.Amplitude': 1,\n                  'p5.FFT': 1,\n                  'p5.Signal': 1,\n                  'p5.Envelope': 1,\n                  'p5.Pulse': 1,\n                  'p5.Noise': 1,\n                  'p5.AudioIn': 1,\n                  'p5.EQ': 1,\n                  'p5.Panner3D': 1,\n                  'p5.Delay': 1,\n                  'p5.Reverb': 1,\n                  'p5.Convolver': 1,\n                  'p5.Phrase': 1,\n                  'p5.Part': 1,\n                  'p5.Score': 1,\n                  'p5.SoundLoop': 1,\n                  'p5.Compressor': 1,\n                  'p5.SoundRecorder': 1,\n                  'p5.PeakDetect': 1,\n                  'p5.Gain': 1,\n                  'p5.Distortion': 1\n                },\n                fors: {\n                  'p5.sound': 1,\n                  'p5.Effect': 1,\n                  p5: 1,\n                  'p5.Oscillator': 1,\n                  'p5.MonoSynth': 1,\n                  'p5.AudioVoice': 1,\n                  'p5.PolySynth': 1,\n                  'p5.SoundFile': 1,\n                  'p5.Amplitude': 1,\n                  'p5.FFT': 1,\n                  'p5.Signal': 1,\n                  'p5.Envelope': 1,\n                  'p5.AudioIn': 1,\n                  'p5.EQ': 1,\n                  'p5.Panner3D': 1,\n                  'p5.Delay': 1,\n                  'p5.Reverb': 1,\n                  'p5.Convolver': 1,\n                  'p5.Part': 1,\n                  'p5.Score': 1,\n                  'p5.SoundLoop': 1,\n                  'p5.Compressor': 1,\n                  'p5.SoundRecorder': 1,\n                  'p5.Gain': 1,\n                  'p5.Distortion': 1\n                },\n                namespaces: {}\n              },\n              'lib/addons/p5.sound.min.js': {\n                name: 'lib/addons/p5.sound.min.js',\n                modules: {},\n                classes: {},\n                fors: {},\n                namespaces: {}\n              }\n            },\n            modules: {\n              Color: {\n                name: 'Color',\n                submodules: {\n                  'Color Conversion': 1,\n                  'Creating & Reading': 1,\n                  Setting: 1\n                },\n                elements: {},\n                classes: {\n                  'p5.Color': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {},\n                file: 'src/color/p5.Color.js',\n                line: 14\n              },\n              'Color Conversion': {\n                name: 'Color Conversion',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Color',\n                namespace: '',\n                file: 'src/color/color_conversion.js',\n                line: 1,\n                requires: ['core']\n              },\n              'Creating & Reading': {\n                name: 'Creating & Reading',\n                submodules: {},\n                elements: {},\n                classes: {\n                  'p5.Color': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Color',\n                namespace: '',\n                file: 'src/color/p5.Color.js',\n                line: 14,\n                requires: ['core', 'constants'],\n                description:\n                  '<p>Each color stores the color mode and level maxes that applied at the\\ntime of its construction. These are used to interpret the input arguments\\n(at construction and later for that instance of color) and to format the\\noutput e.g. when <a href=\"#/p5/saturation\">saturation()</a> is requested.</p>\\n<p>Internally we store an array representing the ideal RGBA values in floating\\npoint form, normalized from 0 to 1. From this we calculate the closest\\nscreen color (RGBA levels from 0 to 255) and expose this to the renderer.</p>\\n<p>We also cache normalized, floating point components of the color in various\\nrepresentations as they are calculated. This is done to prevent repeating a\\nconversion that has already been performed.</p>\\n'\n              },\n              Setting: {\n                name: 'Setting',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Color',\n                namespace: '',\n                file: 'src/color/setting.js',\n                line: 1,\n                requires: ['core', 'constants']\n              },\n              Shape: {\n                name: 'Shape',\n                submodules: {\n                  '2D Primitives': 1,\n                  Curves: 1,\n                  Vertex: 1,\n                  '3D Primitives': 1,\n                  '3D Models': 1\n                },\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              '2D Primitives': {\n                name: '2D Primitives',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Shape',\n                namespace: '',\n                file: 'src/core/shape/2d_primitives.js',\n                line: 1,\n                requires: ['core', 'constants']\n              },\n              Attributes: {\n                name: 'Attributes',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Typography',\n                namespace: '',\n                file: 'src/core/shape/attributes.js',\n                line: 1,\n                requires: ['core', 'constants']\n              },\n              Curves: {\n                name: 'Curves',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Shape',\n                namespace: '',\n                file: 'src/core/shape/curves.js',\n                line: 1,\n                requires: ['core']\n              },\n              Vertex: {\n                name: 'Vertex',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Shape',\n                namespace: '',\n                file: 'src/core/shape/vertex.js',\n                line: 1,\n                requires: ['core', 'constants']\n              },\n              Constants: {\n                name: 'Constants',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {},\n                module: 'Constants',\n                file: 'src/core/constants.js',\n                line: 1\n              },\n              Environment: {\n                name: 'Environment',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {},\n                module: 'Environment',\n                file: 'src/core/environment.js',\n                line: 1,\n                requires: ['core', 'constants']\n              },\n              Structure: {\n                name: 'Structure',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {},\n                module: 'IO',\n                file: 'src/core/main.js',\n                line: 1,\n                requires: ['constants']\n              },\n              DOM: {\n                name: 'DOM',\n                submodules: {},\n                elements: {},\n                classes: {\n                  'p5.Element': 1,\n                  'p5.MediaElement': 1,\n                  'p5.File': 1\n                },\n                fors: {\n                  'p5.Element': 1,\n                  p5: 1\n                },\n                namespaces: {},\n                module: 'DOM',\n                file: 'src/dom/dom.js',\n                line: 3392,\n                description:\n                  \"<p>The web is much more than just canvas and the DOM functionality makes it easy to interact\\nwith other HTML5 objects, including text, hyperlink, image, input, video,\\naudio, and webcam.</p>\\n<p>There is a set of creation methods, DOM manipulation methods, and\\nan extended <a href=\\\"#/p5.Element\\\">p5.Element</a> that supports a range of HTML elements. See the\\n<a href='https://github.com/processing/p5.js/wiki/Beyond-the-canvas'>\\nbeyond the canvas tutorial</a> for a full overview of how this addon works.\\n\\n<p>See <a href='https://github.com/processing/p5.js/wiki/Beyond-the-canvas'>tutorial: beyond the canvas</a>\\nfor more info on how to use this library.</a>\",\n                requires: ['p5']\n              },\n              Rendering: {\n                name: 'Rendering',\n                submodules: {\n                  undefined: 1\n                },\n                elements: {},\n                classes: {\n                  'p5.RendererGL': 1,\n                  'p5.Graphics': 1,\n                  'p5.Renderer': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {},\n                module: 'Rendering',\n                file: 'src/webgl/p5.RendererGL.js',\n                line: 600,\n                description:\n                  '<p>Thin wrapper around a renderer, to be used for creating a\\ngraphics buffer object. Use this class if you need\\nto draw into an off-screen graphics buffer. The two parameters define the\\nwidth and height in pixels. The fields and methods for this class are\\nextensive, but mirror the normal drawing API for p5.</p>\\n'\n              },\n              Foundation: {\n                name: 'Foundation',\n                submodules: {},\n                elements: {},\n                classes: {\n                  JSON: 1,\n                  console: 1\n                },\n                fors: {\n                  p5: 1,\n                  JSON: 1,\n                  console: 1\n                },\n                namespaces: {},\n                tag: 'module',\n                file: 'src/core/reference.js',\n                line: 1\n              },\n              Transform: {\n                name: 'Transform',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {},\n                module: 'Transform',\n                file: 'src/core/transform.js',\n                line: 1,\n                requires: ['core', 'constants']\n              },\n              Data: {\n                name: 'Data',\n                submodules: {\n                  LocalStorage: 1,\n                  Dictionary: 1,\n                  'Array Functions': 1,\n                  Conversion: 1,\n                  'String Functions': 1\n                },\n                elements: {},\n                classes: {\n                  'p5.TypedDict': 1,\n                  'p5.StringDict': 1,\n                  'p5.NumberDict': 1\n                },\n                fors: {\n                  p5: 1,\n                  'p5.TypedDict': 1\n                },\n                namespaces: {},\n                file: 'src/data/p5.TypedDict.js',\n                line: 417\n              },\n              LocalStorage: {\n                name: 'LocalStorage',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Data',\n                namespace: '',\n                file: 'src/data/local_storage.js',\n                line: 1,\n                requires: [\n                  'core\\n\\nThis module defines the p5 methods for working with local storage'\n                ]\n              },\n              Dictionary: {\n                name: 'Dictionary',\n                submodules: {},\n                elements: {},\n                classes: {\n                  'p5.TypedDict': 1,\n                  'p5.StringDict': 1,\n                  'p5.NumberDict': 1\n                },\n                fors: {\n                  'p5.TypedDict': 1,\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Data',\n                namespace: '',\n                file: 'src/data/p5.TypedDict.js',\n                line: 417,\n                requires: [\n                  'core\\n\\nThis module defines the p5 methods for the p5 Dictionary classes.\\nThe classes StringDict and NumberDict are for storing and working\\nwith key-value pairs.'\n                ],\n                description:\n                  '<p>Base class for all p5.Dictionary types. Specifically\\n typed Dictionary classes inherit from this class.</p>\\n'\n              },\n              Events: {\n                name: 'Events',\n                submodules: {\n                  Acceleration: 1,\n                  Keyboard: 1,\n                  Mouse: 1,\n                  Touch: 1\n                },\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                namespaces: {}\n              },\n              Acceleration: {\n                name: 'Acceleration',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Events',\n                namespace: '',\n                file: 'src/events/acceleration.js',\n                line: 1,\n                requires: ['core']\n              },\n              Keyboard: {\n                name: 'Keyboard',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Events',\n                namespace: '',\n                file: 'src/events/keyboard.js',\n                line: 1,\n                requires: ['core']\n              },\n              Mouse: {\n                name: 'Mouse',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Events',\n                namespace: '',\n                file: 'src/events/mouse.js',\n                line: 1,\n                requires: ['core', 'constants']\n              },\n              Touch: {\n                name: 'Touch',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Events',\n                namespace: '',\n                file: 'src/events/touch.js',\n                line: 1,\n                requires: ['core']\n              },\n              Image: {\n                name: 'Image',\n                submodules: {\n                  Pixels: 1\n                },\n                elements: {},\n                classes: {\n                  'p5.Image': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {},\n                module: 'Image',\n                file: 'src/image/p5.Image.js',\n                line: 21,\n                requires: ['core'],\n                description:\n                  '<p>Creates a new <a href=\"#/p5.Image\">p5.Image</a>. A <a href=\"#/p5.Image\">p5.Image</a> is a canvas backed representation of an\\nimage.\\n<br><br>\\np5 can display .gif, .jpg and .png images. Images may be displayed\\nin 2D and 3D space. Before an image is used, it must be loaded with the\\n<a href=\"#/p5/loadImage\">loadImage()</a> function. The <a href=\"#/p5.Image\">p5.Image</a> class contains fields for the width and\\nheight of the image, as well as an array called <a href=\"#/p5.Image/pixels\">pixels[]</a> that contains the\\nvalues for every pixel in the image.\\n<br><br>\\nThe methods described below allow easy access to the image&#39;s pixels and\\nalpha channel and simplify the process of compositing.\\n<br><br>\\nBefore using the <a href=\"#/p5.Image/pixels\">pixels[]</a> array, be sure to use the <a href=\"#/p5.Image/loadPixels\">loadPixels()</a> method on\\nthe image to make sure that the pixel data is properly loaded.</p>\\n'\n              },\n              'Loading & Displaying': {\n                name: 'Loading & Displaying',\n                submodules: {},\n                elements: {},\n                classes: {\n                  'p5.Font': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Typography',\n                namespace: '',\n                file: 'src/typography/p5.Font.js',\n                line: 13,\n                requires: ['core'],\n                description:\n                  '<p>This module defines the <a href=\"#/p5.Font\">p5.Font</a> class and functions for\\ndrawing text to the display canvas.</p>\\n'\n              },\n              Pixels: {\n                name: 'Pixels',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Image',\n                namespace: '',\n                file: 'src/image/pixels.js',\n                line: 1,\n                requires: ['core']\n              },\n              IO: {\n                name: 'IO',\n                submodules: {\n                  Structure: 1,\n                  Input: 1,\n                  Output: 1,\n                  Table: 1,\n                  'Time & Date': 1\n                },\n                elements: {},\n                classes: {\n                  p5: 1,\n                  'p5.PrintWriter': 1,\n                  'p5.Table': 1,\n                  'p5.TableRow': 1,\n                  'p5.XML': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {},\n                file: 'src/io/p5.XML.js',\n                line: 9\n              },\n              Input: {\n                name: 'Input',\n                submodules: {},\n                elements: {},\n                classes: {\n                  'p5.XML': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'IO',\n                namespace: '',\n                file: 'src/io/p5.XML.js',\n                line: 9,\n                requires: ['core'],\n                description:\n                  '<p>XML is a representation of an XML object, able to parse XML code. Use\\n<a href=\"#/p5/loadXML\">loadXML()</a> to load external XML files and create XML objects.</p>\\n'\n              },\n              Output: {\n                name: 'Output',\n                submodules: {},\n                elements: {},\n                classes: {\n                  p5: 1,\n                  'p5.PrintWriter': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'IO',\n                namespace: '',\n                file: 'src/io/files.js',\n                line: 1235,\n                description:\n                  '<p>This is the p5 instance constructor.</p>\\n<p>A p5 instance holds all the properties and methods related to\\na p5 sketch.  It expects an incoming sketch closure and it can also\\ntake an optional node parameter for attaching the generated p5 canvas\\nto a node.  The sketch closure takes the newly created p5 instance as\\nits sole argument and may optionally set <a href=\"#/p5/preload\">preload()</a>, <a href=\"#/p5/setup\">setup()</a>, and/or\\n<a href=\"#/p5/draw\">draw()</a> properties on it for running a sketch.</p>\\n<p>A p5 sketch can run in &quot;global&quot; or &quot;instance&quot; mode:\\n&quot;global&quot;   - all properties and methods are attached to the window\\n&quot;instance&quot; - all properties and methods are bound to this p5 object</p>\\n'\n              },\n              Table: {\n                name: 'Table',\n                submodules: {},\n                elements: {},\n                classes: {\n                  'p5.Table': 1,\n                  'p5.TableRow': 1\n                },\n                fors: {},\n                is_submodule: 1,\n                namespaces: {},\n                module: 'IO',\n                namespace: '',\n                file: 'src/io/p5.TableRow.js',\n                line: 9,\n                requires: ['core'],\n                description:\n                  '<p><a href=\"#/p5.Table\">Table</a> objects store data with multiple rows and columns, much\\nlike in a traditional spreadsheet. Tables can be generated from\\nscratch, dynamically, or using data from an existing file.</p>\\n'\n              },\n              Math: {\n                name: 'Math',\n                submodules: {\n                  Calculation: 1,\n                  Vector: 1,\n                  Noise: 1,\n                  Random: 1,\n                  Trigonometry: 1\n                },\n                elements: {},\n                classes: {\n                  'p5.Vector': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {},\n                file: 'src/math/p5.Vector.js',\n                line: 10\n              },\n              Calculation: {\n                name: 'Calculation',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Math',\n                namespace: '',\n                file: 'src/math/calculation.js',\n                line: 1,\n                requires: ['core']\n              },\n              Vector: {\n                name: 'Vector',\n                submodules: {},\n                elements: {},\n                classes: {\n                  'p5.Vector': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Math',\n                namespace: '',\n                file: 'src/math/p5.Vector.js',\n                line: 10,\n                requires: ['core'],\n                description:\n                  '<p>A class to describe a two or three dimensional vector, specifically\\na Euclidean (also known as geometric) vector. A vector is an entity\\nthat has both magnitude and direction. The datatype, however, stores\\nthe components of the vector (x, y for 2D, and x, y, z for 3D). The magnitude\\nand direction can be accessed via the methods <a href=\"#/p5/mag\">mag()</a> and <a href=\"#/p5/heading\">heading()</a>.\\n<br><br>\\nIn many of the p5.js examples, you will see <a href=\"#/p5.Vector\">p5.Vector</a> used to describe a\\nposition, velocity, or acceleration. For example, if you consider a rectangle\\nmoving across the screen, at any given instant it has a position (a vector\\nthat points from the origin to its location), a velocity (the rate at which\\nthe object&#39;s position changes per time unit, expressed as a vector), and\\nacceleration (the rate at which the object&#39;s velocity changes per time\\nunit, expressed as a vector).\\n<br><br>\\nSince vectors represent groupings of values, we cannot simply use\\ntraditional addition/multiplication/etc. Instead, we&#39;ll need to do some\\n&quot;vector&quot; math, which is made easy by the methods inside the <a href=\"#/p5.Vector\">p5.Vector</a> class.</p>\\n'\n              },\n              Noise: {\n                name: 'Noise',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Math',\n                namespace: '',\n                file: 'src/math/noise.js',\n                line: 14,\n                requires: ['core']\n              },\n              Random: {\n                name: 'Random',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Math',\n                namespace: '',\n                file: 'src/math/random.js',\n                line: 1,\n                requires: ['core']\n              },\n              Trigonometry: {\n                name: 'Trigonometry',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Math',\n                namespace: '',\n                file: 'src/math/trigonometry.js',\n                line: 1,\n                requires: ['core', 'constants']\n              },\n              Typography: {\n                name: 'Typography',\n                submodules: {\n                  Attributes: 1,\n                  'Loading & Displaying': 1\n                },\n                elements: {},\n                classes: {\n                  'p5.Font': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                namespaces: {},\n                file: 'src/typography/p5.Font.js',\n                line: 13\n              },\n              'Array Functions': {\n                name: 'Array Functions',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Data',\n                namespace: '',\n                file: 'src/utilities/array_functions.js',\n                line: 1,\n                requires: ['core']\n              },\n              Conversion: {\n                name: 'Conversion',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Data',\n                namespace: '',\n                file: 'src/utilities/conversion.js',\n                line: 1,\n                requires: ['core']\n              },\n              'String Functions': {\n                name: 'String Functions',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Data',\n                namespace: '',\n                file: 'src/utilities/string_functions.js',\n                line: 1,\n                requires: ['core']\n              },\n              'Time & Date': {\n                name: 'Time & Date',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'IO',\n                namespace: '',\n                file: 'src/utilities/time_date.js',\n                line: 1,\n                requires: ['core']\n              },\n              '3D Primitives': {\n                name: '3D Primitives',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Shape',\n                namespace: '',\n                file: 'src/webgl/3d_primitives.js',\n                line: 1,\n                requires: ['core', 'p5.Geometry']\n              },\n              'Lights, Camera': {\n                name: 'Lights, Camera',\n                submodules: {\n                  Interaction: 1,\n                  Lights: 1,\n                  Material: 1,\n                  Camera: 1\n                },\n                elements: {},\n                classes: {\n                  'p5.Camera': 1,\n                  'p5.Geometry': 1,\n                  'p5.Matrix': 1,\n                  'p5.Shader': 1,\n                  'p5.Texture': 1,\n                  ImageInfos: 1,\n                  FontInfo: 1,\n                  Cubic: 1\n                },\n                fors: {\n                  p5: 1,\n                  'p5.Camera': 1\n                },\n                namespaces: {},\n                file: 'src/webgl/text.js',\n                line: 260\n              },\n              Interaction: {\n                name: 'Interaction',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Lights, Camera',\n                namespace: '',\n                file: 'src/webgl/interaction.js',\n                line: 1,\n                requires: ['core']\n              },\n              Lights: {\n                name: 'Lights',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Lights, Camera',\n                namespace: '',\n                file: 'src/webgl/light.js',\n                line: 1,\n                requires: ['core']\n              },\n              '3D Models': {\n                name: '3D Models',\n                submodules: {},\n                elements: {},\n                classes: {},\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Shape',\n                namespace: '',\n                file: 'src/webgl/loading.js',\n                line: 1,\n                requires: ['core', 'p5.Geometry']\n              },\n              Material: {\n                name: 'Material',\n                submodules: {},\n                elements: {},\n                classes: {\n                  'p5.Geometry': 1,\n                  'p5.Shader': 1,\n                  'p5.Texture': 1\n                },\n                fors: {\n                  p5: 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Lights, Camera',\n                namespace: '',\n                file: 'src/webgl/p5.Texture.js',\n                line: 12,\n                requires: ['core'],\n                description: '<p>This module defines the p5.Shader class</p>\\n'\n              },\n              Camera: {\n                name: 'Camera',\n                submodules: {},\n                elements: {},\n                classes: {\n                  'p5.Camera': 1\n                },\n                fors: {\n                  p5: 1,\n                  'p5.Camera': 1\n                },\n                is_submodule: 1,\n                namespaces: {},\n                module: 'Lights, Camera',\n                namespace: '',\n                file: 'src/webgl/p5.Camera.js',\n                line: 320,\n                requires: ['core'],\n                description:\n                  '<p>This class describes a camera for use in p5&#39;s\\n<a href=\"https://github.com/processing/p5.js/wiki/Getting-started-with-WebGL-in-p5\">\\nWebGL mode</a>. It contains camera position, orientation, and projection\\ninformation necessary for rendering a 3D scene.</p>\\n<p>New p5.Camera objects can be made through the\\n<a href=\"#/p5/createCamera\">createCamera()</a> function and controlled through\\nthe methods described below. A camera created in this way will use a default\\nposition in the scene and a default perspective projection until these\\nproperties are changed through the various methods available. It is possible\\nto create multiple cameras, in which case the current camera\\ncan be set through the <a href=\"#/p5/setCamera\">setCamera()</a> method.</p>\\n<p>Note:\\nThe methods below operate in two coordinate systems: the &#39;world&#39; coordinate\\nsystem describe positions in terms of their relationship to the origin along\\nthe X, Y and Z axes whereas the camera&#39;s &#39;local&#39; coordinate system\\ndescribes positions from the camera&#39;s point of view: left-right, up-down,\\nand forward-backward. The <a href=\"#/p5.Camera/move\">move()</a> method,\\nfor instance, moves the camera along its own axes, whereas the\\n<a href=\"#/p5.Camera/setPosition\">setPosition()</a>\\nmethod sets the camera&#39;s position in world-space.</p>\\n'\n              },\n              'p5.sound': {\n                name: 'p5.sound',\n                submodules: {},\n                elements: {},\n                classes: {\n                  'p5.sound': 1,\n                  'p5.Effect': 1,\n                  'p5.Filter': 1,\n                  'p5.LowPass': 1,\n                  'p5.HighPass': 1,\n                  'p5.BandPass': 1,\n                  'p5.Oscillator': 1,\n                  'p5.SinOsc': 1,\n                  'p5.TriOsc': 1,\n                  'p5.SawOsc': 1,\n                  'p5.SqrOsc': 1,\n                  'p5.MonoSynth': 1,\n                  'p5.AudioVoice': 1,\n                  'p5.PolySynth': 1,\n                  'p5.SoundFile': 1,\n                  'p5.Amplitude': 1,\n                  'p5.FFT': 1,\n                  'p5.Signal': 1,\n                  'p5.Envelope': 1,\n                  'p5.Pulse': 1,\n                  'p5.Noise': 1,\n                  'p5.AudioIn': 1,\n                  'p5.EQ': 1,\n                  'p5.Panner3D': 1,\n                  'p5.Delay': 1,\n                  'p5.Reverb': 1,\n                  'p5.Convolver': 1,\n                  'p5.Phrase': 1,\n                  'p5.Part': 1,\n                  'p5.Score': 1,\n                  'p5.SoundLoop': 1,\n                  'p5.Compressor': 1,\n                  'p5.SoundRecorder': 1,\n                  'p5.PeakDetect': 1,\n                  'p5.Gain': 1,\n                  'p5.Distortion': 1\n                },\n                fors: {\n                  'p5.sound': 1,\n                  'p5.Effect': 1,\n                  p5: 1,\n                  'p5.Oscillator': 1,\n                  'p5.MonoSynth': 1,\n                  'p5.AudioVoice': 1,\n                  'p5.PolySynth': 1,\n                  'p5.SoundFile': 1,\n                  'p5.Amplitude': 1,\n                  'p5.FFT': 1,\n                  'p5.Signal': 1,\n                  'p5.Envelope': 1,\n                  'p5.AudioIn': 1,\n                  'p5.EQ': 1,\n                  'p5.Panner3D': 1,\n                  'p5.Delay': 1,\n                  'p5.Reverb': 1,\n                  'p5.Convolver': 1,\n                  'p5.Part': 1,\n                  'p5.Score': 1,\n                  'p5.SoundLoop': 1,\n                  'p5.Compressor': 1,\n                  'p5.SoundRecorder': 1,\n                  'p5.Gain': 1,\n                  'p5.Distortion': 1\n                },\n                namespaces: {},\n                module: 'p5.sound',\n                file: 'lib/addons/p5.sound.js',\n                line: 11703,\n                description:\n                  '<p>p5.sound extends p5 with <a href=\"http://caniuse.com/audio-api\"\\ntarget=\"_blank\">Web Audio</a> functionality including audio input,\\nplayback, analysis and synthesis.\\n</p>\\n<ul>\\n<li><a href=\"#/p5.SoundFile\"><b>p5.SoundFile</b></a>: Load and play sound files.</li>\\n<li><a href=\"#/p5.Amplitude\"><b>p5.Amplitude</b></a>: Get the current volume of a sound.</li>\\n<li><a href=\"#/p5.AudioIn\"><b>p5.AudioIn</b></a>: Get sound from an input source, typically\\n  a computer microphone.</li>\\n<li><a href=\"#/p5.FFT\"><b>p5.FFT</b></a>: Analyze the frequency of sound. Returns\\n  results from the frequency spectrum or time domain (waveform).</li>\\n<li><a href=\"#/p5.Oscillator\"><b>p5.Oscillator</b></a>: Generate Sine,\\n  Triangle, Square and Sawtooth waveforms. Base class of\\n  <li><a href=\"#/p5.Noise\">p5.Noise</a> and <a href=\"#/p5.Pulse\">p5.Pulse</a>.\\n  </li>\\n<li>\\n  <a href=\"#/p5.MonoSynth\">p5.MonoSynth</a> and <a href=\"#/p5.PolySynth\">p5.PolySynth</a>: Play musical notes\\n</li>\\n<li><a href=\"#/p5.Envelope\"><b>p5.Envelope</b></a>: An Envelope is a series\\n  of fades over time. Often used to control an object\\'s\\n  output gain level as an \"ADSR Envelope\" (Attack, Decay,\\n  Sustain, Release). Can also modulate other parameters.</li>\\n<li><a href=\"#/p5.Delay\"><b>p5.Delay</b></a>: A delay effect with\\n  parameters for feedback, delayTime, and lowpass filter.</li>\\n<li><a href=\"#/p5.Filter\"><b>p5.Filter</b></a>: Filter the frequency range of a\\n  sound.\\n</li>\\n<li><a href=\"#/p5.Reverb\"><b>p5.Reverb</b></a>: Add reverb to a sound by specifying\\n  duration and decay. </li>\\n<b><li><a href=\"#/p5.Convolver\">p5.Convolver</a>:</b> Extends\\n<a href=\"#/p5.Reverb\">p5.Reverb</a> to simulate the sound of real\\n  physical spaces through convolution.</li>\\n<b><li><a href=\"#/p5.SoundRecorder\">p5.SoundRecorder</a></b>: Record sound for playback\\n  / save the .wav file.\\n<b><li><a href=\"#/p5.SoundLoop\">p5.SoundLoop</a>, <a href=\"#/p5.Phrase\">p5.Phrase</a></b>, <b><a href=\"#/p5.Part\">p5.Part</a></b> and\\n<b><a href=\"#/p5.Score\">p5.Score</a></b>: Compose musical sequences.\\n</li>\\n<li><a href=\"#/p5/userStartAudio\">userStartAudio</a>: Enable audio in a\\nbrowser- and user-friendly way.</a>\\n<p>p5.sound is on <a href=\"https://github.com/therewasaguy/p5.sound/\">GitHub</a>.\\nDownload the latest version\\n<a href=\"https://github.com/therewasaguy/p5.sound/blob/master/lib/p5.sound.js\">here</a>.</p>',\n                tag: 'main',\n                itemtype: 'main'\n              }\n            },\n            classes: {\n              p5: {\n                name: 'p5',\n                shortname: 'p5',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'IO',\n                submodule: 'Output',\n                namespace: '',\n                file: 'src/core/main.js',\n                line: 13,\n                description:\n                  '<p>This is the p5 instance constructor.</p>\\n<p>A p5 instance holds all the properties and methods related to\\na p5 sketch.  It expects an incoming sketch closure and it can also\\ntake an optional node parameter for attaching the generated p5 canvas\\nto a node.  The sketch closure takes the newly created p5 instance as\\nits sole argument and may optionally set <a href=\"#/p5/preload\">preload()</a>, <a href=\"#/p5/setup\">setup()</a>, and/or\\n<a href=\"#/p5/draw\">draw()</a> properties on it for running a sketch.</p>\\n<p>A p5 sketch can run in &quot;global&quot; or &quot;instance&quot; mode:\\n&quot;global&quot;   - all properties and methods are attached to the window\\n&quot;instance&quot; - all properties and methods are bound to this p5 object</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'sketch',\n                    description:\n                      '<p>a closure that can set optional <a href=\"#/p5/preload\">preload()</a>,\\n                             <a href=\"#/p5/setup\">setup()</a>, and/or <a href=\"#/p5/draw\">draw()</a> properties on the\\n                             given p5 instance</p>\\n',\n                    type: 'Function'\n                  },\n                  {\n                    name: 'node',\n                    description: '<p>element to attach canvas to</p>\\n',\n                    type: 'HTMLElement',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'a p5 instance',\n                  type: 'P5'\n                }\n              },\n              'p5.Color': {\n                name: 'p5.Color',\n                shortname: 'p5.Color',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Color',\n                submodule: 'Creating & Reading',\n                namespace: '',\n                file: 'src/color/p5.Color.js',\n                line: 14,\n                description:\n                  '<p>Each color stores the color mode and level maxes that applied at the\\ntime of its construction. These are used to interpret the input arguments\\n(at construction and later for that instance of color) and to format the\\noutput e.g. when <a href=\"#/p5/saturation\">saturation()</a> is requested.</p>\\n<p>Internally we store an array representing the ideal RGBA values in floating\\npoint form, normalized from 0 to 1. From this we calculate the closest\\nscreen color (RGBA levels from 0 to 255) and expose this to the renderer.</p>\\n<p>We also cache normalized, floating point components of the color in various\\nrepresentations as they are calculated. This is done to prevent repeating a\\nconversion that has already been performed.</p>\\n',\n                is_constructor: 1\n              },\n              'p5.Element': {\n                name: 'p5.Element',\n                shortname: 'p5.Element',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'DOM',\n                submodule: 'DOM',\n                namespace: '',\n                file: 'src/core/p5.Element.js',\n                line: 9,\n                description:\n                  '<p>Base class for all elements added to a sketch, including canvas,\\ngraphics buffers, and other HTML elements. It is not called directly, but <a href=\"#/p5.Element\">p5.Element</a>\\nobjects are created by calling <a href=\"#/p5/createCanvas\">createCanvas</a>, <a href=\"#/p5/createGraphics\">createGraphics</a>,\\n<a href=\"#/p5/createDiv\">createDiv</a>, <a href=\"#/p5/createImg\">createImg</a>, <a href=\"#/p5/createInput\">createInput</a>, etc.</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'elt',\n                    description: '<p>DOM node that is wrapped</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'pInst',\n                    description: '<p>pointer to p5 instance</p>\\n',\n                    type: 'P5',\n                    optional: true\n                  }\n                ]\n              },\n              'p5.Graphics': {\n                name: 'p5.Graphics',\n                shortname: 'p5.Graphics',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Rendering',\n                submodule: 'Rendering',\n                namespace: '',\n                file: 'src/core/p5.Graphics.js',\n                line: 10,\n                description:\n                  '<p>Thin wrapper around a renderer, to be used for creating a\\ngraphics buffer object. Use this class if you need\\nto draw into an off-screen graphics buffer. The two parameters define the\\nwidth and height in pixels. The fields and methods for this class are\\nextensive, but mirror the normal drawing API for p5.</p>\\n',\n                is_constructor: 1,\n                extends: 'p5.Element',\n                params: [\n                  {\n                    name: 'w',\n                    description: '<p>width</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'h',\n                    description: '<p>height</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'renderer',\n                    description: '<p>the renderer to use, either P2D or WEBGL</p>\\n',\n                    type: 'Constant'\n                  },\n                  {\n                    name: 'pInst',\n                    description: '<p>pointer to p5 instance</p>\\n',\n                    type: 'P5',\n                    optional: true\n                  }\n                ]\n              },\n              'p5.Renderer': {\n                name: 'p5.Renderer',\n                shortname: 'p5.Renderer',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Rendering',\n                submodule: 'Rendering',\n                namespace: '',\n                file: 'src/core/p5.Renderer.js',\n                line: 10,\n                description:\n                  '<p>Main graphics and rendering context, as well as the base API\\nimplementation for p5.js &quot;core&quot;. To be used as the superclass for\\nRenderer2D and Renderer3D classes, respecitvely.</p>\\n',\n                is_constructor: 1,\n                extends: 'p5.Element',\n                params: [\n                  {\n                    name: 'elt',\n                    description: '<p>DOM node that is wrapped</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'pInst',\n                    description: '<p>pointer to p5 instance</p>\\n',\n                    type: 'P5',\n                    optional: true\n                  },\n                  {\n                    name: 'isMainCanvas',\n                    description: '<p>whether we&#39;re using it as main canvas</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ]\n              },\n              JSON: {\n                name: 'JSON',\n                shortname: 'JSON',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Foundation',\n                namespace: ''\n              },\n              console: {\n                name: 'console',\n                shortname: 'console',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Foundation',\n                namespace: ''\n              },\n              'p5.TypedDict': {\n                name: 'p5.TypedDict',\n                shortname: 'p5.TypedDict',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Data',\n                submodule: 'Dictionary',\n                namespace: '',\n                file: 'src/data/p5.TypedDict.js',\n                line: 82,\n                description:\n                  '<p>Base class for all p5.Dictionary types. Specifically\\n typed Dictionary classes inherit from this class.</p>\\n',\n                is_constructor: 1\n              },\n              'p5.StringDict': {\n                name: 'p5.StringDict',\n                shortname: 'p5.StringDict',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Data',\n                submodule: 'Dictionary',\n                namespace: '',\n                file: 'src/data/p5.TypedDict.js',\n                line: 400,\n                description: '<p>A simple Dictionary class for Strings.</p>\\n',\n                extends: 'p5.TypedDict'\n              },\n              'p5.NumberDict': {\n                name: 'p5.NumberDict',\n                shortname: 'p5.NumberDict',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Data',\n                submodule: 'Dictionary',\n                namespace: '',\n                file: 'src/data/p5.TypedDict.js',\n                line: 417,\n                description: '<p>A simple Dictionary class for Numbers.</p>\\n',\n                is_constructor: 1,\n                extends: 'p5.TypedDict'\n              },\n              'p5.MediaElement': {\n                name: 'p5.MediaElement',\n                shortname: 'p5.MediaElement',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'DOM',\n                submodule: 'DOM',\n                namespace: '',\n                file: 'src/dom/dom.js',\n                line: 2275,\n                description:\n                  '<p>Extends <a href=\"#/p5.Element\">p5.Element</a> to handle audio and video. In addition to the methods\\nof <a href=\"#/p5.Element\">p5.Element</a>, it also contains methods for controlling media. It is not\\ncalled directly, but <a href=\"#/p5.MediaElement\">p5.MediaElement</a>s are created by calling <a href=\"#/p5/createVideo\">createVideo</a>,\\n<a href=\"#/p5/createAudio\">createAudio</a>, and <a href=\"#/p5/createCapture\">createCapture</a>.</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'elt',\n                    description: '<p>DOM node that is wrapped</p>\\n',\n                    type: 'String'\n                  }\n                ]\n              },\n              'p5.File': {\n                name: 'p5.File',\n                shortname: 'p5.File',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'DOM',\n                submodule: 'DOM',\n                namespace: '',\n                file: 'src/dom/dom.js',\n                line: 3392,\n                description:\n                  '<p>Base class for a file.\\nUsed for Element.drop and createFileInput.</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'file',\n                    description: '<p>File that is wrapped</p>\\n',\n                    type: 'File'\n                  }\n                ]\n              },\n              'p5.Image': {\n                name: 'p5.Image',\n                shortname: 'p5.Image',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Image',\n                submodule: 'Image',\n                namespace: '',\n                file: 'src/image/p5.Image.js',\n                line: 21,\n                description:\n                  '<p>Creates a new <a href=\"#/p5.Image\">p5.Image</a>. A <a href=\"#/p5.Image\">p5.Image</a> is a canvas backed representation of an\\nimage.\\n<br><br>\\np5 can display .gif, .jpg and .png images. Images may be displayed\\nin 2D and 3D space. Before an image is used, it must be loaded with the\\n<a href=\"#/p5/loadImage\">loadImage()</a> function. The <a href=\"#/p5.Image\">p5.Image</a> class contains fields for the width and\\nheight of the image, as well as an array called <a href=\"#/p5.Image/pixels\">pixels[]</a> that contains the\\nvalues for every pixel in the image.\\n<br><br>\\nThe methods described below allow easy access to the image&#39;s pixels and\\nalpha channel and simplify the process of compositing.\\n<br><br>\\nBefore using the <a href=\"#/p5.Image/pixels\">pixels[]</a> array, be sure to use the <a href=\"#/p5.Image/loadPixels\">loadPixels()</a> method on\\nthe image to make sure that the pixel data is properly loaded.</p>\\n',\n                example: [\n                  '\\n<div><code>\\nfunction setup() {\\n  let img = createImage(100, 100); // same as new p5.Image(100, 100);\\n  img.loadPixels();\\n  createCanvas(100, 100);\\n  background(0);\\n\\n  // helper for writing color to array\\n  function writeColor(image, x, y, red, green, blue, alpha) {\\n    let index = (x + y * width) * 4;\\n    image.pixels[index] = red;\\n    image.pixels[index + 1] = green;\\n    image.pixels[index + 2] = blue;\\n    image.pixels[index + 3] = alpha;\\n  }\\n\\n  let x, y;\\n  // fill with random colors\\n  for (y = 0; y < img.height; y++) {\\n    for (x = 0; x < img.width; x++) {\\n      let red = random(255);\\n      let green = random(255);\\n      let blue = random(255);\\n      let alpha = 255;\\n      writeColor(img, x, y, red, green, blue, alpha);\\n    }\\n  }\\n\\n  // draw a red line\\n  y = 0;\\n  for (x = 0; x < img.width; x++) {\\n    writeColor(img, x, y, 255, 0, 0, 255);\\n  }\\n\\n  // draw a green line\\n  y = img.height - 1;\\n  for (x = 0; x < img.width; x++) {\\n    writeColor(img, x, y, 0, 255, 0, 255);\\n  }\\n\\n  img.updatePixels();\\n  image(img, 0, 0);\\n}\\n</code></div>'\n                ],\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'width',\n                    description: '',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'height',\n                    description: '',\n                    type: 'Number'\n                  }\n                ]\n              },\n              'p5.PrintWriter': {\n                name: 'p5.PrintWriter',\n                shortname: 'p5.PrintWriter',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'IO',\n                submodule: 'Output',\n                namespace: '',\n                file: 'src/io/files.js',\n                line: 1235,\n                params: [\n                  {\n                    name: 'filename',\n                    description: '',\n                    type: 'String'\n                  },\n                  {\n                    name: 'extension',\n                    description: '',\n                    type: 'String',\n                    optional: true\n                  }\n                ]\n              },\n              'p5.Table': {\n                name: 'p5.Table',\n                shortname: 'p5.Table',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'IO',\n                submodule: 'Table',\n                namespace: '',\n                file: 'src/io/p5.Table.js',\n                line: 33,\n                description:\n                  '<p><a href=\"#/p5.Table\">Table</a> objects store data with multiple rows and columns, much\\nlike in a traditional spreadsheet. Tables can be generated from\\nscratch, dynamically, or using data from an existing file.</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'rows',\n                    description: '<p>An array of p5.TableRow objects</p>\\n',\n                    type: 'p5.TableRow[]',\n                    optional: true\n                  }\n                ]\n              },\n              'p5.TableRow': {\n                name: 'p5.TableRow',\n                shortname: 'p5.TableRow',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'IO',\n                submodule: 'Table',\n                namespace: '',\n                file: 'src/io/p5.TableRow.js',\n                line: 9,\n                description:\n                  '<p>A TableRow object represents a single row of data values,\\nstored in columns, from a table.</p>\\n<p>A Table Row contains both an ordered array, and an unordered\\nJSON object.</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'str',\n                    description:\n                      '<p>optional: populate the row with a\\n                            string of values, separated by the\\n                            separator</p>\\n',\n                    type: 'String',\n                    optional: true\n                  },\n                  {\n                    name: 'separator',\n                    description: '<p>comma separated values (csv) by default</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ]\n              },\n              'p5.XML': {\n                name: 'p5.XML',\n                shortname: 'p5.XML',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'IO',\n                submodule: 'Input',\n                namespace: '',\n                file: 'src/io/p5.XML.js',\n                line: 9,\n                description:\n                  '<p>XML is a representation of an XML object, able to parse XML code. Use\\n<a href=\"#/p5/loadXML\">loadXML()</a> to load external XML files and create XML objects.</p>\\n',\n                is_constructor: 1,\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let children = xml.getChildren(\\'animal\\');\\n\\n  for (let i = 0; i < children.length; i++) {\\n    let id = children[i].getNum(\\'id\\');\\n    let coloring = children[i].getString(\\'species\\');\\n    let name = children[i].getContent();\\n    print(id + \\', \\' + coloring + \\', \\' + name);\\n  }\\n}\\n\\n// Sketch prints:\\n// 0, Capra hircus, Goat\\n// 1, Panthera pardus, Leopard\\n// 2, Equus zebra, Zebra\\n</code></div>'\n                ],\n                alt: 'no image displayed'\n              },\n              'p5.Vector': {\n                name: 'p5.Vector',\n                shortname: 'p5.Vector',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Math',\n                submodule: 'Vector',\n                namespace: '',\n                file: 'src/math/p5.Vector.js',\n                line: 10,\n                description:\n                  '<p>A class to describe a two or three dimensional vector, specifically\\na Euclidean (also known as geometric) vector. A vector is an entity\\nthat has both magnitude and direction. The datatype, however, stores\\nthe components of the vector (x, y for 2D, and x, y, z for 3D). The magnitude\\nand direction can be accessed via the methods <a href=\"#/p5/mag\">mag()</a> and <a href=\"#/p5/heading\">heading()</a>.\\n<br><br>\\nIn many of the p5.js examples, you will see <a href=\"#/p5.Vector\">p5.Vector</a> used to describe a\\nposition, velocity, or acceleration. For example, if you consider a rectangle\\nmoving across the screen, at any given instant it has a position (a vector\\nthat points from the origin to its location), a velocity (the rate at which\\nthe object&#39;s position changes per time unit, expressed as a vector), and\\nacceleration (the rate at which the object&#39;s velocity changes per time\\nunit, expressed as a vector).\\n<br><br>\\nSince vectors represent groupings of values, we cannot simply use\\ntraditional addition/multiplication/etc. Instead, we&#39;ll need to do some\\n&quot;vector&quot; math, which is made easy by the methods inside the <a href=\"#/p5.Vector\">p5.Vector</a> class.</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'x',\n                    description: '<p>x component of the vector</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y component of the vector</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'z',\n                    description: '<p>z component of the vector</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\nlet v1 = createVector(40, 50);\\nlet v2 = createVector(40, 50);\\n\\nellipse(v1.x, v1.y, 50, 50);\\nellipse(v2.x, v2.y, 50, 50);\\nv1.add(v2);\\nellipse(v1.x, v1.y, 50, 50);\\n</code>\\n</div>'\n                ],\n                alt:\n                  '2 white ellipses. One center-left the other bottom right and off canvas'\n              },\n              'p5.Font': {\n                name: 'p5.Font',\n                shortname: 'p5.Font',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Typography',\n                submodule: 'Loading & Displaying',\n                namespace: '',\n                file: 'src/typography/p5.Font.js',\n                line: 13,\n                description: '<p>Base class for font handling</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'pInst',\n                    description: '<p>pointer to p5 instance</p>\\n',\n                    type: 'P5',\n                    optional: true\n                  }\n                ]\n              },\n              'p5.Camera': {\n                name: 'p5.Camera',\n                shortname: 'p5.Camera',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Lights, Camera',\n                submodule: 'Camera',\n                namespace: '',\n                file: 'src/webgl/p5.Camera.js',\n                line: 320,\n                description:\n                  '<p>This class describes a camera for use in p5&#39;s\\n<a href=\"https://github.com/processing/p5.js/wiki/Getting-started-with-WebGL-in-p5\">\\nWebGL mode</a>. It contains camera position, orientation, and projection\\ninformation necessary for rendering a 3D scene.</p>\\n<p>New p5.Camera objects can be made through the\\n<a href=\"#/p5/createCamera\">createCamera()</a> function and controlled through\\nthe methods described below. A camera created in this way will use a default\\nposition in the scene and a default perspective projection until these\\nproperties are changed through the various methods available. It is possible\\nto create multiple cameras, in which case the current camera\\ncan be set through the <a href=\"#/p5/setCamera\">setCamera()</a> method.</p>\\n<p>Note:\\nThe methods below operate in two coordinate systems: the &#39;world&#39; coordinate\\nsystem describe positions in terms of their relationship to the origin along\\nthe X, Y and Z axes whereas the camera&#39;s &#39;local&#39; coordinate system\\ndescribes positions from the camera&#39;s point of view: left-right, up-down,\\nand forward-backward. The <a href=\"#/p5.Camera/move\">move()</a> method,\\nfor instance, moves the camera along its own axes, whereas the\\n<a href=\"#/p5.Camera/setPosition\">setPosition()</a>\\nmethod sets the camera&#39;s position in world-space.</p>\\n',\n                params: [\n                  {\n                    name: 'rendererGL',\n                    description: '<p>instance of WebGL renderer</p>\\n',\n                    type: 'RendererGL'\n                  }\n                ],\n                example: [\n                  \"\\n<div>\\n<code>\\nlet cam;\\nlet delta = 0.01;\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  normalMaterial();\\n  cam = createCamera();\\n  // set initial pan angle\\n  cam.pan(-0.8);\\n}\\n\\nfunction draw() {\\n  background(200);\\n\\n  // pan camera according to angle 'delta'\\n  cam.pan(delta);\\n\\n  // every 160 frames, switch direction\\n  if (frameCount % 160 === 0) {\\n    delta *= -1;\\n  }\\n\\n  rotateX(frameCount * 0.01);\\n  translate(-100, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'camera view pans left and right across a series of rotating 3D boxes.'\n              },\n              'p5.Geometry': {\n                name: 'p5.Geometry',\n                shortname: 'p5.Geometry',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Lights, Camera',\n                submodule: 'Material',\n                namespace: '',\n                file: 'src/webgl/p5.Geometry.js',\n                line: 12,\n                description: '<p>p5 Geometry class</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'detailX',\n                    description: '<p>number of vertices on horizontal surface</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  },\n                  {\n                    name: 'detailY',\n                    description: '<p>number of vertices on horizontal surface</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  },\n                  {\n                    name: 'callback',\n                    description: '<p>function to call upon object instantiation.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ]\n              },\n              'p5.Shader': {\n                name: 'p5.Shader',\n                shortname: 'p5.Shader',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'Lights, Camera',\n                submodule: 'Material',\n                namespace: '',\n                file: 'src/webgl/p5.Shader.js',\n                line: 11,\n                description: '<p>Shader class for WEBGL Mode</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'renderer',\n                    description:\n                      '<p>an instance of p5.RendererGL that\\nwill provide the GL context for this new p5.Shader</p>\\n',\n                    type: 'p5.RendererGL'\n                  },\n                  {\n                    name: 'vertSrc',\n                    description: '<p>source code for the vertex shader (as a string)</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'fragSrc',\n                    description:\n                      '<p>source code for the fragment shader (as a string)</p>\\n',\n                    type: 'String'\n                  }\n                ]\n              },\n              'p5.sound': {\n                name: 'p5.sound',\n                shortname: 'p5.sound',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: ''\n              },\n              'p5.Effect': {\n                name: 'p5.Effect',\n                shortname: 'p5.Effect',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 264,\n                description:\n                  '<p>Effect is a base class for audio effects in p5. <br>\\nThis module handles the nodes and methods that are\\ncommon and useful for current and future effects.</p>\\n<p>This class is extended by <a href=\"/reference/#/p5.Distortion\">p5.Distortion</a>,\\n<a href=\"/reference/#/p5.Compressor\">p5.Compressor</a>,\\n<a href=\"/reference/#/p5.Delay\">p5.Delay</a>,\\n<a href=\"/reference/#/p5.Filter\">p5.Filter</a>,\\n<a href=\"/reference/#/p5.Reverb\">p5.Reverb</a>.</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'ac',\n                    description: '<p>Reference to the audio context of the p5 object</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  },\n                  {\n                    name: 'input',\n                    description: '<p>Gain Node effect wrapper</p>\\n',\n                    type: 'AudioNode',\n                    optional: true\n                  },\n                  {\n                    name: 'output',\n                    description: '<p>Gain Node effect wrapper</p>\\n',\n                    type: 'AudioNode',\n                    optional: true\n                  },\n                  {\n                    name: '_drywet',\n                    description: '<p>Tone.JS CrossFade node (defaults to value: 1)</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  },\n                  {\n                    name: 'wet',\n                    description:\n                      '<p>Effects that extend this class should connect\\n                             to the wet signal to this gain node, so that dry and wet\\n                             signals are mixed properly.</p>\\n',\n                    type: 'AudioNode',\n                    optional: true\n                  }\n                ]\n              },\n              'p5.Filter': {\n                name: 'p5.Filter',\n                shortname: 'p5.Filter',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 883,\n                description:\n                  '<p>A p5.Filter uses a Web Audio Biquad Filter to filter\\nthe frequency response of an input source. Subclasses\\ninclude:</p>\\n<a href=\"/reference/#/p5.LowPass\"><code>p5.LowPass</code></a>:\\nAllows frequencies below the cutoff frequency to pass through,\\nand attenuates frequencies above the cutoff.<br/>\\n<a href=\"/reference/#/p5.HighPass\"><code>p5.HighPass</code></a>:\\nThe opposite of a lowpass filter. <br/>\\n<a href=\"/reference/#/p5.BandPass\"><code>p5.BandPass</code></a>:\\nAllows a range of frequencies to pass through and attenuates\\nthe frequencies below and above this frequency range.<br/>\\n\\n<p>The <code>.res()</code> method controls either width of the\\nbandpass, or resonance of the low/highpass cutoff frequency.</p>\\n<p>This class extends <a href = \"/reference/#/p5.Effect\">p5.Effect</a>.\\nMethods <a href = \"/reference/#/p5.Effect/amp\">amp()</a>, <a href = \"/reference/#/p5.Effect/chain\">chain()</a>,\\n<a href = \"/reference/#/p5.Effect/drywet\">drywet()</a>, <a href = \"/reference/#/p5.Effect/connect\">connect()</a>, and\\n<a href = \"/reference/#/p5.Effect/disconnect\">disconnect()</a> are available.</p>\\n',\n                extends: 'p5.Effect',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'type',\n                    description:\n                      '<p>&#39;lowpass&#39; (default), &#39;highpass&#39;, &#39;bandpass&#39;</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet fft, noise, filter;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100,100);\\n  cnv.mousePressed(makeNoise);\\n  fill(255, 0, 255);\\n\\n  filter = new p5.BandPass();\\n  noise = new p5.Noise();\\n  noise.disconnect();\\n  noise.connect(filter);\\n\\n  fft = new p5.FFT();\\n}\\n\\nfunction draw() {\\n  background(220);\\n\\n  // set the BandPass frequency based on mouseX\\n  let freq = map(mouseX, 0, width, 20, 10000);\\n  freq = constrain(freq, 0, 22050);\\n  filter.freq(freq);\\n  // give the filter a narrow band (lower res = wider bandpass)\\n  filter.res(50);\\n\\n  // draw filtered spectrum\\n  let spectrum = fft.analyze();\\n  noStroke();\\n  for (let i = 0; i < spectrum.length; i++) {\\n    let x = map(i, 0, spectrum.length, 0, width);\\n    let h = -height + map(spectrum[i], 0, 255, height, 0);\\n    rect(x, height, width/spectrum.length, h);\\n  }\\n  if (!noise.started) {\\n    text('tap here and drag to change frequency', 10, 20, width - 20);\\n  } else {\\n    text('Frequency: ' + round(freq)+'Hz', 20, 20, width - 20);\\n  }\\n}\\n\\nfunction makeNoise() {\\n  // see also: `userStartAudio()`\\n  noise.start();\\n  noise.amp(0.5, 0.2);\\n}\\n\\nfunction mouseReleased() {\\n  noise.amp(0, 0.2);\\n}\\n\\n</code></div>\"\n                ]\n              },\n              'p5.LowPass': {\n                name: 'p5.LowPass',\n                shortname: 'p5.LowPass',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 1147,\n                description:\n                  \"<p>Constructor: <code>new p5.LowPass()</code> Filter.\\nThis is the same as creating a p5.Filter and then calling\\nits method <code>setType('lowpass')</code>.\\nSee p5.Filter for methods.</p>\\n\",\n                is_constructor: 1,\n                extends: 'p5.Filter'\n              },\n              'p5.HighPass': {\n                name: 'p5.HighPass',\n                shortname: 'p5.HighPass',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 1164,\n                description:\n                  \"<p>Constructor: <code>new p5.HighPass()</code> Filter.\\nThis is the same as creating a p5.Filter and then calling\\nits method <code>setType('highpass')</code>.\\nSee p5.Filter for methods.</p>\\n\",\n                is_constructor: 1,\n                extends: 'p5.Filter'\n              },\n              'p5.BandPass': {\n                name: 'p5.BandPass',\n                shortname: 'p5.BandPass',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 1180,\n                description:\n                  \"<p>Constructor: <code>new p5.BandPass()</code> Filter.\\nThis is the same as creating a p5.Filter and then calling\\nits method <code>setType('bandpass')</code>.\\nSee p5.Filter for methods.</p>\\n\",\n                is_constructor: 1,\n                extends: 'p5.Filter'\n              },\n              'p5.Oscillator': {\n                name: 'p5.Oscillator',\n                shortname: 'p5.Oscillator',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 1375,\n                description:\n                  \"<p>Creates a signal that oscillates between -1.0 and 1.0.\\nBy default, the oscillation takes the form of a sinusoidal\\nshape ('sine'). Additional types include 'triangle',\\n'sawtooth' and 'square'. The frequency defaults to\\n440 oscillations per second (440Hz, equal to the pitch of an\\n'A' note).</p>\\n\\n<p>Set the type of oscillation with setType(), or by instantiating a\\nspecific oscillator: <a href=\\\"/reference/#/p5.SinOsc\\\">p5.SinOsc</a>, <a\\nhref=\\\"/reference/#/p5.TriOsc\\\">p5.TriOsc</a>, <a\\nhref=\\\"/reference/#/p5.SqrOsc\\\">p5.SqrOsc</a>, or <a\\nhref=\\\"/reference/#/p5.SawOsc\\\">p5.SawOsc</a>.\\n</p>\",\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'freq',\n                    description: '<p>frequency defaults to 440Hz</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'type',\n                    description:\n                      '<p>type of oscillator. Options:\\n                       &#39;sine&#39; (default), &#39;triangle&#39;,\\n                       &#39;sawtooth&#39;, &#39;square&#39;</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet osc, playing, freq, amp;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playOscillator);\\n  osc = new p5.Oscillator('sine');\\n}\\n\\nfunction draw() {\\n  background(220)\\n  freq = constrain(map(mouseX, 0, width, 100, 500), 100, 500);\\n  amp = constrain(map(mouseY, height, 0, 0, 1), 0, 1);\\n\\n  text('tap to play', 20, 20);\\n  text('freq: ' + freq, 20, 40);\\n  text('amp: ' + amp, 20, 60);\\n\\n  if (playing) {\\n    // smooth the transitions by 0.1 seconds\\n    osc.freq(freq, 0.1);\\n    osc.amp(amp, 0.1);\\n  }\\n}\\n\\nfunction playOscillator() {\\n  // starting an oscillator on a user gesture will enable audio\\n  // in browsers that have a strict autoplay policy.\\n  // See also: userStartAudio();\\n  osc.start();\\n  playing = true;\\n}\\n\\nfunction mouseReleased() {\\n  // ramp amplitude to 0 over 0.5 seconds\\n  osc.amp(0, 0.5);\\n  playing = false;\\n}\\n</code> </div>\"\n                ]\n              },\n              'p5.SinOsc': {\n                name: 'p5.SinOsc',\n                shortname: 'p5.SinOsc',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 1890,\n                description:\n                  \"<p>Constructor: <code>new p5.SinOsc()</code>.\\nThis creates a Sine Wave Oscillator and is\\nequivalent to <code> new p5.Oscillator('sine')\\n</code> or creating a p5.Oscillator and then calling\\nits method <code>setType('sine')</code>.\\nSee p5.Oscillator for methods.</p>\\n\",\n                is_constructor: 1,\n                extends: 'p5.Oscillator',\n                params: [\n                  {\n                    name: 'freq',\n                    description: '<p>Set the frequency</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ]\n              },\n              'p5.TriOsc': {\n                name: 'p5.TriOsc',\n                shortname: 'p5.TriOsc',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 1910,\n                description:\n                  \"<p>Constructor: <code>new p5.TriOsc()</code>.\\nThis creates a Triangle Wave Oscillator and is\\nequivalent to <code>new p5.Oscillator('triangle')\\n</code> or creating a p5.Oscillator and then calling\\nits method <code>setType('triangle')</code>.\\nSee p5.Oscillator for methods.</p>\\n\",\n                is_constructor: 1,\n                extends: 'p5.Oscillator',\n                params: [\n                  {\n                    name: 'freq',\n                    description: '<p>Set the frequency</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ]\n              },\n              'p5.SawOsc': {\n                name: 'p5.SawOsc',\n                shortname: 'p5.SawOsc',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 1929,\n                description:\n                  \"<p>Constructor: <code>new p5.SawOsc()</code>.\\nThis creates a SawTooth Wave Oscillator and is\\nequivalent to <code> new p5.Oscillator('sawtooth')\\n</code> or creating a p5.Oscillator and then calling\\nits method <code>setType('sawtooth')</code>.\\nSee p5.Oscillator for methods.</p>\\n\",\n                is_constructor: 1,\n                extends: 'p5.Oscillator',\n                params: [\n                  {\n                    name: 'freq',\n                    description: '<p>Set the frequency</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ]\n              },\n              'p5.SqrOsc': {\n                name: 'p5.SqrOsc',\n                shortname: 'p5.SqrOsc',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 1948,\n                description:\n                  \"<p>Constructor: <code>new p5.SqrOsc()</code>.\\nThis creates a Square Wave Oscillator and is\\nequivalent to <code> new p5.Oscillator('square')\\n</code> or creating a p5.Oscillator and then calling\\nits method <code>setType('square')</code>.\\nSee p5.Oscillator for methods.</p>\\n\",\n                is_constructor: 1,\n                extends: 'p5.Oscillator',\n                params: [\n                  {\n                    name: 'freq',\n                    description: '<p>Set the frequency</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ]\n              },\n              'p5.MonoSynth': {\n                name: 'p5.MonoSynth',\n                shortname: 'p5.MonoSynth',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 2008,\n                description:\n                  '<p>A MonoSynth is used as a single voice for sound synthesis.\\nThis is a class to be used in conjunction with the PolySynth\\nclass. Custom synthetisers should be built inheriting from\\nthis class.</p>\\n',\n                is_constructor: 1,\n                example: [\n                  \"\\n<div><code>\\nlet monoSynth;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playSynth);\\n  background(220);\\n  textAlign(CENTER);\\n  text('tap to play', width/2, height/2);\\n\\n  monoSynth = new p5.MonoSynth();\\n}\\n\\nfunction playSynth() {\\n  userStartAudio();\\n\\n  let note = random(['Fb4', 'G4']);\\n  // note velocity (volume, from 0 to 1)\\n  let velocity = random();\\n  // time from now (in seconds)\\n  let time = 0;\\n  // note duration (in seconds)\\n  let dur = 1/6;\\n\\n  monoSynth.play(note, velocity, time, dur);\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.AudioVoice': {\n                name: 'p5.AudioVoice',\n                shortname: 'p5.AudioVoice',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 2356,\n                description:\n                  '<p>Base class for monophonic synthesizers. Any extensions of this class\\nshould follow the API and implement the methods below in order to\\nremain compatible with p5.PolySynth();</p>\\n',\n                is_constructor: 1\n              },\n              'p5.PolySynth': {\n                name: 'p5.PolySynth',\n                shortname: 'p5.PolySynth',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 2426,\n                description:\n                  '<p>An AudioVoice is used as a single voice for sound synthesis.\\nThe PolySynth class holds an array of AudioVoice, and deals\\nwith voices allocations, with setting notes to be played, and\\nparameters to be set.</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'synthVoice',\n                    description:\n                      '<p>A monophonic synth voice inheriting\\n                               the AudioVoice class. Defaults to p5.MonoSynth</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'maxVoices',\n                    description: '<p>Number of voices, defaults to 8;</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet polySynth;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playSynth);\\n  background(220);\\n  text('click to play', 20, 20);\\n\\n  polySynth = new p5.PolySynth();\\n}\\n\\nfunction playSynth() {\\n  userStartAudio();\\n\\n  // note duration (in seconds)\\n  let dur = 1.5;\\n\\n  // time from now (in seconds)\\n  let time = 0;\\n\\n  // velocity (volume, from 0 to 1)\\n  let vel = 0.1;\\n\\n  // notes can overlap with each other\\n  polySynth.play('G2', vel, 0, dur);\\n  polySynth.play('C3', vel, time += 1/3, dur);\\n  polySynth.play('G3', vel, time += 1/3, dur);\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.SoundFile': {\n                name: 'p5.SoundFile',\n                shortname: 'p5.SoundFile',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 3360,\n                description:\n                  '<p>SoundFile object with a path to a file.</p>\\n\\n<p>The p5.SoundFile may not be available immediately because\\nit loads the file information asynchronously.</p>\\n\\n<p>To do something with the sound as soon as it loads\\npass the name of a function as the second parameter.</p>\\n\\n<p>Only one file path is required. However, audio file formats\\n(i.e. mp3, ogg, wav and m4a/aac) are not supported by all\\nweb browsers. If you want to ensure compatability, instead of a single\\nfile path, you may include an Array of filepaths, and the browser will\\nchoose a format that works.</p>',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'path',\n                    description:\n                      '<p>path to a sound file (String). Optionally,\\n                             you may include multiple file formats in\\n                             an array. Alternately, accepts an object\\n                             from the HTML5 File API, or a p5.File.</p>\\n',\n                    type: 'String|Array'\n                  },\n                  {\n                    name: 'successCallback',\n                    description: '<p>Name of a function to call once file loads</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'errorCallback',\n                    description:\n                      '<p>Name of a function to call if file fails to\\n                                    load. This function will receive an error or\\n                                   XMLHttpRequest object with information\\n                                   about what went wrong.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'whileLoadingCallback',\n                    description:\n                      '<p>Name of a function to call while file\\n                                           is loading. That function will\\n                                           receive progress of the request to\\n                                           load the sound file\\n                                           (between 0 and 1) as its first\\n                                           parameter. This progress\\n                                           does not account for the additional\\n                                           time needed to decode the audio data.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet mySound;\\nfunction preload() {\\n  soundFormats('mp3', 'ogg');\\n  mySound = loadSound('assets/doorbell');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(canvasPressed);\\n  background(220);\\n  text('tap here to play', 10, 20);\\n}\\n\\nfunction canvasPressed() {\\n  // playing a sound file on a user gesture\\n  // is equivalent to `userStartAudio()`\\n  mySound.play();\\n}\\n </code></div>\"\n                ]\n              },\n              'p5.Amplitude': {\n                name: 'p5.Amplitude',\n                shortname: 'p5.Amplitude',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 5186,\n                description:\n                  '<p>Amplitude measures volume between 0.0 and 1.0.\\nListens to all p5sound by default, or use setInput()\\nto listen to a specific sound source. Accepts an optional\\nsmoothing value, which defaults to 0.</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'smoothing',\n                    description:\n                      '<p>between 0.0 and .999 to smooth\\n                           amplitude readings (defaults to 0)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet sound, amplitude;\\n\\nfunction preload(){\\n  sound = loadSound('assets/beat.mp3');\\n}\\nfunction setup() {\\n  let cnv = createCanvas(100,100);\\n  cnv.mouseClicked(toggleSound);\\n  amplitude = new p5.Amplitude();\\n}\\n\\nfunction draw() {\\n  background(220);\\n  text('tap to play', 20, 20);\\n\\n  let level = amplitude.getLevel();\\n  let size = map(level, 0, 1, 0, 200);\\n  ellipse(width/2, height/2, size, size);\\n}\\n\\nfunction toggleSound() {\\n  if (sound.isPlaying() ){\\n    sound.stop();\\n  } else {\\n    sound.play();\\n  }\\n}\\n\\n</code></div>\"\n                ]\n              },\n              'p5.FFT': {\n                name: 'p5.FFT',\n                shortname: 'p5.FFT',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 5499,\n                description:\n                  '<p>FFT (Fast Fourier Transform) is an analysis algorithm that\\nisolates individual\\n<a href=\"https://en.wikipedia.org/wiki/Audio_frequency\">\\naudio frequencies</a> within a waveform.</p>\\n\\n<p>Once instantiated, a p5.FFT object can return an array based on\\ntwo types of analyses: <br> • <code>FFT.waveform()</code> computes\\namplitude values along the time domain. The array indices correspond\\nto samples across a brief moment in time. Each value represents\\namplitude of the waveform at that sample of time.<br>\\n• <code>FFT.analyze() </code> computes amplitude values along the\\nfrequency domain. The array indices correspond to frequencies (i.e.\\npitches), from the lowest to the highest that humans can hear. Each\\nvalue represents amplitude at that slice of the frequency spectrum.\\nUse with <code>getEnergy()</code> to measure amplitude at specific\\nfrequencies, or within a range of frequencies. </p>\\n\\n<p>FFT analyzes a very short snapshot of sound called a sample\\nbuffer. It returns an array of amplitude measurements, referred\\nto as <code>bins</code>. The array is 1024 bins long by default.\\nYou can change the bin array length, but it must be a power of 2\\nbetween 16 and 1024 in order for the FFT algorithm to function\\ncorrectly. The actual size of the FFT buffer is twice the\\nnumber of bins, so given a standard sample rate, the buffer is\\n2048/44100 seconds long.</p>',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'smoothing',\n                    description:\n                      '<p>Smooth results of Freq Spectrum.\\n                              0.0 &lt; smoothing &lt; 1.0.\\n                              Defaults to 0.8.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'bins',\n                    description:\n                      '<p>Length of resulting array.\\n                          Must be a power of two between\\n                          16 and 1024. Defaults to 1024.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nfunction preload(){\\n  sound = loadSound('assets/Damscray_DancingTiger.mp3');\\n}\\n\\nfunction setup(){\\n  let cnv = createCanvas(100,100);\\n  cnv.mouseClicked(togglePlay);\\n  fft = new p5.FFT();\\n  sound.amp(0.2);\\n}\\n\\nfunction draw(){\\n  background(220);\\n\\n  let spectrum = fft.analyze();\\n  noStroke();\\n  fill(255, 0, 255);\\n  for (let i = 0; i< spectrum.length; i++){\\n    let x = map(i, 0, spectrum.length, 0, width);\\n    let h = -height + map(spectrum[i], 0, 255, height, 0);\\n    rect(x, height, width / spectrum.length, h )\\n  }\\n\\n  let waveform = fft.waveform();\\n  noFill();\\n  beginShape();\\n  stroke(20);\\n  for (let i = 0; i < waveform.length; i++){\\n    let x = map(i, 0, waveform.length, 0, width);\\n    let y = map( waveform[i], -1, 1, 0, height);\\n    vertex(x,y);\\n  }\\n  endShape();\\n\\n  text('tap to play', 20, 20);\\n}\\n\\nfunction togglePlay() {\\n  if (sound.isPlaying()) {\\n    sound.pause();\\n  } else {\\n    sound.loop();\\n  }\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Signal': {\n                name: 'p5.Signal',\n                shortname: 'p5.Signal',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 6146,\n                description:\n                  \"<p>p5.Signal is a constant audio-rate signal used by p5.Oscillator\\nand p5.Envelope for modulation math.</p>\\n\\n<p>This is necessary because Web Audio is processed on a seprate clock.\\nFor example, the p5 draw loop runs about 60 times per second. But\\nthe audio clock must process samples 44100 times per second. If we\\nwant to add a value to each of those samples, we can't do it in the\\ndraw loop, but we can do it by adding a constant-rate audio signal.</p.\\n\\n<p>This class mostly functions behind the scenes in p5.sound, and returns\\na Tone.Signal from the Tone.js library by Yotam Mann.\\nIf you want to work directly with audio signals for modular\\nsynthesis, check out\\n<a href='http://bit.ly/1oIoEng' target=_'blank'>tone.js.</a></p>\",\n                is_constructor: 1,\n                return: {\n                  description: 'A Signal object from the Tone.js library',\n                  type: 'Tone.Signal'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet carrier, modulator;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(canvasPressed);\\n  background(220);\\n  text('tap to play', 20, 20);\\n\\n  carrier = new p5.Oscillator('sine');\\n  carrier.start();\\n  carrier.amp(1); // set amplitude\\n  carrier.freq(220); // set frequency\\n\\n  modulator = new p5.Oscillator('sawtooth');\\n  modulator.disconnect();\\n  modulator.start();\\n  modulator.amp(1);\\n  modulator.freq(4);\\n\\n  // Modulator's default amplitude range is -1 to 1.\\n  // Multiply it by -200, so the range is -200 to 200\\n  // then add 220 so the range is 20 to 420\\n  carrier.freq( modulator.mult(-400).add(220) );\\n}\\n\\nfunction canvasPressed() {\\n  userStartAudio();\\n  carrier.amp(1.0);\\n}\\n\\nfunction mouseReleased() {\\n  carrier.amp(0);\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Envelope': {\n                name: 'p5.Envelope',\n                shortname: 'p5.Envelope',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 6350,\n                description:\n                  '<p>Envelopes are pre-defined amplitude distribution over time.\\nTypically, envelopes are used to control the output volume\\nof an object, a series of fades referred to as Attack, Decay,\\nSustain and Release (\\n<a href=\"https://upload.wikimedia.org/wikipedia/commons/e/ea/ADSR_parameter.svg\">ADSR</a>\\n). Envelopes can also control other Web Audio Parameters—for example, a p5.Envelope can\\ncontrol an Oscillator\\'s frequency like this: <code>osc.freq(env)</code>.</p>\\n<p>Use <code><a href=\"#/p5.Envelope/setRange\">setRange</a></code> to change the attack/release level.\\nUse <code><a href=\"#/p5.Envelope/setADSR\">setADSR</a></code> to change attackTime, decayTime, sustainPercent and releaseTime.</p>\\n<p>Use the <code><a href=\"#/p5.Envelope/play\">play</a></code> method to play the entire envelope,\\nthe <code><a href=\"#/p5.Envelope/ramp\">ramp</a></code> method for a pingable trigger,\\nor <code><a href=\"#/p5.Envelope/triggerAttack\">triggerAttack</a></code>/\\n<code><a href=\"#/p5.Envelope/triggerRelease\">triggerRelease</a></code> to trigger noteOn/noteOff.</p>',\n                is_constructor: 1,\n                example: [\n                  \"\\n<div><code>\\nlet t1 = 0.1; // attack time in seconds\\nlet l1 = 0.7; // attack level 0.0 to 1.0\\nlet t2 = 0.3; // decay time in seconds\\nlet l2 = 0.1; // decay level  0.0 to 1.0\\n\\nlet env;\\nlet triOsc;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  background(220);\\n  text('tap to play', 20, 20);\\n  cnv.mousePressed(playSound);\\n\\n  env = new p5.Envelope(t1, l1, t2, l2);\\n  triOsc = new p5.Oscillator('triangle');\\n}\\n\\nfunction playSound() {\\n  // starting the oscillator ensures that audio is enabled.\\n  triOsc.start();\\n  env.play(triOsc);\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Pulse': {\n                name: 'p5.Pulse',\n                shortname: 'p5.Pulse',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 7192,\n                description:\n                  '<p>Creates a Pulse object, an oscillator that implements\\nPulse Width Modulation.\\nThe pulse is created with two oscillators.\\nAccepts a parameter for frequency, and to set the\\nwidth between the pulses. See <a href=\"\\nhttp://p5js.org/reference/#/p5.Oscillator\">\\n<code>p5.Oscillator</code> for a full list of methods.</p>\\n',\n                extends: 'p5.Oscillator',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'freq',\n                    description: '<p>Frequency in oscillations per second (Hz)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'w',\n                    description:\n                      '<p>Width between the pulses (0 to 1.0,\\n                       defaults to 0)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet pulse;\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(startPulse);\\n  background(220);\\n\\n  pulse = new p5.Pulse();\\n  pulse.amp(0.5);\\n  pulse.freq(220);\\n}\\nfunction startPulse() {\\n  pulse.start();\\n  pulse.amp(0.5, 0.02);\\n}\\nfunction mouseReleased() {\\n  pulse.amp(0, 0.2);\\n}\\nfunction draw() {\\n  background(220);\\n  text('tap to play', 5, 20, width - 20);\\n  let w = map(mouseX, 0, width, 0, 1);\\n  w = constrain(w, 0, 1);\\n  pulse.width(w);\\n  text('pulse width: ' + w, 5, height - 20);\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Noise': {\n                name: 'p5.Noise',\n                shortname: 'p5.Noise',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 7399,\n                description:\n                  '<p>Noise is a type of oscillator that generates a buffer with random values.</p>\\n',\n                extends: 'p5.Oscillator',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'type',\n                    description:\n                      '<p>Type of noise can be &#39;white&#39; (default),\\n                     &#39;brown&#39; or &#39;pink&#39;.</p>\\n',\n                    type: 'String'\n                  }\n                ]\n              },\n              'p5.AudioIn': {\n                name: 'p5.AudioIn',\n                shortname: 'p5.AudioIn',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 7583,\n                description:\n                  '<p>Get audio from an input, i.e. your computer\\'s microphone.</p>\\n\\n<p>Turn the mic on/off with the start() and stop() methods. When the mic\\nis on, its volume can be measured with getLevel or by connecting an\\nFFT object.</p>\\n\\n<p>If you want to hear the AudioIn, use the .connect() method.\\nAudioIn does not connect to p5.sound output by default to prevent\\nfeedback.</p>\\n\\n<p><em>Note: This uses the <a href=\"http://caniuse.com/stream\">getUserMedia/\\nStream</a> API, which is not supported by certain browsers. Access in Chrome browser\\nis limited to localhost and https, but access over http may be limited.</em></p>',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'errorCallback',\n                    description:\n                      '<p>A function to call if there is an error\\n                                  accessing the AudioIn. For example,\\n                                  Safari and iOS devices do not\\n                                  currently allow microphone access.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet mic;\\n\\n function setup(){\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(userStartAudio);\\n  textAlign(CENTER);\\n  mic = new p5.AudioIn();\\n  mic.start();\\n}\\n\\nfunction draw(){\\n  background(0);\\n  fill(255);\\n  text('tap to start', width/2, 20);\\n\\n  micLevel = mic.getLevel();\\n  let y = height - micLevel * height;\\n  ellipse(width/2, y, 10, 10);\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.EQ': {\n                name: 'p5.EQ',\n                shortname: 'p5.EQ',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 8021,\n                description:\n                  '<p>p5.EQ is an audio effect that performs the function of a multiband\\naudio equalizer. Equalization is used to adjust the balance of\\nfrequency compoenents of an audio signal. This process is commonly used\\nin sound production and recording to change the waveform before it reaches\\na sound output device. EQ can also be used as an audio effect to create\\ninteresting distortions by filtering out parts of the spectrum. p5.EQ is\\nbuilt using a chain of Web Audio Biquad Filter Nodes and can be\\ninstantiated with 3 or 8 bands. Bands can be added or removed from\\nthe EQ by directly modifying p5.EQ.bands (the array that stores filters).</p>\\n<p>This class extends <a href = \"/reference/#/p5.Effect\">p5.Effect</a>.\\nMethods <a href = \"/reference/#/p5.Effect/amp\">amp()</a>, <a href = \"/reference/#/p5.Effect/chain\">chain()</a>,\\n<a href = \"/reference/#/p5.Effect/drywet\">drywet()</a>, <a href = \"/reference/#/p5.Effect/connect\">connect()</a>, and\\n<a href = \"/reference/#/p5.Effect/disconnect\">disconnect()</a> are available.</p>\\n',\n                is_constructor: 1,\n                extends: 'p5.Effect',\n                params: [\n                  {\n                    name: '_eqsize',\n                    description: '<p>Constructor will accept 3 or 8, defaults to 3</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'p5.EQ object',\n                  type: 'Object'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet eq, soundFile\\nlet eqBandIndex = 0;\\nlet eqBandNames = ['lows', 'mids', 'highs'];\\n\\nfunction preload() {\\n  soundFormats('mp3', 'ogg');\\n  soundFile = loadSound('assets/beat');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(toggleSound);\\n\\n  eq = new p5.EQ(eqBandNames.length);\\n  soundFile.disconnect();\\n  eq.process(soundFile);\\n}\\n\\nfunction draw() {\\n  background(30);\\n  noStroke();\\n  fill(255);\\n  textAlign(CENTER);\\n  text('filtering ', 50, 25);\\n\\n  fill(255, 40, 255);\\n  textSize(26);\\n  text(eqBandNames[eqBandIndex], 50, 55);\\n\\n  fill(255);\\n  textSize(9);\\n\\n  if (!soundFile.isPlaying()) {\\n    text('tap to play', 50, 80);\\n  } else {\\n    text('tap to filter next band', 50, 80)\\n  }\\n}\\n\\nfunction toggleSound() {\\n  if (!soundFile.isPlaying()) {\\n    soundFile.play();\\n  } else {\\n    eqBandIndex = (eqBandIndex + 1) % eq.bands.length;\\n  }\\n\\n  for (let i = 0; i < eq.bands.length; i++) {\\n    eq.bands[i].gain(0);\\n  }\\n  // filter the band we want to filter\\n  eq.bands[eqBandIndex].gain(-40);\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Panner3D': {\n                name: 'p5.Panner3D',\n                shortname: 'p5.Panner3D',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 8301,\n                description:\n                  '<p>Panner3D is based on the <a title=\"Web Audio Panner docs\"  href=\\n\"https://developer.mozilla.org/en-US/docs/Web/API/PannerNode\">\\nWeb Audio Spatial Panner Node</a>.\\nThis panner is a spatial processing node that allows audio to be positioned\\nand oriented in 3D space.</p>\\n<p>The position is relative to an <a title=\"Web Audio Listener docs\" href=\\n\"https://developer.mozilla.org/en-US/docs/Web/API/AudioListener\">\\nAudio Context Listener</a>, which can be accessed\\nby <code>p5.soundOut.audiocontext.listener</code></p>\\n',\n                is_constructor: 1\n              },\n              'p5.Delay': {\n                name: 'p5.Delay',\n                shortname: 'p5.Delay',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 8829,\n                description:\n                  '<p>Delay is an echo effect. It processes an existing sound source,\\nand outputs a delayed version of that sound. The p5.Delay can\\nproduce different effects depending on the delayTime, feedback,\\nfilter, and type. In the example below, a feedback of 0.5 (the\\ndefault value) will produce a looping delay that decreases in\\nvolume by 50% each repeat. A filter will cut out the high\\nfrequencies so that the delay does not sound as piercing as the\\noriginal source.</p>\\n<p>This class extends <a href = \"/reference/#/p5.Effect\">p5.Effect</a>.\\nMethods <a href = \"/reference/#/p5.Effect/amp\">amp()</a>, <a href = \"/reference/#/p5.Effect/chain\">chain()</a>,\\n<a href = \"/reference/#/p5.Effect/drywet\">drywet()</a>, <a href = \"/reference/#/p5.Effect/connect\">connect()</a>, and\\n<a href = \"/reference/#/p5.Effect/disconnect\">disconnect()</a> are available.</p>\\n',\n                extends: 'p5.Effect',\n                is_constructor: 1,\n                example: [\n                  \"\\n<div><code>\\nlet osc;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  background(220);\\n  textAlign(CENTER);\\n  text('tap to play', width/2, height/2);\\n\\n  osc = new p5.Oscillator('square');\\n  osc.amp(0.5);\\n  delay = new p5.Delay();\\n\\n  // delay.process() accepts 4 parameters:\\n  // source, delayTime (in seconds), feedback, filter frequency\\n  delay.process(osc, 0.12, .7, 2300);\\n\\n  cnv.mousePressed(oscStart);\\n}\\n\\nfunction oscStart() {\\n  osc.start();\\n}\\n\\nfunction mouseReleased() {\\n  osc.stop();\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Reverb': {\n                name: 'p5.Reverb',\n                shortname: 'p5.Reverb',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 9175,\n                description:\n                  '<p>Reverb adds depth to a sound through a large number of decaying\\nechoes. It creates the perception that sound is occurring in a\\nphysical space. The p5.Reverb has paramters for Time (how long does the\\nreverb last) and decayRate (how much the sound decays with each echo)\\nthat can be set with the .set() or .process() methods. The p5.Convolver\\nextends p5.Reverb allowing you to recreate the sound of actual physical\\nspaces through convolution.</p>\\n<p>This class extends <a href = \"/reference/#/p5.Effect\">p5.Effect</a>.\\nMethods <a href = \"/reference/#/p5.Effect/amp\">amp()</a>, <a href = \"/reference/#/p5.Effect/chain\">chain()</a>,\\n<a href = \"/reference/#/p5.Effect/drywet\">drywet()</a>, <a href = \"/reference/#/p5.Effect/connect\">connect()</a>, and\\n<a href = \"/reference/#/p5.Effect/disconnect\">disconnect()</a> are available.</p>\\n',\n                extends: 'p5.Effect',\n                is_constructor: 1,\n                example: [\n                  \"\\n<div><code>\\nlet soundFile, reverb;\\nfunction preload() {\\n  soundFile = loadSound('assets/Damscray_DancingTiger.mp3');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playSound);\\n\\n  reverb = new p5.Reverb();\\n  soundFile.disconnect(); // so we'll only hear reverb...\\n\\n  // connect soundFile to reverb, process w/\\n  // 3 second reverbTime, decayRate of 2%\\n  reverb.process(soundFile, 3, 2);\\n}\\n\\nfunction draw() {\\n  let dryWet = constrain(map(mouseX, 0, width, 0, 1), 0, 1);\\n  // 1 = all reverb, 0 = no reverb\\n  reverb.drywet(dryWet);\\n\\n  background(220);\\n  text('tap to play', 10, 20);\\n  text('dry/wet: ' + round(dryWet * 100) + '%', 10, height - 20);\\n}\\n\\nfunction playSound() {\\n  soundFile.play();\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Convolver': {\n                name: 'p5.Convolver',\n                shortname: 'p5.Convolver',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 9397,\n                description:\n                  '<p>p5.Convolver extends p5.Reverb. It can emulate the sound of real\\nphysical spaces through a process called <a href=\"\\nhttps://en.wikipedia.org/wiki/Convolution_reverb#Real_space_simulation\">\\nconvolution</a>.</p>\\n\\n<p>Convolution multiplies any audio input by an \"impulse response\"\\nto simulate the dispersion of sound over time. The impulse response is\\ngenerated from an audio file that you provide. One way to\\ngenerate an impulse response is to pop a balloon in a reverberant space\\nand record the echo. Convolution can also be used to experiment with\\nsound.</p>\\n\\n<p>Use the method <code>createConvolution(path)</code> to instantiate a\\np5.Convolver with a path to your impulse response audio file.</p>',\n                extends: 'p5.Effect',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'path',\n                    description: '<p>path to a sound file</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'callback',\n                    description: '<p>function to call when loading succeeds</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'errorCallback',\n                    description:\n                      '<p>function to call if loading fails.\\n                                   This function will receive an error or\\n                                   XMLHttpRequest object with information\\n                                   about what went wrong.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet cVerb, sound;\\nfunction preload() {\\n  // We have both MP3 and OGG versions of all sound assets\\n  soundFormats('ogg', 'mp3');\\n\\n  // Try replacing 'bx-spring' with other soundfiles like\\n  // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox'\\n  cVerb = createConvolver('assets/bx-spring.mp3');\\n\\n  // Try replacing 'Damscray_DancingTiger' with\\n  // 'beat', 'doorbell', lucky_dragons_-_power_melody'\\n  sound = loadSound('assets/Damscray_DancingTiger.mp3');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playSound);\\n  background(220);\\n  text('tap to play', 20, 20);\\n\\n  // disconnect from master output...\\n  sound.disconnect();\\n\\n  // ...and process with cVerb\\n  // so that we only hear the convolution\\n  cVerb.process(sound);\\n}\\n\\nfunction playSound() {\\n  sound.play();\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Phrase': {\n                name: 'p5.Phrase',\n                shortname: 'p5.Phrase',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 9922,\n                description:\n                  \"<p>A phrase is a pattern of musical events over time, i.e.\\na series of notes and rests.</p>\\n\\n<p>Phrases must be added to a p5.Part for playback, and\\neach part can play multiple phrases at the same time.\\nFor example, one Phrase might be a kick drum, another\\ncould be a snare, and another could be the bassline.</p>\\n\\n<p>The first parameter is a name so that the phrase can be\\nmodified or deleted later. The callback is a a function that\\nthis phrase will call at every step—for example it might be\\ncalled <code>playNote(value){}</code>. The array determines\\nwhich value is passed into the callback at each step of the\\nphrase. It can be numbers, an object with multiple numbers,\\nor a zero (0) indicates a rest so the callback won't be called).</p>\",\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'name',\n                    description: '<p>Name so that you can access the Phrase.</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>The name of a function that this phrase\\n                           will call. Typically it will play a sound,\\n                           and accept two parameters: a time at which\\n                           to play the sound (in seconds from now),\\n                           and a value from the sequence array. The\\n                           time should be passed into the play() or\\n                           start() method to ensure precision.</p>\\n',\n                    type: 'Function'\n                  },\n                  {\n                    name: 'sequence',\n                    description:\n                      '<p>Array of values to pass into the callback\\n                          at each step of the phrase.</p>\\n',\n                    type: 'Array'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet mySound, myPhrase, myPart;\\nlet pattern = [1,0,0,2,0,2,0,0];\\n\\nfunction preload() {\\n  mySound = loadSound('assets/beatbox.mp3');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playMyPart);\\n  background(220);\\n  text('tap to play', width/2, height/2);\\n  textAlign(CENTER, CENTER);\\n\\n  myPhrase = new p5.Phrase('bbox', onEachStep, pattern);\\n  myPart = new p5.Part();\\n  myPart.addPhrase(myPhrase);\\n  myPart.setBPM(60);\\n}\\n\\nfunction onEachStep(time, playbackRate) {\\n  mySound.rate(playbackRate);\\n  mySound.play(time);\\n}\\n\\nfunction playMyPart() {\\n  userStartAudio();\\n  myPart.start();\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Part': {\n                name: 'p5.Part',\n                shortname: 'p5.Part',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 10002,\n                description:\n                  '<p>A p5.Part plays back one or more p5.Phrases. Instantiate a part\\nwith steps and tatums. By default, each step represents a 1/16th note.</p>\\n\\n<p>See p5.Phrase for more about musical timing.</p>',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'steps',\n                    description: '<p>Steps in the part</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'tatums',\n                    description:\n                      '<p>Divisions of a beat, e.g. use 1/4, or 0.25 for a quater note (default is 1/16, a sixteenth note)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet box, drum, myPart;\\nlet boxPat = [1,0,0,2,0,2,0,0];\\nlet drumPat = [0,1,1,0,2,0,1,0];\\n\\nfunction preload() {\\n  box = loadSound('assets/beatbox.mp3');\\n  drum = loadSound('assets/drum.mp3');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playMyPart);\\n  background(220);\\n  textAlign(CENTER, CENTER);\\n  text('tap to play', width/2, height/2);\\n\\n  let boxPhrase = new p5.Phrase('box', playBox, boxPat);\\n  let drumPhrase = new p5.Phrase('drum', playDrum, drumPat);\\n  myPart = new p5.Part();\\n  myPart.addPhrase(boxPhrase);\\n  myPart.addPhrase(drumPhrase);\\n  myPart.setBPM(60);\\n}\\n\\nfunction playBox(time, playbackRate) {\\n  box.rate(playbackRate);\\n  box.play(time);\\n}\\n\\nfunction playDrum(time, playbackRate) {\\n  drum.rate(playbackRate);\\n  drum.play(time);\\n}\\n\\nfunction playMyPart() {\\n  userStartAudio();\\n\\n  myPart.start();\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Score': {\n                name: 'p5.Score',\n                shortname: 'p5.Score',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 10288,\n                description:\n                  '<p>A Score consists of a series of Parts. The parts will\\nbe played back in order. For example, you could have an\\nA part, a B part, and a C part, and play them back in this order\\n<code>new p5.Score(a, a, b, a, c)</code></p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'parts',\n                    description:\n                      '<p>One or multiple parts, to be played in sequence.</p>\\n',\n                    type: 'p5.Part',\n                    optional: true,\n                    multiple: true\n                  }\n                ]\n              },\n              'p5.SoundLoop': {\n                name: 'p5.SoundLoop',\n                shortname: 'p5.SoundLoop',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 10454,\n                description: '<p>SoundLoop</p>\\n',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>this function will be called on each iteration of theloop</p>\\n',\n                    type: 'Function'\n                  },\n                  {\n                    name: 'interval',\n                    description:\n                      '<p>amount of time (if a number) or beats (if a string, following <a href = \"https://github.com/Tonejs/Tone.js/wiki/Time\">Tone.Time</a> convention) for each iteration of the loop. Defaults to 1 second.</p>\\n',\n                    type: 'Number|String',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\n let synth, soundLoop;\\n let notePattern = [60, 62, 64, 67, 69, 72];\\n\\n function setup() {\\n   let cnv = createCanvas(100, 100);\\n   cnv.mousePressed(canvasPressed);\\n   colorMode(HSB);\\n   background(0, 0, 86);\\n   text('tap to start/stop', 10, 20);\\n\\n   //the looper's callback is passed the timeFromNow\\n   //this value should be used as a reference point from\\n   //which to schedule sounds\\n   let intervalInSeconds = 0.2;\\n   soundLoop = new p5.SoundLoop(onSoundLoop, intervalInSeconds);\\n\\n   synth = new p5.MonoSynth();\\n}\\n\\nfunction canvasPressed() {\\n  // ensure audio is enabled\\n  userStartAudio();\\n\\n  if (soundLoop.isPlaying) {\\n    soundLoop.stop();\\n  } else {\\n    // start the loop\\n    soundLoop.start();\\n  }\\n}\\n\\nfunction onSoundLoop(timeFromNow) {\\n  let noteIndex = (soundLoop.iterations - 1) % notePattern.length;\\n  let note = midiToFreq(notePattern[noteIndex]);\\n  synth.play(note, 0.5, timeFromNow);\\n  background(noteIndex * 360 / notePattern.length, 50, 100);\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Compressor': {\n                name: 'p5.Compressor',\n                shortname: 'p5.Compressor',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 10792,\n                description:\n                  '<p>Compressor is an audio effect class that performs dynamics compression\\non an audio input source. This is a very commonly used technique in music\\nand sound production. Compression creates an overall louder, richer,\\nand fuller sound by lowering the volume of louds and raising that of softs.\\nCompression can be used to avoid clipping (sound distortion due to\\npeaks in volume) and is especially useful when many sounds are played\\nat once. Compression can be used on indivudal sound sources in addition\\nto the master output.</p>\\n<p>This class extends <a href = \"/reference/#/p5.Effect\">p5.Effect</a>.\\nMethods <a href = \"/reference/#/p5.Effect/amp\">amp()</a>, <a href = \"/reference/#/p5.Effect/chain\">chain()</a>,\\n<a href = \"/reference/#/p5.Effect/drywet\">drywet()</a>, <a href = \"/reference/#/p5.Effect/connect\">connect()</a>, and\\n<a href = \"/reference/#/p5.Effect/disconnect\">disconnect()</a> are available.</p>\\n',\n                is_constructor: 1,\n                extends: 'p5.Effect'\n              },\n              'p5.SoundRecorder': {\n                name: 'p5.SoundRecorder',\n                shortname: 'p5.SoundRecorder',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 11056,\n                description:\n                  '<p>Record sounds for playback and/or to save as a .wav file.\\nThe p5.SoundRecorder records all sound output from your sketch,\\nor can be assigned a specific source with setInput().</p>\\n<p>The record() method accepts a p5.SoundFile as a parameter.\\nWhen playback is stopped (either after the given amount of time,\\nor with the stop() method), the p5.SoundRecorder will send its\\nrecording to that p5.SoundFile for playback.</p>',\n                is_constructor: 1,\n                example: [\n                  \"\\n<div><code>\\nlet mic, recorder, soundFile;\\nlet state = 0;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(canvasPressed);\\n  background(220);\\n  textAlign(CENTER, CENTER);\\n\\n  // create an audio in\\n  mic = new p5.AudioIn();\\n\\n  // prompts user to enable their browser mic\\n  mic.start();\\n\\n  // create a sound recorder\\n  recorder = new p5.SoundRecorder();\\n\\n  // connect the mic to the recorder\\n  recorder.setInput(mic);\\n\\n  // this sound file will be used to\\n  // playback & save the recording\\n  soundFile = new p5.SoundFile();\\n\\n  text('tap to record', width/2, height/2);\\n}\\n\\nfunction canvasPressed() {\\n  // ensure audio is enabled\\n  userStartAudio();\\n\\n  // make sure user enabled the mic\\n  if (state === 0 && mic.enabled) {\\n\\n    // record to our p5.SoundFile\\n    recorder.record(soundFile);\\n\\n    background(255,0,0);\\n    text('Recording!', width/2, height/2);\\n    state++;\\n  }\\n  else if (state === 1) {\\n    background(0,255,0);\\n\\n    // stop recorder and\\n    // send result to soundFile\\n    recorder.stop();\\n\\n    text('Done! Tap to play and download', width/2, height/2, width - 20);\\n    state++;\\n  }\\n\\n  else if (state === 2) {\\n    soundFile.play(); // play the result!\\n    save(soundFile, 'mySound.wav');\\n    state++;\\n  }\\n}\\n</div></code>\"\n                ]\n              },\n              'p5.PeakDetect': {\n                name: 'p5.PeakDetect',\n                shortname: 'p5.PeakDetect',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 11286,\n                description:\n                  '<p>PeakDetect works in conjunction with p5.FFT to\\nlook for onsets in some or all of the frequency spectrum.\\n</p>\\n<p>\\nTo use p5.PeakDetect, call <code>update</code> in the draw loop\\nand pass in a p5.FFT object.\\n</p>\\n<p>\\nYou can listen for a specific part of the frequency spectrum by\\nsetting the range between <code>freq1</code> and <code>freq2</code>.\\n</p>\\n\\n<p><code>threshold</code> is the threshold for detecting a peak,\\nscaled between 0 and 1. It is logarithmic, so 0.1 is half as loud\\nas 1.0.</p>\\n\\n<p>\\nThe update method is meant to be run in the draw loop, and\\n<b>frames</b> determines how many loops must pass before\\nanother peak can be detected.\\nFor example, if the frameRate() = 60, you could detect the beat of a\\n120 beat-per-minute song with this equation:\\n<code> framesPerPeak = 60 / (estimatedBPM / 60 );</code>\\n</p>\\n\\n<p>\\nBased on example contribtued by @b2renger, and a simple beat detection\\nexplanation by <a\\nhref=\"http://www.airtightinteractive.com/2013/10/making-audio-reactive-visuals/\"\\ntarget=\"_blank\">Felix Turner</a>.\\n</p>',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'freq1',\n                    description: '<p>lowFrequency - defaults to 20Hz</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'freq2',\n                    description: '<p>highFrequency - defaults to 20000 Hz</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'threshold',\n                    description:\n                      '<p>Threshold for detecting a beat between 0 and 1\\n                          scaled logarithmically where 0.1 is 1/2 the loudness\\n                          of 1.0. Defaults to 0.35.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'framesPerPeak',\n                    description: '<p>Defaults to 20.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\n\\nvar cnv, soundFile, fft, peakDetect;\\nvar ellipseWidth = 10;\\n\\nfunction preload() {\\n  soundFile = loadSound('assets/beat.mp3');\\n}\\n\\nfunction setup() {\\n  background(0);\\n  noStroke();\\n  fill(255);\\n  textAlign(CENTER);\\n\\n  // p5.PeakDetect requires a p5.FFT\\n  fft = new p5.FFT();\\n  peakDetect = new p5.PeakDetect();\\n}\\n\\nfunction draw() {\\n  background(0);\\n  text('click to play/pause', width/2, height/2);\\n\\n  // peakDetect accepts an fft post-analysis\\n  fft.analyze();\\n  peakDetect.update(fft);\\n\\n  if ( peakDetect.isDetected ) {\\n    ellipseWidth = 50;\\n  } else {\\n    ellipseWidth *= 0.95;\\n  }\\n\\n  ellipse(width/2, height/2, ellipseWidth, ellipseWidth);\\n}\\n\\n// toggle play/stop when canvas is clicked\\nfunction mouseClicked() {\\n  if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\\n    if (soundFile.isPlaying() ) {\\n      soundFile.stop();\\n    } else {\\n      soundFile.play();\\n    }\\n  }\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Gain': {\n                name: 'p5.Gain',\n                shortname: 'p5.Gain',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 11521,\n                description:\n                  '<p>A gain node is usefull to set the relative volume of sound.\\nIt&#39;s typically used to build mixers.</p>\\n',\n                is_constructor: 1,\n                example: [\n                  \"\\n<div><code>\\n\\n// load two soundfile and crossfade beetween them\\nlet sound1,sound2;\\nlet sound1Gain, sound2Gain, masterGain;\\nfunction preload(){\\n  soundFormats('ogg', 'mp3');\\n  sound1 = loadSound('assets/Damscray_-_Dancing_Tiger_01');\\n  sound2 = loadSound('assets/beat');\\n}\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(startSound);\\n  // create a 'master' gain to which we will connect both soundfiles\\n  masterGain = new p5.Gain();\\n  masterGain.connect();\\n  sound1.disconnect(); // diconnect from p5 output\\n  sound1Gain = new p5.Gain(); // setup a gain node\\n  sound1Gain.setInput(sound1); // connect the first sound to its input\\n  sound1Gain.connect(masterGain); // connect its output to the 'master'\\n  sound2.disconnect();\\n  sound2Gain = new p5.Gain();\\n  sound2Gain.setInput(sound2);\\n  sound2Gain.connect(masterGain);\\n}\\nfunction startSound() {\\n  sound1.loop();\\n  sound2.loop();\\n  loop();\\n}\\nfunction mouseReleased() {\\n  sound1.stop();\\n  sound2.stop();\\n}\\nfunction draw(){\\n  background(220);\\n  textAlign(CENTER);\\n  textSize(11);\\n  fill(0);\\n  if (!sound1.isPlaying()) {\\n    text('tap and drag to play', width/2, height/2);\\n    return;\\n  }\\n  // map the horizontal position of the mouse to values useable for volume    *  control of sound1\\n  var sound1Volume = constrain(map(mouseX,width,0,0,1), 0, 1);\\n  var sound2Volume = 1-sound1Volume;\\n  sound1Gain.amp(sound1Volume);\\n  sound2Gain.amp(sound2Volume);\\n  // map the vertical position of the mouse to values useable for 'master    *  volume control'\\n  var masterVolume = constrain(map(mouseY,height,0,0,1), 0, 1);\\n  masterGain.amp(masterVolume);\\n  text('master', width/2, height - masterVolume * height * 0.9)\\n  fill(255, 0, 255);\\n  textAlign(LEFT);\\n  text('sound1', 5, height - sound1Volume * height * 0.9);\\n  textAlign(RIGHT);\\n  text('sound2', width - 5, height - sound2Volume * height * 0.9);\\n}\\n</code></div>\"\n                ]\n              },\n              'p5.Distortion': {\n                name: 'p5.Distortion',\n                shortname: 'p5.Distortion',\n                classitems: [],\n                plugins: [],\n                extensions: [],\n                plugin_for: [],\n                extension_for: [],\n                module: 'p5.sound',\n                submodule: 'p5.sound',\n                namespace: '',\n                file: 'lib/addons/p5.sound.js',\n                line: 11703,\n                description:\n                  '<p>A Distortion effect created with a Waveshaper Node,\\nwith an approach adapted from\\n<a href=\"http://stackoverflow.com/questions/22312841/waveshaper-node-in-webaudio-how-to-emulate-distortion\">Kevin Ennis</a></p>\\n<p>This class extends <a href = \"/reference/#/p5.Effect\">p5.Effect</a>.\\nMethods <a href = \"/reference/#/p5.Effect/amp\">amp()</a>, <a href = \"/reference/#/p5.Effect/chain\">chain()</a>,\\n<a href = \"/reference/#/p5.Effect/drywet\">drywet()</a>, <a href = \"/reference/#/p5.Effect/connect\">connect()</a>, and\\n<a href = \"/reference/#/p5.Effect/disconnect\">disconnect()</a> are available.</p>\\n',\n                extends: 'p5.Effect',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'amount',\n                    description:\n                      '<p>Unbounded distortion amount.\\n                               Normal values range from 0-1.</p>\\n',\n                    type: 'Number',\n                    optional: true,\n                    optdefault: '0.25'\n                  },\n                  {\n                    name: 'oversample',\n                    description: '<p>&#39;none&#39;, &#39;2x&#39;, or &#39;4x&#39;.</p>\\n',\n                    type: 'String',\n                    optional: true,\n                    optdefault: \"'none'\"\n                  }\n                ]\n              }\n            },\n            elements: {},\n            classitems: [\n              {\n                file: 'src/color/color_conversion.js',\n                line: 8,\n                description:\n                  '<p>Conversions adapted from <a href=\"http://www.easyrgb.com/en/math.php\">http://www.easyrgb.com/en/math.php</a>.</p>\\n<p>In these functions, hue is always in the range [0, 1], just like all other\\ncomponents are in the range [0, 1]. &#39;Brightness&#39; and &#39;value&#39; are used\\ninterchangeably.</p>\\n',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Color Conversion'\n              },\n              {\n                file: 'src/color/color_conversion.js',\n                line: 19,\n                description: '<p>Convert an HSBA array to HSLA.</p>\\n',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Color Conversion'\n              },\n              {\n                file: 'src/color/color_conversion.js',\n                line: 45,\n                description: '<p>Convert an HSBA array to RGBA.</p>\\n',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Color Conversion'\n              },\n              {\n                file: 'src/color/color_conversion.js',\n                line: 100,\n                description: '<p>Convert an HSLA array to HSBA.</p>\\n',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Color Conversion'\n              },\n              {\n                file: 'src/color/color_conversion.js',\n                line: 123,\n                description:\n                  '<p>Convert an HSLA array to RGBA.</p>\\n<p>We need to change basis from HSLA to something that can be more easily be\\nprojected onto RGBA. We will choose hue and brightness as our first two\\ncomponents, and pick a convenient third one (&#39;zest&#39;) so that we don&#39;t need\\nto calculate formal HSBA saturation.</p>\\n',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Color Conversion'\n              },\n              {\n                file: 'src/color/color_conversion.js',\n                line: 187,\n                description: '<p>Convert an RGBA array to HSBA.</p>\\n',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Color Conversion'\n              },\n              {\n                file: 'src/color/color_conversion.js',\n                line: 226,\n                description: '<p>Convert an RGBA array to HSLA.</p>\\n',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Color Conversion'\n              },\n              {\n                file: 'src/color/creating_reading.js',\n                line: 14,\n                description:\n                  '<p>Extracts the alpha value from a color or pixel array.</p>\\n',\n                itemtype: 'method',\n                name: 'alpha',\n                params: [\n                  {\n                    name: 'color',\n                    description:\n                      '<p><a href=\"#/p5.Color\">p5.Color</a> object, color components,\\n                                        or CSS color</p>\\n',\n                    type: 'p5.Color|Number[]|String'\n                  }\n                ],\n                return: {\n                  description: 'the alpha value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nnoStroke();\\nlet c = color(0, 126, 255, 102);\\nfill(c);\\nrect(15, 15, 35, 70);\\nlet value = alpha(c); // Sets 'value' to 102\\nfill(value);\\nrect(50, 15, 35, 70);\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'Left half of canvas light blue and right half light charcoal grey.\\nLeft half of canvas light purple and right half a royal blue.\\nLeft half of canvas salmon pink and the right half white.\\nYellow rect in middle right of canvas, with 55 pixel width and height.\\nYellow ellipse in top left canvas, black ellipse in bottom right,both 80x80.\\nBright fuchsia rect in middle of canvas, 60 pixel width and height.\\nTwo bright green rects on opposite sides of the canvas, both 45x80.\\nFour blue rects in each corner of the canvas, each are 35x35.\\nBright sea green rect on left and darker rect on right of canvas, both 45x80.\\nDark green rect on left and light green rect on right of canvas, both 45x80.\\nDark blue rect on left and light teal rect on right of canvas, both 45x80.\\nblue rect on left and green on right, both with black outlines & 35x60.\\nsalmon pink rect on left and black on right, both 35x60.\\n4 rects, tan, brown, brownish purple and purple, with white outlines & 20x60.\\nlight pastel green rect on left and dark grey rect on right, both 35x60.\\nyellow rect on left and red rect on right, both with black outlines & 35x60.\\ngrey canvas\\ndeep pink rect on left and grey rect on right, both 35x60.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/creating_reading.js',\n                line: 59,\n                description:\n                  '<p>Extracts the blue value from a color or pixel array.</p>\\n',\n                itemtype: 'method',\n                name: 'blue',\n                params: [\n                  {\n                    name: 'color',\n                    description:\n                      '<p><a href=\"#/p5.Color\">p5.Color</a> object, color components,\\n                                        or CSS color</p>\\n',\n                    type: 'p5.Color|Number[]|String'\n                  }\n                ],\n                return: {\n                  description: 'the blue value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet c = color(175, 100, 220); // Define color 'c'\\nfill(c); // Use color variable 'c' as fill color\\nrect(15, 20, 35, 60); // Draw left rectangle\\n\\nlet blueValue = blue(c); // Get blue in 'c'\\nprint(blueValue); // Prints \\\"220.0\\\"\\nfill(0, 0, blueValue); // Use 'blueValue' in new fill\\nrect(50, 20, 35, 60); // Draw right rectangle\\n</code>\\n</div>\"\n                ],\n                alt: 'Left half of canvas light purple and right half a royal blue.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/creating_reading.js',\n                line: 89,\n                description:\n                  '<p>Extracts the HSB brightness value from a color or pixel array.</p>\\n',\n                itemtype: 'method',\n                name: 'brightness',\n                params: [\n                  {\n                    name: 'color',\n                    description:\n                      '<p><a href=\"#/p5.Color\">p5.Color</a> object, color components,\\n                                        or CSS color</p>\\n',\n                    type: 'p5.Color|Number[]|String'\n                  }\n                ],\n                return: {\n                  description: 'the brightness value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nnoStroke();\\ncolorMode(HSB, 255);\\nlet c = color(0, 126, 255);\\nfill(c);\\nrect(15, 20, 35, 60);\\nlet value = brightness(c); // Sets 'value' to 255\\nfill(value);\\nrect(50, 20, 35, 60);\\n</code>\\n</div>\\n<div>\\n<code>\\nnoStroke();\\ncolorMode(HSB, 255);\\nlet c = color('hsb(60, 100%, 50%)');\\nfill(c);\\nrect(15, 20, 35, 60);\\nlet value = brightness(c); // A 'value' of 50% is 127.5\\nfill(value);\\nrect(50, 20, 35, 60);\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'Left half of canvas salmon pink and the right half white.\\nLeft half of canvas yellow at half brightness and the right gray .',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/creating_reading.js',\n                line: 132,\n                description:\n                  '<p>Creates colors for storing in variables of the color datatype. The\\nparameters are interpreted as RGB or HSB values depending on the\\ncurrent <a href=\"#/p5/colorMode\">colorMode()</a>. The default mode is RGB values from 0 to 255\\nand, therefore, the function call color(255, 204, 0) will return a\\nbright yellow color.\\n<br><br>\\nNote that if only one value is provided to <a href=\"#/p5/color\">color()</a>, it will be interpreted\\nas a grayscale value. Add a second value, and it will be used for alpha\\ntransparency. When three values are specified, they are interpreted as\\neither RGB or HSB values. Adding a fourth value applies alpha\\ntransparency.\\n<br><br>\\nIf a single string argument is provided, RGB, RGBA and Hex CSS color\\nstrings and all named color strings are supported. In this case, an alpha\\nnumber value as a second argument is not supported, the RGBA form should be\\nused.</p>\\n',\n                itemtype: 'method',\n                name: 'color',\n                return: {\n                  description: 'resulting color',\n                  type: 'p5.Color'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet c = color(255, 204, 0); // Define color 'c'\\nfill(c); // Use color variable 'c' as fill color\\nnoStroke(); // Don't draw a stroke around shapes\\nrect(30, 20, 55, 55); // Draw rectangle\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet c = color(255, 204, 0); // Define color 'c'\\nfill(c); // Use color variable 'c' as fill color\\nnoStroke(); // Don't draw a stroke around shapes\\nellipse(25, 25, 80, 80); // Draw left circle\\n\\n// Using only one value with color()\\n// generates a grayscale value.\\nc = color(65); // Update 'c' with grayscale value\\nfill(c); // Use updated 'c' as fill color\\nellipse(75, 75, 80, 80); // Draw right circle\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// Named SVG & CSS colors may be used,\\nlet c = color('magenta');\\nfill(c); // Use 'c' as fill color\\nnoStroke(); // Don't draw a stroke around shapes\\nrect(20, 20, 60, 60); // Draw rectangle\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// as can hex color codes:\\nnoStroke(); // Don't draw a stroke around shapes\\nlet c = color('#0f0');\\nfill(c); // Use 'c' as fill color\\nrect(0, 10, 45, 80); // Draw rectangle\\n\\nc = color('#00ff00');\\nfill(c); // Use updated 'c' as fill color\\nrect(55, 10, 45, 80); // Draw rectangle\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// RGB and RGBA color strings are also supported:\\n// these all set to the same color (solid blue)\\nlet c;\\nnoStroke(); // Don't draw a stroke around shapes\\nc = color('rgb(0,0,255)');\\nfill(c); // Use 'c' as fill color\\nrect(10, 10, 35, 35); // Draw rectangle\\n\\nc = color('rgb(0%, 0%, 100%)');\\nfill(c); // Use updated 'c' as fill color\\nrect(55, 10, 35, 35); // Draw rectangle\\n\\nc = color('rgba(0, 0, 255, 1)');\\nfill(c); // Use updated 'c' as fill color\\nrect(10, 55, 35, 35); // Draw rectangle\\n\\nc = color('rgba(0%, 0%, 100%, 1)');\\nfill(c); // Use updated 'c' as fill color\\nrect(55, 55, 35, 35); // Draw rectangle\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// HSL color is also supported and can be specified\\n// by value\\nlet c;\\nnoStroke(); // Don't draw a stroke around shapes\\nc = color('hsl(160, 100%, 50%)');\\nfill(c); // Use 'c' as fill color\\nrect(0, 10, 45, 80); // Draw rectangle\\n\\nc = color('hsla(160, 100%, 50%, 0.5)');\\nfill(c); // Use updated 'c' as fill color\\nrect(55, 10, 45, 80); // Draw rectangle\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// HSB color is also supported and can be specified\\n// by value\\nlet c;\\nnoStroke(); // Don't draw a stroke around shapes\\nc = color('hsb(160, 100%, 50%)');\\nfill(c); // Use 'c' as fill color\\nrect(0, 10, 45, 80); // Draw rectangle\\n\\nc = color('hsba(160, 100%, 50%, 0.5)');\\nfill(c); // Use updated 'c' as fill color\\nrect(55, 10, 45, 80); // Draw rectangle\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet c; // Declare color 'c'\\nnoStroke(); // Don't draw a stroke around shapes\\n\\n// If no colorMode is specified, then the\\n// default of RGB with scale of 0-255 is used.\\nc = color(50, 55, 100); // Create a color for 'c'\\nfill(c); // Use color variable 'c' as fill color\\nrect(0, 10, 45, 80); // Draw left rect\\n\\ncolorMode(HSB, 100); // Use HSB with scale of 0-100\\nc = color(50, 55, 100); // Update 'c' with new color\\nfill(c); // Use updated 'c' as fill color\\nrect(55, 10, 45, 80); // Draw right rect\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'Yellow rect in middle right of canvas, with 55 pixel width and height.\\nYellow ellipse in top left of canvas, black ellipse in bottom right,both 80x80.\\nBright fuchsia rect in middle of canvas, 60 pixel width and height.\\nTwo bright green rects on opposite sides of the canvas, both 45x80.\\nFour blue rects in each corner of the canvas, each are 35x35.\\nBright sea green rect on left and darker rect on right of canvas, both 45x80.\\nDark green rect on left and lighter green rect on right of canvas, both 45x80.\\nDark blue rect on left and light teal rect on right of canvas, both 45x80.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Creating & Reading',\n                overloads: [\n                  {\n                    line: 132,\n                    params: [\n                      {\n                        name: 'gray',\n                        description:\n                          '<p>number specifying value between white\\n                                and black.</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'alpha',\n                        description:\n                          '<p>alpha value relative to current color range\\n                                (default is 0-255)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'resulting color',\n                      type: 'p5.Color'\n                    }\n                  },\n                  {\n                    line: 291,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>red or hue value relative to\\n                                the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description:\n                          '<p>green or saturation value\\n                                relative to the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description:\n                          '<p>blue or brightness value\\n                                relative to the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'alpha',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'p5.Color'\n                    }\n                  },\n                  {\n                    line: 303,\n                    params: [\n                      {\n                        name: 'value',\n                        description: '<p>a color string</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'p5.Color'\n                    }\n                  },\n                  {\n                    line: 308,\n                    params: [\n                      {\n                        name: 'values',\n                        description:\n                          '<p>an array containing the red,green,blue &amp;\\n                                and alpha components of the color</p>\\n',\n                        type: 'Number[]'\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'p5.Color'\n                    }\n                  },\n                  {\n                    line: 314,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '',\n                        type: 'p5.Color'\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'p5.Color'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/color/creating_reading.js',\n                line: 330,\n                description:\n                  '<p>Extracts the green value from a color or pixel array.</p>\\n',\n                itemtype: 'method',\n                name: 'green',\n                params: [\n                  {\n                    name: 'color',\n                    description:\n                      '<p><a href=\"#/p5.Color\">p5.Color</a> object, color components,\\n                                        or CSS color</p>\\n',\n                    type: 'p5.Color|Number[]|String'\n                  }\n                ],\n                return: {\n                  description: 'the green value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet c = color(20, 75, 200); // Define color 'c'\\nfill(c); // Use color variable 'c' as fill color\\nrect(15, 20, 35, 60); // Draw left rectangle\\n\\nlet greenValue = green(c); // Get green in 'c'\\nprint(greenValue); // Print \\\"75.0\\\"\\nfill(0, greenValue, 0); // Use 'greenValue' in new fill\\nrect(50, 20, 35, 60); // Draw right rectangle\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'blue rect on left and green on right, both with black outlines & 35x60.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/creating_reading.js',\n                line: 361,\n                description:\n                  '<p>Extracts the hue value from a color or pixel array.</p>\\n<p>Hue exists in both HSB and HSL. This function will return the\\nHSB-normalized hue when supplied with an HSB color object (or when supplied\\nwith a pixel array while the color mode is HSB), but will default to the\\nHSL-normalized hue otherwise. (The values will only be different if the\\nmaximum hue setting for each system is different.)</p>\\n',\n                itemtype: 'method',\n                name: 'hue',\n                params: [\n                  {\n                    name: 'color',\n                    description:\n                      '<p><a href=\"#/p5.Color\">p5.Color</a> object, color components,\\n                                        or CSS color</p>\\n',\n                    type: 'p5.Color|Number[]|String'\n                  }\n                ],\n                return: {\n                  description: 'the hue',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nnoStroke();\\ncolorMode(HSB, 255);\\nlet c = color(0, 126, 255);\\nfill(c);\\nrect(15, 20, 35, 60);\\nlet value = hue(c); // Sets \\'value\\' to \"0\"\\nfill(value);\\nrect(50, 20, 35, 60);\\n</code>\\n</div>'\n                ],\n                alt: 'salmon pink rect on left and black on right, both 35x60.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/creating_reading.js',\n                line: 398,\n                description:\n                  '<p>Blends two colors to find a third color somewhere between them. The amt\\nparameter is the amount to interpolate between the two values where 0.0\\nequal to the first color, 0.1 is very near the first color, 0.5 is halfway\\nin between, etc. An amount below 0 will be treated as 0. Likewise, amounts\\nabove 1 will be capped at 1. This is different from the behavior of <a href=\"#/p5/lerp\">lerp()</a>,\\nbut necessary because otherwise numbers outside the range will produce\\nstrange and unexpected colors.\\n<br><br>\\nThe way that colours are interpolated depends on the current color mode.</p>\\n',\n                itemtype: 'method',\n                name: 'lerpColor',\n                params: [\n                  {\n                    name: 'c1',\n                    description: '<p>interpolate from this color</p>\\n',\n                    type: 'p5.Color'\n                  },\n                  {\n                    name: 'c2',\n                    description: '<p>interpolate to this color</p>\\n',\n                    type: 'p5.Color'\n                  },\n                  {\n                    name: 'amt',\n                    description: '<p>number between 0 and 1</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'interpolated color',\n                  type: 'p5.Color'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\ncolorMode(RGB);\\nstroke(255);\\nbackground(51);\\nlet from = color(218, 165, 32);\\nlet to = color(72, 61, 139);\\ncolorMode(RGB); // Try changing to HSB.\\nlet interA = lerpColor(from, to, 0.33);\\nlet interB = lerpColor(from, to, 0.66);\\nfill(from);\\nrect(10, 20, 20, 60);\\nfill(interA);\\nrect(30, 20, 20, 60);\\nfill(interB);\\nrect(50, 20, 20, 60);\\nfill(to);\\nrect(70, 20, 20, 60);\\n</code>\\n</div>'\n                ],\n                alt:\n                  '4 rects one tan, brown, brownish purple, purple, with white outlines & 20x60',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/creating_reading.js',\n                line: 489,\n                description:\n                  '<p>Extracts the HSL lightness value from a color or pixel array.</p>\\n',\n                itemtype: 'method',\n                name: 'lightness',\n                params: [\n                  {\n                    name: 'color',\n                    description:\n                      '<p><a href=\"#/p5.Color\">p5.Color</a> object, color components,\\n                                        or CSS color</p>\\n',\n                    type: 'p5.Color|Number[]|String'\n                  }\n                ],\n                return: {\n                  description: 'the lightness',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nnoStroke();\\ncolorMode(HSL);\\nlet c = color(156, 100, 50, 1);\\nfill(c);\\nrect(15, 20, 35, 60);\\nlet value = lightness(c); // Sets 'value' to 50\\nfill(value);\\nrect(50, 20, 35, 60);\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'light pastel green rect on left and dark grey rect on right, both 35x60.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/creating_reading.js',\n                line: 519,\n                description: '<p>Extracts the red value from a color or pixel array.</p>\\n',\n                itemtype: 'method',\n                name: 'red',\n                params: [\n                  {\n                    name: 'color',\n                    description:\n                      '<p><a href=\"#/p5.Color\">p5.Color</a> object, color components,\\n                                        or CSS color</p>\\n',\n                    type: 'p5.Color|Number[]|String'\n                  }\n                ],\n                return: {\n                  description: 'the red value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet c = color(255, 204, 0); // Define color 'c'\\nfill(c); // Use color variable 'c' as fill color\\nrect(15, 20, 35, 60); // Draw left rectangle\\n\\nlet redValue = red(c); // Get red in 'c'\\nprint(redValue); // Print \\\"255.0\\\"\\nfill(redValue, 0, 0); // Use 'redValue' in new fill\\nrect(50, 20, 35, 60); // Draw right rectangle\\n</code>\\n</div>\\n\\n<div class=\\\"norender\\\">\\n<code>\\ncolorMode(RGB, 255); // Sets the range for red, green, and blue to 255\\nlet c = color(127, 255, 0);\\ncolorMode(RGB, 1); // Sets the range for red, green, and blue to 1\\nlet myColor = red(c);\\nprint(myColor); // 0.4980392156862745\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'yellow rect on left and red rect on right, both with black outlines and 35x60.\\ngrey canvas',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/creating_reading.js',\n                line: 559,\n                description:\n                  '<p>Extracts the saturation value from a color or pixel array.</p>\\n<p>Saturation is scaled differently in HSB and HSL. This function will return\\nthe HSB saturation when supplied with an HSB color object (or when supplied\\nwith a pixel array while the color mode is HSB), but will default to the\\nHSL saturation otherwise.</p>\\n',\n                itemtype: 'method',\n                name: 'saturation',\n                params: [\n                  {\n                    name: 'color',\n                    description:\n                      '<p><a href=\"#/p5.Color\">p5.Color</a> object, color components,\\n                                        or CSS color</p>\\n',\n                    type: 'p5.Color|Number[]|String'\n                  }\n                ],\n                return: {\n                  description: 'the saturation value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nnoStroke();\\ncolorMode(HSB, 255);\\nlet c = color(0, 126, 255);\\nfill(c);\\nrect(15, 20, 35, 60);\\nlet value = saturation(c); // Sets 'value' to 126\\nfill(value);\\nrect(50, 20, 35, 60);\\n</code>\\n</div>\"\n                ],\n                alt: 'deep pink rect on left and grey rect on right, both 35x60.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/p5.Color.js',\n                line: 51,\n                description:\n                  '<p>This function returns the color formatted as a string. This can be useful\\nfor debugging, or for using p5.js with other libraries.</p>\\n',\n                itemtype: 'method',\n                name: 'toString',\n                params: [\n                  {\n                    name: 'format',\n                    description:\n                      '<p>How the color string will be formatted.\\nLeaving this empty formats the string as rgba(r, g, b, a).\\n&#39;#rgb&#39; &#39;#rgba&#39; &#39;#rrggbb&#39; and &#39;#rrggbbaa&#39; format as hexadecimal color codes.\\n&#39;rgb&#39; &#39;hsb&#39; and &#39;hsl&#39; return the color formatted in the specified color mode.\\n&#39;rgba&#39; &#39;hsba&#39; and &#39;hsla&#39; are the same as above but with alpha channels.\\n&#39;rgb%&#39; &#39;hsb%&#39; &#39;hsl%&#39; &#39;rgba%&#39; &#39;hsba%&#39; and &#39;hsla%&#39; format as percentages.</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'the formatted string',\n                  type: 'String'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet myColor;\\nfunction setup() {\\n  createCanvas(200, 200);\\n  stroke(255);\\n  myColor = color(100, 100, 250);\\n  fill(myColor);\\n}\\n\\nfunction draw() {\\n  rotate(HALF_PI);\\n  text(myColor.toString(), 0, -5);\\n  text(myColor.toString('#rrggbb'), 0, -30);\\n  text(myColor.toString('rgba%'), 0, -55);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'canvas with text representation of color',\n                class: 'p5.Color',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/p5.Color.js',\n                line: 252,\n                description:\n                  '<p>The setRed function sets the red component of a color.\\nThe range depends on your color mode, in the default RGB mode it&#39;s between 0 and 255.</p>\\n',\n                itemtype: 'method',\n                name: 'setRed',\n                params: [\n                  {\n                    name: 'red',\n                    description: '<p>the new red value</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\nlet backgroundColor;\\n\\nfunction setup() {\\n  backgroundColor = color(100, 50, 150);\\n}\\n\\nfunction draw() {\\n  backgroundColor.setRed(128 + 128 * sin(millis() / 1000));\\n  background(backgroundColor);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'canvas with gradually changing background color',\n                class: 'p5.Color',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/p5.Color.js',\n                line: 281,\n                description:\n                  '<p>The setGreen function sets the green component of a color.\\nThe range depends on your color mode, in the default RGB mode it&#39;s between 0 and 255.</p>\\n',\n                itemtype: 'method',\n                name: 'setGreen',\n                params: [\n                  {\n                    name: 'green',\n                    description: '<p>the new green value</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\nlet backgroundColor;\\n\\nfunction setup() {\\n  backgroundColor = color(100, 50, 150);\\n}\\n\\nfunction draw() {\\n  backgroundColor.setGreen(128 + 128 * sin(millis() / 1000));\\n  background(backgroundColor);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'canvas with gradually changing background color',\n                class: 'p5.Color',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/p5.Color.js',\n                line: 310,\n                description:\n                  '<p>The setBlue function sets the blue component of a color.\\nThe range depends on your color mode, in the default RGB mode it&#39;s between 0 and 255.</p>\\n',\n                itemtype: 'method',\n                name: 'setBlue',\n                params: [\n                  {\n                    name: 'blue',\n                    description: '<p>the new blue value</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\nlet backgroundColor;\\n\\nfunction setup() {\\n  backgroundColor = color(100, 50, 150);\\n}\\n\\nfunction draw() {\\n  backgroundColor.setBlue(128 + 128 * sin(millis() / 1000));\\n  background(backgroundColor);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'canvas with gradually changing background color',\n                class: 'p5.Color',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/p5.Color.js',\n                line: 339,\n                description:\n                  '<p>The setAlpha function sets the transparency (alpha) value of a color.\\nThe range depends on your color mode, in the default RGB mode it&#39;s between 0 and 255.</p>\\n',\n                itemtype: 'method',\n                name: 'setAlpha',\n                params: [\n                  {\n                    name: 'alpha',\n                    description: '<p>the new alpha value</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\nlet squareColor;\\n\\nfunction setup() {\\n  ellipseMode(CORNERS);\\n  strokeWeight(4);\\n  squareColor = color(100, 50, 150);\\n}\\n\\nfunction draw() {\\n  background(255);\\n\\n  noFill();\\n  stroke(0);\\n  ellipse(10, 10, width - 10, height - 10);\\n\\n  squareColor.setAlpha(128 + 128 * sin(millis() / 1000));\\n  fill(squareColor);\\n  noStroke();\\n  rect(13, 13, width - 26, height - 26);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'circle behind a square with gradually changing opacity',\n                class: 'p5.Color',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/p5.Color.js',\n                line: 422,\n                description:\n                  '<p>Hue is the same in HSB and HSL, but the maximum value may be different.\\nThis function will return the HSB-normalized saturation when supplied with\\nan HSB color object, but will default to the HSL-normalized saturation\\notherwise.</p>\\n',\n                class: 'p5.Color',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/p5.Color.js',\n                line: 453,\n                description:\n                  '<p>Saturation is scaled differently in HSB and HSL. This function will return\\nthe HSB saturation when supplied with an HSB color object, but will default\\nto the HSL saturation otherwise.</p>\\n',\n                class: 'p5.Color',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/p5.Color.js',\n                line: 472,\n                description: '<p>CSS named colors.</p>\\n',\n                class: 'p5.Color',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/p5.Color.js',\n                line: 626,\n                description:\n                  '<p>These regular expressions are used to build up the patterns for matching\\nviable CSS color strings: fragmenting the regexes in this way increases the\\nlegibility and comprehensibility of the code.</p>\\n<p>Note that RGB values of .9 are not parsed by IE, but are supported here for\\ncolor string consistency.</p>\\n',\n                class: 'p5.Color',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/p5.Color.js',\n                line: 639,\n                description:\n                  '<p>Full color string patterns. The capture groups are necessary.</p>\\n',\n                class: 'p5.Color',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/p5.Color.js',\n                line: 988,\n                description:\n                  '<p>For HSB and HSL, interpret the gray level as a brightness/lightness\\nvalue (they are equivalent when chroma is zero). For RGB, normalize the\\ngray level according to the blue maximum.</p>\\n',\n                class: 'p5.Color',\n                module: 'Color',\n                submodule: 'Creating & Reading'\n              },\n              {\n                file: 'src/color/setting.js',\n                line: 13,\n                description:\n                  '<p>The <a href=\"#/p5/background\">background()</a> function sets the color used for the background of the\\np5.js canvas. The default background is transparent. This function is\\ntypically used within <a href=\"#/p5/draw\">draw()</a> to clear the display window at the beginning\\nof each frame, but it can be used inside <a href=\"#/p5/setup\">setup()</a> to set the background on\\nthe first frame of animation or if the background need only be set once.\\n<br><br>\\nThe color is either specified in terms of the RGB, HSB, or HSL color\\ndepending on the current <a href=\"#/p5/colorMode\">colorMode</a>. (The default color space is RGB, with\\neach value in the range from 0 to 255). The alpha range by default is also 0 to 255.\\n<br><br>\\nIf a single string argument is provided, RGB, RGBA and Hex CSS color strings\\nand all named color strings are supported. In this case, an alpha number\\nvalue as a second argument is not supported, the RGBA form should be used.\\n<br><br>\\nA <a href=\"#/p5.Color\">p5.Color</a> object can also be provided to set the background color.\\n<br><br>\\nA <a href=\"#/p5.Image\">p5.Image</a> can also be provided to set the background image.</p>\\n',\n                itemtype: 'method',\n                name: 'background',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\n// Grayscale integer value\\nbackground(51);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// R, G & B integer values\\nbackground(255, 204, 0);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// H, S & B integer values\\ncolorMode(HSB);\\nbackground(255, 204, 100);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// Named SVG/CSS color string\\nbackground('red');\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// three-digit hexadecimal RGB notation\\nbackground('#fae');\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// six-digit hexadecimal RGB notation\\nbackground('#222222');\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// integer RGB notation\\nbackground('rgb(0,255,0)');\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// integer RGBA notation\\nbackground('rgba(0,255,0, 0.25)');\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// percentage RGB notation\\nbackground('rgb(100%,0%,10%)');\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// percentage RGBA notation\\nbackground('rgba(100%,0%,100%,0.5)');\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// p5 Color object\\nbackground(color(0, 0, 255));\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'canvas with darkest charcoal grey background.\\ncanvas with yellow background.\\ncanvas with royal blue background.\\ncanvas with red background.\\ncanvas with pink background.\\ncanvas with black background.\\ncanvas with bright green background.\\ncanvas with soft green background.\\ncanvas with red background.\\ncanvas with light purple background.\\ncanvas with blue background.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Setting',\n                overloads: [\n                  {\n                    line: 13,\n                    params: [\n                      {\n                        name: 'color',\n                        description:\n                          '<p>any value created by the <a href=\"#/p5/color\">color()</a> function</p>\\n',\n                        type: 'p5.Color'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 129,\n                    params: [\n                      {\n                        name: 'colorstring',\n                        description:\n                          '<p>color string, possible formats include: integer\\n                        rgb() or rgba(), percentage rgb() or rgba(),\\n                        3-digit hex, 6-digit hex</p>\\n',\n                        type: 'String'\n                      },\n                      {\n                        name: 'a',\n                        description:\n                          '<p>opacity of the background relative to current\\n                            color range (default is 0-255)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 139,\n                    params: [\n                      {\n                        name: 'gray',\n                        description: '<p>specifies a value between white and black</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'a',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 146,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>red or hue value (depending on the current color\\n                       mode)</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description:\n                          '<p>green or saturation value (depending on the current\\n                       color mode)</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description:\n                          '<p>blue or brightness value (depending on the current\\n                       color mode)</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'a',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 158,\n                    params: [\n                      {\n                        name: 'values',\n                        description:\n                          '<p>an array containing the red, green, blue\\n                                and alpha components of the color</p>\\n',\n                        type: 'Number[]'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 165,\n                    params: [\n                      {\n                        name: 'image',\n                        description:\n                          '<p>image created with <a href=\"#/p5/loadImage\">loadImage()</a> or <a href=\"#/p5/createImage\">createImage()</a>,\\n                            to set as background\\n                            (must be same size as the sketch window)</p>\\n',\n                        type: 'p5.Image'\n                      },\n                      {\n                        name: 'a',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/color/setting.js',\n                line: 179,\n                description:\n                  '<p>Clears the pixels within a buffer. This function only clears the canvas.\\nIt will not clear objects created by createX() methods such as\\n<a href=\"#/p5/createVideo\">createVideo()</a> or <a href=\"#/p5/createDiv\">createDiv()</a>.\\nUnlike the main graphics context, pixels in additional graphics areas created\\nwith <a href=\"#/p5/createGraphics\">createGraphics()</a> can be entirely\\nor partially transparent. This function clears everything to make all of\\nthe pixels 100% transparent.</p>\\n',\n                itemtype: 'method',\n                name: 'clear',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// Clear the screen on mouse press.\\nfunction setup() {\\n  createCanvas(100, 100);\\n}\\n\\nfunction draw() {\\n  ellipse(mouseX, mouseY, 20, 20);\\n}\\n\\nfunction mousePressed() {\\n  clear();\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '20x20 white ellipses are continually drawn at mouse x and y coordinates.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Setting'\n              },\n              {\n                file: 'src/color/setting.js',\n                line: 218,\n                description:\n                  '<p><a href=\"#/p5/colorMode\">colorMode()</a> changes the way p5.js interprets color data. By default, the\\nparameters for <a href=\"#/p5/fill\">fill()</a>, <a href=\"#/p5/stroke\">stroke()</a>, <a href=\"#/p5/background\">background()</a>, and <a href=\"#/p5/color\">color()</a> are defined by\\nvalues between 0 and 255 using the RGB color model. This is equivalent to\\nsetting colorMode(RGB, 255). Setting colorMode(HSB) lets you use the HSB\\nsystem instead. By default, this is colorMode(HSB, 360, 100, 100, 1). You\\ncan also use HSL.\\n<br><br>\\nNote: existing color objects remember the mode that they were created in,\\nso you can change modes as you like without affecting their appearance.</p>\\n',\n                itemtype: 'method',\n                name: 'colorMode',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nnoStroke();\\ncolorMode(RGB, 100);\\nfor (let i = 0; i < 100; i++) {\\n  for (let j = 0; j < 100; j++) {\\n    stroke(i, j, 0);\\n    point(i, j);\\n  }\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nnoStroke();\\ncolorMode(HSB, 100);\\nfor (let i = 0; i < 100; i++) {\\n  for (let j = 0; j < 100; j++) {\\n    stroke(i, j, 100);\\n    point(i, j);\\n  }\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\ncolorMode(RGB, 255);\\nlet c = color(127, 255, 0);\\n\\ncolorMode(RGB, 1);\\nlet myColor = c._getRed();\\ntext(myColor, 10, 10, 80, 80);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nnoFill();\\ncolorMode(RGB, 255, 255, 255, 1);\\nbackground(255);\\n\\nstrokeWeight(4);\\nstroke(255, 0, 10, 0.3);\\nellipse(40, 40, 50, 50);\\nellipse(50, 50, 40, 40);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'Green to red gradient from bottom L to top R. shading originates from top left.\\nRainbow gradient from left to right. Brightness increasing to white at top.\\nunknown image.\\n50x50 ellipse at middle L & 40x40 ellipse at center. Translucent pink outlines.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Setting',\n                overloads: [\n                  {\n                    line: 218,\n                    params: [\n                      {\n                        name: 'mode',\n                        description:\n                          '<p>either RGB, HSB or HSL, corresponding to\\n                         Red/Green/Blue and Hue/Saturation/Brightness\\n                         (or Lightness)</p>\\n',\n                        type: 'Constant'\n                      },\n                      {\n                        name: 'max',\n                        description: '<p>range for all values</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 295,\n                    params: [\n                      {\n                        name: 'mode',\n                        description: '',\n                        type: 'Constant'\n                      },\n                      {\n                        name: 'max1',\n                        description:\n                          '<p>range for the red or hue depending on the\\n                             current color mode</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'max2',\n                        description:\n                          '<p>range for the green or saturation depending\\n                             on the current color mode</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'max3',\n                        description:\n                          '<p>range for the blue or brightness/lightness\\n                             depending on the current color mode</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'maxA',\n                        description: '<p>range for the alpha</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/color/setting.js',\n                line: 339,\n                description:\n                  '<p>Sets the color used to fill shapes. For example, if you run\\nfill(204, 102, 0), all shapes drawn after the fill command will be filled with the color orange. This\\ncolor is either specified in terms of the RGB or HSB color depending on\\nthe current <a href=\"#/p5/colorMode\">colorMode()</a>. (The default color space is RGB, with each value\\nin the range from 0 to 255). The alpha range by default is also 0 to 255.\\n<br><br>\\nIf a single string argument is provided, RGB, RGBA and Hex CSS color strings\\nand all named color strings are supported. In this case, an alpha number\\nvalue as a second argument is not supported, the RGBA form should be used.\\n<br><br>\\nA p5 <a href=\"#/p5.Color\">Color</a> object can also be provided to set the fill color.</p>\\n',\n                itemtype: 'method',\n                name: 'fill',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\n// Grayscale integer value\\nfill(51);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// R, G & B integer values\\nfill(255, 204, 0);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// H, S & B integer values\\ncolorMode(HSB);\\nfill(255, 204, 100);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// Named SVG/CSS color string\\nfill('red');\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// three-digit hexadecimal RGB notation\\nfill('#fae');\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// six-digit hexadecimal RGB notation\\nfill('#222222');\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// integer RGB notation\\nfill('rgb(0,255,0)');\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// integer RGBA notation\\nfill('rgba(0,255,0, 0.25)');\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// percentage RGB notation\\nfill('rgb(100%,0%,10%)');\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// percentage RGBA notation\\nfill('rgba(100%,0%,100%,0.5)');\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// p5 Color object\\nfill(color(0, 0, 255));\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '60x60 dark charcoal grey rect with black outline in center of canvas.\\n60x60 yellow rect with black outline in center of canvas.\\n60x60 royal blue rect with black outline in center of canvas.\\n60x60 red rect with black outline in center of canvas.\\n60x60 pink rect with black outline in center of canvas.\\n60x60 black rect with black outline in center of canvas.\\n60x60 light green rect with black outline in center of canvas.\\n60x60 soft green rect with black outline in center of canvas.\\n60x60 red rect with black outline in center of canvas.\\n60x60 dark fuchsia rect with black outline in center of canvas.\\n60x60 blue rect with black outline in center of canvas.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Setting',\n                overloads: [\n                  {\n                    line: 339,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>red or hue value relative to\\n                                the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description:\n                          '<p>green or saturation value\\n                                relative to the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description:\n                          '<p>blue or brightness value\\n                                relative to the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'alpha',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 464,\n                    params: [\n                      {\n                        name: 'value',\n                        description: '<p>a color string</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 470,\n                    params: [\n                      {\n                        name: 'gray',\n                        description: '<p>a gray value</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'alpha',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 477,\n                    params: [\n                      {\n                        name: 'values',\n                        description:\n                          '<p>an array containing the red,green,blue &amp;\\n                                and alpha components of the color</p>\\n',\n                        type: 'Number[]'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 484,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '<p>the fill color</p>\\n',\n                        type: 'p5.Color'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/color/setting.js',\n                line: 496,\n                description:\n                  '<p>Disables filling geometry. If both <a href=\"#/p5/noStroke\">noStroke()</a> and <a href=\"#/p5/noFill\">noFill()</a> are called,\\nnothing will be drawn to the screen.</p>\\n',\n                itemtype: 'method',\n                name: 'noFill',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\nrect(15, 10, 55, 55);\\nnoFill();\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div modernizr='webgl'>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(0);\\n  noFill();\\n  stroke(100, 100, 240);\\n  rotateX(frameCount * 0.01);\\n  rotateY(frameCount * 0.01);\\n  box(45, 45, 45);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'white rect top middle and noFill rect center. Both 60x60 with black outlines.\\nblack canvas with purple cube wireframe spinning',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Setting'\n              },\n              {\n                file: 'src/color/setting.js',\n                line: 537,\n                description:\n                  '<p>Disables drawing the stroke (outline). If both <a href=\"#/p5/noStroke\">noStroke()</a> and <a href=\"#/p5/noFill\">noFill()</a>\\nare called, nothing will be drawn to the screen.</p>\\n',\n                itemtype: 'method',\n                name: 'noStroke',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\nnoStroke();\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div modernizr='webgl'>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(0);\\n  noStroke();\\n  fill(240, 150, 150);\\n  rotateX(frameCount * 0.01);\\n  rotateY(frameCount * 0.01);\\n  box(45, 45, 45);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '60x60 white rect at center. no outline.\\nblack canvas with pink cube spinning',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Setting'\n              },\n              {\n                file: 'src/color/setting.js',\n                line: 577,\n                description:\n                  '<p>Sets the color used to draw lines and borders around shapes. This color\\nis either specified in terms of the RGB or HSB color depending on the\\ncurrent <a href=\"#/p5/colorMode\">colorMode()</a> (the default color space is RGB, with each value in\\nthe range from 0 to 255). The alpha range by default is also 0 to 255.\\n<br><br>\\nIf a single string argument is provided, RGB, RGBA and Hex CSS color\\nstrings and all named color strings are supported. In this case, an alpha\\nnumber value as a second argument is not supported, the RGBA form should be\\nused.\\n<br><br>\\nA p5 <a href=\"#/p5.Color\">Color</a> object can also be provided to set the stroke color.</p>\\n',\n                itemtype: 'method',\n                name: 'stroke',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\n// Grayscale integer value\\nstrokeWeight(4);\\nstroke(51);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// R, G & B integer values\\nstroke(255, 204, 0);\\nstrokeWeight(4);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// H, S & B integer values\\ncolorMode(HSB);\\nstrokeWeight(4);\\nstroke(255, 204, 100);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// Named SVG/CSS color string\\nstroke('red');\\nstrokeWeight(4);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// three-digit hexadecimal RGB notation\\nstroke('#fae');\\nstrokeWeight(4);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// six-digit hexadecimal RGB notation\\nstroke('#222222');\\nstrokeWeight(4);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// integer RGB notation\\nstroke('rgb(0,255,0)');\\nstrokeWeight(4);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// integer RGBA notation\\nstroke('rgba(0,255,0,0.25)');\\nstrokeWeight(4);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// percentage RGB notation\\nstroke('rgb(100%,0%,10%)');\\nstrokeWeight(4);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// percentage RGBA notation\\nstroke('rgba(100%,0%,100%,0.5)');\\nstrokeWeight(4);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// p5 Color object\\nstroke(color(0, 0, 255));\\nstrokeWeight(4);\\nrect(20, 20, 60, 60);\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '60x60 white rect at center. Dark charcoal grey outline.\\n60x60 white rect at center. Yellow outline.\\n60x60 white rect at center. Royal blue outline.\\n60x60 white rect at center. Red outline.\\n60x60 white rect at center. Pink outline.\\n60x60 white rect at center. Black outline.\\n60x60 white rect at center. Bright green outline.\\n60x60 white rect at center. Soft green outline.\\n60x60 white rect at center. Red outline.\\n60x60 white rect at center. Dark fuchsia outline.\\n60x60 white rect at center. Blue outline.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Setting',\n                overloads: [\n                  {\n                    line: 577,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>red or hue value relative to\\n                                the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description:\n                          '<p>green or saturation value\\n                                relative to the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description:\n                          '<p>blue or brightness value\\n                                relative to the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'alpha',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 716,\n                    params: [\n                      {\n                        name: 'value',\n                        description: '<p>a color string</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 722,\n                    params: [\n                      {\n                        name: 'gray',\n                        description: '<p>a gray value</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'alpha',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 729,\n                    params: [\n                      {\n                        name: 'values',\n                        description:\n                          '<p>an array containing the red,green,blue &amp;\\n                                and alpha components of the color</p>\\n',\n                        type: 'Number[]'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 736,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '<p>the stroke color</p>\\n',\n                        type: 'p5.Color'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/color/setting.js',\n                line: 749,\n                description:\n                  '<p>All drawing that follows <a href=\"#/p5/erase\">erase()</a> will subtract from the canvas.\\nErased areas will reveal the web page underneath the canvas.\\nErasing can be canceled with <a href=\"#/p5/noErase\">noErase()</a>.\\n<br><br>\\nDrawing done with <a href=\"#/p5/image\">image()</a>\\nand <a href=\"#/p5/background\">background()</a> will not be affected by <a href=\"#/p5/erase\">erase()</a>\\n<br><br></p>\\n',\n                itemtype: 'method',\n                name: 'erase',\n                params: [\n                  {\n                    name: 'strengthFill',\n                    description:\n                      '<p>A number (0-255) for the strength of erasing for a shape&#39;s fill.\\n                                       This will default to 255 when no argument is given, which\\n                                       is full strength.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'strengthStroke',\n                    description:\n                      '<p>A number (0-255) for the strength of erasing for a shape&#39;s stroke.\\n                                       This will default to 255 when no argument is given, which\\n                                       is full strength.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\nbackground(100, 100, 250);\\nfill(250, 100, 100);\\nrect(20, 20, 60, 60);\\nerase();\\nellipse(25, 30, 30);\\nnoErase();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nbackground(150, 250, 150);\\nfill(100, 100, 250);\\nrect(20, 20, 60, 60);\\nstrokeWeight(5);\\nerase(150, 255);\\ntriangle(50, 10, 70, 50, 90, 10);\\nnoErase();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nfunction setup() {\\n  smooth();\\n  createCanvas(100, 100, WEBGL);\\n  // Make a &lt;p&gt; element and put it behind the canvas\\n  let p = createP('I am a dom element');\\n  p.center();\\n  p.style('font-size', '20px');\\n  p.style('text-align', 'center');\\n  p.style('z-index', '-9999');\\n}\\n\\nfunction draw() {\\n  background(250, 250, 150);\\n  fill(15, 195, 185);\\n  noStroke();\\n  sphere(30);\\n  erase();\\n  rotateY(frameCount * 0.02);\\n  translate(0, 0, 40);\\n  torus(15, 5);\\n  noErase();\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '60x60 centered pink rect, purple background. Elliptical area in top-left of rect is erased white.\\n60x60 centered purple rect, mint green background. Triangle in top-right is partially erased with fully erased outline.\\n60x60 centered teal sphere, yellow background. Torus rotating around sphere erases to reveal black text underneath.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Setting'\n              },\n              {\n                file: 'src/color/setting.js',\n                line: 829,\n                description:\n                  '<p>Ends erasing that was started with <a href=\"#/p5/erase\">erase()</a>.\\nThe <a href=\"#/p5/fill\">fill()</a>, <a href=\"#/p5/stroke\">stroke()</a>, and\\n<a href=\"#/p5/blendMode\">blendMode()</a> settings will return to what they were\\nprior to calling <a href=\"#/p5/erase\">erase()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'noErase',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nbackground(235, 145, 15);\\nnoStroke();\\nfill(30, 45, 220);\\nrect(30, 10, 10, 80);\\nerase();\\nellipse(50, 50, 60);\\nnoErase();\\nrect(70, 10, 10, 80);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'Orange background, with two tall blue rectangles. A centered ellipse erased the first blue rect but not the second.',\n                class: 'p5',\n                module: 'Color',\n                submodule: 'Setting'\n              },\n              {\n                file: 'src/core/shape/2d_primitives.js',\n                line: 14,\n                description:\n                  '<p>This function does 3 things:</p>\\n<ol>\\n<li><p>Bounds the desired start/stop angles for an arc (in radians) so that:</p>\\n<pre><code>0 &lt;= start &lt; TWO_PI ;    start &lt;= stop &lt; start + TWO_PI</code></pre><p>This means that the arc rendering functions don&#39;t have to be concerned\\nwith what happens if stop is smaller than start, or if the arc &#39;goes\\nround more than once&#39;, etc.: they can just start at start and increase\\nuntil stop and the correct arc will be drawn.</p>\\n</li>\\n<li><p>Optionally adjusts the angles within each quadrant to counter the naive\\nscaling of the underlying ellipse up from the unit circle.  Without\\nthis, the angles become arbitrary when width != height: 45 degrees\\nmight be drawn at 5 degrees on a &#39;wide&#39; ellipse, or at 85 degrees on\\na &#39;tall&#39; ellipse.</p>\\n</li>\\n<li><p>Flags up when start and stop correspond to the same place on the\\nunderlying ellipse.  This is useful if you want to do something special\\nthere (like rendering a whole ellipse instead).</p>\\n</li>\\n</ol>\\n',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '2D Primitives'\n              },\n              {\n                file: 'src/core/shape/2d_primitives.js',\n                line: 100,\n                description:\n                  '<p>Draw an arc to the screen. If called with only x, y, w, h, start, and\\nstop, the arc will be drawn and filled as an open pie segment. If a mode parameter is provided, the arc\\nwill be filled like an open semi-circle (OPEN) , a closed semi-circle (CHORD), or as a closed pie segment (PIE). The\\norigin may be changed with the <a href=\"#/p5/ellipseMode\">ellipseMode()</a> function.<br><br>\\nThe arc is always drawn clockwise from wherever start falls to wherever stop falls on the ellipse.\\nAdding or subtracting TWO_PI to either angle does not change where they fall.\\nIf both start and stop fall at the same place, a full ellipse will be drawn. Be aware that the the\\ny-axis increases in the downward direction, therefore angles are measured clockwise from the positive\\nx-direction (&quot;3 o&#39;clock&quot;).</p>\\n',\n                itemtype: 'method',\n                name: 'arc',\n                params: [\n                  {\n                    name: 'x',\n                    description: '<p>x-coordinate of the arc&#39;s ellipse</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y-coordinate of the arc&#39;s ellipse</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'w',\n                    description: '<p>width of the arc&#39;s ellipse by default</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'h',\n                    description: '<p>height of the arc&#39;s ellipse by default</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'start',\n                    description: '<p>angle to start the arc, specified in radians</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'stop',\n                    description: '<p>angle to stop the arc, specified in radians</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'mode',\n                    description:\n                      '<p>optional parameter to determine the way of drawing\\n                        the arc. either CHORD, PIE or OPEN</p>\\n',\n                    type: 'Constant',\n                    optional: true\n                  },\n                  {\n                    name: 'detail',\n                    description:\n                      '<p>optional parameter for WebGL mode only. This is to\\n                        specify the number of vertices that makes up the\\n                        perimeter of the arc. Default value is 25.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\narc(50, 55, 50, 50, 0, HALF_PI);\\nnoFill();\\narc(50, 55, 60, 60, HALF_PI, PI);\\narc(50, 55, 70, 70, PI, PI + QUARTER_PI);\\narc(50, 55, 80, 80, PI + QUARTER_PI, TWO_PI);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\narc(50, 50, 80, 80, 0, PI + QUARTER_PI);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\narc(50, 50, 80, 80, 0, PI + QUARTER_PI, OPEN);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\narc(50, 50, 80, 80, 0, PI + QUARTER_PI, CHORD);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\narc(50, 50, 80, 80, 0, PI + QUARTER_PI, PIE);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'shattered outline of an ellipse with a quarter of a white circle bottom-right.\\nwhite ellipse with top right quarter missing.\\nwhite ellipse with black outline with top right missing.\\nwhite ellipse with top right missing with black outline around shape.\\nwhite ellipse with top right quarter missing with black outline around the shape.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '2D Primitives'\n              },\n              {\n                file: 'src/core/shape/2d_primitives.js',\n                line: 211,\n                description:\n                  '<p>Draws an ellipse (oval) to the screen. An ellipse with equal width and\\nheight is a circle. By default, the first two parameters set the location,\\nand the third and fourth parameters set the shape&#39;s width and height. If\\nno height is specified, the value of width is used for both the width and\\nheight. If a negative height or width is specified, the absolute value is taken.\\nThe origin may be changed with the <a href=\"#/p5/ellipseMode\">ellipseMode()</a> function.</p>\\n',\n                itemtype: 'method',\n                name: 'ellipse',\n                chainable: 1,\n                example: ['\\n<div>\\n<code>\\nellipse(56, 46, 55, 55);\\n</code>\\n</div>'],\n                alt:\n                  'white ellipse with black outline in middle-right of canvas that is 55x55.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '2D Primitives',\n                overloads: [\n                  {\n                    line: 211,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>x-coordinate of the ellipse.</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>y-coordinate of the ellipse.</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'w',\n                        description: '<p>width of the ellipse.</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'h',\n                        description: '<p>height of the ellipse.</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 236,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'w',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'h',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'detail',\n                        description:\n                          '<p>number of radial sectors to draw (for WebGL mode)</p>\\n',\n                        type: 'Integer'\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/core/shape/2d_primitives.js',\n                line: 249,\n                description:\n                  '<p>Draws a circle to the screen. A circle is a simple closed shape.\\nIt is the set of all points in a plane that are at a given distance from a given point, the centre.\\nThis function is a special case of the ellipse() function, where the width and height of the ellipse are the same.\\nHeight and width of the ellipse correspond to the diameter of the circle.\\nBy default, the first two parameters set the location of the centre of the circle, the third sets the diameter of the circle.</p>\\n',\n                itemtype: 'method',\n                name: 'circle',\n                params: [\n                  {\n                    name: 'x',\n                    description: '<p>x-coordinate of the centre of the circle.</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y-coordinate of the centre of the circle.</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'd',\n                    description: '<p>diameter of the circle.</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// Draw a circle at location (30, 30) with a diameter of 20.\\ncircle(30, 30, 20);\\n</code>\\n</div>'\n                ],\n                alt: 'white circle with black outline in mid of canvas that is 55x55.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '2D Primitives'\n              },\n              {\n                file: 'src/core/shape/2d_primitives.js',\n                line: 306,\n                description:\n                  '<p>Draws a line (a direct path between two points) to the screen. The version\\nof <a href=\"#/p5/line\">line()</a> with four parameters draws the line in 2D. To color a line, use\\nthe <a href=\"#/p5/stroke\">stroke()</a> function. A line cannot be filled, therefore the <a href=\"#/p5/fill\">fill()</a>\\nfunction will not affect the color of a line. 2D lines are drawn with a\\nwidth of one pixel by default, but this can be changed with the\\n<a href=\"#/p5/strokeWeight\">strokeWeight()</a> function.</p>\\n',\n                itemtype: 'method',\n                name: 'line',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nline(30, 20, 85, 75);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nline(30, 20, 85, 20);\\nstroke(126);\\nline(85, 20, 85, 75);\\nstroke(255);\\nline(85, 75, 30, 75);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'line 78 pixels long running from mid-top to bottom-right of canvas.\\n3 lines of various stroke sizes. Form top, bottom and right sides of a square.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '2D Primitives',\n                overloads: [\n                  {\n                    line: 306,\n                    params: [\n                      {\n                        name: 'x1',\n                        description: '<p>the x-coordinate of the first point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y1',\n                        description: '<p>the y-coordinate of the first point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x2',\n                        description: '<p>the x-coordinate of the second point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y2',\n                        description: '<p>the y-coordinate of the second point</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 342,\n                    params: [\n                      {\n                        name: 'x1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z1',\n                        description: '<p>the z-coordinate of the first point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z2',\n                        description: '<p>the z-coordinate of the second point</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/core/shape/2d_primitives.js',\n                line: 362,\n                description:\n                  '<p>Draws a point, a coordinate in space at the dimension of one pixel.\\nThe first parameter is the horizontal value for the point, the second\\nvalue is the vertical value for the point. The color of the point is\\nchanged with the <a href=\"#/p5/stroke\">stroke()</a> function. The size of the point\\nis changed with the <a href=\"#/p5/strokeWeight\">strokeWeight()</a> function.</p>\\n',\n                itemtype: 'method',\n                name: 'point',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\npoint(30, 20);\\npoint(85, 20);\\npoint(85, 75);\\npoint(30, 75);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nstroke('purple'); // Change the color\\nstrokeWeight(10); // Make the points 10 pixels in size\\npoint(30, 20);\\npoint(85, 20);\\npoint(85, 75);\\npoint(30, 75);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet a = createVector(10, 10);\\npoint(a);\\nlet b = createVector(10, 20);\\npoint(b);\\npoint(createVector(20, 10));\\npoint(createVector(20, 20));\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '4 points centered in the middle-right of the canvas.\\n4 large purple points centered in the middle-right of the canvas.\\nVertices of a square of length 10 pixels towards the top-left of the canvas.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '2D Primitives',\n                overloads: [\n                  {\n                    line: 362,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>the x-coordinate</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>the y-coordinate</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>the z-coordinate (for WebGL mode)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 412,\n                    params: [\n                      {\n                        name: 'coordinate_vector',\n                        description: '<p>the coordinate vector</p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/core/shape/2d_primitives.js',\n                line: 437,\n                description:\n                  '<p>Draw a quad. A quad is a quadrilateral, a four sided polygon. It is\\nsimilar to a rectangle, but the angles between its edges are not\\nconstrained to ninety degrees. The first pair of parameters (x1,y1)\\nsets the first vertex and the subsequent pairs should proceed\\nclockwise or counter-clockwise around the defined shape.\\nz-arguments only work when quad() is used in WEBGL mode.</p>\\n',\n                itemtype: 'method',\n                name: 'quad',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nquad(38, 31, 86, 20, 69, 63, 30, 76);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'irregular white quadrilateral shape with black outline mid-right of canvas.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '2D Primitives',\n                overloads: [\n                  {\n                    line: 437,\n                    params: [\n                      {\n                        name: 'x1',\n                        description: '<p>the x-coordinate of the first point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y1',\n                        description: '<p>the y-coordinate of the first point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x2',\n                        description: '<p>the x-coordinate of the second point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y2',\n                        description: '<p>the y-coordinate of the second point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x3',\n                        description: '<p>the x-coordinate of the third point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y3',\n                        description: '<p>the y-coordinate of the third point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x4',\n                        description: '<p>the x-coordinate of the fourth point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y4',\n                        description: '<p>the y-coordinate of the fourth point</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 467,\n                    params: [\n                      {\n                        name: 'x1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z1',\n                        description: '<p>the z-coordinate of the first point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z2',\n                        description: '<p>the z-coordinate of the second point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z3',\n                        description: '<p>the z-coordinate of the third point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x4',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y4',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z4',\n                        description: '<p>the z-coordinate of the fourth point</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/core/shape/2d_primitives.js',\n                line: 504,\n                description:\n                  '<p>Draws a rectangle to the screen. A rectangle is a four-sided shape with\\nevery angle at ninety degrees. By default, the first two parameters set\\nthe location of the upper-left corner, the third sets the width, and the\\nfourth sets the height. The way these parameters are interpreted, however,\\nmay be changed with the <a href=\"#/p5/rectMode\">rectMode()</a> function.\\n<br><br>\\nThe fifth, sixth, seventh and eighth parameters, if specified,\\ndetermine corner radius for the top-left, top-right, lower-right and\\nlower-left corners, respectively. An omitted corner radius parameter is set\\nto the value of the previously specified radius value in the parameter list.</p>\\n',\n                itemtype: 'method',\n                name: 'rect',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// Draw a rectangle at location (30, 20) with a width and height of 55.\\nrect(30, 20, 55, 55);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// Draw a rectangle with rounded corners, each having a radius of 20.\\nrect(30, 20, 55, 55, 20);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// Draw a rectangle with rounded corners having the following radii:\\n// top-left = 20, top-right = 15, bottom-right = 10, bottom-left = 5.\\nrect(30, 20, 55, 55, 20, 15, 10, 5);\\n</code>\\n</div>'\n                ],\n                alt:\n                  '55x55 white rect with black outline in mid-right of canvas.\\n55x55 white rect with black outline and rounded edges in mid-right of canvas.\\n55x55 white rect with black outline and rounded edges of different radii.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '2D Primitives',\n                overloads: [\n                  {\n                    line: 504,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>x-coordinate of the rectangle.</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>y-coordinate of the rectangle.</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'w',\n                        description: '<p>width of the rectangle.</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'h',\n                        description: '<p>height of the rectangle.</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'tl',\n                        description: '<p>optional radius of top-left corner.</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'tr',\n                        description: '<p>optional radius of top-right corner.</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'br',\n                        description: '<p>optional radius of bottom-right corner.</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'bl',\n                        description: '<p>optional radius of bottom-left corner.</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 554,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'w',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'h',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'detailX',\n                        description:\n                          '<p>number of segments in the x-direction (for WebGL mode)</p>\\n',\n                        type: 'Integer',\n                        optional: true\n                      },\n                      {\n                        name: 'detailY',\n                        description:\n                          '<p>number of segments in the y-direction (for WebGL mode)</p>\\n',\n                        type: 'Integer',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/core/shape/2d_primitives.js',\n                line: 569,\n                description:\n                  '<p>Draws a square to the screen. A square is a four-sided shape with\\nevery angle at ninety degrees, and equal side size.\\nThis function is a special case of the rect() function, where the width and height are the same, and the parameter is called &quot;s&quot; for side size.\\nBy default, the first two parameters set the location of the upper-left corner, the third sets the side size of the square.\\nThe way these parameters are interpreted, however,\\nmay be changed with the <a href=\"#/p5/rectMode\">rectMode()</a> function.\\n<br><br>\\nThe fourth, fifth, sixth and seventh parameters, if specified,\\ndetermine corner radius for the top-left, top-right, lower-right and\\nlower-left corners, respectively. An omitted corner radius parameter is set\\nto the value of the previously specified radius value in the parameter list.</p>\\n',\n                itemtype: 'method',\n                name: 'square',\n                params: [\n                  {\n                    name: 'x',\n                    description: '<p>x-coordinate of the square.</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y-coordinate of the square.</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 's',\n                    description: '<p>side size of the square.</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'tl',\n                    description: '<p>optional radius of top-left corner.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'tr',\n                    description: '<p>optional radius of top-right corner.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'br',\n                    description: '<p>optional radius of bottom-right corner.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'bl',\n                    description: '<p>optional radius of bottom-left corner.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// Draw a square at location (30, 20) with a side size of 55.\\nsquare(30, 20, 55);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// Draw a square with rounded corners, each having a radius of 20.\\nsquare(30, 20, 55, 20);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// Draw a square with rounded corners having the following radii:\\n// top-left = 20, top-right = 15, bottom-right = 10, bottom-left = 5.\\nsquare(30, 20, 55, 20, 15, 10, 5);\\n</code>\\n</div>'\n                ],\n                alt:\n                  '55x55 white square with black outline in mid-right of canvas.\\n55x55 white square with black outline and rounded edges in mid-right of canvas.\\n55x55 white square with black outline and rounded edges of different radii.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '2D Primitives'\n              },\n              {\n                file: 'src/core/shape/2d_primitives.js',\n                line: 652,\n                description:\n                  '<p>A triangle is a plane created by connecting three points. The first two\\narguments specify the first point, the middle two arguments specify the\\nsecond point, and the last two arguments specify the third point.</p>\\n',\n                itemtype: 'method',\n                name: 'triangle',\n                params: [\n                  {\n                    name: 'x1',\n                    description: '<p>x-coordinate of the first point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y1',\n                    description: '<p>y-coordinate of the first point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'x2',\n                    description: '<p>x-coordinate of the second point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y2',\n                    description: '<p>y-coordinate of the second point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'x3',\n                    description: '<p>x-coordinate of the third point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y3',\n                    description: '<p>y-coordinate of the third point</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\ntriangle(30, 75, 58, 20, 86, 75);\\n</code>\\n</div>'\n                ],\n                alt: 'white triangle with black outline in mid-right of canvas.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '2D Primitives'\n              },\n              {\n                file: 'src/core/shape/attributes.js',\n                line: 12,\n                description:\n                  '<p>Modifies the location from which ellipses are drawn by changing the way\\nin which parameters given to <a href=\"#/p5/ellipse\">ellipse()</a>,\\n<a href=\"#/p5/circle\">circle()</a> and <a href=\"#/p5/arc\">arc()</a> are interpreted.\\n<br><br>\\nThe default mode is ellipseMode(CENTER), which interprets the first two\\nparameters of <a href=\"#/p5/ellipse\">ellipse()</a> as the shape&#39;s center point, while the third and\\nfourth parameters are its width and height.\\n<br><br>\\nellipseMode(RADIUS) also uses the first two parameters of <a href=\"#/p5/ellipse\">ellipse()</a> as\\nthe shape&#39;s center point, but uses the third and fourth parameters to\\nspecify half of the shapes&#39;s width and height.\\n<br><br>\\nellipseMode(CORNER) interprets the first two parameters of <a href=\"#/p5/ellipse\">ellipse()</a> as\\nthe upper-left corner of the shape, while the third and fourth parameters\\nare its width and height.\\n<br><br>\\nellipseMode(CORNERS) interprets the first two parameters of <a href=\"#/p5/ellipse\">ellipse()</a> as\\nthe location of one corner of the ellipse&#39;s bounding box, and the third\\nand fourth parameters as the location of the opposite corner.\\n<br><br>\\nThe parameter must be written in ALL CAPS because Javascript is a\\ncase-sensitive language.</p>\\n',\n                itemtype: 'method',\n                name: 'ellipseMode',\n                params: [\n                  {\n                    name: 'mode',\n                    description: '<p>either CENTER, RADIUS, CORNER, or CORNERS</p>\\n',\n                    type: 'Constant'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nellipseMode(RADIUS); // Set ellipseMode to RADIUS\\nfill(255); // Set fill to white\\nellipse(50, 50, 30, 30); // Draw white ellipse using RADIUS mode\\n\\nellipseMode(CENTER); // Set ellipseMode to CENTER\\nfill(100); // Set fill to gray\\nellipse(50, 50, 30, 30); // Draw gray ellipse using CENTER mode\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nellipseMode(CORNER); // Set ellipseMode is CORNER\\nfill(255); // Set fill to white\\nellipse(25, 25, 50, 50); // Draw white ellipse using CORNER mode\\n\\nellipseMode(CORNERS); // Set ellipseMode to CORNERS\\nfill(100); // Set fill to gray\\nellipse(25, 25, 50, 50); // Draw gray ellipse using CORNERS mode\\n</code>\\n</div>'\n                ],\n                alt:\n                  '60x60 white ellipse and 30x30 grey ellipse with black outlines at center.\\n60x60 white ellipse @center and 30x30 grey ellipse top-right, black outlines.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Attributes'\n              },\n              {\n                file: 'src/core/shape/attributes.js',\n                line: 82,\n                description:\n                  '<p>Draws all geometry with jagged (aliased) edges. Note that <a href=\"#/p5/smooth\">smooth()</a> is\\nactive by default in 2D mode, so it is necessary to call <a href=\"#/p5/noSmooth\">noSmooth()</a> to disable\\nsmoothing of geometry, images, and fonts. In 3D mode, <a href=\"#/p5/noSmooth\">noSmooth()</a> is enabled\\nby default, so it is necessary to call <a href=\"#/p5/smooth\">smooth()</a> if you would like\\nsmooth (antialiased) edges on your geometry.</p>\\n',\n                itemtype: 'method',\n                name: 'noSmooth',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nbackground(0);\\nnoStroke();\\nsmooth();\\nellipse(30, 48, 36, 36);\\nnoSmooth();\\nellipse(70, 48, 36, 36);\\n</code>\\n</div>'\n                ],\n                alt:\n                  '2 pixelated 36x36 white ellipses to left & right of center, black background',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Attributes'\n              },\n              {\n                file: 'src/core/shape/attributes.js',\n                line: 117,\n                description:\n                  '<p>Modifies the location from which rectangles are drawn by changing the way\\nin which parameters given to <a href=\"#/p5/rect\">rect()</a> are interpreted.\\n<br><br>\\nThe default mode is rectMode(CORNER), which interprets the first two\\nparameters of <a href=\"#/p5/rect\">rect()</a> as the upper-left corner of the shape, while the\\nthird and fourth parameters are its width and height.\\n<br><br>\\nrectMode(CORNERS) interprets the first two parameters of <a href=\"#/p5/rect\">rect()</a> as the\\nlocation of one corner, and the third and fourth parameters as the\\nlocation of the opposite corner.\\n<br><br>\\nrectMode(CENTER) interprets the first two parameters of <a href=\"#/p5/rect\">rect()</a> as the\\nshape&#39;s center point, while the third and fourth parameters are its\\nwidth and height.\\n<br><br>\\nrectMode(RADIUS) also uses the first two parameters of <a href=\"#/p5/rect\">rect()</a> as the\\nshape&#39;s center point, but uses the third and fourth parameters to specify\\nhalf of the shapes&#39;s width and height.\\n<br><br>\\nThe parameter must be written in ALL CAPS because Javascript is a\\ncase-sensitive language.</p>\\n',\n                itemtype: 'method',\n                name: 'rectMode',\n                params: [\n                  {\n                    name: 'mode',\n                    description: '<p>either CORNER, CORNERS, CENTER, or RADIUS</p>\\n',\n                    type: 'Constant'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nrectMode(CORNER); // Default rectMode is CORNER\\nfill(255); // Set fill to white\\nrect(25, 25, 50, 50); // Draw white rect using CORNER mode\\n\\nrectMode(CORNERS); // Set rectMode to CORNERS\\nfill(100); // Set fill to gray\\nrect(25, 25, 50, 50); // Draw gray rect using CORNERS mode\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nrectMode(RADIUS); // Set rectMode to RADIUS\\nfill(255); // Set fill to white\\nrect(50, 50, 30, 30); // Draw white rect using RADIUS mode\\n\\nrectMode(CENTER); // Set rectMode to CENTER\\nfill(100); // Set fill to gray\\nrect(50, 50, 30, 30); // Draw gray rect using CENTER mode\\n</code>\\n</div>'\n                ],\n                alt:\n                  '50x50 white rect at center and 25x25 grey rect in the top left of the other.\\n50x50 white rect at center and 25x25 grey rect in the center of the other.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Attributes'\n              },\n              {\n                file: 'src/core/shape/attributes.js',\n                line: 186,\n                description:\n                  '<p>Draws all geometry with smooth (anti-aliased) edges. <a href=\"#/p5/smooth\">smooth()</a> will also\\nimprove image quality of resized images. Note that <a href=\"#/p5/smooth\">smooth()</a> is active by\\ndefault in 2D mode; <a href=\"#/p5/noSmooth\">noSmooth()</a> can be used to disable smoothing of geometry,\\nimages, and fonts. In 3D mode, <a href=\"#/p5/noSmooth\">noSmooth()</a> is enabled\\nby default, so it is necessary to call <a href=\"#/p5/smooth\">smooth()</a> if you would like\\nsmooth (antialiased) edges on your geometry.</p>\\n',\n                itemtype: 'method',\n                name: 'smooth',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nbackground(0);\\nnoStroke();\\nsmooth();\\nellipse(30, 48, 36, 36);\\nnoSmooth();\\nellipse(70, 48, 36, 36);\\n</code>\\n</div>'\n                ],\n                alt:\n                  '2 pixelated 36x36 white ellipses one left one right of center. On black.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Attributes'\n              },\n              {\n                file: 'src/core/shape/attributes.js',\n                line: 222,\n                description:\n                  '<p>Sets the style for rendering line endings. These ends are either squared,\\nextended, or rounded, each of which specified with the corresponding\\nparameters: SQUARE, PROJECT, and ROUND. The default cap is ROUND.</p>\\n',\n                itemtype: 'method',\n                name: 'strokeCap',\n                params: [\n                  {\n                    name: 'cap',\n                    description: '<p>either SQUARE, PROJECT, or ROUND</p>\\n',\n                    type: 'Constant'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nstrokeWeight(12.0);\\nstrokeCap(ROUND);\\nline(20, 30, 80, 30);\\nstrokeCap(SQUARE);\\nline(20, 50, 80, 50);\\nstrokeCap(PROJECT);\\nline(20, 70, 80, 70);\\n</code>\\n</div>'\n                ],\n                alt:\n                  '3 lines. Top line: rounded ends, mid: squared, bottom:longer squared ends.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Attributes'\n              },\n              {\n                file: 'src/core/shape/attributes.js',\n                line: 259,\n                description:\n                  '<p>Sets the style of the joints which connect line segments. These joints\\nare either mitered, beveled, or rounded and specified with the\\ncorresponding parameters MITER, BEVEL, and ROUND. The default joint is\\nMITER.</p>\\n',\n                itemtype: 'method',\n                name: 'strokeJoin',\n                params: [\n                  {\n                    name: 'join',\n                    description: '<p>either MITER, BEVEL, ROUND</p>\\n',\n                    type: 'Constant'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nnoFill();\\nstrokeWeight(10.0);\\nstrokeJoin(MITER);\\nbeginShape();\\nvertex(35, 20);\\nvertex(65, 50);\\nvertex(35, 80);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nnoFill();\\nstrokeWeight(10.0);\\nstrokeJoin(BEVEL);\\nbeginShape();\\nvertex(35, 20);\\nvertex(65, 50);\\nvertex(35, 80);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nnoFill();\\nstrokeWeight(10.0);\\nstrokeJoin(ROUND);\\nbeginShape();\\nvertex(35, 20);\\nvertex(65, 50);\\nvertex(35, 80);\\nendShape();\\n</code>\\n</div>'\n                ],\n                alt:\n                  'Right-facing arrowhead shape with pointed tip in center of canvas.\\nRight-facing arrowhead shape with flat tip in center of canvas.\\nRight-facing arrowhead shape with rounded tip in center of canvas.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Attributes'\n              },\n              {\n                file: 'src/core/shape/attributes.js',\n                line: 326,\n                description:\n                  '<p>Sets the width of the stroke used for lines, points, and the border\\naround shapes. All widths are set in units of pixels.</p>\\n',\n                itemtype: 'method',\n                name: 'strokeWeight',\n                params: [\n                  {\n                    name: 'weight',\n                    description: '<p>the weight (in pixels) of the stroke</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nstrokeWeight(1); // Default\\nline(20, 20, 80, 20);\\nstrokeWeight(4); // Thicker\\nline(20, 40, 80, 40);\\nstrokeWeight(10); // Beastly\\nline(20, 70, 80, 70);\\n</code>\\n</div>'\n                ],\n                alt: '3 horizontal black lines. Top line: thin, mid: medium, bottom:thick.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Attributes'\n              },\n              {\n                file: 'src/core/shape/curves.js',\n                line: 11,\n                description:\n                  '<p>Draws a cubic Bezier curve on the screen. These curves are defined by a\\nseries of anchor and control points. The first two parameters specify\\nthe first anchor point and the last two parameters specify the other\\nanchor point, which become the first and last points on the curve. The\\nmiddle parameters specify the two control points which define the shape\\nof the curve. Approximately speaking, control points &quot;pull&quot; the curve\\ntowards them.<br /><br />Bezier curves were developed by French\\nautomotive engineer Pierre Bezier, and are commonly used in computer\\ngraphics to define gently sloping curves. See also <a href=\"#/p5/curve\">curve()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'bezier',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nnoFill();\\nstroke(255, 102, 0);\\nline(85, 20, 10, 10);\\nline(90, 90, 15, 80);\\nstroke(0, 0, 0);\\nbezier(85, 20, 10, 10, 90, 90, 15, 80);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nbackground(0, 0, 0);\\nnoFill();\\nstroke(255);\\nbezier(250, 250, 0, 100, 100, 0, 100, 0, 0, 0, 100, 0);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'stretched black s-shape in center with orange lines extending from end points.\\nstretched black s-shape with 10 5x5 white ellipses along the shape.\\nstretched black s-shape with 7 5x5 ellipses and orange lines along the shape.\\nstretched black s-shape with 17 small orange lines extending from under shape.\\nhorseshoe shape with orange ends facing left and black curved center.\\nhorseshoe shape with orange ends facing left and black curved center.\\nLine shaped like right-facing arrow,points move with mouse-x and warp shape.\\nhorizontal line that hooks downward on the right and 13 5x5 ellipses along it.\\nright curving line mid-right of canvas with 7 short lines radiating from it.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Curves',\n                overloads: [\n                  {\n                    line: 11,\n                    params: [\n                      {\n                        name: 'x1',\n                        description: '<p>x-coordinate for the first anchor point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y1',\n                        description: '<p>y-coordinate for the first anchor point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x2',\n                        description: '<p>x-coordinate for the first control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y2',\n                        description: '<p>y-coordinate for the first control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x3',\n                        description: '<p>x-coordinate for the second control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y3',\n                        description: '<p>y-coordinate for the second control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x4',\n                        description: '<p>x-coordinate for the second anchor point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y4',\n                        description: '<p>y-coordinate for the second anchor point</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 64,\n                    params: [\n                      {\n                        name: 'x1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z1',\n                        description: '<p>z-coordinate for the first anchor point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z2',\n                        description: '<p>z-coordinate for the first control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z3',\n                        description: '<p>z-coordinate for the second control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x4',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y4',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z4',\n                        description: '<p>z-coordinate for the second anchor point</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/core/shape/curves.js',\n                line: 94,\n                description:\n                  '<p>Sets the resolution at which Beziers display.</p>\\n<p>The default value is 20.</p>\\n<p>This function is only useful when using the WEBGL renderer\\nas the default canvas renderer does not use this information.</p>\\n',\n                itemtype: 'method',\n                name: 'bezierDetail',\n                params: [\n                  {\n                    name: 'detail',\n                    description: '<p>resolution of the curves</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div modernizr='webgl'>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  noFill();\\n\\n  bezierDetail(5);\\n}\\n\\nfunction draw() {\\n  background(200);\\n\\n  bezier(-40, -40, 0,\\n          90, -40, 0,\\n         -90,  40, 0,\\n          40,  40, 0);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'stretched black s-shape with a low level of bezier detail',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Curves'\n              },\n              {\n                file: 'src/core/shape/curves.js',\n                line: 137,\n                description:\n                  '<p>Evaluates the Bezier at position t for points a, b, c, d.\\nThe parameters a and d are the first and last points\\non the curve, and b and c are the control points.\\nThe final parameter t varies between 0 and 1.\\nThis can be done once with the x coordinates and a second time\\nwith the y coordinates to get the location of a bezier curve at t.</p>\\n',\n                itemtype: 'method',\n                name: 'bezierPoint',\n                params: [\n                  {\n                    name: 'a',\n                    description: '<p>coordinate of first point on the curve</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'b',\n                    description: '<p>coordinate of first control point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'c',\n                    description: '<p>coordinate of second control point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'd',\n                    description: '<p>coordinate of second point on the curve</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 't',\n                    description: '<p>value between 0 and 1</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the value of the Bezier at position t',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nnoFill();\\nlet x1 = 85,\\n x2 = 10,\\n x3 = 90,\\n x4 = 15;\\nlet y1 = 20,\\n y2 = 10,\\n y3 = 90,\\n y4 = 80;\\nbezier(x1, y1, x2, y2, x3, y3, x4, y4);\\nfill(255);\\nlet steps = 10;\\nfor (let i = 0; i <= steps; i++) {\\n  let t = i / steps;\\n  let x = bezierPoint(x1, x2, x3, x4, t);\\n  let y = bezierPoint(y1, y2, y3, y4, t);\\n  ellipse(x, y, 5, 5);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'stretched black s-shape with 17 small orange lines extending from under shape.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Curves'\n              },\n              {\n                file: 'src/core/shape/curves.js',\n                line: 192,\n                description:\n                  '<p>Evaluates the tangent to the Bezier at position t for points a, b, c, d.\\nThe parameters a and d are the first and last points\\non the curve, and b and c are the control points.\\nThe final parameter t varies between 0 and 1.</p>\\n',\n                itemtype: 'method',\n                name: 'bezierTangent',\n                params: [\n                  {\n                    name: 'a',\n                    description: '<p>coordinate of first point on the curve</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'b',\n                    description: '<p>coordinate of first control point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'c',\n                    description: '<p>coordinate of second control point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'd',\n                    description: '<p>coordinate of second point on the curve</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 't',\n                    description: '<p>value between 0 and 1</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the tangent at position t',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nnoFill();\\nbezier(85, 20, 10, 10, 90, 90, 15, 80);\\nlet steps = 6;\\nfill(255);\\nfor (let i = 0; i <= steps; i++) {\\n  let t = i / steps;\\n  // Get the location of the point\\n  let x = bezierPoint(85, 10, 90, 15, t);\\n  let y = bezierPoint(20, 10, 90, 80, t);\\n  // Get the tangent points\\n  let tx = bezierTangent(85, 10, 90, 15, t);\\n  let ty = bezierTangent(20, 10, 90, 80, t);\\n  // Calculate an angle from the tangent points\\n  let a = atan2(ty, tx);\\n  a += PI;\\n  stroke(255, 102, 0);\\n  line(x, y, cos(a) * 30 + x, sin(a) * 30 + y);\\n  // The following line of code makes a line\\n  // inverse of the above line\\n  //line(x, y, cos(a)*-30 + x, sin(a)*-30 + y);\\n  stroke(0);\\n  ellipse(x, y, 5, 5);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nnoFill();\\nbezier(85, 20, 10, 10, 90, 90, 15, 80);\\nstroke(255, 102, 0);\\nlet steps = 16;\\nfor (let i = 0; i <= steps; i++) {\\n  let t = i / steps;\\n  let x = bezierPoint(85, 10, 90, 15, t);\\n  let y = bezierPoint(20, 10, 90, 80, t);\\n  let tx = bezierTangent(85, 10, 90, 15, t);\\n  let ty = bezierTangent(20, 10, 90, 80, t);\\n  let a = atan2(ty, tx);\\n  a -= HALF_PI;\\n  line(x, y, cos(a) * 8 + x, sin(a) * 8 + y);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  's-shaped line with 17 short orange lines extending from underside of shape',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Curves'\n              },\n              {\n                file: 'src/core/shape/curves.js',\n                line: 271,\n                description:\n                  '<p>Draws a curved line on the screen between two points, given as the\\nmiddle four parameters. The first two parameters are a control point, as\\nif the curve came from this point even though it&#39;s not drawn. The last\\ntwo parameters similarly describe the other control point. <br /><br />\\nLonger curves can be created by putting a series of <a href=\"#/p5/curve\">curve()</a> functions\\ntogether or using <a href=\"#/p5/curveVertex\">curveVertex()</a>. An additional function called\\n<a href=\"#/p5/curveTightness\">curveTightness()</a> provides control for the visual quality of the curve.\\nThe <a href=\"#/p5/curve\">curve()</a> function is an implementation of Catmull-Rom splines.</p>\\n',\n                itemtype: 'method',\n                name: 'curve',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nnoFill();\\nstroke(255, 102, 0);\\ncurve(5, 26, 5, 26, 73, 24, 73, 61);\\nstroke(0);\\ncurve(5, 26, 73, 24, 73, 61, 15, 65);\\nstroke(255, 102, 0);\\ncurve(73, 24, 73, 61, 15, 65, 15, 65);\\n</code>\\n</div>\\n<div>\\n<code>\\n// Define the curve points as JavaScript objects\\nlet p1 = { x: 5, y: 26 },\\n p2 = { x: 73, y: 24 };\\nlet p3 = { x: 73, y: 61 },\\n p4 = { x: 15, y: 65 };\\nnoFill();\\nstroke(255, 102, 0);\\ncurve(p1.x, p1.y, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y);\\nstroke(0);\\ncurve(p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y);\\nstroke(255, 102, 0);\\ncurve(p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, p4.x, p4.y);\\n</code>\\n</div>\\n<div>\\n<code>\\nnoFill();\\nstroke(255, 102, 0);\\ncurve(5, 26, 0, 5, 26, 0, 73, 24, 0, 73, 61, 0);\\nstroke(0);\\ncurve(5, 26, 0, 73, 24, 0, 73, 61, 0, 15, 65, 0);\\nstroke(255, 102, 0);\\ncurve(73, 24, 0, 73, 61, 0, 15, 65, 0, 15, 65, 0);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'horseshoe shape with orange ends facing left and black curved center.\\nhorseshoe shape with orange ends facing left and black curved center.\\ncurving black and orange lines.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Curves',\n                overloads: [\n                  {\n                    line: 271,\n                    params: [\n                      {\n                        name: 'x1',\n                        description:\n                          '<p>x-coordinate for the beginning control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y1',\n                        description:\n                          '<p>y-coordinate for the beginning control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x2',\n                        description: '<p>x-coordinate for the first point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y2',\n                        description: '<p>y-coordinate for the first point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x3',\n                        description: '<p>x-coordinate for the second point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y3',\n                        description: '<p>y-coordinate for the second point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x4',\n                        description: '<p>x-coordinate for the ending control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y4',\n                        description: '<p>y-coordinate for the ending control point</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 336,\n                    params: [\n                      {\n                        name: 'x1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z1',\n                        description:\n                          '<p>z-coordinate for the beginning control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z2',\n                        description: '<p>z-coordinate for the first point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z3',\n                        description: '<p>z-coordinate for the second point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x4',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y4',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z4',\n                        description: '<p>z-coordinate for the ending control point</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/core/shape/curves.js',\n                line: 362,\n                description:\n                  '<p>Sets the resolution at which curves display.</p>\\n<p>The default value is 20 while the minimum value is 3.</p>\\n<p>This function is only useful when using the WEBGL renderer\\nas the default canvas renderer does not use this\\ninformation.</p>\\n',\n                itemtype: 'method',\n                name: 'curveDetail',\n                params: [\n                  {\n                    name: 'resolution',\n                    description: '<p>resolution of the curves</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div modernizr='webgl'>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n\\n  curveDetail(5);\\n}\\nfunction draw() {\\n  background(200);\\n\\n  curve(250, 600, 0, -30, 40, 0, 30, 30, 0, -250, 600, 0);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'white arch shape with a low level of curve detail.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Curves'\n              },\n              {\n                file: 'src/core/shape/curves.js',\n                line: 404,\n                description:\n                  '<p>Modifies the quality of forms created with <a href=\"#/p5/curve\">curve()</a> and <a href=\"#/p5/curveVertex\">curveVertex()</a>.\\nThe parameter tightness determines how the curve fits to the vertex\\npoints. The value 0.0 is the default value for tightness (this value\\ndefines the curves to be Catmull-Rom splines) and the value 1.0 connects\\nall the points with straight lines. Values within the range -5.0 and 5.0\\nwill deform the curves but will leave them recognizable and as values\\nincrease in magnitude, they will continue to deform.</p>\\n',\n                itemtype: 'method',\n                name: 'curveTightness',\n                params: [\n                  {\n                    name: 'amount',\n                    description:\n                      '<p>amount of deformation from the original vertices</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// Move the mouse left and right to see the curve change\\n\\nfunction setup() {\\n  createCanvas(100, 100);\\n  noFill();\\n}\\n\\nfunction draw() {\\n  background(204);\\n  let t = map(mouseX, 0, width, -5, 5);\\n  curveTightness(t);\\n  beginShape();\\n  curveVertex(10, 26);\\n  curveVertex(10, 26);\\n  curveVertex(83, 24);\\n  curveVertex(83, 61);\\n  curveVertex(25, 65);\\n  curveVertex(25, 65);\\n  endShape();\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'Line shaped like right-facing arrow,points move with mouse-x and warp shape.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Curves'\n              },\n              {\n                file: 'src/core/shape/curves.js',\n                line: 451,\n                description:\n                  '<p>Evaluates the curve at position t for points a, b, c, d.\\nThe parameter t varies between 0 and 1, a and d are control points\\nof the curve, and b and c are the start and end points of the curve.\\nThis can be done once with the x coordinates and a second time\\nwith the y coordinates to get the location of a curve at t.</p>\\n',\n                itemtype: 'method',\n                name: 'curvePoint',\n                params: [\n                  {\n                    name: 'a',\n                    description: '<p>coordinate of first control point of the curve</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'b',\n                    description: '<p>coordinate of first point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'c',\n                    description: '<p>coordinate of second point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'd',\n                    description: '<p>coordinate of second control point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 't',\n                    description: '<p>value between 0 and 1</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'bezier value at position t',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nnoFill();\\ncurve(5, 26, 5, 26, 73, 24, 73, 61);\\ncurve(5, 26, 73, 24, 73, 61, 15, 65);\\nfill(255);\\nellipseMode(CENTER);\\nlet steps = 6;\\nfor (let i = 0; i <= steps; i++) {\\n  let t = i / steps;\\n  let x = curvePoint(5, 5, 73, 73, t);\\n  let y = curvePoint(26, 26, 24, 61, t);\\n  ellipse(x, y, 5, 5);\\n  x = curvePoint(5, 73, 73, 15, t);\\n  y = curvePoint(26, 24, 61, 65, t);\\n  ellipse(x, y, 5, 5);\\n}\\n</code>\\n</div>\\n\\nline hooking down to right-bottom with 13 5x5 white ellipse points'\n                ],\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Curves'\n              },\n              {\n                file: 'src/core/shape/curves.js',\n                line: 500,\n                description:\n                  '<p>Evaluates the tangent to the curve at position t for points a, b, c, d.\\nThe parameter t varies between 0 and 1, a and d are points on the curve,\\nand b and c are the control points.</p>\\n',\n                itemtype: 'method',\n                name: 'curveTangent',\n                params: [\n                  {\n                    name: 'a',\n                    description: '<p>coordinate of first point on the curve</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'b',\n                    description: '<p>coordinate of first control point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'c',\n                    description: '<p>coordinate of second control point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'd',\n                    description: '<p>coordinate of second point on the curve</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 't',\n                    description: '<p>value between 0 and 1</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the tangent at position t',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nnoFill();\\ncurve(5, 26, 73, 24, 73, 61, 15, 65);\\nlet steps = 6;\\nfor (let i = 0; i <= steps; i++) {\\n  let t = i / steps;\\n  let x = curvePoint(5, 73, 73, 15, t);\\n  let y = curvePoint(26, 24, 61, 65, t);\\n  //ellipse(x, y, 5, 5);\\n  let tx = curveTangent(5, 73, 73, 15, t);\\n  let ty = curveTangent(26, 24, 61, 65, t);\\n  let a = atan2(ty, tx);\\n  a -= PI / 2.0;\\n  line(x, y, cos(a) * 8 + x, sin(a) * 8 + y);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'right curving line mid-right of canvas with 7 short lines radiating from it.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Curves'\n              },\n              {\n                file: 'src/core/shape/vertex.js',\n                line: 20,\n                description:\n                  '<p>Use the <a href=\"#/p5/beginContour\">beginContour()</a> and <a href=\"#/p5/endContour\">endContour()</a> functions to create negative\\nshapes within shapes such as the center of the letter &#39;O&#39;. <a href=\"#/p5/beginContour\">beginContour()</a>\\nbegins recording vertices for the shape and <a href=\"#/p5/endContour\">endContour()</a> stops recording.\\nThe vertices that define a negative shape must &quot;wind&quot; in the opposite\\ndirection from the exterior shape. First draw vertices for the exterior\\nclockwise order, then for internal shapes, draw vertices\\nshape in counter-clockwise.\\n<br><br>\\nThese functions can only be used within a <a href=\"#/p5/beginShape\">beginShape()</a>/<a href=\"#/p5/endShape\">endShape()</a> pair and\\ntransformations such as <a href=\"#/p5/translate\">translate()</a>, <a href=\"#/p5/rotate\">rotate()</a>, and <a href=\"#/p5/scale\">scale()</a> do not work\\nwithin a <a href=\"#/p5/beginContour\">beginContour()</a>/<a href=\"#/p5/endContour\">endContour()</a> pair. It is also not possible to use\\nother shapes, such as <a href=\"#/p5/ellipse\">ellipse()</a> or <a href=\"#/p5/rect\">rect()</a> within.</p>\\n',\n                itemtype: 'method',\n                name: 'beginContour',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\ntranslate(50, 50);\\nstroke(255, 0, 0);\\nbeginShape();\\n// Exterior part of shape, clockwise winding\\nvertex(-40, -40);\\nvertex(40, -40);\\nvertex(40, 40);\\nvertex(-40, 40);\\n// Interior part of shape, counter-clockwise winding\\nbeginContour();\\nvertex(-20, -20);\\nvertex(-20, 20);\\nvertex(20, 20);\\nvertex(20, -20);\\nendContour();\\nendShape(CLOSE);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'white rect and smaller grey rect with red outlines in center of canvas.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Vertex'\n              },\n              {\n                file: 'src/core/shape/vertex.js',\n                line: 68,\n                description:\n                  '<p>Using the <a href=\"#/p5/beginShape\">beginShape()</a> and <a href=\"#/p5/endShape\">endShape()</a> functions allow creating more\\ncomplex forms. <a href=\"#/p5/beginShape\">beginShape()</a> begins recording vertices for a shape and\\n<a href=\"#/p5/endShape\">endShape()</a> stops recording. The value of the kind parameter tells it which\\ntypes of shapes to create from the provided vertices. With no mode\\nspecified, the shape can be any irregular polygon.\\n<br><br>\\nThe parameters available for <a href=\"#/p5/beginShape\">beginShape()</a> are POINTS, LINES, TRIANGLES,\\nTRIANGLE_FAN, TRIANGLE_STRIP, QUADS, QUAD_STRIP, and TESS (WebGL only). After calling the\\n<a href=\"#/p5/beginShape\">beginShape()</a> function, a series of <a href=\"#/p5/vertex\">vertex()</a> commands must follow. To stop\\ndrawing the shape, call <a href=\"#/p5/endShape\">endShape()</a>. Each shape will be outlined with the\\ncurrent stroke color and filled with the fill color.\\n<br><br>\\nTransformations such as <a href=\"#/p5/translate\">translate()</a>, <a href=\"#/p5/rotate\">rotate()</a>, and <a href=\"#/p5/scale\">scale()</a> do not work\\nwithin <a href=\"#/p5/beginShape\">beginShape()</a>. It is also not possible to use other shapes, such as\\n<a href=\"#/p5/ellipse\">ellipse()</a> or <a href=\"#/p5/rect\">rect()</a> within <a href=\"#/p5/beginShape\">beginShape()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'beginShape',\n                params: [\n                  {\n                    name: 'kind',\n                    description:\n                      '<p>either POINTS, LINES, TRIANGLES, TRIANGLE_FAN\\n                               TRIANGLE_STRIP, QUADS, QUAD_STRIP or TESS</p>\\n',\n                    type: 'Constant',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nbeginShape();\\nvertex(30, 20);\\nvertex(85, 20);\\nvertex(85, 75);\\nvertex(30, 75);\\nendShape(CLOSE);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nbeginShape(POINTS);\\nvertex(30, 20);\\nvertex(85, 20);\\nvertex(85, 75);\\nvertex(30, 75);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nbeginShape(LINES);\\nvertex(30, 20);\\nvertex(85, 20);\\nvertex(85, 75);\\nvertex(30, 75);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nnoFill();\\nbeginShape();\\nvertex(30, 20);\\nvertex(85, 20);\\nvertex(85, 75);\\nvertex(30, 75);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nnoFill();\\nbeginShape();\\nvertex(30, 20);\\nvertex(85, 20);\\nvertex(85, 75);\\nvertex(30, 75);\\nendShape(CLOSE);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nbeginShape(TRIANGLES);\\nvertex(30, 75);\\nvertex(40, 20);\\nvertex(50, 75);\\nvertex(60, 20);\\nvertex(70, 75);\\nvertex(80, 20);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nbeginShape(TRIANGLE_STRIP);\\nvertex(30, 75);\\nvertex(40, 20);\\nvertex(50, 75);\\nvertex(60, 20);\\nvertex(70, 75);\\nvertex(80, 20);\\nvertex(90, 75);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nbeginShape(TRIANGLE_FAN);\\nvertex(57.5, 50);\\nvertex(57.5, 15);\\nvertex(92, 50);\\nvertex(57.5, 85);\\nvertex(22, 50);\\nvertex(57.5, 15);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nbeginShape(QUADS);\\nvertex(30, 20);\\nvertex(30, 75);\\nvertex(50, 75);\\nvertex(50, 20);\\nvertex(65, 20);\\nvertex(65, 75);\\nvertex(85, 75);\\nvertex(85, 20);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nbeginShape(QUAD_STRIP);\\nvertex(30, 20);\\nvertex(30, 75);\\nvertex(50, 20);\\nvertex(50, 75);\\nvertex(65, 20);\\nvertex(65, 75);\\nvertex(85, 20);\\nvertex(85, 75);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nbeginShape();\\nvertex(20, 20);\\nvertex(40, 20);\\nvertex(40, 40);\\nvertex(60, 40);\\nvertex(60, 60);\\nvertex(20, 60);\\nendShape(CLOSE);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'white square-shape with black outline in middle-right of canvas.\\n4 black points in a square shape in middle-right of canvas.\\n2 horizontal black lines. In the top-right and bottom-right of canvas.\\n3 line shape with horizontal on top, vertical in middle and horizontal bottom.\\nsquare line shape in middle-right of canvas.\\n2 white triangle shapes mid-right canvas. left one pointing up and right down.\\n5 horizontal interlocking and alternating white triangles in mid-right canvas.\\n4 interlocking white triangles in 45 degree rotated square-shape.\\n2 white rectangle shapes in mid-right canvas. Both 20x55.\\n3 side-by-side white rectangles center rect is smaller in mid-right canvas.\\nThick white l-shape with black outline mid-top-left of canvas.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Vertex'\n              },\n              {\n                file: 'src/core/shape/vertex.js',\n                line: 268,\n                description:\n                  '<p>Specifies vertex coordinates for Bezier curves. Each call to\\nbezierVertex() defines the position of two control points and\\none anchor point of a Bezier curve, adding a new segment to a\\nline or shape. For WebGL mode bezierVertex() can be used in 2D\\nas well as 3D mode. 2D mode expects 6 parameters, while 3D mode\\nexpects 9 parameters (including z coordinates).\\n<br><br>\\nThe first time bezierVertex() is used within a <a href=\"#/p5/beginShape\">beginShape()</a>\\ncall, it must be prefaced with a call to <a href=\"#/p5/vertex\">vertex()</a> to set the first anchor\\npoint. This function must be used between <a href=\"#/p5/beginShape\">beginShape()</a> and <a href=\"#/p5/endShape\">endShape()</a>\\nand only when there is no MODE or POINTS parameter specified to\\n<a href=\"#/p5/beginShape\">beginShape()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'bezierVertex',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nnoFill();\\nbeginShape();\\nvertex(30, 20);\\nbezierVertex(80, 0, 80, 75, 30, 75);\\nendShape();\\n</code>\\n</div>',\n                  '\\n<div>\\n<code>\\nbeginShape();\\nvertex(30, 20);\\nbezierVertex(80, 0, 80, 75, 30, 75);\\nbezierVertex(50, 80, 60, 25, 30, 20);\\nendShape();\\n</code>\\n</div>',\n                  \"\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  setAttributes('antialias', true);\\n}\\nfunction draw() {\\n  orbitControl();\\n  background(50);\\n  strokeWeight(4);\\n  stroke(255);\\n  point(-25, 30);\\n  point(25, 30);\\n  point(25, -30);\\n  point(-25, -30);\\n\\n  strokeWeight(1);\\n  noFill();\\n\\n  beginShape();\\n  vertex(-25, 30);\\n  bezierVertex(25, 30, 25, -30, -25, -30);\\n  endShape();\\n\\n  beginShape();\\n  vertex(-25, 30, 20);\\n  bezierVertex(25, 30, 20, 25, -30, 20, -25, -30, 20);\\n  endShape();\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'crescent shape in middle of canvas with another crescent shape on positive z-axis.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Vertex',\n                overloads: [\n                  {\n                    line: 268,\n                    params: [\n                      {\n                        name: 'x2',\n                        description: '<p>x-coordinate for the first control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y2',\n                        description: '<p>y-coordinate for the first control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x3',\n                        description: '<p>x-coordinate for the second control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y3',\n                        description: '<p>y-coordinate for the second control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x4',\n                        description: '<p>x-coordinate for the anchor point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y4',\n                        description: '<p>y-coordinate for the anchor point</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 356,\n                    params: [\n                      {\n                        name: 'x2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z2',\n                        description:\n                          '<p>z-coordinate for the first control point (for WebGL mode)</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z3',\n                        description:\n                          '<p>z-coordinate for the second control point (for WebGL mode)</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x4',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y4',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z4',\n                        description:\n                          '<p>z-coordinate for the anchor point (for WebGL mode)</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/core/shape/vertex.js',\n                line: 396,\n                description:\n                  '<p>Specifies vertex coordinates for curves. This function may only\\nbe used between <a href=\"#/p5/beginShape\">beginShape()</a> and <a href=\"#/p5/endShape\">endShape()</a> and only when there\\nis no MODE parameter specified to <a href=\"#/p5/beginShape\">beginShape()</a>.\\nFor WebGL mode curveVertex() can be used in 2D as well as 3D mode.\\n2D mode expects 2 parameters, while 3D mode expects 3 parameters.\\n<br><br>\\nThe first and last points in a series of curveVertex() lines will be used to\\nguide the beginning and end of a the curve. A minimum of four\\npoints is required to draw a tiny curve between the second and\\nthird points. Adding a fifth point with curveVertex() will draw\\nthe curve between the second, third, and fourth points. The\\ncurveVertex() function is an implementation of Catmull-Rom\\nsplines.</p>\\n',\n                itemtype: 'method',\n                name: 'curveVertex',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nstrokeWeight(5);\\npoint(84, 91);\\npoint(68, 19);\\npoint(21, 17);\\npoint(32, 91);\\nstrokeWeight(1);\\n\\nnoFill();\\nbeginShape();\\ncurveVertex(84, 91);\\ncurveVertex(84, 91);\\ncurveVertex(68, 19);\\ncurveVertex(21, 17);\\ncurveVertex(32, 91);\\ncurveVertex(32, 91);\\nendShape();\\n</code>\\n</div>'\n                ],\n                alt:\n                  'Upside-down u-shape line, mid canvas. left point extends beyond canvas view.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Vertex',\n                overloads: [\n                  {\n                    line: 396,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>x-coordinate of the vertex</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>y-coordinate of the vertex</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 441,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>z-coordinate of the vertex (for WebGL mode)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/core/shape/vertex.js',\n                line: 506,\n                description:\n                  '<p>Use the <a href=\"#/p5/beginContour\">beginContour()</a> and <a href=\"#/p5/endContour\">endContour()</a> functions to create negative\\nshapes within shapes such as the center of the letter &#39;O&#39;. <a href=\"#/p5/beginContour\">beginContour()</a>\\nbegins recording vertices for the shape and <a href=\"#/p5/endContour\">endContour()</a> stops recording.\\nThe vertices that define a negative shape must &quot;wind&quot; in the opposite\\ndirection from the exterior shape. First draw vertices for the exterior\\nclockwise order, then for internal shapes, draw vertices\\nshape in counter-clockwise.\\n<br><br>\\nThese functions can only be used within a <a href=\"#/p5/beginShape\">beginShape()</a>/<a href=\"#/p5/endShape\">endShape()</a> pair and\\ntransformations such as <a href=\"#/p5/translate\">translate()</a>, <a href=\"#/p5/rotate\">rotate()</a>, and <a href=\"#/p5/scale\">scale()</a> do not work\\nwithin a <a href=\"#/p5/beginContour\">beginContour()</a>/<a href=\"#/p5/endContour\">endContour()</a> pair. It is also not possible to use\\nother shapes, such as <a href=\"#/p5/ellipse\">ellipse()</a> or <a href=\"#/p5/rect\">rect()</a> within.</p>\\n',\n                itemtype: 'method',\n                name: 'endContour',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\ntranslate(50, 50);\\nstroke(255, 0, 0);\\nbeginShape();\\n// Exterior part of shape, clockwise winding\\nvertex(-40, -40);\\nvertex(40, -40);\\nvertex(40, 40);\\nvertex(-40, 40);\\n// Interior part of shape, counter-clockwise winding\\nbeginContour();\\nvertex(-20, -20);\\nvertex(-20, 20);\\nvertex(20, 20);\\nvertex(20, -20);\\nendContour();\\nendShape(CLOSE);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'white rect and smaller grey rect with red outlines in center of canvas.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Vertex'\n              },\n              {\n                file: 'src/core/shape/vertex.js',\n                line: 566,\n                description:\n                  '<p>The <a href=\"#/p5/endShape\">endShape()</a> function is the companion to <a href=\"#/p5/beginShape\">beginShape()</a> and may only be\\ncalled after <a href=\"#/p5/beginShape\">beginShape()</a>. When <a href=\"#/p5/endshape\">endShape()</a> is called, all of image data\\ndefined since the previous call to <a href=\"#/p5/beginShape\">beginShape()</a> is written into the image\\nbuffer. The constant CLOSE as the value for the MODE parameter to close\\nthe shape (to connect the beginning and the end).</p>\\n',\n                itemtype: 'method',\n                name: 'endShape',\n                params: [\n                  {\n                    name: 'mode',\n                    description: '<p>use CLOSE to close the shape</p>\\n',\n                    type: 'Constant',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nnoFill();\\n\\nbeginShape();\\nvertex(20, 20);\\nvertex(45, 20);\\nvertex(45, 80);\\nendShape(CLOSE);\\n\\nbeginShape();\\nvertex(50, 20);\\nvertex(75, 20);\\nvertex(75, 80);\\nendShape();\\n</code>\\n</div>'\n                ],\n                alt:\n                  'Triangle line shape with smallest interior angle on bottom and upside-down L.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Vertex'\n              },\n              {\n                file: 'src/core/shape/vertex.js',\n                line: 652,\n                description:\n                  '<p>Specifies vertex coordinates for quadratic Bezier curves. Each call to\\nquadraticVertex() defines the position of one control points and one\\nanchor point of a Bezier curve, adding a new segment to a line or shape.\\nThe first time quadraticVertex() is used within a <a href=\"#/p5/beginShape\">beginShape()</a> call, it\\nmust be prefaced with a call to <a href=\"#/p5/vertex\">vertex()</a> to set the first anchor point.\\nFor WebGL mode quadraticVertex() can be used in 2D as well as 3D mode.\\n2D mode expects 4 parameters, while 3D mode expects 6 parameters\\n(including z coordinates).\\n<br><br>\\nThis function must be used between <a href=\"#/p5/beginShape\">beginShape()</a> and <a href=\"#/p5/endShape\">endShape()</a>\\nand only when there is no MODE or POINTS parameter specified to\\n<a href=\"#/p5/beginShape\">beginShape()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'quadraticVertex',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nstrokeWeight(5);\\npoint(20, 20);\\npoint(80, 20);\\npoint(50, 50);\\n\\nnoFill();\\nstrokeWeight(1);\\nbeginShape();\\nvertex(20, 20);\\nquadraticVertex(80, 20, 50, 50);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nstrokeWeight(5);\\npoint(20, 20);\\npoint(80, 20);\\npoint(50, 50);\\n\\npoint(20, 80);\\npoint(80, 80);\\npoint(80, 60);\\n\\nnoFill();\\nstrokeWeight(1);\\nbeginShape();\\nvertex(20, 20);\\nquadraticVertex(80, 20, 50, 50);\\nquadraticVertex(20, 80, 80, 80);\\nvertex(80, 60);\\nendShape();\\n</code>\\n</div>'\n                ],\n                alt:\n                  'arched-shaped black line with 4 pixel thick stroke weight.\\nbackwards s-shaped black line with 4 pixel thick stroke weight.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Vertex',\n                overloads: [\n                  {\n                    line: 652,\n                    params: [\n                      {\n                        name: 'cx',\n                        description: '<p>x-coordinate for the control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'cy',\n                        description: '<p>y-coordinate for the control point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x3',\n                        description: '<p>x-coordinate for the anchor point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y3',\n                        description: '<p>y-coordinate for the anchor point</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 718,\n                    params: [\n                      {\n                        name: 'cx',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'cy',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'cz',\n                        description:\n                          '<p>z-coordinate for the control point (for WebGL mode)</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z3',\n                        description:\n                          '<p>z-coordinate for the anchor point (for WebGL mode)</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/core/shape/vertex.js',\n                line: 811,\n                description:\n                  '<p>All shapes are constructed by connecting a series of vertices. <a href=\"#/p5/vertex\">vertex()</a>\\nis used to specify the vertex coordinates for points, lines, triangles,\\nquads, and polygons. It is used exclusively within the <a href=\"#/p5/beginShape\">beginShape()</a> and\\n<a href=\"#/p5/endShape\">endShape()</a> functions.</p>\\n',\n                itemtype: 'method',\n                name: 'vertex',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\nstrokeWeight(3);\\nbeginShape(POINTS);\\nvertex(30, 20);\\nvertex(85, 20);\\nvertex(85, 75);\\nvertex(30, 75);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\ncreateCanvas(100, 100, WEBGL);\\nbackground(240, 240, 240);\\nfill(237, 34, 93);\\nnoStroke();\\nbeginShape();\\nvertex(0, 35);\\nvertex(35, 0);\\nvertex(0, -35);\\nvertex(-35, 0);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\ncreateCanvas(100, 100, WEBGL);\\nbackground(240, 240, 240);\\nfill(237, 34, 93);\\nnoStroke();\\nbeginShape();\\nvertex(-10, 10);\\nvertex(0, 35);\\nvertex(10, 10);\\nvertex(35, 0);\\nvertex(10, -8);\\nvertex(0, -35);\\nvertex(-10, -8);\\nvertex(-35, 0);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nstrokeWeight(3);\\nstroke(237, 34, 93);\\nbeginShape(LINES);\\nvertex(10, 35);\\nvertex(90, 35);\\nvertex(10, 65);\\nvertex(90, 65);\\nvertex(35, 10);\\nvertex(35, 90);\\nvertex(65, 10);\\nvertex(65, 90);\\nendShape();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// Click to change the number of sides.\\n// In WebGL mode, custom shapes will only\\n// display hollow fill sections when\\n// all calls to vertex() use the same z-value.\\n\\nlet sides = 3;\\nlet angle, px, py;\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  setAttributes('antialias', true);\\n  fill(237, 34, 93);\\n  strokeWeight(3);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  rotateX(frameCount * 0.01);\\n  rotateZ(frameCount * 0.01);\\n  ngon(sides, 0, 0, 80);\\n}\\n\\nfunction mouseClicked() {\\n  if (sides > 6) {\\n    sides = 3;\\n  } else {\\n    sides++;\\n  }\\n}\\n\\nfunction ngon(n, x, y, d) {\\n  beginShape(TESS);\\n  for (let i = 0; i < n + 1; i++) {\\n    angle = TWO_PI / n * i;\\n    px = x + sin(angle) * d / 2;\\n    py = y - cos(angle) * d / 2;\\n    vertex(px, py, 0);\\n  }\\n  for (let i = 0; i < n + 1; i++) {\\n    angle = TWO_PI / n * i;\\n    px = x + sin(angle) * d / 4;\\n    py = y - cos(angle) * d / 4;\\n    vertex(px, py, 0);\\n  }\\n  endShape();\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '4 black points in a square shape in middle-right of canvas.\\n4 points making a diamond shape.\\n8 points making a star.\\n8 points making 4 lines.\\nA rotating 3D shape with a hollow section in the middle.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: 'Vertex',\n                overloads: [\n                  {\n                    line: 811,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>x-coordinate of the vertex</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>y-coordinate of the vertex</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 943,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>z-coordinate of the vertex</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'u',\n                        description: '<p>the vertex&#39;s texture u-coordinate</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'v',\n                        description: '<p>the vertex&#39;s texture v-coordinate</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 10,\n                description: '<p>The default, two-dimensional renderer.</p>\\n',\n                itemtype: 'property',\n                name: 'P2D',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 16,\n                description:\n                  '<p>One of the two render modes in p5.js: P2D (default renderer) and WEBGL\\nEnables 3D render by introducing the third dimension: Z</p>\\n',\n                itemtype: 'property',\n                name: 'WEBGL',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 25,\n                itemtype: 'property',\n                name: 'ARROW',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 30,\n                itemtype: 'property',\n                name: 'CROSS',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 35,\n                itemtype: 'property',\n                name: 'HAND',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 40,\n                itemtype: 'property',\n                name: 'MOVE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 45,\n                itemtype: 'property',\n                name: 'TEXT',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 50,\n                itemtype: 'property',\n                name: 'WAIT',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 58,\n                description:\n                  '<p>HALF_PI is a mathematical constant with the value\\n1.57079632679489661923. It is half the ratio of the\\ncircumference of a circle to its diameter. It is useful in\\ncombination with the trigonometric functions <a href=\"#/p5/sin\">sin()</a> and <a href=\"#/p5/cos\">cos()</a>.</p>\\n',\n                itemtype: 'property',\n                name: 'HALF_PI',\n                type: 'Number',\n                final: 1,\n                example: ['\\n<div><code>\\narc(50, 50, 80, 80, 0, HALF_PI);\\n</code></div>'],\n                alt: '80x80 white quarter-circle with curve toward bottom right of canvas.',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 77,\n                description:\n                  '<p>PI is a mathematical constant with the value\\n3.14159265358979323846. It is the ratio of the circumference\\nof a circle to its diameter. It is useful in combination with\\nthe trigonometric functions <a href=\"#/p5/sin\">sin()</a> and <a href=\"#/p5/cos\">cos()</a>.</p>\\n',\n                itemtype: 'property',\n                name: 'PI',\n                type: 'Number',\n                final: 1,\n                example: ['\\n<div><code>\\narc(50, 50, 80, 80, 0, PI);\\n</code></div>'],\n                alt: 'white half-circle with curve toward bottom of canvas.',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 96,\n                description:\n                  '<p>QUARTER_PI is a mathematical constant with the value 0.7853982.\\nIt is one quarter the ratio of the circumference of a circle to\\nits diameter. It is useful in combination with the trigonometric\\nfunctions <a href=\"#/p5/sin\">sin()</a> and <a href=\"#/p5/cos\">cos()</a>.</p>\\n',\n                itemtype: 'property',\n                name: 'QUARTER_PI',\n                type: 'Number',\n                final: 1,\n                example: [\n                  '\\n<div><code>\\narc(50, 50, 80, 80, 0, QUARTER_PI);\\n</code></div>'\n                ],\n                alt:\n                  'white eighth-circle rotated about 40 degrees with curve bottom right canvas.',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 115,\n                description:\n                  '<p>TAU is an alias for TWO_PI, a mathematical constant with the\\nvalue 6.28318530717958647693. It is twice the ratio of the\\ncircumference of a circle to its diameter. It is useful in\\ncombination with the trigonometric functions <a href=\"#/p5/sin\">sin()</a> and <a href=\"#/p5/cos\">cos()</a>.</p>\\n',\n                itemtype: 'property',\n                name: 'TAU',\n                type: 'Number',\n                final: 1,\n                example: ['\\n<div><code>\\narc(50, 50, 80, 80, 0, TAU);\\n</code></div>'],\n                alt: '80x80 white ellipse shape in center of canvas.',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 134,\n                description:\n                  '<p>TWO_PI is a mathematical constant with the value\\n6.28318530717958647693. It is twice the ratio of the\\ncircumference of a circle to its diameter. It is useful in\\ncombination with the trigonometric functions <a href=\"#/p5/sin\">sin()</a> and <a href=\"#/p5/cos\">cos()</a>.</p>\\n',\n                itemtype: 'property',\n                name: 'TWO_PI',\n                type: 'Number',\n                final: 1,\n                example: ['\\n<div><code>\\narc(50, 50, 80, 80, 0, TWO_PI);\\n</code></div>'],\n                alt: '80x80 white ellipse shape in center of canvas.',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 153,\n                description:\n                  '<p>Constant to be used with <a href=\"#/p5/angleMode\">angleMode()</a> function, to set the mode which\\np5.js interprates and calculates angles (either DEGREES or RADIANS).</p>\\n',\n                itemtype: 'property',\n                name: 'DEGREES',\n                type: 'String',\n                final: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\nfunction setup() {\\n  angleMode(DEGREES);\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 167,\n                description:\n                  '<p>Constant to be used with <a href=\"#/p5/angleMode\">angleMode()</a> function, to set the mode which\\np5.js interprates and calculates angles (either RADIANS or DEGREES).</p>\\n',\n                itemtype: 'property',\n                name: 'RADIANS',\n                type: 'String',\n                final: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\nfunction setup() {\\n  angleMode(RADIANS);\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 185,\n                itemtype: 'property',\n                name: 'CORNER',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 190,\n                itemtype: 'property',\n                name: 'CORNERS',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 195,\n                itemtype: 'property',\n                name: 'RADIUS',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 200,\n                itemtype: 'property',\n                name: 'RIGHT',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 205,\n                itemtype: 'property',\n                name: 'LEFT',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 210,\n                itemtype: 'property',\n                name: 'CENTER',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 215,\n                itemtype: 'property',\n                name: 'TOP',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 220,\n                itemtype: 'property',\n                name: 'BOTTOM',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 225,\n                itemtype: 'property',\n                name: 'BASELINE',\n                type: 'String',\n                final: 1,\n                default: 'alphabetic',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 231,\n                itemtype: 'property',\n                name: 'POINTS',\n                type: 'Number',\n                final: 1,\n                default: '0x0000',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 237,\n                itemtype: 'property',\n                name: 'LINES',\n                type: 'Number',\n                final: 1,\n                default: '0x0001',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 243,\n                itemtype: 'property',\n                name: 'LINE_STRIP',\n                type: 'Number',\n                final: 1,\n                default: '0x0003',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 249,\n                itemtype: 'property',\n                name: 'LINE_LOOP',\n                type: 'Number',\n                final: 1,\n                default: '0x0002',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 255,\n                itemtype: 'property',\n                name: 'TRIANGLES',\n                type: 'Number',\n                final: 1,\n                default: '0x0004',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 261,\n                itemtype: 'property',\n                name: 'TRIANGLE_FAN',\n                type: 'Number',\n                final: 1,\n                default: '0x0006',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 267,\n                itemtype: 'property',\n                name: 'TRIANGLE_STRIP',\n                type: 'Number',\n                final: 1,\n                default: '0x0005',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 273,\n                itemtype: 'property',\n                name: 'QUADS',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 278,\n                itemtype: 'property',\n                name: 'QUAD_STRIP',\n                type: 'String',\n                final: 1,\n                default: 'quad_strip',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 284,\n                itemtype: 'property',\n                name: 'TESS',\n                type: 'String',\n                final: 1,\n                default: 'tess',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 290,\n                itemtype: 'property',\n                name: 'CLOSE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 295,\n                itemtype: 'property',\n                name: 'OPEN',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 300,\n                itemtype: 'property',\n                name: 'CHORD',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 305,\n                itemtype: 'property',\n                name: 'PIE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 310,\n                itemtype: 'property',\n                name: 'PROJECT',\n                type: 'String',\n                final: 1,\n                default: 'square',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 316,\n                itemtype: 'property',\n                name: 'SQUARE',\n                type: 'String',\n                final: 1,\n                default: 'butt',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 322,\n                itemtype: 'property',\n                name: 'ROUND',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 327,\n                itemtype: 'property',\n                name: 'BEVEL',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 332,\n                itemtype: 'property',\n                name: 'MITER',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 339,\n                itemtype: 'property',\n                name: 'RGB',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 344,\n                itemtype: 'property',\n                name: 'HSB',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 349,\n                itemtype: 'property',\n                name: 'HSL',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 356,\n                description:\n                  '<p>AUTO allows us to automatically set the width or height of an element (but not both),\\nbased on the current height and width of the element. Only one parameter can\\nbe passed to the <a href=\"/#/p5.Element/size\">size</a> function as AUTO, at a time.</p>\\n',\n                itemtype: 'property',\n                name: 'AUTO',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 366,\n                itemtype: 'property',\n                name: 'ALT',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 372,\n                itemtype: 'property',\n                name: 'BACKSPACE',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 377,\n                itemtype: 'property',\n                name: 'CONTROL',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 382,\n                itemtype: 'property',\n                name: 'DELETE',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 387,\n                itemtype: 'property',\n                name: 'DOWN_ARROW',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 392,\n                itemtype: 'property',\n                name: 'ENTER',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 397,\n                itemtype: 'property',\n                name: 'ESCAPE',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 402,\n                itemtype: 'property',\n                name: 'LEFT_ARROW',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 407,\n                itemtype: 'property',\n                name: 'OPTION',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 412,\n                itemtype: 'property',\n                name: 'RETURN',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 417,\n                itemtype: 'property',\n                name: 'RIGHT_ARROW',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 422,\n                itemtype: 'property',\n                name: 'SHIFT',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 427,\n                itemtype: 'property',\n                name: 'TAB',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 432,\n                itemtype: 'property',\n                name: 'UP_ARROW',\n                type: 'Number',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 439,\n                itemtype: 'property',\n                name: 'BLEND',\n                type: 'String',\n                final: 1,\n                default: 'source-over',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 445,\n                itemtype: 'property',\n                name: 'REMOVE',\n                type: 'String',\n                final: 1,\n                default: 'destination-out',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 451,\n                itemtype: 'property',\n                name: 'ADD',\n                type: 'String',\n                final: 1,\n                default: 'lighter',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 459,\n                itemtype: 'property',\n                name: 'DARKEST',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 464,\n                itemtype: 'property',\n                name: 'LIGHTEST',\n                type: 'String',\n                final: 1,\n                default: 'lighten',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 470,\n                itemtype: 'property',\n                name: 'DIFFERENCE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 475,\n                itemtype: 'property',\n                name: 'SUBTRACT',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 480,\n                itemtype: 'property',\n                name: 'EXCLUSION',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 485,\n                itemtype: 'property',\n                name: 'MULTIPLY',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 490,\n                itemtype: 'property',\n                name: 'SCREEN',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 495,\n                itemtype: 'property',\n                name: 'REPLACE',\n                type: 'String',\n                final: 1,\n                default: 'copy',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 501,\n                itemtype: 'property',\n                name: 'OVERLAY',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 506,\n                itemtype: 'property',\n                name: 'HARD_LIGHT',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 511,\n                itemtype: 'property',\n                name: 'SOFT_LIGHT',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 516,\n                itemtype: 'property',\n                name: 'DODGE',\n                type: 'String',\n                final: 1,\n                default: 'color-dodge',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 522,\n                itemtype: 'property',\n                name: 'BURN',\n                type: 'String',\n                final: 1,\n                default: 'color-burn',\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 530,\n                itemtype: 'property',\n                name: 'THRESHOLD',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 535,\n                itemtype: 'property',\n                name: 'GRAY',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 540,\n                itemtype: 'property',\n                name: 'OPAQUE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 545,\n                itemtype: 'property',\n                name: 'INVERT',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 550,\n                itemtype: 'property',\n                name: 'POSTERIZE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 555,\n                itemtype: 'property',\n                name: 'DILATE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 560,\n                itemtype: 'property',\n                name: 'ERODE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 565,\n                itemtype: 'property',\n                name: 'BLUR',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 572,\n                itemtype: 'property',\n                name: 'NORMAL',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 577,\n                itemtype: 'property',\n                name: 'ITALIC',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 582,\n                itemtype: 'property',\n                name: 'BOLD',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 587,\n                itemtype: 'property',\n                name: 'BOLDITALIC',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 599,\n                itemtype: 'property',\n                name: 'LINEAR',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 604,\n                itemtype: 'property',\n                name: 'QUADRATIC',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 609,\n                itemtype: 'property',\n                name: 'BEZIER',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 614,\n                itemtype: 'property',\n                name: 'CURVE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 621,\n                itemtype: 'property',\n                name: 'STROKE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 626,\n                itemtype: 'property',\n                name: 'FILL',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 631,\n                itemtype: 'property',\n                name: 'TEXTURE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 636,\n                itemtype: 'property',\n                name: 'IMMEDIATE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 644,\n                itemtype: 'property',\n                name: 'IMAGE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 652,\n                itemtype: 'property',\n                name: 'NEAREST',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 657,\n                itemtype: 'property',\n                name: 'REPEAT',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 662,\n                itemtype: 'property',\n                name: 'CLAMP',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 667,\n                itemtype: 'property',\n                name: 'MIRROR',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 674,\n                itemtype: 'property',\n                name: 'LANDSCAPE',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 679,\n                itemtype: 'property',\n                name: 'PORTRAIT',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 689,\n                itemtype: 'property',\n                name: 'GRID',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/constants.js',\n                line: 695,\n                itemtype: 'property',\n                name: 'AXES',\n                type: 'String',\n                final: 1,\n                class: 'p5',\n                module: 'Constants',\n                submodule: 'Constants'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 20,\n                description:\n                  '<p>The <a href=\"#/p5/print\">print()</a> function writes to the console area of your browser.\\nThis function is often helpful for looking at the data a program is\\nproducing. This function creates a new line of text for each call to\\nthe function. Individual elements can be\\nseparated with quotes (&quot;&quot;) and joined with the addition operator (+).</p>\\n<p>Note that calling print() without any arguments invokes the window.print()\\nfunction which opens the browser&#39;s print dialog. To print a blank line\\nto console you can write print(&#39;\\\\n&#39;).</p>\\n',\n                itemtype: 'method',\n                name: 'print',\n                params: [\n                  {\n                    name: 'contents',\n                    description:\n                      '<p>any combination of Number, String, Object, Boolean,\\n                      Array to print</p>\\n',\n                    type: 'Any'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code class='norender'>\\nlet x = 10;\\nprint('The value of x is ' + x);\\n// prints \\\"The value of x is 10\\\"\\n</code></div>\"\n                ],\n                alt: 'default grey canvas',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 51,\n                description:\n                  '<p>The system variable <a href=\"#/p5/frameCount\">frameCount</a> contains the number of frames that have\\nbeen displayed since the program started. Inside <a href=\"#/p5/setup\">setup()</a> the value is 0,\\nafter the first iteration of draw it is 1, etc.</p>\\n',\n                itemtype: 'property',\n                name: 'frameCount',\n                type: 'Integer',\n                readonly: '',\n                example: [\n                  '\\n  <div><code>\\nfunction setup() {\\n  frameRate(30);\\n  textSize(30);\\n  textAlign(CENTER);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  text(frameCount, width / 2, height / 2);\\n}\\n</code></div>'\n                ],\n                alt: 'numbers rapidly counting upward with frame count set to 30.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 78,\n                description:\n                  '<p>The system variable <a href=\"#/p5/deltaTime\">deltaTime</a> contains the time\\ndifference between the beginning of the previous frame and the beginning\\nof the current frame in milliseconds.\\n<br><br>\\nThis variable is useful for creating time sensitive animation or physics\\ncalculation that should stay constant regardless of frame rate.</p>\\n',\n                itemtype: 'property',\n                name: 'deltaTime',\n                type: 'Integer',\n                readonly: '',\n                example: [\n                  '\\n<div><code>\\nlet rectX = 0;\\nlet fr = 30; //starting FPS\\nlet clr;\\n\\nfunction setup() {\\n  background(200);\\n  frameRate(fr); // Attempt to refresh at starting FPS\\n  clr = color(255, 0, 0);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  rectX = rectX + 1 * (deltaTime / 50); // Move Rectangle in relation to deltaTime\\n\\n  if (rectX >= width) {\\n    // If you go off screen.\\n    if (fr === 30) {\\n      clr = color(0, 0, 255);\\n      fr = 10;\\n      frameRate(fr); // make frameRate 10 FPS\\n    } else {\\n      clr = color(255, 0, 0);\\n      fr = 30;\\n      frameRate(fr); // make frameRate 30 FPS\\n    }\\n    rectX = 0;\\n  }\\n  fill(clr);\\n  rect(rectX, 40, 20, 20);\\n}\\n</code></div>'\n                ],\n                alt:\n                  'red rect moves left to right, followed by blue rect moving at the same speed\\nwith a lower frame rate. Loops.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 129,\n                description:\n                  '<p>Confirms if the window a p5.js program is in is &quot;focused,&quot; meaning that\\nthe sketch will accept mouse or keyboard input. This variable is\\n&quot;true&quot; if the window is focused and &quot;false&quot; if not.</p>\\n',\n                itemtype: 'property',\n                name: 'focused',\n                type: 'Boolean',\n                readonly: '',\n                example: [\n                  '\\n<div><code>\\n// To demonstrate, put two windows side by side.\\n// Click on the window that the p5 sketch isn\\'t in!\\nfunction draw() {\\n  background(200);\\n  noStroke();\\n  fill(0, 200, 0);\\n  ellipse(25, 25, 50, 50);\\n\\n  if (!focused) {\\n   // or \"if (focused === false)\"\\n    stroke(200, 0, 0);\\n    line(0, 0, 100, 100);\\n    line(100, 0, 0, 100);\\n  }\\n}\\n</code></div>'\n                ],\n                alt:\n                  'green 50x50 ellipse at top left. Red X covers canvas when page focus changes',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 161,\n                description:\n                  '<p>Sets the cursor to a predefined symbol or an image, or makes it visible\\nif already hidden. If you are trying to set an image as the cursor, the\\nrecommended size is 16x16 or 32x32 pixels. The values for parameters x and y\\nmust be less than the dimensions of the image.</p>\\n',\n                itemtype: 'method',\n                name: 'cursor',\n                params: [\n                  {\n                    name: 'type',\n                    description:\n                      '<p>Built-In: either ARROW, CROSS, HAND, MOVE, TEXT and WAIT\\n                              Native CSS properties: &#39;grab&#39;, &#39;progress&#39;, &#39;cell&#39; etc.\\n                              External: path for cursor&#39;s images\\n                              (Allowed File extensions: .cur, .gif, .jpg, .jpeg, .png)\\n                              For more information on Native CSS cursors and url visit:\\n                              <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/cursor\">https://developer.mozilla.org/en-US/docs/Web/CSS/cursor</a></p>\\n',\n                    type: 'String|Constant'\n                  },\n                  {\n                    name: 'x',\n                    description:\n                      '<p>the horizontal active spot of the cursor (must be less than 32)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'y',\n                    description:\n                      '<p>the vertical active spot of the cursor (must be less than 32)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\n// Move the mouse across the quadrants\\n// to see the cursor change\\nfunction draw() {\\n  line(width / 2, 0, width / 2, height);\\n  line(0, height / 2, width, height / 2);\\n  if (mouseX < 50 && mouseY < 50) {\\n    cursor(CROSS);\\n  } else if (mouseX > 50 && mouseY < 50) {\\n    cursor('progress');\\n  } else if (mouseX > 50 && mouseY > 50) {\\n    cursor('https://s3.amazonaws.com/mupublicdata/cursor.cur');\\n  } else {\\n    cursor('grab');\\n  }\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'canvas is divided into four quadrants. cursor on first is a cross, second is a progress,\\nthird is a custom cursor using path to the cursor and fourth is a grab.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 230,\n                description:\n                  '<p>Specifies the number of frames to be displayed every second. For example,\\nthe function call frameRate(30) will attempt to refresh 30 times a second.\\nIf the processor is not fast enough to maintain the specified rate, the\\nframe rate will not be achieved. Setting the frame rate within <a href=\"#/p5/setup\">setup()</a> is\\nrecommended. The default frame rate is based on the frame rate of the display\\n(here also called &quot;refresh rate&quot;), which is set to 60 frames per second on most\\ncomputers. A frame rate of 24 frames per second (usual for movies) or above\\nwill be enough for smooth animations\\nThis is the same as setFrameRate(val).\\n<br><br>\\nCalling <a href=\"#/p5/frameRate\">frameRate()</a> with no arguments returns the current framerate. The\\ndraw function must run at least once before it will return a value. This\\nis the same as <a href=\"#/p5/getFrameRate\">getFrameRate()</a>.\\n<br><br>\\nCalling <a href=\"#/p5/frameRate\">frameRate()</a> with arguments that are not of the type numbers\\nor are non positive also returns current framerate.</p>\\n',\n                itemtype: 'method',\n                name: 'frameRate',\n                chainable: 1,\n                example: [\n                  '\\n\\n<div><code>\\nlet rectX = 0;\\nlet fr = 30; //starting FPS\\nlet clr;\\n\\nfunction setup() {\\n  background(200);\\n  frameRate(fr); // Attempt to refresh at starting FPS\\n  clr = color(255, 0, 0);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  rectX = rectX += 1; // Move Rectangle\\n\\n  if (rectX >= width) {\\n   // If you go off screen.\\n    if (fr === 30) {\\n      clr = color(0, 0, 255);\\n      fr = 10;\\n      frameRate(fr); // make frameRate 10 FPS\\n    } else {\\n      clr = color(255, 0, 0);\\n      fr = 30;\\n      frameRate(fr); // make frameRate 30 FPS\\n    }\\n    rectX = 0;\\n  }\\n  fill(clr);\\n  rect(rectX, 40, 20, 20);\\n}\\n</code></div>'\n                ],\n                alt:\n                  'blue rect moves left to right, followed by red rect moving faster. Loops.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment',\n                overloads: [\n                  {\n                    line: 230,\n                    params: [\n                      {\n                        name: 'fps',\n                        description:\n                          '<p>number of frames to be displayed every second</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 291,\n                    params: [],\n                    return: {\n                      description: 'current frameRate',\n                      type: 'Number'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 333,\n                description: '<p>Hides the cursor from view.</p>\\n',\n                itemtype: 'method',\n                name: 'noCursor',\n                example: [\n                  '\\n<div><code>\\nfunction setup() {\\n  noCursor();\\n}\\n\\nfunction draw() {\\n  background(200);\\n  ellipse(mouseX, mouseY, 10, 10);\\n}\\n</code></div>'\n                ],\n                alt: 'cursor becomes 10x 10 white ellipse the moves with mouse x and y.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 358,\n                description:\n                  '<p>System variable that stores the width of the screen display according to The\\ndefault <a href=\"#/p5/pixelDensity\">pixelDensity</a>. This is used to run a\\nfull-screen program on any display size. To return actual screen size,\\nmultiply this by pixelDensity.</p>\\n',\n                itemtype: 'property',\n                name: 'displayWidth',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  '\\n<div class=\"norender\"><code>\\ncreateCanvas(displayWidth, displayHeight);\\n</code></div>'\n                ],\n                alt: 'cursor becomes 10x 10 white ellipse the moves with mouse x and y.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 377,\n                description:\n                  '<p>System variable that stores the height of the screen display according to The\\ndefault <a href=\"#/p5/pixelDensity\">pixelDensity</a>. This is used to run a\\nfull-screen program on any display size. To return actual screen size,\\nmultiply this by pixelDensity.</p>\\n',\n                itemtype: 'property',\n                name: 'displayHeight',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  '\\n<div class=\"norender\"><code>\\ncreateCanvas(displayWidth, displayHeight);\\n</code></div>'\n                ],\n                alt: 'no display.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 396,\n                description:\n                  '<p>System variable that stores the width of the inner window, it maps to\\nwindow.innerWidth.</p>\\n',\n                itemtype: 'property',\n                name: 'windowWidth',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  '\\n<div class=\"norender\"><code>\\ncreateCanvas(windowWidth, windowHeight);\\n</code></div>'\n                ],\n                alt: 'no display.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 412,\n                description:\n                  '<p>System variable that stores the height of the inner window, it maps to\\nwindow.innerHeight.</p>\\n',\n                itemtype: 'property',\n                name: 'windowHeight',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  '\\n<div class=\"norender\"><code>\\ncreateCanvas(windowWidth, windowHeight);\\n</code></div>'\n                ],\n                alt: 'no display.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 428,\n                description:\n                  '<p>The <a href=\"#/p5/windowResized\">windowResized()</a> function is called once every time the browser window\\nis resized. This is a good place to resize the canvas or do any other\\nadjustments to accommodate the new window size.</p>\\n',\n                itemtype: 'method',\n                name: 'windowResized',\n                example: [\n                  '\\n<div class=\"norender\"><code>\\nfunction setup() {\\n  createCanvas(windowWidth, windowHeight);\\n}\\n\\nfunction draw() {\\n  background(0, 100, 200);\\n}\\n\\nfunction windowResized() {\\n  resizeCanvas(windowWidth, windowHeight);\\n}\\n</code></div>'\n                ],\n                alt: 'no display.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 482,\n                description:\n                  '<p>System variable that stores the width of the drawing canvas. This value\\nis set by the first parameter of the <a href=\"#/p5/createCanvas\">createCanvas()</a> function.\\nFor example, the function call createCanvas(320, 240) sets the width\\nvariable to the value 320. The value of width defaults to 100 if\\n<a href=\"#/p5/createCanvas\">createCanvas()</a> is not used in a program.</p>\\n',\n                itemtype: 'property',\n                name: 'width',\n                type: 'Number',\n                readonly: '',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 494,\n                description:\n                  '<p>System variable that stores the height of the drawing canvas. This value\\nis set by the second parameter of the <a href=\"#/p5/createCanvas\">createCanvas()</a> function. For\\nexample, the function call createCanvas(320, 240) sets the height\\nvariable to the value 240. The value of height defaults to 100 if\\n<a href=\"#/p5/createCanvas\">createCanvas()</a> is not used in a program.</p>\\n',\n                itemtype: 'property',\n                name: 'height',\n                type: 'Number',\n                readonly: '',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 506,\n                description:\n                  '<p>If argument is given, sets the sketch to fullscreen or not based on the\\nvalue of the argument. If no argument is given, returns the current\\nfullscreen state. Note that due to browser restrictions this can only\\nbe called on user input, for example, on mouse press like the example\\nbelow.</p>\\n',\n                itemtype: 'method',\n                name: 'fullscreen',\n                params: [\n                  {\n                    name: 'val',\n                    description:\n                      '<p>whether the sketch should be in fullscreen mode\\nor not</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'current fullscreen state',\n                  type: 'Boolean'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\n// Clicking in the box toggles fullscreen on and off.\\nfunction setup() {\\n  background(200);\\n}\\nfunction mousePressed() {\\n  if (mouseX > 0 && mouseX < 100 && mouseY > 0 && mouseY < 100) {\\n    let fs = fullscreen();\\n    fullscreen(!fs);\\n  }\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'no display.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 557,\n                description:\n                  '<p>Sets the pixel scaling for high pixel density displays. By default\\npixel density is set to match display density, call pixelDensity(1)\\nto turn this off. Calling <a href=\"#/p5/pixelDensity\">pixelDensity()</a> with no arguments returns\\nthe current pixel density of the sketch.</p>\\n',\n                itemtype: 'method',\n                name: 'pixelDensity',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  pixelDensity(1);\\n  createCanvas(100, 100);\\n  background(200);\\n  ellipse(width / 2, height / 2, 50, 50);\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\nfunction setup() {\\n  pixelDensity(3.0);\\n  createCanvas(100, 100);\\n  background(200);\\n  ellipse(width / 2, height / 2, 50, 50);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'fuzzy 50x50 white ellipse with black outline in center of canvas.\\nsharp 50x50 white ellipse with black outline in center of canvas.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment',\n                overloads: [\n                  {\n                    line: 557,\n                    params: [\n                      {\n                        name: 'val',\n                        description: '<p>whether or how much the sketch should scale</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 592,\n                    params: [],\n                    return: {\n                      description: 'current pixel density of the sketch',\n                      type: 'Number'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 611,\n                description:\n                  '<p>Returns the pixel density of the current display the sketch is running on.</p>\\n',\n                itemtype: 'method',\n                name: 'displayDensity',\n                return: {\n                  description: 'current pixel density of the display',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  let density = displayDensity();\\n  pixelDensity(density);\\n  createCanvas(100, 100);\\n  background(200);\\n  ellipse(width / 2, height / 2, 50, 50);\\n}\\n</code>\\n</div>'\n                ],\n                alt: '50x50 white ellipse with black outline in center of canvas.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 666,\n                description: '<p>Gets the current URL.</p>\\n',\n                itemtype: 'method',\n                name: 'getURL',\n                return: {\n                  description: 'url',\n                  type: 'String'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nlet url;\\nlet x = 100;\\n\\nfunction setup() {\\n  fill(0);\\n  noStroke();\\n  url = getURL();\\n}\\n\\nfunction draw() {\\n  background(200);\\n  text(url, x, height / 2);\\n  x--;\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'current url (http://p5js.org/reference/#/p5/getURL) moves right to left.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 695,\n                description: '<p>Gets the current URL path as an array.</p>\\n',\n                itemtype: 'method',\n                name: 'getURLPath',\n                return: {\n                  description: 'path components',\n                  type: 'String[]'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nfunction setup() {\\n  let urlPath = getURLPath();\\n  for (let i = 0; i < urlPath.length; i++) {\\n    text(urlPath[i], 10, i * 20 + 20);\\n  }\\n}\\n</code></div>\"\n                ],\n                alt: 'no display',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/environment.js',\n                line: 715,\n                description: '<p>Gets the current URL params as an Object.</p>\\n',\n                itemtype: 'method',\n                name: 'getURLParams',\n                return: {\n                  description: 'URL params',\n                  type: 'Object'\n                },\n                example: [\n                  \"\\n<div class='norender notest'>\\n<code>\\n// Example: http://p5js.org?year=2014&month=May&day=15\\n\\nfunction setup() {\\n  let params = getURLParams();\\n  text(params.day, 10, 20);\\n  text(params.month, 10, 40);\\n  text(params.year, 10, 60);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5',\n                module: 'Environment',\n                submodule: 'Environment'\n              },\n              {\n                file: 'src/core/error_helpers.js',\n                line: 1,\n                requires: [\n                  'core\\n\\nThis is the main file for the Friendly Error System (FES). Here is a\\nbrief outline of the functions called in this system.\\n\\nThe FES may be invoked by a call to either (1) _validateParameters',\n                  '(2) _friendlyFileLoadError',\n                  '(3) _friendlyError',\n                  'or (4) helpForMisusedAtTopLevelCode.\\n\\nhelpForMisusedAtTopLevelCode is called by this file on window load to check for use\\nof p5.js functions outside of setup() or draw()\\nItems 1-3 above are called by functions in the p5 library located in other files.\\n\\n_friendlyFileLoadError is called by the loadX() methods.\\n_friendlyError can be called by any function to offer a helpful error message.\\n\\n_validateParameters is called by functions in the p5.js API to help users ensure\\nther are calling p5 function with the right parameter types. The property\\ndisableFriendlyErrors = false can be set from a p5.js sketch to turn off parameter\\nchecking. The call sequence from _validateParameters looks something like this:\\n\\n_validateParameters\\n  lookupParamDoc\\n  scoreOverload\\n    testParamTypes\\n    testParamType\\n  getOverloadErrors\\n  _friendlyParamError\\n    ValidationError\\n    report\\n      friendlyWelcome\\n\\nThe call sequences to _friendlyFileLoadError and _friendlyError are like this:\\n_friendlyFileLoadError\\n  report\\n\\n_friendlyError\\n  report\\n\\nreport() is the main function that prints directly to console with the output\\nof the error helper message. Note: friendlyWelcome() also prints to console directly.'\n                ],\n                class: 'p5',\n                module: 'Environment'\n              },\n              {\n                file: 'src/core/error_helpers.js',\n                line: 630,\n                description:\n                  '<p>Validates parameters\\nparam  {String}               func    the name of the function\\nparam  {Array}                args    user input arguments</p>\\n<p>example:\\n const a;\\n ellipse(10,10,a,5);\\nconsole ouput:\\n &quot;It looks like ellipse received an empty variable in spot #2.&quot;</p>\\n<p>example:\\n ellipse(10,&quot;foo&quot;,5,5);\\nconsole output:\\n &quot;ellipse was expecting a number for parameter #1,\\n          received &quot;foo&quot; instead.&quot;</p>\\n',\n                class: 'p5',\n                module: 'Environment'\n              },\n              {\n                file: 'src/core/error_helpers.js',\n                line: 691,\n                description:\n                  '<p>Prints out all the colors in the color pallete with white text.\\nFor color blindness testing.</p>\\n',\n                class: 'p5',\n                module: 'Environment'\n              },\n              {\n                file: 'src/core/helpers.js',\n                line: 1,\n                requires: ['constants'],\n                class: 'p5',\n                module: 'Environment'\n              },\n              {\n                file: 'src/core/internationalization.js',\n                line: 22,\n                description:\n                  '<p>Set up our translation function, with loaded languages</p>\\n',\n                class: 'p5',\n                module: 'Environment'\n              },\n              {\n                file: 'src/core/legacy.js',\n                line: 1,\n                requires: [\n                  'core\\nThese are functions that are part of the Processing API but are not part of\\nthe p5.js API. In some cases they have a new name',\n                  'in others',\n                  'they are\\nremoved completely. Not all unsupported Processing functions are listed here\\nbut we try to include ones that a user coming from Processing might likely\\ncall.'\n                ],\n                class: 'p5',\n                module: 'Environment'\n              },\n              {\n                file: 'src/core/main.js',\n                line: 41,\n                description:\n                  '<p>Called directly before <a href=\"#/p5/setup\">setup()</a>, the <a href=\"#/p5/preload\">preload()</a> function is used to handle\\nasynchronous loading of external files in a blocking way. If a preload\\nfunction is defined, <a href=\"#/p5/setup\">setup()</a> will wait until any load calls within have\\nfinished. Nothing besides load calls (<a href=\"#/p5/loadImage\">loadImage</a>, <a href=\"#/p5/loadJSON\">loadJSON</a>, <a href=\"#/p5/loadFont\">loadFont</a>,\\n<a href=\"#/p5/loadStrings\">loadStrings</a>, etc.) should be inside the preload function. If asynchronous\\nloading is preferred, the load methods can instead be called in <a href=\"#/p5/setup\">setup()</a>\\nor anywhere else with the use of a callback parameter.\\n<br><br>\\nBy default the text &quot;loading...&quot; will be displayed. To make your own\\nloading page, include an HTML element with id &quot;p5_loading&quot; in your\\npage. More information <a href=\"http://bit.ly/2kQ6Nio\">here</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'preload',\n                example: [\n                  \"\\n<div><code>\\nlet img;\\nlet c;\\nfunction preload() {\\n  // preload() runs once\\n  img = loadImage('assets/laDefense.jpg');\\n}\\n\\nfunction setup() {\\n  // setup() waits until preload() is done\\n  img.loadPixels();\\n  // get color of middle pixel\\n  c = img.get(img.width / 2, img.height / 2);\\n}\\n\\nfunction draw() {\\n  background(c);\\n  image(img, 25, 25, 50, 50);\\n}\\n</code></div>\"\n                ],\n                alt: 'nothing displayed',\n                class: 'p5',\n                module: 'Structure',\n                submodule: 'Structure'\n              },\n              {\n                file: 'src/core/main.js',\n                line: 82,\n                description:\n                  '<p>The <a href=\"#/p5/setup\">setup()</a> function is called once when the program starts. It&#39;s used to\\ndefine initial environment properties such as screen size and background\\ncolor and to load media such as images and fonts as the program starts.\\nThere can only be one <a href=\"#/p5/setup\">setup()</a> function for each program and it shouldn&#39;t\\nbe called again after its initial execution.\\n<br><br>\\nNote: Variables declared within <a href=\"#/p5/setup\">setup()</a> are not accessible within other\\nfunctions, including <a href=\"#/p5/draw\">draw()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'setup',\n                example: [\n                  '\\n<div><code>\\nlet a = 0;\\n\\nfunction setup() {\\n  background(0);\\n  noStroke();\\n  fill(102);\\n}\\n\\nfunction draw() {\\n  rect(a++ % width, 10, 2, 80);\\n}\\n</code></div>'\n                ],\n                alt: 'nothing displayed',\n                class: 'p5',\n                module: 'Structure',\n                submodule: 'Structure'\n              },\n              {\n                file: 'src/core/main.js',\n                line: 113,\n                description:\n                  '<p>Called directly after <a href=\"#/p5/setup\">setup()</a>, the <a href=\"#/p5/draw\">draw()</a> function continuously executes\\nthe lines of code contained inside its block until the program is stopped\\nor <a href=\"#/p5/noLoop\">noLoop()</a> is called. Note if <a href=\"#/p5/noLoop\">noLoop()</a> is called in <a href=\"#/p5/setup\">setup()</a>, <a href=\"#/p5/draw\">draw()</a> will\\nstill be executed once before stopping. <a href=\"#/p5/draw\">draw()</a> is called automatically and\\nshould never be called explicitly.\\n<br><br>\\nIt should always be controlled with <a href=\"#/p5/noLoop\">noLoop()</a>, <a href=\"#/p5/redraw\">redraw()</a> and <a href=\"#/p5/loop\">loop()</a>. After\\n<a href=\"#/p5/noLoop\">noLoop()</a> stops the code in <a href=\"#/p5/draw\">draw()</a> from executing, <a href=\"#/p5/redraw\">redraw()</a> causes the\\ncode inside <a href=\"#/p5/draw\">draw()</a> to execute once, and <a href=\"#/p5/loop\">loop()</a> will cause the code\\ninside <a href=\"#/p5/draw\">draw()</a> to resume executing continuously.\\n<br><br>\\nThe number of times <a href=\"#/p5/draw\">draw()</a> executes in each second may be controlled with\\nthe <a href=\"#/p5/frameRate\">frameRate()</a> function.\\n<br><br>\\nThere can only be one <a href=\"#/p5/draw\">draw()</a> function for each sketch, and <a href=\"#/p5/draw\">draw()</a> must\\nexist if you want the code to run continuously, or to process events such\\nas <a href=\"#/p5/mousePressed\">mousePressed()</a>. Sometimes, you might have an empty call to <a href=\"#/p5/draw\">draw()</a> in\\nyour program, as shown in the above example.\\n<br><br>\\nIt is important to note that the drawing coordinate system will be reset\\nat the beginning of each <a href=\"#/p5/draw\">draw()</a> call. If any transformations are performed\\nwithin <a href=\"#/p5/draw\">draw()</a> (ex: scale, rotate, translate), their effects will be\\nundone at the beginning of <a href=\"#/p5/draw\">draw()</a>, so transformations will not accumulate\\nover time. On the other hand, styling applied (ex: fill, stroke, etc) will\\nremain in effect.</p>\\n',\n                itemtype: 'method',\n                name: 'draw',\n                example: [\n                  '\\n<div><code>\\nlet yPos = 0;\\nfunction setup() {\\n  // setup() runs once\\n  frameRate(30);\\n}\\nfunction draw() {\\n  // draw() loops forever, until stopped\\n  background(204);\\n  yPos = yPos - 1;\\n  if (yPos < 0) {\\n    yPos = height;\\n  }\\n  line(0, yPos, width, yPos);\\n}\\n</code></div>'\n                ],\n                alt: 'nothing displayed',\n                class: 'p5',\n                module: 'Structure',\n                submodule: 'Structure'\n              },\n              {\n                file: 'src/core/main.js',\n                line: 410,\n                description:\n                  '<p>Removes the entire p5 sketch. This will remove the canvas and any\\nelements created by p5.js. It will also stop the draw loop and unbind\\nany properties or methods from the window global scope. It will\\nleave a variable p5 in case you wanted to create a new p5 sketch.\\nIf you like, you can set p5 = null to erase it. While all functions and\\nvariables and objects created by the p5 library will be removed, any\\nother global variables created by your code will remain.</p>\\n',\n                itemtype: 'method',\n                name: 'remove',\n                example: [\n                  \"\\n<div class='norender'><code>\\nfunction draw() {\\n  ellipse(50, 50, 10, 10);\\n}\\n\\nfunction mousePressed() {\\n  remove(); // remove whole sketch on mouse press\\n}\\n</code></div>\"\n                ],\n                alt: 'nothing displayed',\n                class: 'p5',\n                module: 'Structure',\n                submodule: 'Structure'\n              },\n              {\n                file: 'src/core/main.js',\n                line: 678,\n                description:\n                  \"<p>Allows for the friendly error system (FES) to be turned off when creating a sketch,\\nwhich can give a significant boost to performance when needed.\\nSee <a href='https://github.com/processing/p5.js/wiki/Optimizing-p5.js-Code-for-Performance#disable-the-friendly-error-system-fes'>\\ndisabling the friendly error system</a>.</p>\\n\",\n                itemtype: 'property',\n                name: 'disableFriendlyErrors',\n                type: 'Boolean',\n                example: [\n                  '\\n<div class=\"norender notest\"><code>\\np5.disableFriendlyErrors = true;\\n\\nfunction setup() {\\n  createCanvas(100, 50);\\n}\\n</code></div>'\n                ],\n                class: 'p5',\n                module: 'Structure',\n                submodule: 'Structure'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 21,\n                description:\n                  '<p>Underlying HTML element. All normal HTML methods can be called on this.</p>\\n',\n                example: [\n                  \"\\n<div>\\n<code>\\nfunction setup() {\\n  let c = createCanvas(50, 50);\\n  c.elt.style.border = '5px solid red';\\n}\\n\\nfunction draw() {\\n  background(220);\\n}\\n</code>\\n</div>\"\n                ],\n                itemtype: 'property',\n                name: 'elt',\n                readonly: '',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 47,\n                description:\n                  '<p>Attaches the element to the parent specified. A way of setting\\n the container for the element. Accepts either a string ID, DOM\\n node, or <a href=\"#/p5.Element\">p5.Element</a>. If no arguments given, parent node is returned.\\n For more ways to position the canvas, see the\\n <a href=\\'https://github.com/processing/p5.js/wiki/Positioning-your-canvas\\'>\\n positioning the canvas</a> wiki page.</p>\\n',\n                itemtype: 'method',\n                name: 'parent',\n                chainable: 1,\n                example: [\n                  \"\\n <div class=\\\"norender notest\\\"><code>\\n // in the html file:\\n // &lt;div id=\\\"myContainer\\\">&lt;/div>\\n// in the js file:\\n let cnv = createCanvas(100, 100);\\n cnv.parent('myContainer');\\n </code></div>\\n <div class='norender'><code>\\n let div0 = createDiv('this is the parent');\\n let div1 = createDiv('this is the child');\\n div1.parent(div0); // use p5.Element\\n </code></div>\\n <div class='norender'><code>\\n let div0 = createDiv('this is the parent');\\n div0.id('apples');\\n let div1 = createDiv('this is the child');\\n div1.parent('apples'); // use id\\n </code></div>\\n <div class='norender notest'><code>\\n let elt = document.getElementById('myParentDiv');\\n let div1 = createDiv('this is the child');\\n div1.parent(elt); // use element from page\\n </code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 47,\n                    params: [\n                      {\n                        name: 'parent',\n                        description:\n                          '<p>the ID, DOM node, or <a href=\"#/p5.Element\">p5.Element</a>\\n                         of desired parent element</p>\\n',\n                        type: 'String|p5.Element|Object'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 90,\n                    params: [],\n                    return: {\n                      description: '',\n                      type: 'p5.Element'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 112,\n                description:\n                  '<p>Sets the ID of the element. If no ID argument is passed in, it instead\\n returns the current ID of the element.\\n Note that only one element can have a particular id in a page.\\n The <a href=\"#/p5.Element/class\">.class()</a> function can be used\\n to identify multiple elements with the same class name.</p>\\n',\n                itemtype: 'method',\n                name: 'id',\n                chainable: 1,\n                example: [\n                  \"\\n <div class='norender'><code>\\n function setup() {\\n   let cnv = createCanvas(100, 100);\\n   // Assigns a CSS selector ID to\\n   // the canvas element.\\n   cnv.id('mycanvas');\\n }\\n </code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 112,\n                    params: [\n                      {\n                        name: 'id',\n                        description: '<p>ID of the element</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 137,\n                    params: [],\n                    return: {\n                      description: 'the id of the element',\n                      type: 'String'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 152,\n                description:\n                  '<p>Adds given class to the element. If no class argument is passed in, it\\n instead returns a string containing the current class(es) of the element.</p>\\n',\n                itemtype: 'method',\n                name: 'class',\n                chainable: 1,\n                example: [\n                  \"\\n <div class='norender'><code>\\n function setup() {\\n   let cnv = createCanvas(100, 100);\\n   // Assigns a CSS selector class 'small'\\n   // to the canvas element.\\n   cnv.class('small');\\n }\\n </code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 152,\n                    params: [\n                      {\n                        name: 'class',\n                        description: '<p>class to add</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 174,\n                    params: [],\n                    return: {\n                      description: 'the class of the element',\n                      type: 'String'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 187,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/mousePressed\">mousePressed()</a> function is called once after every time a\\nmouse button is pressed over the element.\\nSome mobile browsers may also trigger this event on a touch screen,\\nif the user performs a quick tap.\\nThis can be used to attach element specific event listeners.</p>\\n',\n                itemtype: 'method',\n                name: 'mousePressed',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when mouse is\\n                               pressed over the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet cnv;\\nlet d;\\nlet g;\\nfunction setup() {\\n  cnv = createCanvas(100, 100);\\n  cnv.mousePressed(changeGray); // attach listener for\\n  // canvas click only\\n  d = 10;\\n  g = 100;\\n}\\n\\nfunction draw() {\\n  background(g);\\n  ellipse(width / 2, height / 2, d, d);\\n}\\n\\n// this function fires with any click anywhere\\nfunction mousePressed() {\\n  d = d + 10;\\n}\\n\\n// this function fires only when cnv is clicked\\nfunction changeGray() {\\n  g = random(0, 255);\\n}\\n</code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 248,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/doubleClicked\">doubleClicked()</a> function is called once after every time a\\nmouse button is pressed twice over the element. This can be used to\\nattach element and action specific event listeners.</p>\\n',\n                itemtype: 'method',\n                name: 'doubleClicked',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when mouse is\\n                               double clicked over the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet cnv;\\nlet d;\\nlet g;\\nfunction setup() {\\n  cnv = createCanvas(100, 100);\\n  cnv.doubleClicked(changeGray); // attach listener for\\n  // canvas double click only\\n  d = 10;\\n  g = 100;\\n}\\n\\nfunction draw() {\\n  background(g);\\n  ellipse(width / 2, height / 2, d, d);\\n}\\n\\n// this function fires with any double click anywhere\\nfunction doubleClicked() {\\n  d = d + 10;\\n}\\n\\n// this function fires only when cnv is double clicked\\nfunction changeGray() {\\n  g = random(0, 255);\\n}\\n</code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 297,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/mouseWheel\">mouseWheel()</a> function is called once after every time a\\nmouse wheel is scrolled over the element. This can be used to\\nattach element specific event listeners.\\n<br><br>\\nThe function accepts a callback function as argument which will be executed\\nwhen the <code>wheel</code> event is triggered on the element, the callback function is\\npassed one argument <code>event</code>. The <code>event.deltaY</code> property returns negative\\nvalues if the mouse wheel is rotated up or away from the user and positive\\nin the other direction. The <code>event.deltaX</code> does the same as <code>event.deltaY</code>\\nexcept it reads the horizontal wheel scroll of the mouse wheel.\\n<br><br>\\nOn OS X with &quot;natural&quot; scrolling enabled, the <code>event.deltaY</code> values are\\nreversed.</p>\\n',\n                itemtype: 'method',\n                name: 'mouseWheel',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when mouse is\\n                               scrolled over the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet cnv;\\nlet d;\\nlet g;\\nfunction setup() {\\n  cnv = createCanvas(100, 100);\\n  cnv.mouseWheel(changeSize); // attach listener for\\n  // activity on canvas only\\n  d = 10;\\n  g = 100;\\n}\\n\\nfunction draw() {\\n  background(g);\\n  ellipse(width / 2, height / 2, d, d);\\n}\\n\\n// this function fires with mousewheel movement\\n// anywhere on screen\\nfunction mouseWheel() {\\n  g = g + 10;\\n}\\n\\n// this function fires with mousewheel movement\\n// over canvas only\\nfunction changeSize(event) {\\n  if (event.deltaY > 0) {\\n    d = d + 10;\\n  } else {\\n    d = d - 10;\\n  }\\n}\\n</code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 363,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/mouseReleased\">mouseReleased()</a> function is called once after every time a\\nmouse button is released over the element.\\nSome mobile browsers may also trigger this event on a touch screen,\\nif the user performs a quick tap.\\nThis can be used to attach element specific event listeners.</p>\\n',\n                itemtype: 'method',\n                name: 'mouseReleased',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when mouse is\\n                               released over the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet cnv;\\nlet d;\\nlet g;\\nfunction setup() {\\n  cnv = createCanvas(100, 100);\\n  cnv.mouseReleased(changeGray); // attach listener for\\n  // activity on canvas only\\n  d = 10;\\n  g = 100;\\n}\\n\\nfunction draw() {\\n  background(g);\\n  ellipse(width / 2, height / 2, d, d);\\n}\\n\\n// this function fires after the mouse has been\\n// released\\nfunction mouseReleased() {\\n  d = d + 10;\\n}\\n\\n// this function fires after the mouse has been\\n// released while on canvas\\nfunction changeGray() {\\n  g = random(0, 255);\\n}\\n</code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 417,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/mouseClicked\">mouseClicked()</a> function is called once after a mouse button is\\npressed and released over the element.\\nSome mobile browsers may also trigger this event on a touch screen,\\nif the user performs a quick tap.\\nThis can be used to attach element specific event listeners.</p>\\n',\n                itemtype: 'method',\n                name: 'mouseClicked',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when mouse is\\n                               clicked over the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\nlet cnv;\\nlet d;\\nlet g;\\n\\nfunction setup() {\\n  cnv = createCanvas(100, 100);\\n  cnv.mouseClicked(changeGray); // attach listener for\\n  // activity on canvas only\\n  d = 10;\\n  g = 100;\\n}\\n\\nfunction draw() {\\n  background(g);\\n  ellipse(width / 2, height / 2, d, d);\\n}\\n\\n// this function fires after the mouse has been\\n// clicked anywhere\\nfunction mouseClicked() {\\n  d = d + 10;\\n}\\n\\n// this function fires after the mouse has been\\n// clicked on canvas\\nfunction changeGray() {\\n  g = random(0, 255);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 473,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/mouseMoved\">mouseMoved()</a> function is called once every time a\\nmouse moves over the element. This can be used to attach an\\nelement specific event listener.</p>\\n',\n                itemtype: 'method',\n                name: 'mouseMoved',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when a mouse moves\\n                               over the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet cnv;\\nlet d = 30;\\nlet g;\\nfunction setup() {\\n  cnv = createCanvas(100, 100);\\n  cnv.mouseMoved(changeSize); // attach listener for\\n  // activity on canvas only\\n  d = 10;\\n  g = 100;\\n}\\n\\nfunction draw() {\\n  background(g);\\n  fill(200);\\n  ellipse(width / 2, height / 2, d, d);\\n}\\n\\n// this function fires when mouse moves anywhere on\\n// page\\nfunction mouseMoved() {\\n  g = g + 5;\\n  if (g > 255) {\\n    g = 0;\\n  }\\n}\\n\\n// this function fires when mouse moves over canvas\\nfunction changeSize() {\\n  d = d + 2;\\n  if (d > 100) {\\n    d = 0;\\n  }\\n}\\n</code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 531,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/mouseOver\">mouseOver()</a> function is called once after every time a\\nmouse moves onto the element. This can be used to attach an\\nelement specific event listener.</p>\\n',\n                itemtype: 'method',\n                name: 'mouseOver',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when a mouse moves\\n                               onto the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet cnv;\\nlet d;\\nfunction setup() {\\n  cnv = createCanvas(100, 100);\\n  cnv.mouseOver(changeGray);\\n  d = 10;\\n}\\n\\nfunction draw() {\\n  ellipse(width / 2, height / 2, d, d);\\n}\\n\\nfunction changeGray() {\\n  d = d + 10;\\n  if (d > 100) {\\n    d = 0;\\n  }\\n}\\n</code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 574,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/mouseOut\">mouseOut()</a> function is called once after every time a\\nmouse moves off the element. This can be used to attach an\\nelement specific event listener.</p>\\n',\n                itemtype: 'method',\n                name: 'mouseOut',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when a mouse\\n                               moves off of an element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet cnv;\\nlet d;\\nfunction setup() {\\n  cnv = createCanvas(100, 100);\\n  cnv.mouseOut(changeGray);\\n  d = 10;\\n}\\n\\nfunction draw() {\\n  ellipse(width / 2, height / 2, d, d);\\n}\\n\\nfunction changeGray() {\\n  d = d + 10;\\n  if (d > 100) {\\n    d = 0;\\n  }\\n}\\n</code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 616,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/touchStarted\">touchStarted()</a> function is called once after every time a touch is\\nregistered. This can be used to attach element specific event listeners.</p>\\n',\n                itemtype: 'method',\n                name: 'touchStarted',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when a touch\\n                               starts over the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet cnv;\\nlet d;\\nlet g;\\nfunction setup() {\\n  cnv = createCanvas(100, 100);\\n  cnv.touchStarted(changeGray); // attach listener for\\n  // canvas click only\\n  d = 10;\\n  g = 100;\\n}\\n\\nfunction draw() {\\n  background(g);\\n  ellipse(width / 2, height / 2, d, d);\\n}\\n\\n// this function fires with any touch anywhere\\nfunction touchStarted() {\\n  d = d + 10;\\n}\\n\\n// this function fires only when cnv is clicked\\nfunction changeGray() {\\n  g = random(0, 255);\\n}\\n</code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 664,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/touchMoved\">touchMoved()</a> function is called once after every time a touch move is\\nregistered. This can be used to attach element specific event listeners.</p>\\n',\n                itemtype: 'method',\n                name: 'touchMoved',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when a touch moves over\\n                               the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet cnv;\\nlet g;\\nfunction setup() {\\n  cnv = createCanvas(100, 100);\\n  cnv.touchMoved(changeGray); // attach listener for\\n  // canvas click only\\n  g = 100;\\n}\\n\\nfunction draw() {\\n  background(g);\\n}\\n\\n// this function fires only when cnv is clicked\\nfunction changeGray() {\\n  g = random(0, 255);\\n}\\n</code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 704,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/touchEnded\">touchEnded()</a> function is called once after every time a touch is\\nregistered. This can be used to attach element specific event listeners.</p>\\n',\n                itemtype: 'method',\n                name: 'touchEnded',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when a touch ends\\n                               over the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet cnv;\\nlet d;\\nlet g;\\nfunction setup() {\\n  cnv = createCanvas(100, 100);\\n  cnv.touchEnded(changeGray); // attach listener for\\n  // canvas click only\\n  d = 10;\\n  g = 100;\\n}\\n\\nfunction draw() {\\n  background(g);\\n  ellipse(width / 2, height / 2, d, d);\\n}\\n\\n// this function fires with any touch anywhere\\nfunction touchEnded() {\\n  d = d + 10;\\n}\\n\\n// this function fires only when cnv is clicked\\nfunction changeGray() {\\n  g = random(0, 255);\\n}\\n</code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 753,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/dragOver\">dragOver()</a> function is called once after every time a\\nfile is dragged over the element. This can be used to attach an\\nelement specific event listener.</p>\\n',\n                itemtype: 'method',\n                name: 'dragOver',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when a file is\\n                               dragged over the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div><code>\\n// To test this sketch, simply drag a\\n// file over the canvas\\nfunction setup() {\\n  let c = createCanvas(100, 100);\\n  background(200);\\n  textAlign(CENTER);\\n  text('Drag file', width / 2, height / 2);\\n  c.dragOver(dragOverCallback);\\n}\\n\\n// This function will be called whenever\\n// a file is dragged over the canvas\\nfunction dragOverCallback() {\\n  background(240);\\n  text('Dragged over', width / 2, height / 2);\\n}\\n</code></div>\"\n                ],\n                alt: 'nothing displayed',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 791,\n                description:\n                  '<p>The .dragLeave() function is called once after every time a\\ndragged file leaves the element area. This can be used to attach an\\nelement specific event listener.</p>\\n',\n                itemtype: 'method',\n                name: 'dragLeave',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when a file is\\n                               dragged off the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div><code>\\n// To test this sketch, simply drag a file\\n// over and then out of the canvas area\\nfunction setup() {\\n  let c = createCanvas(100, 100);\\n  background(200);\\n  textAlign(CENTER);\\n  text('Drag file', width / 2, height / 2);\\n  c.dragLeave(dragLeaveCallback);\\n}\\n\\n// This function will be called whenever\\n// a file is dragged out of the canvas\\nfunction dragLeaveCallback() {\\n  background(240);\\n  text('Dragged off', width / 2, height / 2);\\n}\\n</code></div>\"\n                ],\n                alt: 'nothing displayed',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Element.js',\n                line: 855,\n                description: '<p>Helper fxn for sharing pixel methods</p>\\n',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/core/p5.Graphics.js',\n                line: 64,\n                description:\n                  \"<p>Resets certain values such as those modified by functions in the Transform category\\nand in the Lights category that are not automatically reset\\nwith graphics buffer objects. Calling this in <a href='#/p5/draw'>draw()</a> will copy the behavior\\nof the standard canvas.</p>\\n\",\n                itemtype: 'method',\n                name: 'reset',\n                example: [\n                  \"\\n\\n<div><code>\\nlet pg;\\nfunction setup() {\\n  createCanvas(100, 100);\\n  background(0);\\n  pg = createGraphics(50, 100);\\n  pg.fill(0);\\n  frameRate(5);\\n}\\nfunction draw() {\\n  image(pg, width / 2, 0);\\n  pg.background(255);\\n  // p5.Graphics object behave a bit differently in some cases\\n  // The normal canvas on the left resets the translate\\n  // with every loop through draw()\\n  // the graphics object on the right doesn't automatically reset\\n  // so translate() is additive and it moves down the screen\\n  rect(0, 0, width / 2, 5);\\n  pg.rect(0, 0, width / 2, 5);\\n  translate(0, 5, 0);\\n  pg.translate(0, 5, 0);\\n}\\nfunction mouseClicked() {\\n  // if you click you will see that\\n  // reset() resets the translate back to the initial state\\n  // of the Graphics object\\n  pg.reset();\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'A white line on a black background stays still on the top-left half.\\nA black line animates from top to bottom on a white background on the right half.\\nWhen clicked, the black line starts back over at the top.',\n                class: 'p5.Graphics',\n                module: 'Rendering',\n                submodule: 'Rendering'\n              },\n              {\n                file: 'src/core/p5.Graphics.js',\n                line: 116,\n                description:\n                  '<p>Removes a Graphics object from the page and frees any resources\\nassociated with it.</p>\\n',\n                itemtype: 'method',\n                name: 'remove',\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet bg;\\nfunction setup() {\\n  bg = createCanvas(100, 100);\\n  bg.background(0);\\n  image(bg, 0, 0);\\n  bg.remove();\\n}\\n</code></div>\\n\\n<div><code>\\nlet bg;\\nfunction setup() {\\n  pixelDensity(1);\\n  createCanvas(100, 100);\\n  stroke(255);\\n  fill(0);\\n\\n  // create and draw the background image\\n  bg = createGraphics(100, 100);\\n  bg.background(200);\\n  bg.ellipse(50, 50, 80, 80);\\n}\\nfunction draw() {\\n  let t = millis() / 1000;\\n  // draw the background\\n  if (bg) {\\n    image(bg, frameCount % 100, 0);\\n    image(bg, frameCount % 100 - 100, 0);\\n  }\\n  // draw the foreground\\n  let p = p5.Vector.fromAngle(t, 35).add(50, 50);\\n  ellipse(p.x, p.y, 30);\\n}\\nfunction mouseClicked() {\\n  // remove the background\\n  if (bg) {\\n    bg.remove();\\n    bg = null;\\n  }\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'no image\\na multi-colored circle moving back and forth over a scrolling background.',\n                class: 'p5.Graphics',\n                module: 'Rendering',\n                submodule: 'Rendering'\n              },\n              {\n                file: 'src/core/p5.Renderer.js',\n                line: 95,\n                description: '<p>Resize our canvas element.</p>\\n',\n                class: 'p5.Renderer',\n                module: 'Rendering',\n                submodule: 'Rendering'\n              },\n              {\n                file: 'src/core/p5.Renderer.js',\n                line: 334,\n                description: '<p>Helper fxn to check font type (system or otf)</p>\\n',\n                class: 'p5.Renderer',\n                module: 'Rendering',\n                submodule: 'Rendering'\n              },\n              {\n                file: 'src/core/p5.Renderer.js',\n                line: 386,\n                description:\n                  '<p>Helper fxn to measure ascent and descent.\\nAdapted from <a href=\"http://stackoverflow.com/a/25355178\">http://stackoverflow.com/a/25355178</a></p>\\n',\n                class: 'p5.Renderer',\n                module: 'Rendering',\n                submodule: 'Rendering'\n              },\n              {\n                file: 'src/core/p5.Renderer2D.js',\n                line: 7,\n                description:\n                  '<p>p5.Renderer2D\\nThe 2D graphics canvas renderer class.\\nextends p5.Renderer</p>\\n',\n                class: 'p5',\n                module: 'Rendering'\n              },\n              {\n                file: 'src/core/p5.Renderer2D.js',\n                line: 385,\n                description:\n                  '<p>Generate a cubic Bezier representing an arc on the unit circle of total\\nangle <code>size</code> radians, beginning <code>start</code> radians above the x-axis. Up to\\nfour of these curves are combined to make a full arc.</p>\\n<p>See <a href=\"http://www.joecridge.me/bezier.pdf\">www.joecridge.me/bezier.pdf</a> for an explanation of the method.</p>\\n',\n                class: 'p5',\n                module: 'Rendering'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 6,\n                description:\n                  '<p>Creates and names a new variable. A variable is a container for a value.</p>\\n<p>Variables that are declared with <a href=\"#/p5/let\">let</a> will have block-scope.\\nThis means that the variable only exists within the <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/block\">\\nblock</a> that it is created within.</p>\\n<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let\">the MDN entry</a>:\\nDeclares a block scope local variable, optionally initializing it to a value.</p>\\n',\n                itemtype: 'property',\n                name: 'let',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nlet x = 2;\\nconsole.log(x); // prints 2 to the console\\nx = 1;\\nconsole.log(x); // prints 1 to the console\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 30,\n                description:\n                  '<p>Creates and names a new constant. Like a variable created with <a href=\"#/p5/let\">let</a>, a constant\\nthat is created with <a href=\"#/p5/const\">const</a> is a container for a value,\\nhowever constants cannot be changed once they are declared.</p>\\n<p>Constants have block-scope. This means that the constant only exists within\\nthe <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/block\">\\nblock</a> that it is created within. A constant cannot be redeclared within a scope in which it\\nalready exists.</p>\\n<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const\">the MDN entry</a>:\\nDeclares a read-only named constant.\\nConstants are block-scoped, much like variables defined using the &#39;let&#39; statement.\\nThe value of a constant can&#39;t be changed through reassignment, and it can&#39;t be redeclared.</p>\\n',\n                itemtype: 'property',\n                name: 'const',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\n// define myFavNumber as a constant and give it the value 7\\nconst myFavNumber = 7;\\nconsole.log('my favorite number is: ' + myFavNumber);\\n</code>\\n</div>\\n\\n<div class='norender'>\\n<code>\\nconst bigCats = ['lion', 'tiger', 'panther'];\\nbigCats.push('leopard');\\nconsole.log(bigCats);\\n// bigCats = ['cat']; // throws error as re-assigning not allowed for const\\n</code>\\n</div>\\n\\n<div class='norender'>\\n<code>\\nconst wordFrequency = {};\\nwordFrequency['hello'] = 2;\\nwordFrequency['bye'] = 1;\\nconsole.log(wordFrequency);\\n// wordFrequency = { 'a': 2, 'b': 3}; // throws error here\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 75,\n                description:\n                  '<p>The strict equality operator <a href=\"#/p5/===\">===</a>\\nchecks to see if two values are equal and of the same type.</p>\\n<p>A comparison expression always evaluates to a <a href=\"#/p5/boolean\">boolean</a>.</p>\\n<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators\">the MDN entry</a>:\\nThe non-identity operator returns true if the operands are not equal and/or not of the same type.</p>\\n<p>Note: In some examples around the web you may see a double-equals-sign\\n<a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators#Equality\">==</a>,\\nused for comparison instead. This is the non-strict equality operator in Javascript.\\nThis will convert the two values being compared to the same type before comparing them.</p>\\n',\n                itemtype: 'property',\n                name: '===',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nconsole.log(1 === 1); // prints true to the console\\nconsole.log(1 === '1'); // prints false to the console\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 100,\n                description:\n                  '<p>The greater than operator <a href=\"#/p5/>\">&gt;</a>\\nevaluates to true if the left value is greater than\\nthe right value.</p>\\n<p><a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators\">There is more info on comparison operators on MDN.</a></p>\\n',\n                itemtype: 'property',\n                name: '>',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nconsole.log(100 > 1); // prints true to the console\\nconsole.log(1 > 100); // prints false to the console\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 119,\n                description:\n                  '<p>The greater than or equal to operator <a href=\"#/p5/>=\">&gt;=</a>\\nevaluates to true if the left value is greater than or equal to\\nthe right value.</p>\\n<p><a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators\">There is more info on comparison operators on MDN.</a></p>\\n',\n                itemtype: 'property',\n                name: '>=',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nconsole.log(100 >= 100); // prints true to the console\\nconsole.log(101 >= 100); // prints true to the console\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 138,\n                description:\n                  '<p>The less than operator <a href=\"#/p5/<\">&lt;</a>\\nevaluates to true if the left value is less than\\nthe right value.</p>\\n<p><a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators\">There is more info on comparison operators on MDN.</a></p>\\n',\n                itemtype: 'property',\n                name: '<',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nconsole.log(1 < 100); // prints true to the console\\nconsole.log(100 < 99); // prints false to the console\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 157,\n                description:\n                  '<p>The less than or equal to operator <a href=\"#/p5/<=\">&lt;=</a>\\nevaluates to true if the left value is less than or equal to\\nthe right value.</p>\\n<p><a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators\">There is more info on comparison operators on MDN.</a></p>\\n',\n                itemtype: 'property',\n                name: '<=',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nconsole.log(100 <= 100); // prints true to the console\\nconsole.log(99 <= 100); // prints true to the console\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 176,\n                description:\n                  '<p>The <a href=\"#/p5/if-else\">if-else</a> statement helps control the flow of your code.</p>\\n<p>A condition is placed between the parenthesis following &#39;if&#39;,\\nwhen that condition evalues to <a href=\"https://developer.mozilla.org/en-US/docs/Glossary/truthy\">truthy</a>,\\nthe code between the following curly braces is run.\\nAlternatively, when the condition evaluates to <a href=\"https://developer.mozilla.org/en-US/docs/Glossary/Falsy\">falsy</a>,\\nthe code between the curly braces that follow &#39;else&#39; is run instead.</p>\\n<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else\">the MDN entry</a>:\\nThe &#39;if&#39; statement executes a statement if a specified condition is truthy.\\nIf the condition is falsy, another statement can be executed</p>\\n',\n                itemtype: 'property',\n                name: 'if-else',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nlet a = 4;\\nif (a > 0) {\\n  console.log('positive');\\n} else {\\n  console.log('negative');\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 203,\n                description:\n                  '<p>Creates and names a <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions\">function</a>.\\nA <a href=\"#/p5/function\">function</a> is a set of statements that perform a task.</p>\\n<p>Optionally, functions can have parameters. <a href=\"https://developer.mozilla.org/en-US/docs/Glossary/Parameter\">Parameters</a>\\nare variables that are scoped to the function, that can be assigned a value when calling the function.</p>\\n<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function\">the MDN entry</a>:\\nDeclares a function with the specified parameters.</p>\\n',\n                itemtype: 'property',\n                name: 'function',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nlet myName = 'Hridi';\\nfunction sayHello(name) {\\n  console.log('Hello ' + name + '!');\\n}\\nsayHello(myName); // calling the function, prints \\\"Hello Hridi!\\\" to console.\\n</code>\\n</div>\\n<div class='norender'>\\n<code>\\nlet square = number => number * number;\\nconsole.log(square(5));\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 232,\n                description:\n                  '<p>Specifies the value to be returned by a function.\\nFor more info checkout <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/return\">\\nthe MDN entry for return</a>.</p>\\n',\n                itemtype: 'property',\n                name: 'return',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nfunction calculateSquare(x) {\\n  return x * x;\\n}\\ncalculateSquare(4); // returns 16\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 249,\n                description:\n                  '<p>A <a href=\"#/p5/boolean\">boolean</a> is one of the 7 <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Primitive_values\">primitive data types</a> in Javascript.\\nA boolean can only be <code>true</code> or <code>false</code>.</p>\\n<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type\">the MDN entry</a>:\\nBoolean represents a logical entity and can have two values: true, and false.</p>\\n',\n                itemtype: 'property',\n                name: 'boolean',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nlet myBoolean = false;\\nconsole.log(typeof myBoolean); // prints 'boolean' to the console\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 267,\n                description:\n                  '<p>A <a href=\"#/p5/string\">string</a> is one of the 7 <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Primitive_values\">primitive data types</a> in Javascript.\\nA string is a series of text characters. In Javascript, a string value must be surrounded by either single-quotation marks(&#39;) or double-quotation marks(&quot;).</p>\\n<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Glossary/string\">the MDN entry</a>:\\nA string is a sequence of characters used to represent text.</p>\\n',\n                itemtype: 'property',\n                name: 'string',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nlet mood = 'chill';\\nconsole.log(typeof mood); // prints 'string' to the console\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 285,\n                description:\n                  '<p>A <a href=\"#/p5/number\">number</a> is one of the 7 <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Primitive_values\">primitive data types</a> in Javascript.\\nA number can be a whole number or a decimal number.</p>\\n<p><a href=\"https://developer.mozilla.org/en-US/docs/Glossary/number\">The MDN entry for number</a></p>\\n',\n                itemtype: 'property',\n                name: 'number',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nlet num = 46.5;\\nconsole.log(typeof num); // prints 'number' to the console\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 302,\n                description:\n                  '<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics\">MDN&#39;s object basics</a>:\\n An <a href=\"#/p5/object\">object</a> is a collection of related data and/or functionality (which usually consists of several variables and functions —\\n which are called properties and methods when they are inside objects.)</p>\\n',\n                itemtype: 'property',\n                name: 'object',\n                example: [\n                  \"\\n <div class='norender'>\\n <code>\\n let author = {\\n   name: 'Ursula K Le Guin',\\n   books: [\\n     'The Left Hand of Darkness',\\n     'The Dispossessed',\\n     'A Wizard of Earthsea'\\n   ]\\n };\\n console.log(author.name); // prints 'Ursula K Le Guin' to the console\\n </code>\\n </div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 325,\n                description:\n                  '<p>Creates and names a <a href=\"#/p5/class\">class</a> which is a template for the creation of <a href=\"#/p5/objects\">objects</a>.</p>\\n<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/class\">the MDN entry</a>:\\nThe class declaration creates a new Class with a given name using prototype-based inheritance.</p>\\n',\n                itemtype: 'property',\n                name: 'class',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nclass Rectangle {\\n  constructor(name, height, width) {\\n    this.name = name;\\n    this.height = height;\\n    this.width = width;\\n  }\\n}\\nlet square = new Rectangle('square', 1, 1); // creating new instance of Polygon Class.\\nconsole.log(square.width); // prints '1' to the console\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 348,\n                description:\n                  '<p><a href=\"#/p5/for\">for</a> creates a loop that is useful for executing one section of code multiple times.</p>\\n<p>A &#39;for loop&#39; consists of three different expressions inside of a parenthesis, all of which are optional.\\nThese expressions are used to control the number of times the loop is run.\\nThe first expression is a statement that is used to set the initial state for the loop.\\nThe second expression is a condition that you would like to check before each loop. If this expression returns\\nfalse then the loop will exit.\\nThe third expression is executed at the end of each loop.</p>\\n<p>The code inside of the loop body (in between the curly braces) is executed between the evaluation of the second\\nand third expression.</p>\\n<p>As with any loop, it is important to ensure that the loop can &#39;exit&#39;, or that\\nthe test condition will eventually evaluate to false. The test condition with a <a href=\"#/p5/for\">for</a> loop\\nis the second expression detailed above. Ensuring that this expression can eventually\\nbecome false ensures that your loop doesn&#39;t attempt to run an infinite amount of times,\\nwhich can crash your browser.</p>\\n<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for\">the MDN entry</a>:\\nCreates a loop that executes a specified statement until the test condition evaluates to false.\\nThe condition is evaluated after executing the statement, resulting in the specified statement executing at least once.</p>\\n',\n                itemtype: 'property',\n                name: 'for',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nfor (let i = 0; i < 9; i++) {\\n  console.log(i);\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 382,\n                description:\n                  '<p><a href=\"#/p5/while\">while</a> creates a loop that is useful for executing one section of code multiple times.</p>\\n<p>With a &#39;while loop&#39;, the code inside of the loop body (between the curly braces) is run repeatedly until the test condition\\n(inside of the parenthesis) evaluates to false. Unlike a <a href=\"#/p5/for\">for</a> loop, the condition is tested before executing the code body with <a href=\"#/p5/while\">while</a>,\\nso if the condition is initially false the loop body, or statement, will never execute.</p>\\n<p>As with any loop, it is important to ensure that the loop can &#39;exit&#39;, or that\\nthe test condition will eventually evaluate to false. This is to keep your loop from trying to run an infinite amount of times,\\nwhich can crash your browser.</p>\\n<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/while\">the MDN entry</a>:\\nThe while statement creates a loop that executes a specified statement as long as the test condition evaluates to true.\\nThe condition is evaluated before executing the statement.</p>\\n',\n                itemtype: 'property',\n                name: 'while',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\n// This example logs the lines below to the console\\n// 4\\n// 3\\n// 2\\n// 1\\n// 0\\nlet num = 5;\\nwhile (num > 0) {\\n  num = num - 1;\\n  console.log(num);\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 416,\n                description:\n                  '<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify\">the MDN entry</a>:\\nThe JSON.stringify() method converts a JavaScript object or value to a JSON <a href=\"#/p5/string\">string</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'stringify',\n                static: 1,\n                params: [\n                  {\n                    name: 'object',\n                    description:\n                      '<p>:Javascript object that you would like to convert to JSON</p>\\n',\n                    type: 'Object'\n                  }\n                ],\n                example: [\n                  '\\n<div class=\\'norender\\'>\\n<code>\\nlet myObject = { x: 5, y: 6 };\\nlet myObjectAsString = JSON.stringify(myObject);\\nconsole.log(myObjectAsString); // prints \"{\"x\":5,\"y\":6}\" to the console\\nconsole.log(typeof myObjectAsString); // prints \\'string\\' to the console\\n</code>\\n</div>'\n                ],\n                class: 'JSON',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/reference.js',\n                line: 435,\n                description:\n                  '<p>Prints a message to your browser&#39;s web console. When using p5, you can use <a href=\"#/p5/print\">print</a>\\nand <a href=\"#/p5/console/log\">console.log</a> interchangeably.</p>\\n<p>The console is opened differently depending on which browser you are using.\\nHere are links on how to open the console in <a href=\"https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Opening_the_Web_Console\">Firefox</a>\\n, <a href=\"https://developers.google.com/web/tools/chrome-devtools/open\">Chrome</a>, <a href=\"https://docs.microsoft.com/en-us/microsoft-edge/devtools-guide/console\">Edge</a>,\\nand <a href=\"https://support.apple.com/en-ca/guide/safari/sfri20948/mac\">Safari</a>. With the <a href=\"https://editor.p5js.org/\">online p5 editor</a> the\\nconsole is embedded directly in the page underneath the code editor.</p>\\n<p>From <a href=\"https://developer.mozilla.org/en-US/docs/Web/API/Console/log\">the MDN entry</a>:\\nThe Console method log() outputs a message to the web console. The message may be a single <a href=\"#/p5/string\">string</a> (with optional substitution values),\\nor it may be any one or more JavaScript <a href=\"#/p5/object\">objects</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'log',\n                static: 1,\n                params: [\n                  {\n                    name: 'message',\n                    description:\n                      '<p>:Message that you would like to print to the console</p>\\n',\n                    type: 'String|Expression|Object'\n                  }\n                ],\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nlet myNum = 5;\\nconsole.log(myNum); // prints 5 to the console\\nconsole.log(myNum + 12); // prints 17 to the console\\n</code>\\n</div>\"\n                ],\n                class: 'console',\n                module: 'Foundation'\n              },\n              {\n                file: 'src/core/rendering.js',\n                line: 15,\n                description:\n                  '<p>Creates a canvas element in the document, and sets the dimensions of it\\nin pixels. This method should be called only once at the start of setup.\\nCalling <a href=\"#/p5/createCanvas\">createCanvas</a> more than once in a sketch will result in very\\nunpredictable behavior. If you want more than one drawing canvas\\nyou could use <a href=\"#/p5/createGraphics\">createGraphics</a> (hidden by default but it can be shown).\\n<br><br>\\nThe system variables width and height are set by the parameters passed\\nto this function. If <a href=\"#/p5/createCanvas\">createCanvas()</a> is not used, the window will be\\ngiven a default size of 100x100 pixels.\\n<br><br>\\nFor more ways to position the canvas, see the\\n<a href=\\'https://github.com/processing/p5.js/wiki/Positioning-your-canvas\\'>\\npositioning the canvas</a> wiki page.</p>\\n',\n                itemtype: 'method',\n                name: 'createCanvas',\n                params: [\n                  {\n                    name: 'w',\n                    description: '<p>width of the canvas</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'h',\n                    description: '<p>height of the canvas</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'renderer',\n                    description: '<p>either P2D or WEBGL</p>\\n',\n                    type: 'Constant',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'p5.Renderer'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 50);\\n  background(153);\\n  line(0, 0, width, height);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'Black line extending from top-left of canvas to bottom right.',\n                class: 'p5',\n                module: 'Rendering',\n                submodule: 'Rendering'\n              },\n              {\n                file: 'src/core/rendering.js',\n                line: 115,\n                description:\n                  '<p>Resizes the canvas to given width and height. The canvas will be cleared\\nand draw will be called immediately, allowing the sketch to re-render itself\\nin the resized canvas.</p>\\n',\n                itemtype: 'method',\n                name: 'resizeCanvas',\n                params: [\n                  {\n                    name: 'w',\n                    description: '<p>width of the canvas</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'h',\n                    description: '<p>height of the canvas</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'noRedraw',\n                    description: '<p>don&#39;t redraw the canvas immediately</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n<div class=\"norender\"><code>\\nfunction setup() {\\n  createCanvas(windowWidth, windowHeight);\\n}\\n\\nfunction draw() {\\n  background(0, 100, 200);\\n}\\n\\nfunction windowResized() {\\n  resizeCanvas(windowWidth, windowHeight);\\n}\\n</code></div>'\n                ],\n                alt: 'No image displayed.',\n                class: 'p5',\n                module: 'Rendering',\n                submodule: 'Rendering'\n              },\n              {\n                file: 'src/core/rendering.js',\n                line: 170,\n                description:\n                  '<p>Removes the default canvas for a p5 sketch that doesn&#39;t\\nrequire a canvas</p>\\n',\n                itemtype: 'method',\n                name: 'noCanvas',\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  noCanvas();\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'no image displayed',\n                class: 'p5',\n                module: 'Rendering',\n                submodule: 'Rendering'\n              },\n              {\n                file: 'src/core/rendering.js',\n                line: 193,\n                description:\n                  '<p>Creates and returns a new p5.Renderer object. Use this class if you need\\nto draw into an off-screen graphics buffer. The two parameters define the\\nwidth and height in pixels.</p>\\n',\n                itemtype: 'method',\n                name: 'createGraphics',\n                params: [\n                  {\n                    name: 'w',\n                    description: '<p>width of the offscreen graphics buffer</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'h',\n                    description: '<p>height of the offscreen graphics buffer</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'renderer',\n                    description: '<p>either P2D or WEBGL\\nundefined defaults to p2d</p>\\n',\n                    type: 'Constant',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'offscreen graphics buffer',\n                  type: 'p5.Graphics'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nlet pg;\\nfunction setup() {\\n  createCanvas(100, 100);\\n  pg = createGraphics(100, 100);\\n}\\nfunction draw() {\\n  background(200);\\n  pg.background(100);\\n  pg.noStroke();\\n  pg.ellipse(pg.width / 2, pg.height / 2, 50, 50);\\n  image(pg, 50, 50);\\n  image(pg, 0, 0, 50, 50);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '4 grey squares alternating light and dark grey. White quarter circle mid-left.',\n                class: 'p5',\n                module: 'Rendering',\n                submodule: 'Rendering'\n              },\n              {\n                file: 'src/core/rendering.js',\n                line: 232,\n                description:\n                  \"<p>Blends the pixels in the display window according to the defined mode.\\nThere is a choice of the following modes to blend the source pixels (A)\\nwith the ones of pixels already in the display window (B):</p>\\n<ul>\\n<li><code>BLEND</code> - linear interpolation of colours: C =\\nA\\\\*factor + B. <b>This is the default blending mode.</b></li>\\n<li><code>ADD</code> - sum of A and B</li>\\n<li><code>DARKEST</code> - only the darkest colour succeeds: C =\\nmin(A\\\\*factor, B).</li>\\n<li><code>LIGHTEST</code> - only the lightest colour succeeds: C =\\nmax(A\\\\*factor, B).</li>\\n<li><code>DIFFERENCE</code> - subtract colors from underlying image.</li>\\n<li><code>EXCLUSION</code> - similar to <code>DIFFERENCE</code>, but less\\nextreme.</li>\\n<li><code>MULTIPLY</code> - multiply the colors, result will always be\\ndarker.</li>\\n<li><code>SCREEN</code> - opposite multiply, uses inverse values of the\\ncolors.</li>\\n<li><code>REPLACE</code> - the pixels entirely replace the others and\\ndon't utilize alpha (transparency) values.</li>\\n<li><code>REMOVE</code> - removes pixels from B with the alpha strength of A.</li>\\n<li><code>OVERLAY</code> - mix of <code>MULTIPLY</code> and <code>SCREEN\\n</code>. Multiplies dark values, and screens light values. <em>(2D)</em></li>\\n<li><code>HARD_LIGHT</code> - <code>SCREEN</code> when greater than 50%\\ngray, <code>MULTIPLY</code> when lower. <em>(2D)</em></li>\\n<li><code>SOFT_LIGHT</code> - mix of <code>DARKEST</code> and\\n<code>LIGHTEST</code>. Works like <code>OVERLAY</code>, but not as harsh. <em>(2D)</em>\\n</li>\\n<li><code>DODGE</code> - lightens light tones and increases contrast,\\nignores darks. <em>(2D)</em></li>\\n<li><code>BURN</code> - darker areas are applied, increasing contrast,\\nignores lights. <em>(2D)</em></li>\\n<li><code>SUBTRACT</code> - remainder of A and B <em>(3D)</em></li>\\n</ul>\\n<br><br>\\n<em>(2D)</em> indicates that this blend mode <b>only</b> works in the 2D renderer.<br>\\n<em>(3D)</em> indicates that this blend mode <b>only</b> works in the WEBGL renderer.\",\n                itemtype: 'method',\n                name: 'blendMode',\n                params: [\n                  {\n                    name: 'mode',\n                    description:\n                      '<p>blend mode to set for canvas.\\n               either BLEND, DARKEST, LIGHTEST, DIFFERENCE, MULTIPLY,\\n               EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\\n               SOFT_LIGHT, DODGE, BURN, ADD, REMOVE or SUBTRACT</p>\\n',\n                    type: 'Constant'\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\nblendMode(LIGHTEST);\\nstrokeWeight(30);\\nstroke(80, 150, 255);\\nline(25, 25, 75, 75);\\nstroke(255, 50, 50);\\nline(75, 25, 25, 75);\\n</code>\\n</div>\\n<div>\\n<code>\\nblendMode(MULTIPLY);\\nstrokeWeight(30);\\nstroke(80, 150, 255);\\nline(25, 25, 75, 75);\\nstroke(255, 50, 50);\\nline(75, 25, 25, 75);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'translucent image thick red & blue diagonal rounded lines intersecting center\\nThick red & blue diagonal rounded lines intersecting center. dark at overlap',\n                class: 'p5',\n                module: 'Rendering',\n                submodule: 'Rendering'\n              },\n              {\n                file: 'src/core/rendering.js',\n                line: 315,\n                itemtype: 'property',\n                name:\n                  \"drawingContext\\nThe p5.js API provides a lot of functionality for creating graphics, but there is\\nsome native HTML5 Canvas functionality that is not exposed by p5. You can still call\\nit directly using the variable `drawingContext`, as in the example shown. This is\\nthe equivalent of calling `canvas.getContext('2d');` or `canvas.getContext('webgl');`.\\nSee this\\n<a href=\\\"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D\\\">\\nreference for the native canvas API</a> for possible drawing functions you can call.\",\n                example: [\n                  \"\\n<div><code>\\nfunction setup() {\\n  drawingContext.shadowOffsetX = 5;\\n  drawingContext.shadowOffsetY = -5;\\n  drawingContext.shadowBlur = 10;\\n  drawingContext.shadowColor = 'black';\\n  background(200);\\n  ellipse(width / 2, height / 2, 50, 50);\\n}\\n</code></div>\"\n                ],\n                alt: 'white ellipse with shadow blur effect around edges',\n                class: 'p5',\n                module: 'Rendering',\n                submodule: 'Rendering'\n              },\n              {\n                file: 'src/core/shim.js',\n                line: 18,\n                description:\n                  '<p>shim for Uint8ClampedArray.slice\\n(allows arrayCopy to work with pixels[])\\nwith thanks to <a href=\"http://halfpapstudios.com/blog/tag/html5-canvas/\">http://halfpapstudios.com/blog/tag/html5-canvas/</a>\\nEnumerable set to false to protect for...in from\\nUint8ClampedArray.prototype pollution.</p>\\n',\n                class: 'p5',\n                module: 'Rendering'\n              },\n              {\n                file: 'src/core/shim.js',\n                line: 39,\n                description:\n                  '<p>this is implementation of Object.assign() which is unavailable in\\nIE11 and (non-Chrome) Android browsers.\\nThe assign() method is used to copy the values of all enumerable\\nown properties from one or more source objects to a target object.\\nIt will return the target object.\\nModified from <a href=\"https://github.com/ljharb/object.assign\">https://github.com/ljharb/object.assign</a></p>\\n',\n                class: 'p5',\n                module: 'Rendering'\n              },\n              {\n                file: 'src/core/structure.js',\n                line: 10,\n                description:\n                  '<p>Stops p5.js from continuously executing the code within <a href=\"#/p5/draw\">draw()</a>.\\nIf <a href=\"#/p5/loop\">loop()</a> is called, the code in <a href=\"#/p5/draw\">draw()</a> begins to run continuously again.\\nIf using <a href=\"#/p5/noLoop\">noLoop()</a> in <a href=\"#/p5/setup\">setup()</a>, it should be the last line inside the block.\\n<br><br>\\nWhen <a href=\"#/p5/noLoop\">noLoop()</a> is used, it&#39;s not possible to manipulate or access the\\nscreen inside event handling functions such as <a href=\"#/p5/mousePressed\">mousePressed()</a> or\\n<a href=\"#/p5/keyPressed\">keyPressed()</a>. Instead, use those functions to call <a href=\"#/p5/redraw\">redraw()</a> or <a href=\"#/p5/loop\">loop()</a>,\\nwhich will run <a href=\"#/p5/draw\">draw()</a>, which can update the screen properly. This means\\nthat when <a href=\"#/p5/noLoop\">noLoop()</a> has been called, no drawing can happen, and functions\\nlike <a href=\"#/p5/saveFrame\">saveFrame()</a> or <a href=\"#/p5/loadPixels\">loadPixels()</a> may not be used.\\n<br><br>\\nNote that if the sketch is resized, <a href=\"#/p5/redraw\">redraw()</a> will be called to update\\nthe sketch, even after <a href=\"#/p5/noLoop\">noLoop()</a> has been specified. Otherwise, the sketch\\nwould enter an odd state until <a href=\"#/p5/loop\">loop()</a> was called.</p>\\n',\n                itemtype: 'method',\n                name: 'noLoop',\n                example: [\n                  '\\n<div><code>\\nfunction setup() {\\n  createCanvas(100, 100);\\n  background(200);\\n  noLoop();\\n}\\n\\nfunction draw() {\\n  line(10, 10, 90, 90);\\n}\\n</code></div>\\n\\n<div><code>\\nlet x = 0;\\nfunction setup() {\\n  createCanvas(100, 100);\\n}\\n\\nfunction draw() {\\n  background(204);\\n  x = x + 0.1;\\n  if (x > width) {\\n    x = 0;\\n  }\\n  line(x, 0, x, height);\\n}\\n\\nfunction mousePressed() {\\n  noLoop();\\n}\\n\\nfunction mouseReleased() {\\n  loop();\\n}\\n</code></div>'\n                ],\n                alt:\n                  '113 pixel long line extending from top-left to bottom right of canvas.\\nhorizontal line moves slowly from left. Loops but stops on mouse press.',\n                class: 'p5',\n                module: 'Structure',\n                submodule: 'Structure'\n              },\n              {\n                file: 'src/core/structure.js',\n                line: 72,\n                description:\n                  '<p>By default, p5.js loops through draw() continuously, executing the code\\nwithin it. However, the <a href=\"#/p5/draw\">draw()</a> loop may be stopped by calling <a href=\"#/p5/noLoop\">noLoop()</a>.\\nIn that case, the <a href=\"#/p5/draw\">draw()</a> loop can be resumed with loop().</p>\\n<p>Avoid calling loop() from inside setup().</p>\\n',\n                itemtype: 'method',\n                name: 'loop',\n                example: [\n                  '\\n<div><code>\\nlet x = 0;\\nfunction setup() {\\n  createCanvas(100, 100);\\n  noLoop();\\n}\\n\\nfunction draw() {\\n  background(204);\\n  x = x + 0.1;\\n  if (x > width) {\\n    x = 0;\\n  }\\n  line(x, 0, x, height);\\n}\\n\\nfunction mousePressed() {\\n  loop();\\n}\\n\\nfunction mouseReleased() {\\n  noLoop();\\n}\\n</code></div>'\n                ],\n                alt:\n                  'horizontal line moves slowly from left. Loops but stops on mouse press.',\n                class: 'p5',\n                module: 'Structure',\n                submodule: 'Structure'\n              },\n              {\n                file: 'src/core/structure.js',\n                line: 120,\n                description:\n                  '<p>The <a href=\"#/p5/push\">push()</a> function saves the current drawing style settings and\\ntransformations, while <a href=\"#/p5/pop\">pop()</a> restores these settings. Note that these\\nfunctions are always used together. They allow you to change the style\\nand transformation settings and later return to what you had. When a new\\nstate is started with <a href=\"#/p5/push\">push()</a>, it builds on the current style and transform\\ninformation. The <a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a> functions can be embedded to provide\\nmore control. (See the second example for a demonstration.)\\n<br><br>\\n<a href=\"#/p5/push\">push()</a> stores information related to the current transformation state\\nand style settings controlled by the following functions:\\n<a href=\"#/p5/fill\">fill()</a>,\\n<a href=\"#/p5/noFill\">noFill()</a>,\\n<a href=\"#/p5/noStroke\">noStroke()</a>,\\n<a href=\"#/p5/stroke\">stroke()</a>,\\n<a href=\"#/p5/tint\">tint()</a>,\\n<a href=\"#/p5/noTint\">noTint()</a>,\\n<a href=\"#/p5/strokeWeight\">strokeWeight()</a>,\\n<a href=\"#/p5/strokeCap\">strokeCap()</a>,\\n<a href=\"#/p5/strokeJoin\">strokeJoin()</a>,\\n<a href=\"#/p5/imageMode\">imageMode()</a>,\\n<a href=\"#/p5/rectMode\">rectMode()</a>,\\n<a href=\"#/p5/ellipseMode\">ellipseMode()</a>,\\n<a href=\"#/p5/colorMode\">colorMode()</a>,\\n<a href=\"#/p5/textAlign\">textAlign()</a>,\\n<a href=\"#/p5/textFont\">textFont()</a>,\\n<a href=\"#/p5/textSize\">textSize()</a>,\\n<a href=\"#/p5/textLeading\">textLeading()</a>,\\n<a href=\"#/p5/applyMatrix\">applyMatrix()</a>,\\n<a href=\"#/p5/resetMatrix\">resetMatrix()</a>,\\n<a href=\"#/p5/rotate\">rotate()</a>,\\n<a href=\"#/p5/scale\">scale()</a>,\\n<a href=\"#/p5/shearX\">shearX()</a>,\\n<a href=\"#/p5/shearY\">shearY()</a>,\\n<a href=\"#/p5/translate\">translate()</a>,\\n<a href=\"#/p5/noiseSeed\">noiseSeed()</a>.\\n<br><br>\\nIn WEBGL mode additional style settings are stored. These are controlled by the following functions: <a href=\"#/p5/setCamera\">setCamera()</a>, <a href=\"#/p5/ambientLight\">ambientLight()</a>, <a href=\"#/p5/directionalLight\">directionalLight()</a>,\\n<a href=\"#/p5/pointLight\">pointLight()</a>, <a href=\"#/p5/texture\">texture()</a>, <a href=\"#/p5/specularMaterial\">specularMaterial()</a>, <a href=\"#/p5/shininess\">shininess()</a>, <a href=\"#/p5/normalMaterial\">normalMaterial()</a>\\nand <a href=\"#/p5/shader\">shader()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'push',\n                example: [\n                  '\\n<div>\\n<code>\\nellipse(0, 50, 33, 33); // Left circle\\n\\npush(); // Start a new drawing state\\nstrokeWeight(10);\\nfill(204, 153, 0);\\ntranslate(50, 0);\\nellipse(0, 50, 33, 33); // Middle circle\\npop(); // Restore original state\\n\\nellipse(100, 50, 33, 33); // Right circle\\n</code>\\n</div>\\n<div>\\n<code>\\nellipse(0, 50, 33, 33); // Left circle\\n\\npush(); // Start a new drawing state\\nstrokeWeight(10);\\nfill(204, 153, 0);\\nellipse(33, 50, 33, 33); // Left-middle circle\\n\\npush(); // Start another new drawing state\\nstroke(0, 102, 153);\\nellipse(66, 50, 33, 33); // Right-middle circle\\npop(); // Restore previous state\\n\\npop(); // Restore original state\\n\\nellipse(100, 50, 33, 33); // Right circle\\n</code>\\n</div>'\n                ],\n                alt:\n                  'Gold ellipse + thick black outline @center 2 white ellipses on left and right.\\n2 Gold ellipses left black right blue stroke. 2 white ellipses on left+right.',\n                class: 'p5',\n                module: 'Structure',\n                submodule: 'Structure'\n              },\n              {\n                file: 'src/core/structure.js',\n                line: 211,\n                description:\n                  '<p>The <a href=\"#/p5/push\">push()</a> function saves the current drawing style settings and\\ntransformations, while <a href=\"#/p5/pop\">pop()</a> restores these settings. Note that these\\nfunctions are always used together. They allow you to change the style\\nand transformation settings and later return to what you had. When a new\\nstate is started with <a href=\"#/p5/push\">push()</a>, it builds on the current style and transform\\ninformation. The <a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a> functions can be embedded to provide\\nmore control. (See the second example for a demonstration.)\\n<br><br>\\n<a href=\"#/p5/push\">push()</a> stores information related to the current transformation state\\nand style settings controlled by the following functions:\\n<a href=\"#/p5/fill\">fill()</a>,\\n<a href=\"#/p5/noFill\">noFill()</a>,\\n<a href=\"#/p5/noStroke\">noStroke()</a>,\\n<a href=\"#/p5/stroke\">stroke()</a>,\\n<a href=\"#/p5/tint\">tint()</a>,\\n<a href=\"#/p5/noTint\">noTint()</a>,\\n<a href=\"#/p5/strokeWeight\">strokeWeight()</a>,\\n<a href=\"#/p5/strokeCap\">strokeCap()</a>,\\n<a href=\"#/p5/strokeJoin\">strokeJoin()</a>,\\n<a href=\"#/p5/imageMode\">imageMode()</a>,\\n<a href=\"#/p5/rectMode\">rectMode()</a>,\\n<a href=\"#/p5/ellipseMode\">ellipseMode()</a>,\\n<a href=\"#/p5/colorMode\">colorMode()</a>,\\n<a href=\"#/p5/textAlign\">textAlign()</a>,\\n<a href=\"#/p5/textFont\">textFont()</a>,\\n<a href=\"#/p5/textSize\">textSize()</a>,\\n<a href=\"#/p5/textLeading\">textLeading()</a>,\\n<a href=\"#/p5/applyMatrix\">applyMatrix()</a>,\\n<a href=\"#/p5/resetMatrix\">resetMatrix()</a>,\\n<a href=\"#/p5/rotate\">rotate()</a>,\\n<a href=\"#/p5/scale\">scale()</a>,\\n<a href=\"#/p5/shearX\">shearX()</a>,\\n<a href=\"#/p5/shearY\">shearY()</a>,\\n<a href=\"#/p5/translate\">translate()</a>,\\n<a href=\"#/p5/noiseSeed\">noiseSeed()</a>.\\n<br><br>\\nIn WEBGL mode additional style settings are stored. These are controlled by the following functions: <a href=\"#/p5/setCamera\">setCamera()</a>, <a href=\"#/p5/ambientLight\">ambientLight()</a>, <a href=\"#/p5/directionalLight\">directionalLight()</a>,\\n<a href=\"#/p5/pointLight\">pointLight()</a>, <a href=\"#/p5/texture\">texture()</a>, <a href=\"#/p5/specularMaterial\">specularMaterial()</a>, <a href=\"#/p5/shininess\">shininess()</a>, <a href=\"#/p5/normalMaterial\">normalMaterial()</a>\\nand <a href=\"#/p5/shader\">shader()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'pop',\n                example: [\n                  '\\n<div>\\n<code>\\nellipse(0, 50, 33, 33); // Left circle\\n\\npush(); // Start a new drawing state\\ntranslate(50, 0);\\nstrokeWeight(10);\\nfill(204, 153, 0);\\nellipse(0, 50, 33, 33); // Middle circle\\npop(); // Restore original state\\n\\nellipse(100, 50, 33, 33); // Right circle\\n</code>\\n</div>\\n<div>\\n<code>\\nellipse(0, 50, 33, 33); // Left circle\\n\\npush(); // Start a new drawing state\\nstrokeWeight(10);\\nfill(204, 153, 0);\\nellipse(33, 50, 33, 33); // Left-middle circle\\n\\npush(); // Start another new drawing state\\nstroke(0, 102, 153);\\nellipse(66, 50, 33, 33); // Right-middle circle\\npop(); // Restore previous state\\n\\npop(); // Restore original state\\n\\nellipse(100, 50, 33, 33); // Right circle\\n</code>\\n</div>'\n                ],\n                alt:\n                  'Gold ellipse + thick black outline @center 2 white ellipses on left and right.\\n2 Gold ellipses left black right blue stroke. 2 white ellipses on left+right.',\n                class: 'p5',\n                module: 'Structure',\n                submodule: 'Structure'\n              },\n              {\n                file: 'src/core/structure.js',\n                line: 303,\n                description:\n                  '<p>Executes the code within <a href=\"#/p5/draw\">draw()</a> one time. This functions allows the\\n program to update the display window only when necessary, for example\\n when an event registered by <a href=\"#/p5/mousePressed\">mousePressed()</a> or <a href=\"#/p5/keyPressed\">keyPressed()</a> occurs.\\n <br><br>\\n In structuring a program, it only makes sense to call <a href=\"#/p5/redraw\">redraw()</a> within\\n events such as <a href=\"#/p5/mousePressed\">mousePressed()</a>. This is because <a href=\"#/p5/redraw\">redraw()</a> does not run\\n <a href=\"#/p5/draw\">draw()</a> immediately (it only sets a flag that indicates an update is\\n needed).\\n <br><br>\\n The <a href=\"#/p5/redraw\">redraw()</a> function does not work properly when called inside <a href=\"#/p5/draw\">draw()</a>.\\n To enable/disable animations, use <a href=\"#/p5/loop\">loop()</a> and <a href=\"#/p5/noLoop\">noLoop()</a>.\\n <br><br>\\n In addition you can set the number of redraws per method call. Just\\n add an integer as single parameter for the number of redraws.</p>\\n',\n                itemtype: 'method',\n                name: 'redraw',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>Redraw for n-times. The default value is 1.</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n <div><code>\\n let x = 0;\\nfunction setup() {\\n   createCanvas(100, 100);\\n   noLoop();\\n }\\nfunction draw() {\\n   background(204);\\n   line(x, 0, x, height);\\n }\\nfunction mousePressed() {\\n   x += 1;\\n   redraw();\\n }\\n </code></div>\\n<div class='norender'><code>\\n let x = 0;\\nfunction setup() {\\n   createCanvas(100, 100);\\n   noLoop();\\n }\\nfunction draw() {\\n   background(204);\\n   x += 1;\\n   line(x, 0, x, height);\\n }\\nfunction mousePressed() {\\n   redraw(5);\\n }\\n </code></div>\"\n                ],\n                alt: 'black line on far left of canvas\\n black line on far left of canvas',\n                class: 'p5',\n                module: 'Structure',\n                submodule: 'Structure'\n              },\n              {\n                file: 'src/core/structure.js',\n                line: 404,\n                description:\n                  '<p>The <code>p5()</code> constructor enables you to activate &quot;instance mode&quot; instead of normal\\n&quot;global mode&quot;. This is an advanced topic. A short description and example is\\nincluded below. Please see\\n<a target=\"blank\" href=\"https://www.youtube.com/watch?v=Su792jEauZg&feature=youtu.be\">\\nDan Shiffman&#39;s Coding Train video tutorial</a> or this\\n<a target=\"blank\" href=\"https://github.com/processing/p5.js/wiki/p5.js-overview#instantiation--namespace\">tutorial page</a>\\nfor more info.</p>\\n<p>By default, all p5.js functions are in the global namespace (i.e. bound to the window\\nobject), meaning you can call them simply <code>ellipse()</code>, <code>fill()</code>, etc. However, this\\nmight be inconvenient if you are mixing with other JS libraries (synchronously or\\nasynchronously) or writing long programs of your own. p5.js currently supports a\\nway around this problem called &quot;instance mode&quot;. In instance mode, all p5 functions\\nare bound up in a single variable instead of polluting your global namespace.</p>\\n<p>Optionally, you can specify a default container for the canvas and any other elements\\nto append to with a second argument. You can give the ID of an element in your html,\\nor an html node itself.</p>\\n<p>Note that creating instances like this also allows you to have more than one p5 sketch on\\na single web page, as they will each be wrapped up with their own set up variables. Of\\ncourse, you could also use iframes to have multiple sketches in global mode.</p>\\n',\n                itemtype: 'method',\n                name: 'p5',\n                params: [\n                  {\n                    name: 'sketch',\n                    description: '<p>a function containing a p5.js sketch</p>\\n',\n                    type: 'Object'\n                  },\n                  {\n                    name: 'node',\n                    description:\n                      '<p>ID or pointer to HTML DOM node to contain sketch in</p>\\n',\n                    type: 'String|Object'\n                  }\n                ],\n                example: [\n                  \"\\n<div class='norender'><code>\\nconst s = p => {\\n  let x = 100;\\n  let y = 100;\\n\\n  p.setup = function() {\\n    p.createCanvas(700, 410);\\n  };\\n\\n  p.draw = function() {\\n    p.background(0);\\n    p.fill(255);\\n    p.rect(x, y, 50, 50);\\n  };\\n};\\n\\nnew p5(s); // invoke p5\\n</code></div>\"\n                ],\n                alt: 'white rectangle on black background',\n                class: 'p5',\n                module: 'Structure',\n                submodule: 'Structure'\n              },\n              {\n                file: 'src/core/transform.js',\n                line: 11,\n                description:\n                  '<p>Multiplies the current matrix by the one specified through the parameters.\\nThis is a powerful operation that can perform the equivalent of translate,\\nscale, shear and rotate all at once. You can learn more about transformation\\nmatrices on <a href=\"https://en.wikipedia.org/wiki/Transformation_matrix\">\\nWikipedia</a>.</p>\\n<p>The naming of the arguments here follows the naming of the <a href=\\n\"https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-transform\">\\nWHATWG specification</a> and corresponds to a\\ntransformation matrix of the\\nform:</p>\\n<blockquote>\\n<p><img style=\"max-width: 150px\" src=\"assets/transformation-matrix.png\"\\nalt=\"The transformation matrix used when applyMatrix is called\"/></p>\\n</blockquote>\\n',\n                itemtype: 'method',\n                name: 'applyMatrix',\n                params: [\n                  {\n                    name: 'a',\n                    description:\n                      '<p>numbers which define the 2x3 matrix to be multiplied</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'b',\n                    description:\n                      '<p>numbers which define the 2x3 matrix to be multiplied</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'c',\n                    description:\n                      '<p>numbers which define the 2x3 matrix to be multiplied</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'd',\n                    description:\n                      '<p>numbers which define the 2x3 matrix to be multiplied</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'e',\n                    description:\n                      '<p>numbers which define the 2x3 matrix to be multiplied</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'f',\n                    description:\n                      '<p>numbers which define the 2x3 matrix to be multiplied</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\nfunction setup() {\\n  frameRate(10);\\n  rectMode(CENTER);\\n}\\n\\nfunction draw() {\\n  let step = frameCount % 20;\\n  background(200);\\n  // Equivalent to translate(x, y);\\n  applyMatrix(1, 0, 0, 1, 40 + step, 50);\\n  rect(0, 0, 50, 50);\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\nfunction setup() {\\n  frameRate(10);\\n  rectMode(CENTER);\\n}\\n\\nfunction draw() {\\n  let step = frameCount % 20;\\n  background(200);\\n  translate(50, 50);\\n  // Equivalent to scale(x, y);\\n  applyMatrix(1 / step, 0, 0, 1 / step, 0, 0);\\n  rect(0, 0, 50, 50);\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\nfunction setup() {\\n  frameRate(10);\\n  rectMode(CENTER);\\n}\\n\\nfunction draw() {\\n  let step = frameCount % 20;\\n  let angle = map(step, 0, 20, 0, TWO_PI);\\n  let cos_a = cos(angle);\\n  let sin_a = sin(angle);\\n  background(200);\\n  translate(50, 50);\\n  // Equivalent to rotate(angle);\\n  applyMatrix(cos_a, sin_a, -sin_a, cos_a, 0, 0);\\n  rect(0, 0, 50, 50);\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\nfunction setup() {\\n  frameRate(10);\\n  rectMode(CENTER);\\n}\\n\\nfunction draw() {\\n  let step = frameCount % 20;\\n  let angle = map(step, 0, 20, -PI / 4, PI / 4);\\n  background(200);\\n  translate(50, 50);\\n  // equivalent to shearX(angle);\\n  let shear_factor = 1 / tan(PI / 2 - angle);\\n  applyMatrix(1, 0, shear_factor, 1, 0, 0);\\n  rect(0, 0, 50, 50);\\n}\\n</code>\\n</div>\\n<div modernizr='webgl'>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  noFill();\\n}\\n\\nfunction draw() {\\n  background(200);\\n  rotateY(PI / 6);\\n  stroke(153);\\n  box(35);\\n  let rad = millis() / 1000;\\n  // Set rotation angles\\n  let ct = cos(rad);\\n  let st = sin(rad);\\n  // Matrix for rotation around the Y axis\\n  applyMatrix(  ct, 0.0,  st,  0.0,\\n               0.0, 1.0, 0.0,  0.0,\\n               -st, 0.0,  ct,  0.0,\\n               0.0, 0.0, 0.0,  1.0);\\n  stroke(255);\\n  box(50);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'A rectangle translating to the right\\nA rectangle shrinking to the center\\nA rectangle rotating clockwise about the center\\nA rectangle shearing',\n                class: 'p5',\n                module: 'Transform',\n                submodule: 'Transform'\n              },\n              {\n                file: 'src/core/transform.js',\n                line: 148,\n                description:\n                  '<p>Replaces the current matrix with the identity matrix.</p>\\n',\n                itemtype: 'method',\n                name: 'resetMatrix',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\ntranslate(50, 50);\\napplyMatrix(0.5, 0.5, -0.5, 0.5, 0, 0);\\nrect(0, 0, 20, 20);\\n// Note that the translate is also reset.\\nresetMatrix();\\nrect(0, 0, 20, 20);\\n</code>\\n</div>'\n                ],\n                alt: 'A rotated retangle in the center with another at the top left corner',\n                class: 'p5',\n                module: 'Transform',\n                submodule: 'Transform'\n              },\n              {\n                file: 'src/core/transform.js',\n                line: 174,\n                description:\n                  '<p>Rotates a shape the amount specified by the angle parameter. This\\nfunction accounts for <a href=\"#/p5/angleMode\">angleMode</a>, so angles can be entered in either\\nRADIANS or DEGREES.\\n<br><br>\\nObjects are always rotated around their relative position to the\\norigin and positive numbers rotate objects in a clockwise direction.\\nTransformations apply to everything that happens after and subsequent\\ncalls to the function accumulates the effect. For example, calling\\nrotate(HALF_PI) and then rotate(HALF_PI) is the same as rotate(PI).\\nAll tranformations are reset when <a href=\"#/p5/draw\">draw()</a> begins again.\\n<br><br>\\nTechnically, <a href=\"#/p5/rotate\">rotate()</a> multiplies the current transformation matrix\\nby a rotation matrix. This function can be further controlled by\\nthe <a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'rotate',\n                params: [\n                  {\n                    name: 'angle',\n                    description:\n                      '<p>the angle of rotation, specified in radians\\n                       or degrees, depending on current angleMode</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'axis',\n                    description: '<p>(in 3d) the axis to rotate around</p>\\n',\n                    type: 'p5.Vector|Number[]',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\ntranslate(width / 2, height / 2);\\nrotate(PI / 3.0);\\nrect(-26, -26, 52, 52);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'white 52x52 rect with black outline at center rotated counter 45 degrees',\n                class: 'p5',\n                module: 'Transform',\n                submodule: 'Transform'\n              },\n              {\n                file: 'src/core/transform.js',\n                line: 214,\n                description: '<p>Rotates around X axis.</p>\\n',\n                itemtype: 'method',\n                name: 'rotateX',\n                params: [\n                  {\n                    name: 'angle',\n                    description:\n                      '<p>the angle of rotation, specified in radians\\n                       or degrees, depending on current angleMode</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div modernizr='webgl'>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(255);\\n  rotateX(millis() / 1000);\\n  box();\\n}\\n</code>\\n</div>\"\n                ],\n                alt: '3d box rotating around the x axis.',\n                class: 'p5',\n                module: 'Transform',\n                submodule: 'Transform'\n              },\n              {\n                file: 'src/core/transform.js',\n                line: 244,\n                description: '<p>Rotates around Y axis.</p>\\n',\n                itemtype: 'method',\n                name: 'rotateY',\n                params: [\n                  {\n                    name: 'angle',\n                    description:\n                      '<p>the angle of rotation, specified in radians\\n                       or degrees, depending on current angleMode</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div modernizr='webgl'>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(255);\\n  rotateY(millis() / 1000);\\n  box();\\n}\\n</code>\\n</div>\"\n                ],\n                alt: '3d box rotating around the y axis.',\n                class: 'p5',\n                module: 'Transform',\n                submodule: 'Transform'\n              },\n              {\n                file: 'src/core/transform.js',\n                line: 274,\n                description: '<p>Rotates around Z axis. Webgl mode only.</p>\\n',\n                itemtype: 'method',\n                name: 'rotateZ',\n                params: [\n                  {\n                    name: 'angle',\n                    description:\n                      '<p>the angle of rotation, specified in radians\\n                       or degrees, depending on current angleMode</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div modernizr='webgl'>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(255);\\n  rotateZ(millis() / 1000);\\n  box();\\n}\\n</code>\\n</div>\"\n                ],\n                alt: '3d box rotating around the z axis.',\n                class: 'p5',\n                module: 'Transform',\n                submodule: 'Transform'\n              },\n              {\n                file: 'src/core/transform.js',\n                line: 304,\n                description:\n                  '<p>Increases or decreases the size of a shape by expanding and contracting\\nvertices. Objects always scale from their relative origin to the\\ncoordinate system. Scale values are specified as decimal percentages.\\nFor example, the function call scale(2.0) increases the dimension of a\\nshape by 200%.\\n<br><br>\\nTransformations apply to everything that happens after and subsequent\\ncalls to the function multiply the effect. For example, calling scale(2.0)\\nand then scale(1.5) is the same as scale(3.0). If <a href=\"#/p5/scale\">scale()</a> is called\\nwithin <a href=\"#/p5/draw\">draw()</a>, the transformation is reset when the loop begins again.\\n<br><br>\\nUsing this function with the z parameter is only available in WEBGL mode.\\nThis function can be further controlled with <a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'scale',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nrect(30, 20, 50, 50);\\nscale(0.5);\\nrect(30, 20, 50, 50);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nrect(30, 20, 50, 50);\\nscale(0.5, 1.3);\\nrect(30, 20, 50, 50);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'white 52x52 rect with black outline at center rotated counter 45 degrees\\n2 white rects with black outline- 1 50x50 at center. other 25x65 bottom left',\n                class: 'p5',\n                module: 'Transform',\n                submodule: 'Transform',\n                overloads: [\n                  {\n                    line: 304,\n                    params: [\n                      {\n                        name: 's',\n                        description:\n                          '<p>percent to scale the object, or percentage to\\n                     scale the object in the x-axis if multiple arguments\\n                     are given</p>\\n',\n                        type: 'Number|p5.Vector|Number[]'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>percent to scale the object in the y-axis</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'z',\n                        description:\n                          '<p>percent to scale the object in the z-axis (webgl only)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 349,\n                    params: [\n                      {\n                        name: 'scales',\n                        description: '<p>per-axis percents to scale the object</p>\\n',\n                        type: 'p5.Vector|Number[]'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/core/transform.js',\n                line: 379,\n                description:\n                  '<p>Shears a shape around the x-axis the amount specified by the angle\\nparameter. Angles should be specified in the current angleMode.\\nObjects are always sheared around their relative position to the origin\\nand positive numbers shear objects in a clockwise direction.\\n<br><br>\\nTransformations apply to everything that happens after and subsequent\\ncalls to the function accumulates the effect. For example, calling\\nshearX(PI/2) and then shearX(PI/2) is the same as shearX(PI).\\nIf <a href=\"#/p5/shearX\">shearX()</a> is called within the <a href=\"#/p5/draw\">draw()</a>, the transformation is reset when\\nthe loop begins again.\\n<br><br>\\nTechnically, <a href=\"#/p5/shearX\">shearX()</a> multiplies the current transformation matrix by a\\nrotation matrix. This function can be further controlled by the\\n<a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a> functions.</p>\\n',\n                itemtype: 'method',\n                name: 'shearX',\n                params: [\n                  {\n                    name: 'angle',\n                    description:\n                      '<p>angle of shear specified in radians or degrees,\\n                       depending on current angleMode</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\ntranslate(width / 4, height / 4);\\nshearX(PI / 4.0);\\nrect(0, 0, 30, 30);\\n</code>\\n</div>'\n                ],\n                alt: 'white irregular quadrilateral with black outline at top middle.',\n                class: 'p5',\n                module: 'Transform',\n                submodule: 'Transform'\n              },\n              {\n                file: 'src/core/transform.js',\n                line: 419,\n                description:\n                  '<p>Shears a shape around the y-axis the amount specified by the angle\\nparameter. Angles should be specified in the current angleMode. Objects\\nare always sheared around their relative position to the origin and\\npositive numbers shear objects in a clockwise direction.\\n<br><br>\\nTransformations apply to everything that happens after and subsequent\\ncalls to the function accumulates the effect. For example, calling\\nshearY(PI/2) and then shearY(PI/2) is the same as shearY(PI). If\\n<a href=\"#/p5/shearY\">shearY()</a> is called within the <a href=\"#/p5/draw\">draw()</a>, the transformation is reset when\\nthe loop begins again.\\n<br><br>\\nTechnically, <a href=\"#/p5/shearY\">shearY()</a> multiplies the current transformation matrix by a\\nrotation matrix. This function can be further controlled by the\\n<a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a> functions.</p>\\n',\n                itemtype: 'method',\n                name: 'shearY',\n                params: [\n                  {\n                    name: 'angle',\n                    description:\n                      '<p>angle of shear specified in radians or degrees,\\n                       depending on current angleMode</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\ntranslate(width / 4, height / 4);\\nshearY(PI / 4.0);\\nrect(0, 0, 30, 30);\\n</code>\\n</div>'\n                ],\n                alt: 'white irregular quadrilateral with black outline at middle bottom.',\n                class: 'p5',\n                module: 'Transform',\n                submodule: 'Transform'\n              },\n              {\n                file: 'src/core/transform.js',\n                line: 459,\n                description:\n                  '<p>Specifies an amount to displace objects within the display window.\\nThe x parameter specifies left/right translation, the y parameter\\nspecifies up/down translation.\\n<br><br>\\nTransformations are cumulative and apply to everything that happens after\\nand subsequent calls to the function accumulates the effect. For example,\\ncalling translate(50, 0) and then translate(20, 0) is the same as\\ntranslate(70, 0). If <a href=\"#/p5/translate\">translate()</a> is called within <a href=\"#/p5/draw\">draw()</a>, the\\ntransformation is reset when the loop begins again. This function can be\\nfurther controlled by using <a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'translate',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\ntranslate(30, 20);\\nrect(0, 0, 55, 55);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nrect(0, 0, 55, 55); // Draw rect at original 0,0\\ntranslate(30, 20);\\nrect(0, 0, 55, 55); // Draw rect at new 0,0\\ntranslate(14, 14);\\nrect(0, 0, 55, 55); // Draw rect at new 0,0\\n</code>\\n</div>\\n\\n\\n<div>\\n<code>\\nfunction draw() {\\n  background(200);\\n  rectMode(CENTER);\\n  translate(width / 2, height / 2);\\n  translate(p5.Vector.fromAngle(millis() / 1000, 40));\\n  rect(0, 0, 20, 20);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'white 55x55 rect with black outline at center right.\\n3 white 55x55 rects with black outlines at top-l, center-r and bottom-r.\\na 20x20 white rect moving in a circle around the canvas',\n                class: 'p5',\n                module: 'Transform',\n                submodule: 'Transform',\n                overloads: [\n                  {\n                    line: 459,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>left/right translation</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>up/down translation</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>forward/backward translation (webgl only)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 513,\n                    params: [\n                      {\n                        name: 'vector',\n                        description: '<p>the vector to translate by</p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/data/local_storage.js',\n                line: 10,\n                description:\n                  '<p>Stores a value in local storage under the key name.\\n Local storage is saved in the browser and persists\\n between browsing sessions and page reloads.\\n The key can be the name of the variable but doesn&#39;t\\n have to be. To retrieve stored items\\n see <a href=\"#/p5/getItem\">getItem</a>.\\n <br><br>\\n Sensitive data such as passwords or personal information\\n should not be stored in local storage.</p>\\n',\n                itemtype: 'method',\n                name: 'storeItem',\n                params: [\n                  {\n                    name: 'key',\n                    description: '',\n                    type: 'String'\n                  },\n                  {\n                    name: 'value',\n                    description: '',\n                    type: 'String|Number|Object|Boolean|p5.Color|p5.Vector'\n                  }\n                ],\n                example: [\n                  \"\\n <div><code>\\n // Type to change the letter in the\\n // center of the canvas.\\n // If you reload the page, it will\\n // still display the last key you entered\\nlet myText;\\nfunction setup() {\\n   createCanvas(100, 100);\\n   myText = getItem('myText');\\n   if (myText === null) {\\n     myText = '';\\n   }\\n }\\nfunction draw() {\\n   textSize(40);\\n   background(255);\\n   text(myText, width / 2, height / 2);\\n }\\nfunction keyPressed() {\\n   myText = key;\\n   storeItem('myText', myText);\\n }\\n </code></div>\"\n                ],\n                alt:\n                  'When you type the key name is displayed as black text on white background.\\n If you reload the page, the last letter typed is still displaying.',\n                class: 'p5',\n                module: 'Data',\n                submodule: 'LocalStorage'\n              },\n              {\n                file: 'src/data/local_storage.js',\n                line: 91,\n                description:\n                  '<p>Returns the value of an item that was stored in local storage\\n using storeItem()</p>\\n',\n                itemtype: 'method',\n                name: 'getItem',\n                params: [\n                  {\n                    name: 'key',\n                    description:\n                      '<p>name that you wish to use to store in local storage</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                return: {\n                  description: 'Value of stored item',\n                  type: 'Number|Object|String|Boolean|p5.Color|p5.Vector'\n                },\n                example: [\n                  \"\\n <div><code>\\n // Click the mouse to change\\n // the color of the background\\n // Once you have changed the color\\n // it will stay changed even when you\\n // reload the page.\\nlet myColor;\\nfunction setup() {\\n   createCanvas(100, 100);\\n   myColor = getItem('myColor');\\n }\\nfunction draw() {\\n   if (myColor !== null) {\\n     background(myColor);\\n   }\\n }\\nfunction mousePressed() {\\n   myColor = color(random(255), random(255), random(255));\\n   storeItem('myColor', myColor);\\n }\\n </code></div>\"\n                ],\n                alt:\n                  'If you click, the canvas changes to a random color.\\n If you reload the page, the canvas is still the color it\\n was when the page was previously loaded.',\n                class: 'p5',\n                module: 'Data',\n                submodule: 'LocalStorage'\n              },\n              {\n                file: 'src/data/local_storage.js',\n                line: 168,\n                description:\n                  '<p>Clears all local storage items set with storeItem()\\n for the current domain.</p>\\n',\n                itemtype: 'method',\n                name: 'clearStorage',\n                example: [\n                  \"\\n <div class=\\\"norender\\\">\\n <code>\\n function setup() {\\n   let myNum = 10;\\n   let myBool = false;\\n   storeItem('myNum', myNum);\\n   storeItem('myBool', myBool);\\n   print(getItem('myNum')); // logs 10 to the console\\n   print(getItem('myBool')); // logs false to the console\\n   clearStorage();\\n   print(getItem('myNum')); // logs null to the console\\n   print(getItem('myBool')); // logs null to the console\\n }\\n </code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'LocalStorage'\n              },\n              {\n                file: 'src/data/local_storage.js',\n                line: 196,\n                description: '<p>Removes an item that was stored with storeItem()</p>\\n',\n                itemtype: 'method',\n                name: 'removeItem',\n                params: [\n                  {\n                    name: 'key',\n                    description: '',\n                    type: 'String'\n                  }\n                ],\n                example: [\n                  \"\\n <div class=\\\"norender\\\">\\n <code>\\n function setup() {\\n   let myVar = 10;\\n   storeItem('myVar', myVar);\\n   print(getItem('myVar')); // logs 10 to the console\\n   removeItem('myVar');\\n   print(getItem('myVar')); // logs null to the console\\n }\\n </code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'LocalStorage'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 14,\n                description:\n                  '<p>Creates a new instance of p5.StringDict using the key-value pair\\n or the object you provide.</p>\\n',\n                itemtype: 'method',\n                name: 'createStringDict',\n                return: {\n                  description: '',\n                  type: 'p5.StringDict'\n                },\n                example: [\n                  \"\\n <div class=\\\"norender\\\">\\n <code>\\n function setup() {\\n   let myDictionary = createStringDict('p5', 'js');\\n   print(myDictionary.hasKey('p5')); // logs true to console\\n  let anotherDictionary = createStringDict({ happy: 'coding' });\\n   print(anotherDictionary.hasKey('happy')); // logs true to console\\n }\\n </code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Dictionary',\n                overloads: [\n                  {\n                    line: 14,\n                    params: [\n                      {\n                        name: 'key',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'value',\n                        description: '',\n                        type: 'String'\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'p5.StringDict'\n                    }\n                  },\n                  {\n                    line: 37,\n                    params: [\n                      {\n                        name: 'object',\n                        description: '<p>object</p>\\n',\n                        type: 'Object'\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'p5.StringDict'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 48,\n                description:\n                  '<p>Creates a new instance of <a href=\"#/p5.NumberDict\">p5.NumberDict</a> using the key-value pair\\n or object you provide.</p>\\n',\n                itemtype: 'method',\n                name: 'createNumberDict',\n                return: {\n                  description: '',\n                  type: 'p5.NumberDict'\n                },\n                example: [\n                  '\\n <div class=\"norender\">\\n <code>\\n function setup() {\\n   let myDictionary = createNumberDict(100, 42);\\n   print(myDictionary.hasKey(100)); // logs true to console\\n  let anotherDictionary = createNumberDict({ 200: 84 });\\n   print(anotherDictionary.hasKey(200)); // logs true to console\\n }\\n </code></div>'\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Dictionary',\n                overloads: [\n                  {\n                    line: 48,\n                    params: [\n                      {\n                        name: 'key',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'value',\n                        description: '',\n                        type: 'Number'\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'p5.NumberDict'\n                    }\n                  },\n                  {\n                    line: 71,\n                    params: [\n                      {\n                        name: 'object',\n                        description: '<p>object</p>\\n',\n                        type: 'Object'\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'p5.NumberDict'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 102,\n                description:\n                  '<p>Returns the number of key-value pairs currently stored in the Dictionary.</p>\\n',\n                itemtype: 'method',\n                name: 'size',\n                return: {\n                  description: 'the number of key-value pairs in the Dictionary',\n                  type: 'Integer'\n                },\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\nfunction setup() {\\n  let myDictionary = createNumberDict(1, 10);\\n  myDictionary.create(2, 20);\\n  myDictionary.create(3, 30);\\n  print(myDictionary.size()); // logs 3 to the console\\n}\\n</code></div>\\n'\n                ],\n                class: 'p5.TypedDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 124,\n                description:\n                  '<p>Returns true if the given key exists in the Dictionary,\\notherwise returns false.</p>\\n',\n                itemtype: 'method',\n                name: 'hasKey',\n                params: [\n                  {\n                    name: 'key',\n                    description: '<p>that you want to look up</p>\\n',\n                    type: 'Number|String'\n                  }\n                ],\n                return: {\n                  description: 'whether that key exists in Dictionary',\n                  type: 'Boolean'\n                },\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nfunction setup() {\\n  let myDictionary = createStringDict('p5', 'js');\\n  print(myDictionary.hasKey('p5')); // logs true to console\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5.TypedDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 147,\n                description: '<p>Returns the value stored at the given key.</p>\\n',\n                itemtype: 'method',\n                name: 'get',\n                params: [\n                  {\n                    name: 'the',\n                    description: '<p>key you want to access</p>\\n',\n                    type: 'Number|String'\n                  }\n                ],\n                return: {\n                  description: 'the value stored at that key',\n                  type: 'Number|String'\n                },\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nfunction setup() {\\n  let myDictionary = createStringDict('p5', 'js');\\n  let myValue = myDictionary.get('p5');\\n  print(myValue === 'js'); // logs true to console\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5.TypedDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 174,\n                description:\n                  '<p>Updates the value associated with the given key in case it already exists\\nin the Dictionary. Otherwise a new key-value pair is added.</p>\\n',\n                itemtype: 'method',\n                name: 'set',\n                params: [\n                  {\n                    name: 'key',\n                    description: '',\n                    type: 'Number|String'\n                  },\n                  {\n                    name: 'value',\n                    description: '',\n                    type: 'Number|String'\n                  }\n                ],\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nfunction setup() {\\n  let myDictionary = createStringDict('p5', 'js');\\n  myDictionary.set('p5', 'JS');\\n  myDictionary.print(); // logs \\\"key: p5 - value: JS\\\" to console\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5.TypedDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 202,\n                description:\n                  '<p>private helper function to handle the user passing in objects\\nduring construction or calls to create()</p>\\n',\n                class: 'p5.TypedDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 213,\n                description: '<p>Creates a new key-value pair in the Dictionary.</p>\\n',\n                itemtype: 'method',\n                name: 'create',\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nfunction setup() {\\n  let myDictionary = createStringDict('p5', 'js');\\n  myDictionary.create('happy', 'coding');\\n  myDictionary.print();\\n  // above logs \\\"key: p5 - value: js, key: happy - value: coding\\\" to console\\n}\\n</code></div>\"\n                ],\n                class: 'p5.TypedDict',\n                module: 'Data',\n                submodule: 'Dictionary',\n                overloads: [\n                  {\n                    line: 213,\n                    params: [\n                      {\n                        name: 'key',\n                        description: '',\n                        type: 'Number|String'\n                      },\n                      {\n                        name: 'value',\n                        description: '',\n                        type: 'Number|String'\n                      }\n                    ]\n                  },\n                  {\n                    line: 231,\n                    params: [\n                      {\n                        name: 'obj',\n                        description: '<p>key/value pair</p>\\n',\n                        type: 'Object'\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 249,\n                description:\n                  '<p>Removes all previously stored key-value pairs from the Dictionary.</p>\\n',\n                itemtype: 'method',\n                name: 'clear',\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nfunction setup() {\\n  let myDictionary = createStringDict('p5', 'js');\\n  print(myDictionary.hasKey('p5')); // prints 'true'\\n  myDictionary.clear();\\n  print(myDictionary.hasKey('p5')); // prints 'false'\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.TypedDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 270,\n                description:\n                  '<p>Removes the key-value pair stored at the given key from the Dictionary.</p>\\n',\n                itemtype: 'method',\n                name: 'remove',\n                params: [\n                  {\n                    name: 'key',\n                    description: '<p>for the pair to remove</p>\\n',\n                    type: 'Number|String'\n                  }\n                ],\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nfunction setup() {\\n  let myDictionary = createStringDict('p5', 'js');\\n  myDictionary.create('happy', 'coding');\\n  myDictionary.print();\\n  // above logs \\\"key: p5 - value: js, key: happy - value: coding\\\" to console\\n  myDictionary.remove('p5');\\n  myDictionary.print();\\n  // above logs \\\"key: happy value: coding\\\" to console\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5.TypedDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 300,\n                description:\n                  '<p>Logs the set of items currently stored in the Dictionary to the console.</p>\\n',\n                itemtype: 'method',\n                name: 'print',\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nfunction setup() {\\n  let myDictionary = createStringDict('p5', 'js');\\n  myDictionary.create('happy', 'coding');\\n  myDictionary.print();\\n  // above logs \\\"key: p5 - value: js, key: happy - value: coding\\\" to console\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.TypedDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 324,\n                description:\n                  '<p>Converts the Dictionary into a CSV file for local download.</p>\\n',\n                itemtype: 'method',\n                name: 'saveTable',\n                example: [\n                  \"\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100);\\n  background(200);\\n  text('click here to save', 10, 10, 70, 80);\\n}\\n\\nfunction mousePressed() {\\n  if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\\n    createStringDict({\\n      john: 1940,\\n      paul: 1942,\\n      george: 1943,\\n      ringo: 1940\\n    }).saveTable('beatles');\\n  }\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.TypedDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 362,\n                description:\n                  '<p>Converts the Dictionary into a JSON file for local download.</p>\\n',\n                itemtype: 'method',\n                name: 'saveJSON',\n                example: [\n                  \"\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100);\\n  background(200);\\n  text('click here to save', 10, 10, 70, 80);\\n}\\n\\nfunction mousePressed() {\\n  if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\\n    createStringDict({\\n      john: 1940,\\n      paul: 1942,\\n      george: 1943,\\n      ringo: 1940\\n    }).saveJSON('beatles');\\n  }\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.TypedDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 393,\n                description:\n                  '<p>private helper function to ensure that the user passed in valid\\nvalues for the Dictionary type</p>\\n',\n                class: 'p5.TypedDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 433,\n                description:\n                  '<p>private helper function to ensure that the user passed in valid\\nvalues for the Dictionary type</p>\\n',\n                class: 'p5.NumberDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 440,\n                description:\n                  '<p>Add the given number to the value currently stored at the given key.\\nThe sum then replaces the value previously stored in the Dictionary.</p>\\n',\n                itemtype: 'method',\n                name: 'add',\n                params: [\n                  {\n                    name: 'Key',\n                    description: '<p>for the value you wish to add to</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'Number',\n                    description: '<p>to add to the value</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nfunction setup() {\\n  let myDictionary = createNumberDict(2, 5);\\n  myDictionary.add(2, 2);\\n  print(myDictionary.get(2)); // logs 7 to console.\\n}\\n</code></div>\\n\\n\"\n                ],\n                class: 'p5.NumberDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 468,\n                description:\n                  '<p>Subtract the given number from the value currently stored at the given key.\\nThe difference then replaces the value previously stored in the Dictionary.</p>\\n',\n                itemtype: 'method',\n                name: 'sub',\n                params: [\n                  {\n                    name: 'Key',\n                    description: '<p>for the value you wish to subtract from</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'Number',\n                    description: '<p>to subtract from the value</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nfunction setup() {\\n  let myDictionary = createNumberDict(2, 5);\\n  myDictionary.sub(2, 2);\\n  print(myDictionary.get(2)); // logs 3 to console.\\n}\\n</code></div>\\n\\n\"\n                ],\n                class: 'p5.NumberDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 492,\n                description:\n                  '<p>Multiply the given number with the value currently stored at the given key.\\nThe product then replaces the value previously stored in the Dictionary.</p>\\n',\n                itemtype: 'method',\n                name: 'mult',\n                params: [\n                  {\n                    name: 'Key',\n                    description: '<p>for value you wish to multiply</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'Amount',\n                    description: '<p>to multiply the value by</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nfunction setup() {\\n  let myDictionary = createNumberDict(2, 4);\\n  myDictionary.mult(2, 2);\\n  print(myDictionary.get(2)); // logs 8 to console.\\n}\\n</code></div>\\n\\n\"\n                ],\n                class: 'p5.NumberDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 520,\n                description:\n                  '<p>Divide the given number with the value currently stored at the given key.\\nThe quotient then replaces the value previously stored in the Dictionary.</p>\\n',\n                itemtype: 'method',\n                name: 'div',\n                params: [\n                  {\n                    name: 'Key',\n                    description: '<p>for value you wish to divide</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'Amount',\n                    description: '<p>to divide the value by</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nfunction setup() {\\n  let myDictionary = createNumberDict(2, 8);\\n  myDictionary.div(2, 2);\\n  print(myDictionary.get(2)); // logs 4 to console.\\n}\\n</code></div>\\n\\n\"\n                ],\n                class: 'p5.NumberDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 548,\n                description:\n                  '<p>private helper function for finding lowest or highest value\\nthe argument &#39;flip&#39; is used to flip the comparison arrow\\nfrom &#39;less than&#39; to &#39;greater than&#39;</p>\\n',\n                class: 'p5.NumberDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 573,\n                description:\n                  '<p>Return the lowest number currently stored in the Dictionary.</p>\\n',\n                itemtype: 'method',\n                name: 'minValue',\n                return: {\n                  description: '',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nfunction setup() {\\n  let myDictionary = createNumberDict({ 2: -10, 4: 0.65, 1.2: 3 });\\n  let lowestValue = myDictionary.minValue(); // value is -10\\n  print(lowestValue);\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5.NumberDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 594,\n                description:\n                  '<p>Return the highest number currently stored in the Dictionary.</p>\\n',\n                itemtype: 'method',\n                name: 'maxValue',\n                return: {\n                  description: '',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nfunction setup() {\\n  let myDictionary = createNumberDict({ 2: -10, 4: 0.65, 1.2: 3 });\\n  let highestValue = myDictionary.maxValue(); // value is 3\\n  print(highestValue);\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5.NumberDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 615,\n                description:\n                  '<p>private helper function for finding lowest or highest key\\nthe argument &#39;flip&#39; is used to flip the comparison arrow\\nfrom &#39;less than&#39; to &#39;greater than&#39;</p>\\n',\n                class: 'p5.NumberDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 638,\n                description:\n                  '<p>Return the lowest key currently used in the Dictionary.</p>\\n',\n                itemtype: 'method',\n                name: 'minKey',\n                return: {\n                  description: '',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nfunction setup() {\\n  let myDictionary = createNumberDict({ 2: 4, 4: 6, 1.2: 3 });\\n  let lowestKey = myDictionary.minKey(); // value is 1.2\\n  print(lowestKey);\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5.NumberDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/data/p5.TypedDict.js',\n                line: 659,\n                description:\n                  '<p>Return the highest key currently used in the Dictionary.</p>\\n',\n                itemtype: 'method',\n                name: 'maxKey',\n                return: {\n                  description: '',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nfunction setup() {\\n  let myDictionary = createNumberDict({ 2: 4, 4: 6, 1.2: 3 });\\n  let highestKey = myDictionary.maxKey(); // value is 4\\n  print(highestKey);\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5.NumberDict',\n                module: 'Data',\n                submodule: 'Dictionary'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 21,\n                description:\n                  '<p>Searches the page for an element with the given ID, class, or tag name (using the &#39;#&#39; or &#39;.&#39;\\nprefixes to specify an ID or class respectively, and none for a tag) and returns it as\\na <a href=\"#/p5.Element\">p5.Element</a>. If a class or tag name is given with more than 1 element,\\nonly the first element will be returned.\\nThe DOM node itself can be accessed with .elt.\\nReturns null if none found. You can also specify a container to search within.</p>\\n',\n                itemtype: 'method',\n                name: 'select',\n                params: [\n                  {\n                    name: 'name',\n                    description: '<p>id, class, or tag name of element to search for</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'container',\n                    description:\n                      '<p>id, <a href=\"#/p5.Element\">p5.Element</a>, or\\n                                            HTML element to search within</p>\\n',\n                    type: 'String|p5.Element|HTMLElement',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    '<a href=\"#/p5.Element\">p5.Element</a> containing node found',\n                  type: 'p5.Element|null'\n                },\n                example: [\n                  \"\\n<div ><code class='norender'>\\nfunction setup() {\\n  createCanvas(100, 100);\\n  //translates canvas 50px down\\n  select('canvas').position(100, 100);\\n}\\n</code></div>\\n<div><code class='norender'>\\n// these are all valid calls to select()\\nlet a = select('#moo');\\nlet b = select('#blah', '#myContainer');\\nlet c, e;\\nif (b) {\\n  c = select('#foo', b);\\n}\\nlet d = document.getElementById('beep');\\nif (d) {\\n  e = select('p', d);\\n}\\n[a, b, c, d, e]; // unused\\n</code></div>\\n\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 88,\n                description:\n                  '<p>Searches the page for elements with the given class or tag name (using the &#39;.&#39; prefix\\nto specify a class and no prefix for a tag) and returns them as <a href=\"#/p5.Element\">p5.Element</a>s\\nin an array.\\nThe DOM node itself can be accessed with .elt.\\nReturns an empty array if none found.\\nYou can also specify a container to search within.</p>\\n',\n                itemtype: 'method',\n                name: 'selectAll',\n                params: [\n                  {\n                    name: 'name',\n                    description: '<p>class or tag name of elements to search for</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'container',\n                    description:\n                      '<p>id, <a href=\"#/p5.Element\">p5.Element</a>, or HTML element to search within</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'Array of <a href=\"#/p5.Element\">p5.Element</a>s containing nodes found',\n                  type: 'p5.Element[]'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nfunction setup() {\\n  createButton('btn');\\n  createButton('2nd btn');\\n  createButton('3rd btn');\\n  let buttons = selectAll('button');\\n\\n  for (let i = 0; i < buttons.length; i++) {\\n    buttons[i].size(100, 100);\\n  }\\n}\\n</code></div>\\n<div class='norender'><code>\\n// these are all valid calls to selectAll()\\nlet a = selectAll('.moo');\\na = selectAll('div');\\na = selectAll('button', '#myContainer');\\n\\nlet d = select('#container');\\na = selectAll('p', d);\\n\\nlet f = document.getElementById('beep');\\na = select('.blah', f);\\n\\na; // unused\\n</code></div>\\n\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 149,\n                description: '<p>Helper function for select and selectAll</p>\\n',\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 165,\n                description: '<p>Helper function for getElement and getElements.</p>\\n',\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 199,\n                description:\n                  '<p>Removes all elements created by p5, except any canvas / graphics\\nelements created by <a href=\"#/p5/createCanvas\">createCanvas</a> or <a href=\"#/p5/createGraphics\">createGraphics</a>.\\nEvent handlers are removed, and element is removed from the DOM.</p>\\n',\n                itemtype: 'method',\n                name: 'removeElements',\n                example: [\n                  \"\\n<div class='norender'><code>\\nfunction setup() {\\n  createCanvas(100, 100);\\n  createDiv('this is some text');\\n  createP('this is a paragraph');\\n}\\nfunction mousePressed() {\\n  removeElements(); // this will remove the div and p, not canvas\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 226,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/changed\">changed()</a> function is called when the value of an\\nelement changes.\\nThis can be used to attach an element specific event listener.</p>\\n',\n                itemtype: 'method',\n                name: 'changed',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when the value of\\n                               an element changes.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div><code>\\nlet sel;\\n\\nfunction setup() {\\n  textAlign(CENTER);\\n  background(200);\\n  sel = createSelect();\\n  sel.position(10, 10);\\n  sel.option('pear');\\n  sel.option('kiwi');\\n  sel.option('grape');\\n  sel.changed(mySelectEvent);\\n}\\n\\nfunction mySelectEvent() {\\n  let item = sel.value();\\n  background(200);\\n  text(\\\"it's a \\\" + item + '!', 50, 50);\\n}\\n</code></div>\\n\\n<div><code>\\nlet checkbox;\\nlet cnv;\\n\\nfunction setup() {\\n  checkbox = createCheckbox(' fill');\\n  checkbox.changed(changeFill);\\n  cnv = createCanvas(100, 100);\\n  cnv.position(0, 30);\\n  noFill();\\n}\\n\\nfunction draw() {\\n  background(200);\\n  ellipse(50, 50, 50, 50);\\n}\\n\\nfunction changeFill() {\\n  if (checkbox.checked()) {\\n    fill(0);\\n  } else {\\n    noFill();\\n  }\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'dropdown: pear, kiwi, grape. When selected text \"its a\" + selection shown.',\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 294,\n                description:\n                  '<p>The .<a href=\"#/p5.Element/input\">input()</a> function is called when any user input is\\ndetected with an element. The input event is often used\\nto detect keystrokes in a input element, or changes on a\\nslider element. This can be used to attach an element specific\\nevent listener.</p>\\n',\n                itemtype: 'method',\n                name: 'input',\n                params: [\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>function to be fired when any user input is\\n                               detected within the element.\\n                               if <code>false</code> is passed instead, the previously\\n                               firing function will no longer fire.</p>\\n',\n                    type: 'Function|Boolean'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\n// Open your console to see the output\\nfunction setup() {\\n  let inp = createInput('');\\n  inp.input(myInputEvent);\\n}\\n\\nfunction myInputEvent() {\\n  console.log('you are typing: ', this.value());\\n}\\n</code></div>\"\n                ],\n                alt: 'no display.',\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 329,\n                description: '<p>Helpers for create methods.</p>\\n',\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 340,\n                description:\n                  '<p>Creates a &lt;div&gt;&lt;/div&gt; element in the DOM with given inner HTML.</p>\\n',\n                itemtype: 'method',\n                name: 'createDiv',\n                params: [\n                  {\n                    name: 'html',\n                    description: '<p>inner HTML for element created</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\ncreateDiv('this is some text');\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 352,\n                description:\n                  '<p>Creates a &lt;p&gt;&lt;/p&gt; element in the DOM with given inner HTML. Used\\nfor paragraph length text.</p>\\n',\n                itemtype: 'method',\n                name: 'createP',\n                params: [\n                  {\n                    name: 'html',\n                    description: '<p>inner HTML for element created</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\ncreateP('this is some text');\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 365,\n                description:\n                  '<p>Creates a &lt;span&gt;&lt;/span&gt; element in the DOM with given inner HTML.</p>\\n',\n                itemtype: 'method',\n                name: 'createSpan',\n                params: [\n                  {\n                    name: 'html',\n                    description: '<p>inner HTML for element created</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\ncreateSpan('this is some text');\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 386,\n                description:\n                  '<p>Creates an &lt;img&gt; element in the DOM with given src and\\nalternate text.</p>\\n',\n                itemtype: 'method',\n                name: 'createImg',\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\ncreateImg(\\n  'https://p5js.org/assets/img/asterisk-01.png',\\n  'the p5 magenta asterisk'\\n);\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 386,\n                    params: [\n                      {\n                        name: 'src',\n                        description: '<p>src path or url for image</p>\\n',\n                        type: 'String'\n                      },\n                      {\n                        name: 'alt',\n                        description:\n                          '<p><a href=\"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Img#Attributes\">alternate text</a> to be used if image does not load. You can use also an empty string (<code>&quot;&quot;</code>) if that an image is not intended to be viewed.</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    return: {\n                      description:\n                        'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                      type: 'p5.Element'\n                    }\n                  },\n                  {\n                    line: 402,\n                    params: [\n                      {\n                        name: 'src',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'alt',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'crossOrigin',\n                        description:\n                          '<p><a href=\"https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes\">crossOrigin property</a> of the <code>img</code> element; use either &#39;anonymous&#39; or &#39;use-credentials&#39; to retrieve the image with cross-origin access (for later use with <code>canvas</code>. if an empty string(<code>&quot;&quot;</code>) is passed, CORS is not used</p>\\n',\n                        type: 'String'\n                      },\n                      {\n                        name: 'successCallback',\n                        description:\n                          '<p>callback to be called once image data is loaded with the <a href=\"#/p5.Element\">p5.Element</a> as argument</p>\\n',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description:\n                        'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                      type: 'p5.Element'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 432,\n                description:\n                  '<p>Creates an &lt;a&gt;&lt;/a&gt; element in the DOM for including a hyperlink.</p>\\n',\n                itemtype: 'method',\n                name: 'createA',\n                params: [\n                  {\n                    name: 'href',\n                    description: '<p>url of page to link to</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'html',\n                    description: '<p>inner html of link element to display</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'target',\n                    description:\n                      '<p>target where new link should open,\\n                            could be _blank, _self, _parent, _top.</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\ncreateA('http://p5js.org/', 'this is a link');\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 455,\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 457,\n                description:\n                  '<p>Creates a slider &lt;input&gt;&lt;/input&gt; element in the DOM.\\nUse .size() to set the display length of the slider.</p>\\n',\n                itemtype: 'method',\n                name: 'createSlider',\n                params: [\n                  {\n                    name: 'min',\n                    description: '<p>minimum value of the slider</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'max',\n                    description: '<p>maximum value of the slider</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'value',\n                    description: '<p>default value of the slider</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'step',\n                    description:\n                      '<p>step size for each tick of the slider (if step is set to 0, the slider will move continuously from the minimum to the maximum value)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet slider;\\nfunction setup() {\\n  slider = createSlider(0, 255, 100);\\n  slider.position(10, 10);\\n  slider.style('width', '80px');\\n}\\n\\nfunction draw() {\\n  let val = slider.value();\\n  background(val);\\n}\\n</code></div>\\n\\n<div><code>\\nlet slider;\\nfunction setup() {\\n  colorMode(HSB);\\n  slider = createSlider(0, 360, 60, 40);\\n  slider.position(10, 10);\\n  slider.style('width', '80px');\\n}\\n\\nfunction draw() {\\n  let val = slider.value();\\n  background(val, 100, 100, 1);\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 512,\n                description:\n                  '<p>Creates a &lt;button&gt;&lt;/button&gt; element in the DOM.\\nUse .size() to set the display size of the button.\\nUse .mousePressed() to specify behavior on press.</p>\\n',\n                itemtype: 'method',\n                name: 'createButton',\n                params: [\n                  {\n                    name: 'label',\n                    description: '<p>label displayed on the button</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'value',\n                    description: '<p>value of the button</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet button;\\nfunction setup() {\\n  createCanvas(100, 100);\\n  background(0);\\n  button = createButton('click me');\\n  button.position(19, 19);\\n  button.mousePressed(changeBG);\\n}\\n\\nfunction changeBG() {\\n  let val = random(255);\\n  background(val);\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 546,\n                description:\n                  '<p>Creates a checkbox &lt;input&gt;&lt;/input&gt; element in the DOM.\\nCalling .checked() on a checkbox returns if it is checked or not</p>\\n',\n                itemtype: 'method',\n                name: 'createCheckbox',\n                params: [\n                  {\n                    name: 'label',\n                    description: '<p>label displayed after checkbox</p>\\n',\n                    type: 'String',\n                    optional: true\n                  },\n                  {\n                    name: 'value',\n                    description:\n                      '<p>value of the checkbox; checked is true, unchecked is false</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet checkbox;\\n\\nfunction setup() {\\n  checkbox = createCheckbox('label', false);\\n  checkbox.changed(myCheckedEvent);\\n}\\n\\nfunction myCheckedEvent() {\\n  if (this.checked()) {\\n    console.log('Checking!');\\n  } else {\\n    console.log('Unchecking!');\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 614,\n                description:\n                  '<p>Creates a dropdown menu &lt;select&gt;&lt;/select&gt; element in the DOM.\\nIt also helps to assign select-box methods to <a href=\"#/p5.Element\">p5.Element</a> when selecting existing select box.\\nThe .option() method can be used to set options for the select after it is created.\\nThe .value() method will return the currently selected option.\\nThe .selected() method will return current dropdown element which is an instance of <a href=\"#/p5.Element\">p5.Element</a>\\nThe .selected() method can be used to make given option selected by default when the page first loads.\\nThe .disable() method marks given option as disabled and marks whole of dropdown element as disabled when invoked with no parameter.</p>\\n',\n                itemtype: 'method',\n                name: 'createSelect',\n                return: {\n                  description: '',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet sel;\\n\\nfunction setup() {\\n  textAlign(CENTER);\\n  background(200);\\n  sel = createSelect();\\n  sel.position(10, 10);\\n  sel.option('pear');\\n  sel.option('kiwi');\\n  sel.option('grape');\\n  sel.selected('kiwi');\\n  sel.changed(mySelectEvent);\\n}\\n\\nfunction mySelectEvent() {\\n  let item = sel.value();\\n  background(200);\\n  text('It is a ' + item + '!', 50, 50);\\n}\\n</code></div>\\n\\n<div><code>\\nlet sel;\\n\\nfunction setup() {\\n  textAlign(CENTER);\\n  background(200);\\n  sel = createSelect();\\n  sel.position(10, 10);\\n  sel.option('oil');\\n  sel.option('milk');\\n  sel.option('bread');\\n  sel.disable('milk');\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 614,\n                    params: [\n                      {\n                        name: 'multiple',\n                        description:\n                          '<p>true if dropdown should support multiple selections</p>\\n',\n                        type: 'Boolean',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'p5.Element'\n                    }\n                  },\n                  {\n                    line: 664,\n                    params: [\n                      {\n                        name: 'existing',\n                        description: '<p>DOM select element</p>\\n',\n                        type: 'Object'\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'p5.Element'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 756,\n                description:\n                  '<p>Creates a radio button &lt;input&gt;&lt;/input&gt; element in the DOM.\\nThe .option() method can be used to set options for the radio after it is\\ncreated. The .value() method will return the currently selected option.</p>\\n',\n                itemtype: 'method',\n                name: 'createRadio',\n                params: [\n                  {\n                    name: 'divId',\n                    description:\n                      '<p>the id and name of the created div and input field respectively</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet radio;\\n\\nfunction setup() {\\n  radio = createRadio();\\n  radio.option('black');\\n  radio.option('white');\\n  radio.option('gray');\\n  radio.style('width', '60px');\\n  textAlign(CENTER);\\n  fill(255, 0, 0);\\n}\\n\\nfunction draw() {\\n  let val = radio.value();\\n  background(val);\\n  text(val, width / 2, height / 2);\\n}\\n</code></div>\\n<div><code>\\nlet radio;\\n\\nfunction setup() {\\n  radio = createRadio();\\n  radio.option('apple', 1);\\n  radio.option('bread', 2);\\n  radio.option('juice', 3);\\n  radio.style('width', '60px');\\n  textAlign(CENTER);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  let val = radio.value();\\n  if (val) {\\n    text('item cost is $' + val, width / 2, height / 2);\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 894,\n                description:\n                  '<p>Creates a colorPicker element in the DOM for color input.\\nThe .value() method will return a hex string (#rrggbb) of the color.\\nThe .color() method will return a p5.Color object with the current chosen color.</p>\\n',\n                itemtype: 'method',\n                name: 'createColorPicker',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>default color of element</p>\\n',\n                    type: 'String|p5.Color',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet colorPicker;\\nfunction setup() {\\n  createCanvas(100, 100);\\n  colorPicker = createColorPicker('#ed225d');\\n  colorPicker.position(0, height + 5);\\n}\\n\\nfunction draw() {\\n  background(colorPicker.color());\\n}\\n</code></div>\\n<div><code>\\nlet inp1, inp2;\\nfunction setup() {\\n  createCanvas(100, 100);\\n  background('grey');\\n  inp1 = createColorPicker('#ff0000');\\n  inp1.position(0, height + 5);\\n  inp1.input(setShade1);\\n  inp2 = createColorPicker(color('yellow'));\\n  inp2.position(0, height + 30);\\n  inp2.input(setShade2);\\n  setMidShade();\\n}\\n\\nfunction setMidShade() {\\n  // Finding a shade between the two\\n  let commonShade = lerpColor(inp1.color(), inp2.color(), 0.5);\\n  fill(commonShade);\\n  rect(20, 20, 60, 60);\\n}\\n\\nfunction setShade1() {\\n  setMidShade();\\n  console.log('You are choosing shade 1 to be : ', this.value());\\n}\\nfunction setShade2() {\\n  setMidShade();\\n  console.log('You are choosing shade 2 to be : ', this.value());\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 980,\n                description:\n                  '<p>Creates an &lt;input&gt;&lt;/input&gt; element in the DOM for text input.\\nUse .<a href=\"#/p5.Element/size\">size()</a> to set the display length of the box.</p>\\n',\n                itemtype: 'method',\n                name: 'createInput',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>default value of the input box</p>\\n',\n                    type: 'String',\n                    optional: true\n                  },\n                  {\n                    name: 'type',\n                    description:\n                      '<p>type of text, ie text, password etc. Defaults to text</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nfunction setup() {\\n  let inp = createInput('');\\n  inp.input(myInputEvent);\\n}\\n\\nfunction myInputEvent() {\\n  console.log('you are typing: ', this.value());\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1008,\n                description:\n                  '<p>Creates an &lt;input&gt;&lt;/input&gt; element in the DOM of type &#39;file&#39;.\\nThis allows users to select local files for use in a sketch.</p>\\n',\n                itemtype: 'method',\n                name: 'createFileInput',\n                params: [\n                  {\n                    name: 'callback',\n                    description: '<p>callback function for when a file loaded</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'multiple',\n                    description: '<p>optional to allow multiple files selected</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created DOM element',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet input;\\nlet img;\\n\\nfunction setup() {\\n  input = createFileInput(handleFile);\\n  input.position(0, 0);\\n}\\n\\nfunction draw() {\\n  background(255);\\n  if (img) {\\n    image(img, 0, 0, width, height);\\n  }\\n}\\n\\nfunction handleFile(file) {\\n  print(file);\\n  if (file.type === 'image') {\\n    img = createImg(file.data, '');\\n    img.hide();\\n  } else {\\n    img = null;\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1081,\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1123,\n                description:\n                  '<p>Creates an HTML5 &lt;video&gt; element in the DOM for simple playback\\nof audio/video. Shown by default, can be hidden with .<a href=\"#/p5.Element/hide\">hide()</a>\\nand drawn into canvas using video(). The first parameter\\ncan be either a single string path to a video file, or an array of string\\npaths to different formats of the same video. This is useful for ensuring\\nthat your video can play across different browsers, as each supports\\ndifferent formats. See <a href=\\'https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats\\'>this\\npage</a> for further information about supported formats.</p>\\n',\n                itemtype: 'method',\n                name: 'createVideo',\n                params: [\n                  {\n                    name: 'src',\n                    description:\n                      '<p>path to a video file, or array of paths for\\n                            supporting different browsers</p>\\n',\n                    type: 'String|String[]'\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>callback function to be called upon\\n                            &#39;canplaythrough&#39; event fire, that is, when the\\n                            browser can play the media, and estimates that\\n                            enough data has been loaded to play the media\\n                            up to its end without having to stop for\\n                            further buffering of content</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'pointer to video <a href=\"#/p5.Element\">p5.Element</a>',\n                  type: 'p5.MediaElement'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet vid;\\nfunction setup() {\\n  noCanvas();\\n\\n  vid = createVideo(\\n    ['assets/small.mp4', 'assets/small.ogv', 'assets/small.webm'],\\n    vidLoad\\n  );\\n\\n  vid.size(100, 100);\\n}\\n\\n// This function is called when the video loads\\nfunction vidLoad() {\\n  vid.loop();\\n  vid.volume(0);\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1169,\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1171,\n                description:\n                  \"<p>Creates a hidden HTML5 &lt;audio&gt; element in the DOM for simple audio\\nplayback. The first parameter can be either a single string path to a\\naudio file, or an array of string paths to different formats of the same\\naudio. This is useful for ensuring that your audio can play across\\ndifferent browsers, as each supports different formats.\\nSee <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats'>this\\npage for further information about supported formats</a>.</p>\\n\",\n                itemtype: 'method',\n                name: 'createAudio',\n                params: [\n                  {\n                    name: 'src',\n                    description:\n                      '<p>path to an audio file, or array of paths\\n                            for supporting different browsers</p>\\n',\n                    type: 'String|String[]',\n                    optional: true\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>callback function to be called upon\\n                            &#39;canplaythrough&#39; event fire, that is, when the\\n                            browser can play the media, and estimates that\\n                            enough data has been loaded to play the media\\n                            up to its end without having to stop for\\n                            further buffering of content</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'pointer to audio <a href=\"#/p5.Element\">p5.Element</a>',\n                  type: 'p5.MediaElement'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet ele;\\nfunction setup() {\\n  ele = createAudio('assets/beat.mp3');\\n\\n  // here we set the element to autoplay\\n  // The element will play as soon\\n  // as it is able to do so.\\n  ele.autoplay(true);\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1208,\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1210,\n                itemtype: 'property',\n                name: 'VIDEO',\n                type: 'String',\n                final: 1,\n                category: ['Constants'],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1216,\n                itemtype: 'property',\n                name: 'AUDIO',\n                type: 'String',\n                final: 1,\n                category: ['Constants'],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1253,\n                description:\n                  \"<p>Creates a new HTML5 &lt;video&gt; element that contains the audio/video\\nfeed from a webcam. The element is separate from the canvas and is\\ndisplayed by default. The element can be hidden using .<a href=\\\"#/p5.Element/hide\\\">hide()</a>. The feed\\ncan be drawn onto the canvas using <a href=\\\"#/p5/image\\\">image()</a>. The loadedmetadata property can\\nbe used to detect when the element has fully loaded (see second example).</p>\\n<p>More specific properties of the feed can be passing in a Constraints object.\\nSee the\\n<a href='http://w3c.github.io/mediacapture-main/getusermedia.html#media-track-constraints'> W3C\\nspec</a> for possible properties. Note that not all of these are supported\\nby all browsers.</p>\\n<p>Security note: A new browser security specification requires that getUserMedia,\\nwhich is behind <a href=\\\"#/p5/createCapture\\\">createCapture()</a>, only works when you're running the code locally,\\nor on HTTPS. Learn more <a href='http://stackoverflow.com/questions/34197653/getusermedia-in-chrome-47-without-using-https'>here</a>\\nand <a href='https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia'>here</a>.</p>\",\n                itemtype: 'method',\n                name: 'createCapture',\n                params: [\n                  {\n                    name: 'type',\n                    description:\n                      '<p>type of capture, either VIDEO or\\n                                  AUDIO if none specified, default both,\\n                                  or a Constraints object</p>\\n',\n                    type: 'String|Constant|Object'\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>function to be called once\\n                                  stream has loaded</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'capture video <a href=\"#/p5.Element\">p5.Element</a>',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div class='norender notest'><code>\\nlet capture;\\n\\nfunction setup() {\\n  createCanvas(480, 480);\\n  capture = createCapture(VIDEO);\\n  capture.hide();\\n}\\n\\nfunction draw() {\\n  image(capture, 0, 0, width, width * capture.height / capture.width);\\n  filter(INVERT);\\n}\\n</code></div>\\n<div class='norender notest'><code>\\nfunction setup() {\\n  createCanvas(480, 120);\\n  let constraints = {\\n    video: {\\n      mandatory: {\\n        minWidth: 1280,\\n        minHeight: 720\\n      },\\n      optional: [{ maxFrameRate: 10 }]\\n    },\\n    audio: true\\n  };\\n  createCapture(constraints, function(stream) {\\n    console.log(stream);\\n  });\\n}\\n</code></div>\\n<code><div class='norender notest'>\\nlet capture;\\n\\nfunction setup() {\\n  createCanvas(640, 480);\\n  capture = createCapture(VIDEO);\\n}\\nfunction draw() {\\n  background(0);\\n  if (capture.loadedmetadata) {\\n    let c = capture.get(0, 0, 100, 100);\\n    image(c, 0, 0);\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1391,\n                description:\n                  '<p>Creates element with given tag in the DOM with given content.</p>\\n',\n                itemtype: 'method',\n                name: 'createElement',\n                params: [\n                  {\n                    name: 'tag',\n                    description: '<p>tag for the new element</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'content',\n                    description: '<p>html content to be inserted into the element</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node',\n                  type: 'p5.Element'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\ncreateElement('h2', 'im an h2 p5.element!');\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1415,\n                description: '<p>Adds specified class to the element.</p>\\n',\n                itemtype: 'method',\n                name: 'addClass',\n                params: [\n                  {\n                    name: 'class',\n                    description: '<p>name of class to add</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n <div class='norender'><code>\\n let div = createDiv('div');\\n div.addClass('myClass');\\n </code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1440,\n                description: '<p>Removes specified class from the element.</p>\\n',\n                itemtype: 'method',\n                name: 'removeClass',\n                params: [\n                  {\n                    name: 'class',\n                    description: '<p>name of class to remove</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n <div class='norender'><code>\\n // In this example, a class is set when the div is created\\n // and removed when mouse is pressed. This could link up\\n // with a CSS style rule to toggle style properties.\\nlet div;\\nfunction setup() {\\n   div = createDiv('div');\\n   div.addClass('myClass');\\n }\\nfunction mousePressed() {\\n   div.removeClass('myClass');\\n }\\n </code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1471,\n                description: '<p>Checks if specified class already set to element</p>\\n',\n                itemtype: 'method',\n                name: 'hasClass',\n                return: {\n                  description: 'a boolean value if element has specified class',\n                  type: 'Boolean'\n                },\n                params: [\n                  {\n                    name: 'c',\n                    description: '<p>class name of class to check</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                example: [\n                  \"\\n <div class='norender'><code>\\n let div;\\nfunction setup() {\\n   div = createDiv('div');\\n   div.addClass('show');\\n }\\nfunction mousePressed() {\\n   if (div.hasClass('show')) {\\n     div.addClass('show');\\n   } else {\\n     div.removeClass('show');\\n   }\\n }\\n </code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1500,\n                description: '<p>Toggles element class</p>\\n',\n                itemtype: 'method',\n                name: 'toggleClass',\n                params: [\n                  {\n                    name: 'c',\n                    description: '<p>class name to toggle</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n <div class='norender'><code>\\n let div;\\nfunction setup() {\\n   div = createDiv('div');\\n   div.addClass('show');\\n }\\nfunction mousePressed() {\\n   div.toggleClass('show');\\n }\\n </code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1533,\n                description:\n                  '<p>Attaches the element  as a child to the parent specified.\\n Accepts either a string ID, DOM node, or <a href=\"#/p5.Element\">p5.Element</a>.\\n If no argument is specified, an array of children DOM nodes is returned.</p>\\n',\n                itemtype: 'method',\n                name: 'child',\n                return: {\n                  description: 'an array of child nodes',\n                  type: 'Node[]'\n                },\n                example: [\n                  \"\\n <div class='norender'><code>\\n let div0 = createDiv('this is the parent');\\n let div1 = createDiv('this is the child');\\n div0.child(div1); // use p5.Element\\n </code></div>\\n <div class='norender'><code>\\n let div0 = createDiv('this is the parent');\\n let div1 = createDiv('this is the child');\\n div1.id('apples');\\n div0.child('apples'); // use id\\n </code></div>\\n <div class='norender notest'><code>\\n // this example assumes there is a div already on the page\\n // with id \\\"myChildDiv\\\"\\n let div0 = createDiv('this is the parent');\\n let elt = document.getElementById('myChildDiv');\\n div0.child(elt); // use element from page\\n </code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 1533,\n                    params: [],\n                    return: {\n                      description: 'an array of child nodes',\n                      type: 'Node[]'\n                    }\n                  },\n                  {\n                    line: 1561,\n                    params: [\n                      {\n                        name: 'child',\n                        description:\n                          '<p>the ID, DOM node, or <a href=\"#/p5.Element\">p5.Element</a>\\n                        to add to the current element</p>\\n',\n                        type: 'String|p5.Element',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1583,\n                description:\n                  '<p>Centers a p5 Element either vertically, horizontally,\\nor both, relative to its parent or according to\\nthe body if the Element has no parent. If no argument is passed\\nthe Element is aligned both vertically and horizontally.</p>\\n',\n                itemtype: 'method',\n                name: 'center',\n                params: [\n                  {\n                    name: 'align',\n                    description:\n                      '<p>passing &#39;vertical&#39;, &#39;horizontal&#39; aligns element accordingly</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div><code>\\nfunction setup() {\\n  let div = createDiv('').size(10, 10);\\n  div.style('background-color', 'orange');\\n  div.center();\\n}\\n</code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1637,\n                description:\n                  '<p>If an argument is given, sets the inner HTML of the element,\\n replacing any existing html. If true is included as a second\\n argument, html is appended instead of replacing existing html.\\n If no arguments are given, returns\\n the inner HTML of the element.</p>\\n',\n                itemtype: 'method',\n                name: 'html',\n                return: {\n                  description: 'the inner HTML of the element',\n                  type: 'String'\n                },\n                example: [\n                  \"\\n <div class='norender'><code>\\n let div = createDiv('').size(100, 100);\\n div.html('hi');\\n </code></div>\\n <div class='norender'><code>\\n let div = createDiv('Hello ').size(100, 100);\\n div.html('World', true);\\n </code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 1637,\n                    params: [],\n                    return: {\n                      description: 'the inner HTML of the element',\n                      type: 'String'\n                    }\n                  },\n                  {\n                    line: 1658,\n                    params: [\n                      {\n                        name: 'html',\n                        description: '<p>the HTML to be placed inside the element</p>\\n',\n                        type: 'String',\n                        optional: true\n                      },\n                      {\n                        name: 'append',\n                        description: '<p>whether to append HTML to existing</p>\\n',\n                        type: 'Boolean',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1676,\n                description:\n                  '<p>Sets the position of the element. If no position type argument is given, the\\n position will be relative to (0, 0) of the window.\\n Essentially, this sets position:absolute and left and top\\n properties of style. If an optional third argument specifying position type is given,\\n the x and y coordinates will be interpreted based on the <a target=\"_blank\"\\n href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/position\">positioning scheme</a>.\\n If no arguments given, the function returns the x and y position of the element.</p>\\n',\n                itemtype: 'method',\n                name: 'position',\n                return: {\n                  description: 'the x and y position of the element in an object',\n                  type: 'Object'\n                },\n                example: [\n                  \"\\n <div><code class='norender'>\\n function setup() {\\n   let cnv = createCanvas(100, 100);\\n   // positions canvas 50px to the right and 100px\\n   // below upper left corner of the window\\n   cnv.position(50, 100);\\n }\\n </code></div>\\n <div><code class='norender'>\\n function setup() {\\n   let cnv = createCanvas(100, 100);\\n   // positions canvas 50px to the right and 100px\\n   // below upper left corner of the window\\n   cnv.position(0, 0, 'fixed');\\n }\\n </code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 1676,\n                    params: [],\n                    return: {\n                      description: 'the x and y position of the element in an object',\n                      type: 'Object'\n                    }\n                  },\n                  {\n                    line: 1706,\n                    params: [\n                      {\n                        name: 'x',\n                        description:\n                          '<p>x-position relative to upper left of window (optional)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'y',\n                        description:\n                          '<p>y-position relative to upper left of window (optional)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'positionType',\n                        description:\n                          '<p>it can be static, fixed, relative, sticky, initial or inherit (optional)</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1793,\n                description:\n                  '<p>Sets the given style (css) property (1st arg) of the element with the\\ngiven value (2nd arg). If a single argument is given, .style()\\nreturns the value of the given property; however, if the single argument\\nis given in css syntax (&#39;text-align:center&#39;), .style() sets the css\\nappropriately.</p>\\n',\n                itemtype: 'method',\n                name: 'style',\n                return: {\n                  description: 'value of property',\n                  type: 'String'\n                },\n                example: [\n                  \"\\n<div><code class='norender'>\\nlet myDiv = createDiv('I like pandas.');\\nmyDiv.style('font-size', '18px');\\nmyDiv.style('color', '#ff0000');\\n</code></div>\\n<div><code class='norender'>\\nlet col = color(25, 23, 200, 50);\\nlet button = createButton('button');\\nbutton.style('background-color', col);\\nbutton.position(10, 10);\\n</code></div>\\n<div><code class='norender'>\\nlet myDiv;\\nfunction setup() {\\n  background(200);\\n  myDiv = createDiv('I like gray.');\\n  myDiv.position(20, 20);\\n}\\n\\nfunction draw() {\\n  myDiv.style('font-size', mouseX + 'px');\\n}\\n</code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 1793,\n                    params: [\n                      {\n                        name: 'property',\n                        description: '<p>property to be set</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    return: {\n                      description: 'value of property',\n                      type: 'String'\n                    }\n                  },\n                  {\n                    line: 1828,\n                    params: [\n                      {\n                        name: 'property',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'value',\n                        description: '<p>value to assign to property</p>\\n',\n                        type: 'String|Number|p5.Color'\n                      }\n                    ],\n                    chainable: 1,\n                    return: {\n                      description:\n                        'current value of property, if no value is given as second argument',\n                      type: 'String'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1882,\n                description:\n                  '<p>Adds a new attribute or changes the value of an existing attribute\\n on the specified element. If no value is specified, returns the\\n value of the given attribute, or null if attribute is not set.</p>\\n',\n                itemtype: 'method',\n                name: 'attribute',\n                return: {\n                  description: 'value of attribute',\n                  type: 'String'\n                },\n                example: [\n                  \"\\n <div class='norender'><code>\\n let myDiv = createDiv('I like pandas.');\\n myDiv.attribute('align', 'center');\\n </code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 1882,\n                    params: [],\n                    return: {\n                      description: 'value of attribute',\n                      type: 'String'\n                    }\n                  },\n                  {\n                    line: 1897,\n                    params: [\n                      {\n                        name: 'attr',\n                        description: '<p>attribute to set</p>\\n',\n                        type: 'String'\n                      },\n                      {\n                        name: 'value',\n                        description: '<p>value to assign to attribute</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1926,\n                description: '<p>Removes an attribute on the specified element.</p>\\n',\n                itemtype: 'method',\n                name: 'removeAttribute',\n                params: [\n                  {\n                    name: 'attr',\n                    description: '<p>attribute to remove</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n <div><code>\\n let button;\\n let checkbox;\\nfunction setup() {\\n   checkbox = createCheckbox('enable', true);\\n   checkbox.changed(enableButton);\\n   button = createButton('button');\\n   button.position(10, 10);\\n }\\nfunction enableButton() {\\n   if (this.checked()) {\\n     // Re-enable the button\\n     button.removeAttribute('disabled');\\n   } else {\\n     // Disable the button\\n     button.attribute('disabled', '');\\n   }\\n }\\n </code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 1971,\n                description:\n                  '<p>Either returns the value of the element if no arguments\\ngiven, or sets the value of the element.</p>\\n',\n                itemtype: 'method',\n                name: 'value',\n                return: {\n                  description: 'value of the element',\n                  type: 'String|Number'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\n// gets the value\\nlet inp;\\nfunction setup() {\\n  inp = createInput('');\\n}\\n\\nfunction mousePressed() {\\n  print(inp.value());\\n}\\n</code></div>\\n<div class='norender'><code>\\n// sets the value\\nlet inp;\\nfunction setup() {\\n  inp = createInput('myValue');\\n}\\n\\nfunction mousePressed() {\\n  inp.value('myValue');\\n}\\n</code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 1971,\n                    params: [],\n                    return: {\n                      description: 'value of the element',\n                      type: 'String|Number'\n                    }\n                  },\n                  {\n                    line: 2001,\n                    params: [\n                      {\n                        name: 'value',\n                        description: '',\n                        type: 'String|Number'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2017,\n                description:\n                  '<p>Shows the current element. Essentially, setting display:block for the style.</p>\\n',\n                itemtype: 'method',\n                name: 'show',\n                chainable: 1,\n                example: [\n                  \"\\n <div class='norender'><code>\\n let div = createDiv('div');\\n div.style('display', 'none');\\n div.show(); // turns display to block\\n </code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2035,\n                description:\n                  '<p>Hides the current element. Essentially, setting display:none for the style.</p>\\n',\n                itemtype: 'method',\n                name: 'hide',\n                chainable: 1,\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet div = createDiv('this is a div');\\ndiv.hide();\\n</code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2051,\n                description:\n                  '<p>Sets the width and height of the element. AUTO can be used to\\n only adjust one dimension at a time. If no arguments are given, it\\n returns the width and height of the element in an object. In case of\\n elements which need to be loaded, such as images, it is recommended\\n to call the function after the element has finished loading.</p>\\n',\n                itemtype: 'method',\n                name: 'size',\n                return: {\n                  description: 'the width and height of the element in an object',\n                  type: 'Object'\n                },\n                example: [\n                  \"\\n <div class='norender'><code>\\n let div = createDiv('this is a div');\\n div.size(100, 100);\\n let img = createImg(\\n   'assets/rockies.jpg',\\n   'A tall mountain with a small forest and field in front of it on a sunny day',\\n   '',\\n   () => {\\n     img.size(10, AUTO);\\n   }\\n );\\n </code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 2051,\n                    params: [],\n                    return: {\n                      description: 'the width and height of the element in an object',\n                      type: 'Object'\n                    }\n                  },\n                  {\n                    line: 2075,\n                    params: [\n                      {\n                        name: 'w',\n                        description:\n                          '<p>width of the element, either AUTO, or a number</p>\\n',\n                        type: 'Number|Constant'\n                      },\n                      {\n                        name: 'h',\n                        description:\n                          '<p>height of the element, either AUTO, or a number</p>\\n',\n                        type: 'Number|Constant',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2132,\n                description:\n                  '<p>Removes the element, stops all media streams, and deregisters all listeners.</p>\\n',\n                itemtype: 'method',\n                name: 'remove',\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet myDiv = createDiv('this is some text');\\nmyDiv.remove();\\n</code></div>\"\n                ],\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2166,\n                description:\n                  '<p>Registers a callback that gets called every time a file that is\\ndropped on the element has been loaded.\\np5 will load every dropped file into memory and pass it as a p5.File object to the callback.\\nMultiple files dropped at the same time will result in multiple calls to the callback.</p>\\n<p>You can optionally pass a second callback which will be registered to the raw\\n<a href=\"https://developer.mozilla.org/en-US/docs/Web/Events/drop\">drop</a> event.\\nThe callback will thus be provided the original\\n<a href=\"https://developer.mozilla.org/en-US/docs/Web/API/DragEvent\">DragEvent</a>.\\nDropping multiple files at the same time will trigger the second callback once per drop,\\nwhereas the first callback will trigger for each loaded file.</p>\\n',\n                itemtype: 'method',\n                name: 'drop',\n                params: [\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>callback to receive loaded file, called for each file dropped.</p>\\n',\n                    type: 'Function'\n                  },\n                  {\n                    name: 'fxn',\n                    description:\n                      '<p>callback triggered once when files are dropped with the drop event.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div><code>\\nfunction setup() {\\n  let c = createCanvas(100, 100);\\n  background(200);\\n  textAlign(CENTER);\\n  text('drop file', width / 2, height / 2);\\n  c.drop(gotFile);\\n}\\n\\nfunction gotFile(file) {\\n  background(200);\\n  text('received file:', width / 2, height / 2);\\n  text(file.name, width / 2, height / 2 + 50);\\n}\\n</code></div>\\n\\n<div><code>\\nlet img;\\n\\nfunction setup() {\\n  let c = createCanvas(100, 100);\\n  background(200);\\n  textAlign(CENTER);\\n  text('drop image', width / 2, height / 2);\\n  c.drop(gotFile);\\n}\\n\\nfunction draw() {\\n  if (img) {\\n    image(img, 0, 0, width, height);\\n  }\\n}\\n\\nfunction gotFile(file) {\\n  img = createImg(file.data, '').hide();\\n}\\n</code></div>\"\n                ],\n                alt: 'Canvas turns into whatever image is dragged/dropped onto it.',\n                class: 'p5.Element',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2298,\n                description: '<p>Path to the media element source.</p>\\n',\n                itemtype: 'property',\n                name: 'src',\n                return: {\n                  description: 'src',\n                  type: 'String'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet ele;\\n\\nfunction setup() {\\n  background(250);\\n\\n  //p5.MediaElement objects are usually created\\n  //by calling the createAudio(), createVideo(),\\n  //and createCapture() functions.\\n\\n  //In this example we create\\n  //a new p5.MediaElement via createAudio().\\n  ele = createAudio('assets/beat.mp3');\\n\\n  //We'll set up our example so that\\n  //when you click on the text,\\n  //an alert box displays the MediaElement's\\n  //src field.\\n  textAlign(CENTER);\\n  text('Click Me!', width / 2, height / 2);\\n}\\n\\nfunction mouseClicked() {\\n  //here we test if the mouse is over the\\n  //canvas element when it's clicked\\n  if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\\n    //Show our p5.MediaElement's src field\\n    alert(ele.src);\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2363,\n                description: '<p>Play an HTML5 media element.</p>\\n',\n                itemtype: 'method',\n                name: 'play',\n                chainable: 1,\n                example: [\n                  \"\\n<div><code>\\nlet ele;\\n\\nfunction setup() {\\n  //p5.MediaElement objects are usually created\\n  //by calling the createAudio(), createVideo(),\\n  //and createCapture() functions.\\n\\n  //In this example we create\\n  //a new p5.MediaElement via createAudio().\\n  ele = createAudio('assets/beat.mp3');\\n\\n  background(250);\\n  textAlign(CENTER);\\n  text('Click to Play!', width / 2, height / 2);\\n}\\n\\nfunction mouseClicked() {\\n  //here we test if the mouse is over the\\n  //canvas element when it's clicked\\n  if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\\n    //Here we call the play() function on\\n    //the p5.MediaElement we created above.\\n    //This will start the audio sample.\\n    ele.play();\\n\\n    background(200);\\n    text('You clicked Play!', width / 2, height / 2);\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2427,\n                description:\n                  '<p>Stops an HTML5 media element (sets current time to zero).</p>\\n',\n                itemtype: 'method',\n                name: 'stop',\n                chainable: 1,\n                example: [\n                  \"\\n<div><code>\\n//This example both starts\\n//and stops a sound sample\\n//when the user clicks the canvas\\n\\n//We will store the p5.MediaElement\\n//object in here\\nlet ele;\\n\\n//while our audio is playing,\\n//this will be set to true\\nlet sampleIsPlaying = false;\\n\\nfunction setup() {\\n  //Here we create a p5.MediaElement object\\n  //using the createAudio() function.\\n  ele = createAudio('assets/beat.mp3');\\n  background(200);\\n  textAlign(CENTER);\\n  text('Click to play!', width / 2, height / 2);\\n}\\n\\nfunction mouseClicked() {\\n  //here we test if the mouse is over the\\n  //canvas element when it's clicked\\n  if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\\n    background(200);\\n\\n    if (sampleIsPlaying) {\\n      //if the sample is currently playing\\n      //calling the stop() function on\\n      //our p5.MediaElement will stop\\n      //it and reset its current\\n      //time to 0 (i.e. it will start\\n      //at the beginning the next time\\n      //you play it)\\n      ele.stop();\\n\\n      sampleIsPlaying = false;\\n      text('Click to play!', width / 2, height / 2);\\n    } else {\\n      //loop our sound element until we\\n      //call ele.stop() on it.\\n      ele.loop();\\n\\n      sampleIsPlaying = true;\\n      text('Click to stop!', width / 2, height / 2);\\n    }\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2491,\n                description: '<p>Pauses an HTML5 media element.</p>\\n',\n                itemtype: 'method',\n                name: 'pause',\n                chainable: 1,\n                example: [\n                  \"\\n<div><code>\\n//This example both starts\\n//and pauses a sound sample\\n//when the user clicks the canvas\\n\\n//We will store the p5.MediaElement\\n//object in here\\nlet ele;\\n\\n//while our audio is playing,\\n//this will be set to true\\nlet sampleIsPlaying = false;\\n\\nfunction setup() {\\n  //Here we create a p5.MediaElement object\\n  //using the createAudio() function.\\n  ele = createAudio('assets/lucky_dragons.mp3');\\n  background(200);\\n  textAlign(CENTER);\\n  text('Click to play!', width / 2, height / 2);\\n}\\n\\nfunction mouseClicked() {\\n  //here we test if the mouse is over the\\n  //canvas element when it's clicked\\n  if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\\n    background(200);\\n\\n    if (sampleIsPlaying) {\\n      //Calling pause() on our\\n      //p5.MediaElement will stop it\\n      //playing, but when we call the\\n      //loop() or play() functions\\n      //the sample will start from\\n      //where we paused it.\\n      ele.pause();\\n\\n      sampleIsPlaying = false;\\n      text('Click to resume!', width / 2, height / 2);\\n    } else {\\n      //loop our sound element until we\\n      //call ele.pause() on it.\\n      ele.loop();\\n\\n      sampleIsPlaying = true;\\n      text('Click to pause!', width / 2, height / 2);\\n    }\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2553,\n                description:\n                  '<p>Set &#39;loop&#39; to true for an HTML5 media element, and starts playing.</p>\\n',\n                itemtype: 'method',\n                name: 'loop',\n                chainable: 1,\n                example: [\n                  \"\\n<div><code>\\n//Clicking the canvas will loop\\n//the audio sample until the user\\n//clicks again to stop it\\n\\n//We will store the p5.MediaElement\\n//object in here\\nlet ele;\\n\\n//while our audio is playing,\\n//this will be set to true\\nlet sampleIsLooping = false;\\n\\nfunction setup() {\\n  //Here we create a p5.MediaElement object\\n  //using the createAudio() function.\\n  ele = createAudio('assets/lucky_dragons.mp3');\\n  background(200);\\n  textAlign(CENTER);\\n  text('Click to loop!', width / 2, height / 2);\\n}\\n\\nfunction mouseClicked() {\\n  //here we test if the mouse is over the\\n  //canvas element when it's clicked\\n  if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\\n    background(200);\\n\\n    if (!sampleIsLooping) {\\n      //loop our sound element until we\\n      //call ele.stop() on it.\\n      ele.loop();\\n\\n      sampleIsLooping = true;\\n      text('Click to stop!', width / 2, height / 2);\\n    } else {\\n      ele.stop();\\n\\n      sampleIsLooping = false;\\n      text('Click to loop!', width / 2, height / 2);\\n    }\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2609,\n                description:\n                  '<p>Set &#39;loop&#39; to false for an HTML5 media element. Element will stop\\nwhen it reaches the end.</p>\\n',\n                itemtype: 'method',\n                name: 'noLoop',\n                chainable: 1,\n                example: [\n                  \"\\n<div><code>\\n//This example both starts\\n//and stops loop of sound sample\\n//when the user clicks the canvas\\n\\n//We will store the p5.MediaElement\\n//object in here\\nlet ele;\\n//while our audio is playing,\\n//this will be set to true\\nlet sampleIsPlaying = false;\\n\\nfunction setup() {\\n  //Here we create a p5.MediaElement object\\n  //using the createAudio() function.\\n  ele = createAudio('assets/beat.mp3');\\n  background(200);\\n  textAlign(CENTER);\\n  text('Click to play!', width / 2, height / 2);\\n}\\n\\nfunction mouseClicked() {\\n  //here we test if the mouse is over the\\n  //canvas element when it's clicked\\n  if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\\n    background(200);\\n\\n    if (sampleIsPlaying) {\\n      ele.noLoop();\\n      text('No more Loops!', width / 2, height / 2);\\n    } else {\\n      ele.loop();\\n      sampleIsPlaying = true;\\n      text('Click to stop looping!', width / 2, height / 2);\\n    }\\n  }\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2675,\n                description: '<p>Set HTML5 media element to autoplay or not.</p>\\n',\n                itemtype: 'method',\n                name: 'autoplay',\n                params: [\n                  {\n                    name: 'autoplay',\n                    description: '<p>whether the element should autoplay</p>\\n',\n                    type: 'Boolean'\n                  }\n                ],\n                chainable: 1,\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2704,\n                description:\n                  '<p>Sets volume for this HTML5 media element. If no argument is given,\\nreturns the current volume.</p>\\n',\n                itemtype: 'method',\n                name: 'volume',\n                return: {\n                  description: 'current volume',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet ele;\\nfunction setup() {\\n  // p5.MediaElement objects are usually created\\n  // by calling the createAudio(), createVideo(),\\n  // and createCapture() functions.\\n  // In this example we create\\n  // a new p5.MediaElement via createAudio().\\n  ele = createAudio('assets/lucky_dragons.mp3');\\n  background(250);\\n  textAlign(CENTER);\\n  text('Click to Play!', width / 2, height / 2);\\n}\\nfunction mouseClicked() {\\n  // Here we call the volume() function\\n  // on the sound element to set its volume\\n  // Volume must be between 0.0 and 1.0\\n  ele.volume(0.2);\\n  ele.play();\\n  background(200);\\n  text('You clicked Play!', width / 2, height / 2);\\n}\\n</code></div>\\n<div><code>\\nlet audio;\\nlet counter = 0;\\n\\nfunction loaded() {\\n  audio.play();\\n}\\n\\nfunction setup() {\\n  audio = createAudio('assets/lucky_dragons.mp3', loaded);\\n  textAlign(CENTER);\\n}\\n\\nfunction draw() {\\n  if (counter === 0) {\\n    background(0, 255, 0);\\n    text('volume(0.9)', width / 2, height / 2);\\n  } else if (counter === 1) {\\n    background(255, 255, 0);\\n    text('volume(0.5)', width / 2, height / 2);\\n  } else if (counter === 2) {\\n    background(255, 0, 0);\\n    text('volume(0.1)', width / 2, height / 2);\\n  }\\n}\\n\\nfunction mousePressed() {\\n  counter++;\\n  if (counter === 0) {\\n    audio.volume(0.9);\\n  } else if (counter === 1) {\\n    audio.volume(0.5);\\n  } else if (counter === 2) {\\n    audio.volume(0.1);\\n  } else {\\n    counter = 0;\\n    audio.volume(0.9);\\n  }\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 2704,\n                    params: [],\n                    return: {\n                      description: 'current volume',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 2777,\n                    params: [\n                      {\n                        name: 'val',\n                        description: '<p>volume between 0.0 and 1.0</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2790,\n                description:\n                  '<p>If no arguments are given, returns the current playback speed of the\\nelement. The speed parameter sets the speed where 2.0 will play the\\nelement twice as fast, 0.5 will play at half the speed, and -1 will play\\nthe element in normal speed in reverse.(Note that not all browsers support\\nbackward playback and even if they do, playback might not be smooth.)</p>\\n',\n                itemtype: 'method',\n                name: 'speed',\n                return: {\n                  description: 'current playback speed of the element',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class='norender notest'><code>\\n//Clicking the canvas will loop\\n//the audio sample until the user\\n//clicks again to stop it\\n\\n//We will store the p5.MediaElement\\n//object in here\\nlet ele;\\nlet button;\\n\\nfunction setup() {\\n  createCanvas(710, 400);\\n  //Here we create a p5.MediaElement object\\n  //using the createAudio() function.\\n  ele = createAudio('assets/beat.mp3');\\n  ele.loop();\\n  background(200);\\n\\n  button = createButton('2x speed');\\n  button.position(100, 68);\\n  button.mousePressed(twice_speed);\\n\\n  button = createButton('half speed');\\n  button.position(200, 68);\\n  button.mousePressed(half_speed);\\n\\n  button = createButton('reverse play');\\n  button.position(300, 68);\\n  button.mousePressed(reverse_speed);\\n\\n  button = createButton('STOP');\\n  button.position(400, 68);\\n  button.mousePressed(stop_song);\\n\\n  button = createButton('PLAY!');\\n  button.position(500, 68);\\n  button.mousePressed(play_speed);\\n}\\n\\nfunction twice_speed() {\\n  ele.speed(2);\\n}\\n\\nfunction half_speed() {\\n  ele.speed(0.5);\\n}\\n\\nfunction reverse_speed() {\\n  ele.speed(-1);\\n}\\n\\nfunction stop_song() {\\n  ele.stop();\\n}\\n\\nfunction play_speed() {\\n  ele.play();\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 2790,\n                    params: [],\n                    return: {\n                      description: 'current playback speed of the element',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 2861,\n                    params: [\n                      {\n                        name: 'speed',\n                        description: '<p>speed multiplier for element playback</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2878,\n                description:\n                  '<p>If no arguments are given, returns the current time of the element.\\nIf an argument is given the current time of the element is set to it.</p>\\n',\n                itemtype: 'method',\n                name: 'time',\n                return: {\n                  description: 'current time (in seconds)',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet ele;\\nlet beginning = true;\\nfunction setup() {\\n  //p5.MediaElement objects are usually created\\n  //by calling the createAudio(), createVideo(),\\n  //and createCapture() functions.\\n\\n  //In this example we create\\n  //a new p5.MediaElement via createAudio().\\n  ele = createAudio('assets/lucky_dragons.mp3');\\n  background(250);\\n  textAlign(CENTER);\\n  text('start at beginning', width / 2, height / 2);\\n}\\n\\n// this function fires with click anywhere\\nfunction mousePressed() {\\n  if (beginning === true) {\\n    // here we start the sound at the beginning\\n    // time(0) is not necessary here\\n    // as this produces the same result as\\n    // play()\\n    ele.play().time(0);\\n    background(200);\\n    text('jump 2 sec in', width / 2, height / 2);\\n    beginning = false;\\n  } else {\\n    // here we jump 2 seconds into the sound\\n    ele.play().time(2);\\n    background(250);\\n    text('start at beginning', width / 2, height / 2);\\n    beginning = true;\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM',\n                overloads: [\n                  {\n                    line: 2878,\n                    params: [],\n                    return: {\n                      description: 'current time (in seconds)',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 2923,\n                    params: [\n                      {\n                        name: 'time',\n                        description: '<p>time to jump to (in seconds)</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 2937,\n                description: '<p>Returns the duration of the HTML5 media element.</p>\\n',\n                itemtype: 'method',\n                name: 'duration',\n                return: {\n                  description: 'duration',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet ele;\\nfunction setup() {\\n  //p5.MediaElement objects are usually created\\n  //by calling the createAudio(), createVideo(),\\n  //and createCapture() functions.\\n  //In this example we create\\n  //a new p5.MediaElement via createAudio().\\n  ele = createAudio('assets/doorbell.mp3');\\n  background(250);\\n  textAlign(CENTER);\\n  text('Click to know the duration!', 10, 25, 70, 80);\\n}\\nfunction mouseClicked() {\\n  ele.play();\\n  background(200);\\n  //ele.duration dislpays the duration\\n  text(ele.duration() + ' seconds', width / 2, height / 2);\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3059,\n                description:\n                  '<p>Schedule an event to be called when the audio or video\\nelement reaches the end. If the element is looping,\\nthis will not be called. The element is passed in\\nas the argument to the onended callback.</p>\\n',\n                itemtype: 'method',\n                name: 'onended',\n                params: [\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>function to call when the\\n                            soundfile has ended. The\\n                            media element will be passed\\n                            in as the argument to the\\n                            callback.</p>\\n',\n                    type: 'Function'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div><code>\\nfunction setup() {\\n  let audioEl = createAudio('assets/beat.mp3');\\n  audioEl.showControls();\\n  audioEl.onended(sayDone);\\n}\\n\\nfunction sayDone(elt) {\\n  alert('done playing ' + elt.src);\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3090,\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3092,\n                description:\n                  '<p>Send the audio output of this element to a specified audioNode or\\np5.sound object. If no element is provided, connects to p5&#39;s master\\noutput. That connection is established when this method is first called.\\nAll connections are removed by the .disconnect() method.</p>\\n<p>This method is meant to be used with the p5.sound.js addon library.</p>\\n',\n                itemtype: 'method',\n                name: 'connect',\n                params: [\n                  {\n                    name: 'audioNode',\n                    description:\n                      '<p>AudioNode from the Web Audio API,\\nor an object from the p5.sound library</p>\\n',\n                    type: 'AudioNode|Object'\n                  }\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3141,\n                description:\n                  '<p>Disconnect all Web Audio routing, including to master output.\\nThis is useful if you want to re-route the output through\\naudio effects, for example.</p>\\n',\n                itemtype: 'method',\n                name: 'disconnect',\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3156,\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3158,\n                description:\n                  '<p>Show the default MediaElement controls, as determined by the web browser.</p>\\n',\n                itemtype: 'method',\n                name: 'showControls',\n                example: [\n                  \"\\n<div><code>\\nlet ele;\\nfunction setup() {\\n  //p5.MediaElement objects are usually created\\n  //by calling the createAudio(), createVideo(),\\n  //and createCapture() functions.\\n  //In this example we create\\n  //a new p5.MediaElement via createAudio()\\n  ele = createAudio('assets/lucky_dragons.mp3');\\n  background(200);\\n  textAlign(CENTER);\\n  text('Click to Show Controls!', 10, 25, 70, 80);\\n}\\nfunction mousePressed() {\\n  ele.showControls();\\n  background(200);\\n  text('Controls Shown', width / 2, height / 2);\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3189,\n                description: '<p>Hide the default mediaElement controls.</p>\\n',\n                itemtype: 'method',\n                name: 'hideControls',\n                example: [\n                  \"\\n<div><code>\\nlet ele;\\nfunction setup() {\\n  //p5.MediaElement objects are usually created\\n  //by calling the createAudio(), createVideo(),\\n  //and createCapture() functions.\\n  //In this example we create\\n  //a new p5.MediaElement via createAudio()\\n  ele = createAudio('assets/lucky_dragons.mp3');\\n  ele.showControls();\\n  background(200);\\n  textAlign(CENTER);\\n  text('Click to hide Controls!', 10, 25, 70, 80);\\n}\\nfunction mousePressed() {\\n  ele.hideControls();\\n  background(200);\\n  text('Controls hidden', width / 2, height / 2);\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3218,\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3229,\n                description:\n                  '<p>Schedule events to trigger every time a MediaElement\\n(audio/video) reaches a playback cue point.</p>\\n<p>Accepts a callback function, a time (in seconds) at which to trigger\\nthe callback, and an optional parameter for the callback.</p>\\n<p>Time will be passed as the first parameter to the callback function,\\nand param will be the second parameter.</p>\\n',\n                itemtype: 'method',\n                name: 'addCue',\n                params: [\n                  {\n                    name: 'time',\n                    description:\n                      '<p>Time in seconds, relative to this media\\n                            element&#39;s playback. For example, to trigger\\n                            an event every time playback reaches two\\n                            seconds, pass in the number 2. This will be\\n                            passed as the first parameter to\\n                            the callback function.</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>Name of a function that will be\\n                            called at the given time. The callback will\\n                            receive time and (optionally) param as its\\n                            two parameters.</p>\\n',\n                    type: 'Function'\n                  },\n                  {\n                    name: 'value',\n                    description:\n                      '<p>An object to be passed as the\\n                            second parameter to the\\n                            callback function.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'id ID of this cue,\\n                    useful for removeCue(id)',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\n//\\n//\\nfunction setup() {\\n  noCanvas();\\n\\n  let audioEl = createAudio('assets/beat.mp3');\\n  audioEl.showControls();\\n\\n  // schedule three calls to changeBackground\\n  audioEl.addCue(0.5, changeBackground, color(255, 0, 0));\\n  audioEl.addCue(1.0, changeBackground, color(0, 255, 0));\\n  audioEl.addCue(2.5, changeBackground, color(0, 0, 255));\\n  audioEl.addCue(3.0, changeBackground, color(0, 255, 255));\\n  audioEl.addCue(4.2, changeBackground, color(255, 255, 0));\\n  audioEl.addCue(5.0, changeBackground, color(255, 255, 0));\\n}\\n\\nfunction changeBackground(val) {\\n  background(val);\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3293,\n                description:\n                  '<p>Remove a callback based on its ID. The ID is returned by the\\naddCue method.</p>\\n',\n                itemtype: 'method',\n                name: 'removeCue',\n                params: [\n                  {\n                    name: 'id',\n                    description: '<p>ID of the cue, as returned by addCue</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet audioEl, id1, id2;\\nfunction setup() {\\n  background(255, 255, 255);\\n  audioEl = createAudio('assets/beat.mp3');\\n  audioEl.showControls();\\n  // schedule five calls to changeBackground\\n  id1 = audioEl.addCue(0.5, changeBackground, color(255, 0, 0));\\n  audioEl.addCue(1.0, changeBackground, color(0, 255, 0));\\n  audioEl.addCue(2.5, changeBackground, color(0, 0, 255));\\n  audioEl.addCue(3.0, changeBackground, color(0, 255, 255));\\n  id2 = audioEl.addCue(4.2, changeBackground, color(255, 255, 0));\\n  text('Click to remove first and last Cue!', 10, 25, 70, 80);\\n}\\nfunction mousePressed() {\\n  audioEl.removeCue(id1);\\n  audioEl.removeCue(id2);\\n}\\nfunction changeBackground(val) {\\n  background(val);\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3335,\n                description:\n                  '<p>Remove all of the callbacks that had originally been scheduled\\nvia the addCue method.</p>\\n',\n                itemtype: 'method',\n                name: 'clearCues',\n                params: [\n                  {\n                    name: 'id',\n                    description: '<p>ID of the cue, as returned by addCue</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet audioEl;\\nfunction setup() {\\n  background(255, 255, 255);\\n  audioEl = createAudio('assets/beat.mp3');\\n  //Show the default MediaElement controls, as determined by the web browser\\n  audioEl.showControls();\\n  // schedule calls to changeBackground\\n  background(200);\\n  text('Click to change Cue!', 10, 25, 70, 80);\\n  audioEl.addCue(0.5, changeBackground, color(255, 0, 0));\\n  audioEl.addCue(1.0, changeBackground, color(0, 255, 0));\\n  audioEl.addCue(2.5, changeBackground, color(0, 0, 255));\\n  audioEl.addCue(3.0, changeBackground, color(0, 255, 255));\\n  audioEl.addCue(4.2, changeBackground, color(255, 255, 0));\\n}\\nfunction mousePressed() {\\n  // here we clear the scheduled callbacks\\n  audioEl.clearCues();\\n  // then we add some more callbacks\\n  audioEl.addCue(1, changeBackground, color(2, 2, 2));\\n  audioEl.addCue(3, changeBackground, color(255, 255, 0));\\n}\\nfunction changeBackground(val) {\\n  background(val);\\n}\\n</code></div>\"\n                ],\n                class: 'p5.MediaElement',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3401,\n                description:\n                  '<p>Underlying File object. All normal File methods can be called on this.</p>\\n',\n                itemtype: 'property',\n                name: 'file',\n                class: 'p5.File',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3413,\n                description: '<p>File type (image, text, etc.)</p>\\n',\n                itemtype: 'property',\n                name: 'type',\n                class: 'p5.File',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3419,\n                description:\n                  '<p>File subtype (usually the file extension jpg, png, xml, etc.)</p>\\n',\n                itemtype: 'property',\n                name: 'subtype',\n                class: 'p5.File',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3425,\n                description: '<p>File name</p>\\n',\n                itemtype: 'property',\n                name: 'name',\n                class: 'p5.File',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3431,\n                description: '<p>File size</p>\\n',\n                itemtype: 'property',\n                name: 'size',\n                class: 'p5.File',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/dom/dom.js',\n                line: 3438,\n                description: '<p>URL string containing image data.</p>\\n',\n                itemtype: 'property',\n                name: 'data',\n                class: 'p5.File',\n                module: 'DOM',\n                submodule: 'DOM'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 11,\n                description:\n                  '<p>The system variable deviceOrientation always contains the orientation of\\nthe device. The value of this variable will either be set &#39;landscape&#39;\\nor &#39;portrait&#39;. If no data is available it will be set to &#39;undefined&#39;.\\neither LANDSCAPE or PORTRAIT.</p>\\n',\n                itemtype: 'property',\n                name: 'deviceOrientation',\n                type: 'Constant',\n                readonly: '',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 23,\n                description:\n                  '<p>The system variable accelerationX always contains the acceleration of the\\ndevice along the x axis. Value is represented as meters per second squared.</p>\\n',\n                itemtype: 'property',\n                name: 'accelerationX',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  \"\\n<div>\\n<code>\\n// Move a touchscreen device to register\\n// acceleration changes.\\nfunction draw() {\\n  background(220, 50);\\n  fill('magenta');\\n  ellipse(width / 2, height / 2, accelerationX);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'Magnitude of device acceleration is displayed as ellipse size',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 46,\n                description:\n                  '<p>The system variable accelerationY always contains the acceleration of the\\ndevice along the y axis. Value is represented as meters per second squared.</p>\\n',\n                itemtype: 'property',\n                name: 'accelerationY',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  \"\\n<div>\\n<code>\\n// Move a touchscreen device to register\\n// acceleration changes.\\nfunction draw() {\\n  background(220, 50);\\n  fill('magenta');\\n  ellipse(width / 2, height / 2, accelerationY);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'Magnitude of device acceleration is displayed as ellipse size',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 69,\n                description:\n                  '<p>The system variable accelerationZ always contains the acceleration of the\\ndevice along the z axis. Value is represented as meters per second squared.</p>\\n',\n                itemtype: 'property',\n                name: 'accelerationZ',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  \"\\n<div>\\n<code>\\n// Move a touchscreen device to register\\n// acceleration changes.\\nfunction draw() {\\n  background(220, 50);\\n  fill('magenta');\\n  ellipse(width / 2, height / 2, accelerationZ);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'Magnitude of device acceleration is displayed as ellipse size',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 94,\n                description:\n                  '<p>The system variable pAccelerationX always contains the acceleration of the\\ndevice along the x axis in the frame previous to the current frame. Value\\nis represented as meters per second squared.</p>\\n',\n                itemtype: 'property',\n                name: 'pAccelerationX',\n                type: 'Number',\n                readonly: '',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 104,\n                description:\n                  '<p>The system variable pAccelerationY always contains the acceleration of the\\ndevice along the y axis in the frame previous to the current frame. Value\\nis represented as meters per second squared.</p>\\n',\n                itemtype: 'property',\n                name: 'pAccelerationY',\n                type: 'Number',\n                readonly: '',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 114,\n                description:\n                  '<p>The system variable pAccelerationZ always contains the acceleration of the\\ndevice along the z axis in the frame previous to the current frame. Value\\nis represented as meters per second squared.</p>\\n',\n                itemtype: 'property',\n                name: 'pAccelerationZ',\n                type: 'Number',\n                readonly: '',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 135,\n                description:\n                  '<p>The system variable rotationX always contains the rotation of the\\ndevice along the x axis. If the sketch <a href=\"#/p5/angleMode\">\\nangleMode()</a> is set to DEGREES, the value will be -180 to 180. If\\nit is set to RADIANS, the value will be -PI to PI.\\n<br><br>\\nNote: The order the rotations are called is important, ie. if used\\ntogether, it must be called in the order Z-X-Y or there might be\\nunexpected behaviour.</p>\\n',\n                itemtype: 'property',\n                name: 'rotationX',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  //rotateZ(radians(rotationZ));\\n  rotateX(radians(rotationX));\\n  //rotateY(radians(rotationY));\\n  box(200, 200, 200);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'red horizontal line right, green vertical line bottom. black background.',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 168,\n                description:\n                  '<p>The system variable rotationY always contains the rotation of the\\ndevice along the y axis. If the sketch <a href=\"#/p5/angleMode\">\\nangleMode()</a> is set to DEGREES, the value will be -90 to 90. If\\nit is set to RADIANS, the value will be -PI/2 to PI/2.\\n<br><br>\\nNote: The order the rotations are called is important, ie. if used\\ntogether, it must be called in the order Z-X-Y or there might be\\nunexpected behaviour.</p>\\n',\n                itemtype: 'property',\n                name: 'rotationY',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  //rotateZ(radians(rotationZ));\\n  //rotateX(radians(rotationX));\\n  rotateY(radians(rotationY));\\n  box(200, 200, 200);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'red horizontal line right, green vertical line bottom. black background.',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 201,\n                description:\n                  '<p>The system variable rotationZ always contains the rotation of the\\ndevice along the z axis. If the sketch <a href=\"#/p5/angleMode\">\\nangleMode()</a> is set to DEGREES, the value will be 0 to 360. If\\nit is set to RADIANS, the value will be 0 to 2*PI.\\n<br><br>\\nUnlike rotationX and rotationY, this variable is available for devices\\nwith a built-in compass only.\\n<br><br>\\nNote: The order the rotations are called is important, ie. if used\\ntogether, it must be called in the order Z-X-Y or there might be\\nunexpected behaviour.</p>\\n',\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  rotateZ(radians(rotationZ));\\n  //rotateX(radians(rotationX));\\n  //rotateY(radians(rotationY));\\n  box(200, 200, 200);\\n}\\n</code>\\n</div>'\n                ],\n                itemtype: 'property',\n                name: 'rotationZ',\n                type: 'Number',\n                readonly: '',\n                alt:\n                  'red horizontal line right, green vertical line bottom. black background.',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 239,\n                description:\n                  '<p>The system variable pRotationX always contains the rotation of the\\ndevice along the x axis in the frame previous to the current frame.\\nIf the sketch <a href=\"#/p5/angleMode\"> angleMode()</a> is set to DEGREES,\\nthe value will be -180 to 180. If it is set to RADIANS, the value will\\nbe -PI to PI.\\n<br><br>\\npRotationX can also be used with rotationX to determine the rotate\\ndirection of the device along the X-axis.</p>\\n',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\n// A simple if statement looking at whether\\n// rotationX - pRotationX < 0 is true or not will be\\n// sufficient for determining the rotate direction\\n// in most cases.\\n\\n// Some extra logic is needed to account for cases where\\n// the angles wrap around.\\nlet rotateDirection = 'clockwise';\\n\\n// Simple range conversion to make things simpler.\\n// This is not absolutely necessary but the logic\\n// will be different in that case.\\n\\nlet rX = rotationX + 180;\\nlet pRX = pRotationX + 180;\\n\\nif ((rX - pRX > 0 && rX - pRX < 270) || rX - pRX < -270) {\\n  rotateDirection = 'clockwise';\\n} else if (rX - pRX < 0 || rX - pRX > 270) {\\n  rotateDirection = 'counter-clockwise';\\n}\\n\\nprint(rotateDirection);\\n</code>\\n</div>\"\n                ],\n                alt: 'no image to display.',\n                itemtype: 'property',\n                name: 'pRotationX',\n                type: 'Number',\n                readonly: '',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 286,\n                description:\n                  '<p>The system variable pRotationY always contains the rotation of the\\ndevice along the y axis in the frame previous to the current frame.\\nIf the sketch <a href=\"#/p5/angleMode\"> angleMode()</a> is set to DEGREES,\\nthe value will be -90 to 90. If it is set to RADIANS, the value will\\nbe -PI/2 to PI/2.\\n<br><br>\\npRotationY can also be used with rotationY to determine the rotate\\ndirection of the device along the Y-axis.</p>\\n',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\n// A simple if statement looking at whether\\n// rotationY - pRotationY < 0 is true or not will be\\n// sufficient for determining the rotate direction\\n// in most cases.\\n\\n// Some extra logic is needed to account for cases where\\n// the angles wrap around.\\nlet rotateDirection = 'clockwise';\\n\\n// Simple range conversion to make things simpler.\\n// This is not absolutely necessary but the logic\\n// will be different in that case.\\n\\nlet rY = rotationY + 180;\\nlet pRY = pRotationY + 180;\\n\\nif ((rY - pRY > 0 && rY - pRY < 270) || rY - pRY < -270) {\\n  rotateDirection = 'clockwise';\\n} else if (rY - pRY < 0 || rY - pRY > 270) {\\n  rotateDirection = 'counter-clockwise';\\n}\\nprint(rotateDirection);\\n</code>\\n</div>\"\n                ],\n                alt: 'no image to display.',\n                itemtype: 'property',\n                name: 'pRotationY',\n                type: 'Number',\n                readonly: '',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 332,\n                description:\n                  '<p>The system variable pRotationZ always contains the rotation of the\\ndevice along the z axis in the frame previous to the current frame.\\nIf the sketch <a href=\"#/p5/angleMode\"> angleMode()</a> is set to DEGREES,\\nthe value will be 0 to 360. If it is set to RADIANS, the value will\\nbe 0 to 2*PI.\\n<br><br>\\npRotationZ can also be used with rotationZ to determine the rotate\\ndirection of the device along the Z-axis.</p>\\n',\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\n// A simple if statement looking at whether\\n// rotationZ - pRotationZ < 0 is true or not will be\\n// sufficient for determining the rotate direction\\n// in most cases.\\n\\n// Some extra logic is needed to account for cases where\\n// the angles wrap around.\\nlet rotateDirection = 'clockwise';\\n\\nif (\\n  (rotationZ - pRotationZ > 0 && rotationZ - pRotationZ < 270) ||\\n  rotationZ - pRotationZ < -270\\n) {\\n  rotateDirection = 'clockwise';\\n} else if (rotationZ - pRotationZ < 0 || rotationZ - pRotationZ > 270) {\\n  rotateDirection = 'counter-clockwise';\\n}\\nprint(rotateDirection);\\n</code>\\n</div>\"\n                ],\n                alt: 'no image to display.',\n                itemtype: 'property',\n                name: 'pRotationZ',\n                type: 'Number',\n                readonly: '',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 392,\n                description:\n                  '<p>When a device is rotated, the axis that triggers the <a href=\"#/p5/deviceTurned\">deviceTurned()</a>\\nmethod is stored in the turnAxis variable. The turnAxis variable is only defined within\\nthe scope of deviceTurned().</p>\\n',\n                itemtype: 'property',\n                name: 'turnAxis',\n                type: 'String',\n                readonly: '',\n                example: [\n                  \"\\n<div>\\n<code>\\n// Run this example on a mobile device\\n// Rotate the device by 90 degrees in the\\n// X-axis to change the value.\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction deviceTurned() {\\n  if (turnAxis === 'X') {\\n    if (value === 0) {\\n      value = 255;\\n    } else if (value === 255) {\\n      value = 0;\\n    }\\n  }\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '50x50 black rect in center of canvas. turns white on mobile when device turns\\n50x50 black rect in center of canvas. turns white on mobile when x-axis turns',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 431,\n                description:\n                  '<p>The <a href=\"#/p5/setMoveThreshold\">setMoveThreshold()</a> function is used to set the movement threshold for\\nthe <a href=\"#/p5/deviceMoved\">deviceMoved()</a> function. The default threshold is set to 0.5.</p>\\n',\n                itemtype: 'method',\n                name: 'setMoveThreshold',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>The threshold value</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Run this example on a mobile device\\n// You will need to move the device incrementally further\\n// the closer the square\\'s color gets to white in order to change the value.\\n\\nlet value = 0;\\nlet threshold = 0.5;\\nfunction setup() {\\n  setMoveThreshold(threshold);\\n}\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction deviceMoved() {\\n  value = value + 5;\\n  threshold = threshold + 0.1;\\n  if (value > 255) {\\n    value = 0;\\n    threshold = 30;\\n  }\\n  setMoveThreshold(threshold);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '50x50 black rect in center of canvas. turns white on mobile when device moves',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 474,\n                description:\n                  '<p>The <a href=\"#/p5/setShakeThreshold\">setShakeThreshold()</a> function is used to set the movement threshold for\\nthe <a href=\"#/p5/deviceShaken\">deviceShaken()</a> function. The default threshold is set to 30.</p>\\n',\n                itemtype: 'method',\n                name: 'setShakeThreshold',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>The threshold value</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Run this example on a mobile device\\n// You will need to shake the device more firmly\\n// the closer the box\\'s fill gets to white in order to change the value.\\n\\nlet value = 0;\\nlet threshold = 30;\\nfunction setup() {\\n  setShakeThreshold(threshold);\\n}\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction deviceMoved() {\\n  value = value + 5;\\n  threshold = threshold + 5;\\n  if (value > 255) {\\n    value = 0;\\n    threshold = 30;\\n  }\\n  setShakeThreshold(threshold);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '50x50 black rect in center of canvas. turns white on mobile when device\\nis being shaked',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 518,\n                description:\n                  '<p>The <a href=\"#/p5/deviceMoved\">deviceMoved()</a> function is called when the device is moved by more than\\nthe threshold value along X, Y or Z axis. The default threshold is set to 0.5.\\nThe threshold value can be changed using <a href=\"https://p5js.org/reference/#/p5/setMoveThreshold\">setMoveThreshold()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'deviceMoved',\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Run this example on a mobile device\\n// Move the device around\\n// to change the value.\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction deviceMoved() {\\n  value = value + 5;\\n  if (value > 255) {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '50x50 black rect in center of canvas. turns white on mobile when device moves',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 550,\n                description:\n                  '<p>The <a href=\"#/p5/deviceTurned\">deviceTurned()</a> function is called when the device rotates by\\nmore than 90 degrees continuously.\\n<br><br>\\nThe axis that triggers the <a href=\"#/p5/deviceTurned\">deviceTurned()</a> method is stored in the turnAxis\\nvariable. The <a href=\"#/p5/deviceTurned\">deviceTurned()</a> method can be locked to trigger on any axis:\\nX, Y or Z by comparing the turnAxis variable to &#39;X&#39;, &#39;Y&#39; or &#39;Z&#39;.</p>\\n',\n                itemtype: 'method',\n                name: 'deviceTurned',\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Run this example on a mobile device\\n// Rotate the device by 90 degrees\\n// to change the value.\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction deviceTurned() {\\n  if (value === 0) {\\n    value = 255;\\n  } else if (value === 255) {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\n// Run this example on a mobile device\\n// Rotate the device by 90 degrees in the\\n// X-axis to change the value.\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction deviceTurned() {\\n  if (turnAxis === \\'X\\') {\\n    if (value === 0) {\\n      value = 255;\\n    } else if (value === 255) {\\n      value = 0;\\n    }\\n  }\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '50x50 black rect in center of canvas. turns white on mobile when device turns\\n50x50 black rect in center of canvas. turns white on mobile when x-axis turns',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/acceleration.js',\n                line: 609,\n                description:\n                  '<p>The <a href=\"#/p5/deviceShaken\">deviceShaken()</a> function is called when the device total acceleration\\nchanges of accelerationX and accelerationY values is more than\\nthe threshold value. The default threshold is set to 30.\\nThe threshold value can be changed using <a href=\"https://p5js.org/reference/#/p5/setShakeThreshold\">setShakeThreshold()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'deviceShaken',\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Run this example on a mobile device\\n// Shake the device to change the value.\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction deviceShaken() {\\n  value = value + 5;\\n  if (value > 255) {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '50x50 black rect in center of canvas. turns white on mobile when device shakes',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Acceleration'\n              },\n              {\n                file: 'src/events/keyboard.js',\n                line: 10,\n                description:\n                  '<p>The boolean system variable <a href=\"#/p5/keyIsPressed\">keyIsPressed</a> is true if any key is pressed\\nand false if no keys are pressed.</p>\\n',\n                itemtype: 'property',\n                name: 'keyIsPressed',\n                type: 'Boolean',\n                readonly: '',\n                example: [\n                  '\\n<div>\\n<code>\\nfunction draw() {\\n  if (keyIsPressed === true) {\\n    fill(0);\\n  } else {\\n    fill(255);\\n  }\\n  rect(25, 25, 50, 50);\\n}\\n</code>\\n</div>'\n                ],\n                alt: '50x50 white rect that turns black on keypress.',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Keyboard'\n              },\n              {\n                file: 'src/events/keyboard.js',\n                line: 37,\n                description:\n                  '<p>The system variable key always contains the value of the most recent\\nkey on the keyboard that was typed. To get the proper capitalization, it\\nis best to use it within <a href=\"#/p5/keyTyped\">keyTyped()</a>. For non-ASCII keys, use the <a href=\"#/p5/keyCode\">keyCode</a>\\nvariable.</p>\\n',\n                itemtype: 'property',\n                name: 'key',\n                type: 'String',\n                readonly: '',\n                example: [\n                  '\\n<div><code>\\n// Click any key to display it!\\n// (Not Guaranteed to be Case Sensitive)\\nfunction setup() {\\n  fill(245, 123, 158);\\n  textSize(50);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  text(key, 33, 65); // Display last key pressed.\\n}\\n</code></div>'\n                ],\n                alt: 'canvas displays any key value that is pressed in pink font.',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Keyboard'\n              },\n              {\n                file: 'src/events/keyboard.js',\n                line: 66,\n                description:\n                  '<p>The variable keyCode is used to detect special keys such as BACKSPACE,\\nDELETE, ENTER, RETURN, TAB, ESCAPE, SHIFT, CONTROL, OPTION, ALT, UP_ARROW,\\nDOWN_ARROW, LEFT_ARROW, RIGHT_ARROW.\\nYou can also check for custom keys by looking up the keyCode of any key\\non a site like this: <a href=\"http://keycode.info/\">keycode.info</a>.</p>\\n',\n                itemtype: 'property',\n                name: 'keyCode',\n                type: 'Integer',\n                readonly: '',\n                example: [\n                  \"\\n<div><code>\\nlet fillVal = 126;\\nfunction draw() {\\n  fill(fillVal);\\n  rect(25, 25, 50, 50);\\n}\\n\\nfunction keyPressed() {\\n  if (keyCode === UP_ARROW) {\\n    fillVal = 255;\\n  } else if (keyCode === DOWN_ARROW) {\\n    fillVal = 0;\\n  }\\n  return false; // prevent default\\n}\\n</code></div>\\n<div><code>\\nfunction draw() {}\\nfunction keyPressed() {\\n  background('yellow');\\n  text(`${key} ${keyCode}`, 10, 40);\\n  print(key, ' ', keyCode);\\n  return false; // prevent default\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'Grey rect center. turns white when up arrow pressed and black when down\\nDisplay key pressed and its keyCode in a yellow box',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Keyboard'\n              },\n              {\n                file: 'src/events/keyboard.js',\n                line: 107,\n                description:\n                  '<p>The <a href=\"#/p5/keyPressed\">keyPressed()</a> function is called once every time a key is pressed. The\\nkeyCode for the key that was pressed is stored in the <a href=\"#/p5/keyCode\">keyCode</a> variable.\\n<br><br>\\nFor non-ASCII keys, use the keyCode variable. You can check if the keyCode\\nequals BACKSPACE, DELETE, ENTER, RETURN, TAB, ESCAPE, SHIFT, CONTROL,\\nOPTION, ALT, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW.\\n<br><br>\\nFor ASCII keys, the key that was pressed is stored in the key variable. However, it\\ndoes not distinguish between uppercase and lowercase. For this reason, it\\nis recommended to use <a href=\"#/p5/keyTyped\">keyTyped()</a> to read the key variable, in which the\\ncase of the variable will be distinguished.\\n<br><br>\\nBecause of how operating systems handle key repeats, holding down a key\\nmay cause multiple calls to <a href=\"#/p5/keyTyped\">keyTyped()</a> (and <a href=\"#/p5/keyReleased\">keyReleased()</a> as well). The\\nrate of repeat is set by the operating system and how each computer is\\nconfigured.<br><br>\\nBrowsers may have different default\\nbehaviors attached to various key events. To prevent any default\\nbehavior for this event, add &quot;return false&quot; to the end of the method.</p>\\n',\n                itemtype: 'method',\n                name: 'keyPressed',\n                example: [\n                  '\\n<div>\\n<code>\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction keyPressed() {\\n  if (value === 0) {\\n    value = 255;\\n  } else {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction keyPressed() {\\n  if (keyCode === LEFT_ARROW) {\\n    value = 255;\\n  } else if (keyCode === RIGHT_ARROW) {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>\\n<div class=\"norender\">\\n<code>\\nfunction keyPressed() {\\n  // Do something\\n  return false; // prevent any default behaviour\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'black rect center. turns white when key pressed and black when released\\nblack rect center. turns white when left arrow pressed and black when right.',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Keyboard'\n              },\n              {\n                file: 'src/events/keyboard.js',\n                line: 194,\n                description:\n                  '<p>The <a href=\"#/p5/keyReleased\">keyReleased()</a> function is called once every time a key is released.\\nSee <a href=\"#/p5/key\">key</a> and <a href=\"#/p5/keyCode\">keyCode</a> for more information.<br><br>\\nBrowsers may have different default\\nbehaviors attached to various key events. To prevent any default\\nbehavior for this event, add &quot;return false&quot; to the end of the method.</p>\\n',\n                itemtype: 'method',\n                name: 'keyReleased',\n                example: [\n                  '\\n<div>\\n<code>\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction keyReleased() {\\n  if (value === 0) {\\n    value = 255;\\n  } else {\\n    value = 0;\\n  }\\n  return false; // prevent any default behavior\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'black rect center. turns white when key pressed and black when pressed again',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Keyboard'\n              },\n              {\n                file: 'src/events/keyboard.js',\n                line: 246,\n                description:\n                  '<p>The <a href=\"#/p5/keyTyped\">keyTyped()</a> function is called once every time a key is pressed, but\\naction keys such as Backspace, Delete, Ctrl, Shift, and Alt are ignored. If you are trying to detect\\na keyCode for one of these keys, use the <a href=\"#/p5/keyPressed\">keyPressed()</a> function instead.\\nThe most recent key typed will be stored in the key variable.\\n<br><br>\\nBecause of how operating systems handle key repeats, holding down a key\\nwill cause multiple calls to <a href=\"#/p5/keyTyped\">keyTyped()</a> (and <a href=\"#/p5/keyReleased\">keyReleased()</a> as well). The\\nrate of repeat is set by the operating system and how each computer is\\nconfigured.<br><br>\\nBrowsers may have different default behaviors attached to various key\\nevents. To prevent any default behavior for this event, add &quot;return false&quot;\\nto the end of the method.</p>\\n',\n                itemtype: 'method',\n                name: 'keyTyped',\n                example: [\n                  \"\\n<div>\\n<code>\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction keyTyped() {\\n  if (key === 'a') {\\n    value = 255;\\n  } else if (key === 'b') {\\n    value = 0;\\n  }\\n  // uncomment to prevent any default behavior\\n  // return false;\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  \"black rect center. turns white when 'a' key typed and black when 'b' pressed\",\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Keyboard'\n              },\n              {\n                file: 'src/events/keyboard.js',\n                line: 300,\n                description:\n                  '<p>The onblur function is called when the user is no longer focused\\non the p5 element. Because the keyup events will not fire if the user is\\nnot focused on the element we must assume all keys currently down have\\nbeen released.</p>\\n',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Keyboard'\n              },\n              {\n                file: 'src/events/keyboard.js',\n                line: 310,\n                description:\n                  '<p>The <a href=\"#/p5/keyIsDown\">keyIsDown()</a> function checks if the key is currently down, i.e. pressed.\\nIt can be used if you have an object that moves, and you want several keys\\nto be able to affect its behaviour simultaneously, such as moving a\\nsprite diagonally. You can put in any number representing the keyCode of\\nthe key, or use any of the variable <a href=\"#/p5/keyCode\">keyCode</a> names listed\\n<a href=\"http://p5js.org/reference/#p5/keyCode\">here</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'keyIsDown',\n                params: [\n                  {\n                    name: 'code',\n                    description: '<p>The key to check for.</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'whether key is down or not',\n                  type: 'Boolean'\n                },\n                example: [\n                  '\\n<div><code>\\nlet x = 100;\\nlet y = 100;\\n\\nfunction setup() {\\n  createCanvas(512, 512);\\n  fill(255, 0, 0);\\n}\\n\\nfunction draw() {\\n  if (keyIsDown(LEFT_ARROW)) {\\n    x -= 5;\\n  }\\n\\n  if (keyIsDown(RIGHT_ARROW)) {\\n    x += 5;\\n  }\\n\\n  if (keyIsDown(UP_ARROW)) {\\n    y -= 5;\\n  }\\n\\n  if (keyIsDown(DOWN_ARROW)) {\\n    y += 5;\\n  }\\n\\n  clear();\\n  ellipse(x, y, 50, 50);\\n}\\n</code></div>\\n\\n<div><code>\\nlet diameter = 50;\\n\\nfunction setup() {\\n  createCanvas(512, 512);\\n}\\n\\nfunction draw() {\\n  // 107 and 187 are keyCodes for \"+\"\\n  if (keyIsDown(107) || keyIsDown(187)) {\\n    diameter += 1;\\n  }\\n\\n  // 109 and 189 are keyCodes for \"-\"\\n  if (keyIsDown(109) || keyIsDown(189)) {\\n    diameter -= 1;\\n  }\\n\\n  clear();\\n  fill(255, 0, 0);\\n  ellipse(50, 50, diameter, diameter);\\n}\\n</code></div>'\n                ],\n                alt:\n                  '50x50 red ellipse moves left, right, up and down with arrow presses.\\n50x50 red ellipse gets bigger or smaller when + or - are pressed.',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Keyboard'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 12,\n                description:\n                  '<p>The variable movedX contains the horizontal movement of the mouse since the last frame</p>\\n',\n                itemtype: 'property',\n                name: 'movedX',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  '\\n <div class=\"notest\">\\n <code>\\n let x = 50;\\n function setup() {\\n   rectMode(CENTER);\\n }\\nfunction draw() {\\n   if (x > 48) {\\n     x -= 2;\\n   } else if (x < 48) {\\n     x += 2;\\n   }\\n   x += floor(movedX / 5);\\n   background(237, 34, 93);\\n   fill(0);\\n   rect(x, 50, 50, 50);\\n }\\n </code>\\n </div>'\n                ],\n                alt:\n                  'box moves left and right according to mouse movement then slowly back towards the center',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 44,\n                description:\n                  '<p>The variable movedY contains the vertical movement of the mouse since the last frame</p>\\n',\n                itemtype: 'property',\n                name: 'movedY',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  '\\n<div class=\"notest\">\\n<code>\\nlet y = 50;\\nfunction setup() {\\n  rectMode(CENTER);\\n}\\n\\nfunction draw() {\\n  if (y > 48) {\\n    y -= 2;\\n  } else if (y < 48) {\\n    y += 2;\\n  }\\n  y += floor(movedY / 5);\\n  background(237, 34, 93);\\n  fill(0);\\n  rect(y, 50, 50, 50);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'box moves up and down according to mouse movement then slowly back towards the center',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 82,\n                description:\n                  '<p>The system variable mouseX always contains the current horizontal\\nposition of the mouse, relative to (0, 0) of the canvas. The value at\\nthe top-left corner is (0, 0) for 2-D and (-width/2, -height/2) for WebGL.\\nIf touch is used instead of mouse input, mouseX will hold the x value\\nof the most recent touch point.</p>\\n',\n                itemtype: 'property',\n                name: 'mouseX',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  '\\n<div>\\n<code>\\n// Move the mouse across the canvas\\nfunction draw() {\\n  background(244, 248, 252);\\n  line(mouseX, 0, mouseX, 100);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'horizontal black line moves left and right with mouse x-position',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 109,\n                description:\n                  '<p>The system variable mouseY always contains the current vertical\\nposition of the mouse, relative to (0, 0) of the canvas. The value at\\nthe top-left corner is (0, 0) for 2-D and (-width/2, -height/2) for WebGL.\\nIf touch is used instead of mouse input, mouseY will hold the y value\\nof the most recent touch point.</p>\\n',\n                itemtype: 'property',\n                name: 'mouseY',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  '\\n<div>\\n<code>\\n// Move the mouse across the canvas\\nfunction draw() {\\n  background(244, 248, 252);\\n  line(0, mouseY, 100, mouseY);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'vertical black line moves up and down with mouse y-position',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 136,\n                description:\n                  '<p>The system variable pmouseX always contains the horizontal position of\\nthe mouse or finger in the frame previous to the current frame, relative to\\n(0, 0) of the canvas. The value at the top-left corner is (0, 0) for 2-D and\\n(-width/2, -height/2) for WebGL. Note: pmouseX will be reset to the current mouseX\\nvalue at the start of each touch event.</p>\\n',\n                itemtype: 'property',\n                name: 'pmouseX',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  \"\\n<div>\\n<code>\\n// Move the mouse across the canvas to leave a trail\\nfunction setup() {\\n  //slow down the frameRate to make it more visible\\n  frameRate(10);\\n}\\n\\nfunction draw() {\\n  background(244, 248, 252);\\n  line(mouseX, mouseY, pmouseX, pmouseY);\\n  print(pmouseX + ' -> ' + mouseX);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'line trail is created from cursor movements. faster movement make longer line.',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 169,\n                description:\n                  '<p>The system variable pmouseY always contains the vertical position of\\nthe mouse or finger in the frame previous to the current frame, relative to\\n(0, 0) of the canvas. The value at the top-left corner is (0, 0) for 2-D and\\n(-width/2, -height/2) for WebGL. Note: pmouseY will be reset to the current mouseY\\nvalue at the start of each touch event.</p>\\n',\n                itemtype: 'property',\n                name: 'pmouseY',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  \"\\n<div>\\n<code>\\nfunction draw() {\\n  background(237, 34, 93);\\n  fill(0);\\n  //draw a square only if the mouse is not moving\\n  if (mouseY === pmouseY && mouseX === pmouseX) {\\n    rect(20, 20, 60, 60);\\n  }\\n\\n  print(pmouseY + ' -> ' + mouseY);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '60x60 black rect center, fuchsia background. rect flickers on mouse movement',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 201,\n                description:\n                  '<p>The system variable winMouseX always contains the current horizontal\\nposition of the mouse, relative to (0, 0) of the window.</p>\\n',\n                itemtype: 'property',\n                name: 'winMouseX',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  \"\\n<div>\\n<code>\\nlet myCanvas;\\n\\nfunction setup() {\\n  //use a variable to store a pointer to the canvas\\n  myCanvas = createCanvas(100, 100);\\n  let body = document.getElementsByTagName('body')[0];\\n  myCanvas.parent(body);\\n}\\n\\nfunction draw() {\\n  background(237, 34, 93);\\n  fill(0);\\n\\n  //move the canvas to the horizontal mouse position\\n  //relative to the window\\n  myCanvas.position(winMouseX + 1, windowHeight / 2);\\n\\n  //the y of the square is relative to the canvas\\n  rect(20, mouseY, 60, 60);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '60x60 black rect y moves with mouse y and fuchsia canvas moves with mouse x',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 240,\n                description:\n                  '<p>The system variable winMouseY always contains the current vertical\\nposition of the mouse, relative to (0, 0) of the window.</p>\\n',\n                itemtype: 'property',\n                name: 'winMouseY',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  \"\\n<div>\\n<code>\\nlet myCanvas;\\n\\nfunction setup() {\\n  //use a variable to store a pointer to the canvas\\n  myCanvas = createCanvas(100, 100);\\n  let body = document.getElementsByTagName('body')[0];\\n  myCanvas.parent(body);\\n}\\n\\nfunction draw() {\\n  background(237, 34, 93);\\n  fill(0);\\n\\n  //move the canvas to the vertical mouse position\\n  //relative to the window\\n  myCanvas.position(windowWidth / 2, winMouseY + 1);\\n\\n  //the x of the square is relative to the canvas\\n  rect(mouseX, 20, 60, 60);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '60x60 black rect x moves with mouse x and fuchsia canvas y moves with mouse y',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 279,\n                description:\n                  '<p>The system variable pwinMouseX always contains the horizontal position\\nof the mouse in the frame previous to the current frame, relative to\\n(0, 0) of the window. Note: pwinMouseX will be reset to the current winMouseX\\nvalue at the start of each touch event.</p>\\n',\n                itemtype: 'property',\n                name: 'pwinMouseX',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  '\\n<div>\\n<code>\\nlet myCanvas;\\n\\nfunction setup() {\\n  //use a variable to store a pointer to the canvas\\n  myCanvas = createCanvas(100, 100);\\n  noStroke();\\n  fill(237, 34, 93);\\n}\\n\\nfunction draw() {\\n  clear();\\n  //the difference between previous and\\n  //current x position is the horizontal mouse speed\\n  let speed = abs(winMouseX - pwinMouseX);\\n  //change the size of the circle\\n  //according to the horizontal speed\\n  ellipse(50, 50, 10 + speed * 5, 10 + speed * 5);\\n  //move the canvas to the mouse position\\n  myCanvas.position(winMouseX + 1, winMouseY + 1);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'fuchsia ellipse moves with mouse x and y. Grows and shrinks with mouse speed',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 320,\n                description:\n                  '<p>The system variable pwinMouseY always contains the vertical position of\\nthe mouse in the frame previous to the current frame, relative to (0, 0)\\nof the window. Note: pwinMouseY will be reset to the current winMouseY\\nvalue at the start of each touch event.</p>\\n',\n                itemtype: 'property',\n                name: 'pwinMouseY',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  '\\n<div>\\n<code>\\nlet myCanvas;\\n\\nfunction setup() {\\n  //use a variable to store a pointer to the canvas\\n  myCanvas = createCanvas(100, 100);\\n  noStroke();\\n  fill(237, 34, 93);\\n}\\n\\nfunction draw() {\\n  clear();\\n  //the difference between previous and\\n  //current y position is the vertical mouse speed\\n  let speed = abs(winMouseY - pwinMouseY);\\n  //change the size of the circle\\n  //according to the vertical speed\\n  ellipse(50, 50, 10 + speed * 5, 10 + speed * 5);\\n  //move the canvas to the mouse position\\n  myCanvas.position(winMouseX + 1, winMouseY + 1);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'fuchsia ellipse moves with mouse x and y. Grows and shrinks with mouse speed',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 362,\n                description:\n                  '<p>Processing automatically tracks if the mouse button is pressed and which\\nbutton is pressed. The value of the system variable mouseButton is either\\nLEFT, RIGHT, or CENTER depending on which button was pressed last.\\nWarning: different browsers may track mouseButton differently.</p>\\n',\n                itemtype: 'property',\n                name: 'mouseButton',\n                type: 'Constant',\n                readonly: '',\n                example: [\n                  '\\n<div>\\n<code>\\nfunction draw() {\\n  background(237, 34, 93);\\n  fill(0);\\n\\n  if (mouseIsPressed) {\\n    if (mouseButton === LEFT) {\\n      ellipse(50, 50, 50, 50);\\n    }\\n    if (mouseButton === RIGHT) {\\n      rect(25, 25, 50, 50);\\n    }\\n    if (mouseButton === CENTER) {\\n      triangle(23, 75, 50, 20, 78, 75);\\n    }\\n  }\\n\\n  print(mouseButton);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '50x50 black ellipse appears on center of fuchsia canvas on mouse click/press.',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 401,\n                description:\n                  '<p>The boolean system variable mouseIsPressed is true if the mouse is pressed\\nand false if not.</p>\\n',\n                itemtype: 'property',\n                name: 'mouseIsPressed',\n                type: 'Boolean',\n                readonly: '',\n                example: [\n                  '\\n<div>\\n<code>\\nfunction draw() {\\n  background(237, 34, 93);\\n  fill(0);\\n\\n  if (mouseIsPressed) {\\n    ellipse(50, 50, 50, 50);\\n  } else {\\n    rect(25, 25, 50, 50);\\n  }\\n\\n  print(mouseIsPressed);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'black 50x50 rect becomes ellipse with mouse click/press. fuchsia background.',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 494,\n                description:\n                  '<p>The <a href=\"#/p5/mouseMoved\">mouseMoved()</a> function is called every time the mouse moves and a mouse\\nbutton is not pressed.<br><br>\\nBrowsers may have different default\\nbehaviors attached to various mouse events. To prevent any default\\nbehavior for this event, add &quot;return false&quot; to the end of the method.</p>\\n',\n                itemtype: 'method',\n                name: 'mouseMoved',\n                params: [\n                  {\n                    name: 'event',\n                    description: '<p>optional MouseEvent callback argument.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\n// Move the mouse across the page\\n// to change its value\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction mouseMoved() {\\n  value = value + 5;\\n  if (value > 255) {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\nfunction mouseMoved() {\\n  ellipse(mouseX, mouseY, 5, 5);\\n  // prevent default\\n  return false;\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\n// returns a MouseEvent object\\n// as a callback argument\\nfunction mouseMoved(event) {\\n  console.log(event);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'black 50x50 rect becomes lighter with mouse movements until white then resets\\nno image displayed',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 549,\n                description:\n                  '<p>The <a href=\"#/p5/mouseDragged\">mouseDragged()</a> function is called once every time the mouse moves and\\na mouse button is pressed. If no <a href=\"#/p5/mouseDragged\">mouseDragged()</a> function is defined, the\\n<a href=\"#/p5/touchMoved\">touchMoved()</a> function will be called instead if it is defined.<br><br>\\nBrowsers may have different default\\nbehaviors attached to various mouse events. To prevent any default\\nbehavior for this event, add &quot;return false&quot; to the end of the method.</p>\\n',\n                itemtype: 'method',\n                name: 'mouseDragged',\n                params: [\n                  {\n                    name: 'event',\n                    description: '<p>optional MouseEvent callback argument.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\n// Drag the mouse across the page\\n// to change its value\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction mouseDragged() {\\n  value = value + 5;\\n  if (value > 255) {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\nfunction mouseDragged() {\\n  ellipse(mouseX, mouseY, 5, 5);\\n  // prevent default\\n  return false;\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\n// returns a MouseEvent object\\n// as a callback argument\\nfunction mouseDragged(event) {\\n  console.log(event);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'black 50x50 rect turns lighter with mouse click and drag until white, resets\\nno image displayed',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 630,\n                description:\n                  '<p>The <a href=\"#/p5/mousePressed\">mousePressed()</a> function is called once after every time a mouse button\\nis pressed. The mouseButton variable (see the related reference entry)\\ncan be used to determine which button has been pressed. If no\\n<a href=\"#/p5/mousePressed\">mousePressed()</a> function is defined, the <a href=\"#/p5/touchStarted\">touchStarted()</a> function will be\\ncalled instead if it is defined.<br><br>\\nBrowsers may have different default\\nbehaviors attached to various mouse events. To prevent any default\\nbehavior for this event, add &quot;return false&quot; to the end of the method.</p>\\n',\n                itemtype: 'method',\n                name: 'mousePressed',\n                params: [\n                  {\n                    name: 'event',\n                    description: '<p>optional MouseEvent callback argument.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\n// Click within the image to change\\n// the value of the rectangle\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction mousePressed() {\\n  if (value === 0) {\\n    value = 255;\\n  } else {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\nfunction mousePressed() {\\n  ellipse(mouseX, mouseY, 5, 5);\\n  // prevent default\\n  return false;\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\n// returns a MouseEvent object\\n// as a callback argument\\nfunction mousePressed(event) {\\n  console.log(event);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'black 50x50 rect turns white with mouse click/press.\\nno image displayed',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 712,\n                description:\n                  '<p>The <a href=\"#/p5/mouseReleased\">mouseReleased()</a> function is called every time a mouse button is\\nreleased. If no <a href=\"#/p5/mouseReleased\">mouseReleased()</a> function is defined, the <a href=\"#/p5/touchEnded\">touchEnded()</a>\\nfunction will be called instead if it is defined.<br><br>\\nBrowsers may have different default\\nbehaviors attached to various mouse events. To prevent any default\\nbehavior for this event, add &quot;return false&quot; to the end of the method.</p>\\n',\n                itemtype: 'method',\n                name: 'mouseReleased',\n                params: [\n                  {\n                    name: 'event',\n                    description: '<p>optional MouseEvent callback argument.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\n// Click within the image to change\\n// the value of the rectangle\\n// after the mouse has been clicked\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction mouseReleased() {\\n  if (value === 0) {\\n    value = 255;\\n  } else {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\nfunction mouseReleased() {\\n  ellipse(mouseX, mouseY, 5, 5);\\n  // prevent default\\n  return false;\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\n// returns a MouseEvent object\\n// as a callback argument\\nfunction mouseReleased(event) {\\n  console.log(event);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'black 50x50 rect turns white with mouse click/press.\\nno image displayed',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 790,\n                description:\n                  '<p>The <a href=\"#/p5/mouseClicked\">mouseClicked()</a> function is called once after a mouse button has been\\npressed and then released.<br><br>\\nBrowsers handle clicks differently, so this function is only guaranteed to be\\nrun when the left mouse button is clicked. To handle other mouse buttons\\nbeing pressed or released, see <a href=\"#/p5/mousePressed\">mousePressed()</a> or <a href=\"#/p5/mouseReleased\">mouseReleased()</a>.<br><br>\\nBrowsers may have different default\\nbehaviors attached to various mouse events. To prevent any default\\nbehavior for this event, add &quot;return false&quot; to the end of the method.</p>\\n',\n                itemtype: 'method',\n                name: 'mouseClicked',\n                params: [\n                  {\n                    name: 'event',\n                    description: '<p>optional MouseEvent callback argument.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\n// Click within the image to change\\n// the value of the rectangle\\n// after the mouse has been clicked\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\n\\nfunction mouseClicked() {\\n  if (value === 0) {\\n    value = 255;\\n  } else {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\nfunction mouseClicked() {\\n  ellipse(mouseX, mouseY, 5, 5);\\n  // prevent default\\n  return false;\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\n// returns a MouseEvent object\\n// as a callback argument\\nfunction mouseClicked(event) {\\n  console.log(event);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'black 50x50 rect turns white with mouse click/press.\\nno image displayed',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 860,\n                description:\n                  '<p>The <a href=\"#/p5/doubleClicked\">doubleClicked()</a> function is executed every time a event\\nlistener has detected a dblclick event which is a part of the\\nDOM L3 specification. The doubleClicked event is fired when a\\npointing device button (usually a mouse&#39;s primary button)\\nis clicked twice on a single element. For more info on the\\ndblclick event refer to mozilla&#39;s documentation here:\\n<a href=\"https://developer.mozilla.org/en-US/docs/Web/Events/dblclick\">https://developer.mozilla.org/en-US/docs/Web/Events/dblclick</a></p>\\n',\n                itemtype: 'method',\n                name: 'doubleClicked',\n                params: [\n                  {\n                    name: 'event',\n                    description: '<p>optional MouseEvent callback argument.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\n// Click within the image to change\\n// the value of the rectangle\\n// after the mouse has been double clicked\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\n\\nfunction doubleClicked() {\\n  if (value === 0) {\\n    value = 255;\\n  } else {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\nfunction doubleClicked() {\\n  ellipse(mouseX, mouseY, 5, 5);\\n  // prevent default\\n  return false;\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\n// returns a MouseEvent object\\n// as a callback argument\\nfunction doubleClicked(event) {\\n  console.log(event);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'black 50x50 rect turns white with mouse doubleClick/press.\\nno image displayed',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 945,\n                description:\n                  '<p>The function <a href=\"#/p5/mouseWheel\">mouseWheel()</a> is executed every time a vertical mouse wheel\\nevent is detected either triggered by an actual mouse wheel or by a\\ntouchpad.<br><br>\\nThe event.delta property returns the amount the mouse wheel\\nhave scrolled. The values can be positive or negative depending on the\\nscroll direction (on OS X with &quot;natural&quot; scrolling enabled, the signs\\nare inverted).<br><br>\\nBrowsers may have different default behaviors attached to various\\nmouse events. To prevent any default behavior for this event, add\\n&quot;return false&quot; to the end of the method.<br><br>\\nDue to the current support of the &quot;wheel&quot; event on Safari, the function\\nmay only work as expected if &quot;return false&quot; is included while using Safari.</p>\\n',\n                itemtype: 'method',\n                name: 'mouseWheel',\n                params: [\n                  {\n                    name: 'event',\n                    description: '<p>optional WheelEvent callback argument.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\nlet pos = 25;\\n\\nfunction draw() {\\n  background(237, 34, 93);\\n  fill(0);\\n  rect(25, pos, 50, 50);\\n}\\n\\nfunction mouseWheel(event) {\\n  print(event.delta);\\n  //move the square according to the vertical scroll amount\\n  pos += event.delta;\\n  //uncomment to block page scrolling\\n  //return false;\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'black 50x50 rect moves up and down with vertical scroll. fuchsia background',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 999,\n                description:\n                  '<p>The function <a href=\"#/p5/requestPointerLock\">requestPointerLock()</a>\\nlocks the pointer to its current position and makes it invisible.\\nUse <a href=\"#/p5/movedX\">movedX</a> and <a href=\"#/p5/movedY\">movedY</a> to get the difference the mouse was moved since\\nthe last call of draw</p>\\n<p>Note that not all browsers support this feature</p>\\n<p>This enables you to create experiences that aren\\'t limited by the mouse moving out of the screen\\neven if it is repeatedly moved into one direction. </p>\\n<p>For example a first person perspective experience</p>',\n                itemtype: 'method',\n                name: 'requestPointerLock',\n                example: [\n                  '\\n<div class=\"notest\">\\n<code>\\nlet cam;\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  requestPointerLock();\\n  cam = createCamera();\\n}\\n\\nfunction draw() {\\n  background(255);\\n  cam.pan(-movedX * 0.001);\\n  cam.tilt(movedY * 0.001);\\n  sphere(25);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '3D scene moves according to mouse mouse movement in a first person perspective',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/mouse.js',\n                line: 1046,\n                description:\n                  '<p>The function <a href=\"#/p5/exitPointerLock\">exitPointerLock()</a>\\nexits a previously triggered <a href=\"#/p5/requestPointerLock\">pointer Lock</a>\\nfor example to make ui elements usable etc',\n                itemtype: 'method',\n                name: 'exitPointerLock',\n                example: [\n                  '\\n<div class=\"notest\">\\n<code>\\n//click the canvas to lock the pointer\\n//click again to exit (otherwise escape)\\nlet locked = false;\\nfunction draw() {\\n  background(237, 34, 93);\\n}\\nfunction mouseClicked() {\\n  if (!locked) {\\n    locked = true;\\n    requestPointerLock();\\n  } else {\\n    exitPointerLock();\\n    locked = false;\\n  }\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'cursor gets locked / unlocked on mouse-click',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Mouse'\n              },\n              {\n                file: 'src/events/touch.js',\n                line: 10,\n                description:\n                  '<p>The system variable touches[] contains an array of the positions of all\\ncurrent touch points, relative to (0, 0) of the canvas, and IDs identifying a\\nunique touch as it moves. Each element in the array is an object with x, y,\\nand id properties.</p>\\n<p>The touches[] array is not supported on Safari and IE on touch-based\\ndesktops (laptops).</p>\\n',\n                itemtype: 'property',\n                name: 'touches',\n                type: 'Object[]',\n                readonly: '',\n                example: [\n                  \"\\n<div>\\n<code>\\n// On a touchscreen device, touch\\n// the canvas using one or more fingers\\n// at the same time\\nfunction draw() {\\n  clear();\\n  let display = touches.length + ' touches';\\n  text(display, 5, 10);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'Number of touches currently registered are displayed on the canvas',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Touch'\n              },\n              {\n                file: 'src/events/touch.js',\n                line: 71,\n                description:\n                  '<p>The touchStarted() function is called once after every time a touch is\\nregistered. If no <a href=\"#/p5/touchStarted\">touchStarted()</a> function is defined, the <a href=\"#/p5/mousePressed\">mousePressed()</a>\\nfunction will be called instead if it is defined.<br><br>\\nBrowsers may have different default behaviors attached to various touch\\nevents. To prevent any default behavior for this event, add &quot;return false&quot;\\nto the end of the method.</p>\\n',\n                itemtype: 'method',\n                name: 'touchStarted',\n                params: [\n                  {\n                    name: 'event',\n                    description: '<p>optional TouchEvent callback argument.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\n// Touch within the image to change\\n// the value of the rectangle\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction touchStarted() {\\n  if (value === 0) {\\n    value = 255;\\n  } else {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\nfunction touchStarted() {\\n  ellipse(mouseX, mouseY, 5, 5);\\n  // prevent default\\n  return false;\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\n// returns a TouchEvent object\\n// as a callback argument\\nfunction touchStarted(event) {\\n  console.log(event);\\n}\\n</code>\\n</div>'\n                ],\n                alt: '50x50 black rect turns white with touch event.\\nno image displayed',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Touch'\n              },\n              {\n                file: 'src/events/touch.js',\n                line: 151,\n                description:\n                  '<p>The <a href=\"#/p5/touchMoved\">touchMoved()</a> function is called every time a touch move is registered.\\nIf no <a href=\"#/p5/touchMoved\">touchMoved()</a> function is defined, the <a href=\"#/p5/mouseDragged\">mouseDragged()</a> function will\\nbe called instead if it is defined.<br><br>\\nBrowsers may have different default behaviors attached to various touch\\nevents. To prevent any default behavior for this event, add &quot;return false&quot;\\nto the end of the method.</p>\\n',\n                itemtype: 'method',\n                name: 'touchMoved',\n                params: [\n                  {\n                    name: 'event',\n                    description: '<p>optional TouchEvent callback argument.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\n// Move your finger across the page\\n// to change its value\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction touchMoved() {\\n  value = value + 5;\\n  if (value > 255) {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\nfunction touchMoved() {\\n  ellipse(mouseX, mouseY, 5, 5);\\n  // prevent default\\n  return false;\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\n// returns a TouchEvent object\\n// as a callback argument\\nfunction touchMoved(event) {\\n  console.log(event);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '50x50 black rect turns lighter with touch until white. resets\\nno image displayed',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Touch'\n              },\n              {\n                file: 'src/events/touch.js',\n                line: 224,\n                description:\n                  '<p>The <a href=\"#/p5/touchEnded\">touchEnded()</a> function is called every time a touch ends. If no\\n<a href=\"#/p5/touchEnded\">touchEnded()</a> function is defined, the <a href=\"#/p5/mouseReleased\">mouseReleased()</a> function will be\\ncalled instead if it is defined.<br><br>\\nBrowsers may have different default behaviors attached to various touch\\nevents. To prevent any default behavior for this event, add &quot;return false&quot;\\nto the end of the method.</p>\\n',\n                itemtype: 'method',\n                name: 'touchEnded',\n                params: [\n                  {\n                    name: 'event',\n                    description: '<p>optional TouchEvent callback argument.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\n// Release touch within the image to\\n// change the value of the rectangle\\n\\nlet value = 0;\\nfunction draw() {\\n  fill(value);\\n  rect(25, 25, 50, 50);\\n}\\nfunction touchEnded() {\\n  if (value === 0) {\\n    value = 255;\\n  } else {\\n    value = 0;\\n  }\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\nfunction touchEnded() {\\n  ellipse(mouseX, mouseY, 5, 5);\\n  // prevent default\\n  return false;\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\n// returns a TouchEvent object\\n// as a callback argument\\nfunction touchEnded(event) {\\n  console.log(event);\\n}\\n</code>\\n</div>'\n                ],\n                alt: '50x50 black rect turns white with touch.\\nno image displayed',\n                class: 'p5',\n                module: 'Events',\n                submodule: 'Touch'\n              },\n              {\n                file: 'src/image/filters.js',\n                line: 3,\n                description:\n                  '<p>This module defines the filters for use with image buffers.</p>\\n<p>This module is basically a collection of functions stored in an object\\nas opposed to modules. The functions are destructive, modifying\\nthe passed in canvas rather than creating a copy.</p>\\n<p>Generally speaking users of this module will use the Filters.apply method\\non a canvas to create an effect.</p>\\n<p>A number of functions are borrowed/adapted from\\n<a href=\"http://www.html5rocks.com/en/tutorials/canvas/imagefilters/\">http://www.html5rocks.com/en/tutorials/canvas/imagefilters/</a>\\nor the java processing implementation.</p>\\n',\n                class: 'p5',\n                module: 'Events'\n              },\n              {\n                file: 'src/image/image.js',\n                line: 8,\n                description:\n                  '<p>This module defines the p5 methods for the <a href=\"#/p5.Image\">p5.Image</a> class\\nfor drawing images to the main display canvas.</p>\\n',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/image.js',\n                line: 22,\n                description:\n                  '<p>Creates a new <a href=\"#/p5.Image\">p5.Image</a> (the datatype for storing images). This provides a\\nfresh buffer of pixels to play with. Set the size of the buffer with the\\nwidth and height parameters.\\n<br><br>\\n.<a href=\"#/p5.Image/pixels\">pixels</a> gives access to an array containing the values for all the pixels\\nin the display window.\\nThese values are numbers. This array is the size (including an appropriate\\nfactor for the <a href=\"#/p5/pixelDensity\">pixelDensity</a>) of the display window x4,\\nrepresenting the R, G, B, A values in order for each pixel, moving from\\nleft to right across each row, then down each column. See .<a href=\"#/p5.Image/pixels\">pixels</a> for\\nmore info. It may also be simpler to use <a href=\"#/p5.Image/set\">set()</a> or <a href=\"#/p5.Image/get\">get()</a>.\\n<br><br>\\nBefore accessing the pixels of an image, the data must loaded with the\\n<a href=\"#/p5.Image/loadPixels\">loadPixels()</a> function. After the array data has been modified, the\\n<a href=\"#/p5.Image/updatePixels\">updatePixels()</a> function must be run to update the changes.</p>\\n',\n                itemtype: 'method',\n                name: 'createImage',\n                params: [\n                  {\n                    name: 'width',\n                    description: '<p>width in pixels</p>\\n',\n                    type: 'Integer'\n                  },\n                  {\n                    name: 'height',\n                    description: '<p>height in pixels</p>\\n',\n                    type: 'Integer'\n                  }\n                ],\n                return: {\n                  description: 'the <a href=\"#/p5.Image\">p5.Image</a> object',\n                  type: 'p5.Image'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nlet img = createImage(66, 66);\\nimg.loadPixels();\\nfor (let i = 0; i < img.width; i++) {\\n  for (let j = 0; j < img.height; j++) {\\n    img.set(i, j, color(0, 90, 102));\\n  }\\n}\\nimg.updatePixels();\\nimage(img, 17, 17);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img = createImage(66, 66);\\nimg.loadPixels();\\nfor (let i = 0; i < img.width; i++) {\\n  for (let j = 0; j < img.height; j++) {\\n    img.set(i, j, color(0, 90, 102, (i % img.width) * 2));\\n  }\\n}\\nimg.updatePixels();\\nimage(img, 17, 17);\\nimage(img, 34, 34);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet pink = color(255, 102, 204);\\nlet img = createImage(66, 66);\\nimg.loadPixels();\\nlet d = pixelDensity();\\nlet halfImage = 4 * (img.width * d) * (img.height / 2 * d);\\nfor (let i = 0; i < halfImage; i += 4) {\\n  img.pixels[i] = red(pink);\\n  img.pixels[i + 1] = green(pink);\\n  img.pixels[i + 2] = blue(pink);\\n  img.pixels[i + 3] = alpha(pink);\\n}\\nimg.updatePixels();\\nimage(img, 17, 17);\\n</code>\\n</div>'\n                ],\n                alt:\n                  '66x66 dark turquoise rect in center of canvas.\\n2 gradated dark turquoise rects fade left. 1 center 1 bottom right of canvas\\nno image displayed',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/image.js',\n                line: 102,\n                description:\n                  '<p>Save the current canvas as an image. The browser will either save the\\nfile immediately, or prompt the user with a dialogue window.</p>\\n',\n                itemtype: 'method',\n                name: 'saveCanvas',\n                example: [\n                  \"\\n <div class='norender notest'><code>\\n function setup() {\\n let c = createCanvas(100, 100);\\n background(255, 0, 0);\\n saveCanvas(c, 'myCanvas', 'jpg');\\n }\\n </code></div>\\n <div class='norender notest'><code>\\n // note that this example has the same result as above\\n // if no canvas is specified, defaults to main canvas\\n function setup() {\\n let c = createCanvas(100, 100);\\n background(255, 0, 0);\\n saveCanvas('myCanvas', 'jpg');\\n\\n // all of the following are valid\\n saveCanvas(c, 'myCanvas', 'jpg');\\n saveCanvas(c, 'myCanvas.jpg');\\n saveCanvas(c, 'myCanvas');\\n saveCanvas(c);\\n saveCanvas('myCanvas', 'png');\\n saveCanvas('myCanvas');\\n saveCanvas();\\n }\\n </code></div>\"\n                ],\n                alt: 'no image displayed\\n no image displayed\\n no image displayed',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Image',\n                overloads: [\n                  {\n                    line: 102,\n                    params: [\n                      {\n                        name: 'selectedCanvas',\n                        description:\n                          '<p>a variable\\n                                representing a specific html5 canvas (optional)</p>\\n',\n                        type: 'p5.Element|HTMLCanvasElement'\n                      },\n                      {\n                        name: 'filename',\n                        description: '',\n                        type: 'String',\n                        optional: true\n                      },\n                      {\n                        name: 'extension',\n                        description: '<p>&#39;jpg&#39; or &#39;png&#39;</p>\\n',\n                        type: 'String',\n                        optional: true\n                      }\n                    ]\n                  },\n                  {\n                    line: 144,\n                    params: [\n                      {\n                        name: 'filename',\n                        description: '',\n                        type: 'String',\n                        optional: true\n                      },\n                      {\n                        name: 'extension',\n                        description: '',\n                        type: 'String',\n                        optional: true\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/image/image.js',\n                line: 246,\n                description:\n                  '<p>Capture a sequence of frames that can be used to create a movie.\\nAccepts a callback. For example, you may wish to send the frames\\nto a server where they can be stored or converted into a movie.\\nIf no callback is provided, the browser will pop up save dialogues in an\\nattempt to download all of the images that have just been created. With the\\ncallback provided the image data isn&#39;t saved by default but instead passed\\nas an argument to the callback function as an array of objects, with the\\nsize of array equal to the total number of frames.</p>\\n<p>Note that <a href=\"#/p5.Image/saveFrames\">saveFrames()</a> will only save the first 15 frames of an animation.\\nTo export longer animations, you might look into a library like\\n<a href=\"https://github.com/spite/ccapture.js/\">ccapture.js</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'saveFrames',\n                params: [\n                  {\n                    name: 'filename',\n                    description: '',\n                    type: 'String'\n                  },\n                  {\n                    name: 'extension',\n                    description: '<p>&#39;jpg&#39; or &#39;png&#39;</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'duration',\n                    description: '<p>Duration in seconds to save the frames for.</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'framerate',\n                    description: '<p>Framerate to save the frames in.</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>A callback function that will be executed\\n                                to handle the image data. This function\\n                                should accept an array as argument. The\\n                                array will contain the specified number of\\n                                frames of objects. Each object has three\\n                                properties: imageData - an\\n                                image/octet-stream, filename and extension.</p>\\n',\n                    type: 'Function(Array)',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\n function draw() {\\n background(mouseX);\\n }\\n\\n function mousePressed() {\\n saveFrames('out', 'png', 1, 25, data => {\\n   print(data);\\n });\\n }\\n</code></div>\"\n                ],\n                alt: 'canvas background goes from light to dark with mouse x.',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/loading_displaying.js',\n                line: 16,\n                description:\n                  '<p>Loads an image from a path and creates a <a href=\"#/p5.Image\">p5.Image</a> from it.\\n<br><br>\\nThe image may not be immediately available for rendering\\nIf you want to ensure that the image is ready before doing\\nanything with it, place the <a href=\"#/p5/loadImage\">loadImage()</a> call in <a href=\"#/p5/preload\">preload()</a>.\\nYou may also supply a callback function to handle the image when it&#39;s ready.\\n<br><br>\\nThe path to the image should be relative to the HTML file\\nthat links in your sketch. Loading an image from a URL or other\\nremote location may be blocked due to your browser&#39;s built-in\\nsecurity.</p>\\n',\n                itemtype: 'method',\n                name: 'loadImage',\n                params: [\n                  {\n                    name: 'path',\n                    description: '<p>Path of the image to be loaded</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'successCallback',\n                    description:\n                      '<p>Function to be called once\\n                               the image is loaded. Will be passed the\\n                               <a href=\"#/p5.Image\">p5.Image</a>.</p>\\n',\n                    type: 'function(p5.Image)',\n                    optional: true\n                  },\n                  {\n                    name: 'failureCallback',\n                    description:\n                      '<p>called with event error if\\n                               the image fails to load.</p>\\n',\n                    type: 'Function(Event)',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'the <a href=\"#/p5.Image\">p5.Image</a> object',\n                  type: 'p5.Image'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/laDefense.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\nfunction setup() {\\n  // here we use a callback to display the image after loading\\n  loadImage('assets/laDefense.jpg', img => {\\n    image(img, 0, 0);\\n  });\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'image of the underside of a white umbrella and grided ceililng above\\nimage of the underside of a white umbrella and grided ceililng above',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Loading & Displaying'\n              },\n              {\n                file: 'src/image/loading_displaying.js',\n                line: 149,\n                description: '<p>Helper function for loading GIF-based images</p>\\n',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Loading & Displaying'\n              },\n              {\n                file: 'src/image/loading_displaying.js',\n                line: 247,\n                description:\n                  '<p>Draw an image to the p5.js canvas.</p>\\n<p>This function can be used with different numbers of parameters. The\\nsimplest use requires only three parameters: img, x, and y—where (x, y) is\\nthe position of the image. Two more parameters can optionally be added to\\nspecify the width and height of the image.</p>\\n<p>This function can also be used with all eight Number parameters. To\\ndifferentiate between all these parameters, p5.js uses the language of\\n&quot;destination rectangle&quot; (which corresponds to &quot;dx&quot;, &quot;dy&quot;, etc.) and &quot;source\\nimage&quot; (which corresponds to &quot;sx&quot;, &quot;sy&quot;, etc.) below. Specifying the\\n&quot;source image&quot; dimensions can be useful when you want to display a\\nsubsection of the source image instead of the whole thing. Here&#39;s a diagram\\nto explain further:\\n<img src=\"assets/drawImage.png\"></img></p>\\n',\n                itemtype: 'method',\n                name: 'image',\n                example: [\n                  \"\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/laDefense.jpg');\\n}\\nfunction setup() {\\n  // Top-left corner of the img is at (0, 0)\\n  // Width and height are the img's original width and height\\n  image(img, 0, 0);\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/laDefense.jpg');\\n}\\nfunction setup() {\\n  background(50);\\n  // Top-left corner of the img is at (10, 10)\\n  // Width and height are 50 x 50\\n  image(img, 10, 10, 50, 50);\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\nfunction setup() {\\n  // Here, we use a callback to display the image after loading\\n  loadImage('assets/laDefense.jpg', img => {\\n    image(img, 0, 0);\\n  });\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/gradient.png');\\n}\\nfunction setup() {\\n  // 1. Background image\\n  // Top-left corner of the img is at (0, 0)\\n  // Width and height are the img's original width and height, 100 x 100\\n  image(img, 0, 0);\\n  // 2. Top right image\\n  // Top-left corner of destination rectangle is at (50, 0)\\n  // Destination rectangle width and height are 40 x 20\\n  // The next parameters are relative to the source image:\\n  // - Starting at position (50, 50) on the source image, capture a 50 x 50\\n  // subsection\\n  // - Draw this subsection to fill the dimensions of the destination rectangle\\n  image(img, 50, 0, 40, 20, 50, 50, 50, 50);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'image of the underside of a white umbrella and gridded ceiling above\\nimage of the underside of a white umbrella and gridded ceiling above',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Loading & Displaying',\n                overloads: [\n                  {\n                    line: 247,\n                    params: [\n                      {\n                        name: 'img',\n                        description: '<p>the image to display</p>\\n',\n                        type: 'p5.Image|p5.Element'\n                      },\n                      {\n                        name: 'x',\n                        description:\n                          '<p>the x-coordinate of the top-left corner of the image</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description:\n                          '<p>the y-coordinate of the top-left corner of the image</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'width',\n                        description: '<p>the width to draw the image</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'height',\n                        description: '<p>the height to draw the image</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  },\n                  {\n                    line: 335,\n                    params: [\n                      {\n                        name: 'img',\n                        description: '',\n                        type: 'p5.Image|p5.Element'\n                      },\n                      {\n                        name: 'dx',\n                        description:\n                          '<p>the x-coordinate of the destination\\n                          rectangle in which to draw the source image</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'dy',\n                        description:\n                          '<p>the y-coordinate of the destination\\n                          rectangle in which to draw the source image</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'dWidth',\n                        description: '<p>the width of the destination rectangle</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'dHeight',\n                        description: '<p>the height of the destination rectangle</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'sx',\n                        description:\n                          '<p>the x-coordinate of the subsection of the source\\nimage to draw into the destination rectangle</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'sy',\n                        description:\n                          '<p>the y-coordinate of the subsection of the source\\nimage to draw into the destination rectangle</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'sWidth',\n                        description:\n                          '<p>the width of the subsection of the\\n                          source image to draw into the destination\\n                          rectangle</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'sHeight',\n                        description:\n                          '<p>the height of the subsection of the\\n                           source image to draw into the destination rectangle</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/image/loading_displaying.js',\n                line: 418,\n                description:\n                  '<p>Sets the fill value for displaying images. Images can be tinted to\\nspecified colors or made transparent by including an alpha value.\\n<br><br>\\nTo apply transparency to an image without affecting its color, use\\nwhite as the tint color and specify an alpha value. For instance,\\ntint(255, 128) will make an image 50% transparent (assuming the default\\nalpha range of 0-255, which can be changed with <a href=\"#/p5/colorMode\">colorMode()</a>).\\n<br><br>\\nThe value for the gray parameter must be less than or equal to the current\\nmaximum value as specified by <a href=\"#/p5/colorMode\">colorMode()</a>. The default maximum value is\\n255.</p>\\n',\n                itemtype: 'method',\n                name: 'tint',\n                example: [\n                  \"\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/laDefense.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  tint(0, 153, 204); // Tint blue\\n  image(img, 50, 0);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/laDefense.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  tint(0, 153, 204, 126); // Tint blue and set transparency\\n  image(img, 50, 0);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/laDefense.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  tint(255, 126); // Apply transparency without changing color\\n  image(img, 50, 0);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '2 side by side images of umbrella and ceiling, one image with blue tint\\nImages of umbrella and ceiling, one half of image with blue tint\\n2 side by side images of umbrella and ceiling, one image translucent',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Loading & Displaying',\n                overloads: [\n                  {\n                    line: 418,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>red or hue value relative to\\n                                the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description:\n                          '<p>green or saturation value\\n                                relative to the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description:\n                          '<p>blue or brightness value\\n                                relative to the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'alpha',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  },\n                  {\n                    line: 491,\n                    params: [\n                      {\n                        name: 'value',\n                        description: '<p>a color string</p>\\n',\n                        type: 'String'\n                      }\n                    ]\n                  },\n                  {\n                    line: 496,\n                    params: [\n                      {\n                        name: 'gray',\n                        description: '<p>a gray value</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'alpha',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  },\n                  {\n                    line: 502,\n                    params: [\n                      {\n                        name: 'values',\n                        description:\n                          '<p>an array containing the red,green,blue &amp;\\n                                and alpha components of the color</p>\\n',\n                        type: 'Number[]'\n                      }\n                    ]\n                  },\n                  {\n                    line: 508,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '<p>the tint color</p>\\n',\n                        type: 'p5.Color'\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/image/loading_displaying.js',\n                line: 518,\n                description:\n                  '<p>Removes the current fill value for displaying images and reverts to\\ndisplaying images with their original hues.</p>\\n',\n                itemtype: 'method',\n                name: 'noTint',\n                example: [\n                  \"\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/bricks.jpg');\\n}\\nfunction setup() {\\n  tint(0, 153, 204); // Tint blue\\n  image(img, 0, 0);\\n  noTint(); // Disable tint\\n  image(img, 50, 0);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: '2 side by side images of bricks, left image with blue tint',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Loading & Displaying'\n              },\n              {\n                file: 'src/image/loading_displaying.js',\n                line: 584,\n                description:\n                  '<p>Set image mode. Modifies the location from which images are drawn by\\nchanging the way in which parameters given to <a href=\"#/p5/image\">image()</a> are interpreted.\\nThe default mode is imageMode(CORNER), which interprets the second and\\nthird parameters of <a href=\"#/p5/image\">image()</a> as the upper-left corner of the image. If\\ntwo additional parameters are specified, they are used to set the image&#39;s\\nwidth and height.\\n<br><br>\\nimageMode(CORNERS) interprets the second and third parameters of <a href=\"#/p5/image\">image()</a>\\nas the location of one corner, and the fourth and fifth parameters as the\\nopposite corner.\\n<br><br>\\nimageMode(CENTER) interprets the second and third parameters of <a href=\"#/p5/image\">image()</a>\\nas the image&#39;s center point. If two additional parameters are specified,\\nthey are used to set the image&#39;s width and height.</p>\\n',\n                itemtype: 'method',\n                name: 'imageMode',\n                params: [\n                  {\n                    name: 'mode',\n                    description: '<p>either CORNER, CORNERS, or CENTER</p>\\n',\n                    type: 'Constant'\n                  }\n                ],\n                example: [\n                  \"\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/bricks.jpg');\\n}\\nfunction setup() {\\n  imageMode(CORNER);\\n  image(img, 10, 10, 50, 50);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/bricks.jpg');\\n}\\nfunction setup() {\\n  imageMode(CORNERS);\\n  image(img, 10, 10, 90, 40);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/bricks.jpg');\\n}\\nfunction setup() {\\n  imageMode(CENTER);\\n  image(img, 50, 50, 80, 80);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'small square image of bricks\\nhorizontal rectangle image of bricks\\nlarge square image of bricks',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Loading & Displaying'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 9,\n                description:\n                  '<p>This module defines the <a href=\"#/p5.Image\">p5.Image</a> class and P5 methods for\\ndrawing images to the main display canvas.</p>\\n',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 89,\n                description: '<p>Image width.</p>\\n',\n                itemtype: 'property',\n                name: 'width',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  \"\\n<div><code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/rockies.jpg');\\n}\\n\\nfunction setup() {\\n  createCanvas(100, 100);\\n  image(img, 0, 0);\\n  for (let i = 0; i < img.width; i++) {\\n    let c = img.get(i, img.height / 2);\\n    stroke(c);\\n    line(i, height / 2, i, height);\\n  }\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'rocky mountains in top and horizontal lines in corresponding colors in bottom.',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 116,\n                description: '<p>Image height.</p>\\n',\n                itemtype: 'property',\n                name: 'height',\n                type: 'Number',\n                readonly: '',\n                example: [\n                  \"\\n<div><code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/rockies.jpg');\\n}\\n\\nfunction setup() {\\n  createCanvas(100, 100);\\n  image(img, 0, 0);\\n  for (let i = 0; i < img.height; i++) {\\n    let c = img.get(img.width / 2, i);\\n    stroke(c);\\n    line(0, i, width / 2, i);\\n  }\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'rocky mountains on right and vertical lines in corresponding colors on left.',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 153,\n                description:\n                  '<p>Array containing the values for all the pixels in the display window.\\nThese values are numbers. This array is the size (include an appropriate\\nfactor for pixelDensity) of the display window x4,\\nrepresenting the R, G, B, A values in order for each pixel, moving from\\nleft to right across each row, then down each column. Retina and other\\nhigh density displays may have more pixels (by a factor of\\npixelDensity^2).\\nFor example, if the image is 100x100 pixels, there will be 40,000. With\\npixelDensity = 2, there will be 160,000. The first four values\\n(indices 0-3) in the array will be the R, G, B, A values of the pixel at\\n(0, 0). The second four values (indices 4-7) will contain the R, G, B, A\\nvalues of the pixel at (1, 0). More generally, to set values for a pixel\\nat (x, y):</p>\\n<pre><code class=\"language-javascript\">let d = pixelDensity();\\nfor (let i = 0; i &lt; d; i++) {\\n  for (let j = 0; j &lt; d; j++) {\\n    // loop over\\n    index = 4 * ((y * d + j) * width * d + (x * d + i));\\n    pixels[index] = r;\\n    pixels[index+1] = g;\\n    pixels[index+2] = b;\\n    pixels[index+3] = a;\\n  }\\n}</code></pre>\\n<p><br><br>\\nBefore accessing this array, the data must loaded with the <a href=\"#/p5.Image/loadPixels\">loadPixels()</a>\\nfunction. After the array data has been modified, the <a href=\"#/p5.Image/updatePixels\">updatePixels()</a>\\nfunction must be run to update the changes.</p>\\n',\n                itemtype: 'property',\n                name: 'pixels',\n                type: 'Number[]',\n                example: [\n                  '\\n<div>\\n<code>\\nlet img = createImage(66, 66);\\nimg.loadPixels();\\nfor (let i = 0; i < img.width; i++) {\\n  for (let j = 0; j < img.height; j++) {\\n    img.set(i, j, color(0, 90, 102));\\n  }\\n}\\nimg.updatePixels();\\nimage(img, 17, 17);\\n</code>\\n</div>\\n<div>\\n<code>\\nlet pink = color(255, 102, 204);\\nlet img = createImage(66, 66);\\nimg.loadPixels();\\nfor (let i = 0; i < 4 * (width * height / 2); i += 4) {\\n  img.pixels[i] = red(pink);\\n  img.pixels[i + 1] = green(pink);\\n  img.pixels[i + 2] = blue(pink);\\n  img.pixels[i + 3] = alpha(pink);\\n}\\nimg.updatePixels();\\nimage(img, 17, 17);\\n</code>\\n</div>'\n                ],\n                alt:\n                  '66x66 turquoise rect in center of canvas\\n66x66 pink rect in center of canvas',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 223,\n                description:\n                  '<p>Helper function for animating GIF-based images with time</p>\\n',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 250,\n                description: '<p>Helper fxn for sharing pixel methods</p>\\n',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 259,\n                description:\n                  '<p>Loads the pixels data for this image into the [pixels] attribute.</p>\\n',\n                itemtype: 'method',\n                name: 'loadPixels',\n                example: [\n                  \"\\n<div><code>\\nlet myImage;\\nlet halfImage;\\n\\nfunction preload() {\\n  myImage = loadImage('assets/rockies.jpg');\\n}\\n\\nfunction setup() {\\n  myImage.loadPixels();\\n  halfImage = 4 * myImage.width * myImage.height / 2;\\n  for (let i = 0; i < halfImage; i++) {\\n    myImage.pixels[i + halfImage] = myImage.pixels[i];\\n  }\\n  myImage.updatePixels();\\n}\\n\\nfunction draw() {\\n  image(myImage, 0, 0, width, height);\\n}\\n</code></div>\"\n                ],\n                alt: '2 images of rocky mountains vertically stacked',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 295,\n                description:\n                  '<p>Updates the backing canvas for this image with the contents of\\nthe [pixels] array.\\n<br><br>\\nIf this image is an animated GIF then the pixels will be updated\\nin the frame that is currently displayed.</p>\\n',\n                itemtype: 'method',\n                name: 'updatePixels',\n                example: [\n                  \"\\n<div><code>\\nlet myImage;\\nlet halfImage;\\n\\nfunction preload() {\\n  myImage = loadImage('assets/rockies.jpg');\\n}\\n\\nfunction setup() {\\n  myImage.loadPixels();\\n  halfImage = 4 * myImage.width * myImage.height / 2;\\n  for (let i = 0; i < halfImage; i++) {\\n    myImage.pixels[i + halfImage] = myImage.pixels[i];\\n  }\\n  myImage.updatePixels();\\n}\\n\\nfunction draw() {\\n  image(myImage, 0, 0, width, height);\\n}\\n</code></div>\"\n                ],\n                alt: '2 images of rocky mountains vertically stacked',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image',\n                overloads: [\n                  {\n                    line: 295,\n                    params: [\n                      {\n                        name: 'x',\n                        description:\n                          '<p>x-offset of the target update area for the\\n                             underlying canvas</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'y',\n                        description:\n                          '<p>y-offset of the target update area for the\\n                             underlying canvas</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'w',\n                        description:\n                          '<p>height of the target update area for the\\n                             underlying canvas</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'h',\n                        description:\n                          '<p>height of the target update area for the\\n                             underlying canvas</p>\\n',\n                        type: 'Integer'\n                      }\n                    ]\n                  },\n                  {\n                    line: 338,\n                    params: []\n                  }\n                ]\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 346,\n                description:\n                  '<p>Get a region of pixels from an image.</p>\\n<p>If no params are passed, the whole image is returned.\\nIf x and y are the only params passed a single pixel is extracted.\\nIf all params are passed a rectangle region is extracted and a <a href=\"#/p5.Image\">p5.Image</a>\\nis returned.</p>\\n',\n                itemtype: 'method',\n                name: 'get',\n                return: {\n                  description: 'the rectangle <a href=\"#/p5.Image\">p5.Image</a>',\n                  type: 'p5.Image'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet myImage;\\nlet c;\\n\\nfunction preload() {\\n  myImage = loadImage('assets/rockies.jpg');\\n}\\n\\nfunction setup() {\\n  background(myImage);\\n  noStroke();\\n  c = myImage.get(60, 90);\\n  fill(c);\\n  rect(25, 25, 50, 50);\\n}\\n\\n//get() returns color here\\n</code></div>\"\n                ],\n                alt: 'image of rocky mountains with 50x50 green rect in front',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image',\n                overloads: [\n                  {\n                    line: 346,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>x-coordinate of the pixel</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>y-coordinate of the pixel</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'w',\n                        description: '<p>width</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'h',\n                        description: '<p>height</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    return: {\n                      description: 'the rectangle <a href=\"#/p5.Image\">p5.Image</a>',\n                      type: 'p5.Image'\n                    }\n                  },\n                  {\n                    line: 384,\n                    params: [],\n                    return: {\n                      description: 'the whole <a href=\"#/p5.Image\">p5.Image</a>',\n                      type: 'p5.Image'\n                    }\n                  },\n                  {\n                    line: 388,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '',\n                        type: 'Number'\n                      }\n                    ],\n                    return: {\n                      description: 'color of pixel at x,y in array format [R, G, B, A]',\n                      type: 'Number[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 401,\n                description:\n                  '<p>Set the color of a single pixel or write an image into\\nthis <a href=\"#/p5.Image\">p5.Image</a>.</p>\\n<p>Note that for a large number of pixels this will\\nbe slower than directly manipulating the pixels array\\nand then calling <a href=\"#/p5.Image/updatePixels\">updatePixels()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'set',\n                params: [\n                  {\n                    name: 'x',\n                    description: '<p>x-coordinate of the pixel</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y-coordinate of the pixel</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'a',\n                    description:\n                      '<p>grayscale value | pixel array |\\n                               a <a href=\"#/p5.Color\">p5.Color</a> | image to copy</p>\\n',\n                    type: 'Number|Number[]|Object'\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\nlet img = createImage(66, 66);\\nimg.loadPixels();\\nfor (let i = 0; i < img.width; i++) {\\n  for (let j = 0; j < img.height; j++) {\\n    img.set(i, j, color(0, 90, 102, (i % img.width) * 2));\\n  }\\n}\\nimg.updatePixels();\\nimage(img, 17, 17);\\nimage(img, 34, 34);\\n</code>\\n</div>'\n                ],\n                alt:\n                  '2 gradated dark turquoise rects fade left. 1 center 1 bottom right of canvas',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 439,\n                description:\n                  '<p>Resize the image to a new width and height. To make the image scale\\nproportionally, use 0 as the value for the wide or high parameter.\\nFor instance, to make the width of an image 150 pixels, and change\\nthe height using the same proportion, use resize(150, 0).</p>\\n',\n                itemtype: 'method',\n                name: 'resize',\n                params: [\n                  {\n                    name: 'width',\n                    description: '<p>the resized image width</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'height',\n                    description: '<p>the resized image height</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet img;\\n\\nfunction preload() {\\n  img = loadImage('assets/rockies.jpg');\\n}\\n\\nfunction draw() {\\n  image(img, 0, 0);\\n}\\n\\nfunction mousePressed() {\\n  img.resize(50, 100);\\n}\\n</code></div>\"\n                ],\n                alt: 'image of rocky mountains. zoomed in',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 551,\n                description:\n                  '<p>Copies a region of pixels from one image to another. If no\\nsrcImage is specified this is used as the source. If the source\\nand destination regions aren&#39;t the same size, it will\\nautomatically resize source pixels to fit the specified\\ntarget region.</p>\\n',\n                itemtype: 'method',\n                name: 'copy',\n                example: [\n                  \"\\n<div><code>\\nlet photo;\\nlet bricks;\\nlet x;\\nlet y;\\n\\nfunction preload() {\\n  photo = loadImage('assets/rockies.jpg');\\n  bricks = loadImage('assets/bricks.jpg');\\n}\\n\\nfunction setup() {\\n  x = bricks.width / 2;\\n  y = bricks.height / 2;\\n  photo.copy(bricks, 0, 0, x, y, 0, 0, x, y);\\n  image(photo, 0, 0);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'image of rocky mountains and smaller image on top of bricks at top left',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image',\n                overloads: [\n                  {\n                    line: 551,\n                    params: [\n                      {\n                        name: 'srcImage',\n                        description: '<p>source image</p>\\n',\n                        type: 'p5.Image|p5.Element'\n                      },\n                      {\n                        name: 'sx',\n                        description:\n                          '<p>X coordinate of the source&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sy',\n                        description:\n                          '<p>Y coordinate of the source&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sw',\n                        description: '<p>source image width</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sh',\n                        description: '<p>source image height</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dx',\n                        description:\n                          '<p>X coordinate of the destination&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dy',\n                        description:\n                          '<p>Y coordinate of the destination&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dw',\n                        description: '<p>destination image width</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dh',\n                        description: '<p>destination image height</p>\\n',\n                        type: 'Integer'\n                      }\n                    ]\n                  },\n                  {\n                    line: 592,\n                    params: [\n                      {\n                        name: 'sx',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sy',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sw',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sh',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dx',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dy',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dw',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dh',\n                        description: '',\n                        type: 'Integer'\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 607,\n                description:\n                  '<p>Masks part of an image from displaying by loading another\\nimage and using its alpha channel as an alpha channel for\\nthis image.</p>\\n',\n                itemtype: 'method',\n                name: 'mask',\n                params: [\n                  {\n                    name: 'srcImage',\n                    description: '<p>source image</p>\\n',\n                    type: 'p5.Image'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet photo, maskImage;\\nfunction preload() {\\n  photo = loadImage('assets/rockies.jpg');\\n  maskImage = loadImage('assets/mask2.png');\\n}\\n\\nfunction setup() {\\n  createCanvas(100, 100);\\n  photo.mask(maskImage);\\n  image(photo, 0, 0);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'image of rocky mountains with white at right\\n\\n\\nhttp://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 670,\n                description:\n                  '<p>Applies an image filter to a <a href=\"#/p5.Image\">p5.Image</a></p>\\n',\n                itemtype: 'method',\n                name: 'filter',\n                params: [\n                  {\n                    name: 'filterType',\n                    description:\n                      '<p>either THRESHOLD, GRAY, OPAQUE, INVERT,\\n                               POSTERIZE, BLUR, ERODE, DILATE or BLUR.\\n                               See Filters.js for docs on\\n                               each available filter</p>\\n',\n                    type: 'Constant'\n                  },\n                  {\n                    name: 'filterParam',\n                    description:\n                      '<p>an optional parameter unique\\n                               to each filter, see above</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet photo1;\\nlet photo2;\\n\\nfunction preload() {\\n  photo1 = loadImage('assets/rockies.jpg');\\n  photo2 = loadImage('assets/rockies.jpg');\\n}\\n\\nfunction setup() {\\n  photo2.filter(GRAY);\\n  image(photo1, 0, 0);\\n  image(photo2, width / 2, 0);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  '2 images of rocky mountains left one in color, right in black and white',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 706,\n                description:\n                  '<p>Copies a region of pixels from one image to another, using a specified\\nblend mode to do the operation.</p>\\n',\n                itemtype: 'method',\n                name: 'blend',\n                example: [\n                  \"\\n<div><code>\\nlet mountains;\\nlet bricks;\\n\\nfunction preload() {\\n  mountains = loadImage('assets/rockies.jpg');\\n  bricks = loadImage('assets/bricks_third.jpg');\\n}\\n\\nfunction setup() {\\n  mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, ADD);\\n  image(mountains, 0, 0);\\n  image(bricks, 0, 0);\\n}\\n</code></div>\\n<div><code>\\nlet mountains;\\nlet bricks;\\n\\nfunction preload() {\\n  mountains = loadImage('assets/rockies.jpg');\\n  bricks = loadImage('assets/bricks_third.jpg');\\n}\\n\\nfunction setup() {\\n  mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST);\\n  image(mountains, 0, 0);\\n  image(bricks, 0, 0);\\n}\\n</code></div>\\n<div><code>\\nlet mountains;\\nlet bricks;\\n\\nfunction preload() {\\n  mountains = loadImage('assets/rockies.jpg');\\n  bricks = loadImage('assets/bricks_third.jpg');\\n}\\n\\nfunction setup() {\\n  mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST);\\n  image(mountains, 0, 0);\\n  image(bricks, 0, 0);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'image of rocky mountains. Brick images on left and right. Right overexposed\\nimage of rockies. Brickwall images on left and right. Right mortar transparent\\nimage of rockies. Brickwall images on left and right. Right translucent',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image',\n                overloads: [\n                  {\n                    line: 706,\n                    params: [\n                      {\n                        name: 'srcImage',\n                        description: '<p>source image</p>\\n',\n                        type: 'p5.Image'\n                      },\n                      {\n                        name: 'sx',\n                        description:\n                          '<p>X coordinate of the source&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sy',\n                        description:\n                          '<p>Y coordinate of the source&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sw',\n                        description: '<p>source image width</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sh',\n                        description: '<p>source image height</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dx',\n                        description:\n                          '<p>X coordinate of the destination&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dy',\n                        description:\n                          '<p>Y coordinate of the destination&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dw',\n                        description: '<p>destination image width</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dh',\n                        description: '<p>destination image height</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'blendMode',\n                        description:\n                          '<p>the blend mode. either\\n    BLEND, DARKEST, LIGHTEST, DIFFERENCE,\\n    MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\\n    SOFT_LIGHT, DODGE, BURN, ADD or NORMAL.</p>\\n<p>Available blend modes are: normal | multiply | screen | overlay |\\n           darken | lighten | color-dodge | color-burn | hard-light |\\n           soft-light | difference | exclusion | hue | saturation |\\n           color | luminosity</p>\\n<p><a href=\"http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/\">http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/</a></p>\\n',\n                        type: 'Constant'\n                      }\n                    ]\n                  },\n                  {\n                    line: 785,\n                    params: [\n                      {\n                        name: 'sx',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sy',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sw',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sh',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dx',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dy',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dw',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dh',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'blendMode',\n                        description: '',\n                        type: 'Constant'\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 828,\n                description:\n                  '<p>Saves the image to a file and force the browser to download it.\\nAccepts two strings for filename and file extension\\nSupports png (default), jpg, and gif\\n<br><br>\\nNote that the file will only be downloaded as an animated GIF\\nif the p5.Image was loaded from a GIF file.</p>\\n',\n                itemtype: 'method',\n                name: 'save',\n                params: [\n                  {\n                    name: 'filename',\n                    description: '<p>give your file a name</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'extension',\n                    description: '<p>&#39;png&#39; or &#39;jpg&#39;</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet photo;\\n\\nfunction preload() {\\n  photo = loadImage('assets/rockies.jpg');\\n}\\n\\nfunction draw() {\\n  image(photo, 0, 0);\\n}\\n\\nfunction keyTyped() {\\n  if (key === 's') {\\n    photo.save('photo', 'png');\\n  }\\n}\\n</code></div>\"\n                ],\n                alt: 'image of rocky mountains.',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 870,\n                description: '<p>Starts an animated GIF over at the beginning state.</p>\\n',\n                itemtype: 'method',\n                name: 'reset',\n                example: [\n                  \"\\n<div><code>\\nlet gif;\\n\\nfunction preload() {\\n  gif = loadImage('assets/arnott-wallace-wink-loop-once.gif');\\n}\\n\\nfunction draw() {\\n  background(255);\\n  // The GIF file that we loaded only loops once\\n  // so it freezes on the last frame after playing through\\n  image(gif, 0, 0);\\n}\\n\\nfunction mousePressed() {\\n  // Click to reset the GIF and begin playback from start\\n  gif.reset();\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'Animated image of a cartoon face that winks once and then freezes\\nWhen you click it animates again, winks once and freezes',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 911,\n                description:\n                  '<p>Gets the index for the frame that is currently visible in an animated GIF.</p>\\n',\n                itemtype: 'method',\n                name: 'getCurrentFrame',\n                return: {\n                  description:\n                    'The index for the currently displaying frame in animated GIF',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet gif;\\n\\nfunction preload() {\\n  gif = loadImage('assets/arnott-wallace-eye-loop-forever.gif');\\n}\\n\\nfunction draw() {\\n  let frame = gif.getCurrentFrame();\\n  image(gif, 0, 0);\\n  text(frame, 10, 90);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'Animated image of a cartoon eye looking around and then\\nlooking outwards, in the lower-left hand corner a number counts\\nup quickly to 124 and then starts back over at 0',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 943,\n                description:\n                  '<p>Sets the index of the frame that is currently visible in an animated GIF</p>\\n',\n                itemtype: 'method',\n                name: 'setFrame',\n                params: [\n                  {\n                    name: 'index',\n                    description:\n                      '<p>the index for the frame that should be displayed</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet gif;\\n\\nfunction preload() {\\n  gif = loadImage('assets/arnott-wallace-eye-loop-forever.gif');\\n}\\n\\n// Move your mouse up and down over canvas to see the GIF\\n// frames animate\\nfunction draw() {\\n  gif.pause();\\n  image(gif, 0, 0);\\n  // Get the highest frame number which is the number of frames - 1\\n  let maxFrame = gif.numFrames() - 1;\\n  // Set the current frame that is mapped to be relative to mouse position\\n  let frameNumber = floor(map(mouseY, 0, height, 0, maxFrame, true));\\n  gif.setFrame(frameNumber);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'A still image of a cartoon eye that looks around when you move your mouse\\nup and down over the canvas',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 988,\n                description: '<p>Returns the number of frames in an animated GIF</p>\\n',\n                itemtype: 'method',\n                name: 'numFrames',\n                return: {\n                  description: '',\n                  type: 'Number'\n                },\n                example: [\n                  \"     The number of frames in the animated GIF\\n<div><code>\\nlet gif;\\n\\nfunction preload() {\\n  gif = loadImage('assets/arnott-wallace-eye-loop-forever.gif');\\n}\\n\\n// Move your mouse up and down over canvas to see the GIF\\n// frames animate\\nfunction draw() {\\n  gif.pause();\\n  image(gif, 0, 0);\\n  // Get the highest frame number which is the number of frames - 1\\n  let maxFrame = gif.numFrames() - 1;\\n  // Set the current frame that is mapped to be relative to mouse position\\n  let frameNumber = floor(map(mouseY, 0, height, 0, maxFrame, true));\\n  gif.setFrame(frameNumber);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'A still image of a cartoon eye that looks around when you move your mouse\\nup and down over the canvas',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 1024,\n                description:\n                  '<p>Plays an animated GIF that was paused with\\n<a href=\"#/p5.Image/pause\">pause()</a></p>\\n',\n                itemtype: 'method',\n                name: 'play',\n                example: [\n                  \"\\n<div><code>\\nlet gif;\\n\\nfunction preload() {\\n  gif = loadImage('assets/nancy-liang-wind-loop-forever.gif');\\n}\\n\\nfunction draw() {\\n  background(255);\\n  image(gif, 0, 0);\\n}\\n\\nfunction mousePressed() {\\n  gif.pause();\\n}\\n\\nfunction mouseReleased() {\\n  gif.play();\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'An animated GIF of a drawing of small child with\\nhair blowing in the wind, when you click the image\\nfreezes when you release it animates again',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 1062,\n                description: '<p>Pauses an animated GIF.</p>\\n',\n                itemtype: 'method',\n                name: 'pause',\n                example: [\n                  \"\\n<div><code>\\nlet gif;\\n\\nfunction preload() {\\n  gif = loadImage('assets/nancy-liang-wind-loop-forever.gif');\\n}\\n\\nfunction draw() {\\n  background(255);\\n  image(gif, 0, 0);\\n}\\n\\nfunction mousePressed() {\\n  gif.pause();\\n}\\n\\nfunction mouseReleased() {\\n  gif.play();\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'An animated GIF of a drawing of small child with\\nhair blowing in the wind, when you click the image\\nfreezes when you release it animates again',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/p5.Image.js',\n                line: 1099,\n                description:\n                  '<p>Changes the delay between frames in an animated GIF. There is an optional second parameter that\\nindicates an index for a specific frame that should have its delay modified. If no index is given, all frames\\nwill have the new delay.</p>\\n',\n                itemtype: 'method',\n                name: 'delay',\n                params: [\n                  {\n                    name: 'd',\n                    description:\n                      '<p>the amount in milliseconds to delay between switching frames</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'index',\n                    description:\n                      '<p>the index of the frame that should have the new delay value {optional}</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet gifFast, gifSlow;\\n\\nfunction preload() {\\n  gifFast = loadImage('assets/arnott-wallace-eye-loop-forever.gif');\\n  gifSlow = loadImage('assets/arnott-wallace-eye-loop-forever.gif');\\n}\\n\\nfunction setup() {\\n  gifFast.resize(width / 2, height / 2);\\n  gifSlow.resize(width / 2, height / 2);\\n\\n  //Change the delay here\\n  gifFast.delay(10);\\n  gifSlow.delay(100);\\n}\\n\\nfunction draw() {\\n  background(255);\\n  image(gifFast, 0, 0);\\n  image(gifSlow, width / 2, 0);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'Two animated gifs of cartoon eyes looking around\\nThe gif on the left animates quickly, on the right\\nthe animation is much slower',\n                class: 'p5.Image',\n                module: 'Image',\n                submodule: 'Image'\n              },\n              {\n                file: 'src/image/pixels.js',\n                line: 12,\n                description:\n                  '<p><a href=\\'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference\\n/Global_Objects/Uint8ClampedArray\\' target=\\'_blank\\'>Uint8ClampedArray</a>\\ncontaining the values for all the pixels in the display window.\\nThese values are numbers. This array is the size (include an appropriate\\nfactor for <a href=\"#/p5/pixelDensity\">pixelDensity</a>) of the display window x4,\\nrepresenting the R, G, B, A values in order for each pixel, moving from\\nleft to right across each row, then down each column. Retina and other\\nhigh density displays will have more pixels[] (by a factor of\\npixelDensity^2).\\nFor example, if the image is 100x100 pixels, there will be 40,000. On a\\nretina display, there will be 160,000.\\n<br><br>\\nThe first four values (indices 0-3) in the array will be the R, G, B, A\\nvalues of the pixel at (0, 0). The second four values (indices 4-7) will\\ncontain the R, G, B, A values of the pixel at (1, 0). More generally, to\\nset values for a pixel at (x, y):</p>\\n<pre><code class=\"language-javascript\">let d = pixelDensity();\\nfor (let i = 0; i &lt; d; i++) {\\n  for (let j = 0; j &lt; d; j++) {\\n    // loop over\\n    index = 4 * ((y * d + j) * width * d + (x * d + i));\\n    pixels[index] = r;\\n    pixels[index+1] = g;\\n    pixels[index+2] = b;\\n    pixels[index+3] = a;\\n  }\\n}</code></pre>\\n<p>While the above method is complex, it is flexible enough to work with\\nany pixelDensity. Note that <a href=\"#/p5/set\">set()</a> will automatically take care of\\nsetting all the appropriate values in <a href=\"#/p5/pixels\">pixels[]</a> for a given (x, y) at\\nany pixelDensity, but the performance may not be as fast when lots of\\nmodifications are made to the pixel array.\\n<br><br>\\nBefore accessing this array, the data must loaded with the <a href=\"#/p5/loadPixels\">loadPixels()</a>\\nfunction. After the array data has been modified, the <a href=\"#/p5/updatePixels\">updatePixels()</a>\\nfunction must be run to update the changes.\\n<br><br>\\nNote that this is not a standard javascript array.  This means that\\nstandard javascript functions such as <a href=\"#/p5/slice\">slice()</a> or\\n<a href=\"#/p5/arrayCopy\">arrayCopy()</a> do not\\nwork.</p>',\n                itemtype: 'property',\n                name: 'pixels',\n                type: 'Number[]',\n                example: [\n                  '\\n<div>\\n<code>\\nlet pink = color(255, 102, 204);\\nloadPixels();\\nlet d = pixelDensity();\\nlet halfImage = 4 * (width * d) * (height / 2 * d);\\nfor (let i = 0; i < halfImage; i += 4) {\\n  pixels[i] = red(pink);\\n  pixels[i + 1] = green(pink);\\n  pixels[i + 2] = blue(pink);\\n  pixels[i + 3] = alpha(pink);\\n}\\nupdatePixels();\\n</code>\\n</div>'\n                ],\n                alt: 'top half of canvas pink, bottom grey',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Pixels'\n              },\n              {\n                file: 'src/image/pixels.js',\n                line: 81,\n                description:\n                  '<p>Copies a region of pixels from one image to another, using a specified\\nblend mode to do the operation.</p>\\n',\n                itemtype: 'method',\n                name: 'blend',\n                example: [\n                  \"\\n<div><code>\\nlet img0;\\nlet img1;\\n\\nfunction preload() {\\n  img0 = loadImage('assets/rockies.jpg');\\n  img1 = loadImage('assets/bricks_third.jpg');\\n}\\n\\nfunction setup() {\\n  background(img0);\\n  image(img1, 0, 0);\\n  blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST);\\n}\\n</code></div>\\n<div><code>\\nlet img0;\\nlet img1;\\n\\nfunction preload() {\\n  img0 = loadImage('assets/rockies.jpg');\\n  img1 = loadImage('assets/bricks_third.jpg');\\n}\\n\\nfunction setup() {\\n  background(img0);\\n  image(img1, 0, 0);\\n  blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST);\\n}\\n</code></div>\\n<div><code>\\nlet img0;\\nlet img1;\\n\\nfunction preload() {\\n  img0 = loadImage('assets/rockies.jpg');\\n  img1 = loadImage('assets/bricks_third.jpg');\\n}\\n\\nfunction setup() {\\n  background(img0);\\n  image(img1, 0, 0);\\n  blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, ADD);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'image of rocky mountains. Brick images on left and right. Right overexposed\\nimage of rockies. Brickwall images on left and right. Right mortar transparent\\nimage of rockies. Brickwall images on left and right. Right translucent',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Pixels',\n                overloads: [\n                  {\n                    line: 81,\n                    params: [\n                      {\n                        name: 'srcImage',\n                        description: '<p>source image</p>\\n',\n                        type: 'p5.Image'\n                      },\n                      {\n                        name: 'sx',\n                        description:\n                          '<p>X coordinate of the source&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sy',\n                        description:\n                          '<p>Y coordinate of the source&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sw',\n                        description: '<p>source image width</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sh',\n                        description: '<p>source image height</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dx',\n                        description:\n                          '<p>X coordinate of the destination&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dy',\n                        description:\n                          '<p>Y coordinate of the destination&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dw',\n                        description: '<p>destination image width</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dh',\n                        description: '<p>destination image height</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'blendMode',\n                        description:\n                          '<p>the blend mode. either\\n    BLEND, DARKEST, LIGHTEST, DIFFERENCE,\\n    MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\\n    SOFT_LIGHT, DODGE, BURN, ADD or NORMAL.</p>\\n',\n                        type: 'Constant'\n                      }\n                    ]\n                  },\n                  {\n                    line: 154,\n                    params: [\n                      {\n                        name: 'sx',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sy',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sw',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sh',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dx',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dy',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dw',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dh',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'blendMode',\n                        description: '',\n                        type: 'Constant'\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/image/pixels.js',\n                line: 175,\n                description:\n                  '<p>Copies a region of the canvas to another region of the canvas\\nand copies a region of pixels from an image used as the srcImg parameter\\ninto the canvas srcImage is specified this is used as the source. If\\nthe source and destination regions aren&#39;t the same size, it will\\nautomatically resize source pixels to fit the specified\\ntarget region.</p>\\n',\n                itemtype: 'method',\n                name: 'copy',\n                example: [\n                  \"\\n<div><code>\\nlet img;\\n\\nfunction preload() {\\n  img = loadImage('assets/rockies.jpg');\\n}\\n\\nfunction setup() {\\n  background(img);\\n  copy(img, 7, 22, 10, 10, 35, 25, 50, 50);\\n  stroke(255);\\n  noFill();\\n  // Rectangle shows area being copied\\n  rect(7, 22, 10, 10);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'image of rocky mountains. Brick images on left and right. Right overexposed\\nimage of rockies. Brickwall images on left and right. Right mortar transparent\\nimage of rockies. Brickwall images on left and right. Right translucent',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Pixels',\n                overloads: [\n                  {\n                    line: 175,\n                    params: [\n                      {\n                        name: 'srcImage',\n                        description: '<p>source image</p>\\n',\n                        type: 'p5.Image|p5.Element'\n                      },\n                      {\n                        name: 'sx',\n                        description:\n                          '<p>X coordinate of the source&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sy',\n                        description:\n                          '<p>Y coordinate of the source&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sw',\n                        description: '<p>source image width</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sh',\n                        description: '<p>source image height</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dx',\n                        description:\n                          '<p>X coordinate of the destination&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dy',\n                        description:\n                          '<p>Y coordinate of the destination&#39;s upper left corner</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dw',\n                        description: '<p>destination image width</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dh',\n                        description: '<p>destination image height</p>\\n',\n                        type: 'Integer'\n                      }\n                    ]\n                  },\n                  {\n                    line: 218,\n                    params: [\n                      {\n                        name: 'sx',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sy',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sw',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'sh',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dx',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dy',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dw',\n                        description: '',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dh',\n                        description: '',\n                        type: 'Integer'\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/image/pixels.js',\n                line: 310,\n                description:\n                  '<p>Applies a filter to the canvas.\\n<br><br></p>\\n<p>The presets options are:\\n<br><br></p>\\n<p>THRESHOLD\\nConverts the image to black and white pixels depending if they are above or\\nbelow the threshold defined by the level parameter. The parameter must be\\nbetween 0.0 (black) and 1.0 (white). If no level is specified, 0.5 is used.\\n<br><br></p>\\n<p>GRAY\\nConverts any colors in the image to grayscale equivalents. No parameter\\nis used.\\n<br><br></p>\\n<p>OPAQUE\\nSets the alpha channel to entirely opaque. No parameter is used.\\n<br><br></p>\\n<p>INVERT\\nSets each pixel to its inverse value. No parameter is used.\\n<br><br></p>\\n<p>POSTERIZE\\nLimits each channel of the image to the number of colors specified as the\\nparameter. The parameter can be set to values between 2 and 255, but\\nresults are most noticeable in the lower ranges.\\n<br><br></p>\\n<p>BLUR\\nExecutes a Gaussian blur with the level parameter specifying the extent\\nof the blurring. If no parameter is used, the blur is equivalent to\\nGaussian blur of radius 1. Larger values increase the blur.\\n<br><br></p>\\n<p>ERODE\\nReduces the light areas. No parameter is used.\\n<br><br></p>\\n<p>DILATE\\nIncreases the light areas. No parameter is used.\\n<br><br></p>\\n<p>filter() does not work in WEBGL mode.\\nA similar effect can be achieved in WEBGL mode using custom\\nshaders. Adam Ferriss has written\\na <a href=\"https://github.com/aferriss/p5jsShaderExamples\"\\ntarget=\\'_blank\\'>selection of shader examples</a> that contains many\\nof the effects present in the filter examples.</p>\\n',\n                itemtype: 'method',\n                name: 'filter',\n                params: [\n                  {\n                    name: 'filterType',\n                    description:\n                      '<p>either THRESHOLD, GRAY, OPAQUE, INVERT,\\n                               POSTERIZE, BLUR, ERODE, DILATE or BLUR.\\n                               See Filters.js for docs on\\n                               each available filter</p>\\n',\n                    type: 'Constant'\n                  },\n                  {\n                    name: 'filterParam',\n                    description:\n                      '<p>an optional parameter unique\\n                               to each filter, see above</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/bricks.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  filter(THRESHOLD);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/bricks.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  filter(GRAY);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/bricks.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  filter(OPAQUE);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/bricks.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  filter(INVERT);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/bricks.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  filter(POSTERIZE, 3);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/bricks.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  filter(DILATE);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/bricks.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  filter(BLUR, 3);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/bricks.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  filter(ERODE);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'black and white image of a brick wall.\\ngreyscale image of a brickwall\\nimage of a brickwall\\njade colored image of a brickwall\\nred and pink image of a brickwall\\nimage of a brickwall\\nblurry image of a brickwall\\nimage of a brickwall\\nimage of a brickwall with less detail',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Pixels'\n              },\n              {\n                file: 'src/image/pixels.js',\n                line: 497,\n                description:\n                  '<p>Get a region of pixels, or a single pixel, from the canvas.</p>\\n<p>Returns an array of [R,G,B,A] values for any pixel or grabs a section of\\nan image. If no parameters are specified, the entire image is returned.\\nUse the x and y parameters to get the value of one pixel. Get a section of\\nthe display window by specifying additional w and h parameters. When\\ngetting an image, the x and y parameters define the coordinates for the\\nupper-left corner of the image, regardless of the current <a href=\"#/p5/imageMode\">imageMode()</a>.\\n<br><br>\\nGetting the color of a single pixel with get(x, y) is easy, but not as fast\\nas grabbing the data directly from <a href=\"#/p5/pixels\">pixels[]</a>. The equivalent statement to\\nget(x, y) using <a href=\"#/p5/pixels\">pixels[]</a> with pixel density d is</p>\\n<pre><code class=\"language-javascript\">let x, y, d; // set these to the coordinates\\nlet off = (y * width + x) * d * 4;\\nlet components = [\\n  pixels[off],\\n  pixels[off + 1],\\n  pixels[off + 2],\\n  pixels[off + 3]\\n];\\nprint(components);</code></pre>\\n<p><br><br></p>\\n<p>See the reference for <a href=\"#/p5/pixels\">pixels[]</a> for more information.</p>\\n<p>If you want to extract an array of colors or a subimage from an p5.Image object,\\ntake a look at <a href=\"#/p5.Image/get\">p5.Image.get()</a></p>\\n',\n                itemtype: 'method',\n                name: 'get',\n                return: {\n                  description: 'the rectangle <a href=\"#/p5.Image\">p5.Image</a>',\n                  type: 'p5.Image'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/rockies.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  let c = get();\\n  image(c, width / 2, 0);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/rockies.jpg');\\n}\\nfunction setup() {\\n  image(img, 0, 0);\\n  let c = get(50, 90);\\n  fill(c);\\n  noStroke();\\n  rect(25, 25, 50, 50);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '2 images of the rocky mountains, side-by-side\\nImage of the rocky mountains with 50x50 green rect in center of canvas',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Pixels',\n                overloads: [\n                  {\n                    line: 497,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>x-coordinate of the pixel</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>y-coordinate of the pixel</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'w',\n                        description: '<p>width</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'h',\n                        description: '<p>height</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    return: {\n                      description: 'the rectangle <a href=\"#/p5.Image\">p5.Image</a>',\n                      type: 'p5.Image'\n                    }\n                  },\n                  {\n                    line: 570,\n                    params: [],\n                    return: {\n                      description: 'the whole <a href=\"#/p5.Image\">p5.Image</a>',\n                      type: 'p5.Image'\n                    }\n                  },\n                  {\n                    line: 574,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '',\n                        type: 'Number'\n                      }\n                    ],\n                    return: {\n                      description: 'color of pixel at x,y in array format [R, G, B, A]',\n                      type: 'Number[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/image/pixels.js',\n                line: 585,\n                description:\n                  '<p>Loads the pixel data for the display window into the <a href=\"#/p5/pixels\">pixels[]</a> array. This\\nfunction must always be called before reading from or writing to <a href=\"#/p5/pixels\">pixels[]</a>.\\nNote that only changes made with <a href=\"#/p5/set\">set()</a> or direct manipulation of <a href=\"#/p5/pixels\">pixels[]</a>\\nwill occur.</p>\\n',\n                itemtype: 'method',\n                name: 'loadPixels',\n                example: [\n                  \"\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/rockies.jpg');\\n}\\n\\nfunction setup() {\\n  image(img, 0, 0, width, height);\\n  let d = pixelDensity();\\n  let halfImage = 4 * (width * d) * (height * d / 2);\\n  loadPixels();\\n  for (let i = 0; i < halfImage; i++) {\\n    pixels[i + halfImage] = pixels[i];\\n  }\\n  updatePixels();\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'two images of the rocky mountains. one on top, one on bottom of canvas.',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Pixels'\n              },\n              {\n                file: 'src/image/pixels.js',\n                line: 622,\n                description:\n                  '<p>Changes the color of any pixel, or writes an image directly to the\\ndisplay window.</p>\\n<p>The x and y parameters specify the pixel to change and the c parameter\\nspecifies the color value. This can be a <a href=\"#/p5.Color\">p5.Color</a> object, or [R, G, B, A]\\npixel array. It can also be a single grayscale value.\\nWhen setting an image, the x and y parameters define the coordinates for\\nthe upper-left corner of the image, regardless of the current <a href=\"#/p5/imageMode\">imageMode()</a>.\\n</p>\\n<p>\\nAfter using <a href=\"#/p5/set\">set()</a>, you must call <a href=\"#/p5/updatePixels\">updatePixels()</a> for your changes to appear.\\nThis should be called once all pixels have been set, and must be called before\\ncalling .<a href=\"#/p5/get\">get()</a> or drawing the image.\\n</p>\\n<p>Setting the color of a single pixel with set(x, y) is easy, but not as\\nfast as putting the data directly into <a href=\"#/p5/pixels\">pixels[]</a>. Setting the <a href=\"#/p5/pixels\">pixels[]</a>\\nvalues directly may be complicated when working with a retina display,\\nbut will perform better when lots of pixels need to be set directly on\\nevery loop.</p>\\n<p>See the reference for <a href=\"#/p5/pixels\">pixels[]</a> for more information.</p>',\n                itemtype: 'method',\n                name: 'set',\n                params: [\n                  {\n                    name: 'x',\n                    description: '<p>x-coordinate of the pixel</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y-coordinate of the pixel</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'c',\n                    description:\n                      '<p>insert a grayscale value | a pixel array |\\n                               a <a href=\"#/p5.Color\">p5.Color</a> object | a <a href=\"#/p5.Image\">p5.Image</a> to copy</p>\\n',\n                    type: 'Number|Number[]|Object'\n                  }\n                ],\n                example: [\n                  \"\\n<div>\\n<code>\\nlet black = color(0);\\nset(30, 20, black);\\nset(85, 20, black);\\nset(85, 75, black);\\nset(30, 75, black);\\nupdatePixels();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nfor (let i = 30; i < width - 15; i++) {\\n  for (let j = 20; j < height - 25; j++) {\\n    let c = color(204 - j, 153 - i, 0);\\n    set(i, j, c);\\n  }\\n}\\nupdatePixels();\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/rockies.jpg');\\n}\\n\\nfunction setup() {\\n  set(0, 0, img);\\n  updatePixels();\\n  line(0, 0, width, height);\\n  line(0, height, width, 0);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  \"4 black points in the shape of a square middle-right of canvas.\\nsquare with orangey-brown gradient lightening at bottom right.\\nimage of the rocky mountains. with lines like an 'x' through the center.\",\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Pixels'\n              },\n              {\n                file: 'src/image/pixels.js',\n                line: 696,\n                description:\n                  '<p>Updates the display window with the data in the <a href=\"#/p5/pixels\">pixels[]</a> array.\\nUse in conjunction with <a href=\"#/p5/loadPixels\">loadPixels()</a>. If you&#39;re only reading pixels from\\nthe array, there&#39;s no need to call <a href=\"#/p5/updatePixels\">updatePixels()</a> — updating is only\\nnecessary to apply changes. <a href=\"#/p5/updatePixels\">updatePixels()</a> should be called anytime the\\npixels array is manipulated or <a href=\"#/p5/set\">set()</a> is called, and only changes made with\\n<a href=\"#/p5/set\">set()</a> or direct changes to <a href=\"#/p5/pixels\">pixels[]</a> will occur.</p>\\n',\n                itemtype: 'method',\n                name: 'updatePixels',\n                params: [\n                  {\n                    name: 'x',\n                    description:\n                      '<p>x-coordinate of the upper-left corner of region\\n                        to update</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'y',\n                    description:\n                      '<p>y-coordinate of the upper-left corner of region\\n                        to update</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'w',\n                    description: '<p>width of region to update</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'h',\n                    description: '<p>height of region to update</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/rockies.jpg');\\n}\\n\\nfunction setup() {\\n  image(img, 0, 0, width, height);\\n  let d = pixelDensity();\\n  let halfImage = 4 * (width * d) * (height * d / 2);\\n  loadPixels();\\n  for (let i = 0; i < halfImage; i++) {\\n    pixels[i + halfImage] = pixels[i];\\n  }\\n  updatePixels();\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'two images of the rocky mountains. one on top, one on bottom of canvas.',\n                class: 'p5',\n                module: 'Image',\n                submodule: 'Pixels'\n              },\n              {\n                file: 'src/io/files.js',\n                line: 18,\n                description:\n                  '<p>Loads a JSON file from a file or a URL, and returns an Object.\\nNote that even if the JSON file contains an Array, an Object will be\\nreturned with index numbers as keys.</p>\\n<p>This method is asynchronous, meaning it may not finish before the next\\nline in your sketch is executed. JSONP is supported via a polyfill and you\\ncan pass in as the second argument an object with definitions of the json\\ncallback following the syntax specified <a href=\"https://github.com/camsong/\\nfetch-jsonp\">here</a>.</p>\\n<p>This method is suitable for fetching files up to size of 64MB.</p>\\n',\n                itemtype: 'method',\n                name: 'loadJSON',\n                return: {\n                  description: 'JSON data',\n                  type: 'Object|Array'\n                },\n                example: [\n                  '\\n\\n<p>Calling <a href=\"#/p5/loadJSON\">loadJSON()</a> inside <a href=\"#/p5/preload\">preload()</a> guarantees to complete the\\noperation before <a href=\"#/p5/setup\">setup()</a> and <a href=\"#/p5/draw\">draw()</a> are called.</p>\\n\\n<div><code>\\n// Examples use USGS Earthquake API:\\n//   https://earthquake.usgs.gov/fdsnws/event/1/#methods\\nlet earthquakes;\\nfunction preload() {\\n  // Get the most recent earthquake in the database\\n  let url =\\n   \\'https://earthquake.usgs.gov/earthquakes/feed/v1.0/\\' +\\n    \\'summary/all_day.geojson\\';\\n  earthquakes = loadJSON(url);\\n}\\n\\nfunction setup() {\\n  noLoop();\\n}\\n\\nfunction draw() {\\n  background(200);\\n  // Get the magnitude and name of the earthquake out of the loaded JSON\\n  let earthquakeMag = earthquakes.features[0].properties.mag;\\n  let earthquakeName = earthquakes.features[0].properties.place;\\n  ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10);\\n  textAlign(CENTER);\\n  text(earthquakeName, 0, height - 30, width, 30);\\n}\\n</code></div>\\n\\n\\n<p>Outside of preload(), you may supply a callback function to handle the\\nobject:</p>\\n<div><code>\\nfunction setup() {\\n  noLoop();\\n  let url =\\n   \\'https://earthquake.usgs.gov/earthquakes/feed/v1.0/\\' +\\n    \\'summary/all_day.geojson\\';\\n  loadJSON(url, drawEarthquake);\\n}\\n\\nfunction draw() {\\n  background(200);\\n}\\n\\nfunction drawEarthquake(earthquakes) {\\n  // Get the magnitude and name of the earthquake out of the loaded JSON\\n  let earthquakeMag = earthquakes.features[0].properties.mag;\\n  let earthquakeName = earthquakes.features[0].properties.place;\\n  ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10);\\n  textAlign(CENTER);\\n  text(earthquakeName, 0, height - 30, width, 30);\\n}\\n</code></div>'\n                ],\n                alt:\n                  '50x50 ellipse that changes from black to white depending on the current humidity\\n50x50 ellipse that changes from black to white depending on the current humidity',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Input',\n                overloads: [\n                  {\n                    line: 18,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '<p>name of the file or url to load</p>\\n',\n                        type: 'String'\n                      },\n                      {\n                        name: 'jsonpOptions',\n                        description: '<p>options object for jsonp related settings</p>\\n',\n                        type: 'Object',\n                        optional: true\n                      },\n                      {\n                        name: 'datatype',\n                        description: '<p>&quot;json&quot; or &quot;jsonp&quot;</p>\\n',\n                        type: 'String',\n                        optional: true\n                      },\n                      {\n                        name: 'callback',\n                        description:\n                          '<p>function to be executed after\\n                                   <a href=\"#/p5/loadJSON\">loadJSON()</a> completes, data is passed\\n                                   in as first argument</p>\\n',\n                        type: 'Function',\n                        optional: true\n                      },\n                      {\n                        name: 'errorCallback',\n                        description:\n                          '<p>function to be executed if\\n                                   there is an error, response is passed\\n                                   in as first argument</p>\\n',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'JSON data',\n                      type: 'Object|Array'\n                    }\n                  },\n                  {\n                    line: 104,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'datatype',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'callback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      },\n                      {\n                        name: 'errorCallback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'Object|Array'\n                    }\n                  },\n                  {\n                    line: 112,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'callback',\n                        description: '',\n                        type: 'Function'\n                      },\n                      {\n                        name: 'errorCallback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'Object|Array'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/io/files.js',\n                line: 183,\n                description:\n                  '<p>Reads the contents of a file and creates a String array of its individual\\nlines. If the name of the file is used as the parameter, as in the above\\nexample, the file must be located in the sketch directory/folder.\\n<br><br>\\nAlternatively, the file maybe be loaded from anywhere on the local\\ncomputer using an absolute path (something that starts with / on Unix and\\nLinux, or a drive letter on Windows), or the filename parameter can be a\\nURL for a file found on a network.\\n<br><br>\\nThis method is asynchronous, meaning it may not finish before the next\\nline in your sketch is executed.</p>\\n<p>This method is suitable for fetching files up to size of 64MB.</p>\\n',\n                itemtype: 'method',\n                name: 'loadStrings',\n                params: [\n                  {\n                    name: 'filename',\n                    description: '<p>name of the file or url to load</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>function to be executed after <a href=\"#/p5/loadStrings\">loadStrings()</a>\\n                              completes, Array is passed in as first\\n                              argument</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'errorCallback',\n                    description:\n                      '<p>function to be executed if\\n                              there is an error, response is passed\\n                              in as first argument</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'Array of Strings',\n                  type: 'String[]'\n                },\n                example: [\n                  '\\n\\n<p>Calling loadStrings() inside <a href=\"#/p5/preload\">preload()</a> guarantees to complete the\\noperation before <a href=\"#/p5/setup\">setup()</a> and <a href=\"#/p5/draw\">draw()</a> are called.</p>\\n\\n<div><code>\\nlet result;\\nfunction preload() {\\n  result = loadStrings(\\'assets/test.txt\\');\\n}\\n\\nfunction setup() {\\n  background(200);\\n  text(random(result), 10, 10, 80, 80);\\n}\\n</code></div>\\n\\n<p>Outside of preload(), you may supply a callback function to handle the\\nobject:</p>\\n\\n<div><code>\\nfunction setup() {\\n  loadStrings(\\'assets/test.txt\\', pickString);\\n}\\n\\nfunction pickString(result) {\\n  background(200);\\n  text(random(result), 10, 10, 80, 80);\\n}\\n</code></div>'\n                ],\n                alt:\n                  'randomly generated text from a file, for example \"i smell like butter\"\\nrandomly generated text from a file, for example \"i have three feet\"',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/files.js',\n                line: 294,\n                description:\n                  '<p>Reads the contents of a file or URL and creates a <a href=\"#/p5.Table\">p5.Table</a> object with\\nits values. If a file is specified, it must be located in the sketch\\'s\\n\"data\" folder. The filename parameter can also be a URL to a file found\\nonline. By default, the file is assumed to be comma-separated (in CSV\\nformat). Table only looks for a header row if the \\'header\\' option is\\nincluded.</p>\\n\\n<p>Possible options include:\\n<ul>\\n<li>csv - parse the table as comma-separated values</li>\\n<li>tsv - parse the table as tab-separated values</li>\\n<li>header - this table has a header (title) row</li>\\n</ul>\\n</p>\\n\\n<p>When passing in multiple options, pass them in as separate parameters,\\nseperated by commas. For example:\\n<br><br>\\n<code>\\nloadTable(\\'my_csv_file.csv\\', \\'csv\\', \\'header\\');\\n</code>\\n</p>\\n\\n<p> All files loaded and saved use UTF-8 encoding.</p>\\n\\n<p>This method is asynchronous, meaning it may not finish before the next\\nline in your sketch is executed. Calling <a href=\"#/p5/loadTable\">loadTable()</a> inside <a href=\"#/p5/preload\">preload()</a>\\nguarantees to complete the operation before <a href=\"#/p5/setup\">setup()</a> and <a href=\"#/p5/draw\">draw()</a> are called.\\n<p>Outside of <a href=\"#/p5/preload\">preload()</a>, you may supply a callback function to handle the\\nobject:</p>\\n</p>\\n\\n<p>This method is suitable for fetching files up to size of 64MB.</p>\\n',\n                itemtype: 'method',\n                name: 'loadTable',\n                return: {\n                  description: '<a href=\"#/p5.Table\">Table</a> object containing data',\n                  type: 'Object'\n                },\n                example: [\n                  '\\n<div class=\\'norender\\'>\\n<code>\\n// Given the following CSV file called \"mammals.csv\"\\n// located in the project\\'s \"assets\" folder:\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leopard\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  //my table is comma separated value \"csv\"\\n  //and has a header specifying the columns labels\\n  table = loadTable(\\'assets/mammals.csv\\', \\'csv\\', \\'header\\');\\n  //the file can be remote\\n  //table = loadTable(\"http://p5js.org/reference/assets/mammals.csv\",\\n  //                  \"csv\", \"header\");\\n}\\n\\nfunction setup() {\\n  //count the columns\\n  print(table.getRowCount() + \\' total rows in table\\');\\n  print(table.getColumnCount() + \\' total columns in table\\');\\n\\n  print(table.getColumn(\\'name\\'));\\n  //[\"Goat\", \"Leopard\", \"Zebra\"]\\n\\n  //cycle through the table\\n  for (let r = 0; r < table.getRowCount(); r++)\\n    for (let c = 0; c < table.getColumnCount(); c++) {\\n      print(table.getString(r, c));\\n    }\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'randomly generated text from a file, for example \"i smell like butter\"\\nrandomly generated text from a file, for example \"i have three feet\"',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Input',\n                overloads: [\n                  {\n                    line: 294,\n                    params: [\n                      {\n                        name: 'filename',\n                        description: '<p>name of the file or URL to load</p>\\n',\n                        type: 'String'\n                      },\n                      {\n                        name: 'options',\n                        description:\n                          '<p>&quot;header&quot; &quot;csv&quot; &quot;tsv&quot;</p>\\n',\n                        type: 'String'\n                      },\n                      {\n                        name: 'callback',\n                        description:\n                          '<p>function to be executed after\\n                                    <a href=\"#/p5/loadTable\">loadTable()</a> completes. On success, the\\n                                    <a href=\"#/p5.Table\">Table</a> object is passed in as the\\n                                    first argument.</p>\\n',\n                        type: 'Function',\n                        optional: true\n                      },\n                      {\n                        name: 'errorCallback',\n                        description:\n                          '<p>function to be executed if\\n                                    there is an error, response is passed\\n                                    in as first argument</p>\\n',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: '<a href=\"#/p5.Table\">Table</a> object containing data',\n                      type: 'Object'\n                    }\n                  },\n                  {\n                    line: 384,\n                    params: [\n                      {\n                        name: 'filename',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'callback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      },\n                      {\n                        name: 'errorCallback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'Object'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/io/files.js',\n                line: 604,\n                description:\n                  '<p>Reads the contents of a file and creates an XML object with its values.\\nIf the name of the file is used as the parameter, as in the above example,\\nthe file must be located in the sketch directory/folder.</p>\\n<p>Alternatively, the file maybe be loaded from anywhere on the local\\ncomputer using an absolute path (something that starts with / on Unix and\\nLinux, or a drive letter on Windows), or the filename parameter can be a\\nURL for a file found on a network.</p>\\n<p>This method is asynchronous, meaning it may not finish before the next\\nline in your sketch is executed. Calling <a href=\"#/p5/loadXML\">loadXML()</a> inside <a href=\"#/p5/preload\">preload()</a>\\nguarantees to complete the operation before <a href=\"#/p5/setup\">setup()</a> and <a href=\"#/p5/draw\">draw()</a> are called.</p>\\n<p>Outside of <a href=\"#/p5/preload\">preload()</a>, you may supply a callback function to handle the\\nobject.</p>\\n<p>This method is suitable for fetching files up to size of 64MB.</p>\\n',\n                itemtype: 'method',\n                name: 'loadXML',\n                params: [\n                  {\n                    name: 'filename',\n                    description: '<p>name of the file or URL to load</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>function to be executed after <a href=\"#/p5/loadXML\">loadXML()</a>\\n                              completes, XML object is passed in as\\n                              first argument</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'errorCallback',\n                    description:\n                      '<p>function to be executed if\\n                              there is an error, response is passed\\n                              in as first argument</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'XML object containing data',\n                  type: 'Object'\n                },\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let children = xml.getChildren(\\'animal\\');\\n\\n  for (let i = 0; i < children.length; i++) {\\n    let id = children[i].getNum(\\'id\\');\\n    let coloring = children[i].getString(\\'species\\');\\n    let name = children[i].getContent();\\n    print(id + \\', \\' + coloring + \\', \\' + name);\\n  }\\n}\\n\\n// Sketch prints:\\n// 0, Capra hircus, Goat\\n// 1, Panthera pardus, Leopard\\n// 2, Equus zebra, Zebra\\n</code></div>'\n                ],\n                alt: 'no image displayed',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/files.js',\n                line: 715,\n                description:\n                  '<p>This method is suitable for fetching files up to size of 64MB.</p>\\n',\n                itemtype: 'method',\n                name: 'loadBytes',\n                params: [\n                  {\n                    name: 'file',\n                    description: '<p>name of the file or URL to load</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>function to be executed after <a href=\"#/p5/loadBytes\">loadBytes()</a>\\n                                   completes</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'errorCallback',\n                    description:\n                      '<p>function to be executed if there\\n                                   is an error</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: \"an object whose 'bytes' property will be the loaded buffer\",\n                  type: 'Object'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet data;\\n\\nfunction preload() {\\n  data = loadBytes('assets/mammals.xml');\\n}\\n\\nfunction setup() {\\n  for (let i = 0; i < 5; i++) {\\n    console.log(data.bytes[i].toString(16));\\n  }\\n}\\n</code></div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/files.js',\n                line: 775,\n                description:\n                  \"<p>Method for executing an HTTP GET request. If data type is not specified,\\np5 will try to guess based on the URL, defaulting to text. This is equivalent to\\ncalling <code>httpDo(path, 'GET')</code>. The &#39;binary&#39; datatype will return\\na Blob object, and the &#39;arrayBuffer&#39; datatype will return an ArrayBuffer\\nwhich can be used to initialize typed arrays (such as Uint8Array).</p>\\n\",\n                itemtype: 'method',\n                name: 'httpGet',\n                return: {\n                  description:\n                    'A promise that resolves with the data when the operation\\n                  completes successfully or rejects with the error after\\n                  one occurs.',\n                  type: 'Promise'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\n// Examples use USGS Earthquake API:\\n//   https://earthquake.usgs.gov/fdsnws/event/1/#methods\\nlet earthquakes;\\nfunction preload() {\\n  // Get the most recent earthquake in the database\\n  let url =\\n   'https://earthquake.usgs.gov/fdsnws/event/1/query?' +\\n    'format=geojson&limit=1&orderby=time';\\n  httpGet(url, 'jsonp', false, function(response) {\\n    // when the HTTP request completes, populate the variable that holds the\\n    // earthquake data used in the visualization.\\n    earthquakes = response;\\n  });\\n}\\n\\nfunction draw() {\\n  if (!earthquakes) {\\n    // Wait until the earthquake data has loaded before drawing.\\n    return;\\n  }\\n  background(200);\\n  // Get the magnitude and name of the earthquake out of the loaded JSON\\n  let earthquakeMag = earthquakes.features[0].properties.mag;\\n  let earthquakeName = earthquakes.features[0].properties.place;\\n  ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10);\\n  textAlign(CENTER);\\n  text(earthquakeName, 0, height - 30, width, 30);\\n  noLoop();\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Input',\n                overloads: [\n                  {\n                    line: 775,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '<p>name of the file or url to load</p>\\n',\n                        type: 'String'\n                      },\n                      {\n                        name: 'datatype',\n                        description:\n                          '<p>&quot;json&quot;, &quot;jsonp&quot;, &quot;binary&quot;, &quot;arrayBuffer&quot;,\\n                                   &quot;xml&quot;, or &quot;text&quot;</p>\\n',\n                        type: 'String',\n                        optional: true\n                      },\n                      {\n                        name: 'data',\n                        description: '<p>param data passed sent with request</p>\\n',\n                        type: 'Object|Boolean',\n                        optional: true\n                      },\n                      {\n                        name: 'callback',\n                        description:\n                          '<p>function to be executed after\\n                                   <a href=\"#/p5/httpGet\">httpGet()</a> completes, data is passed in\\n                                   as first argument</p>\\n',\n                        type: 'Function',\n                        optional: true\n                      },\n                      {\n                        name: 'errorCallback',\n                        description:\n                          '<p>function to be executed if\\n                                   there is an error, response is passed\\n                                   in as first argument</p>\\n',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description:\n                        'A promise that resolves with the data when the operation\\n                  completes successfully or rejects with the error after\\n                  one occurs.',\n                      type: 'Promise'\n                    }\n                  },\n                  {\n                    line: 829,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'data',\n                        description: '',\n                        type: 'Object|Boolean'\n                      },\n                      {\n                        name: 'callback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      },\n                      {\n                        name: 'errorCallback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'Promise'\n                    }\n                  },\n                  {\n                    line: 837,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'callback',\n                        description: '',\n                        type: 'Function'\n                      },\n                      {\n                        name: 'errorCallback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'Promise'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/io/files.js',\n                line: 852,\n                description:\n                  \"<p>Method for executing an HTTP POST request. If data type is not specified,\\np5 will try to guess based on the URL, defaulting to text. This is equivalent to\\ncalling <code>httpDo(path, 'POST')</code>.</p>\\n\",\n                itemtype: 'method',\n                name: 'httpPost',\n                return: {\n                  description:\n                    'A promise that resolves with the data when the operation\\n                  completes successfully or rejects with the error after\\n                  one occurs.',\n                  type: 'Promise'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\n// Examples use jsonplaceholder.typicode.com for a Mock Data API\\n\\nlet url = 'https://jsonplaceholder.typicode.com/posts';\\nlet postData = { userId: 1, title: 'p5 Clicked!', body: 'p5.js is way cool.' };\\n\\nfunction setup() {\\n  createCanvas(800, 800);\\n}\\n\\nfunction mousePressed() {\\n  // Pick new random color values\\n  let r = random(255);\\n  let g = random(255);\\n  let b = random(255);\\n\\n  httpPost(url, 'json', postData, function(result) {\\n    strokeWeight(2);\\n    stroke(r, g, b);\\n    fill(r, g, b, 127);\\n    ellipse(mouseX, mouseY, 200, 200);\\n    text(result.body, mouseX, mouseY);\\n  });\\n}\\n</code>\\n</div>\\n\\n\\n<div><code>\\nlet url = 'https://invalidURL'; // A bad URL that will cause errors\\nlet postData = { title: 'p5 Clicked!', body: 'p5.js is way cool.' };\\n\\nfunction setup() {\\n  createCanvas(800, 800);\\n}\\n\\nfunction mousePressed() {\\n  // Pick new random color values\\n  let r = random(255);\\n  let g = random(255);\\n  let b = random(255);\\n\\n  httpPost(\\n    url,\\n    'json',\\n    postData,\\n    function(result) {\\n      // ... won't be called\\n    },\\n    function(error) {\\n      strokeWeight(2);\\n      stroke(r, g, b);\\n      fill(r, g, b, 127);\\n      text(error.toString(), mouseX, mouseY);\\n    }\\n  );\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Input',\n                overloads: [\n                  {\n                    line: 852,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '<p>name of the file or url to load</p>\\n',\n                        type: 'String'\n                      },\n                      {\n                        name: 'datatype',\n                        description:\n                          '<p>&quot;json&quot;, &quot;jsonp&quot;, &quot;xml&quot;, or &quot;text&quot;.\\n                                   If omitted, <a href=\"#/p5/httpPost\">httpPost()</a> will guess.</p>\\n',\n                        type: 'String',\n                        optional: true\n                      },\n                      {\n                        name: 'data',\n                        description: '<p>param data passed sent with request</p>\\n',\n                        type: 'Object|Boolean',\n                        optional: true\n                      },\n                      {\n                        name: 'callback',\n                        description:\n                          '<p>function to be executed after\\n                                   <a href=\"#/p5/httpPost\">httpPost()</a> completes, data is passed in\\n                                   as first argument</p>\\n',\n                        type: 'Function',\n                        optional: true\n                      },\n                      {\n                        name: 'errorCallback',\n                        description:\n                          '<p>function to be executed if\\n                                   there is an error, response is passed\\n                                   in as first argument</p>\\n',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description:\n                        'A promise that resolves with the data when the operation\\n                  completes successfully or rejects with the error after\\n                  one occurs.',\n                      type: 'Promise'\n                    }\n                  },\n                  {\n                    line: 934,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'data',\n                        description: '',\n                        type: 'Object|Boolean'\n                      },\n                      {\n                        name: 'callback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      },\n                      {\n                        name: 'errorCallback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'Promise'\n                    }\n                  },\n                  {\n                    line: 942,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'callback',\n                        description: '',\n                        type: 'Function'\n                      },\n                      {\n                        name: 'errorCallback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'Promise'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/io/files.js',\n                line: 957,\n                description:\n                  '<p>Method for executing an HTTP request. If data type is not specified,\\np5 will try to guess based on the URL, defaulting to text.<br><br>\\nFor more advanced use, you may also pass in the path as the first argument\\nand a object as the second argument, the signature follows the one specified\\nin the Fetch API specification.\\nThis method is suitable for fetching files up to size of 64MB when &quot;GET&quot; is used.</p>\\n',\n                itemtype: 'method',\n                name: 'httpDo',\n                return: {\n                  description:\n                    'A promise that resolves with the data when the operation\\n                  completes successfully or rejects with the error after\\n                  one occurs.',\n                  type: 'Promise'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\n// Examples use USGS Earthquake API:\\n// https://earthquake.usgs.gov/fdsnws/event/1/#methods\\n\\n// displays an animation of all USGS earthquakes\\nlet earthquakes;\\nlet eqFeatureIndex = 0;\\n\\nfunction preload() {\\n  let url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson';\\n  httpDo(\\n    url,\\n    {\\n      method: 'GET',\\n      // Other Request options, like special headers for apis\\n      headers: { authorization: 'Bearer secretKey' }\\n    },\\n    function(res) {\\n      earthquakes = res;\\n    }\\n  );\\n}\\n\\nfunction draw() {\\n  // wait until the data is loaded\\n  if (!earthquakes || !earthquakes.features[eqFeatureIndex]) {\\n    return;\\n  }\\n  clear();\\n\\n  let feature = earthquakes.features[eqFeatureIndex];\\n  let mag = feature.properties.mag;\\n  let rad = mag / 11 * ((width + height) / 2);\\n  fill(255, 0, 0, 100);\\n  ellipse(width / 2 + random(-2, 2), height / 2 + random(-2, 2), rad, rad);\\n\\n  if (eqFeatureIndex >= earthquakes.features.length) {\\n    eqFeatureIndex = 0;\\n  } else {\\n    eqFeatureIndex += 1;\\n  }\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Input',\n                overloads: [\n                  {\n                    line: 957,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '<p>name of the file or url to load</p>\\n',\n                        type: 'String'\n                      },\n                      {\n                        name: 'method',\n                        description:\n                          '<p>either &quot;GET&quot;, &quot;POST&quot;, or &quot;PUT&quot;,\\n                                   defaults to &quot;GET&quot;</p>\\n',\n                        type: 'String',\n                        optional: true\n                      },\n                      {\n                        name: 'datatype',\n                        description:\n                          '<p>&quot;json&quot;, &quot;jsonp&quot;, &quot;xml&quot;, or &quot;text&quot;</p>\\n',\n                        type: 'String',\n                        optional: true\n                      },\n                      {\n                        name: 'data',\n                        description: '<p>param data passed sent with request</p>\\n',\n                        type: 'Object',\n                        optional: true\n                      },\n                      {\n                        name: 'callback',\n                        description:\n                          '<p>function to be executed after\\n                                   <a href=\"#/p5/httpGet\">httpGet()</a> completes, data is passed in\\n                                   as first argument</p>\\n',\n                        type: 'Function',\n                        optional: true\n                      },\n                      {\n                        name: 'errorCallback',\n                        description:\n                          '<p>function to be executed if\\n                                   there is an error, response is passed\\n                                   in as first argument</p>\\n',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description:\n                        'A promise that resolves with the data when the operation\\n                  completes successfully or rejects with the error after\\n                  one occurs.',\n                      type: 'Promise'\n                    }\n                  },\n                  {\n                    line: 1028,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'options',\n                        description:\n                          '<p>Request object options as documented in the\\n                                   &quot;fetch&quot; API\\n<a href=\"https://developer.mozilla.org/en/docs/Web/API/Fetch_API\">reference</a></p>\\n',\n                        type: 'Object'\n                      },\n                      {\n                        name: 'callback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      },\n                      {\n                        name: 'errorCallback',\n                        description: '',\n                        type: 'Function',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'Promise'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/io/files.js',\n                line: 1190,\n                itemtype: 'method',\n                name: 'createWriter',\n                params: [\n                  {\n                    name: 'name',\n                    description: '<p>name of the file to be created</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'extension',\n                    description: '',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'p5.PrintWriter'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100);\\n  background(200);\\n  text('click here to save', 10, 10, 70, 80);\\n}\\n\\nfunction mousePressed() {\\n  if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\\n    const writer = createWriter('squares.txt');\\n    for (let i = 0; i < 10; i++) {\\n      writer.print(i * i);\\n    }\\n    writer.close();\\n    writer.clear();\\n  }\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Output'\n              },\n              {\n                file: 'src/io/files.js',\n                line: 1245,\n                description: '<p>Writes data to the PrintWriter stream</p>\\n',\n                itemtype: 'method',\n                name: 'write',\n                params: [\n                  {\n                    name: 'data',\n                    description: '<p>all data to be written by the PrintWriter</p>\\n',\n                    type: 'Array'\n                  }\n                ],\n                example: [\n                  \"\\n<div class=\\\"norender notest\\\">\\n<code>\\n// creates a file called 'newFile.txt'\\nlet writer = createWriter('newFile.txt');\\n// write 'Hello world!'' to the file\\nwriter.write(['Hello world!']);\\n// close the PrintWriter and save the file\\nwriter.close();\\n</code>\\n</div>\\n<div class='norender notest'>\\n<code>\\n// creates a file called 'newFile2.txt'\\nlet writer = createWriter('newFile2.txt');\\n// write 'apples,bananas,123' to the file\\nwriter.write(['apples', 'bananas', 123]);\\n// close the PrintWriter and save the file\\nwriter.close();\\n</code>\\n</div>\\n<div class='norender notest'>\\n<code>\\n// creates a file called 'newFile3.txt'\\nlet writer = createWriter('newFile3.txt');\\n// write 'My name is: Teddy' to the file\\nwriter.write('My name is:');\\nwriter.write(' Teddy');\\n// close the PrintWriter and save the file\\nwriter.close();\\n</code>\\n</div>\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100);\\n  button = createButton('SAVE FILE');\\n  button.position(21, 40);\\n  button.mousePressed(createFile);\\n}\\n\\nfunction createFile() {\\n  // creates a file called 'newFile.txt'\\n  let writer = createWriter('newFile.txt');\\n  // write 'Hello world!'' to the file\\n  writer.write(['Hello world!']);\\n  // close the PrintWriter and save the file\\n  writer.close();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.PrintWriter',\n                module: 'IO',\n                submodule: 'Output'\n              },\n              {\n                file: 'src/io/files.js',\n                line: 1304,\n                description:\n                  '<p>Writes data to the PrintWriter stream, and adds a new line at the end</p>\\n',\n                itemtype: 'method',\n                name: 'print',\n                params: [\n                  {\n                    name: 'data',\n                    description: '<p>all data to be printed by the PrintWriter</p>\\n',\n                    type: 'Array'\n                  }\n                ],\n                example: [\n                  \"\\n<div class='norender notest'>\\n<code>\\n// creates a file called 'newFile.txt'\\nlet writer = createWriter('newFile.txt');\\n// creates a file containing\\n//  My name is:\\n//  Teddy\\nwriter.print('My name is:');\\nwriter.print('Teddy');\\n// close the PrintWriter and save the file\\nwriter.close();\\n</code>\\n</div>\\n<div class='norender notest'>\\n<code>\\nlet writer;\\n\\nfunction setup() {\\n  createCanvas(400, 400);\\n  // create a PrintWriter\\n  writer = createWriter('newFile.txt');\\n}\\n\\nfunction draw() {\\n  writer.print([mouseX, mouseY]);\\n}\\n\\nfunction mouseClicked() {\\n  writer.close();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.PrintWriter',\n                module: 'IO',\n                submodule: 'Output'\n              },\n              {\n                file: 'src/io/files.js',\n                line: 1345,\n                description:\n                  '<p>Clears the data already written to the PrintWriter object</p>\\n',\n                itemtype: 'method',\n                name: 'clear',\n                example: [\n                  \"\\n<div class =\\\"norender notest\\\"><code>\\n// create writer object\\nlet writer = createWriter('newFile.txt');\\nwriter.write(['clear me']);\\n// clear writer object here\\nwriter.clear();\\n// close writer\\nwriter.close();\\n</code></div>\\n<div>\\n<code>\\nfunction setup() {\\n  button = createButton('CLEAR ME');\\n  button.position(21, 40);\\n  button.mousePressed(createFile);\\n}\\n\\nfunction createFile() {\\n  let writer = createWriter('newFile.txt');\\n  writer.write(['clear me']);\\n  writer.clear();\\n  writer.close();\\n}\\n</code>\\n</div>\\n\"\n                ],\n                class: 'p5.PrintWriter',\n                module: 'IO',\n                submodule: 'Output'\n              },\n              {\n                file: 'src/io/files.js',\n                line: 1379,\n                description: '<p>Closes the PrintWriter</p>\\n',\n                itemtype: 'method',\n                name: 'close',\n                example: [\n                  \"\\n<div class=\\\"norender notest\\\">\\n<code>\\n// create a file called 'newFile.txt'\\nlet writer = createWriter('newFile.txt');\\n// close the PrintWriter and save the file\\nwriter.close();\\n</code>\\n</div>\\n<div class='norender notest'>\\n<code>\\n// create a file called 'newFile2.txt'\\nlet writer = createWriter('newFile2.txt');\\n// write some data to the file\\nwriter.write([100, 101, 102]);\\n// close the PrintWriter and save the file\\nwriter.close();\\n</code>\\n</div>\"\n                ],\n                class: 'p5.PrintWriter',\n                module: 'IO',\n                submodule: 'Output'\n              },\n              {\n                file: 'src/io/files.js',\n                line: 1428,\n                description:\n                  \"<p>Save an image, text, json, csv, wav, or html. Prompts download to\\nthe client's computer. <b>Note that it is not recommended to call <a href=\\\"#/p5/save\\\">save()</a>\\nwithin draw if it's looping, as the <a href=\\\"#/p5/save\\\">save()</a> function will open a new save\\ndialog every frame.</b></p>\\n<p>The default behavior is to save the canvas as an image. You can\\noptionally specify a filename.\\nFor example:</p>\\n <pre class='language-javascript'><code>\\n save();\\n save('myCanvas.jpg'); // save a specific canvas with a filename\\n </code></pre>\\n\\n<p>Alternately, the first parameter can be a pointer to a canvas\\n<a href=\\\"#/p5.Element\\\">p5.Element</a>, an Array of Strings,\\nan Array of JSON, a JSON object, a <a href=\\\"#/p5.Table\\\">p5.Table</a>, a <a href=\\\"#/p5.Image\\\">p5.Image</a>, or a\\np5.SoundFile (requires p5.sound). The second parameter is a filename\\n(including extension). The third parameter is for options specific\\nto this type of object. This method will save a file that fits the\\ngiven parameters. For example:</p>\\n\\n <pre class='language-javascript'><code>\\n // Saves canvas as an image\\n save('myCanvas.jpg');\\n\\n // Saves pImage as a png image\\n let img = createImage(10, 10);\\n save(img, 'my.png');\\n\\n // Saves canvas as an image\\n let cnv = createCanvas(100, 100);\\n save(cnv, 'myCanvas.jpg');\\n\\n // Saves p5.Renderer object as an image\\n let gb = createGraphics(100, 100);\\n save(gb, 'myGraphics.jpg');\\n\\n let myTable = new p5.Table();\\n\\n // Saves table as html file\\n save(myTable, 'myTable.html');\\n\\n // Comma Separated Values\\n save(myTable, 'myTable.csv');\\n\\n // Tab Separated Values\\n save(myTable, 'myTable.tsv');\\n\\n let myJSON = { a: 1, b: true };\\n\\n // Saves pretty JSON\\n save(myJSON, 'my.json');\\n\\n // Optimizes JSON filesize\\n save(myJSON, 'my.json', true);\\n\\n // Saves array of strings to a text file with line breaks after each item\\n let arrayOfStrings = ['a', 'b'];\\n save(arrayOfStrings, 'my.txt');\\n </code></pre>\",\n                itemtype: 'method',\n                name: 'save',\n                params: [\n                  {\n                    name: 'objectOrFilename',\n                    description:\n                      '<p>If filename is provided, will\\n                                           save canvas as an image with\\n                                           either png or jpg extension\\n                                           depending on the filename.\\n                                           If object is provided, will\\n                                           save depending on the object\\n                                           and filename (see examples\\n                                           above).</p>\\n',\n                    type: 'Object|String',\n                    optional: true\n                  },\n                  {\n                    name: 'filename',\n                    description:\n                      '<p>If an object is provided as the first\\n                             parameter, then the second parameter\\n                             indicates the filename,\\n                             and should include an appropriate\\n                             file extension (see examples above).</p>\\n',\n                    type: 'String',\n                    optional: true\n                  },\n                  {\n                    name: 'options',\n                    description:\n                      '<p>Additional options depend on\\n                          filetype. For example, when saving JSON,\\n                          <code>true</code> indicates that the\\n                          output will be optimized for filesize,\\n                          rather than readability.</p>\\n',\n                    type: 'Boolean|String',\n                    optional: true\n                  }\n                ],\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Output'\n              },\n              {\n                file: 'src/io/files.js',\n                line: 1556,\n                description:\n                  '<p>Writes the contents of an Array or a JSON object to a .json file.\\nThe file saving process and location of the saved file will\\nvary between web browsers.</p>\\n',\n                itemtype: 'method',\n                name: 'saveJSON',\n                params: [\n                  {\n                    name: 'json',\n                    description: '',\n                    type: 'Array|Object'\n                  },\n                  {\n                    name: 'filename',\n                    description: '',\n                    type: 'String'\n                  },\n                  {\n                    name: 'optimize',\n                    description:\n                      '<p>If true, removes line breaks\\n                               and spaces from the output\\n                               file to optimize filesize\\n                               (but not readability).</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ],\n                example: [\n                  '\\n <div><code>\\n let json = {}; // new  JSON Object\\n\\n json.id = 0;\\n json.species = \\'Panthera leo\\';\\n json.name = \\'Lion\\';\\n\\n function setup() {\\n createCanvas(100, 100);\\n background(200);\\n text(\\'click here to save\\', 10, 10, 70, 80);\\n }\\n\\n function mousePressed() {\\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\\n   saveJSON(json, \\'lion.json\\');\\n }\\n }\\n\\n // saves the following to a file called \"lion.json\":\\n // {\\n //   \"id\": 0,\\n //   \"species\": \"Panthera leo\",\\n //   \"name\": \"Lion\"\\n // }\\n </code></div>'\n                ],\n                alt: 'no image displayed',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Output'\n              },\n              {\n                file: 'src/io/files.js',\n                line: 1614,\n                description:\n                  '<p>Writes an array of Strings to a text file, one line per String.\\nThe file saving process and location of the saved file will\\nvary between web browsers.</p>\\n',\n                itemtype: 'method',\n                name: 'saveStrings',\n                params: [\n                  {\n                    name: 'list',\n                    description: '<p>string array to be written</p>\\n',\n                    type: 'String[]'\n                  },\n                  {\n                    name: 'filename',\n                    description: '<p>filename for output</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'extension',\n                    description: '<p>the filename&#39;s extension</p>\\n',\n                    type: 'String',\n                    optional: true\n                  },\n                  {\n                    name: 'isCRLF',\n                    description: '<p>if true, change line-break to CRLF</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n <div><code>\\n let words = 'apple bear cat dog';\\n\\n // .split() outputs an Array\\n let list = split(words, ' ');\\n\\n function setup() {\\n createCanvas(100, 100);\\n background(200);\\n text('click here to save', 10, 10, 70, 80);\\n }\\n\\n function mousePressed() {\\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\\n   saveStrings(list, 'nouns.txt');\\n }\\n }\\n\\n // Saves the following to a file called 'nouns.txt':\\n //\\n // apple\\n // bear\\n // cat\\n // dog\\n </code></div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Output'\n              },\n              {\n                file: 'src/io/files.js',\n                line: 1679,\n                description:\n                  '<p>Writes the contents of a <a href=\"#/p5.Table\">Table</a> object to a file. Defaults to a\\ntext file with comma-separated-values (&#39;csv&#39;) but can also\\nuse tab separation (&#39;tsv&#39;), or generate an HTML table (&#39;html&#39;).\\nThe file saving process and location of the saved file will\\nvary between web browsers.</p>\\n',\n                itemtype: 'method',\n                name: 'saveTable',\n                params: [\n                  {\n                    name: 'Table',\n                    description:\n                      '<p>the <a href=\"#/p5.Table\">Table</a> object to save to a file</p>\\n',\n                    type: 'p5.Table'\n                  },\n                  {\n                    name: 'filename',\n                    description: '<p>the filename to which the Table should be saved</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'options',\n                    description:\n                      '<p>can be one of &quot;tsv&quot;, &quot;csv&quot;, or &quot;html&quot;</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\n let table;\\n\\n function setup() {\\n table = new p5.Table();\\n\\n table.addColumn('id');\\n table.addColumn('species');\\n table.addColumn('name');\\n\\n let newRow = table.addRow();\\n newRow.setNum('id', table.getRowCount() - 1);\\n newRow.setString('species', 'Panthera leo');\\n newRow.setString('name', 'Lion');\\n\\n // To save, un-comment next line then click 'run'\\n // saveTable(table, 'new.csv');\\n }\\n\\n // Saves the following to a file called 'new.csv':\\n // id,species,name\\n // 0,Panthera leo,Lion\\n </code></div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Output'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 9,\n                description:\n                  '<p>Table Options</p>\\n<p>Generic class for handling tabular data, typically from a\\nCSV, TSV, or other sort of spreadsheet file.</p>\\n<p>CSV files are\\n<a href=\"http://en.wikipedia.org/wiki/Comma-separated_values\">\\ncomma separated values</a>, often with the data in quotes. TSV\\nfiles use tabs as separators, and usually don\\'t bother with the\\nquotes.</p>\\n<p>File names should end with .csv if they\\'re comma separated.</p>\\n<p>A rough \"spec\" for CSV can be found\\n<a href=\"http://tools.ietf.org/html/rfc4180\">here</a>.</p>\\n<p>To load files, use the <a href=\"#/p5/loadTable\">loadTable</a> method.</p>\\n<p>To save tables to your computer, use the <a href=\"#/p5/save\">save</a> method\\n or the <a href=\"#/p5/saveTable\">saveTable</a> method.</p>\\n\\n<p>Possible options include:</p>\\n<ul>\\n<li>csv - parse the table as comma-separated values\\n<li>tsv - parse the table as tab-separated values\\n<li>header - this table has a header (title) row\\n</ul>',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 43,\n                description:\n                  '<p>An array containing the names of the columns in the table, if the &quot;header&quot; the table is\\nloaded with the &quot;header&quot; parameter.</p>\\n',\n                itemtype: 'property',\n                name: 'columns',\n                type: 'String[]',\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\n// Given the CSV file \\\"mammals.csv\\\"\\n// in the project's \\\"assets\\\" folder:\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leopard\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  //my table is comma separated value \\\"csv\\\"\\n  //and has a header specifying the columns labels\\n  table = loadTable('assets/mammals.csv', 'csv', 'header');\\n}\\n\\nfunction setup() {\\n  //print the column names\\n  for (let c = 0; c < table.getColumnCount(); c++) {\\n    print('column ' + c + ' is named ' + table.columns[c]);\\n  }\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 77,\n                description:\n                  '<p>An array containing the <a href=\"#/p5.Table\">p5.TableRow</a> objects that make up the\\nrows of the table. The same result as calling <a href=\"#/p5/getRows\">getRows()</a></p>\\n',\n                itemtype: 'property',\n                name: 'rows',\n                type: 'p5.TableRow[]',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 85,\n                description:\n                  '<p>Use <a href=\"#/p5/addRow\">addRow()</a> to add a new row of data to a <a href=\"#/p5.Table\">p5.Table</a> object. By default,\\nan empty row is created. Typically, you would store a reference to\\nthe new row in a TableRow object (see newRow in the example above),\\nand then set individual values using <a href=\"#/p5/set\">set()</a>.</p>\\n<p>If a <a href=\"#/p5.TableRow\">p5.TableRow</a> object is included as a parameter, then that row is\\nduplicated and added to the table.</p>\\n',\n                itemtype: 'method',\n                name: 'addRow',\n                params: [\n                  {\n                    name: 'row',\n                    description: '<p>row to be added to the table</p>\\n',\n                    type: 'p5.TableRow',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'the row that was added',\n                  type: 'p5.TableRow'\n                },\n                example: [\n                  \"\\n <div class=\\\"norender\\\">\\n <code>\\n // Given the CSV file \\\"mammals.csv\\\"\\n // in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n //add a row\\n let newRow = table.addRow();\\n newRow.setString('id', table.getRowCount() - 1);\\n newRow.setString('species', 'Canis Lupus');\\n newRow.setString('name', 'Wolf');\\n\\n //print the results\\n for (let r = 0; r < table.getRowCount(); r++)\\n   for (let c = 0; c < table.getColumnCount(); c++)\\n     print(table.getString(r, c));\\n }\\n </code>\\n </div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 149,\n                description: '<p>Removes a row from the table object.</p>\\n',\n                itemtype: 'method',\n                name: 'removeRow',\n                params: [\n                  {\n                    name: 'id',\n                    description: '<p>ID number of the row to remove</p>\\n',\n                    type: 'Integer'\n                  }\n                ],\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Given the CSV file \"mammals.csv\"\\n// in the project\\'s \"assets\" folder:\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leopard\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  //my table is comma separated value \"csv\"\\n  //and has a header specifying the columns labels\\n  table = loadTable(\\'assets/mammals.csv\\', \\'csv\\', \\'header\\');\\n}\\n\\nfunction setup() {\\n  //remove the first row\\n  table.removeRow(0);\\n\\n  //print the results\\n  for (let r = 0; r < table.getRowCount(); r++)\\n    for (let c = 0; c < table.getColumnCount(); c++)\\n      print(table.getString(r, c));\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 197,\n                description:\n                  '<p>Returns a reference to the specified <a href=\"#/p5.TableRow\">p5.TableRow</a>. The reference\\ncan then be used to get and set values of the selected row.</p>\\n',\n                itemtype: 'method',\n                name: 'getRow',\n                params: [\n                  {\n                    name: 'rowID',\n                    description: '<p>ID number of the row to get</p>\\n',\n                    type: 'Integer'\n                  }\n                ],\n                return: {\n                  description: '<a href=\"#/p5.TableRow\">p5.TableRow</a> object',\n                  type: 'p5.TableRow'\n                },\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Given the CSV file \"mammals.csv\"\\n// in the project\\'s \"assets\" folder:\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leopard\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  //my table is comma separated value \"csv\"\\n  //and has a header specifying the columns labels\\n  table = loadTable(\\'assets/mammals.csv\\', \\'csv\\', \\'header\\');\\n}\\n\\nfunction setup() {\\n  let row = table.getRow(1);\\n  //print it column by column\\n  //note: a row is an object, not an array\\n  for (let c = 0; c < table.getColumnCount(); c++) {\\n    print(row.getString(c));\\n  }\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 243,\n                description:\n                  '<p>Gets all rows from the table. Returns an array of <a href=\"#/p5.TableRow\">p5.TableRow</a>s.</p>\\n',\n                itemtype: 'method',\n                name: 'getRows',\n                return: {\n                  description: 'Array of <a href=\"#/p5.TableRow\">p5.TableRow</a>s',\n                  type: 'p5.TableRow[]'\n                },\n                example: [\n                  \"\\n <div class=\\\"norender\\\">\\n <code>\\n // Given the CSV file \\\"mammals.csv\\\"\\n // in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n let rows = table.getRows();\\n\\n //warning: rows is an array of objects\\n for (let r = 0; r < rows.length; r++) {\\n   rows[r].set('name', 'Unicorn');\\n }\\n\\n //print the results\\n for (let r = 0; r < table.getRowCount(); r++)\\n   for (let c = 0; c < table.getColumnCount(); c++)\\n     print(table.getString(r, c));\\n }\\n </code>\\n </div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 292,\n                description:\n                  '<p>Finds the first row in the Table that contains the value\\nprovided, and returns a reference to that row. Even if\\nmultiple rows are possible matches, only the first matching\\nrow is returned. The column to search may be specified by\\neither its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'findRow',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>The value to match</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'column',\n                    description:\n                      '<p>ID number or title of the\\n                               column to search</p>\\n',\n                    type: 'Integer|String'\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'p5.TableRow'\n                },\n                example: [\n                  \"\\n <div class=\\\"norender\\\">\\n <code>\\n // Given the CSV file \\\"mammals.csv\\\"\\n // in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n //find the animal named zebra\\n let row = table.findRow('Zebra', 'name');\\n //find the corresponding species\\n print(row.getString('species'));\\n }\\n </code>\\n </div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 357,\n                description:\n                  '<p>Finds the rows in the Table that contain the value\\nprovided, and returns references to those rows. Returns an\\nArray, so for must be used to iterate through all the rows,\\nas shown in the example above. The column to search may be\\nspecified by either its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'findRows',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>The value to match</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'column',\n                    description:\n                      '<p>ID number or title of the\\n                               column to search</p>\\n',\n                    type: 'Integer|String'\n                  }\n                ],\n                return: {\n                  description: 'An Array of TableRow objects',\n                  type: 'p5.TableRow[]'\n                },\n                example: [\n                  \"\\n <div class=\\\"norender\\\">\\n <code>\\n // Given the CSV file \\\"mammals.csv\\\"\\n // in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n //add another goat\\n let newRow = table.addRow();\\n newRow.setString('id', table.getRowCount() - 1);\\n newRow.setString('species', 'Scape Goat');\\n newRow.setString('name', 'Goat');\\n\\n //find the rows containing animals named Goat\\n let rows = table.findRows('Goat', 'name');\\n print(rows.length + ' Goats found');\\n }\\n </code>\\n </div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 426,\n                description:\n                  '<p>Finds the first row in the Table that matches the regular\\nexpression provided, and returns a reference to that row.\\nEven if multiple rows are possible matches, only the first\\nmatching row is returned. The column to search may be\\nspecified by either its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'matchRow',\n                params: [\n                  {\n                    name: 'regexp',\n                    description: '<p>The regular expression to match</p>\\n',\n                    type: 'String|RegExp'\n                  },\n                  {\n                    name: 'column',\n                    description:\n                      '<p>The column ID (number) or\\n                                 title (string)</p>\\n',\n                    type: 'String|Integer'\n                  }\n                ],\n                return: {\n                  description: 'TableRow object',\n                  type: 'p5.TableRow'\n                },\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Given the CSV file \"mammals.csv\"\\n// in the project\\'s \"assets\" folder:\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leopard\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  //my table is comma separated value \"csv\"\\n  //and has a header specifying the columns labels\\n  table = loadTable(\\'assets/mammals.csv\\', \\'csv\\', \\'header\\');\\n}\\n\\nfunction setup() {\\n  //Search using specified regex on a given column, return TableRow object\\n  let mammal = table.matchRow(new RegExp(\\'ant\\'), 1);\\n  print(mammal.getString(1));\\n  //Output \"Panthera pardus\"\\n}\\n</code>\\n</div>\\n'\n                ],\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 485,\n                description:\n                  '<p>Finds the rows in the Table that match the regular expression provided,\\nand returns references to those rows. Returns an array, so for must be\\nused to iterate through all the rows, as shown in the example. The\\ncolumn to search may be specified by either its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'matchRows',\n                params: [\n                  {\n                    name: 'regexp',\n                    description: '<p>The regular expression to match</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'column',\n                    description:\n                      '<p>The column ID (number) or\\n                                 title (string)</p>\\n',\n                    type: 'String|Integer',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'An Array of TableRow objects',\n                  type: 'p5.TableRow[]'\n                },\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet table;\\n\\nfunction setup() {\\n  table = new p5.Table();\\n\\n  table.addColumn('name');\\n  table.addColumn('type');\\n\\n  let newRow = table.addRow();\\n  newRow.setString('name', 'Lion');\\n  newRow.setString('type', 'Mammal');\\n\\n  newRow = table.addRow();\\n  newRow.setString('name', 'Snake');\\n  newRow.setString('type', 'Reptile');\\n\\n  newRow = table.addRow();\\n  newRow.setString('name', 'Mosquito');\\n  newRow.setString('type', 'Insect');\\n\\n  newRow = table.addRow();\\n  newRow.setString('name', 'Lizard');\\n  newRow.setString('type', 'Reptile');\\n\\n  let rows = table.matchRows('R.*', 'type');\\n  for (let i = 0; i < rows.length; i++) {\\n    print(rows[i].getString('name') + ': ' + rows[i].getString('type'));\\n  }\\n}\\n// Sketch prints:\\n// Snake: Reptile\\n// Lizard: Reptile\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 552,\n                description:\n                  '<p>Retrieves all values in the specified column, and returns them\\nas an array. The column may be specified by either its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'getColumn',\n                params: [\n                  {\n                    name: 'column',\n                    description: '<p>String or Number of the column to return</p>\\n',\n                    type: 'String|Number'\n                  }\n                ],\n                return: {\n                  description: 'Array of column values',\n                  type: 'Array'\n                },\n                example: [\n                  '\\n <div class=\"norender\">\\n <code>\\n // Given the CSV file \"mammals.csv\"\\n // in the project\\'s \"assets\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \"csv\"\\n //and has a header specifying the columns labels\\n table = loadTable(\\'assets/mammals.csv\\', \\'csv\\', \\'header\\');\\n }\\n\\n function setup() {\\n //getColumn returns an array that can be printed directly\\n print(table.getColumn(\\'species\\'));\\n //outputs [\"Capra hircus\", \"Panthera pardus\", \"Equus zebra\"]\\n }\\n </code>\\n </div>'\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 605,\n                description:\n                  '<p>Removes all rows from a Table. While all rows are removed,\\ncolumns and column titles are maintained.</p>\\n',\n                itemtype: 'method',\n                name: 'clearRows',\n                example: [\n                  \"\\n <div class=\\\"norender\\\">\\n <code>\\n // Given the CSV file \\\"mammals.csv\\\"\\n // in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n table.clearRows();\\n print(table.getRowCount() + ' total rows in table');\\n print(table.getColumnCount() + ' total columns in table');\\n }\\n </code>\\n </div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 647,\n                description:\n                  '<p>Use <a href=\"#/p5/addColumn\">addColumn()</a> to add a new column to a <a href=\"#/p5.Table\">Table</a> object.\\nTypically, you will want to specify a title, so the column\\nmay be easily referenced later by name. (If no title is\\nspecified, the new column&#39;s title will be null.)</p>\\n',\n                itemtype: 'method',\n                name: 'addColumn',\n                params: [\n                  {\n                    name: 'title',\n                    description: '<p>title of the given column</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n <div class=\\\"norender\\\">\\n <code>\\n // Given the CSV file \\\"mammals.csv\\\"\\n // in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n table.addColumn('carnivore');\\n table.set(0, 'carnivore', 'no');\\n table.set(1, 'carnivore', 'yes');\\n table.set(2, 'carnivore', 'no');\\n\\n //print the results\\n for (let r = 0; r < table.getRowCount(); r++)\\n   for (let c = 0; c < table.getColumnCount(); c++)\\n     print(table.getString(r, c));\\n }\\n </code>\\n </div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 698,\n                description: '<p>Returns the total number of columns in a Table.</p>\\n',\n                itemtype: 'method',\n                name: 'getColumnCount',\n                return: {\n                  description: 'Number of columns in this table',\n                  type: 'Integer'\n                },\n                example: [\n                  \"\\n <div>\\n <code>\\n // given the cvs file \\\"blobs.csv\\\" in /assets directory\\n // ID, Name, Flavor, Shape, Color\\n // Blob1, Blobby, Sweet, Blob, Pink\\n // Blob2, Saddy, Savory, Blob, Blue\\n\\n let table;\\n\\n function preload() {\\n table = loadTable('assets/blobs.csv');\\n }\\n\\n function setup() {\\n createCanvas(200, 100);\\n textAlign(CENTER);\\n background(255);\\n }\\n\\n function draw() {\\n let numOfColumn = table.getColumnCount();\\n text('There are ' + numOfColumn + ' columns in the table.', 100, 50);\\n }\\n </code>\\n </div>\"\n                ],\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 734,\n                description: '<p>Returns the total number of rows in a Table.</p>\\n',\n                itemtype: 'method',\n                name: 'getRowCount',\n                return: {\n                  description: 'Number of rows in this table',\n                  type: 'Integer'\n                },\n                example: [\n                  \"\\n <div>\\n <code>\\n // given the cvs file \\\"blobs.csv\\\" in /assets directory\\n //\\n // ID, Name, Flavor, Shape, Color\\n // Blob1, Blobby, Sweet, Blob, Pink\\n // Blob2, Saddy, Savory, Blob, Blue\\n\\n let table;\\n\\n function preload() {\\n table = loadTable('assets/blobs.csv');\\n }\\n\\n function setup() {\\n createCanvas(200, 100);\\n textAlign(CENTER);\\n background(255);\\n }\\n\\n function draw() {\\n text('There are ' + table.getRowCount() + ' rows in the table.', 100, 50);\\n }\\n </code>\\n </div>\"\n                ],\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 770,\n                description:\n                  '<p>Removes any of the specified characters (or \"tokens\").</p>\\n\\n<p>If no column is specified, then the values in all columns and\\nrows are processed. A specific column may be referenced by\\neither its ID or title.</p>',\n                itemtype: 'method',\n                name: 'removeTokens',\n                params: [\n                  {\n                    name: 'chars',\n                    description: '<p>String listing characters to be removed</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'column',\n                    description:\n                      '<p>Column ID (number)\\n                                 or name (string)</p>\\n',\n                    type: 'String|Integer',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n <div class=\\\"norender\\\"><code>\\n function setup() {\\n let table = new p5.Table();\\n\\n table.addColumn('name');\\n table.addColumn('type');\\n\\n let newRow = table.addRow();\\n newRow.setString('name', '   $Lion  ,');\\n newRow.setString('type', ',,,Mammal');\\n\\n newRow = table.addRow();\\n newRow.setString('name', '$Snake  ');\\n newRow.setString('type', ',,,Reptile');\\n\\n table.removeTokens(',$ ');\\n print(table.getArray());\\n }\\n\\n // prints:\\n //  0  \\\"Lion\\\"   \\\"Mamal\\\"\\n //  1  \\\"Snake\\\"  \\\"Reptile\\\"\\n </code></div>\"\n                ],\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 842,\n                description:\n                  '<p>Trims leading and trailing whitespace, such as spaces and tabs,\\nfrom String table values. If no column is specified, then the\\nvalues in all columns and rows are trimmed. A specific column\\nmay be referenced by either its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'trim',\n                params: [\n                  {\n                    name: 'column',\n                    description:\n                      '<p>Column ID (number)\\n                                 or name (string)</p>\\n',\n                    type: 'String|Integer',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n <div class=\\\"norender\\\"><code>\\n function setup() {\\n let table = new p5.Table();\\n\\n table.addColumn('name');\\n table.addColumn('type');\\n\\n let newRow = table.addRow();\\n newRow.setString('name', '   Lion  ,');\\n newRow.setString('type', ' Mammal  ');\\n\\n newRow = table.addRow();\\n newRow.setString('name', '  Snake  ');\\n newRow.setString('type', '  Reptile  ');\\n\\n table.trim();\\n print(table.getArray());\\n }\\n\\n // prints:\\n //  0  \\\"Lion\\\"   \\\"Mamal\\\"\\n //  1  \\\"Snake\\\"  \\\"Reptile\\\"\\n </code></div>\"\n                ],\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 906,\n                description:\n                  '<p>Use <a href=\"#/p5/removeColumn\">removeColumn()</a> to remove an existing column from a Table\\nobject. The column to be removed may be identified by either\\nits title (a String) or its index value (an int).\\nremoveColumn(0) would remove the first column, removeColumn(1)\\nwould remove the second column, and so on.</p>\\n',\n                itemtype: 'method',\n                name: 'removeColumn',\n                params: [\n                  {\n                    name: 'column',\n                    description: '<p>columnName (string) or ID (number)</p>\\n',\n                    type: 'String|Integer'\n                  }\n                ],\n                example: [\n                  \"\\n <div class=\\\"norender\\\">\\n <code>\\n // Given the CSV file \\\"mammals.csv\\\"\\n // in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n table.removeColumn('id');\\n print(table.getColumnCount());\\n }\\n </code>\\n </div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 971,\n                description:\n                  '<p>Stores a value in the Table&#39;s specified row and column.\\nThe row is specified by its ID, while the column may be specified\\nby either its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'set',\n                params: [\n                  {\n                    name: 'row',\n                    description: '<p>row ID</p>\\n',\n                    type: 'Integer'\n                  },\n                  {\n                    name: 'column',\n                    description:\n                      '<p>column ID (Number)\\n                              or title (String)</p>\\n',\n                    type: 'String|Integer'\n                  },\n                  {\n                    name: 'value',\n                    description: '<p>value to assign</p>\\n',\n                    type: 'String|Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\n// Given the CSV file \\\"mammals.csv\\\"\\n// in the project's \\\"assets\\\" folder:\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leopard\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  //my table is comma separated value \\\"csv\\\"\\n  //and has a header specifying the columns labels\\n  table = loadTable('assets/mammals.csv', 'csv', 'header');\\n}\\n\\nfunction setup() {\\n  table.set(0, 'species', 'Canis Lupus');\\n  table.set(0, 'name', 'Wolf');\\n\\n  //print the results\\n  for (let r = 0; r < table.getRowCount(); r++)\\n    for (let c = 0; c < table.getColumnCount(); c++)\\n      print(table.getString(r, c));\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 1021,\n                description:\n                  '<p>Stores a Float value in the Table&#39;s specified row and column.\\nThe row is specified by its ID, while the column may be specified\\nby either its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'setNum',\n                params: [\n                  {\n                    name: 'row',\n                    description: '<p>row ID</p>\\n',\n                    type: 'Integer'\n                  },\n                  {\n                    name: 'column',\n                    description:\n                      '<p>column ID (Number)\\n                              or title (String)</p>\\n',\n                    type: 'String|Integer'\n                  },\n                  {\n                    name: 'value',\n                    description: '<p>value to assign</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Given the CSV file \"mammals.csv\"\\n// in the project\\'s \"assets\" folder:\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leopard\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  //my table is comma separated value \"csv\"\\n  //and has a header specifying the columns labels\\n  table = loadTable(\\'assets/mammals.csv\\', \\'csv\\', \\'header\\');\\n}\\n\\nfunction setup() {\\n  table.setNum(1, \\'id\\', 1);\\n\\n  print(table.getColumn(0));\\n  //[\"0\", 1, \"2\"]\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 1067,\n                description:\n                  '<p>Stores a String value in the Table&#39;s specified row and column.\\nThe row is specified by its ID, while the column may be specified\\nby either its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'setString',\n                params: [\n                  {\n                    name: 'row',\n                    description: '<p>row ID</p>\\n',\n                    type: 'Integer'\n                  },\n                  {\n                    name: 'column',\n                    description:\n                      '<p>column ID (Number)\\n                              or title (String)</p>\\n',\n                    type: 'String|Integer'\n                  },\n                  {\n                    name: 'value',\n                    description: '<p>value to assign</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                example: [\n                  \"\\n<div class=\\\"norender\\\"><code>\\n// Given the CSV file \\\"mammals.csv\\\" in the project's \\\"assets\\\" folder:\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leopard\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  //my table is comma separated value \\\"csv\\\"\\n  //and has a header specifying the columns labels\\n  table = loadTable('assets/mammals.csv', 'csv', 'header');\\n}\\n\\nfunction setup() {\\n  //add a row\\n  let newRow = table.addRow();\\n  newRow.setString('id', table.getRowCount() - 1);\\n  newRow.setString('species', 'Canis Lupus');\\n  newRow.setString('name', 'Wolf');\\n\\n  print(table.getArray());\\n}\\n</code></div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 1112,\n                description:\n                  '<p>Retrieves a value from the Table&#39;s specified row and column.\\nThe row is specified by its ID, while the column may be specified by\\neither its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'get',\n                params: [\n                  {\n                    name: 'row',\n                    description: '<p>row ID</p>\\n',\n                    type: 'Integer'\n                  },\n                  {\n                    name: 'column',\n                    description:\n                      '<p>columnName (string) or\\n                                  ID (number)</p>\\n',\n                    type: 'String|Integer'\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'String|Number'\n                },\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\n// Given the CSV file \\\"mammals.csv\\\"\\n// in the project's \\\"assets\\\" folder:\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leopard\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  //my table is comma separated value \\\"csv\\\"\\n  //and has a header specifying the columns labels\\n  table = loadTable('assets/mammals.csv', 'csv', 'header');\\n}\\n\\nfunction setup() {\\n  print(table.get(0, 1));\\n  //Capra hircus\\n  print(table.get(0, 'species'));\\n  //Capra hircus\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 1159,\n                description:\n                  '<p>Retrieves a Float value from the Table&#39;s specified row and column.\\nThe row is specified by its ID, while the column may be specified by\\neither its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'getNum',\n                params: [\n                  {\n                    name: 'row',\n                    description: '<p>row ID</p>\\n',\n                    type: 'Integer'\n                  },\n                  {\n                    name: 'column',\n                    description:\n                      '<p>columnName (string) or\\n                                  ID (number)</p>\\n',\n                    type: 'String|Integer'\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Given the CSV file \"mammals.csv\"\\n// in the project\\'s \"assets\" folder:\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leopard\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  //my table is comma separated value \"csv\"\\n  //and has a header specifying the columns labels\\n  table = loadTable(\\'assets/mammals.csv\\', \\'csv\\', \\'header\\');\\n}\\n\\nfunction setup() {\\n  print(table.getNum(1, 0) + 100);\\n  //id 1 + 100 = 101\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 1204,\n                description:\n                  '<p>Retrieves a String value from the Table&#39;s specified row and column.\\nThe row is specified by its ID, while the column may be specified by\\neither its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'getString',\n                params: [\n                  {\n                    name: 'row',\n                    description: '<p>row ID</p>\\n',\n                    type: 'Integer'\n                  },\n                  {\n                    name: 'column',\n                    description:\n                      '<p>columnName (string) or\\n                                  ID (number)</p>\\n',\n                    type: 'String|Integer'\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'String'\n                },\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Given the CSV file \"mammals.csv\"\\n// in the project\\'s \"assets\" folder:\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leopard\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  // table is comma separated value \"CSV\"\\n  // and has specifiying header for column labels\\n  table = loadTable(\\'assets/mammals.csv\\', \\'csv\\', \\'header\\');\\n}\\n\\nfunction setup() {\\n  print(table.getString(0, 0)); // 0\\n  print(table.getString(0, 1)); // Capra hircus\\n  print(table.getString(0, 2)); // Goat\\n  print(table.getString(1, 0)); // 1\\n  print(table.getString(1, 1)); // Panthera pardus\\n  print(table.getString(1, 2)); // Leopard\\n  print(table.getString(2, 0)); // 2\\n  print(table.getString(2, 1)); // Equus zebra\\n  print(table.getString(2, 2)); // Zebra\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 1257,\n                description:\n                  '<p>Retrieves all table data and returns as an object. If a column name is\\npassed in, each row object will be stored with that attribute as its\\ntitle.</p>\\n',\n                itemtype: 'method',\n                name: 'getObject',\n                params: [\n                  {\n                    name: 'headerColumn',\n                    description:\n                      '<p>Name of the column which should be used to\\n                             title each row object (optional)</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'Object'\n                },\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Given the CSV file \"mammals.csv\"\\n// in the project\\'s \"assets\" folder:\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leopard\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  //my table is comma separated value \"csv\"\\n  //and has a header specifying the columns labels\\n  table = loadTable(\\'assets/mammals.csv\\', \\'csv\\', \\'header\\');\\n}\\n\\nfunction setup() {\\n  let tableObject = table.getObject();\\n\\n  print(tableObject);\\n  //outputs an object\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.Table.js',\n                line: 1321,\n                description:\n                  '<p>Retrieves all table data and returns it as a multidimensional array.</p>\\n',\n                itemtype: 'method',\n                name: 'getArray',\n                return: {\n                  description: '',\n                  type: 'Array'\n                },\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Given the CSV file \"mammals.csv\"\\n// in the project\\'s \"assets\" folder\\n//\\n// id,species,name\\n// 0,Capra hircus,Goat\\n// 1,Panthera pardus,Leoperd\\n// 2,Equus zebra,Zebra\\n\\nlet table;\\n\\nfunction preload() {\\n  // table is comma separated value \"CSV\"\\n  // and has specifiying header for column labels\\n  table = loadTable(\\'assets/mammals.csv\\', \\'csv\\', \\'header\\');\\n}\\n\\nfunction setup() {\\n  let tableArray = table.getArray();\\n  for (let i = 0; i < tableArray.length; i++) {\\n    print(tableArray[i]);\\n  }\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'no image displayed',\n                class: 'p5.Table',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.TableRow.js',\n                line: 40,\n                description:\n                  '<p>Stores a value in the TableRow&#39;s specified column.\\nThe column may be specified by either its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'set',\n                params: [\n                  {\n                    name: 'column',\n                    description:\n                      '<p>Column ID (Number)\\n                              or Title (String)</p>\\n',\n                    type: 'String|Integer'\n                  },\n                  {\n                    name: 'value',\n                    description: '<p>The value to be stored</p>\\n',\n                    type: 'String|Number'\n                  }\n                ],\n                example: [\n                  \"\\n <div class=\\\"norender\\\"><code>\\n // Given the CSV file \\\"mammals.csv\\\" in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n let rows = table.getRows();\\n for (let r = 0; r < rows.length; r++) {\\n   rows[r].set('name', 'Unicorn');\\n }\\n\\n //print the results\\n print(table.getArray());\\n }\\n </code></div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.TableRow',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.TableRow.js',\n                line: 102,\n                description:\n                  '<p>Stores a Float value in the TableRow&#39;s specified column.\\nThe column may be specified by either its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'setNum',\n                params: [\n                  {\n                    name: 'column',\n                    description:\n                      '<p>Column ID (Number)\\n                              or Title (String)</p>\\n',\n                    type: 'String|Integer'\n                  },\n                  {\n                    name: 'value',\n                    description:\n                      '<p>The value to be stored\\n                              as a Float</p>\\n',\n                    type: 'Number|String'\n                  }\n                ],\n                example: [\n                  \"\\n <div class=\\\"norender\\\"><code>\\n // Given the CSV file \\\"mammals.csv\\\" in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n let rows = table.getRows();\\n for (let r = 0; r < rows.length; r++) {\\n   rows[r].setNum('id', r + 10);\\n }\\n\\n print(table.getArray());\\n }\\n </code></div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.TableRow',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.TableRow.js',\n                line: 146,\n                description:\n                  '<p>Stores a String value in the TableRow&#39;s specified column.\\nThe column may be specified by either its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'setString',\n                params: [\n                  {\n                    name: 'column',\n                    description:\n                      '<p>Column ID (Number)\\n                              or Title (String)</p>\\n',\n                    type: 'String|Integer'\n                  },\n                  {\n                    name: 'value',\n                    description:\n                      '<p>The value to be stored\\n                              as a String</p>\\n',\n                    type: 'String|Number|Boolean|Object'\n                  }\n                ],\n                example: [\n                  \"\\n <div class=\\\"norender\\\"><code>\\n // Given the CSV file \\\"mammals.csv\\\" in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n let rows = table.getRows();\\n for (let r = 0; r < rows.length; r++) {\\n   let name = rows[r].getString('name');\\n   rows[r].setString('name', 'A ' + name + ' named George');\\n }\\n\\n print(table.getArray());\\n }\\n </code></div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.TableRow',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.TableRow.js',\n                line: 191,\n                description:\n                  '<p>Retrieves a value from the TableRow&#39;s specified column.\\nThe column may be specified by either its ID or title.</p>\\n',\n                itemtype: 'method',\n                name: 'get',\n                params: [\n                  {\n                    name: 'column',\n                    description:\n                      '<p>columnName (string) or\\n                                 ID (number)</p>\\n',\n                    type: 'String|Integer'\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'String|Number'\n                },\n                example: [\n                  \"\\n <div class=\\\"norender\\\"><code>\\n // Given the CSV file \\\"mammals.csv\\\" in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n let names = [];\\n let rows = table.getRows();\\n for (let r = 0; r < rows.length; r++) {\\n   names.push(rows[r].get('name'));\\n }\\n\\n print(names);\\n }\\n </code></div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.TableRow',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.TableRow.js',\n                line: 239,\n                description:\n                  '<p>Retrieves a Float value from the TableRow&#39;s specified\\ncolumn. The column may be specified by either its ID or\\ntitle.</p>\\n',\n                itemtype: 'method',\n                name: 'getNum',\n                params: [\n                  {\n                    name: 'column',\n                    description:\n                      '<p>columnName (string) or\\n                                 ID (number)</p>\\n',\n                    type: 'String|Integer'\n                  }\n                ],\n                return: {\n                  description: 'Float Floating point number',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n <div class=\\\"norender\\\"><code>\\n // Given the CSV file \\\"mammals.csv\\\" in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n let rows = table.getRows();\\n let minId = Infinity;\\n let maxId = -Infinity;\\n for (let r = 0; r < rows.length; r++) {\\n   let id = rows[r].getNum('id');\\n   minId = min(minId, id);\\n   maxId = min(maxId, id);\\n }\\n print('minimum id = ' + minId + ', maximum id = ' + maxId);\\n }\\n </code></div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.TableRow',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.TableRow.js',\n                line: 295,\n                description:\n                  '<p>Retrieves an String value from the TableRow&#39;s specified\\ncolumn. The column may be specified by either its ID or\\ntitle.</p>\\n',\n                itemtype: 'method',\n                name: 'getString',\n                params: [\n                  {\n                    name: 'column',\n                    description:\n                      '<p>columnName (string) or\\n                                 ID (number)</p>\\n',\n                    type: 'String|Integer'\n                  }\n                ],\n                return: {\n                  description: 'String',\n                  type: 'String'\n                },\n                example: [\n                  \"\\n <div class=\\\"norender\\\"><code>\\n // Given the CSV file \\\"mammals.csv\\\" in the project's \\\"assets\\\" folder:\\n //\\n // id,species,name\\n // 0,Capra hircus,Goat\\n // 1,Panthera pardus,Leopard\\n // 2,Equus zebra,Zebra\\n\\n let table;\\n\\n function preload() {\\n //my table is comma separated value \\\"csv\\\"\\n //and has a header specifying the columns labels\\n table = loadTable('assets/mammals.csv', 'csv', 'header');\\n }\\n\\n function setup() {\\n let rows = table.getRows();\\n let longest = '';\\n for (let r = 0; r < rows.length; r++) {\\n   let species = rows[r].getString('species');\\n   if (longest.length < species.length) {\\n     longest = species;\\n   }\\n }\\n\\n print('longest: ' + longest);\\n }\\n </code></div>\"\n                ],\n                alt: 'no image displayed',\n                class: 'p5.TableRow',\n                module: 'IO',\n                submodule: 'Table'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 63,\n                description:\n                  '<p>Gets a copy of the element&#39;s parent. Returns the parent as another\\n<a href=\"#/p5.XML\">p5.XML</a> object.</p>\\n',\n                itemtype: 'method',\n                name: 'getParent',\n                return: {\n                  description: 'element parent',\n                  type: 'p5.XML'\n                },\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let children = xml.getChildren(\\'animal\\');\\n  let parent = children[1].getParent();\\n  print(parent.getName());\\n}\\n\\n// Sketch prints:\\n// mammals\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 101,\n                description:\n                  '<p>Gets the element&#39;s full name, which is returned as a String.</p>\\n',\n                itemtype: 'method',\n                name: 'getName',\n                return: {\n                  description: 'the name of the node',\n                  type: 'String'\n                },\n                example: [\n                  '&lt;animal\\n <div class=\\'norender\\'><code>\\n // The following short XML file called \"mammals.xml\" is parsed\\n // in the code below.\\n //\\n // <?xml version=\"1.0\"?>\\n // &lt;mammals&gt;\\n //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n // &lt;/mammals&gt;\\n\\n let xml;\\n\\n function preload() {\\n xml = loadXML(\\'assets/mammals.xml\\');\\n }\\n\\n function setup() {\\n print(xml.getName());\\n }\\n\\n // Sketch prints:\\n // mammals\\n </code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 136,\n                description:\n                  '<p>Sets the element&#39;s name, which is specified as a String.</p>\\n',\n                itemtype: 'method',\n                name: 'setName',\n                params: [\n                  {\n                    name: 'the',\n                    description: '<p>new name of the node</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                example: [\n                  '&lt;animal\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  print(xml.getName());\\n  xml.setName(\\'fish\\');\\n  print(xml.getName());\\n}\\n\\n// Sketch prints:\\n// mammals\\n// fish\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 182,\n                description:\n                  '<p>Checks whether or not the element has any children, and returns the result\\nas a boolean.</p>\\n',\n                itemtype: 'method',\n                name: 'hasChildren',\n                return: {\n                  description: '',\n                  type: 'Boolean'\n                },\n                example: [\n                  '&lt;animal\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  print(xml.hasChildren());\\n}\\n\\n// Sketch prints:\\n// true\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 218,\n                description:\n                  '<p>Get the names of all of the element&#39;s children, and returns the names as an\\narray of Strings. This is the same as looping through and calling <a href=\"#/p5.XML/getName\">getName()</a>\\non each child element individually.</p>\\n',\n                itemtype: 'method',\n                name: 'listChildren',\n                return: {\n                  description: 'names of the children of the element',\n                  type: 'String[]'\n                },\n                example: [\n                  '&lt;animal\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  print(xml.listChildren());\\n}\\n\\n// Sketch prints:\\n// [\"animal\", \"animal\", \"animal\"]\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 259,\n                description:\n                  '<p>Returns all of the element&#39;s children as an array of <a href=\"#/p5.XML\">p5.XML</a> objects. When\\nthe name parameter is specified, then it will return all children that match\\nthat name.</p>\\n',\n                itemtype: 'method',\n                name: 'getChildren',\n                params: [\n                  {\n                    name: 'name',\n                    description: '<p>element name</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'children of the element',\n                  type: 'p5.XML[]'\n                },\n                example: [\n                  '&lt;animal\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let animals = xml.getChildren(\\'animal\\');\\n\\n  for (let i = 0; i < animals.length; i++) {\\n    print(animals[i].getContent());\\n  }\\n}\\n\\n// Sketch prints:\\n// \"Goat\"\\n// \"Leopard\"\\n// \"Zebra\"\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 315,\n                description:\n                  '<p>Returns the first of the element&#39;s children that matches the name parameter\\nor the child of the given index.It returns undefined if no matching\\nchild is found.</p>\\n',\n                itemtype: 'method',\n                name: 'getChild',\n                params: [\n                  {\n                    name: 'name',\n                    description: '<p>element name or index</p>\\n',\n                    type: 'String|Integer'\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'p5.XML'\n                },\n                example: [\n                  '&lt;animal\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let firstChild = xml.getChild(\\'animal\\');\\n  print(firstChild.getContent());\\n}\\n\\n// Sketch prints:\\n// \"Goat\"\\n</code></div>\\n<div class=\\'norender\\'><code>\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let secondChild = xml.getChild(1);\\n  print(secondChild.getContent());\\n}\\n\\n// Sketch prints:\\n// \"Leopard\"\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 375,\n                description:\n                  '<p>Appends a new child to the element. The child can be specified with\\neither a String, which will be used as the new tag&#39;s name, or as a\\nreference to an existing <a href=\"#/p5.XML\">p5.XML</a> object.\\nA reference to the newly created child is returned as an <a href=\"#/p5.XML\">p5.XML</a> object.</p>\\n',\n                itemtype: 'method',\n                name: 'addChild',\n                params: [\n                  {\n                    name: 'node',\n                    description:\n                      '<p>a <a href=\"#/p5.XML\">p5.XML</a> Object which will be the child to be added</p>\\n',\n                    type: 'p5.XML'\n                  }\n                ],\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let child = new p5.XML();\\n  child.setName(\\'animal\\');\\n  child.setAttribute(\\'id\\', \\'3\\');\\n  child.setAttribute(\\'species\\', \\'Ornithorhynchus anatinus\\');\\n  child.setContent(\\'Platypus\\');\\n  xml.addChild(child);\\n\\n  let animals = xml.getChildren(\\'animal\\');\\n  print(animals[animals.length - 1].getContent());\\n}\\n\\n// Sketch prints:\\n// \"Goat\"\\n// \"Leopard\"\\n// \"Zebra\"\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 427,\n                description: '<p>Removes the element specified by name or index.</p>\\n',\n                itemtype: 'method',\n                name: 'removeChild',\n                params: [\n                  {\n                    name: 'name',\n                    description: '<p>element name or index</p>\\n',\n                    type: 'String|Integer'\n                  }\n                ],\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  xml.removeChild(\\'animal\\');\\n  let children = xml.getChildren();\\n  for (let i = 0; i < children.length; i++) {\\n    print(children[i].getContent());\\n  }\\n}\\n\\n// Sketch prints:\\n// \"Leopard\"\\n// \"Zebra\"\\n</code></div>\\n<div class=\\'norender\\'><code>\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  xml.removeChild(1);\\n  let children = xml.getChildren();\\n  for (let i = 0; i < children.length; i++) {\\n    print(children[i].getContent());\\n  }\\n}\\n\\n// Sketch prints:\\n// \"Goat\"\\n// \"Zebra\"\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 499,\n                description:\n                  '<p>Counts the specified element&#39;s number of attributes, returned as an Number.</p>\\n',\n                itemtype: 'method',\n                name: 'getAttributeCount',\n                return: {\n                  description: '',\n                  type: 'Integer'\n                },\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let firstChild = xml.getChild(\\'animal\\');\\n  print(firstChild.getAttributeCount());\\n}\\n\\n// Sketch prints:\\n// 2\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 535,\n                description:\n                  '<p>Gets all of the specified element&#39;s attributes, and returns them as an\\narray of Strings.</p>\\n',\n                itemtype: 'method',\n                name: 'listAttributes',\n                return: {\n                  description: 'an array of strings containing the names of attributes',\n                  type: 'String[]'\n                },\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let firstChild = xml.getChild(\\'animal\\');\\n  print(firstChild.listAttributes());\\n}\\n\\n// Sketch prints:\\n// [\"id\", \"species\"]\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 578,\n                description:\n                  '<p>Checks whether or not an element has the specified attribute.</p>\\n',\n                itemtype: 'method',\n                name: 'hasAttribute',\n                params: [\n                  {\n                    name: 'the',\n                    description: '<p>attribute to be checked</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                return: {\n                  description: 'true if attribute found else false',\n                  type: 'Boolean'\n                },\n                example: [\n                  '\\n <div class=\\'norender\\'><code>\\n // The following short XML file called \"mammals.xml\" is parsed\\n // in the code below.\\n //\\n // <?xml version=\"1.0\"?>\\n // &lt;mammals&gt;\\n //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n // &lt;/mammals&gt;\\n\\n let xml;\\n\\n function preload() {\\n xml = loadXML(\\'assets/mammals.xml\\');\\n }\\n\\n function setup() {\\n let firstChild = xml.getChild(\\'animal\\');\\n print(firstChild.hasAttribute(\\'species\\'));\\n print(firstChild.hasAttribute(\\'color\\'));\\n }\\n\\n // Sketch prints:\\n // true\\n // false\\n </code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 623,\n                description:\n                  '<p>Returns an attribute value of the element as an Number. If the defaultValue\\nparameter is specified and the attribute doesn&#39;t exist, then defaultValue\\nis returned. If no defaultValue is specified and the attribute doesn&#39;t\\nexist, the value 0 is returned.</p>\\n',\n                itemtype: 'method',\n                name: 'getNum',\n                params: [\n                  {\n                    name: 'name',\n                    description: '<p>the non-null full name of the attribute</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'defaultValue',\n                    description: '<p>the default value of the attribute</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let firstChild = xml.getChild(\\'animal\\');\\n  print(firstChild.getNum(\\'id\\'));\\n}\\n\\n// Sketch prints:\\n// 0\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 670,\n                description:\n                  '<p>Returns an attribute value of the element as an String. If the defaultValue\\nparameter is specified and the attribute doesn&#39;t exist, then defaultValue\\nis returned. If no defaultValue is specified and the attribute doesn&#39;t\\nexist, null is returned.</p>\\n',\n                itemtype: 'method',\n                name: 'getString',\n                params: [\n                  {\n                    name: 'name',\n                    description: '<p>the non-null full name of the attribute</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'defaultValue',\n                    description: '<p>the default value of the attribute</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'String'\n                },\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let firstChild = xml.getChild(\\'animal\\');\\n  print(firstChild.getString(\\'species\\'));\\n}\\n\\n// Sketch prints:\\n// \"Capra hircus\"\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 717,\n                description:\n                  '<p>Sets the content of an element&#39;s attribute. The first parameter specifies\\nthe attribute name, while the second specifies the new content.</p>\\n',\n                itemtype: 'method',\n                name: 'setAttribute',\n                params: [\n                  {\n                    name: 'name',\n                    description: '<p>the full name of the attribute</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'value',\n                    description: '<p>the value of the attribute</p>\\n',\n                    type: 'Number|String|Boolean'\n                  }\n                ],\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let firstChild = xml.getChild(\\'animal\\');\\n  print(firstChild.getString(\\'species\\'));\\n  firstChild.setAttribute(\\'species\\', \\'Jamides zebra\\');\\n  print(firstChild.getString(\\'species\\'));\\n}\\n\\n// Sketch prints:\\n// \"Capra hircus\"\\n// \"Jamides zebra\"\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 758,\n                description:\n                  '<p>Returns the content of an element. If there is no such content,\\ndefaultValue is returned if specified, otherwise null is returned.</p>\\n',\n                itemtype: 'method',\n                name: 'getContent',\n                params: [\n                  {\n                    name: 'defaultValue',\n                    description: '<p>value returned if no content is found</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'String'\n                },\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let firstChild = xml.getChild(\\'animal\\');\\n  print(firstChild.getContent());\\n}\\n\\n// Sketch prints:\\n// \"Goat\"\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 799,\n                description: '<p>Sets the element&#39;s content.</p>\\n',\n                itemtype: 'method',\n                name: 'setContent',\n                params: [\n                  {\n                    name: 'text',\n                    description: '<p>the new content</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\n// The following short XML file called \"mammals.xml\" is parsed\\n// in the code below.\\n//\\n// <?xml version=\"1.0\"?>\\n// &lt;mammals&gt;\\n//   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\\n//   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\\n//   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\\n// &lt;/mammals&gt;\\n\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  let firstChild = xml.getChild(\\'animal\\');\\n  print(firstChild.getContent());\\n  firstChild.setContent(\\'Mountain Goat\\');\\n  print(firstChild.getContent());\\n}\\n\\n// Sketch prints:\\n// \"Goat\"\\n// \"Mountain Goat\"\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/io/p5.XML.js',\n                line: 840,\n                description:\n                  '<p>Serializes the element into a string. This function is useful for preparing\\nthe content to be sent over a http request or saved to file.</p>\\n',\n                itemtype: 'method',\n                name: 'serialize',\n                return: {\n                  description: 'Serialized string of the element',\n                  type: 'String'\n                },\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\nlet xml;\\n\\nfunction preload() {\\n  xml = loadXML(\\'assets/mammals.xml\\');\\n}\\n\\nfunction setup() {\\n  print(xml.serialize());\\n}\\n\\n// Sketch prints:\\n// <mammals>\\n//   <animal id=\"0\" species=\"Capra hircus\">Goat</animal>\\n//   <animal id=\"1\" species=\"Panthera pardus\">Leopard</animal>\\n//   <animal id=\"2\" species=\"Equus zebra\">Zebra</animal>\\n// </mammals>\\n</code></div>'\n                ],\n                class: 'p5.XML',\n                module: 'IO',\n                submodule: 'Input'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 10,\n                description:\n                  '<p>Calculates the absolute value (magnitude) of a number. Maps to Math.abs().\\nThe absolute value of a number is always positive.</p>\\n',\n                itemtype: 'method',\n                name: 'abs',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>number to compute</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'absolute value of given number',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div class = \"norender\"><code>\\nfunction setup() {\\n  let x = -3;\\n  let y = abs(x);\\n\\n  print(x); // -3\\n  print(y); // 3\\n}\\n</code></div>'\n                ],\n                alt: 'no image displayed',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 34,\n                description:\n                  '<p>Calculates the closest int value that is greater than or equal to the\\nvalue of the parameter. Maps to Math.ceil(). For example, ceil(9.03)\\nreturns the value 10.</p>\\n',\n                itemtype: 'method',\n                name: 'ceil',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>number to round up</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'rounded up number',\n                  type: 'Integer'\n                },\n                example: [\n                  '\\n<div><code>\\nfunction draw() {\\n  background(200);\\n  // map, mouseX between 0 and 5.\\n  let ax = map(mouseX, 0, 100, 0, 5);\\n  let ay = 66;\\n\\n  //Get the ceiling of the mapped number.\\n  let bx = ceil(map(mouseX, 0, 100, 0, 5));\\n  let by = 33;\\n\\n  // Multiply the mapped numbers by 20 to more easily\\n  // see the changes.\\n  stroke(0);\\n  fill(0);\\n  line(0, ay, ax * 20, ay);\\n  line(0, by, bx * 20, by);\\n\\n  // Reformat the float returned by map and draw it.\\n  noStroke();\\n  text(nfc(ax, 2), ax, ay - 5);\\n  text(nfc(bx, 1), bx, by - 5);\\n}\\n</code></div>'\n                ],\n                alt:\n                  '2 horizontal lines & number sets. increase with mouse x. bottom to 2 decimals',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 74,\n                description:\n                  '<p>Constrains a value between a minimum and maximum value.</p>\\n',\n                itemtype: 'method',\n                name: 'constrain',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>number to constrain</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'low',\n                    description: '<p>minimum limit</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'high',\n                    description: '<p>maximum limit</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'constrained number',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div><code>\\nfunction draw() {\\n  background(200);\\n\\n  let leftWall = 25;\\n  let rightWall = 75;\\n\\n  // xm is just the mouseX, while\\n  // xc is the mouseX, but constrained\\n  // between the leftWall and rightWall!\\n  let xm = mouseX;\\n  let xc = constrain(mouseX, leftWall, rightWall);\\n\\n  // Draw the walls.\\n  stroke(150);\\n  line(leftWall, 0, leftWall, height);\\n  line(rightWall, 0, rightWall, height);\\n\\n  // Draw xm and xc as circles.\\n  noStroke();\\n  fill(150);\\n  ellipse(xm, 33, 9, 9); // Not Constrained\\n  fill(0);\\n  ellipse(xc, 66, 9, 9); // Constrained\\n}\\n</code></div>'\n                ],\n                alt:\n                  '2 vertical lines. 2 ellipses move with mouse X 1 does not move passed lines',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 119,\n                description:\n                  '<p>Calculates the distance between two points, in either two or three dimensions.</p>\\n',\n                itemtype: 'method',\n                name: 'dist',\n                return: {\n                  description: 'distance between the two points',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\n// Move your mouse inside the canvas to see the\\n// change in distance between two points!\\nfunction draw() {\\n  background(200);\\n  fill(0);\\n\\n  let x1 = 10;\\n  let y1 = 90;\\n  let x2 = mouseX;\\n  let y2 = mouseY;\\n\\n  line(x1, y1, x2, y2);\\n  ellipse(x1, y1, 7, 7);\\n  ellipse(x2, y2, 7, 7);\\n\\n  // d is the length of the line\\n  // the distance from point 1 to point 2.\\n  let d = int(dist(x1, y1, x2, y2));\\n\\n  // Let's write d along the line we are drawing!\\n  push();\\n  translate((x1 + x2) / 2, (y1 + y2) / 2);\\n  rotate(atan2(y2 - y1, x2 - x1));\\n  text(nfc(d, 1), 0, -5);\\n  pop();\\n  // Fancy!\\n}\\n</code></div>\"\n                ],\n                alt:\n                  '2 ellipses joined by line. 1 ellipse moves with mouse X&Y. Distance displayed.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation',\n                overloads: [\n                  {\n                    line: 119,\n                    params: [\n                      {\n                        name: 'x1',\n                        description: '<p>x-coordinate of the first point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y1',\n                        description: '<p>y-coordinate of the first point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x2',\n                        description: '<p>x-coordinate of the second point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y2',\n                        description: '<p>y-coordinate of the second point</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    return: {\n                      description: 'distance between the two points',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 163,\n                    params: [\n                      {\n                        name: 'x1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z1',\n                        description: '<p>z-coordinate of the first point</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z2',\n                        description: '<p>z-coordinate of the second point</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    return: {\n                      description: 'distance between the two points',\n                      type: 'Number'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 184,\n                description:\n                  '<p>Returns Euler&#39;s number e (2.71828...) raised to the power of the n\\nparameter. Maps to Math.exp().</p>\\n',\n                itemtype: 'method',\n                name: 'exp',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>exponent to raise</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'e^n',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nfunction draw() {\\n  background(200);\\n\\n  // Compute the exp() function with a value between 0 and 2\\n  let xValue = map(mouseX, 0, width, 0, 2);\\n  let yValue = exp(xValue);\\n\\n  let y = map(yValue, 0, 8, height, 0);\\n\\n  let legend = 'exp (' + nfc(xValue, 3) + ')\\\\n= ' + nf(yValue, 1, 4);\\n  stroke(150);\\n  line(mouseX, y, mouseX, height);\\n  fill(0);\\n  text(legend, 5, 15);\\n  noStroke();\\n  ellipse(mouseX, y, 7, 7);\\n\\n  // Draw the exp(x) curve,\\n  // over the domain of x from 0 to 2\\n  noFill();\\n  stroke(0);\\n  beginShape();\\n  for (let x = 0; x < width; x++) {\\n    xValue = map(x, 0, width, 0, 2);\\n    yValue = exp(xValue);\\n    y = map(yValue, 0, 8, height, 0);\\n    vertex(x, y);\\n  }\\n\\n  endShape();\\n  line(0, 0, 0, height);\\n  line(0, height - 1, width, height - 1);\\n}\\n</code></div>\"\n                ],\n                alt: 'ellipse moves along a curve with mouse x. e^n displayed.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 234,\n                description:\n                  '<p>Calculates the closest int value that is less than or equal to the\\nvalue of the parameter. Maps to Math.floor().</p>\\n',\n                itemtype: 'method',\n                name: 'floor',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>number to round down</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'rounded down number',\n                  type: 'Integer'\n                },\n                example: [\n                  '\\n<div><code>\\nfunction draw() {\\n  background(200);\\n  //map, mouseX between 0 and 5.\\n  let ax = map(mouseX, 0, 100, 0, 5);\\n  let ay = 66;\\n\\n  //Get the floor of the mapped number.\\n  let bx = floor(map(mouseX, 0, 100, 0, 5));\\n  let by = 33;\\n\\n  // Multiply the mapped numbers by 20 to more easily\\n  // see the changes.\\n  stroke(0);\\n  fill(0);\\n  line(0, ay, ax * 20, ay);\\n  line(0, by, bx * 20, by);\\n\\n  // Reformat the float returned by map and draw it.\\n  noStroke();\\n  text(nfc(ax, 2), ax, ay - 5);\\n  text(nfc(bx, 1), bx, by - 5);\\n}\\n</code></div>'\n                ],\n                alt:\n                  '2 horizontal lines & number sets. increase with mouse x. bottom to 2 decimals',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 273,\n                description:\n                  '<p>Calculates a number between two numbers at a specific increment. The amt\\nparameter is the amount to interpolate between the two values where 0.0\\nequal to the first point, 0.1 is very near the first point, 0.5 is\\nhalf-way in between, and 1.0 is equal to the second point. If the\\nvalue of amt is more than 1.0 or less than 0.0, the number will be\\ncalculated accordingly in the ratio of the two given numbers. The lerp\\nfunction is convenient for creating motion along a straight\\npath and for drawing dotted lines.</p>\\n',\n                itemtype: 'method',\n                name: 'lerp',\n                params: [\n                  {\n                    name: 'start',\n                    description: '<p>first value</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'stop',\n                    description: '<p>second value</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'amt',\n                    description: '<p>number</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'lerped value',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div><code>\\nfunction setup() {\\n  background(200);\\n  let a = 20;\\n  let b = 80;\\n  let c = lerp(a, b, 0.2);\\n  let d = lerp(a, b, 0.5);\\n  let e = lerp(a, b, 0.8);\\n\\n  let y = 50;\\n\\n  strokeWeight(5);\\n  stroke(0); // Draw the original points in black\\n  point(a, y);\\n  point(b, y);\\n\\n  stroke(100); // Draw the lerp points in gray\\n  point(c, y);\\n  point(d, y);\\n  point(e, y);\\n}\\n</code></div>'\n                ],\n                alt:\n                  '5 points horizontally staggered mid-canvas. mid 3 are grey, outer black',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 321,\n                description:\n                  '<p>Calculates the natural logarithm (the base-e logarithm) of a number. This\\nfunction expects the n parameter to be a value greater than 0.0. Maps to\\nMath.log().</p>\\n',\n                itemtype: 'method',\n                name: 'log',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>number greater than 0</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'natural logarithm of n',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nfunction draw() {\\n  background(200);\\n  let maxX = 2.8;\\n  let maxY = 1.5;\\n\\n  // Compute the natural log of a value between 0 and maxX\\n  let xValue = map(mouseX, 0, width, 0, maxX);\\n  let yValue, y;\\n  if (xValue > 0) {\\n   // Cannot take the log of a negative number.\\n    yValue = log(xValue);\\n    y = map(yValue, -maxY, maxY, height, 0);\\n\\n    // Display the calculation occurring.\\n    let legend = 'log(' + nf(xValue, 1, 2) + ')\\\\n= ' + nf(yValue, 1, 3);\\n    stroke(150);\\n    line(mouseX, y, mouseX, height);\\n    fill(0);\\n    text(legend, 5, 15);\\n    noStroke();\\n    ellipse(mouseX, y, 7, 7);\\n  }\\n\\n  // Draw the log(x) curve,\\n  // over the domain of x from 0 to maxX\\n  noFill();\\n  stroke(0);\\n  beginShape();\\n  for (let x = 0; x < width; x++) {\\n    xValue = map(x, 0, width, 0, maxX);\\n    yValue = log(xValue);\\n    y = map(yValue, -maxY, maxY, height, 0);\\n    vertex(x, y);\\n  }\\n  endShape();\\n  line(0, 0, 0, height);\\n  line(0, height / 2, width, height / 2);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'ellipse moves along a curve with mouse x. natural logarithm of n displayed.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 377,\n                description:\n                  '<p>Calculates the magnitude (or length) of a vector. A vector is a direction\\nin space commonly used in computer graphics and linear algebra. Because it\\nhas no &quot;start&quot; position, the magnitude of a vector can be thought of as\\nthe distance from the coordinate 0,0 to its x,y value. Therefore, <a href=\"#/p5/mag\">mag()</a> is\\na shortcut for writing dist(0, 0, x, y).</p>\\n',\n                itemtype: 'method',\n                name: 'mag',\n                params: [\n                  {\n                    name: 'a',\n                    description: '<p>first value</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'b',\n                    description: '<p>second value</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'magnitude of vector from (0,0) to (a,b)',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div><code>\\nfunction setup() {\\n  let x1 = 20;\\n  let x2 = 80;\\n  let y1 = 30;\\n  let y2 = 70;\\n\\n  line(0, 0, x1, y1);\\n  print(mag(x1, y1)); // Prints \"36.05551275463989\"\\n  line(0, 0, x2, y1);\\n  print(mag(x2, y1)); // Prints \"85.44003745317531\"\\n  line(0, 0, x1, y2);\\n  print(mag(x1, y2)); // Prints \"72.80109889280519\"\\n  line(0, 0, x2, y2);\\n  print(mag(x2, y2)); // Prints \"106.3014581273465\"\\n}\\n</code></div>'\n                ],\n                alt: '4 lines of different length radiate from top left of canvas.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 416,\n                description:\n                  '<p>Re-maps a number from one range to another.\\n<br><br>\\nIn the first example above, the number 25 is converted from a value in the\\nrange of 0 to 100 into a value that ranges from the left edge of the\\nwindow (0) to the right edge (width).</p>\\n',\n                itemtype: 'method',\n                name: 'map',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>the incoming value to be converted</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'start1',\n                    description: '<p>lower bound of the value&#39;s current range</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'stop1',\n                    description: '<p>upper bound of the value&#39;s current range</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'start2',\n                    description: '<p>lower bound of the value&#39;s target range</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'stop2',\n                    description: '<p>upper bound of the value&#39;s target range</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'withinBounds',\n                    description: '<p>constrain the value to the newly mapped range</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'remapped number',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n  <div><code>\\nlet value = 25;\\nlet m = map(value, 0, 100, 0, width);\\nellipse(m, 50, 10, 10);\\n</code></div>\\n\\n  <div><code>\\nfunction setup() {\\n  noStroke();\\n}\\n\\nfunction draw() {\\n  background(204);\\n  let x1 = map(mouseX, 0, width, 25, 75);\\n  ellipse(x1, 25, 25, 25);\\n  //This ellipse is constrained to the 0-100 range\\n  //after setting withinBounds to true\\n  let x2 = map(mouseX, 0, width, 0, 100, true);\\n  ellipse(x2, 75, 25, 25);\\n}\\n</code></div>'\n                ],\n                alt:\n                  '10 by 10 white ellipse with in mid left canvas\\n2 25 by 25 white ellipses move with mouse x. Bottom has more range from X',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 472,\n                description:\n                  '<p>Determines the largest value in a sequence of numbers, and then returns\\nthat value. <a href=\"#/p5/max\">max()</a> accepts any number of Number parameters, or an Array\\nof any length.</p>\\n',\n                itemtype: 'method',\n                name: 'max',\n                return: {\n                  description: 'maximum Number',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nfunction setup() {\\n  // Change the elements in the array and run the sketch\\n  // to show how max() works!\\n  let numArray = [2, 1, 5, 4, 8, 9];\\n  fill(0);\\n  noStroke();\\n  text('Array Elements', 0, 10);\\n  // Draw all numbers in the array\\n  let spacing = 15;\\n  let elemsY = 25;\\n  for (let i = 0; i < numArray.length; i++) {\\n    text(numArray[i], i * spacing, elemsY);\\n  }\\n  let maxX = 33;\\n  let maxY = 80;\\n  // Draw the Maximum value in the array.\\n  textSize(32);\\n  text(max(numArray), maxX, maxY);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'Small text at top reads: Array Elements 2 1 5 4 8 9. Large text at center: 9',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation',\n                overloads: [\n                  {\n                    line: 472,\n                    params: [\n                      {\n                        name: 'n0',\n                        description: '<p>Number to compare</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'n1',\n                        description: '<p>Number to compare</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    return: {\n                      description: 'maximum Number',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 508,\n                    params: [\n                      {\n                        name: 'nums',\n                        description: '<p>Numbers to compare</p>\\n',\n                        type: 'Number[]'\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'Number'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 522,\n                description:\n                  '<p>Determines the smallest value in a sequence of numbers, and then returns\\nthat value. <a href=\"#/p5/min\">min()</a> accepts any number of Number parameters, or an Array\\nof any length.</p>\\n',\n                itemtype: 'method',\n                name: 'min',\n                return: {\n                  description: 'minimum Number',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nfunction setup() {\\n  // Change the elements in the array and run the sketch\\n  // to show how min() works!\\n  let numArray = [2, 1, 5, 4, 8, 9];\\n  fill(0);\\n  noStroke();\\n  text('Array Elements', 0, 10);\\n  // Draw all numbers in the array\\n  let spacing = 15;\\n  let elemsY = 25;\\n  for (let i = 0; i < numArray.length; i++) {\\n    text(numArray[i], i * spacing, elemsY);\\n  }\\n  let maxX = 33;\\n  let maxY = 80;\\n  // Draw the Minimum value in the array.\\n  textSize(32);\\n  text(min(numArray), maxX, maxY);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'Small text at top reads: Array Elements 2 1 5 4 8 9. Large text at center: 1',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation',\n                overloads: [\n                  {\n                    line: 522,\n                    params: [\n                      {\n                        name: 'n0',\n                        description: '<p>Number to compare</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'n1',\n                        description: '<p>Number to compare</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    return: {\n                      description: 'minimum Number',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 558,\n                    params: [\n                      {\n                        name: 'nums',\n                        description: '<p>Numbers to compare</p>\\n',\n                        type: 'Number[]'\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'Number'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 572,\n                description:\n                  '<p>Normalizes a number from another range into a value between 0 and 1.\\nIdentical to map(value, low, high, 0, 1).\\nNumbers outside of the range are not clamped to 0 and 1, because\\nout-of-range values are often intentional and useful. (See the example above.)</p>\\n',\n                itemtype: 'method',\n                name: 'norm',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>incoming value to be normalized</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'start',\n                    description: '<p>lower bound of the value&#39;s current range</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'stop',\n                    description: '<p>upper bound of the value&#39;s current range</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'normalized number',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nfunction draw() {\\n  background(200);\\n  let currentNum = mouseX;\\n  let lowerBound = 0;\\n  let upperBound = width; //100;\\n  let normalized = norm(currentNum, lowerBound, upperBound);\\n  let lineY = 70;\\n  stroke(3);\\n  line(0, lineY, width, lineY);\\n  //Draw an ellipse mapped to the non-normalized value.\\n  noStroke();\\n  fill(50);\\n  let s = 7; // ellipse size\\n  ellipse(currentNum, lineY, s, s);\\n\\n  // Draw the guide\\n  let guideY = lineY + 15;\\n  text('0', 0, guideY);\\n  textAlign(RIGHT);\\n  text('100', width, guideY);\\n\\n  // Draw the normalized value\\n  textAlign(LEFT);\\n  fill(0);\\n  textSize(32);\\n  let normalY = 40;\\n  let normalX = 20;\\n  text(normalized, normalX, normalY);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'ellipse moves with mouse. 0 shown left & 100 right and updating values center',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 625,\n                description:\n                  '<p>Facilitates exponential expressions. The <a href=\"#/p5/pow\">pow()</a> function is an efficient\\nway of multiplying numbers by themselves (or their reciprocals) in large\\nquantities. For example, pow(3, 5) is equivalent to the expression\\n3 &times; 3 &times; 3 &times; 3 &times; 3 and pow(3, -5) is equivalent to 1 /\\n3 &times; 3 &times; 3 &times; 3 &times; 3. Maps to\\nMath.pow().</p>\\n',\n                itemtype: 'method',\n                name: 'pow',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>base of the exponential expression</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'e',\n                    description: '<p>power by which to raise the base</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'n^e',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div><code>\\nfunction setup() {\\n  //Exponentially increase the size of an ellipse.\\n  let eSize = 3; // Original Size\\n  let eLoc = 10; // Original Location\\n\\n  ellipse(eLoc, eLoc, eSize, eSize);\\n\\n  ellipse(eLoc * 2, eLoc * 2, pow(eSize, 2), pow(eSize, 2));\\n\\n  ellipse(eLoc * 4, eLoc * 4, pow(eSize, 3), pow(eSize, 3));\\n\\n  ellipse(eLoc * 8, eLoc * 8, pow(eSize, 4), pow(eSize, 4));\\n}\\n</code></div>'\n                ],\n                alt: 'small to large ellipses radiating from top left of canvas',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 660,\n                description:\n                  '<p>Calculates the integer closest to the n parameter. For example,\\nround(133.8) returns the value 134. Maps to Math.round().</p>\\n',\n                itemtype: 'method',\n                name: 'round',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>number to round</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'decimals',\n                    description:\n                      '<p>number of decimal places to round to, default is 0</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'rounded number',\n                  type: 'Integer'\n                },\n                example: [\n                  '\\n<div><code>\\nlet x = round(3.7);\\ntext(x, width / 2, height / 2);\\n</code></div>\\n<div><code>\\nlet x = round(12.782383, 2);\\ntext(x, width / 2, height / 2);\\n</code></div>\\n<div><code>\\nfunction draw() {\\n  background(200);\\n  //map, mouseX between 0 and 5.\\n  let ax = map(mouseX, 0, 100, 0, 5);\\n  let ay = 66;\\n\\n  // Round the mapped number.\\n  let bx = round(map(mouseX, 0, 100, 0, 5));\\n  let by = 33;\\n\\n  // Multiply the mapped numbers by 20 to more easily\\n  // see the changes.\\n  stroke(0);\\n  fill(0);\\n  line(0, ay, ax * 20, ay);\\n  line(0, by, bx * 20, by);\\n\\n  // Reformat the float returned by map and draw it.\\n  noStroke();\\n  text(nfc(ax, 2), ax, ay - 5);\\n  text(nfc(bx, 1), bx, by - 5);\\n}\\n</code></div>'\n                ],\n                alt:\n                  '\"3\" written in middle of canvas\\n\"12.78\" written in middle of canvas\\nhorizontal center line squared values displayed on top and regular on bottom.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 715,\n                description:\n                  '<p>Squares a number (multiplies a number by itself). The result is always a\\npositive number, as multiplying two negative numbers always yields a\\npositive result. For example, -1 * -1 = 1.</p>\\n',\n                itemtype: 'method',\n                name: 'sq',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>number to square</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'squared number',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nfunction draw() {\\n  background(200);\\n  let eSize = 7;\\n  let x1 = map(mouseX, 0, width, 0, 10);\\n  let y1 = 80;\\n  let x2 = sq(x1);\\n  let y2 = 20;\\n\\n  // Draw the non-squared.\\n  line(0, y1, width, y1);\\n  ellipse(x1, y1, eSize, eSize);\\n\\n  // Draw the squared.\\n  line(0, y2, width, y2);\\n  ellipse(x2, y2, eSize, eSize);\\n\\n  // Draw dividing line.\\n  stroke(100);\\n  line(0, height / 2, width, height / 2);\\n\\n  // Draw text.\\n  let spacing = 15;\\n  noStroke();\\n  fill(0);\\n  text('x = ' + x1, 0, y1 + spacing);\\n  text('sq(x) = ' + x2, 0, y2 + spacing);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'horizontal center line squared values displayed on top and regular on bottom.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 760,\n                description:\n                  '<p>Calculates the square root of a number. The square root of a number is\\nalways positive, even though there may be a valid negative root. The\\nsquare root s of number a is such that s*s = a. It is the opposite of\\nsquaring. Maps to Math.sqrt().</p>\\n',\n                itemtype: 'method',\n                name: 'sqrt',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>non-negative number to square root</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'square root of number',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nfunction draw() {\\n  background(200);\\n  let eSize = 7;\\n  let x1 = mouseX;\\n  let y1 = 80;\\n  let x2 = sqrt(x1);\\n  let y2 = 20;\\n\\n  // Draw the non-squared.\\n  line(0, y1, width, y1);\\n  ellipse(x1, y1, eSize, eSize);\\n\\n  // Draw the squared.\\n  line(0, y2, width, y2);\\n  ellipse(x2, y2, eSize, eSize);\\n\\n  // Draw dividing line.\\n  stroke(100);\\n  line(0, height / 2, width, height / 2);\\n\\n  // Draw text.\\n  noStroke();\\n  fill(0);\\n  let spacing = 15;\\n  text('x = ' + x1, 0, y1 + spacing);\\n  text('sqrt(x) = ' + x2, 0, y2 + spacing);\\n}\\n</code></div>\"\n                ],\n                alt:\n                  'horizontal center line squareroot values displayed on top and regular on bottom.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/calculation.js',\n                line: 848,\n                description: '<p>Calculates the fractional part of a number.</p>\\n',\n                itemtype: 'method',\n                name: 'fract',\n                params: [\n                  {\n                    name: 'num',\n                    description:\n                      '<p>Number whose fractional part needs to be found out</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'fractional part of x, i.e, {x}',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(windowWidth, windowHeight);\\n  fill(0);\\n  text(7345.73472742, 0, 50);\\n  text(fract(7345.73472742), 0, 100);\\n  text(1.4215e-15, 150, 50);\\n  text(fract(1.4215e-15), 150, 100);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '2 rows of numbers, the first row having 8 numbers and the second having the fractional parts of those numbers.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Calculation'\n              },\n              {\n                file: 'src/math/math.js',\n                line: 10,\n                description:\n                  '<p>Creates a new <a href=\"#/p5.Vector\">p5.Vector</a> (the datatype for storing vectors). This provides a\\ntwo or three dimensional vector, specifically a Euclidean (also known as\\ngeometric) vector. A vector is an entity that has both magnitude and\\ndirection.</p>\\n',\n                itemtype: 'method',\n                name: 'createVector',\n                params: [\n                  {\n                    name: 'x',\n                    description: '<p>x component of the vector</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y component of the vector</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'z',\n                    description: '<p>z component of the vector</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'p5.Vector'\n                },\n                example: [\n                  \"\\n<div modernizr='webgl'><code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  noStroke();\\n  fill(255, 102, 204);\\n}\\n\\nfunction draw() {\\n  background(255);\\n  pointLight(color(255), createVector(sin(millis() / 1000) * 20, -40, -10));\\n  scale(0.75);\\n  sphere();\\n}\\n</code></div>\"\n                ],\n                alt: 'a purple sphere lit by a point light oscillating horizontally',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/noise.js',\n                line: 36,\n                description:\n                  '<p>Returns the Perlin noise value at specified coordinates. Perlin noise is\\na random sequence generator producing a more natural ordered, harmonic\\nsuccession of numbers compared to the standard <b>random()</b> function.\\nIt was invented by Ken Perlin in the 1980s and been used since in\\ngraphical applications to produce procedural textures, natural motion,\\nshapes, terrains etc.<br /><br /> The main difference to the\\n<b>random()</b> function is that Perlin noise is defined in an infinite\\nn-dimensional space where each pair of coordinates corresponds to a\\nfixed semi-random value (fixed only for the lifespan of the program; see\\nthe <a href=\"#/p5/noiseSeed\">noiseSeed()</a> function). p5.js can compute 1D, 2D and 3D noise,\\ndepending on the number of coordinates given. The resulting value will\\nalways be between 0.0 and 1.0. The noise value can be animated by moving\\nthrough the noise space as demonstrated in the example above. The 2nd\\nand 3rd dimension can also be interpreted as time.<br /><br />The actual\\nnoise is structured similar to an audio signal, in respect to the\\nfunction&#39;s use of frequencies. Similar to the concept of harmonics in\\nphysics, perlin noise is computed over several octaves which are added\\ntogether for the final result. <br /><br />Another way to adjust the\\ncharacter of the resulting sequence is the scale of the input\\ncoordinates. As the function works within an infinite space the value of\\nthe coordinates doesn&#39;t matter as such, only the distance between\\nsuccessive coordinates does (eg. when using <b>noise()</b> within a\\nloop). As a general rule the smaller the difference between coordinates,\\nthe smoother the resulting noise sequence will be. Steps of 0.005-0.03\\nwork best for most applications, but this will differ depending on use.</p>\\n',\n                itemtype: 'method',\n                name: 'noise',\n                params: [\n                  {\n                    name: 'x',\n                    description: '<p>x-coordinate in noise space</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y-coordinate in noise space</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'z',\n                    description: '<p>z-coordinate in noise space</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'Perlin noise value (between 0 and 1) at specified\\n                     coordinates',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nlet xoff = 0.0;\\n\\nfunction draw() {\\n  background(204);\\n  xoff = xoff + 0.01;\\n  let n = noise(xoff) * width;\\n  line(n, 0, n, height);\\n}\\n</code>\\n</div>\\n<div>\\n<code>let noiseScale=0.02;\\n\\nfunction draw() {\\n  background(0);\\n  for (let x=0; x < width; x++) {\\n    let noiseVal = noise((mouseX+x)*noiseScale, mouseY*noiseScale);\\n    stroke(noiseVal*255);\\n    line(x, mouseY+noiseVal*80, x, height);\\n  }\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'vertical line moves left to right with updating noise values.\\nhorizontal wave pattern effected by mouse x-position & updating noise values.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Noise'\n              },\n              {\n                file: 'src/math/noise.js',\n                line: 180,\n                description:\n                  '<p>Adjusts the character and level of detail produced by the Perlin noise\\n function. Similar to harmonics in physics, noise is computed over\\n several octaves. Lower octaves contribute more to the output signal and\\n as such define the overall intensity of the noise, whereas higher octaves\\n create finer grained details in the noise sequence.\\n <br><br>\\n By default, noise is computed over 4 octaves with each octave contributing\\n exactly half than its predecessor, starting at 50% strength for the 1st\\n octave. This falloff amount can be changed by adding an additional function\\n parameter. Eg. a falloff factor of 0.75 means each octave will now have\\n 75% impact (25% less) of the previous lower octave. Any value between\\n 0.0 and 1.0 is valid, however note that values greater than 0.5 might\\n result in greater than 1.0 values returned by <b>noise()</b>.\\n <br><br>\\n By changing these parameters, the signal created by the <b>noise()</b>\\n function can be adapted to fit very specific needs and characteristics.</p>\\n',\n                itemtype: 'method',\n                name: 'noiseDetail',\n                params: [\n                  {\n                    name: 'lod',\n                    description: '<p>number of octaves to be used by the noise</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'falloff',\n                    description: '<p>falloff factor for each octave</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  '\\n <div>\\n <code>\\n let noiseVal;\\n let noiseScale = 0.02;\\nfunction setup() {\\n   createCanvas(100, 100);\\n }\\nfunction draw() {\\n   background(0);\\n   for (let y = 0; y < height; y++) {\\n     for (let x = 0; x < width / 2; x++) {\\n       noiseDetail(2, 0.2);\\n       noiseVal = noise((mouseX + x) * noiseScale, (mouseY + y) * noiseScale);\\n       stroke(noiseVal * 255);\\n       point(x, y);\\n       noiseDetail(8, 0.65);\\n       noiseVal = noise(\\n         (mouseX + x + width / 2) * noiseScale,\\n         (mouseY + y) * noiseScale\\n       );\\n       stroke(noiseVal * 255);\\n       point(x + width / 2, y);\\n     }\\n   }\\n }\\n </code>\\n </div>'\n                ],\n                alt:\n                  '2 vertical grey smokey patterns affected my mouse x-position and noise.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Noise'\n              },\n              {\n                file: 'src/math/noise.js',\n                line: 246,\n                description:\n                  '<p>Sets the seed value for <b>noise()</b>. By default, <b>noise()</b>\\nproduces different results each time the program is run. Set the\\n<b>value</b> parameter to a constant to return the same pseudo-random\\nnumbers each time the software is run.</p>\\n',\n                itemtype: 'method',\n                name: 'noiseSeed',\n                params: [\n                  {\n                    name: 'seed',\n                    description: '<p>the seed value</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>let xoff = 0.0;\\n\\nfunction setup() {\\n  noiseSeed(99);\\n  stroke(0, 10);\\n}\\n\\nfunction draw() {\\n  xoff = xoff + .01;\\n  let n = noise(xoff) * width;\\n  line(n, 0, n, height);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'vertical grey lines drawing in pattern affected by noise.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Noise'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 66,\n                description: '<p>The x component of the vector</p>\\n',\n                itemtype: 'property',\n                name: 'x',\n                type: 'Number',\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 71,\n                description: '<p>The y component of the vector</p>\\n',\n                itemtype: 'property',\n                name: 'y',\n                type: 'Number',\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 76,\n                description: '<p>The z component of the vector</p>\\n',\n                itemtype: 'property',\n                name: 'z',\n                type: 'Number',\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 83,\n                description:\n                  '<p>Returns a string representation of a vector v by calling String(v)\\nor v.toString(). This method is useful for logging vectors in the\\nconsole.</p>\\n',\n                itemtype: 'method',\n                name: 'toString',\n                return: {\n                  description: '',\n                  type: 'String'\n                },\n                example: [\n                  '\\n<div class = \"norender\">\\n<code>\\nfunction setup() {\\n  let v = createVector(20, 30);\\n  print(String(v)); // prints \"p5.Vector Object : [20, 30, 0]\"\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(0, 0);\\n  let v1 = createVector(mouseX, mouseY);\\n  drawArrow(v0, v1, \\'black\\');\\n\\n  noStroke();\\n  text(v1.toString(), 10, 25, 90, 75);\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>'\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 133,\n                description:\n                  '<p>Sets the x, y, and z component of the vector using two or three separate\\nvariables, the data from a <a href=\"#/p5.Vector\">p5.Vector</a>, or the values from a float array.</p>\\n',\n                itemtype: 'method',\n                name: 'set',\n                chainable: 1,\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nfunction setup() {\\n  let v = createVector(1, 2, 3);\\n  v.set(4, 5, 6); // Sets vector to [4, 5, 6]\\n\\n  let v1 = createVector(0, 0, 0);\\n  let arr = [1, 2, 3];\\n  v1.set(arr); // Sets vector to [1, 2, 3]\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet v0, v1;\\nfunction setup() {\\n  createCanvas(100, 100);\\n\\n  v0 = createVector(0, 0);\\n  v1 = createVector(50, 50);\\n}\\n\\nfunction draw() {\\n  background(240);\\n\\n  drawArrow(v0, v1, 'black');\\n  v1.set(v1.x + random(-1, 1), v1.y + random(-1, 1));\\n\\n  noStroke();\\n  text('x: ' + round(v1.x) + ' y: ' + round(v1.y), 20, 90);\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector',\n                overloads: [\n                  {\n                    line: 133,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>the x component of the vector</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>the y component of the vector</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>the z component of the vector</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 192,\n                    params: [\n                      {\n                        name: 'value',\n                        description: '<p>the vector to set</p>\\n',\n                        type: 'p5.Vector|Number[]'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 216,\n                description:\n                  '<p>Gets a copy of the vector, returns a <a href=\"#/p5.Vector\">p5.Vector</a> object.</p>\\n',\n                itemtype: 'method',\n                name: 'copy',\n                return: {\n                  description: 'the copy of the <a href=\"#/p5.Vector\">p5.Vector</a> object',\n                  type: 'p5.Vector'\n                },\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\nlet v1 = createVector(1, 2, 3);\\nlet v2 = v1.copy();\\nprint(v1.x === v2.x && v1.y === v2.y && v1.z === v2.z);\\n// Prints \"true\"\\n</code>\\n</div>'\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 239,\n                description:\n                  '<p>Adds x, y, and z components to a vector, adds one vector to another, or\\nadds two independent vectors together. The version of the method that adds\\ntwo vectors together is a static method and returns a <a href=\"#/p5.Vector\">p5.Vector</a>, the others\\nacts directly on the vector. See the examples for more context.</p>\\n',\n                itemtype: 'method',\n                name: 'add',\n                chainable: 1,\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v = createVector(1, 2, 3);\\nv.add(4, 5, 6);\\n// v's components are set to [5, 7, 9]\\n</code>\\n</div>\\n\\n<div class=\\\"norender\\\">\\n<code>\\n// Static method\\nlet v1 = createVector(1, 2, 3);\\nlet v2 = createVector(2, 3, 4);\\n\\nlet v3 = p5.Vector.add(v1, v2);\\n// v3 has components [3, 5, 7]\\nprint(v3);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// red vector + blue vector = purple vector\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(0, 0);\\n  let v1 = createVector(mouseX, mouseY);\\n  drawArrow(v0, v1, 'red');\\n\\n  let v2 = createVector(-30, 20);\\n  drawArrow(v1, v2, 'blue');\\n\\n  let v3 = p5.Vector.add(v1, v2);\\n  drawArrow(v0, v3, 'purple');\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector',\n                overloads: [\n                  {\n                    line: 239,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>the x component of the vector to be added</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>the y component of the vector to be added</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>the z component of the vector to be added</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 305,\n                    params: [\n                      {\n                        name: 'value',\n                        description: '<p>the vector to add</p>\\n',\n                        type: 'p5.Vector|Number[]'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 1720,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>a <a href=\"#/p5.Vector\">p5.Vector</a> to add</p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'v2',\n                        description:\n                          '<p>a <a href=\"#/p5.Vector\">p5.Vector</a> to add</p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'target',\n                        description: '<p>the vector to receive the result</p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1\n                  },\n                  {\n                    line: 1727,\n                    params: [\n                      {\n                        name: 'v1',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'v2',\n                        description: '',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1,\n                    return: {\n                      description: 'the resulting <a href=\"#/p5.Vector\">p5.Vector</a>',\n                      type: 'p5.Vector'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 352,\n                description:\n                  '<p>Gives remainder of a vector when it is divided by another vector.\\nSee examples for more context.</p>\\n',\n                itemtype: 'method',\n                name: 'rem',\n                chainable: 1,\n                example: [\n                  \"\\n<div class='norender'>\\n<code>\\nlet v = createVector(3, 4, 5);\\nv.rem(2, 3, 4);\\n// v's components are set to [1, 1, 1]\\n</code>\\n</div>\\n<div class=\\\"norender\\\">\\n<code>\\n// Static method\\nlet v1 = createVector(3, 4, 5);\\nlet v2 = createVector(2, 3, 4);\\n\\nlet v3 = p5.Vector.rem(v1, v2);\\n// v3 has components [1, 1, 1]\\nprint(v3);\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector',\n                overloads: [\n                  {\n                    line: 352,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>the x component of divisor vector</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>the y component of divisor vector</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>the z component of divisor vector</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 381,\n                    params: [\n                      {\n                        name: 'value',\n                        description: '<p>divisor vector</p>\\n',\n                        type: 'p5.Vector | Number[]'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 1747,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>dividend <a href=\"#/p5.Vector\">p5.Vector</a></p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'v2',\n                        description: '<p>divisor <a href=\"#/p5.Vector\">p5.Vector</a></p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1\n                  },\n                  {\n                    line: 1753,\n                    params: [\n                      {\n                        name: 'v1',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'v2',\n                        description: '',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1,\n                    return: {\n                      description: 'the resulting <a href=\"#/p5.Vector\">p5.Vector</a>',\n                      type: 'p5.Vector'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 436,\n                description:\n                  '<p>Subtracts x, y, and z components from a vector, subtracts one vector from\\nanother, or subtracts two independent vectors. The version of the method\\nthat subtracts two vectors is a static method and returns a <a href=\"#/p5.Vector\">p5.Vector</a>, the\\nother acts directly on the vector. See the examples for more context.</p>\\n',\n                itemtype: 'method',\n                name: 'sub',\n                chainable: 1,\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v = createVector(4, 5, 6);\\nv.sub(1, 1, 1);\\n// v's components are set to [3, 4, 5]\\n</code>\\n</div>\\n\\n<div class=\\\"norender\\\">\\n<code>\\n// Static method\\nlet v1 = createVector(2, 3, 4);\\nlet v2 = createVector(1, 2, 3);\\n\\nlet v3 = p5.Vector.sub(v1, v2);\\n// v3 has components [1, 1, 1]\\nprint(v3);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// red vector - blue vector = purple vector\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(0, 0);\\n  let v1 = createVector(70, 50);\\n  drawArrow(v0, v1, 'red');\\n\\n  let v2 = createVector(mouseX, mouseY);\\n  drawArrow(v0, v2, 'blue');\\n\\n  let v3 = p5.Vector.sub(v1, v2);\\n  drawArrow(v2, v3, 'purple');\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector',\n                overloads: [\n                  {\n                    line: 436,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>the x component of the vector to subtract</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>the y component of the vector to subtract</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>the z component of the vector to subtract</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 502,\n                    params: [\n                      {\n                        name: 'value',\n                        description: '<p>the vector to subtract</p>\\n',\n                        type: 'p5.Vector|Number[]'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 1773,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>a <a href=\"#/p5.Vector\">p5.Vector</a> to subtract from</p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'v2',\n                        description:\n                          '<p>a <a href=\"#/p5.Vector\">p5.Vector</a> to subtract</p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'target',\n                        description: '<p>if undefined a new vector will be created</p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1\n                  },\n                  {\n                    line: 1780,\n                    params: [\n                      {\n                        name: 'v1',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'v2',\n                        description: '',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1,\n                    return: {\n                      description: 'the resulting <a href=\"#/p5.Vector\">p5.Vector</a>',\n                      type: 'p5.Vector'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 526,\n                description:\n                  '<p>Multiply the vector by a scalar. The static version of this method\\ncreates a new <a href=\"#/p5.Vector\">p5.Vector</a> while the non static version acts on the vector\\ndirectly. See the examples for more context.</p>\\n',\n                itemtype: 'method',\n                name: 'mult',\n                chainable: 1,\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v = createVector(1, 2, 3);\\nv.mult(2);\\n// v's components are set to [2, 4, 6]\\n</code>\\n</div>\\n\\n<div class=\\\"norender\\\">\\n<code>\\n// Static method\\nlet v1 = createVector(1, 2, 3);\\nlet v2 = p5.Vector.mult(v1, 2);\\n// v2 has components [2, 4, 6]\\nprint(v2);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(50, 50);\\n  let v1 = createVector(25, -25);\\n  drawArrow(v0, v1, 'red');\\n\\n  let num = map(mouseX, 0, width, -2, 2, true);\\n  let v2 = p5.Vector.mult(v1, num);\\n  drawArrow(v0, v2, 'blue');\\n\\n  noStroke();\\n  text('multiplied by ' + num.toFixed(2), 5, 90);\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector',\n                overloads: [\n                  {\n                    line: 526,\n                    params: [\n                      {\n                        name: 'n',\n                        description: '<p>the number to multiply with the vector</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 1801,\n                    params: [\n                      {\n                        name: 'v',\n                        description: '<p>the vector to multiply</p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'n',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'target',\n                        description: '<p>if undefined a new vector will be created</p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1\n                  },\n                  {\n                    line: 1808,\n                    params: [\n                      {\n                        name: 'v',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'n',\n                        description: '',\n                        type: 'Number'\n                      }\n                    ],\n                    static: 1,\n                    return: {\n                      description: 'the resulting new <a href=\"#/p5.Vector\">p5.Vector</a>',\n                      type: 'p5.Vector'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 601,\n                description:\n                  '<p>Divide the vector by a scalar. The static version of this method creates a\\nnew <a href=\"#/p5.Vector\">p5.Vector</a> while the non static version acts on the vector directly.\\nSee the examples for more context.</p>\\n',\n                itemtype: 'method',\n                name: 'div',\n                chainable: 1,\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v = createVector(6, 4, 2);\\nv.div(2); //v's components are set to [3, 2, 1]\\n</code>\\n</div>\\n\\n<div class=\\\"norender\\\">\\n<code>\\n// Static method\\nlet v1 = createVector(6, 4, 2);\\nlet v2 = p5.Vector.div(v1, 2);\\n// v2 has components [3, 2, 1]\\nprint(v2);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(0, 100);\\n  let v1 = createVector(50, -50);\\n  drawArrow(v0, v1, 'red');\\n\\n  let num = map(mouseX, 0, width, 10, 0.5, true);\\n  let v2 = p5.Vector.div(v1, num);\\n  drawArrow(v0, v2, 'blue');\\n\\n  noStroke();\\n  text('divided by ' + num.toFixed(2), 10, 90);\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector',\n                overloads: [\n                  {\n                    line: 601,\n                    params: [\n                      {\n                        name: 'n',\n                        description: '<p>the number to divide the vector by</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 1828,\n                    params: [\n                      {\n                        name: 'v',\n                        description: '<p>the vector to divide</p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'n',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'target',\n                        description: '<p>if undefined a new vector will be created</p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1\n                  },\n                  {\n                    line: 1835,\n                    params: [\n                      {\n                        name: 'v',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'n',\n                        description: '',\n                        type: 'Number'\n                      }\n                    ],\n                    static: 1,\n                    return: {\n                      description: 'the resulting new <a href=\"#/p5.Vector\">p5.Vector</a>',\n                      type: 'p5.Vector'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 679,\n                description:\n                  '<p>Calculates the magnitude (length) of the vector and returns the result as\\na float (this is simply the equation sqrt(x*x + y*y + z*z).)</p>\\n',\n                itemtype: 'method',\n                name: 'mag',\n                return: {\n                  description: 'magnitude of the vector',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(0, 0);\\n  let v1 = createVector(mouseX, mouseY);\\n  drawArrow(v0, v1, \\'black\\');\\n\\n  noStroke();\\n  text(\\'vector length: \\' + v1.mag().toFixed(2), 10, 70, 90, 30);\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\\n<div class=\"norender\">\\n<code>\\nlet v = createVector(20.0, 30.0, 40.0);\\nlet m = v.mag();\\nprint(m); // Prints \"53.85164807134504\"\\n</code>\\n</div>'\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector',\n                overloads: [\n                  {\n                    line: 679,\n                    params: [],\n                    return: {\n                      description: 'magnitude of the vector',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 1925,\n                    params: [\n                      {\n                        name: 'vecT',\n                        description: '<p>the vector to return the magnitude of</p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1,\n                    return: {\n                      description: 'the magnitude of vecT',\n                      type: 'Number'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 727,\n                description:\n                  '<p>Calculates the squared magnitude of the vector and returns the result\\nas a float (this is simply the equation <em>(x*x + y*y + z*z)</em>.)\\nFaster if the real length is not required in the\\ncase of comparing vectors, etc.</p>\\n',\n                itemtype: 'method',\n                name: 'magSq',\n                return: {\n                  description: 'squared magnitude of the vector',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\n// Static method\\nlet v1 = createVector(6, 4, 2);\\nprint(v1.magSq()); // Prints \"56\"\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(0, 0);\\n  let v1 = createVector(mouseX, mouseY);\\n  drawArrow(v0, v1, \\'black\\');\\n\\n  noStroke();\\n  text(\\'vector length squared: \\' + v1.magSq().toFixed(2), 10, 45, 90, 55);\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>'\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 781,\n                description:\n                  '<p>Calculates the dot product of two vectors. The version of the method\\nthat computes the dot product of two independent vectors is a static\\nmethod. See the examples for more context.</p>\\n',\n                itemtype: 'method',\n                name: 'dot',\n                return: {\n                  description: 'the dot product',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\nlet v1 = createVector(1, 2, 3);\\nlet v2 = createVector(2, 3, 4);\\n\\nprint(v1.dot(v2)); // Prints \"20\"\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\n//Static method\\nlet v1 = createVector(1, 2, 3);\\nlet v2 = createVector(3, 2, 1);\\nprint(p5.Vector.dot(v1, v2)); // Prints \"10\"\\n</code>\\n</div>'\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector',\n                overloads: [\n                  {\n                    line: 781,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>x component of the vector</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>y component of the vector</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>z component of the vector</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'the dot product',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 812,\n                    params: [\n                      {\n                        name: 'value',\n                        description:\n                          '<p>value component of the vector or a <a href=\"#/p5.Vector\">p5.Vector</a></p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 1855,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>the first <a href=\"#/p5.Vector\">p5.Vector</a></p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'v2',\n                        description:\n                          '<p>the second <a href=\"#/p5.Vector\">p5.Vector</a></p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1,\n                    return: {\n                      description: 'the dot product',\n                      type: 'Number'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 824,\n                description:\n                  '<p>Calculates and returns a vector composed of the cross product between\\ntwo vectors. Both the static and non static methods return a new <a href=\"#/p5.Vector\">p5.Vector</a>.\\nSee the examples for more context.</p>\\n',\n                itemtype: 'method',\n                name: 'cross',\n                return: {\n                  description:\n                    '<a href=\"#/p5.Vector\">p5.Vector</a> composed of cross product',\n                  type: 'p5.Vector'\n                },\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\nlet v1 = createVector(1, 2, 3);\\nlet v2 = createVector(1, 2, 3);\\n\\nv1.cross(v2); // v\\'s components are [0, 0, 0]\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\n// Static method\\nlet v1 = createVector(1, 0, 0);\\nlet v2 = createVector(0, 1, 0);\\n\\nlet crossProduct = p5.Vector.cross(v1, v2);\\n// crossProduct has components [0, 0, 1]\\nprint(crossProduct);\\n</code>\\n</div>'\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector',\n                overloads: [\n                  {\n                    line: 824,\n                    params: [\n                      {\n                        name: 'v',\n                        description:\n                          '<p><a href=\"#/p5.Vector\">p5.Vector</a> to be crossed</p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    return: {\n                      description:\n                        '<a href=\"#/p5.Vector\">p5.Vector</a> composed of cross product',\n                      type: 'p5.Vector'\n                    }\n                  },\n                  {\n                    line: 1869,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>the first <a href=\"#/p5.Vector\">p5.Vector</a></p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'v2',\n                        description:\n                          '<p>the second <a href=\"#/p5.Vector\">p5.Vector</a></p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1,\n                    return: {\n                      description: 'the cross product',\n                      type: 'Number'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 865,\n                description:\n                  '<p>Calculates the Euclidean distance between two points (considering a\\npoint as a vector object).</p>\\n',\n                itemtype: 'method',\n                name: 'dist',\n                return: {\n                  description: 'the distance',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v1 = createVector(1, 0, 0);\\nlet v2 = createVector(0, 1, 0);\\n\\nlet distance = v1.dist(v2); // distance is 1.4142...\\nprint(distance);\\n</code>\\n</div>\\n\\n<div class=\\\"norender\\\">\\n<code>\\n// Static method\\nlet v1 = createVector(1, 0, 0);\\nlet v2 = createVector(0, 1, 0);\\n\\nlet distance = p5.Vector.dist(v1, v2);\\n// distance is 1.4142...\\nprint(distance);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(0, 0);\\n\\n  let v1 = createVector(70, 50);\\n  drawArrow(v0, v1, 'red');\\n\\n  let v2 = createVector(mouseX, mouseY);\\n  drawArrow(v0, v2, 'blue');\\n\\n  noStroke();\\n  text('distance between vectors: ' + v2.dist(v1).toFixed(2), 5, 50, 95, 50);\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector',\n                overloads: [\n                  {\n                    line: 865,\n                    params: [\n                      {\n                        name: 'v',\n                        description:\n                          '<p>the x, y, and z coordinates of a <a href=\"#/p5.Vector\">p5.Vector</a></p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    return: {\n                      description: 'the distance',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 1884,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>the first <a href=\"#/p5.Vector\">p5.Vector</a></p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'v2',\n                        description:\n                          '<p>the second <a href=\"#/p5.Vector\">p5.Vector</a></p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1,\n                    return: {\n                      description: 'the distance',\n                      type: 'Number'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 936,\n                description:\n                  '<p>Normalize the vector to length 1 (make it a unit vector).</p>\\n',\n                itemtype: 'method',\n                name: 'normalize',\n                return: {\n                  description: 'normalized <a href=\"#/p5.Vector\">p5.Vector</a>',\n                  type: 'p5.Vector'\n                },\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v = createVector(10, 20, 2);\\n// v has components [10.0, 20.0, 2.0]\\nv.normalize();\\n// v's components are set to\\n// [0.4454354, 0.8908708, 0.089087084]\\n</code>\\n</div>\\n<div>\\n<code>\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(50, 50);\\n  let v1 = createVector(mouseX - 50, mouseY - 50);\\n\\n  drawArrow(v0, v1, 'red');\\n  v1.normalize();\\n  drawArrow(v0, v1.mult(35), 'blue');\\n\\n  noFill();\\n  ellipse(50, 50, 35 * 2);\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 992,\n                description:\n                  '<p>Limit the magnitude of this vector to the value used for the <b>max</b>\\nparameter.</p>\\n',\n                itemtype: 'method',\n                name: 'limit',\n                params: [\n                  {\n                    name: 'max',\n                    description: '<p>the maximum magnitude for the vector</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v = createVector(10, 20, 2);\\n// v has components [10.0, 20.0, 2.0]\\nv.limit(5);\\n// v's components are set to\\n// [2.2271771, 4.4543543, 0.4454354]\\n</code>\\n</div>\\n<div>\\n<code>\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(50, 50);\\n  let v1 = createVector(mouseX - 50, mouseY - 50);\\n\\n  drawArrow(v0, v1, 'red');\\n  drawArrow(v0, v1.limit(35), 'blue');\\n\\n  noFill();\\n  ellipse(50, 50, 35 * 2);\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1050,\n                description:\n                  '<p>Set the magnitude of this vector to the value used for the <b>len</b>\\nparameter.</p>\\n',\n                itemtype: 'method',\n                name: 'setMag',\n                params: [\n                  {\n                    name: 'len',\n                    description: '<p>the new length for this vector</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v = createVector(10, 20, 2);\\n// v has components [10.0, 20.0, 2.0]\\nv.setMag(10);\\n// v's components are set to [6.0, 8.0, 0.0]\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(0, 0);\\n  let v1 = createVector(50, 50);\\n\\n  drawArrow(v0, v1, 'red');\\n\\n  let length = map(mouseX, 0, width, 0, 141, true);\\n  v1.setMag(length);\\n  drawArrow(v0, v1, 'blue');\\n\\n  noStroke();\\n  text('magnitude set to: ' + length.toFixed(2), 10, 70, 90, 30);\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1106,\n                description:\n                  '<p>Calculate the angle of rotation for this vector (only 2D vectors)</p>\\n',\n                itemtype: 'method',\n                name: 'heading',\n                return: {\n                  description: 'the angle of rotation',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class = \\\"norender\\\">\\n<code>\\nfunction setup() {\\n  let v1 = createVector(30, 50);\\n  print(v1.heading()); // 1.0303768265243125\\n\\n  v1 = createVector(40, 50);\\n  print(v1.heading()); // 0.8960553845713439\\n\\n  v1 = createVector(30, 70);\\n  print(v1.heading()); // 1.1659045405098132\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(50, 50);\\n  let v1 = createVector(mouseX - 50, mouseY - 50);\\n\\n  drawArrow(v0, v1, 'black');\\n\\n  let myHeading = v1.heading();\\n  noStroke();\\n  text(\\n    'vector heading: ' +\\n      myHeading.toFixed(2) +\\n      ' radians or ' +\\n      degrees(myHeading).toFixed(2) +\\n      ' degrees',\\n    10,\\n    50,\\n    90,\\n    50\\n  );\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1175,\n                description:\n                  '<p>Rotate the vector by an angle (only 2D vectors), magnitude remains the\\nsame</p>\\n',\n                itemtype: 'method',\n                name: 'rotate',\n                params: [\n                  {\n                    name: 'angle',\n                    description: '<p>the angle of rotation</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v = createVector(10.0, 20.0);\\n// v has components [10.0, 20.0, 0.0]\\nv.rotate(HALF_PI);\\n// v's components are set to [-20.0, 9.999999, 0.0]\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet angle = 0;\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(50, 50);\\n  let v1 = createVector(50, 0);\\n\\n  drawArrow(v0, v1.rotate(angle), 'black');\\n  angle += 0.01;\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1231,\n                description:\n                  '<p>Calculates and returns the angle (in radians) between two vectors.</p>\\n',\n                itemtype: 'method',\n                name: 'angleBetween',\n                params: [\n                  {\n                    name: 'value',\n                    description:\n                      '<p>the x, y, and z components of a <a href=\"#/p5.Vector\">p5.Vector</a></p>\\n',\n                    type: 'p5.Vector'\n                  }\n                ],\n                return: {\n                  description: 'the angle between (in radians)',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v1 = createVector(1, 0, 0);\\nlet v2 = createVector(0, 1, 0);\\n\\nlet angle = v1.angleBetween(v2);\\n// angle is PI/2\\nprint(angle);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nfunction draw() {\\n  background(240);\\n  let v0 = createVector(50, 50);\\n\\n  let v1 = createVector(50, 0);\\n  drawArrow(v0, v1, 'red');\\n\\n  let v2 = createVector(mouseX - 50, mouseY - 50);\\n  drawArrow(v0, v2, 'blue');\\n\\n  let angleBetween = v1.angleBetween(v2);\\n  noStroke();\\n  text(\\n    'angle between: ' +\\n      angleBetween.toFixed(2) +\\n      ' radians or ' +\\n      degrees(angleBetween).toFixed(2) +\\n      ' degrees',\\n    10,\\n    50,\\n    90,\\n    50\\n  );\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1308,\n                description: '<p>Linear interpolate the vector to another vector</p>\\n',\n                itemtype: 'method',\n                name: 'lerp',\n                chainable: 1,\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v = createVector(1, 1, 0);\\n\\nv.lerp(3, 3, 0, 0.5); // v now has components [2,2,0]\\n</code>\\n</div>\\n\\n<div class=\\\"norender\\\">\\n<code>\\nlet v1 = createVector(0, 0, 0);\\nlet v2 = createVector(100, 100, 0);\\n\\nlet v3 = p5.Vector.lerp(v1, v2, 0.5);\\n// v3 has components [50,50,0]\\nprint(v3);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet step = 0.01;\\nlet amount = 0;\\n\\nfunction draw() {\\n  background(240);\\n  let v0 = createVector(0, 0);\\n\\n  let v1 = createVector(mouseX, mouseY);\\n  drawArrow(v0, v1, 'red');\\n\\n  let v2 = createVector(90, 90);\\n  drawArrow(v0, v2, 'blue');\\n\\n  if (amount > 1 || amount < 0) {\\n    step *= -1;\\n  }\\n  amount += step;\\n  let v3 = p5.Vector.lerp(v1, v2, amount);\\n\\n  drawArrow(v0, v3, 'purple');\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector',\n                overloads: [\n                  {\n                    line: 1308,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>the x component</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>the y component</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>the z component</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'amt',\n                        description:\n                          '<p>the amount of interpolation; some value between 0.0\\n                        (old vector) and 1.0 (new vector). 0.9 is very near\\n                        the new vector. 0.5 is halfway in between.</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 1381,\n                    params: [\n                      {\n                        name: 'v',\n                        description:\n                          '<p>the <a href=\"#/p5.Vector\">p5.Vector</a> to lerp to</p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'amt',\n                        description: '',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 1899,\n                    params: [\n                      {\n                        name: 'v1',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'v2',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'amt',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'target',\n                        description: '<p>if undefined a new vector will be created</p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    static: 1\n                  },\n                  {\n                    line: 1907,\n                    params: [\n                      {\n                        name: 'v1',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'v2',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'amt',\n                        description: '',\n                        type: 'Number'\n                      }\n                    ],\n                    static: 1,\n                    return: {\n                      description: 'the lerped value',\n                      type: 'Number'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1397,\n                description:\n                  '<p>Reflect the incoming vector about a normal to a line in 2D, or about a normal to a plane in 3D\\nThis method acts on the vector directly</p>\\n',\n                itemtype: 'method',\n                name: 'reflect',\n                params: [\n                  {\n                    name: 'surfaceNormal',\n                    description:\n                      '<p>the <a href=\"#/p5.Vector\">p5.Vector</a> to reflect about, will be normalized by this method</p>\\n',\n                    type: 'p5.Vector'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v = createVector(4, 6); // incoming vector, this example vector is heading to the right and downward\\nlet n = createVector(0, -1); // surface normal to a plane (this example normal points directly upwards)\\nv.reflect(n); // v is reflected about the surface normal n.  v's components are now set to [4, -6]\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(0, 0);\\n  let v1 = createVector(mouseX, mouseY);\\n  drawArrow(v0, v1, 'red');\\n\\n  let n = createVector(0, -30);\\n  drawArrow(v1, n, 'blue');\\n\\n  let r = v1.copy();\\n  r.reflect(n);\\n  drawArrow(v1, r, 'purple');\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1452,\n                description:\n                  '<p>Return a representation of this vector as a float array. This is only\\nfor temporary use. If used in any other fashion, the contents should be\\ncopied by using the <b>p5.Vector.<a href=\"#/p5.Vector/copy\">copy()</a></b> method to copy into your own\\narray.</p>\\n',\n                itemtype: 'method',\n                name: 'array',\n                return: {\n                  description: 'an Array with the 3 values',\n                  type: 'Number[]'\n                },\n                example: [\n                  '\\n<div class = \"norender\">\\n<code>\\nfunction setup() {\\n  let v = createVector(20, 30);\\n  print(v.array()); // Prints : Array [20, 30, 0]\\n}\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\nlet v = createVector(10.0, 20.0, 30.0);\\nlet f = v.array();\\nprint(f[0]); // Prints \"10.0\"\\nprint(f[1]); // Prints \"20.0\"\\nprint(f[2]); // Prints \"30.0\"\\n</code>\\n</div>'\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1484,\n                description:\n                  '<p>Equality check against a <a href=\"#/p5.Vector\">p5.Vector</a></p>\\n',\n                itemtype: 'method',\n                name: 'equals',\n                return: {\n                  description: 'whether the vectors are equals',\n                  type: 'Boolean'\n                },\n                example: [\n                  '\\n<div class = \"norender\">\\n<code>\\nlet v1 = createVector(5, 10, 20);\\nlet v2 = createVector(5, 10, 20);\\nlet v3 = createVector(13, 10, 19);\\n\\nprint(v1.equals(v2.x, v2.y, v2.z)); // true\\nprint(v1.equals(v3.x, v3.y, v3.z)); // false\\n</code>\\n</div>\\n\\n<div class=\"norender\">\\n<code>\\nlet v1 = createVector(10.0, 20.0, 30.0);\\nlet v2 = createVector(10.0, 20.0, 30.0);\\nlet v3 = createVector(0.0, 0.0, 0.0);\\nprint(v1.equals(v2)); // true\\nprint(v1.equals(v3)); // false\\n</code>\\n</div>'\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector',\n                overloads: [\n                  {\n                    line: 1484,\n                    params: [\n                      {\n                        name: 'x',\n                        description: '<p>the x component of the vector</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>the y component of the vector</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>the z component of the vector</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'whether the vectors are equals',\n                      type: 'Boolean'\n                    }\n                  },\n                  {\n                    line: 1514,\n                    params: [\n                      {\n                        name: 'value',\n                        description: '<p>the vector to compare</p>\\n',\n                        type: 'p5.Vector|Array'\n                      }\n                    ],\n                    return: {\n                      description: '',\n                      type: 'Boolean'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1539,\n                description: '<p>Make a new 2D vector from an angle</p>\\n',\n                itemtype: 'method',\n                name: 'fromAngle',\n                static: 1,\n                params: [\n                  {\n                    name: 'angle',\n                    description:\n                      '<p>the desired angle, in radians (unaffected by <a href=\"#/p5/angleMode\">angleMode</a>)</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'length',\n                    description: '<p>the length of the new vector (defaults to 1)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'the new <a href=\"#/p5.Vector\">p5.Vector</a> object',\n                  type: 'p5.Vector'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nfunction draw() {\\n  background(200);\\n\\n  // Create a variable, proportional to the mouseX,\\n  // varying from 0-360, to represent an angle in degrees.\\n  let myDegrees = map(mouseX, 0, width, 0, 360);\\n\\n  // Display that variable in an onscreen text.\\n  // (Note the nfc() function to truncate additional decimal places,\\n  // and the \\\"\\\\xB0\\\" character for the degree symbol.)\\n  let readout = 'angle = ' + nfc(myDegrees, 1) + '\\\\xB0';\\n  noStroke();\\n  fill(0);\\n  text(readout, 5, 15);\\n\\n  // Create a p5.Vector using the fromAngle function,\\n  // and extract its x and y components.\\n  let v = p5.Vector.fromAngle(radians(myDegrees), 30);\\n  let vx = v.x;\\n  let vy = v.y;\\n\\n  push();\\n  translate(width / 2, height / 2);\\n  noFill();\\n  stroke(150);\\n  line(0, 0, 30, 0);\\n  stroke(0);\\n  line(0, 0, vx, vy);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1590,\n                description:\n                  '<p>Make a new 3D vector from a pair of ISO spherical angles</p>\\n',\n                itemtype: 'method',\n                name: 'fromAngles',\n                static: 1,\n                params: [\n                  {\n                    name: 'theta',\n                    description: '<p>the polar angle, in radians (zero is up)</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'phi',\n                    description:\n                      '<p>the azimuthal angle, in radians\\n                              (zero is out of the screen)</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'length',\n                    description: '<p>the length of the new vector (defaults to 1)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'the new <a href=\"#/p5.Vector\">p5.Vector</a> object',\n                  type: 'p5.Vector'\n                },\n                example: [\n                  \"\\n<div modernizr='webgl'>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  fill(255);\\n  noStroke();\\n}\\nfunction draw() {\\n  background(255);\\n\\n  let t = millis() / 1000;\\n\\n  // add three point lights\\n  pointLight(color('#f00'), p5.Vector.fromAngles(t * 1.0, t * 1.3, 100));\\n  pointLight(color('#0f0'), p5.Vector.fromAngles(t * 1.1, t * 1.2, 100));\\n  pointLight(color('#00f'), p5.Vector.fromAngles(t * 1.2, t * 1.1, 100));\\n\\n  sphere(35);\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1639,\n                description: '<p>Make a new 2D unit vector from a random angle</p>\\n',\n                itemtype: 'method',\n                name: 'random2D',\n                static: 1,\n                return: {\n                  description: 'the new <a href=\"#/p5.Vector\">p5.Vector</a> object',\n                  type: 'p5.Vector'\n                },\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet v = p5.Vector.random2D();\\n// May make v's attributes something like:\\n// [0.61554617, -0.51195765, 0.0] or\\n// [-0.4695841, -0.14366731, 0.0] or\\n// [0.6091097, -0.22805278, 0.0]\\nprint(v);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nfunction setup() {\\n  frameRate(1);\\n}\\n\\nfunction draw() {\\n  background(240);\\n\\n  let v0 = createVector(50, 50);\\n  let v1 = p5.Vector.random2D();\\n  drawArrow(v0, v1.mult(50), 'black');\\n}\\n\\n// draw an arrow for a vector at a given base position\\nfunction drawArrow(base, vec, myColor) {\\n  push();\\n  stroke(myColor);\\n  strokeWeight(3);\\n  fill(myColor);\\n  translate(base.x, base.y);\\n  line(0, 0, vec.x, vec.y);\\n  rotate(vec.heading());\\n  let arrowSize = 7;\\n  translate(vec.mag() - arrowSize, 0);\\n  triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1692,\n                description: '<p>Make a new random 3D unit vector.</p>\\n',\n                itemtype: 'method',\n                name: 'random3D',\n                static: 1,\n                return: {\n                  description: 'the new <a href=\"#/p5.Vector\">p5.Vector</a> object',\n                  type: 'p5.Vector'\n                },\n                example: [\n                  '\\n<div class=\"norender\">\\n<code>\\nlet v = p5.Vector.random3D();\\n// May make v\\'s attributes something like:\\n// [0.61554617, -0.51195765, 0.599168] or\\n// [-0.4695841, -0.14366731, -0.8711202] or\\n// [0.6091097, -0.22805278, -0.7595902]\\nprint(v);\\n</code>\\n</div>'\n                ],\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1798,\n                description:\n                  '<p>Multiplies a vector by a scalar and returns a new vector.</p>\\n',\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1825,\n                description:\n                  '<p>Divides a vector by a scalar and returns a new vector.</p>\\n',\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1852,\n                description: '<p>Calculates the dot product of two vectors.</p>\\n',\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1866,\n                description: '<p>Calculates the cross product of two vectors.</p>\\n',\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1880,\n                description:\n                  '<p>Calculates the Euclidean distance between two points (considering a\\npoint as a vector object).</p>\\n',\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/p5.Vector.js',\n                line: 1895,\n                description:\n                  '<p>Linear interpolate a vector to another vector and return the result as a\\nnew vector.</p>\\n',\n                class: 'p5.Vector',\n                module: 'Math',\n                submodule: 'Vector'\n              },\n              {\n                file: 'src/math/random.js',\n                line: 37,\n                description:\n                  '<p>Sets the seed value for <a href=\"#/p5/random\">random()</a>.</p>\\n<p>By default, <a href=\"#/p5/random\">random()</a> produces different results each time the program\\nis run. Set the seed parameter to a constant to return the same\\npseudo-random numbers each time the software is run.</p>\\n',\n                itemtype: 'method',\n                name: 'randomSeed',\n                params: [\n                  {\n                    name: 'seed',\n                    description: '<p>the seed value</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\nrandomSeed(99);\\nfor (let i = 0; i < 100; i++) {\\n  let r = random(0, 255);\\n  stroke(r);\\n  line(i, 0, i, 100);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'many vertical lines drawn in white, black or grey.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Random'\n              },\n              {\n                file: 'src/math/random.js',\n                line: 67,\n                description:\n                  '<p>Return a random floating-point number.</p>\\n<p>Takes either 0, 1 or 2 arguments.</p>\\n<p>If no argument is given, returns a random number from 0\\nup to (but not including) 1.</p>\\n<p>If one argument is given and it is a number, returns a random number from 0\\nup to (but not including) the number.</p>\\n<p>If one argument is given and it is an array, returns a random element from\\nthat array.</p>\\n<p>If two arguments are given, returns a random number from the\\nfirst argument up to (but not including) the second argument.</p>\\n',\n                itemtype: 'method',\n                name: 'random',\n                return: {\n                  description: 'the random number',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nfor (let i = 0; i < 100; i++) {\\n  let r = random(50);\\n  stroke(r * 5);\\n  line(50, i, 50 + r, i);\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\nfor (let i = 0; i < 100; i++) {\\n  let r = random(-50, 50);\\n  line(50, i, 50 + r, i);\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\n// Get a random element from an array using the random(Array) syntax\\nlet words = ['apple', 'bear', 'cat', 'dog'];\\nlet word = random(words); // select random word\\ntext(word, 10, 50); // draw the word\\n</code>\\n</div>\"\n                ],\n                alt:\n                  '100 horizontal lines from center canvas to right. size+fill change each time\\n100 horizontal lines from center of canvas. height & side change each render\\nword displayed at random. Either apple, bear, cat, or dog',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Random',\n                overloads: [\n                  {\n                    line: 67,\n                    params: [\n                      {\n                        name: 'min',\n                        description: '<p>the lower bound (inclusive)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'max',\n                        description: '<p>the upper bound (exclusive)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'the random number',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 121,\n                    params: [\n                      {\n                        name: 'choices',\n                        description: '<p>the array to choose from</p>\\n',\n                        type: 'Array'\n                      }\n                    ],\n                    return: {\n                      description: 'the random element from the array',\n                      type: '*'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/math/random.js',\n                line: 155,\n                description:\n                  '<p>Returns a random number fitting a Gaussian, or\\n normal, distribution. There is theoretically no minimum or maximum\\n value that <a href=\"#/p5/randomGaussian\">randomGaussian()</a> might return. Rather, there is\\n just a very low probability that values far from the mean will be\\n returned; and a higher probability that numbers near the mean will\\n be returned.\\n <br><br>\\n Takes either 0, 1 or 2 arguments.<br>\\n If no args, returns a mean of 0 and standard deviation of 1.<br>\\n If one arg, that arg is the mean (standard deviation is 1).<br>\\n If two args, first is mean, second is standard deviation.</p>\\n',\n                itemtype: 'method',\n                name: 'randomGaussian',\n                params: [\n                  {\n                    name: 'mean',\n                    description: '<p>the mean</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'sd',\n                    description: '<p>the standard deviation</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the random number',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n <div>\\n <code>\\n for (let y = 0; y < 100; y++) {\\n   let x = randomGaussian(50, 15);\\n   line(50, y, x, y);\\n }\\n </code>\\n </div>\\n <div>\\n <code>\\n let distribution = new Array(360);\\nfunction setup() {\\n   createCanvas(100, 100);\\n   for (let i = 0; i < distribution.length; i++) {\\n     distribution[i] = floor(randomGaussian(0, 15));\\n   }\\n }\\nfunction draw() {\\n   background(204);\\n  translate(width / 2, width / 2);\\n  for (let i = 0; i < distribution.length; i++) {\\n     rotate(TWO_PI / distribution.length);\\n     stroke(0);\\n     let dist = abs(distribution[i]);\\n     line(0, 0, dist, 0);\\n   }\\n }\\n </code>\\n </div>'\n                ],\n                alt:\n                  '100 horizontal lines from center of canvas. height & side change each render\\n black lines radiate from center of canvas. size determined each render',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Random'\n              },\n              {\n                file: 'src/math/trigonometry.js',\n                line: 18,\n                description:\n                  '<p>The inverse of <a href=\"#/p5/cos\">cos()</a>, returns the arc cosine of a value. This function\\nexpects the values in the range of -1 to 1 and values are returned in\\nthe range 0 to PI (3.1415927).</p>\\n',\n                itemtype: 'method',\n                name: 'acos',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>the value whose arc cosine is to be returned</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the arc cosine of the given value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class= “norender\\\">\\n<code>\\nlet a = PI;\\nlet c = cos(a);\\nlet ac = acos(c);\\n// Prints: \\\"3.1415927 : -1.0 : 3.1415927\\\"\\nprint(a + ' : ' + c + ' : ' + ac);\\n</code>\\n</div>\\n\\n<div class= “norender\\\">\\n<code>\\nlet a = PI + PI / 4.0;\\nlet c = cos(a);\\nlet ac = acos(c);\\n// Prints: \\\"3.926991 : -0.70710665 : 2.3561943\\\"\\nprint(a + ' : ' + c + ' : ' + ac);\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Trigonometry'\n              },\n              {\n                file: 'src/math/trigonometry.js',\n                line: 52,\n                description:\n                  '<p>The inverse of <a href=\"#/p5/sin\">sin()</a>, returns the arc sine of a value. This function\\nexpects the values in the range of -1 to 1 and values are returned\\nin the range -PI/2 to PI/2.</p>\\n',\n                itemtype: 'method',\n                name: 'asin',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>the value whose arc sine is to be returned</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the arc sine of the given value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class= “norender\\\">\\n<code>\\nlet a = PI / 3.0;\\nlet s = sin(a);\\nlet as = asin(s);\\n// Prints: \\\"1.0471975 : 0.86602540 : 1.0471975\\\"\\nprint(a + ' : ' + s + ' : ' + as);\\n</code>\\n</div>\\n\\n<div class= “norender\\\">\\n<code>\\nlet a = PI + PI / 3.0;\\nlet s = sin(a);\\nlet as = asin(s);\\n// Prints: \\\"4.1887902 : -0.86602540 : -1.0471975\\\"\\nprint(a + ' : ' + s + ' : ' + as);\\n</code>\\n</div>\\n\"\n                ],\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Trigonometry'\n              },\n              {\n                file: 'src/math/trigonometry.js',\n                line: 87,\n                description:\n                  '<p>The inverse of <a href=\"#/p5/tan\">tan()</a>, returns the arc tangent of a value. This function\\nexpects the values in the range of -Infinity to Infinity (exclusive) and\\nvalues are returned in the range -PI/2 to PI/2.</p>\\n',\n                itemtype: 'method',\n                name: 'atan',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>the value whose arc tangent is to be returned</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the arc tangent of the given value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class= “norender\\\">\\n<code>\\nlet a = PI / 3.0;\\nlet t = tan(a);\\nlet at = atan(t);\\n// Prints: \\\"1.0471975 : 1.7320508 : 1.0471975\\\"\\nprint(a + ' : ' + t + ' : ' + at);\\n</code>\\n</div>\\n\\n<div class= “norender\\\">\\n<code>\\nlet a = PI + PI / 3.0;\\nlet t = tan(a);\\nlet at = atan(t);\\n// Prints: \\\"4.1887902 : 1.7320508 : 1.0471975\\\"\\nprint(a + ' : ' + t + ' : ' + at);\\n</code>\\n</div>\\n\"\n                ],\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Trigonometry'\n              },\n              {\n                file: 'src/math/trigonometry.js',\n                line: 122,\n                description:\n                  '<p>Calculates the angle (in radians) from a specified point to the coordinate\\norigin as measured from the positive x-axis. Values are returned as a\\nfloat in the range from PI to -PI. The atan2<a href=\"#/p5/\">()</a> function is most often used\\nfor orienting geometry to the position of the cursor.\\n<br><br>\\nNote: The y-coordinate of the point is the first parameter, and the\\nx-coordinate is the second parameter, due the the structure of calculating\\nthe tangent.</p>\\n',\n                itemtype: 'method',\n                name: 'atan2',\n                params: [\n                  {\n                    name: 'y',\n                    description: '<p>y-coordinate of the point</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'x',\n                    description: '<p>x-coordinate of the point</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the arc tangent of the given point',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nfunction draw() {\\n  background(204);\\n  translate(width / 2, height / 2);\\n  let a = atan2(mouseY - height / 2, mouseX - width / 2);\\n  rotate(a);\\n  rect(-30, -5, 60, 10);\\n}\\n</code>\\n</div>'\n                ],\n                alt: '60 by 10 rect at center of canvas rotates with mouse movements',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Trigonometry'\n              },\n              {\n                file: 'src/math/trigonometry.js',\n                line: 158,\n                description:\n                  '<p>Calculates the cosine of an angle. This function takes into account the\\ncurrent <a href=\"#/p5/angleMode\">angleMode</a>. Values are returned in the range -1 to 1.</p>\\n',\n                itemtype: 'method',\n                name: 'cos',\n                params: [\n                  {\n                    name: 'angle',\n                    description: '<p>the angle</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the cosine of the angle',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nlet a = 0.0;\\nlet inc = TWO_PI / 25.0;\\nfor (let i = 0; i < 25; i++) {\\n  line(i * 4, 50, i * 4, 50 + cos(a) * 40.0);\\n  a = a + inc;\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'vertical black lines form wave patterns, extend-down on left and right side',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Trigonometry'\n              },\n              {\n                file: 'src/math/trigonometry.js',\n                line: 186,\n                description:\n                  '<p>Calculates the sine of an angle. This function takes into account the\\ncurrent <a href=\"#/p5/angleMode\">angleMode</a>. Values are returned in the range -1 to 1.</p>\\n',\n                itemtype: 'method',\n                name: 'sin',\n                params: [\n                  {\n                    name: 'angle',\n                    description: '<p>the angle</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the sine of the angle',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nlet a = 0.0;\\nlet inc = TWO_PI / 25.0;\\nfor (let i = 0; i < 25; i++) {\\n  line(i * 4, 50, i * 4, 50 + sin(a) * 40.0);\\n  a = a + inc;\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'vertical black lines extend down and up from center to form wave pattern',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Trigonometry'\n              },\n              {\n                file: 'src/math/trigonometry.js',\n                line: 214,\n                description:\n                  '<p>Calculates the tangent of an angle. This function takes into account\\nthe current <a href=\"#/p5/angleMode\">angleMode</a>. Values are returned in the range of all real numbers.</p>\\n',\n                itemtype: 'method',\n                name: 'tan',\n                params: [\n                  {\n                    name: 'angle',\n                    description: '<p>the angle</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the tangent of the angle',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nlet a = 0.0;\\nlet inc = TWO_PI / 50.0;\\nfor (let i = 0; i < 100; i = i + 2) {\\n  line(i, 50, i, 50 + tan(a) * 2.0);\\n  a = a + inc;\\n}\\n</code>'\n                ],\n                alt:\n                  'vertical black lines end down and up from center to form spike pattern',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Trigonometry'\n              },\n              {\n                file: 'src/math/trigonometry.js',\n                line: 242,\n                description:\n                  '<p>Converts a radian measurement to its corresponding value in degrees.\\nRadians and degrees are two ways of measuring the same thing. There are\\n360 degrees in a circle and 2*PI radians in a circle. For example,\\n90° = PI/2 = 1.5707964. This function does not take into account the\\ncurrent <a href=\"#/p5/angleMode\">angleMode</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'degrees',\n                params: [\n                  {\n                    name: 'radians',\n                    description: '<p>the radians value to convert to degrees</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the converted angle',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class= “norender\\\">\\n<code>\\nlet rad = PI / 4;\\nlet deg = degrees(rad);\\nprint(rad + ' radians is ' + deg + ' degrees');\\n// Prints: 0.7853981633974483 radians is 45 degrees\\n</code>\\n</div>\\n\"\n                ],\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Trigonometry'\n              },\n              {\n                file: 'src/math/trigonometry.js',\n                line: 267,\n                description:\n                  '<p>Converts a degree measurement to its corresponding value in radians.\\nRadians and degrees are two ways of measuring the same thing. There are\\n360 degrees in a circle and 2*PI radians in a circle. For example,\\n90° = PI/2 = 1.5707964. This function does not take into account the\\ncurrent <a href=\"#/p5/angleMode\">angleMode</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'radians',\n                params: [\n                  {\n                    name: 'degrees',\n                    description: '<p>the degree value to convert to radians</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'the converted angle',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class= “norender\\\">\\n<code>\\nlet deg = 45.0;\\nlet rad = radians(deg);\\nprint(deg + ' degrees is ' + rad + ' radians');\\n// Prints: 45 degrees is 0.7853981633974483 radians\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Trigonometry'\n              },\n              {\n                file: 'src/math/trigonometry.js',\n                line: 290,\n                description:\n                  '<p>Sets the current mode of p5 to given mode. Default mode is RADIANS.</p>\\n',\n                itemtype: 'method',\n                name: 'angleMode',\n                params: [\n                  {\n                    name: 'mode',\n                    description: '<p>either RADIANS or DEGREES</p>\\n',\n                    type: 'Constant'\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\nfunction draw() {\\n  background(204);\\n  angleMode(DEGREES); // Change the mode to DEGREES\\n  let a = atan2(mouseY - height / 2, mouseX - width / 2);\\n  translate(width / 2, height / 2);\\n  push();\\n  rotate(a);\\n  rect(-20, -5, 40, 10); // Larger rectangle is rotating in degrees\\n  pop();\\n  angleMode(RADIANS); // Change the mode to RADIANS\\n  rotate(a); // variable a stays the same\\n  rect(-40, -5, 20, 10); // Smaller rectangle is rotating in radians\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '40 by 10 rect in center rotates with mouse moves. 20 by 10 rect moves faster.',\n                class: 'p5',\n                module: 'Math',\n                submodule: 'Trigonometry'\n              },\n              {\n                file: 'src/typography/attributes.js',\n                line: 11,\n                description:\n                  '<p>Sets the current alignment for drawing text. Accepts two\\narguments: horizAlign (LEFT, CENTER, or RIGHT) and\\nvertAlign (TOP, BOTTOM, CENTER, or BASELINE).</p>\\n<p>The horizAlign parameter is in reference to the x value\\nof the <a href=\"#/p5/text\">text()</a> function, while the vertAlign parameter is\\nin reference to the y value.</p>\\n<p>So if you write textAlign(LEFT), you are aligning the left\\nedge of your text to the x value you give in <a href=\"#/p5/text\">text()</a>. If you\\nwrite textAlign(RIGHT, TOP), you are aligning the right edge\\nof your text to the x value and the top of edge of the text\\nto the y value.</p>\\n',\n                itemtype: 'method',\n                name: 'textAlign',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\ntextSize(16);\\ntextAlign(RIGHT);\\ntext('ABCD', 50, 30);\\ntextAlign(CENTER);\\ntext('EFGH', 50, 50);\\ntextAlign(LEFT);\\ntext('IJKL', 50, 70);\\n</code>\\n</div>\\n\\n<div>\\n<code>\\ntextSize(16);\\nstrokeWeight(0.5);\\n\\nline(0, 12, width, 12);\\ntextAlign(CENTER, TOP);\\ntext('TOP', 0, 12, width);\\n\\nline(0, 37, width, 37);\\ntextAlign(CENTER, CENTER);\\ntext('CENTER', 0, 37, width);\\n\\nline(0, 62, width, 62);\\ntextAlign(CENTER, BASELINE);\\ntext('BASELINE', 0, 62, width);\\n\\nline(0, 87, width, 87);\\ntextAlign(CENTER, BOTTOM);\\ntext('BOTTOM', 0, 87, width);\\n</code>\\n</div>\"\n                ],\n                alt:\n                  \"Letters ABCD displayed at top right, EFGH at center and IJKL at bottom left.\\nThe names of the four vertical alignments rendered each showing that alignment's placement relative to a horizontal line.\",\n                class: 'p5',\n                module: 'Typography',\n                submodule: 'Attributes',\n                overloads: [\n                  {\n                    line: 11,\n                    params: [\n                      {\n                        name: 'horizAlign',\n                        description:\n                          '<p>horizontal alignment, either LEFT,\\n                           CENTER, or RIGHT</p>\\n',\n                        type: 'Constant'\n                      },\n                      {\n                        name: 'vertAlign',\n                        description:\n                          '<p>vertical alignment, either TOP,\\n                           BOTTOM, CENTER, or BASELINE</p>\\n',\n                        type: 'Constant',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 73,\n                    params: [],\n                    return: {\n                      description: '',\n                      type: 'Object'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/typography/attributes.js',\n                line: 82,\n                description:\n                  '<p>Sets/gets the spacing, in pixels, between lines of text. This\\nsetting will be used in all subsequent calls to the <a href=\"#/p5/text\">text()</a> function.</p>\\n',\n                itemtype: 'method',\n                name: 'textLeading',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// Text to display. The \"\\\\n\" is a \"new line\" character\\nlet lines = \\'L1\\\\nL2\\\\nL3\\';\\ntextSize(12);\\n\\ntextLeading(10); // Set leading to 10\\ntext(lines, 10, 25);\\n\\ntextLeading(20); // Set leading to 20\\ntext(lines, 40, 25);\\n\\ntextLeading(30); // Set leading to 30\\ntext(lines, 70, 25);\\n</code>\\n</div>'\n                ],\n                alt:\n                  'set L1 L2 & L3 displayed vertically 3 times. spacing increases for each set',\n                class: 'p5',\n                module: 'Typography',\n                submodule: 'Attributes',\n                overloads: [\n                  {\n                    line: 82,\n                    params: [\n                      {\n                        name: 'leading',\n                        description:\n                          '<p>the size in pixels for spacing between lines</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 111,\n                    params: [],\n                    return: {\n                      description: '',\n                      type: 'Number'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/typography/attributes.js',\n                line: 120,\n                description:\n                  '<p>Sets/gets the current font size. This size will be used in all subsequent\\ncalls to the <a href=\"#/p5/text\">text()</a> function. Font size is measured in pixels.</p>\\n',\n                itemtype: 'method',\n                name: 'textSize',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\ntextSize(12);\\ntext('Font Size 12', 10, 30);\\ntextSize(14);\\ntext('Font Size 14', 10, 60);\\ntextSize(16);\\ntext('Font Size 16', 10, 90);\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'Font Size 12 displayed small, Font Size 14 medium & Font Size 16 large',\n                class: 'p5',\n                module: 'Typography',\n                submodule: 'Attributes',\n                overloads: [\n                  {\n                    line: 120,\n                    params: [\n                      {\n                        name: 'theSize',\n                        description: '<p>the size of the letters in units of pixels</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 143,\n                    params: [],\n                    return: {\n                      description: '',\n                      type: 'Number'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/typography/attributes.js',\n                line: 152,\n                description:\n                  '<p>Sets/gets the style of the text for system fonts to NORMAL, ITALIC, BOLD or BOLDITALIC.\\nNote: this may be is overridden by CSS styling. For non-system fonts\\n(opentype, truetype, etc.) please load styled fonts instead.</p>\\n',\n                itemtype: 'method',\n                name: 'textStyle',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\nstrokeWeight(0);\\ntextSize(12);\\ntextStyle(NORMAL);\\ntext('Font Style Normal', 10, 15);\\ntextStyle(ITALIC);\\ntext('Font Style Italic', 10, 40);\\ntextStyle(BOLD);\\ntext('Font Style Bold', 10, 65);\\ntextStyle(BOLDITALIC);\\ntext('Font Style Bold Italic', 10, 90);\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'words Font Style Normal displayed normally, Italic in italic, bold in bold and bold italic in bold italics.',\n                class: 'p5',\n                module: 'Typography',\n                submodule: 'Attributes',\n                overloads: [\n                  {\n                    line: 152,\n                    params: [\n                      {\n                        name: 'theStyle',\n                        description:\n                          '<p>styling for text, either NORMAL,\\n                           ITALIC, BOLD or BOLDITALIC</p>\\n',\n                        type: 'Constant'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 180,\n                    params: [],\n                    return: {\n                      description: '',\n                      type: 'String'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/typography/attributes.js',\n                line: 189,\n                description:\n                  '<p>Calculates and returns the width of any character or text string.</p>\\n',\n                itemtype: 'method',\n                name: 'textWidth',\n                params: [\n                  {\n                    name: 'theText',\n                    description: '<p>the String of characters to measure</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\ntextSize(28);\\n\\nlet aChar = 'P';\\nlet cWidth = textWidth(aChar);\\ntext(aChar, 0, 40);\\nline(cWidth, 0, cWidth, 50);\\n\\nlet aString = 'p5.js';\\nlet sWidth = textWidth(aString);\\ntext(aString, 0, 85);\\nline(sWidth, 50, sWidth, 100);\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'Letter P and p5.js are displayed with vertical lines at end. P is wide',\n                class: 'p5',\n                module: 'Typography',\n                submodule: 'Attributes'\n              },\n              {\n                file: 'src/typography/attributes.js',\n                line: 225,\n                description:\n                  '<p>Returns the ascent of the current font at its current size. The ascent\\nrepresents the distance, in pixels, of the tallest character above\\nthe baseline.</p>\\n',\n                itemtype: 'method',\n                name: 'textAscent',\n                return: {\n                  description: '',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet base = height * 0.75;\\nlet scalar = 0.8; // Different for each font\\n\\ntextSize(32); // Set initial text size\\nlet asc = textAscent() * scalar; // Calc ascent\\nline(0, base - asc, width, base - asc);\\ntext('dp', 0, base); // Draw text on baseline\\n\\ntextSize(64); // Increase text size\\nasc = textAscent() * scalar; // Recalc ascent\\nline(40, base - asc, width, base - asc);\\ntext('dp', 40, base); // Draw text on baseline\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Typography',\n                submodule: 'Attributes'\n              },\n              {\n                file: 'src/typography/attributes.js',\n                line: 254,\n                description:\n                  '<p>Returns the descent of the current font at its current size. The descent\\nrepresents the distance, in pixels, of the character with the longest\\ndescender below the baseline.</p>\\n',\n                itemtype: 'method',\n                name: 'textDescent',\n                return: {\n                  description: '',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet base = height * 0.75;\\nlet scalar = 0.8; // Different for each font\\n\\ntextSize(32); // Set initial text size\\nlet desc = textDescent() * scalar; // Calc ascent\\nline(0, base + desc, width, base + desc);\\ntext('dp', 0, base); // Draw text on baseline\\n\\ntextSize(64); // Increase text size\\ndesc = textDescent() * scalar; // Recalc ascent\\nline(40, base + desc, width, base + desc);\\ntext('dp', 40, base); // Draw text on baseline\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Typography',\n                submodule: 'Attributes'\n              },\n              {\n                file: 'src/typography/attributes.js',\n                line: 283,\n                description: '<p>Helper function to measure ascent and descent.</p>\\n',\n                class: 'p5',\n                module: 'Typography',\n                submodule: 'Attributes'\n              },\n              {\n                file: 'src/typography/loading_displaying.js',\n                line: 14,\n                description:\n                  '<p>Loads an opentype font file (.otf, .ttf) from a file or a URL,\\nand returns a PFont Object. This method is asynchronous,\\nmeaning it may not finish before the next line in your sketch\\nis executed.\\n<br><br>\\nThe path to the font should be relative to the HTML file\\nthat links in your sketch. Loading fonts from a URL or other\\nremote location may be blocked due to your browser&#39;s built-in\\nsecurity.</p>\\n',\n                itemtype: 'method',\n                name: 'loadFont',\n                params: [\n                  {\n                    name: 'path',\n                    description: '<p>name of the file or url to load</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>function to be executed after\\n                                   <a href=\"#/p5/loadFont\">loadFont()</a> completes</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'onError',\n                    description:\n                      '<p>function to be executed if\\n                                   an error occurs</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: '<a href=\"#/p5.Font\">p5.Font</a> object',\n                  type: 'p5.Font'\n                },\n                example: [\n                  \"\\n\\n<p>Calling loadFont() inside <a href=\\\"#/p5/preload\\\">preload()</a> guarantees that the load\\noperation will have completed before <a href=\\\"#/p5/setup\\\">setup()</a> and <a href=\\\"#/p5/draw\\\">draw()</a> are called.</p>\\n\\n<div><code>\\nlet myFont;\\nfunction preload() {\\n  myFont = loadFont('assets/inconsolata.otf');\\n}\\n\\nfunction setup() {\\n  fill('#ED225D');\\n  textFont(myFont);\\n  textSize(36);\\n  text('p5*js', 10, 50);\\n}\\n</code></div>\\n\\nOutside of <a href=\\\"#/p5/preload\\\">preload()</a>, you may supply a callback function to handle the\\nobject:\\n\\n<div><code>\\nfunction setup() {\\n  loadFont('assets/inconsolata.otf', drawText);\\n}\\n\\nfunction drawText(font) {\\n  fill('#ED225D');\\n  textFont(font, 36);\\n  text('p5*js', 10, 50);\\n}\\n</code></div>\\n\\n<p>You can also use the font filename string (without the file extension) to style other HTML\\nelements.</p>\\n\\n<div><code>\\nfunction preload() {\\n  loadFont('assets/inconsolata.otf');\\n}\\n\\nfunction setup() {\\n  let myDiv = createDiv('hello there');\\n  myDiv.style('font-family', 'Inconsolata');\\n}\\n</code></div>\"\n                ],\n                alt: \"p5*js in p5's theme dark pink\\np5*js in p5's theme dark pink\",\n                class: 'p5',\n                module: 'Typography',\n                submodule: 'Loading & Displaying'\n              },\n              {\n                file: 'src/typography/loading_displaying.js',\n                line: 138,\n                description:\n                  '<p>Draws text to the screen. Displays the information specified in the first\\nparameter on the screen in the position specified by the additional\\nparameters. A default font will be used unless a font is set with the\\n<a href=\"#/p5/textFont\">textFont()</a> function and a default size will be used unless a font is set\\nwith <a href=\"#/p5/textSize\">textSize()</a>. Change the color of the text with the <a href=\"#/p5/fill\">fill()</a> function.\\nChange the outline of the text with the <a href=\"#/p5/stroke\">stroke()</a> and <a href=\"#/p5/strokeWeight\">strokeWeight()</a>\\nfunctions.\\n<br><br>\\nThe text displays in relation to the <a href=\"#/p5/textAlign\">textAlign()</a> function, which gives the\\noption to draw to the left, right, and center of the coordinates.\\n<br><br>\\nThe x2 and y2 parameters define a rectangular area to display within and\\nmay only be used with string data. When these parameters are specified,\\nthey are interpreted based on the current <a href=\"#/p5/rectMode\">rectMode()</a> setting. Text that\\ndoes not fit completely within the rectangle specified will not be drawn\\nto the screen. If x2 and y2 are not specified, the baseline alignment is the\\ndefault, which means that the text will be drawn upwards from x and y.\\n<br><br>\\n<b>WEBGL</b>: Only opentype/truetype fonts are supported. You must load a font using the\\n<a href=\"#/p5/loadFont\">loadFont()</a> method (see the example above).\\n<a href=\"#/p5/stroke\">stroke()</a> currently has no effect in webgl mode.</p>\\n',\n                itemtype: 'method',\n                name: 'text',\n                params: [\n                  {\n                    name: 'str',\n                    description:\n                      '<p>the alphanumeric\\n                                            symbols to be displayed</p>\\n',\n                    type: 'String|Object|Array|Number|Boolean'\n                  },\n                  {\n                    name: 'x',\n                    description: '<p>x-coordinate of text</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y-coordinate of text</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'x2',\n                    description:\n                      '<p>by default, the width of the text box,\\n                    see <a href=\"#/p5/rectMode\">rectMode()</a> for more info</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'y2',\n                    description:\n                      '<p>by default, the height of the text box,\\n                    see <a href=\"#/p5/rectMode\">rectMode()</a> for more info</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\ntextSize(32);\\ntext('word', 10, 30);\\nfill(0, 102, 153);\\ntext('word', 10, 60);\\nfill(0, 102, 153, 51);\\ntext('word', 10, 90);\\n</code>\\n</div>\\n<div>\\n<code>\\nlet s = 'The quick brown fox jumped over the lazy dog.';\\nfill(50);\\ntext(s, 10, 10, 70, 80); // Text wraps within text box\\n</code>\\n</div>\\n\\n<div modernizr='webgl'>\\n<code>\\nlet inconsolata;\\nfunction preload() {\\n  inconsolata = loadFont('assets/inconsolata.otf');\\n}\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  textFont(inconsolata);\\n  textSize(width / 3);\\n  textAlign(CENTER, CENTER);\\n}\\nfunction draw() {\\n  background(0);\\n  let time = millis();\\n  rotateX(time / 1000);\\n  rotateZ(time / 1234);\\n  text('p5.js', 0, 0);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  \"'word' displayed 3 times going from black, blue to translucent blue\\nThe quick brown fox jumped over the lazy dog.\\nthe text 'p5.js' spinning in 3d\",\n                class: 'p5',\n                module: 'Typography',\n                submodule: 'Loading & Displaying'\n              },\n              {\n                file: 'src/typography/loading_displaying.js',\n                line: 225,\n                description:\n                  '<p>Sets the current font that will be drawn with the <a href=\"#/p5/text\">text()</a> function.\\n<br><br>\\n<b>WEBGL</b>: Only fonts loaded via <a href=\"#/p5/loadFont\">loadFont()</a> are supported.</p>\\n',\n                itemtype: 'method',\n                name: 'textFont',\n                return: {\n                  description: 'the current font',\n                  type: 'Object'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nfill(0);\\ntextSize(12);\\ntextFont('Georgia');\\ntext('Georgia', 12, 30);\\ntextFont('Helvetica');\\ntext('Helvetica', 12, 60);\\n</code>\\n</div>\\n<div>\\n<code>\\nlet fontRegular, fontItalic, fontBold;\\nfunction preload() {\\n  fontRegular = loadFont('assets/Regular.otf');\\n  fontItalic = loadFont('assets/Italic.ttf');\\n  fontBold = loadFont('assets/Bold.ttf');\\n}\\nfunction setup() {\\n  background(210);\\n  fill(0)\\n   .strokeWeight(0)\\n   .textSize(10);\\n  textFont(fontRegular);\\n  text('Font Style Normal', 10, 30);\\n  textFont(fontItalic);\\n  text('Font Style Italic', 10, 50);\\n  textFont(fontBold);\\n  text('Font Style Bold', 10, 70);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'words Font Style Normal displayed normally, Italic in italic and bold in bold',\n                class: 'p5',\n                module: 'Typography',\n                submodule: 'Loading & Displaying',\n                overloads: [\n                  {\n                    line: 225,\n                    params: [],\n                    return: {\n                      description: 'the current font',\n                      type: 'Object'\n                    }\n                  },\n                  {\n                    line: 270,\n                    params: [\n                      {\n                        name: 'font',\n                        description:\n                          '<p>a font loaded via <a href=\"#/p5/loadFont\">loadFont()</a>, or a String\\nrepresenting a <a href=\"https://mzl.la/2dOw8WD\">web safe font</a> (a font\\nthat is generally available across all systems)</p>\\n',\n                        type: 'Object|String'\n                      },\n                      {\n                        name: 'size',\n                        description: '<p>the font size to use</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/typography/p5.Font.js',\n                line: 24,\n                description: '<p>Underlying opentype font implementation</p>\\n',\n                itemtype: 'property',\n                name: 'font',\n                class: 'p5.Font',\n                module: 'Typography',\n                submodule: 'Loading & Displaying'\n              },\n              {\n                file: 'src/typography/p5.Font.js',\n                line: 31,\n                description:\n                  '<p>Returns a tight bounding box for the given text string using this\\nfont (currently only supports single lines)</p>\\n',\n                itemtype: 'method',\n                name: 'textBounds',\n                params: [\n                  {\n                    name: 'line',\n                    description: '<p>a line of text</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'x',\n                    description: '<p>x-position</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y-position</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'fontSize',\n                    description: '<p>font size to use (optional) Default is 12.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'options',\n                    description:\n                      '<p>opentype options (optional)\\n                           opentype fonts contains alignment and baseline options.\\n                           Default is &#39;LEFT&#39; and &#39;alphabetic&#39;</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'a rectangle object with properties: x, y, w, h',\n                  type: 'Object'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet font;\\nlet textString = 'Lorem ipsum dolor sit amet.';\\nfunction preload() {\\n  font = loadFont('./assets/Regular.otf');\\n}\\nfunction setup() {\\n  background(210);\\n\\n  let bbox = font.textBounds(textString, 10, 30, 12);\\n  fill(255);\\n  stroke(0);\\n  rect(bbox.x, bbox.y, bbox.w, bbox.h);\\n  fill(0);\\n  noStroke();\\n\\n  textFont(font);\\n  textSize(12);\\n  text(textString, 10, 30);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'words Lorem ipsum dol go off canvas and contained by white bounding box',\n                class: 'p5.Font',\n                module: 'Typography',\n                submodule: 'Loading & Displaying'\n              },\n              {\n                file: 'src/typography/p5.Font.js',\n                line: 155,\n                description:\n                  '<p>Computes an array of points following the path for specified text</p>\\n',\n                itemtype: 'method',\n                name: 'textToPoints',\n                params: [\n                  {\n                    name: 'txt',\n                    description: '<p>a line of text</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'x',\n                    description: '<p>x-position</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y-position</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'fontSize',\n                    description: '<p>font size to use (optional)</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'options',\n                    description:\n                      '<p>an (optional) object that can contain:</p>\\n<p><br>sampleFactor - the ratio of path-length to number of samples\\n(default=.1); higher values yield more points and are therefore\\nmore precise</p>\\n<p><br>simplifyThreshold - if set to a non-zero value, collinear points will be\\nbe removed from the polygon; the value represents the threshold angle to use\\nwhen determining whether two edges are collinear</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'an array of points, each with x, y, alpha (the path angle)',\n                  type: 'Array'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet font;\\nfunction preload() {\\n  font = loadFont('assets/inconsolata.otf');\\n}\\n\\nlet points;\\nlet bounds;\\nfunction setup() {\\n  createCanvas(100, 100);\\n  stroke(0);\\n  fill(255, 104, 204);\\n\\n  points = font.textToPoints('p5', 0, 0, 10, {\\n    sampleFactor: 5,\\n    simplifyThreshold: 0\\n  });\\n  bounds = font.textBounds(' p5 ', 0, 0, 10);\\n}\\n\\nfunction draw() {\\n  background(255);\\n  beginShape();\\n  translate(-bounds.x * width / bounds.w, -bounds.y * height / bounds.h);\\n  for (let i = 0; i < points.length; i++) {\\n    let p = points[i];\\n    vertex(\\n      p.x * width / bounds.w +\\n        sin(20 * p.y / bounds.h + millis() / 1000) * width / 30,\\n      p.y * height / bounds.h\\n    );\\n  }\\n  endShape(CLOSE);\\n}\\n</code>\\n</div>\\n\"\n                ],\n                class: 'p5.Font',\n                module: 'Typography',\n                submodule: 'Loading & Displaying'\n              },\n              {\n                file: 'src/utilities/array_functions.js',\n                line: 10,\n                description:\n                  '<p>Adds a value to the end of an array. Extends the length of\\nthe array by one. Maps to Array.push().</p>\\n',\n                itemtype: 'method',\n                name: 'append',\n                deprecated: true,\n                deprecationMessage:\n                  'Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push\">array.push(value)</a> instead.',\n                params: [\n                  {\n                    name: 'array',\n                    description: '<p>Array to append</p>\\n',\n                    type: 'Array'\n                  },\n                  {\n                    name: 'value',\n                    description: '<p>to be added to the Array</p>\\n',\n                    type: 'Any'\n                  }\n                ],\n                return: {\n                  description: 'the array that was appended to',\n                  type: 'Array'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nfunction setup() {\\n  let myArray = ['Mango', 'Apple', 'Papaya'];\\n  print(myArray); // ['Mango', 'Apple', 'Papaya']\\n\\n  append(myArray, 'Peach');\\n  print(myArray); // ['Mango', 'Apple', 'Papaya', 'Peach']\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Array Functions'\n              },\n              {\n                file: 'src/utilities/array_functions.js',\n                line: 35,\n                description:\n                  '<p>Copies an array (or part of an array) to another array. The src array is\\ncopied to the dst array, beginning at the position specified by\\nsrcPosition and into the position specified by dstPosition. The number of\\nelements to copy is determined by length. Note that copying values\\noverwrites existing values in the destination array. To append values\\ninstead of overwriting them, use <a href=\"#/p5/concat\">concat()</a>.\\n<br><br>\\nThe simplified version with only two arguments, arrayCopy(src, dst),\\ncopies an entire array to another of the same size. It is equivalent to\\narrayCopy(src, 0, dst, 0, src.length).\\n<br><br>\\nUsing this function is far more efficient for copying array data than\\niterating through a for() loop and copying each element individually.</p>\\n',\n                itemtype: 'method',\n                name: 'arrayCopy',\n                deprecated: true,\n                example: [\n                  \"\\n<div class='norender'><code>\\nlet src = ['A', 'B', 'C'];\\nlet dst = [1, 2, 3];\\nlet srcPosition = 1;\\nlet dstPosition = 0;\\nlet length = 2;\\n\\nprint(src); // ['A', 'B', 'C']\\nprint(dst); // [ 1 ,  2 ,  3 ]\\n\\narrayCopy(src, srcPosition, dst, dstPosition, length);\\nprint(dst); // ['B', 'C', 3]\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Array Functions',\n                overloads: [\n                  {\n                    line: 35,\n                    params: [\n                      {\n                        name: 'src',\n                        description: '<p>the source Array</p>\\n',\n                        type: 'Array'\n                      },\n                      {\n                        name: 'srcPosition',\n                        description: '<p>starting position in the source Array</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'dst',\n                        description: '<p>the destination Array</p>\\n',\n                        type: 'Array'\n                      },\n                      {\n                        name: 'dstPosition',\n                        description: '<p>starting position in the destination Array</p>\\n',\n                        type: 'Integer'\n                      },\n                      {\n                        name: 'length',\n                        description: '<p>number of Array elements to be copied</p>\\n',\n                        type: 'Integer'\n                      }\n                    ]\n                  },\n                  {\n                    line: 73,\n                    params: [\n                      {\n                        name: 'src',\n                        description: '',\n                        type: 'Array'\n                      },\n                      {\n                        name: 'dst',\n                        description: '',\n                        type: 'Array'\n                      },\n                      {\n                        name: 'length',\n                        description: '',\n                        type: 'Integer',\n                        optional: true\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/utilities/array_functions.js',\n                line: 112,\n                description:\n                  '<p>Concatenates two arrays, maps to Array.concat(). Does not modify the\\ninput arrays.</p>\\n',\n                itemtype: 'method',\n                name: 'concat',\n                deprecated: true,\n                deprecationMessage:\n                  'Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat\">arr1.concat(arr2)</a> instead.',\n                params: [\n                  {\n                    name: 'a',\n                    description: '<p>first Array to concatenate</p>\\n',\n                    type: 'Array'\n                  },\n                  {\n                    name: 'b',\n                    description: '<p>second Array to concatenate</p>\\n',\n                    type: 'Array'\n                  }\n                ],\n                return: {\n                  description: 'concatenated array',\n                  type: 'Array'\n                },\n                example: [\n                  \"\\n<div class = 'norender'><code>\\nfunction setup() {\\n  let arr1 = ['A', 'B', 'C'];\\n  let arr2 = [1, 2, 3];\\n\\n  print(arr1); // ['A','B','C']\\n  print(arr2); // [1,2,3]\\n\\n  let arr3 = concat(arr1, arr2);\\n\\n  print(arr1); // ['A','B','C']\\n  print(arr2); // [1, 2, 3]\\n  print(arr3); // ['A','B','C', 1, 2, 3]\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Array Functions'\n              },\n              {\n                file: 'src/utilities/array_functions.js',\n                line: 141,\n                description:\n                  '<p>Reverses the order of an array, maps to Array.reverse()</p>\\n',\n                itemtype: 'method',\n                name: 'reverse',\n                deprecated: true,\n                deprecationMessage:\n                  'Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse\">array.reverse()</a> instead.',\n                params: [\n                  {\n                    name: 'list',\n                    description: '<p>Array to reverse</p>\\n',\n                    type: 'Array'\n                  }\n                ],\n                return: {\n                  description: 'the reversed list',\n                  type: 'Array'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nfunction setup() {\\n  let myArray = ['A', 'B', 'C'];\\n  print(myArray); // ['A','B','C']\\n\\n  reverse(myArray);\\n  print(myArray); // ['C','B','A']\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Array Functions'\n              },\n              {\n                file: 'src/utilities/array_functions.js',\n                line: 161,\n                description:\n                  '<p>Decreases an array by one element and returns the shortened array,\\nmaps to Array.pop().</p>\\n',\n                itemtype: 'method',\n                name: 'shorten',\n                deprecated: true,\n                deprecationMessage:\n                  'Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop\">array.pop()</a> instead.',\n                params: [\n                  {\n                    name: 'list',\n                    description: '<p>Array to shorten</p>\\n',\n                    type: 'Array'\n                  }\n                ],\n                return: {\n                  description: 'shortened Array',\n                  type: 'Array'\n                },\n                example: [\n                  \"\\n<div class = 'norender'><code>\\nfunction setup() {\\n  let myArray = ['A', 'B', 'C'];\\n  print(myArray); // ['A', 'B', 'C']\\n  let newArray = shorten(myArray);\\n  print(myArray); // ['A','B','C']\\n  print(newArray); // ['A','B']\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Array Functions'\n              },\n              {\n                file: 'src/utilities/array_functions.js',\n                line: 185,\n                description:\n                  \"<p>Randomizes the order of the elements of an array. Implements\\n<a href='http://Bost.Ocks.org/mike/shuffle/' target=_blank>\\nFisher-Yates Shuffle Algorithm</a>.</p>\\n\",\n                itemtype: 'method',\n                name: 'shuffle',\n                params: [\n                  {\n                    name: 'array',\n                    description: '<p>Array to shuffle</p>\\n',\n                    type: 'Array'\n                  },\n                  {\n                    name: 'bool',\n                    description: '<p>modify passed array</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'shuffled Array',\n                  type: 'Array'\n                },\n                example: [\n                  \"\\n<div><code>\\nfunction setup() {\\n  let regularArr = ['ABC', 'def', createVector(), TAU, Math.E];\\n  print(regularArr);\\n  shuffle(regularArr, true); // force modifications to passed array\\n  print(regularArr);\\n\\n  // By default shuffle() returns a shuffled cloned array:\\n  let newArr = shuffle(regularArr);\\n  print(regularArr);\\n  print(newArr);\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Array Functions'\n              },\n              {\n                file: 'src/utilities/array_functions.js',\n                line: 227,\n                description:\n                  '<p>Sorts an array of numbers from smallest to largest, or puts an array of\\nwords in alphabetical order. The original array is not modified; a\\nre-ordered array is returned. The count parameter states the number of\\nelements to sort. For example, if there are 12 elements in an array and\\ncount is set to 5, only the first 5 elements in the array will be sorted.</p>\\n',\n                itemtype: 'method',\n                name: 'sort',\n                deprecated: true,\n                deprecationMessage:\n                  'Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort\">array.sort()</a> instead.',\n                params: [\n                  {\n                    name: 'list',\n                    description: '<p>Array to sort</p>\\n',\n                    type: 'Array'\n                  },\n                  {\n                    name: 'count',\n                    description: '<p>number of elements to sort, starting from 0</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'the sorted list',\n                  type: 'Array'\n                },\n                example: [\n                  \"\\n<div class = 'norender'><code>\\nfunction setup() {\\n  let words = ['banana', 'apple', 'pear', 'lime'];\\n  print(words); // ['banana', 'apple', 'pear', 'lime']\\n  let count = 4; // length of array\\n\\n  words = sort(words, count);\\n  print(words); // ['apple', 'banana', 'lime', 'pear']\\n}\\n</code></div>\\n<div class = 'norender'><code>\\nfunction setup() {\\n  let numbers = [2, 6, 1, 5, 14, 9, 8, 12];\\n  print(numbers); // [2, 6, 1, 5, 14, 9, 8, 12]\\n  let count = 5; // Less than the length of the array\\n\\n  numbers = sort(numbers, count);\\n  print(numbers); // [1,2,5,6,14,9,8,12]\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Array Functions'\n              },\n              {\n                file: 'src/utilities/array_functions.js',\n                line: 273,\n                description:\n                  '<p>Inserts a value or an array of values into an existing array. The first\\nparameter specifies the initial array to be modified, and the second\\nparameter defines the data to be inserted. The third parameter is an index\\nvalue which specifies the array position from which to insert data.\\n(Remember that array index numbering starts at zero, so the first position\\nis 0, the second position is 1, and so on.)</p>\\n',\n                itemtype: 'method',\n                name: 'splice',\n                deprecated: true,\n                deprecationMessage:\n                  'Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice\">array.splice()</a> instead.',\n                params: [\n                  {\n                    name: 'list',\n                    description: '<p>Array to splice into</p>\\n',\n                    type: 'Array'\n                  },\n                  {\n                    name: 'value',\n                    description: '<p>value to be spliced in</p>\\n',\n                    type: 'Any'\n                  },\n                  {\n                    name: 'position',\n                    description: '<p>in the array from which to insert data</p>\\n',\n                    type: 'Integer'\n                  }\n                ],\n                return: {\n                  description: 'the list',\n                  type: 'Array'\n                },\n                example: [\n                  \"\\n<div class = 'norender'><code>\\nfunction setup() {\\n  let myArray = [0, 1, 2, 3, 4];\\n  let insArray = ['A', 'B', 'C'];\\n  print(myArray); // [0, 1, 2, 3, 4]\\n  print(insArray); // ['A','B','C']\\n\\n  splice(myArray, insArray, 3);\\n  print(myArray); // [0,1,2,'A','B','C',3,4]\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Array Functions'\n              },\n              {\n                file: 'src/utilities/array_functions.js',\n                line: 308,\n                description:\n                  '<p>Extracts an array of elements from an existing array. The list parameter\\ndefines the array from which the elements will be copied, and the start\\nand count parameters specify which elements to extract. If no count is\\ngiven, elements will be extracted from the start to the end of the array.\\nWhen specifying the start, remember that the first array element is 0.\\nThis function does not change the source array.</p>\\n',\n                itemtype: 'method',\n                name: 'subset',\n                deprecated: true,\n                deprecationMessage:\n                  'Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice\">array.slice()</a> instead.',\n                params: [\n                  {\n                    name: 'list',\n                    description: '<p>Array to extract from</p>\\n',\n                    type: 'Array'\n                  },\n                  {\n                    name: 'start',\n                    description: '<p>position to begin</p>\\n',\n                    type: 'Integer'\n                  },\n                  {\n                    name: 'count',\n                    description: '<p>number of values to extract</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'Array of extracted elements',\n                  type: 'Array'\n                },\n                example: [\n                  \"\\n<div class = 'norender'><code>\\nfunction setup() {\\n  let myArray = [1, 2, 3, 4, 5];\\n  print(myArray); // [1, 2, 3, 4, 5]\\n\\n  let sub1 = subset(myArray, 0, 3);\\n  let sub2 = subset(myArray, 2, 2);\\n  print(sub1); // [1,2,3]\\n  print(sub2); // [3,4]\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Array Functions'\n              },\n              {\n                file: 'src/utilities/conversion.js',\n                line: 10,\n                description:\n                  '<p>Converts a string to its floating point representation. The contents of a\\nstring must resemble a number, or NaN (not a number) will be returned.\\nFor example, float(&quot;1234.56&quot;) evaluates to 1234.56, but float(&quot;giraffe&quot;)\\nwill return NaN.</p>\\n<p>When an array of values is passed in, then an array of floats of the same\\nlength is returned.</p>\\n',\n                itemtype: 'method',\n                name: 'float',\n                params: [\n                  {\n                    name: 'str',\n                    description: '<p>float string to parse</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                return: {\n                  description: 'floating point representation of string',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet str = '20';\\nlet diameter = float(str);\\nellipse(width / 2, height / 2, diameter, diameter);\\n</code></div>\\n<div class='norender'><code>\\nprint(float('10.31')); // 10.31\\nprint(float('Infinity')); // Infinity\\nprint(float('-Infinity')); // -Infinity\\n</code></div>\"\n                ],\n                alt: '20 by 20 white ellipse in the center of the canvas',\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Conversion'\n              },\n              {\n                file: 'src/utilities/conversion.js',\n                line: 45,\n                description:\n                  '<p>Converts a boolean, string, or float to its integer representation.\\nWhen an array of values is passed in, then an int array of the same length\\nis returned.</p>\\n',\n                itemtype: 'method',\n                name: 'int',\n                return: {\n                  description: 'integer representation of value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nprint(int('10')); // 10\\nprint(int(10.31)); // 10\\nprint(int(-10)); // -10\\nprint(int(true)); // 1\\nprint(int(false)); // 0\\nprint(int([false, true, '10.3', 9.8])); // [0, 1, 10, 9]\\nprint(int(Infinity)); // Infinity\\nprint(int('-Infinity')); // -Infinity\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Conversion',\n                overloads: [\n                  {\n                    line: 45,\n                    params: [\n                      {\n                        name: 'n',\n                        description: '<p>value to parse</p>\\n',\n                        type: 'String|Boolean|Number'\n                      },\n                      {\n                        name: 'radix',\n                        description: '<p>the radix to convert to (default: 10)</p>\\n',\n                        type: 'Integer',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'integer representation of value',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 67,\n                    params: [\n                      {\n                        name: 'ns',\n                        description: '<p>values to parse</p>\\n',\n                        type: 'Array'\n                      }\n                    ],\n                    return: {\n                      description: 'integer representation of values',\n                      type: 'Number[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/utilities/conversion.js',\n                line: 88,\n                description:\n                  '<p>Converts a boolean, string or number to its string representation.\\nWhen an array of values is passed in, then an array of strings of the same\\nlength is returned.</p>\\n',\n                itemtype: 'method',\n                name: 'str',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>value to parse</p>\\n',\n                    type: 'String|Boolean|Number|Array'\n                  }\n                ],\n                return: {\n                  description: 'string representation of value',\n                  type: 'String'\n                },\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\nprint(str(\\'10\\')); // \"10\"\\nprint(str(10.31)); // \"10.31\"\\nprint(str(-10)); // \"-10\"\\nprint(str(true)); // \"true\"\\nprint(str(false)); // \"false\"\\nprint(str([true, \\'10.3\\', 9.8])); // [ \"true\", \"10.3\", \"9.8\" ]\\n</code></div>'\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Conversion'\n              },\n              {\n                file: 'src/utilities/conversion.js',\n                line: 114,\n                description:\n                  '<p>Converts a number or string to its boolean representation.\\nFor a number, any non-zero value (positive or negative) evaluates to true,\\nwhile zero evaluates to false. For a string, the value &quot;true&quot; evaluates to\\ntrue, while any other value evaluates to false. When an array of number or\\nstring values is passed in, then a array of booleans of the same length is\\nreturned.</p>\\n',\n                itemtype: 'method',\n                name: 'boolean',\n                params: [\n                  {\n                    name: 'n',\n                    description: '<p>value to parse</p>\\n',\n                    type: 'String|Boolean|Number|Array'\n                  }\n                ],\n                return: {\n                  description: 'boolean representation of value',\n                  type: 'Boolean'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nprint(boolean(0)); // false\\nprint(boolean(1)); // true\\nprint(boolean('true')); // true\\nprint(boolean('abcd')); // false\\nprint(boolean([0, 12, 'true'])); // [false, true, true]\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Conversion'\n              },\n              {\n                file: 'src/utilities/conversion.js',\n                line: 146,\n                description:\n                  '<p>Converts a number, string representation of a number, or boolean to its byte\\nrepresentation. A byte can be only a whole number between -128 and 127, so\\nwhen a value outside of this range is converted, it wraps around to the\\ncorresponding byte representation. When an array of number, string or boolean\\nvalues is passed in, then an array of bytes the same length is returned.</p>\\n',\n                itemtype: 'method',\n                name: 'byte',\n                return: {\n                  description: 'byte representation of value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nprint(byte(127)); // 127\\nprint(byte(128)); // -128\\nprint(byte(23.4)); // 23\\nprint(byte('23.4')); // 23\\nprint(byte('hello')); // NaN\\nprint(byte(true)); // 1\\nprint(byte([0, 255, '100'])); // [0, -1, 100]\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Conversion',\n                overloads: [\n                  {\n                    line: 146,\n                    params: [\n                      {\n                        name: 'n',\n                        description: '<p>value to parse</p>\\n',\n                        type: 'String|Boolean|Number'\n                      }\n                    ],\n                    return: {\n                      description: 'byte representation of value',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 168,\n                    params: [\n                      {\n                        name: 'ns',\n                        description: '<p>values to parse</p>\\n',\n                        type: 'Array'\n                      }\n                    ],\n                    return: {\n                      description: 'array of byte representation of values',\n                      type: 'Number[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/utilities/conversion.js',\n                line: 182,\n                description:\n                  '<p>Converts a number or string to its corresponding single-character\\nstring representation. If a string parameter is provided, it is first\\nparsed as an integer and then translated into a single-character string.\\nWhen an array of number or string values is passed in, then an array of\\nsingle-character strings of the same length is returned.</p>\\n',\n                itemtype: 'method',\n                name: 'char',\n                return: {\n                  description: 'string representation of value',\n                  type: 'String'\n                },\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\nprint(char(65)); // \"A\"\\nprint(char(\\'65\\')); // \"A\"\\nprint(char([65, 66, 67])); // [ \"A\", \"B\", \"C\" ]\\nprint(join(char([65, 66, 67]), \\'\\')); // \"ABC\"\\n</code></div>'\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Conversion',\n                overloads: [\n                  {\n                    line: 182,\n                    params: [\n                      {\n                        name: 'n',\n                        description: '<p>value to parse</p>\\n',\n                        type: 'String|Number'\n                      }\n                    ],\n                    return: {\n                      description: 'string representation of value',\n                      type: 'String'\n                    }\n                  },\n                  {\n                    line: 201,\n                    params: [\n                      {\n                        name: 'ns',\n                        description: '<p>values to parse</p>\\n',\n                        type: 'Array'\n                      }\n                    ],\n                    return: {\n                      description: 'array of string representation of values',\n                      type: 'String[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/utilities/conversion.js',\n                line: 216,\n                description:\n                  '<p>Converts a single-character string to its corresponding integer\\nrepresentation. When an array of single-character string values is passed\\nin, then an array of integers of the same length is returned.</p>\\n',\n                itemtype: 'method',\n                name: 'unchar',\n                return: {\n                  description: 'integer representation of value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nprint(unchar('A')); // 65\\nprint(unchar(['A', 'B', 'C'])); // [ 65, 66, 67 ]\\nprint(unchar(split('ABC', ''))); // [ 65, 66, 67 ]\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Conversion',\n                overloads: [\n                  {\n                    line: 216,\n                    params: [\n                      {\n                        name: 'n',\n                        description: '<p>value to parse</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    return: {\n                      description: 'integer representation of value',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 232,\n                    params: [\n                      {\n                        name: 'ns',\n                        description: '<p>values to parse</p>\\n',\n                        type: 'Array'\n                      }\n                    ],\n                    return: {\n                      description: 'integer representation of values',\n                      type: 'Number[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/utilities/conversion.js',\n                line: 245,\n                description:\n                  '<p>Converts a number to a string in its equivalent hexadecimal notation. If a\\nsecond parameter is passed, it is used to set the number of characters to\\ngenerate in the hexadecimal notation. When an array is passed in, an\\narray of strings in hexadecimal notation of the same length is returned.</p>\\n',\n                itemtype: 'method',\n                name: 'hex',\n                return: {\n                  description: 'hexadecimal string representation of value',\n                  type: 'String'\n                },\n                example: [\n                  '\\n<div class=\\'norender\\'><code>\\nprint(hex(255)); // \"000000FF\"\\nprint(hex(255, 6)); // \"0000FF\"\\nprint(hex([0, 127, 255], 6)); // [ \"000000\", \"00007F\", \"0000FF\" ]\\nprint(Infinity); // \"FFFFFFFF\"\\nprint(-Infinity); // \"00000000\"\\n</code></div>'\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Conversion',\n                overloads: [\n                  {\n                    line: 245,\n                    params: [\n                      {\n                        name: 'n',\n                        description: '<p>value to parse</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'digits',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'hexadecimal string representation of value',\n                      type: 'String'\n                    }\n                  },\n                  {\n                    line: 265,\n                    params: [\n                      {\n                        name: 'ns',\n                        description: '<p>array of values to parse</p>\\n',\n                        type: 'Number[]'\n                      },\n                      {\n                        name: 'digits',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'hexadecimal string representation of values',\n                      type: 'String[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/utilities/conversion.js',\n                line: 295,\n                description:\n                  '<p>Converts a string representation of a hexadecimal number to its equivalent\\ninteger value. When an array of strings in hexadecimal notation is passed\\nin, an array of integers of the same length is returned.</p>\\n',\n                itemtype: 'method',\n                name: 'unhex',\n                return: {\n                  description: 'integer representation of hexadecimal value',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div class='norender'><code>\\nprint(unhex('A')); // 10\\nprint(unhex('FF')); // 255\\nprint(unhex(['FF', 'AA', '00'])); // [ 255, 170, 0 ]\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'Conversion',\n                overloads: [\n                  {\n                    line: 295,\n                    params: [\n                      {\n                        name: 'n',\n                        description: '<p>value to parse</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    return: {\n                      description: 'integer representation of hexadecimal value',\n                      type: 'Number'\n                    }\n                  },\n                  {\n                    line: 311,\n                    params: [\n                      {\n                        name: 'ns',\n                        description: '<p>values to parse</p>\\n',\n                        type: 'Array'\n                      }\n                    ],\n                    return: {\n                      description: 'integer representations of hexadecimal value',\n                      type: 'Number[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/utilities/string_functions.js',\n                line: 13,\n                description:\n                  '<p>Combines an array of Strings into one String, each separated by the\\ncharacter(s) used for the separator parameter. To join arrays of ints or\\nfloats, it&#39;s necessary to first convert them to Strings using <a href=\"#/p5/nf\">nf()</a> or\\nnfs().</p>\\n',\n                itemtype: 'method',\n                name: 'join',\n                params: [\n                  {\n                    name: 'list',\n                    description: '<p>array of Strings to be joined</p>\\n',\n                    type: 'Array'\n                  },\n                  {\n                    name: 'separator',\n                    description: '<p>String to be placed between each item</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                return: {\n                  description: 'joined String',\n                  type: 'String'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet array = ['Hello', 'world!'];\\nlet separator = ' ';\\nlet message = join(array, separator);\\ntext(message, 5, 50);\\n</code>\\n</div>\"\n                ],\n                alt: '\"hello world!\" displayed middle left of canvas.',\n                class: 'p5',\n                module: 'Data',\n                submodule: 'String Functions'\n              },\n              {\n                file: 'src/utilities/string_functions.js',\n                line: 42,\n                description:\n                  '<p>This function is used to apply a regular expression to a piece of text,\\nand return matching groups (elements found inside parentheses) as a\\nString array. If there are no matches, a null value will be returned.\\nIf no groups are specified in the regular expression, but the sequence\\nmatches, an array of length 1 (with the matched text as the first element\\nof the array) will be returned.\\n<br><br>\\nTo use the function, first check to see if the result is null. If the\\nresult is null, then the sequence did not match at all. If the sequence\\ndid match, an array is returned.\\n<br><br>\\nIf there are groups (specified by sets of parentheses) in the regular\\nexpression, then the contents of each will be returned in the array.\\nElement [0] of a regular expression match returns the entire matching\\nstring, and the match groups start at element [1] (the first group is [1],\\nthe second [2], and so on).</p>\\n',\n                itemtype: 'method',\n                name: 'match',\n                params: [\n                  {\n                    name: 'str',\n                    description: '<p>the String to be searched</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'regexp',\n                    description: '<p>the regexp to be used for matching</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                return: {\n                  description: 'Array of Strings found',\n                  type: 'String[]'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet string = 'Hello p5js*!';\\nlet regexp = 'p5js\\\\\\\\*';\\nlet m = match(string, regexp);\\ntext(m, 5, 50);\\n</code>\\n</div>\"\n                ],\n                alt: '\"p5js*\" displayed middle left of canvas.',\n                class: 'p5',\n                module: 'Data',\n                submodule: 'String Functions'\n              },\n              {\n                file: 'src/utilities/string_functions.js',\n                line: 83,\n                description:\n                  '<p>This function is used to apply a regular expression to a piece of text,\\nand return a list of matching groups (elements found inside parentheses)\\nas a two-dimensional String array. If there are no matches, a null value\\nwill be returned. If no groups are specified in the regular expression,\\nbut the sequence matches, a two dimensional array is still returned, but\\nthe second dimension is only of length one.\\n<br><br>\\nTo use the function, first check to see if the result is null. If the\\nresult is null, then the sequence did not match at all. If the sequence\\ndid match, a 2D array is returned.\\n<br><br>\\nIf there are groups (specified by sets of parentheses) in the regular\\nexpression, then the contents of each will be returned in the array.\\nAssuming a loop with counter variable i, element [i][0] of a regular\\nexpression match returns the entire matching string, and the match groups\\nstart at element [i][1] (the first group is [i][1], the second [i][2],\\nand so on).</p>\\n',\n                itemtype: 'method',\n                name: 'matchAll',\n                params: [\n                  {\n                    name: 'str',\n                    description: '<p>the String to be searched</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'regexp',\n                    description: '<p>the regexp to be used for matching</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                return: {\n                  description: '2d Array of Strings found',\n                  type: 'String[]'\n                },\n                example: [\n                  \"\\n<div class=\\\"norender\\\">\\n<code>\\nlet string = 'Hello p5js*! Hello world!';\\nlet regexp = 'Hello';\\nmatchAll(string, regexp);\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'String Functions'\n              },\n              {\n                file: 'src/utilities/string_functions.js',\n                line: 130,\n                description:\n                  '<p>Utility function for formatting numbers into strings. There are two\\nversions: one for formatting floats, and one for formatting ints.\\nThe values for the digits, left, and right parameters should always\\nbe positive integers.\\n(NOTE): Be cautious when using left and right parameters as it prepends numbers of 0&#39;s if the parameter\\nif greater than the current length of the number.\\nFor example if number is 123.2 and left parameter passed is 4 which is greater than length of 123\\n(integer part) i.e 3 than result will be 0123.2. Same case for right parameter i.e. if right is 3 than\\nthe result will be 123.200.</p>\\n',\n                itemtype: 'method',\n                name: 'nf',\n                return: {\n                  description: 'formatted String',\n                  type: 'String'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet myFont;\\nfunction preload() {\\n  myFont = loadFont('assets/fonts/inconsolata.ttf');\\n}\\nfunction setup() {\\n  background(200);\\n  let num1 = 321;\\n  let num2 = -1321;\\n\\n  noStroke();\\n  fill(0);\\n  textFont(myFont);\\n  textSize(22);\\n\\n  text(nf(num1, 4, 2), 10, 30);\\n  text(nf(num2, 4, 2), 10, 80);\\n  // Draw dividing line\\n  stroke(120);\\n  line(0, 50, width, 50);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: '\"0321.00\" middle top, -1321.00\" middle bottom canvas',\n                class: 'p5',\n                module: 'Data',\n                submodule: 'String Functions',\n                overloads: [\n                  {\n                    line: 130,\n                    params: [\n                      {\n                        name: 'num',\n                        description: '<p>the Number to format</p>\\n',\n                        type: 'Number|String'\n                      },\n                      {\n                        name: 'left',\n                        description:\n                          '<p>number of digits to the left of the\\n                               decimal point</p>\\n',\n                        type: 'Integer|String',\n                        optional: true\n                      },\n                      {\n                        name: 'right',\n                        description:\n                          '<p>number of digits to the right of the\\n                               decimal point</p>\\n',\n                        type: 'Integer|String',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'formatted String',\n                      type: 'String'\n                    }\n                  },\n                  {\n                    line: 178,\n                    params: [\n                      {\n                        name: 'nums',\n                        description: '<p>the Numbers to format</p>\\n',\n                        type: 'Array'\n                      },\n                      {\n                        name: 'left',\n                        description: '',\n                        type: 'Integer|String',\n                        optional: true\n                      },\n                      {\n                        name: 'right',\n                        description: '',\n                        type: 'Integer|String',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'formatted Strings',\n                      type: 'String[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/utilities/string_functions.js',\n                line: 239,\n                description:\n                  '<p>Utility function for formatting numbers into strings and placing\\nappropriate commas to mark units of 1000. There are two versions: one\\nfor formatting ints, and one for formatting an array of ints. The value\\nfor the right parameter should always be a positive integer.</p>\\n',\n                itemtype: 'method',\n                name: 'nfc',\n                return: {\n                  description: 'formatted String',\n                  type: 'String'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  background(200);\\n  let num = 11253106.115;\\n  let numArr = [1, 1, 2];\\n\\n  noStroke();\\n  fill(0);\\n  textSize(12);\\n\\n  // Draw formatted numbers\\n  text(nfc(num, 4), 10, 30);\\n  text(nfc(numArr, 2), 10, 80);\\n\\n  // Draw dividing line\\n  stroke(120);\\n  line(0, 50, width, 50);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  '\"11,253,106.115\" top middle and \"1.00,1.00,2.00\" displayed bottom mid',\n                class: 'p5',\n                module: 'Data',\n                submodule: 'String Functions',\n                overloads: [\n                  {\n                    line: 239,\n                    params: [\n                      {\n                        name: 'num',\n                        description: '<p>the Number to format</p>\\n',\n                        type: 'Number|String'\n                      },\n                      {\n                        name: 'right',\n                        description:\n                          '<p>number of digits to the right of the\\n                                 decimal point</p>\\n',\n                        type: 'Integer|String',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'formatted String',\n                      type: 'String'\n                    }\n                  },\n                  {\n                    line: 277,\n                    params: [\n                      {\n                        name: 'nums',\n                        description: '<p>the Numbers to format</p>\\n',\n                        type: 'Array'\n                      },\n                      {\n                        name: 'right',\n                        description: '',\n                        type: 'Integer|String',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'formatted Strings',\n                      type: 'String[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/utilities/string_functions.js',\n                line: 313,\n                description:\n                  '<p>Utility function for formatting numbers into strings. Similar to <a href=\"#/p5/nf\">nf()</a> but\\nputs a &quot;+&quot; in front of positive numbers and a &quot;-&quot; in front of negative\\nnumbers. There are two versions: one for formatting floats, and one for\\nformatting ints. The values for left, and right parameters\\nshould always be positive integers.</p>\\n',\n                itemtype: 'method',\n                name: 'nfp',\n                return: {\n                  description: 'formatted String',\n                  type: 'String'\n                },\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  background(200);\\n  let num1 = 11253106.115;\\n  let num2 = -11253106.115;\\n\\n  noStroke();\\n  fill(0);\\n  textSize(12);\\n\\n  // Draw formatted numbers\\n  text(nfp(num1, 4, 2), 10, 30);\\n  text(nfp(num2, 4, 2), 10, 80);\\n\\n  // Draw dividing line\\n  stroke(120);\\n  line(0, 50, width, 50);\\n}\\n</code>\\n</div>'\n                ],\n                alt: '\"+11253106.11\" top middle and \"-11253106.11\" displayed bottom middle',\n                class: 'p5',\n                module: 'Data',\n                submodule: 'String Functions',\n                overloads: [\n                  {\n                    line: 313,\n                    params: [\n                      {\n                        name: 'num',\n                        description: '<p>the Number to format</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'left',\n                        description:\n                          '<p>number of digits to the left of the decimal\\n                               point</p>\\n',\n                        type: 'Integer',\n                        optional: true\n                      },\n                      {\n                        name: 'right',\n                        description:\n                          '<p>number of digits to the right of the\\n                               decimal point</p>\\n',\n                        type: 'Integer',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'formatted String',\n                      type: 'String'\n                    }\n                  },\n                  {\n                    line: 354,\n                    params: [\n                      {\n                        name: 'nums',\n                        description: '<p>the Numbers to format</p>\\n',\n                        type: 'Number[]'\n                      },\n                      {\n                        name: 'left',\n                        description: '',\n                        type: 'Integer',\n                        optional: true\n                      },\n                      {\n                        name: 'right',\n                        description: '',\n                        type: 'Integer',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'formatted Strings',\n                      type: 'String[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/utilities/string_functions.js',\n                line: 375,\n                description:\n                  '<p>Utility function for formatting numbers into strings. Similar to <a href=\"#/p5/nf\">nf()</a> but\\nputs an additional &quot;_&quot; (space) in front of positive numbers just in case to align it with negative\\nnumbers which includes &quot;-&quot; (minus) sign.\\nThe main usecase of nfs() can be seen when one wants to align the digits (place values) of a non-negative\\nnumber with some negative number (See the example to get a clear picture).\\nThere are two versions: one for formatting float, and one for formatting int.\\nThe values for the digits, left, and right parameters should always be positive integers.\\n(IMP): The result on the canvas basically the expected alignment can vary based on the typeface you are using.\\n(NOTE): Be cautious when using left and right parameters as it prepends numbers of 0&#39;s if the parameter\\nif greater than the current length of the number.\\nFor example if number is 123.2 and left parameter passed is 4 which is greater than length of 123\\n(integer part) i.e 3 than result will be 0123.2. Same case for right parameter i.e. if right is 3 than\\nthe result will be 123.200.</p>\\n',\n                itemtype: 'method',\n                name: 'nfs',\n                return: {\n                  description: 'formatted String',\n                  type: 'String'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet myFont;\\nfunction preload() {\\n  myFont = loadFont('assets/fonts/inconsolata.ttf');\\n}\\nfunction setup() {\\n  background(200);\\n  let num1 = 321;\\n  let num2 = -1321;\\n\\n  noStroke();\\n  fill(0);\\n  textFont(myFont);\\n  textSize(22);\\n\\n  // nfs() aligns num1 (positive number) with num2 (negative number) by\\n  // adding a blank space in front of the num1 (positive number)\\n  // [left = 4] in num1 add one 0 in front, to align the digits with num2\\n  // [right = 2] in num1 and num2 adds two 0's after both numbers\\n  // To see the differences check the example of nf() too.\\n  text(nfs(num1, 4, 2), 10, 30);\\n  text(nfs(num2, 4, 2), 10, 80);\\n  // Draw dividing line\\n  stroke(120);\\n  line(0, 50, width, 50);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: '\"0321.00\" top middle and \"-1321.00\" displayed bottom middle',\n                class: 'p5',\n                module: 'Data',\n                submodule: 'String Functions',\n                overloads: [\n                  {\n                    line: 375,\n                    params: [\n                      {\n                        name: 'num',\n                        description: '<p>the Number to format</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'left',\n                        description:\n                          '<p>number of digits to the left of the decimal\\n                               point</p>\\n',\n                        type: 'Integer',\n                        optional: true\n                      },\n                      {\n                        name: 'right',\n                        description:\n                          '<p>number of digits to the right of the\\n                               decimal point</p>\\n',\n                        type: 'Integer',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'formatted String',\n                      type: 'String'\n                    }\n                  },\n                  {\n                    line: 432,\n                    params: [\n                      {\n                        name: 'nums',\n                        description: '<p>the Numbers to format</p>\\n',\n                        type: 'Array'\n                      },\n                      {\n                        name: 'left',\n                        description: '',\n                        type: 'Integer',\n                        optional: true\n                      },\n                      {\n                        name: 'right',\n                        description: '',\n                        type: 'Integer',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'formatted Strings',\n                      type: 'String[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/utilities/string_functions.js',\n                line: 453,\n                description:\n                  '<p>The <a href=\"#/p5/split\">split()</a> function maps to String.split(), it breaks a String into\\npieces using a character or string as the delimiter. The delim parameter\\nspecifies the character or characters that mark the boundaries between\\neach piece. A String[] array is returned that contains each of the pieces.</p>\\n<p>The <a href=\"#/p5/splitTokens\">splitTokens()</a> function works in a similar fashion, except that it\\nsplits using a range of characters instead of a specific character or\\nsequence.</p>\\n',\n                itemtype: 'method',\n                name: 'split',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>the String to be split</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'delim',\n                    description: '<p>the String used to separate the data</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                return: {\n                  description: 'Array of Strings',\n                  type: 'String[]'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet names = 'Pat,Xio,Alex';\\nlet splitString = split(names, ',');\\ntext(splitString[0], 5, 30);\\ntext(splitString[1], 5, 50);\\ntext(splitString[2], 5, 70);\\n</code>\\n</div>\"\n                ],\n                alt: '\"pat\" top left, \"Xio\" mid left and \"Alex\" displayed bottom left',\n                class: 'p5',\n                module: 'Data',\n                submodule: 'String Functions'\n              },\n              {\n                file: 'src/utilities/string_functions.js',\n                line: 487,\n                description:\n                  '<p>The <a href=\"#/p5/splitTokens\">splitTokens()</a> function splits a String at one or many character\\ndelimiters or &quot;tokens.&quot; The delim parameter specifies the character or\\ncharacters to be used as a boundary.\\n<br><br>\\nIf no delim characters are specified, any whitespace character is used to\\nsplit. Whitespace characters include tab (\\\\t), line feed (\\\\n), carriage\\nreturn (\\\\r), form feed (\\\\f), and space.</p>\\n',\n                itemtype: 'method',\n                name: 'splitTokens',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>the String to be split</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'delim',\n                    description:\n                      '<p>list of individual Strings that will be used as\\n                         separators</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'Array of Strings',\n                  type: 'String[]'\n                },\n                example: [\n                  '\\n<div class = \"norender\">\\n<code>\\nfunction setup() {\\n  let myStr = \\'Mango, Banana, Lime\\';\\n  let myStrArr = splitTokens(myStr, \\',\\');\\n\\n  print(myStrArr); // prints : [\"Mango\",\" Banana\",\" Lime\"]\\n}\\n</code>\\n</div>'\n                ],\n                class: 'p5',\n                module: 'Data',\n                submodule: 'String Functions'\n              },\n              {\n                file: 'src/utilities/string_functions.js',\n                line: 540,\n                description:\n                  '<p>Removes whitespace characters from the beginning and end of a String. In\\naddition to standard whitespace characters such as space, carriage return,\\nand tab, this function also removes the Unicode &quot;nbsp&quot; character.</p>\\n',\n                itemtype: 'method',\n                name: 'trim',\n                return: {\n                  description: 'a trimmed String',\n                  type: 'String'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet string = trim('  No new lines\\\\n   ');\\ntext(string + ' here', 2, 50);\\n</code>\\n</div>\"\n                ],\n                alt: '\"No new lines here\" displayed center canvas',\n                class: 'p5',\n                module: 'Data',\n                submodule: 'String Functions',\n                overloads: [\n                  {\n                    line: 540,\n                    params: [\n                      {\n                        name: 'str',\n                        description: '<p>a String to be trimmed</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    return: {\n                      description: 'a trimmed String',\n                      type: 'String'\n                    }\n                  },\n                  {\n                    line: 560,\n                    params: [\n                      {\n                        name: 'strs',\n                        description: '<p>an Array of Strings to be trimmed</p>\\n',\n                        type: 'Array'\n                      }\n                    ],\n                    return: {\n                      description: 'an Array of trimmed Strings',\n                      type: 'String[]'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/utilities/time_date.js',\n                line: 10,\n                description:\n                  '<p>p5.js communicates with the clock on your computer. The <a href=\"#/p5/day\">day()</a> function\\nreturns the current day as a value from 1 - 31.</p>\\n',\n                itemtype: 'method',\n                name: 'day',\n                return: {\n                  description: 'the current day',\n                  type: 'Integer'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet d = day();\\ntext('Current day: \\\\n' + d, 5, 50);\\n</code>\\n</div>\"\n                ],\n                alt: 'Current day is displayed',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Time & Date'\n              },\n              {\n                file: 'src/utilities/time_date.js',\n                line: 32,\n                description:\n                  '<p>p5.js communicates with the clock on your computer. The <a href=\"#/p5/hour\">hour()</a> function\\nreturns the current hour as a value from 0 - 23.</p>\\n',\n                itemtype: 'method',\n                name: 'hour',\n                return: {\n                  description: 'the current hour',\n                  type: 'Integer'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet h = hour();\\ntext('Current hour:\\\\n' + h, 5, 50);\\n</code>\\n</div>\"\n                ],\n                alt: 'Current hour is displayed',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Time & Date'\n              },\n              {\n                file: 'src/utilities/time_date.js',\n                line: 54,\n                description:\n                  '<p>p5.js communicates with the clock on your computer. The <a href=\"#/p5/minute\">minute()</a> function\\nreturns the current minute as a value from 0 - 59.</p>\\n',\n                itemtype: 'method',\n                name: 'minute',\n                return: {\n                  description: 'the current minute',\n                  type: 'Integer'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet m = minute();\\ntext('Current minute: \\\\n' + m, 5, 50);\\n</code>\\n</div>\"\n                ],\n                alt: 'Current minute is displayed',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Time & Date'\n              },\n              {\n                file: 'src/utilities/time_date.js',\n                line: 76,\n                description:\n                  '<p>Returns the number of milliseconds (thousandths of a second) since\\nstarting the sketch (when <code>setup()</code> is called). This information is often\\nused for timing events and animation sequences.</p>\\n',\n                itemtype: 'method',\n                name: 'millis',\n                return: {\n                  description: 'the number of milliseconds since starting the sketch',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet millisecond = millis();\\ntext('Milliseconds \\\\nrunning: \\\\n' + millisecond, 5, 40);\\n</code>\\n</div>\"\n                ],\n                alt: 'number of milliseconds since sketch has started displayed',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Time & Date'\n              },\n              {\n                file: 'src/utilities/time_date.js',\n                line: 104,\n                description:\n                  '<p>p5.js communicates with the clock on your computer. The <a href=\"#/p5/month\">month()</a> function\\nreturns the current month as a value from 1 - 12.</p>\\n',\n                itemtype: 'method',\n                name: 'month',\n                return: {\n                  description: 'the current month',\n                  type: 'Integer'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet m = month();\\ntext('Current month: \\\\n' + m, 5, 50);\\n</code>\\n</div>\"\n                ],\n                alt: 'Current month is displayed',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Time & Date'\n              },\n              {\n                file: 'src/utilities/time_date.js',\n                line: 127,\n                description:\n                  '<p>p5.js communicates with the clock on your computer. The <a href=\"#/p5/second\">second()</a> function\\nreturns the current second as a value from 0 - 59.</p>\\n',\n                itemtype: 'method',\n                name: 'second',\n                return: {\n                  description: 'the current second',\n                  type: 'Integer'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet s = second();\\ntext('Current second: \\\\n' + s, 5, 50);\\n</code>\\n</div>\"\n                ],\n                alt: 'Current second is displayed',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Time & Date'\n              },\n              {\n                file: 'src/utilities/time_date.js',\n                line: 149,\n                description:\n                  '<p>p5.js communicates with the clock on your computer. The <a href=\"#/p5/year\">year()</a> function\\nreturns the current year as an integer (2014, 2015, 2016, etc).</p>\\n',\n                itemtype: 'method',\n                name: 'year',\n                return: {\n                  description: 'the current year',\n                  type: 'Integer'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\nlet y = year();\\ntext('Current year: \\\\n' + y, 5, 50);\\n</code>\\n</div>\"\n                ],\n                alt: 'Current year is displayed',\n                class: 'p5',\n                module: 'IO',\n                submodule: 'Time & Date'\n              },\n              {\n                file: 'src/webgl/3d_primitives.js',\n                line: 13,\n                description: '<p>Draw a plane with given a width and height</p>\\n',\n                itemtype: 'method',\n                name: 'plane',\n                params: [\n                  {\n                    name: 'width',\n                    description: '<p>width of the plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'height',\n                    description: '<p>height of the plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'detailX',\n                    description:\n                      '<p>Optional number of triangle\\n                            subdivisions in x-dimension</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  },\n                  {\n                    name: 'detailY',\n                    description:\n                      '<p>Optional number of triangle\\n                            subdivisions in y-dimension</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// draw a plane\\n// with width 50 and height 50\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  plane(50, 50);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'Nothing displayed on canvas\\nRotating interior view of a box with sides that change color.\\n3d red and green gradient.\\nRotating interior view of a cylinder with sides that change color.\\nRotating view of a cylinder with sides that change color.\\n3d red and green gradient.\\nrotating view of a multi-colored cylinder with concave sides.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Primitives'\n              },\n              {\n                file: 'src/webgl/3d_primitives.js',\n                line: 97,\n                description: '<p>Draw a box with given width, height and depth</p>\\n',\n                itemtype: 'method',\n                name: 'box',\n                params: [\n                  {\n                    name: 'width',\n                    description: '<p>width of the box</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'Height',\n                    description: '<p>height of the box</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'depth',\n                    description: '<p>depth of the box</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'detailX',\n                    description:\n                      '<p>Optional number of triangle\\n                           subdivisions in x-dimension</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  },\n                  {\n                    name: 'detailY',\n                    description:\n                      '<p>Optional number of triangle\\n                           subdivisions in y-dimension</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// draw a spinning box\\n// with width, height and depth of 50\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  rotateX(frameCount * 0.01);\\n  rotateY(frameCount * 0.01);\\n  box(50);\\n}\\n</code>\\n</div>'\n                ],\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Primitives'\n              },\n              {\n                file: 'src/webgl/3d_primitives.js',\n                line: 215,\n                description:\n                  '<p>Draw a sphere with given radius.</p>\\n<p>DetailX and detailY determines the number of subdivisions in the x-dimension\\nand the y-dimension of a sphere. More subdivisions make the sphere seem\\nsmoother. The recommended maximum values are both 24. Using a value greater\\nthan 24 may cause a warning or slow down the browser.</p>\\n',\n                itemtype: 'method',\n                name: 'sphere',\n                params: [\n                  {\n                    name: 'radius',\n                    description: '<p>radius of circle</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'detailX',\n                    description: '<p>optional number of subdivisions in x-dimension</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  },\n                  {\n                    name: 'detailY',\n                    description: '<p>optional number of subdivisions in y-dimension</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// draw a sphere with radius 40\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(205, 102, 94);\\n  sphere(40);\\n}\\n</code>\\n</div>',\n                  \"\\n<div>\\n<code>\\nlet detailX;\\n// slide to see how detailX works\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  detailX = createSlider(3, 24, 3);\\n  detailX.position(10, height + 5);\\n  detailX.style('width', '80px');\\n}\\n\\nfunction draw() {\\n  background(205, 105, 94);\\n  rotateY(millis() / 1000);\\n  sphere(40, detailX.value(), 16);\\n}\\n</code>\\n</div>\",\n                  \"\\n<div>\\n<code>\\nlet detailY;\\n// slide to see how detailY works\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  detailY = createSlider(3, 16, 3);\\n  detailY.position(10, height + 5);\\n  detailY.style('width', '80px');\\n}\\n\\nfunction draw() {\\n  background(205, 105, 94);\\n  rotateY(millis() / 1000);\\n  sphere(40, 16, detailY.value());\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Primitives'\n              },\n              {\n                file: 'src/webgl/3d_primitives.js',\n                line: 419,\n                description:\n                  '<p>Draw a cylinder with given radius and height</p>\\n<p>DetailX and detailY determines the number of subdivisions in the x-dimension\\nand the y-dimension of a cylinder. More subdivisions make the cylinder seem smoother.\\nThe recommended maximum value for detailX is 24. Using a value greater than 24\\nmay cause a warning or slow down the browser.</p>\\n',\n                itemtype: 'method',\n                name: 'cylinder',\n                params: [\n                  {\n                    name: 'radius',\n                    description: '<p>radius of the surface</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'height',\n                    description: '<p>height of the cylinder</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'detailX',\n                    description:\n                      '<p>number of subdivisions in x-dimension;\\n                              default is 24</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  },\n                  {\n                    name: 'detailY',\n                    description:\n                      '<p>number of subdivisions in y-dimension;\\n                              default is 1</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  },\n                  {\n                    name: 'bottomCap',\n                    description: '<p>whether to draw the bottom of the cylinder</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  },\n                  {\n                    name: 'topCap',\n                    description: '<p>whether to draw the top of the cylinder</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// draw a spinning cylinder\\n// with radius 20 and height 50\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(205, 105, 94);\\n  rotateX(frameCount * 0.01);\\n  rotateZ(frameCount * 0.01);\\n  cylinder(20, 50);\\n}\\n</code>\\n</div>',\n                  \"\\n<div>\\n<code>\\n// slide to see how detailX works\\nlet detailX;\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  detailX = createSlider(3, 24, 3);\\n  detailX.position(10, height + 5);\\n  detailX.style('width', '80px');\\n}\\n\\nfunction draw() {\\n  background(205, 105, 94);\\n  rotateY(millis() / 1000);\\n  cylinder(20, 75, detailX.value(), 1);\\n}\\n</code>\\n</div>\",\n                  \"\\n<div>\\n<code>\\n// slide to see how detailY works\\nlet detailY;\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  detailY = createSlider(1, 16, 1);\\n  detailY.position(10, height + 5);\\n  detailY.style('width', '80px');\\n}\\n\\nfunction draw() {\\n  background(205, 105, 94);\\n  rotateY(millis() / 1000);\\n  cylinder(20, 75, 16, detailY.value());\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Primitives'\n              },\n              {\n                file: 'src/webgl/3d_primitives.js',\n                line: 554,\n                description:\n                  '<p>Draw a cone with given radius and height</p>\\n<p>DetailX and detailY determine the number of subdivisions in the x-dimension and\\nthe y-dimension of a cone. More subdivisions make the cone seem smoother. The\\nrecommended maximum value for detailX is 24. Using a value greater than 24\\nmay cause a warning or slow down the browser.</p>\\n',\n                itemtype: 'method',\n                name: 'cone',\n                params: [\n                  {\n                    name: 'radius',\n                    description: '<p>radius of the bottom surface</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'height',\n                    description: '<p>height of the cone</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'detailX',\n                    description:\n                      '<p>number of segments,\\n                            the more segments the smoother geometry\\n                            default is 24</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  },\n                  {\n                    name: 'detailY',\n                    description:\n                      '<p>number of segments,\\n                            the more segments the smoother geometry\\n                            default is 1</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  },\n                  {\n                    name: 'cap',\n                    description: '<p>whether to draw the base of the cone</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// draw a spinning cone\\n// with radius 40 and height 70\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  rotateX(frameCount * 0.01);\\n  rotateZ(frameCount * 0.01);\\n  cone(40, 70);\\n}\\n</code>\\n</div>',\n                  \"\\n<div>\\n<code>\\n// slide to see how detailx works\\nlet detailX;\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  detailX = createSlider(3, 16, 3);\\n  detailX.position(10, height + 5);\\n  detailX.style('width', '80px');\\n}\\n\\nfunction draw() {\\n  background(205, 102, 94);\\n  rotateY(millis() / 1000);\\n  cone(30, 65, detailX.value(), 16);\\n}\\n</code>\\n</div>\",\n                  \"\\n<div>\\n<code>\\n// slide to see how detailY works\\nlet detailY;\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  detailY = createSlider(3, 16, 3);\\n  detailY.position(10, height + 5);\\n  detailY.style('width', '80px');\\n}\\n\\nfunction draw() {\\n  background(205, 102, 94);\\n  rotateY(millis() / 1000);\\n  cone(30, 65, 16, detailY.value());\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Primitives'\n              },\n              {\n                file: 'src/webgl/3d_primitives.js',\n                line: 669,\n                description:\n                  '<p>Draw an ellipsoid with given radius</p>\\n<p>DetailX and detailY determine the number of subdivisions in the x-dimension and\\nthe y-dimension of a cone. More subdivisions make the ellipsoid appear to be smoother.\\nAvoid detail number above 150, it may crash the browser.</p>\\n',\n                itemtype: 'method',\n                name: 'ellipsoid',\n                params: [\n                  {\n                    name: 'radiusx',\n                    description: '<p>x-radius of ellipsoid</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'radiusy',\n                    description: '<p>y-radius of ellipsoid</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'radiusz',\n                    description: '<p>z-radius of ellipsoid</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'detailX',\n                    description:\n                      '<p>number of segments,\\n                                   the more segments the smoother geometry\\n                                   default is 24. Avoid detail number above\\n                                   150, it may crash the browser.</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  },\n                  {\n                    name: 'detailY',\n                    description:\n                      '<p>number of segments,\\n                                   the more segments the smoother geometry\\n                                   default is 16. Avoid detail number above\\n                                   150, it may crash the browser.</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// draw an ellipsoid\\n// with radius 30, 40 and 40.\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(205, 105, 94);\\n  ellipsoid(30, 40, 40);\\n}\\n</code>\\n</div>',\n                  \"\\n<div>\\n<code>\\n// slide to see how detailX works\\nlet detailX;\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  detailX = createSlider(2, 24, 12);\\n  detailX.position(10, height + 5);\\n  detailX.style('width', '80px');\\n}\\n\\nfunction draw() {\\n  background(205, 105, 94);\\n  rotateY(millis() / 1000);\\n  ellipsoid(30, 40, 40, detailX.value(), 8);\\n}\\n</code>\\n</div>\",\n                  \"\\n<div>\\n<code>\\n// slide to see how detailY works\\nlet detailY;\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  detailY = createSlider(2, 24, 6);\\n  detailY.position(10, height + 5);\\n  detailY.style('width', '80px');\\n}\\n\\nfunction draw() {\\n  background(205, 105, 9);\\n  rotateY(millis() / 1000);\\n  ellipsoid(30, 40, 40, 12, detailY.value());\\n}\\n</code>\\n</div>\\n\"\n                ],\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Primitives'\n              },\n              {\n                file: 'src/webgl/3d_primitives.js',\n                line: 805,\n                description:\n                  '<p>Draw a torus with given radius and tube radius</p>\\n<p>DetailX and detailY determine the number of subdivisions in the x-dimension and\\nthe y-dimension of a torus. More subdivisions make the torus appear to be smoother.\\nThe default and maximum values for detailX and detailY are 24 and 16, respectively.\\nSetting them to relatively small values like 4 and 6 allows you to create new\\nshapes other than a torus.</p>\\n',\n                itemtype: 'method',\n                name: 'torus',\n                params: [\n                  {\n                    name: 'radius',\n                    description: '<p>radius of the whole ring</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'tubeRadius',\n                    description: '<p>radius of the tube</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'detailX',\n                    description:\n                      '<p>number of segments in x-dimension,\\n                               the more segments the smoother geometry\\n                               default is 24</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  },\n                  {\n                    name: 'detailY',\n                    description:\n                      '<p>number of segments in y-dimension,\\n                               the more segments the smoother geometry\\n                               default is 16</p>\\n',\n                    type: 'Integer',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n// draw a spinning torus\\n// with ring radius 30 and tube radius 15\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(205, 102, 94);\\n  rotateX(frameCount * 0.01);\\n  rotateY(frameCount * 0.01);\\n  torus(30, 15);\\n}\\n</code>\\n</div>',\n                  \"\\n<div>\\n<code>\\n// slide to see how detailX works\\nlet detailX;\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  detailX = createSlider(3, 24, 3);\\n  detailX.position(10, height + 5);\\n  detailX.style('width', '80px');\\n}\\n\\nfunction draw() {\\n  background(205, 102, 94);\\n  rotateY(millis() / 1000);\\n  torus(30, 15, detailX.value(), 12);\\n}\\n</code>\\n</div>\",\n                  \"\\n<div>\\n<code>\\n// slide to see how detailY works\\nlet detailY;\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  detailY = createSlider(3, 16, 3);\\n  detailY.position(10, height + 5);\\n  detailY.style('width', '80px');\\n}\\n\\nfunction draw() {\\n  background(205, 102, 94);\\n  rotateY(millis() / 1000);\\n  torus(30, 15, 16, detailY.value());\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Primitives'\n              },\n              {\n                file: 'src/webgl/interaction.js',\n                line: 11,\n                description:\n                  '<p>Allows movement around a 3D sketch using a mouse or trackpad.  Left-clicking\\nand dragging will rotate the camera position about the center of the sketch,\\nright-clicking and dragging will pan the camera position without rotation,\\nand using the mouse wheel (scrolling) will move the camera closer or further\\nfrom the center of the sketch. This function can be called with parameters\\ndictating sensitivity to mouse movement along the X and Y axes.  Calling\\nthis function without parameters is equivalent to calling orbitControl(1,1).\\nTo reverse direction of movement in either axis, enter a negative number\\nfor sensitivity.</p>\\n',\n                itemtype: 'method',\n                name: 'orbitControl',\n                params: [\n                  {\n                    name: 'sensitivityX',\n                    description: '<p>sensitivity to mouse movement along X axis</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'sensitivityY',\n                    description: '<p>sensitivity to mouse movement along Y axis</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'sensitivityZ',\n                    description: '<p>sensitivity to scroll movement along Z axis</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  normalMaterial();\\n}\\nfunction draw() {\\n  background(200);\\n  orbitControl();\\n  rotateY(0.5);\\n  box(30, 50);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'Camera orbits around a box when mouse is hold-clicked & then moved.',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Interaction'\n              },\n              {\n                file: 'src/webgl/interaction.js',\n                line: 145,\n                description:\n                  '<p>debugMode() helps visualize 3D space by adding a grid to indicate where the\\n‘ground’ is in a sketch and an axes icon which indicates the +X, +Y, and +Z\\ndirections. This function can be called without parameters to create a\\ndefault grid and axes icon, or it can be called according to the examples\\nabove to customize the size and position of the grid and/or axes icon.  The\\ngrid is drawn using the most recently set stroke color and weight.  To\\nspecify these parameters, add a call to stroke() and strokeWeight()\\njust before the end of the draw() loop.</p>\\n<p>By default, the grid will run through the origin (0,0,0) of the sketch\\nalong the XZ plane\\nand the axes icon will be offset from the origin.  Both the grid and axes\\nicon will be sized according to the current canvas size.  Note that because the\\ngrid runs parallel to the default camera view, it is often helpful to use\\ndebugMode along with orbitControl to allow full view of the grid.</p>\\n',\n                itemtype: 'method',\n                name: 'debugMode',\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\\n  normalMaterial();\\n  debugMode();\\n}\\n\\nfunction draw() {\\n  background(200);\\n  orbitControl();\\n  box(15, 30);\\n  // Press the spacebar to turn debugMode off!\\n  if (keyIsDown(32)) {\\n    noDebugMode();\\n  }\\n}\\n</code>\\n</div>',\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\\n  normalMaterial();\\n  debugMode(GRID);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  orbitControl();\\n  box(15, 30);\\n}\\n</code>\\n</div>',\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\\n  normalMaterial();\\n  debugMode(AXES);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  orbitControl();\\n  box(15, 30);\\n}\\n</code>\\n</div>',\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\\n  normalMaterial();\\n  debugMode(GRID, 100, 10, 0, 0, 0);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  orbitControl();\\n  box(15, 30);\\n}\\n</code>\\n</div>',\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\\n  normalMaterial();\\n  debugMode(100, 10, 0, 0, 0, 20, 0, -40, 0);\\n}\\n\\nfunction draw() {\\n  noStroke();\\n  background(200);\\n  orbitControl();\\n  box(15, 30);\\n  // set the stroke color and weight for the grid!\\n  stroke(255, 0, 150);\\n  strokeWeight(0.8);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'a 3D box is centered on a grid in a 3D sketch. an icon\\nindicates the direction of each axis: a red line points +X,\\na green line +Y, and a blue line +Z.',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Interaction',\n                overloads: [\n                  {\n                    line: 145,\n                    params: []\n                  },\n                  {\n                    line: 278,\n                    params: [\n                      {\n                        name: 'mode',\n                        description: '<p>either GRID or AXES</p>\\n',\n                        type: 'Constant'\n                      }\n                    ]\n                  },\n                  {\n                    line: 283,\n                    params: [\n                      {\n                        name: 'mode',\n                        description: '',\n                        type: 'Constant'\n                      },\n                      {\n                        name: 'gridSize',\n                        description: '<p>size of one side of the grid</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'gridDivisions',\n                        description: '<p>number of divisions in the grid</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'xOff',\n                        description: '<p>X axis offset from origin (0,0,0)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'yOff',\n                        description: '<p>Y axis offset from origin (0,0,0)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'zOff',\n                        description: '<p>Z axis offset from origin (0,0,0)</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  },\n                  {\n                    line: 293,\n                    params: [\n                      {\n                        name: 'mode',\n                        description: '',\n                        type: 'Constant'\n                      },\n                      {\n                        name: 'axesSize',\n                        description: '<p>size of axes icon</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'xOff',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'yOff',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'zOff',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  },\n                  {\n                    line: 302,\n                    params: [\n                      {\n                        name: 'gridSize',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'gridDivisions',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'gridXOff',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'gridYOff',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'gridZOff',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'axesSize',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'axesXOff',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'axesYOff',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'axesZOff',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/webgl/interaction.js',\n                line: 353,\n                description: '<p>Turns off debugMode() in a 3D sketch.</p>\\n',\n                itemtype: 'method',\n                name: 'noDebugMode',\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\\n  normalMaterial();\\n  debugMode();\\n}\\n\\nfunction draw() {\\n  background(200);\\n  orbitControl();\\n  box(15, 30);\\n  // Press the spacebar to turn debugMode off!\\n  if (keyIsDown(32)) {\\n    noDebugMode();\\n  }\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'a 3D box is centered on a grid in a 3D sketch. an icon\\nindicates the direction of each axis: a red line points +X,\\na green line +Y, and a blue line +Z. the grid and icon disappear when the\\nspacebar is pressed.',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Interaction'\n              },\n              {\n                file: 'src/webgl/light.js',\n                line: 10,\n                description:\n                  '<p>Creates an ambient light with a color. Ambient light is light that comes from everywhere on the canvas.\\nIt has no particular source.</p>\\n',\n                itemtype: 'method',\n                name: 'ambientLight',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\ncreateCanvas(100, 100, WEBGL);\\nambientLight(0);\\nambientMaterial(250);\\nsphere(40);\\n</code>\\n</div>\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(51);\\n  ambientLight(100); // white light\\n  ambientMaterial(255, 102, 94); // magenta material\\n  box(30);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'evenly distributed light across a sphere\\nevenly distributed light across a rotating sphere',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Lights',\n                overloads: [\n                  {\n                    line: 10,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>red or hue value relative to\\n                                the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description:\n                          '<p>green or saturation value\\n                                relative to the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description:\n                          '<p>blue or brightness value\\n                                relative to the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'alpha',\n                        description: '<p>the alpha value</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 51,\n                    params: [\n                      {\n                        name: 'value',\n                        description: '<p>a color string</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 57,\n                    params: [\n                      {\n                        name: 'gray',\n                        description: '<p>a gray value</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'alpha',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 64,\n                    params: [\n                      {\n                        name: 'values',\n                        description:\n                          '<p>an array containing the red,green,blue &amp;\\n                                and alpha components of the color</p>\\n',\n                        type: 'Number[]'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 71,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '<p>the ambient light color</p>\\n',\n                        type: 'p5.Color'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/webgl/light.js',\n                line: 92,\n                description:\n                  '<p>Set&#39;s the color of the specular highlight when using a specular material and\\nspecular light.</p>\\n<p>This method can be combined with specularMaterial() and shininess()\\nfunctions to set specular highlights. The default color is white, ie\\n(255, 255, 255), which is used if this method is not called before\\nspecularMaterial(). If this method is called without specularMaterial(),\\nThere will be no effect.</p>\\n<p>Note: specularColor is equivalent to the processing function\\n<a href=\"https://processing.org/reference/lightSpecular_.html\">lightSpecular</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'specularColor',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  noStroke();\\n}\\n\\nfunction draw() {\\n  background(0);\\n  shininess(20);\\n  ambientLight(50);\\n  specularColor(255, 0, 0);\\n  pointLight(255, 0, 0, 0, -50, 50);\\n  specularColor(0, 255, 0);\\n  pointLight(0, 255, 0, 0, 50, 50);\\n  specularMaterial(255);\\n  sphere(40);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'different specular light sources from top and bottom of canvas',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Lights',\n                overloads: [\n                  {\n                    line: 92,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>red or hue value relative to\\n                                the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description:\n                          '<p>green or saturation value\\n                                relative to the current color range</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description:\n                          '<p>blue or brightness value\\n                                relative to the current color range</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 139,\n                    params: [\n                      {\n                        name: 'value',\n                        description: '<p>a color string</p>\\n',\n                        type: 'String'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 145,\n                    params: [\n                      {\n                        name: 'gray',\n                        description: '<p>a gray value</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 151,\n                    params: [\n                      {\n                        name: 'values',\n                        description:\n                          '<p>an array containing the red,green,blue &amp;\\n                                and alpha components of the color</p>\\n',\n                        type: 'Number[]'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 158,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '<p>the ambient light color</p>\\n',\n                        type: 'p5.Color'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/webgl/light.js',\n                line: 177,\n                description:\n                  '<p>Creates a directional light with a color and a direction</p>\\n<p>A maximum of 5 directionalLight can be active at one time</p>\\n',\n                itemtype: 'method',\n                name: 'directionalLight',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(0);\\n  //move your mouse to change light direction\\n  let dirX = (mouseX / width - 0.5) * 2;\\n  let dirY = (mouseY / height - 0.5) * 2;\\n  directionalLight(250, 250, 250, -dirX, -dirY, -1);\\n  noStroke();\\n  sphere(40);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'light source on canvas changeable with mouse position',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Lights',\n                overloads: [\n                  {\n                    line: 177,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>red or hue value (depending on the current\\ncolor mode),</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description: '<p>green or saturation value</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description: '<p>blue or brightness value</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'position',\n                        description: '<p>the direction of the light</p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 211,\n                    params: [\n                      {\n                        name: 'color',\n                        description:\n                          '<p>color Array, CSS color string,\\n                                            or <a href=\"#/p5.Color\">p5.Color</a> value</p>\\n',\n                        type: 'Number[]|String|p5.Color'\n                      },\n                      {\n                        name: 'x',\n                        description: '<p>x axis direction</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>y axis direction</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>z axis direction</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 221,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '',\n                        type: 'Number[]|String|p5.Color'\n                      },\n                      {\n                        name: 'position',\n                        description: '',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 228,\n                    params: [\n                      {\n                        name: 'v1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/webgl/light.js',\n                line: 281,\n                description:\n                  '<p>Creates a point light with a color and a light position</p>\\n<p>A maximum of 5 pointLight can be active at one time</p>\\n',\n                itemtype: 'method',\n                name: 'pointLight',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(0);\\n  //move your mouse to change light position\\n  let locX = mouseX - width / 2;\\n  let locY = mouseY - height / 2;\\n  // to set the light position,\\n  // think of the world's coordinate as:\\n  // -width/2,-height/2 -------- width/2,-height/2\\n  //                |            |\\n  //                |     0,0    |\\n  //                |            |\\n  // -width/2,height/2--------width/2,height/2\\n  pointLight(250, 250, 250, locX, locY, 50);\\n  noStroke();\\n  sphere(40);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'spot light on canvas changes position with mouse',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Lights',\n                overloads: [\n                  {\n                    line: 281,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>red or hue value (depending on the current\\ncolor mode),</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description: '<p>green or saturation value</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description: '<p>blue or brightness value</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x',\n                        description: '<p>x axis position</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>y axis position</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>z axis position</p>\\n',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 324,\n                    params: [\n                      {\n                        name: 'v1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'position',\n                        description: '<p>the position of the light</p>\\n',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 333,\n                    params: [\n                      {\n                        name: 'color',\n                        description:\n                          '<p>color Array, CSS color string,\\nor <a href=\"#/p5.Color\">p5.Color</a> value</p>\\n',\n                        type: 'Number[]|String|p5.Color'\n                      },\n                      {\n                        name: 'x',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '',\n                        type: 'Number'\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 343,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '',\n                        type: 'Number[]|String|p5.Color'\n                      },\n                      {\n                        name: 'position',\n                        description: '',\n                        type: 'p5.Vector'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/webgl/light.js',\n                line: 389,\n                description:\n                  '<p>Sets the default ambient and directional light. The defaults are <a href=\"#/p5/ambientLight\">ambientLight(128, 128, 128)</a> and <a href=\"#/p5/directionalLight\">directionalLight(128, 128, 128, 0, 0, -1)</a>. Lights need to be included in the <a href=\"#/p5/draw\">draw()</a> to remain persistent in a looping program. Placing them in the <a href=\"#/p5/setup\">setup()</a> of a looping program will cause them to only have an effect the first time through the loop.</p>\\n',\n                itemtype: 'method',\n                name: 'lights',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(0);\\n  lights();\\n  rotateX(millis() / 1000);\\n  rotateY(millis() / 1000);\\n  rotateZ(millis() / 1000);\\n  box();\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'the light is partially ambient and partially directional',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Lights'\n              },\n              {\n                file: 'src/webgl/light.js',\n                line: 420,\n                description:\n                  '<p>Sets the falloff rates for point lights. It affects only the elements which are created after it in the code.\\nThe default value is lightFalloff(1.0, 0.0, 0.0), and the parameters are used to calculate the falloff with the following equation:</p>\\n<p>d = distance from light position to vertex position</p>\\n<p>falloff = 1 / (CONSTANT + d * LINEAR + ( d * d ) * QUADRATIC)</p>\\n',\n                itemtype: 'method',\n                name: 'lightFalloff',\n                params: [\n                  {\n                    name: 'constant',\n                    description: '<p>constant value for determining falloff</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'linear',\n                    description: '<p>linear value for determining falloff</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'quadratic',\n                    description: '<p>quadratic value for determining falloff</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  noStroke();\\n}\\nfunction draw() {\\n  background(0);\\n  let locX = mouseX - width / 2;\\n  let locY = mouseY - height / 2;\\n  translate(-25, 0, 0);\\n  lightFalloff(1, 0, 0);\\n  pointLight(250, 250, 250, locX, locY, 50);\\n  sphere(20);\\n  translate(50, 0, 0);\\n  lightFalloff(0.9, 0.01, 0);\\n  pointLight(250, 250, 250, locX, locY, 50);\\n  sphere(20);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'Two spheres with different falloff values show different intensity of light',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Lights'\n              },\n              {\n                file: 'src/webgl/light.js',\n                line: 506,\n                description:\n                  '<p>Creates a spotlight with a given color, position, direction of light,\\nangle and concentration. Here, angle refers to the opening or aperture\\nof the cone of the spotlight, and concentration is used to focus the\\nlight towards the center. Both angle and concentration are optional, but if\\nyou want to provide concentration, you will also have to specify the angle.</p>\\n<p>A maximum of 5 spotLight can be active at one time</p>\\n',\n                itemtype: 'method',\n                name: 'spotLight',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(0);\\n  //move your mouse to change light position\\n  let locX = mouseX - width / 2;\\n  let locY = mouseY - height / 2;\\n  // to set the light position,\\n  // think of the world's coordinate as:\\n  // -width/2,-height/2 -------- width/2,-height/2\\n  //                |            |\\n  //                |     0,0    |\\n  //                |            |\\n  // -width/2,height/2--------width/2,height/2\\n  ambientLight(50);\\n  spotLight(0, 250, 0, locX, locY, 100, 0, 0, -1, Math.PI / 16);\\n  noStroke();\\n  sphere(40);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'Spot light on a sphere which changes position with mouse',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Lights',\n                overloads: [\n                  {\n                    line: 506,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>red or hue value (depending on the current\\ncolor mode),</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description: '<p>green or saturation value</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description: '<p>blue or brightness value</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x',\n                        description: '<p>x axis position</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '<p>y axis position</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '<p>z axis position</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'rx',\n                        description: '<p>x axis direction of light</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'ry',\n                        description: '<p>y axis direction of light</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'rz',\n                        description: '<p>z axis direction of light</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'angle',\n                        description:\n                          '<p>optional parameter for angle. Defaults to PI/3</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'conc',\n                        description:\n                          '<p>optional parameter for concentration. Defaults to 100</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 558,\n                    params: [\n                      {\n                        name: 'color',\n                        description:\n                          '<p>color Array, CSS color string,\\nor <a href=\"#/p5.Color\">p5.Color</a> value</p>\\n',\n                        type: 'Number[]|String|p5.Color'\n                      },\n                      {\n                        name: 'position',\n                        description: '<p>the position of the light</p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'direction',\n                        description: '<p>the direction of the light</p>\\n',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'angle',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'conc',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  },\n                  {\n                    line: 567,\n                    params: [\n                      {\n                        name: 'v1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'position',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'direction',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'angle',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'conc',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  },\n                  {\n                    line: 577,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '',\n                        type: 'Number[]|String|p5.Color'\n                      },\n                      {\n                        name: 'x',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'direction',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'angle',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'conc',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  },\n                  {\n                    line: 587,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '',\n                        type: 'Number[]|String|p5.Color'\n                      },\n                      {\n                        name: 'position',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'rx',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'ry',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'rz',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'angle',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'conc',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  },\n                  {\n                    line: 597,\n                    params: [\n                      {\n                        name: 'v1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'x',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'direction',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'angle',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'conc',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  },\n                  {\n                    line: 609,\n                    params: [\n                      {\n                        name: 'v1',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v3',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'position',\n                        description: '',\n                        type: 'p5.Vector'\n                      },\n                      {\n                        name: 'rx',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'ry',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'rz',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'angle',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'conc',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  },\n                  {\n                    line: 621,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '',\n                        type: 'Number[]|String|p5.Color'\n                      },\n                      {\n                        name: 'x',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'y',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'z',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'rx',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'ry',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'rz',\n                        description: '',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'angle',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'conc',\n                        description: '',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/webgl/light.js',\n                line: 846,\n                description:\n                  '<p>This function will remove all the lights from the sketch for the\\nsubsequent materials rendered. It affects all the subsequent methods.\\nCalls to lighting methods made after noLights() will re-enable lights\\nin the sketch.</p>\\n',\n                itemtype: 'method',\n                name: 'noLights',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(0);\\n  noStroke();\\n\\n  ambientLight(150, 0, 0);\\n  translate(-25, 0, 0);\\n  ambientMaterial(250);\\n  sphere(20);\\n\\n  noLights();\\n  ambientLight(0, 150, 0);\\n  translate(50, 0, 0);\\n  ambientMaterial(250);\\n  sphere(20);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'Two spheres showing different colors',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Lights'\n              },\n              {\n                file: 'src/webgl/loading.js',\n                line: 12,\n                description:\n                  '<p>Load a 3d model from an OBJ or STL file.\\n<br><br>\\n<a href=\"#/p5/loadModel\">loadModel()</a> should be placed inside of <a href=\"#/p5/preload\">preload()</a>.\\nThis allows the model to load fully before the rest of your code is run.\\n<br><br>\\nOne of the limitations of the OBJ and STL format is that it doesn&#39;t have a built-in\\nsense of scale. This means that models exported from different programs might\\nbe very different sizes. If your model isn&#39;t displaying, try calling\\n<a href=\"#/p5/loadModel\">loadModel()</a> with the normalized parameter set to true. This will resize the\\nmodel to a scale appropriate for p5. You can also make additional changes to\\nthe final size of your model with the <a href=\"#/p5/scale\">scale()</a> function.</p>\\n<p>Also, the support for colored STL files is not present. STL files with color will be\\nrendered without color properties.</p>\\n',\n                itemtype: 'method',\n                name: 'loadModel',\n                return: {\n                  description: 'the <a href=\"#/p5.Geometry\">p5.Geometry</a> object',\n                  type: 'p5.Geometry'\n                },\n                example: [\n                  \"\\n<div>\\n<code>\\n//draw a spinning octahedron\\nlet octahedron;\\n\\nfunction preload() {\\n  octahedron = loadModel('assets/octahedron.obj');\\n}\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  rotateX(frameCount * 0.01);\\n  rotateY(frameCount * 0.01);\\n  model(octahedron);\\n}\\n</code>\\n</div>\",\n                  \"\\n<div>\\n<code>\\n//draw a spinning teapot\\nlet teapot;\\n\\nfunction preload() {\\n  // Load model with normalise parameter set to true\\n  teapot = loadModel('assets/teapot.obj', true);\\n}\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  scale(0.4); // Scaled to make model fit into canvas\\n  rotateX(frameCount * 0.01);\\n  rotateY(frameCount * 0.01);\\n  normalMaterial(); // For effect\\n  model(teapot);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'Vertically rotating 3-d teapot with red, green and blue gradient.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Models',\n                overloads: [\n                  {\n                    line: 12,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '<p>Path of the model to be loaded</p>\\n',\n                        type: 'String'\n                      },\n                      {\n                        name: 'normalize',\n                        description:\n                          '<p>If true, scale the model to a\\n                                     standardized size when loading</p>\\n',\n                        type: 'Boolean'\n                      },\n                      {\n                        name: 'successCallback',\n                        description:\n                          '<p>Function to be called\\n                                    once the model is loaded. Will be passed\\n                                    the 3D model object.</p>\\n',\n                        type: 'function(p5.Geometry)',\n                        optional: true\n                      },\n                      {\n                        name: 'failureCallback',\n                        description:\n                          '<p>called with event error if\\n                                        the model fails to load.</p>\\n',\n                        type: 'Function(Event)',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'the <a href=\"#/p5.Geometry\">p5.Geometry</a> object',\n                      type: 'p5.Geometry'\n                    }\n                  },\n                  {\n                    line: 94,\n                    params: [\n                      {\n                        name: 'path',\n                        description: '',\n                        type: 'String'\n                      },\n                      {\n                        name: 'successCallback',\n                        description: '',\n                        type: 'function(p5.Geometry)',\n                        optional: true\n                      },\n                      {\n                        name: 'failureCallback',\n                        description: '',\n                        type: 'Function(Event)',\n                        optional: true\n                      }\n                    ],\n                    return: {\n                      description: 'the <a href=\"#/p5.Geometry\">p5.Geometry</a> object',\n                      type: 'p5.Geometry'\n                    }\n                  }\n                ]\n              },\n              {\n                file: 'src/webgl/loading.js',\n                line: 170,\n                description:\n                  '<p>Parse OBJ lines into model. For reference, this is what a simple model of a\\nsquare might look like:</p>\\n<p>v -0.5 -0.5 0.5\\nv -0.5 -0.5 -0.5\\nv -0.5 0.5 -0.5\\nv -0.5 0.5 0.5</p>\\n<p>f 4 3 2 1</p>\\n',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Models'\n              },\n              {\n                file: 'src/webgl/loading.js',\n                line: 279,\n                description:\n                  '<p>STL files can be of two types, ASCII and Binary,</p>\\n<p>We need to convert the arrayBuffer to an array of strings,\\nto parse it as an ASCII file.</p>\\n',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Models'\n              },\n              {\n                file: 'src/webgl/loading.js',\n                line: 306,\n                description:\n                  '<p>This function checks if the file is in ASCII format or in Binary format</p>\\n<p>It is done by searching keyword <code>solid</code> at the start of the file.</p>\\n<p>An ASCII STL data must begin with <code>solid</code> as the first six bytes.\\nHowever, ASCII STLs lacking the SPACE after the <code>d</code> are known to be\\nplentiful. So, check the first 5 bytes for <code>solid</code>.</p>\\n<p>Several encodings, such as UTF-8, precede the text with up to 5 bytes:\\n<a href=\"https://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding\">https://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding</a>\\nSearch for <code>solid</code> to start anywhere after those prefixes.</p>\\n',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Models'\n              },\n              {\n                file: 'src/webgl/loading.js',\n                line: 333,\n                description:\n                  '<p>This function matches the <code>query</code> at the provided <code>offset</code></p>\\n',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Models'\n              },\n              {\n                file: 'src/webgl/loading.js',\n                line: 345,\n                description:\n                  '<p>This function parses the Binary STL files.\\n<a href=\"https://en.wikipedia.org/wiki/STL_%28file_format%29#Binary_STL\">https://en.wikipedia.org/wiki/STL_%28file_format%29#Binary_STL</a></p>\\n<p>Currently there is no support for the colors provided in STL files.</p>\\n',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Models'\n              },\n              {\n                file: 'src/webgl/loading.js',\n                line: 435,\n                description:\n                  '<p>ASCII STL file starts with <code>solid &#39;nameOfFile&#39;</code>\\nThen contain the normal of the face, starting with <code>facet normal</code>\\nNext contain a keyword indicating the start of face vertex, <code>outer loop</code>\\nNext comes the three vertex, starting with <code>vertex x y z</code>\\nVertices ends with <code>endloop</code>\\nFace ends with <code>endfacet</code>\\nNext face starts with <code>facet normal</code>\\nThe end of the file is indicated by <code>endsolid</code></p>\\n',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Models'\n              },\n              {\n                file: 'src/webgl/loading.js',\n                line: 579,\n                description: '<p>Render a 3d model to the screen.</p>\\n',\n                itemtype: 'method',\n                name: 'model',\n                params: [\n                  {\n                    name: 'model',\n                    description: '<p>Loaded 3d model to be rendered</p>\\n',\n                    type: 'p5.Geometry'\n                  }\n                ],\n                example: [\n                  \"\\n<div>\\n<code>\\n//draw a spinning octahedron\\nlet octahedron;\\n\\nfunction preload() {\\n  octahedron = loadModel('assets/octahedron.obj');\\n}\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  rotateX(frameCount * 0.01);\\n  rotateY(frameCount * 0.01);\\n  model(octahedron);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'Vertically rotating 3-d octahedron.',\n                class: 'p5',\n                module: 'Shape',\n                submodule: '3D Models'\n              },\n              {\n                file: 'src/webgl/material.js',\n                line: 12,\n                description:\n                  '<p>Loads a custom shader from the provided vertex and fragment\\nshader paths. The shader files are loaded asynchronously in the\\nbackground, so this method should be used in <a href=\"#/p5/preload\">preload()</a>.</p>\\n<p>For now, there are three main types of shaders. p5 will automatically\\nsupply appropriate vertices, normals, colors, and lighting attributes\\nif the parameters defined in the shader match the names.</p>\\n',\n                itemtype: 'method',\n                name: 'loadShader',\n                params: [\n                  {\n                    name: 'vertFilename',\n                    description:\n                      '<p>path to file containing vertex shader\\nsource code</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'fragFilename',\n                    description:\n                      '<p>path to file containing fragment shader\\nsource code</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>callback to be executed after loadShader\\ncompletes. On success, the Shader object is passed as the first argument.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'errorCallback',\n                    description:\n                      '<p>callback to be executed when an error\\noccurs inside loadShader. On error, the error is passed as the first\\nargument.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'a shader object created from the provided\\nvertex and fragment shader files.',\n                  type: 'p5.Shader'\n                },\n                example: [\n                  \"\\n<div modernizr='webgl'>\\n<code>\\nlet mandel;\\nfunction preload() {\\n  // load the shader definitions from files\\n  mandel = loadShader('assets/shader.vert', 'assets/shader.frag');\\n}\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  // use the shader\\n  shader(mandel);\\n  noStroke();\\n  mandel.setUniform('p', [-0.74364388703, 0.13182590421]);\\n}\\n\\nfunction draw() {\\n  mandel.setUniform('r', 1.5 * exp(-6.5 * (1 + sin(millis() / 2000))));\\n  quad(-1, -1, 1, -1, 1, 1, -1, 1);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'zooming Mandelbrot set. a colorful, infinitely detailed fractal.',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/material.js',\n                line: 111,\n                itemtype: 'method',\n                name: 'createShader',\n                params: [\n                  {\n                    name: 'vertSrc',\n                    description: '<p>source code for the vertex shader</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'fragSrc',\n                    description: '<p>source code for the fragment shader</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                return: {\n                  description:\n                    'a shader object created from the provided\\nvertex and fragment shaders.',\n                  type: 'p5.Shader'\n                },\n                example: [\n                  \"\\n<div modernizr='webgl'>\\n<code>\\n// the 'varying's are shared between both vertex & fragment shaders\\nlet varying = 'precision highp float; varying vec2 vPos;';\\n\\n// the vertex shader is called for each vertex\\nlet vs =\\n  varying +\\n  'attribute vec3 aPosition;' +\\n  'void main() { vPos = (gl_Position = vec4(aPosition,1.0)).xy; }';\\n\\n// the fragment shader is called for each pixel\\nlet fs =\\n  varying +\\n  'uniform vec2 p;' +\\n  'uniform float r;' +\\n  'const int I = 500;' +\\n  'void main() {' +\\n  '  vec2 c = p + vPos * r, z = c;' +\\n  '  float n = 0.0;' +\\n  '  for (int i = I; i > 0; i --) {' +\\n  '    if(z.x*z.x+z.y*z.y > 4.0) {' +\\n  '      n = float(i)/float(I);' +\\n  '      break;' +\\n  '    }' +\\n  '    z = vec2(z.x*z.x-z.y*z.y, 2.0*z.x*z.y) + c;' +\\n  '  }' +\\n  '  gl_FragColor = vec4(0.5-cos(n*17.0)/2.0,0.5-cos(n*13.0)/2.0,0.5-cos(n*23.0)/2.0,1.0);' +\\n  '}';\\n\\nlet mandel;\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n\\n  // create and initialize the shader\\n  mandel = createShader(vs, fs);\\n  shader(mandel);\\n  noStroke();\\n\\n  // 'p' is the center point of the Mandelbrot image\\n  mandel.setUniform('p', [-0.74364388703, 0.13182590421]);\\n}\\n\\nfunction draw() {\\n  // 'r' is the size of the image in Mandelbrot-space\\n  mandel.setUniform('r', 1.5 * exp(-6.5 * (1 + sin(millis() / 2000))));\\n  quad(-1, -1, 1, -1, 1, 1, -1, 1);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'zooming Mandelbrot set. a colorful, infinitely detailed fractal.',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/material.js',\n                line: 179,\n                description:\n                  '<p>The <a href=\"#/p5/shader\">shader()</a> function lets the user provide a custom shader\\nto fill in shapes in WEBGL mode. Users can create their\\nown shaders by loading vertex and fragment shaders with\\n<a href=\"#/p5/loadShader\">loadShader()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'shader',\n                chainable: 1,\n                params: [\n                  {\n                    name: 's',\n                    description:\n                      '<p>the desired <a href=\"#/p5.Shader\">p5.Shader</a> to use for rendering\\nshapes.</p>\\n',\n                    type: 'p5.Shader',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div modernizr='webgl'>\\n<code>\\n// Click within the image to toggle\\n// the shader used by the quad shape\\n// Note: for an alternative approach to the same example,\\n// involving changing uniforms please refer to:\\n// https://p5js.org/reference/#/p5.Shader/setUniform\\n\\nlet redGreen;\\nlet orangeBlue;\\nlet showRedGreen = false;\\n\\nfunction preload() {\\n  // note that we are using two instances\\n  // of the same vertex and fragment shaders\\n  redGreen = loadShader('assets/shader.vert', 'assets/shader-gradient.frag');\\n  orangeBlue = loadShader('assets/shader.vert', 'assets/shader-gradient.frag');\\n}\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n\\n  // initialize the colors for redGreen shader\\n  shader(redGreen);\\n  redGreen.setUniform('colorCenter', [1.0, 0.0, 0.0]);\\n  redGreen.setUniform('colorBackground', [0.0, 1.0, 0.0]);\\n\\n  // initialize the colors for orangeBlue shader\\n  shader(orangeBlue);\\n  orangeBlue.setUniform('colorCenter', [1.0, 0.5, 0.0]);\\n  orangeBlue.setUniform('colorBackground', [0.226, 0.0, 0.615]);\\n\\n  noStroke();\\n}\\n\\nfunction draw() {\\n  // update the offset values for each shader,\\n  // moving orangeBlue in vertical and redGreen\\n  // in horizontal direction\\n  orangeBlue.setUniform('offset', [0, sin(millis() / 2000) + 1]);\\n  redGreen.setUniform('offset', [sin(millis() / 2000), 1]);\\n\\n  if (showRedGreen === true) {\\n    shader(redGreen);\\n  } else {\\n    shader(orangeBlue);\\n  }\\n  quad(-1, -1, 1, -1, 1, 1, -1, 1);\\n}\\n\\nfunction mouseClicked() {\\n  showRedGreen = !showRedGreen;\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'canvas toggles between a circular gradient of orange and blue vertically. and a circular gradient of red and green moving horizontally when mouse is clicked/pressed.',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/material.js',\n                line: 270,\n                description:\n                  '<p>This function restores the default shaders in WEBGL mode. Code that runs\\nafter resetShader() will not be affected by previously defined\\nshaders. Should be run after <a href=\"#/p5/shader\">shader()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'resetShader',\n                chainable: 1,\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/material.js',\n                line: 283,\n                description:\n                  '<p>Normal material for geometry is a material that is not affected by light.\\nIt is not reflective and is a placeholder material often used for debugging.\\nSurfaces facing the X-axis, become red, those facing the Y-axis, become green and those facing the Z-axis, become blue.\\nYou can view all possible materials in this\\n<a href=\"https://p5js.org/examples/3d-materials.html\">example</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'normalMaterial',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(200);\\n  normalMaterial();\\n  sphere(40);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'Red, green and blue gradient.',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/material.js',\n                line: 322,\n                description:\n                  '<p>Texture for geometry.  You can view other possible materials in this\\n<a href=\"https://p5js.org/examples/3d-materials.html\">example</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'texture',\n                params: [\n                  {\n                    name: 'tex',\n                    description:\n                      '<p>2-dimensional graphics\\n                   to render as texture</p>\\n',\n                    type: 'p5.Image|p5.MediaElement|p5.Graphics'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/laDefense.jpg');\\n}\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(0);\\n  rotateZ(frameCount * 0.01);\\n  rotateX(frameCount * 0.01);\\n  rotateY(frameCount * 0.01);\\n  //pass image as texture\\n  texture(img);\\n  box(200, 200, 200);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet pg;\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  pg = createGraphics(200, 200);\\n  pg.textSize(75);\\n}\\n\\nfunction draw() {\\n  background(0);\\n  pg.background(255);\\n  pg.text('hello!', 0, 100);\\n  //pass image as texture\\n  texture(pg);\\n  rotateX(0.5);\\n  noStroke();\\n  plane(50);\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\nlet vid;\\nfunction preload() {\\n  vid = createVideo('assets/fingers.mov');\\n  vid.hide();\\n}\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(0);\\n  //pass video frame as texture\\n  texture(vid);\\n  rect(-40, -40, 80, 80);\\n}\\n\\nfunction mousePressed() {\\n  vid.loop();\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'Rotating view of many images umbrella and grid roof on a 3d plane\\nblack canvas\\nblack canvas',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/material.js',\n                line: 423,\n                description:\n                  '<p>Sets the coordinate space for texture mapping. The default mode is IMAGE\\nwhich refers to the actual coordinates of the image.\\nNORMAL refers to a normalized space of values ranging from 0 to 1.\\nThis function only works in WEBGL mode.</p>\\n<p>With IMAGE, if an image is 100 x 200 pixels, mapping the image onto the entire\\nsize of a quad would require the points (0,0) (100, 0) (100,200) (0,200).\\nThe same mapping in NORMAL is (0,0) (1,0) (1,1) (0,1).</p>\\n',\n                itemtype: 'method',\n                name: 'textureMode',\n                params: [\n                  {\n                    name: 'mode',\n                    description: '<p>either IMAGE or NORMAL</p>\\n',\n                    type: 'Constant'\n                  }\n                ],\n                example: [\n                  \"\\n<div>\\n<code>\\nlet img;\\n\\nfunction preload() {\\n  img = loadImage('assets/laDefense.jpg');\\n}\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  texture(img);\\n  textureMode(NORMAL);\\n  beginShape();\\n  vertex(-50, -50, 0, 0);\\n  vertex(50, -50, 1, 0);\\n  vertex(50, 50, 1, 1);\\n  vertex(-50, 50, 0, 1);\\n  endShape();\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'the underside of a white umbrella and gridded ceiling above',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/material.js',\n                line: 502,\n                description:\n                  '<p>Sets the global texture wrapping mode. This controls how textures behave\\nwhen their uv&#39;s go outside of the 0 - 1 range. There are three options:\\nCLAMP, REPEAT, and MIRROR.</p>\\n<p>CLAMP causes the pixels at the edge of the texture to extend to the bounds\\nREPEAT causes the texture to tile repeatedly until reaching the bounds\\nMIRROR works similarly to REPEAT but it flips the texture with every new tile</p>\\n<p>REPEAT &amp; MIRROR are only available if the texture\\nis a power of two size (128, 256, 512, 1024, etc.).</p>\\n<p>This method will affect all textures in your sketch until a subsequent\\ntextureWrap call is made.</p>\\n<p>If only one argument is provided, it will be applied to both the\\nhorizontal and vertical axes.</p>\\n',\n                itemtype: 'method',\n                name: 'textureWrap',\n                params: [\n                  {\n                    name: 'wrapX',\n                    description: '<p>either CLAMP, REPEAT, or MIRROR</p>\\n',\n                    type: 'Constant'\n                  },\n                  {\n                    name: 'wrapY',\n                    description: '<p>either CLAMP, REPEAT, or MIRROR</p>\\n',\n                    type: 'Constant',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div>\\n<code>\\nlet img;\\nfunction preload() {\\n  img = loadImage('assets/rockies128.jpg');\\n}\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  textureWrap(MIRROR);\\n}\\n\\nfunction draw() {\\n  background(0);\\n\\n  let dX = mouseX;\\n  let dY = mouseY;\\n\\n  let u = lerp(1.0, 2.0, dX);\\n  let v = lerp(1.0, 2.0, dY);\\n\\n  scale(width / 2);\\n\\n  texture(img);\\n\\n  beginShape(TRIANGLES);\\n  vertex(-1, -1, 0, 0, 0);\\n  vertex(1, -1, 0, u, 0);\\n  vertex(1, 1, 0, u, v);\\n\\n  vertex(1, 1, 0, u, v);\\n  vertex(-1, 1, 0, 0, v);\\n  vertex(-1, -1, 0, 0, 0);\\n  endShape();\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'an image of the rocky mountains repeated in mirrored tiles',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/material.js',\n                line: 575,\n                description:\n                  '<p>Ambient material for geometry with a given color. Ambient material defines the color the object reflects under any lighting.\\nFor example, if the ambient material of an object is pure red, but the ambient lighting only contains green, the object will not reflect any light.\\nHere&#39;s an <a href=\"https://p5js.org/examples/3d-materials.html\">example containing all possible materials</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'ambientMaterial',\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(0);\\n  noStroke();\\n  ambientLight(200);\\n  ambientMaterial(70, 130, 230);\\n  sphere(40);\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\n// ambientLight is both red and blue (magenta),\\n// so object only reflects it's red and blue components\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(70);\\n  ambientLight(100); // white light\\n  ambientMaterial(255, 0, 255); // pink material\\n  box(30);\\n}\\n</code>\\n</div>\\n<div>\\n<code>\\n// ambientLight is green. Since object does not contain\\n// green, it does not reflect any light\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(70);\\n  ambientLight(0, 255, 0); // green light\\n  ambientMaterial(255, 0, 255); // pink material\\n  box(30);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'radiating light source from top right of canvas\\nbox reflecting only red and blue light\\nbox reflecting no light',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Material',\n                overloads: [\n                  {\n                    line: 575,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>gray value, red or hue value\\n                        (depending on the current color mode),</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description: '<p>green or saturation value</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'v3',\n                        description: '<p>blue or brightness value</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 635,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '<p>color, color Array, or CSS color string</p>\\n',\n                        type: 'Number[]|String|p5.Color'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/webgl/material.js',\n                line: 655,\n                description:\n                  '<p>Sets the emissive color of the material used for geometry drawn to\\nthe screen. This is a misnomer in the sense that the material does not\\nactually emit light that effects surrounding polygons. Instead,\\nit gives the appearance that the object is glowing. An emissive material\\nwill display at full strength even if there is no light for it to reflect.</p>\\n',\n                itemtype: 'method',\n                name: 'emissiveMaterial',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(0);\\n  noStroke();\\n  ambientLight(0);\\n  emissiveMaterial(130, 230, 0);\\n  sphere(40);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'radiating light source from top right of canvas',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Material',\n                overloads: [\n                  {\n                    line: 655,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>gray value, red or hue value\\n                        (depending on the current color mode),</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description: '<p>green or saturation value</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'v3',\n                        description: '<p>blue or brightness value</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'a',\n                        description: '<p>opacity</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 687,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '<p>color, color Array, or CSS color string</p>\\n',\n                        type: 'Number[]|String|p5.Color'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/webgl/material.js',\n                line: 707,\n                description:\n                  '<p>Specular material for geometry with a given color. Specular material is a shiny reflective material.\\nLike ambient material it also defines the color the object reflects under ambient lighting.\\nFor example, if the specular material of an object is pure red, but the ambient lighting only contains green, the object will not reflect any light.\\nFor all other types of light like point and directional light, a specular material will reflect the color of the light source to the viewer.\\nHere&#39;s an <a href=\"https://p5js.org/examples/3d-materials.html\">example containing all possible materials</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'specularMaterial',\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(0);\\n  ambientLight(50);\\n  pointLight(250, 250, 250, 100, 100, 30);\\n  specularMaterial(250);\\n  sphere(40);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'diffused radiating light source from top right of canvas',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Material',\n                overloads: [\n                  {\n                    line: 707,\n                    params: [\n                      {\n                        name: 'v1',\n                        description:\n                          '<p>gray value, red or hue value\\n                      (depending on the current color mode),</p>\\n',\n                        type: 'Number'\n                      },\n                      {\n                        name: 'v2',\n                        description: '<p>green or saturation value</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      },\n                      {\n                        name: 'v3',\n                        description: '<p>blue or brightness value</p>\\n',\n                        type: 'Number',\n                        optional: true\n                      }\n                    ],\n                    chainable: 1\n                  },\n                  {\n                    line: 737,\n                    params: [\n                      {\n                        name: 'color',\n                        description: '<p>color Array, or CSS color string</p>\\n',\n                        type: 'Number[]|String|p5.Color'\n                      }\n                    ],\n                    chainable: 1\n                  }\n                ]\n              },\n              {\n                file: 'src/webgl/material.js',\n                line: 757,\n                description:\n                  '<p>Sets the amount of gloss in the surface of shapes.\\nUsed in combination with specularMaterial() in setting\\nthe material properties of shapes. The default and minimum value is 1.</p>\\n',\n                itemtype: 'method',\n                name: 'shininess',\n                params: [\n                  {\n                    name: 'shine',\n                    description:\n                      '<p>Degree of Shininess.\\n                      Defaults to 1.</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(0);\\n  noStroke();\\n  let locX = mouseX - width / 2;\\n  let locY = mouseY - height / 2;\\n  ambientLight(60, 60, 60);\\n  pointLight(255, 255, 255, locX, locY, 50);\\n  specularMaterial(250);\\n  translate(-25, 0, 0);\\n  shininess(1);\\n  sphere(20);\\n  translate(50, 0, 0);\\n  shininess(20);\\n  sphere(20);\\n}\\n</code>\\n</div>'\n                ],\n                alt: 'Shininess on Camera changes position with mouse',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 13,\n                description:\n                  '<p>Sets the camera position for a 3D sketch. Parameters for this function define\\nthe position for the camera, the center of the sketch (where the camera is\\npointing), and an up direction (the orientation of the camera).</p>\\n<p>This function simulates the movements of the camera, allowing objects to be\\nviewed from various angles. Remember, it does not move the objects themselves\\nbut the camera instead. For example when centerX value is positive, the camera\\nis rotating to the right side of the sketch, so the object would seem like\\nmoving to the left.</p>\\n<p>See this <a href = \"https://www.openprocessing.org/sketch/740258\">example</a> to view the position of your camera.</p>\\n<p>When called with no arguments, this function creates a default camera\\nequivalent to\\ncamera(0, 0, (height/2.0) / tan(PI*30.0 / 180.0), 0, 0, 0, 0, 1, 0);</p>\\n',\n                itemtype: 'method',\n                name: 'camera',\n                is_constructor: 1,\n                params: [\n                  {\n                    name: 'x',\n                    description: '<p>camera position value on x axis</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>camera position value on y axis</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'z',\n                    description: '<p>camera position value on z axis</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'centerX',\n                    description: '<p>x coordinate representing center of the sketch</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'centerY',\n                    description: '<p>y coordinate representing center of the sketch</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'centerZ',\n                    description: '<p>z coordinate representing center of the sketch</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'upX',\n                    description:\n                      '<p>x component of direction &#39;up&#39; from camera</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'upY',\n                    description:\n                      '<p>y component of direction &#39;up&#39; from camera</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'upZ',\n                    description:\n                      '<p>z component of direction &#39;up&#39; from camera</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\nfunction draw() {\\n  background(204);\\n  //move the camera away from the plane by a sin wave\\n  camera(0, 0, 20 + sin(frameCount * 0.01) * 10, 0, 0, 0, 0, 1, 0);\\n  plane(10, 10);\\n}\\n</code>\\n</div>',\n                  \"\\n<div>\\n<code>\\n//move slider to see changes!\\n//sliders control the first 6 parameters of camera()\\nlet sliderGroup = [];\\nlet X;\\nlet Y;\\nlet Z;\\nlet centerX;\\nlet centerY;\\nlet centerZ;\\nlet h = 20;\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  //create sliders\\n  for (var i = 0; i < 6; i++) {\\n    if (i === 2) {\\n      sliderGroup[i] = createSlider(10, 400, 200);\\n    } else {\\n      sliderGroup[i] = createSlider(-400, 400, 0);\\n    }\\n    h = map(i, 0, 6, 5, 85);\\n    sliderGroup[i].position(10, height + h);\\n    sliderGroup[i].style('width', '80px');\\n  }\\n}\\n\\nfunction draw() {\\n  background(60);\\n  // assigning sliders' value to each parameters\\n  X = sliderGroup[0].value();\\n  Y = sliderGroup[1].value();\\n  Z = sliderGroup[2].value();\\n  centerX = sliderGroup[3].value();\\n  centerY = sliderGroup[4].value();\\n  centerZ = sliderGroup[5].value();\\n  camera(X, Y, Z, centerX, centerY, centerZ, 0, 1, 0);\\n  stroke(255);\\n  fill(255, 102, 94);\\n  box(85);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'White square repeatedly grows to fill canvas and then shrinks.',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 113,\n                description:\n                  '<p>Sets a perspective projection for the camera in a 3D sketch. This projection\\nrepresents depth through foreshortening: objects that are close to the camera\\nappear their actual size while those that are further away from the camera\\nappear smaller. The parameters to this function define the viewing frustum\\n(the truncated pyramid within which objects are seen by the camera) through\\nvertical field of view, aspect ratio (usually width/height), and near and far\\nclipping planes.</p>\\n<p>When called with no arguments, the defaults\\nprovided are equivalent to\\nperspective(PI/3.0, width/height, eyeZ/10.0, eyeZ<em>10.0), where eyeZ\\nis equal to ((height/2.0) / tan(PI</em>60.0/360.0));</p>\\n',\n                itemtype: 'method',\n                name: 'perspective',\n                params: [\n                  {\n                    name: 'fovy',\n                    description:\n                      '<p>camera frustum vertical field of view,\\n                          from bottom to top of view, in <a href=\"#/p5/angleMode\">angleMode</a> units</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'aspect',\n                    description: '<p>camera frustum aspect ratio</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'near',\n                    description: '<p>frustum near plane length</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'far',\n                    description: '<p>frustum far plane length</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  '\\n<div>\\n<code>\\n//drag the mouse to look around!\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  perspective(PI / 3.0, width / height, 0.1, 500);\\n}\\nfunction draw() {\\n  background(200);\\n  orbitControl();\\n  normalMaterial();\\n\\n  rotateX(-0.3);\\n  rotateY(-0.2);\\n  translate(0, 0, -50);\\n\\n  push();\\n  translate(-15, 0, sin(frameCount / 30) * 95);\\n  box(30);\\n  pop();\\n  push();\\n  translate(15, 0, sin(frameCount / 30 + PI) * 95);\\n  box(30);\\n  pop();\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'two colored 3D boxes move back and forth, rotating as mouse is dragged.',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 174,\n                description:\n                  '<p>Sets an orthographic projection for the camera in a 3D sketch and defines a\\nbox-shaped viewing frustum within which objects are seen. In this projection,\\nall objects with the same dimension appear the same size, regardless of\\nwhether they are near or far from the camera. The parameters to this\\nfunction specify the viewing frustum where left and right are the minimum and\\nmaximum x values, top and bottom are the minimum and maximum y values, and near\\nand far are the minimum and maximum z values. If no parameters are given, the\\ndefault is used: ortho(-width/2, width/2, -height/2, height/2).</p>\\n',\n                itemtype: 'method',\n                name: 'ortho',\n                params: [\n                  {\n                    name: 'left',\n                    description: '<p>camera frustum left plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'right',\n                    description: '<p>camera frustum right plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'bottom',\n                    description: '<p>camera frustum bottom plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'top',\n                    description: '<p>camera frustum top plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'near',\n                    description: '<p>camera frustum near plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'far',\n                    description: '<p>camera frustum far plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\n//drag the mouse to look around!\\n//there's no vanishing point\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  ortho(-width / 2, width / 2, height / 2, -height / 2, 0, 500);\\n}\\nfunction draw() {\\n  background(200);\\n  orbitControl();\\n  normalMaterial();\\n\\n  rotateX(0.2);\\n  rotateY(-0.2);\\n  push();\\n  translate(-15, 0, sin(frameCount / 30) * 65);\\n  box(30);\\n  pop();\\n  push();\\n  translate(15, 0, sin(frameCount / 30 + PI) * 65);\\n  box(30);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'two 3D boxes move back and forth along same plane, rotating as mouse is dragged.',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 231,\n                description:\n                  '<p>Sets a perspective matrix as defined by the parameters.</p>\\n<p>A frustum is a geometric form: a pyramid with its top\\ncut off. With the viewer&#39;s eye at the imaginary top of\\nthe pyramid, the six planes of the frustum act as clipping\\nplanes when rendering a 3D view. Thus, any form inside the\\nclipping planes is visible; anything outside\\nthose planes is not visible.</p>\\n<p>Setting the frustum changes the perspective of the scene being rendered.\\nThis can be achieved more simply in many cases by using\\n<a href=\"https://p5js.org/reference/#/p5/perspective\">perspective()</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'frustum',\n                params: [\n                  {\n                    name: 'left',\n                    description: '<p>camera frustum left plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'right',\n                    description: '<p>camera frustum right plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'bottom',\n                    description: '<p>camera frustum bottom plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'top',\n                    description: '<p>camera frustum top plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'near',\n                    description: '<p>camera frustum near plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'far',\n                    description: '<p>camera frustum far plane</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                chainable: 1,\n                example: [\n                  \"\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  setAttributes('antialias', true);\\n  frustum(-0.1, 0.1, -0.1, 0.1, 0.1, 200);\\n}\\nfunction draw() {\\n  background(200);\\n  orbitControl();\\n  strokeWeight(10);\\n  stroke(0, 0, 255);\\n  noFill();\\n\\n  rotateY(-0.2);\\n  rotateX(-0.3);\\n  push();\\n  translate(-15, 0, sin(frameCount / 30) * 25);\\n  box(30);\\n  pop();\\n  push();\\n  translate(15, 0, sin(frameCount / 30 + PI) * 25);\\n  box(30);\\n  pop();\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'two 3D boxes move back and forth along same plane, rotating as mouse is dragged.',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 298,\n                description:\n                  '<p>Creates a new <a href=\"#/p5.Camera\">p5.Camera</a> object and tells the\\nrenderer to use that camera.\\nReturns the p5.Camera object.</p>\\n',\n                itemtype: 'method',\n                name: 'createCamera',\n                return: {\n                  description: 'The newly created camera object.',\n                  type: 'p5.Camera'\n                },\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 409,\n                description:\n                  '<p>Sets a perspective projection for a p5.Camera object and sets parameters\\nfor that projection according to <a href=\"#/p5/perspective\">perspective()</a>\\nsyntax.</p>\\n',\n                itemtype: 'method',\n                name: 'perspective',\n                class: 'p5.Camera',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 489,\n                description:\n                  '<p>Sets an orthographic projection for a p5.Camera object and sets parameters\\nfor that projection according to <a href=\"#/p5/ortho\">ortho()</a> syntax.</p>\\n',\n                itemtype: 'method',\n                name: 'ortho',\n                class: 'p5.Camera',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 548,\n                itemtype: 'method',\n                name: 'frustum',\n                class: 'p5.Camera',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 653,\n                description:\n                  '<p>Panning rotates the camera view to the left and right.</p>\\n',\n                itemtype: 'method',\n                name: 'pan',\n                params: [\n                  {\n                    name: 'angle',\n                    description:\n                      '<p>amount to rotate camera in current\\n<a href=\"#/p5/angleMode\">angleMode</a> units.\\nGreater than 0 values rotate counterclockwise (to the left).</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div>\\n<code>\\nlet cam;\\nlet delta = 0.01;\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  normalMaterial();\\n  cam = createCamera();\\n  // set initial pan angle\\n  cam.pan(-0.8);\\n}\\n\\nfunction draw() {\\n  background(200);\\n\\n  // pan camera according to angle 'delta'\\n  cam.pan(delta);\\n\\n  // every 160 frames, switch direction\\n  if (frameCount % 160 === 0) {\\n    delta *= -1;\\n  }\\n\\n  rotateX(frameCount * 0.01);\\n  translate(-100, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'camera view pans left and right across a series of rotating 3D boxes.',\n                class: 'p5.Camera',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 712,\n                description: '<p>Tilting rotates the camera view up and down.</p>\\n',\n                itemtype: 'method',\n                name: 'tilt',\n                params: [\n                  {\n                    name: 'angle',\n                    description:\n                      '<p>amount to rotate camera in current\\n<a href=\"#/p5/angleMode\">angleMode</a> units.\\nGreater than 0 values rotate counterclockwise (to the left).</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div>\\n<code>\\nlet cam;\\nlet delta = 0.01;\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  normalMaterial();\\n  cam = createCamera();\\n  // set initial tilt\\n  cam.tilt(-0.8);\\n}\\n\\nfunction draw() {\\n  background(200);\\n\\n  // pan camera according to angle 'delta'\\n  cam.tilt(delta);\\n\\n  // every 160 frames, switch direction\\n  if (frameCount % 160 === 0) {\\n    delta *= -1;\\n  }\\n\\n  rotateY(frameCount * 0.01);\\n  translate(0, -100, 0);\\n  box(20);\\n  translate(0, 35, 0);\\n  box(20);\\n  translate(0, 35, 0);\\n  box(20);\\n  translate(0, 35, 0);\\n  box(20);\\n  translate(0, 35, 0);\\n  box(20);\\n  translate(0, 35, 0);\\n  box(20);\\n  translate(0, 35, 0);\\n  box(20);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'camera view tilts up and down across a series of rotating 3D boxes.',\n                class: 'p5.Camera',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 770,\n                description:\n                  '<p>Reorients the camera to look at a position in world space.</p>\\n',\n                itemtype: 'method',\n                name: 'lookAt',\n                params: [\n                  {\n                    name: 'x',\n                    description: '<p>x position of a point in world space</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y position of a point in world space</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'z',\n                    description: '<p>z position of a point in world space</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\nlet cam;\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  normalMaterial();\\n  cam = createCamera();\\n}\\n\\nfunction draw() {\\n  background(200);\\n\\n  // look at a new random point every 60 frames\\n  if (frameCount % 60 === 0) {\\n    cam.lookAt(random(-100, 100), random(-50, 50), 0);\\n  }\\n\\n  rotateX(frameCount * 0.01);\\n  translate(-100, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'camera view of rotating 3D cubes changes to look at a new random\\npoint every second .',\n                class: 'p5.Camera',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 837,\n                description:\n                  '<p>Sets a camera&#39;s position and orientation.  This is equivalent to calling\\n<a href=\"#/p5/camera\">camera()</a> on a p5.Camera object.</p>\\n',\n                itemtype: 'method',\n                name: 'camera',\n                class: 'p5.Camera',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 918,\n                description:\n                  '<p>Move camera along its local axes while maintaining current camera orientation.</p>\\n',\n                itemtype: 'method',\n                name: 'move',\n                params: [\n                  {\n                    name: 'x',\n                    description:\n                      '<p>amount to move along camera&#39;s left-right axis</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>amount to move along camera&#39;s up-down axis</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'z',\n                    description:\n                      '<p>amount to move along camera&#39;s forward-backward axis</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\n// see the camera move along its own axes while maintaining its orientation\\nlet cam;\\nlet delta = 0.5;\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  normalMaterial();\\n  cam = createCamera();\\n}\\n\\nfunction draw() {\\n  background(200);\\n\\n  // move the camera along its local axes\\n  cam.move(delta, delta, 0);\\n\\n  // every 100 frames, switch direction\\n  if (frameCount % 150 === 0) {\\n    delta *= -1;\\n  }\\n\\n  translate(-10, -10, 0);\\n  box(50, 8, 50);\\n  translate(15, 15, 0);\\n  box(50, 8, 50);\\n  translate(15, 15, 0);\\n  box(50, 8, 50);\\n  translate(15, 15, 0);\\n  box(50, 8, 50);\\n  translate(15, 15, 0);\\n  box(50, 8, 50);\\n  translate(15, 15, 0);\\n  box(50, 8, 50);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'camera view moves along a series of 3D boxes, maintaining the same\\norientation throughout the move',\n                class: 'p5.Camera',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 990,\n                description:\n                  '<p>Set camera position in world-space while maintaining current camera\\norientation.</p>\\n',\n                itemtype: 'method',\n                name: 'setPosition',\n                params: [\n                  {\n                    name: 'x',\n                    description: '<p>x position of a point in world space</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'y',\n                    description: '<p>y position of a point in world space</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'z',\n                    description: '<p>z position of a point in world space</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div>\\n<code>\\n// press '1' '2' or '3' keys to set camera position\\n\\nlet cam;\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  normalMaterial();\\n  cam = createCamera();\\n}\\n\\nfunction draw() {\\n  background(200);\\n\\n  // '1' key\\n  if (keyIsDown(49)) {\\n    cam.setPosition(30, 0, 80);\\n  }\\n  // '2' key\\n  if (keyIsDown(50)) {\\n    cam.setPosition(0, 0, 80);\\n  }\\n  // '3' key\\n  if (keyIsDown(51)) {\\n    cam.setPosition(-30, 0, 80);\\n  }\\n\\n  box(20);\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'camera position changes as the user presses keys, altering view of a 3D box',\n                class: 'p5.Camera',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Camera.js',\n                line: 1255,\n                description:\n                  '<p>Sets rendererGL&#39;s current camera to a p5.Camera object.  Allows switching\\nbetween multiple cameras.</p>\\n',\n                itemtype: 'method',\n                name: 'setCamera',\n                params: [\n                  {\n                    name: 'cam',\n                    description: '<p>p5.Camera object</p>\\n',\n                    type: 'p5.Camera'\n                  }\n                ],\n                example: [\n                  '\\n<div>\\n<code>\\nlet cam1, cam2;\\nlet currentCamera;\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  normalMaterial();\\n\\n  cam1 = createCamera();\\n  cam2 = createCamera();\\n  cam2.setPosition(30, 0, 50);\\n  cam2.lookAt(0, 0, 0);\\n  cam2.ortho();\\n\\n  // set variable for previously active camera:\\n  currentCamera = 1;\\n}\\n\\nfunction draw() {\\n  background(200);\\n\\n  // camera 1:\\n  cam1.lookAt(0, 0, 0);\\n  cam1.setPosition(sin(frameCount / 60) * 200, 0, 100);\\n\\n  // every 100 frames, switch between the two cameras\\n  if (frameCount % 100 === 0) {\\n    if (currentCamera === 1) {\\n      setCamera(cam1);\\n      currentCamera = 0;\\n    } else {\\n      setCamera(cam2);\\n      currentCamera = 1;\\n    }\\n  }\\n\\n  drawBoxes();\\n}\\n\\nfunction drawBoxes() {\\n  rotateX(frameCount * 0.01);\\n  translate(-100, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n  translate(35, 0, 0);\\n  box(20);\\n}\\n</code>\\n</div>'\n                ],\n                alt:\n                  'Canvas switches between two camera views, each showing a series of spinning\\n3D boxes.',\n                class: 'p5',\n                module: 'Lights, Camera',\n                submodule: 'Camera'\n              },\n              {\n                file: 'src/webgl/p5.Geometry.js',\n                line: 72,\n                itemtype: 'method',\n                name: 'computeFaces',\n                chainable: 1,\n                class: 'p5.Geometry',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/p5.Geometry.js',\n                line: 114,\n                description:\n                  '<p>computes smooth normals per vertex as an average of each\\nface.</p>\\n',\n                itemtype: 'method',\n                name: 'computeNormals',\n                chainable: 1,\n                class: 'p5.Geometry',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/p5.Geometry.js',\n                line: 153,\n                description:\n                  '<p>Averages the vertex normals. Used in curved\\nsurfaces</p>\\n',\n                itemtype: 'method',\n                name: 'averageNormals',\n                chainable: 1,\n                class: 'p5.Geometry',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/p5.Geometry.js',\n                line: 174,\n                description:\n                  '<p>Averages pole normals.  Used in spherical primitives</p>\\n',\n                itemtype: 'method',\n                name: 'averagePoleNormals',\n                chainable: 1,\n                class: 'p5.Geometry',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/p5.Geometry.js',\n                line: 267,\n                description:\n                  '<p>Modifies all vertices to be centered within the range -100 to 100.</p>\\n',\n                itemtype: 'method',\n                name: 'normalize',\n                chainable: 1,\n                class: 'p5.Geometry',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'src/webgl/p5.RendererGL.js',\n                line: 331,\n                description:\n                  '<p>Set attributes for the WebGL Drawing context.\\nThis is a way of adjusting how the WebGL\\nrenderer works to fine-tune the display and performance.\\n<br><br>\\nNote that this will reinitialize the drawing context\\nif called after the WebGL canvas is made.\\n<br><br>\\nIf an object is passed as the parameter, all attributes\\nnot declared in the object will be set to defaults.\\n<br><br>\\nThe available attributes are:\\n<br>\\nalpha - indicates if the canvas contains an alpha buffer\\ndefault is true\\n<br><br>\\ndepth - indicates whether the drawing buffer has a depth buffer\\nof at least 16 bits - default is true\\n<br><br>\\nstencil - indicates whether the drawing buffer has a stencil buffer\\nof at least 8 bits\\n<br><br>\\nantialias - indicates whether or not to perform anti-aliasing\\ndefault is false (true in Safari)\\n<br><br>\\npremultipliedAlpha - indicates that the page compositor will assume\\nthe drawing buffer contains colors with pre-multiplied alpha\\ndefault is false\\n<br><br>\\npreserveDrawingBuffer - if true the buffers will not be cleared and\\nand will preserve their values until cleared or overwritten by author\\n(note that p5 clears automatically on draw loop)\\ndefault is true\\n<br><br>\\nperPixelLighting - if true, per-pixel lighting will be used in the\\nlighting shader otherwise per-vertex lighting is used.\\ndefault is true.\\n<br><br></p>\\n',\n                itemtype: 'method',\n                name: 'setAttributes',\n                example: [\n                  \"\\n<div>\\n<code>\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(255);\\n  push();\\n  rotateZ(frameCount * 0.02);\\n  rotateX(frameCount * 0.02);\\n  rotateY(frameCount * 0.02);\\n  fill(0, 0, 0);\\n  box(50);\\n  pop();\\n}\\n</code>\\n</div>\\n<br>\\nNow with the antialias attribute set to true.\\n<br>\\n<div>\\n<code>\\nfunction setup() {\\n  setAttributes('antialias', true);\\n  createCanvas(100, 100, WEBGL);\\n}\\n\\nfunction draw() {\\n  background(255);\\n  push();\\n  rotateZ(frameCount * 0.02);\\n  rotateX(frameCount * 0.02);\\n  rotateY(frameCount * 0.02);\\n  fill(0, 0, 0);\\n  box(50);\\n  pop();\\n}\\n</code>\\n</div>\\n\\n<div>\\n<code>\\n// press the mouse button to disable perPixelLighting\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  noStroke();\\n  fill(255);\\n}\\n\\nlet lights = [\\n  { c: '#f00', t: 1.12, p: 1.91, r: 0.2 },\\n  { c: '#0f0', t: 1.21, p: 1.31, r: 0.2 },\\n  { c: '#00f', t: 1.37, p: 1.57, r: 0.2 },\\n  { c: '#ff0', t: 1.12, p: 1.91, r: 0.7 },\\n  { c: '#0ff', t: 1.21, p: 1.31, r: 0.7 },\\n  { c: '#f0f', t: 1.37, p: 1.57, r: 0.7 }\\n];\\n\\nfunction draw() {\\n  let t = millis() / 1000 + 1000;\\n  background(0);\\n  directionalLight(color('#222'), 1, 1, 1);\\n\\n  for (let i = 0; i < lights.length; i++) {\\n    let light = lights[i];\\n    pointLight(\\n      color(light.c),\\n      p5.Vector.fromAngles(t * light.t, t * light.p, width * light.r)\\n    );\\n  }\\n\\n  specularMaterial(255);\\n  sphere(width * 0.1);\\n\\n  rotateX(t * 0.77);\\n  rotateY(t * 0.83);\\n  rotateZ(t * 0.91);\\n  torus(width * 0.3, width * 0.07, 24, 10);\\n}\\n\\nfunction mousePressed() {\\n  setAttributes('perPixelLighting', false);\\n  noStroke();\\n  fill(255);\\n}\\nfunction mouseReleased() {\\n  setAttributes('perPixelLighting', true);\\n  noStroke();\\n  fill(255);\\n}\\n</code>\\n</div>\"\n                ],\n                alt: 'a rotating cube with smoother edges',\n                class: 'p5',\n                module: 'Rendering',\n                submodule: 'Rendering',\n                overloads: [\n                  {\n                    line: 331,\n                    params: [\n                      {\n                        name: 'key',\n                        description: '<p>Name of attribute</p>\\n',\n                        type: 'String'\n                      },\n                      {\n                        name: 'value',\n                        description: '<p>New value of named attribute</p>\\n',\n                        type: 'Boolean'\n                      }\n                    ]\n                  },\n                  {\n                    line: 470,\n                    params: [\n                      {\n                        name: 'obj',\n                        description: '<p>object with key-value pairs</p>\\n',\n                        type: 'Object'\n                      }\n                    ]\n                  }\n                ]\n              },\n              {\n                file: 'src/webgl/p5.Shader.js',\n                line: 293,\n                description:\n                  '<p>Wrapper around gl.uniform functions.\\nAs we store uniform info in the shader we can use that\\nto do type checking on the supplied data and call\\nthe appropriate function.</p>\\n',\n                itemtype: 'method',\n                name: 'setUniform',\n                chainable: 1,\n                params: [\n                  {\n                    name: 'uniformName',\n                    description: '<p>the name of the uniform in the\\nshader program</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'data',\n                    description:\n                      '<p>the data to be associated\\nwith that uniform; type varies (could be a single numerical value, array,\\nmatrix, or texture / sampler reference)</p>\\n',\n                    type: 'Object|Number|Boolean|Number[]'\n                  }\n                ],\n                example: [\n                  \"\\n<div modernizr='webgl'>\\n<code>\\n// Click within the image to toggle the value of uniforms\\n// Note: for an alternative approach to the same example,\\n// involving toggling between shaders please refer to:\\n// https://p5js.org/reference/#/p5/shader\\n\\nlet grad;\\nlet showRedGreen = false;\\n\\nfunction preload() {\\n  // note that we are using two instances\\n  // of the same vertex and fragment shaders\\n  grad = loadShader('assets/shader.vert', 'assets/shader-gradient.frag');\\n}\\n\\nfunction setup() {\\n  createCanvas(100, 100, WEBGL);\\n  shader(grad);\\n  noStroke();\\n}\\n\\nfunction draw() {\\n  // update the offset values for each scenario,\\n  // moving the \\\"grad\\\" shader in either vertical or\\n  // horizontal direction each with differing colors\\n\\n  if (showRedGreen === true) {\\n    grad.setUniform('colorCenter', [1, 0, 0]);\\n    grad.setUniform('colorBackground', [0, 1, 0]);\\n    grad.setUniform('offset', [sin(millis() / 2000), 1]);\\n  } else {\\n    grad.setUniform('colorCenter', [1, 0.5, 0]);\\n    grad.setUniform('colorBackground', [0.226, 0, 0.615]);\\n    grad.setUniform('offset', [0, sin(millis() / 2000) + 1]);\\n  }\\n  quad(-1, -1, 1, -1, 1, 1, -1, 1);\\n}\\n\\nfunction mouseClicked() {\\n  showRedGreen = !showRedGreen;\\n}\\n</code>\\n</div>\"\n                ],\n                alt:\n                  'canvas toggles between a circular gradient of orange and blue vertically. and a circular gradient of red and green moving horizontally when mouse is clicked/pressed.',\n                class: 'p5.Shader',\n                module: 'Lights, Camera',\n                submodule: 'Material'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1,\n                class: 'p5.sound',\n                module: 'Lights, Camera'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 52,\n                description:\n                  '<p>p5.sound \\n<a href=\"https://p5js.org/reference/#/libraries/p5.sound\">https://p5js.org/reference/#/libraries/p5.sound</a></p>\\n<p>From the Processing Foundation and contributors\\n<a href=\"https://github.com/processing/p5.js-sound/graphs/contributors\">https://github.com/processing/p5.js-sound/graphs/contributors</a></p>\\n<p>MIT License (MIT)\\n<a href=\"https://github.com/processing/p5.js-sound/blob/master/LICENSE\">https://github.com/processing/p5.js-sound/blob/master/LICENSE</a></p>\\n<p>Some of the many audio libraries &amp; resources that inspire p5.sound:</p>\\n<ul>\\n<li><p>TONE.js (c) Yotam Mann. Licensed under The MIT License (MIT). <a href=\"https://github.com/TONEnoTONE/Tone.js\">https://github.com/TONEnoTONE/Tone.js</a></p>\\n</li>\\n<li><p>buzz.js (c) Jay Salvat. Licensed under The MIT License (MIT). <a href=\"http://buzz.jaysalvat.com/\">http://buzz.jaysalvat.com/</a></p>\\n</li>\\n<li><p>Boris Smus Web Audio API book, 2013. Licensed under the Apache License <a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a></p>\\n</li>\\n<li><p>wavesurfer.js <a href=\"https://github.com/katspaugh/wavesurfer.js\">https://github.com/katspaugh/wavesurfer.js</a></p>\\n</li>\\n<li><p>Web Audio Components by Jordan Santell <a href=\"https://github.com/web-audio-components\">https://github.com/web-audio-components</a></p>\\n</li>\\n<li><p>Wilm Thoben&#39;s Sound library for Processing <a href=\"https://github.com/processing/processing/tree/master/java/libraries/sound\">https://github.com/processing/processing/tree/master/java/libraries/sound</a></p>\\n<p>Web Audio API: <a href=\"http://w3.org/TR/webaudio/\">http://w3.org/TR/webaudio/</a></p>\\n</li>\\n</ul>\\n',\n                class: 'p5.sound',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 166,\n                description:\n                  '<p>Returns a number representing the master amplitude (volume) for sound\\nin this sketch.</p>\\n',\n                itemtype: 'method',\n                name: 'getMasterVolume',\n                return: {\n                  description:\n                    'Master amplitude (volume) for sound in this sketch.\\n                 Should be between 0.0 (silence) and 1.0.',\n                  type: 'Number'\n                },\n                class: 'p5.sound',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 178,\n                description:\n                  \"<p>Scale the output of all sound in this sketch</p>\\nScaled between 0.0 (silence) and 1.0 (full volume).\\n1.0 is the maximum amplitude of a digital sound, so multiplying\\nby greater than 1.0 may cause digital distortion. To\\nfade, provide a <code>rampTime</code> parameter. For more\\ncomplex fades, see the Envelope class.\\n\\n<p>Alternately, you can pass in a signal source such as an\\noscillator to modulate the amplitude with an audio signal.</p>\\n<p><b>How This Works</b>: When you load the p5.sound module, it\\ncreates a single instance of p5sound. All sound objects in this\\nmodule output to p5sound before reaching your computer's output.\\nSo if you change the amplitude of p5sound, it impacts all of the\\nsound in this module.</p>\\n\\n<p>If no value is provided, returns a Web Audio API Gain Node</p>\",\n                itemtype: 'method',\n                name: 'masterVolume',\n                params: [\n                  {\n                    name: 'volume',\n                    description:\n                      '<p>Volume (amplitude) between 0.0\\n                                   and 1.0 or modulating signal/oscillator</p>\\n',\n                    type: 'Number|Object'\n                  },\n                  {\n                    name: 'rampTime',\n                    description: '<p>Fade for t seconds</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>Schedule this event to happen at\\n                               t seconds in the future</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.sound',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 221,\n                description:\n                  '<p><code>p5.soundOut</code> is the p5.sound master output. It sends output to\\nthe destination of this window&#39;s web audio context. It contains\\nWeb Audio API nodes including a dyanmicsCompressor (<code>.limiter</code>),\\nand Gain Nodes for <code>.input</code> and <code>.output</code>.</p>\\n',\n                itemtype: 'property',\n                name: 'soundOut',\n                type: 'Object',\n                class: 'p5.sound',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 300,\n                description:\n                  '<p>In classes that extend\\np5.Effect, connect effect nodes\\nto the wet parameter</p>\\n',\n                class: 'p5.Effect',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 316,\n                description: '<p>Set the output volume of the filter.</p>\\n',\n                itemtype: 'method',\n                name: 'amp',\n                params: [\n                  {\n                    name: 'vol',\n                    description: '<p>amplitude between 0 and 1.0</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'rampTime',\n                    description: '<p>create a fade that lasts until rampTime</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'tFromNow',\n                    description:\n                      '<p>schedule this event to happen in tFromNow seconds</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Effect',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 336,\n                description:\n                  '<p>Link effects together in a chain\\nExample usage: filter.chain(reverb, delay, panner);\\nMay be used with an open-ended number of arguments</p>\\n',\n                itemtype: 'method',\n                name: 'chain',\n                params: [\n                  {\n                    name: 'arguments',\n                    description: '<p>Chain together multiple sound objects</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Effect',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 358,\n                description: '<p>Adjust the dry/wet value.</p>\\n',\n                itemtype: 'method',\n                name: 'drywet',\n                params: [\n                  {\n                    name: 'fade',\n                    description: '<p>The desired drywet value (0 - 1.0)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Effect',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 374,\n                description:\n                  '<p>Send output to a p5.js-sound, Web Audio Node, or use signal to\\ncontrol an AudioParam</p>\\n',\n                itemtype: 'method',\n                name: 'connect',\n                params: [\n                  {\n                    name: 'unit',\n                    description: '',\n                    type: 'Object'\n                  }\n                ],\n                class: 'p5.Effect',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 388,\n                description: '<p>Disconnect all output.</p>\\n',\n                itemtype: 'method',\n                name: 'disconnect',\n                class: 'p5.Effect',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 451,\n                class: 'p5',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 455,\n                description:\n                  '<p>Returns a number representing the sample rate, in samples per second,\\nof all sound objects in this audio context. It is determined by the\\nsampling rate of your operating system&#39;s sound card, and it is not\\ncurrently possile to change.\\nIt is often 44100, or twice the range of human hearing.</p>\\n',\n                itemtype: 'method',\n                name: 'sampleRate',\n                return: {\n                  description: 'samplerate samples per second',\n                  type: 'Number'\n                },\n                class: 'p5',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 470,\n                description:\n                  '<p>Returns the closest MIDI note value for\\na given frequency.</p>\\n',\n                itemtype: 'method',\n                name: 'freqToMidi',\n                params: [\n                  {\n                    name: 'frequency',\n                    description:\n                      '<p>A freqeuncy, for example, the &quot;A&quot;\\n                           above Middle C is 440Hz</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'MIDI note value',\n                  type: 'Number'\n                },\n                class: 'p5',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 486,\n                description:\n                  '<p>Returns the frequency value of a MIDI note value.\\nGeneral MIDI treats notes as integers where middle C\\nis 60, C# is 61, D is 62 etc. Useful for generating\\nmusical frequencies with oscillators.</p>\\n',\n                itemtype: 'method',\n                name: 'midiToFreq',\n                params: [\n                  {\n                    name: 'midiNote',\n                    description: '<p>The number of a MIDI note</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'Frequency value of the given MIDI note',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet midiNotes = [60, 64, 67, 72];\\nlet noteIndex = 0;\\nlet midiVal, freq;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(startSound);\\n  osc = new p5.TriOsc();\\n  env = new p5.Envelope();\\n}\\n\\nfunction draw() {\\n  background(220);\\n  text('tap to play', 10, 20);\\n  if (midiVal) {\\n    text('MIDI: ' + midiVal, 10, 40);\\n    text('Freq: ' + freq, 10, 60);\\n  }\\n}\\n\\nfunction startSound() {\\n  // see also: userStartAudio();\\n  osc.start();\\n\\n  midiVal = midiNotes[noteIndex % midiNotes.length];\\n  freq = midiToFreq(midiVal);\\n  osc.freq(freq);\\n  env.ramp(osc, 0, 1.0, 0);\\n\\n  noteIndex++;\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 570,\n                description:\n                  '<p>List the SoundFile formats that you will include. LoadSound\\nwill search your directory for these extensions, and will pick\\na format that is compatable with the client&#39;s web browser.\\n<a href=\"http://media.io/\">Here</a> is a free online file\\nconverter.</p>\\n',\n                itemtype: 'method',\n                name: 'soundFormats',\n                params: [\n                  {\n                    name: 'formats',\n                    description:\n                      '<p>i.e. &#39;mp3&#39;, &#39;wav&#39;, &#39;ogg&#39;</p>\\n',\n                    type: 'String',\n                    optional: true,\n                    multiple: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nfunction preload() {\\n  // set the global sound formats\\n  soundFormats('mp3', 'ogg');\\n\\n  // load either beatbox.mp3, or .ogg, depending on browser\\n  mySound = loadSound('assets/beatbox.mp3');\\n}\\n\\nfunction setup() {\\n     let cnv = createCanvas(100, 100);\\n     background(220);\\n     text('sound loaded! tap to play', 10, 20, width - 20);\\n     cnv.mousePressed(function() {\\n       mySound.play();\\n     });\\n   }\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 688,\n                description: '<p>Used by Osc and Envelope to chain signal math</p>\\n',\n                class: 'p5',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 967,\n                description:\n                  '<p>The p5.Filter is built with a\\n<a href=\"http://www.w3.org/TR/webaudio/#BiquadFilterNode\">\\nWeb Audio BiquadFilter Node</a>.</p>\\n',\n                itemtype: 'property',\n                name: 'biquadFilter',\n                type: 'DelayNode',\n                class: 'p5.Filter',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 989,\n                description:\n                  '<p>Filter an audio signal according to a set\\nof filter parameters.</p>\\n',\n                itemtype: 'method',\n                name: 'process',\n                params: [\n                  {\n                    name: 'Signal',\n                    description: '<p>An object that outputs audio</p>\\n',\n                    type: 'Object'\n                  },\n                  {\n                    name: 'freq',\n                    description: '<p>Frequency in Hz, from 10 to 22050</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'res',\n                    description:\n                      '<p>Resonance/Width of the filter frequency\\n                      from 0.001 to 1000</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Filter',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1004,\n                description: '<p>Set the frequency and the resonance of the filter.</p>\\n',\n                itemtype: 'method',\n                name: 'set',\n                params: [\n                  {\n                    name: 'freq',\n                    description: '<p>Frequency in Hz, from 10 to 22050</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'res',\n                    description: '<p>Resonance (Q) from 0.001 to 1000</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>schedule this event to happen\\n                              seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Filter',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1024,\n                description:\n                  '<p>Set the filter frequency, in Hz, from 10 to 22050 (the range of\\nhuman hearing, although in reality most people hear in a narrower\\nrange).</p>\\n',\n                itemtype: 'method',\n                name: 'freq',\n                params: [\n                  {\n                    name: 'freq',\n                    description: '<p>Filter Frequency</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>schedule this event to happen\\n                              seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'value  Returns the current frequency value',\n                  type: 'Number'\n                },\n                class: 'p5.Filter',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1053,\n                description:\n                  '<p>Controls either width of a bandpass frequency,\\nor the resonance of a low/highpass cutoff frequency.</p>\\n',\n                itemtype: 'method',\n                name: 'res',\n                params: [\n                  {\n                    name: 'res',\n                    description:\n                      '<p>Resonance/Width of filter freq\\n                     from 0.001 to 1000</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>schedule this event to happen\\n                              seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'value Returns the current res value',\n                  type: 'Number'\n                },\n                class: 'p5.Filter',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1079,\n                description:\n                  '<p>Controls the gain attribute of a Biquad Filter.\\nThis is distinctly different from .amp() which is inherited from p5.Effect\\n.amp() controls the volume via the output gain node\\np5.Filter.gain() controls the gain parameter of a Biquad Filter node.</p>\\n',\n                itemtype: 'method',\n                name: 'gain',\n                params: [\n                  {\n                    name: 'gain',\n                    description: '',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'Returns the current or updated gain value',\n                  type: 'Number'\n                },\n                class: 'p5.Filter',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1104,\n                description:\n                  '<p>Toggle function. Switches between the specified type and allpass</p>\\n',\n                itemtype: 'method',\n                name: 'toggle',\n                return: {\n                  description: '[Toggle value]',\n                  type: 'Boolean'\n                },\n                class: 'p5.Filter',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1123,\n                description:\n                  '<p>Set the type of a p5.Filter. Possible types include:\\n&quot;lowpass&quot; (default), &quot;highpass&quot;, &quot;bandpass&quot;,\\n&quot;lowshelf&quot;, &quot;highshelf&quot;, &quot;peaking&quot;, &quot;notch&quot;,\\n&quot;allpass&quot;.</p>\\n',\n                itemtype: 'method',\n                name: 'setType',\n                params: [\n                  {\n                    name: 't',\n                    description: '',\n                    type: 'String'\n                  }\n                ],\n                class: 'p5.Filter',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1218,\n                description:\n                  \"<p>Returns the Audio Context for this sketch. Useful for users\\nwho would like to dig deeper into the <a target='_blank' href=\\n'http://webaudio.github.io/web-audio-api/'>Web Audio API\\n</a>.</p>\\n\\n<p>Some browsers require users to startAudioContext\\nwith a user gesture, such as touchStarted in the example below.</p>\",\n                itemtype: 'method',\n                name: 'getAudioContext',\n                return: {\n                  description: 'AudioContext for this sketch',\n                  type: 'Object'\n                },\n                example: [\n                  \"\\n<div><code>\\n function draw() {\\n   background(255);\\n   textAlign(CENTER);\\n\\n   if (getAudioContext().state !== 'running') {\\n     text('click to start audio', width/2, height/2);\\n   } else {\\n     text('audio is enabled', width/2, height/2);\\n   }\\n }\\n\\n function touchStarted() {\\n   if (getAudioContext().state !== 'running') {\\n     getAudioContext().resume();\\n   }\\n   var synth = new p5.MonoSynth();\\n   synth.play('A4', 0.5, 0, 0.2);\\n }\\n\\n</div></code>\"\n                ],\n                class: 'p5',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1257,\n                description:\n                  '<p>It is not only a good practice to give users control over starting\\naudio. This policy is enforced by many web browsers, including iOS and\\n<a href=\"https://goo.gl/7K7WLu\" title=\"Google Chrome\\'s autoplay\\npolicy\">Google Chrome</a>, which create the Web Audio API\\'s\\n<a href=\"https://developer.mozilla.org/en-US/docs/Web/API/AudioContext\"\\ntitle=\"Audio Context @ MDN\">Audio Context</a>\\nin a suspended state.</p>\\n\\n<p>In these browser-specific policies, sound will not play until a user\\ninteraction event (i.e. <code>mousePressed()</code>) explicitly resumes\\nthe AudioContext, or starts an audio node. This can be accomplished by\\ncalling <code>start()</code> on a <code>p5.Oscillator</code>,\\n<code> play()</code> on a <code>p5.SoundFile</code>, or simply\\n<code>userStartAudio()</code>.</p>\\n\\n<p><code>userStartAudio()</code> starts the AudioContext on a user\\ngesture. The default behavior will enable audio on any\\nmouseUp or touchEnd event. It can also be placed in a specific\\ninteraction function, such as <code>mousePressed()</code> as in the\\nexample below. This method utilizes\\n<a href=\"https://github.com/tambien/StartAudioContext\">StartAudioContext\\n</a>, a library by Yotam Mann (MIT Licence, 2016).</p>',\n                params: [\n                  {\n                    name: 'element(s)',\n                    description:\n                      '<p>This argument can be an Element,\\n                              Selector String, NodeList, p5.Element,\\n                              jQuery Element, or an Array of any of those.</p>\\n',\n                    type: 'Element|Array',\n                    optional: true\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>Callback to invoke when the AudioContext\\n                              has started</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    \"Returns a Promise that resolves when\\n                                     the AudioContext state is 'running'\",\n                  type: 'Promise'\n                },\n                itemtype: 'method',\n                name: 'userStartAudio',\n                example: [\n                  \"\\n<div><code>\\nfunction setup() {\\n  // mimics the autoplay policy\\n  getAudioContext().suspend();\\n\\n  let mySynth = new p5.MonoSynth();\\n\\n  // This won't play until the context has resumed\\n  mySynth.play('A6');\\n}\\nfunction draw() {\\n  background(220);\\n  textAlign(CENTER, CENTER);\\n  text(getAudioContext().state, width/2, height/2);\\n}\\nfunction mousePressed() {\\n  userStartAudio();\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1477,\n                description:\n                  '<p>Start an oscillator.</p>\\n<p>Starting an oscillator on a user gesture will enable audio in browsers\\nthat have a strict autoplay policy, including Chrome and most mobile\\ndevices. See also: <code>userStartAudio()</code>.</p>\\n',\n                itemtype: 'method',\n                name: 'start',\n                params: [\n                  {\n                    name: 'time',\n                    description: '<p>startTime in seconds from now.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'frequency',\n                    description: '<p>frequency in Hz.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Oscillator',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1525,\n                description:\n                  '<p>Stop an oscillator. Accepts an optional parameter\\nto determine how long (in seconds from now) until the\\noscillator stops.</p>\\n',\n                itemtype: 'method',\n                name: 'stop',\n                params: [\n                  {\n                    name: 'secondsFromNow',\n                    description: '<p>Time, in seconds from now.</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                class: 'p5.Oscillator',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1544,\n                description:\n                  '<p>Set the amplitude between 0 and 1.0. Or, pass in an object\\nsuch as an oscillator to modulate amplitude with an audio signal.</p>\\n',\n                itemtype: 'method',\n                name: 'amp',\n                params: [\n                  {\n                    name: 'vol',\n                    description:\n                      '<p>between 0 and 1.0\\n                            or a modulating signal/oscillator</p>\\n',\n                    type: 'Number|Object'\n                  },\n                  {\n                    name: 'rampTime',\n                    description: '<p>create a fade that lasts rampTime</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>schedule this event to happen\\n                              seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    \"gain  If no value is provided,\\n                            returns the Web Audio API\\n                            AudioParam that controls\\n                            this oscillator's\\n                            gain/amplitude/volume)\",\n                  type: 'AudioParam'\n                },\n                class: 'p5.Oscillator',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1584,\n                description:\n                  '<p>Set frequency of an oscillator to a value. Or, pass in an object\\nsuch as an oscillator to modulate the frequency with an audio signal.</p>\\n',\n                itemtype: 'method',\n                name: 'freq',\n                params: [\n                  {\n                    name: 'Frequency',\n                    description:\n                      '<p>Frequency in Hz\\n                                      or modulating signal/oscillator</p>\\n',\n                    type: 'Number|Object'\n                  },\n                  {\n                    name: 'rampTime',\n                    description: '<p>Ramp time (in seconds)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>Schedule this event to happen\\n                                 at x seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    \"Frequency If no value is provided,\\n                                returns the Web Audio API\\n                                AudioParam that controls\\n                                this oscillator's frequency\",\n                  type: 'AudioParam'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet osc;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playOscillator);\\n  osc = new p5.Oscillator(300);\\n  background(220);\\n  text('tap to play', 20, 20);\\n}\\n\\nfunction playOscillator() {\\n  osc.start();\\n  osc.amp(0.5);\\n  // start at 700Hz\\n  osc.freq(700);\\n  // ramp to 60Hz over 0.7 seconds\\n  osc.freq(60, 0.7);\\n  osc.amp(0, 0.1, 0.7);\\n}\\n</code></div>\"\n                ],\n                class: 'p5.Oscillator',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1662,\n                description:\n                  '<p>Set type to &#39;sine&#39;, &#39;triangle&#39;, &#39;sawtooth&#39; or &#39;square&#39;.</p>\\n',\n                itemtype: 'method',\n                name: 'setType',\n                params: [\n                  {\n                    name: 'type',\n                    description:\n                      '<p>&#39;sine&#39;, &#39;triangle&#39;, &#39;sawtooth&#39; or &#39;square&#39;.</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                class: 'p5.Oscillator',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1678,\n                description: '<p>Connect to a p5.sound / Web Audio object.</p>\\n',\n                itemtype: 'method',\n                name: 'connect',\n                params: [\n                  {\n                    name: 'unit',\n                    description: '<p>A p5.sound or Web Audio object</p>\\n',\n                    type: 'Object'\n                  }\n                ],\n                class: 'p5.Oscillator',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1698,\n                description: '<p>Disconnect all outputs</p>\\n',\n                itemtype: 'method',\n                name: 'disconnect',\n                class: 'p5.Oscillator',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1721,\n                description: '<p>Pan between Left (-1) and Right (1)</p>\\n',\n                itemtype: 'method',\n                name: 'pan',\n                params: [\n                  {\n                    name: 'panning',\n                    description: '<p>Number between -1 and 1</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>schedule this event to happen\\n                              seconds from now</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                class: 'p5.Oscillator',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1759,\n                description:\n                  '<p>Set the phase of an oscillator between 0.0 and 1.0.\\nIn this implementation, phase is a delay time\\nbased on the oscillator&#39;s current frequency.</p>\\n',\n                itemtype: 'method',\n                name: 'phase',\n                params: [\n                  {\n                    name: 'phase',\n                    description: '<p>float between 0.0 and 1.0</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                class: 'p5.Oscillator',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1818,\n                description:\n                  '<p>Add a value to the p5.Oscillator&#39;s output amplitude,\\nand return the oscillator. Calling this method again\\nwill override the initial add() with a new value.</p>\\n',\n                itemtype: 'method',\n                name: 'add',\n                params: [\n                  {\n                    name: 'number',\n                    description: '<p>Constant number to add</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description:\n                    'Oscillator Returns this oscillator\\n                                   with scaled output',\n                  type: 'p5.Oscillator'\n                },\n                class: 'p5.Oscillator',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1838,\n                description:\n                  '<p>Multiply the p5.Oscillator&#39;s output amplitude\\nby a fixed value (i.e. turn it up!). Calling this method\\nagain will override the initial mult() with a new value.</p>\\n',\n                itemtype: 'method',\n                name: 'mult',\n                params: [\n                  {\n                    name: 'number',\n                    description: '<p>Constant number to multiply</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description:\n                    'Oscillator Returns this oscillator\\n                                   with multiplied output',\n                  type: 'p5.Oscillator'\n                },\n                class: 'p5.Oscillator',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 1857,\n                description:\n                  '<p>Scale this oscillator&#39;s amplitude values to a given\\nrange, and return the oscillator. Calling this method\\nagain will override the initial scale() with new values.</p>\\n',\n                itemtype: 'method',\n                name: 'scale',\n                params: [\n                  {\n                    name: 'inMin',\n                    description: '<p>input range minumum</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'inMax',\n                    description: '<p>input range maximum</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'outMin',\n                    description: '<p>input range minumum</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'outMax',\n                    description: '<p>input range maximum</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description:\n                    'Oscillator Returns this oscillator\\n                                   with scaled output',\n                  type: 'p5.Oscillator'\n                },\n                class: 'p5.Oscillator',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2067,\n                description:\n                  '<p>Play tells the MonoSynth to start playing a note. This method schedules\\nthe calling of .triggerAttack and .triggerRelease.</p>\\n',\n                itemtype: 'method',\n                name: 'play',\n                params: [\n                  {\n                    name: 'note',\n                    description:\n                      '<p>the note you want to play, specified as a\\n                               frequency in Hertz (Number) or as a midi\\n                               value in Note/Octave format (&quot;C4&quot;, &quot;Eb3&quot;...etc&quot;)\\n                               See <a href = \"https://github.com/Tonejs/Tone.js/wiki/Instruments\">\\n                               Tone</a>. Defaults to 440 hz.</p>\\n',\n                    type: 'String | Number'\n                  },\n                  {\n                    name: 'velocity',\n                    description:\n                      '<p>velocity of the note to play (ranging from 0 to 1)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'secondsFromNow',\n                    description: '<p>time from now (in seconds) at which to play</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'sustainTime',\n                    description:\n                      '<p>time to sustain before releasing the envelope. Defaults to 0.15 seconds.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet monoSynth;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playSynth);\\n  background(220);\\n  textAlign(CENTER);\\n  text('tap to play', width/2, height/2);\\n\\n  monoSynth = new p5.MonoSynth();\\n}\\n\\nfunction playSynth() {\\n  userStartAudio();\\n\\n  let note = random(['Fb4', 'G4']);\\n  // note velocity (volume, from 0 to 1)\\n  let velocity = random();\\n  // time from now (in seconds)\\n  let time = 0;\\n  // note duration (in seconds)\\n  let dur = 1/6;\\n\\n  monoSynth.play(note, velocity, time, dur);\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5.MonoSynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2116,\n                description:\n                  '<p>Trigger the Attack, and Decay portion of the Envelope.\\nSimilar to holding down a key on a piano, but it will\\nhold the sustain level until you let go.</p>\\n',\n                params: [\n                  {\n                    name: 'note',\n                    description:\n                      '<p>the note you want to play, specified as a\\n                               frequency in Hertz (Number) or as a midi\\n                               value in Note/Octave format (&quot;C4&quot;, &quot;Eb3&quot;...etc&quot;)\\n                               See <a href = \"https://github.com/Tonejs/Tone.js/wiki/Instruments\">\\n                               Tone</a>. Defaults to 440 hz</p>\\n',\n                    type: 'String | Number'\n                  },\n                  {\n                    name: 'velocity',\n                    description:\n                      '<p>velocity of the note to play (ranging from 0 to 1)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'secondsFromNow',\n                    description: '<p>time from now (in seconds) at which to play</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                itemtype: 'method',\n                name: 'triggerAttack',\n                example: [\n                  '\\n<div><code>\\nlet monoSynth;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(triggerAttack);\\n  background(220);\\n  text(\\'tap here for attack, let go to release\\', 5, 20, width - 20);\\n  monoSynth = new p5.MonoSynth();\\n}\\n\\nfunction triggerAttack() {\\n  userStartAudio();\\n\\n  monoSynth.triggerAttack(\"E3\");\\n}\\n\\nfunction mouseReleased() {\\n  monoSynth.triggerRelease();\\n}\\n</code></div>'\n                ],\n                class: 'p5.MonoSynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2162,\n                description:\n                  '<p>Trigger the release of the Envelope. This is similar to releasing\\nthe key on a piano and letting the sound fade according to the\\nrelease level and release time.</p>\\n',\n                params: [\n                  {\n                    name: 'secondsFromNow',\n                    description: '<p>time to trigger the release</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                itemtype: 'method',\n                name: 'triggerRelease',\n                example: [\n                  '\\n<div><code>\\nlet monoSynth;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(triggerAttack);\\n  background(220);\\n  text(\\'tap here for attack, let go to release\\', 5, 20, width - 20);\\n  monoSynth = new p5.MonoSynth();\\n}\\n\\nfunction triggerAttack() {\\n  userStartAudio();\\n\\n  monoSynth.triggerAttack(\"E3\");\\n}\\n\\nfunction mouseReleased() {\\n  monoSynth.triggerRelease();\\n}\\n</code></div>'\n                ],\n                class: 'p5.MonoSynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2199,\n                description:\n                  '<p>Set values like a traditional\\n<a href=\"https://en.wikipedia.org/wiki/Synthesizer#/media/File:ADSR_parameter.svg\">\\nADSR envelope\\n</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'setADSR',\n                params: [\n                  {\n                    name: 'attackTime',\n                    description:\n                      '<p>Time (in seconds before envelope\\n                              reaches Attack Level</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'decayTime',\n                    description:\n                      '<p>Time (in seconds) before envelope\\n                              reaches Decay/Sustain Level</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'susRatio',\n                    description:\n                      '<p>Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\\n                              where 1.0 = attackLevel, 0.0 = releaseLevel.\\n                              The susRatio determines the decayLevel and the level at which the\\n                              sustain portion of the envelope will sustain.\\n                              For example, if attackLevel is 0.4, releaseLevel is 0,\\n                              and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\\n                              increased to 1.0 (using <code>setRange</code>),\\n                              then decayLevel would increase proportionally, to become 0.5.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'releaseTime',\n                    description: '<p>Time in seconds from now (defaults to 0)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.MonoSynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2226,\n                description: '<p>Getters and Setters</p>\\n',\n                itemtype: 'property',\n                name: 'attack',\n                type: 'Number',\n                class: 'p5.MonoSynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2232,\n                itemtype: 'property',\n                name: 'decay',\n                type: 'Number',\n                class: 'p5.MonoSynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2237,\n                itemtype: 'property',\n                name: 'sustain',\n                type: 'Number',\n                class: 'p5.MonoSynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2242,\n                itemtype: 'property',\n                name: 'release',\n                type: 'Number',\n                class: 'p5.MonoSynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2282,\n                description: '<p>MonoSynth amp</p>\\n',\n                itemtype: 'method',\n                name: 'amp',\n                params: [\n                  {\n                    name: 'vol',\n                    description: '<p>desired volume</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'rampTime',\n                    description: '<p>Time to reach new volume</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'new volume value',\n                  type: 'Number'\n                },\n                class: 'p5.MonoSynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2300,\n                description: '<p>Connect to a p5.sound / Web Audio object.</p>\\n',\n                itemtype: 'method',\n                name: 'connect',\n                params: [\n                  {\n                    name: 'unit',\n                    description: '<p>A p5.sound or Web Audio object</p>\\n',\n                    type: 'Object'\n                  }\n                ],\n                class: 'p5.MonoSynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2313,\n                description: '<p>Disconnect all outputs</p>\\n',\n                itemtype: 'method',\n                name: 'disconnect',\n                class: 'p5.MonoSynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2326,\n                description:\n                  '<p>Get rid of the MonoSynth and free up its resources / memory.</p>\\n',\n                itemtype: 'method',\n                name: 'dispose',\n                class: 'p5.MonoSynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2380,\n                description: '<p>Connect to p5 objects or Web Audio Nodes</p>\\n',\n                itemtype: 'method',\n                name: 'connect',\n                params: [\n                  {\n                    name: 'unit',\n                    description: '',\n                    type: 'Object'\n                  }\n                ],\n                class: 'p5.AudioVoice',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2392,\n                description: '<p>Disconnect from soundOut</p>\\n',\n                itemtype: 'method',\n                name: 'disconnect',\n                class: 'p5.AudioVoice',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2474,\n                description:\n                  '<p>An object that holds information about which notes have been played and\\nwhich notes are currently being played. New notes are added as keys\\non the fly. While a note has been attacked, but not released, the value of the\\nkey is the audiovoice which is generating that note. When notes are released,\\nthe value of the key becomes undefined.</p>\\n',\n                itemtype: 'property',\n                name: 'notes',\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2487,\n                description:\n                  '<p>A PolySynth must have at least 1 voice, defaults to 8</p>\\n',\n                itemtype: 'property',\n                name: 'polyvalue',\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2493,\n                description:\n                  '<p>Monosynth that generates the sound for each note that is triggered. The\\np5.PolySynth defaults to using the p5.MonoSynth as its voice.</p>\\n',\n                itemtype: 'property',\n                name: 'AudioVoice',\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2530,\n                description:\n                  '<p>Play a note by triggering noteAttack and noteRelease with sustain time</p>\\n',\n                itemtype: 'method',\n                name: 'play',\n                params: [\n                  {\n                    name: 'note',\n                    description:\n                      '<p>midi note to play (ranging from 0 to 127 - 60 being a middle C)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'velocity',\n                    description:\n                      '<p>velocity of the note to play (ranging from 0 to 1)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'secondsFromNow',\n                    description: '<p>time from now (in seconds) at which to play</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'sustainTime',\n                    description: '<p>time to sustain before releasing the envelope</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet polySynth;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playSynth);\\n  background(220);\\n  text('click to play', 20, 20);\\n\\n  polySynth = new p5.PolySynth();\\n}\\n\\nfunction playSynth() {\\n  userStartAudio();\\n\\n  // note duration (in seconds)\\n  let dur = 1.5;\\n\\n  // time from now (in seconds)\\n  let time = 0;\\n\\n  // velocity (volume, from 0 to 1)\\n  let vel = 0.1;\\n\\n  // notes can overlap with each other\\n  polySynth.play('G2', vel, 0, dur);\\n  polySynth.play('C3', vel, time += 1/3, dur);\\n  polySynth.play('G3', vel, time += 1/3, dur);\\n}\\n</code></div>\"\n                ],\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2578,\n                description:\n                  '<p>noteADSR sets the envelope for a specific note that has just been triggered.\\nUsing this method modifies the envelope of whichever audiovoice is being used\\nto play the desired note. The envelope should be reset before noteRelease is called\\nin order to prevent the modified envelope from being used on other notes.</p>\\n',\n                itemtype: 'method',\n                name: 'noteADSR',\n                params: [\n                  {\n                    name: 'note',\n                    description: '<p>Midi note on which ADSR should be set.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'attackTime',\n                    description:\n                      '<p>Time (in seconds before envelope\\n                              reaches Attack Level</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'decayTime',\n                    description:\n                      '<p>Time (in seconds) before envelope\\n                              reaches Decay/Sustain Level</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'susRatio',\n                    description:\n                      '<p>Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\\n                              where 1.0 = attackLevel, 0.0 = releaseLevel.\\n                              The susRatio determines the decayLevel and the level at which the\\n                              sustain portion of the envelope will sustain.\\n                              For example, if attackLevel is 0.4, releaseLevel is 0,\\n                              and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\\n                              increased to 1.0 (using <code>setRange</code>),\\n                              then decayLevel would increase proportionally, to become 0.5.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'releaseTime',\n                    description: '<p>Time in seconds from now (defaults to 0)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2609,\n                description:\n                  '<p>Set the PolySynths global envelope. This method modifies the envelopes of each\\nmonosynth so that all notes are played with this envelope.</p>\\n',\n                itemtype: 'method',\n                name: 'setADSR',\n                params: [\n                  {\n                    name: 'attackTime',\n                    description:\n                      '<p>Time (in seconds before envelope\\n                               reaches Attack Level</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'decayTime',\n                    description:\n                      '<p>Time (in seconds) before envelope\\n                               reaches Decay/Sustain Level</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'susRatio',\n                    description:\n                      '<p>Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\\n                               where 1.0 = attackLevel, 0.0 = releaseLevel.\\n                               The susRatio determines the decayLevel and the level at which the\\n                               sustain portion of the envelope will sustain.\\n                               For example, if attackLevel is 0.4, releaseLevel is 0,\\n                               and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\\n                               increased to 1.0 (using <code>setRange</code>),\\n                               then decayLevel would increase proportionally, to become 0.5.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'releaseTime',\n                    description: '<p>Time in seconds from now (defaults to 0)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2636,\n                description:\n                  '<p>Trigger the Attack, and Decay portion of a MonoSynth.\\nSimilar to holding down a key on a piano, but it will\\nhold the sustain level until you let go.</p>\\n',\n                itemtype: 'method',\n                name: 'noteAttack',\n                params: [\n                  {\n                    name: 'note',\n                    description: '<p>midi note on which attack should be triggered.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'velocity',\n                    description:\n                      '<p>velocity of the note to play (ranging from 0 to 1)/</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'secondsFromNow',\n                    description: '<p>time from now (in seconds)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet polySynth = new p5.PolySynth();\\nlet pitches = ['G', 'D', 'G', 'C'];\\nlet octaves = [2, 3, 4];\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playChord);\\n  background(220);\\n  text('tap to play', 20, 20);\\n}\\n\\nfunction playChord() {\\n  userStartAudio();\\n\\n  // play a chord: multiple notes at the same time\\n  for (let i = 0; i < 4; i++) {\\n    let note = random(pitches) + random(octaves);\\n    polySynth.noteAttack(note, 0.1);\\n  }\\n}\\n\\nfunction mouseReleased() {\\n  // release all voices\\n  polySynth.noteRelease();\\n}\\n</code></div>\"\n                ],\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2746,\n                description:\n                  '<p>Trigger the Release of an AudioVoice note. This is similar to releasing\\nthe key on a piano and letting the sound fade according to the\\nrelease level and release time.</p>\\n',\n                itemtype: 'method',\n                name: 'noteRelease',\n                params: [\n                  {\n                    name: 'note',\n                    description:\n                      '<p>midi note on which attack should be triggered.\\n                                  If no value is provided, all notes will be released.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'secondsFromNow',\n                    description: '<p>time to trigger the release</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet polySynth = new p5.PolySynth();\\nlet pitches = ['G', 'D', 'G', 'C'];\\nlet octaves = [2, 3, 4];\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playChord);\\n  background(220);\\n  text('tap to play', 20, 20);\\n}\\n\\nfunction playChord() {\\n  userStartAudio();\\n\\n  // play a chord: multiple notes at the same time\\n  for (let i = 0; i < 4; i++) {\\n    let note = random(pitches) + random(octaves);\\n    polySynth.noteAttack(note, 0.1);\\n  }\\n}\\n\\nfunction mouseReleased() {\\n  // release all voices\\n  polySynth.noteRelease();\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2829,\n                description: '<p>Connect to a p5.sound / Web Audio object.</p>\\n',\n                itemtype: 'method',\n                name: 'connect',\n                params: [\n                  {\n                    name: 'unit',\n                    description: '<p>A p5.sound or Web Audio object</p>\\n',\n                    type: 'Object'\n                  }\n                ],\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2842,\n                description: '<p>Disconnect all outputs</p>\\n',\n                itemtype: 'method',\n                name: 'disconnect',\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2855,\n                description:\n                  '<p>Get rid of the MonoSynth and free up its resources / memory.</p>\\n',\n                itemtype: 'method',\n                name: 'dispose',\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 2969,\n                description: '<p>This module has shims</p>\\n',\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 3105,\n                description:\n                  '<p>Determine which filetypes are supported (inspired by buzz.js)\\nThe audio element (el) will only be used to test browser support for various audio formats</p>\\n',\n                class: 'p5.PolySynth',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 3492,\n                description:\n                  '<p>loadSound() returns a new p5.SoundFile from a specified\\npath. If called during preload(), the p5.SoundFile will be ready\\nto play in time for setup() and draw(). If called outside of\\npreload, the p5.SoundFile will not be ready immediately, so\\nloadSound accepts a callback as the second parameter. Using a\\n<a href=\"https://github.com/processing/p5.js/wiki/Local-server\">\\nlocal server</a> is recommended when loading external files.</p>\\n',\n                itemtype: 'method',\n                name: 'loadSound',\n                params: [\n                  {\n                    name: 'path',\n                    description:\n                      '<p>Path to the sound file, or an array with\\n                                  paths to soundfiles in multiple formats\\n                                  i.e. [&#39;sound.ogg&#39;, &#39;sound.mp3&#39;].\\n                                  Alternately, accepts an object: either\\n                                  from the HTML5 File API, or a p5.File.</p>\\n',\n                    type: 'String|Array'\n                  },\n                  {\n                    name: 'successCallback',\n                    description: '<p>Name of a function to call once file loads</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'errorCallback',\n                    description:\n                      '<p>Name of a function to call if there is\\n                                    an error loading the file.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'whileLoading',\n                    description:\n                      '<p>Name of a function to call while file is loading.\\n                               This function will receive the percentage loaded\\n                               so far, from 0.0 to 1.0.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'Returns a p5.SoundFile',\n                  type: 'SoundFile'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet mySound;\\nfunction preload() {\\n  soundFormats('mp3', 'ogg');\\n  mySound = loadSound('assets/doorbell');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(canvasPressed);\\n  background(220);\\n  text('tap here to play', 10, 20);\\n}\\n\\nfunction canvasPressed() {\\n  // playing a sound file on a user gesture\\n  // is equivalent to `userStartAudio()`\\n  mySound.play();\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 3672,\n                description:\n                  '<p>Returns true if the sound file finished loading successfully.</p>\\n',\n                itemtype: 'method',\n                name: 'isLoaded',\n                return: {\n                  description: '',\n                  type: 'Boolean'\n                },\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 3688,\n                description: '<p>Play the p5.SoundFile</p>\\n',\n                itemtype: 'method',\n                name: 'play',\n                params: [\n                  {\n                    name: 'startTime',\n                    description:\n                      '<p>(optional) schedule playback to start (in seconds from now).</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'rate',\n                    description: '<p>(optional) playback rate</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'amp',\n                    description:\n                      '<p>(optional) amplitude (volume)\\n                                    of playback</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'cueStart',\n                    description: '<p>(optional) cue start time in seconds</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'duration',\n                    description: '<p>(optional) duration of playback in seconds</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 3795,\n                description:\n                  '<p>p5.SoundFile has two play modes: <code>restart</code> and\\n<code>sustain</code>. Play Mode determines what happens to a\\np5.SoundFile if it is triggered while in the middle of playback.\\nIn sustain mode, playback will continue simultaneous to the\\nnew playback. In restart mode, play() will stop playback\\nand start over. With untilDone, a sound will play only if it&#39;s\\nnot already playing. Sustain is the default mode.</p>\\n',\n                itemtype: 'method',\n                name: 'playMode',\n                params: [\n                  {\n                    name: 'str',\n                    description:\n                      '<p>&#39;restart&#39; or &#39;sustain&#39; or &#39;untilDone&#39;</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet mySound;\\nfunction preload(){\\n  mySound = loadSound('assets/Damscray_DancingTiger.mp3');\\n}\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(canvasPressed);\\n  noFill();\\n  rect(0, height/2, width - 1, height/2 - 1);\\n  rect(0, 0, width - 1, height/2);\\n  textAlign(CENTER, CENTER);\\n  fill(20);\\n  text('restart', width/2, 1 * height/4);\\n  text('sustain', width/2, 3 * height/4);\\n}\\nfunction canvasPressed() {\\n  if (mouseX < height/2) {\\n    mySound.playMode('restart');\\n  } else {\\n    mySound.playMode('sustain');\\n  }\\n  mySound.play();\\n}\\n\\n </code></div>\"\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 3854,\n                description:\n                  '<p>Pauses a file that is currently playing. If the file is not\\nplaying, then nothing will happen.</p>\\n<p>After pausing, .play() will resume from the paused\\nposition.\\nIf p5.SoundFile had been set to loop before it was paused,\\nit will continue to loop after it is unpaused with .play().</p>\\n',\n                itemtype: 'method',\n                name: 'pause',\n                params: [\n                  {\n                    name: 'startTime',\n                    description:\n                      '<p>(optional) schedule event to occur\\n                             seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet soundFile;\\nfunction preload() {\\n  soundFormats('ogg', 'mp3');\\n  soundFile = loadSound('assets/Damscray_-_Dancing_Tiger_02.mp3');\\n}\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(canvasPressed);\\n  background(220);\\n  text('tap to play, release to pause', 10, 20, width - 20);\\n}\\nfunction canvasPressed() {\\n  soundFile.loop();\\n  background(0, 200, 50);\\n}\\nfunction mouseReleased() {\\n  soundFile.pause();\\n  background(220);\\n}\\n</code>\\n</div>\"\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 3911,\n                description:\n                  '<p>Loop the p5.SoundFile. Accepts optional parameters to set the\\nplayback rate, playback volume, loopStart, loopEnd.</p>\\n',\n                itemtype: 'method',\n                name: 'loop',\n                params: [\n                  {\n                    name: 'startTime',\n                    description:\n                      '<p>(optional) schedule event to occur\\n                            seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'rate',\n                    description: '<p>(optional) playback rate</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'amp',\n                    description: '<p>(optional) playback volume</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'cueLoopStart',\n                    description: '<p>(optional) startTime in seconds</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'duration',\n                    description: '<p>(optional) loop duration in seconds</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n <div><code>\\n let soundFile;\\n let loopStart = 0.5;\\n let loopDuration = 0.2;\\n function preload() {\\n   soundFormats('ogg', 'mp3');\\n   soundFile = loadSound('assets/Damscray_-_Dancing_Tiger_02.mp3');\\n }\\n function setup() {\\n   let cnv = createCanvas(100, 100);\\n   cnv.mousePressed(canvasPressed);\\n   background(220);\\n   text('tap to play, release to pause', 10, 20, width - 20);\\n }\\n function canvasPressed() {\\n   soundFile.loop();\\n   background(0, 200, 50);\\n }\\n function mouseReleased() {\\n   soundFile.pause();\\n   background(220);\\n }\\n </code>\\n </div>\"\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 3955,\n                description:\n                  '<p>Set a p5.SoundFile&#39;s looping flag to true or false. If the sound\\nis currently playing, this change will take effect when it\\nreaches the end of the current playback.</p>\\n',\n                itemtype: 'method',\n                name: 'setLoop',\n                params: [\n                  {\n                    name: 'Boolean',\n                    description: '<p>set looping to true or false</p>\\n',\n                    type: 'Boolean'\n                  }\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 3980,\n                description:\n                  '<p>Returns &#39;true&#39; if a p5.SoundFile is currently looping and playing, &#39;false&#39; if not.</p>\\n',\n                itemtype: 'method',\n                name: 'isLooping',\n                return: {\n                  description: '',\n                  type: 'Boolean'\n                },\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4000,\n                description:\n                  '<p>Returns true if a p5.SoundFile is playing, false if not (i.e.\\npaused or stopped).</p>\\n',\n                itemtype: 'method',\n                name: 'isPlaying',\n                return: {\n                  description: '',\n                  type: 'Boolean'\n                },\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4013,\n                description:\n                  '<p>Returns true if a p5.SoundFile is paused, false if not (i.e.\\nplaying or stopped).</p>\\n',\n                itemtype: 'method',\n                name: 'isPaused',\n                return: {\n                  description: '',\n                  type: 'Boolean'\n                },\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4026,\n                description: '<p>Stop soundfile playback.</p>\\n',\n                itemtype: 'method',\n                name: 'stop',\n                params: [\n                  {\n                    name: 'startTime',\n                    description:\n                      '<p>(optional) schedule event to occur\\n                            in seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4083,\n                description:\n                  '<p>Multiply the output volume (amplitude) of a sound file\\nbetween 0.0 (silence) and 1.0 (full volume).\\n1.0 is the maximum amplitude of a digital sound, so multiplying\\nby greater than 1.0 may cause digital distortion. To\\nfade, provide a <code>rampTime</code> parameter. For more\\ncomplex fades, see the Envelope class.</p>\\n<p>Alternately, you can pass in a signal source such as an\\noscillator to modulate the amplitude with an audio signal.</p>\\n',\n                itemtype: 'method',\n                name: 'setVolume',\n                params: [\n                  {\n                    name: 'volume',\n                    description:\n                      '<p>Volume (amplitude) between 0.0\\n                                   and 1.0 or modulating signal/oscillator</p>\\n',\n                    type: 'Number|Object'\n                  },\n                  {\n                    name: 'rampTime',\n                    description: '<p>Fade for t seconds</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>Schedule this event to happen at\\n                               t seconds in the future</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4128,\n                description:\n                  '<p>Set the stereo panning of a p5.sound object to\\na floating point number between -1.0 (left) and 1.0 (right).\\nDefault is 0.0 (center).</p>\\n',\n                itemtype: 'method',\n                name: 'pan',\n                params: [\n                  {\n                    name: 'panValue',\n                    description: '<p>Set the stereo panner</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>schedule this event to happen\\n                                seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\n let ballX = 0;\\n let soundFile;\\n\\n function preload() {\\n   soundFormats('ogg', 'mp3');\\n   soundFile = loadSound('assets/beatbox.mp3');\\n }\\n\\n function draw() {\\n   let cnv = createCanvas(100, 100);\\n   cnv.mousePressed(canvasPressed);\\n   background(220);\\n   ballX = constrain(mouseX, 0, width);\\n   ellipse(ballX, height/2, 20, 20);\\n }\\n\\n function canvasPressed(){\\n   // map the ball's x location to a panning degree\\n   // between -1.0 (left) and 1.0 (right)\\n   let panning = map(ballX, 0., width,-1.0, 1.0);\\n   soundFile.pan(panning);\\n   soundFile.play();\\n }\\n </div></code>\"\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4171,\n                description:\n                  '<p>Returns the current stereo pan position (-1.0 to 1.0)</p>\\n',\n                itemtype: 'method',\n                name: 'getPan',\n                return: {\n                  description:\n                    'Returns the stereo pan setting of the Oscillator\\n                         as a number between -1.0 (left) and 1.0 (right).\\n                         0.0 is center and default.',\n                  type: 'Number'\n                },\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4185,\n                description:\n                  '<p>Set the playback rate of a sound file. Will change the speed and the pitch.\\nValues less than zero will reverse the audio buffer.</p>\\n',\n                itemtype: 'method',\n                name: 'rate',\n                params: [\n                  {\n                    name: 'playbackRate',\n                    description:\n                      '<p>Set the playback rate. 1.0 is normal,\\n                                   .5 is half-speed, 2.0 is twice as fast.\\n                                   Values less than zero play backwards.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet mySound;\\n\\nfunction preload() {\\n  mySound = loadSound('assets/Damscray_DancingTiger.mp3');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(canvasPressed);\\n}\\nfunction canvasPressed() {\\n  mySound.loop();\\n}\\nfunction mouseReleased() {\\n  mySound.pause();\\n}\\nfunction draw() {\\n  background(220);\\n\\n  // Set the rate to a range between 0.1 and 4\\n  // Changing the rate also alters the pitch\\n  let playbackRate = map(mouseY, 0.1, height, 2, 0);\\n  playbackRate = constrain(playbackRate, 0.01, 4);\\n  mySound.rate(playbackRate);\\n\\n  line(0, mouseY, width, mouseY);\\n  text('rate: ' + round(playbackRate * 100) + '%', 10, 20);\\n}\\n\\n </code>\\n </div>\\n\"\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4275,\n                description: '<p>Returns the duration of a sound file in seconds.</p>\\n',\n                itemtype: 'method',\n                name: 'duration',\n                return: {\n                  description: 'The duration of the soundFile in seconds.',\n                  type: 'Number'\n                },\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4291,\n                description:\n                  '<p>Return the current position of the p5.SoundFile playhead, in seconds.\\nTime is relative to the normal buffer direction, so if <code>reverseBuffer</code>\\nhas been called, currentTime will count backwards.</p>\\n',\n                itemtype: 'method',\n                name: 'currentTime',\n                return: {\n                  description: 'currentTime of the soundFile in seconds.',\n                  type: 'Number'\n                },\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4305,\n                description:\n                  '<p>Move the playhead of a soundfile that is currently playing to a\\nnew position and a new duration, in seconds.\\nIf none are given, will reset the file to play entire duration\\nfrom start to finish. To set the position of a soundfile that is\\nnot currently playing, use the <code>play</code> or <code>loop</code> methods.</p>\\n',\n                itemtype: 'method',\n                name: 'jump',\n                params: [\n                  {\n                    name: 'cueTime',\n                    description: '<p>cueTime of the soundFile in seconds.</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'duration',\n                    description: '<p>duration in seconds.</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4336,\n                description:\n                  '<p>Return the number of channels in a sound file.\\nFor example, Mono = 1, Stereo = 2.</p>\\n',\n                itemtype: 'method',\n                name: 'channels',\n                return: {\n                  description: '[channels]',\n                  type: 'Number'\n                },\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4349,\n                description: '<p>Return the sample rate of the sound file.</p>\\n',\n                itemtype: 'method',\n                name: 'sampleRate',\n                return: {\n                  description: '[sampleRate]',\n                  type: 'Number'\n                },\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4361,\n                description:\n                  '<p>Return the number of samples in a sound file.\\nEqual to sampleRate * duration.</p>\\n',\n                itemtype: 'method',\n                name: 'frames',\n                return: {\n                  description: '[sampleCount]',\n                  type: 'Number'\n                },\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4374,\n                description:\n                  '<p>Returns an array of amplitude peaks in a p5.SoundFile that can be\\nused to draw a static waveform. Scans through the p5.SoundFile&#39;s\\naudio buffer to find the greatest amplitudes. Accepts one\\nparameter, &#39;length&#39;, which determines size of the array.\\nLarger arrays result in more precise waveform visualizations.</p>\\n<p>Inspired by Wavesurfer.js.</p>\\n',\n                itemtype: 'method',\n                name: 'getPeaks',\n                params: [\n                  {\n                    name: 'length',\n                    description:\n                      '<p>length is the size of the returned array.\\n                         Larger length results in more precision.\\n                         Defaults to 5*width of the browser window.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'Array of peaks.',\n                  type: 'Float32Array'\n                },\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4435,\n                description:\n                  '<p>Reverses the p5.SoundFile&#39;s buffer source.\\nPlayback must be handled separately (see example).</p>\\n',\n                itemtype: 'method',\n                name: 'reverseBuffer',\n                example: [\n                  \"\\n<div><code>\\nlet drum;\\nfunction preload() {\\n  drum = loadSound('assets/drum.mp3');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(canvasPressed);\\n  background(220);\\n  text('tap to play', 20, 20);\\n}\\n\\nfunction canvasPressed() {\\n  drum.stop();\\n  drum.reverseBuffer();\\n  drum.play();\\n}\\n </code>\\n </div>\"\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4488,\n                description:\n                  '<p>Schedule an event to be called when the soundfile\\nreaches the end of a buffer. If the soundfile is\\nplaying through once, this will be called when it\\nends. If it is looping, it will be called when\\nstop is called.</p>\\n',\n                itemtype: 'method',\n                name: 'onended',\n                params: [\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>function to call when the\\n                            soundfile has ended.</p>\\n',\n                    type: 'Function'\n                  }\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4553,\n                description:\n                  '<p>Connects the output of a p5sound object to input of another\\np5.sound object. For example, you may connect a p5.SoundFile to an\\nFFT or an Effect. If no parameter is given, it will connect to\\nthe master output. Most p5sound objects connect to the master\\noutput when they are created.</p>\\n',\n                itemtype: 'method',\n                name: 'connect',\n                params: [\n                  {\n                    name: 'object',\n                    description: '<p>Audio object that accepts an input</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4577,\n                description: '<p>Disconnects the output of this p5sound object.</p>\\n',\n                itemtype: 'method',\n                name: 'disconnect',\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4590,\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4597,\n                description:\n                  '<p>Reset the source for this SoundFile to a\\nnew path (URL).</p>\\n',\n                itemtype: 'method',\n                name: 'setPath',\n                params: [\n                  {\n                    name: 'path',\n                    description: '<p>path to audio file</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'callback',\n                    description: '<p>Callback</p>\\n',\n                    type: 'Function'\n                  }\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4614,\n                description: '<p>Replace the current Audio Buffer with a new Buffer.</p>\\n',\n                itemtype: 'method',\n                name: 'setBuffer',\n                params: [\n                  {\n                    name: 'buf',\n                    description:\n                      '<p>Array of Float32 Array(s). 2 Float32 Arrays\\n                   will create a stereo source. 1 will create\\n                   a mono source.</p>\\n',\n                    type: 'Array'\n                  }\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4708,\n                description:\n                  '<p>processPeaks returns an array of timestamps where it thinks there is a beat.</p>\\n<p>This is an asynchronous function that processes the soundfile in an offline audio context,\\nand sends the results to your callback function.</p>\\n<p>The process involves running the soundfile through a lowpass filter, and finding all of the\\npeaks above the initial threshold. If the total number of peaks are below the minimum number of peaks,\\nit decreases the threshold and re-runs the analysis until either minPeaks or minThreshold are reached.</p>\\n',\n                itemtype: 'method',\n                name: 'processPeaks',\n                params: [\n                  {\n                    name: 'callback',\n                    description: '<p>a function to call once this data is returned</p>\\n',\n                    type: 'Function'\n                  },\n                  {\n                    name: 'initThreshold',\n                    description: '<p>initial threshold defaults to 0.9</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'minThreshold',\n                    description: '<p>minimum threshold defaults to 0.22</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'minPeaks',\n                    description: '<p>minimum number of peaks defaults to 200</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'Array of timestamped peaks',\n                  type: 'Array'\n                },\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4929,\n                description:\n                  '<p>Schedule events to trigger every time a MediaElement\\n(audio/video) reaches a playback cue point.</p>\\n<p>Accepts a callback function, a time (in seconds) at which to trigger\\nthe callback, and an optional parameter for the callback.</p>\\n<p>Time will be passed as the first parameter to the callback function,\\nand param will be the second parameter.</p>\\n',\n                itemtype: 'method',\n                name: 'addCue',\n                params: [\n                  {\n                    name: 'time',\n                    description:\n                      '<p>Time in seconds, relative to this media\\n                           element&#39;s playback. For example, to trigger\\n                           an event every time playback reaches two\\n                           seconds, pass in the number 2. This will be\\n                           passed as the first parameter to\\n                           the callback function.</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>Name of a function that will be\\n                           called at the given time. The callback will\\n                           receive time and (optionally) param as its\\n                           two parameters.</p>\\n',\n                    type: 'Function'\n                  },\n                  {\n                    name: 'value',\n                    description:\n                      '<p>An object to be passed as the\\n                           second parameter to the\\n                           callback function.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'id ID of this cue,\\n                    useful for removeCue(id)',\n                  type: 'Number'\n                },\n                example: [\n                  '\\n<div><code>\\nlet mySound;\\nfunction preload() {\\n  mySound = loadSound(\\'assets/Damscray_DancingTiger.mp3\\');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(canvasPressed);\\n  background(220);\\n  text(\\'tap to play\\', 10, 20);\\n\\n  // schedule calls to changeText\\n  mySound.addCue(0, changeText, \"hello\" );\\n  mySound.addCue(0.5, changeText, \"hello,\" );\\n  mySound.addCue(1, changeText, \"hello, p5!\");\\n  mySound.addCue(1.5, changeText, \"hello, p5!!\");\\n  mySound.addCue(2, changeText, \"hello, p5!!!!!\");\\n}\\n\\nfunction changeText(val) {\\n  background(220);\\n  text(val, 10, 20);\\n}\\n\\nfunction canvasPressed() {\\n  mySound.play();\\n}\\n</code></div>'\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 4999,\n                description:\n                  '<p>Remove a callback based on its ID. The ID is returned by the\\naddCue method.</p>\\n',\n                itemtype: 'method',\n                name: 'removeCue',\n                params: [\n                  {\n                    name: 'id',\n                    description: '<p>ID of the cue, as returned by addCue</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5025,\n                description:\n                  '<p>Remove all of the callbacks that had originally been scheduled\\nvia the addCue method.</p>\\n',\n                itemtype: 'method',\n                name: 'clearCues',\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5054,\n                description:\n                  '<p>Save a p5.SoundFile as a .wav file. The browser will prompt the user\\nto download the file to their device. To upload a file to a server, see\\n<a href=\"/docs/reference/#/p5.SoundFile/getBlob\">getBlob</a></p>\\n',\n                itemtype: 'method',\n                name: 'save',\n                params: [\n                  {\n                    name: 'fileName',\n                    description: '<p>name of the resulting .wav file.</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n <div><code>\\n let mySound;\\n function preload() {\\n   mySound = loadSound('assets/doorbell.mp3');\\n }\\n function setup() {\\n   let cnv = createCanvas(100, 100);\\n   cnv.mousePressed(canvasPressed);\\n   background(220);\\n   text('tap to download', 10, 20);\\n }\\n\\n function canvasPressed() {\\n   mySound.save('my cool filename');\\n }\\n</code></div>\"\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5085,\n                description:\n                  '<p>This method is useful for sending a SoundFile to a server. It returns the\\n.wav-encoded audio data as a &quot;<a target=\"_blank\" title=\"Blob reference at\\nMDN\" href=\"https://developer.mozilla.org/en-US/docs/Web/API/Blob\">Blob</a>&quot;.\\nA Blob is a file-like data object that can be uploaded to a server\\nwith an <a href=\"/docs/reference/#/p5/httpDo\">http</a> request. We&#39;ll\\nuse the <code>httpDo</code> options object to send a POST request with some\\nspecific options: we encode the request as <code>multipart/form-data</code>,\\nand attach the blob as one of the form values using <code>FormData</code>.</p>\\n',\n                itemtype: 'method',\n                name: 'getBlob',\n                return: {\n                  description: 'A file-like data object',\n                  type: 'Blob'\n                },\n                example: [\n                  \"\\n <div><code>\\n function preload() {\\n   mySound = loadSound('assets/doorbell.mp3');\\n }\\n\\n function setup() {\\n   noCanvas();\\n   let soundBlob = mySound.getBlob();\\n\\n   // Now we can send the blob to a server...\\n   let serverUrl = 'https://jsonplaceholder.typicode.com/posts';\\n   let httpRequestOptions = {\\n     method: 'POST',\\n     body: new FormData().append('soundBlob', soundBlob),\\n     headers: new Headers({\\n       'Content-Type': 'multipart/form-data'\\n     })\\n   };\\n   httpDo(serverUrl, httpRequestOptions);\\n\\n   // We can also create an `ObjectURL` pointing to the Blob\\n   let blobUrl = URL.createObjectURL(soundBlob);\\n\\n   // The `<Audio>` Element accepts Object URL's\\n   createAudio(blobUrl).showControls();\\n\\n   createDiv();\\n\\n   // The ObjectURL exists as long as this tab is open\\n   let input = createInput(blobUrl);\\n   input.attribute('readonly', true);\\n   input.mouseClicked(function() { input.elt.select() });\\n }\\n\\n</code></div>\"\n                ],\n                class: 'p5.SoundFile',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5276,\n                description:\n                  '<p>Connects to the p5sound instance (master output) by default.\\nOptionally, you can pass in a specific source (i.e. a soundfile).</p>\\n',\n                itemtype: 'method',\n                name: 'setInput',\n                params: [\n                  {\n                    name: 'snd',\n                    description:\n                      '<p>set the sound source\\n                                     (optional, defaults to\\n                                     master output)</p>\\n',\n                    type: 'SoundObject|undefined',\n                    optional: true\n                  },\n                  {\n                    name: 'smoothing',\n                    description:\n                      '<p>a range between 0.0 and 1.0\\n                                      to smooth amplitude readings</p>\\n',\n                    type: 'Number|undefined',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nfunction preload(){\\n  sound1 = loadSound('assets/beat.mp3');\\n  sound2 = loadSound('assets/drum.mp3');\\n}\\nfunction setup(){\\n  cnv = createCanvas(100, 100);\\n  cnv.mouseClicked(toggleSound);\\n\\n  amplitude = new p5.Amplitude();\\n  amplitude.setInput(sound2);\\n}\\n\\nfunction draw() {\\n  background(220);\\n  text('tap to play', 20, 20);\\n\\n  let level = amplitude.getLevel();\\n  let size = map(level, 0, 1, 0, 200);\\n  ellipse(width/2, height/2, size, size);\\n}\\n\\nfunction toggleSound(){\\n  if (sound1.isPlaying() && sound2.isPlaying()) {\\n    sound1.stop();\\n    sound2.stop();\\n  } else {\\n    sound1.play();\\n    sound2.play();\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5.Amplitude',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5367,\n                description:\n                  '<p>Returns a single Amplitude reading at the moment it is called.\\nFor continuous readings, run in the draw loop.</p>\\n',\n                itemtype: 'method',\n                name: 'getLevel',\n                params: [\n                  {\n                    name: 'channel',\n                    description:\n                      '<p>Optionally return only channel 0 (left) or 1 (right)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'Amplitude as a number between 0.0 and 1.0',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\nfunction preload(){\\n  sound = loadSound('assets/beat.mp3');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mouseClicked(toggleSound);\\n  amplitude = new p5.Amplitude();\\n}\\n\\nfunction draw() {\\n  background(220, 150);\\n  textAlign(CENTER);\\n  text('tap to play', width/2, 20);\\n\\n  let level = amplitude.getLevel();\\n  let size = map(level, 0, 1, 0, 200);\\n  ellipse(width/2, height/2, size, size);\\n}\\n\\nfunction toggleSound(){\\n  if (sound.isPlaying()) {\\n    sound.stop();\\n  } else {\\n    sound.play();\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5.Amplitude',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5421,\n                description:\n                  '<p>Determines whether the results of Amplitude.process() will be\\nNormalized. To normalize, Amplitude finds the difference the\\nloudest reading it has processed and the maximum amplitude of\\n1.0. Amplitude adds this difference to all values to produce\\nresults that will reliably map between 0.0 and 1.0. However,\\nif a louder moment occurs, the amount that Normalize adds to\\nall the values will change. Accepts an optional boolean parameter\\n(true or false). Normalizing is off by default.</p>\\n',\n                itemtype: 'method',\n                name: 'toggleNormalize',\n                params: [\n                  {\n                    name: 'boolean',\n                    description: '<p>set normalize to true (1) or false (0)</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Amplitude',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5449,\n                description:\n                  '<p>Smooth Amplitude analysis by averaging with the last analysis\\nframe. Off by default.</p>\\n',\n                itemtype: 'method',\n                name: 'smooth',\n                params: [\n                  {\n                    name: 'set',\n                    description: '<p>smoothing from 0.0 &lt;= 1</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                class: 'p5.Amplitude',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5625,\n                description:\n                  '<p>Set the input source for the FFT analysis. If no source is\\nprovided, FFT will analyze all sound in the sketch.</p>\\n',\n                itemtype: 'method',\n                name: 'setInput',\n                params: [\n                  {\n                    name: 'source',\n                    description: '<p>p5.sound object (or web audio API source node)</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                class: 'p5.FFT',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5648,\n                description:\n                  '<p>Returns an array of amplitude values (between -1.0 and +1.0) that represent\\na snapshot of amplitude readings in a single buffer. Length will be\\nequal to bins (defaults to 1024). Can be used to draw the waveform\\nof a sound.</p>\\n',\n                itemtype: 'method',\n                name: 'waveform',\n                params: [\n                  {\n                    name: 'bins',\n                    description:\n                      '<p>Must be a power of two between\\n                          16 and 1024. Defaults to 1024.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'precision',\n                    description:\n                      '<p>If any value is provided, will return results\\n                            in a Float32 Array which is more precise\\n                            than a regular array.</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'Array    Array of amplitude values (-1 to 1)\\n                          over time. Array length = bins.',\n                  type: 'Array'\n                },\n                class: 'p5.FFT',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5699,\n                description:\n                  '<p>Returns an array of amplitude values (between 0 and 255)\\nacross the frequency spectrum. Length is equal to FFT bins\\n(1024 by default). The array indices correspond to frequencies\\n(i.e. pitches), from the lowest to the highest that humans can\\nhear. Each value represents amplitude at that slice of the\\nfrequency spectrum. Must be called prior to using\\n<code>getEnergy()</code>.</p>\\n',\n                itemtype: 'method',\n                name: 'analyze',\n                params: [\n                  {\n                    name: 'bins',\n                    description:\n                      '<p>Must be a power of two between\\n                           16 and 1024. Defaults to 1024.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'scale',\n                    description:\n                      '<p>If &quot;dB,&quot; returns decibel\\n                           float measurements between\\n                           -140 and 0 (max).\\n                           Otherwise returns integers from 0-255.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'spectrum    Array of energy (amplitude/volume)\\n                            values across the frequency spectrum.\\n                            Lowest energy (silence) = 0, highest\\n                            possible is 255.',\n                  type: 'Array'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet osc, fft;\\n\\nfunction setup(){\\n  let cnv = createCanvas(100,100);\\n  cnv.mousePressed(startSound);\\n  osc = new p5.Oscillator();\\n  osc.amp(0);\\n  fft = new p5.FFT();\\n}\\n\\nfunction draw(){\\n  background(220);\\n\\n  let freq = map(mouseX, 0, windowWidth, 20, 10000);\\n  freq = constrain(freq, 1, 20000);\\n  osc.freq(freq);\\n\\n  let spectrum = fft.analyze();\\n  noStroke();\\n  fill(255, 0, 255);\\n  for (let i = 0; i< spectrum.length; i++){\\n    let x = map(i, 0, spectrum.length, 0, width);\\n    let h = -height + map(spectrum[i], 0, 255, height, 0);\\n    rect(x, height, width / spectrum.length, h );\\n  }\\n\\n  stroke(255);\\n  if (!osc.started) {\\n    text('tap here and drag to change frequency', 10, 20, width - 20);\\n  } else {\\n    text(round(freq)+'Hz', 10, 20);\\n  }\\n}\\n\\nfunction startSound() {\\n  osc.start();\\n  osc.amp(0.5, 0.2);\\n}\\n\\nfunction mouseReleased() {\\n  osc.amp(0, 0.2);\\n}\\n</code></div>\\n\\n\"\n                ],\n                class: 'p5.FFT',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5795,\n                description:\n                  '<p>Returns the amount of energy (volume) at a specific\\n<a href=\"https://en.wikipedia.org/wiki/Audio_frequency\" target=\"_blank\">\\nfrequency</a>, or the average amount of energy between two\\nfrequencies. Accepts Number(s) corresponding\\nto frequency (in Hz), or a String corresponding to predefined\\nfrequency ranges (&quot;bass&quot;, &quot;lowMid&quot;, &quot;mid&quot;, &quot;highMid&quot;, &quot;treble&quot;).\\nReturns a range between 0 (no energy/volume at that frequency) and\\n255 (maximum energy).\\n<em>NOTE: analyze() must be called prior to getEnergy(). Analyze()\\ntells the FFT to analyze frequency data, and getEnergy() uses\\nthe results determine the value at a specific frequency or\\nrange of frequencies.</em></p></p>\\n',\n                itemtype: 'method',\n                name: 'getEnergy',\n                params: [\n                  {\n                    name: 'frequency1',\n                    description:\n                      '<p>Will return a value representing\\n                              energy at this frequency. Alternately,\\n                              the strings &quot;bass&quot;, &quot;lowMid&quot; &quot;mid&quot;,\\n                              &quot;highMid&quot;, and &quot;treble&quot; will return\\n                              predefined frequency ranges.</p>\\n',\n                    type: 'Number|String'\n                  },\n                  {\n                    name: 'frequency2',\n                    description:\n                      '<p>If a second frequency is given,\\n                              will return average amount of\\n                              energy that exists between the\\n                              two frequencies.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'Energy   Energy (volume/amplitude) from\\n                            0 and 255.',\n                  type: 'Number'\n                },\n                class: 'p5.FFT',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5882,\n                description:\n                  '<p>Returns the\\n<a href=\"http://en.wikipedia.org/wiki/Spectral_centroid\" target=\"_blank\">\\nspectral centroid</a> of the input signal.\\n<em>NOTE: analyze() must be called prior to getCentroid(). Analyze()\\ntells the FFT to analyze frequency data, and getCentroid() uses\\nthe results determine the spectral centroid.</em></p></p>\\n',\n                itemtype: 'method',\n                name: 'getCentroid',\n                return: {\n                  description:\n                    'Spectral Centroid Frequency   Frequency of the spectral centroid in Hz.',\n                  type: 'Number'\n                },\n                example: [\n                  \"\\n<div><code>\\n function setup(){\\ncnv = createCanvas(100,100);\\ncnv.mousePressed(userStartAudio);\\nsound = new p5.AudioIn();\\nsound.start();\\nfft = new p5.FFT();\\nsound.connect(fft);\\n}\\n\\nfunction draw() {\\nif (getAudioContext().state !== 'running') {\\n  background(220);\\n  text('tap here and enable mic to begin', 10, 20, width - 20);\\n  return;\\n}\\nlet centroidplot = 0.0;\\nlet spectralCentroid = 0;\\n\\nbackground(0);\\nstroke(0,255,0);\\nlet spectrum = fft.analyze();\\nfill(0,255,0); // spectrum is green\\n\\n//draw the spectrum\\nfor (let i = 0; i < spectrum.length; i++){\\n  let x = map(log(i), 0, log(spectrum.length), 0, width);\\n  let h = map(spectrum[i], 0, 255, 0, height);\\n  let rectangle_width = (log(i+1)-log(i))*(width/log(spectrum.length));\\n  rect(x, height, rectangle_width, -h )\\n}\\nlet nyquist = 22050;\\n\\n// get the centroid\\nspectralCentroid = fft.getCentroid();\\n\\n// the mean_freq_index calculation is for the display.\\nlet mean_freq_index = spectralCentroid/(nyquist/spectrum.length);\\n\\ncentroidplot = map(log(mean_freq_index), 0, log(spectrum.length), 0, width);\\n\\nstroke(255,0,0); // the line showing where the centroid is will be red\\n\\nrect(centroidplot, 0, width / spectrum.length, height)\\nnoStroke();\\nfill(255,255,255);  // text is white\\ntext('centroid: ', 10, 20);\\ntext(round(spectralCentroid)+' Hz', 10, 40);\\n}\\n </code></div>\"\n                ],\n                class: 'p5.FFT',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5968,\n                description:\n                  '<p>Smooth FFT analysis by averaging with the last analysis frame.</p>\\n',\n                itemtype: 'method',\n                name: 'smooth',\n                params: [\n                  {\n                    name: 'smoothing',\n                    description:\n                      '<p>0.0 &lt; smoothing &lt; 1.0.\\n                             Defaults to 0.8.</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                class: 'p5.FFT',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 5994,\n                description:\n                  '<p>Returns an array of average amplitude values for a given number\\nof frequency bands split equally. N defaults to 16.\\n<em>NOTE: analyze() must be called prior to linAverages(). Analyze()\\ntells the FFT to analyze frequency data, and linAverages() uses\\nthe results to group them into a smaller set of averages.</em></p></p>\\n',\n                itemtype: 'method',\n                name: 'linAverages',\n                params: [\n                  {\n                    name: 'N',\n                    description: '<p>Number of returned frequency groups</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description:\n                    'linearAverages   Array of average amplitude values for each group',\n                  type: 'Array'\n                },\n                class: 'p5.FFT',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6028,\n                description:\n                  '<p>Returns an array of average amplitude values of the spectrum, for a given\\nset of <a href=\"https://en.wikipedia.org/wiki/Octave_band\" target=\"_blank\">\\nOctave Bands</a>\\n<em>NOTE: analyze() must be called prior to logAverages(). Analyze()\\ntells the FFT to analyze frequency data, and logAverages() uses\\nthe results to group them into a smaller set of averages.</em></p></p>\\n',\n                itemtype: 'method',\n                name: 'logAverages',\n                params: [\n                  {\n                    name: 'octaveBands',\n                    description: '<p>Array of Octave Bands objects for grouping</p>\\n',\n                    type: 'Array'\n                  }\n                ],\n                return: {\n                  description:\n                    'logAverages    Array of average amplitude values for each group',\n                  type: 'Array'\n                },\n                class: 'p5.FFT',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6063,\n                description:\n                  '<p>Calculates and Returns the 1/N\\n<a href=\"https://en.wikipedia.org/wiki/Octave_band\" target=\"_blank\">Octave Bands</a>\\nN defaults to 3 and minimum central frequency to 15.625Hz.\\n(1/3 Octave Bands ~= 31 Frequency Bands)\\nSetting fCtr0 to a central value of a higher octave will ignore the lower bands\\nand produce less frequency groups.</p>\\n',\n                itemtype: 'method',\n                name: 'getOctaveBands',\n                params: [\n                  {\n                    name: 'N',\n                    description:\n                      '<p>Specifies the 1/N type of generated octave bands</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'fCtr0',\n                    description: '<p>Minimum central frequency for the lowest band</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description:\n                    'octaveBands   Array of octave band objects with their bounds',\n                  type: 'Array'\n                },\n                class: 'p5.FFT',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6209,\n                description: '<p>Fade to value, for smooth transitions</p>\\n',\n                itemtype: 'method',\n                name: 'fade',\n                params: [\n                  {\n                    name: 'value',\n                    description: '<p>Value to set this signal</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'secondsFromNow',\n                    description: '<p>Length of fade, in seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Signal',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6223,\n                description:\n                  '<p>Connect a p5.sound object or Web Audio node to this\\np5.Signal so that its amplitude values can be scaled.</p>\\n',\n                itemtype: 'method',\n                name: 'setInput',\n                params: [\n                  {\n                    name: 'input',\n                    description: '',\n                    type: 'Object'\n                  }\n                ],\n                class: 'p5.Signal',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6240,\n                description:\n                  '<p>Add a constant value to this audio signal,\\nand return the resulting audio signal. Does\\nnot change the value of the original signal,\\ninstead it returns a new p5.SignalAdd.</p>\\n',\n                itemtype: 'method',\n                name: 'add',\n                params: [\n                  {\n                    name: 'number',\n                    description: '',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'object',\n                  type: 'p5.Signal'\n                },\n                class: 'p5.Signal',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6262,\n                description:\n                  '<p>Multiply this signal by a constant value,\\nand return the resulting audio signal. Does\\nnot change the value of the original signal,\\ninstead it returns a new p5.SignalMult.</p>\\n',\n                itemtype: 'method',\n                name: 'mult',\n                params: [\n                  {\n                    name: 'number',\n                    description: '<p>to multiply</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'object',\n                  type: 'p5.Signal'\n                },\n                class: 'p5.Signal',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6284,\n                description:\n                  '<p>Scale this signal value to a given range,\\nand return the result as an audio signal. Does\\nnot change the value of the original signal,\\ninstead it returns a new p5.SignalScale.</p>\\n',\n                itemtype: 'method',\n                name: 'scale',\n                params: [\n                  {\n                    name: 'number',\n                    description: '<p>to multiply</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'inMin',\n                    description: '<p>input range minumum</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'inMax',\n                    description: '<p>input range maximum</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'outMin',\n                    description: '<p>input range minumum</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'outMax',\n                    description: '<p>input range maximum</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'object',\n                  type: 'p5.Signal'\n                },\n                class: 'p5.Signal',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6397,\n                description: '<p>Time until envelope reaches attackLevel</p>\\n',\n                itemtype: 'property',\n                name: 'attackTime',\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6402,\n                description: '<p>Level once attack is complete.</p>\\n',\n                itemtype: 'property',\n                name: 'attackLevel',\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6408,\n                description: '<p>Time until envelope reaches decayLevel.</p>\\n',\n                itemtype: 'property',\n                name: 'decayTime',\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6414,\n                description:\n                  '<p>Level after decay. The envelope will sustain here until it is released.</p>\\n',\n                itemtype: 'property',\n                name: 'decayLevel',\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6420,\n                description: '<p>Duration of the release portion of the envelope.</p>\\n',\n                itemtype: 'property',\n                name: 'releaseTime',\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6426,\n                description: '<p>Level at the end of the release.</p>\\n',\n                itemtype: 'property',\n                name: 'releaseLevel',\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6463,\n                description:\n                  '<p>Reset the envelope with a series of time/value pairs.</p>\\n',\n                itemtype: 'method',\n                name: 'set',\n                params: [\n                  {\n                    name: 'attackTime',\n                    description:\n                      '<p>Time (in seconds) before level\\n                               reaches attackLevel</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'attackLevel',\n                    description:\n                      '<p>Typically an amplitude between\\n                               0.0 and 1.0</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'decayTime',\n                    description: '<p>Time</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'decayLevel',\n                    description:\n                      '<p>Amplitude (In a standard ADSR envelope,\\n                               decayLevel = sustainLevel)</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'releaseTime',\n                    description: '<p>Release Time (in seconds)</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'releaseLevel',\n                    description: '<p>Amplitude</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet attackTime;\\nlet l1 = 0.7; // attack level 0.0 to 1.0\\nlet t2 = 0.3; // decay time in seconds\\nlet l2 = 0.1; // decay level  0.0 to 1.0\\nlet l3 = 0.2; // release time in seconds\\n\\nlet env, triOsc;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playSound);\\n\\n  env = new p5.Envelope();\\n  triOsc = new p5.Oscillator('triangle');\\n}\\n\\nfunction draw() {\\n  background(220);\\n  text('tap here to play', 5, 20);\\n\\n  attackTime = map(mouseX, 0, width, 0.0, 1.0);\\n  text('attack time: ' + attackTime, 5, height - 20);\\n}\\n\\n// mouseClick triggers envelope if over canvas\\nfunction playSound() {\\n  env.set(attackTime, l1, t2, l2, l3);\\n\\n  triOsc.start();\\n  env.play(triOsc);\\n}\\n</code></div>\\n\"\n                ],\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6525,\n                description:\n                  '<p>Set values like a traditional\\n<a href=\"https://en.wikipedia.org/wiki/Synthesizer#/media/File:ADSR_parameter.svg\">\\nADSR envelope\\n</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'setADSR',\n                params: [\n                  {\n                    name: 'attackTime',\n                    description:\n                      '<p>Time (in seconds before envelope\\n                              reaches Attack Level</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'decayTime',\n                    description:\n                      '<p>Time (in seconds) before envelope\\n                              reaches Decay/Sustain Level</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'susRatio',\n                    description:\n                      '<p>Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\\n                              where 1.0 = attackLevel, 0.0 = releaseLevel.\\n                              The susRatio determines the decayLevel and the level at which the\\n                              sustain portion of the envelope will sustain.\\n                              For example, if attackLevel is 0.4, releaseLevel is 0,\\n                              and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\\n                              increased to 1.0 (using <code>setRange</code>),\\n                              then decayLevel would increase proportionally, to become 0.5.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'releaseTime',\n                    description: '<p>Time in seconds from now (defaults to 0)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet attackLevel = 1.0;\\nlet releaseLevel = 0;\\n\\nlet attackTime = 0.001;\\nlet decayTime = 0.2;\\nlet susPercent = 0.2;\\nlet releaseTime = 0.5;\\n\\nlet env, triOsc;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playEnv);\\n\\n  env = new p5.Envelope();\\n  triOsc = new p5.Oscillator('triangle');\\n  triOsc.amp(env);\\n  triOsc.freq(220);\\n}\\n\\nfunction draw() {\\n  background(220);\\n  text('tap here to play', 5, 20);\\n  attackTime = map(mouseX, 0, width, 0, 1.0);\\n  text('attack time: ' + attackTime, 5, height - 40);\\n}\\n\\nfunction playEnv() {\\n  triOsc.start();\\n  env.setADSR(attackTime, decayTime, susPercent, releaseTime);\\n  env.play();\\n}\\n</code></div>\"\n                ],\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6594,\n                description:\n                  '<p>Set max (attackLevel) and min (releaseLevel) of envelope.</p>\\n',\n                itemtype: 'method',\n                name: 'setRange',\n                params: [\n                  {\n                    name: 'aLevel',\n                    description: '<p>attack level (defaults to 1)</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'rLevel',\n                    description: '<p>release level (defaults to 0)</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet attackLevel = 1.0;\\nlet releaseLevel = 0;\\n\\nlet attackTime = 0.001;\\nlet decayTime = 0.2;\\nlet susPercent = 0.2;\\nlet releaseTime = 0.5;\\n\\nlet env, triOsc;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playEnv);\\n\\n  env = new p5.Envelope();\\n  triOsc = new p5.Oscillator('triangle');\\n  triOsc.amp(env);\\n  triOsc.freq(220);\\n}\\n\\nfunction draw() {\\n  background(220);\\n  text('tap here to play', 5, 20);\\n  attackLevel = map(mouseY, height, 0, 0, 1.0);\\n  text('attack level: ' + attackLevel, 5, height - 20);\\n}\\n\\nfunction playEnv() {\\n  triOsc.start();\\n  env.setRange(attackLevel, releaseLevel);\\n  env.play();\\n}\\n</code></div>\"\n                ],\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6667,\n                description:\n                  '<p>Assign a parameter to be controlled by this envelope.\\nIf a p5.Sound object is given, then the p5.Envelope will control its\\noutput gain. If multiple inputs are provided, the env will\\ncontrol all of them.</p>\\n',\n                itemtype: 'method',\n                name: 'setInput',\n                params: [\n                  {\n                    name: 'inputs',\n                    description:\n                      '<p>A p5.sound object or\\n                              Web Audio Param.</p>\\n',\n                    type: 'Object',\n                    optional: true,\n                    multiple: true\n                  }\n                ],\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6685,\n                description:\n                  '<p>Set whether the envelope ramp is linear (default) or exponential.\\nExponential ramps can be useful because we perceive amplitude\\nand frequency logarithmically.</p>\\n',\n                itemtype: 'method',\n                name: 'setExp',\n                params: [\n                  {\n                    name: 'isExp',\n                    description: '<p>true is exponential, false is linear</p>\\n',\n                    type: 'Boolean'\n                  }\n                ],\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6708,\n                description:\n                  '<p>Play tells the envelope to start acting on a given input.\\nIf the input is a p5.sound object (i.e. AudioIn, Oscillator,\\nSoundFile), then Envelope will control its output volume.\\nEnvelopes can also be used to control any <a href=\"\\nhttp://docs.webplatform.org/wiki/apis/webaudio/AudioParam\">\\nWeb Audio Audio Param.</a></p>',\n                itemtype: 'method',\n                name: 'play',\n                params: [\n                  {\n                    name: 'unit',\n                    description:\n                      '<p>A p5.sound object or\\n                              Web Audio Param.</p>\\n',\n                    type: 'Object'\n                  },\n                  {\n                    name: 'startTime',\n                    description: '<p>time from now (in seconds) at which to play</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'sustainTime',\n                    description: '<p>time to sustain before releasing the envelope</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet attackLevel = 1.0;\\nlet releaseLevel = 0;\\n\\nlet attackTime = 0.001;\\nlet decayTime = 0.2;\\nlet susPercent = 0.2;\\nlet releaseTime = 0.5;\\n\\nlet env, triOsc;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playEnv);\\n\\n  env = new p5.Envelope();\\n  triOsc = new p5.Oscillator('triangle');\\n  triOsc.amp(env);\\n  triOsc.freq(220);\\n  triOsc.start();\\n}\\n\\nfunction draw() {\\n  background(220);\\n  text('tap here to play', 5, 20);\\n  attackTime = map(mouseX, 0, width, 0, 1.0);\\n  attackLevel = map(mouseY, height, 0, 0, 1.0);\\n  text('attack time: ' + attackTime, 5, height - 40);\\n  text('attack level: ' + attackLevel, 5, height - 20);\\n}\\n\\nfunction playEnv() {\\n  // ensure that audio is enabled\\n  userStartAudio();\\n\\n  env.setADSR(attackTime, decayTime, susPercent, releaseTime);\\n  env.setRange(attackLevel, releaseLevel);\\n  env.play();\\n}\\n</code></div>\"\n                ],\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6779,\n                description:\n                  '<p>Trigger the Attack, and Decay portion of the Envelope.\\nSimilar to holding down a key on a piano, but it will\\nhold the sustain level until you let go. Input can be\\nany p5.sound object, or a <a href=\"\\nhttp://docs.webplatform.org/wiki/apis/webaudio/AudioParam\">\\nWeb Audio Param</a>.</p>\\n',\n                itemtype: 'method',\n                name: 'triggerAttack',\n                params: [\n                  {\n                    name: 'unit',\n                    description: '<p>p5.sound Object or Web Audio Param</p>\\n',\n                    type: 'Object'\n                  },\n                  {\n                    name: 'secondsFromNow',\n                    description: '<p>time from now (in seconds)</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet attackTime = 0.001;\\nlet decayTime = 0.2;\\nlet susPercent = 0.3;\\nlet releaseTime = 0.4;\\nlet env, triOsc;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  background(220);\\n  textAlign(CENTER);\\n  textSize(10);\\n  text('tap to triggerAttack', width/2, height/2);\\n\\n  env = new p5.Envelope();\\n  env.setADSR(attackTime, decayTime, susPercent, releaseTime);\\n  env.setRange(1.0, 0.0);\\n  triOsc = new p5.Oscillator('triangle');\\n  triOsc.freq(220);\\n\\n  cnv.mousePressed(envAttack);\\n}\\n\\nfunction envAttack()  {\\n  background(0, 255, 255);\\n  text('release to release', width/2, height/2);\\n\\n  // ensures audio is enabled. See also: `userStartAudio`\\n  triOsc.start();\\n\\n  env.triggerAttack(triOsc);\\n}\\n\\nfunction mouseReleased() {\\n  background(220);\\n  text('tap to triggerAttack', width/2, height/2);\\n\\n  env.triggerRelease(triOsc);\\n}\\n</code></div>\"\n                ],\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6887,\n                description:\n                  '<p>Trigger the Release of the Envelope. This is similar to releasing\\nthe key on a piano and letting the sound fade according to the\\nrelease level and release time.</p>\\n',\n                itemtype: 'method',\n                name: 'triggerRelease',\n                params: [\n                  {\n                    name: 'unit',\n                    description: '<p>p5.sound Object or Web Audio Param</p>\\n',\n                    type: 'Object'\n                  },\n                  {\n                    name: 'secondsFromNow',\n                    description: '<p>time to trigger the release</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet attackTime = 0.001;\\nlet decayTime = 0.2;\\nlet susPercent = 0.3;\\nlet releaseTime = 0.4;\\nlet env, triOsc;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  background(220);\\n  textAlign(CENTER);\\n  textSize(10);\\n  text('tap to triggerAttack', width/2, height/2);\\n\\n  env = new p5.Envelope();\\n  env.setADSR(attackTime, decayTime, susPercent, releaseTime);\\n  env.setRange(1.0, 0.0);\\n  triOsc = new p5.Oscillator('triangle');\\n  triOsc.freq(220);\\n\\n  cnv.mousePressed(envAttack);\\n}\\n\\nfunction envAttack()  {\\n  background(0, 255, 255);\\n  text('release to release', width/2, height/2);\\n\\n  // ensures audio is enabled. See also: `userStartAudio`\\n  triOsc.start();\\n\\n  env.triggerAttack(triOsc);\\n}\\n\\nfunction mouseReleased() {\\n  background(220);\\n  text('tap to triggerAttack', width/2, height/2);\\n\\n  env.triggerRelease(triOsc);\\n}\\n</code></div>\"\n                ],\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 6981,\n                description:\n                  '<p>Exponentially ramp to a value using the first two\\nvalues from <code><a href=\"#/p5.Envelope/setADSR\">setADSR(attackTime, decayTime)</a></code>\\nas <a href=\"https://en.wikipedia.org/wiki/RC_time_constant\">\\ntime constants</a> for simple exponential ramps.\\nIf the value is higher than current value, it uses attackTime,\\nwhile a decrease uses decayTime.</p>\\n',\n                itemtype: 'method',\n                name: 'ramp',\n                params: [\n                  {\n                    name: 'unit',\n                    description: '<p>p5.sound Object or Web Audio Param</p>\\n',\n                    type: 'Object'\n                  },\n                  {\n                    name: 'secondsFromNow',\n                    description: '<p>When to trigger the ramp</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'v',\n                    description: '<p>Target value</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'v2',\n                    description: '<p>Second target value (optional)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet env, osc, amp;\\n\\nlet attackTime = 0.001;\\nlet decayTime = 0.2;\\nlet attackLevel = 1;\\nlet decayLevel = 0;\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  fill(0,255,0);\\n  noStroke();\\n\\n  env = new p5.Envelope();\\n  env.setADSR(attackTime, decayTime);\\n  osc = new p5.Oscillator();\\n  osc.amp(env);\\n  amp = new p5.Amplitude();\\n\\n  cnv.mousePressed(triggerRamp);\\n}\\n\\nfunction triggerRamp() {\\n  // ensures audio is enabled. See also: `userStartAudio`\\n  osc.start();\\n\\n  env.ramp(osc, 0, attackLevel, decayLevel);\\n}\\n\\nfunction draw() {\\n  background(20);\\n  text('tap to play', 10, 20);\\n  let h = map(amp.getLevel(), 0, 0.4, 0, height);;\\n  rect(0, height, width, -h);\\n}\\n</code></div>\"\n                ],\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7095,\n                description:\n                  '<p>Add a value to the p5.Oscillator&#39;s output amplitude,\\nand return the oscillator. Calling this method\\nagain will override the initial add() with new values.</p>\\n',\n                itemtype: 'method',\n                name: 'add',\n                params: [\n                  {\n                    name: 'number',\n                    description: '<p>Constant number to add</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description:\n                    'Envelope Returns this envelope\\n                                   with scaled output',\n                  type: 'p5.Envelope'\n                },\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7114,\n                description:\n                  '<p>Multiply the p5.Envelope&#39;s output amplitude\\nby a fixed value. Calling this method\\nagain will override the initial mult() with new values.</p>\\n',\n                itemtype: 'method',\n                name: 'mult',\n                params: [\n                  {\n                    name: 'number',\n                    description: '<p>Constant number to multiply</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description:\n                    'Envelope Returns this envelope\\n                                   with scaled output',\n                  type: 'p5.Envelope'\n                },\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7133,\n                description:\n                  '<p>Scale this envelope&#39;s amplitude values to a given\\nrange, and return the envelope. Calling this method\\nagain will override the initial scale() with new values.</p>\\n',\n                itemtype: 'method',\n                name: 'scale',\n                params: [\n                  {\n                    name: 'inMin',\n                    description: '<p>input range minumum</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'inMax',\n                    description: '<p>input range maximum</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'outMin',\n                    description: '<p>input range minumum</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'outMax',\n                    description: '<p>input range maximum</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description:\n                    'Envelope Returns this envelope\\n                                   with scaled output',\n                  type: 'p5.Envelope'\n                },\n                class: 'p5.Envelope',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7268,\n                description:\n                  '<p>Set the width of a Pulse object (an oscillator that implements\\nPulse Width Modulation).</p>\\n',\n                itemtype: 'method',\n                name: 'width',\n                params: [\n                  {\n                    name: 'width',\n                    description:\n                      '<p>Width between the pulses (0 to 1.0,\\n                       defaults to 0)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Pulse',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7484,\n                description:\n                  '<p>Set type of noise to &#39;white&#39;, &#39;pink&#39; or &#39;brown&#39;.\\nWhite is the default.</p>\\n',\n                itemtype: 'method',\n                name: 'setType',\n                params: [\n                  {\n                    name: 'type',\n                    description:\n                      '<p>&#39;white&#39;, &#39;pink&#39; or &#39;brown&#39;</p>\\n',\n                    type: 'String',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Noise',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7630,\n                itemtype: 'property',\n                name: 'input',\n                type: 'GainNode',\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7634,\n                itemtype: 'property',\n                name: 'output',\n                type: 'GainNode',\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7639,\n                itemtype: 'property',\n                name: 'stream',\n                type: 'MediaStream|null',\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7644,\n                itemtype: 'property',\n                name: 'mediaStream',\n                type: 'MediaStreamAudioSourceNode|null',\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7649,\n                itemtype: 'property',\n                name: 'currentSource',\n                type: 'Number|null',\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7654,\n                description:\n                  '<p>Client must allow browser to access their microphone / audioin source.\\nDefault: false. Will become true when the client enables access.</p>\\n',\n                itemtype: 'property',\n                name: 'enabled',\n                type: 'Boolean',\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7662,\n                description:\n                  '<p>Input amplitude, connect to it by default but not to master out</p>\\n',\n                itemtype: 'property',\n                name: 'amplitude',\n                type: 'p5.Amplitude',\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7678,\n                description:\n                  '<p>Start processing audio input. This enables the use of other\\nAudioIn methods like getLevel(). Note that by default, AudioIn\\nis not connected to p5.sound&#39;s output. So you won&#39;t hear\\nanything unless you use the connect() method.<br/></p>\\n<p>Certain browsers limit access to the user&#39;s microphone. For example,\\nChrome only allows access from localhost and over https. For this reason,\\nyou may want to include an errorCallback—a function that is called in case\\nthe browser won&#39;t provide mic access.</p>\\n',\n                itemtype: 'method',\n                name: 'start',\n                params: [\n                  {\n                    name: 'successCallback',\n                    description:\n                      '<p>Name of a function to call on\\n                                  success.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'errorCallback',\n                    description:\n                      '<p>Name of a function to call if\\n                                  there was an error. For example,\\n                                  some browsers do not support\\n                                  getUserMedia.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7733,\n                description:\n                  '<p>Turn the AudioIn off. If the AudioIn is stopped, it cannot getLevel().\\nIf re-starting, the user may be prompted for permission access.</p>\\n',\n                itemtype: 'method',\n                name: 'stop',\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7752,\n                description:\n                  '<p>Connect to an audio unit. If no parameter is provided, will\\nconnect to the master output (i.e. your speakers).<br/></p>\\n',\n                itemtype: 'method',\n                name: 'connect',\n                params: [\n                  {\n                    name: 'unit',\n                    description:\n                      '<p>An object that accepts audio input,\\n                        such as an FFT</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7776,\n                description:\n                  '<p>Disconnect the AudioIn from all audio units. For example, if\\nconnect() had been called, disconnect() will stop sending\\nsignal to your speakers.<br/></p>\\n',\n                itemtype: 'method',\n                name: 'disconnect',\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7793,\n                description:\n                  '<p>Read the Amplitude (volume level) of an AudioIn. The AudioIn\\nclass contains its own instance of the Amplitude class to help\\nmake it easy to get a microphone&#39;s volume level. Accepts an\\noptional smoothing value (0.0 &lt; 1.0). <em>NOTE: AudioIn must\\n.start() before using .getLevel().</em><br/></p>\\n',\n                itemtype: 'method',\n                name: 'getLevel',\n                params: [\n                  {\n                    name: 'smoothing',\n                    description:\n                      '<p>Smoothing is 0.0 by default.\\n                             Smooths values based on previous values.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: 'Volume level (between 0.0 and 1.0)',\n                  type: 'Number'\n                },\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7815,\n                description:\n                  '<p>Set amplitude (volume) of a mic input between 0 and 1.0. <br/></p>\\n',\n                itemtype: 'method',\n                name: 'amp',\n                params: [\n                  {\n                    name: 'vol',\n                    description: '<p>between 0 and 1.0</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'time',\n                    description: '<p>ramp time (optional)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7837,\n                description:\n                  '<p>Returns a list of available input sources. This is a wrapper\\nfor &lt;a title=&quot;MediaDevices.enumerateDevices() - Web APIs | MDN&quot; target=&quot;_blank&quot; href=\\n &quot;<a href=\"https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices&quot;\">https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices&quot;</a></p>\\n<blockquote>\\n<p>and it returns a Promise.</p>\\n</blockquote>\\n',\n                itemtype: 'method',\n                name: 'getSources',\n                params: [\n                  {\n                    name: 'successCallback',\n                    description:\n                      '<p>This callback function handles the sources when they\\n                                     have been enumerated. The callback function\\n                                     receives the deviceList array as its only argument</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'errorCallback',\n                    description:\n                      '<p>This optional callback receives the error\\n                                   message as its argument.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description:\n                    'Returns a Promise that can be used in place of the callbacks, similar\\n                           to the enumerateDevices() method',\n                  type: 'Promise'\n                },\n                example: [\n                  \"\\n <div><code>\\n let audioIn;\\n\\n function setup(){\\n   text('getting sources...', 0, 20);\\n   audioIn = new p5.AudioIn();\\n   audioIn.getSources(gotSources);\\n }\\n\\n function gotSources(deviceList) {\\n   if (deviceList.length > 0) {\\n     //set the source to the first item in the deviceList array\\n     audioIn.setSource(0);\\n     let currentSource = deviceList[audioIn.currentSource];\\n     text('set source to: ' + currentSource.deviceId, 5, 20, width);\\n   }\\n }\\n </code></div>\"\n                ],\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 7896,\n                description:\n                  '<p>Set the input source. Accepts a number representing a\\nposition in the array returned by getSources().\\nThis is only available in browsers that support\\n&lt;a title=&quot;MediaDevices.enumerateDevices() - Web APIs | MDN&quot; target=&quot;_blank&quot; href=\\n&quot;<a href=\"https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices&quot;\">https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices&quot;</a></p>\\n<blockquote>\\n<p>navigator.mediaDevices.enumerateDevices()</a>.<br/></p>\\n</blockquote>\\n',\n                itemtype: 'method',\n                name: 'setSource',\n                params: [\n                  {\n                    name: 'num',\n                    description: '<p>position of input source in the array</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet audioIn;\\n\\nfunction setup(){\\n  text('getting sources...', 0, 20);\\n  audioIn = new p5.AudioIn();\\n  audioIn.getSources(gotSources);\\n}\\n\\nfunction gotSources(deviceList) {\\n  if (deviceList.length > 0) {\\n    //set the source to the first item in the deviceList array\\n    audioIn.setSource(0);\\n    let currentSource = deviceList[audioIn.currentSource];\\n    text('set source to: ' + currentSource.deviceId, 5, 20, width);\\n  }\\n}\\n</code></div>\"\n                ],\n                class: 'p5.AudioIn',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8107,\n                description:\n                  '<p>The p5.EQ is built with abstracted p5.Filter objects.\\nTo modify any bands, use methods of the <a\\nhref=\"/reference/#/p5.Filter\" title=\"p5.Filter reference\">\\np5.Filter</a> API, especially <code>gain</code> and <code>freq</code>.\\nBands are stored in an array, with indices 0 - 3, or 0 - 7</p>\\n',\n                itemtype: 'property',\n                name: 'bands',\n                type: 'Array',\n                class: 'p5.EQ',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8148,\n                description: '<p>Process an input by connecting it to the EQ</p>\\n',\n                itemtype: 'method',\n                name: 'process',\n                params: [\n                  {\n                    name: 'src',\n                    description: '<p>Audio source</p>\\n',\n                    type: 'Object'\n                  }\n                ],\n                class: 'p5.EQ',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8321,\n                description:\n                  '<p><a title=\"Web Audio Panner docs\"  href=\\n\"https://developer.mozilla.org/en-US/docs/Web/API/PannerNode\">\\nWeb Audio Spatial Panner Node</a></p>\\n<p>Properties include</p>\\n<ul>\\n<li>&lt;a title=&quot;w3 spec for Panning Model&quot;\\nhref=&quot;<a href=\"https://www.w3.org/TR/webaudio/#idl-def-PanningModelType&quot;\">https://www.w3.org/TR/webaudio/#idl-def-PanningModelType&quot;</a><blockquote>\\n<p>panningModel</a>: &quot;equal power&quot; or &quot;HRTF&quot;</p>\\n</blockquote>\\n</li>\\n<li>&lt;a title=&quot;w3 spec for Distance Model&quot;\\nhref=&quot;<a href=\"https://www.w3.org/TR/webaudio/#idl-def-DistanceModelType&quot;\">https://www.w3.org/TR/webaudio/#idl-def-DistanceModelType&quot;</a><blockquote>\\n<p>distanceModel</a>: &quot;linear&quot;, &quot;inverse&quot;, or &quot;exponential&quot;</p>\\n</blockquote>\\n</li>\\n</ul>\\n',\n                itemtype: 'property',\n                name: 'panner',\n                type: 'AudioNode',\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8346,\n                description: '<p>Connect an audio sorce</p>\\n',\n                itemtype: 'method',\n                name: 'process',\n                params: [\n                  {\n                    name: 'src',\n                    description: '<p>Input source</p>\\n',\n                    type: 'Object'\n                  }\n                ],\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8357,\n                description: '<p>Set the X,Y,Z position of the Panner</p>\\n',\n                itemtype: 'method',\n                name: 'set',\n                params: [\n                  {\n                    name: 'xVal',\n                    description: '',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'yVal',\n                    description: '',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'zVal',\n                    description: '',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'time',\n                    description: '',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'Updated x, y, z values as an array',\n                  type: 'Array'\n                },\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8375,\n                description: '<p>Getter and setter methods for position coordinates</p>\\n',\n                itemtype: 'method',\n                name: 'positionX',\n                return: {\n                  description: 'updated coordinate value',\n                  type: 'Number'\n                },\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8382,\n                description: '<p>Getter and setter methods for position coordinates</p>\\n',\n                itemtype: 'method',\n                name: 'positionY',\n                return: {\n                  description: 'updated coordinate value',\n                  type: 'Number'\n                },\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8389,\n                description: '<p>Getter and setter methods for position coordinates</p>\\n',\n                itemtype: 'method',\n                name: 'positionZ',\n                return: {\n                  description: 'updated coordinate value',\n                  type: 'Number'\n                },\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8438,\n                description: '<p>Set the X,Y,Z position of the Panner</p>\\n',\n                itemtype: 'method',\n                name: 'orient',\n                params: [\n                  {\n                    name: 'xVal',\n                    description: '',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'yVal',\n                    description: '',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'zVal',\n                    description: '',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'time',\n                    description: '',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'Updated x, y, z values as an array',\n                  type: 'Array'\n                },\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8456,\n                description: '<p>Getter and setter methods for orient coordinates</p>\\n',\n                itemtype: 'method',\n                name: 'orientX',\n                return: {\n                  description: 'updated coordinate value',\n                  type: 'Number'\n                },\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8463,\n                description: '<p>Getter and setter methods for orient coordinates</p>\\n',\n                itemtype: 'method',\n                name: 'orientY',\n                return: {\n                  description: 'updated coordinate value',\n                  type: 'Number'\n                },\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8470,\n                description: '<p>Getter and setter methods for orient coordinates</p>\\n',\n                itemtype: 'method',\n                name: 'orientZ',\n                return: {\n                  description: 'updated coordinate value',\n                  type: 'Number'\n                },\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8519,\n                description: '<p>Set the rolloff factor and max distance</p>\\n',\n                itemtype: 'method',\n                name: 'setFalloff',\n                params: [\n                  {\n                    name: 'maxDistance',\n                    description: '',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'rolloffFactor',\n                    description: '',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8532,\n                description: '<p>Maxium distance between the source and the listener</p>\\n',\n                itemtype: 'method',\n                name: 'maxDist',\n                params: [\n                  {\n                    name: 'maxDistance',\n                    description: '',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'updated value',\n                  type: 'Number'\n                },\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8548,\n                description:\n                  '<p>How quickly the volume is reduced as the source moves away from the listener</p>\\n',\n                itemtype: 'method',\n                name: 'rollof',\n                params: [\n                  {\n                    name: 'rolloffFactor',\n                    description: '',\n                    type: 'Number'\n                  }\n                ],\n                return: {\n                  description: 'updated value',\n                  type: 'Number'\n                },\n                class: 'p5.Panner3D',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8885,\n                description:\n                  '<p>The p5.Delay is built with two\\n<a href=\"http://www.w3.org/TR/webaudio/#DelayNode\">\\nWeb Audio Delay Nodes</a>, one for each stereo channel.</p>\\n',\n                itemtype: 'property',\n                name: 'leftDelay',\n                type: 'DelayNode',\n                class: 'p5.Delay',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8895,\n                description:\n                  '<p>The p5.Delay is built with two\\n<a href=\"http://www.w3.org/TR/webaudio/#DelayNode\">\\nWeb Audio Delay Nodes</a>, one for each stereo channel.</p>\\n',\n                itemtype: 'property',\n                name: 'rightDelay',\n                type: 'DelayNode',\n                class: 'p5.Delay',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8942,\n                description:\n                  '<p>Add delay to an audio signal according to a set\\nof delay parameters.</p>\\n',\n                itemtype: 'method',\n                name: 'process',\n                params: [\n                  {\n                    name: 'Signal',\n                    description: '<p>An object that outputs audio</p>\\n',\n                    type: 'Object'\n                  },\n                  {\n                    name: 'delayTime',\n                    description:\n                      '<p>Time (in seconds) of the delay/echo.\\n                             Some browsers limit delayTime to\\n                             1 second.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'feedback',\n                    description:\n                      '<p>sends the delay back through itself\\n                             in a loop that decreases in volume\\n                             each time.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'lowPass',\n                    description:\n                      '<p>Cutoff frequency. Only frequencies\\n                             below the lowPass will be part of the\\n                             delay.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Delay',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 8984,\n                description:\n                  '<p>Set the delay (echo) time, in seconds. Usually this value will be\\na floating point number between 0.0 and 1.0.</p>\\n',\n                itemtype: 'method',\n                name: 'delayTime',\n                params: [\n                  {\n                    name: 'delayTime',\n                    description: '<p>Time (in seconds) of the delay</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                class: 'p5.Delay',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9005,\n                description:\n                  '<p>Feedback occurs when Delay sends its signal back through its input\\nin a loop. The feedback amount determines how much signal to send each\\ntime through the loop. A feedback greater than 1.0 is not desirable because\\nit will increase the overall output each time through the loop,\\ncreating an infinite feedback loop. The default value is 0.5</p>\\n',\n                itemtype: 'method',\n                name: 'feedback',\n                params: [\n                  {\n                    name: 'feedback',\n                    description:\n                      '<p>0.0 to 1.0, or an object such as an\\n                                Oscillator that can be used to\\n                                modulate this param</p>\\n',\n                    type: 'Number|Object'\n                  }\n                ],\n                return: {\n                  description: 'Feedback value',\n                  type: 'Number'\n                },\n                class: 'p5.Delay',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9036,\n                description:\n                  '<p>Set a lowpass filter frequency for the delay. A lowpass filter\\nwill cut off any frequencies higher than the filter frequency.</p>\\n',\n                itemtype: 'method',\n                name: 'filter',\n                params: [\n                  {\n                    name: 'cutoffFreq',\n                    description:\n                      '<p>A lowpass filter will cut off any\\n                            frequencies higher than the filter frequency.</p>\\n',\n                    type: 'Number|Object'\n                  },\n                  {\n                    name: 'res',\n                    description:\n                      '<p>Resonance of the filter frequency\\n                            cutoff, or an object (i.e. a p5.Oscillator)\\n                            that can be used to modulate this parameter.\\n                            High numbers (i.e. 15) will produce a resonance,\\n                            low numbers (i.e. .2) will produce a slope.</p>\\n',\n                    type: 'Number|Object'\n                  }\n                ],\n                class: 'p5.Delay',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9057,\n                description:\n                  '<p>Choose a preset type of delay. &#39;pingPong&#39; bounces the signal\\nfrom the left to the right channel to produce a stereo effect.\\nAny other parameter will revert to the default delay setting.</p>\\n',\n                itemtype: 'method',\n                name: 'setType',\n                params: [\n                  {\n                    name: 'type',\n                    description: '<p>&#39;pingPong&#39; (1) or &#39;default&#39; (0)</p>\\n',\n                    type: 'String|Number'\n                  }\n                ],\n                class: 'p5.Delay',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9109,\n                description: '<p>Set the output level of the delay effect.</p>\\n',\n                itemtype: 'method',\n                name: 'amp',\n                params: [\n                  {\n                    name: 'volume',\n                    description: '<p>amplitude between 0 and 1.0</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'rampTime',\n                    description: '<p>create a fade that lasts rampTime</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>schedule this event to happen\\n                              seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Delay',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9120,\n                description: '<p>Send output to a p5.sound or web audio object</p>\\n',\n                itemtype: 'method',\n                name: 'connect',\n                params: [\n                  {\n                    name: 'unit',\n                    description: '',\n                    type: 'Object'\n                  }\n                ],\n                class: 'p5.Delay',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9128,\n                description: '<p>Disconnect all output.</p>\\n',\n                itemtype: 'method',\n                name: 'disconnect',\n                class: 'p5.Delay',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9265,\n                description:\n                  '<p>Connect a source to the reverb, and assign reverb parameters.</p>\\n',\n                itemtype: 'method',\n                name: 'process',\n                params: [\n                  {\n                    name: 'src',\n                    description:\n                      '<p>p5.sound / Web Audio object with a sound\\n                         output.</p>\\n',\n                    type: 'Object'\n                  },\n                  {\n                    name: 'seconds',\n                    description:\n                      '<p>Duration of the reverb, in seconds.\\n                         Min: 0, Max: 10. Defaults to 3.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'decayRate',\n                    description:\n                      '<p>Percentage of decay with each echo.\\n                          Min: 0, Max: 100. Defaults to 2.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'reverse',\n                    description: '<p>Play the reverb backwards or forwards.</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Reverb',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9301,\n                description:\n                  '<p>Set the reverb settings. Similar to .process(), but without\\nassigning a new input.</p>\\n',\n                itemtype: 'method',\n                name: 'set',\n                params: [\n                  {\n                    name: 'seconds',\n                    description:\n                      '<p>Duration of the reverb, in seconds.\\n                         Min: 0, Max: 10. Defaults to 3.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'decayRate',\n                    description:\n                      '<p>Percentage of decay with each echo.\\n                          Min: 0, Max: 100. Defaults to 2.</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'reverse',\n                    description: '<p>Play the reverb backwards or forwards.</p>\\n',\n                    type: 'Boolean',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Reverb',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9336,\n                description: '<p>Set the output level of the reverb effect.</p>\\n',\n                itemtype: 'method',\n                name: 'amp',\n                params: [\n                  {\n                    name: 'volume',\n                    description: '<p>amplitude between 0 and 1.0</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'rampTime',\n                    description: '<p>create a fade that lasts rampTime</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>schedule this event to happen\\n                              seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Reverb',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9347,\n                description: '<p>Send output to a p5.sound or web audio object</p>\\n',\n                itemtype: 'method',\n                name: 'connect',\n                params: [\n                  {\n                    name: 'unit',\n                    description: '',\n                    type: 'Object'\n                  }\n                ],\n                class: 'p5.Reverb',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9355,\n                description: '<p>Disconnect all output.</p>\\n',\n                itemtype: 'method',\n                name: 'disconnect',\n                class: 'p5.Reverb',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9461,\n                description:\n                  '<p>Internally, the p5.Convolver uses the a\\n<a href=\"http://www.w3.org/TR/webaudio/#ConvolverNode\">\\nWeb Audio Convolver Node</a>.</p>\\n',\n                itemtype: 'property',\n                name: 'convolverNode',\n                type: 'ConvolverNode',\n                class: 'p5.Convolver',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9489,\n                description:\n                  '<p>Create a p5.Convolver. Accepts a path to a soundfile\\nthat will be used to generate an impulse response.</p>\\n',\n                itemtype: 'method',\n                name: 'createConvolver',\n                params: [\n                  {\n                    name: 'path',\n                    description: '<p>path to a sound file</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>function to call if loading is successful.\\n                              The object will be passed in as the argument\\n                              to the callback function.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  },\n                  {\n                    name: 'errorCallback',\n                    description:\n                      '<p>function to call if loading is not successful.\\n                              A custom error will be passed in as the argument\\n                              to the callback function.</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                return: {\n                  description: '',\n                  type: 'p5.Convolver'\n                },\n                example: [\n                  \"\\n<div><code>\\nlet cVerb, sound;\\nfunction preload() {\\n  // We have both MP3 and OGG versions of all sound assets\\n  soundFormats('ogg', 'mp3');\\n\\n  // Try replacing 'bx-spring' with other soundfiles like\\n  // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox'\\n  cVerb = createConvolver('assets/bx-spring.mp3');\\n\\n  // Try replacing 'Damscray_DancingTiger' with\\n  // 'beat', 'doorbell', lucky_dragons_-_power_melody'\\n  sound = loadSound('assets/Damscray_DancingTiger.mp3');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playSound);\\n  background(220);\\n  text('tap to play', 20, 20);\\n\\n  // disconnect from master output...\\n  sound.disconnect();\\n\\n  // ...and process with cVerb\\n  // so that we only hear the convolution\\n  cVerb.process(sound);\\n}\\n\\nfunction playSound() {\\n  sound.play();\\n}\\n</code></div>\"\n                ],\n                class: 'p5',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9635,\n                description: '<p>Connect a source to the convolver.</p>\\n',\n                itemtype: 'method',\n                name: 'process',\n                params: [\n                  {\n                    name: 'src',\n                    description:\n                      '<p>p5.sound / Web Audio object with a sound\\n                         output.</p>\\n',\n                    type: 'Object'\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nlet cVerb, sound;\\nfunction preload() {\\n  // We have both MP3 and OGG versions of all sound assets\\n  soundFormats('ogg', 'mp3');\\n\\n  // Try replacing 'bx-spring' with other soundfiles like\\n  // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox'\\n  cVerb = createConvolver('assets/bx-spring.mp3');\\n\\n  // Try replacing 'Damscray_DancingTiger' with\\n  // 'beat', 'doorbell', lucky_dragons_-_power_melody'\\n  sound = loadSound('assets/Damscray_DancingTiger.mp3');\\n}\\n\\nfunction setup() {\\n  let cnv = createCanvas(100, 100);\\n  cnv.mousePressed(playSound);\\n  background(220);\\n  text('tap to play', 20, 20);\\n\\n  // disconnect from master output...\\n  sound.disconnect();\\n\\n  // ...and process with cVerb\\n  // so that we only hear the convolution\\n  cVerb.process(sound);\\n}\\n\\nfunction playSound() {\\n  sound.play();\\n}\\n\\n</code></div>\"\n                ],\n                class: 'p5.Convolver',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9682,\n                description:\n                  '<p>If you load multiple impulse files using the .addImpulse method,\\nthey will be stored as Objects in this Array. Toggle between them\\nwith the <code>toggleImpulse(id)</code> method.</p>\\n',\n                itemtype: 'property',\n                name: 'impulses',\n                type: 'Array',\n                class: 'p5.Convolver',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9693,\n                description:\n                  '<p>Load and assign a new Impulse Response to the p5.Convolver.\\nThe impulse is added to the <code>.impulses</code> array. Previous\\nimpulses can be accessed with the <code>.toggleImpulse(id)</code>\\nmethod.</p>\\n',\n                itemtype: 'method',\n                name: 'addImpulse',\n                params: [\n                  {\n                    name: 'path',\n                    description: '<p>path to a sound file</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'callback',\n                    description: '<p>function (optional)</p>\\n',\n                    type: 'Function'\n                  },\n                  {\n                    name: 'errorCallback',\n                    description: '<p>function (optional)</p>\\n',\n                    type: 'Function'\n                  }\n                ],\n                class: 'p5.Convolver',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9713,\n                description:\n                  '<p>Similar to .addImpulse, except that the <code>.impulses</code>\\nArray is reset to save memory. A new <code>.impulses</code>\\narray is created with this impulse as the only item.</p>\\n',\n                itemtype: 'method',\n                name: 'resetImpulse',\n                params: [\n                  {\n                    name: 'path',\n                    description: '<p>path to a sound file</p>\\n',\n                    type: 'String'\n                  },\n                  {\n                    name: 'callback',\n                    description: '<p>function (optional)</p>\\n',\n                    type: 'Function'\n                  },\n                  {\n                    name: 'errorCallback',\n                    description: '<p>function (optional)</p>\\n',\n                    type: 'Function'\n                  }\n                ],\n                class: 'p5.Convolver',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9735,\n                description:\n                  '<p>If you have used <code>.addImpulse()</code> to add multiple impulses\\nto a p5.Convolver, then you can use this method to toggle between\\nthe items in the <code>.impulses</code> Array. Accepts a parameter\\nto identify which impulse you wish to use, identified either by its\\noriginal filename (String) or by its position in the <code>.impulses\\n</code> Array (Number).<br/>\\nYou can access the objects in the .impulses Array directly. Each\\nObject has two attributes: an <code>.audioBuffer</code> (type:\\nWeb Audio <a href=\"\\nhttp://webaudio.github.io/web-audio-api/#the-audiobuffer-interface\">\\nAudioBuffer)</a> and a <code>.name</code>, a String that corresponds\\nwith the original filename.</p>\\n',\n                itemtype: 'method',\n                name: 'toggleImpulse',\n                params: [\n                  {\n                    name: 'id',\n                    description:\n                      '<p>Identify the impulse by its original filename\\n                          (String), or by its position in the\\n                          <code>.impulses</code> Array (Number).</p>\\n',\n                    type: 'String|Number'\n                  }\n                ],\n                class: 'p5.Convolver',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9903,\n                description:\n                  '<p>Set the global tempo, in beats per minute, for all\\np5.Parts. This method will impact all active p5.Parts.</p>\\n',\n                itemtype: 'method',\n                name: 'setBPM',\n                params: [\n                  {\n                    name: 'BPM',\n                    description: '<p>Beats Per Minute</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'rampTime',\n                    description: '<p>Seconds from now</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                class: 'p5',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 9990,\n                description:\n                  '<p>Array of values to pass into the callback\\nat each step of the phrase. Depending on the callback\\nfunction&#39;s requirements, these values may be numbers,\\nstrings, or an object with multiple parameters.\\nZero (0) indicates a rest.</p>\\n',\n                itemtype: 'property',\n                name: 'sequence',\n                type: 'Array',\n                class: 'p5.Phrase',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10076,\n                description: '<p>Set the tempo of this part, in Beats Per Minute.</p>\\n',\n                itemtype: 'method',\n                name: 'setBPM',\n                params: [\n                  {\n                    name: 'BPM',\n                    description: '<p>Beats Per Minute</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'rampTime',\n                    description: '<p>Seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Part',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10089,\n                description:\n                  '<p>Returns the tempo, in Beats Per Minute, of this part.</p>\\n',\n                itemtype: 'method',\n                name: 'getBPM',\n                return: {\n                  description: '',\n                  type: 'Number'\n                },\n                class: 'p5.Part',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10101,\n                description:\n                  '<p>Start playback of this part. It will play\\nthrough all of its phrases at a speed\\ndetermined by setBPM.</p>\\n',\n                itemtype: 'method',\n                name: 'start',\n                params: [\n                  {\n                    name: 'time',\n                    description: '<p>seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Part',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10120,\n                description:\n                  '<p>Loop playback of this part. It will begin\\nlooping through all of its phrases at a speed\\ndetermined by setBPM.</p>\\n',\n                itemtype: 'method',\n                name: 'loop',\n                params: [\n                  {\n                    name: 'time',\n                    description: '<p>seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Part',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10141,\n                description: '<p>Tell the part to stop looping.</p>\\n',\n                itemtype: 'method',\n                name: 'noLoop',\n                class: 'p5.Part',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10156,\n                description:\n                  '<p>Stop the part and cue it to step 0. Playback will resume from the begining of the Part when it is played again.</p>\\n',\n                itemtype: 'method',\n                name: 'stop',\n                params: [\n                  {\n                    name: 'time',\n                    description: '<p>seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Part',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10169,\n                description:\n                  '<p>Pause the part. Playback will resume\\nfrom the current step.</p>\\n',\n                itemtype: 'method',\n                name: 'pause',\n                params: [\n                  {\n                    name: 'time',\n                    description: '<p>seconds from now</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                class: 'p5.Part',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10184,\n                description: '<p>Add a p5.Phrase to this Part.</p>\\n',\n                itemtype: 'method',\n                name: 'addPhrase',\n                params: [\n                  {\n                    name: 'phrase',\n                    description: '<p>reference to a p5.Phrase</p>\\n',\n                    type: 'p5.Phrase'\n                  }\n                ],\n                class: 'p5.Part',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10210,\n                description:\n                  '<p>Remove a phrase from this part, based on the name it was\\ngiven when it was created.</p>\\n',\n                itemtype: 'method',\n                name: 'removePhrase',\n                params: [\n                  {\n                    name: 'phraseName',\n                    description: '',\n                    type: 'String'\n                  }\n                ],\n                class: 'p5.Part',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10227,\n                description:\n                  '<p>Get a phrase from this part, based on the name it was\\ngiven when it was created. Now you can modify its array.</p>\\n',\n                itemtype: 'method',\n                name: 'getPhrase',\n                params: [\n                  {\n                    name: 'phraseName',\n                    description: '',\n                    type: 'String'\n                  }\n                ],\n                class: 'p5.Part',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10244,\n                description:\n                  '<p>Find all sequences with the specified name, and replace their patterns with the specified array.</p>\\n',\n                itemtype: 'method',\n                name: 'replaceSequence',\n                params: [\n                  {\n                    name: 'phraseName',\n                    description: '',\n                    type: 'String'\n                  },\n                  {\n                    name: 'sequence',\n                    description:\n                      '<p>Array of values to pass into the callback\\n                          at each step of the phrase.</p>\\n',\n                    type: 'Array'\n                  }\n                ],\n                class: 'p5.Part',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10273,\n                description:\n                  '<p>Set the function that will be called at every step. This will clear the previous function.</p>\\n',\n                itemtype: 'method',\n                name: 'onStep',\n                params: [\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>The name of the callback\\n                            you want to fire\\n                            on every beat/tatum.</p>\\n',\n                    type: 'Function'\n                  }\n                ],\n                class: 'p5.Part',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10332,\n                description: '<p>Start playback of the score.</p>\\n',\n                itemtype: 'method',\n                name: 'start',\n                class: 'p5.Score',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10344,\n                description: '<p>Stop playback of the score.</p>\\n',\n                itemtype: 'method',\n                name: 'stop',\n                class: 'p5.Score',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10357,\n                description: '<p>Pause playback of the score.</p>\\n',\n                itemtype: 'method',\n                name: 'pause',\n                class: 'p5.Score',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10368,\n                description: '<p>Loop playback of the score.</p>\\n',\n                itemtype: 'method',\n                name: 'loop',\n                class: 'p5.Score',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10380,\n                description:\n                  '<p>Stop looping playback of the score. If it\\nis currently playing, this will go into effect\\nafter the current round of playback completes.</p>\\n',\n                itemtype: 'method',\n                name: 'noLoop',\n                class: 'p5.Score',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10411,\n                description: '<p>Set the tempo for all parts in the score</p>\\n',\n                itemtype: 'method',\n                name: 'setBPM',\n                params: [\n                  {\n                    name: 'BPM',\n                    description: '<p>Beats Per Minute</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'rampTime',\n                    description: '<p>Seconds from now</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                class: 'p5.Score',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10508,\n                description:\n                  '<p>musicalTimeMode uses <a href = \"https://github.com/Tonejs/Tone.js/wiki/Time\">Tone.Time</a> convention\\ntrue if string, false if number</p>\\n',\n                itemtype: 'property',\n                name: 'musicalTimeMode',\n                type: 'Boolean',\n                class: 'p5.SoundLoop',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10516,\n                description:\n                  '<p>musicalTimeMode variables\\nmodify these only when the interval is specified in musicalTime format as a string</p>\\n',\n                class: 'p5.SoundLoop',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10524,\n                description:\n                  '<p>Set a limit to the number of loops to play. defaults to Infinity</p>\\n',\n                itemtype: 'property',\n                name: 'maxIterations',\n                type: 'Number',\n                class: 'p5.SoundLoop',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10534,\n                description:\n                  '<p>Do not initiate the callback if timeFromNow is &lt; 0\\nThis ususually occurs for a few milliseconds when the page\\nis not fully loaded</p>\\n<p>The callback should only be called until maxIterations is reached</p>\\n',\n                class: 'p5.SoundLoop',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10549,\n                description: '<p>Start the loop</p>\\n',\n                itemtype: 'method',\n                name: 'start',\n                params: [\n                  {\n                    name: 'timeFromNow',\n                    description: '<p>schedule a starting time</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.SoundLoop',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10566,\n                description: '<p>Stop the loop</p>\\n',\n                itemtype: 'method',\n                name: 'stop',\n                params: [\n                  {\n                    name: 'timeFromNow',\n                    description: '<p>schedule a stopping time</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.SoundLoop',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10583,\n                description: '<p>Pause the loop</p>\\n',\n                itemtype: 'method',\n                name: 'pause',\n                params: [\n                  {\n                    name: 'timeFromNow',\n                    description: '<p>schedule a pausing time</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.SoundLoop',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10600,\n                description:\n                  '<p>Synchronize loops. Use this method to start two more more loops in synchronization\\nor to start a loop in synchronization with a loop that is already playing\\nThis method will schedule the implicit loop in sync with the explicit master loop\\ni.e. loopToStart.syncedStart(loopToSyncWith)</p>\\n',\n                itemtype: 'method',\n                name: 'syncedStart',\n                params: [\n                  {\n                    name: 'otherLoop',\n                    description: '<p>a p5.SoundLoop to sync with</p>\\n',\n                    type: 'Object'\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>Start the loops in sync after timeFromNow seconds</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.SoundLoop',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10705,\n                description:\n                  '<p>Getters and Setters, setting any paramter will result in a change in the clock&#39;s\\nfrequency, that will be reflected after the next callback\\nbeats per minute (defaults to 60)</p>\\n',\n                itemtype: 'property',\n                name: 'bpm',\n                type: 'Number',\n                class: 'p5.SoundLoop',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10728,\n                description:\n                  '<p>number of quarter notes in a measure (defaults to 4)</p>\\n',\n                itemtype: 'property',\n                name: 'timeSignature',\n                type: 'Number',\n                class: 'p5.SoundLoop',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10748,\n                description: '<p>length of the loops interval</p>\\n',\n                itemtype: 'property',\n                name: 'interval',\n                type: 'Number|String',\n                class: 'p5.SoundLoop',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10765,\n                description: '<p>how many times the callback has been called so far</p>\\n',\n                itemtype: 'property',\n                name: 'iterations',\n                type: 'Number',\n                readonly: '',\n                class: 'p5.SoundLoop',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10817,\n                description:\n                  '<p>The p5.Compressor is built with a <a href=\"https://www.w3.org/TR/webaudio/#the-dynamicscompressornode-interface\"\\n  target=\"_blank\" title=\"W3 spec for Dynamics Compressor Node\">Web Audio Dynamics Compressor Node\\n  </a></p>\\n',\n                itemtype: 'property',\n                name: 'compressor',\n                type: 'AudioNode',\n                class: 'p5.Compressor',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10830,\n                description:\n                  '<p>Performs the same function as .connect, but also accepts\\noptional parameters to set compressor&#39;s audioParams</p>\\n',\n                itemtype: 'method',\n                name: 'process',\n                params: [\n                  {\n                    name: 'src',\n                    description: '<p>Sound source to be connected</p>\\n',\n                    type: 'Object'\n                  },\n                  {\n                    name: 'attack',\n                    description:\n                      '<p>The amount of time (in seconds) to reduce the gain by 10dB,\\n                           default = .003, range 0 - 1</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'knee',\n                    description:\n                      '<p>A decibel value representing the range above the\\n                           threshold where the curve smoothly transitions to the &quot;ratio&quot; portion.\\n                           default = 30, range 0 - 40</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'ratio',\n                    description:\n                      '<p>The amount of dB change in input for a 1 dB change in output\\n                           default = 12, range 1 - 20</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'threshold',\n                    description:\n                      '<p>The decibel value above which the compression will start taking effect\\n                           default = -24, range -100 - 0</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'release',\n                    description:\n                      '<p>The amount of time (in seconds) to increase the gain by 10dB\\n                           default = .25, range 0 - 1</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Compressor',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10855,\n                description: '<p>Set the paramters of a compressor.</p>\\n',\n                itemtype: 'method',\n                name: 'set',\n                params: [\n                  {\n                    name: 'attack',\n                    description:\n                      '<p>The amount of time (in seconds) to reduce the gain by 10dB,\\n                           default = .003, range 0 - 1</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'knee',\n                    description:\n                      '<p>A decibel value representing the range above the\\n                           threshold where the curve smoothly transitions to the &quot;ratio&quot; portion.\\n                           default = 30, range 0 - 40</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'ratio',\n                    description:\n                      '<p>The amount of dB change in input for a 1 dB change in output\\n                           default = 12, range 1 - 20</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'threshold',\n                    description:\n                      '<p>The decibel value above which the compression will start taking effect\\n                           default = -24, range -100 - 0</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'release',\n                    description:\n                      '<p>The amount of time (in seconds) to increase the gain by 10dB\\n                           default = .25, range 0 - 1</p>\\n',\n                    type: 'Number'\n                  }\n                ],\n                class: 'p5.Compressor',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10894,\n                description: '<p>Get current attack or set value w/ time ramp</p>\\n',\n                itemtype: 'method',\n                name: 'attack',\n                params: [\n                  {\n                    name: 'attack',\n                    description:\n                      '<p>Attack is the amount of time (in seconds) to reduce the gain by 10dB,\\n                         default = .003, range 0 - 1</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'time',\n                    description:\n                      '<p>Assign time value to schedule the change in value</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Compressor',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10919,\n                description: '<p>Get current knee or set value w/ time ramp</p>\\n',\n                itemtype: 'method',\n                name: 'knee',\n                params: [\n                  {\n                    name: 'knee',\n                    description:\n                      '<p>A decibel value representing the range above the\\n                       threshold where the curve smoothly transitions to the &quot;ratio&quot; portion.\\n                       default = 30, range 0 - 40</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'time',\n                    description:\n                      '<p>Assign time value to schedule the change in value</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Compressor',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10944,\n                description: '<p>Get current ratio or set value w/ time ramp</p>\\n',\n                itemtype: 'method',\n                name: 'ratio',\n                params: [\n                  {\n                    name: 'ratio',\n                    description:\n                      '<p>The amount of dB change in input for a 1 dB change in output\\n                           default = 12, range 1 - 20</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'time',\n                    description:\n                      '<p>Assign time value to schedule the change in value</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Compressor',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10967,\n                description: '<p>Get current threshold or set value w/ time ramp</p>\\n',\n                itemtype: 'method',\n                name: 'threshold',\n                params: [\n                  {\n                    name: 'threshold',\n                    description:\n                      '<p>The decibel value above which the compression will start taking effect\\n                           default = -24, range -100 - 0</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'time',\n                    description:\n                      '<p>Assign time value to schedule the change in value</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Compressor',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 10990,\n                description: '<p>Get current release or set value w/ time ramp</p>\\n',\n                itemtype: 'method',\n                name: 'release',\n                params: [\n                  {\n                    name: 'release',\n                    description:\n                      '<p>The amount of time (in seconds) to increase the gain by 10dB\\n                           default = .25, range 0 - 1</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'time',\n                    description:\n                      '<p>Assign time value to schedule the change in value</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Compressor',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11014,\n                description: '<p>Return the current reduction value</p>\\n',\n                itemtype: 'method',\n                name: 'reduction',\n                return: {\n                  description:\n                    'Value of the amount of gain reduction that is applied to the signal',\n                  type: 'Number'\n                },\n                class: 'p5.Compressor',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11169,\n                description:\n                  '<p>Connect a specific device to the p5.SoundRecorder.\\nIf no parameter is given, p5.SoundRecorer will record\\nall audible p5.sound from your sketch.</p>\\n',\n                itemtype: 'method',\n                name: 'setInput',\n                params: [\n                  {\n                    name: 'unit',\n                    description:\n                      '<p>p5.sound object or a web audio unit\\n                       that outputs sound</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                class: 'p5.SoundRecorder',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11194,\n                description:\n                  '<p>Start recording. To access the recording, provide\\na p5.SoundFile as the first parameter. The p5.SoundRecorder\\nwill send its recording to that p5.SoundFile for playback once\\nrecording is complete. Optional parameters include duration\\n(in seconds) of the recording, and a callback function that\\nwill be called once the complete recording has been\\ntransfered to the p5.SoundFile.</p>\\n',\n                itemtype: 'method',\n                name: 'record',\n                params: [\n                  {\n                    name: 'soundFile',\n                    description: '<p>p5.SoundFile</p>\\n',\n                    type: 'p5.SoundFile'\n                  },\n                  {\n                    name: 'duration',\n                    description: '<p>Time (in seconds)</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>The name of a function that will be\\n                              called once the recording completes</p>\\n',\n                    type: 'Function',\n                    optional: true\n                  }\n                ],\n                class: 'p5.SoundRecorder',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11229,\n                description:\n                  '<p>Stop the recording. Once the recording is stopped,\\nthe results will be sent to the p5.SoundFile that\\nwas given on .record(), and if a callback function\\nwas provided on record, that function will be called.</p>\\n',\n                itemtype: 'method',\n                name: 'stop',\n                class: 'p5.SoundRecorder',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11259,\n                description:\n                  '<p>Save a p5.SoundFile as a .wav file. The browser will prompt the user\\nto download the file to their device.\\nFor uploading audio to a server, use\\n<a href=\"/docs/reference/#/p5.SoundFile/saveBlob\"><code>p5.SoundFile.saveBlob</code></a>.</p>\\n',\n                itemtype: 'method',\n                name: 'saveSound',\n                params: [\n                  {\n                    name: 'soundFile',\n                    description: '<p>p5.SoundFile that you wish to save</p>\\n',\n                    type: 'p5.SoundFile'\n                  },\n                  {\n                    name: 'fileName',\n                    description: '<p>name of the resulting .wav file.</p>\\n',\n                    type: 'String'\n                  }\n                ],\n                class: 'p5',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11389,\n                description: '<p>isDetected is set to true when a peak is detected.</p>\\n',\n                itemtype: 'attribute',\n                name: 'isDetected',\n                type: 'Boolean',\n                default: 'false',\n                class: 'p5.PeakDetect',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11402,\n                description:\n                  '<p>The update method is run in the draw loop.</p>\\n<p>Accepts an FFT object. You must call .analyze()\\non the FFT object prior to updating the peakDetect\\nbecause it relies on a completed FFT analysis.</p>\\n',\n                itemtype: 'method',\n                name: 'update',\n                params: [\n                  {\n                    name: 'fftObject',\n                    description: '<p>A p5.FFT object</p>\\n',\n                    type: 'p5.FFT'\n                  }\n                ],\n                class: 'p5.PeakDetect',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11438,\n                description:\n                  '<p>onPeak accepts two arguments: a function to call when\\na peak is detected. The value of the peak,\\nbetween 0.0 and 1.0, is passed to the callback.</p>\\n',\n                itemtype: 'method',\n                name: 'onPeak',\n                params: [\n                  {\n                    name: 'callback',\n                    description:\n                      '<p>Name of a function that will\\n                            be called when a peak is\\n                            detected.</p>\\n',\n                    type: 'Function'\n                  },\n                  {\n                    name: 'val',\n                    description:\n                      '<p>Optional value to pass\\n                            into the function when\\n                            a peak is detected.</p>\\n',\n                    type: 'Object',\n                    optional: true\n                  }\n                ],\n                example: [\n                  \"\\n<div><code>\\nvar cnv, soundFile, fft, peakDetect;\\nvar ellipseWidth = 0;\\n\\nfunction preload() {\\n  soundFile = loadSound('assets/beat.mp3');\\n}\\n\\nfunction setup() {\\n  cnv = createCanvas(100,100);\\n  textAlign(CENTER);\\n\\n  fft = new p5.FFT();\\n  peakDetect = new p5.PeakDetect();\\n\\n  setupSound();\\n\\n  // when a beat is detected, call triggerBeat()\\n  peakDetect.onPeak(triggerBeat);\\n}\\n\\nfunction draw() {\\n  background(0);\\n  fill(255);\\n  text('click to play', width/2, height/2);\\n\\n  fft.analyze();\\n  peakDetect.update(fft);\\n\\n  ellipseWidth *= 0.95;\\n  ellipse(width/2, height/2, ellipseWidth, ellipseWidth);\\n}\\n\\n// this function is called by peakDetect.onPeak\\nfunction triggerBeat() {\\n  ellipseWidth = 50;\\n}\\n\\n// mouseclick starts/stops sound\\nfunction setupSound() {\\n  cnv.mouseClicked( function() {\\n    if (soundFile.isPlaying() ) {\\n      soundFile.stop();\\n    } else {\\n      soundFile.play();\\n    }\\n  });\\n}\\n</code></div>\"\n                ],\n                class: 'p5.PeakDetect',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11600,\n                description: '<p>Connect a source to the gain node.</p>\\n',\n                itemtype: 'method',\n                name: 'setInput',\n                params: [\n                  {\n                    name: 'src',\n                    description:\n                      '<p>p5.sound / Web Audio object with a sound\\n                         output.</p>\\n',\n                    type: 'Object'\n                  }\n                ],\n                class: 'p5.Gain',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11613,\n                description: '<p>Send output to a p5.sound or web audio object</p>\\n',\n                itemtype: 'method',\n                name: 'connect',\n                params: [\n                  {\n                    name: 'unit',\n                    description: '',\n                    type: 'Object'\n                  }\n                ],\n                class: 'p5.Gain',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11626,\n                description: '<p>Disconnect all output.</p>\\n',\n                itemtype: 'method',\n                name: 'disconnect',\n                class: 'p5.Gain',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11639,\n                description: '<p>Set the output level of the gain node.</p>\\n',\n                itemtype: 'method',\n                name: 'amp',\n                params: [\n                  {\n                    name: 'volume',\n                    description: '<p>amplitude between 0 and 1.0</p>\\n',\n                    type: 'Number'\n                  },\n                  {\n                    name: 'rampTime',\n                    description: '<p>create a fade that lasts rampTime</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  },\n                  {\n                    name: 'timeFromNow',\n                    description:\n                      '<p>schedule this event to happen\\n                              seconds from now</p>\\n',\n                    type: 'Number',\n                    optional: true\n                  }\n                ],\n                class: 'p5.Gain',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11743,\n                description:\n                  '<p>The p5.Distortion is built with a\\n<a href=\"http://www.w3.org/TR/webaudio/#WaveShaperNode\">\\nWeb Audio WaveShaper Node</a>.</p>\\n',\n                itemtype: 'property',\n                name: 'WaveShaperNode',\n                type: 'AudioNode',\n                class: 'p5.Distortion',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11760,\n                description:\n                  '<p>Process a sound source, optionally specify amount and oversample values.</p>\\n',\n                itemtype: 'method',\n                name: 'process',\n                params: [\n                  {\n                    name: 'amount',\n                    description:\n                      '<p>Unbounded distortion amount.\\n                               Normal values range from 0-1.</p>\\n',\n                    type: 'Number',\n                    optional: true,\n                    optdefault: '0.25'\n                  },\n                  {\n                    name: 'oversample',\n                    description: '<p>&#39;none&#39;, &#39;2x&#39;, or &#39;4x&#39;.</p>\\n',\n                    type: 'String',\n                    optional: true,\n                    optdefault: \"'none'\"\n                  }\n                ],\n                class: 'p5.Distortion',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11774,\n                description:\n                  '<p>Set the amount and oversample of the waveshaper distortion.</p>\\n',\n                itemtype: 'method',\n                name: 'set',\n                params: [\n                  {\n                    name: 'amount',\n                    description:\n                      '<p>Unbounded distortion amount.\\n                               Normal values range from 0-1.</p>\\n',\n                    type: 'Number',\n                    optional: true,\n                    optdefault: '0.25'\n                  },\n                  {\n                    name: 'oversample',\n                    description: '<p>&#39;none&#39;, &#39;2x&#39;, or &#39;4x&#39;.</p>\\n',\n                    type: 'String',\n                    optional: true,\n                    optdefault: \"'none'\"\n                  }\n                ],\n                class: 'p5.Distortion',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11796,\n                description:\n                  '<p>Return the distortion amount, typically between 0-1.</p>\\n',\n                itemtype: 'method',\n                name: 'getAmount',\n                return: {\n                  description:\n                    'Unbounded distortion amount.\\n                 Normal values range from 0-1.',\n                  type: 'Number'\n                },\n                class: 'p5.Distortion',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              },\n              {\n                file: 'lib/addons/p5.sound.js',\n                line: 11809,\n                description: '<p>Return the oversampling.</p>\\n',\n                itemtype: 'method',\n                name: 'getOversample',\n                return: {\n                  description: \"Oversample can either be 'none', '2x', or '4x'.\",\n                  type: 'String'\n                },\n                class: 'p5.Distortion',\n                module: 'p5.sound',\n                submodule: 'p5.sound'\n              }\n            ],\n            warnings: [\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/creating_reading.js:14'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/creating_reading.js:59'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/creating_reading.js:89'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/creating_reading.js:132'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/creating_reading.js:330'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/creating_reading.js:361'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/creating_reading.js:398'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/creating_reading.js:489'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/creating_reading.js:519'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/creating_reading.js:559'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/p5.Color.js:51'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/p5.Color.js:252'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/p5.Color.js:281'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/p5.Color.js:310'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/p5.Color.js:339'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/p5.Color.js:776'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/setting.js:13'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/setting.js:179'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/setting.js:218'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/setting.js:339'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/setting.js:496'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/setting.js:537'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/setting.js:577'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/setting.js:749'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/color/setting.js:829'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/2d_primitives.js:100'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/2d_primitives.js:211'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/2d_primitives.js:249'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/2d_primitives.js:306'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/2d_primitives.js:362'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/2d_primitives.js:437'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/2d_primitives.js:504'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/2d_primitives.js:569'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/2d_primitives.js:652'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/attributes.js:12'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/attributes.js:82'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/attributes.js:117'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/attributes.js:186'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/attributes.js:222'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/attributes.js:259'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/attributes.js:326'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/curves.js:11'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/curves.js:94'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/curves.js:137'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/curves.js:192'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/curves.js:271'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/curves.js:362'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/curves.js:404'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/curves.js:500'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/vertex.js:20'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/vertex.js:68'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/vertex.js:268'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/vertex.js:268'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/vertex.js:268'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/vertex.js:396'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/vertex.js:441'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/vertex.js:506'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/vertex.js:566'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/vertex.js:652'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/vertex.js:718'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/shape/vertex.js:811'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/constants.js:58'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/constants.js:77'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/constants.js:96'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/constants.js:115'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/constants.js:134'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:20'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:51'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:78'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:129'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:161'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:230'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:333'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:358'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:377'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:396'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:412'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:428'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:506'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:557'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/core/environment.js:592'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/core/environment.js:611'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:611'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:666'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:695'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/environment.js:715'\n              },\n              {\n                message: 'replacing incorrect tag: function with method',\n                line: ' src/core/internationalization.js:5'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/core/internationalization.js:5'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/main.js:41'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/main.js:82'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/main.js:113'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/main.js:410'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:47'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:112'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:152'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:187'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:248'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:297'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:363'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:417'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:473'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:531'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:574'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:616'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:664'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:704'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:753'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Element.js:791'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Graphics.js:64'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/p5.Graphics.js:116'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/rendering.js:15'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/rendering.js:115'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/rendering.js:170'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/rendering.js:193'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/rendering.js:232'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/rendering.js:315'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/structure.js:10'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/structure.js:72'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/structure.js:120'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/structure.js:211'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/structure.js:303'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/structure.js:404'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/transform.js:11'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/transform.js:148'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/transform.js:174'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/transform.js:214'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/transform.js:244'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/transform.js:274'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/transform.js:304'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/transform.js:379'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/transform.js:419'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/core/transform.js:459'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/data/local_storage.js:10'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/data/local_storage.js:91'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/dom/dom.js:226'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/dom/dom.js:294'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/dom/dom.js:1471'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/dom/dom.js:1533'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/dom/dom.js:1637'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/dom/dom.js:1676'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/dom/dom.js:1793'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/dom/dom.js:2166'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:23'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:46'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:69'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:135'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:168'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:201'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:239'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:286'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:332'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:392'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:431'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:474'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:518'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:550'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/acceleration.js:609'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/keyboard.js:10'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/keyboard.js:37'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/keyboard.js:66'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/keyboard.js:107'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/keyboard.js:194'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/keyboard.js:246'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/keyboard.js:310'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:12'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:44'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:82'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:109'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:136'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:169'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:201'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:240'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:279'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:320'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:362'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:401'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:494'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:549'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:630'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:712'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:790'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:860'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:945'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:999'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/mouse.js:1046'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/touch.js:10'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/touch.js:71'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/touch.js:151'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/events/touch.js:224'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/image.js:22'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/image.js:102'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/image.js:246'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/loading_displaying.js:16'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/image/loading_displaying.js:230'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/loading_displaying.js:247'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/loading_displaying.js:418'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/loading_displaying.js:518'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/loading_displaying.js:584'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:89'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:116'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:153'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:259'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:295'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:346'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:401'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:439'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:551'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:607'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:670'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:706'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:828'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:870'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:911'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:943'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:988'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:1024'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:1062'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/p5.Image.js:1099'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/pixels.js:12'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/pixels.js:81'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/pixels.js:175'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/pixels.js:310'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/pixels.js:497'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/pixels.js:585'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/pixels.js:622'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/image/pixels.js:696'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/files.js:18'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/files.js:183'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/files.js:294'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/files.js:604'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/io/files.js:715'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/files.js:715'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/files.js:1556'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/files.js:1614'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/files.js:1679'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:85'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:149'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:197'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:243'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:292'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:357'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:552'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:605'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:647'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:906'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:971'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:1021'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:1067'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:1112'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:1159'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:1204'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:1257'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.Table.js:1321'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.TableRow.js:40'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.TableRow.js:102'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.TableRow.js:146'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.TableRow.js:191'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.TableRow.js:239'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.TableRow.js:295'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/io/p5.XML.js:9'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:10'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:34'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:74'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:119'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:184'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:234'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:273'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:321'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:377'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:416'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:472'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:522'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:572'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:625'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:660'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:715'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:760'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/math/calculation.js:848'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/calculation.js:848'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/math.js:10'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/noise.js:36'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/noise.js:180'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/noise.js:246'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/p5.Vector.js:10'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/random.js:37'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/random.js:67'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/random.js:155'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/trigonometry.js:122'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/trigonometry.js:158'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/trigonometry.js:186'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/trigonometry.js:214'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/math/trigonometry.js:290'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/math/trigonometry.js:326'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/math/trigonometry.js:341'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/math/trigonometry.js:356'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/typography/attributes.js:11'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/typography/attributes.js:82'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/typography/attributes.js:120'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/typography/attributes.js:152'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/typography/attributes.js:189'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/typography/loading_displaying.js:14'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/typography/loading_displaying.js:138'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/typography/loading_displaying.js:225'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/typography/p5.Font.js:31'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/conversion.js:10'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/string_functions.js:13'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/string_functions.js:42'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/string_functions.js:130'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/string_functions.js:239'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/string_functions.js:313'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/string_functions.js:375'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/string_functions.js:453'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/string_functions.js:540'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/time_date.js:10'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/time_date.js:32'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/time_date.js:54'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/time_date.js:76'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/time_date.js:104'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/time_date.js:127'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/utilities/time_date.js:149'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/3d_primitives.js:13'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/interaction.js:11'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/interaction.js:145'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/interaction.js:145'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/interaction.js:145'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/interaction.js:145'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/interaction.js:145'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/interaction.js:353'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/light.js:10'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/light.js:92'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/light.js:177'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/light.js:281'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/light.js:389'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/light.js:420'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/light.js:506'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/light.js:846'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/loading.js:12'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/loading.js:12'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/loading.js:579'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/material.js:12'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/webgl/material.js:111'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/material.js:111'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/material.js:179'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/material.js:283'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/material.js:322'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/material.js:423'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/material.js:423'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/material.js:502'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/material.js:575'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/material.js:655'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/material.js:707'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/material.js:757'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.Camera.js:13'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.Camera.js:113'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.Camera.js:174'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.Camera.js:231'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.Camera.js:320'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.Camera.js:653'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.Camera.js:712'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.Camera.js:770'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.Camera.js:918'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.Camera.js:990'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.Camera.js:1255'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/webgl/p5.RendererGL.Immediate.js:178'\n              },\n              {\n                message: 'unknown tag: parem',\n                line: ' src/webgl/p5.RendererGL.Immediate.js:299'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/webgl/p5.RendererGL.Retained.js:8'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.RendererGL.js:331'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.RendererGL.js:600'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.RendererGL.js:642'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.RendererGL.js:751'\n              },\n              {\n                message: 'unknown tag: alt',\n                line: ' src/webgl/p5.Shader.js:293'\n              },\n              {\n                message: 'replacing incorrect tag: function with method',\n                line: ' src/webgl/text.js:115'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/webgl/text.js:158'\n              },\n              {\n                message: 'replacing incorrect tag: function with method',\n                line: ' src/webgl/text.js:191'\n              },\n              {\n                message: 'replacing incorrect tag: function with method',\n                line: ' src/webgl/text.js:203'\n              },\n              {\n                message: 'replacing incorrect tag: function with method',\n                line: ' src/webgl/text.js:236'\n              },\n              {\n                message: 'replacing incorrect tag: function with method',\n                line: ' src/webgl/text.js:250'\n              },\n              {\n                message: 'replacing incorrect tag: function with method',\n                line: ' src/webgl/text.js:388'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' src/webgl/text.js:388'\n              },\n              {\n                message: 'replacing incorrect tag: function with method',\n                line: ' src/webgl/text.js:456'\n              },\n              {\n                message: 'replacing incorrect tag: function with method',\n                line: ' src/webgl/text.js:471'\n              },\n              {\n                message: 'replacing incorrect tag: function with method',\n                line: ' src/webgl/text.js:556'\n              },\n              {\n                message: 'replacing incorrect tag: params with param',\n                line: ' lib/addons/p5.sound.js:4374'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' lib/addons/p5.sound.js:4374'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' lib/addons/p5.sound.js:5085'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' lib/addons/p5.sound.js:7837'\n              },\n              {\n                message: 'replacing incorrect tag: returns with return',\n                line: ' lib/addons/p5.sound.js:9005'\n              },\n              {\n                message:\n                  \"Missing item type\\nConversions adapted from <http://www.easyrgb.com/en/math.php>.\\n\\nIn these functions, hue is always in the range [0, 1], just like all other\\ncomponents are in the range [0, 1]. 'Brightness' and 'value' are used\\ninterchangeably.\",\n                line: ' src/color/color_conversion.js:8'\n              },\n              {\n                message: 'Missing item type\\nConvert an HSBA array to HSLA.',\n                line: ' src/color/color_conversion.js:19'\n              },\n              {\n                message: 'Missing item type\\nConvert an HSBA array to RGBA.',\n                line: ' src/color/color_conversion.js:45'\n              },\n              {\n                message: 'Missing item type\\nConvert an HSLA array to HSBA.',\n                line: ' src/color/color_conversion.js:100'\n              },\n              {\n                message:\n                  \"Missing item type\\nConvert an HSLA array to RGBA.\\n\\nWe need to change basis from HSLA to something that can be more easily be\\nprojected onto RGBA. We will choose hue and brightness as our first two\\ncomponents, and pick a convenient third one ('zest') so that we don't need\\nto calculate formal HSBA saturation.\",\n                line: ' src/color/color_conversion.js:123'\n              },\n              {\n                message: 'Missing item type\\nConvert an RGBA array to HSBA.',\n                line: ' src/color/color_conversion.js:187'\n              },\n              {\n                message: 'Missing item type\\nConvert an RGBA array to HSLA.',\n                line: ' src/color/color_conversion.js:226'\n              },\n              {\n                message:\n                  'Missing item type\\nHue is the same in HSB and HSL, but the maximum value may be different.\\nThis function will return the HSB-normalized saturation when supplied with\\nan HSB color object, but will default to the HSL-normalized saturation\\notherwise.',\n                line: ' src/color/p5.Color.js:422'\n              },\n              {\n                message:\n                  'Missing item type\\nSaturation is scaled differently in HSB and HSL. This function will return\\nthe HSB saturation when supplied with an HSB color object, but will default\\nto the HSL saturation otherwise.',\n                line: ' src/color/p5.Color.js:453'\n              },\n              {\n                message: 'Missing item type\\nCSS named colors.',\n                line: ' src/color/p5.Color.js:472'\n              },\n              {\n                message:\n                  'Missing item type\\nThese regular expressions are used to build up the patterns for matching\\nviable CSS color strings: fragmenting the regexes in this way increases the\\nlegibility and comprehensibility of the code.\\n\\nNote that RGB values of .9 are not parsed by IE, but are supported here for\\ncolor string consistency.',\n                line: ' src/color/p5.Color.js:626'\n              },\n              {\n                message:\n                  'Missing item type\\nFull color string patterns. The capture groups are necessary.',\n                line: ' src/color/p5.Color.js:639'\n              },\n              {\n                message:\n                  'Missing item type\\nFor a number of different inputs, returns a color formatted as [r, g, b, a]\\narrays, with each component normalized between 0 and 1.',\n                line: ' src/color/p5.Color.js:776'\n              },\n              {\n                message:\n                  'Missing item type\\nFor HSB and HSL, interpret the gray level as a brightness/lightness\\nvalue (they are equivalent when chroma is zero). For RGB, normalize the\\ngray level according to the blue maximum.',\n                line: ' src/color/p5.Color.js:988'\n              },\n              {\n                message:\n                  \"Missing item type\\nThis function does 3 things:\\n\\n  1. Bounds the desired start/stop angles for an arc (in radians) so that:\\n\\n         0 <= start < TWO_PI ;    start <= stop < start + TWO_PI\\n\\n     This means that the arc rendering functions don't have to be concerned\\n     with what happens if stop is smaller than start, or if the arc 'goes\\n     round more than once', etc.: they can just start at start and increase\\n     until stop and the correct arc will be drawn.\\n\\n  2. Optionally adjusts the angles within each quadrant to counter the naive\\n     scaling of the underlying ellipse up from the unit circle.  Without\\n     this, the angles become arbitrary when width != height: 45 degrees\\n     might be drawn at 5 degrees on a 'wide' ellipse, or at 85 degrees on\\n     a 'tall' ellipse.\\n\\n  3. Flags up when start and stop correspond to the same place on the\\n     underlying ellipse.  This is useful if you want to do something special\\n     there (like rendering a whole ellipse instead).\",\n                line: ' src/core/shape/2d_primitives.js:14'\n              },\n              {\n                message: 'Missing item type\\nReturns the current framerate.',\n                line: ' src/core/environment.js:307'\n              },\n              {\n                message:\n                  'Missing item type\\nSpecifies the number of frames to be displayed every second. For example,\\nthe function call frameRate(30) will attempt to refresh 30 times a second.\\nIf the processor is not fast enough to maintain the specified rate, the\\nframe rate will not be achieved. Setting the frame rate within <a href=\"#/p5/setup\">setup()</a> is\\nrecommended. The default rate is 60 frames per second.\\n\\nCalling <a href=\"#/p5/frameRate\">frameRate()</a> with no arguments returns the current framerate.',\n                line: ' src/core/environment.js:317'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/core/error_helpers.js:1'\n              },\n              {\n                message:\n                  'Missing item type\\nValidates parameters\\nparam  {String}               func    the name of the function\\nparam  {Array}                args    user input arguments\\n\\nexample:\\n const a;\\n ellipse(10,10,a,5);\\nconsole ouput:\\n \"It looks like ellipse received an empty variable in spot #2.\"\\n\\nexample:\\n ellipse(10,\"foo\",5,5);\\nconsole output:\\n \"ellipse was expecting a number for parameter #1,\\n          received \"foo\" instead.\"',\n                line: ' src/core/error_helpers.js:630'\n              },\n              {\n                message:\n                  'Missing item type\\nPrints out all the colors in the color pallete with white text.\\nFor color blindness testing.',\n                line: ' src/core/error_helpers.js:691'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/core/helpers.js:1'\n              },\n              {\n                message:\n                  'Missing item type\\n_globalInit\\n\\nTODO: ???\\nif sketch is on window\\nassume \"global\" mode\\nand instantiate p5 automatically\\notherwise do nothing',\n                line: ' src/core/init.js:4'\n              },\n              {\n                message:\n                  'Missing item type\\nSet up our translation function, with loaded languages',\n                line: ' src/core/internationalization.js:22'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/core/legacy.js:1'\n              },\n              {\n                message: 'Missing item type\\nHelper fxn for sharing pixel methods',\n                line: ' src/core/p5.Element.js:855'\n              },\n              {\n                message: 'Missing item type\\nResize our canvas element.',\n                line: ' src/core/p5.Renderer.js:95'\n              },\n              {\n                message: 'Missing item type\\nHelper fxn to check font type (system or otf)',\n                line: ' src/core/p5.Renderer.js:334'\n              },\n              {\n                message:\n                  'Missing item type\\nHelper fxn to measure ascent and descent.\\nAdapted from http://stackoverflow.com/a/25355178',\n                line: ' src/core/p5.Renderer.js:386'\n              },\n              {\n                message:\n                  'Missing item type\\np5.Renderer2D\\nThe 2D graphics canvas renderer class.\\nextends p5.Renderer',\n                line: ' src/core/p5.Renderer2D.js:7'\n              },\n              {\n                message:\n                  'Missing item type\\nGenerate a cubic Bezier representing an arc on the unit circle of total\\nangle `size` radians, beginning `start` radians above the x-axis. Up to\\nfour of these curves are combined to make a full arc.\\n\\nSee www.joecridge.me/bezier.pdf for an explanation of the method.',\n                line: ' src/core/p5.Renderer2D.js:385'\n              },\n              {\n                message:\n                  'Missing item type\\nshim for Uint8ClampedArray.slice\\n(allows arrayCopy to work with pixels[])\\nwith thanks to http://halfpapstudios.com/blog/tag/html5-canvas/\\nEnumerable set to false to protect for...in from\\nUint8ClampedArray.prototype pollution.',\n                line: ' src/core/shim.js:18'\n              },\n              {\n                message:\n                  'Missing item type\\nthis is implementation of Object.assign() which is unavailable in\\nIE11 and (non-Chrome) Android browsers.\\nThe assign() method is used to copy the values of all enumerable\\nown properties from one or more source objects to a target object.\\nIt will return the target object.\\nModified from https://github.com/ljharb/object.assign',\n                line: ' src/core/shim.js:39'\n              },\n              {\n                message:\n                  'Missing item type\\nprivate helper function to handle the user passing in objects\\nduring construction or calls to create()',\n                line: ' src/data/p5.TypedDict.js:202'\n              },\n              {\n                message:\n                  'Missing item type\\nprivate helper function to ensure that the user passed in valid\\nvalues for the Dictionary type',\n                line: ' src/data/p5.TypedDict.js:393'\n              },\n              {\n                message:\n                  'Missing item type\\nprivate helper function to ensure that the user passed in valid\\nvalues for the Dictionary type',\n                line: ' src/data/p5.TypedDict.js:433'\n              },\n              {\n                message:\n                  \"Missing item type\\nprivate helper function for finding lowest or highest value\\nthe argument 'flip' is used to flip the comparison arrow\\nfrom 'less than' to 'greater than'\",\n                line: ' src/data/p5.TypedDict.js:548'\n              },\n              {\n                message:\n                  \"Missing item type\\nprivate helper function for finding lowest or highest key\\nthe argument 'flip' is used to flip the comparison arrow\\nfrom 'less than' to 'greater than'\",\n                line: ' src/data/p5.TypedDict.js:615'\n              },\n              {\n                message: 'Missing item type\\nHelper function for select and selectAll',\n                line: ' src/dom/dom.js:149'\n              },\n              {\n                message:\n                  'Missing item type\\nHelper function for getElement and getElements.',\n                line: ' src/dom/dom.js:165'\n              },\n              {\n                message: 'Missing item type\\nHelpers for create methods.',\n                line: ' src/dom/dom.js:329'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/dom/dom.js:455'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/dom/dom.js:1081'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/dom/dom.js:1169'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/dom/dom.js:1208'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/dom/dom.js:3090'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/dom/dom.js:3156'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/dom/dom.js:3218'\n              },\n              {\n                message:\n                  'Missing item type\\n_updatePAccelerations updates the pAcceleration values',\n                line: ' src/events/acceleration.js:124'\n              },\n              {\n                message:\n                  'Missing item type\\nThe onblur function is called when the user is no longer focused\\non the p5 element. Because the keyup events will not fire if the user is\\nnot focused on the element we must assume all keys currently down have\\nbeen released.',\n                line: ' src/events/keyboard.js:300'\n              },\n              {\n                message:\n                  'Missing item type\\nThe _areDownKeys function returns a boolean true if any keys pressed\\nand a false if no keys are currently pressed.\\n\\nHelps avoid instances where multiple keys are pressed simultaneously and\\nreleasing a single key will then switch the\\nkeyIsPressed property to true.',\n                line: ' src/events/keyboard.js:387'\n              },\n              {\n                message:\n                  'Missing item type\\nThis module defines the filters for use with image buffers.\\n\\nThis module is basically a collection of functions stored in an object\\nas opposed to modules. The functions are destructive, modifying\\nthe passed in canvas rather than creating a copy.\\n\\nGenerally speaking users of this module will use the Filters.apply method\\non a canvas to create an effect.\\n\\nA number of functions are borrowed/adapted from\\nhttp://www.html5rocks.com/en/tutorials/canvas/imagefilters/\\nor the java processing implementation.',\n                line: ' src/image/filters.js:3'\n              },\n              {\n                message: 'Missing item type\\nReturns the pixel buffer for a canvas',\n                line: ' src/image/filters.js:24'\n              },\n              {\n                message:\n                  'Missing item type\\nReturns a 32 bit number containing ARGB data at ith pixel in the\\n1D array containing pixels data.',\n                line: ' src/image/filters.js:44'\n              },\n              {\n                message:\n                  'Missing item type\\nModifies pixels RGBA values to values contained in the data object.',\n                line: ' src/image/filters.js:65'\n              },\n              {\n                message:\n                  'Missing item type\\nReturns the ImageData object for a canvas\\nhttps://developer.mozilla.org/en-US/docs/Web/API/ImageData',\n                line: ' src/image/filters.js:85'\n              },\n              {\n                message: 'Missing item type\\nReturns a blank ImageData object.',\n                line: ' src/image/filters.js:105'\n              },\n              {\n                message:\n                  'Missing item type\\nApplys a filter function to a canvas.\\n\\nThe difference between this and the actual filter functions defined below\\nis that the filter functions generally modify the pixel buffer but do\\nnot actually put that data back to the canvas (where it would actually\\nupdate what is visible). By contrast this method does make the changes\\nactually visible in the canvas.\\n\\nThe apply method is the method that callers of this module would generally\\nuse. It has been separated from the actual filters to support an advanced\\nuse case of creating a filter chain that executes without actually updating\\nthe canvas in between everystep.',\n                line: ' src/image/filters.js:120'\n              },\n              {\n                message:\n                  'Missing item type\\nConverts the image to black and white pixels depending if they are above or\\nbelow the threshold defined by the level parameter. The parameter must be\\nbetween 0.0 (black) and 1.0 (white). If no level is specified, 0.5 is used.\\n\\nBorrowed from http://www.html5rocks.com/en/tutorials/canvas/imagefilters/',\n                line: ' src/image/filters.js:173'\n              },\n              {\n                message:\n                  'Missing item type\\nConverts any colors in the image to grayscale equivalents.\\nNo parameter is used.\\n\\nBorrowed from http://www.html5rocks.com/en/tutorials/canvas/imagefilters/',\n                line: ' src/image/filters.js:207'\n              },\n              {\n                message:\n                  'Missing item type\\nSets the alpha channel to entirely opaque. No parameter is used.',\n                line: ' src/image/filters.js:230'\n              },\n              {\n                message:\n                  'Missing item type\\nSets each pixel to its inverse value. No parameter is used.',\n                line: ' src/image/filters.js:246'\n              },\n              {\n                message:\n                  'Missing item type\\nLimits each channel of the image to the number of colors specified as\\nthe parameter. The parameter can be set to values between 2 and 255, but\\nresults are most noticeable in the lower ranges.\\n\\nAdapted from java based processing implementation',\n                line: ' src/image/filters.js:261'\n              },\n              {\n                message: 'Missing item type\\nreduces the bright areas in an image',\n                line: ' src/image/filters.js:293'\n              },\n              {\n                message: 'Missing item type\\nincreases the bright areas in an image',\n                line: ' src/image/filters.js:381'\n              },\n              {\n                message:\n                  'Missing item type\\nThis module defines the p5 methods for the <a href=\"#/p5.Image\">p5.Image</a> class\\nfor drawing images to the main display canvas.',\n                line: ' src/image/image.js:8'\n              },\n              {\n                message: 'Missing item type\\nHelper function for loading GIF-based images',\n                line: ' src/image/loading_displaying.js:149'\n              },\n              {\n                message:\n                  'Missing item type\\nValidates clipping params. Per drawImage spec sWidth and sHight cannot be\\nnegative or greater than image intrinsic width and height',\n                line: ' src/image/loading_displaying.js:230'\n              },\n              {\n                message:\n                  'Missing item type\\nApply the current tint color to the input image, return the resulting\\ncanvas.',\n                line: ' src/image/loading_displaying.js:547'\n              },\n              {\n                message:\n                  'Missing item type\\nThis module defines the <a href=\"#/p5.Image\">p5.Image</a> class and P5 methods for\\ndrawing images to the main display canvas.',\n                line: ' src/image/p5.Image.js:9'\n              },\n              {\n                message:\n                  'Missing item type\\nHelper function for animating GIF-based images with time',\n                line: ' src/image/p5.Image.js:223'\n              },\n              {\n                message: 'Missing item type\\nHelper fxn for sharing pixel methods',\n                line: ' src/image/p5.Image.js:250'\n              },\n              {\n                message:\n                  'Missing item type\\nGenerate a blob of file data as a url to prepare for download.\\nAccepts an array of data, a filename, and an extension (optional).\\nThis is a private function because it does not do any formatting,\\nbut it is used by <a href=\"#/p5/saveStrings\">saveStrings</a>, <a href=\"#/p5/saveJSON\">saveJSON</a>, <a href=\"#/p5/saveTable\">saveTable</a> etc.',\n                line: ' src/io/files.js:1805'\n              },\n              {\n                message:\n                  'Missing item type\\nReturns a file extension, or another string\\nif the provided parameter has no extension.',\n                line: ' src/io/files.js:1873'\n              },\n              {\n                message:\n                  'Missing item type\\nReturns true if the browser is Safari, false if not.\\nSafari makes trouble for downloading files.',\n                line: ' src/io/files.js:1906'\n              },\n              {\n                message:\n                  'Missing item type\\nHelper function, a callback for download that deletes\\nan invisible anchor element from the DOM once the file\\nhas been automatically downloaded.',\n                line: ' src/io/files.js:1918'\n              },\n              {\n                message:\n                  'Missing item type\\nTable Options\\n<p>Generic class for handling tabular data, typically from a\\nCSV, TSV, or other sort of spreadsheet file.</p>\\n<p>CSV files are\\n<a href=\"http://en.wikipedia.org/wiki/Comma-separated_values\">\\ncomma separated values</a>, often with the data in quotes. TSV\\nfiles use tabs as separators, and usually don\\'t bother with the\\nquotes.</p>\\n<p>File names should end with .csv if they\\'re comma separated.</p>\\n<p>A rough \"spec\" for CSV can be found\\n<a href=\"http://tools.ietf.org/html/rfc4180\">here</a>.</p>\\n<p>To load files, use the <a href=\"#/p5/loadTable\">loadTable</a> method.</p>\\n<p>To save tables to your computer, use the <a href=\"#/p5/save\">save</a> method\\n or the <a href=\"#/p5/saveTable\">saveTable</a> method.</p>\\n\\nPossible options include:\\n<ul>\\n<li>csv - parse the table as comma-separated values\\n<li>tsv - parse the table as tab-separated values\\n<li>header - this table has a header (title) row\\n</ul>',\n                line: ' src/io/p5.Table.js:9'\n              },\n              {\n                message:\n                  'Missing item type\\nMultiplies a vector by a scalar and returns a new vector.',\n                line: ' src/math/p5.Vector.js:1798'\n              },\n              {\n                message:\n                  'Missing item type\\nDivides a vector by a scalar and returns a new vector.',\n                line: ' src/math/p5.Vector.js:1825'\n              },\n              {\n                message: 'Missing item type\\nCalculates the dot product of two vectors.',\n                line: ' src/math/p5.Vector.js:1852'\n              },\n              {\n                message: 'Missing item type\\nCalculates the cross product of two vectors.',\n                line: ' src/math/p5.Vector.js:1866'\n              },\n              {\n                message:\n                  'Missing item type\\nCalculates the Euclidean distance between two points (considering a\\npoint as a vector object).',\n                line: ' src/math/p5.Vector.js:1880'\n              },\n              {\n                message:\n                  'Missing item type\\nLinear interpolate a vector to another vector and return the result as a\\nnew vector.',\n                line: ' src/math/p5.Vector.js:1895'\n              },\n              {\n                message:\n                  'Missing item type\\nHelper function to measure ascent and descent.',\n                line: ' src/typography/attributes.js:283'\n              },\n              {\n                message:\n                  'Missing item type\\nReturns the set of opentype glyphs for the supplied string.\\n\\nNote that there is not a strict one-to-one mapping between characters\\nand glyphs, so the list of returned glyphs can be larger or smaller\\n than the length of the given string.',\n                line: ' src/typography/p5.Font.js:254'\n              },\n              {\n                message:\n                  'Missing item type\\nReturns an opentype path for the supplied string and position.',\n                line: ' src/typography/p5.Font.js:269'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/webgl/3d_primitives.js:301'\n              },\n              {\n                message:\n                  'Missing item type\\nDraws a point, a coordinate in space at the dimension of one pixel,\\ngiven x, y and z coordinates. The color of the point is determined\\nby the current stroke, while the point size is determined by current\\nstroke weight.',\n                line: ' src/webgl/3d_primitives.js:956'\n              },\n              {\n                message: 'Missing item type\\nDraw a line given two points',\n                line: ' src/webgl/3d_primitives.js:1356'\n              },\n              {\n                message:\n                  'Missing item type\\nParse OBJ lines into model. For reference, this is what a simple model of a\\nsquare might look like:\\n\\nv -0.5 -0.5 0.5\\nv -0.5 -0.5 -0.5\\nv -0.5 0.5 -0.5\\nv -0.5 0.5 0.5\\n\\nf 4 3 2 1',\n                line: ' src/webgl/loading.js:170'\n              },\n              {\n                message:\n                  'Missing item type\\nSTL files can be of two types, ASCII and Binary,\\n\\nWe need to convert the arrayBuffer to an array of strings,\\nto parse it as an ASCII file.',\n                line: ' src/webgl/loading.js:279'\n              },\n              {\n                message:\n                  'Missing item type\\nThis function checks if the file is in ASCII format or in Binary format\\n\\nIt is done by searching keyword `solid` at the start of the file.\\n\\nAn ASCII STL data must begin with `solid` as the first six bytes.\\nHowever, ASCII STLs lacking the SPACE after the `d` are known to be\\nplentiful. So, check the first 5 bytes for `solid`.\\n\\nSeveral encodings, such as UTF-8, precede the text with up to 5 bytes:\\nhttps://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding\\nSearch for `solid` to start anywhere after those prefixes.',\n                line: ' src/webgl/loading.js:306'\n              },\n              {\n                message:\n                  'Missing item type\\nThis function matches the `query` at the provided `offset`',\n                line: ' src/webgl/loading.js:333'\n              },\n              {\n                message:\n                  'Missing item type\\nThis function parses the Binary STL files.\\nhttps://en.wikipedia.org/wiki/STL_%28file_format%29#Binary_STL\\n\\nCurrently there is no support for the colors provided in STL files.',\n                line: ' src/webgl/loading.js:345'\n              },\n              {\n                message:\n                  \"Missing item type\\nASCII STL file starts with `solid 'nameOfFile'`\\nThen contain the normal of the face, starting with `facet normal`\\nNext contain a keyword indicating the start of face vertex, `outer loop`\\nNext comes the three vertex, starting with `vertex x y z`\\nVertices ends with `endloop`\\nFace ends with `endfacet`\\nNext face starts with `facet normal`\\nThe end of the file is indicated by `endsolid`\",\n                line: ' src/webgl/loading.js:435'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/webgl/material.js:802'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/webgl/material.js:833'\n              },\n              {\n                message:\n                  'Missing item type\\nCreate a 2D array for establishing stroke connections',\n                line: ' src/webgl/p5.Geometry.js:212'\n              },\n              {\n                message:\n                  \"Missing item type\\nCreate 4 vertices for each stroke line, two at the beginning position\\nand two at the end position. These vertices are displaced relative to\\nthat line's normal on the GPU\",\n                line: ' src/webgl/p5.Geometry.js:233'\n              },\n              {\n                message: 'Missing item type',\n                line: ' src/webgl/p5.Matrix.js:1'\n              },\n              {\n                message: 'Missing item type\\nPRIVATE',\n                line: ' src/webgl/p5.Matrix.js:722'\n              },\n              {\n                message:\n                  'Missing item type\\nEnables and binds the buffers used by shader when the appropriate data exists in geometry.\\nMust always be done prior to drawing geometry in WebGL.',\n                line: ' src/webgl/p5.RenderBuffer.js:12'\n              },\n              {\n                message:\n                  'Missing item type\\nWelcome to RendererGL Immediate Mode.\\nImmediate mode is used for drawing custom shapes\\nfrom a set of vertices.  Immediate Mode is activated\\nwhen you call <a href=\"#/p5/beginShape\">beginShape()</a> & de-activated when you call <a href=\"#/p5/endShape\">endShape()</a>.\\nImmediate mode is a style of programming borrowed\\nfrom OpenGL\\'s (now-deprecated) immediate mode.\\nIt differs from p5.js\\' default, Retained Mode, which caches\\ngeometries and buffers on the CPU to reduce the number of webgl\\ndraw calls. Retained mode is more efficient & performative,\\nhowever, Immediate Mode is useful for sketching quick\\ngeometric ideas.',\n                line: ' src/webgl/p5.RendererGL.Immediate.js:1'\n              },\n              {\n                message:\n                  'Missing item type\\nEnd shape drawing and render vertices to screen.',\n                line: ' src/webgl/p5.RendererGL.Immediate.js:106'\n              },\n              {\n                message:\n                  'Missing item type\\nCalled from endShape(). This function calculates the stroke vertices for custom shapes and\\ntesselates shapes when applicable.',\n                line: ' src/webgl/p5.RendererGL.Immediate.js:144'\n              },\n              {\n                message:\n                  'Missing item type\\nCalled from _processVertices(). This function calculates the stroke vertices for custom shapes and\\ntesselates shapes when applicable.',\n                line: ' src/webgl/p5.RendererGL.Immediate.js:178'\n              },\n              {\n                message:\n                  'Missing item type\\nCalled from _processVertices() when applicable. This function tesselates immediateMode.geometry.',\n                line: ' src/webgl/p5.RendererGL.Immediate.js:223'\n              },\n              {\n                message:\n                  'Missing item type\\nCalled from endShape(). Responsible for calculating normals, setting shader uniforms,\\nenabling all appropriate buffers, applying color blend, and drawing the fill geometry.',\n                line: ' src/webgl/p5.RendererGL.Immediate.js:243'\n              },\n              {\n                message:\n                  'Missing item type\\nCalled from endShape(). Responsible for calculating normals, setting shader uniforms,\\nenabling all appropriate buffers, applying color blend, and drawing the stroke geometry.',\n                line: ' src/webgl/p5.RendererGL.Immediate.js:278'\n              },\n              {\n                message:\n                  'Missing item type\\nCalled from _drawImmediateFill(). Currently adds default normals which\\nonly work for flat shapes.',\n                line: ' src/webgl/p5.RendererGL.Immediate.js:299'\n              },\n              {\n                message:\n                  'Missing item type\\ninitializes buffer defaults. runs each time a new geometry is\\nregistered',\n                line: ' src/webgl/p5.RendererGL.Retained.js:8'\n              },\n              {\n                message:\n                  'Missing item type\\ncreates a buffers object that holds the WebGL render buffers\\nfor a geometry.',\n                line: ' src/webgl/p5.RendererGL.Retained.js:59'\n              },\n              {\n                message: 'Missing item type\\nDraws buffers given a geometry key ID',\n                line: ' src/webgl/p5.RendererGL.Retained.js:97'\n              },\n              {\n                message: 'Missing item type\\nmodel view, projection, & normal\\nmatrices',\n                line: ' src/webgl/p5.RendererGL.js:117'\n              },\n              {\n                message: 'Missing item type\\n[background description]',\n                line: ' src/webgl/p5.RendererGL.js:583'\n              },\n              {\n                message: 'Missing item type\\n[resize description]',\n                line: ' src/webgl/p5.RendererGL.js:864'\n              },\n              {\n                message: 'Missing item type\\nclears color and depth buffers\\nwith r,g,b,a',\n                line: ' src/webgl/p5.RendererGL.js:894'\n              },\n              {\n                message: 'Missing item type\\n[translate description]',\n                line: ' src/webgl/p5.RendererGL.js:926'\n              },\n              {\n                message: 'Missing item type\\nScales the Model View Matrix by a vector',\n                line: ' src/webgl/p5.RendererGL.js:945'\n              },\n              {\n                message:\n                  'Missing item type\\nturn a two dimensional array into one dimensional array',\n                line: ' src/webgl/p5.RendererGL.js:1363'\n              },\n              {\n                message:\n                  'Missing item type\\nturn a p5.Vector Array into a one dimensional number array',\n                line: ' src/webgl/p5.RendererGL.js:1400'\n              },\n              {\n                message:\n                  'Missing item type\\nensures that p5 is using a 3d renderer. throws an error if not.',\n                line: ' src/webgl/p5.RendererGL.js:1418'\n              },\n              {\n                message: 'Missing item type',\n                line: ' lib/addons/p5.sound.js:1'\n              },\n              {\n                message:\n                  \"Missing item type\\np5.sound \\nhttps://p5js.org/reference/#/libraries/p5.sound\\n\\nFrom the Processing Foundation and contributors\\nhttps://github.com/processing/p5.js-sound/graphs/contributors\\n\\nMIT License (MIT)\\nhttps://github.com/processing/p5.js-sound/blob/master/LICENSE\\n\\nSome of the many audio libraries & resources that inspire p5.sound:\\n - TONE.js (c) Yotam Mann. Licensed under The MIT License (MIT). https://github.com/TONEnoTONE/Tone.js\\n - buzz.js (c) Jay Salvat. Licensed under The MIT License (MIT). http://buzz.jaysalvat.com/\\n - Boris Smus Web Audio API book, 2013. Licensed under the Apache License http://www.apache.org/licenses/LICENSE-2.0\\n - wavesurfer.js https://github.com/katspaugh/wavesurfer.js\\n - Web Audio Components by Jordan Santell https://github.com/web-audio-components\\n - Wilm Thoben's Sound library for Processing https://github.com/processing/processing/tree/master/java/libraries/sound\\n\\n Web Audio API: http://w3.org/TR/webaudio/\",\n                line: ' lib/addons/p5.sound.js:52'\n              },\n              {\n                message:\n                  'Missing item type\\nThe p5.Effect class is built\\n \\tusing Tone.js CrossFade',\n                line: ' lib/addons/p5.sound.js:293'\n              },\n              {\n                message:\n                  'Missing item type\\nIn classes that extend\\np5.Effect, connect effect nodes\\nto the wet parameter',\n                line: ' lib/addons/p5.sound.js:300'\n              },\n              {\n                message: 'Missing item type',\n                line: ' lib/addons/p5.sound.js:451'\n              },\n              {\n                message: 'Missing item type\\nUsed by Osc and Envelope to chain signal math',\n                line: ' lib/addons/p5.sound.js:688'\n              },\n              {\n                message:\n                  'Missing item type\\nPrivate method to ensure accurate values of this._voicesInUse\\nAny time a new value is scheduled, it is necessary to increment all subsequent\\nscheduledValues after attack, and decrement all subsequent\\nscheduledValues after release',\n                line: ' lib/addons/p5.sound.js:2721'\n              },\n              {\n                message: 'Missing item type\\nThis module has shims',\n                line: ' lib/addons/p5.sound.js:2969'\n              },\n              {\n                message:\n                  'Missing item type\\nDetermine which filetypes are supported (inspired by buzz.js)\\nThe audio element (el) will only be used to test browser support for various audio formats',\n                line: ' lib/addons/p5.sound.js:3105'\n              },\n              {\n                message:\n                  'Missing item type\\nThis is a helper function that the p5.SoundFile calls to load\\nitself. Accepts a callback (the name of another function)\\nas an optional parameter.',\n                line: ' lib/addons/p5.sound.js:3555'\n              },\n              {\n                message:\n                  \"Missing item type\\nStop playback on all of this soundfile's sources.\",\n                line: ' lib/addons/p5.sound.js:4056'\n              },\n              {\n                message: 'Missing item type',\n                line: ' lib/addons/p5.sound.js:4590'\n              },\n              {\n                message:\n                  'Missing item type\\nEQFilter extends p5.Filter with constraints\\nnecessary for the p5.EQ',\n                line: ' lib/addons/p5.sound.js:8235'\n              },\n              {\n                message:\n                  'Missing item type\\nInspired by Simple Reverb by Jordan Santell\\nhttps://github.com/web-audio-components/simple-reverb/blob/master/index.js\\n\\nUtility function for building an impulse response\\nbased on the module parameters.',\n                line: ' lib/addons/p5.sound.js:9362'\n              },\n              {\n                message:\n                  'Missing item type\\nPrivate method to load a buffer as an Impulse Response,\\nassign it to the convolverNode, and add to the Array of .impulses.',\n                line: ' lib/addons/p5.sound.js:9557'\n              },\n              {\n                message:\n                  'Missing item type\\nmusicalTimeMode variables\\nmodify these only when the interval is specified in musicalTime format as a string',\n                line: ' lib/addons/p5.sound.js:10516'\n              },\n              {\n                message:\n                  'Missing item type\\nDo not initiate the callback if timeFromNow is < 0\\nThis ususually occurs for a few milliseconds when the page\\nis not fully loaded\\n\\nThe callback should only be called until maxIterations is reached',\n                line: ' lib/addons/p5.sound.js:10534'\n              },\n              {\n                message: 'Missing item type\\ncallback invoked when the recording is over',\n                line: ' lib/addons/p5.sound.js:11153'\n              },\n              {\n                message: 'Missing item type',\n                line: ' lib/addons/p5.sound.min.js:1'\n              }\n            ],\n            consts: {\n              RGB: ['p5.colorMode'],\n              HSB: ['p5.colorMode'],\n              HSL: ['p5.colorMode'],\n              CHORD: ['p5.arc'],\n              PIE: ['p5.arc'],\n              OPEN: ['p5.arc'],\n              CENTER: ['p5.ellipseMode', 'p5.rectMode', 'p5.imageMode', 'p5.textAlign'],\n              RADIUS: ['p5.ellipseMode', 'p5.rectMode'],\n              CORNER: ['p5.ellipseMode', 'p5.rectMode', 'p5.imageMode'],\n              CORNERS: ['p5.ellipseMode', 'p5.rectMode', 'p5.imageMode'],\n              SQUARE: ['p5.strokeCap'],\n              PROJECT: ['p5.strokeCap'],\n              ROUND: ['p5.strokeCap', 'p5.strokeJoin'],\n              MITER: ['p5.strokeJoin'],\n              BEVEL: ['p5.strokeJoin'],\n              POINTS: ['p5.beginShape'],\n              LINES: ['p5.beginShape'],\n              TRIANGLES: ['p5.beginShape'],\n              TRIANGLE_FAN: ['p5.beginShape'],\n              TRIANGLE_STRIP: ['p5.beginShape'],\n              QUADS: ['p5.beginShape'],\n              QUAD_STRIP: ['p5.beginShape'],\n              TESS: ['p5.beginShape'],\n              CLOSE: ['p5.endShape'],\n              ARROW: ['p5.cursor'],\n              CROSS: ['p5.cursor'],\n              HAND: ['p5.cursor'],\n              MOVE: ['p5.cursor'],\n              TEXT: ['p5.cursor'],\n              P2D: ['p5.createCanvas', 'p5.createGraphics'],\n              WEBGL: ['p5.createCanvas', 'p5.createGraphics'],\n              BLEND: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              DARKEST: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              LIGHTEST: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              DIFFERENCE: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              MULTIPLY: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              EXCLUSION: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              SCREEN: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              REPLACE: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              OVERLAY: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              HARD_LIGHT: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              SOFT_LIGHT: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              DODGE: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              BURN: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              ADD: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'],\n              REMOVE: ['p5.blendMode'],\n              SUBTRACT: ['p5.blendMode'],\n              VIDEO: ['p5.createCapture'],\n              AUDIO: ['p5.createCapture'],\n              THRESHOLD: ['p5.Image.filter', 'p5.filter'],\n              GRAY: ['p5.Image.filter', 'p5.filter'],\n              OPAQUE: ['p5.Image.filter', 'p5.filter'],\n              INVERT: ['p5.Image.filter', 'p5.filter'],\n              POSTERIZE: ['p5.Image.filter', 'p5.filter'],\n              BLUR: ['p5.Image.filter', 'p5.filter'],\n              ERODE: ['p5.Image.filter', 'p5.filter'],\n              DILATE: ['p5.Image.filter', 'p5.filter'],\n              NORMAL: ['p5.Image.blend', 'p5.blend', 'p5.textStyle', 'p5.textureMode'],\n              RADIANS: ['p5.angleMode'],\n              DEGREES: ['p5.angleMode'],\n              LEFT: ['p5.textAlign'],\n              RIGHT: ['p5.textAlign'],\n              TOP: ['p5.textAlign'],\n              BOTTOM: ['p5.textAlign'],\n              BASELINE: ['p5.textAlign'],\n              ITALIC: ['p5.textStyle'],\n              BOLD: ['p5.textStyle'],\n              BOLDITALIC: ['p5.textStyle'],\n              IMAGE: ['p5.textureMode'],\n              CLAMP: ['p5.textureWrap'],\n              REPEAT: ['p5.textureWrap'],\n              MIRROR: ['p5.textureWrap']\n            }\n          };\n        },\n        {}\n      ],\n      2: [\n        function(_dereq_, module, exports) {\n          function _arrayWithHoles(arr) {\n            if (Array.isArray(arr)) return arr;\n          }\n\n          module.exports = _arrayWithHoles;\n        },\n        {}\n      ],\n      3: [\n        function(_dereq_, module, exports) {\n          function _arrayWithoutHoles(arr) {\n            if (Array.isArray(arr)) {\n              for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n                arr2[i] = arr[i];\n              }\n\n              return arr2;\n            }\n          }\n\n          module.exports = _arrayWithoutHoles;\n        },\n        {}\n      ],\n      4: [\n        function(_dereq_, module, exports) {\n          function _assertThisInitialized(self) {\n            if (self === void 0) {\n              throw new ReferenceError(\n                \"this hasn't been initialised - super() hasn't been called\"\n              );\n            }\n\n            return self;\n          }\n\n          module.exports = _assertThisInitialized;\n        },\n        {}\n      ],\n      5: [\n        function(_dereq_, module, exports) {\n          function _classCallCheck(instance, Constructor) {\n            if (!(instance instanceof Constructor)) {\n              throw new TypeError('Cannot call a class as a function');\n            }\n          }\n\n          module.exports = _classCallCheck;\n        },\n        {}\n      ],\n      6: [\n        function(_dereq_, module, exports) {\n          function _defineProperties(target, props) {\n            for (var i = 0; i < props.length; i++) {\n              var descriptor = props[i];\n              descriptor.enumerable = descriptor.enumerable || false;\n              descriptor.configurable = true;\n              if ('value' in descriptor) descriptor.writable = true;\n              Object.defineProperty(target, descriptor.key, descriptor);\n            }\n          }\n\n          function _createClass(Constructor, protoProps, staticProps) {\n            if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n            if (staticProps) _defineProperties(Constructor, staticProps);\n            return Constructor;\n          }\n\n          module.exports = _createClass;\n        },\n        {}\n      ],\n      7: [\n        function(_dereq_, module, exports) {\n          function _defineProperty(obj, key, value) {\n            if (key in obj) {\n              Object.defineProperty(obj, key, {\n                value: value,\n                enumerable: true,\n                configurable: true,\n                writable: true\n              });\n            } else {\n              obj[key] = value;\n            }\n\n            return obj;\n          }\n\n          module.exports = _defineProperty;\n        },\n        {}\n      ],\n      8: [\n        function(_dereq_, module, exports) {\n          function _getPrototypeOf(o) {\n            module.exports = _getPrototypeOf = Object.setPrototypeOf\n              ? Object.getPrototypeOf\n              : function _getPrototypeOf(o) {\n                  return o.__proto__ || Object.getPrototypeOf(o);\n                };\n            return _getPrototypeOf(o);\n          }\n\n          module.exports = _getPrototypeOf;\n        },\n        {}\n      ],\n      9: [\n        function(_dereq_, module, exports) {\n          var setPrototypeOf = _dereq_('./setPrototypeOf');\n\n          function _inherits(subClass, superClass) {\n            if (typeof superClass !== 'function' && superClass !== null) {\n              throw new TypeError('Super expression must either be null or a function');\n            }\n\n            subClass.prototype = Object.create(superClass && superClass.prototype, {\n              constructor: {\n                value: subClass,\n                writable: true,\n                configurable: true\n              }\n            });\n            if (superClass) setPrototypeOf(subClass, superClass);\n          }\n\n          module.exports = _inherits;\n        },\n        { './setPrototypeOf': 16 }\n      ],\n      10: [\n        function(_dereq_, module, exports) {\n          function _iterableToArray(iter) {\n            if (\n              Symbol.iterator in Object(iter) ||\n              Object.prototype.toString.call(iter) === '[object Arguments]'\n            )\n              return Array.from(iter);\n          }\n\n          module.exports = _iterableToArray;\n        },\n        {}\n      ],\n      11: [\n        function(_dereq_, module, exports) {\n          function _iterableToArrayLimit(arr, i) {\n            var _arr = [];\n            var _n = true;\n            var _d = false;\n            var _e = undefined;\n\n            try {\n              for (\n                var _i = arr[Symbol.iterator](), _s;\n                !(_n = (_s = _i.next()).done);\n                _n = true\n              ) {\n                _arr.push(_s.value);\n\n                if (i && _arr.length === i) break;\n              }\n            } catch (err) {\n              _d = true;\n              _e = err;\n            } finally {\n              try {\n                if (!_n && _i['return'] != null) _i['return']();\n              } finally {\n                if (_d) throw _e;\n              }\n            }\n\n            return _arr;\n          }\n\n          module.exports = _iterableToArrayLimit;\n        },\n        {}\n      ],\n      12: [\n        function(_dereq_, module, exports) {\n          function _nonIterableRest() {\n            throw new TypeError('Invalid attempt to destructure non-iterable instance');\n          }\n\n          module.exports = _nonIterableRest;\n        },\n        {}\n      ],\n      13: [\n        function(_dereq_, module, exports) {\n          function _nonIterableSpread() {\n            throw new TypeError('Invalid attempt to spread non-iterable instance');\n          }\n\n          module.exports = _nonIterableSpread;\n        },\n        {}\n      ],\n      14: [\n        function(_dereq_, module, exports) {\n          var defineProperty = _dereq_('./defineProperty');\n\n          function _objectSpread(target) {\n            for (var i = 1; i < arguments.length; i++) {\n              var source = arguments[i] != null ? arguments[i] : {};\n              var ownKeys = Object.keys(source);\n\n              if (typeof Object.getOwnPropertySymbols === 'function') {\n                ownKeys = ownKeys.concat(\n                  Object.getOwnPropertySymbols(source).filter(function(sym) {\n                    return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n                  })\n                );\n              }\n\n              ownKeys.forEach(function(key) {\n                defineProperty(target, key, source[key]);\n              });\n            }\n\n            return target;\n          }\n\n          module.exports = _objectSpread;\n        },\n        { './defineProperty': 7 }\n      ],\n      15: [\n        function(_dereq_, module, exports) {\n          var _typeof = _dereq_('../helpers/typeof');\n\n          var assertThisInitialized = _dereq_('./assertThisInitialized');\n\n          function _possibleConstructorReturn(self, call) {\n            if (call && (_typeof(call) === 'object' || typeof call === 'function')) {\n              return call;\n            }\n\n            return assertThisInitialized(self);\n          }\n\n          module.exports = _possibleConstructorReturn;\n        },\n        { '../helpers/typeof': 19, './assertThisInitialized': 4 }\n      ],\n      16: [\n        function(_dereq_, module, exports) {\n          function _setPrototypeOf(o, p) {\n            module.exports = _setPrototypeOf =\n              Object.setPrototypeOf ||\n              function _setPrototypeOf(o, p) {\n                o.__proto__ = p;\n                return o;\n              };\n\n            return _setPrototypeOf(o, p);\n          }\n\n          module.exports = _setPrototypeOf;\n        },\n        {}\n      ],\n      17: [\n        function(_dereq_, module, exports) {\n          var arrayWithHoles = _dereq_('./arrayWithHoles');\n\n          var iterableToArrayLimit = _dereq_('./iterableToArrayLimit');\n\n          var nonIterableRest = _dereq_('./nonIterableRest');\n\n          function _slicedToArray(arr, i) {\n            return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n          }\n\n          module.exports = _slicedToArray;\n        },\n        { './arrayWithHoles': 2, './iterableToArrayLimit': 11, './nonIterableRest': 12 }\n      ],\n      18: [\n        function(_dereq_, module, exports) {\n          var arrayWithoutHoles = _dereq_('./arrayWithoutHoles');\n\n          var iterableToArray = _dereq_('./iterableToArray');\n\n          var nonIterableSpread = _dereq_('./nonIterableSpread');\n\n          function _toConsumableArray(arr) {\n            return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();\n          }\n\n          module.exports = _toConsumableArray;\n        },\n        { './arrayWithoutHoles': 3, './iterableToArray': 10, './nonIterableSpread': 13 }\n      ],\n      19: [\n        function(_dereq_, module, exports) {\n          function _typeof2(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof2 = function _typeof2(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof2 = function _typeof2(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof2(obj);\n          }\n\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && _typeof2(Symbol.iterator) === 'symbol') {\n              module.exports = _typeof = function _typeof(obj) {\n                return _typeof2(obj);\n              };\n            } else {\n              module.exports = _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : _typeof2(obj);\n              };\n            }\n\n            return _typeof(obj);\n          }\n\n          module.exports = _typeof;\n        },\n        {}\n      ],\n      20: [\n        function(_dereq_, module, exports) {\n          'use strict';\n\n          exports.byteLength = byteLength;\n          exports.toByteArray = toByteArray;\n          exports.fromByteArray = fromByteArray;\n\n          var lookup = [];\n          var revLookup = [];\n          var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array;\n\n          var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n          for (var i = 0, len = code.length; i < len; ++i) {\n            lookup[i] = code[i];\n            revLookup[code.charCodeAt(i)] = i;\n          }\n\n          // Support decoding URL-safe base64 strings, as Node.js does.\n          // See: https://en.wikipedia.org/wiki/Base64#URL_applications\n          revLookup['-'.charCodeAt(0)] = 62;\n          revLookup['_'.charCodeAt(0)] = 63;\n\n          function getLens(b64) {\n            var len = b64.length;\n\n            if (len % 4 > 0) {\n              throw new Error('Invalid string. Length must be a multiple of 4');\n            }\n\n            // Trim off extra bytes after placeholder bytes are found\n            // See: https://github.com/beatgammit/base64-js/issues/42\n            var validLen = b64.indexOf('=');\n            if (validLen === -1) validLen = len;\n\n            var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;\n\n            return [validLen, placeHoldersLen];\n          }\n\n          // base64 is 4/3 + up to two characters of the original data\n          function byteLength(b64) {\n            var lens = getLens(b64);\n            var validLen = lens[0];\n            var placeHoldersLen = lens[1];\n            return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;\n          }\n\n          function _byteLength(b64, validLen, placeHoldersLen) {\n            return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;\n          }\n\n          function toByteArray(b64) {\n            var tmp;\n            var lens = getLens(b64);\n            var validLen = lens[0];\n            var placeHoldersLen = lens[1];\n\n            var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));\n\n            var curByte = 0;\n\n            // if there are placeholders, only get up to the last complete 4 chars\n            var len = placeHoldersLen > 0 ? validLen - 4 : validLen;\n\n            var i;\n            for (i = 0; i < len; i += 4) {\n              tmp =\n                (revLookup[b64.charCodeAt(i)] << 18) |\n                (revLookup[b64.charCodeAt(i + 1)] << 12) |\n                (revLookup[b64.charCodeAt(i + 2)] << 6) |\n                revLookup[b64.charCodeAt(i + 3)];\n              arr[curByte++] = (tmp >> 16) & 0xff;\n              arr[curByte++] = (tmp >> 8) & 0xff;\n              arr[curByte++] = tmp & 0xff;\n            }\n\n            if (placeHoldersLen === 2) {\n              tmp =\n                (revLookup[b64.charCodeAt(i)] << 2) |\n                (revLookup[b64.charCodeAt(i + 1)] >> 4);\n              arr[curByte++] = tmp & 0xff;\n            }\n\n            if (placeHoldersLen === 1) {\n              tmp =\n                (revLookup[b64.charCodeAt(i)] << 10) |\n                (revLookup[b64.charCodeAt(i + 1)] << 4) |\n                (revLookup[b64.charCodeAt(i + 2)] >> 2);\n              arr[curByte++] = (tmp >> 8) & 0xff;\n              arr[curByte++] = tmp & 0xff;\n            }\n\n            return arr;\n          }\n\n          function tripletToBase64(num) {\n            return (\n              lookup[(num >> 18) & 0x3f] +\n              lookup[(num >> 12) & 0x3f] +\n              lookup[(num >> 6) & 0x3f] +\n              lookup[num & 0x3f]\n            );\n          }\n\n          function encodeChunk(uint8, start, end) {\n            var tmp;\n            var output = [];\n            for (var i = start; i < end; i += 3) {\n              tmp =\n                ((uint8[i] << 16) & 0xff0000) +\n                ((uint8[i + 1] << 8) & 0xff00) +\n                (uint8[i + 2] & 0xff);\n              output.push(tripletToBase64(tmp));\n            }\n            return output.join('');\n          }\n\n          function fromByteArray(uint8) {\n            var tmp;\n            var len = uint8.length;\n            var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes\n            var parts = [];\n            var maxChunkLength = 16383; // must be multiple of 3\n\n            // go through the array every three bytes, we'll deal with trailing stuff later\n            for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n              parts.push(\n                encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength)\n              );\n            }\n\n            // pad the end with zeros, but make sure to not forget the extra bytes\n            if (extraBytes === 1) {\n              tmp = uint8[len - 1];\n              parts.push(lookup[tmp >> 2] + lookup[(tmp << 4) & 0x3f] + '==');\n            } else if (extraBytes === 2) {\n              tmp = (uint8[len - 2] << 8) + uint8[len - 1];\n              parts.push(\n                lookup[tmp >> 10] +\n                  lookup[(tmp >> 4) & 0x3f] +\n                  lookup[(tmp << 2) & 0x3f] +\n                  '='\n              );\n            }\n\n            return parts.join('');\n          }\n        },\n        {}\n      ],\n      21: [function(_dereq_, module, exports) {}, {}],\n      22: [\n        function(_dereq_, module, exports) {\n          (function(Buffer) {\n            /*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <https://feross.org>\n * @license  MIT\n */\n            /* eslint-disable no-proto */\n\n            'use strict';\n\n            var base64 = _dereq_('base64-js');\n            var ieee754 = _dereq_('ieee754');\n            var customInspectSymbol =\n              typeof Symbol === 'function' && typeof Symbol.for === 'function'\n                ? Symbol.for('nodejs.util.inspect.custom')\n                : null;\n\n            exports.Buffer = Buffer;\n            exports.SlowBuffer = SlowBuffer;\n            exports.INSPECT_MAX_BYTES = 50;\n\n            var K_MAX_LENGTH = 0x7fffffff;\n            exports.kMaxLength = K_MAX_LENGTH;\n\n            /**\n             * If `Buffer.TYPED_ARRAY_SUPPORT`:\n             *   === true    Use Uint8Array implementation (fastest)\n             *   === false   Print warning and recommend using `buffer` v4.x which has an Object\n             *               implementation (most compatible, even IE6)\n             *\n             * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n             * Opera 11.6+, iOS 4.2+.\n             *\n             * We report that the browser does not support typed arrays if the are not subclassable\n             * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n             * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n             * for __proto__ and has a buggy typed array implementation.\n             */\n            Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport();\n\n            if (\n              !Buffer.TYPED_ARRAY_SUPPORT &&\n              typeof console !== 'undefined' &&\n              typeof console.error === 'function'\n            ) {\n              console.error(\n                'This browser lacks typed array (Uint8Array) support which is required by ' +\n                  '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n              );\n            }\n\n            function typedArraySupport() {\n              // Can typed array instances can be augmented?\n              try {\n                var arr = new Uint8Array(1);\n                var proto = {\n                  foo: function() {\n                    return 42;\n                  }\n                };\n                Object.setPrototypeOf(proto, Uint8Array.prototype);\n                Object.setPrototypeOf(arr, proto);\n                return arr.foo() === 42;\n              } catch (e) {\n                return false;\n              }\n            }\n\n            Object.defineProperty(Buffer.prototype, 'parent', {\n              enumerable: true,\n              get: function() {\n                if (!Buffer.isBuffer(this)) return undefined;\n                return this.buffer;\n              }\n            });\n\n            Object.defineProperty(Buffer.prototype, 'offset', {\n              enumerable: true,\n              get: function() {\n                if (!Buffer.isBuffer(this)) return undefined;\n                return this.byteOffset;\n              }\n            });\n\n            function createBuffer(length) {\n              if (length > K_MAX_LENGTH) {\n                throw new RangeError(\n                  'The value \"' + length + '\" is invalid for option \"size\"'\n                );\n              }\n              // Return an augmented `Uint8Array` instance\n              var buf = new Uint8Array(length);\n              Object.setPrototypeOf(buf, Buffer.prototype);\n              return buf;\n            }\n\n            /**\n             * The Buffer constructor returns instances of `Uint8Array` that have their\n             * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n             * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n             * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n             * returns a single octet.\n             *\n             * The `Uint8Array` prototype remains unmodified.\n             */\n\n            function Buffer(arg, encodingOrOffset, length) {\n              // Common case.\n              if (typeof arg === 'number') {\n                if (typeof encodingOrOffset === 'string') {\n                  throw new TypeError(\n                    'The \"string\" argument must be of type string. Received type number'\n                  );\n                }\n                return allocUnsafe(arg);\n              }\n              return from(arg, encodingOrOffset, length);\n            }\n\n            // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n            if (\n              typeof Symbol !== 'undefined' &&\n              Symbol.species != null &&\n              Buffer[Symbol.species] === Buffer\n            ) {\n              Object.defineProperty(Buffer, Symbol.species, {\n                value: null,\n                configurable: true,\n                enumerable: false,\n                writable: false\n              });\n            }\n\n            Buffer.poolSize = 8192; // not used by this implementation\n\n            function from(value, encodingOrOffset, length) {\n              if (typeof value === 'string') {\n                return fromString(value, encodingOrOffset);\n              }\n\n              if (ArrayBuffer.isView(value)) {\n                return fromArrayLike(value);\n              }\n\n              if (value == null) {\n                throw new TypeError(\n                  'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n                    'or Array-like Object. Received type ' +\n                    typeof value\n                );\n              }\n\n              if (\n                isInstance(value, ArrayBuffer) ||\n                (value && isInstance(value.buffer, ArrayBuffer))\n              ) {\n                return fromArrayBuffer(value, encodingOrOffset, length);\n              }\n\n              if (typeof value === 'number') {\n                throw new TypeError(\n                  'The \"value\" argument must not be of type number. Received type number'\n                );\n              }\n\n              var valueOf = value.valueOf && value.valueOf();\n              if (valueOf != null && valueOf !== value) {\n                return Buffer.from(valueOf, encodingOrOffset, length);\n              }\n\n              var b = fromObject(value);\n              if (b) return b;\n\n              if (\n                typeof Symbol !== 'undefined' &&\n                Symbol.toPrimitive != null &&\n                typeof value[Symbol.toPrimitive] === 'function'\n              ) {\n                return Buffer.from(\n                  value[Symbol.toPrimitive]('string'),\n                  encodingOrOffset,\n                  length\n                );\n              }\n\n              throw new TypeError(\n                'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n                  'or Array-like Object. Received type ' +\n                  typeof value\n              );\n            }\n\n            /**\n             * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n             * if value is a number.\n             * Buffer.from(str[, encoding])\n             * Buffer.from(array)\n             * Buffer.from(buffer)\n             * Buffer.from(arrayBuffer[, byteOffset[, length]])\n             **/\n            Buffer.from = function(value, encodingOrOffset, length) {\n              return from(value, encodingOrOffset, length);\n            };\n\n            // Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n            // https://github.com/feross/buffer/pull/148\n            Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype);\n            Object.setPrototypeOf(Buffer, Uint8Array);\n\n            function assertSize(size) {\n              if (typeof size !== 'number') {\n                throw new TypeError('\"size\" argument must be of type number');\n              } else if (size < 0) {\n                throw new RangeError(\n                  'The value \"' + size + '\" is invalid for option \"size\"'\n                );\n              }\n            }\n\n            function alloc(size, fill, encoding) {\n              assertSize(size);\n              if (size <= 0) {\n                return createBuffer(size);\n              }\n              if (fill !== undefined) {\n                // Only pay attention to encoding if it's a string. This\n                // prevents accidentally sending in a number that would\n                // be interpretted as a start offset.\n                return typeof encoding === 'string'\n                  ? createBuffer(size).fill(fill, encoding)\n                  : createBuffer(size).fill(fill);\n              }\n              return createBuffer(size);\n            }\n\n            /**\n             * Creates a new filled Buffer instance.\n             * alloc(size[, fill[, encoding]])\n             **/\n            Buffer.alloc = function(size, fill, encoding) {\n              return alloc(size, fill, encoding);\n            };\n\n            function allocUnsafe(size) {\n              assertSize(size);\n              return createBuffer(size < 0 ? 0 : checked(size) | 0);\n            }\n\n            /**\n             * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n             * */\n            Buffer.allocUnsafe = function(size) {\n              return allocUnsafe(size);\n            };\n            /**\n             * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n             */\n            Buffer.allocUnsafeSlow = function(size) {\n              return allocUnsafe(size);\n            };\n\n            function fromString(string, encoding) {\n              if (typeof encoding !== 'string' || encoding === '') {\n                encoding = 'utf8';\n              }\n\n              if (!Buffer.isEncoding(encoding)) {\n                throw new TypeError('Unknown encoding: ' + encoding);\n              }\n\n              var length = byteLength(string, encoding) | 0;\n              var buf = createBuffer(length);\n\n              var actual = buf.write(string, encoding);\n\n              if (actual !== length) {\n                // Writing a hex string, for example, that contains invalid characters will\n                // cause everything after the first invalid character to be ignored. (e.g.\n                // 'abxxcd' will be treated as 'ab')\n                buf = buf.slice(0, actual);\n              }\n\n              return buf;\n            }\n\n            function fromArrayLike(array) {\n              var length = array.length < 0 ? 0 : checked(array.length) | 0;\n              var buf = createBuffer(length);\n              for (var i = 0; i < length; i += 1) {\n                buf[i] = array[i] & 255;\n              }\n              return buf;\n            }\n\n            function fromArrayBuffer(array, byteOffset, length) {\n              if (byteOffset < 0 || array.byteLength < byteOffset) {\n                throw new RangeError('\"offset\" is outside of buffer bounds');\n              }\n\n              if (array.byteLength < byteOffset + (length || 0)) {\n                throw new RangeError('\"length\" is outside of buffer bounds');\n              }\n\n              var buf;\n              if (byteOffset === undefined && length === undefined) {\n                buf = new Uint8Array(array);\n              } else if (length === undefined) {\n                buf = new Uint8Array(array, byteOffset);\n              } else {\n                buf = new Uint8Array(array, byteOffset, length);\n              }\n\n              // Return an augmented `Uint8Array` instance\n              Object.setPrototypeOf(buf, Buffer.prototype);\n\n              return buf;\n            }\n\n            function fromObject(obj) {\n              if (Buffer.isBuffer(obj)) {\n                var len = checked(obj.length) | 0;\n                var buf = createBuffer(len);\n\n                if (buf.length === 0) {\n                  return buf;\n                }\n\n                obj.copy(buf, 0, 0, len);\n                return buf;\n              }\n\n              if (obj.length !== undefined) {\n                if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n                  return createBuffer(0);\n                }\n                return fromArrayLike(obj);\n              }\n\n              if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n                return fromArrayLike(obj.data);\n              }\n            }\n\n            function checked(length) {\n              // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n              // length is NaN (which is otherwise coerced to zero.)\n              if (length >= K_MAX_LENGTH) {\n                throw new RangeError(\n                  'Attempt to allocate Buffer larger than maximum ' +\n                    'size: 0x' +\n                    K_MAX_LENGTH.toString(16) +\n                    ' bytes'\n                );\n              }\n              return length | 0;\n            }\n\n            function SlowBuffer(length) {\n              if (+length != length) {\n                // eslint-disable-line eqeqeq\n                length = 0;\n              }\n              return Buffer.alloc(+length);\n            }\n\n            Buffer.isBuffer = function isBuffer(b) {\n              return b != null && b._isBuffer === true && b !== Buffer.prototype; // so Buffer.isBuffer(Buffer.prototype) will be false\n            };\n\n            Buffer.compare = function compare(a, b) {\n              if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength);\n              if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength);\n              if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n                throw new TypeError(\n                  'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n                );\n              }\n\n              if (a === b) return 0;\n\n              var x = a.length;\n              var y = b.length;\n\n              for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n                if (a[i] !== b[i]) {\n                  x = a[i];\n                  y = b[i];\n                  break;\n                }\n              }\n\n              if (x < y) return -1;\n              if (y < x) return 1;\n              return 0;\n            };\n\n            Buffer.isEncoding = function isEncoding(encoding) {\n              switch (String(encoding).toLowerCase()) {\n                case 'hex':\n                case 'utf8':\n                case 'utf-8':\n                case 'ascii':\n                case 'latin1':\n                case 'binary':\n                case 'base64':\n                case 'ucs2':\n                case 'ucs-2':\n                case 'utf16le':\n                case 'utf-16le':\n                  return true;\n                default:\n                  return false;\n              }\n            };\n\n            Buffer.concat = function concat(list, length) {\n              if (!Array.isArray(list)) {\n                throw new TypeError('\"list\" argument must be an Array of Buffers');\n              }\n\n              if (list.length === 0) {\n                return Buffer.alloc(0);\n              }\n\n              var i;\n              if (length === undefined) {\n                length = 0;\n                for (i = 0; i < list.length; ++i) {\n                  length += list[i].length;\n                }\n              }\n\n              var buffer = Buffer.allocUnsafe(length);\n              var pos = 0;\n              for (i = 0; i < list.length; ++i) {\n                var buf = list[i];\n                if (isInstance(buf, Uint8Array)) {\n                  buf = Buffer.from(buf);\n                }\n                if (!Buffer.isBuffer(buf)) {\n                  throw new TypeError('\"list\" argument must be an Array of Buffers');\n                }\n                buf.copy(buffer, pos);\n                pos += buf.length;\n              }\n              return buffer;\n            };\n\n            function byteLength(string, encoding) {\n              if (Buffer.isBuffer(string)) {\n                return string.length;\n              }\n              if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n                return string.byteLength;\n              }\n              if (typeof string !== 'string') {\n                throw new TypeError(\n                  'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n                    'Received type ' +\n                    typeof string\n                );\n              }\n\n              var len = string.length;\n              var mustMatch = arguments.length > 2 && arguments[2] === true;\n              if (!mustMatch && len === 0) return 0;\n\n              // Use a for loop to avoid recursion\n              var loweredCase = false;\n              for (;;) {\n                switch (encoding) {\n                  case 'ascii':\n                  case 'latin1':\n                  case 'binary':\n                    return len;\n                  case 'utf8':\n                  case 'utf-8':\n                    return utf8ToBytes(string).length;\n                  case 'ucs2':\n                  case 'ucs-2':\n                  case 'utf16le':\n                  case 'utf-16le':\n                    return len * 2;\n                  case 'hex':\n                    return len >>> 1;\n                  case 'base64':\n                    return base64ToBytes(string).length;\n                  default:\n                    if (loweredCase) {\n                      return mustMatch ? -1 : utf8ToBytes(string).length; // assume utf8\n                    }\n                    encoding = ('' + encoding).toLowerCase();\n                    loweredCase = true;\n                }\n              }\n            }\n            Buffer.byteLength = byteLength;\n\n            function slowToString(encoding, start, end) {\n              var loweredCase = false;\n\n              // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n              // property of a typed array.\n\n              // This behaves neither like String nor Uint8Array in that we set start/end\n              // to their upper/lower bounds if the value passed is out of range.\n              // undefined is handled specially as per ECMA-262 6th Edition,\n              // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n              if (start === undefined || start < 0) {\n                start = 0;\n              }\n              // Return early if start > this.length. Done here to prevent potential uint32\n              // coercion fail below.\n              if (start > this.length) {\n                return '';\n              }\n\n              if (end === undefined || end > this.length) {\n                end = this.length;\n              }\n\n              if (end <= 0) {\n                return '';\n              }\n\n              // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n              end >>>= 0;\n              start >>>= 0;\n\n              if (end <= start) {\n                return '';\n              }\n\n              if (!encoding) encoding = 'utf8';\n\n              while (true) {\n                switch (encoding) {\n                  case 'hex':\n                    return hexSlice(this, start, end);\n\n                  case 'utf8':\n                  case 'utf-8':\n                    return utf8Slice(this, start, end);\n\n                  case 'ascii':\n                    return asciiSlice(this, start, end);\n\n                  case 'latin1':\n                  case 'binary':\n                    return latin1Slice(this, start, end);\n\n                  case 'base64':\n                    return base64Slice(this, start, end);\n\n                  case 'ucs2':\n                  case 'ucs-2':\n                  case 'utf16le':\n                  case 'utf-16le':\n                    return utf16leSlice(this, start, end);\n\n                  default:\n                    if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding);\n                    encoding = (encoding + '').toLowerCase();\n                    loweredCase = true;\n                }\n              }\n            }\n\n            // This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n            // to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n            // reliably in a browserify context because there could be multiple different\n            // copies of the 'buffer' package in use. This method works even for Buffer\n            // instances that were created from another copy of the `buffer` package.\n            // See: https://github.com/feross/buffer/issues/154\n            Buffer.prototype._isBuffer = true;\n\n            function swap(b, n, m) {\n              var i = b[n];\n              b[n] = b[m];\n              b[m] = i;\n            }\n\n            Buffer.prototype.swap16 = function swap16() {\n              var len = this.length;\n              if (len % 2 !== 0) {\n                throw new RangeError('Buffer size must be a multiple of 16-bits');\n              }\n              for (var i = 0; i < len; i += 2) {\n                swap(this, i, i + 1);\n              }\n              return this;\n            };\n\n            Buffer.prototype.swap32 = function swap32() {\n              var len = this.length;\n              if (len % 4 !== 0) {\n                throw new RangeError('Buffer size must be a multiple of 32-bits');\n              }\n              for (var i = 0; i < len; i += 4) {\n                swap(this, i, i + 3);\n                swap(this, i + 1, i + 2);\n              }\n              return this;\n            };\n\n            Buffer.prototype.swap64 = function swap64() {\n              var len = this.length;\n              if (len % 8 !== 0) {\n                throw new RangeError('Buffer size must be a multiple of 64-bits');\n              }\n              for (var i = 0; i < len; i += 8) {\n                swap(this, i, i + 7);\n                swap(this, i + 1, i + 6);\n                swap(this, i + 2, i + 5);\n                swap(this, i + 3, i + 4);\n              }\n              return this;\n            };\n\n            Buffer.prototype.toString = function toString() {\n              var length = this.length;\n              if (length === 0) return '';\n              if (arguments.length === 0) return utf8Slice(this, 0, length);\n              return slowToString.apply(this, arguments);\n            };\n\n            Buffer.prototype.toLocaleString = Buffer.prototype.toString;\n\n            Buffer.prototype.equals = function equals(b) {\n              if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer');\n              if (this === b) return true;\n              return Buffer.compare(this, b) === 0;\n            };\n\n            Buffer.prototype.inspect = function inspect() {\n              var str = '';\n              var max = exports.INSPECT_MAX_BYTES;\n              str = this.toString('hex', 0, max)\n                .replace(/(.{2})/g, '$1 ')\n                .trim();\n              if (this.length > max) str += ' ... ';\n              return '<Buffer ' + str + '>';\n            };\n            if (customInspectSymbol) {\n              Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect;\n            }\n\n            Buffer.prototype.compare = function compare(\n              target,\n              start,\n              end,\n              thisStart,\n              thisEnd\n            ) {\n              if (isInstance(target, Uint8Array)) {\n                target = Buffer.from(target, target.offset, target.byteLength);\n              }\n              if (!Buffer.isBuffer(target)) {\n                throw new TypeError(\n                  'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n                    'Received type ' +\n                    typeof target\n                );\n              }\n\n              if (start === undefined) {\n                start = 0;\n              }\n              if (end === undefined) {\n                end = target ? target.length : 0;\n              }\n              if (thisStart === undefined) {\n                thisStart = 0;\n              }\n              if (thisEnd === undefined) {\n                thisEnd = this.length;\n              }\n\n              if (\n                start < 0 ||\n                end > target.length ||\n                thisStart < 0 ||\n                thisEnd > this.length\n              ) {\n                throw new RangeError('out of range index');\n              }\n\n              if (thisStart >= thisEnd && start >= end) {\n                return 0;\n              }\n              if (thisStart >= thisEnd) {\n                return -1;\n              }\n              if (start >= end) {\n                return 1;\n              }\n\n              start >>>= 0;\n              end >>>= 0;\n              thisStart >>>= 0;\n              thisEnd >>>= 0;\n\n              if (this === target) return 0;\n\n              var x = thisEnd - thisStart;\n              var y = end - start;\n              var len = Math.min(x, y);\n\n              var thisCopy = this.slice(thisStart, thisEnd);\n              var targetCopy = target.slice(start, end);\n\n              for (var i = 0; i < len; ++i) {\n                if (thisCopy[i] !== targetCopy[i]) {\n                  x = thisCopy[i];\n                  y = targetCopy[i];\n                  break;\n                }\n              }\n\n              if (x < y) return -1;\n              if (y < x) return 1;\n              return 0;\n            };\n\n            // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n            // OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n            //\n            // Arguments:\n            // - buffer - a Buffer to search\n            // - val - a string, Buffer, or number\n            // - byteOffset - an index into `buffer`; will be clamped to an int32\n            // - encoding - an optional encoding, relevant is val is a string\n            // - dir - true for indexOf, false for lastIndexOf\n            function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {\n              // Empty buffer means no match\n              if (buffer.length === 0) return -1;\n\n              // Normalize byteOffset\n              if (typeof byteOffset === 'string') {\n                encoding = byteOffset;\n                byteOffset = 0;\n              } else if (byteOffset > 0x7fffffff) {\n                byteOffset = 0x7fffffff;\n              } else if (byteOffset < -0x80000000) {\n                byteOffset = -0x80000000;\n              }\n              byteOffset = +byteOffset; // Coerce to Number.\n              if (numberIsNaN(byteOffset)) {\n                // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n                byteOffset = dir ? 0 : buffer.length - 1;\n              }\n\n              // Normalize byteOffset: negative offsets start from the end of the buffer\n              if (byteOffset < 0) byteOffset = buffer.length + byteOffset;\n              if (byteOffset >= buffer.length) {\n                if (dir) return -1;\n                else byteOffset = buffer.length - 1;\n              } else if (byteOffset < 0) {\n                if (dir) byteOffset = 0;\n                else return -1;\n              }\n\n              // Normalize val\n              if (typeof val === 'string') {\n                val = Buffer.from(val, encoding);\n              }\n\n              // Finally, search either indexOf (if dir is true) or lastIndexOf\n              if (Buffer.isBuffer(val)) {\n                // Special case: looking for empty string/buffer always fails\n                if (val.length === 0) {\n                  return -1;\n                }\n                return arrayIndexOf(buffer, val, byteOffset, encoding, dir);\n              } else if (typeof val === 'number') {\n                val = val & 0xff; // Search for a byte value [0-255]\n                if (typeof Uint8Array.prototype.indexOf === 'function') {\n                  if (dir) {\n                    return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);\n                  } else {\n                    return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);\n                  }\n                }\n                return arrayIndexOf(buffer, [val], byteOffset, encoding, dir);\n              }\n\n              throw new TypeError('val must be string, number or Buffer');\n            }\n\n            function arrayIndexOf(arr, val, byteOffset, encoding, dir) {\n              var indexSize = 1;\n              var arrLength = arr.length;\n              var valLength = val.length;\n\n              if (encoding !== undefined) {\n                encoding = String(encoding).toLowerCase();\n                if (\n                  encoding === 'ucs2' ||\n                  encoding === 'ucs-2' ||\n                  encoding === 'utf16le' ||\n                  encoding === 'utf-16le'\n                ) {\n                  if (arr.length < 2 || val.length < 2) {\n                    return -1;\n                  }\n                  indexSize = 2;\n                  arrLength /= 2;\n                  valLength /= 2;\n                  byteOffset /= 2;\n                }\n              }\n\n              function read(buf, i) {\n                if (indexSize === 1) {\n                  return buf[i];\n                } else {\n                  return buf.readUInt16BE(i * indexSize);\n                }\n              }\n\n              var i;\n              if (dir) {\n                var foundIndex = -1;\n                for (i = byteOffset; i < arrLength; i++) {\n                  if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n                    if (foundIndex === -1) foundIndex = i;\n                    if (i - foundIndex + 1 === valLength) return foundIndex * indexSize;\n                  } else {\n                    if (foundIndex !== -1) i -= i - foundIndex;\n                    foundIndex = -1;\n                  }\n                }\n              } else {\n                if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;\n                for (i = byteOffset; i >= 0; i--) {\n                  var found = true;\n                  for (var j = 0; j < valLength; j++) {\n                    if (read(arr, i + j) !== read(val, j)) {\n                      found = false;\n                      break;\n                    }\n                  }\n                  if (found) return i;\n                }\n              }\n\n              return -1;\n            }\n\n            Buffer.prototype.includes = function includes(val, byteOffset, encoding) {\n              return this.indexOf(val, byteOffset, encoding) !== -1;\n            };\n\n            Buffer.prototype.indexOf = function indexOf(val, byteOffset, encoding) {\n              return bidirectionalIndexOf(this, val, byteOffset, encoding, true);\n            };\n\n            Buffer.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {\n              return bidirectionalIndexOf(this, val, byteOffset, encoding, false);\n            };\n\n            function hexWrite(buf, string, offset, length) {\n              offset = Number(offset) || 0;\n              var remaining = buf.length - offset;\n              if (!length) {\n                length = remaining;\n              } else {\n                length = Number(length);\n                if (length > remaining) {\n                  length = remaining;\n                }\n              }\n\n              var strLen = string.length;\n\n              if (length > strLen / 2) {\n                length = strLen / 2;\n              }\n              for (var i = 0; i < length; ++i) {\n                var parsed = parseInt(string.substr(i * 2, 2), 16);\n                if (numberIsNaN(parsed)) return i;\n                buf[offset + i] = parsed;\n              }\n              return i;\n            }\n\n            function utf8Write(buf, string, offset, length) {\n              return blitBuffer(\n                utf8ToBytes(string, buf.length - offset),\n                buf,\n                offset,\n                length\n              );\n            }\n\n            function asciiWrite(buf, string, offset, length) {\n              return blitBuffer(asciiToBytes(string), buf, offset, length);\n            }\n\n            function latin1Write(buf, string, offset, length) {\n              return asciiWrite(buf, string, offset, length);\n            }\n\n            function base64Write(buf, string, offset, length) {\n              return blitBuffer(base64ToBytes(string), buf, offset, length);\n            }\n\n            function ucs2Write(buf, string, offset, length) {\n              return blitBuffer(\n                utf16leToBytes(string, buf.length - offset),\n                buf,\n                offset,\n                length\n              );\n            }\n\n            Buffer.prototype.write = function write(string, offset, length, encoding) {\n              // Buffer#write(string)\n              if (offset === undefined) {\n                encoding = 'utf8';\n                length = this.length;\n                offset = 0;\n                // Buffer#write(string, encoding)\n              } else if (length === undefined && typeof offset === 'string') {\n                encoding = offset;\n                length = this.length;\n                offset = 0;\n                // Buffer#write(string, offset[, length][, encoding])\n              } else if (isFinite(offset)) {\n                offset = offset >>> 0;\n                if (isFinite(length)) {\n                  length = length >>> 0;\n                  if (encoding === undefined) encoding = 'utf8';\n                } else {\n                  encoding = length;\n                  length = undefined;\n                }\n              } else {\n                throw new Error(\n                  'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n                );\n              }\n\n              var remaining = this.length - offset;\n              if (length === undefined || length > remaining) length = remaining;\n\n              if (\n                (string.length > 0 && (length < 0 || offset < 0)) ||\n                offset > this.length\n              ) {\n                throw new RangeError('Attempt to write outside buffer bounds');\n              }\n\n              if (!encoding) encoding = 'utf8';\n\n              var loweredCase = false;\n              for (;;) {\n                switch (encoding) {\n                  case 'hex':\n                    return hexWrite(this, string, offset, length);\n\n                  case 'utf8':\n                  case 'utf-8':\n                    return utf8Write(this, string, offset, length);\n\n                  case 'ascii':\n                    return asciiWrite(this, string, offset, length);\n\n                  case 'latin1':\n                  case 'binary':\n                    return latin1Write(this, string, offset, length);\n\n                  case 'base64':\n                    // Warning: maxLength not taken into account in base64Write\n                    return base64Write(this, string, offset, length);\n\n                  case 'ucs2':\n                  case 'ucs-2':\n                  case 'utf16le':\n                  case 'utf-16le':\n                    return ucs2Write(this, string, offset, length);\n\n                  default:\n                    if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding);\n                    encoding = ('' + encoding).toLowerCase();\n                    loweredCase = true;\n                }\n              }\n            };\n\n            Buffer.prototype.toJSON = function toJSON() {\n              return {\n                type: 'Buffer',\n                data: Array.prototype.slice.call(this._arr || this, 0)\n              };\n            };\n\n            function base64Slice(buf, start, end) {\n              if (start === 0 && end === buf.length) {\n                return base64.fromByteArray(buf);\n              } else {\n                return base64.fromByteArray(buf.slice(start, end));\n              }\n            }\n\n            function utf8Slice(buf, start, end) {\n              end = Math.min(buf.length, end);\n              var res = [];\n\n              var i = start;\n              while (i < end) {\n                var firstByte = buf[i];\n                var codePoint = null;\n                var bytesPerSequence =\n                  firstByte > 0xef ? 4 : firstByte > 0xdf ? 3 : firstByte > 0xbf ? 2 : 1;\n\n                if (i + bytesPerSequence <= end) {\n                  var secondByte, thirdByte, fourthByte, tempCodePoint;\n\n                  switch (bytesPerSequence) {\n                    case 1:\n                      if (firstByte < 0x80) {\n                        codePoint = firstByte;\n                      }\n                      break;\n                    case 2:\n                      secondByte = buf[i + 1];\n                      if ((secondByte & 0xc0) === 0x80) {\n                        tempCodePoint = ((firstByte & 0x1f) << 0x6) | (secondByte & 0x3f);\n                        if (tempCodePoint > 0x7f) {\n                          codePoint = tempCodePoint;\n                        }\n                      }\n                      break;\n                    case 3:\n                      secondByte = buf[i + 1];\n                      thirdByte = buf[i + 2];\n                      if ((secondByte & 0xc0) === 0x80 && (thirdByte & 0xc0) === 0x80) {\n                        tempCodePoint =\n                          ((firstByte & 0xf) << 0xc) |\n                          ((secondByte & 0x3f) << 0x6) |\n                          (thirdByte & 0x3f);\n                        if (\n                          tempCodePoint > 0x7ff &&\n                          (tempCodePoint < 0xd800 || tempCodePoint > 0xdfff)\n                        ) {\n                          codePoint = tempCodePoint;\n                        }\n                      }\n                      break;\n                    case 4:\n                      secondByte = buf[i + 1];\n                      thirdByte = buf[i + 2];\n                      fourthByte = buf[i + 3];\n                      if (\n                        (secondByte & 0xc0) === 0x80 &&\n                        (thirdByte & 0xc0) === 0x80 &&\n                        (fourthByte & 0xc0) === 0x80\n                      ) {\n                        tempCodePoint =\n                          ((firstByte & 0xf) << 0x12) |\n                          ((secondByte & 0x3f) << 0xc) |\n                          ((thirdByte & 0x3f) << 0x6) |\n                          (fourthByte & 0x3f);\n                        if (tempCodePoint > 0xffff && tempCodePoint < 0x110000) {\n                          codePoint = tempCodePoint;\n                        }\n                      }\n                  }\n                }\n\n                if (codePoint === null) {\n                  // we did not generate a valid codePoint so insert a\n                  // replacement char (U+FFFD) and advance only 1 byte\n                  codePoint = 0xfffd;\n                  bytesPerSequence = 1;\n                } else if (codePoint > 0xffff) {\n                  // encode to utf16 (surrogate pair dance)\n                  codePoint -= 0x10000;\n                  res.push(((codePoint >>> 10) & 0x3ff) | 0xd800);\n                  codePoint = 0xdc00 | (codePoint & 0x3ff);\n                }\n\n                res.push(codePoint);\n                i += bytesPerSequence;\n              }\n\n              return decodeCodePointsArray(res);\n            }\n\n            // Based on http://stackoverflow.com/a/22747272/680742, the browser with\n            // the lowest limit is Chrome, with 0x10000 args.\n            // We go 1 magnitude less, for safety\n            var MAX_ARGUMENTS_LENGTH = 0x1000;\n\n            function decodeCodePointsArray(codePoints) {\n              var len = codePoints.length;\n              if (len <= MAX_ARGUMENTS_LENGTH) {\n                return String.fromCharCode.apply(String, codePoints); // avoid extra slice()\n              }\n\n              // Decode in chunks to avoid \"call stack size exceeded\".\n              var res = '';\n              var i = 0;\n              while (i < len) {\n                res += String.fromCharCode.apply(\n                  String,\n                  codePoints.slice(i, (i += MAX_ARGUMENTS_LENGTH))\n                );\n              }\n              return res;\n            }\n\n            function asciiSlice(buf, start, end) {\n              var ret = '';\n              end = Math.min(buf.length, end);\n\n              for (var i = start; i < end; ++i) {\n                ret += String.fromCharCode(buf[i] & 0x7f);\n              }\n              return ret;\n            }\n\n            function latin1Slice(buf, start, end) {\n              var ret = '';\n              end = Math.min(buf.length, end);\n\n              for (var i = start; i < end; ++i) {\n                ret += String.fromCharCode(buf[i]);\n              }\n              return ret;\n            }\n\n            function hexSlice(buf, start, end) {\n              var len = buf.length;\n\n              if (!start || start < 0) start = 0;\n              if (!end || end < 0 || end > len) end = len;\n\n              var out = '';\n              for (var i = start; i < end; ++i) {\n                out += hexSliceLookupTable[buf[i]];\n              }\n              return out;\n            }\n\n            function utf16leSlice(buf, start, end) {\n              var bytes = buf.slice(start, end);\n              var res = '';\n              for (var i = 0; i < bytes.length; i += 2) {\n                res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);\n              }\n              return res;\n            }\n\n            Buffer.prototype.slice = function slice(start, end) {\n              var len = this.length;\n              start = ~~start;\n              end = end === undefined ? len : ~~end;\n\n              if (start < 0) {\n                start += len;\n                if (start < 0) start = 0;\n              } else if (start > len) {\n                start = len;\n              }\n\n              if (end < 0) {\n                end += len;\n                if (end < 0) end = 0;\n              } else if (end > len) {\n                end = len;\n              }\n\n              if (end < start) end = start;\n\n              var newBuf = this.subarray(start, end);\n              // Return an augmented `Uint8Array` instance\n              Object.setPrototypeOf(newBuf, Buffer.prototype);\n\n              return newBuf;\n            };\n\n            /*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\n            function checkOffset(offset, ext, length) {\n              if (offset % 1 !== 0 || offset < 0)\n                throw new RangeError('offset is not uint');\n              if (offset + ext > length)\n                throw new RangeError('Trying to access beyond buffer length');\n            }\n\n            Buffer.prototype.readUIntLE = function readUIntLE(\n              offset,\n              byteLength,\n              noAssert\n            ) {\n              offset = offset >>> 0;\n              byteLength = byteLength >>> 0;\n              if (!noAssert) checkOffset(offset, byteLength, this.length);\n\n              var val = this[offset];\n              var mul = 1;\n              var i = 0;\n              while (++i < byteLength && (mul *= 0x100)) {\n                val += this[offset + i] * mul;\n              }\n\n              return val;\n            };\n\n            Buffer.prototype.readUIntBE = function readUIntBE(\n              offset,\n              byteLength,\n              noAssert\n            ) {\n              offset = offset >>> 0;\n              byteLength = byteLength >>> 0;\n              if (!noAssert) {\n                checkOffset(offset, byteLength, this.length);\n              }\n\n              var val = this[offset + --byteLength];\n              var mul = 1;\n              while (byteLength > 0 && (mul *= 0x100)) {\n                val += this[offset + --byteLength] * mul;\n              }\n\n              return val;\n            };\n\n            Buffer.prototype.readUInt8 = function readUInt8(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 1, this.length);\n              return this[offset];\n            };\n\n            Buffer.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 2, this.length);\n              return this[offset] | (this[offset + 1] << 8);\n            };\n\n            Buffer.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 2, this.length);\n              return (this[offset] << 8) | this[offset + 1];\n            };\n\n            Buffer.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 4, this.length);\n\n              return (\n                (this[offset] | (this[offset + 1] << 8) | (this[offset + 2] << 16)) +\n                this[offset + 3] * 0x1000000\n              );\n            };\n\n            Buffer.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 4, this.length);\n\n              return (\n                this[offset] * 0x1000000 +\n                ((this[offset + 1] << 16) | (this[offset + 2] << 8) | this[offset + 3])\n              );\n            };\n\n            Buffer.prototype.readIntLE = function readIntLE(offset, byteLength, noAssert) {\n              offset = offset >>> 0;\n              byteLength = byteLength >>> 0;\n              if (!noAssert) checkOffset(offset, byteLength, this.length);\n\n              var val = this[offset];\n              var mul = 1;\n              var i = 0;\n              while (++i < byteLength && (mul *= 0x100)) {\n                val += this[offset + i] * mul;\n              }\n              mul *= 0x80;\n\n              if (val >= mul) val -= Math.pow(2, 8 * byteLength);\n\n              return val;\n            };\n\n            Buffer.prototype.readIntBE = function readIntBE(offset, byteLength, noAssert) {\n              offset = offset >>> 0;\n              byteLength = byteLength >>> 0;\n              if (!noAssert) checkOffset(offset, byteLength, this.length);\n\n              var i = byteLength;\n              var mul = 1;\n              var val = this[offset + --i];\n              while (i > 0 && (mul *= 0x100)) {\n                val += this[offset + --i] * mul;\n              }\n              mul *= 0x80;\n\n              if (val >= mul) val -= Math.pow(2, 8 * byteLength);\n\n              return val;\n            };\n\n            Buffer.prototype.readInt8 = function readInt8(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 1, this.length);\n              if (!(this[offset] & 0x80)) return this[offset];\n              return (0xff - this[offset] + 1) * -1;\n            };\n\n            Buffer.prototype.readInt16LE = function readInt16LE(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 2, this.length);\n              var val = this[offset] | (this[offset + 1] << 8);\n              return val & 0x8000 ? val | 0xffff0000 : val;\n            };\n\n            Buffer.prototype.readInt16BE = function readInt16BE(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 2, this.length);\n              var val = this[offset + 1] | (this[offset] << 8);\n              return val & 0x8000 ? val | 0xffff0000 : val;\n            };\n\n            Buffer.prototype.readInt32LE = function readInt32LE(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 4, this.length);\n\n              return (\n                this[offset] |\n                (this[offset + 1] << 8) |\n                (this[offset + 2] << 16) |\n                (this[offset + 3] << 24)\n              );\n            };\n\n            Buffer.prototype.readInt32BE = function readInt32BE(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 4, this.length);\n\n              return (\n                (this[offset] << 24) |\n                (this[offset + 1] << 16) |\n                (this[offset + 2] << 8) |\n                this[offset + 3]\n              );\n            };\n\n            Buffer.prototype.readFloatLE = function readFloatLE(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 4, this.length);\n              return ieee754.read(this, offset, true, 23, 4);\n            };\n\n            Buffer.prototype.readFloatBE = function readFloatBE(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 4, this.length);\n              return ieee754.read(this, offset, false, 23, 4);\n            };\n\n            Buffer.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 8, this.length);\n              return ieee754.read(this, offset, true, 52, 8);\n            };\n\n            Buffer.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {\n              offset = offset >>> 0;\n              if (!noAssert) checkOffset(offset, 8, this.length);\n              return ieee754.read(this, offset, false, 52, 8);\n            };\n\n            function checkInt(buf, value, offset, ext, max, min) {\n              if (!Buffer.isBuffer(buf))\n                throw new TypeError('\"buffer\" argument must be a Buffer instance');\n              if (value > max || value < min)\n                throw new RangeError('\"value\" argument is out of bounds');\n              if (offset + ext > buf.length) throw new RangeError('Index out of range');\n            }\n\n            Buffer.prototype.writeUIntLE = function writeUIntLE(\n              value,\n              offset,\n              byteLength,\n              noAssert\n            ) {\n              value = +value;\n              offset = offset >>> 0;\n              byteLength = byteLength >>> 0;\n              if (!noAssert) {\n                var maxBytes = Math.pow(2, 8 * byteLength) - 1;\n                checkInt(this, value, offset, byteLength, maxBytes, 0);\n              }\n\n              var mul = 1;\n              var i = 0;\n              this[offset] = value & 0xff;\n              while (++i < byteLength && (mul *= 0x100)) {\n                this[offset + i] = (value / mul) & 0xff;\n              }\n\n              return offset + byteLength;\n            };\n\n            Buffer.prototype.writeUIntBE = function writeUIntBE(\n              value,\n              offset,\n              byteLength,\n              noAssert\n            ) {\n              value = +value;\n              offset = offset >>> 0;\n              byteLength = byteLength >>> 0;\n              if (!noAssert) {\n                var maxBytes = Math.pow(2, 8 * byteLength) - 1;\n                checkInt(this, value, offset, byteLength, maxBytes, 0);\n              }\n\n              var i = byteLength - 1;\n              var mul = 1;\n              this[offset + i] = value & 0xff;\n              while (--i >= 0 && (mul *= 0x100)) {\n                this[offset + i] = (value / mul) & 0xff;\n              }\n\n              return offset + byteLength;\n            };\n\n            Buffer.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0);\n              this[offset] = value & 0xff;\n              return offset + 1;\n            };\n\n            Buffer.prototype.writeUInt16LE = function writeUInt16LE(\n              value,\n              offset,\n              noAssert\n            ) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);\n              this[offset] = value & 0xff;\n              this[offset + 1] = value >>> 8;\n              return offset + 2;\n            };\n\n            Buffer.prototype.writeUInt16BE = function writeUInt16BE(\n              value,\n              offset,\n              noAssert\n            ) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);\n              this[offset] = value >>> 8;\n              this[offset + 1] = value & 0xff;\n              return offset + 2;\n            };\n\n            Buffer.prototype.writeUInt32LE = function writeUInt32LE(\n              value,\n              offset,\n              noAssert\n            ) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);\n              this[offset + 3] = value >>> 24;\n              this[offset + 2] = value >>> 16;\n              this[offset + 1] = value >>> 8;\n              this[offset] = value & 0xff;\n              return offset + 4;\n            };\n\n            Buffer.prototype.writeUInt32BE = function writeUInt32BE(\n              value,\n              offset,\n              noAssert\n            ) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);\n              this[offset] = value >>> 24;\n              this[offset + 1] = value >>> 16;\n              this[offset + 2] = value >>> 8;\n              this[offset + 3] = value & 0xff;\n              return offset + 4;\n            };\n\n            Buffer.prototype.writeIntLE = function writeIntLE(\n              value,\n              offset,\n              byteLength,\n              noAssert\n            ) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) {\n                var limit = Math.pow(2, 8 * byteLength - 1);\n\n                checkInt(this, value, offset, byteLength, limit - 1, -limit);\n              }\n\n              var i = 0;\n              var mul = 1;\n              var sub = 0;\n              this[offset] = value & 0xff;\n              while (++i < byteLength && (mul *= 0x100)) {\n                if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n                  sub = 1;\n                }\n                this[offset + i] = (((value / mul) >> 0) - sub) & 0xff;\n              }\n\n              return offset + byteLength;\n            };\n\n            Buffer.prototype.writeIntBE = function writeIntBE(\n              value,\n              offset,\n              byteLength,\n              noAssert\n            ) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) {\n                var limit = Math.pow(2, 8 * byteLength - 1);\n\n                checkInt(this, value, offset, byteLength, limit - 1, -limit);\n              }\n\n              var i = byteLength - 1;\n              var mul = 1;\n              var sub = 0;\n              this[offset + i] = value & 0xff;\n              while (--i >= 0 && (mul *= 0x100)) {\n                if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n                  sub = 1;\n                }\n                this[offset + i] = (((value / mul) >> 0) - sub) & 0xff;\n              }\n\n              return offset + byteLength;\n            };\n\n            Buffer.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80);\n              if (value < 0) value = 0xff + value + 1;\n              this[offset] = value & 0xff;\n              return offset + 1;\n            };\n\n            Buffer.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000);\n              this[offset] = value & 0xff;\n              this[offset + 1] = value >>> 8;\n              return offset + 2;\n            };\n\n            Buffer.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000);\n              this[offset] = value >>> 8;\n              this[offset + 1] = value & 0xff;\n              return offset + 2;\n            };\n\n            Buffer.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000);\n              this[offset] = value & 0xff;\n              this[offset + 1] = value >>> 8;\n              this[offset + 2] = value >>> 16;\n              this[offset + 3] = value >>> 24;\n              return offset + 4;\n            };\n\n            Buffer.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000);\n              if (value < 0) value = 0xffffffff + value + 1;\n              this[offset] = value >>> 24;\n              this[offset + 1] = value >>> 16;\n              this[offset + 2] = value >>> 8;\n              this[offset + 3] = value & 0xff;\n              return offset + 4;\n            };\n\n            function checkIEEE754(buf, value, offset, ext, max, min) {\n              if (offset + ext > buf.length) throw new RangeError('Index out of range');\n              if (offset < 0) throw new RangeError('Index out of range');\n            }\n\n            function writeFloat(buf, value, offset, littleEndian, noAssert) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) {\n                checkIEEE754(\n                  buf,\n                  value,\n                  offset,\n                  4,\n                  3.4028234663852886e38,\n                  -3.4028234663852886e38\n                );\n              }\n              ieee754.write(buf, value, offset, littleEndian, 23, 4);\n              return offset + 4;\n            }\n\n            Buffer.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {\n              return writeFloat(this, value, offset, true, noAssert);\n            };\n\n            Buffer.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {\n              return writeFloat(this, value, offset, false, noAssert);\n            };\n\n            function writeDouble(buf, value, offset, littleEndian, noAssert) {\n              value = +value;\n              offset = offset >>> 0;\n              if (!noAssert) {\n                checkIEEE754(\n                  buf,\n                  value,\n                  offset,\n                  8,\n                  1.7976931348623157e308,\n                  -1.7976931348623157e308\n                );\n              }\n              ieee754.write(buf, value, offset, littleEndian, 52, 8);\n              return offset + 8;\n            }\n\n            Buffer.prototype.writeDoubleLE = function writeDoubleLE(\n              value,\n              offset,\n              noAssert\n            ) {\n              return writeDouble(this, value, offset, true, noAssert);\n            };\n\n            Buffer.prototype.writeDoubleBE = function writeDoubleBE(\n              value,\n              offset,\n              noAssert\n            ) {\n              return writeDouble(this, value, offset, false, noAssert);\n            };\n\n            // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\n            Buffer.prototype.copy = function copy(target, targetStart, start, end) {\n              if (!Buffer.isBuffer(target))\n                throw new TypeError('argument should be a Buffer');\n              if (!start) start = 0;\n              if (!end && end !== 0) end = this.length;\n              if (targetStart >= target.length) targetStart = target.length;\n              if (!targetStart) targetStart = 0;\n              if (end > 0 && end < start) end = start;\n\n              // Copy 0 bytes; we're done\n              if (end === start) return 0;\n              if (target.length === 0 || this.length === 0) return 0;\n\n              // Fatal error conditions\n              if (targetStart < 0) {\n                throw new RangeError('targetStart out of bounds');\n              }\n              if (start < 0 || start >= this.length)\n                throw new RangeError('Index out of range');\n              if (end < 0) throw new RangeError('sourceEnd out of bounds');\n\n              // Are we oob?\n              if (end > this.length) end = this.length;\n              if (target.length - targetStart < end - start) {\n                end = target.length - targetStart + start;\n              }\n\n              var len = end - start;\n\n              if (\n                this === target &&\n                typeof Uint8Array.prototype.copyWithin === 'function'\n              ) {\n                // Use built-in when available, missing from IE11\n                this.copyWithin(targetStart, start, end);\n              } else if (this === target && start < targetStart && targetStart < end) {\n                // descending copy from end\n                for (var i = len - 1; i >= 0; --i) {\n                  target[i + targetStart] = this[i + start];\n                }\n              } else {\n                Uint8Array.prototype.set.call(\n                  target,\n                  this.subarray(start, end),\n                  targetStart\n                );\n              }\n\n              return len;\n            };\n\n            // Usage:\n            //    buffer.fill(number[, offset[, end]])\n            //    buffer.fill(buffer[, offset[, end]])\n            //    buffer.fill(string[, offset[, end]][, encoding])\n            Buffer.prototype.fill = function fill(val, start, end, encoding) {\n              // Handle string cases:\n              if (typeof val === 'string') {\n                if (typeof start === 'string') {\n                  encoding = start;\n                  start = 0;\n                  end = this.length;\n                } else if (typeof end === 'string') {\n                  encoding = end;\n                  end = this.length;\n                }\n                if (encoding !== undefined && typeof encoding !== 'string') {\n                  throw new TypeError('encoding must be a string');\n                }\n                if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n                  throw new TypeError('Unknown encoding: ' + encoding);\n                }\n                if (val.length === 1) {\n                  var code = val.charCodeAt(0);\n                  if ((encoding === 'utf8' && code < 128) || encoding === 'latin1') {\n                    // Fast path: If `val` fits into a single byte, use that numeric value.\n                    val = code;\n                  }\n                }\n              } else if (typeof val === 'number') {\n                val = val & 255;\n              } else if (typeof val === 'boolean') {\n                val = Number(val);\n              }\n\n              // Invalid ranges are not set to a default, so can range check early.\n              if (start < 0 || this.length < start || this.length < end) {\n                throw new RangeError('Out of range index');\n              }\n\n              if (end <= start) {\n                return this;\n              }\n\n              start = start >>> 0;\n              end = end === undefined ? this.length : end >>> 0;\n\n              if (!val) val = 0;\n\n              var i;\n              if (typeof val === 'number') {\n                for (i = start; i < end; ++i) {\n                  this[i] = val;\n                }\n              } else {\n                var bytes = Buffer.isBuffer(val) ? val : Buffer.from(val, encoding);\n                var len = bytes.length;\n                if (len === 0) {\n                  throw new TypeError(\n                    'The value \"' + val + '\" is invalid for argument \"value\"'\n                  );\n                }\n                for (i = 0; i < end - start; ++i) {\n                  this[i + start] = bytes[i % len];\n                }\n              }\n\n              return this;\n            };\n\n            // HELPER FUNCTIONS\n            // ================\n\n            var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;\n\n            function base64clean(str) {\n              // Node takes equal signs as end of the Base64 encoding\n              str = str.split('=')[0];\n              // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n              str = str.trim().replace(INVALID_BASE64_RE, '');\n              // Node converts strings with length < 2 to ''\n              if (str.length < 2) return '';\n              // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n              while (str.length % 4 !== 0) {\n                str = str + '=';\n              }\n              return str;\n            }\n\n            function utf8ToBytes(string, units) {\n              units = units || Infinity;\n              var codePoint;\n              var length = string.length;\n              var leadSurrogate = null;\n              var bytes = [];\n\n              for (var i = 0; i < length; ++i) {\n                codePoint = string.charCodeAt(i);\n\n                // is surrogate component\n                if (codePoint > 0xd7ff && codePoint < 0xe000) {\n                  // last char was a lead\n                  if (!leadSurrogate) {\n                    // no lead yet\n                    if (codePoint > 0xdbff) {\n                      // unexpected trail\n                      if ((units -= 3) > -1) bytes.push(0xef, 0xbf, 0xbd);\n                      continue;\n                    } else if (i + 1 === length) {\n                      // unpaired lead\n                      if ((units -= 3) > -1) bytes.push(0xef, 0xbf, 0xbd);\n                      continue;\n                    }\n\n                    // valid lead\n                    leadSurrogate = codePoint;\n\n                    continue;\n                  }\n\n                  // 2 leads in a row\n                  if (codePoint < 0xdc00) {\n                    if ((units -= 3) > -1) bytes.push(0xef, 0xbf, 0xbd);\n                    leadSurrogate = codePoint;\n                    continue;\n                  }\n\n                  // valid surrogate pair\n                  codePoint =\n                    (((leadSurrogate - 0xd800) << 10) | (codePoint - 0xdc00)) + 0x10000;\n                } else if (leadSurrogate) {\n                  // valid bmp char, but last char was a lead\n                  if ((units -= 3) > -1) bytes.push(0xef, 0xbf, 0xbd);\n                }\n\n                leadSurrogate = null;\n\n                // encode utf8\n                if (codePoint < 0x80) {\n                  if ((units -= 1) < 0) break;\n                  bytes.push(codePoint);\n                } else if (codePoint < 0x800) {\n                  if ((units -= 2) < 0) break;\n                  bytes.push((codePoint >> 0x6) | 0xc0, (codePoint & 0x3f) | 0x80);\n                } else if (codePoint < 0x10000) {\n                  if ((units -= 3) < 0) break;\n                  bytes.push(\n                    (codePoint >> 0xc) | 0xe0,\n                    ((codePoint >> 0x6) & 0x3f) | 0x80,\n                    (codePoint & 0x3f) | 0x80\n                  );\n                } else if (codePoint < 0x110000) {\n                  if ((units -= 4) < 0) break;\n                  bytes.push(\n                    (codePoint >> 0x12) | 0xf0,\n                    ((codePoint >> 0xc) & 0x3f) | 0x80,\n                    ((codePoint >> 0x6) & 0x3f) | 0x80,\n                    (codePoint & 0x3f) | 0x80\n                  );\n                } else {\n                  throw new Error('Invalid code point');\n                }\n              }\n\n              return bytes;\n            }\n\n            function asciiToBytes(str) {\n              var byteArray = [];\n              for (var i = 0; i < str.length; ++i) {\n                // Node's code seems to be doing this and not & 0x7F..\n                byteArray.push(str.charCodeAt(i) & 0xff);\n              }\n              return byteArray;\n            }\n\n            function utf16leToBytes(str, units) {\n              var c, hi, lo;\n              var byteArray = [];\n              for (var i = 0; i < str.length; ++i) {\n                if ((units -= 2) < 0) break;\n\n                c = str.charCodeAt(i);\n                hi = c >> 8;\n                lo = c % 256;\n                byteArray.push(lo);\n                byteArray.push(hi);\n              }\n\n              return byteArray;\n            }\n\n            function base64ToBytes(str) {\n              return base64.toByteArray(base64clean(str));\n            }\n\n            function blitBuffer(src, dst, offset, length) {\n              for (var i = 0; i < length; ++i) {\n                if (i + offset >= dst.length || i >= src.length) break;\n                dst[i + offset] = src[i];\n              }\n              return i;\n            }\n\n            // ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n            // the `instanceof` check but they should be treated as of that type.\n            // See: https://github.com/feross/buffer/issues/166\n            function isInstance(obj, type) {\n              return (\n                obj instanceof type ||\n                (obj != null &&\n                  obj.constructor != null &&\n                  obj.constructor.name != null &&\n                  obj.constructor.name === type.name)\n              );\n            }\n            function numberIsNaN(obj) {\n              // For IE11 support\n              return obj !== obj; // eslint-disable-line no-self-compare\n            }\n\n            // Create lookup table for `toString('hex')`\n            // See: https://github.com/feross/buffer/issues/219\n            var hexSliceLookupTable = (function() {\n              var alphabet = '0123456789abcdef';\n              var table = new Array(256);\n              for (var i = 0; i < 16; ++i) {\n                var i16 = i * 16;\n                for (var j = 0; j < 16; ++j) {\n                  table[i16 + j] = alphabet[i] + alphabet[j];\n                }\n              }\n              return table;\n            })();\n          }.call(this, _dereq_('buffer').Buffer));\n        },\n        { 'base64-js': 20, buffer: 22, ieee754: 31 }\n      ],\n      23: [\n        function(_dereq_, module, exports) {\n          // This file can be required in Browserify and Node.js for automatic polyfill\n          // To use it:  require('es6-promise/auto');\n          'use strict';\n          module.exports = _dereq_('./').polyfill();\n        },\n        { './': 24 }\n      ],\n      24: [\n        function(_dereq_, module, exports) {\n          (function(process, global) {\n            /*!\n * @overview es6-promise - a tiny implementation of Promises/A+.\n * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)\n * @license   Licensed under MIT license\n *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE\n * @version   v4.2.8+1e68dce6\n */\n\n            (function(global, factory) {\n              typeof exports === 'object' && typeof module !== 'undefined'\n                ? (module.exports = factory())\n                : typeof define === 'function' && define.amd\n                  ? define(factory)\n                  : (global.ES6Promise = factory());\n            })(this, function() {\n              'use strict';\n\n              function objectOrFunction(x) {\n                var type = typeof x;\n                return x !== null && (type === 'object' || type === 'function');\n              }\n\n              function isFunction(x) {\n                return typeof x === 'function';\n              }\n\n              var _isArray = void 0;\n              if (Array.isArray) {\n                _isArray = Array.isArray;\n              } else {\n                _isArray = function(x) {\n                  return Object.prototype.toString.call(x) === '[object Array]';\n                };\n              }\n\n              var isArray = _isArray;\n\n              var len = 0;\n              var vertxNext = void 0;\n              var customSchedulerFn = void 0;\n\n              var asap = function asap(callback, arg) {\n                queue[len] = callback;\n                queue[len + 1] = arg;\n                len += 2;\n                if (len === 2) {\n                  // If len is 2, that means that we need to schedule an async flush.\n                  // If additional callbacks are queued before the queue is flushed, they\n                  // will be processed by this flush that we are scheduling.\n                  if (customSchedulerFn) {\n                    customSchedulerFn(flush);\n                  } else {\n                    scheduleFlush();\n                  }\n                }\n              };\n\n              function setScheduler(scheduleFn) {\n                customSchedulerFn = scheduleFn;\n              }\n\n              function setAsap(asapFn) {\n                asap = asapFn;\n              }\n\n              var browserWindow = typeof window !== 'undefined' ? window : undefined;\n              var browserGlobal = browserWindow || {};\n              var BrowserMutationObserver =\n                browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\n              var isNode =\n                typeof self === 'undefined' &&\n                typeof process !== 'undefined' &&\n                {}.toString.call(process) === '[object process]';\n\n              // test for web worker but not in IE10\n              var isWorker =\n                typeof Uint8ClampedArray !== 'undefined' &&\n                typeof importScripts !== 'undefined' &&\n                typeof MessageChannel !== 'undefined';\n\n              // node\n              function useNextTick() {\n                // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n                // see https://github.com/cujojs/when/issues/410 for details\n                return function() {\n                  return process.nextTick(flush);\n                };\n              }\n\n              // vertx\n              function useVertxTimer() {\n                if (typeof vertxNext !== 'undefined') {\n                  return function() {\n                    vertxNext(flush);\n                  };\n                }\n\n                return useSetTimeout();\n              }\n\n              function useMutationObserver() {\n                var iterations = 0;\n                var observer = new BrowserMutationObserver(flush);\n                var node = document.createTextNode('');\n                observer.observe(node, { characterData: true });\n\n                return function() {\n                  node.data = iterations = ++iterations % 2;\n                };\n              }\n\n              // web worker\n              function useMessageChannel() {\n                var channel = new MessageChannel();\n                channel.port1.onmessage = flush;\n                return function() {\n                  return channel.port2.postMessage(0);\n                };\n              }\n\n              function useSetTimeout() {\n                // Store setTimeout reference so es6-promise will be unaffected by\n                // other code modifying setTimeout (like sinon.useFakeTimers())\n                var globalSetTimeout = setTimeout;\n                return function() {\n                  return globalSetTimeout(flush, 1);\n                };\n              }\n\n              var queue = new Array(1000);\n              function flush() {\n                for (var i = 0; i < len; i += 2) {\n                  var callback = queue[i];\n                  var arg = queue[i + 1];\n\n                  callback(arg);\n\n                  queue[i] = undefined;\n                  queue[i + 1] = undefined;\n                }\n\n                len = 0;\n              }\n\n              function attemptVertx() {\n                try {\n                  var vertx = Function('return this')().require('vertx');\n                  vertxNext = vertx.runOnLoop || vertx.runOnContext;\n                  return useVertxTimer();\n                } catch (e) {\n                  return useSetTimeout();\n                }\n              }\n\n              var scheduleFlush = void 0;\n              // Decide what async method to use to triggering processing of queued callbacks:\n              if (isNode) {\n                scheduleFlush = useNextTick();\n              } else if (BrowserMutationObserver) {\n                scheduleFlush = useMutationObserver();\n              } else if (isWorker) {\n                scheduleFlush = useMessageChannel();\n              } else if (browserWindow === undefined && typeof _dereq_ === 'function') {\n                scheduleFlush = attemptVertx();\n              } else {\n                scheduleFlush = useSetTimeout();\n              }\n\n              function then(onFulfillment, onRejection) {\n                var parent = this;\n\n                var child = new this.constructor(noop);\n\n                if (child[PROMISE_ID] === undefined) {\n                  makePromise(child);\n                }\n\n                var _state = parent._state;\n\n                if (_state) {\n                  var callback = arguments[_state - 1];\n                  asap(function() {\n                    return invokeCallback(_state, child, callback, parent._result);\n                  });\n                } else {\n                  subscribe(parent, child, onFulfillment, onRejection);\n                }\n\n                return child;\n              }\n\n              /**\n  `Promise.resolve` returns a promise that will become resolved with the\n  passed `value`. It is shorthand for the following:\n\n  ```javascript\n  let promise = new Promise(function(resolve, reject){\n    resolve(1);\n  });\n\n  promise.then(function(value){\n    // value === 1\n  });\n  ```\n\n  Instead of writing the above, your code now simply becomes the following:\n\n  ```javascript\n  let promise = Promise.resolve(1);\n\n  promise.then(function(value){\n    // value === 1\n  });\n  ```\n\n  @method resolve\n  @static\n  @param {Any} value value that the returned promise will be resolved with\n  Useful for tooling.\n  @return {Promise} a promise that will become fulfilled with the given\n  `value`\n*/\n              function resolve$1(object) {\n                /*jshint validthis:true */\n                var Constructor = this;\n\n                if (\n                  object &&\n                  typeof object === 'object' &&\n                  object.constructor === Constructor\n                ) {\n                  return object;\n                }\n\n                var promise = new Constructor(noop);\n                resolve(promise, object);\n                return promise;\n              }\n\n              var PROMISE_ID = Math.random()\n                .toString(36)\n                .substring(2);\n\n              function noop() {}\n\n              var PENDING = void 0;\n              var FULFILLED = 1;\n              var REJECTED = 2;\n\n              function selfFulfillment() {\n                return new TypeError('You cannot resolve a promise with itself');\n              }\n\n              function cannotReturnOwn() {\n                return new TypeError(\n                  'A promises callback cannot return that same promise.'\n                );\n              }\n\n              function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {\n                try {\n                  then$$1.call(value, fulfillmentHandler, rejectionHandler);\n                } catch (e) {\n                  return e;\n                }\n              }\n\n              function handleForeignThenable(promise, thenable, then$$1) {\n                asap(function(promise) {\n                  var sealed = false;\n                  var error = tryThen(\n                    then$$1,\n                    thenable,\n                    function(value) {\n                      if (sealed) {\n                        return;\n                      }\n                      sealed = true;\n                      if (thenable !== value) {\n                        resolve(promise, value);\n                      } else {\n                        fulfill(promise, value);\n                      }\n                    },\n                    function(reason) {\n                      if (sealed) {\n                        return;\n                      }\n                      sealed = true;\n\n                      reject(promise, reason);\n                    },\n                    'Settle: ' + (promise._label || ' unknown promise')\n                  );\n\n                  if (!sealed && error) {\n                    sealed = true;\n                    reject(promise, error);\n                  }\n                }, promise);\n              }\n\n              function handleOwnThenable(promise, thenable) {\n                if (thenable._state === FULFILLED) {\n                  fulfill(promise, thenable._result);\n                } else if (thenable._state === REJECTED) {\n                  reject(promise, thenable._result);\n                } else {\n                  subscribe(\n                    thenable,\n                    undefined,\n                    function(value) {\n                      return resolve(promise, value);\n                    },\n                    function(reason) {\n                      return reject(promise, reason);\n                    }\n                  );\n                }\n              }\n\n              function handleMaybeThenable(promise, maybeThenable, then$$1) {\n                if (\n                  maybeThenable.constructor === promise.constructor &&\n                  then$$1 === then &&\n                  maybeThenable.constructor.resolve === resolve$1\n                ) {\n                  handleOwnThenable(promise, maybeThenable);\n                } else {\n                  if (then$$1 === undefined) {\n                    fulfill(promise, maybeThenable);\n                  } else if (isFunction(then$$1)) {\n                    handleForeignThenable(promise, maybeThenable, then$$1);\n                  } else {\n                    fulfill(promise, maybeThenable);\n                  }\n                }\n              }\n\n              function resolve(promise, value) {\n                if (promise === value) {\n                  reject(promise, selfFulfillment());\n                } else if (objectOrFunction(value)) {\n                  var then$$1 = void 0;\n                  try {\n                    then$$1 = value.then;\n                  } catch (error) {\n                    reject(promise, error);\n                    return;\n                  }\n                  handleMaybeThenable(promise, value, then$$1);\n                } else {\n                  fulfill(promise, value);\n                }\n              }\n\n              function publishRejection(promise) {\n                if (promise._onerror) {\n                  promise._onerror(promise._result);\n                }\n\n                publish(promise);\n              }\n\n              function fulfill(promise, value) {\n                if (promise._state !== PENDING) {\n                  return;\n                }\n\n                promise._result = value;\n                promise._state = FULFILLED;\n\n                if (promise._subscribers.length !== 0) {\n                  asap(publish, promise);\n                }\n              }\n\n              function reject(promise, reason) {\n                if (promise._state !== PENDING) {\n                  return;\n                }\n                promise._state = REJECTED;\n                promise._result = reason;\n\n                asap(publishRejection, promise);\n              }\n\n              function subscribe(parent, child, onFulfillment, onRejection) {\n                var _subscribers = parent._subscribers;\n                var length = _subscribers.length;\n\n                parent._onerror = null;\n\n                _subscribers[length] = child;\n                _subscribers[length + FULFILLED] = onFulfillment;\n                _subscribers[length + REJECTED] = onRejection;\n\n                if (length === 0 && parent._state) {\n                  asap(publish, parent);\n                }\n              }\n\n              function publish(promise) {\n                var subscribers = promise._subscribers;\n                var settled = promise._state;\n\n                if (subscribers.length === 0) {\n                  return;\n                }\n\n                var child = void 0,\n                  callback = void 0,\n                  detail = promise._result;\n\n                for (var i = 0; i < subscribers.length; i += 3) {\n                  child = subscribers[i];\n                  callback = subscribers[i + settled];\n\n                  if (child) {\n                    invokeCallback(settled, child, callback, detail);\n                  } else {\n                    callback(detail);\n                  }\n                }\n\n                promise._subscribers.length = 0;\n              }\n\n              function invokeCallback(settled, promise, callback, detail) {\n                var hasCallback = isFunction(callback),\n                  value = void 0,\n                  error = void 0,\n                  succeeded = true;\n\n                if (hasCallback) {\n                  try {\n                    value = callback(detail);\n                  } catch (e) {\n                    succeeded = false;\n                    error = e;\n                  }\n\n                  if (promise === value) {\n                    reject(promise, cannotReturnOwn());\n                    return;\n                  }\n                } else {\n                  value = detail;\n                }\n\n                if (promise._state !== PENDING) {\n                  // noop\n                } else if (hasCallback && succeeded) {\n                  resolve(promise, value);\n                } else if (succeeded === false) {\n                  reject(promise, error);\n                } else if (settled === FULFILLED) {\n                  fulfill(promise, value);\n                } else if (settled === REJECTED) {\n                  reject(promise, value);\n                }\n              }\n\n              function initializePromise(promise, resolver) {\n                try {\n                  resolver(\n                    function resolvePromise(value) {\n                      resolve(promise, value);\n                    },\n                    function rejectPromise(reason) {\n                      reject(promise, reason);\n                    }\n                  );\n                } catch (e) {\n                  reject(promise, e);\n                }\n              }\n\n              var id = 0;\n              function nextId() {\n                return id++;\n              }\n\n              function makePromise(promise) {\n                promise[PROMISE_ID] = id++;\n                promise._state = undefined;\n                promise._result = undefined;\n                promise._subscribers = [];\n              }\n\n              function validationError() {\n                return new Error('Array Methods must be provided an Array');\n              }\n\n              var Enumerator = (function() {\n                function Enumerator(Constructor, input) {\n                  this._instanceConstructor = Constructor;\n                  this.promise = new Constructor(noop);\n\n                  if (!this.promise[PROMISE_ID]) {\n                    makePromise(this.promise);\n                  }\n\n                  if (isArray(input)) {\n                    this.length = input.length;\n                    this._remaining = input.length;\n\n                    this._result = new Array(this.length);\n\n                    if (this.length === 0) {\n                      fulfill(this.promise, this._result);\n                    } else {\n                      this.length = this.length || 0;\n                      this._enumerate(input);\n                      if (this._remaining === 0) {\n                        fulfill(this.promise, this._result);\n                      }\n                    }\n                  } else {\n                    reject(this.promise, validationError());\n                  }\n                }\n\n                Enumerator.prototype._enumerate = function _enumerate(input) {\n                  for (var i = 0; this._state === PENDING && i < input.length; i++) {\n                    this._eachEntry(input[i], i);\n                  }\n                };\n\n                Enumerator.prototype._eachEntry = function _eachEntry(entry, i) {\n                  var c = this._instanceConstructor;\n                  var resolve$$1 = c.resolve;\n\n                  if (resolve$$1 === resolve$1) {\n                    var _then = void 0;\n                    var error = void 0;\n                    var didError = false;\n                    try {\n                      _then = entry.then;\n                    } catch (e) {\n                      didError = true;\n                      error = e;\n                    }\n\n                    if (_then === then && entry._state !== PENDING) {\n                      this._settledAt(entry._state, i, entry._result);\n                    } else if (typeof _then !== 'function') {\n                      this._remaining--;\n                      this._result[i] = entry;\n                    } else if (c === Promise$1) {\n                      var promise = new c(noop);\n                      if (didError) {\n                        reject(promise, error);\n                      } else {\n                        handleMaybeThenable(promise, entry, _then);\n                      }\n                      this._willSettleAt(promise, i);\n                    } else {\n                      this._willSettleAt(\n                        new c(function(resolve$$1) {\n                          return resolve$$1(entry);\n                        }),\n                        i\n                      );\n                    }\n                  } else {\n                    this._willSettleAt(resolve$$1(entry), i);\n                  }\n                };\n\n                Enumerator.prototype._settledAt = function _settledAt(state, i, value) {\n                  var promise = this.promise;\n\n                  if (promise._state === PENDING) {\n                    this._remaining--;\n\n                    if (state === REJECTED) {\n                      reject(promise, value);\n                    } else {\n                      this._result[i] = value;\n                    }\n                  }\n\n                  if (this._remaining === 0) {\n                    fulfill(promise, this._result);\n                  }\n                };\n\n                Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) {\n                  var enumerator = this;\n\n                  subscribe(\n                    promise,\n                    undefined,\n                    function(value) {\n                      return enumerator._settledAt(FULFILLED, i, value);\n                    },\n                    function(reason) {\n                      return enumerator._settledAt(REJECTED, i, reason);\n                    }\n                  );\n                };\n\n                return Enumerator;\n              })();\n\n              /**\n  `Promise.all` accepts an array of promises, and returns a new promise which\n  is fulfilled with an array of fulfillment values for the passed promises, or\n  rejected with the reason of the first passed promise to be rejected. It casts all\n  elements of the passed iterable to promises as it runs this algorithm.\n\n  Example:\n\n  ```javascript\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n  let promises = [ promise1, promise2, promise3 ];\n\n  Promise.all(promises).then(function(array){\n    // The array here would be [ 1, 2, 3 ];\n  });\n  ```\n\n  If any of the `promises` given to `all` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promises's\n  rejection handler. For example:\n\n  Example:\n\n  ```javascript\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error(\"2\"));\n  let promise3 = reject(new Error(\"3\"));\n  let promises = [ promise1, promise2, promise3 ];\n\n  Promise.all(promises).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(error) {\n    // error.message === \"2\"\n  });\n  ```\n\n  @method all\n  @static\n  @param {Array} entries array of promises\n  @param {String} label optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when all `promises` have been\n  fulfilled, or rejected if any of them become rejected.\n  @static\n*/\n              function all(entries) {\n                return new Enumerator(this, entries).promise;\n              }\n\n              /**\n  `Promise.race` returns a new promise which is settled in the same way as the\n  first passed promise to settle.\n\n  Example:\n\n  ```javascript\n  let promise1 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 1');\n    }, 200);\n  });\n\n  let promise2 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 2');\n    }, 100);\n  });\n\n  Promise.race([promise1, promise2]).then(function(result){\n    // result === 'promise 2' because it was resolved before promise1\n    // was resolved.\n  });\n  ```\n\n  `Promise.race` is deterministic in that only the state of the first\n  settled promise matters. For example, even if other promises given to the\n  `promises` array argument are resolved, but the first settled promise has\n  become rejected before the other promises became fulfilled, the returned\n  promise will become rejected:\n\n  ```javascript\n  let promise1 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 1');\n    }, 200);\n  });\n\n  let promise2 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      reject(new Error('promise 2'));\n    }, 100);\n  });\n\n  Promise.race([promise1, promise2]).then(function(result){\n    // Code here never runs\n  }, function(reason){\n    // reason.message === 'promise 2' because promise 2 became rejected before\n    // promise 1 became fulfilled\n  });\n  ```\n\n  An example real-world use case is implementing timeouts:\n\n  ```javascript\n  Promise.race([ajax('foo.json'), timeout(5000)])\n  ```\n\n  @method race\n  @static\n  @param {Array} promises array of promises to observe\n  Useful for tooling.\n  @return {Promise} a promise which settles in the same way as the first passed\n  promise to settle.\n*/\n              function race(entries) {\n                /*jshint validthis:true */\n                var Constructor = this;\n\n                if (!isArray(entries)) {\n                  return new Constructor(function(_, reject) {\n                    return reject(new TypeError('You must pass an array to race.'));\n                  });\n                } else {\n                  return new Constructor(function(resolve, reject) {\n                    var length = entries.length;\n                    for (var i = 0; i < length; i++) {\n                      Constructor.resolve(entries[i]).then(resolve, reject);\n                    }\n                  });\n                }\n              }\n\n              /**\n  `Promise.reject` returns a promise rejected with the passed `reason`.\n  It is shorthand for the following:\n\n  ```javascript\n  let promise = new Promise(function(resolve, reject){\n    reject(new Error('WHOOPS'));\n  });\n\n  promise.then(function(value){\n    // Code here doesn't run because the promise is rejected!\n  }, function(reason){\n    // reason.message === 'WHOOPS'\n  });\n  ```\n\n  Instead of writing the above, your code now simply becomes the following:\n\n  ```javascript\n  let promise = Promise.reject(new Error('WHOOPS'));\n\n  promise.then(function(value){\n    // Code here doesn't run because the promise is rejected!\n  }, function(reason){\n    // reason.message === 'WHOOPS'\n  });\n  ```\n\n  @method reject\n  @static\n  @param {Any} reason value that the returned promise will be rejected with.\n  Useful for tooling.\n  @return {Promise} a promise rejected with the given `reason`.\n*/\n              function reject$1(reason) {\n                /*jshint validthis:true */\n                var Constructor = this;\n                var promise = new Constructor(noop);\n                reject(promise, reason);\n                return promise;\n              }\n\n              function needsResolver() {\n                throw new TypeError(\n                  'You must pass a resolver function as the first argument to the promise constructor'\n                );\n              }\n\n              function needsNew() {\n                throw new TypeError(\n                  \"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\"\n                );\n              }\n\n              /**\n  Promise objects represent the eventual result of an asynchronous operation. The\n  primary way of interacting with a promise is through its `then` method, which\n  registers callbacks to receive either a promise's eventual value or the reason\n  why the promise cannot be fulfilled.\n\n  Terminology\n  -----------\n\n  - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n  - `thenable` is an object or function that defines a `then` method.\n  - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n  - `exception` is a value that is thrown using the throw statement.\n  - `reason` is a value that indicates why a promise was rejected.\n  - `settled` the final resting state of a promise, fulfilled or rejected.\n\n  A promise can be in one of three states: pending, fulfilled, or rejected.\n\n  Promises that are fulfilled have a fulfillment value and are in the fulfilled\n  state.  Promises that are rejected have a rejection reason and are in the\n  rejected state.  A fulfillment value is never a thenable.\n\n  Promises can also be said to *resolve* a value.  If this value is also a\n  promise, then the original promise's settled state will match the value's\n  settled state.  So a promise that *resolves* a promise that rejects will\n  itself reject, and a promise that *resolves* a promise that fulfills will\n  itself fulfill.\n\n\n  Basic Usage:\n  ------------\n\n  ```js\n  let promise = new Promise(function(resolve, reject) {\n    // on success\n    resolve(value);\n\n    // on failure\n    reject(reason);\n  });\n\n  promise.then(function(value) {\n    // on fulfillment\n  }, function(reason) {\n    // on rejection\n  });\n  ```\n\n  Advanced Usage:\n  ---------------\n\n  Promises shine when abstracting away asynchronous interactions such as\n  `XMLHttpRequest`s.\n\n  ```js\n  function getJSON(url) {\n    return new Promise(function(resolve, reject){\n      let xhr = new XMLHttpRequest();\n\n      xhr.open('GET', url);\n      xhr.onreadystatechange = handler;\n      xhr.responseType = 'json';\n      xhr.setRequestHeader('Accept', 'application/json');\n      xhr.send();\n\n      function handler() {\n        if (this.readyState === this.DONE) {\n          if (this.status === 200) {\n            resolve(this.response);\n          } else {\n            reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n          }\n        }\n      };\n    });\n  }\n\n  getJSON('/posts.json').then(function(json) {\n    // on fulfillment\n  }, function(reason) {\n    // on rejection\n  });\n  ```\n\n  Unlike callbacks, promises are great composable primitives.\n\n  ```js\n  Promise.all([\n    getJSON('/posts'),\n    getJSON('/comments')\n  ]).then(function(values){\n    values[0] // => postsJSON\n    values[1] // => commentsJSON\n\n    return values;\n  });\n  ```\n\n  @class Promise\n  @param {Function} resolver\n  Useful for tooling.\n  @constructor\n*/\n\n              var Promise$1 = (function() {\n                function Promise(resolver) {\n                  this[PROMISE_ID] = nextId();\n                  this._result = this._state = undefined;\n                  this._subscribers = [];\n\n                  if (noop !== resolver) {\n                    typeof resolver !== 'function' && needsResolver();\n                    this instanceof Promise\n                      ? initializePromise(this, resolver)\n                      : needsNew();\n                  }\n                }\n\n                /**\n  The primary way of interacting with a promise is through its `then` method,\n  which registers callbacks to receive either a promise's eventual value or the\n  reason why the promise cannot be fulfilled.\n   ```js\n  findUser().then(function(user){\n    // user is available\n  }, function(reason){\n    // user is unavailable, and you are given the reason why\n  });\n  ```\n   Chaining\n  --------\n   The return value of `then` is itself a promise.  This second, 'downstream'\n  promise is resolved with the return value of the first promise's fulfillment\n  or rejection handler, or rejected if the handler throws an exception.\n   ```js\n  findUser().then(function (user) {\n    return user.name;\n  }, function (reason) {\n    return 'default name';\n  }).then(function (userName) {\n    // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n    // will be `'default name'`\n  });\n   findUser().then(function (user) {\n    throw new Error('Found user, but still unhappy');\n  }, function (reason) {\n    throw new Error('`findUser` rejected and we're unhappy');\n  }).then(function (value) {\n    // never reached\n  }, function (reason) {\n    // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n    // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.\n  });\n  ```\n  If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n   ```js\n  findUser().then(function (user) {\n    throw new PedagogicalException('Upstream error');\n  }).then(function (value) {\n    // never reached\n  }).then(function (value) {\n    // never reached\n  }, function (reason) {\n    // The `PedgagocialException` is propagated all the way down to here\n  });\n  ```\n   Assimilation\n  ------------\n   Sometimes the value you want to propagate to a downstream promise can only be\n  retrieved asynchronously. This can be achieved by returning a promise in the\n  fulfillment or rejection handler. The downstream promise will then be pending\n  until the returned promise is settled. This is called *assimilation*.\n   ```js\n  findUser().then(function (user) {\n    return findCommentsByAuthor(user);\n  }).then(function (comments) {\n    // The user's comments are now available\n  });\n  ```\n   If the assimliated promise rejects, then the downstream promise will also reject.\n   ```js\n  findUser().then(function (user) {\n    return findCommentsByAuthor(user);\n  }).then(function (comments) {\n    // If `findCommentsByAuthor` fulfills, we'll have the value here\n  }, function (reason) {\n    // If `findCommentsByAuthor` rejects, we'll have the reason here\n  });\n  ```\n   Simple Example\n  --------------\n   Synchronous Example\n   ```javascript\n  let result;\n   try {\n    result = findResult();\n    // success\n  } catch(reason) {\n    // failure\n  }\n  ```\n   Errback Example\n   ```js\n  findResult(function(result, err){\n    if (err) {\n      // failure\n    } else {\n      // success\n    }\n  });\n  ```\n   Promise Example;\n   ```javascript\n  findResult().then(function(result){\n    // success\n  }, function(reason){\n    // failure\n  });\n  ```\n   Advanced Example\n  --------------\n   Synchronous Example\n   ```javascript\n  let author, books;\n   try {\n    author = findAuthor();\n    books  = findBooksByAuthor(author);\n    // success\n  } catch(reason) {\n    // failure\n  }\n  ```\n   Errback Example\n   ```js\n   function foundBooks(books) {\n   }\n   function failure(reason) {\n   }\n   findAuthor(function(author, err){\n    if (err) {\n      failure(err);\n      // failure\n    } else {\n      try {\n        findBoooksByAuthor(author, function(books, err) {\n          if (err) {\n            failure(err);\n          } else {\n            try {\n              foundBooks(books);\n            } catch(reason) {\n              failure(reason);\n            }\n          }\n        });\n      } catch(error) {\n        failure(err);\n      }\n      // success\n    }\n  });\n  ```\n   Promise Example;\n   ```javascript\n  findAuthor().\n    then(findBooksByAuthor).\n    then(function(books){\n      // found books\n  }).catch(function(reason){\n    // something went wrong\n  });\n  ```\n   @method then\n  @param {Function} onFulfilled\n  @param {Function} onRejected\n  Useful for tooling.\n  @return {Promise}\n  */\n\n                /**\n  `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n  as the catch block of a try/catch statement.\n  ```js\n  function findAuthor(){\n  throw new Error('couldn't find that author');\n  }\n  // synchronous\n  try {\n  findAuthor();\n  } catch(reason) {\n  // something went wrong\n  }\n  // async with promises\n  findAuthor().catch(function(reason){\n  // something went wrong\n  });\n  ```\n  @method catch\n  @param {Function} onRejection\n  Useful for tooling.\n  @return {Promise}\n  */\n\n                Promise.prototype.catch = function _catch(onRejection) {\n                  return this.then(null, onRejection);\n                };\n\n                /**\n    `finally` will be invoked regardless of the promise's fate just as native\n    try/catch/finally behaves\n  \n    Synchronous example:\n  \n    ```js\n    findAuthor() {\n      if (Math.random() > 0.5) {\n        throw new Error();\n      }\n      return new Author();\n    }\n  \n    try {\n      return findAuthor(); // succeed or fail\n    } catch(error) {\n      return findOtherAuther();\n    } finally {\n      // always runs\n      // doesn't affect the return value\n    }\n    ```\n  \n    Asynchronous example:\n  \n    ```js\n    findAuthor().catch(function(reason){\n      return findOtherAuther();\n    }).finally(function(){\n      // author was either found, or not\n    });\n    ```\n  \n    @method finally\n    @param {Function} callback\n    @return {Promise}\n  */\n\n                Promise.prototype.finally = function _finally(callback) {\n                  var promise = this;\n                  var constructor = promise.constructor;\n\n                  if (isFunction(callback)) {\n                    return promise.then(\n                      function(value) {\n                        return constructor.resolve(callback()).then(function() {\n                          return value;\n                        });\n                      },\n                      function(reason) {\n                        return constructor.resolve(callback()).then(function() {\n                          throw reason;\n                        });\n                      }\n                    );\n                  }\n\n                  return promise.then(callback, callback);\n                };\n\n                return Promise;\n              })();\n\n              Promise$1.prototype.then = then;\n              Promise$1.all = all;\n              Promise$1.race = race;\n              Promise$1.resolve = resolve$1;\n              Promise$1.reject = reject$1;\n              Promise$1._setScheduler = setScheduler;\n              Promise$1._setAsap = setAsap;\n              Promise$1._asap = asap;\n\n              /*global self*/\n              function polyfill() {\n                var local = void 0;\n\n                if (typeof global !== 'undefined') {\n                  local = global;\n                } else if (typeof self !== 'undefined') {\n                  local = self;\n                } else {\n                  try {\n                    local = Function('return this')();\n                  } catch (e) {\n                    throw new Error(\n                      'polyfill failed because global object is unavailable in this environment'\n                    );\n                  }\n                }\n\n                var P = local.Promise;\n\n                if (P) {\n                  var promiseToString = null;\n                  try {\n                    promiseToString = Object.prototype.toString.call(P.resolve());\n                  } catch (e) {\n                    // silently ignored\n                  }\n\n                  if (promiseToString === '[object Promise]' && !P.cast) {\n                    return;\n                  }\n                }\n\n                local.Promise = Promise$1;\n              }\n\n              // Strange compat..\n              Promise$1.polyfill = polyfill;\n              Promise$1.Promise = Promise$1;\n\n              return Promise$1;\n            });\n          }.call(\n            this,\n            _dereq_('_process'),\n            typeof global !== 'undefined'\n              ? global\n              : typeof self !== 'undefined'\n                ? self\n                : typeof window !== 'undefined' ? window : {}\n          ));\n        },\n        { _process: 36 }\n      ],\n      25: [\n        function(_dereq_, module, exports) {\n          (function(global, factory) {\n            if (typeof define === 'function' && define.amd) {\n              define(['exports', 'module'], factory);\n            } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') {\n              factory(exports, module);\n            } else {\n              var mod = {\n                exports: {}\n              };\n              factory(mod.exports, mod);\n              global.fetchJsonp = mod.exports;\n            }\n          })(this, function(exports, module) {\n            'use strict';\n\n            var defaultOptions = {\n              timeout: 5000,\n              jsonpCallback: 'callback',\n              jsonpCallbackFunction: null\n            };\n\n            function generateCallbackFunction() {\n              return 'jsonp_' + Date.now() + '_' + Math.ceil(Math.random() * 100000);\n            }\n\n            function clearFunction(functionName) {\n              // IE8 throws an exception when you try to delete a property on window\n              // http://stackoverflow.com/a/1824228/751089\n              try {\n                delete window[functionName];\n              } catch (e) {\n                window[functionName] = undefined;\n              }\n            }\n\n            function removeScript(scriptId) {\n              var script = document.getElementById(scriptId);\n              if (script) {\n                document.getElementsByTagName('head')[0].removeChild(script);\n              }\n            }\n\n            function fetchJsonp(_url) {\n              var options =\n                arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n              // to avoid param reassign\n              var url = _url;\n              var timeout = options.timeout || defaultOptions.timeout;\n              var jsonpCallback = options.jsonpCallback || defaultOptions.jsonpCallback;\n\n              var timeoutId = undefined;\n\n              return new Promise(function(resolve, reject) {\n                var callbackFunction =\n                  options.jsonpCallbackFunction || generateCallbackFunction();\n                var scriptId = jsonpCallback + '_' + callbackFunction;\n\n                window[callbackFunction] = function(response) {\n                  resolve({\n                    ok: true,\n                    // keep consistent with fetch API\n                    json: function json() {\n                      return Promise.resolve(response);\n                    }\n                  });\n\n                  if (timeoutId) clearTimeout(timeoutId);\n\n                  removeScript(scriptId);\n\n                  clearFunction(callbackFunction);\n                };\n\n                // Check if the user set their own params, and if not add a ? to start a list of params\n                url += url.indexOf('?') === -1 ? '?' : '&';\n\n                var jsonpScript = document.createElement('script');\n                jsonpScript.setAttribute(\n                  'src',\n                  '' + url + jsonpCallback + '=' + callbackFunction\n                );\n                if (options.charset) {\n                  jsonpScript.setAttribute('charset', options.charset);\n                }\n                jsonpScript.id = scriptId;\n                document.getElementsByTagName('head')[0].appendChild(jsonpScript);\n\n                timeoutId = setTimeout(function() {\n                  reject(new Error('JSONP request to ' + _url + ' timed out'));\n\n                  clearFunction(callbackFunction);\n                  removeScript(scriptId);\n                  window[callbackFunction] = function() {\n                    clearFunction(callbackFunction);\n                  };\n                }, timeout);\n\n                // Caught if got 404/500\n                jsonpScript.onerror = function() {\n                  reject(new Error('JSONP request to ' + _url + ' failed'));\n\n                  clearFunction(callbackFunction);\n                  removeScript(scriptId);\n                  if (timeoutId) clearTimeout(timeoutId);\n                };\n              });\n            }\n\n            // export as global function\n            /*\n  let local;\n  if (typeof global !== 'undefined') {\n    local = global;\n  } else if (typeof self !== 'undefined') {\n    local = self;\n  } else {\n    try {\n      local = Function('return this')();\n    } catch (e) {\n      throw new Error('polyfill failed because global object is unavailable in this environment');\n    }\n  }\n  local.fetchJsonp = fetchJsonp;\n  */\n\n            module.exports = fetchJsonp;\n          });\n        },\n        {}\n      ],\n      26: [\n        function(_dereq_, module, exports) {\n          /* FileSaver.js\n * A saveAs() FileSaver implementation.\n * 1.3.2\n * 2016-06-16 18:25:19\n *\n * By Eli Grey, http://eligrey.com\n * License: MIT\n *   See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md\n */\n\n          /*global self */\n          /*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */\n\n          /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */\n\n          var saveAs =\n            saveAs ||\n            (function(view) {\n              'use strict';\n              // IE <10 is explicitly unsupported\n              if (\n                typeof view === 'undefined' ||\n                (typeof navigator !== 'undefined' &&\n                  /MSIE [1-9]\\./.test(navigator.userAgent))\n              ) {\n                return;\n              }\n              var doc = view.document,\n                // only get URL when necessary in case Blob.js hasn't overridden it yet\n                get_URL = function() {\n                  return view.URL || view.webkitURL || view;\n                },\n                save_link = doc.createElementNS('http://www.w3.org/1999/xhtml', 'a'),\n                can_use_save_link = 'download' in save_link,\n                click = function(node) {\n                  var event = new MouseEvent('click');\n                  node.dispatchEvent(event);\n                },\n                is_safari = /constructor/i.test(view.HTMLElement) || view.safari,\n                is_chrome_ios = /CriOS\\/[\\d]+/.test(navigator.userAgent),\n                throw_outside = function(ex) {\n                  (view.setImmediate || view.setTimeout)(function() {\n                    throw ex;\n                  }, 0);\n                },\n                force_saveable_type = 'application/octet-stream',\n                // the Blob API is fundamentally broken as there is no \"downloadfinished\" event to subscribe to\n                arbitrary_revoke_timeout = 1000 * 40, // in ms\n                revoke = function(file) {\n                  var revoker = function() {\n                    if (typeof file === 'string') {\n                      // file is an object URL\n                      get_URL().revokeObjectURL(file);\n                    } else {\n                      // file is a File\n                      file.remove();\n                    }\n                  };\n                  setTimeout(revoker, arbitrary_revoke_timeout);\n                },\n                dispatch = function(filesaver, event_types, event) {\n                  event_types = [].concat(event_types);\n                  var i = event_types.length;\n                  while (i--) {\n                    var listener = filesaver['on' + event_types[i]];\n                    if (typeof listener === 'function') {\n                      try {\n                        listener.call(filesaver, event || filesaver);\n                      } catch (ex) {\n                        throw_outside(ex);\n                      }\n                    }\n                  }\n                },\n                auto_bom = function(blob) {\n                  // prepend BOM for UTF-8 XML and text/* types (including HTML)\n                  // note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF\n                  if (\n                    /^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(\n                      blob.type\n                    )\n                  ) {\n                    return new Blob([String.fromCharCode(0xfeff), blob], {\n                      type: blob.type\n                    });\n                  }\n                  return blob;\n                },\n                FileSaver = function(blob, name, no_auto_bom) {\n                  if (!no_auto_bom) {\n                    blob = auto_bom(blob);\n                  }\n                  // First try a.download, then web filesystem, then object URLs\n                  var filesaver = this,\n                    type = blob.type,\n                    force = type === force_saveable_type,\n                    object_url,\n                    dispatch_all = function() {\n                      dispatch(filesaver, 'writestart progress write writeend'.split(' '));\n                    },\n                    // on any filesys errors revert to saving with object URLs\n                    fs_error = function() {\n                      if ((is_chrome_ios || (force && is_safari)) && view.FileReader) {\n                        // Safari doesn't allow downloading of blob urls\n                        var reader = new FileReader();\n                        reader.onloadend = function() {\n                          var url = is_chrome_ios\n                            ? reader.result\n                            : reader.result.replace(\n                                /^data:[^;]*;/,\n                                'data:attachment/file;'\n                              );\n                          var popup = view.open(url, '_blank');\n                          if (!popup) view.location.href = url;\n                          url = undefined; // release reference before dispatching\n                          filesaver.readyState = filesaver.DONE;\n                          dispatch_all();\n                        };\n                        reader.readAsDataURL(blob);\n                        filesaver.readyState = filesaver.INIT;\n                        return;\n                      }\n                      // don't create more object URLs than needed\n                      if (!object_url) {\n                        object_url = get_URL().createObjectURL(blob);\n                      }\n                      if (force) {\n                        view.location.href = object_url;\n                      } else {\n                        var opened = view.open(object_url, '_blank');\n                        if (!opened) {\n                          // Apple does not allow window.open, see https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/WorkingwithWindowsandTabs/WorkingwithWindowsandTabs.html\n                          view.location.href = object_url;\n                        }\n                      }\n                      filesaver.readyState = filesaver.DONE;\n                      dispatch_all();\n                      revoke(object_url);\n                    };\n                  filesaver.readyState = filesaver.INIT;\n\n                  if (can_use_save_link) {\n                    object_url = get_URL().createObjectURL(blob);\n                    setTimeout(function() {\n                      save_link.href = object_url;\n                      save_link.download = name;\n                      click(save_link);\n                      dispatch_all();\n                      revoke(object_url);\n                      filesaver.readyState = filesaver.DONE;\n                    });\n                    return;\n                  }\n\n                  fs_error();\n                },\n                FS_proto = FileSaver.prototype,\n                saveAs = function(blob, name, no_auto_bom) {\n                  return new FileSaver(blob, name || blob.name || 'download', no_auto_bom);\n                };\n              // IE 10+ (native saveAs)\n              if (typeof navigator !== 'undefined' && navigator.msSaveOrOpenBlob) {\n                return function(blob, name, no_auto_bom) {\n                  name = name || blob.name || 'download';\n\n                  if (!no_auto_bom) {\n                    blob = auto_bom(blob);\n                  }\n                  return navigator.msSaveOrOpenBlob(blob, name);\n                };\n              }\n\n              FS_proto.abort = function() {};\n              FS_proto.readyState = FS_proto.INIT = 0;\n              FS_proto.WRITING = 1;\n              FS_proto.DONE = 2;\n\n              FS_proto.error = FS_proto.onwritestart = FS_proto.onprogress = FS_proto.onwrite = FS_proto.onabort = FS_proto.onerror = FS_proto.onwriteend = null;\n\n              return saveAs;\n            })(\n              (typeof self !== 'undefined' && self) ||\n                (typeof window !== 'undefined' && window) ||\n                this.content\n            );\n          // `self` is undefined in Firefox for Android content script context\n          // while `this` is nsIContentFrameMessageManager\n          // with an attribute `content` that corresponds to the window\n\n          if (typeof module !== 'undefined' && module.exports) {\n            module.exports.saveAs = saveAs;\n          } else if (\n            typeof define !== 'undefined' &&\n            define !== null &&\n            define.amd !== null\n          ) {\n            define('FileSaver.js', function() {\n              return saveAs;\n            });\n          }\n        },\n        {}\n      ],\n      27: [\n        function(_dereq_, module, exports) {\n          'use strict';\n\n          function _interopDefault(ex) {\n            return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;\n          }\n\n          var _classCallCheck = _interopDefault(\n            _dereq_('@babel/runtime/helpers/classCallCheck')\n          );\n          var _createClass = _interopDefault(_dereq_('@babel/runtime/helpers/createClass'));\n\n          var arr = [];\n          var each = arr.forEach;\n          var slice = arr.slice;\n          function defaults(obj) {\n            each.call(slice.call(arguments, 1), function(source) {\n              if (source) {\n                for (var prop in source) {\n                  if (obj[prop] === undefined) obj[prop] = source[prop];\n                }\n              }\n            });\n            return obj;\n          }\n\n          var cookie = {\n            create: function create(name, value, minutes, domain) {\n              var expires;\n\n              if (minutes) {\n                var date = new Date();\n                date.setTime(date.getTime() + minutes * 60 * 1000);\n                expires = '; expires=' + date.toGMTString();\n              } else expires = '';\n\n              domain = domain ? 'domain=' + domain + ';' : '';\n              document.cookie = name + '=' + value + expires + ';' + domain + 'path=/';\n            },\n            read: function read(name) {\n              var nameEQ = name + '=';\n              var ca = document.cookie.split(';');\n\n              for (var i = 0; i < ca.length; i++) {\n                var c = ca[i];\n\n                while (c.charAt(0) === ' ') {\n                  c = c.substring(1, c.length);\n                }\n\n                if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n              }\n\n              return null;\n            },\n            remove: function remove(name) {\n              this.create(name, '', -1);\n            }\n          };\n          var cookie$1 = {\n            name: 'cookie',\n            lookup: function lookup(options) {\n              var found;\n\n              if (options.lookupCookie && typeof document !== 'undefined') {\n                var c = cookie.read(options.lookupCookie);\n                if (c) found = c;\n              }\n\n              return found;\n            },\n            cacheUserLanguage: function cacheUserLanguage(lng, options) {\n              if (options.lookupCookie && typeof document !== 'undefined') {\n                cookie.create(\n                  options.lookupCookie,\n                  lng,\n                  options.cookieMinutes,\n                  options.cookieDomain\n                );\n              }\n            }\n          };\n\n          var querystring = {\n            name: 'querystring',\n            lookup: function lookup(options) {\n              var found;\n\n              if (typeof window !== 'undefined') {\n                var query = window.location.search.substring(1);\n                var params = query.split('&');\n\n                for (var i = 0; i < params.length; i++) {\n                  var pos = params[i].indexOf('=');\n\n                  if (pos > 0) {\n                    var key = params[i].substring(0, pos);\n\n                    if (key === options.lookupQuerystring) {\n                      found = params[i].substring(pos + 1);\n                    }\n                  }\n                }\n              }\n\n              return found;\n            }\n          };\n\n          var hasLocalStorageSupport;\n\n          try {\n            hasLocalStorageSupport = window !== 'undefined' && window.localStorage !== null;\n            var testKey = 'i18next.translate.boo';\n            window.localStorage.setItem(testKey, 'foo');\n            window.localStorage.removeItem(testKey);\n          } catch (e) {\n            hasLocalStorageSupport = false;\n          }\n\n          var localStorage = {\n            name: 'localStorage',\n            lookup: function lookup(options) {\n              var found;\n\n              if (options.lookupLocalStorage && hasLocalStorageSupport) {\n                var lng = window.localStorage.getItem(options.lookupLocalStorage);\n                if (lng) found = lng;\n              }\n\n              return found;\n            },\n            cacheUserLanguage: function cacheUserLanguage(lng, options) {\n              if (options.lookupLocalStorage && hasLocalStorageSupport) {\n                window.localStorage.setItem(options.lookupLocalStorage, lng);\n              }\n            }\n          };\n\n          var navigator$1 = {\n            name: 'navigator',\n            lookup: function lookup(options) {\n              var found = [];\n\n              if (typeof navigator !== 'undefined') {\n                if (navigator.languages) {\n                  // chrome only; not an array, so can't use .push.apply instead of iterating\n                  for (var i = 0; i < navigator.languages.length; i++) {\n                    found.push(navigator.languages[i]);\n                  }\n                }\n\n                if (navigator.userLanguage) {\n                  found.push(navigator.userLanguage);\n                }\n\n                if (navigator.language) {\n                  found.push(navigator.language);\n                }\n              }\n\n              return found.length > 0 ? found : undefined;\n            }\n          };\n\n          var htmlTag = {\n            name: 'htmlTag',\n            lookup: function lookup(options) {\n              var found;\n              var htmlTag =\n                options.htmlTag ||\n                (typeof document !== 'undefined' ? document.documentElement : null);\n\n              if (htmlTag && typeof htmlTag.getAttribute === 'function') {\n                found = htmlTag.getAttribute('lang');\n              }\n\n              return found;\n            }\n          };\n\n          var path = {\n            name: 'path',\n            lookup: function lookup(options) {\n              var found;\n\n              if (typeof window !== 'undefined') {\n                var language = window.location.pathname.match(/\\/([a-zA-Z-]*)/g);\n\n                if (language instanceof Array) {\n                  if (typeof options.lookupFromPathIndex === 'number') {\n                    if (typeof language[options.lookupFromPathIndex] !== 'string') {\n                      return undefined;\n                    }\n\n                    found = language[options.lookupFromPathIndex].replace('/', '');\n                  } else {\n                    found = language[0].replace('/', '');\n                  }\n                }\n              }\n\n              return found;\n            }\n          };\n\n          var subdomain = {\n            name: 'subdomain',\n            lookup: function lookup(options) {\n              var found;\n\n              if (typeof window !== 'undefined') {\n                var language = window.location.href.match(\n                  /(?:http[s]*\\:\\/\\/)*(.*?)\\.(?=[^\\/]*\\..{2,5})/gi\n                );\n\n                if (language instanceof Array) {\n                  if (typeof options.lookupFromSubdomainIndex === 'number') {\n                    found = language[options.lookupFromSubdomainIndex]\n                      .replace('http://', '')\n                      .replace('https://', '')\n                      .replace('.', '');\n                  } else {\n                    found = language[0]\n                      .replace('http://', '')\n                      .replace('https://', '')\n                      .replace('.', '');\n                  }\n                }\n              }\n\n              return found;\n            }\n          };\n\n          function getDefaults() {\n            return {\n              order: ['querystring', 'cookie', 'localStorage', 'navigator', 'htmlTag'],\n              lookupQuerystring: 'lng',\n              lookupCookie: 'i18next',\n              lookupLocalStorage: 'i18nextLng',\n              // cache user language\n              caches: ['localStorage'],\n              excludeCacheFor: ['cimode'],\n              //cookieMinutes: 10,\n              //cookieDomain: 'myDomain'\n              checkWhitelist: true\n            };\n          }\n\n          var Browser =\n            /*#__PURE__*/\n            (function() {\n              function Browser(services) {\n                var options =\n                  arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n                _classCallCheck(this, Browser);\n\n                this.type = 'languageDetector';\n                this.detectors = {};\n                this.init(services, options);\n              }\n\n              _createClass(Browser, [\n                {\n                  key: 'init',\n                  value: function init(services) {\n                    var options =\n                      arguments.length > 1 && arguments[1] !== undefined\n                        ? arguments[1]\n                        : {};\n                    var i18nOptions =\n                      arguments.length > 2 && arguments[2] !== undefined\n                        ? arguments[2]\n                        : {};\n                    this.services = services;\n                    this.options = defaults(options, this.options || {}, getDefaults()); // backwards compatibility\n\n                    if (this.options.lookupFromUrlIndex)\n                      this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex;\n                    this.i18nOptions = i18nOptions;\n                    this.addDetector(cookie$1);\n                    this.addDetector(querystring);\n                    this.addDetector(localStorage);\n                    this.addDetector(navigator$1);\n                    this.addDetector(htmlTag);\n                    this.addDetector(path);\n                    this.addDetector(subdomain);\n                  }\n                },\n                {\n                  key: 'addDetector',\n                  value: function addDetector(detector) {\n                    this.detectors[detector.name] = detector;\n                  }\n                },\n                {\n                  key: 'detect',\n                  value: function detect(detectionOrder) {\n                    var _this = this;\n\n                    if (!detectionOrder) detectionOrder = this.options.order;\n                    var detected = [];\n                    detectionOrder.forEach(function(detectorName) {\n                      if (_this.detectors[detectorName]) {\n                        var lookup = _this.detectors[detectorName].lookup(_this.options);\n\n                        if (lookup && typeof lookup === 'string') lookup = [lookup];\n                        if (lookup) detected = detected.concat(lookup);\n                      }\n                    });\n                    var found;\n                    detected.forEach(function(lng) {\n                      if (found) return;\n\n                      var cleanedLng = _this.services.languageUtils.formatLanguageCode(lng);\n\n                      if (\n                        !_this.options.checkWhitelist ||\n                        _this.services.languageUtils.isWhitelisted(cleanedLng)\n                      )\n                        found = cleanedLng;\n                    });\n\n                    if (!found) {\n                      var fallbacks = this.i18nOptions.fallbackLng;\n                      if (typeof fallbacks === 'string') fallbacks = [fallbacks];\n                      if (!fallbacks) fallbacks = [];\n\n                      if (Object.prototype.toString.apply(fallbacks) === '[object Array]') {\n                        found = fallbacks[0];\n                      } else {\n                        found =\n                          fallbacks[0] || (fallbacks['default'] && fallbacks['default'][0]);\n                      }\n                    }\n\n                    return found;\n                  }\n                },\n                {\n                  key: 'cacheUserLanguage',\n                  value: function cacheUserLanguage(lng, caches) {\n                    var _this2 = this;\n\n                    if (!caches) caches = this.options.caches;\n                    if (!caches) return;\n                    if (\n                      this.options.excludeCacheFor &&\n                      this.options.excludeCacheFor.indexOf(lng) > -1\n                    )\n                      return;\n                    caches.forEach(function(cacheName) {\n                      if (_this2.detectors[cacheName])\n                        _this2.detectors[cacheName].cacheUserLanguage(lng, _this2.options);\n                    });\n                  }\n                }\n              ]);\n\n              return Browser;\n            })();\n\n          Browser.type = 'languageDetector';\n\n          module.exports = Browser;\n        },\n        {\n          '@babel/runtime/helpers/classCallCheck': 28,\n          '@babel/runtime/helpers/createClass': 29\n        }\n      ],\n      28: [\n        function(_dereq_, module, exports) {\n          arguments[4][5][0].apply(exports, arguments);\n        },\n        { dup: 5 }\n      ],\n      29: [\n        function(_dereq_, module, exports) {\n          arguments[4][6][0].apply(exports, arguments);\n        },\n        { dup: 6 }\n      ],\n      30: [\n        function(_dereq_, module, exports) {\n          'use strict';\n\n          function _interopDefault(ex) {\n            return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;\n          }\n\n          var _typeof = _interopDefault(_dereq_('@babel/runtime/helpers/typeof'));\n          var _objectSpread = _interopDefault(\n            _dereq_('@babel/runtime/helpers/objectSpread')\n          );\n          var _classCallCheck = _interopDefault(\n            _dereq_('@babel/runtime/helpers/classCallCheck')\n          );\n          var _createClass = _interopDefault(_dereq_('@babel/runtime/helpers/createClass'));\n          var _possibleConstructorReturn = _interopDefault(\n            _dereq_('@babel/runtime/helpers/possibleConstructorReturn')\n          );\n          var _getPrototypeOf = _interopDefault(\n            _dereq_('@babel/runtime/helpers/getPrototypeOf')\n          );\n          var _assertThisInitialized = _interopDefault(\n            _dereq_('@babel/runtime/helpers/assertThisInitialized')\n          );\n          var _inherits = _interopDefault(_dereq_('@babel/runtime/helpers/inherits'));\n          var _toConsumableArray = _interopDefault(\n            _dereq_('@babel/runtime/helpers/toConsumableArray')\n          );\n          var _slicedToArray = _interopDefault(\n            _dereq_('@babel/runtime/helpers/slicedToArray')\n          );\n\n          var consoleLogger = {\n            type: 'logger',\n            log: function log(args) {\n              this.output('log', args);\n            },\n            warn: function warn(args) {\n              this.output('warn', args);\n            },\n            error: function error(args) {\n              this.output('error', args);\n            },\n            output: function output(type, args) {\n              var _console;\n\n              /* eslint no-console: 0 */\n              if (console && console[type])\n                (_console = console)[type].apply(_console, _toConsumableArray(args));\n            }\n          };\n\n          var Logger =\n            /*#__PURE__*/\n            (function() {\n              function Logger(concreteLogger) {\n                var options =\n                  arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n                _classCallCheck(this, Logger);\n\n                this.init(concreteLogger, options);\n              }\n\n              _createClass(Logger, [\n                {\n                  key: 'init',\n                  value: function init(concreteLogger) {\n                    var options =\n                      arguments.length > 1 && arguments[1] !== undefined\n                        ? arguments[1]\n                        : {};\n                    this.prefix = options.prefix || 'i18next:';\n                    this.logger = concreteLogger || consoleLogger;\n                    this.options = options;\n                    this.debug = options.debug;\n                  }\n                },\n                {\n                  key: 'setDebug',\n                  value: function setDebug(bool) {\n                    this.debug = bool;\n                  }\n                },\n                {\n                  key: 'log',\n                  value: function log() {\n                    for (\n                      var _len = arguments.length, args = new Array(_len), _key = 0;\n                      _key < _len;\n                      _key++\n                    ) {\n                      args[_key] = arguments[_key];\n                    }\n\n                    return this.forward(args, 'log', '', true);\n                  }\n                },\n                {\n                  key: 'warn',\n                  value: function warn() {\n                    for (\n                      var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;\n                      _key2 < _len2;\n                      _key2++\n                    ) {\n                      args[_key2] = arguments[_key2];\n                    }\n\n                    return this.forward(args, 'warn', '', true);\n                  }\n                },\n                {\n                  key: 'error',\n                  value: function error() {\n                    for (\n                      var _len3 = arguments.length, args = new Array(_len3), _key3 = 0;\n                      _key3 < _len3;\n                      _key3++\n                    ) {\n                      args[_key3] = arguments[_key3];\n                    }\n\n                    return this.forward(args, 'error', '');\n                  }\n                },\n                {\n                  key: 'deprecate',\n                  value: function deprecate() {\n                    for (\n                      var _len4 = arguments.length, args = new Array(_len4), _key4 = 0;\n                      _key4 < _len4;\n                      _key4++\n                    ) {\n                      args[_key4] = arguments[_key4];\n                    }\n\n                    return this.forward(args, 'warn', 'WARNING DEPRECATED: ', true);\n                  }\n                },\n                {\n                  key: 'forward',\n                  value: function forward(args, lvl, prefix, debugOnly) {\n                    if (debugOnly && !this.debug) return null;\n                    if (typeof args[0] === 'string')\n                      args[0] = ''\n                        .concat(prefix)\n                        .concat(this.prefix, ' ')\n                        .concat(args[0]);\n                    return this.logger[lvl](args);\n                  }\n                },\n                {\n                  key: 'create',\n                  value: function create(moduleName) {\n                    return new Logger(\n                      this.logger,\n                      _objectSpread(\n                        {},\n                        {\n                          prefix: ''.concat(this.prefix, ':').concat(moduleName, ':')\n                        },\n                        this.options\n                      )\n                    );\n                  }\n                }\n              ]);\n\n              return Logger;\n            })();\n\n          var baseLogger = new Logger();\n\n          var EventEmitter =\n            /*#__PURE__*/\n            (function() {\n              function EventEmitter() {\n                _classCallCheck(this, EventEmitter);\n\n                this.observers = {};\n              }\n\n              _createClass(EventEmitter, [\n                {\n                  key: 'on',\n                  value: function on(events, listener) {\n                    var _this = this;\n\n                    events.split(' ').forEach(function(event) {\n                      _this.observers[event] = _this.observers[event] || [];\n\n                      _this.observers[event].push(listener);\n                    });\n                    return this;\n                  }\n                },\n                {\n                  key: 'off',\n                  value: function off(event, listener) {\n                    if (!this.observers[event]) return;\n\n                    if (!listener) {\n                      delete this.observers[event];\n                      return;\n                    }\n\n                    this.observers[event] = this.observers[event].filter(function(l) {\n                      return l !== listener;\n                    });\n                  }\n                },\n                {\n                  key: 'emit',\n                  value: function emit(event) {\n                    for (\n                      var _len = arguments.length,\n                        args = new Array(_len > 1 ? _len - 1 : 0),\n                        _key = 1;\n                      _key < _len;\n                      _key++\n                    ) {\n                      args[_key - 1] = arguments[_key];\n                    }\n\n                    if (this.observers[event]) {\n                      var cloned = [].concat(this.observers[event]);\n                      cloned.forEach(function(observer) {\n                        observer.apply(void 0, args);\n                      });\n                    }\n\n                    if (this.observers['*']) {\n                      var _cloned = [].concat(this.observers['*']);\n\n                      _cloned.forEach(function(observer) {\n                        observer.apply(observer, [event].concat(args));\n                      });\n                    }\n                  }\n                }\n              ]);\n\n              return EventEmitter;\n            })();\n\n          // http://lea.verou.me/2016/12/resolve-promises-externally-with-this-one-weird-trick/\n          function defer() {\n            var res;\n            var rej;\n            var promise = new Promise(function(resolve, reject) {\n              res = resolve;\n              rej = reject;\n            });\n            promise.resolve = res;\n            promise.reject = rej;\n            return promise;\n          }\n          function makeString(object) {\n            if (object == null) return '';\n            /* eslint prefer-template: 0 */\n\n            return '' + object;\n          }\n          function copy(a, s, t) {\n            a.forEach(function(m) {\n              if (s[m]) t[m] = s[m];\n            });\n          }\n\n          function getLastOfPath(object, path, Empty) {\n            function cleanKey(key) {\n              return key && key.indexOf('###') > -1 ? key.replace(/###/g, '.') : key;\n            }\n\n            function canNotTraverseDeeper() {\n              return !object || typeof object === 'string';\n            }\n\n            var stack = typeof path !== 'string' ? [].concat(path) : path.split('.');\n\n            while (stack.length > 1) {\n              if (canNotTraverseDeeper()) return {};\n              var key = cleanKey(stack.shift());\n              if (!object[key] && Empty) object[key] = new Empty();\n              object = object[key];\n            }\n\n            if (canNotTraverseDeeper()) return {};\n            return {\n              obj: object,\n              k: cleanKey(stack.shift())\n            };\n          }\n\n          function setPath(object, path, newValue) {\n            var _getLastOfPath = getLastOfPath(object, path, Object),\n              obj = _getLastOfPath.obj,\n              k = _getLastOfPath.k;\n\n            obj[k] = newValue;\n          }\n          function pushPath(object, path, newValue, concat) {\n            var _getLastOfPath2 = getLastOfPath(object, path, Object),\n              obj = _getLastOfPath2.obj,\n              k = _getLastOfPath2.k;\n\n            obj[k] = obj[k] || [];\n            if (concat) obj[k] = obj[k].concat(newValue);\n            if (!concat) obj[k].push(newValue);\n          }\n          function getPath(object, path) {\n            var _getLastOfPath3 = getLastOfPath(object, path),\n              obj = _getLastOfPath3.obj,\n              k = _getLastOfPath3.k;\n\n            if (!obj) return undefined;\n            return obj[k];\n          }\n          function getPathWithDefaults(data, defaultData, key) {\n            var value = getPath(data, key);\n\n            if (value !== undefined) {\n              return value;\n            } // Fallback to default values\n\n            return getPath(defaultData, key);\n          }\n          function deepExtend(target, source, overwrite) {\n            /* eslint no-restricted-syntax: 0 */\n            for (var prop in source) {\n              if (prop in target) {\n                // If we reached a leaf string in target or source then replace with source or skip depending on the 'overwrite' switch\n                if (\n                  typeof target[prop] === 'string' ||\n                  target[prop] instanceof String ||\n                  typeof source[prop] === 'string' ||\n                  source[prop] instanceof String\n                ) {\n                  if (overwrite) target[prop] = source[prop];\n                } else {\n                  deepExtend(target[prop], source[prop], overwrite);\n                }\n              } else {\n                target[prop] = source[prop];\n              }\n            }\n\n            return target;\n          }\n          function regexEscape(str) {\n            /* eslint no-useless-escape: 0 */\n            return str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\n          }\n          /* eslint-disable */\n\n          var _entityMap = {\n            '&': '&amp;',\n            '<': '&lt;',\n            '>': '&gt;',\n            '\"': '&quot;',\n            \"'\": '&#39;',\n            '/': '&#x2F;'\n          };\n          /* eslint-enable */\n\n          function escape(data) {\n            if (typeof data === 'string') {\n              return data.replace(/[&<>\"'\\/]/g, function(s) {\n                return _entityMap[s];\n              });\n            }\n\n            return data;\n          }\n\n          var ResourceStore =\n            /*#__PURE__*/\n            (function(_EventEmitter) {\n              _inherits(ResourceStore, _EventEmitter);\n\n              function ResourceStore(data) {\n                var _this;\n\n                var options =\n                  arguments.length > 1 && arguments[1] !== undefined\n                    ? arguments[1]\n                    : {\n                        ns: ['translation'],\n                        defaultNS: 'translation'\n                      };\n\n                _classCallCheck(this, ResourceStore);\n\n                _this = _possibleConstructorReturn(\n                  this,\n                  _getPrototypeOf(ResourceStore).call(this)\n                );\n                EventEmitter.call(_assertThisInitialized(_this)); // <=IE10 fix (unable to call parent constructor)\n\n                _this.data = data || {};\n                _this.options = options;\n\n                if (_this.options.keySeparator === undefined) {\n                  _this.options.keySeparator = '.';\n                }\n\n                return _this;\n              }\n\n              _createClass(ResourceStore, [\n                {\n                  key: 'addNamespaces',\n                  value: function addNamespaces(ns) {\n                    if (this.options.ns.indexOf(ns) < 0) {\n                      this.options.ns.push(ns);\n                    }\n                  }\n                },\n                {\n                  key: 'removeNamespaces',\n                  value: function removeNamespaces(ns) {\n                    var index = this.options.ns.indexOf(ns);\n\n                    if (index > -1) {\n                      this.options.ns.splice(index, 1);\n                    }\n                  }\n                },\n                {\n                  key: 'getResource',\n                  value: function getResource(lng, ns, key) {\n                    var options =\n                      arguments.length > 3 && arguments[3] !== undefined\n                        ? arguments[3]\n                        : {};\n                    var keySeparator =\n                      options.keySeparator !== undefined\n                        ? options.keySeparator\n                        : this.options.keySeparator;\n                    var path = [lng, ns];\n                    if (key && typeof key !== 'string') path = path.concat(key);\n                    if (key && typeof key === 'string')\n                      path = path.concat(keySeparator ? key.split(keySeparator) : key);\n\n                    if (lng.indexOf('.') > -1) {\n                      path = lng.split('.');\n                    }\n\n                    return getPath(this.data, path);\n                  }\n                },\n                {\n                  key: 'addResource',\n                  value: function addResource(lng, ns, key, value) {\n                    var options =\n                      arguments.length > 4 && arguments[4] !== undefined\n                        ? arguments[4]\n                        : {\n                            silent: false\n                          };\n                    var keySeparator = this.options.keySeparator;\n                    if (keySeparator === undefined) keySeparator = '.';\n                    var path = [lng, ns];\n                    if (key)\n                      path = path.concat(keySeparator ? key.split(keySeparator) : key);\n\n                    if (lng.indexOf('.') > -1) {\n                      path = lng.split('.');\n                      value = ns;\n                      ns = path[1];\n                    }\n\n                    this.addNamespaces(ns);\n                    setPath(this.data, path, value);\n                    if (!options.silent) this.emit('added', lng, ns, key, value);\n                  }\n                },\n                {\n                  key: 'addResources',\n                  value: function addResources(lng, ns, resources) {\n                    var options =\n                      arguments.length > 3 && arguments[3] !== undefined\n                        ? arguments[3]\n                        : {\n                            silent: false\n                          };\n\n                    /* eslint no-restricted-syntax: 0 */\n                    for (var m in resources) {\n                      if (\n                        typeof resources[m] === 'string' ||\n                        Object.prototype.toString.apply(resources[m]) === '[object Array]'\n                      )\n                        this.addResource(lng, ns, m, resources[m], {\n                          silent: true\n                        });\n                    }\n\n                    if (!options.silent) this.emit('added', lng, ns, resources);\n                  }\n                },\n                {\n                  key: 'addResourceBundle',\n                  value: function addResourceBundle(lng, ns, resources, deep, overwrite) {\n                    var options =\n                      arguments.length > 5 && arguments[5] !== undefined\n                        ? arguments[5]\n                        : {\n                            silent: false\n                          };\n                    var path = [lng, ns];\n\n                    if (lng.indexOf('.') > -1) {\n                      path = lng.split('.');\n                      deep = resources;\n                      resources = ns;\n                      ns = path[1];\n                    }\n\n                    this.addNamespaces(ns);\n                    var pack = getPath(this.data, path) || {};\n\n                    if (deep) {\n                      deepExtend(pack, resources, overwrite);\n                    } else {\n                      pack = _objectSpread({}, pack, resources);\n                    }\n\n                    setPath(this.data, path, pack);\n                    if (!options.silent) this.emit('added', lng, ns, resources);\n                  }\n                },\n                {\n                  key: 'removeResourceBundle',\n                  value: function removeResourceBundle(lng, ns) {\n                    if (this.hasResourceBundle(lng, ns)) {\n                      delete this.data[lng][ns];\n                    }\n\n                    this.removeNamespaces(ns);\n                    this.emit('removed', lng, ns);\n                  }\n                },\n                {\n                  key: 'hasResourceBundle',\n                  value: function hasResourceBundle(lng, ns) {\n                    return this.getResource(lng, ns) !== undefined;\n                  }\n                },\n                {\n                  key: 'getResourceBundle',\n                  value: function getResourceBundle(lng, ns) {\n                    if (!ns) ns = this.options.defaultNS; // COMPATIBILITY: remove extend in v2.1.0\n\n                    if (this.options.compatibilityAPI === 'v1')\n                      return _objectSpread({}, {}, this.getResource(lng, ns));\n                    return this.getResource(lng, ns);\n                  }\n                },\n                {\n                  key: 'getDataByLanguage',\n                  value: function getDataByLanguage(lng) {\n                    return this.data[lng];\n                  }\n                },\n                {\n                  key: 'toJSON',\n                  value: function toJSON() {\n                    return this.data;\n                  }\n                }\n              ]);\n\n              return ResourceStore;\n            })(EventEmitter);\n\n          var postProcessor = {\n            processors: {},\n            addPostProcessor: function addPostProcessor(module) {\n              this.processors[module.name] = module;\n            },\n            handle: function handle(processors, value, key, options, translator) {\n              var _this = this;\n\n              processors.forEach(function(processor) {\n                if (_this.processors[processor])\n                  value = _this.processors[processor].process(\n                    value,\n                    key,\n                    options,\n                    translator\n                  );\n              });\n              return value;\n            }\n          };\n\n          var checkedLoadedFor = {};\n\n          var Translator =\n            /*#__PURE__*/\n            (function(_EventEmitter) {\n              _inherits(Translator, _EventEmitter);\n\n              function Translator(services) {\n                var _this;\n\n                var options =\n                  arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n                _classCallCheck(this, Translator);\n\n                _this = _possibleConstructorReturn(\n                  this,\n                  _getPrototypeOf(Translator).call(this)\n                );\n                EventEmitter.call(_assertThisInitialized(_this)); // <=IE10 fix (unable to call parent constructor)\n\n                copy(\n                  [\n                    'resourceStore',\n                    'languageUtils',\n                    'pluralResolver',\n                    'interpolator',\n                    'backendConnector',\n                    'i18nFormat',\n                    'utils'\n                  ],\n                  services,\n                  _assertThisInitialized(_this)\n                );\n                _this.options = options;\n\n                if (_this.options.keySeparator === undefined) {\n                  _this.options.keySeparator = '.';\n                }\n\n                _this.logger = baseLogger.create('translator');\n                return _this;\n              }\n\n              _createClass(Translator, [\n                {\n                  key: 'changeLanguage',\n                  value: function changeLanguage(lng) {\n                    if (lng) this.language = lng;\n                  }\n                },\n                {\n                  key: 'exists',\n                  value: function exists(key) {\n                    var options =\n                      arguments.length > 1 && arguments[1] !== undefined\n                        ? arguments[1]\n                        : {\n                            interpolation: {}\n                          };\n                    var resolved = this.resolve(key, options);\n                    return resolved && resolved.res !== undefined;\n                  }\n                },\n                {\n                  key: 'extractFromKey',\n                  value: function extractFromKey(key, options) {\n                    var nsSeparator = options.nsSeparator || this.options.nsSeparator;\n                    if (nsSeparator === undefined) nsSeparator = ':';\n                    var keySeparator =\n                      options.keySeparator !== undefined\n                        ? options.keySeparator\n                        : this.options.keySeparator;\n                    var namespaces = options.ns || this.options.defaultNS;\n\n                    if (nsSeparator && key.indexOf(nsSeparator) > -1) {\n                      var parts = key.split(nsSeparator);\n                      if (\n                        nsSeparator !== keySeparator ||\n                        (nsSeparator === keySeparator &&\n                          this.options.ns.indexOf(parts[0]) > -1)\n                      )\n                        namespaces = parts.shift();\n                      key = parts.join(keySeparator);\n                    }\n\n                    if (typeof namespaces === 'string') namespaces = [namespaces];\n                    return {\n                      key: key,\n                      namespaces: namespaces\n                    };\n                  }\n                },\n                {\n                  key: 'translate',\n                  value: function translate(keys, options) {\n                    var _this2 = this;\n\n                    if (\n                      _typeof(options) !== 'object' &&\n                      this.options.overloadTranslationOptionHandler\n                    ) {\n                      /* eslint prefer-rest-params: 0 */\n                      options = this.options.overloadTranslationOptionHandler(arguments);\n                    }\n\n                    if (!options) options = {}; // non valid keys handling\n\n                    if (\n                      keys === undefined ||\n                      keys === null\n                      /* || keys === ''*/\n                    )\n                      return '';\n                    if (!Array.isArray(keys)) keys = [String(keys)]; // separators\n\n                    var keySeparator =\n                      options.keySeparator !== undefined\n                        ? options.keySeparator\n                        : this.options.keySeparator; // get namespace(s)\n\n                    var _this$extractFromKey = this.extractFromKey(\n                        keys[keys.length - 1],\n                        options\n                      ),\n                      key = _this$extractFromKey.key,\n                      namespaces = _this$extractFromKey.namespaces;\n\n                    var namespace = namespaces[namespaces.length - 1]; // return key on CIMode\n\n                    var lng = options.lng || this.language;\n                    var appendNamespaceToCIMode =\n                      options.appendNamespaceToCIMode ||\n                      this.options.appendNamespaceToCIMode;\n\n                    if (lng && lng.toLowerCase() === 'cimode') {\n                      if (appendNamespaceToCIMode) {\n                        var nsSeparator = options.nsSeparator || this.options.nsSeparator;\n                        return namespace + nsSeparator + key;\n                      }\n\n                      return key;\n                    } // resolve from store\n\n                    var resolved = this.resolve(keys, options);\n                    var res = resolved && resolved.res;\n                    var resUsedKey = (resolved && resolved.usedKey) || key;\n                    var resExactUsedKey = (resolved && resolved.exactUsedKey) || key;\n                    var resType = Object.prototype.toString.apply(res);\n                    var noObject = [\n                      '[object Number]',\n                      '[object Function]',\n                      '[object RegExp]'\n                    ];\n                    var joinArrays =\n                      options.joinArrays !== undefined\n                        ? options.joinArrays\n                        : this.options.joinArrays; // object\n\n                    var handleAsObjectInI18nFormat =\n                      !this.i18nFormat || this.i18nFormat.handleAsObject;\n                    var handleAsObject =\n                      typeof res !== 'string' &&\n                      typeof res !== 'boolean' &&\n                      typeof res !== 'number';\n\n                    if (\n                      handleAsObjectInI18nFormat &&\n                      res &&\n                      handleAsObject &&\n                      noObject.indexOf(resType) < 0 &&\n                      !(typeof joinArrays === 'string' && resType === '[object Array]')\n                    ) {\n                      if (!options.returnObjects && !this.options.returnObjects) {\n                        this.logger.warn(\n                          'accessing an object - but returnObjects options is not enabled!'\n                        );\n                        return this.options.returnedObjectHandler\n                          ? this.options.returnedObjectHandler(resUsedKey, res, options)\n                          : \"key '\"\n                              .concat(key, ' (')\n                              .concat(\n                                this.language,\n                                \")' returned an object instead of string.\"\n                              );\n                      } // if we got a separator we loop over children - else we just return object as is\n                      // as having it set to false means no hierarchy so no lookup for nested values\n\n                      if (keySeparator) {\n                        var resTypeIsArray = resType === '[object Array]';\n                        var copy$$1 = resTypeIsArray ? [] : {}; // apply child translation on a copy\n\n                        /* eslint no-restricted-syntax: 0 */\n\n                        var newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;\n\n                        for (var m in res) {\n                          if (Object.prototype.hasOwnProperty.call(res, m)) {\n                            var deepKey = ''\n                              .concat(newKeyToUse)\n                              .concat(keySeparator)\n                              .concat(m);\n                            copy$$1[m] = this.translate(\n                              deepKey,\n                              _objectSpread({}, options, {\n                                joinArrays: false,\n                                ns: namespaces\n                              })\n                            );\n                            if (copy$$1[m] === deepKey) copy$$1[m] = res[m]; // if nothing found use orginal value as fallback\n                          }\n                        }\n\n                        res = copy$$1;\n                      }\n                    } else if (\n                      handleAsObjectInI18nFormat &&\n                      typeof joinArrays === 'string' &&\n                      resType === '[object Array]'\n                    ) {\n                      // array special treatment\n                      res = res.join(joinArrays);\n                      if (res) res = this.extendTranslation(res, keys, options);\n                    } else {\n                      // string, empty or null\n                      var usedDefault = false;\n                      var usedKey = false; // fallback value\n\n                      if (!this.isValidLookup(res) && options.defaultValue !== undefined) {\n                        usedDefault = true;\n\n                        if (options.count !== undefined) {\n                          var suffix = this.pluralResolver.getSuffix(lng, options.count);\n                          res = options['defaultValue'.concat(suffix)];\n                        }\n\n                        if (!res) res = options.defaultValue;\n                      }\n\n                      if (!this.isValidLookup(res)) {\n                        usedKey = true;\n                        res = key;\n                      } // save missing\n\n                      var updateMissing =\n                        options.defaultValue &&\n                        options.defaultValue !== res &&\n                        this.options.updateMissing;\n\n                      if (usedKey || usedDefault || updateMissing) {\n                        this.logger.log(\n                          updateMissing ? 'updateKey' : 'missingKey',\n                          lng,\n                          namespace,\n                          key,\n                          updateMissing ? options.defaultValue : res\n                        );\n                        var lngs = [];\n                        var fallbackLngs = this.languageUtils.getFallbackCodes(\n                          this.options.fallbackLng,\n                          options.lng || this.language\n                        );\n\n                        if (\n                          this.options.saveMissingTo === 'fallback' &&\n                          fallbackLngs &&\n                          fallbackLngs[0]\n                        ) {\n                          for (var i = 0; i < fallbackLngs.length; i++) {\n                            lngs.push(fallbackLngs[i]);\n                          }\n                        } else if (this.options.saveMissingTo === 'all') {\n                          lngs = this.languageUtils.toResolveHierarchy(\n                            options.lng || this.language\n                          );\n                        } else {\n                          lngs.push(options.lng || this.language);\n                        }\n\n                        var send = function send(l, k) {\n                          if (_this2.options.missingKeyHandler) {\n                            _this2.options.missingKeyHandler(\n                              l,\n                              namespace,\n                              k,\n                              updateMissing ? options.defaultValue : res,\n                              updateMissing,\n                              options\n                            );\n                          } else if (\n                            _this2.backendConnector &&\n                            _this2.backendConnector.saveMissing\n                          ) {\n                            _this2.backendConnector.saveMissing(\n                              l,\n                              namespace,\n                              k,\n                              updateMissing ? options.defaultValue : res,\n                              updateMissing,\n                              options\n                            );\n                          }\n\n                          _this2.emit('missingKey', l, namespace, k, res);\n                        };\n\n                        if (this.options.saveMissing) {\n                          var needsPluralHandling =\n                            options.count !== undefined &&\n                            typeof options.count !== 'string';\n\n                          if (this.options.saveMissingPlurals && needsPluralHandling) {\n                            lngs.forEach(function(l) {\n                              var plurals = _this2.pluralResolver.getPluralFormsOfKey(\n                                l,\n                                key\n                              );\n\n                              plurals.forEach(function(p) {\n                                return send([l], p);\n                              });\n                            });\n                          } else {\n                            send(lngs, key);\n                          }\n                        }\n                      } // extend\n\n                      res = this.extendTranslation(res, keys, options, resolved); // append namespace if still key\n\n                      if (\n                        usedKey &&\n                        res === key &&\n                        this.options.appendNamespaceToMissingKey\n                      )\n                        res = ''.concat(namespace, ':').concat(key); // parseMissingKeyHandler\n\n                      if (usedKey && this.options.parseMissingKeyHandler)\n                        res = this.options.parseMissingKeyHandler(res);\n                    } // return\n\n                    return res;\n                  }\n                },\n                {\n                  key: 'extendTranslation',\n                  value: function extendTranslation(res, key, options, resolved) {\n                    var _this3 = this;\n\n                    if (this.i18nFormat && this.i18nFormat.parse) {\n                      res = this.i18nFormat.parse(\n                        res,\n                        options,\n                        resolved.usedLng,\n                        resolved.usedNS,\n                        resolved.usedKey,\n                        {\n                          resolved: resolved\n                        }\n                      );\n                    } else if (!options.skipInterpolation) {\n                      // i18next.parsing\n                      if (options.interpolation)\n                        this.interpolator.init(\n                          _objectSpread({}, options, {\n                            interpolation: _objectSpread(\n                              {},\n                              this.options.interpolation,\n                              options.interpolation\n                            )\n                          })\n                        ); // interpolate\n\n                      var data =\n                        options.replace && typeof options.replace !== 'string'\n                          ? options.replace\n                          : options;\n                      if (this.options.interpolation.defaultVariables)\n                        data = _objectSpread(\n                          {},\n                          this.options.interpolation.defaultVariables,\n                          data\n                        );\n                      res = this.interpolator.interpolate(\n                        res,\n                        data,\n                        options.lng || this.language,\n                        options\n                      ); // nesting\n\n                      if (options.nest !== false)\n                        res = this.interpolator.nest(\n                          res,\n                          function() {\n                            return _this3.translate.apply(_this3, arguments);\n                          },\n                          options\n                        );\n                      if (options.interpolation) this.interpolator.reset();\n                    } // post process\n\n                    var postProcess = options.postProcess || this.options.postProcess;\n                    var postProcessorNames =\n                      typeof postProcess === 'string' ? [postProcess] : postProcess;\n\n                    if (\n                      res !== undefined &&\n                      res !== null &&\n                      postProcessorNames &&\n                      postProcessorNames.length &&\n                      options.applyPostProcessor !== false\n                    ) {\n                      res = postProcessor.handle(\n                        postProcessorNames,\n                        res,\n                        key,\n                        this.options && this.options.postProcessPassResolved\n                          ? _objectSpread(\n                              {\n                                i18nResolved: resolved\n                              },\n                              options\n                            )\n                          : options,\n                        this\n                      );\n                    }\n\n                    return res;\n                  }\n                },\n                {\n                  key: 'resolve',\n                  value: function resolve(keys) {\n                    var _this4 = this;\n\n                    var options =\n                      arguments.length > 1 && arguments[1] !== undefined\n                        ? arguments[1]\n                        : {};\n                    var found;\n                    var usedKey; // plain key\n\n                    var exactUsedKey; // key with context / plural\n\n                    var usedLng;\n                    var usedNS;\n                    if (typeof keys === 'string') keys = [keys]; // forEach possible key\n\n                    keys.forEach(function(k) {\n                      if (_this4.isValidLookup(found)) return;\n\n                      var extracted = _this4.extractFromKey(k, options);\n\n                      var key = extracted.key;\n                      usedKey = key;\n                      var namespaces = extracted.namespaces;\n                      if (_this4.options.fallbackNS)\n                        namespaces = namespaces.concat(_this4.options.fallbackNS);\n                      var needsPluralHandling =\n                        options.count !== undefined && typeof options.count !== 'string';\n                      var needsContextHandling =\n                        options.context !== undefined &&\n                        typeof options.context === 'string' &&\n                        options.context !== '';\n                      var codes = options.lngs\n                        ? options.lngs\n                        : _this4.languageUtils.toResolveHierarchy(\n                            options.lng || _this4.language,\n                            options.fallbackLng\n                          );\n                      namespaces.forEach(function(ns) {\n                        if (_this4.isValidLookup(found)) return;\n                        usedNS = ns;\n\n                        if (\n                          !checkedLoadedFor[''.concat(codes[0], '-').concat(ns)] &&\n                          _this4.utils &&\n                          _this4.utils.hasLoadedNamespace &&\n                          !_this4.utils.hasLoadedNamespace(usedNS)\n                        ) {\n                          checkedLoadedFor[''.concat(codes[0], '-').concat(ns)] = true;\n\n                          _this4.logger.warn(\n                            'key \"'\n                              .concat(usedKey, '\" for namespace \"')\n                              .concat(usedNS, '\" for languages \"')\n                              .concat(\n                                codes.join(', '),\n                                '\" won\\'t get resolved as namespace was not yet loaded'\n                              ),\n                            'This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!'\n                          );\n                        }\n\n                        codes.forEach(function(code) {\n                          if (_this4.isValidLookup(found)) return;\n                          usedLng = code;\n                          var finalKey = key;\n                          var finalKeys = [finalKey];\n\n                          if (_this4.i18nFormat && _this4.i18nFormat.addLookupKeys) {\n                            _this4.i18nFormat.addLookupKeys(\n                              finalKeys,\n                              key,\n                              code,\n                              ns,\n                              options\n                            );\n                          } else {\n                            var pluralSuffix;\n                            if (needsPluralHandling)\n                              pluralSuffix = _this4.pluralResolver.getSuffix(\n                                code,\n                                options.count\n                              ); // fallback for plural if context not found\n\n                            if (needsPluralHandling && needsContextHandling)\n                              finalKeys.push(finalKey + pluralSuffix); // get key for context if needed\n\n                            if (needsContextHandling)\n                              finalKeys.push(\n                                (finalKey += ''\n                                  .concat(_this4.options.contextSeparator)\n                                  .concat(options.context))\n                              ); // get key for plural if needed\n\n                            if (needsPluralHandling)\n                              finalKeys.push((finalKey += pluralSuffix));\n                          } // iterate over finalKeys starting with most specific pluralkey (-> contextkey only) -> singularkey only\n\n                          var possibleKey;\n                          /* eslint no-cond-assign: 0 */\n\n                          while ((possibleKey = finalKeys.pop())) {\n                            if (!_this4.isValidLookup(found)) {\n                              exactUsedKey = possibleKey;\n                              found = _this4.getResource(code, ns, possibleKey, options);\n                            }\n                          }\n                        });\n                      });\n                    });\n                    return {\n                      res: found,\n                      usedKey: usedKey,\n                      exactUsedKey: exactUsedKey,\n                      usedLng: usedLng,\n                      usedNS: usedNS\n                    };\n                  }\n                },\n                {\n                  key: 'isValidLookup',\n                  value: function isValidLookup(res) {\n                    return (\n                      res !== undefined &&\n                      !(!this.options.returnNull && res === null) &&\n                      !(!this.options.returnEmptyString && res === '')\n                    );\n                  }\n                },\n                {\n                  key: 'getResource',\n                  value: function getResource(code, ns, key) {\n                    var options =\n                      arguments.length > 3 && arguments[3] !== undefined\n                        ? arguments[3]\n                        : {};\n                    if (this.i18nFormat && this.i18nFormat.getResource)\n                      return this.i18nFormat.getResource(code, ns, key, options);\n                    return this.resourceStore.getResource(code, ns, key, options);\n                  }\n                }\n              ]);\n\n              return Translator;\n            })(EventEmitter);\n\n          function capitalize(string) {\n            return string.charAt(0).toUpperCase() + string.slice(1);\n          }\n\n          var LanguageUtil =\n            /*#__PURE__*/\n            (function() {\n              function LanguageUtil(options) {\n                _classCallCheck(this, LanguageUtil);\n\n                this.options = options;\n                this.whitelist = this.options.whitelist || false;\n                this.logger = baseLogger.create('languageUtils');\n              }\n\n              _createClass(LanguageUtil, [\n                {\n                  key: 'getScriptPartFromCode',\n                  value: function getScriptPartFromCode(code) {\n                    if (!code || code.indexOf('-') < 0) return null;\n                    var p = code.split('-');\n                    if (p.length === 2) return null;\n                    p.pop();\n                    return this.formatLanguageCode(p.join('-'));\n                  }\n                },\n                {\n                  key: 'getLanguagePartFromCode',\n                  value: function getLanguagePartFromCode(code) {\n                    if (!code || code.indexOf('-') < 0) return code;\n                    var p = code.split('-');\n                    return this.formatLanguageCode(p[0]);\n                  }\n                },\n                {\n                  key: 'formatLanguageCode',\n                  value: function formatLanguageCode(code) {\n                    // http://www.iana.org/assignments/language-tags/language-tags.xhtml\n                    if (typeof code === 'string' && code.indexOf('-') > -1) {\n                      var specialCases = [\n                        'hans',\n                        'hant',\n                        'latn',\n                        'cyrl',\n                        'cans',\n                        'mong',\n                        'arab'\n                      ];\n                      var p = code.split('-');\n\n                      if (this.options.lowerCaseLng) {\n                        p = p.map(function(part) {\n                          return part.toLowerCase();\n                        });\n                      } else if (p.length === 2) {\n                        p[0] = p[0].toLowerCase();\n                        p[1] = p[1].toUpperCase();\n                        if (specialCases.indexOf(p[1].toLowerCase()) > -1)\n                          p[1] = capitalize(p[1].toLowerCase());\n                      } else if (p.length === 3) {\n                        p[0] = p[0].toLowerCase(); // if lenght 2 guess it's a country\n\n                        if (p[1].length === 2) p[1] = p[1].toUpperCase();\n                        if (p[0] !== 'sgn' && p[2].length === 2) p[2] = p[2].toUpperCase();\n                        if (specialCases.indexOf(p[1].toLowerCase()) > -1)\n                          p[1] = capitalize(p[1].toLowerCase());\n                        if (specialCases.indexOf(p[2].toLowerCase()) > -1)\n                          p[2] = capitalize(p[2].toLowerCase());\n                      }\n\n                      return p.join('-');\n                    }\n\n                    return this.options.cleanCode || this.options.lowerCaseLng\n                      ? code.toLowerCase()\n                      : code;\n                  }\n                },\n                {\n                  key: 'isWhitelisted',\n                  value: function isWhitelisted(code) {\n                    if (\n                      this.options.load === 'languageOnly' ||\n                      this.options.nonExplicitWhitelist\n                    ) {\n                      code = this.getLanguagePartFromCode(code);\n                    }\n\n                    return (\n                      !this.whitelist ||\n                      !this.whitelist.length ||\n                      this.whitelist.indexOf(code) > -1\n                    );\n                  }\n                },\n                {\n                  key: 'getFallbackCodes',\n                  value: function getFallbackCodes(fallbacks, code) {\n                    if (!fallbacks) return [];\n                    if (typeof fallbacks === 'string') fallbacks = [fallbacks];\n                    if (Object.prototype.toString.apply(fallbacks) === '[object Array]')\n                      return fallbacks;\n                    if (!code) return fallbacks['default'] || []; // asume we have an object defining fallbacks\n\n                    var found = fallbacks[code];\n                    if (!found) found = fallbacks[this.getScriptPartFromCode(code)];\n                    if (!found) found = fallbacks[this.formatLanguageCode(code)];\n                    if (!found) found = fallbacks['default'];\n                    return found || [];\n                  }\n                },\n                {\n                  key: 'toResolveHierarchy',\n                  value: function toResolveHierarchy(code, fallbackCode) {\n                    var _this = this;\n\n                    var fallbackCodes = this.getFallbackCodes(\n                      fallbackCode || this.options.fallbackLng || [],\n                      code\n                    );\n                    var codes = [];\n\n                    var addCode = function addCode(c) {\n                      if (!c) return;\n\n                      if (_this.isWhitelisted(c)) {\n                        codes.push(c);\n                      } else {\n                        _this.logger.warn(\n                          'rejecting non-whitelisted language code: '.concat(c)\n                        );\n                      }\n                    };\n\n                    if (typeof code === 'string' && code.indexOf('-') > -1) {\n                      if (this.options.load !== 'languageOnly')\n                        addCode(this.formatLanguageCode(code));\n                      if (\n                        this.options.load !== 'languageOnly' &&\n                        this.options.load !== 'currentOnly'\n                      )\n                        addCode(this.getScriptPartFromCode(code));\n                      if (this.options.load !== 'currentOnly')\n                        addCode(this.getLanguagePartFromCode(code));\n                    } else if (typeof code === 'string') {\n                      addCode(this.formatLanguageCode(code));\n                    }\n\n                    fallbackCodes.forEach(function(fc) {\n                      if (codes.indexOf(fc) < 0) addCode(_this.formatLanguageCode(fc));\n                    });\n                    return codes;\n                  }\n                }\n              ]);\n\n              return LanguageUtil;\n            })();\n\n          /* eslint-disable */\n\n          var sets = [\n            {\n              lngs: [\n                'ach',\n                'ak',\n                'am',\n                'arn',\n                'br',\n                'fil',\n                'gun',\n                'ln',\n                'mfe',\n                'mg',\n                'mi',\n                'oc',\n                'pt',\n                'pt-BR',\n                'tg',\n                'ti',\n                'tr',\n                'uz',\n                'wa'\n              ],\n              nr: [1, 2],\n              fc: 1\n            },\n            {\n              lngs: [\n                'af',\n                'an',\n                'ast',\n                'az',\n                'bg',\n                'bn',\n                'ca',\n                'da',\n                'de',\n                'dev',\n                'el',\n                'en',\n                'eo',\n                'es',\n                'et',\n                'eu',\n                'fi',\n                'fo',\n                'fur',\n                'fy',\n                'gl',\n                'gu',\n                'ha',\n                'hi',\n                'hu',\n                'hy',\n                'ia',\n                'it',\n                'kn',\n                'ku',\n                'lb',\n                'mai',\n                'ml',\n                'mn',\n                'mr',\n                'nah',\n                'nap',\n                'nb',\n                'ne',\n                'nl',\n                'nn',\n                'no',\n                'nso',\n                'pa',\n                'pap',\n                'pms',\n                'ps',\n                'pt-PT',\n                'rm',\n                'sco',\n                'se',\n                'si',\n                'so',\n                'son',\n                'sq',\n                'sv',\n                'sw',\n                'ta',\n                'te',\n                'tk',\n                'ur',\n                'yo'\n              ],\n              nr: [1, 2],\n              fc: 2\n            },\n            {\n              lngs: [\n                'ay',\n                'bo',\n                'cgg',\n                'fa',\n                'id',\n                'ja',\n                'jbo',\n                'ka',\n                'kk',\n                'km',\n                'ko',\n                'ky',\n                'lo',\n                'ms',\n                'sah',\n                'su',\n                'th',\n                'tt',\n                'ug',\n                'vi',\n                'wo',\n                'zh'\n              ],\n              nr: [1],\n              fc: 3\n            },\n            {\n              lngs: ['be', 'bs', 'cnr', 'dz', 'hr', 'ru', 'sr', 'uk'],\n              nr: [1, 2, 5],\n              fc: 4\n            },\n            {\n              lngs: ['ar'],\n              nr: [0, 1, 2, 3, 11, 100],\n              fc: 5\n            },\n            {\n              lngs: ['cs', 'sk'],\n              nr: [1, 2, 5],\n              fc: 6\n            },\n            {\n              lngs: ['csb', 'pl'],\n              nr: [1, 2, 5],\n              fc: 7\n            },\n            {\n              lngs: ['cy'],\n              nr: [1, 2, 3, 8],\n              fc: 8\n            },\n            {\n              lngs: ['fr'],\n              nr: [1, 2],\n              fc: 9\n            },\n            {\n              lngs: ['ga'],\n              nr: [1, 2, 3, 7, 11],\n              fc: 10\n            },\n            {\n              lngs: ['gd'],\n              nr: [1, 2, 3, 20],\n              fc: 11\n            },\n            {\n              lngs: ['is'],\n              nr: [1, 2],\n              fc: 12\n            },\n            {\n              lngs: ['jv'],\n              nr: [0, 1],\n              fc: 13\n            },\n            {\n              lngs: ['kw'],\n              nr: [1, 2, 3, 4],\n              fc: 14\n            },\n            {\n              lngs: ['lt'],\n              nr: [1, 2, 10],\n              fc: 15\n            },\n            {\n              lngs: ['lv'],\n              nr: [1, 2, 0],\n              fc: 16\n            },\n            {\n              lngs: ['mk'],\n              nr: [1, 2],\n              fc: 17\n            },\n            {\n              lngs: ['mnk'],\n              nr: [0, 1, 2],\n              fc: 18\n            },\n            {\n              lngs: ['mt'],\n              nr: [1, 2, 11, 20],\n              fc: 19\n            },\n            {\n              lngs: ['or'],\n              nr: [2, 1],\n              fc: 2\n            },\n            {\n              lngs: ['ro'],\n              nr: [1, 2, 20],\n              fc: 20\n            },\n            {\n              lngs: ['sl'],\n              nr: [5, 1, 2, 3],\n              fc: 21\n            },\n            {\n              lngs: ['he'],\n              nr: [1, 2, 20, 21],\n              fc: 22\n            }\n          ];\n          var _rulesPluralsTypes = {\n            1: function _(n) {\n              return Number(n > 1);\n            },\n            2: function _(n) {\n              return Number(n != 1);\n            },\n            3: function _(n) {\n              return 0;\n            },\n            4: function _(n) {\n              return Number(\n                n % 10 == 1 && n % 100 != 11\n                  ? 0\n                  : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2\n              );\n            },\n            5: function _(n) {\n              return Number(\n                n === 0\n                  ? 0\n                  : n == 1\n                    ? 1\n                    : n == 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5\n              );\n            },\n            6: function _(n) {\n              return Number(n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2);\n            },\n            7: function _(n) {\n              return Number(\n                n == 1\n                  ? 0\n                  : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2\n              );\n            },\n            8: function _(n) {\n              return Number(n == 1 ? 0 : n == 2 ? 1 : n != 8 && n != 11 ? 2 : 3);\n            },\n            9: function _(n) {\n              return Number(n >= 2);\n            },\n            10: function _(n) {\n              return Number(n == 1 ? 0 : n == 2 ? 1 : n < 7 ? 2 : n < 11 ? 3 : 4);\n            },\n            11: function _(n) {\n              return Number(\n                n == 1 || n == 11 ? 0 : n == 2 || n == 12 ? 1 : n > 2 && n < 20 ? 2 : 3\n              );\n            },\n            12: function _(n) {\n              return Number(n % 10 != 1 || n % 100 == 11);\n            },\n            13: function _(n) {\n              return Number(n !== 0);\n            },\n            14: function _(n) {\n              return Number(n == 1 ? 0 : n == 2 ? 1 : n == 3 ? 2 : 3);\n            },\n            15: function _(n) {\n              return Number(\n                n % 10 == 1 && n % 100 != 11\n                  ? 0\n                  : n % 10 >= 2 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2\n              );\n            },\n            16: function _(n) {\n              return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n !== 0 ? 1 : 2);\n            },\n            17: function _(n) {\n              return Number(n == 1 || n % 10 == 1 ? 0 : 1);\n            },\n            18: function _(n) {\n              return Number(n == 0 ? 0 : n == 1 ? 1 : 2);\n            },\n            19: function _(n) {\n              return Number(\n                n == 1\n                  ? 0\n                  : n === 0 || (n % 100 > 1 && n % 100 < 11)\n                    ? 1\n                    : n % 100 > 10 && n % 100 < 20 ? 2 : 3\n              );\n            },\n            20: function _(n) {\n              return Number(n == 1 ? 0 : n === 0 || (n % 100 > 0 && n % 100 < 20) ? 1 : 2);\n            },\n            21: function _(n) {\n              return Number(\n                n % 100 == 1 ? 1 : n % 100 == 2 ? 2 : n % 100 == 3 || n % 100 == 4 ? 3 : 0\n              );\n            },\n            22: function _(n) {\n              return Number(\n                n === 1 ? 0 : n === 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3\n              );\n            }\n          };\n          /* eslint-enable */\n\n          function createRules() {\n            var rules = {};\n            sets.forEach(function(set) {\n              set.lngs.forEach(function(l) {\n                rules[l] = {\n                  numbers: set.nr,\n                  plurals: _rulesPluralsTypes[set.fc]\n                };\n              });\n            });\n            return rules;\n          }\n\n          var PluralResolver =\n            /*#__PURE__*/\n            (function() {\n              function PluralResolver(languageUtils) {\n                var options =\n                  arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n                _classCallCheck(this, PluralResolver);\n\n                this.languageUtils = languageUtils;\n                this.options = options;\n                this.logger = baseLogger.create('pluralResolver');\n                this.rules = createRules();\n              }\n\n              _createClass(PluralResolver, [\n                {\n                  key: 'addRule',\n                  value: function addRule(lng, obj) {\n                    this.rules[lng] = obj;\n                  }\n                },\n                {\n                  key: 'getRule',\n                  value: function getRule(code) {\n                    return (\n                      this.rules[code] ||\n                      this.rules[this.languageUtils.getLanguagePartFromCode(code)]\n                    );\n                  }\n                },\n                {\n                  key: 'needsPlural',\n                  value: function needsPlural(code) {\n                    var rule = this.getRule(code);\n                    return rule && rule.numbers.length > 1;\n                  }\n                },\n                {\n                  key: 'getPluralFormsOfKey',\n                  value: function getPluralFormsOfKey(code, key) {\n                    var _this = this;\n\n                    var ret = [];\n                    var rule = this.getRule(code);\n                    if (!rule) return ret;\n                    rule.numbers.forEach(function(n) {\n                      var suffix = _this.getSuffix(code, n);\n\n                      ret.push(''.concat(key).concat(suffix));\n                    });\n                    return ret;\n                  }\n                },\n                {\n                  key: 'getSuffix',\n                  value: function getSuffix(code, count) {\n                    var _this2 = this;\n\n                    var rule = this.getRule(code);\n\n                    if (rule) {\n                      // if (rule.numbers.length === 1) return ''; // only singular\n                      var idx = rule.noAbs\n                        ? rule.plurals(count)\n                        : rule.plurals(Math.abs(count));\n                      var suffix = rule.numbers[idx]; // special treatment for lngs only having singular and plural\n\n                      if (\n                        this.options.simplifyPluralSuffix &&\n                        rule.numbers.length === 2 &&\n                        rule.numbers[0] === 1\n                      ) {\n                        if (suffix === 2) {\n                          suffix = 'plural';\n                        } else if (suffix === 1) {\n                          suffix = '';\n                        }\n                      }\n\n                      var returnSuffix = function returnSuffix() {\n                        return _this2.options.prepend && suffix.toString()\n                          ? _this2.options.prepend + suffix.toString()\n                          : suffix.toString();\n                      }; // COMPATIBILITY JSON\n                      // v1\n\n                      if (this.options.compatibilityJSON === 'v1') {\n                        if (suffix === 1) return '';\n                        if (typeof suffix === 'number')\n                          return '_plural_'.concat(suffix.toString());\n                        return returnSuffix();\n                      } else if (\n                        /* v2 */\n                        this.options.compatibilityJSON === 'v2'\n                      ) {\n                        return returnSuffix();\n                      } else if (\n                        /* v3 - gettext index */\n                        this.options.simplifyPluralSuffix &&\n                        rule.numbers.length === 2 &&\n                        rule.numbers[0] === 1\n                      ) {\n                        return returnSuffix();\n                      }\n\n                      return this.options.prepend && idx.toString()\n                        ? this.options.prepend + idx.toString()\n                        : idx.toString();\n                    }\n\n                    this.logger.warn('no plural rule found for: '.concat(code));\n                    return '';\n                  }\n                }\n              ]);\n\n              return PluralResolver;\n            })();\n\n          var Interpolator =\n            /*#__PURE__*/\n            (function() {\n              function Interpolator() {\n                var options =\n                  arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n                _classCallCheck(this, Interpolator);\n\n                this.logger = baseLogger.create('interpolator');\n                this.options = options;\n\n                this.format =\n                  (options.interpolation && options.interpolation.format) ||\n                  function(value) {\n                    return value;\n                  };\n\n                this.init(options);\n              }\n              /* eslint no-param-reassign: 0 */\n\n              _createClass(Interpolator, [\n                {\n                  key: 'init',\n                  value: function init() {\n                    var options =\n                      arguments.length > 0 && arguments[0] !== undefined\n                        ? arguments[0]\n                        : {};\n                    if (!options.interpolation)\n                      options.interpolation = {\n                        escapeValue: true\n                      };\n                    var iOpts = options.interpolation;\n                    this.escape = iOpts.escape !== undefined ? iOpts.escape : escape;\n                    this.escapeValue =\n                      iOpts.escapeValue !== undefined ? iOpts.escapeValue : true;\n                    this.useRawValueToEscape =\n                      iOpts.useRawValueToEscape !== undefined\n                        ? iOpts.useRawValueToEscape\n                        : false;\n                    this.prefix = iOpts.prefix\n                      ? regexEscape(iOpts.prefix)\n                      : iOpts.prefixEscaped || '{{';\n                    this.suffix = iOpts.suffix\n                      ? regexEscape(iOpts.suffix)\n                      : iOpts.suffixEscaped || '}}';\n                    this.formatSeparator = iOpts.formatSeparator\n                      ? iOpts.formatSeparator\n                      : iOpts.formatSeparator || ',';\n                    this.unescapePrefix = iOpts.unescapeSuffix\n                      ? ''\n                      : iOpts.unescapePrefix || '-';\n                    this.unescapeSuffix = this.unescapePrefix\n                      ? ''\n                      : iOpts.unescapeSuffix || '';\n                    this.nestingPrefix = iOpts.nestingPrefix\n                      ? regexEscape(iOpts.nestingPrefix)\n                      : iOpts.nestingPrefixEscaped || regexEscape('$t(');\n                    this.nestingSuffix = iOpts.nestingSuffix\n                      ? regexEscape(iOpts.nestingSuffix)\n                      : iOpts.nestingSuffixEscaped || regexEscape(')');\n                    this.maxReplaces = iOpts.maxReplaces ? iOpts.maxReplaces : 1000; // the regexp\n\n                    this.resetRegExp();\n                  }\n                },\n                {\n                  key: 'reset',\n                  value: function reset() {\n                    if (this.options) this.init(this.options);\n                  }\n                },\n                {\n                  key: 'resetRegExp',\n                  value: function resetRegExp() {\n                    // the regexp\n                    var regexpStr = ''.concat(this.prefix, '(.+?)').concat(this.suffix);\n                    this.regexp = new RegExp(regexpStr, 'g');\n                    var regexpUnescapeStr = ''\n                      .concat(this.prefix)\n                      .concat(this.unescapePrefix, '(.+?)')\n                      .concat(this.unescapeSuffix)\n                      .concat(this.suffix);\n                    this.regexpUnescape = new RegExp(regexpUnescapeStr, 'g');\n                    var nestingRegexpStr = ''\n                      .concat(this.nestingPrefix, '(.+?)')\n                      .concat(this.nestingSuffix);\n                    this.nestingRegexp = new RegExp(nestingRegexpStr, 'g');\n                  }\n                },\n                {\n                  key: 'interpolate',\n                  value: function interpolate(str, data, lng, options) {\n                    var _this = this;\n\n                    var match;\n                    var value;\n                    var replaces;\n                    var defaultData =\n                      (this.options &&\n                        this.options.interpolation &&\n                        this.options.interpolation.defaultVariables) ||\n                      {};\n\n                    function regexSafe(val) {\n                      return val.replace(/\\$/g, '$$$$');\n                    }\n\n                    var handleFormat = function handleFormat(key) {\n                      if (key.indexOf(_this.formatSeparator) < 0) {\n                        return getPathWithDefaults(data, defaultData, key);\n                      }\n\n                      var p = key.split(_this.formatSeparator);\n                      var k = p.shift().trim();\n                      var f = p.join(_this.formatSeparator).trim();\n                      return _this.format(\n                        getPathWithDefaults(data, defaultData, k),\n                        f,\n                        lng\n                      );\n                    };\n\n                    this.resetRegExp();\n                    var missingInterpolationHandler =\n                      (options && options.missingInterpolationHandler) ||\n                      this.options.missingInterpolationHandler;\n                    replaces = 0; // unescape if has unescapePrefix/Suffix\n\n                    /* eslint no-cond-assign: 0 */\n\n                    while ((match = this.regexpUnescape.exec(str))) {\n                      value = handleFormat(match[1].trim());\n\n                      if (value === undefined) {\n                        if (typeof missingInterpolationHandler === 'function') {\n                          var temp = missingInterpolationHandler(str, match, options);\n                          value = typeof temp === 'string' ? temp : '';\n                        } else {\n                          this.logger.warn(\n                            'missed to pass in variable '\n                              .concat(match[1], ' for interpolating ')\n                              .concat(str)\n                          );\n                          value = '';\n                        }\n                      } else if (typeof value !== 'string' && !this.useRawValueToEscape) {\n                        value = makeString(value);\n                      }\n\n                      str = str.replace(match[0], regexSafe(value));\n                      this.regexpUnescape.lastIndex = 0;\n                      replaces++;\n\n                      if (replaces >= this.maxReplaces) {\n                        break;\n                      }\n                    }\n\n                    replaces = 0; // regular escape on demand\n\n                    while ((match = this.regexp.exec(str))) {\n                      value = handleFormat(match[1].trim());\n\n                      if (value === undefined) {\n                        if (typeof missingInterpolationHandler === 'function') {\n                          var _temp = missingInterpolationHandler(str, match, options);\n\n                          value = typeof _temp === 'string' ? _temp : '';\n                        } else {\n                          this.logger.warn(\n                            'missed to pass in variable '\n                              .concat(match[1], ' for interpolating ')\n                              .concat(str)\n                          );\n                          value = '';\n                        }\n                      } else if (typeof value !== 'string' && !this.useRawValueToEscape) {\n                        value = makeString(value);\n                      }\n\n                      value = this.escapeValue\n                        ? regexSafe(this.escape(value))\n                        : regexSafe(value);\n                      str = str.replace(match[0], value);\n                      this.regexp.lastIndex = 0;\n                      replaces++;\n\n                      if (replaces >= this.maxReplaces) {\n                        break;\n                      }\n                    }\n\n                    return str;\n                  }\n                },\n                {\n                  key: 'nest',\n                  value: function nest(str, fc) {\n                    var options =\n                      arguments.length > 2 && arguments[2] !== undefined\n                        ? arguments[2]\n                        : {};\n                    var match;\n                    var value;\n\n                    var clonedOptions = _objectSpread({}, options);\n\n                    clonedOptions.applyPostProcessor = false; // avoid post processing on nested lookup\n\n                    delete clonedOptions.defaultValue; // assert we do not get a endless loop on interpolating defaultValue again and again\n                    // if value is something like \"myKey\": \"lorem $(anotherKey, { \"count\": {{aValueInOptions}} })\"\n\n                    function handleHasOptions(key, inheritedOptions) {\n                      if (key.indexOf(',') < 0) return key;\n                      var p = key.split(',');\n                      key = p.shift();\n                      var optionsString = p.join(',');\n                      optionsString = this.interpolate(optionsString, clonedOptions);\n                      optionsString = optionsString.replace(/'/g, '\"');\n\n                      try {\n                        clonedOptions = JSON.parse(optionsString);\n                        if (inheritedOptions)\n                          clonedOptions = _objectSpread(\n                            {},\n                            inheritedOptions,\n                            clonedOptions\n                          );\n                      } catch (e) {\n                        this.logger.error(\n                          'failed parsing options string in nesting for key '.concat(key),\n                          e\n                        );\n                      } // assert we do not get a endless loop on interpolating defaultValue again and again\n\n                      delete clonedOptions.defaultValue;\n                      return key;\n                    } // regular escape on demand\n\n                    while ((match = this.nestingRegexp.exec(str))) {\n                      value = fc(\n                        handleHasOptions.call(this, match[1].trim(), clonedOptions),\n                        clonedOptions\n                      ); // is only the nesting key (key1 = '$(key2)') return the value without stringify\n\n                      if (value && match[0] === str && typeof value !== 'string')\n                        return value; // no string to include or empty\n\n                      if (typeof value !== 'string') value = makeString(value);\n\n                      if (!value) {\n                        this.logger.warn(\n                          'missed to resolve '.concat(match[1], ' for nesting ').concat(str)\n                        );\n                        value = '';\n                      } // Nested keys should not be escaped by default #854\n                      // value = this.escapeValue ? regexSafe(utils.escape(value)) : regexSafe(value);\n\n                      str = str.replace(match[0], value);\n                      this.regexp.lastIndex = 0;\n                    }\n\n                    return str;\n                  }\n                }\n              ]);\n\n              return Interpolator;\n            })();\n\n          function remove(arr, what) {\n            var found = arr.indexOf(what);\n\n            while (found !== -1) {\n              arr.splice(found, 1);\n              found = arr.indexOf(what);\n            }\n          }\n\n          var Connector =\n            /*#__PURE__*/\n            (function(_EventEmitter) {\n              _inherits(Connector, _EventEmitter);\n\n              function Connector(backend, store, services) {\n                var _this;\n\n                var options =\n                  arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n                _classCallCheck(this, Connector);\n\n                _this = _possibleConstructorReturn(\n                  this,\n                  _getPrototypeOf(Connector).call(this)\n                );\n                EventEmitter.call(_assertThisInitialized(_this)); // <=IE10 fix (unable to call parent constructor)\n\n                _this.backend = backend;\n                _this.store = store;\n                _this.services = services;\n                _this.languageUtils = services.languageUtils;\n                _this.options = options;\n                _this.logger = baseLogger.create('backendConnector');\n                _this.state = {};\n                _this.queue = [];\n\n                if (_this.backend && _this.backend.init) {\n                  _this.backend.init(services, options.backend, options);\n                }\n\n                return _this;\n              }\n\n              _createClass(Connector, [\n                {\n                  key: 'queueLoad',\n                  value: function queueLoad(languages, namespaces, options, callback) {\n                    var _this2 = this;\n\n                    // find what needs to be loaded\n                    var toLoad = [];\n                    var pending = [];\n                    var toLoadLanguages = [];\n                    var toLoadNamespaces = [];\n                    languages.forEach(function(lng) {\n                      var hasAllNamespaces = true;\n                      namespaces.forEach(function(ns) {\n                        var name = ''.concat(lng, '|').concat(ns);\n\n                        if (!options.reload && _this2.store.hasResourceBundle(lng, ns)) {\n                          _this2.state[name] = 2; // loaded\n                        } else if (_this2.state[name] < 0);\n                        else if (_this2.state[name] === 1) {\n                          if (pending.indexOf(name) < 0) pending.push(name);\n                        } else {\n                          _this2.state[name] = 1; // pending\n\n                          hasAllNamespaces = false;\n                          if (pending.indexOf(name) < 0) pending.push(name);\n                          if (toLoad.indexOf(name) < 0) toLoad.push(name);\n                          if (toLoadNamespaces.indexOf(ns) < 0) toLoadNamespaces.push(ns);\n                        }\n                      });\n                      if (!hasAllNamespaces) toLoadLanguages.push(lng);\n                    });\n\n                    if (toLoad.length || pending.length) {\n                      this.queue.push({\n                        pending: pending,\n                        loaded: {},\n                        errors: [],\n                        callback: callback\n                      });\n                    }\n\n                    return {\n                      toLoad: toLoad,\n                      pending: pending,\n                      toLoadLanguages: toLoadLanguages,\n                      toLoadNamespaces: toLoadNamespaces\n                    };\n                  }\n                },\n                {\n                  key: 'loaded',\n                  value: function loaded(name, err, data) {\n                    var _name$split = name.split('|'),\n                      _name$split2 = _slicedToArray(_name$split, 2),\n                      lng = _name$split2[0],\n                      ns = _name$split2[1];\n\n                    if (err) this.emit('failedLoading', lng, ns, err);\n\n                    if (data) {\n                      this.store.addResourceBundle(lng, ns, data);\n                    } // set loaded\n\n                    this.state[name] = err ? -1 : 2; // consolidated loading done in this run - only emit once for a loaded namespace\n\n                    var loaded = {}; // callback if ready\n\n                    this.queue.forEach(function(q) {\n                      pushPath(q.loaded, [lng], ns);\n                      remove(q.pending, name);\n                      if (err) q.errors.push(err);\n\n                      if (q.pending.length === 0 && !q.done) {\n                        // only do once per loaded -> this.emit('loaded', q.loaded);\n                        Object.keys(q.loaded).forEach(function(l) {\n                          if (!loaded[l]) loaded[l] = [];\n\n                          if (q.loaded[l].length) {\n                            q.loaded[l].forEach(function(ns) {\n                              if (loaded[l].indexOf(ns) < 0) loaded[l].push(ns);\n                            });\n                          }\n                        });\n                        /* eslint no-param-reassign: 0 */\n\n                        q.done = true;\n\n                        if (q.errors.length) {\n                          q.callback(q.errors);\n                        } else {\n                          q.callback();\n                        }\n                      }\n                    }); // emit consolidated loaded event\n\n                    this.emit('loaded', loaded); // remove done load requests\n\n                    this.queue = this.queue.filter(function(q) {\n                      return !q.done;\n                    });\n                  }\n                },\n                {\n                  key: 'read',\n                  value: function read(lng, ns, fcName) {\n                    var _this3 = this;\n\n                    var tried =\n                      arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;\n                    var wait =\n                      arguments.length > 4 && arguments[4] !== undefined\n                        ? arguments[4]\n                        : 250;\n                    var callback = arguments.length > 5 ? arguments[5] : undefined;\n                    if (!lng.length) return callback(null, {}); // noting to load\n\n                    return this.backend[fcName](lng, ns, function(err, data) {\n                      if (\n                        err &&\n                        data &&\n                        /* = retryFlag */\n                        tried < 5\n                      ) {\n                        setTimeout(function() {\n                          _this3.read.call(\n                            _this3,\n                            lng,\n                            ns,\n                            fcName,\n                            tried + 1,\n                            wait * 2,\n                            callback\n                          );\n                        }, wait);\n                        return;\n                      }\n\n                      callback(err, data);\n                    });\n                  }\n                  /* eslint consistent-return: 0 */\n                },\n                {\n                  key: 'prepareLoading',\n                  value: function prepareLoading(languages, namespaces) {\n                    var _this4 = this;\n\n                    var options =\n                      arguments.length > 2 && arguments[2] !== undefined\n                        ? arguments[2]\n                        : {};\n                    var callback = arguments.length > 3 ? arguments[3] : undefined;\n\n                    if (!this.backend) {\n                      this.logger.warn(\n                        'No backend was added via i18next.use. Will not load resources.'\n                      );\n                      return callback && callback();\n                    }\n\n                    if (typeof languages === 'string')\n                      languages = this.languageUtils.toResolveHierarchy(languages);\n                    if (typeof namespaces === 'string') namespaces = [namespaces];\n                    var toLoad = this.queueLoad(languages, namespaces, options, callback);\n\n                    if (!toLoad.toLoad.length) {\n                      if (!toLoad.pending.length) callback(); // nothing to load and no pendings...callback now\n\n                      return null; // pendings will trigger callback\n                    }\n\n                    toLoad.toLoad.forEach(function(name) {\n                      _this4.loadOne(name);\n                    });\n                  }\n                },\n                {\n                  key: 'load',\n                  value: function load(languages, namespaces, callback) {\n                    this.prepareLoading(languages, namespaces, {}, callback);\n                  }\n                },\n                {\n                  key: 'reload',\n                  value: function reload(languages, namespaces, callback) {\n                    this.prepareLoading(\n                      languages,\n                      namespaces,\n                      {\n                        reload: true\n                      },\n                      callback\n                    );\n                  }\n                },\n                {\n                  key: 'loadOne',\n                  value: function loadOne(name) {\n                    var _this5 = this;\n\n                    var prefix =\n                      arguments.length > 1 && arguments[1] !== undefined\n                        ? arguments[1]\n                        : '';\n\n                    var _name$split3 = name.split('|'),\n                      _name$split4 = _slicedToArray(_name$split3, 2),\n                      lng = _name$split4[0],\n                      ns = _name$split4[1];\n\n                    this.read(lng, ns, 'read', null, null, function(err, data) {\n                      if (err)\n                        _this5.logger.warn(\n                          ''\n                            .concat(prefix, 'loading namespace ')\n                            .concat(ns, ' for language ')\n                            .concat(lng, ' failed'),\n                          err\n                        );\n                      if (!err && data)\n                        _this5.logger.log(\n                          ''\n                            .concat(prefix, 'loaded namespace ')\n                            .concat(ns, ' for language ')\n                            .concat(lng),\n                          data\n                        );\n\n                      _this5.loaded(name, err, data);\n                    });\n                  }\n                },\n                {\n                  key: 'saveMissing',\n                  value: function saveMissing(\n                    languages,\n                    namespace,\n                    key,\n                    fallbackValue,\n                    isUpdate\n                  ) {\n                    var options =\n                      arguments.length > 5 && arguments[5] !== undefined\n                        ? arguments[5]\n                        : {};\n\n                    if (\n                      this.services.utils &&\n                      this.services.utils.hasLoadedNamespace &&\n                      !this.services.utils.hasLoadedNamespace(namespace)\n                    ) {\n                      this.logger.warn(\n                        'did not save key \"'\n                          .concat(key, '\" for namespace \"')\n                          .concat(namespace, '\" as the namespace was not yet loaded'),\n                        'This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!'\n                      );\n                      return;\n                    } // ignore non valid keys\n\n                    if (key === undefined || key === null || key === '') return;\n\n                    if (this.backend && this.backend.create) {\n                      this.backend.create(\n                        languages,\n                        namespace,\n                        key,\n                        fallbackValue,\n                        null,\n                        /* unused callback */\n                        _objectSpread({}, options, {\n                          isUpdate: isUpdate\n                        })\n                      );\n                    } // write to store to avoid resending\n\n                    if (!languages || !languages[0]) return;\n                    this.store.addResource(languages[0], namespace, key, fallbackValue);\n                  }\n                }\n              ]);\n\n              return Connector;\n            })(EventEmitter);\n\n          function get() {\n            return {\n              debug: false,\n              initImmediate: true,\n              ns: ['translation'],\n              defaultNS: ['translation'],\n              fallbackLng: ['dev'],\n              fallbackNS: false,\n              // string or array of namespaces\n              whitelist: false,\n              // array with whitelisted languages\n              nonExplicitWhitelist: false,\n              load: 'all',\n              // | currentOnly | languageOnly\n              preload: false,\n              // array with preload languages\n              simplifyPluralSuffix: true,\n              keySeparator: '.',\n              nsSeparator: ':',\n              pluralSeparator: '_',\n              contextSeparator: '_',\n              partialBundledLanguages: false,\n              // allow bundling certain languages that are not remotely fetched\n              saveMissing: false,\n              // enable to send missing values\n              updateMissing: false,\n              // enable to update default values if different from translated value (only useful on initial development, or when keeping code as source of truth)\n              saveMissingTo: 'fallback',\n              // 'current' || 'all'\n              saveMissingPlurals: true,\n              // will save all forms not only singular key\n              missingKeyHandler: false,\n              // function(lng, ns, key, fallbackValue) -> override if prefer on handling\n              missingInterpolationHandler: false,\n              // function(str, match)\n              postProcess: false,\n              // string or array of postProcessor names\n              postProcessPassResolved: false,\n              // pass resolved object into 'options.i18nResolved' for postprocessor\n              returnNull: true,\n              // allows null value as valid translation\n              returnEmptyString: true,\n              // allows empty string value as valid translation\n              returnObjects: false,\n              joinArrays: false,\n              // or string to join array\n              returnedObjectHandler: false,\n              // function(key, value, options) triggered if key returns object but returnObjects is set to false\n              parseMissingKeyHandler: false,\n              // function(key) parsed a key that was not found in t() before returning\n              appendNamespaceToMissingKey: false,\n              appendNamespaceToCIMode: false,\n              overloadTranslationOptionHandler: function handle(args) {\n                var ret = {};\n                if (_typeof(args[1]) === 'object') ret = args[1];\n                if (typeof args[1] === 'string') ret.defaultValue = args[1];\n                if (typeof args[2] === 'string') ret.tDescription = args[2];\n\n                if (_typeof(args[2]) === 'object' || _typeof(args[3]) === 'object') {\n                  var options = args[3] || args[2];\n                  Object.keys(options).forEach(function(key) {\n                    ret[key] = options[key];\n                  });\n                }\n\n                return ret;\n              },\n              interpolation: {\n                escapeValue: true,\n                format: function format(value, _format, lng) {\n                  return value;\n                },\n                prefix: '{{',\n                suffix: '}}',\n                formatSeparator: ',',\n                // prefixEscaped: '{{',\n                // suffixEscaped: '}}',\n                // unescapeSuffix: '',\n                unescapePrefix: '-',\n                nestingPrefix: '$t(',\n                nestingSuffix: ')',\n                // nestingPrefixEscaped: '$t(',\n                // nestingSuffixEscaped: ')',\n                // defaultVariables: undefined // object that can have values to interpolate on - extends passed in interpolation data\n                maxReplaces: 1000 // max replaces to prevent endless loop\n              }\n            };\n          }\n          /* eslint no-param-reassign: 0 */\n\n          function transformOptions(options) {\n            // create namespace object if namespace is passed in as string\n            if (typeof options.ns === 'string') options.ns = [options.ns];\n            if (typeof options.fallbackLng === 'string')\n              options.fallbackLng = [options.fallbackLng];\n            if (typeof options.fallbackNS === 'string')\n              options.fallbackNS = [options.fallbackNS]; // extend whitelist with cimode\n\n            if (options.whitelist && options.whitelist.indexOf('cimode') < 0) {\n              options.whitelist = options.whitelist.concat(['cimode']);\n            }\n\n            return options;\n          }\n\n          function noop() {}\n\n          var I18n =\n            /*#__PURE__*/\n            (function(_EventEmitter) {\n              _inherits(I18n, _EventEmitter);\n\n              function I18n() {\n                var _this;\n\n                var options =\n                  arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n                var callback = arguments.length > 1 ? arguments[1] : undefined;\n\n                _classCallCheck(this, I18n);\n\n                _this = _possibleConstructorReturn(this, _getPrototypeOf(I18n).call(this));\n                EventEmitter.call(_assertThisInitialized(_this)); // <=IE10 fix (unable to call parent constructor)\n\n                _this.options = transformOptions(options);\n                _this.services = {};\n                _this.logger = baseLogger;\n                _this.modules = {\n                  external: []\n                };\n\n                if (callback && !_this.isInitialized && !options.isClone) {\n                  // https://github.com/i18next/i18next/issues/879\n                  if (!_this.options.initImmediate) {\n                    _this.init(options, callback);\n\n                    return _possibleConstructorReturn(_this, _assertThisInitialized(_this));\n                  }\n\n                  setTimeout(function() {\n                    _this.init(options, callback);\n                  }, 0);\n                }\n\n                return _this;\n              }\n\n              _createClass(I18n, [\n                {\n                  key: 'init',\n                  value: function init() {\n                    var _this2 = this;\n\n                    var options =\n                      arguments.length > 0 && arguments[0] !== undefined\n                        ? arguments[0]\n                        : {};\n                    var callback = arguments.length > 1 ? arguments[1] : undefined;\n\n                    if (typeof options === 'function') {\n                      callback = options;\n                      options = {};\n                    }\n\n                    this.options = _objectSpread(\n                      {},\n                      get(),\n                      this.options,\n                      transformOptions(options)\n                    );\n                    this.format = this.options.interpolation.format;\n                    if (!callback) callback = noop;\n\n                    function createClassOnDemand(ClassOrObject) {\n                      if (!ClassOrObject) return null;\n                      if (typeof ClassOrObject === 'function') return new ClassOrObject();\n                      return ClassOrObject;\n                    } // init services\n\n                    if (!this.options.isClone) {\n                      if (this.modules.logger) {\n                        baseLogger.init(\n                          createClassOnDemand(this.modules.logger),\n                          this.options\n                        );\n                      } else {\n                        baseLogger.init(null, this.options);\n                      }\n\n                      var lu = new LanguageUtil(this.options);\n                      this.store = new ResourceStore(this.options.resources, this.options);\n                      var s = this.services;\n                      s.logger = baseLogger;\n                      s.resourceStore = this.store;\n                      s.languageUtils = lu;\n                      s.pluralResolver = new PluralResolver(lu, {\n                        prepend: this.options.pluralSeparator,\n                        compatibilityJSON: this.options.compatibilityJSON,\n                        simplifyPluralSuffix: this.options.simplifyPluralSuffix\n                      });\n                      s.interpolator = new Interpolator(this.options);\n                      s.utils = {\n                        hasLoadedNamespace: this.hasLoadedNamespace.bind(this)\n                      };\n                      s.backendConnector = new Connector(\n                        createClassOnDemand(this.modules.backend),\n                        s.resourceStore,\n                        s,\n                        this.options\n                      ); // pipe events from backendConnector\n\n                      s.backendConnector.on('*', function(event) {\n                        for (\n                          var _len = arguments.length,\n                            args = new Array(_len > 1 ? _len - 1 : 0),\n                            _key = 1;\n                          _key < _len;\n                          _key++\n                        ) {\n                          args[_key - 1] = arguments[_key];\n                        }\n\n                        _this2.emit.apply(_this2, [event].concat(args));\n                      });\n\n                      if (this.modules.languageDetector) {\n                        s.languageDetector = createClassOnDemand(\n                          this.modules.languageDetector\n                        );\n                        s.languageDetector.init(s, this.options.detection, this.options);\n                      }\n\n                      if (this.modules.i18nFormat) {\n                        s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);\n                        if (s.i18nFormat.init) s.i18nFormat.init(this);\n                      }\n\n                      this.translator = new Translator(this.services, this.options); // pipe events from translator\n\n                      this.translator.on('*', function(event) {\n                        for (\n                          var _len2 = arguments.length,\n                            args = new Array(_len2 > 1 ? _len2 - 1 : 0),\n                            _key2 = 1;\n                          _key2 < _len2;\n                          _key2++\n                        ) {\n                          args[_key2 - 1] = arguments[_key2];\n                        }\n\n                        _this2.emit.apply(_this2, [event].concat(args));\n                      });\n                      this.modules.external.forEach(function(m) {\n                        if (m.init) m.init(_this2);\n                      });\n                    } // append api\n\n                    var storeApi = [\n                      'getResource',\n                      'addResource',\n                      'addResources',\n                      'addResourceBundle',\n                      'removeResourceBundle',\n                      'hasResourceBundle',\n                      'getResourceBundle',\n                      'getDataByLanguage'\n                    ];\n                    storeApi.forEach(function(fcName) {\n                      _this2[fcName] = function() {\n                        var _this2$store;\n\n                        return (_this2$store = _this2.store)[fcName].apply(\n                          _this2$store,\n                          arguments\n                        );\n                      };\n                    });\n                    var deferred = defer();\n\n                    var load = function load() {\n                      _this2.changeLanguage(_this2.options.lng, function(err, t) {\n                        _this2.isInitialized = true;\n\n                        _this2.logger.log('initialized', _this2.options);\n\n                        _this2.emit('initialized', _this2.options);\n\n                        deferred.resolve(t); // not rejecting on err (as err is only a loading translation failed warning)\n\n                        callback(err, t);\n                      });\n                    };\n\n                    if (this.options.resources || !this.options.initImmediate) {\n                      load();\n                    } else {\n                      setTimeout(load, 0);\n                    }\n\n                    return deferred;\n                  }\n                  /* eslint consistent-return: 0 */\n                },\n                {\n                  key: 'loadResources',\n                  value: function loadResources(language) {\n                    var _this3 = this;\n\n                    var callback =\n                      arguments.length > 1 && arguments[1] !== undefined\n                        ? arguments[1]\n                        : noop;\n                    var usedCallback = callback;\n                    var usedLng = typeof language === 'string' ? language : this.language;\n                    if (typeof language === 'function') usedCallback = language;\n\n                    if (!this.options.resources || this.options.partialBundledLanguages) {\n                      if (usedLng && usedLng.toLowerCase() === 'cimode')\n                        return usedCallback(); // avoid loading resources for cimode\n\n                      var toLoad = [];\n\n                      var append = function append(lng) {\n                        if (!lng) return;\n\n                        var lngs = _this3.services.languageUtils.toResolveHierarchy(lng);\n\n                        lngs.forEach(function(l) {\n                          if (toLoad.indexOf(l) < 0) toLoad.push(l);\n                        });\n                      };\n\n                      if (!usedLng) {\n                        // at least load fallbacks in this case\n                        var fallbacks = this.services.languageUtils.getFallbackCodes(\n                          this.options.fallbackLng\n                        );\n                        fallbacks.forEach(function(l) {\n                          return append(l);\n                        });\n                      } else {\n                        append(usedLng);\n                      }\n\n                      if (this.options.preload) {\n                        this.options.preload.forEach(function(l) {\n                          return append(l);\n                        });\n                      }\n\n                      this.services.backendConnector.load(\n                        toLoad,\n                        this.options.ns,\n                        usedCallback\n                      );\n                    } else {\n                      usedCallback(null);\n                    }\n                  }\n                },\n                {\n                  key: 'reloadResources',\n                  value: function reloadResources(lngs, ns, callback) {\n                    var deferred = defer();\n                    if (!lngs) lngs = this.languages;\n                    if (!ns) ns = this.options.ns;\n                    if (!callback) callback = noop;\n                    this.services.backendConnector.reload(lngs, ns, function(err) {\n                      deferred.resolve(); // not rejecting on err (as err is only a loading translation failed warning)\n\n                      callback(err);\n                    });\n                    return deferred;\n                  }\n                },\n                {\n                  key: 'use',\n                  value: function use(module) {\n                    if (module.type === 'backend') {\n                      this.modules.backend = module;\n                    }\n\n                    if (\n                      module.type === 'logger' ||\n                      (module.log && module.warn && module.error)\n                    ) {\n                      this.modules.logger = module;\n                    }\n\n                    if (module.type === 'languageDetector') {\n                      this.modules.languageDetector = module;\n                    }\n\n                    if (module.type === 'i18nFormat') {\n                      this.modules.i18nFormat = module;\n                    }\n\n                    if (module.type === 'postProcessor') {\n                      postProcessor.addPostProcessor(module);\n                    }\n\n                    if (module.type === '3rdParty') {\n                      this.modules.external.push(module);\n                    }\n\n                    return this;\n                  }\n                },\n                {\n                  key: 'changeLanguage',\n                  value: function changeLanguage(lng, callback) {\n                    var _this4 = this;\n\n                    this.isLanguageChangingTo = lng;\n                    var deferred = defer();\n                    this.emit('languageChanging', lng);\n\n                    var done = function done(err, l) {\n                      if (l) {\n                        _this4.language = l;\n                        _this4.languages = _this4.services.languageUtils.toResolveHierarchy(\n                          l\n                        );\n\n                        _this4.translator.changeLanguage(l);\n\n                        _this4.isLanguageChangingTo = undefined;\n\n                        _this4.emit('languageChanged', l);\n\n                        _this4.logger.log('languageChanged', l);\n                      } else {\n                        _this4.isLanguageChangingTo = undefined;\n                      }\n\n                      deferred.resolve(function() {\n                        return _this4.t.apply(_this4, arguments);\n                      });\n                      if (callback)\n                        callback(err, function() {\n                          return _this4.t.apply(_this4, arguments);\n                        });\n                    };\n\n                    var setLng = function setLng(l) {\n                      if (l) {\n                        if (!_this4.language) {\n                          _this4.language = l;\n                          _this4.languages = _this4.services.languageUtils.toResolveHierarchy(\n                            l\n                          );\n                        }\n\n                        if (!_this4.translator.language)\n                          _this4.translator.changeLanguage(l);\n                        if (_this4.services.languageDetector)\n                          _this4.services.languageDetector.cacheUserLanguage(l);\n                      }\n\n                      _this4.loadResources(l, function(err) {\n                        done(err, l);\n                      });\n                    };\n\n                    if (\n                      !lng &&\n                      this.services.languageDetector &&\n                      !this.services.languageDetector.async\n                    ) {\n                      setLng(this.services.languageDetector.detect());\n                    } else if (\n                      !lng &&\n                      this.services.languageDetector &&\n                      this.services.languageDetector.async\n                    ) {\n                      this.services.languageDetector.detect(setLng);\n                    } else {\n                      setLng(lng);\n                    }\n\n                    return deferred;\n                  }\n                },\n                {\n                  key: 'getFixedT',\n                  value: function getFixedT(lng, ns) {\n                    var _this5 = this;\n\n                    var fixedT = function fixedT(key, opts) {\n                      var options;\n\n                      if (_typeof(opts) !== 'object') {\n                        for (\n                          var _len3 = arguments.length,\n                            rest = new Array(_len3 > 2 ? _len3 - 2 : 0),\n                            _key3 = 2;\n                          _key3 < _len3;\n                          _key3++\n                        ) {\n                          rest[_key3 - 2] = arguments[_key3];\n                        }\n\n                        options = _this5.options.overloadTranslationOptionHandler(\n                          [key, opts].concat(rest)\n                        );\n                      } else {\n                        options = _objectSpread({}, opts);\n                      }\n\n                      options.lng = options.lng || fixedT.lng;\n                      options.lngs = options.lngs || fixedT.lngs;\n                      options.ns = options.ns || fixedT.ns;\n                      return _this5.t(key, options);\n                    };\n\n                    if (typeof lng === 'string') {\n                      fixedT.lng = lng;\n                    } else {\n                      fixedT.lngs = lng;\n                    }\n\n                    fixedT.ns = ns;\n                    return fixedT;\n                  }\n                },\n                {\n                  key: 't',\n                  value: function t() {\n                    var _this$translator;\n\n                    return (\n                      this.translator &&\n                      (_this$translator = this.translator).translate.apply(\n                        _this$translator,\n                        arguments\n                      )\n                    );\n                  }\n                },\n                {\n                  key: 'exists',\n                  value: function exists() {\n                    var _this$translator2;\n\n                    return (\n                      this.translator &&\n                      (_this$translator2 = this.translator).exists.apply(\n                        _this$translator2,\n                        arguments\n                      )\n                    );\n                  }\n                },\n                {\n                  key: 'setDefaultNamespace',\n                  value: function setDefaultNamespace(ns) {\n                    this.options.defaultNS = ns;\n                  }\n                },\n                {\n                  key: 'hasLoadedNamespace',\n                  value: function hasLoadedNamespace(ns) {\n                    var _this6 = this;\n\n                    if (!this.isInitialized) {\n                      this.logger.warn(\n                        'hasLoadedNamespace: i18next was not initialized',\n                        this.languages\n                      );\n                      return false;\n                    }\n\n                    if (!this.languages || !this.languages.length) {\n                      this.logger.warn(\n                        'hasLoadedNamespace: i18n.languages were undefined or empty',\n                        this.languages\n                      );\n                      return false;\n                    }\n\n                    var lng = this.languages[0];\n                    var fallbackLng = this.options ? this.options.fallbackLng : false;\n                    var lastLng = this.languages[this.languages.length - 1]; // we're in cimode so this shall pass\n\n                    if (lng.toLowerCase() === 'cimode') return true;\n\n                    var loadNotPending = function loadNotPending(l, n) {\n                      var loadState =\n                        _this6.services.backendConnector.state[''.concat(l, '|').concat(n)];\n\n                      return loadState === -1 || loadState === 2;\n                    }; // loaded -> SUCCESS\n\n                    if (this.hasResourceBundle(lng, ns)) return true; // were not loading at all -> SEMI SUCCESS\n\n                    if (!this.services.backendConnector.backend) return true; // failed loading ns - but at least fallback is not pending -> SEMI SUCCESS\n\n                    if (\n                      loadNotPending(lng, ns) &&\n                      (!fallbackLng || loadNotPending(lastLng, ns))\n                    )\n                      return true;\n                    return false;\n                  }\n                },\n                {\n                  key: 'loadNamespaces',\n                  value: function loadNamespaces(ns, callback) {\n                    var _this7 = this;\n\n                    var deferred = defer();\n\n                    if (!this.options.ns) {\n                      callback && callback();\n                      return Promise.resolve();\n                    }\n\n                    if (typeof ns === 'string') ns = [ns];\n                    ns.forEach(function(n) {\n                      if (_this7.options.ns.indexOf(n) < 0) _this7.options.ns.push(n);\n                    });\n                    this.loadResources(function(err) {\n                      deferred.resolve();\n                      if (callback) callback(err);\n                    });\n                    return deferred;\n                  }\n                },\n                {\n                  key: 'loadLanguages',\n                  value: function loadLanguages(lngs, callback) {\n                    var deferred = defer();\n                    if (typeof lngs === 'string') lngs = [lngs];\n                    var preloaded = this.options.preload || [];\n                    var newLngs = lngs.filter(function(lng) {\n                      return preloaded.indexOf(lng) < 0;\n                    }); // Exit early if all given languages are already preloaded\n\n                    if (!newLngs.length) {\n                      if (callback) callback();\n                      return Promise.resolve();\n                    }\n\n                    this.options.preload = preloaded.concat(newLngs);\n                    this.loadResources(function(err) {\n                      deferred.resolve();\n                      if (callback) callback(err);\n                    });\n                    return deferred;\n                  }\n                },\n                {\n                  key: 'dir',\n                  value: function dir(lng) {\n                    if (!lng)\n                      lng =\n                        this.languages && this.languages.length > 0\n                          ? this.languages[0]\n                          : this.language;\n                    if (!lng) return 'rtl';\n                    var rtlLngs = [\n                      'ar',\n                      'shu',\n                      'sqr',\n                      'ssh',\n                      'xaa',\n                      'yhd',\n                      'yud',\n                      'aao',\n                      'abh',\n                      'abv',\n                      'acm',\n                      'acq',\n                      'acw',\n                      'acx',\n                      'acy',\n                      'adf',\n                      'ads',\n                      'aeb',\n                      'aec',\n                      'afb',\n                      'ajp',\n                      'apc',\n                      'apd',\n                      'arb',\n                      'arq',\n                      'ars',\n                      'ary',\n                      'arz',\n                      'auz',\n                      'avl',\n                      'ayh',\n                      'ayl',\n                      'ayn',\n                      'ayp',\n                      'bbz',\n                      'pga',\n                      'he',\n                      'iw',\n                      'ps',\n                      'pbt',\n                      'pbu',\n                      'pst',\n                      'prp',\n                      'prd',\n                      'ur',\n                      'ydd',\n                      'yds',\n                      'yih',\n                      'ji',\n                      'yi',\n                      'hbo',\n                      'men',\n                      'xmn',\n                      'fa',\n                      'jpr',\n                      'peo',\n                      'pes',\n                      'prs',\n                      'dv',\n                      'sam'\n                    ];\n                    return rtlLngs.indexOf(\n                      this.services.languageUtils.getLanguagePartFromCode(lng)\n                    ) >= 0\n                      ? 'rtl'\n                      : 'ltr';\n                  }\n                  /* eslint class-methods-use-this: 0 */\n                },\n                {\n                  key: 'createInstance',\n                  value: function createInstance() {\n                    var options =\n                      arguments.length > 0 && arguments[0] !== undefined\n                        ? arguments[0]\n                        : {};\n                    var callback = arguments.length > 1 ? arguments[1] : undefined;\n                    return new I18n(options, callback);\n                  }\n                },\n                {\n                  key: 'cloneInstance',\n                  value: function cloneInstance() {\n                    var _this8 = this;\n\n                    var options =\n                      arguments.length > 0 && arguments[0] !== undefined\n                        ? arguments[0]\n                        : {};\n                    var callback =\n                      arguments.length > 1 && arguments[1] !== undefined\n                        ? arguments[1]\n                        : noop;\n\n                    var mergedOptions = _objectSpread({}, this.options, options, {\n                      isClone: true\n                    });\n\n                    var clone = new I18n(mergedOptions);\n                    var membersToCopy = ['store', 'services', 'language'];\n                    membersToCopy.forEach(function(m) {\n                      clone[m] = _this8[m];\n                    });\n                    clone.translator = new Translator(clone.services, clone.options);\n                    clone.translator.on('*', function(event) {\n                      for (\n                        var _len4 = arguments.length,\n                          args = new Array(_len4 > 1 ? _len4 - 1 : 0),\n                          _key4 = 1;\n                        _key4 < _len4;\n                        _key4++\n                      ) {\n                        args[_key4 - 1] = arguments[_key4];\n                      }\n\n                      clone.emit.apply(clone, [event].concat(args));\n                    });\n                    clone.init(mergedOptions, callback);\n                    clone.translator.options = clone.options; // sync options\n\n                    return clone;\n                  }\n                }\n              ]);\n\n              return I18n;\n            })(EventEmitter);\n\n          var i18next = new I18n();\n\n          module.exports = i18next;\n        },\n        {\n          '@babel/runtime/helpers/assertThisInitialized': 4,\n          '@babel/runtime/helpers/classCallCheck': 5,\n          '@babel/runtime/helpers/createClass': 6,\n          '@babel/runtime/helpers/getPrototypeOf': 8,\n          '@babel/runtime/helpers/inherits': 9,\n          '@babel/runtime/helpers/objectSpread': 14,\n          '@babel/runtime/helpers/possibleConstructorReturn': 15,\n          '@babel/runtime/helpers/slicedToArray': 17,\n          '@babel/runtime/helpers/toConsumableArray': 18,\n          '@babel/runtime/helpers/typeof': 19\n        }\n      ],\n      31: [\n        function(_dereq_, module, exports) {\n          exports.read = function(buffer, offset, isLE, mLen, nBytes) {\n            var e, m;\n            var eLen = nBytes * 8 - mLen - 1;\n            var eMax = (1 << eLen) - 1;\n            var eBias = eMax >> 1;\n            var nBits = -7;\n            var i = isLE ? nBytes - 1 : 0;\n            var d = isLE ? -1 : 1;\n            var s = buffer[offset + i];\n\n            i += d;\n\n            e = s & ((1 << -nBits) - 1);\n            s >>= -nBits;\n            nBits += eLen;\n            for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n            m = e & ((1 << -nBits) - 1);\n            e >>= -nBits;\n            nBits += mLen;\n            for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n            if (e === 0) {\n              e = 1 - eBias;\n            } else if (e === eMax) {\n              return m ? NaN : (s ? -1 : 1) * Infinity;\n            } else {\n              m = m + Math.pow(2, mLen);\n              e = e - eBias;\n            }\n            return (s ? -1 : 1) * m * Math.pow(2, e - mLen);\n          };\n\n          exports.write = function(buffer, value, offset, isLE, mLen, nBytes) {\n            var e, m, c;\n            var eLen = nBytes * 8 - mLen - 1;\n            var eMax = (1 << eLen) - 1;\n            var eBias = eMax >> 1;\n            var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;\n            var i = isLE ? 0 : nBytes - 1;\n            var d = isLE ? 1 : -1;\n            var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0;\n\n            value = Math.abs(value);\n\n            if (isNaN(value) || value === Infinity) {\n              m = isNaN(value) ? 1 : 0;\n              e = eMax;\n            } else {\n              e = Math.floor(Math.log(value) / Math.LN2);\n              if (value * (c = Math.pow(2, -e)) < 1) {\n                e--;\n                c *= 2;\n              }\n              if (e + eBias >= 1) {\n                value += rt / c;\n              } else {\n                value += rt * Math.pow(2, 1 - eBias);\n              }\n              if (value * c >= 2) {\n                e++;\n                c /= 2;\n              }\n\n              if (e + eBias >= eMax) {\n                m = 0;\n                e = eMax;\n              } else if (e + eBias >= 1) {\n                m = (value * c - 1) * Math.pow(2, mLen);\n                e = e + eBias;\n              } else {\n                m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);\n                e = 0;\n              }\n            }\n\n            for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n            e = (e << mLen) | m;\n            eLen += mLen;\n            for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n            buffer[offset + i - d] |= s * 128;\n          };\n        },\n        {}\n      ],\n      32: [\n        function(_dereq_, module, exports) {\n          /*\n\n Copyright 2000, Silicon Graphics, Inc. All Rights Reserved.\n Copyright 2015, Google Inc. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to\n deal in the Software without restriction, including without limitation the\n rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n sell copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice including the dates of first publication and\n either this permission notice or a reference to http://oss.sgi.com/projects/FreeB/\n shall be included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\n IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n Original Code. The Original Code is: OpenGL Sample Implementation,\n Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,\n Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.\n Copyright in any portions created by third parties is as indicated\n elsewhere herein. All Rights Reserved.\n*/\n          'use strict';\n          var n;\n          function t(a, b) {\n            return a.b === b.b && a.a === b.a;\n          }\n          function u(a, b) {\n            return a.b < b.b || (a.b === b.b && a.a <= b.a);\n          }\n          function v(a, b, c) {\n            var d = b.b - a.b,\n              e = c.b - b.b;\n            return 0 < d + e\n              ? d < e\n                ? b.a - a.a + d / (d + e) * (a.a - c.a)\n                : b.a - c.a + e / (d + e) * (c.a - a.a)\n              : 0;\n          }\n          function x(a, b, c) {\n            var d = b.b - a.b,\n              e = c.b - b.b;\n            return 0 < d + e ? (b.a - c.a) * d + (b.a - a.a) * e : 0;\n          }\n          function z(a, b) {\n            return a.a < b.a || (a.a === b.a && a.b <= b.b);\n          }\n          function aa(a, b, c) {\n            var d = b.a - a.a,\n              e = c.a - b.a;\n            return 0 < d + e\n              ? d < e\n                ? b.b - a.b + d / (d + e) * (a.b - c.b)\n                : b.b - c.b + e / (d + e) * (c.b - a.b)\n              : 0;\n          }\n          function ba(a, b, c) {\n            var d = b.a - a.a,\n              e = c.a - b.a;\n            return 0 < d + e ? (b.b - c.b) * d + (b.b - a.b) * e : 0;\n          }\n          function ca(a) {\n            return u(a.b.a, a.a);\n          }\n          function da(a) {\n            return u(a.a, a.b.a);\n          }\n          function A(a, b, c, d) {\n            a = 0 > a ? 0 : a;\n            c = 0 > c ? 0 : c;\n            return a <= c\n              ? 0 === c ? (b + d) / 2 : b + a / (a + c) * (d - b)\n              : d + c / (a + c) * (b - d);\n          }\n          function ea(a) {\n            var b = B(a.b);\n            C(b, a.c);\n            C(b.b, a.c);\n            D(b, a.a);\n            return b;\n          }\n          function E(a, b) {\n            var c = !1,\n              d = !1;\n            a !== b &&\n              (b.a !== a.a && ((d = !0), F(b.a, a.a)),\n              b.d !== a.d && ((c = !0), G(b.d, a.d)),\n              H(b, a),\n              d || (C(b, a.a), (a.a.c = a)),\n              c || (D(b, a.d), (a.d.a = a)));\n          }\n          function I(a) {\n            var b = a.b,\n              c = !1;\n            a.d !== a.b.d && ((c = !0), G(a.d, a.b.d));\n            a.c === a\n              ? F(a.a, null)\n              : ((a.b.d.a = J(a)), (a.a.c = a.c), H(a, J(a)), c || D(a, a.d));\n            b.c === b\n              ? (F(b.a, null), G(b.d, null))\n              : ((a.d.a = J(b)), (b.a.c = b.c), H(b, J(b)));\n            fa(a);\n          }\n          function K(a) {\n            var b = B(a),\n              c = b.b;\n            H(b, a.e);\n            b.a = a.b.a;\n            C(c, b.a);\n            b.d = c.d = a.d;\n            b = b.b;\n            H(a.b, J(a.b));\n            H(a.b, b);\n            a.b.a = b.a;\n            b.b.a.c = b.b;\n            b.b.d = a.b.d;\n            b.f = a.f;\n            b.b.f = a.b.f;\n            return b;\n          }\n          function L(a, b) {\n            var c = !1,\n              d = B(a),\n              e = d.b;\n            b.d !== a.d && ((c = !0), G(b.d, a.d));\n            H(d, a.e);\n            H(e, b);\n            d.a = a.b.a;\n            e.a = b.a;\n            d.d = e.d = a.d;\n            a.d.a = e;\n            c || D(d, a.d);\n            return d;\n          }\n          function B(a) {\n            var b = new M(),\n              c = new M(),\n              d = a.b.h;\n            c.h = d;\n            d.b.h = b;\n            b.h = a;\n            a.b.h = c;\n            b.b = c;\n            b.c = b;\n            b.e = c;\n            c.b = b;\n            c.c = c;\n            return (c.e = b);\n          }\n          function H(a, b) {\n            var c = a.c,\n              d = b.c;\n            c.b.e = b;\n            d.b.e = a;\n            a.c = d;\n            b.c = c;\n          }\n          function C(a, b) {\n            var c = b.f,\n              d = new N(b, c);\n            c.e = d;\n            b.f = d;\n            c = d.c = a;\n            do (c.a = d), (c = c.c);\n            while (c !== a);\n          }\n          function D(a, b) {\n            var c = b.d,\n              d = new ga(b, c);\n            c.b = d;\n            b.d = d;\n            d.a = a;\n            d.c = b.c;\n            c = a;\n            do (c.d = d), (c = c.e);\n            while (c !== a);\n          }\n          function fa(a) {\n            var b = a.h;\n            a = a.b.h;\n            b.b.h = a;\n            a.b.h = b;\n          }\n          function F(a, b) {\n            var c = a.c,\n              d = c;\n            do (d.a = b), (d = d.c);\n            while (d !== c);\n            c = a.f;\n            d = a.e;\n            d.f = c;\n            c.e = d;\n          }\n          function G(a, b) {\n            var c = a.a,\n              d = c;\n            do (d.d = b), (d = d.e);\n            while (d !== c);\n            c = a.d;\n            d = a.b;\n            d.d = c;\n            c.b = d;\n          }\n          function ha(a) {\n            var b = 0;\n            Math.abs(a[1]) > Math.abs(a[0]) && (b = 1);\n            Math.abs(a[2]) > Math.abs(a[b]) && (b = 2);\n            return b;\n          }\n          var O = 4 * 1e150;\n          function P(a, b) {\n            a.f += b.f;\n            a.b.f += b.b.f;\n          }\n          function ia(a, b, c) {\n            a = a.a;\n            b = b.a;\n            c = c.a;\n            if (b.b.a === a)\n              return c.b.a === a\n                ? u(b.a, c.a) ? 0 >= x(c.b.a, b.a, c.a) : 0 <= x(b.b.a, c.a, b.a)\n                : 0 >= x(c.b.a, a, c.a);\n            if (c.b.a === a) return 0 <= x(b.b.a, a, b.a);\n            b = v(b.b.a, a, b.a);\n            a = v(c.b.a, a, c.a);\n            return b >= a;\n          }\n          function Q(a) {\n            a.a.i = null;\n            var b = a.e;\n            b.a.c = b.c;\n            b.c.a = b.a;\n            a.e = null;\n          }\n          function ja(a, b) {\n            I(a.a);\n            a.c = !1;\n            a.a = b;\n            b.i = a;\n          }\n          function ka(a) {\n            var b = a.a.a;\n            do a = R(a);\n            while (a.a.a === b);\n            a.c && ((b = L(S(a).a.b, a.a.e)), ja(a, b), (a = R(a)));\n            return a;\n          }\n          function la(a, b, c) {\n            var d = new ma();\n            d.a = c;\n            d.e = na(a.f, b.e, d);\n            return (c.i = d);\n          }\n          function oa(a, b) {\n            switch (a.s) {\n              case 100130:\n                return 0 !== (b & 1);\n              case 100131:\n                return 0 !== b;\n              case 100132:\n                return 0 < b;\n              case 100133:\n                return 0 > b;\n              case 100134:\n                return 2 <= b || -2 >= b;\n            }\n            return !1;\n          }\n          function pa(a) {\n            var b = a.a,\n              c = b.d;\n            c.c = a.d;\n            c.a = b;\n            Q(a);\n          }\n          function T(a, b, c) {\n            a = b;\n            for (b = b.a; a !== c; ) {\n              a.c = !1;\n              var d = S(a),\n                e = d.a;\n              if (e.a !== b.a) {\n                if (!d.c) {\n                  pa(a);\n                  break;\n                }\n                e = L(b.c.b, e.b);\n                ja(d, e);\n              }\n              b.c !== e && (E(J(e), e), E(b, e));\n              pa(a);\n              b = d.a;\n              a = d;\n            }\n            return b;\n          }\n          function U(a, b, c, d, e, f) {\n            var g = !0;\n            do la(a, b, c.b), (c = c.c);\n            while (c !== d);\n            for (null === e && (e = S(b).a.b.c); ; ) {\n              d = S(b);\n              c = d.a.b;\n              if (c.a !== e.a) break;\n              c.c !== e && (E(J(c), c), E(J(e), c));\n              d.f = b.f - c.f;\n              d.d = oa(a, d.f);\n              b.b = !0;\n              !g && qa(a, b) && (P(c, e), Q(b), I(e));\n              g = !1;\n              b = d;\n              e = c;\n            }\n            b.b = !0;\n            f && ra(a, b);\n          }\n          function sa(a, b, c, d, e) {\n            var f = [b.g[0], b.g[1], b.g[2]];\n            b.d = null;\n            b.d = a.o ? a.o(f, c, d, a.c) || null : null;\n            null === b.d && (e ? a.n || (V(a, 100156), (a.n = !0)) : (b.d = c[0]));\n          }\n          function ta(a, b, c) {\n            var d = [null, null, null, null];\n            d[0] = b.a.d;\n            d[1] = c.a.d;\n            sa(a, b.a, d, [0.5, 0.5, 0, 0], !1);\n            E(b, c);\n          }\n          function ua(a, b, c, d, e) {\n            var f = Math.abs(b.b - a.b) + Math.abs(b.a - a.a),\n              g = Math.abs(c.b - a.b) + Math.abs(c.a - a.a),\n              h = e + 1;\n            d[e] = 0.5 * g / (f + g);\n            d[h] = 0.5 * f / (f + g);\n            a.g[0] += d[e] * b.g[0] + d[h] * c.g[0];\n            a.g[1] += d[e] * b.g[1] + d[h] * c.g[1];\n            a.g[2] += d[e] * b.g[2] + d[h] * c.g[2];\n          }\n          function qa(a, b) {\n            var c = S(b),\n              d = b.a,\n              e = c.a;\n            if (u(d.a, e.a)) {\n              if (0 < x(e.b.a, d.a, e.a)) return !1;\n              if (!t(d.a, e.a)) K(e.b), E(d, J(e)), (b.b = c.b = !0);\n              else if (d.a !== e.a) {\n                var c = a.e,\n                  f = d.a.h;\n                if (0 <= f) {\n                  var c = c.b,\n                    g = c.d,\n                    h = c.e,\n                    k = c.c,\n                    l = k[f];\n                  g[l] = g[c.a];\n                  k[g[l]] = l;\n                  l <= --c.a &&\n                    (1 >= l ? W(c, l) : u(h[g[l >> 1]], h[g[l]]) ? W(c, l) : va(c, l));\n                  h[f] = null;\n                  k[f] = c.b;\n                  c.b = f;\n                } else\n                  for (c.c[-(f + 1)] = null; 0 < c.a && null === c.c[c.d[c.a - 1]]; ) --c.a;\n                ta(a, J(e), d);\n              }\n            } else {\n              if (0 > x(d.b.a, e.a, d.a)) return !1;\n              R(b).b = b.b = !0;\n              K(d.b);\n              E(J(e), d);\n            }\n            return !0;\n          }\n          function wa(a, b) {\n            var c = S(b),\n              d = b.a,\n              e = c.a,\n              f = d.a,\n              g = e.a,\n              h = d.b.a,\n              k = e.b.a,\n              l = new N();\n            x(h, a.a, f);\n            x(k, a.a, g);\n            if (f === g || Math.min(f.a, h.a) > Math.max(g.a, k.a)) return !1;\n            if (u(f, g)) {\n              if (0 < x(k, f, g)) return !1;\n            } else if (0 > x(h, g, f)) return !1;\n            var r = h,\n              p = f,\n              q = k,\n              y = g,\n              m,\n              w;\n            u(r, p) || ((m = r), (r = p), (p = m));\n            u(q, y) || ((m = q), (q = y), (y = m));\n            u(r, q) || ((m = r), (r = q), (q = m), (m = p), (p = y), (y = m));\n            u(q, p)\n              ? u(p, y)\n                ? ((m = v(r, q, p)),\n                  (w = v(q, p, y)),\n                  0 > m + w && ((m = -m), (w = -w)),\n                  (l.b = A(m, q.b, w, p.b)))\n                : ((m = x(r, q, p)),\n                  (w = -x(r, y, p)),\n                  0 > m + w && ((m = -m), (w = -w)),\n                  (l.b = A(m, q.b, w, y.b)))\n              : (l.b = (q.b + p.b) / 2);\n            z(r, p) || ((m = r), (r = p), (p = m));\n            z(q, y) || ((m = q), (q = y), (y = m));\n            z(r, q) || ((m = r), (r = q), (q = m), (m = p), (p = y), (y = m));\n            z(q, p)\n              ? z(p, y)\n                ? ((m = aa(r, q, p)),\n                  (w = aa(q, p, y)),\n                  0 > m + w && ((m = -m), (w = -w)),\n                  (l.a = A(m, q.a, w, p.a)))\n                : ((m = ba(r, q, p)),\n                  (w = -ba(r, y, p)),\n                  0 > m + w && ((m = -m), (w = -w)),\n                  (l.a = A(m, q.a, w, y.a)))\n              : (l.a = (q.a + p.a) / 2);\n            u(l, a.a) && ((l.b = a.a.b), (l.a = a.a.a));\n            r = u(f, g) ? f : g;\n            u(r, l) && ((l.b = r.b), (l.a = r.a));\n            if (t(l, f) || t(l, g)) return qa(a, b), !1;\n            if ((!t(h, a.a) && 0 <= x(h, a.a, l)) || (!t(k, a.a) && 0 >= x(k, a.a, l))) {\n              if (k === a.a)\n                return (\n                  K(d.b),\n                  E(e.b, d),\n                  (b = ka(b)),\n                  (d = S(b).a),\n                  T(a, S(b), c),\n                  U(a, b, J(d), d, d, !0),\n                  !0\n                );\n              if (h === a.a) {\n                K(e.b);\n                E(d.e, J(e));\n                f = c = b;\n                g = f.a.b.a;\n                do f = R(f);\n                while (f.a.b.a === g);\n                b = f;\n                f = S(b).a.b.c;\n                c.a = J(e);\n                e = T(a, c, null);\n                U(a, b, e.c, d.b.c, f, !0);\n                return !0;\n              }\n              0 <= x(h, a.a, l) &&\n                ((R(b).b = b.b = !0), K(d.b), (d.a.b = a.a.b), (d.a.a = a.a.a));\n              0 >= x(k, a.a, l) &&\n                ((b.b = c.b = !0), K(e.b), (e.a.b = a.a.b), (e.a.a = a.a.a));\n              return !1;\n            }\n            K(d.b);\n            K(e.b);\n            E(J(e), d);\n            d.a.b = l.b;\n            d.a.a = l.a;\n            d.a.h = xa(a.e, d.a);\n            d = d.a;\n            e = [0, 0, 0, 0];\n            l = [f.d, h.d, g.d, k.d];\n            d.g[0] = d.g[1] = d.g[2] = 0;\n            ua(d, f, h, e, 0);\n            ua(d, g, k, e, 2);\n            sa(a, d, l, e, !0);\n            R(b).b = b.b = c.b = !0;\n            return !1;\n          }\n          function ra(a, b) {\n            for (var c = S(b); ; ) {\n              for (; c.b; ) (b = c), (c = S(c));\n              if (!b.b && ((c = b), (b = R(b)), null === b || !b.b)) break;\n              b.b = !1;\n              var d = b.a,\n                e = c.a,\n                f;\n              if ((f = d.b.a !== e.b.a))\n                a: {\n                  f = b;\n                  var g = S(f),\n                    h = f.a,\n                    k = g.a,\n                    l = void 0;\n                  if (u(h.b.a, k.b.a)) {\n                    if (0 > x(h.b.a, k.b.a, h.a)) {\n                      f = !1;\n                      break a;\n                    }\n                    R(f).b = f.b = !0;\n                    l = K(h);\n                    E(k.b, l);\n                    l.d.c = f.d;\n                  } else {\n                    if (0 < x(k.b.a, h.b.a, k.a)) {\n                      f = !1;\n                      break a;\n                    }\n                    f.b = g.b = !0;\n                    l = K(k);\n                    E(h.e, k.b);\n                    l.b.d.c = f.d;\n                  }\n                  f = !0;\n                }\n              f &&\n                (c.c\n                  ? (Q(c), I(e), (c = S(b)), (e = c.a))\n                  : b.c && (Q(b), I(d), (b = R(c)), (d = b.a)));\n              if (d.a !== e.a)\n                if (d.b.a === e.b.a || b.c || c.c || (d.b.a !== a.a && e.b.a !== a.a))\n                  qa(a, b);\n                else if (wa(a, b)) break;\n              d.a === e.a && d.b.a === e.b.a && (P(e, d), Q(b), I(d), (b = R(c)));\n            }\n          }\n          function ya(a, b) {\n            a.a = b;\n            for (var c = b.c; null === c.i; )\n              if (((c = c.c), c === b.c)) {\n                var c = a,\n                  d = b,\n                  e = new ma();\n                e.a = d.c.b;\n                var f = c.f,\n                  g = f.a;\n                do g = g.a;\n                while (null !== g.b && !f.c(f.b, e, g.b));\n                var f = g.b,\n                  h = S(f),\n                  e = f.a,\n                  g = h.a;\n                if (0 === x(e.b.a, d, e.a))\n                  (e = f.a),\n                    t(e.a, d) ||\n                      t(e.b.a, d) ||\n                      (K(e.b), f.c && (I(e.c), (f.c = !1)), E(d.c, e), ya(c, d));\n                else {\n                  var k = u(g.b.a, e.b.a) ? f : h,\n                    h = void 0;\n                  f.d || k.c\n                    ? (k === f ? (h = L(d.c.b, e.e)) : (h = L(g.b.c.b, d.c).b),\n                      k.c\n                        ? ja(k, h)\n                        : ((e = c),\n                          (f = la(c, f, h)),\n                          (f.f = R(f).f + f.a.f),\n                          (f.d = oa(e, f.f))),\n                      ya(c, d))\n                    : U(c, f, d.c, d.c, null, !0);\n                }\n                return;\n              }\n            c = ka(c.i);\n            e = S(c);\n            f = e.a;\n            e = T(a, e, null);\n            if (e.c === f) {\n              var f = e,\n                e = f.c,\n                g = S(c),\n                h = c.a,\n                k = g.a,\n                l = !1;\n              h.b.a !== k.b.a && wa(a, c);\n              t(h.a, a.a) &&\n                (E(J(e), h), (c = ka(c)), (e = S(c).a), T(a, S(c), g), (l = !0));\n              t(k.a, a.a) && (E(f, J(k)), (f = T(a, g, null)), (l = !0));\n              l\n                ? U(a, c, f.c, e, e, !0)\n                : (u(k.a, h.a) ? (d = J(k)) : (d = h),\n                  (d = L(f.c.b, d)),\n                  U(a, c, d, d.c, d.c, !1),\n                  (d.b.i.c = !0),\n                  ra(a, c));\n            } else U(a, c, e.c, f, f, !0);\n          }\n          function za(a, b) {\n            var c = new ma(),\n              d = ea(a.b);\n            d.a.b = O;\n            d.a.a = b;\n            d.b.a.b = -O;\n            d.b.a.a = b;\n            a.a = d.b.a;\n            c.a = d;\n            c.f = 0;\n            c.d = !1;\n            c.c = !1;\n            c.h = !0;\n            c.b = !1;\n            d = a.f;\n            d = na(d, d.a, c);\n            c.e = d;\n          }\n          function Aa(a) {\n            this.a = new Ba();\n            this.b = a;\n            this.c = ia;\n          }\n          function na(a, b, c) {\n            do b = b.c;\n            while (null !== b.b && !a.c(a.b, b.b, c));\n            a = new Ba(c, b.a, b);\n            b.a.c = a;\n            return (b.a = a);\n          }\n          function Ba(a, b, c) {\n            this.b = a || null;\n            this.a = b || this;\n            this.c = c || this;\n          }\n          function X() {\n            this.d = Y;\n            this.p = this.b = this.q = null;\n            this.j = [0, 0, 0];\n            this.s = 100130;\n            this.n = !1;\n            this.o = this.a = this.e = this.f = null;\n            this.m = !1;\n            this.c = this.r = this.i = this.k = this.l = this.h = null;\n          }\n          var Y = 0;\n          n = X.prototype;\n          n.x = function() {\n            Z(this, Y);\n          };\n          n.B = function(a, b) {\n            switch (a) {\n              case 100142:\n                return;\n              case 100140:\n                switch (b) {\n                  case 100130:\n                  case 100131:\n                  case 100132:\n                  case 100133:\n                  case 100134:\n                    this.s = b;\n                    return;\n                }\n                break;\n              case 100141:\n                this.m = !!b;\n                return;\n              default:\n                V(this, 100900);\n                return;\n            }\n            V(this, 100901);\n          };\n          n.y = function(a) {\n            switch (a) {\n              case 100142:\n                return 0;\n              case 100140:\n                return this.s;\n              case 100141:\n                return this.m;\n              default:\n                V(this, 100900);\n            }\n            return !1;\n          };\n          n.A = function(a, b, c) {\n            this.j[0] = a;\n            this.j[1] = b;\n            this.j[2] = c;\n          };\n          n.z = function(a, b) {\n            var c = b ? b : null;\n            switch (a) {\n              case 100100:\n              case 100106:\n                this.h = c;\n                break;\n              case 100104:\n              case 100110:\n                this.l = c;\n                break;\n              case 100101:\n              case 100107:\n                this.k = c;\n                break;\n              case 100102:\n              case 100108:\n                this.i = c;\n                break;\n              case 100103:\n              case 100109:\n                this.p = c;\n                break;\n              case 100105:\n              case 100111:\n                this.o = c;\n                break;\n              case 100112:\n                this.r = c;\n                break;\n              default:\n                V(this, 100900);\n            }\n          };\n          n.C = function(a, b) {\n            var c = !1,\n              d = [0, 0, 0];\n            Z(this, 2);\n            for (var e = 0; 3 > e; ++e) {\n              var f = a[e];\n              -1e150 > f && ((f = -1e150), (c = !0));\n              1e150 < f && ((f = 1e150), (c = !0));\n              d[e] = f;\n            }\n            c && V(this, 100155);\n            c = this.q;\n            null === c ? ((c = ea(this.b)), E(c, c.b)) : (K(c), (c = c.e));\n            c.a.d = b;\n            c.a.g[0] = d[0];\n            c.a.g[1] = d[1];\n            c.a.g[2] = d[2];\n            c.f = 1;\n            c.b.f = -1;\n            this.q = c;\n          };\n          n.u = function(a) {\n            Z(this, Y);\n            this.d = 1;\n            this.b = new Ca();\n            this.c = a;\n          };\n          n.t = function() {\n            Z(this, 1);\n            this.d = 2;\n            this.q = null;\n          };\n          n.v = function() {\n            Z(this, 2);\n            this.d = 1;\n          };\n          n.w = function() {\n            Z(this, 1);\n            this.d = Y;\n            var a = this.j[0],\n              b = this.j[1],\n              c = this.j[2],\n              d = !1,\n              e = [a, b, c];\n            if (0 === a && 0 === b && 0 === c) {\n              for (\n                var b = [-2 * 1e150, -2 * 1e150, -2 * 1e150],\n                  f = [2 * 1e150, 2 * 1e150, 2 * 1e150],\n                  c = [],\n                  g = [],\n                  d = this.b.c,\n                  a = d.e;\n                a !== d;\n                a = a.e\n              )\n                for (var h = 0; 3 > h; ++h) {\n                  var k = a.g[h];\n                  k < f[h] && ((f[h] = k), (g[h] = a));\n                  k > b[h] && ((b[h] = k), (c[h] = a));\n                }\n              a = 0;\n              b[1] - f[1] > b[0] - f[0] && (a = 1);\n              b[2] - f[2] > b[a] - f[a] && (a = 2);\n              if (f[a] >= b[a]) (e[0] = 0), (e[1] = 0), (e[2] = 1);\n              else {\n                b = 0;\n                f = g[a];\n                c = c[a];\n                g = [0, 0, 0];\n                f = [f.g[0] - c.g[0], f.g[1] - c.g[1], f.g[2] - c.g[2]];\n                h = [0, 0, 0];\n                for (a = d.e; a !== d; a = a.e)\n                  (h[0] = a.g[0] - c.g[0]),\n                    (h[1] = a.g[1] - c.g[1]),\n                    (h[2] = a.g[2] - c.g[2]),\n                    (g[0] = f[1] * h[2] - f[2] * h[1]),\n                    (g[1] = f[2] * h[0] - f[0] * h[2]),\n                    (g[2] = f[0] * h[1] - f[1] * h[0]),\n                    (k = g[0] * g[0] + g[1] * g[1] + g[2] * g[2]),\n                    k > b && ((b = k), (e[0] = g[0]), (e[1] = g[1]), (e[2] = g[2]));\n                0 >= b && ((e[0] = e[1] = e[2] = 0), (e[ha(f)] = 1));\n              }\n              d = !0;\n            }\n            g = ha(e);\n            a = this.b.c;\n            b = (g + 1) % 3;\n            c = (g + 2) % 3;\n            g = 0 < e[g] ? 1 : -1;\n            for (e = a.e; e !== a; e = e.e) (e.b = e.g[b]), (e.a = g * e.g[c]);\n            if (d) {\n              e = 0;\n              d = this.b.a;\n              for (a = d.b; a !== d; a = a.b)\n                if (((b = a.a), !(0 >= b.f))) {\n                  do (e += (b.a.b - b.b.a.b) * (b.a.a + b.b.a.a)), (b = b.e);\n                  while (b !== a.a);\n                }\n              if (0 > e) for (e = this.b.c, d = e.e; d !== e; d = d.e) d.a = -d.a;\n            }\n            this.n = !1;\n            e = this.b.b;\n            for (a = e.h; a !== e; a = d)\n              if (\n                ((d = a.h),\n                (b = a.e),\n                t(a.a, a.b.a) && a.e.e !== a && (ta(this, b, a), I(a), (a = b), (b = a.e)),\n                b.e === a)\n              ) {\n                if (b !== a) {\n                  if (b === d || b === d.b) d = d.h;\n                  I(b);\n                }\n                if (a === d || a === d.b) d = d.h;\n                I(a);\n              }\n            this.e = e = new Da();\n            d = this.b.c;\n            for (a = d.e; a !== d; a = a.e) a.h = xa(e, a);\n            Ea(e);\n            this.f = new Aa(this);\n            za(this, -O);\n            for (za(this, O); null !== (e = Fa(this.e)); ) {\n              for (;;) {\n                a: if (((a = this.e), 0 === a.a)) d = Ga(a.b);\n                else if (\n                  ((d = a.c[a.d[a.a - 1]]), 0 !== a.b.a && ((a = Ga(a.b)), u(a, d)))\n                ) {\n                  d = a;\n                  break a;\n                }\n                if (null === d || !t(d, e)) break;\n                d = Fa(this.e);\n                ta(this, e.c, d.c);\n              }\n              ya(this, e);\n            }\n            this.a = this.f.a.a.b.a.a;\n            for (e = 0; null !== (d = this.f.a.a.b); ) d.h || ++e, Q(d);\n            this.f = null;\n            e = this.e;\n            e.b = null;\n            e.d = null;\n            this.e = e.c = null;\n            e = this.b;\n            for (a = e.a.b; a !== e.a; a = d)\n              (d = a.b), (a = a.a), a.e.e === a && (P(a.c, a), I(a));\n            if (!this.n) {\n              e = this.b;\n              if (this.m)\n                for (a = e.b.h; a !== e.b; a = d)\n                  (d = a.h), a.b.d.c !== a.d.c ? (a.f = a.d.c ? 1 : -1) : I(a);\n              else\n                for (a = e.a.b; a !== e.a; a = d)\n                  if (((d = a.b), a.c)) {\n                    for (a = a.a; u(a.b.a, a.a); a = a.c.b);\n                    for (; u(a.a, a.b.a); a = a.e);\n                    b = a.c.b;\n                    for (c = void 0; a.e !== b; )\n                      if (u(a.b.a, b.a)) {\n                        for (; b.e !== a && (ca(b.e) || 0 >= x(b.a, b.b.a, b.e.b.a)); )\n                          (c = L(b.e, b)), (b = c.b);\n                        b = b.c.b;\n                      } else {\n                        for (; b.e !== a && (da(a.c.b) || 0 <= x(a.b.a, a.a, a.c.b.a)); )\n                          (c = L(a, a.c.b)), (a = c.b);\n                        a = a.e;\n                      }\n                    for (; b.e.e !== a; ) (c = L(b.e, b)), (b = c.b);\n                  }\n              if (this.h || this.i || this.k || this.l)\n                if (this.m)\n                  for (e = this.b, d = e.a.b; d !== e.a; d = d.b) {\n                    if (d.c) {\n                      this.h && this.h(2, this.c);\n                      a = d.a;\n                      do this.k && this.k(a.a.d, this.c), (a = a.e);\n                      while (a !== d.a);\n                      this.i && this.i(this.c);\n                    }\n                  }\n                else {\n                  e = this.b;\n                  d = !!this.l;\n                  a = !1;\n                  b = -1;\n                  for (c = e.a.d; c !== e.a; c = c.d)\n                    if (c.c) {\n                      a || (this.h && this.h(4, this.c), (a = !0));\n                      g = c.a;\n                      do\n                        d &&\n                          ((f = g.b.d.c ? 0 : 1),\n                          b !== f && ((b = f), this.l && this.l(!!b, this.c))),\n                          this.k && this.k(g.a.d, this.c),\n                          (g = g.e);\n                      while (g !== c.a);\n                    }\n                  a && this.i && this.i(this.c);\n                }\n              if (this.r) {\n                e = this.b;\n                for (a = e.a.b; a !== e.a; a = d)\n                  if (((d = a.b), !a.c)) {\n                    b = a.a;\n                    c = b.e;\n                    g = void 0;\n                    do\n                      (g = c),\n                        (c = g.e),\n                        (g.d = null),\n                        null === g.b.d &&\n                          (g.c === g ? F(g.a, null) : ((g.a.c = g.c), H(g, J(g))),\n                          (f = g.b),\n                          f.c === f ? F(f.a, null) : ((f.a.c = f.c), H(f, J(f))),\n                          fa(g));\n                    while (g !== b);\n                    b = a.d;\n                    a = a.b;\n                    a.d = b;\n                    b.b = a;\n                  }\n                this.r(this.b);\n                this.c = this.b = null;\n                return;\n              }\n            }\n            this.b = this.c = null;\n          };\n          function Z(a, b) {\n            if (a.d !== b)\n              for (; a.d !== b; )\n                if (a.d < b)\n                  switch (a.d) {\n                    case Y:\n                      V(a, 100151);\n                      a.u(null);\n                      break;\n                    case 1:\n                      V(a, 100152), a.t();\n                  }\n                else\n                  switch (a.d) {\n                    case 2:\n                      V(a, 100154);\n                      a.v();\n                      break;\n                    case 1:\n                      V(a, 100153), a.w();\n                  }\n          }\n          function V(a, b) {\n            a.p && a.p(b, a.c);\n          }\n          function ga(a, b) {\n            this.b = a || this;\n            this.d = b || this;\n            this.a = null;\n            this.c = !1;\n          }\n          function M() {\n            this.h = this;\n            this.i = this.d = this.a = this.e = this.c = this.b = null;\n            this.f = 0;\n          }\n          function J(a) {\n            return a.b.e;\n          }\n          function Ca() {\n            this.c = new N();\n            this.a = new ga();\n            this.b = new M();\n            this.d = new M();\n            this.b.b = this.d;\n            this.d.b = this.b;\n          }\n          function N(a, b) {\n            this.e = a || this;\n            this.f = b || this;\n            this.d = this.c = null;\n            this.g = [0, 0, 0];\n            this.h = this.a = this.b = 0;\n          }\n          function Da() {\n            this.c = [];\n            this.d = null;\n            this.a = 0;\n            this.e = !1;\n            this.b = new Ha();\n          }\n          function Ea(a) {\n            a.d = [];\n            for (var b = 0; b < a.a; b++) a.d[b] = b;\n            a.d.sort(\n              (function(a) {\n                return function(b, e) {\n                  return u(a[b], a[e]) ? 1 : -1;\n                };\n              })(a.c)\n            );\n            a.e = !0;\n            Ia(a.b);\n          }\n          function xa(a, b) {\n            if (a.e) {\n              var c = a.b,\n                d = ++c.a;\n              2 * d > c.f && ((c.f *= 2), (c.c = Ja(c.c, c.f + 1)));\n              var e;\n              0 === c.b ? (e = d) : ((e = c.b), (c.b = c.c[c.b]));\n              c.e[e] = b;\n              c.c[e] = d;\n              c.d[d] = e;\n              c.h && va(c, d);\n              return e;\n            }\n            c = a.a++;\n            a.c[c] = b;\n            return -(c + 1);\n          }\n          function Fa(a) {\n            if (0 === a.a) return Ka(a.b);\n            var b = a.c[a.d[a.a - 1]];\n            if (0 !== a.b.a && u(Ga(a.b), b)) return Ka(a.b);\n            do --a.a;\n            while (0 < a.a && null === a.c[a.d[a.a - 1]]);\n            return b;\n          }\n          function Ha() {\n            this.d = Ja([0], 33);\n            this.e = [null, null];\n            this.c = [0, 0];\n            this.a = 0;\n            this.f = 32;\n            this.b = 0;\n            this.h = !1;\n            this.d[1] = 1;\n          }\n          function Ja(a, b) {\n            for (var c = Array(b), d = 0; d < a.length; d++) c[d] = a[d];\n            for (; d < b; d++) c[d] = 0;\n            return c;\n          }\n          function Ia(a) {\n            for (var b = a.a; 1 <= b; --b) W(a, b);\n            a.h = !0;\n          }\n          function Ga(a) {\n            return a.e[a.d[1]];\n          }\n          function Ka(a) {\n            var b = a.d,\n              c = a.e,\n              d = a.c,\n              e = b[1],\n              f = c[e];\n            0 < a.a &&\n              ((b[1] = b[a.a]),\n              (d[b[1]] = 1),\n              (c[e] = null),\n              (d[e] = a.b),\n              (a.b = e),\n              0 < --a.a && W(a, 1));\n            return f;\n          }\n          function W(a, b) {\n            for (var c = a.d, d = a.e, e = a.c, f = b, g = c[f]; ; ) {\n              var h = f << 1;\n              h < a.a && u(d[c[h + 1]], d[c[h]]) && (h += 1);\n              var k = c[h];\n              if (h > a.a || u(d[g], d[k])) {\n                c[f] = g;\n                e[g] = f;\n                break;\n              }\n              c[f] = k;\n              e[k] = f;\n              f = h;\n            }\n          }\n          function va(a, b) {\n            for (var c = a.d, d = a.e, e = a.c, f = b, g = c[f]; ; ) {\n              var h = f >> 1,\n                k = c[h];\n              if (0 === h || u(d[k], d[g])) {\n                c[f] = g;\n                e[g] = f;\n                break;\n              }\n              c[f] = k;\n              e[k] = f;\n              f = h;\n            }\n          }\n          function ma() {\n            this.e = this.a = null;\n            this.f = 0;\n            this.c = this.b = this.h = this.d = !1;\n          }\n          function S(a) {\n            return a.e.c.b;\n          }\n          function R(a) {\n            return a.e.a.b;\n          }\n          this.libtess = {\n            GluTesselator: X,\n            windingRule: {\n              GLU_TESS_WINDING_ODD: 100130,\n              GLU_TESS_WINDING_NONZERO: 100131,\n              GLU_TESS_WINDING_POSITIVE: 100132,\n              GLU_TESS_WINDING_NEGATIVE: 100133,\n              GLU_TESS_WINDING_ABS_GEQ_TWO: 100134\n            },\n            primitiveType: {\n              GL_LINE_LOOP: 2,\n              GL_TRIANGLES: 4,\n              GL_TRIANGLE_STRIP: 5,\n              GL_TRIANGLE_FAN: 6\n            },\n            errorType: {\n              GLU_TESS_MISSING_BEGIN_POLYGON: 100151,\n              GLU_TESS_MISSING_END_POLYGON: 100153,\n              GLU_TESS_MISSING_BEGIN_CONTOUR: 100152,\n              GLU_TESS_MISSING_END_CONTOUR: 100154,\n              GLU_TESS_COORD_TOO_LARGE: 100155,\n              GLU_TESS_NEED_COMBINE_CALLBACK: 100156\n            },\n            gluEnum: {\n              GLU_TESS_MESH: 100112,\n              GLU_TESS_TOLERANCE: 100142,\n              GLU_TESS_WINDING_RULE: 100140,\n              GLU_TESS_BOUNDARY_ONLY: 100141,\n              GLU_INVALID_ENUM: 100900,\n              GLU_INVALID_VALUE: 100901,\n              GLU_TESS_BEGIN: 100100,\n              GLU_TESS_VERTEX: 100101,\n              GLU_TESS_END: 100102,\n              GLU_TESS_ERROR: 100103,\n              GLU_TESS_EDGE_FLAG: 100104,\n              GLU_TESS_COMBINE: 100105,\n              GLU_TESS_BEGIN_DATA: 100106,\n              GLU_TESS_VERTEX_DATA: 100107,\n              GLU_TESS_END_DATA: 100108,\n              GLU_TESS_ERROR_DATA: 100109,\n              GLU_TESS_EDGE_FLAG_DATA: 100110,\n              GLU_TESS_COMBINE_DATA: 100111\n            }\n          };\n          X.prototype.gluDeleteTess = X.prototype.x;\n          X.prototype.gluTessProperty = X.prototype.B;\n          X.prototype.gluGetTessProperty = X.prototype.y;\n          X.prototype.gluTessNormal = X.prototype.A;\n          X.prototype.gluTessCallback = X.prototype.z;\n          X.prototype.gluTessVertex = X.prototype.C;\n          X.prototype.gluTessBeginPolygon = X.prototype.u;\n          X.prototype.gluTessBeginContour = X.prototype.t;\n          X.prototype.gluTessEndContour = X.prototype.v;\n          X.prototype.gluTessEndPolygon = X.prototype.w;\n          if (typeof module !== 'undefined') {\n            module.exports = this.libtess;\n          }\n        },\n        {}\n      ],\n      33: [\n        function(_dereq_, module, exports) {\n          // (c) Dean McNamee <dean@gmail.com>, 2013.\n          //\n          // https://github.com/deanm/omggif\n          //\n          // Permission is hereby granted, free of charge, to any person obtaining a copy\n          // of this software and associated documentation files (the \"Software\"), to\n          // deal in the Software without restriction, including without limitation the\n          // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n          // sell copies of the Software, and to permit persons to whom the Software is\n          // furnished to do so, subject to the following conditions:\n          //\n          // The above copyright notice and this permission notice shall be included in\n          // all copies or substantial portions of the Software.\n          //\n          // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n          // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n          // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n          // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n          // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n          // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n          // IN THE SOFTWARE.\n          //\n          // omggif is a JavaScript implementation of a GIF 89a encoder and decoder,\n          // including animation and compression.  It does not rely on any specific\n          // underlying system, so should run in the browser, Node, or Plask.\n\n          'use strict';\n\n          function GifWriter(buf, width, height, gopts) {\n            var p = 0;\n\n            var gopts = gopts === undefined ? {} : gopts;\n            var loop_count = gopts.loop === undefined ? null : gopts.loop;\n            var global_palette = gopts.palette === undefined ? null : gopts.palette;\n\n            if (width <= 0 || height <= 0 || width > 65535 || height > 65535)\n              throw new Error('Width/Height invalid.');\n\n            function check_palette_and_num_colors(palette) {\n              var num_colors = palette.length;\n              if (num_colors < 2 || num_colors > 256 || num_colors & (num_colors - 1)) {\n                throw new Error(\n                  'Invalid code/color length, must be power of 2 and 2 .. 256.'\n                );\n              }\n              return num_colors;\n            }\n\n            // - Header.\n            buf[p++] = 0x47;\n            buf[p++] = 0x49;\n            buf[p++] = 0x46; // GIF\n            buf[p++] = 0x38;\n            buf[p++] = 0x39;\n            buf[p++] = 0x61; // 89a\n\n            // Handling of Global Color Table (palette) and background index.\n            var gp_num_colors_pow2 = 0;\n            var background = 0;\n            if (global_palette !== null) {\n              var gp_num_colors = check_palette_and_num_colors(global_palette);\n              while ((gp_num_colors >>= 1)) ++gp_num_colors_pow2;\n              gp_num_colors = 1 << gp_num_colors_pow2;\n              --gp_num_colors_pow2;\n              if (gopts.background !== undefined) {\n                background = gopts.background;\n                if (background >= gp_num_colors)\n                  throw new Error('Background index out of range.');\n                // The GIF spec states that a background index of 0 should be ignored, so\n                // this is probably a mistake and you really want to set it to another\n                // slot in the palette.  But actually in the end most browsers, etc end\n                // up ignoring this almost completely (including for dispose background).\n                if (background === 0)\n                  throw new Error('Background index explicitly passed as 0.');\n              }\n            }\n\n            // - Logical Screen Descriptor.\n            // NOTE(deanm): w/h apparently ignored by implementations, but set anyway.\n            buf[p++] = width & 0xff;\n            buf[p++] = (width >> 8) & 0xff;\n            buf[p++] = height & 0xff;\n            buf[p++] = (height >> 8) & 0xff;\n            // NOTE: Indicates 0-bpp original color resolution (unused?).\n            buf[p++] =\n              (global_palette !== null ? 0x80 : 0) | gp_num_colors_pow2; // Global Color Table Flag. // NOTE: No sort flag (unused?).\n            buf[p++] = background; // Background Color Index.\n            buf[p++] = 0; // Pixel aspect ratio (unused?).\n\n            // - Global Color Table\n            if (global_palette !== null) {\n              for (var i = 0, il = global_palette.length; i < il; ++i) {\n                var rgb = global_palette[i];\n                buf[p++] = (rgb >> 16) & 0xff;\n                buf[p++] = (rgb >> 8) & 0xff;\n                buf[p++] = rgb & 0xff;\n              }\n            }\n\n            if (loop_count !== null) {\n              // Netscape block for looping.\n              if (loop_count < 0 || loop_count > 65535)\n                throw new Error('Loop count invalid.');\n              // Extension code, label, and length.\n              buf[p++] = 0x21;\n              buf[p++] = 0xff;\n              buf[p++] = 0x0b;\n              // NETSCAPE2.0\n              buf[p++] = 0x4e;\n              buf[p++] = 0x45;\n              buf[p++] = 0x54;\n              buf[p++] = 0x53;\n              buf[p++] = 0x43;\n              buf[p++] = 0x41;\n              buf[p++] = 0x50;\n              buf[p++] = 0x45;\n              buf[p++] = 0x32;\n              buf[p++] = 0x2e;\n              buf[p++] = 0x30;\n              // Sub-block\n              buf[p++] = 0x03;\n              buf[p++] = 0x01;\n              buf[p++] = loop_count & 0xff;\n              buf[p++] = (loop_count >> 8) & 0xff;\n              buf[p++] = 0x00; // Terminator.\n            }\n\n            var ended = false;\n\n            this.addFrame = function(x, y, w, h, indexed_pixels, opts) {\n              if (ended === true) {\n                --p;\n                ended = false;\n              } // Un-end.\n\n              opts = opts === undefined ? {} : opts;\n\n              // TODO(deanm): Bounds check x, y.  Do they need to be within the virtual\n              // canvas width/height, I imagine?\n              if (x < 0 || y < 0 || x > 65535 || y > 65535) throw new Error('x/y invalid.');\n\n              if (w <= 0 || h <= 0 || w > 65535 || h > 65535)\n                throw new Error('Width/Height invalid.');\n\n              if (indexed_pixels.length < w * h)\n                throw new Error('Not enough pixels for the frame size.');\n\n              var using_local_palette = true;\n              var palette = opts.palette;\n              if (palette === undefined || palette === null) {\n                using_local_palette = false;\n                palette = global_palette;\n              }\n\n              if (palette === undefined || palette === null)\n                throw new Error('Must supply either a local or global palette.');\n\n              var num_colors = check_palette_and_num_colors(palette);\n\n              // Compute the min_code_size (power of 2), destroying num_colors.\n              var min_code_size = 0;\n              while ((num_colors >>= 1)) ++min_code_size;\n              num_colors = 1 << min_code_size; // Now we can easily get it back.\n\n              var delay = opts.delay === undefined ? 0 : opts.delay;\n\n              // From the spec:\n              //     0 -   No disposal specified. The decoder is\n              //           not required to take any action.\n              //     1 -   Do not dispose. The graphic is to be left\n              //           in place.\n              //     2 -   Restore to background color. The area used by the\n              //           graphic must be restored to the background color.\n              //     3 -   Restore to previous. The decoder is required to\n              //           restore the area overwritten by the graphic with\n              //           what was there prior to rendering the graphic.\n              //  4-7 -    To be defined.\n              // NOTE(deanm): Dispose background doesn't really work, apparently most\n              // browsers ignore the background palette index and clear to transparency.\n              var disposal = opts.disposal === undefined ? 0 : opts.disposal;\n              if (disposal < 0 || disposal > 3)\n                // 4-7 is reserved.\n                throw new Error('Disposal out of range.');\n\n              var use_transparency = false;\n              var transparent_index = 0;\n              if (opts.transparent !== undefined && opts.transparent !== null) {\n                use_transparency = true;\n                transparent_index = opts.transparent;\n                if (transparent_index < 0 || transparent_index >= num_colors)\n                  throw new Error('Transparent color index.');\n              }\n\n              if (disposal !== 0 || use_transparency || delay !== 0) {\n                // - Graphics Control Extension\n                buf[p++] = 0x21;\n                buf[p++] = 0xf9; // Extension / Label.\n                buf[p++] = 4; // Byte size.\n\n                buf[p++] = (disposal << 2) | (use_transparency === true ? 1 : 0);\n                buf[p++] = delay & 0xff;\n                buf[p++] = (delay >> 8) & 0xff;\n                buf[p++] = transparent_index; // Transparent color index.\n                buf[p++] = 0; // Block Terminator.\n              }\n\n              // - Image Descriptor\n              buf[p++] = 0x2c; // Image Seperator.\n              buf[p++] = x & 0xff;\n              buf[p++] = (x >> 8) & 0xff; // Left.\n              buf[p++] = y & 0xff;\n              buf[p++] = (y >> 8) & 0xff; // Top.\n              buf[p++] = w & 0xff;\n              buf[p++] = (w >> 8) & 0xff;\n              buf[p++] = h & 0xff;\n              buf[p++] = (h >> 8) & 0xff;\n              // NOTE: No sort flag (unused?).\n              // TODO(deanm): Support interlace.\n              buf[p++] = using_local_palette === true ? 0x80 | (min_code_size - 1) : 0;\n\n              // - Local Color Table\n              if (using_local_palette === true) {\n                for (var i = 0, il = palette.length; i < il; ++i) {\n                  var rgb = palette[i];\n                  buf[p++] = (rgb >> 16) & 0xff;\n                  buf[p++] = (rgb >> 8) & 0xff;\n                  buf[p++] = rgb & 0xff;\n                }\n              }\n\n              p = GifWriterOutputLZWCodeStream(\n                buf,\n                p,\n                min_code_size < 2 ? 2 : min_code_size,\n                indexed_pixels\n              );\n\n              return p;\n            };\n\n            this.end = function() {\n              if (ended === false) {\n                buf[p++] = 0x3b; // Trailer.\n                ended = true;\n              }\n              return p;\n            };\n\n            this.getOutputBuffer = function() {\n              return buf;\n            };\n            this.setOutputBuffer = function(v) {\n              buf = v;\n            };\n            this.getOutputBufferPosition = function() {\n              return p;\n            };\n            this.setOutputBufferPosition = function(v) {\n              p = v;\n            };\n          }\n\n          // Main compression routine, palette indexes -> LZW code stream.\n          // |index_stream| must have at least one entry.\n          function GifWriterOutputLZWCodeStream(buf, p, min_code_size, index_stream) {\n            buf[p++] = min_code_size;\n            var cur_subblock = p++; // Pointing at the length field.\n\n            var clear_code = 1 << min_code_size;\n            var code_mask = clear_code - 1;\n            var eoi_code = clear_code + 1;\n            var next_code = eoi_code + 1;\n\n            var cur_code_size = min_code_size + 1; // Number of bits per code.\n            var cur_shift = 0;\n            // We have at most 12-bit codes, so we should have to hold a max of 19\n            // bits here (and then we would write out).\n            var cur = 0;\n\n            function emit_bytes_to_buffer(bit_block_size) {\n              while (cur_shift >= bit_block_size) {\n                buf[p++] = cur & 0xff;\n                cur >>= 8;\n                cur_shift -= 8;\n                if (p === cur_subblock + 256) {\n                  // Finished a subblock.\n                  buf[cur_subblock] = 255;\n                  cur_subblock = p++;\n                }\n              }\n            }\n\n            function emit_code(c) {\n              cur |= c << cur_shift;\n              cur_shift += cur_code_size;\n              emit_bytes_to_buffer(8);\n            }\n\n            // I am not an expert on the topic, and I don't want to write a thesis.\n            // However, it is good to outline here the basic algorithm and the few data\n            // structures and optimizations here that make this implementation fast.\n            // The basic idea behind LZW is to build a table of previously seen runs\n            // addressed by a short id (herein called output code).  All data is\n            // referenced by a code, which represents one or more values from the\n            // original input stream.  All input bytes can be referenced as the same\n            // value as an output code.  So if you didn't want any compression, you\n            // could more or less just output the original bytes as codes (there are\n            // some details to this, but it is the idea).  In order to achieve\n            // compression, values greater then the input range (codes can be up to\n            // 12-bit while input only 8-bit) represent a sequence of previously seen\n            // inputs.  The decompressor is able to build the same mapping while\n            // decoding, so there is always a shared common knowledge between the\n            // encoding and decoder, which is also important for \"timing\" aspects like\n            // how to handle variable bit width code encoding.\n            //\n            // One obvious but very important consequence of the table system is there\n            // is always a unique id (at most 12-bits) to map the runs.  'A' might be\n            // 4, then 'AA' might be 10, 'AAA' 11, 'AAAA' 12, etc.  This relationship\n            // can be used for an effecient lookup strategy for the code mapping.  We\n            // need to know if a run has been seen before, and be able to map that run\n            // to the output code.  Since we start with known unique ids (input bytes),\n            // and then from those build more unique ids (table entries), we can\n            // continue this chain (almost like a linked list) to always have small\n            // integer values that represent the current byte chains in the encoder.\n            // This means instead of tracking the input bytes (AAAABCD) to know our\n            // current state, we can track the table entry for AAAABC (it is guaranteed\n            // to exist by the nature of the algorithm) and the next character D.\n            // Therefor the tuple of (table_entry, byte) is guaranteed to also be\n            // unique.  This allows us to create a simple lookup key for mapping input\n            // sequences to codes (table indices) without having to store or search\n            // any of the code sequences.  So if 'AAAA' has a table entry of 12, the\n            // tuple of ('AAAA', K) for any input byte K will be unique, and can be our\n            // key.  This leads to a integer value at most 20-bits, which can always\n            // fit in an SMI value and be used as a fast sparse array / object key.\n\n            // Output code for the current contents of the index buffer.\n            var ib_code = index_stream[0] & code_mask; // Load first input index.\n            var code_table = {}; // Key'd on our 20-bit \"tuple\".\n\n            emit_code(clear_code); // Spec says first code should be a clear code.\n\n            // First index already loaded, process the rest of the stream.\n            for (var i = 1, il = index_stream.length; i < il; ++i) {\n              var k = index_stream[i] & code_mask;\n              var cur_key = (ib_code << 8) | k; // (prev, k) unique tuple.\n              var cur_code = code_table[cur_key]; // buffer + k.\n\n              // Check if we have to create a new code table entry.\n              if (cur_code === undefined) {\n                // We don't have buffer + k.\n                // Emit index buffer (without k).\n                // This is an inline version of emit_code, because this is the core\n                // writing routine of the compressor (and V8 cannot inline emit_code\n                // because it is a closure here in a different context).  Additionally\n                // we can call emit_byte_to_buffer less often, because we can have\n                // 30-bits (from our 31-bit signed SMI), and we know our codes will only\n                // be 12-bits, so can safely have 18-bits there without overflow.\n                // emit_code(ib_code);\n                cur |= ib_code << cur_shift;\n                cur_shift += cur_code_size;\n                while (cur_shift >= 8) {\n                  buf[p++] = cur & 0xff;\n                  cur >>= 8;\n                  cur_shift -= 8;\n                  if (p === cur_subblock + 256) {\n                    // Finished a subblock.\n                    buf[cur_subblock] = 255;\n                    cur_subblock = p++;\n                  }\n                }\n\n                if (next_code === 4096) {\n                  // Table full, need a clear.\n                  emit_code(clear_code);\n                  next_code = eoi_code + 1;\n                  cur_code_size = min_code_size + 1;\n                  code_table = {};\n                } else {\n                  // Table not full, insert a new entry.\n                  // Increase our variable bit code sizes if necessary.  This is a bit\n                  // tricky as it is based on \"timing\" between the encoding and\n                  // decoder.  From the encoders perspective this should happen after\n                  // we've already emitted the index buffer and are about to create the\n                  // first table entry that would overflow our current code bit size.\n                  if (next_code >= 1 << cur_code_size) ++cur_code_size;\n                  code_table[cur_key] = next_code++; // Insert into code table.\n                }\n\n                ib_code = k; // Index buffer to single input k.\n              } else {\n                ib_code = cur_code; // Index buffer to sequence in code table.\n              }\n            }\n\n            emit_code(ib_code); // There will still be something in the index buffer.\n            emit_code(eoi_code); // End Of Information.\n\n            // Flush / finalize the sub-blocks stream to the buffer.\n            emit_bytes_to_buffer(1);\n\n            // Finish the sub-blocks, writing out any unfinished lengths and\n            // terminating with a sub-block of length 0.  If we have already started\n            // but not yet used a sub-block it can just become the terminator.\n            if (cur_subblock + 1 === p) {\n              // Started but unused.\n              buf[cur_subblock] = 0;\n            } else {\n              // Started and used, write length and additional terminator block.\n              buf[cur_subblock] = p - cur_subblock - 1;\n              buf[p++] = 0;\n            }\n            return p;\n          }\n\n          function GifReader(buf) {\n            var p = 0;\n\n            // - Header (GIF87a or GIF89a).\n            if (\n              buf[p++] !== 0x47 ||\n              buf[p++] !== 0x49 ||\n              buf[p++] !== 0x46 ||\n              buf[p++] !== 0x38 ||\n              ((buf[p++] + 1) & 0xfd) !== 0x38 ||\n              buf[p++] !== 0x61\n            ) {\n              throw new Error('Invalid GIF 87a/89a header.');\n            }\n\n            // - Logical Screen Descriptor.\n            var width = buf[p++] | (buf[p++] << 8);\n            var height = buf[p++] | (buf[p++] << 8);\n            var pf0 = buf[p++]; // <Packed Fields>.\n            var global_palette_flag = pf0 >> 7;\n            var num_global_colors_pow2 = pf0 & 0x7;\n            var num_global_colors = 1 << (num_global_colors_pow2 + 1);\n            var background = buf[p++];\n            buf[p++]; // Pixel aspect ratio (unused?).\n\n            var global_palette_offset = null;\n            var global_palette_size = null;\n\n            if (global_palette_flag) {\n              global_palette_offset = p;\n              global_palette_size = num_global_colors;\n              p += num_global_colors * 3; // Seek past palette.\n            }\n\n            var no_eof = true;\n\n            var frames = [];\n\n            var delay = 0;\n            var transparent_index = null;\n            var disposal = 0; // 0 - No disposal specified.\n            var loop_count = null;\n\n            this.width = width;\n            this.height = height;\n\n            while (no_eof && p < buf.length) {\n              switch (buf[p++]) {\n                case 0x21: // Graphics Control Extension Block\n                  switch (buf[p++]) {\n                    case 0xff: // Application specific block\n                      // Try if it's a Netscape block (with animation loop counter).\n                      if (\n                        buf[p] !== 0x0b || // 21 FF already read, check block size.\n                        // NETSCAPE2.0\n                        (buf[p + 1] == 0x4e &&\n                          buf[p + 2] == 0x45 &&\n                          buf[p + 3] == 0x54 &&\n                          buf[p + 4] == 0x53 &&\n                          buf[p + 5] == 0x43 &&\n                          buf[p + 6] == 0x41 &&\n                          buf[p + 7] == 0x50 &&\n                          buf[p + 8] == 0x45 &&\n                          buf[p + 9] == 0x32 &&\n                          buf[p + 10] == 0x2e &&\n                          buf[p + 11] == 0x30 &&\n                          // Sub-block\n                          buf[p + 12] == 0x03 &&\n                          buf[p + 13] == 0x01 &&\n                          buf[p + 16] == 0)\n                      ) {\n                        p += 14;\n                        loop_count = buf[p++] | (buf[p++] << 8);\n                        p++; // Skip terminator.\n                      } else {\n                        // We don't know what it is, just try to get past it.\n                        p += 12;\n                        while (true) {\n                          // Seek through subblocks.\n                          var block_size = buf[p++];\n                          // Bad block size (ex: undefined from an out of bounds read).\n                          if (!(block_size >= 0)) throw Error('Invalid block size');\n                          if (block_size === 0) break; // 0 size is terminator\n                          p += block_size;\n                        }\n                      }\n                      break;\n\n                    case 0xf9: // Graphics Control Extension\n                      if (buf[p++] !== 0x4 || buf[p + 4] !== 0)\n                        throw new Error('Invalid graphics extension block.');\n                      var pf1 = buf[p++];\n                      delay = buf[p++] | (buf[p++] << 8);\n                      transparent_index = buf[p++];\n                      if ((pf1 & 1) === 0) transparent_index = null;\n                      disposal = (pf1 >> 2) & 0x7;\n                      p++; // Skip terminator.\n                      break;\n\n                    case 0xfe: // Comment Extension.\n                      while (true) {\n                        // Seek through subblocks.\n                        var block_size = buf[p++];\n                        // Bad block size (ex: undefined from an out of bounds read).\n                        if (!(block_size >= 0)) throw Error('Invalid block size');\n                        if (block_size === 0) break; // 0 size is terminator\n                        // console.log(buf.slice(p, p+block_size).toString('ascii'));\n                        p += block_size;\n                      }\n                      break;\n\n                    default:\n                      throw new Error(\n                        'Unknown graphic control label: 0x' + buf[p - 1].toString(16)\n                      );\n                  }\n                  break;\n\n                case 0x2c: // Image Descriptor.\n                  var x = buf[p++] | (buf[p++] << 8);\n                  var y = buf[p++] | (buf[p++] << 8);\n                  var w = buf[p++] | (buf[p++] << 8);\n                  var h = buf[p++] | (buf[p++] << 8);\n                  var pf2 = buf[p++];\n                  var local_palette_flag = pf2 >> 7;\n                  var interlace_flag = (pf2 >> 6) & 1;\n                  var num_local_colors_pow2 = pf2 & 0x7;\n                  var num_local_colors = 1 << (num_local_colors_pow2 + 1);\n                  var palette_offset = global_palette_offset;\n                  var palette_size = global_palette_size;\n                  var has_local_palette = false;\n                  if (local_palette_flag) {\n                    var has_local_palette = true;\n                    palette_offset = p; // Override with local palette.\n                    palette_size = num_local_colors;\n                    p += num_local_colors * 3; // Seek past palette.\n                  }\n\n                  var data_offset = p;\n\n                  p++; // codesize\n                  while (true) {\n                    var block_size = buf[p++];\n                    // Bad block size (ex: undefined from an out of bounds read).\n                    if (!(block_size >= 0)) throw Error('Invalid block size');\n                    if (block_size === 0) break; // 0 size is terminator\n                    p += block_size;\n                  }\n\n                  frames.push({\n                    x: x,\n                    y: y,\n                    width: w,\n                    height: h,\n                    has_local_palette: has_local_palette,\n                    palette_offset: palette_offset,\n                    palette_size: palette_size,\n                    data_offset: data_offset,\n                    data_length: p - data_offset,\n                    transparent_index: transparent_index,\n                    interlaced: !!interlace_flag,\n                    delay: delay,\n                    disposal: disposal\n                  });\n                  break;\n\n                case 0x3b: // Trailer Marker (end of file).\n                  no_eof = false;\n                  break;\n\n                default:\n                  throw new Error('Unknown gif block: 0x' + buf[p - 1].toString(16));\n                  break;\n              }\n            }\n\n            this.numFrames = function() {\n              return frames.length;\n            };\n\n            this.loopCount = function() {\n              return loop_count;\n            };\n\n            this.frameInfo = function(frame_num) {\n              if (frame_num < 0 || frame_num >= frames.length)\n                throw new Error('Frame index out of range.');\n              return frames[frame_num];\n            };\n\n            this.decodeAndBlitFrameBGRA = function(frame_num, pixels) {\n              var frame = this.frameInfo(frame_num);\n              var num_pixels = frame.width * frame.height;\n              var index_stream = new Uint8Array(num_pixels); // At most 8-bit indices.\n              GifReaderLZWOutputIndexStream(\n                buf,\n                frame.data_offset,\n                index_stream,\n                num_pixels\n              );\n              var palette_offset = frame.palette_offset;\n\n              // NOTE(deanm): It seems to be much faster to compare index to 256 than\n              // to === null.  Not sure why, but CompareStub_EQ_STRICT shows up high in\n              // the profile, not sure if it's related to using a Uint8Array.\n              var trans = frame.transparent_index;\n              if (trans === null) trans = 256;\n\n              // We are possibly just blitting to a portion of the entire frame.\n              // That is a subrect within the framerect, so the additional pixels\n              // must be skipped over after we finished a scanline.\n              var framewidth = frame.width;\n              var framestride = width - framewidth;\n              var xleft = framewidth; // Number of subrect pixels left in scanline.\n\n              // Output indicies of the top left and bottom right corners of the subrect.\n              var opbeg = (frame.y * width + frame.x) * 4;\n              var opend = ((frame.y + frame.height) * width + frame.x) * 4;\n              var op = opbeg;\n\n              var scanstride = framestride * 4;\n\n              // Use scanstride to skip past the rows when interlacing.  This is skipping\n              // 7 rows for the first two passes, then 3 then 1.\n              if (frame.interlaced === true) {\n                scanstride += width * 4 * 7; // Pass 1.\n              }\n\n              var interlaceskip = 8; // Tracking the row interval in the current pass.\n\n              for (var i = 0, il = index_stream.length; i < il; ++i) {\n                var index = index_stream[i];\n\n                if (xleft === 0) {\n                  // Beginning of new scan line\n                  op += scanstride;\n                  xleft = framewidth;\n                  if (op >= opend) {\n                    // Catch the wrap to switch passes when interlacing.\n                    scanstride = framestride * 4 + width * 4 * (interlaceskip - 1);\n                    // interlaceskip / 2 * 4 is interlaceskip << 1.\n                    op = opbeg + (framewidth + framestride) * (interlaceskip << 1);\n                    interlaceskip >>= 1;\n                  }\n                }\n\n                if (index === trans) {\n                  op += 4;\n                } else {\n                  var r = buf[palette_offset + index * 3];\n                  var g = buf[palette_offset + index * 3 + 1];\n                  var b = buf[palette_offset + index * 3 + 2];\n                  pixels[op++] = b;\n                  pixels[op++] = g;\n                  pixels[op++] = r;\n                  pixels[op++] = 255;\n                }\n                --xleft;\n              }\n            };\n\n            // I will go to copy and paste hell one day...\n            this.decodeAndBlitFrameRGBA = function(frame_num, pixels) {\n              var frame = this.frameInfo(frame_num);\n              var num_pixels = frame.width * frame.height;\n              var index_stream = new Uint8Array(num_pixels); // At most 8-bit indices.\n              GifReaderLZWOutputIndexStream(\n                buf,\n                frame.data_offset,\n                index_stream,\n                num_pixels\n              );\n              var palette_offset = frame.palette_offset;\n\n              // NOTE(deanm): It seems to be much faster to compare index to 256 than\n              // to === null.  Not sure why, but CompareStub_EQ_STRICT shows up high in\n              // the profile, not sure if it's related to using a Uint8Array.\n              var trans = frame.transparent_index;\n              if (trans === null) trans = 256;\n\n              // We are possibly just blitting to a portion of the entire frame.\n              // That is a subrect within the framerect, so the additional pixels\n              // must be skipped over after we finished a scanline.\n              var framewidth = frame.width;\n              var framestride = width - framewidth;\n              var xleft = framewidth; // Number of subrect pixels left in scanline.\n\n              // Output indicies of the top left and bottom right corners of the subrect.\n              var opbeg = (frame.y * width + frame.x) * 4;\n              var opend = ((frame.y + frame.height) * width + frame.x) * 4;\n              var op = opbeg;\n\n              var scanstride = framestride * 4;\n\n              // Use scanstride to skip past the rows when interlacing.  This is skipping\n              // 7 rows for the first two passes, then 3 then 1.\n              if (frame.interlaced === true) {\n                scanstride += width * 4 * 7; // Pass 1.\n              }\n\n              var interlaceskip = 8; // Tracking the row interval in the current pass.\n\n              for (var i = 0, il = index_stream.length; i < il; ++i) {\n                var index = index_stream[i];\n\n                if (xleft === 0) {\n                  // Beginning of new scan line\n                  op += scanstride;\n                  xleft = framewidth;\n                  if (op >= opend) {\n                    // Catch the wrap to switch passes when interlacing.\n                    scanstride = framestride * 4 + width * 4 * (interlaceskip - 1);\n                    // interlaceskip / 2 * 4 is interlaceskip << 1.\n                    op = opbeg + (framewidth + framestride) * (interlaceskip << 1);\n                    interlaceskip >>= 1;\n                  }\n                }\n\n                if (index === trans) {\n                  op += 4;\n                } else {\n                  var r = buf[palette_offset + index * 3];\n                  var g = buf[palette_offset + index * 3 + 1];\n                  var b = buf[palette_offset + index * 3 + 2];\n                  pixels[op++] = r;\n                  pixels[op++] = g;\n                  pixels[op++] = b;\n                  pixels[op++] = 255;\n                }\n                --xleft;\n              }\n            };\n          }\n\n          function GifReaderLZWOutputIndexStream(code_stream, p, output, output_length) {\n            var min_code_size = code_stream[p++];\n\n            var clear_code = 1 << min_code_size;\n            var eoi_code = clear_code + 1;\n            var next_code = eoi_code + 1;\n\n            var cur_code_size = min_code_size + 1; // Number of bits per code.\n            // NOTE: This shares the same name as the encoder, but has a different\n            // meaning here.  Here this masks each code coming from the code stream.\n            var code_mask = (1 << cur_code_size) - 1;\n            var cur_shift = 0;\n            var cur = 0;\n\n            var op = 0; // Output pointer.\n\n            var subblock_size = code_stream[p++];\n\n            // TODO(deanm): Would using a TypedArray be any faster?  At least it would\n            // solve the fast mode / backing store uncertainty.\n            // var code_table = Array(4096);\n            var code_table = new Int32Array(4096); // Can be signed, we only use 20 bits.\n\n            var prev_code = null; // Track code-1.\n\n            while (true) {\n              // Read up to two bytes, making sure we always 12-bits for max sized code.\n              while (cur_shift < 16) {\n                if (subblock_size === 0) break; // No more data to be read.\n\n                cur |= code_stream[p++] << cur_shift;\n                cur_shift += 8;\n\n                if (subblock_size === 1) {\n                  // Never let it get to 0 to hold logic above.\n                  subblock_size = code_stream[p++]; // Next subblock.\n                } else {\n                  --subblock_size;\n                }\n              }\n\n              // TODO(deanm): We should never really get here, we should have received\n              // and EOI.\n              if (cur_shift < cur_code_size) break;\n\n              var code = cur & code_mask;\n              cur >>= cur_code_size;\n              cur_shift -= cur_code_size;\n\n              // TODO(deanm): Maybe should check that the first code was a clear code,\n              // at least this is what you're supposed to do.  But actually our encoder\n              // now doesn't emit a clear code first anyway.\n              if (code === clear_code) {\n                // We don't actually have to clear the table.  This could be a good idea\n                // for greater error checking, but we don't really do any anyway.  We\n                // will just track it with next_code and overwrite old entries.\n\n                next_code = eoi_code + 1;\n                cur_code_size = min_code_size + 1;\n                code_mask = (1 << cur_code_size) - 1;\n\n                // Don't update prev_code ?\n                prev_code = null;\n                continue;\n              } else if (code === eoi_code) {\n                break;\n              }\n\n              // We have a similar situation as the decoder, where we want to store\n              // variable length entries (code table entries), but we want to do in a\n              // faster manner than an array of arrays.  The code below stores sort of a\n              // linked list within the code table, and then \"chases\" through it to\n              // construct the dictionary entries.  When a new entry is created, just the\n              // last byte is stored, and the rest (prefix) of the entry is only\n              // referenced by its table entry.  Then the code chases through the\n              // prefixes until it reaches a single byte code.  We have to chase twice,\n              // first to compute the length, and then to actually copy the data to the\n              // output (backwards, since we know the length).  The alternative would be\n              // storing something in an intermediate stack, but that doesn't make any\n              // more sense.  I implemented an approach where it also stored the length\n              // in the code table, although it's a bit tricky because you run out of\n              // bits (12 + 12 + 8), but I didn't measure much improvements (the table\n              // entries are generally not the long).  Even when I created benchmarks for\n              // very long table entries the complexity did not seem worth it.\n              // The code table stores the prefix entry in 12 bits and then the suffix\n              // byte in 8 bits, so each entry is 20 bits.\n\n              var chase_code = code < next_code ? code : prev_code;\n\n              // Chase what we will output, either {CODE} or {CODE-1}.\n              var chase_length = 0;\n              var chase = chase_code;\n              while (chase > clear_code) {\n                chase = code_table[chase] >> 8;\n                ++chase_length;\n              }\n\n              var k = chase;\n\n              var op_end = op + chase_length + (chase_code !== code ? 1 : 0);\n              if (op_end > output_length) {\n                console.log('Warning, gif stream longer than expected.');\n                return;\n              }\n\n              // Already have the first byte from the chase, might as well write it fast.\n              output[op++] = k;\n\n              op += chase_length;\n              var b = op; // Track pointer, writing backwards.\n\n              if (chase_code !== code)\n                // The case of emitting {CODE-1} + k.\n                output[op++] = k;\n\n              chase = chase_code;\n              while (chase_length--) {\n                chase = code_table[chase];\n                output[--b] = chase & 0xff; // Write backwards.\n                chase >>= 8; // Pull down to the prefix code.\n              }\n\n              if (prev_code !== null && next_code < 4096) {\n                code_table[next_code++] = (prev_code << 8) | k;\n                // TODO(deanm): Figure out this clearing vs code growth logic better.  I\n                // have an feeling that it should just happen somewhere else, for now it\n                // is awkward between when we grow past the max and then hit a clear code.\n                // For now just check if we hit the max 12-bits (then a clear code should\n                // follow, also of course encoded in 12-bits).\n                if (next_code >= code_mask + 1 && cur_code_size < 12) {\n                  ++cur_code_size;\n                  code_mask = (code_mask << 1) | 1;\n                }\n              }\n\n              prev_code = code;\n            }\n\n            if (op !== output_length) {\n              console.log('Warning, gif stream shorter than expected.');\n            }\n\n            return output;\n          }\n\n          // CommonJS.\n          try {\n            exports.GifWriter = GifWriter;\n            exports.GifReader = GifReader;\n          } catch (e) {}\n        },\n        {}\n      ],\n      34: [\n        function(_dereq_, module, exports) {\n          (function(Buffer) {\n            /**\n             * https://opentype.js.org v0.9.0 | (c) Frederik De Bleser and other contributors | MIT License | Uses tiny-inflate by Devon Govett and string.prototype.codepointat polyfill by Mathias Bynens\n             */\n\n            (function(global, factory) {\n              typeof exports === 'object' && typeof module !== 'undefined'\n                ? factory(exports)\n                : typeof define === 'function' && define.amd\n                  ? define(['exports'], factory)\n                  : factory((global.opentype = {}));\n            })(this, function(exports) {\n              'use strict';\n\n              /*! https://mths.be/codepointat v0.2.0 by @mathias */\n              if (!String.prototype.codePointAt) {\n                (function() {\n                  var defineProperty = (function() {\n                    // IE 8 only supports `Object.defineProperty` on DOM elements\n                    try {\n                      var object = {};\n                      var $defineProperty = Object.defineProperty;\n                      var result =\n                        $defineProperty(object, object, object) && $defineProperty;\n                    } catch (error) {}\n                    return result;\n                  })();\n                  var codePointAt = function(position) {\n                    if (this == null) {\n                      throw TypeError();\n                    }\n                    var string = String(this);\n                    var size = string.length;\n                    // `ToInteger`\n                    var index = position ? Number(position) : 0;\n                    if (index != index) {\n                      // better `isNaN`\n                      index = 0;\n                    }\n                    // Account for out-of-bounds indices:\n                    if (index < 0 || index >= size) {\n                      return undefined;\n                    }\n                    // Get the first code unit\n                    var first = string.charCodeAt(index);\n                    var second;\n                    if (\n                      // check if it’s the start of a surrogate pair\n                      first >= 0xd800 &&\n                      first <= 0xdbff && // high surrogate\n                      size > index + 1 // there is a next code unit\n                    ) {\n                      second = string.charCodeAt(index + 1);\n                      if (second >= 0xdc00 && second <= 0xdfff) {\n                        // low surrogate\n                        // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n                        return (first - 0xd800) * 0x400 + second - 0xdc00 + 0x10000;\n                      }\n                    }\n                    return first;\n                  };\n                  if (defineProperty) {\n                    defineProperty(String.prototype, 'codePointAt', {\n                      value: codePointAt,\n                      configurable: true,\n                      writable: true\n                    });\n                  } else {\n                    String.prototype.codePointAt = codePointAt;\n                  }\n                })();\n              }\n\n              var TINF_OK = 0;\n              var TINF_DATA_ERROR = -3;\n\n              function Tree() {\n                this.table = new Uint16Array(16); /* table of code length counts */\n                this.trans = new Uint16Array(288); /* code -> symbol translation table */\n              }\n\n              function Data(source, dest) {\n                this.source = source;\n                this.sourceIndex = 0;\n                this.tag = 0;\n                this.bitcount = 0;\n\n                this.dest = dest;\n                this.destLen = 0;\n\n                this.ltree = new Tree(); /* dynamic length/symbol tree */\n                this.dtree = new Tree(); /* dynamic distance tree */\n              }\n\n              /* --------------------------------------------------- *\n\t * -- uninitialized global data (static structures) -- *\n\t * --------------------------------------------------- */\n\n              var sltree = new Tree();\n              var sdtree = new Tree();\n\n              /* extra bits and base tables for length codes */\n              var length_bits = new Uint8Array(30);\n              var length_base = new Uint16Array(30);\n\n              /* extra bits and base tables for distance codes */\n              var dist_bits = new Uint8Array(30);\n              var dist_base = new Uint16Array(30);\n\n              /* special ordering of code length codes */\n              var clcidx = new Uint8Array([\n                16,\n                17,\n                18,\n                0,\n                8,\n                7,\n                9,\n                6,\n                10,\n                5,\n                11,\n                4,\n                12,\n                3,\n                13,\n                2,\n                14,\n                1,\n                15\n              ]);\n\n              /* used by tinf_decode_trees, avoids allocations every call */\n              var code_tree = new Tree();\n              var lengths = new Uint8Array(288 + 32);\n\n              /* ----------------------- *\n\t * -- utility functions -- *\n\t * ----------------------- */\n\n              /* build extra bits and base tables */\n              function tinf_build_bits_base(bits, base, delta, first) {\n                var i, sum;\n\n                /* build bits table */\n                for (i = 0; i < delta; ++i) {\n                  bits[i] = 0;\n                }\n                for (i = 0; i < 30 - delta; ++i) {\n                  bits[i + delta] = (i / delta) | 0;\n                }\n\n                /* build base table */\n                for (sum = first, i = 0; i < 30; ++i) {\n                  base[i] = sum;\n                  sum += 1 << bits[i];\n                }\n              }\n\n              /* build the fixed huffman trees */\n              function tinf_build_fixed_trees(lt, dt) {\n                var i;\n\n                /* build fixed length tree */\n                for (i = 0; i < 7; ++i) {\n                  lt.table[i] = 0;\n                }\n\n                lt.table[7] = 24;\n                lt.table[8] = 152;\n                lt.table[9] = 112;\n\n                for (i = 0; i < 24; ++i) {\n                  lt.trans[i] = 256 + i;\n                }\n                for (i = 0; i < 144; ++i) {\n                  lt.trans[24 + i] = i;\n                }\n                for (i = 0; i < 8; ++i) {\n                  lt.trans[24 + 144 + i] = 280 + i;\n                }\n                for (i = 0; i < 112; ++i) {\n                  lt.trans[24 + 144 + 8 + i] = 144 + i;\n                }\n\n                /* build fixed distance tree */\n                for (i = 0; i < 5; ++i) {\n                  dt.table[i] = 0;\n                }\n\n                dt.table[5] = 32;\n\n                for (i = 0; i < 32; ++i) {\n                  dt.trans[i] = i;\n                }\n              }\n\n              /* given an array of code lengths, build a tree */\n              var offs = new Uint16Array(16);\n\n              function tinf_build_tree(t, lengths, off, num) {\n                var i, sum;\n\n                /* clear code length count table */\n                for (i = 0; i < 16; ++i) {\n                  t.table[i] = 0;\n                }\n\n                /* scan symbol lengths, and sum code length counts */\n                for (i = 0; i < num; ++i) {\n                  t.table[lengths[off + i]]++;\n                }\n\n                t.table[0] = 0;\n\n                /* compute offset table for distribution sort */\n                for (sum = 0, i = 0; i < 16; ++i) {\n                  offs[i] = sum;\n                  sum += t.table[i];\n                }\n\n                /* create code->symbol translation table (symbols sorted by code) */\n                for (i = 0; i < num; ++i) {\n                  if (lengths[off + i]) {\n                    t.trans[offs[lengths[off + i]]++] = i;\n                  }\n                }\n              }\n\n              /* ---------------------- *\n\t * -- decode functions -- *\n\t * ---------------------- */\n\n              /* get one bit from source stream */\n              function tinf_getbit(d) {\n                /* check if tag is empty */\n                if (!d.bitcount--) {\n                  /* load next tag */\n                  d.tag = d.source[d.sourceIndex++];\n                  d.bitcount = 7;\n                }\n\n                /* shift bit out of tag */\n                var bit = d.tag & 1;\n                d.tag >>>= 1;\n\n                return bit;\n              }\n\n              /* read a num bit value from a stream and add base */\n              function tinf_read_bits(d, num, base) {\n                if (!num) {\n                  return base;\n                }\n\n                while (d.bitcount < 24) {\n                  d.tag |= d.source[d.sourceIndex++] << d.bitcount;\n                  d.bitcount += 8;\n                }\n\n                var val = d.tag & (0xffff >>> (16 - num));\n                d.tag >>>= num;\n                d.bitcount -= num;\n                return val + base;\n              }\n\n              /* given a data stream and a tree, decode a symbol */\n              function tinf_decode_symbol(d, t) {\n                while (d.bitcount < 24) {\n                  d.tag |= d.source[d.sourceIndex++] << d.bitcount;\n                  d.bitcount += 8;\n                }\n\n                var sum = 0,\n                  cur = 0,\n                  len = 0;\n                var tag = d.tag;\n\n                /* get more bits while code value is above sum */\n                do {\n                  cur = 2 * cur + (tag & 1);\n                  tag >>>= 1;\n                  ++len;\n\n                  sum += t.table[len];\n                  cur -= t.table[len];\n                } while (cur >= 0);\n\n                d.tag = tag;\n                d.bitcount -= len;\n\n                return t.trans[sum + cur];\n              }\n\n              /* given a data stream, decode dynamic trees from it */\n              function tinf_decode_trees(d, lt, dt) {\n                var hlit, hdist, hclen;\n                var i, num, length;\n\n                /* get 5 bits HLIT (257-286) */\n                hlit = tinf_read_bits(d, 5, 257);\n\n                /* get 5 bits HDIST (1-32) */\n                hdist = tinf_read_bits(d, 5, 1);\n\n                /* get 4 bits HCLEN (4-19) */\n                hclen = tinf_read_bits(d, 4, 4);\n\n                for (i = 0; i < 19; ++i) {\n                  lengths[i] = 0;\n                }\n\n                /* read code lengths for code length alphabet */\n                for (i = 0; i < hclen; ++i) {\n                  /* get 3 bits code length (0-7) */\n                  var clen = tinf_read_bits(d, 3, 0);\n                  lengths[clcidx[i]] = clen;\n                }\n\n                /* build code length tree */\n                tinf_build_tree(code_tree, lengths, 0, 19);\n\n                /* decode code lengths for the dynamic trees */\n                for (num = 0; num < hlit + hdist; ) {\n                  var sym = tinf_decode_symbol(d, code_tree);\n\n                  switch (sym) {\n                    case 16:\n                      /* copy previous code length 3-6 times (read 2 bits) */\n                      var prev = lengths[num - 1];\n                      for (length = tinf_read_bits(d, 2, 3); length; --length) {\n                        lengths[num++] = prev;\n                      }\n                      break;\n                    case 17:\n                      /* repeat code length 0 for 3-10 times (read 3 bits) */\n                      for (length = tinf_read_bits(d, 3, 3); length; --length) {\n                        lengths[num++] = 0;\n                      }\n                      break;\n                    case 18:\n                      /* repeat code length 0 for 11-138 times (read 7 bits) */\n                      for (length = tinf_read_bits(d, 7, 11); length; --length) {\n                        lengths[num++] = 0;\n                      }\n                      break;\n                    default:\n                      /* values 0-15 represent the actual code lengths */\n                      lengths[num++] = sym;\n                      break;\n                  }\n                }\n\n                /* build dynamic trees */\n                tinf_build_tree(lt, lengths, 0, hlit);\n                tinf_build_tree(dt, lengths, hlit, hdist);\n              }\n\n              /* ----------------------------- *\n\t * -- block inflate functions -- *\n\t * ----------------------------- */\n\n              /* given a stream and two trees, inflate a block of data */\n              function tinf_inflate_block_data(d, lt, dt) {\n                while (1) {\n                  var sym = tinf_decode_symbol(d, lt);\n\n                  /* check for end of block */\n                  if (sym === 256) {\n                    return TINF_OK;\n                  }\n\n                  if (sym < 256) {\n                    d.dest[d.destLen++] = sym;\n                  } else {\n                    var length, dist, offs;\n                    var i;\n\n                    sym -= 257;\n\n                    /* possibly get more bits from length code */\n                    length = tinf_read_bits(d, length_bits[sym], length_base[sym]);\n\n                    dist = tinf_decode_symbol(d, dt);\n\n                    /* possibly get more bits from distance code */\n                    offs = d.destLen - tinf_read_bits(d, dist_bits[dist], dist_base[dist]);\n\n                    /* copy match */\n                    for (i = offs; i < offs + length; ++i) {\n                      d.dest[d.destLen++] = d.dest[i];\n                    }\n                  }\n                }\n              }\n\n              /* inflate an uncompressed block of data */\n              function tinf_inflate_uncompressed_block(d) {\n                var length, invlength;\n                var i;\n\n                /* unread from bitbuffer */\n                while (d.bitcount > 8) {\n                  d.sourceIndex--;\n                  d.bitcount -= 8;\n                }\n\n                /* get length */\n                length = d.source[d.sourceIndex + 1];\n                length = 256 * length + d.source[d.sourceIndex];\n\n                /* get one's complement of length */\n                invlength = d.source[d.sourceIndex + 3];\n                invlength = 256 * invlength + d.source[d.sourceIndex + 2];\n\n                /* check length */\n                if (length !== (~invlength & 0x0000ffff)) {\n                  return TINF_DATA_ERROR;\n                }\n\n                d.sourceIndex += 4;\n\n                /* copy block */\n                for (i = length; i; --i) {\n                  d.dest[d.destLen++] = d.source[d.sourceIndex++];\n                }\n\n                /* make sure we start next block on a byte boundary */\n                d.bitcount = 0;\n\n                return TINF_OK;\n              }\n\n              /* inflate stream from source to dest */\n              function tinf_uncompress(source, dest) {\n                var d = new Data(source, dest);\n                var bfinal, btype, res;\n\n                do {\n                  /* read final block flag */\n                  bfinal = tinf_getbit(d);\n\n                  /* read block type (2 bits) */\n                  btype = tinf_read_bits(d, 2, 0);\n\n                  /* decompress block */\n                  switch (btype) {\n                    case 0:\n                      /* decompress uncompressed block */\n                      res = tinf_inflate_uncompressed_block(d);\n                      break;\n                    case 1:\n                      /* decompress block with fixed huffman trees */\n                      res = tinf_inflate_block_data(d, sltree, sdtree);\n                      break;\n                    case 2:\n                      /* decompress block with dynamic huffman trees */\n                      tinf_decode_trees(d, d.ltree, d.dtree);\n                      res = tinf_inflate_block_data(d, d.ltree, d.dtree);\n                      break;\n                    default:\n                      res = TINF_DATA_ERROR;\n                  }\n\n                  if (res !== TINF_OK) {\n                    throw new Error('Data error');\n                  }\n                } while (!bfinal);\n\n                if (d.destLen < d.dest.length) {\n                  if (typeof d.dest.slice === 'function') {\n                    return d.dest.slice(0, d.destLen);\n                  } else {\n                    return d.dest.subarray(0, d.destLen);\n                  }\n                }\n\n                return d.dest;\n              }\n\n              /* -------------------- *\n\t * -- initialization -- *\n\t * -------------------- */\n\n              /* build fixed huffman trees */\n              tinf_build_fixed_trees(sltree, sdtree);\n\n              /* build extra bits and base tables */\n              tinf_build_bits_base(length_bits, length_base, 4, 3);\n              tinf_build_bits_base(dist_bits, dist_base, 2, 1);\n\n              /* fix a special case */\n              length_bits[28] = 0;\n              length_base[28] = 258;\n\n              var tinyInflate = tinf_uncompress;\n\n              // The Bounding Box object\n\n              function derive(v0, v1, v2, v3, t) {\n                return (\n                  Math.pow(1 - t, 3) * v0 +\n                  3 * Math.pow(1 - t, 2) * t * v1 +\n                  3 * (1 - t) * Math.pow(t, 2) * v2 +\n                  Math.pow(t, 3) * v3\n                );\n              }\n              /**\n               * A bounding box is an enclosing box that describes the smallest measure within which all the points lie.\n               * It is used to calculate the bounding box of a glyph or text path.\n               *\n               * On initialization, x1/y1/x2/y2 will be NaN. Check if the bounding box is empty using `isEmpty()`.\n               *\n               * @exports opentype.BoundingBox\n               * @class\n               * @constructor\n               */\n              function BoundingBox() {\n                this.x1 = Number.NaN;\n                this.y1 = Number.NaN;\n                this.x2 = Number.NaN;\n                this.y2 = Number.NaN;\n              }\n\n              /**\n               * Returns true if the bounding box is empty, that is, no points have been added to the box yet.\n               */\n              BoundingBox.prototype.isEmpty = function() {\n                return isNaN(this.x1) || isNaN(this.y1) || isNaN(this.x2) || isNaN(this.y2);\n              };\n\n              /**\n               * Add the point to the bounding box.\n               * The x1/y1/x2/y2 coordinates of the bounding box will now encompass the given point.\n               * @param {number} x - The X coordinate of the point.\n               * @param {number} y - The Y coordinate of the point.\n               */\n              BoundingBox.prototype.addPoint = function(x, y) {\n                if (typeof x === 'number') {\n                  if (isNaN(this.x1) || isNaN(this.x2)) {\n                    this.x1 = x;\n                    this.x2 = x;\n                  }\n                  if (x < this.x1) {\n                    this.x1 = x;\n                  }\n                  if (x > this.x2) {\n                    this.x2 = x;\n                  }\n                }\n                if (typeof y === 'number') {\n                  if (isNaN(this.y1) || isNaN(this.y2)) {\n                    this.y1 = y;\n                    this.y2 = y;\n                  }\n                  if (y < this.y1) {\n                    this.y1 = y;\n                  }\n                  if (y > this.y2) {\n                    this.y2 = y;\n                  }\n                }\n              };\n\n              /**\n               * Add a X coordinate to the bounding box.\n               * This extends the bounding box to include the X coordinate.\n               * This function is used internally inside of addBezier.\n               * @param {number} x - The X coordinate of the point.\n               */\n              BoundingBox.prototype.addX = function(x) {\n                this.addPoint(x, null);\n              };\n\n              /**\n               * Add a Y coordinate to the bounding box.\n               * This extends the bounding box to include the Y coordinate.\n               * This function is used internally inside of addBezier.\n               * @param {number} y - The Y coordinate of the point.\n               */\n              BoundingBox.prototype.addY = function(y) {\n                this.addPoint(null, y);\n              };\n\n              /**\n               * Add a Bézier curve to the bounding box.\n               * This extends the bounding box to include the entire Bézier.\n               * @param {number} x0 - The starting X coordinate.\n               * @param {number} y0 - The starting Y coordinate.\n               * @param {number} x1 - The X coordinate of the first control point.\n               * @param {number} y1 - The Y coordinate of the first control point.\n               * @param {number} x2 - The X coordinate of the second control point.\n               * @param {number} y2 - The Y coordinate of the second control point.\n               * @param {number} x - The ending X coordinate.\n               * @param {number} y - The ending Y coordinate.\n               */\n              BoundingBox.prototype.addBezier = function(x0, y0, x1, y1, x2, y2, x, y) {\n                var this$1 = this;\n\n                // This code is based on http://nishiohirokazu.blogspot.com/2009/06/how-to-calculate-bezier-curves-bounding.html\n                // and https://github.com/icons8/svg-path-bounding-box\n\n                var p0 = [x0, y0];\n                var p1 = [x1, y1];\n                var p2 = [x2, y2];\n                var p3 = [x, y];\n\n                this.addPoint(x0, y0);\n                this.addPoint(x, y);\n\n                for (var i = 0; i <= 1; i++) {\n                  var b = 6 * p0[i] - 12 * p1[i] + 6 * p2[i];\n                  var a = -3 * p0[i] + 9 * p1[i] - 9 * p2[i] + 3 * p3[i];\n                  var c = 3 * p1[i] - 3 * p0[i];\n\n                  if (a === 0) {\n                    if (b === 0) {\n                      continue;\n                    }\n                    var t = -c / b;\n                    if (0 < t && t < 1) {\n                      if (i === 0) {\n                        this$1.addX(derive(p0[i], p1[i], p2[i], p3[i], t));\n                      }\n                      if (i === 1) {\n                        this$1.addY(derive(p0[i], p1[i], p2[i], p3[i], t));\n                      }\n                    }\n                    continue;\n                  }\n\n                  var b2ac = Math.pow(b, 2) - 4 * c * a;\n                  if (b2ac < 0) {\n                    continue;\n                  }\n                  var t1 = (-b + Math.sqrt(b2ac)) / (2 * a);\n                  if (0 < t1 && t1 < 1) {\n                    if (i === 0) {\n                      this$1.addX(derive(p0[i], p1[i], p2[i], p3[i], t1));\n                    }\n                    if (i === 1) {\n                      this$1.addY(derive(p0[i], p1[i], p2[i], p3[i], t1));\n                    }\n                  }\n                  var t2 = (-b - Math.sqrt(b2ac)) / (2 * a);\n                  if (0 < t2 && t2 < 1) {\n                    if (i === 0) {\n                      this$1.addX(derive(p0[i], p1[i], p2[i], p3[i], t2));\n                    }\n                    if (i === 1) {\n                      this$1.addY(derive(p0[i], p1[i], p2[i], p3[i], t2));\n                    }\n                  }\n                }\n              };\n\n              /**\n               * Add a quadratic curve to the bounding box.\n               * This extends the bounding box to include the entire quadratic curve.\n               * @param {number} x0 - The starting X coordinate.\n               * @param {number} y0 - The starting Y coordinate.\n               * @param {number} x1 - The X coordinate of the control point.\n               * @param {number} y1 - The Y coordinate of the control point.\n               * @param {number} x - The ending X coordinate.\n               * @param {number} y - The ending Y coordinate.\n               */\n              BoundingBox.prototype.addQuad = function(x0, y0, x1, y1, x, y) {\n                var cp1x = x0 + 2 / 3 * (x1 - x0);\n                var cp1y = y0 + 2 / 3 * (y1 - y0);\n                var cp2x = cp1x + 1 / 3 * (x - x0);\n                var cp2y = cp1y + 1 / 3 * (y - y0);\n                this.addBezier(x0, y0, cp1x, cp1y, cp2x, cp2y, x, y);\n              };\n\n              // Geometric objects\n\n              /**\n               * A bézier path containing a set of path commands similar to a SVG path.\n               * Paths can be drawn on a context using `draw`.\n               * @exports opentype.Path\n               * @class\n               * @constructor\n               */\n              function Path() {\n                this.commands = [];\n                this.fill = 'black';\n                this.stroke = null;\n                this.strokeWidth = 1;\n              }\n\n              /**\n               * @param  {number} x\n               * @param  {number} y\n               */\n              Path.prototype.moveTo = function(x, y) {\n                this.commands.push({\n                  type: 'M',\n                  x: x,\n                  y: y\n                });\n              };\n\n              /**\n               * @param  {number} x\n               * @param  {number} y\n               */\n              Path.prototype.lineTo = function(x, y) {\n                this.commands.push({\n                  type: 'L',\n                  x: x,\n                  y: y\n                });\n              };\n\n              /**\n               * Draws cubic curve\n               * @function\n               * curveTo\n               * @memberof opentype.Path.prototype\n               * @param  {number} x1 - x of control 1\n               * @param  {number} y1 - y of control 1\n               * @param  {number} x2 - x of control 2\n               * @param  {number} y2 - y of control 2\n               * @param  {number} x - x of path point\n               * @param  {number} y - y of path point\n               */\n\n              /**\n               * Draws cubic curve\n               * @function\n               * bezierCurveTo\n               * @memberof opentype.Path.prototype\n               * @param  {number} x1 - x of control 1\n               * @param  {number} y1 - y of control 1\n               * @param  {number} x2 - x of control 2\n               * @param  {number} y2 - y of control 2\n               * @param  {number} x - x of path point\n               * @param  {number} y - y of path point\n               * @see curveTo\n               */\n              Path.prototype.curveTo = Path.prototype.bezierCurveTo = function(\n                x1,\n                y1,\n                x2,\n                y2,\n                x,\n                y\n              ) {\n                this.commands.push({\n                  type: 'C',\n                  x1: x1,\n                  y1: y1,\n                  x2: x2,\n                  y2: y2,\n                  x: x,\n                  y: y\n                });\n              };\n\n              /**\n               * Draws quadratic curve\n               * @function\n               * quadraticCurveTo\n               * @memberof opentype.Path.prototype\n               * @param  {number} x1 - x of control\n               * @param  {number} y1 - y of control\n               * @param  {number} x - x of path point\n               * @param  {number} y - y of path point\n               */\n\n              /**\n               * Draws quadratic curve\n               * @function\n               * quadTo\n               * @memberof opentype.Path.prototype\n               * @param  {number} x1 - x of control\n               * @param  {number} y1 - y of control\n               * @param  {number} x - x of path point\n               * @param  {number} y - y of path point\n               */\n              Path.prototype.quadTo = Path.prototype.quadraticCurveTo = function(\n                x1,\n                y1,\n                x,\n                y\n              ) {\n                this.commands.push({\n                  type: 'Q',\n                  x1: x1,\n                  y1: y1,\n                  x: x,\n                  y: y\n                });\n              };\n\n              /**\n               * Closes the path\n               * @function closePath\n               * @memberof opentype.Path.prototype\n               */\n\n              /**\n               * Close the path\n               * @function close\n               * @memberof opentype.Path.prototype\n               */\n              Path.prototype.close = Path.prototype.closePath = function() {\n                this.commands.push({\n                  type: 'Z'\n                });\n              };\n\n              /**\n               * Add the given path or list of commands to the commands of this path.\n               * @param  {Array} pathOrCommands - another opentype.Path, an opentype.BoundingBox, or an array of commands.\n               */\n              Path.prototype.extend = function(pathOrCommands) {\n                if (pathOrCommands.commands) {\n                  pathOrCommands = pathOrCommands.commands;\n                } else if (pathOrCommands instanceof BoundingBox) {\n                  var box = pathOrCommands;\n                  this.moveTo(box.x1, box.y1);\n                  this.lineTo(box.x2, box.y1);\n                  this.lineTo(box.x2, box.y2);\n                  this.lineTo(box.x1, box.y2);\n                  this.close();\n                  return;\n                }\n\n                Array.prototype.push.apply(this.commands, pathOrCommands);\n              };\n\n              /**\n               * Calculate the bounding box of the path.\n               * @returns {opentype.BoundingBox}\n               */\n              Path.prototype.getBoundingBox = function() {\n                var this$1 = this;\n\n                var box = new BoundingBox();\n\n                var startX = 0;\n                var startY = 0;\n                var prevX = 0;\n                var prevY = 0;\n                for (var i = 0; i < this.commands.length; i++) {\n                  var cmd = this$1.commands[i];\n                  switch (cmd.type) {\n                    case 'M':\n                      box.addPoint(cmd.x, cmd.y);\n                      startX = prevX = cmd.x;\n                      startY = prevY = cmd.y;\n                      break;\n                    case 'L':\n                      box.addPoint(cmd.x, cmd.y);\n                      prevX = cmd.x;\n                      prevY = cmd.y;\n                      break;\n                    case 'Q':\n                      box.addQuad(prevX, prevY, cmd.x1, cmd.y1, cmd.x, cmd.y);\n                      prevX = cmd.x;\n                      prevY = cmd.y;\n                      break;\n                    case 'C':\n                      box.addBezier(\n                        prevX,\n                        prevY,\n                        cmd.x1,\n                        cmd.y1,\n                        cmd.x2,\n                        cmd.y2,\n                        cmd.x,\n                        cmd.y\n                      );\n                      prevX = cmd.x;\n                      prevY = cmd.y;\n                      break;\n                    case 'Z':\n                      prevX = startX;\n                      prevY = startY;\n                      break;\n                    default:\n                      throw new Error('Unexpected path command ' + cmd.type);\n                  }\n                }\n                if (box.isEmpty()) {\n                  box.addPoint(0, 0);\n                }\n                return box;\n              };\n\n              /**\n               * Draw the path to a 2D context.\n               * @param {CanvasRenderingContext2D} ctx - A 2D drawing context.\n               */\n              Path.prototype.draw = function(ctx) {\n                var this$1 = this;\n\n                ctx.beginPath();\n                for (var i = 0; i < this.commands.length; i += 1) {\n                  var cmd = this$1.commands[i];\n                  if (cmd.type === 'M') {\n                    ctx.moveTo(cmd.x, cmd.y);\n                  } else if (cmd.type === 'L') {\n                    ctx.lineTo(cmd.x, cmd.y);\n                  } else if (cmd.type === 'C') {\n                    ctx.bezierCurveTo(cmd.x1, cmd.y1, cmd.x2, cmd.y2, cmd.x, cmd.y);\n                  } else if (cmd.type === 'Q') {\n                    ctx.quadraticCurveTo(cmd.x1, cmd.y1, cmd.x, cmd.y);\n                  } else if (cmd.type === 'Z') {\n                    ctx.closePath();\n                  }\n                }\n\n                if (this.fill) {\n                  ctx.fillStyle = this.fill;\n                  ctx.fill();\n                }\n\n                if (this.stroke) {\n                  ctx.strokeStyle = this.stroke;\n                  ctx.lineWidth = this.strokeWidth;\n                  ctx.stroke();\n                }\n              };\n\n              /**\n               * Convert the Path to a string of path data instructions\n               * See http://www.w3.org/TR/SVG/paths.html#PathData\n               * @param  {number} [decimalPlaces=2] - The amount of decimal places for floating-point values\n               * @return {string}\n               */\n              Path.prototype.toPathData = function(decimalPlaces) {\n                var this$1 = this;\n\n                decimalPlaces = decimalPlaces !== undefined ? decimalPlaces : 2;\n\n                function floatToString(v) {\n                  if (Math.round(v) === v) {\n                    return '' + Math.round(v);\n                  } else {\n                    return v.toFixed(decimalPlaces);\n                  }\n                }\n\n                function packValues() {\n                  var arguments$1 = arguments;\n\n                  var s = '';\n                  for (var i = 0; i < arguments.length; i += 1) {\n                    var v = arguments$1[i];\n                    if (v >= 0 && i > 0) {\n                      s += ' ';\n                    }\n\n                    s += floatToString(v);\n                  }\n\n                  return s;\n                }\n\n                var d = '';\n                for (var i = 0; i < this.commands.length; i += 1) {\n                  var cmd = this$1.commands[i];\n                  if (cmd.type === 'M') {\n                    d += 'M' + packValues(cmd.x, cmd.y);\n                  } else if (cmd.type === 'L') {\n                    d += 'L' + packValues(cmd.x, cmd.y);\n                  } else if (cmd.type === 'C') {\n                    d += 'C' + packValues(cmd.x1, cmd.y1, cmd.x2, cmd.y2, cmd.x, cmd.y);\n                  } else if (cmd.type === 'Q') {\n                    d += 'Q' + packValues(cmd.x1, cmd.y1, cmd.x, cmd.y);\n                  } else if (cmd.type === 'Z') {\n                    d += 'Z';\n                  }\n                }\n\n                return d;\n              };\n\n              /**\n               * Convert the path to an SVG <path> element, as a string.\n               * @param  {number} [decimalPlaces=2] - The amount of decimal places for floating-point values\n               * @return {string}\n               */\n              Path.prototype.toSVG = function(decimalPlaces) {\n                var svg = '<path d=\"';\n                svg += this.toPathData(decimalPlaces);\n                svg += '\"';\n                if (this.fill && this.fill !== 'black') {\n                  if (this.fill === null) {\n                    svg += ' fill=\"none\"';\n                  } else {\n                    svg += ' fill=\"' + this.fill + '\"';\n                  }\n                }\n\n                if (this.stroke) {\n                  svg +=\n                    ' stroke=\"' + this.stroke + '\" stroke-width=\"' + this.strokeWidth + '\"';\n                }\n\n                svg += '/>';\n                return svg;\n              };\n\n              /**\n               * Convert the path to a DOM element.\n               * @param  {number} [decimalPlaces=2] - The amount of decimal places for floating-point values\n               * @return {SVGPathElement}\n               */\n              Path.prototype.toDOMElement = function(decimalPlaces) {\n                var temporaryPath = this.toPathData(decimalPlaces);\n                var newPath = document.createElementNS(\n                  'http://www.w3.org/2000/svg',\n                  'path'\n                );\n\n                newPath.setAttribute('d', temporaryPath);\n\n                return newPath;\n              };\n\n              // Run-time checking of preconditions.\n\n              function fail(message) {\n                throw new Error(message);\n              }\n\n              // Precondition function that checks if the given predicate is true.\n              // If not, it will throw an error.\n              function argument(predicate, message) {\n                if (!predicate) {\n                  fail(message);\n                }\n              }\n              var check = { fail: fail, argument: argument, assert: argument };\n\n              // Data types used in the OpenType font file.\n\n              var LIMIT16 = 32768; // The limit at which a 16-bit number switches signs == 2^15\n              var LIMIT32 = 2147483648; // The limit at which a 32-bit number switches signs == 2 ^ 31\n\n              /**\n               * @exports opentype.decode\n               * @class\n               */\n              var decode = {};\n              /**\n               * @exports opentype.encode\n               * @class\n               */\n              var encode = {};\n              /**\n               * @exports opentype.sizeOf\n               * @class\n               */\n              var sizeOf = {};\n\n              // Return a function that always returns the same value.\n              function constant(v) {\n                return function() {\n                  return v;\n                };\n              }\n\n              // OpenType data types //////////////////////////////////////////////////////\n\n              /**\n               * Convert an 8-bit unsigned integer to a list of 1 byte.\n               * @param {number}\n               * @returns {Array}\n               */\n              encode.BYTE = function(v) {\n                check.argument(\n                  v >= 0 && v <= 255,\n                  'Byte value should be between 0 and 255.'\n                );\n                return [v];\n              };\n              /**\n               * @constant\n               * @type {number}\n               */\n              sizeOf.BYTE = constant(1);\n\n              /**\n               * Convert a 8-bit signed integer to a list of 1 byte.\n               * @param {string}\n               * @returns {Array}\n               */\n              encode.CHAR = function(v) {\n                return [v.charCodeAt(0)];\n              };\n\n              /**\n               * @constant\n               * @type {number}\n               */\n              sizeOf.CHAR = constant(1);\n\n              /**\n               * Convert an ASCII string to a list of bytes.\n               * @param {string}\n               * @returns {Array}\n               */\n              encode.CHARARRAY = function(v) {\n                var b = [];\n                for (var i = 0; i < v.length; i += 1) {\n                  b[i] = v.charCodeAt(i);\n                }\n\n                return b;\n              };\n\n              /**\n               * @param {Array}\n               * @returns {number}\n               */\n              sizeOf.CHARARRAY = function(v) {\n                return v.length;\n              };\n\n              /**\n               * Convert a 16-bit unsigned integer to a list of 2 bytes.\n               * @param {number}\n               * @returns {Array}\n               */\n              encode.USHORT = function(v) {\n                return [(v >> 8) & 0xff, v & 0xff];\n              };\n\n              /**\n               * @constant\n               * @type {number}\n               */\n              sizeOf.USHORT = constant(2);\n\n              /**\n               * Convert a 16-bit signed integer to a list of 2 bytes.\n               * @param {number}\n               * @returns {Array}\n               */\n              encode.SHORT = function(v) {\n                // Two's complement\n                if (v >= LIMIT16) {\n                  v = -(2 * LIMIT16 - v);\n                }\n\n                return [(v >> 8) & 0xff, v & 0xff];\n              };\n\n              /**\n               * @constant\n               * @type {number}\n               */\n              sizeOf.SHORT = constant(2);\n\n              /**\n               * Convert a 24-bit unsigned integer to a list of 3 bytes.\n               * @param {number}\n               * @returns {Array}\n               */\n              encode.UINT24 = function(v) {\n                return [(v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff];\n              };\n\n              /**\n               * @constant\n               * @type {number}\n               */\n              sizeOf.UINT24 = constant(3);\n\n              /**\n               * Convert a 32-bit unsigned integer to a list of 4 bytes.\n               * @param {number}\n               * @returns {Array}\n               */\n              encode.ULONG = function(v) {\n                return [(v >> 24) & 0xff, (v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff];\n              };\n\n              /**\n               * @constant\n               * @type {number}\n               */\n              sizeOf.ULONG = constant(4);\n\n              /**\n               * Convert a 32-bit unsigned integer to a list of 4 bytes.\n               * @param {number}\n               * @returns {Array}\n               */\n              encode.LONG = function(v) {\n                // Two's complement\n                if (v >= LIMIT32) {\n                  v = -(2 * LIMIT32 - v);\n                }\n\n                return [(v >> 24) & 0xff, (v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff];\n              };\n\n              /**\n               * @constant\n               * @type {number}\n               */\n              sizeOf.LONG = constant(4);\n\n              encode.FIXED = encode.ULONG;\n              sizeOf.FIXED = sizeOf.ULONG;\n\n              encode.FWORD = encode.SHORT;\n              sizeOf.FWORD = sizeOf.SHORT;\n\n              encode.UFWORD = encode.USHORT;\n              sizeOf.UFWORD = sizeOf.USHORT;\n\n              /**\n               * Convert a 32-bit Apple Mac timestamp integer to a list of 8 bytes, 64-bit timestamp.\n               * @param {number}\n               * @returns {Array}\n               */\n              encode.LONGDATETIME = function(v) {\n                return [\n                  0,\n                  0,\n                  0,\n                  0,\n                  (v >> 24) & 0xff,\n                  (v >> 16) & 0xff,\n                  (v >> 8) & 0xff,\n                  v & 0xff\n                ];\n              };\n\n              /**\n               * @constant\n               * @type {number}\n               */\n              sizeOf.LONGDATETIME = constant(8);\n\n              /**\n               * Convert a 4-char tag to a list of 4 bytes.\n               * @param {string}\n               * @returns {Array}\n               */\n              encode.TAG = function(v) {\n                check.argument(v.length === 4, 'Tag should be exactly 4 ASCII characters.');\n                return [v.charCodeAt(0), v.charCodeAt(1), v.charCodeAt(2), v.charCodeAt(3)];\n              };\n\n              /**\n               * @constant\n               * @type {number}\n               */\n              sizeOf.TAG = constant(4);\n\n              // CFF data types ///////////////////////////////////////////////////////////\n\n              encode.Card8 = encode.BYTE;\n              sizeOf.Card8 = sizeOf.BYTE;\n\n              encode.Card16 = encode.USHORT;\n              sizeOf.Card16 = sizeOf.USHORT;\n\n              encode.OffSize = encode.BYTE;\n              sizeOf.OffSize = sizeOf.BYTE;\n\n              encode.SID = encode.USHORT;\n              sizeOf.SID = sizeOf.USHORT;\n\n              // Convert a numeric operand or charstring number to a variable-size list of bytes.\n              /**\n               * Convert a numeric operand or charstring number to a variable-size list of bytes.\n               * @param {number}\n               * @returns {Array}\n               */\n              encode.NUMBER = function(v) {\n                if (v >= -107 && v <= 107) {\n                  return [v + 139];\n                } else if (v >= 108 && v <= 1131) {\n                  v = v - 108;\n                  return [(v >> 8) + 247, v & 0xff];\n                } else if (v >= -1131 && v <= -108) {\n                  v = -v - 108;\n                  return [(v >> 8) + 251, v & 0xff];\n                } else if (v >= -32768 && v <= 32767) {\n                  return encode.NUMBER16(v);\n                } else {\n                  return encode.NUMBER32(v);\n                }\n              };\n\n              /**\n               * @param {number}\n               * @returns {number}\n               */\n              sizeOf.NUMBER = function(v) {\n                return encode.NUMBER(v).length;\n              };\n\n              /**\n               * Convert a signed number between -32768 and +32767 to a three-byte value.\n               * This ensures we always use three bytes, but is not the most compact format.\n               * @param {number}\n               * @returns {Array}\n               */\n              encode.NUMBER16 = function(v) {\n                return [28, (v >> 8) & 0xff, v & 0xff];\n              };\n\n              /**\n               * @constant\n               * @type {number}\n               */\n              sizeOf.NUMBER16 = constant(3);\n\n              /**\n               * Convert a signed number between -(2^31) and +(2^31-1) to a five-byte value.\n               * This is useful if you want to be sure you always use four bytes,\n               * at the expense of wasting a few bytes for smaller numbers.\n               * @param {number}\n               * @returns {Array}\n               */\n              encode.NUMBER32 = function(v) {\n                return [29, (v >> 24) & 0xff, (v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff];\n              };\n\n              /**\n               * @constant\n               * @type {number}\n               */\n              sizeOf.NUMBER32 = constant(5);\n\n              /**\n               * @param {number}\n               * @returns {Array}\n               */\n              encode.REAL = function(v) {\n                var value = v.toString();\n\n                // Some numbers use an epsilon to encode the value. (e.g. JavaScript will store 0.0000001 as 1e-7)\n                // This code converts it back to a number without the epsilon.\n                var m = /\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/.exec(value);\n                if (m) {\n                  var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length));\n                  value = (Math.round(v * epsilon) / epsilon).toString();\n                }\n\n                var nibbles = '';\n                for (var i = 0, ii = value.length; i < ii; i += 1) {\n                  var c = value[i];\n                  if (c === 'e') {\n                    nibbles += value[++i] === '-' ? 'c' : 'b';\n                  } else if (c === '.') {\n                    nibbles += 'a';\n                  } else if (c === '-') {\n                    nibbles += 'e';\n                  } else {\n                    nibbles += c;\n                  }\n                }\n\n                nibbles += nibbles.length & 1 ? 'f' : 'ff';\n                var out = [30];\n                for (var i$1 = 0, ii$1 = nibbles.length; i$1 < ii$1; i$1 += 2) {\n                  out.push(parseInt(nibbles.substr(i$1, 2), 16));\n                }\n\n                return out;\n              };\n\n              /**\n               * @param {number}\n               * @returns {number}\n               */\n              sizeOf.REAL = function(v) {\n                return encode.REAL(v).length;\n              };\n\n              encode.NAME = encode.CHARARRAY;\n              sizeOf.NAME = sizeOf.CHARARRAY;\n\n              encode.STRING = encode.CHARARRAY;\n              sizeOf.STRING = sizeOf.CHARARRAY;\n\n              /**\n               * @param {DataView} data\n               * @param {number} offset\n               * @param {number} numBytes\n               * @returns {string}\n               */\n              decode.UTF8 = function(data, offset, numBytes) {\n                var codePoints = [];\n                var numChars = numBytes;\n                for (var j = 0; j < numChars; j++, offset += 1) {\n                  codePoints[j] = data.getUint8(offset);\n                }\n\n                return String.fromCharCode.apply(null, codePoints);\n              };\n\n              /**\n               * @param {DataView} data\n               * @param {number} offset\n               * @param {number} numBytes\n               * @returns {string}\n               */\n              decode.UTF16 = function(data, offset, numBytes) {\n                var codePoints = [];\n                var numChars = numBytes / 2;\n                for (var j = 0; j < numChars; j++, offset += 2) {\n                  codePoints[j] = data.getUint16(offset);\n                }\n\n                return String.fromCharCode.apply(null, codePoints);\n              };\n\n              /**\n               * Convert a JavaScript string to UTF16-BE.\n               * @param {string}\n               * @returns {Array}\n               */\n              encode.UTF16 = function(v) {\n                var b = [];\n                for (var i = 0; i < v.length; i += 1) {\n                  var codepoint = v.charCodeAt(i);\n                  b[b.length] = (codepoint >> 8) & 0xff;\n                  b[b.length] = codepoint & 0xff;\n                }\n\n                return b;\n              };\n\n              /**\n               * @param {string}\n               * @returns {number}\n               */\n              sizeOf.UTF16 = function(v) {\n                return v.length * 2;\n              };\n\n              // Data for converting old eight-bit Macintosh encodings to Unicode.\n              // This representation is optimized for decoding; encoding is slower\n              // and needs more memory. The assumption is that all opentype.js users\n              // want to open fonts, but saving a font will be comparatively rare\n              // so it can be more expensive. Keyed by IANA character set name.\n              //\n              // Python script for generating these strings:\n              //\n              //     s = u''.join([chr(c).decode('mac_greek') for c in range(128, 256)])\n              //     print(s.encode('utf-8'))\n              /**\n               * @private\n               */\n              var eightBitMacEncodings = {\n                // Python: 'mac_croatian'\n                'x-mac-croatian':\n                  'ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø' +\n                  '¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ',\n                // Python: 'mac_cyrillic'\n                'x-mac-cyrillic':\n                  'АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњ' +\n                  'јЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю',\n                // http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/GAELIC.TXT\n                'x-mac-gaelic':\n                  'ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæø' +\n                  'ṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ',\n                // Python: 'mac_greek'\n                'x-mac-greek':\n                  'Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩ' +\n                  'άΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ\\u00AD',\n                // Python: 'mac_iceland'\n                'x-mac-icelandic':\n                  'ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø' +\n                  '¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ',\n                // http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/INUIT.TXT\n                'x-mac-inuit':\n                  'ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗ' +\n                  'ᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł',\n                // Python: 'mac_latin2'\n                'x-mac-ce':\n                  'ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅ' +\n                  'ņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ',\n                // Python: 'mac_roman'\n                macintosh:\n                  'ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø' +\n                  '¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ',\n                // Python: 'mac_romanian'\n                'x-mac-romanian':\n                  'ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș' +\n                  '¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ',\n                // Python: 'mac_turkish'\n                'x-mac-turkish':\n                  'ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø' +\n                  '¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ'\n              };\n\n              /**\n               * Decodes an old-style Macintosh string. Returns either a Unicode JavaScript\n               * string, or 'undefined' if the encoding is unsupported. For example, we do\n               * not support Chinese, Japanese or Korean because these would need large\n               * mapping tables.\n               * @param {DataView} dataView\n               * @param {number} offset\n               * @param {number} dataLength\n               * @param {string} encoding\n               * @returns {string}\n               */\n              decode.MACSTRING = function(dataView, offset, dataLength, encoding) {\n                var table = eightBitMacEncodings[encoding];\n                if (table === undefined) {\n                  return undefined;\n                }\n\n                var result = '';\n                for (var i = 0; i < dataLength; i++) {\n                  var c = dataView.getUint8(offset + i);\n                  // In all eight-bit Mac encodings, the characters 0x00..0x7F are\n                  // mapped to U+0000..U+007F; we only need to look up the others.\n                  if (c <= 0x7f) {\n                    result += String.fromCharCode(c);\n                  } else {\n                    result += table[c & 0x7f];\n                  }\n                }\n\n                return result;\n              };\n\n              // Helper function for encode.MACSTRING. Returns a dictionary for mapping\n              // Unicode character codes to their 8-bit MacOS equivalent. This table\n              // is not exactly a super cheap data structure, but we do not care because\n              // encoding Macintosh strings is only rarely needed in typical applications.\n              var macEncodingTableCache = typeof WeakMap === 'function' && new WeakMap();\n              var macEncodingCacheKeys;\n              var getMacEncodingTable = function(encoding) {\n                // Since we use encoding as a cache key for WeakMap, it has to be\n                // a String object and not a literal. And at least on NodeJS 2.10.1,\n                // WeakMap requires that the same String instance is passed for cache hits.\n                if (!macEncodingCacheKeys) {\n                  macEncodingCacheKeys = {};\n                  for (var e in eightBitMacEncodings) {\n                    /*jshint -W053 */ // Suppress \"Do not use String as a constructor.\"\n                    macEncodingCacheKeys[e] = new String(e);\n                  }\n                }\n\n                var cacheKey = macEncodingCacheKeys[encoding];\n                if (cacheKey === undefined) {\n                  return undefined;\n                }\n\n                // We can't do \"if (cache.has(key)) {return cache.get(key)}\" here:\n                // since garbage collection may run at any time, it could also kick in\n                // between the calls to cache.has() and cache.get(). In that case,\n                // we would return 'undefined' even though we do support the encoding.\n                if (macEncodingTableCache) {\n                  var cachedTable = macEncodingTableCache.get(cacheKey);\n                  if (cachedTable !== undefined) {\n                    return cachedTable;\n                  }\n                }\n\n                var decodingTable = eightBitMacEncodings[encoding];\n                if (decodingTable === undefined) {\n                  return undefined;\n                }\n\n                var encodingTable = {};\n                for (var i = 0; i < decodingTable.length; i++) {\n                  encodingTable[decodingTable.charCodeAt(i)] = i + 0x80;\n                }\n\n                if (macEncodingTableCache) {\n                  macEncodingTableCache.set(cacheKey, encodingTable);\n                }\n\n                return encodingTable;\n              };\n\n              /**\n               * Encodes an old-style Macintosh string. Returns a byte array upon success.\n               * If the requested encoding is unsupported, or if the input string contains\n               * a character that cannot be expressed in the encoding, the function returns\n               * 'undefined'.\n               * @param {string} str\n               * @param {string} encoding\n               * @returns {Array}\n               */\n              encode.MACSTRING = function(str, encoding) {\n                var table = getMacEncodingTable(encoding);\n                if (table === undefined) {\n                  return undefined;\n                }\n\n                var result = [];\n                for (var i = 0; i < str.length; i++) {\n                  var c = str.charCodeAt(i);\n\n                  // In all eight-bit Mac encodings, the characters 0x00..0x7F are\n                  // mapped to U+0000..U+007F; we only need to look up the others.\n                  if (c >= 0x80) {\n                    c = table[c];\n                    if (c === undefined) {\n                      // str contains a Unicode character that cannot be encoded\n                      // in the requested encoding.\n                      return undefined;\n                    }\n                  }\n                  result[i] = c;\n                  // result.push(c);\n                }\n\n                return result;\n              };\n\n              /**\n               * @param {string} str\n               * @param {string} encoding\n               * @returns {number}\n               */\n              sizeOf.MACSTRING = function(str, encoding) {\n                var b = encode.MACSTRING(str, encoding);\n                if (b !== undefined) {\n                  return b.length;\n                } else {\n                  return 0;\n                }\n              };\n\n              // Helper for encode.VARDELTAS\n              function isByteEncodable(value) {\n                return value >= -128 && value <= 127;\n              }\n\n              // Helper for encode.VARDELTAS\n              function encodeVarDeltaRunAsZeroes(deltas, pos, result) {\n                var runLength = 0;\n                var numDeltas = deltas.length;\n                while (pos < numDeltas && runLength < 64 && deltas[pos] === 0) {\n                  ++pos;\n                  ++runLength;\n                }\n                result.push(0x80 | (runLength - 1));\n                return pos;\n              }\n\n              // Helper for encode.VARDELTAS\n              function encodeVarDeltaRunAsBytes(deltas, offset, result) {\n                var runLength = 0;\n                var numDeltas = deltas.length;\n                var pos = offset;\n                while (pos < numDeltas && runLength < 64) {\n                  var value = deltas[pos];\n                  if (!isByteEncodable(value)) {\n                    break;\n                  }\n\n                  // Within a byte-encoded run of deltas, a single zero is best\n                  // stored literally as 0x00 value. However, if we have two or\n                  // more zeroes in a sequence, it is better to start a new run.\n                  // Fore example, the sequence of deltas [15, 15, 0, 15, 15]\n                  // becomes 6 bytes (04 0F 0F 00 0F 0F) when storing the zero\n                  // within the current run, but 7 bytes (01 0F 0F 80 01 0F 0F)\n                  // when starting a new run.\n                  if (value === 0 && pos + 1 < numDeltas && deltas[pos + 1] === 0) {\n                    break;\n                  }\n\n                  ++pos;\n                  ++runLength;\n                }\n                result.push(runLength - 1);\n                for (var i = offset; i < pos; ++i) {\n                  result.push((deltas[i] + 256) & 0xff);\n                }\n                return pos;\n              }\n\n              // Helper for encode.VARDELTAS\n              function encodeVarDeltaRunAsWords(deltas, offset, result) {\n                var runLength = 0;\n                var numDeltas = deltas.length;\n                var pos = offset;\n                while (pos < numDeltas && runLength < 64) {\n                  var value = deltas[pos];\n\n                  // Within a word-encoded run of deltas, it is easiest to start\n                  // a new run (with a different encoding) whenever we encounter\n                  // a zero value. For example, the sequence [0x6666, 0, 0x7777]\n                  // needs 7 bytes when storing the zero inside the current run\n                  // (42 66 66 00 00 77 77), and equally 7 bytes when starting a\n                  // new run (40 66 66 80 40 77 77).\n                  if (value === 0) {\n                    break;\n                  }\n\n                  // Within a word-encoded run of deltas, a single value in the\n                  // range (-128..127) should be encoded within the current run\n                  // because it is more compact. For example, the sequence\n                  // [0x6666, 2, 0x7777] becomes 7 bytes when storing the value\n                  // literally (42 66 66 00 02 77 77), but 8 bytes when starting\n                  // a new run (40 66 66 00 02 40 77 77).\n                  if (\n                    isByteEncodable(value) &&\n                    pos + 1 < numDeltas &&\n                    isByteEncodable(deltas[pos + 1])\n                  ) {\n                    break;\n                  }\n\n                  ++pos;\n                  ++runLength;\n                }\n                result.push(0x40 | (runLength - 1));\n                for (var i = offset; i < pos; ++i) {\n                  var val = deltas[i];\n                  result.push(((val + 0x10000) >> 8) & 0xff, (val + 0x100) & 0xff);\n                }\n                return pos;\n              }\n\n              /**\n               * Encode a list of variation adjustment deltas.\n               *\n               * Variation adjustment deltas are used in ‘gvar’ and ‘cvar’ tables.\n               * They indicate how points (in ‘gvar’) or values (in ‘cvar’) get adjusted\n               * when generating instances of variation fonts.\n               *\n               * @see https://www.microsoft.com/typography/otspec/gvar.htm\n               * @see https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6gvar.html\n               * @param {Array}\n               * @return {Array}\n               */\n              encode.VARDELTAS = function(deltas) {\n                var pos = 0;\n                var result = [];\n                while (pos < deltas.length) {\n                  var value = deltas[pos];\n                  if (value === 0) {\n                    pos = encodeVarDeltaRunAsZeroes(deltas, pos, result);\n                  } else if (value >= -128 && value <= 127) {\n                    pos = encodeVarDeltaRunAsBytes(deltas, pos, result);\n                  } else {\n                    pos = encodeVarDeltaRunAsWords(deltas, pos, result);\n                  }\n                }\n                return result;\n              };\n\n              // Convert a list of values to a CFF INDEX structure.\n              // The values should be objects containing name / type / value.\n              /**\n               * @param {Array} l\n               * @returns {Array}\n               */\n              encode.INDEX = function(l) {\n                //var offset, offsets, offsetEncoder, encodedOffsets, encodedOffset, data,\n                //    i, v;\n                // Because we have to know which data type to use to encode the offsets,\n                // we have to go through the values twice: once to encode the data and\n                // calculate the offsets, then again to encode the offsets using the fitting data type.\n                var offset = 1; // First offset is always 1.\n                var offsets = [offset];\n                var data = [];\n                for (var i = 0; i < l.length; i += 1) {\n                  var v = encode.OBJECT(l[i]);\n                  Array.prototype.push.apply(data, v);\n                  offset += v.length;\n                  offsets.push(offset);\n                }\n\n                if (data.length === 0) {\n                  return [0, 0];\n                }\n\n                var encodedOffsets = [];\n                var offSize = (1 + Math.floor(Math.log(offset) / Math.log(2)) / 8) | 0;\n                var offsetEncoder = [\n                  undefined,\n                  encode.BYTE,\n                  encode.USHORT,\n                  encode.UINT24,\n                  encode.ULONG\n                ][offSize];\n                for (var i$1 = 0; i$1 < offsets.length; i$1 += 1) {\n                  var encodedOffset = offsetEncoder(offsets[i$1]);\n                  Array.prototype.push.apply(encodedOffsets, encodedOffset);\n                }\n\n                return Array.prototype.concat(\n                  encode.Card16(l.length),\n                  encode.OffSize(offSize),\n                  encodedOffsets,\n                  data\n                );\n              };\n\n              /**\n               * @param {Array}\n               * @returns {number}\n               */\n              sizeOf.INDEX = function(v) {\n                return encode.INDEX(v).length;\n              };\n\n              /**\n               * Convert an object to a CFF DICT structure.\n               * The keys should be numeric.\n               * The values should be objects containing name / type / value.\n               * @param {Object} m\n               * @returns {Array}\n               */\n              encode.DICT = function(m) {\n                var d = [];\n                var keys = Object.keys(m);\n                var length = keys.length;\n\n                for (var i = 0; i < length; i += 1) {\n                  // Object.keys() return string keys, but our keys are always numeric.\n                  var k = parseInt(keys[i], 0);\n                  var v = m[k];\n                  // Value comes before the key.\n                  d = d.concat(encode.OPERAND(v.value, v.type));\n                  d = d.concat(encode.OPERATOR(k));\n                }\n\n                return d;\n              };\n\n              /**\n               * @param {Object}\n               * @returns {number}\n               */\n              sizeOf.DICT = function(m) {\n                return encode.DICT(m).length;\n              };\n\n              /**\n               * @param {number}\n               * @returns {Array}\n               */\n              encode.OPERATOR = function(v) {\n                if (v < 1200) {\n                  return [v];\n                } else {\n                  return [12, v - 1200];\n                }\n              };\n\n              /**\n               * @param {Array} v\n               * @param {string}\n               * @returns {Array}\n               */\n              encode.OPERAND = function(v, type) {\n                var d = [];\n                if (Array.isArray(type)) {\n                  for (var i = 0; i < type.length; i += 1) {\n                    check.argument(\n                      v.length === type.length,\n                      'Not enough arguments given for type' + type\n                    );\n                    d = d.concat(encode.OPERAND(v[i], type[i]));\n                  }\n                } else {\n                  if (type === 'SID') {\n                    d = d.concat(encode.NUMBER(v));\n                  } else if (type === 'offset') {\n                    // We make it easy for ourselves and always encode offsets as\n                    // 4 bytes. This makes offset calculation for the top dict easier.\n                    d = d.concat(encode.NUMBER32(v));\n                  } else if (type === 'number') {\n                    d = d.concat(encode.NUMBER(v));\n                  } else if (type === 'real') {\n                    d = d.concat(encode.REAL(v));\n                  } else {\n                    throw new Error('Unknown operand type ' + type);\n                    // FIXME Add support for booleans\n                  }\n                }\n\n                return d;\n              };\n\n              encode.OP = encode.BYTE;\n              sizeOf.OP = sizeOf.BYTE;\n\n              // memoize charstring encoding using WeakMap if available\n              var wmm = typeof WeakMap === 'function' && new WeakMap();\n\n              /**\n               * Convert a list of CharString operations to bytes.\n               * @param {Array}\n               * @returns {Array}\n               */\n              encode.CHARSTRING = function(ops) {\n                // See encode.MACSTRING for why we don't do \"if (wmm && wmm.has(ops))\".\n                if (wmm) {\n                  var cachedValue = wmm.get(ops);\n                  if (cachedValue !== undefined) {\n                    return cachedValue;\n                  }\n                }\n\n                var d = [];\n                var length = ops.length;\n\n                for (var i = 0; i < length; i += 1) {\n                  var op = ops[i];\n                  d = d.concat(encode[op.type](op.value));\n                }\n\n                if (wmm) {\n                  wmm.set(ops, d);\n                }\n\n                return d;\n              };\n\n              /**\n               * @param {Array}\n               * @returns {number}\n               */\n              sizeOf.CHARSTRING = function(ops) {\n                return encode.CHARSTRING(ops).length;\n              };\n\n              // Utility functions ////////////////////////////////////////////////////////\n\n              /**\n               * Convert an object containing name / type / value to bytes.\n               * @param {Object}\n               * @returns {Array}\n               */\n              encode.OBJECT = function(v) {\n                var encodingFunction = encode[v.type];\n                check.argument(\n                  encodingFunction !== undefined,\n                  'No encoding function for type ' + v.type\n                );\n                return encodingFunction(v.value);\n              };\n\n              /**\n               * @param {Object}\n               * @returns {number}\n               */\n              sizeOf.OBJECT = function(v) {\n                var sizeOfFunction = sizeOf[v.type];\n                check.argument(\n                  sizeOfFunction !== undefined,\n                  'No sizeOf function for type ' + v.type\n                );\n                return sizeOfFunction(v.value);\n              };\n\n              /**\n               * Convert a table object to bytes.\n               * A table contains a list of fields containing the metadata (name, type and default value).\n               * The table itself has the field values set as attributes.\n               * @param {opentype.Table}\n               * @returns {Array}\n               */\n              encode.TABLE = function(table) {\n                var d = [];\n                var length = table.fields.length;\n                var subtables = [];\n                var subtableOffsets = [];\n\n                for (var i = 0; i < length; i += 1) {\n                  var field = table.fields[i];\n                  var encodingFunction = encode[field.type];\n                  check.argument(\n                    encodingFunction !== undefined,\n                    'No encoding function for field type ' +\n                      field.type +\n                      ' (' +\n                      field.name +\n                      ')'\n                  );\n                  var value = table[field.name];\n                  if (value === undefined) {\n                    value = field.value;\n                  }\n\n                  var bytes = encodingFunction(value);\n\n                  if (field.type === 'TABLE') {\n                    subtableOffsets.push(d.length);\n                    d = d.concat([0, 0]);\n                    subtables.push(bytes);\n                  } else {\n                    d = d.concat(bytes);\n                  }\n                }\n\n                for (var i$1 = 0; i$1 < subtables.length; i$1 += 1) {\n                  var o = subtableOffsets[i$1];\n                  var offset = d.length;\n                  check.argument(offset < 65536, 'Table ' + table.tableName + ' too big.');\n                  d[o] = offset >> 8;\n                  d[o + 1] = offset & 0xff;\n                  d = d.concat(subtables[i$1]);\n                }\n\n                return d;\n              };\n\n              /**\n               * @param {opentype.Table}\n               * @returns {number}\n               */\n              sizeOf.TABLE = function(table) {\n                var numBytes = 0;\n                var length = table.fields.length;\n\n                for (var i = 0; i < length; i += 1) {\n                  var field = table.fields[i];\n                  var sizeOfFunction = sizeOf[field.type];\n                  check.argument(\n                    sizeOfFunction !== undefined,\n                    'No sizeOf function for field type ' +\n                      field.type +\n                      ' (' +\n                      field.name +\n                      ')'\n                  );\n                  var value = table[field.name];\n                  if (value === undefined) {\n                    value = field.value;\n                  }\n\n                  numBytes += sizeOfFunction(value);\n\n                  // Subtables take 2 more bytes for offsets.\n                  if (field.type === 'TABLE') {\n                    numBytes += 2;\n                  }\n                }\n\n                return numBytes;\n              };\n\n              encode.RECORD = encode.TABLE;\n              sizeOf.RECORD = sizeOf.TABLE;\n\n              // Merge in a list of bytes.\n              encode.LITERAL = function(v) {\n                return v;\n              };\n\n              sizeOf.LITERAL = function(v) {\n                return v.length;\n              };\n\n              // Table metadata\n\n              /**\n               * @exports opentype.Table\n               * @class\n               * @param {string} tableName\n               * @param {Array} fields\n               * @param {Object} options\n               * @constructor\n               */\n              function Table(tableName, fields, options) {\n                var this$1 = this;\n\n                for (var i = 0; i < fields.length; i += 1) {\n                  var field = fields[i];\n                  this$1[field.name] = field.value;\n                }\n\n                this.tableName = tableName;\n                this.fields = fields;\n                if (options) {\n                  var optionKeys = Object.keys(options);\n                  for (var i$1 = 0; i$1 < optionKeys.length; i$1 += 1) {\n                    var k = optionKeys[i$1];\n                    var v = options[k];\n                    if (this$1[k] !== undefined) {\n                      this$1[k] = v;\n                    }\n                  }\n                }\n              }\n\n              /**\n               * Encodes the table and returns an array of bytes\n               * @return {Array}\n               */\n              Table.prototype.encode = function() {\n                return encode.TABLE(this);\n              };\n\n              /**\n               * Get the size of the table.\n               * @return {number}\n               */\n              Table.prototype.sizeOf = function() {\n                return sizeOf.TABLE(this);\n              };\n\n              /**\n               * @private\n               */\n              function ushortList(itemName, list, count) {\n                if (count === undefined) {\n                  count = list.length;\n                }\n                var fields = new Array(list.length + 1);\n                fields[0] = { name: itemName + 'Count', type: 'USHORT', value: count };\n                for (var i = 0; i < list.length; i++) {\n                  fields[i + 1] = { name: itemName + i, type: 'USHORT', value: list[i] };\n                }\n                return fields;\n              }\n\n              /**\n               * @private\n               */\n              function tableList(itemName, records, itemCallback) {\n                var count = records.length;\n                var fields = new Array(count + 1);\n                fields[0] = { name: itemName + 'Count', type: 'USHORT', value: count };\n                for (var i = 0; i < count; i++) {\n                  fields[i + 1] = {\n                    name: itemName + i,\n                    type: 'TABLE',\n                    value: itemCallback(records[i], i)\n                  };\n                }\n                return fields;\n              }\n\n              /**\n               * @private\n               */\n              function recordList(itemName, records, itemCallback) {\n                var count = records.length;\n                var fields = [];\n                fields[0] = { name: itemName + 'Count', type: 'USHORT', value: count };\n                for (var i = 0; i < count; i++) {\n                  fields = fields.concat(itemCallback(records[i], i));\n                }\n                return fields;\n              }\n\n              // Common Layout Tables\n\n              /**\n               * @exports opentype.Coverage\n               * @class\n               * @param {opentype.Table}\n               * @constructor\n               * @extends opentype.Table\n               */\n              function Coverage(coverageTable) {\n                if (coverageTable.format === 1) {\n                  Table.call(\n                    this,\n                    'coverageTable',\n                    [{ name: 'coverageFormat', type: 'USHORT', value: 1 }].concat(\n                      ushortList('glyph', coverageTable.glyphs)\n                    )\n                  );\n                } else {\n                  check.assert(false, \"Can't create coverage table format 2 yet.\");\n                }\n              }\n              Coverage.prototype = Object.create(Table.prototype);\n              Coverage.prototype.constructor = Coverage;\n\n              function ScriptList(scriptListTable) {\n                Table.call(\n                  this,\n                  'scriptListTable',\n                  recordList('scriptRecord', scriptListTable, function(scriptRecord, i) {\n                    var script = scriptRecord.script;\n                    var defaultLangSys = script.defaultLangSys;\n                    check.assert(\n                      !!defaultLangSys,\n                      'Unable to write GSUB: script ' +\n                        scriptRecord.tag +\n                        ' has no default language system.'\n                    );\n                    return [\n                      { name: 'scriptTag' + i, type: 'TAG', value: scriptRecord.tag },\n                      {\n                        name: 'script' + i,\n                        type: 'TABLE',\n                        value: new Table(\n                          'scriptTable',\n                          [\n                            {\n                              name: 'defaultLangSys',\n                              type: 'TABLE',\n                              value: new Table(\n                                'defaultLangSys',\n                                [\n                                  { name: 'lookupOrder', type: 'USHORT', value: 0 },\n                                  {\n                                    name: 'reqFeatureIndex',\n                                    type: 'USHORT',\n                                    value: defaultLangSys.reqFeatureIndex\n                                  }\n                                ].concat(\n                                  ushortList('featureIndex', defaultLangSys.featureIndexes)\n                                )\n                              )\n                            }\n                          ].concat(\n                            recordList('langSys', script.langSysRecords, function(\n                              langSysRecord,\n                              i\n                            ) {\n                              var langSys = langSysRecord.langSys;\n                              return [\n                                {\n                                  name: 'langSysTag' + i,\n                                  type: 'TAG',\n                                  value: langSysRecord.tag\n                                },\n                                {\n                                  name: 'langSys' + i,\n                                  type: 'TABLE',\n                                  value: new Table(\n                                    'langSys',\n                                    [\n                                      { name: 'lookupOrder', type: 'USHORT', value: 0 },\n                                      {\n                                        name: 'reqFeatureIndex',\n                                        type: 'USHORT',\n                                        value: langSys.reqFeatureIndex\n                                      }\n                                    ].concat(\n                                      ushortList('featureIndex', langSys.featureIndexes)\n                                    )\n                                  )\n                                }\n                              ];\n                            })\n                          )\n                        )\n                      }\n                    ];\n                  })\n                );\n              }\n              ScriptList.prototype = Object.create(Table.prototype);\n              ScriptList.prototype.constructor = ScriptList;\n\n              /**\n               * @exports opentype.FeatureList\n               * @class\n               * @param {opentype.Table}\n               * @constructor\n               * @extends opentype.Table\n               */\n              function FeatureList(featureListTable) {\n                Table.call(\n                  this,\n                  'featureListTable',\n                  recordList('featureRecord', featureListTable, function(featureRecord, i) {\n                    var feature = featureRecord.feature;\n                    return [\n                      { name: 'featureTag' + i, type: 'TAG', value: featureRecord.tag },\n                      {\n                        name: 'feature' + i,\n                        type: 'TABLE',\n                        value: new Table(\n                          'featureTable',\n                          [\n                            {\n                              name: 'featureParams',\n                              type: 'USHORT',\n                              value: feature.featureParams\n                            }\n                          ].concat(ushortList('lookupListIndex', feature.lookupListIndexes))\n                        )\n                      }\n                    ];\n                  })\n                );\n              }\n              FeatureList.prototype = Object.create(Table.prototype);\n              FeatureList.prototype.constructor = FeatureList;\n\n              /**\n               * @exports opentype.LookupList\n               * @class\n               * @param {opentype.Table}\n               * @param {Object}\n               * @constructor\n               * @extends opentype.Table\n               */\n              function LookupList(lookupListTable, subtableMakers) {\n                Table.call(\n                  this,\n                  'lookupListTable',\n                  tableList('lookup', lookupListTable, function(lookupTable) {\n                    var subtableCallback = subtableMakers[lookupTable.lookupType];\n                    check.assert(\n                      !!subtableCallback,\n                      'Unable to write GSUB lookup type ' +\n                        lookupTable.lookupType +\n                        ' tables.'\n                    );\n                    return new Table(\n                      'lookupTable',\n                      [\n                        {\n                          name: 'lookupType',\n                          type: 'USHORT',\n                          value: lookupTable.lookupType\n                        },\n                        {\n                          name: 'lookupFlag',\n                          type: 'USHORT',\n                          value: lookupTable.lookupFlag\n                        }\n                      ].concat(\n                        tableList('subtable', lookupTable.subtables, subtableCallback)\n                      )\n                    );\n                  })\n                );\n              }\n              LookupList.prototype = Object.create(Table.prototype);\n              LookupList.prototype.constructor = LookupList;\n\n              // Record = same as Table, but inlined (a Table has an offset and its data is further in the stream)\n              // Don't use offsets inside Records (probable bug), only in Tables.\n              var table = {\n                Table: Table,\n                Record: Table,\n                Coverage: Coverage,\n                ScriptList: ScriptList,\n                FeatureList: FeatureList,\n                LookupList: LookupList,\n                ushortList: ushortList,\n                tableList: tableList,\n                recordList: recordList\n              };\n\n              // Parsing utility functions\n\n              // Retrieve an unsigned byte from the DataView.\n              function getByte(dataView, offset) {\n                return dataView.getUint8(offset);\n              }\n\n              // Retrieve an unsigned 16-bit short from the DataView.\n              // The value is stored in big endian.\n              function getUShort(dataView, offset) {\n                return dataView.getUint16(offset, false);\n              }\n\n              // Retrieve a signed 16-bit short from the DataView.\n              // The value is stored in big endian.\n              function getShort(dataView, offset) {\n                return dataView.getInt16(offset, false);\n              }\n\n              // Retrieve an unsigned 32-bit long from the DataView.\n              // The value is stored in big endian.\n              function getULong(dataView, offset) {\n                return dataView.getUint32(offset, false);\n              }\n\n              // Retrieve a 32-bit signed fixed-point number (16.16) from the DataView.\n              // The value is stored in big endian.\n              function getFixed(dataView, offset) {\n                var decimal = dataView.getInt16(offset, false);\n                var fraction = dataView.getUint16(offset + 2, false);\n                return decimal + fraction / 65535;\n              }\n\n              // Retrieve a 4-character tag from the DataView.\n              // Tags are used to identify tables.\n              function getTag(dataView, offset) {\n                var tag = '';\n                for (var i = offset; i < offset + 4; i += 1) {\n                  tag += String.fromCharCode(dataView.getInt8(i));\n                }\n\n                return tag;\n              }\n\n              // Retrieve an offset from the DataView.\n              // Offsets are 1 to 4 bytes in length, depending on the offSize argument.\n              function getOffset(dataView, offset, offSize) {\n                var v = 0;\n                for (var i = 0; i < offSize; i += 1) {\n                  v <<= 8;\n                  v += dataView.getUint8(offset + i);\n                }\n\n                return v;\n              }\n\n              // Retrieve a number of bytes from start offset to the end offset from the DataView.\n              function getBytes(dataView, startOffset, endOffset) {\n                var bytes = [];\n                for (var i = startOffset; i < endOffset; i += 1) {\n                  bytes.push(dataView.getUint8(i));\n                }\n\n                return bytes;\n              }\n\n              // Convert the list of bytes to a string.\n              function bytesToString(bytes) {\n                var s = '';\n                for (var i = 0; i < bytes.length; i += 1) {\n                  s += String.fromCharCode(bytes[i]);\n                }\n\n                return s;\n              }\n\n              var typeOffsets = {\n                byte: 1,\n                uShort: 2,\n                short: 2,\n                uLong: 4,\n                fixed: 4,\n                longDateTime: 8,\n                tag: 4\n              };\n\n              // A stateful parser that changes the offset whenever a value is retrieved.\n              // The data is a DataView.\n              function Parser(data, offset) {\n                this.data = data;\n                this.offset = offset;\n                this.relativeOffset = 0;\n              }\n\n              Parser.prototype.parseByte = function() {\n                var v = this.data.getUint8(this.offset + this.relativeOffset);\n                this.relativeOffset += 1;\n                return v;\n              };\n\n              Parser.prototype.parseChar = function() {\n                var v = this.data.getInt8(this.offset + this.relativeOffset);\n                this.relativeOffset += 1;\n                return v;\n              };\n\n              Parser.prototype.parseCard8 = Parser.prototype.parseByte;\n\n              Parser.prototype.parseUShort = function() {\n                var v = this.data.getUint16(this.offset + this.relativeOffset);\n                this.relativeOffset += 2;\n                return v;\n              };\n\n              Parser.prototype.parseCard16 = Parser.prototype.parseUShort;\n              Parser.prototype.parseSID = Parser.prototype.parseUShort;\n              Parser.prototype.parseOffset16 = Parser.prototype.parseUShort;\n\n              Parser.prototype.parseShort = function() {\n                var v = this.data.getInt16(this.offset + this.relativeOffset);\n                this.relativeOffset += 2;\n                return v;\n              };\n\n              Parser.prototype.parseF2Dot14 = function() {\n                var v = this.data.getInt16(this.offset + this.relativeOffset) / 16384;\n                this.relativeOffset += 2;\n                return v;\n              };\n\n              Parser.prototype.parseULong = function() {\n                var v = getULong(this.data, this.offset + this.relativeOffset);\n                this.relativeOffset += 4;\n                return v;\n              };\n\n              Parser.prototype.parseOffset32 = Parser.prototype.parseULong;\n\n              Parser.prototype.parseFixed = function() {\n                var v = getFixed(this.data, this.offset + this.relativeOffset);\n                this.relativeOffset += 4;\n                return v;\n              };\n\n              Parser.prototype.parseString = function(length) {\n                var dataView = this.data;\n                var offset = this.offset + this.relativeOffset;\n                var string = '';\n                this.relativeOffset += length;\n                for (var i = 0; i < length; i++) {\n                  string += String.fromCharCode(dataView.getUint8(offset + i));\n                }\n\n                return string;\n              };\n\n              Parser.prototype.parseTag = function() {\n                return this.parseString(4);\n              };\n\n              // LONGDATETIME is a 64-bit integer.\n              // JavaScript and unix timestamps traditionally use 32 bits, so we\n              // only take the last 32 bits.\n              // + Since until 2038 those bits will be filled by zeros we can ignore them.\n              Parser.prototype.parseLongDateTime = function() {\n                var v = getULong(this.data, this.offset + this.relativeOffset + 4);\n                // Subtract seconds between 01/01/1904 and 01/01/1970\n                // to convert Apple Mac timestamp to Standard Unix timestamp\n                v -= 2082844800;\n                this.relativeOffset += 8;\n                return v;\n              };\n\n              Parser.prototype.parseVersion = function(minorBase) {\n                var major = getUShort(this.data, this.offset + this.relativeOffset);\n\n                // How to interpret the minor version is very vague in the spec. 0x5000 is 5, 0x1000 is 1\n                // Default returns the correct number if minor = 0xN000 where N is 0-9\n                // Set minorBase to 1 for tables that use minor = N where N is 0-9\n                var minor = getUShort(this.data, this.offset + this.relativeOffset + 2);\n                this.relativeOffset += 4;\n                if (minorBase === undefined) {\n                  minorBase = 0x1000;\n                }\n                return major + minor / minorBase / 10;\n              };\n\n              Parser.prototype.skip = function(type, amount) {\n                if (amount === undefined) {\n                  amount = 1;\n                }\n\n                this.relativeOffset += typeOffsets[type] * amount;\n              };\n\n              ///// Parsing lists and records ///////////////////////////////\n\n              // Parse a list of 32 bit unsigned integers.\n              Parser.prototype.parseULongList = function(count) {\n                if (count === undefined) {\n                  count = this.parseULong();\n                }\n                var offsets = new Array(count);\n                var dataView = this.data;\n                var offset = this.offset + this.relativeOffset;\n                for (var i = 0; i < count; i++) {\n                  offsets[i] = dataView.getUint32(offset);\n                  offset += 4;\n                }\n\n                this.relativeOffset += count * 4;\n                return offsets;\n              };\n\n              // Parse a list of 16 bit unsigned integers. The length of the list can be read on the stream\n              // or provided as an argument.\n              Parser.prototype.parseOffset16List = Parser.prototype.parseUShortList = function(\n                count\n              ) {\n                if (count === undefined) {\n                  count = this.parseUShort();\n                }\n                var offsets = new Array(count);\n                var dataView = this.data;\n                var offset = this.offset + this.relativeOffset;\n                for (var i = 0; i < count; i++) {\n                  offsets[i] = dataView.getUint16(offset);\n                  offset += 2;\n                }\n\n                this.relativeOffset += count * 2;\n                return offsets;\n              };\n\n              // Parses a list of 16 bit signed integers.\n              Parser.prototype.parseShortList = function(count) {\n                var list = new Array(count);\n                var dataView = this.data;\n                var offset = this.offset + this.relativeOffset;\n                for (var i = 0; i < count; i++) {\n                  list[i] = dataView.getInt16(offset);\n                  offset += 2;\n                }\n\n                this.relativeOffset += count * 2;\n                return list;\n              };\n\n              // Parses a list of bytes.\n              Parser.prototype.parseByteList = function(count) {\n                var list = new Array(count);\n                var dataView = this.data;\n                var offset = this.offset + this.relativeOffset;\n                for (var i = 0; i < count; i++) {\n                  list[i] = dataView.getUint8(offset++);\n                }\n\n                this.relativeOffset += count;\n                return list;\n              };\n\n              /**\n               * Parse a list of items.\n               * Record count is optional, if omitted it is read from the stream.\n               * itemCallback is one of the Parser methods.\n               */\n              Parser.prototype.parseList = function(count, itemCallback) {\n                var this$1 = this;\n\n                if (!itemCallback) {\n                  itemCallback = count;\n                  count = this.parseUShort();\n                }\n                var list = new Array(count);\n                for (var i = 0; i < count; i++) {\n                  list[i] = itemCallback.call(this$1);\n                }\n                return list;\n              };\n\n              Parser.prototype.parseList32 = function(count, itemCallback) {\n                var this$1 = this;\n\n                if (!itemCallback) {\n                  itemCallback = count;\n                  count = this.parseULong();\n                }\n                var list = new Array(count);\n                for (var i = 0; i < count; i++) {\n                  list[i] = itemCallback.call(this$1);\n                }\n                return list;\n              };\n\n              /**\n               * Parse a list of records.\n               * Record count is optional, if omitted it is read from the stream.\n               * Example of recordDescription: { sequenceIndex: Parser.uShort, lookupListIndex: Parser.uShort }\n               */\n              Parser.prototype.parseRecordList = function(count, recordDescription) {\n                var this$1 = this;\n\n                // If the count argument is absent, read it in the stream.\n                if (!recordDescription) {\n                  recordDescription = count;\n                  count = this.parseUShort();\n                }\n                var records = new Array(count);\n                var fields = Object.keys(recordDescription);\n                for (var i = 0; i < count; i++) {\n                  var rec = {};\n                  for (var j = 0; j < fields.length; j++) {\n                    var fieldName = fields[j];\n                    var fieldType = recordDescription[fieldName];\n                    rec[fieldName] = fieldType.call(this$1);\n                  }\n                  records[i] = rec;\n                }\n                return records;\n              };\n\n              Parser.prototype.parseRecordList32 = function(count, recordDescription) {\n                var this$1 = this;\n\n                // If the count argument is absent, read it in the stream.\n                if (!recordDescription) {\n                  recordDescription = count;\n                  count = this.parseULong();\n                }\n                var records = new Array(count);\n                var fields = Object.keys(recordDescription);\n                for (var i = 0; i < count; i++) {\n                  var rec = {};\n                  for (var j = 0; j < fields.length; j++) {\n                    var fieldName = fields[j];\n                    var fieldType = recordDescription[fieldName];\n                    rec[fieldName] = fieldType.call(this$1);\n                  }\n                  records[i] = rec;\n                }\n                return records;\n              };\n\n              // Parse a data structure into an object\n              // Example of description: { sequenceIndex: Parser.uShort, lookupListIndex: Parser.uShort }\n              Parser.prototype.parseStruct = function(description) {\n                var this$1 = this;\n\n                if (typeof description === 'function') {\n                  return description.call(this);\n                } else {\n                  var fields = Object.keys(description);\n                  var struct = {};\n                  for (var j = 0; j < fields.length; j++) {\n                    var fieldName = fields[j];\n                    var fieldType = description[fieldName];\n                    struct[fieldName] = fieldType.call(this$1);\n                  }\n                  return struct;\n                }\n              };\n\n              /**\n               * Parse a GPOS valueRecord\n               * https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#value-record\n               * valueFormat is optional, if omitted it is read from the stream.\n               */\n              Parser.prototype.parseValueRecord = function(valueFormat) {\n                if (valueFormat === undefined) {\n                  valueFormat = this.parseUShort();\n                }\n                if (valueFormat === 0) {\n                  // valueFormat2 in kerning pairs is most often 0\n                  // in this case return undefined instead of an empty object, to save space\n                  return;\n                }\n                var valueRecord = {};\n\n                if (valueFormat & 0x0001) {\n                  valueRecord.xPlacement = this.parseShort();\n                }\n                if (valueFormat & 0x0002) {\n                  valueRecord.yPlacement = this.parseShort();\n                }\n                if (valueFormat & 0x0004) {\n                  valueRecord.xAdvance = this.parseShort();\n                }\n                if (valueFormat & 0x0008) {\n                  valueRecord.yAdvance = this.parseShort();\n                }\n\n                // Device table (non-variable font) / VariationIndex table (variable font) not supported\n                // https://docs.microsoft.com/fr-fr/typography/opentype/spec/chapter2#devVarIdxTbls\n                if (valueFormat & 0x0010) {\n                  valueRecord.xPlaDevice = undefined;\n                  this.parseShort();\n                }\n                if (valueFormat & 0x0020) {\n                  valueRecord.yPlaDevice = undefined;\n                  this.parseShort();\n                }\n                if (valueFormat & 0x0040) {\n                  valueRecord.xAdvDevice = undefined;\n                  this.parseShort();\n                }\n                if (valueFormat & 0x0080) {\n                  valueRecord.yAdvDevice = undefined;\n                  this.parseShort();\n                }\n\n                return valueRecord;\n              };\n\n              /**\n               * Parse a list of GPOS valueRecords\n               * https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#value-record\n               * valueFormat and valueCount are read from the stream.\n               */\n              Parser.prototype.parseValueRecordList = function() {\n                var this$1 = this;\n\n                var valueFormat = this.parseUShort();\n                var valueCount = this.parseUShort();\n                var values = new Array(valueCount);\n                for (var i = 0; i < valueCount; i++) {\n                  values[i] = this$1.parseValueRecord(valueFormat);\n                }\n                return values;\n              };\n\n              Parser.prototype.parsePointer = function(description) {\n                var structOffset = this.parseOffset16();\n                if (structOffset > 0) {\n                  // NULL offset => return undefined\n                  return new Parser(this.data, this.offset + structOffset).parseStruct(\n                    description\n                  );\n                }\n                return undefined;\n              };\n\n              Parser.prototype.parsePointer32 = function(description) {\n                var structOffset = this.parseOffset32();\n                if (structOffset > 0) {\n                  // NULL offset => return undefined\n                  return new Parser(this.data, this.offset + structOffset).parseStruct(\n                    description\n                  );\n                }\n                return undefined;\n              };\n\n              /**\n               * Parse a list of offsets to lists of 16-bit integers,\n               * or a list of offsets to lists of offsets to any kind of items.\n               * If itemCallback is not provided, a list of list of UShort is assumed.\n               * If provided, itemCallback is called on each item and must parse the item.\n               * See examples in tables/gsub.js\n               */\n              Parser.prototype.parseListOfLists = function(itemCallback) {\n                var this$1 = this;\n\n                var offsets = this.parseOffset16List();\n                var count = offsets.length;\n                var relativeOffset = this.relativeOffset;\n                var list = new Array(count);\n                for (var i = 0; i < count; i++) {\n                  var start = offsets[i];\n                  if (start === 0) {\n                    // NULL offset\n                    // Add i as owned property to list. Convenient with assert.\n                    list[i] = undefined;\n                    continue;\n                  }\n                  this$1.relativeOffset = start;\n                  if (itemCallback) {\n                    var subOffsets = this$1.parseOffset16List();\n                    var subList = new Array(subOffsets.length);\n                    for (var j = 0; j < subOffsets.length; j++) {\n                      this$1.relativeOffset = start + subOffsets[j];\n                      subList[j] = itemCallback.call(this$1);\n                    }\n                    list[i] = subList;\n                  } else {\n                    list[i] = this$1.parseUShortList();\n                  }\n                }\n                this.relativeOffset = relativeOffset;\n                return list;\n              };\n\n              ///// Complex tables parsing //////////////////////////////////\n\n              // Parse a coverage table in a GSUB, GPOS or GDEF table.\n              // https://www.microsoft.com/typography/OTSPEC/chapter2.htm\n              // parser.offset must point to the start of the table containing the coverage.\n              Parser.prototype.parseCoverage = function() {\n                var this$1 = this;\n\n                var startOffset = this.offset + this.relativeOffset;\n                var format = this.parseUShort();\n                var count = this.parseUShort();\n                if (format === 1) {\n                  return {\n                    format: 1,\n                    glyphs: this.parseUShortList(count)\n                  };\n                } else if (format === 2) {\n                  var ranges = new Array(count);\n                  for (var i = 0; i < count; i++) {\n                    ranges[i] = {\n                      start: this$1.parseUShort(),\n                      end: this$1.parseUShort(),\n                      index: this$1.parseUShort()\n                    };\n                  }\n                  return {\n                    format: 2,\n                    ranges: ranges\n                  };\n                }\n                throw new Error(\n                  '0x' + startOffset.toString(16) + ': Coverage format must be 1 or 2.'\n                );\n              };\n\n              // Parse a Class Definition Table in a GSUB, GPOS or GDEF table.\n              // https://www.microsoft.com/typography/OTSPEC/chapter2.htm\n              Parser.prototype.parseClassDef = function() {\n                var startOffset = this.offset + this.relativeOffset;\n                var format = this.parseUShort();\n                if (format === 1) {\n                  return {\n                    format: 1,\n                    startGlyph: this.parseUShort(),\n                    classes: this.parseUShortList()\n                  };\n                } else if (format === 2) {\n                  return {\n                    format: 2,\n                    ranges: this.parseRecordList({\n                      start: Parser.uShort,\n                      end: Parser.uShort,\n                      classId: Parser.uShort\n                    })\n                  };\n                }\n                throw new Error(\n                  '0x' + startOffset.toString(16) + ': ClassDef format must be 1 or 2.'\n                );\n              };\n\n              ///// Static methods ///////////////////////////////////\n              // These convenience methods can be used as callbacks and should be called with \"this\" context set to a Parser instance.\n\n              Parser.list = function(count, itemCallback) {\n                return function() {\n                  return this.parseList(count, itemCallback);\n                };\n              };\n\n              Parser.list32 = function(count, itemCallback) {\n                return function() {\n                  return this.parseList32(count, itemCallback);\n                };\n              };\n\n              Parser.recordList = function(count, recordDescription) {\n                return function() {\n                  return this.parseRecordList(count, recordDescription);\n                };\n              };\n\n              Parser.recordList32 = function(count, recordDescription) {\n                return function() {\n                  return this.parseRecordList32(count, recordDescription);\n                };\n              };\n\n              Parser.pointer = function(description) {\n                return function() {\n                  return this.parsePointer(description);\n                };\n              };\n\n              Parser.pointer32 = function(description) {\n                return function() {\n                  return this.parsePointer32(description);\n                };\n              };\n\n              Parser.tag = Parser.prototype.parseTag;\n              Parser.byte = Parser.prototype.parseByte;\n              Parser.uShort = Parser.offset16 = Parser.prototype.parseUShort;\n              Parser.uShortList = Parser.prototype.parseUShortList;\n              Parser.uLong = Parser.offset32 = Parser.prototype.parseULong;\n              Parser.uLongList = Parser.prototype.parseULongList;\n              Parser.struct = Parser.prototype.parseStruct;\n              Parser.coverage = Parser.prototype.parseCoverage;\n              Parser.classDef = Parser.prototype.parseClassDef;\n\n              ///// Script, Feature, Lookup lists ///////////////////////////////////////////////\n              // https://www.microsoft.com/typography/OTSPEC/chapter2.htm\n\n              var langSysTable = {\n                reserved: Parser.uShort,\n                reqFeatureIndex: Parser.uShort,\n                featureIndexes: Parser.uShortList\n              };\n\n              Parser.prototype.parseScriptList = function() {\n                return (\n                  this.parsePointer(\n                    Parser.recordList({\n                      tag: Parser.tag,\n                      script: Parser.pointer({\n                        defaultLangSys: Parser.pointer(langSysTable),\n                        langSysRecords: Parser.recordList({\n                          tag: Parser.tag,\n                          langSys: Parser.pointer(langSysTable)\n                        })\n                      })\n                    })\n                  ) || []\n                );\n              };\n\n              Parser.prototype.parseFeatureList = function() {\n                return (\n                  this.parsePointer(\n                    Parser.recordList({\n                      tag: Parser.tag,\n                      feature: Parser.pointer({\n                        featureParams: Parser.offset16,\n                        lookupListIndexes: Parser.uShortList\n                      })\n                    })\n                  ) || []\n                );\n              };\n\n              Parser.prototype.parseLookupList = function(lookupTableParsers) {\n                return (\n                  this.parsePointer(\n                    Parser.list(\n                      Parser.pointer(function() {\n                        var lookupType = this.parseUShort();\n                        check.argument(\n                          1 <= lookupType && lookupType <= 9,\n                          'GPOS/GSUB lookup type ' + lookupType + ' unknown.'\n                        );\n                        var lookupFlag = this.parseUShort();\n                        var useMarkFilteringSet = lookupFlag & 0x10;\n                        return {\n                          lookupType: lookupType,\n                          lookupFlag: lookupFlag,\n                          subtables: this.parseList(\n                            Parser.pointer(lookupTableParsers[lookupType])\n                          ),\n                          markFilteringSet: useMarkFilteringSet\n                            ? this.parseUShort()\n                            : undefined\n                        };\n                      })\n                    )\n                  ) || []\n                );\n              };\n\n              Parser.prototype.parseFeatureVariationsList = function() {\n                return (\n                  this.parsePointer32(function() {\n                    var majorVersion = this.parseUShort();\n                    var minorVersion = this.parseUShort();\n                    check.argument(\n                      majorVersion === 1 && minorVersion < 1,\n                      'GPOS/GSUB feature variations table unknown.'\n                    );\n                    var featureVariations = this.parseRecordList32({\n                      conditionSetOffset: Parser.offset32,\n                      featureTableSubstitutionOffset: Parser.offset32\n                    });\n                    return featureVariations;\n                  }) || []\n                );\n              };\n\n              var parse = {\n                getByte: getByte,\n                getCard8: getByte,\n                getUShort: getUShort,\n                getCard16: getUShort,\n                getShort: getShort,\n                getULong: getULong,\n                getFixed: getFixed,\n                getTag: getTag,\n                getOffset: getOffset,\n                getBytes: getBytes,\n                bytesToString: bytesToString,\n                Parser: Parser\n              };\n\n              // The `cmap` table stores the mappings from characters to glyphs.\n\n              function parseCmapTableFormat12(cmap, p) {\n                //Skip reserved.\n                p.parseUShort();\n\n                // Length in bytes of the sub-tables.\n                cmap.length = p.parseULong();\n                cmap.language = p.parseULong();\n\n                var groupCount;\n                cmap.groupCount = groupCount = p.parseULong();\n                cmap.glyphIndexMap = {};\n\n                for (var i = 0; i < groupCount; i += 1) {\n                  var startCharCode = p.parseULong();\n                  var endCharCode = p.parseULong();\n                  var startGlyphId = p.parseULong();\n\n                  for (var c = startCharCode; c <= endCharCode; c += 1) {\n                    cmap.glyphIndexMap[c] = startGlyphId;\n                    startGlyphId++;\n                  }\n                }\n              }\n\n              function parseCmapTableFormat4(cmap, p, data, start, offset) {\n                // Length in bytes of the sub-tables.\n                cmap.length = p.parseUShort();\n                cmap.language = p.parseUShort();\n\n                // segCount is stored x 2.\n                var segCount;\n                cmap.segCount = segCount = p.parseUShort() >> 1;\n\n                // Skip searchRange, entrySelector, rangeShift.\n                p.skip('uShort', 3);\n\n                // The \"unrolled\" mapping from character codes to glyph indices.\n                cmap.glyphIndexMap = {};\n                var endCountParser = new parse.Parser(data, start + offset + 14);\n                var startCountParser = new parse.Parser(\n                  data,\n                  start + offset + 16 + segCount * 2\n                );\n                var idDeltaParser = new parse.Parser(\n                  data,\n                  start + offset + 16 + segCount * 4\n                );\n                var idRangeOffsetParser = new parse.Parser(\n                  data,\n                  start + offset + 16 + segCount * 6\n                );\n                var glyphIndexOffset = start + offset + 16 + segCount * 8;\n                for (var i = 0; i < segCount - 1; i += 1) {\n                  var glyphIndex = void 0;\n                  var endCount = endCountParser.parseUShort();\n                  var startCount = startCountParser.parseUShort();\n                  var idDelta = idDeltaParser.parseShort();\n                  var idRangeOffset = idRangeOffsetParser.parseUShort();\n                  for (var c = startCount; c <= endCount; c += 1) {\n                    if (idRangeOffset !== 0) {\n                      // The idRangeOffset is relative to the current position in the idRangeOffset array.\n                      // Take the current offset in the idRangeOffset array.\n                      glyphIndexOffset =\n                        idRangeOffsetParser.offset + idRangeOffsetParser.relativeOffset - 2;\n\n                      // Add the value of the idRangeOffset, which will move us into the glyphIndex array.\n                      glyphIndexOffset += idRangeOffset;\n\n                      // Then add the character index of the current segment, multiplied by 2 for USHORTs.\n                      glyphIndexOffset += (c - startCount) * 2;\n                      glyphIndex = parse.getUShort(data, glyphIndexOffset);\n                      if (glyphIndex !== 0) {\n                        glyphIndex = (glyphIndex + idDelta) & 0xffff;\n                      }\n                    } else {\n                      glyphIndex = (c + idDelta) & 0xffff;\n                    }\n\n                    cmap.glyphIndexMap[c] = glyphIndex;\n                  }\n                }\n              }\n\n              // Parse the `cmap` table. This table stores the mappings from characters to glyphs.\n              // There are many available formats, but we only support the Windows format 4 and 12.\n              // This function returns a `CmapEncoding` object or null if no supported format could be found.\n              function parseCmapTable(data, start) {\n                var cmap = {};\n                cmap.version = parse.getUShort(data, start);\n                check.argument(cmap.version === 0, 'cmap table version should be 0.');\n\n                // The cmap table can contain many sub-tables, each with their own format.\n                // We're only interested in a \"platform 0\" (Unicode format) and \"platform 3\" (Windows format) table.\n                cmap.numTables = parse.getUShort(data, start + 2);\n                var offset = -1;\n                for (var i = cmap.numTables - 1; i >= 0; i -= 1) {\n                  var platformId = parse.getUShort(data, start + 4 + i * 8);\n                  var encodingId = parse.getUShort(data, start + 4 + i * 8 + 2);\n                  if (\n                    (platformId === 3 &&\n                      (encodingId === 0 || encodingId === 1 || encodingId === 10)) ||\n                    (platformId === 0 &&\n                      (encodingId === 0 ||\n                        encodingId === 1 ||\n                        encodingId === 2 ||\n                        encodingId === 3 ||\n                        encodingId === 4))\n                  ) {\n                    offset = parse.getULong(data, start + 4 + i * 8 + 4);\n                    break;\n                  }\n                }\n\n                if (offset === -1) {\n                  // There is no cmap table in the font that we support.\n                  throw new Error('No valid cmap sub-tables found.');\n                }\n\n                var p = new parse.Parser(data, start + offset);\n                cmap.format = p.parseUShort();\n\n                if (cmap.format === 12) {\n                  parseCmapTableFormat12(cmap, p);\n                } else if (cmap.format === 4) {\n                  parseCmapTableFormat4(cmap, p, data, start, offset);\n                } else {\n                  throw new Error(\n                    'Only format 4 and 12 cmap tables are supported (found format ' +\n                      cmap.format +\n                      ').'\n                  );\n                }\n\n                return cmap;\n              }\n\n              function addSegment(t, code, glyphIndex) {\n                t.segments.push({\n                  end: code,\n                  start: code,\n                  delta: -(code - glyphIndex),\n                  offset: 0,\n                  glyphIndex: glyphIndex\n                });\n              }\n\n              function addTerminatorSegment(t) {\n                t.segments.push({\n                  end: 0xffff,\n                  start: 0xffff,\n                  delta: 1,\n                  offset: 0\n                });\n              }\n\n              // Make cmap table, format 4 by default, 12 if needed only\n              function makeCmapTable(glyphs) {\n                // Plan 0 is the base Unicode Plan but emojis, for example are on another plan, and needs cmap 12 format (with 32bit)\n                var isPlan0Only = true;\n                var i;\n\n                // Check if we need to add cmap format 12 or if format 4 only is fine\n                for (i = glyphs.length - 1; i > 0; i -= 1) {\n                  var g = glyphs.get(i);\n                  if (g.unicode > 65535) {\n                    console.log('Adding CMAP format 12 (needed!)');\n                    isPlan0Only = false;\n                    break;\n                  }\n                }\n\n                var cmapTable = [\n                  { name: 'version', type: 'USHORT', value: 0 },\n                  { name: 'numTables', type: 'USHORT', value: isPlan0Only ? 1 : 2 },\n\n                  // CMAP 4 header\n                  { name: 'platformID', type: 'USHORT', value: 3 },\n                  { name: 'encodingID', type: 'USHORT', value: 1 },\n                  { name: 'offset', type: 'ULONG', value: isPlan0Only ? 12 : 12 + 8 }\n                ];\n\n                if (!isPlan0Only) {\n                  cmapTable = cmapTable.concat([\n                    // CMAP 12 header\n                    { name: 'cmap12PlatformID', type: 'USHORT', value: 3 }, // We encode only for PlatformID = 3 (Windows) because it is supported everywhere\n                    { name: 'cmap12EncodingID', type: 'USHORT', value: 10 },\n                    { name: 'cmap12Offset', type: 'ULONG', value: 0 }\n                  ]);\n                }\n\n                cmapTable = cmapTable.concat([\n                  // CMAP 4 Subtable\n                  { name: 'format', type: 'USHORT', value: 4 },\n                  { name: 'cmap4Length', type: 'USHORT', value: 0 },\n                  { name: 'language', type: 'USHORT', value: 0 },\n                  { name: 'segCountX2', type: 'USHORT', value: 0 },\n                  { name: 'searchRange', type: 'USHORT', value: 0 },\n                  { name: 'entrySelector', type: 'USHORT', value: 0 },\n                  { name: 'rangeShift', type: 'USHORT', value: 0 }\n                ]);\n\n                var t = new table.Table('cmap', cmapTable);\n\n                t.segments = [];\n                for (i = 0; i < glyphs.length; i += 1) {\n                  var glyph = glyphs.get(i);\n                  for (var j = 0; j < glyph.unicodes.length; j += 1) {\n                    addSegment(t, glyph.unicodes[j], i);\n                  }\n\n                  t.segments = t.segments.sort(function(a, b) {\n                    return a.start - b.start;\n                  });\n                }\n\n                addTerminatorSegment(t);\n\n                var segCount = t.segments.length;\n                var segCountToRemove = 0;\n\n                // CMAP 4\n                // Set up parallel segment arrays.\n                var endCounts = [];\n                var startCounts = [];\n                var idDeltas = [];\n                var idRangeOffsets = [];\n                var glyphIds = [];\n\n                // CMAP 12\n                var cmap12Groups = [];\n\n                // Reminder this loop is not following the specification at 100%\n                // The specification -> find suites of characters and make a group\n                // Here we're doing one group for each letter\n                // Doing as the spec can save 8 times (or more) space\n                for (i = 0; i < segCount; i += 1) {\n                  var segment = t.segments[i];\n\n                  // CMAP 4\n                  if (segment.end <= 65535 && segment.start <= 65535) {\n                    endCounts = endCounts.concat({\n                      name: 'end_' + i,\n                      type: 'USHORT',\n                      value: segment.end\n                    });\n                    startCounts = startCounts.concat({\n                      name: 'start_' + i,\n                      type: 'USHORT',\n                      value: segment.start\n                    });\n                    idDeltas = idDeltas.concat({\n                      name: 'idDelta_' + i,\n                      type: 'SHORT',\n                      value: segment.delta\n                    });\n                    idRangeOffsets = idRangeOffsets.concat({\n                      name: 'idRangeOffset_' + i,\n                      type: 'USHORT',\n                      value: segment.offset\n                    });\n                    if (segment.glyphId !== undefined) {\n                      glyphIds = glyphIds.concat({\n                        name: 'glyph_' + i,\n                        type: 'USHORT',\n                        value: segment.glyphId\n                      });\n                    }\n                  } else {\n                    // Skip Unicode > 65535 (16bit unsigned max) for CMAP 4, will be added in CMAP 12\n                    segCountToRemove += 1;\n                  }\n\n                  // CMAP 12\n                  // Skip Terminator Segment\n                  if (!isPlan0Only && segment.glyphIndex !== undefined) {\n                    cmap12Groups = cmap12Groups.concat({\n                      name: 'cmap12Start_' + i,\n                      type: 'ULONG',\n                      value: segment.start\n                    });\n                    cmap12Groups = cmap12Groups.concat({\n                      name: 'cmap12End_' + i,\n                      type: 'ULONG',\n                      value: segment.end\n                    });\n                    cmap12Groups = cmap12Groups.concat({\n                      name: 'cmap12Glyph_' + i,\n                      type: 'ULONG',\n                      value: segment.glyphIndex\n                    });\n                  }\n                }\n\n                // CMAP 4 Subtable\n                t.segCountX2 = (segCount - segCountToRemove) * 2;\n                t.searchRange =\n                  Math.pow(\n                    2,\n                    Math.floor(Math.log(segCount - segCountToRemove) / Math.log(2))\n                  ) * 2;\n                t.entrySelector = Math.log(t.searchRange / 2) / Math.log(2);\n                t.rangeShift = t.segCountX2 - t.searchRange;\n\n                t.fields = t.fields.concat(endCounts);\n                t.fields.push({ name: 'reservedPad', type: 'USHORT', value: 0 });\n                t.fields = t.fields.concat(startCounts);\n                t.fields = t.fields.concat(idDeltas);\n                t.fields = t.fields.concat(idRangeOffsets);\n                t.fields = t.fields.concat(glyphIds);\n\n                t.cmap4Length =\n                  14 + // Subtable header\n                  endCounts.length * 2 +\n                  2 + // reservedPad\n                  startCounts.length * 2 +\n                  idDeltas.length * 2 +\n                  idRangeOffsets.length * 2 +\n                  glyphIds.length * 2;\n\n                if (!isPlan0Only) {\n                  // CMAP 12 Subtable\n                  var cmap12Length =\n                    16 + // Subtable header\n                    cmap12Groups.length * 4;\n\n                  t.cmap12Offset = 12 + 2 * 2 + 4 + t.cmap4Length;\n                  t.fields = t.fields.concat([\n                    { name: 'cmap12Format', type: 'USHORT', value: 12 },\n                    { name: 'cmap12Reserved', type: 'USHORT', value: 0 },\n                    { name: 'cmap12Length', type: 'ULONG', value: cmap12Length },\n                    { name: 'cmap12Language', type: 'ULONG', value: 0 },\n                    { name: 'cmap12nGroups', type: 'ULONG', value: cmap12Groups.length / 3 }\n                  ]);\n\n                  t.fields = t.fields.concat(cmap12Groups);\n                }\n\n                return t;\n              }\n\n              var cmap = { parse: parseCmapTable, make: makeCmapTable };\n\n              // Glyph encoding\n\n              var cffStandardStrings = [\n                '.notdef',\n                'space',\n                'exclam',\n                'quotedbl',\n                'numbersign',\n                'dollar',\n                'percent',\n                'ampersand',\n                'quoteright',\n                'parenleft',\n                'parenright',\n                'asterisk',\n                'plus',\n                'comma',\n                'hyphen',\n                'period',\n                'slash',\n                'zero',\n                'one',\n                'two',\n                'three',\n                'four',\n                'five',\n                'six',\n                'seven',\n                'eight',\n                'nine',\n                'colon',\n                'semicolon',\n                'less',\n                'equal',\n                'greater',\n                'question',\n                'at',\n                'A',\n                'B',\n                'C',\n                'D',\n                'E',\n                'F',\n                'G',\n                'H',\n                'I',\n                'J',\n                'K',\n                'L',\n                'M',\n                'N',\n                'O',\n                'P',\n                'Q',\n                'R',\n                'S',\n                'T',\n                'U',\n                'V',\n                'W',\n                'X',\n                'Y',\n                'Z',\n                'bracketleft',\n                'backslash',\n                'bracketright',\n                'asciicircum',\n                'underscore',\n                'quoteleft',\n                'a',\n                'b',\n                'c',\n                'd',\n                'e',\n                'f',\n                'g',\n                'h',\n                'i',\n                'j',\n                'k',\n                'l',\n                'm',\n                'n',\n                'o',\n                'p',\n                'q',\n                'r',\n                's',\n                't',\n                'u',\n                'v',\n                'w',\n                'x',\n                'y',\n                'z',\n                'braceleft',\n                'bar',\n                'braceright',\n                'asciitilde',\n                'exclamdown',\n                'cent',\n                'sterling',\n                'fraction',\n                'yen',\n                'florin',\n                'section',\n                'currency',\n                'quotesingle',\n                'quotedblleft',\n                'guillemotleft',\n                'guilsinglleft',\n                'guilsinglright',\n                'fi',\n                'fl',\n                'endash',\n                'dagger',\n                'daggerdbl',\n                'periodcentered',\n                'paragraph',\n                'bullet',\n                'quotesinglbase',\n                'quotedblbase',\n                'quotedblright',\n                'guillemotright',\n                'ellipsis',\n                'perthousand',\n                'questiondown',\n                'grave',\n                'acute',\n                'circumflex',\n                'tilde',\n                'macron',\n                'breve',\n                'dotaccent',\n                'dieresis',\n                'ring',\n                'cedilla',\n                'hungarumlaut',\n                'ogonek',\n                'caron',\n                'emdash',\n                'AE',\n                'ordfeminine',\n                'Lslash',\n                'Oslash',\n                'OE',\n                'ordmasculine',\n                'ae',\n                'dotlessi',\n                'lslash',\n                'oslash',\n                'oe',\n                'germandbls',\n                'onesuperior',\n                'logicalnot',\n                'mu',\n                'trademark',\n                'Eth',\n                'onehalf',\n                'plusminus',\n                'Thorn',\n                'onequarter',\n                'divide',\n                'brokenbar',\n                'degree',\n                'thorn',\n                'threequarters',\n                'twosuperior',\n                'registered',\n                'minus',\n                'eth',\n                'multiply',\n                'threesuperior',\n                'copyright',\n                'Aacute',\n                'Acircumflex',\n                'Adieresis',\n                'Agrave',\n                'Aring',\n                'Atilde',\n                'Ccedilla',\n                'Eacute',\n                'Ecircumflex',\n                'Edieresis',\n                'Egrave',\n                'Iacute',\n                'Icircumflex',\n                'Idieresis',\n                'Igrave',\n                'Ntilde',\n                'Oacute',\n                'Ocircumflex',\n                'Odieresis',\n                'Ograve',\n                'Otilde',\n                'Scaron',\n                'Uacute',\n                'Ucircumflex',\n                'Udieresis',\n                'Ugrave',\n                'Yacute',\n                'Ydieresis',\n                'Zcaron',\n                'aacute',\n                'acircumflex',\n                'adieresis',\n                'agrave',\n                'aring',\n                'atilde',\n                'ccedilla',\n                'eacute',\n                'ecircumflex',\n                'edieresis',\n                'egrave',\n                'iacute',\n                'icircumflex',\n                'idieresis',\n                'igrave',\n                'ntilde',\n                'oacute',\n                'ocircumflex',\n                'odieresis',\n                'ograve',\n                'otilde',\n                'scaron',\n                'uacute',\n                'ucircumflex',\n                'udieresis',\n                'ugrave',\n                'yacute',\n                'ydieresis',\n                'zcaron',\n                'exclamsmall',\n                'Hungarumlautsmall',\n                'dollaroldstyle',\n                'dollarsuperior',\n                'ampersandsmall',\n                'Acutesmall',\n                'parenleftsuperior',\n                'parenrightsuperior',\n                '266 ff',\n                'onedotenleader',\n                'zerooldstyle',\n                'oneoldstyle',\n                'twooldstyle',\n                'threeoldstyle',\n                'fouroldstyle',\n                'fiveoldstyle',\n                'sixoldstyle',\n                'sevenoldstyle',\n                'eightoldstyle',\n                'nineoldstyle',\n                'commasuperior',\n                'threequartersemdash',\n                'periodsuperior',\n                'questionsmall',\n                'asuperior',\n                'bsuperior',\n                'centsuperior',\n                'dsuperior',\n                'esuperior',\n                'isuperior',\n                'lsuperior',\n                'msuperior',\n                'nsuperior',\n                'osuperior',\n                'rsuperior',\n                'ssuperior',\n                'tsuperior',\n                'ff',\n                'ffi',\n                'ffl',\n                'parenleftinferior',\n                'parenrightinferior',\n                'Circumflexsmall',\n                'hyphensuperior',\n                'Gravesmall',\n                'Asmall',\n                'Bsmall',\n                'Csmall',\n                'Dsmall',\n                'Esmall',\n                'Fsmall',\n                'Gsmall',\n                'Hsmall',\n                'Ismall',\n                'Jsmall',\n                'Ksmall',\n                'Lsmall',\n                'Msmall',\n                'Nsmall',\n                'Osmall',\n                'Psmall',\n                'Qsmall',\n                'Rsmall',\n                'Ssmall',\n                'Tsmall',\n                'Usmall',\n                'Vsmall',\n                'Wsmall',\n                'Xsmall',\n                'Ysmall',\n                'Zsmall',\n                'colonmonetary',\n                'onefitted',\n                'rupiah',\n                'Tildesmall',\n                'exclamdownsmall',\n                'centoldstyle',\n                'Lslashsmall',\n                'Scaronsmall',\n                'Zcaronsmall',\n                'Dieresissmall',\n                'Brevesmall',\n                'Caronsmall',\n                'Dotaccentsmall',\n                'Macronsmall',\n                'figuredash',\n                'hypheninferior',\n                'Ogoneksmall',\n                'Ringsmall',\n                'Cedillasmall',\n                'questiondownsmall',\n                'oneeighth',\n                'threeeighths',\n                'fiveeighths',\n                'seveneighths',\n                'onethird',\n                'twothirds',\n                'zerosuperior',\n                'foursuperior',\n                'fivesuperior',\n                'sixsuperior',\n                'sevensuperior',\n                'eightsuperior',\n                'ninesuperior',\n                'zeroinferior',\n                'oneinferior',\n                'twoinferior',\n                'threeinferior',\n                'fourinferior',\n                'fiveinferior',\n                'sixinferior',\n                'seveninferior',\n                'eightinferior',\n                'nineinferior',\n                'centinferior',\n                'dollarinferior',\n                'periodinferior',\n                'commainferior',\n                'Agravesmall',\n                'Aacutesmall',\n                'Acircumflexsmall',\n                'Atildesmall',\n                'Adieresissmall',\n                'Aringsmall',\n                'AEsmall',\n                'Ccedillasmall',\n                'Egravesmall',\n                'Eacutesmall',\n                'Ecircumflexsmall',\n                'Edieresissmall',\n                'Igravesmall',\n                'Iacutesmall',\n                'Icircumflexsmall',\n                'Idieresissmall',\n                'Ethsmall',\n                'Ntildesmall',\n                'Ogravesmall',\n                'Oacutesmall',\n                'Ocircumflexsmall',\n                'Otildesmall',\n                'Odieresissmall',\n                'OEsmall',\n                'Oslashsmall',\n                'Ugravesmall',\n                'Uacutesmall',\n                'Ucircumflexsmall',\n                'Udieresissmall',\n                'Yacutesmall',\n                'Thornsmall',\n                'Ydieresissmall',\n                '001.000',\n                '001.001',\n                '001.002',\n                '001.003',\n                'Black',\n                'Bold',\n                'Book',\n                'Light',\n                'Medium',\n                'Regular',\n                'Roman',\n                'Semibold'\n              ];\n\n              var cffStandardEncoding = [\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                'space',\n                'exclam',\n                'quotedbl',\n                'numbersign',\n                'dollar',\n                'percent',\n                'ampersand',\n                'quoteright',\n                'parenleft',\n                'parenright',\n                'asterisk',\n                'plus',\n                'comma',\n                'hyphen',\n                'period',\n                'slash',\n                'zero',\n                'one',\n                'two',\n                'three',\n                'four',\n                'five',\n                'six',\n                'seven',\n                'eight',\n                'nine',\n                'colon',\n                'semicolon',\n                'less',\n                'equal',\n                'greater',\n                'question',\n                'at',\n                'A',\n                'B',\n                'C',\n                'D',\n                'E',\n                'F',\n                'G',\n                'H',\n                'I',\n                'J',\n                'K',\n                'L',\n                'M',\n                'N',\n                'O',\n                'P',\n                'Q',\n                'R',\n                'S',\n                'T',\n                'U',\n                'V',\n                'W',\n                'X',\n                'Y',\n                'Z',\n                'bracketleft',\n                'backslash',\n                'bracketright',\n                'asciicircum',\n                'underscore',\n                'quoteleft',\n                'a',\n                'b',\n                'c',\n                'd',\n                'e',\n                'f',\n                'g',\n                'h',\n                'i',\n                'j',\n                'k',\n                'l',\n                'm',\n                'n',\n                'o',\n                'p',\n                'q',\n                'r',\n                's',\n                't',\n                'u',\n                'v',\n                'w',\n                'x',\n                'y',\n                'z',\n                'braceleft',\n                'bar',\n                'braceright',\n                'asciitilde',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                'exclamdown',\n                'cent',\n                'sterling',\n                'fraction',\n                'yen',\n                'florin',\n                'section',\n                'currency',\n                'quotesingle',\n                'quotedblleft',\n                'guillemotleft',\n                'guilsinglleft',\n                'guilsinglright',\n                'fi',\n                'fl',\n                '',\n                'endash',\n                'dagger',\n                'daggerdbl',\n                'periodcentered',\n                '',\n                'paragraph',\n                'bullet',\n                'quotesinglbase',\n                'quotedblbase',\n                'quotedblright',\n                'guillemotright',\n                'ellipsis',\n                'perthousand',\n                '',\n                'questiondown',\n                '',\n                'grave',\n                'acute',\n                'circumflex',\n                'tilde',\n                'macron',\n                'breve',\n                'dotaccent',\n                'dieresis',\n                '',\n                'ring',\n                'cedilla',\n                '',\n                'hungarumlaut',\n                'ogonek',\n                'caron',\n                'emdash',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                'AE',\n                '',\n                'ordfeminine',\n                '',\n                '',\n                '',\n                '',\n                'Lslash',\n                'Oslash',\n                'OE',\n                'ordmasculine',\n                '',\n                '',\n                '',\n                '',\n                '',\n                'ae',\n                '',\n                '',\n                '',\n                'dotlessi',\n                '',\n                '',\n                'lslash',\n                'oslash',\n                'oe',\n                'germandbls'\n              ];\n\n              var cffExpertEncoding = [\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                'space',\n                'exclamsmall',\n                'Hungarumlautsmall',\n                '',\n                'dollaroldstyle',\n                'dollarsuperior',\n                'ampersandsmall',\n                'Acutesmall',\n                'parenleftsuperior',\n                'parenrightsuperior',\n                'twodotenleader',\n                'onedotenleader',\n                'comma',\n                'hyphen',\n                'period',\n                'fraction',\n                'zerooldstyle',\n                'oneoldstyle',\n                'twooldstyle',\n                'threeoldstyle',\n                'fouroldstyle',\n                'fiveoldstyle',\n                'sixoldstyle',\n                'sevenoldstyle',\n                'eightoldstyle',\n                'nineoldstyle',\n                'colon',\n                'semicolon',\n                'commasuperior',\n                'threequartersemdash',\n                'periodsuperior',\n                'questionsmall',\n                '',\n                'asuperior',\n                'bsuperior',\n                'centsuperior',\n                'dsuperior',\n                'esuperior',\n                '',\n                '',\n                'isuperior',\n                '',\n                '',\n                'lsuperior',\n                'msuperior',\n                'nsuperior',\n                'osuperior',\n                '',\n                '',\n                'rsuperior',\n                'ssuperior',\n                'tsuperior',\n                '',\n                'ff',\n                'fi',\n                'fl',\n                'ffi',\n                'ffl',\n                'parenleftinferior',\n                '',\n                'parenrightinferior',\n                'Circumflexsmall',\n                'hyphensuperior',\n                'Gravesmall',\n                'Asmall',\n                'Bsmall',\n                'Csmall',\n                'Dsmall',\n                'Esmall',\n                'Fsmall',\n                'Gsmall',\n                'Hsmall',\n                'Ismall',\n                'Jsmall',\n                'Ksmall',\n                'Lsmall',\n                'Msmall',\n                'Nsmall',\n                'Osmall',\n                'Psmall',\n                'Qsmall',\n                'Rsmall',\n                'Ssmall',\n                'Tsmall',\n                'Usmall',\n                'Vsmall',\n                'Wsmall',\n                'Xsmall',\n                'Ysmall',\n                'Zsmall',\n                'colonmonetary',\n                'onefitted',\n                'rupiah',\n                'Tildesmall',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                '',\n                'exclamdownsmall',\n                'centoldstyle',\n                'Lslashsmall',\n                '',\n                '',\n                'Scaronsmall',\n                'Zcaronsmall',\n                'Dieresissmall',\n                'Brevesmall',\n                'Caronsmall',\n                '',\n                'Dotaccentsmall',\n                '',\n                '',\n                'Macronsmall',\n                '',\n                '',\n                'figuredash',\n                'hypheninferior',\n                '',\n                '',\n                'Ogoneksmall',\n                'Ringsmall',\n                'Cedillasmall',\n                '',\n                '',\n                '',\n                'onequarter',\n                'onehalf',\n                'threequarters',\n                'questiondownsmall',\n                'oneeighth',\n                'threeeighths',\n                'fiveeighths',\n                'seveneighths',\n                'onethird',\n                'twothirds',\n                '',\n                '',\n                'zerosuperior',\n                'onesuperior',\n                'twosuperior',\n                'threesuperior',\n                'foursuperior',\n                'fivesuperior',\n                'sixsuperior',\n                'sevensuperior',\n                'eightsuperior',\n                'ninesuperior',\n                'zeroinferior',\n                'oneinferior',\n                'twoinferior',\n                'threeinferior',\n                'fourinferior',\n                'fiveinferior',\n                'sixinferior',\n                'seveninferior',\n                'eightinferior',\n                'nineinferior',\n                'centinferior',\n                'dollarinferior',\n                'periodinferior',\n                'commainferior',\n                'Agravesmall',\n                'Aacutesmall',\n                'Acircumflexsmall',\n                'Atildesmall',\n                'Adieresissmall',\n                'Aringsmall',\n                'AEsmall',\n                'Ccedillasmall',\n                'Egravesmall',\n                'Eacutesmall',\n                'Ecircumflexsmall',\n                'Edieresissmall',\n                'Igravesmall',\n                'Iacutesmall',\n                'Icircumflexsmall',\n                'Idieresissmall',\n                'Ethsmall',\n                'Ntildesmall',\n                'Ogravesmall',\n                'Oacutesmall',\n                'Ocircumflexsmall',\n                'Otildesmall',\n                'Odieresissmall',\n                'OEsmall',\n                'Oslashsmall',\n                'Ugravesmall',\n                'Uacutesmall',\n                'Ucircumflexsmall',\n                'Udieresissmall',\n                'Yacutesmall',\n                'Thornsmall',\n                'Ydieresissmall'\n              ];\n\n              var standardNames = [\n                '.notdef',\n                '.null',\n                'nonmarkingreturn',\n                'space',\n                'exclam',\n                'quotedbl',\n                'numbersign',\n                'dollar',\n                'percent',\n                'ampersand',\n                'quotesingle',\n                'parenleft',\n                'parenright',\n                'asterisk',\n                'plus',\n                'comma',\n                'hyphen',\n                'period',\n                'slash',\n                'zero',\n                'one',\n                'two',\n                'three',\n                'four',\n                'five',\n                'six',\n                'seven',\n                'eight',\n                'nine',\n                'colon',\n                'semicolon',\n                'less',\n                'equal',\n                'greater',\n                'question',\n                'at',\n                'A',\n                'B',\n                'C',\n                'D',\n                'E',\n                'F',\n                'G',\n                'H',\n                'I',\n                'J',\n                'K',\n                'L',\n                'M',\n                'N',\n                'O',\n                'P',\n                'Q',\n                'R',\n                'S',\n                'T',\n                'U',\n                'V',\n                'W',\n                'X',\n                'Y',\n                'Z',\n                'bracketleft',\n                'backslash',\n                'bracketright',\n                'asciicircum',\n                'underscore',\n                'grave',\n                'a',\n                'b',\n                'c',\n                'd',\n                'e',\n                'f',\n                'g',\n                'h',\n                'i',\n                'j',\n                'k',\n                'l',\n                'm',\n                'n',\n                'o',\n                'p',\n                'q',\n                'r',\n                's',\n                't',\n                'u',\n                'v',\n                'w',\n                'x',\n                'y',\n                'z',\n                'braceleft',\n                'bar',\n                'braceright',\n                'asciitilde',\n                'Adieresis',\n                'Aring',\n                'Ccedilla',\n                'Eacute',\n                'Ntilde',\n                'Odieresis',\n                'Udieresis',\n                'aacute',\n                'agrave',\n                'acircumflex',\n                'adieresis',\n                'atilde',\n                'aring',\n                'ccedilla',\n                'eacute',\n                'egrave',\n                'ecircumflex',\n                'edieresis',\n                'iacute',\n                'igrave',\n                'icircumflex',\n                'idieresis',\n                'ntilde',\n                'oacute',\n                'ograve',\n                'ocircumflex',\n                'odieresis',\n                'otilde',\n                'uacute',\n                'ugrave',\n                'ucircumflex',\n                'udieresis',\n                'dagger',\n                'degree',\n                'cent',\n                'sterling',\n                'section',\n                'bullet',\n                'paragraph',\n                'germandbls',\n                'registered',\n                'copyright',\n                'trademark',\n                'acute',\n                'dieresis',\n                'notequal',\n                'AE',\n                'Oslash',\n                'infinity',\n                'plusminus',\n                'lessequal',\n                'greaterequal',\n                'yen',\n                'mu',\n                'partialdiff',\n                'summation',\n                'product',\n                'pi',\n                'integral',\n                'ordfeminine',\n                'ordmasculine',\n                'Omega',\n                'ae',\n                'oslash',\n                'questiondown',\n                'exclamdown',\n                'logicalnot',\n                'radical',\n                'florin',\n                'approxequal',\n                'Delta',\n                'guillemotleft',\n                'guillemotright',\n                'ellipsis',\n                'nonbreakingspace',\n                'Agrave',\n                'Atilde',\n                'Otilde',\n                'OE',\n                'oe',\n                'endash',\n                'emdash',\n                'quotedblleft',\n                'quotedblright',\n                'quoteleft',\n                'quoteright',\n                'divide',\n                'lozenge',\n                'ydieresis',\n                'Ydieresis',\n                'fraction',\n                'currency',\n                'guilsinglleft',\n                'guilsinglright',\n                'fi',\n                'fl',\n                'daggerdbl',\n                'periodcentered',\n                'quotesinglbase',\n                'quotedblbase',\n                'perthousand',\n                'Acircumflex',\n                'Ecircumflex',\n                'Aacute',\n                'Edieresis',\n                'Egrave',\n                'Iacute',\n                'Icircumflex',\n                'Idieresis',\n                'Igrave',\n                'Oacute',\n                'Ocircumflex',\n                'apple',\n                'Ograve',\n                'Uacute',\n                'Ucircumflex',\n                'Ugrave',\n                'dotlessi',\n                'circumflex',\n                'tilde',\n                'macron',\n                'breve',\n                'dotaccent',\n                'ring',\n                'cedilla',\n                'hungarumlaut',\n                'ogonek',\n                'caron',\n                'Lslash',\n                'lslash',\n                'Scaron',\n                'scaron',\n                'Zcaron',\n                'zcaron',\n                'brokenbar',\n                'Eth',\n                'eth',\n                'Yacute',\n                'yacute',\n                'Thorn',\n                'thorn',\n                'minus',\n                'multiply',\n                'onesuperior',\n                'twosuperior',\n                'threesuperior',\n                'onehalf',\n                'onequarter',\n                'threequarters',\n                'franc',\n                'Gbreve',\n                'gbreve',\n                'Idotaccent',\n                'Scedilla',\n                'scedilla',\n                'Cacute',\n                'cacute',\n                'Ccaron',\n                'ccaron',\n                'dcroat'\n              ];\n\n              /**\n               * This is the encoding used for fonts created from scratch.\n               * It loops through all glyphs and finds the appropriate unicode value.\n               * Since it's linear time, other encodings will be faster.\n               * @exports opentype.DefaultEncoding\n               * @class\n               * @constructor\n               * @param {opentype.Font}\n               */\n              function DefaultEncoding(font) {\n                this.font = font;\n              }\n\n              DefaultEncoding.prototype.charToGlyphIndex = function(c) {\n                var code = c.codePointAt(0);\n                var glyphs = this.font.glyphs;\n                if (glyphs) {\n                  for (var i = 0; i < glyphs.length; i += 1) {\n                    var glyph = glyphs.get(i);\n                    for (var j = 0; j < glyph.unicodes.length; j += 1) {\n                      if (glyph.unicodes[j] === code) {\n                        return i;\n                      }\n                    }\n                  }\n                }\n                return null;\n              };\n\n              /**\n               * @exports opentype.CmapEncoding\n               * @class\n               * @constructor\n               * @param {Object} cmap - a object with the cmap encoded data\n               */\n              function CmapEncoding(cmap) {\n                this.cmap = cmap;\n              }\n\n              /**\n               * @param  {string} c - the character\n               * @return {number} The glyph index.\n               */\n              CmapEncoding.prototype.charToGlyphIndex = function(c) {\n                return this.cmap.glyphIndexMap[c.codePointAt(0)] || 0;\n              };\n\n              /**\n               * @exports opentype.CffEncoding\n               * @class\n               * @constructor\n               * @param {string} encoding - The encoding\n               * @param {Array} charset - The character set.\n               */\n              function CffEncoding(encoding, charset) {\n                this.encoding = encoding;\n                this.charset = charset;\n              }\n\n              /**\n               * @param  {string} s - The character\n               * @return {number} The index.\n               */\n              CffEncoding.prototype.charToGlyphIndex = function(s) {\n                var code = s.codePointAt(0);\n                var charName = this.encoding[code];\n                return this.charset.indexOf(charName);\n              };\n\n              /**\n               * @exports opentype.GlyphNames\n               * @class\n               * @constructor\n               * @param {Object} post\n               */\n              function GlyphNames(post) {\n                var this$1 = this;\n\n                switch (post.version) {\n                  case 1:\n                    this.names = standardNames.slice();\n                    break;\n                  case 2:\n                    this.names = new Array(post.numberOfGlyphs);\n                    for (var i = 0; i < post.numberOfGlyphs; i++) {\n                      if (post.glyphNameIndex[i] < standardNames.length) {\n                        this$1.names[i] = standardNames[post.glyphNameIndex[i]];\n                      } else {\n                        this$1.names[i] =\n                          post.names[post.glyphNameIndex[i] - standardNames.length];\n                      }\n                    }\n\n                    break;\n                  case 2.5:\n                    this.names = new Array(post.numberOfGlyphs);\n                    for (var i$1 = 0; i$1 < post.numberOfGlyphs; i$1++) {\n                      this$1.names[i$1] = standardNames[i$1 + post.glyphNameIndex[i$1]];\n                    }\n\n                    break;\n                  case 3:\n                    this.names = [];\n                    break;\n                  default:\n                    this.names = [];\n                    break;\n                }\n              }\n\n              /**\n               * Gets the index of a glyph by name.\n               * @param  {string} name - The glyph name\n               * @return {number} The index\n               */\n              GlyphNames.prototype.nameToGlyphIndex = function(name) {\n                return this.names.indexOf(name);\n              };\n\n              /**\n               * @param  {number} gid\n               * @return {string}\n               */\n              GlyphNames.prototype.glyphIndexToName = function(gid) {\n                return this.names[gid];\n              };\n\n              /**\n               * @alias opentype.addGlyphNames\n               * @param {opentype.Font}\n               */\n              function addGlyphNames(font) {\n                var glyph;\n                var glyphIndexMap = font.tables.cmap.glyphIndexMap;\n                var charCodes = Object.keys(glyphIndexMap);\n\n                for (var i = 0; i < charCodes.length; i += 1) {\n                  var c = charCodes[i];\n                  var glyphIndex = glyphIndexMap[c];\n                  glyph = font.glyphs.get(glyphIndex);\n                  glyph.addUnicode(parseInt(c));\n                }\n\n                for (var i$1 = 0; i$1 < font.glyphs.length; i$1 += 1) {\n                  glyph = font.glyphs.get(i$1);\n                  if (font.cffEncoding) {\n                    if (font.isCIDFont) {\n                      glyph.name = 'gid' + i$1;\n                    } else {\n                      glyph.name = font.cffEncoding.charset[i$1];\n                    }\n                  } else if (font.glyphNames.names) {\n                    glyph.name = font.glyphNames.glyphIndexToName(i$1);\n                  }\n                }\n              }\n\n              // Drawing utility functions.\n\n              // Draw a line on the given context from point `x1,y1` to point `x2,y2`.\n              function line(ctx, x1, y1, x2, y2) {\n                ctx.beginPath();\n                ctx.moveTo(x1, y1);\n                ctx.lineTo(x2, y2);\n                ctx.stroke();\n              }\n\n              var draw = { line: line };\n\n              // The Glyph object\n              // import glyf from './tables/glyf' Can't be imported here, because it's a circular dependency\n\n              function getPathDefinition(glyph, path) {\n                var _path = path || new Path();\n                return {\n                  configurable: true,\n\n                  get: function() {\n                    if (typeof _path === 'function') {\n                      _path = _path();\n                    }\n\n                    return _path;\n                  },\n\n                  set: function(p) {\n                    _path = p;\n                  }\n                };\n              }\n              /**\n               * @typedef GlyphOptions\n               * @type Object\n               * @property {string} [name] - The glyph name\n               * @property {number} [unicode]\n               * @property {Array} [unicodes]\n               * @property {number} [xMin]\n               * @property {number} [yMin]\n               * @property {number} [xMax]\n               * @property {number} [yMax]\n               * @property {number} [advanceWidth]\n               */\n\n              // A Glyph is an individual mark that often corresponds to a character.\n              // Some glyphs, such as ligatures, are a combination of many characters.\n              // Glyphs are the basic building blocks of a font.\n              //\n              // The `Glyph` class contains utility methods for drawing the path and its points.\n              /**\n               * @exports opentype.Glyph\n               * @class\n               * @param {GlyphOptions}\n               * @constructor\n               */\n              function Glyph(options) {\n                // By putting all the code on a prototype function (which is only declared once)\n                // we reduce the memory requirements for larger fonts by some 2%\n                this.bindConstructorValues(options);\n              }\n\n              /**\n               * @param  {GlyphOptions}\n               */\n              Glyph.prototype.bindConstructorValues = function(options) {\n                this.index = options.index || 0;\n\n                // These three values cannot be deferred for memory optimization:\n                this.name = options.name || null;\n                this.unicode = options.unicode || undefined;\n                this.unicodes =\n                  options.unicodes || options.unicode !== undefined\n                    ? [options.unicode]\n                    : [];\n\n                // But by binding these values only when necessary, we reduce can\n                // the memory requirements by almost 3% for larger fonts.\n                if (options.xMin) {\n                  this.xMin = options.xMin;\n                }\n\n                if (options.yMin) {\n                  this.yMin = options.yMin;\n                }\n\n                if (options.xMax) {\n                  this.xMax = options.xMax;\n                }\n\n                if (options.yMax) {\n                  this.yMax = options.yMax;\n                }\n\n                if (options.advanceWidth) {\n                  this.advanceWidth = options.advanceWidth;\n                }\n\n                // The path for a glyph is the most memory intensive, and is bound as a value\n                // with a getter/setter to ensure we actually do path parsing only once the\n                // path is actually needed by anything.\n                Object.defineProperty(this, 'path', getPathDefinition(this, options.path));\n              };\n\n              /**\n               * @param {number}\n               */\n              Glyph.prototype.addUnicode = function(unicode) {\n                if (this.unicodes.length === 0) {\n                  this.unicode = unicode;\n                }\n\n                this.unicodes.push(unicode);\n              };\n\n              /**\n               * Calculate the minimum bounding box for this glyph.\n               * @return {opentype.BoundingBox}\n               */\n              Glyph.prototype.getBoundingBox = function() {\n                return this.path.getBoundingBox();\n              };\n\n              /**\n               * Convert the glyph to a Path we can draw on a drawing context.\n               * @param  {number} [x=0] - Horizontal position of the beginning of the text.\n               * @param  {number} [y=0] - Vertical position of the *baseline* of the text.\n               * @param  {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`.\n               * @param  {Object=} options - xScale, yScale to stretch the glyph.\n               * @param  {opentype.Font} if hinting is to be used, the font\n               * @return {opentype.Path}\n               */\n              Glyph.prototype.getPath = function(x, y, fontSize, options, font) {\n                x = x !== undefined ? x : 0;\n                y = y !== undefined ? y : 0;\n                fontSize = fontSize !== undefined ? fontSize : 72;\n                var commands;\n                var hPoints;\n                if (!options) {\n                  options = {};\n                }\n                var xScale = options.xScale;\n                var yScale = options.yScale;\n\n                if (options.hinting && font && font.hinting) {\n                  // in case of hinting, the hinting engine takes care\n                  // of scaling the points (not the path) before hinting.\n                  hPoints = this.path && font.hinting.exec(this, fontSize);\n                  // in case the hinting engine failed hPoints is undefined\n                  // and thus reverts to plain rending\n                }\n\n                if (hPoints) {\n                  // Call font.hinting.getCommands instead of `glyf.getPath(hPoints).commands` to avoid a circular dependency\n                  commands = font.hinting.getCommands(hPoints);\n                  x = Math.round(x);\n                  y = Math.round(y);\n                  // TODO in case of hinting xyScaling is not yet supported\n                  xScale = yScale = 1;\n                } else {\n                  commands = this.path.commands;\n                  var scale = 1 / this.path.unitsPerEm * fontSize;\n                  if (xScale === undefined) {\n                    xScale = scale;\n                  }\n                  if (yScale === undefined) {\n                    yScale = scale;\n                  }\n                }\n\n                var p = new Path();\n                for (var i = 0; i < commands.length; i += 1) {\n                  var cmd = commands[i];\n                  if (cmd.type === 'M') {\n                    p.moveTo(x + cmd.x * xScale, y + -cmd.y * yScale);\n                  } else if (cmd.type === 'L') {\n                    p.lineTo(x + cmd.x * xScale, y + -cmd.y * yScale);\n                  } else if (cmd.type === 'Q') {\n                    p.quadraticCurveTo(\n                      x + cmd.x1 * xScale,\n                      y + -cmd.y1 * yScale,\n                      x + cmd.x * xScale,\n                      y + -cmd.y * yScale\n                    );\n                  } else if (cmd.type === 'C') {\n                    p.curveTo(\n                      x + cmd.x1 * xScale,\n                      y + -cmd.y1 * yScale,\n                      x + cmd.x2 * xScale,\n                      y + -cmd.y2 * yScale,\n                      x + cmd.x * xScale,\n                      y + -cmd.y * yScale\n                    );\n                  } else if (cmd.type === 'Z') {\n                    p.closePath();\n                  }\n                }\n\n                return p;\n              };\n\n              /**\n               * Split the glyph into contours.\n               * This function is here for backwards compatibility, and to\n               * provide raw access to the TrueType glyph outlines.\n               * @return {Array}\n               */\n              Glyph.prototype.getContours = function() {\n                var this$1 = this;\n\n                if (this.points === undefined) {\n                  return [];\n                }\n\n                var contours = [];\n                var currentContour = [];\n                for (var i = 0; i < this.points.length; i += 1) {\n                  var pt = this$1.points[i];\n                  currentContour.push(pt);\n                  if (pt.lastPointOfContour) {\n                    contours.push(currentContour);\n                    currentContour = [];\n                  }\n                }\n\n                check.argument(\n                  currentContour.length === 0,\n                  'There are still points left in the current contour.'\n                );\n                return contours;\n              };\n\n              /**\n               * Calculate the xMin/yMin/xMax/yMax/lsb/rsb for a Glyph.\n               * @return {Object}\n               */\n              Glyph.prototype.getMetrics = function() {\n                var commands = this.path.commands;\n                var xCoords = [];\n                var yCoords = [];\n                for (var i = 0; i < commands.length; i += 1) {\n                  var cmd = commands[i];\n                  if (cmd.type !== 'Z') {\n                    xCoords.push(cmd.x);\n                    yCoords.push(cmd.y);\n                  }\n\n                  if (cmd.type === 'Q' || cmd.type === 'C') {\n                    xCoords.push(cmd.x1);\n                    yCoords.push(cmd.y1);\n                  }\n\n                  if (cmd.type === 'C') {\n                    xCoords.push(cmd.x2);\n                    yCoords.push(cmd.y2);\n                  }\n                }\n\n                var metrics = {\n                  xMin: Math.min.apply(null, xCoords),\n                  yMin: Math.min.apply(null, yCoords),\n                  xMax: Math.max.apply(null, xCoords),\n                  yMax: Math.max.apply(null, yCoords),\n                  leftSideBearing: this.leftSideBearing\n                };\n\n                if (!isFinite(metrics.xMin)) {\n                  metrics.xMin = 0;\n                }\n\n                if (!isFinite(metrics.xMax)) {\n                  metrics.xMax = this.advanceWidth;\n                }\n\n                if (!isFinite(metrics.yMin)) {\n                  metrics.yMin = 0;\n                }\n\n                if (!isFinite(metrics.yMax)) {\n                  metrics.yMax = 0;\n                }\n\n                metrics.rightSideBearing =\n                  this.advanceWidth -\n                  metrics.leftSideBearing -\n                  (metrics.xMax - metrics.xMin);\n                return metrics;\n              };\n\n              /**\n               * Draw the glyph on the given context.\n               * @param  {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas.\n               * @param  {number} [x=0] - Horizontal position of the beginning of the text.\n               * @param  {number} [y=0] - Vertical position of the *baseline* of the text.\n               * @param  {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`.\n               * @param  {Object=} options - xScale, yScale to stretch the glyph.\n               */\n              Glyph.prototype.draw = function(ctx, x, y, fontSize, options) {\n                this.getPath(x, y, fontSize, options).draw(ctx);\n              };\n\n              /**\n               * Draw the points of the glyph.\n               * On-curve points will be drawn in blue, off-curve points will be drawn in red.\n               * @param  {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas.\n               * @param  {number} [x=0] - Horizontal position of the beginning of the text.\n               * @param  {number} [y=0] - Vertical position of the *baseline* of the text.\n               * @param  {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`.\n               */\n              Glyph.prototype.drawPoints = function(ctx, x, y, fontSize) {\n                function drawCircles(l, x, y, scale) {\n                  var PI_SQ = Math.PI * 2;\n                  ctx.beginPath();\n                  for (var j = 0; j < l.length; j += 1) {\n                    ctx.moveTo(x + l[j].x * scale, y + l[j].y * scale);\n                    ctx.arc(x + l[j].x * scale, y + l[j].y * scale, 2, 0, PI_SQ, false);\n                  }\n\n                  ctx.closePath();\n                  ctx.fill();\n                }\n\n                x = x !== undefined ? x : 0;\n                y = y !== undefined ? y : 0;\n                fontSize = fontSize !== undefined ? fontSize : 24;\n                var scale = 1 / this.path.unitsPerEm * fontSize;\n\n                var blueCircles = [];\n                var redCircles = [];\n                var path = this.path;\n                for (var i = 0; i < path.commands.length; i += 1) {\n                  var cmd = path.commands[i];\n                  if (cmd.x !== undefined) {\n                    blueCircles.push({ x: cmd.x, y: -cmd.y });\n                  }\n\n                  if (cmd.x1 !== undefined) {\n                    redCircles.push({ x: cmd.x1, y: -cmd.y1 });\n                  }\n\n                  if (cmd.x2 !== undefined) {\n                    redCircles.push({ x: cmd.x2, y: -cmd.y2 });\n                  }\n                }\n\n                ctx.fillStyle = 'blue';\n                drawCircles(blueCircles, x, y, scale);\n                ctx.fillStyle = 'red';\n                drawCircles(redCircles, x, y, scale);\n              };\n\n              /**\n               * Draw lines indicating important font measurements.\n               * Black lines indicate the origin of the coordinate system (point 0,0).\n               * Blue lines indicate the glyph bounding box.\n               * Green line indicates the advance width of the glyph.\n               * @param  {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas.\n               * @param  {number} [x=0] - Horizontal position of the beginning of the text.\n               * @param  {number} [y=0] - Vertical position of the *baseline* of the text.\n               * @param  {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`.\n               */\n              Glyph.prototype.drawMetrics = function(ctx, x, y, fontSize) {\n                var scale;\n                x = x !== undefined ? x : 0;\n                y = y !== undefined ? y : 0;\n                fontSize = fontSize !== undefined ? fontSize : 24;\n                scale = 1 / this.path.unitsPerEm * fontSize;\n                ctx.lineWidth = 1;\n\n                // Draw the origin\n                ctx.strokeStyle = 'black';\n                draw.line(ctx, x, -10000, x, 10000);\n                draw.line(ctx, -10000, y, 10000, y);\n\n                // This code is here due to memory optimization: by not using\n                // defaults in the constructor, we save a notable amount of memory.\n                var xMin = this.xMin || 0;\n                var yMin = this.yMin || 0;\n                var xMax = this.xMax || 0;\n                var yMax = this.yMax || 0;\n                var advanceWidth = this.advanceWidth || 0;\n\n                // Draw the glyph box\n                ctx.strokeStyle = 'blue';\n                draw.line(ctx, x + xMin * scale, -10000, x + xMin * scale, 10000);\n                draw.line(ctx, x + xMax * scale, -10000, x + xMax * scale, 10000);\n                draw.line(ctx, -10000, y + -yMin * scale, 10000, y + -yMin * scale);\n                draw.line(ctx, -10000, y + -yMax * scale, 10000, y + -yMax * scale);\n\n                // Draw the advance width\n                ctx.strokeStyle = 'green';\n                draw.line(\n                  ctx,\n                  x + advanceWidth * scale,\n                  -10000,\n                  x + advanceWidth * scale,\n                  10000\n                );\n              };\n\n              // The GlyphSet object\n\n              // Define a property on the glyph that depends on the path being loaded.\n              function defineDependentProperty(glyph, externalName, internalName) {\n                Object.defineProperty(glyph, externalName, {\n                  get: function() {\n                    // Request the path property to make sure the path is loaded.\n                    glyph.path; // jshint ignore:line\n                    return glyph[internalName];\n                  },\n                  set: function(newValue) {\n                    glyph[internalName] = newValue;\n                  },\n                  enumerable: true,\n                  configurable: true\n                });\n              }\n\n              /**\n               * A GlyphSet represents all glyphs available in the font, but modelled using\n               * a deferred glyph loader, for retrieving glyphs only once they are absolutely\n               * necessary, to keep the memory footprint down.\n               * @exports opentype.GlyphSet\n               * @class\n               * @param {opentype.Font}\n               * @param {Array}\n               */\n              function GlyphSet(font, glyphs) {\n                var this$1 = this;\n\n                this.font = font;\n                this.glyphs = {};\n                if (Array.isArray(glyphs)) {\n                  for (var i = 0; i < glyphs.length; i++) {\n                    this$1.glyphs[i] = glyphs[i];\n                  }\n                }\n\n                this.length = (glyphs && glyphs.length) || 0;\n              }\n\n              /**\n               * @param  {number} index\n               * @return {opentype.Glyph}\n               */\n              GlyphSet.prototype.get = function(index) {\n                if (typeof this.glyphs[index] === 'function') {\n                  this.glyphs[index] = this.glyphs[index]();\n                }\n\n                return this.glyphs[index];\n              };\n\n              /**\n               * @param  {number} index\n               * @param  {Object}\n               */\n              GlyphSet.prototype.push = function(index, loader) {\n                this.glyphs[index] = loader;\n                this.length++;\n              };\n\n              /**\n               * @alias opentype.glyphLoader\n               * @param  {opentype.Font} font\n               * @param  {number} index\n               * @return {opentype.Glyph}\n               */\n              function glyphLoader(font, index) {\n                return new Glyph({ index: index, font: font });\n              }\n\n              /**\n               * Generate a stub glyph that can be filled with all metadata *except*\n               * the \"points\" and \"path\" properties, which must be loaded only once\n               * the glyph's path is actually requested for text shaping.\n               * @alias opentype.ttfGlyphLoader\n               * @param  {opentype.Font} font\n               * @param  {number} index\n               * @param  {Function} parseGlyph\n               * @param  {Object} data\n               * @param  {number} position\n               * @param  {Function} buildPath\n               * @return {opentype.Glyph}\n               */\n              function ttfGlyphLoader(font, index, parseGlyph, data, position, buildPath) {\n                return function() {\n                  var glyph = new Glyph({ index: index, font: font });\n\n                  glyph.path = function() {\n                    parseGlyph(glyph, data, position);\n                    var path = buildPath(font.glyphs, glyph);\n                    path.unitsPerEm = font.unitsPerEm;\n                    return path;\n                  };\n\n                  defineDependentProperty(glyph, 'xMin', '_xMin');\n                  defineDependentProperty(glyph, 'xMax', '_xMax');\n                  defineDependentProperty(glyph, 'yMin', '_yMin');\n                  defineDependentProperty(glyph, 'yMax', '_yMax');\n\n                  return glyph;\n                };\n              }\n              /**\n               * @alias opentype.cffGlyphLoader\n               * @param  {opentype.Font} font\n               * @param  {number} index\n               * @param  {Function} parseCFFCharstring\n               * @param  {string} charstring\n               * @return {opentype.Glyph}\n               */\n              function cffGlyphLoader(font, index, parseCFFCharstring, charstring) {\n                return function() {\n                  var glyph = new Glyph({ index: index, font: font });\n\n                  glyph.path = function() {\n                    var path = parseCFFCharstring(font, glyph, charstring);\n                    path.unitsPerEm = font.unitsPerEm;\n                    return path;\n                  };\n\n                  return glyph;\n                };\n              }\n\n              var glyphset = {\n                GlyphSet: GlyphSet,\n                glyphLoader: glyphLoader,\n                ttfGlyphLoader: ttfGlyphLoader,\n                cffGlyphLoader: cffGlyphLoader\n              };\n\n              // The `CFF` table contains the glyph outlines in PostScript format.\n\n              // Custom equals function that can also check lists.\n              function equals(a, b) {\n                if (a === b) {\n                  return true;\n                } else if (Array.isArray(a) && Array.isArray(b)) {\n                  if (a.length !== b.length) {\n                    return false;\n                  }\n\n                  for (var i = 0; i < a.length; i += 1) {\n                    if (!equals(a[i], b[i])) {\n                      return false;\n                    }\n                  }\n\n                  return true;\n                } else {\n                  return false;\n                }\n              }\n\n              // Subroutines are encoded using the negative half of the number space.\n              // See type 2 chapter 4.7 \"Subroutine operators\".\n              function calcCFFSubroutineBias(subrs) {\n                var bias;\n                if (subrs.length < 1240) {\n                  bias = 107;\n                } else if (subrs.length < 33900) {\n                  bias = 1131;\n                } else {\n                  bias = 32768;\n                }\n\n                return bias;\n              }\n\n              // Parse a `CFF` INDEX array.\n              // An index array consists of a list of offsets, then a list of objects at those offsets.\n              function parseCFFIndex(data, start, conversionFn) {\n                var offsets = [];\n                var objects = [];\n                var count = parse.getCard16(data, start);\n                var objectOffset;\n                var endOffset;\n                if (count !== 0) {\n                  var offsetSize = parse.getByte(data, start + 2);\n                  objectOffset = start + (count + 1) * offsetSize + 2;\n                  var pos = start + 3;\n                  for (var i = 0; i < count + 1; i += 1) {\n                    offsets.push(parse.getOffset(data, pos, offsetSize));\n                    pos += offsetSize;\n                  }\n\n                  // The total size of the index array is 4 header bytes + the value of the last offset.\n                  endOffset = objectOffset + offsets[count];\n                } else {\n                  endOffset = start + 2;\n                }\n\n                for (var i$1 = 0; i$1 < offsets.length - 1; i$1 += 1) {\n                  var value = parse.getBytes(\n                    data,\n                    objectOffset + offsets[i$1],\n                    objectOffset + offsets[i$1 + 1]\n                  );\n                  if (conversionFn) {\n                    value = conversionFn(value);\n                  }\n\n                  objects.push(value);\n                }\n\n                return { objects: objects, startOffset: start, endOffset: endOffset };\n              }\n\n              // Parse a `CFF` DICT real value.\n              function parseFloatOperand(parser) {\n                var s = '';\n                var eof = 15;\n                var lookup = [\n                  '0',\n                  '1',\n                  '2',\n                  '3',\n                  '4',\n                  '5',\n                  '6',\n                  '7',\n                  '8',\n                  '9',\n                  '.',\n                  'E',\n                  'E-',\n                  null,\n                  '-'\n                ];\n                while (true) {\n                  var b = parser.parseByte();\n                  var n1 = b >> 4;\n                  var n2 = b & 15;\n\n                  if (n1 === eof) {\n                    break;\n                  }\n\n                  s += lookup[n1];\n\n                  if (n2 === eof) {\n                    break;\n                  }\n\n                  s += lookup[n2];\n                }\n\n                return parseFloat(s);\n              }\n\n              // Parse a `CFF` DICT operand.\n              function parseOperand(parser, b0) {\n                var b1;\n                var b2;\n                var b3;\n                var b4;\n                if (b0 === 28) {\n                  b1 = parser.parseByte();\n                  b2 = parser.parseByte();\n                  return (b1 << 8) | b2;\n                }\n\n                if (b0 === 29) {\n                  b1 = parser.parseByte();\n                  b2 = parser.parseByte();\n                  b3 = parser.parseByte();\n                  b4 = parser.parseByte();\n                  return (b1 << 24) | (b2 << 16) | (b3 << 8) | b4;\n                }\n\n                if (b0 === 30) {\n                  return parseFloatOperand(parser);\n                }\n\n                if (b0 >= 32 && b0 <= 246) {\n                  return b0 - 139;\n                }\n\n                if (b0 >= 247 && b0 <= 250) {\n                  b1 = parser.parseByte();\n                  return (b0 - 247) * 256 + b1 + 108;\n                }\n\n                if (b0 >= 251 && b0 <= 254) {\n                  b1 = parser.parseByte();\n                  return -(b0 - 251) * 256 - b1 - 108;\n                }\n\n                throw new Error('Invalid b0 ' + b0);\n              }\n\n              // Convert the entries returned by `parseDict` to a proper dictionary.\n              // If a value is a list of one, it is unpacked.\n              function entriesToObject(entries) {\n                var o = {};\n                for (var i = 0; i < entries.length; i += 1) {\n                  var key = entries[i][0];\n                  var values = entries[i][1];\n                  var value = void 0;\n                  if (values.length === 1) {\n                    value = values[0];\n                  } else {\n                    value = values;\n                  }\n\n                  if (o.hasOwnProperty(key) && !isNaN(o[key])) {\n                    throw new Error('Object ' + o + ' already has key ' + key);\n                  }\n\n                  o[key] = value;\n                }\n\n                return o;\n              }\n\n              // Parse a `CFF` DICT object.\n              // A dictionary contains key-value pairs in a compact tokenized format.\n              function parseCFFDict(data, start, size) {\n                start = start !== undefined ? start : 0;\n                var parser = new parse.Parser(data, start);\n                var entries = [];\n                var operands = [];\n                size = size !== undefined ? size : data.length;\n\n                while (parser.relativeOffset < size) {\n                  var op = parser.parseByte();\n\n                  // The first byte for each dict item distinguishes between operator (key) and operand (value).\n                  // Values <= 21 are operators.\n                  if (op <= 21) {\n                    // Two-byte operators have an initial escape byte of 12.\n                    if (op === 12) {\n                      op = 1200 + parser.parseByte();\n                    }\n\n                    entries.push([op, operands]);\n                    operands = [];\n                  } else {\n                    // Since the operands (values) come before the operators (keys), we store all operands in a list\n                    // until we encounter an operator.\n                    operands.push(parseOperand(parser, op));\n                  }\n                }\n\n                return entriesToObject(entries);\n              }\n\n              // Given a String Index (SID), return the value of the string.\n              // Strings below index 392 are standard CFF strings and are not encoded in the font.\n              function getCFFString(strings, index) {\n                if (index <= 390) {\n                  index = cffStandardStrings[index];\n                } else {\n                  index = strings[index - 391];\n                }\n\n                return index;\n              }\n\n              // Interpret a dictionary and return a new dictionary with readable keys and values for missing entries.\n              // This function takes `meta` which is a list of objects containing `operand`, `name` and `default`.\n              function interpretDict(dict, meta, strings) {\n                var newDict = {};\n                var value;\n\n                // Because we also want to include missing values, we start out from the meta list\n                // and lookup values in the dict.\n                for (var i = 0; i < meta.length; i += 1) {\n                  var m = meta[i];\n\n                  if (Array.isArray(m.type)) {\n                    var values = [];\n                    values.length = m.type.length;\n                    for (var j = 0; j < m.type.length; j++) {\n                      value = dict[m.op] !== undefined ? dict[m.op][j] : undefined;\n                      if (value === undefined) {\n                        value =\n                          m.value !== undefined && m.value[j] !== undefined\n                            ? m.value[j]\n                            : null;\n                      }\n                      if (m.type[j] === 'SID') {\n                        value = getCFFString(strings, value);\n                      }\n                      values[j] = value;\n                    }\n                    newDict[m.name] = values;\n                  } else {\n                    value = dict[m.op];\n                    if (value === undefined) {\n                      value = m.value !== undefined ? m.value : null;\n                    }\n\n                    if (m.type === 'SID') {\n                      value = getCFFString(strings, value);\n                    }\n                    newDict[m.name] = value;\n                  }\n                }\n\n                return newDict;\n              }\n\n              // Parse the CFF header.\n              function parseCFFHeader(data, start) {\n                var header = {};\n                header.formatMajor = parse.getCard8(data, start);\n                header.formatMinor = parse.getCard8(data, start + 1);\n                header.size = parse.getCard8(data, start + 2);\n                header.offsetSize = parse.getCard8(data, start + 3);\n                header.startOffset = start;\n                header.endOffset = start + 4;\n                return header;\n              }\n\n              var TOP_DICT_META = [\n                { name: 'version', op: 0, type: 'SID' },\n                { name: 'notice', op: 1, type: 'SID' },\n                { name: 'copyright', op: 1200, type: 'SID' },\n                { name: 'fullName', op: 2, type: 'SID' },\n                { name: 'familyName', op: 3, type: 'SID' },\n                { name: 'weight', op: 4, type: 'SID' },\n                { name: 'isFixedPitch', op: 1201, type: 'number', value: 0 },\n                { name: 'italicAngle', op: 1202, type: 'number', value: 0 },\n                { name: 'underlinePosition', op: 1203, type: 'number', value: -100 },\n                { name: 'underlineThickness', op: 1204, type: 'number', value: 50 },\n                { name: 'paintType', op: 1205, type: 'number', value: 0 },\n                { name: 'charstringType', op: 1206, type: 'number', value: 2 },\n                {\n                  name: 'fontMatrix',\n                  op: 1207,\n                  type: ['real', 'real', 'real', 'real', 'real', 'real'],\n                  value: [0.001, 0, 0, 0.001, 0, 0]\n                },\n                { name: 'uniqueId', op: 13, type: 'number' },\n                {\n                  name: 'fontBBox',\n                  op: 5,\n                  type: ['number', 'number', 'number', 'number'],\n                  value: [0, 0, 0, 0]\n                },\n                { name: 'strokeWidth', op: 1208, type: 'number', value: 0 },\n                { name: 'xuid', op: 14, type: [], value: null },\n                { name: 'charset', op: 15, type: 'offset', value: 0 },\n                { name: 'encoding', op: 16, type: 'offset', value: 0 },\n                { name: 'charStrings', op: 17, type: 'offset', value: 0 },\n                { name: 'private', op: 18, type: ['number', 'offset'], value: [0, 0] },\n                { name: 'ros', op: 1230, type: ['SID', 'SID', 'number'] },\n                { name: 'cidFontVersion', op: 1231, type: 'number', value: 0 },\n                { name: 'cidFontRevision', op: 1232, type: 'number', value: 0 },\n                { name: 'cidFontType', op: 1233, type: 'number', value: 0 },\n                { name: 'cidCount', op: 1234, type: 'number', value: 8720 },\n                { name: 'uidBase', op: 1235, type: 'number' },\n                { name: 'fdArray', op: 1236, type: 'offset' },\n                { name: 'fdSelect', op: 1237, type: 'offset' },\n                { name: 'fontName', op: 1238, type: 'SID' }\n              ];\n\n              var PRIVATE_DICT_META = [\n                { name: 'subrs', op: 19, type: 'offset', value: 0 },\n                { name: 'defaultWidthX', op: 20, type: 'number', value: 0 },\n                { name: 'nominalWidthX', op: 21, type: 'number', value: 0 }\n              ];\n\n              // Parse the CFF top dictionary. A CFF table can contain multiple fonts, each with their own top dictionary.\n              // The top dictionary contains the essential metadata for the font, together with the private dictionary.\n              function parseCFFTopDict(data, strings) {\n                var dict = parseCFFDict(data, 0, data.byteLength);\n                return interpretDict(dict, TOP_DICT_META, strings);\n              }\n\n              // Parse the CFF private dictionary. We don't fully parse out all the values, only the ones we need.\n              function parseCFFPrivateDict(data, start, size, strings) {\n                var dict = parseCFFDict(data, start, size);\n                return interpretDict(dict, PRIVATE_DICT_META, strings);\n              }\n\n              // Returns a list of \"Top DICT\"s found using an INDEX list.\n              // Used to read both the usual high-level Top DICTs and also the FDArray\n              // discovered inside CID-keyed fonts.  When a Top DICT has a reference to\n              // a Private DICT that is read and saved into the Top DICT.\n              //\n              // In addition to the expected/optional values as outlined in TOP_DICT_META\n              // the following values might be saved into the Top DICT.\n              //\n              //    _subrs []        array of local CFF subroutines from Private DICT\n              //    _subrsBias       bias value computed from number of subroutines\n              //                      (see calcCFFSubroutineBias() and parseCFFCharstring())\n              //    _defaultWidthX   default widths for CFF characters\n              //    _nominalWidthX   bias added to width embedded within glyph description\n              //\n              //    _privateDict     saved copy of parsed Private DICT from Top DICT\n              function gatherCFFTopDicts(data, start, cffIndex, strings) {\n                var topDictArray = [];\n                for (var iTopDict = 0; iTopDict < cffIndex.length; iTopDict += 1) {\n                  var topDictData = new DataView(new Uint8Array(cffIndex[iTopDict]).buffer);\n                  var topDict = parseCFFTopDict(topDictData, strings);\n                  topDict._subrs = [];\n                  topDict._subrsBias = 0;\n                  var privateSize = topDict.private[0];\n                  var privateOffset = topDict.private[1];\n                  if (privateSize !== 0 && privateOffset !== 0) {\n                    var privateDict = parseCFFPrivateDict(\n                      data,\n                      privateOffset + start,\n                      privateSize,\n                      strings\n                    );\n                    topDict._defaultWidthX = privateDict.defaultWidthX;\n                    topDict._nominalWidthX = privateDict.nominalWidthX;\n                    if (privateDict.subrs !== 0) {\n                      var subrOffset = privateOffset + privateDict.subrs;\n                      var subrIndex = parseCFFIndex(data, subrOffset + start);\n                      topDict._subrs = subrIndex.objects;\n                      topDict._subrsBias = calcCFFSubroutineBias(topDict._subrs);\n                    }\n                    topDict._privateDict = privateDict;\n                  }\n                  topDictArray.push(topDict);\n                }\n                return topDictArray;\n              }\n\n              // Parse the CFF charset table, which contains internal names for all the glyphs.\n              // This function will return a list of glyph names.\n              // See Adobe TN #5176 chapter 13, \"Charsets\".\n              function parseCFFCharset(data, start, nGlyphs, strings) {\n                var sid;\n                var count;\n                var parser = new parse.Parser(data, start);\n\n                // The .notdef glyph is not included, so subtract 1.\n                nGlyphs -= 1;\n                var charset = ['.notdef'];\n\n                var format = parser.parseCard8();\n                if (format === 0) {\n                  for (var i = 0; i < nGlyphs; i += 1) {\n                    sid = parser.parseSID();\n                    charset.push(getCFFString(strings, sid));\n                  }\n                } else if (format === 1) {\n                  while (charset.length <= nGlyphs) {\n                    sid = parser.parseSID();\n                    count = parser.parseCard8();\n                    for (var i$1 = 0; i$1 <= count; i$1 += 1) {\n                      charset.push(getCFFString(strings, sid));\n                      sid += 1;\n                    }\n                  }\n                } else if (format === 2) {\n                  while (charset.length <= nGlyphs) {\n                    sid = parser.parseSID();\n                    count = parser.parseCard16();\n                    for (var i$2 = 0; i$2 <= count; i$2 += 1) {\n                      charset.push(getCFFString(strings, sid));\n                      sid += 1;\n                    }\n                  }\n                } else {\n                  throw new Error('Unknown charset format ' + format);\n                }\n\n                return charset;\n              }\n\n              // Parse the CFF encoding data. Only one encoding can be specified per font.\n              // See Adobe TN #5176 chapter 12, \"Encodings\".\n              function parseCFFEncoding(data, start, charset) {\n                var code;\n                var enc = {};\n                var parser = new parse.Parser(data, start);\n                var format = parser.parseCard8();\n                if (format === 0) {\n                  var nCodes = parser.parseCard8();\n                  for (var i = 0; i < nCodes; i += 1) {\n                    code = parser.parseCard8();\n                    enc[code] = i;\n                  }\n                } else if (format === 1) {\n                  var nRanges = parser.parseCard8();\n                  code = 1;\n                  for (var i$1 = 0; i$1 < nRanges; i$1 += 1) {\n                    var first = parser.parseCard8();\n                    var nLeft = parser.parseCard8();\n                    for (var j = first; j <= first + nLeft; j += 1) {\n                      enc[j] = code;\n                      code += 1;\n                    }\n                  }\n                } else {\n                  throw new Error('Unknown encoding format ' + format);\n                }\n\n                return new CffEncoding(enc, charset);\n              }\n\n              // Take in charstring code and return a Glyph object.\n              // The encoding is described in the Type 2 Charstring Format\n              // https://www.microsoft.com/typography/OTSPEC/charstr2.htm\n              function parseCFFCharstring(font, glyph, code) {\n                var c1x;\n                var c1y;\n                var c2x;\n                var c2y;\n                var p = new Path();\n                var stack = [];\n                var nStems = 0;\n                var haveWidth = false;\n                var open = false;\n                var x = 0;\n                var y = 0;\n                var subrs;\n                var subrsBias;\n                var defaultWidthX;\n                var nominalWidthX;\n                if (font.isCIDFont) {\n                  var fdIndex = font.tables.cff.topDict._fdSelect[glyph.index];\n                  var fdDict = font.tables.cff.topDict._fdArray[fdIndex];\n                  subrs = fdDict._subrs;\n                  subrsBias = fdDict._subrsBias;\n                  defaultWidthX = fdDict._defaultWidthX;\n                  nominalWidthX = fdDict._nominalWidthX;\n                } else {\n                  subrs = font.tables.cff.topDict._subrs;\n                  subrsBias = font.tables.cff.topDict._subrsBias;\n                  defaultWidthX = font.tables.cff.topDict._defaultWidthX;\n                  nominalWidthX = font.tables.cff.topDict._nominalWidthX;\n                }\n                var width = defaultWidthX;\n\n                function newContour(x, y) {\n                  if (open) {\n                    p.closePath();\n                  }\n\n                  p.moveTo(x, y);\n                  open = true;\n                }\n\n                function parseStems() {\n                  var hasWidthArg;\n\n                  // The number of stem operators on the stack is always even.\n                  // If the value is uneven, that means a width is specified.\n                  hasWidthArg = stack.length % 2 !== 0;\n                  if (hasWidthArg && !haveWidth) {\n                    width = stack.shift() + nominalWidthX;\n                  }\n\n                  nStems += stack.length >> 1;\n                  stack.length = 0;\n                  haveWidth = true;\n                }\n\n                function parse$$1(code) {\n                  var b1;\n                  var b2;\n                  var b3;\n                  var b4;\n                  var codeIndex;\n                  var subrCode;\n                  var jpx;\n                  var jpy;\n                  var c3x;\n                  var c3y;\n                  var c4x;\n                  var c4y;\n\n                  var i = 0;\n                  while (i < code.length) {\n                    var v = code[i];\n                    i += 1;\n                    switch (v) {\n                      case 1: // hstem\n                        parseStems();\n                        break;\n                      case 3: // vstem\n                        parseStems();\n                        break;\n                      case 4: // vmoveto\n                        if (stack.length > 1 && !haveWidth) {\n                          width = stack.shift() + nominalWidthX;\n                          haveWidth = true;\n                        }\n\n                        y += stack.pop();\n                        newContour(x, y);\n                        break;\n                      case 5: // rlineto\n                        while (stack.length > 0) {\n                          x += stack.shift();\n                          y += stack.shift();\n                          p.lineTo(x, y);\n                        }\n\n                        break;\n                      case 6: // hlineto\n                        while (stack.length > 0) {\n                          x += stack.shift();\n                          p.lineTo(x, y);\n                          if (stack.length === 0) {\n                            break;\n                          }\n\n                          y += stack.shift();\n                          p.lineTo(x, y);\n                        }\n\n                        break;\n                      case 7: // vlineto\n                        while (stack.length > 0) {\n                          y += stack.shift();\n                          p.lineTo(x, y);\n                          if (stack.length === 0) {\n                            break;\n                          }\n\n                          x += stack.shift();\n                          p.lineTo(x, y);\n                        }\n\n                        break;\n                      case 8: // rrcurveto\n                        while (stack.length > 0) {\n                          c1x = x + stack.shift();\n                          c1y = y + stack.shift();\n                          c2x = c1x + stack.shift();\n                          c2y = c1y + stack.shift();\n                          x = c2x + stack.shift();\n                          y = c2y + stack.shift();\n                          p.curveTo(c1x, c1y, c2x, c2y, x, y);\n                        }\n\n                        break;\n                      case 10: // callsubr\n                        codeIndex = stack.pop() + subrsBias;\n                        subrCode = subrs[codeIndex];\n                        if (subrCode) {\n                          parse$$1(subrCode);\n                        }\n\n                        break;\n                      case 11: // return\n                        return;\n                      case 12: // flex operators\n                        v = code[i];\n                        i += 1;\n                        switch (v) {\n                          case 35: // flex\n                            // |- dx1 dy1 dx2 dy2 dx3 dy3 dx4 dy4 dx5 dy5 dx6 dy6 fd flex (12 35) |-\n                            c1x = x + stack.shift(); // dx1\n                            c1y = y + stack.shift(); // dy1\n                            c2x = c1x + stack.shift(); // dx2\n                            c2y = c1y + stack.shift(); // dy2\n                            jpx = c2x + stack.shift(); // dx3\n                            jpy = c2y + stack.shift(); // dy3\n                            c3x = jpx + stack.shift(); // dx4\n                            c3y = jpy + stack.shift(); // dy4\n                            c4x = c3x + stack.shift(); // dx5\n                            c4y = c3y + stack.shift(); // dy5\n                            x = c4x + stack.shift(); // dx6\n                            y = c4y + stack.shift(); // dy6\n                            stack.shift(); // flex depth\n                            p.curveTo(c1x, c1y, c2x, c2y, jpx, jpy);\n                            p.curveTo(c3x, c3y, c4x, c4y, x, y);\n                            break;\n                          case 34: // hflex\n                            // |- dx1 dx2 dy2 dx3 dx4 dx5 dx6 hflex (12 34) |-\n                            c1x = x + stack.shift(); // dx1\n                            c1y = y; // dy1\n                            c2x = c1x + stack.shift(); // dx2\n                            c2y = c1y + stack.shift(); // dy2\n                            jpx = c2x + stack.shift(); // dx3\n                            jpy = c2y; // dy3\n                            c3x = jpx + stack.shift(); // dx4\n                            c3y = c2y; // dy4\n                            c4x = c3x + stack.shift(); // dx5\n                            c4y = y; // dy5\n                            x = c4x + stack.shift(); // dx6\n                            p.curveTo(c1x, c1y, c2x, c2y, jpx, jpy);\n                            p.curveTo(c3x, c3y, c4x, c4y, x, y);\n                            break;\n                          case 36: // hflex1\n                            // |- dx1 dy1 dx2 dy2 dx3 dx4 dx5 dy5 dx6 hflex1 (12 36) |-\n                            c1x = x + stack.shift(); // dx1\n                            c1y = y + stack.shift(); // dy1\n                            c2x = c1x + stack.shift(); // dx2\n                            c2y = c1y + stack.shift(); // dy2\n                            jpx = c2x + stack.shift(); // dx3\n                            jpy = c2y; // dy3\n                            c3x = jpx + stack.shift(); // dx4\n                            c3y = c2y; // dy4\n                            c4x = c3x + stack.shift(); // dx5\n                            c4y = c3y + stack.shift(); // dy5\n                            x = c4x + stack.shift(); // dx6\n                            p.curveTo(c1x, c1y, c2x, c2y, jpx, jpy);\n                            p.curveTo(c3x, c3y, c4x, c4y, x, y);\n                            break;\n                          case 37: // flex1\n                            // |- dx1 dy1 dx2 dy2 dx3 dy3 dx4 dy4 dx5 dy5 d6 flex1 (12 37) |-\n                            c1x = x + stack.shift(); // dx1\n                            c1y = y + stack.shift(); // dy1\n                            c2x = c1x + stack.shift(); // dx2\n                            c2y = c1y + stack.shift(); // dy2\n                            jpx = c2x + stack.shift(); // dx3\n                            jpy = c2y + stack.shift(); // dy3\n                            c3x = jpx + stack.shift(); // dx4\n                            c3y = jpy + stack.shift(); // dy4\n                            c4x = c3x + stack.shift(); // dx5\n                            c4y = c3y + stack.shift(); // dy5\n                            if (Math.abs(c4x - x) > Math.abs(c4y - y)) {\n                              x = c4x + stack.shift();\n                            } else {\n                              y = c4y + stack.shift();\n                            }\n\n                            p.curveTo(c1x, c1y, c2x, c2y, jpx, jpy);\n                            p.curveTo(c3x, c3y, c4x, c4y, x, y);\n                            break;\n                          default:\n                            console.log(\n                              'Glyph ' + glyph.index + ': unknown operator ' + 1200 + v\n                            );\n                            stack.length = 0;\n                        }\n                        break;\n                      case 14: // endchar\n                        if (stack.length > 0 && !haveWidth) {\n                          width = stack.shift() + nominalWidthX;\n                          haveWidth = true;\n                        }\n\n                        if (open) {\n                          p.closePath();\n                          open = false;\n                        }\n\n                        break;\n                      case 18: // hstemhm\n                        parseStems();\n                        break;\n                      case 19: // hintmask\n                      case 20: // cntrmask\n                        parseStems();\n                        i += (nStems + 7) >> 3;\n                        break;\n                      case 21: // rmoveto\n                        if (stack.length > 2 && !haveWidth) {\n                          width = stack.shift() + nominalWidthX;\n                          haveWidth = true;\n                        }\n\n                        y += stack.pop();\n                        x += stack.pop();\n                        newContour(x, y);\n                        break;\n                      case 22: // hmoveto\n                        if (stack.length > 1 && !haveWidth) {\n                          width = stack.shift() + nominalWidthX;\n                          haveWidth = true;\n                        }\n\n                        x += stack.pop();\n                        newContour(x, y);\n                        break;\n                      case 23: // vstemhm\n                        parseStems();\n                        break;\n                      case 24: // rcurveline\n                        while (stack.length > 2) {\n                          c1x = x + stack.shift();\n                          c1y = y + stack.shift();\n                          c2x = c1x + stack.shift();\n                          c2y = c1y + stack.shift();\n                          x = c2x + stack.shift();\n                          y = c2y + stack.shift();\n                          p.curveTo(c1x, c1y, c2x, c2y, x, y);\n                        }\n\n                        x += stack.shift();\n                        y += stack.shift();\n                        p.lineTo(x, y);\n                        break;\n                      case 25: // rlinecurve\n                        while (stack.length > 6) {\n                          x += stack.shift();\n                          y += stack.shift();\n                          p.lineTo(x, y);\n                        }\n\n                        c1x = x + stack.shift();\n                        c1y = y + stack.shift();\n                        c2x = c1x + stack.shift();\n                        c2y = c1y + stack.shift();\n                        x = c2x + stack.shift();\n                        y = c2y + stack.shift();\n                        p.curveTo(c1x, c1y, c2x, c2y, x, y);\n                        break;\n                      case 26: // vvcurveto\n                        if (stack.length % 2) {\n                          x += stack.shift();\n                        }\n\n                        while (stack.length > 0) {\n                          c1x = x;\n                          c1y = y + stack.shift();\n                          c2x = c1x + stack.shift();\n                          c2y = c1y + stack.shift();\n                          x = c2x;\n                          y = c2y + stack.shift();\n                          p.curveTo(c1x, c1y, c2x, c2y, x, y);\n                        }\n\n                        break;\n                      case 27: // hhcurveto\n                        if (stack.length % 2) {\n                          y += stack.shift();\n                        }\n\n                        while (stack.length > 0) {\n                          c1x = x + stack.shift();\n                          c1y = y;\n                          c2x = c1x + stack.shift();\n                          c2y = c1y + stack.shift();\n                          x = c2x + stack.shift();\n                          y = c2y;\n                          p.curveTo(c1x, c1y, c2x, c2y, x, y);\n                        }\n\n                        break;\n                      case 28: // shortint\n                        b1 = code[i];\n                        b2 = code[i + 1];\n                        stack.push(((b1 << 24) | (b2 << 16)) >> 16);\n                        i += 2;\n                        break;\n                      case 29: // callgsubr\n                        codeIndex = stack.pop() + font.gsubrsBias;\n                        subrCode = font.gsubrs[codeIndex];\n                        if (subrCode) {\n                          parse$$1(subrCode);\n                        }\n\n                        break;\n                      case 30: // vhcurveto\n                        while (stack.length > 0) {\n                          c1x = x;\n                          c1y = y + stack.shift();\n                          c2x = c1x + stack.shift();\n                          c2y = c1y + stack.shift();\n                          x = c2x + stack.shift();\n                          y = c2y + (stack.length === 1 ? stack.shift() : 0);\n                          p.curveTo(c1x, c1y, c2x, c2y, x, y);\n                          if (stack.length === 0) {\n                            break;\n                          }\n\n                          c1x = x + stack.shift();\n                          c1y = y;\n                          c2x = c1x + stack.shift();\n                          c2y = c1y + stack.shift();\n                          y = c2y + stack.shift();\n                          x = c2x + (stack.length === 1 ? stack.shift() : 0);\n                          p.curveTo(c1x, c1y, c2x, c2y, x, y);\n                        }\n\n                        break;\n                      case 31: // hvcurveto\n                        while (stack.length > 0) {\n                          c1x = x + stack.shift();\n                          c1y = y;\n                          c2x = c1x + stack.shift();\n                          c2y = c1y + stack.shift();\n                          y = c2y + stack.shift();\n                          x = c2x + (stack.length === 1 ? stack.shift() : 0);\n                          p.curveTo(c1x, c1y, c2x, c2y, x, y);\n                          if (stack.length === 0) {\n                            break;\n                          }\n\n                          c1x = x;\n                          c1y = y + stack.shift();\n                          c2x = c1x + stack.shift();\n                          c2y = c1y + stack.shift();\n                          x = c2x + stack.shift();\n                          y = c2y + (stack.length === 1 ? stack.shift() : 0);\n                          p.curveTo(c1x, c1y, c2x, c2y, x, y);\n                        }\n\n                        break;\n                      default:\n                        if (v < 32) {\n                          console.log('Glyph ' + glyph.index + ': unknown operator ' + v);\n                        } else if (v < 247) {\n                          stack.push(v - 139);\n                        } else if (v < 251) {\n                          b1 = code[i];\n                          i += 1;\n                          stack.push((v - 247) * 256 + b1 + 108);\n                        } else if (v < 255) {\n                          b1 = code[i];\n                          i += 1;\n                          stack.push(-(v - 251) * 256 - b1 - 108);\n                        } else {\n                          b1 = code[i];\n                          b2 = code[i + 1];\n                          b3 = code[i + 2];\n                          b4 = code[i + 3];\n                          i += 4;\n                          stack.push(((b1 << 24) | (b2 << 16) | (b3 << 8) | b4) / 65536);\n                        }\n                    }\n                  }\n                }\n\n                parse$$1(code);\n\n                glyph.advanceWidth = width;\n                return p;\n              }\n\n              function parseCFFFDSelect(data, start, nGlyphs, fdArrayCount) {\n                var fdSelect = [];\n                var fdIndex;\n                var parser = new parse.Parser(data, start);\n                var format = parser.parseCard8();\n                if (format === 0) {\n                  // Simple list of nGlyphs elements\n                  for (var iGid = 0; iGid < nGlyphs; iGid++) {\n                    fdIndex = parser.parseCard8();\n                    if (fdIndex >= fdArrayCount) {\n                      throw new Error(\n                        'CFF table CID Font FDSelect has bad FD index value ' +\n                          fdIndex +\n                          ' (FD count ' +\n                          fdArrayCount +\n                          ')'\n                      );\n                    }\n                    fdSelect.push(fdIndex);\n                  }\n                } else if (format === 3) {\n                  // Ranges\n                  var nRanges = parser.parseCard16();\n                  var first = parser.parseCard16();\n                  if (first !== 0) {\n                    throw new Error(\n                      'CFF Table CID Font FDSelect format 3 range has bad initial GID ' +\n                        first\n                    );\n                  }\n                  var next;\n                  for (var iRange = 0; iRange < nRanges; iRange++) {\n                    fdIndex = parser.parseCard8();\n                    next = parser.parseCard16();\n                    if (fdIndex >= fdArrayCount) {\n                      throw new Error(\n                        'CFF table CID Font FDSelect has bad FD index value ' +\n                          fdIndex +\n                          ' (FD count ' +\n                          fdArrayCount +\n                          ')'\n                      );\n                    }\n                    if (next > nGlyphs) {\n                      throw new Error(\n                        'CFF Table CID Font FDSelect format 3 range has bad GID ' + next\n                      );\n                    }\n                    for (; first < next; first++) {\n                      fdSelect.push(fdIndex);\n                    }\n                    first = next;\n                  }\n                  if (next !== nGlyphs) {\n                    throw new Error(\n                      'CFF Table CID Font FDSelect format 3 range has bad final GID ' + next\n                    );\n                  }\n                } else {\n                  throw new Error(\n                    'CFF Table CID Font FDSelect table has unsupported format ' + format\n                  );\n                }\n                return fdSelect;\n              }\n\n              // Parse the `CFF` table, which contains the glyph outlines in PostScript format.\n              function parseCFFTable(data, start, font) {\n                font.tables.cff = {};\n                var header = parseCFFHeader(data, start);\n                var nameIndex = parseCFFIndex(data, header.endOffset, parse.bytesToString);\n                var topDictIndex = parseCFFIndex(data, nameIndex.endOffset);\n                var stringIndex = parseCFFIndex(\n                  data,\n                  topDictIndex.endOffset,\n                  parse.bytesToString\n                );\n                var globalSubrIndex = parseCFFIndex(data, stringIndex.endOffset);\n                font.gsubrs = globalSubrIndex.objects;\n                font.gsubrsBias = calcCFFSubroutineBias(font.gsubrs);\n\n                var topDictArray = gatherCFFTopDicts(\n                  data,\n                  start,\n                  topDictIndex.objects,\n                  stringIndex.objects\n                );\n                if (topDictArray.length !== 1) {\n                  throw new Error(\n                    \"CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = \" +\n                      topDictArray.length\n                  );\n                }\n\n                var topDict = topDictArray[0];\n                font.tables.cff.topDict = topDict;\n\n                if (topDict._privateDict) {\n                  font.defaultWidthX = topDict._privateDict.defaultWidthX;\n                  font.nominalWidthX = topDict._privateDict.nominalWidthX;\n                }\n\n                if (topDict.ros[0] !== undefined && topDict.ros[1] !== undefined) {\n                  font.isCIDFont = true;\n                }\n\n                if (font.isCIDFont) {\n                  var fdArrayOffset = topDict.fdArray;\n                  var fdSelectOffset = topDict.fdSelect;\n                  if (fdArrayOffset === 0 || fdSelectOffset === 0) {\n                    throw new Error(\n                      'Font is marked as a CID font, but FDArray and/or FDSelect information is missing'\n                    );\n                  }\n                  fdArrayOffset += start;\n                  var fdArrayIndex = parseCFFIndex(data, fdArrayOffset);\n                  var fdArray = gatherCFFTopDicts(\n                    data,\n                    start,\n                    fdArrayIndex.objects,\n                    stringIndex.objects\n                  );\n                  topDict._fdArray = fdArray;\n                  fdSelectOffset += start;\n                  topDict._fdSelect = parseCFFFDSelect(\n                    data,\n                    fdSelectOffset,\n                    font.numGlyphs,\n                    fdArray.length\n                  );\n                }\n\n                var privateDictOffset = start + topDict.private[1];\n                var privateDict = parseCFFPrivateDict(\n                  data,\n                  privateDictOffset,\n                  topDict.private[0],\n                  stringIndex.objects\n                );\n                font.defaultWidthX = privateDict.defaultWidthX;\n                font.nominalWidthX = privateDict.nominalWidthX;\n\n                if (privateDict.subrs !== 0) {\n                  var subrOffset = privateDictOffset + privateDict.subrs;\n                  var subrIndex = parseCFFIndex(data, subrOffset);\n                  font.subrs = subrIndex.objects;\n                  font.subrsBias = calcCFFSubroutineBias(font.subrs);\n                } else {\n                  font.subrs = [];\n                  font.subrsBias = 0;\n                }\n\n                // Offsets in the top dict are relative to the beginning of the CFF data, so add the CFF start offset.\n                var charStringsIndex = parseCFFIndex(data, start + topDict.charStrings);\n                font.nGlyphs = charStringsIndex.objects.length;\n\n                var charset = parseCFFCharset(\n                  data,\n                  start + topDict.charset,\n                  font.nGlyphs,\n                  stringIndex.objects\n                );\n                if (topDict.encoding === 0) {\n                  // Standard encoding\n                  font.cffEncoding = new CffEncoding(cffStandardEncoding, charset);\n                } else if (topDict.encoding === 1) {\n                  // Expert encoding\n                  font.cffEncoding = new CffEncoding(cffExpertEncoding, charset);\n                } else {\n                  font.cffEncoding = parseCFFEncoding(\n                    data,\n                    start + topDict.encoding,\n                    charset\n                  );\n                }\n\n                // Prefer the CMAP encoding to the CFF encoding.\n                font.encoding = font.encoding || font.cffEncoding;\n\n                font.glyphs = new glyphset.GlyphSet(font);\n                for (var i = 0; i < font.nGlyphs; i += 1) {\n                  var charString = charStringsIndex.objects[i];\n                  font.glyphs.push(\n                    i,\n                    glyphset.cffGlyphLoader(font, i, parseCFFCharstring, charString)\n                  );\n                }\n              }\n\n              // Convert a string to a String ID (SID).\n              // The list of strings is modified in place.\n              function encodeString(s, strings) {\n                var sid;\n\n                // Is the string in the CFF standard strings?\n                var i = cffStandardStrings.indexOf(s);\n                if (i >= 0) {\n                  sid = i;\n                }\n\n                // Is the string already in the string index?\n                i = strings.indexOf(s);\n                if (i >= 0) {\n                  sid = i + cffStandardStrings.length;\n                } else {\n                  sid = cffStandardStrings.length + strings.length;\n                  strings.push(s);\n                }\n\n                return sid;\n              }\n\n              function makeHeader() {\n                return new table.Record('Header', [\n                  { name: 'major', type: 'Card8', value: 1 },\n                  { name: 'minor', type: 'Card8', value: 0 },\n                  { name: 'hdrSize', type: 'Card8', value: 4 },\n                  { name: 'major', type: 'Card8', value: 1 }\n                ]);\n              }\n\n              function makeNameIndex(fontNames) {\n                var t = new table.Record('Name INDEX', [\n                  { name: 'names', type: 'INDEX', value: [] }\n                ]);\n                t.names = [];\n                for (var i = 0; i < fontNames.length; i += 1) {\n                  t.names.push({ name: 'name_' + i, type: 'NAME', value: fontNames[i] });\n                }\n\n                return t;\n              }\n\n              // Given a dictionary's metadata, create a DICT structure.\n              function makeDict(meta, attrs, strings) {\n                var m = {};\n                for (var i = 0; i < meta.length; i += 1) {\n                  var entry = meta[i];\n                  var value = attrs[entry.name];\n                  if (value !== undefined && !equals(value, entry.value)) {\n                    if (entry.type === 'SID') {\n                      value = encodeString(value, strings);\n                    }\n\n                    m[entry.op] = { name: entry.name, type: entry.type, value: value };\n                  }\n                }\n\n                return m;\n              }\n\n              // The Top DICT houses the global font attributes.\n              function makeTopDict(attrs, strings) {\n                var t = new table.Record('Top DICT', [\n                  { name: 'dict', type: 'DICT', value: {} }\n                ]);\n                t.dict = makeDict(TOP_DICT_META, attrs, strings);\n                return t;\n              }\n\n              function makeTopDictIndex(topDict) {\n                var t = new table.Record('Top DICT INDEX', [\n                  { name: 'topDicts', type: 'INDEX', value: [] }\n                ]);\n                t.topDicts = [{ name: 'topDict_0', type: 'TABLE', value: topDict }];\n                return t;\n              }\n\n              function makeStringIndex(strings) {\n                var t = new table.Record('String INDEX', [\n                  { name: 'strings', type: 'INDEX', value: [] }\n                ]);\n                t.strings = [];\n                for (var i = 0; i < strings.length; i += 1) {\n                  t.strings.push({\n                    name: 'string_' + i,\n                    type: 'STRING',\n                    value: strings[i]\n                  });\n                }\n\n                return t;\n              }\n\n              function makeGlobalSubrIndex() {\n                // Currently we don't use subroutines.\n                return new table.Record('Global Subr INDEX', [\n                  { name: 'subrs', type: 'INDEX', value: [] }\n                ]);\n              }\n\n              function makeCharsets(glyphNames, strings) {\n                var t = new table.Record('Charsets', [\n                  { name: 'format', type: 'Card8', value: 0 }\n                ]);\n                for (var i = 0; i < glyphNames.length; i += 1) {\n                  var glyphName = glyphNames[i];\n                  var glyphSID = encodeString(glyphName, strings);\n                  t.fields.push({ name: 'glyph_' + i, type: 'SID', value: glyphSID });\n                }\n\n                return t;\n              }\n\n              function glyphToOps(glyph) {\n                var ops = [];\n                var path = glyph.path;\n                ops.push({ name: 'width', type: 'NUMBER', value: glyph.advanceWidth });\n                var x = 0;\n                var y = 0;\n                for (var i = 0; i < path.commands.length; i += 1) {\n                  var dx = void 0;\n                  var dy = void 0;\n                  var cmd = path.commands[i];\n                  if (cmd.type === 'Q') {\n                    // CFF only supports bézier curves, so convert the quad to a bézier.\n                    var _13 = 1 / 3;\n                    var _23 = 2 / 3;\n\n                    // We're going to create a new command so we don't change the original path.\n                    cmd = {\n                      type: 'C',\n                      x: cmd.x,\n                      y: cmd.y,\n                      x1: _13 * x + _23 * cmd.x1,\n                      y1: _13 * y + _23 * cmd.y1,\n                      x2: _13 * cmd.x + _23 * cmd.x1,\n                      y2: _13 * cmd.y + _23 * cmd.y1\n                    };\n                  }\n\n                  if (cmd.type === 'M') {\n                    dx = Math.round(cmd.x - x);\n                    dy = Math.round(cmd.y - y);\n                    ops.push({ name: 'dx', type: 'NUMBER', value: dx });\n                    ops.push({ name: 'dy', type: 'NUMBER', value: dy });\n                    ops.push({ name: 'rmoveto', type: 'OP', value: 21 });\n                    x = Math.round(cmd.x);\n                    y = Math.round(cmd.y);\n                  } else if (cmd.type === 'L') {\n                    dx = Math.round(cmd.x - x);\n                    dy = Math.round(cmd.y - y);\n                    ops.push({ name: 'dx', type: 'NUMBER', value: dx });\n                    ops.push({ name: 'dy', type: 'NUMBER', value: dy });\n                    ops.push({ name: 'rlineto', type: 'OP', value: 5 });\n                    x = Math.round(cmd.x);\n                    y = Math.round(cmd.y);\n                  } else if (cmd.type === 'C') {\n                    var dx1 = Math.round(cmd.x1 - x);\n                    var dy1 = Math.round(cmd.y1 - y);\n                    var dx2 = Math.round(cmd.x2 - cmd.x1);\n                    var dy2 = Math.round(cmd.y2 - cmd.y1);\n                    dx = Math.round(cmd.x - cmd.x2);\n                    dy = Math.round(cmd.y - cmd.y2);\n                    ops.push({ name: 'dx1', type: 'NUMBER', value: dx1 });\n                    ops.push({ name: 'dy1', type: 'NUMBER', value: dy1 });\n                    ops.push({ name: 'dx2', type: 'NUMBER', value: dx2 });\n                    ops.push({ name: 'dy2', type: 'NUMBER', value: dy2 });\n                    ops.push({ name: 'dx', type: 'NUMBER', value: dx });\n                    ops.push({ name: 'dy', type: 'NUMBER', value: dy });\n                    ops.push({ name: 'rrcurveto', type: 'OP', value: 8 });\n                    x = Math.round(cmd.x);\n                    y = Math.round(cmd.y);\n                  }\n\n                  // Contours are closed automatically.\n                }\n\n                ops.push({ name: 'endchar', type: 'OP', value: 14 });\n                return ops;\n              }\n\n              function makeCharStringsIndex(glyphs) {\n                var t = new table.Record('CharStrings INDEX', [\n                  { name: 'charStrings', type: 'INDEX', value: [] }\n                ]);\n\n                for (var i = 0; i < glyphs.length; i += 1) {\n                  var glyph = glyphs.get(i);\n                  var ops = glyphToOps(glyph);\n                  t.charStrings.push({ name: glyph.name, type: 'CHARSTRING', value: ops });\n                }\n\n                return t;\n              }\n\n              function makePrivateDict(attrs, strings) {\n                var t = new table.Record('Private DICT', [\n                  { name: 'dict', type: 'DICT', value: {} }\n                ]);\n                t.dict = makeDict(PRIVATE_DICT_META, attrs, strings);\n                return t;\n              }\n\n              function makeCFFTable(glyphs, options) {\n                var t = new table.Table('CFF ', [\n                  { name: 'header', type: 'RECORD' },\n                  { name: 'nameIndex', type: 'RECORD' },\n                  { name: 'topDictIndex', type: 'RECORD' },\n                  { name: 'stringIndex', type: 'RECORD' },\n                  { name: 'globalSubrIndex', type: 'RECORD' },\n                  { name: 'charsets', type: 'RECORD' },\n                  { name: 'charStringsIndex', type: 'RECORD' },\n                  { name: 'privateDict', type: 'RECORD' }\n                ]);\n\n                var fontScale = 1 / options.unitsPerEm;\n                // We use non-zero values for the offsets so that the DICT encodes them.\n                // This is important because the size of the Top DICT plays a role in offset calculation,\n                // and the size shouldn't change after we've written correct offsets.\n                var attrs = {\n                  version: options.version,\n                  fullName: options.fullName,\n                  familyName: options.familyName,\n                  weight: options.weightName,\n                  fontBBox: options.fontBBox || [0, 0, 0, 0],\n                  fontMatrix: [fontScale, 0, 0, fontScale, 0, 0],\n                  charset: 999,\n                  encoding: 0,\n                  charStrings: 999,\n                  private: [0, 999]\n                };\n\n                var privateAttrs = {};\n\n                var glyphNames = [];\n                var glyph;\n\n                // Skip first glyph (.notdef)\n                for (var i = 1; i < glyphs.length; i += 1) {\n                  glyph = glyphs.get(i);\n                  glyphNames.push(glyph.name);\n                }\n\n                var strings = [];\n\n                t.header = makeHeader();\n                t.nameIndex = makeNameIndex([options.postScriptName]);\n                var topDict = makeTopDict(attrs, strings);\n                t.topDictIndex = makeTopDictIndex(topDict);\n                t.globalSubrIndex = makeGlobalSubrIndex();\n                t.charsets = makeCharsets(glyphNames, strings);\n                t.charStringsIndex = makeCharStringsIndex(glyphs);\n                t.privateDict = makePrivateDict(privateAttrs, strings);\n\n                // Needs to come at the end, to encode all custom strings used in the font.\n                t.stringIndex = makeStringIndex(strings);\n\n                var startOffset =\n                  t.header.sizeOf() +\n                  t.nameIndex.sizeOf() +\n                  t.topDictIndex.sizeOf() +\n                  t.stringIndex.sizeOf() +\n                  t.globalSubrIndex.sizeOf();\n                attrs.charset = startOffset;\n\n                // We use the CFF standard encoding; proper encoding will be handled in cmap.\n                attrs.encoding = 0;\n                attrs.charStrings = attrs.charset + t.charsets.sizeOf();\n                attrs.private[1] = attrs.charStrings + t.charStringsIndex.sizeOf();\n\n                // Recreate the Top DICT INDEX with the correct offsets.\n                topDict = makeTopDict(attrs, strings);\n                t.topDictIndex = makeTopDictIndex(topDict);\n\n                return t;\n              }\n\n              var cff = { parse: parseCFFTable, make: makeCFFTable };\n\n              // The `head` table contains global information about the font.\n\n              // Parse the header `head` table\n              function parseHeadTable(data, start) {\n                var head = {};\n                var p = new parse.Parser(data, start);\n                head.version = p.parseVersion();\n                head.fontRevision = Math.round(p.parseFixed() * 1000) / 1000;\n                head.checkSumAdjustment = p.parseULong();\n                head.magicNumber = p.parseULong();\n                check.argument(\n                  head.magicNumber === 0x5f0f3cf5,\n                  'Font header has wrong magic number.'\n                );\n                head.flags = p.parseUShort();\n                head.unitsPerEm = p.parseUShort();\n                head.created = p.parseLongDateTime();\n                head.modified = p.parseLongDateTime();\n                head.xMin = p.parseShort();\n                head.yMin = p.parseShort();\n                head.xMax = p.parseShort();\n                head.yMax = p.parseShort();\n                head.macStyle = p.parseUShort();\n                head.lowestRecPPEM = p.parseUShort();\n                head.fontDirectionHint = p.parseShort();\n                head.indexToLocFormat = p.parseShort();\n                head.glyphDataFormat = p.parseShort();\n                return head;\n              }\n\n              function makeHeadTable(options) {\n                // Apple Mac timestamp epoch is 01/01/1904 not 01/01/1970\n                var timestamp = Math.round(new Date().getTime() / 1000) + 2082844800;\n                var createdTimestamp = timestamp;\n\n                if (options.createdTimestamp) {\n                  createdTimestamp = options.createdTimestamp + 2082844800;\n                }\n\n                return new table.Table(\n                  'head',\n                  [\n                    { name: 'version', type: 'FIXED', value: 0x00010000 },\n                    { name: 'fontRevision', type: 'FIXED', value: 0x00010000 },\n                    { name: 'checkSumAdjustment', type: 'ULONG', value: 0 },\n                    { name: 'magicNumber', type: 'ULONG', value: 0x5f0f3cf5 },\n                    { name: 'flags', type: 'USHORT', value: 0 },\n                    { name: 'unitsPerEm', type: 'USHORT', value: 1000 },\n                    { name: 'created', type: 'LONGDATETIME', value: createdTimestamp },\n                    { name: 'modified', type: 'LONGDATETIME', value: timestamp },\n                    { name: 'xMin', type: 'SHORT', value: 0 },\n                    { name: 'yMin', type: 'SHORT', value: 0 },\n                    { name: 'xMax', type: 'SHORT', value: 0 },\n                    { name: 'yMax', type: 'SHORT', value: 0 },\n                    { name: 'macStyle', type: 'USHORT', value: 0 },\n                    { name: 'lowestRecPPEM', type: 'USHORT', value: 0 },\n                    { name: 'fontDirectionHint', type: 'SHORT', value: 2 },\n                    { name: 'indexToLocFormat', type: 'SHORT', value: 0 },\n                    { name: 'glyphDataFormat', type: 'SHORT', value: 0 }\n                  ],\n                  options\n                );\n              }\n\n              var head = { parse: parseHeadTable, make: makeHeadTable };\n\n              // The `hhea` table contains information for horizontal layout.\n\n              // Parse the horizontal header `hhea` table\n              function parseHheaTable(data, start) {\n                var hhea = {};\n                var p = new parse.Parser(data, start);\n                hhea.version = p.parseVersion();\n                hhea.ascender = p.parseShort();\n                hhea.descender = p.parseShort();\n                hhea.lineGap = p.parseShort();\n                hhea.advanceWidthMax = p.parseUShort();\n                hhea.minLeftSideBearing = p.parseShort();\n                hhea.minRightSideBearing = p.parseShort();\n                hhea.xMaxExtent = p.parseShort();\n                hhea.caretSlopeRise = p.parseShort();\n                hhea.caretSlopeRun = p.parseShort();\n                hhea.caretOffset = p.parseShort();\n                p.relativeOffset += 8;\n                hhea.metricDataFormat = p.parseShort();\n                hhea.numberOfHMetrics = p.parseUShort();\n                return hhea;\n              }\n\n              function makeHheaTable(options) {\n                return new table.Table(\n                  'hhea',\n                  [\n                    { name: 'version', type: 'FIXED', value: 0x00010000 },\n                    { name: 'ascender', type: 'FWORD', value: 0 },\n                    { name: 'descender', type: 'FWORD', value: 0 },\n                    { name: 'lineGap', type: 'FWORD', value: 0 },\n                    { name: 'advanceWidthMax', type: 'UFWORD', value: 0 },\n                    { name: 'minLeftSideBearing', type: 'FWORD', value: 0 },\n                    { name: 'minRightSideBearing', type: 'FWORD', value: 0 },\n                    { name: 'xMaxExtent', type: 'FWORD', value: 0 },\n                    { name: 'caretSlopeRise', type: 'SHORT', value: 1 },\n                    { name: 'caretSlopeRun', type: 'SHORT', value: 0 },\n                    { name: 'caretOffset', type: 'SHORT', value: 0 },\n                    { name: 'reserved1', type: 'SHORT', value: 0 },\n                    { name: 'reserved2', type: 'SHORT', value: 0 },\n                    { name: 'reserved3', type: 'SHORT', value: 0 },\n                    { name: 'reserved4', type: 'SHORT', value: 0 },\n                    { name: 'metricDataFormat', type: 'SHORT', value: 0 },\n                    { name: 'numberOfHMetrics', type: 'USHORT', value: 0 }\n                  ],\n                  options\n                );\n              }\n\n              var hhea = { parse: parseHheaTable, make: makeHheaTable };\n\n              // The `hmtx` table contains the horizontal metrics for all glyphs.\n\n              // Parse the `hmtx` table, which contains the horizontal metrics for all glyphs.\n              // This function augments the glyph array, adding the advanceWidth and leftSideBearing to each glyph.\n              function parseHmtxTable(data, start, numMetrics, numGlyphs, glyphs) {\n                var advanceWidth;\n                var leftSideBearing;\n                var p = new parse.Parser(data, start);\n                for (var i = 0; i < numGlyphs; i += 1) {\n                  // If the font is monospaced, only one entry is needed. This last entry applies to all subsequent glyphs.\n                  if (i < numMetrics) {\n                    advanceWidth = p.parseUShort();\n                    leftSideBearing = p.parseShort();\n                  }\n\n                  var glyph = glyphs.get(i);\n                  glyph.advanceWidth = advanceWidth;\n                  glyph.leftSideBearing = leftSideBearing;\n                }\n              }\n\n              function makeHmtxTable(glyphs) {\n                var t = new table.Table('hmtx', []);\n                for (var i = 0; i < glyphs.length; i += 1) {\n                  var glyph = glyphs.get(i);\n                  var advanceWidth = glyph.advanceWidth || 0;\n                  var leftSideBearing = glyph.leftSideBearing || 0;\n                  t.fields.push({\n                    name: 'advanceWidth_' + i,\n                    type: 'USHORT',\n                    value: advanceWidth\n                  });\n                  t.fields.push({\n                    name: 'leftSideBearing_' + i,\n                    type: 'SHORT',\n                    value: leftSideBearing\n                  });\n                }\n\n                return t;\n              }\n\n              var hmtx = { parse: parseHmtxTable, make: makeHmtxTable };\n\n              // The `ltag` table stores IETF BCP-47 language tags. It allows supporting\n\n              function makeLtagTable(tags) {\n                var result = new table.Table('ltag', [\n                  { name: 'version', type: 'ULONG', value: 1 },\n                  { name: 'flags', type: 'ULONG', value: 0 },\n                  { name: 'numTags', type: 'ULONG', value: tags.length }\n                ]);\n\n                var stringPool = '';\n                var stringPoolOffset = 12 + tags.length * 4;\n                for (var i = 0; i < tags.length; ++i) {\n                  var pos = stringPool.indexOf(tags[i]);\n                  if (pos < 0) {\n                    pos = stringPool.length;\n                    stringPool += tags[i];\n                  }\n\n                  result.fields.push({\n                    name: 'offset ' + i,\n                    type: 'USHORT',\n                    value: stringPoolOffset + pos\n                  });\n                  result.fields.push({\n                    name: 'length ' + i,\n                    type: 'USHORT',\n                    value: tags[i].length\n                  });\n                }\n\n                result.fields.push({\n                  name: 'stringPool',\n                  type: 'CHARARRAY',\n                  value: stringPool\n                });\n                return result;\n              }\n\n              function parseLtagTable(data, start) {\n                var p = new parse.Parser(data, start);\n                var tableVersion = p.parseULong();\n                check.argument(tableVersion === 1, 'Unsupported ltag table version.');\n                // The 'ltag' specification does not define any flags; skip the field.\n                p.skip('uLong', 1);\n                var numTags = p.parseULong();\n\n                var tags = [];\n                for (var i = 0; i < numTags; i++) {\n                  var tag = '';\n                  var offset = start + p.parseUShort();\n                  var length = p.parseUShort();\n                  for (var j = offset; j < offset + length; ++j) {\n                    tag += String.fromCharCode(data.getInt8(j));\n                  }\n\n                  tags.push(tag);\n                }\n\n                return tags;\n              }\n\n              var ltag = { make: makeLtagTable, parse: parseLtagTable };\n\n              // The `maxp` table establishes the memory requirements for the font.\n\n              // Parse the maximum profile `maxp` table.\n              function parseMaxpTable(data, start) {\n                var maxp = {};\n                var p = new parse.Parser(data, start);\n                maxp.version = p.parseVersion();\n                maxp.numGlyphs = p.parseUShort();\n                if (maxp.version === 1.0) {\n                  maxp.maxPoints = p.parseUShort();\n                  maxp.maxContours = p.parseUShort();\n                  maxp.maxCompositePoints = p.parseUShort();\n                  maxp.maxCompositeContours = p.parseUShort();\n                  maxp.maxZones = p.parseUShort();\n                  maxp.maxTwilightPoints = p.parseUShort();\n                  maxp.maxStorage = p.parseUShort();\n                  maxp.maxFunctionDefs = p.parseUShort();\n                  maxp.maxInstructionDefs = p.parseUShort();\n                  maxp.maxStackElements = p.parseUShort();\n                  maxp.maxSizeOfInstructions = p.parseUShort();\n                  maxp.maxComponentElements = p.parseUShort();\n                  maxp.maxComponentDepth = p.parseUShort();\n                }\n\n                return maxp;\n              }\n\n              function makeMaxpTable(numGlyphs) {\n                return new table.Table('maxp', [\n                  { name: 'version', type: 'FIXED', value: 0x00005000 },\n                  { name: 'numGlyphs', type: 'USHORT', value: numGlyphs }\n                ]);\n              }\n\n              var maxp = { parse: parseMaxpTable, make: makeMaxpTable };\n\n              // The `name` naming table.\n\n              // NameIDs for the name table.\n              var nameTableNames = [\n                'copyright', // 0\n                'fontFamily', // 1\n                'fontSubfamily', // 2\n                'uniqueID', // 3\n                'fullName', // 4\n                'version', // 5\n                'postScriptName', // 6\n                'trademark', // 7\n                'manufacturer', // 8\n                'designer', // 9\n                'description', // 10\n                'manufacturerURL', // 11\n                'designerURL', // 12\n                'license', // 13\n                'licenseURL', // 14\n                'reserved', // 15\n                'preferredFamily', // 16\n                'preferredSubfamily', // 17\n                'compatibleFullName', // 18\n                'sampleText', // 19\n                'postScriptFindFontName', // 20\n                'wwsFamily', // 21\n                'wwsSubfamily' // 22\n              ];\n\n              var macLanguages = {\n                0: 'en',\n                1: 'fr',\n                2: 'de',\n                3: 'it',\n                4: 'nl',\n                5: 'sv',\n                6: 'es',\n                7: 'da',\n                8: 'pt',\n                9: 'no',\n                10: 'he',\n                11: 'ja',\n                12: 'ar',\n                13: 'fi',\n                14: 'el',\n                15: 'is',\n                16: 'mt',\n                17: 'tr',\n                18: 'hr',\n                19: 'zh-Hant',\n                20: 'ur',\n                21: 'hi',\n                22: 'th',\n                23: 'ko',\n                24: 'lt',\n                25: 'pl',\n                26: 'hu',\n                27: 'es',\n                28: 'lv',\n                29: 'se',\n                30: 'fo',\n                31: 'fa',\n                32: 'ru',\n                33: 'zh',\n                34: 'nl-BE',\n                35: 'ga',\n                36: 'sq',\n                37: 'ro',\n                38: 'cz',\n                39: 'sk',\n                40: 'si',\n                41: 'yi',\n                42: 'sr',\n                43: 'mk',\n                44: 'bg',\n                45: 'uk',\n                46: 'be',\n                47: 'uz',\n                48: 'kk',\n                49: 'az-Cyrl',\n                50: 'az-Arab',\n                51: 'hy',\n                52: 'ka',\n                53: 'mo',\n                54: 'ky',\n                55: 'tg',\n                56: 'tk',\n                57: 'mn-CN',\n                58: 'mn',\n                59: 'ps',\n                60: 'ks',\n                61: 'ku',\n                62: 'sd',\n                63: 'bo',\n                64: 'ne',\n                65: 'sa',\n                66: 'mr',\n                67: 'bn',\n                68: 'as',\n                69: 'gu',\n                70: 'pa',\n                71: 'or',\n                72: 'ml',\n                73: 'kn',\n                74: 'ta',\n                75: 'te',\n                76: 'si',\n                77: 'my',\n                78: 'km',\n                79: 'lo',\n                80: 'vi',\n                81: 'id',\n                82: 'tl',\n                83: 'ms',\n                84: 'ms-Arab',\n                85: 'am',\n                86: 'ti',\n                87: 'om',\n                88: 'so',\n                89: 'sw',\n                90: 'rw',\n                91: 'rn',\n                92: 'ny',\n                93: 'mg',\n                94: 'eo',\n                128: 'cy',\n                129: 'eu',\n                130: 'ca',\n                131: 'la',\n                132: 'qu',\n                133: 'gn',\n                134: 'ay',\n                135: 'tt',\n                136: 'ug',\n                137: 'dz',\n                138: 'jv',\n                139: 'su',\n                140: 'gl',\n                141: 'af',\n                142: 'br',\n                143: 'iu',\n                144: 'gd',\n                145: 'gv',\n                146: 'ga',\n                147: 'to',\n                148: 'el-polyton',\n                149: 'kl',\n                150: 'az',\n                151: 'nn'\n              };\n\n              // MacOS language ID → MacOS script ID\n              //\n              // Note that the script ID is not sufficient to determine what encoding\n              // to use in TrueType files. For some languages, MacOS used a modification\n              // of a mainstream script. For example, an Icelandic name would be stored\n              // with smRoman in the TrueType naming table, but the actual encoding\n              // is a special Icelandic version of the normal Macintosh Roman encoding.\n              // As another example, Inuktitut uses an 8-bit encoding for Canadian Aboriginal\n              // Syllables but MacOS had run out of available script codes, so this was\n              // done as a (pretty radical) \"modification\" of Ethiopic.\n              //\n              // http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/Readme.txt\n              var macLanguageToScript = {\n                0: 0, // langEnglish → smRoman\n                1: 0, // langFrench → smRoman\n                2: 0, // langGerman → smRoman\n                3: 0, // langItalian → smRoman\n                4: 0, // langDutch → smRoman\n                5: 0, // langSwedish → smRoman\n                6: 0, // langSpanish → smRoman\n                7: 0, // langDanish → smRoman\n                8: 0, // langPortuguese → smRoman\n                9: 0, // langNorwegian → smRoman\n                10: 5, // langHebrew → smHebrew\n                11: 1, // langJapanese → smJapanese\n                12: 4, // langArabic → smArabic\n                13: 0, // langFinnish → smRoman\n                14: 6, // langGreek → smGreek\n                15: 0, // langIcelandic → smRoman (modified)\n                16: 0, // langMaltese → smRoman\n                17: 0, // langTurkish → smRoman (modified)\n                18: 0, // langCroatian → smRoman (modified)\n                19: 2, // langTradChinese → smTradChinese\n                20: 4, // langUrdu → smArabic\n                21: 9, // langHindi → smDevanagari\n                22: 21, // langThai → smThai\n                23: 3, // langKorean → smKorean\n                24: 29, // langLithuanian → smCentralEuroRoman\n                25: 29, // langPolish → smCentralEuroRoman\n                26: 29, // langHungarian → smCentralEuroRoman\n                27: 29, // langEstonian → smCentralEuroRoman\n                28: 29, // langLatvian → smCentralEuroRoman\n                29: 0, // langSami → smRoman\n                30: 0, // langFaroese → smRoman (modified)\n                31: 4, // langFarsi → smArabic (modified)\n                32: 7, // langRussian → smCyrillic\n                33: 25, // langSimpChinese → smSimpChinese\n                34: 0, // langFlemish → smRoman\n                35: 0, // langIrishGaelic → smRoman (modified)\n                36: 0, // langAlbanian → smRoman\n                37: 0, // langRomanian → smRoman (modified)\n                38: 29, // langCzech → smCentralEuroRoman\n                39: 29, // langSlovak → smCentralEuroRoman\n                40: 0, // langSlovenian → smRoman (modified)\n                41: 5, // langYiddish → smHebrew\n                42: 7, // langSerbian → smCyrillic\n                43: 7, // langMacedonian → smCyrillic\n                44: 7, // langBulgarian → smCyrillic\n                45: 7, // langUkrainian → smCyrillic (modified)\n                46: 7, // langByelorussian → smCyrillic\n                47: 7, // langUzbek → smCyrillic\n                48: 7, // langKazakh → smCyrillic\n                49: 7, // langAzerbaijani → smCyrillic\n                50: 4, // langAzerbaijanAr → smArabic\n                51: 24, // langArmenian → smArmenian\n                52: 23, // langGeorgian → smGeorgian\n                53: 7, // langMoldavian → smCyrillic\n                54: 7, // langKirghiz → smCyrillic\n                55: 7, // langTajiki → smCyrillic\n                56: 7, // langTurkmen → smCyrillic\n                57: 27, // langMongolian → smMongolian\n                58: 7, // langMongolianCyr → smCyrillic\n                59: 4, // langPashto → smArabic\n                60: 4, // langKurdish → smArabic\n                61: 4, // langKashmiri → smArabic\n                62: 4, // langSindhi → smArabic\n                63: 26, // langTibetan → smTibetan\n                64: 9, // langNepali → smDevanagari\n                65: 9, // langSanskrit → smDevanagari\n                66: 9, // langMarathi → smDevanagari\n                67: 13, // langBengali → smBengali\n                68: 13, // langAssamese → smBengali\n                69: 11, // langGujarati → smGujarati\n                70: 10, // langPunjabi → smGurmukhi\n                71: 12, // langOriya → smOriya\n                72: 17, // langMalayalam → smMalayalam\n                73: 16, // langKannada → smKannada\n                74: 14, // langTamil → smTamil\n                75: 15, // langTelugu → smTelugu\n                76: 18, // langSinhalese → smSinhalese\n                77: 19, // langBurmese → smBurmese\n                78: 20, // langKhmer → smKhmer\n                79: 22, // langLao → smLao\n                80: 30, // langVietnamese → smVietnamese\n                81: 0, // langIndonesian → smRoman\n                82: 0, // langTagalog → smRoman\n                83: 0, // langMalayRoman → smRoman\n                84: 4, // langMalayArabic → smArabic\n                85: 28, // langAmharic → smEthiopic\n                86: 28, // langTigrinya → smEthiopic\n                87: 28, // langOromo → smEthiopic\n                88: 0, // langSomali → smRoman\n                89: 0, // langSwahili → smRoman\n                90: 0, // langKinyarwanda → smRoman\n                91: 0, // langRundi → smRoman\n                92: 0, // langNyanja → smRoman\n                93: 0, // langMalagasy → smRoman\n                94: 0, // langEsperanto → smRoman\n                128: 0, // langWelsh → smRoman (modified)\n                129: 0, // langBasque → smRoman\n                130: 0, // langCatalan → smRoman\n                131: 0, // langLatin → smRoman\n                132: 0, // langQuechua → smRoman\n                133: 0, // langGuarani → smRoman\n                134: 0, // langAymara → smRoman\n                135: 7, // langTatar → smCyrillic\n                136: 4, // langUighur → smArabic\n                137: 26, // langDzongkha → smTibetan\n                138: 0, // langJavaneseRom → smRoman\n                139: 0, // langSundaneseRom → smRoman\n                140: 0, // langGalician → smRoman\n                141: 0, // langAfrikaans → smRoman\n                142: 0, // langBreton → smRoman (modified)\n                143: 28, // langInuktitut → smEthiopic (modified)\n                144: 0, // langScottishGaelic → smRoman (modified)\n                145: 0, // langManxGaelic → smRoman (modified)\n                146: 0, // langIrishGaelicScript → smRoman (modified)\n                147: 0, // langTongan → smRoman\n                148: 6, // langGreekAncient → smRoman\n                149: 0, // langGreenlandic → smRoman\n                150: 0, // langAzerbaijanRoman → smRoman\n                151: 0 // langNynorsk → smRoman\n              };\n\n              // While Microsoft indicates a region/country for all its language\n              // IDs, we omit the region code if it's equal to the \"most likely\n              // region subtag\" according to Unicode CLDR. For scripts, we omit\n              // the subtag if it is equal to the Suppress-Script entry in the\n              // IANA language subtag registry for IETF BCP 47.\n              //\n              // For example, Microsoft states that its language code 0x041A is\n              // Croatian in Croatia. We transform this to the BCP 47 language code 'hr'\n              // and not 'hr-HR' because Croatia is the default country for Croatian,\n              // according to Unicode CLDR. As another example, Microsoft states\n              // that 0x101A is Croatian (Latin) in Bosnia-Herzegovina. We transform\n              // this to 'hr-BA' and not 'hr-Latn-BA' because Latin is the default script\n              // for the Croatian language, according to IANA.\n              //\n              // http://www.unicode.org/cldr/charts/latest/supplemental/likely_subtags.html\n              // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry\n              var windowsLanguages = {\n                0x0436: 'af',\n                0x041c: 'sq',\n                0x0484: 'gsw',\n                0x045e: 'am',\n                0x1401: 'ar-DZ',\n                0x3c01: 'ar-BH',\n                0x0c01: 'ar',\n                0x0801: 'ar-IQ',\n                0x2c01: 'ar-JO',\n                0x3401: 'ar-KW',\n                0x3001: 'ar-LB',\n                0x1001: 'ar-LY',\n                0x1801: 'ary',\n                0x2001: 'ar-OM',\n                0x4001: 'ar-QA',\n                0x0401: 'ar-SA',\n                0x2801: 'ar-SY',\n                0x1c01: 'aeb',\n                0x3801: 'ar-AE',\n                0x2401: 'ar-YE',\n                0x042b: 'hy',\n                0x044d: 'as',\n                0x082c: 'az-Cyrl',\n                0x042c: 'az',\n                0x046d: 'ba',\n                0x042d: 'eu',\n                0x0423: 'be',\n                0x0845: 'bn',\n                0x0445: 'bn-IN',\n                0x201a: 'bs-Cyrl',\n                0x141a: 'bs',\n                0x047e: 'br',\n                0x0402: 'bg',\n                0x0403: 'ca',\n                0x0c04: 'zh-HK',\n                0x1404: 'zh-MO',\n                0x0804: 'zh',\n                0x1004: 'zh-SG',\n                0x0404: 'zh-TW',\n                0x0483: 'co',\n                0x041a: 'hr',\n                0x101a: 'hr-BA',\n                0x0405: 'cs',\n                0x0406: 'da',\n                0x048c: 'prs',\n                0x0465: 'dv',\n                0x0813: 'nl-BE',\n                0x0413: 'nl',\n                0x0c09: 'en-AU',\n                0x2809: 'en-BZ',\n                0x1009: 'en-CA',\n                0x2409: 'en-029',\n                0x4009: 'en-IN',\n                0x1809: 'en-IE',\n                0x2009: 'en-JM',\n                0x4409: 'en-MY',\n                0x1409: 'en-NZ',\n                0x3409: 'en-PH',\n                0x4809: 'en-SG',\n                0x1c09: 'en-ZA',\n                0x2c09: 'en-TT',\n                0x0809: 'en-GB',\n                0x0409: 'en',\n                0x3009: 'en-ZW',\n                0x0425: 'et',\n                0x0438: 'fo',\n                0x0464: 'fil',\n                0x040b: 'fi',\n                0x080c: 'fr-BE',\n                0x0c0c: 'fr-CA',\n                0x040c: 'fr',\n                0x140c: 'fr-LU',\n                0x180c: 'fr-MC',\n                0x100c: 'fr-CH',\n                0x0462: 'fy',\n                0x0456: 'gl',\n                0x0437: 'ka',\n                0x0c07: 'de-AT',\n                0x0407: 'de',\n                0x1407: 'de-LI',\n                0x1007: 'de-LU',\n                0x0807: 'de-CH',\n                0x0408: 'el',\n                0x046f: 'kl',\n                0x0447: 'gu',\n                0x0468: 'ha',\n                0x040d: 'he',\n                0x0439: 'hi',\n                0x040e: 'hu',\n                0x040f: 'is',\n                0x0470: 'ig',\n                0x0421: 'id',\n                0x045d: 'iu',\n                0x085d: 'iu-Latn',\n                0x083c: 'ga',\n                0x0434: 'xh',\n                0x0435: 'zu',\n                0x0410: 'it',\n                0x0810: 'it-CH',\n                0x0411: 'ja',\n                0x044b: 'kn',\n                0x043f: 'kk',\n                0x0453: 'km',\n                0x0486: 'quc',\n                0x0487: 'rw',\n                0x0441: 'sw',\n                0x0457: 'kok',\n                0x0412: 'ko',\n                0x0440: 'ky',\n                0x0454: 'lo',\n                0x0426: 'lv',\n                0x0427: 'lt',\n                0x082e: 'dsb',\n                0x046e: 'lb',\n                0x042f: 'mk',\n                0x083e: 'ms-BN',\n                0x043e: 'ms',\n                0x044c: 'ml',\n                0x043a: 'mt',\n                0x0481: 'mi',\n                0x047a: 'arn',\n                0x044e: 'mr',\n                0x047c: 'moh',\n                0x0450: 'mn',\n                0x0850: 'mn-CN',\n                0x0461: 'ne',\n                0x0414: 'nb',\n                0x0814: 'nn',\n                0x0482: 'oc',\n                0x0448: 'or',\n                0x0463: 'ps',\n                0x0415: 'pl',\n                0x0416: 'pt',\n                0x0816: 'pt-PT',\n                0x0446: 'pa',\n                0x046b: 'qu-BO',\n                0x086b: 'qu-EC',\n                0x0c6b: 'qu',\n                0x0418: 'ro',\n                0x0417: 'rm',\n                0x0419: 'ru',\n                0x243b: 'smn',\n                0x103b: 'smj-NO',\n                0x143b: 'smj',\n                0x0c3b: 'se-FI',\n                0x043b: 'se',\n                0x083b: 'se-SE',\n                0x203b: 'sms',\n                0x183b: 'sma-NO',\n                0x1c3b: 'sms',\n                0x044f: 'sa',\n                0x1c1a: 'sr-Cyrl-BA',\n                0x0c1a: 'sr',\n                0x181a: 'sr-Latn-BA',\n                0x081a: 'sr-Latn',\n                0x046c: 'nso',\n                0x0432: 'tn',\n                0x045b: 'si',\n                0x041b: 'sk',\n                0x0424: 'sl',\n                0x2c0a: 'es-AR',\n                0x400a: 'es-BO',\n                0x340a: 'es-CL',\n                0x240a: 'es-CO',\n                0x140a: 'es-CR',\n                0x1c0a: 'es-DO',\n                0x300a: 'es-EC',\n                0x440a: 'es-SV',\n                0x100a: 'es-GT',\n                0x480a: 'es-HN',\n                0x080a: 'es-MX',\n                0x4c0a: 'es-NI',\n                0x180a: 'es-PA',\n                0x3c0a: 'es-PY',\n                0x280a: 'es-PE',\n                0x500a: 'es-PR',\n\n                // Microsoft has defined two different language codes for\n                // “Spanish with modern sorting” and “Spanish with traditional\n                // sorting”. This makes sense for collation APIs, and it would be\n                // possible to express this in BCP 47 language tags via Unicode\n                // extensions (eg., es-u-co-trad is Spanish with traditional\n                // sorting). However, for storing names in fonts, the distinction\n                // does not make sense, so we give “es” in both cases.\n                0x0c0a: 'es',\n                0x040a: 'es',\n\n                0x540a: 'es-US',\n                0x380a: 'es-UY',\n                0x200a: 'es-VE',\n                0x081d: 'sv-FI',\n                0x041d: 'sv',\n                0x045a: 'syr',\n                0x0428: 'tg',\n                0x085f: 'tzm',\n                0x0449: 'ta',\n                0x0444: 'tt',\n                0x044a: 'te',\n                0x041e: 'th',\n                0x0451: 'bo',\n                0x041f: 'tr',\n                0x0442: 'tk',\n                0x0480: 'ug',\n                0x0422: 'uk',\n                0x042e: 'hsb',\n                0x0420: 'ur',\n                0x0843: 'uz-Cyrl',\n                0x0443: 'uz',\n                0x042a: 'vi',\n                0x0452: 'cy',\n                0x0488: 'wo',\n                0x0485: 'sah',\n                0x0478: 'ii',\n                0x046a: 'yo'\n              };\n\n              // Returns a IETF BCP 47 language code, for example 'zh-Hant'\n              // for 'Chinese in the traditional script'.\n              function getLanguageCode(platformID, languageID, ltag) {\n                switch (platformID) {\n                  case 0: // Unicode\n                    if (languageID === 0xffff) {\n                      return 'und';\n                    } else if (ltag) {\n                      return ltag[languageID];\n                    }\n\n                    break;\n\n                  case 1: // Macintosh\n                    return macLanguages[languageID];\n\n                  case 3: // Windows\n                    return windowsLanguages[languageID];\n                }\n\n                return undefined;\n              }\n\n              var utf16 = 'utf-16';\n\n              // MacOS script ID → encoding. This table stores the default case,\n              // which can be overridden by macLanguageEncodings.\n              var macScriptEncodings = {\n                0: 'macintosh', // smRoman\n                1: 'x-mac-japanese', // smJapanese\n                2: 'x-mac-chinesetrad', // smTradChinese\n                3: 'x-mac-korean', // smKorean\n                6: 'x-mac-greek', // smGreek\n                7: 'x-mac-cyrillic', // smCyrillic\n                9: 'x-mac-devanagai', // smDevanagari\n                10: 'x-mac-gurmukhi', // smGurmukhi\n                11: 'x-mac-gujarati', // smGujarati\n                12: 'x-mac-oriya', // smOriya\n                13: 'x-mac-bengali', // smBengali\n                14: 'x-mac-tamil', // smTamil\n                15: 'x-mac-telugu', // smTelugu\n                16: 'x-mac-kannada', // smKannada\n                17: 'x-mac-malayalam', // smMalayalam\n                18: 'x-mac-sinhalese', // smSinhalese\n                19: 'x-mac-burmese', // smBurmese\n                20: 'x-mac-khmer', // smKhmer\n                21: 'x-mac-thai', // smThai\n                22: 'x-mac-lao', // smLao\n                23: 'x-mac-georgian', // smGeorgian\n                24: 'x-mac-armenian', // smArmenian\n                25: 'x-mac-chinesesimp', // smSimpChinese\n                26: 'x-mac-tibetan', // smTibetan\n                27: 'x-mac-mongolian', // smMongolian\n                28: 'x-mac-ethiopic', // smEthiopic\n                29: 'x-mac-ce', // smCentralEuroRoman\n                30: 'x-mac-vietnamese', // smVietnamese\n                31: 'x-mac-extarabic' // smExtArabic\n              };\n\n              // MacOS language ID → encoding. This table stores the exceptional\n              // cases, which override macScriptEncodings. For writing MacOS naming\n              // tables, we need to emit a MacOS script ID. Therefore, we cannot\n              // merge macScriptEncodings into macLanguageEncodings.\n              //\n              // http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/Readme.txt\n              var macLanguageEncodings = {\n                15: 'x-mac-icelandic', // langIcelandic\n                17: 'x-mac-turkish', // langTurkish\n                18: 'x-mac-croatian', // langCroatian\n                24: 'x-mac-ce', // langLithuanian\n                25: 'x-mac-ce', // langPolish\n                26: 'x-mac-ce', // langHungarian\n                27: 'x-mac-ce', // langEstonian\n                28: 'x-mac-ce', // langLatvian\n                30: 'x-mac-icelandic', // langFaroese\n                37: 'x-mac-romanian', // langRomanian\n                38: 'x-mac-ce', // langCzech\n                39: 'x-mac-ce', // langSlovak\n                40: 'x-mac-ce', // langSlovenian\n                143: 'x-mac-inuit', // langInuktitut\n                146: 'x-mac-gaelic' // langIrishGaelicScript\n              };\n\n              function getEncoding(platformID, encodingID, languageID) {\n                switch (platformID) {\n                  case 0: // Unicode\n                    return utf16;\n\n                  case 1: // Apple Macintosh\n                    return (\n                      macLanguageEncodings[languageID] || macScriptEncodings[encodingID]\n                    );\n\n                  case 3: // Microsoft Windows\n                    if (encodingID === 1 || encodingID === 10) {\n                      return utf16;\n                    }\n\n                    break;\n                }\n\n                return undefined;\n              }\n\n              // Parse the naming `name` table.\n              // FIXME: Format 1 additional fields are not supported yet.\n              // ltag is the content of the `ltag' table, such as ['en', 'zh-Hans', 'de-CH-1904'].\n              function parseNameTable(data, start, ltag) {\n                var name = {};\n                var p = new parse.Parser(data, start);\n                var format = p.parseUShort();\n                var count = p.parseUShort();\n                var stringOffset = p.offset + p.parseUShort();\n                for (var i = 0; i < count; i++) {\n                  var platformID = p.parseUShort();\n                  var encodingID = p.parseUShort();\n                  var languageID = p.parseUShort();\n                  var nameID = p.parseUShort();\n                  var property = nameTableNames[nameID] || nameID;\n                  var byteLength = p.parseUShort();\n                  var offset = p.parseUShort();\n                  var language = getLanguageCode(platformID, languageID, ltag);\n                  var encoding = getEncoding(platformID, encodingID, languageID);\n                  if (encoding !== undefined && language !== undefined) {\n                    var text = void 0;\n                    if (encoding === utf16) {\n                      text = decode.UTF16(data, stringOffset + offset, byteLength);\n                    } else {\n                      text = decode.MACSTRING(\n                        data,\n                        stringOffset + offset,\n                        byteLength,\n                        encoding\n                      );\n                    }\n\n                    if (text) {\n                      var translations = name[property];\n                      if (translations === undefined) {\n                        translations = name[property] = {};\n                      }\n\n                      translations[language] = text;\n                    }\n                  }\n                }\n\n                var langTagCount = 0;\n                if (format === 1) {\n                  // FIXME: Also handle Microsoft's 'name' table 1.\n                  langTagCount = p.parseUShort();\n                }\n\n                return name;\n              }\n\n              // {23: 'foo'} → {'foo': 23}\n              // ['bar', 'baz'] → {'bar': 0, 'baz': 1}\n              function reverseDict(dict) {\n                var result = {};\n                for (var key in dict) {\n                  result[dict[key]] = parseInt(key);\n                }\n\n                return result;\n              }\n\n              function makeNameRecord(\n                platformID,\n                encodingID,\n                languageID,\n                nameID,\n                length,\n                offset\n              ) {\n                return new table.Record('NameRecord', [\n                  { name: 'platformID', type: 'USHORT', value: platformID },\n                  { name: 'encodingID', type: 'USHORT', value: encodingID },\n                  { name: 'languageID', type: 'USHORT', value: languageID },\n                  { name: 'nameID', type: 'USHORT', value: nameID },\n                  { name: 'length', type: 'USHORT', value: length },\n                  { name: 'offset', type: 'USHORT', value: offset }\n                ]);\n              }\n\n              // Finds the position of needle in haystack, or -1 if not there.\n              // Like String.indexOf(), but for arrays.\n              function findSubArray(needle, haystack) {\n                var needleLength = needle.length;\n                var limit = haystack.length - needleLength + 1;\n\n                loop: for (var pos = 0; pos < limit; pos++) {\n                  for (; pos < limit; pos++) {\n                    for (var k = 0; k < needleLength; k++) {\n                      if (haystack[pos + k] !== needle[k]) {\n                        continue loop;\n                      }\n                    }\n\n                    return pos;\n                  }\n                }\n\n                return -1;\n              }\n\n              function addStringToPool(s, pool) {\n                var offset = findSubArray(s, pool);\n                if (offset < 0) {\n                  offset = pool.length;\n                  var i = 0;\n                  var len = s.length;\n                  for (; i < len; ++i) {\n                    pool.push(s[i]);\n                  }\n                }\n\n                return offset;\n              }\n\n              function makeNameTable(names, ltag) {\n                var nameID;\n                var nameIDs = [];\n\n                var namesWithNumericKeys = {};\n                var nameTableIds = reverseDict(nameTableNames);\n                for (var key in names) {\n                  var id = nameTableIds[key];\n                  if (id === undefined) {\n                    id = key;\n                  }\n\n                  nameID = parseInt(id);\n\n                  if (isNaN(nameID)) {\n                    throw new Error(\n                      'Name table entry \"' +\n                        key +\n                        '\" does not exist, see nameTableNames for complete list.'\n                    );\n                  }\n\n                  namesWithNumericKeys[nameID] = names[key];\n                  nameIDs.push(nameID);\n                }\n\n                var macLanguageIds = reverseDict(macLanguages);\n                var windowsLanguageIds = reverseDict(windowsLanguages);\n\n                var nameRecords = [];\n                var stringPool = [];\n\n                for (var i = 0; i < nameIDs.length; i++) {\n                  nameID = nameIDs[i];\n                  var translations = namesWithNumericKeys[nameID];\n                  for (var lang in translations) {\n                    var text = translations[lang];\n\n                    // For MacOS, we try to emit the name in the form that was introduced\n                    // in the initial version of the TrueType spec (in the late 1980s).\n                    // However, this can fail for various reasons: the requested BCP 47\n                    // language code might not have an old-style Mac equivalent;\n                    // we might not have a codec for the needed character encoding;\n                    // or the name might contain characters that cannot be expressed\n                    // in the old-style Macintosh encoding. In case of failure, we emit\n                    // the name in a more modern fashion (Unicode encoding with BCP 47\n                    // language tags) that is recognized by MacOS 10.5, released in 2009.\n                    // If fonts were only read by operating systems, we could simply\n                    // emit all names in the modern form; this would be much easier.\n                    // However, there are many applications and libraries that read\n                    // 'name' tables directly, and these will usually only recognize\n                    // the ancient form (silently skipping the unrecognized names).\n                    var macPlatform = 1; // Macintosh\n                    var macLanguage = macLanguageIds[lang];\n                    var macScript = macLanguageToScript[macLanguage];\n                    var macEncoding = getEncoding(macPlatform, macScript, macLanguage);\n                    var macName = encode.MACSTRING(text, macEncoding);\n                    if (macName === undefined) {\n                      macPlatform = 0; // Unicode\n                      macLanguage = ltag.indexOf(lang);\n                      if (macLanguage < 0) {\n                        macLanguage = ltag.length;\n                        ltag.push(lang);\n                      }\n\n                      macScript = 4; // Unicode 2.0 and later\n                      macName = encode.UTF16(text);\n                    }\n\n                    var macNameOffset = addStringToPool(macName, stringPool);\n                    nameRecords.push(\n                      makeNameRecord(\n                        macPlatform,\n                        macScript,\n                        macLanguage,\n                        nameID,\n                        macName.length,\n                        macNameOffset\n                      )\n                    );\n\n                    var winLanguage = windowsLanguageIds[lang];\n                    if (winLanguage !== undefined) {\n                      var winName = encode.UTF16(text);\n                      var winNameOffset = addStringToPool(winName, stringPool);\n                      nameRecords.push(\n                        makeNameRecord(\n                          3,\n                          1,\n                          winLanguage,\n                          nameID,\n                          winName.length,\n                          winNameOffset\n                        )\n                      );\n                    }\n                  }\n                }\n\n                nameRecords.sort(function(a, b) {\n                  return (\n                    a.platformID - b.platformID ||\n                    a.encodingID - b.encodingID ||\n                    a.languageID - b.languageID ||\n                    a.nameID - b.nameID\n                  );\n                });\n\n                var t = new table.Table('name', [\n                  { name: 'format', type: 'USHORT', value: 0 },\n                  { name: 'count', type: 'USHORT', value: nameRecords.length },\n                  {\n                    name: 'stringOffset',\n                    type: 'USHORT',\n                    value: 6 + nameRecords.length * 12\n                  }\n                ]);\n\n                for (var r = 0; r < nameRecords.length; r++) {\n                  t.fields.push({\n                    name: 'record_' + r,\n                    type: 'RECORD',\n                    value: nameRecords[r]\n                  });\n                }\n\n                t.fields.push({ name: 'strings', type: 'LITERAL', value: stringPool });\n                return t;\n              }\n\n              var _name = { parse: parseNameTable, make: makeNameTable };\n\n              // The `OS/2` table contains metrics required in OpenType fonts.\n\n              var unicodeRanges = [\n                { begin: 0x0000, end: 0x007f }, // Basic Latin\n                { begin: 0x0080, end: 0x00ff }, // Latin-1 Supplement\n                { begin: 0x0100, end: 0x017f }, // Latin Extended-A\n                { begin: 0x0180, end: 0x024f }, // Latin Extended-B\n                { begin: 0x0250, end: 0x02af }, // IPA Extensions\n                { begin: 0x02b0, end: 0x02ff }, // Spacing Modifier Letters\n                { begin: 0x0300, end: 0x036f }, // Combining Diacritical Marks\n                { begin: 0x0370, end: 0x03ff }, // Greek and Coptic\n                { begin: 0x2c80, end: 0x2cff }, // Coptic\n                { begin: 0x0400, end: 0x04ff }, // Cyrillic\n                { begin: 0x0530, end: 0x058f }, // Armenian\n                { begin: 0x0590, end: 0x05ff }, // Hebrew\n                { begin: 0xa500, end: 0xa63f }, // Vai\n                { begin: 0x0600, end: 0x06ff }, // Arabic\n                { begin: 0x07c0, end: 0x07ff }, // NKo\n                { begin: 0x0900, end: 0x097f }, // Devanagari\n                { begin: 0x0980, end: 0x09ff }, // Bengali\n                { begin: 0x0a00, end: 0x0a7f }, // Gurmukhi\n                { begin: 0x0a80, end: 0x0aff }, // Gujarati\n                { begin: 0x0b00, end: 0x0b7f }, // Oriya\n                { begin: 0x0b80, end: 0x0bff }, // Tamil\n                { begin: 0x0c00, end: 0x0c7f }, // Telugu\n                { begin: 0x0c80, end: 0x0cff }, // Kannada\n                { begin: 0x0d00, end: 0x0d7f }, // Malayalam\n                { begin: 0x0e00, end: 0x0e7f }, // Thai\n                { begin: 0x0e80, end: 0x0eff }, // Lao\n                { begin: 0x10a0, end: 0x10ff }, // Georgian\n                { begin: 0x1b00, end: 0x1b7f }, // Balinese\n                { begin: 0x1100, end: 0x11ff }, // Hangul Jamo\n                { begin: 0x1e00, end: 0x1eff }, // Latin Extended Additional\n                { begin: 0x1f00, end: 0x1fff }, // Greek Extended\n                { begin: 0x2000, end: 0x206f }, // General Punctuation\n                { begin: 0x2070, end: 0x209f }, // Superscripts And Subscripts\n                { begin: 0x20a0, end: 0x20cf }, // Currency Symbol\n                { begin: 0x20d0, end: 0x20ff }, // Combining Diacritical Marks For Symbols\n                { begin: 0x2100, end: 0x214f }, // Letterlike Symbols\n                { begin: 0x2150, end: 0x218f }, // Number Forms\n                { begin: 0x2190, end: 0x21ff }, // Arrows\n                { begin: 0x2200, end: 0x22ff }, // Mathematical Operators\n                { begin: 0x2300, end: 0x23ff }, // Miscellaneous Technical\n                { begin: 0x2400, end: 0x243f }, // Control Pictures\n                { begin: 0x2440, end: 0x245f }, // Optical Character Recognition\n                { begin: 0x2460, end: 0x24ff }, // Enclosed Alphanumerics\n                { begin: 0x2500, end: 0x257f }, // Box Drawing\n                { begin: 0x2580, end: 0x259f }, // Block Elements\n                { begin: 0x25a0, end: 0x25ff }, // Geometric Shapes\n                { begin: 0x2600, end: 0x26ff }, // Miscellaneous Symbols\n                { begin: 0x2700, end: 0x27bf }, // Dingbats\n                { begin: 0x3000, end: 0x303f }, // CJK Symbols And Punctuation\n                { begin: 0x3040, end: 0x309f }, // Hiragana\n                { begin: 0x30a0, end: 0x30ff }, // Katakana\n                { begin: 0x3100, end: 0x312f }, // Bopomofo\n                { begin: 0x3130, end: 0x318f }, // Hangul Compatibility Jamo\n                { begin: 0xa840, end: 0xa87f }, // Phags-pa\n                { begin: 0x3200, end: 0x32ff }, // Enclosed CJK Letters And Months\n                { begin: 0x3300, end: 0x33ff }, // CJK Compatibility\n                { begin: 0xac00, end: 0xd7af }, // Hangul Syllables\n                { begin: 0xd800, end: 0xdfff }, // Non-Plane 0 *\n                { begin: 0x10900, end: 0x1091f }, // Phoenicia\n                { begin: 0x4e00, end: 0x9fff }, // CJK Unified Ideographs\n                { begin: 0xe000, end: 0xf8ff }, // Private Use Area (plane 0)\n                { begin: 0x31c0, end: 0x31ef }, // CJK Strokes\n                { begin: 0xfb00, end: 0xfb4f }, // Alphabetic Presentation Forms\n                { begin: 0xfb50, end: 0xfdff }, // Arabic Presentation Forms-A\n                { begin: 0xfe20, end: 0xfe2f }, // Combining Half Marks\n                { begin: 0xfe10, end: 0xfe1f }, // Vertical Forms\n                { begin: 0xfe50, end: 0xfe6f }, // Small Form Variants\n                { begin: 0xfe70, end: 0xfeff }, // Arabic Presentation Forms-B\n                { begin: 0xff00, end: 0xffef }, // Halfwidth And Fullwidth Forms\n                { begin: 0xfff0, end: 0xffff }, // Specials\n                { begin: 0x0f00, end: 0x0fff }, // Tibetan\n                { begin: 0x0700, end: 0x074f }, // Syriac\n                { begin: 0x0780, end: 0x07bf }, // Thaana\n                { begin: 0x0d80, end: 0x0dff }, // Sinhala\n                { begin: 0x1000, end: 0x109f }, // Myanmar\n                { begin: 0x1200, end: 0x137f }, // Ethiopic\n                { begin: 0x13a0, end: 0x13ff }, // Cherokee\n                { begin: 0x1400, end: 0x167f }, // Unified Canadian Aboriginal Syllabics\n                { begin: 0x1680, end: 0x169f }, // Ogham\n                { begin: 0x16a0, end: 0x16ff }, // Runic\n                { begin: 0x1780, end: 0x17ff }, // Khmer\n                { begin: 0x1800, end: 0x18af }, // Mongolian\n                { begin: 0x2800, end: 0x28ff }, // Braille Patterns\n                { begin: 0xa000, end: 0xa48f }, // Yi Syllables\n                { begin: 0x1700, end: 0x171f }, // Tagalog\n                { begin: 0x10300, end: 0x1032f }, // Old Italic\n                { begin: 0x10330, end: 0x1034f }, // Gothic\n                { begin: 0x10400, end: 0x1044f }, // Deseret\n                { begin: 0x1d000, end: 0x1d0ff }, // Byzantine Musical Symbols\n                { begin: 0x1d400, end: 0x1d7ff }, // Mathematical Alphanumeric Symbols\n                { begin: 0xff000, end: 0xffffd }, // Private Use (plane 15)\n                { begin: 0xfe00, end: 0xfe0f }, // Variation Selectors\n                { begin: 0xe0000, end: 0xe007f }, // Tags\n                { begin: 0x1900, end: 0x194f }, // Limbu\n                { begin: 0x1950, end: 0x197f }, // Tai Le\n                { begin: 0x1980, end: 0x19df }, // New Tai Lue\n                { begin: 0x1a00, end: 0x1a1f }, // Buginese\n                { begin: 0x2c00, end: 0x2c5f }, // Glagolitic\n                { begin: 0x2d30, end: 0x2d7f }, // Tifinagh\n                { begin: 0x4dc0, end: 0x4dff }, // Yijing Hexagram Symbols\n                { begin: 0xa800, end: 0xa82f }, // Syloti Nagri\n                { begin: 0x10000, end: 0x1007f }, // Linear B Syllabary\n                { begin: 0x10140, end: 0x1018f }, // Ancient Greek Numbers\n                { begin: 0x10380, end: 0x1039f }, // Ugaritic\n                { begin: 0x103a0, end: 0x103df }, // Old Persian\n                { begin: 0x10450, end: 0x1047f }, // Shavian\n                { begin: 0x10480, end: 0x104af }, // Osmanya\n                { begin: 0x10800, end: 0x1083f }, // Cypriot Syllabary\n                { begin: 0x10a00, end: 0x10a5f }, // Kharoshthi\n                { begin: 0x1d300, end: 0x1d35f }, // Tai Xuan Jing Symbols\n                { begin: 0x12000, end: 0x123ff }, // Cuneiform\n                { begin: 0x1d360, end: 0x1d37f }, // Counting Rod Numerals\n                { begin: 0x1b80, end: 0x1bbf }, // Sundanese\n                { begin: 0x1c00, end: 0x1c4f }, // Lepcha\n                { begin: 0x1c50, end: 0x1c7f }, // Ol Chiki\n                { begin: 0xa880, end: 0xa8df }, // Saurashtra\n                { begin: 0xa900, end: 0xa92f }, // Kayah Li\n                { begin: 0xa930, end: 0xa95f }, // Rejang\n                { begin: 0xaa00, end: 0xaa5f }, // Cham\n                { begin: 0x10190, end: 0x101cf }, // Ancient Symbols\n                { begin: 0x101d0, end: 0x101ff }, // Phaistos Disc\n                { begin: 0x102a0, end: 0x102df }, // Carian\n                { begin: 0x1f030, end: 0x1f09f } // Domino Tiles\n              ];\n\n              function getUnicodeRange(unicode) {\n                for (var i = 0; i < unicodeRanges.length; i += 1) {\n                  var range = unicodeRanges[i];\n                  if (unicode >= range.begin && unicode < range.end) {\n                    return i;\n                  }\n                }\n\n                return -1;\n              }\n\n              // Parse the OS/2 and Windows metrics `OS/2` table\n              function parseOS2Table(data, start) {\n                var os2 = {};\n                var p = new parse.Parser(data, start);\n                os2.version = p.parseUShort();\n                os2.xAvgCharWidth = p.parseShort();\n                os2.usWeightClass = p.parseUShort();\n                os2.usWidthClass = p.parseUShort();\n                os2.fsType = p.parseUShort();\n                os2.ySubscriptXSize = p.parseShort();\n                os2.ySubscriptYSize = p.parseShort();\n                os2.ySubscriptXOffset = p.parseShort();\n                os2.ySubscriptYOffset = p.parseShort();\n                os2.ySuperscriptXSize = p.parseShort();\n                os2.ySuperscriptYSize = p.parseShort();\n                os2.ySuperscriptXOffset = p.parseShort();\n                os2.ySuperscriptYOffset = p.parseShort();\n                os2.yStrikeoutSize = p.parseShort();\n                os2.yStrikeoutPosition = p.parseShort();\n                os2.sFamilyClass = p.parseShort();\n                os2.panose = [];\n                for (var i = 0; i < 10; i++) {\n                  os2.panose[i] = p.parseByte();\n                }\n\n                os2.ulUnicodeRange1 = p.parseULong();\n                os2.ulUnicodeRange2 = p.parseULong();\n                os2.ulUnicodeRange3 = p.parseULong();\n                os2.ulUnicodeRange4 = p.parseULong();\n                os2.achVendID = String.fromCharCode(\n                  p.parseByte(),\n                  p.parseByte(),\n                  p.parseByte(),\n                  p.parseByte()\n                );\n                os2.fsSelection = p.parseUShort();\n                os2.usFirstCharIndex = p.parseUShort();\n                os2.usLastCharIndex = p.parseUShort();\n                os2.sTypoAscender = p.parseShort();\n                os2.sTypoDescender = p.parseShort();\n                os2.sTypoLineGap = p.parseShort();\n                os2.usWinAscent = p.parseUShort();\n                os2.usWinDescent = p.parseUShort();\n                if (os2.version >= 1) {\n                  os2.ulCodePageRange1 = p.parseULong();\n                  os2.ulCodePageRange2 = p.parseULong();\n                }\n\n                if (os2.version >= 2) {\n                  os2.sxHeight = p.parseShort();\n                  os2.sCapHeight = p.parseShort();\n                  os2.usDefaultChar = p.parseUShort();\n                  os2.usBreakChar = p.parseUShort();\n                  os2.usMaxContent = p.parseUShort();\n                }\n\n                return os2;\n              }\n\n              function makeOS2Table(options) {\n                return new table.Table(\n                  'OS/2',\n                  [\n                    { name: 'version', type: 'USHORT', value: 0x0003 },\n                    { name: 'xAvgCharWidth', type: 'SHORT', value: 0 },\n                    { name: 'usWeightClass', type: 'USHORT', value: 0 },\n                    { name: 'usWidthClass', type: 'USHORT', value: 0 },\n                    { name: 'fsType', type: 'USHORT', value: 0 },\n                    { name: 'ySubscriptXSize', type: 'SHORT', value: 650 },\n                    { name: 'ySubscriptYSize', type: 'SHORT', value: 699 },\n                    { name: 'ySubscriptXOffset', type: 'SHORT', value: 0 },\n                    { name: 'ySubscriptYOffset', type: 'SHORT', value: 140 },\n                    { name: 'ySuperscriptXSize', type: 'SHORT', value: 650 },\n                    { name: 'ySuperscriptYSize', type: 'SHORT', value: 699 },\n                    { name: 'ySuperscriptXOffset', type: 'SHORT', value: 0 },\n                    { name: 'ySuperscriptYOffset', type: 'SHORT', value: 479 },\n                    { name: 'yStrikeoutSize', type: 'SHORT', value: 49 },\n                    { name: 'yStrikeoutPosition', type: 'SHORT', value: 258 },\n                    { name: 'sFamilyClass', type: 'SHORT', value: 0 },\n                    { name: 'bFamilyType', type: 'BYTE', value: 0 },\n                    { name: 'bSerifStyle', type: 'BYTE', value: 0 },\n                    { name: 'bWeight', type: 'BYTE', value: 0 },\n                    { name: 'bProportion', type: 'BYTE', value: 0 },\n                    { name: 'bContrast', type: 'BYTE', value: 0 },\n                    { name: 'bStrokeVariation', type: 'BYTE', value: 0 },\n                    { name: 'bArmStyle', type: 'BYTE', value: 0 },\n                    { name: 'bLetterform', type: 'BYTE', value: 0 },\n                    { name: 'bMidline', type: 'BYTE', value: 0 },\n                    { name: 'bXHeight', type: 'BYTE', value: 0 },\n                    { name: 'ulUnicodeRange1', type: 'ULONG', value: 0 },\n                    { name: 'ulUnicodeRange2', type: 'ULONG', value: 0 },\n                    { name: 'ulUnicodeRange3', type: 'ULONG', value: 0 },\n                    { name: 'ulUnicodeRange4', type: 'ULONG', value: 0 },\n                    { name: 'achVendID', type: 'CHARARRAY', value: 'XXXX' },\n                    { name: 'fsSelection', type: 'USHORT', value: 0 },\n                    { name: 'usFirstCharIndex', type: 'USHORT', value: 0 },\n                    { name: 'usLastCharIndex', type: 'USHORT', value: 0 },\n                    { name: 'sTypoAscender', type: 'SHORT', value: 0 },\n                    { name: 'sTypoDescender', type: 'SHORT', value: 0 },\n                    { name: 'sTypoLineGap', type: 'SHORT', value: 0 },\n                    { name: 'usWinAscent', type: 'USHORT', value: 0 },\n                    { name: 'usWinDescent', type: 'USHORT', value: 0 },\n                    { name: 'ulCodePageRange1', type: 'ULONG', value: 0 },\n                    { name: 'ulCodePageRange2', type: 'ULONG', value: 0 },\n                    { name: 'sxHeight', type: 'SHORT', value: 0 },\n                    { name: 'sCapHeight', type: 'SHORT', value: 0 },\n                    { name: 'usDefaultChar', type: 'USHORT', value: 0 },\n                    { name: 'usBreakChar', type: 'USHORT', value: 0 },\n                    { name: 'usMaxContext', type: 'USHORT', value: 0 }\n                  ],\n                  options\n                );\n              }\n\n              var os2 = {\n                parse: parseOS2Table,\n                make: makeOS2Table,\n                unicodeRanges: unicodeRanges,\n                getUnicodeRange: getUnicodeRange\n              };\n\n              // The `post` table stores additional PostScript information, such as glyph names.\n\n              // Parse the PostScript `post` table\n              function parsePostTable(data, start) {\n                var post = {};\n                var p = new parse.Parser(data, start);\n                post.version = p.parseVersion();\n                post.italicAngle = p.parseFixed();\n                post.underlinePosition = p.parseShort();\n                post.underlineThickness = p.parseShort();\n                post.isFixedPitch = p.parseULong();\n                post.minMemType42 = p.parseULong();\n                post.maxMemType42 = p.parseULong();\n                post.minMemType1 = p.parseULong();\n                post.maxMemType1 = p.parseULong();\n                switch (post.version) {\n                  case 1:\n                    post.names = standardNames.slice();\n                    break;\n                  case 2:\n                    post.numberOfGlyphs = p.parseUShort();\n                    post.glyphNameIndex = new Array(post.numberOfGlyphs);\n                    for (var i = 0; i < post.numberOfGlyphs; i++) {\n                      post.glyphNameIndex[i] = p.parseUShort();\n                    }\n\n                    post.names = [];\n                    for (var i$1 = 0; i$1 < post.numberOfGlyphs; i$1++) {\n                      if (post.glyphNameIndex[i$1] >= standardNames.length) {\n                        var nameLength = p.parseChar();\n                        post.names.push(p.parseString(nameLength));\n                      }\n                    }\n\n                    break;\n                  case 2.5:\n                    post.numberOfGlyphs = p.parseUShort();\n                    post.offset = new Array(post.numberOfGlyphs);\n                    for (var i$2 = 0; i$2 < post.numberOfGlyphs; i$2++) {\n                      post.offset[i$2] = p.parseChar();\n                    }\n\n                    break;\n                }\n                return post;\n              }\n\n              function makePostTable() {\n                return new table.Table('post', [\n                  { name: 'version', type: 'FIXED', value: 0x00030000 },\n                  { name: 'italicAngle', type: 'FIXED', value: 0 },\n                  { name: 'underlinePosition', type: 'FWORD', value: 0 },\n                  { name: 'underlineThickness', type: 'FWORD', value: 0 },\n                  { name: 'isFixedPitch', type: 'ULONG', value: 0 },\n                  { name: 'minMemType42', type: 'ULONG', value: 0 },\n                  { name: 'maxMemType42', type: 'ULONG', value: 0 },\n                  { name: 'minMemType1', type: 'ULONG', value: 0 },\n                  { name: 'maxMemType1', type: 'ULONG', value: 0 }\n                ]);\n              }\n\n              var post = { parse: parsePostTable, make: makePostTable };\n\n              // The `GSUB` table contains ligatures, among other things.\n\n              var subtableParsers = new Array(9); // subtableParsers[0] is unused\n\n              // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#SS\n              subtableParsers[1] = function parseLookup1() {\n                var start = this.offset + this.relativeOffset;\n                var substFormat = this.parseUShort();\n                if (substFormat === 1) {\n                  return {\n                    substFormat: 1,\n                    coverage: this.parsePointer(Parser.coverage),\n                    deltaGlyphId: this.parseUShort()\n                  };\n                } else if (substFormat === 2) {\n                  return {\n                    substFormat: 2,\n                    coverage: this.parsePointer(Parser.coverage),\n                    substitute: this.parseOffset16List()\n                  };\n                }\n                check.assert(\n                  false,\n                  '0x' + start.toString(16) + ': lookup type 1 format must be 1 or 2.'\n                );\n              };\n\n              // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#MS\n              subtableParsers[2] = function parseLookup2() {\n                var substFormat = this.parseUShort();\n                check.argument(\n                  substFormat === 1,\n                  'GSUB Multiple Substitution Subtable identifier-format must be 1'\n                );\n                return {\n                  substFormat: substFormat,\n                  coverage: this.parsePointer(Parser.coverage),\n                  sequences: this.parseListOfLists()\n                };\n              };\n\n              // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#AS\n              subtableParsers[3] = function parseLookup3() {\n                var substFormat = this.parseUShort();\n                check.argument(\n                  substFormat === 1,\n                  'GSUB Alternate Substitution Subtable identifier-format must be 1'\n                );\n                return {\n                  substFormat: substFormat,\n                  coverage: this.parsePointer(Parser.coverage),\n                  alternateSets: this.parseListOfLists()\n                };\n              };\n\n              // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#LS\n              subtableParsers[4] = function parseLookup4() {\n                var substFormat = this.parseUShort();\n                check.argument(\n                  substFormat === 1,\n                  'GSUB ligature table identifier-format must be 1'\n                );\n                return {\n                  substFormat: substFormat,\n                  coverage: this.parsePointer(Parser.coverage),\n                  ligatureSets: this.parseListOfLists(function() {\n                    return {\n                      ligGlyph: this.parseUShort(),\n                      components: this.parseUShortList(this.parseUShort() - 1)\n                    };\n                  })\n                };\n              };\n\n              var lookupRecordDesc = {\n                sequenceIndex: Parser.uShort,\n                lookupListIndex: Parser.uShort\n              };\n\n              // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#CSF\n              subtableParsers[5] = function parseLookup5() {\n                var start = this.offset + this.relativeOffset;\n                var substFormat = this.parseUShort();\n\n                if (substFormat === 1) {\n                  return {\n                    substFormat: substFormat,\n                    coverage: this.parsePointer(Parser.coverage),\n                    ruleSets: this.parseListOfLists(function() {\n                      var glyphCount = this.parseUShort();\n                      var substCount = this.parseUShort();\n                      return {\n                        input: this.parseUShortList(glyphCount - 1),\n                        lookupRecords: this.parseRecordList(substCount, lookupRecordDesc)\n                      };\n                    })\n                  };\n                } else if (substFormat === 2) {\n                  return {\n                    substFormat: substFormat,\n                    coverage: this.parsePointer(Parser.coverage),\n                    classDef: this.parsePointer(Parser.classDef),\n                    classSets: this.parseListOfLists(function() {\n                      var glyphCount = this.parseUShort();\n                      var substCount = this.parseUShort();\n                      return {\n                        classes: this.parseUShortList(glyphCount - 1),\n                        lookupRecords: this.parseRecordList(substCount, lookupRecordDesc)\n                      };\n                    })\n                  };\n                } else if (substFormat === 3) {\n                  var glyphCount = this.parseUShort();\n                  var substCount = this.parseUShort();\n                  return {\n                    substFormat: substFormat,\n                    coverages: this.parseList(glyphCount, Parser.pointer(Parser.coverage)),\n                    lookupRecords: this.parseRecordList(substCount, lookupRecordDesc)\n                  };\n                }\n                check.assert(\n                  false,\n                  '0x' + start.toString(16) + ': lookup type 5 format must be 1, 2 or 3.'\n                );\n              };\n\n              // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#CC\n              subtableParsers[6] = function parseLookup6() {\n                var start = this.offset + this.relativeOffset;\n                var substFormat = this.parseUShort();\n                if (substFormat === 1) {\n                  return {\n                    substFormat: 1,\n                    coverage: this.parsePointer(Parser.coverage),\n                    chainRuleSets: this.parseListOfLists(function() {\n                      return {\n                        backtrack: this.parseUShortList(),\n                        input: this.parseUShortList(this.parseShort() - 1),\n                        lookahead: this.parseUShortList(),\n                        lookupRecords: this.parseRecordList(lookupRecordDesc)\n                      };\n                    })\n                  };\n                } else if (substFormat === 2) {\n                  return {\n                    substFormat: 2,\n                    coverage: this.parsePointer(Parser.coverage),\n                    backtrackClassDef: this.parsePointer(Parser.classDef),\n                    inputClassDef: this.parsePointer(Parser.classDef),\n                    lookaheadClassDef: this.parsePointer(Parser.classDef),\n                    chainClassSet: this.parseListOfLists(function() {\n                      return {\n                        backtrack: this.parseUShortList(),\n                        input: this.parseUShortList(this.parseShort() - 1),\n                        lookahead: this.parseUShortList(),\n                        lookupRecords: this.parseRecordList(lookupRecordDesc)\n                      };\n                    })\n                  };\n                } else if (substFormat === 3) {\n                  return {\n                    substFormat: 3,\n                    backtrackCoverage: this.parseList(Parser.pointer(Parser.coverage)),\n                    inputCoverage: this.parseList(Parser.pointer(Parser.coverage)),\n                    lookaheadCoverage: this.parseList(Parser.pointer(Parser.coverage)),\n                    lookupRecords: this.parseRecordList(lookupRecordDesc)\n                  };\n                }\n                check.assert(\n                  false,\n                  '0x' + start.toString(16) + ': lookup type 6 format must be 1, 2 or 3.'\n                );\n              };\n\n              // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#ES\n              subtableParsers[7] = function parseLookup7() {\n                // Extension Substitution subtable\n                var substFormat = this.parseUShort();\n                check.argument(\n                  substFormat === 1,\n                  'GSUB Extension Substitution subtable identifier-format must be 1'\n                );\n                var extensionLookupType = this.parseUShort();\n                var extensionParser = new Parser(\n                  this.data,\n                  this.offset + this.parseULong()\n                );\n                return {\n                  substFormat: 1,\n                  lookupType: extensionLookupType,\n                  extension: subtableParsers[extensionLookupType].call(extensionParser)\n                };\n              };\n\n              // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#RCCS\n              subtableParsers[8] = function parseLookup8() {\n                var substFormat = this.parseUShort();\n                check.argument(\n                  substFormat === 1,\n                  'GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1'\n                );\n                return {\n                  substFormat: substFormat,\n                  coverage: this.parsePointer(Parser.coverage),\n                  backtrackCoverage: this.parseList(Parser.pointer(Parser.coverage)),\n                  lookaheadCoverage: this.parseList(Parser.pointer(Parser.coverage)),\n                  substitutes: this.parseUShortList()\n                };\n              };\n\n              // https://www.microsoft.com/typography/OTSPEC/gsub.htm\n              function parseGsubTable(data, start) {\n                start = start || 0;\n                var p = new Parser(data, start);\n                var tableVersion = p.parseVersion(1);\n                check.argument(\n                  tableVersion === 1 || tableVersion === 1.1,\n                  'Unsupported GSUB table version.'\n                );\n                if (tableVersion === 1) {\n                  return {\n                    version: tableVersion,\n                    scripts: p.parseScriptList(),\n                    features: p.parseFeatureList(),\n                    lookups: p.parseLookupList(subtableParsers)\n                  };\n                } else {\n                  return {\n                    version: tableVersion,\n                    scripts: p.parseScriptList(),\n                    features: p.parseFeatureList(),\n                    lookups: p.parseLookupList(subtableParsers),\n                    variations: p.parseFeatureVariationsList()\n                  };\n                }\n              }\n\n              // GSUB Writing //////////////////////////////////////////////\n              var subtableMakers = new Array(9);\n\n              subtableMakers[1] = function makeLookup1(subtable) {\n                if (subtable.substFormat === 1) {\n                  return new table.Table('substitutionTable', [\n                    { name: 'substFormat', type: 'USHORT', value: 1 },\n                    {\n                      name: 'coverage',\n                      type: 'TABLE',\n                      value: new table.Coverage(subtable.coverage)\n                    },\n                    { name: 'deltaGlyphID', type: 'USHORT', value: subtable.deltaGlyphId }\n                  ]);\n                } else {\n                  return new table.Table(\n                    'substitutionTable',\n                    [\n                      { name: 'substFormat', type: 'USHORT', value: 2 },\n                      {\n                        name: 'coverage',\n                        type: 'TABLE',\n                        value: new table.Coverage(subtable.coverage)\n                      }\n                    ].concat(table.ushortList('substitute', subtable.substitute))\n                  );\n                }\n                check.fail('Lookup type 1 substFormat must be 1 or 2.');\n              };\n\n              subtableMakers[3] = function makeLookup3(subtable) {\n                check.assert(\n                  subtable.substFormat === 1,\n                  'Lookup type 3 substFormat must be 1.'\n                );\n                return new table.Table(\n                  'substitutionTable',\n                  [\n                    { name: 'substFormat', type: 'USHORT', value: 1 },\n                    {\n                      name: 'coverage',\n                      type: 'TABLE',\n                      value: new table.Coverage(subtable.coverage)\n                    }\n                  ].concat(\n                    table.tableList('altSet', subtable.alternateSets, function(\n                      alternateSet\n                    ) {\n                      return new table.Table(\n                        'alternateSetTable',\n                        table.ushortList('alternate', alternateSet)\n                      );\n                    })\n                  )\n                );\n              };\n\n              subtableMakers[4] = function makeLookup4(subtable) {\n                check.assert(\n                  subtable.substFormat === 1,\n                  'Lookup type 4 substFormat must be 1.'\n                );\n                return new table.Table(\n                  'substitutionTable',\n                  [\n                    { name: 'substFormat', type: 'USHORT', value: 1 },\n                    {\n                      name: 'coverage',\n                      type: 'TABLE',\n                      value: new table.Coverage(subtable.coverage)\n                    }\n                  ].concat(\n                    table.tableList('ligSet', subtable.ligatureSets, function(ligatureSet) {\n                      return new table.Table(\n                        'ligatureSetTable',\n                        table.tableList('ligature', ligatureSet, function(ligature) {\n                          return new table.Table(\n                            'ligatureTable',\n                            [\n                              { name: 'ligGlyph', type: 'USHORT', value: ligature.ligGlyph }\n                            ].concat(\n                              table.ushortList(\n                                'component',\n                                ligature.components,\n                                ligature.components.length + 1\n                              )\n                            )\n                          );\n                        })\n                      );\n                    })\n                  )\n                );\n              };\n\n              function makeGsubTable(gsub) {\n                return new table.Table('GSUB', [\n                  { name: 'version', type: 'ULONG', value: 0x10000 },\n                  {\n                    name: 'scripts',\n                    type: 'TABLE',\n                    value: new table.ScriptList(gsub.scripts)\n                  },\n                  {\n                    name: 'features',\n                    type: 'TABLE',\n                    value: new table.FeatureList(gsub.features)\n                  },\n                  {\n                    name: 'lookups',\n                    type: 'TABLE',\n                    value: new table.LookupList(gsub.lookups, subtableMakers)\n                  }\n                ]);\n              }\n\n              var gsub = { parse: parseGsubTable, make: makeGsubTable };\n\n              // The `GPOS` table contains kerning pairs, among other things.\n\n              // Parse the metadata `meta` table.\n              // https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6meta.html\n              function parseMetaTable(data, start) {\n                var p = new parse.Parser(data, start);\n                var tableVersion = p.parseULong();\n                check.argument(tableVersion === 1, 'Unsupported META table version.');\n                p.parseULong(); // flags - currently unused and set to 0\n                p.parseULong(); // tableOffset\n                var numDataMaps = p.parseULong();\n\n                var tags = {};\n                for (var i = 0; i < numDataMaps; i++) {\n                  var tag = p.parseTag();\n                  var dataOffset = p.parseULong();\n                  var dataLength = p.parseULong();\n                  var text = decode.UTF8(data, start + dataOffset, dataLength);\n\n                  tags[tag] = text;\n                }\n                return tags;\n              }\n\n              function makeMetaTable(tags) {\n                var numTags = Object.keys(tags).length;\n                var stringPool = '';\n                var stringPoolOffset = 16 + numTags * 12;\n\n                var result = new table.Table('meta', [\n                  { name: 'version', type: 'ULONG', value: 1 },\n                  { name: 'flags', type: 'ULONG', value: 0 },\n                  { name: 'offset', type: 'ULONG', value: stringPoolOffset },\n                  { name: 'numTags', type: 'ULONG', value: numTags }\n                ]);\n\n                for (var tag in tags) {\n                  var pos = stringPool.length;\n                  stringPool += tags[tag];\n\n                  result.fields.push({ name: 'tag ' + tag, type: 'TAG', value: tag });\n                  result.fields.push({\n                    name: 'offset ' + tag,\n                    type: 'ULONG',\n                    value: stringPoolOffset + pos\n                  });\n                  result.fields.push({\n                    name: 'length ' + tag,\n                    type: 'ULONG',\n                    value: tags[tag].length\n                  });\n                }\n\n                result.fields.push({\n                  name: 'stringPool',\n                  type: 'CHARARRAY',\n                  value: stringPool\n                });\n\n                return result;\n              }\n\n              var meta = { parse: parseMetaTable, make: makeMetaTable };\n\n              // The `sfnt` wrapper provides organization for the tables in the font.\n\n              function log2(v) {\n                return (Math.log(v) / Math.log(2)) | 0;\n              }\n\n              function computeCheckSum(bytes) {\n                while (bytes.length % 4 !== 0) {\n                  bytes.push(0);\n                }\n\n                var sum = 0;\n                for (var i = 0; i < bytes.length; i += 4) {\n                  sum +=\n                    (bytes[i] << 24) +\n                    (bytes[i + 1] << 16) +\n                    (bytes[i + 2] << 8) +\n                    bytes[i + 3];\n                }\n\n                sum %= Math.pow(2, 32);\n                return sum;\n              }\n\n              function makeTableRecord(tag, checkSum, offset, length) {\n                return new table.Record('Table Record', [\n                  { name: 'tag', type: 'TAG', value: tag !== undefined ? tag : '' },\n                  {\n                    name: 'checkSum',\n                    type: 'ULONG',\n                    value: checkSum !== undefined ? checkSum : 0\n                  },\n                  {\n                    name: 'offset',\n                    type: 'ULONG',\n                    value: offset !== undefined ? offset : 0\n                  },\n                  {\n                    name: 'length',\n                    type: 'ULONG',\n                    value: length !== undefined ? length : 0\n                  }\n                ]);\n              }\n\n              function makeSfntTable(tables) {\n                var sfnt = new table.Table('sfnt', [\n                  { name: 'version', type: 'TAG', value: 'OTTO' },\n                  { name: 'numTables', type: 'USHORT', value: 0 },\n                  { name: 'searchRange', type: 'USHORT', value: 0 },\n                  { name: 'entrySelector', type: 'USHORT', value: 0 },\n                  { name: 'rangeShift', type: 'USHORT', value: 0 }\n                ]);\n                sfnt.tables = tables;\n                sfnt.numTables = tables.length;\n                var highestPowerOf2 = Math.pow(2, log2(sfnt.numTables));\n                sfnt.searchRange = 16 * highestPowerOf2;\n                sfnt.entrySelector = log2(highestPowerOf2);\n                sfnt.rangeShift = sfnt.numTables * 16 - sfnt.searchRange;\n\n                var recordFields = [];\n                var tableFields = [];\n\n                var offset = sfnt.sizeOf() + makeTableRecord().sizeOf() * sfnt.numTables;\n                while (offset % 4 !== 0) {\n                  offset += 1;\n                  tableFields.push({ name: 'padding', type: 'BYTE', value: 0 });\n                }\n\n                for (var i = 0; i < tables.length; i += 1) {\n                  var t = tables[i];\n                  check.argument(\n                    t.tableName.length === 4,\n                    'Table name' + t.tableName + ' is invalid.'\n                  );\n                  var tableLength = t.sizeOf();\n                  var tableRecord = makeTableRecord(\n                    t.tableName,\n                    computeCheckSum(t.encode()),\n                    offset,\n                    tableLength\n                  );\n                  recordFields.push({\n                    name: tableRecord.tag + ' Table Record',\n                    type: 'RECORD',\n                    value: tableRecord\n                  });\n                  tableFields.push({\n                    name: t.tableName + ' table',\n                    type: 'RECORD',\n                    value: t\n                  });\n                  offset += tableLength;\n                  check.argument(\n                    !isNaN(offset),\n                    'Something went wrong calculating the offset.'\n                  );\n                  while (offset % 4 !== 0) {\n                    offset += 1;\n                    tableFields.push({ name: 'padding', type: 'BYTE', value: 0 });\n                  }\n                }\n\n                // Table records need to be sorted alphabetically.\n                recordFields.sort(function(r1, r2) {\n                  if (r1.value.tag > r2.value.tag) {\n                    return 1;\n                  } else {\n                    return -1;\n                  }\n                });\n\n                sfnt.fields = sfnt.fields.concat(recordFields);\n                sfnt.fields = sfnt.fields.concat(tableFields);\n                return sfnt;\n              }\n\n              // Get the metrics for a character. If the string has more than one character\n              // this function returns metrics for the first available character.\n              // You can provide optional fallback metrics if no characters are available.\n              function metricsForChar(font, chars, notFoundMetrics) {\n                for (var i = 0; i < chars.length; i += 1) {\n                  var glyphIndex = font.charToGlyphIndex(chars[i]);\n                  if (glyphIndex > 0) {\n                    var glyph = font.glyphs.get(glyphIndex);\n                    return glyph.getMetrics();\n                  }\n                }\n\n                return notFoundMetrics;\n              }\n\n              function average(vs) {\n                var sum = 0;\n                for (var i = 0; i < vs.length; i += 1) {\n                  sum += vs[i];\n                }\n\n                return sum / vs.length;\n              }\n\n              // Convert the font object to a SFNT data structure.\n              // This structure contains all the necessary tables and metadata to create a binary OTF file.\n              function fontToSfntTable(font) {\n                var xMins = [];\n                var yMins = [];\n                var xMaxs = [];\n                var yMaxs = [];\n                var advanceWidths = [];\n                var leftSideBearings = [];\n                var rightSideBearings = [];\n                var firstCharIndex;\n                var lastCharIndex = 0;\n                var ulUnicodeRange1 = 0;\n                var ulUnicodeRange2 = 0;\n                var ulUnicodeRange3 = 0;\n                var ulUnicodeRange4 = 0;\n\n                for (var i = 0; i < font.glyphs.length; i += 1) {\n                  var glyph = font.glyphs.get(i);\n                  var unicode = glyph.unicode | 0;\n\n                  if (isNaN(glyph.advanceWidth)) {\n                    throw new Error(\n                      'Glyph ' + glyph.name + ' (' + i + '): advanceWidth is not a number.'\n                    );\n                  }\n\n                  if (firstCharIndex > unicode || firstCharIndex === undefined) {\n                    // ignore .notdef char\n                    if (unicode > 0) {\n                      firstCharIndex = unicode;\n                    }\n                  }\n\n                  if (lastCharIndex < unicode) {\n                    lastCharIndex = unicode;\n                  }\n\n                  var position = os2.getUnicodeRange(unicode);\n                  if (position < 32) {\n                    ulUnicodeRange1 |= 1 << position;\n                  } else if (position < 64) {\n                    ulUnicodeRange2 |= 1 << (position - 32);\n                  } else if (position < 96) {\n                    ulUnicodeRange3 |= 1 << (position - 64);\n                  } else if (position < 123) {\n                    ulUnicodeRange4 |= 1 << (position - 96);\n                  } else {\n                    throw new Error(\n                      'Unicode ranges bits > 123 are reserved for internal usage'\n                    );\n                  }\n                  // Skip non-important characters.\n                  if (glyph.name === '.notdef') {\n                    continue;\n                  }\n                  var metrics = glyph.getMetrics();\n                  xMins.push(metrics.xMin);\n                  yMins.push(metrics.yMin);\n                  xMaxs.push(metrics.xMax);\n                  yMaxs.push(metrics.yMax);\n                  leftSideBearings.push(metrics.leftSideBearing);\n                  rightSideBearings.push(metrics.rightSideBearing);\n                  advanceWidths.push(glyph.advanceWidth);\n                }\n\n                var globals = {\n                  xMin: Math.min.apply(null, xMins),\n                  yMin: Math.min.apply(null, yMins),\n                  xMax: Math.max.apply(null, xMaxs),\n                  yMax: Math.max.apply(null, yMaxs),\n                  advanceWidthMax: Math.max.apply(null, advanceWidths),\n                  advanceWidthAvg: average(advanceWidths),\n                  minLeftSideBearing: Math.min.apply(null, leftSideBearings),\n                  maxLeftSideBearing: Math.max.apply(null, leftSideBearings),\n                  minRightSideBearing: Math.min.apply(null, rightSideBearings)\n                };\n                globals.ascender = font.ascender;\n                globals.descender = font.descender;\n\n                var headTable = head.make({\n                  flags: 3, // 00000011 (baseline for font at y=0; left sidebearing point at x=0)\n                  unitsPerEm: font.unitsPerEm,\n                  xMin: globals.xMin,\n                  yMin: globals.yMin,\n                  xMax: globals.xMax,\n                  yMax: globals.yMax,\n                  lowestRecPPEM: 3,\n                  createdTimestamp: font.createdTimestamp\n                });\n\n                var hheaTable = hhea.make({\n                  ascender: globals.ascender,\n                  descender: globals.descender,\n                  advanceWidthMax: globals.advanceWidthMax,\n                  minLeftSideBearing: globals.minLeftSideBearing,\n                  minRightSideBearing: globals.minRightSideBearing,\n                  xMaxExtent: globals.maxLeftSideBearing + (globals.xMax - globals.xMin),\n                  numberOfHMetrics: font.glyphs.length\n                });\n\n                var maxpTable = maxp.make(font.glyphs.length);\n\n                var os2Table = os2.make({\n                  xAvgCharWidth: Math.round(globals.advanceWidthAvg),\n                  usWeightClass: font.tables.os2.usWeightClass,\n                  usWidthClass: font.tables.os2.usWidthClass,\n                  usFirstCharIndex: firstCharIndex,\n                  usLastCharIndex: lastCharIndex,\n                  ulUnicodeRange1: ulUnicodeRange1,\n                  ulUnicodeRange2: ulUnicodeRange2,\n                  ulUnicodeRange3: ulUnicodeRange3,\n                  ulUnicodeRange4: ulUnicodeRange4,\n                  fsSelection: font.tables.os2.fsSelection, // REGULAR\n                  // See http://typophile.com/node/13081 for more info on vertical metrics.\n                  // We get metrics for typical characters (such as \"x\" for xHeight).\n                  // We provide some fallback characters if characters are unavailable: their\n                  // ordering was chosen experimentally.\n                  sTypoAscender: globals.ascender,\n                  sTypoDescender: globals.descender,\n                  sTypoLineGap: 0,\n                  usWinAscent: globals.yMax,\n                  usWinDescent: Math.abs(globals.yMin),\n                  ulCodePageRange1: 1, // FIXME: hard-code Latin 1 support for now\n                  sxHeight: metricsForChar(font, 'xyvw', {\n                    yMax: Math.round(globals.ascender / 2)\n                  }).yMax,\n                  sCapHeight: metricsForChar(font, 'HIKLEFJMNTZBDPRAGOQSUVWXY', globals)\n                    .yMax,\n                  usDefaultChar: font.hasChar(' ') ? 32 : 0, // Use space as the default character, if available.\n                  usBreakChar: font.hasChar(' ') ? 32 : 0 // Use space as the break character, if available.\n                });\n\n                var hmtxTable = hmtx.make(font.glyphs);\n                var cmapTable = cmap.make(font.glyphs);\n\n                var englishFamilyName = font.getEnglishName('fontFamily');\n                var englishStyleName = font.getEnglishName('fontSubfamily');\n                var englishFullName = englishFamilyName + ' ' + englishStyleName;\n                var postScriptName = font.getEnglishName('postScriptName');\n                if (!postScriptName) {\n                  postScriptName =\n                    englishFamilyName.replace(/\\s/g, '') + '-' + englishStyleName;\n                }\n\n                var names = {};\n                for (var n in font.names) {\n                  names[n] = font.names[n];\n                }\n\n                if (!names.uniqueID) {\n                  names.uniqueID = {\n                    en: font.getEnglishName('manufacturer') + ':' + englishFullName\n                  };\n                }\n\n                if (!names.postScriptName) {\n                  names.postScriptName = { en: postScriptName };\n                }\n\n                if (!names.preferredFamily) {\n                  names.preferredFamily = font.names.fontFamily;\n                }\n\n                if (!names.preferredSubfamily) {\n                  names.preferredSubfamily = font.names.fontSubfamily;\n                }\n\n                var languageTags = [];\n                var nameTable = _name.make(names, languageTags);\n                var ltagTable =\n                  languageTags.length > 0 ? ltag.make(languageTags) : undefined;\n\n                var postTable = post.make();\n                var cffTable = cff.make(font.glyphs, {\n                  version: font.getEnglishName('version'),\n                  fullName: englishFullName,\n                  familyName: englishFamilyName,\n                  weightName: englishStyleName,\n                  postScriptName: postScriptName,\n                  unitsPerEm: font.unitsPerEm,\n                  fontBBox: [0, globals.yMin, globals.ascender, globals.advanceWidthMax]\n                });\n\n                var metaTable =\n                  font.metas && Object.keys(font.metas).length > 0\n                    ? meta.make(font.metas)\n                    : undefined;\n\n                // The order does not matter because makeSfntTable() will sort them.\n                var tables = [\n                  headTable,\n                  hheaTable,\n                  maxpTable,\n                  os2Table,\n                  nameTable,\n                  cmapTable,\n                  postTable,\n                  cffTable,\n                  hmtxTable\n                ];\n                if (ltagTable) {\n                  tables.push(ltagTable);\n                }\n                // Optional tables\n                if (font.tables.gsub) {\n                  tables.push(gsub.make(font.tables.gsub));\n                }\n                if (metaTable) {\n                  tables.push(metaTable);\n                }\n\n                var sfntTable = makeSfntTable(tables);\n\n                // Compute the font's checkSum and store it in head.checkSumAdjustment.\n                var bytes = sfntTable.encode();\n                var checkSum = computeCheckSum(bytes);\n                var tableFields = sfntTable.fields;\n                var checkSumAdjusted = false;\n                for (var i$1 = 0; i$1 < tableFields.length; i$1 += 1) {\n                  if (tableFields[i$1].name === 'head table') {\n                    tableFields[i$1].value.checkSumAdjustment = 0xb1b0afba - checkSum;\n                    checkSumAdjusted = true;\n                    break;\n                  }\n                }\n\n                if (!checkSumAdjusted) {\n                  throw new Error('Could not find head table with checkSum to adjust.');\n                }\n\n                return sfntTable;\n              }\n\n              var sfnt = {\n                make: makeSfntTable,\n                fontToTable: fontToSfntTable,\n                computeCheckSum: computeCheckSum\n              };\n\n              // The Layout object is the prototype of Substitution objects, and provides\n\n              function searchTag(arr, tag) {\n                /* jshint bitwise: false */\n                var imin = 0;\n                var imax = arr.length - 1;\n                while (imin <= imax) {\n                  var imid = (imin + imax) >>> 1;\n                  var val = arr[imid].tag;\n                  if (val === tag) {\n                    return imid;\n                  } else if (val < tag) {\n                    imin = imid + 1;\n                  } else {\n                    imax = imid - 1;\n                  }\n                }\n                // Not found: return -1-insertion point\n                return -imin - 1;\n              }\n\n              function binSearch(arr, value) {\n                /* jshint bitwise: false */\n                var imin = 0;\n                var imax = arr.length - 1;\n                while (imin <= imax) {\n                  var imid = (imin + imax) >>> 1;\n                  var val = arr[imid];\n                  if (val === value) {\n                    return imid;\n                  } else if (val < value) {\n                    imin = imid + 1;\n                  } else {\n                    imax = imid - 1;\n                  }\n                }\n                // Not found: return -1-insertion point\n                return -imin - 1;\n              }\n\n              // binary search in a list of ranges (coverage, class definition)\n              function searchRange(ranges, value) {\n                // jshint bitwise: false\n                var range;\n                var imin = 0;\n                var imax = ranges.length - 1;\n                while (imin <= imax) {\n                  var imid = (imin + imax) >>> 1;\n                  range = ranges[imid];\n                  var start = range.start;\n                  if (start === value) {\n                    return range;\n                  } else if (start < value) {\n                    imin = imid + 1;\n                  } else {\n                    imax = imid - 1;\n                  }\n                }\n                if (imin > 0) {\n                  range = ranges[imin - 1];\n                  if (value > range.end) {\n                    return 0;\n                  }\n                  return range;\n                }\n              }\n\n              /**\n               * @exports opentype.Layout\n               * @class\n               */\n              function Layout(font, tableName) {\n                this.font = font;\n                this.tableName = tableName;\n              }\n\n              Layout.prototype = {\n                /**\n                 * Binary search an object by \"tag\" property\n                 * @instance\n                 * @function searchTag\n                 * @memberof opentype.Layout\n                 * @param  {Array} arr\n                 * @param  {string} tag\n                 * @return {number}\n                 */\n                searchTag: searchTag,\n\n                /**\n                 * Binary search in a list of numbers\n                 * @instance\n                 * @function binSearch\n                 * @memberof opentype.Layout\n                 * @param  {Array} arr\n                 * @param  {number} value\n                 * @return {number}\n                 */\n                binSearch: binSearch,\n\n                /**\n                 * Get or create the Layout table (GSUB, GPOS etc).\n                 * @param  {boolean} create - Whether to create a new one.\n                 * @return {Object} The GSUB or GPOS table.\n                 */\n                getTable: function(create) {\n                  var layout = this.font.tables[this.tableName];\n                  if (!layout && create) {\n                    layout = this.font.tables[this.tableName] = this.createDefaultTable();\n                  }\n                  return layout;\n                },\n\n                /**\n                 * Returns all scripts in the substitution table.\n                 * @instance\n                 * @return {Array}\n                 */\n                getScriptNames: function() {\n                  var layout = this.getTable();\n                  if (!layout) {\n                    return [];\n                  }\n                  return layout.scripts.map(function(script) {\n                    return script.tag;\n                  });\n                },\n\n                /**\n                 * Returns the best bet for a script name.\n                 * Returns 'DFLT' if it exists.\n                 * If not, returns 'latn' if it exists.\n                 * If neither exist, returns undefined.\n                 */\n                getDefaultScriptName: function() {\n                  var layout = this.getTable();\n                  if (!layout) {\n                    return;\n                  }\n                  var hasLatn = false;\n                  for (var i = 0; i < layout.scripts.length; i++) {\n                    var name = layout.scripts[i].tag;\n                    if (name === 'DFLT') {\n                      return name;\n                    }\n                    if (name === 'latn') {\n                      hasLatn = true;\n                    }\n                  }\n                  if (hasLatn) {\n                    return 'latn';\n                  }\n                },\n\n                /**\n                 * Returns all LangSysRecords in the given script.\n                 * @instance\n                 * @param {string} [script='DFLT']\n                 * @param {boolean} create - forces the creation of this script table if it doesn't exist.\n                 * @return {Object} An object with tag and script properties.\n                 */\n                getScriptTable: function(script, create) {\n                  var layout = this.getTable(create);\n                  if (layout) {\n                    script = script || 'DFLT';\n                    var scripts = layout.scripts;\n                    var pos = searchTag(layout.scripts, script);\n                    if (pos >= 0) {\n                      return scripts[pos].script;\n                    } else if (create) {\n                      var scr = {\n                        tag: script,\n                        script: {\n                          defaultLangSys: {\n                            reserved: 0,\n                            reqFeatureIndex: 0xffff,\n                            featureIndexes: []\n                          },\n                          langSysRecords: []\n                        }\n                      };\n                      scripts.splice(-1 - pos, 0, scr);\n                      return scr.script;\n                    }\n                  }\n                },\n\n                /**\n                 * Returns a language system table\n                 * @instance\n                 * @param {string} [script='DFLT']\n                 * @param {string} [language='dlft']\n                 * @param {boolean} create - forces the creation of this langSysTable if it doesn't exist.\n                 * @return {Object}\n                 */\n                getLangSysTable: function(script, language, create) {\n                  var scriptTable = this.getScriptTable(script, create);\n                  if (scriptTable) {\n                    if (!language || language === 'dflt' || language === 'DFLT') {\n                      return scriptTable.defaultLangSys;\n                    }\n                    var pos = searchTag(scriptTable.langSysRecords, language);\n                    if (pos >= 0) {\n                      return scriptTable.langSysRecords[pos].langSys;\n                    } else if (create) {\n                      var langSysRecord = {\n                        tag: language,\n                        langSys: {\n                          reserved: 0,\n                          reqFeatureIndex: 0xffff,\n                          featureIndexes: []\n                        }\n                      };\n                      scriptTable.langSysRecords.splice(-1 - pos, 0, langSysRecord);\n                      return langSysRecord.langSys;\n                    }\n                  }\n                },\n\n                /**\n                 * Get a specific feature table.\n                 * @instance\n                 * @param {string} [script='DFLT']\n                 * @param {string} [language='dlft']\n                 * @param {string} feature - One of the codes listed at https://www.microsoft.com/typography/OTSPEC/featurelist.htm\n                 * @param {boolean} create - forces the creation of the feature table if it doesn't exist.\n                 * @return {Object}\n                 */\n                getFeatureTable: function(script, language, feature, create) {\n                  var langSysTable = this.getLangSysTable(script, language, create);\n                  if (langSysTable) {\n                    var featureRecord;\n                    var featIndexes = langSysTable.featureIndexes;\n                    var allFeatures = this.font.tables[this.tableName].features;\n                    // The FeatureIndex array of indices is in arbitrary order,\n                    // even if allFeatures is sorted alphabetically by feature tag.\n                    for (var i = 0; i < featIndexes.length; i++) {\n                      featureRecord = allFeatures[featIndexes[i]];\n                      if (featureRecord.tag === feature) {\n                        return featureRecord.feature;\n                      }\n                    }\n                    if (create) {\n                      var index = allFeatures.length;\n                      // Automatic ordering of features would require to shift feature indexes in the script list.\n                      check.assert(\n                        index === 0 || feature >= allFeatures[index - 1].tag,\n                        'Features must be added in alphabetical order.'\n                      );\n                      featureRecord = {\n                        tag: feature,\n                        feature: { params: 0, lookupListIndexes: [] }\n                      };\n                      allFeatures.push(featureRecord);\n                      featIndexes.push(index);\n                      return featureRecord.feature;\n                    }\n                  }\n                },\n\n                /**\n                 * Get the lookup tables of a given type for a script/language/feature.\n                 * @instance\n                 * @param {string} [script='DFLT']\n                 * @param {string} [language='dlft']\n                 * @param {string} feature - 4-letter feature code\n                 * @param {number} lookupType - 1 to 9\n                 * @param {boolean} create - forces the creation of the lookup table if it doesn't exist, with no subtables.\n                 * @return {Object[]}\n                 */\n                getLookupTables: function(script, language, feature, lookupType, create) {\n                  var featureTable = this.getFeatureTable(\n                    script,\n                    language,\n                    feature,\n                    create\n                  );\n                  var tables = [];\n                  if (featureTable) {\n                    var lookupTable;\n                    var lookupListIndexes = featureTable.lookupListIndexes;\n                    var allLookups = this.font.tables[this.tableName].lookups;\n                    // lookupListIndexes are in no particular order, so use naive search.\n                    for (var i = 0; i < lookupListIndexes.length; i++) {\n                      lookupTable = allLookups[lookupListIndexes[i]];\n                      if (lookupTable.lookupType === lookupType) {\n                        tables.push(lookupTable);\n                      }\n                    }\n                    if (tables.length === 0 && create) {\n                      lookupTable = {\n                        lookupType: lookupType,\n                        lookupFlag: 0,\n                        subtables: [],\n                        markFilteringSet: undefined\n                      };\n                      var index = allLookups.length;\n                      allLookups.push(lookupTable);\n                      lookupListIndexes.push(index);\n                      return [lookupTable];\n                    }\n                  }\n                  return tables;\n                },\n\n                /**\n                 * Find a glyph in a class definition table\n                 * https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2#class-definition-table\n                 * @param {object} classDefTable - an OpenType Layout class definition table\n                 * @param {number} glyphIndex - the index of the glyph to find\n                 * @returns {number} -1 if not found\n                 */\n                getGlyphClass: function(classDefTable, glyphIndex) {\n                  switch (classDefTable.format) {\n                    case 1:\n                      if (\n                        classDefTable.startGlyph <= glyphIndex &&\n                        glyphIndex < classDefTable.startGlyph + classDefTable.classes.length\n                      ) {\n                        return classDefTable.classes[glyphIndex - classDefTable.startGlyph];\n                      }\n                      return 0;\n                    case 2:\n                      var range = searchRange(classDefTable.ranges, glyphIndex);\n                      return range ? range.classId : 0;\n                  }\n                },\n\n                /**\n                 * Find a glyph in a coverage table\n                 * https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2#coverage-table\n                 * @param {object} coverageTable - an OpenType Layout coverage table\n                 * @param {number} glyphIndex - the index of the glyph to find\n                 * @returns {number} -1 if not found\n                 */\n                getCoverageIndex: function(coverageTable, glyphIndex) {\n                  switch (coverageTable.format) {\n                    case 1:\n                      var index = binSearch(coverageTable.glyphs, glyphIndex);\n                      return index >= 0 ? index : -1;\n                    case 2:\n                      var range = searchRange(coverageTable.ranges, glyphIndex);\n                      return range ? range.index + glyphIndex - range.start : -1;\n                  }\n                },\n\n                /**\n                 * Returns the list of glyph indexes of a coverage table.\n                 * Format 1: the list is stored raw\n                 * Format 2: compact list as range records.\n                 * @instance\n                 * @param  {Object} coverageTable\n                 * @return {Array}\n                 */\n                expandCoverage: function(coverageTable) {\n                  if (coverageTable.format === 1) {\n                    return coverageTable.glyphs;\n                  } else {\n                    var glyphs = [];\n                    var ranges = coverageTable.ranges;\n                    for (var i = 0; i < ranges.length; i++) {\n                      var range = ranges[i];\n                      var start = range.start;\n                      var end = range.end;\n                      for (var j = start; j <= end; j++) {\n                        glyphs.push(j);\n                      }\n                    }\n                    return glyphs;\n                  }\n                }\n              };\n\n              // The Position object provides utility methods to manipulate\n\n              /**\n               * @exports opentype.Position\n               * @class\n               * @extends opentype.Layout\n               * @param {opentype.Font}\n               * @constructor\n               */\n              function Position(font) {\n                Layout.call(this, font, 'gpos');\n              }\n\n              Position.prototype = Layout.prototype;\n\n              /**\n               * Init some data for faster and easier access later.\n               */\n              Position.prototype.init = function() {\n                var script = this.getDefaultScriptName();\n                this.defaultKerningTables = this.getKerningTables(script);\n              };\n\n              /**\n               * Find a glyph pair in a list of lookup tables of type 2 and retrieve the xAdvance kerning value.\n               *\n               * @param {integer} leftIndex - left glyph index\n               * @param {integer} rightIndex - right glyph index\n               * @returns {integer}\n               */\n              Position.prototype.getKerningValue = function(\n                kerningLookups,\n                leftIndex,\n                rightIndex\n              ) {\n                var this$1 = this;\n\n                for (var i = 0; i < kerningLookups.length; i++) {\n                  var subtables = kerningLookups[i].subtables;\n                  for (var j = 0; j < subtables.length; j++) {\n                    var subtable = subtables[j];\n                    var covIndex = this$1.getCoverageIndex(subtable.coverage, leftIndex);\n                    if (covIndex < 0) {\n                      continue;\n                    }\n                    switch (subtable.posFormat) {\n                      case 1:\n                        // Search Pair Adjustment Positioning Format 1\n                        var pairSet = subtable.pairSets[covIndex];\n                        for (var k = 0; k < pairSet.length; k++) {\n                          var pair = pairSet[k];\n                          if (pair.secondGlyph === rightIndex) {\n                            return (pair.value1 && pair.value1.xAdvance) || 0;\n                          }\n                        }\n                        break; // left glyph found, not right glyph - try next subtable\n                      case 2:\n                        // Search Pair Adjustment Positioning Format 2\n                        var class1 = this$1.getGlyphClass(subtable.classDef1, leftIndex);\n                        var class2 = this$1.getGlyphClass(subtable.classDef2, rightIndex);\n                        var pair$1 = subtable.classRecords[class1][class2];\n                        return (pair$1.value1 && pair$1.value1.xAdvance) || 0;\n                    }\n                  }\n                }\n                return 0;\n              };\n\n              /**\n               * List all kerning lookup tables.\n               *\n               * @param {string} [script='DFLT'] - use font.position.getDefaultScriptName() for a better default value\n               * @param {string} [language='dflt']\n               * @return {object[]} The list of kerning lookup tables (may be empty), or undefined if there is no GPOS table (and we should use the kern table)\n               */\n              Position.prototype.getKerningTables = function(script, language) {\n                if (this.font.tables.gpos) {\n                  return this.getLookupTables(script, language, 'kern', 2);\n                }\n              };\n\n              // The Substitution object provides utility methods to manipulate\n\n              /**\n               * @exports opentype.Substitution\n               * @class\n               * @extends opentype.Layout\n               * @param {opentype.Font}\n               * @constructor\n               */\n              function Substitution(font) {\n                Layout.call(this, font, 'gsub');\n              }\n\n              // Check if 2 arrays of primitives are equal.\n              function arraysEqual(ar1, ar2) {\n                var n = ar1.length;\n                if (n !== ar2.length) {\n                  return false;\n                }\n                for (var i = 0; i < n; i++) {\n                  if (ar1[i] !== ar2[i]) {\n                    return false;\n                  }\n                }\n                return true;\n              }\n\n              // Find the first subtable of a lookup table in a particular format.\n              function getSubstFormat(lookupTable, format, defaultSubtable) {\n                var subtables = lookupTable.subtables;\n                for (var i = 0; i < subtables.length; i++) {\n                  var subtable = subtables[i];\n                  if (subtable.substFormat === format) {\n                    return subtable;\n                  }\n                }\n                if (defaultSubtable) {\n                  subtables.push(defaultSubtable);\n                  return defaultSubtable;\n                }\n                return undefined;\n              }\n\n              Substitution.prototype = Layout.prototype;\n\n              /**\n               * Create a default GSUB table.\n               * @return {Object} gsub - The GSUB table.\n               */\n              Substitution.prototype.createDefaultTable = function() {\n                // Generate a default empty GSUB table with just a DFLT script and dflt lang sys.\n                return {\n                  version: 1,\n                  scripts: [\n                    {\n                      tag: 'DFLT',\n                      script: {\n                        defaultLangSys: {\n                          reserved: 0,\n                          reqFeatureIndex: 0xffff,\n                          featureIndexes: []\n                        },\n                        langSysRecords: []\n                      }\n                    }\n                  ],\n                  features: [],\n                  lookups: []\n                };\n              };\n\n              /**\n               * List all single substitutions (lookup type 1) for a given script, language, and feature.\n               * @param {string} [script='DFLT']\n               * @param {string} [language='dflt']\n               * @param {string} feature - 4-character feature name ('aalt', 'salt', 'ss01'...)\n               * @return {Array} substitutions - The list of substitutions.\n               */\n              Substitution.prototype.getSingle = function(feature, script, language) {\n                var this$1 = this;\n\n                var substitutions = [];\n                var lookupTables = this.getLookupTables(script, language, feature, 1);\n                for (var idx = 0; idx < lookupTables.length; idx++) {\n                  var subtables = lookupTables[idx].subtables;\n                  for (var i = 0; i < subtables.length; i++) {\n                    var subtable = subtables[i];\n                    var glyphs = this$1.expandCoverage(subtable.coverage);\n                    var j = void 0;\n                    if (subtable.substFormat === 1) {\n                      var delta = subtable.deltaGlyphId;\n                      for (j = 0; j < glyphs.length; j++) {\n                        var glyph = glyphs[j];\n                        substitutions.push({ sub: glyph, by: glyph + delta });\n                      }\n                    } else {\n                      var substitute = subtable.substitute;\n                      for (j = 0; j < glyphs.length; j++) {\n                        substitutions.push({ sub: glyphs[j], by: substitute[j] });\n                      }\n                    }\n                  }\n                }\n                return substitutions;\n              };\n\n              /**\n               * List all alternates (lookup type 3) for a given script, language, and feature.\n               * @param {string} [script='DFLT']\n               * @param {string} [language='dflt']\n               * @param {string} feature - 4-character feature name ('aalt', 'salt'...)\n               * @return {Array} alternates - The list of alternates\n               */\n              Substitution.prototype.getAlternates = function(feature, script, language) {\n                var this$1 = this;\n\n                var alternates = [];\n                var lookupTables = this.getLookupTables(script, language, feature, 3);\n                for (var idx = 0; idx < lookupTables.length; idx++) {\n                  var subtables = lookupTables[idx].subtables;\n                  for (var i = 0; i < subtables.length; i++) {\n                    var subtable = subtables[i];\n                    var glyphs = this$1.expandCoverage(subtable.coverage);\n                    var alternateSets = subtable.alternateSets;\n                    for (var j = 0; j < glyphs.length; j++) {\n                      alternates.push({ sub: glyphs[j], by: alternateSets[j] });\n                    }\n                  }\n                }\n                return alternates;\n              };\n\n              /**\n               * List all ligatures (lookup type 4) for a given script, language, and feature.\n               * The result is an array of ligature objects like { sub: [ids], by: id }\n               * @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...)\n               * @param {string} [script='DFLT']\n               * @param {string} [language='dflt']\n               * @return {Array} ligatures - The list of ligatures.\n               */\n              Substitution.prototype.getLigatures = function(feature, script, language) {\n                var this$1 = this;\n\n                var ligatures = [];\n                var lookupTables = this.getLookupTables(script, language, feature, 4);\n                for (var idx = 0; idx < lookupTables.length; idx++) {\n                  var subtables = lookupTables[idx].subtables;\n                  for (var i = 0; i < subtables.length; i++) {\n                    var subtable = subtables[i];\n                    var glyphs = this$1.expandCoverage(subtable.coverage);\n                    var ligatureSets = subtable.ligatureSets;\n                    for (var j = 0; j < glyphs.length; j++) {\n                      var startGlyph = glyphs[j];\n                      var ligSet = ligatureSets[j];\n                      for (var k = 0; k < ligSet.length; k++) {\n                        var lig = ligSet[k];\n                        ligatures.push({\n                          sub: [startGlyph].concat(lig.components),\n                          by: lig.ligGlyph\n                        });\n                      }\n                    }\n                  }\n                }\n                return ligatures;\n              };\n\n              /**\n               * Add or modify a single substitution (lookup type 1)\n               * Format 2, more flexible, is always used.\n               * @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...)\n               * @param {Object} substitution - { sub: id, delta: number } for format 1 or { sub: id, by: id } for format 2.\n               * @param {string} [script='DFLT']\n               * @param {string} [language='dflt']\n               */\n              Substitution.prototype.addSingle = function(\n                feature,\n                substitution,\n                script,\n                language\n              ) {\n                var lookupTable = this.getLookupTables(\n                  script,\n                  language,\n                  feature,\n                  1,\n                  true\n                )[0];\n                var subtable = getSubstFormat(lookupTable, 2, {\n                  // lookup type 1 subtable, format 2, coverage format 1\n                  substFormat: 2,\n                  coverage: { format: 1, glyphs: [] },\n                  substitute: []\n                });\n                check.assert(\n                  subtable.coverage.format === 1,\n                  'Ligature: unable to modify coverage table format ' +\n                    subtable.coverage.format\n                );\n                var coverageGlyph = substitution.sub;\n                var pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph);\n                if (pos < 0) {\n                  pos = -1 - pos;\n                  subtable.coverage.glyphs.splice(pos, 0, coverageGlyph);\n                  subtable.substitute.splice(pos, 0, 0);\n                }\n                subtable.substitute[pos] = substitution.by;\n              };\n\n              /**\n               * Add or modify an alternate substitution (lookup type 1)\n               * @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...)\n               * @param {Object} substitution - { sub: id, by: [ids] }\n               * @param {string} [script='DFLT']\n               * @param {string} [language='dflt']\n               */\n              Substitution.prototype.addAlternate = function(\n                feature,\n                substitution,\n                script,\n                language\n              ) {\n                var lookupTable = this.getLookupTables(\n                  script,\n                  language,\n                  feature,\n                  3,\n                  true\n                )[0];\n                var subtable = getSubstFormat(lookupTable, 1, {\n                  // lookup type 3 subtable, format 1, coverage format 1\n                  substFormat: 1,\n                  coverage: { format: 1, glyphs: [] },\n                  alternateSets: []\n                });\n                check.assert(\n                  subtable.coverage.format === 1,\n                  'Ligature: unable to modify coverage table format ' +\n                    subtable.coverage.format\n                );\n                var coverageGlyph = substitution.sub;\n                var pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph);\n                if (pos < 0) {\n                  pos = -1 - pos;\n                  subtable.coverage.glyphs.splice(pos, 0, coverageGlyph);\n                  subtable.alternateSets.splice(pos, 0, 0);\n                }\n                subtable.alternateSets[pos] = substitution.by;\n              };\n\n              /**\n               * Add a ligature (lookup type 4)\n               * Ligatures with more components must be stored ahead of those with fewer components in order to be found\n               * @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...)\n               * @param {Object} ligature - { sub: [ids], by: id }\n               * @param {string} [script='DFLT']\n               * @param {string} [language='dflt']\n               */\n              Substitution.prototype.addLigature = function(\n                feature,\n                ligature,\n                script,\n                language\n              ) {\n                var lookupTable = this.getLookupTables(\n                  script,\n                  language,\n                  feature,\n                  4,\n                  true\n                )[0];\n                var subtable = lookupTable.subtables[0];\n                if (!subtable) {\n                  subtable = {\n                    // lookup type 4 subtable, format 1, coverage format 1\n                    substFormat: 1,\n                    coverage: { format: 1, glyphs: [] },\n                    ligatureSets: []\n                  };\n                  lookupTable.subtables[0] = subtable;\n                }\n                check.assert(\n                  subtable.coverage.format === 1,\n                  'Ligature: unable to modify coverage table format ' +\n                    subtable.coverage.format\n                );\n                var coverageGlyph = ligature.sub[0];\n                var ligComponents = ligature.sub.slice(1);\n                var ligatureTable = {\n                  ligGlyph: ligature.by,\n                  components: ligComponents\n                };\n                var pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph);\n                if (pos >= 0) {\n                  // ligatureSet already exists\n                  var ligatureSet = subtable.ligatureSets[pos];\n                  for (var i = 0; i < ligatureSet.length; i++) {\n                    // If ligature already exists, return.\n                    if (arraysEqual(ligatureSet[i].components, ligComponents)) {\n                      return;\n                    }\n                  }\n                  // ligature does not exist: add it.\n                  ligatureSet.push(ligatureTable);\n                } else {\n                  // Create a new ligatureSet and add coverage for the first glyph.\n                  pos = -1 - pos;\n                  subtable.coverage.glyphs.splice(pos, 0, coverageGlyph);\n                  subtable.ligatureSets.splice(pos, 0, [ligatureTable]);\n                }\n              };\n\n              /**\n               * List all feature data for a given script and language.\n               * @param {string} feature - 4-letter feature name\n               * @param {string} [script='DFLT']\n               * @param {string} [language='dflt']\n               * @return {Array} substitutions - The list of substitutions.\n               */\n              Substitution.prototype.getFeature = function(feature, script, language) {\n                if (/ss\\d\\d/.test(feature)) {\n                  // ss01 - ss20\n                  return this.getSingle(feature, script, language);\n                }\n                switch (feature) {\n                  case 'aalt':\n                  case 'salt':\n                    return this.getSingle(feature, script, language).concat(\n                      this.getAlternates(feature, script, language)\n                    );\n                  case 'dlig':\n                  case 'liga':\n                  case 'rlig':\n                    return this.getLigatures(feature, script, language);\n                }\n                return undefined;\n              };\n\n              /**\n               * Add a substitution to a feature for a given script and language.\n               * @param {string} feature - 4-letter feature name\n               * @param {Object} sub - the substitution to add (an object like { sub: id or [ids], by: id or [ids] })\n               * @param {string} [script='DFLT']\n               * @param {string} [language='dflt']\n               */\n              Substitution.prototype.add = function(feature, sub, script, language) {\n                if (/ss\\d\\d/.test(feature)) {\n                  // ss01 - ss20\n                  return this.addSingle(feature, sub, script, language);\n                }\n                switch (feature) {\n                  case 'aalt':\n                  case 'salt':\n                    if (typeof sub.by === 'number') {\n                      return this.addSingle(feature, sub, script, language);\n                    }\n                    return this.addAlternate(feature, sub, script, language);\n                  case 'dlig':\n                  case 'liga':\n                  case 'rlig':\n                    return this.addLigature(feature, sub, script, language);\n                }\n                return undefined;\n              };\n\n              function isBrowser() {\n                return typeof window !== 'undefined';\n              }\n\n              function nodeBufferToArrayBuffer(buffer) {\n                var ab = new ArrayBuffer(buffer.length);\n                var view = new Uint8Array(ab);\n                for (var i = 0; i < buffer.length; ++i) {\n                  view[i] = buffer[i];\n                }\n\n                return ab;\n              }\n\n              function arrayBufferToNodeBuffer(ab) {\n                var buffer = new Buffer(ab.byteLength);\n                var view = new Uint8Array(ab);\n                for (var i = 0; i < buffer.length; ++i) {\n                  buffer[i] = view[i];\n                }\n\n                return buffer;\n              }\n\n              function checkArgument(expression, message) {\n                if (!expression) {\n                  throw message;\n                }\n              }\n\n              // The `glyf` table describes the glyphs in TrueType outline format.\n\n              // Parse the coordinate data for a glyph.\n              function parseGlyphCoordinate(\n                p,\n                flag,\n                previousValue,\n                shortVectorBitMask,\n                sameBitMask\n              ) {\n                var v;\n                if ((flag & shortVectorBitMask) > 0) {\n                  // The coordinate is 1 byte long.\n                  v = p.parseByte();\n                  // The `same` bit is re-used for short values to signify the sign of the value.\n                  if ((flag & sameBitMask) === 0) {\n                    v = -v;\n                  }\n\n                  v = previousValue + v;\n                } else {\n                  //  The coordinate is 2 bytes long.\n                  // If the `same` bit is set, the coordinate is the same as the previous coordinate.\n                  if ((flag & sameBitMask) > 0) {\n                    v = previousValue;\n                  } else {\n                    // Parse the coordinate as a signed 16-bit delta value.\n                    v = previousValue + p.parseShort();\n                  }\n                }\n\n                return v;\n              }\n\n              // Parse a TrueType glyph.\n              function parseGlyph(glyph, data, start) {\n                var p = new parse.Parser(data, start);\n                glyph.numberOfContours = p.parseShort();\n                glyph._xMin = p.parseShort();\n                glyph._yMin = p.parseShort();\n                glyph._xMax = p.parseShort();\n                glyph._yMax = p.parseShort();\n                var flags;\n                var flag;\n\n                if (glyph.numberOfContours > 0) {\n                  // This glyph is not a composite.\n                  var endPointIndices = (glyph.endPointIndices = []);\n                  for (var i = 0; i < glyph.numberOfContours; i += 1) {\n                    endPointIndices.push(p.parseUShort());\n                  }\n\n                  glyph.instructionLength = p.parseUShort();\n                  glyph.instructions = [];\n                  for (var i$1 = 0; i$1 < glyph.instructionLength; i$1 += 1) {\n                    glyph.instructions.push(p.parseByte());\n                  }\n\n                  var numberOfCoordinates = endPointIndices[endPointIndices.length - 1] + 1;\n                  flags = [];\n                  for (var i$2 = 0; i$2 < numberOfCoordinates; i$2 += 1) {\n                    flag = p.parseByte();\n                    flags.push(flag);\n                    // If bit 3 is set, we repeat this flag n times, where n is the next byte.\n                    if ((flag & 8) > 0) {\n                      var repeatCount = p.parseByte();\n                      for (var j = 0; j < repeatCount; j += 1) {\n                        flags.push(flag);\n                        i$2 += 1;\n                      }\n                    }\n                  }\n\n                  check.argument(flags.length === numberOfCoordinates, 'Bad flags.');\n\n                  if (endPointIndices.length > 0) {\n                    var points = [];\n                    var point;\n                    // X/Y coordinates are relative to the previous point, except for the first point which is relative to 0,0.\n                    if (numberOfCoordinates > 0) {\n                      for (var i$3 = 0; i$3 < numberOfCoordinates; i$3 += 1) {\n                        flag = flags[i$3];\n                        point = {};\n                        point.onCurve = !!(flag & 1);\n                        point.lastPointOfContour = endPointIndices.indexOf(i$3) >= 0;\n                        points.push(point);\n                      }\n\n                      var px = 0;\n                      for (var i$4 = 0; i$4 < numberOfCoordinates; i$4 += 1) {\n                        flag = flags[i$4];\n                        point = points[i$4];\n                        point.x = parseGlyphCoordinate(p, flag, px, 2, 16);\n                        px = point.x;\n                      }\n\n                      var py = 0;\n                      for (var i$5 = 0; i$5 < numberOfCoordinates; i$5 += 1) {\n                        flag = flags[i$5];\n                        point = points[i$5];\n                        point.y = parseGlyphCoordinate(p, flag, py, 4, 32);\n                        py = point.y;\n                      }\n                    }\n\n                    glyph.points = points;\n                  } else {\n                    glyph.points = [];\n                  }\n                } else if (glyph.numberOfContours === 0) {\n                  glyph.points = [];\n                } else {\n                  glyph.isComposite = true;\n                  glyph.points = [];\n                  glyph.components = [];\n                  var moreComponents = true;\n                  while (moreComponents) {\n                    flags = p.parseUShort();\n                    var component = {\n                      glyphIndex: p.parseUShort(),\n                      xScale: 1,\n                      scale01: 0,\n                      scale10: 0,\n                      yScale: 1,\n                      dx: 0,\n                      dy: 0\n                    };\n                    if ((flags & 1) > 0) {\n                      // The arguments are words\n                      if ((flags & 2) > 0) {\n                        // values are offset\n                        component.dx = p.parseShort();\n                        component.dy = p.parseShort();\n                      } else {\n                        // values are matched points\n                        component.matchedPoints = [p.parseUShort(), p.parseUShort()];\n                      }\n                    } else {\n                      // The arguments are bytes\n                      if ((flags & 2) > 0) {\n                        // values are offset\n                        component.dx = p.parseChar();\n                        component.dy = p.parseChar();\n                      } else {\n                        // values are matched points\n                        component.matchedPoints = [p.parseByte(), p.parseByte()];\n                      }\n                    }\n\n                    if ((flags & 8) > 0) {\n                      // We have a scale\n                      component.xScale = component.yScale = p.parseF2Dot14();\n                    } else if ((flags & 64) > 0) {\n                      // We have an X / Y scale\n                      component.xScale = p.parseF2Dot14();\n                      component.yScale = p.parseF2Dot14();\n                    } else if ((flags & 128) > 0) {\n                      // We have a 2x2 transformation\n                      component.xScale = p.parseF2Dot14();\n                      component.scale01 = p.parseF2Dot14();\n                      component.scale10 = p.parseF2Dot14();\n                      component.yScale = p.parseF2Dot14();\n                    }\n\n                    glyph.components.push(component);\n                    moreComponents = !!(flags & 32);\n                  }\n                  if (flags & 0x100) {\n                    // We have instructions\n                    glyph.instructionLength = p.parseUShort();\n                    glyph.instructions = [];\n                    for (var i$6 = 0; i$6 < glyph.instructionLength; i$6 += 1) {\n                      glyph.instructions.push(p.parseByte());\n                    }\n                  }\n                }\n              }\n\n              // Transform an array of points and return a new array.\n              function transformPoints(points, transform) {\n                var newPoints = [];\n                for (var i = 0; i < points.length; i += 1) {\n                  var pt = points[i];\n                  var newPt = {\n                    x: transform.xScale * pt.x + transform.scale01 * pt.y + transform.dx,\n                    y: transform.scale10 * pt.x + transform.yScale * pt.y + transform.dy,\n                    onCurve: pt.onCurve,\n                    lastPointOfContour: pt.lastPointOfContour\n                  };\n                  newPoints.push(newPt);\n                }\n\n                return newPoints;\n              }\n\n              function getContours(points) {\n                var contours = [];\n                var currentContour = [];\n                for (var i = 0; i < points.length; i += 1) {\n                  var pt = points[i];\n                  currentContour.push(pt);\n                  if (pt.lastPointOfContour) {\n                    contours.push(currentContour);\n                    currentContour = [];\n                  }\n                }\n\n                check.argument(\n                  currentContour.length === 0,\n                  'There are still points left in the current contour.'\n                );\n                return contours;\n              }\n\n              // Convert the TrueType glyph outline to a Path.\n              function getPath(points) {\n                var p = new Path();\n                if (!points) {\n                  return p;\n                }\n\n                var contours = getContours(points);\n\n                for (var contourIndex = 0; contourIndex < contours.length; ++contourIndex) {\n                  var contour = contours[contourIndex];\n\n                  var prev = null;\n                  var curr = contour[contour.length - 1];\n                  var next = contour[0];\n\n                  if (curr.onCurve) {\n                    p.moveTo(curr.x, curr.y);\n                  } else {\n                    if (next.onCurve) {\n                      p.moveTo(next.x, next.y);\n                    } else {\n                      // If both first and last points are off-curve, start at their middle.\n                      var start = {\n                        x: (curr.x + next.x) * 0.5,\n                        y: (curr.y + next.y) * 0.5\n                      };\n                      p.moveTo(start.x, start.y);\n                    }\n                  }\n\n                  for (var i = 0; i < contour.length; ++i) {\n                    prev = curr;\n                    curr = next;\n                    next = contour[(i + 1) % contour.length];\n\n                    if (curr.onCurve) {\n                      // This is a straight line.\n                      p.lineTo(curr.x, curr.y);\n                    } else {\n                      var prev2 = prev;\n                      var next2 = next;\n\n                      if (!prev.onCurve) {\n                        prev2 = { x: (curr.x + prev.x) * 0.5, y: (curr.y + prev.y) * 0.5 };\n                      }\n\n                      if (!next.onCurve) {\n                        next2 = { x: (curr.x + next.x) * 0.5, y: (curr.y + next.y) * 0.5 };\n                      }\n\n                      p.quadraticCurveTo(curr.x, curr.y, next2.x, next2.y);\n                    }\n                  }\n\n                  p.closePath();\n                }\n                return p;\n              }\n\n              function buildPath(glyphs, glyph) {\n                if (glyph.isComposite) {\n                  for (var j = 0; j < glyph.components.length; j += 1) {\n                    var component = glyph.components[j];\n                    var componentGlyph = glyphs.get(component.glyphIndex);\n                    // Force the ttfGlyphLoader to parse the glyph.\n                    componentGlyph.getPath();\n                    if (componentGlyph.points) {\n                      var transformedPoints = void 0;\n                      if (component.matchedPoints === undefined) {\n                        // component positioned by offset\n                        transformedPoints = transformPoints(\n                          componentGlyph.points,\n                          component\n                        );\n                      } else {\n                        // component positioned by matched points\n                        if (\n                          component.matchedPoints[0] > glyph.points.length - 1 ||\n                          component.matchedPoints[1] > componentGlyph.points.length - 1\n                        ) {\n                          throw Error('Matched points out of range in ' + glyph.name);\n                        }\n                        var firstPt = glyph.points[component.matchedPoints[0]];\n                        var secondPt = componentGlyph.points[component.matchedPoints[1]];\n                        var transform = {\n                          xScale: component.xScale,\n                          scale01: component.scale01,\n                          scale10: component.scale10,\n                          yScale: component.yScale,\n                          dx: 0,\n                          dy: 0\n                        };\n                        secondPt = transformPoints([secondPt], transform)[0];\n                        transform.dx = firstPt.x - secondPt.x;\n                        transform.dy = firstPt.y - secondPt.y;\n                        transformedPoints = transformPoints(\n                          componentGlyph.points,\n                          transform\n                        );\n                      }\n                      glyph.points = glyph.points.concat(transformedPoints);\n                    }\n                  }\n                }\n\n                return getPath(glyph.points);\n              }\n\n              // Parse all the glyphs according to the offsets from the `loca` table.\n              function parseGlyfTable(data, start, loca, font) {\n                var glyphs = new glyphset.GlyphSet(font);\n\n                // The last element of the loca table is invalid.\n                for (var i = 0; i < loca.length - 1; i += 1) {\n                  var offset = loca[i];\n                  var nextOffset = loca[i + 1];\n                  if (offset !== nextOffset) {\n                    glyphs.push(\n                      i,\n                      glyphset.ttfGlyphLoader(\n                        font,\n                        i,\n                        parseGlyph,\n                        data,\n                        start + offset,\n                        buildPath\n                      )\n                    );\n                  } else {\n                    glyphs.push(i, glyphset.glyphLoader(font, i));\n                  }\n                }\n\n                return glyphs;\n              }\n\n              var glyf = { getPath: getPath, parse: parseGlyfTable };\n\n              /* A TrueType font hinting interpreter.\n\t*\n\t* (c) 2017 Axel Kittenberger\n\t*\n\t* This interpreter has been implemented according to this documentation:\n\t* https://developer.apple.com/fonts/TrueType-Reference-Manual/RM05/Chap5.html\n\t*\n\t* According to the documentation F24DOT6 values are used for pixels.\n\t* That means calculation is 1/64 pixel accurate and uses integer operations.\n\t* However, Javascript has floating point operations by default and only\n\t* those are available. One could make a case to simulate the 1/64 accuracy\n\t* exactly by truncating after every division operation\n\t* (for example with << 0) to get pixel exactly results as other TrueType\n\t* implementations. It may make sense since some fonts are pixel optimized\n\t* by hand using DELTAP instructions. The current implementation doesn't\n\t* and rather uses full floating point precision.\n\t*\n\t* xScale, yScale and rotation is currently ignored.\n\t*\n\t* A few non-trivial instructions are missing as I didn't encounter yet\n\t* a font that used them to test a possible implementation.\n\t*\n\t* Some fonts seem to use undocumented features regarding the twilight zone.\n\t* Only some of them are implemented as they were encountered.\n\t*\n\t* The exports.DEBUG statements are removed on the minified distribution file.\n\t*/\n\n              var instructionTable;\n              var exec;\n              var execGlyph;\n              var execComponent;\n\n              /*\n\t* Creates a hinting object.\n\t*\n\t* There ought to be exactly one\n\t* for each truetype font that is used for hinting.\n\t*/\n              function Hinting(font) {\n                // the font this hinting object is for\n                this.font = font;\n\n                this.getCommands = function(hPoints) {\n                  return glyf.getPath(hPoints).commands;\n                };\n\n                // cached states\n                this._fpgmState = this._prepState = undefined;\n\n                // errorState\n                // 0 ... all okay\n                // 1 ... had an error in a glyf,\n                //       continue working but stop spamming\n                //       the console\n                // 2 ... error at prep, stop hinting at this ppem\n                // 3 ... error at fpeg, stop hinting for this font at all\n                this._errorState = 0;\n              }\n\n              /*\n\t* Not rounding.\n\t*/\n              function roundOff(v) {\n                return v;\n              }\n\n              /*\n\t* Rounding to grid.\n\t*/\n              function roundToGrid(v) {\n                //Rounding in TT is supposed to \"symmetrical around zero\"\n                return Math.sign(v) * Math.round(Math.abs(v));\n              }\n\n              /*\n\t* Rounding to double grid.\n\t*/\n              function roundToDoubleGrid(v) {\n                return Math.sign(v) * Math.round(Math.abs(v * 2)) / 2;\n              }\n\n              /*\n\t* Rounding to half grid.\n\t*/\n              function roundToHalfGrid(v) {\n                return Math.sign(v) * (Math.round(Math.abs(v) + 0.5) - 0.5);\n              }\n\n              /*\n\t* Rounding to up to grid.\n\t*/\n              function roundUpToGrid(v) {\n                return Math.sign(v) * Math.ceil(Math.abs(v));\n              }\n\n              /*\n\t* Rounding to down to grid.\n\t*/\n              function roundDownToGrid(v) {\n                return Math.sign(v) * Math.floor(Math.abs(v));\n              }\n\n              /*\n\t* Super rounding.\n\t*/\n              var roundSuper = function(v) {\n                var period = this.srPeriod;\n                var phase = this.srPhase;\n                var threshold = this.srThreshold;\n                var sign = 1;\n\n                if (v < 0) {\n                  v = -v;\n                  sign = -1;\n                }\n\n                v += threshold - phase;\n\n                v = Math.trunc(v / period) * period;\n\n                v += phase;\n\n                // according to http://xgridfit.sourceforge.net/round.html\n                if (v < 0) {\n                  return phase * sign;\n                }\n\n                return v * sign;\n              };\n\n              /*\n\t* Unit vector of x-axis.\n\t*/\n              var xUnitVector = {\n                x: 1,\n\n                y: 0,\n\n                axis: 'x',\n\n                // Gets the projected distance between two points.\n                // o1/o2 ... if true, respective original position is used.\n                distance: function(p1, p2, o1, o2) {\n                  return (o1 ? p1.xo : p1.x) - (o2 ? p2.xo : p2.x);\n                },\n\n                // Moves point p so the moved position has the same relative\n                // position to the moved positions of rp1 and rp2 than the\n                // original positions had.\n                //\n                // See APPENDIX on INTERPOLATE at the bottom of this file.\n                interpolate: function(p, rp1, rp2, pv) {\n                  var do1;\n                  var do2;\n                  var doa1;\n                  var doa2;\n                  var dm1;\n                  var dm2;\n                  var dt;\n\n                  if (!pv || pv === this) {\n                    do1 = p.xo - rp1.xo;\n                    do2 = p.xo - rp2.xo;\n                    dm1 = rp1.x - rp1.xo;\n                    dm2 = rp2.x - rp2.xo;\n                    doa1 = Math.abs(do1);\n                    doa2 = Math.abs(do2);\n                    dt = doa1 + doa2;\n\n                    if (dt === 0) {\n                      p.x = p.xo + (dm1 + dm2) / 2;\n                      return;\n                    }\n\n                    p.x = p.xo + (dm1 * doa2 + dm2 * doa1) / dt;\n                    return;\n                  }\n\n                  do1 = pv.distance(p, rp1, true, true);\n                  do2 = pv.distance(p, rp2, true, true);\n                  dm1 = pv.distance(rp1, rp1, false, true);\n                  dm2 = pv.distance(rp2, rp2, false, true);\n                  doa1 = Math.abs(do1);\n                  doa2 = Math.abs(do2);\n                  dt = doa1 + doa2;\n\n                  if (dt === 0) {\n                    xUnitVector.setRelative(p, p, (dm1 + dm2) / 2, pv, true);\n                    return;\n                  }\n\n                  xUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true);\n                },\n\n                // Slope of line normal to this\n                normalSlope: Number.NEGATIVE_INFINITY,\n\n                // Sets the point 'p' relative to point 'rp'\n                // by the distance 'd'.\n                //\n                // See APPENDIX on SETRELATIVE at the bottom of this file.\n                //\n                // p   ... point to set\n                // rp  ... reference point\n                // d   ... distance on projection vector\n                // pv  ... projection vector (undefined = this)\n                // org ... if true, uses the original position of rp as reference.\n                setRelative: function(p, rp, d, pv, org) {\n                  if (!pv || pv === this) {\n                    p.x = (org ? rp.xo : rp.x) + d;\n                    return;\n                  }\n\n                  var rpx = org ? rp.xo : rp.x;\n                  var rpy = org ? rp.yo : rp.y;\n                  var rpdx = rpx + d * pv.x;\n                  var rpdy = rpy + d * pv.y;\n\n                  p.x = rpdx + (p.y - rpdy) / pv.normalSlope;\n                },\n\n                // Slope of vector line.\n                slope: 0,\n\n                // Touches the point p.\n                touch: function(p) {\n                  p.xTouched = true;\n                },\n\n                // Tests if a point p is touched.\n                touched: function(p) {\n                  return p.xTouched;\n                },\n\n                // Untouches the point p.\n                untouch: function(p) {\n                  p.xTouched = false;\n                }\n              };\n\n              /*\n\t* Unit vector of y-axis.\n\t*/\n              var yUnitVector = {\n                x: 0,\n\n                y: 1,\n\n                axis: 'y',\n\n                // Gets the projected distance between two points.\n                // o1/o2 ... if true, respective original position is used.\n                distance: function(p1, p2, o1, o2) {\n                  return (o1 ? p1.yo : p1.y) - (o2 ? p2.yo : p2.y);\n                },\n\n                // Moves point p so the moved position has the same relative\n                // position to the moved positions of rp1 and rp2 than the\n                // original positions had.\n                //\n                // See APPENDIX on INTERPOLATE at the bottom of this file.\n                interpolate: function(p, rp1, rp2, pv) {\n                  var do1;\n                  var do2;\n                  var doa1;\n                  var doa2;\n                  var dm1;\n                  var dm2;\n                  var dt;\n\n                  if (!pv || pv === this) {\n                    do1 = p.yo - rp1.yo;\n                    do2 = p.yo - rp2.yo;\n                    dm1 = rp1.y - rp1.yo;\n                    dm2 = rp2.y - rp2.yo;\n                    doa1 = Math.abs(do1);\n                    doa2 = Math.abs(do2);\n                    dt = doa1 + doa2;\n\n                    if (dt === 0) {\n                      p.y = p.yo + (dm1 + dm2) / 2;\n                      return;\n                    }\n\n                    p.y = p.yo + (dm1 * doa2 + dm2 * doa1) / dt;\n                    return;\n                  }\n\n                  do1 = pv.distance(p, rp1, true, true);\n                  do2 = pv.distance(p, rp2, true, true);\n                  dm1 = pv.distance(rp1, rp1, false, true);\n                  dm2 = pv.distance(rp2, rp2, false, true);\n                  doa1 = Math.abs(do1);\n                  doa2 = Math.abs(do2);\n                  dt = doa1 + doa2;\n\n                  if (dt === 0) {\n                    yUnitVector.setRelative(p, p, (dm1 + dm2) / 2, pv, true);\n                    return;\n                  }\n\n                  yUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true);\n                },\n\n                // Slope of line normal to this.\n                normalSlope: 0,\n\n                // Sets the point 'p' relative to point 'rp'\n                // by the distance 'd'\n                //\n                // See APPENDIX on SETRELATIVE at the bottom of this file.\n                //\n                // p   ... point to set\n                // rp  ... reference point\n                // d   ... distance on projection vector\n                // pv  ... projection vector (undefined = this)\n                // org ... if true, uses the original position of rp as reference.\n                setRelative: function(p, rp, d, pv, org) {\n                  if (!pv || pv === this) {\n                    p.y = (org ? rp.yo : rp.y) + d;\n                    return;\n                  }\n\n                  var rpx = org ? rp.xo : rp.x;\n                  var rpy = org ? rp.yo : rp.y;\n                  var rpdx = rpx + d * pv.x;\n                  var rpdy = rpy + d * pv.y;\n\n                  p.y = rpdy + pv.normalSlope * (p.x - rpdx);\n                },\n\n                // Slope of vector line.\n                slope: Number.POSITIVE_INFINITY,\n\n                // Touches the point p.\n                touch: function(p) {\n                  p.yTouched = true;\n                },\n\n                // Tests if a point p is touched.\n                touched: function(p) {\n                  return p.yTouched;\n                },\n\n                // Untouches the point p.\n                untouch: function(p) {\n                  p.yTouched = false;\n                }\n              };\n\n              Object.freeze(xUnitVector);\n              Object.freeze(yUnitVector);\n\n              /*\n\t* Creates a unit vector that is not x- or y-axis.\n\t*/\n              function UnitVector(x, y) {\n                this.x = x;\n                this.y = y;\n                this.axis = undefined;\n                this.slope = y / x;\n                this.normalSlope = -x / y;\n                Object.freeze(this);\n              }\n\n              /*\n\t* Gets the projected distance between two points.\n\t* o1/o2 ... if true, respective original position is used.\n\t*/\n              UnitVector.prototype.distance = function(p1, p2, o1, o2) {\n                return (\n                  this.x * xUnitVector.distance(p1, p2, o1, o2) +\n                  this.y * yUnitVector.distance(p1, p2, o1, o2)\n                );\n              };\n\n              /*\n\t* Moves point p so the moved position has the same relative\n\t* position to the moved positions of rp1 and rp2 than the\n\t* original positions had.\n\t*\n\t* See APPENDIX on INTERPOLATE at the bottom of this file.\n\t*/\n              UnitVector.prototype.interpolate = function(p, rp1, rp2, pv) {\n                var dm1;\n                var dm2;\n                var do1;\n                var do2;\n                var doa1;\n                var doa2;\n                var dt;\n\n                do1 = pv.distance(p, rp1, true, true);\n                do2 = pv.distance(p, rp2, true, true);\n                dm1 = pv.distance(rp1, rp1, false, true);\n                dm2 = pv.distance(rp2, rp2, false, true);\n                doa1 = Math.abs(do1);\n                doa2 = Math.abs(do2);\n                dt = doa1 + doa2;\n\n                if (dt === 0) {\n                  this.setRelative(p, p, (dm1 + dm2) / 2, pv, true);\n                  return;\n                }\n\n                this.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true);\n              };\n\n              /*\n\t* Sets the point 'p' relative to point 'rp'\n\t* by the distance 'd'\n\t*\n\t* See APPENDIX on SETRELATIVE at the bottom of this file.\n\t*\n\t* p   ...  point to set\n\t* rp  ... reference point\n\t* d   ... distance on projection vector\n\t* pv  ... projection vector (undefined = this)\n\t* org ... if true, uses the original position of rp as reference.\n\t*/\n              UnitVector.prototype.setRelative = function(p, rp, d, pv, org) {\n                pv = pv || this;\n\n                var rpx = org ? rp.xo : rp.x;\n                var rpy = org ? rp.yo : rp.y;\n                var rpdx = rpx + d * pv.x;\n                var rpdy = rpy + d * pv.y;\n\n                var pvns = pv.normalSlope;\n                var fvs = this.slope;\n\n                var px = p.x;\n                var py = p.y;\n\n                p.x = (fvs * px - pvns * rpdx + rpdy - py) / (fvs - pvns);\n                p.y = fvs * (p.x - px) + py;\n              };\n\n              /*\n\t* Touches the point p.\n\t*/\n              UnitVector.prototype.touch = function(p) {\n                p.xTouched = true;\n                p.yTouched = true;\n              };\n\n              /*\n\t* Returns a unit vector with x/y coordinates.\n\t*/\n              function getUnitVector(x, y) {\n                var d = Math.sqrt(x * x + y * y);\n\n                x /= d;\n                y /= d;\n\n                if (x === 1 && y === 0) {\n                  return xUnitVector;\n                } else if (x === 0 && y === 1) {\n                  return yUnitVector;\n                } else {\n                  return new UnitVector(x, y);\n                }\n              }\n\n              /*\n\t* Creates a point in the hinting engine.\n\t*/\n              function HPoint(x, y, lastPointOfContour, onCurve) {\n                this.x = this.xo = Math.round(x * 64) / 64; // hinted x value and original x-value\n                this.y = this.yo = Math.round(y * 64) / 64; // hinted y value and original y-value\n\n                this.lastPointOfContour = lastPointOfContour;\n                this.onCurve = onCurve;\n                this.prevPointOnContour = undefined;\n                this.nextPointOnContour = undefined;\n                this.xTouched = false;\n                this.yTouched = false;\n\n                Object.preventExtensions(this);\n              }\n\n              /*\n\t* Returns the next touched point on the contour.\n\t*\n\t* v  ... unit vector to test touch axis.\n\t*/\n              HPoint.prototype.nextTouched = function(v) {\n                var p = this.nextPointOnContour;\n\n                while (!v.touched(p) && p !== this) {\n                  p = p.nextPointOnContour;\n                }\n\n                return p;\n              };\n\n              /*\n\t* Returns the previous touched point on the contour\n\t*\n\t* v  ... unit vector to test touch axis.\n\t*/\n              HPoint.prototype.prevTouched = function(v) {\n                var p = this.prevPointOnContour;\n\n                while (!v.touched(p) && p !== this) {\n                  p = p.prevPointOnContour;\n                }\n\n                return p;\n              };\n\n              /*\n\t* The zero point.\n\t*/\n              var HPZero = Object.freeze(new HPoint(0, 0));\n\n              /*\n\t* The default state of the interpreter.\n\t*\n\t* Note: Freezing the defaultState and then deriving from it\n\t* makes the V8 Javascript engine going awkward,\n\t* so this is avoided, albeit the defaultState shouldn't\n\t* ever change.\n\t*/\n              var defaultState = {\n                cvCutIn: 17 / 16, // control value cut in\n                deltaBase: 9,\n                deltaShift: 0.125,\n                loop: 1, // loops some instructions\n                minDis: 1, // minimum distance\n                autoFlip: true\n              };\n\n              /*\n\t* The current state of the interpreter.\n\t*\n\t* env  ... 'fpgm' or 'prep' or 'glyf'\n\t* prog ... the program\n\t*/\n              function State(env, prog) {\n                this.env = env;\n                this.stack = [];\n                this.prog = prog;\n\n                switch (env) {\n                  case 'glyf':\n                    this.zp0 = this.zp1 = this.zp2 = 1;\n                    this.rp0 = this.rp1 = this.rp2 = 0;\n                  /* fall through */\n                  case 'prep':\n                    this.fv = this.pv = this.dpv = xUnitVector;\n                    this.round = roundToGrid;\n                }\n              }\n\n              /*\n\t* Executes a glyph program.\n\t*\n\t* This does the hinting for each glyph.\n\t*\n\t* Returns an array of moved points.\n\t*\n\t* glyph: the glyph to hint\n\t* ppem: the size the glyph is rendered for\n\t*/\n              Hinting.prototype.exec = function(glyph, ppem) {\n                if (typeof ppem !== 'number') {\n                  throw new Error('Point size is not a number!');\n                }\n\n                // Received a fatal error, don't do any hinting anymore.\n                if (this._errorState > 2) {\n                  return;\n                }\n\n                var font = this.font;\n                var prepState = this._prepState;\n\n                if (!prepState || prepState.ppem !== ppem) {\n                  var fpgmState = this._fpgmState;\n\n                  if (!fpgmState) {\n                    // Executes the fpgm state.\n                    // This is used by fonts to define functions.\n                    State.prototype = defaultState;\n\n                    fpgmState = this._fpgmState = new State('fpgm', font.tables.fpgm);\n\n                    fpgmState.funcs = [];\n                    fpgmState.font = font;\n\n                    if (exports.DEBUG) {\n                      console.log('---EXEC FPGM---');\n                      fpgmState.step = -1;\n                    }\n\n                    try {\n                      exec(fpgmState);\n                    } catch (e) {\n                      console.log('Hinting error in FPGM:' + e);\n                      this._errorState = 3;\n                      return;\n                    }\n                  }\n\n                  // Executes the prep program for this ppem setting.\n                  // This is used by fonts to set cvt values\n                  // depending on to be rendered font size.\n\n                  State.prototype = fpgmState;\n                  prepState = this._prepState = new State('prep', font.tables.prep);\n\n                  prepState.ppem = ppem;\n\n                  // Creates a copy of the cvt table\n                  // and scales it to the current ppem setting.\n                  var oCvt = font.tables.cvt;\n                  if (oCvt) {\n                    var cvt = (prepState.cvt = new Array(oCvt.length));\n                    var scale = ppem / font.unitsPerEm;\n                    for (var c = 0; c < oCvt.length; c++) {\n                      cvt[c] = oCvt[c] * scale;\n                    }\n                  } else {\n                    prepState.cvt = [];\n                  }\n\n                  if (exports.DEBUG) {\n                    console.log('---EXEC PREP---');\n                    prepState.step = -1;\n                  }\n\n                  try {\n                    exec(prepState);\n                  } catch (e) {\n                    if (this._errorState < 2) {\n                      console.log('Hinting error in PREP:' + e);\n                    }\n                    this._errorState = 2;\n                  }\n                }\n\n                if (this._errorState > 1) {\n                  return;\n                }\n\n                try {\n                  return execGlyph(glyph, prepState);\n                } catch (e) {\n                  if (this._errorState < 1) {\n                    console.log('Hinting error:' + e);\n                    console.log('Note: further hinting errors are silenced');\n                  }\n                  this._errorState = 1;\n                  return undefined;\n                }\n              };\n\n              /*\n\t* Executes the hinting program for a glyph.\n\t*/\n              execGlyph = function(glyph, prepState) {\n                // original point positions\n                var xScale = prepState.ppem / prepState.font.unitsPerEm;\n                var yScale = xScale;\n                var components = glyph.components;\n                var contours;\n                var gZone;\n                var state;\n\n                State.prototype = prepState;\n                if (!components) {\n                  state = new State('glyf', glyph.instructions);\n                  if (exports.DEBUG) {\n                    console.log('---EXEC GLYPH---');\n                    state.step = -1;\n                  }\n                  execComponent(glyph, state, xScale, yScale);\n                  gZone = state.gZone;\n                } else {\n                  var font = prepState.font;\n                  gZone = [];\n                  contours = [];\n                  for (var i = 0; i < components.length; i++) {\n                    var c = components[i];\n                    var cg = font.glyphs.get(c.glyphIndex);\n\n                    state = new State('glyf', cg.instructions);\n\n                    if (exports.DEBUG) {\n                      console.log('---EXEC COMP ' + i + '---');\n                      state.step = -1;\n                    }\n\n                    execComponent(cg, state, xScale, yScale);\n                    // appends the computed points to the result array\n                    // post processes the component points\n                    var dx = Math.round(c.dx * xScale);\n                    var dy = Math.round(c.dy * yScale);\n                    var gz = state.gZone;\n                    var cc = state.contours;\n                    for (var pi = 0; pi < gz.length; pi++) {\n                      var p = gz[pi];\n                      p.xTouched = p.yTouched = false;\n                      p.xo = p.x = p.x + dx;\n                      p.yo = p.y = p.y + dy;\n                    }\n\n                    var gLen = gZone.length;\n                    gZone.push.apply(gZone, gz);\n                    for (var j = 0; j < cc.length; j++) {\n                      contours.push(cc[j] + gLen);\n                    }\n                  }\n\n                  if (glyph.instructions && !state.inhibitGridFit) {\n                    // the composite has instructions on its own\n                    state = new State('glyf', glyph.instructions);\n\n                    state.gZone = state.z0 = state.z1 = state.z2 = gZone;\n\n                    state.contours = contours;\n\n                    // note: HPZero cannot be used here, since\n                    //       the point might be modified\n                    gZone.push(\n                      new HPoint(0, 0),\n                      new HPoint(Math.round(glyph.advanceWidth * xScale), 0)\n                    );\n\n                    if (exports.DEBUG) {\n                      console.log('---EXEC COMPOSITE---');\n                      state.step = -1;\n                    }\n\n                    exec(state);\n\n                    gZone.length -= 2;\n                  }\n                }\n\n                return gZone;\n              };\n\n              /*\n\t* Executes the hinting program for a component of a multi-component glyph\n\t* or of the glyph itself for a non-component glyph.\n\t*/\n              execComponent = function(glyph, state, xScale, yScale) {\n                var points = glyph.points || [];\n                var pLen = points.length;\n                var gZone = (state.gZone = state.z0 = state.z1 = state.z2 = []);\n                var contours = (state.contours = []);\n\n                // Scales the original points and\n                // makes copies for the hinted points.\n                var cp; // current point\n                for (var i = 0; i < pLen; i++) {\n                  cp = points[i];\n\n                  gZone[i] = new HPoint(\n                    cp.x * xScale,\n                    cp.y * yScale,\n                    cp.lastPointOfContour,\n                    cp.onCurve\n                  );\n                }\n\n                // Chain links the contours.\n                var sp; // start point\n                var np; // next point\n\n                for (var i$1 = 0; i$1 < pLen; i$1++) {\n                  cp = gZone[i$1];\n\n                  if (!sp) {\n                    sp = cp;\n                    contours.push(i$1);\n                  }\n\n                  if (cp.lastPointOfContour) {\n                    cp.nextPointOnContour = sp;\n                    sp.prevPointOnContour = cp;\n                    sp = undefined;\n                  } else {\n                    np = gZone[i$1 + 1];\n                    cp.nextPointOnContour = np;\n                    np.prevPointOnContour = cp;\n                  }\n                }\n\n                if (state.inhibitGridFit) {\n                  return;\n                }\n\n                if (exports.DEBUG) {\n                  console.log('PROCESSING GLYPH', state.stack);\n                  for (var i$2 = 0; i$2 < pLen; i$2++) {\n                    console.log(i$2, gZone[i$2].x, gZone[i$2].y);\n                  }\n                }\n\n                gZone.push(\n                  new HPoint(0, 0),\n                  new HPoint(Math.round(glyph.advanceWidth * xScale), 0)\n                );\n\n                exec(state);\n\n                // Removes the extra points.\n                gZone.length -= 2;\n\n                if (exports.DEBUG) {\n                  console.log('FINISHED GLYPH', state.stack);\n                  for (var i$3 = 0; i$3 < pLen; i$3++) {\n                    console.log(i$3, gZone[i$3].x, gZone[i$3].y);\n                  }\n                }\n              };\n\n              /*\n\t* Executes the program loaded in state.\n\t*/\n              exec = function(state) {\n                var prog = state.prog;\n\n                if (!prog) {\n                  return;\n                }\n\n                var pLen = prog.length;\n                var ins;\n\n                for (state.ip = 0; state.ip < pLen; state.ip++) {\n                  if (exports.DEBUG) {\n                    state.step++;\n                  }\n                  ins = instructionTable[prog[state.ip]];\n\n                  if (!ins) {\n                    throw new Error(\n                      'unknown instruction: 0x' + Number(prog[state.ip]).toString(16)\n                    );\n                  }\n\n                  ins(state);\n\n                  // very extensive debugging for each step\n                  /*\n\t        if (exports.DEBUG) {\n\t            var da;\n\t            if (state.gZone) {\n\t                da = [];\n\t                for (let i = 0; i < state.gZone.length; i++)\n\t                {\n\t                    da.push(i + ' ' +\n\t                        state.gZone[i].x * 64 + ' ' +\n\t                        state.gZone[i].y * 64 + ' ' +\n\t                        (state.gZone[i].xTouched ? 'x' : '') +\n\t                        (state.gZone[i].yTouched ? 'y' : '')\n\t                    );\n\t                }\n\t                console.log('GZ', da);\n\t            }\n\n\t            if (state.tZone) {\n\t                da = [];\n\t                for (let i = 0; i < state.tZone.length; i++) {\n\t                    da.push(i + ' ' +\n\t                        state.tZone[i].x * 64 + ' ' +\n\t                        state.tZone[i].y * 64 + ' ' +\n\t                        (state.tZone[i].xTouched ? 'x' : '') +\n\t                        (state.tZone[i].yTouched ? 'y' : '')\n\t                    );\n\t                }\n\t                console.log('TZ', da);\n\t            }\n\n\t            if (state.stack.length > 10) {\n\t                console.log(\n\t                    state.stack.length,\n\t                    '...', state.stack.slice(state.stack.length - 10)\n\t                );\n\t            } else {\n\t                console.log(state.stack.length, state.stack);\n\t            }\n\t        }\n\t        */\n                }\n              };\n\n              /*\n\t* Initializes the twilight zone.\n\t*\n\t* This is only done if a SZPx instruction\n\t* refers to the twilight zone.\n\t*/\n              function initTZone(state) {\n                var tZone = (state.tZone = new Array(state.gZone.length));\n\n                // no idea if this is actually correct...\n                for (var i = 0; i < tZone.length; i++) {\n                  tZone[i] = new HPoint(0, 0);\n                }\n              }\n\n              /*\n\t* Skips the instruction pointer ahead over an IF/ELSE block.\n\t* handleElse .. if true breaks on matching ELSE\n\t*/\n              function skip(state, handleElse) {\n                var prog = state.prog;\n                var ip = state.ip;\n                var nesting = 1;\n                var ins;\n\n                do {\n                  ins = prog[++ip];\n                  if (ins === 0x58) {\n                    // IF\n                    nesting++;\n                  } else if (ins === 0x59) {\n                    // EIF\n                    nesting--;\n                  } else if (ins === 0x40) {\n                    // NPUSHB\n                    ip += prog[ip + 1] + 1;\n                  } else if (ins === 0x41) {\n                    // NPUSHW\n                    ip += 2 * prog[ip + 1] + 1;\n                  } else if (ins >= 0xb0 && ins <= 0xb7) {\n                    // PUSHB\n                    ip += ins - 0xb0 + 1;\n                  } else if (ins >= 0xb8 && ins <= 0xbf) {\n                    // PUSHW\n                    ip += (ins - 0xb8 + 1) * 2;\n                  } else if (handleElse && nesting === 1 && ins === 0x1b) {\n                    // ELSE\n                    break;\n                  }\n                } while (nesting > 0);\n\n                state.ip = ip;\n              }\n\n              /*----------------------------------------------------------*\n\t*          And then a lot of instructions...                *\n\t*----------------------------------------------------------*/\n\n              // SVTCA[a] Set freedom and projection Vectors To Coordinate Axis\n              // 0x00-0x01\n              function SVTCA(v, state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SVTCA[' + v.axis + ']');\n                }\n\n                state.fv = state.pv = state.dpv = v;\n              }\n\n              // SPVTCA[a] Set Projection Vector to Coordinate Axis\n              // 0x02-0x03\n              function SPVTCA(v, state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SPVTCA[' + v.axis + ']');\n                }\n\n                state.pv = state.dpv = v;\n              }\n\n              // SFVTCA[a] Set Freedom Vector to Coordinate Axis\n              // 0x04-0x05\n              function SFVTCA(v, state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SFVTCA[' + v.axis + ']');\n                }\n\n                state.fv = v;\n              }\n\n              // SPVTL[a] Set Projection Vector To Line\n              // 0x06-0x07\n              function SPVTL(a, state) {\n                var stack = state.stack;\n                var p2i = stack.pop();\n                var p1i = stack.pop();\n                var p2 = state.z2[p2i];\n                var p1 = state.z1[p1i];\n\n                if (exports.DEBUG) {\n                  console.log('SPVTL[' + a + ']', p2i, p1i);\n                }\n\n                var dx;\n                var dy;\n\n                if (!a) {\n                  dx = p1.x - p2.x;\n                  dy = p1.y - p2.y;\n                } else {\n                  dx = p2.y - p1.y;\n                  dy = p1.x - p2.x;\n                }\n\n                state.pv = state.dpv = getUnitVector(dx, dy);\n              }\n\n              // SFVTL[a] Set Freedom Vector To Line\n              // 0x08-0x09\n              function SFVTL(a, state) {\n                var stack = state.stack;\n                var p2i = stack.pop();\n                var p1i = stack.pop();\n                var p2 = state.z2[p2i];\n                var p1 = state.z1[p1i];\n\n                if (exports.DEBUG) {\n                  console.log('SFVTL[' + a + ']', p2i, p1i);\n                }\n\n                var dx;\n                var dy;\n\n                if (!a) {\n                  dx = p1.x - p2.x;\n                  dy = p1.y - p2.y;\n                } else {\n                  dx = p2.y - p1.y;\n                  dy = p1.x - p2.x;\n                }\n\n                state.fv = getUnitVector(dx, dy);\n              }\n\n              // SPVFS[] Set Projection Vector From Stack\n              // 0x0A\n              function SPVFS(state) {\n                var stack = state.stack;\n                var y = stack.pop();\n                var x = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SPVFS[]', y, x);\n                }\n\n                state.pv = state.dpv = getUnitVector(x, y);\n              }\n\n              // SFVFS[] Set Freedom Vector From Stack\n              // 0x0B\n              function SFVFS(state) {\n                var stack = state.stack;\n                var y = stack.pop();\n                var x = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SPVFS[]', y, x);\n                }\n\n                state.fv = getUnitVector(x, y);\n              }\n\n              // GPV[] Get Projection Vector\n              // 0x0C\n              function GPV(state) {\n                var stack = state.stack;\n                var pv = state.pv;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'GPV[]');\n                }\n\n                stack.push(pv.x * 0x4000);\n                stack.push(pv.y * 0x4000);\n              }\n\n              // GFV[] Get Freedom Vector\n              // 0x0C\n              function GFV(state) {\n                var stack = state.stack;\n                var fv = state.fv;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'GFV[]');\n                }\n\n                stack.push(fv.x * 0x4000);\n                stack.push(fv.y * 0x4000);\n              }\n\n              // SFVTPV[] Set Freedom Vector To Projection Vector\n              // 0x0E\n              function SFVTPV(state) {\n                state.fv = state.pv;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SFVTPV[]');\n                }\n              }\n\n              // ISECT[] moves point p to the InterSECTion of two lines\n              // 0x0F\n              function ISECT(state) {\n                var stack = state.stack;\n                var pa0i = stack.pop();\n                var pa1i = stack.pop();\n                var pb0i = stack.pop();\n                var pb1i = stack.pop();\n                var pi = stack.pop();\n                var z0 = state.z0;\n                var z1 = state.z1;\n                var pa0 = z0[pa0i];\n                var pa1 = z0[pa1i];\n                var pb0 = z1[pb0i];\n                var pb1 = z1[pb1i];\n                var p = state.z2[pi];\n\n                if (exports.DEBUG) {\n                  console.log('ISECT[], ', pa0i, pa1i, pb0i, pb1i, pi);\n                }\n\n                // math from\n                // en.wikipedia.org/wiki/Line%E2%80%93line_intersection#Given_two_points_on_each_line\n\n                var x1 = pa0.x;\n                var y1 = pa0.y;\n                var x2 = pa1.x;\n                var y2 = pa1.y;\n                var x3 = pb0.x;\n                var y3 = pb0.y;\n                var x4 = pb1.x;\n                var y4 = pb1.y;\n\n                var div = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4);\n                var f1 = x1 * y2 - y1 * x2;\n                var f2 = x3 * y4 - y3 * x4;\n\n                p.x = (f1 * (x3 - x4) - f2 * (x1 - x2)) / div;\n                p.y = (f1 * (y3 - y4) - f2 * (y1 - y2)) / div;\n              }\n\n              // SRP0[] Set Reference Point 0\n              // 0x10\n              function SRP0(state) {\n                state.rp0 = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SRP0[]', state.rp0);\n                }\n              }\n\n              // SRP1[] Set Reference Point 1\n              // 0x11\n              function SRP1(state) {\n                state.rp1 = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SRP1[]', state.rp1);\n                }\n              }\n\n              // SRP1[] Set Reference Point 2\n              // 0x12\n              function SRP2(state) {\n                state.rp2 = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SRP2[]', state.rp2);\n                }\n              }\n\n              // SZP0[] Set Zone Pointer 0\n              // 0x13\n              function SZP0(state) {\n                var n = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SZP0[]', n);\n                }\n\n                state.zp0 = n;\n\n                switch (n) {\n                  case 0:\n                    if (!state.tZone) {\n                      initTZone(state);\n                    }\n                    state.z0 = state.tZone;\n                    break;\n                  case 1:\n                    state.z0 = state.gZone;\n                    break;\n                  default:\n                    throw new Error('Invalid zone pointer');\n                }\n              }\n\n              // SZP1[] Set Zone Pointer 1\n              // 0x14\n              function SZP1(state) {\n                var n = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SZP1[]', n);\n                }\n\n                state.zp1 = n;\n\n                switch (n) {\n                  case 0:\n                    if (!state.tZone) {\n                      initTZone(state);\n                    }\n                    state.z1 = state.tZone;\n                    break;\n                  case 1:\n                    state.z1 = state.gZone;\n                    break;\n                  default:\n                    throw new Error('Invalid zone pointer');\n                }\n              }\n\n              // SZP2[] Set Zone Pointer 2\n              // 0x15\n              function SZP2(state) {\n                var n = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SZP2[]', n);\n                }\n\n                state.zp2 = n;\n\n                switch (n) {\n                  case 0:\n                    if (!state.tZone) {\n                      initTZone(state);\n                    }\n                    state.z2 = state.tZone;\n                    break;\n                  case 1:\n                    state.z2 = state.gZone;\n                    break;\n                  default:\n                    throw new Error('Invalid zone pointer');\n                }\n              }\n\n              // SZPS[] Set Zone PointerS\n              // 0x16\n              function SZPS(state) {\n                var n = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SZPS[]', n);\n                }\n\n                state.zp0 = state.zp1 = state.zp2 = n;\n\n                switch (n) {\n                  case 0:\n                    if (!state.tZone) {\n                      initTZone(state);\n                    }\n                    state.z0 = state.z1 = state.z2 = state.tZone;\n                    break;\n                  case 1:\n                    state.z0 = state.z1 = state.z2 = state.gZone;\n                    break;\n                  default:\n                    throw new Error('Invalid zone pointer');\n                }\n              }\n\n              // SLOOP[] Set LOOP variable\n              // 0x17\n              function SLOOP(state) {\n                state.loop = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SLOOP[]', state.loop);\n                }\n              }\n\n              // RTG[] Round To Grid\n              // 0x18\n              function RTG(state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'RTG[]');\n                }\n\n                state.round = roundToGrid;\n              }\n\n              // RTHG[] Round To Half Grid\n              // 0x19\n              function RTHG(state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'RTHG[]');\n                }\n\n                state.round = roundToHalfGrid;\n              }\n\n              // SMD[] Set Minimum Distance\n              // 0x1A\n              function SMD(state) {\n                var d = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SMD[]', d);\n                }\n\n                state.minDis = d / 0x40;\n              }\n\n              // ELSE[] ELSE clause\n              // 0x1B\n              function ELSE(state) {\n                // This instruction has been reached by executing a then branch\n                // so it just skips ahead until matching EIF.\n                //\n                // In case the IF was negative the IF[] instruction already\n                // skipped forward over the ELSE[]\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'ELSE[]');\n                }\n\n                skip(state, false);\n              }\n\n              // JMPR[] JuMP Relative\n              // 0x1C\n              function JMPR(state) {\n                var o = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'JMPR[]', o);\n                }\n\n                // A jump by 1 would do nothing.\n                state.ip += o - 1;\n              }\n\n              // SCVTCI[] Set Control Value Table Cut-In\n              // 0x1D\n              function SCVTCI(state) {\n                var n = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SCVTCI[]', n);\n                }\n\n                state.cvCutIn = n / 0x40;\n              }\n\n              // DUP[] DUPlicate top stack element\n              // 0x20\n              function DUP(state) {\n                var stack = state.stack;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'DUP[]');\n                }\n\n                stack.push(stack[stack.length - 1]);\n              }\n\n              // POP[] POP top stack element\n              // 0x21\n              function POP(state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'POP[]');\n                }\n\n                state.stack.pop();\n              }\n\n              // CLEAR[] CLEAR the stack\n              // 0x22\n              function CLEAR(state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'CLEAR[]');\n                }\n\n                state.stack.length = 0;\n              }\n\n              // SWAP[] SWAP the top two elements on the stack\n              // 0x23\n              function SWAP(state) {\n                var stack = state.stack;\n\n                var a = stack.pop();\n                var b = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SWAP[]');\n                }\n\n                stack.push(a);\n                stack.push(b);\n              }\n\n              // DEPTH[] DEPTH of the stack\n              // 0x24\n              function DEPTH(state) {\n                var stack = state.stack;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'DEPTH[]');\n                }\n\n                stack.push(stack.length);\n              }\n\n              // LOOPCALL[] LOOPCALL function\n              // 0x2A\n              function LOOPCALL(state) {\n                var stack = state.stack;\n                var fn = stack.pop();\n                var c = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'LOOPCALL[]', fn, c);\n                }\n\n                // saves callers program\n                var cip = state.ip;\n                var cprog = state.prog;\n\n                state.prog = state.funcs[fn];\n\n                // executes the function\n                for (var i = 0; i < c; i++) {\n                  exec(state);\n\n                  if (exports.DEBUG) {\n                    console.log(\n                      ++state.step,\n                      i + 1 < c ? 'next loopcall' : 'done loopcall',\n                      i\n                    );\n                  }\n                }\n\n                // restores the callers program\n                state.ip = cip;\n                state.prog = cprog;\n              }\n\n              // CALL[] CALL function\n              // 0x2B\n              function CALL(state) {\n                var fn = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'CALL[]', fn);\n                }\n\n                // saves callers program\n                var cip = state.ip;\n                var cprog = state.prog;\n\n                state.prog = state.funcs[fn];\n\n                // executes the function\n                exec(state);\n\n                // restores the callers program\n                state.ip = cip;\n                state.prog = cprog;\n\n                if (exports.DEBUG) {\n                  console.log(++state.step, 'returning from', fn);\n                }\n              }\n\n              // CINDEX[] Copy the INDEXed element to the top of the stack\n              // 0x25\n              function CINDEX(state) {\n                var stack = state.stack;\n                var k = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'CINDEX[]', k);\n                }\n\n                // In case of k == 1, it copies the last element after popping\n                // thus stack.length - k.\n                stack.push(stack[stack.length - k]);\n              }\n\n              // MINDEX[] Move the INDEXed element to the top of the stack\n              // 0x26\n              function MINDEX(state) {\n                var stack = state.stack;\n                var k = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'MINDEX[]', k);\n                }\n\n                stack.push(stack.splice(stack.length - k, 1)[0]);\n              }\n\n              // FDEF[] Function DEFinition\n              // 0x2C\n              function FDEF(state) {\n                if (state.env !== 'fpgm') {\n                  throw new Error('FDEF not allowed here');\n                }\n                var stack = state.stack;\n                var prog = state.prog;\n                var ip = state.ip;\n\n                var fn = stack.pop();\n                var ipBegin = ip;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'FDEF[]', fn);\n                }\n\n                while (prog[++ip] !== 0x2d) {}\n\n                state.ip = ip;\n                state.funcs[fn] = prog.slice(ipBegin + 1, ip);\n              }\n\n              // MDAP[a] Move Direct Absolute Point\n              // 0x2E-0x2F\n              function MDAP(round, state) {\n                var pi = state.stack.pop();\n                var p = state.z0[pi];\n                var fv = state.fv;\n                var pv = state.pv;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'MDAP[' + round + ']', pi);\n                }\n\n                var d = pv.distance(p, HPZero);\n\n                if (round) {\n                  d = state.round(d);\n                }\n\n                fv.setRelative(p, HPZero, d, pv);\n                fv.touch(p);\n\n                state.rp0 = state.rp1 = pi;\n              }\n\n              // IUP[a] Interpolate Untouched Points through the outline\n              // 0x30\n              function IUP(v, state) {\n                var z2 = state.z2;\n                var pLen = z2.length - 2;\n                var cp;\n                var pp;\n                var np;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'IUP[' + v.axis + ']');\n                }\n\n                for (var i = 0; i < pLen; i++) {\n                  cp = z2[i]; // current point\n\n                  // if this point has been touched go on\n                  if (v.touched(cp)) {\n                    continue;\n                  }\n\n                  pp = cp.prevTouched(v);\n\n                  // no point on the contour has been touched?\n                  if (pp === cp) {\n                    continue;\n                  }\n\n                  np = cp.nextTouched(v);\n\n                  if (pp === np) {\n                    // only one point on the contour has been touched\n                    // so simply moves the point like that\n\n                    v.setRelative(cp, cp, v.distance(pp, pp, false, true), v, true);\n                  }\n\n                  v.interpolate(cp, pp, np, v);\n                }\n              }\n\n              // SHP[] SHift Point using reference point\n              // 0x32-0x33\n              function SHP(a, state) {\n                var stack = state.stack;\n                var rpi = a ? state.rp1 : state.rp2;\n                var rp = (a ? state.z0 : state.z1)[rpi];\n                var fv = state.fv;\n                var pv = state.pv;\n                var loop = state.loop;\n                var z2 = state.z2;\n\n                while (loop--) {\n                  var pi = stack.pop();\n                  var p = z2[pi];\n\n                  var d = pv.distance(rp, rp, false, true);\n                  fv.setRelative(p, p, d, pv);\n                  fv.touch(p);\n\n                  if (exports.DEBUG) {\n                    console.log(\n                      state.step,\n                      (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') +\n                        'SHP[' +\n                        (a ? 'rp1' : 'rp2') +\n                        ']',\n                      pi\n                    );\n                  }\n                }\n\n                state.loop = 1;\n              }\n\n              // SHC[] SHift Contour using reference point\n              // 0x36-0x37\n              function SHC(a, state) {\n                var stack = state.stack;\n                var rpi = a ? state.rp1 : state.rp2;\n                var rp = (a ? state.z0 : state.z1)[rpi];\n                var fv = state.fv;\n                var pv = state.pv;\n                var ci = stack.pop();\n                var sp = state.z2[state.contours[ci]];\n                var p = sp;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SHC[' + a + ']', ci);\n                }\n\n                var d = pv.distance(rp, rp, false, true);\n\n                do {\n                  if (p !== rp) {\n                    fv.setRelative(p, p, d, pv);\n                  }\n                  p = p.nextPointOnContour;\n                } while (p !== sp);\n              }\n\n              // SHZ[] SHift Zone using reference point\n              // 0x36-0x37\n              function SHZ(a, state) {\n                var stack = state.stack;\n                var rpi = a ? state.rp1 : state.rp2;\n                var rp = (a ? state.z0 : state.z1)[rpi];\n                var fv = state.fv;\n                var pv = state.pv;\n\n                var e = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SHZ[' + a + ']', e);\n                }\n\n                var z;\n                switch (e) {\n                  case 0:\n                    z = state.tZone;\n                    break;\n                  case 1:\n                    z = state.gZone;\n                    break;\n                  default:\n                    throw new Error('Invalid zone');\n                }\n\n                var p;\n                var d = pv.distance(rp, rp, false, true);\n                var pLen = z.length - 2;\n                for (var i = 0; i < pLen; i++) {\n                  p = z[i];\n                  fv.setRelative(p, p, d, pv);\n                  //if (p !== rp) fv.setRelative(p, p, d, pv);\n                }\n              }\n\n              // SHPIX[] SHift point by a PIXel amount\n              // 0x38\n              function SHPIX(state) {\n                var stack = state.stack;\n                var loop = state.loop;\n                var fv = state.fv;\n                var d = stack.pop() / 0x40;\n                var z2 = state.z2;\n\n                while (loop--) {\n                  var pi = stack.pop();\n                  var p = z2[pi];\n\n                  if (exports.DEBUG) {\n                    console.log(\n                      state.step,\n                      (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') +\n                        'SHPIX[]',\n                      pi,\n                      d\n                    );\n                  }\n\n                  fv.setRelative(p, p, d);\n                  fv.touch(p);\n                }\n\n                state.loop = 1;\n              }\n\n              // IP[] Interpolate Point\n              // 0x39\n              function IP(state) {\n                var stack = state.stack;\n                var rp1i = state.rp1;\n                var rp2i = state.rp2;\n                var loop = state.loop;\n                var rp1 = state.z0[rp1i];\n                var rp2 = state.z1[rp2i];\n                var fv = state.fv;\n                var pv = state.dpv;\n                var z2 = state.z2;\n\n                while (loop--) {\n                  var pi = stack.pop();\n                  var p = z2[pi];\n\n                  if (exports.DEBUG) {\n                    console.log(\n                      state.step,\n                      (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') + 'IP[]',\n                      pi,\n                      rp1i,\n                      '<->',\n                      rp2i\n                    );\n                  }\n\n                  fv.interpolate(p, rp1, rp2, pv);\n\n                  fv.touch(p);\n                }\n\n                state.loop = 1;\n              }\n\n              // MSIRP[a] Move Stack Indirect Relative Point\n              // 0x3A-0x3B\n              function MSIRP(a, state) {\n                var stack = state.stack;\n                var d = stack.pop() / 64;\n                var pi = stack.pop();\n                var p = state.z1[pi];\n                var rp0 = state.z0[state.rp0];\n                var fv = state.fv;\n                var pv = state.pv;\n\n                fv.setRelative(p, rp0, d, pv);\n                fv.touch(p);\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'MSIRP[' + a + ']', d, pi);\n                }\n\n                state.rp1 = state.rp0;\n                state.rp2 = pi;\n                if (a) {\n                  state.rp0 = pi;\n                }\n              }\n\n              // ALIGNRP[] Align to reference point.\n              // 0x3C\n              function ALIGNRP(state) {\n                var stack = state.stack;\n                var rp0i = state.rp0;\n                var rp0 = state.z0[rp0i];\n                var loop = state.loop;\n                var fv = state.fv;\n                var pv = state.pv;\n                var z1 = state.z1;\n\n                while (loop--) {\n                  var pi = stack.pop();\n                  var p = z1[pi];\n\n                  if (exports.DEBUG) {\n                    console.log(\n                      state.step,\n                      (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') +\n                        'ALIGNRP[]',\n                      pi\n                    );\n                  }\n\n                  fv.setRelative(p, rp0, 0, pv);\n                  fv.touch(p);\n                }\n\n                state.loop = 1;\n              }\n\n              // RTG[] Round To Double Grid\n              // 0x3D\n              function RTDG(state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'RTDG[]');\n                }\n\n                state.round = roundToDoubleGrid;\n              }\n\n              // MIAP[a] Move Indirect Absolute Point\n              // 0x3E-0x3F\n              function MIAP(round, state) {\n                var stack = state.stack;\n                var n = stack.pop();\n                var pi = stack.pop();\n                var p = state.z0[pi];\n                var fv = state.fv;\n                var pv = state.pv;\n                var cv = state.cvt[n];\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'MIAP[' + round + ']', n, '(', cv, ')', pi);\n                }\n\n                var d = pv.distance(p, HPZero);\n\n                if (round) {\n                  if (Math.abs(d - cv) < state.cvCutIn) {\n                    d = cv;\n                  }\n\n                  d = state.round(d);\n                }\n\n                fv.setRelative(p, HPZero, d, pv);\n\n                if (state.zp0 === 0) {\n                  p.xo = p.x;\n                  p.yo = p.y;\n                }\n\n                fv.touch(p);\n\n                state.rp0 = state.rp1 = pi;\n              }\n\n              // NPUSB[] PUSH N Bytes\n              // 0x40\n              function NPUSHB(state) {\n                var prog = state.prog;\n                var ip = state.ip;\n                var stack = state.stack;\n\n                var n = prog[++ip];\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'NPUSHB[]', n);\n                }\n\n                for (var i = 0; i < n; i++) {\n                  stack.push(prog[++ip]);\n                }\n\n                state.ip = ip;\n              }\n\n              // NPUSHW[] PUSH N Words\n              // 0x41\n              function NPUSHW(state) {\n                var ip = state.ip;\n                var prog = state.prog;\n                var stack = state.stack;\n                var n = prog[++ip];\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'NPUSHW[]', n);\n                }\n\n                for (var i = 0; i < n; i++) {\n                  var w = (prog[++ip] << 8) | prog[++ip];\n                  if (w & 0x8000) {\n                    w = -((w ^ 0xffff) + 1);\n                  }\n                  stack.push(w);\n                }\n\n                state.ip = ip;\n              }\n\n              // WS[] Write Store\n              // 0x42\n              function WS(state) {\n                var stack = state.stack;\n                var store = state.store;\n\n                if (!store) {\n                  store = state.store = [];\n                }\n\n                var v = stack.pop();\n                var l = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'WS', v, l);\n                }\n\n                store[l] = v;\n              }\n\n              // RS[] Read Store\n              // 0x43\n              function RS(state) {\n                var stack = state.stack;\n                var store = state.store;\n\n                var l = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'RS', l);\n                }\n\n                var v = (store && store[l]) || 0;\n\n                stack.push(v);\n              }\n\n              // WCVTP[] Write Control Value Table in Pixel units\n              // 0x44\n              function WCVTP(state) {\n                var stack = state.stack;\n\n                var v = stack.pop();\n                var l = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'WCVTP', v, l);\n                }\n\n                state.cvt[l] = v / 0x40;\n              }\n\n              // RCVT[] Read Control Value Table entry\n              // 0x45\n              function RCVT(state) {\n                var stack = state.stack;\n                var cvte = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'RCVT', cvte);\n                }\n\n                stack.push(state.cvt[cvte] * 0x40);\n              }\n\n              // GC[] Get Coordinate projected onto the projection vector\n              // 0x46-0x47\n              function GC(a, state) {\n                var stack = state.stack;\n                var pi = stack.pop();\n                var p = state.z2[pi];\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'GC[' + a + ']', pi);\n                }\n\n                stack.push(state.dpv.distance(p, HPZero, a, false) * 0x40);\n              }\n\n              // MD[a] Measure Distance\n              // 0x49-0x4A\n              function MD(a, state) {\n                var stack = state.stack;\n                var pi2 = stack.pop();\n                var pi1 = stack.pop();\n                var p2 = state.z1[pi2];\n                var p1 = state.z0[pi1];\n                var d = state.dpv.distance(p1, p2, a, a);\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'MD[' + a + ']', pi2, pi1, '->', d);\n                }\n\n                state.stack.push(Math.round(d * 64));\n              }\n\n              // MPPEM[] Measure Pixels Per EM\n              // 0x4B\n              function MPPEM(state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'MPPEM[]');\n                }\n                state.stack.push(state.ppem);\n              }\n\n              // FLIPON[] set the auto FLIP Boolean to ON\n              // 0x4D\n              function FLIPON(state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'FLIPON[]');\n                }\n                state.autoFlip = true;\n              }\n\n              // LT[] Less Than\n              // 0x50\n              function LT(state) {\n                var stack = state.stack;\n                var e2 = stack.pop();\n                var e1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'LT[]', e2, e1);\n                }\n\n                stack.push(e1 < e2 ? 1 : 0);\n              }\n\n              // LTEQ[] Less Than or EQual\n              // 0x53\n              function LTEQ(state) {\n                var stack = state.stack;\n                var e2 = stack.pop();\n                var e1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'LTEQ[]', e2, e1);\n                }\n\n                stack.push(e1 <= e2 ? 1 : 0);\n              }\n\n              // GTEQ[] Greater Than\n              // 0x52\n              function GT(state) {\n                var stack = state.stack;\n                var e2 = stack.pop();\n                var e1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'GT[]', e2, e1);\n                }\n\n                stack.push(e1 > e2 ? 1 : 0);\n              }\n\n              // GTEQ[] Greater Than or EQual\n              // 0x53\n              function GTEQ(state) {\n                var stack = state.stack;\n                var e2 = stack.pop();\n                var e1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'GTEQ[]', e2, e1);\n                }\n\n                stack.push(e1 >= e2 ? 1 : 0);\n              }\n\n              // EQ[] EQual\n              // 0x54\n              function EQ(state) {\n                var stack = state.stack;\n                var e2 = stack.pop();\n                var e1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'EQ[]', e2, e1);\n                }\n\n                stack.push(e2 === e1 ? 1 : 0);\n              }\n\n              // NEQ[] Not EQual\n              // 0x55\n              function NEQ(state) {\n                var stack = state.stack;\n                var e2 = stack.pop();\n                var e1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'NEQ[]', e2, e1);\n                }\n\n                stack.push(e2 !== e1 ? 1 : 0);\n              }\n\n              // ODD[] ODD\n              // 0x56\n              function ODD(state) {\n                var stack = state.stack;\n                var n = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'ODD[]', n);\n                }\n\n                stack.push(Math.trunc(n) % 2 ? 1 : 0);\n              }\n\n              // EVEN[] EVEN\n              // 0x57\n              function EVEN(state) {\n                var stack = state.stack;\n                var n = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'EVEN[]', n);\n                }\n\n                stack.push(Math.trunc(n) % 2 ? 0 : 1);\n              }\n\n              // IF[] IF test\n              // 0x58\n              function IF(state) {\n                var test = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'IF[]', test);\n                }\n\n                // if test is true it just continues\n                // if not the ip is skipped until matching ELSE or EIF\n                if (!test) {\n                  skip(state, true);\n\n                  if (exports.DEBUG) {\n                    console.log(state.step, 'EIF[]');\n                  }\n                }\n              }\n\n              // EIF[] End IF\n              // 0x59\n              function EIF(state) {\n                // this can be reached normally when\n                // executing an else branch.\n                // -> just ignore it\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'EIF[]');\n                }\n              }\n\n              // AND[] logical AND\n              // 0x5A\n              function AND(state) {\n                var stack = state.stack;\n                var e2 = stack.pop();\n                var e1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'AND[]', e2, e1);\n                }\n\n                stack.push(e2 && e1 ? 1 : 0);\n              }\n\n              // OR[] logical OR\n              // 0x5B\n              function OR(state) {\n                var stack = state.stack;\n                var e2 = stack.pop();\n                var e1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'OR[]', e2, e1);\n                }\n\n                stack.push(e2 || e1 ? 1 : 0);\n              }\n\n              // NOT[] logical NOT\n              // 0x5C\n              function NOT(state) {\n                var stack = state.stack;\n                var e = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'NOT[]', e);\n                }\n\n                stack.push(e ? 0 : 1);\n              }\n\n              // DELTAP1[] DELTA exception P1\n              // DELTAP2[] DELTA exception P2\n              // DELTAP3[] DELTA exception P3\n              // 0x5D, 0x71, 0x72\n              function DELTAP123(b, state) {\n                var stack = state.stack;\n                var n = stack.pop();\n                var fv = state.fv;\n                var pv = state.pv;\n                var ppem = state.ppem;\n                var base = state.deltaBase + (b - 1) * 16;\n                var ds = state.deltaShift;\n                var z0 = state.z0;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'DELTAP[' + b + ']', n, stack);\n                }\n\n                for (var i = 0; i < n; i++) {\n                  var pi = stack.pop();\n                  var arg = stack.pop();\n                  var appem = base + ((arg & 0xf0) >> 4);\n                  if (appem !== ppem) {\n                    continue;\n                  }\n\n                  var mag = (arg & 0x0f) - 8;\n                  if (mag >= 0) {\n                    mag++;\n                  }\n                  if (exports.DEBUG) {\n                    console.log(state.step, 'DELTAPFIX', pi, 'by', mag * ds);\n                  }\n\n                  var p = z0[pi];\n                  fv.setRelative(p, p, mag * ds, pv);\n                }\n              }\n\n              // SDB[] Set Delta Base in the graphics state\n              // 0x5E\n              function SDB(state) {\n                var stack = state.stack;\n                var n = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SDB[]', n);\n                }\n\n                state.deltaBase = n;\n              }\n\n              // SDS[] Set Delta Shift in the graphics state\n              // 0x5F\n              function SDS(state) {\n                var stack = state.stack;\n                var n = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SDS[]', n);\n                }\n\n                state.deltaShift = Math.pow(0.5, n);\n              }\n\n              // ADD[] ADD\n              // 0x60\n              function ADD(state) {\n                var stack = state.stack;\n                var n2 = stack.pop();\n                var n1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'ADD[]', n2, n1);\n                }\n\n                stack.push(n1 + n2);\n              }\n\n              // SUB[] SUB\n              // 0x61\n              function SUB(state) {\n                var stack = state.stack;\n                var n2 = stack.pop();\n                var n1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SUB[]', n2, n1);\n                }\n\n                stack.push(n1 - n2);\n              }\n\n              // DIV[] DIV\n              // 0x62\n              function DIV(state) {\n                var stack = state.stack;\n                var n2 = stack.pop();\n                var n1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'DIV[]', n2, n1);\n                }\n\n                stack.push(n1 * 64 / n2);\n              }\n\n              // MUL[] MUL\n              // 0x63\n              function MUL(state) {\n                var stack = state.stack;\n                var n2 = stack.pop();\n                var n1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'MUL[]', n2, n1);\n                }\n\n                stack.push(n1 * n2 / 64);\n              }\n\n              // ABS[] ABSolute value\n              // 0x64\n              function ABS(state) {\n                var stack = state.stack;\n                var n = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'ABS[]', n);\n                }\n\n                stack.push(Math.abs(n));\n              }\n\n              // NEG[] NEGate\n              // 0x65\n              function NEG(state) {\n                var stack = state.stack;\n                var n = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'NEG[]', n);\n                }\n\n                stack.push(-n);\n              }\n\n              // FLOOR[] FLOOR\n              // 0x66\n              function FLOOR(state) {\n                var stack = state.stack;\n                var n = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'FLOOR[]', n);\n                }\n\n                stack.push(Math.floor(n / 0x40) * 0x40);\n              }\n\n              // CEILING[] CEILING\n              // 0x67\n              function CEILING(state) {\n                var stack = state.stack;\n                var n = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'CEILING[]', n);\n                }\n\n                stack.push(Math.ceil(n / 0x40) * 0x40);\n              }\n\n              // ROUND[ab] ROUND value\n              // 0x68-0x6B\n              function ROUND(dt, state) {\n                var stack = state.stack;\n                var n = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'ROUND[]');\n                }\n\n                stack.push(state.round(n / 0x40) * 0x40);\n              }\n\n              // WCVTF[] Write Control Value Table in Funits\n              // 0x70\n              function WCVTF(state) {\n                var stack = state.stack;\n                var v = stack.pop();\n                var l = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'WCVTF[]', v, l);\n                }\n\n                state.cvt[l] = v * state.ppem / state.font.unitsPerEm;\n              }\n\n              // DELTAC1[] DELTA exception C1\n              // DELTAC2[] DELTA exception C2\n              // DELTAC3[] DELTA exception C3\n              // 0x73, 0x74, 0x75\n              function DELTAC123(b, state) {\n                var stack = state.stack;\n                var n = stack.pop();\n                var ppem = state.ppem;\n                var base = state.deltaBase + (b - 1) * 16;\n                var ds = state.deltaShift;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'DELTAC[' + b + ']', n, stack);\n                }\n\n                for (var i = 0; i < n; i++) {\n                  var c = stack.pop();\n                  var arg = stack.pop();\n                  var appem = base + ((arg & 0xf0) >> 4);\n                  if (appem !== ppem) {\n                    continue;\n                  }\n\n                  var mag = (arg & 0x0f) - 8;\n                  if (mag >= 0) {\n                    mag++;\n                  }\n\n                  var delta = mag * ds;\n\n                  if (exports.DEBUG) {\n                    console.log(state.step, 'DELTACFIX', c, 'by', delta);\n                  }\n\n                  state.cvt[c] += delta;\n                }\n              }\n\n              // SROUND[] Super ROUND\n              // 0x76\n              function SROUND(state) {\n                var n = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SROUND[]', n);\n                }\n\n                state.round = roundSuper;\n\n                var period;\n\n                switch (n & 0xc0) {\n                  case 0x00:\n                    period = 0.5;\n                    break;\n                  case 0x40:\n                    period = 1;\n                    break;\n                  case 0x80:\n                    period = 2;\n                    break;\n                  default:\n                    throw new Error('invalid SROUND value');\n                }\n\n                state.srPeriod = period;\n\n                switch (n & 0x30) {\n                  case 0x00:\n                    state.srPhase = 0;\n                    break;\n                  case 0x10:\n                    state.srPhase = 0.25 * period;\n                    break;\n                  case 0x20:\n                    state.srPhase = 0.5 * period;\n                    break;\n                  case 0x30:\n                    state.srPhase = 0.75 * period;\n                    break;\n                  default:\n                    throw new Error('invalid SROUND value');\n                }\n\n                n &= 0x0f;\n\n                if (n === 0) {\n                  state.srThreshold = 0;\n                } else {\n                  state.srThreshold = (n / 8 - 0.5) * period;\n                }\n              }\n\n              // S45ROUND[] Super ROUND 45 degrees\n              // 0x77\n              function S45ROUND(state) {\n                var n = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'S45ROUND[]', n);\n                }\n\n                state.round = roundSuper;\n\n                var period;\n\n                switch (n & 0xc0) {\n                  case 0x00:\n                    period = Math.sqrt(2) / 2;\n                    break;\n                  case 0x40:\n                    period = Math.sqrt(2);\n                    break;\n                  case 0x80:\n                    period = 2 * Math.sqrt(2);\n                    break;\n                  default:\n                    throw new Error('invalid S45ROUND value');\n                }\n\n                state.srPeriod = period;\n\n                switch (n & 0x30) {\n                  case 0x00:\n                    state.srPhase = 0;\n                    break;\n                  case 0x10:\n                    state.srPhase = 0.25 * period;\n                    break;\n                  case 0x20:\n                    state.srPhase = 0.5 * period;\n                    break;\n                  case 0x30:\n                    state.srPhase = 0.75 * period;\n                    break;\n                  default:\n                    throw new Error('invalid S45ROUND value');\n                }\n\n                n &= 0x0f;\n\n                if (n === 0) {\n                  state.srThreshold = 0;\n                } else {\n                  state.srThreshold = (n / 8 - 0.5) * period;\n                }\n              }\n\n              // ROFF[] Round Off\n              // 0x7A\n              function ROFF(state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'ROFF[]');\n                }\n\n                state.round = roundOff;\n              }\n\n              // RUTG[] Round Up To Grid\n              // 0x7C\n              function RUTG(state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'RUTG[]');\n                }\n\n                state.round = roundUpToGrid;\n              }\n\n              // RDTG[] Round Down To Grid\n              // 0x7D\n              function RDTG(state) {\n                if (exports.DEBUG) {\n                  console.log(state.step, 'RDTG[]');\n                }\n\n                state.round = roundDownToGrid;\n              }\n\n              // SCANCTRL[] SCAN conversion ConTRoL\n              // 0x85\n              function SCANCTRL(state) {\n                var n = state.stack.pop();\n\n                // ignored by opentype.js\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SCANCTRL[]', n);\n                }\n              }\n\n              // SDPVTL[a] Set Dual Projection Vector To Line\n              // 0x86-0x87\n              function SDPVTL(a, state) {\n                var stack = state.stack;\n                var p2i = stack.pop();\n                var p1i = stack.pop();\n                var p2 = state.z2[p2i];\n                var p1 = state.z1[p1i];\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SDPVTL[' + a + ']', p2i, p1i);\n                }\n\n                var dx;\n                var dy;\n\n                if (!a) {\n                  dx = p1.x - p2.x;\n                  dy = p1.y - p2.y;\n                } else {\n                  dx = p2.y - p1.y;\n                  dy = p1.x - p2.x;\n                }\n\n                state.dpv = getUnitVector(dx, dy);\n              }\n\n              // GETINFO[] GET INFOrmation\n              // 0x88\n              function GETINFO(state) {\n                var stack = state.stack;\n                var sel = stack.pop();\n                var r = 0;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'GETINFO[]', sel);\n                }\n\n                // v35 as in no subpixel hinting\n                if (sel & 0x01) {\n                  r = 35;\n                }\n\n                // TODO rotation and stretch currently not supported\n                // and thus those GETINFO are always 0.\n\n                // opentype.js is always gray scaling\n                if (sel & 0x20) {\n                  r |= 0x1000;\n                }\n\n                stack.push(r);\n              }\n\n              // ROLL[] ROLL the top three stack elements\n              // 0x8A\n              function ROLL(state) {\n                var stack = state.stack;\n                var a = stack.pop();\n                var b = stack.pop();\n                var c = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'ROLL[]');\n                }\n\n                stack.push(b);\n                stack.push(a);\n                stack.push(c);\n              }\n\n              // MAX[] MAXimum of top two stack elements\n              // 0x8B\n              function MAX(state) {\n                var stack = state.stack;\n                var e2 = stack.pop();\n                var e1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'MAX[]', e2, e1);\n                }\n\n                stack.push(Math.max(e1, e2));\n              }\n\n              // MIN[] MINimum of top two stack elements\n              // 0x8C\n              function MIN(state) {\n                var stack = state.stack;\n                var e2 = stack.pop();\n                var e1 = stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'MIN[]', e2, e1);\n                }\n\n                stack.push(Math.min(e1, e2));\n              }\n\n              // SCANTYPE[] SCANTYPE\n              // 0x8D\n              function SCANTYPE(state) {\n                var n = state.stack.pop();\n                // ignored by opentype.js\n                if (exports.DEBUG) {\n                  console.log(state.step, 'SCANTYPE[]', n);\n                }\n              }\n\n              // INSTCTRL[] INSTCTRL\n              // 0x8D\n              function INSTCTRL(state) {\n                var s = state.stack.pop();\n                var v = state.stack.pop();\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'INSTCTRL[]', s, v);\n                }\n\n                switch (s) {\n                  case 1:\n                    state.inhibitGridFit = !!v;\n                    return;\n                  case 2:\n                    state.ignoreCvt = !!v;\n                    return;\n                  default:\n                    throw new Error('invalid INSTCTRL[] selector');\n                }\n              }\n\n              // PUSHB[abc] PUSH Bytes\n              // 0xB0-0xB7\n              function PUSHB(n, state) {\n                var stack = state.stack;\n                var prog = state.prog;\n                var ip = state.ip;\n\n                if (exports.DEBUG) {\n                  console.log(state.step, 'PUSHB[' + n + ']');\n                }\n\n                for (var i = 0; i < n; i++) {\n                  stack.push(prog[++ip]);\n                }\n\n                state.ip = ip;\n              }\n\n              // PUSHW[abc] PUSH Words\n              // 0xB8-0xBF\n              function PUSHW(n, state) {\n                var ip = state.ip;\n                var prog = state.prog;\n                var stack = state.stack;\n\n                if (exports.DEBUG) {\n                  console.log(state.ip, 'PUSHW[' + n + ']');\n                }\n\n                for (var i = 0; i < n; i++) {\n                  var w = (prog[++ip] << 8) | prog[++ip];\n                  if (w & 0x8000) {\n                    w = -((w ^ 0xffff) + 1);\n                  }\n                  stack.push(w);\n                }\n\n                state.ip = ip;\n              }\n\n              // MDRP[abcde] Move Direct Relative Point\n              // 0xD0-0xEF\n              // (if indirect is 0)\n              //\n              // and\n              //\n              // MIRP[abcde] Move Indirect Relative Point\n              // 0xE0-0xFF\n              // (if indirect is 1)\n\n              function MDRP_MIRP(indirect, setRp0, keepD, ro, dt, state) {\n                var stack = state.stack;\n                var cvte = indirect && stack.pop();\n                var pi = stack.pop();\n                var rp0i = state.rp0;\n                var rp = state.z0[rp0i];\n                var p = state.z1[pi];\n\n                var md = state.minDis;\n                var fv = state.fv;\n                var pv = state.dpv;\n                var od; // original distance\n                var d; // moving distance\n                var sign; // sign of distance\n                var cv;\n\n                d = od = pv.distance(p, rp, true, true);\n                sign = d >= 0 ? 1 : -1; // Math.sign would be 0 in case of 0\n\n                // TODO consider autoFlip\n                d = Math.abs(d);\n\n                if (indirect) {\n                  cv = state.cvt[cvte];\n\n                  if (ro && Math.abs(d - cv) < state.cvCutIn) {\n                    d = cv;\n                  }\n                }\n\n                if (keepD && d < md) {\n                  d = md;\n                }\n\n                if (ro) {\n                  d = state.round(d);\n                }\n\n                fv.setRelative(p, rp, sign * d, pv);\n                fv.touch(p);\n\n                if (exports.DEBUG) {\n                  console.log(\n                    state.step,\n                    (indirect ? 'MIRP[' : 'MDRP[') +\n                      (setRp0 ? 'M' : 'm') +\n                      (keepD ? '>' : '_') +\n                      (ro ? 'R' : '_') +\n                      (dt === 0 ? 'Gr' : dt === 1 ? 'Bl' : dt === 2 ? 'Wh' : '') +\n                      ']',\n                    indirect ? cvte + '(' + state.cvt[cvte] + ',' + cv + ')' : '',\n                    pi,\n                    '(d =',\n                    od,\n                    '->',\n                    sign * d,\n                    ')'\n                  );\n                }\n\n                state.rp1 = state.rp0;\n                state.rp2 = pi;\n                if (setRp0) {\n                  state.rp0 = pi;\n                }\n              }\n\n              /*\n\t* The instruction table.\n\t*/\n              instructionTable = [\n                /* 0x00 */ SVTCA.bind(undefined, yUnitVector),\n                /* 0x01 */ SVTCA.bind(undefined, xUnitVector),\n                /* 0x02 */ SPVTCA.bind(undefined, yUnitVector),\n                /* 0x03 */ SPVTCA.bind(undefined, xUnitVector),\n                /* 0x04 */ SFVTCA.bind(undefined, yUnitVector),\n                /* 0x05 */ SFVTCA.bind(undefined, xUnitVector),\n                /* 0x06 */ SPVTL.bind(undefined, 0),\n                /* 0x07 */ SPVTL.bind(undefined, 1),\n                /* 0x08 */ SFVTL.bind(undefined, 0),\n                /* 0x09 */ SFVTL.bind(undefined, 1),\n                /* 0x0A */ SPVFS,\n                /* 0x0B */ SFVFS,\n                /* 0x0C */ GPV,\n                /* 0x0D */ GFV,\n                /* 0x0E */ SFVTPV,\n                /* 0x0F */ ISECT,\n                /* 0x10 */ SRP0,\n                /* 0x11 */ SRP1,\n                /* 0x12 */ SRP2,\n                /* 0x13 */ SZP0,\n                /* 0x14 */ SZP1,\n                /* 0x15 */ SZP2,\n                /* 0x16 */ SZPS,\n                /* 0x17 */ SLOOP,\n                /* 0x18 */ RTG,\n                /* 0x19 */ RTHG,\n                /* 0x1A */ SMD,\n                /* 0x1B */ ELSE,\n                /* 0x1C */ JMPR,\n                /* 0x1D */ SCVTCI,\n                /* 0x1E */ undefined, // TODO SSWCI\n                /* 0x1F */ undefined, // TODO SSW\n                /* 0x20 */ DUP,\n                /* 0x21 */ POP,\n                /* 0x22 */ CLEAR,\n                /* 0x23 */ SWAP,\n                /* 0x24 */ DEPTH,\n                /* 0x25 */ CINDEX,\n                /* 0x26 */ MINDEX,\n                /* 0x27 */ undefined, // TODO ALIGNPTS\n                /* 0x28 */ undefined,\n                /* 0x29 */ undefined, // TODO UTP\n                /* 0x2A */ LOOPCALL,\n                /* 0x2B */ CALL,\n                /* 0x2C */ FDEF,\n                /* 0x2D */ undefined, // ENDF (eaten by FDEF)\n                /* 0x2E */ MDAP.bind(undefined, 0),\n                /* 0x2F */ MDAP.bind(undefined, 1),\n                /* 0x30 */ IUP.bind(undefined, yUnitVector),\n                /* 0x31 */ IUP.bind(undefined, xUnitVector),\n                /* 0x32 */ SHP.bind(undefined, 0),\n                /* 0x33 */ SHP.bind(undefined, 1),\n                /* 0x34 */ SHC.bind(undefined, 0),\n                /* 0x35 */ SHC.bind(undefined, 1),\n                /* 0x36 */ SHZ.bind(undefined, 0),\n                /* 0x37 */ SHZ.bind(undefined, 1),\n                /* 0x38 */ SHPIX,\n                /* 0x39 */ IP,\n                /* 0x3A */ MSIRP.bind(undefined, 0),\n                /* 0x3B */ MSIRP.bind(undefined, 1),\n                /* 0x3C */ ALIGNRP,\n                /* 0x3D */ RTDG,\n                /* 0x3E */ MIAP.bind(undefined, 0),\n                /* 0x3F */ MIAP.bind(undefined, 1),\n                /* 0x40 */ NPUSHB,\n                /* 0x41 */ NPUSHW,\n                /* 0x42 */ WS,\n                /* 0x43 */ RS,\n                /* 0x44 */ WCVTP,\n                /* 0x45 */ RCVT,\n                /* 0x46 */ GC.bind(undefined, 0),\n                /* 0x47 */ GC.bind(undefined, 1),\n                /* 0x48 */ undefined, // TODO SCFS\n                /* 0x49 */ MD.bind(undefined, 0),\n                /* 0x4A */ MD.bind(undefined, 1),\n                /* 0x4B */ MPPEM,\n                /* 0x4C */ undefined, // TODO MPS\n                /* 0x4D */ FLIPON,\n                /* 0x4E */ undefined, // TODO FLIPOFF\n                /* 0x4F */ undefined, // TODO DEBUG\n                /* 0x50 */ LT,\n                /* 0x51 */ LTEQ,\n                /* 0x52 */ GT,\n                /* 0x53 */ GTEQ,\n                /* 0x54 */ EQ,\n                /* 0x55 */ NEQ,\n                /* 0x56 */ ODD,\n                /* 0x57 */ EVEN,\n                /* 0x58 */ IF,\n                /* 0x59 */ EIF,\n                /* 0x5A */ AND,\n                /* 0x5B */ OR,\n                /* 0x5C */ NOT,\n                /* 0x5D */ DELTAP123.bind(undefined, 1),\n                /* 0x5E */ SDB,\n                /* 0x5F */ SDS,\n                /* 0x60 */ ADD,\n                /* 0x61 */ SUB,\n                /* 0x62 */ DIV,\n                /* 0x63 */ MUL,\n                /* 0x64 */ ABS,\n                /* 0x65 */ NEG,\n                /* 0x66 */ FLOOR,\n                /* 0x67 */ CEILING,\n                /* 0x68 */ ROUND.bind(undefined, 0),\n                /* 0x69 */ ROUND.bind(undefined, 1),\n                /* 0x6A */ ROUND.bind(undefined, 2),\n                /* 0x6B */ ROUND.bind(undefined, 3),\n                /* 0x6C */ undefined, // TODO NROUND[ab]\n                /* 0x6D */ undefined, // TODO NROUND[ab]\n                /* 0x6E */ undefined, // TODO NROUND[ab]\n                /* 0x6F */ undefined, // TODO NROUND[ab]\n                /* 0x70 */ WCVTF,\n                /* 0x71 */ DELTAP123.bind(undefined, 2),\n                /* 0x72 */ DELTAP123.bind(undefined, 3),\n                /* 0x73 */ DELTAC123.bind(undefined, 1),\n                /* 0x74 */ DELTAC123.bind(undefined, 2),\n                /* 0x75 */ DELTAC123.bind(undefined, 3),\n                /* 0x76 */ SROUND,\n                /* 0x77 */ S45ROUND,\n                /* 0x78 */ undefined, // TODO JROT[]\n                /* 0x79 */ undefined, // TODO JROF[]\n                /* 0x7A */ ROFF,\n                /* 0x7B */ undefined,\n                /* 0x7C */ RUTG,\n                /* 0x7D */ RDTG,\n                /* 0x7E */ POP, // actually SANGW, supposed to do only a pop though\n                /* 0x7F */ POP, // actually AA, supposed to do only a pop though\n                /* 0x80 */ undefined, // TODO FLIPPT\n                /* 0x81 */ undefined, // TODO FLIPRGON\n                /* 0x82 */ undefined, // TODO FLIPRGOFF\n                /* 0x83 */ undefined,\n                /* 0x84 */ undefined,\n                /* 0x85 */ SCANCTRL,\n                /* 0x86 */ SDPVTL.bind(undefined, 0),\n                /* 0x87 */ SDPVTL.bind(undefined, 1),\n                /* 0x88 */ GETINFO,\n                /* 0x89 */ undefined, // TODO IDEF\n                /* 0x8A */ ROLL,\n                /* 0x8B */ MAX,\n                /* 0x8C */ MIN,\n                /* 0x8D */ SCANTYPE,\n                /* 0x8E */ INSTCTRL,\n                /* 0x8F */ undefined,\n                /* 0x90 */ undefined,\n                /* 0x91 */ undefined,\n                /* 0x92 */ undefined,\n                /* 0x93 */ undefined,\n                /* 0x94 */ undefined,\n                /* 0x95 */ undefined,\n                /* 0x96 */ undefined,\n                /* 0x97 */ undefined,\n                /* 0x98 */ undefined,\n                /* 0x99 */ undefined,\n                /* 0x9A */ undefined,\n                /* 0x9B */ undefined,\n                /* 0x9C */ undefined,\n                /* 0x9D */ undefined,\n                /* 0x9E */ undefined,\n                /* 0x9F */ undefined,\n                /* 0xA0 */ undefined,\n                /* 0xA1 */ undefined,\n                /* 0xA2 */ undefined,\n                /* 0xA3 */ undefined,\n                /* 0xA4 */ undefined,\n                /* 0xA5 */ undefined,\n                /* 0xA6 */ undefined,\n                /* 0xA7 */ undefined,\n                /* 0xA8 */ undefined,\n                /* 0xA9 */ undefined,\n                /* 0xAA */ undefined,\n                /* 0xAB */ undefined,\n                /* 0xAC */ undefined,\n                /* 0xAD */ undefined,\n                /* 0xAE */ undefined,\n                /* 0xAF */ undefined,\n                /* 0xB0 */ PUSHB.bind(undefined, 1),\n                /* 0xB1 */ PUSHB.bind(undefined, 2),\n                /* 0xB2 */ PUSHB.bind(undefined, 3),\n                /* 0xB3 */ PUSHB.bind(undefined, 4),\n                /* 0xB4 */ PUSHB.bind(undefined, 5),\n                /* 0xB5 */ PUSHB.bind(undefined, 6),\n                /* 0xB6 */ PUSHB.bind(undefined, 7),\n                /* 0xB7 */ PUSHB.bind(undefined, 8),\n                /* 0xB8 */ PUSHW.bind(undefined, 1),\n                /* 0xB9 */ PUSHW.bind(undefined, 2),\n                /* 0xBA */ PUSHW.bind(undefined, 3),\n                /* 0xBB */ PUSHW.bind(undefined, 4),\n                /* 0xBC */ PUSHW.bind(undefined, 5),\n                /* 0xBD */ PUSHW.bind(undefined, 6),\n                /* 0xBE */ PUSHW.bind(undefined, 7),\n                /* 0xBF */ PUSHW.bind(undefined, 8),\n                /* 0xC0 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 0, 0),\n                /* 0xC1 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 0, 1),\n                /* 0xC2 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 0, 2),\n                /* 0xC3 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 0, 3),\n                /* 0xC4 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 1, 0),\n                /* 0xC5 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 1, 1),\n                /* 0xC6 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 1, 2),\n                /* 0xC7 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 1, 3),\n                /* 0xC8 */ MDRP_MIRP.bind(undefined, 0, 0, 1, 0, 0),\n                /* 0xC9 */ MDRP_MIRP.bind(undefined, 0, 0, 1, 0, 1),\n                /* 0xCA */ MDRP_MIRP.bind(undefined, 0, 0, 1, 0, 2),\n                /* 0xCB */ MDRP_MIRP.bind(undefined, 0, 0, 1, 0, 3),\n                /* 0xCC */ MDRP_MIRP.bind(undefined, 0, 0, 1, 1, 0),\n                /* 0xCD */ MDRP_MIRP.bind(undefined, 0, 0, 1, 1, 1),\n                /* 0xCE */ MDRP_MIRP.bind(undefined, 0, 0, 1, 1, 2),\n                /* 0xCF */ MDRP_MIRP.bind(undefined, 0, 0, 1, 1, 3),\n                /* 0xD0 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 0, 0),\n                /* 0xD1 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 0, 1),\n                /* 0xD2 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 0, 2),\n                /* 0xD3 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 0, 3),\n                /* 0xD4 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 1, 0),\n                /* 0xD5 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 1, 1),\n                /* 0xD6 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 1, 2),\n                /* 0xD7 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 1, 3),\n                /* 0xD8 */ MDRP_MIRP.bind(undefined, 0, 1, 1, 0, 0),\n                /* 0xD9 */ MDRP_MIRP.bind(undefined, 0, 1, 1, 0, 1),\n                /* 0xDA */ MDRP_MIRP.bind(undefined, 0, 1, 1, 0, 2),\n                /* 0xDB */ MDRP_MIRP.bind(undefined, 0, 1, 1, 0, 3),\n                /* 0xDC */ MDRP_MIRP.bind(undefined, 0, 1, 1, 1, 0),\n                /* 0xDD */ MDRP_MIRP.bind(undefined, 0, 1, 1, 1, 1),\n                /* 0xDE */ MDRP_MIRP.bind(undefined, 0, 1, 1, 1, 2),\n                /* 0xDF */ MDRP_MIRP.bind(undefined, 0, 1, 1, 1, 3),\n                /* 0xE0 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 0, 0),\n                /* 0xE1 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 0, 1),\n                /* 0xE2 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 0, 2),\n                /* 0xE3 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 0, 3),\n                /* 0xE4 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 1, 0),\n                /* 0xE5 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 1, 1),\n                /* 0xE6 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 1, 2),\n                /* 0xE7 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 1, 3),\n                /* 0xE8 */ MDRP_MIRP.bind(undefined, 1, 0, 1, 0, 0),\n                /* 0xE9 */ MDRP_MIRP.bind(undefined, 1, 0, 1, 0, 1),\n                /* 0xEA */ MDRP_MIRP.bind(undefined, 1, 0, 1, 0, 2),\n                /* 0xEB */ MDRP_MIRP.bind(undefined, 1, 0, 1, 0, 3),\n                /* 0xEC */ MDRP_MIRP.bind(undefined, 1, 0, 1, 1, 0),\n                /* 0xED */ MDRP_MIRP.bind(undefined, 1, 0, 1, 1, 1),\n                /* 0xEE */ MDRP_MIRP.bind(undefined, 1, 0, 1, 1, 2),\n                /* 0xEF */ MDRP_MIRP.bind(undefined, 1, 0, 1, 1, 3),\n                /* 0xF0 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 0, 0),\n                /* 0xF1 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 0, 1),\n                /* 0xF2 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 0, 2),\n                /* 0xF3 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 0, 3),\n                /* 0xF4 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 1, 0),\n                /* 0xF5 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 1, 1),\n                /* 0xF6 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 1, 2),\n                /* 0xF7 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 1, 3),\n                /* 0xF8 */ MDRP_MIRP.bind(undefined, 1, 1, 1, 0, 0),\n                /* 0xF9 */ MDRP_MIRP.bind(undefined, 1, 1, 1, 0, 1),\n                /* 0xFA */ MDRP_MIRP.bind(undefined, 1, 1, 1, 0, 2),\n                /* 0xFB */ MDRP_MIRP.bind(undefined, 1, 1, 1, 0, 3),\n                /* 0xFC */ MDRP_MIRP.bind(undefined, 1, 1, 1, 1, 0),\n                /* 0xFD */ MDRP_MIRP.bind(undefined, 1, 1, 1, 1, 1),\n                /* 0xFE */ MDRP_MIRP.bind(undefined, 1, 1, 1, 1, 2),\n                /* 0xFF */ MDRP_MIRP.bind(undefined, 1, 1, 1, 1, 3)\n              ];\n\n              /*****************************\n\t  Mathematical Considerations\n\t******************************\n\n\tfv ... refers to freedom vector\n\tpv ... refers to projection vector\n\trp ... refers to reference point\n\tp  ... refers to to point being operated on\n\td  ... refers to distance\n\n\tSETRELATIVE:\n\t============\n\n\tcase freedom vector == x-axis:\n\t------------------------------\n\n\t                        (pv)\n\t                     .-'\n\t              rpd .-'\n\t               .-*\n\t          d .-'90°'\n\t         .-'       '\n\t      .-'           '\n\t   *-'               ' b\n\t  rp                  '\n\t                       '\n\t                        '\n\t            p *----------*-------------- (fv)\n\t                          pm\n\n\t  rpdx = rpx + d * pv.x\n\t  rpdy = rpy + d * pv.y\n\n\t  equation of line b\n\n\t   y - rpdy = pvns * (x- rpdx)\n\n\t   y = p.y\n\n\t   x = rpdx + ( p.y - rpdy ) / pvns\n\n\n\tcase freedom vector == y-axis:\n\t------------------------------\n\n\t    * pm\n\t    |\\\n\t    | \\\n\t    |  \\\n\t    |   \\\n\t    |    \\\n\t    |     \\\n\t    |      \\\n\t    |       \\\n\t    |        \\\n\t    |         \\ b\n\t    |          \\\n\t    |           \\\n\t    |            \\    .-' (pv)\n\t    |         90° \\.-'\n\t    |           .-'* rpd\n\t    |        .-'\n\t    *     *-'  d\n\t    p     rp\n\n\t  rpdx = rpx + d * pv.x\n\t  rpdy = rpy + d * pv.y\n\n\t  equation of line b:\n\t           pvns ... normal slope to pv\n\n\t   y - rpdy = pvns * (x - rpdx)\n\n\t   x = p.x\n\n\t   y = rpdy +  pvns * (p.x - rpdx)\n\n\n\n\tgeneric case:\n\t-------------\n\n\n\t                              .'(fv)\n\t                            .'\n\t                          .* pm\n\t                        .' !\n\t                      .'    .\n\t                    .'      !\n\t                  .'         . b\n\t                .'           !\n\t               *              .\n\t              p               !\n\t                         90°   .    ... (pv)\n\t                           ...-*-'''\n\t                  ...---'''    rpd\n\t         ...---'''   d\n\t   *--'''\n\t  rp\n\n\t    rpdx = rpx + d * pv.x\n\t    rpdy = rpy + d * pv.y\n\n\t equation of line b:\n\t    pvns... normal slope to pv\n\n\t    y - rpdy = pvns * (x - rpdx)\n\n\t equation of freedom vector line:\n\t    fvs ... slope of freedom vector (=fy/fx)\n\n\t    y - py = fvs * (x - px)\n\n\n\t  on pm both equations are true for same x/y\n\n\t    y - rpdy = pvns * (x - rpdx)\n\n\t    y - py = fvs * (x - px)\n\n\t  form to y and set equal:\n\n\t    pvns * (x - rpdx) + rpdy = fvs * (x - px) + py\n\n\t  expand:\n\n\t    pvns * x - pvns * rpdx + rpdy = fvs * x - fvs * px + py\n\n\t  switch:\n\n\t    fvs * x - fvs * px + py = pvns * x - pvns * rpdx + rpdy\n\n\t  solve for x:\n\n\t    fvs * x - pvns * x = fvs * px - pvns * rpdx - py + rpdy\n\n\n\n\t          fvs * px - pvns * rpdx + rpdy - py\n\t    x =  -----------------------------------\n\t                 fvs - pvns\n\n\t  and:\n\n\t    y = fvs * (x - px) + py\n\n\n\n\tINTERPOLATE:\n\t============\n\n\tExamples of point interpolation.\n\n\tThe weight of the movement of the reference point gets bigger\n\tthe further the other reference point is away, thus the safest\n\toption (that is avoiding 0/0 divisions) is to weight the\n\toriginal distance of the other point by the sum of both distances.\n\n\tIf the sum of both distances is 0, then move the point by the\n\tarithmetic average of the movement of both reference points.\n\n\n\n\n\t           (+6)\n\t    rp1o *---->*rp1\n\t         .     .                          (+12)\n\t         .     .                  rp2o *---------->* rp2\n\t         .     .                       .           .\n\t         .     .                       .           .\n\t         .    10          20           .           .\n\t         |.........|...................|           .\n\t               .   .                               .\n\t               .   . (+8)                          .\n\t                po *------>*p                      .\n\t               .           .                       .\n\t               .    12     .          24           .\n\t               |...........|.......................|\n\t                                  36\n\n\n\t-------\n\n\n\n\t           (+10)\n\t    rp1o *-------->*rp1\n\t         .         .                      (-10)\n\t         .         .              rp2 *<---------* rpo2\n\t         .         .                   .         .\n\t         .         .                   .         .\n\t         .    10   .          30       .         .\n\t         |.........|.............................|\n\t                   .                   .\n\t                   . (+5)              .\n\t                po *--->* p            .\n\t                   .    .              .\n\t                   .    .   20         .\n\t                   |....|..............|\n\t                     5        15\n\n\n\t-------\n\n\n\t           (+10)\n\t    rp1o *-------->*rp1\n\t         .         .\n\t         .         .\n\t    rp2o *-------->*rp2\n\n\n\t                               (+10)\n\t                          po *-------->* p\n\n\t-------\n\n\n\t           (+10)\n\t    rp1o *-------->*rp1\n\t         .         .\n\t         .         .(+30)\n\t    rp2o *---------------------------->*rp2\n\n\n\t                                        (+25)\n\t                          po *----------------------->* p\n\n\n\n\tvim: set ts=4 sw=4 expandtab:\n\t*****/\n\n              // The Font object\n\n              // This code is based on Array.from implementation for strings in https://github.com/mathiasbynens/Array.from\n              var arrayFromString =\n                Array.from ||\n                function(s) {\n                  return (\n                    s.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]?|[^\\uD800-\\uDFFF]|./g) || []\n                  );\n                };\n\n              /**\n               * @typedef FontOptions\n               * @type Object\n               * @property {Boolean} empty - whether to create a new empty font\n               * @property {string} familyName\n               * @property {string} styleName\n               * @property {string=} fullName\n               * @property {string=} postScriptName\n               * @property {string=} designer\n               * @property {string=} designerURL\n               * @property {string=} manufacturer\n               * @property {string=} manufacturerURL\n               * @property {string=} license\n               * @property {string=} licenseURL\n               * @property {string=} version\n               * @property {string=} description\n               * @property {string=} copyright\n               * @property {string=} trademark\n               * @property {Number} unitsPerEm\n               * @property {Number} ascender\n               * @property {Number} descender\n               * @property {Number} createdTimestamp\n               * @property {string=} weightClass\n               * @property {string=} widthClass\n               * @property {string=} fsSelection\n               */\n\n              /**\n               * A Font represents a loaded OpenType font file.\n               * It contains a set of glyphs and methods to draw text on a drawing context,\n               * or to get a path representing the text.\n               * @exports opentype.Font\n               * @class\n               * @param {FontOptions}\n               * @constructor\n               */\n              function Font(options) {\n                options = options || {};\n\n                if (!options.empty) {\n                  // Check that we've provided the minimum set of names.\n                  checkArgument(\n                    options.familyName,\n                    'When creating a new Font object, familyName is required.'\n                  );\n                  checkArgument(\n                    options.styleName,\n                    'When creating a new Font object, styleName is required.'\n                  );\n                  checkArgument(\n                    options.unitsPerEm,\n                    'When creating a new Font object, unitsPerEm is required.'\n                  );\n                  checkArgument(\n                    options.ascender,\n                    'When creating a new Font object, ascender is required.'\n                  );\n                  checkArgument(\n                    options.descender,\n                    'When creating a new Font object, descender is required.'\n                  );\n                  checkArgument(\n                    options.descender < 0,\n                    'Descender should be negative (e.g. -512).'\n                  );\n\n                  // OS X will complain if the names are empty, so we put a single space everywhere by default.\n                  this.names = {\n                    fontFamily: { en: options.familyName || ' ' },\n                    fontSubfamily: { en: options.styleName || ' ' },\n                    fullName: {\n                      en: options.fullName || options.familyName + ' ' + options.styleName\n                    },\n                    // postScriptName may not contain any whitespace\n                    postScriptName: {\n                      en:\n                        options.postScriptName ||\n                        (options.familyName + options.styleName).replace(/\\s/g, '')\n                    },\n                    designer: { en: options.designer || ' ' },\n                    designerURL: { en: options.designerURL || ' ' },\n                    manufacturer: { en: options.manufacturer || ' ' },\n                    manufacturerURL: { en: options.manufacturerURL || ' ' },\n                    license: { en: options.license || ' ' },\n                    licenseURL: { en: options.licenseURL || ' ' },\n                    version: { en: options.version || 'Version 0.1' },\n                    description: { en: options.description || ' ' },\n                    copyright: { en: options.copyright || ' ' },\n                    trademark: { en: options.trademark || ' ' }\n                  };\n                  this.unitsPerEm = options.unitsPerEm || 1000;\n                  this.ascender = options.ascender;\n                  this.descender = options.descender;\n                  this.createdTimestamp = options.createdTimestamp;\n                  this.tables = {\n                    os2: {\n                      usWeightClass: options.weightClass || this.usWeightClasses.MEDIUM,\n                      usWidthClass: options.widthClass || this.usWidthClasses.MEDIUM,\n                      fsSelection: options.fsSelection || this.fsSelectionValues.REGULAR\n                    }\n                  };\n                }\n\n                this.supported = true; // Deprecated: parseBuffer will throw an error if font is not supported.\n                this.glyphs = new glyphset.GlyphSet(this, options.glyphs || []);\n                this.encoding = new DefaultEncoding(this);\n                this.position = new Position(this);\n                this.substitution = new Substitution(this);\n                this.tables = this.tables || {};\n\n                Object.defineProperty(this, 'hinting', {\n                  get: function() {\n                    if (this._hinting) {\n                      return this._hinting;\n                    }\n                    if (this.outlinesFormat === 'truetype') {\n                      return (this._hinting = new Hinting(this));\n                    }\n                  }\n                });\n              }\n\n              /**\n               * Check if the font has a glyph for the given character.\n               * @param  {string}\n               * @return {Boolean}\n               */\n              Font.prototype.hasChar = function(c) {\n                return this.encoding.charToGlyphIndex(c) !== null;\n              };\n\n              /**\n               * Convert the given character to a single glyph index.\n               * Note that this function assumes that there is a one-to-one mapping between\n               * the given character and a glyph; for complex scripts this might not be the case.\n               * @param  {string}\n               * @return {Number}\n               */\n              Font.prototype.charToGlyphIndex = function(s) {\n                return this.encoding.charToGlyphIndex(s);\n              };\n\n              /**\n               * Convert the given character to a single Glyph object.\n               * Note that this function assumes that there is a one-to-one mapping between\n               * the given character and a glyph; for complex scripts this might not be the case.\n               * @param  {string}\n               * @return {opentype.Glyph}\n               */\n              Font.prototype.charToGlyph = function(c) {\n                var glyphIndex = this.charToGlyphIndex(c);\n                var glyph = this.glyphs.get(glyphIndex);\n                if (!glyph) {\n                  // .notdef\n                  glyph = this.glyphs.get(0);\n                }\n\n                return glyph;\n              };\n\n              /**\n               * Convert the given text to a list of Glyph objects.\n               * Note that there is no strict one-to-one mapping between characters and\n               * glyphs, so the list of returned glyphs can be larger or smaller than the\n               * length of the given string.\n               * @param  {string}\n               * @param  {GlyphRenderOptions} [options]\n               * @return {opentype.Glyph[]}\n               */\n              Font.prototype.stringToGlyphs = function(s, options) {\n                var this$1 = this;\n\n                options = options || this.defaultRenderOptions;\n                // Get glyph indexes\n                var chars = arrayFromString(s);\n                var indexes = [];\n                for (var i = 0; i < chars.length; i += 1) {\n                  var c = chars[i];\n                  indexes.push(this$1.charToGlyphIndex(c));\n                }\n                var length = indexes.length;\n\n                // Apply substitutions on glyph indexes\n                if (options.features) {\n                  var script = options.script || this.substitution.getDefaultScriptName();\n                  var manyToOne = [];\n                  if (options.features.liga) {\n                    manyToOne = manyToOne.concat(\n                      this.substitution.getFeature('liga', script, options.language)\n                    );\n                  }\n                  if (options.features.rlig) {\n                    manyToOne = manyToOne.concat(\n                      this.substitution.getFeature('rlig', script, options.language)\n                    );\n                  }\n                  for (var i$1 = 0; i$1 < length; i$1 += 1) {\n                    for (var j = 0; j < manyToOne.length; j++) {\n                      var ligature = manyToOne[j];\n                      var components = ligature.sub;\n                      var compCount = components.length;\n                      var k = 0;\n                      while (k < compCount && components[k] === indexes[i$1 + k]) {\n                        k++;\n                      }\n                      if (k === compCount) {\n                        indexes.splice(i$1, compCount, ligature.by);\n                        length = length - compCount + 1;\n                      }\n                    }\n                  }\n                }\n\n                // convert glyph indexes to glyph objects\n                var glyphs = new Array(length);\n                var notdef = this.glyphs.get(0);\n                for (var i$2 = 0; i$2 < length; i$2 += 1) {\n                  glyphs[i$2] = this$1.glyphs.get(indexes[i$2]) || notdef;\n                }\n                return glyphs;\n              };\n\n              /**\n               * @param  {string}\n               * @return {Number}\n               */\n              Font.prototype.nameToGlyphIndex = function(name) {\n                return this.glyphNames.nameToGlyphIndex(name);\n              };\n\n              /**\n               * @param  {string}\n               * @return {opentype.Glyph}\n               */\n              Font.prototype.nameToGlyph = function(name) {\n                var glyphIndex = this.nameToGlyphIndex(name);\n                var glyph = this.glyphs.get(glyphIndex);\n                if (!glyph) {\n                  // .notdef\n                  glyph = this.glyphs.get(0);\n                }\n\n                return glyph;\n              };\n\n              /**\n               * @param  {Number}\n               * @return {String}\n               */\n              Font.prototype.glyphIndexToName = function(gid) {\n                if (!this.glyphNames.glyphIndexToName) {\n                  return '';\n                }\n\n                return this.glyphNames.glyphIndexToName(gid);\n              };\n\n              /**\n               * Retrieve the value of the kerning pair between the left glyph (or its index)\n               * and the right glyph (or its index). If no kerning pair is found, return 0.\n               * The kerning value gets added to the advance width when calculating the spacing\n               * between glyphs.\n               * For GPOS kerning, this method uses the default script and language, which covers\n               * most use cases. To have greater control, use font.position.getKerningValue .\n               * @param  {opentype.Glyph} leftGlyph\n               * @param  {opentype.Glyph} rightGlyph\n               * @return {Number}\n               */\n              Font.prototype.getKerningValue = function(leftGlyph, rightGlyph) {\n                leftGlyph = leftGlyph.index || leftGlyph;\n                rightGlyph = rightGlyph.index || rightGlyph;\n                var gposKerning = this.position.defaultKerningTables;\n                if (gposKerning) {\n                  return this.position.getKerningValue(gposKerning, leftGlyph, rightGlyph);\n                }\n                // \"kern\" table\n                return this.kerningPairs[leftGlyph + ',' + rightGlyph] || 0;\n              };\n\n              /**\n               * @typedef GlyphRenderOptions\n               * @type Object\n               * @property {string} [script] - script used to determine which features to apply. By default, 'DFLT' or 'latn' is used.\n               *                               See https://www.microsoft.com/typography/otspec/scripttags.htm\n               * @property {string} [language='dflt'] - language system used to determine which features to apply.\n               *                                        See https://www.microsoft.com/typography/developers/opentype/languagetags.aspx\n               * @property {boolean} [kerning=true] - whether to include kerning values\n               * @property {object} [features] - OpenType Layout feature tags. Used to enable or disable the features of the given script/language system.\n               *                                 See https://www.microsoft.com/typography/otspec/featuretags.htm\n               */\n              Font.prototype.defaultRenderOptions = {\n                kerning: true,\n                features: {\n                  liga: true,\n                  rlig: true\n                }\n              };\n\n              /**\n               * Helper function that invokes the given callback for each glyph in the given text.\n               * The callback gets `(glyph, x, y, fontSize, options)`.* @param  {string} text\n               * @param {string} text - The text to apply.\n               * @param  {number} [x=0] - Horizontal position of the beginning of the text.\n               * @param  {number} [y=0] - Vertical position of the *baseline* of the text.\n               * @param  {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`.\n               * @param  {GlyphRenderOptions=} options\n               * @param  {Function} callback\n               */\n              Font.prototype.forEachGlyph = function(\n                text,\n                x,\n                y,\n                fontSize,\n                options,\n                callback\n              ) {\n                var this$1 = this;\n\n                x = x !== undefined ? x : 0;\n                y = y !== undefined ? y : 0;\n                fontSize = fontSize !== undefined ? fontSize : 72;\n                options = options || this.defaultRenderOptions;\n                var fontScale = 1 / this.unitsPerEm * fontSize;\n                var glyphs = this.stringToGlyphs(text, options);\n                var kerningLookups;\n                if (options.kerning) {\n                  var script = options.script || this.position.getDefaultScriptName();\n                  kerningLookups = this.position.getKerningTables(script, options.language);\n                }\n                for (var i = 0; i < glyphs.length; i += 1) {\n                  var glyph = glyphs[i];\n                  callback.call(this$1, glyph, x, y, fontSize, options);\n                  if (glyph.advanceWidth) {\n                    x += glyph.advanceWidth * fontScale;\n                  }\n\n                  if (options.kerning && i < glyphs.length - 1) {\n                    // We should apply position adjustment lookups in a more generic way.\n                    // Here we only use the xAdvance value.\n                    var kerningValue = kerningLookups\n                      ? this$1.position.getKerningValue(\n                          kerningLookups,\n                          glyph.index,\n                          glyphs[i + 1].index\n                        )\n                      : this$1.getKerningValue(glyph, glyphs[i + 1]);\n                    x += kerningValue * fontScale;\n                  }\n\n                  if (options.letterSpacing) {\n                    x += options.letterSpacing * fontSize;\n                  } else if (options.tracking) {\n                    x += options.tracking / 1000 * fontSize;\n                  }\n                }\n                return x;\n              };\n\n              /**\n               * Create a Path object that represents the given text.\n               * @param  {string} text - The text to create.\n               * @param  {number} [x=0] - Horizontal position of the beginning of the text.\n               * @param  {number} [y=0] - Vertical position of the *baseline* of the text.\n               * @param  {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`.\n               * @param  {GlyphRenderOptions=} options\n               * @return {opentype.Path}\n               */\n              Font.prototype.getPath = function(text, x, y, fontSize, options) {\n                var fullPath = new Path();\n                this.forEachGlyph(text, x, y, fontSize, options, function(\n                  glyph,\n                  gX,\n                  gY,\n                  gFontSize\n                ) {\n                  var glyphPath = glyph.getPath(gX, gY, gFontSize, options, this);\n                  fullPath.extend(glyphPath);\n                });\n                return fullPath;\n              };\n\n              /**\n               * Create an array of Path objects that represent the glyphs of a given text.\n               * @param  {string} text - The text to create.\n               * @param  {number} [x=0] - Horizontal position of the beginning of the text.\n               * @param  {number} [y=0] - Vertical position of the *baseline* of the text.\n               * @param  {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`.\n               * @param  {GlyphRenderOptions=} options\n               * @return {opentype.Path[]}\n               */\n              Font.prototype.getPaths = function(text, x, y, fontSize, options) {\n                var glyphPaths = [];\n                this.forEachGlyph(text, x, y, fontSize, options, function(\n                  glyph,\n                  gX,\n                  gY,\n                  gFontSize\n                ) {\n                  var glyphPath = glyph.getPath(gX, gY, gFontSize, options, this);\n                  glyphPaths.push(glyphPath);\n                });\n\n                return glyphPaths;\n              };\n\n              /**\n               * Returns the advance width of a text.\n               *\n               * This is something different than Path.getBoundingBox() as for example a\n               * suffixed whitespace increases the advanceWidth but not the bounding box\n               * or an overhanging letter like a calligraphic 'f' might have a quite larger\n               * bounding box than its advance width.\n               *\n               * This corresponds to canvas2dContext.measureText(text).width\n               *\n               * @param  {string} text - The text to create.\n               * @param  {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`.\n               * @param  {GlyphRenderOptions=} options\n               * @return advance width\n               */\n              Font.prototype.getAdvanceWidth = function(text, fontSize, options) {\n                return this.forEachGlyph(text, 0, 0, fontSize, options, function() {});\n              };\n\n              /**\n               * Draw the text on the given drawing context.\n               * @param  {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas.\n               * @param  {string} text - The text to create.\n               * @param  {number} [x=0] - Horizontal position of the beginning of the text.\n               * @param  {number} [y=0] - Vertical position of the *baseline* of the text.\n               * @param  {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`.\n               * @param  {GlyphRenderOptions=} options\n               */\n              Font.prototype.draw = function(ctx, text, x, y, fontSize, options) {\n                this.getPath(text, x, y, fontSize, options).draw(ctx);\n              };\n\n              /**\n               * Draw the points of all glyphs in the text.\n               * On-curve points will be drawn in blue, off-curve points will be drawn in red.\n               * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas.\n               * @param {string} text - The text to create.\n               * @param {number} [x=0] - Horizontal position of the beginning of the text.\n               * @param {number} [y=0] - Vertical position of the *baseline* of the text.\n               * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`.\n               * @param {GlyphRenderOptions=} options\n               */\n              Font.prototype.drawPoints = function(ctx, text, x, y, fontSize, options) {\n                this.forEachGlyph(text, x, y, fontSize, options, function(\n                  glyph,\n                  gX,\n                  gY,\n                  gFontSize\n                ) {\n                  glyph.drawPoints(ctx, gX, gY, gFontSize);\n                });\n              };\n\n              /**\n               * Draw lines indicating important font measurements for all glyphs in the text.\n               * Black lines indicate the origin of the coordinate system (point 0,0).\n               * Blue lines indicate the glyph bounding box.\n               * Green line indicates the advance width of the glyph.\n               * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas.\n               * @param {string} text - The text to create.\n               * @param {number} [x=0] - Horizontal position of the beginning of the text.\n               * @param {number} [y=0] - Vertical position of the *baseline* of the text.\n               * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`.\n               * @param {GlyphRenderOptions=} options\n               */\n              Font.prototype.drawMetrics = function(ctx, text, x, y, fontSize, options) {\n                this.forEachGlyph(text, x, y, fontSize, options, function(\n                  glyph,\n                  gX,\n                  gY,\n                  gFontSize\n                ) {\n                  glyph.drawMetrics(ctx, gX, gY, gFontSize);\n                });\n              };\n\n              /**\n               * @param  {string}\n               * @return {string}\n               */\n              Font.prototype.getEnglishName = function(name) {\n                var translations = this.names[name];\n                if (translations) {\n                  return translations.en;\n                }\n              };\n\n              /**\n               * Validate\n               */\n              Font.prototype.validate = function() {\n                var _this = this;\n\n                function assert(predicate, message) {}\n\n                function assertNamePresent(name) {\n                  var englishName = _this.getEnglishName(name);\n                  assert(\n                    englishName && englishName.trim().length > 0,\n                    'No English ' + name + ' specified.'\n                  );\n                }\n\n                // Identification information\n                assertNamePresent('fontFamily');\n                assertNamePresent('weightName');\n                assertNamePresent('manufacturer');\n                assertNamePresent('copyright');\n                assertNamePresent('version');\n\n                // Dimension information\n                assert(this.unitsPerEm > 0, 'No unitsPerEm specified.');\n              };\n\n              /**\n               * Convert the font object to a SFNT data structure.\n               * This structure contains all the necessary tables and metadata to create a binary OTF file.\n               * @return {opentype.Table}\n               */\n              Font.prototype.toTables = function() {\n                return sfnt.fontToTable(this);\n              };\n              /**\n               * @deprecated Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.\n               */\n              Font.prototype.toBuffer = function() {\n                console.warn(\n                  'Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.'\n                );\n                return this.toArrayBuffer();\n              };\n              /**\n               * Converts a `opentype.Font` into an `ArrayBuffer`\n               * @return {ArrayBuffer}\n               */\n              Font.prototype.toArrayBuffer = function() {\n                var sfntTable = this.toTables();\n                var bytes = sfntTable.encode();\n                var buffer = new ArrayBuffer(bytes.length);\n                var intArray = new Uint8Array(buffer);\n                for (var i = 0; i < bytes.length; i++) {\n                  intArray[i] = bytes[i];\n                }\n\n                return buffer;\n              };\n\n              /**\n               * Initiate a download of the OpenType font.\n               */\n              Font.prototype.download = function(fileName) {\n                var familyName = this.getEnglishName('fontFamily');\n                var styleName = this.getEnglishName('fontSubfamily');\n                fileName =\n                  fileName || familyName.replace(/\\s/g, '') + '-' + styleName + '.otf';\n                var arrayBuffer = this.toArrayBuffer();\n\n                if (isBrowser()) {\n                  window.requestFileSystem =\n                    window.requestFileSystem || window.webkitRequestFileSystem;\n                  window.requestFileSystem(\n                    window.TEMPORARY,\n                    arrayBuffer.byteLength,\n                    function(fs) {\n                      fs.root.getFile(fileName, { create: true }, function(fileEntry) {\n                        fileEntry.createWriter(function(writer) {\n                          var dataView = new DataView(arrayBuffer);\n                          var blob = new Blob([dataView], { type: 'font/opentype' });\n                          writer.write(blob);\n\n                          writer.addEventListener(\n                            'writeend',\n                            function() {\n                              // Navigating to the file will download it.\n                              location.href = fileEntry.toURL();\n                            },\n                            false\n                          );\n                        });\n                      });\n                    },\n                    function(err) {\n                      throw new Error(err.name + ': ' + err.message);\n                    }\n                  );\n                } else {\n                  var fs = _dereq_('fs');\n                  var buffer = arrayBufferToNodeBuffer(arrayBuffer);\n                  fs.writeFileSync(fileName, buffer);\n                }\n              };\n              /**\n               * @private\n               */\n              Font.prototype.fsSelectionValues = {\n                ITALIC: 0x001, //1\n                UNDERSCORE: 0x002, //2\n                NEGATIVE: 0x004, //4\n                OUTLINED: 0x008, //8\n                STRIKEOUT: 0x010, //16\n                BOLD: 0x020, //32\n                REGULAR: 0x040, //64\n                USER_TYPO_METRICS: 0x080, //128\n                WWS: 0x100, //256\n                OBLIQUE: 0x200 //512\n              };\n\n              /**\n               * @private\n               */\n              Font.prototype.usWidthClasses = {\n                ULTRA_CONDENSED: 1,\n                EXTRA_CONDENSED: 2,\n                CONDENSED: 3,\n                SEMI_CONDENSED: 4,\n                MEDIUM: 5,\n                SEMI_EXPANDED: 6,\n                EXPANDED: 7,\n                EXTRA_EXPANDED: 8,\n                ULTRA_EXPANDED: 9\n              };\n\n              /**\n               * @private\n               */\n              Font.prototype.usWeightClasses = {\n                THIN: 100,\n                EXTRA_LIGHT: 200,\n                LIGHT: 300,\n                NORMAL: 400,\n                MEDIUM: 500,\n                SEMI_BOLD: 600,\n                BOLD: 700,\n                EXTRA_BOLD: 800,\n                BLACK: 900\n              };\n\n              // The `fvar` table stores font variation axes and instances.\n\n              function addName(name, names) {\n                var nameString = JSON.stringify(name);\n                var nameID = 256;\n                for (var nameKey in names) {\n                  var n = parseInt(nameKey);\n                  if (!n || n < 256) {\n                    continue;\n                  }\n\n                  if (JSON.stringify(names[nameKey]) === nameString) {\n                    return n;\n                  }\n\n                  if (nameID <= n) {\n                    nameID = n + 1;\n                  }\n                }\n\n                names[nameID] = name;\n                return nameID;\n              }\n\n              function makeFvarAxis(n, axis, names) {\n                var nameID = addName(axis.name, names);\n                return [\n                  { name: 'tag_' + n, type: 'TAG', value: axis.tag },\n                  { name: 'minValue_' + n, type: 'FIXED', value: axis.minValue << 16 },\n                  {\n                    name: 'defaultValue_' + n,\n                    type: 'FIXED',\n                    value: axis.defaultValue << 16\n                  },\n                  { name: 'maxValue_' + n, type: 'FIXED', value: axis.maxValue << 16 },\n                  { name: 'flags_' + n, type: 'USHORT', value: 0 },\n                  { name: 'nameID_' + n, type: 'USHORT', value: nameID }\n                ];\n              }\n\n              function parseFvarAxis(data, start, names) {\n                var axis = {};\n                var p = new parse.Parser(data, start);\n                axis.tag = p.parseTag();\n                axis.minValue = p.parseFixed();\n                axis.defaultValue = p.parseFixed();\n                axis.maxValue = p.parseFixed();\n                p.skip('uShort', 1); // reserved for flags; no values defined\n                axis.name = names[p.parseUShort()] || {};\n                return axis;\n              }\n\n              function makeFvarInstance(n, inst, axes, names) {\n                var nameID = addName(inst.name, names);\n                var fields = [\n                  { name: 'nameID_' + n, type: 'USHORT', value: nameID },\n                  { name: 'flags_' + n, type: 'USHORT', value: 0 }\n                ];\n\n                for (var i = 0; i < axes.length; ++i) {\n                  var axisTag = axes[i].tag;\n                  fields.push({\n                    name: 'axis_' + n + ' ' + axisTag,\n                    type: 'FIXED',\n                    value: inst.coordinates[axisTag] << 16\n                  });\n                }\n\n                return fields;\n              }\n\n              function parseFvarInstance(data, start, axes, names) {\n                var inst = {};\n                var p = new parse.Parser(data, start);\n                inst.name = names[p.parseUShort()] || {};\n                p.skip('uShort', 1); // reserved for flags; no values defined\n\n                inst.coordinates = {};\n                for (var i = 0; i < axes.length; ++i) {\n                  inst.coordinates[axes[i].tag] = p.parseFixed();\n                }\n\n                return inst;\n              }\n\n              function makeFvarTable(fvar, names) {\n                var result = new table.Table('fvar', [\n                  { name: 'version', type: 'ULONG', value: 0x10000 },\n                  { name: 'offsetToData', type: 'USHORT', value: 0 },\n                  { name: 'countSizePairs', type: 'USHORT', value: 2 },\n                  { name: 'axisCount', type: 'USHORT', value: fvar.axes.length },\n                  { name: 'axisSize', type: 'USHORT', value: 20 },\n                  { name: 'instanceCount', type: 'USHORT', value: fvar.instances.length },\n                  { name: 'instanceSize', type: 'USHORT', value: 4 + fvar.axes.length * 4 }\n                ]);\n                result.offsetToData = result.sizeOf();\n\n                for (var i = 0; i < fvar.axes.length; i++) {\n                  result.fields = result.fields.concat(\n                    makeFvarAxis(i, fvar.axes[i], names)\n                  );\n                }\n\n                for (var j = 0; j < fvar.instances.length; j++) {\n                  result.fields = result.fields.concat(\n                    makeFvarInstance(j, fvar.instances[j], fvar.axes, names)\n                  );\n                }\n\n                return result;\n              }\n\n              function parseFvarTable(data, start, names) {\n                var p = new parse.Parser(data, start);\n                var tableVersion = p.parseULong();\n                check.argument(\n                  tableVersion === 0x00010000,\n                  'Unsupported fvar table version.'\n                );\n                var offsetToData = p.parseOffset16();\n                // Skip countSizePairs.\n                p.skip('uShort', 1);\n                var axisCount = p.parseUShort();\n                var axisSize = p.parseUShort();\n                var instanceCount = p.parseUShort();\n                var instanceSize = p.parseUShort();\n\n                var axes = [];\n                for (var i = 0; i < axisCount; i++) {\n                  axes.push(\n                    parseFvarAxis(data, start + offsetToData + i * axisSize, names)\n                  );\n                }\n\n                var instances = [];\n                var instanceStart = start + offsetToData + axisCount * axisSize;\n                for (var j = 0; j < instanceCount; j++) {\n                  instances.push(\n                    parseFvarInstance(data, instanceStart + j * instanceSize, axes, names)\n                  );\n                }\n\n                return { axes: axes, instances: instances };\n              }\n\n              var fvar = { make: makeFvarTable, parse: parseFvarTable };\n\n              // The `GPOS` table contains kerning pairs, among other things.\n\n              var subtableParsers$1 = new Array(10); // subtableParsers[0] is unused\n\n              // https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#lookup-type-1-single-adjustment-positioning-subtable\n              // this = Parser instance\n              subtableParsers$1[1] = function parseLookup1() {\n                var start = this.offset + this.relativeOffset;\n                var posformat = this.parseUShort();\n                if (posformat === 1) {\n                  return {\n                    posFormat: 1,\n                    coverage: this.parsePointer(Parser.coverage),\n                    value: this.parseValueRecord()\n                  };\n                } else if (posformat === 2) {\n                  return {\n                    posFormat: 2,\n                    coverage: this.parsePointer(Parser.coverage),\n                    values: this.parseValueRecordList()\n                  };\n                }\n                check.assert(\n                  false,\n                  '0x' + start.toString(16) + ': GPOS lookup type 1 format must be 1 or 2.'\n                );\n              };\n\n              // https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#lookup-type-2-pair-adjustment-positioning-subtable\n              subtableParsers$1[2] = function parseLookup2() {\n                var start = this.offset + this.relativeOffset;\n                var posFormat = this.parseUShort();\n                check.assert(\n                  posFormat === 1 || posFormat === 2,\n                  '0x' + start.toString(16) + ': GPOS lookup type 2 format must be 1 or 2.'\n                );\n                var coverage = this.parsePointer(Parser.coverage);\n                var valueFormat1 = this.parseUShort();\n                var valueFormat2 = this.parseUShort();\n                if (posFormat === 1) {\n                  // Adjustments for Glyph Pairs\n                  return {\n                    posFormat: posFormat,\n                    coverage: coverage,\n                    valueFormat1: valueFormat1,\n                    valueFormat2: valueFormat2,\n                    pairSets: this.parseList(\n                      Parser.pointer(\n                        Parser.list(function() {\n                          return {\n                            // pairValueRecord\n                            secondGlyph: this.parseUShort(),\n                            value1: this.parseValueRecord(valueFormat1),\n                            value2: this.parseValueRecord(valueFormat2)\n                          };\n                        })\n                      )\n                    )\n                  };\n                } else if (posFormat === 2) {\n                  var classDef1 = this.parsePointer(Parser.classDef);\n                  var classDef2 = this.parsePointer(Parser.classDef);\n                  var class1Count = this.parseUShort();\n                  var class2Count = this.parseUShort();\n                  return {\n                    // Class Pair Adjustment\n                    posFormat: posFormat,\n                    coverage: coverage,\n                    valueFormat1: valueFormat1,\n                    valueFormat2: valueFormat2,\n                    classDef1: classDef1,\n                    classDef2: classDef2,\n                    class1Count: class1Count,\n                    class2Count: class2Count,\n                    classRecords: this.parseList(\n                      class1Count,\n                      Parser.list(class2Count, function() {\n                        return {\n                          value1: this.parseValueRecord(valueFormat1),\n                          value2: this.parseValueRecord(valueFormat2)\n                        };\n                      })\n                    )\n                  };\n                }\n              };\n\n              subtableParsers$1[3] = function parseLookup3() {\n                return { error: 'GPOS Lookup 3 not supported' };\n              };\n              subtableParsers$1[4] = function parseLookup4() {\n                return { error: 'GPOS Lookup 4 not supported' };\n              };\n              subtableParsers$1[5] = function parseLookup5() {\n                return { error: 'GPOS Lookup 5 not supported' };\n              };\n              subtableParsers$1[6] = function parseLookup6() {\n                return { error: 'GPOS Lookup 6 not supported' };\n              };\n              subtableParsers$1[7] = function parseLookup7() {\n                return { error: 'GPOS Lookup 7 not supported' };\n              };\n              subtableParsers$1[8] = function parseLookup8() {\n                return { error: 'GPOS Lookup 8 not supported' };\n              };\n              subtableParsers$1[9] = function parseLookup9() {\n                return { error: 'GPOS Lookup 9 not supported' };\n              };\n\n              // https://docs.microsoft.com/en-us/typography/opentype/spec/gpos\n              function parseGposTable(data, start) {\n                start = start || 0;\n                var p = new Parser(data, start);\n                var tableVersion = p.parseVersion(1);\n                check.argument(\n                  tableVersion === 1 || tableVersion === 1.1,\n                  'Unsupported GPOS table version ' + tableVersion\n                );\n\n                if (tableVersion === 1) {\n                  return {\n                    version: tableVersion,\n                    scripts: p.parseScriptList(),\n                    features: p.parseFeatureList(),\n                    lookups: p.parseLookupList(subtableParsers$1)\n                  };\n                } else {\n                  return {\n                    version: tableVersion,\n                    scripts: p.parseScriptList(),\n                    features: p.parseFeatureList(),\n                    lookups: p.parseLookupList(subtableParsers$1),\n                    variations: p.parseFeatureVariationsList()\n                  };\n                }\n              }\n\n              // GPOS Writing //////////////////////////////////////////////\n              // NOT SUPPORTED\n              var subtableMakers$1 = new Array(10);\n\n              function makeGposTable(gpos) {\n                return new table.Table('GPOS', [\n                  { name: 'version', type: 'ULONG', value: 0x10000 },\n                  {\n                    name: 'scripts',\n                    type: 'TABLE',\n                    value: new table.ScriptList(gpos.scripts)\n                  },\n                  {\n                    name: 'features',\n                    type: 'TABLE',\n                    value: new table.FeatureList(gpos.features)\n                  },\n                  {\n                    name: 'lookups',\n                    type: 'TABLE',\n                    value: new table.LookupList(gpos.lookups, subtableMakers$1)\n                  }\n                ]);\n              }\n\n              var gpos = { parse: parseGposTable, make: makeGposTable };\n\n              // The `kern` table contains kerning pairs.\n\n              function parseWindowsKernTable(p) {\n                var pairs = {};\n                // Skip nTables.\n                p.skip('uShort');\n                var subtableVersion = p.parseUShort();\n                check.argument(\n                  subtableVersion === 0,\n                  'Unsupported kern sub-table version.'\n                );\n                // Skip subtableLength, subtableCoverage\n                p.skip('uShort', 2);\n                var nPairs = p.parseUShort();\n                // Skip searchRange, entrySelector, rangeShift.\n                p.skip('uShort', 3);\n                for (var i = 0; i < nPairs; i += 1) {\n                  var leftIndex = p.parseUShort();\n                  var rightIndex = p.parseUShort();\n                  var value = p.parseShort();\n                  pairs[leftIndex + ',' + rightIndex] = value;\n                }\n                return pairs;\n              }\n\n              function parseMacKernTable(p) {\n                var pairs = {};\n                // The Mac kern table stores the version as a fixed (32 bits) but we only loaded the first 16 bits.\n                // Skip the rest.\n                p.skip('uShort');\n                var nTables = p.parseULong();\n                //check.argument(nTables === 1, 'Only 1 subtable is supported (got ' + nTables + ').');\n                if (nTables > 1) {\n                  console.warn('Only the first kern subtable is supported.');\n                }\n                p.skip('uLong');\n                var coverage = p.parseUShort();\n                var subtableVersion = coverage & 0xff;\n                p.skip('uShort');\n                if (subtableVersion === 0) {\n                  var nPairs = p.parseUShort();\n                  // Skip searchRange, entrySelector, rangeShift.\n                  p.skip('uShort', 3);\n                  for (var i = 0; i < nPairs; i += 1) {\n                    var leftIndex = p.parseUShort();\n                    var rightIndex = p.parseUShort();\n                    var value = p.parseShort();\n                    pairs[leftIndex + ',' + rightIndex] = value;\n                  }\n                }\n                return pairs;\n              }\n\n              // Parse the `kern` table which contains kerning pairs.\n              function parseKernTable(data, start) {\n                var p = new parse.Parser(data, start);\n                var tableVersion = p.parseUShort();\n                if (tableVersion === 0) {\n                  return parseWindowsKernTable(p);\n                } else if (tableVersion === 1) {\n                  return parseMacKernTable(p);\n                } else {\n                  throw new Error('Unsupported kern table version (' + tableVersion + ').');\n                }\n              }\n\n              var kern = { parse: parseKernTable };\n\n              // The `loca` table stores the offsets to the locations of the glyphs in the font.\n\n              // Parse the `loca` table. This table stores the offsets to the locations of the glyphs in the font,\n              // relative to the beginning of the glyphData table.\n              // The number of glyphs stored in the `loca` table is specified in the `maxp` table (under numGlyphs)\n              // The loca table has two versions: a short version where offsets are stored as uShorts, and a long\n              // version where offsets are stored as uLongs. The `head` table specifies which version to use\n              // (under indexToLocFormat).\n              function parseLocaTable(data, start, numGlyphs, shortVersion) {\n                var p = new parse.Parser(data, start);\n                var parseFn = shortVersion ? p.parseUShort : p.parseULong;\n                // There is an extra entry after the last index element to compute the length of the last glyph.\n                // That's why we use numGlyphs + 1.\n                var glyphOffsets = [];\n                for (var i = 0; i < numGlyphs + 1; i += 1) {\n                  var glyphOffset = parseFn.call(p);\n                  if (shortVersion) {\n                    // The short table version stores the actual offset divided by 2.\n                    glyphOffset *= 2;\n                  }\n\n                  glyphOffsets.push(glyphOffset);\n                }\n\n                return glyphOffsets;\n              }\n\n              var loca = { parse: parseLocaTable };\n\n              // opentype.js\n\n              /**\n               * The opentype library.\n               * @namespace opentype\n               */\n\n              // File loaders /////////////////////////////////////////////////////////\n              /**\n               * Loads a font from a file. The callback throws an error message as the first parameter if it fails\n               * and the font as an ArrayBuffer in the second parameter if it succeeds.\n               * @param  {string} path - The path of the file\n               * @param  {Function} callback - The function to call when the font load completes\n               */\n              function loadFromFile(path, callback) {\n                var fs = _dereq_('fs');\n                fs.readFile(path, function(err, buffer) {\n                  if (err) {\n                    return callback(err.message);\n                  }\n\n                  callback(null, nodeBufferToArrayBuffer(buffer));\n                });\n              }\n              /**\n               * Loads a font from a URL. The callback throws an error message as the first parameter if it fails\n               * and the font as an ArrayBuffer in the second parameter if it succeeds.\n               * @param  {string} url - The URL of the font file.\n               * @param  {Function} callback - The function to call when the font load completes\n               */\n              function loadFromUrl(url, callback) {\n                var request = new XMLHttpRequest();\n                request.open('get', url, true);\n                request.responseType = 'arraybuffer';\n                request.onload = function() {\n                  if (request.response) {\n                    return callback(null, request.response);\n                  } else {\n                    return callback('Font could not be loaded: ' + request.statusText);\n                  }\n                };\n\n                request.onerror = function() {\n                  callback('Font could not be loaded');\n                };\n\n                request.send();\n              }\n\n              // Table Directory Entries //////////////////////////////////////////////\n              /**\n               * Parses OpenType table entries.\n               * @param  {DataView}\n               * @param  {Number}\n               * @return {Object[]}\n               */\n              function parseOpenTypeTableEntries(data, numTables) {\n                var tableEntries = [];\n                var p = 12;\n                for (var i = 0; i < numTables; i += 1) {\n                  var tag = parse.getTag(data, p);\n                  var checksum = parse.getULong(data, p + 4);\n                  var offset = parse.getULong(data, p + 8);\n                  var length = parse.getULong(data, p + 12);\n                  tableEntries.push({\n                    tag: tag,\n                    checksum: checksum,\n                    offset: offset,\n                    length: length,\n                    compression: false\n                  });\n                  p += 16;\n                }\n\n                return tableEntries;\n              }\n\n              /**\n               * Parses WOFF table entries.\n               * @param  {DataView}\n               * @param  {Number}\n               * @return {Object[]}\n               */\n              function parseWOFFTableEntries(data, numTables) {\n                var tableEntries = [];\n                var p = 44; // offset to the first table directory entry.\n                for (var i = 0; i < numTables; i += 1) {\n                  var tag = parse.getTag(data, p);\n                  var offset = parse.getULong(data, p + 4);\n                  var compLength = parse.getULong(data, p + 8);\n                  var origLength = parse.getULong(data, p + 12);\n                  var compression = void 0;\n                  if (compLength < origLength) {\n                    compression = 'WOFF';\n                  } else {\n                    compression = false;\n                  }\n\n                  tableEntries.push({\n                    tag: tag,\n                    offset: offset,\n                    compression: compression,\n                    compressedLength: compLength,\n                    length: origLength\n                  });\n                  p += 20;\n                }\n\n                return tableEntries;\n              }\n\n              /**\n               * @typedef TableData\n               * @type Object\n               * @property {DataView} data - The DataView\n               * @property {number} offset - The data offset.\n               */\n\n              /**\n               * @param  {DataView}\n               * @param  {Object}\n               * @return {TableData}\n               */\n              function uncompressTable(data, tableEntry) {\n                if (tableEntry.compression === 'WOFF') {\n                  var inBuffer = new Uint8Array(\n                    data.buffer,\n                    tableEntry.offset + 2,\n                    tableEntry.compressedLength - 2\n                  );\n                  var outBuffer = new Uint8Array(tableEntry.length);\n                  tinyInflate(inBuffer, outBuffer);\n                  if (outBuffer.byteLength !== tableEntry.length) {\n                    throw new Error(\n                      'Decompression error: ' +\n                        tableEntry.tag +\n                        \" decompressed length doesn't match recorded length\"\n                    );\n                  }\n\n                  var view = new DataView(outBuffer.buffer, 0);\n                  return { data: view, offset: 0 };\n                } else {\n                  return { data: data, offset: tableEntry.offset };\n                }\n              }\n\n              // Public API ///////////////////////////////////////////////////////////\n\n              /**\n               * Parse the OpenType file data (as an ArrayBuffer) and return a Font object.\n               * Throws an error if the font could not be parsed.\n               * @param  {ArrayBuffer}\n               * @return {opentype.Font}\n               */\n              function parseBuffer(buffer) {\n                var indexToLocFormat;\n                var ltagTable;\n\n                // Since the constructor can also be called to create new fonts from scratch, we indicate this\n                // should be an empty font that we'll fill with our own data.\n                var font = new Font({ empty: true });\n\n                // OpenType fonts use big endian byte ordering.\n                // We can't rely on typed array view types, because they operate with the endianness of the host computer.\n                // Instead we use DataViews where we can specify endianness.\n                var data = new DataView(buffer, 0);\n                var numTables;\n                var tableEntries = [];\n                var signature = parse.getTag(data, 0);\n                if (\n                  signature === String.fromCharCode(0, 1, 0, 0) ||\n                  signature === 'true' ||\n                  signature === 'typ1'\n                ) {\n                  font.outlinesFormat = 'truetype';\n                  numTables = parse.getUShort(data, 4);\n                  tableEntries = parseOpenTypeTableEntries(data, numTables);\n                } else if (signature === 'OTTO') {\n                  font.outlinesFormat = 'cff';\n                  numTables = parse.getUShort(data, 4);\n                  tableEntries = parseOpenTypeTableEntries(data, numTables);\n                } else if (signature === 'wOFF') {\n                  var flavor = parse.getTag(data, 4);\n                  if (flavor === String.fromCharCode(0, 1, 0, 0)) {\n                    font.outlinesFormat = 'truetype';\n                  } else if (flavor === 'OTTO') {\n                    font.outlinesFormat = 'cff';\n                  } else {\n                    throw new Error('Unsupported OpenType flavor ' + signature);\n                  }\n\n                  numTables = parse.getUShort(data, 12);\n                  tableEntries = parseWOFFTableEntries(data, numTables);\n                } else {\n                  throw new Error('Unsupported OpenType signature ' + signature);\n                }\n\n                var cffTableEntry;\n                var fvarTableEntry;\n                var glyfTableEntry;\n                var gposTableEntry;\n                var gsubTableEntry;\n                var hmtxTableEntry;\n                var kernTableEntry;\n                var locaTableEntry;\n                var nameTableEntry;\n                var metaTableEntry;\n                var p;\n\n                for (var i = 0; i < numTables; i += 1) {\n                  var tableEntry = tableEntries[i];\n                  var table = void 0;\n                  switch (tableEntry.tag) {\n                    case 'cmap':\n                      table = uncompressTable(data, tableEntry);\n                      font.tables.cmap = cmap.parse(table.data, table.offset);\n                      font.encoding = new CmapEncoding(font.tables.cmap);\n                      break;\n                    case 'cvt ':\n                      table = uncompressTable(data, tableEntry);\n                      p = new parse.Parser(table.data, table.offset);\n                      font.tables.cvt = p.parseShortList(tableEntry.length / 2);\n                      break;\n                    case 'fvar':\n                      fvarTableEntry = tableEntry;\n                      break;\n                    case 'fpgm':\n                      table = uncompressTable(data, tableEntry);\n                      p = new parse.Parser(table.data, table.offset);\n                      font.tables.fpgm = p.parseByteList(tableEntry.length);\n                      break;\n                    case 'head':\n                      table = uncompressTable(data, tableEntry);\n                      font.tables.head = head.parse(table.data, table.offset);\n                      font.unitsPerEm = font.tables.head.unitsPerEm;\n                      indexToLocFormat = font.tables.head.indexToLocFormat;\n                      break;\n                    case 'hhea':\n                      table = uncompressTable(data, tableEntry);\n                      font.tables.hhea = hhea.parse(table.data, table.offset);\n                      font.ascender = font.tables.hhea.ascender;\n                      font.descender = font.tables.hhea.descender;\n                      font.numberOfHMetrics = font.tables.hhea.numberOfHMetrics;\n                      break;\n                    case 'hmtx':\n                      hmtxTableEntry = tableEntry;\n                      break;\n                    case 'ltag':\n                      table = uncompressTable(data, tableEntry);\n                      ltagTable = ltag.parse(table.data, table.offset);\n                      break;\n                    case 'maxp':\n                      table = uncompressTable(data, tableEntry);\n                      font.tables.maxp = maxp.parse(table.data, table.offset);\n                      font.numGlyphs = font.tables.maxp.numGlyphs;\n                      break;\n                    case 'name':\n                      nameTableEntry = tableEntry;\n                      break;\n                    case 'OS/2':\n                      table = uncompressTable(data, tableEntry);\n                      font.tables.os2 = os2.parse(table.data, table.offset);\n                      break;\n                    case 'post':\n                      table = uncompressTable(data, tableEntry);\n                      font.tables.post = post.parse(table.data, table.offset);\n                      font.glyphNames = new GlyphNames(font.tables.post);\n                      break;\n                    case 'prep':\n                      table = uncompressTable(data, tableEntry);\n                      p = new parse.Parser(table.data, table.offset);\n                      font.tables.prep = p.parseByteList(tableEntry.length);\n                      break;\n                    case 'glyf':\n                      glyfTableEntry = tableEntry;\n                      break;\n                    case 'loca':\n                      locaTableEntry = tableEntry;\n                      break;\n                    case 'CFF ':\n                      cffTableEntry = tableEntry;\n                      break;\n                    case 'kern':\n                      kernTableEntry = tableEntry;\n                      break;\n                    case 'GPOS':\n                      gposTableEntry = tableEntry;\n                      break;\n                    case 'GSUB':\n                      gsubTableEntry = tableEntry;\n                      break;\n                    case 'meta':\n                      metaTableEntry = tableEntry;\n                      break;\n                  }\n                }\n\n                var nameTable = uncompressTable(data, nameTableEntry);\n                font.tables.name = _name.parse(nameTable.data, nameTable.offset, ltagTable);\n                font.names = font.tables.name;\n\n                if (glyfTableEntry && locaTableEntry) {\n                  var shortVersion = indexToLocFormat === 0;\n                  var locaTable = uncompressTable(data, locaTableEntry);\n                  var locaOffsets = loca.parse(\n                    locaTable.data,\n                    locaTable.offset,\n                    font.numGlyphs,\n                    shortVersion\n                  );\n                  var glyfTable = uncompressTable(data, glyfTableEntry);\n                  font.glyphs = glyf.parse(\n                    glyfTable.data,\n                    glyfTable.offset,\n                    locaOffsets,\n                    font\n                  );\n                } else if (cffTableEntry) {\n                  var cffTable = uncompressTable(data, cffTableEntry);\n                  cff.parse(cffTable.data, cffTable.offset, font);\n                } else {\n                  throw new Error(\"Font doesn't contain TrueType or CFF outlines.\");\n                }\n\n                var hmtxTable = uncompressTable(data, hmtxTableEntry);\n                hmtx.parse(\n                  hmtxTable.data,\n                  hmtxTable.offset,\n                  font.numberOfHMetrics,\n                  font.numGlyphs,\n                  font.glyphs\n                );\n                addGlyphNames(font);\n\n                if (kernTableEntry) {\n                  var kernTable = uncompressTable(data, kernTableEntry);\n                  font.kerningPairs = kern.parse(kernTable.data, kernTable.offset);\n                } else {\n                  font.kerningPairs = {};\n                }\n\n                if (gposTableEntry) {\n                  var gposTable = uncompressTable(data, gposTableEntry);\n                  font.tables.gpos = gpos.parse(gposTable.data, gposTable.offset);\n                  font.position.init();\n                }\n\n                if (gsubTableEntry) {\n                  var gsubTable = uncompressTable(data, gsubTableEntry);\n                  font.tables.gsub = gsub.parse(gsubTable.data, gsubTable.offset);\n                }\n\n                if (fvarTableEntry) {\n                  var fvarTable = uncompressTable(data, fvarTableEntry);\n                  font.tables.fvar = fvar.parse(\n                    fvarTable.data,\n                    fvarTable.offset,\n                    font.names\n                  );\n                }\n\n                if (metaTableEntry) {\n                  var metaTable = uncompressTable(data, metaTableEntry);\n                  font.tables.meta = meta.parse(metaTable.data, metaTable.offset);\n                  font.metas = font.tables.meta;\n                }\n\n                return font;\n              }\n\n              /**\n               * Asynchronously load the font from a URL or a filesystem. When done, call the callback\n               * with two arguments `(err, font)`. The `err` will be null on success,\n               * the `font` is a Font object.\n               * We use the node.js callback convention so that\n               * opentype.js can integrate with frameworks like async.js.\n               * @alias opentype.load\n               * @param  {string} url - The URL of the font to load.\n               * @param  {Function} callback - The callback.\n               */\n              function load(url, callback) {\n                var isNode$$1 = typeof window === 'undefined';\n                var loadFn = isNode$$1 ? loadFromFile : loadFromUrl;\n                loadFn(url, function(err, arrayBuffer) {\n                  if (err) {\n                    return callback(err);\n                  }\n                  var font;\n                  try {\n                    font = parseBuffer(arrayBuffer);\n                  } catch (e) {\n                    return callback(e, null);\n                  }\n                  return callback(null, font);\n                });\n              }\n\n              /**\n               * Synchronously load the font from a URL or file.\n               * When done, returns the font object or throws an error.\n               * @alias opentype.loadSync\n               * @param  {string} url - The URL of the font to load.\n               * @return {opentype.Font}\n               */\n              function loadSync(url) {\n                var fs = _dereq_('fs');\n                var buffer = fs.readFileSync(url);\n                return parseBuffer(nodeBufferToArrayBuffer(buffer));\n              }\n\n              exports.Font = Font;\n              exports.Glyph = Glyph;\n              exports.Path = Path;\n              exports.BoundingBox = BoundingBox;\n              exports._parse = parse;\n              exports.parse = parseBuffer;\n              exports.load = load;\n              exports.loadSync = loadSync;\n\n              Object.defineProperty(exports, '__esModule', { value: true });\n            });\n          }.call(this, _dereq_('buffer').Buffer));\n        },\n        { buffer: 22, fs: 21 }\n      ],\n      35: [\n        function(_dereq_, module, exports) {\n          (function(process) {\n            // .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,\n            // backported and transplited with Babel, with backwards-compat fixes\n\n            // Copyright Joyent, Inc. and other Node contributors.\n            //\n            // Permission is hereby granted, free of charge, to any person obtaining a\n            // copy of this software and associated documentation files (the\n            // \"Software\"), to deal in the Software without restriction, including\n            // without limitation the rights to use, copy, modify, merge, publish,\n            // distribute, sublicense, and/or sell copies of the Software, and to permit\n            // persons to whom the Software is furnished to do so, subject to the\n            // following conditions:\n            //\n            // The above copyright notice and this permission notice shall be included\n            // in all copies or substantial portions of the Software.\n            //\n            // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n            // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n            // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n            // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n            // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n            // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n            // USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n            // resolves . and .. elements in a path array with directory names there\n            // must be no slashes, empty elements, or device names (c:\\) in the array\n            // (so also no leading and trailing slashes - it does not distinguish\n            // relative and absolute paths)\n            function normalizeArray(parts, allowAboveRoot) {\n              // if the path tries to go above the root, `up` ends up > 0\n              var up = 0;\n              for (var i = parts.length - 1; i >= 0; i--) {\n                var last = parts[i];\n                if (last === '.') {\n                  parts.splice(i, 1);\n                } else if (last === '..') {\n                  parts.splice(i, 1);\n                  up++;\n                } else if (up) {\n                  parts.splice(i, 1);\n                  up--;\n                }\n              }\n\n              // if the path is allowed to go above the root, restore leading ..s\n              if (allowAboveRoot) {\n                for (; up--; up) {\n                  parts.unshift('..');\n                }\n              }\n\n              return parts;\n            }\n\n            // path.resolve([from ...], to)\n            // posix version\n            exports.resolve = function() {\n              var resolvedPath = '',\n                resolvedAbsolute = false;\n\n              for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n                var path = i >= 0 ? arguments[i] : process.cwd();\n\n                // Skip empty and invalid entries\n                if (typeof path !== 'string') {\n                  throw new TypeError('Arguments to path.resolve must be strings');\n                } else if (!path) {\n                  continue;\n                }\n\n                resolvedPath = path + '/' + resolvedPath;\n                resolvedAbsolute = path.charAt(0) === '/';\n              }\n\n              // At this point the path should be resolved to a full absolute path, but\n              // handle relative paths to be safe (might happen when process.cwd() fails)\n\n              // Normalize the path\n              resolvedPath = normalizeArray(\n                filter(resolvedPath.split('/'), function(p) {\n                  return !!p;\n                }),\n                !resolvedAbsolute\n              ).join('/');\n\n              return (resolvedAbsolute ? '/' : '') + resolvedPath || '.';\n            };\n\n            // path.normalize(path)\n            // posix version\n            exports.normalize = function(path) {\n              var isAbsolute = exports.isAbsolute(path),\n                trailingSlash = substr(path, -1) === '/';\n\n              // Normalize the path\n              path = normalizeArray(\n                filter(path.split('/'), function(p) {\n                  return !!p;\n                }),\n                !isAbsolute\n              ).join('/');\n\n              if (!path && !isAbsolute) {\n                path = '.';\n              }\n              if (path && trailingSlash) {\n                path += '/';\n              }\n\n              return (isAbsolute ? '/' : '') + path;\n            };\n\n            // posix version\n            exports.isAbsolute = function(path) {\n              return path.charAt(0) === '/';\n            };\n\n            // posix version\n            exports.join = function() {\n              var paths = Array.prototype.slice.call(arguments, 0);\n              return exports.normalize(\n                filter(paths, function(p, index) {\n                  if (typeof p !== 'string') {\n                    throw new TypeError('Arguments to path.join must be strings');\n                  }\n                  return p;\n                }).join('/')\n              );\n            };\n\n            // path.relative(from, to)\n            // posix version\n            exports.relative = function(from, to) {\n              from = exports.resolve(from).substr(1);\n              to = exports.resolve(to).substr(1);\n\n              function trim(arr) {\n                var start = 0;\n                for (; start < arr.length; start++) {\n                  if (arr[start] !== '') break;\n                }\n\n                var end = arr.length - 1;\n                for (; end >= 0; end--) {\n                  if (arr[end] !== '') break;\n                }\n\n                if (start > end) return [];\n                return arr.slice(start, end - start + 1);\n              }\n\n              var fromParts = trim(from.split('/'));\n              var toParts = trim(to.split('/'));\n\n              var length = Math.min(fromParts.length, toParts.length);\n              var samePartsLength = length;\n              for (var i = 0; i < length; i++) {\n                if (fromParts[i] !== toParts[i]) {\n                  samePartsLength = i;\n                  break;\n                }\n              }\n\n              var outputParts = [];\n              for (var i = samePartsLength; i < fromParts.length; i++) {\n                outputParts.push('..');\n              }\n\n              outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n              return outputParts.join('/');\n            };\n\n            exports.sep = '/';\n            exports.delimiter = ':';\n\n            exports.dirname = function(path) {\n              if (typeof path !== 'string') path = path + '';\n              if (path.length === 0) return '.';\n              var code = path.charCodeAt(0);\n              var hasRoot = code === 47 /*/*/;\n              var end = -1;\n              var matchedSlash = true;\n              for (var i = path.length - 1; i >= 1; --i) {\n                code = path.charCodeAt(i);\n                if (code === 47 /*/*/) {\n                  if (!matchedSlash) {\n                    end = i;\n                    break;\n                  }\n                } else {\n                  // We saw the first non-path separator\n                  matchedSlash = false;\n                }\n              }\n\n              if (end === -1) return hasRoot ? '/' : '.';\n              if (hasRoot && end === 1) {\n                // return '//';\n                // Backwards-compat fix:\n                return '/';\n              }\n              return path.slice(0, end);\n            };\n\n            function basename(path) {\n              if (typeof path !== 'string') path = path + '';\n\n              var start = 0;\n              var end = -1;\n              var matchedSlash = true;\n              var i;\n\n              for (i = path.length - 1; i >= 0; --i) {\n                if (path.charCodeAt(i) === 47 /*/*/) {\n                  // If we reached a path separator that was not part of a set of path\n                  // separators at the end of the string, stop now\n                  if (!matchedSlash) {\n                    start = i + 1;\n                    break;\n                  }\n                } else if (end === -1) {\n                  // We saw the first non-path separator, mark this as the end of our\n                  // path component\n                  matchedSlash = false;\n                  end = i + 1;\n                }\n              }\n\n              if (end === -1) return '';\n              return path.slice(start, end);\n            }\n\n            // Uses a mixed approach for backwards-compatibility, as ext behavior changed\n            // in new Node.js versions, so only basename() above is backported here\n            exports.basename = function(path, ext) {\n              var f = basename(path);\n              if (ext && f.substr(-1 * ext.length) === ext) {\n                f = f.substr(0, f.length - ext.length);\n              }\n              return f;\n            };\n\n            exports.extname = function(path) {\n              if (typeof path !== 'string') path = path + '';\n              var startDot = -1;\n              var startPart = 0;\n              var end = -1;\n              var matchedSlash = true;\n              // Track the state of characters (if any) we see before our first dot and\n              // after any path separator we find\n              var preDotState = 0;\n              for (var i = path.length - 1; i >= 0; --i) {\n                var code = path.charCodeAt(i);\n                if (code === 47 /*/*/) {\n                  // If we reached a path separator that was not part of a set of path\n                  // separators at the end of the string, stop now\n                  if (!matchedSlash) {\n                    startPart = i + 1;\n                    break;\n                  }\n                  continue;\n                }\n                if (end === -1) {\n                  // We saw the first non-path separator, mark this as the end of our\n                  // extension\n                  matchedSlash = false;\n                  end = i + 1;\n                }\n                if (code === 46 /*.*/) {\n                  // If this is our first dot, mark it as the start of our extension\n                  if (startDot === -1) startDot = i;\n                  else if (preDotState !== 1) preDotState = 1;\n                } else if (startDot !== -1) {\n                  // We saw a non-dot and non-path separator before our dot, so we should\n                  // have a good chance at having a non-empty extension\n                  preDotState = -1;\n                }\n              }\n\n              if (\n                startDot === -1 ||\n                end === -1 ||\n                // We saw a non-dot character immediately before the dot\n                preDotState === 0 ||\n                // The (right-most) trimmed path component is exactly '..'\n                (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)\n              ) {\n                return '';\n              }\n              return path.slice(startDot, end);\n            };\n\n            function filter(xs, f) {\n              if (xs.filter) return xs.filter(f);\n              var res = [];\n              for (var i = 0; i < xs.length; i++) {\n                if (f(xs[i], i, xs)) res.push(xs[i]);\n              }\n              return res;\n            }\n\n            // String.prototype.substr - negative index don't work in IE8\n            var substr =\n              'ab'.substr(-1) === 'b'\n                ? function(str, start, len) {\n                    return str.substr(start, len);\n                  }\n                : function(str, start, len) {\n                    if (start < 0) start = str.length + start;\n                    return str.substr(start, len);\n                  };\n          }.call(this, _dereq_('_process')));\n        },\n        { _process: 36 }\n      ],\n      36: [\n        function(_dereq_, module, exports) {\n          // shim for using process in browser\n          var process = (module.exports = {});\n\n          // cached from whatever global is present so that test runners that stub it\n          // don't break things.  But we need to wrap it in a try catch in case it is\n          // wrapped in strict mode code which doesn't define any globals.  It's inside a\n          // function because try/catches deoptimize in certain engines.\n\n          var cachedSetTimeout;\n          var cachedClearTimeout;\n\n          function defaultSetTimout() {\n            throw new Error('setTimeout has not been defined');\n          }\n          function defaultClearTimeout() {\n            throw new Error('clearTimeout has not been defined');\n          }\n          (function() {\n            try {\n              if (typeof setTimeout === 'function') {\n                cachedSetTimeout = setTimeout;\n              } else {\n                cachedSetTimeout = defaultSetTimout;\n              }\n            } catch (e) {\n              cachedSetTimeout = defaultSetTimout;\n            }\n            try {\n              if (typeof clearTimeout === 'function') {\n                cachedClearTimeout = clearTimeout;\n              } else {\n                cachedClearTimeout = defaultClearTimeout;\n              }\n            } catch (e) {\n              cachedClearTimeout = defaultClearTimeout;\n            }\n          })();\n          function runTimeout(fun) {\n            if (cachedSetTimeout === setTimeout) {\n              //normal enviroments in sane situations\n              return setTimeout(fun, 0);\n            }\n            // if setTimeout wasn't available but was latter defined\n            if (\n              (cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) &&\n              setTimeout\n            ) {\n              cachedSetTimeout = setTimeout;\n              return setTimeout(fun, 0);\n            }\n            try {\n              // when when somebody has screwed with setTimeout but no I.E. maddness\n              return cachedSetTimeout(fun, 0);\n            } catch (e) {\n              try {\n                // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n                return cachedSetTimeout.call(null, fun, 0);\n              } catch (e) {\n                // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n                return cachedSetTimeout.call(this, fun, 0);\n              }\n            }\n          }\n          function runClearTimeout(marker) {\n            if (cachedClearTimeout === clearTimeout) {\n              //normal enviroments in sane situations\n              return clearTimeout(marker);\n            }\n            // if clearTimeout wasn't available but was latter defined\n            if (\n              (cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) &&\n              clearTimeout\n            ) {\n              cachedClearTimeout = clearTimeout;\n              return clearTimeout(marker);\n            }\n            try {\n              // when when somebody has screwed with setTimeout but no I.E. maddness\n              return cachedClearTimeout(marker);\n            } catch (e) {\n              try {\n                // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally\n                return cachedClearTimeout.call(null, marker);\n              } catch (e) {\n                // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n                // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n                return cachedClearTimeout.call(this, marker);\n              }\n            }\n          }\n          var queue = [];\n          var draining = false;\n          var currentQueue;\n          var queueIndex = -1;\n\n          function cleanUpNextTick() {\n            if (!draining || !currentQueue) {\n              return;\n            }\n            draining = false;\n            if (currentQueue.length) {\n              queue = currentQueue.concat(queue);\n            } else {\n              queueIndex = -1;\n            }\n            if (queue.length) {\n              drainQueue();\n            }\n          }\n\n          function drainQueue() {\n            if (draining) {\n              return;\n            }\n            var timeout = runTimeout(cleanUpNextTick);\n            draining = true;\n\n            var len = queue.length;\n            while (len) {\n              currentQueue = queue;\n              queue = [];\n              while (++queueIndex < len) {\n                if (currentQueue) {\n                  currentQueue[queueIndex].run();\n                }\n              }\n              queueIndex = -1;\n              len = queue.length;\n            }\n            currentQueue = null;\n            draining = false;\n            runClearTimeout(timeout);\n          }\n\n          process.nextTick = function(fun) {\n            var args = new Array(arguments.length - 1);\n            if (arguments.length > 1) {\n              for (var i = 1; i < arguments.length; i++) {\n                args[i - 1] = arguments[i];\n              }\n            }\n            queue.push(new Item(fun, args));\n            if (queue.length === 1 && !draining) {\n              runTimeout(drainQueue);\n            }\n          };\n\n          // v8 likes predictible objects\n          function Item(fun, array) {\n            this.fun = fun;\n            this.array = array;\n          }\n          Item.prototype.run = function() {\n            this.fun.apply(null, this.array);\n          };\n          process.title = 'browser';\n          process.browser = true;\n          process.env = {};\n          process.argv = [];\n          process.version = ''; // empty string to avoid regexp issues\n          process.versions = {};\n\n          function noop() {}\n\n          process.on = noop;\n          process.addListener = noop;\n          process.once = noop;\n          process.off = noop;\n          process.removeListener = noop;\n          process.removeAllListeners = noop;\n          process.emit = noop;\n          process.prependListener = noop;\n          process.prependOnceListener = noop;\n\n          process.listeners = function(name) {\n            return [];\n          };\n\n          process.binding = function(name) {\n            throw new Error('process.binding is not supported');\n          };\n\n          process.cwd = function() {\n            return '/';\n          };\n          process.chdir = function(dir) {\n            throw new Error('process.chdir is not supported');\n          };\n          process.umask = function() {\n            return 0;\n          };\n        },\n        {}\n      ],\n      37: [\n        function(_dereq_, module, exports) {\n          (function(self) {\n            'use strict';\n\n            if (self.fetch) {\n              return;\n            }\n\n            var support = {\n              searchParams: 'URLSearchParams' in self,\n              iterable: 'Symbol' in self && 'iterator' in Symbol,\n              blob:\n                'FileReader' in self &&\n                'Blob' in self &&\n                (function() {\n                  try {\n                    new Blob();\n                    return true;\n                  } catch (e) {\n                    return false;\n                  }\n                })(),\n              formData: 'FormData' in self,\n              arrayBuffer: 'ArrayBuffer' in self\n            };\n\n            if (support.arrayBuffer) {\n              var viewClasses = [\n                '[object Int8Array]',\n                '[object Uint8Array]',\n                '[object Uint8ClampedArray]',\n                '[object Int16Array]',\n                '[object Uint16Array]',\n                '[object Int32Array]',\n                '[object Uint32Array]',\n                '[object Float32Array]',\n                '[object Float64Array]'\n              ];\n\n              var isDataView = function(obj) {\n                return obj && DataView.prototype.isPrototypeOf(obj);\n              };\n\n              var isArrayBufferView =\n                ArrayBuffer.isView ||\n                function(obj) {\n                  return (\n                    obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n                  );\n                };\n            }\n\n            function normalizeName(name) {\n              if (typeof name !== 'string') {\n                name = String(name);\n              }\n              if (/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(name)) {\n                throw new TypeError('Invalid character in header field name');\n              }\n              return name.toLowerCase();\n            }\n\n            function normalizeValue(value) {\n              if (typeof value !== 'string') {\n                value = String(value);\n              }\n              return value;\n            }\n\n            // Build a destructive iterator for the value list\n            function iteratorFor(items) {\n              var iterator = {\n                next: function() {\n                  var value = items.shift();\n                  return { done: value === undefined, value: value };\n                }\n              };\n\n              if (support.iterable) {\n                iterator[Symbol.iterator] = function() {\n                  return iterator;\n                };\n              }\n\n              return iterator;\n            }\n\n            function Headers(headers) {\n              this.map = {};\n\n              if (headers instanceof Headers) {\n                headers.forEach(function(value, name) {\n                  this.append(name, value);\n                }, this);\n              } else if (Array.isArray(headers)) {\n                headers.forEach(function(header) {\n                  this.append(header[0], header[1]);\n                }, this);\n              } else if (headers) {\n                Object.getOwnPropertyNames(headers).forEach(function(name) {\n                  this.append(name, headers[name]);\n                }, this);\n              }\n            }\n\n            Headers.prototype.append = function(name, value) {\n              name = normalizeName(name);\n              value = normalizeValue(value);\n              var oldValue = this.map[name];\n              this.map[name] = oldValue ? oldValue + ',' + value : value;\n            };\n\n            Headers.prototype['delete'] = function(name) {\n              delete this.map[normalizeName(name)];\n            };\n\n            Headers.prototype.get = function(name) {\n              name = normalizeName(name);\n              return this.has(name) ? this.map[name] : null;\n            };\n\n            Headers.prototype.has = function(name) {\n              return this.map.hasOwnProperty(normalizeName(name));\n            };\n\n            Headers.prototype.set = function(name, value) {\n              this.map[normalizeName(name)] = normalizeValue(value);\n            };\n\n            Headers.prototype.forEach = function(callback, thisArg) {\n              for (var name in this.map) {\n                if (this.map.hasOwnProperty(name)) {\n                  callback.call(thisArg, this.map[name], name, this);\n                }\n              }\n            };\n\n            Headers.prototype.keys = function() {\n              var items = [];\n              this.forEach(function(value, name) {\n                items.push(name);\n              });\n              return iteratorFor(items);\n            };\n\n            Headers.prototype.values = function() {\n              var items = [];\n              this.forEach(function(value) {\n                items.push(value);\n              });\n              return iteratorFor(items);\n            };\n\n            Headers.prototype.entries = function() {\n              var items = [];\n              this.forEach(function(value, name) {\n                items.push([name, value]);\n              });\n              return iteratorFor(items);\n            };\n\n            if (support.iterable) {\n              Headers.prototype[Symbol.iterator] = Headers.prototype.entries;\n            }\n\n            function consumed(body) {\n              if (body.bodyUsed) {\n                return Promise.reject(new TypeError('Already read'));\n              }\n              body.bodyUsed = true;\n            }\n\n            function fileReaderReady(reader) {\n              return new Promise(function(resolve, reject) {\n                reader.onload = function() {\n                  resolve(reader.result);\n                };\n                reader.onerror = function() {\n                  reject(reader.error);\n                };\n              });\n            }\n\n            function readBlobAsArrayBuffer(blob) {\n              var reader = new FileReader();\n              var promise = fileReaderReady(reader);\n              reader.readAsArrayBuffer(blob);\n              return promise;\n            }\n\n            function readBlobAsText(blob) {\n              var reader = new FileReader();\n              var promise = fileReaderReady(reader);\n              reader.readAsText(blob);\n              return promise;\n            }\n\n            function readArrayBufferAsText(buf) {\n              var view = new Uint8Array(buf);\n              var chars = new Array(view.length);\n\n              for (var i = 0; i < view.length; i++) {\n                chars[i] = String.fromCharCode(view[i]);\n              }\n              return chars.join('');\n            }\n\n            function bufferClone(buf) {\n              if (buf.slice) {\n                return buf.slice(0);\n              } else {\n                var view = new Uint8Array(buf.byteLength);\n                view.set(new Uint8Array(buf));\n                return view.buffer;\n              }\n            }\n\n            function Body() {\n              this.bodyUsed = false;\n\n              this._initBody = function(body) {\n                this._bodyInit = body;\n                if (!body) {\n                  this._bodyText = '';\n                } else if (typeof body === 'string') {\n                  this._bodyText = body;\n                } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n                  this._bodyBlob = body;\n                } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n                  this._bodyFormData = body;\n                } else if (\n                  support.searchParams &&\n                  URLSearchParams.prototype.isPrototypeOf(body)\n                ) {\n                  this._bodyText = body.toString();\n                } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n                  this._bodyArrayBuffer = bufferClone(body.buffer);\n                  // IE 10-11 can't handle a DataView body.\n                  this._bodyInit = new Blob([this._bodyArrayBuffer]);\n                } else if (\n                  support.arrayBuffer &&\n                  (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))\n                ) {\n                  this._bodyArrayBuffer = bufferClone(body);\n                } else {\n                  throw new Error('unsupported BodyInit type');\n                }\n\n                if (!this.headers.get('content-type')) {\n                  if (typeof body === 'string') {\n                    this.headers.set('content-type', 'text/plain;charset=UTF-8');\n                  } else if (this._bodyBlob && this._bodyBlob.type) {\n                    this.headers.set('content-type', this._bodyBlob.type);\n                  } else if (\n                    support.searchParams &&\n                    URLSearchParams.prototype.isPrototypeOf(body)\n                  ) {\n                    this.headers.set(\n                      'content-type',\n                      'application/x-www-form-urlencoded;charset=UTF-8'\n                    );\n                  }\n                }\n              };\n\n              if (support.blob) {\n                this.blob = function() {\n                  var rejected = consumed(this);\n                  if (rejected) {\n                    return rejected;\n                  }\n\n                  if (this._bodyBlob) {\n                    return Promise.resolve(this._bodyBlob);\n                  } else if (this._bodyArrayBuffer) {\n                    return Promise.resolve(new Blob([this._bodyArrayBuffer]));\n                  } else if (this._bodyFormData) {\n                    throw new Error('could not read FormData body as blob');\n                  } else {\n                    return Promise.resolve(new Blob([this._bodyText]));\n                  }\n                };\n\n                this.arrayBuffer = function() {\n                  if (this._bodyArrayBuffer) {\n                    return consumed(this) || Promise.resolve(this._bodyArrayBuffer);\n                  } else {\n                    return this.blob().then(readBlobAsArrayBuffer);\n                  }\n                };\n              }\n\n              this.text = function() {\n                var rejected = consumed(this);\n                if (rejected) {\n                  return rejected;\n                }\n\n                if (this._bodyBlob) {\n                  return readBlobAsText(this._bodyBlob);\n                } else if (this._bodyArrayBuffer) {\n                  return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));\n                } else if (this._bodyFormData) {\n                  throw new Error('could not read FormData body as text');\n                } else {\n                  return Promise.resolve(this._bodyText);\n                }\n              };\n\n              if (support.formData) {\n                this.formData = function() {\n                  return this.text().then(decode);\n                };\n              }\n\n              this.json = function() {\n                return this.text().then(JSON.parse);\n              };\n\n              return this;\n            }\n\n            // HTTP methods whose capitalization should be normalized\n            var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];\n\n            function normalizeMethod(method) {\n              var upcased = method.toUpperCase();\n              return methods.indexOf(upcased) > -1 ? upcased : method;\n            }\n\n            function Request(input, options) {\n              options = options || {};\n              var body = options.body;\n\n              if (input instanceof Request) {\n                if (input.bodyUsed) {\n                  throw new TypeError('Already read');\n                }\n                this.url = input.url;\n                this.credentials = input.credentials;\n                if (!options.headers) {\n                  this.headers = new Headers(input.headers);\n                }\n                this.method = input.method;\n                this.mode = input.mode;\n                if (!body && input._bodyInit != null) {\n                  body = input._bodyInit;\n                  input.bodyUsed = true;\n                }\n              } else {\n                this.url = String(input);\n              }\n\n              this.credentials = options.credentials || this.credentials || 'omit';\n              if (options.headers || !this.headers) {\n                this.headers = new Headers(options.headers);\n              }\n              this.method = normalizeMethod(options.method || this.method || 'GET');\n              this.mode = options.mode || this.mode || null;\n              this.referrer = null;\n\n              if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n                throw new TypeError('Body not allowed for GET or HEAD requests');\n              }\n              this._initBody(body);\n            }\n\n            Request.prototype.clone = function() {\n              return new Request(this, { body: this._bodyInit });\n            };\n\n            function decode(body) {\n              var form = new FormData();\n              body\n                .trim()\n                .split('&')\n                .forEach(function(bytes) {\n                  if (bytes) {\n                    var split = bytes.split('=');\n                    var name = split.shift().replace(/\\+/g, ' ');\n                    var value = split.join('=').replace(/\\+/g, ' ');\n                    form.append(decodeURIComponent(name), decodeURIComponent(value));\n                  }\n                });\n              return form;\n            }\n\n            function parseHeaders(rawHeaders) {\n              var headers = new Headers();\n              // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n              // https://tools.ietf.org/html/rfc7230#section-3.2\n              var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ');\n              preProcessedHeaders.split(/\\r?\\n/).forEach(function(line) {\n                var parts = line.split(':');\n                var key = parts.shift().trim();\n                if (key) {\n                  var value = parts.join(':').trim();\n                  headers.append(key, value);\n                }\n              });\n              return headers;\n            }\n\n            Body.call(Request.prototype);\n\n            function Response(bodyInit, options) {\n              if (!options) {\n                options = {};\n              }\n\n              this.type = 'default';\n              this.status = options.status === undefined ? 200 : options.status;\n              this.ok = this.status >= 200 && this.status < 300;\n              this.statusText = 'statusText' in options ? options.statusText : 'OK';\n              this.headers = new Headers(options.headers);\n              this.url = options.url || '';\n              this._initBody(bodyInit);\n            }\n\n            Body.call(Response.prototype);\n\n            Response.prototype.clone = function() {\n              return new Response(this._bodyInit, {\n                status: this.status,\n                statusText: this.statusText,\n                headers: new Headers(this.headers),\n                url: this.url\n              });\n            };\n\n            Response.error = function() {\n              var response = new Response(null, { status: 0, statusText: '' });\n              response.type = 'error';\n              return response;\n            };\n\n            var redirectStatuses = [301, 302, 303, 307, 308];\n\n            Response.redirect = function(url, status) {\n              if (redirectStatuses.indexOf(status) === -1) {\n                throw new RangeError('Invalid status code');\n              }\n\n              return new Response(null, { status: status, headers: { location: url } });\n            };\n\n            self.Headers = Headers;\n            self.Request = Request;\n            self.Response = Response;\n\n            self.fetch = function(input, init) {\n              return new Promise(function(resolve, reject) {\n                var request = new Request(input, init);\n                var xhr = new XMLHttpRequest();\n\n                xhr.onload = function() {\n                  var options = {\n                    status: xhr.status,\n                    statusText: xhr.statusText,\n                    headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n                  };\n                  options.url =\n                    'responseURL' in xhr\n                      ? xhr.responseURL\n                      : options.headers.get('X-Request-URL');\n                  var body = 'response' in xhr ? xhr.response : xhr.responseText;\n                  resolve(new Response(body, options));\n                };\n\n                xhr.onerror = function() {\n                  reject(new TypeError('Network request failed'));\n                };\n\n                xhr.ontimeout = function() {\n                  reject(new TypeError('Network request failed'));\n                };\n\n                xhr.open(request.method, request.url, true);\n\n                if (request.credentials === 'include') {\n                  xhr.withCredentials = true;\n                } else if (request.credentials === 'omit') {\n                  xhr.withCredentials = false;\n                }\n\n                if ('responseType' in xhr && support.blob) {\n                  xhr.responseType = 'blob';\n                }\n\n                request.headers.forEach(function(value, name) {\n                  xhr.setRequestHeader(name, value);\n                });\n\n                xhr.send(\n                  typeof request._bodyInit === 'undefined' ? null : request._bodyInit\n                );\n              });\n            };\n            self.fetch.polyfill = true;\n          })(typeof self !== 'undefined' ? self : this);\n        },\n        {}\n      ],\n      38: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          var _main = _interopRequireDefault(_dereq_('./core/main'));\n          _dereq_('./core/constants');\n          _dereq_('./core/environment');\n          _dereq_('./core/error_helpers');\n          _dereq_('./core/helpers');\n          _dereq_('./core/legacy');\n          _dereq_('./core/preload');\n          _dereq_('./core/p5.Element');\n          _dereq_('./core/p5.Graphics');\n          _dereq_('./core/p5.Renderer');\n          _dereq_('./core/p5.Renderer2D');\n          _dereq_('./core/rendering');\n          _dereq_('./core/shim');\n          _dereq_('./core/structure');\n          _dereq_('./core/transform');\n          _dereq_('./core/shape/2d_primitives');\n          _dereq_('./core/shape/attributes');\n          _dereq_('./core/shape/curves');\n          _dereq_('./core/shape/vertex');\n\n          _dereq_('./color/color_conversion');\n          _dereq_('./color/creating_reading');\n          _dereq_('./color/p5.Color');\n          _dereq_('./color/setting');\n\n          _dereq_('./data/p5.TypedDict');\n          _dereq_('./data/local_storage.js');\n\n          _dereq_('./dom/dom');\n\n          _dereq_('./events/acceleration');\n          _dereq_('./events/keyboard');\n          _dereq_('./events/mouse');\n          _dereq_('./events/touch');\n\n          _dereq_('./image/filters');\n          _dereq_('./image/image');\n          _dereq_('./image/loading_displaying');\n          _dereq_('./image/p5.Image');\n          _dereq_('./image/pixels');\n\n          _dereq_('./io/files');\n          _dereq_('./io/p5.Table');\n          _dereq_('./io/p5.TableRow');\n          _dereq_('./io/p5.XML');\n\n          _dereq_('./math/calculation');\n          _dereq_('./math/math');\n          _dereq_('./math/noise');\n          _dereq_('./math/p5.Vector');\n          _dereq_('./math/random');\n          _dereq_('./math/trigonometry');\n\n          _dereq_('./typography/attributes');\n          _dereq_('./typography/loading_displaying');\n          _dereq_('./typography/p5.Font');\n\n          _dereq_('./utilities/array_functions');\n          _dereq_('./utilities/conversion');\n          _dereq_('./utilities/string_functions');\n          _dereq_('./utilities/time_date');\n\n          _dereq_('./webgl/3d_primitives');\n          _dereq_('./webgl/interaction');\n          _dereq_('./webgl/light');\n          _dereq_('./webgl/loading');\n          _dereq_('./webgl/material');\n          _dereq_('./webgl/p5.Camera');\n          _dereq_('./webgl/p5.Geometry');\n          _dereq_('./webgl/p5.Matrix');\n          _dereq_('./webgl/p5.RendererGL.Immediate');\n          _dereq_('./webgl/p5.RendererGL');\n          _dereq_('./webgl/p5.RendererGL.Retained');\n          _dereq_('./webgl/p5.Shader');\n          _dereq_('./webgl/p5.RenderBuffer');\n          _dereq_('./webgl/p5.Texture');\n          _dereq_('./webgl/text');\n\n          _dereq_('./core/init');\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          } // core\n          // color\n          // data\n          // DOM\n          // events\n          // image\n          // io\n          // math\n          // typography\n          // utilities\n          // webgl\n          module.exports = _main.default;\n        },\n        {\n          './color/color_conversion': 39,\n          './color/creating_reading': 40,\n          './color/p5.Color': 41,\n          './color/setting': 42,\n          './core/constants': 43,\n          './core/environment': 44,\n          './core/error_helpers': 45,\n          './core/helpers': 46,\n          './core/init': 47,\n          './core/legacy': 49,\n          './core/main': 50,\n          './core/p5.Element': 51,\n          './core/p5.Graphics': 52,\n          './core/p5.Renderer': 53,\n          './core/p5.Renderer2D': 54,\n          './core/preload': 55,\n          './core/rendering': 56,\n          './core/shape/2d_primitives': 57,\n          './core/shape/attributes': 58,\n          './core/shape/curves': 59,\n          './core/shape/vertex': 60,\n          './core/shim': 61,\n          './core/structure': 62,\n          './core/transform': 63,\n          './data/local_storage.js': 64,\n          './data/p5.TypedDict': 65,\n          './dom/dom': 66,\n          './events/acceleration': 67,\n          './events/keyboard': 68,\n          './events/mouse': 69,\n          './events/touch': 70,\n          './image/filters': 71,\n          './image/image': 72,\n          './image/loading_displaying': 73,\n          './image/p5.Image': 74,\n          './image/pixels': 75,\n          './io/files': 76,\n          './io/p5.Table': 77,\n          './io/p5.TableRow': 78,\n          './io/p5.XML': 79,\n          './math/calculation': 80,\n          './math/math': 81,\n          './math/noise': 82,\n          './math/p5.Vector': 83,\n          './math/random': 84,\n          './math/trigonometry': 85,\n          './typography/attributes': 86,\n          './typography/loading_displaying': 87,\n          './typography/p5.Font': 88,\n          './utilities/array_functions': 89,\n          './utilities/conversion': 90,\n          './utilities/string_functions': 91,\n          './utilities/time_date': 92,\n          './webgl/3d_primitives': 93,\n          './webgl/interaction': 94,\n          './webgl/light': 95,\n          './webgl/loading': 96,\n          './webgl/material': 97,\n          './webgl/p5.Camera': 98,\n          './webgl/p5.Geometry': 99,\n          './webgl/p5.Matrix': 100,\n          './webgl/p5.RenderBuffer': 101,\n          './webgl/p5.RendererGL': 104,\n          './webgl/p5.RendererGL.Immediate': 102,\n          './webgl/p5.RendererGL.Retained': 103,\n          './webgl/p5.Shader': 105,\n          './webgl/p5.Texture': 106,\n          './webgl/text': 107\n        }\n      ],\n      39: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Color\n           * @submodule Color Conversion\n           * @for p5\n           * @requires core\n           */ /**\n           * Conversions adapted from <http://www.easyrgb.com/en/math.php>.\n           *\n           * In these functions, hue is always in the range [0, 1], just like all other\n           * components are in the range [0, 1]. 'Brightness' and 'value' are used\n           * interchangeably.\n           */ _main.default.ColorConversion = {};\n          /**\n           * Convert an HSBA array to HSLA.\n           */ _main.default.ColorConversion._hsbaToHSLA = function(hsba) {\n            var hue = hsba[0];\n            var sat = hsba[1];\n            var val = hsba[2]; // Calculate lightness.\n            var li = (2 - sat) * val / 2; // Convert saturation.\n            if (li !== 0) {\n              if (li === 1) {\n                sat = 0;\n              } else if (li < 0.5) {\n                sat = sat / (2 - sat);\n              } else {\n                sat = sat * val / (2 - li * 2);\n              }\n            }\n\n            // Hue and alpha stay the same.\n            return [hue, sat, li, hsba[3]];\n          };\n\n          /**\n           * Convert an HSBA array to RGBA.\n           */\n          _main.default.ColorConversion._hsbaToRGBA = function(hsba) {\n            var hue = hsba[0] * 6; // We will split hue into 6 sectors.\n            var sat = hsba[1];\n            var val = hsba[2];\n\n            var RGBA = [];\n\n            if (sat === 0) {\n              RGBA = [val, val, val, hsba[3]]; // Return early if grayscale.\n            } else {\n              var sector = Math.floor(hue);\n              var tint1 = val * (1 - sat);\n              var tint2 = val * (1 - sat * (hue - sector));\n              var tint3 = val * (1 - sat * (1 + sector - hue));\n              var red, green, blue;\n              if (sector === 1) {\n                // Yellow to green.\n                red = tint2;\n                green = val;\n                blue = tint1;\n              } else if (sector === 2) {\n                // Green to cyan.\n                red = tint1;\n                green = val;\n                blue = tint3;\n              } else if (sector === 3) {\n                // Cyan to blue.\n                red = tint1;\n                green = tint2;\n                blue = val;\n              } else if (sector === 4) {\n                // Blue to magenta.\n                red = tint3;\n                green = tint1;\n                blue = val;\n              } else if (sector === 5) {\n                // Magenta to red.\n                red = val;\n                green = tint1;\n                blue = tint2;\n              } else {\n                // Red to yellow (sector could be 0 or 6).\n                red = val;\n                green = tint3;\n                blue = tint1;\n              }\n              RGBA = [red, green, blue, hsba[3]];\n            }\n\n            return RGBA;\n          };\n\n          /**\n           * Convert an HSLA array to HSBA.\n           */\n          _main.default.ColorConversion._hslaToHSBA = function(hsla) {\n            var hue = hsla[0];\n            var sat = hsla[1];\n            var li = hsla[2];\n\n            // Calculate brightness.\n            var val;\n            if (li < 0.5) {\n              val = (1 + sat) * li;\n            } else {\n              val = li + sat - li * sat;\n            }\n\n            // Convert saturation.\n            sat = 2 * (val - li) / val;\n\n            // Hue and alpha stay the same.\n            return [hue, sat, val, hsla[3]];\n          };\n\n          /**\n           * Convert an HSLA array to RGBA.\n           *\n           * We need to change basis from HSLA to something that can be more easily be\n           * projected onto RGBA. We will choose hue and brightness as our first two\n           * components, and pick a convenient third one ('zest') so that we don't need\n           * to calculate formal HSBA saturation.\n           */\n          _main.default.ColorConversion._hslaToRGBA = function(hsla) {\n            var hue = hsla[0] * 6; // We will split hue into 6 sectors.\n            var sat = hsla[1];\n            var li = hsla[2];\n\n            var RGBA = [];\n\n            if (sat === 0) {\n              RGBA = [li, li, li, hsla[3]]; // Return early if grayscale.\n            } else {\n              // Calculate brightness.\n              var val;\n              if (li < 0.5) {\n                val = (1 + sat) * li;\n              } else {\n                val = li + sat - li * sat;\n              }\n\n              // Define zest.\n              var zest = 2 * li - val;\n\n              // Implement projection (project onto green by default).\n              var hzvToRGB = function hzvToRGB(hue, zest, val) {\n                if (hue < 0) {\n                  // Hue must wrap to allow projection onto red and blue.\n                  hue += 6;\n                } else if (hue >= 6) {\n                  hue -= 6;\n                }\n                if (hue < 1) {\n                  // Red to yellow (increasing green).\n                  return zest + (val - zest) * hue;\n                } else if (hue < 3) {\n                  // Yellow to cyan (greatest green).\n                  return val;\n                } else if (hue < 4) {\n                  // Cyan to blue (decreasing green).\n                  return zest + (val - zest) * (4 - hue);\n                } else {\n                  // Blue to red (least green).\n                  return zest;\n                }\n              };\n\n              // Perform projections, offsetting hue as necessary.\n              RGBA = [\n                hzvToRGB(hue + 2, zest, val),\n                hzvToRGB(hue, zest, val),\n                hzvToRGB(hue - 2, zest, val),\n                hsla[3]\n              ];\n            }\n\n            return RGBA;\n          };\n\n          /**\n           * Convert an RGBA array to HSBA.\n           */\n          _main.default.ColorConversion._rgbaToHSBA = function(rgba) {\n            var red = rgba[0];\n            var green = rgba[1];\n            var blue = rgba[2];\n\n            var val = Math.max(red, green, blue);\n            var chroma = val - Math.min(red, green, blue);\n\n            var hue, sat;\n            if (chroma === 0) {\n              // Return early if grayscale.\n              hue = 0;\n              sat = 0;\n            } else {\n              sat = chroma / val;\n              if (red === val) {\n                // Magenta to yellow.\n                hue = (green - blue) / chroma;\n              } else if (green === val) {\n                // Yellow to cyan.\n                hue = 2 + (blue - red) / chroma;\n              } else if (blue === val) {\n                // Cyan to magenta.\n                hue = 4 + (red - green) / chroma;\n              }\n              if (hue < 0) {\n                // Confine hue to the interval [0, 1).\n                hue += 6;\n              } else if (hue >= 6) {\n                hue -= 6;\n              }\n            }\n\n            return [hue / 6, sat, val, rgba[3]];\n          };\n\n          /**\n           * Convert an RGBA array to HSLA.\n           */\n          _main.default.ColorConversion._rgbaToHSLA = function(rgba) {\n            var red = rgba[0];\n            var green = rgba[1];\n            var blue = rgba[2];\n\n            var val = Math.max(red, green, blue);\n            var min = Math.min(red, green, blue);\n            var li = val + min; // We will halve this later.\n            var chroma = val - min;\n\n            var hue, sat;\n            if (chroma === 0) {\n              // Return early if grayscale.\n              hue = 0;\n              sat = 0;\n            } else {\n              if (li < 1) {\n                sat = chroma / li;\n              } else {\n                sat = chroma / (2 - li);\n              }\n              if (red === val) {\n                // Magenta to yellow.\n                hue = (green - blue) / chroma;\n              } else if (green === val) {\n                // Yellow to cyan.\n                hue = 2 + (blue - red) / chroma;\n              } else if (blue === val) {\n                // Cyan to magenta.\n                hue = 4 + (red - green) / chroma;\n              }\n              if (hue < 0) {\n                // Confine hue to the interval [0, 1).\n                hue += 6;\n              } else if (hue >= 6) {\n                hue -= 6;\n              }\n            }\n\n            return [hue / 6, sat, li / 2, rgba[3]];\n          };\n          var _default = _main.default.ColorConversion;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      40: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          _dereq_('./p5.Color');\n          _dereq_('../core/error_helpers');\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Color\n           * @submodule Creating & Reading\n           * @for p5\n           * @requires core\n           * @requires constants\n           */ /**\n           * Extracts the alpha value from a color or pixel array.\n           *\n           * @method alpha\n           * @param {p5.Color|Number[]|String} color <a href=\"#/p5.Color\">p5.Color</a> object, color components,\n           *                                         or CSS color\n           * @return {Number} the alpha value\n           * @example\n           * <div>\n           * <code>\n           * noStroke();\n           * let c = color(0, 126, 255, 102);\n           * fill(c);\n           * rect(15, 15, 35, 70);\n           * let value = alpha(c); // Sets 'value' to 102\n           * fill(value);\n           * rect(50, 15, 35, 70);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Left half of canvas light blue and right half light charcoal grey.\n           * Left half of canvas light purple and right half a royal blue.\n           * Left half of canvas salmon pink and the right half white.\n           * Yellow rect in middle right of canvas, with 55 pixel width and height.\n           * Yellow ellipse in top left canvas, black ellipse in bottom right,both 80x80.\n           * Bright fuchsia rect in middle of canvas, 60 pixel width and height.\n           * Two bright green rects on opposite sides of the canvas, both 45x80.\n           * Four blue rects in each corner of the canvas, each are 35x35.\n           * Bright sea green rect on left and darker rect on right of canvas, both 45x80.\n           * Dark green rect on left and light green rect on right of canvas, both 45x80.\n           * Dark blue rect on left and light teal rect on right of canvas, both 45x80.\n           * blue rect on left and green on right, both with black outlines & 35x60.\n           * salmon pink rect on left and black on right, both 35x60.\n           * 4 rects, tan, brown, brownish purple and purple, with white outlines & 20x60.\n           * light pastel green rect on left and dark grey rect on right, both 35x60.\n           * yellow rect on left and red rect on right, both with black outlines & 35x60.\n           * grey canvas\n           * deep pink rect on left and grey rect on right, both 35x60.\n           */ _main.default.prototype.alpha = function(c) {\n            _main.default._validateParameters('alpha', arguments);\n            return this.color(c)._getAlpha();\n          };\n\n          /**\n           * Extracts the blue value from a color or pixel array.\n           *\n           * @method blue\n           * @param {p5.Color|Number[]|String} color <a href=\"#/p5.Color\">p5.Color</a> object, color components,\n           *                                         or CSS color\n           * @return {Number} the blue value\n           * @example\n           * <div>\n           * <code>\n           * let c = color(175, 100, 220); // Define color 'c'\n           * fill(c); // Use color variable 'c' as fill color\n           * rect(15, 20, 35, 60); // Draw left rectangle\n           *\n           * let blueValue = blue(c); // Get blue in 'c'\n           * print(blueValue); // Prints \"220.0\"\n           * fill(0, 0, blueValue); // Use 'blueValue' in new fill\n           * rect(50, 20, 35, 60); // Draw right rectangle\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Left half of canvas light purple and right half a royal blue.\n           *\n           */\n          _main.default.prototype.blue = function(c) {\n            _main.default._validateParameters('blue', arguments);\n            return this.color(c)._getBlue();\n          };\n\n          /**\n           * Extracts the HSB brightness value from a color or pixel array.\n           *\n           * @method brightness\n           * @param {p5.Color|Number[]|String} color <a href=\"#/p5.Color\">p5.Color</a> object, color components,\n           *                                         or CSS color\n           * @return {Number} the brightness value\n           * @example\n           * <div>\n           * <code>\n           * noStroke();\n           * colorMode(HSB, 255);\n           * let c = color(0, 126, 255);\n           * fill(c);\n           * rect(15, 20, 35, 60);\n           * let value = brightness(c); // Sets 'value' to 255\n           * fill(value);\n           * rect(50, 20, 35, 60);\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * noStroke();\n           * colorMode(HSB, 255);\n           * let c = color('hsb(60, 100%, 50%)');\n           * fill(c);\n           * rect(15, 20, 35, 60);\n           * let value = brightness(c); // A 'value' of 50% is 127.5\n           * fill(value);\n           * rect(50, 20, 35, 60);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Left half of canvas salmon pink and the right half white.\n           * Left half of canvas yellow at half brightness and the right gray .\n           *\n           */\n          _main.default.prototype.brightness = function(c) {\n            _main.default._validateParameters('brightness', arguments);\n            return this.color(c)._getBrightness();\n          };\n\n          /**\n           * Creates colors for storing in variables of the color datatype. The\n           * parameters are interpreted as RGB or HSB values depending on the\n           * current <a href=\"#/p5/colorMode\">colorMode()</a>. The default mode is RGB values from 0 to 255\n           * and, therefore, the function call color(255, 204, 0) will return a\n           * bright yellow color.\n           * <br><br>\n           * Note that if only one value is provided to <a href=\"#/p5/color\">color()</a>, it will be interpreted\n           * as a grayscale value. Add a second value, and it will be used for alpha\n           * transparency. When three values are specified, they are interpreted as\n           * either RGB or HSB values. Adding a fourth value applies alpha\n           * transparency.\n           * <br><br>\n           * If a single string argument is provided, RGB, RGBA and Hex CSS color\n           * strings and all named color strings are supported. In this case, an alpha\n           * number value as a second argument is not supported, the RGBA form should be\n           * used.\n           *\n           * @method color\n           * @param  {Number}        gray    number specifying value between white\n           *                                 and black.\n           * @param  {Number}        [alpha] alpha value relative to current color range\n           *                                 (default is 0-255)\n           * @return {p5.Color}              resulting color\n           *\n           * @example\n           * <div>\n           * <code>\n           * let c = color(255, 204, 0); // Define color 'c'\n           * fill(c); // Use color variable 'c' as fill color\n           * noStroke(); // Don't draw a stroke around shapes\n           * rect(30, 20, 55, 55); // Draw rectangle\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let c = color(255, 204, 0); // Define color 'c'\n           * fill(c); // Use color variable 'c' as fill color\n           * noStroke(); // Don't draw a stroke around shapes\n           * ellipse(25, 25, 80, 80); // Draw left circle\n           *\n           * // Using only one value with color()\n           * // generates a grayscale value.\n           * c = color(65); // Update 'c' with grayscale value\n           * fill(c); // Use updated 'c' as fill color\n           * ellipse(75, 75, 80, 80); // Draw right circle\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // Named SVG & CSS colors may be used,\n           * let c = color('magenta');\n           * fill(c); // Use 'c' as fill color\n           * noStroke(); // Don't draw a stroke around shapes\n           * rect(20, 20, 60, 60); // Draw rectangle\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // as can hex color codes:\n           * noStroke(); // Don't draw a stroke around shapes\n           * let c = color('#0f0');\n           * fill(c); // Use 'c' as fill color\n           * rect(0, 10, 45, 80); // Draw rectangle\n           *\n           * c = color('#00ff00');\n           * fill(c); // Use updated 'c' as fill color\n           * rect(55, 10, 45, 80); // Draw rectangle\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // RGB and RGBA color strings are also supported:\n           * // these all set to the same color (solid blue)\n           * let c;\n           * noStroke(); // Don't draw a stroke around shapes\n           * c = color('rgb(0,0,255)');\n           * fill(c); // Use 'c' as fill color\n           * rect(10, 10, 35, 35); // Draw rectangle\n           *\n           * c = color('rgb(0%, 0%, 100%)');\n           * fill(c); // Use updated 'c' as fill color\n           * rect(55, 10, 35, 35); // Draw rectangle\n           *\n           * c = color('rgba(0, 0, 255, 1)');\n           * fill(c); // Use updated 'c' as fill color\n           * rect(10, 55, 35, 35); // Draw rectangle\n           *\n           * c = color('rgba(0%, 0%, 100%, 1)');\n           * fill(c); // Use updated 'c' as fill color\n           * rect(55, 55, 35, 35); // Draw rectangle\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // HSL color is also supported and can be specified\n           * // by value\n           * let c;\n           * noStroke(); // Don't draw a stroke around shapes\n           * c = color('hsl(160, 100%, 50%)');\n           * fill(c); // Use 'c' as fill color\n           * rect(0, 10, 45, 80); // Draw rectangle\n           *\n           * c = color('hsla(160, 100%, 50%, 0.5)');\n           * fill(c); // Use updated 'c' as fill color\n           * rect(55, 10, 45, 80); // Draw rectangle\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // HSB color is also supported and can be specified\n           * // by value\n           * let c;\n           * noStroke(); // Don't draw a stroke around shapes\n           * c = color('hsb(160, 100%, 50%)');\n           * fill(c); // Use 'c' as fill color\n           * rect(0, 10, 45, 80); // Draw rectangle\n           *\n           * c = color('hsba(160, 100%, 50%, 0.5)');\n           * fill(c); // Use updated 'c' as fill color\n           * rect(55, 10, 45, 80); // Draw rectangle\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let c; // Declare color 'c'\n           * noStroke(); // Don't draw a stroke around shapes\n           *\n           * // If no colorMode is specified, then the\n           * // default of RGB with scale of 0-255 is used.\n           * c = color(50, 55, 100); // Create a color for 'c'\n           * fill(c); // Use color variable 'c' as fill color\n           * rect(0, 10, 45, 80); // Draw left rect\n           *\n           * colorMode(HSB, 100); // Use HSB with scale of 0-100\n           * c = color(50, 55, 100); // Update 'c' with new color\n           * fill(c); // Use updated 'c' as fill color\n           * rect(55, 10, 45, 80); // Draw right rect\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Yellow rect in middle right of canvas, with 55 pixel width and height.\n           * Yellow ellipse in top left of canvas, black ellipse in bottom right,both 80x80.\n           * Bright fuchsia rect in middle of canvas, 60 pixel width and height.\n           * Two bright green rects on opposite sides of the canvas, both 45x80.\n           * Four blue rects in each corner of the canvas, each are 35x35.\n           * Bright sea green rect on left and darker rect on right of canvas, both 45x80.\n           * Dark green rect on left and lighter green rect on right of canvas, both 45x80.\n           * Dark blue rect on left and light teal rect on right of canvas, both 45x80.\n           *\n           */\n          /**\n           * @method color\n           * @param  {Number}        v1      red or hue value relative to\n           *                                 the current color range\n           * @param  {Number}        v2      green or saturation value\n           *                                 relative to the current color range\n           * @param  {Number}        v3      blue or brightness value\n           *                                 relative to the current color range\n           * @param  {Number}        [alpha]\n           * @return {p5.Color}\n           */\n\n          /**\n           * @method color\n           * @param  {String}        value   a color string\n           * @return {p5.Color}\n           */\n          /**\n           * @method color\n           * @param  {Number[]}      values  an array containing the red,green,blue &\n           *                                 and alpha components of the color\n           * @return {p5.Color}\n           */\n          /**\n           * @method color\n           * @param  {p5.Color}     color\n           * @return {p5.Color}\n           */\n\n          _main.default.prototype.color = function() {\n            _main.default._validateParameters('color', arguments);\n            if (arguments[0] instanceof _main.default.Color) {\n              return arguments[0]; // Do nothing if argument is already a color object.\n            }\n\n            var args = arguments[0] instanceof Array ? arguments[0] : arguments;\n            return new _main.default.Color(this, args);\n          };\n\n          /**\n           * Extracts the green value from a color or pixel array.\n           *\n           * @method green\n           * @param {p5.Color|Number[]|String} color <a href=\"#/p5.Color\">p5.Color</a> object, color components,\n           *                                         or CSS color\n           * @return {Number} the green value\n           * @example\n           * <div>\n           * <code>\n           * let c = color(20, 75, 200); // Define color 'c'\n           * fill(c); // Use color variable 'c' as fill color\n           * rect(15, 20, 35, 60); // Draw left rectangle\n           *\n           * let greenValue = green(c); // Get green in 'c'\n           * print(greenValue); // Print \"75.0\"\n           * fill(0, greenValue, 0); // Use 'greenValue' in new fill\n           * rect(50, 20, 35, 60); // Draw right rectangle\n           * </code>\n           * </div>\n           *\n           * @alt\n           * blue rect on left and green on right, both with black outlines & 35x60.\n           *\n           */\n\n          _main.default.prototype.green = function(c) {\n            _main.default._validateParameters('green', arguments);\n            return this.color(c)._getGreen();\n          };\n\n          /**\n           * Extracts the hue value from a color or pixel array.\n           *\n           * Hue exists in both HSB and HSL. This function will return the\n           * HSB-normalized hue when supplied with an HSB color object (or when supplied\n           * with a pixel array while the color mode is HSB), but will default to the\n           * HSL-normalized hue otherwise. (The values will only be different if the\n           * maximum hue setting for each system is different.)\n           *\n           * @method hue\n           * @param {p5.Color|Number[]|String} color <a href=\"#/p5.Color\">p5.Color</a> object, color components,\n           *                                         or CSS color\n           * @return {Number} the hue\n           * @example\n           * <div>\n           * <code>\n           * noStroke();\n           * colorMode(HSB, 255);\n           * let c = color(0, 126, 255);\n           * fill(c);\n           * rect(15, 20, 35, 60);\n           * let value = hue(c); // Sets 'value' to \"0\"\n           * fill(value);\n           * rect(50, 20, 35, 60);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * salmon pink rect on left and black on right, both 35x60.\n           *\n           */\n\n          _main.default.prototype.hue = function(c) {\n            _main.default._validateParameters('hue', arguments);\n            return this.color(c)._getHue();\n          };\n\n          /**\n           * Blends two colors to find a third color somewhere between them. The amt\n           * parameter is the amount to interpolate between the two values where 0.0\n           * equal to the first color, 0.1 is very near the first color, 0.5 is halfway\n           * in between, etc. An amount below 0 will be treated as 0. Likewise, amounts\n           * above 1 will be capped at 1. This is different from the behavior of <a href=\"#/p5/lerp\">lerp()</a>,\n           * but necessary because otherwise numbers outside the range will produce\n           * strange and unexpected colors.\n           * <br><br>\n           * The way that colours are interpolated depends on the current color mode.\n           *\n           * @method lerpColor\n           * @param  {p5.Color} c1  interpolate from this color\n           * @param  {p5.Color} c2  interpolate to this color\n           * @param  {Number}       amt number between 0 and 1\n           * @return {p5.Color}     interpolated color\n           * @example\n           * <div>\n           * <code>\n           * colorMode(RGB);\n           * stroke(255);\n           * background(51);\n           * let from = color(218, 165, 32);\n           * let to = color(72, 61, 139);\n           * colorMode(RGB); // Try changing to HSB.\n           * let interA = lerpColor(from, to, 0.33);\n           * let interB = lerpColor(from, to, 0.66);\n           * fill(from);\n           * rect(10, 20, 20, 60);\n           * fill(interA);\n           * rect(30, 20, 20, 60);\n           * fill(interB);\n           * rect(50, 20, 20, 60);\n           * fill(to);\n           * rect(70, 20, 20, 60);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 4 rects one tan, brown, brownish purple, purple, with white outlines & 20x60\n           *\n           */\n\n          _main.default.prototype.lerpColor = function(c1, c2, amt) {\n            _main.default._validateParameters('lerpColor', arguments);\n            var mode = this._colorMode;\n            var maxes = this._colorMaxes;\n            var l0, l1, l2, l3;\n            var fromArray, toArray;\n\n            if (mode === constants.RGB) {\n              fromArray = c1.levels.map(function(level) {\n                return level / 255;\n              });\n              toArray = c2.levels.map(function(level) {\n                return level / 255;\n              });\n            } else if (mode === constants.HSB) {\n              c1._getBrightness(); // Cache hsba so it definitely exists.\n              c2._getBrightness();\n              fromArray = c1.hsba;\n              toArray = c2.hsba;\n            } else if (mode === constants.HSL) {\n              c1._getLightness(); // Cache hsla so it definitely exists.\n              c2._getLightness();\n              fromArray = c1.hsla;\n              toArray = c2.hsla;\n            } else {\n              throw new Error(''.concat(mode, 'cannot be used for interpolation.'));\n            }\n\n            // Prevent extrapolation.\n            amt = Math.max(Math.min(amt, 1), 0);\n\n            // Define lerp here itself if user isn't using math module.\n            // Maintains the definition as found in math/calculation.js\n            if (typeof this.lerp === 'undefined') {\n              this.lerp = function(start, stop, amt) {\n                return amt * (stop - start) + start;\n              };\n            }\n\n            // Perform interpolation.\n            l0 = this.lerp(fromArray[0], toArray[0], amt);\n            l1 = this.lerp(fromArray[1], toArray[1], amt);\n            l2 = this.lerp(fromArray[2], toArray[2], amt);\n            l3 = this.lerp(fromArray[3], toArray[3], amt);\n\n            // Scale components.\n            l0 *= maxes[mode][0];\n            l1 *= maxes[mode][1];\n            l2 *= maxes[mode][2];\n            l3 *= maxes[mode][3];\n\n            return this.color(l0, l1, l2, l3);\n          };\n\n          /**\n           * Extracts the HSL lightness value from a color or pixel array.\n           *\n           * @method lightness\n           * @param {p5.Color|Number[]|String} color <a href=\"#/p5.Color\">p5.Color</a> object, color components,\n           *                                         or CSS color\n           * @return {Number} the lightness\n           * @example\n           * <div>\n           * <code>\n           * noStroke();\n           * colorMode(HSL);\n           * let c = color(156, 100, 50, 1);\n           * fill(c);\n           * rect(15, 20, 35, 60);\n           * let value = lightness(c); // Sets 'value' to 50\n           * fill(value);\n           * rect(50, 20, 35, 60);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * light pastel green rect on left and dark grey rect on right, both 35x60.\n           *\n           */\n          _main.default.prototype.lightness = function(c) {\n            _main.default._validateParameters('lightness', arguments);\n            return this.color(c)._getLightness();\n          };\n\n          /**\n           * Extracts the red value from a color or pixel array.\n           *\n           * @method red\n           * @param {p5.Color|Number[]|String} color <a href=\"#/p5.Color\">p5.Color</a> object, color components,\n           *                                         or CSS color\n           * @return {Number} the red value\n           * @example\n           * <div>\n           * <code>\n           * let c = color(255, 204, 0); // Define color 'c'\n           * fill(c); // Use color variable 'c' as fill color\n           * rect(15, 20, 35, 60); // Draw left rectangle\n           *\n           * let redValue = red(c); // Get red in 'c'\n           * print(redValue); // Print \"255.0\"\n           * fill(redValue, 0, 0); // Use 'redValue' in new fill\n           * rect(50, 20, 35, 60); // Draw right rectangle\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * colorMode(RGB, 255); // Sets the range for red, green, and blue to 255\n           * let c = color(127, 255, 0);\n           * colorMode(RGB, 1); // Sets the range for red, green, and blue to 1\n           * let myColor = red(c);\n           * print(myColor); // 0.4980392156862745\n           * </code>\n           * </div>\n           *\n           * @alt\n           * yellow rect on left and red rect on right, both with black outlines and 35x60.\n           * grey canvas\n           */\n          _main.default.prototype.red = function(c) {\n            _main.default._validateParameters('red', arguments);\n            return this.color(c)._getRed();\n          };\n\n          /**\n           * Extracts the saturation value from a color or pixel array.\n           *\n           * Saturation is scaled differently in HSB and HSL. This function will return\n           * the HSB saturation when supplied with an HSB color object (or when supplied\n           * with a pixel array while the color mode is HSB), but will default to the\n           * HSL saturation otherwise.\n           *\n           * @method saturation\n           * @param {p5.Color|Number[]|String} color <a href=\"#/p5.Color\">p5.Color</a> object, color components,\n           *                                         or CSS color\n           * @return {Number} the saturation value\n           * @example\n           * <div>\n           * <code>\n           * noStroke();\n           * colorMode(HSB, 255);\n           * let c = color(0, 126, 255);\n           * fill(c);\n           * rect(15, 20, 35, 60);\n           * let value = saturation(c); // Sets 'value' to 126\n           * fill(value);\n           * rect(50, 20, 35, 60);\n           * </code>\n           * </div>\n           *\n           * @alt\n           *deep pink rect on left and grey rect on right, both 35x60.\n           *\n           */\n\n          _main.default.prototype.saturation = function(c) {\n            _main.default._validateParameters('saturation', arguments);\n            return this.color(c)._getSaturation();\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        {\n          '../core/constants': 43,\n          '../core/error_helpers': 45,\n          '../core/main': 50,\n          './p5.Color': 41\n        }\n      ],\n      41: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          var _color_conversion = _interopRequireDefault(_dereq_('./color_conversion'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Color\n           * @submodule Creating & Reading\n           * @for p5\n           * @requires core\n           * @requires constants\n           * @requires color_conversion\n           */ /**\n           * Each color stores the color mode and level maxes that applied at the\n           * time of its construction. These are used to interpret the input arguments\n           * (at construction and later for that instance of color) and to format the\n           * output e.g. when <a href=\"#/p5/saturation\">saturation()</a> is requested.\n           *\n           * Internally we store an array representing the ideal RGBA values in floating\n           * point form, normalized from 0 to 1. From this we calculate the closest\n           * screen color (RGBA levels from 0 to 255) and expose this to the renderer.\n           *\n           * We also cache normalized, floating point components of the color in various\n           * representations as they are calculated. This is done to prevent repeating a\n           * conversion that has already been performed.\n           *\n           * @class p5.Color\n           * @constructor\n           */ _main.default.Color = function(pInst, vals) {\n            // Record color mode and maxes at time of construction.\n            this._storeModeAndMaxes(pInst._colorMode, pInst._colorMaxes); // Calculate normalized RGBA values.\n            if (\n              this.mode !== constants.RGB &&\n              this.mode !== constants.HSL &&\n              this.mode !== constants.HSB\n            ) {\n              throw new Error(''.concat(this.mode, ' is an invalid colorMode.'));\n            } else {\n              this._array = _main.default.Color._parseInputs.apply(this, vals);\n            }\n\n            // Expose closest screen color.\n            this._calculateLevels();\n            return this;\n          };\n\n          /**\n           * This function returns the color formatted as a string. This can be useful\n           * for debugging, or for using p5.js with other libraries.\n           * @method toString\n           * @param {String} [format] How the color string will be formatted.\n           * Leaving this empty formats the string as rgba(r, g, b, a).\n           * '#rgb' '#rgba' '#rrggbb' and '#rrggbbaa' format as hexadecimal color codes.\n           * 'rgb' 'hsb' and 'hsl' return the color formatted in the specified color mode.\n           * 'rgba' 'hsba' and 'hsla' are the same as above but with alpha channels.\n           * 'rgb%' 'hsb%' 'hsl%' 'rgba%' 'hsba%' and 'hsla%' format as percentages.\n           * @return {String} the formatted string\n           * @example\n           * <div>\n           * <code>\n           * let myColor;\n           * function setup() {\n           *   createCanvas(200, 200);\n           *   stroke(255);\n           *   myColor = color(100, 100, 250);\n           *   fill(myColor);\n           * }\n           *\n           * function draw() {\n           *   rotate(HALF_PI);\n           *   text(myColor.toString(), 0, -5);\n           *   text(myColor.toString('#rrggbb'), 0, -30);\n           *   text(myColor.toString('rgba%'), 0, -55);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * canvas with text representation of color\n           */\n          _main.default.Color.prototype.toString = function(format) {\n            var a = this.levels;\n            var f = this._array;\n            var alpha = f[3]; // String representation uses normalized alpha\n\n            switch (format) {\n              case '#rrggbb':\n                return '#'.concat(\n                  a[0] < 16 ? '0'.concat(a[0].toString(16)) : a[0].toString(16),\n                  a[1] < 16 ? '0'.concat(a[1].toString(16)) : a[1].toString(16),\n                  a[2] < 16 ? '0'.concat(a[2].toString(16)) : a[2].toString(16)\n                );\n\n              case '#rrggbbaa':\n                return '#'.concat(\n                  a[0] < 16 ? '0'.concat(a[0].toString(16)) : a[0].toString(16),\n                  a[1] < 16 ? '0'.concat(a[1].toString(16)) : a[1].toString(16),\n                  a[2] < 16 ? '0'.concat(a[2].toString(16)) : a[2].toString(16),\n                  a[3] < 16 ? '0'.concat(a[2].toString(16)) : a[3].toString(16)\n                );\n\n              case '#rgb':\n                return '#'.concat(\n                  Math.round(f[0] * 15).toString(16),\n                  Math.round(f[1] * 15).toString(16),\n                  Math.round(f[2] * 15).toString(16)\n                );\n\n              case '#rgba':\n                return '#'.concat(\n                  Math.round(f[0] * 15).toString(16),\n                  Math.round(f[1] * 15).toString(16),\n                  Math.round(f[2] * 15).toString(16),\n                  Math.round(f[3] * 15).toString(16)\n                );\n\n              case 'rgb':\n                return 'rgb('.concat(a[0], ', ', a[1], ', ', a[2], ')');\n\n              case 'rgb%':\n                return 'rgb('.concat(\n                  (100 * f[0]).toPrecision(3),\n                  '%, ',\n                  (100 * f[1]).toPrecision(3),\n                  '%, ',\n                  (100 * f[2]).toPrecision(3),\n                  '%)'\n                );\n\n              case 'rgba%':\n                return 'rgba('.concat(\n                  (100 * f[0]).toPrecision(3),\n                  '%, ',\n                  (100 * f[1]).toPrecision(3),\n                  '%, ',\n                  (100 * f[2]).toPrecision(3),\n                  '%, ',\n                  (100 * f[3]).toPrecision(3),\n                  '%)'\n                );\n\n              case 'hsb':\n              case 'hsv':\n                if (!this.hsba)\n                  this.hsba = _color_conversion.default._rgbaToHSBA(this._array);\n                return 'hsb('.concat(\n                  this.hsba[0] * this.maxes[constants.HSB][0],\n                  ', ',\n                  this.hsba[1] * this.maxes[constants.HSB][1],\n                  ', ',\n                  this.hsba[2] * this.maxes[constants.HSB][2],\n                  ')'\n                );\n\n              case 'hsb%':\n              case 'hsv%':\n                if (!this.hsba)\n                  this.hsba = _color_conversion.default._rgbaToHSBA(this._array);\n                return 'hsb('.concat(\n                  (100 * this.hsba[0]).toPrecision(3),\n                  '%, ',\n                  (100 * this.hsba[1]).toPrecision(3),\n                  '%, ',\n                  (100 * this.hsba[2]).toPrecision(3),\n                  '%)'\n                );\n\n              case 'hsba':\n              case 'hsva':\n                if (!this.hsba)\n                  this.hsba = _color_conversion.default._rgbaToHSBA(this._array);\n                return 'hsba('.concat(\n                  this.hsba[0] * this.maxes[constants.HSB][0],\n                  ', ',\n                  this.hsba[1] * this.maxes[constants.HSB][1],\n                  ', ',\n                  this.hsba[2] * this.maxes[constants.HSB][2],\n                  ', ',\n                  alpha,\n                  ')'\n                );\n\n              case 'hsba%':\n              case 'hsva%':\n                if (!this.hsba)\n                  this.hsba = _color_conversion.default._rgbaToHSBA(this._array);\n                return 'hsba('.concat(\n                  (100 * this.hsba[0]).toPrecision(3),\n                  '%, ',\n                  (100 * this.hsba[1]).toPrecision(3),\n                  '%, ',\n                  (100 * this.hsba[2]).toPrecision(3),\n                  '%, ',\n                  (100 * alpha).toPrecision(3),\n                  '%)'\n                );\n\n              case 'hsl':\n                if (!this.hsla)\n                  this.hsla = _color_conversion.default._rgbaToHSLA(this._array);\n                return 'hsl('.concat(\n                  this.hsla[0] * this.maxes[constants.HSL][0],\n                  ', ',\n                  this.hsla[1] * this.maxes[constants.HSL][1],\n                  ', ',\n                  this.hsla[2] * this.maxes[constants.HSL][2],\n                  ')'\n                );\n\n              case 'hsl%':\n                if (!this.hsla)\n                  this.hsla = _color_conversion.default._rgbaToHSLA(this._array);\n                return 'hsl('.concat(\n                  (100 * this.hsla[0]).toPrecision(3),\n                  '%, ',\n                  (100 * this.hsla[1]).toPrecision(3),\n                  '%, ',\n                  (100 * this.hsla[2]).toPrecision(3),\n                  '%)'\n                );\n\n              case 'hsla':\n                if (!this.hsla)\n                  this.hsla = _color_conversion.default._rgbaToHSLA(this._array);\n                return 'hsla('.concat(\n                  this.hsla[0] * this.maxes[constants.HSL][0],\n                  ', ',\n                  this.hsla[1] * this.maxes[constants.HSL][1],\n                  ', ',\n                  this.hsla[2] * this.maxes[constants.HSL][2],\n                  ', ',\n                  alpha,\n                  ')'\n                );\n\n              case 'hsla%':\n                if (!this.hsla)\n                  this.hsla = _color_conversion.default._rgbaToHSLA(this._array);\n                return 'hsl('.concat(\n                  (100 * this.hsla[0]).toPrecision(3),\n                  '%, ',\n                  (100 * this.hsla[1]).toPrecision(3),\n                  '%, ',\n                  (100 * this.hsla[2]).toPrecision(3),\n                  '%, ',\n                  (100 * alpha).toPrecision(3),\n                  '%)'\n                );\n\n              case 'rgba':\n              default:\n                return 'rgba('.concat(a[0], ',', a[1], ',', a[2], ',', alpha, ')');\n            }\n          };\n\n          /**\n           * The setRed function sets the red component of a color.\n           * The range depends on your color mode, in the default RGB mode it's between 0 and 255.\n           * @method setRed\n           * @param {Number} red the new red value\n           * @example\n           * <div>\n           * <code>\n           * let backgroundColor;\n           *\n           * function setup() {\n           *   backgroundColor = color(100, 50, 150);\n           * }\n           *\n           * function draw() {\n           *   backgroundColor.setRed(128 + 128 * sin(millis() / 1000));\n           *   background(backgroundColor);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * canvas with gradually changing background color\n           */\n          _main.default.Color.prototype.setRed = function(new_red) {\n            this._array[0] = new_red / this.maxes[constants.RGB][0];\n            this._calculateLevels();\n          };\n\n          /**\n           * The setGreen function sets the green component of a color.\n           * The range depends on your color mode, in the default RGB mode it's between 0 and 255.\n           * @method setGreen\n           * @param {Number} green the new green value\n           * @example\n           * <div>\n           * <code>\n           * let backgroundColor;\n           *\n           * function setup() {\n           *   backgroundColor = color(100, 50, 150);\n           * }\n           *\n           * function draw() {\n           *   backgroundColor.setGreen(128 + 128 * sin(millis() / 1000));\n           *   background(backgroundColor);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * canvas with gradually changing background color\n           **/\n          _main.default.Color.prototype.setGreen = function(new_green) {\n            this._array[1] = new_green / this.maxes[constants.RGB][1];\n            this._calculateLevels();\n          };\n\n          /**\n           * The setBlue function sets the blue component of a color.\n           * The range depends on your color mode, in the default RGB mode it's between 0 and 255.\n           * @method setBlue\n           * @param {Number} blue the new blue value\n           * @example\n           * <div>\n           * <code>\n           * let backgroundColor;\n           *\n           * function setup() {\n           *   backgroundColor = color(100, 50, 150);\n           * }\n           *\n           * function draw() {\n           *   backgroundColor.setBlue(128 + 128 * sin(millis() / 1000));\n           *   background(backgroundColor);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * canvas with gradually changing background color\n           **/\n          _main.default.Color.prototype.setBlue = function(new_blue) {\n            this._array[2] = new_blue / this.maxes[constants.RGB][2];\n            this._calculateLevels();\n          };\n\n          /**\n           * The setAlpha function sets the transparency (alpha) value of a color.\n           * The range depends on your color mode, in the default RGB mode it's between 0 and 255.\n           * @method setAlpha\n           * @param {Number} alpha the new alpha value\n           * @example\n           * <div>\n           * <code>\n           * let squareColor;\n           *\n           * function setup() {\n           *   ellipseMode(CORNERS);\n           *   strokeWeight(4);\n           *   squareColor = color(100, 50, 150);\n           * }\n           *\n           * function draw() {\n           *   background(255);\n           *\n           *   noFill();\n           *   stroke(0);\n           *   ellipse(10, 10, width - 10, height - 10);\n           *\n           *   squareColor.setAlpha(128 + 128 * sin(millis() / 1000));\n           *   fill(squareColor);\n           *   noStroke();\n           *   rect(13, 13, width - 26, height - 26);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * circle behind a square with gradually changing opacity\n           **/\n          _main.default.Color.prototype.setAlpha = function(new_alpha) {\n            this._array[3] = new_alpha / this.maxes[this.mode][3];\n            this._calculateLevels();\n          };\n\n          // calculates and stores the closest screen levels\n          _main.default.Color.prototype._calculateLevels = function() {\n            var array = this._array;\n            // (loop backwards for performance)\n            var levels = (this.levels = new Array(array.length));\n            for (var i = array.length - 1; i >= 0; --i) {\n              levels[i] = Math.round(array[i] * 255);\n            }\n          };\n\n          _main.default.Color.prototype._getAlpha = function() {\n            return this._array[3] * this.maxes[this.mode][3];\n          };\n\n          // stores the color mode and maxes in this instance of Color\n          // for later use (by _parseInputs())\n          _main.default.Color.prototype._storeModeAndMaxes = function(new_mode, new_maxes) {\n            this.mode = new_mode;\n            this.maxes = new_maxes;\n          };\n\n          _main.default.Color.prototype._getMode = function() {\n            return this.mode;\n          };\n\n          _main.default.Color.prototype._getMaxes = function() {\n            return this.maxes;\n          };\n\n          _main.default.Color.prototype._getBlue = function() {\n            return this._array[2] * this.maxes[constants.RGB][2];\n          };\n\n          _main.default.Color.prototype._getBrightness = function() {\n            if (!this.hsba) {\n              this.hsba = _color_conversion.default._rgbaToHSBA(this._array);\n            }\n            return this.hsba[2] * this.maxes[constants.HSB][2];\n          };\n\n          _main.default.Color.prototype._getGreen = function() {\n            return this._array[1] * this.maxes[constants.RGB][1];\n          };\n\n          /**\n           * Hue is the same in HSB and HSL, but the maximum value may be different.\n           * This function will return the HSB-normalized saturation when supplied with\n           * an HSB color object, but will default to the HSL-normalized saturation\n           * otherwise.\n           */\n          _main.default.Color.prototype._getHue = function() {\n            if (this.mode === constants.HSB) {\n              if (!this.hsba) {\n                this.hsba = _color_conversion.default._rgbaToHSBA(this._array);\n              }\n              return this.hsba[0] * this.maxes[constants.HSB][0];\n            } else {\n              if (!this.hsla) {\n                this.hsla = _color_conversion.default._rgbaToHSLA(this._array);\n              }\n              return this.hsla[0] * this.maxes[constants.HSL][0];\n            }\n          };\n\n          _main.default.Color.prototype._getLightness = function() {\n            if (!this.hsla) {\n              this.hsla = _color_conversion.default._rgbaToHSLA(this._array);\n            }\n            return this.hsla[2] * this.maxes[constants.HSL][2];\n          };\n\n          _main.default.Color.prototype._getRed = function() {\n            return this._array[0] * this.maxes[constants.RGB][0];\n          };\n\n          /**\n           * Saturation is scaled differently in HSB and HSL. This function will return\n           * the HSB saturation when supplied with an HSB color object, but will default\n           * to the HSL saturation otherwise.\n           */\n          _main.default.Color.prototype._getSaturation = function() {\n            if (this.mode === constants.HSB) {\n              if (!this.hsba) {\n                this.hsba = _color_conversion.default._rgbaToHSBA(this._array);\n              }\n              return this.hsba[1] * this.maxes[constants.HSB][1];\n            } else {\n              if (!this.hsla) {\n                this.hsla = _color_conversion.default._rgbaToHSLA(this._array);\n              }\n              return this.hsla[1] * this.maxes[constants.HSL][1];\n            }\n          };\n\n          /**\n           * CSS named colors.\n           */\n          var namedColors = {\n            aliceblue: '#f0f8ff',\n            antiquewhite: '#faebd7',\n            aqua: '#00ffff',\n            aquamarine: '#7fffd4',\n            azure: '#f0ffff',\n            beige: '#f5f5dc',\n            bisque: '#ffe4c4',\n            black: '#000000',\n            blanchedalmond: '#ffebcd',\n            blue: '#0000ff',\n            blueviolet: '#8a2be2',\n            brown: '#a52a2a',\n            burlywood: '#deb887',\n            cadetblue: '#5f9ea0',\n            chartreuse: '#7fff00',\n            chocolate: '#d2691e',\n            coral: '#ff7f50',\n            cornflowerblue: '#6495ed',\n            cornsilk: '#fff8dc',\n            crimson: '#dc143c',\n            cyan: '#00ffff',\n            darkblue: '#00008b',\n            darkcyan: '#008b8b',\n            darkgoldenrod: '#b8860b',\n            darkgray: '#a9a9a9',\n            darkgreen: '#006400',\n            darkgrey: '#a9a9a9',\n            darkkhaki: '#bdb76b',\n            darkmagenta: '#8b008b',\n            darkolivegreen: '#556b2f',\n            darkorange: '#ff8c00',\n            darkorchid: '#9932cc',\n            darkred: '#8b0000',\n            darksalmon: '#e9967a',\n            darkseagreen: '#8fbc8f',\n            darkslateblue: '#483d8b',\n            darkslategray: '#2f4f4f',\n            darkslategrey: '#2f4f4f',\n            darkturquoise: '#00ced1',\n            darkviolet: '#9400d3',\n            deeppink: '#ff1493',\n            deepskyblue: '#00bfff',\n            dimgray: '#696969',\n            dimgrey: '#696969',\n            dodgerblue: '#1e90ff',\n            firebrick: '#b22222',\n            floralwhite: '#fffaf0',\n            forestgreen: '#228b22',\n            fuchsia: '#ff00ff',\n            gainsboro: '#dcdcdc',\n            ghostwhite: '#f8f8ff',\n            gold: '#ffd700',\n            goldenrod: '#daa520',\n            gray: '#808080',\n            green: '#008000',\n            greenyellow: '#adff2f',\n            grey: '#808080',\n            honeydew: '#f0fff0',\n            hotpink: '#ff69b4',\n            indianred: '#cd5c5c',\n            indigo: '#4b0082',\n            ivory: '#fffff0',\n            khaki: '#f0e68c',\n            lavender: '#e6e6fa',\n            lavenderblush: '#fff0f5',\n            lawngreen: '#7cfc00',\n            lemonchiffon: '#fffacd',\n            lightblue: '#add8e6',\n            lightcoral: '#f08080',\n            lightcyan: '#e0ffff',\n            lightgoldenrodyellow: '#fafad2',\n            lightgray: '#d3d3d3',\n            lightgreen: '#90ee90',\n            lightgrey: '#d3d3d3',\n            lightpink: '#ffb6c1',\n            lightsalmon: '#ffa07a',\n            lightseagreen: '#20b2aa',\n            lightskyblue: '#87cefa',\n            lightslategray: '#778899',\n            lightslategrey: '#778899',\n            lightsteelblue: '#b0c4de',\n            lightyellow: '#ffffe0',\n            lime: '#00ff00',\n            limegreen: '#32cd32',\n            linen: '#faf0e6',\n            magenta: '#ff00ff',\n            maroon: '#800000',\n            mediumaquamarine: '#66cdaa',\n            mediumblue: '#0000cd',\n            mediumorchid: '#ba55d3',\n            mediumpurple: '#9370db',\n            mediumseagreen: '#3cb371',\n            mediumslateblue: '#7b68ee',\n            mediumspringgreen: '#00fa9a',\n            mediumturquoise: '#48d1cc',\n            mediumvioletred: '#c71585',\n            midnightblue: '#191970',\n            mintcream: '#f5fffa',\n            mistyrose: '#ffe4e1',\n            moccasin: '#ffe4b5',\n            navajowhite: '#ffdead',\n            navy: '#000080',\n            oldlace: '#fdf5e6',\n            olive: '#808000',\n            olivedrab: '#6b8e23',\n            orange: '#ffa500',\n            orangered: '#ff4500',\n            orchid: '#da70d6',\n            palegoldenrod: '#eee8aa',\n            palegreen: '#98fb98',\n            paleturquoise: '#afeeee',\n            palevioletred: '#db7093',\n            papayawhip: '#ffefd5',\n            peachpuff: '#ffdab9',\n            peru: '#cd853f',\n            pink: '#ffc0cb',\n            plum: '#dda0dd',\n            powderblue: '#b0e0e6',\n            purple: '#800080',\n            rebeccapurple: '#663399',\n            red: '#ff0000',\n            rosybrown: '#bc8f8f',\n            royalblue: '#4169e1',\n            saddlebrown: '#8b4513',\n            salmon: '#fa8072',\n            sandybrown: '#f4a460',\n            seagreen: '#2e8b57',\n            seashell: '#fff5ee',\n            sienna: '#a0522d',\n            silver: '#c0c0c0',\n            skyblue: '#87ceeb',\n            slateblue: '#6a5acd',\n            slategray: '#708090',\n            slategrey: '#708090',\n            snow: '#fffafa',\n            springgreen: '#00ff7f',\n            steelblue: '#4682b4',\n            tan: '#d2b48c',\n            teal: '#008080',\n            thistle: '#d8bfd8',\n            tomato: '#ff6347',\n            turquoise: '#40e0d0',\n            violet: '#ee82ee',\n            wheat: '#f5deb3',\n            white: '#ffffff',\n            whitesmoke: '#f5f5f5',\n            yellow: '#ffff00',\n            yellowgreen: '#9acd32'\n          };\n\n          /**\n           * These regular expressions are used to build up the patterns for matching\n           * viable CSS color strings: fragmenting the regexes in this way increases the\n           * legibility and comprehensibility of the code.\n           *\n           * Note that RGB values of .9 are not parsed by IE, but are supported here for\n           * color string consistency.\n           */\n          var WHITESPACE = /\\s*/; // Match zero or more whitespace characters.\n          var INTEGER = /(\\d{1,3})/; // Match integers: 79, 255, etc.\n          var DECIMAL = /((?:\\d+(?:\\.\\d+)?)|(?:\\.\\d+))/; // Match 129.6, 79, .9, etc.\n          var PERCENT = new RegExp(''.concat(DECIMAL.source, '%')); // Match 12.9%, 79%, .9%, etc.\n\n          /**\n           * Full color string patterns. The capture groups are necessary.\n           */\n          var colorPatterns = {\n            // Match colors in format #XXX, e.g. #416.\n            HEX3: /^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,\n\n            // Match colors in format #XXXX, e.g. #5123.\n            HEX4: /^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,\n\n            // Match colors in format #XXXXXX, e.g. #b4d455.\n            HEX6: /^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,\n\n            // Match colors in format #XXXXXXXX, e.g. #b4d45535.\n            HEX8: /^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,\n\n            // Match colors in format rgb(R, G, B), e.g. rgb(255, 0, 128).\n            RGB: new RegExp(\n              [\n                '^rgb\\\\(',\n                INTEGER.source,\n                ',',\n                INTEGER.source,\n                ',',\n                INTEGER.source,\n                '\\\\)$'\n              ].join(WHITESPACE.source),\n              'i'\n            ),\n\n            // Match colors in format rgb(R%, G%, B%), e.g. rgb(100%, 0%, 28.9%).\n            RGB_PERCENT: new RegExp(\n              [\n                '^rgb\\\\(',\n                PERCENT.source,\n                ',',\n                PERCENT.source,\n                ',',\n                PERCENT.source,\n                '\\\\)$'\n              ].join(WHITESPACE.source),\n              'i'\n            ),\n\n            // Match colors in format rgb(R, G, B, A), e.g. rgb(255, 0, 128, 0.25).\n            RGBA: new RegExp(\n              [\n                '^rgba\\\\(',\n                INTEGER.source,\n                ',',\n                INTEGER.source,\n                ',',\n                INTEGER.source,\n                ',',\n                DECIMAL.source,\n                '\\\\)$'\n              ].join(WHITESPACE.source),\n              'i'\n            ),\n\n            // Match colors in format rgb(R%, G%, B%, A), e.g. rgb(100%, 0%, 28.9%, 0.5).\n            RGBA_PERCENT: new RegExp(\n              [\n                '^rgba\\\\(',\n                PERCENT.source,\n                ',',\n                PERCENT.source,\n                ',',\n                PERCENT.source,\n                ',',\n                DECIMAL.source,\n                '\\\\)$'\n              ].join(WHITESPACE.source),\n              'i'\n            ),\n\n            // Match colors in format hsla(H, S%, L%), e.g. hsl(100, 40%, 28.9%).\n            HSL: new RegExp(\n              [\n                '^hsl\\\\(',\n                INTEGER.source,\n                ',',\n                PERCENT.source,\n                ',',\n                PERCENT.source,\n                '\\\\)$'\n              ].join(WHITESPACE.source),\n              'i'\n            ),\n\n            // Match colors in format hsla(H, S%, L%, A), e.g. hsla(100, 40%, 28.9%, 0.5).\n            HSLA: new RegExp(\n              [\n                '^hsla\\\\(',\n                INTEGER.source,\n                ',',\n                PERCENT.source,\n                ',',\n                PERCENT.source,\n                ',',\n                DECIMAL.source,\n                '\\\\)$'\n              ].join(WHITESPACE.source),\n              'i'\n            ),\n\n            // Match colors in format hsb(H, S%, B%), e.g. hsb(100, 40%, 28.9%).\n            HSB: new RegExp(\n              [\n                '^hsb\\\\(',\n                INTEGER.source,\n                ',',\n                PERCENT.source,\n                ',',\n                PERCENT.source,\n                '\\\\)$'\n              ].join(WHITESPACE.source),\n              'i'\n            ),\n\n            // Match colors in format hsba(H, S%, B%, A), e.g. hsba(100, 40%, 28.9%, 0.5).\n            HSBA: new RegExp(\n              [\n                '^hsba\\\\(',\n                INTEGER.source,\n                ',',\n                PERCENT.source,\n                ',',\n                PERCENT.source,\n                ',',\n                DECIMAL.source,\n                '\\\\)$'\n              ].join(WHITESPACE.source),\n              'i'\n            )\n          };\n\n          /**\n           * For a number of different inputs, returns a color formatted as [r, g, b, a]\n           * arrays, with each component normalized between 0 and 1.\n           *\n           * @private\n           * @param {Array} [...args] An 'array-like' object that represents a list of\n           *                          arguments\n           * @return {Number[]}       a color formatted as [r, g, b, a]\n           *                          Example:\n           *                          input        ==> output\n           *                          g            ==> [g, g, g, 255]\n           *                          g,a          ==> [g, g, g, a]\n           *                          r, g, b      ==> [r, g, b, 255]\n           *                          r, g, b, a   ==> [r, g, b, a]\n           *                          [g]          ==> [g, g, g, 255]\n           *                          [g, a]       ==> [g, g, g, a]\n           *                          [r, g, b]    ==> [r, g, b, 255]\n           *                          [r, g, b, a] ==> [r, g, b, a]\n           * @example\n           * <div>\n           * <code>\n           * // todo\n           * </code>\n           * </div>\n           *\n           * @alt\n           * //todo\n           *\n           */\n          _main.default.Color._parseInputs = function(r, g, b, a) {\n            var numArgs = arguments.length;\n            var mode = this.mode;\n            var maxes = this.maxes[mode];\n            var results = [];\n            var i;\n\n            if (numArgs >= 3) {\n              // Argument is a list of component values.\n\n              results[0] = r / maxes[0];\n              results[1] = g / maxes[1];\n              results[2] = b / maxes[2];\n\n              // Alpha may be undefined, so default it to 100%.\n              if (typeof a === 'number') {\n                results[3] = a / maxes[3];\n              } else {\n                results[3] = 1;\n              }\n\n              // Constrain components to the range [0,1].\n              // (loop backwards for performance)\n              for (i = results.length - 1; i >= 0; --i) {\n                var result = results[i];\n                if (result < 0) {\n                  results[i] = 0;\n                } else if (result > 1) {\n                  results[i] = 1;\n                }\n              }\n\n              // Convert to RGBA and return.\n              if (mode === constants.HSL) {\n                return _color_conversion.default._hslaToRGBA(results);\n              } else if (mode === constants.HSB) {\n                return _color_conversion.default._hsbaToRGBA(results);\n              } else {\n                return results;\n              }\n            } else if (numArgs === 1 && typeof r === 'string') {\n              var str = r.trim().toLowerCase();\n\n              // Return if string is a named colour.\n              if (namedColors[str]) {\n                return _main.default.Color._parseInputs.call(this, namedColors[str]);\n              }\n\n              // Try RGBA pattern matching.\n              if (colorPatterns.HEX3.test(str)) {\n                // #rgb\n                results = colorPatterns.HEX3.exec(str)\n                  .slice(1)\n                  .map(function(color) {\n                    return parseInt(color + color, 16) / 255;\n                  });\n                results[3] = 1;\n                return results;\n              } else if (colorPatterns.HEX6.test(str)) {\n                // #rrggbb\n                results = colorPatterns.HEX6.exec(str)\n                  .slice(1)\n                  .map(function(color) {\n                    return parseInt(color, 16) / 255;\n                  });\n                results[3] = 1;\n                return results;\n              } else if (colorPatterns.HEX4.test(str)) {\n                // #rgba\n                results = colorPatterns.HEX4.exec(str)\n                  .slice(1)\n                  .map(function(color) {\n                    return parseInt(color + color, 16) / 255;\n                  });\n                return results;\n              } else if (colorPatterns.HEX8.test(str)) {\n                // #rrggbbaa\n                results = colorPatterns.HEX8.exec(str)\n                  .slice(1)\n                  .map(function(color) {\n                    return parseInt(color, 16) / 255;\n                  });\n                return results;\n              } else if (colorPatterns.RGB.test(str)) {\n                // rgb(R,G,B)\n                results = colorPatterns.RGB.exec(str)\n                  .slice(1)\n                  .map(function(color) {\n                    return color / 255;\n                  });\n                results[3] = 1;\n                return results;\n              } else if (colorPatterns.RGB_PERCENT.test(str)) {\n                // rgb(R%,G%,B%)\n                results = colorPatterns.RGB_PERCENT.exec(str)\n                  .slice(1)\n                  .map(function(color) {\n                    return parseFloat(color) / 100;\n                  });\n                results[3] = 1;\n                return results;\n              } else if (colorPatterns.RGBA.test(str)) {\n                // rgba(R,G,B,A)\n                results = colorPatterns.RGBA.exec(str)\n                  .slice(1)\n                  .map(function(color, idx) {\n                    if (idx === 3) {\n                      return parseFloat(color);\n                    }\n                    return color / 255;\n                  });\n                return results;\n              } else if (colorPatterns.RGBA_PERCENT.test(str)) {\n                // rgba(R%,G%,B%,A%)\n                results = colorPatterns.RGBA_PERCENT.exec(str)\n                  .slice(1)\n                  .map(function(color, idx) {\n                    if (idx === 3) {\n                      return parseFloat(color);\n                    }\n                    return parseFloat(color) / 100;\n                  });\n                return results;\n              }\n\n              // Try HSLA pattern matching.\n              if (colorPatterns.HSL.test(str)) {\n                // hsl(H,S,L)\n                results = colorPatterns.HSL.exec(str)\n                  .slice(1)\n                  .map(function(color, idx) {\n                    if (idx === 0) {\n                      return parseInt(color, 10) / 360;\n                    }\n                    return parseInt(color, 10) / 100;\n                  });\n                results[3] = 1;\n              } else if (colorPatterns.HSLA.test(str)) {\n                // hsla(H,S,L,A)\n                results = colorPatterns.HSLA.exec(str)\n                  .slice(1)\n                  .map(function(color, idx) {\n                    if (idx === 0) {\n                      return parseInt(color, 10) / 360;\n                    } else if (idx === 3) {\n                      return parseFloat(color);\n                    }\n                    return parseInt(color, 10) / 100;\n                  });\n              }\n              results = results.map(function(value) {\n                return Math.max(Math.min(value, 1), 0);\n              });\n              if (results.length) {\n                return _color_conversion.default._hslaToRGBA(results);\n              }\n\n              // Try HSBA pattern matching.\n              if (colorPatterns.HSB.test(str)) {\n                // hsb(H,S,B)\n                results = colorPatterns.HSB.exec(str)\n                  .slice(1)\n                  .map(function(color, idx) {\n                    if (idx === 0) {\n                      return parseInt(color, 10) / 360;\n                    }\n                    return parseInt(color, 10) / 100;\n                  });\n                results[3] = 1;\n              } else if (colorPatterns.HSBA.test(str)) {\n                // hsba(H,S,B,A)\n                results = colorPatterns.HSBA.exec(str)\n                  .slice(1)\n                  .map(function(color, idx) {\n                    if (idx === 0) {\n                      return parseInt(color, 10) / 360;\n                    } else if (idx === 3) {\n                      return parseFloat(color);\n                    }\n                    return parseInt(color, 10) / 100;\n                  });\n              }\n\n              if (results.length) {\n                // (loop backwards for performance)\n                for (i = results.length - 1; i >= 0; --i) {\n                  results[i] = Math.max(Math.min(results[i], 1), 0);\n                }\n\n                return _color_conversion.default._hsbaToRGBA(results);\n              }\n\n              // Input did not match any CSS color pattern: default to white.\n              results = [1, 1, 1, 1];\n            } else if ((numArgs === 1 || numArgs === 2) && typeof r === 'number') {\n              // 'Grayscale' mode.\n\n              /**\n               * For HSB and HSL, interpret the gray level as a brightness/lightness\n               * value (they are equivalent when chroma is zero). For RGB, normalize the\n               * gray level according to the blue maximum.\n               */\n              results[0] = r / maxes[2];\n              results[1] = r / maxes[2];\n              results[2] = r / maxes[2];\n\n              // Alpha may be undefined, so default it to 100%.\n              if (typeof g === 'number') {\n                results[3] = g / maxes[3];\n              } else {\n                results[3] = 1;\n              }\n\n              // Constrain components to the range [0,1].\n              results = results.map(function(value) {\n                return Math.max(Math.min(value, 1), 0);\n              });\n            } else {\n              throw new Error(''.concat(arguments, 'is not a valid color representation.'));\n            }\n\n            return results;\n          };\n          var _default = _main.default.Color;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, '../core/main': 50, './color_conversion': 39 }\n      ],\n      42: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          _dereq_('./p5.Color');\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          } /**\n           * @method background\n           * @param {Number} gray   specifies a value between white and black\n           * @param {Number} [a]\n           * @chainable\n           */ /**\n           * @module Color\n           * @submodule Setting\n           * @for p5\n           * @requires core\n           * @requires constants\n           */ /**\n           * The <a href=\"#/p5/background\">background()</a> function sets the color used for the background of the\n           * p5.js canvas. The default background is transparent. This function is\n           * typically used within <a href=\"#/p5/draw\">draw()</a> to clear the display window at the beginning\n           * of each frame, but it can be used inside <a href=\"#/p5/setup\">setup()</a> to set the background on\n           * the first frame of animation or if the background need only be set once.\n           * <br><br>\n           * The color is either specified in terms of the RGB, HSB, or HSL color\n           * depending on the current <a href=\"#/p5/colorMode\">colorMode</a>. (The default color space is RGB, with\n           * each value in the range from 0 to 255). The alpha range by default is also 0 to 255.\n           * <br><br>\n           * If a single string argument is provided, RGB, RGBA and Hex CSS color strings\n           * and all named color strings are supported. In this case, an alpha number\n           * value as a second argument is not supported, the RGBA form should be used.\n           * <br><br>\n           * A <a href=\"#/p5.Color\">p5.Color</a> object can also be provided to set the background color.\n           * <br><br>\n           * A <a href=\"#/p5.Image\">p5.Image</a> can also be provided to set the background image.\n           *\n           * @method background\n           * @param {p5.Color} color     any value created by the <a href=\"#/p5/color\">color()</a> function\n           * @chainable\n           *\n           * @example\n           * <div>\n           * <code>\n           * // Grayscale integer value\n           * background(51);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // R, G & B integer values\n           * background(255, 204, 0);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // H, S & B integer values\n           * colorMode(HSB);\n           * background(255, 204, 100);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // Named SVG/CSS color string\n           * background('red');\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // three-digit hexadecimal RGB notation\n           * background('#fae');\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // six-digit hexadecimal RGB notation\n           * background('#222222');\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // integer RGB notation\n           * background('rgb(0,255,0)');\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // integer RGBA notation\n           * background('rgba(0,255,0, 0.25)');\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // percentage RGB notation\n           * background('rgb(100%,0%,10%)');\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // percentage RGBA notation\n           * background('rgba(100%,0%,100%,0.5)');\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // p5 Color object\n           * background(color(0, 0, 255));\n           * </code>\n           * </div>\n           *\n           * @alt\n           * canvas with darkest charcoal grey background.\n           * canvas with yellow background.\n           * canvas with royal blue background.\n           * canvas with red background.\n           * canvas with pink background.\n           * canvas with black background.\n           * canvas with bright green background.\n           * canvas with soft green background.\n           * canvas with red background.\n           * canvas with light purple background.\n           * canvas with blue background.\n           */ /**\n           * @method background\n           * @param {String} colorstring color string, possible formats include: integer\n           *                         rgb() or rgba(), percentage rgb() or rgba(),\n           *                         3-digit hex, 6-digit hex\n           * @param {Number} [a]         opacity of the background relative to current\n           *                             color range (default is 0-255)\n           * @chainable\n           */\n\n          /**\n           * @method background\n           * @param {Number} v1     red or hue value (depending on the current color\n           *                        mode)\n           * @param {Number} v2     green or saturation value (depending on the current\n           *                        color mode)\n           * @param {Number} v3     blue or brightness value (depending on the current\n           *                        color mode)\n           * @param  {Number} [a]\n           * @chainable\n           */\n\n          /**\n           * @method background\n           * @param  {Number[]}      values  an array containing the red, green, blue\n           *                                 and alpha components of the color\n           * @chainable\n           */\n\n          /**\n           * @method background\n           * @param {p5.Image} image     image created with <a href=\"#/p5/loadImage\">loadImage()</a> or <a href=\"#/p5/createImage\">createImage()</a>,\n           *                             to set as background\n           *                             (must be same size as the sketch window)\n           * @param  {Number}  [a]\n           * @chainable\n           */\n\n          _main.default.prototype.background = function() {\n            var _this$_renderer;\n            (_this$_renderer = this._renderer).background.apply(_this$_renderer, arguments);\n            return this;\n          };\n\n          /**\n           * Clears the pixels within a buffer. This function only clears the canvas.\n           * It will not clear objects created by createX() methods such as\n           * <a href=\"#/p5/createVideo\">createVideo()</a> or <a href=\"#/p5/createDiv\">createDiv()</a>.\n           * Unlike the main graphics context, pixels in additional graphics areas created\n           * with <a href=\"#/p5/createGraphics\">createGraphics()</a> can be entirely\n           * or partially transparent. This function clears everything to make all of\n           * the pixels 100% transparent.\n           *\n           * @method clear\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // Clear the screen on mouse press.\n           * function setup() {\n           *   createCanvas(100, 100);\n           * }\n           *\n           * function draw() {\n           *   ellipse(mouseX, mouseY, 20, 20);\n           * }\n           *\n           * function mousePressed() {\n           *   clear();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 20x20 white ellipses are continually drawn at mouse x and y coordinates.\n           *\n           */\n\n          _main.default.prototype.clear = function() {\n            this._renderer.clear();\n            return this;\n          };\n\n          /**\n           * <a href=\"#/p5/colorMode\">colorMode()</a> changes the way p5.js interprets color data. By default, the\n           * parameters for <a href=\"#/p5/fill\">fill()</a>, <a href=\"#/p5/stroke\">stroke()</a>, <a href=\"#/p5/background\">background()</a>, and <a href=\"#/p5/color\">color()</a> are defined by\n           * values between 0 and 255 using the RGB color model. This is equivalent to\n           * setting colorMode(RGB, 255). Setting colorMode(HSB) lets you use the HSB\n           * system instead. By default, this is colorMode(HSB, 360, 100, 100, 1). You\n           * can also use HSL.\n           * <br><br>\n           * Note: existing color objects remember the mode that they were created in,\n           * so you can change modes as you like without affecting their appearance.\n           *\n           *\n           * @method colorMode\n           * @param {Constant} mode   either RGB, HSB or HSL, corresponding to\n           *                          Red/Green/Blue and Hue/Saturation/Brightness\n           *                          (or Lightness)\n           * @param {Number}  [max]  range for all values\n           * @chainable\n           *\n           * @example\n           * <div>\n           * <code>\n           * noStroke();\n           * colorMode(RGB, 100);\n           * for (let i = 0; i < 100; i++) {\n           *   for (let j = 0; j < 100; j++) {\n           *     stroke(i, j, 0);\n           *     point(i, j);\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * noStroke();\n           * colorMode(HSB, 100);\n           * for (let i = 0; i < 100; i++) {\n           *   for (let j = 0; j < 100; j++) {\n           *     stroke(i, j, 100);\n           *     point(i, j);\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * colorMode(RGB, 255);\n           * let c = color(127, 255, 0);\n           *\n           * colorMode(RGB, 1);\n           * let myColor = c._getRed();\n           * text(myColor, 10, 10, 80, 80);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * noFill();\n           * colorMode(RGB, 255, 255, 255, 1);\n           * background(255);\n           *\n           * strokeWeight(4);\n           * stroke(255, 0, 10, 0.3);\n           * ellipse(40, 40, 50, 50);\n           * ellipse(50, 50, 40, 40);\n           * </code>\n           * </div>\n           *\n           * @alt\n           *Green to red gradient from bottom L to top R. shading originates from top left.\n           *Rainbow gradient from left to right. Brightness increasing to white at top.\n           *unknown image.\n           *50x50 ellipse at middle L & 40x40 ellipse at center. Translucent pink outlines.\n           *\n           */\n          /**\n           * @method colorMode\n           * @param {Constant} mode\n           * @param {Number} max1     range for the red or hue depending on the\n           *                              current color mode\n           * @param {Number} max2     range for the green or saturation depending\n           *                              on the current color mode\n           * @param {Number} max3     range for the blue or brightness/lightness\n           *                              depending on the current color mode\n           * @param {Number} [maxA]   range for the alpha\n           * @chainable\n           */\n          _main.default.prototype.colorMode = function(mode, max1, max2, max3, maxA) {\n            _main.default._validateParameters('colorMode', arguments);\n            if (\n              mode === constants.RGB ||\n              mode === constants.HSB ||\n              mode === constants.HSL\n            ) {\n              // Set color mode.\n              this._colorMode = mode;\n\n              // Set color maxes.\n              var maxes = this._colorMaxes[mode];\n              if (arguments.length === 2) {\n                maxes[0] = max1; // Red\n                maxes[1] = max1; // Green\n                maxes[2] = max1; // Blue\n                maxes[3] = max1; // Alpha\n              } else if (arguments.length === 4) {\n                maxes[0] = max1; // Red\n                maxes[1] = max2; // Green\n                maxes[2] = max3; // Blue\n              } else if (arguments.length === 5) {\n                maxes[0] = max1; // Red\n                maxes[1] = max2; // Green\n                maxes[2] = max3; // Blue\n                maxes[3] = maxA; // Alpha\n              }\n            }\n\n            return this;\n          };\n\n          /**\n           * Sets the color used to fill shapes. For example, if you run\n           * fill(204, 102, 0), all shapes drawn after the fill command will be filled with the color orange. This\n           * color is either specified in terms of the RGB or HSB color depending on\n           * the current <a href=\"#/p5/colorMode\">colorMode()</a>. (The default color space is RGB, with each value\n           * in the range from 0 to 255). The alpha range by default is also 0 to 255.\n           * <br><br>\n           * If a single string argument is provided, RGB, RGBA and Hex CSS color strings\n           * and all named color strings are supported. In this case, an alpha number\n           * value as a second argument is not supported, the RGBA form should be used.\n           * <br><br>\n           * A p5 <a href=\"#/p5.Color\">Color</a> object can also be provided to set the fill color.\n           *\n           * @method fill\n           * @param  {Number}        v1      red or hue value relative to\n           *                                 the current color range\n           * @param  {Number}        v2      green or saturation value\n           *                                 relative to the current color range\n           * @param  {Number}        v3      blue or brightness value\n           *                                 relative to the current color range\n           * @param  {Number}        [alpha]\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // Grayscale integer value\n           * fill(51);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // R, G & B integer values\n           * fill(255, 204, 0);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // H, S & B integer values\n           * colorMode(HSB);\n           * fill(255, 204, 100);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // Named SVG/CSS color string\n           * fill('red');\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // three-digit hexadecimal RGB notation\n           * fill('#fae');\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // six-digit hexadecimal RGB notation\n           * fill('#222222');\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // integer RGB notation\n           * fill('rgb(0,255,0)');\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // integer RGBA notation\n           * fill('rgba(0,255,0, 0.25)');\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // percentage RGB notation\n           * fill('rgb(100%,0%,10%)');\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // percentage RGBA notation\n           * fill('rgba(100%,0%,100%,0.5)');\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // p5 Color object\n           * fill(color(0, 0, 255));\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           * @alt\n           * 60x60 dark charcoal grey rect with black outline in center of canvas.\n           * 60x60 yellow rect with black outline in center of canvas.\n           * 60x60 royal blue rect with black outline in center of canvas.\n           * 60x60 red rect with black outline in center of canvas.\n           * 60x60 pink rect with black outline in center of canvas.\n           * 60x60 black rect with black outline in center of canvas.\n           * 60x60 light green rect with black outline in center of canvas.\n           * 60x60 soft green rect with black outline in center of canvas.\n           * 60x60 red rect with black outline in center of canvas.\n           * 60x60 dark fuchsia rect with black outline in center of canvas.\n           * 60x60 blue rect with black outline in center of canvas.\n           */\n\n          /**\n           * @method fill\n           * @param  {String}        value   a color string\n           * @chainable\n           */\n\n          /**\n           * @method fill\n           * @param  {Number}        gray   a gray value\n           * @param  {Number}        [alpha]\n           * @chainable\n           */\n\n          /**\n           * @method fill\n           * @param  {Number[]}      values  an array containing the red,green,blue &\n           *                                 and alpha components of the color\n           * @chainable\n           */\n\n          /**\n           * @method fill\n           * @param  {p5.Color}      color   the fill color\n           * @chainable\n           */\n          _main.default.prototype.fill = function() {\n            var _this$_renderer2;\n            this._renderer._setProperty('_fillSet', true);\n            this._renderer._setProperty('_doFill', true);\n            (_this$_renderer2 = this._renderer).fill.apply(_this$_renderer2, arguments);\n            return this;\n          };\n\n          /**\n           * Disables filling geometry. If both <a href=\"#/p5/noStroke\">noStroke()</a> and <a href=\"#/p5/noFill\">noFill()</a> are called,\n           * nothing will be drawn to the screen.\n           *\n           * @method noFill\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * rect(15, 10, 55, 55);\n           * noFill();\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div modernizr='webgl'>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(0);\n           *   noFill();\n           *   stroke(100, 100, 240);\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   box(45, 45, 45);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * white rect top middle and noFill rect center. Both 60x60 with black outlines.\n           * black canvas with purple cube wireframe spinning\n           */\n          _main.default.prototype.noFill = function() {\n            this._renderer._setProperty('_doFill', false);\n            return this;\n          };\n\n          /**\n           * Disables drawing the stroke (outline). If both <a href=\"#/p5/noStroke\">noStroke()</a> and <a href=\"#/p5/noFill\">noFill()</a>\n           * are called, nothing will be drawn to the screen.\n           *\n           * @method noStroke\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * noStroke();\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div modernizr='webgl'>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(0);\n           *   noStroke();\n           *   fill(240, 150, 150);\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   box(45, 45, 45);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 60x60 white rect at center. no outline.\n           * black canvas with pink cube spinning\n           */\n          _main.default.prototype.noStroke = function() {\n            this._renderer._setProperty('_doStroke', false);\n            return this;\n          };\n\n          /**\n           * Sets the color used to draw lines and borders around shapes. This color\n           * is either specified in terms of the RGB or HSB color depending on the\n           * current <a href=\"#/p5/colorMode\">colorMode()</a> (the default color space is RGB, with each value in\n           * the range from 0 to 255). The alpha range by default is also 0 to 255.\n           * <br><br>\n           * If a single string argument is provided, RGB, RGBA and Hex CSS color\n           * strings and all named color strings are supported. In this case, an alpha\n           * number value as a second argument is not supported, the RGBA form should be\n           * used.\n           * <br><br>\n           * A p5 <a href=\"#/p5.Color\">Color</a> object can also be provided to set the stroke color.\n           *\n           *\n           * @method stroke\n           * @param  {Number}        v1      red or hue value relative to\n           *                                 the current color range\n           * @param  {Number}        v2      green or saturation value\n           *                                 relative to the current color range\n           * @param  {Number}        v3      blue or brightness value\n           *                                 relative to the current color range\n           * @param  {Number}        [alpha]\n           * @chainable\n           *\n           * @example\n           * <div>\n           * <code>\n           * // Grayscale integer value\n           * strokeWeight(4);\n           * stroke(51);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // R, G & B integer values\n           * stroke(255, 204, 0);\n           * strokeWeight(4);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // H, S & B integer values\n           * colorMode(HSB);\n           * strokeWeight(4);\n           * stroke(255, 204, 100);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // Named SVG/CSS color string\n           * stroke('red');\n           * strokeWeight(4);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // three-digit hexadecimal RGB notation\n           * stroke('#fae');\n           * strokeWeight(4);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // six-digit hexadecimal RGB notation\n           * stroke('#222222');\n           * strokeWeight(4);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // integer RGB notation\n           * stroke('rgb(0,255,0)');\n           * strokeWeight(4);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // integer RGBA notation\n           * stroke('rgba(0,255,0,0.25)');\n           * strokeWeight(4);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // percentage RGB notation\n           * stroke('rgb(100%,0%,10%)');\n           * strokeWeight(4);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // percentage RGBA notation\n           * stroke('rgba(100%,0%,100%,0.5)');\n           * strokeWeight(4);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // p5 Color object\n           * stroke(color(0, 0, 255));\n           * strokeWeight(4);\n           * rect(20, 20, 60, 60);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 60x60 white rect at center. Dark charcoal grey outline.\n           * 60x60 white rect at center. Yellow outline.\n           * 60x60 white rect at center. Royal blue outline.\n           * 60x60 white rect at center. Red outline.\n           * 60x60 white rect at center. Pink outline.\n           * 60x60 white rect at center. Black outline.\n           * 60x60 white rect at center. Bright green outline.\n           * 60x60 white rect at center. Soft green outline.\n           * 60x60 white rect at center. Red outline.\n           * 60x60 white rect at center. Dark fuchsia outline.\n           * 60x60 white rect at center. Blue outline.\n           */\n\n          /**\n           * @method stroke\n           * @param  {String}        value   a color string\n           * @chainable\n           */\n\n          /**\n           * @method stroke\n           * @param  {Number}        gray   a gray value\n           * @param  {Number}        [alpha]\n           * @chainable\n           */\n\n          /**\n           * @method stroke\n           * @param  {Number[]}      values  an array containing the red,green,blue &\n           *                                 and alpha components of the color\n           * @chainable\n           */\n\n          /**\n           * @method stroke\n           * @param  {p5.Color}      color   the stroke color\n           * @chainable\n           */\n\n          _main.default.prototype.stroke = function() {\n            var _this$_renderer3;\n            this._renderer._setProperty('_strokeSet', true);\n            this._renderer._setProperty('_doStroke', true);\n            (_this$_renderer3 = this._renderer).stroke.apply(_this$_renderer3, arguments);\n            return this;\n          };\n\n          /**\n           * All drawing that follows <a href=\"#/p5/erase\">erase()</a> will subtract from the canvas.\n           * Erased areas will reveal the web page underneath the canvas.\n           * Erasing can be canceled with <a href=\"#/p5/noErase\">noErase()</a>.\n           * <br><br>\n           * Drawing done with <a href=\"#/p5/image\">image()</a>\n           * and <a href=\"#/p5/background\">background()</a> will not be affected by <a href=\"#/p5/erase\">erase()</a>\n           * <br><br>\n           *\n           * @method erase\n           * @param  {Number}   [strengthFill]      A number (0-255) for the strength of erasing for a shape's fill.\n           *                                        This will default to 255 when no argument is given, which\n           *                                        is full strength.\n           * @param  {Number}   [strengthStroke]    A number (0-255) for the strength of erasing for a shape's stroke.\n           *                                        This will default to 255 when no argument is given, which\n           *                                        is full strength.\n           *\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * background(100, 100, 250);\n           * fill(250, 100, 100);\n           * rect(20, 20, 60, 60);\n           * erase();\n           * ellipse(25, 30, 30);\n           * noErase();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * background(150, 250, 150);\n           * fill(100, 100, 250);\n           * rect(20, 20, 60, 60);\n           * strokeWeight(5);\n           * erase(150, 255);\n           * triangle(50, 10, 70, 50, 90, 10);\n           * noErase();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * function setup() {\n           *   smooth();\n           *   createCanvas(100, 100, WEBGL);\n           *   // Make a &lt;p&gt; element and put it behind the canvas\n           *   let p = createP('I am a dom element');\n           *   p.center();\n           *   p.style('font-size', '20px');\n           *   p.style('text-align', 'center');\n           *   p.style('z-index', '-9999');\n           * }\n           *\n           * function draw() {\n           *   background(250, 250, 150);\n           *   fill(15, 195, 185);\n           *   noStroke();\n           *   sphere(30);\n           *   erase();\n           *   rotateY(frameCount * 0.02);\n           *   translate(0, 0, 40);\n           *   torus(15, 5);\n           *   noErase();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 60x60 centered pink rect, purple background. Elliptical area in top-left of rect is erased white.\n           * 60x60 centered purple rect, mint green background. Triangle in top-right is partially erased with fully erased outline.\n           * 60x60 centered teal sphere, yellow background. Torus rotating around sphere erases to reveal black text underneath.\n           */\n          _main.default.prototype.erase = function() {\n            var opacityFill =\n              arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 255;\n            var opacityStroke =\n              arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 255;\n            this._renderer.erase(opacityFill, opacityStroke);\n\n            return this;\n          };\n\n          /**\n           * Ends erasing that was started with <a href=\"#/p5/erase\">erase()</a>.\n           * The <a href=\"#/p5/fill\">fill()</a>, <a href=\"#/p5/stroke\">stroke()</a>, and\n           * <a href=\"#/p5/blendMode\">blendMode()</a> settings will return to what they were\n           * prior to calling <a href=\"#/p5/erase\">erase()</a>.\n           *\n           * @method noErase\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * background(235, 145, 15);\n           * noStroke();\n           * fill(30, 45, 220);\n           * rect(30, 10, 10, 80);\n           * erase();\n           * ellipse(50, 50, 60);\n           * noErase();\n           * rect(70, 10, 10, 80);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Orange background, with two tall blue rectangles. A centered ellipse erased the first blue rect but not the second.\n           */\n\n          _main.default.prototype.noErase = function() {\n            this._renderer.noErase();\n            return this;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, '../core/main': 50, './p5.Color': 41 }\n      ],\n      43: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.FILL = exports.STROKE = exports.CURVE = exports.BEZIER = exports.QUADRATIC = exports.LINEAR = exports._CTX_MIDDLE = exports._DEFAULT_LEADMULT = exports._DEFAULT_TEXT_FILL = exports.BOLDITALIC = exports.BOLD = exports.ITALIC = exports.NORMAL = exports.BLUR = exports.ERODE = exports.DILATE = exports.POSTERIZE = exports.INVERT = exports.OPAQUE = exports.GRAY = exports.THRESHOLD = exports.BURN = exports.DODGE = exports.SOFT_LIGHT = exports.HARD_LIGHT = exports.OVERLAY = exports.REPLACE = exports.SCREEN = exports.MULTIPLY = exports.EXCLUSION = exports.SUBTRACT = exports.DIFFERENCE = exports.LIGHTEST = exports.DARKEST = exports.ADD = exports.REMOVE = exports.BLEND = exports.UP_ARROW = exports.TAB = exports.SHIFT = exports.RIGHT_ARROW = exports.RETURN = exports.OPTION = exports.LEFT_ARROW = exports.ESCAPE = exports.ENTER = exports.DOWN_ARROW = exports.DELETE = exports.CONTROL = exports.BACKSPACE = exports.ALT = exports.AUTO = exports.HSL = exports.HSB = exports.RGB = exports.MITER = exports.BEVEL = exports.ROUND = exports.SQUARE = exports.PROJECT = exports.PIE = exports.CHORD = exports.OPEN = exports.CLOSE = exports.TESS = exports.QUAD_STRIP = exports.QUADS = exports.TRIANGLE_STRIP = exports.TRIANGLE_FAN = exports.TRIANGLES = exports.LINE_LOOP = exports.LINE_STRIP = exports.LINES = exports.POINTS = exports.BASELINE = exports.BOTTOM = exports.TOP = exports.CENTER = exports.LEFT = exports.RIGHT = exports.RADIUS = exports.CORNERS = exports.CORNER = exports.RAD_TO_DEG = exports.DEG_TO_RAD = exports.RADIANS = exports.DEGREES = exports.TWO_PI = exports.TAU = exports.QUARTER_PI = exports.PI = exports.HALF_PI = exports.WAIT = exports.TEXT = exports.MOVE = exports.HAND = exports.CROSS = exports.ARROW = exports.WEBGL = exports.P2D = void 0;\n          exports.AXES = exports.GRID = exports._DEFAULT_FILL = exports._DEFAULT_STROKE = exports.PORTRAIT = exports.LANDSCAPE = exports.MIRROR = exports.CLAMP = exports.REPEAT = exports.NEAREST = exports.IMAGE = exports.IMMEDIATE = exports.TEXTURE = void 0; /**\n           * @module Constants\n           * @submodule Constants\n           * @for p5\n           */\n\n          var _PI = Math.PI;\n\n          // GRAPHICS RENDERER\n          /**\n           * The default, two-dimensional renderer.\n           * @property {String} P2D\n           * @final\n           */\n          var P2D = 'p2d';\n          /**\n           * One of the two render modes in p5.js: P2D (default renderer) and WEBGL\n           * Enables 3D render by introducing the third dimension: Z\n           * @property {String} WEBGL\n           * @final\n           */ exports.P2D = P2D;\n          var WEBGL = 'webgl';\n\n          // ENVIRONMENT\n          /**\n           * @property {String} ARROW\n           * @final\n           */ exports.WEBGL = WEBGL;\n          var ARROW = 'default';\n          /**\n           * @property {String} CROSS\n           * @final\n           */ exports.ARROW = ARROW;\n          var CROSS = 'crosshair';\n          /**\n           * @property {String} HAND\n           * @final\n           */ exports.CROSS = CROSS;\n          var HAND = 'pointer';\n          /**\n           * @property {String} MOVE\n           * @final\n           */ exports.HAND = HAND;\n          var MOVE = 'move';\n          /**\n           * @property {String} TEXT\n           * @final\n           */ exports.MOVE = MOVE;\n          var TEXT = 'text';\n          /**\n           * @property {String} WAIT\n           * @final\n           */ exports.TEXT = TEXT;\n          var WAIT = 'wait';\n\n          // TRIGONOMETRY\n\n          /**\n           * HALF_PI is a mathematical constant with the value\n           * 1.57079632679489661923. It is half the ratio of the\n           * circumference of a circle to its diameter. It is useful in\n           * combination with the trigonometric functions <a href=\"#/p5/sin\">sin()</a> and <a href=\"#/p5/cos\">cos()</a>.\n           *\n           * @property {Number} HALF_PI\n           * @final\n           *\n           * @example\n           * <div><code>\n           * arc(50, 50, 80, 80, 0, HALF_PI);\n           * </code></div>\n           *\n           * @alt\n           * 80x80 white quarter-circle with curve toward bottom right of canvas.\n           *\n           */ exports.WAIT = WAIT;\n          var HALF_PI = _PI / 2;\n          /**\n           * PI is a mathematical constant with the value\n           * 3.14159265358979323846. It is the ratio of the circumference\n           * of a circle to its diameter. It is useful in combination with\n           * the trigonometric functions <a href=\"#/p5/sin\">sin()</a> and <a href=\"#/p5/cos\">cos()</a>.\n           *\n           * @property {Number} PI\n           * @final\n           *\n           * @example\n           * <div><code>\n           * arc(50, 50, 80, 80, 0, PI);\n           * </code></div>\n           *\n           * @alt\n           * white half-circle with curve toward bottom of canvas.\n           *\n           */ exports.HALF_PI = HALF_PI;\n          var PI = _PI;\n          /**\n           * QUARTER_PI is a mathematical constant with the value 0.7853982.\n           * It is one quarter the ratio of the circumference of a circle to\n           * its diameter. It is useful in combination with the trigonometric\n           * functions <a href=\"#/p5/sin\">sin()</a> and <a href=\"#/p5/cos\">cos()</a>.\n           *\n           * @property {Number} QUARTER_PI\n           * @final\n           *\n           * @example\n           * <div><code>\n           * arc(50, 50, 80, 80, 0, QUARTER_PI);\n           * </code></div>\n           *\n           * @alt\n           * white eighth-circle rotated about 40 degrees with curve bottom right canvas.\n           *\n           */ exports.PI = PI;\n          var QUARTER_PI = _PI / 4;\n          /**\n           * TAU is an alias for TWO_PI, a mathematical constant with the\n           * value 6.28318530717958647693. It is twice the ratio of the\n           * circumference of a circle to its diameter. It is useful in\n           * combination with the trigonometric functions <a href=\"#/p5/sin\">sin()</a> and <a href=\"#/p5/cos\">cos()</a>.\n           *\n           * @property {Number} TAU\n           * @final\n           *\n           * @example\n           * <div><code>\n           * arc(50, 50, 80, 80, 0, TAU);\n           * </code></div>\n           *\n           * @alt\n           * 80x80 white ellipse shape in center of canvas.\n           *\n           */ exports.QUARTER_PI = QUARTER_PI;\n          var TAU = _PI * 2;\n          /**\n           * TWO_PI is a mathematical constant with the value\n           * 6.28318530717958647693. It is twice the ratio of the\n           * circumference of a circle to its diameter. It is useful in\n           * combination with the trigonometric functions <a href=\"#/p5/sin\">sin()</a> and <a href=\"#/p5/cos\">cos()</a>.\n           *\n           * @property {Number} TWO_PI\n           * @final\n           *\n           * @example\n           * <div><code>\n           * arc(50, 50, 80, 80, 0, TWO_PI);\n           * </code></div>\n           *\n           * @alt\n           * 80x80 white ellipse shape in center of canvas.\n           *\n           */ exports.TAU = TAU;\n          var TWO_PI = _PI * 2;\n          /**\n           * Constant to be used with <a href=\"#/p5/angleMode\">angleMode()</a> function, to set the mode which\n           * p5.js interprates and calculates angles (either DEGREES or RADIANS).\n           * @property {String} DEGREES\n           * @final\n           *\n           * @example\n           * <div class='norender'><code>\n           * function setup() {\n           *   angleMode(DEGREES);\n           * }\n           * </code></div>\n           */ exports.TWO_PI = TWO_PI;\n          var DEGREES = 'degrees';\n          /**\n           * Constant to be used with <a href=\"#/p5/angleMode\">angleMode()</a> function, to set the mode which\n           * p5.js interprates and calculates angles (either RADIANS or DEGREES).\n           * @property {String} RADIANS\n           * @final\n           *\n           * @example\n           * <div class='norender'><code>\n           * function setup() {\n           *   angleMode(RADIANS);\n           * }\n           * </code></div>\n           */ exports.DEGREES = DEGREES;\n          var RADIANS = 'radians';\n          exports.RADIANS = RADIANS;\n          var DEG_TO_RAD = _PI / 180.0;\n          exports.DEG_TO_RAD = DEG_TO_RAD;\n          var RAD_TO_DEG = 180.0 / _PI;\n\n          // SHAPE\n          /**\n           * @property {String} CORNER\n           * @final\n           */ exports.RAD_TO_DEG = RAD_TO_DEG;\n          var CORNER = 'corner';\n          /**\n           * @property {String} CORNERS\n           * @final\n           */ exports.CORNER = CORNER;\n          var CORNERS = 'corners';\n          /**\n           * @property {String} RADIUS\n           * @final\n           */ exports.CORNERS = CORNERS;\n          var RADIUS = 'radius';\n          /**\n           * @property {String} RIGHT\n           * @final\n           */ exports.RADIUS = RADIUS;\n          var RIGHT = 'right';\n          /**\n           * @property {String} LEFT\n           * @final\n           */ exports.RIGHT = RIGHT;\n          var LEFT = 'left';\n          /**\n           * @property {String} CENTER\n           * @final\n           */ exports.LEFT = LEFT;\n          var CENTER = 'center';\n          /**\n           * @property {String} TOP\n           * @final\n           */ exports.CENTER = CENTER;\n          var TOP = 'top';\n          /**\n           * @property {String} BOTTOM\n           * @final\n           */ exports.TOP = TOP;\n          var BOTTOM = 'bottom';\n          /**\n           * @property {String} BASELINE\n           * @final\n           * @default alphabetic\n           */ exports.BOTTOM = BOTTOM;\n          var BASELINE = 'alphabetic';\n          /**\n           * @property {Number} POINTS\n           * @final\n           * @default 0x0000\n           */ exports.BASELINE = BASELINE;\n          var POINTS = 0x0000;\n          /**\n           * @property {Number} LINES\n           * @final\n           * @default 0x0001\n           */ exports.POINTS = POINTS;\n          var LINES = 0x0001;\n          /**\n           * @property {Number} LINE_STRIP\n           * @final\n           * @default 0x0003\n           */ exports.LINES = LINES;\n          var LINE_STRIP = 0x0003;\n          /**\n           * @property {Number} LINE_LOOP\n           * @final\n           * @default 0x0002\n           */ exports.LINE_STRIP = LINE_STRIP;\n          var LINE_LOOP = 0x0002;\n          /**\n           * @property {Number} TRIANGLES\n           * @final\n           * @default 0x0004\n           */ exports.LINE_LOOP = LINE_LOOP;\n          var TRIANGLES = 0x0004;\n          /**\n           * @property {Number} TRIANGLE_FAN\n           * @final\n           * @default 0x0006\n           */ exports.TRIANGLES = TRIANGLES;\n          var TRIANGLE_FAN = 0x0006;\n          /**\n           * @property {Number} TRIANGLE_STRIP\n           * @final\n           * @default 0x0005\n           */ exports.TRIANGLE_FAN = TRIANGLE_FAN;\n          var TRIANGLE_STRIP = 0x0005;\n          /**\n           * @property {String} QUADS\n           * @final\n           */ exports.TRIANGLE_STRIP = TRIANGLE_STRIP;\n          var QUADS = 'quads';\n          /**\n           * @property {String} QUAD_STRIP\n           * @final\n           * @default quad_strip\n           */ exports.QUADS = QUADS;\n          var QUAD_STRIP = 'quad_strip';\n          /**\n           * @property {String} TESS\n           * @final\n           * @default tess\n           */ exports.QUAD_STRIP = QUAD_STRIP;\n          var TESS = 'tess';\n          /**\n           * @property {String} CLOSE\n           * @final\n           */ exports.TESS = TESS;\n          var CLOSE = 'close';\n          /**\n           * @property {String} OPEN\n           * @final\n           */ exports.CLOSE = CLOSE;\n          var OPEN = 'open';\n          /**\n           * @property {String} CHORD\n           * @final\n           */ exports.OPEN = OPEN;\n          var CHORD = 'chord';\n          /**\n           * @property {String} PIE\n           * @final\n           */ exports.CHORD = CHORD;\n          var PIE = 'pie';\n          /**\n           * @property {String} PROJECT\n           * @final\n           * @default square\n           */ exports.PIE = PIE;\n          var PROJECT = 'square'; // PEND: careful this is counterintuitive\n          /**\n           * @property {String} SQUARE\n           * @final\n           * @default butt\n           */ exports.PROJECT = PROJECT;\n          var SQUARE = 'butt';\n          /**\n           * @property {String} ROUND\n           * @final\n           */ exports.SQUARE = SQUARE;\n          var ROUND = 'round';\n          /**\n           * @property {String} BEVEL\n           * @final\n           */ exports.ROUND = ROUND;\n          var BEVEL = 'bevel';\n          /**\n           * @property {String} MITER\n           * @final\n           */ exports.BEVEL = BEVEL;\n          var MITER = 'miter';\n\n          // COLOR\n          /**\n           * @property {String} RGB\n           * @final\n           */ exports.MITER = MITER;\n          var RGB = 'rgb';\n          /**\n           * @property {String} HSB\n           * @final\n           */ exports.RGB = RGB;\n          var HSB = 'hsb';\n          /**\n           * @property {String} HSL\n           * @final\n           */ exports.HSB = HSB;\n          var HSL = 'hsl';\n\n          // DOM EXTENSION\n          /**\n           * AUTO allows us to automatically set the width or height of an element (but not both),\n           * based on the current height and width of the element. Only one parameter can\n           * be passed to the <a href=\"/#/p5.Element/size\">size</a> function as AUTO, at a time.\n           *\n           * @property {String} AUTO\n           * @final\n           */ exports.HSL = HSL;\n          var AUTO = 'auto';\n\n          /**\n           * @property {Number} ALT\n           * @final\n           */\n          // INPUT\n          exports.AUTO = AUTO;\n          var ALT = 18;\n          /**\n           * @property {Number} BACKSPACE\n           * @final\n           */ exports.ALT = ALT;\n          var BACKSPACE = 8;\n          /**\n           * @property {Number} CONTROL\n           * @final\n           */ exports.BACKSPACE = BACKSPACE;\n          var CONTROL = 17;\n          /**\n           * @property {Number} DELETE\n           * @final\n           */ exports.CONTROL = CONTROL;\n          var DELETE = 46;\n          /**\n           * @property {Number} DOWN_ARROW\n           * @final\n           */ exports.DELETE = DELETE;\n          var DOWN_ARROW = 40;\n          /**\n           * @property {Number} ENTER\n           * @final\n           */ exports.DOWN_ARROW = DOWN_ARROW;\n          var ENTER = 13;\n          /**\n           * @property {Number} ESCAPE\n           * @final\n           */ exports.ENTER = ENTER;\n          var ESCAPE = 27;\n          /**\n           * @property {Number} LEFT_ARROW\n           * @final\n           */ exports.ESCAPE = ESCAPE;\n          var LEFT_ARROW = 37;\n          /**\n           * @property {Number} OPTION\n           * @final\n           */ exports.LEFT_ARROW = LEFT_ARROW;\n          var OPTION = 18;\n          /**\n           * @property {Number} RETURN\n           * @final\n           */ exports.OPTION = OPTION;\n          var RETURN = 13;\n          /**\n           * @property {Number} RIGHT_ARROW\n           * @final\n           */ exports.RETURN = RETURN;\n          var RIGHT_ARROW = 39;\n          /**\n           * @property {Number} SHIFT\n           * @final\n           */ exports.RIGHT_ARROW = RIGHT_ARROW;\n          var SHIFT = 16;\n          /**\n           * @property {Number} TAB\n           * @final\n           */ exports.SHIFT = SHIFT;\n          var TAB = 9;\n          /**\n           * @property {Number} UP_ARROW\n           * @final\n           */ exports.TAB = TAB;\n          var UP_ARROW = 38;\n\n          // RENDERING\n          /**\n           * @property {String} BLEND\n           * @final\n           * @default source-over\n           */ exports.UP_ARROW = UP_ARROW;\n          var BLEND = 'source-over';\n          /**\n           * @property {String} REMOVE\n           * @final\n           * @default destination-out\n           */ exports.BLEND = BLEND;\n          var REMOVE = 'destination-out';\n          /**\n           * @property {String} ADD\n           * @final\n           * @default lighter\n           */ exports.REMOVE = REMOVE;\n          var ADD = 'lighter';\n          //ADD: 'add', //\n          //SUBTRACT: 'subtract', //\n          /**\n           * @property {String} DARKEST\n           * @final\n           */ exports.ADD = ADD;\n          var DARKEST = 'darken';\n          /**\n           * @property {String} LIGHTEST\n           * @final\n           * @default lighten\n           */ exports.DARKEST = DARKEST;\n          var LIGHTEST = 'lighten';\n          /**\n           * @property {String} DIFFERENCE\n           * @final\n           */ exports.LIGHTEST = LIGHTEST;\n          var DIFFERENCE = 'difference';\n          /**\n           * @property {String} SUBTRACT\n           * @final\n           */ exports.DIFFERENCE = DIFFERENCE;\n          var SUBTRACT = 'subtract';\n          /**\n           * @property {String} EXCLUSION\n           * @final\n           */ exports.SUBTRACT = SUBTRACT;\n          var EXCLUSION = 'exclusion';\n          /**\n           * @property {String} MULTIPLY\n           * @final\n           */ exports.EXCLUSION = EXCLUSION;\n          var MULTIPLY = 'multiply';\n          /**\n           * @property {String} SCREEN\n           * @final\n           */ exports.MULTIPLY = MULTIPLY;\n          var SCREEN = 'screen';\n          /**\n           * @property {String} REPLACE\n           * @final\n           * @default copy\n           */ exports.SCREEN = SCREEN;\n          var REPLACE = 'copy';\n          /**\n           * @property {String} OVERLAY\n           * @final\n           */ exports.REPLACE = REPLACE;\n          var OVERLAY = 'overlay';\n          /**\n           * @property {String} HARD_LIGHT\n           * @final\n           */ exports.OVERLAY = OVERLAY;\n          var HARD_LIGHT = 'hard-light';\n          /**\n           * @property {String} SOFT_LIGHT\n           * @final\n           */ exports.HARD_LIGHT = HARD_LIGHT;\n          var SOFT_LIGHT = 'soft-light';\n          /**\n           * @property {String} DODGE\n           * @final\n           * @default color-dodge\n           */ exports.SOFT_LIGHT = SOFT_LIGHT;\n          var DODGE = 'color-dodge';\n          /**\n           * @property {String} BURN\n           * @final\n           * @default color-burn\n           */ exports.DODGE = DODGE;\n          var BURN = 'color-burn';\n\n          // FILTERS\n          /**\n           * @property {String} THRESHOLD\n           * @final\n           */ exports.BURN = BURN;\n          var THRESHOLD = 'threshold';\n          /**\n           * @property {String} GRAY\n           * @final\n           */ exports.THRESHOLD = THRESHOLD;\n          var GRAY = 'gray';\n          /**\n           * @property {String} OPAQUE\n           * @final\n           */ exports.GRAY = GRAY;\n          var OPAQUE = 'opaque';\n          /**\n           * @property {String} INVERT\n           * @final\n           */ exports.OPAQUE = OPAQUE;\n          var INVERT = 'invert';\n          /**\n           * @property {String} POSTERIZE\n           * @final\n           */ exports.INVERT = INVERT;\n          var POSTERIZE = 'posterize';\n          /**\n           * @property {String} DILATE\n           * @final\n           */ exports.POSTERIZE = POSTERIZE;\n          var DILATE = 'dilate';\n          /**\n           * @property {String} ERODE\n           * @final\n           */ exports.DILATE = DILATE;\n          var ERODE = 'erode';\n          /**\n           * @property {String} BLUR\n           * @final\n           */ exports.ERODE = ERODE;\n          var BLUR = 'blur';\n\n          // TYPOGRAPHY\n          /**\n           * @property {String} NORMAL\n           * @final\n           */ exports.BLUR = BLUR;\n          var NORMAL = 'normal';\n          /**\n           * @property {String} ITALIC\n           * @final\n           */ exports.NORMAL = NORMAL;\n          var ITALIC = 'italic';\n          /**\n           * @property {String} BOLD\n           * @final\n           */ exports.ITALIC = ITALIC;\n          var BOLD = 'bold';\n          /**\n           * @property {String} BOLDITALIC\n           * @final\n           */ exports.BOLD = BOLD;\n          var BOLDITALIC = 'bold italic';\n\n          // TYPOGRAPHY-INTERNAL\n          exports.BOLDITALIC = BOLDITALIC;\n          var _DEFAULT_TEXT_FILL = '#000000';\n          exports._DEFAULT_TEXT_FILL = _DEFAULT_TEXT_FILL;\n          var _DEFAULT_LEADMULT = 1.25;\n          exports._DEFAULT_LEADMULT = _DEFAULT_LEADMULT;\n          var _CTX_MIDDLE = 'middle';\n\n          // VERTICES\n          /**\n           * @property {String} LINEAR\n           * @final\n           */ exports._CTX_MIDDLE = _CTX_MIDDLE;\n          var LINEAR = 'linear';\n          /**\n           * @property {String} QUADRATIC\n           * @final\n           */ exports.LINEAR = LINEAR;\n          var QUADRATIC = 'quadratic';\n          /**\n           * @property {String} BEZIER\n           * @final\n           */ exports.QUADRATIC = QUADRATIC;\n          var BEZIER = 'bezier';\n          /**\n           * @property {String} CURVE\n           * @final\n           */ exports.BEZIER = BEZIER;\n          var CURVE = 'curve';\n\n          // WEBGL DRAWMODES\n          /**\n           * @property {String} STROKE\n           * @final\n           */ exports.CURVE = CURVE;\n          var STROKE = 'stroke';\n          /**\n           * @property {String} FILL\n           * @final\n           */ exports.STROKE = STROKE;\n          var FILL = 'fill';\n          /**\n           * @property {String} TEXTURE\n           * @final\n           */ exports.FILL = FILL;\n          var TEXTURE = 'texture';\n          /**\n           * @property {String} IMMEDIATE\n           * @final\n           */ exports.TEXTURE = TEXTURE;\n          var IMMEDIATE = 'immediate';\n\n          // WEBGL TEXTURE MODE\n          // NORMAL already exists for typography\n          /**\n           * @property {String} IMAGE\n           * @final\n           */ exports.IMMEDIATE = IMMEDIATE;\n          var IMAGE = 'image';\n\n          // WEBGL TEXTURE WRAP AND FILTERING\n          // LINEAR already exists above\n          /**\n           * @property {String} NEAREST\n           * @final\n           */ exports.IMAGE = IMAGE;\n          var NEAREST = 'nearest';\n          /**\n           * @property {String} REPEAT\n           * @final\n           */ exports.NEAREST = NEAREST;\n          var REPEAT = 'repeat';\n          /**\n           * @property {String} CLAMP\n           * @final\n           */ exports.REPEAT = REPEAT;\n          var CLAMP = 'clamp';\n          /**\n           * @property {String} MIRROR\n           * @final\n           */ exports.CLAMP = CLAMP;\n          var MIRROR = 'mirror';\n\n          // DEVICE-ORIENTATION\n          /**\n           * @property {String} LANDSCAPE\n           * @final\n           */ exports.MIRROR = MIRROR;\n          var LANDSCAPE = 'landscape';\n          /**\n           * @property {String} PORTRAIT\n           * @final\n           */ exports.LANDSCAPE = LANDSCAPE;\n          var PORTRAIT = 'portrait';\n\n          // DEFAULTS\n          exports.PORTRAIT = PORTRAIT;\n          var _DEFAULT_STROKE = '#000000';\n          exports._DEFAULT_STROKE = _DEFAULT_STROKE;\n          var _DEFAULT_FILL = '#FFFFFF';\n\n          /**\n           * @property {String} GRID\n           * @final\n           */ exports._DEFAULT_FILL = _DEFAULT_FILL;\n          var GRID = 'grid';\n\n          /**\n           * @property {String} AXES\n           * @final\n           */ exports.GRID = GRID;\n          var AXES = 'axes';\n          exports.AXES = AXES;\n        },\n        {}\n      ],\n      44: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('./main'));\n          var C = _interopRequireWildcard(_dereq_('./constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Environment\n           * @submodule Environment\n           * @for p5\n           * @requires core\n           * @requires constants\n           */ var standardCursors = [C.ARROW, C.CROSS, C.HAND, C.MOVE, C.TEXT, C.WAIT];\n          _main.default.prototype._frameRate = 0;\n          _main.default.prototype._lastFrameTime = window.performance.now();\n          _main.default.prototype._targetFrameRate = 60;\n\n          var _windowPrint = window.print;\n\n          /**\n           * The <a href=\"#/p5/print\">print()</a> function writes to the console area of your browser.\n           * This function is often helpful for looking at the data a program is\n           * producing. This function creates a new line of text for each call to\n           * the function. Individual elements can be\n           * separated with quotes (\"\") and joined with the addition operator (+).\n           *\n           * Note that calling print() without any arguments invokes the window.print()\n           * function which opens the browser's print dialog. To print a blank line\n           * to console you can write print('\\n').\n           *\n           * @method print\n           * @param {Any} contents any combination of Number, String, Object, Boolean,\n           *                       Array to print\n           * @example\n           * <div><code class='norender'>\n           * let x = 10;\n           * print('The value of x is ' + x);\n           * // prints \"The value of x is 10\"\n           * </code></div>\n           * @alt\n           * default grey canvas\n           */\n          _main.default.prototype.print = function() {\n            if (!arguments.length) {\n              _windowPrint();\n            } else {\n              var _console;\n              (_console = console).log.apply(_console, arguments);\n            }\n          };\n\n          /**\n    * The system variable <a href=\"#/p5/frameCount\">frameCount</a> contains the number of frames that have\n    * been displayed since the program started. Inside <a href=\"#/p5/setup\">setup()</a> the value is 0,\n    * after the first iteration of draw it is 1, etc.\n    *\n    * @property {Integer} frameCount\n    * @readOnly\n    * @example\n    *   <div><code>\n    * function setup() {\n    *   frameRate(30);\n    *   textSize(30);\n    *   textAlign(CENTER);\n    * }\n    *\n    * function draw() {\n    *   background(200);\n    *   text(frameCount, width / 2, height / 2);\n    * }\n   </code></div>\n    *\n    * @alt\n    * numbers rapidly counting upward with frame count set to 30.\n    *\n    */\n          _main.default.prototype.frameCount = 0;\n\n          /**\n           * The system variable <a href=\"#/p5/deltaTime\">deltaTime</a> contains the time\n           * difference between the beginning of the previous frame and the beginning\n           * of the current frame in milliseconds.\n           * <br><br>\n           * This variable is useful for creating time sensitive animation or physics\n           * calculation that should stay constant regardless of frame rate.\n           *\n           * @property {Integer} deltaTime\n           * @readOnly\n           * @example\n           * <div><code>\n           * let rectX = 0;\n           * let fr = 30; //starting FPS\n           * let clr;\n           *\n           * function setup() {\n           *   background(200);\n           *   frameRate(fr); // Attempt to refresh at starting FPS\n           *   clr = color(255, 0, 0);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   rectX = rectX + 1 * (deltaTime / 50); // Move Rectangle in relation to deltaTime\n           *\n           *   if (rectX >= width) {\n           *     // If you go off screen.\n           *     if (fr === 30) {\n           *       clr = color(0, 0, 255);\n           *       fr = 10;\n           *       frameRate(fr); // make frameRate 10 FPS\n           *     } else {\n           *       clr = color(255, 0, 0);\n           *       fr = 30;\n           *       frameRate(fr); // make frameRate 30 FPS\n           *     }\n           *     rectX = 0;\n           *   }\n           *   fill(clr);\n           *   rect(rectX, 40, 20, 20);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * red rect moves left to right, followed by blue rect moving at the same speed\n           * with a lower frame rate. Loops.\n           *\n           */\n          _main.default.prototype.deltaTime = 0;\n\n          /**\n                                        * Confirms if the window a p5.js program is in is \"focused,\" meaning that\n                                        * the sketch will accept mouse or keyboard input. This variable is\n                                        * \"true\" if the window is focused and \"false\" if not.\n                                        *\n                                        * @property {Boolean} focused\n                                        * @readOnly\n                                        * @example\n                                        * <div><code>\n                                        * // To demonstrate, put two windows side by side.\n                                        * // Click on the window that the p5 sketch isn't in!\n                                        * function draw() {\n                                        *   background(200);\n                                        *   noStroke();\n                                        *   fill(0, 200, 0);\n                                        *   ellipse(25, 25, 50, 50);\n                                        *\n                                        *   if (!focused) {\n                                           // or \"if (focused === false)\"\n                                        *     stroke(200, 0, 0);\n                                        *     line(0, 0, 100, 100);\n                                        *     line(100, 0, 0, 100);\n                                        *   }\n                                        * }\n                                        * </code></div>\n                                        *\n                                        * @alt\n                                        * green 50x50 ellipse at top left. Red X covers canvas when page focus changes\n                                        *\n                                        */\n          _main.default.prototype.focused = document.hasFocus();\n\n          /**\n           * Sets the cursor to a predefined symbol or an image, or makes it visible\n           * if already hidden. If you are trying to set an image as the cursor, the\n           * recommended size is 16x16 or 32x32 pixels. The values for parameters x and y\n           * must be less than the dimensions of the image.\n           *\n           * @method cursor\n           * @param {String|Constant} type Built-In: either ARROW, CROSS, HAND, MOVE, TEXT and WAIT\n           *                               Native CSS properties: 'grab', 'progress', 'cell' etc.\n           *                               External: path for cursor's images\n           *                               (Allowed File extensions: .cur, .gif, .jpg, .jpeg, .png)\n           *                               For more information on Native CSS cursors and url visit:\n           *                               https://developer.mozilla.org/en-US/docs/Web/CSS/cursor\n           * @param {Number}          [x]  the horizontal active spot of the cursor (must be less than 32)\n           * @param {Number}          [y]  the vertical active spot of the cursor (must be less than 32)\n           * @example\n           * <div><code>\n           * // Move the mouse across the quadrants\n           * // to see the cursor change\n           * function draw() {\n           *   line(width / 2, 0, width / 2, height);\n           *   line(0, height / 2, width, height / 2);\n           *   if (mouseX < 50 && mouseY < 50) {\n           *     cursor(CROSS);\n           *   } else if (mouseX > 50 && mouseY < 50) {\n           *     cursor('progress');\n           *   } else if (mouseX > 50 && mouseY > 50) {\n           *     cursor('https://s3.amazonaws.com/mupublicdata/cursor.cur');\n           *   } else {\n           *     cursor('grab');\n           *   }\n           * }\n           * </code></div>\n           *\n           * @alt\n           * canvas is divided into four quadrants. cursor on first is a cross, second is a progress,\n           * third is a custom cursor using path to the cursor and fourth is a grab.\n           *\n           */\n          _main.default.prototype.cursor = function(type, x, y) {\n            var cursor = 'auto';\n            var canvas = this._curElement.elt;\n            if (standardCursors.includes(type)) {\n              // Standard css cursor\n              cursor = type;\n            } else if (typeof type === 'string') {\n              var coords = '';\n              if (x && y && typeof x === 'number' && typeof y === 'number') {\n                // Note that x and y values must be unit-less positive integers < 32\n                // https://developer.mozilla.org/en-US/docs/Web/CSS/cursor\n                coords = ''.concat(x, ' ').concat(y);\n              }\n              if (\n                type.substring(0, 7) === 'http://' ||\n                type.substring(0, 8) === 'https://'\n              ) {\n                // Image (absolute url)\n                cursor = 'url('.concat(type, ') ').concat(coords, ', auto');\n              } else if (/\\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(type)) {\n                // Image file (relative path) - Separated for performance reasons\n                cursor = 'url('.concat(type, ') ').concat(coords, ', auto');\n              } else {\n                // Any valid string for the css cursor property\n                cursor = type;\n              }\n            }\n            canvas.style.cursor = cursor;\n          };\n\n          /**\n    * Specifies the number of frames to be displayed every second. For example,\n    * the function call frameRate(30) will attempt to refresh 30 times a second.\n    * If the processor is not fast enough to maintain the specified rate, the\n    * frame rate will not be achieved. Setting the frame rate within <a href=\"#/p5/setup\">setup()</a> is\n    * recommended. The default frame rate is based on the frame rate of the display\n    * (here also called \"refresh rate\"), which is set to 60 frames per second on most\n    * computers. A frame rate of 24 frames per second (usual for movies) or above\n    * will be enough for smooth animations\n    * This is the same as setFrameRate(val).\n    * <br><br>\n    * Calling <a href=\"#/p5/frameRate\">frameRate()</a> with no arguments returns the current framerate. The\n    * draw function must run at least once before it will return a value. This\n    * is the same as <a href=\"#/p5/getFrameRate\">getFrameRate()</a>.\n    * <br><br>\n    * Calling <a href=\"#/p5/frameRate\">frameRate()</a> with arguments that are not of the type numbers\n    * or are non positive also returns current framerate.\n    *\n    * @method frameRate\n    * @param  {Number} fps number of frames to be displayed every second\n    * @chainable\n    *\n    * @example\n    *\n    * <div><code>\n    * let rectX = 0;\n    * let fr = 30; //starting FPS\n    * let clr;\n    *\n    * function setup() {\n    *   background(200);\n    *   frameRate(fr); // Attempt to refresh at starting FPS\n    *   clr = color(255, 0, 0);\n    * }\n    *\n    * function draw() {\n    *   background(200);\n    *   rectX = rectX += 1; // Move Rectangle\n    *\n    *   if (rectX >= width) {\n       // If you go off screen.\n    *     if (fr === 30) {\n    *       clr = color(0, 0, 255);\n    *       fr = 10;\n    *       frameRate(fr); // make frameRate 10 FPS\n    *     } else {\n    *       clr = color(255, 0, 0);\n    *       fr = 30;\n    *       frameRate(fr); // make frameRate 30 FPS\n    *     }\n    *     rectX = 0;\n    *   }\n    *   fill(clr);\n    *   rect(rectX, 40, 20, 20);\n    * }\n    * </code></div>\n    *\n    * @alt\n    * blue rect moves left to right, followed by red rect moving faster. Loops.\n    *\n    */\n          /**\n           * @method frameRate\n           * @return {Number}       current frameRate\n           */\n          _main.default.prototype.frameRate = function(fps) {\n            _main.default._validateParameters('frameRate', arguments);\n            if (typeof fps !== 'number' || fps < 0) {\n              return this._frameRate;\n            } else {\n              this._setProperty('_targetFrameRate', fps);\n              if (fps === 0) {\n                this._setProperty('_frameRate', fps);\n              }\n              return this;\n            }\n          };\n          /**\n           * Returns the current framerate.\n           *\n           * @private\n           * @return {Number} current frameRate\n           */\n          _main.default.prototype.getFrameRate = function() {\n            return this.frameRate();\n          };\n\n          /**\n           * Specifies the number of frames to be displayed every second. For example,\n           * the function call frameRate(30) will attempt to refresh 30 times a second.\n           * If the processor is not fast enough to maintain the specified rate, the\n           * frame rate will not be achieved. Setting the frame rate within <a href=\"#/p5/setup\">setup()</a> is\n           * recommended. The default rate is 60 frames per second.\n           *\n           * Calling <a href=\"#/p5/frameRate\">frameRate()</a> with no arguments returns the current framerate.\n           *\n           * @private\n           * @param {Number} [fps] number of frames to be displayed every second\n           */\n          _main.default.prototype.setFrameRate = function(fps) {\n            return this.frameRate(fps);\n          };\n\n          /**\n           * Hides the cursor from view.\n           *\n           * @method noCursor\n           * @example\n           * <div><code>\n           * function setup() {\n           *   noCursor();\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   ellipse(mouseX, mouseY, 10, 10);\n           * }\n           * </code></div>\n           *\n           *\n           * @alt\n           * cursor becomes 10x 10 white ellipse the moves with mouse x and y.\n           *\n           */\n          _main.default.prototype.noCursor = function() {\n            this._curElement.elt.style.cursor = 'none';\n          };\n\n          /**\n           * System variable that stores the width of the screen display according to The\n           * default <a href=\"#/p5/pixelDensity\">pixelDensity</a>. This is used to run a\n           * full-screen program on any display size. To return actual screen size,\n           * multiply this by pixelDensity.\n           *\n           * @property {Number} displayWidth\n           * @readOnly\n           * @example\n           * <div class=\"norender\"><code>\n           * createCanvas(displayWidth, displayHeight);\n           * </code></div>\n           *\n           * @alt\n           * cursor becomes 10x 10 white ellipse the moves with mouse x and y.\n           *\n           */\n          _main.default.prototype.displayWidth = screen.width;\n\n          /**\n           * System variable that stores the height of the screen display according to The\n           * default <a href=\"#/p5/pixelDensity\">pixelDensity</a>. This is used to run a\n           * full-screen program on any display size. To return actual screen size,\n           * multiply this by pixelDensity.\n           *\n           * @property {Number} displayHeight\n           * @readOnly\n           * @example\n           * <div class=\"norender\"><code>\n           * createCanvas(displayWidth, displayHeight);\n           * </code></div>\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.prototype.displayHeight = screen.height;\n\n          /**\n           * System variable that stores the width of the inner window, it maps to\n           * window.innerWidth.\n           *\n           * @property {Number} windowWidth\n           * @readOnly\n           * @example\n           * <div class=\"norender\"><code>\n           * createCanvas(windowWidth, windowHeight);\n           * </code></div>\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.prototype.windowWidth = getWindowWidth();\n          /**\n           * System variable that stores the height of the inner window, it maps to\n           * window.innerHeight.\n           *\n           * @property {Number} windowHeight\n           * @readOnly\n           * @example\n           * <div class=\"norender\"><code>\n           * createCanvas(windowWidth, windowHeight);\n           * </code></div>\n           *@alt\n           * no display.\n           *\n           */\n          _main.default.prototype.windowHeight = getWindowHeight();\n\n          /**\n           * The <a href=\"#/p5/windowResized\">windowResized()</a> function is called once every time the browser window\n           * is resized. This is a good place to resize the canvas or do any other\n           * adjustments to accommodate the new window size.\n           *\n           * @method windowResized\n           * @example\n           * <div class=\"norender\"><code>\n           * function setup() {\n           *   createCanvas(windowWidth, windowHeight);\n           * }\n           *\n           * function draw() {\n           *   background(0, 100, 200);\n           * }\n           *\n           * function windowResized() {\n           *   resizeCanvas(windowWidth, windowHeight);\n           * }\n           * </code></div>\n           * @alt\n           * no display.\n           */\n          _main.default.prototype._onresize = function(e) {\n            this._setProperty('windowWidth', getWindowWidth());\n            this._setProperty('windowHeight', getWindowHeight());\n            var context = this._isGlobal ? window : this;\n            var executeDefault;\n            if (typeof context.windowResized === 'function') {\n              executeDefault = context.windowResized(e);\n              if (executeDefault !== undefined && !executeDefault) {\n                e.preventDefault();\n              }\n            }\n          };\n\n          function getWindowWidth() {\n            return (\n              window.innerWidth ||\n              (document.documentElement && document.documentElement.clientWidth) ||\n              (document.body && document.body.clientWidth) ||\n              0\n            );\n          }\n\n          function getWindowHeight() {\n            return (\n              window.innerHeight ||\n              (document.documentElement && document.documentElement.clientHeight) ||\n              (document.body && document.body.clientHeight) ||\n              0\n            );\n          }\n\n          /**\n           * System variable that stores the width of the drawing canvas. This value\n           * is set by the first parameter of the <a href=\"#/p5/createCanvas\">createCanvas()</a> function.\n           * For example, the function call createCanvas(320, 240) sets the width\n           * variable to the value 320. The value of width defaults to 100 if\n           * <a href=\"#/p5/createCanvas\">createCanvas()</a> is not used in a program.\n           *\n           * @property {Number} width\n           * @readOnly\n           */\n          _main.default.prototype.width = 0;\n\n          /**\n           * System variable that stores the height of the drawing canvas. This value\n           * is set by the second parameter of the <a href=\"#/p5/createCanvas\">createCanvas()</a> function. For\n           * example, the function call createCanvas(320, 240) sets the height\n           * variable to the value 240. The value of height defaults to 100 if\n           * <a href=\"#/p5/createCanvas\">createCanvas()</a> is not used in a program.\n           *\n           * @property {Number} height\n           * @readOnly\n           */\n          _main.default.prototype.height = 0;\n\n          /**\n           * If argument is given, sets the sketch to fullscreen or not based on the\n           * value of the argument. If no argument is given, returns the current\n           * fullscreen state. Note that due to browser restrictions this can only\n           * be called on user input, for example, on mouse press like the example\n           * below.\n           *\n           * @method fullscreen\n           * @param  {Boolean} [val] whether the sketch should be in fullscreen mode\n           * or not\n           * @return {Boolean} current fullscreen state\n           * @example\n           * <div>\n           * <code>\n           * // Clicking in the box toggles fullscreen on and off.\n           * function setup() {\n           *   background(200);\n           * }\n           * function mousePressed() {\n           *   if (mouseX > 0 && mouseX < 100 && mouseY > 0 && mouseY < 100) {\n           *     let fs = fullscreen();\n           *     fullscreen(!fs);\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.prototype.fullscreen = function(val) {\n            _main.default._validateParameters('fullscreen', arguments);\n            // no arguments, return fullscreen or not\n            if (typeof val === 'undefined') {\n              return (\n                document.fullscreenElement ||\n                document.webkitFullscreenElement ||\n                document.mozFullScreenElement ||\n                document.msFullscreenElement\n              );\n            } else {\n              // otherwise set to fullscreen or not\n              if (val) {\n                launchFullscreen(document.documentElement);\n              } else {\n                exitFullscreen();\n              }\n            }\n          };\n\n          /**\n           * Sets the pixel scaling for high pixel density displays. By default\n           * pixel density is set to match display density, call pixelDensity(1)\n           * to turn this off. Calling <a href=\"#/p5/pixelDensity\">pixelDensity()</a> with no arguments returns\n           * the current pixel density of the sketch.\n           *\n           * @method pixelDensity\n           * @param  {Number} val whether or how much the sketch should scale\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   pixelDensity(1);\n           *   createCanvas(100, 100);\n           *   background(200);\n           *   ellipse(width / 2, height / 2, 50, 50);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * function setup() {\n           *   pixelDensity(3.0);\n           *   createCanvas(100, 100);\n           *   background(200);\n           *   ellipse(width / 2, height / 2, 50, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * fuzzy 50x50 white ellipse with black outline in center of canvas.\n           * sharp 50x50 white ellipse with black outline in center of canvas.\n           */\n          /**\n           * @method pixelDensity\n           * @returns {Number} current pixel density of the sketch\n           */\n          _main.default.prototype.pixelDensity = function(val) {\n            _main.default._validateParameters('pixelDensity', arguments);\n            var returnValue;\n            if (typeof val === 'number') {\n              if (val !== this._pixelDensity) {\n                this._pixelDensity = val;\n              }\n              returnValue = this;\n              this.resizeCanvas(this.width, this.height, true); // as a side effect, it will clear the canvas\n            } else {\n              returnValue = this._pixelDensity;\n            }\n            return returnValue;\n          };\n\n          /**\n           * Returns the pixel density of the current display the sketch is running on.\n           *\n           * @method displayDensity\n           * @returns {Number} current pixel density of the display\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   let density = displayDensity();\n           *   pixelDensity(density);\n           *   createCanvas(100, 100);\n           *   background(200);\n           *   ellipse(width / 2, height / 2, 50, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 white ellipse with black outline in center of canvas.\n           */\n          _main.default.prototype.displayDensity = function() {\n            return window.devicePixelRatio;\n          };\n\n          function launchFullscreen(element) {\n            var enabled =\n              document.fullscreenEnabled ||\n              document.webkitFullscreenEnabled ||\n              document.mozFullScreenEnabled ||\n              document.msFullscreenEnabled;\n            if (!enabled) {\n              throw new Error('Fullscreen not enabled in this browser.');\n            }\n            if (element.requestFullscreen) {\n              element.requestFullscreen();\n            } else if (element.mozRequestFullScreen) {\n              element.mozRequestFullScreen();\n            } else if (element.webkitRequestFullscreen) {\n              element.webkitRequestFullscreen();\n            } else if (element.msRequestFullscreen) {\n              element.msRequestFullscreen();\n            }\n          }\n\n          function exitFullscreen() {\n            if (document.exitFullscreen) {\n              document.exitFullscreen();\n            } else if (document.mozCancelFullScreen) {\n              document.mozCancelFullScreen();\n            } else if (document.webkitExitFullscreen) {\n              document.webkitExitFullscreen();\n            } else if (document.msExitFullscreen) {\n              document.msExitFullscreen();\n            }\n          }\n\n          /**\n           * Gets the current URL.\n           * @method getURL\n           * @return {String} url\n           * @example\n           * <div>\n           * <code>\n           * let url;\n           * let x = 100;\n           *\n           * function setup() {\n           *   fill(0);\n           *   noStroke();\n           *   url = getURL();\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   text(url, x, height / 2);\n           *   x--;\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * current url (http://p5js.org/reference/#/p5/getURL) moves right to left.\n           *\n           */\n          _main.default.prototype.getURL = function() {\n            return location.href;\n          };\n          /**\n           * Gets the current URL path as an array.\n           * @method getURLPath\n           * @return {String[]} path components\n           * @example\n           * <div class='norender'><code>\n           * function setup() {\n           *   let urlPath = getURLPath();\n           *   for (let i = 0; i < urlPath.length; i++) {\n           *     text(urlPath[i], 10, i * 20 + 20);\n           *   }\n           * }\n           * </code></div>\n           *\n           * @alt\n           *no display\n           *\n           */\n          _main.default.prototype.getURLPath = function() {\n            return location.pathname.split('/').filter(function(v) {\n              return v !== '';\n            });\n          };\n          /**\n           * Gets the current URL params as an Object.\n           * @method getURLParams\n           * @return {Object} URL params\n           * @example\n           * <div class='norender notest'>\n           * <code>\n           * // Example: http://p5js.org?year=2014&month=May&day=15\n           *\n           * function setup() {\n           *   let params = getURLParams();\n           *   text(params.day, 10, 20);\n           *   text(params.month, 10, 40);\n           *   text(params.year, 10, 60);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.prototype.getURLParams = function() {\n            var re = /[?&]([^&=]+)(?:[&=])([^&=]+)/gim;\n            var m;\n            var v = {};\n            while ((m = re.exec(location.search)) != null) {\n              if (m.index === re.lastIndex) {\n                re.lastIndex++;\n              }\n              v[m[1]] = m[2];\n            }\n            return v;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { './constants': 43, './main': 50 }\n      ],\n      45: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('./main'));\n          var constants = _interopRequireWildcard(_dereq_('./constants'));\n          var _internationalization = _dereq_('./internationalization');\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          function _classCallCheck(instance, Constructor) {\n            if (!(instance instanceof Constructor)) {\n              throw new TypeError('Cannot call a class as a function');\n            }\n          }\n          function _possibleConstructorReturn(self, call) {\n            if (call && (_typeof(call) === 'object' || typeof call === 'function')) {\n              return call;\n            }\n            return _assertThisInitialized(self);\n          }\n          function _assertThisInitialized(self) {\n            if (self === void 0) {\n              throw new ReferenceError(\n                \"this hasn't been initialised - super() hasn't been called\"\n              );\n            }\n            return self;\n          }\n          function _inherits(subClass, superClass) {\n            if (typeof superClass !== 'function' && superClass !== null) {\n              throw new TypeError('Super expression must either be null or a function');\n            }\n            subClass.prototype = Object.create(superClass && superClass.prototype, {\n              constructor: { value: subClass, writable: true, configurable: true }\n            });\n            if (superClass) _setPrototypeOf(subClass, superClass);\n          }\n          function _wrapNativeSuper(Class) {\n            var _cache = typeof Map === 'function' ? new Map() : undefined;\n            _wrapNativeSuper = function _wrapNativeSuper(Class) {\n              if (Class === null || !_isNativeFunction(Class)) return Class;\n              if (typeof Class !== 'function') {\n                throw new TypeError('Super expression must either be null or a function');\n              }\n              if (typeof _cache !== 'undefined') {\n                if (_cache.has(Class)) return _cache.get(Class);\n                _cache.set(Class, Wrapper);\n              }\n              function Wrapper() {\n                return _construct(Class, arguments, _getPrototypeOf(this).constructor);\n              }\n              Wrapper.prototype = Object.create(Class.prototype, {\n                constructor: {\n                  value: Wrapper,\n                  enumerable: false,\n                  writable: true,\n                  configurable: true\n                }\n              });\n              return _setPrototypeOf(Wrapper, Class);\n            };\n            return _wrapNativeSuper(Class);\n          }\n          function isNativeReflectConstruct() {\n            if (typeof Reflect === 'undefined' || !Reflect.construct) return false;\n            if (Reflect.construct.sham) return false;\n            if (typeof Proxy === 'function') return true;\n            try {\n              Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));\n              return true;\n            } catch (e) {\n              return false;\n            }\n          }\n          function _construct(Parent, args, Class) {\n            if (isNativeReflectConstruct()) {\n              _construct = Reflect.construct;\n            } else {\n              _construct = function _construct(Parent, args, Class) {\n                var a = [null];\n                a.push.apply(a, args);\n                var Constructor = Function.bind.apply(Parent, a);\n                var instance = new Constructor();\n                if (Class) _setPrototypeOf(instance, Class.prototype);\n                return instance;\n              };\n            }\n            return _construct.apply(null, arguments);\n          }\n          function _isNativeFunction(fn) {\n            return Function.toString.call(fn).indexOf('[native code]') !== -1;\n          }\n          function _setPrototypeOf(o, p) {\n            _setPrototypeOf =\n              Object.setPrototypeOf ||\n              function _setPrototypeOf(o, p) {\n                o.__proto__ = p;\n                return o;\n              };\n            return _setPrototypeOf(o, p);\n          }\n          function _getPrototypeOf(o) {\n            _getPrototypeOf = Object.setPrototypeOf\n              ? Object.getPrototypeOf\n              : function _getPrototypeOf(o) {\n                  return o.__proto__ || Object.getPrototypeOf(o);\n                };\n            return _getPrototypeOf(o);\n          }\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n\n          // p5.js blue, p5.js orange, auto dark green; fallback p5.js darkened magenta\n          // See testColors below for all the color codes and names\n          var typeColors = ['#2D7BB6', '#EE9900', '#4DB200', '#C83C00'];\n\n          if (typeof IS_MINIFIED !== 'undefined') {\n            _main.default._validateParameters = _main.default._friendlyFileLoadError = _main.default._friendlyError = function() {};\n          } else {\n            var doFriendlyWelcome = false; // TEMP until we get it all working LM\n            // for parameter validation\n            var dataDoc = _dereq_('../../docs/reference/data.json');\n            var arrDoc = JSON.parse(JSON.stringify(dataDoc));\n\n            // -- Borrowed from jQuery 1.11.3 --\n            var class2type = {};\n            var _toString = class2type.toString;\n            var names = [\n              'Boolean',\n              'Number',\n              'String',\n              'Function',\n              'Array',\n              'Date',\n              'RegExp',\n              'Object',\n              'Error'\n            ];\n\n            for (var n = 0; n < names.length; n++) {\n              class2type['[object '.concat(names[n], ']')] = names[n].toLowerCase();\n            }\n            var getType = function getType(obj) {\n              if (obj == null) {\n                return ''.concat(obj);\n              }\n              return _typeof(obj) === 'object' || typeof obj === 'function'\n                ? class2type[_toString.call(obj)] || 'object'\n                : _typeof(obj);\n            };\n\n            // -- End borrow --\n\n            var friendlyWelcome = function friendlyWelcome() {\n              // p5.js brand - magenta: #ED225D\n              //const astrixBgColor = 'transparent';\n              //const astrixTxtColor = '#ED225D';\n              //const welcomeBgColor = '#ED225D';\n              //const welcomeTextColor = 'white';\n              var welcomeMessage = (0, _internationalization.translator)('fes.pre', {\n                message: (0, _internationalization.translator)('fes.welcome')\n              });\n\n              console.log(\n                '    _ \\n' +\n                  ' /\\\\| |/\\\\ \\n' +\n                  \" \\\\ ` ' /  \\n\" +\n                  ' / , . \\\\  \\n' +\n                  ' \\\\/|_|\\\\/ ' +\n                  '\\n\\n' +\n                  welcomeMessage\n              );\n            };\n\n            /**\n             * Prints out a fancy, colorful message to the console log\n             *\n             * @method report\n             * @private\n             * @param  {String}               message the words to be said\n             * @param  {String}               func    the name of the function to link\n             * @param  {Number|String} color   CSS color string or error type\n             *\n             * @return console logs\n             */\n            var report = function report(message, func, color) {\n              if (doFriendlyWelcome) {\n                friendlyWelcome();\n                doFriendlyWelcome = false;\n              }\n              if ('undefined' === getType(color)) {\n                color = '#B40033'; // dark magenta\n              } else if (getType(color) === 'number') {\n                // Type to color\n                color = typeColors[color];\n              }\n              if (func.substring(0, 4) === 'load') {\n                console.log(\n                  (0, _internationalization.translator)('fes.pre', { message: message })\n                );\n              } else {\n                console.log(\n                  (0, _internationalization.translator)('fes.pre', {\n                    message: ''\n                      .concat(message, ' (http://p5js.org/reference/#p5/')\n                      .concat(func, ')')\n                  })\n                );\n              }\n            };\n\n            // mapping used by `_friendlyFileLoadError`\n            var fileLoadErrorCases = function fileLoadErrorCases(num, filePath) {\n              var suggestion = (0, _internationalization.translator)(\n                'fes.fileLoadError.suggestion',\n                {\n                  filePath: filePath,\n                  link: 'https://github.com/processing/p5.js/wiki/Local-server'\n                }\n              );\n\n              switch (num) {\n                case 0:\n                  return {\n                    message: (0, _internationalization.translator)(\n                      'fes.fileLoadError.image',\n                      {\n                        suggestion: suggestion\n                      }\n                    ),\n\n                    method: 'loadImage'\n                  };\n\n                case 1:\n                  return {\n                    message: (0, _internationalization.translator)(\n                      'fes.fileLoadError.xml',\n                      {\n                        suggestion: suggestion\n                      }\n                    ),\n\n                    method: 'loadXML'\n                  };\n\n                case 2:\n                  return {\n                    message: (0, _internationalization.translator)(\n                      'fes.fileLoadError.table',\n                      {\n                        suggestion: suggestion\n                      }\n                    ),\n\n                    method: 'loadTable'\n                  };\n\n                case 3:\n                  return {\n                    message: (0, _internationalization.translator)(\n                      'fes.fileLoadError.strings',\n                      {\n                        suggestion: suggestion\n                      }\n                    ),\n\n                    method: 'loadStrings'\n                  };\n\n                case 4:\n                  return {\n                    message: (0, _internationalization.translator)(\n                      'fes.fileLoadError.font',\n                      {\n                        suggestion: suggestion\n                      }\n                    ),\n\n                    method: 'loadFont'\n                  };\n\n                case 5:\n                  return {\n                    message: (0, _internationalization.translator)(\n                      'fes.fileLoadError.json',\n                      {\n                        suggestion: suggestion\n                      }\n                    ),\n\n                    method: 'loadJSON'\n                  };\n\n                case 6:\n                  return {\n                    message: (0, _internationalization.translator)(\n                      'fes.fileLoadError.bytes',\n                      {\n                        suggestion: suggestion\n                      }\n                    ),\n\n                    method: 'loadBytes'\n                  };\n\n                case 7:\n                  return {\n                    message: (0, _internationalization.translator)(\n                      'fes.fileLoadError.large'\n                    ),\n                    method: 'loadX'\n                  };\n\n                case 8:\n                  return {\n                    message: (0, _internationalization.translator)('fes.fileLoadError.gif'),\n                    method: 'loadImage'\n                  };\n              }\n            };\n\n            /**\n             * This is called internally if there is a error during file loading.\n             *\n             * @method _friendlyFileLoadError\n             * @private\n             * @param  {Number} errorType\n             * @param  {String} filePath\n             */\n            _main.default._friendlyFileLoadError = function(errorType, filePath) {\n              var _fileLoadErrorCases = fileLoadErrorCases(errorType, filePath),\n                message = _fileLoadErrorCases.message,\n                method = _fileLoadErrorCases.method;\n              report(message, method, 3);\n            };\n\n            /**\n             * This is a generic method that can be called from anywhere in the p5\n             * library to alert users to a common error.\n             *\n             * @method _friendlyError\n             * @private\n             * @param  {Number} message message to be printed\n             * @param  {String} method name of method\n             */\n            _main.default._friendlyError = function(message, method) {\n              report(message, method);\n            };\n\n            /**\n             * This is called internally if there is a error with autoplay.\n             *\n             * @method _friendlyAutoplayError\n             * @private\n             */\n            _main.default._friendlyAutoplayError = function(src) {\n              var message = (0, _internationalization.translator)('fes.autoplay', {\n                src: src,\n                link: 'https://developer.mozilla.org/docs/Web/Media/Autoplay_guide'\n              });\n\n              console.log(\n                (0, _internationalization.translator)('fes.pre', { message: message })\n              );\n            };\n\n            var docCache = {};\n            var builtinTypes = [\n              'null',\n              'number',\n              'string',\n              'boolean',\n              'constant',\n              'function',\n              'any',\n              'integer'\n            ];\n\n            // validateParameters() helper functions:\n            // lookupParamDoc() for querying data.json\n            var lookupParamDoc = function lookupParamDoc(func) {\n              // look for the docs in the `data.json` datastructure\n\n              var ichDot = func.lastIndexOf('.');\n              var funcName = func.substr(ichDot + 1);\n              var funcClass = func.substr(0, ichDot) || 'p5';\n\n              var queryResult;\n              var classitems = arrDoc.classitems;\n              var _iteratorNormalCompletion = true;\n              var _didIteratorError = false;\n              var _iteratorError = undefined;\n              try {\n                for (\n                  var _iterator = classitems[Symbol.iterator](), _step;\n                  !(_iteratorNormalCompletion = (_step = _iterator.next()).done);\n                  _iteratorNormalCompletion = true\n                ) {\n                  var x = _step.value;\n                  if (x.name === funcName && x.class === funcClass) {\n                    queryResult = x;\n                    break;\n                  }\n                }\n\n                // different JSON structure for funct with multi-format\n              } catch (err) {\n                _didIteratorError = true;\n                _iteratorError = err;\n              } finally {\n                try {\n                  if (!_iteratorNormalCompletion && _iterator.return != null) {\n                    _iterator.return();\n                  }\n                } finally {\n                  if (_didIteratorError) {\n                    throw _iteratorError;\n                  }\n                }\n              }\n              var overloads = [];\n              if (queryResult.hasOwnProperty('overloads')) {\n                // add all the overloads\n                for (var i = 0; i < queryResult.overloads.length; i++) {\n                  overloads.push({ formats: queryResult.overloads[i].params });\n                }\n              } else {\n                // no overloads, just add the main method definition\n                overloads.push({ formats: queryResult.params || [] });\n              }\n\n              // parse the parameter types for each overload\n              var mapConstants = {};\n              var maxParams = 0;\n              overloads.forEach(function(overload) {\n                var formats = overload.formats;\n\n                // keep a record of the maximum number of arguments\n                // this method requires.\n                if (maxParams < formats.length) {\n                  maxParams = formats.length;\n                }\n\n                // calculate the minimum number of arguments\n                // this overload requires.\n                var minParams = formats.length;\n                while (minParams > 0 && formats[minParams - 1].optional) {\n                  minParams--;\n                }\n                overload.minParams = minParams;\n\n                // loop through each parameter position, and parse its types\n                formats.forEach(function(format) {\n                  // split this parameter's types\n                  format.types = format.type.split('|').map(function ct(type) {\n                    // array\n                    if (type.substr(type.length - 2, 2) === '[]') {\n                      return {\n                        name: type,\n                        array: ct(type.substr(0, type.length - 2))\n                      };\n                    }\n\n                    var lowerType = type.toLowerCase();\n\n                    // contant\n                    if (lowerType === 'constant') {\n                      var constant;\n                      if (mapConstants.hasOwnProperty(format.name)) {\n                        constant = mapConstants[format.name];\n                      } else {\n                        // parse possible constant values from description\n                        var myRe = /either\\s+(?:[A-Z0-9_]+\\s*,?\\s*(?:or)?\\s*)+/g;\n                        var values = {};\n                        var _names = [];\n\n                        constant = mapConstants[format.name] = {\n                          values: values,\n                          names: _names\n                        };\n\n                        var myArray = myRe.exec(format.description);\n                        if (func === 'endShape' && format.name === 'mode') {\n                          values[constants.CLOSE] = true;\n                          _names.push('CLOSE');\n                        } else {\n                          var match = myArray[0];\n                          var reConst = /[A-Z0-9_]+/g;\n                          var matchConst;\n                          while ((matchConst = reConst.exec(match)) !== null) {\n                            var name = matchConst[0];\n                            if (constants.hasOwnProperty(name)) {\n                              values[constants[name]] = true;\n                              _names.push(name);\n                            }\n                          }\n                        }\n                      }\n                      return {\n                        name: type,\n                        builtin: lowerType,\n                        names: constant.names,\n                        values: constant.values\n                      };\n                    }\n\n                    // function\n                    if (lowerType.substr(0, 'function'.length) === 'function') {\n                      lowerType = 'function';\n                    }\n                    // builtin\n                    if (builtinTypes.includes(lowerType)) {\n                      return { name: type, builtin: lowerType };\n                    }\n\n                    // find type's prototype\n                    var t = window;\n                    var typeParts = type.split('.');\n\n                    // special-case 'p5' since it may be non-global\n                    if (typeParts[0] === 'p5') {\n                      t = _main.default;\n                      typeParts.shift();\n                    }\n\n                    typeParts.forEach(function(p) {\n                      t = t && t[p];\n                    });\n                    if (t) {\n                      return { name: type, prototype: t };\n                    }\n\n                    return { name: type, type: lowerType };\n                  });\n                });\n              });\n              return {\n                overloads: overloads,\n                maxParams: maxParams\n              };\n            };\n\n            var isNumber = function isNumber(param) {\n              switch (_typeof(param)) {\n                case 'number':\n                  return true;\n                case 'string':\n                  return !isNaN(param);\n                default:\n                  return false;\n              }\n            };\n\n            var testParamType = function testParamType(param, type) {\n              var isArray = param instanceof Array;\n              var matches = true;\n              if (type.array && isArray) {\n                for (var i = 0; i < param.length; i++) {\n                  var error = testParamType(param[i], type.array);\n                  if (error) return error / 2; // half error for elements\n                }\n              } else if (type.prototype) {\n                matches = param instanceof type.prototype;\n              } else if (type.builtin) {\n                switch (type.builtin) {\n                  case 'number':\n                    matches = isNumber(param);\n                    break;\n                  case 'integer':\n                    matches = isNumber(param) && Number(param) === Math.floor(param);\n                    break;\n                  case 'boolean':\n                  case 'any':\n                    matches = true;\n                    break;\n                  case 'array':\n                    matches = isArray;\n                    break;\n                  case 'string':\n                    matches = /*typeof param === 'number' ||*/ typeof param === 'string';\n                    break;\n                  case 'constant':\n                    matches = type.values.hasOwnProperty(param);\n                    break;\n                  case 'function':\n                    matches = param instanceof Function;\n                    break;\n                  case 'null':\n                    matches = param === null;\n                    break;\n                }\n              } else {\n                matches = _typeof(param) === type.t;\n              }\n              return matches ? 0 : 1;\n            };\n\n            // testType() for non-object type parameter validation\n            var testParamTypes = function testParamTypes(param, types) {\n              var minScore = 9999;\n              for (var i = 0; minScore > 0 && i < types.length; i++) {\n                var score = testParamType(param, types[i]);\n                if (minScore > score) minScore = score;\n              }\n              return minScore;\n            };\n\n            // generate a score (higher is worse) for applying these args to\n            // this overload.\n            var scoreOverload = function scoreOverload(args, argCount, overload, minScore) {\n              var score = 0;\n              var formats = overload.formats;\n              var minParams = overload.minParams;\n\n              // check for too few/many args\n              // the score is double number of extra/missing args\n              if (argCount < minParams) {\n                score = (minParams - argCount) * 2;\n              } else if (argCount > formats.length) {\n                score = (argCount - formats.length) * 2;\n              }\n\n              // loop through the formats, adding up the error score for each arg.\n              // quit early if the score gets higher than the previous best overload.\n              for (var p = 0; score <= minScore && p < formats.length; p++) {\n                var arg = args[p];\n                var format = formats[p];\n                // '== null' checks for 'null' and typeof 'undefined'\n                if (arg == null) {\n                  // handle non-optional and non-trailing undefined args\n                  if (!format.optional || p < minParams || p < argCount) {\n                    score += 1;\n                  }\n                } else {\n                  score += testParamTypes(arg, format.types);\n                }\n              }\n              return score;\n            };\n\n            // gets a list of errors for this overload\n            var getOverloadErrors = function getOverloadErrors(args, argCount, overload) {\n              var formats = overload.formats;\n              var minParams = overload.minParams;\n\n              // check for too few/many args\n              if (argCount < minParams) {\n                return [\n                  {\n                    type: 'TOO_FEW_ARGUMENTS',\n                    argCount: argCount,\n                    minParams: minParams\n                  }\n                ];\n              } else if (argCount > formats.length) {\n                return [\n                  {\n                    type: 'TOO_MANY_ARGUMENTS',\n                    argCount: argCount,\n                    maxParams: formats.length\n                  }\n                ];\n              }\n\n              var errorArray = [];\n              for (var p = 0; p < formats.length; p++) {\n                var arg = args[p];\n                var format = formats[p];\n                // '== null' checks for 'null' and typeof 'undefined'\n                if (arg == null) {\n                  // handle non-optional and non-trailing undefined args\n                  if (!format.optional || p < minParams || p < argCount) {\n                    errorArray.push({\n                      type: 'EMPTY_VAR',\n                      position: p,\n                      format: format\n                    });\n                  }\n                } else if (testParamTypes(arg, format.types) > 0) {\n                  errorArray.push({\n                    type: 'WRONG_TYPE',\n                    position: p,\n                    format: format,\n                    arg: arg\n                  });\n                }\n              }\n\n              return errorArray;\n            };\n\n            // a custom error type, used by the mocha\n            // tests when expecting validation errors\n            _main.default.ValidationError = (function(name) {\n              var err = /*#__PURE__*/ (function(_Error) {\n                _inherits(err, _Error);\n                function err(message, func) {\n                  var _this;\n                  _classCallCheck(this, err);\n                  _this = _possibleConstructorReturn(this, _getPrototypeOf(err).call(this));\n                  _this.message = message;\n                  _this.func = func;\n                  if ('captureStackTrace' in Error)\n                    Error.captureStackTrace(_assertThisInitialized(_this), err);\n                  else _this.stack = new Error().stack;\n                  return _this;\n                }\n                return err;\n              })(_wrapNativeSuper(Error));\n\n              err.prototype.name = name;\n              return err;\n            })('ValidationError');\n\n            // function for generating console.log() msg\n            _main.default._friendlyParamError = function(errorObj, func) {\n              var message;\n\n              function formatType() {\n                var format = errorObj.format;\n                return format.types\n                  .map(function(type) {\n                    return type.names ? type.names.join('|') : type.name;\n                  })\n                  .join('|');\n              }\n\n              switch (errorObj.type) {\n                case 'EMPTY_VAR': {\n                  message = ''\n                    .concat(func, '() was expecting ')\n                    .concat(formatType(), ' for parameter #')\n                    .concat(\n                      errorObj.position,\n                      ' (zero-based index), received an empty variable instead. If not intentional, this is often a problem with scope: [https://p5js.org/examples/data-variable-scope.html]'\n                    );\n\n                  break;\n                }\n                case 'WRONG_TYPE': {\n                  var arg = errorObj.arg;\n                  var argType =\n                    arg instanceof Array\n                      ? 'array'\n                      : arg === null ? 'null' : arg.name || _typeof(arg);\n                  message = ''\n                    .concat(func, '() was expecting ')\n                    .concat(formatType(), ' for parameter #')\n                    .concat(errorObj.position, ' (zero-based index), received ')\n                    .concat(argType, ' instead');\n                  break;\n                }\n                case 'TOO_FEW_ARGUMENTS': {\n                  message = ''\n                    .concat(func, '() was expecting at least ')\n                    .concat(errorObj.minParams, ' arguments, but received only ')\n                    .concat(errorObj.argCount);\n                  break;\n                }\n                case 'TOO_MANY_ARGUMENTS': {\n                  message = ''\n                    .concat(func, '() was expecting no more than ')\n                    .concat(errorObj.maxParams, ' arguments, but received ')\n                    .concat(errorObj.argCount);\n                  break;\n                }\n              }\n\n              if (message) {\n                if (_main.default._throwValidationErrors) {\n                  throw new _main.default.ValidationError(message);\n                }\n\n                try {\n                  var re = /Function\\.validateParameters.*[\\r\\n].*[\\r\\n].*\\(([^)]*)/;\n                  var location = re.exec(new Error().stack)[1];\n                  if (location) {\n                    message += ' at '.concat(location);\n                  }\n                } catch (err) {}\n\n                report(''.concat(message, '.'), func, 3);\n              }\n            };\n\n            /**\n             * Validates parameters\n             * param  {String}               func    the name of the function\n             * param  {Array}                args    user input arguments\n             *\n             * example:\n             *  const a;\n             *  ellipse(10,10,a,5);\n             * console ouput:\n             *  \"It looks like ellipse received an empty variable in spot #2.\"\n             *\n             * example:\n             *  ellipse(10,\"foo\",5,5);\n             * console output:\n             *  \"ellipse was expecting a number for parameter #1,\n             *           received \"foo\" instead.\"\n             */\n            _main.default._validateParameters = function validateParameters(func, args) {\n              if (_main.default.disableFriendlyErrors) {\n                return; // skip FES\n              }\n\n              // lookup the docs in the 'data.json' file\n              var docs = docCache[func] || (docCache[func] = lookupParamDoc(func));\n              var overloads = docs.overloads;\n\n              // ignore any trailing `undefined` arguments\n              var argCount = args.length;\n              // '== null' checks for 'null' and typeof 'undefined'\n              while (argCount > 0 && args[argCount - 1] == null) {\n                argCount--;\n              }\n\n              // find the overload with the best score\n              var minScore = 99999;\n              var minOverload;\n              for (var i = 0; i < overloads.length; i++) {\n                var score = scoreOverload(args, argCount, overloads[i], minScore);\n                if (score === 0) {\n                  return; // done!\n                } else if (minScore > score) {\n                  // this score is better that what we have so far...\n                  minScore = score;\n                  minOverload = i;\n                }\n              }\n\n              // this should _always_ be true here...\n              if (minScore > 0) {\n                // get the errors for the best overload\n                var errorArray = getOverloadErrors(args, argCount, overloads[minOverload]);\n\n                // generate err msg\n                for (var _n = 0; _n < errorArray.length; _n++) {\n                  _main.default._friendlyParamError(errorArray[_n], func);\n                }\n              }\n            };\n\n            /**\n             * Prints out all the colors in the color pallete with white text.\n             * For color blindness testing.\n             */\n            /* function testColors() {\n           const str = 'A box of biscuits, a box of mixed biscuits and a biscuit mixer';\n           report(str, 'print', '#ED225D'); // p5.js magenta\n           report(str, 'print', '#2D7BB6'); // p5.js blue\n           report(str, 'print', '#EE9900'); // p5.js orange\n           report(str, 'print', '#A67F59'); // p5.js light brown\n           report(str, 'print', '#704F21'); // p5.js gold\n           report(str, 'print', '#1CC581'); // auto cyan\n           report(str, 'print', '#FF6625'); // auto orange\n           report(str, 'print', '#79EB22'); // auto green\n           report(str, 'print', '#B40033'); // p5.js darkened magenta\n           report(str, 'print', '#084B7F'); // p5.js darkened blue\n           report(str, 'print', '#945F00'); // p5.js darkened orange\n           report(str, 'print', '#6B441D'); // p5.js darkened brown\n           report(str, 'print', '#2E1B00'); // p5.js darkened gold\n           report(str, 'print', '#008851'); // auto dark cyan\n           report(str, 'print', '#C83C00'); // auto dark orange\n           report(str, 'print', '#4DB200'); // auto dark green\n         } */\n\n            _main.default.prototype._validateParameters = _main.default.validateParameters;\n          }\n\n          // This is a lazily-defined list of p5 symbols that may be\n          // misused by beginners at top-level code, outside of setup/draw. We'd like\n          // to detect these errors and help the user by suggesting they move them\n          // into setup/draw.\n          //\n          // For more details, see https://github.com/processing/p5.js/issues/1121.\n          var misusedAtTopLevelCode = null;\n          var FAQ_URL =\n            'https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup';\n\n          var defineMisusedAtTopLevelCode = function defineMisusedAtTopLevelCode() {\n            var uniqueNamesFound = {};\n\n            var getSymbols = function getSymbols(obj) {\n              return Object.getOwnPropertyNames(obj)\n                .filter(function(name) {\n                  if (name[0] === '_') {\n                    return false;\n                  }\n                  if (name in uniqueNamesFound) {\n                    return false;\n                  }\n\n                  uniqueNamesFound[name] = true;\n\n                  return true;\n                })\n                .map(function(name) {\n                  var type;\n\n                  if (typeof obj[name] === 'function') {\n                    type = 'function';\n                  } else if (name === name.toUpperCase()) {\n                    type = 'constant';\n                  } else {\n                    type = 'variable';\n                  }\n\n                  return { name: name, type: type };\n                });\n            };\n\n            misusedAtTopLevelCode = [].concat(\n              getSymbols(_main.default.prototype),\n              // At present, p5 only adds its constants to p5.prototype during\n              // construction, which may not have happened at the time a\n              // ReferenceError is thrown, so we'll manually add them to our list.\n              getSymbols(_dereq_('./constants'))\n            );\n\n            // This will ultimately ensure that we report the most specific error\n            // possible to the user, e.g. advising them about HALF_PI instead of PI\n            // when their code misuses the former.\n            misusedAtTopLevelCode.sort(function(a, b) {\n              return b.name.length - a.name.length;\n            });\n          };\n\n          var helpForMisusedAtTopLevelCode = function helpForMisusedAtTopLevelCode(e, log) {\n            if (!log) {\n              log = console.log.bind(console);\n            }\n\n            if (!misusedAtTopLevelCode) {\n              defineMisusedAtTopLevelCode();\n            }\n\n            // If we find that we're logging lots of false positives, we can\n            // uncomment the following code to avoid displaying anything if the\n            // user's code isn't likely to be using p5's global mode. (Note that\n            // setup/draw are more likely to be defined due to JS function hoisting.)\n            //\n            //if (!('setup' in window || 'draw' in window)) {\n            //  return;\n            //}\n\n            misusedAtTopLevelCode.some(function(symbol) {\n              // Note that while just checking for the occurrence of the\n              // symbol name in the error message could result in false positives,\n              // a more rigorous test is difficult because different browsers\n              // log different messages, and the format of those messages may\n              // change over time.\n              //\n              // For example, if the user uses 'PI' in their code, it may result\n              // in any one of the following messages:\n              //\n              //   * 'PI' is undefined                           (Microsoft Edge)\n              //   * ReferenceError: PI is undefined             (Firefox)\n              //   * Uncaught ReferenceError: PI is not defined  (Chrome)\n\n              if (\n                e.message &&\n                e.message.match('\\\\W?'.concat(symbol.name, '\\\\W')) !== null\n              ) {\n                var symbolName =\n                  symbol.type === 'function' ? ''.concat(symbol.name, '()') : symbol.name;\n                log(\n                  (0, _internationalization.translator)('fes.misusedTopLevel', {\n                    symbolName: symbolName,\n                    symbolType: symbol.type,\n                    link: FAQ_URL\n                  })\n                );\n\n                return true;\n              }\n            });\n          };\n\n          // Exposing this primarily for unit testing.\n          _main.default.prototype._helpForMisusedAtTopLevelCode = helpForMisusedAtTopLevelCode;\n\n          if (document.readyState !== 'complete') {\n            window.addEventListener('error', helpForMisusedAtTopLevelCode, false);\n\n            // Our job is only to catch ReferenceErrors that are thrown when\n            // global (non-instance mode) p5 APIs are used at the top-level\n            // scope of a file, so we'll unbind our error listener now to make\n            // sure we don't log false positives later.\n            window.addEventListener('load', function() {\n              window.removeEventListener('error', helpForMisusedAtTopLevelCode, false);\n            });\n          }\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        {\n          '../../docs/reference/data.json': 1,\n          './constants': 43,\n          './internationalization': 48,\n          './main': 50\n        }\n      ],\n      46: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var constants = _interopRequireWildcard(_dereq_('./constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          /**\n           * @requires constants\n           */ function modeAdjust(a, b, c, d, mode) {\n            if (mode === constants.CORNER) {\n              return { x: a, y: b, w: c, h: d };\n            } else if (mode === constants.CORNERS) {\n              return { x: a, y: b, w: c - a, h: d - b };\n            } else if (mode === constants.RADIUS) {\n              return { x: a - c, y: b - d, w: 2 * c, h: 2 * d };\n            } else if (mode === constants.CENTER) {\n              return { x: a - c * 0.5, y: b - d * 0.5, w: c, h: d };\n            }\n          }\n          var _default = { modeAdjust: modeAdjust };\n          exports.default = _default;\n        },\n        { './constants': 43 }\n      ],\n      47: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var _internationalization = _dereq_('./internationalization');\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n\n          /**\n           * _globalInit\n           *\n           * TODO: ???\n           * if sketch is on window\n           * assume \"global\" mode\n           * and instantiate p5 automatically\n           * otherwise do nothing\n           *\n           * @private\n           * @return {Undefined}\n           */\n          var _globalInit = function _globalInit() {\n            if (!window.mocha) {\n              // If there is a setup or draw function on the window\n              // then instantiate p5 in \"global\" mode\n              if (\n                ((window.setup && typeof window.setup === 'function') ||\n                  (window.draw && typeof window.draw === 'function')) &&\n                !_main.default.instance\n              ) {\n                new _main.default();\n              }\n            }\n          };\n\n          // TODO: ???\n\n          // make a promise that resolves when the document is ready\n          var waitForDocumentReady = function waitForDocumentReady() {\n            return new Promise(function(resolve, reject) {\n              // if the page is ready, initialize p5 immediately\n              if (document.readyState === 'complete') {\n                resolve();\n                // if the page is still loading, add an event listener\n                // and initialize p5 as soon as it finishes loading\n              } else {\n                window.addEventListener('load', resolve, false);\n              }\n            });\n          };\n\n          // only load translations if we're using the full, un-minified library\n          var waitingForTranslator =\n            typeof IS_MINIFIED === 'undefined'\n              ? (0, _internationalization.initialize)()\n              : Promise.resolve();\n\n          Promise.all([waitForDocumentReady(), waitingForTranslator]).then(_globalInit);\n        },\n        { '../core/main': 50, './internationalization': 48 }\n      ],\n      48: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.initialize = exports.translator = void 0;\n          var _i18next = _interopRequireDefault(_dereq_('i18next'));\n          var _i18nextBrowserLanguagedetector = _interopRequireDefault(\n            _dereq_('i18next-browser-languagedetector')\n          );\n          var _translations = _interopRequireDefault(_dereq_('../../translations'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n\n          /**\n           * This is our translation function. Give it a key and\n           * it will retreive the appropriate string\n           * (within supported languages) according to the\n           * user's browser's language settings.\n           * @function translator\n           * @param {String} key a key that corresponds to a message in our translation files\n           * @param {Object} values values for use in the message under the given `key`\n           * @returns {String} message (with values inserted) in the user's browser language\n           * @private\n           */\n          var translator = function translator() {\n            console.debug('p5.js translator called before translations were loaded');\n            return '';\n          };\n          // (We'll set this to a real value in the init function below!)\n\n          /**\n           * Set up our translation function, with loaded languages\n           */ exports.translator = translator;\n          var initialize = function initialize() {\n            return new Promise(function(resolve, reject) {\n              _i18next.default\n                .use(_i18nextBrowserLanguagedetector.default)\n                .init({\n                  fallbackLng: 'en',\n                  nestingPrefix: '$tr(',\n                  nestingSuffix: ')',\n                  defaultNS: 'translation',\n                  interpolation: {\n                    escapeValue: false\n                  },\n\n                  detection: {\n                    checkWhitelist: false\n                  },\n\n                  resources: _translations.default\n                })\n                .then(\n                  function(translateFn) {\n                    exports.translator = translator = translateFn;\n                    resolve();\n                  },\n                  function(e) {\n                    return reject('Translations failed to load ('.concat(e, ')'));\n                  }\n                );\n            });\n          };\n          exports.initialize = initialize;\n        },\n        { '../../translations': 110, i18next: 30, 'i18next-browser-languagedetector': 27 }\n      ],\n      49: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('./main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @for p5\n           * @requires core\n           * These are functions that are part of the Processing API but are not part of\n           * the p5.js API. In some cases they have a new name, in others, they are\n           * removed completely. Not all unsupported Processing functions are listed here\n           * but we try to include ones that a user coming from Processing might likely\n           * call.\n           */ _main.default.prototype.pushStyle = function() {\n            throw new Error('pushStyle() not used, see push()');\n          };\n          _main.default.prototype.popStyle = function() {\n            throw new Error('popStyle() not used, see pop()');\n          };\n\n          _main.default.prototype.popMatrix = function() {\n            throw new Error('popMatrix() not used, see pop()');\n          };\n\n          _main.default.prototype.pushMatrix = function() {\n            throw new Error('pushMatrix() not used, see push()');\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { './main': 50 }\n      ],\n      50: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          _dereq_('./shim');\n\n          var constants = _interopRequireWildcard(_dereq_('./constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _classCallCheck(instance, Constructor) {\n            if (!(instance instanceof Constructor)) {\n              throw new TypeError('Cannot call a class as a function');\n            }\n          }\n          function _defineProperties(target, props) {\n            for (var i = 0; i < props.length; i++) {\n              var descriptor = props[i];\n              descriptor.enumerable = descriptor.enumerable || false;\n              descriptor.configurable = true;\n              if ('value' in descriptor) descriptor.writable = true;\n              Object.defineProperty(target, descriptor.key, descriptor);\n            }\n          }\n          function _createClass(Constructor, protoProps, staticProps) {\n            if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n            if (staticProps) _defineProperties(Constructor, staticProps);\n            return Constructor;\n          }\n\n          /**\n           * This is the p5 instance constructor.\n           *\n           * A p5 instance holds all the properties and methods related to\n           * a p5 sketch.  It expects an incoming sketch closure and it can also\n           * take an optional node parameter for attaching the generated p5 canvas\n           * to a node.  The sketch closure takes the newly created p5 instance as\n           * its sole argument and may optionally set <a href=\"#/p5/preload\">preload()</a>, <a href=\"#/p5/setup\">setup()</a>, and/or\n           * <a href=\"#/p5/draw\">draw()</a> properties on it for running a sketch.\n           *\n           * A p5 sketch can run in \"global\" or \"instance\" mode:\n           * \"global\"   - all properties and methods are attached to the window\n           * \"instance\" - all properties and methods are bound to this p5 object\n           *\n           * @class p5\n           * @constructor\n           * @param  {function}           sketch a closure that can set optional <a href=\"#/p5/preload\">preload()</a>,\n           *                              <a href=\"#/p5/setup\">setup()</a>, and/or <a href=\"#/p5/draw\">draw()</a> properties on the\n           *                              given p5 instance\n           * @param  {HTMLElement}        [node] element to attach canvas to\n           * @return {p5}                 a p5 instance\n           */ var p5 = /*#__PURE__*/ (function() {\n            function p5(sketch, node, sync) {\n              var _this = this;\n              _classCallCheck(this, p5);\n              //////////////////////////////////////////////\n              // PUBLIC p5 PROPERTIES AND METHODS\n              //////////////////////////////////////////////\n\n              /**\n               * Called directly before <a href=\"#/p5/setup\">setup()</a>, the <a href=\"#/p5/preload\">preload()</a> function is used to handle\n               * asynchronous loading of external files in a blocking way. If a preload\n               * function is defined, <a href=\"#/p5/setup\">setup()</a> will wait until any load calls within have\n               * finished. Nothing besides load calls (<a href=\"#/p5/loadImage\">loadImage</a>, <a href=\"#/p5/loadJSON\">loadJSON</a>, <a href=\"#/p5/loadFont\">loadFont</a>,\n               * <a href=\"#/p5/loadStrings\">loadStrings</a>, etc.) should be inside the preload function. If asynchronous\n               * loading is preferred, the load methods can instead be called in <a href=\"#/p5/setup\">setup()</a>\n               * or anywhere else with the use of a callback parameter.\n               * <br><br>\n               * By default the text \"loading...\" will be displayed. To make your own\n               * loading page, include an HTML element with id \"p5_loading\" in your\n               * page. More information <a href=\"http://bit.ly/2kQ6Nio\">here</a>.\n               *\n               * @method preload\n               * @example\n               * <div><code>\n               * let img;\n               * let c;\n               * function preload() {\n               *   // preload() runs once\n               *   img = loadImage('assets/laDefense.jpg');\n               * }\n               *\n               * function setup() {\n               *   // setup() waits until preload() is done\n               *   img.loadPixels();\n               *   // get color of middle pixel\n               *   c = img.get(img.width / 2, img.height / 2);\n               * }\n               *\n               * function draw() {\n               *   background(c);\n               *   image(img, 25, 25, 50, 50);\n               * }\n               * </code></div>\n               *\n               * @alt\n               * nothing displayed\n               *\n               */\n\n              /**\n               * The <a href=\"#/p5/setup\">setup()</a> function is called once when the program starts. It's used to\n               * define initial environment properties such as screen size and background\n               * color and to load media such as images and fonts as the program starts.\n               * There can only be one <a href=\"#/p5/setup\">setup()</a> function for each program and it shouldn't\n               * be called again after its initial execution.\n               * <br><br>\n               * Note: Variables declared within <a href=\"#/p5/setup\">setup()</a> are not accessible within other\n               * functions, including <a href=\"#/p5/draw\">draw()</a>.\n               *\n               * @method setup\n               * @example\n               * <div><code>\n               * let a = 0;\n               *\n               * function setup() {\n               *   background(0);\n               *   noStroke();\n               *   fill(102);\n               * }\n               *\n               * function draw() {\n               *   rect(a++ % width, 10, 2, 80);\n               * }\n               * </code></div>\n               *\n               * @alt\n               * nothing displayed\n               *\n               */\n\n              /**\n               * Called directly after <a href=\"#/p5/setup\">setup()</a>, the <a href=\"#/p5/draw\">draw()</a> function continuously executes\n               * the lines of code contained inside its block until the program is stopped\n               * or <a href=\"#/p5/noLoop\">noLoop()</a> is called. Note if <a href=\"#/p5/noLoop\">noLoop()</a> is called in <a href=\"#/p5/setup\">setup()</a>, <a href=\"#/p5/draw\">draw()</a> will\n               * still be executed once before stopping. <a href=\"#/p5/draw\">draw()</a> is called automatically and\n               * should never be called explicitly.\n               * <br><br>\n               * It should always be controlled with <a href=\"#/p5/noLoop\">noLoop()</a>, <a href=\"#/p5/redraw\">redraw()</a> and <a href=\"#/p5/loop\">loop()</a>. After\n               * <a href=\"#/p5/noLoop\">noLoop()</a> stops the code in <a href=\"#/p5/draw\">draw()</a> from executing, <a href=\"#/p5/redraw\">redraw()</a> causes the\n               * code inside <a href=\"#/p5/draw\">draw()</a> to execute once, and <a href=\"#/p5/loop\">loop()</a> will cause the code\n               * inside <a href=\"#/p5/draw\">draw()</a> to resume executing continuously.\n               * <br><br>\n               * The number of times <a href=\"#/p5/draw\">draw()</a> executes in each second may be controlled with\n               * the <a href=\"#/p5/frameRate\">frameRate()</a> function.\n               * <br><br>\n               * There can only be one <a href=\"#/p5/draw\">draw()</a> function for each sketch, and <a href=\"#/p5/draw\">draw()</a> must\n               * exist if you want the code to run continuously, or to process events such\n               * as <a href=\"#/p5/mousePressed\">mousePressed()</a>. Sometimes, you might have an empty call to <a href=\"#/p5/draw\">draw()</a> in\n               * your program, as shown in the above example.\n               * <br><br>\n               * It is important to note that the drawing coordinate system will be reset\n               * at the beginning of each <a href=\"#/p5/draw\">draw()</a> call. If any transformations are performed\n               * within <a href=\"#/p5/draw\">draw()</a> (ex: scale, rotate, translate), their effects will be\n               * undone at the beginning of <a href=\"#/p5/draw\">draw()</a>, so transformations will not accumulate\n               * over time. On the other hand, styling applied (ex: fill, stroke, etc) will\n               * remain in effect.\n               *\n               * @method draw\n               * @example\n               * <div><code>\n               * let yPos = 0;\n               * function setup() {\n               *   // setup() runs once\n               *   frameRate(30);\n               * }\n               * function draw() {\n               *   // draw() loops forever, until stopped\n               *   background(204);\n               *   yPos = yPos - 1;\n               *   if (yPos < 0) {\n               *     yPos = height;\n               *   }\n               *   line(0, yPos, width, yPos);\n               * }\n               * </code></div>\n               *\n               * @alt\n               * nothing displayed\n               *\n               */\n\n              //////////////////////////////////////////////\n              // PRIVATE p5 PROPERTIES AND METHODS\n              //////////////////////////////////////////////\n\n              this._setupDone = false;\n              // for handling hidpi\n              this._pixelDensity = Math.ceil(window.devicePixelRatio) || 1;\n              this._userNode = node;\n              this._curElement = null;\n              this._elements = [];\n              this._glAttributes = null;\n              this._requestAnimId = 0;\n              this._preloadCount = 0;\n              this._isGlobal = false;\n              this._loop = true;\n              this._initializeInstanceVariables();\n              this._defaultCanvasSize = {\n                width: 100,\n                height: 100\n              };\n\n              this._events = {\n                // keep track of user-events for unregistering later\n                mousemove: null,\n                mousedown: null,\n                mouseup: null,\n                dragend: null,\n                dragover: null,\n                click: null,\n                dblclick: null,\n                mouseover: null,\n                mouseout: null,\n                keydown: null,\n                keyup: null,\n                keypress: null,\n                touchstart: null,\n                touchmove: null,\n                touchend: null,\n                resize: null,\n                blur: null\n              };\n\n              this._millisStart = -1;\n\n              // States used in the custom random generators\n              this._lcg_random_state = null;\n              this._gaussian_previous = false;\n\n              this._events.wheel = null;\n              this._loadingScreenId = 'p5_loading';\n\n              // Allows methods to be registered on an instance that\n              // are instance-specific.\n              this._registeredMethods = {};\n              var methods = Object.getOwnPropertyNames(p5.prototype._registeredMethods);\n              var _iteratorNormalCompletion = true;\n              var _didIteratorError = false;\n              var _iteratorError = undefined;\n              try {\n                for (\n                  var _iterator = methods[Symbol.iterator](), _step;\n                  !(_iteratorNormalCompletion = (_step = _iterator.next()).done);\n                  _iteratorNormalCompletion = true\n                ) {\n                  var prop = _step.value;\n                  this._registeredMethods[prop] = p5.prototype._registeredMethods[\n                    prop\n                  ].slice();\n                }\n              } catch (err) {\n                _didIteratorError = true;\n                _iteratorError = err;\n              } finally {\n                try {\n                  if (!_iteratorNormalCompletion && _iterator.return != null) {\n                    _iterator.return();\n                  }\n                } finally {\n                  if (_didIteratorError) {\n                    throw _iteratorError;\n                  }\n                }\n              }\n\n              if (window.DeviceOrientationEvent) {\n                this._events.deviceorientation = null;\n              }\n              if (window.DeviceMotionEvent && !window._isNodeWebkit) {\n                this._events.devicemotion = null;\n              }\n\n              this._start = function() {\n                // Find node if id given\n                if (_this._userNode) {\n                  if (typeof _this._userNode === 'string') {\n                    _this._userNode = document.getElementById(_this._userNode);\n                  }\n                }\n\n                var context = _this._isGlobal ? window : _this;\n                var userPreload = context.preload;\n                if (userPreload) {\n                  // Setup loading screen\n                  // Set loading screen into dom if not present\n                  // Otherwise displays and removes user provided loading screen\n                  var loadingScreen = document.getElementById(_this._loadingScreenId);\n                  if (!loadingScreen) {\n                    loadingScreen = document.createElement('div');\n                    loadingScreen.innerHTML = 'Loading...';\n                    loadingScreen.style.position = 'absolute';\n                    loadingScreen.id = _this._loadingScreenId;\n                    var _node = _this._userNode || document.body;\n                    _node.appendChild(loadingScreen);\n                  }\n                  var _methods = _this._preloadMethods;\n                  for (var method in _methods) {\n                    // default to p5 if no object defined\n                    _methods[method] = _methods[method] || p5;\n                    var obj = _methods[method];\n                    //it's p5, check if it's global or instance\n                    if (obj === p5.prototype || obj === p5) {\n                      if (_this._isGlobal) {\n                        window[method] = _this._wrapPreload(_this, method);\n                      }\n                      obj = _this;\n                    }\n                    _this._registeredPreloadMethods[method] = obj[method];\n                    obj[method] = _this._wrapPreload(obj, method);\n                  }\n\n                  userPreload();\n                  _this._runIfPreloadsAreDone();\n                } else {\n                  _this._setup();\n                  _this._draw();\n                }\n              };\n\n              this._runIfPreloadsAreDone = function() {\n                var context = this._isGlobal ? window : this;\n                if (context._preloadCount === 0) {\n                  var loadingScreen = document.getElementById(context._loadingScreenId);\n                  if (loadingScreen) {\n                    loadingScreen.parentNode.removeChild(loadingScreen);\n                  }\n                  this._lastFrameTime = window.performance.now();\n                  context._setup();\n                  context._draw();\n                }\n              };\n\n              this._decrementPreload = function() {\n                var context = this._isGlobal ? window : this;\n                if (typeof context.preload === 'function') {\n                  context._setProperty('_preloadCount', context._preloadCount - 1);\n                  context._runIfPreloadsAreDone();\n                }\n              };\n\n              this._wrapPreload = function(obj, fnName) {\n                var _this2 = this;\n                return function() {\n                  //increment counter\n                  _this2._incrementPreload();\n                  //call original function\n                  for (\n                    var _len = arguments.length, args = new Array(_len), _key = 0;\n                    _key < _len;\n                    _key++\n                  ) {\n                    args[_key] = arguments[_key];\n                  }\n                  return _this2._registeredPreloadMethods[fnName].apply(obj, args);\n                };\n              };\n\n              this._incrementPreload = function() {\n                var context = this._isGlobal ? window : this;\n                context._setProperty('_preloadCount', context._preloadCount + 1);\n              };\n\n              this._setup = function() {\n                // Always create a default canvas.\n                // Later on if the user calls createCanvas, this default one\n                // will be replaced\n                _this.createCanvas(\n                  _this._defaultCanvasSize.width,\n                  _this._defaultCanvasSize.height,\n                  'p2d'\n                );\n\n                // return preload functions to their normal vals if switched by preload\n                var context = _this._isGlobal ? window : _this;\n                if (typeof context.preload === 'function') {\n                  for (var f in _this._preloadMethods) {\n                    context[f] = _this._preloadMethods[f][f];\n                    if (context[f] && _this) {\n                      context[f] = context[f].bind(_this);\n                    }\n                  }\n                }\n\n                // Record the time when sketch starts\n                _this._millisStart = window.performance.now();\n\n                // Short-circuit on this, in case someone used the library in \"global\"\n                // mode earlier\n                if (typeof context.setup === 'function') {\n                  context.setup();\n                }\n\n                // unhide any hidden canvases that were created\n                var canvases = document.getElementsByTagName('canvas');\n                var _iteratorNormalCompletion2 = true;\n                var _didIteratorError2 = false;\n                var _iteratorError2 = undefined;\n                try {\n                  for (\n                    var _iterator2 = canvases[Symbol.iterator](), _step2;\n                    !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done);\n                    _iteratorNormalCompletion2 = true\n                  ) {\n                    var k = _step2.value;\n                    if (k.dataset.hidden === 'true') {\n                      k.style.visibility = '';\n                      delete k.dataset.hidden;\n                    }\n                  }\n                } catch (err) {\n                  _didIteratorError2 = true;\n                  _iteratorError2 = err;\n                } finally {\n                  try {\n                    if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n                      _iterator2.return();\n                    }\n                  } finally {\n                    if (_didIteratorError2) {\n                      throw _iteratorError2;\n                    }\n                  }\n                }\n\n                _this._lastFrameTime = window.performance.now();\n                _this._setupDone = true;\n              };\n\n              this._draw = function() {\n                var now = window.performance.now();\n                var time_since_last = now - _this._lastFrameTime;\n                var target_time_between_frames = 1000 / _this._targetFrameRate;\n\n                // only draw if we really need to; don't overextend the browser.\n                // draw if we're within 5ms of when our next frame should paint\n                // (this will prevent us from giving up opportunities to draw\n                // again when it's really about time for us to do so). fixes an\n                // issue where the frameRate is too low if our refresh loop isn't\n                // in sync with the browser. note that we have to draw once even\n                // if looping is off, so we bypass the time delay if that\n                // is the case.\n                var epsilon = 5;\n                if (\n                  !_this._loop ||\n                  time_since_last >= target_time_between_frames - epsilon\n                ) {\n                  //mandatory update values(matrixs and stack)\n                  _this.redraw();\n                  _this._frameRate = 1000.0 / (now - _this._lastFrameTime);\n                  _this.deltaTime = now - _this._lastFrameTime;\n                  _this._setProperty('deltaTime', _this.deltaTime);\n                  _this._lastFrameTime = now;\n\n                  // If the user is actually using mouse module, then update\n                  // coordinates, otherwise skip. We can test this by simply\n                  // checking if any of the mouse functions are available or not.\n                  // NOTE : This reflects only in complete build or modular build.\n                  if (typeof _this._updateMouseCoords !== 'undefined') {\n                    _this._updateMouseCoords();\n\n                    //reset delta values so they reset even if there is no mouse event to set them\n                    // for example if the mouse is outside the screen\n                    _this._setProperty('movedX', 0);\n                    _this._setProperty('movedY', 0);\n                  }\n                }\n\n                // get notified the next time the browser gives us\n                // an opportunity to draw.\n                if (_this._loop) {\n                  _this._requestAnimId = window.requestAnimationFrame(_this._draw);\n                }\n              };\n\n              this._setProperty = function(prop, value) {\n                _this[prop] = value;\n                if (_this._isGlobal) {\n                  window[prop] = value;\n                }\n              };\n\n              /**\n               * Removes the entire p5 sketch. This will remove the canvas and any\n               * elements created by p5.js. It will also stop the draw loop and unbind\n               * any properties or methods from the window global scope. It will\n               * leave a variable p5 in case you wanted to create a new p5 sketch.\n               * If you like, you can set p5 = null to erase it. While all functions and\n               * variables and objects created by the p5 library will be removed, any\n               * other global variables created by your code will remain.\n               *\n               * @method remove\n               * @example\n               * <div class='norender'><code>\n               * function draw() {\n               *   ellipse(50, 50, 10, 10);\n               * }\n               *\n               * function mousePressed() {\n               *   remove(); // remove whole sketch on mouse press\n               * }\n               * </code></div>\n               *\n               * @alt\n               * nothing displayed\n               *\n               */\n              this.remove = function() {\n                var loadingScreen = document.getElementById(_this._loadingScreenId);\n                if (loadingScreen) {\n                  loadingScreen.parentNode.removeChild(loadingScreen);\n                  // Add 1 to preload counter to prevent the sketch ever executing setup()\n                  _this._incrementPreload();\n                }\n                if (_this._curElement) {\n                  // stop draw\n                  _this._loop = false;\n                  if (_this._requestAnimId) {\n                    window.cancelAnimationFrame(_this._requestAnimId);\n                  }\n\n                  // unregister events sketch-wide\n                  for (var ev in _this._events) {\n                    window.removeEventListener(ev, _this._events[ev]);\n                  }\n\n                  // remove DOM elements created by p5, and listeners\n                  var _iteratorNormalCompletion3 = true;\n                  var _didIteratorError3 = false;\n                  var _iteratorError3 = undefined;\n                  try {\n                    for (\n                      var _iterator3 = _this._elements[Symbol.iterator](), _step3;\n                      !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done);\n                      _iteratorNormalCompletion3 = true\n                    ) {\n                      var e = _step3.value;\n                      if (e.elt && e.elt.parentNode) {\n                        e.elt.parentNode.removeChild(e.elt);\n                      }\n                      for (var elt_ev in e._events) {\n                        e.elt.removeEventListener(elt_ev, e._events[elt_ev]);\n                      }\n                    }\n\n                    // call any registered remove functions\n                  } catch (err) {\n                    _didIteratorError3 = true;\n                    _iteratorError3 = err;\n                  } finally {\n                    try {\n                      if (!_iteratorNormalCompletion3 && _iterator3.return != null) {\n                        _iterator3.return();\n                      }\n                    } finally {\n                      if (_didIteratorError3) {\n                        throw _iteratorError3;\n                      }\n                    }\n                  }\n                  var self = _this;\n                  _this._registeredMethods.remove.forEach(function(f) {\n                    if (typeof f !== 'undefined') {\n                      f.call(self);\n                    }\n                  });\n                }\n                // remove window bound properties and methods\n                if (_this._isGlobal) {\n                  for (var p in p5.prototype) {\n                    try {\n                      delete window[p];\n                    } catch (x) {\n                      window[p] = undefined;\n                    }\n                  }\n                  for (var p2 in _this) {\n                    if (_this.hasOwnProperty(p2)) {\n                      try {\n                        delete window[p2];\n                      } catch (x) {\n                        window[p2] = undefined;\n                      }\n                    }\n                  }\n                  p5.instance = null;\n                }\n              };\n\n              // call any registered init functions\n              this._registeredMethods.init.forEach(function(f) {\n                if (typeof f !== 'undefined') {\n                  f.call(this);\n                }\n              }, this);\n              // Set up promise preloads\n              this._setupPromisePreloads();\n\n              var friendlyBindGlobal = this._createFriendlyGlobalFunctionBinder();\n\n              // If the user has created a global setup or draw function,\n              // assume \"global\" mode and make everything global (i.e. on the window)\n              if (!sketch) {\n                this._isGlobal = true;\n                p5.instance = this;\n                // Loop through methods on the prototype and attach them to the window\n                for (var p in p5.prototype) {\n                  if (typeof p5.prototype[p] === 'function') {\n                    var ev = p.substring(2);\n                    if (!this._events.hasOwnProperty(ev)) {\n                      if (Math.hasOwnProperty(p) && Math[p] === p5.prototype[p]) {\n                        // Multiple p5 methods are just native Math functions. These can be\n                        // called without any binding.\n                        friendlyBindGlobal(p, p5.prototype[p]);\n                      } else {\n                        friendlyBindGlobal(p, p5.prototype[p].bind(this));\n                      }\n                    }\n                  } else {\n                    friendlyBindGlobal(p, p5.prototype[p]);\n                  }\n                }\n                // Attach its properties to the window\n                for (var p2 in this) {\n                  if (this.hasOwnProperty(p2)) {\n                    friendlyBindGlobal(p2, this[p2]);\n                  }\n                }\n              } else {\n                // Else, the user has passed in a sketch closure that may set\n                // user-provided 'setup', 'draw', etc. properties on this instance of p5\n                sketch(this);\n              }\n\n              // Bind events to window (not using container div bc key events don't work)\n\n              for (var e in this._events) {\n                var f = this['_on'.concat(e)];\n                if (f) {\n                  var m = f.bind(this);\n                  window.addEventListener(e, m, { passive: false });\n                  this._events[e] = m;\n                }\n              }\n\n              var focusHandler = function focusHandler() {\n                _this._setProperty('focused', true);\n              };\n              var blurHandler = function blurHandler() {\n                _this._setProperty('focused', false);\n              };\n              window.addEventListener('focus', focusHandler);\n              window.addEventListener('blur', blurHandler);\n              this.registerMethod('remove', function() {\n                window.removeEventListener('focus', focusHandler);\n                window.removeEventListener('blur', blurHandler);\n              });\n\n              if (document.readyState === 'complete') {\n                this._start();\n              } else {\n                window.addEventListener('load', this._start.bind(this), false);\n              }\n            }\n            _createClass(p5, [\n              {\n                key: '_initializeInstanceVariables',\n                value: function _initializeInstanceVariables() {\n                  this._styles = [];\n\n                  this._bezierDetail = 20;\n                  this._curveDetail = 20;\n\n                  this._colorMode = constants.RGB;\n                  this._colorMaxes = {\n                    rgb: [255, 255, 255, 255],\n                    hsb: [360, 100, 100, 1],\n                    hsl: [360, 100, 100, 1]\n                  };\n\n                  this._downKeys = {}; //Holds the key codes of currently pressed keys\n                }\n              },\n              {\n                key: 'registerPreloadMethod',\n                value: function registerPreloadMethod(fnString, obj) {\n                  // obj = obj || p5.prototype;\n                  if (!p5.prototype._preloadMethods.hasOwnProperty(fnString)) {\n                    p5.prototype._preloadMethods[fnString] = obj;\n                  }\n                }\n              },\n              {\n                key: 'registerMethod',\n                value: function registerMethod(name, m) {\n                  var target = this || p5.prototype;\n                  if (!target._registeredMethods.hasOwnProperty(name)) {\n                    target._registeredMethods[name] = [];\n                  }\n                  target._registeredMethods[name].push(m);\n                }\n\n                // create a function which provides a standardized process for binding\n                // globals; this is implemented as a factory primarily so that there's a\n                // way to redefine what \"global\" means for the binding function so it\n                // can be used in scenarios like unit testing where the window object\n                // might not exist\n              },\n              {\n                key: '_createFriendlyGlobalFunctionBinder',\n                value: function _createFriendlyGlobalFunctionBinder() {\n                  var options =\n                    arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n                  var globalObject = options.globalObject || window;\n                  var log = options.log || console.log.bind(console);\n                  var propsToForciblyOverwrite = {\n                    // p5.print actually always overwrites an existing global function,\n                    // albeit one that is very unlikely to be used:\n                    //\n                    //   https://developer.mozilla.org/en-US/docs/Web/API/Window/print\n                    print: true\n                  };\n\n                  return function(prop, value) {\n                    if (\n                      !p5.disableFriendlyErrors &&\n                      typeof IS_MINIFIED === 'undefined' &&\n                      typeof value === 'function' &&\n                      !(prop in p5.prototype._preloadMethods)\n                    ) {\n                      try {\n                        // Because p5 has so many common function names, it's likely\n                        // that users may accidentally overwrite global p5 functions with\n                        // their own variables. Let's allow this but log a warning to\n                        // help users who may be doing this unintentionally.\n                        //\n                        // For more information, see:\n                        //\n                        //   https://github.com/processing/p5.js/issues/1317\n\n                        if (prop in globalObject && !(prop in propsToForciblyOverwrite)) {\n                          throw new Error('global \"'.concat(prop, '\" already exists'));\n                        }\n\n                        // It's possible that this might throw an error because there\n                        // are a lot of edge-cases in which `Object.defineProperty` might\n                        // not succeed; since this functionality is only intended to\n                        // help beginners anyways, we'll just catch such an exception\n                        // if it occurs, and fall back to legacy behavior.\n                        Object.defineProperty(globalObject, prop, {\n                          configurable: true,\n                          enumerable: true,\n                          get: function get() {\n                            return value;\n                          },\n                          set: function set(newValue) {\n                            Object.defineProperty(globalObject, prop, {\n                              configurable: true,\n                              enumerable: true,\n                              value: newValue,\n                              writable: true\n                            });\n\n                            log(\n                              'You just changed the value of \"'.concat(\n                                prop,\n                                '\", which was a p5 function. This could cause problems later if you\\'re not careful.'\n                              )\n                            );\n                          }\n                        });\n                      } catch (e) {\n                        log(\n                          'p5 had problems creating the global function \"'.concat(\n                            prop,\n                            '\", possibly because your code is already using that name as a variable. You may want to rename your variable to something else.'\n                          )\n                        );\n\n                        globalObject[prop] = value;\n                      }\n                    } else {\n                      globalObject[prop] = value;\n                    }\n                  };\n                }\n              }\n            ]);\n            return p5;\n          })();\n\n          // This is a pointer to our global mode p5 instance, if we're in\n          // global mode.\n          p5.instance = null;\n\n          /**\n           * Allows for the friendly error system (FES) to be turned off when creating a sketch,\n           * which can give a significant boost to performance when needed.\n           * See <a href='https://github.com/processing/p5.js/wiki/Optimizing-p5.js-Code-for-Performance#disable-the-friendly-error-system-fes'>\n           * disabling the friendly error system</a>.\n           *\n           * @property {Boolean} disableFriendlyErrors\n           * @example\n           * <div class=\"norender notest\"><code>\n           * p5.disableFriendlyErrors = true;\n           *\n           * function setup() {\n           *   createCanvas(100, 50);\n           * }\n           * </code></div>\n           */\n          p5.disableFriendlyErrors = false;\n\n          // attach constants to p5 prototype\n          for (var k in constants) {\n            p5.prototype[k] = constants[k];\n          }\n\n          // functions that cause preload to wait\n          // more can be added by using registerPreloadMethod(func)\n          p5.prototype._preloadMethods = {\n            loadJSON: p5.prototype,\n            loadImage: p5.prototype,\n            loadStrings: p5.prototype,\n            loadXML: p5.prototype,\n            loadBytes: p5.prototype,\n            loadTable: p5.prototype,\n            loadFont: p5.prototype,\n            loadModel: p5.prototype,\n            loadShader: p5.prototype\n          };\n\n          p5.prototype._registeredMethods = { init: [], pre: [], post: [], remove: [] };\n\n          p5.prototype._registeredPreloadMethods = {};\n          var _default = p5;\n          exports.default = _default;\n        },\n        { './constants': 43, './shim': 61 }\n      ],\n      51: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('./main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module DOM\n           * @submodule DOM\n           * @for p5.Element\n           */ /**\n           * Base class for all elements added to a sketch, including canvas,\n           * graphics buffers, and other HTML elements. It is not called directly, but <a href=\"#/p5.Element\">p5.Element</a>\n           * objects are created by calling <a href=\"#/p5/createCanvas\">createCanvas</a>, <a href=\"#/p5/createGraphics\">createGraphics</a>,\n           * <a href=\"#/p5/createDiv\">createDiv</a>, <a href=\"#/p5/createImg\">createImg</a>, <a href=\"#/p5/createInput\">createInput</a>, etc.\n           *\n           * @class p5.Element\n           * @constructor\n           * @param {String} elt DOM node that is wrapped\n           * @param {p5} [pInst] pointer to p5 instance\n           */ _main.default.Element = function(elt, pInst) {\n            /**\n             * Underlying HTML element. All normal HTML methods can be called on this.\n             * @example\n             * <div>\n             * <code>\n             * function setup() {\n             *   let c = createCanvas(50, 50);\n             *   c.elt.style.border = '5px solid red';\n             * }\n             *\n             * function draw() {\n             *   background(220);\n             * }\n             * </code>\n             * </div>\n             *\n             * @property elt\n             * @readOnly\n             */\n            this.elt = elt;\n            this._pInst = this._pixelsState = pInst;\n            this._events = {};\n            this.width = this.elt.offsetWidth;\n            this.height = this.elt.offsetHeight;\n          };\n\n          /**\n           *\n           * Attaches the element to the parent specified. A way of setting\n           * the container for the element. Accepts either a string ID, DOM\n           * node, or <a href=\"#/p5.Element\">p5.Element</a>. If no arguments given, parent node is returned.\n           * For more ways to position the canvas, see the\n           * <a href='https://github.com/processing/p5.js/wiki/Positioning-your-canvas'>\n           * positioning the canvas</a> wiki page.\n           *\n           * @method parent\n           * @param  {String|p5.Element|Object} parent the ID, DOM node, or <a href=\"#/p5.Element\">p5.Element</a>\n           *                         of desired parent element\n           * @chainable\n           *\n           * @example\n           * <div class=\"norender notest\"><code>\n           * // in the html file:\n           * // &lt;div id=\"myContainer\">&lt;/div>\n           *\n           * // in the js file:\n           * let cnv = createCanvas(100, 100);\n           * cnv.parent('myContainer');\n           * </code></div>\n           * <div class='norender'><code>\n           * let div0 = createDiv('this is the parent');\n           * let div1 = createDiv('this is the child');\n           * div1.parent(div0); // use p5.Element\n           * </code></div>\n           * <div class='norender'><code>\n           * let div0 = createDiv('this is the parent');\n           * div0.id('apples');\n           * let div1 = createDiv('this is the child');\n           * div1.parent('apples'); // use id\n           * </code></div>\n           * <div class='norender notest'><code>\n           * let elt = document.getElementById('myParentDiv');\n           * let div1 = createDiv('this is the child');\n           * div1.parent(elt); // use element from page\n           * </code></div>\n           *\n           * @alt\n           * no display.\n           */\n          /**\n           * @method parent\n           * @return {p5.Element}\n           *\n           */\n          _main.default.Element.prototype.parent = function(p) {\n            if (typeof p === 'undefined') {\n              return this.elt.parentNode;\n            }\n\n            if (typeof p === 'string') {\n              if (p[0] === '#') {\n                p = p.substring(1);\n              }\n              p = document.getElementById(p);\n            } else if (p instanceof _main.default.Element) {\n              p = p.elt;\n            }\n            p.appendChild(this.elt);\n            return this;\n          };\n\n          /**\n           *\n           * Sets the ID of the element. If no ID argument is passed in, it instead\n           * returns the current ID of the element.\n           * Note that only one element can have a particular id in a page.\n           * The <a href=\"#/p5.Element/class\">.class()</a> function can be used\n           * to identify multiple elements with the same class name.\n           *\n           * @method id\n           * @param  {String} id ID of the element\n           * @chainable\n           *\n           * @example\n           * <div class='norender'><code>\n           * function setup() {\n           *   let cnv = createCanvas(100, 100);\n           *   // Assigns a CSS selector ID to\n           *   // the canvas element.\n           *   cnv.id('mycanvas');\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no display.\n           */\n          /**\n           * @method id\n           * @return {String} the id of the element\n           */\n          _main.default.Element.prototype.id = function(id) {\n            if (typeof id === 'undefined') {\n              return this.elt.id;\n            }\n\n            this.elt.id = id;\n            this.width = this.elt.offsetWidth;\n            this.height = this.elt.offsetHeight;\n            return this;\n          };\n\n          /**\n           *\n           * Adds given class to the element. If no class argument is passed in, it\n           * instead returns a string containing the current class(es) of the element.\n           *\n           * @method class\n           * @param  {String} class class to add\n           * @chainable\n           *\n           * @example\n           * <div class='norender'><code>\n           * function setup() {\n           *   let cnv = createCanvas(100, 100);\n           *   // Assigns a CSS selector class 'small'\n           *   // to the canvas element.\n           *   cnv.class('small');\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no display.\n           */\n          /**\n           * @method class\n           * @return {String} the class of the element\n           */\n          _main.default.Element.prototype.class = function(c) {\n            if (typeof c === 'undefined') {\n              return this.elt.className;\n            }\n\n            this.elt.className = c;\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/mousePressed\">mousePressed()</a> function is called once after every time a\n           * mouse button is pressed over the element.\n           * Some mobile browsers may also trigger this event on a touch screen,\n           * if the user performs a quick tap.\n           * This can be used to attach element specific event listeners.\n           *\n           * @method mousePressed\n           * @param  {Function|Boolean} fxn function to be fired when mouse is\n           *                                pressed over the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let cnv;\n           * let d;\n           * let g;\n           * function setup() {\n           *   cnv = createCanvas(100, 100);\n           *   cnv.mousePressed(changeGray); // attach listener for\n           *   // canvas click only\n           *   d = 10;\n           *   g = 100;\n           * }\n           *\n           * function draw() {\n           *   background(g);\n           *   ellipse(width / 2, height / 2, d, d);\n           * }\n           *\n           * // this function fires with any click anywhere\n           * function mousePressed() {\n           *   d = d + 10;\n           * }\n           *\n           * // this function fires only when cnv is clicked\n           * function changeGray() {\n           *   g = random(0, 255);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.Element.prototype.mousePressed = function(fxn) {\n            // Prepend the mouse property setters to the event-listener.\n            // This is required so that mouseButton is set correctly prior to calling the callback (fxn).\n            // For details, see https://github.com/processing/p5.js/issues/3087.\n            var eventPrependedFxn = function eventPrependedFxn(event) {\n              this._pInst._setProperty('mouseIsPressed', true);\n              this._pInst._setMouseButton(event);\n              // Pass along the return-value of the callback:\n              return fxn.call(this);\n            };\n            // Pass along the event-prepended form of the callback.\n            _main.default.Element._adjustListener('mousedown', eventPrependedFxn, this);\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/doubleClicked\">doubleClicked()</a> function is called once after every time a\n           * mouse button is pressed twice over the element. This can be used to\n           * attach element and action specific event listeners.\n           *\n           * @method doubleClicked\n           * @param  {Function|Boolean} fxn function to be fired when mouse is\n           *                                double clicked over the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @return {p5.Element}\n           * @example\n           * <div class='norender'><code>\n           * let cnv;\n           * let d;\n           * let g;\n           * function setup() {\n           *   cnv = createCanvas(100, 100);\n           *   cnv.doubleClicked(changeGray); // attach listener for\n           *   // canvas double click only\n           *   d = 10;\n           *   g = 100;\n           * }\n           *\n           * function draw() {\n           *   background(g);\n           *   ellipse(width / 2, height / 2, d, d);\n           * }\n           *\n           * // this function fires with any double click anywhere\n           * function doubleClicked() {\n           *   d = d + 10;\n           * }\n           *\n           * // this function fires only when cnv is double clicked\n           * function changeGray() {\n           *   g = random(0, 255);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.Element.prototype.doubleClicked = function(fxn) {\n            _main.default.Element._adjustListener('dblclick', fxn, this);\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/mouseWheel\">mouseWheel()</a> function is called once after every time a\n           * mouse wheel is scrolled over the element. This can be used to\n           * attach element specific event listeners.\n           * <br><br>\n           * The function accepts a callback function as argument which will be executed\n           * when the `wheel` event is triggered on the element, the callback function is\n           * passed one argument `event`. The `event.deltaY` property returns negative\n           * values if the mouse wheel is rotated up or away from the user and positive\n           * in the other direction. The `event.deltaX` does the same as `event.deltaY`\n           * except it reads the horizontal wheel scroll of the mouse wheel.\n           * <br><br>\n           * On OS X with \"natural\" scrolling enabled, the `event.deltaY` values are\n           * reversed.\n           *\n           * @method mouseWheel\n           * @param  {Function|Boolean} fxn function to be fired when mouse is\n           *                                scrolled over the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let cnv;\n           * let d;\n           * let g;\n           * function setup() {\n           *   cnv = createCanvas(100, 100);\n           *   cnv.mouseWheel(changeSize); // attach listener for\n           *   // activity on canvas only\n           *   d = 10;\n           *   g = 100;\n           * }\n           *\n           * function draw() {\n           *   background(g);\n           *   ellipse(width / 2, height / 2, d, d);\n           * }\n           *\n           * // this function fires with mousewheel movement\n           * // anywhere on screen\n           * function mouseWheel() {\n           *   g = g + 10;\n           * }\n           *\n           * // this function fires with mousewheel movement\n           * // over canvas only\n           * function changeSize(event) {\n           *   if (event.deltaY > 0) {\n           *     d = d + 10;\n           *   } else {\n           *     d = d - 10;\n           *   }\n           * }\n           * </code></div>\n           *\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.Element.prototype.mouseWheel = function(fxn) {\n            _main.default.Element._adjustListener('wheel', fxn, this);\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/mouseReleased\">mouseReleased()</a> function is called once after every time a\n           * mouse button is released over the element.\n           * Some mobile browsers may also trigger this event on a touch screen,\n           * if the user performs a quick tap.\n           * This can be used to attach element specific event listeners.\n           *\n           * @method mouseReleased\n           * @param  {Function|Boolean} fxn function to be fired when mouse is\n           *                                released over the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let cnv;\n           * let d;\n           * let g;\n           * function setup() {\n           *   cnv = createCanvas(100, 100);\n           *   cnv.mouseReleased(changeGray); // attach listener for\n           *   // activity on canvas only\n           *   d = 10;\n           *   g = 100;\n           * }\n           *\n           * function draw() {\n           *   background(g);\n           *   ellipse(width / 2, height / 2, d, d);\n           * }\n           *\n           * // this function fires after the mouse has been\n           * // released\n           * function mouseReleased() {\n           *   d = d + 10;\n           * }\n           *\n           * // this function fires after the mouse has been\n           * // released while on canvas\n           * function changeGray() {\n           *   g = random(0, 255);\n           * }\n           * </code></div>\n           *\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.Element.prototype.mouseReleased = function(fxn) {\n            _main.default.Element._adjustListener('mouseup', fxn, this);\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/mouseClicked\">mouseClicked()</a> function is called once after a mouse button is\n           * pressed and released over the element.\n           * Some mobile browsers may also trigger this event on a touch screen,\n           * if the user performs a quick tap.\n           * This can be used to attach element specific event listeners.\n           *\n           * @method mouseClicked\n           * @param  {Function|Boolean} fxn function to be fired when mouse is\n           *                                clicked over the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let cnv;\n           * let d;\n           * let g;\n           *\n           * function setup() {\n           *   cnv = createCanvas(100, 100);\n           *   cnv.mouseClicked(changeGray); // attach listener for\n           *   // activity on canvas only\n           *   d = 10;\n           *   g = 100;\n           * }\n           *\n           * function draw() {\n           *   background(g);\n           *   ellipse(width / 2, height / 2, d, d);\n           * }\n           *\n           * // this function fires after the mouse has been\n           * // clicked anywhere\n           * function mouseClicked() {\n           *   d = d + 10;\n           * }\n           *\n           * // this function fires after the mouse has been\n           * // clicked on canvas\n           * function changeGray() {\n           *   g = random(0, 255);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.Element.prototype.mouseClicked = function(fxn) {\n            _main.default.Element._adjustListener('click', fxn, this);\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/mouseMoved\">mouseMoved()</a> function is called once every time a\n           * mouse moves over the element. This can be used to attach an\n           * element specific event listener.\n           *\n           * @method mouseMoved\n           * @param  {Function|Boolean} fxn function to be fired when a mouse moves\n           *                                over the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let cnv;\n           * let d = 30;\n           * let g;\n           * function setup() {\n           *   cnv = createCanvas(100, 100);\n           *   cnv.mouseMoved(changeSize); // attach listener for\n           *   // activity on canvas only\n           *   d = 10;\n           *   g = 100;\n           * }\n           *\n           * function draw() {\n           *   background(g);\n           *   fill(200);\n           *   ellipse(width / 2, height / 2, d, d);\n           * }\n           *\n           * // this function fires when mouse moves anywhere on\n           * // page\n           * function mouseMoved() {\n           *   g = g + 5;\n           *   if (g > 255) {\n           *     g = 0;\n           *   }\n           * }\n           *\n           * // this function fires when mouse moves over canvas\n           * function changeSize() {\n           *   d = d + 2;\n           *   if (d > 100) {\n           *     d = 0;\n           *   }\n           * }\n           * </code></div>\n           *\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.Element.prototype.mouseMoved = function(fxn) {\n            _main.default.Element._adjustListener('mousemove', fxn, this);\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/mouseOver\">mouseOver()</a> function is called once after every time a\n           * mouse moves onto the element. This can be used to attach an\n           * element specific event listener.\n           *\n           * @method mouseOver\n           * @param  {Function|Boolean} fxn function to be fired when a mouse moves\n           *                                onto the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let cnv;\n           * let d;\n           * function setup() {\n           *   cnv = createCanvas(100, 100);\n           *   cnv.mouseOver(changeGray);\n           *   d = 10;\n           * }\n           *\n           * function draw() {\n           *   ellipse(width / 2, height / 2, d, d);\n           * }\n           *\n           * function changeGray() {\n           *   d = d + 10;\n           *   if (d > 100) {\n           *     d = 0;\n           *   }\n           * }\n           * </code></div>\n           *\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.Element.prototype.mouseOver = function(fxn) {\n            _main.default.Element._adjustListener('mouseover', fxn, this);\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/mouseOut\">mouseOut()</a> function is called once after every time a\n           * mouse moves off the element. This can be used to attach an\n           * element specific event listener.\n           *\n           * @method mouseOut\n           * @param  {Function|Boolean} fxn function to be fired when a mouse\n           *                                moves off of an element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let cnv;\n           * let d;\n           * function setup() {\n           *   cnv = createCanvas(100, 100);\n           *   cnv.mouseOut(changeGray);\n           *   d = 10;\n           * }\n           *\n           * function draw() {\n           *   ellipse(width / 2, height / 2, d, d);\n           * }\n           *\n           * function changeGray() {\n           *   d = d + 10;\n           *   if (d > 100) {\n           *     d = 0;\n           *   }\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.Element.prototype.mouseOut = function(fxn) {\n            _main.default.Element._adjustListener('mouseout', fxn, this);\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/touchStarted\">touchStarted()</a> function is called once after every time a touch is\n           * registered. This can be used to attach element specific event listeners.\n           *\n           * @method touchStarted\n           * @param  {Function|Boolean} fxn function to be fired when a touch\n           *                                starts over the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let cnv;\n           * let d;\n           * let g;\n           * function setup() {\n           *   cnv = createCanvas(100, 100);\n           *   cnv.touchStarted(changeGray); // attach listener for\n           *   // canvas click only\n           *   d = 10;\n           *   g = 100;\n           * }\n           *\n           * function draw() {\n           *   background(g);\n           *   ellipse(width / 2, height / 2, d, d);\n           * }\n           *\n           * // this function fires with any touch anywhere\n           * function touchStarted() {\n           *   d = d + 10;\n           * }\n           *\n           * // this function fires only when cnv is clicked\n           * function changeGray() {\n           *   g = random(0, 255);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.Element.prototype.touchStarted = function(fxn) {\n            _main.default.Element._adjustListener('touchstart', fxn, this);\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/touchMoved\">touchMoved()</a> function is called once after every time a touch move is\n           * registered. This can be used to attach element specific event listeners.\n           *\n           * @method touchMoved\n           * @param  {Function|Boolean} fxn function to be fired when a touch moves over\n           *                                the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let cnv;\n           * let g;\n           * function setup() {\n           *   cnv = createCanvas(100, 100);\n           *   cnv.touchMoved(changeGray); // attach listener for\n           *   // canvas click only\n           *   g = 100;\n           * }\n           *\n           * function draw() {\n           *   background(g);\n           * }\n           *\n           * // this function fires only when cnv is clicked\n           * function changeGray() {\n           *   g = random(0, 255);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.Element.prototype.touchMoved = function(fxn) {\n            _main.default.Element._adjustListener('touchmove', fxn, this);\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/touchEnded\">touchEnded()</a> function is called once after every time a touch is\n           * registered. This can be used to attach element specific event listeners.\n           *\n           * @method touchEnded\n           * @param  {Function|Boolean} fxn function to be fired when a touch ends\n           *                                over the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let cnv;\n           * let d;\n           * let g;\n           * function setup() {\n           *   cnv = createCanvas(100, 100);\n           *   cnv.touchEnded(changeGray); // attach listener for\n           *   // canvas click only\n           *   d = 10;\n           *   g = 100;\n           * }\n           *\n           * function draw() {\n           *   background(g);\n           *   ellipse(width / 2, height / 2, d, d);\n           * }\n           *\n           * // this function fires with any touch anywhere\n           * function touchEnded() {\n           *   d = d + 10;\n           * }\n           *\n           * // this function fires only when cnv is clicked\n           * function changeGray() {\n           *   g = random(0, 255);\n           * }\n           * </code></div>\n           *\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.Element.prototype.touchEnded = function(fxn) {\n            _main.default.Element._adjustListener('touchend', fxn, this);\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/dragOver\">dragOver()</a> function is called once after every time a\n           * file is dragged over the element. This can be used to attach an\n           * element specific event listener.\n           *\n           * @method dragOver\n           * @param  {Function|Boolean} fxn function to be fired when a file is\n           *                                dragged over the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div><code>\n           * // To test this sketch, simply drag a\n           * // file over the canvas\n           * function setup() {\n           *   let c = createCanvas(100, 100);\n           *   background(200);\n           *   textAlign(CENTER);\n           *   text('Drag file', width / 2, height / 2);\n           *   c.dragOver(dragOverCallback);\n           * }\n           *\n           * // This function will be called whenever\n           * // a file is dragged over the canvas\n           * function dragOverCallback() {\n           *   background(240);\n           *   text('Dragged over', width / 2, height / 2);\n           * }\n           * </code></div>\n           * @alt\n           * nothing displayed\n           */\n          _main.default.Element.prototype.dragOver = function(fxn) {\n            _main.default.Element._adjustListener('dragover', fxn, this);\n            return this;\n          };\n\n          /**\n           * The .dragLeave() function is called once after every time a\n           * dragged file leaves the element area. This can be used to attach an\n           * element specific event listener.\n           *\n           * @method dragLeave\n           * @param  {Function|Boolean} fxn function to be fired when a file is\n           *                                dragged off the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div><code>\n           * // To test this sketch, simply drag a file\n           * // over and then out of the canvas area\n           * function setup() {\n           *   let c = createCanvas(100, 100);\n           *   background(200);\n           *   textAlign(CENTER);\n           *   text('Drag file', width / 2, height / 2);\n           *   c.dragLeave(dragLeaveCallback);\n           * }\n           *\n           * // This function will be called whenever\n           * // a file is dragged out of the canvas\n           * function dragLeaveCallback() {\n           *   background(240);\n           *   text('Dragged off', width / 2, height / 2);\n           * }\n           * </code></div>\n           * @alt\n           * nothing displayed\n           */\n          _main.default.Element.prototype.dragLeave = function(fxn) {\n            _main.default.Element._adjustListener('dragleave', fxn, this);\n            return this;\n          };\n\n          // General handler for event attaching and detaching\n          _main.default.Element._adjustListener = function(ev, fxn, ctx) {\n            if (fxn === false) {\n              _main.default.Element._detachListener(ev, ctx);\n            } else {\n              _main.default.Element._attachListener(ev, fxn, ctx);\n            }\n            return this;\n          };\n\n          _main.default.Element._attachListener = function(ev, fxn, ctx) {\n            // detach the old listener if there was one\n            if (ctx._events[ev]) {\n              _main.default.Element._detachListener(ev, ctx);\n            }\n            var f = fxn.bind(ctx);\n            ctx.elt.addEventListener(ev, f, false);\n            ctx._events[ev] = f;\n          };\n\n          _main.default.Element._detachListener = function(ev, ctx) {\n            var f = ctx._events[ev];\n            ctx.elt.removeEventListener(ev, f, false);\n            ctx._events[ev] = null;\n          };\n\n          /**\n           * Helper fxn for sharing pixel methods\n           *\n           */\n          _main.default.Element.prototype._setProperty = function(prop, value) {\n            this[prop] = value;\n          };\n          var _default = _main.default.Element;\n          exports.default = _default;\n        },\n        { './main': 50 }\n      ],\n      52: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('./main'));\n          var constants = _interopRequireWildcard(_dereq_('./constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Rendering\n           * @submodule Rendering\n           * @for p5\n           */ /**\n           * Thin wrapper around a renderer, to be used for creating a\n           * graphics buffer object. Use this class if you need\n           * to draw into an off-screen graphics buffer. The two parameters define the\n           * width and height in pixels. The fields and methods for this class are\n           * extensive, but mirror the normal drawing API for p5.\n           *\n           * @class p5.Graphics\n           * @constructor\n           * @extends p5.Element\n           * @param {Number} w            width\n           * @param {Number} h            height\n           * @param {Constant} renderer   the renderer to use, either P2D or WEBGL\n           * @param {p5} [pInst]          pointer to p5 instance\n           */ _main.default.Graphics = function(w, h, renderer, pInst) {\n            var r = renderer || constants.P2D;\n\n            this.canvas = document.createElement('canvas');\n            var node = pInst._userNode || document.body;\n            node.appendChild(this.canvas);\n\n            _main.default.Element.call(this, this.canvas, pInst);\n\n            // bind methods and props of p5 to the new object\n            for (var p in _main.default.prototype) {\n              if (!this[p]) {\n                if (typeof _main.default.prototype[p] === 'function') {\n                  this[p] = _main.default.prototype[p].bind(this);\n                } else {\n                  this[p] = _main.default.prototype[p];\n                }\n              }\n            }\n\n            _main.default.prototype._initializeInstanceVariables.apply(this);\n            this.width = w;\n            this.height = h;\n            this._pixelDensity = pInst._pixelDensity;\n\n            if (r === constants.WEBGL) {\n              this._renderer = new _main.default.RendererGL(this.canvas, this, false);\n            } else {\n              this._renderer = new _main.default.Renderer2D(this.canvas, this, false);\n            }\n            pInst._elements.push(this);\n\n            this._renderer.resize(w, h);\n            this._renderer._applyDefaults();\n            return this;\n          };\n\n          _main.default.Graphics.prototype = Object.create(_main.default.Element.prototype);\n\n          /**\n           * Resets certain values such as those modified by functions in the Transform category\n           * and in the Lights category that are not automatically reset\n           * with graphics buffer objects. Calling this in <a href='#/p5/draw'>draw()</a> will copy the behavior\n           * of the standard canvas.\n           *\n           * @method reset\n           * @example\n           *\n           * <div><code>\n           * let pg;\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   background(0);\n           *   pg = createGraphics(50, 100);\n           *   pg.fill(0);\n           *   frameRate(5);\n           * }\n           * function draw() {\n           *   image(pg, width / 2, 0);\n           *   pg.background(255);\n           *   // p5.Graphics object behave a bit differently in some cases\n           *   // The normal canvas on the left resets the translate\n           *   // with every loop through draw()\n           *   // the graphics object on the right doesn't automatically reset\n           *   // so translate() is additive and it moves down the screen\n           *   rect(0, 0, width / 2, 5);\n           *   pg.rect(0, 0, width / 2, 5);\n           *   translate(0, 5, 0);\n           *   pg.translate(0, 5, 0);\n           * }\n           * function mouseClicked() {\n           *   // if you click you will see that\n           *   // reset() resets the translate back to the initial state\n           *   // of the Graphics object\n           *   pg.reset();\n           * }\n           * </code></div>\n           *\n           * @alt\n           * A white line on a black background stays still on the top-left half.\n           * A black line animates from top to bottom on a white background on the right half.\n           * When clicked, the black line starts back over at the top.\n           *\n           */\n          _main.default.Graphics.prototype.reset = function() {\n            this._renderer.resetMatrix();\n            if (this._renderer.isP3D) {\n              this._renderer._update();\n            }\n          };\n\n          /**\n           * Removes a Graphics object from the page and frees any resources\n           * associated with it.\n           *\n           * @method remove\n           *\n           * @example\n           * <div class='norender'><code>\n           * let bg;\n           * function setup() {\n           *   bg = createCanvas(100, 100);\n           *   bg.background(0);\n           *   image(bg, 0, 0);\n           *   bg.remove();\n           * }\n           * </code></div>\n           *\n           * <div><code>\n           * let bg;\n           * function setup() {\n           *   pixelDensity(1);\n           *   createCanvas(100, 100);\n           *   stroke(255);\n           *   fill(0);\n           *\n           *   // create and draw the background image\n           *   bg = createGraphics(100, 100);\n           *   bg.background(200);\n           *   bg.ellipse(50, 50, 80, 80);\n           * }\n           * function draw() {\n           *   let t = millis() / 1000;\n           *   // draw the background\n           *   if (bg) {\n           *     image(bg, frameCount % 100, 0);\n           *     image(bg, frameCount % 100 - 100, 0);\n           *   }\n           *   // draw the foreground\n           *   let p = p5.Vector.fromAngle(t, 35).add(50, 50);\n           *   ellipse(p.x, p.y, 30);\n           * }\n           * function mouseClicked() {\n           *   // remove the background\n           *   if (bg) {\n           *     bg.remove();\n           *     bg = null;\n           *   }\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no image\n           * a multi-colored circle moving back and forth over a scrolling background.\n           *\n           */\n          _main.default.Graphics.prototype.remove = function() {\n            if (this.elt.parentNode) {\n              this.elt.parentNode.removeChild(this.elt);\n            }\n            var idx = this._pInst._elements.indexOf(this);\n            if (idx !== -1) {\n              this._pInst._elements.splice(idx, 1);\n            }\n            for (var elt_ev in this._events) {\n              this.elt.removeEventListener(elt_ev, this._events[elt_ev]);\n            }\n          };\n          var _default = _main.default.Graphics;\n          exports.default = _default;\n        },\n        { './constants': 43, './main': 50 }\n      ],\n      53: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('./main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n\n          /**\n           * Main graphics and rendering context, as well as the base API\n           * implementation for p5.js \"core\". To be used as the superclass for\n           * Renderer2D and Renderer3D classes, respecitvely.\n           *\n           * @class p5.Renderer\n           * @constructor\n           * @extends p5.Element\n           * @param {String} elt DOM node that is wrapped\n           * @param {p5} [pInst] pointer to p5 instance\n           * @param {Boolean} [isMainCanvas] whether we're using it as main canvas\n           */\n          _main.default.Renderer = function(elt, pInst, isMainCanvas) {\n            _main.default.Element.call(this, elt, pInst);\n            this.canvas = elt;\n            this._pixelsState = pInst;\n            if (isMainCanvas) {\n              this._isMainCanvas = true;\n              // for pixel method sharing with pimage\n              this._pInst._setProperty('_curElement', this);\n              this._pInst._setProperty('canvas', this.canvas);\n              this._pInst._setProperty('width', this.width);\n              this._pInst._setProperty('height', this.height);\n            } else {\n              // hide if offscreen buffer by default\n              this.canvas.style.display = 'none';\n              this._styles = []; // non-main elt styles stored in p5.Renderer\n            }\n\n            this._textSize = 12;\n            this._textLeading = 15;\n            this._textFont = 'sans-serif';\n            this._textStyle = constants.NORMAL;\n            this._textAscent = null;\n            this._textDescent = null;\n            this._textAlign = constants.LEFT;\n            this._textBaseline = constants.BASELINE;\n\n            this._rectMode = constants.CORNER;\n            this._ellipseMode = constants.CENTER;\n            this._curveTightness = 0;\n            this._imageMode = constants.CORNER;\n\n            this._tint = null;\n            this._doStroke = true;\n            this._doFill = true;\n            this._strokeSet = false;\n            this._fillSet = false;\n          };\n\n          _main.default.Renderer.prototype = Object.create(_main.default.Element.prototype);\n\n          // the renderer should return a 'style' object that it wishes to\n          // store on the push stack.\n          _main.default.Renderer.prototype.push = function() {\n            return {\n              properties: {\n                _doStroke: this._doStroke,\n                _strokeSet: this._strokeSet,\n                _doFill: this._doFill,\n                _fillSet: this._fillSet,\n                _tint: this._tint,\n                _imageMode: this._imageMode,\n                _rectMode: this._rectMode,\n                _ellipseMode: this._ellipseMode,\n                _textFont: this._textFont,\n                _textLeading: this._textLeading,\n                _textSize: this._textSize,\n                _textAlign: this._textAlign,\n                _textBaseline: this._textBaseline,\n                _textStyle: this._textStyle\n              }\n            };\n          };\n\n          // a pop() operation is in progress\n          // the renderer is passed the 'style' object that it returned\n          // from its push() method.\n          _main.default.Renderer.prototype.pop = function(style) {\n            if (style.properties) {\n              // copy the style properties back into the renderer\n              Object.assign(this, style.properties);\n            }\n          };\n\n          /**\n           * Resize our canvas element.\n           */\n          _main.default.Renderer.prototype.resize = function(w, h) {\n            this.width = w;\n            this.height = h;\n            this.elt.width = w * this._pInst._pixelDensity;\n            this.elt.height = h * this._pInst._pixelDensity;\n            this.elt.style.width = ''.concat(w, 'px');\n            this.elt.style.height = ''.concat(h, 'px');\n            if (this._isMainCanvas) {\n              this._pInst._setProperty('width', this.width);\n              this._pInst._setProperty('height', this.height);\n            }\n          };\n\n          _main.default.Renderer.prototype.get = function(x, y, w, h) {\n            var pixelsState = this._pixelsState;\n            var pd = pixelsState._pixelDensity;\n            var canvas = this.canvas;\n\n            if (typeof x === 'undefined' && typeof y === 'undefined') {\n              // get()\n              x = y = 0;\n              w = pixelsState.width;\n              h = pixelsState.height;\n            } else {\n              x *= pd;\n              y *= pd;\n\n              if (typeof w === 'undefined' && typeof h === 'undefined') {\n                // get(x,y)\n                if (x < 0 || y < 0 || x >= canvas.width || y >= canvas.height) {\n                  return [0, 0, 0, 0];\n                }\n\n                return this._getPixel(x, y);\n              }\n              // get(x,y,w,h)\n            }\n\n            var region = new _main.default.Image(w, h);\n            region.canvas\n              .getContext('2d')\n              .drawImage(canvas, x, y, w * pd, h * pd, 0, 0, w, h);\n\n            return region;\n          };\n\n          _main.default.Renderer.prototype.textLeading = function(l) {\n            if (typeof l === 'number') {\n              this._setProperty('_textLeading', l);\n              return this._pInst;\n            }\n\n            return this._textLeading;\n          };\n\n          _main.default.Renderer.prototype.textSize = function(s) {\n            if (typeof s === 'number') {\n              this._setProperty('_textSize', s);\n              this._setProperty('_textLeading', s * constants._DEFAULT_LEADMULT);\n              return this._applyTextProperties();\n            }\n\n            return this._textSize;\n          };\n\n          _main.default.Renderer.prototype.textStyle = function(s) {\n            if (s) {\n              if (\n                s === constants.NORMAL ||\n                s === constants.ITALIC ||\n                s === constants.BOLD ||\n                s === constants.BOLDITALIC\n              ) {\n                this._setProperty('_textStyle', s);\n              }\n\n              return this._applyTextProperties();\n            }\n\n            return this._textStyle;\n          };\n\n          _main.default.Renderer.prototype.textAscent = function() {\n            if (this._textAscent === null) {\n              this._updateTextMetrics();\n            }\n            return this._textAscent;\n          };\n\n          _main.default.Renderer.prototype.textDescent = function() {\n            if (this._textDescent === null) {\n              this._updateTextMetrics();\n            }\n            return this._textDescent;\n          };\n\n          _main.default.Renderer.prototype.textAlign = function(h, v) {\n            if (typeof h !== 'undefined') {\n              this._setProperty('_textAlign', h);\n\n              if (typeof v !== 'undefined') {\n                this._setProperty('_textBaseline', v);\n              }\n\n              return this._applyTextProperties();\n            } else {\n              return {\n                horizontal: this._textAlign,\n                vertical: this._textBaseline\n              };\n            }\n          };\n\n          _main.default.Renderer.prototype.text = function(str, x, y, maxWidth, maxHeight) {\n            var p = this._pInst;\n            var cars;\n            var n;\n            var ii;\n            var jj;\n            var line;\n            var testLine;\n            var testWidth;\n            var words;\n            var totalHeight;\n            var finalMaxHeight = Number.MAX_VALUE;\n\n            if (!(this._doFill || this._doStroke)) {\n              return;\n            }\n\n            if (typeof str === 'undefined') {\n              return;\n            } else if (typeof str !== 'string') {\n              str = str.toString();\n            }\n\n            str = str.replace(/(\\t)/g, '  ');\n            cars = str.split('\\n');\n\n            if (typeof maxWidth !== 'undefined') {\n              totalHeight = 0;\n              for (ii = 0; ii < cars.length; ii++) {\n                line = '';\n                words = cars[ii].split(' ');\n                for (n = 0; n < words.length; n++) {\n                  testLine = ''.concat(line + words[n], ' ');\n                  testWidth = this.textWidth(testLine);\n                  if (testWidth > maxWidth) {\n                    line = ''.concat(words[n], ' ');\n                    totalHeight += p.textLeading();\n                  } else {\n                    line = testLine;\n                  }\n                }\n              }\n\n              if (this._rectMode === constants.CENTER) {\n                x -= maxWidth / 2;\n                y -= maxHeight / 2;\n              }\n\n              switch (this._textAlign) {\n                case constants.CENTER:\n                  x += maxWidth / 2;\n                  break;\n                case constants.RIGHT:\n                  x += maxWidth;\n                  break;\n              }\n\n              var baselineHacked = false;\n              if (typeof maxHeight !== 'undefined') {\n                switch (this._textBaseline) {\n                  case constants.BOTTOM:\n                    y += maxHeight - totalHeight;\n                    break;\n                  case constants.CENTER:\n                    y += (maxHeight - totalHeight) / 2;\n                    break;\n                  case constants.BASELINE:\n                    baselineHacked = true;\n                    this._textBaseline = constants.TOP;\n                    break;\n                }\n\n                // remember the max-allowed y-position for any line (fix to #928)\n                finalMaxHeight = y + maxHeight - p.textAscent();\n              }\n\n              for (ii = 0; ii < cars.length; ii++) {\n                line = '';\n                words = cars[ii].split(' ');\n                for (n = 0; n < words.length; n++) {\n                  testLine = ''.concat(line + words[n], ' ');\n                  testWidth = this.textWidth(testLine);\n                  if (testWidth > maxWidth && line.length > 0) {\n                    this._renderText(p, line, x, y, finalMaxHeight);\n                    line = ''.concat(words[n], ' ');\n                    y += p.textLeading();\n                  } else {\n                    line = testLine;\n                  }\n                }\n\n                this._renderText(p, line, x, y, finalMaxHeight);\n                y += p.textLeading();\n\n                if (baselineHacked) {\n                  this._textBaseline = constants.BASELINE;\n                }\n              }\n            } else {\n              // Offset to account for vertically centering multiple lines of text - no\n              // need to adjust anything for vertical align top or baseline\n              var offset = 0;\n\n              var vAlign = p.textAlign().vertical;\n              if (vAlign === constants.CENTER) {\n                offset = (cars.length - 1) * p.textLeading() / 2;\n              } else if (vAlign === constants.BOTTOM) {\n                offset = (cars.length - 1) * p.textLeading();\n              }\n\n              for (jj = 0; jj < cars.length; jj++) {\n                this._renderText(p, cars[jj], x, y - offset, finalMaxHeight);\n                y += p.textLeading();\n              }\n            }\n\n            return p;\n          };\n\n          _main.default.Renderer.prototype._applyDefaults = function() {\n            return this;\n          };\n\n          /**\n           * Helper fxn to check font type (system or otf)\n           */\n          _main.default.Renderer.prototype._isOpenType = function() {\n            var f =\n              arguments.length > 0 && arguments[0] !== undefined\n                ? arguments[0]\n                : this._textFont;\n            return _typeof(f) === 'object' && f.font && f.font.supported;\n          };\n\n          _main.default.Renderer.prototype._updateTextMetrics = function() {\n            if (this._isOpenType()) {\n              this._setProperty('_textAscent', this._textFont._textAscent());\n              this._setProperty('_textDescent', this._textFont._textDescent());\n              return this;\n            }\n\n            // Adapted from http://stackoverflow.com/a/25355178\n            var text = document.createElement('span');\n            text.style.fontFamily = this._textFont;\n            text.style.fontSize = ''.concat(this._textSize, 'px');\n            text.innerHTML = 'ABCjgq|';\n\n            var block = document.createElement('div');\n            block.style.display = 'inline-block';\n            block.style.width = '1px';\n            block.style.height = '0px';\n\n            var container = document.createElement('div');\n            container.appendChild(text);\n            container.appendChild(block);\n\n            container.style.height = '0px';\n            container.style.overflow = 'hidden';\n            document.body.appendChild(container);\n\n            block.style.verticalAlign = 'baseline';\n            var blockOffset = calculateOffset(block);\n            var textOffset = calculateOffset(text);\n            var ascent = blockOffset[1] - textOffset[1];\n\n            block.style.verticalAlign = 'bottom';\n            blockOffset = calculateOffset(block);\n            textOffset = calculateOffset(text);\n            var height = blockOffset[1] - textOffset[1];\n            var descent = height - ascent;\n\n            document.body.removeChild(container);\n\n            this._setProperty('_textAscent', ascent);\n            this._setProperty('_textDescent', descent);\n\n            return this;\n          };\n\n          /**\n           * Helper fxn to measure ascent and descent.\n           * Adapted from http://stackoverflow.com/a/25355178\n           */\n          function calculateOffset(object) {\n            var currentLeft = 0,\n              currentTop = 0;\n            if (object.offsetParent) {\n              do {\n                currentLeft += object.offsetLeft;\n                currentTop += object.offsetTop;\n              } while ((object = object.offsetParent));\n            } else {\n              currentLeft += object.offsetLeft;\n              currentTop += object.offsetTop;\n            }\n            return [currentLeft, currentTop];\n          }\n          var _default = _main.default.Renderer;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, './main': 50 }\n      ],\n      54: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n          var _main = _interopRequireDefault(_dereq_('./main'));\n          var constants = _interopRequireWildcard(_dereq_('./constants'));\n          var _filters = _interopRequireDefault(_dereq_('../image/filters'));\n\n          _dereq_('./p5.Renderer');\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n\n          /**\n           * p5.Renderer2D\n           * The 2D graphics canvas renderer class.\n           * extends p5.Renderer\n           */\n          var styleEmpty = 'rgba(0,0,0,0)';\n          // const alphaThreshold = 0.00125; // minimum visible\n\n          _main.default.Renderer2D = function(elt, pInst, isMainCanvas) {\n            _main.default.Renderer.call(this, elt, pInst, isMainCanvas);\n            this.drawingContext = this.canvas.getContext('2d');\n            this._pInst._setProperty('drawingContext', this.drawingContext);\n            return this;\n          };\n\n          _main.default.Renderer2D.prototype = Object.create(\n            _main.default.Renderer.prototype\n          );\n\n          _main.default.Renderer2D.prototype._applyDefaults = function() {\n            this._cachedFillStyle = this._cachedStrokeStyle = undefined;\n            this._cachedBlendMode = constants.BLEND;\n            this._setFill(constants._DEFAULT_FILL);\n            this._setStroke(constants._DEFAULT_STROKE);\n            this.drawingContext.lineCap = constants.ROUND;\n            this.drawingContext.font = 'normal 12px sans-serif';\n          };\n\n          _main.default.Renderer2D.prototype.resize = function(w, h) {\n            _main.default.Renderer.prototype.resize.call(this, w, h);\n            this.drawingContext.scale(this._pInst._pixelDensity, this._pInst._pixelDensity);\n          };\n\n          //////////////////////////////////////////////\n          // COLOR | Setting\n          //////////////////////////////////////////////\n\n          _main.default.Renderer2D.prototype.background = function() {\n            this.drawingContext.save();\n            this.resetMatrix();\n\n            if (\n              (arguments.length <= 0 ? undefined : arguments[0]) instanceof\n              _main.default.Image\n            ) {\n              this._pInst.image(\n                arguments.length <= 0 ? undefined : arguments[0],\n                0,\n                0,\n                this.width,\n                this.height\n              );\n            } else {\n              var _this$_pInst;\n              var curFill = this._getFill();\n              // create background rect\n              var color = (_this$_pInst = this._pInst).color.apply(_this$_pInst, arguments);\n              var newFill = color.toString();\n              this._setFill(newFill);\n\n              if (this._isErasing) {\n                this.blendMode(this._cachedBlendMode);\n              }\n\n              this.drawingContext.fillRect(0, 0, this.width, this.height);\n              // reset fill\n              this._setFill(curFill);\n\n              if (this._isErasing) {\n                this._pInst.erase();\n              }\n            }\n            this.drawingContext.restore();\n          };\n\n          _main.default.Renderer2D.prototype.clear = function() {\n            this.drawingContext.save();\n            this.resetMatrix();\n            this.drawingContext.clearRect(0, 0, this.width, this.height);\n            this.drawingContext.restore();\n          };\n\n          _main.default.Renderer2D.prototype.fill = function() {\n            var _this$_pInst2;\n            var color = (_this$_pInst2 = this._pInst).color.apply(_this$_pInst2, arguments);\n            this._setFill(color.toString());\n          };\n\n          _main.default.Renderer2D.prototype.stroke = function() {\n            var _this$_pInst3;\n            var color = (_this$_pInst3 = this._pInst).color.apply(_this$_pInst3, arguments);\n            this._setStroke(color.toString());\n          };\n\n          _main.default.Renderer2D.prototype.erase = function(opacityFill, opacityStroke) {\n            if (!this._isErasing) {\n              // cache the fill style\n              this._cachedFillStyle = this.drawingContext.fillStyle;\n              var newFill = this._pInst.color(255, opacityFill).toString();\n              this.drawingContext.fillStyle = newFill;\n\n              //cache the stroke style\n              this._cachedStrokeStyle = this.drawingContext.strokeStyle;\n              var newStroke = this._pInst.color(255, opacityStroke).toString();\n              this.drawingContext.strokeStyle = newStroke;\n\n              //cache blendMode\n              var tempBlendMode = this._cachedBlendMode;\n              this.blendMode(constants.REMOVE);\n              this._cachedBlendMode = tempBlendMode;\n\n              this._isErasing = true;\n            }\n          };\n\n          _main.default.Renderer2D.prototype.noErase = function() {\n            if (this._isErasing) {\n              this.drawingContext.fillStyle = this._cachedFillStyle;\n              this.drawingContext.strokeStyle = this._cachedStrokeStyle;\n\n              this.blendMode(this._cachedBlendMode);\n              this._isErasing = false;\n            }\n          };\n\n          //////////////////////////////////////////////\n          // IMAGE | Loading & Displaying\n          //////////////////////////////////////////////\n\n          _main.default.Renderer2D.prototype.image = function(\n            img,\n            sx,\n            sy,\n            sWidth,\n            sHeight,\n            dx,\n            dy,\n            dWidth,\n            dHeight\n          ) {\n            var cnv;\n            if (img.gifProperties) {\n              img._animateGif(this._pInst);\n            }\n\n            try {\n              if (this._tint) {\n                if (\n                  _main.default.MediaElement &&\n                  img instanceof _main.default.MediaElement\n                ) {\n                  img.loadPixels();\n                }\n                if (img.canvas) {\n                  cnv = this._getTintedImageCanvas(img);\n                }\n              }\n              if (!cnv) {\n                cnv = img.canvas || img.elt;\n              }\n              var s = 1;\n              if (img.width && img.width > 0) {\n                s = cnv.width / img.width;\n              }\n              if (this._isErasing) {\n                this.blendMode(this._cachedBlendMode);\n              }\n              this.drawingContext.drawImage(\n                cnv,\n                s * sx,\n                s * sy,\n                s * sWidth,\n                s * sHeight,\n                dx,\n                dy,\n                dWidth,\n                dHeight\n              );\n\n              if (this._isErasing) {\n                this._pInst.erase();\n              }\n            } catch (e) {\n              if (e.name !== 'NS_ERROR_NOT_AVAILABLE') {\n                throw e;\n              }\n            }\n          };\n\n          _main.default.Renderer2D.prototype._getTintedImageCanvas = function(img) {\n            if (!img.canvas) {\n              return img;\n            }\n            var pixels = _filters.default._toPixels(img.canvas);\n            var tmpCanvas = document.createElement('canvas');\n            tmpCanvas.width = img.canvas.width;\n            tmpCanvas.height = img.canvas.height;\n            var tmpCtx = tmpCanvas.getContext('2d');\n            var id = tmpCtx.createImageData(img.canvas.width, img.canvas.height);\n            var newPixels = id.data;\n            for (var i = 0; i < pixels.length; i += 4) {\n              var r = pixels[i];\n              var g = pixels[i + 1];\n              var b = pixels[i + 2];\n              var a = pixels[i + 3];\n              newPixels[i] = r * this._tint[0] / 255;\n              newPixels[i + 1] = g * this._tint[1] / 255;\n              newPixels[i + 2] = b * this._tint[2] / 255;\n              newPixels[i + 3] = a * this._tint[3] / 255;\n            }\n            tmpCtx.putImageData(id, 0, 0);\n            return tmpCanvas;\n          };\n\n          //////////////////////////////////////////////\n          // IMAGE | Pixels\n          //////////////////////////////////////////////\n\n          _main.default.Renderer2D.prototype.blendMode = function(mode) {\n            if (mode === constants.SUBTRACT) {\n              console.warn('blendMode(SUBTRACT) only works in WEBGL mode.');\n            } else if (\n              mode === constants.BLEND ||\n              mode === constants.REMOVE ||\n              mode === constants.DARKEST ||\n              mode === constants.LIGHTEST ||\n              mode === constants.DIFFERENCE ||\n              mode === constants.MULTIPLY ||\n              mode === constants.EXCLUSION ||\n              mode === constants.SCREEN ||\n              mode === constants.REPLACE ||\n              mode === constants.OVERLAY ||\n              mode === constants.HARD_LIGHT ||\n              mode === constants.SOFT_LIGHT ||\n              mode === constants.DODGE ||\n              mode === constants.BURN ||\n              mode === constants.ADD\n            ) {\n              this._cachedBlendMode = mode;\n              this.drawingContext.globalCompositeOperation = mode;\n            } else {\n              throw new Error('Mode '.concat(mode, ' not recognized.'));\n            }\n          };\n\n          _main.default.Renderer2D.prototype.blend = function() {\n            var currBlend = this.drawingContext.globalCompositeOperation;\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            var blendMode = args[args.length - 1];\n\n            var copyArgs = Array.prototype.slice.call(args, 0, args.length - 1);\n\n            this.drawingContext.globalCompositeOperation = blendMode;\n\n            _main.default.prototype.copy.apply(this, copyArgs);\n\n            this.drawingContext.globalCompositeOperation = currBlend;\n          };\n\n          // p5.Renderer2D.prototype.get = p5.Renderer.prototype.get;\n          // .get() is not overridden\n\n          // x,y are canvas-relative (pre-scaled by _pixelDensity)\n          _main.default.Renderer2D.prototype._getPixel = function(x, y) {\n            var imageData, index;\n            imageData = this.drawingContext.getImageData(x, y, 1, 1).data;\n            index = 0;\n            return [\n              imageData[index + 0],\n              imageData[index + 1],\n              imageData[index + 2],\n              imageData[index + 3]\n            ];\n          };\n\n          _main.default.Renderer2D.prototype.loadPixels = function() {\n            var pixelsState = this._pixelsState; // if called by p5.Image\n\n            var pd = pixelsState._pixelDensity;\n            var w = this.width * pd;\n            var h = this.height * pd;\n            var imageData = this.drawingContext.getImageData(0, 0, w, h);\n            // @todo this should actually set pixels per object, so diff buffers can\n            // have diff pixel arrays.\n            pixelsState._setProperty('imageData', imageData);\n            pixelsState._setProperty('pixels', imageData.data);\n          };\n\n          _main.default.Renderer2D.prototype.set = function(x, y, imgOrCol) {\n            // round down to get integer numbers\n            x = Math.floor(x);\n            y = Math.floor(y);\n            var pixelsState = this._pixelsState;\n            if (imgOrCol instanceof _main.default.Image) {\n              this.drawingContext.save();\n              this.drawingContext.setTransform(1, 0, 0, 1, 0, 0);\n              this.drawingContext.scale(\n                pixelsState._pixelDensity,\n                pixelsState._pixelDensity\n              );\n\n              this.drawingContext.drawImage(imgOrCol.canvas, x, y);\n              this.drawingContext.restore();\n            } else {\n              var r = 0,\n                g = 0,\n                b = 0,\n                a = 0;\n              var idx =\n                4 *\n                (y * pixelsState._pixelDensity * (this.width * pixelsState._pixelDensity) +\n                  x * pixelsState._pixelDensity);\n              if (!pixelsState.imageData) {\n                pixelsState.loadPixels.call(pixelsState);\n              }\n              if (typeof imgOrCol === 'number') {\n                if (idx < pixelsState.pixels.length) {\n                  r = imgOrCol;\n                  g = imgOrCol;\n                  b = imgOrCol;\n                  a = 255;\n                  //this.updatePixels.call(this);\n                }\n              } else if (imgOrCol instanceof Array) {\n                if (imgOrCol.length < 4) {\n                  throw new Error('pixel array must be of the form [R, G, B, A]');\n                }\n                if (idx < pixelsState.pixels.length) {\n                  r = imgOrCol[0];\n                  g = imgOrCol[1];\n                  b = imgOrCol[2];\n                  a = imgOrCol[3];\n                  //this.updatePixels.call(this);\n                }\n              } else if (imgOrCol instanceof _main.default.Color) {\n                if (idx < pixelsState.pixels.length) {\n                  r = imgOrCol.levels[0];\n                  g = imgOrCol.levels[1];\n                  b = imgOrCol.levels[2];\n                  a = imgOrCol.levels[3];\n                  //this.updatePixels.call(this);\n                }\n              }\n              // loop over pixelDensity * pixelDensity\n              for (var i = 0; i < pixelsState._pixelDensity; i++) {\n                for (var j = 0; j < pixelsState._pixelDensity; j++) {\n                  // loop over\n                  idx =\n                    4 *\n                    ((y * pixelsState._pixelDensity + j) *\n                      this.width *\n                      pixelsState._pixelDensity +\n                      (x * pixelsState._pixelDensity + i));\n                  pixelsState.pixels[idx] = r;\n                  pixelsState.pixels[idx + 1] = g;\n                  pixelsState.pixels[idx + 2] = b;\n                  pixelsState.pixels[idx + 3] = a;\n                }\n              }\n            }\n          };\n\n          _main.default.Renderer2D.prototype.updatePixels = function(x, y, w, h) {\n            var pixelsState = this._pixelsState;\n            var pd = pixelsState._pixelDensity;\n            if (x === undefined && y === undefined && w === undefined && h === undefined) {\n              x = 0;\n              y = 0;\n              w = this.width;\n              h = this.height;\n            }\n            x *= pd;\n            y *= pd;\n            w *= pd;\n            h *= pd;\n\n            if (this.gifProperties) {\n              this.gifProperties.frames[this.gifProperties.displayIndex].image =\n                pixelsState.imageData;\n            }\n\n            this.drawingContext.putImageData(pixelsState.imageData, x, y, 0, 0, w, h);\n          };\n\n          //////////////////////////////////////////////\n          // SHAPE | 2D Primitives\n          //////////////////////////////////////////////\n\n          /**\n           * Generate a cubic Bezier representing an arc on the unit circle of total\n           * angle `size` radians, beginning `start` radians above the x-axis. Up to\n           * four of these curves are combined to make a full arc.\n           *\n           * See www.joecridge.me/bezier.pdf for an explanation of the method.\n           */\n          _main.default.Renderer2D.prototype._acuteArcToBezier = function _acuteArcToBezier(\n            start,\n            size\n          ) {\n            // Evaluate constants.\n            var alpha = size / 2.0,\n              cos_alpha = Math.cos(alpha),\n              sin_alpha = Math.sin(alpha),\n              cot_alpha = 1.0 / Math.tan(alpha),\n              // This is how far the arc needs to be rotated.\n              phi = start + alpha,\n              cos_phi = Math.cos(phi),\n              sin_phi = Math.sin(phi),\n              lambda = (4.0 - cos_alpha) / 3.0,\n              mu = sin_alpha + (cos_alpha - lambda) * cot_alpha;\n\n            // Return rotated waypoints.\n            return {\n              ax: Math.cos(start).toFixed(7),\n              ay: Math.sin(start).toFixed(7),\n              bx: (lambda * cos_phi + mu * sin_phi).toFixed(7),\n              by: (lambda * sin_phi - mu * cos_phi).toFixed(7),\n              cx: (lambda * cos_phi - mu * sin_phi).toFixed(7),\n              cy: (lambda * sin_phi + mu * cos_phi).toFixed(7),\n              dx: Math.cos(start + size).toFixed(7),\n              dy: Math.sin(start + size).toFixed(7)\n            };\n          };\n\n          /*\n    * This function requires that:\n    *\n    *   0 <= start < TWO_PI\n    *\n    *   start <= stop < start + TWO_PI\n    */\n          _main.default.Renderer2D.prototype.arc = function(x, y, w, h, start, stop, mode) {\n            var ctx = this.drawingContext;\n            var rx = w / 2.0;\n            var ry = h / 2.0;\n            var epsilon = 0.00001; // Smallest visible angle on displays up to 4K.\n            var arcToDraw = 0;\n            var curves = [];\n\n            x += rx;\n            y += ry;\n\n            // Create curves\n            while (stop - start >= epsilon) {\n              arcToDraw = Math.min(stop - start, constants.HALF_PI);\n              curves.push(this._acuteArcToBezier(start, arcToDraw));\n              start += arcToDraw;\n            }\n\n            // Fill curves\n            if (this._doFill) {\n              ctx.beginPath();\n              curves.forEach(function(curve, index) {\n                if (index === 0) {\n                  ctx.moveTo(x + curve.ax * rx, y + curve.ay * ry);\n                }\n                // prettier-ignore\n                ctx.bezierCurveTo(x + curve.bx * rx, y + curve.by * ry,\n      x + curve.cx * rx, y + curve.cy * ry,\n      x + curve.dx * rx, y + curve.dy * ry);\n              });\n              if (mode === constants.PIE || mode == null) {\n                ctx.lineTo(x, y);\n              }\n              ctx.closePath();\n              ctx.fill();\n            }\n\n            // Stroke curves\n            if (this._doStroke) {\n              ctx.beginPath();\n              curves.forEach(function(curve, index) {\n                if (index === 0) {\n                  ctx.moveTo(x + curve.ax * rx, y + curve.ay * ry);\n                }\n                // prettier-ignore\n                ctx.bezierCurveTo(x + curve.bx * rx, y + curve.by * ry,\n      x + curve.cx * rx, y + curve.cy * ry,\n      x + curve.dx * rx, y + curve.dy * ry);\n              });\n              if (mode === constants.PIE) {\n                ctx.lineTo(x, y);\n                ctx.closePath();\n              } else if (mode === constants.CHORD) {\n                ctx.closePath();\n              }\n              ctx.stroke();\n            }\n            return this;\n          };\n\n          _main.default.Renderer2D.prototype.ellipse = function(args) {\n            var ctx = this.drawingContext;\n            var doFill = this._doFill,\n              doStroke = this._doStroke;\n            var x = parseFloat(args[0]),\n              y = parseFloat(args[1]),\n              w = parseFloat(args[2]),\n              h = parseFloat(args[3]);\n            if (doFill && !doStroke) {\n              if (this._getFill() === styleEmpty) {\n                return this;\n              }\n            } else if (!doFill && doStroke) {\n              if (this._getStroke() === styleEmpty) {\n                return this;\n              }\n            }\n            var kappa = 0.5522847498,\n              // control point offset horizontal\n              ox = w / 2 * kappa,\n              // control point offset vertical\n              oy = h / 2 * kappa,\n              // x-end\n              xe = x + w,\n              // y-end\n              ye = y + h,\n              // x-middle\n              xm = x + w / 2,\n              ym = y + h / 2; // y-middle\n            ctx.beginPath();\n            ctx.moveTo(x, ym);\n            ctx.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y);\n            ctx.bezierCurveTo(xm + ox, y, xe, ym - oy, xe, ym);\n            ctx.bezierCurveTo(xe, ym + oy, xm + ox, ye, xm, ye);\n            ctx.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym);\n            ctx.closePath();\n            if (doFill) {\n              ctx.fill();\n            }\n            if (doStroke) {\n              ctx.stroke();\n            }\n          };\n\n          _main.default.Renderer2D.prototype.line = function(x1, y1, x2, y2) {\n            var ctx = this.drawingContext;\n            if (!this._doStroke) {\n              return this;\n            } else if (this._getStroke() === styleEmpty) {\n              return this;\n            }\n            ctx.beginPath();\n            ctx.moveTo(x1, y1);\n            ctx.lineTo(x2, y2);\n            ctx.stroke();\n            return this;\n          };\n\n          _main.default.Renderer2D.prototype.point = function(x, y) {\n            var ctx = this.drawingContext;\n            if (!this._doStroke) {\n              return this;\n            } else if (this._getStroke() === styleEmpty) {\n              return this;\n            }\n            var s = this._getStroke();\n            var f = this._getFill();\n            x = Math.round(x);\n            y = Math.round(y);\n            // swapping fill color to stroke and back after for correct point rendering\n            this._setFill(s);\n            if (ctx.lineWidth > 1) {\n              ctx.beginPath();\n              ctx.arc(x, y, ctx.lineWidth / 2, 0, constants.TWO_PI, false);\n              ctx.fill();\n            } else {\n              ctx.fillRect(x, y, 1, 1);\n            }\n            this._setFill(f);\n          };\n\n          _main.default.Renderer2D.prototype.quad = function(\n            x1,\n            y1,\n            x2,\n            y2,\n            x3,\n            y3,\n            x4,\n            y4\n          ) {\n            var ctx = this.drawingContext;\n            var doFill = this._doFill,\n              doStroke = this._doStroke;\n            if (doFill && !doStroke) {\n              if (this._getFill() === styleEmpty) {\n                return this;\n              }\n            } else if (!doFill && doStroke) {\n              if (this._getStroke() === styleEmpty) {\n                return this;\n              }\n            }\n            ctx.beginPath();\n            ctx.moveTo(x1, y1);\n            ctx.lineTo(x2, y2);\n            ctx.lineTo(x3, y3);\n            ctx.lineTo(x4, y4);\n            ctx.closePath();\n            if (doFill) {\n              ctx.fill();\n            }\n            if (doStroke) {\n              ctx.stroke();\n            }\n            return this;\n          };\n\n          _main.default.Renderer2D.prototype.rect = function(args) {\n            var x = args[0];\n            var y = args[1];\n            var w = args[2];\n            var h = args[3];\n            var tl = args[4];\n            var tr = args[5];\n            var br = args[6];\n            var bl = args[7];\n            var ctx = this.drawingContext;\n            var doFill = this._doFill,\n              doStroke = this._doStroke;\n            if (doFill && !doStroke) {\n              if (this._getFill() === styleEmpty) {\n                return this;\n              }\n            } else if (!doFill && doStroke) {\n              if (this._getStroke() === styleEmpty) {\n                return this;\n              }\n            }\n            ctx.beginPath();\n\n            if (typeof tl === 'undefined') {\n              // No rounded corners\n              ctx.rect(x, y, w, h);\n            } else {\n              // At least one rounded corner\n              // Set defaults when not specified\n              if (typeof tr === 'undefined') {\n                tr = tl;\n              }\n              if (typeof br === 'undefined') {\n                br = tr;\n              }\n              if (typeof bl === 'undefined') {\n                bl = br;\n              }\n\n              // corner rounding must always be positive\n              var absW = Math.abs(w);\n              var absH = Math.abs(h);\n              var hw = absW / 2;\n              var hh = absH / 2;\n\n              // Clip radii\n              if (absW < 2 * tl) {\n                tl = hw;\n              }\n              if (absH < 2 * tl) {\n                tl = hh;\n              }\n              if (absW < 2 * tr) {\n                tr = hw;\n              }\n              if (absH < 2 * tr) {\n                tr = hh;\n              }\n              if (absW < 2 * br) {\n                br = hw;\n              }\n              if (absH < 2 * br) {\n                br = hh;\n              }\n              if (absW < 2 * bl) {\n                bl = hw;\n              }\n              if (absH < 2 * bl) {\n                bl = hh;\n              }\n\n              // Draw shape\n              ctx.beginPath();\n              ctx.moveTo(x + tl, y);\n              ctx.arcTo(x + w, y, x + w, y + h, tr);\n              ctx.arcTo(x + w, y + h, x, y + h, br);\n              ctx.arcTo(x, y + h, x, y, bl);\n              ctx.arcTo(x, y, x + w, y, tl);\n              ctx.closePath();\n            }\n            if (this._doFill) {\n              ctx.fill();\n            }\n            if (this._doStroke) {\n              ctx.stroke();\n            }\n            return this;\n          };\n\n          _main.default.Renderer2D.prototype.triangle = function(args) {\n            var ctx = this.drawingContext;\n            var doFill = this._doFill,\n              doStroke = this._doStroke;\n            var x1 = args[0],\n              y1 = args[1];\n            var x2 = args[2],\n              y2 = args[3];\n            var x3 = args[4],\n              y3 = args[5];\n            if (doFill && !doStroke) {\n              if (this._getFill() === styleEmpty) {\n                return this;\n              }\n            } else if (!doFill && doStroke) {\n              if (this._getStroke() === styleEmpty) {\n                return this;\n              }\n            }\n            ctx.beginPath();\n            ctx.moveTo(x1, y1);\n            ctx.lineTo(x2, y2);\n            ctx.lineTo(x3, y3);\n            ctx.closePath();\n            if (doFill) {\n              ctx.fill();\n            }\n            if (doStroke) {\n              ctx.stroke();\n            }\n          };\n\n          _main.default.Renderer2D.prototype.endShape = function(\n            mode,\n            vertices,\n            isCurve,\n            isBezier,\n            isQuadratic,\n            isContour,\n            shapeKind\n          ) {\n            if (vertices.length === 0) {\n              return this;\n            }\n            if (!this._doStroke && !this._doFill) {\n              return this;\n            }\n            var closeShape = mode === constants.CLOSE;\n            var v;\n            if (closeShape && !isContour) {\n              vertices.push(vertices[0]);\n            }\n            var i, j;\n            var numVerts = vertices.length;\n            if (isCurve && (shapeKind === constants.POLYGON || shapeKind === null)) {\n              if (numVerts > 3) {\n                var b = [],\n                  s = 1 - this._curveTightness;\n                this.drawingContext.beginPath();\n                this.drawingContext.moveTo(vertices[1][0], vertices[1][1]);\n                for (i = 1; i + 2 < numVerts; i++) {\n                  v = vertices[i];\n                  b[0] = [v[0], v[1]];\n                  b[1] = [\n                    v[0] + (s * vertices[i + 1][0] - s * vertices[i - 1][0]) / 6,\n                    v[1] + (s * vertices[i + 1][1] - s * vertices[i - 1][1]) / 6\n                  ];\n\n                  b[2] = [\n                    vertices[i + 1][0] + (s * vertices[i][0] - s * vertices[i + 2][0]) / 6,\n                    vertices[i + 1][1] + (s * vertices[i][1] - s * vertices[i + 2][1]) / 6\n                  ];\n\n                  b[3] = [vertices[i + 1][0], vertices[i + 1][1]];\n                  this.drawingContext.bezierCurveTo(\n                    b[1][0],\n                    b[1][1],\n                    b[2][0],\n                    b[2][1],\n                    b[3][0],\n                    b[3][1]\n                  );\n                }\n                if (closeShape) {\n                  this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]);\n                }\n                this._doFillStrokeClose(closeShape);\n              }\n            } else if (\n              isBezier &&\n              (shapeKind === constants.POLYGON || shapeKind === null)\n            ) {\n              this.drawingContext.beginPath();\n              for (i = 0; i < numVerts; i++) {\n                if (vertices[i].isVert) {\n                  if (vertices[i].moveTo) {\n                    this.drawingContext.moveTo(vertices[i][0], vertices[i][1]);\n                  } else {\n                    this.drawingContext.lineTo(vertices[i][0], vertices[i][1]);\n                  }\n                } else {\n                  this.drawingContext.bezierCurveTo(\n                    vertices[i][0],\n                    vertices[i][1],\n                    vertices[i][2],\n                    vertices[i][3],\n                    vertices[i][4],\n                    vertices[i][5]\n                  );\n                }\n              }\n              this._doFillStrokeClose(closeShape);\n            } else if (\n              isQuadratic &&\n              (shapeKind === constants.POLYGON || shapeKind === null)\n            ) {\n              this.drawingContext.beginPath();\n              for (i = 0; i < numVerts; i++) {\n                if (vertices[i].isVert) {\n                  if (vertices[i].moveTo) {\n                    this.drawingContext.moveTo(vertices[i][0], vertices[i][1]);\n                  } else {\n                    this.drawingContext.lineTo(vertices[i][0], vertices[i][1]);\n                  }\n                } else {\n                  this.drawingContext.quadraticCurveTo(\n                    vertices[i][0],\n                    vertices[i][1],\n                    vertices[i][2],\n                    vertices[i][3]\n                  );\n                }\n              }\n              this._doFillStrokeClose(closeShape);\n            } else {\n              if (shapeKind === constants.POINTS) {\n                for (i = 0; i < numVerts; i++) {\n                  v = vertices[i];\n                  if (this._doStroke) {\n                    this._pInst.stroke(v[6]);\n                  }\n                  this._pInst.point(v[0], v[1]);\n                }\n              } else if (shapeKind === constants.LINES) {\n                for (i = 0; i + 1 < numVerts; i += 2) {\n                  v = vertices[i];\n                  if (this._doStroke) {\n                    this._pInst.stroke(vertices[i + 1][6]);\n                  }\n                  this._pInst.line(v[0], v[1], vertices[i + 1][0], vertices[i + 1][1]);\n                }\n              } else if (shapeKind === constants.TRIANGLES) {\n                for (i = 0; i + 2 < numVerts; i += 3) {\n                  v = vertices[i];\n                  this.drawingContext.beginPath();\n                  this.drawingContext.moveTo(v[0], v[1]);\n                  this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]);\n                  this.drawingContext.lineTo(vertices[i + 2][0], vertices[i + 2][1]);\n                  this.drawingContext.closePath();\n                  if (this._doFill) {\n                    this._pInst.fill(vertices[i + 2][5]);\n                    this.drawingContext.fill();\n                  }\n                  if (this._doStroke) {\n                    this._pInst.stroke(vertices[i + 2][6]);\n                    this.drawingContext.stroke();\n                  }\n                }\n              } else if (shapeKind === constants.TRIANGLE_STRIP) {\n                for (i = 0; i + 1 < numVerts; i++) {\n                  v = vertices[i];\n                  this.drawingContext.beginPath();\n                  this.drawingContext.moveTo(vertices[i + 1][0], vertices[i + 1][1]);\n                  this.drawingContext.lineTo(v[0], v[1]);\n                  if (this._doStroke) {\n                    this._pInst.stroke(vertices[i + 1][6]);\n                  }\n                  if (this._doFill) {\n                    this._pInst.fill(vertices[i + 1][5]);\n                  }\n                  if (i + 2 < numVerts) {\n                    this.drawingContext.lineTo(vertices[i + 2][0], vertices[i + 2][1]);\n                    if (this._doStroke) {\n                      this._pInst.stroke(vertices[i + 2][6]);\n                    }\n                    if (this._doFill) {\n                      this._pInst.fill(vertices[i + 2][5]);\n                    }\n                  }\n                  this._doFillStrokeClose(closeShape);\n                }\n              } else if (shapeKind === constants.TRIANGLE_FAN) {\n                if (numVerts > 2) {\n                  // For performance reasons, try to batch as many of the\n                  // fill and stroke calls as possible.\n                  this.drawingContext.beginPath();\n                  for (i = 2; i < numVerts; i++) {\n                    v = vertices[i];\n                    this.drawingContext.moveTo(vertices[0][0], vertices[0][1]);\n                    this.drawingContext.lineTo(vertices[i - 1][0], vertices[i - 1][1]);\n                    this.drawingContext.lineTo(v[0], v[1]);\n                    this.drawingContext.lineTo(vertices[0][0], vertices[0][1]);\n                    // If the next colour is going to be different, stroke / fill now\n                    if (i < numVerts - 1) {\n                      if (\n                        (this._doFill && v[5] !== vertices[i + 1][5]) ||\n                        (this._doStroke && v[6] !== vertices[i + 1][6])\n                      ) {\n                        if (this._doFill) {\n                          this._pInst.fill(v[5]);\n                          this.drawingContext.fill();\n                          this._pInst.fill(vertices[i + 1][5]);\n                        }\n                        if (this._doStroke) {\n                          this._pInst.stroke(v[6]);\n                          this.drawingContext.stroke();\n                          this._pInst.stroke(vertices[i + 1][6]);\n                        }\n                        this.drawingContext.closePath();\n                        this.drawingContext.beginPath(); // Begin the next one\n                      }\n                    }\n                  }\n                  this._doFillStrokeClose(closeShape);\n                }\n              } else if (shapeKind === constants.QUADS) {\n                for (i = 0; i + 3 < numVerts; i += 4) {\n                  v = vertices[i];\n                  this.drawingContext.beginPath();\n                  this.drawingContext.moveTo(v[0], v[1]);\n                  for (j = 1; j < 4; j++) {\n                    this.drawingContext.lineTo(vertices[i + j][0], vertices[i + j][1]);\n                  }\n                  this.drawingContext.lineTo(v[0], v[1]);\n                  if (this._doFill) {\n                    this._pInst.fill(vertices[i + 3][5]);\n                  }\n                  if (this._doStroke) {\n                    this._pInst.stroke(vertices[i + 3][6]);\n                  }\n                  this._doFillStrokeClose(closeShape);\n                }\n              } else if (shapeKind === constants.QUAD_STRIP) {\n                if (numVerts > 3) {\n                  for (i = 0; i + 1 < numVerts; i += 2) {\n                    v = vertices[i];\n                    this.drawingContext.beginPath();\n                    if (i + 3 < numVerts) {\n                      this.drawingContext.moveTo(vertices[i + 2][0], vertices[i + 2][1]);\n                      this.drawingContext.lineTo(v[0], v[1]);\n                      this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]);\n                      this.drawingContext.lineTo(vertices[i + 3][0], vertices[i + 3][1]);\n                      if (this._doFill) {\n                        this._pInst.fill(vertices[i + 3][5]);\n                      }\n                      if (this._doStroke) {\n                        this._pInst.stroke(vertices[i + 3][6]);\n                      }\n                    } else {\n                      this.drawingContext.moveTo(v[0], v[1]);\n                      this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]);\n                    }\n                    this._doFillStrokeClose(closeShape);\n                  }\n                }\n              } else {\n                this.drawingContext.beginPath();\n                this.drawingContext.moveTo(vertices[0][0], vertices[0][1]);\n                for (i = 1; i < numVerts; i++) {\n                  v = vertices[i];\n                  if (v.isVert) {\n                    if (v.moveTo) {\n                      this.drawingContext.moveTo(v[0], v[1]);\n                    } else {\n                      this.drawingContext.lineTo(v[0], v[1]);\n                    }\n                  }\n                }\n                this._doFillStrokeClose(closeShape);\n              }\n            }\n            isCurve = false;\n            isBezier = false;\n            isQuadratic = false;\n            isContour = false;\n            if (closeShape) {\n              vertices.pop();\n            }\n\n            return this;\n          };\n          //////////////////////////////////////////////\n          // SHAPE | Attributes\n          //////////////////////////////////////////////\n\n          _main.default.Renderer2D.prototype.strokeCap = function(cap) {\n            if (\n              cap === constants.ROUND ||\n              cap === constants.SQUARE ||\n              cap === constants.PROJECT\n            ) {\n              this.drawingContext.lineCap = cap;\n            }\n            return this;\n          };\n\n          _main.default.Renderer2D.prototype.strokeJoin = function(join) {\n            if (\n              join === constants.ROUND ||\n              join === constants.BEVEL ||\n              join === constants.MITER\n            ) {\n              this.drawingContext.lineJoin = join;\n            }\n            return this;\n          };\n\n          _main.default.Renderer2D.prototype.strokeWeight = function(w) {\n            if (typeof w === 'undefined' || w === 0) {\n              // hack because lineWidth 0 doesn't work\n              this.drawingContext.lineWidth = 0.0001;\n            } else {\n              this.drawingContext.lineWidth = w;\n            }\n            return this;\n          };\n\n          _main.default.Renderer2D.prototype._getFill = function() {\n            if (!this._cachedFillStyle) {\n              this._cachedFillStyle = this.drawingContext.fillStyle;\n            }\n            return this._cachedFillStyle;\n          };\n\n          _main.default.Renderer2D.prototype._setFill = function(fillStyle) {\n            if (fillStyle !== this._cachedFillStyle) {\n              this.drawingContext.fillStyle = fillStyle;\n              this._cachedFillStyle = fillStyle;\n            }\n          };\n\n          _main.default.Renderer2D.prototype._getStroke = function() {\n            if (!this._cachedStrokeStyle) {\n              this._cachedStrokeStyle = this.drawingContext.strokeStyle;\n            }\n            return this._cachedStrokeStyle;\n          };\n\n          _main.default.Renderer2D.prototype._setStroke = function(strokeStyle) {\n            if (strokeStyle !== this._cachedStrokeStyle) {\n              this.drawingContext.strokeStyle = strokeStyle;\n              this._cachedStrokeStyle = strokeStyle;\n            }\n          };\n\n          //////////////////////////////////////////////\n          // SHAPE | Curves\n          //////////////////////////////////////////////\n          _main.default.Renderer2D.prototype.bezier = function(\n            x1,\n            y1,\n            x2,\n            y2,\n            x3,\n            y3,\n            x4,\n            y4\n          ) {\n            this._pInst.beginShape();\n            this._pInst.vertex(x1, y1);\n            this._pInst.bezierVertex(x2, y2, x3, y3, x4, y4);\n            this._pInst.endShape();\n            return this;\n          };\n\n          _main.default.Renderer2D.prototype.curve = function(\n            x1,\n            y1,\n            x2,\n            y2,\n            x3,\n            y3,\n            x4,\n            y4\n          ) {\n            this._pInst.beginShape();\n            this._pInst.curveVertex(x1, y1);\n            this._pInst.curveVertex(x2, y2);\n            this._pInst.curveVertex(x3, y3);\n            this._pInst.curveVertex(x4, y4);\n            this._pInst.endShape();\n            return this;\n          };\n\n          //////////////////////////////////////////////\n          // SHAPE | Vertex\n          //////////////////////////////////////////////\n\n          _main.default.Renderer2D.prototype._doFillStrokeClose = function(closeShape) {\n            if (closeShape) {\n              this.drawingContext.closePath();\n            }\n            if (this._doFill) {\n              this.drawingContext.fill();\n            }\n            if (this._doStroke) {\n              this.drawingContext.stroke();\n            }\n          };\n\n          //////////////////////////////////////////////\n          // TRANSFORM\n          //////////////////////////////////////////////\n\n          _main.default.Renderer2D.prototype.applyMatrix = function(a, b, c, d, e, f) {\n            this.drawingContext.transform(a, b, c, d, e, f);\n          };\n\n          _main.default.Renderer2D.prototype.resetMatrix = function() {\n            this.drawingContext.setTransform(1, 0, 0, 1, 0, 0);\n            this.drawingContext.scale(this._pInst._pixelDensity, this._pInst._pixelDensity);\n\n            return this;\n          };\n\n          _main.default.Renderer2D.prototype.rotate = function(rad) {\n            this.drawingContext.rotate(rad);\n          };\n\n          _main.default.Renderer2D.prototype.scale = function(x, y) {\n            this.drawingContext.scale(x, y);\n            return this;\n          };\n\n          _main.default.Renderer2D.prototype.translate = function(x, y) {\n            // support passing a vector as the 1st parameter\n            if (x instanceof _main.default.Vector) {\n              y = x.y;\n              x = x.x;\n            }\n            this.drawingContext.translate(x, y);\n            return this;\n          };\n\n          //////////////////////////////////////////////\n          // TYPOGRAPHY\n          //\n          //////////////////////////////////////////////\n\n          _main.default.Renderer2D.prototype.text = function(\n            str,\n            x,\n            y,\n            maxWidth,\n            maxHeight\n          ) {\n            var baselineHacked;\n\n            // baselineHacked: (HACK)\n            // A temporary fix to conform to Processing's implementation\n            // of BASELINE vertical alignment in a bounding box\n\n            if (typeof maxWidth !== 'undefined') {\n              if (this.drawingContext.textBaseline === constants.BASELINE) {\n                baselineHacked = true;\n                this.drawingContext.textBaseline = constants.TOP;\n              }\n            }\n\n            var p = _main.default.Renderer.prototype.text.apply(this, arguments);\n\n            if (baselineHacked) {\n              this.drawingContext.textBaseline = constants.BASELINE;\n            }\n\n            return p;\n          };\n\n          _main.default.Renderer2D.prototype._renderText = function(p, line, x, y, maxY) {\n            if (y >= maxY) {\n              return; // don't render lines beyond our maxY position\n            }\n\n            p.push(); // fix to #803\n\n            if (!this._isOpenType()) {\n              // a system/browser font\n\n              // no stroke unless specified by user\n              if (this._doStroke && this._strokeSet) {\n                this.drawingContext.strokeText(line, x, y);\n              }\n\n              if (this._doFill) {\n                // if fill hasn't been set by user, use default text fill\n                if (!this._fillSet) {\n                  this._setFill(constants._DEFAULT_TEXT_FILL);\n                }\n\n                this.drawingContext.fillText(line, x, y);\n              }\n            } else {\n              // an opentype font, let it handle the rendering\n\n              this._textFont._renderPath(line, x, y, { renderer: this });\n            }\n\n            p.pop();\n            return p;\n          };\n\n          _main.default.Renderer2D.prototype.textWidth = function(s) {\n            if (this._isOpenType()) {\n              return this._textFont._textWidth(s, this._textSize);\n            }\n\n            return this.drawingContext.measureText(s).width;\n          };\n\n          _main.default.Renderer2D.prototype._applyTextProperties = function() {\n            var font;\n            var p = this._pInst;\n\n            this._setProperty('_textAscent', null);\n            this._setProperty('_textDescent', null);\n\n            font = this._textFont;\n\n            if (this._isOpenType()) {\n              font = this._textFont.font.familyName;\n              this._setProperty('_textStyle', this._textFont.font.styleName);\n            }\n\n            this.drawingContext.font = ''\n              .concat(this._textStyle || 'normal', ' ')\n              .concat(this._textSize || 12, 'px ')\n              .concat(font || 'sans-serif');\n\n            this.drawingContext.textAlign = this._textAlign;\n            if (this._textBaseline === constants.CENTER) {\n              this.drawingContext.textBaseline = constants._CTX_MIDDLE;\n            } else {\n              this.drawingContext.textBaseline = this._textBaseline;\n            }\n\n            return p;\n          };\n\n          //////////////////////////////////////////////\n          // STRUCTURE\n          //////////////////////////////////////////////\n\n          // a push() operation is in progress.\n          // the renderer should return a 'style' object that it wishes to\n          // store on the push stack.\n          // derived renderers should call the base class' push() method\n          // to fetch the base style object.\n          _main.default.Renderer2D.prototype.push = function() {\n            this.drawingContext.save();\n\n            // get the base renderer style\n            return _main.default.Renderer.prototype.push.apply(this);\n          };\n\n          // a pop() operation is in progress\n          // the renderer is passed the 'style' object that it returned\n          // from its push() method.\n          // derived renderers should pass this object to their base\n          // class' pop method\n          _main.default.Renderer2D.prototype.pop = function(style) {\n            this.drawingContext.restore();\n            // Re-cache the fill / stroke state\n            this._cachedFillStyle = this.drawingContext.fillStyle;\n            this._cachedStrokeStyle = this.drawingContext.strokeStyle;\n\n            _main.default.Renderer.prototype.pop.call(this, style);\n          };\n          var _default = _main.default.Renderer2D;\n          exports.default = _default;\n        },\n        { '../image/filters': 71, './constants': 43, './main': 50, './p5.Renderer': 53 }\n      ],\n      55: [\n        function(_dereq_, module, exports) {\n          'use strict';\n\n          var _main = _interopRequireDefault(_dereq_('./main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n\n          _main.default.prototype._promisePreloads = [\n            /* Example object\n                                            {\n                                              target: p5.prototype, // The target object to have the method modified\n                                              method: 'loadXAsync', // The name of the preload function to wrap\n                                              addCallbacks: true,   // Whether to automatically handle the p5 callbacks\n                                              legacyPreloadSetup: { // Optional object to generate a legacy-style preload\n                                                method: 'loadX',    // The name of the legacy preload function to generate\n                                                createBaseObject: function() {\n                                                  return {};\n                                                } // An optional function to create the base object for the legacy preload.\n                                              }\n                                            }\n                                            */\n          ];\n\n          _main.default.prototype.registerPromisePreload = function(setup) {\n            _main.default.prototype._promisePreloads.push(setup);\n          };\n\n          var initialSetupRan = false;\n\n          _main.default.prototype._setupPromisePreloads = function() {\n            var _iteratorNormalCompletion = true;\n            var _didIteratorError = false;\n            var _iteratorError = undefined;\n            try {\n              for (\n                var _iterator = this._promisePreloads[Symbol.iterator](), _step;\n                !(_iteratorNormalCompletion = (_step = _iterator.next()).done);\n                _iteratorNormalCompletion = true\n              ) {\n                var preloadSetup = _step.value;\n                var thisValue = this;\n                var method = preloadSetup.method,\n                  addCallbacks = preloadSetup.addCallbacks,\n                  legacyPreloadSetup = preloadSetup.legacyPreloadSetup;\n                // Get the target object that the preload gets assigned to by default,\n                // that is the current object.\n                var target = preloadSetup.target || this;\n                var sourceFunction = target[method].bind(target);\n                // If the target is the p5 prototype, then only set it up on the first run per page\n                if (target === _main.default.prototype) {\n                  if (initialSetupRan) {\n                    continue;\n                  }\n                  thisValue = null;\n                  sourceFunction = target[method];\n                }\n\n                // Replace the original method with a wrapped version\n                target[method] = this._wrapPromisePreload(\n                  thisValue,\n                  sourceFunction,\n                  addCallbacks\n                );\n\n                // If a legacy preload is required\n                if (legacyPreloadSetup) {\n                  // What is the name for this legacy preload\n                  var legacyMethod = legacyPreloadSetup.method;\n                  // Wrap the already wrapped Promise-returning method with the legacy setup\n                  target[legacyMethod] = this._legacyPreloadGenerator(\n                    thisValue,\n                    legacyPreloadSetup,\n                    target[method]\n                  );\n                }\n              }\n            } catch (err) {\n              _didIteratorError = true;\n              _iteratorError = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion && _iterator.return != null) {\n                  _iterator.return();\n                }\n              } finally {\n                if (_didIteratorError) {\n                  throw _iteratorError;\n                }\n              }\n            }\n            initialSetupRan = true;\n          };\n\n          _main.default.prototype._wrapPromisePreload = function(\n            thisValue,\n            fn,\n            addCallbacks\n          ) {\n            var replacementFunction = function replacementFunction() {\n              var _this = this;\n              // Uses the current preload counting mechanism for now.\n              this._incrementPreload();\n              // A variable for the callback function if specified\n              var callback = null;\n              // A variable for the errorCallback function if specified\n              var errorCallback = null;\n              for (\n                var _len = arguments.length, args = new Array(_len), _key = 0;\n                _key < _len;\n                _key++\n              ) {\n                args[_key] = arguments[_key];\n              }\n              if (addCallbacks) {\n                // Loop from the end of the args array, pulling up to two functions off of\n                // the end and putting them in fns\n                for (var i = args.length - 1; i >= 0 && !errorCallback; i--) {\n                  if (typeof args[i] !== 'function') {\n                    break;\n                  }\n                  errorCallback = callback;\n                  callback = args.pop();\n                }\n              }\n              // Call the underlying funciton and pass it to Promise.resolve,\n              // so that even if it didn't return a promise we can still\n              // act on the result as if it did.\n              var promise = Promise.resolve(fn.apply(this, args));\n              // Add the optional callbacks\n              if (callback) {\n                promise.then(callback);\n              }\n              if (errorCallback) {\n                promise.catch(errorCallback);\n              }\n              // Decrement the preload counter only if the promise resolved\n              promise.then(function() {\n                return _this._decrementPreload();\n              });\n              // Return the original promise so that neither callback changes the result.\n              return promise;\n            };\n            if (thisValue) {\n              replacementFunction = replacementFunction.bind(thisValue);\n            }\n            return replacementFunction;\n          };\n\n          var objectCreator = function objectCreator() {\n            return {};\n          };\n\n          _main.default.prototype._legacyPreloadGenerator = function(\n            thisValue,\n            legacyPreloadSetup,\n            fn\n          ) {\n            // Create a function that will generate an object before the preload is\n            // launched. For example, if the object should be an array or be an instance\n            // of a specific class.\n            var baseValueGenerator = legacyPreloadSetup.createBaseObject || objectCreator;\n            var returnedFunction = function returnedFunction() {\n              var _this2 = this;\n              // Our then clause needs to run before setup, so we also increment the preload counter\n              this._incrementPreload();\n              // Generate the return value based on the generator.\n              var returnValue = baseValueGenerator.apply(this, arguments);\n              // Run the original wrapper\n              fn.apply(this, arguments).then(function(data) {\n                // Copy each key from the resolved value into returnValue\n                Object.assign(returnValue, data);\n                // Decrement the preload counter, to allow setup to continue.\n                _this2._decrementPreload();\n              });\n              return returnValue;\n            };\n            if (thisValue) {\n              returnedFunction = returnedFunction.bind(thisValue);\n            }\n            return returnedFunction;\n          };\n        },\n        { './main': 50 }\n      ],\n      56: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('./main'));\n          var constants = _interopRequireWildcard(_dereq_('./constants'));\n          _dereq_('./p5.Graphics');\n          _dereq_('./p5.Renderer2D');\n          _dereq_('../webgl/p5.RendererGL');\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          var defaultId = 'defaultCanvas0'; // this gets set again in createCanvas\n          var defaultClass = 'p5Canvas';\n\n          /**\n           * Creates a canvas element in the document, and sets the dimensions of it\n           * in pixels. This method should be called only once at the start of setup.\n           * Calling <a href=\"#/p5/createCanvas\">createCanvas</a> more than once in a sketch will result in very\n           * unpredictable behavior. If you want more than one drawing canvas\n           * you could use <a href=\"#/p5/createGraphics\">createGraphics</a> (hidden by default but it can be shown).\n           * <br><br>\n           * The system variables width and height are set by the parameters passed\n           * to this function. If <a href=\"#/p5/createCanvas\">createCanvas()</a> is not used, the window will be\n           * given a default size of 100x100 pixels.\n           * <br><br>\n           * For more ways to position the canvas, see the\n           * <a href='https://github.com/processing/p5.js/wiki/Positioning-your-canvas'>\n           * positioning the canvas</a> wiki page.\n           *\n           * @method createCanvas\n           * @param  {Number} w width of the canvas\n           * @param  {Number} h height of the canvas\n           * @param  {Constant} [renderer] either P2D or WEBGL\n           * @return {p5.Renderer}\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 50);\n           *   background(153);\n           *   line(0, 0, width, height);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Black line extending from top-left of canvas to bottom right.\n           *\n           */\n\n          _main.default.prototype.createCanvas = function(w, h, renderer) {\n            _main.default._validateParameters('createCanvas', arguments);\n            //optional: renderer, otherwise defaults to p2d\n            var r = renderer || constants.P2D;\n            var c;\n\n            if (r === constants.WEBGL) {\n              c = document.getElementById(defaultId);\n              if (c) {\n                //if defaultCanvas already exists\n                c.parentNode.removeChild(c); //replace the existing defaultCanvas\n                var thisRenderer = this._renderer;\n                this._elements = this._elements.filter(function(e) {\n                  return e !== thisRenderer;\n                });\n              }\n              c = document.createElement('canvas');\n              c.id = defaultId;\n              c.classList.add(defaultClass);\n            } else {\n              if (!this._defaultGraphicsCreated) {\n                c = document.createElement('canvas');\n                var i = 0;\n                while (document.getElementById('defaultCanvas'.concat(i))) {\n                  i++;\n                }\n                defaultId = 'defaultCanvas'.concat(i);\n                c.id = defaultId;\n                c.classList.add(defaultClass);\n              } else {\n                // resize the default canvas if new one is created\n                c = this.canvas;\n              }\n            }\n\n            // set to invisible if still in setup (to prevent flashing with manipulate)\n            if (!this._setupDone) {\n              c.dataset.hidden = true; // tag to show later\n              c.style.visibility = 'hidden';\n            }\n\n            if (this._userNode) {\n              // user input node case\n              this._userNode.appendChild(c);\n            } else {\n              document.body.appendChild(c);\n            }\n\n            // Init our graphics renderer\n            //webgl mode\n            if (r === constants.WEBGL) {\n              this._setProperty('_renderer', new _main.default.RendererGL(c, this, true));\n              this._elements.push(this._renderer);\n            } else {\n              //P2D mode\n              if (!this._defaultGraphicsCreated) {\n                this._setProperty('_renderer', new _main.default.Renderer2D(c, this, true));\n                this._defaultGraphicsCreated = true;\n                this._elements.push(this._renderer);\n              }\n            }\n            this._renderer.resize(w, h);\n            this._renderer._applyDefaults();\n            return this._renderer;\n          };\n\n          /**\n           * Resizes the canvas to given width and height. The canvas will be cleared\n           * and draw will be called immediately, allowing the sketch to re-render itself\n           * in the resized canvas.\n           * @method resizeCanvas\n           * @param  {Number} w width of the canvas\n           * @param  {Number} h height of the canvas\n           * @param  {Boolean} [noRedraw] don't redraw the canvas immediately\n           * @example\n           * <div class=\"norender\"><code>\n           * function setup() {\n           *   createCanvas(windowWidth, windowHeight);\n           * }\n           *\n           * function draw() {\n           *   background(0, 100, 200);\n           * }\n           *\n           * function windowResized() {\n           *   resizeCanvas(windowWidth, windowHeight);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * No image displayed.\n           *\n           */\n          _main.default.prototype.resizeCanvas = function(w, h, noRedraw) {\n            _main.default._validateParameters('resizeCanvas', arguments);\n            if (this._renderer) {\n              // save canvas properties\n              var props = {};\n              for (var key in this.drawingContext) {\n                var val = this.drawingContext[key];\n                if (_typeof(val) !== 'object' && typeof val !== 'function') {\n                  props[key] = val;\n                }\n              }\n              this._renderer.resize(w, h);\n              this.width = w;\n              this.height = h;\n              // reset canvas properties\n              for (var savedKey in props) {\n                try {\n                  this.drawingContext[savedKey] = props[savedKey];\n                } catch (err) {\n                  // ignore read-only property errors\n                }\n              }\n              if (!noRedraw) {\n                this.redraw();\n              }\n            }\n          };\n\n          /**\n           * Removes the default canvas for a p5 sketch that doesn't\n           * require a canvas\n           * @method noCanvas\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   noCanvas();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * no image displayed\n           *\n           */\n          _main.default.prototype.noCanvas = function() {\n            if (this.canvas) {\n              this.canvas.parentNode.removeChild(this.canvas);\n            }\n          };\n\n          /**\n           * Creates and returns a new p5.Renderer object. Use this class if you need\n           * to draw into an off-screen graphics buffer. The two parameters define the\n           * width and height in pixels.\n           *\n           * @method createGraphics\n           * @param  {Number} w width of the offscreen graphics buffer\n           * @param  {Number} h height of the offscreen graphics buffer\n           * @param  {Constant} [renderer] either P2D or WEBGL\n           * undefined defaults to p2d\n           * @return {p5.Graphics} offscreen graphics buffer\n           * @example\n           * <div>\n           * <code>\n           * let pg;\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   pg = createGraphics(100, 100);\n           * }\n           * function draw() {\n           *   background(200);\n           *   pg.background(100);\n           *   pg.noStroke();\n           *   pg.ellipse(pg.width / 2, pg.height / 2, 50, 50);\n           *   image(pg, 50, 50);\n           *   image(pg, 0, 0, 50, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 4 grey squares alternating light and dark grey. White quarter circle mid-left.\n           *\n           */\n          _main.default.prototype.createGraphics = function(w, h, renderer) {\n            _main.default._validateParameters('createGraphics', arguments);\n            return new _main.default.Graphics(w, h, renderer, this);\n          };\n\n          /**\n           * Blends the pixels in the display window according to the defined mode.\n           * There is a choice of the following modes to blend the source pixels (A)\n           * with the ones of pixels already in the display window (B):\n           * <ul>\n           * <li><code>BLEND</code> - linear interpolation of colours: C =\n           * A\\*factor + B. <b>This is the default blending mode.</b></li>\n           * <li><code>ADD</code> - sum of A and B</li>\n           * <li><code>DARKEST</code> - only the darkest colour succeeds: C =\n           * min(A\\*factor, B).</li>\n           * <li><code>LIGHTEST</code> - only the lightest colour succeeds: C =\n           * max(A\\*factor, B).</li>\n           * <li><code>DIFFERENCE</code> - subtract colors from underlying image.</li>\n           * <li><code>EXCLUSION</code> - similar to <code>DIFFERENCE</code>, but less\n           * extreme.</li>\n           * <li><code>MULTIPLY</code> - multiply the colors, result will always be\n           * darker.</li>\n           * <li><code>SCREEN</code> - opposite multiply, uses inverse values of the\n           * colors.</li>\n           * <li><code>REPLACE</code> - the pixels entirely replace the others and\n           * don't utilize alpha (transparency) values.</li>\n           * <li><code>REMOVE</code> - removes pixels from B with the alpha strength of A.</li>\n           * <li><code>OVERLAY</code> - mix of <code>MULTIPLY</code> and <code>SCREEN\n           * </code>. Multiplies dark values, and screens light values. <em>(2D)</em></li>\n           * <li><code>HARD_LIGHT</code> - <code>SCREEN</code> when greater than 50%\n           * gray, <code>MULTIPLY</code> when lower. <em>(2D)</em></li>\n           * <li><code>SOFT_LIGHT</code> - mix of <code>DARKEST</code> and\n           * <code>LIGHTEST</code>. Works like <code>OVERLAY</code>, but not as harsh. <em>(2D)</em>\n           * </li>\n           * <li><code>DODGE</code> - lightens light tones and increases contrast,\n           * ignores darks. <em>(2D)</em></li>\n           * <li><code>BURN</code> - darker areas are applied, increasing contrast,\n           * ignores lights. <em>(2D)</em></li>\n           * <li><code>SUBTRACT</code> - remainder of A and B <em>(3D)</em></li>\n           * </ul>\n           * <br><br>\n           * <em>(2D)</em> indicates that this blend mode <b>only</b> works in the 2D renderer.<br>\n           * <em>(3D)</em> indicates that this blend mode <b>only</b> works in the WEBGL renderer.\n           *\n           *\n           * @method blendMode\n           * @param  {Constant} mode blend mode to set for canvas.\n           *                either BLEND, DARKEST, LIGHTEST, DIFFERENCE, MULTIPLY,\n           *                EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\n           *                SOFT_LIGHT, DODGE, BURN, ADD, REMOVE or SUBTRACT\n           * @example\n           * <div>\n           * <code>\n           * blendMode(LIGHTEST);\n           * strokeWeight(30);\n           * stroke(80, 150, 255);\n           * line(25, 25, 75, 75);\n           * stroke(255, 50, 50);\n           * line(75, 25, 25, 75);\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * blendMode(MULTIPLY);\n           * strokeWeight(30);\n           * stroke(80, 150, 255);\n           * line(25, 25, 75, 75);\n           * stroke(255, 50, 50);\n           * line(75, 25, 25, 75);\n           * </code>\n           * </div>\n           * @alt\n           * translucent image thick red & blue diagonal rounded lines intersecting center\n           * Thick red & blue diagonal rounded lines intersecting center. dark at overlap\n           *\n           */\n          _main.default.prototype.blendMode = function(mode) {\n            _main.default._validateParameters('blendMode', arguments);\n            if (mode === constants.NORMAL) {\n              // Warning added 3/26/19, can be deleted in future (1.0 release?)\n              console.warn(\n                'NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.'\n              );\n\n              mode = constants.BLEND;\n            }\n            this._renderer.blendMode(mode);\n          };\n\n          /**\n           * @property drawingContext\n           * The p5.js API provides a lot of functionality for creating graphics, but there is\n           * some native HTML5 Canvas functionality that is not exposed by p5. You can still call\n           * it directly using the variable `drawingContext`, as in the example shown. This is\n           * the equivalent of calling `canvas.getContext('2d');` or `canvas.getContext('webgl');`.\n           * See this\n           * <a href=\"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D\">\n           * reference for the native canvas API</a> for possible drawing functions you can call.\n           * @example\n           * <div><code>\n           * function setup() {\n           *   drawingContext.shadowOffsetX = 5;\n           *   drawingContext.shadowOffsetY = -5;\n           *   drawingContext.shadowBlur = 10;\n           *   drawingContext.shadowColor = 'black';\n           *   background(200);\n           *   ellipse(width / 2, height / 2, 50, 50);\n           * }\n           * </code></div>\n           * @alt\n           * white ellipse with shadow blur effect around edges\n           */ var _default = _main.default;\n          exports.default = _default;\n        },\n        {\n          '../webgl/p5.RendererGL': 104,\n          './constants': 43,\n          './main': 50,\n          './p5.Graphics': 52,\n          './p5.Renderer2D': 54\n        }\n      ],\n      57: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../main'));\n          var constants = _interopRequireWildcard(_dereq_('../constants'));\n          var _helpers = _interopRequireDefault(_dereq_('../helpers'));\n          _dereq_('../error_helpers');\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Shape\n           * @submodule 2D Primitives\n           * @for p5\n           * @requires core\n           * @requires constants\n           */ /**\n           * This function does 3 things:\n           *\n           *   1. Bounds the desired start/stop angles for an arc (in radians) so that:\n           *\n           *          0 <= start < TWO_PI ;    start <= stop < start + TWO_PI\n           *\n           *      This means that the arc rendering functions don't have to be concerned\n           *      with what happens if stop is smaller than start, or if the arc 'goes\n           *      round more than once', etc.: they can just start at start and increase\n           *      until stop and the correct arc will be drawn.\n           *\n           *   2. Optionally adjusts the angles within each quadrant to counter the naive\n           *      scaling of the underlying ellipse up from the unit circle.  Without\n           *      this, the angles become arbitrary when width != height: 45 degrees\n           *      might be drawn at 5 degrees on a 'wide' ellipse, or at 85 degrees on\n           *      a 'tall' ellipse.\n           *\n           *   3. Flags up when start and stop correspond to the same place on the\n           *      underlying ellipse.  This is useful if you want to do something special\n           *      there (like rendering a whole ellipse instead).\n           */ _main.default.prototype._normalizeArcAngles = function(\n            start,\n            stop,\n            width,\n            height,\n            correctForScaling\n          ) {\n            var epsilon = 0.00001; // Smallest visible angle on displays up to 4K.\n            var separation;\n\n            // The order of the steps is important here: each one builds upon the\n            // adjustments made in the steps that precede it.\n\n            // Constrain both start and stop to [0,TWO_PI).\n            start = start - constants.TWO_PI * Math.floor(start / constants.TWO_PI);\n            stop = stop - constants.TWO_PI * Math.floor(stop / constants.TWO_PI);\n\n            // Get the angular separation between the requested start and stop points.\n            //\n            // Technically this separation only matches what gets drawn if\n            // correctForScaling is enabled.  We could add a more complicated calculation\n            // for when the scaling is uncorrected (in which case the drawn points could\n            // end up pushed together or pulled apart quite dramatically relative to what\n            // was requested), but it would make things more opaque for little practical\n            // benefit.\n            //\n            // (If you do disable correctForScaling and find that correspondToSamePoint\n            // is set too aggressively, the easiest thing to do is probably to just make\n            // epsilon smaller...)\n            separation = Math.min(\n              Math.abs(start - stop),\n              constants.TWO_PI - Math.abs(start - stop)\n            );\n\n            // Optionally adjust the angles to counter linear scaling.\n            if (correctForScaling) {\n              if (start <= constants.HALF_PI) {\n                start = Math.atan(width / height * Math.tan(start));\n              } else if (start > constants.HALF_PI && start <= 3 * constants.HALF_PI) {\n                start = Math.atan(width / height * Math.tan(start)) + constants.PI;\n              } else {\n                start = Math.atan(width / height * Math.tan(start)) + constants.TWO_PI;\n              }\n              if (stop <= constants.HALF_PI) {\n                stop = Math.atan(width / height * Math.tan(stop));\n              } else if (stop > constants.HALF_PI && stop <= 3 * constants.HALF_PI) {\n                stop = Math.atan(width / height * Math.tan(stop)) + constants.PI;\n              } else {\n                stop = Math.atan(width / height * Math.tan(stop)) + constants.TWO_PI;\n              }\n            }\n\n            // Ensure that start <= stop < start + TWO_PI.\n            if (start > stop) {\n              stop += constants.TWO_PI;\n            }\n\n            return {\n              start: start,\n              stop: stop,\n              correspondToSamePoint: separation < epsilon\n            };\n          };\n\n          /**\n    * Draw an arc to the screen. If called with only x, y, w, h, start, and\n    * stop, the arc will be drawn and filled as an open pie segment. If a mode parameter is provided, the arc\n    * will be filled like an open semi-circle (OPEN) , a closed semi-circle (CHORD), or as a closed pie segment (PIE). The\n    * origin may be changed with the <a href=\"#/p5/ellipseMode\">ellipseMode()</a> function.<br><br>\n    * The arc is always drawn clockwise from wherever start falls to wherever stop falls on the ellipse.\n    * Adding or subtracting TWO_PI to either angle does not change where they fall.\n    * If both start and stop fall at the same place, a full ellipse will be drawn. Be aware that the the\n    * y-axis increases in the downward direction, therefore angles are measured clockwise from the positive\n    * x-direction (\"3 o'clock\").\n   \n   \n    * @method arc\n    * @param  {Number} x      x-coordinate of the arc's ellipse\n    * @param  {Number} y      y-coordinate of the arc's ellipse\n    * @param  {Number} w      width of the arc's ellipse by default\n    * @param  {Number} h      height of the arc's ellipse by default\n    * @param  {Number} start  angle to start the arc, specified in radians\n    * @param  {Number} stop   angle to stop the arc, specified in radians\n    * @param  {Constant} [mode] optional parameter to determine the way of drawing\n    *                         the arc. either CHORD, PIE or OPEN\n    * @param  {Number} [detail] optional parameter for WebGL mode only. This is to\n    *                         specify the number of vertices that makes up the\n    *                         perimeter of the arc. Default value is 25.\n    *\n    * @chainable\n    * @example\n    * <div>\n    * <code>\n    * arc(50, 55, 50, 50, 0, HALF_PI);\n    * noFill();\n    * arc(50, 55, 60, 60, HALF_PI, PI);\n    * arc(50, 55, 70, 70, PI, PI + QUARTER_PI);\n    * arc(50, 55, 80, 80, PI + QUARTER_PI, TWO_PI);\n    * </code>\n    * </div>\n    *\n    * <div>\n    * <code>\n    * arc(50, 50, 80, 80, 0, PI + QUARTER_PI);\n    * </code>\n    * </div>\n    *\n    * <div>\n    * <code>\n    * arc(50, 50, 80, 80, 0, PI + QUARTER_PI, OPEN);\n    * </code>\n    * </div>\n    *\n    * <div>\n    * <code>\n    * arc(50, 50, 80, 80, 0, PI + QUARTER_PI, CHORD);\n    * </code>\n    * </div>\n    *\n    * <div>\n    * <code>\n    * arc(50, 50, 80, 80, 0, PI + QUARTER_PI, PIE);\n    * </code>\n    * </div>\n    *\n    * @alt\n    *shattered outline of an ellipse with a quarter of a white circle bottom-right.\n    *white ellipse with top right quarter missing.\n    *white ellipse with black outline with top right missing.\n    *white ellipse with top right missing with black outline around shape.\n    *white ellipse with top right quarter missing with black outline around the shape.\n    *\n    */\n          _main.default.prototype.arc = function(x, y, w, h, start, stop, mode, detail) {\n            _main.default._validateParameters('arc', arguments);\n\n            // if the current stroke and fill settings wouldn't result in something\n            // visible, exit immediately\n            if (!this._renderer._doStroke && !this._renderer._doFill) {\n              return this;\n            }\n\n            start = this._toRadians(start);\n            stop = this._toRadians(stop);\n\n            // p5 supports negative width and heights for ellipses\n            w = Math.abs(w);\n            h = Math.abs(h);\n\n            var vals = _helpers.default.modeAdjust(x, y, w, h, this._renderer._ellipseMode);\n            var angles = this._normalizeArcAngles(start, stop, vals.w, vals.h, true);\n\n            if (angles.correspondToSamePoint) {\n              // If the arc starts and ends at (near enough) the same place, we choose to\n              // draw an ellipse instead.  This is preferable to faking an ellipse (by\n              // making stop ever-so-slightly less than start + TWO_PI) because the ends\n              // join up to each other rather than at a vertex at the centre (leaving\n              // an unwanted spike in the stroke/fill).\n              this._renderer.ellipse([vals.x, vals.y, vals.w, vals.h, detail]);\n            } else {\n              this._renderer.arc(\n                vals.x,\n                vals.y,\n                vals.w,\n                vals.h,\n                angles.start, // [0, TWO_PI)\n                angles.stop, // [start, start + TWO_PI)\n                mode,\n                detail\n              );\n            }\n\n            return this;\n          };\n\n          /**\n           * Draws an ellipse (oval) to the screen. An ellipse with equal width and\n           * height is a circle. By default, the first two parameters set the location,\n           * and the third and fourth parameters set the shape's width and height. If\n           * no height is specified, the value of width is used for both the width and\n           * height. If a negative height or width is specified, the absolute value is taken.\n           * The origin may be changed with the <a href=\"#/p5/ellipseMode\">ellipseMode()</a> function.\n           *\n           * @method ellipse\n           * @param  {Number} x x-coordinate of the ellipse.\n           * @param  {Number} y y-coordinate of the ellipse.\n           * @param  {Number} w width of the ellipse.\n           * @param  {Number} [h] height of the ellipse.\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * ellipse(56, 46, 55, 55);\n           * </code>\n           * </div>\n           *\n           * @alt\n           *white ellipse with black outline in middle-right of canvas that is 55x55.\n           *\n           */\n          /**\n           * @method ellipse\n           * @param  {Number} x\n           * @param  {Number} y\n           * @param  {Number} w\n           * @param  {Number} h\n           * @param  {Integer} detail number of radial sectors to draw (for WebGL mode)\n           */\n          _main.default.prototype.ellipse = function(x, y, w, h, detailX) {\n            _main.default._validateParameters('ellipse', arguments);\n            return this._renderEllipse.apply(this, arguments);\n          };\n\n          /**\n           * Draws a circle to the screen. A circle is a simple closed shape.\n           * It is the set of all points in a plane that are at a given distance from a given point, the centre.\n           * This function is a special case of the ellipse() function, where the width and height of the ellipse are the same.\n           * Height and width of the ellipse correspond to the diameter of the circle.\n           * By default, the first two parameters set the location of the centre of the circle, the third sets the diameter of the circle.\n           *\n           * @method circle\n           * @param  {Number} x  x-coordinate of the centre of the circle.\n           * @param  {Number} y  y-coordinate of the centre of the circle.\n           * @param  {Number} d  diameter of the circle.\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // Draw a circle at location (30, 30) with a diameter of 20.\n           * circle(30, 30, 20);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * white circle with black outline in mid of canvas that is 55x55.\n           */\n          _main.default.prototype.circle = function() {\n            _main.default._validateParameters('circle', arguments);\n            var args = Array.prototype.slice.call(arguments, 0, 2);\n            args.push(arguments[2]);\n            args.push(arguments[2]);\n            return this._renderEllipse.apply(this, args);\n          };\n\n          // internal method for drawing ellipses (without parameter validation)\n          _main.default.prototype._renderEllipse = function(x, y, w, h, detailX) {\n            // if the current stroke and fill settings wouldn't result in something\n            // visible, exit immediately\n            if (!this._renderer._doStroke && !this._renderer._doFill) {\n              return this;\n            }\n\n            // p5 supports negative width and heights for rects\n            if (w < 0) {\n              w = Math.abs(w);\n            }\n\n            if (typeof h === 'undefined') {\n              // Duplicate 3rd argument if only 3 given.\n              h = w;\n            } else if (h < 0) {\n              h = Math.abs(h);\n            }\n\n            var vals = _helpers.default.modeAdjust(x, y, w, h, this._renderer._ellipseMode);\n            this._renderer.ellipse([vals.x, vals.y, vals.w, vals.h, detailX]);\n\n            return this;\n          };\n\n          /**\n           * Draws a line (a direct path between two points) to the screen. The version\n           * of <a href=\"#/p5/line\">line()</a> with four parameters draws the line in 2D. To color a line, use\n           * the <a href=\"#/p5/stroke\">stroke()</a> function. A line cannot be filled, therefore the <a href=\"#/p5/fill\">fill()</a>\n           * function will not affect the color of a line. 2D lines are drawn with a\n           * width of one pixel by default, but this can be changed with the\n           * <a href=\"#/p5/strokeWeight\">strokeWeight()</a> function.\n           *\n           * @method line\n           * @param  {Number} x1 the x-coordinate of the first point\n           * @param  {Number} y1 the y-coordinate of the first point\n           * @param  {Number} x2 the x-coordinate of the second point\n           * @param  {Number} y2 the y-coordinate of the second point\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * line(30, 20, 85, 75);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * line(30, 20, 85, 20);\n           * stroke(126);\n           * line(85, 20, 85, 75);\n           * stroke(255);\n           * line(85, 75, 30, 75);\n           * </code>\n           * </div>\n           *\n           * @alt\n           *line 78 pixels long running from mid-top to bottom-right of canvas.\n           *3 lines of various stroke sizes. Form top, bottom and right sides of a square.\n           *\n           */\n          /**\n           * @method line\n           * @param  {Number} x1\n           * @param  {Number} y1\n           * @param  {Number} z1 the z-coordinate of the first point\n           * @param  {Number} x2\n           * @param  {Number} y2\n           * @param  {Number} z2 the z-coordinate of the second point\n           * @chainable\n           */\n          _main.default.prototype.line = function() {\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default._validateParameters('line', args);\n\n            if (this._renderer._doStroke) {\n              var _this$_renderer;\n              (_this$_renderer = this._renderer).line.apply(_this$_renderer, args);\n            }\n\n            return this;\n          };\n\n          /**\n           * Draws a point, a coordinate in space at the dimension of one pixel.\n           * The first parameter is the horizontal value for the point, the second\n           * value is the vertical value for the point. The color of the point is\n           * changed with the <a href=\"#/p5/stroke\">stroke()</a> function. The size of the point\n           * is changed with the <a href=\"#/p5/strokeWeight\">strokeWeight()</a> function.\n           *\n           * @method point\n           * @param  {Number} x the x-coordinate\n           * @param  {Number} y the y-coordinate\n           * @param  {Number} [z] the z-coordinate (for WebGL mode)\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * point(30, 20);\n           * point(85, 20);\n           * point(85, 75);\n           * point(30, 75);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * stroke('purple'); // Change the color\n           * strokeWeight(10); // Make the points 10 pixels in size\n           * point(30, 20);\n           * point(85, 20);\n           * point(85, 75);\n           * point(30, 75);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let a = createVector(10, 10);\n           * point(a);\n           * let b = createVector(10, 20);\n           * point(b);\n           * point(createVector(20, 10));\n           * point(createVector(20, 20));\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 4 points centered in the middle-right of the canvas.\n           * 4 large purple points centered in the middle-right of the canvas.\n           * Vertices of a square of length 10 pixels towards the top-left of the canvas.\n           *\n           */\n          /**\n           * @method point\n           * @param {p5.Vector} coordinate_vector the coordinate vector\n           * @chainable\n           *\n           */\n          _main.default.prototype.point = function() {\n            for (\n              var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;\n              _key2 < _len2;\n              _key2++\n            ) {\n              args[_key2] = arguments[_key2];\n            }\n            _main.default._validateParameters('point', args);\n\n            if (this._renderer._doStroke) {\n              if (args.length === 1 && args[0] instanceof _main.default.Vector) {\n                this._renderer.point.call(this._renderer, args[0].x, args[0].y, args[0].z);\n              } else {\n                var _this$_renderer2;\n                (_this$_renderer2 = this._renderer).point.apply(_this$_renderer2, args);\n              }\n            }\n\n            return this;\n          };\n\n          /**\n           * Draw a quad. A quad is a quadrilateral, a four sided polygon. It is\n           * similar to a rectangle, but the angles between its edges are not\n           * constrained to ninety degrees. The first pair of parameters (x1,y1)\n           * sets the first vertex and the subsequent pairs should proceed\n           * clockwise or counter-clockwise around the defined shape.\n           * z-arguments only work when quad() is used in WEBGL mode.\n           *\n           *\n           * @method quad\n           * @param {Number} x1 the x-coordinate of the first point\n           * @param {Number} y1 the y-coordinate of the first point\n           * @param {Number} x2 the x-coordinate of the second point\n           * @param {Number} y2 the y-coordinate of the second point\n           * @param {Number} x3 the x-coordinate of the third point\n           * @param {Number} y3 the y-coordinate of the third point\n           * @param {Number} x4 the x-coordinate of the fourth point\n           * @param {Number} y4 the y-coordinate of the fourth point\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * quad(38, 31, 86, 20, 69, 63, 30, 76);\n           * </code>\n           * </div>\n           *\n           * @alt\n           *irregular white quadrilateral shape with black outline mid-right of canvas.\n           *\n           */\n          /**\n           * @method quad\n           * @param {Number} x1\n           * @param {Number} y1\n           * @param {Number} z1 the z-coordinate of the first point\n           * @param {Number} x2\n           * @param {Number} y2\n           * @param {Number} z2 the z-coordinate of the second point\n           * @param {Number} x3\n           * @param {Number} y3\n           * @param {Number} z3 the z-coordinate of the third point\n           * @param {Number} x4\n           * @param {Number} y4\n           * @param {Number} z4 the z-coordinate of the fourth point\n           * @chainable\n           */\n          _main.default.prototype.quad = function() {\n            for (\n              var _len3 = arguments.length, args = new Array(_len3), _key3 = 0;\n              _key3 < _len3;\n              _key3++\n            ) {\n              args[_key3] = arguments[_key3];\n            }\n            _main.default._validateParameters('quad', args);\n\n            if (this._renderer._doStroke || this._renderer._doFill) {\n              if (this._renderer.isP3D && args.length !== 12) {\n                // if 3D and we weren't passed 12 args, assume Z is 0\n                // prettier-ignore\n                this._renderer.quad.call(\n      this._renderer,\n      args[0], args[1], 0,\n      args[2], args[3], 0,\n      args[4], args[5], 0,\n      args[6], args[7], 0);\n              } else {\n                var _this$_renderer3;\n                (_this$_renderer3 = this._renderer).quad.apply(_this$_renderer3, args);\n              }\n            }\n\n            return this;\n          };\n\n          /**\n           * Draws a rectangle to the screen. A rectangle is a four-sided shape with\n           * every angle at ninety degrees. By default, the first two parameters set\n           * the location of the upper-left corner, the third sets the width, and the\n           * fourth sets the height. The way these parameters are interpreted, however,\n           * may be changed with the <a href=\"#/p5/rectMode\">rectMode()</a> function.\n           * <br><br>\n           * The fifth, sixth, seventh and eighth parameters, if specified,\n           * determine corner radius for the top-left, top-right, lower-right and\n           * lower-left corners, respectively. An omitted corner radius parameter is set\n           * to the value of the previously specified radius value in the parameter list.\n           *\n           * @method rect\n           * @param  {Number} x  x-coordinate of the rectangle.\n           * @param  {Number} y  y-coordinate of the rectangle.\n           * @param  {Number} w  width of the rectangle.\n           * @param  {Number} [h]  height of the rectangle.\n           * @param  {Number} [tl] optional radius of top-left corner.\n           * @param  {Number} [tr] optional radius of top-right corner.\n           * @param  {Number} [br] optional radius of bottom-right corner.\n           * @param  {Number} [bl] optional radius of bottom-left corner.\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // Draw a rectangle at location (30, 20) with a width and height of 55.\n           * rect(30, 20, 55, 55);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // Draw a rectangle with rounded corners, each having a radius of 20.\n           * rect(30, 20, 55, 55, 20);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // Draw a rectangle with rounded corners having the following radii:\n           * // top-left = 20, top-right = 15, bottom-right = 10, bottom-left = 5.\n           * rect(30, 20, 55, 55, 20, 15, 10, 5);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 55x55 white rect with black outline in mid-right of canvas.\n           * 55x55 white rect with black outline and rounded edges in mid-right of canvas.\n           * 55x55 white rect with black outline and rounded edges of different radii.\n           */\n          /**\n           * @method rect\n           * @param  {Number} x\n           * @param  {Number} y\n           * @param  {Number} w\n           * @param  {Number} h\n           * @param  {Integer} [detailX] number of segments in the x-direction (for WebGL mode)\n           * @param  {Integer} [detailY] number of segments in the y-direction (for WebGL mode)\n           * @chainable\n           */\n          _main.default.prototype.rect = function() {\n            _main.default._validateParameters('rect', arguments);\n            return this._renderRect.apply(this, arguments);\n          };\n\n          /**\n           * Draws a square to the screen. A square is a four-sided shape with\n           * every angle at ninety degrees, and equal side size.\n           * This function is a special case of the rect() function, where the width and height are the same, and the parameter is called \"s\" for side size.\n           * By default, the first two parameters set the location of the upper-left corner, the third sets the side size of the square.\n           * The way these parameters are interpreted, however,\n           * may be changed with the <a href=\"#/p5/rectMode\">rectMode()</a> function.\n           * <br><br>\n           * The fourth, fifth, sixth and seventh parameters, if specified,\n           * determine corner radius for the top-left, top-right, lower-right and\n           * lower-left corners, respectively. An omitted corner radius parameter is set\n           * to the value of the previously specified radius value in the parameter list.\n           *\n           * @method square\n           * @param  {Number} x  x-coordinate of the square.\n           * @param  {Number} y  y-coordinate of the square.\n           * @param  {Number} s  side size of the square.\n           * @param  {Number} [tl] optional radius of top-left corner.\n           * @param  {Number} [tr] optional radius of top-right corner.\n           * @param  {Number} [br] optional radius of bottom-right corner.\n           * @param  {Number} [bl] optional radius of bottom-left corner.\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // Draw a square at location (30, 20) with a side size of 55.\n           * square(30, 20, 55);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // Draw a square with rounded corners, each having a radius of 20.\n           * square(30, 20, 55, 20);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // Draw a square with rounded corners having the following radii:\n           * // top-left = 20, top-right = 15, bottom-right = 10, bottom-left = 5.\n           * square(30, 20, 55, 20, 15, 10, 5);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 55x55 white square with black outline in mid-right of canvas.\n           * 55x55 white square with black outline and rounded edges in mid-right of canvas.\n           * 55x55 white square with black outline and rounded edges of different radii.\n           */\n          _main.default.prototype.square = function(x, y, s, tl, tr, br, bl) {\n            _main.default._validateParameters('square', arguments);\n            return this._renderRect.apply(this, arguments);\n          };\n\n          // internal method to have renderer draw a rectangle\n          _main.default.prototype._renderRect = function() {\n            if (this._renderer._doStroke || this._renderer._doFill) {\n              // duplicate width for height if only one value given\n              if (arguments.length === 3) {\n                arguments[3] = arguments[2];\n              }\n\n              var vals = _helpers.default.modeAdjust(\n                arguments[0],\n                arguments[1],\n                arguments[2],\n                arguments[3],\n                this._renderer._rectMode\n              );\n\n              var args = [vals.x, vals.y, vals.w, vals.h];\n              // append the additional arguments (either cornder radii, or\n              // segment details) to the argument list\n              for (var i = 4; i < arguments.length; i++) {\n                args[i] = arguments[i];\n              }\n              this._renderer.rect(args);\n            }\n\n            return this;\n          };\n\n          /**\n           * A triangle is a plane created by connecting three points. The first two\n           * arguments specify the first point, the middle two arguments specify the\n           * second point, and the last two arguments specify the third point.\n           *\n           * @method triangle\n           * @param  {Number} x1 x-coordinate of the first point\n           * @param  {Number} y1 y-coordinate of the first point\n           * @param  {Number} x2 x-coordinate of the second point\n           * @param  {Number} y2 y-coordinate of the second point\n           * @param  {Number} x3 x-coordinate of the third point\n           * @param  {Number} y3 y-coordinate of the third point\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * triangle(30, 75, 58, 20, 86, 75);\n           * </code>\n           * </div>\n           *\n           *@alt\n           * white triangle with black outline in mid-right of canvas.\n           *\n           */\n          _main.default.prototype.triangle = function() {\n            for (\n              var _len4 = arguments.length, args = new Array(_len4), _key4 = 0;\n              _key4 < _len4;\n              _key4++\n            ) {\n              args[_key4] = arguments[_key4];\n            }\n            _main.default._validateParameters('triangle', args);\n\n            if (this._renderer._doStroke || this._renderer._doFill) {\n              this._renderer.triangle(args);\n            }\n\n            return this;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../constants': 43, '../error_helpers': 45, '../helpers': 46, '../main': 50 }\n      ],\n      58: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../main'));\n          var constants = _interopRequireWildcard(_dereq_('../constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Shape\n           * @submodule Attributes\n           * @for p5\n           * @requires core\n           * @requires constants\n           */ /**\n           * Modifies the location from which ellipses are drawn by changing the way\n           * in which parameters given to <a href=\"#/p5/ellipse\">ellipse()</a>,\n           * <a href=\"#/p5/circle\">circle()</a> and <a href=\"#/p5/arc\">arc()</a> are interpreted.\n           * <br><br>\n           * The default mode is ellipseMode(CENTER), which interprets the first two\n           * parameters of <a href=\"#/p5/ellipse\">ellipse()</a> as the shape's center point, while the third and\n           * fourth parameters are its width and height.\n           * <br><br>\n           * ellipseMode(RADIUS) also uses the first two parameters of <a href=\"#/p5/ellipse\">ellipse()</a> as\n           * the shape's center point, but uses the third and fourth parameters to\n           * specify half of the shapes's width and height.\n           * <br><br>\n           * ellipseMode(CORNER) interprets the first two parameters of <a href=\"#/p5/ellipse\">ellipse()</a> as\n           * the upper-left corner of the shape, while the third and fourth parameters\n           * are its width and height.\n           * <br><br>\n           * ellipseMode(CORNERS) interprets the first two parameters of <a href=\"#/p5/ellipse\">ellipse()</a> as\n           * the location of one corner of the ellipse's bounding box, and the third\n           * and fourth parameters as the location of the opposite corner.\n           * <br><br>\n           * The parameter must be written in ALL CAPS because Javascript is a\n           * case-sensitive language.\n           *\n           * @method ellipseMode\n           * @param  {Constant} mode either CENTER, RADIUS, CORNER, or CORNERS\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * ellipseMode(RADIUS); // Set ellipseMode to RADIUS\n           * fill(255); // Set fill to white\n           * ellipse(50, 50, 30, 30); // Draw white ellipse using RADIUS mode\n           *\n           * ellipseMode(CENTER); // Set ellipseMode to CENTER\n           * fill(100); // Set fill to gray\n           * ellipse(50, 50, 30, 30); // Draw gray ellipse using CENTER mode\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * ellipseMode(CORNER); // Set ellipseMode is CORNER\n           * fill(255); // Set fill to white\n           * ellipse(25, 25, 50, 50); // Draw white ellipse using CORNER mode\n           *\n           * ellipseMode(CORNERS); // Set ellipseMode to CORNERS\n           * fill(100); // Set fill to gray\n           * ellipse(25, 25, 50, 50); // Draw gray ellipse using CORNERS mode\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 60x60 white ellipse and 30x30 grey ellipse with black outlines at center.\n           * 60x60 white ellipse @center and 30x30 grey ellipse top-right, black outlines.\n           *\n           */ _main.default.prototype.ellipseMode = function(m) {\n            _main.default._validateParameters('ellipseMode', arguments);\n            if (\n              m === constants.CORNER ||\n              m === constants.CORNERS ||\n              m === constants.RADIUS ||\n              m === constants.CENTER\n            ) {\n              this._renderer._ellipseMode = m;\n            }\n            return this;\n          };\n\n          /**\n           * Draws all geometry with jagged (aliased) edges. Note that <a href=\"#/p5/smooth\">smooth()</a> is\n           * active by default in 2D mode, so it is necessary to call <a href=\"#/p5/noSmooth\">noSmooth()</a> to disable\n           * smoothing of geometry, images, and fonts. In 3D mode, <a href=\"#/p5/noSmooth\">noSmooth()</a> is enabled\n           * by default, so it is necessary to call <a href=\"#/p5/smooth\">smooth()</a> if you would like\n           * smooth (antialiased) edges on your geometry.\n           *\n           * @method noSmooth\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * background(0);\n           * noStroke();\n           * smooth();\n           * ellipse(30, 48, 36, 36);\n           * noSmooth();\n           * ellipse(70, 48, 36, 36);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 2 pixelated 36x36 white ellipses to left & right of center, black background\n           *\n           */\n          _main.default.prototype.noSmooth = function() {\n            this.setAttributes('antialias', false);\n            if (!this._renderer.isP3D) {\n              if ('imageSmoothingEnabled' in this.drawingContext) {\n                this.drawingContext.imageSmoothingEnabled = false;\n              }\n            }\n            return this;\n          };\n\n          /**\n           * Modifies the location from which rectangles are drawn by changing the way\n           * in which parameters given to <a href=\"#/p5/rect\">rect()</a> are interpreted.\n           * <br><br>\n           * The default mode is rectMode(CORNER), which interprets the first two\n           * parameters of <a href=\"#/p5/rect\">rect()</a> as the upper-left corner of the shape, while the\n           * third and fourth parameters are its width and height.\n           * <br><br>\n           * rectMode(CORNERS) interprets the first two parameters of <a href=\"#/p5/rect\">rect()</a> as the\n           * location of one corner, and the third and fourth parameters as the\n           * location of the opposite corner.\n           * <br><br>\n           * rectMode(CENTER) interprets the first two parameters of <a href=\"#/p5/rect\">rect()</a> as the\n           * shape's center point, while the third and fourth parameters are its\n           * width and height.\n           * <br><br>\n           * rectMode(RADIUS) also uses the first two parameters of <a href=\"#/p5/rect\">rect()</a> as the\n           * shape's center point, but uses the third and fourth parameters to specify\n           * half of the shapes's width and height.\n           * <br><br>\n           * The parameter must be written in ALL CAPS because Javascript is a\n           * case-sensitive language.\n           *\n           * @method rectMode\n           * @param  {Constant} mode either CORNER, CORNERS, CENTER, or RADIUS\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * rectMode(CORNER); // Default rectMode is CORNER\n           * fill(255); // Set fill to white\n           * rect(25, 25, 50, 50); // Draw white rect using CORNER mode\n           *\n           * rectMode(CORNERS); // Set rectMode to CORNERS\n           * fill(100); // Set fill to gray\n           * rect(25, 25, 50, 50); // Draw gray rect using CORNERS mode\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * rectMode(RADIUS); // Set rectMode to RADIUS\n           * fill(255); // Set fill to white\n           * rect(50, 50, 30, 30); // Draw white rect using RADIUS mode\n           *\n           * rectMode(CENTER); // Set rectMode to CENTER\n           * fill(100); // Set fill to gray\n           * rect(50, 50, 30, 30); // Draw gray rect using CENTER mode\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 white rect at center and 25x25 grey rect in the top left of the other.\n           * 50x50 white rect at center and 25x25 grey rect in the center of the other.\n           *\n           */\n          _main.default.prototype.rectMode = function(m) {\n            _main.default._validateParameters('rectMode', arguments);\n            if (\n              m === constants.CORNER ||\n              m === constants.CORNERS ||\n              m === constants.RADIUS ||\n              m === constants.CENTER\n            ) {\n              this._renderer._rectMode = m;\n            }\n            return this;\n          };\n\n          /**\n           * Draws all geometry with smooth (anti-aliased) edges. <a href=\"#/p5/smooth\">smooth()</a> will also\n           * improve image quality of resized images. Note that <a href=\"#/p5/smooth\">smooth()</a> is active by\n           * default in 2D mode; <a href=\"#/p5/noSmooth\">noSmooth()</a> can be used to disable smoothing of geometry,\n           * images, and fonts. In 3D mode, <a href=\"#/p5/noSmooth\">noSmooth()</a> is enabled\n           * by default, so it is necessary to call <a href=\"#/p5/smooth\">smooth()</a> if you would like\n           * smooth (antialiased) edges on your geometry.\n           *\n           * @method smooth\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * background(0);\n           * noStroke();\n           * smooth();\n           * ellipse(30, 48, 36, 36);\n           * noSmooth();\n           * ellipse(70, 48, 36, 36);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 2 pixelated 36x36 white ellipses one left one right of center. On black.\n           *\n           */\n          _main.default.prototype.smooth = function() {\n            this.setAttributes('antialias', true);\n            if (!this._renderer.isP3D) {\n              if ('imageSmoothingEnabled' in this.drawingContext) {\n                this.drawingContext.imageSmoothingEnabled = true;\n              }\n            }\n            return this;\n          };\n\n          /**\n           * Sets the style for rendering line endings. These ends are either squared,\n           * extended, or rounded, each of which specified with the corresponding\n           * parameters: SQUARE, PROJECT, and ROUND. The default cap is ROUND.\n           *\n           * @method strokeCap\n           * @param  {Constant} cap either SQUARE, PROJECT, or ROUND\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * strokeWeight(12.0);\n           * strokeCap(ROUND);\n           * line(20, 30, 80, 30);\n           * strokeCap(SQUARE);\n           * line(20, 50, 80, 50);\n           * strokeCap(PROJECT);\n           * line(20, 70, 80, 70);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 3 lines. Top line: rounded ends, mid: squared, bottom:longer squared ends.\n           *\n           */\n          _main.default.prototype.strokeCap = function(cap) {\n            _main.default._validateParameters('strokeCap', arguments);\n            if (\n              cap === constants.ROUND ||\n              cap === constants.SQUARE ||\n              cap === constants.PROJECT\n            ) {\n              this._renderer.strokeCap(cap);\n            }\n            return this;\n          };\n\n          /**\n           * Sets the style of the joints which connect line segments. These joints\n           * are either mitered, beveled, or rounded and specified with the\n           * corresponding parameters MITER, BEVEL, and ROUND. The default joint is\n           * MITER.\n           *\n           * @method strokeJoin\n           * @param  {Constant} join either MITER, BEVEL, ROUND\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * noFill();\n           * strokeWeight(10.0);\n           * strokeJoin(MITER);\n           * beginShape();\n           * vertex(35, 20);\n           * vertex(65, 50);\n           * vertex(35, 80);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * noFill();\n           * strokeWeight(10.0);\n           * strokeJoin(BEVEL);\n           * beginShape();\n           * vertex(35, 20);\n           * vertex(65, 50);\n           * vertex(35, 80);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * noFill();\n           * strokeWeight(10.0);\n           * strokeJoin(ROUND);\n           * beginShape();\n           * vertex(35, 20);\n           * vertex(65, 50);\n           * vertex(35, 80);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Right-facing arrowhead shape with pointed tip in center of canvas.\n           * Right-facing arrowhead shape with flat tip in center of canvas.\n           * Right-facing arrowhead shape with rounded tip in center of canvas.\n           *\n           */\n          _main.default.prototype.strokeJoin = function(join) {\n            _main.default._validateParameters('strokeJoin', arguments);\n            if (\n              join === constants.ROUND ||\n              join === constants.BEVEL ||\n              join === constants.MITER\n            ) {\n              this._renderer.strokeJoin(join);\n            }\n            return this;\n          };\n\n          /**\n           * Sets the width of the stroke used for lines, points, and the border\n           * around shapes. All widths are set in units of pixels.\n           *\n           * @method strokeWeight\n           * @param  {Number} weight the weight (in pixels) of the stroke\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * strokeWeight(1); // Default\n           * line(20, 20, 80, 20);\n           * strokeWeight(4); // Thicker\n           * line(20, 40, 80, 40);\n           * strokeWeight(10); // Beastly\n           * line(20, 70, 80, 70);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 3 horizontal black lines. Top line: thin, mid: medium, bottom:thick.\n           *\n           */\n          _main.default.prototype.strokeWeight = function(w) {\n            _main.default._validateParameters('strokeWeight', arguments);\n            this._renderer.strokeWeight(w);\n            return this;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../constants': 43, '../main': 50 }\n      ],\n      59: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../main'));\n          _dereq_('../error_helpers');\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Shape\n           * @submodule Curves\n           * @for p5\n           * @requires core\n           */ /**\n           * Draws a cubic Bezier curve on the screen. These curves are defined by a\n           * series of anchor and control points. The first two parameters specify\n           * the first anchor point and the last two parameters specify the other\n           * anchor point, which become the first and last points on the curve. The\n           * middle parameters specify the two control points which define the shape\n           * of the curve. Approximately speaking, control points \"pull\" the curve\n           * towards them.<br /><br />Bezier curves were developed by French\n           * automotive engineer Pierre Bezier, and are commonly used in computer\n           * graphics to define gently sloping curves. See also <a href=\"#/p5/curve\">curve()</a>.\n           *\n           * @method bezier\n           * @param  {Number} x1 x-coordinate for the first anchor point\n           * @param  {Number} y1 y-coordinate for the first anchor point\n           * @param  {Number} x2 x-coordinate for the first control point\n           * @param  {Number} y2 y-coordinate for the first control point\n           * @param  {Number} x3 x-coordinate for the second control point\n           * @param  {Number} y3 y-coordinate for the second control point\n           * @param  {Number} x4 x-coordinate for the second anchor point\n           * @param  {Number} y4 y-coordinate for the second anchor point\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * noFill();\n           * stroke(255, 102, 0);\n           * line(85, 20, 10, 10);\n           * line(90, 90, 15, 80);\n           * stroke(0, 0, 0);\n           * bezier(85, 20, 10, 10, 90, 90, 15, 80);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * background(0, 0, 0);\n           * noFill();\n           * stroke(255);\n           * bezier(250, 250, 0, 100, 100, 0, 100, 0, 0, 0, 100, 0);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * stretched black s-shape in center with orange lines extending from end points.\n           * stretched black s-shape with 10 5x5 white ellipses along the shape.\n           * stretched black s-shape with 7 5x5 ellipses and orange lines along the shape.\n           * stretched black s-shape with 17 small orange lines extending from under shape.\n           * horseshoe shape with orange ends facing left and black curved center.\n           * horseshoe shape with orange ends facing left and black curved center.\n           * Line shaped like right-facing arrow,points move with mouse-x and warp shape.\n           * horizontal line that hooks downward on the right and 13 5x5 ellipses along it.\n           * right curving line mid-right of canvas with 7 short lines radiating from it.\n           */ /**\n           * @method bezier\n           * @param  {Number} x1\n           * @param  {Number} y1\n           * @param  {Number} z1 z-coordinate for the first anchor point\n           * @param  {Number} x2\n           * @param  {Number} y2\n           * @param  {Number} z2 z-coordinate for the first control point\n           * @param  {Number} x3\n           * @param  {Number} y3\n           * @param  {Number} z3 z-coordinate for the second control point\n           * @param  {Number} x4\n           * @param  {Number} y4\n           * @param  {Number} z4 z-coordinate for the second anchor point\n           * @chainable\n           */ _main.default.prototype.bezier = function() {\n            var _this$_renderer;\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default._validateParameters('bezier', args);\n\n            // if the current stroke and fill settings wouldn't result in something\n            // visible, exit immediately\n            if (!this._renderer._doStroke && !this._renderer._doFill) {\n              return this;\n            }\n\n            (_this$_renderer = this._renderer).bezier.apply(_this$_renderer, args);\n\n            return this;\n          };\n\n          /**\n           * Sets the resolution at which Beziers display.\n           *\n           * The default value is 20.\n           *\n           * This function is only useful when using the WEBGL renderer\n           * as the default canvas renderer does not use this information.\n           *\n           * @method bezierDetail\n           * @param {Number} detail resolution of the curves\n           * @chainable\n           * @example\n           * <div modernizr='webgl'>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   noFill();\n           *\n           *   bezierDetail(5);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *\n           *   // prettier-ignore\n           *   bezier(-40, -40, 0,\n           *           90, -40, 0,\n           *          -90,  40, 0,\n           *           40,  40, 0);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * stretched black s-shape with a low level of bezier detail\n           *\n           */\n          _main.default.prototype.bezierDetail = function(d) {\n            _main.default._validateParameters('bezierDetail', arguments);\n            this._bezierDetail = d;\n            return this;\n          };\n\n          /**\n    * Evaluates the Bezier at position t for points a, b, c, d.\n    * The parameters a and d are the first and last points\n    * on the curve, and b and c are the control points.\n    * The final parameter t varies between 0 and 1.\n    * This can be done once with the x coordinates and a second time\n    * with the y coordinates to get the location of a bezier curve at t.\n    *\n    * @method bezierPoint\n    * @param {Number} a coordinate of first point on the curve\n    * @param {Number} b coordinate of first control point\n    * @param {Number} c coordinate of second control point\n    * @param {Number} d coordinate of second point on the curve\n    * @param {Number} t value between 0 and 1\n    * @return {Number} the value of the Bezier at position t\n    * @example\n    * <div>\n    * <code>\n    * noFill();\n    * let x1 = 85,\n     x2 = 10,\n     x3 = 90,\n     x4 = 15;\n    * let y1 = 20,\n     y2 = 10,\n     y3 = 90,\n     y4 = 80;\n    * bezier(x1, y1, x2, y2, x3, y3, x4, y4);\n    * fill(255);\n    * let steps = 10;\n    * for (let i = 0; i <= steps; i++) {\n    *   let t = i / steps;\n    *   let x = bezierPoint(x1, x2, x3, x4, t);\n    *   let y = bezierPoint(y1, y2, y3, y4, t);\n    *   ellipse(x, y, 5, 5);\n    * }\n    * </code>\n    * </div>\n    *\n    * @alt\n    * stretched black s-shape with 17 small orange lines extending from under shape.\n    *\n    */\n          _main.default.prototype.bezierPoint = function(a, b, c, d, t) {\n            _main.default._validateParameters('bezierPoint', arguments);\n\n            var adjustedT = 1 - t;\n            return (\n              Math.pow(adjustedT, 3) * a +\n              3 * Math.pow(adjustedT, 2) * t * b +\n              3 * adjustedT * Math.pow(t, 2) * c +\n              Math.pow(t, 3) * d\n            );\n          };\n\n          /**\n           * Evaluates the tangent to the Bezier at position t for points a, b, c, d.\n           * The parameters a and d are the first and last points\n           * on the curve, and b and c are the control points.\n           * The final parameter t varies between 0 and 1.\n           *\n           * @method bezierTangent\n           * @param {Number} a coordinate of first point on the curve\n           * @param {Number} b coordinate of first control point\n           * @param {Number} c coordinate of second control point\n           * @param {Number} d coordinate of second point on the curve\n           * @param {Number} t value between 0 and 1\n           * @return {Number} the tangent at position t\n           * @example\n           * <div>\n           * <code>\n           * noFill();\n           * bezier(85, 20, 10, 10, 90, 90, 15, 80);\n           * let steps = 6;\n           * fill(255);\n           * for (let i = 0; i <= steps; i++) {\n           *   let t = i / steps;\n           *   // Get the location of the point\n           *   let x = bezierPoint(85, 10, 90, 15, t);\n           *   let y = bezierPoint(20, 10, 90, 80, t);\n           *   // Get the tangent points\n           *   let tx = bezierTangent(85, 10, 90, 15, t);\n           *   let ty = bezierTangent(20, 10, 90, 80, t);\n           *   // Calculate an angle from the tangent points\n           *   let a = atan2(ty, tx);\n           *   a += PI;\n           *   stroke(255, 102, 0);\n           *   line(x, y, cos(a) * 30 + x, sin(a) * 30 + y);\n           *   // The following line of code makes a line\n           *   // inverse of the above line\n           *   //line(x, y, cos(a)*-30 + x, sin(a)*-30 + y);\n           *   stroke(0);\n           *   ellipse(x, y, 5, 5);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * noFill();\n           * bezier(85, 20, 10, 10, 90, 90, 15, 80);\n           * stroke(255, 102, 0);\n           * let steps = 16;\n           * for (let i = 0; i <= steps; i++) {\n           *   let t = i / steps;\n           *   let x = bezierPoint(85, 10, 90, 15, t);\n           *   let y = bezierPoint(20, 10, 90, 80, t);\n           *   let tx = bezierTangent(85, 10, 90, 15, t);\n           *   let ty = bezierTangent(20, 10, 90, 80, t);\n           *   let a = atan2(ty, tx);\n           *   a -= HALF_PI;\n           *   line(x, y, cos(a) * 8 + x, sin(a) * 8 + y);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * s-shaped line with 17 short orange lines extending from underside of shape\n           *\n           */\n          _main.default.prototype.bezierTangent = function(a, b, c, d, t) {\n            _main.default._validateParameters('bezierTangent', arguments);\n\n            var adjustedT = 1 - t;\n            return (\n              3 * d * Math.pow(t, 2) -\n              3 * c * Math.pow(t, 2) +\n              6 * c * adjustedT * t -\n              6 * b * adjustedT * t +\n              3 * b * Math.pow(adjustedT, 2) -\n              3 * a * Math.pow(adjustedT, 2)\n            );\n          };\n\n          /**\n    * Draws a curved line on the screen between two points, given as the\n    * middle four parameters. The first two parameters are a control point, as\n    * if the curve came from this point even though it's not drawn. The last\n    * two parameters similarly describe the other control point. <br /><br />\n    * Longer curves can be created by putting a series of <a href=\"#/p5/curve\">curve()</a> functions\n    * together or using <a href=\"#/p5/curveVertex\">curveVertex()</a>. An additional function called\n    * <a href=\"#/p5/curveTightness\">curveTightness()</a> provides control for the visual quality of the curve.\n    * The <a href=\"#/p5/curve\">curve()</a> function is an implementation of Catmull-Rom splines.\n    *\n    * @method curve\n    * @param  {Number} x1 x-coordinate for the beginning control point\n    * @param  {Number} y1 y-coordinate for the beginning control point\n    * @param  {Number} x2 x-coordinate for the first point\n    * @param  {Number} y2 y-coordinate for the first point\n    * @param  {Number} x3 x-coordinate for the second point\n    * @param  {Number} y3 y-coordinate for the second point\n    * @param  {Number} x4 x-coordinate for the ending control point\n    * @param  {Number} y4 y-coordinate for the ending control point\n    * @chainable\n    * @example\n    * <div>\n    * <code>\n    * noFill();\n    * stroke(255, 102, 0);\n    * curve(5, 26, 5, 26, 73, 24, 73, 61);\n    * stroke(0);\n    * curve(5, 26, 73, 24, 73, 61, 15, 65);\n    * stroke(255, 102, 0);\n    * curve(73, 24, 73, 61, 15, 65, 15, 65);\n    * </code>\n    * </div>\n    * <div>\n    * <code>\n    * // Define the curve points as JavaScript objects\n    * let p1 = { x: 5, y: 26 },\n     p2 = { x: 73, y: 24 };\n    * let p3 = { x: 73, y: 61 },\n     p4 = { x: 15, y: 65 };\n    * noFill();\n    * stroke(255, 102, 0);\n    * curve(p1.x, p1.y, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y);\n    * stroke(0);\n    * curve(p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y);\n    * stroke(255, 102, 0);\n    * curve(p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, p4.x, p4.y);\n    * </code>\n    * </div>\n    * <div>\n    * <code>\n    * noFill();\n    * stroke(255, 102, 0);\n    * curve(5, 26, 0, 5, 26, 0, 73, 24, 0, 73, 61, 0);\n    * stroke(0);\n    * curve(5, 26, 0, 73, 24, 0, 73, 61, 0, 15, 65, 0);\n    * stroke(255, 102, 0);\n    * curve(73, 24, 0, 73, 61, 0, 15, 65, 0, 15, 65, 0);\n    * </code>\n    * </div>\n    *\n    * @alt\n    * horseshoe shape with orange ends facing left and black curved center.\n    * horseshoe shape with orange ends facing left and black curved center.\n    * curving black and orange lines.\n    */\n          /**\n           * @method curve\n           * @param  {Number} x1\n           * @param  {Number} y1\n           * @param  {Number} z1 z-coordinate for the beginning control point\n           * @param  {Number} x2\n           * @param  {Number} y2\n           * @param  {Number} z2 z-coordinate for the first point\n           * @param  {Number} x3\n           * @param  {Number} y3\n           * @param  {Number} z3 z-coordinate for the second point\n           * @param  {Number} x4\n           * @param  {Number} y4\n           * @param  {Number} z4 z-coordinate for the ending control point\n           * @chainable\n           */\n          _main.default.prototype.curve = function() {\n            for (\n              var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;\n              _key2 < _len2;\n              _key2++\n            ) {\n              args[_key2] = arguments[_key2];\n            }\n            _main.default._validateParameters('curve', args);\n\n            if (this._renderer._doStroke) {\n              var _this$_renderer2;\n              (_this$_renderer2 = this._renderer).curve.apply(_this$_renderer2, args);\n            }\n\n            return this;\n          };\n\n          /**\n           * Sets the resolution at which curves display.\n           *\n           * The default value is 20 while the minimum value is 3.\n           *\n           * This function is only useful when using the WEBGL renderer\n           * as the default canvas renderer does not use this\n           * information.\n           *\n           * @method curveDetail\n           * @param {Number} resolution resolution of the curves\n           * @chainable\n           * @example\n           * <div modernizr='webgl'>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *\n           *   curveDetail(5);\n           * }\n           * function draw() {\n           *   background(200);\n           *\n           *   curve(250, 600, 0, -30, 40, 0, 30, 30, 0, -250, 600, 0);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * white arch shape with a low level of curve detail.\n           *\n           */\n          _main.default.prototype.curveDetail = function(d) {\n            _main.default._validateParameters('curveDetail', arguments);\n            if (d < 3) {\n              this._curveDetail = 3;\n            } else {\n              this._curveDetail = d;\n            }\n            return this;\n          };\n\n          /**\n           * Modifies the quality of forms created with <a href=\"#/p5/curve\">curve()</a> and <a href=\"#/p5/curveVertex\">curveVertex()</a>.\n           * The parameter tightness determines how the curve fits to the vertex\n           * points. The value 0.0 is the default value for tightness (this value\n           * defines the curves to be Catmull-Rom splines) and the value 1.0 connects\n           * all the points with straight lines. Values within the range -5.0 and 5.0\n           * will deform the curves but will leave them recognizable and as values\n           * increase in magnitude, they will continue to deform.\n           *\n           * @method curveTightness\n           * @param {Number} amount amount of deformation from the original vertices\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // Move the mouse left and right to see the curve change\n           *\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   noFill();\n           * }\n           *\n           * function draw() {\n           *   background(204);\n           *   let t = map(mouseX, 0, width, -5, 5);\n           *   curveTightness(t);\n           *   beginShape();\n           *   curveVertex(10, 26);\n           *   curveVertex(10, 26);\n           *   curveVertex(83, 24);\n           *   curveVertex(83, 61);\n           *   curveVertex(25, 65);\n           *   curveVertex(25, 65);\n           *   endShape();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Line shaped like right-facing arrow,points move with mouse-x and warp shape.\n           */\n          _main.default.prototype.curveTightness = function(t) {\n            _main.default._validateParameters('curveTightness', arguments);\n            this._renderer._curveTightness = t;\n            return this;\n          };\n\n          /**\n           * Evaluates the curve at position t for points a, b, c, d.\n           * The parameter t varies between 0 and 1, a and d are control points\n           * of the curve, and b and c are the start and end points of the curve.\n           * This can be done once with the x coordinates and a second time\n           * with the y coordinates to get the location of a curve at t.\n           *\n           * @method curvePoint\n           * @param {Number} a coordinate of first control point of the curve\n           * @param {Number} b coordinate of first point\n           * @param {Number} c coordinate of second point\n           * @param {Number} d coordinate of second control point\n           * @param {Number} t value between 0 and 1\n           * @return {Number} bezier value at position t\n           * @example\n           * <div>\n           * <code>\n           * noFill();\n           * curve(5, 26, 5, 26, 73, 24, 73, 61);\n           * curve(5, 26, 73, 24, 73, 61, 15, 65);\n           * fill(255);\n           * ellipseMode(CENTER);\n           * let steps = 6;\n           * for (let i = 0; i <= steps; i++) {\n           *   let t = i / steps;\n           *   let x = curvePoint(5, 5, 73, 73, t);\n           *   let y = curvePoint(26, 26, 24, 61, t);\n           *   ellipse(x, y, 5, 5);\n           *   x = curvePoint(5, 73, 73, 15, t);\n           *   y = curvePoint(26, 24, 61, 65, t);\n           *   ellipse(x, y, 5, 5);\n           * }\n           * </code>\n           * </div>\n           *\n           *line hooking down to right-bottom with 13 5x5 white ellipse points\n           */\n          _main.default.prototype.curvePoint = function(a, b, c, d, t) {\n            _main.default._validateParameters('curvePoint', arguments);\n\n            var t3 = t * t * t,\n              t2 = t * t,\n              f1 = -0.5 * t3 + t2 - 0.5 * t,\n              f2 = 1.5 * t3 - 2.5 * t2 + 1.0,\n              f3 = -1.5 * t3 + 2.0 * t2 + 0.5 * t,\n              f4 = 0.5 * t3 - 0.5 * t2;\n            return a * f1 + b * f2 + c * f3 + d * f4;\n          };\n\n          /**\n           * Evaluates the tangent to the curve at position t for points a, b, c, d.\n           * The parameter t varies between 0 and 1, a and d are points on the curve,\n           * and b and c are the control points.\n           *\n           * @method curveTangent\n           * @param {Number} a coordinate of first point on the curve\n           * @param {Number} b coordinate of first control point\n           * @param {Number} c coordinate of second control point\n           * @param {Number} d coordinate of second point on the curve\n           * @param {Number} t value between 0 and 1\n           * @return {Number} the tangent at position t\n           * @example\n           * <div>\n           * <code>\n           * noFill();\n           * curve(5, 26, 73, 24, 73, 61, 15, 65);\n           * let steps = 6;\n           * for (let i = 0; i <= steps; i++) {\n           *   let t = i / steps;\n           *   let x = curvePoint(5, 73, 73, 15, t);\n           *   let y = curvePoint(26, 24, 61, 65, t);\n           *   //ellipse(x, y, 5, 5);\n           *   let tx = curveTangent(5, 73, 73, 15, t);\n           *   let ty = curveTangent(26, 24, 61, 65, t);\n           *   let a = atan2(ty, tx);\n           *   a -= PI / 2.0;\n           *   line(x, y, cos(a) * 8 + x, sin(a) * 8 + y);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           *right curving line mid-right of canvas with 7 short lines radiating from it.\n           */\n          _main.default.prototype.curveTangent = function(a, b, c, d, t) {\n            _main.default._validateParameters('curveTangent', arguments);\n\n            var t2 = t * t,\n              f1 = -3 * t2 / 2 + 2 * t - 0.5,\n              f2 = 9 * t2 / 2 - 5 * t,\n              f3 = -9 * t2 / 2 + 4 * t + 0.5,\n              f4 = 3 * t2 / 2 - t;\n            return a * f1 + b * f2 + c * f3 + d * f4;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../error_helpers': 45, '../main': 50 }\n      ],\n      60: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../main'));\n          var constants = _interopRequireWildcard(_dereq_('../constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Shape\n           * @submodule Vertex\n           * @for p5\n           * @requires core\n           * @requires constants\n           */ var shapeKind = null;\n          var vertices = [];\n          var contourVertices = [];\n          var isBezier = false;\n          var isCurve = false;\n          var isQuadratic = false;\n          var isContour = false;\n          var isFirstContour = true;\n\n          /**\n           * Use the <a href=\"#/p5/beginContour\">beginContour()</a> and <a href=\"#/p5/endContour\">endContour()</a> functions to create negative\n           * shapes within shapes such as the center of the letter 'O'. <a href=\"#/p5/beginContour\">beginContour()</a>\n           * begins recording vertices for the shape and <a href=\"#/p5/endContour\">endContour()</a> stops recording.\n           * The vertices that define a negative shape must \"wind\" in the opposite\n           * direction from the exterior shape. First draw vertices for the exterior\n           * clockwise order, then for internal shapes, draw vertices\n           * shape in counter-clockwise.\n           * <br><br>\n           * These functions can only be used within a <a href=\"#/p5/beginShape\">beginShape()</a>/<a href=\"#/p5/endShape\">endShape()</a> pair and\n           * transformations such as <a href=\"#/p5/translate\">translate()</a>, <a href=\"#/p5/rotate\">rotate()</a>, and <a href=\"#/p5/scale\">scale()</a> do not work\n           * within a <a href=\"#/p5/beginContour\">beginContour()</a>/<a href=\"#/p5/endContour\">endContour()</a> pair. It is also not possible to use\n           * other shapes, such as <a href=\"#/p5/ellipse\">ellipse()</a> or <a href=\"#/p5/rect\">rect()</a> within.\n           *\n           * @method beginContour\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * translate(50, 50);\n           * stroke(255, 0, 0);\n           * beginShape();\n           * // Exterior part of shape, clockwise winding\n           * vertex(-40, -40);\n           * vertex(40, -40);\n           * vertex(40, 40);\n           * vertex(-40, 40);\n           * // Interior part of shape, counter-clockwise winding\n           * beginContour();\n           * vertex(-20, -20);\n           * vertex(-20, 20);\n           * vertex(20, 20);\n           * vertex(20, -20);\n           * endContour();\n           * endShape(CLOSE);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * white rect and smaller grey rect with red outlines in center of canvas.\n           *\n           */\n          _main.default.prototype.beginContour = function() {\n            contourVertices = [];\n            isContour = true;\n            return this;\n          };\n\n          /**\n           * Using the <a href=\"#/p5/beginShape\">beginShape()</a> and <a href=\"#/p5/endShape\">endShape()</a> functions allow creating more\n           * complex forms. <a href=\"#/p5/beginShape\">beginShape()</a> begins recording vertices for a shape and\n           * <a href=\"#/p5/endShape\">endShape()</a> stops recording. The value of the kind parameter tells it which\n           * types of shapes to create from the provided vertices. With no mode\n           * specified, the shape can be any irregular polygon.\n           * <br><br>\n           * The parameters available for <a href=\"#/p5/beginShape\">beginShape()</a> are POINTS, LINES, TRIANGLES,\n           * TRIANGLE_FAN, TRIANGLE_STRIP, QUADS, QUAD_STRIP, and TESS (WebGL only). After calling the\n           * <a href=\"#/p5/beginShape\">beginShape()</a> function, a series of <a href=\"#/p5/vertex\">vertex()</a> commands must follow. To stop\n           * drawing the shape, call <a href=\"#/p5/endShape\">endShape()</a>. Each shape will be outlined with the\n           * current stroke color and filled with the fill color.\n           * <br><br>\n           * Transformations such as <a href=\"#/p5/translate\">translate()</a>, <a href=\"#/p5/rotate\">rotate()</a>, and <a href=\"#/p5/scale\">scale()</a> do not work\n           * within <a href=\"#/p5/beginShape\">beginShape()</a>. It is also not possible to use other shapes, such as\n           * <a href=\"#/p5/ellipse\">ellipse()</a> or <a href=\"#/p5/rect\">rect()</a> within <a href=\"#/p5/beginShape\">beginShape()</a>.\n           *\n           * @method beginShape\n           * @param  {Constant} [kind] either POINTS, LINES, TRIANGLES, TRIANGLE_FAN\n           *                                TRIANGLE_STRIP, QUADS, QUAD_STRIP or TESS\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * beginShape();\n           * vertex(30, 20);\n           * vertex(85, 20);\n           * vertex(85, 75);\n           * vertex(30, 75);\n           * endShape(CLOSE);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * beginShape(POINTS);\n           * vertex(30, 20);\n           * vertex(85, 20);\n           * vertex(85, 75);\n           * vertex(30, 75);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * beginShape(LINES);\n           * vertex(30, 20);\n           * vertex(85, 20);\n           * vertex(85, 75);\n           * vertex(30, 75);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * noFill();\n           * beginShape();\n           * vertex(30, 20);\n           * vertex(85, 20);\n           * vertex(85, 75);\n           * vertex(30, 75);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * noFill();\n           * beginShape();\n           * vertex(30, 20);\n           * vertex(85, 20);\n           * vertex(85, 75);\n           * vertex(30, 75);\n           * endShape(CLOSE);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * beginShape(TRIANGLES);\n           * vertex(30, 75);\n           * vertex(40, 20);\n           * vertex(50, 75);\n           * vertex(60, 20);\n           * vertex(70, 75);\n           * vertex(80, 20);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * beginShape(TRIANGLE_STRIP);\n           * vertex(30, 75);\n           * vertex(40, 20);\n           * vertex(50, 75);\n           * vertex(60, 20);\n           * vertex(70, 75);\n           * vertex(80, 20);\n           * vertex(90, 75);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * beginShape(TRIANGLE_FAN);\n           * vertex(57.5, 50);\n           * vertex(57.5, 15);\n           * vertex(92, 50);\n           * vertex(57.5, 85);\n           * vertex(22, 50);\n           * vertex(57.5, 15);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * beginShape(QUADS);\n           * vertex(30, 20);\n           * vertex(30, 75);\n           * vertex(50, 75);\n           * vertex(50, 20);\n           * vertex(65, 20);\n           * vertex(65, 75);\n           * vertex(85, 75);\n           * vertex(85, 20);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * beginShape(QUAD_STRIP);\n           * vertex(30, 20);\n           * vertex(30, 75);\n           * vertex(50, 20);\n           * vertex(50, 75);\n           * vertex(65, 20);\n           * vertex(65, 75);\n           * vertex(85, 20);\n           * vertex(85, 75);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * beginShape();\n           * vertex(20, 20);\n           * vertex(40, 20);\n           * vertex(40, 40);\n           * vertex(60, 40);\n           * vertex(60, 60);\n           * vertex(20, 60);\n           * endShape(CLOSE);\n           * </code>\n           * </div>\n           * @alt\n           * white square-shape with black outline in middle-right of canvas.\n           * 4 black points in a square shape in middle-right of canvas.\n           * 2 horizontal black lines. In the top-right and bottom-right of canvas.\n           * 3 line shape with horizontal on top, vertical in middle and horizontal bottom.\n           * square line shape in middle-right of canvas.\n           * 2 white triangle shapes mid-right canvas. left one pointing up and right down.\n           * 5 horizontal interlocking and alternating white triangles in mid-right canvas.\n           * 4 interlocking white triangles in 45 degree rotated square-shape.\n           * 2 white rectangle shapes in mid-right canvas. Both 20x55.\n           * 3 side-by-side white rectangles center rect is smaller in mid-right canvas.\n           * Thick white l-shape with black outline mid-top-left of canvas.\n           *\n           */\n          _main.default.prototype.beginShape = function(kind) {\n            _main.default._validateParameters('beginShape', arguments);\n            if (this._renderer.isP3D) {\n              var _this$_renderer;\n              (_this$_renderer = this._renderer).beginShape.apply(\n                _this$_renderer,\n                arguments\n              );\n            } else {\n              if (\n                kind === constants.POINTS ||\n                kind === constants.LINES ||\n                kind === constants.TRIANGLES ||\n                kind === constants.TRIANGLE_FAN ||\n                kind === constants.TRIANGLE_STRIP ||\n                kind === constants.QUADS ||\n                kind === constants.QUAD_STRIP\n              ) {\n                shapeKind = kind;\n              } else {\n                shapeKind = null;\n              }\n\n              vertices = [];\n              contourVertices = [];\n            }\n            return this;\n          };\n\n          /**\n           * Specifies vertex coordinates for Bezier curves. Each call to\n           * bezierVertex() defines the position of two control points and\n           * one anchor point of a Bezier curve, adding a new segment to a\n           * line or shape. For WebGL mode bezierVertex() can be used in 2D\n           * as well as 3D mode. 2D mode expects 6 parameters, while 3D mode\n           * expects 9 parameters (including z coordinates).\n           * <br><br>\n           * The first time bezierVertex() is used within a <a href=\"#/p5/beginShape\">beginShape()</a>\n           * call, it must be prefaced with a call to <a href=\"#/p5/vertex\">vertex()</a> to set the first anchor\n           * point. This function must be used between <a href=\"#/p5/beginShape\">beginShape()</a> and <a href=\"#/p5/endShape\">endShape()</a>\n           * and only when there is no MODE or POINTS parameter specified to\n           * <a href=\"#/p5/beginShape\">beginShape()</a>.\n           *\n           * @method bezierVertex\n           * @param  {Number} x2 x-coordinate for the first control point\n           * @param  {Number} y2 y-coordinate for the first control point\n           * @param  {Number} x3 x-coordinate for the second control point\n           * @param  {Number} y3 y-coordinate for the second control point\n           * @param  {Number} x4 x-coordinate for the anchor point\n           * @param  {Number} y4 y-coordinate for the anchor point\n           * @chainable\n           *\n           * @example\n           * <div>\n           * <code>\n           * noFill();\n           * beginShape();\n           * vertex(30, 20);\n           * bezierVertex(80, 0, 80, 75, 30, 75);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * @alt\n           * crescent-shaped line in middle of canvas. Points facing left.\n           *\n           * @example\n           * <div>\n           * <code>\n           * beginShape();\n           * vertex(30, 20);\n           * bezierVertex(80, 0, 80, 75, 30, 75);\n           * bezierVertex(50, 80, 60, 25, 30, 20);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * @alt\n           * white crescent shape in middle of canvas. Points facing left.\n           *\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   setAttributes('antialias', true);\n           * }\n           * function draw() {\n           *   orbitControl();\n           *   background(50);\n           *   strokeWeight(4);\n           *   stroke(255);\n           *   point(-25, 30);\n           *   point(25, 30);\n           *   point(25, -30);\n           *   point(-25, -30);\n           *\n           *   strokeWeight(1);\n           *   noFill();\n           *\n           *   beginShape();\n           *   vertex(-25, 30);\n           *   bezierVertex(25, 30, 25, -30, -25, -30);\n           *   endShape();\n           *\n           *   beginShape();\n           *   vertex(-25, 30, 20);\n           *   bezierVertex(25, 30, 20, 25, -30, 20, -25, -30, 20);\n           *   endShape();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * crescent shape in middle of canvas with another crescent shape on positive z-axis.\n           */\n\n          /**\n           * @method bezierVertex\n           * @param  {Number} x2\n           * @param  {Number} y2\n           * @param  {Number} z2 z-coordinate for the first control point (for WebGL mode)\n           * @param  {Number} x3\n           * @param  {Number} y3\n           * @param  {Number} z3 z-coordinate for the second control point (for WebGL mode)\n           * @param  {Number} x4\n           * @param  {Number} y4\n           * @param  {Number} z4 z-coordinate for the anchor point (for WebGL mode)\n           * @chainable\n           */\n          _main.default.prototype.bezierVertex = function() {\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default._validateParameters('bezierVertex', args);\n            if (this._renderer.isP3D) {\n              var _this$_renderer2;\n              (_this$_renderer2 = this._renderer).bezierVertex.apply(\n                _this$_renderer2,\n                args\n              );\n            } else {\n              if (vertices.length === 0) {\n                _main.default._friendlyError(\n                  'vertex() must be used once before calling bezierVertex()',\n                  'bezierVertex'\n                );\n              } else {\n                isBezier = true;\n                var vert = [];\n                for (var i = 0; i < args.length; i++) {\n                  vert[i] = args[i];\n                }\n                vert.isVert = false;\n                if (isContour) {\n                  contourVertices.push(vert);\n                } else {\n                  vertices.push(vert);\n                }\n              }\n            }\n            return this;\n          };\n\n          /**\n           * Specifies vertex coordinates for curves. This function may only\n           * be used between <a href=\"#/p5/beginShape\">beginShape()</a> and <a href=\"#/p5/endShape\">endShape()</a> and only when there\n           * is no MODE parameter specified to <a href=\"#/p5/beginShape\">beginShape()</a>.\n           * For WebGL mode curveVertex() can be used in 2D as well as 3D mode.\n           * 2D mode expects 2 parameters, while 3D mode expects 3 parameters.\n           * <br><br>\n           * The first and last points in a series of curveVertex() lines will be used to\n           * guide the beginning and end of a the curve. A minimum of four\n           * points is required to draw a tiny curve between the second and\n           * third points. Adding a fifth point with curveVertex() will draw\n           * the curve between the second, third, and fourth points. The\n           * curveVertex() function is an implementation of Catmull-Rom\n           * splines.\n           *\n           * @method curveVertex\n           * @param {Number} x x-coordinate of the vertex\n           * @param {Number} y y-coordinate of the vertex\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * strokeWeight(5);\n           * point(84, 91);\n           * point(68, 19);\n           * point(21, 17);\n           * point(32, 91);\n           * strokeWeight(1);\n           *\n           * noFill();\n           * beginShape();\n           * curveVertex(84, 91);\n           * curveVertex(84, 91);\n           * curveVertex(68, 19);\n           * curveVertex(21, 17);\n           * curveVertex(32, 91);\n           * curveVertex(32, 91);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           *\n           * @alt\n           * Upside-down u-shape line, mid canvas. left point extends beyond canvas view.\n           */\n          /**\n           * @method curveVertex\n           * @param {Number} x\n           * @param {Number} y\n           * @param {Number} [z] z-coordinate of the vertex (for WebGL mode)\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   setAttributes('antialias', true);\n           * }\n           * function draw() {\n           *   orbitControl();\n           *   background(50);\n           *   strokeWeight(4);\n           *   stroke(255);\n           *\n           *   point(-25, 25);\n           *   point(-25, 25);\n           *   point(-25, -25);\n           *   point(25, -25);\n           *   point(25, 25);\n           *   point(25, 25);\n           *\n           *   strokeWeight(1);\n           *   noFill();\n           *\n           *   beginShape();\n           *   curveVertex(-25, 25);\n           *   curveVertex(-25, 25);\n           *   curveVertex(-25, -25);\n           *   curveVertex(25, -25);\n           *   curveVertex(25, 25);\n           *   curveVertex(25, 25);\n           *   endShape();\n           *\n           *   beginShape();\n           *   curveVertex(-25, 25, 20);\n           *   curveVertex(-25, 25, 20);\n           *   curveVertex(-25, -25, 20);\n           *   curveVertex(25, -25, 20);\n           *   curveVertex(25, 25, 20);\n           *   curveVertex(25, 25, 20);\n           *   endShape();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Upside-down u-shape line, mid canvas with the same shape in positive z-axis.\n           *\n           */\n          _main.default.prototype.curveVertex = function() {\n            for (\n              var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;\n              _key2 < _len2;\n              _key2++\n            ) {\n              args[_key2] = arguments[_key2];\n            }\n            _main.default._validateParameters('curveVertex', args);\n            if (this._renderer.isP3D) {\n              var _this$_renderer3;\n              (_this$_renderer3 = this._renderer).curveVertex.apply(_this$_renderer3, args);\n            } else {\n              isCurve = true;\n              this.vertex(args[0], args[1]);\n            }\n            return this;\n          };\n\n          /**\n           * Use the <a href=\"#/p5/beginContour\">beginContour()</a> and <a href=\"#/p5/endContour\">endContour()</a> functions to create negative\n           * shapes within shapes such as the center of the letter 'O'. <a href=\"#/p5/beginContour\">beginContour()</a>\n           * begins recording vertices for the shape and <a href=\"#/p5/endContour\">endContour()</a> stops recording.\n           * The vertices that define a negative shape must \"wind\" in the opposite\n           * direction from the exterior shape. First draw vertices for the exterior\n           * clockwise order, then for internal shapes, draw vertices\n           * shape in counter-clockwise.\n           * <br><br>\n           * These functions can only be used within a <a href=\"#/p5/beginShape\">beginShape()</a>/<a href=\"#/p5/endShape\">endShape()</a> pair and\n           * transformations such as <a href=\"#/p5/translate\">translate()</a>, <a href=\"#/p5/rotate\">rotate()</a>, and <a href=\"#/p5/scale\">scale()</a> do not work\n           * within a <a href=\"#/p5/beginContour\">beginContour()</a>/<a href=\"#/p5/endContour\">endContour()</a> pair. It is also not possible to use\n           * other shapes, such as <a href=\"#/p5/ellipse\">ellipse()</a> or <a href=\"#/p5/rect\">rect()</a> within.\n           *\n           * @method endContour\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * translate(50, 50);\n           * stroke(255, 0, 0);\n           * beginShape();\n           * // Exterior part of shape, clockwise winding\n           * vertex(-40, -40);\n           * vertex(40, -40);\n           * vertex(40, 40);\n           * vertex(-40, 40);\n           * // Interior part of shape, counter-clockwise winding\n           * beginContour();\n           * vertex(-20, -20);\n           * vertex(-20, 20);\n           * vertex(20, 20);\n           * vertex(20, -20);\n           * endContour();\n           * endShape(CLOSE);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * white rect and smaller grey rect with red outlines in center of canvas.\n           *\n           */\n          _main.default.prototype.endContour = function() {\n            var vert = contourVertices[0].slice(); // copy all data\n            vert.isVert = contourVertices[0].isVert;\n            vert.moveTo = false;\n            contourVertices.push(vert);\n\n            // prevent stray lines with multiple contours\n            if (isFirstContour) {\n              vertices.push(vertices[0]);\n              isFirstContour = false;\n            }\n\n            for (var i = 0; i < contourVertices.length; i++) {\n              vertices.push(contourVertices[i]);\n            }\n            return this;\n          };\n\n          /**\n           * The <a href=\"#/p5/endShape\">endShape()</a> function is the companion to <a href=\"#/p5/beginShape\">beginShape()</a> and may only be\n           * called after <a href=\"#/p5/beginShape\">beginShape()</a>. When <a href=\"#/p5/endshape\">endShape()</a> is called, all of image data\n           * defined since the previous call to <a href=\"#/p5/beginShape\">beginShape()</a> is written into the image\n           * buffer. The constant CLOSE as the value for the MODE parameter to close\n           * the shape (to connect the beginning and the end).\n           *\n           * @method endShape\n           * @param  {Constant} [mode] use CLOSE to close the shape\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * noFill();\n           *\n           * beginShape();\n           * vertex(20, 20);\n           * vertex(45, 20);\n           * vertex(45, 80);\n           * endShape(CLOSE);\n           *\n           * beginShape();\n           * vertex(50, 20);\n           * vertex(75, 20);\n           * vertex(75, 80);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Triangle line shape with smallest interior angle on bottom and upside-down L.\n           *\n           */\n          _main.default.prototype.endShape = function(mode) {\n            _main.default._validateParameters('endShape', arguments);\n            if (this._renderer.isP3D) {\n              this._renderer.endShape(\n                mode,\n                isCurve,\n                isBezier,\n                isQuadratic,\n                isContour,\n                shapeKind\n              );\n            } else {\n              if (vertices.length === 0) {\n                return this;\n              }\n              if (!this._renderer._doStroke && !this._renderer._doFill) {\n                return this;\n              }\n\n              var closeShape = mode === constants.CLOSE;\n\n              // if the shape is closed, the first element is also the last element\n              if (closeShape && !isContour) {\n                vertices.push(vertices[0]);\n              }\n\n              this._renderer.endShape(\n                mode,\n                vertices,\n                isCurve,\n                isBezier,\n                isQuadratic,\n                isContour,\n                shapeKind\n              );\n\n              // Reset some settings\n              isCurve = false;\n              isBezier = false;\n              isQuadratic = false;\n              isContour = false;\n              isFirstContour = true;\n\n              // If the shape is closed, the first element was added as last element.\n              // We must remove it again to prevent the list of vertices from growing\n              // over successive calls to endShape(CLOSE)\n              if (closeShape) {\n                vertices.pop();\n              }\n            }\n            return this;\n          };\n\n          /**\n           * Specifies vertex coordinates for quadratic Bezier curves. Each call to\n           * quadraticVertex() defines the position of one control points and one\n           * anchor point of a Bezier curve, adding a new segment to a line or shape.\n           * The first time quadraticVertex() is used within a <a href=\"#/p5/beginShape\">beginShape()</a> call, it\n           * must be prefaced with a call to <a href=\"#/p5/vertex\">vertex()</a> to set the first anchor point.\n           * For WebGL mode quadraticVertex() can be used in 2D as well as 3D mode.\n           * 2D mode expects 4 parameters, while 3D mode expects 6 parameters\n           * (including z coordinates).\n           * <br><br>\n           * This function must be used between <a href=\"#/p5/beginShape\">beginShape()</a> and <a href=\"#/p5/endShape\">endShape()</a>\n           * and only when there is no MODE or POINTS parameter specified to\n           * <a href=\"#/p5/beginShape\">beginShape()</a>.\n           *\n           * @method quadraticVertex\n           * @param  {Number} cx x-coordinate for the control point\n           * @param  {Number} cy y-coordinate for the control point\n           * @param  {Number} x3 x-coordinate for the anchor point\n           * @param  {Number} y3 y-coordinate for the anchor point\n           * @chainable\n           *\n           * @example\n           * <div>\n           * <code>\n           * strokeWeight(5);\n           * point(20, 20);\n           * point(80, 20);\n           * point(50, 50);\n           *\n           * noFill();\n           * strokeWeight(1);\n           * beginShape();\n           * vertex(20, 20);\n           * quadraticVertex(80, 20, 50, 50);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * strokeWeight(5);\n           * point(20, 20);\n           * point(80, 20);\n           * point(50, 50);\n           *\n           * point(20, 80);\n           * point(80, 80);\n           * point(80, 60);\n           *\n           * noFill();\n           * strokeWeight(1);\n           * beginShape();\n           * vertex(20, 20);\n           * quadraticVertex(80, 20, 50, 50);\n           * quadraticVertex(20, 80, 80, 80);\n           * vertex(80, 60);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * @alt\n           * arched-shaped black line with 4 pixel thick stroke weight.\n           * backwards s-shaped black line with 4 pixel thick stroke weight.\n           *\n           */\n\n          /**\n           * @method quadraticVertex\n           * @param  {Number} cx\n           * @param  {Number} cy\n           * @param  {Number} cz z-coordinate for the control point (for WebGL mode)\n           * @param  {Number} x3\n           * @param  {Number} y3\n           * @param  {Number} z3 z-coordinate for the anchor point (for WebGL mode)\n           * @chainable\n           *\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   setAttributes('antialias', true);\n           * }\n           * function draw() {\n           *   orbitControl();\n           *   background(50);\n           *   strokeWeight(4);\n           *   stroke(255);\n           *\n           *   point(-35, -35);\n           *   point(35, -35);\n           *   point(0, 0);\n           *   point(-35, 35);\n           *   point(35, 35);\n           *   point(35, 10);\n           *\n           *   strokeWeight(1);\n           *   noFill();\n           *\n           *   beginShape();\n           *   vertex(-35, -35);\n           *   quadraticVertex(35, -35, 0, 0);\n           *   quadraticVertex(-35, 35, 35, 35);\n           *   vertex(35, 10);\n           *   endShape();\n           *\n           *   beginShape();\n           *   vertex(-35, -35, 20);\n           *   quadraticVertex(35, -35, 20, 0, 0, 20);\n           *   quadraticVertex(-35, 35, 20, 35, 35, 20);\n           *   vertex(35, 10, 20);\n           *   endShape();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * backwards s-shaped black line with the same s-shaped line in postive z-axis.\n           */\n          _main.default.prototype.quadraticVertex = function() {\n            for (\n              var _len3 = arguments.length, args = new Array(_len3), _key3 = 0;\n              _key3 < _len3;\n              _key3++\n            ) {\n              args[_key3] = arguments[_key3];\n            }\n            _main.default._validateParameters('quadraticVertex', args);\n            if (this._renderer.isP3D) {\n              var _this$_renderer4;\n              (_this$_renderer4 = this._renderer).quadraticVertex.apply(\n                _this$_renderer4,\n                args\n              );\n            } else {\n              //if we're drawing a contour, put the points into an\n              // array for inside drawing\n              if (this._contourInited) {\n                var pt = {};\n                pt.x = args[0];\n                pt.y = args[1];\n                pt.x3 = args[2];\n                pt.y3 = args[3];\n                pt.type = constants.QUADRATIC;\n                this._contourVertices.push(pt);\n\n                return this;\n              }\n              if (vertices.length > 0) {\n                isQuadratic = true;\n                var vert = [];\n                for (var i = 0; i < args.length; i++) {\n                  vert[i] = args[i];\n                }\n                vert.isVert = false;\n                if (isContour) {\n                  contourVertices.push(vert);\n                } else {\n                  vertices.push(vert);\n                }\n              } else {\n                _main.default._friendlyError(\n                  'vertex() must be used once before calling quadraticVertex()',\n                  'quadraticVertex'\n                );\n              }\n            }\n            return this;\n          };\n\n          /**\n           * All shapes are constructed by connecting a series of vertices. <a href=\"#/p5/vertex\">vertex()</a>\n           * is used to specify the vertex coordinates for points, lines, triangles,\n           * quads, and polygons. It is used exclusively within the <a href=\"#/p5/beginShape\">beginShape()</a> and\n           * <a href=\"#/p5/endShape\">endShape()</a> functions.\n           *\n           * @method vertex\n           * @param  {Number} x x-coordinate of the vertex\n           * @param  {Number} y y-coordinate of the vertex\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * strokeWeight(3);\n           * beginShape(POINTS);\n           * vertex(30, 20);\n           * vertex(85, 20);\n           * vertex(85, 75);\n           * vertex(30, 75);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * createCanvas(100, 100, WEBGL);\n           * background(240, 240, 240);\n           * fill(237, 34, 93);\n           * noStroke();\n           * beginShape();\n           * vertex(0, 35);\n           * vertex(35, 0);\n           * vertex(0, -35);\n           * vertex(-35, 0);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * createCanvas(100, 100, WEBGL);\n           * background(240, 240, 240);\n           * fill(237, 34, 93);\n           * noStroke();\n           * beginShape();\n           * vertex(-10, 10);\n           * vertex(0, 35);\n           * vertex(10, 10);\n           * vertex(35, 0);\n           * vertex(10, -8);\n           * vertex(0, -35);\n           * vertex(-10, -8);\n           * vertex(-35, 0);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * strokeWeight(3);\n           * stroke(237, 34, 93);\n           * beginShape(LINES);\n           * vertex(10, 35);\n           * vertex(90, 35);\n           * vertex(10, 65);\n           * vertex(90, 65);\n           * vertex(35, 10);\n           * vertex(35, 90);\n           * vertex(65, 10);\n           * vertex(65, 90);\n           * endShape();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // Click to change the number of sides.\n           * // In WebGL mode, custom shapes will only\n           * // display hollow fill sections when\n           * // all calls to vertex() use the same z-value.\n           *\n           * let sides = 3;\n           * let angle, px, py;\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   setAttributes('antialias', true);\n           *   fill(237, 34, 93);\n           *   strokeWeight(3);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   rotateX(frameCount * 0.01);\n           *   rotateZ(frameCount * 0.01);\n           *   ngon(sides, 0, 0, 80);\n           * }\n           *\n           * function mouseClicked() {\n           *   if (sides > 6) {\n           *     sides = 3;\n           *   } else {\n           *     sides++;\n           *   }\n           * }\n           *\n           * function ngon(n, x, y, d) {\n           *   beginShape(TESS);\n           *   for (let i = 0; i < n + 1; i++) {\n           *     angle = TWO_PI / n * i;\n           *     px = x + sin(angle) * d / 2;\n           *     py = y - cos(angle) * d / 2;\n           *     vertex(px, py, 0);\n           *   }\n           *   for (let i = 0; i < n + 1; i++) {\n           *     angle = TWO_PI / n * i;\n           *     px = x + sin(angle) * d / 4;\n           *     py = y - cos(angle) * d / 4;\n           *     vertex(px, py, 0);\n           *   }\n           *   endShape();\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * 4 black points in a square shape in middle-right of canvas.\n           * 4 points making a diamond shape.\n           * 8 points making a star.\n           * 8 points making 4 lines.\n           * A rotating 3D shape with a hollow section in the middle.\n           *\n           */\n          /**\n           * @method vertex\n           * @param  {Number} x\n           * @param  {Number} y\n           * @param  {Number} z   z-coordinate of the vertex\n           * @param  {Number} [u] the vertex's texture u-coordinate\n           * @param  {Number} [v] the vertex's texture v-coordinate\n           * @chainable\n           */\n          _main.default.prototype.vertex = function(x, y, moveTo, u, v) {\n            if (this._renderer.isP3D) {\n              var _this$_renderer5;\n              (_this$_renderer5 = this._renderer).vertex.apply(_this$_renderer5, arguments);\n            } else {\n              var vert = [];\n              vert.isVert = true;\n              vert[0] = x;\n              vert[1] = y;\n              vert[2] = 0;\n              vert[3] = 0;\n              vert[4] = 0;\n              vert[5] = this._renderer._getFill();\n              vert[6] = this._renderer._getStroke();\n\n              if (moveTo) {\n                vert.moveTo = moveTo;\n              }\n              if (isContour) {\n                if (contourVertices.length === 0) {\n                  vert.moveTo = true;\n                }\n                contourVertices.push(vert);\n              } else {\n                vertices.push(vert);\n              }\n            }\n            return this;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../constants': 43, '../main': 50 }\n      ],\n      61: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          } // requestAnim shim layer by Paul Irish\n          // http://paulirish.com/2011/requestanimationframe-for-smart-animating/\n          // http://my.opera.com/emoller/blog/2011/12/20/\n          // requestanimationframe-for-smart-er-animating\n          // requestAnimationFrame polyfill by Erik Möller\n          // fixes from Paul Irish and Tino Zijdel\n          window.requestAnimationFrame = (function() {\n            return (\n              window.requestAnimationFrame ||\n              window.webkitRequestAnimationFrame ||\n              window.mozRequestAnimationFrame ||\n              window.oRequestAnimationFrame ||\n              window.msRequestAnimationFrame ||\n              function(callback, element) {\n                // should '60' here be framerate?\n                window.setTimeout(callback, 1000 / 60);\n              }\n            );\n          })();\n\n          /**\n           * shim for Uint8ClampedArray.slice\n           * (allows arrayCopy to work with pixels[])\n           * with thanks to http://halfpapstudios.com/blog/tag/html5-canvas/\n           * Enumerable set to false to protect for...in from\n           * Uint8ClampedArray.prototype pollution.\n           */\n          (function() {\n            if (\n              typeof Uint8ClampedArray !== 'undefined' &&\n              !Uint8ClampedArray.prototype.slice\n            ) {\n              Object.defineProperty(Uint8ClampedArray.prototype, 'slice', {\n                value: Array.prototype.slice,\n                writable: true,\n                configurable: true,\n                enumerable: false\n              });\n            }\n          })();\n\n          /**\n           * this is implementation of Object.assign() which is unavailable in\n           * IE11 and (non-Chrome) Android browsers.\n           * The assign() method is used to copy the values of all enumerable\n           * own properties from one or more source objects to a target object.\n           * It will return the target object.\n           * Modified from https://github.com/ljharb/object.assign\n           */\n          (function() {\n            if (!Object.assign) {\n              var keys = Object.keys;\n              var defineProperty = Object.defineProperty;\n              var canBeObject = function canBeObject(obj) {\n                return typeof obj !== 'undefined' && obj !== null;\n              };\n              var hasSymbols =\n                typeof Symbol === 'function' && _typeof(Symbol()) === 'symbol';\n              var propIsEnumerable = Object.prototype.propertyIsEnumerable;\n              var isEnumerableOn = function isEnumerableOn(obj) {\n                return function isEnumerable(prop) {\n                  return propIsEnumerable.call(obj, prop);\n                };\n              };\n\n              // per ES6 spec, this function has to have a length of 2\n              var assignShim = function assign(target, source1) {\n                if (!canBeObject(target)) {\n                  throw new TypeError('target must be an object');\n                }\n                var objTarget = Object(target);\n                var s, source, i, props;\n                for (s = 1; s < arguments.length; ++s) {\n                  source = Object(arguments[s]);\n                  props = keys(source);\n                  if (hasSymbols && Object.getOwnPropertySymbols) {\n                    props.push.apply(\n                      props,\n                      Object.getOwnPropertySymbols(source).filter(isEnumerableOn(source))\n                    );\n                  }\n                  for (i = 0; i < props.length; ++i) {\n                    objTarget[props[i]] = source[props[i]];\n                  }\n                }\n                return objTarget;\n              };\n\n              defineProperty(Object, 'assign', {\n                value: assignShim,\n                configurable: true,\n                enumerable: false,\n                writable: true\n              });\n            }\n          })();\n        },\n        {}\n      ],\n      62: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('./main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Structure\n           * @submodule Structure\n           * @for p5\n           * @requires core\n           */ /**\n                                                                                                                                                         * Stops p5.js from continuously executing the code within <a href=\"#/p5/draw\">draw()</a>.\n                                                                                                                                                         * If <a href=\"#/p5/loop\">loop()</a> is called, the code in <a href=\"#/p5/draw\">draw()</a> begins to run continuously again.\n                                                                                                                                                         * If using <a href=\"#/p5/noLoop\">noLoop()</a> in <a href=\"#/p5/setup\">setup()</a>, it should be the last line inside the block.\n                                                                                                                                                         * <br><br>\n                                                                                                                                                         * When <a href=\"#/p5/noLoop\">noLoop()</a> is used, it's not possible to manipulate or access the\n                                                                                                                                                         * screen inside event handling functions such as <a href=\"#/p5/mousePressed\">mousePressed()</a> or\n                                                                                                                                                         * <a href=\"#/p5/keyPressed\">keyPressed()</a>. Instead, use those functions to call <a href=\"#/p5/redraw\">redraw()</a> or <a href=\"#/p5/loop\">loop()</a>,\n                                                                                                                                                         * which will run <a href=\"#/p5/draw\">draw()</a>, which can update the screen properly. This means\n                                                                                                                                                         * that when <a href=\"#/p5/noLoop\">noLoop()</a> has been called, no drawing can happen, and functions\n                                                                                                                                                         * like <a href=\"#/p5/saveFrame\">saveFrame()</a> or <a href=\"#/p5/loadPixels\">loadPixels()</a> may not be used.\n                                                                                                                                                         * <br><br>\n                                                                                                                                                         * Note that if the sketch is resized, <a href=\"#/p5/redraw\">redraw()</a> will be called to update\n                                                                                                                                                         * the sketch, even after <a href=\"#/p5/noLoop\">noLoop()</a> has been specified. Otherwise, the sketch\n                                                                                                                                                         * would enter an odd state until <a href=\"#/p5/loop\">loop()</a> was called.\n                                                                                                                                                         *\n                                                                                                                                                         * @method noLoop\n                                                                                                                                                         * @example\n                                                                                                                                                         * <div><code>\n                                                                                                                                                         * function setup() {\n                                                                                                                                                         *   createCanvas(100, 100);\n                                                                                                                                                         *   background(200);\n                                                                                                                                                         *   noLoop();\n                                                                                                                                                         * }\n                                                                                                                                                        \n                                                                                                                                                         * function draw() {\n                                                                                                                                                         *   line(10, 10, 90, 90);\n                                                                                                                                                         * }\n                                                                                                                                                         * </code></div>\n                                                                                                                                                         *\n                                                                                                                                                         * <div><code>\n                                                                                                                                                         * let x = 0;\n                                                                                                                                                         * function setup() {\n                                                                                                                                                         *   createCanvas(100, 100);\n                                                                                                                                                         * }\n                                                                                                                                                         *\n                                                                                                                                                         * function draw() {\n                                                                                                                                                         *   background(204);\n                                                                                                                                                         *   x = x + 0.1;\n                                                                                                                                                         *   if (x > width) {\n                                                                                                                                                         *     x = 0;\n                                                                                                                                                         *   }\n                                                                                                                                                         *   line(x, 0, x, height);\n                                                                                                                                                         * }\n                                                                                                                                                         *\n                                                                                                                                                         * function mousePressed() {\n                                                                                                                                                         *   noLoop();\n                                                                                                                                                         * }\n                                                                                                                                                         *\n                                                                                                                                                         * function mouseReleased() {\n                                                                                                                                                         *   loop();\n                                                                                                                                                         * }\n                                                                                                                                                         * </code></div>\n                                                                                                                                                         *\n                                                                                                                                                         * @alt\n                                                                                                                                                         * 113 pixel long line extending from top-left to bottom right of canvas.\n                                                                                                                                                         * horizontal line moves slowly from left. Loops but stops on mouse press.\n                                                                                                                                                         *\n                                                                                                                                                         */ _main.default.prototype.noLoop = function() {\n            this._loop = false;\n          };\n          /**\n           * By default, p5.js loops through draw() continuously, executing the code\n           * within it. However, the <a href=\"#/p5/draw\">draw()</a> loop may be stopped by calling <a href=\"#/p5/noLoop\">noLoop()</a>.\n           * In that case, the <a href=\"#/p5/draw\">draw()</a> loop can be resumed with loop().\n           *\n           * Avoid calling loop() from inside setup().\n           *\n           * @method loop\n           * @example\n           * <div><code>\n           * let x = 0;\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   noLoop();\n           * }\n           *\n           * function draw() {\n           *   background(204);\n           *   x = x + 0.1;\n           *   if (x > width) {\n           *     x = 0;\n           *   }\n           *   line(x, 0, x, height);\n           * }\n           *\n           * function mousePressed() {\n           *   loop();\n           * }\n           *\n           * function mouseReleased() {\n           *   noLoop();\n           * }\n           * </code></div>\n           *\n           * @alt\n           * horizontal line moves slowly from left. Loops but stops on mouse press.\n           *\n           */\n\n          _main.default.prototype.loop = function() {\n            if (!this._loop) {\n              this._loop = true;\n              if (this._setupDone) {\n                this._draw();\n              }\n            }\n          };\n\n          /**\n           * The <a href=\"#/p5/push\">push()</a> function saves the current drawing style settings and\n           * transformations, while <a href=\"#/p5/pop\">pop()</a> restores these settings. Note that these\n           * functions are always used together. They allow you to change the style\n           * and transformation settings and later return to what you had. When a new\n           * state is started with <a href=\"#/p5/push\">push()</a>, it builds on the current style and transform\n           * information. The <a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a> functions can be embedded to provide\n           * more control. (See the second example for a demonstration.)\n           * <br><br>\n           * <a href=\"#/p5/push\">push()</a> stores information related to the current transformation state\n           * and style settings controlled by the following functions:\n           * <a href=\"#/p5/fill\">fill()</a>,\n           * <a href=\"#/p5/noFill\">noFill()</a>,\n           * <a href=\"#/p5/noStroke\">noStroke()</a>,\n           * <a href=\"#/p5/stroke\">stroke()</a>,\n           * <a href=\"#/p5/tint\">tint()</a>,\n           * <a href=\"#/p5/noTint\">noTint()</a>,\n           * <a href=\"#/p5/strokeWeight\">strokeWeight()</a>,\n           * <a href=\"#/p5/strokeCap\">strokeCap()</a>,\n           * <a href=\"#/p5/strokeJoin\">strokeJoin()</a>,\n           * <a href=\"#/p5/imageMode\">imageMode()</a>,\n           * <a href=\"#/p5/rectMode\">rectMode()</a>,\n           * <a href=\"#/p5/ellipseMode\">ellipseMode()</a>,\n           * <a href=\"#/p5/colorMode\">colorMode()</a>,\n           * <a href=\"#/p5/textAlign\">textAlign()</a>,\n           * <a href=\"#/p5/textFont\">textFont()</a>,\n           * <a href=\"#/p5/textSize\">textSize()</a>,\n           * <a href=\"#/p5/textLeading\">textLeading()</a>,\n           * <a href=\"#/p5/applyMatrix\">applyMatrix()</a>,\n           * <a href=\"#/p5/resetMatrix\">resetMatrix()</a>,\n           * <a href=\"#/p5/rotate\">rotate()</a>,\n           * <a href=\"#/p5/scale\">scale()</a>,\n           * <a href=\"#/p5/shearX\">shearX()</a>,\n           * <a href=\"#/p5/shearY\">shearY()</a>,\n           * <a href=\"#/p5/translate\">translate()</a>,\n           * <a href=\"#/p5/noiseSeed\">noiseSeed()</a>.\n           * <br><br>\n           * In WEBGL mode additional style settings are stored. These are controlled by the following functions: <a href=\"#/p5/setCamera\">setCamera()</a>, <a href=\"#/p5/ambientLight\">ambientLight()</a>, <a href=\"#/p5/directionalLight\">directionalLight()</a>,\n           * <a href=\"#/p5/pointLight\">pointLight()</a>, <a href=\"#/p5/texture\">texture()</a>, <a href=\"#/p5/specularMaterial\">specularMaterial()</a>, <a href=\"#/p5/shininess\">shininess()</a>, <a href=\"#/p5/normalMaterial\">normalMaterial()</a>\n           * and <a href=\"#/p5/shader\">shader()</a>.\n           *\n           * @method push\n           * @example\n           * <div>\n           * <code>\n           * ellipse(0, 50, 33, 33); // Left circle\n           *\n           * push(); // Start a new drawing state\n           * strokeWeight(10);\n           * fill(204, 153, 0);\n           * translate(50, 0);\n           * ellipse(0, 50, 33, 33); // Middle circle\n           * pop(); // Restore original state\n           *\n           * ellipse(100, 50, 33, 33); // Right circle\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * ellipse(0, 50, 33, 33); // Left circle\n           *\n           * push(); // Start a new drawing state\n           * strokeWeight(10);\n           * fill(204, 153, 0);\n           * ellipse(33, 50, 33, 33); // Left-middle circle\n           *\n           * push(); // Start another new drawing state\n           * stroke(0, 102, 153);\n           * ellipse(66, 50, 33, 33); // Right-middle circle\n           * pop(); // Restore previous state\n           *\n           * pop(); // Restore original state\n           *\n           * ellipse(100, 50, 33, 33); // Right circle\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Gold ellipse + thick black outline @center 2 white ellipses on left and right.\n           * 2 Gold ellipses left black right blue stroke. 2 white ellipses on left+right.\n           *\n           */\n          _main.default.prototype.push = function() {\n            this._styles.push({\n              props: {\n                _colorMode: this._colorMode\n              },\n\n              renderer: this._renderer.push()\n            });\n          };\n\n          /**\n           * The <a href=\"#/p5/push\">push()</a> function saves the current drawing style settings and\n           * transformations, while <a href=\"#/p5/pop\">pop()</a> restores these settings. Note that these\n           * functions are always used together. They allow you to change the style\n           * and transformation settings and later return to what you had. When a new\n           * state is started with <a href=\"#/p5/push\">push()</a>, it builds on the current style and transform\n           * information. The <a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a> functions can be embedded to provide\n           * more control. (See the second example for a demonstration.)\n           * <br><br>\n           * <a href=\"#/p5/push\">push()</a> stores information related to the current transformation state\n           * and style settings controlled by the following functions:\n           * <a href=\"#/p5/fill\">fill()</a>,\n           * <a href=\"#/p5/noFill\">noFill()</a>,\n           * <a href=\"#/p5/noStroke\">noStroke()</a>,\n           * <a href=\"#/p5/stroke\">stroke()</a>,\n           * <a href=\"#/p5/tint\">tint()</a>,\n           * <a href=\"#/p5/noTint\">noTint()</a>,\n           * <a href=\"#/p5/strokeWeight\">strokeWeight()</a>,\n           * <a href=\"#/p5/strokeCap\">strokeCap()</a>,\n           * <a href=\"#/p5/strokeJoin\">strokeJoin()</a>,\n           * <a href=\"#/p5/imageMode\">imageMode()</a>,\n           * <a href=\"#/p5/rectMode\">rectMode()</a>,\n           * <a href=\"#/p5/ellipseMode\">ellipseMode()</a>,\n           * <a href=\"#/p5/colorMode\">colorMode()</a>,\n           * <a href=\"#/p5/textAlign\">textAlign()</a>,\n           * <a href=\"#/p5/textFont\">textFont()</a>,\n           * <a href=\"#/p5/textSize\">textSize()</a>,\n           * <a href=\"#/p5/textLeading\">textLeading()</a>,\n           * <a href=\"#/p5/applyMatrix\">applyMatrix()</a>,\n           * <a href=\"#/p5/resetMatrix\">resetMatrix()</a>,\n           * <a href=\"#/p5/rotate\">rotate()</a>,\n           * <a href=\"#/p5/scale\">scale()</a>,\n           * <a href=\"#/p5/shearX\">shearX()</a>,\n           * <a href=\"#/p5/shearY\">shearY()</a>,\n           * <a href=\"#/p5/translate\">translate()</a>,\n           * <a href=\"#/p5/noiseSeed\">noiseSeed()</a>.\n           * <br><br>\n           * In WEBGL mode additional style settings are stored. These are controlled by the following functions: <a href=\"#/p5/setCamera\">setCamera()</a>, <a href=\"#/p5/ambientLight\">ambientLight()</a>, <a href=\"#/p5/directionalLight\">directionalLight()</a>,\n           * <a href=\"#/p5/pointLight\">pointLight()</a>, <a href=\"#/p5/texture\">texture()</a>, <a href=\"#/p5/specularMaterial\">specularMaterial()</a>, <a href=\"#/p5/shininess\">shininess()</a>, <a href=\"#/p5/normalMaterial\">normalMaterial()</a>\n           * and <a href=\"#/p5/shader\">shader()</a>.\n           *\n           * @method pop\n           * @example\n           * <div>\n           * <code>\n           * ellipse(0, 50, 33, 33); // Left circle\n           *\n           * push(); // Start a new drawing state\n           * translate(50, 0);\n           * strokeWeight(10);\n           * fill(204, 153, 0);\n           * ellipse(0, 50, 33, 33); // Middle circle\n           * pop(); // Restore original state\n           *\n           * ellipse(100, 50, 33, 33); // Right circle\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * ellipse(0, 50, 33, 33); // Left circle\n           *\n           * push(); // Start a new drawing state\n           * strokeWeight(10);\n           * fill(204, 153, 0);\n           * ellipse(33, 50, 33, 33); // Left-middle circle\n           *\n           * push(); // Start another new drawing state\n           * stroke(0, 102, 153);\n           * ellipse(66, 50, 33, 33); // Right-middle circle\n           * pop(); // Restore previous state\n           *\n           * pop(); // Restore original state\n           *\n           * ellipse(100, 50, 33, 33); // Right circle\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Gold ellipse + thick black outline @center 2 white ellipses on left and right.\n           * 2 Gold ellipses left black right blue stroke. 2 white ellipses on left+right.\n           *\n           */\n          _main.default.prototype.pop = function() {\n            var style = this._styles.pop();\n            if (style) {\n              this._renderer.pop(style.renderer);\n              Object.assign(this, style.props);\n            } else {\n              console.warn('pop() was called without matching push()');\n            }\n          };\n\n          /**\n           *\n           * Executes the code within <a href=\"#/p5/draw\">draw()</a> one time. This functions allows the\n           * program to update the display window only when necessary, for example\n           * when an event registered by <a href=\"#/p5/mousePressed\">mousePressed()</a> or <a href=\"#/p5/keyPressed\">keyPressed()</a> occurs.\n           * <br><br>\n           * In structuring a program, it only makes sense to call <a href=\"#/p5/redraw\">redraw()</a> within\n           * events such as <a href=\"#/p5/mousePressed\">mousePressed()</a>. This is because <a href=\"#/p5/redraw\">redraw()</a> does not run\n           * <a href=\"#/p5/draw\">draw()</a> immediately (it only sets a flag that indicates an update is\n           * needed).\n           * <br><br>\n           * The <a href=\"#/p5/redraw\">redraw()</a> function does not work properly when called inside <a href=\"#/p5/draw\">draw()</a>.\n           * To enable/disable animations, use <a href=\"#/p5/loop\">loop()</a> and <a href=\"#/p5/noLoop\">noLoop()</a>.\n           * <br><br>\n           * In addition you can set the number of redraws per method call. Just\n           * add an integer as single parameter for the number of redraws.\n           *\n           * @method redraw\n           * @param  {Integer} [n] Redraw for n-times. The default value is 1.\n           * @example\n           * <div><code>\n           * let x = 0;\n           *\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   noLoop();\n           * }\n           *\n           * function draw() {\n           *   background(204);\n           *   line(x, 0, x, height);\n           * }\n           *\n           * function mousePressed() {\n           *   x += 1;\n           *   redraw();\n           * }\n           * </code></div>\n           *\n           * <div class='norender'><code>\n           * let x = 0;\n           *\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   noLoop();\n           * }\n           *\n           * function draw() {\n           *   background(204);\n           *   x += 1;\n           *   line(x, 0, x, height);\n           * }\n           *\n           * function mousePressed() {\n           *   redraw(5);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * black line on far left of canvas\n           * black line on far left of canvas\n           *\n           */\n          _main.default.prototype.redraw = function(n) {\n            if (this._inUserDraw || !this._setupDone) {\n              return;\n            }\n\n            var numberOfRedraws = parseInt(n);\n            if (isNaN(numberOfRedraws) || numberOfRedraws < 1) {\n              numberOfRedraws = 1;\n            }\n\n            var context = this._isGlobal ? window : this;\n            var userSetup = context.setup;\n            var userDraw = context.draw;\n            if (typeof userDraw === 'function') {\n              if (typeof userSetup === 'undefined') {\n                context.scale(context._pixelDensity, context._pixelDensity);\n              }\n              var callMethod = function callMethod(f) {\n                f.call(context);\n              };\n              for (var idxRedraw = 0; idxRedraw < numberOfRedraws; idxRedraw++) {\n                context.resetMatrix();\n                if (context._renderer.isP3D) {\n                  context._renderer._update();\n                }\n                context._setProperty('frameCount', context.frameCount + 1);\n                context._registeredMethods.pre.forEach(callMethod);\n                this._inUserDraw = true;\n                try {\n                  userDraw();\n                } finally {\n                  this._inUserDraw = false;\n                }\n                context._registeredMethods.post.forEach(callMethod);\n              }\n            }\n          };\n\n          /**\n           * The `p5()` constructor enables you to activate \"instance mode\" instead of normal\n           * \"global mode\". This is an advanced topic. A short description and example is\n           * included below. Please see\n           * <a target=\"blank\" href=\"https://www.youtube.com/watch?v=Su792jEauZg&feature=youtu.be\">\n           * Dan Shiffman's Coding Train video tutorial</a> or this\n           * <a target=\"blank\" href=\"https://github.com/processing/p5.js/wiki/p5.js-overview#instantiation--namespace\">tutorial page</a>\n           * for more info.\n           *\n           * By default, all p5.js functions are in the global namespace (i.e. bound to the window\n           * object), meaning you can call them simply `ellipse()`, `fill()`, etc. However, this\n           * might be inconvenient if you are mixing with other JS libraries (synchronously or\n           * asynchronously) or writing long programs of your own. p5.js currently supports a\n           * way around this problem called \"instance mode\". In instance mode, all p5 functions\n           * are bound up in a single variable instead of polluting your global namespace.\n           *\n           * Optionally, you can specify a default container for the canvas and any other elements\n           * to append to with a second argument. You can give the ID of an element in your html,\n           * or an html node itself.\n           *\n           * Note that creating instances like this also allows you to have more than one p5 sketch on\n           * a single web page, as they will each be wrapped up with their own set up variables. Of\n           * course, you could also use iframes to have multiple sketches in global mode.\n           *\n           * @method p5\n           * @param {Object} sketch a function containing a p5.js sketch\n           * @param {String|Object} node ID or pointer to HTML DOM node to contain sketch in\n           * @example\n           * <div class='norender'><code>\n           * const s = p => {\n           *   let x = 100;\n           *   let y = 100;\n           *\n           *   p.setup = function() {\n           *     p.createCanvas(700, 410);\n           *   };\n           *\n           *   p.draw = function() {\n           *     p.background(0);\n           *     p.fill(255);\n           *     p.rect(x, y, 50, 50);\n           *   };\n           * };\n           *\n           * new p5(s); // invoke p5\n           * </code></div>\n           *\n           * @alt\n           * white rectangle on black background\n           */ var _default = _main.default;\n          exports.default = _default;\n        },\n        { './main': 50 }\n      ],\n      63: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('./main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Transform\n           * @submodule Transform\n           * @for p5\n           * @requires core\n           * @requires constants\n           */ /**\n           * Multiplies the current matrix by the one specified through the parameters.\n           * This is a powerful operation that can perform the equivalent of translate,\n           * scale, shear and rotate all at once. You can learn more about transformation\n           * matrices on <a href=\"https://en.wikipedia.org/wiki/Transformation_matrix\">\n           * Wikipedia</a>.\n           *\n           * The naming of the arguments here follows the naming of the <a href=\n           * \"https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-transform\">\n           * WHATWG specification</a> and corresponds to a\n           * transformation matrix of the\n           * form:\n           *\n           * > <img style=\"max-width: 150px\" src=\"assets/transformation-matrix.png\"\n           * alt=\"The transformation matrix used when applyMatrix is called\"/>\n           *\n           * @method applyMatrix\n           * @param  {Number} a numbers which define the 2x3 matrix to be multiplied\n           * @param  {Number} b numbers which define the 2x3 matrix to be multiplied\n           * @param  {Number} c numbers which define the 2x3 matrix to be multiplied\n           * @param  {Number} d numbers which define the 2x3 matrix to be multiplied\n           * @param  {Number} e numbers which define the 2x3 matrix to be multiplied\n           * @param  {Number} f numbers which define the 2x3 matrix to be multiplied\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   frameRate(10);\n           *   rectMode(CENTER);\n           * }\n           *\n           * function draw() {\n           *   let step = frameCount % 20;\n           *   background(200);\n           *   // Equivalent to translate(x, y);\n           *   applyMatrix(1, 0, 0, 1, 40 + step, 50);\n           *   rect(0, 0, 50, 50);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * function setup() {\n           *   frameRate(10);\n           *   rectMode(CENTER);\n           * }\n           *\n           * function draw() {\n           *   let step = frameCount % 20;\n           *   background(200);\n           *   translate(50, 50);\n           *   // Equivalent to scale(x, y);\n           *   applyMatrix(1 / step, 0, 0, 1 / step, 0, 0);\n           *   rect(0, 0, 50, 50);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * function setup() {\n           *   frameRate(10);\n           *   rectMode(CENTER);\n           * }\n           *\n           * function draw() {\n           *   let step = frameCount % 20;\n           *   let angle = map(step, 0, 20, 0, TWO_PI);\n           *   let cos_a = cos(angle);\n           *   let sin_a = sin(angle);\n           *   background(200);\n           *   translate(50, 50);\n           *   // Equivalent to rotate(angle);\n           *   applyMatrix(cos_a, sin_a, -sin_a, cos_a, 0, 0);\n           *   rect(0, 0, 50, 50);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * function setup() {\n           *   frameRate(10);\n           *   rectMode(CENTER);\n           * }\n           *\n           * function draw() {\n           *   let step = frameCount % 20;\n           *   let angle = map(step, 0, 20, -PI / 4, PI / 4);\n           *   background(200);\n           *   translate(50, 50);\n           *   // equivalent to shearX(angle);\n           *   let shear_factor = 1 / tan(PI / 2 - angle);\n           *   applyMatrix(1, 0, shear_factor, 1, 0, 0);\n           *   rect(0, 0, 50, 50);\n           * }\n           * </code>\n           * </div>\n           * <div modernizr='webgl'>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   noFill();\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   rotateY(PI / 6);\n           *   stroke(153);\n           *   box(35);\n           *   let rad = millis() / 1000;\n           *   // Set rotation angles\n           *   let ct = cos(rad);\n           *   let st = sin(rad);\n           *   // Matrix for rotation around the Y axis\n           *   // prettier-ignore\n           *   applyMatrix(  ct, 0.0,  st,  0.0,\n           *                0.0, 1.0, 0.0,  0.0,\n           *                -st, 0.0,  ct,  0.0,\n           *                0.0, 0.0, 0.0,  1.0);\n           *   stroke(255);\n           *   box(50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * A rectangle translating to the right\n           * A rectangle shrinking to the center\n           * A rectangle rotating clockwise about the center\n           * A rectangle shearing\n           *\n           */ _main.default.prototype.applyMatrix = function(a, b, c, d, e, f) {\n            var _this$_renderer;\n            (_this$_renderer = this._renderer).applyMatrix.apply(\n              _this$_renderer,\n              arguments\n            );\n            return this;\n          };\n\n          /**\n           * Replaces the current matrix with the identity matrix.\n           *\n           * @method resetMatrix\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * translate(50, 50);\n           * applyMatrix(0.5, 0.5, -0.5, 0.5, 0, 0);\n           * rect(0, 0, 20, 20);\n           * // Note that the translate is also reset.\n           * resetMatrix();\n           * rect(0, 0, 20, 20);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * A rotated retangle in the center with another at the top left corner\n           *\n           */\n          _main.default.prototype.resetMatrix = function() {\n            this._renderer.resetMatrix();\n            return this;\n          };\n\n          /**\n           * Rotates a shape the amount specified by the angle parameter. This\n           * function accounts for <a href=\"#/p5/angleMode\">angleMode</a>, so angles can be entered in either\n           * RADIANS or DEGREES.\n           * <br><br>\n           * Objects are always rotated around their relative position to the\n           * origin and positive numbers rotate objects in a clockwise direction.\n           * Transformations apply to everything that happens after and subsequent\n           * calls to the function accumulates the effect. For example, calling\n           * rotate(HALF_PI) and then rotate(HALF_PI) is the same as rotate(PI).\n           * All tranformations are reset when <a href=\"#/p5/draw\">draw()</a> begins again.\n           * <br><br>\n           * Technically, <a href=\"#/p5/rotate\">rotate()</a> multiplies the current transformation matrix\n           * by a rotation matrix. This function can be further controlled by\n           * the <a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a>.\n           *\n           * @method rotate\n           * @param  {Number} angle the angle of rotation, specified in radians\n           *                        or degrees, depending on current angleMode\n           * @param  {p5.Vector|Number[]} [axis] (in 3d) the axis to rotate around\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * translate(width / 2, height / 2);\n           * rotate(PI / 3.0);\n           * rect(-26, -26, 52, 52);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * white 52x52 rect with black outline at center rotated counter 45 degrees\n           *\n           */\n          _main.default.prototype.rotate = function(angle, axis) {\n            _main.default._validateParameters('rotate', arguments);\n            this._renderer.rotate(this._toRadians(angle), axis);\n            return this;\n          };\n\n          /**\n           * Rotates around X axis.\n           * @method  rotateX\n           * @param  {Number} angle the angle of rotation, specified in radians\n           *                        or degrees, depending on current angleMode\n           * @chainable\n           * @example\n           * <div modernizr='webgl'>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(255);\n           *   rotateX(millis() / 1000);\n           *   box();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 3d box rotating around the x axis.\n           */\n          _main.default.prototype.rotateX = function(angle) {\n            this._assert3d('rotateX');\n            _main.default._validateParameters('rotateX', arguments);\n            this._renderer.rotateX(this._toRadians(angle));\n            return this;\n          };\n\n          /**\n           * Rotates around Y axis.\n           * @method rotateY\n           * @param  {Number} angle the angle of rotation, specified in radians\n           *                        or degrees, depending on current angleMode\n           * @chainable\n           * @example\n           * <div modernizr='webgl'>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(255);\n           *   rotateY(millis() / 1000);\n           *   box();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 3d box rotating around the y axis.\n           */\n          _main.default.prototype.rotateY = function(angle) {\n            this._assert3d('rotateY');\n            _main.default._validateParameters('rotateY', arguments);\n            this._renderer.rotateY(this._toRadians(angle));\n            return this;\n          };\n\n          /**\n           * Rotates around Z axis. Webgl mode only.\n           * @method rotateZ\n           * @param  {Number} angle the angle of rotation, specified in radians\n           *                        or degrees, depending on current angleMode\n           * @chainable\n           * @example\n           * <div modernizr='webgl'>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(255);\n           *   rotateZ(millis() / 1000);\n           *   box();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 3d box rotating around the z axis.\n           */\n          _main.default.prototype.rotateZ = function(angle) {\n            this._assert3d('rotateZ');\n            _main.default._validateParameters('rotateZ', arguments);\n            this._renderer.rotateZ(this._toRadians(angle));\n            return this;\n          };\n\n          /**\n           * Increases or decreases the size of a shape by expanding and contracting\n           * vertices. Objects always scale from their relative origin to the\n           * coordinate system. Scale values are specified as decimal percentages.\n           * For example, the function call scale(2.0) increases the dimension of a\n           * shape by 200%.\n           * <br><br>\n           * Transformations apply to everything that happens after and subsequent\n           * calls to the function multiply the effect. For example, calling scale(2.0)\n           * and then scale(1.5) is the same as scale(3.0). If <a href=\"#/p5/scale\">scale()</a> is called\n           * within <a href=\"#/p5/draw\">draw()</a>, the transformation is reset when the loop begins again.\n           * <br><br>\n           * Using this function with the z parameter is only available in WEBGL mode.\n           * This function can be further controlled with <a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a>.\n           *\n           * @method scale\n           * @param  {Number|p5.Vector|Number[]} s\n           *                      percent to scale the object, or percentage to\n           *                      scale the object in the x-axis if multiple arguments\n           *                      are given\n           * @param  {Number} [y] percent to scale the object in the y-axis\n           * @param  {Number} [z] percent to scale the object in the z-axis (webgl only)\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * rect(30, 20, 50, 50);\n           * scale(0.5);\n           * rect(30, 20, 50, 50);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * rect(30, 20, 50, 50);\n           * scale(0.5, 1.3);\n           * rect(30, 20, 50, 50);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * white 52x52 rect with black outline at center rotated counter 45 degrees\n           * 2 white rects with black outline- 1 50x50 at center. other 25x65 bottom left\n           *\n           */\n          /**\n           * @method scale\n           * @param  {p5.Vector|Number[]} scales per-axis percents to scale the object\n           * @chainable\n           */\n          _main.default.prototype.scale = function(x, y, z) {\n            _main.default._validateParameters('scale', arguments);\n            // Only check for Vector argument type if Vector is available\n            if (x instanceof _main.default.Vector) {\n              var v = x;\n              x = v.x;\n              y = v.y;\n              z = v.z;\n            } else if (x instanceof Array) {\n              var rg = x;\n              x = rg[0];\n              y = rg[1];\n              z = rg[2] || 1;\n            }\n            if (isNaN(y)) {\n              y = z = x;\n            } else if (isNaN(z)) {\n              z = 1;\n            }\n\n            this._renderer.scale.call(this._renderer, x, y, z);\n\n            return this;\n          };\n\n          /**\n           * Shears a shape around the x-axis the amount specified by the angle\n           * parameter. Angles should be specified in the current angleMode.\n           * Objects are always sheared around their relative position to the origin\n           * and positive numbers shear objects in a clockwise direction.\n           * <br><br>\n           * Transformations apply to everything that happens after and subsequent\n           * calls to the function accumulates the effect. For example, calling\n           * shearX(PI/2) and then shearX(PI/2) is the same as shearX(PI).\n           * If <a href=\"#/p5/shearX\">shearX()</a> is called within the <a href=\"#/p5/draw\">draw()</a>, the transformation is reset when\n           * the loop begins again.\n           * <br><br>\n           * Technically, <a href=\"#/p5/shearX\">shearX()</a> multiplies the current transformation matrix by a\n           * rotation matrix. This function can be further controlled by the\n           * <a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a> functions.\n           *\n           * @method shearX\n           * @param  {Number} angle angle of shear specified in radians or degrees,\n           *                        depending on current angleMode\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * translate(width / 4, height / 4);\n           * shearX(PI / 4.0);\n           * rect(0, 0, 30, 30);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * white irregular quadrilateral with black outline at top middle.\n           *\n           */\n          _main.default.prototype.shearX = function(angle) {\n            _main.default._validateParameters('shearX', arguments);\n            var rad = this._toRadians(angle);\n            this._renderer.applyMatrix(1, 0, Math.tan(rad), 1, 0, 0);\n            return this;\n          };\n\n          /**\n           * Shears a shape around the y-axis the amount specified by the angle\n           * parameter. Angles should be specified in the current angleMode. Objects\n           * are always sheared around their relative position to the origin and\n           * positive numbers shear objects in a clockwise direction.\n           * <br><br>\n           * Transformations apply to everything that happens after and subsequent\n           * calls to the function accumulates the effect. For example, calling\n           * shearY(PI/2) and then shearY(PI/2) is the same as shearY(PI). If\n           * <a href=\"#/p5/shearY\">shearY()</a> is called within the <a href=\"#/p5/draw\">draw()</a>, the transformation is reset when\n           * the loop begins again.\n           * <br><br>\n           * Technically, <a href=\"#/p5/shearY\">shearY()</a> multiplies the current transformation matrix by a\n           * rotation matrix. This function can be further controlled by the\n           * <a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a> functions.\n           *\n           * @method shearY\n           * @param  {Number} angle angle of shear specified in radians or degrees,\n           *                        depending on current angleMode\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * translate(width / 4, height / 4);\n           * shearY(PI / 4.0);\n           * rect(0, 0, 30, 30);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * white irregular quadrilateral with black outline at middle bottom.\n           *\n           */\n          _main.default.prototype.shearY = function(angle) {\n            _main.default._validateParameters('shearY', arguments);\n            var rad = this._toRadians(angle);\n            this._renderer.applyMatrix(1, Math.tan(rad), 0, 1, 0, 0);\n            return this;\n          };\n\n          /**\n    * Specifies an amount to displace objects within the display window.\n    * The x parameter specifies left/right translation, the y parameter\n    * specifies up/down translation.\n    * <br><br>\n    * Transformations are cumulative and apply to everything that happens after\n    * and subsequent calls to the function accumulates the effect. For example,\n    * calling translate(50, 0) and then translate(20, 0) is the same as\n    * translate(70, 0). If <a href=\"#/p5/translate\">translate()</a> is called within <a href=\"#/p5/draw\">draw()</a>, the\n    * transformation is reset when the loop begins again. This function can be\n    * further controlled by using <a href=\"#/p5/push\">push()</a> and <a href=\"#/p5/pop\">pop()</a>.\n    *\n    * @method translate\n    * @param  {Number} x left/right translation\n    * @param  {Number} y up/down translation\n    * @param  {Number} [z] forward/backward translation (webgl only)\n    * @chainable\n    * @example\n    * <div>\n    * <code>\n    * translate(30, 20);\n    * rect(0, 0, 55, 55);\n    * </code>\n    * </div>\n    *\n    * <div>\n    * <code>\n    * rect(0, 0, 55, 55); // Draw rect at original 0,0\n    * translate(30, 20);\n    * rect(0, 0, 55, 55); // Draw rect at new 0,0\n    * translate(14, 14);\n    * rect(0, 0, 55, 55); // Draw rect at new 0,0\n    * </code>\n    * </div>\n    *\n   \n    * <div>\n    * <code>\n    * function draw() {\n    *   background(200);\n    *   rectMode(CENTER);\n    *   translate(width / 2, height / 2);\n    *   translate(p5.Vector.fromAngle(millis() / 1000, 40));\n    *   rect(0, 0, 20, 20);\n    * }\n    * </code>\n    * </div>\n    *\n    * @alt\n    * white 55x55 rect with black outline at center right.\n    * 3 white 55x55 rects with black outlines at top-l, center-r and bottom-r.\n    * a 20x20 white rect moving in a circle around the canvas\n    *\n    */\n          /**\n           * @method translate\n           * @param  {p5.Vector} vector the vector to translate by\n           * @chainable\n           */\n          _main.default.prototype.translate = function(x, y, z) {\n            _main.default._validateParameters('translate', arguments);\n            if (this._renderer.isP3D) {\n              this._renderer.translate(x, y, z);\n            } else {\n              this._renderer.translate(x, y);\n            }\n            return this;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { './main': 50 }\n      ],\n      64: [\n        function(_dereq_, module, exports) {\n          'use strict';\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          function _toConsumableArray(arr) {\n            return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n          }\n          function _nonIterableSpread() {\n            throw new TypeError('Invalid attempt to spread non-iterable instance');\n          }\n          function _iterableToArray(iter) {\n            if (\n              Symbol.iterator in Object(iter) ||\n              Object.prototype.toString.call(iter) === '[object Arguments]'\n            )\n              return Array.from(iter);\n          }\n          function _arrayWithoutHoles(arr) {\n            if (Array.isArray(arr)) {\n              for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n                arr2[i] = arr[i];\n              }\n              return arr2;\n            }\n          }\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          /**\n           *\n           * Stores a value in local storage under the key name.\n           * Local storage is saved in the browser and persists\n           * between browsing sessions and page reloads.\n           * The key can be the name of the variable but doesn't\n           * have to be. To retrieve stored items\n           * see <a href=\"#/p5/getItem\">getItem</a>.\n           * <br><br>\n           * Sensitive data such as passwords or personal information\n           * should not be stored in local storage.\n           *\n           * @method storeItem\n           * @for p5\n           * @param {String} key\n           * @param {String|Number|Object|Boolean|p5.Color|p5.Vector} value\n           *\n           * @example\n           * <div><code>\n           * // Type to change the letter in the\n           * // center of the canvas.\n           * // If you reload the page, it will\n           * // still display the last key you entered\n           *\n           * let myText;\n           *\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   myText = getItem('myText');\n           *   if (myText === null) {\n           *     myText = '';\n           *   }\n           * }\n           *\n           * function draw() {\n           *   textSize(40);\n           *   background(255);\n           *   text(myText, width / 2, height / 2);\n           * }\n           *\n           * function keyPressed() {\n           *   myText = key;\n           *   storeItem('myText', myText);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * When you type the key name is displayed as black text on white background.\n           * If you reload the page, the last letter typed is still displaying.\n           *\n           */\n          _main.default.prototype.storeItem = function(key, value) {\n            if (typeof value === 'undefined') {\n              console.log('You cannot store undefined variables using storeItem()');\n            }\n            var type = _typeof(value);\n            switch (type) {\n              case 'number':\n              case 'boolean':\n                value = value.toString();\n                break;\n              case 'object':\n                if (value instanceof _main.default.Color) {\n                  type = 'p5.Color';\n                } else if (value instanceof _main.default.Vector) {\n                  type = 'p5.Vector';\n                  var coord = [value.x, value.y, value.z];\n                  value = coord;\n                }\n                value = JSON.stringify(value);\n                break;\n              case 'string':\n              default:\n                break;\n            }\n\n            localStorage.setItem(key, value);\n            var typeKey = ''.concat(key, 'p5TypeID');\n            localStorage.setItem(typeKey, type);\n          };\n\n          /**\n           *\n           * Returns the value of an item that was stored in local storage\n           * using storeItem()\n           *\n           * @method getItem\n           * @for p5\n           * @param {String} key name that you wish to use to store in local storage\n           * @return {Number|Object|String|Boolean|p5.Color|p5.Vector} Value of stored item\n           *\n           * @example\n           * <div><code>\n           * // Click the mouse to change\n           * // the color of the background\n           * // Once you have changed the color\n           * // it will stay changed even when you\n           * // reload the page.\n           *\n           * let myColor;\n           *\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   myColor = getItem('myColor');\n           * }\n           *\n           * function draw() {\n           *   if (myColor !== null) {\n           *     background(myColor);\n           *   }\n           * }\n           *\n           * function mousePressed() {\n           *   myColor = color(random(255), random(255), random(255));\n           *   storeItem('myColor', myColor);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * If you click, the canvas changes to a random color.\n           * If you reload the page, the canvas is still the color it\n           * was when the page was previously loaded.\n           *\n           */\n          _main.default.prototype.getItem = function(key) {\n            var value = localStorage.getItem(key);\n            var type = localStorage.getItem(''.concat(key, 'p5TypeID'));\n            if (typeof type === 'undefined') {\n              console.log(\n                'Unable to determine type of item stored under '.concat(\n                  key,\n                  'in local storage. Did you save the item with something other than setItem()?'\n                )\n              );\n            } else if (value !== null) {\n              switch (type) {\n                case 'number':\n                  value = parseInt(value);\n                  break;\n                case 'boolean':\n                  value = value === 'true';\n                  break;\n                case 'object':\n                  value = JSON.parse(value);\n                  break;\n                case 'p5.Color':\n                  value = JSON.parse(value);\n                  value = this.color.apply(this, _toConsumableArray(value.levels));\n                  break;\n                case 'p5.Vector':\n                  value = JSON.parse(value);\n                  value = this.createVector.apply(this, _toConsumableArray(value));\n                  break;\n                case 'string':\n                default:\n                  break;\n              }\n            }\n            return value;\n          };\n\n          /**\n           *\n           * Clears all local storage items set with storeItem()\n           * for the current domain.\n           *\n           * @method clearStorage\n           * @for p5\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let myNum = 10;\n           *   let myBool = false;\n           *   storeItem('myNum', myNum);\n           *   storeItem('myBool', myBool);\n           *   print(getItem('myNum')); // logs 10 to the console\n           *   print(getItem('myBool')); // logs false to the console\n           *   clearStorage();\n           *   print(getItem('myNum')); // logs null to the console\n           *   print(getItem('myBool')); // logs null to the console\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.clearStorage = function() {\n            localStorage.clear();\n          };\n\n          /**\n           *\n           * Removes an item that was stored with storeItem()\n           *\n           * @method removeItem\n           * @param {String} key\n           * @for p5\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let myVar = 10;\n           *   storeItem('myVar', myVar);\n           *   print(getItem('myVar')); // logs 10 to the console\n           *   removeItem('myVar');\n           *   print(getItem('myVar')); // logs null to the console\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.removeItem = function(key) {\n            if (typeof key !== 'string') {\n              console.log(\n                'The argument that you passed to removeItem() - '.concat(\n                  key,\n                  ' is not a string.'\n                )\n              );\n            }\n            localStorage.removeItem(key);\n            localStorage.removeItem(''.concat(key, 'p5TypeID'));\n          };\n        },\n        { '../core/main': 50 }\n      ],\n      65: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Data\n           * @submodule Dictionary\n           * @for p5.TypedDict\n           * @requires core\n           *\n           * This module defines the p5 methods for the p5 Dictionary classes.\n           * The classes StringDict and NumberDict are for storing and working\n           * with key-value pairs.\n           */ /**\n           *\n           * Creates a new instance of p5.StringDict using the key-value pair\n           * or the object you provide.\n           *\n           * @method createStringDict\n           * @for p5\n           * @param {String} key\n           * @param {String} value\n           * @return {p5.StringDict}\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let myDictionary = createStringDict('p5', 'js');\n           *   print(myDictionary.hasKey('p5')); // logs true to console\n           *\n           *   let anotherDictionary = createStringDict({ happy: 'coding' });\n           *   print(anotherDictionary.hasKey('happy')); // logs true to console\n           * }\n           * </code></div>\n           */ /**\n           * @method createStringDict\n           * @param {Object} object object\n           * @return {p5.StringDict}\n           */ _main.default.prototype.createStringDict = function(key, value) {\n            _main.default._validateParameters('createStringDict', arguments);\n            return new _main.default.StringDict(key, value);\n          };\n          /**\n           *\n           * Creates a new instance of <a href=\"#/p5.NumberDict\">p5.NumberDict</a> using the key-value pair\n           * or object you provide.\n           *\n           * @method createNumberDict\n           * @for p5\n           * @param {Number} key\n           * @param {Number} value\n           * @return {p5.NumberDict}\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let myDictionary = createNumberDict(100, 42);\n           *   print(myDictionary.hasKey(100)); // logs true to console\n           *\n           *   let anotherDictionary = createNumberDict({ 200: 84 });\n           *   print(anotherDictionary.hasKey(200)); // logs true to console\n           * }\n           * </code></div>\n           */\n          /**\n           * @method createNumberDict\n           * @param {Object} object object\n           * @return {p5.NumberDict}\n           */\n\n          _main.default.prototype.createNumberDict = function(key, value) {\n            _main.default._validateParameters('createNumberDict', arguments);\n            return new _main.default.NumberDict(key, value);\n          };\n\n          /**\n           *\n           * Base class for all p5.Dictionary types. Specifically\n           * typed Dictionary classes inherit from this class.\n           *\n           * @class p5.TypedDict\n           * @constructor\n           *\n           */\n\n          _main.default.TypedDict = function(key, value) {\n            if (key instanceof Object) {\n              this.data = key;\n            } else {\n              this.data = {};\n              this.data[key] = value;\n            }\n            return this;\n          };\n\n          /**\n           * Returns the number of key-value pairs currently stored in the Dictionary.\n           *\n           * @method size\n           * @return {Integer} the number of key-value pairs in the Dictionary\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let myDictionary = createNumberDict(1, 10);\n           *   myDictionary.create(2, 20);\n           *   myDictionary.create(3, 30);\n           *   print(myDictionary.size()); // logs 3 to the console\n           * }\n           * </code></div>\n           *\n           */\n          _main.default.TypedDict.prototype.size = function() {\n            return Object.keys(this.data).length;\n          };\n\n          /**\n           * Returns true if the given key exists in the Dictionary,\n           * otherwise returns false.\n           *\n           * @method hasKey\n           * @param {Number|String} key that you want to look up\n           * @return {Boolean} whether that key exists in Dictionary\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let myDictionary = createStringDict('p5', 'js');\n           *   print(myDictionary.hasKey('p5')); // logs true to console\n           * }\n           * </code></div>\n           *\n           */\n\n          _main.default.TypedDict.prototype.hasKey = function(key) {\n            return this.data.hasOwnProperty(key);\n          };\n\n          /**\n           * Returns the value stored at the given key.\n           *\n           * @method get\n           * @param {Number|String} the key you want to access\n           * @return {Number|String} the value stored at that key\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let myDictionary = createStringDict('p5', 'js');\n           *   let myValue = myDictionary.get('p5');\n           *   print(myValue === 'js'); // logs true to console\n           * }\n           * </code></div>\n           *\n           */\n\n          _main.default.TypedDict.prototype.get = function(key) {\n            if (this.data.hasOwnProperty(key)) {\n              return this.data[key];\n            } else {\n              console.log(''.concat(key, ' does not exist in this Dictionary'));\n            }\n          };\n\n          /**\n           * Updates the value associated with the given key in case it already exists\n           * in the Dictionary. Otherwise a new key-value pair is added.\n           *\n           * @method set\n           * @param {Number|String} key\n           * @param {Number|String} value\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let myDictionary = createStringDict('p5', 'js');\n           *   myDictionary.set('p5', 'JS');\n           *   myDictionary.print(); // logs \"key: p5 - value: JS\" to console\n           * }\n           * </code></div>\n           *\n           */\n\n          _main.default.TypedDict.prototype.set = function(key, value) {\n            if (this._validate(value)) {\n              this.data[key] = value;\n            } else {\n              console.log('Those values dont work for this dictionary type.');\n            }\n          };\n\n          /**\n           * private helper function to handle the user passing in objects\n           * during construction or calls to create()\n           */\n\n          _main.default.TypedDict.prototype._addObj = function(obj) {\n            for (var key in obj) {\n              this.set(key, obj[key]);\n            }\n          };\n\n          /**\n           * Creates a new key-value pair in the Dictionary.\n           *\n           * @method create\n           * @param {Number|String} key\n           * @param {Number|String} value\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let myDictionary = createStringDict('p5', 'js');\n           *   myDictionary.create('happy', 'coding');\n           *   myDictionary.print();\n           *   // above logs \"key: p5 - value: js, key: happy - value: coding\" to console\n           * }\n           * </code></div>\n           */\n          /**\n           * @method create\n           * @param {Object} obj key/value pair\n           */\n\n          _main.default.TypedDict.prototype.create = function(key, value) {\n            if (key instanceof Object && typeof value === 'undefined') {\n              this._addObj(key);\n            } else if (typeof key !== 'undefined') {\n              this.set(key, value);\n            } else {\n              console.log(\n                'In order to create a new Dictionary entry you must pass ' +\n                  'an object or a key, value pair'\n              );\n            }\n          };\n\n          /**\n           * Removes all previously stored key-value pairs from the Dictionary.\n           *\n           * @method clear\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let myDictionary = createStringDict('p5', 'js');\n           *   print(myDictionary.hasKey('p5')); // prints 'true'\n           *   myDictionary.clear();\n           *   print(myDictionary.hasKey('p5')); // prints 'false'\n           * }\n           * </code>\n           * </div>\n           */\n\n          _main.default.TypedDict.prototype.clear = function() {\n            this.data = {};\n          };\n\n          /**\n           * Removes the key-value pair stored at the given key from the Dictionary.\n           *\n           * @method remove\n           * @param {Number|String} key for the pair to remove\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let myDictionary = createStringDict('p5', 'js');\n           *   myDictionary.create('happy', 'coding');\n           *   myDictionary.print();\n           *   // above logs \"key: p5 - value: js, key: happy - value: coding\" to console\n           *   myDictionary.remove('p5');\n           *   myDictionary.print();\n           *   // above logs \"key: happy value: coding\" to console\n           * }\n           * </code></div>\n           *\n           */\n\n          _main.default.TypedDict.prototype.remove = function(key) {\n            if (this.data.hasOwnProperty(key)) {\n              delete this.data[key];\n            } else {\n              throw new Error(''.concat(key, ' does not exist in this Dictionary'));\n            }\n          };\n\n          /**\n           * Logs the set of items currently stored in the Dictionary to the console.\n           *\n           * @method print\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let myDictionary = createStringDict('p5', 'js');\n           *   myDictionary.create('happy', 'coding');\n           *   myDictionary.print();\n           *   // above logs \"key: p5 - value: js, key: happy - value: coding\" to console\n           * }\n           * </code>\n           * </div>\n           */\n\n          _main.default.TypedDict.prototype.print = function() {\n            for (var item in this.data) {\n              console.log('key:'.concat(item, ' value:').concat(this.data[item]));\n            }\n          };\n\n          /**\n           * Converts the Dictionary into a CSV file for local download.\n           *\n           * @method saveTable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   background(200);\n           *   text('click here to save', 10, 10, 70, 80);\n           * }\n           *\n           * function mousePressed() {\n           *   if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n           *     createStringDict({\n           *       john: 1940,\n           *       paul: 1942,\n           *       george: 1943,\n           *       ringo: 1940\n           *     }).saveTable('beatles');\n           *   }\n           * }\n           * </code>\n           * </div>\n           */\n\n          _main.default.TypedDict.prototype.saveTable = function(filename) {\n            var output = '';\n\n            for (var key in this.data) {\n              output += ''.concat(key, ',').concat(this.data[key], '\\n');\n            }\n\n            var blob = new Blob([output], { type: 'text/csv' });\n            _main.default.prototype.downloadFile(blob, filename || 'mycsv', 'csv');\n          };\n\n          /**\n           * Converts the Dictionary into a JSON file for local download.\n           *\n           * @method saveJSON\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   background(200);\n           *   text('click here to save', 10, 10, 70, 80);\n           * }\n           *\n           * function mousePressed() {\n           *   if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n           *     createStringDict({\n           *       john: 1940,\n           *       paul: 1942,\n           *       george: 1943,\n           *       ringo: 1940\n           *     }).saveJSON('beatles');\n           *   }\n           * }\n           * </code>\n           * </div>\n           */\n\n          _main.default.TypedDict.prototype.saveJSON = function(filename, opt) {\n            _main.default.prototype.saveJSON(this.data, filename, opt);\n          };\n\n          /**\n           * private helper function to ensure that the user passed in valid\n           * values for the Dictionary type\n           */\n\n          _main.default.TypedDict.prototype._validate = function(value) {\n            return true;\n          };\n\n          /**\n           *\n           * A simple Dictionary class for Strings.\n           *\n           * @class p5.StringDict\n           * @extends p5.TypedDict\n           *\n           */\n\n          _main.default.StringDict = function() {\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default.TypedDict.apply(this, args);\n          };\n\n          _main.default.StringDict.prototype = Object.create(\n            _main.default.TypedDict.prototype\n          );\n\n          _main.default.StringDict.prototype._validate = function(value) {\n            return typeof value === 'string';\n          };\n\n          /**\n           *\n           * A simple Dictionary class for Numbers.\n           *\n           * @class p5.NumberDict\n           * @constructor\n           * @extends p5.TypedDict\n           *\n           */\n\n          _main.default.NumberDict = function() {\n            for (\n              var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;\n              _key2 < _len2;\n              _key2++\n            ) {\n              args[_key2] = arguments[_key2];\n            }\n            _main.default.TypedDict.apply(this, args);\n          };\n\n          _main.default.NumberDict.prototype = Object.create(\n            _main.default.TypedDict.prototype\n          );\n\n          /**\n           * private helper function to ensure that the user passed in valid\n           * values for the Dictionary type\n           */\n\n          _main.default.NumberDict.prototype._validate = function(value) {\n            return typeof value === 'number';\n          };\n\n          /**\n           * Add the given number to the value currently stored at the given key.\n           * The sum then replaces the value previously stored in the Dictionary.\n           *\n           * @method add\n           * @param {Number} Key for the value you wish to add to\n           * @param {Number} Number to add to the value\n           * @example\n           * <div class='norender'>\n           * <code>\n           * function setup() {\n           *   let myDictionary = createNumberDict(2, 5);\n           *   myDictionary.add(2, 2);\n           *   print(myDictionary.get(2)); // logs 7 to console.\n           * }\n           * </code></div>\n           *\n           *\n           */\n\n          _main.default.NumberDict.prototype.add = function(key, amount) {\n            if (this.data.hasOwnProperty(key)) {\n              this.data[key] += amount;\n            } else {\n              console.log('The key - '.concat(key, ' does not exist in this dictionary.'));\n            }\n          };\n\n          /**\n           * Subtract the given number from the value currently stored at the given key.\n           * The difference then replaces the value previously stored in the Dictionary.\n           *\n           * @method sub\n           * @param {Number} Key for the value you wish to subtract from\n           * @param {Number} Number to subtract from the value\n           * @example\n           * <div class='norender'>\n           * <code>\n           * function setup() {\n           *   let myDictionary = createNumberDict(2, 5);\n           *   myDictionary.sub(2, 2);\n           *   print(myDictionary.get(2)); // logs 3 to console.\n           * }\n           * </code></div>\n           *\n           *\n           */\n\n          _main.default.NumberDict.prototype.sub = function(key, amount) {\n            this.add(key, -amount);\n          };\n\n          /**\n           * Multiply the given number with the value currently stored at the given key.\n           * The product then replaces the value previously stored in the Dictionary.\n           *\n           * @method mult\n           * @param {Number} Key for value you wish to multiply\n           * @param {Number} Amount to multiply the value by\n           * @example\n           * <div class='norender'>\n           * <code>\n           * function setup() {\n           *   let myDictionary = createNumberDict(2, 4);\n           *   myDictionary.mult(2, 2);\n           *   print(myDictionary.get(2)); // logs 8 to console.\n           * }\n           * </code></div>\n           *\n           *\n           */\n\n          _main.default.NumberDict.prototype.mult = function(key, amount) {\n            if (this.data.hasOwnProperty(key)) {\n              this.data[key] *= amount;\n            } else {\n              console.log('The key - '.concat(key, ' does not exist in this dictionary.'));\n            }\n          };\n\n          /**\n           * Divide the given number with the value currently stored at the given key.\n           * The quotient then replaces the value previously stored in the Dictionary.\n           *\n           * @method div\n           * @param {Number} Key for value you wish to divide\n           * @param {Number} Amount to divide the value by\n           * @example\n           * <div class='norender'>\n           * <code>\n           * function setup() {\n           *   let myDictionary = createNumberDict(2, 8);\n           *   myDictionary.div(2, 2);\n           *   print(myDictionary.get(2)); // logs 4 to console.\n           * }\n           * </code></div>\n           *\n           *\n           */\n\n          _main.default.NumberDict.prototype.div = function(key, amount) {\n            if (this.data.hasOwnProperty(key)) {\n              this.data[key] /= amount;\n            } else {\n              console.log('The key - '.concat(key, ' does not exist in this dictionary.'));\n            }\n          };\n\n          /**\n           * private helper function for finding lowest or highest value\n           * the argument 'flip' is used to flip the comparison arrow\n           * from 'less than' to 'greater than'\n           *\n           */\n\n          _main.default.NumberDict.prototype._valueTest = function(flip) {\n            if (Object.keys(this.data).length === 0) {\n              throw new Error(\n                'Unable to search for a minimum or maximum value on an empty NumberDict'\n              );\n            } else if (Object.keys(this.data).length === 1) {\n              return this.data[Object.keys(this.data)[0]];\n            } else {\n              var result = this.data[Object.keys(this.data)[0]];\n              for (var key in this.data) {\n                if (this.data[key] * flip < result * flip) {\n                  result = this.data[key];\n                }\n              }\n              return result;\n            }\n          };\n\n          /**\n           * Return the lowest number currently stored in the Dictionary.\n           *\n           * @method minValue\n           * @return {Number}\n           * @example\n           * <div class='norender'>\n           * <code>\n           * function setup() {\n           *   let myDictionary = createNumberDict({ 2: -10, 4: 0.65, 1.2: 3 });\n           *   let lowestValue = myDictionary.minValue(); // value is -10\n           *   print(lowestValue);\n           * }\n           * </code></div>\n           *\n           */\n\n          _main.default.NumberDict.prototype.minValue = function() {\n            return this._valueTest(1);\n          };\n\n          /**\n           * Return the highest number currently stored in the Dictionary.\n           *\n           * @method maxValue\n           * @return {Number}\n           * @example\n           * <div class='norender'>\n           * <code>\n           * function setup() {\n           *   let myDictionary = createNumberDict({ 2: -10, 4: 0.65, 1.2: 3 });\n           *   let highestValue = myDictionary.maxValue(); // value is 3\n           *   print(highestValue);\n           * }\n           * </code></div>\n           *\n           */\n\n          _main.default.NumberDict.prototype.maxValue = function() {\n            return this._valueTest(-1);\n          };\n\n          /**\n           * private helper function for finding lowest or highest key\n           * the argument 'flip' is used to flip the comparison arrow\n           * from 'less than' to 'greater than'\n           *\n           */\n\n          _main.default.NumberDict.prototype._keyTest = function(flip) {\n            if (Object.keys(this.data).length === 0) {\n              throw new Error('Unable to use minValue on an empty NumberDict');\n            } else if (Object.keys(this.data).length === 1) {\n              return Object.keys(this.data)[0];\n            } else {\n              var result = Object.keys(this.data)[0];\n              for (var i = 1; i < Object.keys(this.data).length; i++) {\n                if (Object.keys(this.data)[i] * flip < result * flip) {\n                  result = Object.keys(this.data)[i];\n                }\n              }\n              return result;\n            }\n          };\n\n          /**\n           * Return the lowest key currently used in the Dictionary.\n           *\n           * @method minKey\n           * @return {Number}\n           * @example\n           * <div class='norender'>\n           * <code>\n           * function setup() {\n           *   let myDictionary = createNumberDict({ 2: 4, 4: 6, 1.2: 3 });\n           *   let lowestKey = myDictionary.minKey(); // value is 1.2\n           *   print(lowestKey);\n           * }\n           * </code></div>\n           *\n           */\n\n          _main.default.NumberDict.prototype.minKey = function() {\n            return this._keyTest(1);\n          };\n\n          /**\n           * Return the highest key currently used in the Dictionary.\n           *\n           * @method maxKey\n           * @return {Number}\n           * @example\n           * <div class='norender'>\n           * <code>\n           * function setup() {\n           *   let myDictionary = createNumberDict({ 2: 4, 4: 6, 1.2: 3 });\n           *   let highestKey = myDictionary.maxKey(); // value is 4\n           *   print(highestKey);\n           * }\n           * </code></div>\n           *\n           */\n\n          _main.default.NumberDict.prototype.maxKey = function() {\n            return this._keyTest(-1);\n          };\n          var _default = _main.default.TypedDict;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      66: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n\n          /**\n           * Searches the page for an element with the given ID, class, or tag name (using the '#' or '.'\n           * prefixes to specify an ID or class respectively, and none for a tag) and returns it as\n           * a <a href=\"#/p5.Element\">p5.Element</a>. If a class or tag name is given with more than 1 element,\n           * only the first element will be returned.\n           * The DOM node itself can be accessed with .elt.\n           * Returns null if none found. You can also specify a container to search within.\n           *\n           * @method select\n           * @param  {String} name id, class, or tag name of element to search for\n           * @param  {String|p5.Element|HTMLElement} [container] id, <a href=\"#/p5.Element\">p5.Element</a>, or\n           *                                             HTML element to search within\n           * @return {p5.Element|null} <a href=\"#/p5.Element\">p5.Element</a> containing node found\n           * @example\n           * <div ><code class='norender'>\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   //translates canvas 50px down\n           *   select('canvas').position(100, 100);\n           * }\n           * </code></div>\n           * <div><code class='norender'>\n           * // these are all valid calls to select()\n           * let a = select('#moo');\n           * let b = select('#blah', '#myContainer');\n           * let c, e;\n           * if (b) {\n           *   c = select('#foo', b);\n           * }\n           * let d = document.getElementById('beep');\n           * if (d) {\n           *   e = select('p', d);\n           * }\n           * [a, b, c, d, e]; // unused\n           * </code></div>\n           *\n           */\n          _main.default.prototype.select = function(e, p) {\n            _main.default._validateParameters('select', arguments);\n            var res = null;\n            var container = getContainer(p);\n            if (e[0] === '.') {\n              e = e.slice(1);\n              res = container.getElementsByClassName(e);\n              if (res.length) {\n                res = res[0];\n              } else {\n                res = null;\n              }\n            } else if (e[0] === '#') {\n              e = e.slice(1);\n              res = container.getElementById(e);\n            } else {\n              res = container.getElementsByTagName(e);\n              if (res.length) {\n                res = res[0];\n              } else {\n                res = null;\n              }\n            }\n            if (res) {\n              return this._wrapElement(res);\n            } else {\n              return null;\n            }\n          };\n\n          /**\n           * Searches the page for elements with the given class or tag name (using the '.' prefix\n           * to specify a class and no prefix for a tag) and returns them as <a href=\"#/p5.Element\">p5.Element</a>s\n           * in an array.\n           * The DOM node itself can be accessed with .elt.\n           * Returns an empty array if none found.\n           * You can also specify a container to search within.\n           *\n           * @method selectAll\n           * @param  {String} name class or tag name of elements to search for\n           * @param  {String} [container] id, <a href=\"#/p5.Element\">p5.Element</a>, or HTML element to search within\n           * @return {p5.Element[]} Array of <a href=\"#/p5.Element\">p5.Element</a>s containing nodes found\n           * @example\n           * <div class='norender'><code>\n           * function setup() {\n           *   createButton('btn');\n           *   createButton('2nd btn');\n           *   createButton('3rd btn');\n           *   let buttons = selectAll('button');\n           *\n           *   for (let i = 0; i < buttons.length; i++) {\n           *     buttons[i].size(100, 100);\n           *   }\n           * }\n           * </code></div>\n           * <div class='norender'><code>\n           * // these are all valid calls to selectAll()\n           * let a = selectAll('.moo');\n           * a = selectAll('div');\n           * a = selectAll('button', '#myContainer');\n           *\n           * let d = select('#container');\n           * a = selectAll('p', d);\n           *\n           * let f = document.getElementById('beep');\n           * a = select('.blah', f);\n           *\n           * a; // unused\n           * </code></div>\n           *\n           */\n          _main.default.prototype.selectAll = function(e, p) {\n            _main.default._validateParameters('selectAll', arguments);\n            var arr = [];\n            var res;\n            var container = getContainer(p);\n            if (e[0] === '.') {\n              e = e.slice(1);\n              res = container.getElementsByClassName(e);\n            } else {\n              res = container.getElementsByTagName(e);\n            }\n            if (res) {\n              for (var j = 0; j < res.length; j++) {\n                var obj = this._wrapElement(res[j]);\n                arr.push(obj);\n              }\n            }\n            return arr;\n          };\n\n          /**\n           * Helper function for select and selectAll\n           */\n          function getContainer(p) {\n            var container = document;\n            if (typeof p === 'string' && p[0] === '#') {\n              p = p.slice(1);\n              container = document.getElementById(p) || document;\n            } else if (p instanceof _main.default.Element) {\n              container = p.elt;\n            } else if (p instanceof HTMLElement) {\n              container = p;\n            }\n            return container;\n          }\n\n          /**\n           * Helper function for getElement and getElements.\n           */\n          _main.default.prototype._wrapElement = function(elt) {\n            var children = Array.prototype.slice.call(elt.children);\n            if (elt.tagName === 'INPUT' && elt.type === 'checkbox') {\n              var converted = new _main.default.Element(elt, this);\n              converted.checked = function() {\n                if (arguments.length === 0) {\n                  return this.elt.checked;\n                } else if (arguments[0]) {\n                  this.elt.checked = true;\n                } else {\n                  this.elt.checked = false;\n                }\n                return this;\n              };\n              return converted;\n            } else if (elt.tagName === 'VIDEO' || elt.tagName === 'AUDIO') {\n              return new _main.default.MediaElement(elt, this);\n            } else if (elt.tagName === 'SELECT') {\n              return this.createSelect(new _main.default.Element(elt, this));\n            } else if (\n              children.length > 0 &&\n              children.every(function(c) {\n                return c.tagName === 'INPUT' || c.tagName === 'LABEL';\n              })\n            ) {\n              return this.createRadio(new _main.default.Element(elt, this));\n            } else {\n              return new _main.default.Element(elt, this);\n            }\n          };\n\n          /**\n           * Removes all elements created by p5, except any canvas / graphics\n           * elements created by <a href=\"#/p5/createCanvas\">createCanvas</a> or <a href=\"#/p5/createGraphics\">createGraphics</a>.\n           * Event handlers are removed, and element is removed from the DOM.\n           * @method removeElements\n           * @example\n           * <div class='norender'><code>\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   createDiv('this is some text');\n           *   createP('this is a paragraph');\n           * }\n           * function mousePressed() {\n           *   removeElements(); // this will remove the div and p, not canvas\n           * }\n           * </code></div>\n           *\n           */\n          _main.default.prototype.removeElements = function(e) {\n            _main.default._validateParameters('removeElements', arguments);\n            for (var i = 0; i < this._elements.length; i++) {\n              if (!(this._elements[i].elt instanceof HTMLCanvasElement)) {\n                this._elements[i].remove();\n              }\n            }\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/changed\">changed()</a> function is called when the value of an\n           * element changes.\n           * This can be used to attach an element specific event listener.\n           *\n           * @method changed\n           * @param  {Function|Boolean} fxn function to be fired when the value of\n           *                                an element changes.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div><code>\n           * let sel;\n           *\n           * function setup() {\n           *   textAlign(CENTER);\n           *   background(200);\n           *   sel = createSelect();\n           *   sel.position(10, 10);\n           *   sel.option('pear');\n           *   sel.option('kiwi');\n           *   sel.option('grape');\n           *   sel.changed(mySelectEvent);\n           * }\n           *\n           * function mySelectEvent() {\n           *   let item = sel.value();\n           *   background(200);\n           *   text(\"it's a \" + item + '!', 50, 50);\n           * }\n           * </code></div>\n           *\n           * <div><code>\n           * let checkbox;\n           * let cnv;\n           *\n           * function setup() {\n           *   checkbox = createCheckbox(' fill');\n           *   checkbox.changed(changeFill);\n           *   cnv = createCanvas(100, 100);\n           *   cnv.position(0, 30);\n           *   noFill();\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   ellipse(50, 50, 50, 50);\n           * }\n           *\n           * function changeFill() {\n           *   if (checkbox.checked()) {\n           *     fill(0);\n           *   } else {\n           *     noFill();\n           *   }\n           * }\n           * </code></div>\n           *\n           * @alt\n           * dropdown: pear, kiwi, grape. When selected text \"its a\" + selection shown.\n           *\n           */\n          _main.default.Element.prototype.changed = function(fxn) {\n            _main.default.Element._adjustListener('change', fxn, this);\n            return this;\n          };\n\n          /**\n           * The .<a href=\"#/p5.Element/input\">input()</a> function is called when any user input is\n           * detected with an element. The input event is often used\n           * to detect keystrokes in a input element, or changes on a\n           * slider element. This can be used to attach an element specific\n           * event listener.\n           *\n           * @method input\n           * @param  {Function|Boolean} fxn function to be fired when any user input is\n           *                                detected within the element.\n           *                                if `false` is passed instead, the previously\n           *                                firing function will no longer fire.\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * // Open your console to see the output\n           * function setup() {\n           *   let inp = createInput('');\n           *   inp.input(myInputEvent);\n           * }\n           *\n           * function myInputEvent() {\n           *   console.log('you are typing: ', this.value());\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no display.\n           *\n           */\n          _main.default.Element.prototype.input = function(fxn) {\n            _main.default.Element._adjustListener('input', fxn, this);\n            return this;\n          };\n\n          /**\n           * Helpers for create methods.\n           */\n          function addElement(elt, pInst, media) {\n            var node = pInst._userNode ? pInst._userNode : document.body;\n            node.appendChild(elt);\n            var c = media\n              ? new _main.default.MediaElement(elt, pInst)\n              : new _main.default.Element(elt, pInst);\n            pInst._elements.push(c);\n            return c;\n          }\n\n          /**\n           * Creates a &lt;div&gt;&lt;/div&gt; element in the DOM with given inner HTML.\n           *\n           * @method createDiv\n           * @param  {String} [html] inner HTML for element created\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           * @example\n           * <div class='norender'><code>\n           * createDiv('this is some text');\n           * </code></div>\n           */\n\n          /**\n           * Creates a &lt;p&gt;&lt;/p&gt; element in the DOM with given inner HTML. Used\n           * for paragraph length text.\n           *\n           * @method createP\n           * @param  {String} [html] inner HTML for element created\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           * @example\n           * <div class='norender'><code>\n           * createP('this is some text');\n           * </code></div>\n           */\n\n          /**\n           * Creates a &lt;span&gt;&lt;/span&gt; element in the DOM with given inner HTML.\n           *\n           * @method createSpan\n           * @param  {String} [html] inner HTML for element created\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           * @example\n           * <div class='norender'><code>\n           * createSpan('this is some text');\n           * </code></div>\n           */\n          var tags = ['div', 'p', 'span'];\n          tags.forEach(function(tag) {\n            var method = 'create' + tag.charAt(0).toUpperCase() + tag.slice(1);\n            _main.default.prototype[method] = function(html) {\n              var elt = document.createElement(tag);\n              elt.innerHTML = typeof html === 'undefined' ? '' : html;\n              return addElement(elt, this);\n            };\n          });\n\n          /**\n           * Creates an &lt;img&gt; element in the DOM with given src and\n           * alternate text.\n           *\n           * @method createImg\n           * @param  {String} src src path or url for image\n           * @param  {String} alt <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Img#Attributes\">alternate text</a> to be used if image does not load. You can use also an empty string (`\"\"`) if that an image is not intended to be viewed.\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           * @example\n           * <div class='norender'><code>\n           * createImg(\n           *   'https://p5js.org/assets/img/asterisk-01.png',\n           *   'the p5 magenta asterisk'\n           * );\n           * </code></div>\n           */\n          /**\n           * @method createImg\n           * @param  {String} src\n           * @param  {String} alt\n           * @param  {String} crossOrigin <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes\">crossOrigin property</a> of the `img` element; use either 'anonymous' or 'use-credentials' to retrieve the image with cross-origin access (for later use with `canvas`. if an empty string(`\"\"`) is passed, CORS is not used\n           * @param  {Function} [successCallback] callback to be called once image data is loaded with the <a href=\"#/p5.Element\">p5.Element</a> as argument\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           */\n          _main.default.prototype.createImg = function() {\n            _main.default._validateParameters('createImg', arguments);\n            var elt = document.createElement('img');\n            var args = arguments;\n            var self;\n            if (args.length > 1 && typeof args[1] === 'string') {\n              elt.alt = args[1];\n            }\n            if (args.length > 2 && typeof args[2] === 'string') {\n              elt.crossOrigin = args[2];\n            }\n            elt.src = args[0];\n            self = addElement(elt, this);\n            elt.addEventListener('load', function() {\n              self.width = elt.offsetWidth || elt.width;\n              self.height = elt.offsetHeight || elt.height;\n              var last = args[args.length - 1];\n              if (typeof last === 'function') last(self);\n            });\n            return self;\n          };\n\n          /**\n           * Creates an &lt;a&gt;&lt;/a&gt; element in the DOM for including a hyperlink.\n           *\n           * @method createA\n           * @param  {String} href       url of page to link to\n           * @param  {String} html       inner html of link element to display\n           * @param  {String} [target]   target where new link should open,\n           *                             could be _blank, _self, _parent, _top.\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           * @example\n           * <div class='norender'><code>\n           * createA('http://p5js.org/', 'this is a link');\n           * </code></div>\n           */\n          _main.default.prototype.createA = function(href, html, target) {\n            _main.default._validateParameters('createA', arguments);\n            var elt = document.createElement('a');\n            elt.href = href;\n            elt.innerHTML = html;\n            if (target) elt.target = target;\n            return addElement(elt, this);\n          };\n\n          /** INPUT **/\n\n          /**\n           * Creates a slider &lt;input&gt;&lt;/input&gt; element in the DOM.\n           * Use .size() to set the display length of the slider.\n           *\n           * @method createSlider\n           * @param  {Number} min minimum value of the slider\n           * @param  {Number} max maximum value of the slider\n           * @param  {Number} [value] default value of the slider\n           * @param  {Number} [step] step size for each tick of the slider (if step is set to 0, the slider will move continuously from the minimum to the maximum value)\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           * @example\n           * <div><code>\n           * let slider;\n           * function setup() {\n           *   slider = createSlider(0, 255, 100);\n           *   slider.position(10, 10);\n           *   slider.style('width', '80px');\n           * }\n           *\n           * function draw() {\n           *   let val = slider.value();\n           *   background(val);\n           * }\n           * </code></div>\n           *\n           * <div><code>\n           * let slider;\n           * function setup() {\n           *   colorMode(HSB);\n           *   slider = createSlider(0, 360, 60, 40);\n           *   slider.position(10, 10);\n           *   slider.style('width', '80px');\n           * }\n           *\n           * function draw() {\n           *   let val = slider.value();\n           *   background(val, 100, 100, 1);\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.createSlider = function(min, max, value, step) {\n            _main.default._validateParameters('createSlider', arguments);\n            var elt = document.createElement('input');\n            elt.type = 'range';\n            elt.min = min;\n            elt.max = max;\n            if (step === 0) {\n              elt.step = 0.000000000000000001; // smallest valid step\n            } else if (step) {\n              elt.step = step;\n            }\n            if (typeof value === 'number') elt.value = value;\n            return addElement(elt, this);\n          };\n\n          /**\n           * Creates a &lt;button&gt;&lt;/button&gt; element in the DOM.\n           * Use .size() to set the display size of the button.\n           * Use .mousePressed() to specify behavior on press.\n           *\n           * @method createButton\n           * @param  {String} label label displayed on the button\n           * @param  {String} [value] value of the button\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           * @example\n           * <div class='norender'><code>\n           * let button;\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   background(0);\n           *   button = createButton('click me');\n           *   button.position(19, 19);\n           *   button.mousePressed(changeBG);\n           * }\n           *\n           * function changeBG() {\n           *   let val = random(255);\n           *   background(val);\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.createButton = function(label, value) {\n            _main.default._validateParameters('createButton', arguments);\n            var elt = document.createElement('button');\n            elt.innerHTML = label;\n            if (value) elt.value = value;\n            return addElement(elt, this);\n          };\n\n          /**\n           * Creates a checkbox &lt;input&gt;&lt;/input&gt; element in the DOM.\n           * Calling .checked() on a checkbox returns if it is checked or not\n           *\n           * @method createCheckbox\n           * @param  {String} [label] label displayed after checkbox\n           * @param  {boolean} [value] value of the checkbox; checked is true, unchecked is false\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           * @example\n           * <div class='norender'><code>\n           * let checkbox;\n           *\n           * function setup() {\n           *   checkbox = createCheckbox('label', false);\n           *   checkbox.changed(myCheckedEvent);\n           * }\n           *\n           * function myCheckedEvent() {\n           *   if (this.checked()) {\n           *     console.log('Checking!');\n           *   } else {\n           *     console.log('Unchecking!');\n           *   }\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.createCheckbox = function() {\n            _main.default._validateParameters('createCheckbox', arguments);\n            var elt = document.createElement('div');\n            var checkbox = document.createElement('input');\n            checkbox.type = 'checkbox';\n            elt.appendChild(checkbox);\n            //checkbox must be wrapped in p5.Element before label so that label appears after\n            var self = addElement(elt, this);\n            self.checked = function() {\n              var cb = self.elt.getElementsByTagName('input')[0];\n              if (cb) {\n                if (arguments.length === 0) {\n                  return cb.checked;\n                } else if (arguments[0]) {\n                  cb.checked = true;\n                } else {\n                  cb.checked = false;\n                }\n              }\n              return self;\n            };\n            this.value = function(val) {\n              self.value = val;\n              return this;\n            };\n            if (arguments[0]) {\n              var ran = Math.random()\n                .toString(36)\n                .slice(2);\n              var label = document.createElement('label');\n              checkbox.setAttribute('id', ran);\n              label.htmlFor = ran;\n              self.value(arguments[0]);\n              label.appendChild(document.createTextNode(arguments[0]));\n              elt.appendChild(label);\n            }\n            if (arguments[1]) {\n              checkbox.checked = true;\n            }\n            return self;\n          };\n\n          /**\n           * Creates a dropdown menu &lt;select&gt;&lt;/select&gt; element in the DOM.\n           * It also helps to assign select-box methods to <a href=\"#/p5.Element\">p5.Element</a> when selecting existing select box.\n           * The .option() method can be used to set options for the select after it is created.\n           * The .value() method will return the currently selected option.\n           * The .selected() method will return current dropdown element which is an instance of <a href=\"#/p5.Element\">p5.Element</a>\n           * The .selected() method can be used to make given option selected by default when the page first loads.\n           * The .disable() method marks given option as disabled and marks whole of dropdown element as disabled when invoked with no parameter.\n           * @method createSelect\n           * @param {boolean} [multiple] true if dropdown should support multiple selections\n           * @return {p5.Element}\n           * @example\n           * <div><code>\n           * let sel;\n           *\n           * function setup() {\n           *   textAlign(CENTER);\n           *   background(200);\n           *   sel = createSelect();\n           *   sel.position(10, 10);\n           *   sel.option('pear');\n           *   sel.option('kiwi');\n           *   sel.option('grape');\n           *   sel.selected('kiwi');\n           *   sel.changed(mySelectEvent);\n           * }\n           *\n           * function mySelectEvent() {\n           *   let item = sel.value();\n           *   background(200);\n           *   text('It is a ' + item + '!', 50, 50);\n           * }\n           * </code></div>\n           *\n           * <div><code>\n           * let sel;\n           *\n           * function setup() {\n           *   textAlign(CENTER);\n           *   background(200);\n           *   sel = createSelect();\n           *   sel.position(10, 10);\n           *   sel.option('oil');\n           *   sel.option('milk');\n           *   sel.option('bread');\n           *   sel.disable('milk');\n           * }\n           * </code></div>\n           *\n           */\n          /**\n           * @method createSelect\n           * @param {Object} existing DOM select element\n           * @return {p5.Element}\n           */\n\n          _main.default.prototype.createSelect = function() {\n            _main.default._validateParameters('createSelect', arguments);\n            var elt, self;\n            var arg = arguments[0];\n            if (_typeof(arg) === 'object' && arg.elt.nodeName === 'SELECT') {\n              self = arg;\n              elt = this.elt = arg.elt;\n            } else {\n              elt = document.createElement('select');\n              if (arg && typeof arg === 'boolean') {\n                elt.setAttribute('multiple', 'true');\n              }\n              self = addElement(elt, this);\n            }\n            self.option = function(name, value) {\n              var index;\n              //see if there is already an option with this name\n              for (var i = 0; i < this.elt.length; i++) {\n                if (this.elt[i].innerHTML === name) {\n                  index = i;\n                  break;\n                }\n              }\n              //if there is an option with this name we will modify it\n              if (index !== undefined) {\n                //if the user passed in false then delete that option\n                if (value === false) {\n                  this.elt.remove(index);\n                } else {\n                  //otherwise if the name and value are the same then change both\n                  if (this.elt[index].innerHTML === this.elt[index].value) {\n                    this.elt[index].innerHTML = this.elt[index].value = value;\n                    //otherwise just change the value\n                  } else {\n                    this.elt[index].value = value;\n                  }\n                }\n              } else {\n                //if it doesn't exist make it\n                var opt = document.createElement('option');\n                opt.innerHTML = name;\n                if (arguments.length > 1) opt.value = value;\n                else opt.value = name;\n                elt.appendChild(opt);\n                this._pInst._elements.push(opt);\n              }\n            };\n            self.selected = function(value) {\n              var arr = [],\n                i;\n              if (arguments.length > 0) {\n                for (i = 0; i < this.elt.length; i++) {\n                  if (value.toString() === this.elt[i].value) {\n                    this.elt.selectedIndex = i;\n                  }\n                }\n                return this;\n              } else {\n                if (this.elt.getAttribute('multiple')) {\n                  for (i = 0; i < this.elt.selectedOptions.length; i++) {\n                    arr.push(this.elt.selectedOptions[i].value);\n                  }\n                  return arr;\n                } else {\n                  return this.elt.value;\n                }\n              }\n            };\n\n            self.disable = function(value) {\n              if (value !== undefined && typeof value === 'string') {\n                for (var i = 0; i < this.elt.length; i++) {\n                  if (this.elt[i].value === value) {\n                    this.elt[i].disabled = true;\n                  }\n                }\n                return this;\n              } else if (arguments.length === 0) {\n                this.elt.disabled = true;\n                return this;\n              }\n            };\n\n            return self;\n          };\n\n          /**\n           * Creates a radio button &lt;input&gt;&lt;/input&gt; element in the DOM.\n           * The .option() method can be used to set options for the radio after it is\n           * created. The .value() method will return the currently selected option.\n           *\n           * @method createRadio\n           * @param  {String} [divId] the id and name of the created div and input field respectively\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           * @example\n           * <div><code>\n           * let radio;\n           *\n           * function setup() {\n           *   radio = createRadio();\n           *   radio.option('black');\n           *   radio.option('white');\n           *   radio.option('gray');\n           *   radio.style('width', '60px');\n           *   textAlign(CENTER);\n           *   fill(255, 0, 0);\n           * }\n           *\n           * function draw() {\n           *   let val = radio.value();\n           *   background(val);\n           *   text(val, width / 2, height / 2);\n           * }\n           * </code></div>\n           * <div><code>\n           * let radio;\n           *\n           * function setup() {\n           *   radio = createRadio();\n           *   radio.option('apple', 1);\n           *   radio.option('bread', 2);\n           *   radio.option('juice', 3);\n           *   radio.style('width', '60px');\n           *   textAlign(CENTER);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   let val = radio.value();\n           *   if (val) {\n           *     text('item cost is $' + val, width / 2, height / 2);\n           *   }\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.createRadio = function(existing_radios) {\n            _main.default._validateParameters('createRadio', arguments);\n            // do some prep by counting number of radios on page\n            var radios = document.querySelectorAll('input[type=radio]');\n            var count = 0;\n            if (radios.length > 1) {\n              var length = radios.length;\n              var prev = radios[0].name;\n              var current = radios[1].name;\n              count = 1;\n              for (var i = 1; i < length; i++) {\n                current = radios[i].name;\n                if (prev !== current) {\n                  count++;\n                }\n                prev = current;\n              }\n            } else if (radios.length === 1) {\n              count = 1;\n            }\n            // see if we got an existing set of radios from callee\n            var elt, self;\n            if (_typeof(existing_radios) === 'object') {\n              // use existing elements\n              self = existing_radios;\n              elt = this.elt = existing_radios.elt;\n            } else {\n              // create a set of radio buttons\n              elt = document.createElement('div');\n              self = addElement(elt, this);\n            }\n            // setup member functions\n            self._getInputChildrenArray = function() {\n              return Array.prototype.slice.call(this.elt.children).filter(function(c) {\n                return c.tagName === 'INPUT';\n              });\n            };\n\n            var times = -1;\n            self.option = function(name, value) {\n              var opt = document.createElement('input');\n              opt.type = 'radio';\n              opt.innerHTML = name;\n              if (value) opt.value = value;\n              else opt.value = name;\n              opt.setAttribute('name', 'defaultradio' + count);\n              elt.appendChild(opt);\n              if (name) {\n                times++;\n                var label = document.createElement('label');\n                opt.setAttribute('id', 'defaultradio' + count + '-' + times);\n                label.htmlFor = 'defaultradio' + count + '-' + times;\n                label.appendChild(document.createTextNode(name));\n                elt.appendChild(label);\n              }\n              return opt;\n            };\n            self.selected = function(value) {\n              var i;\n              var inputChildren = self._getInputChildrenArray();\n              if (value) {\n                for (i = 0; i < inputChildren.length; i++) {\n                  if (inputChildren[i].value === value) inputChildren[i].checked = true;\n                }\n                return this;\n              } else {\n                for (i = 0; i < inputChildren.length; i++) {\n                  if (inputChildren[i].checked === true) return inputChildren[i].value;\n                }\n              }\n            };\n            self.value = function(value) {\n              var i;\n              var inputChildren = self._getInputChildrenArray();\n              if (value) {\n                for (i = 0; i < inputChildren.length; i++) {\n                  if (inputChildren[i].value === value) inputChildren[i].checked = true;\n                }\n                return this;\n              } else {\n                for (i = 0; i < inputChildren.length; i++) {\n                  if (inputChildren[i].checked === true) return inputChildren[i].value;\n                }\n                return '';\n              }\n            };\n            return self;\n          };\n\n          /**\n           * Creates a colorPicker element in the DOM for color input.\n           * The .value() method will return a hex string (#rrggbb) of the color.\n           * The .color() method will return a p5.Color object with the current chosen color.\n           *\n           * @method createColorPicker\n           * @param {String|p5.Color} [value] default color of element\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           * @example\n           * <div><code>\n           * let colorPicker;\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   colorPicker = createColorPicker('#ed225d');\n           *   colorPicker.position(0, height + 5);\n           * }\n           *\n           * function draw() {\n           *   background(colorPicker.color());\n           * }\n           * </code></div>\n           * <div><code>\n           * let inp1, inp2;\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   background('grey');\n           *   inp1 = createColorPicker('#ff0000');\n           *   inp1.position(0, height + 5);\n           *   inp1.input(setShade1);\n           *   inp2 = createColorPicker(color('yellow'));\n           *   inp2.position(0, height + 30);\n           *   inp2.input(setShade2);\n           *   setMidShade();\n           * }\n           *\n           * function setMidShade() {\n           *   // Finding a shade between the two\n           *   let commonShade = lerpColor(inp1.color(), inp2.color(), 0.5);\n           *   fill(commonShade);\n           *   rect(20, 20, 60, 60);\n           * }\n           *\n           * function setShade1() {\n           *   setMidShade();\n           *   console.log('You are choosing shade 1 to be : ', this.value());\n           * }\n           * function setShade2() {\n           *   setMidShade();\n           *   console.log('You are choosing shade 2 to be : ', this.value());\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.createColorPicker = function(value) {\n            _main.default._validateParameters('createColorPicker', arguments);\n            var elt = document.createElement('input');\n            var self;\n            elt.type = 'color';\n            if (value) {\n              if (value instanceof _main.default.Color) {\n                elt.value = value.toString('#rrggbb');\n              } else {\n                _main.default.prototype._colorMode = 'rgb';\n                _main.default.prototype._colorMaxes = {\n                  rgb: [255, 255, 255, 255],\n                  hsb: [360, 100, 100, 1],\n                  hsl: [360, 100, 100, 1]\n                };\n\n                elt.value = _main.default.prototype.color(value).toString('#rrggbb');\n              }\n            } else {\n              elt.value = '#000000';\n            }\n            self = addElement(elt, this);\n            // Method to return a p5.Color object for the given color.\n            self.color = function() {\n              if (value.mode) {\n                _main.default.prototype._colorMode = value.mode;\n              }\n              if (value.maxes) {\n                _main.default.prototype._colorMaxes = value.maxes;\n              }\n              return _main.default.prototype.color(this.elt.value);\n            };\n            return self;\n          };\n\n          /**\n           * Creates an &lt;input&gt;&lt;/input&gt; element in the DOM for text input.\n           * Use .<a href=\"#/p5.Element/size\">size()</a> to set the display length of the box.\n           *\n           * @method createInput\n           * @param {String} [value] default value of the input box\n           * @param {String} [type] type of text, ie text, password etc. Defaults to text\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           * @example\n           * <div class='norender'><code>\n           * function setup() {\n           *   let inp = createInput('');\n           *   inp.input(myInputEvent);\n           * }\n           *\n           * function myInputEvent() {\n           *   console.log('you are typing: ', this.value());\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.createInput = function(value, type) {\n            _main.default._validateParameters('createInput', arguments);\n            var elt = document.createElement('input');\n            elt.type = type ? type : 'text';\n            if (value) elt.value = value;\n            return addElement(elt, this);\n          };\n\n          /**\n           * Creates an &lt;input&gt;&lt;/input&gt; element in the DOM of type 'file'.\n           * This allows users to select local files for use in a sketch.\n           *\n           * @method createFileInput\n           * @param  {Function} [callback] callback function for when a file loaded\n           * @param  {String} [multiple] optional to allow multiple files selected\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created DOM element\n           * @example\n           * <div><code>\n           * let input;\n           * let img;\n           *\n           * function setup() {\n           *   input = createFileInput(handleFile);\n           *   input.position(0, 0);\n           * }\n           *\n           * function draw() {\n           *   background(255);\n           *   if (img) {\n           *     image(img, 0, 0, width, height);\n           *   }\n           * }\n           *\n           * function handleFile(file) {\n           *   print(file);\n           *   if (file.type === 'image') {\n           *     img = createImg(file.data, '');\n           *     img.hide();\n           *   } else {\n           *     img = null;\n           *   }\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.createFileInput = function(callback, multiple) {\n            _main.default._validateParameters('createFileInput', arguments);\n            // Function to handle when a file is selected\n            // We're simplifying life and assuming that we always\n            // want to load every selected file\n            function handleFileSelect(evt) {\n              // These are the files\n              var files = evt.target.files;\n              // Load each one and trigger a callback\n              for (var i = 0; i < files.length; i++) {\n                var f = files[i];\n                _main.default.File._load(f, callback);\n              }\n            }\n            // Is the file stuff supported?\n            if (window.File && window.FileReader && window.FileList && window.Blob) {\n              // Yup, we're ok and make an input file selector\n              var elt = document.createElement('input');\n              elt.type = 'file';\n\n              // If we get a second argument that evaluates to true\n              // then we are looking for multiple files\n              if (multiple) {\n                // Anything gets the job done\n                elt.multiple = 'multiple';\n              }\n\n              // Now let's handle when a file was selected\n              elt.addEventListener('change', handleFileSelect, false);\n              return addElement(elt, this);\n            } else {\n              console.log(\n                'The File APIs are not fully supported in this browser. Cannot create element.'\n              );\n            }\n          };\n\n          /** VIDEO STUFF **/\n\n          function createMedia(pInst, type, src, callback) {\n            var elt = document.createElement(type);\n\n            // allow src to be empty\n            src = src || '';\n            if (typeof src === 'string') {\n              src = [src];\n            }\n            for (var i = 0; i < src.length; i++) {\n              var source = document.createElement('source');\n              source.src = src[i];\n              elt.appendChild(source);\n            }\n            if (typeof callback !== 'undefined') {\n              var callbackHandler = function callbackHandler() {\n                callback();\n                elt.removeEventListener('canplaythrough', callbackHandler);\n              };\n              elt.addEventListener('canplaythrough', callbackHandler);\n            }\n\n            var c = addElement(elt, pInst, true);\n            c.loadedmetadata = false;\n            // set width and height onload metadata\n            elt.addEventListener('loadedmetadata', function() {\n              c.width = elt.videoWidth;\n              c.height = elt.videoHeight;\n              //c.elt.playbackRate = s;\n              // set elt width and height if not set\n              if (c.elt.width === 0) c.elt.width = elt.videoWidth;\n              if (c.elt.height === 0) c.elt.height = elt.videoHeight;\n              if (c.presetPlaybackRate) {\n                c.elt.playbackRate = c.presetPlaybackRate;\n                delete c.presetPlaybackRate;\n              }\n              c.loadedmetadata = true;\n            });\n\n            return c;\n          }\n          /**\n           * Creates an HTML5 &lt;video&gt; element in the DOM for simple playback\n           * of audio/video. Shown by default, can be hidden with .<a href=\"#/p5.Element/hide\">hide()</a>\n           * and drawn into canvas using video(). The first parameter\n           * can be either a single string path to a video file, or an array of string\n           * paths to different formats of the same video. This is useful for ensuring\n           * that your video can play across different browsers, as each supports\n           * different formats. See <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats'>this\n           * page</a> for further information about supported formats.\n           *\n           * @method createVideo\n           * @param  {String|String[]} src path to a video file, or array of paths for\n           *                             supporting different browsers\n           * @param  {Function} [callback] callback function to be called upon\n           *                             'canplaythrough' event fire, that is, when the\n           *                             browser can play the media, and estimates that\n           *                             enough data has been loaded to play the media\n           *                             up to its end without having to stop for\n           *                             further buffering of content\n           * @return {p5.MediaElement}   pointer to video <a href=\"#/p5.Element\">p5.Element</a>\n           * @example\n           * <div><code>\n           * let vid;\n           * function setup() {\n           *   noCanvas();\n           *\n           *   vid = createVideo(\n           *     ['assets/small.mp4', 'assets/small.ogv', 'assets/small.webm'],\n           *     vidLoad\n           *   );\n           *\n           *   vid.size(100, 100);\n           * }\n           *\n           * // This function is called when the video loads\n           * function vidLoad() {\n           *   vid.loop();\n           *   vid.volume(0);\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.createVideo = function(src, callback) {\n            _main.default._validateParameters('createVideo', arguments);\n            return createMedia(this, 'video', src, callback);\n          };\n\n          /** AUDIO STUFF **/\n\n          /**\n           * Creates a hidden HTML5 &lt;audio&gt; element in the DOM for simple audio\n           * playback. The first parameter can be either a single string path to a\n           * audio file, or an array of string paths to different formats of the same\n           * audio. This is useful for ensuring that your audio can play across\n           * different browsers, as each supports different formats.\n           * See <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats'>this\n           * page for further information about supported formats</a>.\n           *\n           * @method createAudio\n           * @param  {String|String[]} [src] path to an audio file, or array of paths\n           *                             for supporting different browsers\n           * @param  {Function} [callback] callback function to be called upon\n           *                             'canplaythrough' event fire, that is, when the\n           *                             browser can play the media, and estimates that\n           *                             enough data has been loaded to play the media\n           *                             up to its end without having to stop for\n           *                             further buffering of content\n           * @return {p5.MediaElement}   pointer to audio <a href=\"#/p5.Element\">p5.Element</a>\n           * @example\n           * <div><code>\n           * let ele;\n           * function setup() {\n           *   ele = createAudio('assets/beat.mp3');\n           *\n           *   // here we set the element to autoplay\n           *   // The element will play as soon\n           *   // as it is able to do so.\n           *   ele.autoplay(true);\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.createAudio = function(src, callback) {\n            _main.default._validateParameters('createAudio', arguments);\n            return createMedia(this, 'audio', src, callback);\n          };\n\n          /** CAMERA STUFF **/\n\n          /**\n           * @property {String} VIDEO\n           * @final\n           * @category Constants\n           */\n          _main.default.prototype.VIDEO = 'video';\n          /**\n           * @property {String} AUDIO\n           * @final\n           * @category Constants\n           */\n          _main.default.prototype.AUDIO = 'audio';\n\n          // from: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia\n          // Older browsers might not implement mediaDevices at all, so we set an empty object first\n          if (navigator.mediaDevices === undefined) {\n            navigator.mediaDevices = {};\n          }\n\n          // Some browsers partially implement mediaDevices. We can't just assign an object\n          // with getUserMedia as it would overwrite existing properties.\n          // Here, we will just add the getUserMedia property if it's missing.\n          if (navigator.mediaDevices.getUserMedia === undefined) {\n            navigator.mediaDevices.getUserMedia = function(constraints) {\n              // First get ahold of the legacy getUserMedia, if present\n              var getUserMedia = navigator.webkitGetUserMedia || navigator.mozGetUserMedia;\n\n              // Some browsers just don't implement it - return a rejected promise with an error\n              // to keep a consistent interface\n              if (!getUserMedia) {\n                return Promise.reject(\n                  new Error('getUserMedia is not implemented in this browser')\n                );\n              }\n\n              // Otherwise, wrap the call to the old navigator.getUserMedia with a Promise\n              return new Promise(function(resolve, reject) {\n                getUserMedia.call(navigator, constraints, resolve, reject);\n              });\n            };\n          }\n\n          /**\n           * <p>Creates a new HTML5 &lt;video&gt; element that contains the audio/video\n           * feed from a webcam. The element is separate from the canvas and is\n           * displayed by default. The element can be hidden using .<a href=\"#/p5.Element/hide\">hide()</a>. The feed\n           * can be drawn onto the canvas using <a href=\"#/p5/image\">image()</a>. The loadedmetadata property can\n           * be used to detect when the element has fully loaded (see second example).</p>\n           * <p>More specific properties of the feed can be passing in a Constraints object.\n           * See the\n           * <a href='http://w3c.github.io/mediacapture-main/getusermedia.html#media-track-constraints'> W3C\n           * spec</a> for possible properties. Note that not all of these are supported\n           * by all browsers.</p>\n           * <p>Security note: A new browser security specification requires that getUserMedia,\n           * which is behind <a href=\"#/p5/createCapture\">createCapture()</a>, only works when you're running the code locally,\n           * or on HTTPS. Learn more <a href='http://stackoverflow.com/questions/34197653/getusermedia-in-chrome-47-without-using-https'>here</a>\n           * and <a href='https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia'>here</a>.</p>\n           *\n           * @method createCapture\n           * @param  {String|Constant|Object}   type type of capture, either VIDEO or\n           *                                   AUDIO if none specified, default both,\n           *                                   or a Constraints object\n           * @param  {Function}                 [callback] function to be called once\n           *                                   stream has loaded\n           * @return {p5.Element} capture video <a href=\"#/p5.Element\">p5.Element</a>\n           * @example\n           * <div class='norender notest'><code>\n           * let capture;\n           *\n           * function setup() {\n           *   createCanvas(480, 480);\n           *   capture = createCapture(VIDEO);\n           *   capture.hide();\n           * }\n           *\n           * function draw() {\n           *   image(capture, 0, 0, width, width * capture.height / capture.width);\n           *   filter(INVERT);\n           * }\n           * </code></div>\n           * <div class='norender notest'><code>\n           * function setup() {\n           *   createCanvas(480, 120);\n           *   let constraints = {\n           *     video: {\n           *       mandatory: {\n           *         minWidth: 1280,\n           *         minHeight: 720\n           *       },\n           *       optional: [{ maxFrameRate: 10 }]\n           *     },\n           *     audio: true\n           *   };\n           *   createCapture(constraints, function(stream) {\n           *     console.log(stream);\n           *   });\n           * }\n           * </code></div>\n           * <code><div class='norender notest'>\n           * let capture;\n           *\n           * function setup() {\n           *   createCanvas(640, 480);\n           *   capture = createCapture(VIDEO);\n           * }\n           * function draw() {\n           *   background(0);\n           *   if (capture.loadedmetadata) {\n           *     let c = capture.get(0, 0, 100, 100);\n           *     image(c, 0, 0);\n           *   }\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.createCapture = function() {\n            _main.default._validateParameters('createCapture', arguments);\n            var useVideo = true;\n            var useAudio = true;\n            var constraints;\n            var cb;\n            for (var i = 0; i < arguments.length; i++) {\n              if (arguments[i] === _main.default.prototype.VIDEO) {\n                useAudio = false;\n              } else if (arguments[i] === _main.default.prototype.AUDIO) {\n                useVideo = false;\n              } else if (_typeof(arguments[i]) === 'object') {\n                constraints = arguments[i];\n              } else if (typeof arguments[i] === 'function') {\n                cb = arguments[i];\n              }\n            }\n            if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {\n              var elt = document.createElement('video');\n              // required to work in iOS 11 & up:\n              elt.setAttribute('playsinline', '');\n\n              if (!constraints) {\n                constraints = { video: useVideo, audio: useAudio };\n              }\n\n              navigator.mediaDevices.getUserMedia(constraints).then(\n                function(stream) {\n                  try {\n                    if ('srcObject' in elt) {\n                      elt.srcObject = stream;\n                    } else {\n                      elt.src = window.URL.createObjectURL(stream);\n                    }\n                  } catch (err) {\n                    elt.src = stream;\n                  }\n                },\n                function(e) {\n                  console.log(e);\n                }\n              );\n            } else {\n              throw 'getUserMedia not supported in this browser';\n            }\n            var c = addElement(elt, this, true);\n            c.loadedmetadata = false;\n            // set width and height onload metadata\n            elt.addEventListener('loadedmetadata', function() {\n              elt.play();\n\n              if (elt.width) {\n                c.width = elt.width;\n                c.height = elt.height;\n              } else {\n                c.width = c.elt.width = elt.videoWidth;\n                c.height = c.elt.height = elt.videoHeight;\n              }\n              c.loadedmetadata = true;\n              if (cb) {\n                cb(elt.srcObject);\n              }\n            });\n            return c;\n          };\n\n          /**\n           * Creates element with given tag in the DOM with given content.\n           *\n           * @method createElement\n           * @param  {String} tag tag for the new element\n           * @param  {String} [content] html content to be inserted into the element\n           * @return {p5.Element} pointer to <a href=\"#/p5.Element\">p5.Element</a> holding created node\n           * @example\n           * <div class='norender'><code>\n           * createElement('h2', 'im an h2 p5.element!');\n           * </code></div>\n           */\n          _main.default.prototype.createElement = function(tag, content) {\n            _main.default._validateParameters('createElement', arguments);\n            var elt = document.createElement(tag);\n            if (typeof content !== 'undefined') {\n              elt.innerHTML = content;\n            }\n            return addElement(elt, this);\n          };\n\n          // =============================================================================\n          //                         p5.Element additions\n          // =============================================================================\n          /**\n           *\n           * Adds specified class to the element.\n           *\n           * @for p5.Element\n           * @method addClass\n           * @param  {String} class name of class to add\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let div = createDiv('div');\n           * div.addClass('myClass');\n           * </code></div>\n           */\n          _main.default.Element.prototype.addClass = function(c) {\n            if (this.elt.className) {\n              if (!this.hasClass(c)) {\n                this.elt.className = this.elt.className + ' ' + c;\n              }\n            } else {\n              this.elt.className = c;\n            }\n            return this;\n          };\n\n          /**\n           *\n           * Removes specified class from the element.\n           *\n           * @method removeClass\n           * @param  {String} class name of class to remove\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * // In this example, a class is set when the div is created\n           * // and removed when mouse is pressed. This could link up\n           * // with a CSS style rule to toggle style properties.\n           *\n           * let div;\n           *\n           * function setup() {\n           *   div = createDiv('div');\n           *   div.addClass('myClass');\n           * }\n           *\n           * function mousePressed() {\n           *   div.removeClass('myClass');\n           * }\n           * </code></div>\n           */\n          _main.default.Element.prototype.removeClass = function(c) {\n            // Note: Removing a class that does not exist does NOT throw an error in classList.remove method\n            this.elt.classList.remove(c);\n            return this;\n          };\n\n          /**\n           *\n           * Checks if specified class already set to element\n           *\n           * @method hasClass\n           * @returns {boolean} a boolean value if element has specified class\n           * @param c {String} class name of class to check\n           * @example\n           * <div class='norender'><code>\n           * let div;\n           *\n           * function setup() {\n           *   div = createDiv('div');\n           *   div.addClass('show');\n           * }\n           *\n           * function mousePressed() {\n           *   if (div.hasClass('show')) {\n           *     div.addClass('show');\n           *   } else {\n           *     div.removeClass('show');\n           *   }\n           * }\n           * </code></div>\n           */\n          _main.default.Element.prototype.hasClass = function(c) {\n            return this.elt.classList.contains(c);\n          };\n\n          /**\n           *\n           * Toggles element class\n           *\n           * @method toggleClass\n           * @param c {String} class name to toggle\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let div;\n           *\n           * function setup() {\n           *   div = createDiv('div');\n           *   div.addClass('show');\n           * }\n           *\n           * function mousePressed() {\n           *   div.toggleClass('show');\n           * }\n           * </code></div>\n           */\n          _main.default.Element.prototype.toggleClass = function(c) {\n            // classList also has a toggle() method, but we cannot use that yet as support is unclear.\n            // See https://github.com/processing/p5.js/issues/3631\n            // this.elt.classList.toggle(c);\n            if (this.elt.classList.contains(c)) {\n              this.elt.classList.remove(c);\n            } else {\n              this.elt.classList.add(c);\n            }\n            return this;\n          };\n\n          /**\n           *\n           * Attaches the element  as a child to the parent specified.\n           * Accepts either a string ID, DOM node, or <a href=\"#/p5.Element\">p5.Element</a>.\n           * If no argument is specified, an array of children DOM nodes is returned.\n           *\n           * @method child\n           * @returns {Node[]} an array of child nodes\n           * @example\n           * <div class='norender'><code>\n           * let div0 = createDiv('this is the parent');\n           * let div1 = createDiv('this is the child');\n           * div0.child(div1); // use p5.Element\n           * </code></div>\n           * <div class='norender'><code>\n           * let div0 = createDiv('this is the parent');\n           * let div1 = createDiv('this is the child');\n           * div1.id('apples');\n           * div0.child('apples'); // use id\n           * </code></div>\n           * <div class='norender notest'><code>\n           * // this example assumes there is a div already on the page\n           * // with id \"myChildDiv\"\n           * let div0 = createDiv('this is the parent');\n           * let elt = document.getElementById('myChildDiv');\n           * div0.child(elt); // use element from page\n           * </code></div>\n           */\n          /**\n           * @method child\n           * @param  {String|p5.Element} [child] the ID, DOM node, or <a href=\"#/p5.Element\">p5.Element</a>\n           *                         to add to the current element\n           * @chainable\n           */\n          _main.default.Element.prototype.child = function(c) {\n            if (typeof c === 'undefined') {\n              return this.elt.childNodes;\n            }\n            if (typeof c === 'string') {\n              if (c[0] === '#') {\n                c = c.substring(1);\n              }\n              c = document.getElementById(c);\n            } else if (c instanceof _main.default.Element) {\n              c = c.elt;\n            }\n            this.elt.appendChild(c);\n            return this;\n          };\n\n          /**\n           * Centers a p5 Element either vertically, horizontally,\n           * or both, relative to its parent or according to\n           * the body if the Element has no parent. If no argument is passed\n           * the Element is aligned both vertically and horizontally.\n           *\n           * @method center\n           * @param  {String} [align]       passing 'vertical', 'horizontal' aligns element accordingly\n           * @chainable\n           *\n           * @example\n           * <div><code>\n           * function setup() {\n           *   let div = createDiv('').size(10, 10);\n           *   div.style('background-color', 'orange');\n           *   div.center();\n           * }\n           * </code></div>\n           */\n          _main.default.Element.prototype.center = function(align) {\n            var style = this.elt.style.display;\n            var hidden = this.elt.style.display === 'none';\n            var parentHidden = this.parent().style.display === 'none';\n            var pos = { x: this.elt.offsetLeft, y: this.elt.offsetTop };\n\n            if (hidden) this.show();\n\n            this.elt.style.display = 'block';\n            this.position(0, 0);\n\n            if (parentHidden) this.parent().style.display = 'block';\n\n            var wOffset = Math.abs(this.parent().offsetWidth - this.elt.offsetWidth);\n            var hOffset = Math.abs(this.parent().offsetHeight - this.elt.offsetHeight);\n            var y = pos.y;\n            var x = pos.x;\n\n            if (align === 'both' || align === undefined) {\n              this.position(wOffset / 2, hOffset / 2);\n            } else if (align === 'horizontal') {\n              this.position(wOffset / 2, y);\n            } else if (align === 'vertical') {\n              this.position(x, hOffset / 2);\n            }\n\n            this.style('display', style);\n\n            if (hidden) this.hide();\n\n            if (parentHidden) this.parent().style.display = 'none';\n\n            return this;\n          };\n\n          /**\n           *\n           * If an argument is given, sets the inner HTML of the element,\n           * replacing any existing html. If true is included as a second\n           * argument, html is appended instead of replacing existing html.\n           * If no arguments are given, returns\n           * the inner HTML of the element.\n           *\n           * @for p5.Element\n           * @method html\n           * @returns {String} the inner HTML of the element\n           * @example\n           * <div class='norender'><code>\n           * let div = createDiv('').size(100, 100);\n           * div.html('hi');\n           * </code></div>\n           * <div class='norender'><code>\n           * let div = createDiv('Hello ').size(100, 100);\n           * div.html('World', true);\n           * </code></div>\n           */\n          /**\n           * @method html\n           * @param  {String} [html] the HTML to be placed inside the element\n           * @param  {boolean} [append] whether to append HTML to existing\n           * @chainable\n           */\n          _main.default.Element.prototype.html = function() {\n            if (arguments.length === 0) {\n              return this.elt.innerHTML;\n            } else if (arguments[1]) {\n              this.elt.insertAdjacentHTML('beforeend', arguments[0]);\n              return this;\n            } else {\n              this.elt.innerHTML = arguments[0];\n              return this;\n            }\n          };\n\n          /**\n           *\n           * Sets the position of the element. If no position type argument is given, the\n           * position will be relative to (0, 0) of the window.\n           * Essentially, this sets position:absolute and left and top\n           * properties of style. If an optional third argument specifying position type is given,\n           * the x and y coordinates will be interpreted based on the <a target=\"_blank\"\n           * href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/position\">positioning scheme</a>.\n           * If no arguments given, the function returns the x and y position of the element.\n           *\n           * @method position\n           * @returns {Object} the x and y position of the element in an object\n           * @example\n           * <div><code class='norender'>\n           * function setup() {\n           *   let cnv = createCanvas(100, 100);\n           *   // positions canvas 50px to the right and 100px\n           *   // below upper left corner of the window\n           *   cnv.position(50, 100);\n           * }\n           * </code></div>\n           * <div><code class='norender'>\n           * function setup() {\n           *   let cnv = createCanvas(100, 100);\n           *   // positions canvas 50px to the right and 100px\n           *   // below upper left corner of the window\n           *   cnv.position(0, 0, 'fixed');\n           * }\n           * </code></div>\n           */\n          /**\n           * @method position\n           * @param  {Number} [x] x-position relative to upper left of window (optional)\n           * @param  {Number} [y] y-position relative to upper left of window (optional)\n           * @param  {String} positionType it can be static, fixed, relative, sticky, initial or inherit (optional)\n           * @chainable\n           */\n          _main.default.Element.prototype.position = function() {\n            if (arguments.length === 0) {\n              return { x: this.elt.offsetLeft, y: this.elt.offsetTop };\n            } else {\n              var positionType = 'absolute';\n              if (\n                arguments[2] === 'static' ||\n                arguments[2] === 'fixed' ||\n                arguments[2] === 'relative' ||\n                arguments[2] === 'sticky' ||\n                arguments[2] === 'initial' ||\n                arguments[2] === 'inherit'\n              ) {\n                positionType = arguments[2];\n              }\n              this.elt.style.position = positionType;\n              this.elt.style.left = arguments[0] + 'px';\n              this.elt.style.top = arguments[1] + 'px';\n              this.x = arguments[0];\n              this.y = arguments[1];\n              return this;\n            }\n          };\n\n          /* Helper method called by p5.Element.style() */\n          _main.default.Element.prototype._translate = function() {\n            this.elt.style.position = 'absolute';\n            // save out initial non-translate transform styling\n            var transform = '';\n            if (this.elt.style.transform) {\n              transform = this.elt.style.transform.replace(/translate3d\\(.*\\)/g, '');\n              transform = transform.replace(/translate[X-Z]?\\(.*\\)/g, '');\n            }\n            if (arguments.length === 2) {\n              this.elt.style.transform =\n                'translate(' + arguments[0] + 'px, ' + arguments[1] + 'px)';\n            } else if (arguments.length > 2) {\n              this.elt.style.transform =\n                'translate3d(' +\n                arguments[0] +\n                'px,' +\n                arguments[1] +\n                'px,' +\n                arguments[2] +\n                'px)';\n              if (arguments.length === 3) {\n                this.elt.parentElement.style.perspective = '1000px';\n              } else {\n                this.elt.parentElement.style.perspective = arguments[3] + 'px';\n              }\n            }\n            // add any extra transform styling back on end\n            this.elt.style.transform += transform;\n            return this;\n          };\n\n          /* Helper method called by p5.Element.style() */\n          _main.default.Element.prototype._rotate = function() {\n            // save out initial non-rotate transform styling\n            var transform = '';\n            if (this.elt.style.transform) {\n              transform = this.elt.style.transform.replace(/rotate3d\\(.*\\)/g, '');\n              transform = transform.replace(/rotate[X-Z]?\\(.*\\)/g, '');\n            }\n\n            if (arguments.length === 1) {\n              this.elt.style.transform = 'rotate(' + arguments[0] + 'deg)';\n            } else if (arguments.length === 2) {\n              this.elt.style.transform =\n                'rotate(' + arguments[0] + 'deg, ' + arguments[1] + 'deg)';\n            } else if (arguments.length === 3) {\n              this.elt.style.transform = 'rotateX(' + arguments[0] + 'deg)';\n              this.elt.style.transform += 'rotateY(' + arguments[1] + 'deg)';\n              this.elt.style.transform += 'rotateZ(' + arguments[2] + 'deg)';\n            }\n            // add remaining transform back on\n            this.elt.style.transform += transform;\n            return this;\n          };\n\n          /**\n           * Sets the given style (css) property (1st arg) of the element with the\n           * given value (2nd arg). If a single argument is given, .style()\n           * returns the value of the given property; however, if the single argument\n           * is given in css syntax ('text-align:center'), .style() sets the css\n           * appropriately.\n           *\n           * @method style\n           * @param  {String} property   property to be set\n           * @returns {String} value of property\n           * @example\n           * <div><code class='norender'>\n           * let myDiv = createDiv('I like pandas.');\n           * myDiv.style('font-size', '18px');\n           * myDiv.style('color', '#ff0000');\n           * </code></div>\n           * <div><code class='norender'>\n           * let col = color(25, 23, 200, 50);\n           * let button = createButton('button');\n           * button.style('background-color', col);\n           * button.position(10, 10);\n           * </code></div>\n           * <div><code class='norender'>\n           * let myDiv;\n           * function setup() {\n           *   background(200);\n           *   myDiv = createDiv('I like gray.');\n           *   myDiv.position(20, 20);\n           * }\n           *\n           * function draw() {\n           *   myDiv.style('font-size', mouseX + 'px');\n           * }\n           * </code></div>\n           */\n          /**\n           * @method style\n           * @param  {String} property\n           * @param  {String|Number|p5.Color} value     value to assign to property\n           * @return {String} current value of property, if no value is given as second argument\n           * @chainable\n           */\n          _main.default.Element.prototype.style = function(prop, val) {\n            var self = this;\n\n            if (val instanceof _main.default.Color) {\n              val =\n                'rgba(' +\n                val.levels[0] +\n                ',' +\n                val.levels[1] +\n                ',' +\n                val.levels[2] +\n                ',' +\n                val.levels[3] / 255 +\n                ')';\n            }\n\n            if (typeof val === 'undefined') {\n              // input provided as single line string\n              if (prop.indexOf(':') === -1) {\n                var styles = window.getComputedStyle(self.elt);\n                var style = styles.getPropertyValue(prop);\n                return style;\n              } else {\n                var attrs = prop.split(';');\n                for (var i = 0; i < attrs.length; i++) {\n                  var parts = attrs[i].split(':');\n                  if (parts[0] && parts[1]) {\n                    this.elt.style[parts[0].trim()] = parts[1].trim();\n                  }\n                }\n              }\n            } else {\n              // input provided as key,val pair\n              this.elt.style[prop] = val;\n              if (\n                prop === 'width' ||\n                prop === 'height' ||\n                prop === 'left' ||\n                prop === 'top'\n              ) {\n                var numVal = val.replace(/\\D+/g, '');\n                this[prop] = parseInt(numVal, 10);\n              }\n            }\n            return this;\n          };\n\n          /**\n           *\n           * Adds a new attribute or changes the value of an existing attribute\n           * on the specified element. If no value is specified, returns the\n           * value of the given attribute, or null if attribute is not set.\n           *\n           * @method attribute\n           * @return {String} value of attribute\n           *\n           * @example\n           * <div class='norender'><code>\n           * let myDiv = createDiv('I like pandas.');\n           * myDiv.attribute('align', 'center');\n           * </code></div>\n           */\n          /**\n           * @method attribute\n           * @param  {String} attr       attribute to set\n           * @param  {String} value      value to assign to attribute\n           * @chainable\n           */\n          _main.default.Element.prototype.attribute = function(attr, value) {\n            //handling for checkboxes and radios to ensure options get\n            //attributes not divs\n            if (\n              this.elt.firstChild != null &&\n              (this.elt.firstChild.type === 'checkbox' ||\n                this.elt.firstChild.type === 'radio')\n            ) {\n              if (typeof value === 'undefined') {\n                return this.elt.firstChild.getAttribute(attr);\n              } else {\n                for (var i = 0; i < this.elt.childNodes.length; i++) {\n                  this.elt.childNodes[i].setAttribute(attr, value);\n                }\n              }\n            } else if (typeof value === 'undefined') {\n              return this.elt.getAttribute(attr);\n            } else {\n              this.elt.setAttribute(attr, value);\n              return this;\n            }\n          };\n\n          /**\n           *\n           * Removes an attribute on the specified element.\n           *\n           * @method removeAttribute\n           * @param  {String} attr       attribute to remove\n           * @chainable\n           *\n           * @example\n           * <div><code>\n           * let button;\n           * let checkbox;\n           *\n           * function setup() {\n           *   checkbox = createCheckbox('enable', true);\n           *   checkbox.changed(enableButton);\n           *   button = createButton('button');\n           *   button.position(10, 10);\n           * }\n           *\n           * function enableButton() {\n           *   if (this.checked()) {\n           *     // Re-enable the button\n           *     button.removeAttribute('disabled');\n           *   } else {\n           *     // Disable the button\n           *     button.attribute('disabled', '');\n           *   }\n           * }\n           * </code></div>\n           */\n          _main.default.Element.prototype.removeAttribute = function(attr) {\n            if (\n              this.elt.firstChild != null &&\n              (this.elt.firstChild.type === 'checkbox' ||\n                this.elt.firstChild.type === 'radio')\n            ) {\n              for (var i = 0; i < this.elt.childNodes.length; i++) {\n                this.elt.childNodes[i].removeAttribute(attr);\n              }\n            }\n            this.elt.removeAttribute(attr);\n            return this;\n          };\n\n          /**\n           * Either returns the value of the element if no arguments\n           * given, or sets the value of the element.\n           *\n           * @method value\n           * @return {String|Number} value of the element\n           * @example\n           * <div class='norender'><code>\n           * // gets the value\n           * let inp;\n           * function setup() {\n           *   inp = createInput('');\n           * }\n           *\n           * function mousePressed() {\n           *   print(inp.value());\n           * }\n           * </code></div>\n           * <div class='norender'><code>\n           * // sets the value\n           * let inp;\n           * function setup() {\n           *   inp = createInput('myValue');\n           * }\n           *\n           * function mousePressed() {\n           *   inp.value('myValue');\n           * }\n           * </code></div>\n           */\n          /**\n           * @method value\n           * @param  {String|Number}     value\n           * @chainable\n           */\n          _main.default.Element.prototype.value = function() {\n            if (arguments.length > 0) {\n              this.elt.value = arguments[0];\n              return this;\n            } else {\n              if (this.elt.type === 'range') {\n                return parseFloat(this.elt.value);\n              } else return this.elt.value;\n            }\n          };\n\n          /**\n           *\n           * Shows the current element. Essentially, setting display:block for the style.\n           *\n           * @method show\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let div = createDiv('div');\n           * div.style('display', 'none');\n           * div.show(); // turns display to block\n           * </code></div>\n           */\n          _main.default.Element.prototype.show = function() {\n            this.elt.style.display = 'block';\n            return this;\n          };\n\n          /**\n           * Hides the current element. Essentially, setting display:none for the style.\n           *\n           * @method hide\n           * @chainable\n           * @example\n           * <div class='norender'><code>\n           * let div = createDiv('this is a div');\n           * div.hide();\n           * </code></div>\n           */\n          _main.default.Element.prototype.hide = function() {\n            this.elt.style.display = 'none';\n            return this;\n          };\n\n          /**\n           *\n           * Sets the width and height of the element. AUTO can be used to\n           * only adjust one dimension at a time. If no arguments are given, it\n           * returns the width and height of the element in an object. In case of\n           * elements which need to be loaded, such as images, it is recommended\n           * to call the function after the element has finished loading.\n           *\n           * @method size\n           * @return {Object} the width and height of the element in an object\n           * @example\n           * <div class='norender'><code>\n           * let div = createDiv('this is a div');\n           * div.size(100, 100);\n           * let img = createImg(\n           *   'assets/rockies.jpg',\n           *   'A tall mountain with a small forest and field in front of it on a sunny day',\n           *   '',\n           *   () => {\n           *     img.size(10, AUTO);\n           *   }\n           * );\n           * </code></div>\n           */\n          /**\n           * @method size\n           * @param  {Number|Constant} w    width of the element, either AUTO, or a number\n           * @param  {Number|Constant} [h] height of the element, either AUTO, or a number\n           * @chainable\n           */\n          _main.default.Element.prototype.size = function(w, h) {\n            if (arguments.length === 0) {\n              return { width: this.elt.offsetWidth, height: this.elt.offsetHeight };\n            } else {\n              var aW = w;\n              var aH = h;\n              var AUTO = _main.default.prototype.AUTO;\n              if (aW !== AUTO || aH !== AUTO) {\n                if (aW === AUTO) {\n                  aW = h * this.width / this.height;\n                } else if (aH === AUTO) {\n                  aH = w * this.height / this.width;\n                }\n                // set diff for cnv vs normal div\n                if (this.elt instanceof HTMLCanvasElement) {\n                  var j = {};\n                  var k = this.elt.getContext('2d');\n                  var prop;\n                  for (prop in k) {\n                    j[prop] = k[prop];\n                  }\n                  this.elt.setAttribute('width', aW * this._pInst._pixelDensity);\n                  this.elt.setAttribute('height', aH * this._pInst._pixelDensity);\n                  this.elt.style.width = aW + 'px';\n                  this.elt.style.height = aH + 'px';\n                  this._pInst.scale(this._pInst._pixelDensity, this._pInst._pixelDensity);\n                  for (prop in j) {\n                    this.elt.getContext('2d')[prop] = j[prop];\n                  }\n                } else {\n                  this.elt.style.width = aW + 'px';\n                  this.elt.style.height = aH + 'px';\n                  this.elt.width = aW;\n                  this.elt.height = aH;\n                }\n\n                this.width = this.elt.offsetWidth;\n                this.height = this.elt.offsetHeight;\n\n                if (this._pInst && this._pInst._curElement) {\n                  // main canvas associated with p5 instance\n                  if (this._pInst._curElement.elt === this.elt) {\n                    this._pInst._setProperty('width', this.elt.offsetWidth);\n                    this._pInst._setProperty('height', this.elt.offsetHeight);\n                  }\n                }\n              }\n              return this;\n            }\n          };\n\n          /**\n           * Removes the element, stops all media streams, and deregisters all listeners.\n           * @method remove\n           * @example\n           * <div class='norender'><code>\n           * let myDiv = createDiv('this is some text');\n           * myDiv.remove();\n           * </code></div>\n           */\n          _main.default.Element.prototype.remove = function() {\n            // stop all audios/videos and detach all devices like microphone/camera etc\n            // used as input/output for audios/videos.\n            if (this instanceof _main.default.MediaElement) {\n              var tracks = this.elt.srcObject.getTracks();\n              tracks.forEach(function(track) {\n                track.stop();\n              });\n            }\n\n            // delete the reference in this._pInst._elements\n            var index = this._pInst._elements.indexOf(this);\n            if (index !== -1) {\n              this._pInst._elements.splice(index, 1);\n            }\n\n            // deregister events\n            for (var ev in this._events) {\n              this.elt.removeEventListener(ev, this._events[ev]);\n            }\n            if (this.elt && this.elt.parentNode) {\n              this.elt.parentNode.removeChild(this.elt);\n            }\n          };\n\n          /**\n           * Registers a callback that gets called every time a file that is\n           * dropped on the element has been loaded.\n           * p5 will load every dropped file into memory and pass it as a p5.File object to the callback.\n           * Multiple files dropped at the same time will result in multiple calls to the callback.\n           *\n           * You can optionally pass a second callback which will be registered to the raw\n           * <a href=\"https://developer.mozilla.org/en-US/docs/Web/Events/drop\">drop</a> event.\n           * The callback will thus be provided the original\n           * <a href=\"https://developer.mozilla.org/en-US/docs/Web/API/DragEvent\">DragEvent</a>.\n           * Dropping multiple files at the same time will trigger the second callback once per drop,\n           * whereas the first callback will trigger for each loaded file.\n           *\n           * @method drop\n           * @param  {Function} callback  callback to receive loaded file, called for each file dropped.\n           * @param  {Function} [fxn]     callback triggered once when files are dropped with the drop event.\n           * @chainable\n           * @example\n           * <div><code>\n           * function setup() {\n           *   let c = createCanvas(100, 100);\n           *   background(200);\n           *   textAlign(CENTER);\n           *   text('drop file', width / 2, height / 2);\n           *   c.drop(gotFile);\n           * }\n           *\n           * function gotFile(file) {\n           *   background(200);\n           *   text('received file:', width / 2, height / 2);\n           *   text(file.name, width / 2, height / 2 + 50);\n           * }\n           * </code></div>\n           *\n           * <div><code>\n           * let img;\n           *\n           * function setup() {\n           *   let c = createCanvas(100, 100);\n           *   background(200);\n           *   textAlign(CENTER);\n           *   text('drop image', width / 2, height / 2);\n           *   c.drop(gotFile);\n           * }\n           *\n           * function draw() {\n           *   if (img) {\n           *     image(img, 0, 0, width, height);\n           *   }\n           * }\n           *\n           * function gotFile(file) {\n           *   img = createImg(file.data, '').hide();\n           * }\n           * </code></div>\n           *\n           * @alt\n           * Canvas turns into whatever image is dragged/dropped onto it.\n           */\n          _main.default.Element.prototype.drop = function(callback, fxn) {\n            // Is the file stuff supported?\n            if (window.File && window.FileReader && window.FileList && window.Blob) {\n              if (!this._dragDisabled) {\n                this._dragDisabled = true;\n\n                var preventDefault = function preventDefault(evt) {\n                  evt.preventDefault();\n                };\n\n                // If you want to be able to drop you've got to turn off\n                // a lot of default behavior.\n                // avoid `attachListener` here, since it overrides other handlers.\n                this.elt.addEventListener('dragover', preventDefault);\n\n                // If this is a drag area we need to turn off the default behavior\n                this.elt.addEventListener('dragleave', preventDefault);\n              }\n\n              // Deal with the files\n              _main.default.Element._attachListener(\n                'drop',\n                function(evt) {\n                  evt.preventDefault();\n                  // Call the second argument as a callback that receives the raw drop event\n                  if (typeof fxn === 'function') {\n                    fxn.call(this, evt);\n                  }\n                  // A FileList\n                  var files = evt.dataTransfer.files;\n\n                  // Load each one and trigger the callback\n                  for (var i = 0; i < files.length; i++) {\n                    var f = files[i];\n                    _main.default.File._load(f, callback);\n                  }\n                },\n                this\n              );\n            } else {\n              console.log('The File APIs are not fully supported in this browser.');\n            }\n\n            return this;\n          };\n\n          // =============================================================================\n          //                         p5.MediaElement additions\n          // =============================================================================\n\n          /**\n           * Extends <a href=\"#/p5.Element\">p5.Element</a> to handle audio and video. In addition to the methods\n           * of <a href=\"#/p5.Element\">p5.Element</a>, it also contains methods for controlling media. It is not\n           * called directly, but <a href=\"#/p5.MediaElement\">p5.MediaElement</a>s are created by calling <a href=\"#/p5/createVideo\">createVideo</a>,\n           * <a href=\"#/p5/createAudio\">createAudio</a>, and <a href=\"#/p5/createCapture\">createCapture</a>.\n           *\n           * @class p5.MediaElement\n           * @constructor\n           * @param {String} elt DOM node that is wrapped\n           */\n          _main.default.MediaElement = function(elt, pInst) {\n            _main.default.Element.call(this, elt, pInst);\n\n            var self = this;\n            this.elt.crossOrigin = 'anonymous';\n\n            this._prevTime = 0;\n            this._cueIDCounter = 0;\n            this._cues = [];\n            this._pixelsState = this;\n            this._pixelDensity = 1;\n            this._modified = false;\n\n            /**\n             * Path to the media element source.\n             *\n             * @property src\n             * @return {String} src\n             * @example\n             * <div><code>\n             * let ele;\n             *\n             * function setup() {\n             *   background(250);\n             *\n             *   //p5.MediaElement objects are usually created\n             *   //by calling the createAudio(), createVideo(),\n             *   //and createCapture() functions.\n             *\n             *   //In this example we create\n             *   //a new p5.MediaElement via createAudio().\n             *   ele = createAudio('assets/beat.mp3');\n             *\n             *   //We'll set up our example so that\n             *   //when you click on the text,\n             *   //an alert box displays the MediaElement's\n             *   //src field.\n             *   textAlign(CENTER);\n             *   text('Click Me!', width / 2, height / 2);\n             * }\n             *\n             * function mouseClicked() {\n             *   //here we test if the mouse is over the\n             *   //canvas element when it's clicked\n             *   if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n             *     //Show our p5.MediaElement's src field\n             *     alert(ele.src);\n             *   }\n             * }\n             * </code></div>\n             */\n            Object.defineProperty(self, 'src', {\n              get: function get() {\n                var firstChildSrc = self.elt.children[0].src;\n                var srcVal = self.elt.src === window.location.href ? '' : self.elt.src;\n                var ret = firstChildSrc === window.location.href ? srcVal : firstChildSrc;\n                return ret;\n              },\n              set: function set(newValue) {\n                for (var i = 0; i < self.elt.children.length; i++) {\n                  self.elt.removeChild(self.elt.children[i]);\n                }\n                var source = document.createElement('source');\n                source.src = newValue;\n                elt.appendChild(source);\n                self.elt.src = newValue;\n                self.modified = true;\n              }\n            });\n\n            // private _onended callback, set by the method: onended(callback)\n            self._onended = function() {};\n            self.elt.onended = function() {\n              self._onended(self);\n            };\n          };\n          _main.default.MediaElement.prototype = Object.create(\n            _main.default.Element.prototype\n          );\n\n          /**\n           * Play an HTML5 media element.\n           *\n           * @method play\n           * @chainable\n           * @example\n           * <div><code>\n           * let ele;\n           *\n           * function setup() {\n           *   //p5.MediaElement objects are usually created\n           *   //by calling the createAudio(), createVideo(),\n           *   //and createCapture() functions.\n           *\n           *   //In this example we create\n           *   //a new p5.MediaElement via createAudio().\n           *   ele = createAudio('assets/beat.mp3');\n           *\n           *   background(250);\n           *   textAlign(CENTER);\n           *   text('Click to Play!', width / 2, height / 2);\n           * }\n           *\n           * function mouseClicked() {\n           *   //here we test if the mouse is over the\n           *   //canvas element when it's clicked\n           *   if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n           *     //Here we call the play() function on\n           *     //the p5.MediaElement we created above.\n           *     //This will start the audio sample.\n           *     ele.play();\n           *\n           *     background(200);\n           *     text('You clicked Play!', width / 2, height / 2);\n           *   }\n           * }\n           * </code></div>\n           */\n          _main.default.MediaElement.prototype.play = function() {\n            if (this.elt.currentTime === this.elt.duration) {\n              this.elt.currentTime = 0;\n            }\n            var promise;\n            if (this.elt.readyState > 1) {\n              promise = this.elt.play();\n            } else {\n              // in Chrome, playback cannot resume after being stopped and must reload\n              this.elt.load();\n              promise = this.elt.play();\n            }\n            if (promise && promise.catch) {\n              promise.catch(function(e) {\n                // if it's an autoplay failure error\n                if (e.name === 'NotAllowedError') {\n                  _main.default._friendlyAutoplayError(this.src);\n                } else {\n                  // any other kind of error\n                  console.error('Media play method encountered an unexpected error', e);\n                }\n              });\n            }\n            return this;\n          };\n\n          /**\n           * Stops an HTML5 media element (sets current time to zero).\n           *\n           * @method stop\n           * @chainable\n           * @example\n           * <div><code>\n           * //This example both starts\n           * //and stops a sound sample\n           * //when the user clicks the canvas\n           *\n           * //We will store the p5.MediaElement\n           * //object in here\n           * let ele;\n           *\n           * //while our audio is playing,\n           * //this will be set to true\n           * let sampleIsPlaying = false;\n           *\n           * function setup() {\n           *   //Here we create a p5.MediaElement object\n           *   //using the createAudio() function.\n           *   ele = createAudio('assets/beat.mp3');\n           *   background(200);\n           *   textAlign(CENTER);\n           *   text('Click to play!', width / 2, height / 2);\n           * }\n           *\n           * function mouseClicked() {\n           *   //here we test if the mouse is over the\n           *   //canvas element when it's clicked\n           *   if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n           *     background(200);\n           *\n           *     if (sampleIsPlaying) {\n           *       //if the sample is currently playing\n           *       //calling the stop() function on\n           *       //our p5.MediaElement will stop\n           *       //it and reset its current\n           *       //time to 0 (i.e. it will start\n           *       //at the beginning the next time\n           *       //you play it)\n           *       ele.stop();\n           *\n           *       sampleIsPlaying = false;\n           *       text('Click to play!', width / 2, height / 2);\n           *     } else {\n           *       //loop our sound element until we\n           *       //call ele.stop() on it.\n           *       ele.loop();\n           *\n           *       sampleIsPlaying = true;\n           *       text('Click to stop!', width / 2, height / 2);\n           *     }\n           *   }\n           * }\n           * </code></div>\n           */\n          _main.default.MediaElement.prototype.stop = function() {\n            this.elt.pause();\n            this.elt.currentTime = 0;\n            return this;\n          };\n\n          /**\n           * Pauses an HTML5 media element.\n           *\n           * @method pause\n           * @chainable\n           * @example\n           * <div><code>\n           * //This example both starts\n           * //and pauses a sound sample\n           * //when the user clicks the canvas\n           *\n           * //We will store the p5.MediaElement\n           * //object in here\n           * let ele;\n           *\n           * //while our audio is playing,\n           * //this will be set to true\n           * let sampleIsPlaying = false;\n           *\n           * function setup() {\n           *   //Here we create a p5.MediaElement object\n           *   //using the createAudio() function.\n           *   ele = createAudio('assets/lucky_dragons.mp3');\n           *   background(200);\n           *   textAlign(CENTER);\n           *   text('Click to play!', width / 2, height / 2);\n           * }\n           *\n           * function mouseClicked() {\n           *   //here we test if the mouse is over the\n           *   //canvas element when it's clicked\n           *   if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n           *     background(200);\n           *\n           *     if (sampleIsPlaying) {\n           *       //Calling pause() on our\n           *       //p5.MediaElement will stop it\n           *       //playing, but when we call the\n           *       //loop() or play() functions\n           *       //the sample will start from\n           *       //where we paused it.\n           *       ele.pause();\n           *\n           *       sampleIsPlaying = false;\n           *       text('Click to resume!', width / 2, height / 2);\n           *     } else {\n           *       //loop our sound element until we\n           *       //call ele.pause() on it.\n           *       ele.loop();\n           *\n           *       sampleIsPlaying = true;\n           *       text('Click to pause!', width / 2, height / 2);\n           *     }\n           *   }\n           * }\n           * </code></div>\n           */\n          _main.default.MediaElement.prototype.pause = function() {\n            this.elt.pause();\n            return this;\n          };\n\n          /**\n           * Set 'loop' to true for an HTML5 media element, and starts playing.\n           *\n           * @method loop\n           * @chainable\n           * @example\n           * <div><code>\n           * //Clicking the canvas will loop\n           * //the audio sample until the user\n           * //clicks again to stop it\n           *\n           * //We will store the p5.MediaElement\n           * //object in here\n           * let ele;\n           *\n           * //while our audio is playing,\n           * //this will be set to true\n           * let sampleIsLooping = false;\n           *\n           * function setup() {\n           *   //Here we create a p5.MediaElement object\n           *   //using the createAudio() function.\n           *   ele = createAudio('assets/lucky_dragons.mp3');\n           *   background(200);\n           *   textAlign(CENTER);\n           *   text('Click to loop!', width / 2, height / 2);\n           * }\n           *\n           * function mouseClicked() {\n           *   //here we test if the mouse is over the\n           *   //canvas element when it's clicked\n           *   if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n           *     background(200);\n           *\n           *     if (!sampleIsLooping) {\n           *       //loop our sound element until we\n           *       //call ele.stop() on it.\n           *       ele.loop();\n           *\n           *       sampleIsLooping = true;\n           *       text('Click to stop!', width / 2, height / 2);\n           *     } else {\n           *       ele.stop();\n           *\n           *       sampleIsLooping = false;\n           *       text('Click to loop!', width / 2, height / 2);\n           *     }\n           *   }\n           * }\n           * </code></div>\n           */\n          _main.default.MediaElement.prototype.loop = function() {\n            this.elt.setAttribute('loop', true);\n            this.play();\n            return this;\n          };\n          /**\n           * Set 'loop' to false for an HTML5 media element. Element will stop\n           * when it reaches the end.\n           *\n           * @method noLoop\n           * @chainable\n           * @example\n           * <div><code>\n           * //This example both starts\n           * //and stops loop of sound sample\n           * //when the user clicks the canvas\n           *\n           * //We will store the p5.MediaElement\n           * //object in here\n           * let ele;\n           * //while our audio is playing,\n           * //this will be set to true\n           * let sampleIsPlaying = false;\n           *\n           * function setup() {\n           *   //Here we create a p5.MediaElement object\n           *   //using the createAudio() function.\n           *   ele = createAudio('assets/beat.mp3');\n           *   background(200);\n           *   textAlign(CENTER);\n           *   text('Click to play!', width / 2, height / 2);\n           * }\n           *\n           * function mouseClicked() {\n           *   //here we test if the mouse is over the\n           *   //canvas element when it's clicked\n           *   if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n           *     background(200);\n           *\n           *     if (sampleIsPlaying) {\n           *       ele.noLoop();\n           *       text('No more Loops!', width / 2, height / 2);\n           *     } else {\n           *       ele.loop();\n           *       sampleIsPlaying = true;\n           *       text('Click to stop looping!', width / 2, height / 2);\n           *     }\n           *   }\n           * }\n           * </code></div>\n           *\n           */\n          _main.default.MediaElement.prototype.noLoop = function() {\n            this.elt.setAttribute('loop', false);\n            return this;\n          };\n\n          /**\n           * Sets up logic to check that autoplay succeeded.\n           *\n           * @method setupAutoplayFailDetection\n           * @private\n           */\n          _main.default.MediaElement.prototype._setupAutoplayFailDetection = function() {\n            var _this = this;\n            var timeout = setTimeout(function() {\n              return _main.default._friendlyAutoplayError(_this.src);\n            }, 500);\n            this.elt.addEventListener(\n              'play',\n              function() {\n                return clearTimeout(timeout);\n              },\n              {\n                passive: true,\n                once: true\n              }\n            );\n          };\n\n          /**\n           * Set HTML5 media element to autoplay or not.\n           *\n           * @method autoplay\n           * @param {Boolean} autoplay whether the element should autoplay\n           * @chainable\n           */\n          _main.default.MediaElement.prototype.autoplay = function(val) {\n            var _this2 = this;\n            var oldVal = this.elt.getAttribute('autoplay');\n            this.elt.setAttribute('autoplay', val);\n            // if we turned on autoplay\n            if (val && !oldVal) {\n              // bind method to this scope\n              var setupAutoplayFailDetection = function setupAutoplayFailDetection() {\n                return _this2._setupAutoplayFailDetection();\n              };\n              // if media is ready to play, schedule check now\n              if (this.elt.readyState === 4) {\n                setupAutoplayFailDetection();\n              } else {\n                // otherwise, schedule check whenever it is ready\n                this.elt.addEventListener('canplay', setupAutoplayFailDetection, {\n                  passive: true,\n                  once: true\n                });\n              }\n            }\n\n            return this;\n          };\n\n          /**\n           * Sets volume for this HTML5 media element. If no argument is given,\n           * returns the current volume.\n           *\n           * @method volume\n           * @return {Number} current volume\n           *\n           * @example\n           * <div><code>\n           * let ele;\n           * function setup() {\n           *   // p5.MediaElement objects are usually created\n           *   // by calling the createAudio(), createVideo(),\n           *   // and createCapture() functions.\n           *   // In this example we create\n           *   // a new p5.MediaElement via createAudio().\n           *   ele = createAudio('assets/lucky_dragons.mp3');\n           *   background(250);\n           *   textAlign(CENTER);\n           *   text('Click to Play!', width / 2, height / 2);\n           * }\n           * function mouseClicked() {\n           *   // Here we call the volume() function\n           *   // on the sound element to set its volume\n           *   // Volume must be between 0.0 and 1.0\n           *   ele.volume(0.2);\n           *   ele.play();\n           *   background(200);\n           *   text('You clicked Play!', width / 2, height / 2);\n           * }\n           * </code></div>\n           * <div><code>\n           * let audio;\n           * let counter = 0;\n           *\n           * function loaded() {\n           *   audio.play();\n           * }\n           *\n           * function setup() {\n           *   audio = createAudio('assets/lucky_dragons.mp3', loaded);\n           *   textAlign(CENTER);\n           * }\n           *\n           * function draw() {\n           *   if (counter === 0) {\n           *     background(0, 255, 0);\n           *     text('volume(0.9)', width / 2, height / 2);\n           *   } else if (counter === 1) {\n           *     background(255, 255, 0);\n           *     text('volume(0.5)', width / 2, height / 2);\n           *   } else if (counter === 2) {\n           *     background(255, 0, 0);\n           *     text('volume(0.1)', width / 2, height / 2);\n           *   }\n           * }\n           *\n           * function mousePressed() {\n           *   counter++;\n           *   if (counter === 0) {\n           *     audio.volume(0.9);\n           *   } else if (counter === 1) {\n           *     audio.volume(0.5);\n           *   } else if (counter === 2) {\n           *     audio.volume(0.1);\n           *   } else {\n           *     counter = 0;\n           *     audio.volume(0.9);\n           *   }\n           * }\n           * </code>\n           * </div>\n           */\n          /**\n           * @method volume\n           * @param {Number}            val volume between 0.0 and 1.0\n           * @chainable\n           */\n          _main.default.MediaElement.prototype.volume = function(val) {\n            if (typeof val === 'undefined') {\n              return this.elt.volume;\n            } else {\n              this.elt.volume = val;\n            }\n          };\n\n          /**\n           * If no arguments are given, returns the current playback speed of the\n           * element. The speed parameter sets the speed where 2.0 will play the\n           * element twice as fast, 0.5 will play at half the speed, and -1 will play\n           * the element in normal speed in reverse.(Note that not all browsers support\n           * backward playback and even if they do, playback might not be smooth.)\n           *\n           * @method speed\n           * @return {Number} current playback speed of the element\n           *\n           * @example\n           * <div class='norender notest'><code>\n           * //Clicking the canvas will loop\n           * //the audio sample until the user\n           * //clicks again to stop it\n           *\n           * //We will store the p5.MediaElement\n           * //object in here\n           * let ele;\n           * let button;\n           *\n           * function setup() {\n           *   createCanvas(710, 400);\n           *   //Here we create a p5.MediaElement object\n           *   //using the createAudio() function.\n           *   ele = createAudio('assets/beat.mp3');\n           *   ele.loop();\n           *   background(200);\n           *\n           *   button = createButton('2x speed');\n           *   button.position(100, 68);\n           *   button.mousePressed(twice_speed);\n           *\n           *   button = createButton('half speed');\n           *   button.position(200, 68);\n           *   button.mousePressed(half_speed);\n           *\n           *   button = createButton('reverse play');\n           *   button.position(300, 68);\n           *   button.mousePressed(reverse_speed);\n           *\n           *   button = createButton('STOP');\n           *   button.position(400, 68);\n           *   button.mousePressed(stop_song);\n           *\n           *   button = createButton('PLAY!');\n           *   button.position(500, 68);\n           *   button.mousePressed(play_speed);\n           * }\n           *\n           * function twice_speed() {\n           *   ele.speed(2);\n           * }\n           *\n           * function half_speed() {\n           *   ele.speed(0.5);\n           * }\n           *\n           * function reverse_speed() {\n           *   ele.speed(-1);\n           * }\n           *\n           * function stop_song() {\n           *   ele.stop();\n           * }\n           *\n           * function play_speed() {\n           *   ele.play();\n           * }\n           * </code></div>\n           */\n          /**\n           * @method speed\n           * @param {Number} speed  speed multiplier for element playback\n           * @chainable\n           */\n          _main.default.MediaElement.prototype.speed = function(val) {\n            if (typeof val === 'undefined') {\n              return this.presetPlaybackRate || this.elt.playbackRate;\n            } else {\n              if (this.loadedmetadata) {\n                this.elt.playbackRate = val;\n              } else {\n                this.presetPlaybackRate = val;\n              }\n            }\n          };\n\n          /**\n           * If no arguments are given, returns the current time of the element.\n           * If an argument is given the current time of the element is set to it.\n           *\n           * @method time\n           * @return {Number} current time (in seconds)\n           *\n           * @example\n           * <div><code>\n           * let ele;\n           * let beginning = true;\n           * function setup() {\n           *   //p5.MediaElement objects are usually created\n           *   //by calling the createAudio(), createVideo(),\n           *   //and createCapture() functions.\n           *\n           *   //In this example we create\n           *   //a new p5.MediaElement via createAudio().\n           *   ele = createAudio('assets/lucky_dragons.mp3');\n           *   background(250);\n           *   textAlign(CENTER);\n           *   text('start at beginning', width / 2, height / 2);\n           * }\n           *\n           * // this function fires with click anywhere\n           * function mousePressed() {\n           *   if (beginning === true) {\n           *     // here we start the sound at the beginning\n           *     // time(0) is not necessary here\n           *     // as this produces the same result as\n           *     // play()\n           *     ele.play().time(0);\n           *     background(200);\n           *     text('jump 2 sec in', width / 2, height / 2);\n           *     beginning = false;\n           *   } else {\n           *     // here we jump 2 seconds into the sound\n           *     ele.play().time(2);\n           *     background(250);\n           *     text('start at beginning', width / 2, height / 2);\n           *     beginning = true;\n           *   }\n           * }\n           * </code></div>\n           */\n          /**\n           * @method time\n           * @param {Number} time time to jump to (in seconds)\n           * @chainable\n           */\n          _main.default.MediaElement.prototype.time = function(val) {\n            if (typeof val === 'undefined') {\n              return this.elt.currentTime;\n            } else {\n              this.elt.currentTime = val;\n              return this;\n            }\n          };\n\n          /**\n           * Returns the duration of the HTML5 media element.\n           *\n           * @method duration\n           * @return {Number} duration\n           *\n           * @example\n           * <div><code>\n           * let ele;\n           * function setup() {\n           *   //p5.MediaElement objects are usually created\n           *   //by calling the createAudio(), createVideo(),\n           *   //and createCapture() functions.\n           *   //In this example we create\n           *   //a new p5.MediaElement via createAudio().\n           *   ele = createAudio('assets/doorbell.mp3');\n           *   background(250);\n           *   textAlign(CENTER);\n           *   text('Click to know the duration!', 10, 25, 70, 80);\n           * }\n           * function mouseClicked() {\n           *   ele.play();\n           *   background(200);\n           *   //ele.duration dislpays the duration\n           *   text(ele.duration() + ' seconds', width / 2, height / 2);\n           * }\n           * </code></div>\n           */\n          _main.default.MediaElement.prototype.duration = function() {\n            return this.elt.duration;\n          };\n          _main.default.MediaElement.prototype.pixels = [];\n          _main.default.MediaElement.prototype._ensureCanvas = function() {\n            if (!this.canvas) {\n              this.canvas = document.createElement('canvas');\n              this.drawingContext = this.canvas.getContext('2d');\n              this.setModified(true);\n            }\n            if (this.loadedmetadata) {\n              // wait for metadata for w/h\n              if (this.canvas.width !== this.elt.width) {\n                this.canvas.width = this.elt.width;\n                this.canvas.height = this.elt.height;\n                this.width = this.canvas.width;\n                this.height = this.canvas.height;\n              }\n\n              this.drawingContext.drawImage(\n                this.elt,\n                0,\n                0,\n                this.canvas.width,\n                this.canvas.height\n              );\n\n              this.setModified(true);\n            }\n          };\n          _main.default.MediaElement.prototype.loadPixels = function() {\n            this._ensureCanvas();\n            return _main.default.Renderer2D.prototype.loadPixels.apply(this, arguments);\n          };\n          _main.default.MediaElement.prototype.updatePixels = function(x, y, w, h) {\n            if (this.loadedmetadata) {\n              // wait for metadata\n              this._ensureCanvas();\n              _main.default.Renderer2D.prototype.updatePixels.call(this, x, y, w, h);\n            }\n            this.setModified(true);\n            return this;\n          };\n          _main.default.MediaElement.prototype.get = function() {\n            this._ensureCanvas();\n            return _main.default.Renderer2D.prototype.get.apply(this, arguments);\n          };\n          _main.default.MediaElement.prototype._getPixel = function() {\n            this.loadPixels();\n            return _main.default.Renderer2D.prototype._getPixel.apply(this, arguments);\n          };\n\n          _main.default.MediaElement.prototype.set = function(x, y, imgOrCol) {\n            if (this.loadedmetadata) {\n              // wait for metadata\n              this._ensureCanvas();\n              _main.default.Renderer2D.prototype.set.call(this, x, y, imgOrCol);\n              this.setModified(true);\n            }\n          };\n          _main.default.MediaElement.prototype.copy = function() {\n            this._ensureCanvas();\n            _main.default.prototype.copy.apply(this, arguments);\n          };\n          _main.default.MediaElement.prototype.mask = function() {\n            this.loadPixels();\n            this.setModified(true);\n            _main.default.Image.prototype.mask.apply(this, arguments);\n          };\n          /**\n           * helper method for web GL mode to figure out if the element\n           * has been modified and might need to be re-uploaded to texture\n           * memory between frames.\n           * @method isModified\n           * @private\n           * @return {boolean} a boolean indicating whether or not the\n           * image has been updated or modified since last texture upload.\n           */\n          _main.default.MediaElement.prototype.isModified = function() {\n            return this._modified;\n          };\n          /**\n           * helper method for web GL mode to indicate that an element has been\n           * changed or unchanged since last upload. gl texture upload will\n           * set this value to false after uploading the texture; or might set\n           * it to true if metadata has become available but there is no actual\n           * texture data available yet..\n           * @method setModified\n           * @param {boolean} val sets whether or not the element has been\n           * modified.\n           * @private\n           */\n          _main.default.MediaElement.prototype.setModified = function(value) {\n            this._modified = value;\n          };\n          /**\n           * Schedule an event to be called when the audio or video\n           * element reaches the end. If the element is looping,\n           * this will not be called. The element is passed in\n           * as the argument to the onended callback.\n           *\n           * @method  onended\n           * @param  {Function} callback function to call when the\n           *                             soundfile has ended. The\n           *                             media element will be passed\n           *                             in as the argument to the\n           *                             callback.\n           * @chainable\n           * @example\n           * <div><code>\n           * function setup() {\n           *   let audioEl = createAudio('assets/beat.mp3');\n           *   audioEl.showControls();\n           *   audioEl.onended(sayDone);\n           * }\n           *\n           * function sayDone(elt) {\n           *   alert('done playing ' + elt.src);\n           * }\n           * </code></div>\n           */\n          _main.default.MediaElement.prototype.onended = function(callback) {\n            this._onended = callback;\n            return this;\n          };\n\n          /*** CONNECT TO WEB AUDIO API / p5.sound.js ***/\n\n          /**\n           * Send the audio output of this element to a specified audioNode or\n           * p5.sound object. If no element is provided, connects to p5's master\n           * output. That connection is established when this method is first called.\n           * All connections are removed by the .disconnect() method.\n           *\n           * This method is meant to be used with the p5.sound.js addon library.\n           *\n           * @method  connect\n           * @param  {AudioNode|Object} audioNode AudioNode from the Web Audio API,\n           * or an object from the p5.sound library\n           */\n          _main.default.MediaElement.prototype.connect = function(obj) {\n            var audioContext, masterOutput;\n\n            // if p5.sound exists, same audio context\n            if (typeof _main.default.prototype.getAudioContext === 'function') {\n              audioContext = _main.default.prototype.getAudioContext();\n              masterOutput = _main.default.soundOut.input;\n            } else {\n              try {\n                audioContext = obj.context;\n                masterOutput = audioContext.destination;\n              } catch (e) {\n                throw 'connect() is meant to be used with Web Audio API or p5.sound.js';\n              }\n            }\n\n            // create a Web Audio MediaElementAudioSourceNode if none already exists\n            if (!this.audioSourceNode) {\n              this.audioSourceNode = audioContext.createMediaElementSource(this.elt);\n\n              // connect to master output when this method is first called\n              this.audioSourceNode.connect(masterOutput);\n            }\n\n            // connect to object if provided\n            if (obj) {\n              if (obj.input) {\n                this.audioSourceNode.connect(obj.input);\n              } else {\n                this.audioSourceNode.connect(obj);\n              }\n            } else {\n              // otherwise connect to master output of p5.sound / AudioContext\n              this.audioSourceNode.connect(masterOutput);\n            }\n          };\n\n          /**\n           * Disconnect all Web Audio routing, including to master output.\n           * This is useful if you want to re-route the output through\n           * audio effects, for example.\n           *\n           * @method  disconnect\n           */\n          _main.default.MediaElement.prototype.disconnect = function() {\n            if (this.audioSourceNode) {\n              this.audioSourceNode.disconnect();\n            } else {\n              throw 'nothing to disconnect';\n            }\n          };\n\n          /*** SHOW / HIDE CONTROLS ***/\n\n          /**\n           * Show the default MediaElement controls, as determined by the web browser.\n           *\n           * @method  showControls\n           * @example\n           * <div><code>\n           * let ele;\n           * function setup() {\n           *   //p5.MediaElement objects are usually created\n           *   //by calling the createAudio(), createVideo(),\n           *   //and createCapture() functions.\n           *   //In this example we create\n           *   //a new p5.MediaElement via createAudio()\n           *   ele = createAudio('assets/lucky_dragons.mp3');\n           *   background(200);\n           *   textAlign(CENTER);\n           *   text('Click to Show Controls!', 10, 25, 70, 80);\n           * }\n           * function mousePressed() {\n           *   ele.showControls();\n           *   background(200);\n           *   text('Controls Shown', width / 2, height / 2);\n           * }\n           * </code></div>\n           */\n          _main.default.MediaElement.prototype.showControls = function() {\n            // must set style for the element to show on the page\n            this.elt.style['text-align'] = 'inherit';\n            this.elt.controls = true;\n          };\n\n          /**\n           * Hide the default mediaElement controls.\n           * @method hideControls\n           * @example\n           * <div><code>\n           * let ele;\n           * function setup() {\n           *   //p5.MediaElement objects are usually created\n           *   //by calling the createAudio(), createVideo(),\n           *   //and createCapture() functions.\n           *   //In this example we create\n           *   //a new p5.MediaElement via createAudio()\n           *   ele = createAudio('assets/lucky_dragons.mp3');\n           *   ele.showControls();\n           *   background(200);\n           *   textAlign(CENTER);\n           *   text('Click to hide Controls!', 10, 25, 70, 80);\n           * }\n           * function mousePressed() {\n           *   ele.hideControls();\n           *   background(200);\n           *   text('Controls hidden', width / 2, height / 2);\n           * }\n           * </code></div>\n           */\n          _main.default.MediaElement.prototype.hideControls = function() {\n            this.elt.controls = false;\n          };\n\n          /*** SCHEDULE EVENTS ***/\n\n          // Cue inspired by JavaScript setTimeout, and the\n          // Tone.js Transport Timeline Event, MIT License Yotam Mann 2015 tonejs.org\n          var Cue = function Cue(callback, time, id, val) {\n            this.callback = callback;\n            this.time = time;\n            this.id = id;\n            this.val = val;\n          };\n\n          /**\n           * Schedule events to trigger every time a MediaElement\n           * (audio/video) reaches a playback cue point.\n           *\n           * Accepts a callback function, a time (in seconds) at which to trigger\n           * the callback, and an optional parameter for the callback.\n           *\n           * Time will be passed as the first parameter to the callback function,\n           * and param will be the second parameter.\n           *\n           *\n           * @method  addCue\n           * @param {Number}   time     Time in seconds, relative to this media\n           *                             element's playback. For example, to trigger\n           *                             an event every time playback reaches two\n           *                             seconds, pass in the number 2. This will be\n           *                             passed as the first parameter to\n           *                             the callback function.\n           * @param {Function} callback Name of a function that will be\n           *                             called at the given time. The callback will\n           *                             receive time and (optionally) param as its\n           *                             two parameters.\n           * @param {Object} [value]    An object to be passed as the\n           *                             second parameter to the\n           *                             callback function.\n           * @return {Number} id ID of this cue,\n           *                     useful for removeCue(id)\n           * @example\n           * <div><code>\n           * //\n           * //\n           * function setup() {\n           *   noCanvas();\n           *\n           *   let audioEl = createAudio('assets/beat.mp3');\n           *   audioEl.showControls();\n           *\n           *   // schedule three calls to changeBackground\n           *   audioEl.addCue(0.5, changeBackground, color(255, 0, 0));\n           *   audioEl.addCue(1.0, changeBackground, color(0, 255, 0));\n           *   audioEl.addCue(2.5, changeBackground, color(0, 0, 255));\n           *   audioEl.addCue(3.0, changeBackground, color(0, 255, 255));\n           *   audioEl.addCue(4.2, changeBackground, color(255, 255, 0));\n           *   audioEl.addCue(5.0, changeBackground, color(255, 255, 0));\n           * }\n           *\n           * function changeBackground(val) {\n           *   background(val);\n           * }\n           * </code></div>\n           */\n          _main.default.MediaElement.prototype.addCue = function(time, callback, val) {\n            var id = this._cueIDCounter++;\n\n            var cue = new Cue(callback, time, id, val);\n            this._cues.push(cue);\n\n            if (!this.elt.ontimeupdate) {\n              this.elt.ontimeupdate = this._onTimeUpdate.bind(this);\n            }\n\n            return id;\n          };\n\n          /**\n           * Remove a callback based on its ID. The ID is returned by the\n           * addCue method.\n           * @method removeCue\n           * @param  {Number} id ID of the cue, as returned by addCue\n           * @example\n           * <div><code>\n           * let audioEl, id1, id2;\n           * function setup() {\n           *   background(255, 255, 255);\n           *   audioEl = createAudio('assets/beat.mp3');\n           *   audioEl.showControls();\n           *   // schedule five calls to changeBackground\n           *   id1 = audioEl.addCue(0.5, changeBackground, color(255, 0, 0));\n           *   audioEl.addCue(1.0, changeBackground, color(0, 255, 0));\n           *   audioEl.addCue(2.5, changeBackground, color(0, 0, 255));\n           *   audioEl.addCue(3.0, changeBackground, color(0, 255, 255));\n           *   id2 = audioEl.addCue(4.2, changeBackground, color(255, 255, 0));\n           *   text('Click to remove first and last Cue!', 10, 25, 70, 80);\n           * }\n           * function mousePressed() {\n           *   audioEl.removeCue(id1);\n           *   audioEl.removeCue(id2);\n           * }\n           * function changeBackground(val) {\n           *   background(val);\n           * }\n           * </code></div>\n           */\n          _main.default.MediaElement.prototype.removeCue = function(id) {\n            for (var i = 0; i < this._cues.length; i++) {\n              if (this._cues[i].id === id) {\n                console.log(id);\n                this._cues.splice(i, 1);\n              }\n            }\n\n            if (this._cues.length === 0) {\n              this.elt.ontimeupdate = null;\n            }\n          };\n\n          /**\n           * Remove all of the callbacks that had originally been scheduled\n           * via the addCue method.\n           * @method  clearCues\n           * @param  {Number} id ID of the cue, as returned by addCue\n           * @example\n           * <div><code>\n           * let audioEl;\n           * function setup() {\n           *   background(255, 255, 255);\n           *   audioEl = createAudio('assets/beat.mp3');\n           *   //Show the default MediaElement controls, as determined by the web browser\n           *   audioEl.showControls();\n           *   // schedule calls to changeBackground\n           *   background(200);\n           *   text('Click to change Cue!', 10, 25, 70, 80);\n           *   audioEl.addCue(0.5, changeBackground, color(255, 0, 0));\n           *   audioEl.addCue(1.0, changeBackground, color(0, 255, 0));\n           *   audioEl.addCue(2.5, changeBackground, color(0, 0, 255));\n           *   audioEl.addCue(3.0, changeBackground, color(0, 255, 255));\n           *   audioEl.addCue(4.2, changeBackground, color(255, 255, 0));\n           * }\n           * function mousePressed() {\n           *   // here we clear the scheduled callbacks\n           *   audioEl.clearCues();\n           *   // then we add some more callbacks\n           *   audioEl.addCue(1, changeBackground, color(2, 2, 2));\n           *   audioEl.addCue(3, changeBackground, color(255, 255, 0));\n           * }\n           * function changeBackground(val) {\n           *   background(val);\n           * }\n           * </code></div>\n           */\n          _main.default.MediaElement.prototype.clearCues = function() {\n            this._cues = [];\n            this.elt.ontimeupdate = null;\n          };\n\n          // private method that checks for cues to be fired if events\n          // have been scheduled using addCue(callback, time).\n          _main.default.MediaElement.prototype._onTimeUpdate = function() {\n            var playbackTime = this.time();\n\n            for (var i = 0; i < this._cues.length; i++) {\n              var callbackTime = this._cues[i].time;\n              var val = this._cues[i].val;\n\n              if (this._prevTime < callbackTime && callbackTime <= playbackTime) {\n                // pass the scheduled callbackTime as parameter to the callback\n                this._cues[i].callback(val);\n              }\n            }\n\n            this._prevTime = playbackTime;\n          };\n\n          /**\n           * Base class for a file.\n           * Used for Element.drop and createFileInput.\n           *\n           * @class p5.File\n           * @constructor\n           * @param {File} file File that is wrapped\n           */\n          _main.default.File = function(file, pInst) {\n            /**\n             * Underlying File object. All normal File methods can be called on this.\n             *\n             * @property file\n             */\n            this.file = file;\n\n            this._pInst = pInst;\n\n            // Splitting out the file type into two components\n            // This makes determining if image or text etc simpler\n            var typeList = file.type.split('/');\n            /**\n             * File type (image, text, etc.)\n             *\n             * @property type\n             */\n            this.type = typeList[0];\n            /**\n             * File subtype (usually the file extension jpg, png, xml, etc.)\n             *\n             * @property subtype\n             */\n            this.subtype = typeList[1];\n            /**\n             * File name\n             *\n             * @property name\n             */\n            this.name = file.name;\n            /**\n             * File size\n             *\n             * @property size\n             */\n            this.size = file.size;\n\n            /**\n             * URL string containing image data.\n             *\n             * @property data\n             */\n            this.data = undefined;\n          };\n\n          _main.default.File._createLoader = function(theFile, callback) {\n            var reader = new FileReader();\n            reader.onload = function(e) {\n              var p5file = new _main.default.File(theFile);\n              p5file.data = e.target.result;\n              callback(p5file);\n            };\n            return reader;\n          };\n\n          _main.default.File._load = function(f, callback) {\n            // Text or data?\n            // This should likely be improved\n            if (/^text\\//.test(f.type)) {\n              _main.default.File._createLoader(f, callback).readAsText(f);\n            } else if (!/^(video|audio)\\//.test(f.type)) {\n              _main.default.File._createLoader(f, callback).readAsDataURL(f);\n            } else {\n              var file = new _main.default.File(f);\n              file.data = URL.createObjectURL(f);\n              callback(file);\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      67: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Events\n           * @submodule Acceleration\n           * @for p5\n           * @requires core\n           */ /**\n           * The system variable deviceOrientation always contains the orientation of\n           * the device. The value of this variable will either be set 'landscape'\n           * or 'portrait'. If no data is available it will be set to 'undefined'.\n           * either LANDSCAPE or PORTRAIT.\n           *\n           * @property {Constant} deviceOrientation\n           * @readOnly\n           */ _main.default.prototype.deviceOrientation =\n            window.innerWidth / window.innerHeight > 1.0 ? 'landscape' : 'portrait';\n          /**\n           * The system variable accelerationX always contains the acceleration of the\n           * device along the x axis. Value is represented as meters per second squared.\n           *\n           * @property {Number} accelerationX\n           * @readOnly\n           * @example\n           * <div>\n           * <code>\n           * // Move a touchscreen device to register\n           * // acceleration changes.\n           * function draw() {\n           *   background(220, 50);\n           *   fill('magenta');\n           *   ellipse(width / 2, height / 2, accelerationX);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * Magnitude of device acceleration is displayed as ellipse size\n           */\n          _main.default.prototype.accelerationX = 0;\n\n          /**\n           * The system variable accelerationY always contains the acceleration of the\n           * device along the y axis. Value is represented as meters per second squared.\n           *\n           * @property {Number} accelerationY\n           * @readOnly\n           * @example\n           * <div>\n           * <code>\n           * // Move a touchscreen device to register\n           * // acceleration changes.\n           * function draw() {\n           *   background(220, 50);\n           *   fill('magenta');\n           *   ellipse(width / 2, height / 2, accelerationY);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * Magnitude of device acceleration is displayed as ellipse size\n           */\n          _main.default.prototype.accelerationY = 0;\n\n          /**\n           * The system variable accelerationZ always contains the acceleration of the\n           * device along the z axis. Value is represented as meters per second squared.\n           *\n           * @property {Number} accelerationZ\n           * @readOnly\n           *\n           * @example\n           * <div>\n           * <code>\n           * // Move a touchscreen device to register\n           * // acceleration changes.\n           * function draw() {\n           *   background(220, 50);\n           *   fill('magenta');\n           *   ellipse(width / 2, height / 2, accelerationZ);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Magnitude of device acceleration is displayed as ellipse size\n           */\n          _main.default.prototype.accelerationZ = 0;\n\n          /**\n           * The system variable pAccelerationX always contains the acceleration of the\n           * device along the x axis in the frame previous to the current frame. Value\n           * is represented as meters per second squared.\n           *\n           * @property {Number} pAccelerationX\n           * @readOnly\n           */\n          _main.default.prototype.pAccelerationX = 0;\n\n          /**\n           * The system variable pAccelerationY always contains the acceleration of the\n           * device along the y axis in the frame previous to the current frame. Value\n           * is represented as meters per second squared.\n           *\n           * @property {Number} pAccelerationY\n           * @readOnly\n           */\n          _main.default.prototype.pAccelerationY = 0;\n\n          /**\n           * The system variable pAccelerationZ always contains the acceleration of the\n           * device along the z axis in the frame previous to the current frame. Value\n           * is represented as meters per second squared.\n           *\n           * @property {Number} pAccelerationZ\n           * @readOnly\n           */\n          _main.default.prototype.pAccelerationZ = 0;\n\n          /**\n           * _updatePAccelerations updates the pAcceleration values\n           *\n           * @private\n           */\n          _main.default.prototype._updatePAccelerations = function() {\n            this._setProperty('pAccelerationX', this.accelerationX);\n            this._setProperty('pAccelerationY', this.accelerationY);\n            this._setProperty('pAccelerationZ', this.accelerationZ);\n          };\n\n          /**\n           * The system variable rotationX always contains the rotation of the\n           * device along the x axis. If the sketch <a href=\"#/p5/angleMode\">\n           * angleMode()</a> is set to DEGREES, the value will be -180 to 180. If\n           * it is set to RADIANS, the value will be -PI to PI.\n           * <br><br>\n           * Note: The order the rotations are called is important, ie. if used\n           * together, it must be called in the order Z-X-Y or there might be\n           * unexpected behaviour.\n           *\n           * @property {Number} rotationX\n           * @readOnly\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   //rotateZ(radians(rotationZ));\n           *   rotateX(radians(rotationX));\n           *   //rotateY(radians(rotationY));\n           *   box(200, 200, 200);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * red horizontal line right, green vertical line bottom. black background.\n           */\n          _main.default.prototype.rotationX = 0;\n\n          /**\n           * The system variable rotationY always contains the rotation of the\n           * device along the y axis. If the sketch <a href=\"#/p5/angleMode\">\n           * angleMode()</a> is set to DEGREES, the value will be -90 to 90. If\n           * it is set to RADIANS, the value will be -PI/2 to PI/2.\n           * <br><br>\n           * Note: The order the rotations are called is important, ie. if used\n           * together, it must be called in the order Z-X-Y or there might be\n           * unexpected behaviour.\n           *\n           * @property {Number} rotationY\n           * @readOnly\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   //rotateZ(radians(rotationZ));\n           *   //rotateX(radians(rotationX));\n           *   rotateY(radians(rotationY));\n           *   box(200, 200, 200);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * red horizontal line right, green vertical line bottom. black background.\n           */\n          _main.default.prototype.rotationY = 0;\n\n          /**\n           * The system variable rotationZ always contains the rotation of the\n           * device along the z axis. If the sketch <a href=\"#/p5/angleMode\">\n           * angleMode()</a> is set to DEGREES, the value will be 0 to 360. If\n           * it is set to RADIANS, the value will be 0 to 2*PI.\n           * <br><br>\n           * Unlike rotationX and rotationY, this variable is available for devices\n           * with a built-in compass only.\n           * <br><br>\n           * Note: The order the rotations are called is important, ie. if used\n           * together, it must be called in the order Z-X-Y or there might be\n           * unexpected behaviour.\n           *\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   rotateZ(radians(rotationZ));\n           *   //rotateX(radians(rotationX));\n           *   //rotateY(radians(rotationY));\n           *   box(200, 200, 200);\n           * }\n           * </code>\n           * </div>\n           *\n           * @property {Number} rotationZ\n           * @readOnly\n           *\n           * @alt\n           * red horizontal line right, green vertical line bottom. black background.\n           */\n          _main.default.prototype.rotationZ = 0;\n\n          /**\n           * The system variable pRotationX always contains the rotation of the\n           * device along the x axis in the frame previous to the current frame.\n           * If the sketch <a href=\"#/p5/angleMode\"> angleMode()</a> is set to DEGREES,\n           * the value will be -180 to 180. If it is set to RADIANS, the value will\n           * be -PI to PI.\n           * <br><br>\n           * pRotationX can also be used with rotationX to determine the rotate\n           * direction of the device along the X-axis.\n           * @example\n           * <div class='norender'>\n           * <code>\n           * // A simple if statement looking at whether\n           * // rotationX - pRotationX < 0 is true or not will be\n           * // sufficient for determining the rotate direction\n           * // in most cases.\n           *\n           * // Some extra logic is needed to account for cases where\n           * // the angles wrap around.\n           * let rotateDirection = 'clockwise';\n           *\n           * // Simple range conversion to make things simpler.\n           * // This is not absolutely necessary but the logic\n           * // will be different in that case.\n           *\n           * let rX = rotationX + 180;\n           * let pRX = pRotationX + 180;\n           *\n           * if ((rX - pRX > 0 && rX - pRX < 270) || rX - pRX < -270) {\n           *   rotateDirection = 'clockwise';\n           * } else if (rX - pRX < 0 || rX - pRX > 270) {\n           *   rotateDirection = 'counter-clockwise';\n           * }\n           *\n           * print(rotateDirection);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * no image to display.\n           *\n           *\n           * @property {Number} pRotationX\n           * @readOnly\n           */\n          _main.default.prototype.pRotationX = 0;\n\n          /**\n           * The system variable pRotationY always contains the rotation of the\n           * device along the y axis in the frame previous to the current frame.\n           * If the sketch <a href=\"#/p5/angleMode\"> angleMode()</a> is set to DEGREES,\n           * the value will be -90 to 90. If it is set to RADIANS, the value will\n           * be -PI/2 to PI/2.\n           * <br><br>\n           * pRotationY can also be used with rotationY to determine the rotate\n           * direction of the device along the Y-axis.\n           * @example\n           * <div class='norender'>\n           * <code>\n           * // A simple if statement looking at whether\n           * // rotationY - pRotationY < 0 is true or not will be\n           * // sufficient for determining the rotate direction\n           * // in most cases.\n           *\n           * // Some extra logic is needed to account for cases where\n           * // the angles wrap around.\n           * let rotateDirection = 'clockwise';\n           *\n           * // Simple range conversion to make things simpler.\n           * // This is not absolutely necessary but the logic\n           * // will be different in that case.\n           *\n           * let rY = rotationY + 180;\n           * let pRY = pRotationY + 180;\n           *\n           * if ((rY - pRY > 0 && rY - pRY < 270) || rY - pRY < -270) {\n           *   rotateDirection = 'clockwise';\n           * } else if (rY - pRY < 0 || rY - pRY > 270) {\n           *   rotateDirection = 'counter-clockwise';\n           * }\n           * print(rotateDirection);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * no image to display.\n           *\n           *\n           * @property {Number} pRotationY\n           * @readOnly\n           */\n          _main.default.prototype.pRotationY = 0;\n\n          /**\n           * The system variable pRotationZ always contains the rotation of the\n           * device along the z axis in the frame previous to the current frame.\n           * If the sketch <a href=\"#/p5/angleMode\"> angleMode()</a> is set to DEGREES,\n           * the value will be 0 to 360. If it is set to RADIANS, the value will\n           * be 0 to 2*PI.\n           * <br><br>\n           * pRotationZ can also be used with rotationZ to determine the rotate\n           * direction of the device along the Z-axis.\n           * @example\n           * <div class='norender'>\n           * <code>\n           * // A simple if statement looking at whether\n           * // rotationZ - pRotationZ < 0 is true or not will be\n           * // sufficient for determining the rotate direction\n           * // in most cases.\n           *\n           * // Some extra logic is needed to account for cases where\n           * // the angles wrap around.\n           * let rotateDirection = 'clockwise';\n           *\n           * if (\n           *   (rotationZ - pRotationZ > 0 && rotationZ - pRotationZ < 270) ||\n           *   rotationZ - pRotationZ < -270\n           * ) {\n           *   rotateDirection = 'clockwise';\n           * } else if (rotationZ - pRotationZ < 0 || rotationZ - pRotationZ > 270) {\n           *   rotateDirection = 'counter-clockwise';\n           * }\n           * print(rotateDirection);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * no image to display.\n           *\n           *\n           * @property {Number} pRotationZ\n           * @readOnly\n           */\n          _main.default.prototype.pRotationZ = 0;\n\n          var startAngleX = 0;\n          var startAngleY = 0;\n          var startAngleZ = 0;\n\n          var rotateDirectionX = 'clockwise';\n          var rotateDirectionY = 'clockwise';\n          var rotateDirectionZ = 'clockwise';\n\n          _main.default.prototype.pRotateDirectionX = undefined;\n          _main.default.prototype.pRotateDirectionY = undefined;\n          _main.default.prototype.pRotateDirectionZ = undefined;\n\n          _main.default.prototype._updatePRotations = function() {\n            this._setProperty('pRotationX', this.rotationX);\n            this._setProperty('pRotationY', this.rotationY);\n            this._setProperty('pRotationZ', this.rotationZ);\n          };\n\n          /**\n           * When a device is rotated, the axis that triggers the <a href=\"#/p5/deviceTurned\">deviceTurned()</a>\n           * method is stored in the turnAxis variable. The turnAxis variable is only defined within\n           * the scope of deviceTurned().\n           * @property {String} turnAxis\n           * @readOnly\n           * @example\n           * <div>\n           * <code>\n           * // Run this example on a mobile device\n           * // Rotate the device by 90 degrees in the\n           * // X-axis to change the value.\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function deviceTurned() {\n           *   if (turnAxis === 'X') {\n           *     if (value === 0) {\n           *       value = 255;\n           *     } else if (value === 255) {\n           *       value = 0;\n           *     }\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 black rect in center of canvas. turns white on mobile when device turns\n           * 50x50 black rect in center of canvas. turns white on mobile when x-axis turns\n           */\n          _main.default.prototype.turnAxis = undefined;\n\n          var move_threshold = 0.5;\n          var shake_threshold = 30;\n\n          /**\n           * The <a href=\"#/p5/setMoveThreshold\">setMoveThreshold()</a> function is used to set the movement threshold for\n           * the <a href=\"#/p5/deviceMoved\">deviceMoved()</a> function. The default threshold is set to 0.5.\n           *\n           * @method setMoveThreshold\n           * @param {number} value The threshold value\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Run this example on a mobile device\n           * // You will need to move the device incrementally further\n           * // the closer the square's color gets to white in order to change the value.\n           *\n           * let value = 0;\n           * let threshold = 0.5;\n           * function setup() {\n           *   setMoveThreshold(threshold);\n           * }\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function deviceMoved() {\n           *   value = value + 5;\n           *   threshold = threshold + 0.1;\n           *   if (value > 255) {\n           *     value = 0;\n           *     threshold = 30;\n           *   }\n           *   setMoveThreshold(threshold);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 black rect in center of canvas. turns white on mobile when device moves\n           */\n\n          _main.default.prototype.setMoveThreshold = function(val) {\n            _main.default._validateParameters('setMoveThreshold', arguments);\n            move_threshold = val;\n          };\n\n          /**\n           * The <a href=\"#/p5/setShakeThreshold\">setShakeThreshold()</a> function is used to set the movement threshold for\n           * the <a href=\"#/p5/deviceShaken\">deviceShaken()</a> function. The default threshold is set to 30.\n           *\n           * @method setShakeThreshold\n           * @param {number} value The threshold value\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Run this example on a mobile device\n           * // You will need to shake the device more firmly\n           * // the closer the box's fill gets to white in order to change the value.\n           *\n           * let value = 0;\n           * let threshold = 30;\n           * function setup() {\n           *   setShakeThreshold(threshold);\n           * }\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function deviceMoved() {\n           *   value = value + 5;\n           *   threshold = threshold + 5;\n           *   if (value > 255) {\n           *     value = 0;\n           *     threshold = 30;\n           *   }\n           *   setShakeThreshold(threshold);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 black rect in center of canvas. turns white on mobile when device\n           * is being shaked\n           */\n\n          _main.default.prototype.setShakeThreshold = function(val) {\n            _main.default._validateParameters('setShakeThreshold', arguments);\n            shake_threshold = val;\n          };\n\n          /**\n           * The <a href=\"#/p5/deviceMoved\">deviceMoved()</a> function is called when the device is moved by more than\n           * the threshold value along X, Y or Z axis. The default threshold is set to 0.5.\n           * The threshold value can be changed using <a href=\"https://p5js.org/reference/#/p5/setMoveThreshold\">setMoveThreshold()</a>.\n           *\n           * @method deviceMoved\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Run this example on a mobile device\n           * // Move the device around\n           * // to change the value.\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function deviceMoved() {\n           *   value = value + 5;\n           *   if (value > 255) {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 black rect in center of canvas. turns white on mobile when device moves\n           *\n           */\n\n          /**\n           * The <a href=\"#/p5/deviceTurned\">deviceTurned()</a> function is called when the device rotates by\n           * more than 90 degrees continuously.\n           * <br><br>\n           * The axis that triggers the <a href=\"#/p5/deviceTurned\">deviceTurned()</a> method is stored in the turnAxis\n           * variable. The <a href=\"#/p5/deviceTurned\">deviceTurned()</a> method can be locked to trigger on any axis:\n           * X, Y or Z by comparing the turnAxis variable to 'X', 'Y' or 'Z'.\n           *\n           * @method deviceTurned\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Run this example on a mobile device\n           * // Rotate the device by 90 degrees\n           * // to change the value.\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function deviceTurned() {\n           *   if (value === 0) {\n           *     value = 255;\n           *   } else if (value === 255) {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * // Run this example on a mobile device\n           * // Rotate the device by 90 degrees in the\n           * // X-axis to change the value.\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function deviceTurned() {\n           *   if (turnAxis === 'X') {\n           *     if (value === 0) {\n           *       value = 255;\n           *     } else if (value === 255) {\n           *       value = 0;\n           *     }\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 black rect in center of canvas. turns white on mobile when device turns\n           * 50x50 black rect in center of canvas. turns white on mobile when x-axis turns\n           *\n           */\n\n          /**\n           * The <a href=\"#/p5/deviceShaken\">deviceShaken()</a> function is called when the device total acceleration\n           * changes of accelerationX and accelerationY values is more than\n           * the threshold value. The default threshold is set to 30.\n           * The threshold value can be changed using <a href=\"https://p5js.org/reference/#/p5/setShakeThreshold\">setShakeThreshold()</a>.\n           *\n           * @method deviceShaken\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Run this example on a mobile device\n           * // Shake the device to change the value.\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function deviceShaken() {\n           *   value = value + 5;\n           *   if (value > 255) {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 black rect in center of canvas. turns white on mobile when device shakes\n           *\n           */\n\n          _main.default.prototype._ondeviceorientation = function(e) {\n            this._updatePRotations();\n            if (this._angleMode === constants.radians) {\n              e.beta = e.beta * (_PI / 180.0);\n              e.gamma = e.gamma * (_PI / 180.0);\n              e.alpha = e.alpha * (_PI / 180.0);\n            }\n            this._setProperty('rotationX', e.beta);\n            this._setProperty('rotationY', e.gamma);\n            this._setProperty('rotationZ', e.alpha);\n            this._handleMotion();\n          };\n          _main.default.prototype._ondevicemotion = function(e) {\n            this._updatePAccelerations();\n            this._setProperty('accelerationX', e.acceleration.x * 2);\n            this._setProperty('accelerationY', e.acceleration.y * 2);\n            this._setProperty('accelerationZ', e.acceleration.z * 2);\n            this._handleMotion();\n          };\n          _main.default.prototype._handleMotion = function() {\n            if (window.orientation === 90 || window.orientation === -90) {\n              this._setProperty('deviceOrientation', 'landscape');\n            } else if (window.orientation === 0) {\n              this._setProperty('deviceOrientation', 'portrait');\n            } else if (window.orientation === undefined) {\n              this._setProperty('deviceOrientation', 'undefined');\n            }\n            var deviceMoved = this.deviceMoved || window.deviceMoved;\n            if (typeof deviceMoved === 'function') {\n              if (\n                Math.abs(this.accelerationX - this.pAccelerationX) > move_threshold ||\n                Math.abs(this.accelerationY - this.pAccelerationY) > move_threshold ||\n                Math.abs(this.accelerationZ - this.pAccelerationZ) > move_threshold\n              ) {\n                deviceMoved();\n              }\n            }\n            var deviceTurned = this.deviceTurned || window.deviceTurned;\n            if (typeof deviceTurned === 'function') {\n              // The angles given by rotationX etc is from range -180 to 180.\n              // The following will convert them to 0 to 360 for ease of calculation\n              // of cases when the angles wrapped around.\n              // _startAngleX will be converted back at the end and updated.\n              var wRX = this.rotationX + 180;\n              var wPRX = this.pRotationX + 180;\n              var wSAX = startAngleX + 180;\n              if ((wRX - wPRX > 0 && wRX - wPRX < 270) || wRX - wPRX < -270) {\n                rotateDirectionX = 'clockwise';\n              } else if (wRX - wPRX < 0 || wRX - wPRX > 270) {\n                rotateDirectionX = 'counter-clockwise';\n              }\n              if (rotateDirectionX !== this.pRotateDirectionX) {\n                wSAX = wRX;\n              }\n              if (Math.abs(wRX - wSAX) > 90 && Math.abs(wRX - wSAX) < 270) {\n                wSAX = wRX;\n                this._setProperty('turnAxis', 'X');\n                deviceTurned();\n              }\n              this.pRotateDirectionX = rotateDirectionX;\n              startAngleX = wSAX - 180;\n\n              // Y-axis is identical to X-axis except for changing some names.\n              var wRY = this.rotationY + 180;\n              var wPRY = this.pRotationY + 180;\n              var wSAY = startAngleY + 180;\n              if ((wRY - wPRY > 0 && wRY - wPRY < 270) || wRY - wPRY < -270) {\n                rotateDirectionY = 'clockwise';\n              } else if (wRY - wPRY < 0 || wRY - this.pRotationY > 270) {\n                rotateDirectionY = 'counter-clockwise';\n              }\n              if (rotateDirectionY !== this.pRotateDirectionY) {\n                wSAY = wRY;\n              }\n              if (Math.abs(wRY - wSAY) > 90 && Math.abs(wRY - wSAY) < 270) {\n                wSAY = wRY;\n                this._setProperty('turnAxis', 'Y');\n                deviceTurned();\n              }\n              this.pRotateDirectionY = rotateDirectionY;\n              startAngleY = wSAY - 180;\n\n              // Z-axis is already in the range 0 to 360\n              // so no conversion is needed.\n              if (\n                (this.rotationZ - this.pRotationZ > 0 &&\n                  this.rotationZ - this.pRotationZ < 270) ||\n                this.rotationZ - this.pRotationZ < -270\n              ) {\n                rotateDirectionZ = 'clockwise';\n              } else if (\n                this.rotationZ - this.pRotationZ < 0 ||\n                this.rotationZ - this.pRotationZ > 270\n              ) {\n                rotateDirectionZ = 'counter-clockwise';\n              }\n              if (rotateDirectionZ !== this.pRotateDirectionZ) {\n                startAngleZ = this.rotationZ;\n              }\n              if (\n                Math.abs(this.rotationZ - startAngleZ) > 90 &&\n                Math.abs(this.rotationZ - startAngleZ) < 270\n              ) {\n                startAngleZ = this.rotationZ;\n                this._setProperty('turnAxis', 'Z');\n                deviceTurned();\n              }\n              this.pRotateDirectionZ = rotateDirectionZ;\n              this._setProperty('turnAxis', undefined);\n            }\n            var deviceShaken = this.deviceShaken || window.deviceShaken;\n            if (typeof deviceShaken === 'function') {\n              var accelerationChangeX;\n              var accelerationChangeY;\n              // Add accelerationChangeZ if acceleration change on Z is needed\n              if (this.pAccelerationX !== null) {\n                accelerationChangeX = Math.abs(this.accelerationX - this.pAccelerationX);\n                accelerationChangeY = Math.abs(this.accelerationY - this.pAccelerationY);\n              }\n              if (accelerationChangeX + accelerationChangeY > shake_threshold) {\n                deviceShaken();\n              }\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, '../core/main': 50 }\n      ],\n      68: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Events\n           * @submodule Keyboard\n           * @for p5\n           * @requires core\n           */ /**\n           * The boolean system variable <a href=\"#/p5/keyIsPressed\">keyIsPressed</a> is true if any key is pressed\n           * and false if no keys are pressed.\n           *\n           * @property {Boolean} keyIsPressed\n           * @readOnly\n           * @example\n           * <div>\n           * <code>\n           * function draw() {\n           *   if (keyIsPressed === true) {\n           *     fill(0);\n           *   } else {\n           *     fill(255);\n           *   }\n           *   rect(25, 25, 50, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 white rect that turns black on keypress.\n           *\n           */ _main.default.prototype.isKeyPressed = false;\n          _main.default.prototype.keyIsPressed = false; // khan\n          /**\n           * The system variable key always contains the value of the most recent\n           * key on the keyboard that was typed. To get the proper capitalization, it\n           * is best to use it within <a href=\"#/p5/keyTyped\">keyTyped()</a>. For non-ASCII keys, use the <a href=\"#/p5/keyCode\">keyCode</a>\n           * variable.\n           *\n           * @property {String} key\n           * @readOnly\n           * @example\n           * <div><code>\n           * // Click any key to display it!\n           * // (Not Guaranteed to be Case Sensitive)\n           * function setup() {\n           *   fill(245, 123, 158);\n           *   textSize(50);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   text(key, 33, 65); // Display last key pressed.\n           * }\n           * </code></div>\n           *\n           * @alt\n           * canvas displays any key value that is pressed in pink font.\n           *\n           */\n          _main.default.prototype.key = '';\n\n          /**\n           * The variable keyCode is used to detect special keys such as BACKSPACE,\n           * DELETE, ENTER, RETURN, TAB, ESCAPE, SHIFT, CONTROL, OPTION, ALT, UP_ARROW,\n           * DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW.\n           * You can also check for custom keys by looking up the keyCode of any key\n           * on a site like this: <a href=\"http://keycode.info/\">keycode.info</a>.\n           *\n           * @property {Integer} keyCode\n           * @readOnly\n           * @example\n           * <div><code>\n           * let fillVal = 126;\n           * function draw() {\n           *   fill(fillVal);\n           *   rect(25, 25, 50, 50);\n           * }\n           *\n           * function keyPressed() {\n           *   if (keyCode === UP_ARROW) {\n           *     fillVal = 255;\n           *   } else if (keyCode === DOWN_ARROW) {\n           *     fillVal = 0;\n           *   }\n           *   return false; // prevent default\n           * }\n           * </code></div>\n           * <div><code>\n           * function draw() {}\n           * function keyPressed() {\n           *   background('yellow');\n           *   text(`${key} ${keyCode}`, 10, 40);\n           *   print(key, ' ', keyCode);\n           *   return false; // prevent default\n           * }\n           * </code></div>\n           * @alt\n           * Grey rect center. turns white when up arrow pressed and black when down\n           * Display key pressed and its keyCode in a yellow box\n           */\n          _main.default.prototype.keyCode = 0;\n\n          /**\n           * The <a href=\"#/p5/keyPressed\">keyPressed()</a> function is called once every time a key is pressed. The\n           * keyCode for the key that was pressed is stored in the <a href=\"#/p5/keyCode\">keyCode</a> variable.\n           * <br><br>\n           * For non-ASCII keys, use the keyCode variable. You can check if the keyCode\n           * equals BACKSPACE, DELETE, ENTER, RETURN, TAB, ESCAPE, SHIFT, CONTROL,\n           * OPTION, ALT, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW.\n           * <br><br>\n           * For ASCII keys, the key that was pressed is stored in the key variable. However, it\n           * does not distinguish between uppercase and lowercase. For this reason, it\n           * is recommended to use <a href=\"#/p5/keyTyped\">keyTyped()</a> to read the key variable, in which the\n           * case of the variable will be distinguished.\n           * <br><br>\n           * Because of how operating systems handle key repeats, holding down a key\n           * may cause multiple calls to <a href=\"#/p5/keyTyped\">keyTyped()</a> (and <a href=\"#/p5/keyReleased\">keyReleased()</a> as well). The\n           * rate of repeat is set by the operating system and how each computer is\n           * configured.<br><br>\n           * Browsers may have different default\n           * behaviors attached to various key events. To prevent any default\n           * behavior for this event, add \"return false\" to the end of the method.\n           *\n           * @method keyPressed\n           * @example\n           * <div>\n           * <code>\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function keyPressed() {\n           *   if (value === 0) {\n           *     value = 255;\n           *   } else {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function keyPressed() {\n           *   if (keyCode === LEFT_ARROW) {\n           *     value = 255;\n           *   } else if (keyCode === RIGHT_ARROW) {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           * <div class=\"norender\">\n           * <code>\n           * function keyPressed() {\n           *   // Do something\n           *   return false; // prevent any default behaviour\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black rect center. turns white when key pressed and black when released\n           * black rect center. turns white when left arrow pressed and black when right.\n           *\n           */\n          _main.default.prototype._onkeydown = function(e) {\n            if (this._downKeys[e.which]) {\n              // prevent multiple firings\n              return;\n            }\n            this._setProperty('isKeyPressed', true);\n            this._setProperty('keyIsPressed', true);\n            this._setProperty('keyCode', e.which);\n            this._downKeys[e.which] = true;\n            this._setProperty('key', e.key || String.fromCharCode(e.which) || e.which);\n            var keyPressed = this.keyPressed || window.keyPressed;\n            if (typeof keyPressed === 'function' && !e.charCode) {\n              var executeDefault = keyPressed(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            }\n          };\n          /**\n           * The <a href=\"#/p5/keyReleased\">keyReleased()</a> function is called once every time a key is released.\n           * See <a href=\"#/p5/key\">key</a> and <a href=\"#/p5/keyCode\">keyCode</a> for more information.<br><br>\n           * Browsers may have different default\n           * behaviors attached to various key events. To prevent any default\n           * behavior for this event, add \"return false\" to the end of the method.\n           *\n           * @method keyReleased\n           * @example\n           * <div>\n           * <code>\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function keyReleased() {\n           *   if (value === 0) {\n           *     value = 255;\n           *   } else {\n           *     value = 0;\n           *   }\n           *   return false; // prevent any default behavior\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black rect center. turns white when key pressed and black when pressed again\n           *\n           */\n          _main.default.prototype._onkeyup = function(e) {\n            var keyReleased = this.keyReleased || window.keyReleased;\n            this._downKeys[e.which] = false;\n\n            if (!this._areDownKeys()) {\n              this._setProperty('isKeyPressed', false);\n              this._setProperty('keyIsPressed', false);\n            }\n\n            this._setProperty('_lastKeyCodeTyped', null);\n\n            this._setProperty('key', e.key || String.fromCharCode(e.which) || e.which);\n            this._setProperty('keyCode', e.which);\n            if (typeof keyReleased === 'function') {\n              var executeDefault = keyReleased(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            }\n          };\n\n          /**\n           * The <a href=\"#/p5/keyTyped\">keyTyped()</a> function is called once every time a key is pressed, but\n           * action keys such as Backspace, Delete, Ctrl, Shift, and Alt are ignored. If you are trying to detect\n           * a keyCode for one of these keys, use the <a href=\"#/p5/keyPressed\">keyPressed()</a> function instead.\n           * The most recent key typed will be stored in the key variable.\n           * <br><br>\n           * Because of how operating systems handle key repeats, holding down a key\n           * will cause multiple calls to <a href=\"#/p5/keyTyped\">keyTyped()</a> (and <a href=\"#/p5/keyReleased\">keyReleased()</a> as well). The\n           * rate of repeat is set by the operating system and how each computer is\n           * configured.<br><br>\n           * Browsers may have different default behaviors attached to various key\n           * events. To prevent any default behavior for this event, add \"return false\"\n           * to the end of the method.\n           *\n           * @method keyTyped\n           * @example\n           * <div>\n           * <code>\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function keyTyped() {\n           *   if (key === 'a') {\n           *     value = 255;\n           *   } else if (key === 'b') {\n           *     value = 0;\n           *   }\n           *   // uncomment to prevent any default behavior\n           *   // return false;\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black rect center. turns white when 'a' key typed and black when 'b' pressed\n           *\n           */\n          _main.default.prototype._onkeypress = function(e) {\n            if (e.which === this._lastKeyCodeTyped) {\n              // prevent multiple firings\n              return;\n            }\n            this._setProperty('_lastKeyCodeTyped', e.which); // track last keyCode\n            this._setProperty('key', String.fromCharCode(e.which));\n            var keyTyped = this.keyTyped || window.keyTyped;\n            if (typeof keyTyped === 'function') {\n              var executeDefault = keyTyped(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            }\n          };\n          /**\n           * The onblur function is called when the user is no longer focused\n           * on the p5 element. Because the keyup events will not fire if the user is\n           * not focused on the element we must assume all keys currently down have\n           * been released.\n           */\n          _main.default.prototype._onblur = function(e) {\n            this._downKeys = {};\n          };\n\n          /**\n           * The <a href=\"#/p5/keyIsDown\">keyIsDown()</a> function checks if the key is currently down, i.e. pressed.\n           * It can be used if you have an object that moves, and you want several keys\n           * to be able to affect its behaviour simultaneously, such as moving a\n           * sprite diagonally. You can put in any number representing the keyCode of\n           * the key, or use any of the variable <a href=\"#/p5/keyCode\">keyCode</a> names listed\n           * <a href=\"http://p5js.org/reference/#p5/keyCode\">here</a>.\n           *\n           * @method keyIsDown\n           * @param {Number}          code The key to check for.\n           * @return {Boolean}        whether key is down or not\n           * @example\n           * <div><code>\n           * let x = 100;\n           * let y = 100;\n           *\n           * function setup() {\n           *   createCanvas(512, 512);\n           *   fill(255, 0, 0);\n           * }\n           *\n           * function draw() {\n           *   if (keyIsDown(LEFT_ARROW)) {\n           *     x -= 5;\n           *   }\n           *\n           *   if (keyIsDown(RIGHT_ARROW)) {\n           *     x += 5;\n           *   }\n           *\n           *   if (keyIsDown(UP_ARROW)) {\n           *     y -= 5;\n           *   }\n           *\n           *   if (keyIsDown(DOWN_ARROW)) {\n           *     y += 5;\n           *   }\n           *\n           *   clear();\n           *   ellipse(x, y, 50, 50);\n           * }\n           * </code></div>\n           *\n           * <div><code>\n           * let diameter = 50;\n           *\n           * function setup() {\n           *   createCanvas(512, 512);\n           * }\n           *\n           * function draw() {\n           *   // 107 and 187 are keyCodes for \"+\"\n           *   if (keyIsDown(107) || keyIsDown(187)) {\n           *     diameter += 1;\n           *   }\n           *\n           *   // 109 and 189 are keyCodes for \"-\"\n           *   if (keyIsDown(109) || keyIsDown(189)) {\n           *     diameter -= 1;\n           *   }\n           *\n           *   clear();\n           *   fill(255, 0, 0);\n           *   ellipse(50, 50, diameter, diameter);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * 50x50 red ellipse moves left, right, up and down with arrow presses.\n           * 50x50 red ellipse gets bigger or smaller when + or - are pressed.\n           *\n           */\n          _main.default.prototype.keyIsDown = function(code) {\n            _main.default._validateParameters('keyIsDown', arguments);\n            return this._downKeys[code] || false;\n          };\n\n          /**\n    * The _areDownKeys function returns a boolean true if any keys pressed\n    * and a false if no keys are currently pressed.\n   \n    * Helps avoid instances where multiple keys are pressed simultaneously and\n    * releasing a single key will then switch the\n    * keyIsPressed property to true.\n    * @private\n   **/\n          _main.default.prototype._areDownKeys = function() {\n            for (var key in this._downKeys) {\n              if (this._downKeys.hasOwnProperty(key) && this._downKeys[key] === true) {\n                return true;\n              }\n            }\n            return false;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      69: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Events\n           * @submodule Mouse\n           * @for p5\n           * @requires core\n           * @requires constants\n           */ /**\n           *\n           * The variable movedX contains the horizontal movement of the mouse since the last frame\n           * @property {Number} movedX\n           * @readOnly\n           * @example\n           * <div class=\"notest\">\n           * <code>\n           * let x = 50;\n           * function setup() {\n           *   rectMode(CENTER);\n           * }\n           *\n           * function draw() {\n           *   if (x > 48) {\n           *     x -= 2;\n           *   } else if (x < 48) {\n           *     x += 2;\n           *   }\n           *   x += floor(movedX / 5);\n           *   background(237, 34, 93);\n           *   fill(0);\n           *   rect(x, 50, 50, 50);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * box moves left and right according to mouse movement then slowly back towards the center\n           *\n           */ _main.default.prototype.movedX = 0;\n          /**\n           * The variable movedY contains the vertical movement of the mouse since the last frame\n           * @property {Number} movedY\n           * @readOnly\n           * @example\n           * <div class=\"notest\">\n           * <code>\n           * let y = 50;\n           * function setup() {\n           *   rectMode(CENTER);\n           * }\n           *\n           * function draw() {\n           *   if (y > 48) {\n           *     y -= 2;\n           *   } else if (y < 48) {\n           *     y += 2;\n           *   }\n           *   y += floor(movedY / 5);\n           *   background(237, 34, 93);\n           *   fill(0);\n           *   rect(y, 50, 50, 50);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * box moves up and down according to mouse movement then slowly back towards the center\n           *\n           */ _main.default.prototype.movedY = 0;\n          /*\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               * This is a flag which is false until the first time\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               * we receive a mouse event. The pmouseX and pmouseY\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               * values will match the mouseX and mouseY values until\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               * this interaction takes place.\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               */\n          _main.default.prototype._hasMouseInteracted = false;\n\n          /**\n           * The system variable mouseX always contains the current horizontal\n           * position of the mouse, relative to (0, 0) of the canvas. The value at\n           * the top-left corner is (0, 0) for 2-D and (-width/2, -height/2) for WebGL.\n           * If touch is used instead of mouse input, mouseX will hold the x value\n           * of the most recent touch point.\n           *\n           * @property {Number} mouseX\n           * @readOnly\n           *\n           * @example\n           * <div>\n           * <code>\n           * // Move the mouse across the canvas\n           * function draw() {\n           *   background(244, 248, 252);\n           *   line(mouseX, 0, mouseX, 100);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * horizontal black line moves left and right with mouse x-position\n           *\n           */\n          _main.default.prototype.mouseX = 0;\n\n          /**\n           * The system variable mouseY always contains the current vertical\n           * position of the mouse, relative to (0, 0) of the canvas. The value at\n           * the top-left corner is (0, 0) for 2-D and (-width/2, -height/2) for WebGL.\n           * If touch is used instead of mouse input, mouseY will hold the y value\n           * of the most recent touch point.\n           *\n           * @property {Number} mouseY\n           * @readOnly\n           *\n           * @example\n           * <div>\n           * <code>\n           * // Move the mouse across the canvas\n           * function draw() {\n           *   background(244, 248, 252);\n           *   line(0, mouseY, 100, mouseY);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * vertical black line moves up and down with mouse y-position\n           *\n           */\n          _main.default.prototype.mouseY = 0;\n\n          /**\n           * The system variable pmouseX always contains the horizontal position of\n           * the mouse or finger in the frame previous to the current frame, relative to\n           * (0, 0) of the canvas. The value at the top-left corner is (0, 0) for 2-D and\n           * (-width/2, -height/2) for WebGL. Note: pmouseX will be reset to the current mouseX\n           * value at the start of each touch event.\n           *\n           * @property {Number} pmouseX\n           * @readOnly\n           *\n           * @example\n           * <div>\n           * <code>\n           * // Move the mouse across the canvas to leave a trail\n           * function setup() {\n           *   //slow down the frameRate to make it more visible\n           *   frameRate(10);\n           * }\n           *\n           * function draw() {\n           *   background(244, 248, 252);\n           *   line(mouseX, mouseY, pmouseX, pmouseY);\n           *   print(pmouseX + ' -> ' + mouseX);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * line trail is created from cursor movements. faster movement make longer line.\n           *\n           */\n          _main.default.prototype.pmouseX = 0;\n\n          /**\n           * The system variable pmouseY always contains the vertical position of\n           * the mouse or finger in the frame previous to the current frame, relative to\n           * (0, 0) of the canvas. The value at the top-left corner is (0, 0) for 2-D and\n           * (-width/2, -height/2) for WebGL. Note: pmouseY will be reset to the current mouseY\n           * value at the start of each touch event.\n           *\n           * @property {Number} pmouseY\n           * @readOnly\n           *\n           * @example\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(237, 34, 93);\n           *   fill(0);\n           *   //draw a square only if the mouse is not moving\n           *   if (mouseY === pmouseY && mouseX === pmouseX) {\n           *     rect(20, 20, 60, 60);\n           *   }\n           *\n           *   print(pmouseY + ' -> ' + mouseY);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 60x60 black rect center, fuchsia background. rect flickers on mouse movement\n           *\n           */\n          _main.default.prototype.pmouseY = 0;\n\n          /**\n           * The system variable winMouseX always contains the current horizontal\n           * position of the mouse, relative to (0, 0) of the window.\n           *\n           * @property {Number} winMouseX\n           * @readOnly\n           *\n           * @example\n           * <div>\n           * <code>\n           * let myCanvas;\n           *\n           * function setup() {\n           *   //use a variable to store a pointer to the canvas\n           *   myCanvas = createCanvas(100, 100);\n           *   let body = document.getElementsByTagName('body')[0];\n           *   myCanvas.parent(body);\n           * }\n           *\n           * function draw() {\n           *   background(237, 34, 93);\n           *   fill(0);\n           *\n           *   //move the canvas to the horizontal mouse position\n           *   //relative to the window\n           *   myCanvas.position(winMouseX + 1, windowHeight / 2);\n           *\n           *   //the y of the square is relative to the canvas\n           *   rect(20, mouseY, 60, 60);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 60x60 black rect y moves with mouse y and fuchsia canvas moves with mouse x\n           *\n           */\n          _main.default.prototype.winMouseX = 0;\n\n          /**\n           * The system variable winMouseY always contains the current vertical\n           * position of the mouse, relative to (0, 0) of the window.\n           *\n           * @property {Number} winMouseY\n           * @readOnly\n           *\n           * @example\n           * <div>\n           * <code>\n           * let myCanvas;\n           *\n           * function setup() {\n           *   //use a variable to store a pointer to the canvas\n           *   myCanvas = createCanvas(100, 100);\n           *   let body = document.getElementsByTagName('body')[0];\n           *   myCanvas.parent(body);\n           * }\n           *\n           * function draw() {\n           *   background(237, 34, 93);\n           *   fill(0);\n           *\n           *   //move the canvas to the vertical mouse position\n           *   //relative to the window\n           *   myCanvas.position(windowWidth / 2, winMouseY + 1);\n           *\n           *   //the x of the square is relative to the canvas\n           *   rect(mouseX, 20, 60, 60);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 60x60 black rect x moves with mouse x and fuchsia canvas y moves with mouse y\n           *\n           */\n          _main.default.prototype.winMouseY = 0;\n\n          /**\n           * The system variable pwinMouseX always contains the horizontal position\n           * of the mouse in the frame previous to the current frame, relative to\n           * (0, 0) of the window. Note: pwinMouseX will be reset to the current winMouseX\n           * value at the start of each touch event.\n           *\n           * @property {Number} pwinMouseX\n           * @readOnly\n           *\n           * @example\n           * <div>\n           * <code>\n           * let myCanvas;\n           *\n           * function setup() {\n           *   //use a variable to store a pointer to the canvas\n           *   myCanvas = createCanvas(100, 100);\n           *   noStroke();\n           *   fill(237, 34, 93);\n           * }\n           *\n           * function draw() {\n           *   clear();\n           *   //the difference between previous and\n           *   //current x position is the horizontal mouse speed\n           *   let speed = abs(winMouseX - pwinMouseX);\n           *   //change the size of the circle\n           *   //according to the horizontal speed\n           *   ellipse(50, 50, 10 + speed * 5, 10 + speed * 5);\n           *   //move the canvas to the mouse position\n           *   myCanvas.position(winMouseX + 1, winMouseY + 1);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * fuchsia ellipse moves with mouse x and y. Grows and shrinks with mouse speed\n           *\n           */\n          _main.default.prototype.pwinMouseX = 0;\n\n          /**\n           * The system variable pwinMouseY always contains the vertical position of\n           * the mouse in the frame previous to the current frame, relative to (0, 0)\n           * of the window. Note: pwinMouseY will be reset to the current winMouseY\n           * value at the start of each touch event.\n           *\n           * @property {Number} pwinMouseY\n           * @readOnly\n           *\n           *\n           * @example\n           * <div>\n           * <code>\n           * let myCanvas;\n           *\n           * function setup() {\n           *   //use a variable to store a pointer to the canvas\n           *   myCanvas = createCanvas(100, 100);\n           *   noStroke();\n           *   fill(237, 34, 93);\n           * }\n           *\n           * function draw() {\n           *   clear();\n           *   //the difference between previous and\n           *   //current y position is the vertical mouse speed\n           *   let speed = abs(winMouseY - pwinMouseY);\n           *   //change the size of the circle\n           *   //according to the vertical speed\n           *   ellipse(50, 50, 10 + speed * 5, 10 + speed * 5);\n           *   //move the canvas to the mouse position\n           *   myCanvas.position(winMouseX + 1, winMouseY + 1);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * fuchsia ellipse moves with mouse x and y. Grows and shrinks with mouse speed\n           *\n           */\n          _main.default.prototype.pwinMouseY = 0;\n\n          /**\n           * Processing automatically tracks if the mouse button is pressed and which\n           * button is pressed. The value of the system variable mouseButton is either\n           * LEFT, RIGHT, or CENTER depending on which button was pressed last.\n           * Warning: different browsers may track mouseButton differently.\n           *\n           * @property {Constant} mouseButton\n           * @readOnly\n           *\n           * @example\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(237, 34, 93);\n           *   fill(0);\n           *\n           *   if (mouseIsPressed) {\n           *     if (mouseButton === LEFT) {\n           *       ellipse(50, 50, 50, 50);\n           *     }\n           *     if (mouseButton === RIGHT) {\n           *       rect(25, 25, 50, 50);\n           *     }\n           *     if (mouseButton === CENTER) {\n           *       triangle(23, 75, 50, 20, 78, 75);\n           *     }\n           *   }\n           *\n           *   print(mouseButton);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 black ellipse appears on center of fuchsia canvas on mouse click/press.\n           *\n           */\n          _main.default.prototype.mouseButton = 0;\n\n          /**\n           * The boolean system variable mouseIsPressed is true if the mouse is pressed\n           * and false if not.\n           *\n           * @property {Boolean} mouseIsPressed\n           * @readOnly\n           *\n           * @example\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(237, 34, 93);\n           *   fill(0);\n           *\n           *   if (mouseIsPressed) {\n           *     ellipse(50, 50, 50, 50);\n           *   } else {\n           *     rect(25, 25, 50, 50);\n           *   }\n           *\n           *   print(mouseIsPressed);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black 50x50 rect becomes ellipse with mouse click/press. fuchsia background.\n           *\n           */\n          _main.default.prototype.mouseIsPressed = false;\n\n          _main.default.prototype._updateNextMouseCoords = function(e) {\n            if (this._curElement !== null && (!e.touches || e.touches.length > 0)) {\n              var mousePos = getMousePos(this._curElement.elt, this.width, this.height, e);\n\n              this._setProperty('movedX', e.movementX);\n              this._setProperty('movedY', e.movementY);\n              this._setProperty('mouseX', mousePos.x);\n              this._setProperty('mouseY', mousePos.y);\n              this._setProperty('winMouseX', mousePos.winX);\n              this._setProperty('winMouseY', mousePos.winY);\n            }\n            if (!this._hasMouseInteracted) {\n              // For first draw, make previous and next equal\n              this._updateMouseCoords();\n              this._setProperty('_hasMouseInteracted', true);\n            }\n          };\n\n          _main.default.prototype._updateMouseCoords = function() {\n            this._setProperty('pmouseX', this.mouseX);\n            this._setProperty('pmouseY', this.mouseY);\n            this._setProperty('pwinMouseX', this.winMouseX);\n            this._setProperty('pwinMouseY', this.winMouseY);\n\n            this._setProperty('_pmouseWheelDeltaY', this._mouseWheelDeltaY);\n          };\n\n          function getMousePos(canvas, w, h, evt) {\n            if (evt && !evt.clientX) {\n              // use touches if touch and not mouse\n              if (evt.touches) {\n                evt = evt.touches[0];\n              } else if (evt.changedTouches) {\n                evt = evt.changedTouches[0];\n              }\n            }\n            var rect = canvas.getBoundingClientRect();\n            var sx = canvas.scrollWidth / w || 1;\n            var sy = canvas.scrollHeight / h || 1;\n            return {\n              x: (evt.clientX - rect.left) / sx,\n              y: (evt.clientY - rect.top) / sy,\n              winX: evt.clientX,\n              winY: evt.clientY,\n              id: evt.identifier\n            };\n          }\n\n          _main.default.prototype._setMouseButton = function(e) {\n            if (e.button === 1) {\n              this._setProperty('mouseButton', constants.CENTER);\n            } else if (e.button === 2) {\n              this._setProperty('mouseButton', constants.RIGHT);\n            } else {\n              this._setProperty('mouseButton', constants.LEFT);\n            }\n          };\n\n          /**\n           * The <a href=\"#/p5/mouseMoved\">mouseMoved()</a> function is called every time the mouse moves and a mouse\n           * button is not pressed.<br><br>\n           * Browsers may have different default\n           * behaviors attached to various mouse events. To prevent any default\n           * behavior for this event, add \"return false\" to the end of the method.\n           *\n           * @method mouseMoved\n           * @param  {Object} [event] optional MouseEvent callback argument.\n           * @example\n           * <div>\n           * <code>\n           * // Move the mouse across the page\n           * // to change its value\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function mouseMoved() {\n           *   value = value + 5;\n           *   if (value > 255) {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * function mouseMoved() {\n           *   ellipse(mouseX, mouseY, 5, 5);\n           *   // prevent default\n           *   return false;\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // returns a MouseEvent object\n           * // as a callback argument\n           * function mouseMoved(event) {\n           *   console.log(event);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black 50x50 rect becomes lighter with mouse movements until white then resets\n           * no image displayed\n           *\n           */\n\n          /**\n           * The <a href=\"#/p5/mouseDragged\">mouseDragged()</a> function is called once every time the mouse moves and\n           * a mouse button is pressed. If no <a href=\"#/p5/mouseDragged\">mouseDragged()</a> function is defined, the\n           * <a href=\"#/p5/touchMoved\">touchMoved()</a> function will be called instead if it is defined.<br><br>\n           * Browsers may have different default\n           * behaviors attached to various mouse events. To prevent any default\n           * behavior for this event, add \"return false\" to the end of the method.\n           *\n           * @method mouseDragged\n           * @param  {Object} [event] optional MouseEvent callback argument.\n           * @example\n           * <div>\n           * <code>\n           * // Drag the mouse across the page\n           * // to change its value\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function mouseDragged() {\n           *   value = value + 5;\n           *   if (value > 255) {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * function mouseDragged() {\n           *   ellipse(mouseX, mouseY, 5, 5);\n           *   // prevent default\n           *   return false;\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // returns a MouseEvent object\n           * // as a callback argument\n           * function mouseDragged(event) {\n           *   console.log(event);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black 50x50 rect turns lighter with mouse click and drag until white, resets\n           * no image displayed\n           *\n           */\n          _main.default.prototype._onmousemove = function(e) {\n            var context = this._isGlobal ? window : this;\n            var executeDefault;\n            this._updateNextMouseCoords(e);\n            if (!this.mouseIsPressed) {\n              if (typeof context.mouseMoved === 'function') {\n                executeDefault = context.mouseMoved(e);\n                if (executeDefault === false) {\n                  e.preventDefault();\n                }\n              }\n            } else {\n              if (typeof context.mouseDragged === 'function') {\n                executeDefault = context.mouseDragged(e);\n                if (executeDefault === false) {\n                  e.preventDefault();\n                }\n              } else if (typeof context.touchMoved === 'function') {\n                executeDefault = context.touchMoved(e);\n                if (executeDefault === false) {\n                  e.preventDefault();\n                }\n              }\n            }\n          };\n\n          /**\n           * The <a href=\"#/p5/mousePressed\">mousePressed()</a> function is called once after every time a mouse button\n           * is pressed. The mouseButton variable (see the related reference entry)\n           * can be used to determine which button has been pressed. If no\n           * <a href=\"#/p5/mousePressed\">mousePressed()</a> function is defined, the <a href=\"#/p5/touchStarted\">touchStarted()</a> function will be\n           * called instead if it is defined.<br><br>\n           * Browsers may have different default\n           * behaviors attached to various mouse events. To prevent any default\n           * behavior for this event, add \"return false\" to the end of the method.\n           *\n           * @method mousePressed\n           * @param  {Object} [event] optional MouseEvent callback argument.\n           * @example\n           * <div>\n           * <code>\n           * // Click within the image to change\n           * // the value of the rectangle\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function mousePressed() {\n           *   if (value === 0) {\n           *     value = 255;\n           *   } else {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * function mousePressed() {\n           *   ellipse(mouseX, mouseY, 5, 5);\n           *   // prevent default\n           *   return false;\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // returns a MouseEvent object\n           * // as a callback argument\n           * function mousePressed(event) {\n           *   console.log(event);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black 50x50 rect turns white with mouse click/press.\n           * no image displayed\n           *\n           */\n          _main.default.prototype._onmousedown = function(e) {\n            var context = this._isGlobal ? window : this;\n            var executeDefault;\n            this._setProperty('mouseIsPressed', true);\n            this._setMouseButton(e);\n            this._updateNextMouseCoords(e);\n\n            if (typeof context.mousePressed === 'function') {\n              executeDefault = context.mousePressed(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n              // only safari needs this manual fallback for consistency\n            } else if (\n              navigator.userAgent.toLowerCase().includes('safari') &&\n              typeof context.touchStarted === 'function'\n            ) {\n              executeDefault = context.touchStarted(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            }\n          };\n\n          /**\n           * The <a href=\"#/p5/mouseReleased\">mouseReleased()</a> function is called every time a mouse button is\n           * released. If no <a href=\"#/p5/mouseReleased\">mouseReleased()</a> function is defined, the <a href=\"#/p5/touchEnded\">touchEnded()</a>\n           * function will be called instead if it is defined.<br><br>\n           * Browsers may have different default\n           * behaviors attached to various mouse events. To prevent any default\n           * behavior for this event, add \"return false\" to the end of the method.\n           *\n           *\n           * @method mouseReleased\n           * @param  {Object} [event] optional MouseEvent callback argument.\n           * @example\n           * <div>\n           * <code>\n           * // Click within the image to change\n           * // the value of the rectangle\n           * // after the mouse has been clicked\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function mouseReleased() {\n           *   if (value === 0) {\n           *     value = 255;\n           *   } else {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * function mouseReleased() {\n           *   ellipse(mouseX, mouseY, 5, 5);\n           *   // prevent default\n           *   return false;\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // returns a MouseEvent object\n           * // as a callback argument\n           * function mouseReleased(event) {\n           *   console.log(event);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black 50x50 rect turns white with mouse click/press.\n           * no image displayed\n           *\n           */\n          _main.default.prototype._onmouseup = function(e) {\n            var context = this._isGlobal ? window : this;\n            var executeDefault;\n            this._setProperty('mouseIsPressed', false);\n            if (typeof context.mouseReleased === 'function') {\n              executeDefault = context.mouseReleased(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            } else if (typeof context.touchEnded === 'function') {\n              executeDefault = context.touchEnded(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            }\n          };\n\n          _main.default.prototype._ondragend = _main.default.prototype._onmouseup;\n          _main.default.prototype._ondragover = _main.default.prototype._onmousemove;\n\n          /**\n           * The <a href=\"#/p5/mouseClicked\">mouseClicked()</a> function is called once after a mouse button has been\n           * pressed and then released.<br><br>\n           * Browsers handle clicks differently, so this function is only guaranteed to be\n           * run when the left mouse button is clicked. To handle other mouse buttons\n           * being pressed or released, see <a href=\"#/p5/mousePressed\">mousePressed()</a> or <a href=\"#/p5/mouseReleased\">mouseReleased()</a>.<br><br>\n           * Browsers may have different default\n           * behaviors attached to various mouse events. To prevent any default\n           * behavior for this event, add \"return false\" to the end of the method.\n           *\n           * @method mouseClicked\n           * @param  {Object} [event] optional MouseEvent callback argument.\n           * @example\n           * <div>\n           * <code>\n           * // Click within the image to change\n           * // the value of the rectangle\n           * // after the mouse has been clicked\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           *\n           * function mouseClicked() {\n           *   if (value === 0) {\n           *     value = 255;\n           *   } else {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * function mouseClicked() {\n           *   ellipse(mouseX, mouseY, 5, 5);\n           *   // prevent default\n           *   return false;\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // returns a MouseEvent object\n           * // as a callback argument\n           * function mouseClicked(event) {\n           *   console.log(event);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black 50x50 rect turns white with mouse click/press.\n           * no image displayed\n           *\n           */\n          _main.default.prototype._onclick = function(e) {\n            var context = this._isGlobal ? window : this;\n            if (typeof context.mouseClicked === 'function') {\n              var executeDefault = context.mouseClicked(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            }\n          };\n\n          /**\n           * The <a href=\"#/p5/doubleClicked\">doubleClicked()</a> function is executed every time a event\n           * listener has detected a dblclick event which is a part of the\n           * DOM L3 specification. The doubleClicked event is fired when a\n           * pointing device button (usually a mouse's primary button)\n           * is clicked twice on a single element. For more info on the\n           * dblclick event refer to mozilla's documentation here:\n           * https://developer.mozilla.org/en-US/docs/Web/Events/dblclick\n           *\n           * @method doubleClicked\n           * @param  {Object} [event] optional MouseEvent callback argument.\n           * @example\n           * <div>\n           * <code>\n           * // Click within the image to change\n           * // the value of the rectangle\n           * // after the mouse has been double clicked\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           *\n           * function doubleClicked() {\n           *   if (value === 0) {\n           *     value = 255;\n           *   } else {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * function doubleClicked() {\n           *   ellipse(mouseX, mouseY, 5, 5);\n           *   // prevent default\n           *   return false;\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // returns a MouseEvent object\n           * // as a callback argument\n           * function doubleClicked(event) {\n           *   console.log(event);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black 50x50 rect turns white with mouse doubleClick/press.\n           * no image displayed\n           */\n\n          _main.default.prototype._ondblclick = function(e) {\n            var context = this._isGlobal ? window : this;\n            if (typeof context.doubleClicked === 'function') {\n              var executeDefault = context.doubleClicked(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            }\n          };\n\n          /**\n           * For use with WebGL orbitControl.\n           * @property {Number} _mouseWheelDeltaY\n           * @readOnly\n           * @private\n           */\n          _main.default.prototype._mouseWheelDeltaY = 0;\n\n          /**\n           * For use with WebGL orbitControl.\n           * @property {Number} _pmouseWheelDeltaY\n           * @readOnly\n           * @private\n           */\n          _main.default.prototype._pmouseWheelDeltaY = 0;\n\n          /**\n           * The function <a href=\"#/p5/mouseWheel\">mouseWheel()</a> is executed every time a vertical mouse wheel\n           * event is detected either triggered by an actual mouse wheel or by a\n           * touchpad.<br><br>\n           * The event.delta property returns the amount the mouse wheel\n           * have scrolled. The values can be positive or negative depending on the\n           * scroll direction (on OS X with \"natural\" scrolling enabled, the signs\n           * are inverted).<br><br>\n           * Browsers may have different default behaviors attached to various\n           * mouse events. To prevent any default behavior for this event, add\n           * \"return false\" to the end of the method.<br><br>\n           * Due to the current support of the \"wheel\" event on Safari, the function\n           * may only work as expected if \"return false\" is included while using Safari.\n           *\n           * @method mouseWheel\n           * @param  {Object} [event] optional WheelEvent callback argument.\n           *\n           * @example\n           * <div>\n           * <code>\n           * let pos = 25;\n           *\n           * function draw() {\n           *   background(237, 34, 93);\n           *   fill(0);\n           *   rect(25, pos, 50, 50);\n           * }\n           *\n           * function mouseWheel(event) {\n           *   print(event.delta);\n           *   //move the square according to the vertical scroll amount\n           *   pos += event.delta;\n           *   //uncomment to block page scrolling\n           *   //return false;\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black 50x50 rect moves up and down with vertical scroll. fuchsia background\n           *\n           */\n          _main.default.prototype._onwheel = function(e) {\n            var context = this._isGlobal ? window : this;\n            this._setProperty('_mouseWheelDeltaY', e.deltaY);\n            if (typeof context.mouseWheel === 'function') {\n              e.delta = e.deltaY;\n              var executeDefault = context.mouseWheel(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            }\n          };\n\n          /**\n           * <p>The function <a href=\"#/p5/requestPointerLock\">requestPointerLock()</a>\n           * locks the pointer to its current position and makes it invisible.\n           * Use <a href=\"#/p5/movedX\">movedX</a> and <a href=\"#/p5/movedY\">movedY</a> to get the difference the mouse was moved since\n           * the last call of draw</p>\n           * <p>Note that not all browsers support this feature</p>\n           * <p>This enables you to create experiences that aren't limited by the mouse moving out of the screen\n           * even if it is repeatedly moved into one direction. </p>\n           * <p>For example a first person perspective experience</p>\n           *\n           * @method requestPointerLock\n           * @example\n           * <div class=\"notest\">\n           * <code>\n           * let cam;\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   requestPointerLock();\n           *   cam = createCamera();\n           * }\n           *\n           * function draw() {\n           *   background(255);\n           *   cam.pan(-movedX * 0.001);\n           *   cam.tilt(movedY * 0.001);\n           *   sphere(25);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 3D scene moves according to mouse mouse movement in a first person perspective\n           *\n           */\n          _main.default.prototype.requestPointerLock = function() {\n            // pointer lock object forking for cross browser\n            var canvas = this._curElement.elt;\n            canvas.requestPointerLock =\n              canvas.requestPointerLock || canvas.mozRequestPointerLock;\n            if (!canvas.requestPointerLock) {\n              console.log('requestPointerLock is not implemented in this browser');\n              return false;\n            }\n            canvas.requestPointerLock();\n            return true;\n          };\n\n          /**\n           * <p>The function <a href=\"#/p5/exitPointerLock\">exitPointerLock()</a>\n           * exits a previously triggered <a href=\"#/p5/requestPointerLock\">pointer Lock</a>\n           * for example to make ui elements usable etc\n           *\n           * @method exitPointerLock\n           * @example\n           * <div class=\"notest\">\n           * <code>\n           * //click the canvas to lock the pointer\n           * //click again to exit (otherwise escape)\n           * let locked = false;\n           * function draw() {\n           *   background(237, 34, 93);\n           * }\n           * function mouseClicked() {\n           *   if (!locked) {\n           *     locked = true;\n           *     requestPointerLock();\n           *   } else {\n           *     exitPointerLock();\n           *     locked = false;\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * cursor gets locked / unlocked on mouse-click\n           *\n           */\n          _main.default.prototype.exitPointerLock = function() {\n            document.exitPointerLock();\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, '../core/main': 50 }\n      ],\n      70: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Events\n           * @submodule Touch\n           * @for p5\n           * @requires core\n           */ /**\n           * The system variable touches[] contains an array of the positions of all\n           * current touch points, relative to (0, 0) of the canvas, and IDs identifying a\n           * unique touch as it moves. Each element in the array is an object with x, y,\n           * and id properties.\n           *\n           * The touches[] array is not supported on Safari and IE on touch-based\n           * desktops (laptops).\n           *\n           * @property {Object[]} touches\n           * @readOnly\n           *\n           * @example\n           * <div>\n           * <code>\n           * // On a touchscreen device, touch\n           * // the canvas using one or more fingers\n           * // at the same time\n           * function draw() {\n           *   clear();\n           *   let display = touches.length + ' touches';\n           *   text(display, 5, 10);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Number of touches currently registered are displayed on the canvas\n           */ _main.default.prototype.touches = [];\n          _main.default.prototype._updateTouchCoords = function(e) {\n            if (this._curElement !== null) {\n              var touches = [];\n              for (var i = 0; i < e.touches.length; i++) {\n                touches[i] = getTouchInfo(\n                  this._curElement.elt,\n                  this.width,\n                  this.height,\n                  e,\n                  i\n                );\n              }\n              this._setProperty('touches', touches);\n            }\n          };\n\n          function getTouchInfo(canvas, w, h, e) {\n            var i = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;\n            var rect = canvas.getBoundingClientRect();\n            var sx = canvas.scrollWidth / w || 1;\n            var sy = canvas.scrollHeight / h || 1;\n            var touch = e.touches[i] || e.changedTouches[i];\n            return {\n              x: (touch.clientX - rect.left) / sx,\n              y: (touch.clientY - rect.top) / sy,\n              winX: touch.clientX,\n              winY: touch.clientY,\n              id: touch.identifier\n            };\n          }\n\n          /**\n           * The touchStarted() function is called once after every time a touch is\n           * registered. If no <a href=\"#/p5/touchStarted\">touchStarted()</a> function is defined, the <a href=\"#/p5/mousePressed\">mousePressed()</a>\n           * function will be called instead if it is defined.<br><br>\n           * Browsers may have different default behaviors attached to various touch\n           * events. To prevent any default behavior for this event, add \"return false\"\n           * to the end of the method.\n           *\n           * @method touchStarted\n           * @param  {Object} [event] optional TouchEvent callback argument.\n           * @example\n           * <div>\n           * <code>\n           * // Touch within the image to change\n           * // the value of the rectangle\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function touchStarted() {\n           *   if (value === 0) {\n           *     value = 255;\n           *   } else {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * function touchStarted() {\n           *   ellipse(mouseX, mouseY, 5, 5);\n           *   // prevent default\n           *   return false;\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // returns a TouchEvent object\n           * // as a callback argument\n           * function touchStarted(event) {\n           *   console.log(event);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 black rect turns white with touch event.\n           * no image displayed\n           */\n          _main.default.prototype._ontouchstart = function(e) {\n            var context = this._isGlobal ? window : this;\n            var executeDefault;\n            this._setProperty('mouseIsPressed', true);\n            this._updateTouchCoords(e);\n            this._updateNextMouseCoords(e);\n            this._updateMouseCoords(); // reset pmouseXY at the start of each touch event\n\n            if (typeof context.touchStarted === 'function') {\n              executeDefault = context.touchStarted(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n              // only safari needs this manual fallback for consistency\n            } else if (\n              navigator.userAgent.toLowerCase().includes('safari') &&\n              typeof context.mousePressed === 'function'\n            ) {\n              executeDefault = context.mousePressed(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            }\n          };\n\n          /**\n           * The <a href=\"#/p5/touchMoved\">touchMoved()</a> function is called every time a touch move is registered.\n           * If no <a href=\"#/p5/touchMoved\">touchMoved()</a> function is defined, the <a href=\"#/p5/mouseDragged\">mouseDragged()</a> function will\n           * be called instead if it is defined.<br><br>\n           * Browsers may have different default behaviors attached to various touch\n           * events. To prevent any default behavior for this event, add \"return false\"\n           * to the end of the method.\n           *\n           * @method touchMoved\n           * @param  {Object} [event] optional TouchEvent callback argument.\n           * @example\n           * <div>\n           * <code>\n           * // Move your finger across the page\n           * // to change its value\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function touchMoved() {\n           *   value = value + 5;\n           *   if (value > 255) {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * function touchMoved() {\n           *   ellipse(mouseX, mouseY, 5, 5);\n           *   // prevent default\n           *   return false;\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // returns a TouchEvent object\n           * // as a callback argument\n           * function touchMoved(event) {\n           *   console.log(event);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 black rect turns lighter with touch until white. resets\n           * no image displayed\n           *\n           */\n          _main.default.prototype._ontouchmove = function(e) {\n            var context = this._isGlobal ? window : this;\n            var executeDefault;\n            this._updateTouchCoords(e);\n            this._updateNextMouseCoords(e);\n            if (typeof context.touchMoved === 'function') {\n              executeDefault = context.touchMoved(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            } else if (typeof context.mouseDragged === 'function') {\n              executeDefault = context.mouseDragged(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            }\n          };\n\n          /**\n           * The <a href=\"#/p5/touchEnded\">touchEnded()</a> function is called every time a touch ends. If no\n           * <a href=\"#/p5/touchEnded\">touchEnded()</a> function is defined, the <a href=\"#/p5/mouseReleased\">mouseReleased()</a> function will be\n           * called instead if it is defined.<br><br>\n           * Browsers may have different default behaviors attached to various touch\n           * events. To prevent any default behavior for this event, add \"return false\"\n           * to the end of the method.\n           *\n           * @method touchEnded\n           * @param  {Object} [event] optional TouchEvent callback argument.\n           * @example\n           * <div>\n           * <code>\n           * // Release touch within the image to\n           * // change the value of the rectangle\n           *\n           * let value = 0;\n           * function draw() {\n           *   fill(value);\n           *   rect(25, 25, 50, 50);\n           * }\n           * function touchEnded() {\n           *   if (value === 0) {\n           *     value = 255;\n           *   } else {\n           *     value = 0;\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * function touchEnded() {\n           *   ellipse(mouseX, mouseY, 5, 5);\n           *   // prevent default\n           *   return false;\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // returns a TouchEvent object\n           * // as a callback argument\n           * function touchEnded(event) {\n           *   console.log(event);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 50x50 black rect turns white with touch.\n           * no image displayed\n           *\n           */\n          _main.default.prototype._ontouchend = function(e) {\n            this._setProperty('mouseIsPressed', false);\n            this._updateTouchCoords(e);\n            this._updateNextMouseCoords(e);\n            var context = this._isGlobal ? window : this;\n            var executeDefault;\n            if (typeof context.touchEnded === 'function') {\n              executeDefault = context.touchEnded(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            } else if (typeof context.mouseReleased === 'function') {\n              executeDefault = context.mouseReleased(e);\n              if (executeDefault === false) {\n                e.preventDefault();\n              }\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      71: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0; /*global ImageData:false */\n\n          /**\n           * This module defines the filters for use with image buffers.\n           *\n           * This module is basically a collection of functions stored in an object\n           * as opposed to modules. The functions are destructive, modifying\n           * the passed in canvas rather than creating a copy.\n           *\n           * Generally speaking users of this module will use the Filters.apply method\n           * on a canvas to create an effect.\n           *\n           * A number of functions are borrowed/adapted from\n           * http://www.html5rocks.com/en/tutorials/canvas/imagefilters/\n           * or the java processing implementation.\n           */\n\n          var Filters = {};\n\n          /*\n                   * Helper functions\n                   */\n\n          /**\n           * Returns the pixel buffer for a canvas\n           *\n           * @private\n           *\n           * @param  {Canvas|ImageData} canvas the canvas to get pixels from\n           * @return {Uint8ClampedArray}       a one-dimensional array containing\n           *                                   the data in thc RGBA order, with integer\n           *                                   values between 0 and 255\n           */\n          Filters._toPixels = function(canvas) {\n            if (canvas instanceof ImageData) {\n              return canvas.data;\n            } else {\n              return canvas.getContext('2d').getImageData(0, 0, canvas.width, canvas.height)\n                .data;\n            }\n          };\n\n          /**\n           * Returns a 32 bit number containing ARGB data at ith pixel in the\n           * 1D array containing pixels data.\n           *\n           * @private\n           *\n           * @param  {Uint8ClampedArray} data array returned by _toPixels()\n           * @param  {Integer}           i    index of a 1D Image Array\n           * @return {Integer}                32 bit integer value representing\n           *                                  ARGB value.\n           */\n          Filters._getARGB = function(data, i) {\n            var offset = i * 4;\n            return (\n              ((data[offset + 3] << 24) & 0xff000000) |\n              ((data[offset] << 16) & 0x00ff0000) |\n              ((data[offset + 1] << 8) & 0x0000ff00) |\n              (data[offset + 2] & 0x000000ff)\n            );\n          };\n\n          /**\n           * Modifies pixels RGBA values to values contained in the data object.\n           *\n           * @private\n           *\n           * @param {Uint8ClampedArray} pixels array returned by _toPixels()\n           * @param {Int32Array}        data   source 1D array where each value\n           *                                   represents ARGB values\n           */\n          Filters._setPixels = function(pixels, data) {\n            var offset = 0;\n            for (var i = 0, al = pixels.length; i < al; i++) {\n              offset = i * 4;\n              pixels[offset + 0] = (data[i] & 0x00ff0000) >>> 16;\n              pixels[offset + 1] = (data[i] & 0x0000ff00) >>> 8;\n              pixels[offset + 2] = data[i] & 0x000000ff;\n              pixels[offset + 3] = (data[i] & 0xff000000) >>> 24;\n            }\n          };\n\n          /**\n           * Returns the ImageData object for a canvas\n           * https://developer.mozilla.org/en-US/docs/Web/API/ImageData\n           *\n           * @private\n           *\n           * @param  {Canvas|ImageData} canvas canvas to get image data from\n           * @return {ImageData}               Holder of pixel data (and width and\n           *                                   height) for a canvas\n           */\n          Filters._toImageData = function(canvas) {\n            if (canvas instanceof ImageData) {\n              return canvas;\n            } else {\n              return canvas\n                .getContext('2d')\n                .getImageData(0, 0, canvas.width, canvas.height);\n            }\n          };\n\n          /**\n           * Returns a blank ImageData object.\n           *\n           * @private\n           *\n           * @param  {Integer} width\n           * @param  {Integer} height\n           * @return {ImageData}\n           */\n          Filters._createImageData = function(width, height) {\n            Filters._tmpCanvas = document.createElement('canvas');\n            Filters._tmpCtx = Filters._tmpCanvas.getContext('2d');\n            return this._tmpCtx.createImageData(width, height);\n          };\n\n          /**\n           * Applys a filter function to a canvas.\n           *\n           * The difference between this and the actual filter functions defined below\n           * is that the filter functions generally modify the pixel buffer but do\n           * not actually put that data back to the canvas (where it would actually\n           * update what is visible). By contrast this method does make the changes\n           * actually visible in the canvas.\n           *\n           * The apply method is the method that callers of this module would generally\n           * use. It has been separated from the actual filters to support an advanced\n           * use case of creating a filter chain that executes without actually updating\n           * the canvas in between everystep.\n           *\n           * @private\n           * @param  {HTMLCanvasElement} canvas [description]\n           * @param  {function(ImageData,Object)} func   [description]\n           * @param  {Object} filterParam  [description]\n           */\n          Filters.apply = function(canvas, func, filterParam) {\n            var pixelsState = canvas.getContext('2d');\n            var imageData = pixelsState.getImageData(0, 0, canvas.width, canvas.height);\n\n            //Filters can either return a new ImageData object, or just modify\n            //the one they received.\n            var newImageData = func(imageData, filterParam);\n            if (newImageData instanceof ImageData) {\n              pixelsState.putImageData(\n                newImageData,\n                0,\n                0,\n                0,\n                0,\n                canvas.width,\n                canvas.height\n              );\n            } else {\n              pixelsState.putImageData(imageData, 0, 0, 0, 0, canvas.width, canvas.height);\n            }\n          };\n\n          /*\n    * Filters\n    */\n\n          /**\n           * Converts the image to black and white pixels depending if they are above or\n           * below the threshold defined by the level parameter. The parameter must be\n           * between 0.0 (black) and 1.0 (white). If no level is specified, 0.5 is used.\n           *\n           * Borrowed from http://www.html5rocks.com/en/tutorials/canvas/imagefilters/\n           *\n           * @private\n           * @param  {Canvas} canvas\n           * @param  {Float} level\n           */\n          Filters.threshold = function(canvas, level) {\n            var pixels = Filters._toPixels(canvas);\n\n            if (level === undefined) {\n              level = 0.5;\n            }\n            var thresh = Math.floor(level * 255);\n\n            for (var i = 0; i < pixels.length; i += 4) {\n              var r = pixels[i];\n              var g = pixels[i + 1];\n              var b = pixels[i + 2];\n              var gray = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n              var val = void 0;\n              if (gray >= thresh) {\n                val = 255;\n              } else {\n                val = 0;\n              }\n              pixels[i] = pixels[i + 1] = pixels[i + 2] = val;\n            }\n          };\n\n          /**\n           * Converts any colors in the image to grayscale equivalents.\n           * No parameter is used.\n           *\n           * Borrowed from http://www.html5rocks.com/en/tutorials/canvas/imagefilters/\n           *\n           * @private\n           * @param {Canvas} canvas\n           */\n          Filters.gray = function(canvas) {\n            var pixels = Filters._toPixels(canvas);\n\n            for (var i = 0; i < pixels.length; i += 4) {\n              var r = pixels[i];\n              var g = pixels[i + 1];\n              var b = pixels[i + 2];\n\n              // CIE luminance for RGB\n              var gray = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n              pixels[i] = pixels[i + 1] = pixels[i + 2] = gray;\n            }\n          };\n\n          /**\n           * Sets the alpha channel to entirely opaque. No parameter is used.\n           *\n           * @private\n           * @param {Canvas} canvas\n           */\n          Filters.opaque = function(canvas) {\n            var pixels = Filters._toPixels(canvas);\n\n            for (var i = 0; i < pixels.length; i += 4) {\n              pixels[i + 3] = 255;\n            }\n\n            return pixels;\n          };\n\n          /**\n           * Sets each pixel to its inverse value. No parameter is used.\n           * @private\n           * @param  {Canvas} canvas\n           */\n          Filters.invert = function(canvas) {\n            var pixels = Filters._toPixels(canvas);\n\n            for (var i = 0; i < pixels.length; i += 4) {\n              pixels[i] = 255 - pixels[i];\n              pixels[i + 1] = 255 - pixels[i + 1];\n              pixels[i + 2] = 255 - pixels[i + 2];\n            }\n          };\n\n          /**\n           * Limits each channel of the image to the number of colors specified as\n           * the parameter. The parameter can be set to values between 2 and 255, but\n           * results are most noticeable in the lower ranges.\n           *\n           * Adapted from java based processing implementation\n           *\n           * @private\n           * @param  {Canvas} canvas\n           * @param  {Integer} level\n           */\n          Filters.posterize = function(canvas, level) {\n            var pixels = Filters._toPixels(canvas);\n\n            if (level < 2 || level > 255) {\n              throw new Error(\n                'Level must be greater than 2 and less than 255 for posterize'\n              );\n            }\n\n            var levels1 = level - 1;\n            for (var i = 0; i < pixels.length; i += 4) {\n              var rlevel = pixels[i];\n              var glevel = pixels[i + 1];\n              var blevel = pixels[i + 2];\n\n              pixels[i] = ((rlevel * level) >> 8) * 255 / levels1;\n              pixels[i + 1] = ((glevel * level) >> 8) * 255 / levels1;\n              pixels[i + 2] = ((blevel * level) >> 8) * 255 / levels1;\n            }\n          };\n\n          /**\n           * reduces the bright areas in an image\n           * @private\n           * @param  {Canvas} canvas\n           *\n           */\n          Filters.dilate = function(canvas) {\n            var pixels = Filters._toPixels(canvas);\n            var currIdx = 0;\n            var maxIdx = pixels.length ? pixels.length / 4 : 0;\n            var out = new Int32Array(maxIdx);\n            var currRowIdx, maxRowIdx, colOrig, colOut, currLum;\n\n            var idxRight, idxLeft, idxUp, idxDown;\n            var colRight, colLeft, colUp, colDown;\n            var lumRight, lumLeft, lumUp, lumDown;\n\n            while (currIdx < maxIdx) {\n              currRowIdx = currIdx;\n              maxRowIdx = currIdx + canvas.width;\n              while (currIdx < maxRowIdx) {\n                colOrig = colOut = Filters._getARGB(pixels, currIdx);\n                idxLeft = currIdx - 1;\n                idxRight = currIdx + 1;\n                idxUp = currIdx - canvas.width;\n                idxDown = currIdx + canvas.width;\n\n                if (idxLeft < currRowIdx) {\n                  idxLeft = currIdx;\n                }\n                if (idxRight >= maxRowIdx) {\n                  idxRight = currIdx;\n                }\n                if (idxUp < 0) {\n                  idxUp = 0;\n                }\n                if (idxDown >= maxIdx) {\n                  idxDown = currIdx;\n                }\n                colUp = Filters._getARGB(pixels, idxUp);\n                colLeft = Filters._getARGB(pixels, idxLeft);\n                colDown = Filters._getARGB(pixels, idxDown);\n                colRight = Filters._getARGB(pixels, idxRight);\n\n                //compute luminance\n                currLum =\n                  77 * ((colOrig >> 16) & 0xff) +\n                  151 * ((colOrig >> 8) & 0xff) +\n                  28 * (colOrig & 0xff);\n                lumLeft =\n                  77 * ((colLeft >> 16) & 0xff) +\n                  151 * ((colLeft >> 8) & 0xff) +\n                  28 * (colLeft & 0xff);\n                lumRight =\n                  77 * ((colRight >> 16) & 0xff) +\n                  151 * ((colRight >> 8) & 0xff) +\n                  28 * (colRight & 0xff);\n                lumUp =\n                  77 * ((colUp >> 16) & 0xff) +\n                  151 * ((colUp >> 8) & 0xff) +\n                  28 * (colUp & 0xff);\n                lumDown =\n                  77 * ((colDown >> 16) & 0xff) +\n                  151 * ((colDown >> 8) & 0xff) +\n                  28 * (colDown & 0xff);\n\n                if (lumLeft > currLum) {\n                  colOut = colLeft;\n                  currLum = lumLeft;\n                }\n                if (lumRight > currLum) {\n                  colOut = colRight;\n                  currLum = lumRight;\n                }\n                if (lumUp > currLum) {\n                  colOut = colUp;\n                  currLum = lumUp;\n                }\n                if (lumDown > currLum) {\n                  colOut = colDown;\n                  currLum = lumDown;\n                }\n                out[currIdx++] = colOut;\n              }\n            }\n            Filters._setPixels(pixels, out);\n          };\n\n          /**\n           * increases the bright areas in an image\n           * @private\n           * @param  {Canvas} canvas\n           *\n           */\n          Filters.erode = function(canvas) {\n            var pixels = Filters._toPixels(canvas);\n            var currIdx = 0;\n            var maxIdx = pixels.length ? pixels.length / 4 : 0;\n            var out = new Int32Array(maxIdx);\n            var currRowIdx, maxRowIdx, colOrig, colOut, currLum;\n            var idxRight, idxLeft, idxUp, idxDown;\n            var colRight, colLeft, colUp, colDown;\n            var lumRight, lumLeft, lumUp, lumDown;\n\n            while (currIdx < maxIdx) {\n              currRowIdx = currIdx;\n              maxRowIdx = currIdx + canvas.width;\n              while (currIdx < maxRowIdx) {\n                colOrig = colOut = Filters._getARGB(pixels, currIdx);\n                idxLeft = currIdx - 1;\n                idxRight = currIdx + 1;\n                idxUp = currIdx - canvas.width;\n                idxDown = currIdx + canvas.width;\n\n                if (idxLeft < currRowIdx) {\n                  idxLeft = currIdx;\n                }\n                if (idxRight >= maxRowIdx) {\n                  idxRight = currIdx;\n                }\n                if (idxUp < 0) {\n                  idxUp = 0;\n                }\n                if (idxDown >= maxIdx) {\n                  idxDown = currIdx;\n                }\n                colUp = Filters._getARGB(pixels, idxUp);\n                colLeft = Filters._getARGB(pixels, idxLeft);\n                colDown = Filters._getARGB(pixels, idxDown);\n                colRight = Filters._getARGB(pixels, idxRight);\n\n                //compute luminance\n                currLum =\n                  77 * ((colOrig >> 16) & 0xff) +\n                  151 * ((colOrig >> 8) & 0xff) +\n                  28 * (colOrig & 0xff);\n                lumLeft =\n                  77 * ((colLeft >> 16) & 0xff) +\n                  151 * ((colLeft >> 8) & 0xff) +\n                  28 * (colLeft & 0xff);\n                lumRight =\n                  77 * ((colRight >> 16) & 0xff) +\n                  151 * ((colRight >> 8) & 0xff) +\n                  28 * (colRight & 0xff);\n                lumUp =\n                  77 * ((colUp >> 16) & 0xff) +\n                  151 * ((colUp >> 8) & 0xff) +\n                  28 * (colUp & 0xff);\n                lumDown =\n                  77 * ((colDown >> 16) & 0xff) +\n                  151 * ((colDown >> 8) & 0xff) +\n                  28 * (colDown & 0xff);\n\n                if (lumLeft < currLum) {\n                  colOut = colLeft;\n                  currLum = lumLeft;\n                }\n                if (lumRight < currLum) {\n                  colOut = colRight;\n                  currLum = lumRight;\n                }\n                if (lumUp < currLum) {\n                  colOut = colUp;\n                  currLum = lumUp;\n                }\n                if (lumDown < currLum) {\n                  colOut = colDown;\n                  currLum = lumDown;\n                }\n\n                out[currIdx++] = colOut;\n              }\n            }\n            Filters._setPixels(pixels, out);\n          };\n\n          // BLUR\n\n          // internal kernel stuff for the gaussian blur filter\n          var blurRadius;\n          var blurKernelSize;\n          var blurKernel;\n          var blurMult;\n\n          /*\n               * Port of https://github.com/processing/processing/blob/\n               * master/core/src/processing/core/PImage.java#L1250\n               *\n               * Optimized code for building the blur kernel.\n               * further optimized blur code (approx. 15% for radius=20)\n               * bigger speed gains for larger radii (~30%)\n               * added support for various image types (ALPHA, RGB, ARGB)\n               * [toxi 050728]\n               */\n          function buildBlurKernel(r) {\n            var radius = (r * 3.5) | 0;\n            radius = radius < 1 ? 1 : radius < 248 ? radius : 248;\n\n            if (blurRadius !== radius) {\n              blurRadius = radius;\n              blurKernelSize = (1 + blurRadius) << 1;\n              blurKernel = new Int32Array(blurKernelSize);\n              blurMult = new Array(blurKernelSize);\n              for (var l = 0; l < blurKernelSize; l++) {\n                blurMult[l] = new Int32Array(256);\n              }\n\n              var bk, bki;\n              var bm, bmi;\n\n              for (var i = 1, radiusi = radius - 1; i < radius; i++) {\n                blurKernel[radius + i] = blurKernel[radiusi] = bki = radiusi * radiusi;\n                bm = blurMult[radius + i];\n                bmi = blurMult[radiusi--];\n                for (var j = 0; j < 256; j++) {\n                  bm[j] = bmi[j] = bki * j;\n                }\n              }\n              bk = blurKernel[radius] = radius * radius;\n              bm = blurMult[radius];\n\n              for (var k = 0; k < 256; k++) {\n                bm[k] = bk * k;\n              }\n            }\n          }\n\n          // Port of https://github.com/processing/processing/blob/\n          // master/core/src/processing/core/PImage.java#L1433\n          function blurARGB(canvas, radius) {\n            var pixels = Filters._toPixels(canvas);\n            var width = canvas.width;\n            var height = canvas.height;\n            var numPackedPixels = width * height;\n            var argb = new Int32Array(numPackedPixels);\n            for (var j = 0; j < numPackedPixels; j++) {\n              argb[j] = Filters._getARGB(pixels, j);\n            }\n            var sum, cr, cg, cb, ca;\n            var read, ri, ym, ymi, bk0;\n            var a2 = new Int32Array(numPackedPixels);\n            var r2 = new Int32Array(numPackedPixels);\n            var g2 = new Int32Array(numPackedPixels);\n            var b2 = new Int32Array(numPackedPixels);\n            var yi = 0;\n            buildBlurKernel(radius);\n            var x, y, i;\n            var bm;\n            for (y = 0; y < height; y++) {\n              for (x = 0; x < width; x++) {\n                cb = cg = cr = ca = sum = 0;\n                read = x - blurRadius;\n                if (read < 0) {\n                  bk0 = -read;\n                  read = 0;\n                } else {\n                  if (read >= width) {\n                    break;\n                  }\n                  bk0 = 0;\n                }\n                for (i = bk0; i < blurKernelSize; i++) {\n                  if (read >= width) {\n                    break;\n                  }\n                  var c = argb[read + yi];\n                  bm = blurMult[i];\n                  ca += bm[(c & -16777216) >>> 24];\n                  cr += bm[(c & 16711680) >> 16];\n                  cg += bm[(c & 65280) >> 8];\n                  cb += bm[c & 255];\n                  sum += blurKernel[i];\n                  read++;\n                }\n                ri = yi + x;\n                a2[ri] = ca / sum;\n                r2[ri] = cr / sum;\n                g2[ri] = cg / sum;\n                b2[ri] = cb / sum;\n              }\n              yi += width;\n            }\n            yi = 0;\n            ym = -blurRadius;\n            ymi = ym * width;\n            for (y = 0; y < height; y++) {\n              for (x = 0; x < width; x++) {\n                cb = cg = cr = ca = sum = 0;\n                if (ym < 0) {\n                  bk0 = ri = -ym;\n                  read = x;\n                } else {\n                  if (ym >= height) {\n                    break;\n                  }\n                  bk0 = 0;\n                  ri = ym;\n                  read = x + ymi;\n                }\n                for (i = bk0; i < blurKernelSize; i++) {\n                  if (ri >= height) {\n                    break;\n                  }\n                  bm = blurMult[i];\n                  ca += bm[a2[read]];\n                  cr += bm[r2[read]];\n                  cg += bm[g2[read]];\n                  cb += bm[b2[read]];\n                  sum += blurKernel[i];\n                  ri++;\n                  read += width;\n                }\n                argb[x + yi] =\n                  ((ca / sum) << 24) | ((cr / sum) << 16) | ((cg / sum) << 8) | (cb / sum);\n              }\n              yi += width;\n              ymi += width;\n              ym++;\n            }\n            Filters._setPixels(pixels, argb);\n          }\n\n          Filters.blur = function(canvas, radius) {\n            blurARGB(canvas, radius);\n          };\n          var _default = Filters;\n          exports.default = _default;\n        },\n        {}\n      ],\n      72: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var _omggif = _interopRequireDefault(_dereq_('omggif'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          } /** // This is not global, but ESLint is not aware that\n           * @module Image\n           * @submodule Image\n           * @for p5\n           * @requires core\n           */ /**\n           * This module defines the p5 methods for the <a href=\"#/p5.Image\">p5.Image</a> class\n           * for drawing images to the main display canvas.\n           */\n          // this module is implicitly enclosed with Browserify: this overrides the\n          // redefined-global error and permits using the name \"frames\" for the array\n          // of saved animation frames.\n          /* global frames:true */ var frames = []; // eslint-disable-line no-unused-vars\n          /**\n           * Creates a new <a href=\"#/p5.Image\">p5.Image</a> (the datatype for storing images). This provides a\n           * fresh buffer of pixels to play with. Set the size of the buffer with the\n           * width and height parameters.\n           * <br><br>\n           * .<a href=\"#/p5.Image/pixels\">pixels</a> gives access to an array containing the values for all the pixels\n           * in the display window.\n           * These values are numbers. This array is the size (including an appropriate\n           * factor for the <a href=\"#/p5/pixelDensity\">pixelDensity</a>) of the display window x4,\n           * representing the R, G, B, A values in order for each pixel, moving from\n           * left to right across each row, then down each column. See .<a href=\"#/p5.Image/pixels\">pixels</a> for\n           * more info. It may also be simpler to use <a href=\"#/p5.Image/set\">set()</a> or <a href=\"#/p5.Image/get\">get()</a>.\n           * <br><br>\n           * Before accessing the pixels of an image, the data must loaded with the\n           * <a href=\"#/p5.Image/loadPixels\">loadPixels()</a> function. After the array data has been modified, the\n           * <a href=\"#/p5.Image/updatePixels\">updatePixels()</a> function must be run to update the changes.\n           *\n           * @method createImage\n           * @param  {Integer} width  width in pixels\n           * @param  {Integer} height height in pixels\n           * @return {p5.Image}       the <a href=\"#/p5.Image\">p5.Image</a> object\n           * @example\n           * <div>\n           * <code>\n           * let img = createImage(66, 66);\n           * img.loadPixels();\n           * for (let i = 0; i < img.width; i++) {\n           *   for (let j = 0; j < img.height; j++) {\n           *     img.set(i, j, color(0, 90, 102));\n           *   }\n           * }\n           * img.updatePixels();\n           * image(img, 17, 17);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img = createImage(66, 66);\n           * img.loadPixels();\n           * for (let i = 0; i < img.width; i++) {\n           *   for (let j = 0; j < img.height; j++) {\n           *     img.set(i, j, color(0, 90, 102, (i % img.width) * 2));\n           *   }\n           * }\n           * img.updatePixels();\n           * image(img, 17, 17);\n           * image(img, 34, 34);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let pink = color(255, 102, 204);\n           * let img = createImage(66, 66);\n           * img.loadPixels();\n           * let d = pixelDensity();\n           * let halfImage = 4 * (img.width * d) * (img.height / 2 * d);\n           * for (let i = 0; i < halfImage; i += 4) {\n           *   img.pixels[i] = red(pink);\n           *   img.pixels[i + 1] = green(pink);\n           *   img.pixels[i + 2] = blue(pink);\n           *   img.pixels[i + 3] = alpha(pink);\n           * }\n           * img.updatePixels();\n           * image(img, 17, 17);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 66x66 dark turquoise rect in center of canvas.\n           * 2 gradated dark turquoise rects fade left. 1 center 1 bottom right of canvas\n           * no image displayed\n           *\n           */ _main.default.prototype.createImage = function(width, height) {\n            _main.default._validateParameters('createImage', arguments);\n            return new _main.default.Image(width, height);\n          };\n\n          /**\n           *  Save the current canvas as an image. The browser will either save the\n           *  file immediately, or prompt the user with a dialogue window.\n           *\n           *  @method saveCanvas\n           *  @param  {p5.Element|HTMLCanvasElement} selectedCanvas   a variable\n           *                                  representing a specific html5 canvas (optional)\n           *  @param  {String} [filename]\n           *  @param  {String} [extension]      'jpg' or 'png'\n           *\n           *  @example\n           * <div class='norender notest'><code>\n           * function setup() {\n           *   let c = createCanvas(100, 100);\n           *   background(255, 0, 0);\n           *   saveCanvas(c, 'myCanvas', 'jpg');\n           * }\n           * </code></div>\n           * <div class='norender notest'><code>\n           * // note that this example has the same result as above\n           * // if no canvas is specified, defaults to main canvas\n           * function setup() {\n           *   let c = createCanvas(100, 100);\n           *   background(255, 0, 0);\n           *   saveCanvas('myCanvas', 'jpg');\n           *\n           *   // all of the following are valid\n           *   saveCanvas(c, 'myCanvas', 'jpg');\n           *   saveCanvas(c, 'myCanvas.jpg');\n           *   saveCanvas(c, 'myCanvas');\n           *   saveCanvas(c);\n           *   saveCanvas('myCanvas', 'png');\n           *   saveCanvas('myCanvas');\n           *   saveCanvas();\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           * no image displayed\n           * no image displayed\n           */\n          /**\n           *  @method saveCanvas\n           *  @param  {String} [filename]\n           *  @param  {String} [extension]\n           */\n          _main.default.prototype.saveCanvas = function() {\n            _main.default._validateParameters('saveCanvas', arguments);\n\n            // copy arguments to array\n            var args = [].slice.call(arguments);\n            var htmlCanvas, filename, extension;\n\n            if (arguments[0] instanceof HTMLCanvasElement) {\n              htmlCanvas = arguments[0];\n              args.shift();\n            } else if (arguments[0] instanceof _main.default.Element) {\n              htmlCanvas = arguments[0].elt;\n              args.shift();\n            } else {\n              htmlCanvas = this._curElement && this._curElement.elt;\n            }\n\n            if (args.length >= 1) {\n              filename = args[0];\n            }\n            if (args.length >= 2) {\n              extension = args[1];\n            }\n\n            extension =\n              extension ||\n              _main.default.prototype._checkFileExtension(filename, extension)[1] ||\n              'png';\n\n            var mimeType;\n            switch (extension) {\n              default:\n                //case 'png':\n                mimeType = 'image/png';\n                break;\n              case 'jpeg':\n              case 'jpg':\n                mimeType = 'image/jpeg';\n                break;\n            }\n\n            htmlCanvas.toBlob(function(blob) {\n              _main.default.prototype.downloadFile(blob, filename, extension);\n            }, mimeType);\n          };\n\n          _main.default.prototype.saveGif = function(pImg, filename) {\n            var props = pImg.gifProperties;\n\n            //convert loopLimit back into Netscape Block formatting\n            var loopLimit = props.loopLimit;\n            if (loopLimit === 1) {\n              loopLimit = null;\n            } else if (loopLimit === null) {\n              loopLimit = 0;\n            }\n            var opts = {\n              loop: loopLimit\n            };\n\n            var buffer = new Uint8Array(pImg.width * pImg.height * props.numFrames);\n            var gifWriter = new _omggif.default.GifWriter(\n              buffer,\n              pImg.width,\n              pImg.height,\n              opts\n            );\n            var palette = [];\n            //loop over frames and build pixel -> palette index for each\n            for (var i = 0; i < props.numFrames; i++) {\n              var pixelPaletteIndex = new Uint8Array(pImg.width * pImg.height);\n              var data = props.frames[i].image.data;\n              var dataLength = data.length;\n              for (var j = 0, k = 0; j < dataLength; j += 4, k++) {\n                var r = data[j + 0];\n                var g = data[j + 1];\n                var b = data[j + 2];\n                var color = (r << 16) | (g << 8) | (b << 0);\n                var index = palette.indexOf(color);\n                if (index === -1) {\n                  pixelPaletteIndex[k] = palette.length;\n                  palette.push(color);\n                } else {\n                  pixelPaletteIndex[k] = index;\n                }\n              }\n              // force palette to be power of 2\n              var powof2 = 1;\n              while (powof2 < palette.length) {\n                powof2 <<= 1;\n              }\n              palette.length = powof2;\n              opts.palette = new Uint32Array(palette);\n              opts.delay = props.frames[i].delay / 10; // Move timing back into GIF formatting\n              gifWriter.addFrame(0, 0, pImg.width, pImg.height, pixelPaletteIndex, opts);\n            }\n            gifWriter.end();\n            var extension = 'gif';\n            var blob = new Blob([buffer], { type: 'image/gif' });\n            _main.default.prototype.downloadFile(blob, filename, extension);\n          };\n\n          /**\n    *  Capture a sequence of frames that can be used to create a movie.\n    *  Accepts a callback. For example, you may wish to send the frames\n    *  to a server where they can be stored or converted into a movie.\n    *  If no callback is provided, the browser will pop up save dialogues in an\n    *  attempt to download all of the images that have just been created. With the\n    *  callback provided the image data isn't saved by default but instead passed\n    *  as an argument to the callback function as an array of objects, with the\n    *  size of array equal to the total number of frames.\n    *\n    *  Note that <a href=\"#/p5.Image/saveFrames\">saveFrames()</a> will only save the first 15 frames of an animation.\n    *  To export longer animations, you might look into a library like\n    *  <a href=\"https://github.com/spite/ccapture.js/\">ccapture.js</a>.\n    *\n    *  @method saveFrames\n    *  @param  {String}   filename\n    *  @param  {String}   extension 'jpg' or 'png'\n    *  @param  {Number}   duration  Duration in seconds to save the frames for.\n    *  @param  {Number}   framerate  Framerate to save the frames in.\n    *  @param  {function(Array)} [callback] A callback function that will be executed\n                                     to handle the image data. This function\n                                     should accept an array as argument. The\n                                     array will contain the specified number of\n                                     frames of objects. Each object has three\n                                     properties: imageData - an\n                                     image/octet-stream, filename and extension.\n    *  @example\n    *  <div><code>\n    * function draw() {\n    *   background(mouseX);\n    * }\n    *\n    * function mousePressed() {\n    *   saveFrames('out', 'png', 1, 25, data => {\n    *     print(data);\n    *   });\n    * }\n   </code></div>\n    *\n    * @alt\n    * canvas background goes from light to dark with mouse x.\n    *\n    */\n          _main.default.prototype.saveFrames = function(\n            fName,\n            ext,\n            _duration,\n            _fps,\n            callback\n          ) {\n            _main.default._validateParameters('saveFrames', arguments);\n            var duration = _duration || 3;\n            duration = _main.default.prototype.constrain(duration, 0, 15);\n            duration = duration * 1000;\n            var fps = _fps || 15;\n            fps = _main.default.prototype.constrain(fps, 0, 22);\n            var count = 0;\n\n            var makeFrame = _main.default.prototype._makeFrame;\n            var cnv = this._curElement.elt;\n            var frameFactory = setInterval(function() {\n              makeFrame(fName + count, ext, cnv);\n              count++;\n            }, 1000 / fps);\n\n            setTimeout(function() {\n              clearInterval(frameFactory);\n              if (callback) {\n                callback(frames);\n              } else {\n                var _iteratorNormalCompletion = true;\n                var _didIteratorError = false;\n                var _iteratorError = undefined;\n                try {\n                  for (\n                    var _iterator = frames[Symbol.iterator](), _step;\n                    !(_iteratorNormalCompletion = (_step = _iterator.next()).done);\n                    _iteratorNormalCompletion = true\n                  ) {\n                    var f = _step.value;\n                    _main.default.prototype.downloadFile(f.imageData, f.filename, f.ext);\n                  }\n                } catch (err) {\n                  _didIteratorError = true;\n                  _iteratorError = err;\n                } finally {\n                  try {\n                    if (!_iteratorNormalCompletion && _iterator.return != null) {\n                      _iterator.return();\n                    }\n                  } finally {\n                    if (_didIteratorError) {\n                      throw _iteratorError;\n                    }\n                  }\n                }\n              }\n              frames = []; // clear frames\n            }, duration + 0.01);\n          };\n\n          _main.default.prototype._makeFrame = function(filename, extension, _cnv) {\n            var cnv;\n            if (this) {\n              cnv = this._curElement.elt;\n            } else {\n              cnv = _cnv;\n            }\n            var mimeType;\n            if (!extension) {\n              extension = 'png';\n              mimeType = 'image/png';\n            } else {\n              switch (extension.toLowerCase()) {\n                case 'png':\n                  mimeType = 'image/png';\n                  break;\n                case 'jpeg':\n                  mimeType = 'image/jpeg';\n                  break;\n                case 'jpg':\n                  mimeType = 'image/jpeg';\n                  break;\n                default:\n                  mimeType = 'image/png';\n                  break;\n              }\n            }\n            var downloadMime = 'image/octet-stream';\n            var imageData = cnv.toDataURL(mimeType);\n            imageData = imageData.replace(mimeType, downloadMime);\n\n            var thisFrame = {};\n            thisFrame.imageData = imageData;\n            thisFrame.filename = filename;\n            thisFrame.ext = extension;\n            frames.push(thisFrame);\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50, omggif: 33 }\n      ],\n      73: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var _filters = _interopRequireDefault(_dereq_('./filters'));\n          var _helpers = _interopRequireDefault(_dereq_('../core/helpers'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          var _omggif = _interopRequireDefault(_dereq_('omggif'));\n\n          _dereq_('../core/error_helpers');\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Image\n           * @submodule Loading & Displaying\n           * @for p5\n           * @requires core\n           */ /**\n           * Loads an image from a path and creates a <a href=\"#/p5.Image\">p5.Image</a> from it.\n           * <br><br>\n           * The image may not be immediately available for rendering\n           * If you want to ensure that the image is ready before doing\n           * anything with it, place the <a href=\"#/p5/loadImage\">loadImage()</a> call in <a href=\"#/p5/preload\">preload()</a>.\n           * You may also supply a callback function to handle the image when it's ready.\n           * <br><br>\n           * The path to the image should be relative to the HTML file\n           * that links in your sketch. Loading an image from a URL or other\n           * remote location may be blocked due to your browser's built-in\n           * security.\n           *\n           * @method loadImage\n           * @param  {String} path Path of the image to be loaded\n           * @param  {function(p5.Image)} [successCallback] Function to be called once\n           *                                the image is loaded. Will be passed the\n           *                                <a href=\"#/p5.Image\">p5.Image</a>.\n           * @param  {function(Event)}    [failureCallback] called with event error if\n           *                                the image fails to load.\n           * @return {p5.Image}             the <a href=\"#/p5.Image\">p5.Image</a> object\n           * @example\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/laDefense.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * function setup() {\n           *   // here we use a callback to display the image after loading\n           *   loadImage('assets/laDefense.jpg', img => {\n           *     image(img, 0, 0);\n           *   });\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * image of the underside of a white umbrella and grided ceililng above\n           * image of the underside of a white umbrella and grided ceililng above\n           *\n           */ _main.default.prototype.loadImage = function(\n            path,\n            successCallback,\n            failureCallback\n          ) {\n            _main.default._validateParameters('loadImage', arguments);\n            var pImg = new _main.default.Image(1, 1, this);\n            var self = this;\n\n            var req = new Request(path, {\n              method: 'GET',\n              mode: 'cors'\n            });\n\n            fetch(path, req).then(function(response) {\n              // GIF section\n              var contentType = response.headers.get('content-type');\n              if (contentType === null) {\n                console.warn(\n                  'The image you loaded does not have a Content-Type header. If you are using the online editor consider reuploading the asset.'\n                );\n              }\n              if (contentType && contentType.includes('image/gif')) {\n                response.arrayBuffer().then(\n                  function(arrayBuffer) {\n                    if (arrayBuffer) {\n                      var byteArray = new Uint8Array(arrayBuffer);\n                      _createGif(\n                        byteArray,\n                        pImg,\n                        successCallback,\n                        failureCallback,\n                        function(pImg) {\n                          self._decrementPreload();\n                        }.bind(self)\n                      );\n                    }\n                  },\n                  function(e) {\n                    if (typeof failureCallback === 'function') {\n                      failureCallback(e);\n                    } else {\n                      console.error(e);\n                    }\n                  }\n                );\n              } else {\n                // Non-GIF Section\n                var img = new Image();\n\n                img.onload = function() {\n                  pImg.width = pImg.canvas.width = img.width;\n                  pImg.height = pImg.canvas.height = img.height;\n\n                  // Draw the image into the backing canvas of the p5.Image\n                  pImg.drawingContext.drawImage(img, 0, 0);\n                  pImg.modified = true;\n                  if (typeof successCallback === 'function') {\n                    successCallback(pImg);\n                  }\n                  self._decrementPreload();\n                };\n\n                img.onerror = function(e) {\n                  _main.default._friendlyFileLoadError(0, img.src);\n                  if (typeof failureCallback === 'function') {\n                    failureCallback(e);\n                  } else {\n                    console.error(e);\n                  }\n                };\n\n                // Set crossOrigin in case image is served with CORS headers.\n                // This will let us draw to the canvas without tainting it.\n                // See https://developer.mozilla.org/en-US/docs/HTML/CORS_Enabled_Image\n                // When using data-uris the file will be loaded locally\n                // so we don't need to worry about crossOrigin with base64 file types.\n                if (path.indexOf('data:image/') !== 0) {\n                  img.crossOrigin = 'Anonymous';\n                }\n                // start loading the image\n                img.src = path;\n              }\n              pImg.modified = true;\n            });\n            return pImg;\n          };\n\n          /**\n           * Helper function for loading GIF-based images\n           *\n           */\n          function _createGif(\n            arrayBuffer,\n            pImg,\n            successCallback,\n            failureCallback,\n            finishCallback\n          ) {\n            var gifReader = new _omggif.default.GifReader(arrayBuffer);\n            pImg.width = pImg.canvas.width = gifReader.width;\n            pImg.height = pImg.canvas.height = gifReader.height;\n            var frames = [];\n            var numFrames = gifReader.numFrames();\n            var framePixels = new Uint8ClampedArray(pImg.width * pImg.height * 4);\n            if (numFrames > 1) {\n              var loadGIFFrameIntoImage = function loadGIFFrameIntoImage(\n                frameNum,\n                gifReader\n              ) {\n                try {\n                  gifReader.decodeAndBlitFrameRGBA(frameNum, framePixels);\n                } catch (e) {\n                  _main.default._friendlyFileLoadError(8, pImg.src);\n                  if (typeof failureCallback === 'function') {\n                    failureCallback(e);\n                  } else {\n                    console.error(e);\n                  }\n                }\n              };\n              for (var j = 0; j < numFrames; j++) {\n                var frameInfo = gifReader.frameInfo(j);\n                // Some GIFs are encoded so that they expect the previous frame\n                // to be under the current frame. This can occur at a sub-frame level\n                // There are possible disposal codes but I didn't encounter any\n                if (gifReader.frameInfo(j).disposal === 1 && j > 0) {\n                  pImg.drawingContext.putImageData(frames[j - 1].image, 0, 0);\n                } else {\n                  pImg.drawingContext.clearRect(0, 0, pImg.width, pImg.height);\n                  framePixels = new Uint8ClampedArray(pImg.width * pImg.height * 4);\n                }\n                loadGIFFrameIntoImage(j, gifReader);\n                var imageData = new ImageData(framePixels, pImg.width, pImg.height);\n                pImg.drawingContext.putImageData(imageData, 0, 0);\n                frames.push({\n                  image: pImg.drawingContext.getImageData(0, 0, pImg.width, pImg.height),\n                  delay: frameInfo.delay * 10 //GIF stores delay in one-hundredth of a second, shift to ms\n                });\n              }\n\n              //Uses Netscape block encoding\n              //to repeat forever, this will be 0\n              //to repeat just once, this will be null\n              //to repeat N times (1<N), should contain integer for loop number\n              //this is changed to more usable values for us\n              //to repeat forever, loopCount = null\n              //everything else is just the number of loops\n              var loopLimit = gifReader.loopCount();\n              if (loopLimit === null) {\n                loopLimit = 1;\n              } else if (loopLimit === 0) {\n                loopLimit = null;\n              }\n\n              pImg.gifProperties = {\n                displayIndex: 0,\n                loopLimit: loopLimit,\n                loopCount: 0,\n                frames: frames,\n                numFrames: numFrames,\n                playing: true,\n                timeDisplayed: 0\n              };\n            }\n\n            if (typeof successCallback === 'function') {\n              successCallback(pImg);\n            }\n            finishCallback();\n          }\n\n          /**\n           * Validates clipping params. Per drawImage spec sWidth and sHight cannot be\n           * negative or greater than image intrinsic width and height\n           * @private\n           * @param {Number} sVal\n           * @param {Number} iVal\n           * @returns {Number}\n           * @private\n           */\n          function _sAssign(sVal, iVal) {\n            if (sVal > 0 && sVal < iVal) {\n              return sVal;\n            } else {\n              return iVal;\n            }\n          }\n\n          /**\n           * Draw an image to the p5.js canvas.\n           *\n           * This function can be used with different numbers of parameters. The\n           * simplest use requires only three parameters: img, x, and y—where (x, y) is\n           * the position of the image. Two more parameters can optionally be added to\n           * specify the width and height of the image.\n           *\n           * This function can also be used with all eight Number parameters. To\n           * differentiate between all these parameters, p5.js uses the language of\n           * \"destination rectangle\" (which corresponds to \"dx\", \"dy\", etc.) and \"source\n           * image\" (which corresponds to \"sx\", \"sy\", etc.) below. Specifying the\n           * \"source image\" dimensions can be useful when you want to display a\n           * subsection of the source image instead of the whole thing. Here's a diagram\n           * to explain further:\n           * <img src=\"assets/drawImage.png\"></img>\n           *\n           * @method image\n           * @param  {p5.Image|p5.Element} img    the image to display\n           * @param  {Number}   x     the x-coordinate of the top-left corner of the image\n           * @param  {Number}   y     the y-coordinate of the top-left corner of the image\n           * @param  {Number}   [width]  the width to draw the image\n           * @param  {Number}   [height] the height to draw the image\n           * @example\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/laDefense.jpg');\n           * }\n           * function setup() {\n           *   // Top-left corner of the img is at (0, 0)\n           *   // Width and height are the img's original width and height\n           *   image(img, 0, 0);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/laDefense.jpg');\n           * }\n           * function setup() {\n           *   background(50);\n           *   // Top-left corner of the img is at (10, 10)\n           *   // Width and height are 50 x 50\n           *   image(img, 10, 10, 50, 50);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * function setup() {\n           *   // Here, we use a callback to display the image after loading\n           *   loadImage('assets/laDefense.jpg', img => {\n           *     image(img, 0, 0);\n           *   });\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/gradient.png');\n           * }\n           * function setup() {\n           *   // 1. Background image\n           *   // Top-left corner of the img is at (0, 0)\n           *   // Width and height are the img's original width and height, 100 x 100\n           *   image(img, 0, 0);\n           *   // 2. Top right image\n           *   // Top-left corner of destination rectangle is at (50, 0)\n           *   // Destination rectangle width and height are 40 x 20\n           *   // The next parameters are relative to the source image:\n           *   // - Starting at position (50, 50) on the source image, capture a 50 x 50\n           *   // subsection\n           *   // - Draw this subsection to fill the dimensions of the destination rectangle\n           *   image(img, 50, 0, 40, 20, 50, 50, 50, 50);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * image of the underside of a white umbrella and gridded ceiling above\n           * image of the underside of a white umbrella and gridded ceiling above\n           *\n           */\n          /**\n           * @method image\n           * @param  {p5.Image|p5.Element} img\n           * @param  {Number}   dx     the x-coordinate of the destination\n           *                           rectangle in which to draw the source image\n           * @param  {Number}   dy     the y-coordinate of the destination\n           *                           rectangle in which to draw the source image\n           * @param  {Number}   dWidth  the width of the destination rectangle\n           * @param  {Number}   dHeight the height of the destination rectangle\n           * @param  {Number}   sx     the x-coordinate of the subsection of the source\n           * image to draw into the destination rectangle\n           * @param  {Number}   sy     the y-coordinate of the subsection of the source\n           * image to draw into the destination rectangle\n           * @param {Number}    [sWidth] the width of the subsection of the\n           *                           source image to draw into the destination\n           *                           rectangle\n           * @param {Number}    [sHeight] the height of the subsection of the\n           *                            source image to draw into the destination rectangle\n           */\n          _main.default.prototype.image = function(\n            img,\n            dx,\n            dy,\n            dWidth,\n            dHeight,\n            sx,\n            sy,\n            sWidth,\n            sHeight\n          ) {\n            // set defaults per spec: https://goo.gl/3ykfOq\n\n            _main.default._validateParameters('image', arguments);\n\n            var defW = img.width;\n            var defH = img.height;\n\n            if (img.elt && img.elt.videoWidth && !img.canvas) {\n              // video no canvas\n              defW = img.elt.videoWidth;\n              defH = img.elt.videoHeight;\n            }\n\n            var _dx = dx;\n            var _dy = dy;\n            var _dw = dWidth || defW;\n            var _dh = dHeight || defH;\n            var _sx = sx || 0;\n            var _sy = sy || 0;\n            var _sw = sWidth || defW;\n            var _sh = sHeight || defH;\n\n            _sw = _sAssign(_sw, defW);\n            _sh = _sAssign(_sh, defH);\n\n            // This part needs cleanup and unit tests\n            // see issues https://github.com/processing/p5.js/issues/1741\n            // and https://github.com/processing/p5.js/issues/1673\n            var pd = 1;\n\n            if (img.elt && !img.canvas && img.elt.style.width) {\n              //if img is video and img.elt.size() has been used and\n              //no width passed to image()\n              if (img.elt.videoWidth && !dWidth) {\n                pd = img.elt.videoWidth;\n              } else {\n                //all other cases\n                pd = img.elt.width;\n              }\n              pd /= parseInt(img.elt.style.width, 10);\n            }\n\n            _sx *= pd;\n            _sy *= pd;\n            _sh *= pd;\n            _sw *= pd;\n\n            var vals = _helpers.default.modeAdjust(\n              _dx,\n              _dy,\n              _dw,\n              _dh,\n              this._renderer._imageMode\n            );\n\n            // tint the image if there is a tint\n            this._renderer.image(img, _sx, _sy, _sw, _sh, vals.x, vals.y, vals.w, vals.h);\n          };\n\n          /**\n           * Sets the fill value for displaying images. Images can be tinted to\n           * specified colors or made transparent by including an alpha value.\n           * <br><br>\n           * To apply transparency to an image without affecting its color, use\n           * white as the tint color and specify an alpha value. For instance,\n           * tint(255, 128) will make an image 50% transparent (assuming the default\n           * alpha range of 0-255, which can be changed with <a href=\"#/p5/colorMode\">colorMode()</a>).\n           * <br><br>\n           * The value for the gray parameter must be less than or equal to the current\n           * maximum value as specified by <a href=\"#/p5/colorMode\">colorMode()</a>. The default maximum value is\n           * 255.\n           *\n           *\n           * @method tint\n           * @param  {Number}        v1      red or hue value relative to\n           *                                 the current color range\n           * @param  {Number}        v2      green or saturation value\n           *                                 relative to the current color range\n           * @param  {Number}        v3      blue or brightness value\n           *                                 relative to the current color range\n           * @param  {Number}        [alpha]\n           *\n           * @example\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/laDefense.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   tint(0, 153, 204); // Tint blue\n           *   image(img, 50, 0);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/laDefense.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   tint(0, 153, 204, 126); // Tint blue and set transparency\n           *   image(img, 50, 0);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/laDefense.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   tint(255, 126); // Apply transparency without changing color\n           *   image(img, 50, 0);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 2 side by side images of umbrella and ceiling, one image with blue tint\n           * Images of umbrella and ceiling, one half of image with blue tint\n           * 2 side by side images of umbrella and ceiling, one image translucent\n           *\n           */\n\n          /**\n           * @method tint\n           * @param  {String}        value   a color string\n           */\n\n          /**\n           * @method tint\n           * @param  {Number}        gray   a gray value\n           * @param  {Number}        [alpha]\n           */\n\n          /**\n           * @method tint\n           * @param  {Number[]}      values  an array containing the red,green,blue &\n           *                                 and alpha components of the color\n           */\n\n          /**\n           * @method tint\n           * @param  {p5.Color}      color   the tint color\n           */\n          _main.default.prototype.tint = function() {\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default._validateParameters('tint', args);\n            var c = this.color.apply(this, args);\n            this._renderer._tint = c.levels;\n          };\n\n          /**\n           * Removes the current fill value for displaying images and reverts to\n           * displaying images with their original hues.\n           *\n           * @method noTint\n           * @example\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/bricks.jpg');\n           * }\n           * function setup() {\n           *   tint(0, 153, 204); // Tint blue\n           *   image(img, 0, 0);\n           *   noTint(); // Disable tint\n           *   image(img, 50, 0);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 2 side by side images of bricks, left image with blue tint\n           *\n           */\n          _main.default.prototype.noTint = function() {\n            this._renderer._tint = null;\n          };\n\n          /**\n           * Apply the current tint color to the input image, return the resulting\n           * canvas.\n           *\n           * @private\n           * @param {p5.Image} The image to be tinted\n           * @return {canvas} The resulting tinted canvas\n           *\n           */\n          _main.default.prototype._getTintedImageCanvas = function(img) {\n            if (!img.canvas) {\n              return img;\n            }\n            var pixels = _filters.default._toPixels(img.canvas);\n            var tmpCanvas = document.createElement('canvas');\n            tmpCanvas.width = img.canvas.width;\n            tmpCanvas.height = img.canvas.height;\n            var tmpCtx = tmpCanvas.getContext('2d');\n            var id = tmpCtx.createImageData(img.canvas.width, img.canvas.height);\n            var newPixels = id.data;\n\n            for (var i = 0; i < pixels.length; i += 4) {\n              var r = pixels[i];\n              var g = pixels[i + 1];\n              var b = pixels[i + 2];\n              var a = pixels[i + 3];\n\n              newPixels[i] = r * this._renderer._tint[0] / 255;\n              newPixels[i + 1] = g * this._renderer._tint[1] / 255;\n              newPixels[i + 2] = b * this._renderer._tint[2] / 255;\n              newPixels[i + 3] = a * this._renderer._tint[3] / 255;\n            }\n\n            tmpCtx.putImageData(id, 0, 0);\n            return tmpCanvas;\n          };\n\n          /**\n           * Set image mode. Modifies the location from which images are drawn by\n           * changing the way in which parameters given to <a href=\"#/p5/image\">image()</a> are interpreted.\n           * The default mode is imageMode(CORNER), which interprets the second and\n           * third parameters of <a href=\"#/p5/image\">image()</a> as the upper-left corner of the image. If\n           * two additional parameters are specified, they are used to set the image's\n           * width and height.\n           * <br><br>\n           * imageMode(CORNERS) interprets the second and third parameters of <a href=\"#/p5/image\">image()</a>\n           * as the location of one corner, and the fourth and fifth parameters as the\n           * opposite corner.\n           * <br><br>\n           * imageMode(CENTER) interprets the second and third parameters of <a href=\"#/p5/image\">image()</a>\n           * as the image's center point. If two additional parameters are specified,\n           * they are used to set the image's width and height.\n           *\n           * @method imageMode\n           * @param {Constant} mode either CORNER, CORNERS, or CENTER\n           * @example\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/bricks.jpg');\n           * }\n           * function setup() {\n           *   imageMode(CORNER);\n           *   image(img, 10, 10, 50, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/bricks.jpg');\n           * }\n           * function setup() {\n           *   imageMode(CORNERS);\n           *   image(img, 10, 10, 90, 40);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/bricks.jpg');\n           * }\n           * function setup() {\n           *   imageMode(CENTER);\n           *   image(img, 50, 50, 80, 80);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * small square image of bricks\n           * horizontal rectangle image of bricks\n           * large square image of bricks\n           *\n           */\n          _main.default.prototype.imageMode = function(m) {\n            _main.default._validateParameters('imageMode', arguments);\n            if (\n              m === constants.CORNER ||\n              m === constants.CORNERS ||\n              m === constants.CENTER\n            ) {\n              this._renderer._imageMode = m;\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        {\n          '../core/constants': 43,\n          '../core/error_helpers': 45,\n          '../core/helpers': 46,\n          '../core/main': 50,\n          './filters': 71,\n          omggif: 33\n        }\n      ],\n      74: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var _filters = _interopRequireDefault(_dereq_('./filters'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Image\n           * @submodule Image\n           * @requires core\n           * @requires constants\n           * @requires filters\n           */ /**\n           * This module defines the <a href=\"#/p5.Image\">p5.Image</a> class and P5 methods for\n           * drawing images to the main display canvas.\n           */ /*\n                                                                                                                                                                   * Class methods\n                                                                                                                                                                   */ /**\n           * Creates a new <a href=\"#/p5.Image\">p5.Image</a>. A <a href=\"#/p5.Image\">p5.Image</a> is a canvas backed representation of an\n           * image.\n           * <br><br>\n           * p5 can display .gif, .jpg and .png images. Images may be displayed\n           * in 2D and 3D space. Before an image is used, it must be loaded with the\n           * <a href=\"#/p5/loadImage\">loadImage()</a> function. The <a href=\"#/p5.Image\">p5.Image</a> class contains fields for the width and\n           * height of the image, as well as an array called <a href=\"#/p5.Image/pixels\">pixels[]</a> that contains the\n           * values for every pixel in the image.\n           * <br><br>\n           * The methods described below allow easy access to the image's pixels and\n           * alpha channel and simplify the process of compositing.\n           * <br><br>\n           * Before using the <a href=\"#/p5.Image/pixels\">pixels[]</a> array, be sure to use the <a href=\"#/p5.Image/loadPixels\">loadPixels()</a> method on\n           * the image to make sure that the pixel data is properly loaded.\n           * @example\n           * <div><code>\n           * function setup() {\n           *   let img = createImage(100, 100); // same as new p5.Image(100, 100);\n           *   img.loadPixels();\n           *   createCanvas(100, 100);\n           *   background(0);\n           *\n           *   // helper for writing color to array\n           *   function writeColor(image, x, y, red, green, blue, alpha) {\n           *     let index = (x + y * width) * 4;\n           *     image.pixels[index] = red;\n           *     image.pixels[index + 1] = green;\n           *     image.pixels[index + 2] = blue;\n           *     image.pixels[index + 3] = alpha;\n           *   }\n           *\n           *   let x, y;\n           *   // fill with random colors\n           *   for (y = 0; y < img.height; y++) {\n           *     for (x = 0; x < img.width; x++) {\n           *       let red = random(255);\n           *       let green = random(255);\n           *       let blue = random(255);\n           *       let alpha = 255;\n           *       writeColor(img, x, y, red, green, blue, alpha);\n           *     }\n           *   }\n           *\n           *   // draw a red line\n           *   y = 0;\n           *   for (x = 0; x < img.width; x++) {\n           *     writeColor(img, x, y, 255, 0, 0, 255);\n           *   }\n           *\n           *   // draw a green line\n           *   y = img.height - 1;\n           *   for (x = 0; x < img.width; x++) {\n           *     writeColor(img, x, y, 0, 255, 0, 255);\n           *   }\n           *\n           *   img.updatePixels();\n           *   image(img, 0, 0);\n           * }\n           * </code></div>\n           *\n           *\n           * @class p5.Image\n           * @constructor\n           * @param {Number} width\n           * @param {Number} height\n           */ _main.default.Image = function(width, height) {\n            /**\n             * Image width.\n             * @property {Number} width\n             * @readOnly\n             * @example\n             * <div><code>\n             * let img;\n             * function preload() {\n             *   img = loadImage('assets/rockies.jpg');\n             * }\n             *\n             * function setup() {\n             *   createCanvas(100, 100);\n             *   image(img, 0, 0);\n             *   for (let i = 0; i < img.width; i++) {\n             *     let c = img.get(i, img.height / 2);\n             *     stroke(c);\n             *     line(i, height / 2, i, height);\n             *   }\n             * }\n             * </code></div>\n             *\n             * @alt\n             * rocky mountains in top and horizontal lines in corresponding colors in bottom.\n             *\n             */ this.width = width;\n            /**\n             * Image height.\n             * @property {Number} height\n             * @readOnly\n             * @example\n             * <div><code>\n             * let img;\n             * function preload() {\n             *   img = loadImage('assets/rockies.jpg');\n             * }\n             *\n             * function setup() {\n             *   createCanvas(100, 100);\n             *   image(img, 0, 0);\n             *   for (let i = 0; i < img.height; i++) {\n             *     let c = img.get(img.width / 2, i);\n             *     stroke(c);\n             *     line(0, i, width / 2, i);\n             *   }\n             * }\n             * </code></div>\n             *\n             * @alt\n             * rocky mountains on right and vertical lines in corresponding colors on left.\n             *\n             */ this.height = height;\n            this.canvas = document.createElement('canvas');\n            this.canvas.width = this.width;\n            this.canvas.height = this.height;\n            this.drawingContext = this.canvas.getContext('2d');\n            this._pixelsState = this;\n            this._pixelDensity = 1;\n            //Object for working with GIFs, defaults to null\n            this.gifProperties = null;\n            //For WebGL Texturing only: used to determine whether to reupload texture to GPU\n            this._modified = false;\n            /**\n             * Array containing the values for all the pixels in the display window.\n             * These values are numbers. This array is the size (include an appropriate\n             * factor for pixelDensity) of the display window x4,\n             * representing the R, G, B, A values in order for each pixel, moving from\n             * left to right across each row, then down each column. Retina and other\n             * high density displays may have more pixels (by a factor of\n             * pixelDensity^2).\n             * For example, if the image is 100x100 pixels, there will be 40,000. With\n             * pixelDensity = 2, there will be 160,000. The first four values\n             * (indices 0-3) in the array will be the R, G, B, A values of the pixel at\n             * (0, 0). The second four values (indices 4-7) will contain the R, G, B, A\n             * values of the pixel at (1, 0). More generally, to set values for a pixel\n             * at (x, y):\n             * ```javascript\n             * let d = pixelDensity();\n             * for (let i = 0; i < d; i++) {\n             *   for (let j = 0; j < d; j++) {\n             *     // loop over\n             *     index = 4 * ((y * d + j) * width * d + (x * d + i));\n             *     pixels[index] = r;\n             *     pixels[index+1] = g;\n             *     pixels[index+2] = b;\n             *     pixels[index+3] = a;\n             *   }\n             * }\n             * ```\n             * <br><br>\n             * Before accessing this array, the data must loaded with the <a href=\"#/p5.Image/loadPixels\">loadPixels()</a>\n             * function. After the array data has been modified, the <a href=\"#/p5.Image/updatePixels\">updatePixels()</a>\n             * function must be run to update the changes.\n             * @property {Number[]} pixels\n             * @example\n             * <div>\n             * <code>\n             * let img = createImage(66, 66);\n             * img.loadPixels();\n             * for (let i = 0; i < img.width; i++) {\n             *   for (let j = 0; j < img.height; j++) {\n             *     img.set(i, j, color(0, 90, 102));\n             *   }\n             * }\n             * img.updatePixels();\n             * image(img, 17, 17);\n             * </code>\n             * </div>\n             * <div>\n             * <code>\n             * let pink = color(255, 102, 204);\n             * let img = createImage(66, 66);\n             * img.loadPixels();\n             * for (let i = 0; i < 4 * (width * height / 2); i += 4) {\n             *   img.pixels[i] = red(pink);\n             *   img.pixels[i + 1] = green(pink);\n             *   img.pixels[i + 2] = blue(pink);\n             *   img.pixels[i + 3] = alpha(pink);\n             * }\n             * img.updatePixels();\n             * image(img, 17, 17);\n             * </code>\n             * </div>\n             *\n             * @alt\n             * 66x66 turquoise rect in center of canvas\n             * 66x66 pink rect in center of canvas\n             *\n             */\n            this.pixels = [];\n          };\n\n          /**\n           * Helper function for animating GIF-based images with time\n           *\n           */\n          _main.default.Image.prototype._animateGif = function(pInst) {\n            var props = this.gifProperties;\n            if (props.playing) {\n              props.timeDisplayed += pInst.deltaTime;\n              var curDelay = props.frames[props.displayIndex].delay;\n              if (props.timeDisplayed >= curDelay) {\n                //GIF is bound to 'realtime' so can skip frames\n                var skips = Math.floor(props.timeDisplayed / curDelay);\n                props.timeDisplayed = 0;\n                props.displayIndex += skips;\n                props.loopCount = Math.floor(props.displayIndex / props.numFrames);\n                if (props.loopLimit !== null && props.loopCount >= props.loopLimit) {\n                  props.playing = false;\n                } else {\n                  var ind = props.displayIndex % props.numFrames;\n                  this.drawingContext.putImageData(props.frames[ind].image, 0, 0);\n                  props.displayIndex = ind;\n                  this.setModified(true);\n                }\n              }\n            }\n          };\n\n          /**\n           * Helper fxn for sharing pixel methods\n           *\n           */\n          _main.default.Image.prototype._setProperty = function(prop, value) {\n            this[prop] = value;\n            this.setModified(true);\n          };\n\n          /**\n           * Loads the pixels data for this image into the [pixels] attribute.\n           *\n           * @method loadPixels\n           * @example\n           * <div><code>\n           * let myImage;\n           * let halfImage;\n           *\n           * function preload() {\n           *   myImage = loadImage('assets/rockies.jpg');\n           * }\n           *\n           * function setup() {\n           *   myImage.loadPixels();\n           *   halfImage = 4 * myImage.width * myImage.height / 2;\n           *   for (let i = 0; i < halfImage; i++) {\n           *     myImage.pixels[i + halfImage] = myImage.pixels[i];\n           *   }\n           *   myImage.updatePixels();\n           * }\n           *\n           * function draw() {\n           *   image(myImage, 0, 0, width, height);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * 2 images of rocky mountains vertically stacked\n           *\n           */\n          _main.default.Image.prototype.loadPixels = function() {\n            _main.default.Renderer2D.prototype.loadPixels.call(this);\n            this.setModified(true);\n          };\n\n          /**\n           * Updates the backing canvas for this image with the contents of\n           * the [pixels] array.\n           * <br><br>\n           * If this image is an animated GIF then the pixels will be updated\n           * in the frame that is currently displayed.\n           *\n           * @method updatePixels\n           * @param {Integer} x x-offset of the target update area for the\n           *                              underlying canvas\n           * @param {Integer} y y-offset of the target update area for the\n           *                              underlying canvas\n           * @param {Integer} w height of the target update area for the\n           *                              underlying canvas\n           * @param {Integer} h height of the target update area for the\n           *                              underlying canvas\n           * @example\n           * <div><code>\n           * let myImage;\n           * let halfImage;\n           *\n           * function preload() {\n           *   myImage = loadImage('assets/rockies.jpg');\n           * }\n           *\n           * function setup() {\n           *   myImage.loadPixels();\n           *   halfImage = 4 * myImage.width * myImage.height / 2;\n           *   for (let i = 0; i < halfImage; i++) {\n           *     myImage.pixels[i + halfImage] = myImage.pixels[i];\n           *   }\n           *   myImage.updatePixels();\n           * }\n           *\n           * function draw() {\n           *   image(myImage, 0, 0, width, height);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * 2 images of rocky mountains vertically stacked\n           *\n           */\n          /**\n           * @method updatePixels\n           */\n          _main.default.Image.prototype.updatePixels = function(x, y, w, h) {\n            _main.default.Renderer2D.prototype.updatePixels.call(this, x, y, w, h);\n            this.setModified(true);\n          };\n\n          /**\n           * Get a region of pixels from an image.\n           *\n           * If no params are passed, the whole image is returned.\n           * If x and y are the only params passed a single pixel is extracted.\n           * If all params are passed a rectangle region is extracted and a <a href=\"#/p5.Image\">p5.Image</a>\n           * is returned.\n           *\n           * @method get\n           * @param  {Number}               x x-coordinate of the pixel\n           * @param  {Number}               y y-coordinate of the pixel\n           * @param  {Number}               w width\n           * @param  {Number}               h height\n           * @return {p5.Image}             the rectangle <a href=\"#/p5.Image\">p5.Image</a>\n           * @example\n           * <div><code>\n           * let myImage;\n           * let c;\n           *\n           * function preload() {\n           *   myImage = loadImage('assets/rockies.jpg');\n           * }\n           *\n           * function setup() {\n           *   background(myImage);\n           *   noStroke();\n           *   c = myImage.get(60, 90);\n           *   fill(c);\n           *   rect(25, 25, 50, 50);\n           * }\n           *\n           * //get() returns color here\n           * </code></div>\n           *\n           * @alt\n           * image of rocky mountains with 50x50 green rect in front\n           *\n           */\n          /**\n           * @method get\n           * @return {p5.Image}      the whole <a href=\"#/p5.Image\">p5.Image</a>\n           */\n          /**\n           * @method get\n           * @param  {Number}        x\n           * @param  {Number}        y\n           * @return {Number[]}      color of pixel at x,y in array format [R, G, B, A]\n           */\n          _main.default.Image.prototype.get = function(x, y, w, h) {\n            _main.default._validateParameters('p5.Image.get', arguments);\n            return _main.default.Renderer2D.prototype.get.apply(this, arguments);\n          };\n\n          _main.default.Image.prototype._getPixel =\n            _main.default.Renderer2D.prototype._getPixel;\n\n          /**\n           * Set the color of a single pixel or write an image into\n           * this <a href=\"#/p5.Image\">p5.Image</a>.\n           *\n           * Note that for a large number of pixels this will\n           * be slower than directly manipulating the pixels array\n           * and then calling <a href=\"#/p5.Image/updatePixels\">updatePixels()</a>.\n           *\n           * @method set\n           * @param {Number}              x x-coordinate of the pixel\n           * @param {Number}              y y-coordinate of the pixel\n           * @param {Number|Number[]|Object}   a grayscale value | pixel array |\n           *                                a <a href=\"#/p5.Color\">p5.Color</a> | image to copy\n           * @example\n           * <div>\n           * <code>\n           * let img = createImage(66, 66);\n           * img.loadPixels();\n           * for (let i = 0; i < img.width; i++) {\n           *   for (let j = 0; j < img.height; j++) {\n           *     img.set(i, j, color(0, 90, 102, (i % img.width) * 2));\n           *   }\n           * }\n           * img.updatePixels();\n           * image(img, 17, 17);\n           * image(img, 34, 34);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 2 gradated dark turquoise rects fade left. 1 center 1 bottom right of canvas\n           *\n           */\n          _main.default.Image.prototype.set = function(x, y, imgOrCol) {\n            _main.default.Renderer2D.prototype.set.call(this, x, y, imgOrCol);\n            this.setModified(true);\n          };\n\n          /**\n    * Resize the image to a new width and height. To make the image scale\n    * proportionally, use 0 as the value for the wide or high parameter.\n    * For instance, to make the width of an image 150 pixels, and change\n    * the height using the same proportion, use resize(150, 0).\n    *\n    * @method resize\n    * @param {Number} width the resized image width\n    * @param {Number} height the resized image height\n    * @example\n    * <div><code>\n    * let img;\n    *\n    * function preload() {\n    *   img = loadImage('assets/rockies.jpg');\n    * }\n   \n    * function draw() {\n    *   image(img, 0, 0);\n    * }\n    *\n    * function mousePressed() {\n    *   img.resize(50, 100);\n    * }\n    * </code></div>\n    *\n    * @alt\n    * image of rocky mountains. zoomed in\n    *\n    */\n          _main.default.Image.prototype.resize = function(width, height) {\n            // Copy contents to a temporary canvas, resize the original\n            // and then copy back.\n            //\n            // There is a faster approach that involves just one copy and swapping the\n            // this.canvas reference. We could switch to that approach if (as i think\n            // is the case) there an expectation that the user would not hold a\n            // reference to the backing canvas of a p5.Image. But since we do not\n            // enforce that at the moment, I am leaving in the slower, but safer\n            // implementation.\n\n            // auto-resize\n            if (width === 0 && height === 0) {\n              width = this.canvas.width;\n              height = this.canvas.height;\n            } else if (width === 0) {\n              width = this.canvas.width * height / this.canvas.height;\n            } else if (height === 0) {\n              height = this.canvas.height * width / this.canvas.width;\n            }\n\n            width = Math.floor(width);\n            height = Math.floor(height);\n\n            var tempCanvas = document.createElement('canvas');\n            tempCanvas.width = width;\n            tempCanvas.height = height;\n\n            if (this.gifProperties) {\n              var props = this.gifProperties;\n              //adapted from github.com/LinusU/resize-image-data\n              var nearestNeighbor = function nearestNeighbor(src, dst) {\n                var pos = 0;\n                for (var y = 0; y < dst.height; y++) {\n                  for (var x = 0; x < dst.width; x++) {\n                    var srcX = Math.floor(x * src.width / dst.width);\n                    var srcY = Math.floor(y * src.height / dst.height);\n                    var srcPos = (srcY * src.width + srcX) * 4;\n                    dst.data[pos++] = src.data[srcPos++]; // R\n                    dst.data[pos++] = src.data[srcPos++]; // G\n                    dst.data[pos++] = src.data[srcPos++]; // B\n                    dst.data[pos++] = src.data[srcPos++]; // A\n                  }\n                }\n              };\n              for (var i = 0; i < props.numFrames; i++) {\n                var resizedImageData = this.drawingContext.createImageData(width, height);\n\n                nearestNeighbor(props.frames[i].image, resizedImageData);\n                props.frames[i].image = resizedImageData;\n              }\n            }\n\n            // prettier-ignore\n            tempCanvas.getContext('2d').drawImage(\n  this.canvas,\n  0, 0, this.canvas.width, this.canvas.height,\n  0, 0, tempCanvas.width, tempCanvas.height);\n\n            // Resize the original canvas, which will clear its contents\n            this.canvas.width = this.width = width;\n            this.canvas.height = this.height = height;\n\n            //Copy the image back\n\n            // prettier-ignore\n            this.drawingContext.drawImage(\n  tempCanvas,\n  0, 0, width, height,\n  0, 0, width, height);\n\n            if (this.pixels.length > 0) {\n              this.loadPixels();\n            }\n\n            this.setModified(true);\n          };\n\n          /**\n           * Copies a region of pixels from one image to another. If no\n           * srcImage is specified this is used as the source. If the source\n           * and destination regions aren't the same size, it will\n           * automatically resize source pixels to fit the specified\n           * target region.\n           *\n           * @method copy\n           * @param  {p5.Image|p5.Element} srcImage source image\n           * @param  {Integer} sx X coordinate of the source's upper left corner\n           * @param  {Integer} sy Y coordinate of the source's upper left corner\n           * @param  {Integer} sw source image width\n           * @param  {Integer} sh source image height\n           * @param  {Integer} dx X coordinate of the destination's upper left corner\n           * @param  {Integer} dy Y coordinate of the destination's upper left corner\n           * @param  {Integer} dw destination image width\n           * @param  {Integer} dh destination image height\n           * @example\n           * <div><code>\n           * let photo;\n           * let bricks;\n           * let x;\n           * let y;\n           *\n           * function preload() {\n           *   photo = loadImage('assets/rockies.jpg');\n           *   bricks = loadImage('assets/bricks.jpg');\n           * }\n           *\n           * function setup() {\n           *   x = bricks.width / 2;\n           *   y = bricks.height / 2;\n           *   photo.copy(bricks, 0, 0, x, y, 0, 0, x, y);\n           *   image(photo, 0, 0);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * image of rocky mountains and smaller image on top of bricks at top left\n           *\n           */\n          /**\n           * @method copy\n           * @param  {Integer} sx\n           * @param  {Integer} sy\n           * @param  {Integer} sw\n           * @param  {Integer} sh\n           * @param  {Integer} dx\n           * @param  {Integer} dy\n           * @param  {Integer} dw\n           * @param  {Integer} dh\n           */\n          _main.default.Image.prototype.copy = function() {\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default.prototype.copy.apply(this, args);\n          };\n\n          /**\n           * Masks part of an image from displaying by loading another\n           * image and using its alpha channel as an alpha channel for\n           * this image.\n           *\n           * @method mask\n           * @param {p5.Image} srcImage source image\n           * @example\n           * <div><code>\n           * let photo, maskImage;\n           * function preload() {\n           *   photo = loadImage('assets/rockies.jpg');\n           *   maskImage = loadImage('assets/mask2.png');\n           * }\n           *\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   photo.mask(maskImage);\n           *   image(photo, 0, 0);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * image of rocky mountains with white at right\n           *\n           *\n           * http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/\n           *\n           */\n          // TODO: - Accept an array of alpha values.\n          //       - Use other channels of an image. p5 uses the\n          //       blue channel (which feels kind of arbitrary). Note: at the\n          //       moment this method does not match native processing's original\n          //       functionality exactly.\n          _main.default.Image.prototype.mask = function(p5Image) {\n            if (p5Image === undefined) {\n              p5Image = this;\n            }\n            var currBlend = this.drawingContext.globalCompositeOperation;\n\n            var scaleFactor = 1;\n            if (p5Image instanceof _main.default.Renderer) {\n              scaleFactor = p5Image._pInst._pixelDensity;\n            }\n\n            var copyArgs = [\n              p5Image,\n              0,\n              0,\n              scaleFactor * p5Image.width,\n              scaleFactor * p5Image.height,\n              0,\n              0,\n              this.width,\n              this.height\n            ];\n\n            this.drawingContext.globalCompositeOperation = 'destination-in';\n            _main.default.Image.prototype.copy.apply(this, copyArgs);\n            this.drawingContext.globalCompositeOperation = currBlend;\n            this.setModified(true);\n          };\n\n          /**\n           * Applies an image filter to a <a href=\"#/p5.Image\">p5.Image</a>\n           *\n           * @method filter\n           * @param  {Constant} filterType  either THRESHOLD, GRAY, OPAQUE, INVERT,\n           *                                POSTERIZE, BLUR, ERODE, DILATE or BLUR.\n           *                                See Filters.js for docs on\n           *                                each available filter\n           * @param  {Number} [filterParam] an optional parameter unique\n           *                                to each filter, see above\n           * @example\n           * <div><code>\n           * let photo1;\n           * let photo2;\n           *\n           * function preload() {\n           *   photo1 = loadImage('assets/rockies.jpg');\n           *   photo2 = loadImage('assets/rockies.jpg');\n           * }\n           *\n           * function setup() {\n           *   photo2.filter(GRAY);\n           *   image(photo1, 0, 0);\n           *   image(photo2, width / 2, 0);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * 2 images of rocky mountains left one in color, right in black and white\n           *\n           */\n          _main.default.Image.prototype.filter = function(operation, value) {\n            _filters.default.apply(this.canvas, _filters.default[operation], value);\n            this.setModified(true);\n          };\n\n          /**\n           * Copies a region of pixels from one image to another, using a specified\n           * blend mode to do the operation.\n           *\n           * @method blend\n           * @param  {p5.Image} srcImage source image\n           * @param  {Integer} sx X coordinate of the source's upper left corner\n           * @param  {Integer} sy Y coordinate of the source's upper left corner\n           * @param  {Integer} sw source image width\n           * @param  {Integer} sh source image height\n           * @param  {Integer} dx X coordinate of the destination's upper left corner\n           * @param  {Integer} dy Y coordinate of the destination's upper left corner\n           * @param  {Integer} dw destination image width\n           * @param  {Integer} dh destination image height\n           * @param  {Constant} blendMode the blend mode. either\n           *     BLEND, DARKEST, LIGHTEST, DIFFERENCE,\n           *     MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\n           *     SOFT_LIGHT, DODGE, BURN, ADD or NORMAL.\n           *\n           * Available blend modes are: normal | multiply | screen | overlay |\n           *            darken | lighten | color-dodge | color-burn | hard-light |\n           *            soft-light | difference | exclusion | hue | saturation |\n           *            color | luminosity\n           *\n           *\n           * http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/\n           * @example\n           * <div><code>\n           * let mountains;\n           * let bricks;\n           *\n           * function preload() {\n           *   mountains = loadImage('assets/rockies.jpg');\n           *   bricks = loadImage('assets/bricks_third.jpg');\n           * }\n           *\n           * function setup() {\n           *   mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, ADD);\n           *   image(mountains, 0, 0);\n           *   image(bricks, 0, 0);\n           * }\n           * </code></div>\n           * <div><code>\n           * let mountains;\n           * let bricks;\n           *\n           * function preload() {\n           *   mountains = loadImage('assets/rockies.jpg');\n           *   bricks = loadImage('assets/bricks_third.jpg');\n           * }\n           *\n           * function setup() {\n           *   mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST);\n           *   image(mountains, 0, 0);\n           *   image(bricks, 0, 0);\n           * }\n           * </code></div>\n           * <div><code>\n           * let mountains;\n           * let bricks;\n           *\n           * function preload() {\n           *   mountains = loadImage('assets/rockies.jpg');\n           *   bricks = loadImage('assets/bricks_third.jpg');\n           * }\n           *\n           * function setup() {\n           *   mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST);\n           *   image(mountains, 0, 0);\n           *   image(bricks, 0, 0);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * image of rocky mountains. Brick images on left and right. Right overexposed\n           * image of rockies. Brickwall images on left and right. Right mortar transparent\n           * image of rockies. Brickwall images on left and right. Right translucent\n           *\n           */\n          /**\n           * @method blend\n           * @param  {Integer} sx\n           * @param  {Integer} sy\n           * @param  {Integer} sw\n           * @param  {Integer} sh\n           * @param  {Integer} dx\n           * @param  {Integer} dy\n           * @param  {Integer} dw\n           * @param  {Integer} dh\n           * @param  {Constant} blendMode\n           */\n          _main.default.Image.prototype.blend = function() {\n            for (\n              var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;\n              _key2 < _len2;\n              _key2++\n            ) {\n              args[_key2] = arguments[_key2];\n            }\n            _main.default.prototype.blend.apply(this, args);\n            this.setModified(true);\n          };\n\n          /**\n           * helper method for web GL mode to indicate that an image has been\n           * changed or unchanged since last upload. gl texture upload will\n           * set this value to false after uploading the texture.\n           * @method setModified\n           * @param {boolean} val sets whether or not the image has been\n           * modified.\n           * @private\n           */\n          _main.default.Image.prototype.setModified = function(val) {\n            this._modified = val; //enforce boolean?\n          };\n\n          /**\n           * helper method for web GL mode to figure out if the image\n           * has been modified and might need to be re-uploaded to texture\n           * memory between frames.\n           * @method isModified\n           * @private\n           * @return {boolean} a boolean indicating whether or not the\n           * image has been updated or modified since last texture upload.\n           */\n          _main.default.Image.prototype.isModified = function() {\n            return this._modified;\n          };\n\n          /**\n           * Saves the image to a file and force the browser to download it.\n           * Accepts two strings for filename and file extension\n           * Supports png (default), jpg, and gif\n           *<br><br>\n           * Note that the file will only be downloaded as an animated GIF\n           * if the p5.Image was loaded from a GIF file.\n           * @method save\n           * @param {String} filename give your file a name\n           * @param  {String} extension 'png' or 'jpg'\n           * @example\n           * <div><code>\n           * let photo;\n           *\n           * function preload() {\n           *   photo = loadImage('assets/rockies.jpg');\n           * }\n           *\n           * function draw() {\n           *   image(photo, 0, 0);\n           * }\n           *\n           * function keyTyped() {\n           *   if (key === 's') {\n           *     photo.save('photo', 'png');\n           *   }\n           * }\n           * </code></div>\n           *\n           * @alt\n           * image of rocky mountains.\n           *\n           */\n          _main.default.Image.prototype.save = function(filename, extension) {\n            if (this.gifProperties) {\n              _main.default.prototype.saveGif(this, filename);\n            } else {\n              _main.default.prototype.saveCanvas(this.canvas, filename, extension);\n            }\n          };\n\n          // GIF Section\n          /**\n           * Starts an animated GIF over at the beginning state.\n           *\n           * @method reset\n           * @example\n           * <div><code>\n           * let gif;\n           *\n           * function preload() {\n           *   gif = loadImage('assets/arnott-wallace-wink-loop-once.gif');\n           * }\n           *\n           * function draw() {\n           *   background(255);\n           *   // The GIF file that we loaded only loops once\n           *   // so it freezes on the last frame after playing through\n           *   image(gif, 0, 0);\n           * }\n           *\n           * function mousePressed() {\n           *   // Click to reset the GIF and begin playback from start\n           *   gif.reset();\n           * }\n           * </code></div>\n           * @alt\n           * Animated image of a cartoon face that winks once and then freezes\n           * When you click it animates again, winks once and freezes\n           *\n           */\n          _main.default.Image.prototype.reset = function() {\n            if (this.gifProperties) {\n              var props = this.gifProperties;\n              props.playing = true;\n              props.timeSinceStart = 0;\n              props.timeDisplayed = 0;\n              props.loopCount = 0;\n              props.displayIndex = 0;\n              this.drawingContext.putImageData(props.frames[0].image, 0, 0);\n            }\n          };\n\n          /**\n           * Gets the index for the frame that is currently visible in an animated GIF.\n           *\n           * @method getCurrentFrame\n           * @return {Number}       The index for the currently displaying frame in animated GIF\n           * @example\n           * <div><code>\n           * let gif;\n           *\n           * function preload() {\n           *   gif = loadImage('assets/arnott-wallace-eye-loop-forever.gif');\n           * }\n           *\n           * function draw() {\n           *   let frame = gif.getCurrentFrame();\n           *   image(gif, 0, 0);\n           *   text(frame, 10, 90);\n           * }\n           * </code></div>\n           * @alt\n           * Animated image of a cartoon eye looking around and then\n           * looking outwards, in the lower-left hand corner a number counts\n           * up quickly to 124 and then starts back over at 0\n           *\n           */\n          _main.default.Image.prototype.getCurrentFrame = function() {\n            if (this.gifProperties) {\n              var props = this.gifProperties;\n              return props.displayIndex % props.numFrames;\n            }\n          };\n\n          /**\n           * Sets the index of the frame that is currently visible in an animated GIF\n           *\n           * @method setFrame\n           * @param {Number}       index the index for the frame that should be displayed\n           * @example\n           * <div><code>\n           * let gif;\n           *\n           * function preload() {\n           *   gif = loadImage('assets/arnott-wallace-eye-loop-forever.gif');\n           * }\n           *\n           * // Move your mouse up and down over canvas to see the GIF\n           * // frames animate\n           * function draw() {\n           *   gif.pause();\n           *   image(gif, 0, 0);\n           *   // Get the highest frame number which is the number of frames - 1\n           *   let maxFrame = gif.numFrames() - 1;\n           *   // Set the current frame that is mapped to be relative to mouse position\n           *   let frameNumber = floor(map(mouseY, 0, height, 0, maxFrame, true));\n           *   gif.setFrame(frameNumber);\n           * }\n           * </code></div>\n           * @alt\n           * A still image of a cartoon eye that looks around when you move your mouse\n           * up and down over the canvas\n           *\n           */\n          _main.default.Image.prototype.setFrame = function(index) {\n            if (this.gifProperties) {\n              var props = this.gifProperties;\n              if (index < props.numFrames && index >= 0) {\n                props.timeDisplayed = 0;\n                props.displayIndex = index;\n                this.drawingContext.putImageData(props.frames[index].image, 0, 0);\n              } else {\n                console.log(\n                  'Cannot set GIF to a frame number that is higher than total number of frames or below zero.'\n                );\n              }\n            }\n          };\n\n          /**\n           * Returns the number of frames in an animated GIF\n           *\n           * @method numFrames\n           * @return {Number}\n           * @example     The number of frames in the animated GIF\n           * <div><code>\n           * let gif;\n           *\n           * function preload() {\n           *   gif = loadImage('assets/arnott-wallace-eye-loop-forever.gif');\n           * }\n           *\n           * // Move your mouse up and down over canvas to see the GIF\n           * // frames animate\n           * function draw() {\n           *   gif.pause();\n           *   image(gif, 0, 0);\n           *   // Get the highest frame number which is the number of frames - 1\n           *   let maxFrame = gif.numFrames() - 1;\n           *   // Set the current frame that is mapped to be relative to mouse position\n           *   let frameNumber = floor(map(mouseY, 0, height, 0, maxFrame, true));\n           *   gif.setFrame(frameNumber);\n           * }\n           * </code></div>\n           * @alt\n           * A still image of a cartoon eye that looks around when you move your mouse\n           * up and down over the canvas\n           *\n           */\n          _main.default.Image.prototype.numFrames = function() {\n            if (this.gifProperties) {\n              return this.gifProperties.numFrames;\n            }\n          };\n\n          /**\n           * Plays an animated GIF that was paused with\n           * <a href=\"#/p5.Image/pause\">pause()</a>\n           *\n           * @method play\n           * @example\n           * <div><code>\n           * let gif;\n           *\n           * function preload() {\n           *   gif = loadImage('assets/nancy-liang-wind-loop-forever.gif');\n           * }\n           *\n           * function draw() {\n           *   background(255);\n           *   image(gif, 0, 0);\n           * }\n           *\n           * function mousePressed() {\n           *   gif.pause();\n           * }\n           *\n           * function mouseReleased() {\n           *   gif.play();\n           * }\n           * </code></div>\n           * @alt\n           * An animated GIF of a drawing of small child with\n           * hair blowing in the wind, when you click the image\n           * freezes when you release it animates again\n           *\n           */\n          _main.default.Image.prototype.play = function() {\n            if (this.gifProperties) {\n              this.gifProperties.playing = true;\n            }\n          };\n\n          /**\n           * Pauses an animated GIF.\n           *\n           * @method pause\n           * @example\n           * <div><code>\n           * let gif;\n           *\n           * function preload() {\n           *   gif = loadImage('assets/nancy-liang-wind-loop-forever.gif');\n           * }\n           *\n           * function draw() {\n           *   background(255);\n           *   image(gif, 0, 0);\n           * }\n           *\n           * function mousePressed() {\n           *   gif.pause();\n           * }\n           *\n           * function mouseReleased() {\n           *   gif.play();\n           * }\n           * </code></div>\n           * @alt\n           * An animated GIF of a drawing of small child with\n           * hair blowing in the wind, when you click the image\n           * freezes when you release it animates again\n           *\n           */\n          _main.default.Image.prototype.pause = function() {\n            if (this.gifProperties) {\n              this.gifProperties.playing = false;\n            }\n          };\n\n          /**\n           * Changes the delay between frames in an animated GIF. There is an optional second parameter that\n           * indicates an index for a specific frame that should have its delay modified. If no index is given, all frames\n           * will have the new delay.\n           *\n           * @method delay\n           * @param {Number}    d the amount in milliseconds to delay between switching frames\n           * @param {Number}    [index] the index of the frame that should have the new delay value {optional}\n           * @example\n           * <div><code>\n           * let gifFast, gifSlow;\n           *\n           * function preload() {\n           *   gifFast = loadImage('assets/arnott-wallace-eye-loop-forever.gif');\n           *   gifSlow = loadImage('assets/arnott-wallace-eye-loop-forever.gif');\n           * }\n           *\n           * function setup() {\n           *   gifFast.resize(width / 2, height / 2);\n           *   gifSlow.resize(width / 2, height / 2);\n           *\n           *   //Change the delay here\n           *   gifFast.delay(10);\n           *   gifSlow.delay(100);\n           * }\n           *\n           * function draw() {\n           *   background(255);\n           *   image(gifFast, 0, 0);\n           *   image(gifSlow, width / 2, 0);\n           * }\n           * </code></div>\n           * @alt\n           * Two animated gifs of cartoon eyes looking around\n           * The gif on the left animates quickly, on the right\n           * the animation is much slower\n           *\n           */\n          _main.default.Image.prototype.delay = function(d, index) {\n            if (this.gifProperties) {\n              var props = this.gifProperties;\n              if (index < props.numFrames && index >= 0) {\n                props.frames[index].delay = d;\n              } else {\n                // change all frames\n                var _iteratorNormalCompletion = true;\n                var _didIteratorError = false;\n                var _iteratorError = undefined;\n                try {\n                  for (\n                    var _iterator = props.frames[Symbol.iterator](), _step;\n                    !(_iteratorNormalCompletion = (_step = _iterator.next()).done);\n                    _iteratorNormalCompletion = true\n                  ) {\n                    var frame = _step.value;\n                    frame.delay = d;\n                  }\n                } catch (err) {\n                  _didIteratorError = true;\n                  _iteratorError = err;\n                } finally {\n                  try {\n                    if (!_iteratorNormalCompletion && _iterator.return != null) {\n                      _iterator.return();\n                    }\n                  } finally {\n                    if (_didIteratorError) {\n                      throw _iteratorError;\n                    }\n                  }\n                }\n              }\n            }\n          };\n          var _default = _main.default.Image;\n          exports.default = _default;\n        },\n        { '../core/main': 50, './filters': 71 }\n      ],\n      75: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var _filters = _interopRequireDefault(_dereq_('./filters'));\n          _dereq_('../color/p5.Color');\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Image\n           * @submodule Pixels\n           * @for p5\n           * @requires core\n           */ /**\n           * <a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference\n           * /Global_Objects/Uint8ClampedArray' target='_blank'>Uint8ClampedArray</a>\n           * containing the values for all the pixels in the display window.\n           * These values are numbers. This array is the size (include an appropriate\n           * factor for <a href=\"#/p5/pixelDensity\">pixelDensity</a>) of the display window x4,\n           * representing the R, G, B, A values in order for each pixel, moving from\n           * left to right across each row, then down each column. Retina and other\n           * high density displays will have more pixels[] (by a factor of\n           * pixelDensity^2).\n           * For example, if the image is 100x100 pixels, there will be 40,000. On a\n           * retina display, there will be 160,000.\n           * <br><br>\n           * The first four values (indices 0-3) in the array will be the R, G, B, A\n           * values of the pixel at (0, 0). The second four values (indices 4-7) will\n           * contain the R, G, B, A values of the pixel at (1, 0). More generally, to\n           * set values for a pixel at (x, y):\n           * ```javascript\n           * let d = pixelDensity();\n           * for (let i = 0; i < d; i++) {\n           *   for (let j = 0; j < d; j++) {\n           *     // loop over\n           *     index = 4 * ((y * d + j) * width * d + (x * d + i));\n           *     pixels[index] = r;\n           *     pixels[index+1] = g;\n           *     pixels[index+2] = b;\n           *     pixels[index+3] = a;\n           *   }\n           * }\n           * ```\n           * <p>While the above method is complex, it is flexible enough to work with\n           * any pixelDensity. Note that <a href=\"#/p5/set\">set()</a> will automatically take care of\n           * setting all the appropriate values in <a href=\"#/p5/pixels\">pixels[]</a> for a given (x, y) at\n           * any pixelDensity, but the performance may not be as fast when lots of\n           * modifications are made to the pixel array.\n           * <br><br>\n           * Before accessing this array, the data must loaded with the <a href=\"#/p5/loadPixels\">loadPixels()</a>\n           * function. After the array data has been modified, the <a href=\"#/p5/updatePixels\">updatePixels()</a>\n           * function must be run to update the changes.\n           * <br><br>\n           * Note that this is not a standard javascript array.  This means that\n           * standard javascript functions such as <a href=\"#/p5/slice\">slice()</a> or\n           * <a href=\"#/p5/arrayCopy\">arrayCopy()</a> do not\n           * work.</p>\n           *\n           * @property {Number[]} pixels\n           * @example\n           * <div>\n           * <code>\n           * let pink = color(255, 102, 204);\n           * loadPixels();\n           * let d = pixelDensity();\n           * let halfImage = 4 * (width * d) * (height / 2 * d);\n           * for (let i = 0; i < halfImage; i += 4) {\n           *   pixels[i] = red(pink);\n           *   pixels[i + 1] = green(pink);\n           *   pixels[i + 2] = blue(pink);\n           *   pixels[i + 3] = alpha(pink);\n           * }\n           * updatePixels();\n           * </code>\n           * </div>\n           *\n           * @alt\n           * top half of canvas pink, bottom grey\n           *\n           */ _main.default.prototype.pixels = []; /**\n           * Copies a region of pixels from one image to another, using a specified\n           * blend mode to do the operation.\n           *\n           * @method blend\n           * @param  {p5.Image} srcImage source image\n           * @param  {Integer} sx X coordinate of the source's upper left corner\n           * @param  {Integer} sy Y coordinate of the source's upper left corner\n           * @param  {Integer} sw source image width\n           * @param  {Integer} sh source image height\n           * @param  {Integer} dx X coordinate of the destination's upper left corner\n           * @param  {Integer} dy Y coordinate of the destination's upper left corner\n           * @param  {Integer} dw destination image width\n           * @param  {Integer} dh destination image height\n           * @param  {Constant} blendMode the blend mode. either\n           *     BLEND, DARKEST, LIGHTEST, DIFFERENCE,\n           *     MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\n           *     SOFT_LIGHT, DODGE, BURN, ADD or NORMAL.\n           *\n           * @example\n           * <div><code>\n           * let img0;\n           * let img1;\n           *\n           * function preload() {\n           *   img0 = loadImage('assets/rockies.jpg');\n           *   img1 = loadImage('assets/bricks_third.jpg');\n           * }\n           *\n           * function setup() {\n           *   background(img0);\n           *   image(img1, 0, 0);\n           *   blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST);\n           * }\n           * </code></div>\n           * <div><code>\n           * let img0;\n           * let img1;\n           *\n           * function preload() {\n           *   img0 = loadImage('assets/rockies.jpg');\n           *   img1 = loadImage('assets/bricks_third.jpg');\n           * }\n           *\n           * function setup() {\n           *   background(img0);\n           *   image(img1, 0, 0);\n           *   blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST);\n           * }\n           * </code></div>\n           * <div><code>\n           * let img0;\n           * let img1;\n           *\n           * function preload() {\n           *   img0 = loadImage('assets/rockies.jpg');\n           *   img1 = loadImage('assets/bricks_third.jpg');\n           * }\n           *\n           * function setup() {\n           *   background(img0);\n           *   image(img1, 0, 0);\n           *   blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, ADD);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * image of rocky mountains. Brick images on left and right. Right overexposed\n           * image of rockies. Brickwall images on left and right. Right mortar transparent\n           * image of rockies. Brickwall images on left and right. Right translucent\n           *\n           *\n           */\n          /**\n           * @method blend\n           * @param  {Integer} sx\n           * @param  {Integer} sy\n           * @param  {Integer} sw\n           * @param  {Integer} sh\n           * @param  {Integer} dx\n           * @param  {Integer} dy\n           * @param  {Integer} dw\n           * @param  {Integer} dh\n           * @param  {Constant} blendMode\n           */\n          _main.default.prototype.blend = function() {\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default._validateParameters('blend', args);\n            if (this._renderer) {\n              var _this$_renderer;\n              (_this$_renderer = this._renderer).blend.apply(_this$_renderer, args);\n            } else {\n              _main.default.Renderer2D.prototype.blend.apply(this, args);\n            }\n          };\n\n          /**\n           * Copies a region of the canvas to another region of the canvas\n           * and copies a region of pixels from an image used as the srcImg parameter\n           * into the canvas srcImage is specified this is used as the source. If\n           * the source and destination regions aren't the same size, it will\n           * automatically resize source pixels to fit the specified\n           * target region.\n           *\n           * @method copy\n           * @param  {p5.Image|p5.Element} srcImage source image\n           * @param  {Integer} sx X coordinate of the source's upper left corner\n           * @param  {Integer} sy Y coordinate of the source's upper left corner\n           * @param  {Integer} sw source image width\n           * @param  {Integer} sh source image height\n           * @param  {Integer} dx X coordinate of the destination's upper left corner\n           * @param  {Integer} dy Y coordinate of the destination's upper left corner\n           * @param  {Integer} dw destination image width\n           * @param  {Integer} dh destination image height\n           *\n           * @example\n           * <div><code>\n           * let img;\n           *\n           * function preload() {\n           *   img = loadImage('assets/rockies.jpg');\n           * }\n           *\n           * function setup() {\n           *   background(img);\n           *   copy(img, 7, 22, 10, 10, 35, 25, 50, 50);\n           *   stroke(255);\n           *   noFill();\n           *   // Rectangle shows area being copied\n           *   rect(7, 22, 10, 10);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * image of rocky mountains. Brick images on left and right. Right overexposed\n           * image of rockies. Brickwall images on left and right. Right mortar transparent\n           * image of rockies. Brickwall images on left and right. Right translucent\n           *\n           */\n          /**\n           * @method copy\n           * @param  {Integer} sx\n           * @param  {Integer} sy\n           * @param  {Integer} sw\n           * @param  {Integer} sh\n           * @param  {Integer} dx\n           * @param  {Integer} dy\n           * @param  {Integer} dw\n           * @param  {Integer} dh\n           */\n          _main.default.prototype.copy = function() {\n            for (\n              var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;\n              _key2 < _len2;\n              _key2++\n            ) {\n              args[_key2] = arguments[_key2];\n            }\n            _main.default._validateParameters('copy', args);\n\n            var srcImage, sx, sy, sw, sh, dx, dy, dw, dh;\n            if (args.length === 9) {\n              srcImage = args[0];\n              sx = args[1];\n              sy = args[2];\n              sw = args[3];\n              sh = args[4];\n              dx = args[5];\n              dy = args[6];\n              dw = args[7];\n              dh = args[8];\n            } else if (args.length === 8) {\n              srcImage = this;\n              sx = args[0];\n              sy = args[1];\n              sw = args[2];\n              sh = args[3];\n              dx = args[4];\n              dy = args[5];\n              dw = args[6];\n              dh = args[7];\n            } else {\n              throw new Error('Signature not supported');\n            }\n\n            _main.default.prototype._copyHelper(\n              this,\n              srcImage,\n              sx,\n              sy,\n              sw,\n              sh,\n              dx,\n              dy,\n              dw,\n              dh\n            );\n          };\n\n          _main.default.prototype._copyHelper = function(\n            dstImage,\n            srcImage,\n            sx,\n            sy,\n            sw,\n            sh,\n            dx,\n            dy,\n            dw,\n            dh\n          ) {\n            srcImage.loadPixels();\n            var s = srcImage.canvas.width / srcImage.width;\n            // adjust coord system for 3D when renderer\n            // ie top-left = -width/2, -height/2\n            var sxMod = 0;\n            var syMod = 0;\n            if (srcImage._renderer && srcImage._renderer.isP3D) {\n              sxMod = srcImage.width / 2;\n              syMod = srcImage.height / 2;\n            }\n            if (dstImage._renderer && dstImage._renderer.isP3D) {\n              _main.default.RendererGL.prototype.image.call(\n                dstImage._renderer,\n                srcImage,\n                sx + sxMod,\n                sy + syMod,\n                sw,\n                sh,\n                dx,\n                dy,\n                dw,\n                dh\n              );\n            } else {\n              dstImage.drawingContext.drawImage(\n                srcImage.canvas,\n                s * (sx + sxMod),\n                s * (sy + syMod),\n                s * sw,\n                s * sh,\n                dx,\n                dy,\n                dw,\n                dh\n              );\n            }\n          };\n\n          /**\n           * Applies a filter to the canvas.\n           * <br><br>\n           *\n           * The presets options are:\n           * <br><br>\n           *\n           * THRESHOLD\n           * Converts the image to black and white pixels depending if they are above or\n           * below the threshold defined by the level parameter. The parameter must be\n           * between 0.0 (black) and 1.0 (white). If no level is specified, 0.5 is used.\n           * <br><br>\n           *\n           * GRAY\n           * Converts any colors in the image to grayscale equivalents. No parameter\n           * is used.\n           * <br><br>\n           *\n           * OPAQUE\n           * Sets the alpha channel to entirely opaque. No parameter is used.\n           * <br><br>\n           *\n           * INVERT\n           * Sets each pixel to its inverse value. No parameter is used.\n           * <br><br>\n           *\n           * POSTERIZE\n           * Limits each channel of the image to the number of colors specified as the\n           * parameter. The parameter can be set to values between 2 and 255, but\n           * results are most noticeable in the lower ranges.\n           * <br><br>\n           *\n           * BLUR\n           * Executes a Gaussian blur with the level parameter specifying the extent\n           * of the blurring. If no parameter is used, the blur is equivalent to\n           * Gaussian blur of radius 1. Larger values increase the blur.\n           * <br><br>\n           *\n           * ERODE\n           * Reduces the light areas. No parameter is used.\n           * <br><br>\n           *\n           * DILATE\n           * Increases the light areas. No parameter is used.\n           * <br><br>\n           *\n           * filter() does not work in WEBGL mode.\n           * A similar effect can be achieved in WEBGL mode using custom\n           * shaders. Adam Ferriss has written\n           * a <a href=\"https://github.com/aferriss/p5jsShaderExamples\"\n           * target='_blank'>selection of shader examples</a> that contains many\n           * of the effects present in the filter examples.\n           *\n           * @method filter\n           * @param  {Constant} filterType  either THRESHOLD, GRAY, OPAQUE, INVERT,\n           *                                POSTERIZE, BLUR, ERODE, DILATE or BLUR.\n           *                                See Filters.js for docs on\n           *                                each available filter\n           * @param  {Number} [filterParam] an optional parameter unique\n           *                                to each filter, see above\n           *\n           * @example\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/bricks.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   filter(THRESHOLD);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/bricks.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   filter(GRAY);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/bricks.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   filter(OPAQUE);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/bricks.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   filter(INVERT);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/bricks.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   filter(POSTERIZE, 3);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/bricks.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   filter(DILATE);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/bricks.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   filter(BLUR, 3);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/bricks.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   filter(ERODE);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black and white image of a brick wall.\n           * greyscale image of a brickwall\n           * image of a brickwall\n           * jade colored image of a brickwall\n           * red and pink image of a brickwall\n           * image of a brickwall\n           * blurry image of a brickwall\n           * image of a brickwall\n           * image of a brickwall with less detail\n           *\n           */\n          _main.default.prototype.filter = function(operation, value) {\n            _main.default._validateParameters('filter', arguments);\n            if (this.canvas !== undefined) {\n              _filters.default.apply(this.canvas, _filters.default[operation], value);\n            } else {\n              _filters.default.apply(this.elt, _filters.default[operation], value);\n            }\n          };\n\n          /**\n           * Get a region of pixels, or a single pixel, from the canvas.\n           *\n           * Returns an array of [R,G,B,A] values for any pixel or grabs a section of\n           * an image. If no parameters are specified, the entire image is returned.\n           * Use the x and y parameters to get the value of one pixel. Get a section of\n           * the display window by specifying additional w and h parameters. When\n           * getting an image, the x and y parameters define the coordinates for the\n           * upper-left corner of the image, regardless of the current <a href=\"#/p5/imageMode\">imageMode()</a>.\n           * <br><br>\n           * Getting the color of a single pixel with get(x, y) is easy, but not as fast\n           * as grabbing the data directly from <a href=\"#/p5/pixels\">pixels[]</a>. The equivalent statement to\n           * get(x, y) using <a href=\"#/p5/pixels\">pixels[]</a> with pixel density d is\n           * ```javascript\n           * let x, y, d; // set these to the coordinates\n           * let off = (y * width + x) * d * 4;\n           * let components = [\n           *   pixels[off],\n           *   pixels[off + 1],\n           *   pixels[off + 2],\n           *   pixels[off + 3]\n           * ];\n           * print(components);\n           * ```\n           * <br><br>\n           *\n           * See the reference for <a href=\"#/p5/pixels\">pixels[]</a> for more information.\n           *\n           * If you want to extract an array of colors or a subimage from an p5.Image object,\n           * take a look at <a href=\"#/p5.Image/get\">p5.Image.get()</a>\n           *\n           * @method get\n           * @param  {Number}         x x-coordinate of the pixel\n           * @param  {Number}         y y-coordinate of the pixel\n           * @param  {Number}         w width\n           * @param  {Number}         h height\n           * @return {p5.Image}       the rectangle <a href=\"#/p5.Image\">p5.Image</a>\n           * @example\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/rockies.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   let c = get();\n           *   image(c, width / 2, 0);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/rockies.jpg');\n           * }\n           * function setup() {\n           *   image(img, 0, 0);\n           *   let c = get(50, 90);\n           *   fill(c);\n           *   noStroke();\n           *   rect(25, 25, 50, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 2 images of the rocky mountains, side-by-side\n           * Image of the rocky mountains with 50x50 green rect in center of canvas\n           *\n           */\n          /**\n           * @method get\n           * @return {p5.Image}      the whole <a href=\"#/p5.Image\">p5.Image</a>\n           */\n          /**\n           * @method get\n           * @param  {Number}        x\n           * @param  {Number}        y\n           * @return {Number[]}      color of pixel at x,y in array format [R, G, B, A]\n           */\n          _main.default.prototype.get = function(x, y, w, h) {\n            var _this$_renderer2;\n            _main.default._validateParameters('get', arguments);\n            return (_this$_renderer2 = this._renderer).get.apply(\n              _this$_renderer2,\n              arguments\n            );\n          };\n\n          /**\n           * Loads the pixel data for the display window into the <a href=\"#/p5/pixels\">pixels[]</a> array. This\n           * function must always be called before reading from or writing to <a href=\"#/p5/pixels\">pixels[]</a>.\n           * Note that only changes made with <a href=\"#/p5/set\">set()</a> or direct manipulation of <a href=\"#/p5/pixels\">pixels[]</a>\n           * will occur.\n           *\n           * @method loadPixels\n           * @example\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/rockies.jpg');\n           * }\n           *\n           * function setup() {\n           *   image(img, 0, 0, width, height);\n           *   let d = pixelDensity();\n           *   let halfImage = 4 * (width * d) * (height * d / 2);\n           *   loadPixels();\n           *   for (let i = 0; i < halfImage; i++) {\n           *     pixels[i + halfImage] = pixels[i];\n           *   }\n           *   updatePixels();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * two images of the rocky mountains. one on top, one on bottom of canvas.\n           *\n           */\n          _main.default.prototype.loadPixels = function() {\n            for (\n              var _len3 = arguments.length, args = new Array(_len3), _key3 = 0;\n              _key3 < _len3;\n              _key3++\n            ) {\n              args[_key3] = arguments[_key3];\n            }\n            _main.default._validateParameters('loadPixels', args);\n            this._renderer.loadPixels();\n          };\n\n          /**\n           * <p>Changes the color of any pixel, or writes an image directly to the\n           * display window.</p>\n           * <p>The x and y parameters specify the pixel to change and the c parameter\n           * specifies the color value. This can be a <a href=\"#/p5.Color\">p5.Color</a> object, or [R, G, B, A]\n           * pixel array. It can also be a single grayscale value.\n           * When setting an image, the x and y parameters define the coordinates for\n           * the upper-left corner of the image, regardless of the current <a href=\"#/p5/imageMode\">imageMode()</a>.\n           * </p>\n           * <p>\n           * After using <a href=\"#/p5/set\">set()</a>, you must call <a href=\"#/p5/updatePixels\">updatePixels()</a> for your changes to appear.\n           * This should be called once all pixels have been set, and must be called before\n           * calling .<a href=\"#/p5/get\">get()</a> or drawing the image.\n           * </p>\n           * <p>Setting the color of a single pixel with set(x, y) is easy, but not as\n           * fast as putting the data directly into <a href=\"#/p5/pixels\">pixels[]</a>. Setting the <a href=\"#/p5/pixels\">pixels[]</a>\n           * values directly may be complicated when working with a retina display,\n           * but will perform better when lots of pixels need to be set directly on\n           * every loop.</p>\n           * <p>See the reference for <a href=\"#/p5/pixels\">pixels[]</a> for more information.</p>\n           *\n           * @method set\n           * @param {Number}              x x-coordinate of the pixel\n           * @param {Number}              y y-coordinate of the pixel\n           * @param {Number|Number[]|Object} c insert a grayscale value | a pixel array |\n           *                                a <a href=\"#/p5.Color\">p5.Color</a> object | a <a href=\"#/p5.Image\">p5.Image</a> to copy\n           * @example\n           * <div>\n           * <code>\n           * let black = color(0);\n           * set(30, 20, black);\n           * set(85, 20, black);\n           * set(85, 75, black);\n           * set(30, 75, black);\n           * updatePixels();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * for (let i = 30; i < width - 15; i++) {\n           *   for (let j = 20; j < height - 25; j++) {\n           *     let c = color(204 - j, 153 - i, 0);\n           *     set(i, j, c);\n           *   }\n           * }\n           * updatePixels();\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/rockies.jpg');\n           * }\n           *\n           * function setup() {\n           *   set(0, 0, img);\n           *   updatePixels();\n           *   line(0, 0, width, height);\n           *   line(0, height, width, 0);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 4 black points in the shape of a square middle-right of canvas.\n           * square with orangey-brown gradient lightening at bottom right.\n           * image of the rocky mountains. with lines like an 'x' through the center.\n           */\n          _main.default.prototype.set = function(x, y, imgOrCol) {\n            this._renderer.set(x, y, imgOrCol);\n          };\n          /**\n           * Updates the display window with the data in the <a href=\"#/p5/pixels\">pixels[]</a> array.\n           * Use in conjunction with <a href=\"#/p5/loadPixels\">loadPixels()</a>. If you're only reading pixels from\n           * the array, there's no need to call <a href=\"#/p5/updatePixels\">updatePixels()</a> — updating is only\n           * necessary to apply changes. <a href=\"#/p5/updatePixels\">updatePixels()</a> should be called anytime the\n           * pixels array is manipulated or <a href=\"#/p5/set\">set()</a> is called, and only changes made with\n           * <a href=\"#/p5/set\">set()</a> or direct changes to <a href=\"#/p5/pixels\">pixels[]</a> will occur.\n           *\n           * @method updatePixels\n           * @param  {Number} [x]    x-coordinate of the upper-left corner of region\n           *                         to update\n           * @param  {Number} [y]    y-coordinate of the upper-left corner of region\n           *                         to update\n           * @param  {Number} [w]    width of region to update\n           * @param  {Number} [h]    height of region to update\n           * @example\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/rockies.jpg');\n           * }\n           *\n           * function setup() {\n           *   image(img, 0, 0, width, height);\n           *   let d = pixelDensity();\n           *   let halfImage = 4 * (width * d) * (height * d / 2);\n           *   loadPixels();\n           *   for (let i = 0; i < halfImage; i++) {\n           *     pixels[i + halfImage] = pixels[i];\n           *   }\n           *   updatePixels();\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * two images of the rocky mountains. one on top, one on bottom of canvas.\n           */\n          _main.default.prototype.updatePixels = function(x, y, w, h) {\n            _main.default._validateParameters('updatePixels', arguments);\n            // graceful fail - if loadPixels() or set() has not been called, pixel\n            // array will be empty, ignore call to updatePixels()\n            if (this.pixels.length === 0) {\n              return;\n            }\n            this._renderer.updatePixels(x, y, w, h);\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../color/p5.Color': 41, '../core/main': 50, './filters': 71 }\n      ],\n      76: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          _dereq_('whatwg-fetch');\n          _dereq_('es6-promise/auto');\n          var _fetchJsonp = _interopRequireDefault(_dereq_('fetch-jsonp'));\n          var _fileSaver = _interopRequireDefault(_dereq_('file-saver'));\n          _dereq_('../core/error_helpers');\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n\n          /**\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * Loads a JSON file from a file or a URL, and returns an Object.\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * Note that even if the JSON file contains an Array, an Object will be\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * returned with index numbers as keys.\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * This method is asynchronous, meaning it may not finish before the next\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * line in your sketch is executed. JSONP is supported via a polyfill and you\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * can pass in as the second argument an object with definitions of the json\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * callback following the syntax specified <a href=\"https://github.com/camsong/\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * fetch-jsonp\">here</a>.\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * This method is suitable for fetching files up to size of 64MB.\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * @method loadJSON\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * @param  {String}        path       name of the file or url to load\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * @param  {Object}        [jsonpOptions] options object for jsonp related settings\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * @param  {String}        [datatype] \"json\" or \"jsonp\"\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * @param  {function}      [callback] function to be executed after\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *                                    <a href=\"#/p5/loadJSON\">loadJSON()</a> completes, data is passed\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *                                    in as first argument\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * @param  {function}      [errorCallback] function to be executed if\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *                                    there is an error, response is passed\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *                                    in as first argument\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * @return {Object|Array}             JSON data\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * @example\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * <p>Calling <a href=\"#/p5/loadJSON\">loadJSON()</a> inside <a href=\"#/p5/preload\">preload()</a> guarantees to complete the\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * operation before <a href=\"#/p5/setup\">setup()</a> and <a href=\"#/p5/draw\">draw()</a> are called.</p>\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * <div><code>\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * // Examples use USGS Earthquake API:\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * //   https://earthquake.usgs.gov/fdsnws/event/1/#methods\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * let earthquakes;\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * function preload() {\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   // Get the most recent earthquake in the database\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   let url =\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       'https://earthquake.usgs.gov/earthquakes/feed/v1.0/' +\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *     'summary/all_day.geojson';\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   earthquakes = loadJSON(url);\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * }\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * function setup() {\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   noLoop();\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * }\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * function draw() {\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   background(200);\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   // Get the magnitude and name of the earthquake out of the loaded JSON\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   let earthquakeMag = earthquakes.features[0].properties.mag;\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   let earthquakeName = earthquakes.features[0].properties.place;\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10);\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   textAlign(CENTER);\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   text(earthquakeName, 0, height - 30, width, 30);\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * }\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * </code></div>\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * <p>Outside of preload(), you may supply a callback function to handle the\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * object:</p>\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * <div><code>\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * function setup() {\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   noLoop();\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   let url =\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       'https://earthquake.usgs.gov/earthquakes/feed/v1.0/' +\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *     'summary/all_day.geojson';\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   loadJSON(url, drawEarthquake);\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * }\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * function draw() {\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   background(200);\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * }\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * function drawEarthquake(earthquakes) {\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   // Get the magnitude and name of the earthquake out of the loaded JSON\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   let earthquakeMag = earthquakes.features[0].properties.mag;\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   let earthquakeName = earthquakes.features[0].properties.place;\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10);\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   textAlign(CENTER);\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *   text(earthquakeName, 0, height - 30, width, 30);\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * }\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * </code></div>\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * @alt\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * 50x50 ellipse that changes from black to white depending on the current humidity\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    * 50x50 ellipse that changes from black to white depending on the current humidity\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    *\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    */\n          /**\n           * @method loadJSON\n           * @param  {String}        path\n           * @param  {String}        datatype\n           * @param  {function}      [callback]\n           * @param  {function}      [errorCallback]\n           * @return {Object|Array}\n           */\n          /**\n           * @method loadJSON\n           * @param  {String}        path\n           * @param  {function}      callback\n           * @param  {function}      [errorCallback]\n           * @return {Object|Array}\n           */\n          _main.default.prototype.loadJSON = function() {\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default._validateParameters('loadJSON', args);\n            var path = args[0];\n            var callback;\n            var errorCallback;\n            var options;\n\n            var ret = {}; // object needed for preload\n            var t = 'json';\n\n            // check for explicit data type argument\n            for (var i = 1; i < args.length; i++) {\n              var arg = args[i];\n              if (typeof arg === 'string') {\n                if (arg === 'jsonp' || arg === 'json') {\n                  t = arg;\n                }\n              } else if (typeof arg === 'function') {\n                if (!callback) {\n                  callback = arg;\n                } else {\n                  errorCallback = arg;\n                }\n              } else if (\n                _typeof(arg) === 'object' &&\n                (arg.hasOwnProperty('jsonpCallback') ||\n                  arg.hasOwnProperty('jsonpCallbackFunction'))\n              ) {\n                t = 'jsonp';\n                options = arg;\n              }\n            }\n\n            var self = this;\n            this.httpDo(\n              path,\n              'GET',\n              options,\n              t,\n              function(resp) {\n                for (var k in resp) {\n                  ret[k] = resp[k];\n                }\n                if (typeof callback !== 'undefined') {\n                  callback(resp);\n                }\n\n                self._decrementPreload();\n              },\n              function(err) {\n                // Error handling\n                _main.default._friendlyFileLoadError(5, path);\n\n                if (errorCallback) {\n                  errorCallback(err);\n                } else {\n                  throw err;\n                }\n              }\n            );\n\n            return ret;\n          };\n\n          /**\n    * Reads the contents of a file and creates a String array of its individual\n    * lines. If the name of the file is used as the parameter, as in the above\n    * example, the file must be located in the sketch directory/folder.\n    * <br><br>\n    * Alternatively, the file maybe be loaded from anywhere on the local\n    * computer using an absolute path (something that starts with / on Unix and\n    * Linux, or a drive letter on Windows), or the filename parameter can be a\n    * URL for a file found on a network.\n    * <br><br>\n    * This method is asynchronous, meaning it may not finish before the next\n    * line in your sketch is executed.\n    *\n    * This method is suitable for fetching files up to size of 64MB.\n    * @method loadStrings\n    * @param  {String}   filename   name of the file or url to load\n    * @param  {function} [callback] function to be executed after <a href=\"#/p5/loadStrings\">loadStrings()</a>\n    *                               completes, Array is passed in as first\n    *                               argument\n    * @param  {function} [errorCallback] function to be executed if\n    *                               there is an error, response is passed\n    *                               in as first argument\n    * @return {String[]}            Array of Strings\n    * @example\n    *\n    * <p>Calling loadStrings() inside <a href=\"#/p5/preload\">preload()</a> guarantees to complete the\n    * operation before <a href=\"#/p5/setup\">setup()</a> and <a href=\"#/p5/draw\">draw()</a> are called.</p>\n    *\n    * <div><code>\n    * let result;\n    * function preload() {\n    *   result = loadStrings('assets/test.txt');\n    * }\n   \n    * function setup() {\n    *   background(200);\n    *   text(random(result), 10, 10, 80, 80);\n    * }\n    * </code></div>\n    *\n    * <p>Outside of preload(), you may supply a callback function to handle the\n    * object:</p>\n    *\n    * <div><code>\n    * function setup() {\n    *   loadStrings('assets/test.txt', pickString);\n    * }\n    *\n    * function pickString(result) {\n    *   background(200);\n    *   text(random(result), 10, 10, 80, 80);\n    * }\n    * </code></div>\n    *\n    * @alt\n    * randomly generated text from a file, for example \"i smell like butter\"\n    * randomly generated text from a file, for example \"i have three feet\"\n    *\n    */\n          _main.default.prototype.loadStrings = function() {\n            for (\n              var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;\n              _key2 < _len2;\n              _key2++\n            ) {\n              args[_key2] = arguments[_key2];\n            }\n            _main.default._validateParameters('loadStrings', args);\n\n            var ret = [];\n            var callback, errorCallback;\n\n            for (var i = 1; i < args.length; i++) {\n              var arg = args[i];\n              if (typeof arg === 'function') {\n                if (typeof callback === 'undefined') {\n                  callback = arg;\n                } else if (typeof errorCallback === 'undefined') {\n                  errorCallback = arg;\n                }\n              }\n            }\n\n            var self = this;\n            _main.default.prototype.httpDo.call(\n              this,\n              args[0],\n              'GET',\n              'text',\n              function(data) {\n                // split lines handling mac/windows/linux endings\n                var lines = data\n                  .replace(/\\r\\n/g, '\\r')\n                  .replace(/\\n/g, '\\r')\n                  .split(/\\r/);\n                Array.prototype.push.apply(ret, lines);\n\n                if (typeof callback !== 'undefined') {\n                  callback(ret);\n                }\n\n                self._decrementPreload();\n              },\n              function(err) {\n                // Error handling\n                _main.default._friendlyFileLoadError(3, arguments[0]);\n\n                if (errorCallback) {\n                  errorCallback(err);\n                } else {\n                  throw err;\n                }\n              }\n            );\n\n            return ret;\n          };\n\n          /**\n           * <p>Reads the contents of a file or URL and creates a <a href=\"#/p5.Table\">p5.Table</a> object with\n           * its values. If a file is specified, it must be located in the sketch's\n           * \"data\" folder. The filename parameter can also be a URL to a file found\n           * online. By default, the file is assumed to be comma-separated (in CSV\n           * format). Table only looks for a header row if the 'header' option is\n           * included.</p>\n           *\n           * <p>Possible options include:\n           * <ul>\n           * <li>csv - parse the table as comma-separated values</li>\n           * <li>tsv - parse the table as tab-separated values</li>\n           * <li>header - this table has a header (title) row</li>\n           * </ul>\n           * </p>\n           *\n           * <p>When passing in multiple options, pass them in as separate parameters,\n           * seperated by commas. For example:\n           * <br><br>\n           * <code>\n           * loadTable('my_csv_file.csv', 'csv', 'header');\n           * </code>\n           * </p>\n           *\n           * <p> All files loaded and saved use UTF-8 encoding.</p>\n           *\n           * <p>This method is asynchronous, meaning it may not finish before the next\n           * line in your sketch is executed. Calling <a href=\"#/p5/loadTable\">loadTable()</a> inside <a href=\"#/p5/preload\">preload()</a>\n           * guarantees to complete the operation before <a href=\"#/p5/setup\">setup()</a> and <a href=\"#/p5/draw\">draw()</a> are called.\n           * <p>Outside of <a href=\"#/p5/preload\">preload()</a>, you may supply a callback function to handle the\n           * object:</p>\n           * </p>\n           *\n           * This method is suitable for fetching files up to size of 64MB.\n           * @method loadTable\n           * @param  {String}         filename   name of the file or URL to load\n           * @param  {String}         options  \"header\" \"csv\" \"tsv\"\n           * @param  {function}       [callback] function to be executed after\n           *                                     <a href=\"#/p5/loadTable\">loadTable()</a> completes. On success, the\n           *                                     <a href=\"#/p5.Table\">Table</a> object is passed in as the\n           *                                     first argument.\n           * @param  {function}  [errorCallback] function to be executed if\n           *                                     there is an error, response is passed\n           *                                     in as first argument\n           * @return {Object}                    <a href=\"#/p5.Table\">Table</a> object containing data\n           *\n           * @example\n           * <div class='norender'>\n           * <code>\n           * // Given the following CSV file called \"mammals.csv\"\n           * // located in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           *   //the file can be remote\n           *   //table = loadTable(\"http://p5js.org/reference/assets/mammals.csv\",\n           *   //                  \"csv\", \"header\");\n           * }\n           *\n           * function setup() {\n           *   //count the columns\n           *   print(table.getRowCount() + ' total rows in table');\n           *   print(table.getColumnCount() + ' total columns in table');\n           *\n           *   print(table.getColumn('name'));\n           *   //[\"Goat\", \"Leopard\", \"Zebra\"]\n           *\n           *   //cycle through the table\n           *   for (let r = 0; r < table.getRowCount(); r++)\n           *     for (let c = 0; c < table.getColumnCount(); c++) {\n           *       print(table.getString(r, c));\n           *     }\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * randomly generated text from a file, for example \"i smell like butter\"\n           * randomly generated text from a file, for example \"i have three feet\"\n           *\n           */\n          /**\n           * @method loadTable\n           * @param  {String}         filename\n           * @param  {function}       [callback]\n           * @param  {function}  [errorCallback]\n           * @return {Object}\n           */\n          _main.default.prototype.loadTable = function(path) {\n            var callback;\n            var errorCallback;\n            var options = [];\n            var header = false;\n            var ext = path.substring(path.lastIndexOf('.') + 1, path.length);\n            var sep = ',';\n            var separatorSet = false;\n\n            if (ext === 'tsv') {\n              //Only need to check extension is tsv because csv is default\n              sep = '\\t';\n            }\n\n            for (var i = 1; i < arguments.length; i++) {\n              if (typeof arguments[i] === 'function') {\n                if (typeof callback === 'undefined') {\n                  callback = arguments[i];\n                } else if (typeof errorCallback === 'undefined') {\n                  errorCallback = arguments[i];\n                }\n              } else if (typeof arguments[i] === 'string') {\n                options.push(arguments[i]);\n                if (arguments[i] === 'header') {\n                  header = true;\n                }\n                if (arguments[i] === 'csv') {\n                  if (separatorSet) {\n                    throw new Error('Cannot set multiple separator types.');\n                  } else {\n                    sep = ',';\n                    separatorSet = true;\n                  }\n                } else if (arguments[i] === 'tsv') {\n                  if (separatorSet) {\n                    throw new Error('Cannot set multiple separator types.');\n                  } else {\n                    sep = '\\t';\n                    separatorSet = true;\n                  }\n                }\n              }\n            }\n\n            var t = new _main.default.Table();\n\n            var self = this;\n            this.httpDo(\n              path,\n              'GET',\n              'table',\n              function(resp) {\n                var state = {};\n\n                // define constants\n                var PRE_TOKEN = 0,\n                  MID_TOKEN = 1,\n                  POST_TOKEN = 2,\n                  POST_RECORD = 4;\n\n                var QUOTE = '\"',\n                  CR = '\\r',\n                  LF = '\\n';\n\n                var records = [];\n                var offset = 0;\n                var currentRecord = null;\n                var currentChar;\n\n                var tokenBegin = function tokenBegin() {\n                  state.currentState = PRE_TOKEN;\n                  state.token = '';\n                };\n\n                var tokenEnd = function tokenEnd() {\n                  currentRecord.push(state.token);\n                  tokenBegin();\n                };\n\n                var recordBegin = function recordBegin() {\n                  state.escaped = false;\n                  currentRecord = [];\n                  tokenBegin();\n                };\n\n                var recordEnd = function recordEnd() {\n                  state.currentState = POST_RECORD;\n                  records.push(currentRecord);\n                  currentRecord = null;\n                };\n\n                for (;;) {\n                  currentChar = resp[offset++];\n\n                  // EOF\n                  if (currentChar == null) {\n                    if (state.escaped) {\n                      throw new Error('Unclosed quote in file.');\n                    }\n                    if (currentRecord) {\n                      tokenEnd();\n                      recordEnd();\n                      break;\n                    }\n                  }\n                  if (currentRecord === null) {\n                    recordBegin();\n                  }\n\n                  // Handle opening quote\n                  if (state.currentState === PRE_TOKEN) {\n                    if (currentChar === QUOTE) {\n                      state.escaped = true;\n                      state.currentState = MID_TOKEN;\n                      continue;\n                    }\n                    state.currentState = MID_TOKEN;\n                  }\n\n                  // mid-token and escaped, look for sequences and end quote\n                  if (state.currentState === MID_TOKEN && state.escaped) {\n                    if (currentChar === QUOTE) {\n                      if (resp[offset] === QUOTE) {\n                        state.token += QUOTE;\n                        offset++;\n                      } else {\n                        state.escaped = false;\n                        state.currentState = POST_TOKEN;\n                      }\n                    } else if (currentChar === CR) {\n                      continue;\n                    } else {\n                      state.token += currentChar;\n                    }\n                    continue;\n                  }\n\n                  // fall-through: mid-token or post-token, not escaped\n                  if (currentChar === CR) {\n                    if (resp[offset] === LF) {\n                      offset++;\n                    }\n                    tokenEnd();\n                    recordEnd();\n                  } else if (currentChar === LF) {\n                    tokenEnd();\n                    recordEnd();\n                  } else if (currentChar === sep) {\n                    tokenEnd();\n                  } else if (state.currentState === MID_TOKEN) {\n                    state.token += currentChar;\n                  }\n                }\n\n                // set up column names\n                if (header) {\n                  t.columns = records.shift();\n                } else {\n                  for (var _i = 0; _i < records[0].length; _i++) {\n                    t.columns[_i] = 'null';\n                  }\n                }\n                var row;\n                for (var _i2 = 0; _i2 < records.length; _i2++) {\n                  //Handles row of 'undefined' at end of some CSVs\n                  if (records[_i2].length === 1) {\n                    if (records[_i2][0] === 'undefined' || records[_i2][0] === '') {\n                      continue;\n                    }\n                  }\n                  row = new _main.default.TableRow();\n                  row.arr = records[_i2];\n                  row.obj = makeObject(records[_i2], t.columns);\n                  t.addRow(row);\n                }\n                if (typeof callback === 'function') {\n                  callback(t);\n                }\n\n                self._decrementPreload();\n              },\n              function(err) {\n                // Error handling\n                _main.default._friendlyFileLoadError(2, path);\n\n                if (errorCallback) {\n                  errorCallback(err);\n                } else {\n                  console.error(err);\n                }\n              }\n            );\n\n            return t;\n          };\n\n          // helper function to turn a row into a JSON object\n          function makeObject(row, headers) {\n            var ret = {};\n            headers = headers || [];\n            if (typeof headers === 'undefined') {\n              for (var j = 0; j < row.length; j++) {\n                headers[j.toString()] = j;\n              }\n            }\n            for (var i = 0; i < headers.length; i++) {\n              var key = headers[i];\n              var val = row[i];\n              ret[key] = val;\n            }\n            return ret;\n          }\n\n          /**\n           * Reads the contents of a file and creates an XML object with its values.\n           * If the name of the file is used as the parameter, as in the above example,\n           * the file must be located in the sketch directory/folder.\n           *\n           * Alternatively, the file maybe be loaded from anywhere on the local\n           * computer using an absolute path (something that starts with / on Unix and\n           * Linux, or a drive letter on Windows), or the filename parameter can be a\n           * URL for a file found on a network.\n           *\n           * This method is asynchronous, meaning it may not finish before the next\n           * line in your sketch is executed. Calling <a href=\"#/p5/loadXML\">loadXML()</a> inside <a href=\"#/p5/preload\">preload()</a>\n           * guarantees to complete the operation before <a href=\"#/p5/setup\">setup()</a> and <a href=\"#/p5/draw\">draw()</a> are called.\n           *\n           * Outside of <a href=\"#/p5/preload\">preload()</a>, you may supply a callback function to handle the\n           * object.\n           *\n           * This method is suitable for fetching files up to size of 64MB.\n           * @method loadXML\n           * @param  {String}   filename   name of the file or URL to load\n           * @param  {function} [callback] function to be executed after <a href=\"#/p5/loadXML\">loadXML()</a>\n           *                               completes, XML object is passed in as\n           *                               first argument\n           * @param  {function} [errorCallback] function to be executed if\n           *                               there is an error, response is passed\n           *                               in as first argument\n           * @return {Object}              XML object containing data\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let children = xml.getChildren('animal');\n           *\n           *   for (let i = 0; i < children.length; i++) {\n           *     let id = children[i].getNum('id');\n           *     let coloring = children[i].getString('species');\n           *     let name = children[i].getContent();\n           *     print(id + ', ' + coloring + ', ' + name);\n           *   }\n           * }\n           *\n           * // Sketch prints:\n           * // 0, Capra hircus, Goat\n           * // 1, Panthera pardus, Leopard\n           * // 2, Equus zebra, Zebra\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           *\n           */\n          _main.default.prototype.loadXML = function() {\n            for (\n              var _len3 = arguments.length, args = new Array(_len3), _key3 = 0;\n              _key3 < _len3;\n              _key3++\n            ) {\n              args[_key3] = arguments[_key3];\n            }\n            var ret = new _main.default.XML();\n            var callback, errorCallback;\n\n            for (var i = 1; i < args.length; i++) {\n              var arg = args[i];\n              if (typeof arg === 'function') {\n                if (typeof callback === 'undefined') {\n                  callback = arg;\n                } else if (typeof errorCallback === 'undefined') {\n                  errorCallback = arg;\n                }\n              }\n            }\n\n            var self = this;\n            this.httpDo(\n              args[0],\n              'GET',\n              'xml',\n              function(xml) {\n                for (var key in xml) {\n                  ret[key] = xml[key];\n                }\n                if (typeof callback !== 'undefined') {\n                  callback(ret);\n                }\n\n                self._decrementPreload();\n              },\n              function(err) {\n                // Error handling\n                _main.default._friendlyFileLoadError(1, arguments[0]);\n\n                if (errorCallback) {\n                  errorCallback(err);\n                } else {\n                  throw err;\n                }\n              }\n            );\n\n            return ret;\n          };\n\n          /**\n           * This method is suitable for fetching files up to size of 64MB.\n           * @method loadBytes\n           * @param {string}   file            name of the file or URL to load\n           * @param {function} [callback]      function to be executed after <a href=\"#/p5/loadBytes\">loadBytes()</a>\n           *                                    completes\n           * @param {function} [errorCallback] function to be executed if there\n           *                                    is an error\n           * @returns {Object} an object whose 'bytes' property will be the loaded buffer\n           *\n           * @example\n           * <div class='norender'><code>\n           * let data;\n           *\n           * function preload() {\n           *   data = loadBytes('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   for (let i = 0; i < 5; i++) {\n           *     console.log(data.bytes[i].toString(16));\n           *   }\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           *\n           */\n          _main.default.prototype.loadBytes = function(file, callback, errorCallback) {\n            var ret = {};\n\n            var self = this;\n            this.httpDo(\n              file,\n              'GET',\n              'arrayBuffer',\n              function(arrayBuffer) {\n                ret.bytes = new Uint8Array(arrayBuffer);\n\n                if (typeof callback === 'function') {\n                  callback(ret);\n                }\n\n                self._decrementPreload();\n              },\n              function(err) {\n                // Error handling\n                _main.default._friendlyFileLoadError(6, file);\n\n                if (errorCallback) {\n                  errorCallback(err);\n                } else {\n                  throw err;\n                }\n              }\n            );\n\n            return ret;\n          };\n\n          /**\n    * Method for executing an HTTP GET request. If data type is not specified,\n    * p5 will try to guess based on the URL, defaulting to text. This is equivalent to\n    * calling <code>httpDo(path, 'GET')</code>. The 'binary' datatype will return\n    * a Blob object, and the 'arrayBuffer' datatype will return an ArrayBuffer\n    * which can be used to initialize typed arrays (such as Uint8Array).\n    *\n    * @method httpGet\n    * @param  {String}        path       name of the file or url to load\n    * @param  {String}        [datatype] \"json\", \"jsonp\", \"binary\", \"arrayBuffer\",\n    *                                    \"xml\", or \"text\"\n    * @param  {Object|Boolean} [data]    param data passed sent with request\n    * @param  {function}      [callback] function to be executed after\n    *                                    <a href=\"#/p5/httpGet\">httpGet()</a> completes, data is passed in\n    *                                    as first argument\n    * @param  {function}      [errorCallback] function to be executed if\n    *                                    there is an error, response is passed\n    *                                    in as first argument\n    * @return {Promise} A promise that resolves with the data when the operation\n    *                   completes successfully or rejects with the error after\n    *                   one occurs.\n    * @example\n    * <div class='norender'><code>\n    * // Examples use USGS Earthquake API:\n    * //   https://earthquake.usgs.gov/fdsnws/event/1/#methods\n    * let earthquakes;\n    * function preload() {\n    *   // Get the most recent earthquake in the database\n    *   let url =\n       'https://earthquake.usgs.gov/fdsnws/event/1/query?' +\n    *     'format=geojson&limit=1&orderby=time';\n    *   httpGet(url, 'jsonp', false, function(response) {\n    *     // when the HTTP request completes, populate the variable that holds the\n    *     // earthquake data used in the visualization.\n    *     earthquakes = response;\n    *   });\n    * }\n    *\n    * function draw() {\n    *   if (!earthquakes) {\n    *     // Wait until the earthquake data has loaded before drawing.\n    *     return;\n    *   }\n    *   background(200);\n    *   // Get the magnitude and name of the earthquake out of the loaded JSON\n    *   let earthquakeMag = earthquakes.features[0].properties.mag;\n    *   let earthquakeName = earthquakes.features[0].properties.place;\n    *   ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10);\n    *   textAlign(CENTER);\n    *   text(earthquakeName, 0, height - 30, width, 30);\n    *   noLoop();\n    * }\n    * </code></div>\n    */\n          /**\n           * @method httpGet\n           * @param  {String}        path\n           * @param  {Object|Boolean} data\n           * @param  {function}      [callback]\n           * @param  {function}      [errorCallback]\n           * @return {Promise}\n           */\n          /**\n           * @method httpGet\n           * @param  {String}        path\n           * @param  {function}      callback\n           * @param  {function}      [errorCallback]\n           * @return {Promise}\n           */\n          _main.default.prototype.httpGet = function() {\n            _main.default._validateParameters('httpGet', arguments);\n\n            var args = Array.prototype.slice.call(arguments);\n            args.splice(1, 0, 'GET');\n            return _main.default.prototype.httpDo.apply(this, args);\n          };\n\n          /**\n           * Method for executing an HTTP POST request. If data type is not specified,\n           * p5 will try to guess based on the URL, defaulting to text. This is equivalent to\n           * calling <code>httpDo(path, 'POST')</code>.\n           *\n           * @method httpPost\n           * @param  {String}        path       name of the file or url to load\n           * @param  {String}        [datatype] \"json\", \"jsonp\", \"xml\", or \"text\".\n           *                                    If omitted, <a href=\"#/p5/httpPost\">httpPost()</a> will guess.\n           * @param  {Object|Boolean} [data]    param data passed sent with request\n           * @param  {function}      [callback] function to be executed after\n           *                                    <a href=\"#/p5/httpPost\">httpPost()</a> completes, data is passed in\n           *                                    as first argument\n           * @param  {function}      [errorCallback] function to be executed if\n           *                                    there is an error, response is passed\n           *                                    in as first argument\n           * @return {Promise} A promise that resolves with the data when the operation\n           *                   completes successfully or rejects with the error after\n           *                   one occurs.\n           *\n           * @example\n           * <div>\n           * <code>\n           * // Examples use jsonplaceholder.typicode.com for a Mock Data API\n           *\n           * let url = 'https://jsonplaceholder.typicode.com/posts';\n           * let postData = { userId: 1, title: 'p5 Clicked!', body: 'p5.js is way cool.' };\n           *\n           * function setup() {\n           *   createCanvas(800, 800);\n           * }\n           *\n           * function mousePressed() {\n           *   // Pick new random color values\n           *   let r = random(255);\n           *   let g = random(255);\n           *   let b = random(255);\n           *\n           *   httpPost(url, 'json', postData, function(result) {\n           *     strokeWeight(2);\n           *     stroke(r, g, b);\n           *     fill(r, g, b, 127);\n           *     ellipse(mouseX, mouseY, 200, 200);\n           *     text(result.body, mouseX, mouseY);\n           *   });\n           * }\n           * </code>\n           * </div>\n           *\n           *\n           * <div><code>\n           * let url = 'https://invalidURL'; // A bad URL that will cause errors\n           * let postData = { title: 'p5 Clicked!', body: 'p5.js is way cool.' };\n           *\n           * function setup() {\n           *   createCanvas(800, 800);\n           * }\n           *\n           * function mousePressed() {\n           *   // Pick new random color values\n           *   let r = random(255);\n           *   let g = random(255);\n           *   let b = random(255);\n           *\n           *   httpPost(\n           *     url,\n           *     'json',\n           *     postData,\n           *     function(result) {\n           *       // ... won't be called\n           *     },\n           *     function(error) {\n           *       strokeWeight(2);\n           *       stroke(r, g, b);\n           *       fill(r, g, b, 127);\n           *       text(error.toString(), mouseX, mouseY);\n           *     }\n           *   );\n           * }\n           * </code></div>\n           *\n           */\n          /**\n           * @method httpPost\n           * @param  {String}        path\n           * @param  {Object|Boolean} data\n           * @param  {function}      [callback]\n           * @param  {function}      [errorCallback]\n           * @return {Promise}\n           */\n          /**\n           * @method httpPost\n           * @param  {String}        path\n           * @param  {function}      callback\n           * @param  {function}      [errorCallback]\n           * @return {Promise}\n           */\n          _main.default.prototype.httpPost = function() {\n            _main.default._validateParameters('httpPost', arguments);\n\n            var args = Array.prototype.slice.call(arguments);\n            args.splice(1, 0, 'POST');\n            return _main.default.prototype.httpDo.apply(this, args);\n          };\n\n          /**\n           * Method for executing an HTTP request. If data type is not specified,\n           * p5 will try to guess based on the URL, defaulting to text.<br><br>\n           * For more advanced use, you may also pass in the path as the first argument\n           * and a object as the second argument, the signature follows the one specified\n           * in the Fetch API specification.\n           * This method is suitable for fetching files up to size of 64MB when \"GET\" is used.\n           *\n           * @method httpDo\n           * @param  {String}        path       name of the file or url to load\n           * @param  {String}        [method]   either \"GET\", \"POST\", or \"PUT\",\n           *                                    defaults to \"GET\"\n           * @param  {String}        [datatype] \"json\", \"jsonp\", \"xml\", or \"text\"\n           * @param  {Object}        [data]     param data passed sent with request\n           * @param  {function}      [callback] function to be executed after\n           *                                    <a href=\"#/p5/httpGet\">httpGet()</a> completes, data is passed in\n           *                                    as first argument\n           * @param  {function}      [errorCallback] function to be executed if\n           *                                    there is an error, response is passed\n           *                                    in as first argument\n           * @return {Promise} A promise that resolves with the data when the operation\n           *                   completes successfully or rejects with the error after\n           *                   one occurs.\n           *\n           * @example\n           * <div>\n           * <code>\n           * // Examples use USGS Earthquake API:\n           * // https://earthquake.usgs.gov/fdsnws/event/1/#methods\n           *\n           * // displays an animation of all USGS earthquakes\n           * let earthquakes;\n           * let eqFeatureIndex = 0;\n           *\n           * function preload() {\n           *   let url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson';\n           *   httpDo(\n           *     url,\n           *     {\n           *       method: 'GET',\n           *       // Other Request options, like special headers for apis\n           *       headers: { authorization: 'Bearer secretKey' }\n           *     },\n           *     function(res) {\n           *       earthquakes = res;\n           *     }\n           *   );\n           * }\n           *\n           * function draw() {\n           *   // wait until the data is loaded\n           *   if (!earthquakes || !earthquakes.features[eqFeatureIndex]) {\n           *     return;\n           *   }\n           *   clear();\n           *\n           *   let feature = earthquakes.features[eqFeatureIndex];\n           *   let mag = feature.properties.mag;\n           *   let rad = mag / 11 * ((width + height) / 2);\n           *   fill(255, 0, 0, 100);\n           *   ellipse(width / 2 + random(-2, 2), height / 2 + random(-2, 2), rad, rad);\n           *\n           *   if (eqFeatureIndex >= earthquakes.features.length) {\n           *     eqFeatureIndex = 0;\n           *   } else {\n           *     eqFeatureIndex += 1;\n           *   }\n           * }\n           * </code>\n           * </div>\n           */\n          /**\n           * @method httpDo\n           * @param  {String}        path\n           * @param  {Object}        options   Request object options as documented in the\n           *                                    \"fetch\" API\n           * <a href=\"https://developer.mozilla.org/en/docs/Web/API/Fetch_API\">reference</a>\n           * @param  {function}      [callback]\n           * @param  {function}      [errorCallback]\n           * @return {Promise}\n           */\n          _main.default.prototype.httpDo = function() {\n            var type;\n            var callback;\n            var errorCallback;\n            var request;\n            var promise;\n            var jsonpOptions = {};\n            var cbCount = 0;\n            var contentType = 'text/plain';\n            // Trim the callbacks off the end to get an idea of how many arguments are passed\n            for (var i = arguments.length - 1; i > 0; i--) {\n              if (\n                typeof (i < 0 || arguments.length <= i ? undefined : arguments[i]) ===\n                'function'\n              ) {\n                cbCount++;\n              } else {\n                break;\n              }\n            }\n            // The number of arguments minus callbacks\n            var argsCount = arguments.length - cbCount;\n            var path = arguments.length <= 0 ? undefined : arguments[0];\n            if (\n              argsCount === 2 &&\n              typeof path === 'string' &&\n              _typeof(arguments.length <= 1 ? undefined : arguments[1]) === 'object'\n            ) {\n              // Intended for more advanced use, pass in Request parameters directly\n              request = new Request(path, arguments.length <= 1 ? undefined : arguments[1]);\n              callback = arguments.length <= 2 ? undefined : arguments[2];\n              errorCallback = arguments.length <= 3 ? undefined : arguments[3];\n            } else {\n              // Provided with arguments\n              var method = 'GET';\n              var data;\n\n              for (var j = 1; j < arguments.length; j++) {\n                var a = j < 0 || arguments.length <= j ? undefined : arguments[j];\n                if (typeof a === 'string') {\n                  if (a === 'GET' || a === 'POST' || a === 'PUT' || a === 'DELETE') {\n                    method = a;\n                  } else if (\n                    a === 'json' ||\n                    a === 'jsonp' ||\n                    a === 'binary' ||\n                    a === 'arrayBuffer' ||\n                    a === 'xml' ||\n                    a === 'text' ||\n                    a === 'table'\n                  ) {\n                    type = a;\n                  } else {\n                    data = a;\n                  }\n                } else if (typeof a === 'number') {\n                  data = a.toString();\n                } else if (_typeof(a) === 'object') {\n                  if (\n                    a.hasOwnProperty('jsonpCallback') ||\n                    a.hasOwnProperty('jsonpCallbackFunction')\n                  ) {\n                    for (var attr in a) {\n                      jsonpOptions[attr] = a[attr];\n                    }\n                  } else if (a instanceof _main.default.XML) {\n                    data = a.serialize();\n                    contentType = 'application/xml';\n                  } else {\n                    data = JSON.stringify(a);\n                    contentType = 'application/json';\n                  }\n                } else if (typeof a === 'function') {\n                  if (!callback) {\n                    callback = a;\n                  } else {\n                    errorCallback = a;\n                  }\n                }\n              }\n\n              request = new Request(path, {\n                method: method,\n                mode: 'cors',\n                body: data,\n                headers: new Headers({\n                  'Content-Type': contentType\n                })\n              });\n            }\n            // do some sort of smart type checking\n            if (!type) {\n              if (path.includes('json')) {\n                type = 'json';\n              } else if (path.includes('xml')) {\n                type = 'xml';\n              } else {\n                type = 'text';\n              }\n            }\n\n            if (type === 'jsonp') {\n              promise = (0, _fetchJsonp.default)(path, jsonpOptions);\n            } else {\n              promise = fetch(request);\n            }\n            promise = promise.then(function(res) {\n              if (!res.ok) {\n                var err = new Error(res.body);\n                err.status = res.status;\n                err.ok = false;\n                throw err;\n              } else {\n                var fileSize = 0;\n                if (type !== 'jsonp') {\n                  fileSize = res.headers.get('content-length');\n                }\n                if (fileSize && fileSize > 64000000) {\n                  _main.default._friendlyFileLoadError(7, path);\n                }\n                switch (type) {\n                  case 'json':\n                  case 'jsonp':\n                    return res.json();\n                  case 'binary':\n                    return res.blob();\n                  case 'arrayBuffer':\n                    return res.arrayBuffer();\n                  case 'xml':\n                    return res.text().then(function(text) {\n                      var parser = new DOMParser();\n                      var xml = parser.parseFromString(text, 'text/xml');\n                      return new _main.default.XML(xml.documentElement);\n                    });\n                  default:\n                    return res.text();\n                }\n              }\n            });\n            promise.then(callback || function() {});\n            promise.catch(errorCallback || console.error);\n            return promise;\n          };\n\n          /**\n           * @module IO\n           * @submodule Output\n           * @for p5\n           */\n\n          window.URL = window.URL || window.webkitURL;\n\n          // private array of p5.PrintWriter objects\n          _main.default.prototype._pWriters = [];\n\n          /**\n           * @method createWriter\n           * @param {String} name name of the file to be created\n           * @param {String} [extension]\n           * @return {p5.PrintWriter}\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   background(200);\n           *   text('click here to save', 10, 10, 70, 80);\n           * }\n           *\n           * function mousePressed() {\n           *   if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n           *     const writer = createWriter('squares.txt');\n           *     for (let i = 0; i < 10; i++) {\n           *       writer.print(i * i);\n           *     }\n           *     writer.close();\n           *     writer.clear();\n           *   }\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.prototype.createWriter = function(name, extension) {\n            var newPW;\n            // check that it doesn't already exist\n            for (var i in _main.default.prototype._pWriters) {\n              if (_main.default.prototype._pWriters[i].name === name) {\n                // if a p5.PrintWriter w/ this name already exists...\n                // return p5.prototype._pWriters[i]; // return it w/ contents intact.\n                // or, could return a new, empty one with a unique name:\n                newPW = new _main.default.PrintWriter(name + this.millis(), extension);\n                _main.default.prototype._pWriters.push(newPW);\n                return newPW;\n              }\n            }\n            newPW = new _main.default.PrintWriter(name, extension);\n            _main.default.prototype._pWriters.push(newPW);\n            return newPW;\n          };\n\n          /**\n           *  @class p5.PrintWriter\n           *  @param  {String}     filename\n           *  @param  {String}     [extension]\n           */\n          _main.default.PrintWriter = function(filename, extension) {\n            var self = this;\n            this.name = filename;\n            this.content = '';\n            //Changed to write because it was being overloaded by function below.\n            /**\n             * Writes data to the PrintWriter stream\n             * @method write\n             * @param {Array} data all data to be written by the PrintWriter\n             * @example\n             * <div class=\"norender notest\">\n             * <code>\n             * // creates a file called 'newFile.txt'\n             * let writer = createWriter('newFile.txt');\n             * // write 'Hello world!'' to the file\n             * writer.write(['Hello world!']);\n             * // close the PrintWriter and save the file\n             * writer.close();\n             * </code>\n             * </div>\n             * <div class='norender notest'>\n             * <code>\n             * // creates a file called 'newFile2.txt'\n             * let writer = createWriter('newFile2.txt');\n             * // write 'apples,bananas,123' to the file\n             * writer.write(['apples', 'bananas', 123]);\n             * // close the PrintWriter and save the file\n             * writer.close();\n             * </code>\n             * </div>\n             * <div class='norender notest'>\n             * <code>\n             * // creates a file called 'newFile3.txt'\n             * let writer = createWriter('newFile3.txt');\n             * // write 'My name is: Teddy' to the file\n             * writer.write('My name is:');\n             * writer.write(' Teddy');\n             * // close the PrintWriter and save the file\n             * writer.close();\n             * </code>\n             * </div>\n             * <div>\n             * <code>\n             * function setup() {\n             *   createCanvas(100, 100);\n             *   button = createButton('SAVE FILE');\n             *   button.position(21, 40);\n             *   button.mousePressed(createFile);\n             * }\n             *\n             * function createFile() {\n             *   // creates a file called 'newFile.txt'\n             *   let writer = createWriter('newFile.txt');\n             *   // write 'Hello world!'' to the file\n             *   writer.write(['Hello world!']);\n             *   // close the PrintWriter and save the file\n             *   writer.close();\n             * }\n             * </code>\n             * </div>\n             */\n            this.write = function(data) {\n              this.content += data;\n            };\n            /**\n             * Writes data to the PrintWriter stream, and adds a new line at the end\n             * @method print\n             * @param {Array} data all data to be printed by the PrintWriter\n             * @example\n             * <div class='norender notest'>\n             * <code>\n             * // creates a file called 'newFile.txt'\n             * let writer = createWriter('newFile.txt');\n             * // creates a file containing\n             * //  My name is:\n             * //  Teddy\n             * writer.print('My name is:');\n             * writer.print('Teddy');\n             * // close the PrintWriter and save the file\n             * writer.close();\n             * </code>\n             * </div>\n             * <div class='norender notest'>\n             * <code>\n             * let writer;\n             *\n             * function setup() {\n             *   createCanvas(400, 400);\n             *   // create a PrintWriter\n             *   writer = createWriter('newFile.txt');\n             * }\n             *\n             * function draw() {\n             *   writer.print([mouseX, mouseY]);\n             * }\n             *\n             * function mouseClicked() {\n             *   writer.close();\n             * }\n             * </code>\n             * </div>\n             */\n            this.print = function(data) {\n              this.content += ''.concat(data, '\\n');\n            };\n            /**\n             * Clears the data already written to the PrintWriter object\n             * @method clear\n             * @example\n             * <div class =\"norender notest\"><code>\n             * // create writer object\n             * let writer = createWriter('newFile.txt');\n             * writer.write(['clear me']);\n             * // clear writer object here\n             * writer.clear();\n             * // close writer\n             * writer.close();\n             * </code></div>\n             * <div>\n             * <code>\n             * function setup() {\n             *   button = createButton('CLEAR ME');\n             *   button.position(21, 40);\n             *   button.mousePressed(createFile);\n             * }\n             *\n             * function createFile() {\n             *   let writer = createWriter('newFile.txt');\n             *   writer.write(['clear me']);\n             *   writer.clear();\n             *   writer.close();\n             * }\n             * </code>\n             * </div>\n             *\n             */\n            this.clear = function() {\n              this.content = '';\n            };\n            /**\n             * Closes the PrintWriter\n             * @method close\n             * @example\n             * <div class=\"norender notest\">\n             * <code>\n             * // create a file called 'newFile.txt'\n             * let writer = createWriter('newFile.txt');\n             * // close the PrintWriter and save the file\n             * writer.close();\n             * </code>\n             * </div>\n             * <div class='norender notest'>\n             * <code>\n             * // create a file called 'newFile2.txt'\n             * let writer = createWriter('newFile2.txt');\n             * // write some data to the file\n             * writer.write([100, 101, 102]);\n             * // close the PrintWriter and save the file\n             * writer.close();\n             * </code>\n             * </div>\n             */\n            this.close = function() {\n              // convert String to Array for the writeFile Blob\n              var arr = [];\n              arr.push(this.content);\n              _main.default.prototype.writeFile(arr, filename, extension);\n              // remove from _pWriters array and delete self\n              for (var i in _main.default.prototype._pWriters) {\n                if (_main.default.prototype._pWriters[i].name === this.name) {\n                  // remove from _pWriters array\n                  _main.default.prototype._pWriters.splice(i, 1);\n                }\n              }\n              self.clear();\n              self = {};\n            };\n          };\n\n          /**\n           * @module IO\n           * @submodule Output\n           * @for p5\n           */\n\n          // object, filename, options --> saveJSON, saveStrings,\n          // filename, [extension] [canvas] --> saveImage\n\n          /**\n           *  <p>Save an image, text, json, csv, wav, or html. Prompts download to\n           *  the client's computer. <b>Note that it is not recommended to call <a href=\"#/p5/save\">save()</a>\n           *  within draw if it's looping, as the <a href=\"#/p5/save\">save()</a> function will open a new save\n           *  dialog every frame.</b></p>\n           *  <p>The default behavior is to save the canvas as an image. You can\n           *  optionally specify a filename.\n           *  For example:</p>\n           * <pre class='language-javascript'><code>\n           * save();\n           * save('myCanvas.jpg'); // save a specific canvas with a filename\n           * </code></pre>\n           *\n           *  <p>Alternately, the first parameter can be a pointer to a canvas\n           *  <a href=\"#/p5.Element\">p5.Element</a>, an Array of Strings,\n           *  an Array of JSON, a JSON object, a <a href=\"#/p5.Table\">p5.Table</a>, a <a href=\"#/p5.Image\">p5.Image</a>, or a\n           *  p5.SoundFile (requires p5.sound). The second parameter is a filename\n           *  (including extension). The third parameter is for options specific\n           *  to this type of object. This method will save a file that fits the\n           *  given parameters. For example:</p>\n           *\n           * <pre class='language-javascript'><code>\n           * // Saves canvas as an image\n           * save('myCanvas.jpg');\n           *\n           * // Saves pImage as a png image\n           * let img = createImage(10, 10);\n           * save(img, 'my.png');\n           *\n           * // Saves canvas as an image\n           * let cnv = createCanvas(100, 100);\n           * save(cnv, 'myCanvas.jpg');\n           *\n           * // Saves p5.Renderer object as an image\n           * let gb = createGraphics(100, 100);\n           * save(gb, 'myGraphics.jpg');\n           *\n           * let myTable = new p5.Table();\n           *\n           * // Saves table as html file\n           * save(myTable, 'myTable.html');\n           *\n           * // Comma Separated Values\n           * save(myTable, 'myTable.csv');\n           *\n           * // Tab Separated Values\n           * save(myTable, 'myTable.tsv');\n           *\n           * let myJSON = { a: 1, b: true };\n           *\n           * // Saves pretty JSON\n           * save(myJSON, 'my.json');\n           *\n           * // Optimizes JSON filesize\n           * save(myJSON, 'my.json', true);\n           *\n           * // Saves array of strings to a text file with line breaks after each item\n           * let arrayOfStrings = ['a', 'b'];\n           * save(arrayOfStrings, 'my.txt');\n           * </code></pre>\n           *\n           *  @method save\n           *  @param  {Object|String} [objectOrFilename]  If filename is provided, will\n           *                                             save canvas as an image with\n           *                                             either png or jpg extension\n           *                                             depending on the filename.\n           *                                             If object is provided, will\n           *                                             save depending on the object\n           *                                             and filename (see examples\n           *                                             above).\n           *  @param  {String} [filename] If an object is provided as the first\n           *                               parameter, then the second parameter\n           *                               indicates the filename,\n           *                               and should include an appropriate\n           *                               file extension (see examples above).\n           *  @param  {Boolean|String} [options]  Additional options depend on\n           *                            filetype. For example, when saving JSON,\n           *                            <code>true</code> indicates that the\n           *                            output will be optimized for filesize,\n           *                            rather than readability.\n           */\n          _main.default.prototype.save = function(object, _filename, _options) {\n            // parse the arguments and figure out which things we are saving\n            var args = arguments;\n            // =================================================\n            // OPTION 1: saveCanvas...\n\n            // if no arguments are provided, save canvas\n            var cnv = this._curElement ? this._curElement.elt : this.elt;\n            if (args.length === 0) {\n              _main.default.prototype.saveCanvas(cnv);\n              return;\n            } else if (\n              args[0] instanceof _main.default.Renderer ||\n              args[0] instanceof _main.default.Graphics\n            ) {\n              // otherwise, parse the arguments\n\n              // if first param is a p5Graphics, then saveCanvas\n              _main.default.prototype.saveCanvas(args[0].elt, args[1], args[2]);\n              return;\n            } else if (args.length === 1 && typeof args[0] === 'string') {\n              // if 1st param is String and only one arg, assume it is canvas filename\n              _main.default.prototype.saveCanvas(cnv, args[0]);\n            } else {\n              // =================================================\n              // OPTION 2: extension clarifies saveStrings vs. saveJSON\n              var extension = _checkFileExtension(args[1], args[2])[1];\n              switch (extension) {\n                case 'json':\n                  _main.default.prototype.saveJSON(args[0], args[1], args[2]);\n                  return;\n                case 'txt':\n                  _main.default.prototype.saveStrings(args[0], args[1], args[2]);\n                  return;\n                // =================================================\n                // OPTION 3: decide based on object...\n                default:\n                  if (args[0] instanceof Array) {\n                    _main.default.prototype.saveStrings(args[0], args[1], args[2]);\n                  } else if (args[0] instanceof _main.default.Table) {\n                    _main.default.prototype.saveTable(args[0], args[1], args[2]);\n                  } else if (args[0] instanceof _main.default.Image) {\n                    _main.default.prototype.saveCanvas(args[0].canvas, args[1]);\n                  } else if (args[0] instanceof _main.default.SoundFile) {\n                    _main.default.prototype.saveSound(args[0], args[1], args[2], args[3]);\n                  }\n              }\n            }\n          };\n\n          /**\n           *  Writes the contents of an Array or a JSON object to a .json file.\n           *  The file saving process and location of the saved file will\n           *  vary between web browsers.\n           *\n           *  @method saveJSON\n           *  @param  {Array|Object} json\n           *  @param  {String} filename\n           *  @param  {Boolean} [optimize]   If true, removes line breaks\n           *                                 and spaces from the output\n           *                                 file to optimize filesize\n           *                                 (but not readability).\n           *  @example\n           * <div><code>\n           * let json = {}; // new  JSON Object\n           *\n           * json.id = 0;\n           * json.species = 'Panthera leo';\n           * json.name = 'Lion';\n           *\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   background(200);\n           *   text('click here to save', 10, 10, 70, 80);\n           * }\n           *\n           * function mousePressed() {\n           *   if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n           *     saveJSON(json, 'lion.json');\n           *   }\n           * }\n           *\n           * // saves the following to a file called \"lion.json\":\n           * // {\n           * //   \"id\": 0,\n           * //   \"species\": \"Panthera leo\",\n           * //   \"name\": \"Lion\"\n           * // }\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           *\n           */\n          _main.default.prototype.saveJSON = function(json, filename, opt) {\n            _main.default._validateParameters('saveJSON', arguments);\n            var stringify;\n            if (opt) {\n              stringify = JSON.stringify(json);\n            } else {\n              stringify = JSON.stringify(json, undefined, 2);\n            }\n            this.saveStrings(stringify.split('\\n'), filename, 'json');\n          };\n\n          _main.default.prototype.saveJSONObject = _main.default.prototype.saveJSON;\n          _main.default.prototype.saveJSONArray = _main.default.prototype.saveJSON;\n\n          /**\n           *  Writes an array of Strings to a text file, one line per String.\n           *  The file saving process and location of the saved file will\n           *  vary between web browsers.\n           *\n           *  @method saveStrings\n           *  @param  {String[]} list   string array to be written\n           *  @param  {String} filename filename for output\n           *  @param  {String} [extension] the filename's extension\n           *  @param  {Boolean} [isCRLF] if true, change line-break to CRLF\n           *  @example\n           * <div><code>\n           * let words = 'apple bear cat dog';\n           *\n           * // .split() outputs an Array\n           * let list = split(words, ' ');\n           *\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   background(200);\n           *   text('click here to save', 10, 10, 70, 80);\n           * }\n           *\n           * function mousePressed() {\n           *   if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n           *     saveStrings(list, 'nouns.txt');\n           *   }\n           * }\n           *\n           * // Saves the following to a file called 'nouns.txt':\n           * //\n           * // apple\n           * // bear\n           * // cat\n           * // dog\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           *\n           */\n          _main.default.prototype.saveStrings = function(\n            list,\n            filename,\n            extension,\n            isCRLF\n          ) {\n            _main.default._validateParameters('saveStrings', arguments);\n            var ext = extension || 'txt';\n            var pWriter = this.createWriter(filename, ext);\n            for (var i = 0; i < list.length; i++) {\n              isCRLF ? pWriter.write(list[i] + '\\r\\n') : pWriter.write(list[i] + '\\n');\n            }\n            pWriter.close();\n            pWriter.clear();\n          };\n\n          // =======\n          // HELPERS\n          // =======\n\n          function escapeHelper(content) {\n            return content\n              .replace(/&/g, '&amp;')\n              .replace(/</g, '&lt;')\n              .replace(/>/g, '&gt;')\n              .replace(/\"/g, '&quot;')\n              .replace(/'/g, '&#039;');\n          }\n\n          /**\n           *  Writes the contents of a <a href=\"#/p5.Table\">Table</a> object to a file. Defaults to a\n           *  text file with comma-separated-values ('csv') but can also\n           *  use tab separation ('tsv'), or generate an HTML table ('html').\n           *  The file saving process and location of the saved file will\n           *  vary between web browsers.\n           *\n           *  @method saveTable\n           *  @param  {p5.Table} Table  the <a href=\"#/p5.Table\">Table</a> object to save to a file\n           *  @param  {String} filename the filename to which the Table should be saved\n           *  @param  {String} [options]  can be one of \"tsv\", \"csv\", or \"html\"\n           *  @example\n           *  <div><code>\n           * let table;\n           *\n           * function setup() {\n           *   table = new p5.Table();\n           *\n           *   table.addColumn('id');\n           *   table.addColumn('species');\n           *   table.addColumn('name');\n           *\n           *   let newRow = table.addRow();\n           *   newRow.setNum('id', table.getRowCount() - 1);\n           *   newRow.setString('species', 'Panthera leo');\n           *   newRow.setString('name', 'Lion');\n           *\n           *   // To save, un-comment next line then click 'run'\n           *   // saveTable(table, 'new.csv');\n           * }\n           *\n           * // Saves the following to a file called 'new.csv':\n           * // id,species,name\n           * // 0,Panthera leo,Lion\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           *\n           */\n          _main.default.prototype.saveTable = function(table, filename, options) {\n            _main.default._validateParameters('saveTable', arguments);\n            var ext;\n            if (options === undefined) {\n              ext = filename.substring(filename.lastIndexOf('.') + 1, filename.length);\n            } else {\n              ext = options;\n            }\n            var pWriter = this.createWriter(filename, ext);\n\n            var header = table.columns;\n\n            var sep = ','; // default to CSV\n            if (ext === 'tsv') {\n              sep = '\\t';\n            }\n            if (ext !== 'html') {\n              // make header if it has values\n              if (header[0] !== '0') {\n                for (var h = 0; h < header.length; h++) {\n                  if (h < header.length - 1) {\n                    pWriter.write(header[h] + sep);\n                  } else {\n                    pWriter.write(header[h]);\n                  }\n                }\n                pWriter.write('\\n');\n              }\n\n              // make rows\n              for (var i = 0; i < table.rows.length; i++) {\n                var j = void 0;\n                for (j = 0; j < table.rows[i].arr.length; j++) {\n                  if (j < table.rows[i].arr.length - 1) {\n                    pWriter.write(table.rows[i].arr[j] + sep);\n                  } else if (i < table.rows.length - 1) {\n                    pWriter.write(table.rows[i].arr[j]);\n                  } else {\n                    pWriter.write(table.rows[i].arr[j]);\n                  }\n                }\n                pWriter.write('\\n');\n              }\n            } else {\n              // otherwise, make HTML\n              pWriter.print('<html>');\n              pWriter.print('<head>');\n              var str = '  <meta http-equiv=\"content-type\" content';\n              str += '=\"text/html;charset=utf-8\" />';\n              pWriter.print(str);\n              pWriter.print('</head>');\n\n              pWriter.print('<body>');\n              pWriter.print('  <table>');\n\n              // make header if it has values\n              if (header[0] !== '0') {\n                pWriter.print('    <tr>');\n                for (var k = 0; k < header.length; k++) {\n                  var e = escapeHelper(header[k]);\n                  pWriter.print('      <td>'.concat(e));\n                  pWriter.print('      </td>');\n                }\n                pWriter.print('    </tr>');\n              }\n\n              // make rows\n              for (var row = 0; row < table.rows.length; row++) {\n                pWriter.print('    <tr>');\n                for (var col = 0; col < table.columns.length; col++) {\n                  var entry = table.rows[row].getString(col);\n                  var htmlEntry = escapeHelper(entry);\n                  pWriter.print('      <td>'.concat(htmlEntry));\n                  pWriter.print('      </td>');\n                }\n                pWriter.print('    </tr>');\n              }\n              pWriter.print('  </table>');\n              pWriter.print('</body>');\n              pWriter.print('</html>');\n            }\n            // close and clear the pWriter\n            pWriter.close();\n            pWriter.clear();\n          }; // end saveTable()\n\n          /**\n           *  Generate a blob of file data as a url to prepare for download.\n           *  Accepts an array of data, a filename, and an extension (optional).\n           *  This is a private function because it does not do any formatting,\n           *  but it is used by <a href=\"#/p5/saveStrings\">saveStrings</a>, <a href=\"#/p5/saveJSON\">saveJSON</a>, <a href=\"#/p5/saveTable\">saveTable</a> etc.\n           *\n           *  @param  {Array} dataToDownload\n           *  @param  {String} filename\n           *  @param  {String} [extension]\n           *  @private\n           */\n          _main.default.prototype.writeFile = function(\n            dataToDownload,\n            filename,\n            extension\n          ) {\n            var type = 'application/octet-stream';\n            if (_main.default.prototype._isSafari()) {\n              type = 'text/plain';\n            }\n            var blob = new Blob(dataToDownload, {\n              type: type\n            });\n\n            _main.default.prototype.downloadFile(blob, filename, extension);\n          };\n\n          /**\n           *  Forces download. Accepts a url to filedata/blob, a filename,\n           *  and an extension (optional).\n           *  This is a private function because it does not do any formatting,\n           *  but it is used by <a href=\"#/p5/saveStrings\">saveStrings</a>, <a href=\"#/p5/saveJSON\">saveJSON</a>, <a href=\"#/p5/saveTable\">saveTable</a> etc.\n           *\n           *  @method downloadFile\n           *  @private\n           *  @param  {String|Blob} data    either an href generated by createObjectURL,\n           *                                or a Blob object containing the data\n           *  @param  {String} [filename]\n           *  @param  {String} [extension]\n           */\n          _main.default.prototype.downloadFile = function(data, fName, extension) {\n            var fx = _checkFileExtension(fName, extension);\n            var filename = fx[0];\n\n            if (data instanceof Blob) {\n              _fileSaver.default.saveAs(data, filename);\n              return;\n            }\n\n            var a = document.createElement('a');\n            a.href = data;\n            a.download = filename;\n\n            // Firefox requires the link to be added to the DOM before click()\n            a.onclick = function(e) {\n              destroyClickedElement(e);\n              e.stopPropagation();\n            };\n\n            a.style.display = 'none';\n            document.body.appendChild(a);\n\n            // Safari will open this file in the same page as a confusing Blob.\n            if (_main.default.prototype._isSafari()) {\n              var aText = 'Hello, Safari user! To download this file...\\n';\n              aText += '1. Go to File --> Save As.\\n';\n              aText += '2. Choose \"Page Source\" as the Format.\\n';\n              aText += '3. Name it with this extension: .\"'.concat(fx[1], '\"');\n              alert(aText);\n            }\n            a.click();\n          };\n\n          /**\n           *  Returns a file extension, or another string\n           *  if the provided parameter has no extension.\n           *\n           *  @param   {String} filename\n           *  @param   {String} [extension]\n           *  @return  {String[]} [fileName, fileExtension]\n           *\n           *  @private\n           */\n          function _checkFileExtension(filename, extension) {\n            if (!extension || extension === true || extension === 'true') {\n              extension = '';\n            }\n            if (!filename) {\n              filename = 'untitled';\n            }\n            var ext = '';\n            // make sure the file will have a name, see if filename needs extension\n            if (filename && filename.includes('.')) {\n              ext = filename.split('.').pop();\n            }\n            // append extension if it doesn't exist\n            if (extension) {\n              if (ext !== extension) {\n                ext = extension;\n                filename = ''.concat(filename, '.').concat(ext);\n              }\n            }\n            return [filename, ext];\n          }\n          _main.default.prototype._checkFileExtension = _checkFileExtension;\n\n          /**\n           *  Returns true if the browser is Safari, false if not.\n           *  Safari makes trouble for downloading files.\n           *\n           *  @return  {Boolean} [description]\n           *  @private\n           */\n          _main.default.prototype._isSafari = function() {\n            var x = Object.prototype.toString.call(window.HTMLElement);\n            return x.indexOf('Constructor') > 0;\n          };\n\n          /**\n           *  Helper function, a callback for download that deletes\n           *  an invisible anchor element from the DOM once the file\n           *  has been automatically downloaded.\n           *\n           *  @private\n           */\n          function destroyClickedElement(event) {\n            document.body.removeChild(event.target);\n          }\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        {\n          '../core/error_helpers': 45,\n          '../core/main': 50,\n          'es6-promise/auto': 23,\n          'fetch-jsonp': 25,\n          'file-saver': 26,\n          'whatwg-fetch': 37\n        }\n      ],\n      77: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          } /**\n           *  <a href=\"#/p5.Table\">Table</a> objects store data with multiple rows and columns, much\n           *  like in a traditional spreadsheet. Tables can be generated from\n           *  scratch, dynamically, or using data from an existing file.\n           *\n           *  @class p5.Table\n           *  @constructor\n           *  @param  {p5.TableRow[]}     [rows] An array of p5.TableRow objects\n           */ /**\n           * @module IO\n           * @submodule Table\n           * @requires core\n           */ /**\n           *  Table Options\n           *  <p>Generic class for handling tabular data, typically from a\n           *  CSV, TSV, or other sort of spreadsheet file.</p>\n           *  <p>CSV files are\n           *  <a href=\"http://en.wikipedia.org/wiki/Comma-separated_values\">\n           *  comma separated values</a>, often with the data in quotes. TSV\n           *  files use tabs as separators, and usually don't bother with the\n           *  quotes.</p>\n           *  <p>File names should end with .csv if they're comma separated.</p>\n           *  <p>A rough \"spec\" for CSV can be found\n           *  <a href=\"http://tools.ietf.org/html/rfc4180\">here</a>.</p>\n           *  <p>To load files, use the <a href=\"#/p5/loadTable\">loadTable</a> method.</p>\n           *  <p>To save tables to your computer, use the <a href=\"#/p5/save\">save</a> method\n           *   or the <a href=\"#/p5/saveTable\">saveTable</a> method.</p>\n           *\n           *  Possible options include:\n           *  <ul>\n           *  <li>csv - parse the table as comma-separated values\n           *  <li>tsv - parse the table as tab-separated values\n           *  <li>header - this table has a header (title) row\n           *  </ul>\n           */\n          _main.default.Table = function(rows) {\n            /**\n             * An array containing the names of the columns in the table, if the \"header\" the table is\n             * loaded with the \"header\" parameter.\n             * @property columns {String[]}\n             * @example\n             * <div class=\"norender\">\n             * <code>\n             * // Given the CSV file \"mammals.csv\"\n             * // in the project's \"assets\" folder:\n             * //\n             * // id,species,name\n             * // 0,Capra hircus,Goat\n             * // 1,Panthera pardus,Leopard\n             * // 2,Equus zebra,Zebra\n             *\n             * let table;\n             *\n             * function preload() {\n             *   //my table is comma separated value \"csv\"\n             *   //and has a header specifying the columns labels\n             *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n             * }\n             *\n             * function setup() {\n             *   //print the column names\n             *   for (let c = 0; c < table.getColumnCount(); c++) {\n             *     print('column ' + c + ' is named ' + table.columns[c]);\n             *   }\n             * }\n             * </code>\n             * </div>\n             */\n            this.columns = [];\n\n            /**\n             * An array containing the <a href=\"#/p5.Table\">p5.TableRow</a> objects that make up the\n             * rows of the table. The same result as calling <a href=\"#/p5/getRows\">getRows()</a>\n             * @property rows {p5.TableRow[]}\n             */\n            this.rows = [];\n          };\n\n          /**\n           *  Use <a href=\"#/p5/addRow\">addRow()</a> to add a new row of data to a <a href=\"#/p5.Table\">p5.Table</a> object. By default,\n           *  an empty row is created. Typically, you would store a reference to\n           *  the new row in a TableRow object (see newRow in the example above),\n           *  and then set individual values using <a href=\"#/p5/set\">set()</a>.\n           *\n           *  If a <a href=\"#/p5.TableRow\">p5.TableRow</a> object is included as a parameter, then that row is\n           *  duplicated and added to the table.\n           *\n           *  @method  addRow\n           *  @param   {p5.TableRow} [row] row to be added to the table\n           *  @return  {p5.TableRow} the row that was added\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   //add a row\n           *   let newRow = table.addRow();\n           *   newRow.setString('id', table.getRowCount() - 1);\n           *   newRow.setString('species', 'Canis Lupus');\n           *   newRow.setString('name', 'Wolf');\n           *\n           *   //print the results\n           *   for (let r = 0; r < table.getRowCount(); r++)\n           *     for (let c = 0; c < table.getColumnCount(); c++)\n           *       print(table.getString(r, c));\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.addRow = function(row) {\n            // make sure it is a valid TableRow\n            var r = row || new _main.default.TableRow();\n\n            if (typeof r.arr === 'undefined' || typeof r.obj === 'undefined') {\n              //r = new p5.prototype.TableRow(r);\n              throw new Error('invalid TableRow: '.concat(r));\n            }\n            r.table = this;\n            this.rows.push(r);\n            return r;\n          };\n\n          /**\n           * Removes a row from the table object.\n           *\n           * @method  removeRow\n           * @param   {Integer} id ID number of the row to remove\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   //remove the first row\n           *   table.removeRow(0);\n           *\n           *   //print the results\n           *   for (let r = 0; r < table.getRowCount(); r++)\n           *     for (let c = 0; c < table.getColumnCount(); c++)\n           *       print(table.getString(r, c));\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.removeRow = function(id) {\n            this.rows[id].table = null; // remove reference to table\n            var chunk = this.rows.splice(id + 1, this.rows.length);\n            this.rows.pop();\n            this.rows = this.rows.concat(chunk);\n          };\n\n          /**\n           * Returns a reference to the specified <a href=\"#/p5.TableRow\">p5.TableRow</a>. The reference\n           * can then be used to get and set values of the selected row.\n           *\n           * @method  getRow\n           * @param  {Integer}   rowID ID number of the row to get\n           * @return {p5.TableRow} <a href=\"#/p5.TableRow\">p5.TableRow</a> object\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   let row = table.getRow(1);\n           *   //print it column by column\n           *   //note: a row is an object, not an array\n           *   for (let c = 0; c < table.getColumnCount(); c++) {\n           *     print(row.getString(c));\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.getRow = function(r) {\n            return this.rows[r];\n          };\n\n          /**\n           *  Gets all rows from the table. Returns an array of <a href=\"#/p5.TableRow\">p5.TableRow</a>s.\n           *\n           *  @method  getRows\n           *  @return {p5.TableRow[]}   Array of <a href=\"#/p5.TableRow\">p5.TableRow</a>s\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   let rows = table.getRows();\n           *\n           *   //warning: rows is an array of objects\n           *   for (let r = 0; r < rows.length; r++) {\n           *     rows[r].set('name', 'Unicorn');\n           *   }\n           *\n           *   //print the results\n           *   for (let r = 0; r < table.getRowCount(); r++)\n           *     for (let c = 0; c < table.getColumnCount(); c++)\n           *       print(table.getString(r, c));\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.getRows = function() {\n            return this.rows;\n          };\n\n          /**\n           *  Finds the first row in the Table that contains the value\n           *  provided, and returns a reference to that row. Even if\n           *  multiple rows are possible matches, only the first matching\n           *  row is returned. The column to search may be specified by\n           *  either its ID or title.\n           *\n           *  @method  findRow\n           *  @param  {String} value  The value to match\n           *  @param  {Integer|String} column ID number or title of the\n           *                                 column to search\n           *  @return {p5.TableRow}\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   //find the animal named zebra\n           *   let row = table.findRow('Zebra', 'name');\n           *   //find the corresponding species\n           *   print(row.getString('species'));\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.findRow = function(value, column) {\n            // try the Object\n            if (typeof column === 'string') {\n              for (var i = 0; i < this.rows.length; i++) {\n                if (this.rows[i].obj[column] === value) {\n                  return this.rows[i];\n                }\n              }\n            } else {\n              // try the Array\n              for (var j = 0; j < this.rows.length; j++) {\n                if (this.rows[j].arr[column] === value) {\n                  return this.rows[j];\n                }\n              }\n            }\n            // otherwise...\n            return null;\n          };\n\n          /**\n           *  Finds the rows in the Table that contain the value\n           *  provided, and returns references to those rows. Returns an\n           *  Array, so for must be used to iterate through all the rows,\n           *  as shown in the example above. The column to search may be\n           *  specified by either its ID or title.\n           *\n           *  @method  findRows\n           *  @param  {String} value  The value to match\n           *  @param  {Integer|String} column ID number or title of the\n           *                                 column to search\n           *  @return {p5.TableRow[]}        An Array of TableRow objects\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   //add another goat\n           *   let newRow = table.addRow();\n           *   newRow.setString('id', table.getRowCount() - 1);\n           *   newRow.setString('species', 'Scape Goat');\n           *   newRow.setString('name', 'Goat');\n           *\n           *   //find the rows containing animals named Goat\n           *   let rows = table.findRows('Goat', 'name');\n           *   print(rows.length + ' Goats found');\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.findRows = function(value, column) {\n            var ret = [];\n            if (typeof column === 'string') {\n              for (var i = 0; i < this.rows.length; i++) {\n                if (this.rows[i].obj[column] === value) {\n                  ret.push(this.rows[i]);\n                }\n              }\n            } else {\n              // try the Array\n              for (var j = 0; j < this.rows.length; j++) {\n                if (this.rows[j].arr[column] === value) {\n                  ret.push(this.rows[j]);\n                }\n              }\n            }\n            return ret;\n          };\n\n          /**\n           * Finds the first row in the Table that matches the regular\n           * expression provided, and returns a reference to that row.\n           * Even if multiple rows are possible matches, only the first\n           * matching row is returned. The column to search may be\n           * specified by either its ID or title.\n           *\n           * @method  matchRow\n           * @param  {String|RegExp} regexp The regular expression to match\n           * @param  {String|Integer} column The column ID (number) or\n           *                                  title (string)\n           * @return {p5.TableRow}        TableRow object\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   //Search using specified regex on a given column, return TableRow object\n           *   let mammal = table.matchRow(new RegExp('ant'), 1);\n           *   print(mammal.getString(1));\n           *   //Output \"Panthera pardus\"\n           * }\n           * </code>\n           * </div>\n           *\n           */\n          _main.default.Table.prototype.matchRow = function(regexp, column) {\n            if (typeof column === 'number') {\n              for (var j = 0; j < this.rows.length; j++) {\n                if (this.rows[j].arr[column].match(regexp)) {\n                  return this.rows[j];\n                }\n              }\n            } else {\n              for (var i = 0; i < this.rows.length; i++) {\n                if (this.rows[i].obj[column].match(regexp)) {\n                  return this.rows[i];\n                }\n              }\n            }\n            return null;\n          };\n\n          /**\n           * Finds the rows in the Table that match the regular expression provided,\n           * and returns references to those rows. Returns an array, so for must be\n           * used to iterate through all the rows, as shown in the example. The\n           * column to search may be specified by either its ID or title.\n           *\n           * @method  matchRows\n           * @param  {String} regexp The regular expression to match\n           * @param  {String|Integer} [column] The column ID (number) or\n           *                                  title (string)\n           * @return {p5.TableRow[]}          An Array of TableRow objects\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let table;\n           *\n           * function setup() {\n           *   table = new p5.Table();\n           *\n           *   table.addColumn('name');\n           *   table.addColumn('type');\n           *\n           *   let newRow = table.addRow();\n           *   newRow.setString('name', 'Lion');\n           *   newRow.setString('type', 'Mammal');\n           *\n           *   newRow = table.addRow();\n           *   newRow.setString('name', 'Snake');\n           *   newRow.setString('type', 'Reptile');\n           *\n           *   newRow = table.addRow();\n           *   newRow.setString('name', 'Mosquito');\n           *   newRow.setString('type', 'Insect');\n           *\n           *   newRow = table.addRow();\n           *   newRow.setString('name', 'Lizard');\n           *   newRow.setString('type', 'Reptile');\n           *\n           *   let rows = table.matchRows('R.*', 'type');\n           *   for (let i = 0; i < rows.length; i++) {\n           *     print(rows[i].getString('name') + ': ' + rows[i].getString('type'));\n           *   }\n           * }\n           * // Sketch prints:\n           * // Snake: Reptile\n           * // Lizard: Reptile\n           * </code>\n           * </div>\n           */\n          _main.default.Table.prototype.matchRows = function(regexp, column) {\n            var ret = [];\n            if (typeof column === 'number') {\n              for (var j = 0; j < this.rows.length; j++) {\n                if (this.rows[j].arr[column].match(regexp)) {\n                  ret.push(this.rows[j]);\n                }\n              }\n            } else {\n              for (var i = 0; i < this.rows.length; i++) {\n                if (this.rows[i].obj[column].match(regexp)) {\n                  ret.push(this.rows[i]);\n                }\n              }\n            }\n            return ret;\n          };\n\n          /**\n           *  Retrieves all values in the specified column, and returns them\n           *  as an array. The column may be specified by either its ID or title.\n           *\n           *  @method  getColumn\n           *  @param  {String|Number} column String or Number of the column to return\n           *  @return {Array}       Array of column values\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   //getColumn returns an array that can be printed directly\n           *   print(table.getColumn('species'));\n           *   //outputs [\"Capra hircus\", \"Panthera pardus\", \"Equus zebra\"]\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.getColumn = function(value) {\n            var ret = [];\n            if (typeof value === 'string') {\n              for (var i = 0; i < this.rows.length; i++) {\n                ret.push(this.rows[i].obj[value]);\n              }\n            } else {\n              for (var j = 0; j < this.rows.length; j++) {\n                ret.push(this.rows[j].arr[value]);\n              }\n            }\n            return ret;\n          };\n\n          /**\n           *  Removes all rows from a Table. While all rows are removed,\n           *  columns and column titles are maintained.\n           *\n           *  @method  clearRows\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   table.clearRows();\n           *   print(table.getRowCount() + ' total rows in table');\n           *   print(table.getColumnCount() + ' total columns in table');\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.clearRows = function() {\n            delete this.rows;\n            this.rows = [];\n          };\n\n          /**\n           *  Use <a href=\"#/p5/addColumn\">addColumn()</a> to add a new column to a <a href=\"#/p5.Table\">Table</a> object.\n           *  Typically, you will want to specify a title, so the column\n           *  may be easily referenced later by name. (If no title is\n           *  specified, the new column's title will be null.)\n           *\n           *  @method  addColumn\n           *  @param {String} [title] title of the given column\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   table.addColumn('carnivore');\n           *   table.set(0, 'carnivore', 'no');\n           *   table.set(1, 'carnivore', 'yes');\n           *   table.set(2, 'carnivore', 'no');\n           *\n           *   //print the results\n           *   for (let r = 0; r < table.getRowCount(); r++)\n           *     for (let c = 0; c < table.getColumnCount(); c++)\n           *       print(table.getString(r, c));\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.addColumn = function(title) {\n            var t = title || null;\n            this.columns.push(t);\n          };\n\n          /**\n           *  Returns the total number of columns in a Table.\n           *\n           *  @method  getColumnCount\n           *  @return {Integer} Number of columns in this table\n           * @example\n           * <div>\n           * <code>\n           * // given the cvs file \"blobs.csv\" in /assets directory\n           * // ID, Name, Flavor, Shape, Color\n           * // Blob1, Blobby, Sweet, Blob, Pink\n           * // Blob2, Saddy, Savory, Blob, Blue\n           *\n           * let table;\n           *\n           * function preload() {\n           *   table = loadTable('assets/blobs.csv');\n           * }\n           *\n           * function setup() {\n           *   createCanvas(200, 100);\n           *   textAlign(CENTER);\n           *   background(255);\n           * }\n           *\n           * function draw() {\n           *   let numOfColumn = table.getColumnCount();\n           *   text('There are ' + numOfColumn + ' columns in the table.', 100, 50);\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Table.prototype.getColumnCount = function() {\n            return this.columns.length;\n          };\n\n          /**\n           *  Returns the total number of rows in a Table.\n           *\n           *  @method  getRowCount\n           *  @return {Integer} Number of rows in this table\n           * @example\n           * <div>\n           * <code>\n           * // given the cvs file \"blobs.csv\" in /assets directory\n           * //\n           * // ID, Name, Flavor, Shape, Color\n           * // Blob1, Blobby, Sweet, Blob, Pink\n           * // Blob2, Saddy, Savory, Blob, Blue\n           *\n           * let table;\n           *\n           * function preload() {\n           *   table = loadTable('assets/blobs.csv');\n           * }\n           *\n           * function setup() {\n           *   createCanvas(200, 100);\n           *   textAlign(CENTER);\n           *   background(255);\n           * }\n           *\n           * function draw() {\n           *   text('There are ' + table.getRowCount() + ' rows in the table.', 100, 50);\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Table.prototype.getRowCount = function() {\n            return this.rows.length;\n          };\n\n          /**\n           *  <p>Removes any of the specified characters (or \"tokens\").</p>\n           *\n           *  <p>If no column is specified, then the values in all columns and\n           *  rows are processed. A specific column may be referenced by\n           *  either its ID or title.</p>\n           *\n           *  @method  removeTokens\n           *  @param  {String} chars  String listing characters to be removed\n           *  @param  {String|Integer} [column] Column ID (number)\n           *                                   or name (string)\n           *\n           * @example\n           * <div class=\"norender\"><code>\n           * function setup() {\n           *   let table = new p5.Table();\n           *\n           *   table.addColumn('name');\n           *   table.addColumn('type');\n           *\n           *   let newRow = table.addRow();\n           *   newRow.setString('name', '   $Lion  ,');\n           *   newRow.setString('type', ',,,Mammal');\n           *\n           *   newRow = table.addRow();\n           *   newRow.setString('name', '$Snake  ');\n           *   newRow.setString('type', ',,,Reptile');\n           *\n           *   table.removeTokens(',$ ');\n           *   print(table.getArray());\n           * }\n           *\n           * // prints:\n           * //  0  \"Lion\"   \"Mamal\"\n           * //  1  \"Snake\"  \"Reptile\"\n           * </code></div>\n           */\n          _main.default.Table.prototype.removeTokens = function(chars, column) {\n            var escape = function escape(s) {\n              return s.replace(/[-/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n            };\n            var charArray = [];\n            for (var i = 0; i < chars.length; i++) {\n              charArray.push(escape(chars.charAt(i)));\n            }\n            var regex = new RegExp(charArray.join('|'), 'g');\n\n            if (typeof column === 'undefined') {\n              for (var c = 0; c < this.columns.length; c++) {\n                for (var d = 0; d < this.rows.length; d++) {\n                  var s = this.rows[d].arr[c];\n                  s = s.replace(regex, '');\n                  this.rows[d].arr[c] = s;\n                  this.rows[d].obj[this.columns[c]] = s;\n                }\n              }\n            } else if (typeof column === 'string') {\n              for (var j = 0; j < this.rows.length; j++) {\n                var val = this.rows[j].obj[column];\n                val = val.replace(regex, '');\n                this.rows[j].obj[column] = val;\n                var pos = this.columns.indexOf(column);\n                this.rows[j].arr[pos] = val;\n              }\n            } else {\n              for (var k = 0; k < this.rows.length; k++) {\n                var str = this.rows[k].arr[column];\n                str = str.replace(regex, '');\n                this.rows[k].arr[column] = str;\n                this.rows[k].obj[this.columns[column]] = str;\n              }\n            }\n          };\n\n          /**\n           *  Trims leading and trailing whitespace, such as spaces and tabs,\n           *  from String table values. If no column is specified, then the\n           *  values in all columns and rows are trimmed. A specific column\n           *  may be referenced by either its ID or title.\n           *\n           *  @method  trim\n           *  @param  {String|Integer} [column] Column ID (number)\n           *                                   or name (string)\n           * @example\n           * <div class=\"norender\"><code>\n           * function setup() {\n           *   let table = new p5.Table();\n           *\n           *   table.addColumn('name');\n           *   table.addColumn('type');\n           *\n           *   let newRow = table.addRow();\n           *   newRow.setString('name', '   Lion  ,');\n           *   newRow.setString('type', ' Mammal  ');\n           *\n           *   newRow = table.addRow();\n           *   newRow.setString('name', '  Snake  ');\n           *   newRow.setString('type', '  Reptile  ');\n           *\n           *   table.trim();\n           *   print(table.getArray());\n           * }\n           *\n           * // prints:\n           * //  0  \"Lion\"   \"Mamal\"\n           * //  1  \"Snake\"  \"Reptile\"\n           * </code></div>\n           */\n          _main.default.Table.prototype.trim = function(column) {\n            var regex = new RegExp(' ', 'g');\n\n            if (typeof column === 'undefined') {\n              for (var c = 0; c < this.columns.length; c++) {\n                for (var d = 0; d < this.rows.length; d++) {\n                  var s = this.rows[d].arr[c];\n                  s = s.replace(regex, '');\n                  this.rows[d].arr[c] = s;\n                  this.rows[d].obj[this.columns[c]] = s;\n                }\n              }\n            } else if (typeof column === 'string') {\n              for (var j = 0; j < this.rows.length; j++) {\n                var val = this.rows[j].obj[column];\n                val = val.replace(regex, '');\n                this.rows[j].obj[column] = val;\n                var pos = this.columns.indexOf(column);\n                this.rows[j].arr[pos] = val;\n              }\n            } else {\n              for (var k = 0; k < this.rows.length; k++) {\n                var str = this.rows[k].arr[column];\n                str = str.replace(regex, '');\n                this.rows[k].arr[column] = str;\n                this.rows[k].obj[this.columns[column]] = str;\n              }\n            }\n          };\n\n          /**\n           *  Use <a href=\"#/p5/removeColumn\">removeColumn()</a> to remove an existing column from a Table\n           *  object. The column to be removed may be identified by either\n           *  its title (a String) or its index value (an int).\n           *  removeColumn(0) would remove the first column, removeColumn(1)\n           *  would remove the second column, and so on.\n           *\n           *  @method  removeColumn\n           *  @param  {String|Integer} column columnName (string) or ID (number)\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   table.removeColumn('id');\n           *   print(table.getColumnCount());\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.removeColumn = function(c) {\n            var cString;\n            var cNumber;\n            if (typeof c === 'string') {\n              // find the position of c in the columns\n              cString = c;\n              cNumber = this.columns.indexOf(c);\n            } else {\n              cNumber = c;\n              cString = this.columns[c];\n            }\n\n            var chunk = this.columns.splice(cNumber + 1, this.columns.length);\n            this.columns.pop();\n            this.columns = this.columns.concat(chunk);\n\n            for (var i = 0; i < this.rows.length; i++) {\n              var tempR = this.rows[i].arr;\n              var chip = tempR.splice(cNumber + 1, tempR.length);\n              tempR.pop();\n              this.rows[i].arr = tempR.concat(chip);\n              delete this.rows[i].obj[cString];\n            }\n          };\n\n          /**\n           * Stores a value in the Table's specified row and column.\n           * The row is specified by its ID, while the column may be specified\n           * by either its ID or title.\n           *\n           * @method  set\n           * @param {Integer} row row ID\n           * @param {String|Integer} column column ID (Number)\n           *                               or title (String)\n           * @param {String|Number} value  value to assign\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   table.set(0, 'species', 'Canis Lupus');\n           *   table.set(0, 'name', 'Wolf');\n           *\n           *   //print the results\n           *   for (let r = 0; r < table.getRowCount(); r++)\n           *     for (let c = 0; c < table.getColumnCount(); c++)\n           *       print(table.getString(r, c));\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.set = function(row, column, value) {\n            this.rows[row].set(column, value);\n          };\n\n          /**\n           * Stores a Float value in the Table's specified row and column.\n           * The row is specified by its ID, while the column may be specified\n           * by either its ID or title.\n           *\n           * @method setNum\n           * @param {Integer} row row ID\n           * @param {String|Integer} column column ID (Number)\n           *                               or title (String)\n           * @param {Number} value  value to assign\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   table.setNum(1, 'id', 1);\n           *\n           *   print(table.getColumn(0));\n           *   //[\"0\", 1, \"2\"]\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           */\n          _main.default.Table.prototype.setNum = function(row, column, value) {\n            this.rows[row].setNum(column, value);\n          };\n\n          /**\n           * Stores a String value in the Table's specified row and column.\n           * The row is specified by its ID, while the column may be specified\n           * by either its ID or title.\n           *\n           * @method  setString\n           * @param {Integer} row row ID\n           * @param {String|Integer} column column ID (Number)\n           *                               or title (String)\n           * @param {String} value  value to assign\n           * @example\n           * <div class=\"norender\"><code>\n           * // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   //add a row\n           *   let newRow = table.addRow();\n           *   newRow.setString('id', table.getRowCount() - 1);\n           *   newRow.setString('species', 'Canis Lupus');\n           *   newRow.setString('name', 'Wolf');\n           *\n           *   print(table.getArray());\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           */\n          _main.default.Table.prototype.setString = function(row, column, value) {\n            this.rows[row].setString(column, value);\n          };\n\n          /**\n           * Retrieves a value from the Table's specified row and column.\n           * The row is specified by its ID, while the column may be specified by\n           * either its ID or title.\n           *\n           * @method  get\n           * @param {Integer} row row ID\n           * @param  {String|Integer} column columnName (string) or\n           *                                   ID (number)\n           * @return {String|Number}\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   print(table.get(0, 1));\n           *   //Capra hircus\n           *   print(table.get(0, 'species'));\n           *   //Capra hircus\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.get = function(row, column) {\n            return this.rows[row].get(column);\n          };\n\n          /**\n           * Retrieves a Float value from the Table's specified row and column.\n           * The row is specified by its ID, while the column may be specified by\n           * either its ID or title.\n           *\n           * @method  getNum\n           * @param {Integer} row row ID\n           * @param  {String|Integer} column columnName (string) or\n           *                                   ID (number)\n           * @return {Number}\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   print(table.getNum(1, 0) + 100);\n           *   //id 1 + 100 = 101\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.getNum = function(row, column) {\n            return this.rows[row].getNum(column);\n          };\n\n          /**\n           * Retrieves a String value from the Table's specified row and column.\n           * The row is specified by its ID, while the column may be specified by\n           * either its ID or title.\n           *\n           * @method  getString\n           * @param {Integer} row row ID\n           * @param  {String|Integer} column columnName (string) or\n           *                                   ID (number)\n           * @return {String}\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   // table is comma separated value \"CSV\"\n           *   // and has specifiying header for column labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   print(table.getString(0, 0)); // 0\n           *   print(table.getString(0, 1)); // Capra hircus\n           *   print(table.getString(0, 2)); // Goat\n           *   print(table.getString(1, 0)); // 1\n           *   print(table.getString(1, 1)); // Panthera pardus\n           *   print(table.getString(1, 2)); // Leopard\n           *   print(table.getString(2, 0)); // 2\n           *   print(table.getString(2, 1)); // Equus zebra\n           *   print(table.getString(2, 2)); // Zebra\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           *\n           */\n\n          _main.default.Table.prototype.getString = function(row, column) {\n            return this.rows[row].getString(column);\n          };\n\n          /**\n           * Retrieves all table data and returns as an object. If a column name is\n           * passed in, each row object will be stored with that attribute as its\n           * title.\n           *\n           * @method  getObject\n           * @param {String} [headerColumn] Name of the column which should be used to\n           *                              title each row object (optional)\n           * @return {Object}\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   let tableObject = table.getObject();\n           *\n           *   print(tableObject);\n           *   //outputs an object\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.getObject = function(headerColumn) {\n            var tableObject = {};\n            var obj, cPos, index;\n\n            for (var i = 0; i < this.rows.length; i++) {\n              obj = this.rows[i].obj;\n\n              if (typeof headerColumn === 'string') {\n                cPos = this.columns.indexOf(headerColumn); // index of columnID\n                if (cPos >= 0) {\n                  index = obj[headerColumn];\n                  tableObject[index] = obj;\n                } else {\n                  throw new Error(\n                    'This table has no column named \"'.concat(headerColumn, '\"')\n                  );\n                }\n              } else {\n                tableObject[i] = this.rows[i].obj;\n              }\n            }\n            return tableObject;\n          };\n\n          /**\n           * Retrieves all table data and returns it as a multidimensional array.\n           *\n           * @method  getArray\n           * @return {Array}\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Given the CSV file \"mammals.csv\"\n           * // in the project's \"assets\" folder\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leoperd\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   // table is comma separated value \"CSV\"\n           *   // and has specifiying header for column labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   let tableArray = table.getArray();\n           *   for (let i = 0; i < tableArray.length; i++) {\n           *     print(tableArray[i]);\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           *@alt\n           * no image displayed\n           *\n           */\n          _main.default.Table.prototype.getArray = function() {\n            var tableArray = [];\n            for (var i = 0; i < this.rows.length; i++) {\n              tableArray.push(this.rows[i].arr);\n            }\n            return tableArray;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      78: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module IO\n           * @submodule Table\n           * @requires core\n           */ /**\n           *  A TableRow object represents a single row of data values,\n           *  stored in columns, from a table.\n           *\n           *  A Table Row contains both an ordered array, and an unordered\n           *  JSON object.\n           *\n           *  @class p5.TableRow\n           *  @constructor\n           *  @param {String} [str]       optional: populate the row with a\n           *                              string of values, separated by the\n           *                              separator\n           *  @param {String} [separator] comma separated values (csv) by default\n           */ _main.default.TableRow = function(str, separator) {\n            var arr = [];\n            var obj = {};\n            if (str) {\n              separator = separator || ',';\n              arr = str.split(separator);\n            }\n            for (var i = 0; i < arr.length; i++) {\n              var key = i;\n              var val = arr[i];\n              obj[key] = val;\n            }\n            this.arr = arr;\n            this.obj = obj;\n            this.table = null;\n          };\n\n          /**\n           *  Stores a value in the TableRow's specified column.\n           *  The column may be specified by either its ID or title.\n           *\n           *  @method  set\n           *  @param {String|Integer} column Column ID (Number)\n           *                                or Title (String)\n           *  @param {String|Number} value  The value to be stored\n           *\n           * @example\n           * <div class=\"norender\"><code>\n           * // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   let rows = table.getRows();\n           *   for (let r = 0; r < rows.length; r++) {\n           *     rows[r].set('name', 'Unicorn');\n           *   }\n           *\n           *   //print the results\n           *   print(table.getArray());\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           */\n          _main.default.TableRow.prototype.set = function(column, value) {\n            // if typeof column is string, use .obj\n            if (typeof column === 'string') {\n              var cPos = this.table.columns.indexOf(column); // index of columnID\n              if (cPos >= 0) {\n                this.obj[column] = value;\n                this.arr[cPos] = value;\n              } else {\n                throw new Error('This table has no column named \"'.concat(column, '\"'));\n              }\n            } else {\n              // if typeof column is number, use .arr\n              if (column < this.table.columns.length) {\n                this.arr[column] = value;\n                var cTitle = this.table.columns[column];\n                this.obj[cTitle] = value;\n              } else {\n                throw new Error(\n                  'Column #'.concat(column, ' is out of the range of this table')\n                );\n              }\n            }\n          };\n\n          /**\n           *  Stores a Float value in the TableRow's specified column.\n           *  The column may be specified by either its ID or title.\n           *\n           *  @method  setNum\n           *  @param {String|Integer} column Column ID (Number)\n           *                                or Title (String)\n           *  @param {Number|String} value  The value to be stored\n           *                                as a Float\n           * @example\n           * <div class=\"norender\"><code>\n           * // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   let rows = table.getRows();\n           *   for (let r = 0; r < rows.length; r++) {\n           *     rows[r].setNum('id', r + 10);\n           *   }\n           *\n           *   print(table.getArray());\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           */\n          _main.default.TableRow.prototype.setNum = function(column, value) {\n            var floatVal = parseFloat(value);\n            this.set(column, floatVal);\n          };\n\n          /**\n           *  Stores a String value in the TableRow's specified column.\n           *  The column may be specified by either its ID or title.\n           *\n           *  @method  setString\n           *  @param {String|Integer} column Column ID (Number)\n           *                                or Title (String)\n           *  @param {String|Number|Boolean|Object} value  The value to be stored\n           *                                as a String\n           * @example\n           * <div class=\"norender\"><code>\n           * // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   let rows = table.getRows();\n           *   for (let r = 0; r < rows.length; r++) {\n           *     let name = rows[r].getString('name');\n           *     rows[r].setString('name', 'A ' + name + ' named George');\n           *   }\n           *\n           *   print(table.getArray());\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           */\n          _main.default.TableRow.prototype.setString = function(column, value) {\n            var stringVal = value.toString();\n            this.set(column, stringVal);\n          };\n\n          /**\n           *  Retrieves a value from the TableRow's specified column.\n           *  The column may be specified by either its ID or title.\n           *\n           *  @method  get\n           *  @param  {String|Integer} column columnName (string) or\n           *                                   ID (number)\n           *  @return {String|Number}\n           *\n           * @example\n           * <div class=\"norender\"><code>\n           * // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   let names = [];\n           *   let rows = table.getRows();\n           *   for (let r = 0; r < rows.length; r++) {\n           *     names.push(rows[r].get('name'));\n           *   }\n           *\n           *   print(names);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           */\n          _main.default.TableRow.prototype.get = function(column) {\n            if (typeof column === 'string') {\n              return this.obj[column];\n            } else {\n              return this.arr[column];\n            }\n          };\n\n          /**\n           *  Retrieves a Float value from the TableRow's specified\n           *  column. The column may be specified by either its ID or\n           *  title.\n           *\n           *  @method  getNum\n           *  @param  {String|Integer} column columnName (string) or\n           *                                   ID (number)\n           *  @return {Number}  Float Floating point number\n           * @example\n           * <div class=\"norender\"><code>\n           * // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   let rows = table.getRows();\n           *   let minId = Infinity;\n           *   let maxId = -Infinity;\n           *   for (let r = 0; r < rows.length; r++) {\n           *     let id = rows[r].getNum('id');\n           *     minId = min(minId, id);\n           *     maxId = min(maxId, id);\n           *   }\n           *   print('minimum id = ' + minId + ', maximum id = ' + maxId);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           */\n          _main.default.TableRow.prototype.getNum = function(column) {\n            var ret;\n            if (typeof column === 'string') {\n              ret = parseFloat(this.obj[column]);\n            } else {\n              ret = parseFloat(this.arr[column]);\n            }\n\n            if (ret.toString() === 'NaN') {\n              throw 'Error: '.concat(this.obj[column], ' is NaN (Not a Number)');\n            }\n            return ret;\n          };\n\n          /**\n           *  Retrieves an String value from the TableRow's specified\n           *  column. The column may be specified by either its ID or\n           *  title.\n           *\n           *  @method  getString\n           *  @param  {String|Integer} column columnName (string) or\n           *                                   ID (number)\n           *  @return {String}  String\n           * @example\n           * <div class=\"norender\"><code>\n           * // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n           * //\n           * // id,species,name\n           * // 0,Capra hircus,Goat\n           * // 1,Panthera pardus,Leopard\n           * // 2,Equus zebra,Zebra\n           *\n           * let table;\n           *\n           * function preload() {\n           *   //my table is comma separated value \"csv\"\n           *   //and has a header specifying the columns labels\n           *   table = loadTable('assets/mammals.csv', 'csv', 'header');\n           * }\n           *\n           * function setup() {\n           *   let rows = table.getRows();\n           *   let longest = '';\n           *   for (let r = 0; r < rows.length; r++) {\n           *     let species = rows[r].getString('species');\n           *     if (longest.length < species.length) {\n           *       longest = species;\n           *     }\n           *   }\n           *\n           *   print('longest: ' + longest);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           */\n          _main.default.TableRow.prototype.getString = function(column) {\n            if (typeof column === 'string') {\n              return this.obj[column].toString();\n            } else {\n              return this.arr[column].toString();\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      79: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module IO\n           * @submodule Input\n           * @requires core\n           */ /**\n           * XML is a representation of an XML object, able to parse XML code. Use\n           * <a href=\"#/p5/loadXML\">loadXML()</a> to load external XML files and create XML objects.\n           *\n           * @class p5.XML\n           * @constructor\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let children = xml.getChildren('animal');\n           *\n           *   for (let i = 0; i < children.length; i++) {\n           *     let id = children[i].getNum('id');\n           *     let coloring = children[i].getString('species');\n           *     let name = children[i].getContent();\n           *     print(id + ', ' + coloring + ', ' + name);\n           *   }\n           * }\n           *\n           * // Sketch prints:\n           * // 0, Capra hircus, Goat\n           * // 1, Panthera pardus, Leopard\n           * // 2, Equus zebra, Zebra\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           *\n           */ _main.default.XML = function(DOM) {\n            if (!DOM) {\n              var xmlDoc = document.implementation.createDocument(null, 'doc');\n              this.DOM = xmlDoc.createElement('root');\n            } else {\n              this.DOM = DOM;\n            }\n          };\n\n          /**\n           * Gets a copy of the element's parent. Returns the parent as another\n           * <a href=\"#/p5.XML\">p5.XML</a> object.\n           *\n           * @method getParent\n           * @return {p5.XML}   element parent\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let children = xml.getChildren('animal');\n           *   let parent = children[1].getParent();\n           *   print(parent.getName());\n           * }\n           *\n           * // Sketch prints:\n           * // mammals\n           * </code></div>\n           */\n          _main.default.XML.prototype.getParent = function() {\n            return new _main.default.XML(this.DOM.parentElement);\n          };\n\n          /**\n           *  Gets the element's full name, which is returned as a String.\n           *\n           * @method getName\n           * @return {String} the name of the node\n           * @example&lt;animal\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   print(xml.getName());\n           * }\n           *\n           * // Sketch prints:\n           * // mammals\n           * </code></div>\n           */\n          _main.default.XML.prototype.getName = function() {\n            return this.DOM.tagName;\n          };\n\n          /**\n           * Sets the element's name, which is specified as a String.\n           *\n           * @method setName\n           * @param {String} the new name of the node\n           * @example&lt;animal\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   print(xml.getName());\n           *   xml.setName('fish');\n           *   print(xml.getName());\n           * }\n           *\n           * // Sketch prints:\n           * // mammals\n           * // fish\n           * </code></div>\n           */\n          _main.default.XML.prototype.setName = function(name) {\n            var content = this.DOM.innerHTML;\n            var attributes = this.DOM.attributes;\n            var xmlDoc = document.implementation.createDocument(null, 'default');\n            var newDOM = xmlDoc.createElement(name);\n            newDOM.innerHTML = content;\n            for (var i = 0; i < attributes.length; i++) {\n              newDOM.setAttribute(attributes[i].nodeName, attributes.nodeValue);\n            }\n            this.DOM = newDOM;\n          };\n\n          /**\n           * Checks whether or not the element has any children, and returns the result\n           * as a boolean.\n           *\n           * @method hasChildren\n           * @return {boolean}\n           * @example&lt;animal\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   print(xml.hasChildren());\n           * }\n           *\n           * // Sketch prints:\n           * // true\n           * </code></div>\n           */\n          _main.default.XML.prototype.hasChildren = function() {\n            return this.DOM.children.length > 0;\n          };\n\n          /**\n           * Get the names of all of the element's children, and returns the names as an\n           * array of Strings. This is the same as looping through and calling <a href=\"#/p5.XML/getName\">getName()</a>\n           * on each child element individually.\n           *\n           * @method listChildren\n           * @return {String[]} names of the children of the element\n           * @example&lt;animal\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   print(xml.listChildren());\n           * }\n           *\n           * // Sketch prints:\n           * // [\"animal\", \"animal\", \"animal\"]\n           * </code></div>\n           */\n          _main.default.XML.prototype.listChildren = function() {\n            var arr = [];\n            for (var i = 0; i < this.DOM.childNodes.length; i++) {\n              arr.push(this.DOM.childNodes[i].nodeName);\n            }\n            return arr;\n          };\n\n          /**\n           * Returns all of the element's children as an array of <a href=\"#/p5.XML\">p5.XML</a> objects. When\n           * the name parameter is specified, then it will return all children that match\n           * that name.\n           *\n           * @method getChildren\n           * @param {String} [name] element name\n           * @return {p5.XML[]} children of the element\n           * @example&lt;animal\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let animals = xml.getChildren('animal');\n           *\n           *   for (let i = 0; i < animals.length; i++) {\n           *     print(animals[i].getContent());\n           *   }\n           * }\n           *\n           * // Sketch prints:\n           * // \"Goat\"\n           * // \"Leopard\"\n           * // \"Zebra\"\n           * </code></div>\n           */\n          _main.default.XML.prototype.getChildren = function(param) {\n            if (param) {\n              return elementsToP5XML(this.DOM.getElementsByTagName(param));\n            } else {\n              return elementsToP5XML(this.DOM.children);\n            }\n          };\n\n          function elementsToP5XML(elements) {\n            var arr = [];\n            for (var i = 0; i < elements.length; i++) {\n              arr.push(new _main.default.XML(elements[i]));\n            }\n            return arr;\n          }\n\n          /**\n           * Returns the first of the element's children that matches the name parameter\n           * or the child of the given index.It returns undefined if no matching\n           * child is found.\n           *\n           * @method getChild\n           * @param {String|Integer} name element name or index\n           * @return {p5.XML}\n           * @example&lt;animal\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let firstChild = xml.getChild('animal');\n           *   print(firstChild.getContent());\n           * }\n           *\n           * // Sketch prints:\n           * // \"Goat\"\n           * </code></div>\n           * <div class='norender'><code>\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let secondChild = xml.getChild(1);\n           *   print(secondChild.getContent());\n           * }\n           *\n           * // Sketch prints:\n           * // \"Leopard\"\n           * </code></div>\n           */\n          _main.default.XML.prototype.getChild = function(param) {\n            if (typeof param === 'string') {\n              var _iteratorNormalCompletion = true;\n              var _didIteratorError = false;\n              var _iteratorError = undefined;\n              try {\n                for (\n                  var _iterator = this.DOM.children[Symbol.iterator](), _step;\n                  !(_iteratorNormalCompletion = (_step = _iterator.next()).done);\n                  _iteratorNormalCompletion = true\n                ) {\n                  var child = _step.value;\n                  if (child.tagName === param) return new _main.default.XML(child);\n                }\n              } catch (err) {\n                _didIteratorError = true;\n                _iteratorError = err;\n              } finally {\n                try {\n                  if (!_iteratorNormalCompletion && _iterator.return != null) {\n                    _iterator.return();\n                  }\n                } finally {\n                  if (_didIteratorError) {\n                    throw _iteratorError;\n                  }\n                }\n              }\n            } else {\n              return new _main.default.XML(this.DOM.children[param]);\n            }\n          };\n\n          /**\n           * Appends a new child to the element. The child can be specified with\n           * either a String, which will be used as the new tag's name, or as a\n           * reference to an existing <a href=\"#/p5.XML\">p5.XML</a> object.\n           * A reference to the newly created child is returned as an <a href=\"#/p5.XML\">p5.XML</a> object.\n           *\n           * @method addChild\n           * @param {p5.XML} node a <a href=\"#/p5.XML\">p5.XML</a> Object which will be the child to be added\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let child = new p5.XML();\n           *   child.setName('animal');\n           *   child.setAttribute('id', '3');\n           *   child.setAttribute('species', 'Ornithorhynchus anatinus');\n           *   child.setContent('Platypus');\n           *   xml.addChild(child);\n           *\n           *   let animals = xml.getChildren('animal');\n           *   print(animals[animals.length - 1].getContent());\n           * }\n           *\n           * // Sketch prints:\n           * // \"Goat\"\n           * // \"Leopard\"\n           * // \"Zebra\"\n           * </code></div>\n           */\n          _main.default.XML.prototype.addChild = function(node) {\n            if (node instanceof _main.default.XML) {\n              this.DOM.appendChild(node.DOM);\n            } else {\n              // PEND\n            }\n          };\n\n          /**\n           * Removes the element specified by name or index.\n           *\n           * @method removeChild\n           * @param {String|Integer} name element name or index\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   xml.removeChild('animal');\n           *   let children = xml.getChildren();\n           *   for (let i = 0; i < children.length; i++) {\n           *     print(children[i].getContent());\n           *   }\n           * }\n           *\n           * // Sketch prints:\n           * // \"Leopard\"\n           * // \"Zebra\"\n           * </code></div>\n           * <div class='norender'><code>\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   xml.removeChild(1);\n           *   let children = xml.getChildren();\n           *   for (let i = 0; i < children.length; i++) {\n           *     print(children[i].getContent());\n           *   }\n           * }\n           *\n           * // Sketch prints:\n           * // \"Goat\"\n           * // \"Zebra\"\n           * </code></div>\n           */\n          _main.default.XML.prototype.removeChild = function(param) {\n            var ind = -1;\n            if (typeof param === 'string') {\n              for (var i = 0; i < this.DOM.children.length; i++) {\n                if (this.DOM.children[i].tagName === param) {\n                  ind = i;\n                  break;\n                }\n              }\n            } else {\n              ind = param;\n            }\n            if (ind !== -1) {\n              this.DOM.removeChild(this.DOM.children[ind]);\n            }\n          };\n\n          /**\n           * Counts the specified element's number of attributes, returned as an Number.\n           *\n           * @method getAttributeCount\n           * @return {Integer}\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let firstChild = xml.getChild('animal');\n           *   print(firstChild.getAttributeCount());\n           * }\n           *\n           * // Sketch prints:\n           * // 2\n           * </code></div>\n           */\n          _main.default.XML.prototype.getAttributeCount = function() {\n            return this.DOM.attributes.length;\n          };\n\n          /**\n           * Gets all of the specified element's attributes, and returns them as an\n           * array of Strings.\n           *\n           * @method listAttributes\n           * @return {String[]} an array of strings containing the names of attributes\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let firstChild = xml.getChild('animal');\n           *   print(firstChild.listAttributes());\n           * }\n           *\n           * // Sketch prints:\n           * // [\"id\", \"species\"]\n           * </code></div>\n           */\n          _main.default.XML.prototype.listAttributes = function() {\n            var arr = [];\n            var _iteratorNormalCompletion2 = true;\n            var _didIteratorError2 = false;\n            var _iteratorError2 = undefined;\n            try {\n              for (\n                var _iterator2 = this.DOM.attributes[Symbol.iterator](), _step2;\n                !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done);\n                _iteratorNormalCompletion2 = true\n              ) {\n                var attribute = _step2.value;\n                arr.push(attribute.nodeName);\n              }\n            } catch (err) {\n              _didIteratorError2 = true;\n              _iteratorError2 = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n                  _iterator2.return();\n                }\n              } finally {\n                if (_didIteratorError2) {\n                  throw _iteratorError2;\n                }\n              }\n            }\n\n            return arr;\n          };\n\n          /**\n           *  Checks whether or not an element has the specified attribute.\n           *\n           * @method hasAttribute\n           * @param {String} the attribute to be checked\n           * @return {boolean} true if attribute found else false\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let firstChild = xml.getChild('animal');\n           *   print(firstChild.hasAttribute('species'));\n           *   print(firstChild.hasAttribute('color'));\n           * }\n           *\n           * // Sketch prints:\n           * // true\n           * // false\n           * </code></div>\n           */\n          _main.default.XML.prototype.hasAttribute = function(name) {\n            var obj = {};\n            var _iteratorNormalCompletion3 = true;\n            var _didIteratorError3 = false;\n            var _iteratorError3 = undefined;\n            try {\n              for (\n                var _iterator3 = this.DOM.attributes[Symbol.iterator](), _step3;\n                !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done);\n                _iteratorNormalCompletion3 = true\n              ) {\n                var attribute = _step3.value;\n                obj[attribute.nodeName] = attribute.nodeValue;\n              }\n            } catch (err) {\n              _didIteratorError3 = true;\n              _iteratorError3 = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion3 && _iterator3.return != null) {\n                  _iterator3.return();\n                }\n              } finally {\n                if (_didIteratorError3) {\n                  throw _iteratorError3;\n                }\n              }\n            }\n\n            return obj[name] ? true : false;\n          };\n\n          /**\n           * Returns an attribute value of the element as an Number. If the defaultValue\n           * parameter is specified and the attribute doesn't exist, then defaultValue\n           * is returned. If no defaultValue is specified and the attribute doesn't\n           * exist, the value 0 is returned.\n           *\n           * @method getNum\n           * @param {String} name            the non-null full name of the attribute\n           * @param {Number} [defaultValue]  the default value of the attribute\n           * @return {Number}\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let firstChild = xml.getChild('animal');\n           *   print(firstChild.getNum('id'));\n           * }\n           *\n           * // Sketch prints:\n           * // 0\n           * </code></div>\n           */\n          _main.default.XML.prototype.getNum = function(name, defaultValue) {\n            var obj = {};\n            var _iteratorNormalCompletion4 = true;\n            var _didIteratorError4 = false;\n            var _iteratorError4 = undefined;\n            try {\n              for (\n                var _iterator4 = this.DOM.attributes[Symbol.iterator](), _step4;\n                !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done);\n                _iteratorNormalCompletion4 = true\n              ) {\n                var attribute = _step4.value;\n                obj[attribute.nodeName] = attribute.nodeValue;\n              }\n            } catch (err) {\n              _didIteratorError4 = true;\n              _iteratorError4 = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion4 && _iterator4.return != null) {\n                  _iterator4.return();\n                }\n              } finally {\n                if (_didIteratorError4) {\n                  throw _iteratorError4;\n                }\n              }\n            }\n\n            return Number(obj[name]) || defaultValue || 0;\n          };\n\n          /**\n           * Returns an attribute value of the element as an String. If the defaultValue\n           * parameter is specified and the attribute doesn't exist, then defaultValue\n           * is returned. If no defaultValue is specified and the attribute doesn't\n           * exist, null is returned.\n           *\n           * @method getString\n           * @param {String} name            the non-null full name of the attribute\n           * @param {Number} [defaultValue]  the default value of the attribute\n           * @return {String}\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let firstChild = xml.getChild('animal');\n           *   print(firstChild.getString('species'));\n           * }\n           *\n           * // Sketch prints:\n           * // \"Capra hircus\"\n           * </code></div>\n           */\n          _main.default.XML.prototype.getString = function(name, defaultValue) {\n            var obj = {};\n            var _iteratorNormalCompletion5 = true;\n            var _didIteratorError5 = false;\n            var _iteratorError5 = undefined;\n            try {\n              for (\n                var _iterator5 = this.DOM.attributes[Symbol.iterator](), _step5;\n                !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done);\n                _iteratorNormalCompletion5 = true\n              ) {\n                var attribute = _step5.value;\n                obj[attribute.nodeName] = attribute.nodeValue;\n              }\n            } catch (err) {\n              _didIteratorError5 = true;\n              _iteratorError5 = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion5 && _iterator5.return != null) {\n                  _iterator5.return();\n                }\n              } finally {\n                if (_didIteratorError5) {\n                  throw _iteratorError5;\n                }\n              }\n            }\n\n            return obj[name] ? String(obj[name]) : defaultValue || null;\n          };\n\n          /**\n           * Sets the content of an element's attribute. The first parameter specifies\n           * the attribute name, while the second specifies the new content.\n           *\n           * @method setAttribute\n           * @param {String} name            the full name of the attribute\n           * @param {Number|String|Boolean} value  the value of the attribute\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let firstChild = xml.getChild('animal');\n           *   print(firstChild.getString('species'));\n           *   firstChild.setAttribute('species', 'Jamides zebra');\n           *   print(firstChild.getString('species'));\n           * }\n           *\n           * // Sketch prints:\n           * // \"Capra hircus\"\n           * // \"Jamides zebra\"\n           * </code></div>\n           */\n          _main.default.XML.prototype.setAttribute = function(name, value) {\n            this.DOM.setAttribute(name, value);\n          };\n\n          /**\n           * Returns the content of an element. If there is no such content,\n           * defaultValue is returned if specified, otherwise null is returned.\n           *\n           * @method getContent\n           * @param {String} [defaultValue] value returned if no content is found\n           * @return {String}\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let firstChild = xml.getChild('animal');\n           *   print(firstChild.getContent());\n           * }\n           *\n           * // Sketch prints:\n           * // \"Goat\"\n           * </code></div>\n           */\n          _main.default.XML.prototype.getContent = function(defaultValue) {\n            var str;\n            str = this.DOM.textContent;\n            str = str.replace(/\\s\\s+/g, ',');\n            return str || defaultValue || null;\n          };\n\n          /**\n           * Sets the element's content.\n           *\n           * @method setContent\n           * @param {String} text the new content\n           * @example\n           * <div class='norender'><code>\n           * // The following short XML file called \"mammals.xml\" is parsed\n           * // in the code below.\n           * //\n           * // <?xml version=\"1.0\"?>\n           * // &lt;mammals&gt;\n           * //   &lt;animal id=\"0\" species=\"Capra hircus\">Goat&lt;/animal&gt;\n           * //   &lt;animal id=\"1\" species=\"Panthera pardus\">Leopard&lt;/animal&gt;\n           * //   &lt;animal id=\"2\" species=\"Equus zebra\">Zebra&lt;/animal&gt;\n           * // &lt;/mammals&gt;\n           *\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   let firstChild = xml.getChild('animal');\n           *   print(firstChild.getContent());\n           *   firstChild.setContent('Mountain Goat');\n           *   print(firstChild.getContent());\n           * }\n           *\n           * // Sketch prints:\n           * // \"Goat\"\n           * // \"Mountain Goat\"\n           * </code></div>\n           */\n          _main.default.XML.prototype.setContent = function(content) {\n            if (!this.DOM.children.length) {\n              this.DOM.textContent = content;\n            }\n          };\n\n          /**\n           * Serializes the element into a string. This function is useful for preparing\n           * the content to be sent over a http request or saved to file.\n           *\n           * @method serialize\n           * @return {String} Serialized string of the element\n           * @example\n           * <div class='norender'><code>\n           * let xml;\n           *\n           * function preload() {\n           *   xml = loadXML('assets/mammals.xml');\n           * }\n           *\n           * function setup() {\n           *   print(xml.serialize());\n           * }\n           *\n           * // Sketch prints:\n           * // <mammals>\n           * //   <animal id=\"0\" species=\"Capra hircus\">Goat</animal>\n           * //   <animal id=\"1\" species=\"Panthera pardus\">Leopard</animal>\n           * //   <animal id=\"2\" species=\"Equus zebra\">Zebra</animal>\n           * // </mammals>\n           * </code></div>\n           */\n          _main.default.XML.prototype.serialize = function() {\n            var xmlSerializer = new XMLSerializer();\n            return xmlSerializer.serializeToString(this.DOM);\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      80: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Math\n           * @submodule Calculation\n           * @for p5\n           * @requires core\n           */ /**\n           * Calculates the absolute value (magnitude) of a number. Maps to Math.abs().\n           * The absolute value of a number is always positive.\n           *\n           * @method abs\n           * @param  {Number} n number to compute\n           * @return {Number}   absolute value of given number\n           * @example\n           * <div class = \"norender\"><code>\n           * function setup() {\n           *   let x = -3;\n           *   let y = abs(x);\n           *\n           *   print(x); // -3\n           *   print(y); // 3\n           * }\n           * </code></div>\n           *\n           * @alt\n           * no image displayed\n           *\n           */ _main.default.prototype.abs = Math.abs; /**\n           * Calculates the closest int value that is greater than or equal to the\n           * value of the parameter. Maps to Math.ceil(). For example, ceil(9.03)\n           * returns the value 10.\n           *\n           * @method ceil\n           * @param  {Number} n number to round up\n           * @return {Integer}   rounded up number\n           * @example\n           * <div><code>\n           * function draw() {\n           *   background(200);\n           *   // map, mouseX between 0 and 5.\n           *   let ax = map(mouseX, 0, 100, 0, 5);\n           *   let ay = 66;\n           *\n           *   //Get the ceiling of the mapped number.\n           *   let bx = ceil(map(mouseX, 0, 100, 0, 5));\n           *   let by = 33;\n           *\n           *   // Multiply the mapped numbers by 20 to more easily\n           *   // see the changes.\n           *   stroke(0);\n           *   fill(0);\n           *   line(0, ay, ax * 20, ay);\n           *   line(0, by, bx * 20, by);\n           *\n           *   // Reformat the float returned by map and draw it.\n           *   noStroke();\n           *   text(nfc(ax, 2), ax, ay - 5);\n           *   text(nfc(bx, 1), bx, by - 5);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * 2 horizontal lines & number sets. increase with mouse x. bottom to 2 decimals\n           *\n           */\n          _main.default.prototype.ceil = Math.ceil;\n\n          /**\n           * Constrains a value between a minimum and maximum value.\n           *\n           * @method constrain\n           * @param  {Number} n    number to constrain\n           * @param  {Number} low  minimum limit\n           * @param  {Number} high maximum limit\n           * @return {Number}      constrained number\n           * @example\n           * <div><code>\n           * function draw() {\n           *   background(200);\n           *\n           *   let leftWall = 25;\n           *   let rightWall = 75;\n           *\n           *   // xm is just the mouseX, while\n           *   // xc is the mouseX, but constrained\n           *   // between the leftWall and rightWall!\n           *   let xm = mouseX;\n           *   let xc = constrain(mouseX, leftWall, rightWall);\n           *\n           *   // Draw the walls.\n           *   stroke(150);\n           *   line(leftWall, 0, leftWall, height);\n           *   line(rightWall, 0, rightWall, height);\n           *\n           *   // Draw xm and xc as circles.\n           *   noStroke();\n           *   fill(150);\n           *   ellipse(xm, 33, 9, 9); // Not Constrained\n           *   fill(0);\n           *   ellipse(xc, 66, 9, 9); // Constrained\n           * }\n           * </code></div>\n           *\n           * @alt\n           * 2 vertical lines. 2 ellipses move with mouse X 1 does not move passed lines\n           *\n           */\n          _main.default.prototype.constrain = function(n, low, high) {\n            _main.default._validateParameters('constrain', arguments);\n            return Math.max(Math.min(n, high), low);\n          };\n\n          /**\n           * Calculates the distance between two points, in either two or three dimensions.\n           *\n           * @method dist\n           * @param  {Number} x1 x-coordinate of the first point\n           * @param  {Number} y1 y-coordinate of the first point\n           * @param  {Number} x2 x-coordinate of the second point\n           * @param  {Number} y2 y-coordinate of the second point\n           * @return {Number}    distance between the two points\n           *\n           * @example\n           * <div><code>\n           * // Move your mouse inside the canvas to see the\n           * // change in distance between two points!\n           * function draw() {\n           *   background(200);\n           *   fill(0);\n           *\n           *   let x1 = 10;\n           *   let y1 = 90;\n           *   let x2 = mouseX;\n           *   let y2 = mouseY;\n           *\n           *   line(x1, y1, x2, y2);\n           *   ellipse(x1, y1, 7, 7);\n           *   ellipse(x2, y2, 7, 7);\n           *\n           *   // d is the length of the line\n           *   // the distance from point 1 to point 2.\n           *   let d = int(dist(x1, y1, x2, y2));\n           *\n           *   // Let's write d along the line we are drawing!\n           *   push();\n           *   translate((x1 + x2) / 2, (y1 + y2) / 2);\n           *   rotate(atan2(y2 - y1, x2 - x1));\n           *   text(nfc(d, 1), 0, -5);\n           *   pop();\n           *   // Fancy!\n           * }\n           * </code></div>\n           *\n           * @alt\n           * 2 ellipses joined by line. 1 ellipse moves with mouse X&Y. Distance displayed.\n           */\n          /**\n           * @method dist\n           * @param  {Number} x1\n           * @param  {Number} y1\n           * @param  {Number} z1 z-coordinate of the first point\n           * @param  {Number} x2\n           * @param  {Number} y2\n           * @param  {Number} z2 z-coordinate of the second point\n           * @return {Number}    distance between the two points\n           */\n          _main.default.prototype.dist = function() {\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default._validateParameters('dist', args);\n            if (args.length === 4) {\n              //2D\n              return hypot(args[2] - args[0], args[3] - args[1]);\n            } else if (args.length === 6) {\n              //3D\n              return hypot(args[3] - args[0], args[4] - args[1], args[5] - args[2]);\n            }\n          };\n\n          /**\n           * Returns Euler's number e (2.71828...) raised to the power of the n\n           * parameter. Maps to Math.exp().\n           *\n           * @method exp\n           * @param  {Number} n exponent to raise\n           * @return {Number}   e^n\n           * @example\n           * <div><code>\n           * function draw() {\n           *   background(200);\n           *\n           *   // Compute the exp() function with a value between 0 and 2\n           *   let xValue = map(mouseX, 0, width, 0, 2);\n           *   let yValue = exp(xValue);\n           *\n           *   let y = map(yValue, 0, 8, height, 0);\n           *\n           *   let legend = 'exp (' + nfc(xValue, 3) + ')\\n= ' + nf(yValue, 1, 4);\n           *   stroke(150);\n           *   line(mouseX, y, mouseX, height);\n           *   fill(0);\n           *   text(legend, 5, 15);\n           *   noStroke();\n           *   ellipse(mouseX, y, 7, 7);\n           *\n           *   // Draw the exp(x) curve,\n           *   // over the domain of x from 0 to 2\n           *   noFill();\n           *   stroke(0);\n           *   beginShape();\n           *   for (let x = 0; x < width; x++) {\n           *     xValue = map(x, 0, width, 0, 2);\n           *     yValue = exp(xValue);\n           *     y = map(yValue, 0, 8, height, 0);\n           *     vertex(x, y);\n           *   }\n           *\n           *   endShape();\n           *   line(0, 0, 0, height);\n           *   line(0, height - 1, width, height - 1);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * ellipse moves along a curve with mouse x. e^n displayed.\n           *\n           */\n          _main.default.prototype.exp = Math.exp;\n\n          /**\n           * Calculates the closest int value that is less than or equal to the\n           * value of the parameter. Maps to Math.floor().\n           *\n           * @method floor\n           * @param  {Number} n number to round down\n           * @return {Integer}  rounded down number\n           * @example\n           * <div><code>\n           * function draw() {\n           *   background(200);\n           *   //map, mouseX between 0 and 5.\n           *   let ax = map(mouseX, 0, 100, 0, 5);\n           *   let ay = 66;\n           *\n           *   //Get the floor of the mapped number.\n           *   let bx = floor(map(mouseX, 0, 100, 0, 5));\n           *   let by = 33;\n           *\n           *   // Multiply the mapped numbers by 20 to more easily\n           *   // see the changes.\n           *   stroke(0);\n           *   fill(0);\n           *   line(0, ay, ax * 20, ay);\n           *   line(0, by, bx * 20, by);\n           *\n           *   // Reformat the float returned by map and draw it.\n           *   noStroke();\n           *   text(nfc(ax, 2), ax, ay - 5);\n           *   text(nfc(bx, 1), bx, by - 5);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * 2 horizontal lines & number sets. increase with mouse x. bottom to 2 decimals\n           *\n           */\n          _main.default.prototype.floor = Math.floor;\n\n          /**\n           * Calculates a number between two numbers at a specific increment. The amt\n           * parameter is the amount to interpolate between the two values where 0.0\n           * equal to the first point, 0.1 is very near the first point, 0.5 is\n           * half-way in between, and 1.0 is equal to the second point. If the\n           * value of amt is more than 1.0 or less than 0.0, the number will be\n           * calculated accordingly in the ratio of the two given numbers. The lerp\n           * function is convenient for creating motion along a straight\n           * path and for drawing dotted lines.\n           *\n           * @method lerp\n           * @param  {Number} start first value\n           * @param  {Number} stop  second value\n           * @param  {Number} amt   number\n           * @return {Number}       lerped value\n           * @example\n           * <div><code>\n           * function setup() {\n           *   background(200);\n           *   let a = 20;\n           *   let b = 80;\n           *   let c = lerp(a, b, 0.2);\n           *   let d = lerp(a, b, 0.5);\n           *   let e = lerp(a, b, 0.8);\n           *\n           *   let y = 50;\n           *\n           *   strokeWeight(5);\n           *   stroke(0); // Draw the original points in black\n           *   point(a, y);\n           *   point(b, y);\n           *\n           *   stroke(100); // Draw the lerp points in gray\n           *   point(c, y);\n           *   point(d, y);\n           *   point(e, y);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * 5 points horizontally staggered mid-canvas. mid 3 are grey, outer black\n           *\n           */\n          _main.default.prototype.lerp = function(start, stop, amt) {\n            _main.default._validateParameters('lerp', arguments);\n            return amt * (stop - start) + start;\n          };\n\n          /**\n    * Calculates the natural logarithm (the base-e logarithm) of a number. This\n    * function expects the n parameter to be a value greater than 0.0. Maps to\n    * Math.log().\n    *\n    * @method log\n    * @param  {Number} n number greater than 0\n    * @return {Number}   natural logarithm of n\n    * @example\n    * <div><code>\n    * function draw() {\n    *   background(200);\n    *   let maxX = 2.8;\n    *   let maxY = 1.5;\n    *\n    *   // Compute the natural log of a value between 0 and maxX\n    *   let xValue = map(mouseX, 0, width, 0, maxX);\n    *   let yValue, y;\n    *   if (xValue > 0) {\n       // Cannot take the log of a negative number.\n    *     yValue = log(xValue);\n    *     y = map(yValue, -maxY, maxY, height, 0);\n    *\n    *     // Display the calculation occurring.\n    *     let legend = 'log(' + nf(xValue, 1, 2) + ')\\n= ' + nf(yValue, 1, 3);\n    *     stroke(150);\n    *     line(mouseX, y, mouseX, height);\n    *     fill(0);\n    *     text(legend, 5, 15);\n    *     noStroke();\n    *     ellipse(mouseX, y, 7, 7);\n    *   }\n    *\n    *   // Draw the log(x) curve,\n    *   // over the domain of x from 0 to maxX\n    *   noFill();\n    *   stroke(0);\n    *   beginShape();\n    *   for (let x = 0; x < width; x++) {\n    *     xValue = map(x, 0, width, 0, maxX);\n    *     yValue = log(xValue);\n    *     y = map(yValue, -maxY, maxY, height, 0);\n    *     vertex(x, y);\n    *   }\n    *   endShape();\n    *   line(0, 0, 0, height);\n    *   line(0, height / 2, width, height / 2);\n    * }\n    * </code></div>\n    *\n    * @alt\n    * ellipse moves along a curve with mouse x. natural logarithm of n displayed.\n    *\n    */\n          _main.default.prototype.log = Math.log;\n\n          /**\n           * Calculates the magnitude (or length) of a vector. A vector is a direction\n           * in space commonly used in computer graphics and linear algebra. Because it\n           * has no \"start\" position, the magnitude of a vector can be thought of as\n           * the distance from the coordinate 0,0 to its x,y value. Therefore, <a href=\"#/p5/mag\">mag()</a> is\n           * a shortcut for writing dist(0, 0, x, y).\n           *\n           * @method mag\n           * @param  {Number} a first value\n           * @param  {Number} b second value\n           * @return {Number}   magnitude of vector from (0,0) to (a,b)\n           * @example\n           * <div><code>\n           * function setup() {\n           *   let x1 = 20;\n           *   let x2 = 80;\n           *   let y1 = 30;\n           *   let y2 = 70;\n           *\n           *   line(0, 0, x1, y1);\n           *   print(mag(x1, y1)); // Prints \"36.05551275463989\"\n           *   line(0, 0, x2, y1);\n           *   print(mag(x2, y1)); // Prints \"85.44003745317531\"\n           *   line(0, 0, x1, y2);\n           *   print(mag(x1, y2)); // Prints \"72.80109889280519\"\n           *   line(0, 0, x2, y2);\n           *   print(mag(x2, y2)); // Prints \"106.3014581273465\"\n           * }\n           * </code></div>\n           *\n           * @alt\n           * 4 lines of different length radiate from top left of canvas.\n           *\n           */\n          _main.default.prototype.mag = function(x, y) {\n            _main.default._validateParameters('mag', arguments);\n            return hypot(x, y);\n          };\n\n          /**\n    * Re-maps a number from one range to another.\n    * <br><br>\n    * In the first example above, the number 25 is converted from a value in the\n    * range of 0 to 100 into a value that ranges from the left edge of the\n    * window (0) to the right edge (width).\n    *\n    * @method map\n    * @param  {Number} value  the incoming value to be converted\n    * @param  {Number} start1 lower bound of the value's current range\n    * @param  {Number} stop1  upper bound of the value's current range\n    * @param  {Number} start2 lower bound of the value's target range\n    * @param  {Number} stop2  upper bound of the value's target range\n    * @param  {Boolean} [withinBounds] constrain the value to the newly mapped range\n    * @return {Number}        remapped number\n    * @example\n    *   <div><code>\n    * let value = 25;\n    * let m = map(value, 0, 100, 0, width);\n    * ellipse(m, 50, 10, 10);\n   </code></div>\n    *\n    *   <div><code>\n    * function setup() {\n    *   noStroke();\n    * }\n    *\n    * function draw() {\n    *   background(204);\n    *   let x1 = map(mouseX, 0, width, 25, 75);\n    *   ellipse(x1, 25, 25, 25);\n    *   //This ellipse is constrained to the 0-100 range\n    *   //after setting withinBounds to true\n    *   let x2 = map(mouseX, 0, width, 0, 100, true);\n    *   ellipse(x2, 75, 25, 25);\n    * }\n   </code></div>\n    *\n    * @alt\n    * 10 by 10 white ellipse with in mid left canvas\n    * 2 25 by 25 white ellipses move with mouse x. Bottom has more range from X\n    *\n    */\n          _main.default.prototype.map = function(\n            n,\n            start1,\n            stop1,\n            start2,\n            stop2,\n            withinBounds\n          ) {\n            _main.default._validateParameters('map', arguments);\n            var newval = (n - start1) / (stop1 - start1) * (stop2 - start2) + start2;\n            if (!withinBounds) {\n              return newval;\n            }\n            if (start2 < stop2) {\n              return this.constrain(newval, start2, stop2);\n            } else {\n              return this.constrain(newval, stop2, start2);\n            }\n          };\n\n          /**\n           * Determines the largest value in a sequence of numbers, and then returns\n           * that value. <a href=\"#/p5/max\">max()</a> accepts any number of Number parameters, or an Array\n           * of any length.\n           *\n           * @method max\n           * @param  {Number} n0 Number to compare\n           * @param  {Number} n1 Number to compare\n           * @return {Number}             maximum Number\n           * @example\n           * <div><code>\n           * function setup() {\n           *   // Change the elements in the array and run the sketch\n           *   // to show how max() works!\n           *   let numArray = [2, 1, 5, 4, 8, 9];\n           *   fill(0);\n           *   noStroke();\n           *   text('Array Elements', 0, 10);\n           *   // Draw all numbers in the array\n           *   let spacing = 15;\n           *   let elemsY = 25;\n           *   for (let i = 0; i < numArray.length; i++) {\n           *     text(numArray[i], i * spacing, elemsY);\n           *   }\n           *   let maxX = 33;\n           *   let maxY = 80;\n           *   // Draw the Maximum value in the array.\n           *   textSize(32);\n           *   text(max(numArray), maxX, maxY);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * Small text at top reads: Array Elements 2 1 5 4 8 9. Large text at center: 9\n           *\n           */\n          /**\n           * @method max\n           * @param  {Number[]} nums Numbers to compare\n           * @return {Number}\n           */\n          _main.default.prototype.max = function() {\n            for (\n              var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;\n              _key2 < _len2;\n              _key2++\n            ) {\n              args[_key2] = arguments[_key2];\n            }\n            _main.default._validateParameters('max', args);\n            if (args[0] instanceof Array) {\n              return Math.max.apply(null, args[0]);\n            } else {\n              return Math.max.apply(null, args);\n            }\n          };\n\n          /**\n           * Determines the smallest value in a sequence of numbers, and then returns\n           * that value. <a href=\"#/p5/min\">min()</a> accepts any number of Number parameters, or an Array\n           * of any length.\n           *\n           * @method min\n           * @param  {Number} n0 Number to compare\n           * @param  {Number} n1 Number to compare\n           * @return {Number}             minimum Number\n           * @example\n           * <div><code>\n           * function setup() {\n           *   // Change the elements in the array and run the sketch\n           *   // to show how min() works!\n           *   let numArray = [2, 1, 5, 4, 8, 9];\n           *   fill(0);\n           *   noStroke();\n           *   text('Array Elements', 0, 10);\n           *   // Draw all numbers in the array\n           *   let spacing = 15;\n           *   let elemsY = 25;\n           *   for (let i = 0; i < numArray.length; i++) {\n           *     text(numArray[i], i * spacing, elemsY);\n           *   }\n           *   let maxX = 33;\n           *   let maxY = 80;\n           *   // Draw the Minimum value in the array.\n           *   textSize(32);\n           *   text(min(numArray), maxX, maxY);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * Small text at top reads: Array Elements 2 1 5 4 8 9. Large text at center: 1\n           *\n           */\n          /**\n           * @method min\n           * @param  {Number[]} nums Numbers to compare\n           * @return {Number}\n           */\n          _main.default.prototype.min = function() {\n            for (\n              var _len3 = arguments.length, args = new Array(_len3), _key3 = 0;\n              _key3 < _len3;\n              _key3++\n            ) {\n              args[_key3] = arguments[_key3];\n            }\n            _main.default._validateParameters('min', args);\n            if (args[0] instanceof Array) {\n              return Math.min.apply(null, args[0]);\n            } else {\n              return Math.min.apply(null, args);\n            }\n          };\n\n          /**\n           * Normalizes a number from another range into a value between 0 and 1.\n           * Identical to map(value, low, high, 0, 1).\n           * Numbers outside of the range are not clamped to 0 and 1, because\n           * out-of-range values are often intentional and useful. (See the example above.)\n           *\n           * @method norm\n           * @param  {Number} value incoming value to be normalized\n           * @param  {Number} start lower bound of the value's current range\n           * @param  {Number} stop  upper bound of the value's current range\n           * @return {Number}       normalized number\n           * @example\n           * <div><code>\n           * function draw() {\n           *   background(200);\n           *   let currentNum = mouseX;\n           *   let lowerBound = 0;\n           *   let upperBound = width; //100;\n           *   let normalized = norm(currentNum, lowerBound, upperBound);\n           *   let lineY = 70;\n           *   stroke(3);\n           *   line(0, lineY, width, lineY);\n           *   //Draw an ellipse mapped to the non-normalized value.\n           *   noStroke();\n           *   fill(50);\n           *   let s = 7; // ellipse size\n           *   ellipse(currentNum, lineY, s, s);\n           *\n           *   // Draw the guide\n           *   let guideY = lineY + 15;\n           *   text('0', 0, guideY);\n           *   textAlign(RIGHT);\n           *   text('100', width, guideY);\n           *\n           *   // Draw the normalized value\n           *   textAlign(LEFT);\n           *   fill(0);\n           *   textSize(32);\n           *   let normalY = 40;\n           *   let normalX = 20;\n           *   text(normalized, normalX, normalY);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * ellipse moves with mouse. 0 shown left & 100 right and updating values center\n           *\n           */\n          _main.default.prototype.norm = function(n, start, stop) {\n            _main.default._validateParameters('norm', arguments);\n            return this.map(n, start, stop, 0, 1);\n          };\n\n          /**\n           * Facilitates exponential expressions. The <a href=\"#/p5/pow\">pow()</a> function is an efficient\n           * way of multiplying numbers by themselves (or their reciprocals) in large\n           * quantities. For example, pow(3, 5) is equivalent to the expression\n           * 3 &times; 3 &times; 3 &times; 3 &times; 3 and pow(3, -5) is equivalent to 1 /\n           * 3 &times; 3 &times; 3 &times; 3 &times; 3. Maps to\n           * Math.pow().\n           *\n           * @method pow\n           * @param  {Number} n base of the exponential expression\n           * @param  {Number} e power by which to raise the base\n           * @return {Number}   n^e\n           * @example\n           * <div><code>\n           * function setup() {\n           *   //Exponentially increase the size of an ellipse.\n           *   let eSize = 3; // Original Size\n           *   let eLoc = 10; // Original Location\n           *\n           *   ellipse(eLoc, eLoc, eSize, eSize);\n           *\n           *   ellipse(eLoc * 2, eLoc * 2, pow(eSize, 2), pow(eSize, 2));\n           *\n           *   ellipse(eLoc * 4, eLoc * 4, pow(eSize, 3), pow(eSize, 3));\n           *\n           *   ellipse(eLoc * 8, eLoc * 8, pow(eSize, 4), pow(eSize, 4));\n           * }\n           * </code></div>\n           *\n           * @alt\n           * small to large ellipses radiating from top left of canvas\n           *\n           */\n          _main.default.prototype.pow = Math.pow;\n\n          /**\n           * Calculates the integer closest to the n parameter. For example,\n           * round(133.8) returns the value 134. Maps to Math.round().\n           *\n           * @method round\n           * @param  {Number} n number to round\n           * @param  {Number} [decimals] number of decimal places to round to, default is 0\n           * @return {Integer}  rounded number\n           * @example\n           * <div><code>\n           * let x = round(3.7);\n           * text(x, width / 2, height / 2);\n           * </code></div>\n           * <div><code>\n           * let x = round(12.782383, 2);\n           * text(x, width / 2, height / 2);\n           * </code></div>\n           * <div><code>\n           * function draw() {\n           *   background(200);\n           *   //map, mouseX between 0 and 5.\n           *   let ax = map(mouseX, 0, 100, 0, 5);\n           *   let ay = 66;\n           *\n           *   // Round the mapped number.\n           *   let bx = round(map(mouseX, 0, 100, 0, 5));\n           *   let by = 33;\n           *\n           *   // Multiply the mapped numbers by 20 to more easily\n           *   // see the changes.\n           *   stroke(0);\n           *   fill(0);\n           *   line(0, ay, ax * 20, ay);\n           *   line(0, by, bx * 20, by);\n           *\n           *   // Reformat the float returned by map and draw it.\n           *   noStroke();\n           *   text(nfc(ax, 2), ax, ay - 5);\n           *   text(nfc(bx, 1), bx, by - 5);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * \"3\" written in middle of canvas\n           * \"12.78\" written in middle of canvas\n           * horizontal center line squared values displayed on top and regular on bottom.\n           *\n           */\n          _main.default.prototype.round = function(n, decimals) {\n            if (!decimals) {\n              return Math.round(n);\n            }\n            return Number(Math.round(n + 'e' + decimals) + 'e-' + decimals);\n          };\n\n          /**\n           * Squares a number (multiplies a number by itself). The result is always a\n           * positive number, as multiplying two negative numbers always yields a\n           * positive result. For example, -1 * -1 = 1.\n           *\n           * @method sq\n           * @param  {Number} n number to square\n           * @return {Number}   squared number\n           * @example\n           * <div><code>\n           * function draw() {\n           *   background(200);\n           *   let eSize = 7;\n           *   let x1 = map(mouseX, 0, width, 0, 10);\n           *   let y1 = 80;\n           *   let x2 = sq(x1);\n           *   let y2 = 20;\n           *\n           *   // Draw the non-squared.\n           *   line(0, y1, width, y1);\n           *   ellipse(x1, y1, eSize, eSize);\n           *\n           *   // Draw the squared.\n           *   line(0, y2, width, y2);\n           *   ellipse(x2, y2, eSize, eSize);\n           *\n           *   // Draw dividing line.\n           *   stroke(100);\n           *   line(0, height / 2, width, height / 2);\n           *\n           *   // Draw text.\n           *   let spacing = 15;\n           *   noStroke();\n           *   fill(0);\n           *   text('x = ' + x1, 0, y1 + spacing);\n           *   text('sq(x) = ' + x2, 0, y2 + spacing);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * horizontal center line squared values displayed on top and regular on bottom.\n           *\n           */\n          _main.default.prototype.sq = function(n) {\n            return n * n;\n          };\n\n          /**\n           * Calculates the square root of a number. The square root of a number is\n           * always positive, even though there may be a valid negative root. The\n           * square root s of number a is such that s*s = a. It is the opposite of\n           * squaring. Maps to Math.sqrt().\n           *\n           * @method sqrt\n           * @param  {Number} n non-negative number to square root\n           * @return {Number}   square root of number\n           * @example\n           * <div><code>\n           * function draw() {\n           *   background(200);\n           *   let eSize = 7;\n           *   let x1 = mouseX;\n           *   let y1 = 80;\n           *   let x2 = sqrt(x1);\n           *   let y2 = 20;\n           *\n           *   // Draw the non-squared.\n           *   line(0, y1, width, y1);\n           *   ellipse(x1, y1, eSize, eSize);\n           *\n           *   // Draw the squared.\n           *   line(0, y2, width, y2);\n           *   ellipse(x2, y2, eSize, eSize);\n           *\n           *   // Draw dividing line.\n           *   stroke(100);\n           *   line(0, height / 2, width, height / 2);\n           *\n           *   // Draw text.\n           *   noStroke();\n           *   fill(0);\n           *   let spacing = 15;\n           *   text('x = ' + x1, 0, y1 + spacing);\n           *   text('sqrt(x) = ' + x2, 0, y2 + spacing);\n           * }\n           * </code></div>\n           *\n           * @alt\n           * horizontal center line squareroot values displayed on top and regular on bottom.\n           *\n           */\n          _main.default.prototype.sqrt = Math.sqrt;\n\n          // Calculate the length of the hypotenuse of a right triangle\n          // This won't under- or overflow in intermediate steps\n          // https://en.wikipedia.org/wiki/Hypot\n          function hypot(x, y, z) {\n            // Use the native implementation if it's available\n            if (typeof Math.hypot === 'function') {\n              return Math.hypot.apply(null, arguments);\n            }\n\n            // Otherwise use the V8 implementation\n            // https://github.com/v8/v8/blob/8cd3cf297287e581a49e487067f5cbd991b27123/src/js/math.js#L217\n            var length = arguments.length;\n            var args = [];\n            var max = 0;\n            for (var i = 0; i < length; i++) {\n              var n = arguments[i];\n              n = +n;\n              if (n === Infinity || n === -Infinity) {\n                return Infinity;\n              }\n              n = Math.abs(n);\n              if (n > max) {\n                max = n;\n              }\n              args[i] = n;\n            }\n\n            if (max === 0) {\n              max = 1;\n            }\n            var sum = 0;\n            var compensation = 0;\n            for (var j = 0; j < length; j++) {\n              var m = args[j] / max;\n              var summand = m * m - compensation;\n              var preliminary = sum + summand;\n              compensation = preliminary - sum - summand;\n              sum = preliminary;\n            }\n            return Math.sqrt(sum) * max;\n          }\n\n          /**\n           * Calculates the fractional part of a number.\n           *\n           * @method fract\n           * @param {Number} num Number whose fractional part needs to be found out\n           * @returns {Number} fractional part of x, i.e, {x}\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(windowWidth, windowHeight);\n           *   fill(0);\n           *   text(7345.73472742, 0, 50);\n           *   text(fract(7345.73472742), 0, 100);\n           *   text(1.4215e-15, 150, 50);\n           *   text(fract(1.4215e-15), 150, 100);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * 2 rows of numbers, the first row having 8 numbers and the second having the fractional parts of those numbers.\n           */\n          _main.default.prototype.fract = function(toConvert) {\n            _main.default._validateParameters('fract', arguments);\n            var sign = 0;\n            var num = Number(toConvert);\n            if (isNaN(num) || Math.abs(num) === Infinity) {\n              return num;\n            } else if (num < 0) {\n              num = -num;\n              sign = 1;\n            }\n            if (String(num).includes('.') && !String(num).includes('e')) {\n              var toFract = String(num);\n              toFract = Number('0' + toFract.slice(toFract.indexOf('.')));\n              return Math.abs(sign - toFract);\n            } else if (num < 1) {\n              return Math.abs(sign - num);\n            } else {\n              return 0;\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      81: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Math\n           * @submodule Vector\n           * @for p5\n           * @requires core\n           */ /**\n           * Creates a new <a href=\"#/p5.Vector\">p5.Vector</a> (the datatype for storing vectors). This provides a\n           * two or three dimensional vector, specifically a Euclidean (also known as\n           * geometric) vector. A vector is an entity that has both magnitude and\n           * direction.\n           *\n           * @method createVector\n           * @param {Number} [x] x component of the vector\n           * @param {Number} [y] y component of the vector\n           * @param {Number} [z] z component of the vector\n           * @return {p5.Vector}\n           * @example\n           * <div modernizr='webgl'><code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   noStroke();\n           *   fill(255, 102, 204);\n           * }\n           *\n           * function draw() {\n           *   background(255);\n           *   pointLight(color(255), createVector(sin(millis() / 1000) * 20, -40, -10));\n           *   scale(0.75);\n           *   sphere();\n           * }\n           * </code></div>\n           *\n           * @alt\n           * a purple sphere lit by a point light oscillating horizontally\n           */ _main.default.prototype.createVector = function(x, y, z) {\n            if (this instanceof _main.default) {\n              return new _main.default.Vector(this, arguments);\n            } else {\n              return new _main.default.Vector(x, y, z);\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      82: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          } //////////////////////////////////////////////////////////////\n          // http://mrl.nyu.edu/~perlin/noise/\n          // Adapting from PApplet.java\n          // which was adapted from toxi\n          // which was adapted from the german demo group farbrausch\n          // as used in their demo \"art\": http://www.farb-rausch.de/fr010src.zip\n          // someday we might consider using \"improved noise\"\n          // http://mrl.nyu.edu/~perlin/paper445.pdf\n          // See: https://github.com/shiffman/The-Nature-of-Code-Examples-p5.js/\n          //      blob/master/introduction/Noise1D/noise.js\n          /**\n           * @module Math\n           * @submodule Noise\n           * @for p5\n           * @requires core\n           */ var PERLIN_YWRAPB = 4;\n          var PERLIN_YWRAP = 1 << PERLIN_YWRAPB;\n          var PERLIN_ZWRAPB = 8;\n          var PERLIN_ZWRAP = 1 << PERLIN_ZWRAPB;\n          var PERLIN_SIZE = 4095;\n          var perlin_octaves = 4; // default to medium smooth\n          var perlin_amp_falloff = 0.5; // 50% reduction/octave\n          var scaled_cosine = function scaled_cosine(i) {\n            return 0.5 * (1.0 - Math.cos(i * Math.PI));\n          };\n          var perlin; // will be initialized lazily by noise() or noiseSeed()\n          /**\n           * Returns the Perlin noise value at specified coordinates. Perlin noise is\n           * a random sequence generator producing a more natural ordered, harmonic\n           * succession of numbers compared to the standard <b>random()</b> function.\n           * It was invented by Ken Perlin in the 1980s and been used since in\n           * graphical applications to produce procedural textures, natural motion,\n           * shapes, terrains etc.<br /><br /> The main difference to the\n           * <b>random()</b> function is that Perlin noise is defined in an infinite\n           * n-dimensional space where each pair of coordinates corresponds to a\n           * fixed semi-random value (fixed only for the lifespan of the program; see\n           * the <a href=\"#/p5/noiseSeed\">noiseSeed()</a> function). p5.js can compute 1D, 2D and 3D noise,\n           * depending on the number of coordinates given. The resulting value will\n           * always be between 0.0 and 1.0. The noise value can be animated by moving\n           * through the noise space as demonstrated in the example above. The 2nd\n           * and 3rd dimension can also be interpreted as time.<br /><br />The actual\n           * noise is structured similar to an audio signal, in respect to the\n           * function's use of frequencies. Similar to the concept of harmonics in\n           * physics, perlin noise is computed over several octaves which are added\n           * together for the final result. <br /><br />Another way to adjust the\n           * character of the resulting sequence is the scale of the input\n           * coordinates. As the function works within an infinite space the value of\n           * the coordinates doesn't matter as such, only the distance between\n           * successive coordinates does (eg. when using <b>noise()</b> within a\n           * loop). As a general rule the smaller the difference between coordinates,\n           * the smoother the resulting noise sequence will be. Steps of 0.005-0.03\n           * work best for most applications, but this will differ depending on use.\n           *\n           *\n           * @method noise\n           * @param  {Number} x   x-coordinate in noise space\n           * @param  {Number} [y] y-coordinate in noise space\n           * @param  {Number} [z] z-coordinate in noise space\n           * @return {Number}     Perlin noise value (between 0 and 1) at specified\n           *                      coordinates\n           * @example\n           * <div>\n           * <code>\n           * let xoff = 0.0;\n           *\n           * function draw() {\n           *   background(204);\n           *   xoff = xoff + 0.01;\n           *   let n = noise(xoff) * width;\n           *   line(n, 0, n, height);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>let noiseScale=0.02;\n           *\n           * function draw() {\n           *   background(0);\n           *   for (let x=0; x < width; x++) {\n           *     let noiseVal = noise((mouseX+x)*noiseScale, mouseY*noiseScale);\n           *     stroke(noiseVal*255);\n           *     line(x, mouseY+noiseVal*80, x, height);\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * vertical line moves left to right with updating noise values.\n           * horizontal wave pattern effected by mouse x-position & updating noise values.\n           *\n           */ _main.default.prototype.noise = function(x) {\n            var y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n            var z = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n            if (perlin == null) {\n              perlin = new Array(PERLIN_SIZE + 1);\n              for (var i = 0; i < PERLIN_SIZE + 1; i++) {\n                perlin[i] = Math.random();\n              }\n            }\n\n            if (x < 0) {\n              x = -x;\n            }\n            if (y < 0) {\n              y = -y;\n            }\n            if (z < 0) {\n              z = -z;\n            }\n\n            var xi = Math.floor(x),\n              yi = Math.floor(y),\n              zi = Math.floor(z);\n            var xf = x - xi;\n            var yf = y - yi;\n            var zf = z - zi;\n            var rxf, ryf;\n\n            var r = 0;\n            var ampl = 0.5;\n\n            var n1, n2, n3;\n\n            for (var o = 0; o < perlin_octaves; o++) {\n              var of = xi + (yi << PERLIN_YWRAPB) + (zi << PERLIN_ZWRAPB);\n\n              rxf = scaled_cosine(xf);\n              ryf = scaled_cosine(yf);\n\n              n1 = perlin[of & PERLIN_SIZE];\n              n1 += rxf * (perlin[(of + 1) & PERLIN_SIZE] - n1);\n              n2 = perlin[(of + PERLIN_YWRAP) & PERLIN_SIZE];\n              n2 += rxf * (perlin[(of + PERLIN_YWRAP + 1) & PERLIN_SIZE] - n2);\n              n1 += ryf * (n2 - n1);\n\n              of += PERLIN_ZWRAP;\n              n2 = perlin[of & PERLIN_SIZE];\n              n2 += rxf * (perlin[(of + 1) & PERLIN_SIZE] - n2);\n              n3 = perlin[(of + PERLIN_YWRAP) & PERLIN_SIZE];\n              n3 += rxf * (perlin[(of + PERLIN_YWRAP + 1) & PERLIN_SIZE] - n3);\n              n2 += ryf * (n3 - n2);\n\n              n1 += scaled_cosine(zf) * (n2 - n1);\n\n              r += n1 * ampl;\n              ampl *= perlin_amp_falloff;\n              xi <<= 1;\n              xf *= 2;\n              yi <<= 1;\n              yf *= 2;\n              zi <<= 1;\n              zf *= 2;\n\n              if (xf >= 1.0) {\n                xi++;\n                xf--;\n              }\n              if (yf >= 1.0) {\n                yi++;\n                yf--;\n              }\n              if (zf >= 1.0) {\n                zi++;\n                zf--;\n              }\n            }\n            return r;\n          };\n\n          /**\n           *\n           * Adjusts the character and level of detail produced by the Perlin noise\n           * function. Similar to harmonics in physics, noise is computed over\n           * several octaves. Lower octaves contribute more to the output signal and\n           * as such define the overall intensity of the noise, whereas higher octaves\n           * create finer grained details in the noise sequence.\n           * <br><br>\n           * By default, noise is computed over 4 octaves with each octave contributing\n           * exactly half than its predecessor, starting at 50% strength for the 1st\n           * octave. This falloff amount can be changed by adding an additional function\n           * parameter. Eg. a falloff factor of 0.75 means each octave will now have\n           * 75% impact (25% less) of the previous lower octave. Any value between\n           * 0.0 and 1.0 is valid, however note that values greater than 0.5 might\n           * result in greater than 1.0 values returned by <b>noise()</b>.\n           * <br><br>\n           * By changing these parameters, the signal created by the <b>noise()</b>\n           * function can be adapted to fit very specific needs and characteristics.\n           *\n           * @method noiseDetail\n           * @param {Number} lod number of octaves to be used by the noise\n           * @param {Number} falloff falloff factor for each octave\n           * @example\n           * <div>\n           * <code>\n           * let noiseVal;\n           * let noiseScale = 0.02;\n           *\n           * function setup() {\n           *   createCanvas(100, 100);\n           * }\n           *\n           * function draw() {\n           *   background(0);\n           *   for (let y = 0; y < height; y++) {\n           *     for (let x = 0; x < width / 2; x++) {\n           *       noiseDetail(2, 0.2);\n           *       noiseVal = noise((mouseX + x) * noiseScale, (mouseY + y) * noiseScale);\n           *       stroke(noiseVal * 255);\n           *       point(x, y);\n           *       noiseDetail(8, 0.65);\n           *       noiseVal = noise(\n           *         (mouseX + x + width / 2) * noiseScale,\n           *         (mouseY + y) * noiseScale\n           *       );\n           *       stroke(noiseVal * 255);\n           *       point(x + width / 2, y);\n           *     }\n           *   }\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 2 vertical grey smokey patterns affected my mouse x-position and noise.\n           *\n           */\n          _main.default.prototype.noiseDetail = function(lod, falloff) {\n            if (lod > 0) {\n              perlin_octaves = lod;\n            }\n            if (falloff > 0) {\n              perlin_amp_falloff = falloff;\n            }\n          };\n\n          /**\n           * Sets the seed value for <b>noise()</b>. By default, <b>noise()</b>\n           * produces different results each time the program is run. Set the\n           * <b>value</b> parameter to a constant to return the same pseudo-random\n           * numbers each time the software is run.\n           *\n           * @method noiseSeed\n           * @param {Number} seed   the seed value\n           * @example\n           * <div>\n           * <code>let xoff = 0.0;\n           *\n           * function setup() {\n           *   noiseSeed(99);\n           *   stroke(0, 10);\n           * }\n           *\n           * function draw() {\n           *   xoff = xoff + .01;\n           *   let n = noise(xoff) * width;\n           *   line(n, 0, n, height);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * vertical grey lines drawing in pattern affected by noise.\n           *\n           */\n          _main.default.prototype.noiseSeed = function(seed) {\n            // Linear Congruential Generator\n            // Variant of a Lehman Generator\n            var lcg = (function() {\n              // Set to values from http://en.wikipedia.org/wiki/Numerical_Recipes\n              // m is basically chosen to be large (as it is the max period)\n              // and for its relationships to a and c\n              var m = 4294967296;\n              // a - 1 should be divisible by m's prime factors\n              var a = 1664525;\n              // c and m should be co-prime\n              var c = 1013904223;\n              var seed, z;\n              return {\n                setSeed: function setSeed(val) {\n                  // pick a random seed if val is undefined or null\n                  // the >>> 0 casts the seed to an unsigned 32-bit integer\n                  z = seed = (val == null ? Math.random() * m : val) >>> 0;\n                },\n                getSeed: function getSeed() {\n                  return seed;\n                },\n                rand: function rand() {\n                  // define the recurrence relationship\n                  z = (a * z + c) % m;\n                  // return a float in [0, 1)\n                  // if z = m then z / m = 0 therefore (z % m) / m < 1 always\n                  return z / m;\n                }\n              };\n            })();\n\n            lcg.setSeed(seed);\n            perlin = new Array(PERLIN_SIZE + 1);\n            for (var i = 0; i < PERLIN_SIZE + 1; i++) {\n              perlin[i] = lcg.rand();\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      83: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Math\n           * @submodule Vector\n           * @requires constants\n           */ /**\n           * A class to describe a two or three dimensional vector, specifically\n           * a Euclidean (also known as geometric) vector. A vector is an entity\n           * that has both magnitude and direction. The datatype, however, stores\n           * the components of the vector (x, y for 2D, and x, y, z for 3D). The magnitude\n           * and direction can be accessed via the methods <a href=\"#/p5/mag\">mag()</a> and <a href=\"#/p5/heading\">heading()</a>.\n           * <br><br>\n           * In many of the p5.js examples, you will see <a href=\"#/p5.Vector\">p5.Vector</a> used to describe a\n           * position, velocity, or acceleration. For example, if you consider a rectangle\n           * moving across the screen, at any given instant it has a position (a vector\n           * that points from the origin to its location), a velocity (the rate at which\n           * the object's position changes per time unit, expressed as a vector), and\n           * acceleration (the rate at which the object's velocity changes per time\n           * unit, expressed as a vector).\n           * <br><br>\n           * Since vectors represent groupings of values, we cannot simply use\n           * traditional addition/multiplication/etc. Instead, we'll need to do some\n           * \"vector\" math, which is made easy by the methods inside the <a href=\"#/p5.Vector\">p5.Vector</a> class.\n           *\n           * @class p5.Vector\n           * @constructor\n           * @param {Number} [x] x component of the vector\n           * @param {Number} [y] y component of the vector\n           * @param {Number} [z] z component of the vector\n           * @example\n           * <div>\n           * <code>\n           * let v1 = createVector(40, 50);\n           * let v2 = createVector(40, 50);\n           *\n           * ellipse(v1.x, v1.y, 50, 50);\n           * ellipse(v2.x, v2.y, 50, 50);\n           * v1.add(v2);\n           * ellipse(v1.x, v1.y, 50, 50);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 2 white ellipses. One center-left the other bottom right and off canvas\n           *\n           */ _main.default.Vector = function Vector() {\n            var x, y, z;\n            // This is how it comes in with createVector()\n            if (arguments[0] instanceof _main.default) {\n              // save reference to p5 if passed in\n              this.p5 = arguments[0];\n              x = arguments[1][0] || 0;\n              y = arguments[1][1] || 0;\n              z = arguments[1][2] || 0;\n              // This is what we'll get with new p5.Vector()\n            } else {\n              x = arguments[0] || 0;\n              y = arguments[1] || 0;\n              z = arguments[2] || 0;\n            }\n            /**\n             * The x component of the vector\n             * @property x {Number}\n             */\n            this.x = x;\n            /**\n             * The y component of the vector\n             * @property y {Number}\n             */\n            this.y = y;\n            /**\n             * The z component of the vector\n             * @property z {Number}\n             */\n            this.z = z;\n          };\n\n          /**\n           * Returns a string representation of a vector v by calling String(v)\n           * or v.toString(). This method is useful for logging vectors in the\n           * console.\n           * @method  toString\n           * @return {String}\n           * @example\n           * <div class = \"norender\">\n           * <code>\n           * function setup() {\n           *   let v = createVector(20, 30);\n           *   print(String(v)); // prints \"p5.Vector Object : [20, 30, 0]\"\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(0, 0);\n           *   let v1 = createVector(mouseX, mouseY);\n           *   drawArrow(v0, v1, 'black');\n           *\n           *   noStroke();\n           *   text(v1.toString(), 10, 25, 90, 75);\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.toString = function p5VectorToString() {\n            return 'p5.Vector Object : ['\n              .concat(this.x, ', ')\n              .concat(this.y, ', ')\n              .concat(this.z, ']');\n          };\n\n          /**\n           * Sets the x, y, and z component of the vector using two or three separate\n           * variables, the data from a <a href=\"#/p5.Vector\">p5.Vector</a>, or the values from a float array.\n           * @method set\n           * @param {Number} [x] the x component of the vector\n           * @param {Number} [y] the y component of the vector\n           * @param {Number} [z] the z component of the vector\n           * @chainable\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * function setup() {\n           *   let v = createVector(1, 2, 3);\n           *   v.set(4, 5, 6); // Sets vector to [4, 5, 6]\n           *\n           *   let v1 = createVector(0, 0, 0);\n           *   let arr = [1, 2, 3];\n           *   v1.set(arr); // Sets vector to [1, 2, 3]\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let v0, v1;\n           * function setup() {\n           *   createCanvas(100, 100);\n           *\n           *   v0 = createVector(0, 0);\n           *   v1 = createVector(50, 50);\n           * }\n           *\n           * function draw() {\n           *   background(240);\n           *\n           *   drawArrow(v0, v1, 'black');\n           *   v1.set(v1.x + random(-1, 1), v1.y + random(-1, 1));\n           *\n           *   noStroke();\n           *   text('x: ' + round(v1.x) + ' y: ' + round(v1.y), 20, 90);\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          /**\n           * @method set\n           * @param {p5.Vector|Number[]} value the vector to set\n           * @chainable\n           */\n          _main.default.Vector.prototype.set = function set(x, y, z) {\n            if (x instanceof _main.default.Vector) {\n              this.x = x.x || 0;\n              this.y = x.y || 0;\n              this.z = x.z || 0;\n              return this;\n            }\n            if (x instanceof Array) {\n              this.x = x[0] || 0;\n              this.y = x[1] || 0;\n              this.z = x[2] || 0;\n              return this;\n            }\n            this.x = x || 0;\n            this.y = y || 0;\n            this.z = z || 0;\n            return this;\n          };\n\n          /**\n           * Gets a copy of the vector, returns a <a href=\"#/p5.Vector\">p5.Vector</a> object.\n           *\n           * @method copy\n           * @return {p5.Vector} the copy of the <a href=\"#/p5.Vector\">p5.Vector</a> object\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v1 = createVector(1, 2, 3);\n           * let v2 = v1.copy();\n           * print(v1.x === v2.x && v1.y === v2.y && v1.z === v2.z);\n           * // Prints \"true\"\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.copy = function copy() {\n            if (this.p5) {\n              return new _main.default.Vector(this.p5, [this.x, this.y, this.z]);\n            } else {\n              return new _main.default.Vector(this.x, this.y, this.z);\n            }\n          };\n\n          /**\n           * Adds x, y, and z components to a vector, adds one vector to another, or\n           * adds two independent vectors together. The version of the method that adds\n           * two vectors together is a static method and returns a <a href=\"#/p5.Vector\">p5.Vector</a>, the others\n           * acts directly on the vector. See the examples for more context.\n           *\n           * @method add\n           * @param  {Number} x   the x component of the vector to be added\n           * @param  {Number} [y] the y component of the vector to be added\n           * @param  {Number} [z] the z component of the vector to be added\n           * @chainable\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v = createVector(1, 2, 3);\n           * v.add(4, 5, 6);\n           * // v's components are set to [5, 7, 9]\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // Static method\n           * let v1 = createVector(1, 2, 3);\n           * let v2 = createVector(2, 3, 4);\n           *\n           * let v3 = p5.Vector.add(v1, v2);\n           * // v3 has components [3, 5, 7]\n           * print(v3);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // red vector + blue vector = purple vector\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(0, 0);\n           *   let v1 = createVector(mouseX, mouseY);\n           *   drawArrow(v0, v1, 'red');\n           *\n           *   let v2 = createVector(-30, 20);\n           *   drawArrow(v1, v2, 'blue');\n           *\n           *   let v3 = p5.Vector.add(v1, v2);\n           *   drawArrow(v0, v3, 'purple');\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          /**\n           * @method add\n           * @param  {p5.Vector|Number[]} value the vector to add\n           * @chainable\n           */\n          _main.default.Vector.prototype.add = function add(x, y, z) {\n            if (x instanceof _main.default.Vector) {\n              this.x += x.x || 0;\n              this.y += x.y || 0;\n              this.z += x.z || 0;\n              return this;\n            }\n            if (x instanceof Array) {\n              this.x += x[0] || 0;\n              this.y += x[1] || 0;\n              this.z += x[2] || 0;\n              return this;\n            }\n            this.x += x || 0;\n            this.y += y || 0;\n            this.z += z || 0;\n            return this;\n          };\n\n          /// HELPERS FOR REMAINDER METHOD\n          var calculateRemainder2D = function calculateRemainder2D(xComponent, yComponent) {\n            if (xComponent !== 0) {\n              this.x = this.x % xComponent;\n            }\n            if (yComponent !== 0) {\n              this.y = this.y % yComponent;\n            }\n            return this;\n          };\n\n          var calculateRemainder3D = function calculateRemainder3D(\n            xComponent,\n            yComponent,\n            zComponent\n          ) {\n            if (xComponent !== 0) {\n              this.x = this.x % xComponent;\n            }\n            if (yComponent !== 0) {\n              this.y = this.y % yComponent;\n            }\n            if (zComponent !== 0) {\n              this.z = this.z % zComponent;\n            }\n            return this;\n          };\n          /**\n           * Gives remainder of a vector when it is divided by another vector.\n           * See examples for more context.\n           *\n           * @method rem\n           * @param {Number} x the x component of divisor vector\n           * @param {Number} y the y component of divisor vector\n           * @param {Number} z the z component of divisor vector\n           * @chainable\n           * @example\n           * <div class='norender'>\n           * <code>\n           * let v = createVector(3, 4, 5);\n           * v.rem(2, 3, 4);\n           * // v's components are set to [1, 1, 1]\n           * </code>\n           * </div>\n           * <div class=\"norender\">\n           * <code>\n           * // Static method\n           * let v1 = createVector(3, 4, 5);\n           * let v2 = createVector(2, 3, 4);\n           *\n           * let v3 = p5.Vector.rem(v1, v2);\n           * // v3 has components [1, 1, 1]\n           * print(v3);\n           * </code>\n           * </div>\n           */\n          /**\n           * @method rem\n           * @param {p5.Vector | Number[]}  value  divisor vector\n           * @chainable\n           */\n          _main.default.Vector.prototype.rem = function rem(x, y, z) {\n            if (x instanceof _main.default.Vector) {\n              if (Number.isFinite(x.x) && Number.isFinite(x.y) && Number.isFinite(x.z)) {\n                var xComponent = parseFloat(x.x);\n                var yComponent = parseFloat(x.y);\n                var zComponent = parseFloat(x.z);\n                calculateRemainder3D.call(this, xComponent, yComponent, zComponent);\n              }\n            } else if (x instanceof Array) {\n              if (\n                x.every(function(element) {\n                  return Number.isFinite(element);\n                })\n              ) {\n                if (x.length === 2) {\n                  calculateRemainder2D.call(this, x[0], x[1]);\n                }\n                if (x.length === 3) {\n                  calculateRemainder3D.call(this, x[0], x[1], x[2]);\n                }\n              }\n            } else if (arguments.length === 1) {\n              if (Number.isFinite(arguments[0]) && arguments[0] !== 0) {\n                this.x = this.x % arguments[0];\n                this.y = this.y % arguments[0];\n                this.z = this.z % arguments[0];\n                return this;\n              }\n            } else if (arguments.length === 2) {\n              var vectorComponents = Array.prototype.slice.call(arguments);\n              if (\n                vectorComponents.every(function(element) {\n                  return Number.isFinite(element);\n                })\n              ) {\n                if (vectorComponents.length === 2) {\n                  calculateRemainder2D.call(this, vectorComponents[0], vectorComponents[1]);\n                }\n              }\n            } else if (arguments.length === 3) {\n              var _vectorComponents = Array.prototype.slice.call(arguments);\n              if (\n                _vectorComponents.every(function(element) {\n                  return Number.isFinite(element);\n                })\n              ) {\n                if (_vectorComponents.length === 3) {\n                  calculateRemainder3D.call(\n                    this,\n                    _vectorComponents[0],\n                    _vectorComponents[1],\n                    _vectorComponents[2]\n                  );\n                }\n              }\n            }\n          };\n\n          /**\n           * Subtracts x, y, and z components from a vector, subtracts one vector from\n           * another, or subtracts two independent vectors. The version of the method\n           * that subtracts two vectors is a static method and returns a <a href=\"#/p5.Vector\">p5.Vector</a>, the\n           * other acts directly on the vector. See the examples for more context.\n           *\n           * @method sub\n           * @param  {Number} x   the x component of the vector to subtract\n           * @param  {Number} [y] the y component of the vector to subtract\n           * @param  {Number} [z] the z component of the vector to subtract\n           * @chainable\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v = createVector(4, 5, 6);\n           * v.sub(1, 1, 1);\n           * // v's components are set to [3, 4, 5]\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // Static method\n           * let v1 = createVector(2, 3, 4);\n           * let v2 = createVector(1, 2, 3);\n           *\n           * let v3 = p5.Vector.sub(v1, v2);\n           * // v3 has components [1, 1, 1]\n           * print(v3);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // red vector - blue vector = purple vector\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(0, 0);\n           *   let v1 = createVector(70, 50);\n           *   drawArrow(v0, v1, 'red');\n           *\n           *   let v2 = createVector(mouseX, mouseY);\n           *   drawArrow(v0, v2, 'blue');\n           *\n           *   let v3 = p5.Vector.sub(v1, v2);\n           *   drawArrow(v2, v3, 'purple');\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          /**\n           * @method sub\n           * @param  {p5.Vector|Number[]} value the vector to subtract\n           * @chainable\n           */\n          _main.default.Vector.prototype.sub = function sub(x, y, z) {\n            if (x instanceof _main.default.Vector) {\n              this.x -= x.x || 0;\n              this.y -= x.y || 0;\n              this.z -= x.z || 0;\n              return this;\n            }\n            if (x instanceof Array) {\n              this.x -= x[0] || 0;\n              this.y -= x[1] || 0;\n              this.z -= x[2] || 0;\n              return this;\n            }\n            this.x -= x || 0;\n            this.y -= y || 0;\n            this.z -= z || 0;\n            return this;\n          };\n\n          /**\n           * Multiply the vector by a scalar. The static version of this method\n           * creates a new <a href=\"#/p5.Vector\">p5.Vector</a> while the non static version acts on the vector\n           * directly. See the examples for more context.\n           *\n           * @method mult\n           * @param  {Number}    n the number to multiply with the vector\n           * @chainable\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v = createVector(1, 2, 3);\n           * v.mult(2);\n           * // v's components are set to [2, 4, 6]\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // Static method\n           * let v1 = createVector(1, 2, 3);\n           * let v2 = p5.Vector.mult(v1, 2);\n           * // v2 has components [2, 4, 6]\n           * print(v2);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(50, 50);\n           *   let v1 = createVector(25, -25);\n           *   drawArrow(v0, v1, 'red');\n           *\n           *   let num = map(mouseX, 0, width, -2, 2, true);\n           *   let v2 = p5.Vector.mult(v1, num);\n           *   drawArrow(v0, v2, 'blue');\n           *\n           *   noStroke();\n           *   text('multiplied by ' + num.toFixed(2), 5, 90);\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.mult = function mult(n) {\n            if (!(typeof n === 'number' && isFinite(n))) {\n              console.warn(\n                'p5.Vector.prototype.mult:',\n                'n is undefined or not a finite number'\n              );\n\n              return this;\n            }\n            this.x *= n;\n            this.y *= n;\n            this.z *= n;\n            return this;\n          };\n\n          /**\n           * Divide the vector by a scalar. The static version of this method creates a\n           * new <a href=\"#/p5.Vector\">p5.Vector</a> while the non static version acts on the vector directly.\n           * See the examples for more context.\n           *\n           * @method div\n           * @param  {number}    n the number to divide the vector by\n           * @chainable\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v = createVector(6, 4, 2);\n           * v.div(2); //v's components are set to [3, 2, 1]\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // Static method\n           * let v1 = createVector(6, 4, 2);\n           * let v2 = p5.Vector.div(v1, 2);\n           * // v2 has components [3, 2, 1]\n           * print(v2);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(0, 100);\n           *   let v1 = createVector(50, -50);\n           *   drawArrow(v0, v1, 'red');\n           *\n           *   let num = map(mouseX, 0, width, 10, 0.5, true);\n           *   let v2 = p5.Vector.div(v1, num);\n           *   drawArrow(v0, v2, 'blue');\n           *\n           *   noStroke();\n           *   text('divided by ' + num.toFixed(2), 10, 90);\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.div = function div(n) {\n            if (!(typeof n === 'number' && isFinite(n))) {\n              console.warn(\n                'p5.Vector.prototype.div:',\n                'n is undefined or not a finite number'\n              );\n\n              return this;\n            }\n            if (n === 0) {\n              console.warn('p5.Vector.prototype.div:', 'divide by 0');\n              return this;\n            }\n            this.x /= n;\n            this.y /= n;\n            this.z /= n;\n            return this;\n          };\n\n          /**\n           * Calculates the magnitude (length) of the vector and returns the result as\n           * a float (this is simply the equation sqrt(x\\*x + y\\*y + z\\*z).)\n           *\n           * @method mag\n           * @return {Number} magnitude of the vector\n           * @example\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(0, 0);\n           *   let v1 = createVector(mouseX, mouseY);\n           *   drawArrow(v0, v1, 'black');\n           *\n           *   noStroke();\n           *   text('vector length: ' + v1.mag().toFixed(2), 10, 70, 90, 30);\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           * <div class=\"norender\">\n           * <code>\n           * let v = createVector(20.0, 30.0, 40.0);\n           * let m = v.mag();\n           * print(m); // Prints \"53.85164807134504\"\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.mag = function mag() {\n            return Math.sqrt(this.magSq());\n          };\n\n          /**\n           * Calculates the squared magnitude of the vector and returns the result\n           * as a float (this is simply the equation <em>(x\\*x + y\\*y + z\\*z)</em>.)\n           * Faster if the real length is not required in the\n           * case of comparing vectors, etc.\n           *\n           * @method magSq\n           * @return {number} squared magnitude of the vector\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * // Static method\n           * let v1 = createVector(6, 4, 2);\n           * print(v1.magSq()); // Prints \"56\"\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(0, 0);\n           *   let v1 = createVector(mouseX, mouseY);\n           *   drawArrow(v0, v1, 'black');\n           *\n           *   noStroke();\n           *   text('vector length squared: ' + v1.magSq().toFixed(2), 10, 45, 90, 55);\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.magSq = function magSq() {\n            var x = this.x;\n            var y = this.y;\n            var z = this.z;\n            return x * x + y * y + z * z;\n          };\n\n          /**\n           * Calculates the dot product of two vectors. The version of the method\n           * that computes the dot product of two independent vectors is a static\n           * method. See the examples for more context.\n           *\n           *\n           * @method dot\n           * @param  {Number} x   x component of the vector\n           * @param  {Number} [y] y component of the vector\n           * @param  {Number} [z] z component of the vector\n           * @return {Number}       the dot product\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v1 = createVector(1, 2, 3);\n           * let v2 = createVector(2, 3, 4);\n           *\n           * print(v1.dot(v2)); // Prints \"20\"\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * //Static method\n           * let v1 = createVector(1, 2, 3);\n           * let v2 = createVector(3, 2, 1);\n           * print(p5.Vector.dot(v1, v2)); // Prints \"10\"\n           * </code>\n           * </div>\n           */\n          /**\n           * @method dot\n           * @param  {p5.Vector} value value component of the vector or a <a href=\"#/p5.Vector\">p5.Vector</a>\n           * @return {Number}\n           */\n          _main.default.Vector.prototype.dot = function dot(x, y, z) {\n            if (x instanceof _main.default.Vector) {\n              return this.dot(x.x, x.y, x.z);\n            }\n            return this.x * (x || 0) + this.y * (y || 0) + this.z * (z || 0);\n          };\n\n          /**\n           * Calculates and returns a vector composed of the cross product between\n           * two vectors. Both the static and non static methods return a new <a href=\"#/p5.Vector\">p5.Vector</a>.\n           * See the examples for more context.\n           *\n           * @method cross\n           * @param  {p5.Vector} v <a href=\"#/p5.Vector\">p5.Vector</a> to be crossed\n           * @return {p5.Vector}   <a href=\"#/p5.Vector\">p5.Vector</a> composed of cross product\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v1 = createVector(1, 2, 3);\n           * let v2 = createVector(1, 2, 3);\n           *\n           * v1.cross(v2); // v's components are [0, 0, 0]\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // Static method\n           * let v1 = createVector(1, 0, 0);\n           * let v2 = createVector(0, 1, 0);\n           *\n           * let crossProduct = p5.Vector.cross(v1, v2);\n           * // crossProduct has components [0, 0, 1]\n           * print(crossProduct);\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.cross = function cross(v) {\n            var x = this.y * v.z - this.z * v.y;\n            var y = this.z * v.x - this.x * v.z;\n            var z = this.x * v.y - this.y * v.x;\n            if (this.p5) {\n              return new _main.default.Vector(this.p5, [x, y, z]);\n            } else {\n              return new _main.default.Vector(x, y, z);\n            }\n          };\n\n          /**\n           * Calculates the Euclidean distance between two points (considering a\n           * point as a vector object).\n           *\n           * @method dist\n           * @param  {p5.Vector} v the x, y, and z coordinates of a <a href=\"#/p5.Vector\">p5.Vector</a>\n           * @return {Number}      the distance\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v1 = createVector(1, 0, 0);\n           * let v2 = createVector(0, 1, 0);\n           *\n           * let distance = v1.dist(v2); // distance is 1.4142...\n           * print(distance);\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * // Static method\n           * let v1 = createVector(1, 0, 0);\n           * let v2 = createVector(0, 1, 0);\n           *\n           * let distance = p5.Vector.dist(v1, v2);\n           * // distance is 1.4142...\n           * print(distance);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(0, 0);\n           *\n           *   let v1 = createVector(70, 50);\n           *   drawArrow(v0, v1, 'red');\n           *\n           *   let v2 = createVector(mouseX, mouseY);\n           *   drawArrow(v0, v2, 'blue');\n           *\n           *   noStroke();\n           *   text('distance between vectors: ' + v2.dist(v1).toFixed(2), 5, 50, 95, 50);\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.dist = function dist(v) {\n            return v\n              .copy()\n              .sub(this)\n              .mag();\n          };\n\n          /**\n           * Normalize the vector to length 1 (make it a unit vector).\n           *\n           * @method normalize\n           * @return {p5.Vector} normalized <a href=\"#/p5.Vector\">p5.Vector</a>\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v = createVector(10, 20, 2);\n           * // v has components [10.0, 20.0, 2.0]\n           * v.normalize();\n           * // v's components are set to\n           * // [0.4454354, 0.8908708, 0.089087084]\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(50, 50);\n           *   let v1 = createVector(mouseX - 50, mouseY - 50);\n           *\n           *   drawArrow(v0, v1, 'red');\n           *   v1.normalize();\n           *   drawArrow(v0, v1.mult(35), 'blue');\n           *\n           *   noFill();\n           *   ellipse(50, 50, 35 * 2);\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.normalize = function normalize() {\n            var len = this.mag();\n            // here we multiply by the reciprocal instead of calling 'div()'\n            // since div duplicates this zero check.\n            if (len !== 0) this.mult(1 / len);\n            return this;\n          };\n\n          /**\n           * Limit the magnitude of this vector to the value used for the <b>max</b>\n           * parameter.\n           *\n           * @method limit\n           * @param  {Number}    max the maximum magnitude for the vector\n           * @chainable\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v = createVector(10, 20, 2);\n           * // v has components [10.0, 20.0, 2.0]\n           * v.limit(5);\n           * // v's components are set to\n           * // [2.2271771, 4.4543543, 0.4454354]\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(50, 50);\n           *   let v1 = createVector(mouseX - 50, mouseY - 50);\n           *\n           *   drawArrow(v0, v1, 'red');\n           *   drawArrow(v0, v1.limit(35), 'blue');\n           *\n           *   noFill();\n           *   ellipse(50, 50, 35 * 2);\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.limit = function limit(max) {\n            var mSq = this.magSq();\n            if (mSq > max * max) {\n              this.div(Math.sqrt(mSq)) //normalize it\n                .mult(max);\n            }\n            return this;\n          };\n\n          /**\n           * Set the magnitude of this vector to the value used for the <b>len</b>\n           * parameter.\n           *\n           * @method setMag\n           * @param  {number}    len the new length for this vector\n           * @chainable\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v = createVector(10, 20, 2);\n           * // v has components [10.0, 20.0, 2.0]\n           * v.setMag(10);\n           * // v's components are set to [6.0, 8.0, 0.0]\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(0, 0);\n           *   let v1 = createVector(50, 50);\n           *\n           *   drawArrow(v0, v1, 'red');\n           *\n           *   let length = map(mouseX, 0, width, 0, 141, true);\n           *   v1.setMag(length);\n           *   drawArrow(v0, v1, 'blue');\n           *\n           *   noStroke();\n           *   text('magnitude set to: ' + length.toFixed(2), 10, 70, 90, 30);\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.setMag = function setMag(n) {\n            return this.normalize().mult(n);\n          };\n\n          /**\n           * Calculate the angle of rotation for this vector (only 2D vectors)\n           *\n           * @method heading\n           * @return {Number} the angle of rotation\n           * @example\n           * <div class = \"norender\">\n           * <code>\n           * function setup() {\n           *   let v1 = createVector(30, 50);\n           *   print(v1.heading()); // 1.0303768265243125\n           *\n           *   v1 = createVector(40, 50);\n           *   print(v1.heading()); // 0.8960553845713439\n           *\n           *   v1 = createVector(30, 70);\n           *   print(v1.heading()); // 1.1659045405098132\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(50, 50);\n           *   let v1 = createVector(mouseX - 50, mouseY - 50);\n           *\n           *   drawArrow(v0, v1, 'black');\n           *\n           *   let myHeading = v1.heading();\n           *   noStroke();\n           *   text(\n           *     'vector heading: ' +\n           *       myHeading.toFixed(2) +\n           *       ' radians or ' +\n           *       degrees(myHeading).toFixed(2) +\n           *       ' degrees',\n           *     10,\n           *     50,\n           *     90,\n           *     50\n           *   );\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.heading = function heading() {\n            var h = Math.atan2(this.y, this.x);\n            if (this.p5) return this.p5._fromRadians(h);\n            return h;\n          };\n\n          /**\n           * Rotate the vector by an angle (only 2D vectors), magnitude remains the\n           * same\n           *\n           * @method rotate\n           * @param  {number}    angle the angle of rotation\n           * @chainable\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v = createVector(10.0, 20.0);\n           * // v has components [10.0, 20.0, 0.0]\n           * v.rotate(HALF_PI);\n           * // v's components are set to [-20.0, 9.999999, 0.0]\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let angle = 0;\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(50, 50);\n           *   let v1 = createVector(50, 0);\n           *\n           *   drawArrow(v0, v1.rotate(angle), 'black');\n           *   angle += 0.01;\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.rotate = function rotate(a) {\n            var newHeading = this.heading() + a;\n            if (this.p5) newHeading = this.p5._toRadians(newHeading);\n            var mag = this.mag();\n            this.x = Math.cos(newHeading) * mag;\n            this.y = Math.sin(newHeading) * mag;\n            return this;\n          };\n\n          /**\n           * Calculates and returns the angle (in radians) between two vectors.\n           * @method angleBetween\n           * @param  {p5.Vector}    value the x, y, and z components of a <a href=\"#/p5.Vector\">p5.Vector</a>\n           * @return {Number}       the angle between (in radians)\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v1 = createVector(1, 0, 0);\n           * let v2 = createVector(0, 1, 0);\n           *\n           * let angle = v1.angleBetween(v2);\n           * // angle is PI/2\n           * print(angle);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(240);\n           *   let v0 = createVector(50, 50);\n           *\n           *   let v1 = createVector(50, 0);\n           *   drawArrow(v0, v1, 'red');\n           *\n           *   let v2 = createVector(mouseX - 50, mouseY - 50);\n           *   drawArrow(v0, v2, 'blue');\n           *\n           *   let angleBetween = v1.angleBetween(v2);\n           *   noStroke();\n           *   text(\n           *     'angle between: ' +\n           *       angleBetween.toFixed(2) +\n           *       ' radians or ' +\n           *       degrees(angleBetween).toFixed(2) +\n           *       ' degrees',\n           *     10,\n           *     50,\n           *     90,\n           *     50\n           *   );\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n\n          _main.default.Vector.prototype.angleBetween = function angleBetween(v) {\n            var dotmagmag = this.dot(v) / (this.mag() * v.mag());\n            // Mathematically speaking: the dotmagmag variable will be between -1 and 1\n            // inclusive. Practically though it could be slightly outside this range due\n            // to floating-point rounding issues. This can make Math.acos return NaN.\n            //\n            // Solution: we'll clamp the value to the -1,1 range\n            var angle;\n            angle = Math.acos(Math.min(1, Math.max(-1, dotmagmag)));\n            angle = angle * Math.sign(this.cross(v).z || 1);\n            if (this.p5) {\n              angle = this.p5._fromRadians(angle);\n            }\n            return angle;\n          };\n          /**\n           * Linear interpolate the vector to another vector\n           *\n           * @method lerp\n           * @param  {Number}    x   the x component\n           * @param  {Number}    y   the y component\n           * @param  {Number}    z   the z component\n           * @param  {Number}    amt the amount of interpolation; some value between 0.0\n           *                         (old vector) and 1.0 (new vector). 0.9 is very near\n           *                         the new vector. 0.5 is halfway in between.\n           * @chainable\n           *\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v = createVector(1, 1, 0);\n           *\n           * v.lerp(3, 3, 0, 0.5); // v now has components [2,2,0]\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * let v1 = createVector(0, 0, 0);\n           * let v2 = createVector(100, 100, 0);\n           *\n           * let v3 = p5.Vector.lerp(v1, v2, 0.5);\n           * // v3 has components [50,50,0]\n           * print(v3);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let step = 0.01;\n           * let amount = 0;\n           *\n           * function draw() {\n           *   background(240);\n           *   let v0 = createVector(0, 0);\n           *\n           *   let v1 = createVector(mouseX, mouseY);\n           *   drawArrow(v0, v1, 'red');\n           *\n           *   let v2 = createVector(90, 90);\n           *   drawArrow(v0, v2, 'blue');\n           *\n           *   if (amount > 1 || amount < 0) {\n           *     step *= -1;\n           *   }\n           *   amount += step;\n           *   let v3 = p5.Vector.lerp(v1, v2, amount);\n           *\n           *   drawArrow(v0, v3, 'purple');\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          /**\n           * @method lerp\n           * @param  {p5.Vector} v   the <a href=\"#/p5.Vector\">p5.Vector</a> to lerp to\n           * @param  {Number}    amt\n           * @chainable\n           */\n          _main.default.Vector.prototype.lerp = function lerp(x, y, z, amt) {\n            if (x instanceof _main.default.Vector) {\n              return this.lerp(x.x, x.y, x.z, y);\n            }\n            this.x += (x - this.x) * amt || 0;\n            this.y += (y - this.y) * amt || 0;\n            this.z += (z - this.z) * amt || 0;\n            return this;\n          };\n\n          /**\n           * Reflect the incoming vector about a normal to a line in 2D, or about a normal to a plane in 3D\n           * This method acts on the vector directly\n           *\n           * @method reflect\n           * @param  {p5.Vector} surfaceNormal   the <a href=\"#/p5.Vector\">p5.Vector</a> to reflect about, will be normalized by this method\n           * @chainable\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v = createVector(4, 6); // incoming vector, this example vector is heading to the right and downward\n           * let n = createVector(0, -1); // surface normal to a plane (this example normal points directly upwards)\n           * v.reflect(n); // v is reflected about the surface normal n.  v's components are now set to [4, -6]\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(0, 0);\n           *   let v1 = createVector(mouseX, mouseY);\n           *   drawArrow(v0, v1, 'red');\n           *\n           *   let n = createVector(0, -30);\n           *   drawArrow(v1, n, 'blue');\n           *\n           *   let r = v1.copy();\n           *   r.reflect(n);\n           *   drawArrow(v1, r, 'purple');\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.reflect = function reflect(surfaceNormal) {\n            surfaceNormal.normalize();\n            return this.sub(surfaceNormal.mult(2 * this.dot(surfaceNormal)));\n          };\n\n          /**\n           * Return a representation of this vector as a float array. This is only\n           * for temporary use. If used in any other fashion, the contents should be\n           * copied by using the <b>p5.Vector.<a href=\"#/p5.Vector/copy\">copy()</a></b> method to copy into your own\n           * array.\n           *\n           * @method array\n           * @return {Number[]} an Array with the 3 values\n           * @example\n           * <div class = \"norender\">\n           * <code>\n           * function setup() {\n           *   let v = createVector(20, 30);\n           *   print(v.array()); // Prints : Array [20, 30, 0]\n           * }\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * let v = createVector(10.0, 20.0, 30.0);\n           * let f = v.array();\n           * print(f[0]); // Prints \"10.0\"\n           * print(f[1]); // Prints \"20.0\"\n           * print(f[2]); // Prints \"30.0\"\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.prototype.array = function array() {\n            return [this.x || 0, this.y || 0, this.z || 0];\n          };\n\n          /**\n           * Equality check against a <a href=\"#/p5.Vector\">p5.Vector</a>\n           *\n           * @method equals\n           * @param {Number} [x] the x component of the vector\n           * @param {Number} [y] the y component of the vector\n           * @param {Number} [z] the z component of the vector\n           * @return {Boolean} whether the vectors are equals\n           * @example\n           * <div class = \"norender\">\n           * <code>\n           * let v1 = createVector(5, 10, 20);\n           * let v2 = createVector(5, 10, 20);\n           * let v3 = createVector(13, 10, 19);\n           *\n           * print(v1.equals(v2.x, v2.y, v2.z)); // true\n           * print(v1.equals(v3.x, v3.y, v3.z)); // false\n           * </code>\n           * </div>\n           *\n           * <div class=\"norender\">\n           * <code>\n           * let v1 = createVector(10.0, 20.0, 30.0);\n           * let v2 = createVector(10.0, 20.0, 30.0);\n           * let v3 = createVector(0.0, 0.0, 0.0);\n           * print(v1.equals(v2)); // true\n           * print(v1.equals(v3)); // false\n           * </code>\n           * </div>\n           */\n          /**\n           * @method equals\n           * @param {p5.Vector|Array} value the vector to compare\n           * @return {Boolean}\n           */\n          _main.default.Vector.prototype.equals = function equals(x, y, z) {\n            var a, b, c;\n            if (x instanceof _main.default.Vector) {\n              a = x.x || 0;\n              b = x.y || 0;\n              c = x.z || 0;\n            } else if (x instanceof Array) {\n              a = x[0] || 0;\n              b = x[1] || 0;\n              c = x[2] || 0;\n            } else {\n              a = x || 0;\n              b = y || 0;\n              c = z || 0;\n            }\n            return this.x === a && this.y === b && this.z === c;\n          };\n\n          // Static Methods\n\n          /**\n           * Make a new 2D vector from an angle\n           *\n           * @method fromAngle\n           * @static\n           * @param {Number}     angle the desired angle, in radians (unaffected by <a href=\"#/p5/angleMode\">angleMode</a>)\n           * @param {Number}     [length] the length of the new vector (defaults to 1)\n           * @return {p5.Vector}       the new <a href=\"#/p5.Vector\">p5.Vector</a> object\n           * @example\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(200);\n           *\n           *   // Create a variable, proportional to the mouseX,\n           *   // varying from 0-360, to represent an angle in degrees.\n           *   let myDegrees = map(mouseX, 0, width, 0, 360);\n           *\n           *   // Display that variable in an onscreen text.\n           *   // (Note the nfc() function to truncate additional decimal places,\n           *   // and the \"\\xB0\" character for the degree symbol.)\n           *   let readout = 'angle = ' + nfc(myDegrees, 1) + '\\xB0';\n           *   noStroke();\n           *   fill(0);\n           *   text(readout, 5, 15);\n           *\n           *   // Create a p5.Vector using the fromAngle function,\n           *   // and extract its x and y components.\n           *   let v = p5.Vector.fromAngle(radians(myDegrees), 30);\n           *   let vx = v.x;\n           *   let vy = v.y;\n           *\n           *   push();\n           *   translate(width / 2, height / 2);\n           *   noFill();\n           *   stroke(150);\n           *   line(0, 0, 30, 0);\n           *   stroke(0);\n           *   line(0, 0, vx, vy);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.fromAngle = function fromAngle(angle, length) {\n            if (typeof length === 'undefined') {\n              length = 1;\n            }\n            return new _main.default.Vector(\n              length * Math.cos(angle),\n              length * Math.sin(angle),\n              0\n            );\n          };\n\n          /**\n           * Make a new 3D vector from a pair of ISO spherical angles\n           *\n           * @method fromAngles\n           * @static\n           * @param {Number}     theta    the polar angle, in radians (zero is up)\n           * @param {Number}     phi      the azimuthal angle, in radians\n           *                               (zero is out of the screen)\n           * @param {Number}     [length] the length of the new vector (defaults to 1)\n           * @return {p5.Vector}          the new <a href=\"#/p5.Vector\">p5.Vector</a> object\n           * @example\n           * <div modernizr='webgl'>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   fill(255);\n           *   noStroke();\n           * }\n           * function draw() {\n           *   background(255);\n           *\n           *   let t = millis() / 1000;\n           *\n           *   // add three point lights\n           *   pointLight(color('#f00'), p5.Vector.fromAngles(t * 1.0, t * 1.3, 100));\n           *   pointLight(color('#0f0'), p5.Vector.fromAngles(t * 1.1, t * 1.2, 100));\n           *   pointLight(color('#00f'), p5.Vector.fromAngles(t * 1.2, t * 1.1, 100));\n           *\n           *   sphere(35);\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.fromAngles = function(theta, phi, length) {\n            if (typeof length === 'undefined') {\n              length = 1;\n            }\n            var cosPhi = Math.cos(phi);\n            var sinPhi = Math.sin(phi);\n            var cosTheta = Math.cos(theta);\n            var sinTheta = Math.sin(theta);\n\n            return new _main.default.Vector(\n              length * sinTheta * sinPhi,\n              -length * cosTheta,\n              length * sinTheta * cosPhi\n            );\n          };\n\n          /**\n           * Make a new 2D unit vector from a random angle\n           *\n           * @method random2D\n           * @static\n           * @return {p5.Vector} the new <a href=\"#/p5.Vector\">p5.Vector</a> object\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v = p5.Vector.random2D();\n           * // May make v's attributes something like:\n           * // [0.61554617, -0.51195765, 0.0] or\n           * // [-0.4695841, -0.14366731, 0.0] or\n           * // [0.6091097, -0.22805278, 0.0]\n           * print(v);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * function setup() {\n           *   frameRate(1);\n           * }\n           *\n           * function draw() {\n           *   background(240);\n           *\n           *   let v0 = createVector(50, 50);\n           *   let v1 = p5.Vector.random2D();\n           *   drawArrow(v0, v1.mult(50), 'black');\n           * }\n           *\n           * // draw an arrow for a vector at a given base position\n           * function drawArrow(base, vec, myColor) {\n           *   push();\n           *   stroke(myColor);\n           *   strokeWeight(3);\n           *   fill(myColor);\n           *   translate(base.x, base.y);\n           *   line(0, 0, vec.x, vec.y);\n           *   rotate(vec.heading());\n           *   let arrowSize = 7;\n           *   translate(vec.mag() - arrowSize, 0);\n           *   triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.random2D = function random2D() {\n            return this.fromAngle(Math.random() * constants.TWO_PI);\n          };\n\n          /**\n           * Make a new random 3D unit vector.\n           *\n           * @method random3D\n           * @static\n           * @return {p5.Vector} the new <a href=\"#/p5.Vector\">p5.Vector</a> object\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let v = p5.Vector.random3D();\n           * // May make v's attributes something like:\n           * // [0.61554617, -0.51195765, 0.599168] or\n           * // [-0.4695841, -0.14366731, -0.8711202] or\n           * // [0.6091097, -0.22805278, -0.7595902]\n           * print(v);\n           * </code>\n           * </div>\n           */\n          _main.default.Vector.random3D = function random3D() {\n            var angle = Math.random() * constants.TWO_PI;\n            var vz = Math.random() * 2 - 1;\n            var vzBase = Math.sqrt(1 - vz * vz);\n            var vx = vzBase * Math.cos(angle);\n            var vy = vzBase * Math.sin(angle);\n            return new _main.default.Vector(vx, vy, vz);\n          };\n\n          // Adds two vectors together and returns a new one.\n          /**\n           * @method add\n           * @static\n           * @param  {p5.Vector} v1 a <a href=\"#/p5.Vector\">p5.Vector</a> to add\n           * @param  {p5.Vector} v2 a <a href=\"#/p5.Vector\">p5.Vector</a> to add\n           * @param  {p5.Vector} target the vector to receive the result\n           */\n          /**\n           * @method add\n           * @static\n           * @param  {p5.Vector} v1\n           * @param  {p5.Vector} v2\n           * @return {p5.Vector} the resulting <a href=\"#/p5.Vector\">p5.Vector</a>\n           *\n           */\n\n          _main.default.Vector.add = function add(v1, v2, target) {\n            if (!target) {\n              target = v1.copy();\n            } else {\n              target.set(v1);\n            }\n            target.add(v2);\n            return target;\n          };\n\n          // Returns a vector remainder when it is divided by another vector\n          /**\n           * @method rem\n           * @static\n           * @param  {p5.Vector} v1 dividend <a href=\"#/p5.Vector\">p5.Vector</a>\n           * @param  {p5.Vector} v2 divisor <a href=\"#/p5.Vector\">p5.Vector</a>\n           */\n          /**\n           * @method rem\n           * @static\n           * @param  {p5.Vector} v1\n           * @param  {p5.Vector} v2\n           * @return {p5.Vector} the resulting <a href=\"#/p5.Vector\">p5.Vector</a>\n           *\n           */\n          _main.default.Vector.rem = function rem(v1, v2) {\n            if (v1 instanceof _main.default.Vector && v2 instanceof _main.default.Vector) {\n              var target = v1.copy();\n              target.rem(v2);\n              return target;\n            }\n          };\n\n          /*\n    * Subtracts one <a href=\"#/p5.Vector\">p5.Vector</a> from another and returns a new one.  The second\n    * vector (v2) is subtracted from the first (v1), resulting in v1-v2.\n    */\n          /**\n           * @method sub\n           * @static\n           * @param  {p5.Vector} v1 a <a href=\"#/p5.Vector\">p5.Vector</a> to subtract from\n           * @param  {p5.Vector} v2 a <a href=\"#/p5.Vector\">p5.Vector</a> to subtract\n           * @param  {p5.Vector} target if undefined a new vector will be created\n           */\n          /**\n           * @method sub\n           * @static\n           * @param  {p5.Vector} v1\n           * @param  {p5.Vector} v2\n           * @return {p5.Vector} the resulting <a href=\"#/p5.Vector\">p5.Vector</a>\n           */\n\n          _main.default.Vector.sub = function sub(v1, v2, target) {\n            if (!target) {\n              target = v1.copy();\n            } else {\n              target.set(v1);\n            }\n            target.sub(v2);\n            return target;\n          };\n\n          /**\n           * Multiplies a vector by a scalar and returns a new vector.\n           */\n          /**\n           * @method mult\n           * @static\n           * @param  {p5.Vector} v the vector to multiply\n           * @param  {Number}  n\n           * @param  {p5.Vector} target if undefined a new vector will be created\n           */\n          /**\n           * @method mult\n           * @static\n           * @param  {p5.Vector} v\n           * @param  {Number}  n\n           * @return {p5.Vector}  the resulting new <a href=\"#/p5.Vector\">p5.Vector</a>\n           */\n          _main.default.Vector.mult = function mult(v, n, target) {\n            if (!target) {\n              target = v.copy();\n            } else {\n              target.set(v);\n            }\n            target.mult(n);\n            return target;\n          };\n\n          /**\n           * Divides a vector by a scalar and returns a new vector.\n           */\n          /**\n           * @method div\n           * @static\n           * @param  {p5.Vector} v the vector to divide\n           * @param  {Number}  n\n           * @param  {p5.Vector} target if undefined a new vector will be created\n           */\n          /**\n           * @method div\n           * @static\n           * @param  {p5.Vector} v\n           * @param  {Number}  n\n           * @return {p5.Vector} the resulting new <a href=\"#/p5.Vector\">p5.Vector</a>\n           */\n          _main.default.Vector.div = function div(v, n, target) {\n            if (!target) {\n              target = v.copy();\n            } else {\n              target.set(v);\n            }\n            target.div(n);\n            return target;\n          };\n\n          /**\n           * Calculates the dot product of two vectors.\n           */\n          /**\n           * @method dot\n           * @static\n           * @param  {p5.Vector} v1 the first <a href=\"#/p5.Vector\">p5.Vector</a>\n           * @param  {p5.Vector} v2 the second <a href=\"#/p5.Vector\">p5.Vector</a>\n           * @return {Number}     the dot product\n           */\n          _main.default.Vector.dot = function dot(v1, v2) {\n            return v1.dot(v2);\n          };\n\n          /**\n           * Calculates the cross product of two vectors.\n           */\n          /**\n           * @method cross\n           * @static\n           * @param  {p5.Vector} v1 the first <a href=\"#/p5.Vector\">p5.Vector</a>\n           * @param  {p5.Vector} v2 the second <a href=\"#/p5.Vector\">p5.Vector</a>\n           * @return {Number}     the cross product\n           */\n          _main.default.Vector.cross = function cross(v1, v2) {\n            return v1.cross(v2);\n          };\n\n          /**\n           * Calculates the Euclidean distance between two points (considering a\n           * point as a vector object).\n           */\n          /**\n           * @method dist\n           * @static\n           * @param  {p5.Vector} v1 the first <a href=\"#/p5.Vector\">p5.Vector</a>\n           * @param  {p5.Vector} v2 the second <a href=\"#/p5.Vector\">p5.Vector</a>\n           * @return {Number}     the distance\n           */\n          _main.default.Vector.dist = function dist(v1, v2) {\n            return v1.dist(v2);\n          };\n\n          /**\n           * Linear interpolate a vector to another vector and return the result as a\n           * new vector.\n           */\n          /**\n           * @method lerp\n           * @static\n           * @param {p5.Vector} v1\n           * @param {p5.Vector} v2\n           * @param {Number} amt\n           * @param {p5.Vector} target if undefined a new vector will be created\n           */\n          /**\n           * @method lerp\n           * @static\n           * @param {p5.Vector} v1\n           * @param {p5.Vector} v2\n           * @param {Number} amt\n           * @return {Number}      the lerped value\n           */\n          _main.default.Vector.lerp = function lerp(v1, v2, amt, target) {\n            if (!target) {\n              target = v1.copy();\n            } else {\n              target.set(v1);\n            }\n            target.lerp(v2, amt);\n            return target;\n          };\n\n          /**\n           * @method mag\n           * @param {p5.Vector} vecT the vector to return the magnitude of\n           * @return {Number}        the magnitude of vecT\n           * @static\n           */\n          _main.default.Vector.mag = function mag(vecT) {\n            var x = vecT.x,\n              y = vecT.y,\n              z = vecT.z;\n            var magSq = x * x + y * y + z * z;\n            return Math.sqrt(magSq);\n          };\n          var _default = _main.default.Vector;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, '../core/main': 50 }\n      ],\n      84: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          } /** // variables used for random number generators\n           * @module Math\n           * @submodule Random\n           * @for p5\n           * @requires core\n           */\n          var randomStateProp = '_lcg_random_state'; // Set to values from http://en.wikipedia.org/wiki/Numerical_Recipes\n          // m is basically chosen to be large (as it is the max period)\n          // and for its relationships to a and c\n          var m = 4294967296; // a - 1 should be divisible by m's prime factors\n          var a = 1664525; // c and m should be co-prime\n          var c = 1013904223;\n          var y2 = 0;\n\n          // Linear Congruential Generator that stores its state at instance[stateProperty]\n          _main.default.prototype._lcg = function(stateProperty) {\n            // define the recurrence relationship\n            this[stateProperty] = (a * this[stateProperty] + c) % m;\n            // return a float in [0, 1)\n            // we've just used % m, so / m is always < 1\n            return this[stateProperty] / m;\n          };\n\n          _main.default.prototype._lcgSetSeed = function(stateProperty, val) {\n            // pick a random seed if val is undefined or null\n            // the >>> 0 casts the seed to an unsigned 32-bit integer\n            this[stateProperty] = (val == null ? Math.random() * m : val) >>> 0;\n          };\n\n          /**\n           * Sets the seed value for <a href=\"#/p5/random\">random()</a>.\n           *\n           * By default, <a href=\"#/p5/random\">random()</a> produces different results each time the program\n           * is run. Set the seed parameter to a constant to return the same\n           * pseudo-random numbers each time the software is run.\n           *\n           * @method randomSeed\n           * @param {Number} seed   the seed value\n           * @example\n           * <div>\n           * <code>\n           * randomSeed(99);\n           * for (let i = 0; i < 100; i++) {\n           *   let r = random(0, 255);\n           *   stroke(r);\n           *   line(i, 0, i, 100);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * many vertical lines drawn in white, black or grey.\n           *\n           */\n          _main.default.prototype.randomSeed = function(seed) {\n            this._lcgSetSeed(randomStateProp, seed);\n            this._gaussian_previous = false;\n          };\n\n          /**\n           * Return a random floating-point number.\n           *\n           * Takes either 0, 1 or 2 arguments.\n           *\n           * If no argument is given, returns a random number from 0\n           * up to (but not including) 1.\n           *\n           * If one argument is given and it is a number, returns a random number from 0\n           * up to (but not including) the number.\n           *\n           * If one argument is given and it is an array, returns a random element from\n           * that array.\n           *\n           * If two arguments are given, returns a random number from the\n           * first argument up to (but not including) the second argument.\n           *\n           * @method random\n           * @param  {Number} [min]   the lower bound (inclusive)\n           * @param  {Number} [max]   the upper bound (exclusive)\n           * @return {Number} the random number\n           * @example\n           * <div>\n           * <code>\n           * for (let i = 0; i < 100; i++) {\n           *   let r = random(50);\n           *   stroke(r * 5);\n           *   line(50, i, 50 + r, i);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * for (let i = 0; i < 100; i++) {\n           *   let r = random(-50, 50);\n           *   line(50, i, 50 + r, i);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * // Get a random element from an array using the random(Array) syntax\n           * let words = ['apple', 'bear', 'cat', 'dog'];\n           * let word = random(words); // select random word\n           * text(word, 10, 50); // draw the word\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 100 horizontal lines from center canvas to right. size+fill change each time\n           * 100 horizontal lines from center of canvas. height & side change each render\n           * word displayed at random. Either apple, bear, cat, or dog\n           *\n           */\n          /**\n           * @method random\n           * @param  {Array} choices   the array to choose from\n           * @return {*} the random element from the array\n           * @example\n           */\n          _main.default.prototype.random = function(min, max) {\n            _main.default._validateParameters('random', arguments);\n            var rand;\n\n            if (this[randomStateProp] != null) {\n              rand = this._lcg(randomStateProp);\n            } else {\n              rand = Math.random();\n            }\n            if (typeof min === 'undefined') {\n              return rand;\n            } else if (typeof max === 'undefined') {\n              if (min instanceof Array) {\n                return min[Math.floor(rand * min.length)];\n              } else {\n                return rand * min;\n              }\n            } else {\n              if (min > max) {\n                var tmp = min;\n                min = max;\n                max = tmp;\n              }\n\n              return rand * (max - min) + min;\n            }\n          };\n\n          /**\n           *\n           * Returns a random number fitting a Gaussian, or\n           * normal, distribution. There is theoretically no minimum or maximum\n           * value that <a href=\"#/p5/randomGaussian\">randomGaussian()</a> might return. Rather, there is\n           * just a very low probability that values far from the mean will be\n           * returned; and a higher probability that numbers near the mean will\n           * be returned.\n           * <br><br>\n           * Takes either 0, 1 or 2 arguments.<br>\n           * If no args, returns a mean of 0 and standard deviation of 1.<br>\n           * If one arg, that arg is the mean (standard deviation is 1).<br>\n           * If two args, first is mean, second is standard deviation.\n           *\n           * @method randomGaussian\n           * @param  {Number} mean  the mean\n           * @param  {Number} sd    the standard deviation\n           * @return {Number} the random number\n           * @example\n           * <div>\n           * <code>\n           * for (let y = 0; y < 100; y++) {\n           *   let x = randomGaussian(50, 15);\n           *   line(50, y, x, y);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * let distribution = new Array(360);\n           *\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   for (let i = 0; i < distribution.length; i++) {\n           *     distribution[i] = floor(randomGaussian(0, 15));\n           *   }\n           * }\n           *\n           * function draw() {\n           *   background(204);\n           *\n           *   translate(width / 2, width / 2);\n           *\n           *   for (let i = 0; i < distribution.length; i++) {\n           *     rotate(TWO_PI / distribution.length);\n           *     stroke(0);\n           *     let dist = abs(distribution[i]);\n           *     line(0, 0, dist, 0);\n           *   }\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * 100 horizontal lines from center of canvas. height & side change each render\n           * black lines radiate from center of canvas. size determined each render\n           */\n          _main.default.prototype.randomGaussian = function(mean, sd) {\n            var y1, x1, x2, w;\n            if (this._gaussian_previous) {\n              y1 = y2;\n              this._gaussian_previous = false;\n            } else {\n              do {\n                x1 = this.random(2) - 1;\n                x2 = this.random(2) - 1;\n                w = x1 * x1 + x2 * x2;\n              } while (w >= 1);\n              w = Math.sqrt(-2 * Math.log(w) / w);\n              y1 = x1 * w;\n              y2 = x2 * w;\n              this._gaussian_previous = true;\n            }\n\n            var m = mean || 0;\n            var s = sd || 1;\n            return y1 * s + m;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      85: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Math\n           * @submodule Trigonometry\n           * @for p5\n           * @requires core\n           * @requires constants\n           */ /*\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * all DEGREES/RADIANS conversion should be done in the p5 instance\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 * if possible, using the p5._toRadians(), p5._fromRadians() methods.\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 */ _main.default.prototype._angleMode =\n            constants.RADIANS;\n          /**\n           * The inverse of <a href=\"#/p5/cos\">cos()</a>, returns the arc cosine of a value. This function\n           * expects the values in the range of -1 to 1 and values are returned in\n           * the range 0 to PI (3.1415927).\n           *\n           * @method acos\n           * @param  {Number} value the value whose arc cosine is to be returned\n           * @return {Number}       the arc cosine of the given value\n           *\n           * @example\n           * <div class= “norender\">\n           * <code>\n           * let a = PI;\n           * let c = cos(a);\n           * let ac = acos(c);\n           * // Prints: \"3.1415927 : -1.0 : 3.1415927\"\n           * print(a + ' : ' + c + ' : ' + ac);\n           * </code>\n           * </div>\n           *\n           * <div class= “norender\">\n           * <code>\n           * let a = PI + PI / 4.0;\n           * let c = cos(a);\n           * let ac = acos(c);\n           * // Prints: \"3.926991 : -0.70710665 : 2.3561943\"\n           * print(a + ' : ' + c + ' : ' + ac);\n           * </code>\n           * </div>\n           */ _main.default.prototype.acos = function(ratio) {\n            return this._fromRadians(Math.acos(ratio));\n          };\n\n          /**\n           * The inverse of <a href=\"#/p5/sin\">sin()</a>, returns the arc sine of a value. This function\n           * expects the values in the range of -1 to 1 and values are returned\n           * in the range -PI/2 to PI/2.\n           *\n           * @method asin\n           * @param  {Number} value the value whose arc sine is to be returned\n           * @return {Number}       the arc sine of the given value\n           *\n           * @example\n           * <div class= “norender\">\n           * <code>\n           * let a = PI / 3.0;\n           * let s = sin(a);\n           * let as = asin(s);\n           * // Prints: \"1.0471975 : 0.86602540 : 1.0471975\"\n           * print(a + ' : ' + s + ' : ' + as);\n           * </code>\n           * </div>\n           *\n           * <div class= “norender\">\n           * <code>\n           * let a = PI + PI / 3.0;\n           * let s = sin(a);\n           * let as = asin(s);\n           * // Prints: \"4.1887902 : -0.86602540 : -1.0471975\"\n           * print(a + ' : ' + s + ' : ' + as);\n           * </code>\n           * </div>\n           *\n           */\n          _main.default.prototype.asin = function(ratio) {\n            return this._fromRadians(Math.asin(ratio));\n          };\n\n          /**\n           * The inverse of <a href=\"#/p5/tan\">tan()</a>, returns the arc tangent of a value. This function\n           * expects the values in the range of -Infinity to Infinity (exclusive) and\n           * values are returned in the range -PI/2 to PI/2.\n           *\n           * @method atan\n           * @param  {Number} value the value whose arc tangent is to be returned\n           * @return {Number}       the arc tangent of the given value\n           *\n           * @example\n           * <div class= “norender\">\n           * <code>\n           * let a = PI / 3.0;\n           * let t = tan(a);\n           * let at = atan(t);\n           * // Prints: \"1.0471975 : 1.7320508 : 1.0471975\"\n           * print(a + ' : ' + t + ' : ' + at);\n           * </code>\n           * </div>\n           *\n           * <div class= “norender\">\n           * <code>\n           * let a = PI + PI / 3.0;\n           * let t = tan(a);\n           * let at = atan(t);\n           * // Prints: \"4.1887902 : 1.7320508 : 1.0471975\"\n           * print(a + ' : ' + t + ' : ' + at);\n           * </code>\n           * </div>\n           *\n           */\n          _main.default.prototype.atan = function(ratio) {\n            return this._fromRadians(Math.atan(ratio));\n          };\n\n          /**\n           * Calculates the angle (in radians) from a specified point to the coordinate\n           * origin as measured from the positive x-axis. Values are returned as a\n           * float in the range from PI to -PI. The atan2<a href=\"#/p5/\">()</a> function is most often used\n           * for orienting geometry to the position of the cursor.\n           * <br><br>\n           * Note: The y-coordinate of the point is the first parameter, and the\n           * x-coordinate is the second parameter, due the the structure of calculating\n           * the tangent.\n           *\n           * @method atan2\n           * @param  {Number} y y-coordinate of the point\n           * @param  {Number} x x-coordinate of the point\n           * @return {Number}   the arc tangent of the given point\n           *\n           * @example\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(204);\n           *   translate(width / 2, height / 2);\n           *   let a = atan2(mouseY - height / 2, mouseX - width / 2);\n           *   rotate(a);\n           *   rect(-30, -5, 60, 10);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 60 by 10 rect at center of canvas rotates with mouse movements\n           *\n           */\n          _main.default.prototype.atan2 = function(y, x) {\n            return this._fromRadians(Math.atan2(y, x));\n          };\n\n          /**\n           * Calculates the cosine of an angle. This function takes into account the\n           * current <a href=\"#/p5/angleMode\">angleMode</a>. Values are returned in the range -1 to 1.\n           *\n           * @method cos\n           * @param  {Number} angle the angle\n           * @return {Number}       the cosine of the angle\n           *\n           * @example\n           * <div>\n           * <code>\n           * let a = 0.0;\n           * let inc = TWO_PI / 25.0;\n           * for (let i = 0; i < 25; i++) {\n           *   line(i * 4, 50, i * 4, 50 + cos(a) * 40.0);\n           *   a = a + inc;\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * vertical black lines form wave patterns, extend-down on left and right side\n           *\n           */\n          _main.default.prototype.cos = function(angle) {\n            return Math.cos(this._toRadians(angle));\n          };\n\n          /**\n           * Calculates the sine of an angle. This function takes into account the\n           * current <a href=\"#/p5/angleMode\">angleMode</a>. Values are returned in the range -1 to 1.\n           *\n           * @method sin\n           * @param  {Number} angle the angle\n           * @return {Number}       the sine of the angle\n           *\n           * @example\n           * <div>\n           * <code>\n           * let a = 0.0;\n           * let inc = TWO_PI / 25.0;\n           * for (let i = 0; i < 25; i++) {\n           *   line(i * 4, 50, i * 4, 50 + sin(a) * 40.0);\n           *   a = a + inc;\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * vertical black lines extend down and up from center to form wave pattern\n           *\n           */\n          _main.default.prototype.sin = function(angle) {\n            return Math.sin(this._toRadians(angle));\n          };\n\n          /**\n           * Calculates the tangent of an angle. This function takes into account\n           * the current <a href=\"#/p5/angleMode\">angleMode</a>. Values are returned in the range of all real numbers.\n           *\n           * @method tan\n           * @param  {Number} angle the angle\n           * @return {Number}       the tangent of the angle\n           *\n           * @example\n           * <div>\n           * <code>\n           * let a = 0.0;\n           * let inc = TWO_PI / 50.0;\n           * for (let i = 0; i < 100; i = i + 2) {\n           *   line(i, 50, i, 50 + tan(a) * 2.0);\n           *   a = a + inc;\n           * }\n           * </code>\n           *\n           *\n           * @alt\n           * vertical black lines end down and up from center to form spike pattern\n           *\n           */\n          _main.default.prototype.tan = function(angle) {\n            return Math.tan(this._toRadians(angle));\n          };\n\n          /**\n           * Converts a radian measurement to its corresponding value in degrees.\n           * Radians and degrees are two ways of measuring the same thing. There are\n           * 360 degrees in a circle and 2*PI radians in a circle. For example,\n           * 90° = PI/2 = 1.5707964. This function does not take into account the\n           * current <a href=\"#/p5/angleMode\">angleMode</a>.\n           *\n           * @method degrees\n           * @param  {Number} radians the radians value to convert to degrees\n           * @return {Number}         the converted angle\n           *\n           *\n           * @example\n           * <div class= “norender\">\n           * <code>\n           * let rad = PI / 4;\n           * let deg = degrees(rad);\n           * print(rad + ' radians is ' + deg + ' degrees');\n           * // Prints: 0.7853981633974483 radians is 45 degrees\n           * </code>\n           * </div>\n           *\n           */\n          _main.default.prototype.degrees = function(angle) {\n            return angle * constants.RAD_TO_DEG;\n          };\n\n          /**\n           * Converts a degree measurement to its corresponding value in radians.\n           * Radians and degrees are two ways of measuring the same thing. There are\n           * 360 degrees in a circle and 2*PI radians in a circle. For example,\n           * 90° = PI/2 = 1.5707964. This function does not take into account the\n           * current <a href=\"#/p5/angleMode\">angleMode</a>.\n           *\n           * @method radians\n           * @param  {Number} degrees the degree value to convert to radians\n           * @return {Number}         the converted angle\n           *\n           * @example\n           * <div class= “norender\">\n           * <code>\n           * let deg = 45.0;\n           * let rad = radians(deg);\n           * print(deg + ' degrees is ' + rad + ' radians');\n           * // Prints: 45 degrees is 0.7853981633974483 radians\n           * </code>\n           * </div>\n           */\n          _main.default.prototype.radians = function(angle) {\n            return angle * constants.DEG_TO_RAD;\n          };\n\n          /**\n           * Sets the current mode of p5 to given mode. Default mode is RADIANS.\n           *\n           * @method angleMode\n           * @param {Constant} mode either RADIANS or DEGREES\n           *\n           * @example\n           * <div>\n           * <code>\n           * function draw() {\n           *   background(204);\n           *   angleMode(DEGREES); // Change the mode to DEGREES\n           *   let a = atan2(mouseY - height / 2, mouseX - width / 2);\n           *   translate(width / 2, height / 2);\n           *   push();\n           *   rotate(a);\n           *   rect(-20, -5, 40, 10); // Larger rectangle is rotating in degrees\n           *   pop();\n           *   angleMode(RADIANS); // Change the mode to RADIANS\n           *   rotate(a); // variable a stays the same\n           *   rect(-40, -5, 20, 10); // Smaller rectangle is rotating in radians\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * 40 by 10 rect in center rotates with mouse moves. 20 by 10 rect moves faster.\n           *\n           *\n           */\n          _main.default.prototype.angleMode = function(mode) {\n            if (mode === constants.DEGREES || mode === constants.RADIANS) {\n              this._angleMode = mode;\n            }\n          };\n\n          /**\n           * converts angles from the current angleMode to RADIANS\n           *\n           * @method _toRadians\n           * @private\n           * @param {Number} angle\n           * @returns {Number}\n           */\n          _main.default.prototype._toRadians = function(angle) {\n            if (this._angleMode === constants.DEGREES) {\n              return angle * constants.DEG_TO_RAD;\n            }\n            return angle;\n          };\n\n          /**\n           * converts angles from the current angleMode to DEGREES\n           *\n           * @method _toDegrees\n           * @private\n           * @param {Number} angle\n           * @returns {Number}\n           */\n          _main.default.prototype._toDegrees = function(angle) {\n            if (this._angleMode === constants.RADIANS) {\n              return angle * constants.RAD_TO_DEG;\n            }\n            return angle;\n          };\n\n          /**\n           * converts angles from RADIANS into the current angleMode\n           *\n           * @method _fromRadians\n           * @private\n           * @param {Number} angle\n           * @returns {Number}\n           */\n          _main.default.prototype._fromRadians = function(angle) {\n            if (this._angleMode === constants.DEGREES) {\n              return angle * constants.RAD_TO_DEG;\n            }\n            return angle;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, '../core/main': 50 }\n      ],\n      86: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Typography\n           * @submodule Attributes\n           * @for p5\n           * @requires core\n           * @requires constants\n           */ /**\n           * Sets the current alignment for drawing text. Accepts two\n           * arguments: horizAlign (LEFT, CENTER, or RIGHT) and\n           * vertAlign (TOP, BOTTOM, CENTER, or BASELINE).\n           *\n           * The horizAlign parameter is in reference to the x value\n           * of the <a href=\"#/p5/text\">text()</a> function, while the vertAlign parameter is\n           * in reference to the y value.\n           *\n           * So if you write textAlign(LEFT), you are aligning the left\n           * edge of your text to the x value you give in <a href=\"#/p5/text\">text()</a>. If you\n           * write textAlign(RIGHT, TOP), you are aligning the right edge\n           * of your text to the x value and the top of edge of the text\n           * to the y value.\n           *\n           * @method textAlign\n           * @param {Constant} horizAlign horizontal alignment, either LEFT,\n           *                            CENTER, or RIGHT\n           * @param {Constant} [vertAlign] vertical alignment, either TOP,\n           *                            BOTTOM, CENTER, or BASELINE\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * textSize(16);\n           * textAlign(RIGHT);\n           * text('ABCD', 50, 30);\n           * textAlign(CENTER);\n           * text('EFGH', 50, 50);\n           * textAlign(LEFT);\n           * text('IJKL', 50, 70);\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * textSize(16);\n           * strokeWeight(0.5);\n           *\n           * line(0, 12, width, 12);\n           * textAlign(CENTER, TOP);\n           * text('TOP', 0, 12, width);\n           *\n           * line(0, 37, width, 37);\n           * textAlign(CENTER, CENTER);\n           * text('CENTER', 0, 37, width);\n           *\n           * line(0, 62, width, 62);\n           * textAlign(CENTER, BASELINE);\n           * text('BASELINE', 0, 62, width);\n           *\n           * line(0, 87, width, 87);\n           * textAlign(CENTER, BOTTOM);\n           * text('BOTTOM', 0, 87, width);\n           * </code>\n           * </div>\n           *\n           * @alt\n           *Letters ABCD displayed at top right, EFGH at center and IJKL at bottom left.\n           * The names of the four vertical alignments rendered each showing that alignment's placement relative to a horizontal line.\n           *\n           */ /**\n           * @method textAlign\n           * @return {Object}\n           */ _main.default.prototype.textAlign = function(horizAlign, vertAlign) {\n            var _this$_renderer;\n            _main.default._validateParameters('textAlign', arguments);\n            return (_this$_renderer = this._renderer).textAlign.apply(\n              _this$_renderer,\n              arguments\n            );\n          };\n\n          /**\n           * Sets/gets the spacing, in pixels, between lines of text. This\n           * setting will be used in all subsequent calls to the <a href=\"#/p5/text\">text()</a> function.\n           *\n           * @method textLeading\n           * @param {Number} leading the size in pixels for spacing between lines\n           * @chainable\n           *\n           * @example\n           * <div>\n           * <code>\n           * // Text to display. The \"\\n\" is a \"new line\" character\n           * let lines = 'L1\\nL2\\nL3';\n           * textSize(12);\n           *\n           * textLeading(10); // Set leading to 10\n           * text(lines, 10, 25);\n           *\n           * textLeading(20); // Set leading to 20\n           * text(lines, 40, 25);\n           *\n           * textLeading(30); // Set leading to 30\n           * text(lines, 70, 25);\n           * </code>\n           * </div>\n           *\n           * @alt\n           *set L1 L2 & L3 displayed vertically 3 times. spacing increases for each set\n           */\n          /**\n           * @method textLeading\n           * @return {Number}\n           */\n          _main.default.prototype.textLeading = function(theLeading) {\n            var _this$_renderer2;\n            _main.default._validateParameters('textLeading', arguments);\n            return (_this$_renderer2 = this._renderer).textLeading.apply(\n              _this$_renderer2,\n              arguments\n            );\n          };\n\n          /**\n           * Sets/gets the current font size. This size will be used in all subsequent\n           * calls to the <a href=\"#/p5/text\">text()</a> function. Font size is measured in pixels.\n           *\n           * @method textSize\n           * @param {Number} theSize the size of the letters in units of pixels\n           * @chainable\n           *\n           * @example\n           * <div>\n           * <code>\n           * textSize(12);\n           * text('Font Size 12', 10, 30);\n           * textSize(14);\n           * text('Font Size 14', 10, 60);\n           * textSize(16);\n           * text('Font Size 16', 10, 90);\n           * </code>\n           * </div>\n           *\n           * @alt\n           *Font Size 12 displayed small, Font Size 14 medium & Font Size 16 large\n           */\n          /**\n           * @method textSize\n           * @return {Number}\n           */\n          _main.default.prototype.textSize = function(theSize) {\n            var _this$_renderer3;\n            _main.default._validateParameters('textSize', arguments);\n            return (_this$_renderer3 = this._renderer).textSize.apply(\n              _this$_renderer3,\n              arguments\n            );\n          };\n\n          /**\n           * Sets/gets the style of the text for system fonts to NORMAL, ITALIC, BOLD or BOLDITALIC.\n           * Note: this may be is overridden by CSS styling. For non-system fonts\n           * (opentype, truetype, etc.) please load styled fonts instead.\n           *\n           * @method textStyle\n           * @param {Constant} theStyle styling for text, either NORMAL,\n           *                            ITALIC, BOLD or BOLDITALIC\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * strokeWeight(0);\n           * textSize(12);\n           * textStyle(NORMAL);\n           * text('Font Style Normal', 10, 15);\n           * textStyle(ITALIC);\n           * text('Font Style Italic', 10, 40);\n           * textStyle(BOLD);\n           * text('Font Style Bold', 10, 65);\n           * textStyle(BOLDITALIC);\n           * text('Font Style Bold Italic', 10, 90);\n           * </code>\n           * </div>\n           *\n           * @alt\n           *words Font Style Normal displayed normally, Italic in italic, bold in bold and bold italic in bold italics.\n           */\n          /**\n           * @method textStyle\n           * @return {String}\n           */\n          _main.default.prototype.textStyle = function(theStyle) {\n            var _this$_renderer4;\n            _main.default._validateParameters('textStyle', arguments);\n            return (_this$_renderer4 = this._renderer).textStyle.apply(\n              _this$_renderer4,\n              arguments\n            );\n          };\n\n          /**\n           * Calculates and returns the width of any character or text string.\n           *\n           * @method textWidth\n           * @param {String} theText the String of characters to measure\n           * @return {Number}\n           * @example\n           * <div>\n           * <code>\n           * textSize(28);\n           *\n           * let aChar = 'P';\n           * let cWidth = textWidth(aChar);\n           * text(aChar, 0, 40);\n           * line(cWidth, 0, cWidth, 50);\n           *\n           * let aString = 'p5.js';\n           * let sWidth = textWidth(aString);\n           * text(aString, 0, 85);\n           * line(sWidth, 50, sWidth, 100);\n           * </code>\n           * </div>\n           *\n           * @alt\n           *Letter P and p5.js are displayed with vertical lines at end. P is wide\n           *\n           */\n          _main.default.prototype.textWidth = function() {\n            var _this$_renderer5;\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            args[0] += '';\n            _main.default._validateParameters('textWidth', args);\n            if (args[0].length === 0) {\n              return 0;\n            }\n            return (_this$_renderer5 = this._renderer).textWidth.apply(\n              _this$_renderer5,\n              args\n            );\n          };\n\n          /**\n           * Returns the ascent of the current font at its current size. The ascent\n           * represents the distance, in pixels, of the tallest character above\n           * the baseline.\n           * @method textAscent\n           * @return {Number}\n           * @example\n           * <div>\n           * <code>\n           * let base = height * 0.75;\n           * let scalar = 0.8; // Different for each font\n           *\n           * textSize(32); // Set initial text size\n           * let asc = textAscent() * scalar; // Calc ascent\n           * line(0, base - asc, width, base - asc);\n           * text('dp', 0, base); // Draw text on baseline\n           *\n           * textSize(64); // Increase text size\n           * asc = textAscent() * scalar; // Recalc ascent\n           * line(40, base - asc, width, base - asc);\n           * text('dp', 40, base); // Draw text on baseline\n           * </code>\n           * </div>\n           */\n          _main.default.prototype.textAscent = function() {\n            for (\n              var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;\n              _key2 < _len2;\n              _key2++\n            ) {\n              args[_key2] = arguments[_key2];\n            }\n            _main.default._validateParameters('textAscent', args);\n            return this._renderer.textAscent();\n          };\n\n          /**\n           * Returns the descent of the current font at its current size. The descent\n           * represents the distance, in pixels, of the character with the longest\n           * descender below the baseline.\n           * @method textDescent\n           * @return {Number}\n           * @example\n           * <div>\n           * <code>\n           * let base = height * 0.75;\n           * let scalar = 0.8; // Different for each font\n           *\n           * textSize(32); // Set initial text size\n           * let desc = textDescent() * scalar; // Calc ascent\n           * line(0, base + desc, width, base + desc);\n           * text('dp', 0, base); // Draw text on baseline\n           *\n           * textSize(64); // Increase text size\n           * desc = textDescent() * scalar; // Recalc ascent\n           * line(40, base + desc, width, base + desc);\n           * text('dp', 40, base); // Draw text on baseline\n           * </code>\n           * </div>\n           */\n          _main.default.prototype.textDescent = function() {\n            for (\n              var _len3 = arguments.length, args = new Array(_len3), _key3 = 0;\n              _key3 < _len3;\n              _key3++\n            ) {\n              args[_key3] = arguments[_key3];\n            }\n            _main.default._validateParameters('textDescent', args);\n            return this._renderer.textDescent();\n          };\n\n          /**\n           * Helper function to measure ascent and descent.\n           */\n          _main.default.prototype._updateTextMetrics = function() {\n            return this._renderer._updateTextMetrics();\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      87: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          var opentype = _interopRequireWildcard(_dereq_('opentype.js'));\n\n          _dereq_('../core/error_helpers');\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Typography\n           * @submodule Loading & Displaying\n           * @for p5\n           * @requires core\n           */ /**\n           * Loads an opentype font file (.otf, .ttf) from a file or a URL,\n           * and returns a PFont Object. This method is asynchronous,\n           * meaning it may not finish before the next line in your sketch\n           * is executed.\n           * <br><br>\n           * The path to the font should be relative to the HTML file\n           * that links in your sketch. Loading fonts from a URL or other\n           * remote location may be blocked due to your browser's built-in\n           * security.\n           *\n           * @method loadFont\n           * @param  {String}        path       name of the file or url to load\n           * @param  {Function}      [callback] function to be executed after\n           *                                    <a href=\"#/p5/loadFont\">loadFont()</a> completes\n           * @param  {Function}      [onError]  function to be executed if\n           *                                    an error occurs\n           * @return {p5.Font}                  <a href=\"#/p5.Font\">p5.Font</a> object\n           * @example\n           *\n           * <p>Calling loadFont() inside <a href=\"#/p5/preload\">preload()</a> guarantees that the load\n           * operation will have completed before <a href=\"#/p5/setup\">setup()</a> and <a href=\"#/p5/draw\">draw()</a> are called.</p>\n           *\n           * <div><code>\n           * let myFont;\n           * function preload() {\n           *   myFont = loadFont('assets/inconsolata.otf');\n           * }\n           *\n           * function setup() {\n           *   fill('#ED225D');\n           *   textFont(myFont);\n           *   textSize(36);\n           *   text('p5*js', 10, 50);\n           * }\n           * </code></div>\n           *\n           * Outside of <a href=\"#/p5/preload\">preload()</a>, you may supply a callback function to handle the\n           * object:\n           *\n           * <div><code>\n           * function setup() {\n           *   loadFont('assets/inconsolata.otf', drawText);\n           * }\n           *\n           * function drawText(font) {\n           *   fill('#ED225D');\n           *   textFont(font, 36);\n           *   text('p5*js', 10, 50);\n           * }\n           * </code></div>\n           *\n           * <p>You can also use the font filename string (without the file extension) to style other HTML\n           * elements.</p>\n           *\n           * <div><code>\n           * function preload() {\n           *   loadFont('assets/inconsolata.otf');\n           * }\n           *\n           * function setup() {\n           *   let myDiv = createDiv('hello there');\n           *   myDiv.style('font-family', 'Inconsolata');\n           * }\n           * </code></div>\n           *\n           * @alt\n           * p5*js in p5's theme dark pink\n           * p5*js in p5's theme dark pink\n           *\n           */ _main.default.prototype.loadFont = function(path, onSuccess, onError) {\n            _main.default._validateParameters('loadFont', arguments);\n            var p5Font = new _main.default.Font(this);\n\n            var self = this;\n            opentype.load(path, function(err, font) {\n              if (err) {\n                _main.default._friendlyFileLoadError(4, path);\n                if (typeof onError !== 'undefined') {\n                  return onError(err);\n                }\n                console.error(err, path);\n                return;\n              }\n\n              p5Font.font = font;\n\n              if (typeof onSuccess !== 'undefined') {\n                onSuccess(p5Font);\n              }\n\n              self._decrementPreload();\n\n              // check that we have an acceptable font type\n              var validFontTypes = ['ttf', 'otf', 'woff', 'woff2'];\n\n              var fileNoPath = path\n                .split('\\\\')\n                .pop()\n                .split('/')\n                .pop();\n\n              var lastDotIdx = fileNoPath.lastIndexOf('.');\n              var fontFamily;\n              var newStyle;\n              var fileExt = lastDotIdx < 1 ? null : fileNoPath.substr(lastDotIdx + 1);\n\n              // if so, add it to the DOM (name-only) for use with DOM module\n              if (validFontTypes.includes(fileExt)) {\n                fontFamily = fileNoPath.substr(0, lastDotIdx);\n                newStyle = document.createElement('style');\n                newStyle.appendChild(\n                  document.createTextNode(\n                    '\\n@font-face {\\nfont-family: '\n                      .concat(fontFamily, ';\\nsrc: url(')\n                      .concat(path, ');\\n}\\n')\n                  )\n                );\n\n                document.head.appendChild(newStyle);\n              }\n            });\n\n            return p5Font;\n          };\n\n          /**\n           * Draws text to the screen. Displays the information specified in the first\n           * parameter on the screen in the position specified by the additional\n           * parameters. A default font will be used unless a font is set with the\n           * <a href=\"#/p5/textFont\">textFont()</a> function and a default size will be used unless a font is set\n           * with <a href=\"#/p5/textSize\">textSize()</a>. Change the color of the text with the <a href=\"#/p5/fill\">fill()</a> function.\n           * Change the outline of the text with the <a href=\"#/p5/stroke\">stroke()</a> and <a href=\"#/p5/strokeWeight\">strokeWeight()</a>\n           * functions.\n           * <br><br>\n           * The text displays in relation to the <a href=\"#/p5/textAlign\">textAlign()</a> function, which gives the\n           * option to draw to the left, right, and center of the coordinates.\n           * <br><br>\n           * The x2 and y2 parameters define a rectangular area to display within and\n           * may only be used with string data. When these parameters are specified,\n           * they are interpreted based on the current <a href=\"#/p5/rectMode\">rectMode()</a> setting. Text that\n           * does not fit completely within the rectangle specified will not be drawn\n           * to the screen. If x2 and y2 are not specified, the baseline alignment is the\n           * default, which means that the text will be drawn upwards from x and y.\n           * <br><br>\n           * <b>WEBGL</b>: Only opentype/truetype fonts are supported. You must load a font using the\n           * <a href=\"#/p5/loadFont\">loadFont()</a> method (see the example above).\n           * <a href=\"#/p5/stroke\">stroke()</a> currently has no effect in webgl mode.\n           *\n           * @method text\n           * @param {String|Object|Array|Number|Boolean} str the alphanumeric\n           *                                             symbols to be displayed\n           * @param {Number} x   x-coordinate of text\n           * @param {Number} y   y-coordinate of text\n           * @param {Number} [x2]  by default, the width of the text box,\n           *                     see <a href=\"#/p5/rectMode\">rectMode()</a> for more info\n           * @param {Number} [y2]  by default, the height of the text box,\n           *                     see <a href=\"#/p5/rectMode\">rectMode()</a> for more info\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * textSize(32);\n           * text('word', 10, 30);\n           * fill(0, 102, 153);\n           * text('word', 10, 60);\n           * fill(0, 102, 153, 51);\n           * text('word', 10, 90);\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * let s = 'The quick brown fox jumped over the lazy dog.';\n           * fill(50);\n           * text(s, 10, 10, 70, 80); // Text wraps within text box\n           * </code>\n           * </div>\n           *\n           * <div modernizr='webgl'>\n           * <code>\n           * let inconsolata;\n           * function preload() {\n           *   inconsolata = loadFont('assets/inconsolata.otf');\n           * }\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   textFont(inconsolata);\n           *   textSize(width / 3);\n           *   textAlign(CENTER, CENTER);\n           * }\n           * function draw() {\n           *   background(0);\n           *   let time = millis();\n           *   rotateX(time / 1000);\n           *   rotateZ(time / 1234);\n           *   text('p5.js', 0, 0);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           *'word' displayed 3 times going from black, blue to translucent blue\n           * The quick brown fox jumped over the lazy dog.\n           * the text 'p5.js' spinning in 3d\n           *\n           */\n          _main.default.prototype.text = function(str, x, y, maxWidth, maxHeight) {\n            var _this$_renderer;\n            _main.default._validateParameters('text', arguments);\n            return !(this._renderer._doFill || this._renderer._doStroke)\n              ? this\n              : (_this$_renderer = this._renderer).text.apply(_this$_renderer, arguments);\n          };\n\n          /**\n    * Sets the current font that will be drawn with the <a href=\"#/p5/text\">text()</a> function.\n    * <br><br>\n    * <b>WEBGL</b>: Only fonts loaded via <a href=\"#/p5/loadFont\">loadFont()</a> are supported.\n    *\n    * @method textFont\n    * @return {Object} the current font\n    *\n    * @example\n    * <div>\n    * <code>\n    * fill(0);\n    * textSize(12);\n    * textFont('Georgia');\n    * text('Georgia', 12, 30);\n    * textFont('Helvetica');\n    * text('Helvetica', 12, 60);\n    * </code>\n    * </div>\n    * <div>\n    * <code>\n    * let fontRegular, fontItalic, fontBold;\n    * function preload() {\n    *   fontRegular = loadFont('assets/Regular.otf');\n    *   fontItalic = loadFont('assets/Italic.ttf');\n    *   fontBold = loadFont('assets/Bold.ttf');\n    * }\n    * function setup() {\n    *   background(210);\n    *   fill(0)\n       .strokeWeight(0)\n       .textSize(10);\n    *   textFont(fontRegular);\n    *   text('Font Style Normal', 10, 30);\n    *   textFont(fontItalic);\n    *   text('Font Style Italic', 10, 50);\n    *   textFont(fontBold);\n    *   text('Font Style Bold', 10, 70);\n    * }\n    * </code>\n    * </div>\n    *\n    * @alt\n    *words Font Style Normal displayed normally, Italic in italic and bold in bold\n    */\n          /**\n           * @method textFont\n           * @param {Object|String} font a font loaded via <a href=\"#/p5/loadFont\">loadFont()</a>, or a String\n           * representing a <a href=\"https://mzl.la/2dOw8WD\">web safe font</a> (a font\n           * that is generally available across all systems)\n           * @param {Number} [size] the font size to use\n           * @chainable\n           */\n          _main.default.prototype.textFont = function(theFont, theSize) {\n            _main.default._validateParameters('textFont', arguments);\n            if (arguments.length) {\n              if (!theFont) {\n                throw new Error('null font passed to textFont');\n              }\n\n              this._renderer._setProperty('_textFont', theFont);\n\n              if (theSize) {\n                this._renderer._setProperty('_textSize', theSize);\n                this._renderer._setProperty(\n                  '_textLeading',\n                  theSize * constants._DEFAULT_LEADMULT\n                );\n              }\n\n              return this._renderer._applyTextProperties();\n            }\n\n            return this._renderer._textFont;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        {\n          '../core/constants': 43,\n          '../core/error_helpers': 45,\n          '../core/main': 50,\n          'opentype.js': 34\n        }\n      ],\n      88: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n\n          /**\n           * Base class for font handling\n           * @class p5.Font\n           * @constructor\n           * @param {p5} [pInst] pointer to p5 instance\n           */\n          _main.default.Font = function(p) {\n            this.parent = p;\n\n            this.cache = {};\n\n            /**\n             * Underlying opentype font implementation\n             * @property font\n             */\n            this.font = undefined;\n          };\n\n          /**\n           * Returns a tight bounding box for the given text string using this\n           * font (currently only supports single lines)\n           *\n           * @method textBounds\n           * @param  {String} line     a line of text\n           * @param  {Number} x        x-position\n           * @param  {Number} y        y-position\n           * @param  {Number} [fontSize] font size to use (optional) Default is 12.\n           * @param  {Object} [options] opentype options (optional)\n           *                            opentype fonts contains alignment and baseline options.\n           *                            Default is 'LEFT' and 'alphabetic'\n           *\n           *\n           * @return {Object}          a rectangle object with properties: x, y, w, h\n           *\n           * @example\n           * <div>\n           * <code>\n           * let font;\n           * let textString = 'Lorem ipsum dolor sit amet.';\n           * function preload() {\n           *   font = loadFont('./assets/Regular.otf');\n           * }\n           * function setup() {\n           *   background(210);\n           *\n           *   let bbox = font.textBounds(textString, 10, 30, 12);\n           *   fill(255);\n           *   stroke(0);\n           *   rect(bbox.x, bbox.y, bbox.w, bbox.h);\n           *   fill(0);\n           *   noStroke();\n           *\n           *   textFont(font);\n           *   textSize(12);\n           *   text(textString, 10, 30);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           *words Lorem ipsum dol go off canvas and contained by white bounding box\n           *\n           */\n          _main.default.Font.prototype.textBounds = function(str) {\n            var x = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n            var y = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n            var fontSize = arguments.length > 3 ? arguments[3] : undefined;\n            var opts = arguments.length > 4 ? arguments[4] : undefined;\n            // Check cache for existing bounds. Take into consideration the text alignment\n            // settings. Default alignment should match opentype's origin: left-aligned &\n            // alphabetic baseline.\n            var p = (opts && opts.renderer && opts.renderer._pInst) || this.parent;\n\n            var ctx = p._renderer.drawingContext;\n            var alignment = ctx.textAlign || constants.LEFT;\n            var baseline = ctx.textBaseline || constants.BASELINE;\n            var cacheResults = false;\n            var result;\n            var key;\n\n            fontSize = fontSize || p._renderer._textSize;\n\n            // NOTE: cache disabled for now pending further discussion of #3436\n            if (cacheResults) {\n              key = cacheKey('textBounds', str, x, y, fontSize, alignment, baseline);\n              result = this.cache[key];\n            }\n\n            if (!result) {\n              var minX;\n              var minY;\n              var maxX;\n              var maxY;\n              var pos;\n              var xCoords = [];\n              var yCoords = [];\n              var scale = this._scale(fontSize);\n\n              this.font.forEachGlyph(str, x, y, fontSize, opts, function(\n                glyph,\n                gX,\n                gY,\n                gFontSize\n              ) {\n                var gm = glyph.getMetrics();\n                xCoords.push(gX + gm.xMin * scale);\n                xCoords.push(gX + gm.xMax * scale);\n                yCoords.push(gY + -gm.yMin * scale);\n                yCoords.push(gY + -gm.yMax * scale);\n              });\n\n              minX = Math.min.apply(null, xCoords);\n              minY = Math.min.apply(null, yCoords);\n              maxX = Math.max.apply(null, xCoords);\n              maxY = Math.max.apply(null, yCoords);\n\n              result = {\n                x: minX,\n                y: minY,\n                h: maxY - minY,\n                w: maxX - minX,\n                advance: minX - x\n              };\n\n              // Bounds are now calculated, so shift the x & y to match alignment settings\n              pos = this._handleAlignment(\n                p._renderer,\n                str,\n                result.x,\n                result.y,\n                result.w + result.advance\n              );\n\n              result.x = pos.x;\n              result.y = pos.y;\n\n              if (cacheResults) {\n                this.cache[key] = result;\n              }\n            }\n\n            return result;\n          };\n\n          /**\n           * Computes an array of points following the path for specified text\n           *\n           * @method textToPoints\n           * @param  {String} txt     a line of text\n           * @param  {Number} x        x-position\n           * @param  {Number} y        y-position\n           * @param  {Number} fontSize font size to use (optional)\n           * @param  {Object} [options] an (optional) object that can contain:\n           *\n           * <br>sampleFactor - the ratio of path-length to number of samples\n           * (default=.1); higher values yield more points and are therefore\n           * more precise\n           *\n           * <br>simplifyThreshold - if set to a non-zero value, collinear points will be\n           * be removed from the polygon; the value represents the threshold angle to use\n           * when determining whether two edges are collinear\n           *\n           * @return {Array}  an array of points, each with x, y, alpha (the path angle)\n           * @example\n           * <div>\n           * <code>\n           * let font;\n           * function preload() {\n           *   font = loadFont('assets/inconsolata.otf');\n           * }\n           *\n           * let points;\n           * let bounds;\n           * function setup() {\n           *   createCanvas(100, 100);\n           *   stroke(0);\n           *   fill(255, 104, 204);\n           *\n           *   points = font.textToPoints('p5', 0, 0, 10, {\n           *     sampleFactor: 5,\n           *     simplifyThreshold: 0\n           *   });\n           *   bounds = font.textBounds(' p5 ', 0, 0, 10);\n           * }\n           *\n           * function draw() {\n           *   background(255);\n           *   beginShape();\n           *   translate(-bounds.x * width / bounds.w, -bounds.y * height / bounds.h);\n           *   for (let i = 0; i < points.length; i++) {\n           *     let p = points[i];\n           *     vertex(\n           *       p.x * width / bounds.w +\n           *         sin(20 * p.y / bounds.h + millis() / 1000) * width / 30,\n           *       p.y * height / bounds.h\n           *     );\n           *   }\n           *   endShape(CLOSE);\n           * }\n           * </code>\n           * </div>\n           *\n           */\n          _main.default.Font.prototype.textToPoints = function(\n            txt,\n            x,\n            y,\n            fontSize,\n            options\n          ) {\n            var xoff = 0;\n            var result = [];\n            var glyphs = this._getGlyphs(txt);\n\n            function isSpace(i) {\n              return (\n                (glyphs[i].name && glyphs[i].name === 'space') ||\n                (txt.length === glyphs.length && txt[i] === ' ') ||\n                (glyphs[i].index && glyphs[i].index === 3)\n              );\n            }\n\n            fontSize = fontSize || this.parent._renderer._textSize;\n\n            for (var i = 0; i < glyphs.length; i++) {\n              if (!isSpace(i)) {\n                // fix to #1817, #2069\n\n                var gpath = glyphs[i].getPath(x, y, fontSize),\n                  paths = splitPaths(gpath.commands);\n\n                for (var j = 0; j < paths.length; j++) {\n                  var pts = pathToPoints(paths[j], options);\n\n                  for (var k = 0; k < pts.length; k++) {\n                    pts[k].x += xoff;\n                    result.push(pts[k]);\n                  }\n                }\n              }\n\n              xoff += glyphs[i].advanceWidth * this._scale(fontSize);\n            }\n\n            return result;\n          };\n\n          // ----------------------------- End API ------------------------------\n\n          /**\n           * Returns the set of opentype glyphs for the supplied string.\n           *\n           * Note that there is not a strict one-to-one mapping between characters\n           * and glyphs, so the list of returned glyphs can be larger or smaller\n           *  than the length of the given string.\n           *\n           * @private\n           * @param  {String} str the string to be converted\n           * @return {Array}     the opentype glyphs\n           */\n          _main.default.Font.prototype._getGlyphs = function(str) {\n            return this.font.stringToGlyphs(str);\n          };\n\n          /**\n           * Returns an opentype path for the supplied string and position.\n           *\n           * @private\n           * @param  {String} line     a line of text\n           * @param  {Number} x        x-position\n           * @param  {Number} y        y-position\n           * @param  {Object} options opentype options (optional)\n           * @return {Object}     the opentype path\n           */\n          _main.default.Font.prototype._getPath = function(line, x, y, options) {\n            var p = (options && options.renderer && options.renderer._pInst) || this.parent,\n              renderer = p._renderer,\n              pos = this._handleAlignment(renderer, line, x, y);\n\n            return this.font.getPath(line, pos.x, pos.y, renderer._textSize, options);\n          };\n\n          /*\n    * Creates an SVG-formatted path-data string\n    * (See http://www.w3.org/TR/SVG/paths.html#PathData)\n    * from the given opentype path or string/position\n    *\n    * @param  {Object} path    an opentype path, OR the following:\n    *\n    * @param  {String} line     a line of text\n    * @param  {Number} x        x-position\n    * @param  {Number} y        y-position\n    * @param  {Object} options opentype options (optional), set options.decimals\n    * to set the decimal precision of the path-data\n    *\n    * @return {Object}     this p5.Font object\n    */\n          _main.default.Font.prototype._getPathData = function(line, x, y, options) {\n            var decimals = 3;\n\n            // create path from string/position\n            if (typeof line === 'string' && arguments.length > 2) {\n              line = this._getPath(line, x, y, options);\n            } else if (_typeof(x) === 'object') {\n              // handle options specified in 2nd arg\n              options = x;\n            }\n\n            // handle svg arguments\n            if (options && typeof options.decimals === 'number') {\n              decimals = options.decimals;\n            }\n\n            return line.toPathData(decimals);\n          };\n\n          /*\n    * Creates an SVG <path> element, as a string,\n    * from the given opentype path or string/position\n    *\n    * @param  {Object} path    an opentype path, OR the following:\n    *\n    * @param  {String} line     a line of text\n    * @param  {Number} x        x-position\n    * @param  {Number} y        y-position\n    * @param  {Object} options opentype options (optional), set options.decimals\n    * to set the decimal precision of the path-data in the <path> element,\n    *  options.fill to set the fill color for the <path> element,\n    *  options.stroke to set the stroke color for the <path> element,\n    *  options.strokeWidth to set the strokeWidth for the <path> element.\n    *\n    * @return {Object}     this p5.Font object\n    */\n          _main.default.Font.prototype._getSVG = function(line, x, y, options) {\n            var decimals = 3;\n\n            // create path from string/position\n            if (typeof line === 'string' && arguments.length > 2) {\n              line = this._getPath(line, x, y, options);\n            } else if (_typeof(x) === 'object') {\n              // handle options specified in 2nd arg\n              options = x;\n            }\n\n            // handle svg arguments\n            if (options) {\n              if (typeof options.decimals === 'number') {\n                decimals = options.decimals;\n              }\n              if (typeof options.strokeWidth === 'number') {\n                line.strokeWidth = options.strokeWidth;\n              }\n              if (typeof options.fill !== 'undefined') {\n                line.fill = options.fill;\n              }\n              if (typeof options.stroke !== 'undefined') {\n                line.stroke = options.stroke;\n              }\n            }\n\n            return line.toSVG(decimals);\n          };\n\n          /*\n    * Renders an opentype path or string/position\n    * to the current graphics context\n    *\n    * @param  {Object} path    an opentype path, OR the following:\n    *\n    * @param  {String} line     a line of text\n    * @param  {Number} x        x-position\n    * @param  {Number} y        y-position\n    * @param  {Object} options opentype options (optional)\n    *\n    * @return {p5.Font}     this p5.Font object\n    */\n          _main.default.Font.prototype._renderPath = function(line, x, y, options) {\n            var pdata;\n            var pg = (options && options.renderer) || this.parent._renderer;\n            var ctx = pg.drawingContext;\n\n            if (_typeof(line) === 'object' && line.commands) {\n              pdata = line.commands;\n            } else {\n              //pos = handleAlignment(p, ctx, line, x, y);\n              pdata = this._getPath(line, x, y, options).commands;\n            }\n\n            ctx.beginPath();\n            var _iteratorNormalCompletion = true;\n            var _didIteratorError = false;\n            var _iteratorError = undefined;\n            try {\n              for (\n                var _iterator = pdata[Symbol.iterator](), _step;\n                !(_iteratorNormalCompletion = (_step = _iterator.next()).done);\n                _iteratorNormalCompletion = true\n              ) {\n                var cmd = _step.value;\n                if (cmd.type === 'M') {\n                  ctx.moveTo(cmd.x, cmd.y);\n                } else if (cmd.type === 'L') {\n                  ctx.lineTo(cmd.x, cmd.y);\n                } else if (cmd.type === 'C') {\n                  ctx.bezierCurveTo(cmd.x1, cmd.y1, cmd.x2, cmd.y2, cmd.x, cmd.y);\n                } else if (cmd.type === 'Q') {\n                  ctx.quadraticCurveTo(cmd.x1, cmd.y1, cmd.x, cmd.y);\n                } else if (cmd.type === 'Z') {\n                  ctx.closePath();\n                }\n              }\n\n              // only draw stroke if manually set by user\n            } catch (err) {\n              _didIteratorError = true;\n              _iteratorError = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion && _iterator.return != null) {\n                  _iterator.return();\n                }\n              } finally {\n                if (_didIteratorError) {\n                  throw _iteratorError;\n                }\n              }\n            }\n            if (pg._doStroke && pg._strokeSet) {\n              ctx.stroke();\n            }\n\n            if (pg._doFill) {\n              // if fill hasn't been set by user, use default-text-fill\n              if (!pg._fillSet) {\n                pg._setFill(constants._DEFAULT_TEXT_FILL);\n              }\n              ctx.fill();\n            }\n\n            return this;\n          };\n\n          _main.default.Font.prototype._textWidth = function(str, fontSize) {\n            return this.font.getAdvanceWidth(str, fontSize);\n          };\n\n          _main.default.Font.prototype._textAscent = function(fontSize) {\n            return this.font.ascender * this._scale(fontSize);\n          };\n\n          _main.default.Font.prototype._textDescent = function(fontSize) {\n            return -this.font.descender * this._scale(fontSize);\n          };\n\n          _main.default.Font.prototype._scale = function(fontSize) {\n            return 1 / this.font.unitsPerEm * (fontSize || this.parent._renderer._textSize);\n          };\n\n          _main.default.Font.prototype._handleAlignment = function(\n            renderer,\n            line,\n            x,\n            y,\n            textWidth\n          ) {\n            var fontSize = renderer._textSize;\n\n            if (typeof textWidth === 'undefined') {\n              textWidth = this._textWidth(line, fontSize);\n            }\n\n            switch (renderer._textAlign) {\n              case constants.CENTER:\n                x -= textWidth / 2;\n                break;\n              case constants.RIGHT:\n                x -= textWidth;\n                break;\n            }\n\n            switch (renderer._textBaseline) {\n              case constants.TOP:\n                y += this._textAscent(fontSize);\n                break;\n              case constants.CENTER:\n                y += this._textAscent(fontSize) / 2;\n                break;\n              case constants.BOTTOM:\n                y -= this._textDescent(fontSize);\n                break;\n            }\n\n            return { x: x, y: y };\n          };\n\n          // path-utils\n\n          function pathToPoints(cmds, options) {\n            var opts = parseOpts(options, {\n              sampleFactor: 0.1,\n              simplifyThreshold: 0\n            });\n\n            var // total-length\n              len = pointAtLength(cmds, 0, 1),\n              t = len / (len * opts.sampleFactor),\n              pts = [];\n\n            for (var i = 0; i < len; i += t) {\n              pts.push(pointAtLength(cmds, i));\n            }\n\n            if (opts.simplifyThreshold) {\n              simplify(pts, opts.simplifyThreshold);\n            }\n\n            return pts;\n          }\n\n          function simplify(pts) {\n            var angle =\n              arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n            var num = 0;\n            for (var i = pts.length - 1; pts.length > 3 && i >= 0; --i) {\n              if (collinear(at(pts, i - 1), at(pts, i), at(pts, i + 1), angle)) {\n                // Remove the middle point\n                pts.splice(i % pts.length, 1);\n                num++;\n              }\n            }\n            return num;\n          }\n\n          function splitPaths(cmds) {\n            var paths = [];\n            var current;\n            for (var i = 0; i < cmds.length; i++) {\n              if (cmds[i].type === 'M') {\n                if (current) {\n                  paths.push(current);\n                }\n                current = [];\n              }\n              current.push(cmdToArr(cmds[i]));\n            }\n            paths.push(current);\n\n            return paths;\n          }\n\n          function cmdToArr(cmd) {\n            var arr = [cmd.type];\n            if (cmd.type === 'M' || cmd.type === 'L') {\n              // moveto or lineto\n              arr.push(cmd.x, cmd.y);\n            } else if (cmd.type === 'C') {\n              arr.push(cmd.x1, cmd.y1, cmd.x2, cmd.y2, cmd.x, cmd.y);\n            } else if (cmd.type === 'Q') {\n              arr.push(cmd.x1, cmd.y1, cmd.x, cmd.y);\n            }\n            // else if (cmd.type === 'Z') { /* no-op */ }\n            return arr;\n          }\n\n          function parseOpts(options, defaults) {\n            if (_typeof(options) !== 'object') {\n              options = defaults;\n            } else {\n              for (var key in defaults) {\n                if (typeof options[key] === 'undefined') {\n                  options[key] = defaults[key];\n                }\n              }\n            }\n            return options;\n          }\n\n          //////////////////////// Helpers ////////////////////////////\n\n          function at(v, i) {\n            var s = v.length;\n            return v[i < 0 ? i % s + s : i % s];\n          }\n\n          function collinear(a, b, c, thresholdAngle) {\n            if (!thresholdAngle) {\n              return areaTriangle(a, b, c) === 0;\n            }\n\n            if (typeof collinear.tmpPoint1 === 'undefined') {\n              collinear.tmpPoint1 = [];\n              collinear.tmpPoint2 = [];\n            }\n\n            var ab = collinear.tmpPoint1,\n              bc = collinear.tmpPoint2;\n            ab.x = b.x - a.x;\n            ab.y = b.y - a.y;\n            bc.x = c.x - b.x;\n            bc.y = c.y - b.y;\n\n            var dot = ab.x * bc.x + ab.y * bc.y,\n              magA = Math.sqrt(ab.x * ab.x + ab.y * ab.y),\n              magB = Math.sqrt(bc.x * bc.x + bc.y * bc.y),\n              angle = Math.acos(dot / (magA * magB));\n\n            return angle < thresholdAngle;\n          }\n\n          function areaTriangle(a, b, c) {\n            return (b[0] - a[0]) * (c[1] - a[1]) - (c[0] - a[0]) * (b[1] - a[1]);\n          }\n\n          // Portions of below code copyright 2008 Dmitry Baranovskiy (via MIT license)\n\n          function findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {\n            var t1 = 1 - t;\n            var t13 = Math.pow(t1, 3);\n            var t12 = Math.pow(t1, 2);\n            var t2 = t * t;\n            var t3 = t2 * t;\n            var x = t13 * p1x + t12 * 3 * t * c1x + t1 * 3 * t * t * c2x + t3 * p2x;\n            var y = t13 * p1y + t12 * 3 * t * c1y + t1 * 3 * t * t * c2y + t3 * p2y;\n            var mx = p1x + 2 * t * (c1x - p1x) + t2 * (c2x - 2 * c1x + p1x);\n            var my = p1y + 2 * t * (c1y - p1y) + t2 * (c2y - 2 * c1y + p1y);\n            var nx = c1x + 2 * t * (c2x - c1x) + t2 * (p2x - 2 * c2x + c1x);\n            var ny = c1y + 2 * t * (c2y - c1y) + t2 * (p2y - 2 * c2y + c1y);\n            var ax = t1 * p1x + t * c1x;\n            var ay = t1 * p1y + t * c1y;\n            var cx = t1 * c2x + t * p2x;\n            var cy = t1 * c2y + t * p2y;\n            var alpha = 90 - Math.atan2(mx - nx, my - ny) * 180 / Math.PI;\n\n            if (mx > nx || my < ny) {\n              alpha += 180;\n            }\n\n            return {\n              x: x,\n              y: y,\n              m: { x: mx, y: my },\n              n: { x: nx, y: ny },\n              start: { x: ax, y: ay },\n              end: { x: cx, y: cy },\n              alpha: alpha\n            };\n          }\n\n          function getPointAtSegmentLength(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length) {\n            return length == null\n              ? bezlen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y)\n              : findDotsAtSegment(\n                  p1x,\n                  p1y,\n                  c1x,\n                  c1y,\n                  c2x,\n                  c2y,\n                  p2x,\n                  p2y,\n                  getTatLen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length)\n                );\n          }\n\n          function pointAtLength(path, length, istotal) {\n            path = path2curve(path);\n            var x;\n            var y;\n            var p;\n            var l;\n            var sp = '';\n            var subpaths = {};\n            var point;\n            var len = 0;\n            for (var i = 0, ii = path.length; i < ii; i++) {\n              p = path[i];\n              if (p[0] === 'M') {\n                x = +p[1];\n                y = +p[2];\n              } else {\n                l = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6]);\n                if (len + l > length) {\n                  if (!istotal) {\n                    point = getPointAtSegmentLength(\n                      x,\n                      y,\n                      p[1],\n                      p[2],\n                      p[3],\n                      p[4],\n                      p[5],\n                      p[6],\n                      length - len\n                    );\n\n                    return { x: point.x, y: point.y, alpha: point.alpha };\n                  }\n                }\n                len += l;\n                x = +p[5];\n                y = +p[6];\n              }\n              sp += p.shift() + p;\n            }\n            subpaths.end = sp;\n\n            point = istotal\n              ? len\n              : findDotsAtSegment(x, y, p[0], p[1], p[2], p[3], p[4], p[5], 1);\n\n            if (point.alpha) {\n              point = { x: point.x, y: point.y, alpha: point.alpha };\n            }\n\n            return point;\n          }\n\n          function pathToAbsolute(pathArray) {\n            var res = [],\n              x = 0,\n              y = 0,\n              mx = 0,\n              my = 0,\n              start = 0;\n            if (!pathArray) {\n              // console.warn(\"Unexpected state: undefined pathArray\"); // shouldn't happen\n              return res;\n            }\n            if (pathArray[0][0] === 'M') {\n              x = +pathArray[0][1];\n              y = +pathArray[0][2];\n              mx = x;\n              my = y;\n              start++;\n              res[0] = ['M', x, y];\n            }\n\n            var dots;\n\n            var crz =\n              pathArray.length === 3 &&\n              pathArray[0][0] === 'M' &&\n              pathArray[1][0].toUpperCase() === 'R' &&\n              pathArray[2][0].toUpperCase() === 'Z';\n\n            for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) {\n              res.push((r = []));\n              pa = pathArray[i];\n              if (pa[0] !== String.prototype.toUpperCase.call(pa[0])) {\n                r[0] = String.prototype.toUpperCase.call(pa[0]);\n                switch (r[0]) {\n                  case 'A':\n                    r[1] = pa[1];\n                    r[2] = pa[2];\n                    r[3] = pa[3];\n                    r[4] = pa[4];\n                    r[5] = pa[5];\n                    r[6] = +(pa[6] + x);\n                    r[7] = +(pa[7] + y);\n                    break;\n                  case 'V':\n                    r[1] = +pa[1] + y;\n                    break;\n                  case 'H':\n                    r[1] = +pa[1] + x;\n                    break;\n                  case 'R':\n                    dots = [x, y].concat(pa.slice(1));\n                    for (var j = 2, jj = dots.length; j < jj; j++) {\n                      dots[j] = +dots[j] + x;\n                      dots[++j] = +dots[j] + y;\n                    }\n                    res.pop();\n                    res = res.concat(catmullRom2bezier(dots, crz));\n                    break;\n                  case 'M':\n                    mx = +pa[1] + x;\n                    my = +pa[2] + y;\n                    break;\n                  default:\n                    for (var _j = 1, _jj = pa.length; _j < _jj; _j++) {\n                      r[_j] = +pa[_j] + (_j % 2 ? x : y);\n                    }\n                }\n              } else if (pa[0] === 'R') {\n                dots = [x, y].concat(pa.slice(1));\n                res.pop();\n                res = res.concat(catmullRom2bezier(dots, crz));\n                r = ['R'].concat(pa.slice(-2));\n              } else {\n                for (var k = 0, kk = pa.length; k < kk; k++) {\n                  r[k] = pa[k];\n                }\n              }\n              switch (r[0]) {\n                case 'Z':\n                  x = mx;\n                  y = my;\n                  break;\n                case 'H':\n                  x = r[1];\n                  break;\n                case 'V':\n                  y = r[1];\n                  break;\n                case 'M':\n                  mx = r[r.length - 2];\n                  my = r[r.length - 1];\n                  break;\n                default:\n                  x = r[r.length - 2];\n                  y = r[r.length - 1];\n              }\n            }\n            return res;\n          }\n\n          function path2curve(path, path2) {\n            var p = pathToAbsolute(path),\n              p2 = path2 && pathToAbsolute(path2);\n            var attrs = { x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null };\n            var attrs2 = { x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null };\n            var pcoms1 = []; // path commands of original path p\n            var pcoms2 = []; // path commands of original path p2\n            var ii;\n\n            var processPath = function processPath(path, d, pcom) {\n                var nx;\n                var ny;\n                var tq = { T: 1, Q: 1 };\n                if (!path) {\n                  return ['C', d.x, d.y, d.x, d.y, d.x, d.y];\n                }\n                if (!(path[0] in tq)) {\n                  d.qx = d.qy = null;\n                }\n                switch (path[0]) {\n                  case 'M':\n                    d.X = path[1];\n                    d.Y = path[2];\n                    break;\n                  case 'A':\n                    path = ['C'].concat(a2c.apply(0, [d.x, d.y].concat(path.slice(1))));\n                    break;\n                  case 'S':\n                    if (pcom === 'C' || pcom === 'S') {\n                      nx = d.x * 2 - d.bx;\n                      ny = d.y * 2 - d.by;\n                    } else {\n                      nx = d.x;\n                      ny = d.y;\n                    }\n                    path = ['C', nx, ny].concat(path.slice(1));\n                    break;\n                  case 'T':\n                    if (pcom === 'Q' || pcom === 'T') {\n                      d.qx = d.x * 2 - d.qx;\n                      d.qy = d.y * 2 - d.qy;\n                    } else {\n                      d.qx = d.x;\n                      d.qy = d.y;\n                    }\n                    path = ['C'].concat(q2c(d.x, d.y, d.qx, d.qy, path[1], path[2]));\n                    break;\n                  case 'Q':\n                    d.qx = path[1];\n                    d.qy = path[2];\n                    path = ['C'].concat(q2c(d.x, d.y, path[1], path[2], path[3], path[4]));\n\n                    break;\n                  case 'L':\n                    path = ['C'].concat(l2c(d.x, d.y, path[1], path[2]));\n                    break;\n                  case 'H':\n                    path = ['C'].concat(l2c(d.x, d.y, path[1], d.y));\n                    break;\n                  case 'V':\n                    path = ['C'].concat(l2c(d.x, d.y, d.x, path[1]));\n                    break;\n                  case 'Z':\n                    path = ['C'].concat(l2c(d.x, d.y, d.X, d.Y));\n                    break;\n                }\n\n                return path;\n              },\n              fixArc = function fixArc(pp, i) {\n                if (pp[i].length > 7) {\n                  pp[i].shift();\n                  var pi = pp[i];\n                  while (pi.length) {\n                    pcoms1[i] = 'A';\n                    if (p2) {\n                      pcoms2[i] = 'A';\n                    }\n                    pp.splice(i++, 0, ['C'].concat(pi.splice(0, 6)));\n                  }\n                  pp.splice(i, 1);\n                  ii = Math.max(p.length, (p2 && p2.length) || 0);\n                }\n              },\n              fixM = function fixM(path1, path2, a1, a2, i) {\n                if (path1 && path2 && path1[i][0] === 'M' && path2[i][0] !== 'M') {\n                  path2.splice(i, 0, ['M', a2.x, a2.y]);\n                  a1.bx = 0;\n                  a1.by = 0;\n                  a1.x = path1[i][1];\n                  a1.y = path1[i][2];\n                  ii = Math.max(p.length, (p2 && p2.length) || 0);\n                }\n              };\n\n            var pfirst = ''; // temporary holder for original path command\n            var pcom = ''; // holder for previous path command of original path\n\n            ii = Math.max(p.length, (p2 && p2.length) || 0);\n            for (var i = 0; i < ii; i++) {\n              if (p[i]) {\n                pfirst = p[i][0];\n              } // save current path command\n\n              if (pfirst !== 'C') {\n                pcoms1[i] = pfirst; // Save current path command\n                if (i) {\n                  pcom = pcoms1[i - 1];\n                } // Get previous path command pcom\n              }\n              p[i] = processPath(p[i], attrs, pcom);\n\n              if (pcoms1[i] !== 'A' && pfirst === 'C') {\n                pcoms1[i] = 'C';\n              }\n\n              fixArc(p, i); // fixArc adds also the right amount of A:s to pcoms1\n\n              if (p2) {\n                // the same procedures is done to p2\n                if (p2[i]) {\n                  pfirst = p2[i][0];\n                }\n                if (pfirst !== 'C') {\n                  pcoms2[i] = pfirst;\n                  if (i) {\n                    pcom = pcoms2[i - 1];\n                  }\n                }\n                p2[i] = processPath(p2[i], attrs2, pcom);\n\n                if (pcoms2[i] !== 'A' && pfirst === 'C') {\n                  pcoms2[i] = 'C';\n                }\n\n                fixArc(p2, i);\n              }\n              fixM(p, p2, attrs, attrs2, i);\n              fixM(p2, p, attrs2, attrs, i);\n              var seg = p[i],\n                seg2 = p2 && p2[i],\n                seglen = seg.length,\n                seg2len = p2 && seg2.length;\n              attrs.x = seg[seglen - 2];\n              attrs.y = seg[seglen - 1];\n              attrs.bx = parseFloat(seg[seglen - 4]) || attrs.x;\n              attrs.by = parseFloat(seg[seglen - 3]) || attrs.y;\n              attrs2.bx = p2 && (parseFloat(seg2[seg2len - 4]) || attrs2.x);\n              attrs2.by = p2 && (parseFloat(seg2[seg2len - 3]) || attrs2.y);\n              attrs2.x = p2 && seg2[seg2len - 2];\n              attrs2.y = p2 && seg2[seg2len - 1];\n            }\n\n            return p2 ? [p, p2] : p;\n          }\n\n          function a2c(x1, y1, rx, ry, angle, lac, sweep_flag, x2, y2, recursive) {\n            // for more information of where this Math came from visit:\n            // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes\n            var PI = Math.PI;\n\n            var _120 = PI * 120 / 180;\n            var f1;\n            var f2;\n            var cx;\n            var cy;\n            var rad = PI / 180 * (+angle || 0);\n            var res = [];\n            var xy;\n\n            var rotate = function rotate(x, y, rad) {\n              var X = x * Math.cos(rad) - y * Math.sin(rad),\n                Y = x * Math.sin(rad) + y * Math.cos(rad);\n              return { x: X, y: Y };\n            };\n\n            if (!recursive) {\n              xy = rotate(x1, y1, -rad);\n              x1 = xy.x;\n              y1 = xy.y;\n              xy = rotate(x2, y2, -rad);\n              x2 = xy.x;\n              y2 = xy.y;\n              var x = (x1 - x2) / 2;\n              var y = (y1 - y2) / 2;\n              var h = x * x / (rx * rx) + y * y / (ry * ry);\n              if (h > 1) {\n                h = Math.sqrt(h);\n                rx = h * rx;\n                ry = h * ry;\n              }\n              var rx2 = rx * rx,\n                ry2 = ry * ry;\n              var k =\n                (lac === sweep_flag ? -1 : 1) *\n                Math.sqrt(\n                  Math.abs(\n                    (rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x)\n                  )\n                );\n\n              cx = k * rx * y / ry + (x1 + x2) / 2;\n              cy = k * -ry * x / rx + (y1 + y2) / 2;\n              f1 = Math.asin(((y1 - cy) / ry).toFixed(9));\n              f2 = Math.asin(((y2 - cy) / ry).toFixed(9));\n\n              f1 = x1 < cx ? PI - f1 : f1;\n              f2 = x2 < cx ? PI - f2 : f2;\n\n              if (f1 < 0) {\n                f1 = PI * 2 + f1;\n              }\n              if (f2 < 0) {\n                f2 = PI * 2 + f2;\n              }\n\n              if (sweep_flag && f1 > f2) {\n                f1 = f1 - PI * 2;\n              }\n              if (!sweep_flag && f2 > f1) {\n                f2 = f2 - PI * 2;\n              }\n            } else {\n              f1 = recursive[0];\n              f2 = recursive[1];\n              cx = recursive[2];\n              cy = recursive[3];\n            }\n            var df = f2 - f1;\n            if (Math.abs(df) > _120) {\n              var f2old = f2,\n                x2old = x2,\n                y2old = y2;\n              f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1);\n              x2 = cx + rx * Math.cos(f2);\n              y2 = cy + ry * Math.sin(f2);\n              res = a2c(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [\n                f2,\n                f2old,\n                cx,\n                cy\n              ]);\n            }\n            df = f2 - f1;\n            var c1 = Math.cos(f1),\n              s1 = Math.sin(f1),\n              c2 = Math.cos(f2),\n              s2 = Math.sin(f2),\n              t = Math.tan(df / 4),\n              hx = 4 / 3 * rx * t,\n              hy = 4 / 3 * ry * t,\n              m1 = [x1, y1],\n              m2 = [x1 + hx * s1, y1 - hy * c1],\n              m3 = [x2 + hx * s2, y2 - hy * c2],\n              m4 = [x2, y2];\n            m2[0] = 2 * m1[0] - m2[0];\n            m2[1] = 2 * m1[1] - m2[1];\n            if (recursive) {\n              return [m2, m3, m4].concat(res);\n            } else {\n              res = [m2, m3, m4]\n                .concat(res)\n                .join()\n                .split(',');\n              var newres = [];\n              for (var i = 0, ii = res.length; i < ii; i++) {\n                newres[i] =\n                  i % 2\n                    ? rotate(res[i - 1], res[i], rad).y\n                    : rotate(res[i], res[i + 1], rad).x;\n              }\n              return newres;\n            }\n          }\n\n          // http://schepers.cc/getting-to-the-point\n          function catmullRom2bezier(crp, z) {\n            var d = [];\n            for (var i = 0, iLen = crp.length; iLen - 2 * !z > i; i += 2) {\n              var p = [\n                {\n                  x: +crp[i - 2],\n                  y: +crp[i - 1]\n                },\n\n                {\n                  x: +crp[i],\n                  y: +crp[i + 1]\n                },\n\n                {\n                  x: +crp[i + 2],\n                  y: +crp[i + 3]\n                },\n\n                {\n                  x: +crp[i + 4],\n                  y: +crp[i + 5]\n                }\n              ];\n\n              if (z) {\n                if (!i) {\n                  p[0] = {\n                    x: +crp[iLen - 2],\n                    y: +crp[iLen - 1]\n                  };\n                } else if (iLen - 4 === i) {\n                  p[3] = {\n                    x: +crp[0],\n                    y: +crp[1]\n                  };\n                } else if (iLen - 2 === i) {\n                  p[2] = {\n                    x: +crp[0],\n                    y: +crp[1]\n                  };\n\n                  p[3] = {\n                    x: +crp[2],\n                    y: +crp[3]\n                  };\n                }\n              } else {\n                if (iLen - 4 === i) {\n                  p[3] = p[2];\n                } else if (!i) {\n                  p[0] = {\n                    x: +crp[i],\n                    y: +crp[i + 1]\n                  };\n                }\n              }\n              d.push([\n                'C',\n                (-p[0].x + 6 * p[1].x + p[2].x) / 6,\n                (-p[0].y + 6 * p[1].y + p[2].y) / 6,\n                (p[1].x + 6 * p[2].x - p[3].x) / 6,\n                (p[1].y + 6 * p[2].y - p[3].y) / 6,\n                p[2].x,\n                p[2].y\n              ]);\n            }\n\n            return d;\n          }\n\n          function l2c(x1, y1, x2, y2) {\n            return [x1, y1, x2, y2, x2, y2];\n          }\n\n          function q2c(x1, y1, ax, ay, x2, y2) {\n            var _13 = 1 / 3,\n              _23 = 2 / 3;\n            return [\n              _13 * x1 + _23 * ax,\n              _13 * y1 + _23 * ay,\n              _13 * x2 + _23 * ax,\n              _13 * y2 + _23 * ay,\n              x2,\n              y2\n            ];\n          }\n\n          function bezlen(x1, y1, x2, y2, x3, y3, x4, y4, z) {\n            if (z == null) {\n              z = 1;\n            }\n            z = z > 1 ? 1 : z < 0 ? 0 : z;\n            var z2 = z / 2;\n            var n = 12;\n            var Tvalues = [\n              -0.1252,\n              0.1252,\n              -0.3678,\n              0.3678,\n              -0.5873,\n              0.5873,\n              -0.7699,\n              0.7699,\n              -0.9041,\n              0.9041,\n              -0.9816,\n              0.9816\n            ];\n\n            var sum = 0;\n            var Cvalues = [\n              0.2491,\n              0.2491,\n              0.2335,\n              0.2335,\n              0.2032,\n              0.2032,\n              0.1601,\n              0.1601,\n              0.1069,\n              0.1069,\n              0.0472,\n              0.0472\n            ];\n\n            for (var i = 0; i < n; i++) {\n              var ct = z2 * Tvalues[i] + z2,\n                xbase = base3(ct, x1, x2, x3, x4),\n                ybase = base3(ct, y1, y2, y3, y4),\n                comb = xbase * xbase + ybase * ybase;\n              sum += Cvalues[i] * Math.sqrt(comb);\n            }\n            return z2 * sum;\n          }\n\n          function getTatLen(x1, y1, x2, y2, x3, y3, x4, y4, ll) {\n            if (ll < 0 || bezlen(x1, y1, x2, y2, x3, y3, x4, y4) < ll) {\n              return;\n            }\n            var t = 1;\n            var step = t / 2;\n            var t2 = t - step;\n            var l;\n            var e = 0.01;\n            l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2);\n            while (Math.abs(l - ll) > e) {\n              step /= 2;\n              t2 += (l < ll ? 1 : -1) * step;\n              l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2);\n            }\n            return t2;\n          }\n\n          function base3(t, p1, p2, p3, p4) {\n            var t1 = -3 * p1 + 9 * p2 - 9 * p3 + 3 * p4,\n              t2 = t * t1 + 6 * p1 - 12 * p2 + 6 * p3;\n            return t * t2 - 3 * p1 + 3 * p2;\n          }\n\n          function cacheKey() {\n            var hash = '';\n            for (var i = arguments.length - 1; i >= 0; --i) {\n              hash += '\\uFF1F'.concat(\n                i < 0 || arguments.length <= i ? undefined : arguments[i]\n              );\n            }\n            return hash;\n          }\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, '../core/main': 50 }\n      ],\n      89: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Data\n           * @submodule Array Functions\n           * @for p5\n           * @requires core\n           */ /**\n           * Adds a value to the end of an array. Extends the length of\n           * the array by one. Maps to Array.push().\n           *\n           * @method append\n           * @deprecated Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push\">array.push(value)</a> instead.\n           * @param {Array} array Array to append\n           * @param {any} value to be added to the Array\n           * @return {Array} the array that was appended to\n           * @example\n           * <div class='norender'><code>\n           * function setup() {\n           *   let myArray = ['Mango', 'Apple', 'Papaya'];\n           *   print(myArray); // ['Mango', 'Apple', 'Papaya']\n           *\n           *   append(myArray, 'Peach');\n           *   print(myArray); // ['Mango', 'Apple', 'Papaya', 'Peach']\n           * }\n           * </code></div>\n           */ _main.default.prototype.append = function(array, value) {\n            array.push(value);\n            return array;\n          };\n\n          /**\n           * Copies an array (or part of an array) to another array. The src array is\n           * copied to the dst array, beginning at the position specified by\n           * srcPosition and into the position specified by dstPosition. The number of\n           * elements to copy is determined by length. Note that copying values\n           * overwrites existing values in the destination array. To append values\n           * instead of overwriting them, use <a href=\"#/p5/concat\">concat()</a>.\n           * <br><br>\n           * The simplified version with only two arguments, arrayCopy(src, dst),\n           * copies an entire array to another of the same size. It is equivalent to\n           * arrayCopy(src, 0, dst, 0, src.length).\n           * <br><br>\n           * Using this function is far more efficient for copying array data than\n           * iterating through a for() loop and copying each element individually.\n           *\n           * @method arrayCopy\n           * @deprecated\n           * @param {Array}  src           the source Array\n           * @param {Integer} srcPosition  starting position in the source Array\n           * @param {Array}  dst           the destination Array\n           * @param {Integer} dstPosition   starting position in the destination Array\n           * @param {Integer} length        number of Array elements to be copied\n           *\n           * @example\n           * <div class='norender'><code>\n           * let src = ['A', 'B', 'C'];\n           * let dst = [1, 2, 3];\n           * let srcPosition = 1;\n           * let dstPosition = 0;\n           * let length = 2;\n           *\n           * print(src); // ['A', 'B', 'C']\n           * print(dst); // [ 1 ,  2 ,  3 ]\n           *\n           * arrayCopy(src, srcPosition, dst, dstPosition, length);\n           * print(dst); // ['B', 'C', 3]\n           * </code></div>\n           */\n          /**\n           * @method arrayCopy\n           * @deprecated Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/copyWithin\">arr1.copyWithin(arr2)</a> instead.\n           * @param {Array}  src\n           * @param {Array}  dst\n           * @param {Integer} [length]\n           */\n          _main.default.prototype.arrayCopy = function(\n            src,\n            srcPosition,\n            dst,\n            dstPosition,\n            length\n          ) {\n            // the index to begin splicing from dst array\n            var start;\n            var end;\n\n            if (typeof length !== 'undefined') {\n              end = Math.min(length, src.length);\n              start = dstPosition;\n              src = src.slice(srcPosition, end + srcPosition);\n            } else {\n              if (typeof dst !== 'undefined') {\n                // src, dst, length\n                // rename  so we don't get confused\n                end = dst;\n                end = Math.min(end, src.length);\n              } else {\n                // src, dst\n                end = src.length;\n              }\n\n              start = 0;\n              // rename  so we don't get confused\n              dst = srcPosition;\n              src = src.slice(0, end);\n            }\n\n            // Since we are not returning the array and JavaScript is pass by reference\n            // we must modify the actual values of the array\n            // instead of reassigning arrays\n            Array.prototype.splice.apply(dst, [start, end].concat(src));\n          };\n\n          /**\n           * Concatenates two arrays, maps to Array.concat(). Does not modify the\n           * input arrays.\n           *\n           * @method concat\n           * @deprecated Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat\">arr1.concat(arr2)</a> instead.\n           * @param {Array} a first Array to concatenate\n           * @param {Array} b second Array to concatenate\n           * @return {Array} concatenated array\n           *\n           * @example\n           * <div class = 'norender'><code>\n           * function setup() {\n           *   let arr1 = ['A', 'B', 'C'];\n           *   let arr2 = [1, 2, 3];\n           *\n           *   print(arr1); // ['A','B','C']\n           *   print(arr2); // [1,2,3]\n           *\n           *   let arr3 = concat(arr1, arr2);\n           *\n           *   print(arr1); // ['A','B','C']\n           *   print(arr2); // [1, 2, 3]\n           *   print(arr3); // ['A','B','C', 1, 2, 3]\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.concat = function(list0, list1) {\n            return list0.concat(list1);\n          };\n\n          /**\n           * Reverses the order of an array, maps to Array.reverse()\n           *\n           * @method reverse\n           * @deprecated Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse\">array.reverse()</a> instead.\n           * @param {Array} list Array to reverse\n           * @return {Array} the reversed list\n           * @example\n           * <div class='norender'><code>\n           * function setup() {\n           *   let myArray = ['A', 'B', 'C'];\n           *   print(myArray); // ['A','B','C']\n           *\n           *   reverse(myArray);\n           *   print(myArray); // ['C','B','A']\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.reverse = function(list) {\n            return list.reverse();\n          };\n\n          /**\n           * Decreases an array by one element and returns the shortened array,\n           * maps to Array.pop().\n           *\n           * @method shorten\n           * @deprecated Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop\">array.pop()</a> instead.\n           * @param  {Array} list Array to shorten\n           * @return {Array} shortened Array\n           * @example\n           * <div class = 'norender'><code>\n           * function setup() {\n           *   let myArray = ['A', 'B', 'C'];\n           *   print(myArray); // ['A', 'B', 'C']\n           *   let newArray = shorten(myArray);\n           *   print(myArray); // ['A','B','C']\n           *   print(newArray); // ['A','B']\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.shorten = function(list) {\n            list.pop();\n            return list;\n          };\n\n          /**\n           * Randomizes the order of the elements of an array. Implements\n           * <a href='http://Bost.Ocks.org/mike/shuffle/' target=_blank>\n           * Fisher-Yates Shuffle Algorithm</a>.\n           *\n           * @method shuffle\n           * @param  {Array}   array  Array to shuffle\n           * @param  {Boolean} [bool] modify passed array\n           * @return {Array}   shuffled Array\n           * @example\n           * <div><code>\n           * function setup() {\n           *   let regularArr = ['ABC', 'def', createVector(), TAU, Math.E];\n           *   print(regularArr);\n           *   shuffle(regularArr, true); // force modifications to passed array\n           *   print(regularArr);\n           *\n           *   // By default shuffle() returns a shuffled cloned array:\n           *   let newArr = shuffle(regularArr);\n           *   print(regularArr);\n           *   print(newArr);\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.shuffle = function(arr, bool) {\n            var isView = ArrayBuffer && ArrayBuffer.isView && ArrayBuffer.isView(arr);\n            arr = bool || isView ? arr : arr.slice();\n\n            var rnd,\n              tmp,\n              idx = arr.length;\n            while (idx > 1) {\n              rnd = (Math.random() * idx) | 0;\n\n              tmp = arr[--idx];\n              arr[idx] = arr[rnd];\n              arr[rnd] = tmp;\n            }\n\n            return arr;\n          };\n\n          /**\n           * Sorts an array of numbers from smallest to largest, or puts an array of\n           * words in alphabetical order. The original array is not modified; a\n           * re-ordered array is returned. The count parameter states the number of\n           * elements to sort. For example, if there are 12 elements in an array and\n           * count is set to 5, only the first 5 elements in the array will be sorted.\n           *\n           * @method sort\n           * @deprecated Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort\">array.sort()</a> instead.\n           * @param {Array} list Array to sort\n           * @param {Integer} [count] number of elements to sort, starting from 0\n           * @return {Array} the sorted list\n           *\n           * @example\n           * <div class = 'norender'><code>\n           * function setup() {\n           *   let words = ['banana', 'apple', 'pear', 'lime'];\n           *   print(words); // ['banana', 'apple', 'pear', 'lime']\n           *   let count = 4; // length of array\n           *\n           *   words = sort(words, count);\n           *   print(words); // ['apple', 'banana', 'lime', 'pear']\n           * }\n           * </code></div>\n           * <div class = 'norender'><code>\n           * function setup() {\n           *   let numbers = [2, 6, 1, 5, 14, 9, 8, 12];\n           *   print(numbers); // [2, 6, 1, 5, 14, 9, 8, 12]\n           *   let count = 5; // Less than the length of the array\n           *\n           *   numbers = sort(numbers, count);\n           *   print(numbers); // [1,2,5,6,14,9,8,12]\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.sort = function(list, count) {\n            var arr = count ? list.slice(0, Math.min(count, list.length)) : list;\n            var rest = count ? list.slice(Math.min(count, list.length)) : [];\n            if (typeof arr[0] === 'string') {\n              arr = arr.sort();\n            } else {\n              arr = arr.sort(function(a, b) {\n                return a - b;\n              });\n            }\n            return arr.concat(rest);\n          };\n\n          /**\n           * Inserts a value or an array of values into an existing array. The first\n           * parameter specifies the initial array to be modified, and the second\n           * parameter defines the data to be inserted. The third parameter is an index\n           * value which specifies the array position from which to insert data.\n           * (Remember that array index numbering starts at zero, so the first position\n           * is 0, the second position is 1, and so on.)\n           *\n           * @method splice\n           * @deprecated Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice\">array.splice()</a> instead.\n           * @param {Array}  list Array to splice into\n           * @param {any}    value value to be spliced in\n           * @param {Integer} position in the array from which to insert data\n           * @return {Array} the list\n           *\n           * @example\n           * <div class = 'norender'><code>\n           * function setup() {\n           *   let myArray = [0, 1, 2, 3, 4];\n           *   let insArray = ['A', 'B', 'C'];\n           *   print(myArray); // [0, 1, 2, 3, 4]\n           *   print(insArray); // ['A','B','C']\n           *\n           *   splice(myArray, insArray, 3);\n           *   print(myArray); // [0,1,2,'A','B','C',3,4]\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.splice = function(list, value, index) {\n            // note that splice returns spliced elements and not an array\n            Array.prototype.splice.apply(list, [index, 0].concat(value));\n\n            return list;\n          };\n\n          /**\n           * Extracts an array of elements from an existing array. The list parameter\n           * defines the array from which the elements will be copied, and the start\n           * and count parameters specify which elements to extract. If no count is\n           * given, elements will be extracted from the start to the end of the array.\n           * When specifying the start, remember that the first array element is 0.\n           * This function does not change the source array.\n           *\n           * @method subset\n           * @deprecated Use <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice\">array.slice()</a> instead.\n           * @param  {Array}  list    Array to extract from\n           * @param  {Integer} start   position to begin\n           * @param  {Integer} [count] number of values to extract\n           * @return {Array}          Array of extracted elements\n           *\n           * @example\n           * <div class = 'norender'><code>\n           * function setup() {\n           *   let myArray = [1, 2, 3, 4, 5];\n           *   print(myArray); // [1, 2, 3, 4, 5]\n           *\n           *   let sub1 = subset(myArray, 0, 3);\n           *   let sub2 = subset(myArray, 2, 2);\n           *   print(sub1); // [1,2,3]\n           *   print(sub2); // [3,4]\n           * }\n           * </code></div>\n           */\n          _main.default.prototype.subset = function(list, start, count) {\n            if (typeof count !== 'undefined') {\n              return list.slice(start, start + count);\n            } else {\n              return list.slice(start, list.length);\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      90: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Data\n           * @submodule Conversion\n           * @for p5\n           * @requires core\n           */ /**\n           * Converts a string to its floating point representation. The contents of a\n           * string must resemble a number, or NaN (not a number) will be returned.\n           * For example, float(\"1234.56\") evaluates to 1234.56, but float(\"giraffe\")\n           * will return NaN.\n           *\n           * When an array of values is passed in, then an array of floats of the same\n           * length is returned.\n           *\n           * @method float\n           * @param {String}  str float string to parse\n           * @return {Number}     floating point representation of string\n           * @example\n           * <div><code>\n           * let str = '20';\n           * let diameter = float(str);\n           * ellipse(width / 2, height / 2, diameter, diameter);\n           * </code></div>\n           * <div class='norender'><code>\n           * print(float('10.31')); // 10.31\n           * print(float('Infinity')); // Infinity\n           * print(float('-Infinity')); // -Infinity\n           * </code></div>\n           *\n           * @alt\n           * 20 by 20 white ellipse in the center of the canvas\n           *\n           */ _main.default.prototype.float = function(str) {\n            if (str instanceof Array) {\n              return str.map(parseFloat);\n            }\n            return parseFloat(str);\n          };\n\n          /**\n           * Converts a boolean, string, or float to its integer representation.\n           * When an array of values is passed in, then an int array of the same length\n           * is returned.\n           *\n           * @method int\n           * @param {String|Boolean|Number}       n value to parse\n           * @param {Integer}       [radix] the radix to convert to (default: 10)\n           * @return {Number}                     integer representation of value\n           *\n           * @example\n           * <div class='norender'><code>\n           * print(int('10')); // 10\n           * print(int(10.31)); // 10\n           * print(int(-10)); // -10\n           * print(int(true)); // 1\n           * print(int(false)); // 0\n           * print(int([false, true, '10.3', 9.8])); // [0, 1, 10, 9]\n           * print(int(Infinity)); // Infinity\n           * print(int('-Infinity')); // -Infinity\n           * </code></div>\n           */\n          /**\n           * @method int\n           * @param {Array} ns                    values to parse\n           * @return {Number[]}                   integer representation of values\n           */\n          _main.default.prototype.int = function(n) {\n            var radix =\n              arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;\n            if (n === Infinity || n === 'Infinity') {\n              return Infinity;\n            } else if (n === -Infinity || n === '-Infinity') {\n              return -Infinity;\n            } else if (typeof n === 'string') {\n              return parseInt(n, radix);\n            } else if (typeof n === 'number') {\n              return n | 0;\n            } else if (typeof n === 'boolean') {\n              return n ? 1 : 0;\n            } else if (n instanceof Array) {\n              return n.map(function(n) {\n                return _main.default.prototype.int(n, radix);\n              });\n            }\n          };\n\n          /**\n           * Converts a boolean, string or number to its string representation.\n           * When an array of values is passed in, then an array of strings of the same\n           * length is returned.\n           *\n           * @method str\n           * @param {String|Boolean|Number|Array} n value to parse\n           * @return {String}                     string representation of value\n           * @example\n           * <div class='norender'><code>\n           * print(str('10')); // \"10\"\n           * print(str(10.31)); // \"10.31\"\n           * print(str(-10)); // \"-10\"\n           * print(str(true)); // \"true\"\n           * print(str(false)); // \"false\"\n           * print(str([true, '10.3', 9.8])); // [ \"true\", \"10.3\", \"9.8\" ]\n           * </code></div>\n           */\n          _main.default.prototype.str = function(n) {\n            if (n instanceof Array) {\n              return n.map(_main.default.prototype.str);\n            } else {\n              return String(n);\n            }\n          };\n\n          /**\n           * Converts a number or string to its boolean representation.\n           * For a number, any non-zero value (positive or negative) evaluates to true,\n           * while zero evaluates to false. For a string, the value \"true\" evaluates to\n           * true, while any other value evaluates to false. When an array of number or\n           * string values is passed in, then a array of booleans of the same length is\n           * returned.\n           *\n           * @method boolean\n           * @param {String|Boolean|Number|Array} n value to parse\n           * @return {Boolean}                    boolean representation of value\n           * @example\n           * <div class='norender'><code>\n           * print(boolean(0)); // false\n           * print(boolean(1)); // true\n           * print(boolean('true')); // true\n           * print(boolean('abcd')); // false\n           * print(boolean([0, 12, 'true'])); // [false, true, true]\n           * </code></div>\n           */\n          _main.default.prototype.boolean = function(n) {\n            if (typeof n === 'number') {\n              return n !== 0;\n            } else if (typeof n === 'string') {\n              return n.toLowerCase() === 'true';\n            } else if (typeof n === 'boolean') {\n              return n;\n            } else if (n instanceof Array) {\n              return n.map(_main.default.prototype.boolean);\n            }\n          };\n\n          /**\n           * Converts a number, string representation of a number, or boolean to its byte\n           * representation. A byte can be only a whole number between -128 and 127, so\n           * when a value outside of this range is converted, it wraps around to the\n           * corresponding byte representation. When an array of number, string or boolean\n           * values is passed in, then an array of bytes the same length is returned.\n           *\n           * @method byte\n           * @param {String|Boolean|Number}       n value to parse\n           * @return {Number}                     byte representation of value\n           *\n           * @example\n           * <div class='norender'><code>\n           * print(byte(127)); // 127\n           * print(byte(128)); // -128\n           * print(byte(23.4)); // 23\n           * print(byte('23.4')); // 23\n           * print(byte('hello')); // NaN\n           * print(byte(true)); // 1\n           * print(byte([0, 255, '100'])); // [0, -1, 100]\n           * </code></div>\n           */\n          /**\n           * @method byte\n           * @param {Array} ns                   values to parse\n           * @return {Number[]}                  array of byte representation of values\n           */\n          _main.default.prototype.byte = function(n) {\n            var nn = _main.default.prototype.int(n, 10);\n            if (typeof nn === 'number') {\n              return (nn + 128) % 256 - 128;\n            } else if (nn instanceof Array) {\n              return nn.map(_main.default.prototype.byte);\n            }\n          };\n\n          /**\n           * Converts a number or string to its corresponding single-character\n           * string representation. If a string parameter is provided, it is first\n           * parsed as an integer and then translated into a single-character string.\n           * When an array of number or string values is passed in, then an array of\n           * single-character strings of the same length is returned.\n           *\n           * @method char\n           * @param {String|Number}       n value to parse\n           * @return {String}             string representation of value\n           *\n           * @example\n           * <div class='norender'><code>\n           * print(char(65)); // \"A\"\n           * print(char('65')); // \"A\"\n           * print(char([65, 66, 67])); // [ \"A\", \"B\", \"C\" ]\n           * print(join(char([65, 66, 67]), '')); // \"ABC\"\n           * </code></div>\n           */\n          /**\n           * @method char\n           * @param {Array} ns              values to parse\n           * @return {String[]}             array of string representation of values\n           */\n          _main.default.prototype.char = function(n) {\n            if (typeof n === 'number' && !isNaN(n)) {\n              return String.fromCharCode(n);\n            } else if (n instanceof Array) {\n              return n.map(_main.default.prototype.char);\n            } else if (typeof n === 'string') {\n              return _main.default.prototype.char(parseInt(n, 10));\n            }\n          };\n\n          /**\n           * Converts a single-character string to its corresponding integer\n           * representation. When an array of single-character string values is passed\n           * in, then an array of integers of the same length is returned.\n           *\n           * @method unchar\n           * @param {String} n     value to parse\n           * @return {Number}      integer representation of value\n           *\n           * @example\n           * <div class='norender'><code>\n           * print(unchar('A')); // 65\n           * print(unchar(['A', 'B', 'C'])); // [ 65, 66, 67 ]\n           * print(unchar(split('ABC', ''))); // [ 65, 66, 67 ]\n           * </code></div>\n           */\n          /**\n           * @method unchar\n           * @param {Array} ns       values to parse\n           * @return {Number[]}      integer representation of values\n           */\n          _main.default.prototype.unchar = function(n) {\n            if (typeof n === 'string' && n.length === 1) {\n              return n.charCodeAt(0);\n            } else if (n instanceof Array) {\n              return n.map(_main.default.prototype.unchar);\n            }\n          };\n\n          /**\n           * Converts a number to a string in its equivalent hexadecimal notation. If a\n           * second parameter is passed, it is used to set the number of characters to\n           * generate in the hexadecimal notation. When an array is passed in, an\n           * array of strings in hexadecimal notation of the same length is returned.\n           *\n           * @method hex\n           * @param {Number} n     value to parse\n           * @param {Number} [digits]\n           * @return {String}      hexadecimal string representation of value\n           *\n           * @example\n           * <div class='norender'><code>\n           * print(hex(255)); // \"000000FF\"\n           * print(hex(255, 6)); // \"0000FF\"\n           * print(hex([0, 127, 255], 6)); // [ \"000000\", \"00007F\", \"0000FF\" ]\n           * print(Infinity); // \"FFFFFFFF\"\n           * print(-Infinity); // \"00000000\"\n           * </code></div>\n           */\n          /**\n           * @method hex\n           * @param {Number[]} ns    array of values to parse\n           * @param {Number} [digits]\n           * @return {String[]}      hexadecimal string representation of values\n           */\n          _main.default.prototype.hex = function(n, digits) {\n            digits = digits === undefined || digits === null ? (digits = 8) : digits;\n            if (n instanceof Array) {\n              return n.map(function(n) {\n                return _main.default.prototype.hex(n, digits);\n              });\n            } else if (n === Infinity || n === -Infinity) {\n              var c = n === Infinity ? 'F' : '0';\n              return c.repeat(digits);\n            } else if (typeof n === 'number') {\n              if (n < 0) {\n                n = 0xffffffff + n + 1;\n              }\n              var hex = Number(n)\n                .toString(16)\n                .toUpperCase();\n              while (hex.length < digits) {\n                hex = '0'.concat(hex);\n              }\n              if (hex.length >= digits) {\n                hex = hex.substring(hex.length - digits, hex.length);\n              }\n              return hex;\n            }\n          };\n\n          /**\n           * Converts a string representation of a hexadecimal number to its equivalent\n           * integer value. When an array of strings in hexadecimal notation is passed\n           * in, an array of integers of the same length is returned.\n           *\n           * @method unhex\n           * @param {String} n value to parse\n           * @return {Number}      integer representation of hexadecimal value\n           *\n           * @example\n           * <div class='norender'><code>\n           * print(unhex('A')); // 10\n           * print(unhex('FF')); // 255\n           * print(unhex(['FF', 'AA', '00'])); // [ 255, 170, 0 ]\n           * </code></div>\n           */\n          /**\n           * @method unhex\n           * @param {Array} ns values to parse\n           * @return {Number[]}      integer representations of hexadecimal value\n           */\n          _main.default.prototype.unhex = function(n) {\n            if (n instanceof Array) {\n              return n.map(_main.default.prototype.unhex);\n            } else {\n              return parseInt('0x'.concat(n), 16);\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      91: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          _dereq_('../core/error_helpers');\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          } /** //return p5; //LM is this a mistake?\n           * @module Data\n           * @submodule String Functions\n           * @for p5\n           * @requires core\n           */\n          /**\n           * Combines an array of Strings into one String, each separated by the\n           * character(s) used for the separator parameter. To join arrays of ints or\n           * floats, it's necessary to first convert them to Strings using <a href=\"#/p5/nf\">nf()</a> or\n           * nfs().\n           *\n           * @method join\n           * @param  {Array}  list      array of Strings to be joined\n           * @param  {String} separator String to be placed between each item\n           * @return {String}           joined String\n           * @example\n           * <div>\n           * <code>\n           * let array = ['Hello', 'world!'];\n           * let separator = ' ';\n           * let message = join(array, separator);\n           * text(message, 5, 50);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * \"hello world!\" displayed middle left of canvas.\n           *\n           */ _main.default.prototype.join = function(list, separator) {\n            _main.default._validateParameters('join', arguments);\n            return list.join(separator);\n          };\n\n          /**\n           * This function is used to apply a regular expression to a piece of text,\n           * and return matching groups (elements found inside parentheses) as a\n           * String array. If there are no matches, a null value will be returned.\n           * If no groups are specified in the regular expression, but the sequence\n           * matches, an array of length 1 (with the matched text as the first element\n           * of the array) will be returned.\n           * <br><br>\n           * To use the function, first check to see if the result is null. If the\n           * result is null, then the sequence did not match at all. If the sequence\n           * did match, an array is returned.\n           * <br><br>\n           * If there are groups (specified by sets of parentheses) in the regular\n           * expression, then the contents of each will be returned in the array.\n           * Element [0] of a regular expression match returns the entire matching\n           * string, and the match groups start at element [1] (the first group is [1],\n           * the second [2], and so on).\n           *\n           * @method match\n           * @param  {String} str    the String to be searched\n           * @param  {String} regexp the regexp to be used for matching\n           * @return {String[]}      Array of Strings found\n           * @example\n           * <div>\n           * <code>\n           * let string = 'Hello p5js*!';\n           * let regexp = 'p5js\\\\*';\n           * let m = match(string, regexp);\n           * text(m, 5, 50);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * \"p5js*\" displayed middle left of canvas.\n           *\n           */\n          _main.default.prototype.match = function(str, reg) {\n            _main.default._validateParameters('match', arguments);\n            return str.match(reg);\n          };\n\n          /**\n           * This function is used to apply a regular expression to a piece of text,\n           * and return a list of matching groups (elements found inside parentheses)\n           * as a two-dimensional String array. If there are no matches, a null value\n           * will be returned. If no groups are specified in the regular expression,\n           * but the sequence matches, a two dimensional array is still returned, but\n           * the second dimension is only of length one.\n           * <br><br>\n           * To use the function, first check to see if the result is null. If the\n           * result is null, then the sequence did not match at all. If the sequence\n           * did match, a 2D array is returned.\n           * <br><br>\n           * If there are groups (specified by sets of parentheses) in the regular\n           * expression, then the contents of each will be returned in the array.\n           * Assuming a loop with counter variable i, element [i][0] of a regular\n           * expression match returns the entire matching string, and the match groups\n           * start at element [i][1] (the first group is [i][1], the second [i][2],\n           * and so on).\n           *\n           * @method matchAll\n           * @param  {String} str    the String to be searched\n           * @param  {String} regexp the regexp to be used for matching\n           * @return {String[]}         2d Array of Strings found\n           * @example\n           * <div class=\"norender\">\n           * <code>\n           * let string = 'Hello p5js*! Hello world!';\n           * let regexp = 'Hello';\n           * matchAll(string, regexp);\n           * </code>\n           * </div>\n           */\n          _main.default.prototype.matchAll = function(str, reg) {\n            _main.default._validateParameters('matchAll', arguments);\n            var re = new RegExp(reg, 'g');\n            var match = re.exec(str);\n            var matches = [];\n            while (match !== null) {\n              matches.push(match);\n              // matched text: match[0]\n              // match start: match.index\n              // capturing group n: match[n]\n              match = re.exec(str);\n            }\n            return matches;\n          };\n\n          /**\n           * Utility function for formatting numbers into strings. There are two\n           * versions: one for formatting floats, and one for formatting ints.\n           * The values for the digits, left, and right parameters should always\n           * be positive integers.\n           * (NOTE): Be cautious when using left and right parameters as it prepends numbers of 0's if the parameter\n           * if greater than the current length of the number.\n           * For example if number is 123.2 and left parameter passed is 4 which is greater than length of 123\n           * (integer part) i.e 3 than result will be 0123.2. Same case for right parameter i.e. if right is 3 than\n           * the result will be 123.200.\n           *\n           * @method nf\n           * @param {Number|String}       num      the Number to format\n           * @param {Integer|String}      [left]   number of digits to the left of the\n           *                                decimal point\n           * @param {Integer|String}      [right]  number of digits to the right of the\n           *                                decimal point\n           * @return {String}               formatted String\n           *\n           * @example\n           * <div>\n           * <code>\n           * let myFont;\n           * function preload() {\n           *   myFont = loadFont('assets/fonts/inconsolata.ttf');\n           * }\n           * function setup() {\n           *   background(200);\n           *   let num1 = 321;\n           *   let num2 = -1321;\n           *\n           *   noStroke();\n           *   fill(0);\n           *   textFont(myFont);\n           *   textSize(22);\n           *\n           *   text(nf(num1, 4, 2), 10, 30);\n           *   text(nf(num2, 4, 2), 10, 80);\n           *   // Draw dividing line\n           *   stroke(120);\n           *   line(0, 50, width, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * \"0321.00\" middle top, -1321.00\" middle bottom canvas\n           */\n          /**\n           * @method nf\n           * @param {Array}        nums     the Numbers to format\n           * @param {Integer|String}      [left]\n           * @param {Integer|String}      [right]\n           * @return {String[]}                formatted Strings\n           */\n          _main.default.prototype.nf = function(nums, left, right) {\n            _main.default._validateParameters('nf', arguments);\n            if (nums instanceof Array) {\n              return nums.map(function(x) {\n                return doNf(x, left, right);\n              });\n            } else {\n              var typeOfFirst = Object.prototype.toString.call(nums);\n              if (typeOfFirst === '[object Arguments]') {\n                if (nums.length === 3) {\n                  return this.nf(nums[0], nums[1], nums[2]);\n                } else if (nums.length === 2) {\n                  return this.nf(nums[0], nums[1]);\n                } else {\n                  return this.nf(nums[0]);\n                }\n              } else {\n                return doNf(nums, left, right);\n              }\n            }\n          };\n\n          function doNf(num, left, right) {\n            var neg = num < 0;\n            var n = neg ? num.toString().substring(1) : num.toString();\n            var decimalInd = n.indexOf('.');\n            var intPart = decimalInd !== -1 ? n.substring(0, decimalInd) : n;\n            var decPart = decimalInd !== -1 ? n.substring(decimalInd + 1) : '';\n            var str = neg ? '-' : '';\n            if (typeof right !== 'undefined') {\n              var decimal = '';\n              if (decimalInd !== -1 || right - decPart.length > 0) {\n                decimal = '.';\n              }\n              if (decPart.length > right) {\n                decPart = decPart.substring(0, right);\n              }\n              for (var i = 0; i < left - intPart.length; i++) {\n                str += '0';\n              }\n              str += intPart;\n              str += decimal;\n              str += decPart;\n              for (var j = 0; j < right - decPart.length; j++) {\n                str += '0';\n              }\n              return str;\n            } else {\n              for (var k = 0; k < Math.max(left - intPart.length, 0); k++) {\n                str += '0';\n              }\n              str += n;\n              return str;\n            }\n          }\n\n          /**\n           * Utility function for formatting numbers into strings and placing\n           * appropriate commas to mark units of 1000. There are two versions: one\n           * for formatting ints, and one for formatting an array of ints. The value\n           * for the right parameter should always be a positive integer.\n           *\n           * @method nfc\n           * @param  {Number|String}   num     the Number to format\n           * @param  {Integer|String}  [right] number of digits to the right of the\n           *                                  decimal point\n           * @return {String}           formatted String\n           *\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   background(200);\n           *   let num = 11253106.115;\n           *   let numArr = [1, 1, 2];\n           *\n           *   noStroke();\n           *   fill(0);\n           *   textSize(12);\n           *\n           *   // Draw formatted numbers\n           *   text(nfc(num, 4), 10, 30);\n           *   text(nfc(numArr, 2), 10, 80);\n           *\n           *   // Draw dividing line\n           *   stroke(120);\n           *   line(0, 50, width, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * \"11,253,106.115\" top middle and \"1.00,1.00,2.00\" displayed bottom mid\n           */\n          /**\n           * @method nfc\n           * @param  {Array}    nums     the Numbers to format\n           * @param  {Integer|String}  [right]\n           * @return {String[]}           formatted Strings\n           */\n          _main.default.prototype.nfc = function(num, right) {\n            _main.default._validateParameters('nfc', arguments);\n            if (num instanceof Array) {\n              return num.map(function(x) {\n                return doNfc(x, right);\n              });\n            } else {\n              return doNfc(num, right);\n            }\n          };\n          function doNfc(num, right) {\n            num = num.toString();\n            var dec = num.indexOf('.');\n            var rem = dec !== -1 ? num.substring(dec) : '';\n            var n = dec !== -1 ? num.substring(0, dec) : num;\n            n = n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n            if (right === 0) {\n              rem = '';\n            } else if (typeof right !== 'undefined') {\n              if (right > rem.length) {\n                rem += dec === -1 ? '.' : '';\n                var len = right - rem.length + 1;\n                for (var i = 0; i < len; i++) {\n                  rem += '0';\n                }\n              } else {\n                rem = rem.substring(0, right + 1);\n              }\n            }\n            return n + rem;\n          }\n\n          /**\n           * Utility function for formatting numbers into strings. Similar to <a href=\"#/p5/nf\">nf()</a> but\n           * puts a \"+\" in front of positive numbers and a \"-\" in front of negative\n           * numbers. There are two versions: one for formatting floats, and one for\n           * formatting ints. The values for left, and right parameters\n           * should always be positive integers.\n           *\n           * @method nfp\n           * @param {Number} num      the Number to format\n           * @param {Integer}      [left]   number of digits to the left of the decimal\n           *                                point\n           * @param {Integer}      [right]  number of digits to the right of the\n           *                                decimal point\n           * @return {String}         formatted String\n           *\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   background(200);\n           *   let num1 = 11253106.115;\n           *   let num2 = -11253106.115;\n           *\n           *   noStroke();\n           *   fill(0);\n           *   textSize(12);\n           *\n           *   // Draw formatted numbers\n           *   text(nfp(num1, 4, 2), 10, 30);\n           *   text(nfp(num2, 4, 2), 10, 80);\n           *\n           *   // Draw dividing line\n           *   stroke(120);\n           *   line(0, 50, width, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * \"+11253106.11\" top middle and \"-11253106.11\" displayed bottom middle\n           */\n          /**\n           * @method nfp\n           * @param {Number[]} nums      the Numbers to format\n           * @param {Integer}      [left]\n           * @param {Integer}      [right]\n           * @return {String[]}         formatted Strings\n           */\n          _main.default.prototype.nfp = function() {\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default._validateParameters('nfp', args);\n            var nfRes = _main.default.prototype.nf.apply(this, args);\n            if (nfRes instanceof Array) {\n              return nfRes.map(addNfp);\n            } else {\n              return addNfp(nfRes);\n            }\n          };\n\n          function addNfp(num) {\n            return parseFloat(num) > 0 ? '+'.concat(num.toString()) : num.toString();\n          }\n\n          /**\n           * Utility function for formatting numbers into strings. Similar to <a href=\"#/p5/nf\">nf()</a> but\n           * puts an additional \"_\" (space) in front of positive numbers just in case to align it with negative\n           * numbers which includes \"-\" (minus) sign.\n           * The main usecase of nfs() can be seen when one wants to align the digits (place values) of a non-negative\n           * number with some negative number (See the example to get a clear picture).\n           * There are two versions: one for formatting float, and one for formatting int.\n           * The values for the digits, left, and right parameters should always be positive integers.\n           * (IMP): The result on the canvas basically the expected alignment can vary based on the typeface you are using.\n           * (NOTE): Be cautious when using left and right parameters as it prepends numbers of 0's if the parameter\n           * if greater than the current length of the number.\n           * For example if number is 123.2 and left parameter passed is 4 which is greater than length of 123\n           * (integer part) i.e 3 than result will be 0123.2. Same case for right parameter i.e. if right is 3 than\n           * the result will be 123.200.\n           *\n           * @method nfs\n           * @param {Number}       num      the Number to format\n           * @param {Integer}      [left]   number of digits to the left of the decimal\n           *                                point\n           * @param {Integer}      [right]  number of digits to the right of the\n           *                                decimal point\n           * @return {String}         formatted String\n           *\n           * @example\n           * <div>\n           * <code>\n           * let myFont;\n           * function preload() {\n           *   myFont = loadFont('assets/fonts/inconsolata.ttf');\n           * }\n           * function setup() {\n           *   background(200);\n           *   let num1 = 321;\n           *   let num2 = -1321;\n           *\n           *   noStroke();\n           *   fill(0);\n           *   textFont(myFont);\n           *   textSize(22);\n           *\n           *   // nfs() aligns num1 (positive number) with num2 (negative number) by\n           *   // adding a blank space in front of the num1 (positive number)\n           *   // [left = 4] in num1 add one 0 in front, to align the digits with num2\n           *   // [right = 2] in num1 and num2 adds two 0's after both numbers\n           *   // To see the differences check the example of nf() too.\n           *   text(nfs(num1, 4, 2), 10, 30);\n           *   text(nfs(num2, 4, 2), 10, 80);\n           *   // Draw dividing line\n           *   stroke(120);\n           *   line(0, 50, width, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * \"0321.00\" top middle and \"-1321.00\" displayed bottom middle\n           */\n          /**\n           * @method nfs\n           * @param {Array}        nums     the Numbers to format\n           * @param {Integer}      [left]\n           * @param {Integer}      [right]\n           * @return {String[]}         formatted Strings\n           */\n          _main.default.prototype.nfs = function() {\n            for (\n              var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;\n              _key2 < _len2;\n              _key2++\n            ) {\n              args[_key2] = arguments[_key2];\n            }\n            _main.default._validateParameters('nfs', args);\n            var nfRes = _main.default.prototype.nf.apply(this, args);\n            if (nfRes instanceof Array) {\n              return nfRes.map(addNfs);\n            } else {\n              return addNfs(nfRes);\n            }\n          };\n\n          function addNfs(num) {\n            return parseFloat(num) >= 0 ? ' '.concat(num.toString()) : num.toString();\n          }\n\n          /**\n           * The <a href=\"#/p5/split\">split()</a> function maps to String.split(), it breaks a String into\n           * pieces using a character or string as the delimiter. The delim parameter\n           * specifies the character or characters that mark the boundaries between\n           * each piece. A String[] array is returned that contains each of the pieces.\n           *\n           * The <a href=\"#/p5/splitTokens\">splitTokens()</a> function works in a similar fashion, except that it\n           * splits using a range of characters instead of a specific character or\n           * sequence.\n           *\n           * @method split\n           * @param  {String} value the String to be split\n           * @param  {String} delim the String used to separate the data\n           * @return {String[]}  Array of Strings\n           * @example\n           * <div>\n           * <code>\n           * let names = 'Pat,Xio,Alex';\n           * let splitString = split(names, ',');\n           * text(splitString[0], 5, 30);\n           * text(splitString[1], 5, 50);\n           * text(splitString[2], 5, 70);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * \"pat\" top left, \"Xio\" mid left and \"Alex\" displayed bottom left\n           *\n           */\n          _main.default.prototype.split = function(str, delim) {\n            _main.default._validateParameters('split', arguments);\n            return str.split(delim);\n          };\n\n          /**\n           * The <a href=\"#/p5/splitTokens\">splitTokens()</a> function splits a String at one or many character\n           * delimiters or \"tokens.\" The delim parameter specifies the character or\n           * characters to be used as a boundary.\n           * <br><br>\n           * If no delim characters are specified, any whitespace character is used to\n           * split. Whitespace characters include tab (\\t), line feed (\\n), carriage\n           * return (\\r), form feed (\\f), and space.\n           *\n           * @method splitTokens\n           * @param  {String} value   the String to be split\n           * @param  {String} [delim] list of individual Strings that will be used as\n           *                          separators\n           * @return {String[]}          Array of Strings\n           * @example\n           * <div class = \"norender\">\n           * <code>\n           * function setup() {\n           *   let myStr = 'Mango, Banana, Lime';\n           *   let myStrArr = splitTokens(myStr, ',');\n           *\n           *   print(myStrArr); // prints : [\"Mango\",\" Banana\",\" Lime\"]\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.prototype.splitTokens = function(value, delims) {\n            _main.default._validateParameters('splitTokens', arguments);\n            var d;\n            if (typeof delims !== 'undefined') {\n              var str = delims;\n              var sqc = /\\]/g.exec(str);\n              var sqo = /\\[/g.exec(str);\n              if (sqo && sqc) {\n                str = str.slice(0, sqc.index) + str.slice(sqc.index + 1);\n                sqo = /\\[/g.exec(str);\n                str = str.slice(0, sqo.index) + str.slice(sqo.index + 1);\n                d = new RegExp('[\\\\['.concat(str, '\\\\]]'), 'g');\n              } else if (sqc) {\n                str = str.slice(0, sqc.index) + str.slice(sqc.index + 1);\n                d = new RegExp('['.concat(str, '\\\\]]'), 'g');\n              } else if (sqo) {\n                str = str.slice(0, sqo.index) + str.slice(sqo.index + 1);\n                d = new RegExp('['.concat(str, '\\\\[]'), 'g');\n              } else {\n                d = new RegExp('['.concat(str, ']'), 'g');\n              }\n            } else {\n              d = /\\s/g;\n            }\n            return value.split(d).filter(function(n) {\n              return n;\n            });\n          };\n\n          /**\n           * Removes whitespace characters from the beginning and end of a String. In\n           * addition to standard whitespace characters such as space, carriage return,\n           * and tab, this function also removes the Unicode \"nbsp\" character.\n           *\n           * @method trim\n           * @param  {String} str a String to be trimmed\n           * @return {String}       a trimmed String\n           *\n           * @example\n           * <div>\n           * <code>\n           * let string = trim('  No new lines\\n   ');\n           * text(string + ' here', 2, 50);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * \"No new lines here\" displayed center canvas\n           */\n          /**\n           * @method trim\n           * @param  {Array} strs an Array of Strings to be trimmed\n           * @return {String[]}   an Array of trimmed Strings\n           */\n          _main.default.prototype.trim = function(str) {\n            _main.default._validateParameters('trim', arguments);\n            if (str instanceof Array) {\n              return str.map(this.trim);\n            } else {\n              return str.trim();\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/error_helpers': 45, '../core/main': 50 }\n      ],\n      92: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module IO\n           * @submodule Time & Date\n           * @for p5\n           * @requires core\n           */ /**\n           * p5.js communicates with the clock on your computer. The <a href=\"#/p5/day\">day()</a> function\n           * returns the current day as a value from 1 - 31.\n           *\n           * @method day\n           * @return {Integer} the current day\n           * @example\n           * <div>\n           * <code>\n           * let d = day();\n           * text('Current day: \\n' + d, 5, 50);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Current day is displayed\n           *\n           */ _main.default.prototype.day = function() {\n            return new Date().getDate();\n          };\n\n          /**\n           * p5.js communicates with the clock on your computer. The <a href=\"#/p5/hour\">hour()</a> function\n           * returns the current hour as a value from 0 - 23.\n           *\n           * @method hour\n           * @return {Integer} the current hour\n           * @example\n           * <div>\n           * <code>\n           * let h = hour();\n           * text('Current hour:\\n' + h, 5, 50);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Current hour is displayed\n           *\n           */\n          _main.default.prototype.hour = function() {\n            return new Date().getHours();\n          };\n\n          /**\n           * p5.js communicates with the clock on your computer. The <a href=\"#/p5/minute\">minute()</a> function\n           * returns the current minute as a value from 0 - 59.\n           *\n           * @method minute\n           * @return {Integer} the current minute\n           * @example\n           * <div>\n           * <code>\n           * let m = minute();\n           * text('Current minute: \\n' + m, 5, 50);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Current minute is displayed\n           *\n           */\n          _main.default.prototype.minute = function() {\n            return new Date().getMinutes();\n          };\n\n          /**\n           * Returns the number of milliseconds (thousandths of a second) since\n           * starting the sketch (when `setup()` is called). This information is often\n           * used for timing events and animation sequences.\n           *\n           * @method millis\n           * @return {Number} the number of milliseconds since starting the sketch\n           * @example\n           * <div>\n           * <code>\n           * let millisecond = millis();\n           * text('Milliseconds \\nrunning: \\n' + millisecond, 5, 40);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * number of milliseconds since sketch has started displayed\n           *\n           */\n          _main.default.prototype.millis = function() {\n            if (this._millisStart === -1) {\n              // Sketch has not started\n              return 0;\n            } else {\n              return window.performance.now() - this._millisStart;\n            }\n          };\n\n          /**\n           * p5.js communicates with the clock on your computer. The <a href=\"#/p5/month\">month()</a> function\n           * returns the current month as a value from 1 - 12.\n           *\n           * @method month\n           * @return {Integer} the current month\n           * @example\n           * <div>\n           * <code>\n           * let m = month();\n           * text('Current month: \\n' + m, 5, 50);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Current month is displayed\n           *\n           */\n          _main.default.prototype.month = function() {\n            //January is 0!\n            return new Date().getMonth() + 1;\n          };\n\n          /**\n           * p5.js communicates with the clock on your computer. The <a href=\"#/p5/second\">second()</a> function\n           * returns the current second as a value from 0 - 59.\n           *\n           * @method second\n           * @return {Integer} the current second\n           * @example\n           * <div>\n           * <code>\n           * let s = second();\n           * text('Current second: \\n' + s, 5, 50);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Current second is displayed\n           *\n           */\n          _main.default.prototype.second = function() {\n            return new Date().getSeconds();\n          };\n\n          /**\n           * p5.js communicates with the clock on your computer. The <a href=\"#/p5/year\">year()</a> function\n           * returns the current year as an integer (2014, 2015, 2016, etc).\n           *\n           * @method year\n           * @return {Integer} the current year\n           * @example\n           * <div>\n           * <code>\n           * let y = year();\n           * text('Current year: \\n' + y, 5, 50);\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Current year is displayed\n           *\n           */\n          _main.default.prototype.year = function() {\n            return new Date().getFullYear();\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      93: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          _dereq_('./p5.Geometry');\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Shape\n           * @submodule 3D Primitives\n           * @for p5\n           * @requires core\n           * @requires p5.Geometry\n           */ /**\n           * Draw a plane with given a width and height\n           * @method plane\n           * @param  {Number} [width]    width of the plane\n           * @param  {Number} [height]   height of the plane\n           * @param  {Integer} [detailX]  Optional number of triangle\n           *                             subdivisions in x-dimension\n           * @param {Integer} [detailY]   Optional number of triangle\n           *                             subdivisions in y-dimension\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // draw a plane\n           * // with width 50 and height 50\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   plane(50, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Nothing displayed on canvas\n           * Rotating interior view of a box with sides that change color.\n           * 3d red and green gradient.\n           * Rotating interior view of a cylinder with sides that change color.\n           * Rotating view of a cylinder with sides that change color.\n           * 3d red and green gradient.\n           * rotating view of a multi-colored cylinder with concave sides.\n           */ _main.default.prototype.plane = function(width, height, detailX, detailY) {\n            this._assert3d('plane');\n            _main.default._validateParameters('plane', arguments);\n            if (typeof width === 'undefined') {\n              width = 50;\n            }\n            if (typeof height === 'undefined') {\n              height = width;\n            }\n\n            if (typeof detailX === 'undefined') {\n              detailX = 1;\n            }\n            if (typeof detailY === 'undefined') {\n              detailY = 1;\n            }\n\n            var gId = 'plane|'.concat(detailX, '|').concat(detailY);\n\n            if (!this._renderer.geometryInHash(gId)) {\n              var _plane = function _plane() {\n                var u, v, p;\n                for (var i = 0; i <= this.detailY; i++) {\n                  v = i / this.detailY;\n                  for (var j = 0; j <= this.detailX; j++) {\n                    u = j / this.detailX;\n                    p = new _main.default.Vector(u - 0.5, v - 0.5, 0);\n                    this.vertices.push(p);\n                    this.uvs.push(u, v);\n                  }\n                }\n              };\n              var planeGeom = new _main.default.Geometry(detailX, detailY, _plane);\n              planeGeom.computeFaces().computeNormals();\n              if (detailX <= 1 && detailY <= 1) {\n                planeGeom._makeTriangleEdges()._edgesToVertices();\n              } else if (this._renderer._doStroke) {\n                console.log(\n                  'Cannot draw stroke on plane objects with more' +\n                    ' than 1 detailX or 1 detailY'\n                );\n              }\n              this._renderer.createBuffers(gId, planeGeom);\n            }\n\n            this._renderer.drawBuffersScaled(gId, width, height, 1);\n            return this;\n          };\n\n          /**\n           * Draw a box with given width, height and depth\n           * @method  box\n           * @param  {Number} [width]     width of the box\n           * @param  {Number} [Height]    height of the box\n           * @param  {Number} [depth]     depth of the box\n           * @param {Integer} [detailX]  Optional number of triangle\n           *                            subdivisions in x-dimension\n           * @param {Integer} [detailY]  Optional number of triangle\n           *                            subdivisions in y-dimension\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // draw a spinning box\n           * // with width, height and depth of 50\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   box(50);\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.prototype.box = function(width, height, depth, detailX, detailY) {\n            this._assert3d('box');\n            _main.default._validateParameters('box', arguments);\n            if (typeof width === 'undefined') {\n              width = 50;\n            }\n            if (typeof height === 'undefined') {\n              height = width;\n            }\n            if (typeof depth === 'undefined') {\n              depth = height;\n            }\n\n            var perPixelLighting =\n              this._renderer.attributes && this._renderer.attributes.perPixelLighting;\n            if (typeof detailX === 'undefined') {\n              detailX = perPixelLighting ? 1 : 4;\n            }\n            if (typeof detailY === 'undefined') {\n              detailY = perPixelLighting ? 1 : 4;\n            }\n\n            var gId = 'box|'.concat(detailX, '|').concat(detailY);\n            if (!this._renderer.geometryInHash(gId)) {\n              var _box = function _box() {\n                var cubeIndices = [\n                  [0, 4, 2, 6], // -1, 0, 0],// -x\n                  [1, 3, 5, 7], // +1, 0, 0],// +x\n                  [0, 1, 4, 5], // 0, -1, 0],// -y\n                  [2, 6, 3, 7], // 0, +1, 0],// +y\n                  [0, 2, 1, 3], // 0, 0, -1],// -z\n                  [4, 5, 6, 7] // 0, 0, +1] // +z\n                ];\n                //using strokeIndices instead of faces for strokes\n                //to avoid diagonal stroke lines across face of box\n                this.strokeIndices = [\n                  [0, 1],\n                  [1, 3],\n                  [3, 2],\n                  [6, 7],\n                  [8, 9],\n                  [9, 11],\n                  [14, 15],\n                  [16, 17],\n                  [17, 19],\n                  [18, 19],\n                  [20, 21],\n                  [22, 23]\n                ];\n\n                for (var i = 0; i < cubeIndices.length; i++) {\n                  var cubeIndex = cubeIndices[i];\n                  var v = i * 4;\n                  for (var j = 0; j < 4; j++) {\n                    var d = cubeIndex[j];\n                    //inspired by lightgl:\n                    //https://github.com/evanw/lightgl.js\n                    //octants:https://en.wikipedia.org/wiki/Octant_(solid_geometry)\n                    var octant = new _main.default.Vector(\n                      ((d & 1) * 2 - 1) / 2,\n                      ((d & 2) - 1) / 2,\n                      ((d & 4) / 2 - 1) / 2\n                    );\n\n                    this.vertices.push(octant);\n                    this.uvs.push(j & 1, (j & 2) / 2);\n                  }\n                  this.faces.push([v, v + 1, v + 2]);\n                  this.faces.push([v + 2, v + 1, v + 3]);\n                }\n              };\n              var boxGeom = new _main.default.Geometry(detailX, detailY, _box);\n              boxGeom.computeNormals();\n              if (detailX <= 4 && detailY <= 4) {\n                boxGeom._makeTriangleEdges()._edgesToVertices();\n              } else if (this._renderer._doStroke) {\n                console.log(\n                  'Cannot draw stroke on box objects with more' +\n                    ' than 4 detailX or 4 detailY'\n                );\n              }\n              //initialize our geometry buffer with\n              //the key val pair:\n              //geometry Id, Geom object\n              this._renderer.createBuffers(gId, boxGeom);\n            }\n            this._renderer.drawBuffersScaled(gId, width, height, depth);\n\n            return this;\n          };\n\n          /**\n           * Draw a sphere with given radius.\n           *\n           * DetailX and detailY determines the number of subdivisions in the x-dimension\n           * and the y-dimension of a sphere. More subdivisions make the sphere seem\n           * smoother. The recommended maximum values are both 24. Using a value greater\n           * than 24 may cause a warning or slow down the browser.\n           * @method sphere\n           * @param  {Number} [radius]          radius of circle\n           * @param  {Integer} [detailX]        optional number of subdivisions in x-dimension\n           * @param  {Integer} [detailY]        optional number of subdivisions in y-dimension\n           *\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // draw a sphere with radius 40\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(205, 102, 94);\n           *   sphere(40);\n           * }\n           * </code>\n           * </div>\n           *\n           * @example\n           * <div>\n           * <code>\n           * let detailX;\n           * // slide to see how detailX works\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   detailX = createSlider(3, 24, 3);\n           *   detailX.position(10, height + 5);\n           *   detailX.style('width', '80px');\n           * }\n           *\n           * function draw() {\n           *   background(205, 105, 94);\n           *   rotateY(millis() / 1000);\n           *   sphere(40, detailX.value(), 16);\n           * }\n           * </code>\n           * </div>\n           *\n           * @example\n           * <div>\n           * <code>\n           * let detailY;\n           * // slide to see how detailY works\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   detailY = createSlider(3, 16, 3);\n           *   detailY.position(10, height + 5);\n           *   detailY.style('width', '80px');\n           * }\n           *\n           * function draw() {\n           *   background(205, 105, 94);\n           *   rotateY(millis() / 1000);\n           *   sphere(40, 16, detailY.value());\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.prototype.sphere = function(radius, detailX, detailY) {\n            this._assert3d('sphere');\n            _main.default._validateParameters('sphere', arguments);\n            if (typeof radius === 'undefined') {\n              radius = 50;\n            }\n            if (typeof detailX === 'undefined') {\n              detailX = 24;\n            }\n            if (typeof detailY === 'undefined') {\n              detailY = 16;\n            }\n\n            this.ellipsoid(radius, radius, radius, detailX, detailY);\n\n            return this;\n          };\n\n          /**\n           * @private\n           * Helper function for creating both cones and cylinders\n           * Will only generate well-defined geometry when bottomRadius, height > 0\n           * and topRadius >= 0\n           * If topRadius == 0, topCap should be false\n           */\n          var _truncatedCone = function _truncatedCone(\n            bottomRadius,\n            topRadius,\n            height,\n            detailX,\n            detailY,\n            bottomCap,\n            topCap\n          ) {\n            bottomRadius = bottomRadius <= 0 ? 1 : bottomRadius;\n            topRadius = topRadius < 0 ? 0 : topRadius;\n            height = height <= 0 ? bottomRadius : height;\n            detailX = detailX < 3 ? 3 : detailX;\n            detailY = detailY < 1 ? 1 : detailY;\n            bottomCap = bottomCap === undefined ? true : bottomCap;\n            topCap = topCap === undefined ? topRadius !== 0 : topCap;\n            var start = bottomCap ? -2 : 0;\n            var end = detailY + (topCap ? 2 : 0);\n            //ensure constant slant for interior vertex normals\n            var slant = Math.atan2(bottomRadius - topRadius, height);\n            var sinSlant = Math.sin(slant);\n            var cosSlant = Math.cos(slant);\n            var yy, ii, jj;\n            for (yy = start; yy <= end; ++yy) {\n              var v = yy / detailY;\n              var y = height * v;\n              var ringRadius = void 0;\n              if (yy < 0) {\n                //for the bottomCap edge\n                y = 0;\n                v = 0;\n                ringRadius = bottomRadius;\n              } else if (yy > detailY) {\n                //for the topCap edge\n                y = height;\n                v = 1;\n                ringRadius = topRadius;\n              } else {\n                //for the middle\n                ringRadius = bottomRadius + (topRadius - bottomRadius) * v;\n              }\n              if (yy === -2 || yy === detailY + 2) {\n                //center of bottom or top caps\n                ringRadius = 0;\n              }\n\n              y -= height / 2; //shift coordiate origin to the center of object\n              for (ii = 0; ii < detailX; ++ii) {\n                var u = ii / (detailX - 1);\n                var ur = 2 * Math.PI * u;\n                var sur = Math.sin(ur);\n                var cur = Math.cos(ur);\n\n                //VERTICES\n                this.vertices.push(\n                  new _main.default.Vector(sur * ringRadius, y, cur * ringRadius)\n                );\n\n                //VERTEX NORMALS\n                var vertexNormal = void 0;\n                if (yy < 0) {\n                  vertexNormal = new _main.default.Vector(0, -1, 0);\n                } else if (yy > detailY && topRadius) {\n                  vertexNormal = new _main.default.Vector(0, 1, 0);\n                } else {\n                  vertexNormal = new _main.default.Vector(\n                    sur * cosSlant,\n                    sinSlant,\n                    cur * cosSlant\n                  );\n                }\n                this.vertexNormals.push(vertexNormal);\n                //UVs\n                this.uvs.push(u, v);\n              }\n            }\n\n            var startIndex = 0;\n            if (bottomCap) {\n              for (jj = 0; jj < detailX; ++jj) {\n                var nextjj = (jj + 1) % detailX;\n                this.faces.push([\n                  startIndex + jj,\n                  startIndex + detailX + nextjj,\n                  startIndex + detailX + jj\n                ]);\n              }\n              startIndex += detailX * 2;\n            }\n            for (yy = 0; yy < detailY; ++yy) {\n              for (ii = 0; ii < detailX; ++ii) {\n                var nextii = (ii + 1) % detailX;\n                this.faces.push([\n                  startIndex + ii,\n                  startIndex + nextii,\n                  startIndex + detailX + nextii\n                ]);\n\n                this.faces.push([\n                  startIndex + ii,\n                  startIndex + detailX + nextii,\n                  startIndex + detailX + ii\n                ]);\n              }\n              startIndex += detailX;\n            }\n            if (topCap) {\n              startIndex += detailX;\n              for (ii = 0; ii < detailX; ++ii) {\n                this.faces.push([\n                  startIndex + ii,\n                  startIndex + (ii + 1) % detailX,\n                  startIndex + detailX\n                ]);\n              }\n            }\n          };\n\n          /**\n           * Draw a cylinder with given radius and height\n           *\n           * DetailX and detailY determines the number of subdivisions in the x-dimension\n           * and the y-dimension of a cylinder. More subdivisions make the cylinder seem smoother.\n           * The recommended maximum value for detailX is 24. Using a value greater than 24\n           * may cause a warning or slow down the browser.\n           *\n           * @method cylinder\n           * @param  {Number}  [radius]    radius of the surface\n           * @param  {Number}  [height]    height of the cylinder\n           * @param  {Integer} [detailX]   number of subdivisions in x-dimension;\n           *                               default is 24\n           * @param  {Integer} [detailY]   number of subdivisions in y-dimension;\n           *                               default is 1\n           * @param  {Boolean} [bottomCap] whether to draw the bottom of the cylinder\n           * @param  {Boolean} [topCap]    whether to draw the top of the cylinder\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // draw a spinning cylinder\n           * // with radius 20 and height 50\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(205, 105, 94);\n           *   rotateX(frameCount * 0.01);\n           *   rotateZ(frameCount * 0.01);\n           *   cylinder(20, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @example\n           * <div>\n           * <code>\n           * // slide to see how detailX works\n           * let detailX;\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   detailX = createSlider(3, 24, 3);\n           *   detailX.position(10, height + 5);\n           *   detailX.style('width', '80px');\n           * }\n           *\n           * function draw() {\n           *   background(205, 105, 94);\n           *   rotateY(millis() / 1000);\n           *   cylinder(20, 75, detailX.value(), 1);\n           * }\n           * </code>\n           * </div>\n           *\n           * @example\n           * <div>\n           * <code>\n           * // slide to see how detailY works\n           * let detailY;\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   detailY = createSlider(1, 16, 1);\n           *   detailY.position(10, height + 5);\n           *   detailY.style('width', '80px');\n           * }\n           *\n           * function draw() {\n           *   background(205, 105, 94);\n           *   rotateY(millis() / 1000);\n           *   cylinder(20, 75, 16, detailY.value());\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.prototype.cylinder = function(\n            radius,\n            height,\n            detailX,\n            detailY,\n            bottomCap,\n            topCap\n          ) {\n            this._assert3d('cylinder');\n            _main.default._validateParameters('cylinder', arguments);\n            if (typeof radius === 'undefined') {\n              radius = 50;\n            }\n            if (typeof height === 'undefined') {\n              height = radius;\n            }\n            if (typeof detailX === 'undefined') {\n              detailX = 24;\n            }\n            if (typeof detailY === 'undefined') {\n              detailY = 1;\n            }\n            if (typeof topCap === 'undefined') {\n              topCap = true;\n            }\n            if (typeof bottomCap === 'undefined') {\n              bottomCap = true;\n            }\n\n            var gId = 'cylinder|'\n              .concat(detailX, '|')\n              .concat(detailY, '|')\n              .concat(bottomCap, '|')\n              .concat(topCap);\n            if (!this._renderer.geometryInHash(gId)) {\n              var cylinderGeom = new _main.default.Geometry(detailX, detailY);\n              _truncatedCone.call(\n                cylinderGeom,\n                1,\n                1,\n                1,\n                detailX,\n                detailY,\n                bottomCap,\n                topCap\n              );\n\n              // normals are computed in call to _truncatedCone\n              if (detailX <= 24 && detailY <= 16) {\n                cylinderGeom._makeTriangleEdges()._edgesToVertices();\n              } else if (this._renderer._doStroke) {\n                console.log(\n                  'Cannot draw stroke on cylinder objects with more' +\n                    ' than 24 detailX or 16 detailY'\n                );\n              }\n              this._renderer.createBuffers(gId, cylinderGeom);\n            }\n\n            this._renderer.drawBuffersScaled(gId, radius, height, radius);\n\n            return this;\n          };\n\n          /**\n           * Draw a cone with given radius and height\n           *\n           * DetailX and detailY determine the number of subdivisions in the x-dimension and\n           * the y-dimension of a cone. More subdivisions make the cone seem smoother. The\n           * recommended maximum value for detailX is 24. Using a value greater than 24\n           * may cause a warning or slow down the browser.\n           * @method cone\n           * @param  {Number}  [radius]  radius of the bottom surface\n           * @param  {Number}  [height]  height of the cone\n           * @param  {Integer} [detailX] number of segments,\n           *                             the more segments the smoother geometry\n           *                             default is 24\n           * @param  {Integer} [detailY] number of segments,\n           *                             the more segments the smoother geometry\n           *                             default is 1\n           * @param  {Boolean} [cap]     whether to draw the base of the cone\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // draw a spinning cone\n           * // with radius 40 and height 70\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   rotateX(frameCount * 0.01);\n           *   rotateZ(frameCount * 0.01);\n           *   cone(40, 70);\n           * }\n           * </code>\n           * </div>\n           *\n           * @example\n           * <div>\n           * <code>\n           * // slide to see how detailx works\n           * let detailX;\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   detailX = createSlider(3, 16, 3);\n           *   detailX.position(10, height + 5);\n           *   detailX.style('width', '80px');\n           * }\n           *\n           * function draw() {\n           *   background(205, 102, 94);\n           *   rotateY(millis() / 1000);\n           *   cone(30, 65, detailX.value(), 16);\n           * }\n           * </code>\n           * </div>\n           *\n           * @example\n           * <div>\n           * <code>\n           * // slide to see how detailY works\n           * let detailY;\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   detailY = createSlider(3, 16, 3);\n           *   detailY.position(10, height + 5);\n           *   detailY.style('width', '80px');\n           * }\n           *\n           * function draw() {\n           *   background(205, 102, 94);\n           *   rotateY(millis() / 1000);\n           *   cone(30, 65, 16, detailY.value());\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.prototype.cone = function(radius, height, detailX, detailY, cap) {\n            this._assert3d('cone');\n            _main.default._validateParameters('cone', arguments);\n            if (typeof radius === 'undefined') {\n              radius = 50;\n            }\n            if (typeof height === 'undefined') {\n              height = radius;\n            }\n            if (typeof detailX === 'undefined') {\n              detailX = 24;\n            }\n            if (typeof detailY === 'undefined') {\n              detailY = 1;\n            }\n            if (typeof cap === 'undefined') {\n              cap = true;\n            }\n\n            var gId = 'cone|'\n              .concat(detailX, '|')\n              .concat(detailY, '|')\n              .concat(cap);\n            if (!this._renderer.geometryInHash(gId)) {\n              var coneGeom = new _main.default.Geometry(detailX, detailY);\n              _truncatedCone.call(coneGeom, 1, 0, 1, detailX, detailY, cap, false);\n              if (detailX <= 24 && detailY <= 16) {\n                coneGeom._makeTriangleEdges()._edgesToVertices();\n              } else if (this._renderer._doStroke) {\n                console.log(\n                  'Cannot draw stroke on cone objects with more' +\n                    ' than 24 detailX or 16 detailY'\n                );\n              }\n              this._renderer.createBuffers(gId, coneGeom);\n            }\n\n            this._renderer.drawBuffersScaled(gId, radius, height, radius);\n\n            return this;\n          };\n\n          /**\n           * Draw an ellipsoid with given radius\n           *\n           * DetailX and detailY determine the number of subdivisions in the x-dimension and\n           * the y-dimension of a cone. More subdivisions make the ellipsoid appear to be smoother.\n           * Avoid detail number above 150, it may crash the browser.\n           * @method ellipsoid\n           * @param  {Number} [radiusx]         x-radius of ellipsoid\n           * @param  {Number} [radiusy]         y-radius of ellipsoid\n           * @param  {Number} [radiusz]         z-radius of ellipsoid\n           * @param  {Integer} [detailX]        number of segments,\n           *                                    the more segments the smoother geometry\n           *                                    default is 24. Avoid detail number above\n           *                                    150, it may crash the browser.\n           * @param  {Integer} [detailY]        number of segments,\n           *                                    the more segments the smoother geometry\n           *                                    default is 16. Avoid detail number above\n           *                                    150, it may crash the browser.\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // draw an ellipsoid\n           * // with radius 30, 40 and 40.\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(205, 105, 94);\n           *   ellipsoid(30, 40, 40);\n           * }\n           * </code>\n           * </div>\n           *\n           * @example\n           * <div>\n           * <code>\n           * // slide to see how detailX works\n           * let detailX;\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   detailX = createSlider(2, 24, 12);\n           *   detailX.position(10, height + 5);\n           *   detailX.style('width', '80px');\n           * }\n           *\n           * function draw() {\n           *   background(205, 105, 94);\n           *   rotateY(millis() / 1000);\n           *   ellipsoid(30, 40, 40, detailX.value(), 8);\n           * }\n           * </code>\n           * </div>\n           *\n           * @example\n           * <div>\n           * <code>\n           * // slide to see how detailY works\n           * let detailY;\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   detailY = createSlider(2, 24, 6);\n           *   detailY.position(10, height + 5);\n           *   detailY.style('width', '80px');\n           * }\n           *\n           * function draw() {\n           *   background(205, 105, 9);\n           *   rotateY(millis() / 1000);\n           *   ellipsoid(30, 40, 40, 12, detailY.value());\n           * }\n           * </code>\n           * </div>\n           *\n           */\n          _main.default.prototype.ellipsoid = function(\n            radiusX,\n            radiusY,\n            radiusZ,\n            detailX,\n            detailY\n          ) {\n            this._assert3d('ellipsoid');\n            _main.default._validateParameters('ellipsoid', arguments);\n            if (typeof radiusX === 'undefined') {\n              radiusX = 50;\n            }\n            if (typeof radiusY === 'undefined') {\n              radiusY = radiusX;\n            }\n            if (typeof radiusZ === 'undefined') {\n              radiusZ = radiusX;\n            }\n\n            if (typeof detailX === 'undefined') {\n              detailX = 24;\n            }\n            if (typeof detailY === 'undefined') {\n              detailY = 16;\n            }\n\n            var gId = 'ellipsoid|'.concat(detailX, '|').concat(detailY);\n\n            if (!this._renderer.geometryInHash(gId)) {\n              var _ellipsoid = function _ellipsoid() {\n                for (var i = 0; i <= this.detailY; i++) {\n                  var v = i / this.detailY;\n                  var phi = Math.PI * v - Math.PI / 2;\n                  var cosPhi = Math.cos(phi);\n                  var sinPhi = Math.sin(phi);\n\n                  for (var j = 0; j <= this.detailX; j++) {\n                    var u = j / this.detailX;\n                    var theta = 2 * Math.PI * u;\n                    var cosTheta = Math.cos(theta);\n                    var sinTheta = Math.sin(theta);\n                    var p = new _main.default.Vector(\n                      cosPhi * sinTheta,\n                      sinPhi,\n                      cosPhi * cosTheta\n                    );\n                    this.vertices.push(p);\n                    this.vertexNormals.push(p);\n                    this.uvs.push(u, v);\n                  }\n                }\n              };\n              var ellipsoidGeom = new _main.default.Geometry(detailX, detailY, _ellipsoid);\n              ellipsoidGeom.computeFaces();\n              if (detailX <= 24 && detailY <= 24) {\n                ellipsoidGeom._makeTriangleEdges()._edgesToVertices();\n              } else if (this._renderer._doStroke) {\n                console.log(\n                  'Cannot draw stroke on ellipsoids with more' +\n                    ' than 24 detailX or 24 detailY'\n                );\n              }\n              this._renderer.createBuffers(gId, ellipsoidGeom);\n            }\n\n            this._renderer.drawBuffersScaled(gId, radiusX, radiusY, radiusZ);\n\n            return this;\n          };\n\n          /**\n           * Draw a torus with given radius and tube radius\n           *\n           * DetailX and detailY determine the number of subdivisions in the x-dimension and\n           * the y-dimension of a torus. More subdivisions make the torus appear to be smoother.\n           * The default and maximum values for detailX and detailY are 24 and 16, respectively.\n           * Setting them to relatively small values like 4 and 6 allows you to create new\n           * shapes other than a torus.\n           * @method torus\n           * @param  {Number} [radius]      radius of the whole ring\n           * @param  {Number} [tubeRadius]  radius of the tube\n           * @param  {Integer} [detailX]    number of segments in x-dimension,\n           *                                the more segments the smoother geometry\n           *                                default is 24\n           * @param  {Integer} [detailY]    number of segments in y-dimension,\n           *                                the more segments the smoother geometry\n           *                                default is 16\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * // draw a spinning torus\n           * // with ring radius 30 and tube radius 15\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(205, 102, 94);\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   torus(30, 15);\n           * }\n           * </code>\n           * </div>\n           *\n           * @example\n           * <div>\n           * <code>\n           * // slide to see how detailX works\n           * let detailX;\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   detailX = createSlider(3, 24, 3);\n           *   detailX.position(10, height + 5);\n           *   detailX.style('width', '80px');\n           * }\n           *\n           * function draw() {\n           *   background(205, 102, 94);\n           *   rotateY(millis() / 1000);\n           *   torus(30, 15, detailX.value(), 12);\n           * }\n           * </code>\n           * </div>\n           *\n           * @example\n           * <div>\n           * <code>\n           * // slide to see how detailY works\n           * let detailY;\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   detailY = createSlider(3, 16, 3);\n           *   detailY.position(10, height + 5);\n           *   detailY.style('width', '80px');\n           * }\n           *\n           * function draw() {\n           *   background(205, 102, 94);\n           *   rotateY(millis() / 1000);\n           *   torus(30, 15, 16, detailY.value());\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.prototype.torus = function(radius, tubeRadius, detailX, detailY) {\n            this._assert3d('torus');\n            _main.default._validateParameters('torus', arguments);\n            if (typeof radius === 'undefined') {\n              radius = 50;\n            } else if (!radius) {\n              return; // nothing to draw\n            }\n\n            if (typeof tubeRadius === 'undefined') {\n              tubeRadius = 10;\n            } else if (!tubeRadius) {\n              return; // nothing to draw\n            }\n\n            if (typeof detailX === 'undefined') {\n              detailX = 24;\n            }\n            if (typeof detailY === 'undefined') {\n              detailY = 16;\n            }\n\n            var tubeRatio = (tubeRadius / radius).toPrecision(4);\n            var gId = 'torus|'\n              .concat(tubeRatio, '|')\n              .concat(detailX, '|')\n              .concat(detailY);\n\n            if (!this._renderer.geometryInHash(gId)) {\n              var _torus = function _torus() {\n                for (var i = 0; i <= this.detailY; i++) {\n                  var v = i / this.detailY;\n                  var phi = 2 * Math.PI * v;\n                  var cosPhi = Math.cos(phi);\n                  var sinPhi = Math.sin(phi);\n                  var r = 1 + tubeRatio * cosPhi;\n\n                  for (var j = 0; j <= this.detailX; j++) {\n                    var u = j / this.detailX;\n                    var theta = 2 * Math.PI * u;\n                    var cosTheta = Math.cos(theta);\n                    var sinTheta = Math.sin(theta);\n\n                    var p = new _main.default.Vector(\n                      r * cosTheta,\n                      r * sinTheta,\n                      tubeRatio * sinPhi\n                    );\n\n                    var n = new _main.default.Vector(\n                      cosPhi * cosTheta,\n                      cosPhi * sinTheta,\n                      sinPhi\n                    );\n\n                    this.vertices.push(p);\n                    this.vertexNormals.push(n);\n                    this.uvs.push(u, v);\n                  }\n                }\n              };\n              var torusGeom = new _main.default.Geometry(detailX, detailY, _torus);\n              torusGeom.computeFaces();\n              if (detailX <= 24 && detailY <= 16) {\n                torusGeom._makeTriangleEdges()._edgesToVertices();\n              } else if (this._renderer._doStroke) {\n                console.log(\n                  'Cannot draw strokes on torus object with more' +\n                    ' than 24 detailX or 16 detailY'\n                );\n              }\n              this._renderer.createBuffers(gId, torusGeom);\n            }\n            this._renderer.drawBuffersScaled(gId, radius, radius, radius);\n\n            return this;\n          };\n\n          ///////////////////////\n          /// 2D primitives\n          /////////////////////////\n\n          /**\n           * Draws a point, a coordinate in space at the dimension of one pixel,\n           * given x, y and z coordinates. The color of the point is determined\n           * by the current stroke, while the point size is determined by current\n           * stroke weight.\n           * @private\n           * @param {Number} x x-coordinate of point\n           * @param {Number} y y-coordinate of point\n           * @param {Number} z z-coordinate of point\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(50);\n           *   stroke(255);\n           *   strokeWeight(4);\n           *   point(25, 0);\n           *   strokeWeight(3);\n           *   point(-25, 0);\n           *   strokeWeight(2);\n           *   point(0, 25);\n           *   strokeWeight(1);\n           *   point(0, -25);\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.RendererGL.prototype.point = function(x, y, z) {\n            if (typeof z === 'undefined') {\n              z = 0;\n            }\n\n            var _vertex = [];\n            _vertex.push(new _main.default.Vector(x, y, z));\n            this._drawPoints(_vertex, this.immediateMode.buffers.point);\n\n            return this;\n          };\n\n          _main.default.RendererGL.prototype.triangle = function(args) {\n            var x1 = args[0],\n              y1 = args[1];\n            var x2 = args[2],\n              y2 = args[3];\n            var x3 = args[4],\n              y3 = args[5];\n\n            var gId = 'tri';\n            if (!this.geometryInHash(gId)) {\n              var _triangle = function _triangle() {\n                var vertices = [];\n                vertices.push(new _main.default.Vector(0, 0, 0));\n                vertices.push(new _main.default.Vector(0, 1, 0));\n                vertices.push(new _main.default.Vector(1, 0, 0));\n                this.strokeIndices = [[0, 1], [1, 2], [2, 0]];\n                this.vertices = vertices;\n                this.faces = [[0, 1, 2]];\n                this.uvs = [0, 0, 0, 1, 1, 1];\n              };\n              var triGeom = new _main.default.Geometry(1, 1, _triangle);\n              triGeom._makeTriangleEdges()._edgesToVertices();\n              triGeom.computeNormals();\n              this.createBuffers(gId, triGeom);\n            }\n\n            // only one triangle is cached, one point is at the origin, and the\n            // two adjacent sides are tne unit vectors along the X & Y axes.\n            //\n            // this matrix multiplication transforms those two unit vectors\n            // onto the required vector prior to rendering, and moves the\n            // origin appropriately.\n            var uMVMatrix = this.uMVMatrix.copy();\n            try {\n              // prettier-ignore\n              var mult = new _main.default.Matrix([\n    x2 - x1, y2 - y1, 0, 0, // the resulting unit X-axis\n    x3 - x1, y3 - y1, 0, 0, // the resulting unit Y-axis\n    0, 0, 1, 0, // the resulting unit Z-axis (unchanged)\n    x1, y1, 0, 1 // the resulting origin\n    ]).mult(this.uMVMatrix);\n\n              this.uMVMatrix = mult;\n\n              this.drawBuffers(gId);\n            } finally {\n              this.uMVMatrix = uMVMatrix;\n            }\n\n            return this;\n          };\n\n          _main.default.RendererGL.prototype.ellipse = function(args) {\n            this.arc(\n              args[0],\n              args[1],\n              args[2],\n              args[3],\n              0,\n              constants.TWO_PI,\n              constants.OPEN,\n              args[4]\n            );\n          };\n\n          _main.default.RendererGL.prototype.arc = function(args) {\n            var x = arguments[0];\n            var y = arguments[1];\n            var width = arguments[2];\n            var height = arguments[3];\n            var start = arguments[4];\n            var stop = arguments[5];\n            var mode = arguments[6];\n            var detail = arguments[7] || 25;\n\n            var shape;\n            var gId;\n\n            // check if it is an ellipse or an arc\n            if (Math.abs(stop - start) >= constants.TWO_PI) {\n              shape = 'ellipse';\n              gId = ''.concat(shape, '|').concat(detail, '|');\n            } else {\n              shape = 'arc';\n              gId = ''\n                .concat(shape, '|')\n                .concat(start, '|')\n                .concat(stop, '|')\n                .concat(mode, '|')\n                .concat(detail, '|');\n            }\n\n            if (!this.geometryInHash(gId)) {\n              var _arc = function _arc() {\n                this.strokeIndices = [];\n\n                // if the start and stop angles are not the same, push vertices to the array\n                if (start.toFixed(10) !== stop.toFixed(10)) {\n                  // if the mode specified is PIE or null, push the mid point of the arc in vertices\n                  if (mode === constants.PIE || typeof mode === 'undefined') {\n                    this.vertices.push(new _main.default.Vector(0.5, 0.5, 0));\n                    this.uvs.push([0.5, 0.5]);\n                  }\n\n                  // vertices for the perimeter of the circle\n                  for (var i = 0; i <= detail; i++) {\n                    var u = i / detail;\n                    var theta = (stop - start) * u + start;\n\n                    var _x = 0.5 + Math.cos(theta) / 2;\n                    var _y = 0.5 + Math.sin(theta) / 2;\n\n                    this.vertices.push(new _main.default.Vector(_x, _y, 0));\n                    this.uvs.push([_x, _y]);\n\n                    if (i < detail - 1) {\n                      this.faces.push([0, i + 1, i + 2]);\n                      this.strokeIndices.push([i + 1, i + 2]);\n                    }\n                  }\n\n                  // check the mode specified in order to push vertices and faces, different for each mode\n                  switch (mode) {\n                    case constants.PIE:\n                      this.faces.push([\n                        0,\n                        this.vertices.length - 2,\n                        this.vertices.length - 1\n                      ]);\n\n                      this.strokeIndices.push([0, 1]);\n                      this.strokeIndices.push([\n                        this.vertices.length - 2,\n                        this.vertices.length - 1\n                      ]);\n\n                      this.strokeIndices.push([0, this.vertices.length - 1]);\n                      break;\n\n                    case constants.CHORD:\n                      this.strokeIndices.push([0, 1]);\n                      this.strokeIndices.push([0, this.vertices.length - 1]);\n                      break;\n\n                    case constants.OPEN:\n                      this.strokeIndices.push([0, 1]);\n                      break;\n\n                    default:\n                      this.faces.push([\n                        0,\n                        this.vertices.length - 2,\n                        this.vertices.length - 1\n                      ]);\n\n                      this.strokeIndices.push([\n                        this.vertices.length - 2,\n                        this.vertices.length - 1\n                      ]);\n                  }\n                }\n              };\n\n              var arcGeom = new _main.default.Geometry(detail, 1, _arc);\n              arcGeom.computeNormals();\n\n              if (detail <= 50) {\n                arcGeom._makeTriangleEdges()._edgesToVertices(arcGeom);\n              } else if (this._renderer._doStroke) {\n                console.log('Cannot stroke ${shape} with more than 50 detail');\n              }\n\n              this.createBuffers(gId, arcGeom);\n            }\n\n            var uMVMatrix = this.uMVMatrix.copy();\n\n            try {\n              this.uMVMatrix.translate([x, y, 0]);\n              this.uMVMatrix.scale(width, height, 1);\n\n              this.drawBuffers(gId);\n            } finally {\n              this.uMVMatrix = uMVMatrix;\n            }\n\n            return this;\n          };\n\n          _main.default.RendererGL.prototype.rect = function(args) {\n            var perPixelLighting = this._pInst._glAttributes.perPixelLighting;\n            var x = args[0];\n            var y = args[1];\n            var width = args[2];\n            var height = args[3];\n            var detailX = args[4] || (perPixelLighting ? 1 : 24);\n            var detailY = args[5] || (perPixelLighting ? 1 : 16);\n            var gId = 'rect|'.concat(detailX, '|').concat(detailY);\n            if (!this.geometryInHash(gId)) {\n              var _rect = function _rect() {\n                for (var i = 0; i <= this.detailY; i++) {\n                  var v = i / this.detailY;\n                  for (var j = 0; j <= this.detailX; j++) {\n                    var u = j / this.detailX;\n                    var p = new _main.default.Vector(u, v, 0);\n                    this.vertices.push(p);\n                    this.uvs.push(u, v);\n                  }\n                }\n                // using stroke indices to avoid stroke over face(s) of rectangle\n                if (detailX > 0 && detailY > 0) {\n                  this.strokeIndices = [\n                    [0, detailX],\n                    [detailX, (detailX + 1) * (detailY + 1) - 1],\n                    [(detailX + 1) * (detailY + 1) - 1, (detailX + 1) * detailY],\n                    [(detailX + 1) * detailY, 0]\n                  ];\n                }\n              };\n              var rectGeom = new _main.default.Geometry(detailX, detailY, _rect);\n              rectGeom\n                .computeFaces()\n                .computeNormals()\n                ._makeTriangleEdges()\n                ._edgesToVertices();\n              this.createBuffers(gId, rectGeom);\n            }\n\n            // only a single rectangle (of a given detail) is cached: a square with\n            // opposite corners at (0,0) & (1,1).\n            //\n            // before rendering, this square is scaled & moved to the required location.\n            var uMVMatrix = this.uMVMatrix.copy();\n            try {\n              this.uMVMatrix.translate([x, y, 0]);\n              this.uMVMatrix.scale(width, height, 1);\n\n              this.drawBuffers(gId);\n            } finally {\n              this.uMVMatrix = uMVMatrix;\n            }\n            return this;\n          };\n\n          // prettier-ignore\n          _main.default.RendererGL.prototype.quad = function (x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4) {\n  var gId = \"quad|\".concat(\n  x1, \"|\").concat(y1, \"|\").concat(z1, \"|\").concat(x2, \"|\").concat(y2, \"|\").concat(z2, \"|\").concat(x3, \"|\").concat(y3, \"|\").concat(z3, \"|\").concat(x4, \"|\").concat(y4, \"|\").concat(z4);\n  if (!this.geometryInHash(gId)) {\n    var _quad = function _quad() {\n      this.vertices.push(new _main.default.Vector(x1, y1, z1));\n      this.vertices.push(new _main.default.Vector(x2, y2, z2));\n      this.vertices.push(new _main.default.Vector(x3, y3, z3));\n      this.vertices.push(new _main.default.Vector(x4, y4, z4));\n      this.uvs.push(0, 0, 1, 0, 1, 1, 0, 1);\n      this.strokeIndices = [[0, 1], [1, 2], [2, 3], [3, 0]];\n    };\n    var quadGeom = new _main.default.Geometry(2, 2, _quad);\n    quadGeom.\n    computeNormals().\n    _makeTriangleEdges().\n    _edgesToVertices();\n    quadGeom.faces = [[0, 1, 2], [2, 3, 0]];\n    this.createBuffers(gId, quadGeom);\n  }\n  this.drawBuffers(gId);\n  return this;\n};\n\n          //this implementation of bezier curve\n          //is based on Bernstein polynomial\n          // pretier-ignore\n          _main.default.RendererGL.prototype.bezier = function(\n            x1,\n            y1,\n            z1, // x2\n            x2, // y2\n            y2, // x3\n            z2, // y3\n            x3, // x4\n            y3, // y4\n            z3,\n            x4,\n            y4,\n            z4\n          ) {\n            if (arguments.length === 8) {\n              y4 = y3;\n              x4 = x3;\n              y3 = z2;\n              x3 = y2;\n              y2 = x2;\n              x2 = z1;\n              z1 = z2 = z3 = z4 = 0;\n            }\n            var bezierDetail = this._pInst._bezierDetail || 20; //value of Bezier detail\n            this.beginShape();\n            for (var i = 0; i <= bezierDetail; i++) {\n              var c1 = Math.pow(1 - i / bezierDetail, 3);\n              var c2 = 3 * (i / bezierDetail) * Math.pow(1 - i / bezierDetail, 2);\n              var c3 = 3 * Math.pow(i / bezierDetail, 2) * (1 - i / bezierDetail);\n              var c4 = Math.pow(i / bezierDetail, 3);\n              this.vertex(\n                x1 * c1 + x2 * c2 + x3 * c3 + x4 * c4,\n                y1 * c1 + y2 * c2 + y3 * c3 + y4 * c4,\n                z1 * c1 + z2 * c2 + z3 * c3 + z4 * c4\n              );\n            }\n            this.endShape();\n            return this;\n          };\n\n          // pretier-ignore\n          _main.default.RendererGL.prototype.curve = function(\n            x1,\n            y1,\n            z1, // x2\n            x2, // y2\n            y2, // x3\n            z2, // y3\n            x3, // x4\n            y3, // y4\n            z3,\n            x4,\n            y4,\n            z4\n          ) {\n            if (arguments.length === 8) {\n              x4 = x3;\n              y4 = y3;\n              x3 = y2;\n              y3 = x2;\n              x2 = z1;\n              y2 = x2;\n              z1 = z2 = z3 = z4 = 0;\n            }\n            var curveDetail = this._pInst._curveDetail;\n            this.beginShape();\n            for (var i = 0; i <= curveDetail; i++) {\n              var c1 = Math.pow(i / curveDetail, 3) * 0.5;\n              var c2 = Math.pow(i / curveDetail, 2) * 0.5;\n              var c3 = i / curveDetail * 0.5;\n              var c4 = 0.5;\n              var vx =\n                c1 * (-x1 + 3 * x2 - 3 * x3 + x4) +\n                c2 * (2 * x1 - 5 * x2 + 4 * x3 - x4) +\n                c3 * (-x1 + x3) +\n                c4 * (2 * x2);\n              var vy =\n                c1 * (-y1 + 3 * y2 - 3 * y3 + y4) +\n                c2 * (2 * y1 - 5 * y2 + 4 * y3 - y4) +\n                c3 * (-y1 + y3) +\n                c4 * (2 * y2);\n              var vz =\n                c1 * (-z1 + 3 * z2 - 3 * z3 + z4) +\n                c2 * (2 * z1 - 5 * z2 + 4 * z3 - z4) +\n                c3 * (-z1 + z3) +\n                c4 * (2 * z2);\n              this.vertex(vx, vy, vz);\n            }\n            this.endShape();\n            return this;\n          };\n\n          /**\n           * Draw a line given two points\n           * @private\n           * @param {Number} x0 x-coordinate of first vertex\n           * @param {Number} y0 y-coordinate of first vertex\n           * @param {Number} z0 z-coordinate of first vertex\n           * @param {Number} x1 x-coordinate of second vertex\n           * @param {Number} y1 y-coordinate of second vertex\n           * @param {Number} z1 z-coordinate of second vertex\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * //draw a line\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   // Use fill instead of stroke to change the color of shape.\n           *   fill(255, 0, 0);\n           *   line(10, 10, 0, 60, 60, 20);\n           * }\n           * </code>\n           * </div>\n           */\n          _main.default.RendererGL.prototype.line = function() {\n            if (arguments.length === 6) {\n              this.beginShape(constants.LINES);\n              this.vertex(\n                arguments.length <= 0 ? undefined : arguments[0],\n                arguments.length <= 1 ? undefined : arguments[1],\n                arguments.length <= 2 ? undefined : arguments[2]\n              );\n              this.vertex(\n                arguments.length <= 3 ? undefined : arguments[3],\n                arguments.length <= 4 ? undefined : arguments[4],\n                arguments.length <= 5 ? undefined : arguments[5]\n              );\n              this.endShape();\n            } else if (arguments.length === 4) {\n              this.beginShape(constants.LINES);\n              this.vertex(\n                arguments.length <= 0 ? undefined : arguments[0],\n                arguments.length <= 1 ? undefined : arguments[1],\n                0\n              );\n              this.vertex(\n                arguments.length <= 2 ? undefined : arguments[2],\n                arguments.length <= 3 ? undefined : arguments[3],\n                0\n              );\n              this.endShape();\n            }\n            return this;\n          };\n\n          _main.default.RendererGL.prototype.bezierVertex = function() {\n            if (this.immediateMode._bezierVertex.length === 0) {\n              throw Error('vertex() must be used once before calling bezierVertex()');\n            } else {\n              var w_x = [];\n              var w_y = [];\n              var w_z = [];\n              var t, _x, _y, _z, i;\n              var argLength = arguments.length;\n\n              t = 0;\n\n              if (\n                this._lookUpTableBezier.length === 0 ||\n                this._lutBezierDetail !== this._pInst._curveDetail\n              ) {\n                this._lookUpTableBezier = [];\n                this._lutBezierDetail = this._pInst._curveDetail;\n                var step = 1 / this._lutBezierDetail;\n                var start = 0;\n                var end = 1;\n                var j = 0;\n                while (start < 1) {\n                  t = parseFloat(start.toFixed(6));\n                  this._lookUpTableBezier[j] = this._bezierCoefficients(t);\n                  if (end.toFixed(6) === step.toFixed(6)) {\n                    t = parseFloat(end.toFixed(6)) + parseFloat(start.toFixed(6));\n                    ++j;\n                    this._lookUpTableBezier[j] = this._bezierCoefficients(t);\n                    break;\n                  }\n                  start += step;\n                  end -= step;\n                  ++j;\n                }\n              }\n\n              var LUTLength = this._lookUpTableBezier.length;\n\n              if (argLength === 6) {\n                this.isBezier = true;\n\n                w_x = [\n                  this.immediateMode._bezierVertex[0],\n                  arguments.length <= 0 ? undefined : arguments[0],\n                  arguments.length <= 2 ? undefined : arguments[2],\n                  arguments.length <= 4 ? undefined : arguments[4]\n                ];\n                w_y = [\n                  this.immediateMode._bezierVertex[1],\n                  arguments.length <= 1 ? undefined : arguments[1],\n                  arguments.length <= 3 ? undefined : arguments[3],\n                  arguments.length <= 5 ? undefined : arguments[5]\n                ];\n\n                for (i = 0; i < LUTLength; i++) {\n                  _x =\n                    w_x[0] * this._lookUpTableBezier[i][0] +\n                    w_x[1] * this._lookUpTableBezier[i][1] +\n                    w_x[2] * this._lookUpTableBezier[i][2] +\n                    w_x[3] * this._lookUpTableBezier[i][3];\n                  _y =\n                    w_y[0] * this._lookUpTableBezier[i][0] +\n                    w_y[1] * this._lookUpTableBezier[i][1] +\n                    w_y[2] * this._lookUpTableBezier[i][2] +\n                    w_y[3] * this._lookUpTableBezier[i][3];\n                  this.vertex(_x, _y);\n                }\n                this.immediateMode._bezierVertex[0] =\n                  arguments.length <= 4 ? undefined : arguments[4];\n                this.immediateMode._bezierVertex[1] =\n                  arguments.length <= 5 ? undefined : arguments[5];\n              } else if (argLength === 9) {\n                this.isBezier = true;\n\n                w_x = [\n                  this.immediateMode._bezierVertex[0],\n                  arguments.length <= 0 ? undefined : arguments[0],\n                  arguments.length <= 3 ? undefined : arguments[3],\n                  arguments.length <= 6 ? undefined : arguments[6]\n                ];\n                w_y = [\n                  this.immediateMode._bezierVertex[1],\n                  arguments.length <= 1 ? undefined : arguments[1],\n                  arguments.length <= 4 ? undefined : arguments[4],\n                  arguments.length <= 7 ? undefined : arguments[7]\n                ];\n                w_z = [\n                  this.immediateMode._bezierVertex[2],\n                  arguments.length <= 2 ? undefined : arguments[2],\n                  arguments.length <= 5 ? undefined : arguments[5],\n                  arguments.length <= 8 ? undefined : arguments[8]\n                ];\n                for (i = 0; i < LUTLength; i++) {\n                  _x =\n                    w_x[0] * this._lookUpTableBezier[i][0] +\n                    w_x[1] * this._lookUpTableBezier[i][1] +\n                    w_x[2] * this._lookUpTableBezier[i][2] +\n                    w_x[3] * this._lookUpTableBezier[i][3];\n                  _y =\n                    w_y[0] * this._lookUpTableBezier[i][0] +\n                    w_y[1] * this._lookUpTableBezier[i][1] +\n                    w_y[2] * this._lookUpTableBezier[i][2] +\n                    w_y[3] * this._lookUpTableBezier[i][3];\n                  _z =\n                    w_z[0] * this._lookUpTableBezier[i][0] +\n                    w_z[1] * this._lookUpTableBezier[i][1] +\n                    w_z[2] * this._lookUpTableBezier[i][2] +\n                    w_z[3] * this._lookUpTableBezier[i][3];\n                  this.vertex(_x, _y, _z);\n                }\n                this.immediateMode._bezierVertex[0] =\n                  arguments.length <= 6 ? undefined : arguments[6];\n                this.immediateMode._bezierVertex[1] =\n                  arguments.length <= 7 ? undefined : arguments[7];\n                this.immediateMode._bezierVertex[2] =\n                  arguments.length <= 8 ? undefined : arguments[8];\n              }\n            }\n          };\n\n          _main.default.RendererGL.prototype.quadraticVertex = function() {\n            if (this.immediateMode._quadraticVertex.length === 0) {\n              throw Error('vertex() must be used once before calling quadraticVertex()');\n            } else {\n              var w_x = [];\n              var w_y = [];\n              var w_z = [];\n              var t, _x, _y, _z, i;\n              var argLength = arguments.length;\n\n              t = 0;\n\n              if (\n                this._lookUpTableQuadratic.length === 0 ||\n                this._lutQuadraticDetail !== this._pInst._curveDetail\n              ) {\n                this._lookUpTableQuadratic = [];\n                this._lutQuadraticDetail = this._pInst._curveDetail;\n                var step = 1 / this._lutQuadraticDetail;\n                var start = 0;\n                var end = 1;\n                var j = 0;\n                while (start < 1) {\n                  t = parseFloat(start.toFixed(6));\n                  this._lookUpTableQuadratic[j] = this._quadraticCoefficients(t);\n                  if (end.toFixed(6) === step.toFixed(6)) {\n                    t = parseFloat(end.toFixed(6)) + parseFloat(start.toFixed(6));\n                    ++j;\n                    this._lookUpTableQuadratic[j] = this._quadraticCoefficients(t);\n                    break;\n                  }\n                  start += step;\n                  end -= step;\n                  ++j;\n                }\n              }\n\n              var LUTLength = this._lookUpTableQuadratic.length;\n\n              if (argLength === 4) {\n                this.isQuadratic = true;\n\n                w_x = [\n                  this.immediateMode._quadraticVertex[0],\n                  arguments.length <= 0 ? undefined : arguments[0],\n                  arguments.length <= 2 ? undefined : arguments[2]\n                ];\n                w_y = [\n                  this.immediateMode._quadraticVertex[1],\n                  arguments.length <= 1 ? undefined : arguments[1],\n                  arguments.length <= 3 ? undefined : arguments[3]\n                ];\n\n                for (i = 0; i < LUTLength; i++) {\n                  _x =\n                    w_x[0] * this._lookUpTableQuadratic[i][0] +\n                    w_x[1] * this._lookUpTableQuadratic[i][1] +\n                    w_x[2] * this._lookUpTableQuadratic[i][2];\n                  _y =\n                    w_y[0] * this._lookUpTableQuadratic[i][0] +\n                    w_y[1] * this._lookUpTableQuadratic[i][1] +\n                    w_y[2] * this._lookUpTableQuadratic[i][2];\n                  this.vertex(_x, _y);\n                }\n\n                this.immediateMode._quadraticVertex[0] =\n                  arguments.length <= 2 ? undefined : arguments[2];\n                this.immediateMode._quadraticVertex[1] =\n                  arguments.length <= 3 ? undefined : arguments[3];\n              } else if (argLength === 6) {\n                this.isQuadratic = true;\n\n                w_x = [\n                  this.immediateMode._quadraticVertex[0],\n                  arguments.length <= 0 ? undefined : arguments[0],\n                  arguments.length <= 3 ? undefined : arguments[3]\n                ];\n                w_y = [\n                  this.immediateMode._quadraticVertex[1],\n                  arguments.length <= 1 ? undefined : arguments[1],\n                  arguments.length <= 4 ? undefined : arguments[4]\n                ];\n                w_z = [\n                  this.immediateMode._quadraticVertex[2],\n                  arguments.length <= 2 ? undefined : arguments[2],\n                  arguments.length <= 5 ? undefined : arguments[5]\n                ];\n\n                for (i = 0; i < LUTLength; i++) {\n                  _x =\n                    w_x[0] * this._lookUpTableQuadratic[i][0] +\n                    w_x[1] * this._lookUpTableQuadratic[i][1] +\n                    w_x[2] * this._lookUpTableQuadratic[i][2];\n                  _y =\n                    w_y[0] * this._lookUpTableQuadratic[i][0] +\n                    w_y[1] * this._lookUpTableQuadratic[i][1] +\n                    w_y[2] * this._lookUpTableQuadratic[i][2];\n                  _z =\n                    w_z[0] * this._lookUpTableQuadratic[i][0] +\n                    w_z[1] * this._lookUpTableQuadratic[i][1] +\n                    w_z[2] * this._lookUpTableQuadratic[i][2];\n                  this.vertex(_x, _y, _z);\n                }\n\n                this.immediateMode._quadraticVertex[0] =\n                  arguments.length <= 3 ? undefined : arguments[3];\n                this.immediateMode._quadraticVertex[1] =\n                  arguments.length <= 4 ? undefined : arguments[4];\n                this.immediateMode._quadraticVertex[2] =\n                  arguments.length <= 5 ? undefined : arguments[5];\n              }\n            }\n          };\n\n          _main.default.RendererGL.prototype.curveVertex = function() {\n            var w_x = [];\n            var w_y = [];\n            var w_z = [];\n            var t, _x, _y, _z, i;\n            t = 0;\n            var argLength = arguments.length;\n\n            if (\n              this._lookUpTableBezier.length === 0 ||\n              this._lutBezierDetail !== this._pInst._curveDetail\n            ) {\n              this._lookUpTableBezier = [];\n              this._lutBezierDetail = this._pInst._curveDetail;\n              var step = 1 / this._lutBezierDetail;\n              var start = 0;\n              var end = 1;\n              var j = 0;\n              while (start < 1) {\n                t = parseFloat(start.toFixed(6));\n                this._lookUpTableBezier[j] = this._bezierCoefficients(t);\n                if (end.toFixed(6) === step.toFixed(6)) {\n                  t = parseFloat(end.toFixed(6)) + parseFloat(start.toFixed(6));\n                  ++j;\n                  this._lookUpTableBezier[j] = this._bezierCoefficients(t);\n                  break;\n                }\n                start += step;\n                end -= step;\n                ++j;\n              }\n            }\n\n            var LUTLength = this._lookUpTableBezier.length;\n\n            if (argLength === 2) {\n              this.immediateMode._curveVertex.push(\n                arguments.length <= 0 ? undefined : arguments[0]\n              );\n              this.immediateMode._curveVertex.push(\n                arguments.length <= 1 ? undefined : arguments[1]\n              );\n              if (this.immediateMode._curveVertex.length === 8) {\n                this.isCurve = true;\n                w_x = this._bezierToCatmull([\n                  this.immediateMode._curveVertex[0],\n                  this.immediateMode._curveVertex[2],\n                  this.immediateMode._curveVertex[4],\n                  this.immediateMode._curveVertex[6]\n                ]);\n\n                w_y = this._bezierToCatmull([\n                  this.immediateMode._curveVertex[1],\n                  this.immediateMode._curveVertex[3],\n                  this.immediateMode._curveVertex[5],\n                  this.immediateMode._curveVertex[7]\n                ]);\n\n                for (i = 0; i < LUTLength; i++) {\n                  _x =\n                    w_x[0] * this._lookUpTableBezier[i][0] +\n                    w_x[1] * this._lookUpTableBezier[i][1] +\n                    w_x[2] * this._lookUpTableBezier[i][2] +\n                    w_x[3] * this._lookUpTableBezier[i][3];\n                  _y =\n                    w_y[0] * this._lookUpTableBezier[i][0] +\n                    w_y[1] * this._lookUpTableBezier[i][1] +\n                    w_y[2] * this._lookUpTableBezier[i][2] +\n                    w_y[3] * this._lookUpTableBezier[i][3];\n                  this.vertex(_x, _y);\n                }\n                for (i = 0; i < argLength; i++) {\n                  this.immediateMode._curveVertex.shift();\n                }\n              }\n            } else if (argLength === 3) {\n              this.immediateMode._curveVertex.push(\n                arguments.length <= 0 ? undefined : arguments[0]\n              );\n              this.immediateMode._curveVertex.push(\n                arguments.length <= 1 ? undefined : arguments[1]\n              );\n              this.immediateMode._curveVertex.push(\n                arguments.length <= 2 ? undefined : arguments[2]\n              );\n              if (this.immediateMode._curveVertex.length === 12) {\n                this.isCurve = true;\n                w_x = this._bezierToCatmull([\n                  this.immediateMode._curveVertex[0],\n                  this.immediateMode._curveVertex[3],\n                  this.immediateMode._curveVertex[6],\n                  this.immediateMode._curveVertex[9]\n                ]);\n\n                w_y = this._bezierToCatmull([\n                  this.immediateMode._curveVertex[1],\n                  this.immediateMode._curveVertex[4],\n                  this.immediateMode._curveVertex[7],\n                  this.immediateMode._curveVertex[10]\n                ]);\n\n                w_z = this._bezierToCatmull([\n                  this.immediateMode._curveVertex[2],\n                  this.immediateMode._curveVertex[5],\n                  this.immediateMode._curveVertex[8],\n                  this.immediateMode._curveVertex[11]\n                ]);\n\n                for (i = 0; i < LUTLength; i++) {\n                  _x =\n                    w_x[0] * this._lookUpTableBezier[i][0] +\n                    w_x[1] * this._lookUpTableBezier[i][1] +\n                    w_x[2] * this._lookUpTableBezier[i][2] +\n                    w_x[3] * this._lookUpTableBezier[i][3];\n                  _y =\n                    w_y[0] * this._lookUpTableBezier[i][0] +\n                    w_y[1] * this._lookUpTableBezier[i][1] +\n                    w_y[2] * this._lookUpTableBezier[i][2] +\n                    w_y[3] * this._lookUpTableBezier[i][3];\n                  _z =\n                    w_z[0] * this._lookUpTableBezier[i][0] +\n                    w_z[1] * this._lookUpTableBezier[i][1] +\n                    w_z[2] * this._lookUpTableBezier[i][2] +\n                    w_z[3] * this._lookUpTableBezier[i][3];\n                  this.vertex(_x, _y, _z);\n                }\n                for (i = 0; i < argLength; i++) {\n                  this.immediateMode._curveVertex.shift();\n                }\n              }\n            }\n          };\n\n          _main.default.RendererGL.prototype.image = function(\n            img,\n            sx,\n            sy,\n            sWidth,\n            sHeight,\n            dx,\n            dy,\n            dWidth,\n            dHeight\n          ) {\n            if (this._isErasing) {\n              this.blendMode(this._cachedBlendMode);\n            }\n\n            this._pInst.push();\n\n            this._pInst.noLights();\n\n            this._pInst.texture(img);\n            this._pInst.textureMode(constants.NORMAL);\n\n            var u0 = 0;\n            if (sx <= img.width) {\n              u0 = sx / img.width;\n            }\n\n            var u1 = 1;\n            if (sx + sWidth <= img.width) {\n              u1 = (sx + sWidth) / img.width;\n            }\n\n            var v0 = 0;\n            if (sy <= img.height) {\n              v0 = sy / img.height;\n            }\n\n            var v1 = 1;\n            if (sy + sHeight <= img.height) {\n              v1 = (sy + sHeight) / img.height;\n            }\n\n            this.beginShape();\n            this.vertex(dx, dy, 0, u0, v0);\n            this.vertex(dx + dWidth, dy, 0, u1, v0);\n            this.vertex(dx + dWidth, dy + dHeight, 0, u1, v1);\n            this.vertex(dx, dy + dHeight, 0, u0, v1);\n            this.endShape(constants.CLOSE);\n\n            this._pInst.pop();\n\n            if (this._isErasing) {\n              this.blendMode(constants.REMOVE);\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, '../core/main': 50, './p5.Geometry': 99 }\n      ],\n      94: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          } /** // implementation based on three.js 'orbitControls':\n           * @module Lights, Camera\n           * @submodule Interaction\n           * @for p5\n           * @requires core\n           */ /**\n           * Allows movement around a 3D sketch using a mouse or trackpad.  Left-clicking\n           * and dragging will rotate the camera position about the center of the sketch,\n           * right-clicking and dragging will pan the camera position without rotation,\n           * and using the mouse wheel (scrolling) will move the camera closer or further\n           * from the center of the sketch. This function can be called with parameters\n           * dictating sensitivity to mouse movement along the X and Y axes.  Calling\n           * this function without parameters is equivalent to calling orbitControl(1,1).\n           * To reverse direction of movement in either axis, enter a negative number\n           * for sensitivity.\n           * @method orbitControl\n           * @for p5\n           * @param  {Number} [sensitivityX] sensitivity to mouse movement along X axis\n           * @param  {Number} [sensitivityY] sensitivity to mouse movement along Y axis\n           * @param  {Number} [sensitivityZ] sensitivity to scroll movement along Z axis\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   normalMaterial();\n           * }\n           * function draw() {\n           *   background(200);\n           *   orbitControl();\n           *   rotateY(0.5);\n           *   box(30, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Camera orbits around a box when mouse is hold-clicked & then moved.\n           */\n          // https://github.com/mrdoob/three.js/blob/dev/examples/js/controls/OrbitControls.js\n          _main.default.prototype.orbitControl = function(\n            sensitivityX,\n            sensitivityY,\n            sensitivityZ\n          ) {\n            this._assert3d('orbitControl');\n            _main.default._validateParameters('orbitControl', arguments);\n\n            // If the mouse is not in bounds of the canvas, disable all behaviors:\n            var mouseInCanvas =\n              this.mouseX < this.width &&\n              this.mouseX > 0 &&\n              this.mouseY < this.height &&\n              this.mouseY > 0;\n            if (!mouseInCanvas) return;\n\n            var cam = this._renderer._curCamera;\n\n            if (typeof sensitivityX === 'undefined') {\n              sensitivityX = 1;\n            }\n            if (typeof sensitivityY === 'undefined') {\n              sensitivityY = sensitivityX;\n            }\n            if (typeof sensitivityZ === 'undefined') {\n              sensitivityZ = 0.5;\n            }\n\n            // default right-mouse and mouse-wheel behaviors (context menu and scrolling,\n            // respectively) are disabled here to allow use of those events for panning and\n            // zooming\n\n            // disable context menu for canvas element and add 'contextMenuDisabled'\n            // flag to p5 instance\n            if (this.contextMenuDisabled !== true) {\n              this.canvas.oncontextmenu = function() {\n                return false;\n              };\n              this._setProperty('contextMenuDisabled', true);\n            }\n\n            // disable default scrolling behavior on the canvas element and add\n            // 'wheelDefaultDisabled' flag to p5 instance\n            if (this.wheelDefaultDisabled !== true) {\n              this.canvas.onwheel = function() {\n                return false;\n              };\n              this._setProperty('wheelDefaultDisabled', true);\n            }\n\n            var scaleFactor = this.height < this.width ? this.height : this.width;\n\n            // ZOOM if there is a change in mouseWheelDelta\n            if (this._mouseWheelDeltaY !== this._pmouseWheelDeltaY) {\n              // zoom according to direction of mouseWheelDeltaY rather than value\n              if (this._mouseWheelDeltaY > 0) {\n                this._renderer._curCamera._orbit(0, 0, sensitivityZ * scaleFactor);\n              } else {\n                this._renderer._curCamera._orbit(0, 0, -sensitivityZ * scaleFactor);\n              }\n            }\n\n            if (this.mouseIsPressed) {\n              // ORBIT BEHAVIOR\n              if (this.mouseButton === this.LEFT) {\n                var deltaTheta = -sensitivityX * (this.mouseX - this.pmouseX) / scaleFactor;\n                var deltaPhi = sensitivityY * (this.mouseY - this.pmouseY) / scaleFactor;\n                this._renderer._curCamera._orbit(deltaTheta, deltaPhi, 0);\n              } else if (this.mouseButton === this.RIGHT) {\n                // PANNING BEHAVIOR along X/Z camera axes and restricted to X/Z plane\n                // in world space\n                var local = cam._getLocalAxes();\n\n                // normalize portions along X/Z axes\n                var xmag = Math.sqrt(local.x[0] * local.x[0] + local.x[2] * local.x[2]);\n                if (xmag !== 0) {\n                  local.x[0] /= xmag;\n                  local.x[2] /= xmag;\n                }\n\n                // normalize portions along X/Z axes\n                var ymag = Math.sqrt(local.y[0] * local.y[0] + local.y[2] * local.y[2]);\n                if (ymag !== 0) {\n                  local.y[0] /= ymag;\n                  local.y[2] /= ymag;\n                }\n\n                // move along those vectors by amount controlled by mouseX, pmouseY\n                var dx = -1 * sensitivityX * (this.mouseX - this.pmouseX);\n                var dz = -1 * sensitivityY * (this.mouseY - this.pmouseY);\n\n                // restrict movement to XZ plane in world space\n                cam.setPosition(\n                  cam.eyeX + dx * local.x[0] + dz * local.z[0],\n                  cam.eyeY,\n                  cam.eyeZ + dx * local.x[2] + dz * local.z[2]\n                );\n              }\n            }\n            return this;\n          };\n\n          /**\n           * debugMode() helps visualize 3D space by adding a grid to indicate where the\n           * ‘ground’ is in a sketch and an axes icon which indicates the +X, +Y, and +Z\n           * directions. This function can be called without parameters to create a\n           * default grid and axes icon, or it can be called according to the examples\n           * above to customize the size and position of the grid and/or axes icon.  The\n           * grid is drawn using the most recently set stroke color and weight.  To\n           * specify these parameters, add a call to stroke() and strokeWeight()\n           * just before the end of the draw() loop.\n           *\n           * By default, the grid will run through the origin (0,0,0) of the sketch\n           * along the XZ plane\n           * and the axes icon will be offset from the origin.  Both the grid and axes\n           * icon will be sized according to the current canvas size.  Note that because the\n           * grid runs parallel to the default camera view, it is often helpful to use\n           * debugMode along with orbitControl to allow full view of the grid.\n           * @method debugMode\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n           *   normalMaterial();\n           *   debugMode();\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   orbitControl();\n           *   box(15, 30);\n           *   // Press the spacebar to turn debugMode off!\n           *   if (keyIsDown(32)) {\n           *     noDebugMode();\n           *   }\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * a 3D box is centered on a grid in a 3D sketch. an icon\n           * indicates the direction of each axis: a red line points +X,\n           * a green line +Y, and a blue line +Z. the grid and icon disappear when the\n           * spacebar is pressed.\n           *\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n           *   normalMaterial();\n           *   debugMode(GRID);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   orbitControl();\n           *   box(15, 30);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * a 3D box is centered on a grid in a 3D sketch.\n           *\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n           *   normalMaterial();\n           *   debugMode(AXES);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   orbitControl();\n           *   box(15, 30);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * a 3D box is centered in a 3D sketch. an icon\n           * indicates the direction of each axis: a red line points +X,\n           * a green line +Y, and a blue line +Z.\n           *\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n           *   normalMaterial();\n           *   debugMode(GRID, 100, 10, 0, 0, 0);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   orbitControl();\n           *   box(15, 30);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * a 3D box is centered on a grid in a 3D sketch\n           *\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n           *   normalMaterial();\n           *   debugMode(100, 10, 0, 0, 0, 20, 0, -40, 0);\n           * }\n           *\n           * function draw() {\n           *   noStroke();\n           *   background(200);\n           *   orbitControl();\n           *   box(15, 30);\n           *   // set the stroke color and weight for the grid!\n           *   stroke(255, 0, 150);\n           *   strokeWeight(0.8);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * a 3D box is centered on a grid in a 3D sketch. an icon\n           * indicates the direction of each axis: a red line points +X,\n           * a green line +Y, and a blue line +Z.\n           */\n\n          /**\n           * @method debugMode\n           * @param {Constant} mode either GRID or AXES\n           */\n\n          /**\n           * @method debugMode\n           * @param {Constant} mode\n           * @param {Number} [gridSize] size of one side of the grid\n           * @param {Number} [gridDivisions] number of divisions in the grid\n           * @param {Number} [xOff] X axis offset from origin (0,0,0)\n           * @param {Number} [yOff] Y axis offset from origin (0,0,0)\n           * @param {Number} [zOff] Z axis offset from origin (0,0,0)\n           */\n\n          /**\n           * @method debugMode\n           * @param {Constant} mode\n           * @param {Number} [axesSize] size of axes icon\n           * @param {Number} [xOff]\n           * @param {Number} [yOff]\n           * @param {Number} [zOff]\n           */\n\n          /**\n           * @method debugMode\n           * @param {Number} [gridSize]\n           * @param {Number} [gridDivisions]\n           * @param {Number} [gridXOff]\n           * @param {Number} [gridYOff]\n           * @param {Number} [gridZOff]\n           * @param {Number} [axesSize]\n           * @param {Number} [axesXOff]\n           * @param {Number} [axesYOff]\n           * @param {Number} [axesZOff]\n           */\n\n          _main.default.prototype.debugMode = function() {\n            this._assert3d('debugMode');\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default._validateParameters('debugMode', args);\n\n            // start by removing existing 'post' registered debug methods\n            for (var i = this._registeredMethods.post.length - 1; i >= 0; i--) {\n              // test for equality...\n              if (\n                this._registeredMethods.post[i].toString() === this._grid().toString() ||\n                this._registeredMethods.post[i].toString() === this._axesIcon().toString()\n              ) {\n                this._registeredMethods.post.splice(i, 1);\n              }\n            }\n\n            // then add new debugMode functions according to the argument list\n            if (args[0] === constants.GRID) {\n              this.registerMethod(\n                'post',\n                this._grid.call(this, args[1], args[2], args[3], args[4], args[5])\n              );\n            } else if (args[0] === constants.AXES) {\n              this.registerMethod(\n                'post',\n                this._axesIcon.call(this, args[1], args[2], args[3], args[4])\n              );\n            } else {\n              this.registerMethod(\n                'post',\n                this._grid.call(this, args[0], args[1], args[2], args[3], args[4])\n              );\n\n              this.registerMethod(\n                'post',\n                this._axesIcon.call(this, args[5], args[6], args[7], args[8])\n              );\n            }\n          };\n\n          /**\n           * Turns off debugMode() in a 3D sketch.\n           * @method noDebugMode\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n           *   normalMaterial();\n           *   debugMode();\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   orbitControl();\n           *   box(15, 30);\n           *   // Press the spacebar to turn debugMode off!\n           *   if (keyIsDown(32)) {\n           *     noDebugMode();\n           *   }\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * a 3D box is centered on a grid in a 3D sketch. an icon\n           * indicates the direction of each axis: a red line points +X,\n           * a green line +Y, and a blue line +Z. the grid and icon disappear when the\n           * spacebar is pressed.\n           */\n          _main.default.prototype.noDebugMode = function() {\n            this._assert3d('noDebugMode');\n\n            // start by removing existing 'post' registered debug methods\n            for (var i = this._registeredMethods.post.length - 1; i >= 0; i--) {\n              // test for equality...\n              if (\n                this._registeredMethods.post[i].toString() === this._grid().toString() ||\n                this._registeredMethods.post[i].toString() === this._axesIcon().toString()\n              ) {\n                this._registeredMethods.post.splice(i, 1);\n              }\n            }\n          };\n\n          /**\n           * For use with debugMode\n           * @private\n           * @method _grid\n           * @param {Number} [size] size of grid sides\n           * @param {Number} [div] number of grid divisions\n           * @param {Number} [xOff] offset of grid center from origin in X axis\n           * @param {Number} [yOff] offset of grid center from origin in Y axis\n           * @param {Number} [zOff] offset of grid center from origin in Z axis\n           */\n          _main.default.prototype._grid = function(size, numDivs, xOff, yOff, zOff) {\n            if (typeof size === 'undefined') {\n              size = this.width / 2;\n            }\n            if (typeof numDivs === 'undefined') {\n              // ensure at least 2 divisions\n              numDivs = Math.round(size / 30) < 4 ? 4 : Math.round(size / 30);\n            }\n            if (typeof xOff === 'undefined') {\n              xOff = 0;\n            }\n            if (typeof yOff === 'undefined') {\n              yOff = 0;\n            }\n            if (typeof zOff === 'undefined') {\n              zOff = 0;\n            }\n\n            var spacing = size / numDivs;\n            var halfSize = size / 2;\n\n            return function() {\n              this.push();\n              this.stroke(\n                this._renderer.curStrokeColor[0] * 255,\n                this._renderer.curStrokeColor[1] * 255,\n                this._renderer.curStrokeColor[2] * 255\n              );\n\n              this._renderer.uMVMatrix.set(\n                this._renderer._curCamera.cameraMatrix.mat4[0],\n                this._renderer._curCamera.cameraMatrix.mat4[1],\n                this._renderer._curCamera.cameraMatrix.mat4[2],\n                this._renderer._curCamera.cameraMatrix.mat4[3],\n                this._renderer._curCamera.cameraMatrix.mat4[4],\n                this._renderer._curCamera.cameraMatrix.mat4[5],\n                this._renderer._curCamera.cameraMatrix.mat4[6],\n                this._renderer._curCamera.cameraMatrix.mat4[7],\n                this._renderer._curCamera.cameraMatrix.mat4[8],\n                this._renderer._curCamera.cameraMatrix.mat4[9],\n                this._renderer._curCamera.cameraMatrix.mat4[10],\n                this._renderer._curCamera.cameraMatrix.mat4[11],\n                this._renderer._curCamera.cameraMatrix.mat4[12],\n                this._renderer._curCamera.cameraMatrix.mat4[13],\n                this._renderer._curCamera.cameraMatrix.mat4[14],\n                this._renderer._curCamera.cameraMatrix.mat4[15]\n              );\n\n              // Lines along X axis\n              for (var q = 0; q <= numDivs; q++) {\n                this.beginShape(this.LINES);\n                this.vertex(-halfSize + xOff, yOff, q * spacing - halfSize + zOff);\n                this.vertex(+halfSize + xOff, yOff, q * spacing - halfSize + zOff);\n                this.endShape();\n              }\n\n              // Lines along Z axis\n              for (var i = 0; i <= numDivs; i++) {\n                this.beginShape(this.LINES);\n                this.vertex(i * spacing - halfSize + xOff, yOff, -halfSize + zOff);\n                this.vertex(i * spacing - halfSize + xOff, yOff, +halfSize + zOff);\n                this.endShape();\n              }\n\n              this.pop();\n            };\n          };\n\n          /**\n           * For use with debugMode\n           * @private\n           * @method _axesIcon\n           * @param {Number} [size] size of axes icon lines\n           * @param {Number} [xOff] offset of icon from origin in X axis\n           * @param {Number} [yOff] offset of icon from origin in Y axis\n           * @param {Number} [zOff] offset of icon from origin in Z axis\n           */\n          _main.default.prototype._axesIcon = function(size, xOff, yOff, zOff) {\n            if (typeof size === 'undefined') {\n              size = this.width / 20 > 40 ? this.width / 20 : 40;\n            }\n            if (typeof xOff === 'undefined') {\n              xOff = -this.width / 4;\n            }\n            if (typeof yOff === 'undefined') {\n              yOff = xOff;\n            }\n            if (typeof zOff === 'undefined') {\n              zOff = xOff;\n            }\n\n            return function() {\n              this.push();\n              this._renderer.uMVMatrix.set(\n                this._renderer._curCamera.cameraMatrix.mat4[0],\n                this._renderer._curCamera.cameraMatrix.mat4[1],\n                this._renderer._curCamera.cameraMatrix.mat4[2],\n                this._renderer._curCamera.cameraMatrix.mat4[3],\n                this._renderer._curCamera.cameraMatrix.mat4[4],\n                this._renderer._curCamera.cameraMatrix.mat4[5],\n                this._renderer._curCamera.cameraMatrix.mat4[6],\n                this._renderer._curCamera.cameraMatrix.mat4[7],\n                this._renderer._curCamera.cameraMatrix.mat4[8],\n                this._renderer._curCamera.cameraMatrix.mat4[9],\n                this._renderer._curCamera.cameraMatrix.mat4[10],\n                this._renderer._curCamera.cameraMatrix.mat4[11],\n                this._renderer._curCamera.cameraMatrix.mat4[12],\n                this._renderer._curCamera.cameraMatrix.mat4[13],\n                this._renderer._curCamera.cameraMatrix.mat4[14],\n                this._renderer._curCamera.cameraMatrix.mat4[15]\n              );\n\n              // X axis\n              this.strokeWeight(2);\n              this.stroke(255, 0, 0);\n              this.beginShape(this.LINES);\n              this.vertex(xOff, yOff, zOff);\n              this.vertex(xOff + size, yOff, zOff);\n              this.endShape();\n              // Y axis\n              this.stroke(0, 255, 0);\n              this.beginShape(this.LINES);\n              this.vertex(xOff, yOff, zOff);\n              this.vertex(xOff, yOff + size, zOff);\n              this.endShape();\n              // Z axis\n              this.stroke(0, 0, 255);\n              this.beginShape(this.LINES);\n              this.vertex(xOff, yOff, zOff);\n              this.vertex(xOff, yOff, zOff + size);\n              this.endShape();\n              this.pop();\n            };\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, '../core/main': 50 }\n      ],\n      95: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          } /**\n           * @method ambientLight\n           * @param  {String}        value   a color string\n           * @chainable\n           */ /**\n           * @module Lights, Camera\n           * @submodule Lights\n           * @for p5\n           * @requires core\n           */ /**\n           * Creates an ambient light with a color. Ambient light is light that comes from everywhere on the canvas.\n           * It has no particular source.\n           * @method ambientLight\n           * @param  {Number}        v1      red or hue value relative to\n           *                                 the current color range\n           * @param  {Number}        v2      green or saturation value\n           *                                 relative to the current color range\n           * @param  {Number}        v3      blue or brightness value\n           *                                 relative to the current color range\n           * @param  {Number}        [alpha] the alpha value\n           * @chainable\n           *\n           * @example\n           * <div>\n           * <code>\n           * createCanvas(100, 100, WEBGL);\n           * ambientLight(0);\n           * ambientMaterial(250);\n           * sphere(40);\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(51);\n           *   ambientLight(100); // white light\n           *   ambientMaterial(255, 102, 94); // magenta material\n           *   box(30);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * evenly distributed light across a sphere\n           * evenly distributed light across a rotating sphere\n           *\n           */\n          /**\n           * @method ambientLight\n           * @param  {Number}        gray   a gray value\n           * @param  {Number}        [alpha]\n           * @chainable\n           */\n\n          /**\n           * @method ambientLight\n           * @param  {Number[]}      values  an array containing the red,green,blue &\n           *                                 and alpha components of the color\n           * @chainable\n           */\n\n          /**\n           * @method ambientLight\n           * @param  {p5.Color}      color   the ambient light color\n           * @chainable\n           */\n          _main.default.prototype.ambientLight = function(v1, v2, v3, a) {\n            this._assert3d('ambientLight');\n            _main.default._validateParameters('ambientLight', arguments);\n            var color = this.color.apply(this, arguments);\n\n            this._renderer.ambientLightColors.push(\n              color._array[0],\n              color._array[1],\n              color._array[2]\n            );\n\n            this._renderer._enableLighting = true;\n\n            return this;\n          };\n\n          /**\n           * Set's the color of the specular highlight when using a specular material and\n           * specular light.\n           *\n           * This method can be combined with specularMaterial() and shininess()\n           * functions to set specular highlights. The default color is white, ie\n           * (255, 255, 255), which is used if this method is not called before\n           * specularMaterial(). If this method is called without specularMaterial(),\n           * There will be no effect.\n           *\n           * Note: specularColor is equivalent to the processing function\n           * <a href=\"https://processing.org/reference/lightSpecular_.html\">lightSpecular</a>.\n           *\n           * @method specularColor\n           * @param  {Number}        v1      red or hue value relative to\n           *                                 the current color range\n           * @param  {Number}        v2      green or saturation value\n           *                                 relative to the current color range\n           * @param  {Number}        v3      blue or brightness value\n           *                                 relative to the current color range\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   noStroke();\n           * }\n           *\n           * function draw() {\n           *   background(0);\n           *   shininess(20);\n           *   ambientLight(50);\n           *   specularColor(255, 0, 0);\n           *   pointLight(255, 0, 0, 0, -50, 50);\n           *   specularColor(0, 255, 0);\n           *   pointLight(0, 255, 0, 0, 50, 50);\n           *   specularMaterial(255);\n           *   sphere(40);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * different specular light sources from top and bottom of canvas\n           */\n\n          /**\n           * @method specularColor\n           * @param  {String}        value   a color string\n           * @chainable\n           */\n\n          /**\n           * @method specularColor\n           * @param  {Number}        gray   a gray value\n           * @chainable\n           */\n\n          /**\n           * @method specularColor\n           * @param  {Number[]}      values  an array containing the red,green,blue &\n           *                                 and alpha components of the color\n           * @chainable\n           */\n\n          /**\n           * @method specularColor\n           * @param  {p5.Color}      color   the ambient light color\n           * @chainable\n           */\n          _main.default.prototype.specularColor = function(v1, v2, v3) {\n            this._assert3d('specularColor');\n            _main.default._validateParameters('specularColor', arguments);\n            var color = this.color.apply(this, arguments);\n\n            this._renderer.specularColors = [\n              color._array[0],\n              color._array[1],\n              color._array[2]\n            ];\n\n            return this;\n          };\n\n          /**\n           * Creates a directional light with a color and a direction\n           *\n           * A maximum of 5 directionalLight can be active at one time\n           * @method directionalLight\n           * @param  {Number}    v1       red or hue value (depending on the current\n           * color mode),\n           * @param  {Number}    v2       green or saturation value\n           * @param  {Number}    v3       blue or brightness value\n           * @param  {p5.Vector} position the direction of the light\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(0);\n           *   //move your mouse to change light direction\n           *   let dirX = (mouseX / width - 0.5) * 2;\n           *   let dirY = (mouseY / height - 0.5) * 2;\n           *   directionalLight(250, 250, 250, -dirX, -dirY, -1);\n           *   noStroke();\n           *   sphere(40);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * light source on canvas changeable with mouse position\n           *\n           */\n\n          /**\n           * @method directionalLight\n           * @param  {Number[]|String|p5.Color} color   color Array, CSS color string,\n           *                                             or <a href=\"#/p5.Color\">p5.Color</a> value\n           * @param  {Number}                   x       x axis direction\n           * @param  {Number}                   y       y axis direction\n           * @param  {Number}                   z       z axis direction\n           * @chainable\n           */\n\n          /**\n           * @method directionalLight\n           * @param  {Number[]|String|p5.Color} color\n           * @param  {p5.Vector}                position\n           * @chainable\n           */\n\n          /**\n           * @method directionalLight\n           * @param  {Number}    v1\n           * @param  {Number}    v2\n           * @param  {Number}    v3\n           * @param  {Number}    x\n           * @param  {Number}    y\n           * @param  {Number}    z\n           * @chainable\n           */\n          _main.default.prototype.directionalLight = function(v1, v2, v3, x, y, z) {\n            this._assert3d('directionalLight');\n            _main.default._validateParameters('directionalLight', arguments);\n\n            //@TODO: check parameters number\n            var color;\n            if (v1 instanceof _main.default.Color) {\n              color = v1;\n            } else {\n              color = this.color(v1, v2, v3);\n            }\n\n            var _x, _y, _z;\n            var v = arguments[arguments.length - 1];\n            if (typeof v === 'number') {\n              _x = arguments[arguments.length - 3];\n              _y = arguments[arguments.length - 2];\n              _z = arguments[arguments.length - 1];\n            } else {\n              _x = v.x;\n              _y = v.y;\n              _z = v.z;\n            }\n\n            // normalize direction\n            var l = Math.sqrt(_x * _x + _y * _y + _z * _z);\n            this._renderer.directionalLightDirections.push(_x / l, _y / l, _z / l);\n\n            this._renderer.directionalLightDiffuseColors.push(\n              color._array[0],\n              color._array[1],\n              color._array[2]\n            );\n\n            Array.prototype.push.apply(\n              this._renderer.directionalLightSpecularColors,\n              this._renderer.specularColors\n            );\n\n            this._renderer._enableLighting = true;\n\n            return this;\n          };\n\n          /**\n           * Creates a point light with a color and a light position\n           *\n           * A maximum of 5 pointLight can be active at one time\n           * @method pointLight\n           * @param  {Number}    v1       red or hue value (depending on the current\n           * color mode),\n           * @param  {Number}    v2       green or saturation value\n           * @param  {Number}    v3       blue or brightness value\n           * @param  {Number}    x        x axis position\n           * @param  {Number}    y        y axis position\n           * @param  {Number}    z        z axis position\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(0);\n           *   //move your mouse to change light position\n           *   let locX = mouseX - width / 2;\n           *   let locY = mouseY - height / 2;\n           *   // to set the light position,\n           *   // think of the world's coordinate as:\n           *   // -width/2,-height/2 -------- width/2,-height/2\n           *   //                |            |\n           *   //                |     0,0    |\n           *   //                |            |\n           *   // -width/2,height/2--------width/2,height/2\n           *   pointLight(250, 250, 250, locX, locY, 50);\n           *   noStroke();\n           *   sphere(40);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * spot light on canvas changes position with mouse\n           *\n           */\n\n          /**\n           * @method pointLight\n           * @param  {Number}    v1\n           * @param  {Number}    v2\n           * @param  {Number}    v3\n           * @param  {p5.Vector} position the position of the light\n           * @chainable\n           */\n\n          /**\n           * @method pointLight\n           * @param  {Number[]|String|p5.Color} color   color Array, CSS color string,\n           * or <a href=\"#/p5.Color\">p5.Color</a> value\n           * @param  {Number}                   x\n           * @param  {Number}                   y\n           * @param  {Number}                   z\n           * @chainable\n           */\n\n          /**\n           * @method pointLight\n           * @param  {Number[]|String|p5.Color} color\n           * @param  {p5.Vector}                position\n           * @chainable\n           */\n          _main.default.prototype.pointLight = function(v1, v2, v3, x, y, z) {\n            this._assert3d('pointLight');\n            _main.default._validateParameters('pointLight', arguments);\n\n            //@TODO: check parameters number\n            var color;\n            if (v1 instanceof _main.default.Color) {\n              color = v1;\n            } else {\n              color = this.color(v1, v2, v3);\n            }\n\n            var _x, _y, _z;\n            var v = arguments[arguments.length - 1];\n            if (typeof v === 'number') {\n              _x = arguments[arguments.length - 3];\n              _y = arguments[arguments.length - 2];\n              _z = arguments[arguments.length - 1];\n            } else {\n              _x = v.x;\n              _y = v.y;\n              _z = v.z;\n            }\n\n            this._renderer.pointLightPositions.push(_x, _y, _z);\n            this._renderer.pointLightDiffuseColors.push(\n              color._array[0],\n              color._array[1],\n              color._array[2]\n            );\n\n            Array.prototype.push.apply(\n              this._renderer.pointLightSpecularColors,\n              this._renderer.specularColors\n            );\n\n            this._renderer._enableLighting = true;\n\n            return this;\n          };\n\n          /**\n           * Sets the default ambient and directional light. The defaults are <a href=\"#/p5/ambientLight\">ambientLight(128, 128, 128)</a> and <a href=\"#/p5/directionalLight\">directionalLight(128, 128, 128, 0, 0, -1)</a>. Lights need to be included in the <a href=\"#/p5/draw\">draw()</a> to remain persistent in a looping program. Placing them in the <a href=\"#/p5/setup\">setup()</a> of a looping program will cause them to only have an effect the first time through the loop.\n           * @method lights\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(0);\n           *   lights();\n           *   rotateX(millis() / 1000);\n           *   rotateY(millis() / 1000);\n           *   rotateZ(millis() / 1000);\n           *   box();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * the light is partially ambient and partially directional\n           */\n          _main.default.prototype.lights = function() {\n            this._assert3d('lights');\n            this.ambientLight(128, 128, 128);\n            this.directionalLight(128, 128, 128, 0, 0, -1);\n            return this;\n          };\n\n          /**\n           * Sets the falloff rates for point lights. It affects only the elements which are created after it in the code.\n           * The default value is lightFalloff(1.0, 0.0, 0.0), and the parameters are used to calculate the falloff with the following equation:\n           *\n           * d = distance from light position to vertex position\n           *\n           * falloff = 1 / (CONSTANT + d \\* LINEAR + ( d \\* d ) \\* QUADRATIC)\n           *\n           * @method lightFalloff\n           * @param {Number} constant   constant value for determining falloff\n           * @param {Number} linear     linear value for determining falloff\n           * @param {Number} quadratic  quadratic value for determining falloff\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   noStroke();\n           * }\n           * function draw() {\n           *   background(0);\n           *   let locX = mouseX - width / 2;\n           *   let locY = mouseY - height / 2;\n           *   translate(-25, 0, 0);\n           *   lightFalloff(1, 0, 0);\n           *   pointLight(250, 250, 250, locX, locY, 50);\n           *   sphere(20);\n           *   translate(50, 0, 0);\n           *   lightFalloff(0.9, 0.01, 0);\n           *   pointLight(250, 250, 250, locX, locY, 50);\n           *   sphere(20);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Two spheres with different falloff values show different intensity of light\n           *\n           */\n          _main.default.prototype.lightFalloff = function(\n            constantAttenuation,\n            linearAttenuation,\n            quadraticAttenuation\n          ) {\n            this._assert3d('lightFalloff');\n            _main.default._validateParameters('lightFalloff', arguments);\n\n            if (constantAttenuation < 0) {\n              constantAttenuation = 0;\n              console.warn(\n                'Value of constant argument in lightFalloff() should be never be negative. Set to 0.'\n              );\n            }\n\n            if (linearAttenuation < 0) {\n              linearAttenuation = 0;\n              console.warn(\n                'Value of linear argument in lightFalloff() should be never be negative. Set to 0.'\n              );\n            }\n\n            if (quadraticAttenuation < 0) {\n              quadraticAttenuation = 0;\n              console.warn(\n                'Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.'\n              );\n            }\n\n            if (\n              constantAttenuation === 0 &&\n              linearAttenuation === 0 &&\n              quadraticAttenuation === 0\n            ) {\n              constantAttenuation = 1;\n              console.warn(\n                'Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.'\n              );\n            }\n\n            this._renderer.constantAttenuation = constantAttenuation;\n            this._renderer.linearAttenuation = linearAttenuation;\n            this._renderer.quadraticAttenuation = quadraticAttenuation;\n\n            return this;\n          };\n\n          /**\n           * Creates a spotlight with a given color, position, direction of light,\n           * angle and concentration. Here, angle refers to the opening or aperture\n           * of the cone of the spotlight, and concentration is used to focus the\n           * light towards the center. Both angle and concentration are optional, but if\n           * you want to provide concentration, you will also have to specify the angle.\n           *\n           * A maximum of 5 spotLight can be active at one time\n           * @method spotLight\n           * @param  {Number}    v1       red or hue value (depending on the current\n           * color mode),\n           * @param  {Number}    v2       green or saturation value\n           * @param  {Number}    v3       blue or brightness value\n           * @param  {Number}    x        x axis position\n           * @param  {Number}    y        y axis position\n           * @param  {Number}    z        z axis position\n           * @param  {Number}    rx       x axis direction of light\n           * @param  {Number}    ry       y axis direction of light\n           * @param  {Number}    rz       z axis direction of light\n           * @param  {Number}    [angle]  optional parameter for angle. Defaults to PI/3\n           * @param  {Number}    [conc]   optional parameter for concentration. Defaults to 100\n           * @chainable\n           *\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(0);\n           *   //move your mouse to change light position\n           *   let locX = mouseX - width / 2;\n           *   let locY = mouseY - height / 2;\n           *   // to set the light position,\n           *   // think of the world's coordinate as:\n           *   // -width/2,-height/2 -------- width/2,-height/2\n           *   //                |            |\n           *   //                |     0,0    |\n           *   //                |            |\n           *   // -width/2,height/2--------width/2,height/2\n           *   ambientLight(50);\n           *   spotLight(0, 250, 0, locX, locY, 100, 0, 0, -1, Math.PI / 16);\n           *   noStroke();\n           *   sphere(40);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Spot light on a sphere which changes position with mouse\n           */\n          /**\n           * @method spotLight\n           * @param  {Number[]|String|p5.Color} color color Array, CSS color string,\n           * or <a href=\"#/p5.Color\">p5.Color</a> value\n           * @param  {p5.Vector}                position the position of the light\n           * @param  {p5.Vector}                direction the direction of the light\n           * @param  {Number}                   [angle]\n           * @param  {Number}                   [conc]\n           */\n          /**\n           * @method spotLight\n           * @param  {Number}     v1\n           * @param  {Number}     v2\n           * @param  {Number}     v3\n           * @param  {p5.Vector}  position\n           * @param  {p5.Vector}  direction\n           * @param  {Number}     [angle]\n           * @param  {Number}     [conc]\n           */\n          /**\n           * @method spotLight\n           * @param  {Number[]|String|p5.Color} color\n           * @param  {Number}                   x\n           * @param  {Number}                   y\n           * @param  {Number}                   z\n           * @param  {p5.Vector}                direction\n           * @param  {Number}                   [angle]\n           * @param  {Number}                   [conc]\n           */\n          /**\n           * @method spotLight\n           * @param  {Number[]|String|p5.Color} color\n           * @param  {p5.Vector}                position\n           * @param  {Number}                   rx\n           * @param  {Number}                   ry\n           * @param  {Number}                   rz\n           * @param  {Number}                   [angle]\n           * @param  {Number}                   [conc]\n           */\n          /**\n           * @method spotLight\n           * @param  {Number}     v1\n           * @param  {Number}     v2\n           * @param  {Number}     v3\n           * @param  {Number}     x\n           * @param  {Number}     y\n           * @param  {Number}     z\n           * @param  {p5.Vector}  direction\n           * @param  {Number}     [angle]\n           * @param  {Number}     [conc]\n           */\n          /**\n           * @method spotLight\n           * @param  {Number}     v1\n           * @param  {Number}     v2\n           * @param  {Number}     v3\n           * @param  {p5.Vector}  position\n           * @param  {Number}     rx\n           * @param  {Number}     ry\n           * @param  {Number}     rz\n           * @param  {Number}     [angle]\n           * @param  {Number}     [conc]\n           */\n          /**\n           * @method spotLight\n           * @param  {Number[]|String|p5.Color} color\n           * @param  {Number}                   x\n           * @param  {Number}                   y\n           * @param  {Number}                   z\n           * @param  {Number}                   rx\n           * @param  {Number}                   ry\n           * @param  {Number}                   rz\n           * @param  {Number}                   [angle]\n           * @param  {Number}                   [conc]\n           */\n          _main.default.prototype.spotLight = function(\n            v1,\n            v2,\n            v3,\n            x,\n            y,\n            z,\n            nx,\n            ny,\n            nz,\n            angle,\n            concentration\n          ) {\n            this._assert3d('spotLight');\n            _main.default._validateParameters('spotLight', arguments);\n\n            var color, position, direction;\n            var length = arguments.length;\n\n            switch (length) {\n              case 11:\n              case 10:\n                color = this.color(v1, v2, v3);\n                position = new _main.default.Vector(x, y, z);\n                direction = new _main.default.Vector(nx, ny, nz);\n                break;\n\n              case 9:\n                if (v1 instanceof _main.default.Color) {\n                  color = v1;\n                  position = new _main.default.Vector(v2, v3, x);\n                  direction = new _main.default.Vector(y, z, nx);\n                  angle = ny;\n                  concentration = nz;\n                } else if (x instanceof _main.default.Vector) {\n                  color = this.color(v1, v2, v3);\n                  position = x;\n                  direction = new _main.default.Vector(y, z, nx);\n                  angle = ny;\n                  concentration = nz;\n                } else if (nx instanceof _main.default.Vector) {\n                  color = this.color(v1, v2, v3);\n                  position = new _main.default.Vector(x, y, z);\n                  direction = nx;\n                  angle = ny;\n                  concentration = nz;\n                } else {\n                  color = this.color(v1, v2, v3);\n                  position = new _main.default.Vector(x, y, z);\n                  direction = new _main.default.Vector(nx, ny, nz);\n                }\n                break;\n\n              case 8:\n                if (v1 instanceof _main.default.Color) {\n                  color = v1;\n                  position = new _main.default.Vector(v2, v3, x);\n                  direction = new _main.default.Vector(y, z, nx);\n                  angle = ny;\n                } else if (x instanceof _main.default.Vector) {\n                  color = this.color(v1, v2, v3);\n                  position = x;\n                  direction = new _main.default.Vector(y, z, nx);\n                  angle = ny;\n                } else {\n                  color = this.color(v1, v2, v3);\n                  position = new _main.default.Vector(x, y, z);\n                  direction = nx;\n                  angle = ny;\n                }\n                break;\n\n              case 7:\n                if (\n                  v1 instanceof _main.default.Color &&\n                  v2 instanceof _main.default.Vector\n                ) {\n                  color = v1;\n                  position = v2;\n                  direction = new _main.default.Vector(v3, x, y);\n                  angle = z;\n                  concentration = nx;\n                } else if (\n                  v1 instanceof _main.default.Color &&\n                  y instanceof _main.default.Vector\n                ) {\n                  color = v1;\n                  position = new _main.default.Vector(v2, v3, x);\n                  direction = y;\n                  angle = z;\n                  concentration = nx;\n                } else if (\n                  x instanceof _main.default.Vector &&\n                  y instanceof _main.default.Vector\n                ) {\n                  color = this.color(v1, v2, v3);\n                  position = x;\n                  direction = y;\n                  angle = z;\n                  concentration = nx;\n                } else if (v1 instanceof _main.default.Color) {\n                  color = v1;\n                  position = new _main.default.Vector(v2, v3, x);\n                  direction = new _main.default.Vector(y, z, nx);\n                } else if (x instanceof _main.default.Vector) {\n                  color = this.color(v1, v2, v3);\n                  position = x;\n                  direction = new _main.default.Vector(y, z, nx);\n                } else {\n                  color = this.color(v1, v2, v3);\n                  position = new _main.default.Vector(x, y, z);\n                  direction = nx;\n                }\n                break;\n\n              case 6:\n                if (\n                  x instanceof _main.default.Vector &&\n                  y instanceof _main.default.Vector\n                ) {\n                  color = this.color(v1, v2, v3);\n                  position = x;\n                  direction = y;\n                  angle = z;\n                } else if (\n                  v1 instanceof _main.default.Color &&\n                  y instanceof _main.default.Vector\n                ) {\n                  color = v1;\n                  position = new _main.default.Vector(v2, v3, x);\n                  direction = y;\n                  angle = z;\n                } else if (\n                  v1 instanceof _main.default.Color &&\n                  v2 instanceof _main.default.Vector\n                ) {\n                  color = v1;\n                  position = v2;\n                  direction = new _main.default.Vector(v3, x, y);\n                  angle = z;\n                }\n                break;\n\n              case 5:\n                if (\n                  v1 instanceof _main.default.Color &&\n                  v2 instanceof _main.default.Vector &&\n                  v3 instanceof _main.default.Vector\n                ) {\n                  color = v1;\n                  position = v2;\n                  direction = v3;\n                  angle = x;\n                  concentration = y;\n                } else if (\n                  x instanceof _main.default.Vector &&\n                  y instanceof _main.default.Vector\n                ) {\n                  color = this.color(v1, v2, v3);\n                  position = x;\n                  direction = y;\n                } else if (\n                  v1 instanceof _main.default.Color &&\n                  y instanceof _main.default.Vector\n                ) {\n                  color = v1;\n                  position = new _main.default.Vector(v2, v3, x);\n                  direction = y;\n                } else if (\n                  v1 instanceof _main.default.Color &&\n                  v2 instanceof _main.default.Vector\n                ) {\n                  color = v1;\n                  position = v2;\n                  direction = new _main.default.Vector(v3, x, y);\n                }\n                break;\n\n              case 4:\n                color = v1;\n                position = v2;\n                direction = v3;\n                angle = x;\n                break;\n\n              case 3:\n                color = v1;\n                position = v2;\n                direction = v3;\n                break;\n\n              default:\n                console.warn(\n                  'Sorry, input for spotlight() is not in prescribed format. Too '.concat(\n                    length < 3 ? 'few' : 'many',\n                    ' arguments were provided'\n                  )\n                );\n\n                return this;\n            }\n\n            this._renderer.spotLightDiffuseColors.push(\n              color._array[0],\n              color._array[1],\n              color._array[2]\n            );\n\n            Array.prototype.push.apply(\n              this._renderer.spotLightSpecularColors,\n              this._renderer.specularColors\n            );\n\n            this._renderer.spotLightPositions.push(position.x, position.y, position.z);\n            direction.normalize();\n            this._renderer.spotLightDirections.push(direction.x, direction.y, direction.z);\n\n            if (angle === undefined) {\n              angle = Math.PI / 3;\n            }\n\n            if (concentration !== undefined && concentration < 1) {\n              concentration = 1;\n              console.warn(\n                'Value of concentration needs to be greater than 1. Setting it to 1'\n              );\n            } else if (concentration === undefined) {\n              concentration = 100;\n            }\n\n            angle = this._renderer._pInst._toRadians(angle);\n            this._renderer.spotLightAngle.push(Math.cos(angle));\n            this._renderer.spotLightConc.push(concentration);\n\n            this._renderer._enableLighting = true;\n\n            return this;\n          };\n\n          /**\n           * This function will remove all the lights from the sketch for the\n           * subsequent materials rendered. It affects all the subsequent methods.\n           * Calls to lighting methods made after noLights() will re-enable lights\n           * in the sketch.\n           * @method noLights\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(0);\n           *   noStroke();\n           *\n           *   ambientLight(150, 0, 0);\n           *   translate(-25, 0, 0);\n           *   ambientMaterial(250);\n           *   sphere(20);\n           *\n           *   noLights();\n           *   ambientLight(0, 150, 0);\n           *   translate(50, 0, 0);\n           *   ambientMaterial(250);\n           *   sphere(20);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Two spheres showing different colors\n           */\n          _main.default.prototype.noLights = function() {\n            this._assert3d('noLights');\n            _main.default._validateParameters('noLights', arguments);\n\n            this._renderer._enableLighting = false;\n\n            this._renderer.ambientLightColors.length = 0;\n            this._renderer.specularColors = [1, 1, 1];\n\n            this._renderer.directionalLightDirections.length = 0;\n            this._renderer.directionalLightDiffuseColors.length = 0;\n            this._renderer.directionalLightSpecularColors.length = 0;\n\n            this._renderer.pointLightPositions.length = 0;\n            this._renderer.pointLightDiffuseColors.length = 0;\n            this._renderer.pointLightSpecularColors.length = 0;\n\n            this._renderer.spotLightPositions.length = 0;\n            this._renderer.spotLightDirections.length = 0;\n            this._renderer.spotLightDiffuseColors.length = 0;\n            this._renderer.spotLightSpecularColors.length = 0;\n            this._renderer.spotLightAngle.length = 0;\n            this._renderer.spotLightConc.length = 0;\n\n            this._renderer.constantAttenuation = 1;\n            this._renderer.linearAttenuation = 0;\n            this._renderer.quadraticAttenuation = 0;\n            this._renderer._useShininess = 1;\n\n            return this;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      96: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          _dereq_('./p5.Geometry');\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Shape\n           * @submodule 3D Models\n           * @for p5\n           * @requires core\n           * @requires p5.Geometry\n           */ /**\n           * Load a 3d model from an OBJ or STL file.\n           * <br><br>\n           * <a href=\"#/p5/loadModel\">loadModel()</a> should be placed inside of <a href=\"#/p5/preload\">preload()</a>.\n           * This allows the model to load fully before the rest of your code is run.\n           * <br><br>\n           * One of the limitations of the OBJ and STL format is that it doesn't have a built-in\n           * sense of scale. This means that models exported from different programs might\n           * be very different sizes. If your model isn't displaying, try calling\n           * <a href=\"#/p5/loadModel\">loadModel()</a> with the normalized parameter set to true. This will resize the\n           * model to a scale appropriate for p5. You can also make additional changes to\n           * the final size of your model with the <a href=\"#/p5/scale\">scale()</a> function.\n           *\n           * Also, the support for colored STL files is not present. STL files with color will be\n           * rendered without color properties.\n           *\n           * @method loadModel\n           * @param  {String} path              Path of the model to be loaded\n           * @param  {Boolean} normalize        If true, scale the model to a\n           *                                      standardized size when loading\n           * @param  {function(p5.Geometry)} [successCallback] Function to be called\n           *                                     once the model is loaded. Will be passed\n           *                                     the 3D model object.\n           * @param  {function(Event)} [failureCallback] called with event error if\n           *                                         the model fails to load.\n           * @return {p5.Geometry} the <a href=\"#/p5.Geometry\">p5.Geometry</a> object\n           *\n           * @example\n           * <div>\n           * <code>\n           * //draw a spinning octahedron\n           * let octahedron;\n           *\n           * function preload() {\n           *   octahedron = loadModel('assets/octahedron.obj');\n           * }\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   model(octahedron);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Vertically rotating 3-d octahedron.\n           *\n           * @example\n           * <div>\n           * <code>\n           * //draw a spinning teapot\n           * let teapot;\n           *\n           * function preload() {\n           *   // Load model with normalise parameter set to true\n           *   teapot = loadModel('assets/teapot.obj', true);\n           * }\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   scale(0.4); // Scaled to make model fit into canvas\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   normalMaterial(); // For effect\n           *   model(teapot);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Vertically rotating 3-d teapot with red, green and blue gradient.\n           */ /**\n           * @method loadModel\n           * @param  {String} path\n           * @param  {function(p5.Geometry)} [successCallback]\n           * @param  {function(Event)} [failureCallback]\n           * @return {p5.Geometry} the <a href=\"#/p5.Geometry\">p5.Geometry</a> object\n           */ _main.default.prototype.loadModel = function(path) {\n            _main.default._validateParameters('loadModel', arguments);\n            var normalize;\n            var successCallback;\n            var failureCallback;\n            if (typeof arguments[1] === 'boolean') {\n              normalize = arguments[1];\n              successCallback = arguments[2];\n              failureCallback = arguments[3];\n            } else {\n              normalize = false;\n              successCallback = arguments[1];\n              failureCallback = arguments[2];\n            }\n\n            var fileType = path.slice(-4);\n            var model = new _main.default.Geometry();\n            model.gid = ''.concat(path, '|').concat(normalize);\n            var self = this;\n\n            if (fileType === '.stl') {\n              this.httpDo(\n                path,\n                'GET',\n                'arrayBuffer',\n                function(arrayBuffer) {\n                  parseSTL(model, arrayBuffer);\n\n                  if (normalize) {\n                    model.normalize();\n                  }\n                  self._decrementPreload();\n                  if (typeof successCallback === 'function') {\n                    successCallback(model);\n                  }\n                },\n                failureCallback\n              );\n            } else if (fileType === '.obj') {\n              this.loadStrings(\n                path,\n                function(strings) {\n                  parseObj(model, strings);\n\n                  if (normalize) {\n                    model.normalize();\n                  }\n\n                  self._decrementPreload();\n                  if (typeof successCallback === 'function') {\n                    successCallback(model);\n                  }\n                },\n                failureCallback\n              );\n            } else {\n              _main.default._friendlyFileLoadError(3, path);\n\n              if (failureCallback) {\n                failureCallback();\n              } else {\n                console.error(\n                  'Sorry, the file type is invalid. Only OBJ and STL files are supported.'\n                );\n              }\n            }\n            return model;\n          };\n\n          /**\n           * Parse OBJ lines into model. For reference, this is what a simple model of a\n           * square might look like:\n           *\n           * v -0.5 -0.5 0.5\n           * v -0.5 -0.5 -0.5\n           * v -0.5 0.5 -0.5\n           * v -0.5 0.5 0.5\n           *\n           * f 4 3 2 1\n           */\n          function parseObj(model, lines) {\n            // OBJ allows a face to specify an index for a vertex (in the above example),\n            // but it also allows you to specify a custom combination of vertex, UV\n            // coordinate, and vertex normal. So, \"3/4/3\" would mean, \"use vertex 3 with\n            // UV coordinate 4 and vertex normal 3\". In WebGL, every vertex with different\n            // parameters must be a different vertex, so loadedVerts is used to\n            // temporarily store the parsed vertices, normals, etc., and indexedVerts is\n            // used to map a specific combination (keyed on, for example, the string\n            // \"3/4/3\"), to the actual index of the newly created vertex in the final\n            // object.\n            var loadedVerts = {\n              v: [],\n              vt: [],\n              vn: []\n            };\n\n            var indexedVerts = {};\n\n            for (var line = 0; line < lines.length; ++line) {\n              // Each line is a separate object (vertex, face, vertex normal, etc)\n              // For each line, split it into tokens on whitespace. The first token\n              // describes the type.\n              var tokens = lines[line].trim().split(/\\b\\s+/);\n\n              if (tokens.length > 0) {\n                if (tokens[0] === 'v' || tokens[0] === 'vn') {\n                  // Check if this line describes a vertex or vertex normal.\n                  // It will have three numeric parameters.\n                  var vertex = new _main.default.Vector(\n                    parseFloat(tokens[1]),\n                    parseFloat(tokens[2]),\n                    parseFloat(tokens[3])\n                  );\n\n                  loadedVerts[tokens[0]].push(vertex);\n                } else if (tokens[0] === 'vt') {\n                  // Check if this line describes a texture coordinate.\n                  // It will have two numeric parameters.\n                  var texVertex = [parseFloat(tokens[1]), parseFloat(tokens[2])];\n                  loadedVerts[tokens[0]].push(texVertex);\n                } else if (tokens[0] === 'f') {\n                  // Check if this line describes a face.\n                  // OBJ faces can have more than three points. Triangulate points.\n                  for (var tri = 3; tri < tokens.length; ++tri) {\n                    var face = [];\n\n                    var vertexTokens = [1, tri - 1, tri];\n\n                    for (var tokenInd = 0; tokenInd < vertexTokens.length; ++tokenInd) {\n                      // Now, convert the given token into an index\n                      var vertString = tokens[vertexTokens[tokenInd]];\n                      var vertIndex = 0;\n\n                      // TODO: Faces can technically use negative numbers to refer to the\n                      // previous nth vertex. I haven't seen this used in practice, but\n                      // it might be good to implement this in the future.\n\n                      if (indexedVerts[vertString] !== undefined) {\n                        vertIndex = indexedVerts[vertString];\n                      } else {\n                        var vertParts = vertString.split('/');\n                        for (var i = 0; i < vertParts.length; i++) {\n                          vertParts[i] = parseInt(vertParts[i]) - 1;\n                        }\n\n                        vertIndex = indexedVerts[vertString] = model.vertices.length;\n                        model.vertices.push(loadedVerts.v[vertParts[0]].copy());\n                        if (loadedVerts.vt[vertParts[1]]) {\n                          model.uvs.push(loadedVerts.vt[vertParts[1]].slice());\n                        } else {\n                          model.uvs.push([0, 0]);\n                        }\n\n                        if (loadedVerts.vn[vertParts[2]]) {\n                          model.vertexNormals.push(loadedVerts.vn[vertParts[2]].copy());\n                        }\n                      }\n\n                      face.push(vertIndex);\n                    }\n\n                    if (face[0] !== face[1] && face[0] !== face[2] && face[1] !== face[2]) {\n                      model.faces.push(face);\n                    }\n                  }\n                }\n              }\n            }\n            // If the model doesn't have normals, compute the normals\n            if (model.vertexNormals.length === 0) {\n              model.computeNormals();\n            }\n\n            return model;\n          }\n\n          /**\n           * STL files can be of two types, ASCII and Binary,\n           *\n           * We need to convert the arrayBuffer to an array of strings,\n           * to parse it as an ASCII file.\n           */\n          function parseSTL(model, buffer) {\n            if (isBinary(buffer)) {\n              parseBinarySTL(model, buffer);\n            } else {\n              var reader = new DataView(buffer);\n\n              if (!('TextDecoder' in window)) {\n                console.warn(\n                  'Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)'\n                );\n\n                return model;\n              }\n\n              var decoder = new TextDecoder('utf-8');\n              var lines = decoder.decode(reader);\n              var lineArray = lines.split('\\n');\n              parseASCIISTL(model, lineArray);\n            }\n            return model;\n          }\n\n          /**\n           * This function checks if the file is in ASCII format or in Binary format\n           *\n           * It is done by searching keyword `solid` at the start of the file.\n           *\n           * An ASCII STL data must begin with `solid` as the first six bytes.\n           * However, ASCII STLs lacking the SPACE after the `d` are known to be\n           * plentiful. So, check the first 5 bytes for `solid`.\n           *\n           * Several encodings, such as UTF-8, precede the text with up to 5 bytes:\n           * https://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding\n           * Search for `solid` to start anywhere after those prefixes.\n           */\n          function isBinary(data) {\n            var reader = new DataView(data);\n\n            // US-ASCII ordinal values for `s`, `o`, `l`, `i`, `d`\n            var solid = [115, 111, 108, 105, 100];\n            for (var off = 0; off < 5; off++) {\n              // If \"solid\" text is matched to the current offset, declare it to be an ASCII STL.\n              if (matchDataViewAt(solid, reader, off)) return false;\n            }\n\n            // Couldn't find \"solid\" text at the beginning; it is binary STL.\n            return true;\n          }\n\n          /**\n           * This function matches the `query` at the provided `offset`\n           */\n          function matchDataViewAt(query, reader, offset) {\n            // Check if each byte in query matches the corresponding byte from the current offset\n            for (var i = 0, il = query.length; i < il; i++) {\n              if (query[i] !== reader.getUint8(offset + i, false)) return false;\n            }\n\n            return true;\n          }\n\n          /**\n           * This function parses the Binary STL files.\n           * https://en.wikipedia.org/wiki/STL_%28file_format%29#Binary_STL\n           *\n           * Currently there is no support for the colors provided in STL files.\n           */\n          function parseBinarySTL(model, buffer) {\n            var reader = new DataView(buffer);\n\n            // Number of faces is present following the header\n            var faces = reader.getUint32(80, true);\n            var r,\n              g,\n              b,\n              hasColors = false,\n              colors;\n            var defaultR, defaultG, defaultB;\n\n            // Binary files contain 80-byte header, which is generally ignored.\n            for (var index = 0; index < 80 - 10; index++) {\n              // Check for `COLOR=`\n              if (\n                reader.getUint32(index, false) === 0x434f4c4f /*COLO*/ &&\n                reader.getUint8(index + 4) === 0x52 /*'R'*/ &&\n                reader.getUint8(index + 5) === 0x3d /*'='*/\n              ) {\n                hasColors = true;\n                colors = [];\n\n                defaultR = reader.getUint8(index + 6) / 255;\n                defaultG = reader.getUint8(index + 7) / 255;\n                defaultB = reader.getUint8(index + 8) / 255;\n                // To be used when color support is added\n                // alpha = reader.getUint8(index + 9) / 255;\n              }\n            }\n            var dataOffset = 84;\n            var faceLength = 12 * 4 + 2;\n\n            // Iterate the faces\n            for (var face = 0; face < faces; face++) {\n              var start = dataOffset + face * faceLength;\n              var normalX = reader.getFloat32(start, true);\n              var normalY = reader.getFloat32(start + 4, true);\n              var normalZ = reader.getFloat32(start + 8, true);\n\n              if (hasColors) {\n                var packedColor = reader.getUint16(start + 48, true);\n\n                if ((packedColor & 0x8000) === 0) {\n                  // facet has its own unique color\n                  r = (packedColor & 0x1f) / 31;\n                  g = ((packedColor >> 5) & 0x1f) / 31;\n                  b = ((packedColor >> 10) & 0x1f) / 31;\n                } else {\n                  r = defaultR;\n                  g = defaultG;\n                  b = defaultB;\n                }\n              }\n\n              for (var i = 1; i <= 3; i++) {\n                var vertexstart = start + i * 12;\n\n                var newVertex = new _main.default.Vector(\n                  reader.getFloat32(vertexstart, true),\n                  reader.getFloat32(vertexstart + 8, true),\n                  reader.getFloat32(vertexstart + 4, true)\n                );\n\n                model.vertices.push(newVertex);\n\n                if (hasColors) {\n                  colors.push(r, g, b);\n                }\n              }\n\n              var newNormal = new _main.default.Vector(normalX, normalY, normalZ);\n\n              model.vertexNormals.push(newNormal, newNormal, newNormal);\n\n              model.faces.push([3 * face, 3 * face + 1, 3 * face + 2]);\n              model.uvs.push([0, 0], [0, 0], [0, 0]);\n            }\n            if (hasColors) {\n              // add support for colors here.\n            }\n            return model;\n          }\n\n          /**\n           * ASCII STL file starts with `solid 'nameOfFile'`\n           * Then contain the normal of the face, starting with `facet normal`\n           * Next contain a keyword indicating the start of face vertex, `outer loop`\n           * Next comes the three vertex, starting with `vertex x y z`\n           * Vertices ends with `endloop`\n           * Face ends with `endfacet`\n           * Next face starts with `facet normal`\n           * The end of the file is indicated by `endsolid`\n           */\n          function parseASCIISTL(model, lines) {\n            var state = '';\n            var curVertexIndex = [];\n            var newNormal, newVertex;\n\n            for (var iterator = 0; iterator < lines.length; ++iterator) {\n              var line = lines[iterator].trim();\n              var parts = line.split(' ');\n\n              for (var partsiterator = 0; partsiterator < parts.length; ++partsiterator) {\n                if (parts[partsiterator] === '') {\n                  // Ignoring multiple whitespaces\n                  parts.splice(partsiterator, 1);\n                }\n              }\n\n              if (parts.length === 0) {\n                // Remove newline\n                continue;\n              }\n\n              switch (state) {\n                case '': // First run\n                  if (parts[0] !== 'solid') {\n                    // Invalid state\n                    console.error(line);\n                    console.error(\n                      'Invalid state \"'.concat(parts[0], '\", should be \"solid\"')\n                    );\n                    return;\n                  } else {\n                    state = 'solid';\n                  }\n                  break;\n\n                case 'solid': // First face\n                  if (parts[0] !== 'facet' || parts[1] !== 'normal') {\n                    // Invalid state\n                    console.error(line);\n                    console.error(\n                      'Invalid state \"'.concat(parts[0], '\", should be \"facet normal\"')\n                    );\n\n                    return;\n                  } else {\n                    // Push normal for first face\n                    newNormal = new _main.default.Vector(\n                      parseFloat(parts[2]),\n                      parseFloat(parts[3]),\n                      parseFloat(parts[4])\n                    );\n\n                    model.vertexNormals.push(newNormal, newNormal, newNormal);\n                    state = 'facet normal';\n                  }\n                  break;\n\n                case 'facet normal': // After normal is defined\n                  if (parts[0] !== 'outer' || parts[1] !== 'loop') {\n                    // Invalid State\n                    console.error(line);\n                    console.error(\n                      'Invalid state \"'.concat(parts[0], '\", should be \"outer loop\"')\n                    );\n                    return;\n                  } else {\n                    // Next should be vertices\n                    state = 'vertex';\n                  }\n                  break;\n\n                case 'vertex':\n                  if (parts[0] === 'vertex') {\n                    //Vertex of triangle\n                    newVertex = new _main.default.Vector(\n                      parseFloat(parts[1]),\n                      parseFloat(parts[2]),\n                      parseFloat(parts[3])\n                    );\n\n                    model.vertices.push(newVertex);\n                    model.uvs.push([0, 0]);\n                    curVertexIndex.push(model.vertices.indexOf(newVertex));\n                  } else if (parts[0] === 'endloop') {\n                    // End of vertices\n                    model.faces.push(curVertexIndex);\n                    curVertexIndex = [];\n                    state = 'endloop';\n                  } else {\n                    // Invalid State\n                    console.error(line);\n                    console.error(\n                      'Invalid state \"'.concat(\n                        parts[0],\n                        '\", should be \"vertex\" or \"endloop\"'\n                      )\n                    );\n\n                    return;\n                  }\n                  break;\n\n                case 'endloop':\n                  if (parts[0] !== 'endfacet') {\n                    // End of face\n                    console.error(line);\n                    console.error(\n                      'Invalid state \"'.concat(parts[0], '\", should be \"endfacet\"')\n                    );\n                    return;\n                  } else {\n                    state = 'endfacet';\n                  }\n                  break;\n\n                case 'endfacet':\n                  if (parts[0] === 'endsolid') {\n                    // End of solid\n                  } else if (parts[0] === 'facet' && parts[1] === 'normal') {\n                    // Next face\n                    newNormal = new _main.default.Vector(\n                      parseFloat(parts[2]),\n                      parseFloat(parts[3]),\n                      parseFloat(parts[4])\n                    );\n\n                    model.vertexNormals.push(newNormal, newNormal, newNormal);\n                    state = 'facet normal';\n                  } else {\n                    // Invalid State\n                    console.error(line);\n                    console.error(\n                      'Invalid state \"'.concat(\n                        parts[0],\n                        '\", should be \"endsolid\" or \"facet normal\"'\n                      )\n                    );\n\n                    return;\n                  }\n                  break;\n\n                default:\n                  console.error('Invalid state \"'.concat(state, '\"'));\n                  break;\n              }\n            }\n            return model;\n          }\n\n          /**\n           * Render a 3d model to the screen.\n           *\n           * @method model\n           * @param  {p5.Geometry} model Loaded 3d model to be rendered\n           * @example\n           * <div>\n           * <code>\n           * //draw a spinning octahedron\n           * let octahedron;\n           *\n           * function preload() {\n           *   octahedron = loadModel('assets/octahedron.obj');\n           * }\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   model(octahedron);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Vertically rotating 3-d octahedron.\n           *\n           */\n          _main.default.prototype.model = function(model) {\n            this._assert3d('model');\n            _main.default._validateParameters('model', arguments);\n            if (model.vertices.length > 0) {\n              if (!this._renderer.geometryInHash(model.gid)) {\n                model._makeTriangleEdges()._edgesToVertices();\n                this._renderer.createBuffers(model.gid, model);\n              }\n\n              this._renderer.drawBuffers(model.gid);\n            }\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/main': 50, './p5.Geometry': 99 }\n      ],\n      97: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          _dereq_('./p5.Texture');\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @module Lights, Camera\n           * @submodule Material\n           * @for p5\n           * @requires core\n           */ /**\n           * Loads a custom shader from the provided vertex and fragment\n           * shader paths. The shader files are loaded asynchronously in the\n           * background, so this method should be used in <a href=\"#/p5/preload\">preload()</a>.\n           *\n           * For now, there are three main types of shaders. p5 will automatically\n           * supply appropriate vertices, normals, colors, and lighting attributes\n           * if the parameters defined in the shader match the names.\n           *\n           * @method loadShader\n           * @param {String} vertFilename path to file containing vertex shader\n           * source code\n           * @param {String} fragFilename path to file containing fragment shader\n           * source code\n           * @param {function} [callback] callback to be executed after loadShader\n           * completes. On success, the Shader object is passed as the first argument.\n           * @param {function} [errorCallback] callback to be executed when an error\n           * occurs inside loadShader. On error, the error is passed as the first\n           * argument.\n           * @return {p5.Shader} a shader object created from the provided\n           * vertex and fragment shader files.\n           *\n           * @example\n           * <div modernizr='webgl'>\n           * <code>\n           * let mandel;\n           * function preload() {\n           *   // load the shader definitions from files\n           *   mandel = loadShader('assets/shader.vert', 'assets/shader.frag');\n           * }\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   // use the shader\n           *   shader(mandel);\n           *   noStroke();\n           *   mandel.setUniform('p', [-0.74364388703, 0.13182590421]);\n           * }\n           *\n           * function draw() {\n           *   mandel.setUniform('r', 1.5 * exp(-6.5 * (1 + sin(millis() / 2000))));\n           *   quad(-1, -1, 1, -1, 1, 1, -1, 1);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * zooming Mandelbrot set. a colorful, infinitely detailed fractal.\n           */ _main.default.prototype.loadShader = function(\n            vertFilename,\n            fragFilename,\n            callback,\n            errorCallback\n          ) {\n            _main.default._validateParameters('loadShader', arguments);\n            if (!errorCallback) {\n              errorCallback = console.error;\n            }\n\n            var loadedShader = new _main.default.Shader();\n\n            var self = this;\n            var loadedFrag = false;\n            var loadedVert = false;\n\n            var onLoad = function onLoad() {\n              self._decrementPreload();\n              if (callback) {\n                callback(loadedShader);\n              }\n            };\n\n            this.loadStrings(\n              vertFilename,\n              function(result) {\n                loadedShader._vertSrc = result.join('\\n');\n                loadedVert = true;\n                if (loadedFrag) {\n                  onLoad();\n                }\n              },\n              errorCallback\n            );\n\n            this.loadStrings(\n              fragFilename,\n              function(result) {\n                loadedShader._fragSrc = result.join('\\n');\n                loadedFrag = true;\n                if (loadedVert) {\n                  onLoad();\n                }\n              },\n              errorCallback\n            );\n\n            return loadedShader;\n          };\n\n          /**\n           * @method createShader\n           * @param {String} vertSrc source code for the vertex shader\n           * @param {String} fragSrc source code for the fragment shader\n           * @returns {p5.Shader} a shader object created from the provided\n           * vertex and fragment shaders.\n           *\n           * @example\n           * <div modernizr='webgl'>\n           * <code>\n           * // the 'varying's are shared between both vertex & fragment shaders\n           * let varying = 'precision highp float; varying vec2 vPos;';\n           *\n           * // the vertex shader is called for each vertex\n           * let vs =\n           *   varying +\n           *   'attribute vec3 aPosition;' +\n           *   'void main() { vPos = (gl_Position = vec4(aPosition,1.0)).xy; }';\n           *\n           * // the fragment shader is called for each pixel\n           * let fs =\n           *   varying +\n           *   'uniform vec2 p;' +\n           *   'uniform float r;' +\n           *   'const int I = 500;' +\n           *   'void main() {' +\n           *   '  vec2 c = p + vPos * r, z = c;' +\n           *   '  float n = 0.0;' +\n           *   '  for (int i = I; i > 0; i --) {' +\n           *   '    if(z.x*z.x+z.y*z.y > 4.0) {' +\n           *   '      n = float(i)/float(I);' +\n           *   '      break;' +\n           *   '    }' +\n           *   '    z = vec2(z.x*z.x-z.y*z.y, 2.0*z.x*z.y) + c;' +\n           *   '  }' +\n           *   '  gl_FragColor = vec4(0.5-cos(n*17.0)/2.0,0.5-cos(n*13.0)/2.0,0.5-cos(n*23.0)/2.0,1.0);' +\n           *   '}';\n           *\n           * let mandel;\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *\n           *   // create and initialize the shader\n           *   mandel = createShader(vs, fs);\n           *   shader(mandel);\n           *   noStroke();\n           *\n           *   // 'p' is the center point of the Mandelbrot image\n           *   mandel.setUniform('p', [-0.74364388703, 0.13182590421]);\n           * }\n           *\n           * function draw() {\n           *   // 'r' is the size of the image in Mandelbrot-space\n           *   mandel.setUniform('r', 1.5 * exp(-6.5 * (1 + sin(millis() / 2000))));\n           *   quad(-1, -1, 1, -1, 1, 1, -1, 1);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * zooming Mandelbrot set. a colorful, infinitely detailed fractal.\n           */\n          _main.default.prototype.createShader = function(vertSrc, fragSrc) {\n            this._assert3d('createShader');\n            _main.default._validateParameters('createShader', arguments);\n            return new _main.default.Shader(this._renderer, vertSrc, fragSrc);\n          };\n\n          /**\n           * The <a href=\"#/p5/shader\">shader()</a> function lets the user provide a custom shader\n           * to fill in shapes in WEBGL mode. Users can create their\n           * own shaders by loading vertex and fragment shaders with\n           * <a href=\"#/p5/loadShader\">loadShader()</a>.\n           *\n           * @method shader\n           * @chainable\n           * @param {p5.Shader} [s] the desired <a href=\"#/p5.Shader\">p5.Shader</a> to use for rendering\n           * shapes.\n           *\n           * @example\n           * <div modernizr='webgl'>\n           * <code>\n           * // Click within the image to toggle\n           * // the shader used by the quad shape\n           * // Note: for an alternative approach to the same example,\n           * // involving changing uniforms please refer to:\n           * // https://p5js.org/reference/#/p5.Shader/setUniform\n           *\n           * let redGreen;\n           * let orangeBlue;\n           * let showRedGreen = false;\n           *\n           * function preload() {\n           *   // note that we are using two instances\n           *   // of the same vertex and fragment shaders\n           *   redGreen = loadShader('assets/shader.vert', 'assets/shader-gradient.frag');\n           *   orangeBlue = loadShader('assets/shader.vert', 'assets/shader-gradient.frag');\n           * }\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *\n           *   // initialize the colors for redGreen shader\n           *   shader(redGreen);\n           *   redGreen.setUniform('colorCenter', [1.0, 0.0, 0.0]);\n           *   redGreen.setUniform('colorBackground', [0.0, 1.0, 0.0]);\n           *\n           *   // initialize the colors for orangeBlue shader\n           *   shader(orangeBlue);\n           *   orangeBlue.setUniform('colorCenter', [1.0, 0.5, 0.0]);\n           *   orangeBlue.setUniform('colorBackground', [0.226, 0.0, 0.615]);\n           *\n           *   noStroke();\n           * }\n           *\n           * function draw() {\n           *   // update the offset values for each shader,\n           *   // moving orangeBlue in vertical and redGreen\n           *   // in horizontal direction\n           *   orangeBlue.setUniform('offset', [0, sin(millis() / 2000) + 1]);\n           *   redGreen.setUniform('offset', [sin(millis() / 2000), 1]);\n           *\n           *   if (showRedGreen === true) {\n           *     shader(redGreen);\n           *   } else {\n           *     shader(orangeBlue);\n           *   }\n           *   quad(-1, -1, 1, -1, 1, 1, -1, 1);\n           * }\n           *\n           * function mouseClicked() {\n           *   showRedGreen = !showRedGreen;\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * canvas toggles between a circular gradient of orange and blue vertically. and a circular gradient of red and green moving horizontally when mouse is clicked/pressed.\n           */\n          _main.default.prototype.shader = function(s) {\n            this._assert3d('shader');\n            _main.default._validateParameters('shader', arguments);\n\n            if (s._renderer === undefined) {\n              s._renderer = this._renderer;\n            }\n\n            if (s.isStrokeShader()) {\n              this._renderer.userStrokeShader = s;\n            } else {\n              this._renderer.userFillShader = s;\n              this._renderer._useNormalMaterial = false;\n            }\n\n            s.init();\n\n            return this;\n          };\n\n          /**\n           * This function restores the default shaders in WEBGL mode. Code that runs\n           * after resetShader() will not be affected by previously defined\n           * shaders. Should be run after <a href=\"#/p5/shader\">shader()</a>.\n           *\n           * @method resetShader\n           * @chainable\n           */\n          _main.default.prototype.resetShader = function() {\n            this._renderer.userFillShader = this._renderer.userStrokeShader = null;\n            return this;\n          };\n\n          /**\n           * Normal material for geometry is a material that is not affected by light.\n           * It is not reflective and is a placeholder material often used for debugging.\n           * Surfaces facing the X-axis, become red, those facing the Y-axis, become green and those facing the Z-axis, become blue.\n           * You can view all possible materials in this\n           * <a href=\"https://p5js.org/examples/3d-materials.html\">example</a>.\n           * @method normalMaterial\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *   normalMaterial();\n           *   sphere(40);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * Red, green and blue gradient.\n           *\n           */\n          _main.default.prototype.normalMaterial = function() {\n            this._assert3d('normalMaterial');\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default._validateParameters('normalMaterial', args);\n            this._renderer.drawMode = constants.FILL;\n            this._renderer._useSpecularMaterial = false;\n            this._renderer._useEmissiveMaterial = false;\n            this._renderer._useNormalMaterial = true;\n            this._renderer.curFillColor = [1, 1, 1, 1];\n            this._renderer._setProperty('_doFill', true);\n            this.noStroke();\n            return this;\n          };\n\n          /**\n           * Texture for geometry.  You can view other possible materials in this\n           * <a href=\"https://p5js.org/examples/3d-materials.html\">example</a>.\n           * @method texture\n           * @param {p5.Image|p5.MediaElement|p5.Graphics} tex 2-dimensional graphics\n           *                    to render as texture\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/laDefense.jpg');\n           * }\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(0);\n           *   rotateZ(frameCount * 0.01);\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   //pass image as texture\n           *   texture(img);\n           *   box(200, 200, 200);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let pg;\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   pg = createGraphics(200, 200);\n           *   pg.textSize(75);\n           * }\n           *\n           * function draw() {\n           *   background(0);\n           *   pg.background(255);\n           *   pg.text('hello!', 0, 100);\n           *   //pass image as texture\n           *   texture(pg);\n           *   rotateX(0.5);\n           *   noStroke();\n           *   plane(50);\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * let vid;\n           * function preload() {\n           *   vid = createVideo('assets/fingers.mov');\n           *   vid.hide();\n           * }\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(0);\n           *   //pass video frame as texture\n           *   texture(vid);\n           *   rect(-40, -40, 80, 80);\n           * }\n           *\n           * function mousePressed() {\n           *   vid.loop();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Rotating view of many images umbrella and grid roof on a 3d plane\n           * black canvas\n           * black canvas\n           *\n           */\n          _main.default.prototype.texture = function(tex) {\n            this._assert3d('texture');\n            _main.default._validateParameters('texture', arguments);\n            if (tex.gifProperties) {\n              tex._animateGif(this);\n            }\n\n            this._renderer.drawMode = constants.TEXTURE;\n            this._renderer._useSpecularMaterial = false;\n            this._renderer._useEmissiveMaterial = false;\n            this._renderer._useNormalMaterial = false;\n            this._renderer._tex = tex;\n            this._renderer._setProperty('_doFill', true);\n\n            return this;\n          };\n\n          /**\n           * Sets the coordinate space for texture mapping. The default mode is IMAGE\n           * which refers to the actual coordinates of the image.\n           * NORMAL refers to a normalized space of values ranging from 0 to 1.\n           * This function only works in WEBGL mode.\n           *\n           * With IMAGE, if an image is 100 x 200 pixels, mapping the image onto the entire\n           * size of a quad would require the points (0,0) (100, 0) (100,200) (0,200).\n           * The same mapping in NORMAL is (0,0) (1,0) (1,1) (0,1).\n           * @method  textureMode\n           * @param {Constant} mode either IMAGE or NORMAL\n           * @example\n           * <div>\n           * <code>\n           * let img;\n           *\n           * function preload() {\n           *   img = loadImage('assets/laDefense.jpg');\n           * }\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   texture(img);\n           *   textureMode(NORMAL);\n           *   beginShape();\n           *   vertex(-50, -50, 0, 0);\n           *   vertex(50, -50, 1, 0);\n           *   vertex(50, 50, 1, 1);\n           *   vertex(-50, 50, 0, 1);\n           *   endShape();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * the underside of a white umbrella and gridded ceiling above\n           *\n           * <div>\n           * <code>\n           * let img;\n           *\n           * function preload() {\n           *   img = loadImage('assets/laDefense.jpg');\n           * }\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   texture(img);\n           *   textureMode(NORMAL);\n           *   beginShape();\n           *   vertex(-50, -50, 0, 0);\n           *   vertex(50, -50, img.width, 0);\n           *   vertex(50, 50, img.width, img.height);\n           *   vertex(-50, 50, 0, img.height);\n           *   endShape();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * the underside of a white umbrella and gridded ceiling above\n           *\n           */\n          _main.default.prototype.textureMode = function(mode) {\n            if (mode !== constants.IMAGE && mode !== constants.NORMAL) {\n              console.warn(\n                'You tried to set '.concat(\n                  mode,\n                  ' textureMode only supports IMAGE & NORMAL '\n                )\n              );\n            } else {\n              this._renderer.textureMode = mode;\n            }\n          };\n\n          /**\n           * Sets the global texture wrapping mode. This controls how textures behave\n           * when their uv's go outside of the 0 - 1 range. There are three options:\n           * CLAMP, REPEAT, and MIRROR.\n           *\n           * CLAMP causes the pixels at the edge of the texture to extend to the bounds\n           * REPEAT causes the texture to tile repeatedly until reaching the bounds\n           * MIRROR works similarly to REPEAT but it flips the texture with every new tile\n           *\n           * REPEAT & MIRROR are only available if the texture\n           * is a power of two size (128, 256, 512, 1024, etc.).\n           *\n           * This method will affect all textures in your sketch until a subsequent\n           * textureWrap call is made.\n           *\n           * If only one argument is provided, it will be applied to both the\n           * horizontal and vertical axes.\n           * @method textureWrap\n           * @param {Constant} wrapX either CLAMP, REPEAT, or MIRROR\n           * @param {Constant} [wrapY] either CLAMP, REPEAT, or MIRROR\n           * @example\n           * <div>\n           * <code>\n           * let img;\n           * function preload() {\n           *   img = loadImage('assets/rockies128.jpg');\n           * }\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   textureWrap(MIRROR);\n           * }\n           *\n           * function draw() {\n           *   background(0);\n           *\n           *   let dX = mouseX;\n           *   let dY = mouseY;\n           *\n           *   let u = lerp(1.0, 2.0, dX);\n           *   let v = lerp(1.0, 2.0, dY);\n           *\n           *   scale(width / 2);\n           *\n           *   texture(img);\n           *\n           *   beginShape(TRIANGLES);\n           *   vertex(-1, -1, 0, 0, 0);\n           *   vertex(1, -1, 0, u, 0);\n           *   vertex(1, 1, 0, u, v);\n           *\n           *   vertex(1, 1, 0, u, v);\n           *   vertex(-1, 1, 0, 0, v);\n           *   vertex(-1, -1, 0, 0, 0);\n           *   endShape();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * an image of the rocky mountains repeated in mirrored tiles\n           *\n           */\n          _main.default.prototype.textureWrap = function(wrapX) {\n            var wrapY =\n              arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : wrapX;\n            this._renderer.textureWrapX = wrapX;\n            this._renderer.textureWrapY = wrapY;\n\n            var textures = this._renderer.textures;\n            for (var i = 0; i < textures.length; i++) {\n              textures[i].setWrapMode(wrapX, wrapY);\n            }\n          };\n\n          /**\n           * Ambient material for geometry with a given color. Ambient material defines the color the object reflects under any lighting.\n           * For example, if the ambient material of an object is pure red, but the ambient lighting only contains green, the object will not reflect any light.\n           * Here's an <a href=\"https://p5js.org/examples/3d-materials.html\">example containing all possible materials</a>.\n           * @method  ambientMaterial\n           * @param  {Number} v1  gray value, red or hue value\n           *                         (depending on the current color mode),\n           * @param  {Number} [v2] green or saturation value\n           * @param  {Number} [v3] blue or brightness value\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(0);\n           *   noStroke();\n           *   ambientLight(200);\n           *   ambientMaterial(70, 130, 230);\n           *   sphere(40);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * // ambientLight is both red and blue (magenta),\n           * // so object only reflects it's red and blue components\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(70);\n           *   ambientLight(100); // white light\n           *   ambientMaterial(255, 0, 255); // pink material\n           *   box(30);\n           * }\n           * </code>\n           * </div>\n           * <div>\n           * <code>\n           * // ambientLight is green. Since object does not contain\n           * // green, it does not reflect any light\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(70);\n           *   ambientLight(0, 255, 0); // green light\n           *   ambientMaterial(255, 0, 255); // pink material\n           *   box(30);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * radiating light source from top right of canvas\n           * box reflecting only red and blue light\n           * box reflecting no light\n           */\n          /**\n           * @method  ambientMaterial\n           * @param  {Number[]|String|p5.Color} color  color, color Array, or CSS color string\n           * @chainable\n           */\n          _main.default.prototype.ambientMaterial = function(v1, v2, v3) {\n            this._assert3d('ambientMaterial');\n            _main.default._validateParameters('ambientMaterial', arguments);\n\n            var color = _main.default.prototype.color.apply(this, arguments);\n            this._renderer.curFillColor = color._array;\n            this._renderer._useSpecularMaterial = false;\n            this._renderer._useEmissiveMaterial = false;\n            this._renderer._useNormalMaterial = false;\n            this._renderer._enableLighting = true;\n            this._renderer._tex = null;\n\n            return this;\n          };\n\n          /**\n           * Sets the emissive color of the material used for geometry drawn to\n           * the screen. This is a misnomer in the sense that the material does not\n           * actually emit light that effects surrounding polygons. Instead,\n           * it gives the appearance that the object is glowing. An emissive material\n           * will display at full strength even if there is no light for it to reflect.\n           * @method emissiveMaterial\n           * @param  {Number} v1  gray value, red or hue value\n           *                         (depending on the current color mode),\n           * @param  {Number} [v2] green or saturation value\n           * @param  {Number} [v3] blue or brightness value\n           * @param  {Number} [a]  opacity\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(0);\n           *   noStroke();\n           *   ambientLight(0);\n           *   emissiveMaterial(130, 230, 0);\n           *   sphere(40);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * radiating light source from top right of canvas\n           */\n          /**\n           * @method  emissiveMaterial\n           * @param  {Number[]|String|p5.Color} color  color, color Array, or CSS color string\n           * @chainable\n           */\n          _main.default.prototype.emissiveMaterial = function(v1, v2, v3, a) {\n            this._assert3d('emissiveMaterial');\n            _main.default._validateParameters('emissiveMaterial', arguments);\n\n            var color = _main.default.prototype.color.apply(this, arguments);\n            this._renderer.curFillColor = color._array;\n            this._renderer._useSpecularMaterial = false;\n            this._renderer._useEmissiveMaterial = true;\n            this._renderer._useNormalMaterial = false;\n            this._renderer._enableLighting = true;\n            this._renderer._tex = null;\n\n            return this;\n          };\n\n          /**\n           * Specular material for geometry with a given color. Specular material is a shiny reflective material.\n           * Like ambient material it also defines the color the object reflects under ambient lighting.\n           * For example, if the specular material of an object is pure red, but the ambient lighting only contains green, the object will not reflect any light.\n           * For all other types of light like point and directional light, a specular material will reflect the color of the light source to the viewer.\n           * Here's an <a href=\"https://p5js.org/examples/3d-materials.html\">example containing all possible materials</a>.\n           * @method specularMaterial\n           * @param  {Number} v1  gray value, red or hue value\n           *                       (depending on the current color mode),\n           * @param  {Number} [v2] green or saturation value\n           * @param  {Number} [v3] blue or brightness value\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(0);\n           *   ambientLight(50);\n           *   pointLight(250, 250, 250, 100, 100, 30);\n           *   specularMaterial(250);\n           *   sphere(40);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * diffused radiating light source from top right of canvas\n           */\n          /**\n           * @method specularMaterial\n           * @param  {Number[]|String|p5.Color} color color Array, or CSS color string\n           * @chainable\n           */\n          _main.default.prototype.specularMaterial = function(v1, v2, v3) {\n            this._assert3d('specularMaterial');\n            _main.default._validateParameters('specularMaterial', arguments);\n\n            var color = _main.default.prototype.color.apply(this, arguments);\n            this._renderer.curFillColor = color._array;\n            this._renderer._useSpecularMaterial = true;\n            this._renderer._useEmissiveMaterial = false;\n            this._renderer._useNormalMaterial = false;\n            this._renderer._enableLighting = true;\n            this._renderer._tex = null;\n\n            return this;\n          };\n\n          /**\n           * Sets the amount of gloss in the surface of shapes.\n           * Used in combination with specularMaterial() in setting\n           * the material properties of shapes. The default and minimum value is 1.\n           * @method shininess\n           * @param {Number} shine Degree of Shininess.\n           *                       Defaults to 1.\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(0);\n           *   noStroke();\n           *   let locX = mouseX - width / 2;\n           *   let locY = mouseY - height / 2;\n           *   ambientLight(60, 60, 60);\n           *   pointLight(255, 255, 255, locX, locY, 50);\n           *   specularMaterial(250);\n           *   translate(-25, 0, 0);\n           *   shininess(1);\n           *   sphere(20);\n           *   translate(50, 0, 0);\n           *   shininess(20);\n           *   sphere(20);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * Shininess on Camera changes position with mouse\n           */\n          _main.default.prototype.shininess = function(shine) {\n            this._assert3d('shininess');\n            _main.default._validateParameters('shininess', arguments);\n\n            if (shine < 1) {\n              shine = 1;\n            }\n            this._renderer._useShininess = shine;\n            return this;\n          };\n\n          /**\n           * @private blends colors according to color components.\n           * If alpha value is less than 1, or non-standard blendMode\n           * we need to enable blending on our gl context.\n           * @param  {Number[]} color [description]\n           * @return {Number[]]}  Normalized numbers array\n           */\n          _main.default.RendererGL.prototype._applyColorBlend = function(colors) {\n            var gl = this.GL;\n\n            var isTexture = this.drawMode === constants.TEXTURE;\n            var doBlend = isTexture || colors[colors.length - 1] < 1.0 || this._isErasing;\n\n            if (doBlend !== this._isBlending) {\n              if (\n                doBlend ||\n                (this.curBlendMode !== constants.BLEND &&\n                  this.curBlendMode !== constants.ADD)\n              ) {\n                gl.enable(gl.BLEND);\n              } else {\n                gl.disable(gl.BLEND);\n              }\n              gl.depthMask(true);\n              this._isBlending = doBlend;\n            }\n            this._applyBlendMode();\n            return colors;\n          };\n\n          /**\n           * @private sets blending in gl context to curBlendMode\n           * @param  {Number[]} color [description]\n           * @return {Number[]]}  Normalized numbers array\n           */\n          _main.default.RendererGL.prototype._applyBlendMode = function() {\n            if (this._cachedBlendMode === this.curBlendMode) {\n              return;\n            }\n            var gl = this.GL;\n            switch (this.curBlendMode) {\n              case constants.BLEND:\n              case constants.ADD:\n                gl.blendEquation(gl.FUNC_ADD);\n                gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);\n                break;\n              case constants.REMOVE:\n                gl.blendEquation(gl.FUNC_REVERSE_SUBTRACT);\n                gl.blendFunc(gl.SRC_ALPHA, gl.DST_ALPHA);\n                break;\n              case constants.MULTIPLY:\n                gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_ADD);\n                gl.blendFuncSeparate(gl.ZERO, gl.SRC_COLOR, gl.ONE, gl.ONE);\n                break;\n              case constants.SCREEN:\n                gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_ADD);\n                gl.blendFuncSeparate(gl.ONE_MINUS_DST_COLOR, gl.ONE, gl.ONE, gl.ONE);\n                break;\n              case constants.EXCLUSION:\n                gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_ADD);\n                gl.blendFuncSeparate(\n                  gl.ONE_MINUS_DST_COLOR,\n                  gl.ONE_MINUS_SRC_COLOR,\n                  gl.ONE,\n                  gl.ONE\n                );\n\n                break;\n              case constants.REPLACE:\n                gl.blendEquation(gl.FUNC_ADD);\n                gl.blendFunc(gl.ONE, gl.ZERO);\n                break;\n              case constants.SUBTRACT:\n                gl.blendEquationSeparate(gl.FUNC_REVERSE_SUBTRACT, gl.FUNC_ADD);\n                gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE, gl.ONE, gl.ONE);\n                break;\n              case constants.DARKEST:\n                if (this.blendExt) {\n                  gl.blendEquationSeparate(this.blendExt.MIN_EXT, gl.FUNC_ADD);\n                  gl.blendFuncSeparate(gl.ONE, gl.ONE, gl.ONE, gl.ONE);\n                } else {\n                  console.warn(\n                    'blendMode(DARKEST) does not work in your browser in WEBGL mode.'\n                  );\n                }\n                break;\n              case constants.LIGHTEST:\n                if (this.blendExt) {\n                  gl.blendEquationSeparate(this.blendExt.MAX_EXT, gl.FUNC_ADD);\n                  gl.blendFuncSeparate(gl.ONE, gl.ONE, gl.ONE, gl.ONE);\n                } else {\n                  console.warn(\n                    'blendMode(LIGHTEST) does not work in your browser in WEBGL mode.'\n                  );\n                }\n                break;\n              default:\n                console.error(\n                  'Oops! Somehow RendererGL set curBlendMode to an unsupported mode.'\n                );\n\n                break;\n            }\n\n            this._cachedBlendMode = this.curBlendMode;\n          };\n          var _default = _main.default;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, '../core/main': 50, './p5.Texture': 106 }\n      ],\n      98: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          } /** ////////////////////////////////////////////////////////////////////////////////\n           * @module Lights, Camera\n           * @submodule Camera\n           * @requires core\n           */\n          // p5.Prototype Methods\n          ////////////////////////////////////////////////////////////////////////////////\n          /**\n           * Sets the camera position for a 3D sketch. Parameters for this function define\n           * the position for the camera, the center of the sketch (where the camera is\n           * pointing), and an up direction (the orientation of the camera).\n           *\n           * This function simulates the movements of the camera, allowing objects to be\n           * viewed from various angles. Remember, it does not move the objects themselves\n           * but the camera instead. For example when centerX value is positive, the camera\n           * is rotating to the right side of the sketch, so the object would seem like\n           * moving to the left.\n           *\n           * See this <a href = \"https://www.openprocessing.org/sketch/740258\">example</a> to view the position of your camera.\n           *\n           * When called with no arguments, this function creates a default camera\n           * equivalent to\n           * camera(0, 0, (height/2.0) / tan(PI*30.0 / 180.0), 0, 0, 0, 0, 1, 0);\n           * @method camera\n           * @constructor\n           * @for p5\n           * @param  {Number} [x]        camera position value on x axis\n           * @param  {Number} [y]        camera position value on y axis\n           * @param  {Number} [z]        camera position value on z axis\n           * @param  {Number} [centerX]  x coordinate representing center of the sketch\n           * @param  {Number} [centerY]  y coordinate representing center of the sketch\n           * @param  {Number} [centerZ]  z coordinate representing center of the sketch\n           * @param  {Number} [upX]      x component of direction 'up' from camera\n           * @param  {Number} [upY]      y component of direction 'up' from camera\n           * @param  {Number} [upZ]      z component of direction 'up' from camera\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           * function draw() {\n           *   background(204);\n           *   //move the camera away from the plane by a sin wave\n           *   camera(0, 0, 20 + sin(frameCount * 0.01) * 10, 0, 0, 0, 0, 1, 0);\n           *   plane(10, 10);\n           * }\n           * </code>\n           * </div>\n           *\n           * @example\n           * <div>\n           * <code>\n           * //move slider to see changes!\n           * //sliders control the first 6 parameters of camera()\n           * let sliderGroup = [];\n           * let X;\n           * let Y;\n           * let Z;\n           * let centerX;\n           * let centerY;\n           * let centerZ;\n           * let h = 20;\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   //create sliders\n           *   for (var i = 0; i < 6; i++) {\n           *     if (i === 2) {\n           *       sliderGroup[i] = createSlider(10, 400, 200);\n           *     } else {\n           *       sliderGroup[i] = createSlider(-400, 400, 0);\n           *     }\n           *     h = map(i, 0, 6, 5, 85);\n           *     sliderGroup[i].position(10, height + h);\n           *     sliderGroup[i].style('width', '80px');\n           *   }\n           * }\n           *\n           * function draw() {\n           *   background(60);\n           *   // assigning sliders' value to each parameters\n           *   X = sliderGroup[0].value();\n           *   Y = sliderGroup[1].value();\n           *   Z = sliderGroup[2].value();\n           *   centerX = sliderGroup[3].value();\n           *   centerY = sliderGroup[4].value();\n           *   centerZ = sliderGroup[5].value();\n           *   camera(X, Y, Z, centerX, centerY, centerZ, 0, 1, 0);\n           *   stroke(255);\n           *   fill(255, 102, 94);\n           *   box(85);\n           * }\n           * </code>\n           * </div>\n           * @alt\n           * White square repeatedly grows to fill canvas and then shrinks.\n           *\n           */ _main.default.prototype.camera = function() {\n            var _this$_renderer$_curC;\n            this._assert3d('camera');\n            for (\n              var _len = arguments.length, args = new Array(_len), _key = 0;\n              _key < _len;\n              _key++\n            ) {\n              args[_key] = arguments[_key];\n            }\n            _main.default._validateParameters('camera', args);\n            (_this$_renderer$_curC = this._renderer._curCamera).camera.apply(\n              _this$_renderer$_curC,\n              args\n            );\n            return this;\n          };\n\n          /**\n           * Sets a perspective projection for the camera in a 3D sketch. This projection\n           * represents depth through foreshortening: objects that are close to the camera\n           * appear their actual size while those that are further away from the camera\n           * appear smaller. The parameters to this function define the viewing frustum\n           * (the truncated pyramid within which objects are seen by the camera) through\n           * vertical field of view, aspect ratio (usually width/height), and near and far\n           * clipping planes.\n           *\n           * When called with no arguments, the defaults\n           * provided are equivalent to\n           * perspective(PI/3.0, width/height, eyeZ/10.0, eyeZ*10.0), where eyeZ\n           * is equal to ((height/2.0) / tan(PI*60.0/360.0));\n           * @method  perspective\n           * @for p5\n           * @param  {Number} [fovy]   camera frustum vertical field of view,\n           *                           from bottom to top of view, in <a href=\"#/p5/angleMode\">angleMode</a> units\n           * @param  {Number} [aspect] camera frustum aspect ratio\n           * @param  {Number} [near]   frustum near plane length\n           * @param  {Number} [far]    frustum far plane length\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * //drag the mouse to look around!\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   perspective(PI / 3.0, width / height, 0.1, 500);\n           * }\n           * function draw() {\n           *   background(200);\n           *   orbitControl();\n           *   normalMaterial();\n           *\n           *   rotateX(-0.3);\n           *   rotateY(-0.2);\n           *   translate(0, 0, -50);\n           *\n           *   push();\n           *   translate(-15, 0, sin(frameCount / 30) * 95);\n           *   box(30);\n           *   pop();\n           *   push();\n           *   translate(15, 0, sin(frameCount / 30 + PI) * 95);\n           *   box(30);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * two colored 3D boxes move back and forth, rotating as mouse is dragged.\n           *\n           */\n          _main.default.prototype.perspective = function() {\n            var _this$_renderer$_curC2;\n            this._assert3d('perspective');\n            for (\n              var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;\n              _key2 < _len2;\n              _key2++\n            ) {\n              args[_key2] = arguments[_key2];\n            }\n            _main.default._validateParameters('perspective', args);\n            (_this$_renderer$_curC2 = this._renderer._curCamera).perspective.apply(\n              _this$_renderer$_curC2,\n              args\n            );\n            return this;\n          };\n\n          /**\n           * Sets an orthographic projection for the camera in a 3D sketch and defines a\n           * box-shaped viewing frustum within which objects are seen. In this projection,\n           * all objects with the same dimension appear the same size, regardless of\n           * whether they are near or far from the camera. The parameters to this\n           * function specify the viewing frustum where left and right are the minimum and\n           * maximum x values, top and bottom are the minimum and maximum y values, and near\n           * and far are the minimum and maximum z values. If no parameters are given, the\n           * default is used: ortho(-width/2, width/2, -height/2, height/2).\n           * @method  ortho\n           * @for p5\n           * @param  {Number} [left]   camera frustum left plane\n           * @param  {Number} [right]  camera frustum right plane\n           * @param  {Number} [bottom] camera frustum bottom plane\n           * @param  {Number} [top]    camera frustum top plane\n           * @param  {Number} [near]   camera frustum near plane\n           * @param  {Number} [far]    camera frustum far plane\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * //drag the mouse to look around!\n           * //there's no vanishing point\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   ortho(-width / 2, width / 2, height / 2, -height / 2, 0, 500);\n           * }\n           * function draw() {\n           *   background(200);\n           *   orbitControl();\n           *   normalMaterial();\n           *\n           *   rotateX(0.2);\n           *   rotateY(-0.2);\n           *   push();\n           *   translate(-15, 0, sin(frameCount / 30) * 65);\n           *   box(30);\n           *   pop();\n           *   push();\n           *   translate(15, 0, sin(frameCount / 30 + PI) * 65);\n           *   box(30);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * two 3D boxes move back and forth along same plane, rotating as mouse is dragged.\n           *\n           */\n          _main.default.prototype.ortho = function() {\n            var _this$_renderer$_curC3;\n            this._assert3d('ortho');\n            for (\n              var _len3 = arguments.length, args = new Array(_len3), _key3 = 0;\n              _key3 < _len3;\n              _key3++\n            ) {\n              args[_key3] = arguments[_key3];\n            }\n            _main.default._validateParameters('ortho', args);\n            (_this$_renderer$_curC3 = this._renderer._curCamera).ortho.apply(\n              _this$_renderer$_curC3,\n              args\n            );\n            return this;\n          };\n\n          /**\n           * Sets a perspective matrix as defined by the parameters.\n           *\n           * A frustum is a geometric form: a pyramid with its top\n           * cut off. With the viewer's eye at the imaginary top of\n           * the pyramid, the six planes of the frustum act as clipping\n           * planes when rendering a 3D view. Thus, any form inside the\n           * clipping planes is visible; anything outside\n           * those planes is not visible.\n           *\n           * Setting the frustum changes the perspective of the scene being rendered.\n           * This can be achieved more simply in many cases by using\n           * <a href=\"https://p5js.org/reference/#/p5/perspective\">perspective()</a>.\n           *\n           * @method frustum\n           * @for p5\n           * @param  {Number} [left]   camera frustum left plane\n           * @param  {Number} [right]  camera frustum right plane\n           * @param  {Number} [bottom] camera frustum bottom plane\n           * @param  {Number} [top]    camera frustum top plane\n           * @param  {Number} [near]   camera frustum near plane\n           * @param  {Number} [far]    camera frustum far plane\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   setAttributes('antialias', true);\n           *   frustum(-0.1, 0.1, -0.1, 0.1, 0.1, 200);\n           * }\n           * function draw() {\n           *   background(200);\n           *   orbitControl();\n           *   strokeWeight(10);\n           *   stroke(0, 0, 255);\n           *   noFill();\n           *\n           *   rotateY(-0.2);\n           *   rotateX(-0.3);\n           *   push();\n           *   translate(-15, 0, sin(frameCount / 30) * 25);\n           *   box(30);\n           *   pop();\n           *   push();\n           *   translate(15, 0, sin(frameCount / 30 + PI) * 25);\n           *   box(30);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * two 3D boxes move back and forth along same plane, rotating as mouse is dragged.\n           *\n           */\n          _main.default.prototype.frustum = function() {\n            var _this$_renderer$_curC4;\n            this._assert3d('frustum');\n            for (\n              var _len4 = arguments.length, args = new Array(_len4), _key4 = 0;\n              _key4 < _len4;\n              _key4++\n            ) {\n              args[_key4] = arguments[_key4];\n            }\n            _main.default._validateParameters('frustum', args);\n            (_this$_renderer$_curC4 = this._renderer._curCamera).frustum.apply(\n              _this$_renderer$_curC4,\n              args\n            );\n            return this;\n          };\n\n          ////////////////////////////////////////////////////////////////////////////////\n          // p5.Camera\n          ////////////////////////////////////////////////////////////////////////////////\n\n          /**\n           * Creates a new <a href=\"#/p5.Camera\">p5.Camera</a> object and tells the\n           * renderer to use that camera.\n           * Returns the p5.Camera object.\n           * @method createCamera\n           * @return {p5.Camera} The newly created camera object.\n           * @for p5\n           */\n          _main.default.prototype.createCamera = function() {\n            this._assert3d('createCamera');\n            var _cam = new _main.default.Camera(this._renderer);\n\n            // compute default camera settings, then set a default camera\n            _cam._computeCameraDefaultSettings();\n            _cam._setDefaultCamera();\n\n            // set renderer current camera to the new camera\n            this._renderer._curCamera = _cam;\n\n            return _cam;\n          };\n\n          /**\n           * This class describes a camera for use in p5's\n           * <a href=\"https://github.com/processing/p5.js/wiki/Getting-started-with-WebGL-in-p5\">\n           * WebGL mode</a>. It contains camera position, orientation, and projection\n           * information necessary for rendering a 3D scene.\n           *\n           * New p5.Camera objects can be made through the\n           * <a href=\"#/p5/createCamera\">createCamera()</a> function and controlled through\n           * the methods described below. A camera created in this way will use a default\n           * position in the scene and a default perspective projection until these\n           * properties are changed through the various methods available. It is possible\n           * to create multiple cameras, in which case the current camera\n           * can be set through the <a href=\"#/p5/setCamera\">setCamera()</a> method.\n           *\n           *\n           * Note:\n           * The methods below operate in two coordinate systems: the 'world' coordinate\n           * system describe positions in terms of their relationship to the origin along\n           * the X, Y and Z axes whereas the camera's 'local' coordinate system\n           * describes positions from the camera's point of view: left-right, up-down,\n           * and forward-backward. The <a href=\"#/p5.Camera/move\">move()</a> method,\n           * for instance, moves the camera along its own axes, whereas the\n           * <a href=\"#/p5.Camera/setPosition\">setPosition()</a>\n           * method sets the camera's position in world-space.\n           *\n           *\n           * @class p5.Camera\n           * @param {rendererGL} rendererGL instance of WebGL renderer\n           * @example\n           * <div>\n           * <code>\n           * let cam;\n           * let delta = 0.01;\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   normalMaterial();\n           *   cam = createCamera();\n           *   // set initial pan angle\n           *   cam.pan(-0.8);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *\n           *   // pan camera according to angle 'delta'\n           *   cam.pan(delta);\n           *\n           *   // every 160 frames, switch direction\n           *   if (frameCount % 160 === 0) {\n           *     delta *= -1;\n           *   }\n           *\n           *   rotateX(frameCount * 0.01);\n           *   translate(-100, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * camera view pans left and right across a series of rotating 3D boxes.\n           *\n           */\n          _main.default.Camera = function(renderer) {\n            this._renderer = renderer;\n\n            this.cameraType = 'default';\n\n            this.cameraMatrix = new _main.default.Matrix();\n            this.projMatrix = new _main.default.Matrix();\n          };\n\n          ////////////////////////////////////////////////////////////////////////////////\n          // Camera Projection Methods\n          ////////////////////////////////////////////////////////////////////////////////\n\n          /**\n           * Sets a perspective projection for a p5.Camera object and sets parameters\n           * for that projection according to <a href=\"#/p5/perspective\">perspective()</a>\n           * syntax.\n           * @method perspective\n           * @for p5.Camera\n           */\n          _main.default.Camera.prototype.perspective = function(fovy, aspect, near, far) {\n            this.cameraType = arguments.length > 0 ? 'custom' : 'default';\n            if (typeof fovy === 'undefined') {\n              fovy = this.defaultCameraFOV;\n              // this avoids issue where setting angleMode(DEGREES) before calling\n              // perspective leads to a smaller than expected FOV (because\n              // _computeCameraDefaultSettings computes in radians)\n              this.cameraFOV = fovy;\n            } else {\n              this.cameraFOV = this._renderer._pInst._toRadians(fovy);\n            }\n            if (typeof aspect === 'undefined') {\n              aspect = this.defaultAspectRatio;\n            }\n            if (typeof near === 'undefined') {\n              near = this.defaultCameraNear;\n            }\n            if (typeof far === 'undefined') {\n              far = this.defaultCameraFar;\n            }\n\n            if (near <= 0.0001) {\n              near = 0.01;\n              console.log(\n                'Avoid perspective near plane values close to or below 0. ' +\n                  'Setting value to 0.01.'\n              );\n            }\n\n            if (far < near) {\n              console.log(\n                'Perspective far plane value is less than near plane value. ' +\n                  'Nothing will be shown.'\n              );\n            }\n\n            this.aspectRatio = aspect;\n            this.cameraNear = near;\n            this.cameraFar = far;\n\n            this.projMatrix = _main.default.Matrix.identity();\n\n            var f = 1.0 / Math.tan(this.cameraFOV / 2);\n            var nf = 1.0 / (this.cameraNear - this.cameraFar);\n\n            // prettier-ignore\n            this.projMatrix.set(f / aspect, 0, 0, 0,\n  0, -f, 0, 0,\n  0, 0, (far + near) * nf, -1,\n  0, 0, 2 * far * near * nf, 0);\n\n            if (this._isActive()) {\n              this._renderer.uPMatrix.set(\n                this.projMatrix.mat4[0],\n                this.projMatrix.mat4[1],\n                this.projMatrix.mat4[2],\n                this.projMatrix.mat4[3],\n                this.projMatrix.mat4[4],\n                this.projMatrix.mat4[5],\n                this.projMatrix.mat4[6],\n                this.projMatrix.mat4[7],\n                this.projMatrix.mat4[8],\n                this.projMatrix.mat4[9],\n                this.projMatrix.mat4[10],\n                this.projMatrix.mat4[11],\n                this.projMatrix.mat4[12],\n                this.projMatrix.mat4[13],\n                this.projMatrix.mat4[14],\n                this.projMatrix.mat4[15]\n              );\n            }\n          };\n\n          /**\n           * Sets an orthographic projection for a p5.Camera object and sets parameters\n           * for that projection according to <a href=\"#/p5/ortho\">ortho()</a> syntax.\n           * @method ortho\n           * @for p5.Camera\n           */\n          _main.default.Camera.prototype.ortho = function(\n            left,\n            right,\n            bottom,\n            top,\n            near,\n            far\n          ) {\n            if (left === undefined) left = -this._renderer.width / 2;\n            if (right === undefined) right = +this._renderer.width / 2;\n            if (bottom === undefined) bottom = -this._renderer.height / 2;\n            if (top === undefined) top = +this._renderer.height / 2;\n            if (near === undefined) near = 0;\n            if (far === undefined)\n              far = Math.max(this._renderer.width, this._renderer.height);\n\n            var w = right - left;\n            var h = top - bottom;\n            var d = far - near;\n\n            var x = +2.0 / w;\n            var y = +2.0 / h;\n            var z = -2.0 / d;\n\n            var tx = -(right + left) / w;\n            var ty = -(top + bottom) / h;\n            var tz = -(far + near) / d;\n\n            this.projMatrix = _main.default.Matrix.identity();\n\n            // prettier-ignore\n            this.projMatrix.set(x, 0, 0, 0,\n  0, -y, 0, 0,\n  0, 0, z, 0,\n  tx, ty, tz, 1);\n\n            if (this._isActive()) {\n              this._renderer.uPMatrix.set(\n                this.projMatrix.mat4[0],\n                this.projMatrix.mat4[1],\n                this.projMatrix.mat4[2],\n                this.projMatrix.mat4[3],\n                this.projMatrix.mat4[4],\n                this.projMatrix.mat4[5],\n                this.projMatrix.mat4[6],\n                this.projMatrix.mat4[7],\n                this.projMatrix.mat4[8],\n                this.projMatrix.mat4[9],\n                this.projMatrix.mat4[10],\n                this.projMatrix.mat4[11],\n                this.projMatrix.mat4[12],\n                this.projMatrix.mat4[13],\n                this.projMatrix.mat4[14],\n                this.projMatrix.mat4[15]\n              );\n            }\n\n            this.cameraType = 'custom';\n          };\n\n          /**\n           * @method frustum\n           * @for p5.Camera\n           */\n          _main.default.Camera.prototype.frustum = function(\n            left,\n            right,\n            bottom,\n            top,\n            near,\n            far\n          ) {\n            if (left === undefined) left = -this._renderer.width / 2;\n            if (right === undefined) right = +this._renderer.width / 2;\n            if (bottom === undefined) bottom = -this._renderer.height / 2;\n            if (top === undefined) top = +this._renderer.height / 2;\n            if (near === undefined) near = 0;\n            if (far === undefined)\n              far = Math.max(this._renderer.width, this._renderer.height);\n\n            var w = right - left;\n            var h = top - bottom;\n            var d = far - near;\n\n            var x = +(2.0 * near) / w;\n            var y = +(2.0 * near) / h;\n            var z = -(2.0 * far * near) / d;\n\n            var tx = (right + left) / w;\n            var ty = (top + bottom) / h;\n            var tz = -(far + near) / d;\n\n            this.projMatrix = _main.default.Matrix.identity();\n\n            // prettier-ignore\n            this.projMatrix.set(x, 0, 0, 0,\n  0, y, 0, 0,\n  tx, ty, tz, -1,\n  0, 0, z, 0);\n\n            if (this._isActive()) {\n              this._renderer.uPMatrix.set(\n                this.projMatrix.mat4[0],\n                this.projMatrix.mat4[1],\n                this.projMatrix.mat4[2],\n                this.projMatrix.mat4[3],\n                this.projMatrix.mat4[4],\n                this.projMatrix.mat4[5],\n                this.projMatrix.mat4[6],\n                this.projMatrix.mat4[7],\n                this.projMatrix.mat4[8],\n                this.projMatrix.mat4[9],\n                this.projMatrix.mat4[10],\n                this.projMatrix.mat4[11],\n                this.projMatrix.mat4[12],\n                this.projMatrix.mat4[13],\n                this.projMatrix.mat4[14],\n                this.projMatrix.mat4[15]\n              );\n            }\n\n            this.cameraType = 'custom';\n          };\n\n          ////////////////////////////////////////////////////////////////////////////////\n          // Camera Orientation Methods\n          ////////////////////////////////////////////////////////////////////////////////\n\n          /**\n           * Rotate camera view about arbitrary axis defined by x,y,z\n           * based on http://learnwebgl.brown37.net/07_cameras/camera_rotating_motion.html\n           * @method _rotateView\n           * @private\n           */\n          _main.default.Camera.prototype._rotateView = function(a, x, y, z) {\n            var centerX = this.centerX;\n            var centerY = this.centerY;\n            var centerZ = this.centerZ;\n\n            // move center by eye position such that rotation happens around eye position\n            centerX -= this.eyeX;\n            centerY -= this.eyeY;\n            centerZ -= this.eyeZ;\n\n            var rotation = _main.default.Matrix.identity(this._renderer._pInst);\n            rotation.rotate(this._renderer._pInst._toRadians(a), x, y, z);\n\n            // prettier-ignore\n            var rotatedCenter = [\n  centerX * rotation.mat4[0] + centerY * rotation.mat4[4] + centerZ * rotation.mat4[8],\n  centerX * rotation.mat4[1] + centerY * rotation.mat4[5] + centerZ * rotation.mat4[9],\n  centerX * rotation.mat4[2] + centerY * rotation.mat4[6] + centerZ * rotation.mat4[10]];\n\n            // add eye position back into center\n            rotatedCenter[0] += this.eyeX;\n            rotatedCenter[1] += this.eyeY;\n            rotatedCenter[2] += this.eyeZ;\n\n            this.camera(\n              this.eyeX,\n              this.eyeY,\n              this.eyeZ,\n              rotatedCenter[0],\n              rotatedCenter[1],\n              rotatedCenter[2],\n              this.upX,\n              this.upY,\n              this.upZ\n            );\n          };\n\n          /**\n           * Panning rotates the camera view to the left and right.\n           * @method pan\n           * @param {Number} angle amount to rotate camera in current\n           * <a href=\"#/p5/angleMode\">angleMode</a> units.\n           * Greater than 0 values rotate counterclockwise (to the left).\n           * @example\n           * <div>\n           * <code>\n           * let cam;\n           * let delta = 0.01;\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   normalMaterial();\n           *   cam = createCamera();\n           *   // set initial pan angle\n           *   cam.pan(-0.8);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *\n           *   // pan camera according to angle 'delta'\n           *   cam.pan(delta);\n           *\n           *   // every 160 frames, switch direction\n           *   if (frameCount % 160 === 0) {\n           *     delta *= -1;\n           *   }\n           *\n           *   rotateX(frameCount * 0.01);\n           *   translate(-100, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * camera view pans left and right across a series of rotating 3D boxes.\n           *\n           */\n          _main.default.Camera.prototype.pan = function(amount) {\n            var local = this._getLocalAxes();\n            this._rotateView(amount, local.y[0], local.y[1], local.y[2]);\n          };\n\n          /**\n           * Tilting rotates the camera view up and down.\n           * @method tilt\n           * @param {Number} angle amount to rotate camera in current\n           * <a href=\"#/p5/angleMode\">angleMode</a> units.\n           * Greater than 0 values rotate counterclockwise (to the left).\n           * @example\n           * <div>\n           * <code>\n           * let cam;\n           * let delta = 0.01;\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   normalMaterial();\n           *   cam = createCamera();\n           *   // set initial tilt\n           *   cam.tilt(-0.8);\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *\n           *   // pan camera according to angle 'delta'\n           *   cam.tilt(delta);\n           *\n           *   // every 160 frames, switch direction\n           *   if (frameCount % 160 === 0) {\n           *     delta *= -1;\n           *   }\n           *\n           *   rotateY(frameCount * 0.01);\n           *   translate(0, -100, 0);\n           *   box(20);\n           *   translate(0, 35, 0);\n           *   box(20);\n           *   translate(0, 35, 0);\n           *   box(20);\n           *   translate(0, 35, 0);\n           *   box(20);\n           *   translate(0, 35, 0);\n           *   box(20);\n           *   translate(0, 35, 0);\n           *   box(20);\n           *   translate(0, 35, 0);\n           *   box(20);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * camera view tilts up and down across a series of rotating 3D boxes.\n           */\n          _main.default.Camera.prototype.tilt = function(amount) {\n            var local = this._getLocalAxes();\n            this._rotateView(amount, local.x[0], local.x[1], local.x[2]);\n          };\n\n          /**\n           * Reorients the camera to look at a position in world space.\n           * @method lookAt\n           * @for p5.Camera\n           * @param {Number} x x position of a point in world space\n           * @param {Number} y y position of a point in world space\n           * @param {Number} z z position of a point in world space\n           * @example\n           * <div>\n           * <code>\n           * let cam;\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   normalMaterial();\n           *   cam = createCamera();\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *\n           *   // look at a new random point every 60 frames\n           *   if (frameCount % 60 === 0) {\n           *     cam.lookAt(random(-100, 100), random(-50, 50), 0);\n           *   }\n           *\n           *   rotateX(frameCount * 0.01);\n           *   translate(-100, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * camera view of rotating 3D cubes changes to look at a new random\n           * point every second .\n           */\n          _main.default.Camera.prototype.lookAt = function(x, y, z) {\n            this.camera(\n              this.eyeX,\n              this.eyeY,\n              this.eyeZ,\n              x,\n              y,\n              z,\n              this.upX,\n              this.upY,\n              this.upZ\n            );\n          };\n\n          ////////////////////////////////////////////////////////////////////////////////\n          // Camera Position Methods\n          ////////////////////////////////////////////////////////////////////////////////\n\n          /**\n           * Sets a camera's position and orientation.  This is equivalent to calling\n           * <a href=\"#/p5/camera\">camera()</a> on a p5.Camera object.\n           * @method camera\n           * @for p5.Camera\n           */\n          _main.default.Camera.prototype.camera = function(\n            eyeX,\n            eyeY,\n            eyeZ,\n            centerX,\n            centerY,\n            centerZ,\n            upX,\n            upY,\n            upZ\n          ) {\n            if (typeof eyeX === 'undefined') {\n              eyeX = this.defaultEyeX;\n              eyeY = this.defaultEyeY;\n              eyeZ = this.defaultEyeZ;\n              centerX = eyeX;\n              centerY = eyeY;\n              centerZ = 0;\n              upX = 0;\n              upY = 1;\n              upZ = 0;\n            }\n\n            this.eyeX = eyeX;\n            this.eyeY = eyeY;\n            this.eyeZ = eyeZ;\n\n            this.centerX = centerX;\n            this.centerY = centerY;\n            this.centerZ = centerZ;\n\n            this.upX = upX;\n            this.upY = upY;\n            this.upZ = upZ;\n\n            var local = this._getLocalAxes();\n\n            // the camera affects the model view matrix, insofar as it\n            // inverse translates the world to the eye position of the camera\n            // and rotates it.\n            // prettier-ignore\n            this.cameraMatrix.set(local.x[0], local.y[0], local.z[0], 0,\n  local.x[1], local.y[1], local.z[1], 0,\n  local.x[2], local.y[2], local.z[2], 0,\n  0, 0, 0, 1);\n\n            var tx = -eyeX;\n            var ty = -eyeY;\n            var tz = -eyeZ;\n\n            this.cameraMatrix.translate([tx, ty, tz]);\n\n            if (this._isActive()) {\n              this._renderer.uMVMatrix.set(\n                this.cameraMatrix.mat4[0],\n                this.cameraMatrix.mat4[1],\n                this.cameraMatrix.mat4[2],\n                this.cameraMatrix.mat4[3],\n                this.cameraMatrix.mat4[4],\n                this.cameraMatrix.mat4[5],\n                this.cameraMatrix.mat4[6],\n                this.cameraMatrix.mat4[7],\n                this.cameraMatrix.mat4[8],\n                this.cameraMatrix.mat4[9],\n                this.cameraMatrix.mat4[10],\n                this.cameraMatrix.mat4[11],\n                this.cameraMatrix.mat4[12],\n                this.cameraMatrix.mat4[13],\n                this.cameraMatrix.mat4[14],\n                this.cameraMatrix.mat4[15]\n              );\n            }\n            return this;\n          };\n\n          /**\n           * Move camera along its local axes while maintaining current camera orientation.\n           * @method move\n           * @param {Number} x amount to move along camera's left-right axis\n           * @param {Number} y amount to move along camera's up-down axis\n           * @param {Number} z amount to move along camera's forward-backward axis\n           * @example\n           * <div>\n           * <code>\n           * // see the camera move along its own axes while maintaining its orientation\n           * let cam;\n           * let delta = 0.5;\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   normalMaterial();\n           *   cam = createCamera();\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *\n           *   // move the camera along its local axes\n           *   cam.move(delta, delta, 0);\n           *\n           *   // every 100 frames, switch direction\n           *   if (frameCount % 150 === 0) {\n           *     delta *= -1;\n           *   }\n           *\n           *   translate(-10, -10, 0);\n           *   box(50, 8, 50);\n           *   translate(15, 15, 0);\n           *   box(50, 8, 50);\n           *   translate(15, 15, 0);\n           *   box(50, 8, 50);\n           *   translate(15, 15, 0);\n           *   box(50, 8, 50);\n           *   translate(15, 15, 0);\n           *   box(50, 8, 50);\n           *   translate(15, 15, 0);\n           *   box(50, 8, 50);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * camera view moves along a series of 3D boxes, maintaining the same\n           * orientation throughout the move\n           */\n          _main.default.Camera.prototype.move = function(x, y, z) {\n            var local = this._getLocalAxes();\n\n            // scale local axes by movement amounts\n            // based on http://learnwebgl.brown37.net/07_cameras/camera_linear_motion.html\n            var dx = [local.x[0] * x, local.x[1] * x, local.x[2] * x];\n            var dy = [local.y[0] * y, local.y[1] * y, local.y[2] * y];\n            var dz = [local.z[0] * z, local.z[1] * z, local.z[2] * z];\n\n            this.camera(\n              this.eyeX + dx[0] + dy[0] + dz[0],\n              this.eyeY + dx[1] + dy[1] + dz[1],\n              this.eyeZ + dx[2] + dy[2] + dz[2],\n              this.centerX + dx[0] + dy[0] + dz[0],\n              this.centerY + dx[1] + dy[1] + dz[1],\n              this.centerZ + dx[2] + dy[2] + dz[2],\n              0,\n              1,\n              0\n            );\n          };\n\n          /**\n           * Set camera position in world-space while maintaining current camera\n           * orientation.\n           * @method setPosition\n           * @param {Number} x x position of a point in world space\n           * @param {Number} y y position of a point in world space\n           * @param {Number} z z position of a point in world space\n           * @example\n           * <div>\n           * <code>\n           * // press '1' '2' or '3' keys to set camera position\n           *\n           * let cam;\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   normalMaterial();\n           *   cam = createCamera();\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *\n           *   // '1' key\n           *   if (keyIsDown(49)) {\n           *     cam.setPosition(30, 0, 80);\n           *   }\n           *   // '2' key\n           *   if (keyIsDown(50)) {\n           *     cam.setPosition(0, 0, 80);\n           *   }\n           *   // '3' key\n           *   if (keyIsDown(51)) {\n           *     cam.setPosition(-30, 0, 80);\n           *   }\n           *\n           *   box(20);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * camera position changes as the user presses keys, altering view of a 3D box\n           */\n          _main.default.Camera.prototype.setPosition = function(x, y, z) {\n            var diffX = x - this.eyeX;\n            var diffY = y - this.eyeY;\n            var diffZ = z - this.eyeZ;\n\n            this.camera(\n              x,\n              y,\n              z,\n              this.centerX + diffX,\n              this.centerY + diffY,\n              this.centerZ + diffZ,\n              0,\n              1,\n              0\n            );\n          };\n\n          ////////////////////////////////////////////////////////////////////////////////\n          // Camera Helper Methods\n          ////////////////////////////////////////////////////////////////////////////////\n\n          // @TODO: combine this function with _setDefaultCamera to compute these values\n          // as-needed\n          _main.default.Camera.prototype._computeCameraDefaultSettings = function() {\n            this.defaultCameraFOV = 60 / 180 * Math.PI;\n            this.defaultAspectRatio = this._renderer.width / this._renderer.height;\n            this.defaultEyeX = 0;\n            this.defaultEyeY = 0;\n            this.defaultEyeZ =\n              this._renderer.height / 2.0 / Math.tan(this.defaultCameraFOV / 2.0);\n            this.defaultCenterX = 0;\n            this.defaultCenterY = 0;\n            this.defaultCenterZ = 0;\n            this.defaultCameraNear = this.defaultEyeZ * 0.1;\n            this.defaultCameraFar = this.defaultEyeZ * 10;\n          };\n\n          //detect if user didn't set the camera\n          //then call this function below\n          _main.default.Camera.prototype._setDefaultCamera = function() {\n            this.cameraFOV = this.defaultCameraFOV;\n            this.aspectRatio = this.defaultAspectRatio;\n            this.eyeX = this.defaultEyeX;\n            this.eyeY = this.defaultEyeY;\n            this.eyeZ = this.defaultEyeZ;\n            this.centerX = this.defaultCenterX;\n            this.centerY = this.defaultCenterY;\n            this.centerZ = this.defaultCenterZ;\n            this.upX = 0;\n            this.upY = 1;\n            this.upZ = 0;\n            this.cameraNear = this.defaultCameraNear;\n            this.cameraFar = this.defaultCameraFar;\n\n            this.perspective();\n            this.camera();\n\n            this.cameraType = 'default';\n          };\n\n          _main.default.Camera.prototype._resize = function() {\n            // If we're using the default camera, update the aspect ratio\n            if (this.cameraType === 'default') {\n              this._computeCameraDefaultSettings();\n              this._setDefaultCamera();\n            } else {\n              this.perspective(\n                this.cameraFOV,\n                this._renderer.width / this._renderer.height\n              );\n            }\n          };\n\n          /**\n           * Returns a copy of a camera.\n           * @method copy\n           * @private\n           */\n          _main.default.Camera.prototype.copy = function() {\n            var _cam = new _main.default.Camera(this._renderer);\n            _cam.cameraFOV = this.cameraFOV;\n            _cam.aspectRatio = this.aspectRatio;\n            _cam.eyeX = this.eyeX;\n            _cam.eyeY = this.eyeY;\n            _cam.eyeZ = this.eyeZ;\n            _cam.centerX = this.centerX;\n            _cam.centerY = this.centerY;\n            _cam.centerZ = this.centerZ;\n            _cam.cameraNear = this.cameraNear;\n            _cam.cameraFar = this.cameraFar;\n\n            _cam.cameraType = this.cameraType;\n\n            _cam.cameraMatrix = this.cameraMatrix.copy();\n            _cam.projMatrix = this.projMatrix.copy();\n\n            return _cam;\n          };\n\n          /**\n           * Returns a camera's local axes: left-right, up-down, and forward-backward,\n           * as defined by vectors in world-space.\n           * @method _getLocalAxes\n           * @private\n           */\n          _main.default.Camera.prototype._getLocalAxes = function() {\n            // calculate camera local Z vector\n            var z0 = this.eyeX - this.centerX;\n            var z1 = this.eyeY - this.centerY;\n            var z2 = this.eyeZ - this.centerZ;\n\n            // normalize camera local Z vector\n            var eyeDist = Math.sqrt(z0 * z0 + z1 * z1 + z2 * z2);\n            if (eyeDist !== 0) {\n              z0 /= eyeDist;\n              z1 /= eyeDist;\n              z2 /= eyeDist;\n            }\n\n            // calculate camera Y vector\n            var y0 = this.upX;\n            var y1 = this.upY;\n            var y2 = this.upZ;\n\n            // compute camera local X vector as up vector (local Y) cross local Z\n            var x0 = y1 * z2 - y2 * z1;\n            var x1 = -y0 * z2 + y2 * z0;\n            var x2 = y0 * z1 - y1 * z0;\n\n            // recompute y = z cross x\n            y0 = z1 * x2 - z2 * x1;\n            y1 = -z0 * x2 + z2 * x0;\n            y2 = z0 * x1 - z1 * x0;\n\n            // cross product gives area of parallelogram, which is < 1.0 for\n            // non-perpendicular unit-length vectors; so normalize x, y here:\n            var xmag = Math.sqrt(x0 * x0 + x1 * x1 + x2 * x2);\n            if (xmag !== 0) {\n              x0 /= xmag;\n              x1 /= xmag;\n              x2 /= xmag;\n            }\n\n            var ymag = Math.sqrt(y0 * y0 + y1 * y1 + y2 * y2);\n            if (ymag !== 0) {\n              y0 /= ymag;\n              y1 /= ymag;\n              y2 /= ymag;\n            }\n\n            return {\n              x: [x0, x1, x2],\n              y: [y0, y1, y2],\n              z: [z0, z1, z2]\n            };\n          };\n\n          /**\n           * Orbits the camera about center point. For use with orbitControl().\n           * @method _orbit\n           * @private\n           * @param {Number} dTheta change in spherical coordinate theta\n           * @param {Number} dPhi change in spherical coordinate phi\n           * @param {Number} dRadius change in radius\n           */\n          _main.default.Camera.prototype._orbit = function(dTheta, dPhi, dRadius) {\n            var diffX = this.eyeX - this.centerX;\n            var diffY = this.eyeY - this.centerY;\n            var diffZ = this.eyeZ - this.centerZ;\n\n            // get spherical coorinates for current camera position about origin\n            var camRadius = Math.sqrt(diffX * diffX + diffY * diffY + diffZ * diffZ);\n            // from https://github.com/mrdoob/three.js/blob/dev/src/math/Spherical.js#L72-L73\n            var camTheta = Math.atan2(diffX, diffZ); // equatorial angle\n            var camPhi = Math.acos(Math.max(-1, Math.min(1, diffY / camRadius))); // polar angle\n\n            // add change\n            camTheta += dTheta;\n            camPhi += dPhi;\n            camRadius += dRadius;\n\n            // prevent zooming through the center:\n            if (camRadius < 0) {\n              camRadius = 0.1;\n            }\n\n            // prevent rotation over the zenith / under bottom\n            if (camPhi > Math.PI) {\n              camPhi = Math.PI;\n            } else if (camPhi <= 0) {\n              camPhi = 0.001;\n            }\n\n            // from https://github.com/mrdoob/three.js/blob/dev/src/math/Vector3.js#L628-L632\n            var _x = Math.sin(camPhi) * camRadius * Math.sin(camTheta);\n            var _y = Math.cos(camPhi) * camRadius;\n            var _z = Math.sin(camPhi) * camRadius * Math.cos(camTheta);\n\n            this.camera(\n              _x + this.centerX,\n              _y + this.centerY,\n              _z + this.centerZ,\n              this.centerX,\n              this.centerY,\n              this.centerZ,\n              0,\n              1,\n              0\n            );\n          };\n\n          /**\n           * Returns true if camera is currently attached to renderer.\n           * @method _isActive\n           * @private\n           */\n          _main.default.Camera.prototype._isActive = function() {\n            return this === this._renderer._curCamera;\n          };\n\n          /**\n           * Sets rendererGL's current camera to a p5.Camera object.  Allows switching\n           * between multiple cameras.\n           * @method setCamera\n           * @param  {p5.Camera} cam  p5.Camera object\n           * @for p5\n           * @example\n           * <div>\n           * <code>\n           * let cam1, cam2;\n           * let currentCamera;\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   normalMaterial();\n           *\n           *   cam1 = createCamera();\n           *   cam2 = createCamera();\n           *   cam2.setPosition(30, 0, 50);\n           *   cam2.lookAt(0, 0, 0);\n           *   cam2.ortho();\n           *\n           *   // set variable for previously active camera:\n           *   currentCamera = 1;\n           * }\n           *\n           * function draw() {\n           *   background(200);\n           *\n           *   // camera 1:\n           *   cam1.lookAt(0, 0, 0);\n           *   cam1.setPosition(sin(frameCount / 60) * 200, 0, 100);\n           *\n           *   // every 100 frames, switch between the two cameras\n           *   if (frameCount % 100 === 0) {\n           *     if (currentCamera === 1) {\n           *       setCamera(cam1);\n           *       currentCamera = 0;\n           *     } else {\n           *       setCamera(cam2);\n           *       currentCamera = 1;\n           *     }\n           *   }\n           *\n           *   drawBoxes();\n           * }\n           *\n           * function drawBoxes() {\n           *   rotateX(frameCount * 0.01);\n           *   translate(-100, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           *   translate(35, 0, 0);\n           *   box(20);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * Canvas switches between two camera views, each showing a series of spinning\n           * 3D boxes.\n           */\n          _main.default.prototype.setCamera = function(cam) {\n            this._renderer._curCamera = cam;\n\n            // set the projection matrix (which is not normally updated each frame)\n            this._renderer.uPMatrix.set(\n              cam.projMatrix.mat4[0],\n              cam.projMatrix.mat4[1],\n              cam.projMatrix.mat4[2],\n              cam.projMatrix.mat4[3],\n              cam.projMatrix.mat4[4],\n              cam.projMatrix.mat4[5],\n              cam.projMatrix.mat4[6],\n              cam.projMatrix.mat4[7],\n              cam.projMatrix.mat4[8],\n              cam.projMatrix.mat4[9],\n              cam.projMatrix.mat4[10],\n              cam.projMatrix.mat4[11],\n              cam.projMatrix.mat4[12],\n              cam.projMatrix.mat4[13],\n              cam.projMatrix.mat4[14],\n              cam.projMatrix.mat4[15]\n            );\n          };\n          var _default = _main.default.Camera;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      99: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          } /** //some of the functions are adjusted from Three.js(http://threejs.org)\n           * @module Lights, Camera\n           * @submodule Material\n           * @for p5\n           * @requires core\n           * @requires p5.Geometry\n           */\n          /**\n           * p5 Geometry class\n           * @class p5.Geometry\n           * @constructor\n           * @param  {Integer} [detailX] number of vertices on horizontal surface\n           * @param  {Integer} [detailY] number of vertices on horizontal surface\n           * @param {function} [callback] function to call upon object instantiation.\n           *\n           */ _main.default.Geometry = function(detailX, detailY, callback) {\n            //an array containing every vertex\n            //@type [p5.Vector]\n            this.vertices = []; //an array containing every vertex for stroke drawing\n            this.lineVertices = []; //an array 1 normal per lineVertex with\n            //final position representing which direction to\n            //displace for strokeWeight\n            //[[0,0,-1,1], [0,1,0,-1] ...];\n            this.lineNormals = [];\n\n            //an array containing 1 normal per vertex\n            //@type [p5.Vector]\n            //[p5.Vector, p5.Vector, p5.Vector,p5.Vector, p5.Vector, p5.Vector,...]\n            this.vertexNormals = [];\n            //an array containing each three vertex indices that form a face\n            //[[0, 1, 2], [2, 1, 3], ...]\n            this.faces = [];\n            //a 2D array containing uvs for every vertex\n            //[[0.0,0.0],[1.0,0.0], ...]\n            this.uvs = [];\n            // a 2D array containing edge connectivity pattern for create line vertices\n            //based on faces for most objects;\n            this.edges = [];\n            this.vertexColors = [];\n            this.detailX = detailX !== undefined ? detailX : 1;\n            this.detailY = detailY !== undefined ? detailY : 1;\n            this.dirtyFlags = {};\n\n            if (callback instanceof Function) {\n              callback.call(this);\n            }\n            return this; // TODO: is this a constructor?\n          };\n\n          _main.default.Geometry.prototype.reset = function() {\n            this.lineVertices.length = 0;\n            this.lineNormals.length = 0;\n\n            this.vertices.length = 0;\n            this.edges.length = 0;\n            this.vertexColors.length = 0;\n            this.vertexNormals.length = 0;\n            this.uvs.length = 0;\n\n            this.dirtyFlags = {};\n          };\n\n          /**\n           * @method computeFaces\n           * @chainable\n           */\n          _main.default.Geometry.prototype.computeFaces = function() {\n            this.faces.length = 0;\n            var sliceCount = this.detailX + 1;\n            var a, b, c, d;\n            for (var i = 0; i < this.detailY; i++) {\n              for (var j = 0; j < this.detailX; j++) {\n                a = i * sliceCount + j; // + offset;\n                b = i * sliceCount + j + 1; // + offset;\n                c = (i + 1) * sliceCount + j + 1; // + offset;\n                d = (i + 1) * sliceCount + j; // + offset;\n                this.faces.push([a, b, d]);\n                this.faces.push([d, b, c]);\n              }\n            }\n            return this;\n          };\n\n          _main.default.Geometry.prototype._getFaceNormal = function(faceId) {\n            //This assumes that vA->vB->vC is a counter-clockwise ordering\n            var face = this.faces[faceId];\n            var vA = this.vertices[face[0]];\n            var vB = this.vertices[face[1]];\n            var vC = this.vertices[face[2]];\n            var ab = _main.default.Vector.sub(vB, vA);\n            var ac = _main.default.Vector.sub(vC, vA);\n            var n = _main.default.Vector.cross(ab, ac);\n            var ln = _main.default.Vector.mag(n);\n            var sinAlpha =\n              ln / (_main.default.Vector.mag(ab) * _main.default.Vector.mag(ac));\n            if (sinAlpha === 0 || isNaN(sinAlpha)) {\n              console.warn(\n                'p5.Geometry.prototype._getFaceNormal:',\n                'face has colinear sides or a repeated vertex'\n              );\n\n              return n;\n            }\n            if (sinAlpha > 1) sinAlpha = 1; // handle float rounding error\n            return n.mult(Math.asin(sinAlpha) / ln);\n          };\n          /**\n           * computes smooth normals per vertex as an average of each\n           * face.\n           * @method computeNormals\n           * @chainable\n           */\n          _main.default.Geometry.prototype.computeNormals = function() {\n            var vertexNormals = this.vertexNormals;\n            var vertices = this.vertices;\n            var faces = this.faces;\n            var iv;\n\n            // initialize the vertexNormals array with empty vectors\n            vertexNormals.length = 0;\n            for (iv = 0; iv < vertices.length; ++iv) {\n              vertexNormals.push(new _main.default.Vector());\n            }\n\n            // loop through all the faces adding its normal to the normal\n            // of each of its vertices\n            for (var f = 0; f < faces.length; ++f) {\n              var face = faces[f];\n              var faceNormal = this._getFaceNormal(f);\n\n              // all three vertices get the normal added\n              for (var fv = 0; fv < 3; ++fv) {\n                var vertexIndex = face[fv];\n                vertexNormals[vertexIndex].add(faceNormal);\n              }\n            }\n\n            // normalize the normals\n            for (iv = 0; iv < vertices.length; ++iv) {\n              vertexNormals[iv].normalize();\n            }\n\n            return this;\n          };\n\n          /**\n           * Averages the vertex normals. Used in curved\n           * surfaces\n           * @method averageNormals\n           * @chainable\n           */\n          _main.default.Geometry.prototype.averageNormals = function() {\n            for (var i = 0; i <= this.detailY; i++) {\n              var offset = this.detailX + 1;\n              var temp = _main.default.Vector.add(\n                this.vertexNormals[i * offset],\n                this.vertexNormals[i * offset + this.detailX]\n              );\n\n              temp = _main.default.Vector.div(temp, 2);\n              this.vertexNormals[i * offset] = temp;\n              this.vertexNormals[i * offset + this.detailX] = temp;\n            }\n            return this;\n          };\n\n          /**\n           * Averages pole normals.  Used in spherical primitives\n           * @method averagePoleNormals\n           * @chainable\n           */\n          _main.default.Geometry.prototype.averagePoleNormals = function() {\n            //average the north pole\n            var sum = new _main.default.Vector(0, 0, 0);\n            for (var i = 0; i < this.detailX; i++) {\n              sum.add(this.vertexNormals[i]);\n            }\n            sum = _main.default.Vector.div(sum, this.detailX);\n\n            for (var _i = 0; _i < this.detailX; _i++) {\n              this.vertexNormals[_i] = sum;\n            }\n\n            //average the south pole\n            sum = new _main.default.Vector(0, 0, 0);\n            for (\n              var _i2 = this.vertices.length - 1;\n              _i2 > this.vertices.length - 1 - this.detailX;\n              _i2--\n            ) {\n              sum.add(this.vertexNormals[_i2]);\n            }\n            sum = _main.default.Vector.div(sum, this.detailX);\n\n            for (\n              var _i3 = this.vertices.length - 1;\n              _i3 > this.vertices.length - 1 - this.detailX;\n              _i3--\n            ) {\n              this.vertexNormals[_i3] = sum;\n            }\n            return this;\n          };\n\n          /**\n           * Create a 2D array for establishing stroke connections\n           * @private\n           * @chainable\n           */\n          _main.default.Geometry.prototype._makeTriangleEdges = function() {\n            this.edges.length = 0;\n            if (Array.isArray(this.strokeIndices)) {\n              for (var i = 0, max = this.strokeIndices.length; i < max; i++) {\n                this.edges.push(this.strokeIndices[i]);\n              }\n            } else {\n              for (var j = 0; j < this.faces.length; j++) {\n                this.edges.push([this.faces[j][0], this.faces[j][1]]);\n                this.edges.push([this.faces[j][1], this.faces[j][2]]);\n                this.edges.push([this.faces[j][2], this.faces[j][0]]);\n              }\n            }\n            return this;\n          };\n\n          /**\n           * Create 4 vertices for each stroke line, two at the beginning position\n           * and two at the end position. These vertices are displaced relative to\n           * that line's normal on the GPU\n           * @private\n           * @chainable\n           */\n          _main.default.Geometry.prototype._edgesToVertices = function() {\n            this.lineVertices.length = 0;\n            this.lineNormals.length = 0;\n\n            for (var i = 0; i < this.edges.length; i++) {\n              var begin = this.vertices[this.edges[i][0]];\n              var end = this.vertices[this.edges[i][1]];\n              var dir = end\n                .copy()\n                .sub(begin)\n                .normalize();\n              var a = begin.array();\n              var b = begin.array();\n              var c = end.array();\n              var d = end.array();\n              var dirAdd = dir.array();\n              var dirSub = dir.array();\n              // below is used to displace the pair of vertices at beginning and end\n              // in opposite directions\n              dirAdd.push(1);\n              dirSub.push(-1);\n              this.lineNormals.push(dirAdd, dirSub, dirAdd, dirAdd, dirSub, dirSub);\n              this.lineVertices.push(a, b, c, c, b, d);\n            }\n            return this;\n          };\n\n          /**\n           * Modifies all vertices to be centered within the range -100 to 100.\n           * @method normalize\n           * @chainable\n           */\n          _main.default.Geometry.prototype.normalize = function() {\n            if (this.vertices.length > 0) {\n              // Find the corners of our bounding box\n              var maxPosition = this.vertices[0].copy();\n              var minPosition = this.vertices[0].copy();\n\n              for (var i = 0; i < this.vertices.length; i++) {\n                maxPosition.x = Math.max(maxPosition.x, this.vertices[i].x);\n                minPosition.x = Math.min(minPosition.x, this.vertices[i].x);\n                maxPosition.y = Math.max(maxPosition.y, this.vertices[i].y);\n                minPosition.y = Math.min(minPosition.y, this.vertices[i].y);\n                maxPosition.z = Math.max(maxPosition.z, this.vertices[i].z);\n                minPosition.z = Math.min(minPosition.z, this.vertices[i].z);\n              }\n\n              var center = _main.default.Vector.lerp(maxPosition, minPosition, 0.5);\n              var dist = _main.default.Vector.sub(maxPosition, minPosition);\n              var longestDist = Math.max(Math.max(dist.x, dist.y), dist.z);\n              var scale = 200 / longestDist;\n\n              for (var _i4 = 0; _i4 < this.vertices.length; _i4++) {\n                this.vertices[_i4].sub(center);\n                this.vertices[_i4].mult(scale);\n              }\n            }\n            return this;\n          };\n          var _default = _main.default.Geometry;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      100: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * @requires constants\n           * @todo see methods below needing further implementation.\n           * future consideration: implement SIMD optimizations\n           * when browser compatibility becomes available\n           * https://developer.mozilla.org/en-US/docs/Web/JavaScript/\n           *   Reference/Global_Objects/SIMD\n           */ var GLMAT_ARRAY_TYPE = Array;\n          var isMatrixArray = function isMatrixArray(x) {\n            return x instanceof Array;\n          };\n          if (typeof Float32Array !== 'undefined') {\n            GLMAT_ARRAY_TYPE = Float32Array;\n            isMatrixArray = function isMatrixArray(x) {\n              return x instanceof Array || x instanceof Float32Array;\n            };\n          }\n\n          /**\n           * A class to describe a 4x4 matrix\n           * for model and view matrix manipulation in the p5js webgl renderer.\n           * @class p5.Matrix\n           * @private\n           * @constructor\n           * @param {Array} [mat4] array literal of our 4x4 matrix\n           */\n          _main.default.Matrix = function() {\n            var args = new Array(arguments.length);\n            for (var i = 0; i < args.length; ++i) {\n              args[i] = arguments[i];\n            }\n\n            // This is default behavior when object\n            // instantiated using createMatrix()\n            // @todo implement createMatrix() in core/math.js\n            if (args.length && args[args.length - 1] instanceof _main.default) {\n              this.p5 = args[args.length - 1];\n            }\n\n            if (args[0] === 'mat3') {\n              this.mat3 = Array.isArray(args[1])\n                ? args[1]\n                : new GLMAT_ARRAY_TYPE([1, 0, 0, 0, 1, 0, 0, 0, 1]);\n            } else {\n              this.mat4 = Array.isArray(args[0])\n                ? args[0]\n                : new GLMAT_ARRAY_TYPE([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);\n            }\n            return this;\n          };\n\n          /**\n           * Sets the x, y, and z component of the vector using two or three separate\n           * variables, the data from a p5.Matrix, or the values from a float array.\n           *\n           * @method set\n           * @param {p5.Matrix|Float32Array|Number[]} [inMatrix] the input p5.Matrix or\n           *                                     an Array of length 16\n           * @chainable\n           */\n          /**\n           * @method set\n           * @param {Number[]} elements 16 numbers passed by value to avoid\n           *                                     array copying.\n           * @chainable\n           */\n          _main.default.Matrix.prototype.set = function(inMatrix) {\n            if (inMatrix instanceof _main.default.Matrix) {\n              this.mat4 = inMatrix.mat4;\n              return this;\n            } else if (isMatrixArray(inMatrix)) {\n              this.mat4 = inMatrix;\n              return this;\n            } else if (arguments.length === 16) {\n              this.mat4[0] = arguments[0];\n              this.mat4[1] = arguments[1];\n              this.mat4[2] = arguments[2];\n              this.mat4[3] = arguments[3];\n              this.mat4[4] = arguments[4];\n              this.mat4[5] = arguments[5];\n              this.mat4[6] = arguments[6];\n              this.mat4[7] = arguments[7];\n              this.mat4[8] = arguments[8];\n              this.mat4[9] = arguments[9];\n              this.mat4[10] = arguments[10];\n              this.mat4[11] = arguments[11];\n              this.mat4[12] = arguments[12];\n              this.mat4[13] = arguments[13];\n              this.mat4[14] = arguments[14];\n              this.mat4[15] = arguments[15];\n            }\n            return this;\n          };\n\n          /**\n           * Gets a copy of the vector, returns a p5.Matrix object.\n           *\n           * @method get\n           * @return {p5.Matrix} the copy of the p5.Matrix object\n           */\n          _main.default.Matrix.prototype.get = function() {\n            return new _main.default.Matrix(this.mat4, this.p5);\n          };\n\n          /**\n           * return a copy of a matrix\n           * @method copy\n           * @return {p5.Matrix}   the result matrix\n           */\n          _main.default.Matrix.prototype.copy = function() {\n            var copied = new _main.default.Matrix(this.p5);\n            copied.mat4[0] = this.mat4[0];\n            copied.mat4[1] = this.mat4[1];\n            copied.mat4[2] = this.mat4[2];\n            copied.mat4[3] = this.mat4[3];\n            copied.mat4[4] = this.mat4[4];\n            copied.mat4[5] = this.mat4[5];\n            copied.mat4[6] = this.mat4[6];\n            copied.mat4[7] = this.mat4[7];\n            copied.mat4[8] = this.mat4[8];\n            copied.mat4[9] = this.mat4[9];\n            copied.mat4[10] = this.mat4[10];\n            copied.mat4[11] = this.mat4[11];\n            copied.mat4[12] = this.mat4[12];\n            copied.mat4[13] = this.mat4[13];\n            copied.mat4[14] = this.mat4[14];\n            copied.mat4[15] = this.mat4[15];\n            return copied;\n          };\n\n          /**\n           * return an identity matrix\n           * @method identity\n           * @return {p5.Matrix}   the result matrix\n           */\n          _main.default.Matrix.identity = function(pInst) {\n            return new _main.default.Matrix(pInst);\n          };\n\n          /**\n           * transpose according to a given matrix\n           * @method transpose\n           * @param  {p5.Matrix|Float32Array|Number[]} a  the matrix to be\n           *                                               based on to transpose\n           * @chainable\n           */\n          _main.default.Matrix.prototype.transpose = function(a) {\n            var a01, a02, a03, a12, a13, a23;\n            if (a instanceof _main.default.Matrix) {\n              a01 = a.mat4[1];\n              a02 = a.mat4[2];\n              a03 = a.mat4[3];\n              a12 = a.mat4[6];\n              a13 = a.mat4[7];\n              a23 = a.mat4[11];\n\n              this.mat4[0] = a.mat4[0];\n              this.mat4[1] = a.mat4[4];\n              this.mat4[2] = a.mat4[8];\n              this.mat4[3] = a.mat4[12];\n              this.mat4[4] = a01;\n              this.mat4[5] = a.mat4[5];\n              this.mat4[6] = a.mat4[9];\n              this.mat4[7] = a.mat4[13];\n              this.mat4[8] = a02;\n              this.mat4[9] = a12;\n              this.mat4[10] = a.mat4[10];\n              this.mat4[11] = a.mat4[14];\n              this.mat4[12] = a03;\n              this.mat4[13] = a13;\n              this.mat4[14] = a23;\n              this.mat4[15] = a.mat4[15];\n            } else if (isMatrixArray(a)) {\n              a01 = a[1];\n              a02 = a[2];\n              a03 = a[3];\n              a12 = a[6];\n              a13 = a[7];\n              a23 = a[11];\n\n              this.mat4[0] = a[0];\n              this.mat4[1] = a[4];\n              this.mat4[2] = a[8];\n              this.mat4[3] = a[12];\n              this.mat4[4] = a01;\n              this.mat4[5] = a[5];\n              this.mat4[6] = a[9];\n              this.mat4[7] = a[13];\n              this.mat4[8] = a02;\n              this.mat4[9] = a12;\n              this.mat4[10] = a[10];\n              this.mat4[11] = a[14];\n              this.mat4[12] = a03;\n              this.mat4[13] = a13;\n              this.mat4[14] = a23;\n              this.mat4[15] = a[15];\n            }\n            return this;\n          };\n\n          /**\n           * invert  matrix according to a give matrix\n           * @method invert\n           * @param  {p5.Matrix|Float32Array|Number[]} a   the matrix to be\n           *                                                based on to invert\n           * @chainable\n           */\n          _main.default.Matrix.prototype.invert = function(a) {\n            var a00, a01, a02, a03, a10, a11, a12, a13;\n            var a20, a21, a22, a23, a30, a31, a32, a33;\n            if (a instanceof _main.default.Matrix) {\n              a00 = a.mat4[0];\n              a01 = a.mat4[1];\n              a02 = a.mat4[2];\n              a03 = a.mat4[3];\n              a10 = a.mat4[4];\n              a11 = a.mat4[5];\n              a12 = a.mat4[6];\n              a13 = a.mat4[7];\n              a20 = a.mat4[8];\n              a21 = a.mat4[9];\n              a22 = a.mat4[10];\n              a23 = a.mat4[11];\n              a30 = a.mat4[12];\n              a31 = a.mat4[13];\n              a32 = a.mat4[14];\n              a33 = a.mat4[15];\n            } else if (isMatrixArray(a)) {\n              a00 = a[0];\n              a01 = a[1];\n              a02 = a[2];\n              a03 = a[3];\n              a10 = a[4];\n              a11 = a[5];\n              a12 = a[6];\n              a13 = a[7];\n              a20 = a[8];\n              a21 = a[9];\n              a22 = a[10];\n              a23 = a[11];\n              a30 = a[12];\n              a31 = a[13];\n              a32 = a[14];\n              a33 = a[15];\n            }\n            var b00 = a00 * a11 - a01 * a10;\n            var b01 = a00 * a12 - a02 * a10;\n            var b02 = a00 * a13 - a03 * a10;\n            var b03 = a01 * a12 - a02 * a11;\n            var b04 = a01 * a13 - a03 * a11;\n            var b05 = a02 * a13 - a03 * a12;\n            var b06 = a20 * a31 - a21 * a30;\n            var b07 = a20 * a32 - a22 * a30;\n            var b08 = a20 * a33 - a23 * a30;\n            var b09 = a21 * a32 - a22 * a31;\n            var b10 = a21 * a33 - a23 * a31;\n            var b11 = a22 * a33 - a23 * a32;\n\n            // Calculate the determinant\n            var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n\n            if (!det) {\n              return null;\n            }\n            det = 1.0 / det;\n\n            this.mat4[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det;\n            this.mat4[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det;\n            this.mat4[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det;\n            this.mat4[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det;\n            this.mat4[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det;\n            this.mat4[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det;\n            this.mat4[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det;\n            this.mat4[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det;\n            this.mat4[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det;\n            this.mat4[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det;\n            this.mat4[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det;\n            this.mat4[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det;\n            this.mat4[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det;\n            this.mat4[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det;\n            this.mat4[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det;\n            this.mat4[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det;\n\n            return this;\n          };\n\n          /**\n           * Inverts a 3x3 matrix\n           * @method invert3x3\n           * @chainable\n           */\n          _main.default.Matrix.prototype.invert3x3 = function() {\n            var a00 = this.mat3[0];\n            var a01 = this.mat3[1];\n            var a02 = this.mat3[2];\n            var a10 = this.mat3[3];\n            var a11 = this.mat3[4];\n            var a12 = this.mat3[5];\n            var a20 = this.mat3[6];\n            var a21 = this.mat3[7];\n            var a22 = this.mat3[8];\n            var b01 = a22 * a11 - a12 * a21;\n            var b11 = -a22 * a10 + a12 * a20;\n            var b21 = a21 * a10 - a11 * a20;\n\n            // Calculate the determinant\n            var det = a00 * b01 + a01 * b11 + a02 * b21;\n            if (!det) {\n              return null;\n            }\n            det = 1.0 / det;\n            this.mat3[0] = b01 * det;\n            this.mat3[1] = (-a22 * a01 + a02 * a21) * det;\n            this.mat3[2] = (a12 * a01 - a02 * a11) * det;\n            this.mat3[3] = b11 * det;\n            this.mat3[4] = (a22 * a00 - a02 * a20) * det;\n            this.mat3[5] = (-a12 * a00 + a02 * a10) * det;\n            this.mat3[6] = b21 * det;\n            this.mat3[7] = (-a21 * a00 + a01 * a20) * det;\n            this.mat3[8] = (a11 * a00 - a01 * a10) * det;\n            return this;\n          };\n\n          /**\n           * transposes a 3x3 p5.Matrix by a mat3\n           * @method transpose3x3\n           * @param  {Number[]} mat3 1-dimensional array\n           * @chainable\n           */\n          _main.default.Matrix.prototype.transpose3x3 = function(mat3) {\n            var a01 = mat3[1],\n              a02 = mat3[2],\n              a12 = mat3[5];\n            this.mat3[1] = mat3[3];\n            this.mat3[2] = mat3[6];\n            this.mat3[3] = a01;\n            this.mat3[5] = mat3[7];\n            this.mat3[6] = a02;\n            this.mat3[7] = a12;\n            return this;\n          };\n\n          /**\n           * converts a 4x4 matrix to its 3x3 inverse transform\n           * commonly used in MVMatrix to NMatrix conversions.\n           * @method invertTranspose\n           * @param  {p5.Matrix} mat4 the matrix to be based on to invert\n           * @chainable\n           * @todo  finish implementation\n           */\n          _main.default.Matrix.prototype.inverseTranspose = function(matrix) {\n            if (this.mat3 === undefined) {\n              console.error('sorry, this function only works with mat3');\n            } else {\n              //convert mat4 -> mat3\n              this.mat3[0] = matrix.mat4[0];\n              this.mat3[1] = matrix.mat4[1];\n              this.mat3[2] = matrix.mat4[2];\n              this.mat3[3] = matrix.mat4[4];\n              this.mat3[4] = matrix.mat4[5];\n              this.mat3[5] = matrix.mat4[6];\n              this.mat3[6] = matrix.mat4[8];\n              this.mat3[7] = matrix.mat4[9];\n              this.mat3[8] = matrix.mat4[10];\n            }\n\n            var inverse = this.invert3x3();\n            // check inverse succeeded\n            if (inverse) {\n              inverse.transpose3x3(this.mat3);\n            } else {\n              // in case of singularity, just zero the matrix\n              for (var i = 0; i < 9; i++) {\n                this.mat3[i] = 0;\n              }\n            }\n            return this;\n          };\n\n          /**\n           * inspired by Toji's mat4 determinant\n           * @method determinant\n           * @return {Number} Determinant of our 4x4 matrix\n           */\n          _main.default.Matrix.prototype.determinant = function() {\n            var d00 = this.mat4[0] * this.mat4[5] - this.mat4[1] * this.mat4[4],\n              d01 = this.mat4[0] * this.mat4[6] - this.mat4[2] * this.mat4[4],\n              d02 = this.mat4[0] * this.mat4[7] - this.mat4[3] * this.mat4[4],\n              d03 = this.mat4[1] * this.mat4[6] - this.mat4[2] * this.mat4[5],\n              d04 = this.mat4[1] * this.mat4[7] - this.mat4[3] * this.mat4[5],\n              d05 = this.mat4[2] * this.mat4[7] - this.mat4[3] * this.mat4[6],\n              d06 = this.mat4[8] * this.mat4[13] - this.mat4[9] * this.mat4[12],\n              d07 = this.mat4[8] * this.mat4[14] - this.mat4[10] * this.mat4[12],\n              d08 = this.mat4[8] * this.mat4[15] - this.mat4[11] * this.mat4[12],\n              d09 = this.mat4[9] * this.mat4[14] - this.mat4[10] * this.mat4[13],\n              d10 = this.mat4[9] * this.mat4[15] - this.mat4[11] * this.mat4[13],\n              d11 = this.mat4[10] * this.mat4[15] - this.mat4[11] * this.mat4[14];\n\n            // Calculate the determinant\n            return d00 * d11 - d01 * d10 + d02 * d09 + d03 * d08 - d04 * d07 + d05 * d06;\n          };\n\n          /**\n           * multiply two mat4s\n           * @method mult\n           * @param {p5.Matrix|Float32Array|Number[]} multMatrix The matrix\n           *                                                we want to multiply by\n           * @chainable\n           */\n          _main.default.Matrix.prototype.mult = function(multMatrix) {\n            var _src;\n\n            if (multMatrix === this || multMatrix === this.mat4) {\n              _src = this.copy().mat4; // only need to allocate in this rare case\n            } else if (multMatrix instanceof _main.default.Matrix) {\n              _src = multMatrix.mat4;\n            } else if (isMatrixArray(multMatrix)) {\n              _src = multMatrix;\n            } else if (arguments.length === 16) {\n              _src = arguments;\n            } else {\n              return; // nothing to do.\n            }\n\n            // each row is used for the multiplier\n            var b0 = this.mat4[0],\n              b1 = this.mat4[1],\n              b2 = this.mat4[2],\n              b3 = this.mat4[3];\n            this.mat4[0] = b0 * _src[0] + b1 * _src[4] + b2 * _src[8] + b3 * _src[12];\n            this.mat4[1] = b0 * _src[1] + b1 * _src[5] + b2 * _src[9] + b3 * _src[13];\n            this.mat4[2] = b0 * _src[2] + b1 * _src[6] + b2 * _src[10] + b3 * _src[14];\n            this.mat4[3] = b0 * _src[3] + b1 * _src[7] + b2 * _src[11] + b3 * _src[15];\n\n            b0 = this.mat4[4];\n            b1 = this.mat4[5];\n            b2 = this.mat4[6];\n            b3 = this.mat4[7];\n            this.mat4[4] = b0 * _src[0] + b1 * _src[4] + b2 * _src[8] + b3 * _src[12];\n            this.mat4[5] = b0 * _src[1] + b1 * _src[5] + b2 * _src[9] + b3 * _src[13];\n            this.mat4[6] = b0 * _src[2] + b1 * _src[6] + b2 * _src[10] + b3 * _src[14];\n            this.mat4[7] = b0 * _src[3] + b1 * _src[7] + b2 * _src[11] + b3 * _src[15];\n\n            b0 = this.mat4[8];\n            b1 = this.mat4[9];\n            b2 = this.mat4[10];\n            b3 = this.mat4[11];\n            this.mat4[8] = b0 * _src[0] + b1 * _src[4] + b2 * _src[8] + b3 * _src[12];\n            this.mat4[9] = b0 * _src[1] + b1 * _src[5] + b2 * _src[9] + b3 * _src[13];\n            this.mat4[10] = b0 * _src[2] + b1 * _src[6] + b2 * _src[10] + b3 * _src[14];\n            this.mat4[11] = b0 * _src[3] + b1 * _src[7] + b2 * _src[11] + b3 * _src[15];\n\n            b0 = this.mat4[12];\n            b1 = this.mat4[13];\n            b2 = this.mat4[14];\n            b3 = this.mat4[15];\n            this.mat4[12] = b0 * _src[0] + b1 * _src[4] + b2 * _src[8] + b3 * _src[12];\n            this.mat4[13] = b0 * _src[1] + b1 * _src[5] + b2 * _src[9] + b3 * _src[13];\n            this.mat4[14] = b0 * _src[2] + b1 * _src[6] + b2 * _src[10] + b3 * _src[14];\n            this.mat4[15] = b0 * _src[3] + b1 * _src[7] + b2 * _src[11] + b3 * _src[15];\n\n            return this;\n          };\n\n          _main.default.Matrix.prototype.apply = function(multMatrix) {\n            var _src;\n\n            if (multMatrix === this || multMatrix === this.mat4) {\n              _src = this.copy().mat4; // only need to allocate in this rare case\n            } else if (multMatrix instanceof _main.default.Matrix) {\n              _src = multMatrix.mat4;\n            } else if (isMatrixArray(multMatrix)) {\n              _src = multMatrix;\n            } else if (arguments.length === 16) {\n              _src = arguments;\n            } else {\n              return; // nothing to do.\n            }\n\n            var mat4 = this.mat4;\n\n            // each row is used for the multiplier\n            var m0 = mat4[0];\n            var m4 = mat4[4];\n            var m8 = mat4[8];\n            var m12 = mat4[12];\n            mat4[0] = _src[0] * m0 + _src[1] * m4 + _src[2] * m8 + _src[3] * m12;\n            mat4[4] = _src[4] * m0 + _src[5] * m4 + _src[6] * m8 + _src[7] * m12;\n            mat4[8] = _src[8] * m0 + _src[9] * m4 + _src[10] * m8 + _src[11] * m12;\n            mat4[12] = _src[12] * m0 + _src[13] * m4 + _src[14] * m8 + _src[15] * m12;\n\n            var m1 = mat4[1];\n            var m5 = mat4[5];\n            var m9 = mat4[9];\n            var m13 = mat4[13];\n            mat4[1] = _src[0] * m1 + _src[1] * m5 + _src[2] * m9 + _src[3] * m13;\n            mat4[5] = _src[4] * m1 + _src[5] * m5 + _src[6] * m9 + _src[7] * m13;\n            mat4[9] = _src[8] * m1 + _src[9] * m5 + _src[10] * m9 + _src[11] * m13;\n            mat4[13] = _src[12] * m1 + _src[13] * m5 + _src[14] * m9 + _src[15] * m13;\n\n            var m2 = mat4[2];\n            var m6 = mat4[6];\n            var m10 = mat4[10];\n            var m14 = mat4[14];\n            mat4[2] = _src[0] * m2 + _src[1] * m6 + _src[2] * m10 + _src[3] * m14;\n            mat4[6] = _src[4] * m2 + _src[5] * m6 + _src[6] * m10 + _src[7] * m14;\n            mat4[10] = _src[8] * m2 + _src[9] * m6 + _src[10] * m10 + _src[11] * m14;\n            mat4[14] = _src[12] * m2 + _src[13] * m6 + _src[14] * m10 + _src[15] * m14;\n\n            var m3 = mat4[3];\n            var m7 = mat4[7];\n            var m11 = mat4[11];\n            var m15 = mat4[15];\n            mat4[3] = _src[0] * m3 + _src[1] * m7 + _src[2] * m11 + _src[3] * m15;\n            mat4[7] = _src[4] * m3 + _src[5] * m7 + _src[6] * m11 + _src[7] * m15;\n            mat4[11] = _src[8] * m3 + _src[9] * m7 + _src[10] * m11 + _src[11] * m15;\n            mat4[15] = _src[12] * m3 + _src[13] * m7 + _src[14] * m11 + _src[15] * m15;\n\n            return this;\n          };\n\n          /**\n           * scales a p5.Matrix by scalars or a vector\n           * @method scale\n           * @param  {p5.Vector|Float32Array|Number[]} s vector to scale by\n           * @chainable\n           */\n          _main.default.Matrix.prototype.scale = function(x, y, z) {\n            if (x instanceof _main.default.Vector) {\n              // x is a vector, extract the components from it.\n              y = x.y;\n              z = x.z;\n              x = x.x; // must be last\n            } else if (x instanceof Array) {\n              // x is an array, extract the components from it.\n              y = x[1];\n              z = x[2];\n              x = x[0]; // must be last\n            }\n\n            this.mat4[0] *= x;\n            this.mat4[1] *= x;\n            this.mat4[2] *= x;\n            this.mat4[3] *= x;\n            this.mat4[4] *= y;\n            this.mat4[5] *= y;\n            this.mat4[6] *= y;\n            this.mat4[7] *= y;\n            this.mat4[8] *= z;\n            this.mat4[9] *= z;\n            this.mat4[10] *= z;\n            this.mat4[11] *= z;\n\n            return this;\n          };\n\n          /**\n           * rotate our Matrix around an axis by the given angle.\n           * @method rotate\n           * @param  {Number} a The angle of rotation in radians\n           * @param  {p5.Vector|Number[]} axis  the axis(es) to rotate around\n           * @chainable\n           * inspired by Toji's gl-matrix lib, mat4 rotation\n           */\n          _main.default.Matrix.prototype.rotate = function(a, x, y, z) {\n            if (x instanceof _main.default.Vector) {\n              // x is a vector, extract the components from it.\n              y = x.y;\n              z = x.z;\n              x = x.x; //must be last\n            } else if (x instanceof Array) {\n              // x is an array, extract the components from it.\n              y = x[1];\n              z = x[2];\n              x = x[0]; //must be last\n            }\n\n            var len = Math.sqrt(x * x + y * y + z * z);\n            x *= 1 / len;\n            y *= 1 / len;\n            z *= 1 / len;\n\n            var a00 = this.mat4[0];\n            var a01 = this.mat4[1];\n            var a02 = this.mat4[2];\n            var a03 = this.mat4[3];\n            var a10 = this.mat4[4];\n            var a11 = this.mat4[5];\n            var a12 = this.mat4[6];\n            var a13 = this.mat4[7];\n            var a20 = this.mat4[8];\n            var a21 = this.mat4[9];\n            var a22 = this.mat4[10];\n            var a23 = this.mat4[11];\n\n            //sin,cos, and tan of respective angle\n            var sA = Math.sin(a);\n            var cA = Math.cos(a);\n            var tA = 1 - cA;\n            // Construct the elements of the rotation matrix\n            var b00 = x * x * tA + cA;\n            var b01 = y * x * tA + z * sA;\n            var b02 = z * x * tA - y * sA;\n            var b10 = x * y * tA - z * sA;\n            var b11 = y * y * tA + cA;\n            var b12 = z * y * tA + x * sA;\n            var b20 = x * z * tA + y * sA;\n            var b21 = y * z * tA - x * sA;\n            var b22 = z * z * tA + cA;\n\n            // rotation-specific matrix multiplication\n            this.mat4[0] = a00 * b00 + a10 * b01 + a20 * b02;\n            this.mat4[1] = a01 * b00 + a11 * b01 + a21 * b02;\n            this.mat4[2] = a02 * b00 + a12 * b01 + a22 * b02;\n            this.mat4[3] = a03 * b00 + a13 * b01 + a23 * b02;\n            this.mat4[4] = a00 * b10 + a10 * b11 + a20 * b12;\n            this.mat4[5] = a01 * b10 + a11 * b11 + a21 * b12;\n            this.mat4[6] = a02 * b10 + a12 * b11 + a22 * b12;\n            this.mat4[7] = a03 * b10 + a13 * b11 + a23 * b12;\n            this.mat4[8] = a00 * b20 + a10 * b21 + a20 * b22;\n            this.mat4[9] = a01 * b20 + a11 * b21 + a21 * b22;\n            this.mat4[10] = a02 * b20 + a12 * b21 + a22 * b22;\n            this.mat4[11] = a03 * b20 + a13 * b21 + a23 * b22;\n\n            return this;\n          };\n\n          /**\n           * @todo  finish implementing this method!\n           * translates\n           * @method translate\n           * @param  {Number[]} v vector to translate by\n           * @chainable\n           */\n          _main.default.Matrix.prototype.translate = function(v) {\n            var x = v[0],\n              y = v[1],\n              z = v[2] || 0;\n            this.mat4[12] += this.mat4[0] * x + this.mat4[4] * y + this.mat4[8] * z;\n            this.mat4[13] += this.mat4[1] * x + this.mat4[5] * y + this.mat4[9] * z;\n            this.mat4[14] += this.mat4[2] * x + this.mat4[6] * y + this.mat4[10] * z;\n            this.mat4[15] += this.mat4[3] * x + this.mat4[7] * y + this.mat4[11] * z;\n          };\n\n          _main.default.Matrix.prototype.rotateX = function(a) {\n            this.rotate(a, 1, 0, 0);\n          };\n          _main.default.Matrix.prototype.rotateY = function(a) {\n            this.rotate(a, 0, 1, 0);\n          };\n          _main.default.Matrix.prototype.rotateZ = function(a) {\n            this.rotate(a, 0, 0, 1);\n          };\n\n          /**\n           * sets the perspective matrix\n           * @method perspective\n           * @param  {Number} fovy   [description]\n           * @param  {Number} aspect [description]\n           * @param  {Number} near   near clipping plane\n           * @param  {Number} far    far clipping plane\n           * @chainable\n           */\n          _main.default.Matrix.prototype.perspective = function(fovy, aspect, near, far) {\n            var f = 1.0 / Math.tan(fovy / 2),\n              nf = 1 / (near - far);\n\n            this.mat4[0] = f / aspect;\n            this.mat4[1] = 0;\n            this.mat4[2] = 0;\n            this.mat4[3] = 0;\n            this.mat4[4] = 0;\n            this.mat4[5] = f;\n            this.mat4[6] = 0;\n            this.mat4[7] = 0;\n            this.mat4[8] = 0;\n            this.mat4[9] = 0;\n            this.mat4[10] = (far + near) * nf;\n            this.mat4[11] = -1;\n            this.mat4[12] = 0;\n            this.mat4[13] = 0;\n            this.mat4[14] = 2 * far * near * nf;\n            this.mat4[15] = 0;\n\n            return this;\n          };\n\n          /**\n           * sets the ortho matrix\n           * @method ortho\n           * @param  {Number} left   [description]\n           * @param  {Number} right  [description]\n           * @param  {Number} bottom [description]\n           * @param  {Number} top    [description]\n           * @param  {Number} near   near clipping plane\n           * @param  {Number} far    far clipping plane\n           * @chainable\n           */\n          _main.default.Matrix.prototype.ortho = function(\n            left,\n            right,\n            bottom,\n            top,\n            near,\n            far\n          ) {\n            var lr = 1 / (left - right),\n              bt = 1 / (bottom - top),\n              nf = 1 / (near - far);\n            this.mat4[0] = -2 * lr;\n            this.mat4[1] = 0;\n            this.mat4[2] = 0;\n            this.mat4[3] = 0;\n            this.mat4[4] = 0;\n            this.mat4[5] = -2 * bt;\n            this.mat4[6] = 0;\n            this.mat4[7] = 0;\n            this.mat4[8] = 0;\n            this.mat4[9] = 0;\n            this.mat4[10] = 2 * nf;\n            this.mat4[11] = 0;\n            this.mat4[12] = (left + right) * lr;\n            this.mat4[13] = (top + bottom) * bt;\n            this.mat4[14] = (far + near) * nf;\n            this.mat4[15] = 1;\n\n            return this;\n          };\n\n          /**\n           * PRIVATE\n           */\n          // matrix methods adapted from:\n          // https://developer.mozilla.org/en-US/docs/Web/WebGL/\n          // gluPerspective\n          //\n          // function _makePerspective(fovy, aspect, znear, zfar){\n          //    const ymax = znear * Math.tan(fovy * Math.PI / 360.0);\n          //    const ymin = -ymax;\n          //    const xmin = ymin * aspect;\n          //    const xmax = ymax * aspect;\n          //    return _makeFrustum(xmin, xmax, ymin, ymax, znear, zfar);\n          //  }\n\n          ////\n          //// glFrustum\n          ////\n          //function _makeFrustum(left, right, bottom, top, znear, zfar){\n          //  const X = 2*znear/(right-left);\n          //  const Y = 2*znear/(top-bottom);\n          //  const A = (right+left)/(right-left);\n          //  const B = (top+bottom)/(top-bottom);\n          //  const C = -(zfar+znear)/(zfar-znear);\n          //  const D = -2*zfar*znear/(zfar-znear);\n          //  const frustrumMatrix =[\n          //  X, 0, A, 0,\n          //  0, Y, B, 0,\n          //  0, 0, C, D,\n          //  0, 0, -1, 0\n          //];\n          //return frustrumMatrix;\n          // }\n\n          // function _setMVPMatrices(){\n          ////an identity matrix\n          ////@TODO use the p5.Matrix class to abstract away our MV matrices and\n          ///other math\n          //const _mvMatrix =\n          //[\n          //  1.0,0.0,0.0,0.0,\n          //  0.0,1.0,0.0,0.0,\n          //  0.0,0.0,1.0,0.0,\n          //  0.0,0.0,0.0,1.0\n          //];\n          var _default = _main.default.Matrix;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      101: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n\n          _main.default.RenderBuffer = function(size, src, dst, attr, renderer, map) {\n            this.size = size; // the number of FLOATs in each vertex\n            this.src = src; // the name of the model's source array\n            this.dst = dst; // the name of the geometry's buffer\n            this.attr = attr; // the name of the vertex attribute\n            this._renderer = renderer;\n            this.map = map; // optional, a transformation function to apply to src\n          };\n\n          /**\n           * Enables and binds the buffers used by shader when the appropriate data exists in geometry.\n           * Must always be done prior to drawing geometry in WebGL.\n           * @param {p5.Geometry} geometry Geometry that is going to be drawn\n           * @param {p5.Shader} shader Active shader\n           * @private\n           */\n          _main.default.RenderBuffer.prototype._prepareBuffer = function(geometry, shader) {\n            var attributes = shader.attributes;\n            var gl = this._renderer.GL;\n            var model;\n            if (geometry.model) {\n              model = geometry.model;\n            } else {\n              model = geometry;\n            }\n\n            // loop through each of the buffer definitions\n            var attr = attributes[this.attr];\n            if (!attr) {\n              return;\n            }\n\n            // check if the model has the appropriate source array\n            var buffer = geometry[this.dst];\n            var src = model[this.src];\n            if (src.length > 0) {\n              // check if we need to create the GL buffer\n              var createBuffer = !buffer;\n              if (createBuffer) {\n                // create and remember the buffer\n                geometry[this.dst] = buffer = gl.createBuffer();\n              }\n              // bind the buffer\n              gl.bindBuffer(gl.ARRAY_BUFFER, buffer);\n\n              // check if we need to fill the buffer with data\n              if (createBuffer || model.dirtyFlags[this.src] !== false) {\n                var map = this.map;\n                // get the values from the model, possibly transformed\n                var values = map ? map(src) : src;\n                // fill the buffer with the values\n                this._renderer._bindBuffer(buffer, gl.ARRAY_BUFFER, values);\n\n                // mark the model's source array as clean\n                model.dirtyFlags[this.src] = false;\n              }\n              // enable the attribute\n              shader.enableAttrib(attr, this.size);\n            }\n          };\n          var _default = _main.default.RenderBuffer;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      102: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          _dereq_('./p5.RenderBuffer');\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * Welcome to RendererGL Immediate Mode.\n           * Immediate mode is used for drawing custom shapes\n           * from a set of vertices.  Immediate Mode is activated\n           * when you call <a href=\"#/p5/beginShape\">beginShape()</a> & de-activated when you call <a href=\"#/p5/endShape\">endShape()</a>.\n           * Immediate mode is a style of programming borrowed\n           * from OpenGL's (now-deprecated) immediate mode.\n           * It differs from p5.js' default, Retained Mode, which caches\n           * geometries and buffers on the CPU to reduce the number of webgl\n           * draw calls. Retained mode is more efficient & performative,\n           * however, Immediate Mode is useful for sketching quick\n           * geometric ideas.\n           */ /**\n           * Begin shape drawing.  This is a helpful way of generating\n           * custom shapes quickly.  However in WEBGL mode, application\n           * performance will likely drop as a result of too many calls to\n           * <a href=\"#/p5/beginShape\">beginShape()</a> / <a href=\"#/p5/endShape\">endShape()</a>.  As a high performance alternative,\n           * please use p5.js geometry primitives.\n           * @private\n           * @method beginShape\n           * @param  {Number} mode webgl primitives mode.  beginShape supports the\n           *                       following modes:\n           *                       POINTS,LINES,LINE_STRIP,LINE_LOOP,TRIANGLES,\n           *                       TRIANGLE_STRIP, TRIANGLE_FAN and TESS(WEBGL only)\n           * @chainable\n           */ _main.default.RendererGL.prototype.beginShape = function(mode) {\n            this.immediateMode.shapeMode =\n              mode !== undefined ? mode : constants.TRIANGLE_FAN;\n            this.immediateMode.geometry.reset();\n            return this;\n          };\n          /**\n           * adds a vertex to be drawn in a custom Shape.\n           * @private\n           * @method vertex\n           * @param  {Number} x x-coordinate of vertex\n           * @param  {Number} y y-coordinate of vertex\n           * @param  {Number} z z-coordinate of vertex\n           * @chainable\n           * @TODO implement handling of <a href=\"#/p5.Vector\">p5.Vector</a> args\n           */ _main.default.RendererGL.prototype.vertex = function(x, y) {\n            var z, u, v;\n\n            // default to (x, y) mode: all other arugments assumed to be 0.\n            z = u = v = 0;\n\n            if (arguments.length === 3) {\n              // (x, y, z) mode: (u, v) assumed to be 0.\n              z = arguments[2];\n            } else if (arguments.length === 4) {\n              // (x, y, u, v) mode: z assumed to be 0.\n              u = arguments[2];\n              v = arguments[3];\n            } else if (arguments.length === 5) {\n              // (x, y, z, u, v) mode\n              z = arguments[2];\n              u = arguments[3];\n              v = arguments[4];\n            }\n            var vert = new _main.default.Vector(x, y, z);\n            this.immediateMode.geometry.vertices.push(vert);\n            var vertexColor = this.curFillColor || [0.5, 0.5, 0.5, 1.0];\n            this.immediateMode.geometry.vertexColors.push(\n              vertexColor[0],\n              vertexColor[1],\n              vertexColor[2],\n              vertexColor[3]\n            );\n\n            if (this.textureMode === constants.IMAGE) {\n              if (this._tex !== null) {\n                if (this._tex.width > 0 && this._tex.height > 0) {\n                  u /= this._tex.width;\n                  v /= this._tex.height;\n                }\n              } else if (this._tex === null && arguments.length >= 4) {\n                // Only throw this warning if custom uv's have  been provided\n                console.warn(\n                  'You must first call texture() before using' +\n                    ' vertex() with image based u and v coordinates'\n                );\n              }\n            }\n\n            this.immediateMode.geometry.uvs.push(u, v);\n\n            this.immediateMode._bezierVertex[0] = x;\n            this.immediateMode._bezierVertex[1] = y;\n            this.immediateMode._bezierVertex[2] = z;\n\n            this.immediateMode._quadraticVertex[0] = x;\n            this.immediateMode._quadraticVertex[1] = y;\n            this.immediateMode._quadraticVertex[2] = z;\n\n            return this;\n          };\n\n          /**\n           * End shape drawing and render vertices to screen.\n           * @chainable\n           */\n          _main.default.RendererGL.prototype.endShape = function(\n            mode,\n            isCurve,\n            isBezier,\n            isQuadratic,\n            isContour,\n            shapeKind\n          ) {\n            if (this.immediateMode.shapeMode === constants.POINTS) {\n              this._drawPoints(\n                this.immediateMode.geometry.vertices,\n                this.immediateMode.buffers.point\n              );\n\n              return this;\n            }\n            this._processVertices.apply(this, arguments);\n\n            if (this.immediateMode.geometry.vertices.length > 1) {\n              this._drawImmediateFill();\n            }\n\n            if (this.immediateMode.geometry.lineVertices.length > 1) {\n              this._drawImmediateStroke();\n            }\n\n            this.isBezier = false;\n            this.isQuadratic = false;\n            this.isCurve = false;\n            this.immediateMode._bezierVertex.length = 0;\n            this.immediateMode._quadraticVertex.length = 0;\n            this.immediateMode._curveVertex.length = 0;\n            return this;\n          };\n\n          /**\n           * Called from endShape(). This function calculates the stroke vertices for custom shapes and\n           * tesselates shapes when applicable.\n           * @private\n           * @param  {Number} mode webgl primitives mode.  beginShape supports the\n           *                       following modes:\n           *                       POINTS,LINES,LINE_STRIP,LINE_LOOP,TRIANGLES,\n           *                       TRIANGLE_STRIP, TRIANGLE_FAN and TESS(WEBGL only)\n           */\n          _main.default.RendererGL.prototype._processVertices = function(mode) {\n            if (this.immediateMode.geometry.vertices.length === 0) return;\n\n            var calculateStroke = this._doStroke && this.drawMode !== constants.TEXTURE;\n            var shouldClose = mode === constants.CLOSE;\n            if (calculateStroke) {\n              this.immediateMode.geometry.edges = this._calculateEdges(\n                this.immediateMode.shapeMode,\n                this.immediateMode.geometry.vertices,\n                shouldClose\n              );\n\n              this.immediateMode.geometry._edgesToVertices();\n            }\n            // For hollow shapes, user must set mode to TESS\n            var convexShape = this.immediateMode.shapeMode === constants.TESS;\n            // We tesselate when drawing curves or convex shapes\n            var shouldTess =\n              (this.isBezier || this.isQuadratic || this.isCurve || convexShape) &&\n              this.immediateMode.shapeMode !== constants.LINES;\n\n            if (shouldTess) {\n              this._tesselateShape();\n            }\n          };\n\n          /**\n           * Called from _processVertices(). This function calculates the stroke vertices for custom shapes and\n           * tesselates shapes when applicable.\n           * @private\n           * @returns  {Array[Number]} indices for custom shape vertices indicating edges.\n           */\n          _main.default.RendererGL.prototype._calculateEdges = function(\n            shapeMode,\n            verts,\n            shouldClose\n          ) {\n            var res = [];\n            var i = 0;\n            switch (shapeMode) {\n              case constants.TRIANGLE_STRIP:\n                for (i = 0; i < verts - 2; i++) {\n                  res.push([i, i + 1]);\n                  res.push([i, i + 2]);\n                }\n                res.push([i, i + 1]);\n                break;\n              case constants.TRIANGLES:\n                for (i = 0; i < verts.length - 2; i = i + 3) {\n                  res.push([i, i + 1]);\n                  res.push([i + 1, i + 2]);\n                  res.push([i + 2, i]);\n                }\n                break;\n              case constants.LINES:\n                for (i = 0; i < verts.length - 1; i = i + 2) {\n                  res.push([i, i + 1]);\n                }\n                break;\n              default:\n                for (i = 0; i < verts.length - 1; i++) {\n                  res.push([i, i + 1]);\n                }\n                break;\n            }\n\n            if (shouldClose) {\n              res.push([verts.length - 1, 0]);\n            }\n            return res;\n          };\n\n          /**\n           * Called from _processVertices() when applicable. This function tesselates immediateMode.geometry.\n           * @private\n           */\n          _main.default.RendererGL.prototype._tesselateShape = function() {\n            this.immediateMode.shapeMode = constants.TRIANGLES;\n            var contours = [\n              new Float32Array(this._vToNArray(this.immediateMode.geometry.vertices))\n            ];\n\n            var polyTriangles = this._triangulate(contours);\n            this.immediateMode.geometry.vertices = [];\n            for (\n              var j = 0, polyTriLength = polyTriangles.length;\n              j < polyTriLength;\n              j = j + 3\n            ) {\n              this.vertex(polyTriangles[j], polyTriangles[j + 1], polyTriangles[j + 2]);\n            }\n          };\n\n          /**\n           * Called from endShape(). Responsible for calculating normals, setting shader uniforms,\n           * enabling all appropriate buffers, applying color blend, and drawing the fill geometry.\n           * @private\n           */\n          _main.default.RendererGL.prototype._drawImmediateFill = function() {\n            var gl = this.GL;\n            var shader = this._getImmediateFillShader();\n\n            this._calculateNormals(this.immediateMode.geometry);\n            this._setFillUniforms(shader);\n            var _iteratorNormalCompletion = true;\n            var _didIteratorError = false;\n            var _iteratorError = undefined;\n            try {\n              for (\n                var _iterator = this.immediateMode.buffers.fill[Symbol.iterator](), _step;\n                !(_iteratorNormalCompletion = (_step = _iterator.next()).done);\n                _iteratorNormalCompletion = true\n              ) {\n                var buff = _step.value;\n                buff._prepareBuffer(this.immediateMode.geometry, shader);\n              }\n\n              // LINE_STRIP and LINES are not used for rendering, instead\n              // they only indicate a way to modify vertices during the _processVertices() step\n            } catch (err) {\n              _didIteratorError = true;\n              _iteratorError = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion && _iterator.return != null) {\n                  _iterator.return();\n                }\n              } finally {\n                if (_didIteratorError) {\n                  throw _iteratorError;\n                }\n              }\n            }\n            if (\n              this.immediateMode.shapeMode === constants.LINE_STRIP ||\n              this.immediateMode.shapeMode === constants.LINES\n            ) {\n              this.immediateMode.shapeMode = constants.TRIANGLE_FAN;\n            }\n\n            this._applyColorBlend(this.curFillColor);\n            gl.drawArrays(\n              this.immediateMode.shapeMode,\n              0,\n              this.immediateMode.geometry.vertices.length\n            );\n\n            shader.unbindShader();\n          };\n\n          /**\n           * Called from endShape(). Responsible for calculating normals, setting shader uniforms,\n           * enabling all appropriate buffers, applying color blend, and drawing the stroke geometry.\n           * @private\n           */\n          _main.default.RendererGL.prototype._drawImmediateStroke = function() {\n            var gl = this.GL;\n            var shader = this._getImmediateStrokeShader();\n            this._setStrokeUniforms(shader);\n            var _iteratorNormalCompletion2 = true;\n            var _didIteratorError2 = false;\n            var _iteratorError2 = undefined;\n            try {\n              for (\n                var _iterator2 = this.immediateMode.buffers.stroke[Symbol.iterator](),\n                  _step2;\n                !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done);\n                _iteratorNormalCompletion2 = true\n              ) {\n                var buff = _step2.value;\n                buff._prepareBuffer(this.immediateMode.geometry, shader);\n              }\n            } catch (err) {\n              _didIteratorError2 = true;\n              _iteratorError2 = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n                  _iterator2.return();\n                }\n              } finally {\n                if (_didIteratorError2) {\n                  throw _iteratorError2;\n                }\n              }\n            }\n            this._applyColorBlend(this.curStrokeColor);\n            gl.drawArrays(gl.TRIANGLES, 0, this.immediateMode.geometry.lineVertices.length);\n\n            shader.unbindShader();\n          };\n\n          /**\n           * Called from _drawImmediateFill(). Currently adds default normals which\n           * only work for flat shapes.\n           * @parem\n           * @private\n           */\n          _main.default.RendererGL.prototype._calculateNormals = function(geometry) {\n            geometry.vertices.forEach(function() {\n              geometry.vertexNormals.push(new _main.default.Vector(0, 0, 1));\n            });\n          };\n          var _default = _main.default.RendererGL;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, '../core/main': 50, './p5.RenderBuffer': 101 }\n      ],\n      103: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          _dereq_('./p5.RendererGL');\n          _dereq_('./p5.RenderBuffer');\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          } //Retained Mode. The default mode for rendering 3D primitives\n          //in WEBGL.\n          var hashCount = 0;\n          /**\n           * _initBufferDefaults\n           * @private\n           * @description initializes buffer defaults. runs each time a new geometry is\n           * registered\n           * @param  {String} gId  key of the geometry object\n           * @returns {Object} a new buffer object\n           */\n          _main.default.RendererGL.prototype._initBufferDefaults = function(gId) {\n            this._freeBuffers(gId);\n\n            //@TODO remove this limit on hashes in retainedMode.geometry\n            hashCount++;\n            if (hashCount > 1000) {\n              var key = Object.keys(this.retainedMode.geometry)[0];\n              delete this.retainedMode.geometry[key];\n              hashCount--;\n            }\n\n            //create a new entry in our retainedMode.geometry\n            return (this.retainedMode.geometry[gId] = {});\n          };\n\n          _main.default.RendererGL.prototype._freeBuffers = function(gId) {\n            var buffers = this.retainedMode.geometry[gId];\n            if (!buffers) {\n              return;\n            }\n\n            delete this.retainedMode.geometry[gId];\n            hashCount--;\n\n            var gl = this.GL;\n            if (buffers.indexBuffer) {\n              gl.deleteBuffer(buffers.indexBuffer);\n            }\n\n            function freeBuffers(defs) {\n              var _iteratorNormalCompletion = true;\n              var _didIteratorError = false;\n              var _iteratorError = undefined;\n              try {\n                for (\n                  var _iterator = defs[Symbol.iterator](), _step;\n                  !(_iteratorNormalCompletion = (_step = _iterator.next()).done);\n                  _iteratorNormalCompletion = true\n                ) {\n                  var def = _step.value;\n                  if (buffers[def.dst]) {\n                    gl.deleteBuffer(buffers[def.dst]);\n                    buffers[def.dst] = null;\n                  }\n                }\n              } catch (err) {\n                _didIteratorError = true;\n                _iteratorError = err;\n              } finally {\n                try {\n                  if (!_iteratorNormalCompletion && _iterator.return != null) {\n                    _iterator.return();\n                  }\n                } finally {\n                  if (_didIteratorError) {\n                    throw _iteratorError;\n                  }\n                }\n              }\n            }\n\n            // free all the buffers\n            freeBuffers(this.retainedMode.buffers.stroke);\n            freeBuffers(this.retainedMode.buffers.fill);\n          };\n\n          /**\n           * creates a buffers object that holds the WebGL render buffers\n           * for a geometry.\n           * @private\n           * @param  {String} gId    key of the geometry object\n           * @param  {p5.Geometry}  model contains geometry data\n           */\n          _main.default.RendererGL.prototype.createBuffers = function(gId, model) {\n            var gl = this.GL;\n            //initialize the gl buffers for our geom groups\n            var buffers = this._initBufferDefaults(gId);\n            buffers.model = model;\n\n            var indexBuffer = buffers.indexBuffer;\n\n            if (model.faces.length) {\n              // allocate space for faces\n              if (!indexBuffer) indexBuffer = buffers.indexBuffer = gl.createBuffer();\n              var vals = _main.default.RendererGL.prototype._flatten(model.faces);\n              this._bindBuffer(indexBuffer, gl.ELEMENT_ARRAY_BUFFER, vals, Uint16Array);\n\n              // the vertex count is based on the number of faces\n              buffers.vertexCount = model.faces.length * 3;\n            } else {\n              // the index buffer is unused, remove it\n              if (indexBuffer) {\n                gl.deleteBuffer(indexBuffer);\n                buffers.indexBuffer = null;\n              }\n              // the vertex count comes directly from the model\n              buffers.vertexCount = model.vertices ? model.vertices.length : 0;\n            }\n\n            buffers.lineVertexCount = model.lineVertices ? model.lineVertices.length : 0;\n\n            return buffers;\n          };\n\n          /**\n           * Draws buffers given a geometry key ID\n           * @private\n           * @param  {String} gId     ID in our geom hash\n           * @chainable\n           */\n          _main.default.RendererGL.prototype.drawBuffers = function(gId) {\n            var gl = this.GL;\n            var geometry = this.retainedMode.geometry[gId];\n\n            if (this._doStroke && geometry.lineVertexCount > 0) {\n              var strokeShader = this._getRetainedStrokeShader();\n              this._setStrokeUniforms(strokeShader);\n              var _iteratorNormalCompletion2 = true;\n              var _didIteratorError2 = false;\n              var _iteratorError2 = undefined;\n              try {\n                for (\n                  var _iterator2 = this.retainedMode.buffers.stroke[Symbol.iterator](),\n                    _step2;\n                  !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done);\n                  _iteratorNormalCompletion2 = true\n                ) {\n                  var buff = _step2.value;\n                  buff._prepareBuffer(geometry, strokeShader);\n                }\n              } catch (err) {\n                _didIteratorError2 = true;\n                _iteratorError2 = err;\n              } finally {\n                try {\n                  if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n                    _iterator2.return();\n                  }\n                } finally {\n                  if (_didIteratorError2) {\n                    throw _iteratorError2;\n                  }\n                }\n              }\n              this._applyColorBlend(this.curStrokeColor);\n              this._drawArrays(gl.TRIANGLES, gId);\n              strokeShader.unbindShader();\n            }\n\n            if (this._doFill) {\n              var fillShader = this._getRetainedFillShader();\n              this._setFillUniforms(fillShader);\n              var _iteratorNormalCompletion3 = true;\n              var _didIteratorError3 = false;\n              var _iteratorError3 = undefined;\n              try {\n                for (\n                  var _iterator3 = this.retainedMode.buffers.fill[Symbol.iterator](),\n                    _step3;\n                  !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done);\n                  _iteratorNormalCompletion3 = true\n                ) {\n                  var _buff = _step3.value;\n                  _buff._prepareBuffer(geometry, fillShader);\n                }\n              } catch (err) {\n                _didIteratorError3 = true;\n                _iteratorError3 = err;\n              } finally {\n                try {\n                  if (!_iteratorNormalCompletion3 && _iterator3.return != null) {\n                    _iterator3.return();\n                  }\n                } finally {\n                  if (_didIteratorError3) {\n                    throw _iteratorError3;\n                  }\n                }\n              }\n              if (geometry.indexBuffer) {\n                //vertex index buffer\n                this._bindBuffer(geometry.indexBuffer, gl.ELEMENT_ARRAY_BUFFER);\n              }\n              this._applyColorBlend(this.curFillColor);\n              this._drawElements(gl.TRIANGLES, gId);\n              fillShader.unbindShader();\n            }\n            return this;\n          };\n\n          /**\n           * Calls drawBuffers() with a scaled model/view matrix.\n           *\n           * This is used by various 3d primitive methods (in primitives.js, eg. plane,\n           * box, torus, etc...) to allow caching of un-scaled geometries. Those\n           * geometries are generally created with unit-length dimensions, cached as\n           * such, and then scaled appropriately in this method prior to rendering.\n           *\n           * @private\n           * @method drawBuffersScaled\n           * @param {String} gId     ID in our geom hash\n           * @param {Number} scaleX  the amount to scale in the X direction\n           * @param {Number} scaleY  the amount to scale in the Y direction\n           * @param {Number} scaleZ  the amount to scale in the Z direction\n           */\n          _main.default.RendererGL.prototype.drawBuffersScaled = function(\n            gId,\n            scaleX,\n            scaleY,\n            scaleZ\n          ) {\n            var uMVMatrix = this.uMVMatrix.copy();\n            try {\n              this.uMVMatrix.scale(scaleX, scaleY, scaleZ);\n              this.drawBuffers(gId);\n            } finally {\n              this.uMVMatrix = uMVMatrix;\n            }\n          };\n\n          _main.default.RendererGL.prototype._drawArrays = function(drawMode, gId) {\n            this.GL.drawArrays(\n              drawMode,\n              0,\n              this.retainedMode.geometry[gId].lineVertexCount\n            );\n\n            return this;\n          };\n\n          _main.default.RendererGL.prototype._drawElements = function(drawMode, gId) {\n            var buffers = this.retainedMode.geometry[gId];\n            var gl = this.GL;\n            // render the fill\n            if (buffers.indexBuffer) {\n              // we're drawing faces\n              gl.drawElements(gl.TRIANGLES, buffers.vertexCount, gl.UNSIGNED_SHORT, 0);\n            } else {\n              // drawing vertices\n              gl.drawArrays(drawMode || gl.TRIANGLES, 0, buffers.vertexCount);\n            }\n          };\n\n          _main.default.RendererGL.prototype._drawPoints = function(\n            vertices,\n            vertexBuffer\n          ) {\n            var gl = this.GL;\n            var pointShader = this._getImmediatePointShader();\n            this._setPointUniforms(pointShader);\n\n            this._bindBuffer(\n              vertexBuffer,\n              gl.ARRAY_BUFFER,\n              this._vToNArray(vertices),\n              Float32Array,\n              gl.STATIC_DRAW\n            );\n\n            pointShader.enableAttrib(pointShader.attributes.aPosition, 3);\n\n            gl.drawArrays(gl.Points, 0, vertices.length);\n\n            pointShader.unbindShader();\n          };\n          var _default = _main.default.RendererGL;\n          exports.default = _default;\n        },\n        { '../core/main': 50, './p5.RenderBuffer': 101, './p5.RendererGL': 104 }\n      ],\n      104: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          var _libtess = _interopRequireDefault(_dereq_('libtess'));\n          _dereq_('./p5.Shader');\n          _dereq_('./p5.Camera');\n          _dereq_('../core/p5.Renderer');\n          _dereq_('./p5.Matrix');\n\n          var _path = _dereq_('path');\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          function _toConsumableArray(arr) {\n            return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n          }\n          function _nonIterableSpread() {\n            throw new TypeError('Invalid attempt to spread non-iterable instance');\n          }\n          function _iterableToArray(iter) {\n            if (\n              Symbol.iterator in Object(iter) ||\n              Object.prototype.toString.call(iter) === '[object Arguments]'\n            )\n              return Array.from(iter);\n          }\n          function _arrayWithoutHoles(arr) {\n            if (Array.isArray(arr)) {\n              for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n                arr2[i] = arr[i];\n              }\n              return arr2;\n            }\n          }\n\n          var lightingShader =\n            'precision highp float;\\nprecision highp int;\\n\\nuniform mat4 uViewMatrix;\\n\\nuniform bool uUseLighting;\\n\\nuniform int uAmbientLightCount;\\nuniform vec3 uAmbientColor[5];\\n\\nuniform int uDirectionalLightCount;\\nuniform vec3 uLightingDirection[5];\\nuniform vec3 uDirectionalDiffuseColors[5];\\nuniform vec3 uDirectionalSpecularColors[5];\\n\\nuniform int uPointLightCount;\\nuniform vec3 uPointLightLocation[5];\\nuniform vec3 uPointLightDiffuseColors[5];\\t\\nuniform vec3 uPointLightSpecularColors[5];\\n\\nuniform int uSpotLightCount;\\nuniform float uSpotLightAngle[5];\\nuniform float uSpotLightConc[5];\\nuniform vec3 uSpotLightDiffuseColors[5];\\nuniform vec3 uSpotLightSpecularColors[5];\\nuniform vec3 uSpotLightLocation[5];\\nuniform vec3 uSpotLightDirection[5];\\n\\nuniform bool uSpecular;\\nuniform float uShininess;\\n\\nuniform float uConstantAttenuation;\\nuniform float uLinearAttenuation;\\nuniform float uQuadraticAttenuation;\\n\\nconst float specularFactor = 2.0;\\nconst float diffuseFactor = 0.73;\\n\\nstruct LightResult {\\n  float specular;\\n  float diffuse;\\n};\\n\\nfloat _phongSpecular(\\n  vec3 lightDirection,\\n  vec3 viewDirection,\\n  vec3 surfaceNormal,\\n  float shininess) {\\n\\n  vec3 R = reflect(lightDirection, surfaceNormal);\\n  return pow(max(0.0, dot(R, viewDirection)), shininess);\\n}\\n\\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\\n  return max(0.0, dot(-lightDirection, surfaceNormal));\\n}\\n\\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\\n\\n  vec3 lightDir = normalize(lightVector);\\n\\n  //compute our diffuse & specular terms\\n  LightResult lr;\\n  if (uSpecular)\\n    lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\\n  lr.diffuse = _lambertDiffuse(lightDir, normal);\\n  return lr;\\n}\\n\\nvoid totalLight(\\n  vec3 modelPosition,\\n  vec3 normal,\\n  out vec3 totalDiffuse,\\n  out vec3 totalSpecular\\n) {\\n\\n  totalSpecular = vec3(0.0);\\n\\n  if (!uUseLighting) {\\n    totalDiffuse = vec3(1.0);\\n    return;\\n  }\\n\\n  totalDiffuse = vec3(0.0);\\n\\n  vec3 viewDirection = normalize(-modelPosition);\\n\\n  for (int j = 0; j < 5; j++) {\\n    if (j < uDirectionalLightCount) {\\n      vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\\n      vec3 lightColor = uDirectionalDiffuseColors[j];\\n      vec3 specularColor = uDirectionalSpecularColors[j];\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if (j < uPointLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      //calculate attenuation\\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n      vec3 lightColor = lightFalloff * uPointLightDiffuseColors[j];\\n      vec3 specularColor = lightFalloff * uPointLightSpecularColors[j];\\n\\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      totalDiffuse += result.diffuse * lightColor;\\n      totalSpecular += result.specular * lightColor * specularColor;\\n    }\\n\\n    if(j < uSpotLightCount) {\\n      vec3 lightPosition = (uViewMatrix * vec4(uSpotLightLocation[j], 1.0)).xyz;\\n      vec3 lightVector = modelPosition - lightPosition;\\n    \\n      float lightDistance = length(lightVector);\\n      float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\\n\\n      vec3 lightDirection = (uViewMatrix * vec4(uSpotLightDirection[j], 0.0)).xyz;\\n      float spotDot = dot(normalize(lightVector), normalize(lightDirection));\\n      float spotFalloff;\\n      if(spotDot < uSpotLightAngle[j]) {\\n        spotFalloff = 0.0;\\n      }\\n      else {\\n        spotFalloff = pow(spotDot, uSpotLightConc[j]);\\n      }\\n      lightFalloff *= spotFalloff;\\n\\n      vec3 lightColor = uSpotLightDiffuseColors[j];\\n      vec3 specularColor = uSpotLightSpecularColors[j];\\n     \\n      LightResult result = _light(viewDirection, normal, lightVector);\\n      \\n      totalDiffuse += result.diffuse * lightColor * lightFalloff;\\n      totalSpecular += result.specular * lightColor * specularColor * lightFalloff;\\n    }\\n  }\\n\\n  totalDiffuse *= diffuseFactor;\\n  totalSpecular *= specularFactor;\\n}\\n';\n\n          var defaultShaders = {\n            immediateVert:\n              'attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uResolution;\\nuniform float uPointSize;\\n\\nvarying vec4 vColor;\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n  gl_PointSize = uPointSize;\\n}\\n',\n\n            vertexColorVert:\n              'attribute vec3 aPosition;\\nattribute vec4 aVertexColor;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nvarying vec4 vColor;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vColor = aVertexColor;\\n}\\n',\n\n            vertexColorFrag:\n              'precision mediump float;\\nvarying vec4 vColor;\\nvoid main(void) {\\n  gl_FragColor = vColor;\\n}',\n\n            normalVert:\n              'attribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying vec3 vVertexNormal;\\nvarying highp vec2 vVertTexCoord;\\n\\nvoid main(void) {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\\n  vVertTexCoord = aTexCoord;\\n}\\n',\n            normalFrag:\n              'precision mediump float;\\nvarying vec3 vVertexNormal;\\nvoid main(void) {\\n  gl_FragColor = vec4(vVertexNormal, 1.0);\\n}',\n            basicFrag:\n              'precision mediump float;\\nuniform vec4 uMaterialColor;\\nvoid main(void) {\\n  gl_FragColor = uMaterialColor;\\n}',\n            lightVert:\n              lightingShader +\n              '// include lighting.glgl\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n  gl_Position = uProjectionMatrix * viewModelPosition;\\n\\n  vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\\n  vVertTexCoord = aTexCoord;\\n\\n  totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\\n\\n  for (int i = 0; i < 8; i++) {\\n    if (i < uAmbientLightCount) {\\n      vDiffuseColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n',\n\n            lightTextureFrag:\n              'precision highp float;\\n\\nuniform vec4 uMaterialColor;\\nuniform vec4 uTint;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying highp vec2 vVertTexCoord;\\nvarying vec3 vDiffuseColor;\\nvarying vec3 vSpecularColor;\\n\\nvoid main(void) {\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\\n  }\\n}',\n\n            phongVert:\n              'precision highp float;\\nprecision highp int;\\n\\nattribute vec3 aPosition;\\nattribute vec3 aNormal;\\nattribute vec2 aTexCoord;\\n\\nuniform vec3 uAmbientColor[5];\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform mat3 uNormalMatrix;\\nuniform int uAmbientLightCount;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\\n\\n  // Pass varyings to fragment shader\\n  vViewPosition = viewModelPosition.xyz;\\n  gl_Position = uProjectionMatrix * viewModelPosition;  \\n\\n  vNormal = uNormalMatrix * aNormal;\\n  vTexCoord = aTexCoord;\\n\\n  // TODO: this should be a uniform\\n  vAmbientColor = vec3(0.0);\\n  for (int i = 0; i < 5; i++) {\\n    if (i < uAmbientLightCount) {\\n      vAmbientColor += uAmbientColor[i];\\n    }\\n  }\\n}\\n',\n            phongFrag:\n              lightingShader +\n              '// include lighting.glsl\\nprecision highp float;\\nprecision highp int;\\n\\nuniform vec4 uMaterialColor;\\nuniform sampler2D uSampler;\\nuniform bool isTexture;\\nuniform bool uEmissive;\\n\\nvarying vec3 vNormal;\\nvarying vec2 vTexCoord;\\nvarying vec3 vViewPosition;\\nvarying vec3 vAmbientColor;\\n\\nvoid main(void) {\\n\\n  vec3 diffuse;\\n  vec3 specular;\\n  totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\\n\\n  if(uEmissive && !isTexture) {\\n    gl_FragColor = uMaterialColor;\\n  }\\n  else {\\n    gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\\n    gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\\n  }\\n}',\n\n            fontVert:\n              \"precision mediump float;\\n\\nattribute vec3 aPosition;\\nattribute vec2 aTexCoord;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\n\\nuniform vec4 uGlyphRect;\\nuniform float uGlyphOffset;\\n\\nvarying vec2 vTexCoord;\\nvarying float w;\\n\\nvoid main() {\\n  vec4 positionVec4 = vec4(aPosition, 1.0);\\n\\n  // scale by the size of the glyph's rectangle\\n  positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\\n\\n  // move to the corner of the glyph\\n  positionVec4.xy += uGlyphRect.xy;\\n\\n  // move to the letter's line offset\\n  positionVec4.x += uGlyphOffset;\\n  \\n  gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n  vTexCoord = aTexCoord;\\n  w = gl_Position.w;\\n}\\n\",\n            fontFrag:\n              \"#extension GL_OES_standard_derivatives : enable\\nprecision mediump float;\\n\\n#if 0\\n  // simulate integer math using floats\\n\\t#define int float\\n\\t#define ivec2 vec2\\n\\t#define INT(x) float(x)\\n\\n\\tint ifloor(float v) { return floor(v); }\\n\\tivec2 ifloor(vec2 v) { return floor(v); }\\n\\n#else\\n  // use native integer math\\n\\tprecision highp int;\\n\\t#define INT(x) x\\n\\n\\tint ifloor(float v) { return int(v); }\\n\\tint ifloor(int v) { return v; }\\n\\tivec2 ifloor(vec2 v) { return ivec2(v); }\\n\\n#endif\\n\\nuniform sampler2D uSamplerStrokes;\\nuniform sampler2D uSamplerRowStrokes;\\nuniform sampler2D uSamplerRows;\\nuniform sampler2D uSamplerColStrokes;\\nuniform sampler2D uSamplerCols;\\n\\nuniform ivec2 uStrokeImageSize;\\nuniform ivec2 uCellsImageSize;\\nuniform ivec2 uGridImageSize;\\n\\nuniform ivec2 uGridOffset;\\nuniform ivec2 uGridSize;\\nuniform vec4 uMaterialColor;\\n\\nvarying vec2 vTexCoord;\\n\\n// some helper functions\\nint round(float v) { return ifloor(v + 0.5); }\\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\\n\\nint mul(float v1, int v2) {\\n  return ifloor(v1 * float(v2));\\n}\\n\\nivec2 mul(vec2 v1, ivec2 v2) {\\n  return ifloor(v1 * vec2(v2) + 0.5);\\n}\\n\\n// unpack a 16-bit integer from a float vec2\\nint getInt16(vec2 v) {\\n  ivec2 iv = round(v * 255.0);\\n  return iv.x * INT(128) + iv.y;\\n}\\n\\nvec2 pixelScale;\\nvec2 coverage = vec2(0.0);\\nvec2 weight = vec2(0.5);\\nconst float minDistance = 1.0/8192.0;\\nconst float hardness = 1.05; // amount of antialias\\n\\n// the maximum number of curves in a glyph\\nconst int N = INT(250);\\n\\n// retrieves an indexed pixel from a sampler\\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\\n  int width = size.x;\\n  int y = ifloor(pos / width);\\n  int x = pos - y * width;  // pos % width\\n\\n  return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\\n}\\n\\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\\n\\n  // get the coefficients of the quadratic in t\\n  vec2 a = p0 - p1 * 2.0 + p2;\\n  vec2 b = p0 - p1;\\n  vec2 c = p0 - vTexCoord;\\n\\n  // found out which values of 't' it crosses the axes\\n  vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\\n  vec2 t1 = ((b - surd) / a).yx;\\n  vec2 t2 = ((b + surd) / a).yx;\\n\\n  // approximate straight lines to avoid rounding errors\\n  if (abs(a.y) < 0.001)\\n    t1.x = t2.x = c.y / (2.0 * b.y);\\n\\n  if (abs(a.x) < 0.001)\\n    t1.y = t2.y = c.x / (2.0 * b.x);\\n\\n  // plug into quadratic formula to find the corrdinates of the crossings\\n  C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\\n  C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\\n}\\n\\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  // determine on which side of the x-axis the points lie\\n  bool y0 = p0.y > vTexCoord.y;\\n  bool y1 = p1.y > vTexCoord.y;\\n  bool y2 = p2.y > vTexCoord.y;\\n\\n  // could web be under the curve (after t1)?\\n  if (y1 ? !y2 : y0) {\\n    // add the coverage for t1\\n    coverage.x += saturate(C1.x + 0.5);\\n    // calculate the anti-aliasing for t1\\n    weight.x = min(weight.x, abs(C1.x));\\n  }\\n\\n  // are we outside the curve (after t2)?\\n  if (y1 ? !y0 : y2) {\\n    // subtract the coverage for t2\\n    coverage.x -= saturate(C2.x + 0.5);\\n    // calculate the anti-aliasing for t2\\n    weight.x = min(weight.x, abs(C2.x));\\n  }\\n}\\n\\n// this is essentially the same as coverageX, but with the axes swapped\\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\\n\\n  vec2 C1, C2;\\n  calulateCrossings(p0, p1, p2, C1, C2);\\n\\n  bool x0 = p0.x > vTexCoord.x;\\n  bool x1 = p1.x > vTexCoord.x;\\n  bool x2 = p2.x > vTexCoord.x;\\n\\n  if (x1 ? !x2 : x0) {\\n    coverage.y -= saturate(C1.y + 0.5);\\n    weight.y = min(weight.y, abs(C1.y));\\n  }\\n\\n  if (x1 ? !x0 : x2) {\\n    coverage.y += saturate(C2.y + 0.5);\\n    weight.y = min(weight.y, abs(C2.y));\\n  }\\n}\\n\\nvoid main() {\\n\\n  // calculate the pixel scale based on screen-coordinates\\n  pixelScale = hardness / fwidth(vTexCoord);\\n\\n  // which grid cell is this pixel in?\\n  ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\\n\\n  // intersect curves in this row\\n  {\\n    // the index into the row info bitmap\\n    int rowIndex = gridCoord.y + uGridOffset.y;\\n    // fetch the info texel\\n    vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\\n    // unpack the rowInfo\\n    int rowStrokeIndex = getInt16(rowInfo.xy);\\n    int rowStrokeCount = getInt16(rowInfo.zw);\\n\\n    for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\\n      if (iRowStroke >= rowStrokeCount)\\n        break;\\n\\n      // each stroke is made up of 3 points: the start and control point\\n      // and the start of the next curve.\\n      // fetch the indices of this pair of strokes:\\n      vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\\n\\n      // unpack the stroke index\\n      int strokePos = getInt16(strokeIndices.xy);\\n\\n      // fetch the two strokes\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n\\n      // calculate the coverage\\n      coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  // intersect curves in this column\\n  {\\n    int colIndex = gridCoord.x + uGridOffset.x;\\n    vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\\n    int colStrokeIndex = getInt16(colInfo.xy);\\n    int colStrokeCount = getInt16(colInfo.zw);\\n    \\n    for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\\n      if (iColStroke >= colStrokeCount)\\n        break;\\n\\n      vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\\n\\n      int strokePos = getInt16(strokeIndices.xy);\\n      vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\\n      vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\\n      coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\\n    }\\n  }\\n\\n  weight = saturate(1.0 - weight * 2.0);\\n  float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\\n  float antialias = abs(dot(coverage, weight) / distance);\\n  float cover = min(abs(coverage.x), abs(coverage.y));\\n  gl_FragColor = uMaterialColor;\\n  gl_FragColor.a *= saturate(max(antialias, cover));\\n}\",\n            lineVert:\n              \"/*\\n  Part of the Processing project - http://processing.org\\n  Copyright (c) 2012-15 The Processing Foundation\\n  Copyright (c) 2004-12 Ben Fry and Casey Reas\\n  Copyright (c) 2001-04 Massachusetts Institute of Technology\\n  This library is free software; you can redistribute it and/or\\n  modify it under the terms of the GNU Lesser General Public\\n  License as published by the Free Software Foundation, version 2.1.\\n  This library is distributed in the hope that it will be useful,\\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\\n  Lesser General Public License for more details.\\n  You should have received a copy of the GNU Lesser General\\n  Public License along with this library; if not, write to the\\n  Free Software Foundation, Inc., 59 Temple Place, Suite 330,\\n  Boston, MA  02111-1307  USA\\n*/\\n\\n#define PROCESSING_LINE_SHADER\\n\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nuniform float uStrokeWeight;\\n\\nuniform vec4 uViewport;\\nuniform int uPerspective;\\n\\nattribute vec4 aPosition;\\nattribute vec4 aDirection;\\n  \\nvoid main() {\\n  // using a scale <1 moves the lines towards the camera\\n  // in order to prevent popping effects due to half of\\n  // the line disappearing behind the geometry faces.\\n  vec3 scale = vec3(0.9995);\\n\\n  vec4 posp = uModelViewMatrix * aPosition;\\n  vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\\n\\n  // Moving vertices slightly toward the camera\\n  // to avoid depth-fighting with the fill triangles.\\n  // Discussed here:\\n  // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848  \\n  posp.xyz = posp.xyz * scale;\\n  posq.xyz = posq.xyz * scale;\\n\\n  vec4 p = uProjectionMatrix * posp;\\n  vec4 q = uProjectionMatrix * posq;\\n\\n  // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\\n  // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\\n\\n  // prevent division by W by transforming the tangent formula (div by 0 causes\\n  // the line to disappear, see https://github.com/processing/processing/issues/5183)\\n  // t = screen_q - screen_p\\n  //\\n  // tangent is normalized and we don't care which aDirection it points to (+-)\\n  // t = +- normalize( screen_q - screen_p )\\n  // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\\n  //\\n  // extract common factor, <1,1> - <1,1> cancels out\\n  // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\\n  //\\n  // convert to common divisor\\n  // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\\n  //\\n  // remove the common scalar divisor/factor, not needed due to normalize and +-\\n  // (keep uViewport - can't remove because it has different components for x and y\\n  //  and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\\n  // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\\n\\n  vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\\n\\n  // flip tangent to normal (it's already normalized)\\n  vec2 normal = vec2(-tangent.y, tangent.x);\\n\\n  float thickness = aDirection.w * uStrokeWeight;\\n  vec2 offset = normal * thickness / 2.0;\\n\\n  vec2 curPerspScale;\\n\\n  if(uPerspective == 1) {\\n    // Perspective ---\\n    // convert from world to clip by multiplying with projection scaling factor\\n    // to get the right thickness (see https://github.com/processing/processing/issues/5182)\\n    // invert Y, projections in Processing invert Y\\n    curPerspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\\n  } else {\\n    // No Perspective ---\\n    // multiply by W (to cancel out division by W later in the pipeline) and\\n    // convert from screen to clip (derived from clip to screen above)\\n    curPerspScale = p.w / (0.5 * uViewport.zw);\\n  }\\n\\n  gl_Position.xy = p.xy + offset.xy * curPerspScale;\\n  gl_Position.zw = p.zw;\\n}\\n\",\n            lineFrag:\n              'precision mediump float;\\nprecision mediump int;\\n\\nuniform vec4 uMaterialColor;\\n\\nvoid main() {\\n  gl_FragColor = uMaterialColor;\\n}',\n            pointVert:\n              'attribute vec3 aPosition;\\nuniform float uPointSize;\\nvarying float vStrokeWeight;\\nuniform mat4 uModelViewMatrix;\\nuniform mat4 uProjectionMatrix;\\nvoid main() {\\n\\tvec4 positionVec4 =  vec4(aPosition, 1.0);\\n\\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\\n\\tgl_PointSize = uPointSize;\\n\\tvStrokeWeight = uPointSize;\\n}',\n            pointFrag:\n              'precision mediump float;\\nprecision mediump int;\\nuniform vec4 uMaterialColor;\\nvarying float vStrokeWeight;\\n\\nvoid main(){\\n\\tfloat mask = 0.0;\\n\\n\\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\\n    // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\\n\\n\\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\\n\\n\\t// if strokeWeight is 1 or less lets just draw a square\\n\\t// this prevents weird artifacting from carving circles when our points are really small\\n\\t// if strokeWeight is larger than 1, we just use it as is\\n\\n\\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\\n\\n\\t// throw away the borders of the mask\\n    // otherwise we get weird alpha blending issues\\n\\n\\tif(mask > 0.98){\\n      discard;\\n  \\t}\\n\\n  \\tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\\n}'\n          };\n\n          /**\n           * 3D graphics class\n           * @private\n           * @class p5.RendererGL\n           * @constructor\n           * @extends p5.Renderer\n           * @todo extend class to include public method for offscreen\n           * rendering (FBO).\n           *\n           */\n          _main.default.RendererGL = function(elt, pInst, isMainCanvas, attr) {\n            _main.default.Renderer.call(this, elt, pInst, isMainCanvas);\n            this._setAttributeDefaults(pInst);\n            this._initContext();\n            this.isP3D = true; //lets us know we're in 3d mode\n\n            // This redundant property is useful in reminding you that you are\n            // interacting with WebGLRenderingContext, still worth considering future removal\n            this.GL = this.drawingContext;\n\n            // erasing\n            this._isErasing = false;\n\n            // lights\n            this._enableLighting = false;\n\n            this.ambientLightColors = [];\n            this.specularColors = [1, 1, 1];\n\n            this.directionalLightDirections = [];\n            this.directionalLightDiffuseColors = [];\n            this.directionalLightSpecularColors = [];\n\n            this.pointLightPositions = [];\n            this.pointLightDiffuseColors = [];\n            this.pointLightSpecularColors = [];\n\n            this.spotLightPositions = [];\n            this.spotLightDirections = [];\n            this.spotLightDiffuseColors = [];\n            this.spotLightSpecularColors = [];\n            this.spotLightAngle = [];\n            this.spotLightConc = [];\n\n            this.drawMode = constants.FILL;\n\n            this.curFillColor = this._cachedFillStyle = [1, 1, 1, 1];\n            this.curStrokeColor = this._cachedStrokeStyle = [0, 0, 0, 1];\n\n            this.curBlendMode = constants.BLEND;\n            this._cachedBlendMode = undefined;\n            this.blendExt = this.GL.getExtension('EXT_blend_minmax');\n            this._isBlending = false;\n\n            this._useSpecularMaterial = false;\n            this._useEmissiveMaterial = false;\n            this._useNormalMaterial = false;\n            this._useShininess = 1;\n\n            this._tint = [255, 255, 255, 255];\n\n            // lightFalloff variables\n            this.constantAttenuation = 1;\n            this.linearAttenuation = 0;\n            this.quadraticAttenuation = 0;\n\n            /**\n             * model view, projection, & normal\n             * matrices\n             */\n            this.uMVMatrix = new _main.default.Matrix();\n            this.uPMatrix = new _main.default.Matrix();\n            this.uNMatrix = new _main.default.Matrix('mat3');\n\n            // Camera\n            this._curCamera = new _main.default.Camera(this);\n            this._curCamera._computeCameraDefaultSettings();\n            this._curCamera._setDefaultCamera();\n\n            this._defaultLightShader = undefined;\n            this._defaultImmediateModeShader = undefined;\n            this._defaultNormalShader = undefined;\n            this._defaultColorShader = undefined;\n            this._defaultPointShader = undefined;\n\n            this.userFillShader = undefined;\n            this.userStrokeShader = undefined;\n            this.userPointShader = undefined;\n\n            // Default drawing is done in Retained Mode\n            // Geometry and Material hashes stored here\n            this.retainedMode = {\n              geometry: {},\n              buffers: {\n                // prettier-ignore\n                stroke: [\n      new _main.default.RenderBuffer(3, 'lineVertices', 'lineVertexBuffer', 'aPosition', this, this._flatten),\n      new _main.default.RenderBuffer(4, 'lineNormals', 'lineNormalBuffer', 'aDirection', this, this._flatten)],\n\n                // prettier-ignore\n                fill: [\n      new _main.default.RenderBuffer(3, 'vertices', 'vertexBuffer', 'aPosition', this, this._vToNArray),\n      new _main.default.RenderBuffer(3, 'vertexNormals', 'normalBuffer', 'aNormal', this, this._vToNArray),\n      new _main.default.RenderBuffer(4, 'vertexColors', 'colorBuffer', 'aMaterialColor', this),\n      new _main.default.RenderBuffer(3, 'vertexAmbients', 'ambientBuffer', 'aAmbientColor', this),\n      //new BufferDef(3, 'vertexSpeculars', 'specularBuffer', 'aSpecularColor'),\n      new _main.default.RenderBuffer(2, 'uvs', 'uvBuffer', 'aTexCoord', this, this._flatten)],\n\n                // prettier-ignore\n                text: [\n      new _main.default.RenderBuffer(3, 'vertices', 'vertexBuffer', 'aPosition', this, this._vToNArray),\n      new _main.default.RenderBuffer(2, 'uvs', 'uvBuffer', 'aTexCoord', this, this._flatten)]\n              }\n            };\n\n            // Imediate Mode\n            // Geometry and Material hashes stored here\n            this.immediateMode = {\n              geometry: new _main.default.Geometry(),\n              shapeMode: constants.TRIANGLE_FAN,\n              _bezierVertex: [],\n              _quadraticVertex: [],\n              _curveVertex: [],\n              buffers: {\n                // prettier-ignore\n                fill: [\n      new _main.default.RenderBuffer(3, 'vertices', 'vertexBuffer', 'aPosition', this, this._vToNArray),\n      new _main.default.RenderBuffer(3, 'vertexNormals', 'normalBuffer', 'aNormal', this, this._vToNArray),\n      new _main.default.RenderBuffer(4, 'vertexColors', 'colorBuffer', 'aVertexColor', this),\n      new _main.default.RenderBuffer(3, 'vertexAmbients', 'ambientBuffer', 'aAmbientColor', this),\n      new _main.default.RenderBuffer(2, 'uvs', 'uvBuffer', 'aTexCoord', this, this._flatten)],\n\n                // prettier-ignore\n                stroke: [\n      new _main.default.RenderBuffer(3, 'lineVertices', 'lineVertexBuffer', 'aPosition', this, this._flatten),\n      new _main.default.RenderBuffer(4, 'lineNormals', 'lineNormalBuffer', 'aDirection', this, this._flatten)],\n\n                point: this.GL.createBuffer()\n              }\n            };\n\n            this.pointSize = 5.0; //default point size\n            this.curStrokeWeight = 1;\n\n            // array of textures created in this gl context via this.getTexture(src)\n            this.textures = [];\n\n            this.textureMode = constants.IMAGE;\n            // default wrap settings\n            this.textureWrapX = constants.CLAMP;\n            this.textureWrapY = constants.CLAMP;\n            this._tex = null;\n            this._curveTightness = 6;\n\n            // lookUpTable for coefficients needed to be calculated for bezierVertex, same are used for curveVertex\n            this._lookUpTableBezier = [];\n            // lookUpTable for coefficients needed to be calculated for quadraticVertex\n            this._lookUpTableQuadratic = [];\n\n            // current curveDetail in the Bezier lookUpTable\n            this._lutBezierDetail = 0;\n            // current curveDetail in the Quadratic lookUpTable\n            this._lutQuadraticDetail = 0;\n\n            this._tessy = this._initTessy();\n\n            this.fontInfos = {};\n\n            this._curShader = undefined;\n\n            return this;\n          };\n\n          _main.default.RendererGL.prototype = Object.create(\n            _main.default.Renderer.prototype\n          );\n\n          //////////////////////////////////////////////\n          // Setting\n          //////////////////////////////////////////////\n\n          _main.default.RendererGL.prototype._setAttributeDefaults = function(pInst) {\n            // See issue #3850, safer to enable AA in Safari\n            var applyAA = navigator.userAgent.toLowerCase().includes('safari');\n            var defaults = {\n              alpha: true,\n              depth: true,\n              stencil: true,\n              antialias: applyAA,\n              premultipliedAlpha: false,\n              preserveDrawingBuffer: true,\n              perPixelLighting: true\n            };\n\n            if (pInst._glAttributes === null) {\n              pInst._glAttributes = defaults;\n            } else {\n              pInst._glAttributes = Object.assign(defaults, pInst._glAttributes);\n            }\n            return;\n          };\n\n          _main.default.RendererGL.prototype._initContext = function() {\n            try {\n              this.drawingContext =\n                this.canvas.getContext('webgl', this._pInst._glAttributes) ||\n                this.canvas.getContext('experimental-webgl', this._pInst._glAttributes);\n              if (this.drawingContext === null) {\n                throw new Error('Error creating webgl context');\n              } else {\n                var gl = this.drawingContext;\n                gl.enable(gl.DEPTH_TEST);\n                gl.depthFunc(gl.LEQUAL);\n                gl.viewport(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight);\n                this._viewport = this.drawingContext.getParameter(\n                  this.drawingContext.VIEWPORT\n                );\n              }\n            } catch (er) {\n              throw er;\n            }\n          };\n\n          //This is helper function to reset the context anytime the attributes\n          //are changed with setAttributes()\n\n          _main.default.RendererGL.prototype._resetContext = function(options, callback) {\n            var w = this.width;\n            var h = this.height;\n            var defaultId = this.canvas.id;\n            var isPGraphics = this._pInst instanceof _main.default.Graphics;\n\n            if (isPGraphics) {\n              var pg = this._pInst;\n              pg.canvas.parentNode.removeChild(pg.canvas);\n              pg.canvas = document.createElement('canvas');\n              var node = pg._pInst._userNode || document.body;\n              node.appendChild(pg.canvas);\n              _main.default.Element.call(pg, pg.canvas, pg._pInst);\n              pg.width = w;\n              pg.height = h;\n            } else {\n              var c = this.canvas;\n              if (c) {\n                c.parentNode.removeChild(c);\n              }\n              c = document.createElement('canvas');\n              c.id = defaultId;\n              if (this._pInst._userNode) {\n                this._pInst._userNode.appendChild(c);\n              } else {\n                document.body.appendChild(c);\n              }\n              this._pInst.canvas = c;\n            }\n\n            var renderer = new _main.default.RendererGL(\n              this._pInst.canvas,\n              this._pInst,\n              !isPGraphics\n            );\n\n            this._pInst._setProperty('_renderer', renderer);\n            renderer.resize(w, h);\n            renderer._applyDefaults();\n\n            if (!isPGraphics) {\n              this._pInst._elements.push(renderer);\n            }\n\n            if (typeof callback === 'function') {\n              //setTimeout with 0 forces the task to the back of the queue, this ensures that\n              //we finish switching out the renderer\n              setTimeout(function() {\n                callback.apply(window._renderer, options);\n              }, 0);\n            }\n          };\n          /**\n           * @module Rendering\n           * @submodule Rendering\n           * @for p5\n           */\n          /**\n           * Set attributes for the WebGL Drawing context.\n           * This is a way of adjusting how the WebGL\n           * renderer works to fine-tune the display and performance.\n           * <br><br>\n           * Note that this will reinitialize the drawing context\n           * if called after the WebGL canvas is made.\n           * <br><br>\n           * If an object is passed as the parameter, all attributes\n           * not declared in the object will be set to defaults.\n           * <br><br>\n           * The available attributes are:\n           * <br>\n           * alpha - indicates if the canvas contains an alpha buffer\n           * default is true\n           * <br><br>\n           * depth - indicates whether the drawing buffer has a depth buffer\n           * of at least 16 bits - default is true\n           * <br><br>\n           * stencil - indicates whether the drawing buffer has a stencil buffer\n           * of at least 8 bits\n           * <br><br>\n           * antialias - indicates whether or not to perform anti-aliasing\n           * default is false (true in Safari)\n           * <br><br>\n           * premultipliedAlpha - indicates that the page compositor will assume\n           * the drawing buffer contains colors with pre-multiplied alpha\n           * default is false\n           * <br><br>\n           * preserveDrawingBuffer - if true the buffers will not be cleared and\n           * and will preserve their values until cleared or overwritten by author\n           * (note that p5 clears automatically on draw loop)\n           * default is true\n           * <br><br>\n           * perPixelLighting - if true, per-pixel lighting will be used in the\n           * lighting shader otherwise per-vertex lighting is used.\n           * default is true.\n           * <br><br>\n           * @method setAttributes\n           * @for p5\n           * @param  {String}  key Name of attribute\n           * @param  {Boolean}        value New value of named attribute\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(255);\n           *   push();\n           *   rotateZ(frameCount * 0.02);\n           *   rotateX(frameCount * 0.02);\n           *   rotateY(frameCount * 0.02);\n           *   fill(0, 0, 0);\n           *   box(50);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           * <br>\n           * Now with the antialias attribute set to true.\n           * <br>\n           * <div>\n           * <code>\n           * function setup() {\n           *   setAttributes('antialias', true);\n           *   createCanvas(100, 100, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(255);\n           *   push();\n           *   rotateZ(frameCount * 0.02);\n           *   rotateX(frameCount * 0.02);\n           *   rotateY(frameCount * 0.02);\n           *   fill(0, 0, 0);\n           *   box(50);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           *\n           * <div>\n           * <code>\n           * // press the mouse button to disable perPixelLighting\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   noStroke();\n           *   fill(255);\n           * }\n           *\n           * let lights = [\n           *   { c: '#f00', t: 1.12, p: 1.91, r: 0.2 },\n           *   { c: '#0f0', t: 1.21, p: 1.31, r: 0.2 },\n           *   { c: '#00f', t: 1.37, p: 1.57, r: 0.2 },\n           *   { c: '#ff0', t: 1.12, p: 1.91, r: 0.7 },\n           *   { c: '#0ff', t: 1.21, p: 1.31, r: 0.7 },\n           *   { c: '#f0f', t: 1.37, p: 1.57, r: 0.7 }\n           * ];\n           *\n           * function draw() {\n           *   let t = millis() / 1000 + 1000;\n           *   background(0);\n           *   directionalLight(color('#222'), 1, 1, 1);\n           *\n           *   for (let i = 0; i < lights.length; i++) {\n           *     let light = lights[i];\n           *     pointLight(\n           *       color(light.c),\n           *       p5.Vector.fromAngles(t * light.t, t * light.p, width * light.r)\n           *     );\n           *   }\n           *\n           *   specularMaterial(255);\n           *   sphere(width * 0.1);\n           *\n           *   rotateX(t * 0.77);\n           *   rotateY(t * 0.83);\n           *   rotateZ(t * 0.91);\n           *   torus(width * 0.3, width * 0.07, 24, 10);\n           * }\n           *\n           * function mousePressed() {\n           *   setAttributes('perPixelLighting', false);\n           *   noStroke();\n           *   fill(255);\n           * }\n           * function mouseReleased() {\n           *   setAttributes('perPixelLighting', true);\n           *   noStroke();\n           *   fill(255);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt a rotating cube with smoother edges\n           */\n          /**\n           * @method setAttributes\n           * @for p5\n           * @param  {Object}  obj object with key-value pairs\n           */\n\n          _main.default.prototype.setAttributes = function(key, value) {\n            if (typeof this._glAttributes === 'undefined') {\n              console.log(\n                'You are trying to use setAttributes on a p5.Graphics object ' +\n                  'that does not use a WEBGL renderer.'\n              );\n\n              return;\n            }\n            var unchanged = true;\n            if (typeof value !== 'undefined') {\n              //first time modifying the attributes\n              if (this._glAttributes === null) {\n                this._glAttributes = {};\n              }\n              if (this._glAttributes[key] !== value) {\n                //changing value of previously altered attribute\n                this._glAttributes[key] = value;\n                unchanged = false;\n              }\n              //setting all attributes with some change\n            } else if (key instanceof Object) {\n              if (this._glAttributes !== key) {\n                this._glAttributes = key;\n                unchanged = false;\n              }\n            }\n            //@todo_FES\n            if (!this._renderer.isP3D || unchanged) {\n              return;\n            }\n\n            if (!this._setupDone) {\n              for (var x in this._renderer.retainedMode.geometry) {\n                if (this._renderer.retainedMode.geometry.hasOwnProperty(x)) {\n                  console.error(\n                    'Sorry, Could not set the attributes, you need to call setAttributes() ' +\n                      'before calling the other drawing methods in setup()'\n                  );\n\n                  return;\n                }\n              }\n            }\n\n            this.push();\n            this._renderer._resetContext();\n            this.pop();\n\n            if (this._renderer._curCamera) {\n              this._renderer._curCamera._renderer = this._renderer;\n            }\n          };\n\n          /**\n           * @class p5.RendererGL\n           */\n\n          _main.default.RendererGL.prototype._update = function() {\n            // reset model view and apply initial camera transform\n            // (containing only look at info; no projection).\n            this.uMVMatrix.set(\n              this._curCamera.cameraMatrix.mat4[0],\n              this._curCamera.cameraMatrix.mat4[1],\n              this._curCamera.cameraMatrix.mat4[2],\n              this._curCamera.cameraMatrix.mat4[3],\n              this._curCamera.cameraMatrix.mat4[4],\n              this._curCamera.cameraMatrix.mat4[5],\n              this._curCamera.cameraMatrix.mat4[6],\n              this._curCamera.cameraMatrix.mat4[7],\n              this._curCamera.cameraMatrix.mat4[8],\n              this._curCamera.cameraMatrix.mat4[9],\n              this._curCamera.cameraMatrix.mat4[10],\n              this._curCamera.cameraMatrix.mat4[11],\n              this._curCamera.cameraMatrix.mat4[12],\n              this._curCamera.cameraMatrix.mat4[13],\n              this._curCamera.cameraMatrix.mat4[14],\n              this._curCamera.cameraMatrix.mat4[15]\n            );\n\n            // reset light data for new frame.\n\n            this.ambientLightColors.length = 0;\n            this.specularColors = [1, 1, 1];\n\n            this.directionalLightDirections.length = 0;\n            this.directionalLightDiffuseColors.length = 0;\n            this.directionalLightSpecularColors.length = 0;\n\n            this.pointLightPositions.length = 0;\n            this.pointLightDiffuseColors.length = 0;\n            this.pointLightSpecularColors.length = 0;\n\n            this.spotLightPositions.length = 0;\n            this.spotLightDirections.length = 0;\n            this.spotLightDiffuseColors.length = 0;\n            this.spotLightSpecularColors.length = 0;\n            this.spotLightAngle.length = 0;\n            this.spotLightConc.length = 0;\n\n            this._enableLighting = false;\n\n            //reset tint value for new frame\n            this._tint = [255, 255, 255, 255];\n\n            //Clear depth every frame\n            this.GL.clear(this.GL.DEPTH_BUFFER_BIT);\n          };\n\n          /**\n           * [background description]\n           */\n          _main.default.RendererGL.prototype.background = function() {\n            var _this$_pInst;\n            var _col = (_this$_pInst = this._pInst).color.apply(_this$_pInst, arguments);\n            var _r = _col.levels[0] / 255;\n            var _g = _col.levels[1] / 255;\n            var _b = _col.levels[2] / 255;\n            var _a = _col.levels[3] / 255;\n            this.GL.clearColor(_r, _g, _b, _a);\n\n            this.GL.clear(this.GL.COLOR_BUFFER_BIT);\n          };\n\n          //////////////////////////////////////////////\n          // COLOR\n          //////////////////////////////////////////////\n          /**\n           * Basic fill material for geometry with a given color\n           * @method  fill\n           * @class p5.RendererGL\n           * @param  {Number|Number[]|String|p5.Color} v1  gray value,\n           * red or hue value (depending on the current color mode),\n           * or color Array, or CSS color string\n           * @param  {Number}            [v2] green or saturation value\n           * @param  {Number}            [v3] blue or brightness value\n           * @param  {Number}            [a]  opacity\n           * @chainable\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(200, 200, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(0);\n           *   noStroke();\n           *   fill(100, 100, 240);\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   box(75, 75, 75);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black canvas with purple cube spinning\n           *\n           */\n          _main.default.RendererGL.prototype.fill = function(v1, v2, v3, a) {\n            //see material.js for more info on color blending in webgl\n            var color = _main.default.prototype.color.apply(this._pInst, arguments);\n            this.curFillColor = color._array;\n            this.drawMode = constants.FILL;\n            this._useNormalMaterial = false;\n            this._tex = null;\n          };\n\n          /**\n           * Basic stroke material for geometry with a given color\n           * @method  stroke\n           * @param  {Number|Number[]|String|p5.Color} v1  gray value,\n           * red or hue value (depending on the current color mode),\n           * or color Array, or CSS color string\n           * @param  {Number}            [v2] green or saturation value\n           * @param  {Number}            [v3] blue or brightness value\n           * @param  {Number}            [a]  opacity\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(200, 200, WEBGL);\n           * }\n           *\n           * function draw() {\n           *   background(0);\n           *   stroke(240, 150, 150);\n           *   fill(100, 100, 240);\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   box(75, 75, 75);\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black canvas with purple cube with pink outline spinning\n           *\n           */\n          _main.default.RendererGL.prototype.stroke = function(r, g, b, a) {\n            //@todo allow transparency in stroking currently doesn't have\n            //any impact and causes problems with specularMaterial\n            arguments[3] = 255;\n            var color = _main.default.prototype.color.apply(this._pInst, arguments);\n            this.curStrokeColor = color._array;\n          };\n\n          _main.default.RendererGL.prototype.strokeCap = function(cap) {\n            // @TODO : to be implemented\n            console.error('Sorry, strokeCap() is not yet implemented in WEBGL mode');\n          };\n\n          _main.default.RendererGL.prototype.strokeJoin = function(join) {\n            // @TODO : to be implemented\n            // https://processing.org/reference/strokeJoin_.html\n            console.error('Sorry, strokeJoin() is not yet implemented in WEBGL mode');\n          };\n\n          _main.default.RendererGL.prototype.filter = function(filterType) {\n            // filter can be achieved using custom shaders.\n            // https://github.com/aferriss/p5jsShaderExamples\n            // https://itp-xstory.github.io/p5js-shaders/#/\n            console.error('filter() does not work in WEBGL mode');\n          };\n\n          _main.default.RendererGL.prototype.blendMode = function(mode) {\n            if (\n              mode === constants.DARKEST ||\n              mode === constants.LIGHTEST ||\n              mode === constants.ADD ||\n              mode === constants.BLEND ||\n              mode === constants.SUBTRACT ||\n              mode === constants.SCREEN ||\n              mode === constants.EXCLUSION ||\n              mode === constants.REPLACE ||\n              mode === constants.MULTIPLY ||\n              mode === constants.REMOVE\n            )\n              this.curBlendMode = mode;\n            else if (\n              mode === constants.BURN ||\n              mode === constants.OVERLAY ||\n              mode === constants.HARD_LIGHT ||\n              mode === constants.SOFT_LIGHT ||\n              mode === constants.DODGE\n            ) {\n              console.warn(\n                'BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.'\n              );\n            }\n          };\n\n          _main.default.RendererGL.prototype.erase = function(opacityFill, opacityStroke) {\n            if (!this._isErasing) {\n              this._cachedBlendMode = this.curBlendMode;\n              this.blendMode(constants.REMOVE);\n\n              this._cachedFillStyle = this.curFillColor.slice();\n              this.curFillColor = [1, 1, 1, opacityFill / 255];\n\n              this._cachedStrokeStyle = this.curStrokeColor.slice();\n              this.curStrokeColor = [1, 1, 1, opacityStroke / 255];\n\n              this._isErasing = true;\n            }\n          };\n\n          _main.default.RendererGL.prototype.noErase = function() {\n            if (this._isErasing) {\n              this.curFillColor = this._cachedFillStyle.slice();\n              this.curStrokeColor = this._cachedStrokeStyle.slice();\n\n              this.blendMode(this._cachedBlendMode);\n              this._isErasing = false;\n            }\n          };\n\n          /**\n           * Change weight of stroke\n           * @method  strokeWeight\n           * @param  {Number} stroke weight to be used for drawing\n           * @example\n           * <div>\n           * <code>\n           * function setup() {\n           *   createCanvas(200, 400, WEBGL);\n           *   setAttributes('antialias', true);\n           * }\n           *\n           * function draw() {\n           *   background(0);\n           *   noStroke();\n           *   translate(0, -100, 0);\n           *   stroke(240, 150, 150);\n           *   fill(100, 100, 240);\n           *   push();\n           *   strokeWeight(8);\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   sphere(75);\n           *   pop();\n           *   push();\n           *   translate(0, 200, 0);\n           *   strokeWeight(1);\n           *   rotateX(frameCount * 0.01);\n           *   rotateY(frameCount * 0.01);\n           *   sphere(75);\n           *   pop();\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * black canvas with two purple rotating spheres with pink\n           * outlines the sphere on top has much heavier outlines,\n           *\n           */\n          _main.default.RendererGL.prototype.strokeWeight = function(w) {\n            if (this.curStrokeWeight !== w) {\n              this.pointSize = w;\n              this.curStrokeWeight = w;\n            }\n          };\n\n          // x,y are canvas-relative (pre-scaled by _pixelDensity)\n          _main.default.RendererGL.prototype._getPixel = function(x, y) {\n            var imageData, index;\n            imageData = new Uint8Array(4);\n            // prettier-ignore\n            this.drawingContext.readPixels(\n  x, y, 1, 1,\n  this.drawingContext.RGBA, this.drawingContext.UNSIGNED_BYTE,\n  imageData);\n\n            index = 0;\n            return [\n              imageData[index + 0],\n              imageData[index + 1],\n              imageData[index + 2],\n              imageData[index + 3]\n            ];\n          };\n\n          /**\n           * Loads the pixels data for this canvas into the pixels[] attribute.\n           * Note that updatePixels() and set() do not work.\n           * Any pixel manipulation must be done directly to the pixels[] array.\n           *\n           * @private\n           * @method loadPixels\n           *\n           */\n\n          _main.default.RendererGL.prototype.loadPixels = function() {\n            var pixelsState = this._pixelsState;\n\n            //@todo_FES\n            if (this._pInst._glAttributes.preserveDrawingBuffer !== true) {\n              console.log(\n                'loadPixels only works in WebGL when preserveDrawingBuffer ' + 'is true.'\n              );\n\n              return;\n            }\n\n            //if there isn't a renderer-level temporary pixels buffer\n            //make a new one\n            var pixels = pixelsState.pixels;\n            var len = this.GL.drawingBufferWidth * this.GL.drawingBufferHeight * 4;\n            if (!(pixels instanceof Uint8Array) || pixels.length !== len) {\n              pixels = new Uint8Array(len);\n              this._pixelsState._setProperty('pixels', pixels);\n            }\n\n            var pd = this._pInst._pixelDensity;\n            // prettier-ignore\n            this.GL.readPixels(\n  0, 0, this.width * pd, this.height * pd,\n  this.GL.RGBA, this.GL.UNSIGNED_BYTE,\n  pixels);\n          };\n\n          //////////////////////////////////////////////\n          // HASH | for geometry\n          //////////////////////////////////////////////\n\n          _main.default.RendererGL.prototype.geometryInHash = function(gId) {\n            return this.retainedMode.geometry[gId] !== undefined;\n          };\n\n          /**\n           * [resize description]\n           * @private\n           * @param  {Number} w [description]\n           * @param  {Number} h [description]\n           */\n          _main.default.RendererGL.prototype.resize = function(w, h) {\n            _main.default.Renderer.prototype.resize.call(this, w, h);\n            this.GL.viewport(0, 0, this.GL.drawingBufferWidth, this.GL.drawingBufferHeight);\n\n            this._viewport = this.GL.getParameter(this.GL.VIEWPORT);\n\n            this._curCamera._resize();\n\n            //resize pixels buffer\n            var pixelsState = this._pixelsState;\n            if (typeof pixelsState.pixels !== 'undefined') {\n              pixelsState._setProperty(\n                'pixels',\n                new Uint8Array(this.GL.drawingBufferWidth * this.GL.drawingBufferHeight * 4)\n              );\n            }\n          };\n\n          /**\n           * clears color and depth buffers\n           * with r,g,b,a\n           * @private\n           * @param {Number} r normalized red val.\n           * @param {Number} g normalized green val.\n           * @param {Number} b normalized blue val.\n           * @param {Number} a normalized alpha val.\n           */\n          _main.default.RendererGL.prototype.clear = function() {\n            var _r = (arguments.length <= 0 ? undefined : arguments[0]) || 0;\n            var _g = (arguments.length <= 1 ? undefined : arguments[1]) || 0;\n            var _b = (arguments.length <= 2 ? undefined : arguments[2]) || 0;\n            var _a = (arguments.length <= 3 ? undefined : arguments[3]) || 0;\n            this.GL.clearColor(_r, _g, _b, _a);\n            this.GL.clear(this.GL.COLOR_BUFFER_BIT | this.GL.DEPTH_BUFFER_BIT);\n          };\n\n          _main.default.RendererGL.prototype.applyMatrix = function(a, b, c, d, e, f) {\n            if (arguments.length === 16) {\n              _main.default.Matrix.prototype.apply.apply(this.uMVMatrix, arguments);\n            } else {\n              // prettier-ignore\n              this.uMVMatrix.apply([\n    a, b, 0, 0,\n    c, d, 0, 0,\n    0, 0, 1, 0,\n    e, f, 0, 1]);\n            }\n          };\n\n          /**\n           * [translate description]\n           * @private\n           * @param  {Number} x [description]\n           * @param  {Number} y [description]\n           * @param  {Number} z [description]\n           * @chainable\n           * @todo implement handle for components or vector as args\n           */\n          _main.default.RendererGL.prototype.translate = function(x, y, z) {\n            if (x instanceof _main.default.Vector) {\n              z = x.z;\n              y = x.y;\n              x = x.x;\n            }\n            this.uMVMatrix.translate([x, y, z]);\n            return this;\n          };\n\n          /**\n           * Scales the Model View Matrix by a vector\n           * @private\n           * @param  {Number | p5.Vector | Array} x [description]\n           * @param  {Number} [y] y-axis scalar\n           * @param  {Number} [z] z-axis scalar\n           * @chainable\n           */\n          _main.default.RendererGL.prototype.scale = function(x, y, z) {\n            this.uMVMatrix.scale(x, y, z);\n            return this;\n          };\n\n          _main.default.RendererGL.prototype.rotate = function(rad, axis) {\n            if (typeof axis === 'undefined') {\n              return this.rotateZ(rad);\n            }\n            _main.default.Matrix.prototype.rotate.apply(this.uMVMatrix, arguments);\n            return this;\n          };\n\n          _main.default.RendererGL.prototype.rotateX = function(rad) {\n            this.rotate(rad, 1, 0, 0);\n            return this;\n          };\n\n          _main.default.RendererGL.prototype.rotateY = function(rad) {\n            this.rotate(rad, 0, 1, 0);\n            return this;\n          };\n\n          _main.default.RendererGL.prototype.rotateZ = function(rad) {\n            this.rotate(rad, 0, 0, 1);\n            return this;\n          };\n\n          _main.default.RendererGL.prototype.push = function() {\n            // get the base renderer style\n            var style = _main.default.Renderer.prototype.push.apply(this);\n\n            // add webgl-specific style properties\n            var properties = style.properties;\n\n            properties.uMVMatrix = this.uMVMatrix.copy();\n            properties.uPMatrix = this.uPMatrix.copy();\n            properties._curCamera = this._curCamera;\n\n            // make a copy of the current camera for the push state\n            // this preserves any references stored using 'createCamera'\n            this._curCamera = this._curCamera.copy();\n\n            properties.ambientLightColors = this.ambientLightColors.slice();\n            properties.specularColors = this.specularColors.slice();\n\n            properties.directionalLightDirections = this.directionalLightDirections.slice();\n            properties.directionalLightDiffuseColors = this.directionalLightDiffuseColors.slice();\n            properties.directionalLightSpecularColors = this.directionalLightSpecularColors.slice();\n\n            properties.pointLightPositions = this.pointLightPositions.slice();\n            properties.pointLightDiffuseColors = this.pointLightDiffuseColors.slice();\n            properties.pointLightSpecularColors = this.pointLightSpecularColors.slice();\n\n            properties.spotLightPositions = this.spotLightPositions.slice();\n            properties.spotLightDirections = this.spotLightDirections.slice();\n            properties.spotLightDiffuseColors = this.spotLightDiffuseColors.slice();\n            properties.spotLightSpecularColors = this.spotLightSpecularColors.slice();\n            properties.spotLightAngle = this.spotLightAngle.slice();\n            properties.spotLightConc = this.spotLightConc.slice();\n\n            properties.userFillShader = this.userFillShader;\n            properties.userStrokeShader = this.userStrokeShader;\n            properties.userPointShader = this.userPointShader;\n\n            properties.pointSize = this.pointSize;\n            properties.curStrokeWeight = this.curStrokeWeight;\n            properties.curStrokeColor = this.curStrokeColor;\n            properties.curFillColor = this.curFillColor;\n\n            properties._useSpecularMaterial = this._useSpecularMaterial;\n            properties._useEmissiveMaterial = this._useEmissiveMaterial;\n            properties._useShininess = this._useShininess;\n\n            properties.constantAttenuation = this.constantAttenuation;\n            properties.linearAttenuation = this.linearAttenuation;\n            properties.quadraticAttenuation = this.quadraticAttenuation;\n\n            properties._enableLighting = this._enableLighting;\n            properties._useNormalMaterial = this._useNormalMaterial;\n            properties._tex = this._tex;\n            properties.drawMode = this.drawMode;\n\n            return style;\n          };\n\n          _main.default.RendererGL.prototype.resetMatrix = function() {\n            this.uMVMatrix = _main.default.Matrix.identity(this._pInst);\n            return this;\n          };\n\n          //////////////////////////////////////////////\n          // SHADER\n          //////////////////////////////////////////////\n\n          /*\n * shaders are created and cached on a per-renderer basis,\n * on the grounds that each renderer will have its own gl context\n * and the shader must be valid in that context.\n */\n\n          _main.default.RendererGL.prototype._getImmediateStrokeShader = function() {\n            // select the stroke shader to use\n            var stroke = this.userStrokeShader;\n            if (!stroke || !stroke.isStrokeShader()) {\n              return this._getLineShader();\n            }\n            return stroke;\n          };\n\n          _main.default.RendererGL.prototype._getRetainedStrokeShader =\n            _main.default.RendererGL.prototype._getImmediateStrokeShader;\n\n          /*\n                                                               * selects which fill shader should be used based on renderer state,\n                                                               * for use with begin/endShape and immediate vertex mode.\n                                                               */\n          _main.default.RendererGL.prototype._getImmediateFillShader = function() {\n            var fill = this.userFillShader;\n            if (this._useNormalMaterial) {\n              if (!fill || !fill.isNormalShader()) {\n                return this._getNormalShader();\n              }\n            }\n            if (this._enableLighting) {\n              if (!fill || !fill.isLightShader()) {\n                return this._getLightShader();\n              }\n            } else if (this._tex) {\n              if (!fill || !fill.isTextureShader()) {\n                return this._getLightShader();\n              }\n            } else if (!fill /*|| !fill.isColorShader()*/) {\n              return this._getImmediateModeShader();\n            }\n            return fill;\n          };\n\n          /*\n    * selects which fill shader should be used based on renderer state\n    * for retained mode.\n    */\n          _main.default.RendererGL.prototype._getRetainedFillShader = function() {\n            if (this._useNormalMaterial) {\n              return this._getNormalShader();\n            }\n\n            var fill = this.userFillShader;\n            if (this._enableLighting) {\n              if (!fill || !fill.isLightShader()) {\n                return this._getLightShader();\n              }\n            } else if (this._tex) {\n              if (!fill || !fill.isTextureShader()) {\n                return this._getLightShader();\n              }\n            } else if (!fill /* || !fill.isColorShader()*/) {\n              return this._getColorShader();\n            }\n            return fill;\n          };\n\n          _main.default.RendererGL.prototype._getImmediatePointShader = function() {\n            // select the point shader to use\n            var point = this.userPointShader;\n            if (!point || !point.isPointShader()) {\n              return this._getPointShader();\n            }\n            return point;\n          };\n\n          _main.default.RendererGL.prototype._getRetainedLineShader =\n            _main.default.RendererGL.prototype._getImmediateLineShader;\n\n          _main.default.RendererGL.prototype._getLightShader = function() {\n            if (!this._defaultLightShader) {\n              if (this._pInst._glAttributes.perPixelLighting) {\n                this._defaultLightShader = new _main.default.Shader(\n                  this,\n                  defaultShaders.phongVert,\n                  defaultShaders.phongFrag\n                );\n              } else {\n                this._defaultLightShader = new _main.default.Shader(\n                  this,\n                  defaultShaders.lightVert,\n                  defaultShaders.lightTextureFrag\n                );\n              }\n            }\n\n            return this._defaultLightShader;\n          };\n\n          _main.default.RendererGL.prototype._getImmediateModeShader = function() {\n            if (!this._defaultImmediateModeShader) {\n              this._defaultImmediateModeShader = new _main.default.Shader(\n                this,\n                defaultShaders.immediateVert,\n                defaultShaders.vertexColorFrag\n              );\n            }\n\n            return this._defaultImmediateModeShader;\n          };\n\n          _main.default.RendererGL.prototype._getNormalShader = function() {\n            if (!this._defaultNormalShader) {\n              this._defaultNormalShader = new _main.default.Shader(\n                this,\n                defaultShaders.normalVert,\n                defaultShaders.normalFrag\n              );\n            }\n\n            return this._defaultNormalShader;\n          };\n\n          _main.default.RendererGL.prototype._getColorShader = function() {\n            if (!this._defaultColorShader) {\n              this._defaultColorShader = new _main.default.Shader(\n                this,\n                defaultShaders.normalVert,\n                defaultShaders.basicFrag\n              );\n            }\n\n            return this._defaultColorShader;\n          };\n\n          _main.default.RendererGL.prototype._getPointShader = function() {\n            if (!this._defaultPointShader) {\n              this._defaultPointShader = new _main.default.Shader(\n                this,\n                defaultShaders.pointVert,\n                defaultShaders.pointFrag\n              );\n            }\n            return this._defaultPointShader;\n          };\n\n          _main.default.RendererGL.prototype._getLineShader = function() {\n            if (!this._defaultLineShader) {\n              this._defaultLineShader = new _main.default.Shader(\n                this,\n                defaultShaders.lineVert,\n                defaultShaders.lineFrag\n              );\n            }\n\n            return this._defaultLineShader;\n          };\n\n          _main.default.RendererGL.prototype._getFontShader = function() {\n            if (!this._defaultFontShader) {\n              this.GL.getExtension('OES_standard_derivatives');\n              this._defaultFontShader = new _main.default.Shader(\n                this,\n                defaultShaders.fontVert,\n                defaultShaders.fontFrag\n              );\n            }\n            return this._defaultFontShader;\n          };\n\n          _main.default.RendererGL.prototype._getEmptyTexture = function() {\n            if (!this._emptyTexture) {\n              // a plain white texture RGBA, full alpha, single pixel.\n              var im = new _main.default.Image(1, 1);\n              im.set(0, 0, 255);\n              this._emptyTexture = new _main.default.Texture(this, im);\n            }\n            return this._emptyTexture;\n          };\n\n          _main.default.RendererGL.prototype.getTexture = function(img) {\n            var textures = this.textures;\n            var _iteratorNormalCompletion = true;\n            var _didIteratorError = false;\n            var _iteratorError = undefined;\n            try {\n              for (\n                var _iterator = textures[Symbol.iterator](), _step;\n                !(_iteratorNormalCompletion = (_step = _iterator.next()).done);\n                _iteratorNormalCompletion = true\n              ) {\n                var texture = _step.value;\n                if (texture.src === img) return texture;\n              }\n            } catch (err) {\n              _didIteratorError = true;\n              _iteratorError = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion && _iterator.return != null) {\n                  _iterator.return();\n                }\n              } finally {\n                if (_didIteratorError) {\n                  throw _iteratorError;\n                }\n              }\n            }\n\n            var tex = new _main.default.Texture(this, img);\n            textures.push(tex);\n            return tex;\n          };\n\n          _main.default.RendererGL.prototype._setStrokeUniforms = function(strokeShader) {\n            strokeShader.bindShader();\n\n            // set the uniform values\n            strokeShader.setUniform('uMaterialColor', this.curStrokeColor);\n            strokeShader.setUniform('uStrokeWeight', this.curStrokeWeight);\n          };\n\n          _main.default.RendererGL.prototype._setFillUniforms = function(fillShader) {\n            fillShader.bindShader();\n\n            // TODO: optimize\n            fillShader.setUniform('uMaterialColor', this.curFillColor);\n            fillShader.setUniform('isTexture', !!this._tex);\n            if (this._tex) {\n              fillShader.setUniform('uSampler', this._tex);\n            }\n            fillShader.setUniform('uTint', this._tint);\n\n            fillShader.setUniform('uSpecular', this._useSpecularMaterial);\n            fillShader.setUniform('uEmissive', this._useEmissiveMaterial);\n            fillShader.setUniform('uShininess', this._useShininess);\n\n            fillShader.setUniform('uUseLighting', this._enableLighting);\n\n            var pointLightCount = this.pointLightDiffuseColors.length / 3;\n            fillShader.setUniform('uPointLightCount', pointLightCount);\n            fillShader.setUniform('uPointLightLocation', this.pointLightPositions);\n            fillShader.setUniform('uPointLightDiffuseColors', this.pointLightDiffuseColors);\n\n            fillShader.setUniform(\n              'uPointLightSpecularColors',\n              this.pointLightSpecularColors\n            );\n\n            var directionalLightCount = this.directionalLightDiffuseColors.length / 3;\n            fillShader.setUniform('uDirectionalLightCount', directionalLightCount);\n            fillShader.setUniform('uLightingDirection', this.directionalLightDirections);\n            fillShader.setUniform(\n              'uDirectionalDiffuseColors',\n              this.directionalLightDiffuseColors\n            );\n\n            fillShader.setUniform(\n              'uDirectionalSpecularColors',\n              this.directionalLightSpecularColors\n            );\n\n            // TODO: sum these here...\n            var ambientLightCount = this.ambientLightColors.length / 3;\n            fillShader.setUniform('uAmbientLightCount', ambientLightCount);\n            fillShader.setUniform('uAmbientColor', this.ambientLightColors);\n\n            var spotLightCount = this.spotLightDiffuseColors.length / 3;\n            fillShader.setUniform('uSpotLightCount', spotLightCount);\n            fillShader.setUniform('uSpotLightAngle', this.spotLightAngle);\n            fillShader.setUniform('uSpotLightConc', this.spotLightConc);\n            fillShader.setUniform('uSpotLightDiffuseColors', this.spotLightDiffuseColors);\n            fillShader.setUniform('uSpotLightSpecularColors', this.spotLightSpecularColors);\n\n            fillShader.setUniform('uSpotLightLocation', this.spotLightPositions);\n            fillShader.setUniform('uSpotLightDirection', this.spotLightDirections);\n\n            fillShader.setUniform('uConstantAttenuation', this.constantAttenuation);\n            fillShader.setUniform('uLinearAttenuation', this.linearAttenuation);\n            fillShader.setUniform('uQuadraticAttenuation', this.quadraticAttenuation);\n\n            fillShader.bindTextures();\n          };\n\n          _main.default.RendererGL.prototype._setPointUniforms = function(pointShader) {\n            pointShader.bindShader();\n\n            // set the uniform values\n            pointShader.setUniform('uMaterialColor', this.curStrokeColor);\n            // @todo is there an instance where this isn't stroke weight?\n            // should be they be same var?\n            pointShader.setUniform('uPointSize', this.pointSize);\n          };\n\n          /* Binds a buffer to the drawing context\n    * when passed more than two arguments it also updates or initializes\n    * the data associated with the buffer\n    */\n          _main.default.RendererGL.prototype._bindBuffer = function(\n            buffer,\n            target,\n            values,\n            type,\n            usage\n          ) {\n            if (!target) target = this.GL.ARRAY_BUFFER;\n            this.GL.bindBuffer(target, buffer);\n            if (values !== undefined) {\n              var data = new (type || Float32Array)(values);\n              this.GL.bufferData(target, data, usage || this.GL.STATIC_DRAW);\n            }\n          };\n\n          ///////////////////////////////\n          //// UTILITY FUNCTIONS\n          //////////////////////////////\n          _main.default.RendererGL.prototype._arraysEqual = function(a, b) {\n            var aLength = a.length;\n            if (aLength !== b.length) return false;\n            for (var i = 0; i < aLength; i++) {\n              if (a[i] !== b[i]) return false;\n            }\n            return true;\n          };\n\n          _main.default.RendererGL.prototype._isTypedArray = function(arr) {\n            var res = false;\n            res = arr instanceof Float32Array;\n            res = arr instanceof Float64Array;\n            res = arr instanceof Int16Array;\n            res = arr instanceof Uint16Array;\n            res = arr instanceof Uint32Array;\n            return res;\n          };\n          /**\n           * turn a two dimensional array into one dimensional array\n           * @private\n           * @param  {Array} arr 2-dimensional array\n           * @return {Array}     1-dimensional array\n           * [[1, 2, 3],[4, 5, 6]] -> [1, 2, 3, 4, 5, 6]\n           */\n          _main.default.RendererGL.prototype._flatten = function(arr) {\n            //when empty, return empty\n            if (arr.length === 0) {\n              return [];\n            } else if (arr.length > 20000) {\n              //big models , load slower to avoid stack overflow\n              //faster non-recursive flatten via axelduch\n              //stackoverflow.com/questions/27266550/how-to-flatten-nested-array-in-javascript\n              var _toString = Object.prototype.toString;\n              var arrayTypeStr = '[object Array]';\n              var result = [];\n              var nodes = arr.slice();\n              var node;\n              node = nodes.pop();\n              do {\n                if (_toString.call(node) === arrayTypeStr) {\n                  nodes.push.apply(nodes, _toConsumableArray(node));\n                } else {\n                  result.push(node);\n                }\n              } while (nodes.length && (node = nodes.pop()) !== undefined);\n              result.reverse(); // we reverse result to restore the original order\n              return result;\n            } else {\n              var _ref;\n              //otherwise if model within limits for browser\n              //use faster recursive loading\n              return (_ref = []).concat.apply(_ref, _toConsumableArray(arr));\n            }\n          };\n\n          /**\n           * turn a p5.Vector Array into a one dimensional number array\n           * @private\n           * @param  {p5.Vector[]} arr  an array of p5.Vector\n           * @return {Number[]}     a one dimensional array of numbers\n           * [p5.Vector(1, 2, 3), p5.Vector(4, 5, 6)] ->\n           * [1, 2, 3, 4, 5, 6]\n           */\n          _main.default.RendererGL.prototype._vToNArray = function(arr) {\n            var ret = [];\n            var _iteratorNormalCompletion2 = true;\n            var _didIteratorError2 = false;\n            var _iteratorError2 = undefined;\n            try {\n              for (\n                var _iterator2 = arr[Symbol.iterator](), _step2;\n                !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done);\n                _iteratorNormalCompletion2 = true\n              ) {\n                var item = _step2.value;\n                ret.push(item.x, item.y, item.z);\n              }\n            } catch (err) {\n              _didIteratorError2 = true;\n              _iteratorError2 = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n                  _iterator2.return();\n                }\n              } finally {\n                if (_didIteratorError2) {\n                  throw _iteratorError2;\n                }\n              }\n            }\n\n            return ret;\n          };\n\n          /**\n           * ensures that p5 is using a 3d renderer. throws an error if not.\n           */\n          _main.default.prototype._assert3d = function(name) {\n            if (!this._renderer.isP3D)\n              throw new Error(\n                ''.concat(\n                  name,\n                  \"() is only supported in WEBGL mode. If you'd like to use 3D graphics and WebGL, see  https://p5js.org/examples/form-3d-primitives.html for more information.\"\n                )\n              );\n          };\n\n          // function to initialize GLU Tesselator\n\n          _main.default.RendererGL.prototype._initTessy = function initTesselator() {\n            // function called for each vertex of tesselator output\n            function vertexCallback(data, polyVertArray) {\n              polyVertArray[polyVertArray.length] = data[0];\n              polyVertArray[polyVertArray.length] = data[1];\n              polyVertArray[polyVertArray.length] = data[2];\n            }\n\n            function begincallback(type) {\n              if (type !== _libtess.default.primitiveType.GL_TRIANGLES) {\n                console.log('expected TRIANGLES but got type: '.concat(type));\n              }\n            }\n\n            function errorcallback(errno) {\n              console.log('error callback');\n              console.log('error number: '.concat(errno));\n            }\n            // callback for when segments intersect and must be split\n            function combinecallback(coords, data, weight) {\n              return [coords[0], coords[1], coords[2]];\n            }\n\n            function edgeCallback(flag) {\n              // don't really care about the flag, but need no-strip/no-fan behavior\n            }\n\n            var tessy = new _libtess.default.GluTesselator();\n            tessy.gluTessCallback(\n              _libtess.default.gluEnum.GLU_TESS_VERTEX_DATA,\n              vertexCallback\n            );\n            tessy.gluTessCallback(_libtess.default.gluEnum.GLU_TESS_BEGIN, begincallback);\n            tessy.gluTessCallback(_libtess.default.gluEnum.GLU_TESS_ERROR, errorcallback);\n            tessy.gluTessCallback(\n              _libtess.default.gluEnum.GLU_TESS_COMBINE,\n              combinecallback\n            );\n            tessy.gluTessCallback(\n              _libtess.default.gluEnum.GLU_TESS_EDGE_FLAG,\n              edgeCallback\n            );\n\n            return tessy;\n          };\n\n          _main.default.RendererGL.prototype._triangulate = function(contours) {\n            // libtess will take 3d verts and flatten to a plane for tesselation\n            // since only doing 2d tesselation here, provide z=1 normal to skip\n            // iterating over verts only to get the same answer.\n            // comment out to test normal-generation code\n            this._tessy.gluTessNormal(0, 0, 1);\n\n            var triangleVerts = [];\n            this._tessy.gluTessBeginPolygon(triangleVerts);\n\n            for (var i = 0; i < contours.length; i++) {\n              this._tessy.gluTessBeginContour();\n              var contour = contours[i];\n              for (var j = 0; j < contour.length; j += 3) {\n                var coords = [contour[j], contour[j + 1], contour[j + 2]];\n                this._tessy.gluTessVertex(coords, coords);\n              }\n              this._tessy.gluTessEndContour();\n            }\n\n            // finish polygon\n            this._tessy.gluTessEndPolygon();\n\n            return triangleVerts;\n          };\n\n          // function to calculate BezierVertex Coefficients\n          _main.default.RendererGL.prototype._bezierCoefficients = function(t) {\n            var t2 = t * t;\n            var t3 = t2 * t;\n            var mt = 1 - t;\n            var mt2 = mt * mt;\n            var mt3 = mt2 * mt;\n            return [mt3, 3 * mt2 * t, 3 * mt * t2, t3];\n          };\n\n          // function to calculate QuadraticVertex Coefficients\n          _main.default.RendererGL.prototype._quadraticCoefficients = function(t) {\n            var t2 = t * t;\n            var mt = 1 - t;\n            var mt2 = mt * mt;\n            return [mt2, 2 * mt * t, t2];\n          };\n\n          // function to convert Bezier coordinates to Catmull Rom Splines\n          _main.default.RendererGL.prototype._bezierToCatmull = function(w) {\n            var p1 = w[1];\n            var p2 = w[1] + (w[2] - w[0]) / this._curveTightness;\n            var p3 = w[2] - (w[3] - w[1]) / this._curveTightness;\n            var p4 = w[2];\n            var p = [p1, p2, p3, p4];\n            return p;\n          };\n          var _default = _main.default.RendererGL;\n          exports.default = _default;\n        },\n        {\n          '../core/constants': 43,\n          '../core/main': 50,\n          '../core/p5.Renderer': 53,\n          './p5.Camera': 98,\n          './p5.Matrix': 100,\n          './p5.Shader': 105,\n          libtess: 32,\n          path: 35\n        }\n      ],\n      105: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * This module defines the p5.Shader class\n           * @module Lights, Camera\n           * @submodule Material\n           * @for p5\n           * @requires core\n           */ /**\n           * Shader class for WEBGL Mode\n           * @class p5.Shader\n           * @constructor\n           * @param {p5.RendererGL} renderer an instance of p5.RendererGL that\n           * will provide the GL context for this new p5.Shader\n           * @param {String} vertSrc source code for the vertex shader (as a string)\n           * @param {String} fragSrc source code for the fragment shader (as a string)\n           */ _main.default.Shader = function(renderer, vertSrc, fragSrc) {\n            // TODO: adapt this to not take ids, but rather,\n            // to take the source for a vertex and fragment shader\n            // to enable custom shaders at some later date\n            this._renderer = renderer;\n            this._vertSrc = vertSrc;\n            this._fragSrc = fragSrc;\n            this._vertShader = -1;\n            this._fragShader = -1;\n            this._glProgram = 0;\n            this._loadedAttributes = false;\n            this.attributes = {};\n            this._loadedUniforms = false;\n            this.uniforms = {};\n            this._bound = false;\n            this.samplers = [];\n          };\n\n          /**\n           * Creates, compiles, and links the shader based on its\n           * sources for the vertex and fragment shaders (provided\n           * to the constructor). Populates known attributes and\n           * uniforms from the shader.\n           * @method init\n           * @chainable\n           * @private\n           */\n          _main.default.Shader.prototype.init = function() {\n            if (this._glProgram === 0 /* or context is stale? */) {\n              var gl = this._renderer.GL;\n\n              // @todo: once custom shading is allowed,\n              // friendly error messages should be used here to share\n              // compiler and linker errors.\n\n              //set up the shader by\n              // 1. creating and getting a gl id for the shader program,\n              // 2. compliling its vertex & fragment sources,\n              // 3. linking the vertex and fragment shaders\n              this._vertShader = gl.createShader(gl.VERTEX_SHADER);\n              //load in our default vertex shader\n              gl.shaderSource(this._vertShader, this._vertSrc);\n              gl.compileShader(this._vertShader);\n              // if our vertex shader failed compilation?\n              if (!gl.getShaderParameter(this._vertShader, gl.COMPILE_STATUS)) {\n                console.error(\n                  'Yikes! An error occurred compiling the vertex shader:'.concat(\n                    gl.getShaderInfoLog(this._vertShader)\n                  )\n                );\n\n                return null;\n              }\n\n              this._fragShader = gl.createShader(gl.FRAGMENT_SHADER);\n              //load in our material frag shader\n              gl.shaderSource(this._fragShader, this._fragSrc);\n              gl.compileShader(this._fragShader);\n              // if our frag shader failed compilation?\n              if (!gl.getShaderParameter(this._fragShader, gl.COMPILE_STATUS)) {\n                console.error(\n                  'Darn! An error occurred compiling the fragment shader:'.concat(\n                    gl.getShaderInfoLog(this._fragShader)\n                  )\n                );\n\n                return null;\n              }\n\n              this._glProgram = gl.createProgram();\n              gl.attachShader(this._glProgram, this._vertShader);\n              gl.attachShader(this._glProgram, this._fragShader);\n              gl.linkProgram(this._glProgram);\n              if (!gl.getProgramParameter(this._glProgram, gl.LINK_STATUS)) {\n                console.error(\n                  'Snap! Error linking shader program: '.concat(\n                    gl.getProgramInfoLog(this._glProgram)\n                  )\n                );\n              }\n\n              this._loadAttributes();\n              this._loadUniforms();\n            }\n            return this;\n          };\n\n          /**\n           * Queries the active attributes for this shader and loads\n           * their names and locations into the attributes array.\n           * @method _loadAttributes\n           * @private\n           */\n          _main.default.Shader.prototype._loadAttributes = function() {\n            if (this._loadedAttributes) {\n              return;\n            }\n\n            this.attributes = {};\n\n            var gl = this._renderer.GL;\n\n            var numAttributes = gl.getProgramParameter(\n              this._glProgram,\n              gl.ACTIVE_ATTRIBUTES\n            );\n\n            for (var i = 0; i < numAttributes; ++i) {\n              var attributeInfo = gl.getActiveAttrib(this._glProgram, i);\n              var name = attributeInfo.name;\n              var location = gl.getAttribLocation(this._glProgram, name);\n              var attribute = {};\n              attribute.name = name;\n              attribute.location = location;\n              attribute.index = i;\n              attribute.type = attributeInfo.type;\n              attribute.size = attributeInfo.size;\n              this.attributes[name] = attribute;\n            }\n\n            this._loadedAttributes = true;\n          };\n\n          /**\n           * Queries the active uniforms for this shader and loads\n           * their names and locations into the uniforms array.\n           * @method _loadUniforms\n           * @private\n           */\n          _main.default.Shader.prototype._loadUniforms = function() {\n            if (this._loadedUniforms) {\n              return;\n            }\n\n            var gl = this._renderer.GL;\n\n            // Inspect shader and cache uniform info\n            var numUniforms = gl.getProgramParameter(this._glProgram, gl.ACTIVE_UNIFORMS);\n\n            var samplerIndex = 0;\n            for (var i = 0; i < numUniforms; ++i) {\n              var uniformInfo = gl.getActiveUniform(this._glProgram, i);\n              var uniform = {};\n              uniform.location = gl.getUniformLocation(this._glProgram, uniformInfo.name);\n              uniform.size = uniformInfo.size;\n              var uniformName = uniformInfo.name;\n              //uniforms thats are arrays have their name returned as\n              //someUniform[0] which is a bit silly so we trim it\n              //off here. The size property tells us that its an array\n              //so we dont lose any information by doing this\n              if (uniformInfo.size > 1) {\n                uniformName = uniformName.substring(0, uniformName.indexOf('[0]'));\n              }\n              uniform.name = uniformName;\n              uniform.type = uniformInfo.type;\n              uniform._cachedData = undefined;\n              if (uniform.type === gl.SAMPLER_2D) {\n                uniform.samplerIndex = samplerIndex;\n                samplerIndex++;\n                this.samplers.push(uniform);\n              }\n              uniform.isArray =\n                uniform.type === gl.FLOAT_MAT3 ||\n                uniform.type === gl.FLOAT_MAT4 ||\n                uniform.type === gl.INT_VEC2 ||\n                uniform.type === gl.INT_VEC3 ||\n                uniform.type === gl.INT_VEC4;\n\n              this.uniforms[uniformName] = uniform;\n            }\n            this._loadedUniforms = true;\n          };\n\n          _main.default.Shader.prototype.compile = function() {\n            // TODO\n          };\n\n          /**\n           * initializes (if needed) and binds the shader program.\n           * @method bindShader\n           * @private\n           */\n          _main.default.Shader.prototype.bindShader = function() {\n            this.init();\n            if (!this._bound) {\n              this.useProgram();\n              this._bound = true;\n\n              this._setMatrixUniforms();\n\n              this.setUniform('uViewport', this._renderer._viewport);\n            }\n          };\n\n          /**\n           * @method unbindShader\n           * @chainable\n           * @private\n           */\n          _main.default.Shader.prototype.unbindShader = function() {\n            if (this._bound) {\n              this.unbindTextures();\n              //this._renderer.GL.useProgram(0); ??\n              this._bound = false;\n            }\n            return this;\n          };\n\n          _main.default.Shader.prototype.bindTextures = function() {\n            var gl = this._renderer.GL;\n            var _iteratorNormalCompletion = true;\n            var _didIteratorError = false;\n            var _iteratorError = undefined;\n            try {\n              for (\n                var _iterator = this.samplers[Symbol.iterator](), _step;\n                !(_iteratorNormalCompletion = (_step = _iterator.next()).done);\n                _iteratorNormalCompletion = true\n              ) {\n                var uniform = _step.value;\n                var tex = uniform.texture;\n                if (tex === undefined) {\n                  // user hasn't yet supplied a texture for this slot.\n                  // (or there may not be one--maybe just lighting),\n                  // so we supply a default texture instead.\n                  tex = this._renderer._getEmptyTexture();\n                }\n                gl.activeTexture(gl.TEXTURE0 + uniform.samplerIndex);\n                tex.bindTexture();\n                tex.update();\n                gl.uniform1i(uniform.location, uniform.samplerIndex);\n              }\n            } catch (err) {\n              _didIteratorError = true;\n              _iteratorError = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion && _iterator.return != null) {\n                  _iterator.return();\n                }\n              } finally {\n                if (_didIteratorError) {\n                  throw _iteratorError;\n                }\n              }\n            }\n          };\n\n          _main.default.Shader.prototype.updateTextures = function() {\n            var _iteratorNormalCompletion2 = true;\n            var _didIteratorError2 = false;\n            var _iteratorError2 = undefined;\n            try {\n              for (\n                var _iterator2 = this.samplers[Symbol.iterator](), _step2;\n                !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done);\n                _iteratorNormalCompletion2 = true\n              ) {\n                var uniform = _step2.value;\n                var tex = uniform.texture;\n                if (tex) {\n                  tex.update();\n                }\n              }\n            } catch (err) {\n              _didIteratorError2 = true;\n              _iteratorError2 = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n                  _iterator2.return();\n                }\n              } finally {\n                if (_didIteratorError2) {\n                  throw _iteratorError2;\n                }\n              }\n            }\n          };\n\n          _main.default.Shader.prototype.unbindTextures = function() {\n            // TODO: migrate stuff from material.js here\n            // - OR - have material.js define this function\n          };\n\n          _main.default.Shader.prototype._setMatrixUniforms = function() {\n            this.setUniform('uProjectionMatrix', this._renderer.uPMatrix.mat4);\n            if (this.isStrokeShader()) {\n              if (this._renderer._curCamera.cameraType === 'default') {\n                // strokes scale up as they approach camera, default\n                this.setUniform('uPerspective', 1);\n              } else {\n                // strokes have uniform scale regardless of distance from camera\n                this.setUniform('uPerspective', 0);\n              }\n            }\n            this.setUniform('uModelViewMatrix', this._renderer.uMVMatrix.mat4);\n            this.setUniform('uViewMatrix', this._renderer._curCamera.cameraMatrix.mat4);\n            if (this.uniforms.uNormalMatrix) {\n              this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix);\n              this.setUniform('uNormalMatrix', this._renderer.uNMatrix.mat3);\n            }\n          };\n\n          /**\n           * @method useProgram\n           * @chainable\n           * @private\n           */\n          _main.default.Shader.prototype.useProgram = function() {\n            var gl = this._renderer.GL;\n            if (this._renderer._curShader !== this) {\n              gl.useProgram(this._glProgram);\n              this._renderer._curShader = this;\n            }\n            return this;\n          };\n\n          /**\n           * Wrapper around gl.uniform functions.\n           * As we store uniform info in the shader we can use that\n           * to do type checking on the supplied data and call\n           * the appropriate function.\n           * @method setUniform\n           * @chainable\n           * @param {String} uniformName the name of the uniform in the\n           * shader program\n           * @param {Object|Number|Boolean|Number[]} data the data to be associated\n           * with that uniform; type varies (could be a single numerical value, array,\n           * matrix, or texture / sampler reference)\n           *\n           * @example\n           * <div modernizr='webgl'>\n           * <code>\n           * // Click within the image to toggle the value of uniforms\n           * // Note: for an alternative approach to the same example,\n           * // involving toggling between shaders please refer to:\n           * // https://p5js.org/reference/#/p5/shader\n           *\n           * let grad;\n           * let showRedGreen = false;\n           *\n           * function preload() {\n           *   // note that we are using two instances\n           *   // of the same vertex and fragment shaders\n           *   grad = loadShader('assets/shader.vert', 'assets/shader-gradient.frag');\n           * }\n           *\n           * function setup() {\n           *   createCanvas(100, 100, WEBGL);\n           *   shader(grad);\n           *   noStroke();\n           * }\n           *\n           * function draw() {\n           *   // update the offset values for each scenario,\n           *   // moving the \"grad\" shader in either vertical or\n           *   // horizontal direction each with differing colors\n           *\n           *   if (showRedGreen === true) {\n           *     grad.setUniform('colorCenter', [1, 0, 0]);\n           *     grad.setUniform('colorBackground', [0, 1, 0]);\n           *     grad.setUniform('offset', [sin(millis() / 2000), 1]);\n           *   } else {\n           *     grad.setUniform('colorCenter', [1, 0.5, 0]);\n           *     grad.setUniform('colorBackground', [0.226, 0, 0.615]);\n           *     grad.setUniform('offset', [0, sin(millis() / 2000) + 1]);\n           *   }\n           *   quad(-1, -1, 1, -1, 1, 1, -1, 1);\n           * }\n           *\n           * function mouseClicked() {\n           *   showRedGreen = !showRedGreen;\n           * }\n           * </code>\n           * </div>\n           *\n           * @alt\n           * canvas toggles between a circular gradient of orange and blue vertically. and a circular gradient of red and green moving horizontally when mouse is clicked/pressed.\n           */\n          _main.default.Shader.prototype.setUniform = function(uniformName, data) {\n            var uniform = this.uniforms[uniformName];\n            if (!uniform) {\n              return;\n            }\n            var gl = this._renderer.GL;\n\n            if (uniform.isArray) {\n              if (\n                uniform._cachedData &&\n                this._renderer._arraysEqual(uniform._cachedData, data)\n              ) {\n                return;\n              } else {\n                uniform._cachedData = data.slice(0);\n              }\n            } else if (uniform._cachedData && uniform._cachedData === data) {\n              return;\n            } else {\n              uniform._cachedData = data;\n            }\n\n            var location = uniform.location;\n\n            this.useProgram();\n\n            switch (uniform.type) {\n              case gl.BOOL:\n                if (data === true) {\n                  gl.uniform1i(location, 1);\n                } else {\n                  gl.uniform1i(location, 0);\n                }\n                break;\n              case gl.INT:\n                if (uniform.size > 1) {\n                  data.length && gl.uniform1iv(location, data);\n                } else {\n                  gl.uniform1i(location, data);\n                }\n                break;\n              case gl.FLOAT:\n                if (uniform.size > 1) {\n                  data.length && gl.uniform1fv(location, data);\n                } else {\n                  gl.uniform1f(location, data);\n                }\n                break;\n              case gl.FLOAT_MAT3:\n                gl.uniformMatrix3fv(location, false, data);\n                break;\n              case gl.FLOAT_MAT4:\n                gl.uniformMatrix4fv(location, false, data);\n                break;\n              case gl.FLOAT_VEC2:\n                if (uniform.size > 1) {\n                  data.length && gl.uniform2fv(location, data);\n                } else {\n                  gl.uniform2f(location, data[0], data[1]);\n                }\n                break;\n              case gl.FLOAT_VEC3:\n                if (uniform.size > 1) {\n                  data.length && gl.uniform3fv(location, data);\n                } else {\n                  gl.uniform3f(location, data[0], data[1], data[2]);\n                }\n                break;\n              case gl.FLOAT_VEC4:\n                if (uniform.size > 1) {\n                  data.length && gl.uniform4fv(location, data);\n                } else {\n                  gl.uniform4f(location, data[0], data[1], data[2], data[3]);\n                }\n                break;\n              case gl.INT_VEC2:\n                if (uniform.size > 1) {\n                  data.length && gl.uniform2iv(location, data);\n                } else {\n                  gl.uniform2i(location, data[0], data[1]);\n                }\n                break;\n              case gl.INT_VEC3:\n                if (uniform.size > 1) {\n                  data.length && gl.uniform3iv(location, data);\n                } else {\n                  gl.uniform3i(location, data[0], data[1], data[2]);\n                }\n                break;\n              case gl.INT_VEC4:\n                if (uniform.size > 1) {\n                  data.length && gl.uniform4iv(location, data);\n                } else {\n                  gl.uniform4i(location, data[0], data[1], data[2], data[3]);\n                }\n                break;\n              case gl.SAMPLER_2D:\n                gl.activeTexture(gl.TEXTURE0 + uniform.samplerIndex);\n                uniform.texture = this._renderer.getTexture(data);\n                gl.uniform1i(uniform.location, uniform.samplerIndex);\n                break;\n              //@todo complete all types\n            }\n            return this;\n          };\n\n          /* NONE OF THIS IS FAST OR EFFICIENT BUT BEAR WITH ME\n    *\n    * these shader \"type\" query methods are used by various\n    * facilities of the renderer to determine if changing\n    * the shader type for the required action (for example,\n    * do we need to load the default lighting shader if the\n    * current shader cannot handle lighting?)\n    *\n    **/\n\n          _main.default.Shader.prototype.isLightShader = function() {\n            return (\n              this.attributes.aNormal !== undefined ||\n              this.uniforms.uUseLighting !== undefined ||\n              this.uniforms.uAmbientLightCount !== undefined ||\n              this.uniforms.uDirectionalLightCount !== undefined ||\n              this.uniforms.uPointLightCount !== undefined ||\n              this.uniforms.uAmbientColor !== undefined ||\n              this.uniforms.uDirectionalDiffuseColors !== undefined ||\n              this.uniforms.uDirectionalSpecularColors !== undefined ||\n              this.uniforms.uPointLightLocation !== undefined ||\n              this.uniforms.uPointLightDiffuseColors !== undefined ||\n              this.uniforms.uPointLightSpecularColors !== undefined ||\n              this.uniforms.uLightingDirection !== undefined ||\n              this.uniforms.uSpecular !== undefined\n            );\n          };\n\n          _main.default.Shader.prototype.isNormalShader = function() {\n            return this.attributes.aNormal !== undefined;\n          };\n\n          _main.default.Shader.prototype.isTextureShader = function() {\n            return this.samplerIndex > 0;\n          };\n\n          _main.default.Shader.prototype.isColorShader = function() {\n            return (\n              this.attributes.aVertexColor !== undefined ||\n              this.uniforms.uMaterialColor !== undefined\n            );\n          };\n\n          _main.default.Shader.prototype.isTexLightShader = function() {\n            return this.isLightShader() && this.isTextureShader();\n          };\n\n          _main.default.Shader.prototype.isStrokeShader = function() {\n            return this.uniforms.uStrokeWeight !== undefined;\n          };\n\n          /**\n           * @method enableAttrib\n           * @chainable\n           * @private\n           */\n          _main.default.Shader.prototype.enableAttrib = function(\n            attr,\n            size,\n            type,\n            normalized,\n            stride,\n            offset\n          ) {\n            if (attr) {\n              if (\n                typeof IS_MINIFIED === 'undefined' &&\n                this.attributes[attr.name] !== attr\n              ) {\n                console.warn(\n                  'The attribute \"'.concat(\n                    attr.name,\n                    '\"passed to enableAttrib does not belong to this shader.'\n                  )\n                );\n              }\n              var loc = attr.location;\n              if (loc !== -1) {\n                var gl = this._renderer.GL;\n                if (!attr.enabled) {\n                  gl.enableVertexAttribArray(loc);\n                  attr.enabled = true;\n                }\n                this._renderer.GL.vertexAttribPointer(\n                  loc,\n                  size,\n                  type || gl.FLOAT,\n                  normalized || false,\n                  stride || 0,\n                  offset || 0\n                );\n              }\n            }\n            return this;\n          };\n          var _default = _main.default.Shader;\n          exports.default = _default;\n        },\n        { '../core/main': 50 }\n      ],\n      106: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n          /**\n           * This module defines the p5.Texture class\n           * @module Lights, Camera\n           * @submodule Material\n           * @for p5\n           * @requires core\n           */ /**\n           * Texture class for WEBGL Mode\n           * @private\n           * @class p5.Texture\n           * @param {p5.RendererGL} renderer an instance of p5.RendererGL that\n           * will provide the GL context for this new p5.Texture\n           * @param {p5.Image|p5.Graphics|p5.Element|p5.MediaElement|ImageData} [obj] the\n           * object containing the image data to store in the texture.\n           */ _main.default.Texture = function(renderer, obj) {\n            this._renderer = renderer;\n            var gl = this._renderer.GL;\n\n            this.src = obj;\n            this.glTex = undefined;\n            this.glTarget = gl.TEXTURE_2D;\n            this.glFormat = gl.RGBA;\n            this.mipmaps = false;\n            this.glMinFilter = gl.LINEAR;\n            this.glMagFilter = gl.LINEAR;\n            this.glWrapS = gl.CLAMP_TO_EDGE;\n            this.glWrapT = gl.CLAMP_TO_EDGE;\n\n            // used to determine if this texture might need constant updating\n            // because it is a video or gif.\n            this.isSrcMediaElement =\n              typeof _main.default.MediaElement !== 'undefined' &&\n              obj instanceof _main.default.MediaElement;\n            this._videoPrevUpdateTime = 0;\n            this.isSrcHTMLElement =\n              typeof _main.default.Element !== 'undefined' &&\n              obj instanceof _main.default.Element &&\n              !(obj instanceof _main.default.Graphics);\n            this.isSrcP5Image = obj instanceof _main.default.Image;\n            this.isSrcP5Graphics = obj instanceof _main.default.Graphics;\n            this.isImageData = typeof ImageData !== 'undefined' && obj instanceof ImageData;\n\n            var textureData = this._getTextureDataFromSource();\n            this.width = textureData.width;\n            this.height = textureData.height;\n\n            this.init(textureData);\n            return this;\n          };\n\n          _main.default.Texture.prototype._getTextureDataFromSource = function() {\n            var textureData;\n            if (this.isSrcP5Image) {\n              // param is a p5.Image\n              textureData = this.src.canvas;\n            } else if (\n              this.isSrcMediaElement ||\n              this.isSrcP5Graphics ||\n              this.isSrcHTMLElement\n            ) {\n              // if param is a video HTML element\n              textureData = this.src.elt;\n            } else if (this.isImageData) {\n              textureData = this.src;\n            }\n            return textureData;\n          };\n\n          /**\n           * Initializes common texture parameters, creates a gl texture,\n           * tries to upload the texture for the first time if data is\n           * already available.\n           * @private\n           * @method init\n           */\n          _main.default.Texture.prototype.init = function(data) {\n            var gl = this._renderer.GL;\n            this.glTex = gl.createTexture();\n\n            this.glWrapS = this._renderer.textureWrapX;\n            this.glWrapT = this._renderer.textureWrapY;\n\n            this.setWrapMode(this.glWrapS, this.glWrapT);\n            this.bindTexture();\n\n            //gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true);\n            gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, this.glMagFilter);\n            gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, this.glMinFilter);\n\n            if (\n              this.width === 0 ||\n              this.height === 0 ||\n              (this.isSrcMediaElement && !this.src.loadedmetadata)\n            ) {\n              // assign a 1x1 empty texture initially, because data is not yet ready,\n              // so that no errors occur in gl console!\n              var tmpdata = new Uint8Array([1, 1, 1, 1]);\n              gl.texImage2D(\n                this.glTarget,\n                0,\n                gl.RGBA,\n                1,\n                1,\n                0,\n                this.glFormat,\n                gl.UNSIGNED_BYTE,\n                tmpdata\n              );\n            } else {\n              // data is ready: just push the texture!\n              gl.texImage2D(\n                this.glTarget,\n                0,\n                this.glFormat,\n                this.glFormat,\n                gl.UNSIGNED_BYTE,\n                data\n              );\n            }\n          };\n\n          /**\n           * Checks if the source data for this texture has changed (if it's\n           * easy to do so) and reuploads the texture if necessary. If it's not\n           * possible or to expensive to do a calculation to determine wheter or\n           * not the data has occurred, this method simply re-uploads the texture.\n           * @method update\n           */\n          _main.default.Texture.prototype.update = function() {\n            var data = this.src;\n            if (data.width === 0 || data.height === 0) {\n              return false; // nothing to do!\n            }\n\n            var textureData = this._getTextureDataFromSource();\n            var updated = false;\n\n            var gl = this._renderer.GL;\n            // pull texture from data, make sure width & height are appropriate\n            if (textureData.width !== this.width || textureData.height !== this.height) {\n              updated = true;\n\n              // make sure that if the width and height of this.src have changed\n              // for some reason, we update our metadata and upload the texture again\n              this.width = textureData.width;\n              this.height = textureData.height;\n\n              if (this.isSrcP5Image) {\n                data.setModified(false);\n              } else if (this.isSrcMediaElement || this.isSrcHTMLElement) {\n                // on the first frame the metadata comes in, the size will be changed\n                // from 0 to actual size, but pixels may not be available.\n                // flag for update in a future frame.\n                // if we don't do this, a paused video, for example, may not\n                // send the first frame to texture memory.\n                data.setModified(true);\n              }\n            } else if (this.isSrcP5Image) {\n              // for an image, we only update if the modified field has been set,\n              // for example, by a call to p5.Image.set\n              if (data.isModified()) {\n                updated = true;\n                data.setModified(false);\n              }\n            } else if (this.isSrcMediaElement) {\n              // for a media element (video), we'll check if the current time in\n              // the video frame matches the last time. if it doesn't match, the\n              // video has advanced or otherwise been taken to a new frame,\n              // and we need to upload it.\n              if (data.isModified()) {\n                // p5.MediaElement may have also had set/updatePixels, etc. called\n                // on it and should be updated, or may have been set for the first\n                // time!\n                updated = true;\n                data.setModified(false);\n              } else if (data.loadedmetadata) {\n                // if the meta data has been loaded, we can ask the video\n                // what it's current position (in time) is.\n                if (this._videoPrevUpdateTime !== data.time()) {\n                  // update the texture in gpu mem only if the current\n                  // video timestamp does not match the timestamp of the last\n                  // time we uploaded this texture (and update the time we\n                  // last uploaded, too)\n                  this._videoPrevUpdateTime = data.time();\n                  updated = true;\n                }\n              }\n            } else if (this.isImageData) {\n              if (data._dirty) {\n                data._dirty = false;\n                updated = true;\n              }\n            } else {\n              /* data instanceof p5.Graphics, probably */\n              // there is not enough information to tell if the texture can be\n              // conditionally updated; so to be safe, we just go ahead and upload it.\n              updated = true;\n            }\n\n            if (updated) {\n              this.bindTexture();\n              gl.texImage2D(\n                this.glTarget,\n                0,\n                this.glFormat,\n                this.glFormat,\n                gl.UNSIGNED_BYTE,\n                textureData\n              );\n            }\n\n            return updated;\n          };\n\n          /**\n           * Binds the texture to the appropriate GL target.\n           * @method bindTexture\n           */\n          _main.default.Texture.prototype.bindTexture = function() {\n            // bind texture using gl context + glTarget and\n            // generated gl texture object\n            var gl = this._renderer.GL;\n            gl.bindTexture(this.glTarget, this.glTex);\n\n            return this;\n          };\n\n          /**\n           * Unbinds the texture from the appropriate GL target.\n           * @method unbindTexture\n           */\n          _main.default.Texture.prototype.unbindTexture = function() {\n            // unbind per above, disable texturing on glTarget\n            var gl = this._renderer.GL;\n            gl.bindTexture(this.glTarget, null);\n          };\n\n          /**\n           * Sets how a texture is be interpolated when upscaled or downscaled.\n           * Nearest filtering uses nearest neighbor scaling when interpolating\n           * Linear filtering uses WebGL's linear scaling when interpolating\n           * @method setInterpolation\n           * @param {String} downScale Specifies the texture filtering when\n           *                           textures are shrunk. Options are LINEAR or NEAREST\n           * @param {String} upScale Specifies the texture filtering when\n           *                         textures are magnified. Options are LINEAR or NEAREST\n           * @todo implement mipmapping filters\n           */\n          _main.default.Texture.prototype.setInterpolation = function(downScale, upScale) {\n            var gl = this._renderer.GL;\n\n            if (downScale === constants.NEAREST) {\n              this.glMinFilter = gl.NEAREST;\n            } else {\n              this.glMinFilter = gl.LINEAR;\n            }\n\n            if (upScale === constants.NEAREST) {\n              this.glMagFilter = gl.NEAREST;\n            } else {\n              this.glMagFilter = gl.LINEAR;\n            }\n\n            this.bindTexture();\n            gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, this.glMinFilter);\n            gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, this.glMagFilter);\n            this.unbindTexture();\n          };\n\n          /**\n           * Sets the texture wrapping mode. This controls how textures behave\n           * when their uv's go outside of the 0 - 1 range. There are three options:\n           * CLAMP, REPEAT, and MIRROR. REPEAT & MIRROR are only available if the texture\n           * is a power of two size (128, 256, 512, 1024, etc.).\n           * @method setWrapMode\n           * @param {String} wrapX Controls the horizontal texture wrapping behavior\n           * @param {String} wrapY Controls the vertical texture wrapping behavior\n           */\n          _main.default.Texture.prototype.setWrapMode = function(wrapX, wrapY) {\n            var gl = this._renderer.GL;\n\n            // for webgl 1 we need to check if the texture is power of two\n            // if it isn't we will set the wrap mode to CLAMP\n            // webgl2 will support npot REPEAT and MIRROR but we don't check for it yet\n            var isPowerOfTwo = function isPowerOfTwo(x) {\n              return (x & (x - 1)) === 0;\n            };\n\n            var widthPowerOfTwo = isPowerOfTwo(this.width);\n            var heightPowerOfTwo = isPowerOfTwo(this.height);\n\n            if (wrapX === constants.REPEAT) {\n              if (widthPowerOfTwo && heightPowerOfTwo) {\n                this.glWrapS = gl.REPEAT;\n              } else {\n                console.warn(\n                  'You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead'\n                );\n\n                this.glWrapS = gl.CLAMP_TO_EDGE;\n              }\n            } else if (wrapX === constants.MIRROR) {\n              if (widthPowerOfTwo && heightPowerOfTwo) {\n                this.glWrapS = gl.MIRRORED_REPEAT;\n              } else {\n                console.warn(\n                  'You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead'\n                );\n\n                this.glWrapS = gl.CLAMP_TO_EDGE;\n              }\n            } else {\n              // falling back to default if didn't get a proper mode\n              this.glWrapS = gl.CLAMP_TO_EDGE;\n            }\n\n            if (wrapY === constants.REPEAT) {\n              if (widthPowerOfTwo && heightPowerOfTwo) {\n                this.glWrapT = gl.REPEAT;\n              } else {\n                console.warn(\n                  'You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead'\n                );\n\n                this.glWrapT = gl.CLAMP_TO_EDGE;\n              }\n            } else if (wrapY === constants.MIRROR) {\n              if (widthPowerOfTwo && heightPowerOfTwo) {\n                this.glWrapT = gl.MIRRORED_REPEAT;\n              } else {\n                console.warn(\n                  'You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead'\n                );\n\n                this.glWrapT = gl.CLAMP_TO_EDGE;\n              }\n            } else {\n              // falling back to default if didn't get a proper mode\n              this.glWrapT = gl.CLAMP_TO_EDGE;\n            }\n\n            this.bindTexture();\n            gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, this.glWrapS);\n            gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, this.glWrapT);\n            this.unbindTexture();\n          };\n          var _default = _main.default.Texture;\n          exports.default = _default;\n        },\n        { '../core/constants': 43, '../core/main': 50 }\n      ],\n      107: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          function _typeof(obj) {\n            if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {\n              _typeof = function _typeof(obj) {\n                return typeof obj;\n              };\n            } else {\n              _typeof = function _typeof(obj) {\n                return obj &&\n                  typeof Symbol === 'function' &&\n                  obj.constructor === Symbol &&\n                  obj !== Symbol.prototype\n                  ? 'symbol'\n                  : typeof obj;\n              };\n            }\n            return _typeof(obj);\n          }\n          var _main = _interopRequireDefault(_dereq_('../core/main'));\n          var constants = _interopRequireWildcard(_dereq_('../core/constants'));\n          _dereq_('./p5.Shader');\n          _dereq_('./p5.RendererGL.Retained');\n          function _getRequireWildcardCache() {\n            if (typeof WeakMap !== 'function') return null;\n            var cache = new WeakMap();\n            _getRequireWildcardCache = function _getRequireWildcardCache() {\n              return cache;\n            };\n            return cache;\n          }\n          function _interopRequireWildcard(obj) {\n            if (obj && obj.__esModule) {\n              return obj;\n            }\n            if (obj === null || (_typeof(obj) !== 'object' && typeof obj !== 'function')) {\n              return { default: obj };\n            }\n            var cache = _getRequireWildcardCache();\n            if (cache && cache.has(obj)) {\n              return cache.get(obj);\n            }\n            var newObj = {};\n            var hasPropertyDescriptor =\n              Object.defineProperty && Object.getOwnPropertyDescriptor;\n            for (var key in obj) {\n              if (Object.prototype.hasOwnProperty.call(obj, key)) {\n                var desc = hasPropertyDescriptor\n                  ? Object.getOwnPropertyDescriptor(obj, key)\n                  : null;\n                if (desc && (desc.get || desc.set)) {\n                  Object.defineProperty(newObj, key, desc);\n                } else {\n                  newObj[key] = obj[key];\n                }\n              }\n            }\n            newObj.default = obj;\n            if (cache) {\n              cache.set(obj, newObj);\n            }\n            return newObj;\n          }\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n\n          // Text/Typography\n          // @TODO:\n          _main.default.RendererGL.prototype._applyTextProperties = function() {\n            //@TODO finish implementation\n            //console.error('text commands not yet implemented in webgl');\n          };\n\n          _main.default.RendererGL.prototype.textWidth = function(s) {\n            if (this._isOpenType()) {\n              return this._textFont._textWidth(s, this._textSize);\n            }\n\n            return 0; // TODO: error\n          };\n\n          // rendering constants\n\n          // the number of rows/columns dividing each glyph\n          var charGridWidth = 9;\n          var charGridHeight = charGridWidth;\n\n          // size of the image holding the bezier stroke info\n          var strokeImageWidth = 64;\n          var strokeImageHeight = 64;\n\n          // size of the image holding the stroke indices for each row/col\n          var gridImageWidth = 64;\n          var gridImageHeight = 64;\n\n          // size of the image holding the offset/length of each row/col stripe\n          var cellImageWidth = 64;\n          var cellImageHeight = 64;\n\n          /**\n           * @private\n           * @class ImageInfos\n           * @param {Integer} width\n           * @param {Integer} height\n           *\n           * the ImageInfos class holds a list of ImageDatas of a given size.\n           */\n          function ImageInfos(width, height) {\n            this.width = width;\n            this.height = height;\n            this.infos = []; // the list of images\n\n            /**\n             *\n             * @method findImage\n             * @param {Integer} space\n             * @return {Object} contains the ImageData, and pixel index into that\n             *                  ImageData where the free space was allocated.\n             *\n             * finds free space of a given size in the ImageData list\n             */\n            this.findImage = function(space) {\n              var imageSize = this.width * this.height;\n              if (space > imageSize) throw new Error('font is too complex to render in 3D');\n\n              // search through the list of images, looking for one with\n              // anough unused space.\n              var imageInfo, imageData;\n              for (var ii = this.infos.length - 1; ii >= 0; --ii) {\n                var imageInfoTest = this.infos[ii];\n                if (imageInfoTest.index + space < imageSize) {\n                  // found one\n                  imageInfo = imageInfoTest;\n                  imageData = imageInfoTest.imageData;\n                  break;\n                }\n              }\n\n              if (!imageInfo) {\n                try {\n                  // create a new image\n                  imageData = new ImageData(this.width, this.height);\n                } catch (err) {\n                  // for browsers that don't support ImageData constructors (ie IE11)\n                  // create an ImageData using the old method\n                  var canvas = document.getElementsByTagName('canvas')[0];\n                  var created = !canvas;\n                  if (!canvas) {\n                    // create a temporary canvas\n                    canvas = document.createElement('canvas');\n                    canvas.style.display = 'none';\n                    document.body.appendChild(canvas);\n                  }\n                  var ctx = canvas.getContext('2d');\n                  if (ctx) {\n                    imageData = ctx.createImageData(this.width, this.height);\n                  }\n                  if (created) {\n                    // distroy the temporary canvas, if necessary\n                    document.body.removeChild(canvas);\n                  }\n                }\n                // construct & dd the new image info\n                imageInfo = { index: 0, imageData: imageData };\n                this.infos.push(imageInfo);\n              }\n\n              var index = imageInfo.index;\n              imageInfo.index += space; // move to the start of the next image\n              imageData._dirty = true;\n              return { imageData: imageData, index: index };\n            };\n          }\n\n          /**\n           * @function setPixel\n           * @param {Object} imageInfo\n           * @param {Number} r\n           * @param {Number} g\n           * @param {Number} b\n           * @param {Number} a\n           *\n           * writes the next pixel into an indexed ImageData\n           */\n          function setPixel(imageInfo, r, g, b, a) {\n            var imageData = imageInfo.imageData;\n            var pixels = imageData.data;\n            var index = imageInfo.index++ * 4;\n            pixels[index++] = r;\n            pixels[index++] = g;\n            pixels[index++] = b;\n            pixels[index++] = a;\n          }\n\n          var SQRT3 = Math.sqrt(3);\n\n          /**\n           * @private\n           * @class FontInfo\n           * @param {Object} font an opentype.js font object\n           *\n           * contains cached images and glyph information for an opentype font\n           */\n          var FontInfo = function FontInfo(font) {\n            this.font = font;\n            // the bezier curve coordinates\n            this.strokeImageInfos = new ImageInfos(strokeImageWidth, strokeImageHeight);\n            // lists of curve indices for each row/column slice\n            this.colDimImageInfos = new ImageInfos(gridImageWidth, gridImageHeight);\n            this.rowDimImageInfos = new ImageInfos(gridImageWidth, gridImageHeight);\n            // the offset & length of each row/col slice in the glyph\n            this.colCellImageInfos = new ImageInfos(cellImageWidth, cellImageHeight);\n            this.rowCellImageInfos = new ImageInfos(cellImageWidth, cellImageHeight);\n\n            // the cached information for each glyph\n            this.glyphInfos = {};\n\n            /**\n             * @method getGlyphInfo\n             * @param {Glyph} glyph the x positions of points in the curve\n             * @returns {Object} the glyphInfo for that glyph\n             *\n             * calculates rendering info for a glyph, including the curve information,\n             * row & column stripes compiled into textures.\n             */\n\n            this.getGlyphInfo = function(glyph) {\n              // check the cache\n              var gi = this.glyphInfos[glyph.index];\n              if (gi) return gi;\n\n              // get the bounding box of the glyph from opentype.js\n              var bb = glyph.getBoundingBox();\n              var xMin = bb.x1;\n              var yMin = bb.y1;\n              var gWidth = bb.x2 - xMin;\n              var gHeight = bb.y2 - yMin;\n              var cmds = glyph.path.commands;\n              // don't bother rendering invisible glyphs\n              if (gWidth === 0 || gHeight === 0 || !cmds.length) {\n                return (this.glyphInfos[glyph.index] = {});\n              }\n\n              var i;\n              var strokes = []; // the strokes in this glyph\n              var rows = []; // the indices of strokes in each row\n              var cols = []; // the indices of strokes in each column\n              for (i = charGridWidth - 1; i >= 0; --i) {\n                cols.push([]);\n              }\n              for (i = charGridHeight - 1; i >= 0; --i) {\n                rows.push([]);\n              }\n\n              /**\n               * @function push\n               * @param {Number[]} xs the x positions of points in the curve\n               * @param {Number[]} ys the y positions of points in the curve\n               * @param {Object} v    the curve information\n               *\n               * adds a curve to the rows & columns that it intersects with\n               */\n              function push(xs, ys, v) {\n                var index = strokes.length; // the index of this stroke\n                strokes.push(v); // add this stroke to the list\n\n                /**\n                 * @function minMax\n                 * @param {Number[]} rg the list of values to compare\n                 * @param {Number} min the initial minimum value\n                 * @param {Number} max the initial maximum value\n                 *\n                 * find the minimum & maximum value in a list of values\n                 */\n                function minMax(rg, min, max) {\n                  for (var _i = rg.length; _i-- > 0; ) {\n                    var _v = rg[_i];\n                    if (min > _v) min = _v;\n                    if (max < _v) max = _v;\n                  }\n                  return { min: min, max: max };\n                }\n\n                // loop through the rows & columns that the curve intersects\n                // adding the curve to those slices\n                var mmX = minMax(xs, 1, 0);\n                var ixMin = Math.max(Math.floor(mmX.min * charGridWidth), 0);\n                var ixMax = Math.min(Math.ceil(mmX.max * charGridWidth), charGridWidth);\n                for (var iCol = ixMin; iCol < ixMax; ++iCol) {\n                  cols[iCol].push(index);\n                }\n\n                var mmY = minMax(ys, 1, 0);\n                var iyMin = Math.max(Math.floor(mmY.min * charGridHeight), 0);\n                var iyMax = Math.min(Math.ceil(mmY.max * charGridHeight), charGridHeight);\n\n                for (var iRow = iyMin; iRow < iyMax; ++iRow) {\n                  rows[iRow].push(index);\n                }\n              }\n\n              /**\n               * @function clamp\n               * @param {Number} v the value to clamp\n               * @param {Number} min the minimum value\n               * @param {Number} max the maxmimum value\n               *\n               * clamps a value between a minimum & maximum value\n               */\n              function clamp(v, min, max) {\n                if (v < min) return min;\n                if (v > max) return max;\n                return v;\n              }\n\n              /**\n               * @function byte\n               * @param {Number} v the value to scale\n               *\n               * converts a floating-point number in the range 0-1 to a byte 0-255\n               */\n              function byte(v) {\n                return clamp(255 * v, 0, 255);\n              }\n\n              /**\n               * @private\n               * @class Cubic\n               * @param {Number} p0 the start point of the curve\n               * @param {Number} c0 the first control point\n               * @param {Number} c1 the second control point\n               * @param {Number} p1 the end point\n               *\n               * a cubic curve\n               */\n              function Cubic(p0, c0, c1, p1) {\n                this.p0 = p0;\n                this.c0 = c0;\n                this.c1 = c1;\n                this.p1 = p1;\n\n                /**\n                 * @method toQuadratic\n                 * @return {Object} the quadratic approximation\n                 *\n                 * converts the cubic to a quadtratic approximation by\n                 * picking an appropriate quadratic control point\n                 */\n                this.toQuadratic = function() {\n                  return {\n                    x: this.p0.x,\n                    y: this.p0.y,\n                    x1: this.p1.x,\n                    y1: this.p1.y,\n                    cx: ((this.c0.x + this.c1.x) * 3 - (this.p0.x + this.p1.x)) / 4,\n                    cy: ((this.c0.y + this.c1.y) * 3 - (this.p0.y + this.p1.y)) / 4\n                  };\n                };\n\n                /**\n                 * @method quadError\n                 * @return {Number} the error\n                 *\n                 * calculates the magnitude of error of this curve's\n                 * quadratic approximation.\n                 */\n                this.quadError = function() {\n                  return (\n                    _main.default.Vector.sub(\n                      _main.default.Vector.sub(this.p1, this.p0),\n                      _main.default.Vector.mult(\n                        _main.default.Vector.sub(this.c1, this.c0),\n                        3\n                      )\n                    ).mag() / 2\n                  );\n                };\n\n                /**\n                 * @method split\n                 * @param {Number} t the value (0-1) at which to split\n                 * @return {Cubic} the second part of the curve\n                 *\n                 * splits the cubic into two parts at a point 't' along the curve.\n                 * this cubic keeps its start point and its end point becomes the\n                 * point at 't'. the 'end half is returned.\n                 */\n                this.split = function(t) {\n                  var m1 = _main.default.Vector.lerp(this.p0, this.c0, t);\n                  var m2 = _main.default.Vector.lerp(this.c0, this.c1, t);\n                  var mm1 = _main.default.Vector.lerp(m1, m2, t);\n\n                  this.c1 = _main.default.Vector.lerp(this.c1, this.p1, t);\n                  this.c0 = _main.default.Vector.lerp(m2, this.c1, t);\n                  var pt = _main.default.Vector.lerp(mm1, this.c0, t);\n                  var part1 = new Cubic(this.p0, m1, mm1, pt);\n                  this.p0 = pt;\n                  return part1;\n                };\n\n                /**\n                 * @method splitInflections\n                 * @return {Cubic[]} the non-inflecting pieces of this cubic\n                 *\n                 * returns an array containing 0, 1 or 2 cubics split resulting\n                 * from splitting this cubic at its inflection points.\n                 * this cubic is (potentially) altered and returned in the list.\n                 */\n                this.splitInflections = function() {\n                  var a = _main.default.Vector.sub(this.c0, this.p0);\n                  var b = _main.default.Vector.sub(\n                    _main.default.Vector.sub(this.c1, this.c0),\n                    a\n                  );\n                  var c = _main.default.Vector.sub(\n                    _main.default.Vector.sub(_main.default.Vector.sub(this.p1, this.c1), a),\n                    _main.default.Vector.mult(b, 2)\n                  );\n\n                  var cubics = [];\n\n                  // find the derivative coefficients\n                  var A = b.x * c.y - b.y * c.x;\n                  if (A !== 0) {\n                    var B = a.x * c.y - a.y * c.x;\n                    var C = a.x * b.y - a.y * b.x;\n                    var disc = B * B - 4 * A * C;\n                    if (disc >= 0) {\n                      if (A < 0) {\n                        A = -A;\n                        B = -B;\n                        C = -C;\n                      }\n\n                      var Q = Math.sqrt(disc);\n                      var t0 = (-B - Q) / (2 * A); // the first inflection point\n                      var t1 = (-B + Q) / (2 * A); // the second inflection point\n\n                      // test if the first inflection point lies on the curve\n                      if (t0 > 0 && t0 < 1) {\n                        // split at the first inflection point\n                        cubics.push(this.split(t0));\n                        // scale t2 into the second part\n                        t1 = 1 - (1 - t1) / (1 - t0);\n                      }\n\n                      // test if the second inflection point lies on the curve\n                      if (t1 > 0 && t1 < 1) {\n                        // split at the second inflection point\n                        cubics.push(this.split(t1));\n                      }\n                    }\n                  }\n\n                  cubics.push(this);\n                  return cubics;\n                };\n              }\n\n              /**\n               * @function cubicToQuadratics\n               * @param {Number} x0\n               * @param {Number} y0\n               * @param {Number} cx0\n               * @param {Number} cy0\n               * @param {Number} cx1\n               * @param {Number} cy1\n               * @param {Number} x1\n               * @param {Number} y1\n               * @returns {Cubic[]} an array of cubics whose quadratic approximations\n               *                    closely match the civen cubic.\n               *\n               * converts a cubic curve to a list of quadratics.\n               */\n              function cubicToQuadratics(x0, y0, cx0, cy0, cx1, cy1, x1, y1) {\n                // create the Cubic object and split it at its inflections\n                var cubics = new Cubic(\n                  new _main.default.Vector(x0, y0),\n                  new _main.default.Vector(cx0, cy0),\n                  new _main.default.Vector(cx1, cy1),\n                  new _main.default.Vector(x1, y1)\n                ).splitInflections();\n\n                var qs = []; // the final list of quadratics\n                var precision = 30 / SQRT3;\n\n                // for each of the non-inflected pieces of the original cubic\n                var _iteratorNormalCompletion = true;\n                var _didIteratorError = false;\n                var _iteratorError = undefined;\n                try {\n                  for (\n                    var _iterator = cubics[Symbol.iterator](), _step;\n                    !(_iteratorNormalCompletion = (_step = _iterator.next()).done);\n                    _iteratorNormalCompletion = true\n                  ) {\n                    var cubic = _step.value;\n                    // the cubic is iteratively split in 3 pieces:\n                    // the first piece is accumulated in 'qs', the result.\n                    // the last piece is accumulated in 'tail', temporarily.\n                    // the middle piece is repeatedly split again, while necessary.\n                    var tail = [];\n\n                    var t3 = void 0;\n                    for (;;) {\n                      // calculate this cubic's precision\n                      t3 = precision / cubic.quadError();\n                      if (t3 >= 0.5 * 0.5 * 0.5) {\n                        break; // not too bad, we're done\n                      }\n\n                      // find a split point based on the error\n                      var t = Math.pow(t3, 1.0 / 3.0);\n                      // split the cubic in 3\n                      var start = cubic.split(t);\n                      var middle = cubic.split(1 - t / (1 - t));\n\n                      qs.push(start); // the first part\n                      tail.push(cubic); // the last part\n                      cubic = middle; // iterate on the middle piece\n                    }\n\n                    if (t3 < 1) {\n                      // a little excess error, split the middle in two\n                      qs.push(cubic.split(0.5));\n                    }\n                    // add the middle piece to the result\n                    qs.push(cubic);\n\n                    // finally add the tail, reversed, onto the result\n                    Array.prototype.push.apply(qs, tail.reverse());\n                  }\n                } catch (err) {\n                  _didIteratorError = true;\n                  _iteratorError = err;\n                } finally {\n                  try {\n                    if (!_iteratorNormalCompletion && _iterator.return != null) {\n                      _iterator.return();\n                    }\n                  } finally {\n                    if (_didIteratorError) {\n                      throw _iteratorError;\n                    }\n                  }\n                }\n\n                return qs;\n              }\n\n              /**\n               * @function pushLine\n               * @param {Number} x0\n               * @param {Number} y0\n               * @param {Number} x1\n               * @param {Number} y1\n               *\n               * add a straight line to the row/col grid of a glyph\n               */\n              function pushLine(x0, y0, x1, y1) {\n                var mx = (x0 + x1) / 2;\n                var my = (y0 + y1) / 2;\n                push([x0, x1], [y0, y1], { x: x0, y: y0, cx: mx, cy: my });\n              }\n\n              /**\n               * @function samePoint\n               * @param {Number} x0\n               * @param {Number} y0\n               * @param {Number} x1\n               * @param {Number} y1\n               * @return {Boolean} true if the two points are sufficiently close\n               *\n               * tests if two points are close enough to be considered the same\n               */\n              function samePoint(x0, y0, x1, y1) {\n                return Math.abs(x1 - x0) < 0.00001 && Math.abs(y1 - y0) < 0.00001;\n              }\n\n              var x0, y0, xs, ys;\n              var _iteratorNormalCompletion2 = true;\n              var _didIteratorError2 = false;\n              var _iteratorError2 = undefined;\n              try {\n                for (\n                  var _iterator2 = cmds[Symbol.iterator](), _step2;\n                  !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done);\n                  _iteratorNormalCompletion2 = true\n                ) {\n                  var cmd = _step2.value;\n                  // scale the coordinates to the range 0-1\n                  var x1 = (cmd.x - xMin) / gWidth;\n                  var y1 = (cmd.y - yMin) / gHeight;\n\n                  // don't bother if this point is the same as the last\n                  if (samePoint(x0, y0, x1, y1)) continue;\n\n                  switch (cmd.type) {\n                    case 'M': {\n                      // move\n                      xs = x1;\n                      ys = y1;\n                      break;\n                    }\n                    case 'L': {\n                      // line\n                      pushLine(x0, y0, x1, y1);\n                      break;\n                    }\n                    case 'Q': {\n                      // quadratic\n                      var cx = (cmd.x1 - xMin) / gWidth;\n                      var cy = (cmd.y1 - yMin) / gHeight;\n                      push([x0, x1, cx], [y0, y1, cy], { x: x0, y: y0, cx: cx, cy: cy });\n                      break;\n                    }\n                    case 'Z': {\n                      // end\n                      if (!samePoint(x0, y0, xs, ys)) {\n                        // add an extra line closing the loop, if necessary\n                        pushLine(x0, y0, xs, ys);\n                        strokes.push({ x: xs, y: ys });\n                      } else {\n                        strokes.push({ x: x0, y: y0 });\n                      }\n                      break;\n                    }\n                    case 'C': {\n                      // cubic\n                      var cx1 = (cmd.x1 - xMin) / gWidth;\n                      var cy1 = (cmd.y1 - yMin) / gHeight;\n                      var cx2 = (cmd.x2 - xMin) / gWidth;\n                      var cy2 = (cmd.y2 - yMin) / gHeight;\n                      var qs = cubicToQuadratics(x0, y0, cx1, cy1, cx2, cy2, x1, y1);\n                      for (var iq = 0; iq < qs.length; iq++) {\n                        var q = qs[iq].toQuadratic();\n                        push([q.x, q.x1, q.cx], [q.y, q.y1, q.cy], q);\n                      }\n                      break;\n                    }\n                    default:\n                      throw new Error('unknown command type: '.concat(cmd.type));\n                  }\n\n                  x0 = x1;\n                  y0 = y1;\n                }\n\n                // allocate space for the strokes\n              } catch (err) {\n                _didIteratorError2 = true;\n                _iteratorError2 = err;\n              } finally {\n                try {\n                  if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n                    _iterator2.return();\n                  }\n                } finally {\n                  if (_didIteratorError2) {\n                    throw _iteratorError2;\n                  }\n                }\n              }\n              var strokeCount = strokes.length;\n              var strokeImageInfo = this.strokeImageInfos.findImage(strokeCount);\n              var strokeOffset = strokeImageInfo.index;\n\n              // fill the stroke image\n              for (var il = 0; il < strokeCount; ++il) {\n                var s = strokes[il];\n                setPixel(strokeImageInfo, byte(s.x), byte(s.y), byte(s.cx), byte(s.cy));\n              }\n\n              /**\n               * @function layout\n               * @param {Number[][]} dim\n               * @param {ImageInfo[]} dimImageInfos\n               * @param {ImageInfo[]} cellImageInfos\n               * @return {Object}\n               *\n               * lays out the curves in a dimension (row or col) into two\n               * images, one for the indices of the curves themselves, and\n               * one containing the offset and length of those index spans.\n               */\n              function layout(dim, dimImageInfos, cellImageInfos) {\n                var dimLength = dim.length; // the number of slices in this dimension\n                var dimImageInfo = dimImageInfos.findImage(dimLength);\n                var dimOffset = dimImageInfo.index;\n                // calculate the total number of stroke indices in this dimension\n                var totalStrokes = 0;\n                for (var id = 0; id < dimLength; ++id) {\n                  totalStrokes += dim[id].length;\n                }\n\n                // allocate space for the stroke indices\n                var cellImageInfo = cellImageInfos.findImage(totalStrokes);\n\n                // for each slice in the glyph\n                for (var _i2 = 0; _i2 < dimLength; ++_i2) {\n                  var strokeIndices = dim[_i2];\n                  var _strokeCount = strokeIndices.length;\n                  var cellLineIndex = cellImageInfo.index;\n\n                  // write the offset and count into the glyph slice image\n                  setPixel(\n                    dimImageInfo,\n                    cellLineIndex >> 7,\n                    cellLineIndex & 0x7f,\n                    _strokeCount >> 7,\n                    _strokeCount & 0x7f\n                  );\n\n                  // for each stroke index in that slice\n                  for (var iil = 0; iil < _strokeCount; ++iil) {\n                    // write the stroke index into the slice's image\n                    var strokeIndex = strokeIndices[iil] + strokeOffset;\n                    setPixel(cellImageInfo, strokeIndex >> 7, strokeIndex & 0x7f, 0, 0);\n                  }\n                }\n\n                return {\n                  cellImageInfo: cellImageInfo,\n                  dimOffset: dimOffset,\n                  dimImageInfo: dimImageInfo\n                };\n              }\n\n              // initialize the info for this glyph\n              gi = this.glyphInfos[glyph.index] = {\n                glyph: glyph,\n                uGlyphRect: [bb.x1, -bb.y1, bb.x2, -bb.y2],\n                strokeImageInfo: strokeImageInfo,\n                strokes: strokes,\n                colInfo: layout(cols, this.colDimImageInfos, this.colCellImageInfos),\n                rowInfo: layout(rows, this.rowDimImageInfos, this.rowCellImageInfos)\n              };\n\n              gi.uGridOffset = [gi.colInfo.dimOffset, gi.rowInfo.dimOffset];\n              return gi;\n            };\n          };\n\n          _main.default.RendererGL.prototype._renderText = function(p, line, x, y, maxY) {\n            if (!this._textFont || typeof this._textFont === 'string') {\n              console.log(\n                'WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.'\n              );\n\n              return;\n            }\n            if (y >= maxY || !this._doFill) {\n              return; // don't render lines beyond our maxY position\n            }\n\n            if (!this._isOpenType()) {\n              console.log(\n                'WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported'\n              );\n\n              return p;\n            }\n\n            p.push(); // fix to #803\n\n            // remember this state, so it can be restored later\n            var doStroke = this._doStroke;\n            var drawMode = this.drawMode;\n\n            this._doStroke = false;\n            this.drawMode = constants.TEXTURE;\n\n            // get the cached FontInfo object\n            var font = this._textFont.font;\n            var fontInfo = this._textFont._fontInfo;\n            if (!fontInfo) {\n              fontInfo = this._textFont._fontInfo = new FontInfo(font);\n            }\n\n            // calculate the alignment and move/scale the view accordingly\n            var pos = this._textFont._handleAlignment(this, line, x, y);\n            var fontSize = this._textSize;\n            var scale = fontSize / font.unitsPerEm;\n            this.translate(pos.x, pos.y, 0);\n            this.scale(scale, scale, 1);\n\n            // initialize the font shader\n            var gl = this.GL;\n            var initializeShader = !this._defaultFontShader;\n            var sh = this._getFontShader();\n            sh.init();\n            sh.bindShader(); // first time around, bind the shader fully\n\n            if (initializeShader) {\n              // these are constants, really. just initialize them one-time.\n              sh.setUniform('uGridImageSize', [gridImageWidth, gridImageHeight]);\n              sh.setUniform('uCellsImageSize', [cellImageWidth, cellImageHeight]);\n              sh.setUniform('uStrokeImageSize', [strokeImageWidth, strokeImageHeight]);\n              sh.setUniform('uGridSize', [charGridWidth, charGridHeight]);\n            }\n            this._applyColorBlend(this.curFillColor);\n\n            var g = this.retainedMode.geometry['glyph'];\n            if (!g) {\n              // create the geometry for rendering a quad\n              var geom = (this._textGeom = new _main.default.Geometry(1, 1, function() {\n                for (var i = 0; i <= 1; i++) {\n                  for (var j = 0; j <= 1; j++) {\n                    this.vertices.push(new _main.default.Vector(j, i, 0));\n                    this.uvs.push(j, i);\n                  }\n                }\n              }));\n              geom.computeFaces().computeNormals();\n              g = this.createBuffers('glyph', geom);\n            }\n\n            // bind the shader buffers\n            var _iteratorNormalCompletion3 = true;\n            var _didIteratorError3 = false;\n            var _iteratorError3 = undefined;\n            try {\n              for (\n                var _iterator3 = this.retainedMode.buffers.text[Symbol.iterator](), _step3;\n                !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done);\n                _iteratorNormalCompletion3 = true\n              ) {\n                var buff = _step3.value;\n                buff._prepareBuffer(g, sh);\n              }\n            } catch (err) {\n              _didIteratorError3 = true;\n              _iteratorError3 = err;\n            } finally {\n              try {\n                if (!_iteratorNormalCompletion3 && _iterator3.return != null) {\n                  _iterator3.return();\n                }\n              } finally {\n                if (_didIteratorError3) {\n                  throw _iteratorError3;\n                }\n              }\n            }\n            this._bindBuffer(g.indexBuffer, gl.ELEMENT_ARRAY_BUFFER);\n\n            // this will have to do for now...\n            sh.setUniform('uMaterialColor', this.curFillColor);\n\n            try {\n              var dx = 0; // the x position in the line\n              var glyphPrev = null; // the previous glyph, used for kerning\n              // fetch the glyphs in the line of text\n              var glyphs = font.stringToGlyphs(line);\n              var _iteratorNormalCompletion4 = true;\n              var _didIteratorError4 = false;\n              var _iteratorError4 = undefined;\n              try {\n                for (\n                  var _iterator4 = glyphs[Symbol.iterator](), _step4;\n                  !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done);\n                  _iteratorNormalCompletion4 = true\n                ) {\n                  var glyph = _step4.value;\n                  // kern\n                  if (glyphPrev) dx += font.getKerningValue(glyphPrev, glyph);\n\n                  var gi = fontInfo.getGlyphInfo(glyph);\n                  if (gi.uGlyphRect) {\n                    var rowInfo = gi.rowInfo;\n                    var colInfo = gi.colInfo;\n                    sh.setUniform('uSamplerStrokes', gi.strokeImageInfo.imageData);\n                    sh.setUniform('uSamplerRowStrokes', rowInfo.cellImageInfo.imageData);\n                    sh.setUniform('uSamplerRows', rowInfo.dimImageInfo.imageData);\n                    sh.setUniform('uSamplerColStrokes', colInfo.cellImageInfo.imageData);\n                    sh.setUniform('uSamplerCols', colInfo.dimImageInfo.imageData);\n                    sh.setUniform('uGridOffset', gi.uGridOffset);\n                    sh.setUniform('uGlyphRect', gi.uGlyphRect);\n                    sh.setUniform('uGlyphOffset', dx);\n\n                    sh.bindTextures(); // afterwards, only textures need updating\n\n                    // draw it\n                    gl.drawElements(gl.TRIANGLES, 6, this.GL.UNSIGNED_SHORT, 0);\n                  }\n                  dx += glyph.advanceWidth;\n                  glyphPrev = glyph;\n                }\n              } catch (err) {\n                _didIteratorError4 = true;\n                _iteratorError4 = err;\n              } finally {\n                try {\n                  if (!_iteratorNormalCompletion4 && _iterator4.return != null) {\n                    _iterator4.return();\n                  }\n                } finally {\n                  if (_didIteratorError4) {\n                    throw _iteratorError4;\n                  }\n                }\n              }\n            } finally {\n              // clean up\n              sh.unbindShader();\n\n              this._doStroke = doStroke;\n              this.drawMode = drawMode;\n\n              p.pop();\n            }\n\n            return p;\n          };\n        },\n        {\n          '../core/constants': 43,\n          '../core/main': 50,\n          './p5.RendererGL.Retained': 103,\n          './p5.Shader': 105\n        }\n      ],\n      108: [\n        function(_dereq_, module, exports) {\n          module.exports = {\n            fes: {\n              autoplay:\n                \"The media that tried to play (with '{{src}}') wasn't allowed to by this browser, most likely due to the browser's autoplay policy. Check out {{link}} for more information about why.\",\n              fileLoadError: {\n                bytes:\n                  'It looks like there was a problem loading your file. {{suggestion}}',\n                font: 'It looks like there was a problem loading your font. {{suggestion}}',\n                gif:\n                  'There was some trouble loading your GIF. Make sure that your GIF is using 87a or 89a encoding.',\n                image:\n                  'It looks like there was a problem loading your image. {{suggestion}}',\n                json:\n                  'It looks like there was a problem loading your JSON file. {{suggestion}}',\n                large:\n                  \"If your large file isn't fetched successfully, we recommend splitting the file into smaller segments and fetching those.\",\n                strings:\n                  'It looks like there was a problem loading your text file. {{suggestion}}',\n                suggestion:\n                  'Try checking if the file path ({{filePath}}) is correct, hosting the file online, or running a local server. (More info at {{link}})',\n                table:\n                  'It looks like there was a problem loading your table file. {{suggestion}}',\n                xml:\n                  'It looks like there was a problem loading your XML file. {{suggestion}}'\n              },\n              misusedTopLevel:\n                \"Did you just try to use p5.js's {{symbolName}} {{symbolType}}? If so, you may want to move it into your sketch's setup() function.\\n\\nFor more details, see: {{link}}\",\n              pre: '🌸 p5.js says: {{message}}',\n              welcome:\n                'Welcome! This is your friendly debugger. To turn me off, switch to using p5.min.js.'\n            }\n          };\n        },\n        {}\n      ],\n      109: [\n        function(_dereq_, module, exports) {\n          module.exports = {\n            fes: {\n              autoplay:\n                \"Su browser impidío un medio tocar (de '{{src}}'), posiblemente porque las reglas de autoplay. Para aprender más, visite {{link}}.\",\n              fileLoadError: {\n                bytes: '',\n                font: '',\n                gif: '',\n                image: '',\n                json: '',\n                large: '',\n                strings: '',\n                suggestion: '',\n                table: '',\n                xml: ''\n              },\n              misusedTopLevel: '',\n              pre: '🌸 p5.js dice: {{message}}',\n              welcome: ''\n            }\n          };\n        },\n        {}\n      ],\n      110: [\n        function(_dereq_, module, exports) {\n          'use strict';\n          Object.defineProperty(exports, '__esModule', { value: true });\n          exports.default = void 0;\n          var _translation = _interopRequireDefault(_dereq_('./en/translation'));\n          var _translation2 = _interopRequireDefault(_dereq_('./es/translation'));\n          function _interopRequireDefault(obj) {\n            return obj && obj.__esModule ? obj : { default: obj };\n          }\n\n          /**\n           * Maps our translations to their language key\n           * (`en` is english, `es` es español)\n           *\n           * `translation` is the namespace we're using for\n           * our initial set of translation strings.\n           */ var _default = {\n            en: {\n              translation: _translation.default\n            },\n\n            es: {\n              translation: _translation2.default\n            }\n          };\n          exports.default = _default;\n        },\n        { './en/translation': 108, './es/translation': 109 }\n      ]\n    },\n    {},\n    [38]\n  )(38);\n});\n"
  },
  {
    "path": "pyp5js/http_local/static/js/pyodide/packages.json",
    "content": "{\"info\": {\"arch\": \"wasm32\", \"platform\": \"Emscripten-1.0\"}, \"packages\": {\"asciitree\": {\"name\": \"asciitree\", \"version\": \"0.3.3\", \"depends\": [], \"imports\": [\"asciitree\"]}, \"astropy\": {\"name\": \"astropy\", \"version\": \"3.2.3\", \"depends\": [\"distutils\", \"numpy\"], \"imports\": [\"astropy\"]}, \"atomicwrites\": {\"name\": \"atomicwrites\", \"version\": \"1.4.0\", \"depends\": [], \"imports\": [\"atomicwrites\"]}, \"attrs\": {\"name\": \"attrs\", \"version\": \"21.2.0\", \"depends\": [\"six\"], \"imports\": [\"attr\"]}, \"autograd\": {\"name\": \"autograd\", \"version\": \"1.3\", \"depends\": [\"numpy\", \"future\"], \"imports\": [\"autograd\"]}, \"beautifulsoup4\": {\"name\": \"beautifulsoup4\", \"version\": \"4.9.3\", \"depends\": [\"soupsieve\"], \"imports\": [\"bs4\"]}, \"biopython\": {\"name\": \"biopython\", \"version\": \"1.79\", \"depends\": [\"numpy\"], \"imports\": [\"Bio\"]}, \"bleach\": {\"name\": \"bleach\", \"version\": \"3.3.0\", \"depends\": [\"webencodings\", \"packaging\", \"six\"], \"imports\": [\"bleach\"]}, \"bokeh\": {\"name\": \"bokeh\", \"version\": \"2.3.3\", \"depends\": [\"distutils\", \"numpy\", \"jinja2\", \"pillow\", \"python-dateutil\", \"six\", \"typing-extensions\", \"pyyaml\"], \"imports\": [\"bokeh\"]}, \"cffi\": {\"name\": \"cffi\", \"version\": \"1.14.6\", \"depends\": [\"pycparser\"], \"imports\": [\"cffi\"]}, \"cffi_example\": {\"name\": \"cffi_example\", \"version\": \"0.1\", \"depends\": [\"cffi\"], \"imports\": [\"cffi_example\"]}, \"clapack\": {\"name\": \"CLAPACK\", \"version\": \"3.2.1\", \"shared_library\": true, \"depends\": [], \"imports\": [\"CLAPACK\"]}, \"cloudpickle\": {\"name\": \"cloudpickle\", \"version\": \"1.6.0\", \"depends\": [], \"imports\": [\"cloudpickle\"]}, \"cssselect\": {\"name\": \"cssselect\", \"version\": \"1.1.0\", \"depends\": [], \"imports\": [\"cssselect\"]}, \"cycler\": {\"name\": \"cycler\", \"version\": \"0.10.0\", \"depends\": [\"six\"], \"imports\": [\"cycler\"]}, \"cytoolz\": {\"name\": \"cytoolz\", \"version\": \"0.11.0\", \"depends\": [\"nose\", \"toolz\"], \"imports\": [\"cytoolz\"]}, \"decorator\": {\"name\": \"decorator\", \"version\": \"5.0.9\", \"depends\": [], \"imports\": [\"decorator\"]}, \"distlib\": {\"name\": \"distlib\", \"version\": \"0.3.1\", \"depends\": [], \"imports\": [\"distlib\"]}, \"distutils\": {\"name\": \"distutils\", \"version\": \"1.0\", \"depends\": [], \"imports\": [\"distutils\"]}, \"docutils\": {\"name\": \"docutils\", \"version\": \"0.17.1\", \"depends\": [], \"imports\": [\"docutils\"]}, \"freesasa\": {\"name\": \"freesasa\", \"version\": \"2.1.0\", \"depends\": [], \"imports\": [\"freesasa\"]}, \"future\": {\"name\": \"future\", \"version\": \"0.18.2\", \"depends\": [], \"imports\": [\"future\"]}, \"html5lib\": {\"name\": \"html5lib\", \"version\": \"1.1\", \"depends\": [\"webencodings\", \"six\"], \"imports\": [\"html5lib\"]}, \"imageio\": {\"name\": \"imageio\", \"version\": \"2.9.0\", \"depends\": [\"numpy\", \"pillow\"], \"imports\": [\"imageio\"]}, \"iniconfig\": {\"name\": \"iniconfig\", \"version\": \"1.1.1\", \"depends\": [], \"imports\": [\"iniconfig\"]}, \"jedi\": {\"name\": \"jedi\", \"version\": \"0.18.0\", \"depends\": [\"parso\"], \"imports\": [\"jedi\"]}, \"jinja2\": {\"name\": \"Jinja2\", \"version\": \"3.0.1\", \"depends\": [\"markupsafe\"], \"imports\": [\"jinja2\"]}, \"joblib\": {\"name\": \"joblib\", \"version\": \"0.11\", \"depends\": [\"distutils\"], \"imports\": [\"joblib\"]}, \"kiwisolver\": {\"name\": \"kiwisolver\", \"version\": \"1.3.1\", \"depends\": [], \"imports\": [\"kiwisolver\"]}, \"lxml\": {\"name\": \"lxml\", \"version\": \"4.4.1\", \"depends\": [\"beautifulsoup4\", \"cssselect\", \"html5lib\"], \"imports\": [\"lxml\", \"lxml.etree\", \"lxml.objectify\"]}, \"markupsafe\": {\"name\": \"MarkupSafe\", \"version\": \"2.0.1\", \"depends\": [], \"imports\": [\"markupsafe\"]}, \"matplotlib\": {\"name\": \"matplotlib\", \"version\": \"3.3.3\", \"depends\": [\"distutils\", \"cycler\", \"kiwisolver\", \"numpy\", \"pillow\", \"pyparsing\", \"python-dateutil\", \"pytz\"], \"imports\": [\"matplotlib\", \"mpl_toolkits\"]}, \"micropip\": {\"name\": \"micropip\", \"version\": \"0.1\", \"depends\": [\"pyparsing\", \"packaging\", \"distutils\"], \"imports\": [\"micropip\"]}, \"mne\": {\"name\": \"mne\", \"version\": \"0.23.0\", \"depends\": [\"distutils\", \"numpy\", \"scipy\"], \"imports\": [\"mne\"]}, \"more-itertools\": {\"name\": \"more-itertools\", \"version\": \"8.8.0\", \"depends\": [], \"imports\": [\"more_itertools\"]}, \"mpmath\": {\"name\": \"mpmath\", \"version\": \"1.2.1\", \"depends\": [], \"imports\": [\"mpmath\"]}, \"msgpack\": {\"name\": \"msgpack\", \"version\": \"1.0.2\", \"depends\": [], \"imports\": [\"msgpack\"]}, \"networkx\": {\"name\": \"networkx\", \"version\": \"2.5.1\", \"depends\": [\"decorator\", \"setuptools\", \"matplotlib\", \"numpy\"], \"imports\": [\"networkx\", \"networkx.algorithms\", \"networkx.algorithms.approximation\", \"networkx.algorithms.assortativity\", \"networkx.algorithms.bipartite\", \"networkx.algorithms.centrality\", \"networkx.algorithms.chordal\", \"networkx.algorithms.coloring\", \"networkx.algorithms.community\", \"networkx.algorithms.components\", \"networkx.algorithms.connectivity\", \"networkx.algorithms.flow\", \"networkx.algorithms.isomorphism\", \"networkx.algorithms.link_analysis\", \"networkx.algorithms.node_classification\", \"networkx.algorithms.operators\", \"networkx.algorithms.shortest_paths\", \"networkx.algorithms.traversal\", \"networkx.algorithms.tree\", \"networkx.classes\", \"networkx.drawing\", \"networkx.generators\", \"networkx.linalg\", \"networkx.readwrite\", \"networkx.readwrite.json_graph\", \"networkx.utils\"]}, \"nlopt\": {\"name\": \"nlopt\", \"version\": \"2.7.0\", \"depends\": [\"numpy\"], \"imports\": [\"nlopt\"]}, \"nltk\": {\"name\": \"nltk\", \"version\": \"3.6.2\", \"depends\": [\"regex\"], \"imports\": [\"nltk\", \"sqlite3\"]}, \"nose\": {\"name\": \"nose\", \"version\": \"1.3.7\", \"depends\": [\"setuptools\"], \"imports\": [\"nose\"]}, \"numcodecs\": {\"name\": \"numcodecs\", \"version\": \"0.8.0\", \"depends\": [\"numpy\", \"msgpack\"], \"imports\": [\"numcodecs\"]}, \"numpy\": {\"name\": \"numpy\", \"version\": \"1.17.5\", \"depends\": [], \"imports\": [\"numpy\"]}, \"optlang\": {\"name\": \"optlang\", \"version\": \"1.5.2\", \"depends\": [\"sympy\", \"six\", \"swiglpk\"], \"imports\": [\"optlang\", \"optlang.glpk_interface\", \"optlang.symbolics\"]}, \"packaging\": {\"name\": \"packaging\", \"version\": \"21.0\", \"depends\": [\"pyparsing\"], \"imports\": [\"packaging\"]}, \"pandas\": {\"name\": \"pandas\", \"version\": \"1.0.5\", \"depends\": [\"distutils\", \"numpy\", \"python-dateutil\", \"pytz\"], \"imports\": [\"pandas\"]}, \"parso\": {\"name\": \"parso\", \"version\": \"0.8.2\", \"depends\": [], \"imports\": [\"parso\"]}, \"patsy\": {\"name\": \"patsy\", \"version\": \"0.5.1\", \"depends\": [\"numpy\", \"six\"], \"imports\": [\"patsy\"]}, \"pillow\": {\"name\": \"pillow\", \"version\": \"8.3.1\", \"depends\": [], \"imports\": [\"PIL\"]}, \"pluggy\": {\"name\": \"pluggy\", \"version\": \"0.13.1\", \"depends\": [], \"imports\": [\"pluggy\"]}, \"py\": {\"name\": \"py\", \"version\": \"1.9.0\", \"depends\": [], \"imports\": [\"py\", \"py.code\"]}, \"pycparser\": {\"name\": \"pycparser\", \"version\": \"2.20\", \"depends\": [], \"imports\": [\"pycparser\"]}, \"pygments\": {\"name\": \"Pygments\", \"version\": \"2.9.0\", \"depends\": [], \"imports\": [\"pygments\"]}, \"pyodide-interrupts\": {\"name\": \"pyodide-interrupts\", \"version\": \"0.1.1\", \"depends\": [], \"imports\": [\"pyodide_interrupts\"]}, \"pyparsing\": {\"name\": \"pyparsing\", \"version\": \"2.4.7\", \"depends\": [], \"imports\": [\"pyparsing\"]}, \"pyrtl\": {\"name\": \"pyrtl\", \"version\": \"0.10.0\", \"depends\": [\"pyparsing\", \"six\"], \"imports\": [\"pyrtl\"]}, \"pytest\": {\"name\": \"pytest\", \"version\": \"6.2.4\", \"depends\": [\"atomicwrites\", \"attrs\", \"more-itertools\", \"pluggy\", \"py\", \"setuptools\", \"six\", \"iniconfig\"], \"imports\": [\"pytest\"]}, \"python-dateutil\": {\"name\": \"python-dateutil\", \"version\": \"2.8.1\", \"depends\": [\"six\"], \"imports\": [\"dateutil\"]}, \"python-sat\": {\"name\": \"python-sat\", \"version\": \"0.1.6.dev6\", \"depends\": [\"six\"], \"imports\": [\"pysat\"]}, \"pytz\": {\"name\": \"pytz\", \"version\": \"2021.1\", \"depends\": [], \"imports\": [\"pytz\"]}, \"pywavelets\": {\"name\": \"pywavelets\", \"version\": \"1.1.1\", \"depends\": [\"distutils\", \"numpy\", \"matplotlib\", \"scipy\"], \"imports\": [\"pywt\"]}, \"pyyaml\": {\"name\": \"pyyaml\", \"version\": \"5.4.1\", \"depends\": [], \"imports\": [\"yaml\"]}, \"regex\": {\"name\": \"regex\", \"version\": \"2021.7.6\", \"depends\": [], \"imports\": [\"regex\"]}, \"retrying\": {\"name\": \"retrying\", \"version\": \"1.3.3\", \"depends\": [\"six\"], \"imports\": [\"retrying\"]}, \"scikit-image\": {\"name\": \"scikit-image\", \"version\": \"0.15.0\", \"depends\": [\"distutils\", \"numpy\", \"scipy\", \"matplotlib\", \"networkx\", \"pillow\", \"imageio\", \"pywavelets\"], \"imports\": [\"skimage\"]}, \"scikit-learn\": {\"name\": \"scikit-learn\", \"version\": \"0.22.2\", \"depends\": [\"numpy\", \"scipy\", \"joblib\"], \"imports\": [\"sklearn\", \"sklearn.calibration\", \"sklearn.cluster\", \"sklearn.compose\", \"sklearn.covariance\", \"sklearn.cross_decomposition\", \"sklearn.datasets\", \"sklearn.decomposition\", \"sklearn.discriminant_analysis\", \"sklearn.dummy\", \"sklearn.ensemble\", \"sklearn.exceptions\", \"sklearn.externals\", \"sklearn.feature_extraction\", \"sklearn.feature_selection\", \"sklearn.gaussian_process\", \"sklearn.impute\", \"sklearn.isotonic\", \"sklearn.kernel_approximation\", \"sklearn.kernel_ridge\", \"sklearn.linear_model\", \"sklearn.manifold\", \"sklearn.metrics\", \"sklearn.mixture\", \"sklearn.model_selection\", \"sklearn.multiclass\", \"sklearn.multioutput\", \"sklearn.naive_bayes\", \"sklearn.neighbors\", \"sklearn.neural_network\", \"sklearn.pipeline\", \"sklearn.preprocessing\", \"sklearn.random_projection\", \"sklearn.semi_supervised\", \"sklearn.svm\", \"sklearn.tree\", \"sklearn.utils\"]}, \"scipy\": {\"name\": \"scipy\", \"version\": \"0.17.1\", \"depends\": [\"numpy\", \"clapack\"], \"imports\": [\"scipy\", \"scipy.cluster\", \"scipy.constants\", \"scipy.fftpack\", \"scipy.odr\", \"scipy.sparse\", \"scipy.interpolate\", \"scipy.integrate\", \"scipy.linalg\", \"scipy.misc\", \"scipy.ndimage\", \"scipy.spatial\", \"scipy.special\"]}, \"setuptools\": {\"name\": \"setuptools\", \"version\": \"57.1.0\", \"depends\": [\"distutils\", \"pyparsing\"], \"imports\": [\"setuptools\", \"pkg_resources\"]}, \"six\": {\"name\": \"six\", \"version\": \"1.16.0\", \"depends\": [], \"imports\": [\"six\"]}, \"soupsieve\": {\"name\": \"soupsieve\", \"version\": \"2.2.1\", \"depends\": [\"beautifulsoup4\"], \"imports\": [\"soupsieve\"]}, \"statsmodels\": {\"name\": \"statsmodels\", \"version\": \"0.9.0\", \"depends\": [\"distutils\", \"numpy\", \"scipy\", \"pandas\", \"patsy\"], \"imports\": [\"statsmodels\"]}, \"swiglpk\": {\"name\": \"swiglpk\", \"version\": \"4.65.1\", \"depends\": [], \"imports\": [\"swiglpk\"]}, \"sympy\": {\"name\": \"sympy\", \"version\": \"1.8\", \"depends\": [\"distutils\", \"mpmath\"], \"imports\": [\"sympy\"]}, \"test\": {\"name\": \"test\", \"version\": \"1.0\", \"depends\": [], \"imports\": [\"test\"]}, \"toolz\": {\"name\": \"toolz\", \"version\": \"0.11.1\", \"depends\": [], \"imports\": [\"toolz\"]}, \"traits\": {\"name\": \"traits\", \"version\": \"6.2.0\", \"depends\": [], \"imports\": [\"traits\"]}, \"typing-extensions\": {\"name\": \"typing-extensions\", \"version\": \"3.10.0.0\", \"depends\": [], \"imports\": [\"typing_extensions\"]}, \"uncertainties\": {\"name\": \"uncertainties\", \"version\": \"3.1.5\", \"depends\": [\"future\"], \"imports\": [\"uncertainties\"]}, \"webencodings\": {\"name\": \"webencodings\", \"version\": \"0.5.1\", \"depends\": [], \"imports\": [\"webencodings\"]}, \"xlrd\": {\"name\": \"xlrd\", \"version\": \"2.0.1\", \"depends\": [], \"imports\": [\"xlrd\"]}, \"yt\": {\"name\": \"yt\", \"version\": \"3.6.1\", \"depends\": [\"numpy\", \"matplotlib\", \"sympy\", \"setuptools\"], \"imports\": [\"yt\"]}, \"zarr\": {\"name\": \"zarr\", \"version\": \"2.8.3\", \"depends\": [\"numpy\", \"asciitree\", \"numcodecs\"], \"imports\": [\"zarr\"]}}}"
  },
  {
    "path": "pyp5js/http_local/static/js/pyodide/pyodide.asm.js",
    "content": "\t\"use strict\";\n\tlet setImmediate = globalThis.setImmediate;\n\tlet clearImmediate = globalThis.clearImmediate;\n\tlet baseName, fpcGOT, dyncallGOT, fpVal, dcVal;\n\n\nvar _createPyodideModule = (function() {\n  var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;\n  if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;\n  return (\nfunction(_createPyodideModule) {\n  _createPyodideModule = _createPyodideModule || {};\n\nvar Module=typeof _createPyodideModule!==\"undefined\"?_createPyodideModule:{};var readyPromiseResolve,readyPromiseReject;Module[\"ready\"]=new Promise(function(resolve,reject){readyPromiseResolve=resolve;readyPromiseReject=reject});if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0}Module.expectedDataFileDownloads++;(function(){var loadPackage=function(metadata){var PACKAGE_PATH=\"\";if(typeof window===\"object\"){PACKAGE_PATH=window[\"encodeURIComponent\"](window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf(\"/\"))+\"/\")}else if(typeof process===\"undefined\"&&typeof location!==\"undefined\"){PACKAGE_PATH=encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf(\"/\"))+\"/\")}var PACKAGE_NAME=\"build/pyodide.asm.data\";var REMOTE_PACKAGE_BASE=\"pyodide.asm.data\";if(typeof Module[\"locateFilePackage\"]===\"function\"&&!Module[\"locateFile\"]){Module[\"locateFile\"]=Module[\"locateFilePackage\"];err(\"warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)\")}var REMOTE_PACKAGE_NAME=Module[\"locateFile\"]?Module[\"locateFile\"](REMOTE_PACKAGE_BASE,\"\"):REMOTE_PACKAGE_BASE;var REMOTE_PACKAGE_SIZE=metadata[\"remote_package_size\"];var PACKAGE_UUID=metadata[\"package_uuid\"];function fetchRemotePackage(packageName,packageSize,callback,errback){if(typeof process===\"object\"){require(\"fs\").readFile(packageName,function(err,contents){if(err){errback(err)}else{callback(contents.buffer)}});return}var xhr=new XMLHttpRequest;xhr.open(\"GET\",packageName,true);xhr.responseType=\"arraybuffer\";xhr.onprogress=function(event){var url=packageName;var size=packageSize;if(event.total)size=event.total;if(event.loaded){if(!xhr.addedTotal){xhr.addedTotal=true;if(!Module.dataFileDownloads)Module.dataFileDownloads={};Module.dataFileDownloads[url]={loaded:event.loaded,total:size}}else{Module.dataFileDownloads[url].loaded=event.loaded}var total=0;var loaded=0;var num=0;for(var download in Module.dataFileDownloads){var data=Module.dataFileDownloads[download];total+=data.total;loaded+=data.loaded;num++}total=Math.ceil(total*Module.expectedDataFileDownloads/num);if(Module[\"setStatus\"])Module[\"setStatus\"](\"Downloading data... (\"+loaded+\"/\"+total+\")\")}else if(!Module.dataFileDownloads){if(Module[\"setStatus\"])Module[\"setStatus\"](\"Downloading data...\")}};xhr.onerror=function(event){throw new Error(\"NetworkError for: \"+packageName)};xhr.onload=function(event){if(xhr.status==200||xhr.status==304||xhr.status==206||xhr.status==0&&xhr.response){var packageData=xhr.response;callback(packageData)}else{throw new Error(xhr.statusText+\" : \"+xhr.responseURL)}};xhr.send(null)}function handleError(error){console.error(\"package error:\",error)}var fetchedCallback=null;var fetched=Module[\"getPreloadedPackage\"]?Module[\"getPreloadedPackage\"](REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE):null;if(!fetched)fetchRemotePackage(REMOTE_PACKAGE_NAME,REMOTE_PACKAGE_SIZE,function(data){if(fetchedCallback){fetchedCallback(data);fetchedCallback=null}else{fetched=data}},handleError);function runWithFS(){function assert(check,msg){if(!check)throw msg+(new Error).stack}Module[\"FS_createPath\"](\"/\",\"lib\",true,true);Module[\"FS_createPath\"](\"/lib\",\"python3.9\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"site-packages\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"importlib\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"asyncio\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"collections\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"concurrent\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/concurrent\",\"futures\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"encodings\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"email\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/email\",\"mime\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"html\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"json\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"http\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"xmlrpc\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"sqlite3\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"logging\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"wsgiref\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"urllib\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"ctypes\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/ctypes\",\"macholib\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"xml\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/xml\",\"dom\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/xml\",\"etree\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/xml\",\"parsers\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/xml\",\"sax\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"multiprocessing\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/multiprocessing\",\"dummy\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"unittest\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"tzdata\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata\",\"zoneinfo\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Africa\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"America\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo/America\",\"Argentina\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo/America\",\"Indiana\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo/America\",\"Kentucky\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo/America\",\"North_Dakota\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Antarctica\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Arctic\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Asia\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Atlantic\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Australia\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Brazil\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Canada\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Chile\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Etc\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Europe\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Indian\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Mexico\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"Pacific\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/tzdata/zoneinfo\",\"US\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"pydoc_data\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"zoneinfo\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9\",\"tzdata-2021.1.dist-info\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/site-packages\",\"pyodide\",true,true);Module[\"FS_createPath\"](\"/lib/python3.9/site-packages\",\"_pyodide\",true,true);function processPackageData(arrayBuffer){assert(arrayBuffer,\"Loading data file failed.\");assert(arrayBuffer instanceof ArrayBuffer,\"bad input to processPackageData\");var byteArray=new Uint8Array(arrayBuffer);var curr;var compressedData={\"data\":null,\"cachedOffset\":5353073,\"cachedIndexes\":[-1,-1],\"cachedChunks\":[null,null],\"offsets\":[0,1425,2582,3768,5314,6513,7796,9261,10355,11277,12242,13169,14258,15510,16526,17471,18705,19820,20850,22053,23220,24565,25707,26598,27737,28665,29783,30855,32203,33543,34734,35792,36730,37685,38413,39679,40975,42080,43231,44513,45761,47139,48465,49606,50870,52229,53374,54674,55570,56619,57715,58694,59546,60608,61218,62375,63535,64565,65628,66555,67449,68558,69625,70414,71460,72518,73646,74715,75741,76709,77689,78641,79528,80612,81991,83158,84196,85211,86504,87535,88589,89945,91075,92026,93214,94480,95483,96775,97924,99058,100029,100940,102133,102922,104148,105400,106636,107824,108670,109662,110716,111706,112542,113873,114874,116259,117289,118229,119245,120427,121499,122595,123262,123992,124629,125271,126212,126884,127429,128105,128887,129476,130261,131014,131944,132678,133463,134459,135130,136186,137026,137857,138670,139467,140249,141198,142083,143412,144852,146091,147501,148926,150295,151666,152907,154331,155632,156769,158086,159347,160859,162158,163612,165047,166103,167090,168528,169936,171235,172184,173396,174779,176137,177213,178355,179425,180438,181555,182627,183852,184913,186016,187120,188246,189160,190437,191394,192544,193615,194809,195812,197007,198164,199523,200702,201769,202768,203868,205037,206333,207367,208516,209573,210649,211524,212767,214020,215356,216623,217708,218943,220026,221196,222562,223760,224909,225784,226918,228067,229360,230693,232151,233405,234528,235401,236126,237209,238408,239649,240976,242350,243276,244303,245447,246497,247505,248622,249700,250432,251323,252342,253250,254064,255073,256518,257778,259077,260188,261213,262274,263136,263944,264948,266062,267111,268064,268975,270075,271322,272288,273185,273924,274575,275398,276640,277775,278959,279993,281064,282149,283244,284301,285266,286250,287254,288385,289397,290475,291544,292575,293564,294523,295584,296650,297691,298818,299729,300875,301831,302848,303841,304778,306273,307409,308629,309585,310650,311880,313102,314441,315792,316877,317979,319203,320380,321510,322383,323064,323893,324709,325887,327004,328127,328919,329933,330815,331879,332903,333708,335013,336603,337816,338697,339738,340823,342438,343814,344774,345979,347073,348060,349175,350268,351466,352732,354164,355268,356627,358008,359419,360804,362142,363522,364713,366122,367499,368367,369319,370523,371582,372741,374003,375005,375946,377130,378117,379467,380584,381830,382969,384607,385653,386818,387906,389026,390196,391174,392267,393825,394890,395914,396954,398129,399327,400620,401684,402930,404234,405456,406630,407417,408200,409327,410292,411255,412335,413274,414574,415514,416759,418214,419591,420820,422209,423691,424967,426013,427130,428156,429270,430395,431468,432412,433606,434861,436100,437485,438718,439996,441373,442659,443927,445352,446335,447551,449065,450375,451312,452463,453619,454569,455658,457041,458266,459493,460664,462024,463369,464675,465790,466909,468115,469446,470715,472045,473147,474304,475407,476554,477801,478784,480135,481291,482067,483370,484971,486318,487507,489015,490011,491329,492717,493630,494881,495896,496877,497943,498921,500103,500906,502133,503458,504654,505852,506842,507904,509049,510240,511354,512380,513335,514438,515486,516706,517930,518735,520004,520953,521998,523291,524257,525219,526373,527537,528683,529940,531208,532483,533683,534761,535739,536856,538171,539424,540570,541879,543126,544258,545753,546971,547940,549279,550434,551722,553048,554271,555584,557022,558119,559247,560463,561490,562820,563866,565151,566260,567085,568015,569468,570622,571881,573269,574591,575810,577107,578067,579324,580722,582060,583265,584421,585792,587059,587980,589193,590446,591736,592990,594291,595664,596954,598241,599595,600710,601689,602865,603929,605102,606589,607360,608429,609135,609688,610884,612069,613255,614461,615310,616613,617686,618995,619778,620791,622017,623179,624368,625404,626586,627620,628781,629801,631026,632167,632812,633837,634866,636115,636891,638186,639716,641077,642579,644209,645536,647063,648459,649745,650968,652222,653627,654921,656197,657546,658756,659979,661188,662354,663687,665060,666190,667513,668799,669959,671152,672423,673847,675059,676316,677652,679050,680317,681585,682963,683635,684812,685834,686971,688275,689561,690773,691900,693210,694414,695574,696918,698170,699523,700579,701630,702848,704085,705243,706448,707592,708915,710410,711508,712680,714072,715442,716797,718038,719277,720466,721599,723004,724141,725439,726697,727780,729026,730303,731430,732523,733529,734640,735767,737100,738003,739182,740352,741356,742636,743829,744874,746250,747482,748627,749634,750627,751883,753356,754620,756052,757331,758312,759563,760567,761820,763103,764256,765289,766593,767769,768767,770123,771374,772404,773675,774988,776033,777244,778537,779667,780905,782135,783154,784296,785501,786760,787952,788840,789922,790976,792331,793609,794602,795583,796805,798309,799893,800964,802095,803205,804095,805040,806435,807652,808954,810421,811638,812486,813496,814363,815424,816477,817713,819015,819973,820957,822137,823308,824374,825488,826335,827121,828391,829623,830771,832339,833715,834934,836105,837233,838476,839520,840697,841802,843057,844369,845534,846587,847662,848913,850160,851456,852674,853864,854316,855294,856275,857442,858689,859917,861450,862705,863690,864805,866095,867409,868715,869939,871149,872232,873387,874664,876092,877587,878811,879945,881360,882505,883800,885347,886761,887977,889160,890197,890948,892235,893409,894329,895296,896548,897520,898252,899491,900663,901811,903215,904500,905794,906901,908052,909383,910630,912015,913088,914288,915278,916429,917574,918718,920055,921320,922718,923778,924905,926110,927547,929103,930714,932299,933517,935051,936058,937359,938502,939922,940981,942084,943432,944480,945691,947217,948012,949348,950788,951955,953138,954395,955654,956674,957765,958809,959782,960878,961944,962999,964112,965283,966273,967309,968446,969689,970762,971857,973096,974494,975804,977047,978067,979286,980591,981921,982882,984082,985342,986797,987928,988807,989947,990992,992094,993391,994708,995960,997038,998386,999470,1000634,1001901,1003031,1004317,1005460,1006480,1007731,1009055,1010287,1011473,1012555,1013673,1014787,1015983,1017239,1018533,1019777,1020875,1022003,1022985,1024222,1025230,1026531,1027816,1028969,1030055,1031212,1032254,1033280,1034317,1035344,1036398,1037552,1038616,1039698,1040739,1041665,1042778,1043883,1044733,1045788,1046657,1047662,1048727,1049760,1050974,1052484,1053753,1054411,1055399,1056500,1057718,1058802,1059882,1060936,1061984,1063076,1064341,1065214,1066225,1067230,1068273,1069404,1070460,1071374,1072501,1073576,1074820,1075881,1076886,1077940,1079089,1080222,1081413,1082285,1083523,1084516,1085665,1086768,1087600,1088549,1089446,1090595,1091648,1092961,1094034,1095211,1096590,1097783,1099072,1100121,1101408,1102680,1103731,1104653,1105998,1107277,1108527,1109675,1110646,1111510,1112165,1113028,1113512,1114107,1114679,1115229,1115761,1116247,1116796,1117347,1117931,1118502,1119046,1119561,1120120,1120713,1121263,1121824,1122478,1123555,1124720,1125974,1127088,1128379,1129549,1130940,1132101,1133105,1134202,1135559,1136725,1137886,1138700,1139656,1140756,1141926,1143074,1144088,1145163,1146244,1147597,1148758,1149811,1150902,1151972,1152871,1153992,1154896,1155857,1156518,1157583,1158642,1159631,1160695,1161599,1162559,1163294,1164115,1165002,1166058,1166874,1167868,1168648,1169529,1170469,1171253,1172253,1173344,1174246,1175611,1176914,1178241,1179378,1180718,1181895,1183138,1184050,1185047,1186255,1187546,1188496,1189176,1189971,1191242,1192721,1193855,1194815,1195659,1196762,1197735,1198723,1199706,1200905,1201975,1202966,1204320,1205451,1206356,1207668,1209110,1210491,1211803,1213141,1214636,1215991,1217272,1218479,1219585,1220701,1221719,1222938,1223984,1224731,1225818,1227062,1228186,1229332,1230524,1232023,1233358,1234471,1235736,1237026,1238357,1239448,1240278,1241552,1242854,1244082,1245130,1246447,1247756,1249178,1250700,1251698,1252674,1253536,1254575,1255634,1256682,1257790,1259095,1259993,1261265,1262169,1263225,1264610,1266064,1267181,1268431,1269438,1270580,1271607,1272789,1273826,1275101,1276250,1277244,1278229,1279054,1280055,1281203,1282373,1283341,1284295,1285426,1286785,1287944,1289039,1290147,1291342,1292542,1293779,1294890,1295926,1297154,1298638,1299604,1300939,1302383,1303759,1305226,1306386,1307646,1308896,1309879,1310979,1312134,1313178,1314303,1315636,1316349,1317284,1318546,1319763,1321172,1322230,1323458,1324650,1325820,1327006,1328264,1329381,1330332,1331235,1332570,1333646,1334686,1335626,1336620,1337830,1338862,1340001,1341263,1342370,1343517,1344656,1345709,1346734,1347461,1348292,1349813,1351277,1352593,1353874,1355021,1356227,1357441,1358642,1359905,1361275,1362452,1363740,1364718,1365959,1367025,1367978,1369068,1370018,1371134,1372479,1373624,1374723,1375713,1376748,1378062,1379331,1380594,1381718,1383101,1384515,1385867,1387129,1388493,1389633,1390904,1392074,1393025,1394245,1395502,1396862,1397906,1399024,1400078,1401287,1402410,1403264,1404247,1405368,1406180,1407335,1408284,1409551,1410787,1411730,1412772,1413515,1414315,1415443,1416469,1417211,1418237,1419283,1420747,1422319,1423803,1425463,1426617,1427422,1428506,1429456,1430298,1431159,1432235,1433231,1434176,1435140,1436520,1437469,1438523,1439675,1440870,1442103,1443208,1444043,1445047,1446110,1447191,1448051,1449119,1450231,1451126,1452235,1453508,1454891,1456261,1457422,1458684,1459830,1461059,1462276,1463668,1464912,1465997,1467228,1468276,1469349,1470301,1471437,1472886,1474132,1475002,1476151,1477477,1478687,1479847,1481130,1482334,1483143,1484365,1485609,1487102,1488371,1489797,1491218,1492825,1494290,1495893,1497286,1498445,1499703,1501e3,1502348,1503495,1504667,1506009,1507265,1508595,1509937,1511090,1512084,1513166,1514198,1515387,1516428,1517887,1519393,1520597,1521421,1522443,1523417,1524722,1525870,1526825,1527980,1529069,1529851,1530760,1532060,1533467,1534753,1535845,1536950,1538215,1539483,1540518,1542068,1543500,1544672,1545995,1547156,1548389,1549521,1550943,1552104,1553439,1554389,1555118,1556076,1557074,1558020,1558989,1559653,1560671,1562051,1563291,1564654,1565899,1566792,1567888,1569054,1570284,1571636,1573082,1574158,1575469,1576965,1578467,1579622,1580617,1581691,1582627,1583753,1584766,1585779,1586886,1588029,1589019,1589801,1590769,1592090,1593278,1594584,1595782,1597201,1598238,1599510,1600816,1602030,1603210,1604141,1604995,1605900,1607136,1608691,1609969,1611150,1612506,1613873,1615249,1616488,1617837,1619075,1620313,1621634,1622896,1624047,1625105,1626303,1627414,1628356,1629092,1630074,1631274,1632423,1633687,1634934,1636080,1637027,1638138,1638949,1639833,1640941,1642123,1643332,1644612,1645647,1646834,1648157,1649398,1650462,1651491,1652801,1653908,1655041,1656320,1657469,1658712,1660010,1661044,1662351,1663562,1664430,1665548,1666708,1667900,1669047,1670492,1671599,1672693,1673619,1674744,1675955,1677361,1678565,1679732,1680978,1682416,1683781,1684971,1686120,1687222,1688489,1689854,1691013,1692218,1693514,1694873,1696092,1697274,1698584,1699430,1700828,1701958,1703273,1704599,1705634,1706875,1707983,1709285,1710364,1711244,1712788,1713971,1715192,1716408,1717608,1718850,1720076,1721365,1722752,1724157,1725430,1726622,1727940,1729187,1730463,1731643,1732833,1733895,1734979,1735936,1736954,1737780,1738869,1740250,1741739,1742786,1743995,1745340,1746493,1747513,1748332,1749127,1749779,1751053,1752377,1753721,1755151,1756355,1757565,1758728,1760016,1761299,1762347,1763736,1764741,1765723,1766920,1768274,1769542,1770750,1771789,1772829,1774168,1775452,1776651,1777811,1778920,1780200,1781546,1782847,1783933,1785343,1786786,1787980,1789333,1790479,1791648,1793024,1794326,1795354,1796558,1797987,1799506,1800717,1801297,1801864,1802962,1804027,1805175,1806029,1807047,1808138,1809368,1810632,1811792,1813007,1814144,1815236,1816819,1818041,1819299,1820526,1821751,1822965,1824077,1825270,1826510,1827713,1828944,1830127,1831202,1832424,1833562,1834878,1836134,1837392,1838605,1839907,1840952,1842239,1843727,1844990,1846121,1847342,1848741,1849953,1850958,1851950,1853115,1854369,1855547,1856589,1857710,1858831,1859960,1861120,1862542,1863484,1864851,1866129,1867370,1868849,1870137,1871755,1872959,1874162,1875402,1876317,1877467,1878516,1879667,1880724,1881802,1883140,1884381,1885523,1886510,1887284,1888116,1889045,1889952,1891345,1892712,1893612,1894865,1895898,1896707,1897772,1899131,1900143,1901419,1902503,1903611,1904610,1905471,1906463,1907314,1908189,1909176,1910329,1911260,1912120,1913013,1913895,1914633,1915461,1916442,1917464,1918499,1919704,1920717,1922019,1923168,1924281,1925826,1926991,1928296,1929491,1930643,1931677,1932659,1933660,1934879,1936154,1937578,1938666,1939742,1940952,1941990,1942815,1943743,1944494,1945468,1946529,1947929,1949245,1950227,1951364,1952616,1953793,1955247,1956618,1957891,1959199,1960669,1961751,1963139,1964688,1966038,1967505,1968716,1969987,1971161,1972428,1973735,1974872,1975751,1976997,1978335,1979208,1980215,1981274,1982727,1983616,1984778,1985757,1986757,1987788,1988959,1990199,1991200,1992221,1993609,1994807,1995978,1997384,1998670,1999911,2001128,2002393,2003814,2005158,2006213,2007494,2008337,2009262,2010409,2011667,2012924,2013942,2014961,2015863,2016772,2017803,2018809,2019853,2020840,2021828,2022651,2023605,2024658,2025670,2026654,2027736,2028773,2029784,2030712,2031545,2032683,2033934,2035134,2036348,2037223,2038075,2039099,2039982,2040937,2041921,2043347,2044425,2045374,2046345,2047509,2048270,2049209,2050450,2051801,2052830,2054094,2055601,2057002,2058158,2059357,2060748,2062052,2063549,2064764,2065901,2067142,2068368,2069700,2071239,2072254,2073502,2074919,2076018,2077115,2078239,2079268,2080308,2081429,2082485,2083686,2084803,2085769,2086930,2087984,2089218,2090438,2091646,2092795,2094098,2095252,2096275,2097305,2098482,2099591,2100724,2101621,2102573,2103328,2104343,2105557,2106663,2107733,2108852,2110105,2111219,2112451,2113484,2114540,2115492,2116454,2117614,2118813,2119992,2121191,2122689,2123964,2125354,2126518,2127679,2128429,2129430,2130208,2131311,2132424,2133629,2135052,2136335,2137750,2138926,2140138,2141465,2143012,2144234,2145579,2146864,2147977,2149058,2150143,2151483,2152750,2153980,2155044,2156311,2157680,2158758,2159746,2161056,2162340,2163922,2165116,2166288,2167496,2168627,2169877,2171052,2172345,2173493,2174770,2176214,2177412,2178489,2179941,2181131,2182470,2183629,2184957,2186257,2187370,2188549,2189614,2190847,2192148,2193503,2194800,2196391,2197828,2199014,2200436,2201636,2202886,2204253,2205642,2207068,2208335,2209645,2210626,2211833,2213134,2214393,2215732,2216678,2217654,2218588,2219859,2221150,2222507,2223690,2224769,2225856,2227021,2228320,2229544,2230422,2231577,2232597,2233699,2234828,2236018,2237195,2238432,2239668,2240934,2242201,2243367,2244657,2245913,2246937,2247872,2249125,2250381,2251557,2252464,2253427,2254487,2255600,2256594,2257643,2258600,2259482,2260854,2262198,2263496,2264514,2265631,2267041,2268333,2269657,2270915,2272187,2273324,2274584,2275890,2276847,2278213,2279483,2280755,2281892,2283062,2284148,2285128,2286333,2287543,2289048,2290286,2291319,2292544,2293810,2295272,2296607,2297738,2298959,2300056,2301206,2302292,2303136,2304325,2305667,2306884,2308360,2309442,2310444,2312023,2313130,2314404,2315722,2317200,2318364,2319590,2320452,2321432,2322443,2323900,2325059,2326311,2327334,2328718,2330094,2331202,2332380,2333495,2334506,2335706,2336965,2338176,2339400,2340508,2341916,2343158,2344415,2345569,2346525,2347601,2348594,2349374,2350406,2351331,2352686,2353877,2354740,2355592,2356575,2357957,2358931,2359966,2361303,2362361,2363593,2364533,2365307,2366669,2367963,2369286,2370421,2371814,2372968,2374316,2375590,2376832,2378048,2379128,2380196,2381403,2382818,2383833,2384884,2386077,2387225,2388321,2389288,2390195,2391213,2392228,2393491,2394754,2395742,2396886,2398026,2399273,2400530,2401596,2402876,2404112,2405304,2406410,2407531,2408497,2409414,2410645,2411462,2412418,2412994,2414146,2415366,2416630,2417815,2419009,2420335,2421615,2422820,2423868,2425032,2426433,2427212,2428056,2429480,2430772,2432157,2433462,2434656,2435922,2437298,2438666,2440119,2441678,2443296,2444871,2446477,2447851,2448792,2449875,2450814,2451699,2452639,2453484,2454330,2455425,2456450,2457432,2458531,2459266,2460610,2461887,2463153,2464336,2465782,2467012,2468085,2469409,2470539,2471855,2472812,2473762,2474872,2475899,2476954,2478126,2479313,2480351,2481587,2482752,2483953,2485278,2486530,2487739,2489088,2490216,2491465,2492822,2493917,2495092,2496467,2497702,2499061,2500258,2501675,2502850,2504062,2505418,2506579,2507754,2508877,2509970,2510749,2511958,2513180,2514325,2515503,2516679,2517810,2518867,2520107,2521253,2522404,2523628,2524882,2526204,2527487,2528683,2529990,2531113,2532249,2533532,2534443,2535635,2536884,2538178,2539294,2540555,2541763,2543037,2544228,2545406,2546444,2547731,2548842,2550069,2551283,2552406,2553624,2554811,2556063,2557284,2558378,2559602,2561037,2562268,2563555,2564489,2565529,2566607,2567820,2568738,2569881,2571005,2572200,2573449,2574611,2575710,2576780,2577799,2578915,2580072,2581048,2582182,2583262,2584428,2585494,2586544,2587517,2588438,2589638,2590641,2591791,2592647,2593435,2594647,2595619,2596547,2597666,2598780,2600093,2601201,2602237,2603193,2604241,2605397,2606508,2608034,2609147,2610324,2611516,2612674,2613737,2614607,2615692,2616661,2617974,2619119,2620428,2621283,2622024,2623153,2624314,2625311,2626457,2627672,2628986,2630363,2631530,2632508,2633544,2634696,2635729,2637105,2638315,2639633,2640883,2642153,2643354,2644670,2646007,2647131,2648140,2649331,2650395,2651458,2652732,2653779,2654925,2656027,2656998,2658147,2659090,2660013,2661148,2662122,2663349,2664701,2666115,2667336,2668702,2669798,2670877,2672124,2673376,2674603,2675705,2676909,2677895,2678940,2679674,2680858,2682022,2683311,2684474,2685653,2686700,2687751,2688898,2689700,2690810,2691755,2692913,2693878,2695322,2696525,2697679,2698751,2700041,2701191,2702337,2703647,2704695,2705809,2706921,2707999,2709092,2710325,2711694,2712946,2714291,2715486,2716360,2717388,2718514,2719510,2720620,2721788,2722953,2724242,2725566,2726785,2727920,2729011,2729709,2730741,2731701,2732982,2734081,2735260,2736505,2737735,2738662,2739834,2741046,2742122,2743269,2744664,2745984,2747325,2748570,2749742,2751016,2752193,2753567,2754683,2755935,2757025,2758210,2759426,2760284,2760763,2761824,2763020,2764043,2765057,2766091,2767273,2768460,2769523,2770629,2771715,2772804,2773972,2775085,2776167,2777311,2778572,2779811,2780950,2782186,2783403,2784512,2785681,2786896,2788202,2789404,2790476,2791588,2792693,2793759,2794994,2796115,2797192,2798298,2799038,2799702,2800811,2801911,2803197,2804506,2805772,2806868,2808142,2809350,2810396,2811607,2812782,2814034,2815054,2816182,2817268,2818448,2819672,2821002,2822210,2823496,2824888,2825949,2827275,2827974,2828756,2830022,2831046,2831939,2832909,2833690,2834327,2835190,2835927,2836866,2838042,2838820,2839905,2841211,2842425,2843424,2844419,2845316,2846386,2847386,2848636,2849884,2851185,2852625,2853820,2855026,2856199,2857309,2858501,2859630,2860800,2862051,2863263,2864451,2865511,2866716,2868135,2869292,2870417,2871411,2872874,2874091,2875233,2876239,2877011,2877748,2878544,2879198,2880049,2880924,2881999,2882938,2883703,2884631,2885602,2886650,2887496,2888339,2889155,2890086,2890786,2891827,2892846,2893620,2894292,2895063,2895660,2896290,2897364,2898219,2899092,2899903,2900829,2901552,2902552,2903157,2903849,2904566,2905488,2906463,2907122,2907809,2908489,2909110,2909848,2910853,2911599,2912339,2912915,2913598,2914297,2915323,2916188,2917037,2917866,2918745,2919540,2920484,2921571,2922429,2923141,2924018,2924904,2925654,2926662,2927690,2928468,2929240,2930134,2930855,2931578,2932598,2933553,2934237,2935150,2936052,2936689,2937599,2938640,2939387,2940205,2941124,2941864,2942657,2943681,2944628,2945315,2946232,2947125,2947791,2948749,2949793,2950538,2951365,2952279,2953115,2954032,2955115,2955894,2956704,2957711,2958631,2959679,2960729,2961646,2962328,2963270,2964160,2964897,2965925,2966939,2967707,2968523,2969512,2970266,2971112,2972180,2973285,2974153,2974953,2975762,2976559,2977562,2978655,2979741,2980649,2981334,2982149,2983087,2983961,2984838,2985470,2986482,2987475,2988205,2988878,2989636,2990299,2991162,2992246,2993096,2993789,2994655,2995431,2996178,2997090,2998084,2998937,2999789,3000583,3001421,3002244,3003134,3003962,3004624,3005420,3006201,3006879,3007905,3008744,3009467,3010156,3010978,3011968,3012698,3013389,3014038,3014648,3015411,3016490,3017336,3018027,3018733,3019362,3020134,3021031,3021883,3022738,3023460,3024435,3025420,3026109,3026834,3027687,3028343,3029220,3030268,3031052,3031794,3032640,3033267,3033987,3034930,3035642,3036469,3037227,3038280,3039222,3039887,3040570,3041424,3042170,3043125,3044100,3044831,3045636,3046432,3047075,3047778,3048809,3049477,3050229,3051012,3052067,3052923,3053589,3054349,3055194,3055995,3056899,3057879,3058584,3059352,3059998,3060603,3061295,3062349,3062982,3063684,3064403,3065393,3066208,3066893,3067513,3068241,3068949,3069855,3070802,3071474,3072213,3072803,3073455,3074290,3075391,3076247,3076981,3077729,3078432,3079494,3080375,3081183,3081931,3082910,3083911,3084628,3085298,3086066,3086844,3087725,3088751,3089529,3090277,3091168,3091796,3092508,3093543,3094189,3095018,3095764,3096848,3097721,3098393,3099069,3099950,3100706,3101678,3102653,3103315,3104182,3104935,3105578,3106389,3107274,3108067,3108685,3109602,3110659,3111400,3112125,3112759,3113566,3114323,3115401,3116365,3117042,3117892,3118535,3119384,3120245,3121136,3121948,3122561,3123510,3124529,3125241,3125982,3126640,3127440,3128190,3129300,3130221,3130894,3131730,3132431,3133293,3134163,3135059,3135935,3136593,3137626,3138612,3139301,3140031,3140907,3141530,3142552,3143520,3144268,3145045,3145904,3146743,3147408,3148431,3149229,3149871,3150764,3151821,3152620,3153319,3154031,3154865,3155622,3156700,3157667,3158342,3159213,3159896,3160748,3161627,3162675,3163423,3164109,3164897,3165907,3166626,3167376,3168274,3168984,3169708,3170732,3171500,3172257,3173176,3173830,3174428,3175413,3176084,3176895,3177663,3178758,3179640,3180308,3180983,3181854,3182492,3183519,3184497,3185212,3186045,3186690,3187524,3188178,3189169,3189770,3190441,3191216,3192270,3193116,3193783,3194413,3195089,3195799,3196691,3197669,3198328,3199047,3199657,3200387,3201175,3202115,3202915,3203621,3204449,3205423,3206162,3206887,3207669,3208361,3209154,3210192,3210946,3211709,3212469,3213109,3213842,3214952,3215952,3216637,3217381,3218113,3218882,3219945,3220834,3221635,3222489,3223220,3224027,3225003,3225606,3226188,3226789,3227370,3228300,3229348,3230369,3231116,3231780,3232607,3233226,3234258,3235367,3236277,3237468,3238534,3239714,3240305,3240955,3241546,3242345,3243363,3244134,3244806,3245708,3246343,3247172,3248219,3249127,3249809,3250558,3251343,3252073,3253044,3254092,3254852,3255559,3256316,3257060,3258039,3259086,3259842,3260556,3261409,3262161,3262962,3264012,3264995,3265677,3266407,3267199,3267848,3268702,3269778,3270597,3271340,3272183,3272952,3273579,3274687,3275695,3276371,3277077,3277973,3278650,3279522,3280625,3281483,3282209,3282948,3283711,3284477,3285546,3286586,3287298,3287961,3288846,3289519,3290398,3291474,3292299,3293045,3293804,3294556,3295303,3296394,3297420,3298089,3298751,3299395,3299985,3300909,3301948,3302695,3303426,3304135,3304964,3306026,3306926,3307609,3308437,3309244,3309893,3311004,3312015,3312691,3313390,3314211,3315175,3316224,3316981,3317689,3318551,3319182,3319969,3320802,3321827,3322599,3323296,3324245,3324961,3325554,3326645,3327662,3328324,3329148,3329985,3330579,3331406,3332488,3333246,3334026,3334980,3335776,3336380,3337360,3338360,3339096,3339875,3340776,3341500,3342122,3343096,3344001,3344767,3345589,3346334,3347056,3347771,3348447,3349230,3350039,3350828,3351541,3352220,3352936,3353574,3354290,3355015,3355703,3356713,3357408,3358164,3358907,3359626,3360673,3361609,3362577,3363396,3364065,3364783,3365608,3366470,3367296,3368033,3368771,3369492,3370255,3371078,3371836,3372630,3373558,3374396,3375066,3375878,3376826,3377654,3378543,3379299,3380192,3380872,3381545,3382623,3383463,3384619,3385654,3386424,3387144,3387979,3388842,3389637,3390640,3391404,3392138,3392857,3393665,3394671,3395695,3396456,3397327,3398009,3398709,3399766,3400676,3401746,3402447,3403204,3403985,3404676,3405732,3406595,3407615,3408595,3409622,3410295,3411202,3412223,3412859,3413754,3414801,3415701,3416387,3417180,3418042,3418621,3419558,3420865,3422060,3423123,3424160,3425054,3426074,3426681,3427734,3428738,3429419,3430128,3430857,3431625,3432623,3433708,3434687,3435694,3436474,3437401,3438363,3439117,3439882,3440939,3441814,3443121,3444198,3445258,3446398,3447827,3448982,3450319,3451746,3453275,3454737,3455961,3456819,3457516,3458176,3459012,3459952,3460917,3462232,3463300,3464420,3465746,3466944,3468238,3469606,3470918,3472142,3473154,3474050,3475244,3476386,3477336,3478441,3479217,3480330,3481369,3482405,3483680,3484444,3485481,3486873,3487723,3488620,3489662,3490814,3491752,3492782,3493885,3494975,3496295,3497244,3498328,3499301,3500302,3501269,3502654,3503877,3505005,3506295,3507679,3508841,3510324,3511566,3512966,3514078,3514987,3515867,3516955,3518082,3519171,3520245,3521671,3522947,3524319,3525194,3526283,3527530,3529004,3530421,3531720,3533188,3534544,3535942,3537277,3538355,3539738,3540973,3542149,3543319,3544649,3545688,3546756,3547807,3549081,3550245,3551498,3552904,3554051,3555244,3556752,3558141,3559550,3560663,3561862,3562821,3564002,3565017,3565963,3566957,3568162,3569576,3570890,3572121,3573457,3574588,3575853,3576984,3578293,3579714,3580935,3582203,3583624,3584810,3586031,3587303,3588589,3589906,3591274,3592271,3593533,3594848,3595914,3597268,3598397,3599573,3601019,3602249,3603452,3604510,3605537,3606360,3607306,3608674,3610156,3611436,3612833,3613909,3615101,3616291,3617426,3618490,3619589,3620552,3621778,3622906,3624124,3625412,3626455,3627604,3628676,3629844,3631137,3632235,3633475,3634686,3635674,3636966,3638082,3639230,3640496,3641651,3643068,3644405,3645720,3647192,3648411,3649851,3651066,3652413,3653927,3655364,3656710,3658072,3659319,3660773,3662034,3663517,3664654,3665973,3667282,3668594,3669904,3671230,3672396,3673317,3674387,3675652,3676861,3678148,3679340,3680598,3681799,3682742,3683675,3684522,3685454,3686379,3687283,3688216,3689144,3690058,3691010,3691870,3692751,3693668,3694620,3695459,3696297,3697112,3697995,3698975,3699883,3700785,3701714,3702595,3703412,3704340,3705240,3706137,3707020,3708375,3709738,3710996,3711751,3712733,3713813,3714885,3716075,3717215,3718466,3719846,3721219,3722634,3723749,3724919,3726180,3727527,3728815,3729777,3730801,3731932,3733119,3734188,3735569,3736768,3737919,3738999,3739957,3740751,3741817,3742933,3743955,3745379,3746725,3748135,3749429,3750774,3752221,3753720,3755146,3756323,3757495,3758694,3759858,3761110,3762041,3763138,3764277,3765627,3766877,3768080,3769376,3770431,3771535,3772793,3773817,3775018,3776200,3777382,3778554,3779657,3780754,3781954,3783498,3784793,3786178,3787536,3788919,3790125,3791355,3792676,3794015,3795343,3796811,3798139,3799276,3800285,3801159,3802136,3803233,3804156,3805067,3806110,3807355,3808505,3809562,3810749,3811712,3812767,3813858,3814897,3815943,3817053,3818197,3819374,3820668,3821539,3822836,3823991,3824902,3826465,3827701,3829209,3830610,3831756,3832900,3834103,3835295,3836528,3837576,3839061,3840471,3841937,3843400,3844791,3845801,3846977,3848118,3849295,3850325,3851622,3852967,3854173,3855272,3856546,3857829,3859216,3860510,3861609,3862642,3863895,3865001,3866274,3867775,3869249,3870618,3871934,3873113,3873889,3875056,3876332,3877526,3878426,3879784,3880637,3881577,3882753,3883901,3885148,3886283,3887664,3888819,3890060,3891108,3892335,3893663,3894825,3896085,3897354,3898677,3899875,3901041,3902076,3903269,3904534,3905832,3906905,3908180,3909290,3910359,3911597,3912837,3913818,3914859,3916012,3916993,3918230,3919599,3921176,3922431,3923694,3925173,3926330,3927716,3928920,3930127,3931217,3932534,3933901,3935175,3936409,3937534,3938661,3939966,3941028,3942396,3943532,3944796,3945980,3947172,3948368,3949468,3950800,3951513,3952806,3954029,3955010,3956152,3957516,3958335,3959468,3960678,3961721,3962809,3963519,3964879,3966209,3967742,3968907,3970251,3971548,3972817,3973796,3974794,3975882,3976645,3977403,3978470,3979522,3980540,3981593,3982620,3983891,3984901,3986351,3987650,3989e3,3990144,3991400,3992509,3993732,3994866,3996036,3997323,3998597,3999878,4001086,4002327,4003761,4004852,4006133,4007050,4008302,4009507,4010740,4011887,4013168,4014385,4015616,4016852,4018138,4019441,4020557,4022127,4023503,4024913,4026156,4027448,4028634,4029896,4031103,4032385,4033667,4035193,4036628,4037706,4038769,4040180,4041336,4042703,4043874,4045247,4046546,4047964,4049392,4050361,4051370,4052542,4053638,4054839,4056269,4057714,4058930,4060318,4061506,4062492,4063659,4064825,4066238,4067577,4068782,4070146,4071434,4072481,4073754,4075274,4076627,4078001,4078989,4080133,4081060,4081921,4083445,4084918,4086357,4087795,4089068,4090333,4091500,4092646,4093736,4094865,4096076,4097506,4098822,4100130,4101421,4102539,4103780,4104943,4106027,4107381,4108695,4109856,4110942,4112162,4113350,4114592,4115777,4116991,4118026,4119476,4120809,4121876,4122852,4124050,4125304,4126446,4127596,4128840,4130007,4131e3,4131634,4132203,4133280,4134509,4135786,4137191,4138460,4139601,4140753,4142108,4143282,4144474,4145316,4146483,4147591,4148864,4150015,4151214,4152174,4153297,4154716,4156028,4157277,4158372,4159857,4161322,4162761,4164183,4165501,4166880,4168239,4169469,4170847,4172015,4173005,4174062,4175193,4176070,4177120,4177858,4179012,4180125,4181076,4182284,4183313,4184415,4185645,4186615,4187933,4189200,4190609,4191603,4192810,4193696,4194703,4195634,4196652,4197759,4198924,4199862,4200933,4202022,4202972,4204074,4205089,4206254,4207203,4208427,4209436,4210810,4211801,4212710,4213639,4214847,4215947,4217022,4218039,4219026,4219839,4220908,4222006,4222910,4223785,4224941,4226121,4227314,4228055,4228951,4230087,4231091,4232072,4233009,4234141,4235311,4236388,4237410,4238345,4239144,4240271,4241369,4242200,4243377,4244547,4245562,4246334,4247441,4248550,4249431,4250641,4251580,4252279,4253467,4254511,4255682,4257205,4258565,4259750,4260909,4262496,4263561,4264373,4265382,4266366,4267454,4268806,4270252,4271529,4272637,4273756,4274761,4275988,4277026,4278152,4279332,4280101,4281271,4282363,4283394,4284399,4285375,4286461,4287671,4288826,4290060,4291311,4292619,4293785,4294930,4295977,4297185,4298230,4299050,4300141,4301242,4302499,4303593,4304623,4305689,4306797,4307740,4309269,4310446,4311699,4312900,4313965,4315289,4316343,4317165,4318160,4319120,4320032,4320965,4322137,4323400,4324701,4325675,4326780,4327915,4328819,4330076,4331066,4332331,4333291,4334316,4335094,4336369,4337433,4338570,4339794,4340844,4341973,4342917,4344334,4345565,4346514,4347500,4348504,4349591,4350776,4351760,4352804,4353957,4355076,4356197,4357485,4358595,4359627,4360688,4361790,4362519,4363751,4364797,4365731,4367007,4368182,4369378,4370578,4371590,4372470,4373940,4375222,4376475,4377514,4378712,4379780,4381160,4382451,4383601,4384628,4385531,4386677,4387804,4389060,4389987,4391179,4392161,4393321,4394472,4395540,4396754,4398031,4399154,44e5,4400933,4402026,4403017,4404182,4405272,4406691,4407851,4409235,4410129,4411339,4412226,4413334,4414010,4415154,4416213,4417080,4418256,4419340,4420377,4421373,4422348,4423454,4424626,4425814,4427167,4428367,4429611,4430684,4431725,4432696,4433868,4435052,4436344,4437326,4438367,4439354,4440684,4441822,4443049,4444091,4445289,4446435,4447700,4448811,4449809,4451213,4452377,4453501,4454641,4456008,4457164,4458132,4459116,4460527,4461595,4462466,4463415,4464412,4465752,4466695,4467896,4469145,4470400,4471709,4472907,4474111,4475441,4476566,4477352,4478381,4479373,4480643,4481749,4483065,4484119,4485305,4486585,4487784,4489102,4490336,4491604,4493137,4494561,4495720,4497159,4498101,4499262,4500486,4501587,4502737,4503902,4505193,4506574,4507679,4508896,4509942,4510933,4511911,4512956,4514115,4515389,4516724,4517733,4518869,4519721,4520606,4521450,4522162,4523267,4524393,4524979,4525859,4526849,4527882,4529133,4530473,4531748,4532954,4534015,4535297,4536480,4537377,4538599,4539711,4540729,4541787,4543111,4544196,4545101,4546030,4546918,4548293,4549561,4550675,4551614,4552741,4554027,4555113,4556195,4557208,4558357,4559399,4560447,4561662,4562899,4563861,4564964,4566166,4567519,4568504,4569764,4571083,4572144,4573024,4574021,4575002,4576054,4577325,4578588,4579961,4581445,4582640,4583694,4585051,4586043,4587126,4588390,4589467,4590367,4591449,4592647,4593822,4594756,4595757,4597121,4598424,4599580,4600672,4601934,4603340,4604317,4605313,4606525,4607655,4608445,4609630,4610671,4611692,4612928,4614227,4615207,4616037,4616903,4617933,4619152,4620282,4621375,4622738,4624053,4625217,4626450,4627915,4629177,4630636,4631773,4632881,4633855,4635250,4636607,4637784,4639130,4640514,4641848,4643229,4644374,4645877,4647733,4649586,4651075,4652221,4653313,4654381,4655193,4656112,4657264,4658428,4659533,4660753,4661378,4662364,4663424,4664207,4665396,4666596,4667676,4668665,4669514,4670777,4671886,4673089,4673946,4674966,4676043,4677293,4678354,4679502,4680615,4681760,4682778,4683942,4684796,4685539,4686485,4687640,4688771,4689802,4690882,4691897,4692929,4693955,4694973,4695952,4696849,4698046,4699167,4700346,4701005,4701881,4702786,4703784,4705019,4706044,4707182,4708355,4709822,4711402,4712963,4714360,4715984,4717677,4719224,4720803,4722469,4723793,4725412,4726889,4728374,4729927,4731649,4733217,4734820,4736446,4737785,4738798,4739904,4741223,4742286,4743325,4743923,4744534,4745850,4747072,4748364,4749646,4750926,4752191,4753523,4754862,4756118,4757297,4758674,4759975,4761344,4762645,4763949,4765428,4766615,4767885,4769196,4770571,4771895,4773304,4774436,4775807,4776990,4778399,4779887,4781116,4782001,4783376,4784589,4785859,4786817,4788172,4789557,4790933,4792274,4793662,4794690,4796047,4797412,4798480,4799840,4801233,4801776,4802405,4803032,4803718,4804919,4805708,4806662,4807912,4808866,4810039,4811393,4812656,4813932,4814848,4815952,4817231,4818533,4819580,4820826,4822087,4823477,4824843,4826193,4827323,4828554,4829449,4830689,4831777,4832679,4833887,4835143,4836582,4837923,4839083,4840245,4841543,4842970,4844106,4845199,4846425,4847798,4848970,4850007,4851132,4852063,4853073,4853996,4855267,4856570,4857932,4859387,4860706,4862139,4863193,4864335,4865016,4865375,4866247,4867673,4868768,4869801,4870903,4872320,4873441,4874749,4876191,4877560,4878796,4880005,4881341,4882460,4883628,4885039,4886145,4887246,4888383,4889487,4890573,4891765,4893093,4894191,4895449,4896441,4897618,4898904,4900299,4901327,4902145,4903108,4904033,4905366,4906642,4908007,4909376,4910742,4911803,4912823,4913647,4914683,4915692,4916722,4917768,4918830,4919775,4920770,4921830,4922707,4923772,4924802,4925769,4926703,4927580,4928449,4929368,4930237,4931089,4932064,4932980,4933872,4934758,4935591,4936564,4937537,4938549,4939663,4940730,4941837,4942784,4943588,4944632,4945725,4946827,4947934,4949022,4950143,4951261,4952398,4953510,4954572,4955575,4956644,4957653,4958716,4959567,4960599,4961680,4962683,4963676,4964588,4965632,4966728,4967696,4968749,4969734,4970660,4971628,4972529,4973400,4974460,4975611,4976681,4977728,4978758,4979814,4980853,4981689,4982667,4983613,4984531,4985635,4986588,4987498,4988489,4989505,4990459,4991391,4992312,4993286,4994322,4995301,4996422,4997484,4998525,4999580,5000637,5001763,5002823,5003982,5004993,5005950,5006949,5008029,5009070,5009927,5010982,5012018,5013281,5014558,5015587,5016722,5017784,5018767,5019800,5020838,5021873,5022935,5023992,5025087,5026151,5027278,5028459,5029747,5030758,5031750,5032741,5033699,5034737,5035529,5036233,5037216,5038196,5038862,5039360,5040142,5040815,5041655,5042528,5043345,5044191,5045016,5045816,5046720,5047594,5048679,5049786,5050862,5051919,5053012,5054116,5055226,5056124,5057125,5058287,5059260,5060362,5061402,5062609,5063665,5064836,5065999,5067186,5068293,5069415,5070500,5071571,5072691,5073759,5074814,5075666,5076483,5077288,5078312,5079152,5080274,5081410,5082533,5083539,5084097,5084510,5085053,5086046,5087016,5088201,5089330,5090167,5091242,5092339,5093294,5094252,5095132,5095943,5096872,5097925,5099018,5099836,5100963,5102065,5103046,5103982,5104984,5106044,5107001,5107931,5108954,5109963,5110988,5111965,5113090,5114050,5115011,5115884,5116905,5117845,5118749,5119759,5120780,5121738,5122661,5123601,5124649,5125639,5126582,5127462,5128378,5129352,5130417,5131428,5132325,5133268,5134360,5135358,5136348,5137308,5138230,5139222,5140070,5140894,5141739,5142722,5143637,5144630,5145689,5146572,5147587,5148536,5149569,5150523,5151501,5152475,5153307,5154174,5154974,5155859,5156702,5157559,5158444,5159284,5160209,5161164,5161973,5162485,5163153,5164037,5164982,5165952,5166930,5167804,5168953,5169834,5170296,5171093,5172203,5173145,5174318,5175378,5176584,5177621,5178831,5179945,5181009,5182130,5183234,5184306,5185524,5186614,5187694,5188340,5188985,5189823,5190824,5191825,5192803,5193909,5195035,5196200,5197347,5198434,5199609,5200547,5201660,5202848,5203929,5205081,5206092,5207181,5208129,5209064,5209931,5210779,5211576,5212456,5213365,5214252,5215152,5216089,5217113,5218149,5219285,5219967,5220482,5221595,5222592,5223732,5224668,5225142,5225671,5226327,5227431,5228548,5229659,5230737,5231839,5232815,5233782,5234822,5235277,5235826,5236379,5237271,5238334,5239412,5240443,5241517,5242861,5244223,5245577,5246889,5248214,5249662,5250685,5251684,5252877,5254112,5255374,5256496,5257701,5258892,5260220,5261509,5262757,5264212,5265536,5266837,5268023,5269514,5271034,5272459,5273404,5274189,5275348,5276720,5278133,5279453,5280670,5282030,5283392,5284542,5285782,5287140,5288525,5289945,5291329,5292650,5293662,5294969,5296230,5297482,5298741,5300011,5301209,5302632,5304021,5305323,5306655,5308130,5309418,5310463,5311481,5312760,5314167,5315580,5316879,5318112,5319385,5320508,5321543,5322444,5323689,5325007,5326008,5327237,5328601,5329669,5331092,5332315,5333583,5334804,5335906,5336923,5338117,5339337,5340580,5341978,5343425,5344942,5346313,5347525,5348662,5349727,5350951,5352118],\"sizes\":[1425,1157,1186,1546,1199,1283,1465,1094,922,965,927,1089,1252,1016,945,1234,1115,1030,1203,1167,1345,1142,891,1139,928,1118,1072,1348,1340,1191,1058,938,955,728,1266,1296,1105,1151,1282,1248,1378,1326,1141,1264,1359,1145,1300,896,1049,1096,979,852,1062,610,1157,1160,1030,1063,927,894,1109,1067,789,1046,1058,1128,1069,1026,968,980,952,887,1084,1379,1167,1038,1015,1293,1031,1054,1356,1130,951,1188,1266,1003,1292,1149,1134,971,911,1193,789,1226,1252,1236,1188,846,992,1054,990,836,1331,1001,1385,1030,940,1016,1182,1072,1096,667,730,637,642,941,672,545,676,782,589,785,753,930,734,785,996,671,1056,840,831,813,797,782,949,885,1329,1440,1239,1410,1425,1369,1371,1241,1424,1301,1137,1317,1261,1512,1299,1454,1435,1056,987,1438,1408,1299,949,1212,1383,1358,1076,1142,1070,1013,1117,1072,1225,1061,1103,1104,1126,914,1277,957,1150,1071,1194,1003,1195,1157,1359,1179,1067,999,1100,1169,1296,1034,1149,1057,1076,875,1243,1253,1336,1267,1085,1235,1083,1170,1366,1198,1149,875,1134,1149,1293,1333,1458,1254,1123,873,725,1083,1199,1241,1327,1374,926,1027,1144,1050,1008,1117,1078,732,891,1019,908,814,1009,1445,1260,1299,1111,1025,1061,862,808,1004,1114,1049,953,911,1100,1247,966,897,739,651,823,1242,1135,1184,1034,1071,1085,1095,1057,965,984,1004,1131,1012,1078,1069,1031,989,959,1061,1066,1041,1127,911,1146,956,1017,993,937,1495,1136,1220,956,1065,1230,1222,1339,1351,1085,1102,1224,1177,1130,873,681,829,816,1178,1117,1123,792,1014,882,1064,1024,805,1305,1590,1213,881,1041,1085,1615,1376,960,1205,1094,987,1115,1093,1198,1266,1432,1104,1359,1381,1411,1385,1338,1380,1191,1409,1377,868,952,1204,1059,1159,1262,1002,941,1184,987,1350,1117,1246,1139,1638,1046,1165,1088,1120,1170,978,1093,1558,1065,1024,1040,1175,1198,1293,1064,1246,1304,1222,1174,787,783,1127,965,963,1080,939,1300,940,1245,1455,1377,1229,1389,1482,1276,1046,1117,1026,1114,1125,1073,944,1194,1255,1239,1385,1233,1278,1377,1286,1268,1425,983,1216,1514,1310,937,1151,1156,950,1089,1383,1225,1227,1171,1360,1345,1306,1115,1119,1206,1331,1269,1330,1102,1157,1103,1147,1247,983,1351,1156,776,1303,1601,1347,1189,1508,996,1318,1388,913,1251,1015,981,1066,978,1182,803,1227,1325,1196,1198,990,1062,1145,1191,1114,1026,955,1103,1048,1220,1224,805,1269,949,1045,1293,966,962,1154,1164,1146,1257,1268,1275,1200,1078,978,1117,1315,1253,1146,1309,1247,1132,1495,1218,969,1339,1155,1288,1326,1223,1313,1438,1097,1128,1216,1027,1330,1046,1285,1109,825,930,1453,1154,1259,1388,1322,1219,1297,960,1257,1398,1338,1205,1156,1371,1267,921,1213,1253,1290,1254,1301,1373,1290,1287,1354,1115,979,1176,1064,1173,1487,771,1069,706,553,1196,1185,1186,1206,849,1303,1073,1309,783,1013,1226,1162,1189,1036,1182,1034,1161,1020,1225,1141,645,1025,1029,1249,776,1295,1530,1361,1502,1630,1327,1527,1396,1286,1223,1254,1405,1294,1276,1349,1210,1223,1209,1166,1333,1373,1130,1323,1286,1160,1193,1271,1424,1212,1257,1336,1398,1267,1268,1378,672,1177,1022,1137,1304,1286,1212,1127,1310,1204,1160,1344,1252,1353,1056,1051,1218,1237,1158,1205,1144,1323,1495,1098,1172,1392,1370,1355,1241,1239,1189,1133,1405,1137,1298,1258,1083,1246,1277,1127,1093,1006,1111,1127,1333,903,1179,1170,1004,1280,1193,1045,1376,1232,1145,1007,993,1256,1473,1264,1432,1279,981,1251,1004,1253,1283,1153,1033,1304,1176,998,1356,1251,1030,1271,1313,1045,1211,1293,1130,1238,1230,1019,1142,1205,1259,1192,888,1082,1054,1355,1278,993,981,1222,1504,1584,1071,1131,1110,890,945,1395,1217,1302,1467,1217,848,1010,867,1061,1053,1236,1302,958,984,1180,1171,1066,1114,847,786,1270,1232,1148,1568,1376,1219,1171,1128,1243,1044,1177,1105,1255,1312,1165,1053,1075,1251,1247,1296,1218,1190,452,978,981,1167,1247,1228,1533,1255,985,1115,1290,1314,1306,1224,1210,1083,1155,1277,1428,1495,1224,1134,1415,1145,1295,1547,1414,1216,1183,1037,751,1287,1174,920,967,1252,972,732,1239,1172,1148,1404,1285,1294,1107,1151,1331,1247,1385,1073,1200,990,1151,1145,1144,1337,1265,1398,1060,1127,1205,1437,1556,1611,1585,1218,1534,1007,1301,1143,1420,1059,1103,1348,1048,1211,1526,795,1336,1440,1167,1183,1257,1259,1020,1091,1044,973,1096,1066,1055,1113,1171,990,1036,1137,1243,1073,1095,1239,1398,1310,1243,1020,1219,1305,1330,961,1200,1260,1455,1131,879,1140,1045,1102,1297,1317,1252,1078,1348,1084,1164,1267,1130,1286,1143,1020,1251,1324,1232,1186,1082,1118,1114,1196,1256,1294,1244,1098,1128,982,1237,1008,1301,1285,1153,1086,1157,1042,1026,1037,1027,1054,1154,1064,1082,1041,926,1113,1105,850,1055,869,1005,1065,1033,1214,1510,1269,658,988,1101,1218,1084,1080,1054,1048,1092,1265,873,1011,1005,1043,1131,1056,914,1127,1075,1244,1061,1005,1054,1149,1133,1191,872,1238,993,1149,1103,832,949,897,1149,1053,1313,1073,1177,1379,1193,1289,1049,1287,1272,1051,922,1345,1279,1250,1148,971,864,655,863,484,595,572,550,532,486,549,551,584,571,544,515,559,593,550,561,654,1077,1165,1254,1114,1291,1170,1391,1161,1004,1097,1357,1166,1161,814,956,1100,1170,1148,1014,1075,1081,1353,1161,1053,1091,1070,899,1121,904,961,661,1065,1059,989,1064,904,960,735,821,887,1056,816,994,780,881,940,784,1e3,1091,902,1365,1303,1327,1137,1340,1177,1243,912,997,1208,1291,950,680,795,1271,1479,1134,960,844,1103,973,988,983,1199,1070,991,1354,1131,905,1312,1442,1381,1312,1338,1495,1355,1281,1207,1106,1116,1018,1219,1046,747,1087,1244,1124,1146,1192,1499,1335,1113,1265,1290,1331,1091,830,1274,1302,1228,1048,1317,1309,1422,1522,998,976,862,1039,1059,1048,1108,1305,898,1272,904,1056,1385,1454,1117,1250,1007,1142,1027,1182,1037,1275,1149,994,985,825,1001,1148,1170,968,954,1131,1359,1159,1095,1108,1195,1200,1237,1111,1036,1228,1484,966,1335,1444,1376,1467,1160,1260,1250,983,1100,1155,1044,1125,1333,713,935,1262,1217,1409,1058,1228,1192,1170,1186,1258,1117,951,903,1335,1076,1040,940,994,1210,1032,1139,1262,1107,1147,1139,1053,1025,727,831,1521,1464,1316,1281,1147,1206,1214,1201,1263,1370,1177,1288,978,1241,1066,953,1090,950,1116,1345,1145,1099,990,1035,1314,1269,1263,1124,1383,1414,1352,1262,1364,1140,1271,1170,951,1220,1257,1360,1044,1118,1054,1209,1123,854,983,1121,812,1155,949,1267,1236,943,1042,743,800,1128,1026,742,1026,1046,1464,1572,1484,1660,1154,805,1084,950,842,861,1076,996,945,964,1380,949,1054,1152,1195,1233,1105,835,1004,1063,1081,860,1068,1112,895,1109,1273,1383,1370,1161,1262,1146,1229,1217,1392,1244,1085,1231,1048,1073,952,1136,1449,1246,870,1149,1326,1210,1160,1283,1204,809,1222,1244,1493,1269,1426,1421,1607,1465,1603,1393,1159,1258,1297,1348,1147,1172,1342,1256,1330,1342,1153,994,1082,1032,1189,1041,1459,1506,1204,824,1022,974,1305,1148,955,1155,1089,782,909,1300,1407,1286,1092,1105,1265,1268,1035,1550,1432,1172,1323,1161,1233,1132,1422,1161,1335,950,729,958,998,946,969,664,1018,1380,1240,1363,1245,893,1096,1166,1230,1352,1446,1076,1311,1496,1502,1155,995,1074,936,1126,1013,1013,1107,1143,990,782,968,1321,1188,1306,1198,1419,1037,1272,1306,1214,1180,931,854,905,1236,1555,1278,1181,1356,1367,1376,1239,1349,1238,1238,1321,1262,1151,1058,1198,1111,942,736,982,1200,1149,1264,1247,1146,947,1111,811,884,1108,1182,1209,1280,1035,1187,1323,1241,1064,1029,1310,1107,1133,1279,1149,1243,1298,1034,1307,1211,868,1118,1160,1192,1147,1445,1107,1094,926,1125,1211,1406,1204,1167,1246,1438,1365,1190,1149,1102,1267,1365,1159,1205,1296,1359,1219,1182,1310,846,1398,1130,1315,1326,1035,1241,1108,1302,1079,880,1544,1183,1221,1216,1200,1242,1226,1289,1387,1405,1273,1192,1318,1247,1276,1180,1190,1062,1084,957,1018,826,1089,1381,1489,1047,1209,1345,1153,1020,819,795,652,1274,1324,1344,1430,1204,1210,1163,1288,1283,1048,1389,1005,982,1197,1354,1268,1208,1039,1040,1339,1284,1199,1160,1109,1280,1346,1301,1086,1410,1443,1194,1353,1146,1169,1376,1302,1028,1204,1429,1519,1211,580,567,1098,1065,1148,854,1018,1091,1230,1264,1160,1215,1137,1092,1583,1222,1258,1227,1225,1214,1112,1193,1240,1203,1231,1183,1075,1222,1138,1316,1256,1258,1213,1302,1045,1287,1488,1263,1131,1221,1399,1212,1005,992,1165,1254,1178,1042,1121,1121,1129,1160,1422,942,1367,1278,1241,1479,1288,1618,1204,1203,1240,915,1150,1049,1151,1057,1078,1338,1241,1142,987,774,832,929,907,1393,1367,900,1253,1033,809,1065,1359,1012,1276,1084,1108,999,861,992,851,875,987,1153,931,860,893,882,738,828,981,1022,1035,1205,1013,1302,1149,1113,1545,1165,1305,1195,1152,1034,982,1001,1219,1275,1424,1088,1076,1210,1038,825,928,751,974,1061,1400,1316,982,1137,1252,1177,1454,1371,1273,1308,1470,1082,1388,1549,1350,1467,1211,1271,1174,1267,1307,1137,879,1246,1338,873,1007,1059,1453,889,1162,979,1e3,1031,1171,1240,1001,1021,1388,1198,1171,1406,1286,1241,1217,1265,1421,1344,1055,1281,843,925,1147,1258,1257,1018,1019,902,909,1031,1006,1044,987,988,823,954,1053,1012,984,1082,1037,1011,928,833,1138,1251,1200,1214,875,852,1024,883,955,984,1426,1078,949,971,1164,761,939,1241,1351,1029,1264,1507,1401,1156,1199,1391,1304,1497,1215,1137,1241,1226,1332,1539,1015,1248,1417,1099,1097,1124,1029,1040,1121,1056,1201,1117,966,1161,1054,1234,1220,1208,1149,1303,1154,1023,1030,1177,1109,1133,897,952,755,1015,1214,1106,1070,1119,1253,1114,1232,1033,1056,952,962,1160,1199,1179,1199,1498,1275,1390,1164,1161,750,1001,778,1103,1113,1205,1423,1283,1415,1176,1212,1327,1547,1222,1345,1285,1113,1081,1085,1340,1267,1230,1064,1267,1369,1078,988,1310,1284,1582,1194,1172,1208,1131,1250,1175,1293,1148,1277,1444,1198,1077,1452,1190,1339,1159,1328,1300,1113,1179,1065,1233,1301,1355,1297,1591,1437,1186,1422,1200,1250,1367,1389,1426,1267,1310,981,1207,1301,1259,1339,946,976,934,1271,1291,1357,1183,1079,1087,1165,1299,1224,878,1155,1020,1102,1129,1190,1177,1237,1236,1266,1267,1166,1290,1256,1024,935,1253,1256,1176,907,963,1060,1113,994,1049,957,882,1372,1344,1298,1018,1117,1410,1292,1324,1258,1272,1137,1260,1306,957,1366,1270,1272,1137,1170,1086,980,1205,1210,1505,1238,1033,1225,1266,1462,1335,1131,1221,1097,1150,1086,844,1189,1342,1217,1476,1082,1002,1579,1107,1274,1318,1478,1164,1226,862,980,1011,1457,1159,1252,1023,1384,1376,1108,1178,1115,1011,1200,1259,1211,1224,1108,1408,1242,1257,1154,956,1076,993,780,1032,925,1355,1191,863,852,983,1382,974,1035,1337,1058,1232,940,774,1362,1294,1323,1135,1393,1154,1348,1274,1242,1216,1080,1068,1207,1415,1015,1051,1193,1148,1096,967,907,1018,1015,1263,1263,988,1144,1140,1247,1257,1066,1280,1236,1192,1106,1121,966,917,1231,817,956,576,1152,1220,1264,1185,1194,1326,1280,1205,1048,1164,1401,779,844,1424,1292,1385,1305,1194,1266,1376,1368,1453,1559,1618,1575,1606,1374,941,1083,939,885,940,845,846,1095,1025,982,1099,735,1344,1277,1266,1183,1446,1230,1073,1324,1130,1316,957,950,1110,1027,1055,1172,1187,1038,1236,1165,1201,1325,1252,1209,1349,1128,1249,1357,1095,1175,1375,1235,1359,1197,1417,1175,1212,1356,1161,1175,1123,1093,779,1209,1222,1145,1178,1176,1131,1057,1240,1146,1151,1224,1254,1322,1283,1196,1307,1123,1136,1283,911,1192,1249,1294,1116,1261,1208,1274,1191,1178,1038,1287,1111,1227,1214,1123,1218,1187,1252,1221,1094,1224,1435,1231,1287,934,1040,1078,1213,918,1143,1124,1195,1249,1162,1099,1070,1019,1116,1157,976,1134,1080,1166,1066,1050,973,921,1200,1003,1150,856,788,1212,972,928,1119,1114,1313,1108,1036,956,1048,1156,1111,1526,1113,1177,1192,1158,1063,870,1085,969,1313,1145,1309,855,741,1129,1161,997,1146,1215,1314,1377,1167,978,1036,1152,1033,1376,1210,1318,1250,1270,1201,1316,1337,1124,1009,1191,1064,1063,1274,1047,1146,1102,971,1149,943,923,1135,974,1227,1352,1414,1221,1366,1096,1079,1247,1252,1227,1102,1204,986,1045,734,1184,1164,1289,1163,1179,1047,1051,1147,802,1110,945,1158,965,1444,1203,1154,1072,1290,1150,1146,1310,1048,1114,1112,1078,1093,1233,1369,1252,1345,1195,874,1028,1126,996,1110,1168,1165,1289,1324,1219,1135,1091,698,1032,960,1281,1099,1179,1245,1230,927,1172,1212,1076,1147,1395,1320,1341,1245,1172,1274,1177,1374,1116,1252,1090,1185,1216,858,479,1061,1196,1023,1014,1034,1182,1187,1063,1106,1086,1089,1168,1113,1082,1144,1261,1239,1139,1236,1217,1109,1169,1215,1306,1202,1072,1112,1105,1066,1235,1121,1077,1106,740,664,1109,1100,1286,1309,1266,1096,1274,1208,1046,1211,1175,1252,1020,1128,1086,1180,1224,1330,1208,1286,1392,1061,1326,699,782,1266,1024,893,970,781,637,863,737,939,1176,778,1085,1306,1214,999,995,897,1070,1e3,1250,1248,1301,1440,1195,1206,1173,1110,1192,1129,1170,1251,1212,1188,1060,1205,1419,1157,1125,994,1463,1217,1142,1006,772,737,796,654,851,875,1075,939,765,928,971,1048,846,843,816,931,700,1041,1019,774,672,771,597,630,1074,855,873,811,926,723,1e3,605,692,717,922,975,659,687,680,621,738,1005,746,740,576,683,699,1026,865,849,829,879,795,944,1087,858,712,877,886,750,1008,1028,778,772,894,721,723,1020,955,684,913,902,637,910,1041,747,818,919,740,793,1024,947,687,917,893,666,958,1044,745,827,914,836,917,1083,779,810,1007,920,1048,1050,917,682,942,890,737,1028,1014,768,816,989,754,846,1068,1105,868,800,809,797,1003,1093,1086,908,685,815,938,874,877,632,1012,993,730,673,758,663,863,1084,850,693,866,776,747,912,994,853,852,794,838,823,890,828,662,796,781,678,1026,839,723,689,822,990,730,691,649,610,763,1079,846,691,706,629,772,897,852,855,722,975,985,689,725,853,656,877,1048,784,742,846,627,720,943,712,827,758,1053,942,665,683,854,746,955,975,731,805,796,643,703,1031,668,752,783,1055,856,666,760,845,801,904,980,705,768,646,605,692,1054,633,702,719,990,815,685,620,728,708,906,947,672,739,590,652,835,1101,856,734,748,703,1062,881,808,748,979,1001,717,670,768,778,881,1026,778,748,891,628,712,1035,646,829,746,1084,873,672,676,881,756,972,975,662,867,753,643,811,885,793,618,917,1057,741,725,634,807,757,1078,964,677,850,643,849,861,891,812,613,949,1019,712,741,658,800,750,1110,921,673,836,701,862,870,896,876,658,1033,986,689,730,876,623,1022,968,748,777,859,839,665,1023,798,642,893,1057,799,699,712,834,757,1078,967,675,871,683,852,879,1048,748,686,788,1010,719,750,898,710,724,1024,768,757,919,654,598,985,671,811,768,1095,882,668,675,871,638,1027,978,715,833,645,834,654,991,601,671,775,1054,846,667,630,676,710,892,978,659,719,610,730,788,940,800,706,828,974,739,725,782,692,793,1038,754,763,760,640,733,1110,1e3,685,744,732,769,1063,889,801,854,731,807,976,603,582,601,581,930,1048,1021,747,664,827,619,1032,1109,910,1191,1066,1180,591,650,591,799,1018,771,672,902,635,829,1047,908,682,749,785,730,971,1048,760,707,757,744,979,1047,756,714,853,752,801,1050,983,682,730,792,649,854,1076,819,743,843,769,627,1108,1008,676,706,896,677,872,1103,858,726,739,763,766,1069,1040,712,663,885,673,879,1076,825,746,759,752,747,1091,1026,669,662,644,590,924,1039,747,731,709,829,1062,900,683,828,807,649,1111,1011,676,699,821,964,1049,757,708,862,631,787,833,1025,772,697,949,716,593,1091,1017,662,824,837,594,827,1082,758,780,954,796,604,980,1e3,736,779,901,724,622,974,905,766,822,745,722,715,676,783,809,789,713,679,716,638,716,725,688,1010,695,756,743,719,1047,936,968,819,669,718,825,862,826,737,738,721,763,823,758,794,928,838,670,812,948,828,889,756,893,680,673,1078,840,1156,1035,770,720,835,863,795,1003,764,734,719,808,1006,1024,761,871,682,700,1057,910,1070,701,757,781,691,1056,863,1020,980,1027,673,907,1021,636,895,1047,900,686,793,862,579,937,1307,1195,1063,1037,894,1020,607,1053,1004,681,709,729,768,998,1085,979,1007,780,927,962,754,765,1057,875,1307,1077,1060,1140,1429,1155,1337,1427,1529,1462,1224,858,697,660,836,940,965,1315,1068,1120,1326,1198,1294,1368,1312,1224,1012,896,1194,1142,950,1105,776,1113,1039,1036,1275,764,1037,1392,850,897,1042,1152,938,1030,1103,1090,1320,949,1084,973,1001,967,1385,1223,1128,1290,1384,1162,1483,1242,1400,1112,909,880,1088,1127,1089,1074,1426,1276,1372,875,1089,1247,1474,1417,1299,1468,1356,1398,1335,1078,1383,1235,1176,1170,1330,1039,1068,1051,1274,1164,1253,1406,1147,1193,1508,1389,1409,1113,1199,959,1181,1015,946,994,1205,1414,1314,1231,1336,1131,1265,1131,1309,1421,1221,1268,1421,1186,1221,1272,1286,1317,1368,997,1262,1315,1066,1354,1129,1176,1446,1230,1203,1058,1027,823,946,1368,1482,1280,1397,1076,1192,1190,1135,1064,1099,963,1226,1128,1218,1288,1043,1149,1072,1168,1293,1098,1240,1211,988,1292,1116,1148,1266,1155,1417,1337,1315,1472,1219,1440,1215,1347,1514,1437,1346,1362,1247,1454,1261,1483,1137,1319,1309,1312,1310,1326,1166,921,1070,1265,1209,1287,1192,1258,1201,943,933,847,932,925,904,933,928,914,952,860,881,917,952,839,838,815,883,980,908,902,929,881,817,928,900,897,883,1355,1363,1258,755,982,1080,1072,1190,1140,1251,1380,1373,1415,1115,1170,1261,1347,1288,962,1024,1131,1187,1069,1381,1199,1151,1080,958,794,1066,1116,1022,1424,1346,1410,1294,1345,1447,1499,1426,1177,1172,1199,1164,1252,931,1097,1139,1350,1250,1203,1296,1055,1104,1258,1024,1201,1182,1182,1172,1103,1097,1200,1544,1295,1385,1358,1383,1206,1230,1321,1339,1328,1468,1328,1137,1009,874,977,1097,923,911,1043,1245,1150,1057,1187,963,1055,1091,1039,1046,1110,1144,1177,1294,871,1297,1155,911,1563,1236,1508,1401,1146,1144,1203,1192,1233,1048,1485,1410,1466,1463,1391,1010,1176,1141,1177,1030,1297,1345,1206,1099,1274,1283,1387,1294,1099,1033,1253,1106,1273,1501,1474,1369,1316,1179,776,1167,1276,1194,900,1358,853,940,1176,1148,1247,1135,1381,1155,1241,1048,1227,1328,1162,1260,1269,1323,1198,1166,1035,1193,1265,1298,1073,1275,1110,1069,1238,1240,981,1041,1153,981,1237,1369,1577,1255,1263,1479,1157,1386,1204,1207,1090,1317,1367,1274,1234,1125,1127,1305,1062,1368,1136,1264,1184,1192,1196,1100,1332,713,1293,1223,981,1142,1364,819,1133,1210,1043,1088,710,1360,1330,1533,1165,1344,1297,1269,979,998,1088,763,758,1067,1052,1018,1053,1027,1271,1010,1450,1299,1350,1144,1256,1109,1223,1134,1170,1287,1274,1281,1208,1241,1434,1091,1281,917,1252,1205,1233,1147,1281,1217,1231,1236,1286,1303,1116,1570,1376,1410,1243,1292,1186,1262,1207,1282,1282,1526,1435,1078,1063,1411,1156,1367,1171,1373,1299,1418,1428,969,1009,1172,1096,1201,1430,1445,1216,1388,1188,986,1167,1166,1413,1339,1205,1364,1288,1047,1273,1520,1353,1374,988,1144,927,861,1524,1473,1439,1438,1273,1265,1167,1146,1090,1129,1211,1430,1316,1308,1291,1118,1241,1163,1084,1354,1314,1161,1086,1220,1188,1242,1185,1214,1035,1450,1333,1067,976,1198,1254,1142,1150,1244,1167,993,634,569,1077,1229,1277,1405,1269,1141,1152,1355,1174,1192,842,1167,1108,1273,1151,1199,960,1123,1419,1312,1249,1095,1485,1465,1439,1422,1318,1379,1359,1230,1378,1168,990,1057,1131,877,1050,738,1154,1113,951,1208,1029,1102,1230,970,1318,1267,1409,994,1207,886,1007,931,1018,1107,1165,938,1071,1089,950,1102,1015,1165,949,1224,1009,1374,991,909,929,1208,1100,1075,1017,987,813,1069,1098,904,875,1156,1180,1193,741,896,1136,1004,981,937,1132,1170,1077,1022,935,799,1127,1098,831,1177,1170,1015,772,1107,1109,881,1210,939,699,1188,1044,1171,1523,1360,1185,1159,1587,1065,812,1009,984,1088,1352,1446,1277,1108,1119,1005,1227,1038,1126,1180,769,1170,1092,1031,1005,976,1086,1210,1155,1234,1251,1308,1166,1145,1047,1208,1045,820,1091,1101,1257,1094,1030,1066,1108,943,1529,1177,1253,1201,1065,1324,1054,822,995,960,912,933,1172,1263,1301,974,1105,1135,904,1257,990,1265,960,1025,778,1275,1064,1137,1224,1050,1129,944,1417,1231,949,986,1004,1087,1185,984,1044,1153,1119,1121,1288,1110,1032,1061,1102,729,1232,1046,934,1276,1175,1196,1200,1012,880,1470,1282,1253,1039,1198,1068,1380,1291,1150,1027,903,1146,1127,1256,927,1192,982,1160,1151,1068,1214,1277,1123,846,933,1093,991,1165,1090,1419,1160,1384,894,1210,887,1108,676,1144,1059,867,1176,1084,1037,996,975,1106,1172,1188,1353,1200,1244,1073,1041,971,1172,1184,1292,982,1041,987,1330,1138,1227,1042,1198,1146,1265,1111,998,1404,1164,1124,1140,1367,1156,968,984,1411,1068,871,949,997,1340,943,1201,1249,1255,1309,1198,1204,1330,1125,786,1029,992,1270,1106,1316,1054,1186,1280,1199,1318,1234,1268,1533,1424,1159,1439,942,1161,1224,1101,1150,1165,1291,1381,1105,1217,1046,991,978,1045,1159,1274,1335,1009,1136,852,885,844,712,1105,1126,586,880,990,1033,1251,1340,1275,1206,1061,1282,1183,897,1222,1112,1018,1058,1324,1085,905,929,888,1375,1268,1114,939,1127,1286,1086,1082,1013,1149,1042,1048,1215,1237,962,1103,1202,1353,985,1260,1319,1061,880,997,981,1052,1271,1263,1373,1484,1195,1054,1357,992,1083,1264,1077,900,1082,1198,1175,934,1001,1364,1303,1156,1092,1262,1406,977,996,1212,1130,790,1185,1041,1021,1236,1299,980,830,866,1030,1219,1130,1093,1363,1315,1164,1233,1465,1262,1459,1137,1108,974,1395,1357,1177,1346,1384,1334,1381,1145,1503,1856,1853,1489,1146,1092,1068,812,919,1152,1164,1105,1220,625,986,1060,783,1189,1200,1080,989,849,1263,1109,1203,857,1020,1077,1250,1061,1148,1113,1145,1018,1164,854,743,946,1155,1131,1031,1080,1015,1032,1026,1018,979,897,1197,1121,1179,659,876,905,998,1235,1025,1138,1173,1467,1580,1561,1397,1624,1693,1547,1579,1666,1324,1619,1477,1485,1553,1722,1568,1603,1626,1339,1013,1106,1319,1063,1039,598,611,1316,1222,1292,1282,1280,1265,1332,1339,1256,1179,1377,1301,1369,1301,1304,1479,1187,1270,1311,1375,1324,1409,1132,1371,1183,1409,1488,1229,885,1375,1213,1270,958,1355,1385,1376,1341,1388,1028,1357,1365,1068,1360,1393,543,629,627,686,1201,789,954,1250,954,1173,1354,1263,1276,916,1104,1279,1302,1047,1246,1261,1390,1366,1350,1130,1231,895,1240,1088,902,1208,1256,1439,1341,1160,1162,1298,1427,1136,1093,1226,1373,1172,1037,1125,931,1010,923,1271,1303,1362,1455,1319,1433,1054,1142,681,359,872,1426,1095,1033,1102,1417,1121,1308,1442,1369,1236,1209,1336,1119,1168,1411,1106,1101,1137,1104,1086,1192,1328,1098,1258,992,1177,1286,1395,1028,818,963,925,1333,1276,1365,1369,1366,1061,1020,824,1036,1009,1030,1046,1062,945,995,1060,877,1065,1030,967,934,877,869,919,869,852,975,916,892,886,833,973,973,1012,1114,1067,1107,947,804,1044,1093,1102,1107,1088,1121,1118,1137,1112,1062,1003,1069,1009,1063,851,1032,1081,1003,993,912,1044,1096,968,1053,985,926,968,901,871,1060,1151,1070,1047,1030,1056,1039,836,978,946,918,1104,953,910,991,1016,954,932,921,974,1036,979,1121,1062,1041,1055,1057,1126,1060,1159,1011,957,999,1080,1041,857,1055,1036,1263,1277,1029,1135,1062,983,1033,1038,1035,1062,1057,1095,1064,1127,1181,1288,1011,992,991,958,1038,792,704,983,980,666,498,782,673,840,873,817,846,825,800,904,874,1085,1107,1076,1057,1093,1104,1110,898,1001,1162,973,1102,1040,1207,1056,1171,1163,1187,1107,1122,1085,1071,1120,1068,1055,852,817,805,1024,840,1122,1136,1123,1006,558,413,543,993,970,1185,1129,837,1075,1097,955,958,880,811,929,1053,1093,818,1127,1102,981,936,1002,1060,957,930,1023,1009,1025,977,1125,960,961,873,1021,940,904,1010,1021,958,923,940,1048,990,943,880,916,974,1065,1011,897,943,1092,998,990,960,922,992,848,824,845,983,915,993,1059,883,1015,949,1033,954,978,974,832,867,800,885,843,857,885,840,925,955,809,512,668,884,945,970,978,874,1149,881,462,797,1110,942,1173,1060,1206,1037,1210,1114,1064,1121,1104,1072,1218,1090,1080,646,645,838,1001,1001,978,1106,1126,1165,1147,1087,1175,938,1113,1188,1081,1152,1011,1089,948,935,867,848,797,880,909,887,900,937,1024,1036,1136,682,515,1113,997,1140,936,474,529,656,1104,1117,1111,1078,1102,976,967,1040,455,549,553,892,1063,1078,1031,1074,1344,1362,1354,1312,1325,1448,1023,999,1193,1235,1262,1122,1205,1191,1328,1289,1248,1455,1324,1301,1186,1491,1520,1425,945,785,1159,1372,1413,1320,1217,1360,1362,1150,1240,1358,1385,1420,1384,1321,1012,1307,1261,1252,1259,1270,1198,1423,1389,1302,1332,1475,1288,1045,1018,1279,1407,1413,1299,1233,1273,1123,1035,901,1245,1318,1001,1229,1364,1068,1423,1223,1268,1221,1102,1017,1194,1220,1243,1398,1447,1517,1371,1212,1137,1065,1224,1167,955],\"successes\":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]};compressedData[\"data\"]=byteArray;assert(typeof Module.LZ4===\"object\",\"LZ4 not present - was your app build with  -s LZ4=1  ?\");Module.LZ4.loadPackage({\"metadata\":metadata,\"compressedData\":compressedData},true);Module[\"removeRunDependency\"](\"datafile_build/pyodide.asm.data\")}Module[\"addRunDependency\"](\"datafile_build/pyodide.asm.data\");if(!Module.preloadResults)Module.preloadResults={};Module.preloadResults[PACKAGE_NAME]={fromCache:false};if(fetched){processPackageData(fetched);fetched=null}else{fetchedCallback=processPackageData}}if(Module[\"calledRun\"]){runWithFS()}else{if(!Module[\"preRun\"])Module[\"preRun\"]=[];Module[\"preRun\"].push(runWithFS)}};loadPackage({\"files\":[{\"filename\":\"/lib/python3.9/__future__.py\",\"start\":0,\"end\":5147,\"audio\":0},{\"filename\":\"/lib/python3.9/__phello__.foo.py\",\"start\":5147,\"end\":5211,\"audio\":0},{\"filename\":\"/lib/python3.9/_aix_support.py\",\"start\":5211,\"end\":8481,\"audio\":0},{\"filename\":\"/lib/python3.9/_bootlocale.py\",\"start\":8481,\"end\":10282,\"audio\":0},{\"filename\":\"/lib/python3.9/_bootsubprocess.py\",\"start\":10282,\"end\":12957,\"audio\":0},{\"filename\":\"/lib/python3.9/_collections_abc.py\",\"start\":12957,\"end\":42298,\"audio\":0},{\"filename\":\"/lib/python3.9/_compat_pickle.py\",\"start\":42298,\"end\":51047,\"audio\":0},{\"filename\":\"/lib/python3.9/_compression.py\",\"start\":51047,\"end\":56387,\"audio\":0},{\"filename\":\"/lib/python3.9/_markupbase.py\",\"start\":56387,\"end\":70985,\"audio\":0},{\"filename\":\"/lib/python3.9/_py_abc.py\",\"start\":70985,\"end\":77174,\"audio\":0},{\"filename\":\"/lib/python3.9/_pydecimal.py\",\"start\":77174,\"end\":305840,\"audio\":0},{\"filename\":\"/lib/python3.9/_pyio.py\",\"start\":305840,\"end\":399252,\"audio\":0},{\"filename\":\"/lib/python3.9/_sitebuiltins.py\",\"start\":399252,\"end\":402367,\"audio\":0},{\"filename\":\"/lib/python3.9/_strptime.py\",\"start\":402367,\"end\":427638,\"audio\":0},{\"filename\":\"/lib/python3.9/_threading_local.py\",\"start\":427638,\"end\":434858,\"audio\":0},{\"filename\":\"/lib/python3.9/_weakrefset.py\",\"start\":434858,\"end\":440675,\"audio\":0},{\"filename\":\"/lib/python3.9/abc.py\",\"start\":440675,\"end\":445164,\"audio\":0},{\"filename\":\"/lib/python3.9/aifc.py\",\"start\":445164,\"end\":477769,\"audio\":0},{\"filename\":\"/lib/python3.9/antigravity.py\",\"start\":477769,\"end\":478269,\"audio\":0},{\"filename\":\"/lib/python3.9/argparse.py\",\"start\":478269,\"end\":575983,\"audio\":0},{\"filename\":\"/lib/python3.9/ast.py\",\"start\":575983,\"end\":632162,\"audio\":0},{\"filename\":\"/lib/python3.9/asynchat.py\",\"start\":632162,\"end\":643483,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncore.py\",\"start\":643483,\"end\":663585,\"audio\":0},{\"filename\":\"/lib/python3.9/base64.py\",\"start\":663585,\"end\":683446,\"audio\":0},{\"filename\":\"/lib/python3.9/bdb.py\",\"start\":683446,\"end\":714835,\"audio\":0},{\"filename\":\"/lib/python3.9/binhex.py\",\"start\":714835,\"end\":729619,\"audio\":0},{\"filename\":\"/lib/python3.9/bisect.py\",\"start\":729619,\"end\":731969,\"audio\":0},{\"filename\":\"/lib/python3.9/bz2.py\",\"start\":731969,\"end\":744144,\"audio\":0},{\"filename\":\"/lib/python3.9/cProfile.py\",\"start\":744144,\"end\":750479,\"audio\":0},{\"filename\":\"/lib/python3.9/calendar.py\",\"start\":750479,\"end\":775311,\"audio\":0},{\"filename\":\"/lib/python3.9/cgi.py\",\"start\":775311,\"end\":809246,\"audio\":0},{\"filename\":\"/lib/python3.9/cgitb.py\",\"start\":809246,\"end\":821342,\"audio\":0},{\"filename\":\"/lib/python3.9/chunk.py\",\"start\":821342,\"end\":826777,\"audio\":0},{\"filename\":\"/lib/python3.9/cmd.py\",\"start\":826777,\"end\":841637,\"audio\":0},{\"filename\":\"/lib/python3.9/code.py\",\"start\":841637,\"end\":852259,\"audio\":0},{\"filename\":\"/lib/python3.9/codecs.py\",\"start\":852259,\"end\":888932,\"audio\":0},{\"filename\":\"/lib/python3.9/codeop.py\",\"start\":888932,\"end\":895258,\"audio\":0},{\"filename\":\"/lib/python3.9/colorsys.py\",\"start\":895258,\"end\":899322,\"audio\":0},{\"filename\":\"/lib/python3.9/compileall.py\",\"start\":899322,\"end\":919422,\"audio\":0},{\"filename\":\"/lib/python3.9/configparser.py\",\"start\":919422,\"end\":973796,\"audio\":0},{\"filename\":\"/lib/python3.9/contextlib.py\",\"start\":973796,\"end\":997472,\"audio\":0},{\"filename\":\"/lib/python3.9/contextvars.py\",\"start\":997472,\"end\":997601,\"audio\":0},{\"filename\":\"/lib/python3.9/copy.py\",\"start\":997601,\"end\":1006262,\"audio\":0},{\"filename\":\"/lib/python3.9/copyreg.py\",\"start\":1006262,\"end\":1013536,\"audio\":0},{\"filename\":\"/lib/python3.9/crypt.py\",\"start\":1013536,\"end\":1017355,\"audio\":0},{\"filename\":\"/lib/python3.9/csv.py\",\"start\":1017355,\"end\":1033499,\"audio\":0},{\"filename\":\"/lib/python3.9/dataclasses.py\",\"start\":1033499,\"end\":1083002,\"audio\":0},{\"filename\":\"/lib/python3.9/datetime.py\",\"start\":1083002,\"end\":1172152,\"audio\":0},{\"filename\":\"/lib/python3.9/decimal.py\",\"start\":1172152,\"end\":1172472,\"audio\":0},{\"filename\":\"/lib/python3.9/difflib.py\",\"start\":1172472,\"end\":1256818,\"audio\":0},{\"filename\":\"/lib/python3.9/dis.py\",\"start\":1256818,\"end\":1277388,\"audio\":0},{\"filename\":\"/lib/python3.9/doctest.py\",\"start\":1277388,\"end\":1381934,\"audio\":0},{\"filename\":\"/lib/python3.9/enum.py\",\"start\":1381934,\"end\":1420029,\"audio\":0},{\"filename\":\"/lib/python3.9/filecmp.py\",\"start\":1420029,\"end\":1429928,\"audio\":0},{\"filename\":\"/lib/python3.9/fileinput.py\",\"start\":1429928,\"end\":1444719,\"audio\":0},{\"filename\":\"/lib/python3.9/fnmatch.py\",\"start\":1444719,\"end\":1450723,\"audio\":0},{\"filename\":\"/lib/python3.9/formatter.py\",\"start\":1450723,\"end\":1465866,\"audio\":0},{\"filename\":\"/lib/python3.9/fractions.py\",\"start\":1465866,\"end\":1490189,\"audio\":0},{\"filename\":\"/lib/python3.9/ftplib.py\",\"start\":1490189,\"end\":1525685,\"audio\":0},{\"filename\":\"/lib/python3.9/functools.py\",\"start\":1525685,\"end\":1563176,\"audio\":0},{\"filename\":\"/lib/python3.9/genericpath.py\",\"start\":1563176,\"end\":1568151,\"audio\":0},{\"filename\":\"/lib/python3.9/getopt.py\",\"start\":1568151,\"end\":1575640,\"audio\":0},{\"filename\":\"/lib/python3.9/getpass.py\",\"start\":1575640,\"end\":1581629,\"audio\":0},{\"filename\":\"/lib/python3.9/gettext.py\",\"start\":1581629,\"end\":1608895,\"audio\":0},{\"filename\":\"/lib/python3.9/glob.py\",\"start\":1608895,\"end\":1614592,\"audio\":0},{\"filename\":\"/lib/python3.9/graphlib.py\",\"start\":1614592,\"end\":1624166,\"audio\":0},{\"filename\":\"/lib/python3.9/gzip.py\",\"start\":1624166,\"end\":1645942,\"audio\":0},{\"filename\":\"/lib/python3.9/hashlib.py\",\"start\":1645942,\"end\":1655952,\"audio\":0},{\"filename\":\"/lib/python3.9/heapq.py\",\"start\":1655952,\"end\":1678829,\"audio\":0},{\"filename\":\"/lib/python3.9/hmac.py\",\"start\":1678829,\"end\":1685832,\"audio\":0},{\"filename\":\"/lib/python3.9/imaplib.py\",\"start\":1685832,\"end\":1740736,\"audio\":0},{\"filename\":\"/lib/python3.9/imghdr.py\",\"start\":1740736,\"end\":1744544,\"audio\":0},{\"filename\":\"/lib/python3.9/imp.py\",\"start\":1744544,\"end\":1755080,\"audio\":0},{\"filename\":\"/lib/python3.9/inspect.py\",\"start\":1755080,\"end\":1873963,\"audio\":0},{\"filename\":\"/lib/python3.9/io.py\",\"start\":1873963,\"end\":1877504,\"audio\":0},{\"filename\":\"/lib/python3.9/ipaddress.py\",\"start\":1877504,\"end\":1952179,\"audio\":0},{\"filename\":\"/lib/python3.9/keyword.py\",\"start\":1952179,\"end\":1953226,\"audio\":0},{\"filename\":\"/lib/python3.9/linecache.py\",\"start\":1953226,\"end\":1958686,\"audio\":0},{\"filename\":\"/lib/python3.9/locale.py\",\"start\":1958686,\"end\":2036957,\"audio\":0},{\"filename\":\"/lib/python3.9/lzma.py\",\"start\":2036957,\"end\":2049940,\"audio\":0},{\"filename\":\"/lib/python3.9/mailbox.py\",\"start\":2049940,\"end\":2128734,\"audio\":0},{\"filename\":\"/lib/python3.9/mailcap.py\",\"start\":2128734,\"end\":2136887,\"audio\":0},{\"filename\":\"/lib/python3.9/mimetypes.py\",\"start\":2136887,\"end\":2158530,\"audio\":0},{\"filename\":\"/lib/python3.9/modulefinder.py\",\"start\":2158530,\"end\":2182931,\"audio\":0},{\"filename\":\"/lib/python3.9/netrc.py\",\"start\":2182931,\"end\":2188497,\"audio\":0},{\"filename\":\"/lib/python3.9/nntplib.py\",\"start\":2188497,\"end\":2229520,\"audio\":0},{\"filename\":\"/lib/python3.9/ntpath.py\",\"start\":2229520,\"end\":2257254,\"audio\":0},{\"filename\":\"/lib/python3.9/nturl2path.py\",\"start\":2257254,\"end\":2260141,\"audio\":0},{\"filename\":\"/lib/python3.9/numbers.py\",\"start\":2260141,\"end\":2270385,\"audio\":0},{\"filename\":\"/lib/python3.9/opcode.py\",\"start\":2270385,\"end\":2276045,\"audio\":0},{\"filename\":\"/lib/python3.9/operator.py\",\"start\":2276045,\"end\":2286756,\"audio\":0},{\"filename\":\"/lib/python3.9/optparse.py\",\"start\":2286756,\"end\":2347125,\"audio\":0},{\"filename\":\"/lib/python3.9/os.py\",\"start\":2347125,\"end\":2386190,\"audio\":0},{\"filename\":\"/lib/python3.9/pathlib.py\",\"start\":2386190,\"end\":2439211,\"audio\":0},{\"filename\":\"/lib/python3.9/pdb.py\",\"start\":2439211,\"end\":2501951,\"audio\":0},{\"filename\":\"/lib/python3.9/pickle.py\",\"start\":2501951,\"end\":2566872,\"audio\":0},{\"filename\":\"/lib/python3.9/pickletools.py\",\"start\":2566872,\"end\":2660358,\"audio\":0},{\"filename\":\"/lib/python3.9/pipes.py\",\"start\":2660358,\"end\":2669274,\"audio\":0},{\"filename\":\"/lib/python3.9/pkgutil.py\",\"start\":2669274,\"end\":2693511,\"audio\":0},{\"filename\":\"/lib/python3.9/platform.py\",\"start\":2693511,\"end\":2734058,\"audio\":0},{\"filename\":\"/lib/python3.9/plistlib.py\",\"start\":2734058,\"end\":2762306,\"audio\":0},{\"filename\":\"/lib/python3.9/poplib.py\",\"start\":2762306,\"end\":2777504,\"audio\":0},{\"filename\":\"/lib/python3.9/posixpath.py\",\"start\":2777504,\"end\":2793131,\"audio\":0},{\"filename\":\"/lib/python3.9/pprint.py\",\"start\":2793131,\"end\":2815658,\"audio\":0},{\"filename\":\"/lib/python3.9/profile.py\",\"start\":2815658,\"end\":2838529,\"audio\":0},{\"filename\":\"/lib/python3.9/pstats.py\",\"start\":2838529,\"end\":2867855,\"audio\":0},{\"filename\":\"/lib/python3.9/pty.py\",\"start\":2867855,\"end\":2872662,\"audio\":0},{\"filename\":\"/lib/python3.9/py_compile.py\",\"start\":2872662,\"end\":2880810,\"audio\":0},{\"filename\":\"/lib/python3.9/pyclbr.py\",\"start\":2880810,\"end\":2896065,\"audio\":0},{\"filename\":\"/lib/python3.9/pydoc.py\",\"start\":2896065,\"end\":3005455,\"audio\":0},{\"filename\":\"/lib/python3.9/queue.py\",\"start\":3005455,\"end\":3016938,\"audio\":0},{\"filename\":\"/lib/python3.9/quopri.py\",\"start\":3016938,\"end\":3024206,\"audio\":0},{\"filename\":\"/lib/python3.9/random.py\",\"start\":3024206,\"end\":3055705,\"audio\":0},{\"filename\":\"/lib/python3.9/re.py\",\"start\":3055705,\"end\":3071566,\"audio\":0},{\"filename\":\"/lib/python3.9/reprlib.py\",\"start\":3071566,\"end\":3076833,\"audio\":0},{\"filename\":\"/lib/python3.9/rlcompleter.py\",\"start\":3076833,\"end\":3083930,\"audio\":0},{\"filename\":\"/lib/python3.9/runpy.py\",\"start\":3083930,\"end\":3096141,\"audio\":0},{\"filename\":\"/lib/python3.9/sched.py\",\"start\":3096141,\"end\":3102583,\"audio\":0},{\"filename\":\"/lib/python3.9/secrets.py\",\"start\":3102583,\"end\":3104619,\"audio\":0},{\"filename\":\"/lib/python3.9/selectors.py\",\"start\":3104619,\"end\":3124155,\"audio\":0},{\"filename\":\"/lib/python3.9/shelve.py\",\"start\":3124155,\"end\":3132682,\"audio\":0},{\"filename\":\"/lib/python3.9/shlex.py\",\"start\":3132682,\"end\":3146183,\"audio\":0},{\"filename\":\"/lib/python3.9/shutil.py\",\"start\":3146183,\"end\":3198017,\"audio\":0},{\"filename\":\"/lib/python3.9/signal.py\",\"start\":3198017,\"end\":3200290,\"audio\":0},{\"filename\":\"/lib/python3.9/site.py\",\"start\":3200290,\"end\":3221854,\"audio\":0},{\"filename\":\"/lib/python3.9/smtpd.py\",\"start\":3221854,\"end\":3256677,\"audio\":0},{\"filename\":\"/lib/python3.9/smtplib.py\",\"start\":3256677,\"end\":3301887,\"audio\":0},{\"filename\":\"/lib/python3.9/sndhdr.py\",\"start\":3301887,\"end\":3308986,\"audio\":0},{\"filename\":\"/lib/python3.9/socket.py\",\"start\":3308986,\"end\":3345595,\"audio\":0},{\"filename\":\"/lib/python3.9/socketserver.py\",\"start\":3345595,\"end\":3372891,\"audio\":0},{\"filename\":\"/lib/python3.9/sre_compile.py\",\"start\":3372891,\"end\":3399586,\"audio\":0},{\"filename\":\"/lib/python3.9/sre_constants.py\",\"start\":3399586,\"end\":3406740,\"audio\":0},{\"filename\":\"/lib/python3.9/sre_parse.py\",\"start\":3406740,\"end\":3446970,\"audio\":0},{\"filename\":\"/lib/python3.9/ssl.py\",\"start\":3446970,\"end\":3497721,\"audio\":0},{\"filename\":\"/lib/python3.9/stat.py\",\"start\":3497721,\"end\":3503206,\"audio\":0},{\"filename\":\"/lib/python3.9/statistics.py\",\"start\":3503206,\"end\":3541274,\"audio\":0},{\"filename\":\"/lib/python3.9/string.py\",\"start\":3541274,\"end\":3551840,\"audio\":0},{\"filename\":\"/lib/python3.9/stringprep.py\",\"start\":3551840,\"end\":3564757,\"audio\":0},{\"filename\":\"/lib/python3.9/struct.py\",\"start\":3564757,\"end\":3565014,\"audio\":0},{\"filename\":\"/lib/python3.9/subprocess.py\",\"start\":3565014,\"end\":3647664,\"audio\":0},{\"filename\":\"/lib/python3.9/sunau.py\",\"start\":3647664,\"end\":3665822,\"audio\":0},{\"filename\":\"/lib/python3.9/symbol.py\",\"start\":3665822,\"end\":3668103,\"audio\":0},{\"filename\":\"/lib/python3.9/symtable.py\",\"start\":3668103,\"end\":3676008,\"audio\":0},{\"filename\":\"/lib/python3.9/sysconfig.py\",\"start\":3676008,\"end\":3700922,\"audio\":0},{\"filename\":\"/lib/python3.9/tabnanny.py\",\"start\":3700922,\"end\":3712330,\"audio\":0},{\"filename\":\"/lib/python3.9/tarfile.py\",\"start\":3712330,\"end\":3806784,\"audio\":0},{\"filename\":\"/lib/python3.9/telnetlib.py\",\"start\":3806784,\"end\":3830038,\"audio\":0},{\"filename\":\"/lib/python3.9/tempfile.py\",\"start\":3830038,\"end\":3857638,\"audio\":0},{\"filename\":\"/lib/python3.9/textwrap.py\",\"start\":3857638,\"end\":3877045,\"audio\":0},{\"filename\":\"/lib/python3.9/this.py\",\"start\":3877045,\"end\":3878048,\"audio\":0},{\"filename\":\"/lib/python3.9/threading.py\",\"start\":3878048,\"end\":3930279,\"audio\":0},{\"filename\":\"/lib/python3.9/timeit.py\",\"start\":3930279,\"end\":3943761,\"audio\":0},{\"filename\":\"/lib/python3.9/token.py\",\"start\":3943761,\"end\":3946129,\"audio\":0},{\"filename\":\"/lib/python3.9/tokenize.py\",\"start\":3946129,\"end\":3971970,\"audio\":0},{\"filename\":\"/lib/python3.9/trace.py\",\"start\":3971970,\"end\":4001166,\"audio\":0},{\"filename\":\"/lib/python3.9/traceback.py\",\"start\":4001166,\"end\":4025132,\"audio\":0},{\"filename\":\"/lib/python3.9/tracemalloc.py\",\"start\":4025132,\"end\":4043179,\"audio\":0},{\"filename\":\"/lib/python3.9/tty.py\",\"start\":4043179,\"end\":4044058,\"audio\":0},{\"filename\":\"/lib/python3.9/types.py\",\"start\":4044058,\"end\":4053804,\"audio\":0},{\"filename\":\"/lib/python3.9/typing.py\",\"start\":4053804,\"end\":4128556,\"audio\":0},{\"filename\":\"/lib/python3.9/uu.py\",\"start\":4128556,\"end\":4135515,\"audio\":0},{\"filename\":\"/lib/python3.9/uuid.py\",\"start\":4135515,\"end\":4162839,\"audio\":0},{\"filename\":\"/lib/python3.9/warnings.py\",\"start\":4162839,\"end\":4182527,\"audio\":0},{\"filename\":\"/lib/python3.9/wave.py\",\"start\":4182527,\"end\":4200531,\"audio\":0},{\"filename\":\"/lib/python3.9/weakref.py\",\"start\":4200531,\"end\":4221775,\"audio\":0},{\"filename\":\"/lib/python3.9/xdrlib.py\",\"start\":4221775,\"end\":4227688,\"audio\":0},{\"filename\":\"/lib/python3.9/zipapp.py\",\"start\":4227688,\"end\":4235223,\"audio\":0},{\"filename\":\"/lib/python3.9/zipfile.py\",\"start\":4235223,\"end\":4322501,\"audio\":0},{\"filename\":\"/lib/python3.9/zipimport.py\",\"start\":4322501,\"end\":4353266,\"audio\":0},{\"filename\":\"/lib/python3.9/LICENSE.txt\",\"start\":4353266,\"end\":4367191,\"audio\":0},{\"filename\":\"/lib/python3.9/_sysconfigdata__emscripten_.py\",\"start\":4367191,\"end\":4395479,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/README.txt\",\"start\":4395479,\"end\":4395598,\"audio\":0},{\"filename\":\"/lib/python3.9/importlib/__init__.py\",\"start\":4395598,\"end\":4401659,\"audio\":0},{\"filename\":\"/lib/python3.9/importlib/_bootstrap.py\",\"start\":4401659,\"end\":4441981,\"audio\":0},{\"filename\":\"/lib/python3.9/importlib/_bootstrap_external.py\",\"start\":4441981,\"end\":4506562,\"audio\":0},{\"filename\":\"/lib/python3.9/importlib/_common.py\",\"start\":4506562,\"end\":4508059,\"audio\":0},{\"filename\":\"/lib/python3.9/importlib/abc.py\",\"start\":4508059,\"end\":4522983,\"audio\":0},{\"filename\":\"/lib/python3.9/importlib/machinery.py\",\"start\":4522983,\"end\":4523827,\"audio\":0},{\"filename\":\"/lib/python3.9/importlib/metadata.py\",\"start\":4523827,\"end\":4542038,\"audio\":0},{\"filename\":\"/lib/python3.9/importlib/resources.py\",\"start\":4542038,\"end\":4549247,\"audio\":0},{\"filename\":\"/lib/python3.9/importlib/util.py\",\"start\":4549247,\"end\":4560568,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/__init__.py\",\"start\":4560568,\"end\":4561847,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/__main__.py\",\"start\":4561847,\"end\":4565190,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/base_events.py\",\"start\":4565190,\"end\":4638999,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/base_futures.py\",\"start\":4638999,\"end\":4641573,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/base_subprocess.py\",\"start\":4641573,\"end\":4650416,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/base_tasks.py\",\"start\":4650416,\"end\":4652883,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/constants.py\",\"start\":4652883,\"end\":4653771,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/coroutines.py\",\"start\":4653771,\"end\":4662568,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/events.py\",\"start\":4662568,\"end\":4688946,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/exceptions.py\",\"start\":4688946,\"end\":4690579,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/format_helpers.py\",\"start\":4690579,\"end\":4692983,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/futures.py\",\"start\":4692983,\"end\":4707001,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/locks.py\",\"start\":4707001,\"end\":4721950,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/log.py\",\"start\":4721950,\"end\":4722074,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/proactor_events.py\",\"start\":4722074,\"end\":4754127,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/protocols.py\",\"start\":4754127,\"end\":4761263,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/queues.py\",\"start\":4761263,\"end\":4769544,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/runners.py\",\"start\":4769544,\"end\":4771668,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/selector_events.py\",\"start\":4771668,\"end\":4811170,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/sslproto.py\",\"start\":4811170,\"end\":4838354,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/staggered.py\",\"start\":4838354,\"end\":4844346,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/streams.py\",\"start\":4844346,\"end\":4871002,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/subprocess.py\",\"start\":4871002,\"end\":4879070,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/tasks.py\",\"start\":4879070,\"end\":4913340,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/threads.py\",\"start\":4913340,\"end\":4914130,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/transports.py\",\"start\":4914130,\"end\":4924616,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/trsock.py\",\"start\":4924616,\"end\":4930492,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/unix_events.py\",\"start\":4930492,\"end\":4982256,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/windows_events.py\",\"start\":4982256,\"end\":5015163,\"audio\":0},{\"filename\":\"/lib/python3.9/asyncio/windows_utils.py\",\"start\":5015163,\"end\":5020223,\"audio\":0},{\"filename\":\"/lib/python3.9/collections/__init__.py\",\"start\":5020223,\"end\":5070042,\"audio\":0},{\"filename\":\"/lib/python3.9/collections/abc.py\",\"start\":5070042,\"end\":5070161,\"audio\":0},{\"filename\":\"/lib/python3.9/concurrent/__init__.py\",\"start\":5070161,\"end\":5070199,\"audio\":0},{\"filename\":\"/lib/python3.9/concurrent/futures/__init__.py\",\"start\":5070199,\"end\":5071753,\"audio\":0},{\"filename\":\"/lib/python3.9/concurrent/futures/_base.py\",\"start\":5071753,\"end\":5094242,\"audio\":0},{\"filename\":\"/lib/python3.9/concurrent/futures/process.py\",\"start\":5094242,\"end\":5124128,\"audio\":0},{\"filename\":\"/lib/python3.9/concurrent/futures/thread.py\",\"start\":5124128,\"end\":5132573,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/__init__.py\",\"start\":5132573,\"end\":5138161,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/aliases.py\",\"start\":5138161,\"end\":5153838,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/ascii.py\",\"start\":5153838,\"end\":5155086,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/base64_codec.py\",\"start\":5155086,\"end\":5156619,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/big5.py\",\"start\":5156619,\"end\":5157638,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/big5hkscs.py\",\"start\":5157638,\"end\":5158677,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/bz2_codec.py\",\"start\":5158677,\"end\":5160926,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/charmap.py\",\"start\":5160926,\"end\":5163010,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp037.py\",\"start\":5163010,\"end\":5176131,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1006.py\",\"start\":5176131,\"end\":5189699,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1026.py\",\"start\":5189699,\"end\":5202812,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1125.py\",\"start\":5202812,\"end\":5237409,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1140.py\",\"start\":5237409,\"end\":5250514,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1250.py\",\"start\":5250514,\"end\":5264200,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1251.py\",\"start\":5264200,\"end\":5277561,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1252.py\",\"start\":5277561,\"end\":5291072,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1253.py\",\"start\":5291072,\"end\":5304166,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1254.py\",\"start\":5304166,\"end\":5317668,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1255.py\",\"start\":5317668,\"end\":5330134,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1256.py\",\"start\":5330134,\"end\":5342948,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1257.py\",\"start\":5342948,\"end\":5356322,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp1258.py\",\"start\":5356322,\"end\":5369686,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp273.py\",\"start\":5369686,\"end\":5383818,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp424.py\",\"start\":5383818,\"end\":5395873,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp437.py\",\"start\":5395873,\"end\":5430437,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp500.py\",\"start\":5430437,\"end\":5443558,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp720.py\",\"start\":5443558,\"end\":5457244,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp737.py\",\"start\":5457244,\"end\":5491925,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp775.py\",\"start\":5491925,\"end\":5526401,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp850.py\",\"start\":5526401,\"end\":5560506,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp852.py\",\"start\":5560506,\"end\":5595508,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp855.py\",\"start\":5595508,\"end\":5629358,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp856.py\",\"start\":5629358,\"end\":5641781,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp857.py\",\"start\":5641781,\"end\":5675689,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp858.py\",\"start\":5675689,\"end\":5709704,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp860.py\",\"start\":5709704,\"end\":5744385,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp861.py\",\"start\":5744385,\"end\":5779018,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp862.py\",\"start\":5779018,\"end\":5812388,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp863.py\",\"start\":5812388,\"end\":5846640,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp864.py\",\"start\":5846640,\"end\":5880303,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp865.py\",\"start\":5880303,\"end\":5914921,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp866.py\",\"start\":5914921,\"end\":5949317,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp869.py\",\"start\":5949317,\"end\":5982282,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp874.py\",\"start\":5982282,\"end\":5994877,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp875.py\",\"start\":5994877,\"end\":6007731,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp932.py\",\"start\":6007731,\"end\":6008754,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp949.py\",\"start\":6008754,\"end\":6009777,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/cp950.py\",\"start\":6009777,\"end\":6010800,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/euc_jis_2004.py\",\"start\":6010800,\"end\":6011851,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/euc_jisx0213.py\",\"start\":6011851,\"end\":6012902,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/euc_jp.py\",\"start\":6012902,\"end\":6013929,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/euc_kr.py\",\"start\":6013929,\"end\":6014956,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/gb18030.py\",\"start\":6014956,\"end\":6015987,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/gb2312.py\",\"start\":6015987,\"end\":6017014,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/gbk.py\",\"start\":6017014,\"end\":6018029,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/hex_codec.py\",\"start\":6018029,\"end\":6019537,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/hp_roman8.py\",\"start\":6019537,\"end\":6033012,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/hz.py\",\"start\":6033012,\"end\":6034023,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/idna.py\",\"start\":6034023,\"end\":6043193,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso2022_jp.py\",\"start\":6043193,\"end\":6044246,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso2022_jp_1.py\",\"start\":6044246,\"end\":6045307,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso2022_jp_2.py\",\"start\":6045307,\"end\":6046368,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso2022_jp_2004.py\",\"start\":6046368,\"end\":6047441,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso2022_jp_3.py\",\"start\":6047441,\"end\":6048502,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso2022_jp_ext.py\",\"start\":6048502,\"end\":6049571,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso2022_kr.py\",\"start\":6049571,\"end\":6050624,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_1.py\",\"start\":6050624,\"end\":6063800,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_10.py\",\"start\":6063800,\"end\":6077389,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_11.py\",\"start\":6077389,\"end\":6089724,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_13.py\",\"start\":6089724,\"end\":6102995,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_14.py\",\"start\":6102995,\"end\":6116647,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_15.py\",\"start\":6116647,\"end\":6129859,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_16.py\",\"start\":6129859,\"end\":6143416,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_2.py\",\"start\":6143416,\"end\":6156820,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_3.py\",\"start\":6156820,\"end\":6169909,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_4.py\",\"start\":6169909,\"end\":6183285,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_5.py\",\"start\":6183285,\"end\":6196300,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_6.py\",\"start\":6196300,\"end\":6207133,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_7.py\",\"start\":6207133,\"end\":6219977,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_8.py\",\"start\":6219977,\"end\":6231013,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/iso8859_9.py\",\"start\":6231013,\"end\":6244169,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/johab.py\",\"start\":6244169,\"end\":6245192,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/koi8_r.py\",\"start\":6245192,\"end\":6258971,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/koi8_t.py\",\"start\":6258971,\"end\":6272164,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/koi8_u.py\",\"start\":6272164,\"end\":6285926,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/kz1048.py\",\"start\":6285926,\"end\":6299649,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/latin_1.py\",\"start\":6299649,\"end\":6300913,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/mac_arabic.py\",\"start\":6300913,\"end\":6337380,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/mac_croatian.py\",\"start\":6337380,\"end\":6351013,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/mac_cyrillic.py\",\"start\":6351013,\"end\":6364467,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/mac_farsi.py\",\"start\":6364467,\"end\":6379637,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/mac_greek.py\",\"start\":6379637,\"end\":6393358,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/mac_iceland.py\",\"start\":6393358,\"end\":6406856,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/mac_latin2.py\",\"start\":6406856,\"end\":6420974,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/mac_roman.py\",\"start\":6420974,\"end\":6434454,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/mac_romanian.py\",\"start\":6434454,\"end\":6448115,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/mac_turkish.py\",\"start\":6448115,\"end\":6461628,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/mbcs.py\",\"start\":6461628,\"end\":6462839,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/oem.py\",\"start\":6462839,\"end\":6463858,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/palmos.py\",\"start\":6463858,\"end\":6477377,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/ptcp154.py\",\"start\":6477377,\"end\":6491392,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/punycode.py\",\"start\":6491392,\"end\":6498275,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/quopri_codec.py\",\"start\":6498275,\"end\":6499800,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/raw_unicode_escape.py\",\"start\":6499800,\"end\":6501008,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/rot_13.py\",\"start\":6501008,\"end\":6503456,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/shift_jis.py\",\"start\":6503456,\"end\":6504495,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/shift_jis_2004.py\",\"start\":6504495,\"end\":6505554,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/shift_jisx0213.py\",\"start\":6505554,\"end\":6506613,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/tis_620.py\",\"start\":6506613,\"end\":6518913,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/undefined.py\",\"start\":6518913,\"end\":6520212,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/unicode_escape.py\",\"start\":6520212,\"end\":6521396,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/utf_16.py\",\"start\":6521396,\"end\":6526632,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/utf_16_be.py\",\"start\":6526632,\"end\":6527669,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/utf_16_le.py\",\"start\":6527669,\"end\":6528706,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/utf_32.py\",\"start\":6528706,\"end\":6533835,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/utf_32_be.py\",\"start\":6533835,\"end\":6534765,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/utf_32_le.py\",\"start\":6534765,\"end\":6535695,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/utf_7.py\",\"start\":6535695,\"end\":6536641,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/utf_8.py\",\"start\":6536641,\"end\":6537646,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/utf_8_sig.py\",\"start\":6537646,\"end\":6541779,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/uu_codec.py\",\"start\":6541779,\"end\":6544630,\"audio\":0},{\"filename\":\"/lib/python3.9/encodings/zlib_codec.py\",\"start\":6544630,\"end\":6546834,\"audio\":0},{\"filename\":\"/lib/python3.9/email/__init__.py\",\"start\":6546834,\"end\":6548600,\"audio\":0},{\"filename\":\"/lib/python3.9/email/_encoded_words.py\",\"start\":6548600,\"end\":6557124,\"audio\":0},{\"filename\":\"/lib/python3.9/email/_header_value_parser.py\",\"start\":6557124,\"end\":6664083,\"audio\":0},{\"filename\":\"/lib/python3.9/email/_parseaddr.py\",\"start\":6664083,\"end\":6681687,\"audio\":0},{\"filename\":\"/lib/python3.9/email/_policybase.py\",\"start\":6681687,\"end\":6696760,\"audio\":0},{\"filename\":\"/lib/python3.9/email/architecture.rst\",\"start\":6696760,\"end\":6706321,\"audio\":0},{\"filename\":\"/lib/python3.9/email/base64mime.py\",\"start\":6706321,\"end\":6709879,\"audio\":0},{\"filename\":\"/lib/python3.9/email/charset.py\",\"start\":6709879,\"end\":6727007,\"audio\":0},{\"filename\":\"/lib/python3.9/email/contentmanager.py\",\"start\":6727007,\"end\":6737706,\"audio\":0},{\"filename\":\"/lib/python3.9/email/encoders.py\",\"start\":6737706,\"end\":6739492,\"audio\":0},{\"filename\":\"/lib/python3.9/email/errors.py\",\"start\":6739492,\"end\":6743139,\"audio\":0},{\"filename\":\"/lib/python3.9/email/feedparser.py\",\"start\":6743139,\"end\":6765919,\"audio\":0},{\"filename\":\"/lib/python3.9/email/generator.py\",\"start\":6765919,\"end\":6786115,\"audio\":0},{\"filename\":\"/lib/python3.9/email/header.py\",\"start\":6786115,\"end\":6810217,\"audio\":0},{\"filename\":\"/lib/python3.9/email/headerregistry.py\",\"start\":6810217,\"end\":6830845,\"audio\":0},{\"filename\":\"/lib/python3.9/email/iterators.py\",\"start\":6830845,\"end\":6832980,\"audio\":0},{\"filename\":\"/lib/python3.9/email/message.py\",\"start\":6832980,\"end\":6880052,\"audio\":0},{\"filename\":\"/lib/python3.9/email/parser.py\",\"start\":6880052,\"end\":6885093,\"audio\":0},{\"filename\":\"/lib/python3.9/email/policy.py\",\"start\":6885093,\"end\":6895476,\"audio\":0},{\"filename\":\"/lib/python3.9/email/quoprimime.py\",\"start\":6895476,\"end\":6905334,\"audio\":0},{\"filename\":\"/lib/python3.9/email/utils.py\",\"start\":6905334,\"end\":6918599,\"audio\":0},{\"filename\":\"/lib/python3.9/email/mime/__init__.py\",\"start\":6918599,\"end\":6918599,\"audio\":0},{\"filename\":\"/lib/python3.9/email/mime/application.py\",\"start\":6918599,\"end\":6919920,\"audio\":0},{\"filename\":\"/lib/python3.9/email/mime/audio.py\",\"start\":6919920,\"end\":6922659,\"audio\":0},{\"filename\":\"/lib/python3.9/email/mime/base.py\",\"start\":6922659,\"end\":6923575,\"audio\":0},{\"filename\":\"/lib/python3.9/email/mime/image.py\",\"start\":6923575,\"end\":6925404,\"audio\":0},{\"filename\":\"/lib/python3.9/email/mime/message.py\",\"start\":6925404,\"end\":6926721,\"audio\":0},{\"filename\":\"/lib/python3.9/email/mime/multipart.py\",\"start\":6926721,\"end\":6928342,\"audio\":0},{\"filename\":\"/lib/python3.9/email/mime/nonmultipart.py\",\"start\":6928342,\"end\":6929033,\"audio\":0},{\"filename\":\"/lib/python3.9/email/mime/text.py\",\"start\":6929033,\"end\":6930470,\"audio\":0},{\"filename\":\"/lib/python3.9/html/__init__.py\",\"start\":6930470,\"end\":6935226,\"audio\":0},{\"filename\":\"/lib/python3.9/html/entities.py\",\"start\":6935226,\"end\":7010541,\"audio\":0},{\"filename\":\"/lib/python3.9/html/parser.py\",\"start\":7010541,\"end\":7027933,\"audio\":0},{\"filename\":\"/lib/python3.9/json/__init__.py\",\"start\":7027933,\"end\":7041950,\"audio\":0},{\"filename\":\"/lib/python3.9/json/decoder.py\",\"start\":7041950,\"end\":7054422,\"audio\":0},{\"filename\":\"/lib/python3.9/json/encoder.py\",\"start\":7054422,\"end\":7070494,\"audio\":0},{\"filename\":\"/lib/python3.9/json/scanner.py\",\"start\":7070494,\"end\":7072919,\"audio\":0},{\"filename\":\"/lib/python3.9/json/tool.py\",\"start\":7072919,\"end\":7076101,\"audio\":0},{\"filename\":\"/lib/python3.9/http/__init__.py\",\"start\":7076101,\"end\":7082833,\"audio\":0},{\"filename\":\"/lib/python3.9/http/client.py\",\"start\":7082833,\"end\":7138278,\"audio\":0},{\"filename\":\"/lib/python3.9/http/cookiejar.py\",\"start\":7138278,\"end\":7215113,\"audio\":0},{\"filename\":\"/lib/python3.9/http/cookies.py\",\"start\":7215113,\"end\":7235595,\"audio\":0},{\"filename\":\"/lib/python3.9/http/server.py\",\"start\":7235595,\"end\":7282834,\"audio\":0},{\"filename\":\"/lib/python3.9/xmlrpc/__init__.py\",\"start\":7282834,\"end\":7282872,\"audio\":0},{\"filename\":\"/lib/python3.9/xmlrpc/client.py\",\"start\":7282872,\"end\":7332181,\"audio\":0},{\"filename\":\"/lib/python3.9/xmlrpc/server.py\",\"start\":7332181,\"end\":7368852,\"audio\":0},{\"filename\":\"/lib/python3.9/sqlite3/__init__.py\",\"start\":7368852,\"end\":7369870,\"audio\":0},{\"filename\":\"/lib/python3.9/sqlite3/dbapi2.py\",\"start\":7369870,\"end\":7372557,\"audio\":0},{\"filename\":\"/lib/python3.9/sqlite3/dump.py\",\"start\":7372557,\"end\":7375382,\"audio\":0},{\"filename\":\"/lib/python3.9/logging/__init__.py\",\"start\":7375382,\"end\":7453982,\"audio\":0},{\"filename\":\"/lib/python3.9/logging/config.py\",\"start\":7453982,\"end\":7490361,\"audio\":0},{\"filename\":\"/lib/python3.9/logging/handlers.py\",\"start\":7490361,\"end\":7549470,\"audio\":0},{\"filename\":\"/lib/python3.9/wsgiref/__init__.py\",\"start\":7549470,\"end\":7550057,\"audio\":0},{\"filename\":\"/lib/python3.9/wsgiref/handlers.py\",\"start\":7550057,\"end\":7571726,\"audio\":0},{\"filename\":\"/lib/python3.9/wsgiref/headers.py\",\"start\":7571726,\"end\":7578492,\"audio\":0},{\"filename\":\"/lib/python3.9/wsgiref/simple_server.py\",\"start\":7578492,\"end\":7583663,\"audio\":0},{\"filename\":\"/lib/python3.9/wsgiref/util.py\",\"start\":7583663,\"end\":7589514,\"audio\":0},{\"filename\":\"/lib/python3.9/wsgiref/validate.py\",\"start\":7589514,\"end\":7604613,\"audio\":0},{\"filename\":\"/lib/python3.9/urllib/__init__.py\",\"start\":7604613,\"end\":7604613,\"audio\":0},{\"filename\":\"/lib/python3.9/urllib/error.py\",\"start\":7604613,\"end\":7607245,\"audio\":0},{\"filename\":\"/lib/python3.9/urllib/parse.py\",\"start\":7607245,\"end\":7649516,\"audio\":0},{\"filename\":\"/lib/python3.9/urllib/request.py\",\"start\":7649516,\"end\":7750796,\"audio\":0},{\"filename\":\"/lib/python3.9/urllib/response.py\",\"start\":7750796,\"end\":7753157,\"audio\":0},{\"filename\":\"/lib/python3.9/urllib/robotparser.py\",\"start\":7753157,\"end\":7762581,\"audio\":0},{\"filename\":\"/lib/python3.9/ctypes/__init__.py\",\"start\":7762581,\"end\":7780569,\"audio\":0},{\"filename\":\"/lib/python3.9/ctypes/_aix.py\",\"start\":7780569,\"end\":7793136,\"audio\":0},{\"filename\":\"/lib/python3.9/ctypes/_endian.py\",\"start\":7793136,\"end\":7795136,\"audio\":0},{\"filename\":\"/lib/python3.9/ctypes/util.py\",\"start\":7795136,\"end\":7809015,\"audio\":0},{\"filename\":\"/lib/python3.9/ctypes/wintypes.py\",\"start\":7809015,\"end\":7814643,\"audio\":0},{\"filename\":\"/lib/python3.9/ctypes/macholib/README.ctypes\",\"start\":7814643,\"end\":7814939,\"audio\":0},{\"filename\":\"/lib/python3.9/ctypes/macholib/__init__.py\",\"start\":7814939,\"end\":7815093,\"audio\":0},{\"filename\":\"/lib/python3.9/ctypes/macholib/dyld.py\",\"start\":7815093,\"end\":7820376,\"audio\":0},{\"filename\":\"/lib/python3.9/ctypes/macholib/dylib.py\",\"start\":7820376,\"end\":7822204,\"audio\":0},{\"filename\":\"/lib/python3.9/ctypes/macholib/fetch_macholib\",\"start\":7822204,\"end\":7822288,\"audio\":0},{\"filename\":\"/lib/python3.9/ctypes/macholib/fetch_macholib.bat\",\"start\":7822288,\"end\":7822363,\"audio\":0},{\"filename\":\"/lib/python3.9/ctypes/macholib/framework.py\",\"start\":7822363,\"end\":7824564,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/__init__.py\",\"start\":7824564,\"end\":7825121,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/dom/NodeFilter.py\",\"start\":7825121,\"end\":7826057,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/dom/__init__.py\",\"start\":7826057,\"end\":7830076,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/dom/domreg.py\",\"start\":7830076,\"end\":7833527,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/dom/expatbuilder.py\",\"start\":7833527,\"end\":7869294,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/dom/minicompat.py\",\"start\":7869294,\"end\":7872661,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/dom/minidom.py\",\"start\":7872661,\"end\":7940727,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/dom/pulldom.py\",\"start\":7940727,\"end\":7952724,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/dom/xmlbuilder.py\",\"start\":7952724,\"end\":7965111,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/etree/ElementInclude.py\",\"start\":7965111,\"end\":7971992,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/etree/ElementPath.py\",\"start\":7971992,\"end\":7985110,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/etree/ElementTree.py\",\"start\":7985110,\"end\":8059132,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/etree/__init__.py\",\"start\":8059132,\"end\":8060736,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/etree/cElementTree.py\",\"start\":8060736,\"end\":8060818,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/parsers/__init__.py\",\"start\":8060818,\"end\":8060985,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/parsers/expat.py\",\"start\":8060985,\"end\":8061233,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/sax/__init__.py\",\"start\":8061233,\"end\":8064875,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/sax/_exceptions.py\",\"start\":8064875,\"end\":8069660,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/sax/expatreader.py\",\"start\":8069660,\"end\":8085387,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/sax/handler.py\",\"start\":8085387,\"end\":8099309,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/sax/saxutils.py\",\"start\":8099309,\"end\":8111564,\"audio\":0},{\"filename\":\"/lib/python3.9/xml/sax/xmlreader.py\",\"start\":8111564,\"end\":8124248,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/__init__.py\",\"start\":8124248,\"end\":8125164,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/connection.py\",\"start\":8125164,\"end\":8157188,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/context.py\",\"start\":8157188,\"end\":8168445,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/forkserver.py\",\"start\":8168445,\"end\":8180587,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/heap.py\",\"start\":8180587,\"end\":8192213,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/managers.py\",\"start\":8192213,\"end\":8239453,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/pool.py\",\"start\":8239453,\"end\":8272008,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/popen_fork.py\",\"start\":8272008,\"end\":8274385,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/popen_forkserver.py\",\"start\":8274385,\"end\":8276615,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/popen_spawn_posix.py\",\"start\":8276615,\"end\":8278644,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/popen_spawn_win32.py\",\"start\":8278644,\"end\":8282655,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/process.py\",\"start\":8282655,\"end\":8294655,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/queues.py\",\"start\":8294655,\"end\":8306648,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/reduction.py\",\"start\":8306648,\"end\":8316160,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/resource_sharer.py\",\"start\":8316160,\"end\":8321292,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/resource_tracker.py\",\"start\":8321292,\"end\":8329905,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/shared_memory.py\",\"start\":8329905,\"end\":8348301,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/sharedctypes.py\",\"start\":8348301,\"end\":8354607,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/spawn.py\",\"start\":8354607,\"end\":8363903,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/synchronize.py\",\"start\":8363903,\"end\":8375513,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/util.py\",\"start\":8375513,\"end\":8389518,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/dummy/__init__.py\",\"start\":8389518,\"end\":8392579,\"audio\":0},{\"filename\":\"/lib/python3.9/multiprocessing/dummy/connection.py\",\"start\":8392579,\"end\":8394177,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/__init__.py\",\"start\":8394177,\"end\":8397938,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/__main__.py\",\"start\":8397938,\"end\":8398410,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/_log.py\",\"start\":8398410,\"end\":8400705,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/async_case.py\",\"start\":8400705,\"end\":8406515,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/case.py\",\"start\":8406515,\"end\":8463284,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/loader.py\",\"start\":8463284,\"end\":8485986,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/main.py\",\"start\":8485986,\"end\":8497224,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/mock.py\",\"start\":8497224,\"end\":8596356,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/result.py\",\"start\":8596356,\"end\":8603799,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/runner.py\",\"start\":8603799,\"end\":8611566,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/signals.py\",\"start\":8611566,\"end\":8613969,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/suite.py\",\"start\":8613969,\"end\":8626784,\"audio\":0},{\"filename\":\"/lib/python3.9/unittest/util.py\",\"start\":8626784,\"end\":8631999,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/__init__.py\",\"start\":8631999,\"end\":8632251,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zones\",\"start\":8632251,\"end\":8641286,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/CET\",\"start\":8641286,\"end\":8641907,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/CST6CDT\",\"start\":8641907,\"end\":8642858,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Cuba\",\"start\":8642858,\"end\":8643975,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/EET\",\"start\":8643975,\"end\":8644472,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/EST\",\"start\":8644472,\"end\":8644583,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/EST5EDT\",\"start\":8644583,\"end\":8645534,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Egypt\",\"start\":8645534,\"end\":8646810,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Eire\",\"start\":8646810,\"end\":8648306,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Factory\",\"start\":8648306,\"end\":8648419,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/GB\",\"start\":8648419,\"end\":8650018,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/GB-Eire\",\"start\":8650018,\"end\":8651617,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/GMT\",\"start\":8651617,\"end\":8651728,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/GMT+0\",\"start\":8651728,\"end\":8651839,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/GMT-0\",\"start\":8651839,\"end\":8651950,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/GMT0\",\"start\":8651950,\"end\":8652061,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Greenwich\",\"start\":8652061,\"end\":8652172,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/HST\",\"start\":8652172,\"end\":8652284,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Hongkong\",\"start\":8652284,\"end\":8653059,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Iceland\",\"start\":8653059,\"end\":8653812,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Iran\",\"start\":8653812,\"end\":8655816,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Israel\",\"start\":8655816,\"end\":8656890,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Jamaica\",\"start\":8656890,\"end\":8657229,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Japan\",\"start\":8657229,\"end\":8657442,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Kwajalein\",\"start\":8657442,\"end\":8657661,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Libya\",\"start\":8657661,\"end\":8658092,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/MET\",\"start\":8658092,\"end\":8658713,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/MST\",\"start\":8658713,\"end\":8658824,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/MST7MDT\",\"start\":8658824,\"end\":8659775,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/NZ\",\"start\":8659775,\"end\":8660818,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/NZ-CHAT\",\"start\":8660818,\"end\":8661626,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Navajo\",\"start\":8661626,\"end\":8662668,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/PRC\",\"start\":8662668,\"end\":8663061,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/PST8PDT\",\"start\":8663061,\"end\":8664012,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Poland\",\"start\":8664012,\"end\":8664935,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Portugal\",\"start\":8664935,\"end\":8666371,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/ROC\",\"start\":8666371,\"end\":8666882,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/ROK\",\"start\":8666882,\"end\":8667297,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Singapore\",\"start\":8667297,\"end\":8667553,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Turkey\",\"start\":8667553,\"end\":8668753,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/UCT\",\"start\":8668753,\"end\":8668864,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/UTC\",\"start\":8668864,\"end\":8668975,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Universal\",\"start\":8668975,\"end\":8669086,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/W-SU\",\"start\":8669086,\"end\":8669994,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/WET\",\"start\":8669994,\"end\":8670488,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Zulu\",\"start\":8670488,\"end\":8670599,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/__init__.py\",\"start\":8670599,\"end\":8670599,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/iso3166.tab\",\"start\":8670599,\"end\":8675062,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/leapseconds\",\"start\":8675062,\"end\":8678454,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/tzdata.zi\",\"start\":8678454,\"end\":8791607,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/zone.tab\",\"start\":8791607,\"end\":8810928,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/zone1970.tab\",\"start\":8810928,\"end\":8828763,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Abidjan\",\"start\":8828763,\"end\":8828893,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Accra\",\"start\":8828893,\"end\":8829593,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Addis_Ababa\",\"start\":8829593,\"end\":8829784,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Algiers\",\"start\":8829784,\"end\":8830254,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Asmara\",\"start\":8830254,\"end\":8830445,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Asmera\",\"start\":8830445,\"end\":8830636,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Bamako\",\"start\":8830636,\"end\":8830766,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Bangui\",\"start\":8830766,\"end\":8830946,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Banjul\",\"start\":8830946,\"end\":8831076,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Bissau\",\"start\":8831076,\"end\":8831225,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Blantyre\",\"start\":8831225,\"end\":8831356,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Brazzaville\",\"start\":8831356,\"end\":8831536,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Bujumbura\",\"start\":8831536,\"end\":8831667,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Cairo\",\"start\":8831667,\"end\":8832943,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Casablanca\",\"start\":8832943,\"end\":8834862,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Ceuta\",\"start\":8834862,\"end\":8835424,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Conakry\",\"start\":8835424,\"end\":8835554,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Dakar\",\"start\":8835554,\"end\":8835684,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Dar_es_Salaam\",\"start\":8835684,\"end\":8835875,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Djibouti\",\"start\":8835875,\"end\":8836066,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Douala\",\"start\":8836066,\"end\":8836246,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/El_Aaiun\",\"start\":8836246,\"end\":8838076,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Freetown\",\"start\":8838076,\"end\":8838206,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Gaborone\",\"start\":8838206,\"end\":8838337,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Harare\",\"start\":8838337,\"end\":8838468,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Johannesburg\",\"start\":8838468,\"end\":8838658,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Juba\",\"start\":8838658,\"end\":8839116,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Kampala\",\"start\":8839116,\"end\":8839307,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Khartoum\",\"start\":8839307,\"end\":8839765,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Kigali\",\"start\":8839765,\"end\":8839896,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Kinshasa\",\"start\":8839896,\"end\":8840076,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Lagos\",\"start\":8840076,\"end\":8840256,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Libreville\",\"start\":8840256,\"end\":8840436,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Lome\",\"start\":8840436,\"end\":8840566,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Luanda\",\"start\":8840566,\"end\":8840746,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Lubumbashi\",\"start\":8840746,\"end\":8840877,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Lusaka\",\"start\":8840877,\"end\":8841008,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Malabo\",\"start\":8841008,\"end\":8841188,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Maputo\",\"start\":8841188,\"end\":8841319,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Maseru\",\"start\":8841319,\"end\":8841509,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Mbabane\",\"start\":8841509,\"end\":8841699,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Mogadishu\",\"start\":8841699,\"end\":8841890,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Monrovia\",\"start\":8841890,\"end\":8842054,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Nairobi\",\"start\":8842054,\"end\":8842245,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Ndjamena\",\"start\":8842245,\"end\":8842405,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Niamey\",\"start\":8842405,\"end\":8842585,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Nouakchott\",\"start\":8842585,\"end\":8842715,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Ouagadougou\",\"start\":8842715,\"end\":8842845,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Porto-Novo\",\"start\":8842845,\"end\":8843025,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Sao_Tome\",\"start\":8843025,\"end\":8843198,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Timbuktu\",\"start\":8843198,\"end\":8843328,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Tripoli\",\"start\":8843328,\"end\":8843759,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Tunis\",\"start\":8843759,\"end\":8844208,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/Windhoek\",\"start\":8844208,\"end\":8844846,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Africa/__init__.py\",\"start\":8844846,\"end\":8844846,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Adak\",\"start\":8844846,\"end\":8845815,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Anchorage\",\"start\":8845815,\"end\":8846792,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Anguilla\",\"start\":8846792,\"end\":8846922,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Antigua\",\"start\":8846922,\"end\":8847052,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Araguaina\",\"start\":8847052,\"end\":8847644,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Aruba\",\"start\":8847644,\"end\":8847795,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Asuncion\",\"start\":8847795,\"end\":8848679,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Atikokan\",\"start\":8848679,\"end\":8848903,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Atka\",\"start\":8848903,\"end\":8849872,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Bahia\",\"start\":8849872,\"end\":8850554,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Bahia_Banderas\",\"start\":8850554,\"end\":8851084,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Barbados\",\"start\":8851084,\"end\":8851315,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Belem\",\"start\":8851315,\"end\":8851709,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Belize\",\"start\":8851709,\"end\":8852754,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Blanc-Sablon\",\"start\":8852754,\"end\":8852959,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Boa_Vista\",\"start\":8852959,\"end\":8853389,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Bogota\",\"start\":8853389,\"end\":8853568,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Boise\",\"start\":8853568,\"end\":8854567,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Buenos_Aires\",\"start\":8854567,\"end\":8855275,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Cambridge_Bay\",\"start\":8855275,\"end\":8856043,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Campo_Grande\",\"start\":8856043,\"end\":8856995,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Cancun\",\"start\":8856995,\"end\":8857524,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Caracas\",\"start\":8857524,\"end\":8857714,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Catamarca\",\"start\":8857714,\"end\":8858422,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Cayenne\",\"start\":8858422,\"end\":8858573,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Cayman\",\"start\":8858573,\"end\":8858722,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Chicago\",\"start\":8858722,\"end\":8860476,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Chihuahua\",\"start\":8860476,\"end\":8860816,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Coral_Harbour\",\"start\":8860816,\"end\":8861040,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Cordoba\",\"start\":8861040,\"end\":8861748,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Costa_Rica\",\"start\":8861748,\"end\":8861980,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Creston\",\"start\":8861980,\"end\":8862138,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Cuiaba\",\"start\":8862138,\"end\":8863072,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Curacao\",\"start\":8863072,\"end\":8863223,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Danmarkshavn\",\"start\":8863223,\"end\":8863670,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Dawson\",\"start\":8863670,\"end\":8864699,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Dawson_Creek\",\"start\":8864699,\"end\":8865382,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Denver\",\"start\":8865382,\"end\":8866424,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Detroit\",\"start\":8866424,\"end\":8867323,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Dominica\",\"start\":8867323,\"end\":8867453,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Edmonton\",\"start\":8867453,\"end\":8868423,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Eirunepe\",\"start\":8868423,\"end\":8868859,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/El_Salvador\",\"start\":8868859,\"end\":8869035,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Ensenada\",\"start\":8869035,\"end\":8870060,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Fort_Nelson\",\"start\":8870060,\"end\":8871508,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Fort_Wayne\",\"start\":8871508,\"end\":8872039,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Fortaleza\",\"start\":8872039,\"end\":8872523,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Glace_Bay\",\"start\":8872523,\"end\":8873403,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Godthab\",\"start\":8873403,\"end\":8873868,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Goose_Bay\",\"start\":8873868,\"end\":8875448,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Grand_Turk\",\"start\":8875448,\"end\":8876301,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Grenada\",\"start\":8876301,\"end\":8876431,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Guadeloupe\",\"start\":8876431,\"end\":8876561,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Guatemala\",\"start\":8876561,\"end\":8876773,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Guayaquil\",\"start\":8876773,\"end\":8876952,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Guyana\",\"start\":8876952,\"end\":8877124,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Halifax\",\"start\":8877124,\"end\":8878796,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Havana\",\"start\":8878796,\"end\":8879913,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Hermosillo\",\"start\":8879913,\"end\":8880199,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Indianapolis\",\"start\":8880199,\"end\":8880730,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Inuvik\",\"start\":8880730,\"end\":8881431,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Iqaluit\",\"start\":8881431,\"end\":8882171,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Jamaica\",\"start\":8882171,\"end\":8882510,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Jujuy\",\"start\":8882510,\"end\":8883200,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Juneau\",\"start\":8883200,\"end\":8884166,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Knox_IN\",\"start\":8884166,\"end\":8885182,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Kralendijk\",\"start\":8885182,\"end\":8885333,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/La_Paz\",\"start\":8885333,\"end\":8885503,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Lima\",\"start\":8885503,\"end\":8885786,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Los_Angeles\",\"start\":8885786,\"end\":8887080,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Louisville\",\"start\":8887080,\"end\":8888322,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Lower_Princes\",\"start\":8888322,\"end\":8888473,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Maceio\",\"start\":8888473,\"end\":8888975,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Managua\",\"start\":8888975,\"end\":8889270,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Manaus\",\"start\":8889270,\"end\":8889682,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Marigot\",\"start\":8889682,\"end\":8889812,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Martinique\",\"start\":8889812,\"end\":8889990,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Matamoros\",\"start\":8889990,\"end\":8890427,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Mazatlan\",\"start\":8890427,\"end\":8890794,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Mendoza\",\"start\":8890794,\"end\":8891502,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Menominee\",\"start\":8891502,\"end\":8892419,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Merida\",\"start\":8892419,\"end\":8892722,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Metlakatla\",\"start\":8892722,\"end\":8893317,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Mexico_City\",\"start\":8893317,\"end\":8893729,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Miquelon\",\"start\":8893729,\"end\":8894279,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Moncton\",\"start\":8894279,\"end\":8895772,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Monterrey\",\"start\":8895772,\"end\":8896065,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Montevideo\",\"start\":8896065,\"end\":8897034,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Montreal\",\"start\":8897034,\"end\":8898751,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Montserrat\",\"start\":8898751,\"end\":8898881,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Nassau\",\"start\":8898881,\"end\":8899887,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/New_York\",\"start\":8899887,\"end\":8901631,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Nipigon\",\"start\":8901631,\"end\":8902466,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Nome\",\"start\":8902466,\"end\":8903441,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Noronha\",\"start\":8903441,\"end\":8903925,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Nuuk\",\"start\":8903925,\"end\":8904390,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Ojinaga\",\"start\":8904390,\"end\":8904874,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Panama\",\"start\":8904874,\"end\":8905023,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Pangnirtung\",\"start\":8905023,\"end\":8905792,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Paramaribo\",\"start\":8905792,\"end\":8905979,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Phoenix\",\"start\":8905979,\"end\":8906219,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Port-au-Prince\",\"start\":8906219,\"end\":8906784,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Port_of_Spain\",\"start\":8906784,\"end\":8906914,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Porto_Acre\",\"start\":8906914,\"end\":8907332,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Porto_Velho\",\"start\":8907332,\"end\":8907726,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Puerto_Rico\",\"start\":8907726,\"end\":8907903,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Punta_Arenas\",\"start\":8907903,\"end\":8909112,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Rainy_River\",\"start\":8909112,\"end\":8909947,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Rankin_Inlet\",\"start\":8909947,\"end\":8910639,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Recife\",\"start\":8910639,\"end\":8911123,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Regina\",\"start\":8911123,\"end\":8911761,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Resolute\",\"start\":8911761,\"end\":8912453,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Rio_Branco\",\"start\":8912453,\"end\":8912871,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Rosario\",\"start\":8912871,\"end\":8913579,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Santa_Isabel\",\"start\":8913579,\"end\":8914604,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Santarem\",\"start\":8914604,\"end\":8915013,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Santiago\",\"start\":8915013,\"end\":8916295,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Santo_Domingo\",\"start\":8916295,\"end\":8916612,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Sao_Paulo\",\"start\":8916612,\"end\":8917564,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Scoresbysund\",\"start\":8917564,\"end\":8918043,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Shiprock\",\"start\":8918043,\"end\":8919085,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Sitka\",\"start\":8919085,\"end\":8920041,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/St_Barthelemy\",\"start\":8920041,\"end\":8920171,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/St_Johns\",\"start\":8920171,\"end\":8922049,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/St_Kitts\",\"start\":8922049,\"end\":8922179,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/St_Lucia\",\"start\":8922179,\"end\":8922309,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/St_Thomas\",\"start\":8922309,\"end\":8922439,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/St_Vincent\",\"start\":8922439,\"end\":8922569,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Swift_Current\",\"start\":8922569,\"end\":8922937,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Tegucigalpa\",\"start\":8922937,\"end\":8923131,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Thule\",\"start\":8923131,\"end\":8923586,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Thunder_Bay\",\"start\":8923586,\"end\":8924467,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Tijuana\",\"start\":8924467,\"end\":8925492,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Toronto\",\"start\":8925492,\"end\":8927209,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Tortola\",\"start\":8927209,\"end\":8927339,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Vancouver\",\"start\":8927339,\"end\":8928669,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Virgin\",\"start\":8928669,\"end\":8928799,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Whitehorse\",\"start\":8928799,\"end\":8929828,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Winnipeg\",\"start\":8929828,\"end\":8931122,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Yakutat\",\"start\":8931122,\"end\":8932068,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Yellowknife\",\"start\":8932068,\"end\":8932797,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/__init__.py\",\"start\":8932797,\"end\":8932797,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/Buenos_Aires\",\"start\":8932797,\"end\":8933505,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/Catamarca\",\"start\":8933505,\"end\":8934213,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/ComodRivadavia\",\"start\":8934213,\"end\":8934921,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/Cordoba\",\"start\":8934921,\"end\":8935629,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/Jujuy\",\"start\":8935629,\"end\":8936319,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/La_Rioja\",\"start\":8936319,\"end\":8937036,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/Mendoza\",\"start\":8937036,\"end\":8937744,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/Rio_Gallegos\",\"start\":8937744,\"end\":8938452,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/Salta\",\"start\":8938452,\"end\":8939142,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/San_Juan\",\"start\":8939142,\"end\":8939859,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/San_Luis\",\"start\":8939859,\"end\":8940576,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/Tucuman\",\"start\":8940576,\"end\":8941302,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/Ushuaia\",\"start\":8941302,\"end\":8942010,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Argentina/__init__.py\",\"start\":8942010,\"end\":8942010,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Indiana/Indianapolis\",\"start\":8942010,\"end\":8942541,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Indiana/Knox\",\"start\":8942541,\"end\":8943557,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Indiana/Marengo\",\"start\":8943557,\"end\":8944124,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Indiana/Petersburg\",\"start\":8944124,\"end\":8944807,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Indiana/Tell_City\",\"start\":8944807,\"end\":8945329,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Indiana/Vevay\",\"start\":8945329,\"end\":8945698,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Indiana/Vincennes\",\"start\":8945698,\"end\":8946256,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Indiana/Winamac\",\"start\":8946256,\"end\":8946868,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Indiana/__init__.py\",\"start\":8946868,\"end\":8946868,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Kentucky/Louisville\",\"start\":8946868,\"end\":8948110,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Kentucky/Monticello\",\"start\":8948110,\"end\":8949082,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/Kentucky/__init__.py\",\"start\":8949082,\"end\":8949082,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/North_Dakota/Beulah\",\"start\":8949082,\"end\":8950125,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/North_Dakota/Center\",\"start\":8950125,\"end\":8951115,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/North_Dakota/New_Salem\",\"start\":8951115,\"end\":8952105,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/America/North_Dakota/__init__.py\",\"start\":8952105,\"end\":8952105,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/Casey\",\"start\":8952105,\"end\":8952348,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/Davis\",\"start\":8952348,\"end\":8952545,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/DumontDUrville\",\"start\":8952545,\"end\":8952697,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/Macquarie\",\"start\":8952697,\"end\":8953673,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/Mawson\",\"start\":8953673,\"end\":8953825,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/McMurdo\",\"start\":8953825,\"end\":8954868,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/Palmer\",\"start\":8954868,\"end\":8955755,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/Rothera\",\"start\":8955755,\"end\":8955887,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/South_Pole\",\"start\":8955887,\"end\":8956930,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/Syowa\",\"start\":8956930,\"end\":8957063,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/Troll\",\"start\":8957063,\"end\":8957240,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/Vostok\",\"start\":8957240,\"end\":8957373,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Antarctica/__init__.py\",\"start\":8957373,\"end\":8957373,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Arctic/Longyearbyen\",\"start\":8957373,\"end\":8958049,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Arctic/__init__.py\",\"start\":8958049,\"end\":8958049,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Aden\",\"start\":8958049,\"end\":8958182,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Almaty\",\"start\":8958182,\"end\":8958791,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Amman\",\"start\":8958791,\"end\":8959578,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Anadyr\",\"start\":8959578,\"end\":8960321,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Aqtau\",\"start\":8960321,\"end\":8960927,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Aqtobe\",\"start\":8960927,\"end\":8961542,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Ashgabat\",\"start\":8961542,\"end\":8961917,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Ashkhabad\",\"start\":8961917,\"end\":8962292,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Atyrau\",\"start\":8962292,\"end\":8962908,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Baghdad\",\"start\":8962908,\"end\":8963538,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Bahrain\",\"start\":8963538,\"end\":8963690,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Baku\",\"start\":8963690,\"end\":8964434,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Bangkok\",\"start\":8964434,\"end\":8964586,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Barnaul\",\"start\":8964586,\"end\":8965339,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Beirut\",\"start\":8965339,\"end\":8966071,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Bishkek\",\"start\":8966071,\"end\":8966689,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Brunei\",\"start\":8966689,\"end\":8966843,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Calcutta\",\"start\":8966843,\"end\":8967063,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Chita\",\"start\":8967063,\"end\":8967813,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Choibalsan\",\"start\":8967813,\"end\":8968432,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Chongqing\",\"start\":8968432,\"end\":8968825,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Chungking\",\"start\":8968825,\"end\":8969218,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Colombo\",\"start\":8969218,\"end\":8969465,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Dacca\",\"start\":8969465,\"end\":8969696,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Damascus\",\"start\":8969696,\"end\":8970743,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Dhaka\",\"start\":8970743,\"end\":8970974,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Dili\",\"start\":8970974,\"end\":8971144,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Dubai\",\"start\":8971144,\"end\":8971277,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Dushanbe\",\"start\":8971277,\"end\":8971643,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Famagusta\",\"start\":8971643,\"end\":8972583,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Gaza\",\"start\":8972583,\"end\":8973796,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Harbin\",\"start\":8973796,\"end\":8974189,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Hebron\",\"start\":8974189,\"end\":8975420,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Ho_Chi_Minh\",\"start\":8975420,\"end\":8975656,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Hong_Kong\",\"start\":8975656,\"end\":8976431,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Hovd\",\"start\":8976431,\"end\":8977025,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Irkutsk\",\"start\":8977025,\"end\":8977785,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Istanbul\",\"start\":8977785,\"end\":8978985,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Jakarta\",\"start\":8978985,\"end\":8979233,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Jayapura\",\"start\":8979233,\"end\":8979404,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Jerusalem\",\"start\":8979404,\"end\":8980478,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Kabul\",\"start\":8980478,\"end\":8980637,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Kamchatka\",\"start\":8980637,\"end\":8981364,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Karachi\",\"start\":8981364,\"end\":8981630,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Kashgar\",\"start\":8981630,\"end\":8981763,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Kathmandu\",\"start\":8981763,\"end\":8981924,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Katmandu\",\"start\":8981924,\"end\":8982085,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Khandyga\",\"start\":8982085,\"end\":8982860,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Kolkata\",\"start\":8982860,\"end\":8983080,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Krasnoyarsk\",\"start\":8983080,\"end\":8983821,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Kuala_Lumpur\",\"start\":8983821,\"end\":8984077,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Kuching\",\"start\":8984077,\"end\":8984397,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Kuwait\",\"start\":8984397,\"end\":8984530,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Macao\",\"start\":8984530,\"end\":8985321,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Macau\",\"start\":8985321,\"end\":8986112,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Magadan\",\"start\":8986112,\"end\":8986863,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Makassar\",\"start\":8986863,\"end\":8987053,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Manila\",\"start\":8987053,\"end\":8987291,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Muscat\",\"start\":8987291,\"end\":8987424,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Nicosia\",\"start\":8987424,\"end\":8988021,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Novokuznetsk\",\"start\":8988021,\"end\":8988747,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Novosibirsk\",\"start\":8988747,\"end\":8989500,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Omsk\",\"start\":8989500,\"end\":8990241,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Oral\",\"start\":8990241,\"end\":8990866,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Phnom_Penh\",\"start\":8990866,\"end\":8991018,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Pontianak\",\"start\":8991018,\"end\":8991265,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Pyongyang\",\"start\":8991265,\"end\":8991448,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Qatar\",\"start\":8991448,\"end\":8991600,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Qostanay\",\"start\":8991600,\"end\":8992215,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Qyzylorda\",\"start\":8992215,\"end\":8992839,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Rangoon\",\"start\":8992839,\"end\":8993026,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Riyadh\",\"start\":8993026,\"end\":8993159,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Saigon\",\"start\":8993159,\"end\":8993395,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Sakhalin\",\"start\":8993395,\"end\":8994150,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Samarkand\",\"start\":8994150,\"end\":8994516,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Seoul\",\"start\":8994516,\"end\":8994931,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Shanghai\",\"start\":8994931,\"end\":8995324,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Singapore\",\"start\":8995324,\"end\":8995580,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Srednekolymsk\",\"start\":8995580,\"end\":8996322,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Taipei\",\"start\":8996322,\"end\":8996833,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Tashkent\",\"start\":8996833,\"end\":8997199,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Tbilisi\",\"start\":8997199,\"end\":8997828,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Tehran\",\"start\":8997828,\"end\":8999832,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Tel_Aviv\",\"start\":8999832,\"end\":9000906,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Thimbu\",\"start\":9000906,\"end\":9001060,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Thimphu\",\"start\":9001060,\"end\":9001214,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Tokyo\",\"start\":9001214,\"end\":9001427,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Tomsk\",\"start\":9001427,\"end\":9002180,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Ujung_Pandang\",\"start\":9002180,\"end\":9002370,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Ulaanbaatar\",\"start\":9002370,\"end\":9002964,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Ulan_Bator\",\"start\":9002964,\"end\":9003558,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Urumqi\",\"start\":9003558,\"end\":9003691,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Ust-Nera\",\"start\":9003691,\"end\":9004462,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Vientiane\",\"start\":9004462,\"end\":9004614,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Vladivostok\",\"start\":9004614,\"end\":9005356,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Yakutsk\",\"start\":9005356,\"end\":9006097,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Yangon\",\"start\":9006097,\"end\":9006284,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Yekaterinburg\",\"start\":9006284,\"end\":9007044,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/Yerevan\",\"start\":9007044,\"end\":9007752,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Asia/__init__.py\",\"start\":9007752,\"end\":9007752,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/Azores\",\"start\":9007752,\"end\":9009187,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/Bermuda\",\"start\":9009187,\"end\":9010211,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/Canary\",\"start\":9010211,\"end\":9010689,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/Cape_Verde\",\"start\":9010689,\"end\":9010864,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/Faeroe\",\"start\":9010864,\"end\":9011305,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/Faroe\",\"start\":9011305,\"end\":9011746,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/Jan_Mayen\",\"start\":9011746,\"end\":9012422,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/Madeira\",\"start\":9012422,\"end\":9013857,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/Reykjavik\",\"start\":9013857,\"end\":9014610,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/South_Georgia\",\"start\":9014610,\"end\":9014742,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/St_Helena\",\"start\":9014742,\"end\":9014872,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/Stanley\",\"start\":9014872,\"end\":9015661,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Atlantic/__init__.py\",\"start\":9015661,\"end\":9015661,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/ACT\",\"start\":9015661,\"end\":9016565,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Adelaide\",\"start\":9016565,\"end\":9017486,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Brisbane\",\"start\":9017486,\"end\":9017775,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Broken_Hill\",\"start\":9017775,\"end\":9018716,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Canberra\",\"start\":9018716,\"end\":9019620,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Currie\",\"start\":9019620,\"end\":9020623,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Darwin\",\"start\":9020623,\"end\":9020857,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Eucla\",\"start\":9020857,\"end\":9021171,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Hobart\",\"start\":9021171,\"end\":9022174,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/LHI\",\"start\":9022174,\"end\":9022866,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Lindeman\",\"start\":9022866,\"end\":9023191,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Lord_Howe\",\"start\":9023191,\"end\":9023883,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Melbourne\",\"start\":9023883,\"end\":9024787,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/NSW\",\"start\":9024787,\"end\":9025691,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/North\",\"start\":9025691,\"end\":9025925,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Perth\",\"start\":9025925,\"end\":9026231,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Queensland\",\"start\":9026231,\"end\":9026520,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/South\",\"start\":9026520,\"end\":9027441,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Sydney\",\"start\":9027441,\"end\":9028345,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Tasmania\",\"start\":9028345,\"end\":9029348,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Victoria\",\"start\":9029348,\"end\":9030252,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/West\",\"start\":9030252,\"end\":9030558,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/Yancowinna\",\"start\":9030558,\"end\":9031499,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Australia/__init__.py\",\"start\":9031499,\"end\":9031499,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Brazil/Acre\",\"start\":9031499,\"end\":9031917,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Brazil/DeNoronha\",\"start\":9031917,\"end\":9032401,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Brazil/East\",\"start\":9032401,\"end\":9033353,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Brazil/West\",\"start\":9033353,\"end\":9033765,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Brazil/__init__.py\",\"start\":9033765,\"end\":9033765,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Canada/Atlantic\",\"start\":9033765,\"end\":9035437,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Canada/Central\",\"start\":9035437,\"end\":9036731,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Canada/Eastern\",\"start\":9036731,\"end\":9038448,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Canada/Mountain\",\"start\":9038448,\"end\":9039418,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Canada/Newfoundland\",\"start\":9039418,\"end\":9041296,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Canada/Pacific\",\"start\":9041296,\"end\":9042626,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Canada/Saskatchewan\",\"start\":9042626,\"end\":9043264,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Canada/Yukon\",\"start\":9043264,\"end\":9044293,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Canada/__init__.py\",\"start\":9044293,\"end\":9044293,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Chile/Continental\",\"start\":9044293,\"end\":9045575,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Chile/EasterIsland\",\"start\":9045575,\"end\":9046677,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Chile/__init__.py\",\"start\":9046677,\"end\":9046677,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT\",\"start\":9046677,\"end\":9046788,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+0\",\"start\":9046788,\"end\":9046899,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+1\",\"start\":9046899,\"end\":9047012,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+10\",\"start\":9047012,\"end\":9047126,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+11\",\"start\":9047126,\"end\":9047240,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+12\",\"start\":9047240,\"end\":9047354,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+2\",\"start\":9047354,\"end\":9047467,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+3\",\"start\":9047467,\"end\":9047580,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+4\",\"start\":9047580,\"end\":9047693,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+5\",\"start\":9047693,\"end\":9047806,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+6\",\"start\":9047806,\"end\":9047919,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+7\",\"start\":9047919,\"end\":9048032,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+8\",\"start\":9048032,\"end\":9048145,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT+9\",\"start\":9048145,\"end\":9048258,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-0\",\"start\":9048258,\"end\":9048369,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-1\",\"start\":9048369,\"end\":9048483,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-10\",\"start\":9048483,\"end\":9048598,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-11\",\"start\":9048598,\"end\":9048713,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-12\",\"start\":9048713,\"end\":9048828,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-13\",\"start\":9048828,\"end\":9048943,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-14\",\"start\":9048943,\"end\":9049058,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-2\",\"start\":9049058,\"end\":9049172,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-3\",\"start\":9049172,\"end\":9049286,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-4\",\"start\":9049286,\"end\":9049400,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-5\",\"start\":9049400,\"end\":9049514,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-6\",\"start\":9049514,\"end\":9049628,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-7\",\"start\":9049628,\"end\":9049742,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-8\",\"start\":9049742,\"end\":9049856,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT-9\",\"start\":9049856,\"end\":9049970,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/GMT0\",\"start\":9049970,\"end\":9050081,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/Greenwich\",\"start\":9050081,\"end\":9050192,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/UCT\",\"start\":9050192,\"end\":9050303,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/UTC\",\"start\":9050303,\"end\":9050414,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/Universal\",\"start\":9050414,\"end\":9050525,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/Zulu\",\"start\":9050525,\"end\":9050636,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Etc/__init__.py\",\"start\":9050636,\"end\":9050636,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Amsterdam\",\"start\":9050636,\"end\":9051707,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Andorra\",\"start\":9051707,\"end\":9052096,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Astrakhan\",\"start\":9052096,\"end\":9052822,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Athens\",\"start\":9052822,\"end\":9053504,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Belfast\",\"start\":9053504,\"end\":9055103,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Belgrade\",\"start\":9055103,\"end\":9055581,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Berlin\",\"start\":9055581,\"end\":9056286,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Bratislava\",\"start\":9056286,\"end\":9057009,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Brussels\",\"start\":9057009,\"end\":9058112,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Bucharest\",\"start\":9058112,\"end\":9058773,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Budapest\",\"start\":9058773,\"end\":9059539,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Busingen\",\"start\":9059539,\"end\":9060036,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Chisinau\",\"start\":9060036,\"end\":9060791,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Copenhagen\",\"start\":9060791,\"end\":9061414,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Dublin\",\"start\":9061414,\"end\":9062910,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Gibraltar\",\"start\":9062910,\"end\":9064130,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Guernsey\",\"start\":9064130,\"end\":9065729,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Helsinki\",\"start\":9065729,\"end\":9066210,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Isle_of_Man\",\"start\":9066210,\"end\":9067809,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Istanbul\",\"start\":9067809,\"end\":9069009,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Jersey\",\"start\":9069009,\"end\":9070608,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Kaliningrad\",\"start\":9070608,\"end\":9071512,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Kiev\",\"start\":9071512,\"end\":9072061,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Kirov\",\"start\":9072061,\"end\":9072778,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Lisbon\",\"start\":9072778,\"end\":9074214,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Ljubljana\",\"start\":9074214,\"end\":9074692,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/London\",\"start\":9074692,\"end\":9076291,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Luxembourg\",\"start\":9076291,\"end\":9077378,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Madrid\",\"start\":9077378,\"end\":9078275,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Malta\",\"start\":9078275,\"end\":9079203,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Mariehamn\",\"start\":9079203,\"end\":9079684,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Minsk\",\"start\":9079684,\"end\":9080492,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Monaco\",\"start\":9080492,\"end\":9081606,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Moscow\",\"start\":9081606,\"end\":9082514,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Nicosia\",\"start\":9082514,\"end\":9083111,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Oslo\",\"start\":9083111,\"end\":9083787,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Paris\",\"start\":9083787,\"end\":9084892,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Podgorica\",\"start\":9084892,\"end\":9085370,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Prague\",\"start\":9085370,\"end\":9086093,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Riga\",\"start\":9086093,\"end\":9086787,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Rome\",\"start\":9086787,\"end\":9087734,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Samara\",\"start\":9087734,\"end\":9088466,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/San_Marino\",\"start\":9088466,\"end\":9089413,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Sarajevo\",\"start\":9089413,\"end\":9089891,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Saratov\",\"start\":9089891,\"end\":9090617,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Simferopol\",\"start\":9090617,\"end\":9091482,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Skopje\",\"start\":9091482,\"end\":9091960,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Sofia\",\"start\":9091960,\"end\":9092552,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Stockholm\",\"start\":9092552,\"end\":9093049,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Tallinn\",\"start\":9093049,\"end\":9093724,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Tirane\",\"start\":9093724,\"end\":9094328,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Tiraspol\",\"start\":9094328,\"end\":9095083,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Ulyanovsk\",\"start\":9095083,\"end\":9095843,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Uzhgorod\",\"start\":9095843,\"end\":9096373,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Vaduz\",\"start\":9096373,\"end\":9096870,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Vatican\",\"start\":9096870,\"end\":9097817,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Vienna\",\"start\":9097817,\"end\":9098475,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Vilnius\",\"start\":9098475,\"end\":9099151,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Volgograd\",\"start\":9099151,\"end\":9099886,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Warsaw\",\"start\":9099886,\"end\":9100809,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Zagreb\",\"start\":9100809,\"end\":9101287,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Zaporozhye\",\"start\":9101287,\"end\":9101847,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/Zurich\",\"start\":9101847,\"end\":9102344,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Europe/__init__.py\",\"start\":9102344,\"end\":9102344,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Indian/Antananarivo\",\"start\":9102344,\"end\":9102535,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Indian/Chagos\",\"start\":9102535,\"end\":9102687,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Indian/Christmas\",\"start\":9102687,\"end\":9102820,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Indian/Cocos\",\"start\":9102820,\"end\":9102960,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Indian/Comoro\",\"start\":9102960,\"end\":9103151,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Indian/Kerguelen\",\"start\":9103151,\"end\":9103284,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Indian/Mahe\",\"start\":9103284,\"end\":9103417,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Indian/Maldives\",\"start\":9103417,\"end\":9103569,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Indian/Mauritius\",\"start\":9103569,\"end\":9103748,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Indian/Mayotte\",\"start\":9103748,\"end\":9103939,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Indian/Reunion\",\"start\":9103939,\"end\":9104072,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Indian/__init__.py\",\"start\":9104072,\"end\":9104072,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Mexico/BajaNorte\",\"start\":9104072,\"end\":9105097,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Mexico/BajaSur\",\"start\":9105097,\"end\":9105464,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Mexico/General\",\"start\":9105464,\"end\":9105876,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Mexico/__init__.py\",\"start\":9105876,\"end\":9105876,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Apia\",\"start\":9105876,\"end\":9106144,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Auckland\",\"start\":9106144,\"end\":9107187,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Bougainville\",\"start\":9107187,\"end\":9107388,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Chatham\",\"start\":9107388,\"end\":9108196,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Chuuk\",\"start\":9108196,\"end\":9108391,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Easter\",\"start\":9108391,\"end\":9109493,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Efate\",\"start\":9109493,\"end\":9109835,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Enderbury\",\"start\":9109835,\"end\":9110007,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Fakaofo\",\"start\":9110007,\"end\":9110160,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Fiji\",\"start\":9110160,\"end\":9110579,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Funafuti\",\"start\":9110579,\"end\":9110713,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Galapagos\",\"start\":9110713,\"end\":9110888,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Gambier\",\"start\":9110888,\"end\":9111020,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Guadalcanal\",\"start\":9111020,\"end\":9111154,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Guam\",\"start\":9111154,\"end\":9111504,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Honolulu\",\"start\":9111504,\"end\":9111725,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Johnston\",\"start\":9111725,\"end\":9111946,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Kiritimati\",\"start\":9111946,\"end\":9112120,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Kosrae\",\"start\":9112120,\"end\":9112362,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Kwajalein\",\"start\":9112362,\"end\":9112581,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Majuro\",\"start\":9112581,\"end\":9112799,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Marquesas\",\"start\":9112799,\"end\":9112938,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Midway\",\"start\":9112938,\"end\":9113084,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Nauru\",\"start\":9113084,\"end\":9113267,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Niue\",\"start\":9113267,\"end\":9113442,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Norfolk\",\"start\":9113442,\"end\":9113689,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Noumea\",\"start\":9113689,\"end\":9113887,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Pago_Pago\",\"start\":9113887,\"end\":9114033,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Palau\",\"start\":9114033,\"end\":9114181,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Pitcairn\",\"start\":9114181,\"end\":9114334,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Pohnpei\",\"start\":9114334,\"end\":9114548,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Ponape\",\"start\":9114548,\"end\":9114762,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Port_Moresby\",\"start\":9114762,\"end\":9114916,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Rarotonga\",\"start\":9114916,\"end\":9115307,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Saipan\",\"start\":9115307,\"end\":9115657,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Samoa\",\"start\":9115657,\"end\":9115803,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Tahiti\",\"start\":9115803,\"end\":9115936,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Tarawa\",\"start\":9115936,\"end\":9116070,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Tongatapu\",\"start\":9116070,\"end\":9116307,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Truk\",\"start\":9116307,\"end\":9116502,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Wake\",\"start\":9116502,\"end\":9116636,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Wallis\",\"start\":9116636,\"end\":9116770,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/Yap\",\"start\":9116770,\"end\":9116965,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/Pacific/__init__.py\",\"start\":9116965,\"end\":9116965,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/Alaska\",\"start\":9116965,\"end\":9117942,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/Aleutian\",\"start\":9117942,\"end\":9118911,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/Arizona\",\"start\":9118911,\"end\":9119151,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/Central\",\"start\":9119151,\"end\":9120905,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/East-Indiana\",\"start\":9120905,\"end\":9121436,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/Eastern\",\"start\":9121436,\"end\":9123180,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/Hawaii\",\"start\":9123180,\"end\":9123401,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/Indiana-Starke\",\"start\":9123401,\"end\":9124417,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/Michigan\",\"start\":9124417,\"end\":9125316,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/Mountain\",\"start\":9125316,\"end\":9126358,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/Pacific\",\"start\":9126358,\"end\":9127652,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/Samoa\",\"start\":9127652,\"end\":9127798,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata/zoneinfo/US/__init__.py\",\"start\":9127798,\"end\":9127798,\"audio\":0},{\"filename\":\"/lib/python3.9/pydoc_data/__init__.py\",\"start\":9127798,\"end\":9127798,\"audio\":0},{\"filename\":\"/lib/python3.9/pydoc_data/_pydoc.css\",\"start\":9127798,\"end\":9127894,\"audio\":0},{\"filename\":\"/lib/python3.9/pydoc_data/topics.py\",\"start\":9127894,\"end\":9819855,\"audio\":0},{\"filename\":\"/lib/python3.9/zoneinfo/__init__.py\",\"start\":9819855,\"end\":9820558,\"audio\":0},{\"filename\":\"/lib/python3.9/zoneinfo/_common.py\",\"start\":9820558,\"end\":9825878,\"audio\":0},{\"filename\":\"/lib/python3.9/zoneinfo/_tzpath.py\",\"start\":9825878,\"end\":9830959,\"audio\":0},{\"filename\":\"/lib/python3.9/zoneinfo/_zoneinfo.py\",\"start\":9830959,\"end\":9855277,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata-2021.1.dist-info/LICENSE\",\"start\":9855277,\"end\":9855869,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata-2021.1.dist-info/LICENSE_APACHE\",\"start\":9855869,\"end\":9867226,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata-2021.1.dist-info/METADATA\",\"start\":9867226,\"end\":9868579,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata-2021.1.dist-info/WHEEL\",\"start\":9868579,\"end\":9868689,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata-2021.1.dist-info/top_level.txt\",\"start\":9868689,\"end\":9868696,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata-2021.1.dist-info/RECORD\",\"start\":9868696,\"end\":9925113,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata-2021.1.dist-info/INSTALLER\",\"start\":9925113,\"end\":9925117,\"audio\":0},{\"filename\":\"/lib/python3.9/tzdata-2021.1.dist-info/REQUESTED\",\"start\":9925117,\"end\":9925117,\"audio\":0},{\"filename\":\"/lib/python3.9/webbrowser.py\",\"start\":9925117,\"end\":9925484,\"audio\":0},{\"filename\":\"/lib/python3.9/_testcapi.py\",\"start\":9925484,\"end\":9925631,\"audio\":0},{\"filename\":\"/lib/python3.9/_testinternalcapi.py\",\"start\":9925631,\"end\":9925794,\"audio\":0},{\"filename\":\"/lib/python3.9/pystone.py\",\"start\":9925794,\"end\":9933614,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/pyodide/_core.py\",\"start\":9933614,\"end\":9934123,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/pyodide/_state.py\",\"start\":9934123,\"end\":9935499,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/pyodide/_util.py\",\"start\":9935499,\"end\":9935926,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/pyodide/console.py\",\"start\":9935926,\"end\":9937300,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/pyodide/webloop.py\",\"start\":9937300,\"end\":9951634,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/pyodide/__init__.py\",\"start\":9951634,\"end\":9953200,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/_pyodide/__init__.py\",\"start\":9953200,\"end\":9953715,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/_pyodide/_core_docs.py\",\"start\":9953715,\"end\":9960954,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/_pyodide/_importhook.py\",\"start\":9960954,\"end\":9964603,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/_pyodide/console.py\",\"start\":9964603,\"end\":9981750,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/_pyodide/docstring.py\",\"start\":9981750,\"end\":9983396,\"audio\":0},{\"filename\":\"/lib/python3.9/site-packages/_pyodide/_base.py\",\"start\":9983396,\"end\":10001851,\"audio\":0}],\"remote_package_size\":5357169,\"package_uuid\":\"486161ef-2f28-4825-9daf-685698db8d66\"})})();var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram=\"./this.program\";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window===\"object\";ENVIRONMENT_IS_WORKER=typeof importScripts===\"function\";ENVIRONMENT_IS_NODE=typeof process===\"object\"&&typeof process.versions===\"object\"&&typeof process.versions.node===\"string\";ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory=\"\";function locateFile(path){if(Module[\"locateFile\"]){return Module[\"locateFile\"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require(\"path\").dirname(scriptDirectory)+\"/\"}else{scriptDirectory=__dirname+\"/\"}read_=function shell_read(filename,binary){if(!nodeFS)nodeFS=require(\"fs\");if(!nodePath)nodePath=require(\"path\");filename=nodePath[\"normalize\"](filename);return nodeFS[\"readFileSync\"](filename,binary?null:\"utf8\")};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process[\"argv\"].length>1){thisProgram=process[\"argv\"][1].replace(/\\\\/g,\"/\")}arguments_=process[\"argv\"].slice(2);process[\"on\"](\"uncaughtException\",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process[\"on\"](\"unhandledRejection\",abort);quit_=function(status){process[\"exit\"](status)};Module[\"inspect\"]=function(){return\"[Emscripten Module object]\"}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!=\"undefined\"){read_=function shell_read(f){return read(f)}}readBinary=function readBinary(f){var data;if(typeof readbuffer===\"function\"){return new Uint8Array(readbuffer(f))}data=read(f,\"binary\");assert(typeof data===\"object\");return data};if(typeof scriptArgs!=\"undefined\"){arguments_=scriptArgs}else if(typeof arguments!=\"undefined\"){arguments_=arguments}if(typeof quit===\"function\"){quit_=function(status){quit(status)}}if(typeof print!==\"undefined\"){if(typeof console===\"undefined\")console={};console.log=print;console.warn=console.error=typeof printErr!==\"undefined\"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!==\"undefined\"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf(\"blob:\")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.lastIndexOf(\"/\")+1)}else{scriptDirectory=\"\"}{read_=function(url){var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){readBinary=function(url){var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,false);xhr.responseType=\"arraybuffer\";xhr.send(null);return new Uint8Array(xhr.response)}}readAsync=function(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,true);xhr.responseType=\"arraybuffer\";xhr.onload=function(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module[\"print\"]||console.log.bind(console);var err=Module[\"printErr\"]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module[\"arguments\"])arguments_=Module[\"arguments\"];if(Module[\"thisProgram\"])thisProgram=Module[\"thisProgram\"];if(Module[\"quit\"])quit_=Module[\"quit\"];var STACK_ALIGN=16;function alignMemory(size,factor){if(!factor)factor=STACK_ALIGN;return Math.ceil(size/factor)*factor}function getNativeTypeSize(type){switch(type){case\"i1\":case\"i8\":return 1;case\"i16\":return 2;case\"i32\":return 4;case\"i64\":return 8;case\"float\":return 4;case\"double\":return 8;default:{if(type[type.length-1]===\"*\"){return 4}else if(type[0]===\"i\"){var bits=Number(type.substr(1));assert(bits%8===0,\"getNativeTypeSize invalid bits \"+bits+\", type \"+type);return bits/8}else{return 0}}}}function warnOnce(text){if(!warnOnce.shown)warnOnce.shown={};if(!warnOnce.shown[text]){warnOnce.shown[text]=1;err(text)}}function convertJsFunctionToWasm(func,sig){if(typeof WebAssembly.Function===\"function\"){var typeNames={\"i\":\"i32\",\"j\":\"i64\",\"f\":\"f32\",\"d\":\"f64\"};var type={parameters:[],results:sig[0]==\"v\"?[]:[typeNames[sig[0]]]};for(var i=1;i<sig.length;++i){type.parameters.push(typeNames[sig[i]])}return new WebAssembly.Function(type,func)}var typeSection=[1,0,1,96];var sigRet=sig.slice(0,1);var sigParam=sig.slice(1);var typeCodes={\"i\":127,\"j\":126,\"f\":125,\"d\":124};typeSection.push(sigParam.length);for(var i=0;i<sigParam.length;++i){typeSection.push(typeCodes[sigParam[i]])}if(sigRet==\"v\"){typeSection.push(0)}else{typeSection=typeSection.concat([1,typeCodes[sigRet]])}typeSection[1]=typeSection.length-2;var bytes=new Uint8Array([0,97,115,109,1,0,0,0].concat(typeSection,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0]));var module=new WebAssembly.Module(bytes);var instance=new WebAssembly.Instance(module,{\"e\":{\"f\":func}});var wrappedFunc=instance.exports[\"f\"];return wrappedFunc}var freeTableIndexes=[];var functionsInTableMap;function getEmptyTableSlot(){if(freeTableIndexes.length){return freeTableIndexes.pop()}try{wasmTable.grow(1)}catch(err){if(!(err instanceof RangeError)){throw err}throw\"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.\"}return wasmTable.length-1}function addFunctionWasm(func,sig){if(!functionsInTableMap){functionsInTableMap=new WeakMap;for(var i=0;i<wasmTable.length;i++){var item=wasmTable.get(i);if(item){functionsInTableMap.set(item,i)}}}if(functionsInTableMap.has(func)){return functionsInTableMap.get(func)}var ret=getEmptyTableSlot();try{wasmTable.set(ret,func)}catch(err){if(!(err instanceof TypeError)){throw err}var wrapped=convertJsFunctionToWasm(func,sig);wasmTable.set(ret,wrapped)}functionsInTableMap.set(func,ret);return ret}function removeFunction(index){functionsInTableMap.delete(wasmTable.get(index));freeTableIndexes.push(index)}function addFunction(func,sig){return addFunctionWasm(func,sig)}function makeBigInt(low,high,unsigned){return unsigned?+(low>>>0)+ +(high>>>0)*4294967296:+(low>>>0)+ +(high|0)*4294967296}var tempRet0=0;var setTempRet0=function(value){tempRet0=value};var getTempRet0=function(){return tempRet0};var dynamicLibraries=Module[\"dynamicLibraries\"]||[];var wasmBinary;if(Module[\"wasmBinary\"])wasmBinary=Module[\"wasmBinary\"];var noExitRuntime=Module[\"noExitRuntime\"]||true;if(typeof WebAssembly!==\"object\"){abort(\"no native wasm support detected\")}function setValue(ptr,value,type,noSafe){type=type||\"i8\";if(type.charAt(type.length-1)===\"*\")type=\"i32\";switch(type){case\"i1\":HEAP8[ptr>>0]=value;break;case\"i8\":HEAP8[ptr>>0]=value;break;case\"i16\":HEAP16[ptr>>1]=value;break;case\"i32\":HEAP32[ptr>>2]=value;break;case\"i64\":tempI64=[value>>>0,(tempDouble=value,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case\"float\":HEAPF32[ptr>>2]=value;break;case\"double\":HEAPF64[ptr>>3]=value;break;default:abort(\"invalid type for setValue: \"+type)}}function getValue(ptr,type,noSafe){type=type||\"i8\";if(type.charAt(type.length-1)===\"*\")type=\"i32\";switch(type){case\"i1\":return HEAP8[ptr>>0];case\"i8\":return HEAP8[ptr>>0];case\"i16\":return HEAP16[ptr>>1];case\"i32\":return HEAP32[ptr>>2];case\"i64\":return HEAP32[ptr>>2];case\"float\":return HEAPF32[ptr>>2];case\"double\":return HEAPF64[ptr>>3];default:abort(\"invalid type for getValue: \"+type)}return null}var wasmMemory;var ABORT=false;var EXITSTATUS;function assert(condition,text){if(!condition){abort(\"Assertion failed: \"+text)}}function getCFunc(ident){var func=Module[\"_\"+ident];assert(func,\"Cannot call unknown function \"+ident+\", make sure it is exported\");return func}function ccall(ident,returnType,argTypes,args,opts){var toC={\"string\":function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){var len=(str.length<<2)+1;ret=stackAlloc(len);stringToUTF8(str,ret,len)}return ret},\"array\":function(arr){var ret=stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}};function convertReturnValue(ret){if(returnType===\"string\")return UTF8ToString(ret);if(returnType===\"boolean\")return Boolean(ret);return ret}var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=stackSave();cArgs[i]=converter(args[i])}else{cArgs[i]=args[i]}}}var ret=func.apply(null,cArgs);ret=convertReturnValue(ret);if(stack!==0)stackRestore(stack);return ret}function cwrap(ident,returnType,argTypes,opts){argTypes=argTypes||[];var numericArgs=argTypes.every(function(type){return type===\"number\"});var numericRet=returnType!==\"string\";if(numericRet&&numericArgs&&!opts){return getCFunc(ident)}return function(){return ccall(ident,returnType,argTypes,arguments,opts)}}var ALLOC_NORMAL=0;var ALLOC_STACK=1;function allocate(slab,allocator){var ret;if(allocator==ALLOC_STACK){ret=stackAlloc(slab.length)}else{ret=_malloc(slab.length)}if(slab.subarray||slab.slice){HEAPU8.set(slab,ret)}else{HEAPU8.set(new Uint8Array(slab),ret)}return ret}var UTF8Decoder=typeof TextDecoder!==\"undefined\"?new TextDecoder(\"utf8\"):undefined;function UTF8ArrayToString(heap,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heap[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str=\"\";while(idx<endPtr){var u0=heap[idx++];if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heap[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heap[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u0=(u0&7)<<18|u1<<12|u2<<6|heap[idx++]&63}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):\"\"}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4}return len}function AsciiToString(ptr){var str=\"\";while(1){var ch=HEAPU8[ptr++>>0];if(!ch)return str;str+=String.fromCharCode(ch)}}function stringToAscii(str,outPtr){return writeAsciiToMemory(str,outPtr,false)}var UTF16Decoder=typeof TextDecoder!==\"undefined\"?new TextDecoder(\"utf-16le\"):undefined;function UTF16ToString(ptr,maxBytesToRead){var endPtr=ptr;var idx=endPtr>>1;var maxIdx=idx+maxBytesToRead/2;while(!(idx>=maxIdx)&&HEAPU16[idx])++idx;endPtr=idx<<1;if(endPtr-ptr>32&&UTF16Decoder){return UTF16Decoder.decode(HEAPU8.subarray(ptr,endPtr))}else{var str=\"\";for(var i=0;!(i>=maxBytesToRead/2);++i){var codeUnit=HEAP16[ptr+i*2>>1];if(codeUnit==0)break;str+=String.fromCharCode(codeUnit)}return str}}function stringToUTF16(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647}if(maxBytesToWrite<2)return 0;maxBytesToWrite-=2;var startPtr=outPtr;var numCharsToWrite=maxBytesToWrite<str.length*2?maxBytesToWrite/2:str.length;for(var i=0;i<numCharsToWrite;++i){var codeUnit=str.charCodeAt(i);HEAP16[outPtr>>1]=codeUnit;outPtr+=2}HEAP16[outPtr>>1]=0;return outPtr-startPtr}function lengthBytesUTF16(str){return str.length*2}function UTF32ToString(ptr,maxBytesToRead){var i=0;var str=\"\";while(!(i>=maxBytesToRead/4)){var utf32=HEAP32[ptr+i*4>>2];if(utf32==0)break;++i;if(utf32>=65536){var ch=utf32-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}else{str+=String.fromCharCode(utf32)}}return str}function stringToUTF32(str,outPtr,maxBytesToWrite){if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647}if(maxBytesToWrite<4)return 0;var startPtr=outPtr;var endPtr=startPtr+maxBytesToWrite-4;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343){var trailSurrogate=str.charCodeAt(++i);codeUnit=65536+((codeUnit&1023)<<10)|trailSurrogate&1023}HEAP32[outPtr>>2]=codeUnit;outPtr+=4;if(outPtr+4>endPtr)break}HEAP32[outPtr>>2]=0;return outPtr-startPtr}function lengthBytesUTF32(str){var len=0;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343)++i;len+=4}return len}function allocateUTF8(str){var size=lengthBytesUTF8(str)+1;var ret=_malloc(size);if(ret)stringToUTF8Array(str,HEAP8,ret,size);return ret}function allocateUTF8OnStack(str){var size=lengthBytesUTF8(str)+1;var ret=stackAlloc(size);stringToUTF8Array(str,HEAP8,ret,size);return ret}function writeStringToMemory(string,buffer,dontAddNull){warnOnce(\"writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!\");var lastChar,end;if(dontAddNull){end=buffer+lengthBytesUTF8(string);lastChar=HEAP8[end]}stringToUTF8(string,buffer,Infinity);if(dontAddNull)HEAP8[end]=lastChar}function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i<str.length;++i){HEAP8[buffer++>>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}function alignUp(x,multiple){if(x%multiple>0){x+=multiple-x%multiple}return x}var HEAP,buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module[\"HEAP8\"]=HEAP8=new Int8Array(buf);Module[\"HEAP16\"]=HEAP16=new Int16Array(buf);Module[\"HEAP32\"]=HEAP32=new Int32Array(buf);Module[\"HEAPU8\"]=HEAPU8=new Uint8Array(buf);Module[\"HEAPU16\"]=HEAPU16=new Uint16Array(buf);Module[\"HEAPU32\"]=HEAPU32=new Uint32Array(buf);Module[\"HEAPF32\"]=HEAPF32=new Float32Array(buf);Module[\"HEAPF64\"]=HEAPF64=new Float64Array(buf)}var __stack_pointer=new WebAssembly.Global({value:\"i32\",mutable:true},8512576);Module[\"___heap_base\"]=8512576;var TOTAL_STACK=5242880;var INITIAL_MEMORY=Module[\"INITIAL_MEMORY\"]||20971520;if(Module[\"wasmMemory\"]){wasmMemory=Module[\"wasmMemory\"]}else{wasmMemory=new WebAssembly.Memory({\"initial\":INITIAL_MEMORY/65536,\"maximum\":2147483648/65536})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);var wasmTable=new WebAssembly.Table({\"initial\":6769,\"element\":\"anyfunc\"});var dyncallInvokeMap=new Map;var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATEXIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module[\"preRun\"]){if(typeof Module[\"preRun\"]==\"function\")Module[\"preRun\"]=[Module[\"preRun\"]];while(Module[\"preRun\"].length){addOnPreRun(Module[\"preRun\"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;if(!Module[\"noFSInit\"]&&!FS.init.initialized)FS.init();TTY.init();SOCKFS.root=FS.mount(SOCKFS,{},null);PIPEFS.root=FS.mount(PIPEFS,{},null);callRuntimeCallbacks(__ATINIT__)}function preMain(){FS.ignorePermissions=false;callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){runtimeExited=true}function postRun(){if(Module[\"postRun\"]){if(typeof Module[\"postRun\"]==\"function\")Module[\"postRun\"]=[Module[\"postRun\"]];while(Module[\"postRun\"].length){addOnPostRun(Module[\"postRun\"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPreMain(cb){__ATMAIN__.unshift(cb)}function addOnExit(cb){}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}function addRunDependency(id){runDependencies++;if(Module[\"monitorRunDependencies\"]){Module[\"monitorRunDependencies\"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module[\"monitorRunDependencies\"]){Module[\"monitorRunDependencies\"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module[\"preloadedImages\"]={};Module[\"preloadedAudios\"]={};Module[\"preloadedWasm\"]={};function abort(what){if(Module[\"onAbort\"]){Module[\"onAbort\"](what)}what+=\"\";err(what);ABORT=true;EXITSTATUS=1;what=\"abort(\"+what+\"). Build with -s ASSERTIONS=1 for more info.\";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}function hasPrefix(str,prefix){return String.prototype.startsWith?str.startsWith(prefix):str.indexOf(prefix)===0}var dataURIPrefix=\"data:application/octet-stream;base64,\";function isDataURI(filename){return hasPrefix(filename,dataURIPrefix)}var fileURIPrefix=\"file://\";function isFileURI(filename){return hasPrefix(filename,fileURIPrefix)}var wasmBinaryFile=\"pyodide.asm.wasm\";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(file){try{if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}else{throw\"both async and sync fetching of the wasm failed\"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch===\"function\"&&!isFileURI(wasmBinaryFile)){return fetch(wasmBinaryFile,{credentials:\"same-origin\"}).then(function(response){if(!response[\"ok\"]){throw\"failed to load wasm binary file at '\"+wasmBinaryFile+\"'\"}return response[\"arrayBuffer\"]()}).catch(function(){return getBinary(wasmBinaryFile)})}else{if(readAsync){return new Promise(function(resolve,reject){readAsync(wasmBinaryFile,function(response){resolve(new Uint8Array(response))},reject)})}}}return Promise.resolve().then(function(){return getBinary(wasmBinaryFile)})}function createWasm(){var info={\"env\":asmLibraryArg,\"wasi_snapshot_preview1\":asmLibraryArg,\"GOT.mem\":new Proxy(asmLibraryArg,GOTHandler),\"GOT.func\":new Proxy(asmLibraryArg,GOTHandler)};function receiveInstance(instance,module){var exports=instance.exports;exports=relocateExports(exports,1024);Module[\"asm\"]=exports;var metadata=getDylinkMetadata(module);if(metadata.neededDynlibs){dynamicLibraries=metadata.neededDynlibs.concat(dynamicLibraries)}addOnInit(Module[\"asm\"][\"__wasm_call_ctors\"]);removeRunDependency(\"wasm-instantiate\")}addRunDependency(\"wasm-instantiate\");function receiveInstantiatedSource(output){receiveInstance(output[\"instance\"],output[\"module\"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){var result=WebAssembly.instantiate(binary,info);return result}).then(receiver,function(reason){err(\"failed to asynchronously prepare wasm: \"+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming===\"function\"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&typeof fetch===\"function\"){return fetch(wasmBinaryFile,{credentials:\"same-origin\"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiatedSource,function(reason){err(\"wasm streaming compile failed: \"+reason);err(\"falling back to ArrayBuffer instantiation\");return instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}if(Module[\"instantiateWasm\"]){try{var exports=Module[\"instantiateWasm\"](info,receiveInstance);return exports}catch(e){err(\"Module.instantiateWasm callback failed with error: \"+e);return false}}instantiateAsync().catch(readyPromiseReject);return{}}var tempDouble;var tempI64;var ASM_CONSTS={3167686:function(){throw new Error(\"intentionally triggered fatal error!\")},3167743:function(){let result=Module.interrupt_buffer[0];Module.interrupt_buffer[0]=0;return result},3167835:function($0){Module.setInterruptBuffer=function(buffer){Module.interrupt_buffer=buffer;if(buffer){_PyPyodide_SetPyodideCallback($0)}else{_PyPyodide_SetPyodideCallback(0)}}},3168017:function(){throw new Error(\"Fatal pyodide error\")},3168056:function(){throw new Error(\"Fatal pyodide error\")},3168095:function(){throw new Error(\"Fatal pyodide error\")},3168134:function(){Module.UTF8ToString=UTF8ToString;Module.wasmTable=wasmTable},3168204:function(){throw new Error(\"Fatal pyodide error\")},3168243:function(){throw new Error(\"Fatal pyodide error\")},3168282:function(){throw new Error(\"Fatal pyodide error\")},3168321:function(){throw new Error(\"Fatal pyodide error\")},3168360:function(){throw new Error(\"Fatal pyodide error\")},3168399:function(){throw new Error(\"Fatal pyodide error\")},3168438:function(){throw new Error(\"Fatal pyodide error\")},3168477:function(){throw new Error(\"Fatal pyodide error\")},3168516:function(){throw new Error(\"Fatal pyodide error\")},3168555:function(){throw new Error(\"Fatal pyodide error\")},3168594:function(){throw new Error(\"Fatal pyodide error\")},3168633:function(){throw new Error(\"Fatal pyodide error\")},3168672:function($0){Module.init_dict=Module.hiwire.pop_value($0)},3168724:function($0){return Module.hiwire.new_value({dict_converter:Module.hiwire.get_value($0)})},3168811:function($0){if(!$0){AL.alcErr=40964;return 1}},3168859:function($0){err(\"bad name in alcGetProcAddress: \"+UTF8ToString($0))},3168922:function($0){if(!AL.currentCtx){err(\"alGetProcAddress() called without a valid context\");return 1}if(!$0){AL.currentCtx.err=40963;return 1}},3169070:function($0){err(\"bad name in alGetProcAddress: \"+UTF8ToString($0))}};function JsArray_Check(idobj){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);if(Array.isArray(obj)){return!!1}let typeTag=Object.prototype.toString.call(obj);if(typeTag===\"[object HTMLCollection]\"||typeTag===\"[object NodeList]\"){return!!1}if(ArrayBuffer.isView(obj)&&obj.constructor.name!==\"DataView\"){return!!1}return!!0}catch(e){Module.handle_js_error(e);return-1}return 0}function JsArray_Delete(idobj,idx){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);if(idx<0||idx>=obj.length){return-1}obj.splice(idx,1)}catch(e){Module.handle_js_error(e);return-1}return 0}function JsArray_Get(idobj,idx){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);let result=obj[idx];if(result===undefined&&!(idx in obj)){return 0}return Module.hiwire.new_value(result)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function JsArray_New(){\"use strict\";try{return Module.hiwire.new_value([])}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function JsArray_Push(idarr,idval){\"use strict\";try{Module.hiwire.get_value(idarr).push(Module.hiwire.get_value(idval))}catch(e){Module.handle_js_error(e);return-1}return 0}function JsArray_Set(idobj,idx,idval){\"use strict\";try{Module.hiwire.get_value(idobj)[idx]=Module.hiwire.get_value(idval)}catch(e){Module.handle_js_error(e);return-1}return 0}function JsMap_New(){\"use strict\";try{return Module.hiwire.new_value(new Map)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function JsMap_Set(mapid,keyid,valueid){\"use strict\";try{let map=Module.hiwire.get_value(mapid);let key=Module.hiwire.get_value(keyid);let value=Module.hiwire.get_value(valueid);map.set(key,value)}catch(e){Module.handle_js_error(e);return-1}return 0}function JsObject_DeleteString(idobj,ptrkey){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);let jskey=UTF8ToString(ptrkey);delete jsobj[jskey]}catch(e){Module.handle_js_error(e);return-1}return 0}function JsObject_Dir(idobj){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);let result=[];do{result.push(...Object.getOwnPropertyNames(jsobj).filter(s=>{let c=s.charCodeAt(0);return c<48||c>57}))}while(jsobj=Object.getPrototypeOf(jsobj));return Module.hiwire.new_value(result)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function JsObject_Entries(idobj){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);return Module.hiwire.new_value(Object.entries(jsobj))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function JsObject_GetString(idobj,ptrkey){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);let jskey=UTF8ToString(ptrkey);let result=jsobj[jskey];if(result===undefined&&!(jskey in jsobj)){return 0}return Module.hiwire.new_value(result)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function JsObject_Keys(idobj){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);return Module.hiwire.new_value(Object.keys(jsobj))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function JsObject_New(){\"use strict\";try{return Module.hiwire.new_value({})}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function JsObject_SetString(idobj,ptrkey,idval){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);let jskey=UTF8ToString(ptrkey);let jsval=Module.hiwire.get_value(idval);jsobj[jskey]=jsval}catch(e){Module.handle_js_error(e);return-1}return 0}function JsObject_Values(idobj){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);return Module.hiwire.new_value(Object.values(jsobj))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function JsSet_Add(mapid,keyid){\"use strict\";try{let set=Module.hiwire.get_value(mapid);let key=Module.hiwire.get_value(keyid);set.add(key)}catch(e){Module.handle_js_error(e);return-1}return 0}function JsSet_New(){\"use strict\";try{return Module.hiwire.new_value(new Set)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function PyArray_Broadcast_part1(mit){\"use strict\";try{let numiter=HEAP32[(mit+8)/4];let nd=0;for(let i=0;i<numiter;i++){let cur_nd=HEAP32[(HEAP32[(HEAP32[(mit+152+4*i)/4]+660)/4]+12)/4];nd=cur_nd>nd?cur_nd:nd}HEAP32[(mit+20)/4]=nd;let start_offset=(mit+24)/4;HEAP32.subarray(start_offset,start_offset+nd).fill(1);for(let j=0;j<numiter;j++){let it=HEAP32[(mit+152+4*j)/4];for(i=0;i<nd;i++){let cur_array=HEAP32[(it+660)/4];let cur_nd=HEAP32[(cur_array+12)/4];let k=i+cur_nd-nd;if(k>=0){let tmp=HEAP32[(HEAP32[(cur_array+16)/4]+4*k)/4];if(tmp==1){continue}let mit_dim_i=HEAP32[(mit+24+4*i)/4];if(mit_dim_i==1){HEAP32[(mit+24+4*i)/4]=tmp}else if(mit_dim_i!=tmp){_set_shape_mismatch_err();return-1}}}}}catch(e){Module.handle_js_error(e);return-1}return 0}function _JsArray_PostProcess_helper(jscontext,array){\"use strict\";try{return Module.hiwire.new_value(Module.hiwire.get_value(jscontext).dict_converter(Module.hiwire.get_value(array)))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function _JsArray_PushEntry_helper(array,key,value){\"use strict\";try{Module.hiwire.get_value(array).push([Module.hiwire.get_value(key),Module.hiwire.get_value(value)])}catch(e){Module.handle_js_error(e);return-1}return 0}function _python2js_buffer_inner(buf,itemsize,ndim,format,shape,strides,suboffsets){\"use strict\";try{let converter=Module.get_converter(format,itemsize);let result=Module._python2js_buffer_recursive(buf,0,{ndim:ndim,format:format,itemsize:itemsize,shape:shape,strides:strides,suboffsets:suboffsets,converter:converter});return Module.hiwire.new_value(result)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function array_to_js(array,len){\"use strict\";try{return Module.hiwire.new_value(Array.from(HEAP32.subarray(array/4,array/4+len)))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function console_error(msg){\"use strict\";try{let jsmsg=UTF8ToString(msg);console.error(jsmsg)}catch(e){Module.handle_js_error(e);return-1}return 0}function console_error_obj(obj){\"use strict\";try{console.error(Module.hiwire.get_value(obj))}catch(e){Module.handle_js_error(e);return-1}return 0}function create_once_callable(obj){\"use strict\";try{_Py_IncRef(obj);let alreadyCalled=!!0;function wrapper(...args){if(alreadyCalled){throw new Error(\"OnceProxy can only be called once\")}try{return Module.callPyObject(obj,...args)}finally{wrapper.destroy()}}wrapper.destroy=function(){if(alreadyCalled){throw new Error(\"OnceProxy has already been destroyed\")}alreadyCalled=!!1;Module.finalizationRegistry.unregister(wrapper);_Py_DecRef(obj)};Module.finalizationRegistry.register(wrapper,[obj,undefined],wrapper);return Module.hiwire.new_value(wrapper)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function create_promise_handles(handle_result,handle_exception){\"use strict\";try{if(handle_result){_Py_IncRef(handle_result)}if(handle_exception){_Py_IncRef(handle_exception)}let used=!!0;function checkUsed(){if(used){throw new Error(\"One of the promise handles has already been called.\")}}function destroy(){checkUsed();used=!!1;if(handle_result){_Py_DecRef(handle_result)}if(handle_exception){_Py_DecRef(handle_exception)}}function onFulfilled(res){checkUsed();try{if(handle_result){return Module.callPyObject(handle_result,res)}}finally{destroy()}}function onRejected(err){checkUsed();try{if(handle_exception){return Module.callPyObject(handle_exception,err)}}finally{destroy()}}onFulfilled.destroy=destroy;onRejected.destroy=destroy;return Module.hiwire.new_value([onFulfilled,onRejected])}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function destroy_proxies_js(proxies_id){\"use strict\";try{for(let proxy of Module.hiwire.get_value(proxies_id)){proxy.destroy()}}catch(e){Module.handle_js_error(e);return-1}return 0}function error_handling_init_js(){\"use strict\";try{Module.handle_js_error=function(e){let restored_error=!!0;if(e instanceof Module.PythonError){restored_error=_restore_sys_last_exception(e.__error_address)}if(!restored_error){let eidx=Module.hiwire.new_value(e);let err=_JsProxy_create(eidx);_set_error(err);_Py_DecRef(err);Module.hiwire.decref(eidx)}__PyTraceback_Add(HEAPU32[_error__js_funcname_string/4],HEAPU32[_error__js_filename_string/4],-1)};class PythonError extends Error{constructor(message,error_address){super(message);this.name=this.constructor.name;this.__error_address=error_address}}Module.PythonError=PythonError;return 0}catch(e){Module.handle_js_error(e);return-1}return 0}function ffi_call(cif,fn,rvalue,avalue){var abi=HEAPU32[(cif>>2)+0];var nargs=HEAPU32[(cif>>2)+1];var nfixedargs=HEAPU32[(cif>>2)+6];var arg_types_ptr=HEAPU32[(cif>>2)+2];var rtype_unboxed=unbox_small_structs(HEAPU32[(cif>>2)+3]);var rtype_ptr=rtype_unboxed[0];var rtype_id=rtype_unboxed[1];var args=[];var ret_by_arg=false;if(rtype_id===15){throw new Error(\"complex ret marshalling nyi\")}if(rtype_id<0||rtype_id>15){throw new Error(\"Unexpected rtype \"+rtype_id)}if(rtype_id===4||rtype_id===13){args.push(rvalue);ret_by_arg=true}for(var i=0;i<nfixedargs;i++){var arg_ptr=HEAPU32[(avalue>>2)+i];var arg_unboxed=unbox_small_structs(HEAPU32[(arg_types_ptr>>2)+i]);var arg_type_ptr=arg_unboxed[0];var arg_type_id=arg_unboxed[1];switch(arg_type_id){case 1:case 10:case 9:case 14:args.push(HEAPU32[(arg_ptr>>2)+0]);break;case 2:args.push(HEAPF32[(arg_ptr>>2)+0]);break;case 3:args.push(HEAPF64[(arg_ptr>>3)+0]);break;case 5:case 6:args.push(HEAPU8[arg_ptr+0]);break;case 7:case 8:args.push(HEAPU16[(arg_ptr>>1)+0]);break;case 11:case 12:args.push(BigInt(HEAPU32[(arg_ptr>>2)+0*2])|BigInt(HEAPU32[(arg_ptr>>2)+0*2+1])<<BigInt(32));break;case 4:args.push(BigInt(HEAPU32[(arg_ptr>>2)+0*2])|BigInt(HEAPU32[(arg_ptr>>2)+0*2+1])<<BigInt(32));args.push(BigInt(HEAPU32[(arg_ptr>>2)+1*2])|BigInt(HEAPU32[(arg_ptr>>2)+1*2+1])<<BigInt(32));break;case 13:args.push(arg_ptr);break;case 15:throw new Error(\"complex marshalling nyi\");default:throw new Error(\"Unexpected type \"+arg_type_id)}}var orig_stack_ptr=stackSave();if(nfixedargs!=nargs){var varargs_addr=orig_stack_ptr;for(var i=nargs-1;i>=nfixedargs;i--){var arg_ptr=HEAPU32[(avalue>>2)+i];var arg_unboxed=unbox_small_structs(HEAPU32[(arg_types_ptr>>2)+i]);var arg_type_ptr=arg_unboxed[0];var arg_type_id=arg_unboxed[1];switch(arg_type_id){case 5:case 6:varargs_addr-=1,varargs_addr&=~(1-1);HEAPU8[varargs_addr+0]=HEAPU8[arg_ptr+0];break;case 7:case 8:varargs_addr-=2,varargs_addr&=~(2-1);HEAPU16[(varargs_addr>>1)+0]=HEAPU16[(arg_ptr>>1)+0];break;case 1:case 9:case 10:case 14:case 2:varargs_addr-=4,varargs_addr&=~(4-1);HEAPU32[(varargs_addr>>2)+0]=HEAPU32[(arg_ptr>>2)+0];break;case 3:case 11:case 12:varargs_addr-=8,varargs_addr&=~(8-1);HEAPU32[(varargs_addr>>2)+0]=HEAPU32[(arg_ptr>>2)+0];HEAPU32[(varargs_addr>>2)+1]=HEAPU32[(arg_ptr>>2)+1];break;case 4:varargs_addr-=16,varargs_addr&=~(16-1);HEAPU32[(varargs_addr>>2)+0]=HEAPU32[(arg_ptr>>2)+0];HEAPU32[(varargs_addr>>2)+1]=HEAPU32[(arg_ptr>>2)+1];HEAPU32[(varargs_addr>>2)+2]=HEAPU32[(arg_ptr>>2)+1];HEAPU32[(varargs_addr>>2)+3]=HEAPU32[(arg_ptr>>2)+1];break;case 13:varargs_addr-=4,varargs_addr&=~(4-1);HEAPU32[(varargs_addr>>2)+0]=arg_ptr;break;case 15:throw new Error(\"complex arg marshalling nyi\");default:throw new Error(\"Unexpected argtype \"+arg_type_id)}}args.push(varargs_addr);stackRestore(varargs_addr)}var result=wasmTable.get(dyncallInvokeMap[fn]||fn).apply(null,args);stackRestore(orig_stack_ptr);if(ret_by_arg){return}switch(rtype_id){case 0:break;case 1:case 9:case 10:case 14:HEAPU32[(rvalue>>2)+0]=result;break;case 2:HEAPF32[(rvalue>>2)+0]=result;break;case 3:HEAPF64[(rvalue>>3)+0]=result;break;case 5:case 6:HEAPU8[rvalue+0]=result;break;case 7:case 8:HEAPU16[(rvalue>>1)+0]=result;break;case 11:case 12:HEAPU32[(rvalue>>2)+0*2]=Number(result&BigInt(4294967295))|0,HEAPU32[(rvalue>>2)+0*2+1]=Number(result>>BigInt(32))|0;break;case 15:throw new Error(\"complex ret marshalling nyi\");default:throw new Error(\"Unexpected rtype \"+rtype_id)}}function ffi_closure_alloc_helper(size,code){var closure=_malloc(size);var index=getEmptyTableSlot();HEAPU32[(code>>2)+0]=index;HEAPU32[(closure>>2)+0]=index;return closure}function ffi_closure_free_helper(closure){var index=HEAPU32[(closure>>2)+0];freeTableIndexes.push(index);_free(closure)}function ffi_prep_closure_loc_helper(closure,cif,fun,user_data,codeloc){var abi=HEAPU32[(cif>>2)+0];var nargs=HEAPU32[(cif>>2)+1];var nfixedargs=HEAPU32[(cif>>2)+6];var arg_types_ptr=HEAPU32[(cif>>2)+2];var rtype_unboxed=unbox_small_structs(HEAPU32[(cif>>2)+3]);var rtype_ptr=rtype_unboxed[0];var rtype_id=rtype_unboxed[1];var sig;var ret_by_arg=false;switch(rtype_id){case 0:sig=\"v\";break;case 13:case 4:sig=\"vi\";ret_by_arg=true;break;case 1:case 5:case 6:case 7:case 8:case 9:case 10:case 14:sig=\"i\";break;case 2:sig=\"f\";break;case 3:sig=\"d\";break;case 11:case 12:sig=\"j\";break;case 15:throw new Error(\"complex ret marshalling nyi\");default:throw new Error(\"Unexpected rtype \"+rtype_id)}var unboxed_arg_type_id_list=[];for(var i=0;i<nargs;i++){var arg_unboxed=unbox_small_structs(HEAPU32[(arg_types_ptr>>2)+i]);var arg_type_ptr=arg_unboxed[0];var arg_type_id=arg_unboxed[1];unboxed_arg_type_id_list.push(arg_type_id)}for(var i=0;i<nfixedargs;i++){switch(unboxed_arg_type_id_list[i]){case 1:case 5:case 6:case 7:case 8:case 9:case 10:case 14:case 13:sig+=\"i\";break;case 2:sig+=\"f\";break;case 3:sig+=\"d\";break;case 4:sig+=\"jj\";break;case 11:case 12:sig+=\"j\";break;case 15:throw new Error(\"complex marshalling nyi\");default:throw new Error(\"Unexpected argtype \"+arg_type_id)}}if(nfixedargs<nargs){sig+=\"i\"}function trampoline(){var args=Array.prototype.slice.call(arguments);var size=0;var orig_stack_ptr=stackSave();var cur_ptr=orig_stack_ptr;var ret_ptr;var jsarg_idx=0;if(ret_by_arg){ret_ptr=args[jsarg_idx++]}else{cur_ptr-=8,cur_ptr&=~(8-1);ret_ptr=cur_ptr}cur_ptr-=4*nargs;var args_ptr=cur_ptr;var carg_idx=-1;for(var carg_idx=0;carg_idx<nfixedargs;carg_idx++){var cur_arg=args[jsarg_idx++];var arg_type_id=unboxed_arg_type_id_list[carg_idx];switch(arg_type_id){case 5:case 6:cur_ptr-=1,cur_ptr&=~(4-1);HEAPU32[(args_ptr>>2)+carg_idx]=cur_ptr;HEAPU8[cur_ptr+0]=cur_arg;break;case 7:case 8:cur_ptr-=2,cur_ptr&=~(4-1);HEAPU32[(args_ptr>>2)+carg_idx]=cur_ptr;HEAPU16[(cur_ptr>>1)+0]=cur_arg;break;case 1:case 9:case 10:case 14:cur_ptr-=4,cur_ptr&=~(4-1);HEAPU32[(args_ptr>>2)+carg_idx]=cur_ptr;HEAPU32[(cur_ptr>>2)+0]=cur_arg;break;case 13:HEAPU32[(args_ptr>>2)+carg_idx]=cur_arg;break;case 2:cur_ptr-=4,cur_ptr&=~(4-1);HEAPU32[(args_ptr>>2)+carg_idx]=cur_ptr;HEAPF32[(cur_ptr>>2)+0]=cur_arg;break;case 3:cur_ptr-=8,cur_ptr&=~(8-1);HEAPU32[(args_ptr>>2)+carg_idx]=cur_ptr;HEAPF64[(cur_ptr>>3)+0]=cur_arg;break;case 11:case 12:cur_ptr-=8,cur_ptr&=~(8-1);HEAPU32[(args_ptr>>2)+carg_idx]=cur_ptr;HEAPU32[(cur_ptr>>2)+0*2]=Number(cur_arg&BigInt(4294967295))|0,HEAPU32[(cur_ptr>>2)+0*2+1]=Number(cur_arg>>BigInt(32))|0;break;case 4:cur_ptr-=16,cur_ptr&=~(16-1);HEAPU32[(args_ptr>>2)+carg_idx]=cur_ptr;HEAPU32[(cur_ptr>>2)+0*2]=Number(cur_arg&BigInt(4294967295))|0,HEAPU32[(cur_ptr>>2)+0*2+1]=Number(cur_arg>>BigInt(32))|0;cur_arg=args[jsarg_idx++];HEAPU32[(cur_ptr>>2)+1*2]=Number(cur_arg&BigInt(4294967295))|0,HEAPU32[(cur_ptr>>2)+1*2+1]=Number(cur_arg>>BigInt(32))|0;break}}var varargs=args[args.length-1];for(var carg_idx=nfixedargs;carg_idx<nargs;carg_idx++){var arg_type_id=unboxed_arg_type_id_list[carg_idx];if(arg_type_id===13){HEAPU32[(args_ptr>>2)+carg_idx]=HEAPU32[(varargs>>2)+0]}else{HEAPU32[(args_ptr>>2)+carg_idx]=varargs}varargs+=4}stackRestore(cur_ptr);wasmTable.get(dyncallInvokeMap[HEAPU32[(closure>>2)+2]]||HEAPU32[(closure>>2)+2]).apply(null,[HEAPU32[(closure>>2)+1],ret_ptr,args_ptr,HEAPU32[(closure>>2)+3]]);stackRestore(orig_stack_ptr);if(!ret_by_arg){switch(sig[0]){case\"i\":return HEAPU32[(ret_ptr>>2)+0];case\"j\":return BigInt(HEAPU32[(ret_ptr>>2)+0*2])|BigInt(HEAPU32[(ret_ptr>>2)+0*2+1])<<BigInt(32);case\"d\":return HEAPF64[(ret_ptr>>3)+0];case\"f\":return HEAPF32[(ret_ptr>>2)+0]}}}var wasm_trampoline=convertJsFunctionToWasm(trampoline,sig);wasmTable.set(codeloc,wasm_trampoline);HEAPU32[(closure>>2)+1]=cif;HEAPU32[(closure>>2)+2]=fun;HEAPU32[(closure>>2)+3]=user_data;return 0}function hiwire_assign_from_ptr(idobj,ptr){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);Module.typedArrayAsUint8Array(jsobj).set(Module.HEAPU8.subarray(ptr,ptr+jsobj.byteLength))}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_assign_to_ptr(idobj,ptr){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);Module.HEAPU8.set(Module.typedArrayAsUint8Array(jsobj),ptr)}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_call(idfunc,idargs){\"use strict\";try{let jsfunc=Module.hiwire.get_value(idfunc);let jsargs=Module.hiwire.get_value(idargs);return Module.hiwire.new_value(jsfunc(...jsargs))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_call_bound(idfunc,idthis,idargs){\"use strict\";try{let func=Module.hiwire.get_value(idfunc);let this_;if(idthis===0){this_=null}else{this_=Module.hiwire.get_value(idthis)}let args=Module.hiwire.get_value(idargs);return Module.hiwire.new_value(func.apply(this_,args))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_call_delete_method(idobj,idkey){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);let key=Module.hiwire.get_value(idkey);if(!obj.delete(key)){return-1}}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_call_get_method(idobj,idkey){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);let key=Module.hiwire.get_value(idkey);let result=obj.get(key);if(result===undefined){if(obj.has&&typeof obj.has===\"function\"&&!obj.has(key)){return 0}}return Module.hiwire.new_value(result)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_call_has_method(idobj,idkey){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);let key=Module.hiwire.get_value(idkey);return obj.has(key)}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_call_includes_method(idobj,idval){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);let val=Module.hiwire.get_value(idval);return obj.includes(val)}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_call_member(idobj,ptrname,idargs){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);let jsname=UTF8ToString(ptrname);let jsargs=Module.hiwire.get_value(idargs);return Module.hiwire.new_value(jsobj[jsname](...jsargs))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_call_set_method(idobj,idkey,idval){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);let key=Module.hiwire.get_value(idkey);let val=Module.hiwire.get_value(idval);let result=obj.set(key,val)}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_construct(idobj,idargs){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);let jsargs=Module.hiwire.get_value(idargs);return Module.hiwire.new_value(Reflect.construct(jsobj,jsargs))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_constructor_name(idobj){\"use strict\";try{return stringToNewUTF8(Module.hiwire.get_value(idobj).constructor.name)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_decref(idval){\"use strict\";try{Module.hiwire.decref(idval)}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_double(val){\"use strict\";try{return Module.hiwire.new_value(val)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_equal(ida,idb){\"use strict\";try{return!!(Module.hiwire.get_value(ida)===Module.hiwire.get_value(idb))}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_get_bool(idobj){\"use strict\";try{let val=Module.hiwire.get_value(idobj);if(!val){return!!0}if(val.size===0){return!!0}if(Array.isArray(val)&&val.length===0){return!!0}return!!1}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_get_buffer_datatype(idobj,format_ptr,size_ptr,checked_ptr){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);let[format_utf8,size,checked]=Module.get_buffer_datatype(jsobj);HEAPU32[(format_ptr>>2)+0]=format_utf8;HEAPU32[(size_ptr>>2)+0]=size;HEAPU8[checked_ptr+0]=checked}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_get_byteLength(idobj){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);return jsobj[\"byteLength\"]}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_get_byteOffset(idobj){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);return jsobj[\"byteOffset\"]}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_get_iterator(idobj){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);return Module.hiwire.new_value(jsobj[Symbol.iterator]())}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_get_length(idobj){\"use strict\";try{let val=Module.hiwire.get_value(idobj);if(typeof val.size===\"number\"){return val.size}if(typeof val.length===\"number\"){return val.length}return-1}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_greater_than(ida,idb){\"use strict\";try{return!!(Module.hiwire.get_value(ida)>Module.hiwire.get_value(idb))}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_greater_than_equal(ida,idb){\"use strict\";try{return!!(Module.hiwire.get_value(ida)>=Module.hiwire.get_value(idb))}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_has_get_method(idobj){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);return obj&&typeof obj.get===\"function\"}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_has_has_method(idobj){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);return obj&&typeof obj.has===\"function\"}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_has_includes_method(idobj){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);return obj&&typeof obj.includes===\"function\"}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_has_length(idobj){\"use strict\";try{let val=Module.hiwire.get_value(idobj);return typeof val.size===\"number\"||typeof val.length===\"number\"&&typeof val!==\"function\"}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_has_set_method(idobj){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);return obj&&typeof obj.set===\"function\"}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_incref(idval){\"use strict\";try{if((idval&1)===0){return}return Module.hiwire.new_value(Module.hiwire.get_value(idval))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_init(){\"use strict\";try{let _hiwire={objects:new Map,counter:new Uint32Array([1])};Module.hiwire={};Module.hiwire.UNDEFINED=HEAPU8[_Js_undefined+0];Module.hiwire.JSNULL=HEAPU8[_Js_null+0];Module.hiwire.TRUE=HEAPU8[_Js_true+0];Module.hiwire.FALSE=HEAPU8[_Js_false+0];_hiwire.objects.set(Module.hiwire.UNDEFINED,undefined);_hiwire.objects.set(Module.hiwire.JSNULL,null);_hiwire.objects.set(Module.hiwire.TRUE,!!1);_hiwire.objects.set(Module.hiwire.FALSE,!!0);Module.hiwire.new_value=function(jsval){while(_hiwire.objects.has(_hiwire.counter[0])){_hiwire.counter[0]+=2}let idval=_hiwire.counter[0];_hiwire.objects.set(idval,jsval);_hiwire.counter[0]+=2;return idval};Module.hiwire.num_keys=function(){return _hiwire.objects.size};Module.hiwire.get_value=function(idval){if(!idval){if(_PyErr_Occurred()){let exc=_wrap_exception();let e=Module.hiwire.pop_value(exc);console.error(`Internal error: Argument '${idval}' to hiwire.get_value is falsy. `+\"This was probably because the Python error indicator was set when get_value was called. \"+\"The Python error that caused this was:\",e);throw e}else{console.error(`Internal error: Argument '${idval}' to hiwire.get_value is falsy`+\" (but error indicator is not set).\");throw new Error(`Internal error: Argument '${idval}' to hiwire.get_value is falsy`+\" (but error indicator is not set).\")}}if(!_hiwire.objects.has(idval)){console.error(`Undefined id ${idval}`);throw new Error(`Undefined id ${idval}`)}return _hiwire.objects.get(idval)};Module.hiwire.decref=function(idval){if((idval&1)===0){return}_hiwire.objects.delete(idval)};Module.hiwire.pop_value=function(idval){let result=Module.hiwire.get_value(idval);Module.hiwire.decref(idval);return result};Module.hiwire.isPromise=function(obj){return!!obj&&typeof obj.then===\"function\"};Module.typedArrayAsUint8Array=function(arg){if(arg.buffer!==undefined){return new Uint8Array(arg.buffer,arg.byteOffset,arg.byteLength)}else{return new Uint8Array(arg)}};{let dtypes_str=[\"b\",\"B\",\"h\",\"H\",\"i\",\"I\",\"f\",\"d\"].join(String.fromCharCode(0));let dtypes_ptr=stringToNewUTF8(dtypes_str);let dtypes_map={};for(let[idx,val]of Object.entries(dtypes_str)){dtypes_map[val]=dtypes_ptr+Number(idx)}let buffer_datatype_map=new Map([[\"Int8Array\",[dtypes_map[\"b\"],1,!!1]],[\"Uint8Array\",[dtypes_map[\"B\"],1,!!1]],[\"Uint8ClampedArray\",[dtypes_map[\"B\"],1,!!1]],[\"Int16Array\",[dtypes_map[\"h\"],2,!!1]],[\"Uint16Array\",[dtypes_map[\"H\"],2,!!1]],[\"Int32Array\",[dtypes_map[\"i\"],4,!!1]],[\"Uint32Array\",[dtypes_map[\"I\"],4,!!1]],[\"Float32Array\",[dtypes_map[\"f\"],4,!!1]],[\"Float64Array\",[dtypes_map[\"d\"],8,!!1]],[\"DataView\",[dtypes_map[\"B\"],1,!!0]],[\"ArrayBuffer\",[dtypes_map[\"B\"],1,!!0]]]);Module.get_buffer_datatype=function(jsobj){return buffer_datatype_map.get(jsobj.constructor.name)||[0,0,!!0]}}if(globalThis.BigInt){Module.BigInt=BigInt}else{Module.BigInt=Number}return 0}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_int(val){\"use strict\";try{return Module.hiwire.new_value(val)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_int_from_digits(digits,ndigits){\"use strict\";try{let result=BigInt(0);for(let i=0;i<ndigits;i++){result+=BigInt(HEAPU32[(digits>>2)+i])<<BigInt(32*i)}result+=BigInt(HEAPU32[(digits>>2)+ndigits-1]&2147483648)<<BigInt(1+32*(ndigits-1));if(-Number.MAX_SAFE_INTEGER<result&&result<Number.MAX_SAFE_INTEGER){result=Number(result)}return Module.hiwire.new_value(result)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_is_comlink_proxy(idobj){\"use strict\";try{let value=Module.hiwire.get_value(idobj);return!!(Module.Comlink&&value[Module.Comlink.createEndpoint])}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_is_error(idobj){\"use strict\";try{let value=Module.hiwire.get_value(idobj);return!!(value&&typeof value.stack===\"string\"&&typeof value.message===\"string\")}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_is_function(idobj){\"use strict\";try{return typeof Module.hiwire.get_value(idobj)===\"function\"}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_is_iterable(idobj){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);return typeof jsobj[Symbol.iterator]===\"function\"}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_is_iterator(idobj){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);return typeof jsobj.next===\"function\"}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_is_on_wasm_heap(idobj){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);return jsobj.buffer===Module.HEAPU8.buffer}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_is_promise(idobj){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);return Module.hiwire.isPromise(obj)}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_is_pyproxy(idobj){\"use strict\";try{return Module.isPyProxy(Module.hiwire.get_value(idobj))}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_is_typedarray(idobj){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);return ArrayBuffer.isView(jsobj)||jsobj.constructor.name===\"ArrayBuffer\"}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_less_than(ida,idb){\"use strict\";try{return!!(Module.hiwire.get_value(ida)<Module.hiwire.get_value(idb))}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_less_than_equal(ida,idb){\"use strict\";try{return!!(Module.hiwire.get_value(ida)<=Module.hiwire.get_value(idb))}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_next(idobj,result_ptr){\"use strict\";try{let jsobj=Module.hiwire.get_value(idobj);let{done:done,value:value}=jsobj.next();let result_id=Module.hiwire.new_value(value);HEAPU32[(result_ptr>>2)+0]=result_id;return done}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_not_equal(ida,idb){\"use strict\";try{return!!(Module.hiwire.get_value(ida)!==Module.hiwire.get_value(idb))}catch(e){Module.handle_js_error(e);return-1}return 0}function hiwire_resolve_promise(idobj){\"use strict\";try{let obj=Module.hiwire.get_value(idobj);let result=Promise.resolve(obj);return Module.hiwire.new_value(result)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_string_ascii(ptr){\"use strict\";try{return Module.hiwire.new_value(AsciiToString(ptr))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_string_ucs1(ptr,len){\"use strict\";try{let jsstr=\"\";for(let i=0;i<len;++i){jsstr+=String.fromCharCode(HEAPU8[ptr+i])}return Module.hiwire.new_value(jsstr)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_string_ucs2(ptr,len){\"use strict\";try{let jsstr=\"\";for(let i=0;i<len;++i){jsstr+=String.fromCharCode(HEAPU16[(ptr>>1)+i])}return Module.hiwire.new_value(jsstr)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_string_ucs4(ptr,len){\"use strict\";try{let jsstr=\"\";for(let i=0;i<len;++i){jsstr+=String.fromCodePoint(HEAPU32[(ptr>>2)+i])}return Module.hiwire.new_value(jsstr)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_string_utf8(ptr){\"use strict\";try{return Module.hiwire.new_value(UTF8ToString(ptr))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_subarray(idarr,start,end){\"use strict\";try{let jsarr=Module.hiwire.get_value(idarr);let jssub=jsarr.subarray(start,end);return Module.hiwire.new_value(jssub)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_throw_error(iderr){throw Module.hiwire.pop_value(iderr)}function hiwire_to_string(idobj){\"use strict\";try{return Module.hiwire.new_value(Module.hiwire.get_value(idobj).toString())}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function hiwire_typeof(idobj){\"use strict\";try{return Module.hiwire.new_value(typeof Module.hiwire.get_value(idobj))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function js2python(id){\"use strict\";try{let value=Module.hiwire.get_value(id);let result=Module.__js2python_convertImmutable(value);if(result!==0){return result}return _JsProxy_create(id)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function js2python_convert(id,depth){\"use strict\";try{return Module.__js2python_convert(id,new Map,depth)}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function js2python_init(){\"use strict\";try{Module.__js2python_string=function(value){let max_code_point=0;let num_code_points=0;for(let c of value){num_code_points++;let code_point=c.codePointAt(0);max_code_point=code_point>max_code_point?code_point:max_code_point}let result=_PyUnicode_New(num_code_points,max_code_point);if(result===0){return 0}let ptr=_PyUnicode_Data(result);if(max_code_point>65535){for(let c of value){HEAPU32[ptr/4]=c.codePointAt(0);ptr+=4}}else if(max_code_point>255){for(let c of value){HEAPU16[ptr/2]=c.codePointAt(0);ptr+=2}}else{for(let c of value){HEAPU8[ptr]=c.codePointAt(0);ptr+=1}}return result};Module.__js2python_bigint=function(value){let value_orig=value;let length=0;if(value<0){value=-value}while(value){length++;value>>=BigInt(32)}let stackTop=stackSave();let ptr=stackAlloc(length*4);value=value_orig;for(let i=0;i<length;i++){HEAPU32[(ptr>>2)+i]=Number(value&BigInt(4294967295));value>>=BigInt(32)}let result=__PyLong_FromByteArray(ptr,length*4,!!1,!!1);stackRestore(stackTop);return result};Module.__js2python_convertImmutable=function(value){let type=typeof value;if(type===\"string\"){return Module.__js2python_string(value)}else if(type===\"number\"){if(Number.isSafeInteger(value)){return _PyLong_FromDouble(value)}else{return _PyFloat_FromDouble(value)}}else if(type===\"bigint\"){return Module.__js2python_bigint(value)}else if(value===undefined||value===null){return __js2python_none()}else if(value===!!1){return __js2python_true()}else if(value===!!0){return __js2python_false()}else if(Module.isPyProxy(value)){return __js2python_pyproxy(Module.PyProxy_getPtr(value))}return 0};class TempError extends Error{}Module.__js2python_convertList=function(obj,cache,depth){let list=_PyList_New(obj.length);if(list===0){return 0}let entryid=0;let item=0;try{cache.set(obj,list);for(let i=0;i<obj.length;i++){entryid=Module.hiwire.new_value(obj[i]);item=Module.__js2python_convert(entryid,cache,depth);if(item===0){throw new TempError}_Py_IncRef(item);if(_PyList_SetItem(list,i,item)===-1){throw new TempError}Module.hiwire.decref(entryid);entryid=0;_Py_DecRef(item);item=0}}catch(e){Module.hiwire.decref(entryid);_Py_DecRef(item);_Py_DecRef(list);if(e instanceof TempError){return 0}else if(_PyErr_Occurred()){return 0}else{throw e}}return list};Module.__js2python_convertMap=function(obj,entries,cache,depth){let dict=_PyDict_New();if(dict===0){return 0}let key_py=0;let value_id=0;let value_py=0;try{cache.set(obj,dict);for(let[key_js,value_js]of entries){key_py=Module.__js2python_convertImmutable(key_js);if(key_py===0){if(_PyErr_Occurred()){throw new TempError}else{let key_type=key_js.constructor&&key_js.constructor.name||typeof key_js;throw new Error(`Cannot use key of type ${key_type} as a key to a Python dict`)}}value_id=Module.hiwire.new_value(value_js);value_py=Module.__js2python_convert(value_id,cache,depth);if(value_py===0){throw new TempError}if(_PyDict_SetItem(dict,key_py,value_py)===-1){throw new TempError}_Py_DecRef(key_py);key_py=0;Module.hiwire.decref(value_id);value_id=0;_Py_DecRef(value_py);value_py=0}}catch(e){_Py_DecRef(key_py);Module.hiwire.decref(value_id);_Py_DecRef(value_py);_Py_DecRef(dict);if(e instanceof TempError){return 0}else if(_PyErr_Occurred()){return 0}else{throw e}}return dict};Module.__js2python_convertSet=function(obj,cache,depth){let set=_PySet_New(0);if(set===0){return 0}let key_py=0;try{cache.set(obj,set);for(let key_js of obj){key_py=Module.__js2python_convertImmutable(key_js);if(key_py===0){if(_PyErr_Occurred()){throw new TempError}else{let key_type=key_js.constructor&&key_js.constructor.name||typeof key_js;throw new Error(`Cannot use key of type ${key_type} as a key to a Python set`)}}let errcode=_PySet_Add(set,key_py);if(errcode===-1){throw new TempError}_Py_DecRef(key_py);key_py=0}}catch(e){_Py_DecRef(key_py);_Py_DecRef(set);if(e instanceof TempError){return 0}else if(_PyErr_Occurred()){return 0}else{throw e}}return set};function checkBoolIntCollision(obj,ty){if(obj.has(1)&&obj.has(!!1)){throw new Error(`Cannot faithfully convert ${ty} into Python since it `+\"contains both 1 and true as keys.\")}if(obj.has(0)&&obj.has(!!0)){throw new Error(`Cannot faithfully convert ${ty} into Python since it `+\"contains both 0 and false as keys.\")}}Module.__js2python_convertOther=function(id,value,cache,depth){let toStringTag=Object.prototype.toString.call(value);if(Array.isArray(value)||value===\"[object HTMLCollection]\"||value===\"[object NodeList]\"){return Module.__js2python_convertList(value,cache,depth)}if(toStringTag===\"[object Map]\"||value instanceof Map){checkBoolIntCollision(value,\"Map\");return Module.__js2python_convertMap(value,value.entries(),cache,depth)}if(toStringTag===\"[object Set]\"||value instanceof Set){checkBoolIntCollision(value,\"Set\");return Module.__js2python_convertSet(value,cache,depth)}if(toStringTag===\"[object Object]\"&&(value.constructor===undefined||value.constructor.name===\"Object\")){return Module.__js2python_convertMap(value,Object.entries(value),cache,depth)}if(toStringTag===\"[object ArrayBuffer]\"||ArrayBuffer.isView(value)){let[format_utf8,itemsize]=Module.get_buffer_datatype(value);return _JsBuffer_CloneIntoPython(id,value.byteLength,format_utf8,itemsize)}return _JsProxy_create(id)};Module.__js2python_convert=function(id,cache,depth){let value=Module.hiwire.get_value(id);let result=Module.__js2python_convertImmutable(value);if(result!==0){return result}if(depth===0){return _JsProxy_create(id)}result=cache.get(value);if(result!==undefined){return result}return Module.__js2python_convertOther(id,value,cache,depth-1)};return 0}catch(e){Module.handle_js_error(e);return-1}return 0}function log_python_error(jserror){\"use strict\";try{let msg=Module.hiwire.get_value(jserror).message;console.warn(\"Python exception:\\n\"+msg+\"\\n\");return 0}catch(e){Module.handle_js_error(e);return-1}return 0}function new_error(msg,err){\"use strict\";try{return Module.hiwire.new_value(new Module.PythonError(UTF8ToString(msg),err))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function proxy_cache_get(proxyCacheId,descr){let proxyCache=Module.hiwire.get_value(proxyCacheId);return proxyCache.get(descr)}function proxy_cache_set(proxyCacheId,descr,proxy){let proxyCache=Module.hiwire.get_value(proxyCacheId);proxyCache.set(descr,proxy)}function pyproxy_Check(x){if(x==0){return false}let val=Module.hiwire.get_value(x);return Module.isPyProxy(val)}function pyproxy_mark_borrowed(id){let proxy=Module.hiwire.get_value(id);Module.pyproxy_mark_borrowed(proxy)}function pyproxy_new(ptrobj){\"use strict\";try{return Module.hiwire.new_value(Module.pyproxy_new(ptrobj))}catch(e){Module.handle_js_error(e);return 0}throw new Error(\"Assertion error: control reached end of function without return\")}function python2js_buffer_init(){\"use strict\";try{{0;Module.processBufferFormatString=function(formatStr,errorMessage=\"\"){if(formatStr.length>2){throw new Error(\"Expected format string to have length <= 2, \"+`got '${formatStr}'.`+errorMessage)}let formatChar=formatStr.slice(-1);let alignChar=formatStr.slice(0,-1);let bigEndian;switch(alignChar){case\"!\":case\">\":bigEndian=!!1;break;case\"<\":case\"@\":case\"=\":case\"\":bigEndian=!!0;break;default:throw new Error(`Unrecognized alignment character ${alignChar}.`+errorMessage)}let arrayType;switch(formatChar){case\"b\":arrayType=Int8Array;break;case\"s\":case\"p\":case\"c\":case\"B\":case\"?\":arrayType=Uint8Array;break;case\"h\":arrayType=Int16Array;break;case\"H\":arrayType=Uint16Array;break;case\"i\":case\"l\":case\"n\":arrayType=Int32Array;break;case\"I\":case\"L\":case\"N\":case\"P\":arrayType=Uint32Array;break;case\"q\":if(globalThis.BigInt64Array===undefined){throw new Error(\"BigInt64Array is not supported on this browser.\"+errorMessage)}arrayType=BigInt64Array;break;case\"Q\":if(globalThis.BigUint64Array===undefined){throw new Error(\"BigUint64Array is not supported on this browser.\"+errorMessage)}arrayType=BigUint64Array;break;case\"f\":arrayType=Float32Array;break;case\"d\":arrayType=Float64Array;break;case\"e\":throw new Error(\"Javascript has no Float16 support.\");default:throw new Error(`Unrecognized format character '${formatChar}'.`+errorMessage)}return[arrayType,bigEndian]};Module.python2js_buffer_1d_contiguous=function(ptr,stride,n){\"use strict\";let byteLength=stride*n;return HEAP8.slice(ptr,ptr+byteLength).buffer};Module.python2js_buffer_1d_noncontiguous=function(ptr,stride,suboffset,n,itemsize){\"use strict\";let byteLength=itemsize*n;let buffer=new Uint8Array(byteLength);for(let i=0;i<n;++i){let curptr=ptr+i*stride;if(suboffset>=0){curptr=HEAPU32[(curptr>>2)+0]+suboffset}buffer.set(HEAP8.subarray(curptr,curptr+itemsize),i*itemsize)}return buffer.buffer};Module._python2js_buffer_recursive=function(ptr,curdim,bufferData){\"use strict\";let n=HEAPU32[(bufferData.shape>>2)+curdim];let stride=HEAP32[(bufferData.strides>>2)+curdim];let suboffset=-1;if(bufferData.suboffsets!==0){suboffset=HEAP32[(bufferData.suboffsets>>2)+curdim]}if(curdim===bufferData.ndim-1){let arraybuffer;if(stride===bufferData.itemsize&&suboffset<0){arraybuffer=Module.python2js_buffer_1d_contiguous(ptr,stride,n)}else{arraybuffer=Module.python2js_buffer_1d_noncontiguous(ptr,stride,suboffset,n,bufferData.itemsize)}return bufferData.converter(arraybuffer)}let result=[];for(let i=0;i<n;++i){let curPtr=ptr+i*stride;if(suboffset>=0){curptr=HEAPU32[(curptr>>2)+0]+suboffset}result.push(Module._python2js_buffer_recursive(curPtr,curdim+1,bufferData))}return result};Module.get_converter=function(format,itemsize){\"use strict\";let formatStr=UTF8ToString(format);let[ArrayType,bigEndian]=Module.processBufferFormatString(formatStr);let formatChar=formatStr.slice(-1);switch(formatChar){case\"s\":let decoder=new TextDecoder(\"utf8\");return buff=>decoder.decode(buff);case\"?\":return buff=>Array.from(new Uint8Array(buff),x=>!!x)}if(!bigEndian){return buff=>new ArrayType(buff)}let getFuncName;let setFuncName;switch(itemsize){case 2:getFuncName=\"getUint16\";setFuncName=\"setUint16\";break;case 4:getFuncName=\"getUint32\";setFuncName=\"setUint32\";break;case 8:getFuncName=\"getFloat64\";setFuncName=\"setFloat64\";break;default:throw new Error(`Unexpected size ${itemsize}`)}function swapFunc(buff){let dataview=new DataView(buff);let getFunc=dataview[getFuncName].bind(dataview);let setFunc=dataview[setFuncName].bind(dataview);for(let byte=0;byte<dataview.byteLength;byte+=itemsize){setFunc(byte,getFunc(byte,!!1),!!0)}return buff}return buff=>new ArrayType(swapFunc(buff))}}return 0}catch(e){Module.handle_js_error(e);return-1}return 0}function unbox_small_structs(type_ptr){var type_id=HEAPU16[(type_ptr+6>>1)+0];while(type_id===13){var elements=HEAPU32[(type_ptr+8>>2)+0];var first_element=HEAPU32[(elements>>2)+0];if(first_element===0){type_id=0;break}else if(HEAPU32[(elements>>2)+1]===0){type_ptr=first_element;type_id=HEAPU16[(first_element+6>>1)+0]}else{break}}return[type_ptr,type_id]}function _emscripten_set_main_loop_timing(mode,value){Browser.mainLoop.timingMode=mode;Browser.mainLoop.timingValue=value;if(!Browser.mainLoop.func){return 1}if(!Browser.mainLoop.running){Browser.mainLoop.running=true}if(mode==0){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler_setTimeout(){var timeUntilNextTick=Math.max(0,Browser.mainLoop.tickStartTime+value-_emscripten_get_now())|0;setTimeout(Browser.mainLoop.runner,timeUntilNextTick)};Browser.mainLoop.method=\"timeout\"}else if(mode==1){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler_rAF(){Browser.requestAnimationFrame(Browser.mainLoop.runner)};Browser.mainLoop.method=\"rAF\"}else if(mode==2){if(typeof setImmediate===\"undefined\"){var setImmediates=[];var emscriptenMainLoopMessageId=\"setimmediate\";var Browser_setImmediate_messageHandler=function(event){if(event.data===emscriptenMainLoopMessageId||event.data.target===emscriptenMainLoopMessageId){event.stopPropagation();setImmediates.shift()()}};addEventListener(\"message\",Browser_setImmediate_messageHandler,true);setImmediate=function Browser_emulated_setImmediate(func){setImmediates.push(func);if(ENVIRONMENT_IS_WORKER){if(Module[\"setImmediates\"]===undefined)Module[\"setImmediates\"]=[];Module[\"setImmediates\"].push(func);postMessage({target:emscriptenMainLoopMessageId})}else postMessage(emscriptenMainLoopMessageId,\"*\")}}Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler_setImmediate(){setImmediate(Browser.mainLoop.runner)};Browser.mainLoop.method=\"immediate\"}return 0}Module[\"_emscripten_set_main_loop_timing\"]=_emscripten_set_main_loop_timing;_emscripten_set_main_loop_timing.sig=\"iii\";var _emscripten_get_now;if(ENVIRONMENT_IS_NODE){_emscripten_get_now=function(){var t=process[\"hrtime\"]();return t[0]*1e3+t[1]/1e6}}else if(typeof dateNow!==\"undefined\"){_emscripten_get_now=dateNow}else _emscripten_get_now=function(){return performance.now()};Module[\"_emscripten_get_now\"]=_emscripten_get_now;var runtimeKeepaliveCounter=0;Module[\"runtimeKeepaliveCounter\"]=runtimeKeepaliveCounter;function runtimeKeepalivePush(){runtimeKeepaliveCounter+=1}Module[\"runtimeKeepalivePush\"]=runtimeKeepalivePush;runtimeKeepalivePush.sig=\"v\";function _exit(status){exit(status)}Module[\"_exit\"]=_exit;_exit.sig=\"vi\";function maybeExit(){if(!keepRuntimeAlive()){try{_exit(EXITSTATUS)}catch(e){if(e instanceof ExitStatus){return}throw e}}}Module[\"maybeExit\"]=maybeExit;function setMainLoop(browserIterationFunc,fps,simulateInfiniteLoop,arg,noSetTiming){assert(!Browser.mainLoop.func,\"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.\");Browser.mainLoop.func=browserIterationFunc;Browser.mainLoop.arg=arg;var thisMainLoopId=Browser.mainLoop.currentlyRunningMainloop;function checkIsRunning(){if(thisMainLoopId<Browser.mainLoop.currentlyRunningMainloop){maybeExit();return false}return true}Browser.mainLoop.running=false;Browser.mainLoop.runner=function Browser_mainLoop_runner(){if(ABORT)return;if(Browser.mainLoop.queue.length>0){var start=Date.now();var blocker=Browser.mainLoop.queue.shift();blocker.func(blocker.arg);if(Browser.mainLoop.remainingBlockers){var remaining=Browser.mainLoop.remainingBlockers;var next=remaining%1==0?remaining-1:Math.floor(remaining);if(blocker.counted){Browser.mainLoop.remainingBlockers=next}else{next=next+.5;Browser.mainLoop.remainingBlockers=(8*remaining+next)/9}}console.log('main loop blocker \"'+blocker.name+'\" took '+(Date.now()-start)+\" ms\");Browser.mainLoop.updateStatus();if(!checkIsRunning())return;setTimeout(Browser.mainLoop.runner,0);return}if(!checkIsRunning())return;Browser.mainLoop.currentFrameNumber=Browser.mainLoop.currentFrameNumber+1|0;if(Browser.mainLoop.timingMode==1&&Browser.mainLoop.timingValue>1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0){Browser.mainLoop.scheduler();return}else if(Browser.mainLoop.timingMode==0){Browser.mainLoop.tickStartTime=_emscripten_get_now()}Browser.mainLoop.runIter(browserIterationFunc);if(!checkIsRunning())return;if(typeof SDL===\"object\"&&SDL.audio&&SDL.audio.queueNewAudioData)SDL.audio.queueNewAudioData();Browser.mainLoop.scheduler()};if(!noSetTiming){if(fps&&fps>0)_emscripten_set_main_loop_timing(0,1e3/fps);else _emscripten_set_main_loop_timing(1,1);Browser.mainLoop.scheduler()}if(simulateInfiniteLoop){throw\"unwind\"}}Module[\"setMainLoop\"]=setMainLoop;function callUserCallback(func){if(ABORT){}try{func()}catch(e){if(e instanceof ExitStatus){return}else if(e!==\"unwind\"){if(e&&typeof e===\"object\"&&e.stack)err(\"exception thrown: \"+[e,e.stack]);throw e}}}Module[\"callUserCallback\"]=callUserCallback;function runtimeKeepalivePop(){runtimeKeepaliveCounter-=1}Module[\"runtimeKeepalivePop\"]=runtimeKeepalivePop;runtimeKeepalivePop.sig=\"v\";var Browser={mainLoop:{running:false,scheduler:null,method:\"\",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function(){Browser.mainLoop.scheduler=null;Browser.mainLoop.currentlyRunningMainloop++},resume:function(){Browser.mainLoop.currentlyRunningMainloop++;var timingMode=Browser.mainLoop.timingMode;var timingValue=Browser.mainLoop.timingValue;var func=Browser.mainLoop.func;Browser.mainLoop.func=null;setMainLoop(func,0,false,Browser.mainLoop.arg,true);_emscripten_set_main_loop_timing(timingMode,timingValue);Browser.mainLoop.scheduler()},updateStatus:function(){if(Module[\"setStatus\"]){var message=Module[\"statusMessage\"]||\"Please wait...\";var remaining=Browser.mainLoop.remainingBlockers;var expected=Browser.mainLoop.expectedBlockers;if(remaining){if(remaining<expected){Module[\"setStatus\"](message+\" (\"+(expected-remaining)+\"/\"+expected+\")\")}else{Module[\"setStatus\"](message)}}else{Module[\"setStatus\"](\"\")}}},runIter:function(func){if(ABORT)return;if(Module[\"preMainLoop\"]){var preRet=Module[\"preMainLoop\"]();if(preRet===false){return}}callUserCallback(func);if(Module[\"postMainLoop\"])Module[\"postMainLoop\"]()}},isFullscreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:function(){if(!Module[\"preloadPlugins\"])Module[\"preloadPlugins\"]=[];if(Browser.initted)return;Browser.initted=true;try{new Blob;Browser.hasBlobConstructor=true}catch(e){Browser.hasBlobConstructor=false;console.log(\"warning: no blob constructor, cannot create blobs with mimetypes\")}Browser.BlobBuilder=typeof MozBlobBuilder!=\"undefined\"?MozBlobBuilder:typeof WebKitBlobBuilder!=\"undefined\"?WebKitBlobBuilder:!Browser.hasBlobConstructor?console.log(\"warning: no BlobBuilder\"):null;Browser.URLObject=typeof window!=\"undefined\"?window.URL?window.URL:window.webkitURL:undefined;if(!Module.noImageDecoding&&typeof Browser.URLObject===\"undefined\"){console.log(\"warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.\");Module.noImageDecoding=true}var imagePlugin={};imagePlugin[\"canHandle\"]=function imagePlugin_canHandle(name){return!Module.noImageDecoding&&/\\.(jpg|jpeg|png|bmp)$/i.test(name)};imagePlugin[\"handle\"]=function imagePlugin_handle(byteArray,name,onload,onerror){var b=null;if(Browser.hasBlobConstructor){try{b=new Blob([byteArray],{type:Browser.getMimetype(name)});if(b.size!==byteArray.length){b=new Blob([new Uint8Array(byteArray).buffer],{type:Browser.getMimetype(name)})}}catch(e){warnOnce(\"Blob constructor present but fails: \"+e+\"; falling back to blob builder\")}}if(!b){var bb=new Browser.BlobBuilder;bb.append(new Uint8Array(byteArray).buffer);b=bb.getBlob()}var url=Browser.URLObject.createObjectURL(b);var img=new Image;img.onload=function img_onload(){assert(img.complete,\"Image \"+name+\" could not be decoded\");var canvas=document.createElement(\"canvas\");canvas.width=img.width;canvas.height=img.height;var ctx=canvas.getContext(\"2d\");ctx.drawImage(img,0,0);Module[\"preloadedImages\"][name]=canvas;Browser.URLObject.revokeObjectURL(url);if(onload)onload(byteArray)};img.onerror=function img_onerror(event){console.log(\"Image \"+url+\" could not be decoded\");if(onerror)onerror()};img.src=url};Module[\"preloadPlugins\"].push(imagePlugin);var audioPlugin={};audioPlugin[\"canHandle\"]=function audioPlugin_canHandle(name){return!Module.noAudioDecoding&&name.substr(-4)in{\".ogg\":1,\".wav\":1,\".mp3\":1}};audioPlugin[\"handle\"]=function audioPlugin_handle(byteArray,name,onload,onerror){var done=false;function finish(audio){if(done)return;done=true;Module[\"preloadedAudios\"][name]=audio;if(onload)onload(byteArray)}function fail(){if(done)return;done=true;Module[\"preloadedAudios\"][name]=new Audio;if(onerror)onerror()}if(Browser.hasBlobConstructor){try{var b=new Blob([byteArray],{type:Browser.getMimetype(name)})}catch(e){return fail()}var url=Browser.URLObject.createObjectURL(b);var audio=new Audio;audio.addEventListener(\"canplaythrough\",function(){finish(audio)},false);audio.onerror=function audio_onerror(event){if(done)return;console.log(\"warning: browser could not fully decode audio \"+name+\", trying slower base64 approach\");function encode64(data){var BASE=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";var PAD=\"=\";var ret=\"\";var leftchar=0;var leftbits=0;for(var i=0;i<data.length;i++){leftchar=leftchar<<8|data[i];leftbits+=8;while(leftbits>=6){var curr=leftchar>>leftbits-6&63;leftbits-=6;ret+=BASE[curr]}}if(leftbits==2){ret+=BASE[(leftchar&3)<<4];ret+=PAD+PAD}else if(leftbits==4){ret+=BASE[(leftchar&15)<<2];ret+=PAD}return ret}audio.src=\"data:audio/x-\"+name.substr(-3)+\";base64,\"+encode64(byteArray);finish(audio)};audio.src=url;Browser.safeSetTimeout(function(){finish(audio)},1e4)}else{return fail()}};Module[\"preloadPlugins\"].push(audioPlugin);var wasmPlugin={\"asyncWasmLoadPromise\":new Promise(function(resolve,reject){return resolve()}),\"canHandle\":function(name){return!Module.noWasmDecoding&&name.endsWith(\".so\")},\"handle\":function(byteArray,name,onload,onerror){this[\"asyncWasmLoadPromise\"]=this[\"asyncWasmLoadPromise\"].then(function(){return loadWebAssemblyModule(byteArray,{loadAsync:true,nodelete:true})}).then(function(module){Module[\"preloadedWasm\"][name]=module;onload()},function(err){console.warn(\"Couldn't instantiate wasm: \"+name+\" '\"+err+\"'\");onerror()})}};Module[\"preloadPlugins\"].push(wasmPlugin);function pointerLockChange(){Browser.pointerLock=document[\"pointerLockElement\"]===Module[\"canvas\"]||document[\"mozPointerLockElement\"]===Module[\"canvas\"]||document[\"webkitPointerLockElement\"]===Module[\"canvas\"]||document[\"msPointerLockElement\"]===Module[\"canvas\"]}var canvas=Module[\"canvas\"];if(canvas){canvas.requestPointerLock=canvas[\"requestPointerLock\"]||canvas[\"mozRequestPointerLock\"]||canvas[\"webkitRequestPointerLock\"]||canvas[\"msRequestPointerLock\"]||function(){};canvas.exitPointerLock=document[\"exitPointerLock\"]||document[\"mozExitPointerLock\"]||document[\"webkitExitPointerLock\"]||document[\"msExitPointerLock\"]||function(){};canvas.exitPointerLock=canvas.exitPointerLock.bind(document);document.addEventListener(\"pointerlockchange\",pointerLockChange,false);document.addEventListener(\"mozpointerlockchange\",pointerLockChange,false);document.addEventListener(\"webkitpointerlockchange\",pointerLockChange,false);document.addEventListener(\"mspointerlockchange\",pointerLockChange,false);if(Module[\"elementPointerLock\"]){canvas.addEventListener(\"click\",function(ev){if(!Browser.pointerLock&&Module[\"canvas\"].requestPointerLock){Module[\"canvas\"].requestPointerLock();ev.preventDefault()}},false)}}},createContext:function(canvas,useWebGL,setInModule,webGLContextAttributes){if(useWebGL&&Module.ctx&&canvas==Module.canvas)return Module.ctx;var ctx;var contextHandle;if(useWebGL){var contextAttributes={antialias:false,alpha:false,majorVersion:1};if(webGLContextAttributes){for(var attribute in webGLContextAttributes){contextAttributes[attribute]=webGLContextAttributes[attribute]}}if(typeof GL!==\"undefined\"){contextHandle=GL.createContext(canvas,contextAttributes);if(contextHandle){ctx=GL.getContext(contextHandle).GLctx}}}else{ctx=canvas.getContext(\"2d\")}if(!ctx)return null;if(setInModule){if(!useWebGL)assert(typeof GLctx===\"undefined\",\"cannot set in module if GLctx is used, but we are a non-GL context that would replace it\");Module.ctx=ctx;if(useWebGL)GL.makeContextCurrent(contextHandle);Module.useWebGL=useWebGL;Browser.moduleContextCreatedCallbacks.forEach(function(callback){callback()});Browser.init()}return ctx},destroyContext:function(canvas,useWebGL,setInModule){},fullscreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullscreen:function(lockPointer,resizeCanvas){Browser.lockPointer=lockPointer;Browser.resizeCanvas=resizeCanvas;if(typeof Browser.lockPointer===\"undefined\")Browser.lockPointer=true;if(typeof Browser.resizeCanvas===\"undefined\")Browser.resizeCanvas=false;var canvas=Module[\"canvas\"];function fullscreenChange(){Browser.isFullscreen=false;var canvasContainer=canvas.parentNode;if((document[\"fullscreenElement\"]||document[\"mozFullScreenElement\"]||document[\"msFullscreenElement\"]||document[\"webkitFullscreenElement\"]||document[\"webkitCurrentFullScreenElement\"])===canvasContainer){canvas.exitFullscreen=Browser.exitFullscreen;if(Browser.lockPointer)canvas.requestPointerLock();Browser.isFullscreen=true;if(Browser.resizeCanvas){Browser.setFullscreenCanvasSize()}else{Browser.updateCanvasDimensions(canvas)}}else{canvasContainer.parentNode.insertBefore(canvas,canvasContainer);canvasContainer.parentNode.removeChild(canvasContainer);if(Browser.resizeCanvas){Browser.setWindowedCanvasSize()}else{Browser.updateCanvasDimensions(canvas)}}if(Module[\"onFullScreen\"])Module[\"onFullScreen\"](Browser.isFullscreen);if(Module[\"onFullscreen\"])Module[\"onFullscreen\"](Browser.isFullscreen)}if(!Browser.fullscreenHandlersInstalled){Browser.fullscreenHandlersInstalled=true;document.addEventListener(\"fullscreenchange\",fullscreenChange,false);document.addEventListener(\"mozfullscreenchange\",fullscreenChange,false);document.addEventListener(\"webkitfullscreenchange\",fullscreenChange,false);document.addEventListener(\"MSFullscreenChange\",fullscreenChange,false)}var canvasContainer=document.createElement(\"div\");canvas.parentNode.insertBefore(canvasContainer,canvas);canvasContainer.appendChild(canvas);canvasContainer.requestFullscreen=canvasContainer[\"requestFullscreen\"]||canvasContainer[\"mozRequestFullScreen\"]||canvasContainer[\"msRequestFullscreen\"]||(canvasContainer[\"webkitRequestFullscreen\"]?function(){canvasContainer[\"webkitRequestFullscreen\"](Element[\"ALLOW_KEYBOARD_INPUT\"])}:null)||(canvasContainer[\"webkitRequestFullScreen\"]?function(){canvasContainer[\"webkitRequestFullScreen\"](Element[\"ALLOW_KEYBOARD_INPUT\"])}:null);canvasContainer.requestFullscreen()},exitFullscreen:function(){if(!Browser.isFullscreen){return false}var CFS=document[\"exitFullscreen\"]||document[\"cancelFullScreen\"]||document[\"mozCancelFullScreen\"]||document[\"msExitFullscreen\"]||document[\"webkitCancelFullScreen\"]||function(){};CFS.apply(document,[]);return true},nextRAF:0,fakeRequestAnimationFrame:function(func){var now=Date.now();if(Browser.nextRAF===0){Browser.nextRAF=now+1e3/60}else{while(now+2>=Browser.nextRAF){Browser.nextRAF+=1e3/60}}var delay=Math.max(Browser.nextRAF-now,0);setTimeout(func,delay)},requestAnimationFrame:function(func){if(typeof requestAnimationFrame===\"function\"){requestAnimationFrame(func);return}var RAF=Browser.fakeRequestAnimationFrame;RAF(func)},safeRequestAnimationFrame:function(func){return Browser.requestAnimationFrame(function(){callUserCallback(func)})},safeSetTimeout:function(func,timeout){return setTimeout(function(){callUserCallback(func)},timeout)},getMimetype:function(name){return{\"jpg\":\"image/jpeg\",\"jpeg\":\"image/jpeg\",\"png\":\"image/png\",\"bmp\":\"image/bmp\",\"ogg\":\"audio/ogg\",\"wav\":\"audio/wav\",\"mp3\":\"audio/mpeg\"}[name.substr(name.lastIndexOf(\".\")+1)]},getUserMedia:function(func){if(!window.getUserMedia){window.getUserMedia=navigator[\"getUserMedia\"]||navigator[\"mozGetUserMedia\"]}window.getUserMedia(func)},getMovementX:function(event){return event[\"movementX\"]||event[\"mozMovementX\"]||event[\"webkitMovementX\"]||0},getMovementY:function(event){return event[\"movementY\"]||event[\"mozMovementY\"]||event[\"webkitMovementY\"]||0},getMouseWheelDelta:function(event){var delta=0;switch(event.type){case\"DOMMouseScroll\":delta=event.detail/3;break;case\"mousewheel\":delta=event.wheelDelta/120;break;case\"wheel\":delta=event.deltaY;switch(event.deltaMode){case 0:delta/=100;break;case 1:delta/=3;break;case 2:delta*=80;break;default:throw\"unrecognized mouse wheel delta mode: \"+event.deltaMode}break;default:throw\"unrecognized mouse wheel event: \"+event.type}return delta},mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function(event){if(Browser.pointerLock){if(event.type!=\"mousemove\"&&\"mozMovementX\"in event){Browser.mouseMovementX=Browser.mouseMovementY=0}else{Browser.mouseMovementX=Browser.getMovementX(event);Browser.mouseMovementY=Browser.getMovementY(event)}if(typeof SDL!=\"undefined\"){Browser.mouseX=SDL.mouseX+Browser.mouseMovementX;Browser.mouseY=SDL.mouseY+Browser.mouseMovementY}else{Browser.mouseX+=Browser.mouseMovementX;Browser.mouseY+=Browser.mouseMovementY}}else{var rect=Module[\"canvas\"].getBoundingClientRect();var cw=Module[\"canvas\"].width;var ch=Module[\"canvas\"].height;var scrollX=typeof window.scrollX!==\"undefined\"?window.scrollX:window.pageXOffset;var scrollY=typeof window.scrollY!==\"undefined\"?window.scrollY:window.pageYOffset;if(event.type===\"touchstart\"||event.type===\"touchend\"||event.type===\"touchmove\"){var touch=event.touch;if(touch===undefined){return}var adjustedX=touch.pageX-(scrollX+rect.left);var adjustedY=touch.pageY-(scrollY+rect.top);adjustedX=adjustedX*(cw/rect.width);adjustedY=adjustedY*(ch/rect.height);var coords={x:adjustedX,y:adjustedY};if(event.type===\"touchstart\"){Browser.lastTouches[touch.identifier]=coords;Browser.touches[touch.identifier]=coords}else if(event.type===\"touchend\"||event.type===\"touchmove\"){var last=Browser.touches[touch.identifier];if(!last)last=coords;Browser.lastTouches[touch.identifier]=last;Browser.touches[touch.identifier]=coords}return}var x=event.pageX-(scrollX+rect.left);var y=event.pageY-(scrollY+rect.top);x=x*(cw/rect.width);y=y*(ch/rect.height);Browser.mouseMovementX=x-Browser.mouseX;Browser.mouseMovementY=y-Browser.mouseY;Browser.mouseX=x;Browser.mouseY=y}},asyncLoad:function(url,onload,onerror,noRunDep){var dep=!noRunDep?getUniqueRunDependency(\"al \"+url):\"\";readAsync(url,function(arrayBuffer){assert(arrayBuffer,'Loading data file \"'+url+'\" failed (no arrayBuffer).');onload(new Uint8Array(arrayBuffer));if(dep)removeRunDependency(dep)},function(event){if(onerror){onerror()}else{throw'Loading data file \"'+url+'\" failed.'}});if(dep)addRunDependency(dep)},resizeListeners:[],updateResizeListeners:function(){var canvas=Module[\"canvas\"];Browser.resizeListeners.forEach(function(listener){listener(canvas.width,canvas.height)})},setCanvasSize:function(width,height,noUpdates){var canvas=Module[\"canvas\"];Browser.updateCanvasDimensions(canvas,width,height);if(!noUpdates)Browser.updateResizeListeners()},windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize:function(){if(typeof SDL!=\"undefined\"){var flags=HEAPU32[SDL.screen>>2];flags=flags|8388608;HEAP32[SDL.screen>>2]=flags}Browser.updateCanvasDimensions(Module[\"canvas\"]);Browser.updateResizeListeners()},setWindowedCanvasSize:function(){if(typeof SDL!=\"undefined\"){var flags=HEAPU32[SDL.screen>>2];flags=flags&~8388608;HEAP32[SDL.screen>>2]=flags}Browser.updateCanvasDimensions(Module[\"canvas\"]);Browser.updateResizeListeners()},updateCanvasDimensions:function(canvas,wNative,hNative){if(wNative&&hNative){canvas.widthNative=wNative;canvas.heightNative=hNative}else{wNative=canvas.widthNative;hNative=canvas.heightNative}var w=wNative;var h=hNative;if(Module[\"forcedAspectRatio\"]&&Module[\"forcedAspectRatio\"]>0){if(w/h<Module[\"forcedAspectRatio\"]){w=Math.round(h*Module[\"forcedAspectRatio\"])}else{h=Math.round(w/Module[\"forcedAspectRatio\"])}}if((document[\"fullscreenElement\"]||document[\"mozFullScreenElement\"]||document[\"msFullscreenElement\"]||document[\"webkitFullscreenElement\"]||document[\"webkitCurrentFullScreenElement\"])===canvas.parentNode&&typeof screen!=\"undefined\"){var factor=Math.min(screen.width/w,screen.height/h);w=Math.round(w*factor);h=Math.round(h*factor)}if(Browser.resizeCanvas){if(canvas.width!=w)canvas.width=w;if(canvas.height!=h)canvas.height=h;if(typeof canvas.style!=\"undefined\"){canvas.style.removeProperty(\"width\");canvas.style.removeProperty(\"height\")}}else{if(canvas.width!=wNative)canvas.width=wNative;if(canvas.height!=hNative)canvas.height=hNative;if(typeof canvas.style!=\"undefined\"){if(w!=wNative||h!=hNative){canvas.style.setProperty(\"width\",w+\"px\",\"important\");canvas.style.setProperty(\"height\",h+\"px\",\"important\")}else{canvas.style.removeProperty(\"width\");canvas.style.removeProperty(\"height\")}}}},wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:function(){var handle=Browser.nextWgetRequestHandle;Browser.nextWgetRequestHandle++;return handle}};Module[\"Browser\"]=Browser;var GOT={};Module[\"GOT\"]=GOT;var GOTHandler={get:function(obj,symName){if(!GOT[symName]){GOT[symName]=new WebAssembly.Global({value:\"i32\",mutable:true})}return GOT[symName]}};Module[\"GOTHandler\"]=GOTHandler;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback==\"function\"){callback(Module);continue}var func=callback.func;if(typeof func===\"number\"){if(callback.arg===undefined){wasmTable.get(func)()}else{wasmTable.get(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}Module[\"callRuntimeCallbacks\"]=callRuntimeCallbacks;function demangle(func){return func}Module[\"demangle\"]=demangle;function demangleAll(text){var regex=/\\b_Z[\\w\\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+\" [\"+x+\"]\"})}Module[\"demangleAll\"]=demangleAll;function getDylinkMetadata(binary){var next=0;function getLEB(){var ret=0;var mul=1;while(1){var byte=binary[next++];ret+=(byte&127)*mul;mul*=128;if(!(byte&128))break}return ret}if(binary instanceof WebAssembly.Module){var dylinkSection=WebAssembly.Module.customSections(binary,\"dylink\");assert(dylinkSection.length!=0,\"need dylink section\");binary=new Int8Array(dylinkSection[0])}else{var int32View=new Uint32Array(new Uint8Array(binary.subarray(0,24)).buffer);assert(int32View[0]==1836278016,\"need to see wasm magic number\");assert(binary[8]===0,\"need the dylink section to be first\");next=9;getLEB();assert(binary[next]===6);next++;assert(binary[next]===\"d\".charCodeAt(0));next++;assert(binary[next]===\"y\".charCodeAt(0));next++;assert(binary[next]===\"l\".charCodeAt(0));next++;assert(binary[next]===\"i\".charCodeAt(0));next++;assert(binary[next]===\"n\".charCodeAt(0));next++;assert(binary[next]===\"k\".charCodeAt(0));next++}var customSection={};customSection.memorySize=getLEB();customSection.memoryAlign=getLEB();customSection.tableSize=getLEB();customSection.tableAlign=getLEB();var neededDynlibsCount=getLEB();customSection.neededDynlibs=[];for(var i=0;i<neededDynlibsCount;++i){var nameLen=getLEB();var nameUTF8=binary.subarray(next,next+nameLen);next+=nameLen;var name=UTF8ArrayToString(nameUTF8,0);customSection.neededDynlibs.push(name)}return customSection}Module[\"getDylinkMetadata\"]=getDylinkMetadata;function jsStackTrace(){var error=new Error;if(!error.stack){try{throw new Error}catch(e){error=e}if(!error.stack){return\"(no stack trace available)\"}}return error.stack.toString()}Module[\"jsStackTrace\"]=jsStackTrace;function keepRuntimeAlive(){return noExitRuntime||runtimeKeepaliveCounter>0}Module[\"keepRuntimeAlive\"]=keepRuntimeAlive;var LDSO={nextHandle:1,loadedLibs:{},loadedLibNames:{}};Module[\"LDSO\"]=LDSO;function createInvokeFunction(sig){return function(){var sp=stackSave();try{return dynCall(sig,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){stackRestore(sp);if(e!==e+0&&e!==\"longjmp\")throw e;_setThrew(1,0)}}}Module[\"createInvokeFunction\"]=createInvokeFunction;function getMemory(size){if(runtimeInitialized)return _malloc(size);var ret=Module[\"___heap_base\"];var end=ret+size+15&-16;Module[\"___heap_base\"]=end;GOT[\"__heap_base\"].value=end;return ret}Module[\"getMemory\"]=getMemory;function isInternalSym(symName){return[\"__cpp_exception\",\"__wasm_apply_data_relocs\",\"__dso_handle\",\"__set_stack_limits\"].indexOf(symName)!=-1}Module[\"isInternalSym\"]=isInternalSym;function updateGOT(exports){for(var symName in exports){if(isInternalSym(symName)){continue}var replace=false;var value=exports[symName];if(symName.indexOf(\"orig$\")==0){symName=symName.substring(5);replace=true}baseName=symName;const FPCAST_PREFIX=\"byn$fpcast-emu$\";const FPCAST_DYNCALL_PREFIX=\"$no-fpcast-emu$\";var dyncallName;var is_fpcast=false;var is_nonfpcast=false;var newFn;if(typeof value===\"function\"){if(symName.startsWith(FPCAST_PREFIX)){baseName=symName.substr(FPCAST_PREFIX.length);dyncallName=FPCAST_DYNCALL_PREFIX+baseName;is_fpcast=true}else{if(FPCAST_PREFIX+symName in exports){baseName=FPCAST_DYNCALL_PREFIX+symName;is_nonfpcast=true}}}if(!GOT[baseName]){GOT[baseName]=new WebAssembly.Global({value:\"i32\",mutable:true})}if(replace||GOT[baseName].value==0){if(typeof value===\"function\"){newFn=addFunctionWasm(value);GOT[baseName].value=newFn}else if(typeof value===\"number\"){GOT[baseName].value=value}else{err(\"unhandled export type for `\"+symName+\"`: \"+typeof value)}}if(!newFn)newFn=GOT[baseName].value;if(is_fpcast&&newFn){dyncallGOT=GOT[dyncallName];if(dyncallGOT){dcVal=dyncallGOT.value;if(dcVal){dyncallInvokeMap[newFn]=dcVal}}}else if(is_nonfpcast&&newFn){fpcGOT=GOT[symName];if(fpcGOT){fpVal=fpcGOT.value;if(fpVal){dyncallInvokeMap[fpVal]=newFn}}}}}Module[\"updateGOT\"]=updateGOT;function relocateExports(exports,memoryBase){var relocated={};for(var e in exports){var value=exports[e];if(typeof value===\"object\"){value=value.value}if(typeof value===\"number\"){value+=memoryBase}relocated[e]=value}updateGOT(relocated);return relocated}Module[\"relocateExports\"]=relocateExports;function asmjsMangle(x){var unmangledSymbols=[\"setTempRet0\",\"getTempRet0\",\"stackAlloc\",\"stackSave\",\"stackRestore\"];return x.indexOf(\"dynCall_\")==0||unmangledSymbols.indexOf(x)!=-1?x:\"_\"+x}Module[\"asmjsMangle\"]=asmjsMangle;function resolveGlobalSymbol(symName,direct){var sym;if(direct){sym=Module[\"asm\"][\"orig$\"+symName]}if(!sym){sym=Module[\"asm\"][symName]}if(!sym&&direct){sym=Module[\"_orig$\"+symName]}if(!sym){sym=Module[asmjsMangle(symName)]}if(!sym&&symName.indexOf(\"invoke_\")==0){sym=createInvokeFunction(symName.split(\"_\")[1])}return sym}Module[\"resolveGlobalSymbol\"]=resolveGlobalSymbol;function loadWebAssemblyModule(binary,flags){var metadata=getDylinkMetadata(binary);var memorySize=metadata.memorySize;var memoryAlign=metadata.memoryAlign;var tableSize=metadata.tableSize;var tableAlign=metadata.tableAlign;var neededDynlibs=metadata.neededDynlibs;function loadModule(){memoryAlign=Math.pow(2,memoryAlign);tableAlign=Math.pow(2,tableAlign);memoryAlign=Math.max(memoryAlign,STACK_ALIGN);var memoryBase=alignMemory(getMemory(memorySize+memoryAlign),memoryAlign);var env=asmLibraryArg;var table=wasmTable;var tableBase=table.length;var originalTable=table;table.grow(tableSize);assert(table===originalTable);for(var i=memoryBase;i<memoryBase+memorySize;i++){HEAP8[i]=0}for(var i=tableBase;i<tableBase+tableSize;i++){table.set(i,null)}var moduleExports;function resolveSymbol(sym){var resolved=resolveGlobalSymbol(sym,false);if(!resolved){resolved=moduleExports[sym]}return resolved}for(var x in Module){if(!(x in env)){env[x]=Module[x]}}var proxyHandler={\"get\":function(obj,prop){switch(prop){case\"__memory_base\":return memoryBase;case\"__table_base\":return tableBase}if(prop in obj){return obj[prop]}var resolved;return obj[prop]=function(){if(!resolved)resolved=resolveSymbol(prop,true);return resolved.apply(null,arguments)}}};var proxy=new Proxy(env,proxyHandler);var info={\"GOT.mem\":new Proxy(asmLibraryArg,GOTHandler),\"GOT.func\":new Proxy(asmLibraryArg,GOTHandler),\"env\":proxy,wasi_snapshot_preview1:proxy};function postInstantiation(instance){for(var i=0;i<tableSize;i++){var item=table.get(tableBase+i);if(item){functionsInTableMap.set(item,tableBase+i)}}moduleExports=relocateExports(instance.exports,memoryBase);if(!flags.allowUndefined){reportUndefinedSymbols()}var init=moduleExports[\"__post_instantiate\"];if(init){if(runtimeInitialized){init()}else{__ATINIT__.push(init)}}return moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(instance))}return WebAssembly.instantiate(binary,info).then(function(result){return postInstantiation(result.instance)})}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary);var instance=new WebAssembly.Instance(module,info);return postInstantiation(instance)}if(flags.loadAsync){return neededDynlibs.reduce(function(chain,dynNeeded){return chain.then(function(){return loadDynamicLibrary(dynNeeded,flags)})},Promise.resolve()).then(function(){return loadModule()})}neededDynlibs.forEach(function(dynNeeded){loadDynamicLibrary(dynNeeded,flags)});return loadModule()}Module[\"loadWebAssemblyModule\"]=loadWebAssemblyModule;function fetchBinary(url){return fetch(url,{credentials:\"same-origin\"}).then(function(response){if(!response[\"ok\"]){throw\"failed to load binary file at '\"+url+\"'\"}return response[\"arrayBuffer\"]()}).then(function(buffer){return new Uint8Array(buffer)})}Module[\"fetchBinary\"]=fetchBinary;function mergeLibSymbols(libModule,libName){for(var sym in libModule){if(!libModule.hasOwnProperty(sym)){continue}var module_sym=asmjsMangle(sym);if(!Module.hasOwnProperty(module_sym)){Module[module_sym]=libModule[sym]}}}Module[\"mergeLibSymbols\"]=mergeLibSymbols;function loadDynamicLibrary(lib,flags){if(lib==\"__main__\"&&!LDSO.loadedLibNames[lib]){LDSO.loadedLibs[-1]={refcount:Infinity,name:\"__main__\",module:Module[\"asm\"],global:true};LDSO.loadedLibNames[\"__main__\"]=-1}flags=flags||{global:true,nodelete:true};var handle=LDSO.loadedLibNames[lib];var dso;if(handle){dso=LDSO.loadedLibs[handle];if(flags.global&&!dso.global){dso.global=true;if(dso.module!==\"loading\"){mergeLibSymbols(dso.module,lib)}}if(flags.nodelete&&dso.refcount!==Infinity){dso.refcount=Infinity}dso.refcount++;return flags.loadAsync?Promise.resolve(handle):handle}handle=LDSO.nextHandle++;dso={refcount:flags.nodelete?Infinity:1,name:lib,module:\"loading\",global:flags.global};LDSO.loadedLibNames[lib]=handle;LDSO.loadedLibs[handle]=dso;function loadLibData(libFile){if(flags.fs){var libData=flags.fs.readFile(libFile,{encoding:\"binary\"});if(!(libData instanceof Uint8Array)){libData=new Uint8Array(libData)}return flags.loadAsync?Promise.resolve(libData):libData}if(flags.loadAsync){return fetchBinary(libFile)}return readBinary(libFile)}function getLibModule(){if(Module[\"preloadedWasm\"]!==undefined&&Module[\"preloadedWasm\"][lib]!==undefined){var libModule=Module[\"preloadedWasm\"][lib];return flags.loadAsync?Promise.resolve(libModule):libModule}if(flags.loadAsync){return loadLibData(lib).then(function(libData){return loadWebAssemblyModule(libData,flags)})}return loadWebAssemblyModule(loadLibData(lib),flags)}function moduleLoaded(libModule){if(dso.global){mergeLibSymbols(libModule,lib)}dso.module=libModule}if(flags.loadAsync){return getLibModule().then(function(libModule){moduleLoaded(libModule);return handle})}moduleLoaded(getLibModule());return handle}Module[\"loadDynamicLibrary\"]=loadDynamicLibrary;function reportUndefinedSymbols(){for(var symName in GOT){if(GOT[symName].value==0){var value=resolveGlobalSymbol(symName,true);if(typeof value===\"function\"){GOT[symName].value=addFunctionWasm(value,value.sig)}else if(typeof value===\"number\"){GOT[symName].value=value}else{assert(false,\"bad export type for `\"+symName+\"`: \"+typeof value)}}}}Module[\"reportUndefinedSymbols\"]=reportUndefinedSymbols;function preloadDylibs(){if(!dynamicLibraries.length){reportUndefinedSymbols();return}if(!readBinary){addRunDependency(\"preloadDylibs\");dynamicLibraries.reduce(function(chain,lib){return chain.then(function(){return loadDynamicLibrary(lib,{loadAsync:true,global:true,nodelete:true,allowUndefined:true})})},Promise.resolve()).then(function(){removeRunDependency(\"preloadDylibs\");reportUndefinedSymbols()});return}dynamicLibraries.forEach(function(lib){loadDynamicLibrary(lib,{global:true,nodelete:true,allowUndefined:true})});reportUndefinedSymbols()}Module[\"preloadDylibs\"]=preloadDylibs;function stackTrace(){var js=jsStackTrace();if(Module[\"extraStackTrace\"])js+=\"\\n\"+Module[\"extraStackTrace\"]();return demangleAll(js)}Module[\"stackTrace\"]=stackTrace;function __Unwind_GetIP(){return Module[\"__Unwind_GetIP\"].apply(null,arguments)}function __Unwind_GetLanguageSpecificData(){return Module[\"__Unwind_GetLanguageSpecificData\"].apply(null,arguments)}function __Unwind_GetRegionStart(){return Module[\"__Unwind_GetRegionStart\"].apply(null,arguments)}function __Unwind_SetGR(){return Module[\"__Unwind_SetGR\"].apply(null,arguments)}function __Unwind_SetIP(){return Module[\"__Unwind_SetIP\"].apply(null,arguments)}function _tzset(){if(_tzset.called)return;_tzset.called=true;var currentYear=(new Date).getFullYear();var winter=new Date(currentYear,0,1);var summer=new Date(currentYear,6,1);var winterOffset=winter.getTimezoneOffset();var summerOffset=summer.getTimezoneOffset();var stdTimezoneOffset=Math.max(winterOffset,summerOffset);HEAP32[__get_timezone()>>2]=stdTimezoneOffset*60;HEAP32[__get_daylight()>>2]=Number(winterOffset!=summerOffset);function extractZone(date){var match=date.toTimeString().match(/\\(([A-Za-z ]+)\\)$/);return match?match[1]:\"GMT\"}var winterName=extractZone(winter);var summerName=extractZone(summer);var winterNamePtr=allocateUTF8(winterName);var summerNamePtr=allocateUTF8(summerName);if(summerOffset<winterOffset){HEAP32[__get_tzname()>>2]=winterNamePtr;HEAP32[__get_tzname()+4>>2]=summerNamePtr}else{HEAP32[__get_tzname()>>2]=summerNamePtr;HEAP32[__get_tzname()+4>>2]=winterNamePtr}}Module[\"_tzset\"]=_tzset;_tzset.sig=\"v\";function _mktime(tmPtr){_tzset();var date=new Date(HEAP32[tmPtr+20>>2]+1900,HEAP32[tmPtr+16>>2],HEAP32[tmPtr+12>>2],HEAP32[tmPtr+8>>2],HEAP32[tmPtr+4>>2],HEAP32[tmPtr>>2],0);var dst=HEAP32[tmPtr+32>>2];var guessedOffset=date.getTimezoneOffset();var start=new Date(date.getFullYear(),0,1);var summerOffset=new Date(date.getFullYear(),6,1).getTimezoneOffset();var winterOffset=start.getTimezoneOffset();var dstOffset=Math.min(winterOffset,summerOffset);if(dst<0){HEAP32[tmPtr+32>>2]=Number(summerOffset!=winterOffset&&dstOffset==guessedOffset)}else if(dst>0!=(dstOffset==guessedOffset)){var nonDstOffset=Math.max(winterOffset,summerOffset);var trueOffset=dst>0?dstOffset:nonDstOffset;date.setTime(date.getTime()+(trueOffset-guessedOffset)*6e4)}HEAP32[tmPtr+24>>2]=date.getDay();var yday=(date.getTime()-start.getTime())/(1e3*60*60*24)|0;HEAP32[tmPtr+28>>2]=yday;HEAP32[tmPtr>>2]=date.getSeconds();HEAP32[tmPtr+4>>2]=date.getMinutes();HEAP32[tmPtr+8>>2]=date.getHours();HEAP32[tmPtr+12>>2]=date.getDate();HEAP32[tmPtr+16>>2]=date.getMonth();return date.getTime()/1e3|0}Module[\"_mktime\"]=_mktime;_mktime.sig=\"ii\";function _asctime_r(tmPtr,buf){var date={tm_sec:HEAP32[tmPtr>>2],tm_min:HEAP32[tmPtr+4>>2],tm_hour:HEAP32[tmPtr+8>>2],tm_mday:HEAP32[tmPtr+12>>2],tm_mon:HEAP32[tmPtr+16>>2],tm_year:HEAP32[tmPtr+20>>2],tm_wday:HEAP32[tmPtr+24>>2]};var days=[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"];var months=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];var s=days[date.tm_wday]+\" \"+months[date.tm_mon]+(date.tm_mday<10?\"  \":\" \")+date.tm_mday+(date.tm_hour<10?\" 0\":\" \")+date.tm_hour+(date.tm_min<10?\":0\":\":\")+date.tm_min+(date.tm_sec<10?\":0\":\":\")+date.tm_sec+\" \"+(1900+date.tm_year)+\"\\n\";stringToUTF8(s,buf,26);return buf}Module[\"_asctime_r\"]=_asctime_r;_asctime_r.sig=\"iii\";function ___asctime_r(a0,a1){return _asctime_r(a0,a1)}Module[\"___asctime_r\"]=___asctime_r;___asctime_r.sig=\"iii\";function ___assert_fail(condition,filename,line,func){abort(\"Assertion failed: \"+UTF8ToString(condition)+\", at: \"+[filename?UTF8ToString(filename):\"unknown filename\",line,func?UTF8ToString(func):\"unknown function\"])}Module[\"___assert_fail\"]=___assert_fail;___assert_fail.sig=\"viiii\";var _emscripten_get_now_is_monotonic=true;Module[\"_emscripten_get_now_is_monotonic\"]=_emscripten_get_now_is_monotonic;function setErrNo(value){HEAP32[___errno_location()>>2]=value;return value}Module[\"setErrNo\"]=setErrNo;function _clock_gettime(clk_id,tp){var now;if(clk_id===0){now=Date.now()}else if((clk_id===1||clk_id===4)&&_emscripten_get_now_is_monotonic){now=_emscripten_get_now()}else{setErrNo(28);return-1}HEAP32[tp>>2]=now/1e3|0;HEAP32[tp+4>>2]=now%1e3*1e3*1e3|0;return 0}Module[\"_clock_gettime\"]=_clock_gettime;_clock_gettime.sig=\"iii\";function ___clock_gettime(a0,a1){return _clock_gettime(a0,a1)}Module[\"___clock_gettime\"]=___clock_gettime;___clock_gettime.sig=\"iii\";function _atexit(func,arg){}Module[\"_atexit\"]=_atexit;_atexit.sig=\"iii\";function ___cxa_atexit(a0,a1){return _atexit(a0,a1)}Module[\"___cxa_atexit\"]=___cxa_atexit;___cxa_atexit.sig=\"iii\";function _gmtime_r(time,tmPtr){var date=new Date(HEAP32[time>>2]*1e3);HEAP32[tmPtr>>2]=date.getUTCSeconds();HEAP32[tmPtr+4>>2]=date.getUTCMinutes();HEAP32[tmPtr+8>>2]=date.getUTCHours();HEAP32[tmPtr+12>>2]=date.getUTCDate();HEAP32[tmPtr+16>>2]=date.getUTCMonth();HEAP32[tmPtr+20>>2]=date.getUTCFullYear()-1900;HEAP32[tmPtr+24>>2]=date.getUTCDay();HEAP32[tmPtr+36>>2]=0;HEAP32[tmPtr+32>>2]=0;var start=Date.UTC(date.getUTCFullYear(),0,1,0,0,0,0);var yday=(date.getTime()-start)/(1e3*60*60*24)|0;HEAP32[tmPtr+28>>2]=yday;if(!_gmtime_r.GMTString)_gmtime_r.GMTString=allocateUTF8(\"GMT\");HEAP32[tmPtr+40>>2]=_gmtime_r.GMTString;return tmPtr}Module[\"_gmtime_r\"]=_gmtime_r;_gmtime_r.sig=\"iii\";function ___gmtime_r(a0,a1){return _gmtime_r(a0,a1)}Module[\"___gmtime_r\"]=___gmtime_r;___gmtime_r.sig=\"iii\";function ___libc_current_sigrtmax(){return 0}Module[\"___libc_current_sigrtmax\"]=___libc_current_sigrtmax;function ___libc_current_sigrtmin(){return 0}Module[\"___libc_current_sigrtmin\"]=___libc_current_sigrtmin;function _localtime_r(time,tmPtr){_tzset();var date=new Date(HEAP32[time>>2]*1e3);HEAP32[tmPtr>>2]=date.getSeconds();HEAP32[tmPtr+4>>2]=date.getMinutes();HEAP32[tmPtr+8>>2]=date.getHours();HEAP32[tmPtr+12>>2]=date.getDate();HEAP32[tmPtr+16>>2]=date.getMonth();HEAP32[tmPtr+20>>2]=date.getFullYear()-1900;HEAP32[tmPtr+24>>2]=date.getDay();var start=new Date(date.getFullYear(),0,1);var yday=(date.getTime()-start.getTime())/(1e3*60*60*24)|0;HEAP32[tmPtr+28>>2]=yday;HEAP32[tmPtr+36>>2]=-(date.getTimezoneOffset()*60);var summerOffset=new Date(date.getFullYear(),6,1).getTimezoneOffset();var winterOffset=start.getTimezoneOffset();var dst=(summerOffset!=winterOffset&&date.getTimezoneOffset()==Math.min(winterOffset,summerOffset))|0;HEAP32[tmPtr+32>>2]=dst;var zonePtr=HEAP32[__get_tzname()+(dst?4:0)>>2];HEAP32[tmPtr+40>>2]=zonePtr;return tmPtr}Module[\"_localtime_r\"]=_localtime_r;_localtime_r.sig=\"iii\";function ___localtime_r(a0,a1){return _localtime_r(a0,a1)}Module[\"___localtime_r\"]=___localtime_r;___localtime_r.sig=\"iii\";function ___map_file(pathname,size){setErrNo(63);return-1}Module[\"___map_file\"]=___map_file;function ___posix_spawnx(){return Module[\"___posix_spawnx\"].apply(null,arguments)}function ___pthread_once(){return Module[\"___pthread_once\"].apply(null,arguments)}var PATH={splitPath:function(filename){var splitPathRe=/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/;return splitPathRe.exec(filename).slice(1)},normalizeArray:function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last===\".\"){parts.splice(i,1)}else if(last===\"..\"){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up;up--){parts.unshift(\"..\")}}return parts},normalize:function(path){var isAbsolute=path.charAt(0)===\"/\",trailingSlash=path.substr(-1)===\"/\";path=PATH.normalizeArray(path.split(\"/\").filter(function(p){return!!p}),!isAbsolute).join(\"/\");if(!path&&!isAbsolute){path=\".\"}if(path&&trailingSlash){path+=\"/\"}return(isAbsolute?\"/\":\"\")+path},dirname:function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return\".\"}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir},basename:function(path){if(path===\"/\")return\"/\";path=PATH.normalize(path);path=path.replace(/\\/$/,\"\");var lastSlash=path.lastIndexOf(\"/\");if(lastSlash===-1)return path;return path.substr(lastSlash+1)},extname:function(path){return PATH.splitPath(path)[3]},join:function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join(\"/\"))},join2:function(l,r){return PATH.normalize(l+\"/\"+r)}};Module[\"PATH\"]=PATH;function getRandomDevice(){if(typeof crypto===\"object\"&&typeof crypto[\"getRandomValues\"]===\"function\"){var randomBuffer=new Uint8Array(1);return function(){crypto.getRandomValues(randomBuffer);return randomBuffer[0]}}else if(ENVIRONMENT_IS_NODE){try{var crypto_module=require(\"crypto\");return function(){return crypto_module[\"randomBytes\"](1)[0]}}catch(e){}}return function(){abort(\"randomDevice\")}}Module[\"getRandomDevice\"]=getRandomDevice;var PATH_FS={resolve:function(){var resolvedPath=\"\",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!==\"string\"){throw new TypeError(\"Arguments to path.resolve must be strings\")}else if(!path){return\"\"}resolvedPath=path+\"/\"+resolvedPath;resolvedAbsolute=path.charAt(0)===\"/\"}resolvedPath=PATH.normalizeArray(resolvedPath.split(\"/\").filter(function(p){return!!p}),!resolvedAbsolute).join(\"/\");return(resolvedAbsolute?\"/\":\"\")+resolvedPath||\".\"},relative:function(from,to){from=PATH_FS.resolve(from).substr(1);to=PATH_FS.resolve(to).substr(1);function trim(arr){var start=0;for(;start<arr.length;start++){if(arr[start]!==\"\")break}var end=arr.length-1;for(;end>=0;end--){if(arr[end]!==\"\")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split(\"/\"));var toParts=trim(to.split(\"/\"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i<length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i<fromParts.length;i++){outputParts.push(\"..\")}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join(\"/\")}};Module[\"PATH_FS\"]=PATH_FS;var TTY={ttys:[],init:function(){},shutdown:function(){},register:function(dev,ops){TTY.ttys[dev]={input:[],output:[],ops:ops};FS.registerDevice(dev,TTY.stream_ops)},stream_ops:{open:function(stream){var tty=TTY.ttys[stream.node.rdev];if(!tty){throw new FS.ErrnoError(43)}stream.tty=tty;stream.seekable=false},close:function(stream){stream.tty.ops.flush(stream.tty)},flush:function(stream){stream.tty.ops.flush(stream.tty)},read:function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.get_char){throw new FS.ErrnoError(60)}var bytesRead=0;for(var i=0;i<length;i++){var result;try{result=stream.tty.ops.get_char(stream.tty)}catch(e){throw new FS.ErrnoError(29)}if(result===undefined&&bytesRead===0){throw new FS.ErrnoError(6)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead},write:function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.put_char){throw new FS.ErrnoError(60)}try{for(var i=0;i<length;i++){stream.tty.ops.put_char(stream.tty,buffer[offset+i])}}catch(e){throw new FS.ErrnoError(29)}if(length){stream.node.timestamp=Date.now()}return i}},default_tty_ops:{get_char:function(tty){if(!tty.input.length){var result=null;if(ENVIRONMENT_IS_NODE){var BUFSIZE=256;var buf=Buffer.alloc?Buffer.alloc(BUFSIZE):new Buffer(BUFSIZE);var bytesRead=0;try{bytesRead=nodeFS.readSync(process.stdin.fd,buf,0,BUFSIZE,null)}catch(e){if(e.toString().indexOf(\"EOF\")!=-1)bytesRead=0;else throw e}if(bytesRead>0){result=buf.slice(0,bytesRead).toString(\"utf-8\")}else{result=null}}else if(typeof window!=\"undefined\"&&typeof window.prompt==\"function\"){result=window.prompt(\"Input: \");if(result!==null){result+=\"\\n\"}}else if(typeof readline==\"function\"){result=readline();if(result!==null){result+=\"\\n\"}}if(!result){return null}tty.input=intArrayFromString(result,true)}return tty.input.shift()},put_char:function(tty,val){if(val===null||val===10){out(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},flush:function(tty){if(tty.output&&tty.output.length>0){out(UTF8ArrayToString(tty.output,0));tty.output=[]}}},default_tty1_ops:{put_char:function(tty,val){if(val===null||val===10){err(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},flush:function(tty){if(tty.output&&tty.output.length>0){err(UTF8ArrayToString(tty.output,0));tty.output=[]}}}};Module[\"TTY\"]=TTY;function mmapAlloc(size){var alignedSize=alignMemory(size,16384);var ptr=_malloc(alignedSize);while(size<alignedSize)HEAP8[ptr+size++]=0;return ptr}Module[\"mmapAlloc\"]=mmapAlloc;var MEMFS={ops_table:null,mount:function(mount){return MEMFS.createNode(null,\"/\",16384|511,0)},createNode:function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(63)}if(!MEMFS.ops_table){MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}}}var node=FS.createNode(parent,name,mode,dev);if(FS.isDir(node.mode)){node.node_ops=MEMFS.ops_table.dir.node;node.stream_ops=MEMFS.ops_table.dir.stream;node.contents={}}else if(FS.isFile(node.mode)){node.node_ops=MEMFS.ops_table.file.node;node.stream_ops=MEMFS.ops_table.file.stream;node.usedBytes=0;node.contents=null}else if(FS.isLink(node.mode)){node.node_ops=MEMFS.ops_table.link.node;node.stream_ops=MEMFS.ops_table.link.stream}else if(FS.isChrdev(node.mode)){node.node_ops=MEMFS.ops_table.chrdev.node;node.stream_ops=MEMFS.ops_table.chrdev.stream}node.timestamp=Date.now();if(parent){parent.contents[name]=node;parent.timestamp=node.timestamp}return node},getFileDataAsTypedArray:function(node){if(!node.contents)return new Uint8Array(0);if(node.contents.subarray)return node.contents.subarray(0,node.usedBytes);return new Uint8Array(node.contents)},expandFileStorage:function(node,newCapacity){var prevCapacity=node.contents?node.contents.length:0;if(prevCapacity>=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity<CAPACITY_DOUBLING_MAX?2:1.125)>>>0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0)},resizeFileStorage:function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0}else{var oldContents=node.contents;node.contents=new Uint8Array(newSize);if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize}},node_ops:{getattr:function(node){var attr={};attr.dev=FS.isChrdev(node.mode)?node.id:1;attr.ino=node.id;attr.mode=node.mode;attr.nlink=1;attr.uid=0;attr.gid=0;attr.rdev=node.rdev;if(FS.isDir(node.mode)){attr.size=4096}else if(FS.isFile(node.mode)){attr.size=node.usedBytes}else if(FS.isLink(node.mode)){attr.size=node.link.length}else{attr.size=0}attr.atime=new Date(node.timestamp);attr.mtime=new Date(node.timestamp);attr.ctime=new Date(node.timestamp);attr.blksize=4096;attr.blocks=Math.ceil(attr.size/attr.blksize);return attr},setattr:function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}if(attr.size!==undefined){MEMFS.resizeFileStorage(node,attr.size)}},lookup:function(parent,name){throw FS.genericErrors[44]},mknod:function(parent,name,mode,dev){return MEMFS.createNode(parent,name,mode,dev)},rename:function(old_node,new_dir,new_name){if(FS.isDir(old_node.mode)){var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(new_node){for(var i in new_node.contents){throw new FS.ErrnoError(55)}}}delete old_node.parent.contents[old_node.name];old_node.parent.timestamp=Date.now();old_node.name=new_name;new_dir.contents[new_name]=old_node;new_dir.timestamp=old_node.parent.timestamp;old_node.parent=new_dir},unlink:function(parent,name){delete parent.contents[name];parent.timestamp=Date.now()},rmdir:function(parent,name){var node=FS.lookupNode(parent,name);for(var i in node.contents){throw new FS.ErrnoError(55)}delete parent.contents[name];parent.timestamp=Date.now()},readdir:function(node){var entries=[\".\",\"..\"];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries},symlink:function(parent,newname,oldpath){var node=MEMFS.createNode(parent,newname,511|40960,0);node.link=oldpath;return node},readlink:function(node){if(!FS.isLink(node.mode)){throw new FS.ErrnoError(28)}return node.link}},stream_ops:{read:function(stream,buffer,offset,length,position){var contents=stream.node.contents;if(position>=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i<size;i++)buffer[offset+i]=contents[position+i]}return size},write:function(stream,buffer,offset,length,position,canOwn){if(buffer.buffer===HEAP8.buffer){canOwn=false}if(!length)return 0;var node=stream.node;node.timestamp=Date.now();if(buffer.subarray&&(!node.contents||node.contents.subarray)){if(canOwn){node.contents=buffer.subarray(offset,offset+length);node.usedBytes=length;return length}else if(node.usedBytes===0&&position===0){node.contents=buffer.slice(offset,offset+length);node.usedBytes=length;return length}else if(position+length<=node.usedBytes){node.contents.set(buffer.subarray(offset,offset+length),position);return length}}MEMFS.expandFileStorage(node,position+length);if(node.contents.subarray&&buffer.subarray){node.contents.set(buffer.subarray(offset,offset+length),position)}else{for(var i=0;i<length;i++){node.contents[position+i]=buffer[offset+i]}}node.usedBytes=Math.max(node.usedBytes,position+length);return length},llseek:function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.usedBytes}}if(position<0){throw new FS.ErrnoError(28)}return position},allocate:function(stream,offset,length){MEMFS.expandFileStorage(stream.node,offset+length);stream.node.usedBytes=Math.max(stream.node.usedBytes,offset+length)},mmap:function(stream,address,length,position,prot,flags){if(address!==0){throw new FS.ErrnoError(28)}if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(43)}var ptr;var allocated;var contents=stream.node.contents;if(!(flags&2)&&contents.buffer===buffer){allocated=false;ptr=contents.byteOffset}else{if(position>0||position+length<contents.length){if(contents.subarray){contents=contents.subarray(position,position+length)}else{contents=Array.prototype.slice.call(contents,position,position+length)}}allocated=true;ptr=mmapAlloc(length);if(!ptr){throw new FS.ErrnoError(48)}HEAP8.set(contents,ptr)}return{ptr:ptr,allocated:allocated}},msync:function(stream,buffer,offset,length,mmapFlags){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(43)}if(mmapFlags&2){return 0}var bytesWritten=MEMFS.stream_ops.write(stream,buffer,0,length,offset,false);return 0}}};Module[\"MEMFS\"]=MEMFS;var IDBFS={dbs:{},indexedDB:function(){if(typeof indexedDB!==\"undefined\")return indexedDB;var ret=null;if(typeof window===\"object\")ret=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;assert(ret,\"IDBFS used, but indexedDB not supported\");return ret},DB_VERSION:21,DB_STORE_NAME:\"FILE_DATA\",mount:function(mount){return MEMFS.mount.apply(null,arguments)},syncfs:function(mount,populate,callback){IDBFS.getLocalSet(mount,function(err,local){if(err)return callback(err);IDBFS.getRemoteSet(mount,function(err,remote){if(err)return callback(err);var src=populate?remote:local;var dst=populate?local:remote;IDBFS.reconcile(src,dst,callback)})})},getDB:function(name,callback){var db=IDBFS.dbs[name];if(db){return callback(null,db)}var req;try{req=IDBFS.indexedDB().open(name,IDBFS.DB_VERSION)}catch(e){return callback(e)}if(!req){return callback(\"Unable to connect to IndexedDB\")}req.onupgradeneeded=function(e){var db=e.target.result;var transaction=e.target.transaction;var fileStore;if(db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)){fileStore=transaction.objectStore(IDBFS.DB_STORE_NAME)}else{fileStore=db.createObjectStore(IDBFS.DB_STORE_NAME)}if(!fileStore.indexNames.contains(\"timestamp\")){fileStore.createIndex(\"timestamp\",\"timestamp\",{unique:false})}};req.onsuccess=function(){db=req.result;IDBFS.dbs[name]=db;callback(null,db)};req.onerror=function(e){callback(this.error);e.preventDefault()}},getLocalSet:function(mount,callback){var entries={};function isRealDir(p){return p!==\".\"&&p!==\"..\"}function toAbsolute(root){return function(p){return PATH.join2(root,p)}}var check=FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));while(check.length){var path=check.pop();var stat;try{stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){check.push.apply(check,FS.readdir(path).filter(isRealDir).map(toAbsolute(path)))}entries[path]={\"timestamp\":stat.mtime}}return callback(null,{type:\"local\",entries:entries})},getRemoteSet:function(mount,callback){var entries={};IDBFS.getDB(mount.mountpoint,function(err,db){if(err)return callback(err);try{var transaction=db.transaction([IDBFS.DB_STORE_NAME],\"readonly\");transaction.onerror=function(e){callback(this.error);e.preventDefault()};var store=transaction.objectStore(IDBFS.DB_STORE_NAME);var index=store.index(\"timestamp\");index.openKeyCursor().onsuccess=function(event){var cursor=event.target.result;if(!cursor){return callback(null,{type:\"remote\",db:db,entries:entries})}entries[cursor.primaryKey]={\"timestamp\":cursor.key};cursor.continue()}}catch(e){return callback(e)}})},loadLocalEntry:function(path,callback){var stat,node;try{var lookup=FS.lookupPath(path);node=lookup.node;stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){return callback(null,{\"timestamp\":stat.mtime,\"mode\":stat.mode})}else if(FS.isFile(stat.mode)){node.contents=MEMFS.getFileDataAsTypedArray(node);return callback(null,{\"timestamp\":stat.mtime,\"mode\":stat.mode,\"contents\":node.contents})}else{return callback(new Error(\"node type not supported\"))}},storeLocalEntry:function(path,entry,callback){try{if(FS.isDir(entry[\"mode\"])){FS.mkdirTree(path,entry[\"mode\"])}else if(FS.isFile(entry[\"mode\"])){FS.writeFile(path,entry[\"contents\"],{canOwn:true})}else{return callback(new Error(\"node type not supported\"))}FS.chmod(path,entry[\"mode\"]);FS.utime(path,entry[\"timestamp\"],entry[\"timestamp\"])}catch(e){return callback(e)}callback(null)},removeLocalEntry:function(path,callback){try{var lookup=FS.lookupPath(path);var stat=FS.stat(path);if(FS.isDir(stat.mode)){FS.rmdir(path)}else if(FS.isFile(stat.mode)){FS.unlink(path)}}catch(e){return callback(e)}callback(null)},loadRemoteEntry:function(store,path,callback){var req=store.get(path);req.onsuccess=function(event){callback(null,event.target.result)};req.onerror=function(e){callback(this.error);e.preventDefault()}},storeRemoteEntry:function(store,path,entry,callback){var req=store.put(entry,path);req.onsuccess=function(){callback(null)};req.onerror=function(e){callback(this.error);e.preventDefault()}},removeRemoteEntry:function(store,path,callback){var req=store.delete(path);req.onsuccess=function(){callback(null)};req.onerror=function(e){callback(this.error);e.preventDefault()}},reconcile:function(src,dst,callback){var total=0;var create=[];Object.keys(src.entries).forEach(function(key){var e=src.entries[key];var e2=dst.entries[key];if(!e2||e[\"timestamp\"].getTime()!=e2[\"timestamp\"].getTime()){create.push(key);total++}});var remove=[];Object.keys(dst.entries).forEach(function(key){if(!src.entries[key]){remove.push(key);total++}});if(!total){return callback(null)}var errored=false;var db=src.type===\"remote\"?src.db:dst.db;var transaction=db.transaction([IDBFS.DB_STORE_NAME],\"readwrite\");var store=transaction.objectStore(IDBFS.DB_STORE_NAME);function done(err){if(err&&!errored){errored=true;return callback(err)}}transaction.onerror=function(e){done(this.error);e.preventDefault()};transaction.oncomplete=function(e){if(!errored){callback(null)}};create.sort().forEach(function(path){if(dst.type===\"local\"){IDBFS.loadRemoteEntry(store,path,function(err,entry){if(err)return done(err);IDBFS.storeLocalEntry(path,entry,done)})}else{IDBFS.loadLocalEntry(path,function(err,entry){if(err)return done(err);IDBFS.storeRemoteEntry(store,path,entry,done)})}});remove.sort().reverse().forEach(function(path){if(dst.type===\"local\"){IDBFS.removeLocalEntry(path,done)}else{IDBFS.removeRemoteEntry(store,path,done)}})}};Module[\"IDBFS\"]=IDBFS;var ERRNO_CODES={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135};Module[\"ERRNO_CODES\"]=ERRNO_CODES;var NODEFS={isWindows:false,staticInit:function(){NODEFS.isWindows=!!process.platform.match(/^win/);var flags=process[\"binding\"](\"constants\");if(flags[\"fs\"]){flags=flags[\"fs\"]}NODEFS.flagsForNodeMap={1024:flags[\"O_APPEND\"],64:flags[\"O_CREAT\"],128:flags[\"O_EXCL\"],256:flags[\"O_NOCTTY\"],0:flags[\"O_RDONLY\"],2:flags[\"O_RDWR\"],4096:flags[\"O_SYNC\"],512:flags[\"O_TRUNC\"],1:flags[\"O_WRONLY\"]}},bufferFrom:function(arrayBuffer){return Buffer[\"alloc\"]?Buffer.from(arrayBuffer):new Buffer(arrayBuffer)},convertNodeCode:function(e){var code=e.code;return ERRNO_CODES[code]},mount:function(mount){return NODEFS.createNode(null,\"/\",NODEFS.getMode(mount.opts.root),0)},createNode:function(parent,name,mode,dev){if(!FS.isDir(mode)&&!FS.isFile(mode)&&!FS.isLink(mode)){throw new FS.ErrnoError(28)}var node=FS.createNode(parent,name,mode);node.node_ops=NODEFS.node_ops;node.stream_ops=NODEFS.stream_ops;return node},getMode:function(path){var stat;try{stat=fs.lstatSync(path);if(NODEFS.isWindows){stat.mode=stat.mode|(stat.mode&292)>>2}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}return stat.mode},realPath:function(node){var parts=[];while(node.parent!==node){parts.push(node.name);node=node.parent}parts.push(node.mount.opts.root);parts.reverse();return PATH.join.apply(null,parts)},flagsForNode:function(flags){flags&=~2097152;flags&=~2048;flags&=~32768;flags&=~524288;var newFlags=0;for(var k in NODEFS.flagsForNodeMap){if(flags&k){newFlags|=NODEFS.flagsForNodeMap[k];flags^=k}}if(!flags){return newFlags}else{throw new FS.ErrnoError(28)}},node_ops:{getattr:function(node){var path=NODEFS.realPath(node);var stat;try{stat=fs.lstatSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}if(NODEFS.isWindows&&!stat.blksize){stat.blksize=4096}if(NODEFS.isWindows&&!stat.blocks){stat.blocks=(stat.size+stat.blksize-1)/stat.blksize|0}return{dev:stat.dev,ino:stat.ino,mode:stat.mode,nlink:stat.nlink,uid:stat.uid,gid:stat.gid,rdev:stat.rdev,size:stat.size,atime:stat.atime,mtime:stat.mtime,ctime:stat.ctime,blksize:stat.blksize,blocks:stat.blocks}},setattr:function(node,attr){var path=NODEFS.realPath(node);try{if(attr.mode!==undefined){fs.chmodSync(path,attr.mode);node.mode=attr.mode}if(attr.timestamp!==undefined){var date=new Date(attr.timestamp);fs.utimesSync(path,date,date)}if(attr.size!==undefined){fs.truncateSync(path,attr.size)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}},lookup:function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);var mode=NODEFS.getMode(path);return NODEFS.createNode(parent,name,mode)},mknod:function(parent,name,mode,dev){var node=NODEFS.createNode(parent,name,mode,dev);var path=NODEFS.realPath(node);try{if(FS.isDir(node.mode)){fs.mkdirSync(path,node.mode)}else{fs.writeFileSync(path,\"\",{mode:node.mode})}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}return node},rename:function(oldNode,newDir,newName){var oldPath=NODEFS.realPath(oldNode);var newPath=PATH.join2(NODEFS.realPath(newDir),newName);try{fs.renameSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}oldNode.name=newName},unlink:function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.unlinkSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}},rmdir:function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.rmdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}},readdir:function(node){var path=NODEFS.realPath(node);try{return fs.readdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}},symlink:function(parent,newName,oldPath){var newPath=PATH.join2(NODEFS.realPath(parent),newName);try{fs.symlinkSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}},readlink:function(node){var path=NODEFS.realPath(node);try{path=fs.readlinkSync(path);path=NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root),path);return path}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}}},stream_ops:{open:function(stream){var path=NODEFS.realPath(stream.node);try{if(FS.isFile(stream.node.mode)){stream.nfd=fs.openSync(path,NODEFS.flagsForNode(stream.flags))}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}},close:function(stream){try{if(FS.isFile(stream.node.mode)&&stream.nfd){fs.closeSync(stream.nfd)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}},read:function(stream,buffer,offset,length,position){if(length===0)return 0;try{return fs.readSync(stream.nfd,NODEFS.bufferFrom(buffer.buffer),offset,length,position)}catch(e){throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}},write:function(stream,buffer,offset,length,position){try{return fs.writeSync(stream.nfd,NODEFS.bufferFrom(buffer.buffer),offset,length,position)}catch(e){throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}},llseek:function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){try{var stat=fs.fstatSync(stream.nfd);position+=stat.size}catch(e){throw new FS.ErrnoError(NODEFS.convertNodeCode(e))}}}if(position<0){throw new FS.ErrnoError(28)}return position},mmap:function(stream,address,length,position,prot,flags){if(address!==0){throw new FS.ErrnoError(28)}if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(43)}var ptr=mmapAlloc(length);NODEFS.stream_ops.read(stream,HEAP8,ptr,length,position);return{ptr:ptr,allocated:true}},msync:function(stream,buffer,offset,length,mmapFlags){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(43)}if(mmapFlags&2){return 0}var bytesWritten=NODEFS.stream_ops.write(stream,buffer,0,length,offset,false);return 0}}};Module[\"NODEFS\"]=NODEFS;var WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function(mount){assert(ENVIRONMENT_IS_WORKER);if(!WORKERFS.reader)WORKERFS.reader=new FileReaderSync;var root=WORKERFS.createNode(null,\"/\",WORKERFS.DIR_MODE,0);var createdParents={};function ensureParent(path){var parts=path.split(\"/\");var parent=root;for(var i=0;i<parts.length-1;i++){var curr=parts.slice(0,i+1).join(\"/\");if(!createdParents[curr]){createdParents[curr]=WORKERFS.createNode(parent,parts[i],WORKERFS.DIR_MODE,0)}parent=createdParents[curr]}return parent}function base(path){var parts=path.split(\"/\");return parts[parts.length-1]}Array.prototype.forEach.call(mount.opts[\"files\"]||[],function(file){WORKERFS.createNode(ensureParent(file.name),base(file.name),WORKERFS.FILE_MODE,0,file,file.lastModifiedDate)});(mount.opts[\"blobs\"]||[]).forEach(function(obj){WORKERFS.createNode(ensureParent(obj[\"name\"]),base(obj[\"name\"]),WORKERFS.FILE_MODE,0,obj[\"data\"])});(mount.opts[\"packages\"]||[]).forEach(function(pack){pack[\"metadata\"].files.forEach(function(file){var name=file.filename.substr(1);WORKERFS.createNode(ensureParent(name),base(name),WORKERFS.FILE_MODE,0,pack[\"blob\"].slice(file.start,file.end))})});return root},createNode:function(parent,name,mode,dev,contents,mtime){var node=FS.createNode(parent,name,mode);node.mode=mode;node.node_ops=WORKERFS.node_ops;node.stream_ops=WORKERFS.stream_ops;node.timestamp=(mtime||new Date).getTime();assert(WORKERFS.FILE_MODE!==WORKERFS.DIR_MODE);if(mode===WORKERFS.FILE_MODE){node.size=contents.size;node.contents=contents}else{node.size=4096;node.contents={}}if(parent){parent.contents[name]=node}return node},node_ops:{getattr:function(node){return{dev:1,ino:node.id,mode:node.mode,nlink:1,uid:0,gid:0,rdev:undefined,size:node.size,atime:new Date(node.timestamp),mtime:new Date(node.timestamp),ctime:new Date(node.timestamp),blksize:4096,blocks:Math.ceil(node.size/4096)}},setattr:function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}},lookup:function(parent,name){throw new FS.ErrnoError(44)},mknod:function(parent,name,mode,dev){throw new FS.ErrnoError(63)},rename:function(oldNode,newDir,newName){throw new FS.ErrnoError(63)},unlink:function(parent,name){throw new FS.ErrnoError(63)},rmdir:function(parent,name){throw new FS.ErrnoError(63)},readdir:function(node){var entries=[\".\",\"..\"];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries},symlink:function(parent,newName,oldPath){throw new FS.ErrnoError(63)},readlink:function(node){throw new FS.ErrnoError(63)}},stream_ops:{read:function(stream,buffer,offset,length,position){if(position>=stream.node.size)return 0;var chunk=stream.node.contents.slice(position,position+length);var ab=WORKERFS.reader.readAsArrayBuffer(chunk);buffer.set(new Uint8Array(ab),offset);return chunk.size},write:function(stream,buffer,offset,length,position){throw new FS.ErrnoError(29)},llseek:function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.size}}if(position<0){throw new FS.ErrnoError(28)}return position}}};Module[\"WORKERFS\"]=WORKERFS;var PROXYFS={mount:function(mount){return PROXYFS.createNode(null,\"/\",mount.opts.fs.lstat(mount.opts.root).mode,0)},createNode:function(parent,name,mode,dev){if(!FS.isDir(mode)&&!FS.isFile(mode)&&!FS.isLink(mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=FS.createNode(parent,name,mode);node.node_ops=PROXYFS.node_ops;node.stream_ops=PROXYFS.stream_ops;return node},realPath:function(node){var parts=[];while(node.parent!==node){parts.push(node.name);node=node.parent}parts.push(node.mount.opts.root);parts.reverse();return PATH.join.apply(null,parts)},node_ops:{getattr:function(node){var path=PROXYFS.realPath(node);var stat;try{stat=node.mount.opts.fs.lstat(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return{dev:stat.dev,ino:stat.ino,mode:stat.mode,nlink:stat.nlink,uid:stat.uid,gid:stat.gid,rdev:stat.rdev,size:stat.size,atime:stat.atime,mtime:stat.mtime,ctime:stat.ctime,blksize:stat.blksize,blocks:stat.blocks}},setattr:function(node,attr){var path=PROXYFS.realPath(node);try{if(attr.mode!==undefined){node.mount.opts.fs.chmod(path,attr.mode);node.mode=attr.mode}if(attr.timestamp!==undefined){var date=new Date(attr.timestamp);node.mount.opts.fs.utime(path,date,date)}if(attr.size!==undefined){node.mount.opts.fs.truncate(path,attr.size)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}},lookup:function(parent,name){try{var path=PATH.join2(PROXYFS.realPath(parent),name);var mode=parent.mount.opts.fs.lstat(path).mode;var node=PROXYFS.createNode(parent,name,mode);return node}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}},mknod:function(parent,name,mode,dev){var node=PROXYFS.createNode(parent,name,mode,dev);var path=PROXYFS.realPath(node);try{if(FS.isDir(node.mode)){node.mount.opts.fs.mkdir(path,node.mode)}else{node.mount.opts.fs.writeFile(path,\"\",{mode:node.mode})}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return node},rename:function(oldNode,newDir,newName){var oldPath=PROXYFS.realPath(oldNode);var newPath=PATH.join2(PROXYFS.realPath(newDir),newName);try{oldNode.mount.opts.fs.rename(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}},unlink:function(parent,name){var path=PATH.join2(PROXYFS.realPath(parent),name);try{parent.mount.opts.fs.unlink(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}},rmdir:function(parent,name){var path=PATH.join2(PROXYFS.realPath(parent),name);try{parent.mount.opts.fs.rmdir(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}},readdir:function(node){var path=PROXYFS.realPath(node);try{return node.mount.opts.fs.readdir(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}},symlink:function(parent,newName,oldPath){var newPath=PATH.join2(PROXYFS.realPath(parent),newName);try{parent.mount.opts.fs.symlink(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}},readlink:function(node){var path=PROXYFS.realPath(node);try{return node.mount.opts.fs.readlink(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}},stream_ops:{open:function(stream){var path=PROXYFS.realPath(stream.node);try{stream.nfd=stream.node.mount.opts.fs.open(path,stream.flags)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}},close:function(stream){try{stream.node.mount.opts.fs.close(stream.nfd)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}},read:function(stream,buffer,offset,length,position){try{return stream.node.mount.opts.fs.read(stream.nfd,buffer,offset,length,position)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}},write:function(stream,buffer,offset,length,position){try{return stream.node.mount.opts.fs.write(stream.nfd,buffer,offset,length,position)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}},llseek:function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){try{var stat=stream.node.mount.opts.fs.fstat(stream.nfd);position+=stat.size}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position}}};Module[\"PROXYFS\"]=PROXYFS;var LZ4={DIR_MODE:16895,FILE_MODE:33279,CHUNK_SIZE:-1,codec:null,init:function(){if(LZ4.codec)return;LZ4.codec=function(){var MiniLZ4=function(){var exports={};exports.uncompress=function(input,output,sIdx,eIdx){sIdx=sIdx||0;eIdx=eIdx||input.length-sIdx;for(var i=sIdx,n=eIdx,j=0;i<n;){var token=input[i++];var literals_length=token>>4;if(literals_length>0){var l=literals_length+240;while(l===255){l=input[i++];literals_length+=l}var end=i+literals_length;while(i<end)output[j++]=input[i++];if(i===n)return j}var offset=input[i++]|input[i++]<<8;if(offset===0)return j;if(offset>j)return-(i-2);var match_length=token&15;var l=match_length+240;while(l===255){l=input[i++];match_length+=l}var pos=j-offset;var end=j+match_length+4;while(j<end)output[j++]=output[pos++]}return j};var maxInputSize=2113929216,minMatch=4,hashLog=16,hashShift=minMatch*8-hashLog,hashSize=1<<hashLog,copyLength=8,lastLiterals=5,mfLimit=copyLength+minMatch,skipStrength=6,mlBits=4,mlMask=(1<<mlBits)-1,runBits=8-mlBits,runMask=(1<<runBits)-1,hasher=2654435761;assert(hashShift===16);var hashTable=new Int16Array(1<<16);var empty=new Int16Array(hashTable.length);exports.compressBound=function(isize){return isize>maxInputSize?0:isize+isize/255+16|0};exports.compress=function(src,dst,sIdx,eIdx){hashTable.set(empty);return compressBlock(src,dst,0,sIdx||0,eIdx||dst.length)};function compressBlock(src,dst,pos,sIdx,eIdx){var dpos=sIdx;var dlen=eIdx-sIdx;var anchor=0;if(src.length>=maxInputSize)throw new Error(\"input too large\");if(src.length>mfLimit){var n=exports.compressBound(src.length);if(dlen<n)throw Error(\"output too small: \"+dlen+\" < \"+n);var step=1,findMatchAttempts=(1<<skipStrength)+3,srcLength=src.length-mfLimit;while(pos+minMatch<srcLength){var sequenceLowBits=src[pos+1]<<8|src[pos];var sequenceHighBits=src[pos+3]<<8|src[pos+2];var hash=Math.imul(sequenceLowBits|sequenceHighBits<<16,hasher)>>>hashShift;var ref=hashTable[hash]-1;hashTable[hash]=pos+1;if(ref<0||pos-ref>>>16>0||((src[ref+3]<<8|src[ref+2])!=sequenceHighBits||(src[ref+1]<<8|src[ref])!=sequenceLowBits)){step=findMatchAttempts++>>skipStrength;pos+=step;continue}findMatchAttempts=(1<<skipStrength)+3;var literals_length=pos-anchor;var offset=pos-ref;pos+=minMatch;ref+=minMatch;var match_length=pos;while(pos<srcLength&&src[pos]==src[ref]){pos++;ref++}match_length=pos-match_length;var token=match_length<mlMask?match_length:mlMask;if(literals_length>=runMask){dst[dpos++]=(runMask<<mlBits)+token;for(var len=literals_length-runMask;len>254;len-=255){dst[dpos++]=255}dst[dpos++]=len}else{dst[dpos++]=(literals_length<<mlBits)+token}for(var i=0;i<literals_length;i++){dst[dpos++]=src[anchor+i]}dst[dpos++]=offset;dst[dpos++]=offset>>8;if(match_length>=mlMask){match_length-=mlMask;while(match_length>=255){match_length-=255;dst[dpos++]=255}dst[dpos++]=match_length}anchor=pos}}if(anchor==0)return 0;literals_length=src.length-anchor;if(literals_length>=runMask){dst[dpos++]=runMask<<mlBits;for(var ln=literals_length-runMask;ln>254;ln-=255){dst[dpos++]=255}dst[dpos++]=ln}else{dst[dpos++]=literals_length<<mlBits}pos=anchor;while(pos<src.length){dst[dpos++]=src[pos++]}return dpos}exports.CHUNK_SIZE=2048;exports.compressPackage=function(data,verify){if(verify){var temp=new Uint8Array(exports.CHUNK_SIZE)}assert(data instanceof ArrayBuffer);data=new Uint8Array(data);console.log(\"compressing package of size \"+data.length);var compressedChunks=[];var successes=[];var offset=0;var total=0;while(offset<data.length){var chunk=data.subarray(offset,offset+exports.CHUNK_SIZE);offset+=exports.CHUNK_SIZE;var bound=exports.compressBound(chunk.length);var compressed=new Uint8Array(bound);var compressedSize=exports.compress(chunk,compressed);if(compressedSize>0){assert(compressedSize<=bound);compressed=compressed.subarray(0,compressedSize);compressedChunks.push(compressed);total+=compressedSize;successes.push(1);if(verify){var back=exports.uncompress(compressed,temp);assert(back===chunk.length,[back,chunk.length]);for(var i=0;i<chunk.length;i++){assert(chunk[i]===temp[i])}}}else{assert(compressedSize===0);compressedChunks.push(chunk);total+=chunk.length;successes.push(0)}}data=null;var compressedData={\"data\":new Uint8Array(total+exports.CHUNK_SIZE*2),\"cachedOffset\":total,\"cachedIndexes\":[-1,-1],\"cachedChunks\":[null,null],\"offsets\":[],\"sizes\":[],\"successes\":successes};offset=0;for(var i=0;i<compressedChunks.length;i++){compressedData[\"data\"].set(compressedChunks[i],offset);compressedData[\"offsets\"][i]=offset;compressedData[\"sizes\"][i]=compressedChunks[i].length;offset+=compressedChunks[i].length}console.log(\"compressed package into \"+[compressedData[\"data\"].length]);assert(offset===total);return compressedData};assert(exports.CHUNK_SIZE<1<<15);return exports}();return MiniLZ4}();LZ4.CHUNK_SIZE=LZ4.codec.CHUNK_SIZE},loadPackage:function(pack,preloadPlugin){LZ4.init();var compressedData=pack[\"compressedData\"];if(!compressedData)compressedData=LZ4.codec.compressPackage(pack[\"data\"]);assert(compressedData[\"cachedIndexes\"].length===compressedData[\"cachedChunks\"].length);for(var i=0;i<compressedData[\"cachedIndexes\"].length;i++){compressedData[\"cachedIndexes\"][i]=-1;compressedData[\"cachedChunks\"][i]=compressedData[\"data\"].subarray(compressedData[\"cachedOffset\"]+i*LZ4.CHUNK_SIZE,compressedData[\"cachedOffset\"]+(i+1)*LZ4.CHUNK_SIZE);assert(compressedData[\"cachedChunks\"][i].length===LZ4.CHUNK_SIZE)}pack[\"metadata\"].files.forEach(function(file){var dir=PATH.dirname(file.filename);var name=PATH.basename(file.filename);FS.createPath(\"\",dir,true,true);var parent=FS.analyzePath(dir).object;LZ4.createNode(parent,name,LZ4.FILE_MODE,0,{compressedData:compressedData,start:file.start,end:file.end})});if(preloadPlugin){Browser.init();pack[\"metadata\"].files.forEach(function(file){var handled=false;var fullname=file.filename;Module[\"preloadPlugins\"].forEach(function(plugin){if(handled)return;if(plugin[\"canHandle\"](fullname)){var dep=getUniqueRunDependency(\"fp \"+fullname);addRunDependency(dep);var finish=function(){removeRunDependency(dep)};var byteArray=FS.readFile(fullname);plugin[\"handle\"](byteArray,fullname,finish,finish);handled=true}})})}},createNode:function(parent,name,mode,dev,contents,mtime){var node=FS.createNode(parent,name,mode);node.mode=mode;node.node_ops=LZ4.node_ops;node.stream_ops=LZ4.stream_ops;node.timestamp=(mtime||new Date).getTime();assert(LZ4.FILE_MODE!==LZ4.DIR_MODE);if(mode===LZ4.FILE_MODE){node.size=contents.end-contents.start;node.contents=contents}else{node.size=4096;node.contents={}}if(parent){parent.contents[name]=node}return node},node_ops:{getattr:function(node){return{dev:1,ino:node.id,mode:node.mode,nlink:1,uid:0,gid:0,rdev:undefined,size:node.size,atime:new Date(node.timestamp),mtime:new Date(node.timestamp),ctime:new Date(node.timestamp),blksize:4096,blocks:Math.ceil(node.size/4096)}},setattr:function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}},lookup:function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)},mknod:function(parent,name,mode,dev){throw new FS.ErrnoError(ERRNO_CODES.EPERM)},rename:function(oldNode,newDir,newName){throw new FS.ErrnoError(ERRNO_CODES.EPERM)},unlink:function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.EPERM)},rmdir:function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.EPERM)},readdir:function(node){throw new FS.ErrnoError(ERRNO_CODES.EPERM)},symlink:function(parent,newName,oldPath){throw new FS.ErrnoError(ERRNO_CODES.EPERM)},readlink:function(node){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}},stream_ops:{read:function(stream,buffer,offset,length,position){length=Math.min(length,stream.node.size-position);if(length<=0)return 0;var contents=stream.node.contents;var compressedData=contents.compressedData;var written=0;while(written<length){var start=contents.start+position+written;var desired=length-written;var chunkIndex=Math.floor(start/LZ4.CHUNK_SIZE);var compressedStart=compressedData[\"offsets\"][chunkIndex];var compressedSize=compressedData[\"sizes\"][chunkIndex];var currChunk;if(compressedData[\"successes\"][chunkIndex]){var found=compressedData[\"cachedIndexes\"].indexOf(chunkIndex);if(found>=0){currChunk=compressedData[\"cachedChunks\"][found]}else{compressedData[\"cachedIndexes\"].pop();compressedData[\"cachedIndexes\"].unshift(chunkIndex);currChunk=compressedData[\"cachedChunks\"].pop();compressedData[\"cachedChunks\"].unshift(currChunk);if(compressedData[\"debug\"]){console.log(\"decompressing chunk \"+chunkIndex);Module[\"decompressedChunks\"]=(Module[\"decompressedChunks\"]||0)+1}var compressed=compressedData[\"data\"].subarray(compressedStart,compressedStart+compressedSize);var originalSize=LZ4.codec.uncompress(compressed,currChunk);if(chunkIndex<compressedData[\"successes\"].length-1)assert(originalSize===LZ4.CHUNK_SIZE)}}else{currChunk=compressedData[\"data\"].subarray(compressedStart,compressedStart+LZ4.CHUNK_SIZE)}var startInChunk=start%LZ4.CHUNK_SIZE;var endInChunk=Math.min(startInChunk+desired,LZ4.CHUNK_SIZE);buffer.set(currChunk.subarray(startInChunk,endInChunk),offset+written);var currWritten=endInChunk-startInChunk;written+=currWritten}return written},write:function(stream,buffer,offset,length,position){throw new FS.ErrnoError(ERRNO_CODES.EIO)},llseek:function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.size}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position}}};Module[\"LZ4\"]=LZ4;var FS={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:\"/\",initialized:false,ignorePermissions:true,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(path,opts){path=PATH_FS.resolve(FS.cwd(),path);opts=opts||{};if(!path)return{path:\"\",node:null};var defaults={follow_mount:true,recurse_count:0};for(var key in defaults){if(opts[key]===undefined){opts[key]=defaults[key]}}if(opts.recurse_count>8){throw new FS.ErrnoError(32)}var parts=PATH.normalizeArray(path.split(\"/\").filter(function(p){return!!p}),false);var current=FS.root;var current_path=\"/\";for(var i=0;i<parts.length;i++){var islast=i===parts.length-1;if(islast&&opts.parent){break}current=FS.lookupNode(current,parts[i]);current_path=PATH.join2(current_path,parts[i]);if(FS.isMountpoint(current)){if(!islast||islast&&opts.follow_mount){current=current.mounted.root}}if(!islast||opts.follow){var count=0;while(FS.isLink(current.mode)){var link=FS.readlink(current_path);current_path=PATH_FS.resolve(PATH.dirname(current_path),link);var lookup=FS.lookupPath(current_path,{recurse_count:opts.recurse_count});current=lookup.node;if(count++>40){throw new FS.ErrnoError(32)}}}}return{path:current_path,node:current}},getPath:function(node){var path;while(true){if(FS.isRoot(node)){var mount=node.mount.mountpoint;if(!path)return mount;return mount[mount.length-1]!==\"/\"?mount+\"/\"+path:mount+path}path=path?node.name+\"/\"+path:node.name;node=node.parent}},hashName:function(parentid,name){var hash=0;for(var i=0;i<name.length;i++){hash=(hash<<5)-hash+name.charCodeAt(i)|0}return(parentid+hash>>>0)%FS.nameTable.length},hashAddNode:function(node){var hash=FS.hashName(node.parent.id,node.name);node.name_next=FS.nameTable[hash];FS.nameTable[hash]=node},hashRemoveNode:function(node){var hash=FS.hashName(node.parent.id,node.name);if(FS.nameTable[hash]===node){FS.nameTable[hash]=node.name_next}else{var current=FS.nameTable[hash];while(current){if(current.name_next===node){current.name_next=node.name_next;break}current=current.name_next}}},lookupNode:function(parent,name){var errCode=FS.mayLookup(parent);if(errCode){throw new FS.ErrnoError(errCode,parent)}var hash=FS.hashName(parent.id,name);for(var node=FS.nameTable[hash];node;node=node.name_next){var nodeName=node.name;if(node.parent.id===parent.id&&nodeName===name){return node}}return FS.lookup(parent,name)},createNode:function(parent,name,mode,rdev){var node=new FS.FSNode(parent,name,mode,rdev);FS.hashAddNode(node);return node},destroyNode:function(node){FS.hashRemoveNode(node)},isRoot:function(node){return node===node.parent},isMountpoint:function(node){return!!node.mounted},isFile:function(mode){return(mode&61440)===32768},isDir:function(mode){return(mode&61440)===16384},isLink:function(mode){return(mode&61440)===40960},isChrdev:function(mode){return(mode&61440)===8192},isBlkdev:function(mode){return(mode&61440)===24576},isFIFO:function(mode){return(mode&61440)===4096},isSocket:function(mode){return(mode&49152)===49152},flagModes:{\"r\":0,\"r+\":2,\"w\":577,\"w+\":578,\"a\":1089,\"a+\":1090},modeStringToFlags:function(str){var flags=FS.flagModes[str];if(typeof flags===\"undefined\"){throw new Error(\"Unknown file open mode: \"+str)}return flags},flagsToPermissionString:function(flag){var perms=[\"r\",\"w\",\"rw\"][flag&3];if(flag&512){perms+=\"w\"}return perms},nodePermissions:function(node,perms){if(FS.ignorePermissions){return 0}if(perms.indexOf(\"r\")!==-1&&!(node.mode&292)){return 2}else if(perms.indexOf(\"w\")!==-1&&!(node.mode&146)){return 2}else if(perms.indexOf(\"x\")!==-1&&!(node.mode&73)){return 2}return 0},mayLookup:function(dir){var errCode=FS.nodePermissions(dir,\"x\");if(errCode)return errCode;if(!dir.node_ops.lookup)return 2;return 0},mayCreate:function(dir,name){try{var node=FS.lookupNode(dir,name);return 20}catch(e){}return FS.nodePermissions(dir,\"wx\")},mayDelete:function(dir,name,isdir){var node;try{node=FS.lookupNode(dir,name)}catch(e){return e.errno}var errCode=FS.nodePermissions(dir,\"wx\");if(errCode){return errCode}if(isdir){if(!FS.isDir(node.mode)){return 54}if(FS.isRoot(node)||FS.getPath(node)===FS.cwd()){return 10}}else{if(FS.isDir(node.mode)){return 31}}return 0},mayOpen:function(node,flags){if(!node){return 44}if(FS.isLink(node.mode)){return 32}else if(FS.isDir(node.mode)){if(FS.flagsToPermissionString(flags)!==\"r\"||flags&512){return 31}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))},MAX_OPEN_FDS:4096,nextfd:function(fd_start,fd_end){fd_start=fd_start||0;fd_end=fd_end||FS.MAX_OPEN_FDS;for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(33)},getStream:function(fd){return FS.streams[fd]},createStream:function(stream,fd_start,fd_end){if(!FS.FSStream){FS.FSStream=function(){};FS.FSStream.prototype={object:{get:function(){return this.node},set:function(val){this.node=val}},isRead:{get:function(){return(this.flags&2097155)!==1}},isWrite:{get:function(){return(this.flags&2097155)!==0}},isAppend:{get:function(){return this.flags&1024}},get flags(){return this.shared.flags},set flags(value){this.shared.flags=value},get position(){return this.shared.position},set position(value){this.shared.position=value}}}var newStream=new FS.FSStream;newStream.shared={};for(var p in stream){newStream[p]=stream[p]}stream=newStream;var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream},closeStream:function(fd){FS.streams[fd]=null},chrdev_stream_ops:{open:function(stream){var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}},llseek:function(){throw new FS.ErrnoError(70)}},major:function(dev){return dev>>8},minor:function(dev){return dev&255},makedev:function(ma,mi){return ma<<8|mi},registerDevice:function(dev,ops){FS.devices[dev]={stream_ops:ops}},getDevice:function(dev){return FS.devices[dev]},getMounts:function(mount){var mounts=[];var check=[mount];while(check.length){var m=check.pop();mounts.push(m);check.push.apply(check,m.mounts)}return mounts},syncfs:function(populate,callback){if(typeof populate===\"function\"){callback=populate;populate=false}FS.syncFSRequests++;if(FS.syncFSRequests>1){err(\"warning: \"+FS.syncFSRequests+\" FS.syncfs operations in flight at once, probably just doing extra work\")}var mounts=FS.getMounts(FS.root.mount);var completed=0;function doCallback(errCode){FS.syncFSRequests--;return callback(errCode)}function done(errCode){if(errCode){if(!done.errored){done.errored=true;return doCallback(errCode)}return}if(++completed>=mounts.length){doCallback(null)}}mounts.forEach(function(mount){if(!mount.type.syncfs){return done(null)}mount.type.syncfs(mount,populate,done)})},mount:function(type,opts,mountpoint){var root=mountpoint===\"/\";var pseudo=!mountpoint;var node;if(root&&FS.root){throw new FS.ErrnoError(10)}else if(!root&&!pseudo){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});mountpoint=lookup.path;node=lookup.node;if(FS.isMountpoint(node)){throw new FS.ErrnoError(10)}if(!FS.isDir(node.mode)){throw new FS.ErrnoError(54)}}var mount={type:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;if(node.mount){node.mount.mounts.push(mount)}}return mountRoot},unmount:function(mountpoint){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});if(!FS.isMountpoint(lookup.node)){throw new FS.ErrnoError(28)}var node=lookup.node;var mount=node.mounted;var mounts=FS.getMounts(mount);Object.keys(FS.nameTable).forEach(function(hash){var current=FS.nameTable[hash];while(current){var next=current.name_next;if(mounts.indexOf(current.mount)!==-1){FS.destroyNode(current)}current=next}});node.mounted=null;var idx=node.mount.mounts.indexOf(mount);node.mount.mounts.splice(idx,1)},lookup:function(parent,name){return parent.node_ops.lookup(parent,name)},mknod:function(path,mode,dev){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);if(!name||name===\".\"||name===\"..\"){throw new FS.ErrnoError(28)}var errCode=FS.mayCreate(parent,name);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.mknod){throw new FS.ErrnoError(63)}return parent.node_ops.mknod(parent,name,mode,dev)},create:function(path,mode){mode=mode!==undefined?mode:438;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)},mkdir:function(path,mode){mode=mode!==undefined?mode:511;mode&=511|512;mode|=16384;return FS.mknod(path,mode,0)},mkdirTree:function(path,mode){var dirs=path.split(\"/\");var d=\"\";for(var i=0;i<dirs.length;++i){if(!dirs[i])continue;d+=\"/\"+dirs[i];try{FS.mkdir(d,mode)}catch(e){if(e.errno!=20)throw e}}},mkdev:function(path,mode,dev){if(typeof dev===\"undefined\"){dev=mode;mode=438}mode|=8192;return FS.mknod(path,mode,dev)},symlink:function(oldpath,newpath){if(!PATH_FS.resolve(oldpath)){throw new FS.ErrnoError(44)}var lookup=FS.lookupPath(newpath,{parent:true});var parent=lookup.node;if(!parent){throw new FS.ErrnoError(44)}var newname=PATH.basename(newpath);var errCode=FS.mayCreate(parent,newname);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.symlink){throw new FS.ErrnoError(63)}return parent.node_ops.symlink(parent,newname,oldpath)},rename:function(old_path,new_path){var old_dirname=PATH.dirname(old_path);var new_dirname=PATH.dirname(new_path);var old_name=PATH.basename(old_path);var new_name=PATH.basename(new_path);var lookup,old_dir,new_dir;lookup=FS.lookupPath(old_path,{parent:true});old_dir=lookup.node;lookup=FS.lookupPath(new_path,{parent:true});new_dir=lookup.node;if(!old_dir||!new_dir)throw new FS.ErrnoError(44);if(old_dir.mount!==new_dir.mount){throw new FS.ErrnoError(75)}var old_node=FS.lookupNode(old_dir,old_name);var relative=PATH_FS.relative(old_path,new_dirname);if(relative.charAt(0)!==\".\"){throw new FS.ErrnoError(28)}relative=PATH_FS.relative(new_path,old_dirname);if(relative.charAt(0)!==\".\"){throw new FS.ErrnoError(55)}var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(old_node===new_node){return}var isdir=FS.isDir(old_node.mode);var errCode=FS.mayDelete(old_dir,old_name,isdir);if(errCode){throw new FS.ErrnoError(errCode)}errCode=new_node?FS.mayDelete(new_dir,new_name,isdir):FS.mayCreate(new_dir,new_name);if(errCode){throw new FS.ErrnoError(errCode)}if(!old_dir.node_ops.rename){throw new FS.ErrnoError(63)}if(FS.isMountpoint(old_node)||new_node&&FS.isMountpoint(new_node)){throw new FS.ErrnoError(10)}if(new_dir!==old_dir){errCode=FS.nodePermissions(old_dir,\"w\");if(errCode){throw new FS.ErrnoError(errCode)}}try{if(FS.trackingDelegate[\"willMovePath\"]){FS.trackingDelegate[\"willMovePath\"](old_path,new_path)}}catch(e){err(\"FS.trackingDelegate['willMovePath']('\"+old_path+\"', '\"+new_path+\"') threw an exception: \"+e.message)}FS.hashRemoveNode(old_node);try{old_dir.node_ops.rename(old_node,new_dir,new_name)}catch(e){throw e}finally{FS.hashAddNode(old_node)}try{if(FS.trackingDelegate[\"onMovePath\"])FS.trackingDelegate[\"onMovePath\"](old_path,new_path)}catch(e){err(\"FS.trackingDelegate['onMovePath']('\"+old_path+\"', '\"+new_path+\"') threw an exception: \"+e.message)}},rmdir:function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var errCode=FS.mayDelete(parent,name,true);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.rmdir){throw new FS.ErrnoError(63)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(10)}try{if(FS.trackingDelegate[\"willDeletePath\"]){FS.trackingDelegate[\"willDeletePath\"](path)}}catch(e){err(\"FS.trackingDelegate['willDeletePath']('\"+path+\"') threw an exception: \"+e.message)}parent.node_ops.rmdir(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate[\"onDeletePath\"])FS.trackingDelegate[\"onDeletePath\"](path)}catch(e){err(\"FS.trackingDelegate['onDeletePath']('\"+path+\"') threw an exception: \"+e.message)}},readdir:function(path){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;if(!node.node_ops.readdir){throw new FS.ErrnoError(54)}return node.node_ops.readdir(node)},unlink:function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var errCode=FS.mayDelete(parent,name,false);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.unlink){throw new FS.ErrnoError(63)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(10)}try{if(FS.trackingDelegate[\"willDeletePath\"]){FS.trackingDelegate[\"willDeletePath\"](path)}}catch(e){err(\"FS.trackingDelegate['willDeletePath']('\"+path+\"') threw an exception: \"+e.message)}parent.node_ops.unlink(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate[\"onDeletePath\"])FS.trackingDelegate[\"onDeletePath\"](path)}catch(e){err(\"FS.trackingDelegate['onDeletePath']('\"+path+\"') threw an exception: \"+e.message)}},readlink:function(path){var lookup=FS.lookupPath(path);var link=lookup.node;if(!link){throw new FS.ErrnoError(44)}if(!link.node_ops.readlink){throw new FS.ErrnoError(28)}return PATH_FS.resolve(FS.getPath(link.parent),link.node_ops.readlink(link))},stat:function(path,dontFollow){var lookup=FS.lookupPath(path,{follow:!dontFollow});var node=lookup.node;if(!node){throw new FS.ErrnoError(44)}if(!node.node_ops.getattr){throw new FS.ErrnoError(63)}return node.node_ops.getattr(node)},lstat:function(path){return FS.stat(path,true)},chmod:function(path,mode,dontFollow){var node;if(typeof path===\"string\"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(63)}node.node_ops.setattr(node,{mode:mode&4095|node.mode&~4095,timestamp:Date.now()})},lchmod:function(path,mode){FS.chmod(path,mode,true)},fchmod:function(fd,mode){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}FS.chmod(stream.node,mode)},chown:function(path,uid,gid,dontFollow){var node;if(typeof path===\"string\"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(63)}node.node_ops.setattr(node,{timestamp:Date.now()})},lchown:function(path,uid,gid){FS.chown(path,uid,gid,true)},fchown:function(fd,uid,gid){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}FS.chown(stream.node,uid,gid)},truncate:function(path,len){if(len<0){throw new FS.ErrnoError(28)}var node;if(typeof path===\"string\"){var lookup=FS.lookupPath(path,{follow:true});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(63)}if(FS.isDir(node.mode)){throw new FS.ErrnoError(31)}if(!FS.isFile(node.mode)){throw new FS.ErrnoError(28)}var errCode=FS.nodePermissions(node,\"w\");if(errCode){throw new FS.ErrnoError(errCode)}node.node_ops.setattr(node,{size:len,timestamp:Date.now()})},ftruncate:function(fd,len){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(28)}FS.truncate(stream.node,len)},utime:function(path,atime,mtime){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;node.node_ops.setattr(node,{timestamp:Math.max(atime,mtime)})},open:function(path,flags,mode,fd_start,fd_end){if(path===\"\"){throw new FS.ErrnoError(44)}flags=typeof flags===\"string\"?FS.modeStringToFlags(flags):flags;mode=typeof mode===\"undefined\"?438:mode;if(flags&64){mode=mode&4095|32768}else{mode=0}var node;if(typeof path===\"object\"){node=path}else{path=PATH.normalize(path);try{var lookup=FS.lookupPath(path,{follow:!(flags&131072)});node=lookup.node}catch(e){}}var created=false;if(flags&64){if(node){if(flags&128){throw new FS.ErrnoError(20)}}else{node=FS.mknod(path,mode,0);created=true}}if(!node){throw new FS.ErrnoError(44)}if(FS.isChrdev(node.mode)){flags&=~512}if(flags&65536&&!FS.isDir(node.mode)){throw new FS.ErrnoError(54)}if(!created){var errCode=FS.mayOpen(node,flags);if(errCode){throw new FS.ErrnoError(errCode)}}if(flags&512){FS.truncate(node,0)}flags&=~(128|512|131072);var stream=FS.createStream({node:node,path:FS.getPath(node),flags:flags,seekable:true,position:0,stream_ops:node.stream_ops,ungotten:[],error:false},fd_start,fd_end);if(stream.stream_ops.open){stream.stream_ops.open(stream)}if(Module[\"logReadFiles\"]&&!(flags&1)){if(!FS.readFiles)FS.readFiles={};if(!(path in FS.readFiles)){FS.readFiles[path]=1;err(\"FS.trackingDelegate error on read file: \"+path)}}try{if(FS.trackingDelegate[\"onOpenFile\"]){var trackingFlags=0;if((flags&2097155)!==1){trackingFlags|=FS.tracking.openFlags.READ}if((flags&2097155)!==0){trackingFlags|=FS.tracking.openFlags.WRITE}FS.trackingDelegate[\"onOpenFile\"](path,trackingFlags)}}catch(e){err(\"FS.trackingDelegate['onOpenFile']('\"+path+\"', flags) threw an exception: \"+e.message)}return stream},close:function(stream){if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if(stream.getdents)stream.getdents=null;try{if(stream.stream_ops.close){stream.stream_ops.close(stream)}}catch(e){throw e}finally{FS.closeStream(stream.fd)}stream.fd=null},isClosed:function(stream){return stream.fd===null},llseek:function(stream,offset,whence){if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if(!stream.seekable||!stream.stream_ops.llseek){throw new FS.ErrnoError(70)}if(whence!=0&&whence!=1&&whence!=2){throw new FS.ErrnoError(28)}stream.position=stream.stream_ops.llseek(stream,offset,whence);stream.ungotten=[];return stream.position},read:function(stream,buffer,offset,length,position){if(length<0||position<0){throw new FS.ErrnoError(28)}if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if((stream.flags&2097155)===1){throw new FS.ErrnoError(8)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(31)}if(!stream.stream_ops.read){throw new FS.ErrnoError(28)}var seeking=typeof position!==\"undefined\";if(!seeking){position=stream.position}else if(!stream.seekable){throw new FS.ErrnoError(70)}var bytesRead=stream.stream_ops.read(stream,buffer,offset,length,position);if(!seeking)stream.position+=bytesRead;return bytesRead},write:function(stream,buffer,offset,length,position,canOwn){if(length<0||position<0){throw new FS.ErrnoError(28)}if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(8)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(31)}if(!stream.stream_ops.write){throw new FS.ErrnoError(28)}if(stream.seekable&&stream.flags&1024){FS.llseek(stream,0,2)}var seeking=typeof position!==\"undefined\";if(!seeking){position=stream.position}else if(!stream.seekable){throw new FS.ErrnoError(70)}var bytesWritten=stream.stream_ops.write(stream,buffer,offset,length,position,canOwn);if(!seeking)stream.position+=bytesWritten;try{if(stream.path&&FS.trackingDelegate[\"onWriteToFile\"])FS.trackingDelegate[\"onWriteToFile\"](stream.path)}catch(e){err(\"FS.trackingDelegate['onWriteToFile']('\"+stream.path+\"') threw an exception: \"+e.message)}return bytesWritten},allocate:function(stream,offset,length){if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if(offset<0||length<=0){throw new FS.ErrnoError(28)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(8)}if(!FS.isFile(stream.node.mode)&&!FS.isDir(stream.node.mode)){throw new FS.ErrnoError(43)}if(!stream.stream_ops.allocate){throw new FS.ErrnoError(138)}stream.stream_ops.allocate(stream,offset,length)},mmap:function(stream,address,length,position,prot,flags){if((prot&2)!==0&&(flags&2)===0&&(stream.flags&2097155)!==2){throw new FS.ErrnoError(2)}if((stream.flags&2097155)===1){throw new FS.ErrnoError(2)}if(!stream.stream_ops.mmap){throw new FS.ErrnoError(43)}return stream.stream_ops.mmap(stream,address,length,position,prot,flags)},msync:function(stream,buffer,offset,length,mmapFlags){if(!stream||!stream.stream_ops.msync){return 0}return stream.stream_ops.msync(stream,buffer,offset,length,mmapFlags)},munmap:function(stream){return 0},ioctl:function(stream,cmd,arg){if(!stream.stream_ops.ioctl){throw new FS.ErrnoError(59)}return stream.stream_ops.ioctl(stream,cmd,arg)},readFile:function(path,opts){opts=opts||{};opts.flags=opts.flags||0;opts.encoding=opts.encoding||\"binary\";if(opts.encoding!==\"utf8\"&&opts.encoding!==\"binary\"){throw new Error('Invalid encoding type \"'+opts.encoding+'\"')}var ret;var stream=FS.open(path,opts.flags);var stat=FS.stat(path);var length=stat.size;var buf=new Uint8Array(length);FS.read(stream,buf,0,length,0);if(opts.encoding===\"utf8\"){ret=UTF8ArrayToString(buf,0)}else if(opts.encoding===\"binary\"){ret=buf}FS.close(stream);return ret},writeFile:function(path,data,opts){opts=opts||{};opts.flags=opts.flags||577;var stream=FS.open(path,opts.flags,opts.mode);if(typeof data===\"string\"){var buf=new Uint8Array(lengthBytesUTF8(data)+1);var actualNumBytes=stringToUTF8Array(data,buf,0,buf.length);FS.write(stream,buf,0,actualNumBytes,undefined,opts.canOwn)}else if(ArrayBuffer.isView(data)){FS.write(stream,data,0,data.byteLength,undefined,opts.canOwn)}else{throw new Error(\"Unsupported data type\")}FS.close(stream)},cwd:function(){return FS.currentPath},chdir:function(path){var lookup=FS.lookupPath(path,{follow:true});if(lookup.node===null){throw new FS.ErrnoError(44)}if(!FS.isDir(lookup.node.mode)){throw new FS.ErrnoError(54)}var errCode=FS.nodePermissions(lookup.node,\"x\");if(errCode){throw new FS.ErrnoError(errCode)}FS.currentPath=lookup.path},createDefaultDirectories:function(){FS.mkdir(\"/tmp\");FS.mkdir(\"/home\");FS.mkdir(\"/home/web_user\")},createDefaultDevices:function(){FS.mkdir(\"/dev\");FS.registerDevice(FS.makedev(1,3),{read:function(){return 0},write:function(stream,buffer,offset,length,pos){return length}});FS.mkdev(\"/dev/null\",FS.makedev(1,3));TTY.register(FS.makedev(5,0),TTY.default_tty_ops);TTY.register(FS.makedev(6,0),TTY.default_tty1_ops);FS.mkdev(\"/dev/tty\",FS.makedev(5,0));FS.mkdev(\"/dev/tty1\",FS.makedev(6,0));var random_device=getRandomDevice();FS.createDevice(\"/dev\",\"random\",random_device);FS.createDevice(\"/dev\",\"urandom\",random_device);FS.mkdir(\"/dev/shm\");FS.mkdir(\"/dev/shm/tmp\")},createSpecialDirectories:function(){FS.mkdir(\"/proc\");var proc_self=FS.mkdir(\"/proc/self\");FS.mkdir(\"/proc/self/fd\");FS.mount({mount:function(){var node=FS.createNode(proc_self,\"fd\",16384|511,73);node.node_ops={lookup:function(parent,name){var fd=+name;var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(8);var ret={parent:null,mount:{mountpoint:\"fake\"},node_ops:{readlink:function(){return stream.path}}};ret.parent=ret;return ret}};return node}},{},\"/proc/self/fd\")},createStandardStreams:function(){if(Module[\"stdin\"]){FS.createDevice(\"/dev\",\"stdin\",Module[\"stdin\"])}else{FS.symlink(\"/dev/tty\",\"/dev/stdin\")}if(Module[\"stdout\"]){FS.createDevice(\"/dev\",\"stdout\",null,Module[\"stdout\"])}else{FS.symlink(\"/dev/tty\",\"/dev/stdout\")}if(Module[\"stderr\"]){FS.createDevice(\"/dev\",\"stderr\",null,Module[\"stderr\"])}else{FS.symlink(\"/dev/tty1\",\"/dev/stderr\")}var stdin=FS.open(\"/dev/stdin\",0);var stdout=FS.open(\"/dev/stdout\",1);var stderr=FS.open(\"/dev/stderr\",1)},ensureErrnoError:function(){if(FS.ErrnoError)return;FS.ErrnoError=function ErrnoError(errno,node){this.node=node;this.setErrno=function(errno){this.errno=errno};this.setErrno(errno);this.message=\"FS error\"};FS.ErrnoError.prototype=new Error;FS.ErrnoError.prototype.constructor=FS.ErrnoError;[44].forEach(function(code){FS.genericErrors[code]=new FS.ErrnoError(code);FS.genericErrors[code].stack=\"<generic error, no stack>\"})},staticInit:function(){FS.ensureErrnoError();FS.nameTable=new Array(4096);FS.mount(MEMFS,{},\"/\");FS.createDefaultDirectories();FS.createDefaultDevices();FS.createSpecialDirectories();FS.filesystems={\"MEMFS\":MEMFS,\"IDBFS\":IDBFS,\"NODEFS\":NODEFS,\"WORKERFS\":WORKERFS,\"PROXYFS\":PROXYFS}},init:function(input,output,error){FS.init.initialized=true;FS.ensureErrnoError();Module[\"stdin\"]=input||Module[\"stdin\"];Module[\"stdout\"]=output||Module[\"stdout\"];Module[\"stderr\"]=error||Module[\"stderr\"];FS.createStandardStreams()},quit:function(){FS.init.initialized=false;var fflush=Module[\"_fflush\"];if(fflush)fflush(0);for(var i=0;i<FS.streams.length;i++){var stream=FS.streams[i];if(!stream){continue}FS.close(stream)}},getMode:function(canRead,canWrite){var mode=0;if(canRead)mode|=292|73;if(canWrite)mode|=146;return mode},findObject:function(path,dontResolveLastLink){var ret=FS.analyzePath(path,dontResolveLastLink);if(ret.exists){return ret.object}else{return null}},analyzePath:function(path,dontResolveLastLink){try{var lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});path=lookup.path}catch(e){}var ret={isRoot:false,exists:false,error:0,name:null,path:null,object:null,parentExists:false,parentPath:null,parentObject:null};try{var lookup=FS.lookupPath(path,{parent:true});ret.parentExists=true;ret.parentPath=lookup.path;ret.parentObject=lookup.node;ret.name=PATH.basename(path);lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});ret.exists=true;ret.path=lookup.path;ret.object=lookup.node;ret.name=lookup.node.name;ret.isRoot=lookup.path===\"/\"}catch(e){ret.error=e.errno}return ret},createPath:function(parent,path,canRead,canWrite){parent=typeof parent===\"string\"?parent:FS.getPath(parent);var parts=path.split(\"/\").reverse();while(parts.length){var part=parts.pop();if(!part)continue;var current=PATH.join2(parent,part);try{FS.mkdir(current)}catch(e){}parent=current}return current},createFile:function(parent,name,properties,canRead,canWrite){var path=PATH.join2(typeof parent===\"string\"?parent:FS.getPath(parent),name);var mode=FS.getMode(canRead,canWrite);return FS.create(path,mode)},createDataFile:function(parent,name,data,canRead,canWrite,canOwn){var path=name?PATH.join2(typeof parent===\"string\"?parent:FS.getPath(parent),name):parent;var mode=FS.getMode(canRead,canWrite);var node=FS.create(path,mode);if(data){if(typeof data===\"string\"){var arr=new Array(data.length);for(var i=0,len=data.length;i<len;++i)arr[i]=data.charCodeAt(i);data=arr}FS.chmod(node,mode|146);var stream=FS.open(node,577);FS.write(stream,data,0,data.length,0,canOwn);FS.close(stream);FS.chmod(node,mode)}return node},createDevice:function(parent,name,input,output){var path=PATH.join2(typeof parent===\"string\"?parent:FS.getPath(parent),name);var mode=FS.getMode(!!input,!!output);if(!FS.createDevice.major)FS.createDevice.major=64;var dev=FS.makedev(FS.createDevice.major++,0);FS.registerDevice(dev,{open:function(stream){stream.seekable=false},close:function(stream){if(output&&output.buffer&&output.buffer.length){output(10)}},read:function(stream,buffer,offset,length,pos){var bytesRead=0;for(var i=0;i<length;i++){var result;try{result=input()}catch(e){throw new FS.ErrnoError(29)}if(result===undefined&&bytesRead===0){throw new FS.ErrnoError(6)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead},write:function(stream,buffer,offset,length,pos){for(var i=0;i<length;i++){try{output(buffer[offset+i])}catch(e){throw new FS.ErrnoError(29)}}if(length){stream.node.timestamp=Date.now()}return i}});return FS.mkdev(path,mode,dev)},forceLoadFile:function(obj){if(obj.isDevice||obj.isFolder||obj.link||obj.contents)return true;if(typeof XMLHttpRequest!==\"undefined\"){throw new Error(\"Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.\")}else if(read_){try{obj.contents=intArrayFromString(read_(obj.url),true);obj.usedBytes=obj.contents.length}catch(e){throw new FS.ErrnoError(29)}}else{throw new Error(\"Cannot load without read() or XMLHttpRequest.\")}},createLazyFile:function(parent,name,url,canRead,canWrite){function LazyUint8Array(){this.lengthKnown=false;this.chunks=[]}LazyUint8Array.prototype.get=function LazyUint8Array_get(idx){if(idx>this.length-1||idx<0){return undefined}var chunkOffset=idx%this.chunkSize;var chunkNum=idx/this.chunkSize|0;return this.getter(chunkNum)[chunkOffset]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){var xhr=new XMLHttpRequest;xhr.open(\"HEAD\",url,false);xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error(\"Couldn't load \"+url+\". Status: \"+xhr.status);var datalength=Number(xhr.getResponseHeader(\"Content-length\"));var header;var hasByteServing=(header=xhr.getResponseHeader(\"Accept-Ranges\"))&&header===\"bytes\";var usesGzip=(header=xhr.getResponseHeader(\"Content-Encoding\"))&&header===\"gzip\";var chunkSize=1024*1024;if(!hasByteServing)chunkSize=datalength;var doXHR=function(from,to){if(from>to)throw new Error(\"invalid range (\"+from+\", \"+to+\") or no bytes requested!\");if(to>datalength-1)throw new Error(\"only \"+datalength+\" bytes available! programmer error!\");var xhr=new XMLHttpRequest;xhr.open(\"GET\",url,false);if(datalength!==chunkSize)xhr.setRequestHeader(\"Range\",\"bytes=\"+from+\"-\"+to);if(typeof Uint8Array!=\"undefined\")xhr.responseType=\"arraybuffer\";if(xhr.overrideMimeType){xhr.overrideMimeType(\"text/plain; charset=x-user-defined\")}xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error(\"Couldn't load \"+url+\". Status: \"+xhr.status);if(xhr.response!==undefined){return new Uint8Array(xhr.response||[])}else{return intArrayFromString(xhr.responseText||\"\",true)}};var lazyArray=this;lazyArray.setDataGetter(function(chunkNum){var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);if(typeof lazyArray.chunks[chunkNum]===\"undefined\"){lazyArray.chunks[chunkNum]=doXHR(start,end)}if(typeof lazyArray.chunks[chunkNum]===\"undefined\")throw new Error(\"doXHR failed!\");return lazyArray.chunks[chunkNum]});if(usesGzip||!datalength){chunkSize=datalength=1;datalength=this.getter(0).length;chunkSize=datalength;out(\"LazyFiles on gzip forces download of the whole file when length is accessed\")}this._length=datalength;this._chunkSize=chunkSize;this.lengthKnown=true};if(typeof XMLHttpRequest!==\"undefined\"){if(!ENVIRONMENT_IS_WORKER)throw\"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc\";var lazyArray=new LazyUint8Array;Object.defineProperties(lazyArray,{length:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._length}},chunkSize:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize}}});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperties(node,{usedBytes:{get:function(){return this.contents.length}}});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach(function(key){var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){FS.forceLoadFile(node);return fn.apply(null,arguments)}});stream_ops.read=function stream_ops_read(stream,buffer,offset,length,position){FS.forceLoadFile(node);var contents=stream.node.contents;if(position>=contents.length)return 0;var size=Math.min(contents.length-position,length);if(contents.slice){for(var i=0;i<size;i++){buffer[offset+i]=contents[position+i]}}else{for(var i=0;i<size;i++){buffer[offset+i]=contents.get(position+i)}}return size};node.stream_ops=stream_ops;return node},createPreloadedFile:function(parent,name,url,canRead,canWrite,onload,onerror,dontCreateFile,canOwn,preFinish){Browser.init();var fullname=name?PATH_FS.resolve(PATH.join2(parent,name)):parent;var dep=getUniqueRunDependency(\"cp \"+fullname);function processData(byteArray){function finish(byteArray){if(preFinish)preFinish();if(!dontCreateFile){FS.createDataFile(parent,name,byteArray,canRead,canWrite,canOwn)}if(onload)onload();removeRunDependency(dep)}var handled=false;Module[\"preloadPlugins\"].forEach(function(plugin){if(handled)return;if(plugin[\"canHandle\"](fullname)){plugin[\"handle\"](byteArray,fullname,finish,function(){if(onerror)onerror();removeRunDependency(dep)});handled=true}});if(!handled)finish(byteArray)}addRunDependency(dep);if(typeof url==\"string\"){Browser.asyncLoad(url,function(byteArray){processData(byteArray)},onerror)}else{processData(url)}},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return\"EM_FS_\"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:\"FILE_DATA\",saveFilesToDB:function(paths,onload,onerror){onload=onload||function(){};onerror=onerror||function(){};var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=function openRequest_onupgradeneeded(){out(\"creating db\");var db=openRequest.result;db.createObjectStore(FS.DB_STORE_NAME)};openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;var transaction=db.transaction([FS.DB_STORE_NAME],\"readwrite\");var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach(function(path){var putRequest=files.put(FS.analyzePath(path).object.contents,path);putRequest.onsuccess=function putRequest_onsuccess(){ok++;if(ok+fail==total)finish()};putRequest.onerror=function putRequest_onerror(){fail++;if(ok+fail==total)finish()}});transaction.onerror=onerror};openRequest.onerror=onerror},loadFilesFromDB:function(paths,onload,onerror){onload=onload||function(){};onerror=onerror||function(){};var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=onerror;openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;try{var transaction=db.transaction([FS.DB_STORE_NAME],\"readonly\")}catch(e){onerror(e);return}var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach(function(path){var getRequest=files.get(path);getRequest.onsuccess=function getRequest_onsuccess(){if(FS.analyzePath(path).exists){FS.unlink(path)}FS.createDataFile(PATH.dirname(path),PATH.basename(path),getRequest.result,true,true,true);ok++;if(ok+fail==total)finish()};getRequest.onerror=function getRequest_onerror(){fail++;if(ok+fail==total)finish()}});transaction.onerror=onerror};openRequest.onerror=onerror}};Module[\"FS\"]=FS;var SYSCALLS={mappings:{},DEFAULT_POLLMASK:5,umask:511,calculateAt:function(dirfd,path,allowEmpty){if(path[0]===\"/\"){return path}var dir;if(dirfd===-100){dir=FS.cwd()}else{var dirstream=FS.getStream(dirfd);if(!dirstream)throw new FS.ErrnoError(8);dir=dirstream.path}if(path.length==0){if(!allowEmpty){throw new FS.ErrnoError(44)}return dir}return PATH.join2(dir,path)},doStat:function(func,path,buf){try{var stat=func(path)}catch(e){if(e&&e.node&&PATH.normalize(path)!==PATH.normalize(FS.getPath(e.node))){return-54}throw e}HEAP32[buf>>2]=stat.dev;HEAP32[buf+4>>2]=0;HEAP32[buf+8>>2]=stat.ino;HEAP32[buf+12>>2]=stat.mode;HEAP32[buf+16>>2]=stat.nlink;HEAP32[buf+20>>2]=stat.uid;HEAP32[buf+24>>2]=stat.gid;HEAP32[buf+28>>2]=stat.rdev;HEAP32[buf+32>>2]=0;tempI64=[stat.size>>>0,(tempDouble=stat.size,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+40>>2]=tempI64[0],HEAP32[buf+44>>2]=tempI64[1];HEAP32[buf+48>>2]=4096;HEAP32[buf+52>>2]=stat.blocks;HEAP32[buf+56>>2]=stat.atime.getTime()/1e3|0;HEAP32[buf+60>>2]=0;HEAP32[buf+64>>2]=stat.mtime.getTime()/1e3|0;HEAP32[buf+68>>2]=0;HEAP32[buf+72>>2]=stat.ctime.getTime()/1e3|0;HEAP32[buf+76>>2]=0;tempI64=[stat.ino>>>0,(tempDouble=stat.ino,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+80>>2]=tempI64[0],HEAP32[buf+84>>2]=tempI64[1];return 0},doMsync:function(addr,stream,len,flags,offset){var buffer=HEAPU8.slice(addr,addr+len);FS.msync(stream,buffer,offset,len,flags)},doMkdir:function(path,mode){path=PATH.normalize(path);if(path[path.length-1]===\"/\")path=path.substr(0,path.length-1);FS.mkdir(path,mode,0);return 0},doMknod:function(path,mode,dev){switch(mode&61440){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}FS.mknod(path,mode,dev);return 0},doReadlink:function(path,buf,bufsize){if(bufsize<=0)return-28;var ret=FS.readlink(path);var len=Math.min(bufsize,lengthBytesUTF8(ret));var endChar=HEAP8[buf+len];stringToUTF8(ret,buf,bufsize+1);HEAP8[buf+len]=endChar;return len},doAccess:function(path,amode){if(amode&~7){return-28}var node;var lookup=FS.lookupPath(path,{follow:true});node=lookup.node;if(!node){return-44}var perms=\"\";if(amode&4)perms+=\"r\";if(amode&2)perms+=\"w\";if(amode&1)perms+=\"x\";if(perms&&FS.nodePermissions(node,perms)){return-2}return 0},doDup:function(stream,suggestFD){var suggest=FS.getStream(suggestFD);if(suggest)FS.close(suggest);return FS.createStream(stream,suggestFD,suggestFD).fd},doReadv:function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i<iovcnt;i++){var ptr=HEAP32[iov+i*8>>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.read(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr;if(curr<len)break}return ret},doWritev:function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i<iovcnt;i++){var ptr=HEAP32[iov+i*8>>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.write(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr}return ret},varargs:undefined,get:function(){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret},getStreamFromFD:function(fd){var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(8);return stream},get64:function(low,high){return low}};Module[\"SYSCALLS\"]=SYSCALLS;function ___sys__newselect(nfds,readfds,writefds,exceptfds,timeout){try{var total=0;var srcReadLow=readfds?HEAP32[readfds>>2]:0,srcReadHigh=readfds?HEAP32[readfds+4>>2]:0;var srcWriteLow=writefds?HEAP32[writefds>>2]:0,srcWriteHigh=writefds?HEAP32[writefds+4>>2]:0;var srcExceptLow=exceptfds?HEAP32[exceptfds>>2]:0,srcExceptHigh=exceptfds?HEAP32[exceptfds+4>>2]:0;var dstReadLow=0,dstReadHigh=0;var dstWriteLow=0,dstWriteHigh=0;var dstExceptLow=0,dstExceptHigh=0;var allLow=(readfds?HEAP32[readfds>>2]:0)|(writefds?HEAP32[writefds>>2]:0)|(exceptfds?HEAP32[exceptfds>>2]:0);var allHigh=(readfds?HEAP32[readfds+4>>2]:0)|(writefds?HEAP32[writefds+4>>2]:0)|(exceptfds?HEAP32[exceptfds+4>>2]:0);var check=function(fd,low,high,val){return fd<32?low&val:high&val};for(var fd=0;fd<nfds;fd++){var mask=1<<fd%32;if(!check(fd,allLow,allHigh,mask)){continue}var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(8);var flags=SYSCALLS.DEFAULT_POLLMASK;if(stream.stream_ops.poll){flags=stream.stream_ops.poll(stream)}if(flags&1&&check(fd,srcReadLow,srcReadHigh,mask)){fd<32?dstReadLow=dstReadLow|mask:dstReadHigh=dstReadHigh|mask;total++}if(flags&4&&check(fd,srcWriteLow,srcWriteHigh,mask)){fd<32?dstWriteLow=dstWriteLow|mask:dstWriteHigh=dstWriteHigh|mask;total++}if(flags&2&&check(fd,srcExceptLow,srcExceptHigh,mask)){fd<32?dstExceptLow=dstExceptLow|mask:dstExceptHigh=dstExceptHigh|mask;total++}}if(readfds){HEAP32[readfds>>2]=dstReadLow;HEAP32[readfds+4>>2]=dstReadHigh}if(writefds){HEAP32[writefds>>2]=dstWriteLow;HEAP32[writefds+4>>2]=dstWriteHigh}if(exceptfds){HEAP32[exceptfds>>2]=dstExceptLow;HEAP32[exceptfds+4>>2]=dstExceptHigh}return total}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys__newselect\"]=___sys__newselect;var SOCKFS={mount:function(mount){Module[\"websocket\"]=Module[\"websocket\"]&&\"object\"===typeof Module[\"websocket\"]?Module[\"websocket\"]:{};Module[\"websocket\"]._callbacks={};Module[\"websocket\"][\"on\"]=function(event,callback){if(\"function\"===typeof callback){this._callbacks[event]=callback}return this};Module[\"websocket\"].emit=function(event,param){if(\"function\"===typeof this._callbacks[event]){this._callbacks[event].call(this,param)}};return FS.createNode(null,\"/\",16384|511,0)},createSocket:function(family,type,protocol){type&=~526336;var streaming=type==1;if(protocol){assert(streaming==(protocol==6))}var sock={family:family,type:type,protocol:protocol,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops};var name=SOCKFS.nextname();var node=FS.createNode(SOCKFS.root,name,49152,0);node.sock=sock;var stream=FS.createStream({path:name,node:node,flags:2,seekable:false,stream_ops:SOCKFS.stream_ops});sock.stream=stream;return sock},getSocket:function(fd){var stream=FS.getStream(fd);if(!stream||!FS.isSocket(stream.node.mode)){return null}return stream.node.sock},stream_ops:{poll:function(stream){var sock=stream.node.sock;return sock.sock_ops.poll(sock)},ioctl:function(stream,request,varargs){var sock=stream.node.sock;return sock.sock_ops.ioctl(sock,request,varargs)},read:function(stream,buffer,offset,length,position){var sock=stream.node.sock;var msg=sock.sock_ops.recvmsg(sock,length);if(!msg){return 0}buffer.set(msg.buffer,offset);return msg.buffer.length},write:function(stream,buffer,offset,length,position){var sock=stream.node.sock;return sock.sock_ops.sendmsg(sock,buffer,offset,length)},close:function(stream){var sock=stream.node.sock;sock.sock_ops.close(sock)}},nextname:function(){if(!SOCKFS.nextname.current){SOCKFS.nextname.current=0}return\"socket[\"+SOCKFS.nextname.current+++\"]\"},websocket_sock_ops:{createPeer:function(sock,addr,port){var ws;if(typeof addr===\"object\"){ws=addr;addr=null;port=null}if(ws){if(ws._socket){addr=ws._socket.remoteAddress;port=ws._socket.remotePort}else{var result=/ws[s]?:\\/\\/([^:]+):(\\d+)/.exec(ws.url);if(!result){throw new Error(\"WebSocket URL must be in the format ws(s)://address:port\")}addr=result[1];port=parseInt(result[2],10)}}else{try{var runtimeConfig=Module[\"websocket\"]&&\"object\"===typeof Module[\"websocket\"];var url=\"ws:#\".replace(\"#\",\"//\");if(runtimeConfig){if(\"string\"===typeof Module[\"websocket\"][\"url\"]){url=Module[\"websocket\"][\"url\"]}}if(url===\"ws://\"||url===\"wss://\"){var parts=addr.split(\"/\");url=url+parts[0]+\":\"+port+\"/\"+parts.slice(1).join(\"/\")}var subProtocols=\"binary\";if(runtimeConfig){if(\"string\"===typeof Module[\"websocket\"][\"subprotocol\"]){subProtocols=Module[\"websocket\"][\"subprotocol\"]}}var opts=undefined;if(subProtocols!==\"null\"){subProtocols=subProtocols.replace(/^ +| +$/g,\"\").split(/ *, */);opts=ENVIRONMENT_IS_NODE?{\"protocol\":subProtocols.toString()}:subProtocols}if(runtimeConfig&&null===Module[\"websocket\"][\"subprotocol\"]){subProtocols=\"null\";opts=undefined}var WebSocketConstructor;if(ENVIRONMENT_IS_NODE){WebSocketConstructor=require(\"ws\")}else{WebSocketConstructor=WebSocket}ws=new WebSocketConstructor(url,opts);ws.binaryType=\"arraybuffer\"}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EHOSTUNREACH)}}var peer={addr:addr,port:port,socket:ws,dgram_send_queue:[]};SOCKFS.websocket_sock_ops.addPeer(sock,peer);SOCKFS.websocket_sock_ops.handlePeerEvents(sock,peer);if(sock.type===2&&typeof sock.sport!==\"undefined\"){peer.dgram_send_queue.push(new Uint8Array([255,255,255,255,\"p\".charCodeAt(0),\"o\".charCodeAt(0),\"r\".charCodeAt(0),\"t\".charCodeAt(0),(sock.sport&65280)>>8,sock.sport&255]))}return peer},getPeer:function(sock,addr,port){return sock.peers[addr+\":\"+port]},addPeer:function(sock,peer){sock.peers[peer.addr+\":\"+peer.port]=peer},removePeer:function(sock,peer){delete sock.peers[peer.addr+\":\"+peer.port]},handlePeerEvents:function(sock,peer){var first=true;var handleOpen=function(){Module[\"websocket\"].emit(\"open\",sock.stream.fd);try{var queued=peer.dgram_send_queue.shift();while(queued){peer.socket.send(queued);queued=peer.dgram_send_queue.shift()}}catch(e){peer.socket.close()}};function handleMessage(data){if(typeof data===\"string\"){var encoder=new TextEncoder;data=encoder.encode(data)}else{assert(data.byteLength!==undefined);if(data.byteLength==0){return}else{data=new Uint8Array(data)}}var wasfirst=first;first=false;if(wasfirst&&data.length===10&&data[0]===255&&data[1]===255&&data[2]===255&&data[3]===255&&data[4]===\"p\".charCodeAt(0)&&data[5]===\"o\".charCodeAt(0)&&data[6]===\"r\".charCodeAt(0)&&data[7]===\"t\".charCodeAt(0)){var newport=data[8]<<8|data[9];SOCKFS.websocket_sock_ops.removePeer(sock,peer);peer.port=newport;SOCKFS.websocket_sock_ops.addPeer(sock,peer);return}sock.recv_queue.push({addr:peer.addr,port:peer.port,data:data});Module[\"websocket\"].emit(\"message\",sock.stream.fd)}if(ENVIRONMENT_IS_NODE){peer.socket.on(\"open\",handleOpen);peer.socket.on(\"message\",function(data,flags){if(!flags.binary){return}handleMessage(new Uint8Array(data).buffer)});peer.socket.on(\"close\",function(){Module[\"websocket\"].emit(\"close\",sock.stream.fd)});peer.socket.on(\"error\",function(error){sock.error=ERRNO_CODES.ECONNREFUSED;Module[\"websocket\"].emit(\"error\",[sock.stream.fd,sock.error,\"ECONNREFUSED: Connection refused\"])})}else{peer.socket.onopen=handleOpen;peer.socket.onclose=function(){Module[\"websocket\"].emit(\"close\",sock.stream.fd)};peer.socket.onmessage=function peer_socket_onmessage(event){handleMessage(event.data)};peer.socket.onerror=function(error){sock.error=ERRNO_CODES.ECONNREFUSED;Module[\"websocket\"].emit(\"error\",[sock.stream.fd,sock.error,\"ECONNREFUSED: Connection refused\"])}}},poll:function(sock){if(sock.type===1&&sock.server){return sock.pending.length?64|1:0}var mask=0;var dest=sock.type===1?SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport):null;if(sock.recv_queue.length||!dest||dest&&dest.socket.readyState===dest.socket.CLOSING||dest&&dest.socket.readyState===dest.socket.CLOSED){mask|=64|1}if(!dest||dest&&dest.socket.readyState===dest.socket.OPEN){mask|=4}if(dest&&dest.socket.readyState===dest.socket.CLOSING||dest&&dest.socket.readyState===dest.socket.CLOSED){mask|=16}return mask},ioctl:function(sock,request,arg){switch(request){case 21531:var bytes=0;if(sock.recv_queue.length){bytes=sock.recv_queue[0].data.length}HEAP32[arg>>2]=bytes;return 0;default:return ERRNO_CODES.EINVAL}},close:function(sock){if(sock.server){try{sock.server.close()}catch(e){}sock.server=null}var peers=Object.keys(sock.peers);for(var i=0;i<peers.length;i++){var peer=sock.peers[peers[i]];try{peer.socket.close()}catch(e){}SOCKFS.websocket_sock_ops.removePeer(sock,peer)}return 0},bind:function(sock,addr,port){if(typeof sock.saddr!==\"undefined\"||typeof sock.sport!==\"undefined\"){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}sock.saddr=addr;sock.sport=port;if(sock.type===2){if(sock.server){sock.server.close();sock.server=null}try{sock.sock_ops.listen(sock,0)}catch(e){if(!(e instanceof FS.ErrnoError))throw e;if(e.errno!==ERRNO_CODES.EOPNOTSUPP)throw e}}},connect:function(sock,addr,port){if(sock.server){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}if(typeof sock.daddr!==\"undefined\"&&typeof sock.dport!==\"undefined\"){var dest=SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport);if(dest){if(dest.socket.readyState===dest.socket.CONNECTING){throw new FS.ErrnoError(ERRNO_CODES.EALREADY)}else{throw new FS.ErrnoError(ERRNO_CODES.EISCONN)}}}var peer=SOCKFS.websocket_sock_ops.createPeer(sock,addr,port);sock.daddr=peer.addr;sock.dport=peer.port;throw new FS.ErrnoError(ERRNO_CODES.EINPROGRESS)},listen:function(sock,backlog){if(!ENVIRONMENT_IS_NODE){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}if(sock.server){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var WebSocketServer=require(\"ws\").Server;var host=sock.saddr;sock.server=new WebSocketServer({host:host,port:sock.sport});Module[\"websocket\"].emit(\"listen\",sock.stream.fd);sock.server.on(\"connection\",function(ws){if(sock.type===1){var newsock=SOCKFS.createSocket(sock.family,sock.type,sock.protocol);var peer=SOCKFS.websocket_sock_ops.createPeer(newsock,ws);newsock.daddr=peer.addr;newsock.dport=peer.port;sock.pending.push(newsock);Module[\"websocket\"].emit(\"connection\",newsock.stream.fd)}else{SOCKFS.websocket_sock_ops.createPeer(sock,ws);Module[\"websocket\"].emit(\"connection\",sock.stream.fd)}});sock.server.on(\"closed\",function(){Module[\"websocket\"].emit(\"close\",sock.stream.fd);sock.server=null});sock.server.on(\"error\",function(error){sock.error=ERRNO_CODES.EHOSTUNREACH;Module[\"websocket\"].emit(\"error\",[sock.stream.fd,sock.error,\"EHOSTUNREACH: Host is unreachable\"])})},accept:function(listensock){if(!listensock.server){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var newsock=listensock.pending.shift();newsock.stream.flags=listensock.stream.flags;return newsock},getname:function(sock,peer){var addr,port;if(peer){if(sock.daddr===undefined||sock.dport===undefined){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}addr=sock.daddr;port=sock.dport}else{addr=sock.saddr||0;port=sock.sport||0}return{addr:addr,port:port}},sendmsg:function(sock,buffer,offset,length,addr,port){if(sock.type===2){if(addr===undefined||port===undefined){addr=sock.daddr;port=sock.dport}if(addr===undefined||port===undefined){throw new FS.ErrnoError(ERRNO_CODES.EDESTADDRREQ)}}else{addr=sock.daddr;port=sock.dport}var dest=SOCKFS.websocket_sock_ops.getPeer(sock,addr,port);if(sock.type===1){if(!dest||dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}else if(dest.socket.readyState===dest.socket.CONNECTING){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}}if(ArrayBuffer.isView(buffer)){offset+=buffer.byteOffset;buffer=buffer.buffer}var data;data=buffer.slice(offset,offset+length);if(sock.type===2){if(!dest||dest.socket.readyState!==dest.socket.OPEN){if(!dest||dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){dest=SOCKFS.websocket_sock_ops.createPeer(sock,addr,port)}dest.dgram_send_queue.push(data);return length}}try{dest.socket.send(data);return length}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}},recvmsg:function(sock,length){if(sock.type===1&&sock.server){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}var queued=sock.recv_queue.shift();if(!queued){if(sock.type===1){var dest=SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport);if(!dest){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}else if(dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){return null}else{throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}}else{throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}}var queuedLength=queued.data.byteLength||queued.data.length;var queuedOffset=queued.data.byteOffset||0;var queuedBuffer=queued.data.buffer||queued.data;var bytesRead=Math.min(length,queuedLength);var res={buffer:new Uint8Array(queuedBuffer,queuedOffset,bytesRead),addr:queued.addr,port:queued.port};if(sock.type===1&&bytesRead<queuedLength){var bytesRemaining=queuedLength-bytesRead;queued.data=new Uint8Array(queuedBuffer,queuedOffset+bytesRead,bytesRemaining);sock.recv_queue.unshift(queued)}return res}}};Module[\"SOCKFS\"]=SOCKFS;function getSocketFromFD(fd){var socket=SOCKFS.getSocket(fd);if(!socket)throw new FS.ErrnoError(8);return socket}Module[\"getSocketFromFD\"]=getSocketFromFD;var Sockets={BUFFER_SIZE:10240,MAX_BUFFER_SIZE:10485760,nextFd:1,fds:{},nextport:1,maxport:65535,peer:null,connections:{},portmap:{},localAddr:4261412874,addrPool:[33554442,50331658,67108874,83886090,100663306,117440522,134217738,150994954,167772170,184549386,201326602,218103818,234881034]};Module[\"Sockets\"]=Sockets;function inetPton4(str){var b=str.split(\".\");for(var i=0;i<4;i++){var tmp=Number(b[i]);if(isNaN(tmp))return null;b[i]=tmp}return(b[0]|b[1]<<8|b[2]<<16|b[3]<<24)>>>0}Module[\"inetPton4\"]=inetPton4;function jstoi_q(str){return parseInt(str)}Module[\"jstoi_q\"]=jstoi_q;function inetPton6(str){var words;var w,offset,z,i;var valid6regx=/^((?=.*::)(?!.*::.+::)(::)?([\\dA-F]{1,4}:(:|\\b)|){5}|([\\dA-F]{1,4}:){6})((([\\dA-F]{1,4}((?!\\3)::|:\\b|$))|(?!\\2\\3)){2}|(((2[0-4]|1\\d|[1-9])?\\d|25[0-5])\\.?\\b){4})$/i;var parts=[];if(!valid6regx.test(str)){return null}if(str===\"::\"){return[0,0,0,0,0,0,0,0]}if(str.indexOf(\"::\")===0){str=str.replace(\"::\",\"Z:\")}else{str=str.replace(\"::\",\":Z:\")}if(str.indexOf(\".\")>0){str=str.replace(new RegExp(\"[.]\",\"g\"),\":\");words=str.split(\":\");words[words.length-4]=jstoi_q(words[words.length-4])+jstoi_q(words[words.length-3])*256;words[words.length-3]=jstoi_q(words[words.length-2])+jstoi_q(words[words.length-1])*256;words=words.slice(0,words.length-2)}else{words=str.split(\":\")}offset=0;z=0;for(w=0;w<words.length;w++){if(typeof words[w]===\"string\"){if(words[w]===\"Z\"){for(z=0;z<8-words.length+1;z++){parts[w+z]=0}offset=z-1}else{parts[w+offset]=_htons(parseInt(words[w],16))}}else{parts[w+offset]=words[w]}}return[parts[1]<<16|parts[0],parts[3]<<16|parts[2],parts[5]<<16|parts[4],parts[7]<<16|parts[6]]}Module[\"inetPton6\"]=inetPton6;function writeSockaddr(sa,family,addr,port,addrlen){switch(family){case 2:addr=inetPton4(addr);if(addrlen){HEAP32[addrlen>>2]=16}HEAP16[sa>>1]=family;HEAP32[sa+4>>2]=addr;HEAP16[sa+2>>1]=_htons(port);tempI64=[0>>>0,(tempDouble=0,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[sa+8>>2]=tempI64[0],HEAP32[sa+12>>2]=tempI64[1];break;case 10:addr=inetPton6(addr);if(addrlen){HEAP32[addrlen>>2]=28}HEAP32[sa>>2]=family;HEAP32[sa+8>>2]=addr[0];HEAP32[sa+12>>2]=addr[1];HEAP32[sa+16>>2]=addr[2];HEAP32[sa+20>>2]=addr[3];HEAP16[sa+2>>1]=_htons(port);HEAP32[sa+4>>2]=0;HEAP32[sa+24>>2]=0;break;default:return 5}return 0}Module[\"writeSockaddr\"]=writeSockaddr;var DNS={address_map:{id:1,addrs:{},names:{}},lookup_name:function(name){var res=inetPton4(name);if(res!==null){return name}res=inetPton6(name);if(res!==null){return name}var addr;if(DNS.address_map.addrs[name]){addr=DNS.address_map.addrs[name]}else{var id=DNS.address_map.id++;assert(id<65535,\"exceeded max address mappings of 65535\");addr=\"172.29.\"+(id&255)+\".\"+(id&65280);DNS.address_map.names[addr]=name;DNS.address_map.addrs[name]=addr}return addr},lookup_addr:function(addr){if(DNS.address_map.names[addr]){return DNS.address_map.names[addr]}return null}};Module[\"DNS\"]=DNS;function ___sys_accept4(fd,addr,addrlen,flags){try{var sock=getSocketFromFD(fd);var newsock=sock.sock_ops.accept(sock);if(addr){var errno=writeSockaddr(addr,newsock.family,DNS.lookup_name(newsock.daddr),newsock.dport,addrlen)}return newsock.stream.fd}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_accept4\"]=___sys_accept4;function ___sys_access(path,amode){try{path=SYSCALLS.getStr(path);return SYSCALLS.doAccess(path,amode)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_access\"]=___sys_access;function ___sys_acct(filename){return-52}Module[\"___sys_acct\"]=___sys_acct;function inetNtop4(addr){return(addr&255)+\".\"+(addr>>8&255)+\".\"+(addr>>16&255)+\".\"+(addr>>24&255)}Module[\"inetNtop4\"]=inetNtop4;function inetNtop6(ints){var str=\"\";var word=0;var longest=0;var lastzero=0;var zstart=0;var len=0;var i=0;var parts=[ints[0]&65535,ints[0]>>16,ints[1]&65535,ints[1]>>16,ints[2]&65535,ints[2]>>16,ints[3]&65535,ints[3]>>16];var hasipv4=true;var v4part=\"\";for(i=0;i<5;i++){if(parts[i]!==0){hasipv4=false;break}}if(hasipv4){v4part=inetNtop4(parts[6]|parts[7]<<16);if(parts[5]===-1){str=\"::ffff:\";str+=v4part;return str}if(parts[5]===0){str=\"::\";if(v4part===\"0.0.0.0\")v4part=\"\";if(v4part===\"0.0.0.1\")v4part=\"1\";str+=v4part;return str}}for(word=0;word<8;word++){if(parts[word]===0){if(word-lastzero>1){len=0}lastzero=word;len++}if(len>longest){longest=len;zstart=word-longest+1}}for(word=0;word<8;word++){if(longest>1){if(parts[word]===0&&word>=zstart&&word<zstart+longest){if(word===zstart){str+=\":\";if(zstart===0)str+=\":\"}continue}}str+=Number(_ntohs(parts[word]&65535)).toString(16);str+=word<7?\":\":\"\"}return str}Module[\"inetNtop6\"]=inetNtop6;function readSockaddr(sa,salen){var family=HEAP16[sa>>1];var port=_ntohs(HEAPU16[sa+2>>1]);var addr;switch(family){case 2:if(salen!==16){return{errno:28}}addr=HEAP32[sa+4>>2];addr=inetNtop4(addr);break;case 10:if(salen!==28){return{errno:28}}addr=[HEAP32[sa+8>>2],HEAP32[sa+12>>2],HEAP32[sa+16>>2],HEAP32[sa+20>>2]];addr=inetNtop6(addr);break;default:return{errno:5}}return{family:family,addr:addr,port:port}}Module[\"readSockaddr\"]=readSockaddr;function getSocketAddress(addrp,addrlen,allowNull){if(allowNull&&addrp===0)return null;var info=readSockaddr(addrp,addrlen);if(info.errno)throw new FS.ErrnoError(info.errno);info.addr=DNS.lookup_addr(info.addr)||info.addr;return info}Module[\"getSocketAddress\"]=getSocketAddress;function ___sys_bind(fd,addr,addrlen){try{var sock=getSocketFromFD(fd);var info=getSocketAddress(addr,addrlen);sock.sock_ops.bind(sock,info.addr,info.port);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_bind\"]=___sys_bind;function ___sys_chdir(path){try{path=SYSCALLS.getStr(path);FS.chdir(path);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_chdir\"]=___sys_chdir;function ___sys_chmod(path,mode){try{path=SYSCALLS.getStr(path);FS.chmod(path,mode);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_chmod\"]=___sys_chmod;function ___sys_chown32(path,owner,group){try{path=SYSCALLS.getStr(path);FS.chown(path,owner,group);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_chown32\"]=___sys_chown32;function ___sys_connect(fd,addr,addrlen){try{var sock=getSocketFromFD(fd);var info=getSocketAddress(addr,addrlen);sock.sock_ops.connect(sock,info.addr,info.port);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_connect\"]=___sys_connect;function ___sys_dup(fd){try{var old=SYSCALLS.getStreamFromFD(fd);return FS.createStream(old,0).fd}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_dup\"]=___sys_dup;function ___sys_dup2(oldfd,suggestFD){try{var old=SYSCALLS.getStreamFromFD(oldfd);if(old.fd===suggestFD)return suggestFD;return SYSCALLS.doDup(old,suggestFD)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_dup2\"]=___sys_dup2;function ___sys_dup3(fd,suggestFD,flags){try{var old=SYSCALLS.getStreamFromFD(fd);if(old.fd===suggestFD)return-28;return SYSCALLS.doDup(old,suggestFD)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_dup3\"]=___sys_dup3;function ___sys_fadvise64_64(fd,offset,len,advice){return 0}Module[\"___sys_fadvise64_64\"]=___sys_fadvise64_64;function ___sys_fallocate(fd,mode,off_low,off_high,len_low,len_high){try{var stream=SYSCALLS.getStreamFromFD(fd);var offset=SYSCALLS.get64(off_low,off_high);var len=SYSCALLS.get64(len_low,len_high);FS.allocate(stream,offset,len);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_fallocate\"]=___sys_fallocate;function ___sys_fchdir(fd){try{var stream=SYSCALLS.getStreamFromFD(fd);FS.chdir(stream.path);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_fchdir\"]=___sys_fchdir;function ___sys_fchmod(fd,mode){try{FS.fchmod(fd,mode);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_fchmod\"]=___sys_fchmod;function ___sys_fchmodat(dirfd,path,mode,varargs){SYSCALLS.varargs=varargs;try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);FS.chmod(path,mode);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_fchmodat\"]=___sys_fchmodat;function ___sys_fchown32(fd,owner,group){try{FS.fchown(fd,owner,group);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_fchown32\"]=___sys_fchown32;function ___sys_fchownat(dirfd,path,owner,group,flags){try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);FS.chown(path,owner,group);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_fchownat\"]=___sys_fchownat;function ___sys_fcntl64(fd,cmd,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(fd);switch(cmd){case 0:{var arg=SYSCALLS.get();if(arg<0){return-28}var newStream;newStream=FS.createStream(stream,arg);return newStream.fd}case 1:case 2:return 0;case 3:return stream.flags;case 4:{var arg=SYSCALLS.get();stream.flags|=arg;return 0}case 12:{var arg=SYSCALLS.get();var offset=0;HEAP16[arg+offset>>1]=2;return 0}case 13:case 14:return 0;case 16:case 8:return-28;case 9:setErrNo(28);return-1;default:{return-28}}}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_fcntl64\"]=___sys_fcntl64;function ___sys_fdatasync(fd){try{var stream=SYSCALLS.getStreamFromFD(fd);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_fdatasync\"]=___sys_fdatasync;function ___sys_fstat64(fd,buf){try{var stream=SYSCALLS.getStreamFromFD(fd);return SYSCALLS.doStat(FS.stat,stream.path,buf)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_fstat64\"]=___sys_fstat64;function ___sys_fstatat64(dirfd,path,buf,flags){try{path=SYSCALLS.getStr(path);var nofollow=flags&256;var allowEmpty=flags&4096;flags=flags&~4352;path=SYSCALLS.calculateAt(dirfd,path,allowEmpty);return SYSCALLS.doStat(nofollow?FS.lstat:FS.stat,path,buf)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_fstatat64\"]=___sys_fstatat64;function ___sys_fstatfs64(fd,size,buf){try{var stream=SYSCALLS.getStreamFromFD(fd);return ___sys_statfs64(0,size,buf)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_fstatfs64\"]=___sys_fstatfs64;function ___sys_ftruncate64(fd,zero,low,high){try{var length=SYSCALLS.get64(low,high);FS.ftruncate(fd,length);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_ftruncate64\"]=___sys_ftruncate64;function ___sys_getcwd(buf,size){try{if(size===0)return-28;var cwd=FS.cwd();var cwdLengthInBytes=lengthBytesUTF8(cwd);if(size<cwdLengthInBytes+1)return-68;stringToUTF8(cwd,buf,size);return buf}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_getcwd\"]=___sys_getcwd;function ___sys_getdents64(fd,dirp,count){try{var stream=SYSCALLS.getStreamFromFD(fd);if(!stream.getdents){stream.getdents=FS.readdir(stream.path)}var struct_size=280;var pos=0;var off=FS.llseek(stream,0,1);var idx=Math.floor(off/struct_size);while(idx<stream.getdents.length&&pos+struct_size<=count){var id;var type;var name=stream.getdents[idx];if(name[0]===\".\"){id=1;type=4}else{var child=FS.lookupNode(stream.node,name);id=child.id;type=FS.isChrdev(child.mode)?2:FS.isDir(child.mode)?4:FS.isLink(child.mode)?10:8}tempI64=[id>>>0,(tempDouble=id,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[dirp+pos>>2]=tempI64[0],HEAP32[dirp+pos+4>>2]=tempI64[1];tempI64=[(idx+1)*struct_size>>>0,(tempDouble=(idx+1)*struct_size,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[dirp+pos+8>>2]=tempI64[0],HEAP32[dirp+pos+12>>2]=tempI64[1];HEAP16[dirp+pos+16>>1]=280;HEAP8[dirp+pos+18>>0]=type;stringToUTF8(name,dirp+pos+19,256);pos+=struct_size;idx+=1}FS.llseek(stream,idx*struct_size,0);return pos}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_getdents64\"]=___sys_getdents64;function ___sys_getegid32(){return 0}Module[\"___sys_getegid32\"]=___sys_getegid32;___sys_getegid32.sig=\"i\";function ___sys_geteuid32(){return ___sys_getegid32()}Module[\"___sys_geteuid32\"]=___sys_geteuid32;___sys_geteuid32.sig=\"i\";function ___sys_getgid32(){return ___sys_getegid32()}Module[\"___sys_getgid32\"]=___sys_getgid32;___sys_getgid32.sig=\"i\";function ___sys_getgroups32(size,list){if(size<1)return-28;HEAP32[list>>2]=0;return 1}Module[\"___sys_getgroups32\"]=___sys_getgroups32;function ___sys_getpeername(fd,addr,addrlen){try{var sock=getSocketFromFD(fd);if(!sock.daddr){return-53}var errno=writeSockaddr(addr,sock.family,DNS.lookup_name(sock.daddr),sock.dport,addrlen);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_getpeername\"]=___sys_getpeername;function ___sys_getpgid(pid){if(pid&&pid!==42)return-71;return 42}Module[\"___sys_getpgid\"]=___sys_getpgid;function ___sys_getpid(){return 42}Module[\"___sys_getpid\"]=___sys_getpid;function ___sys_getppid(){return 1}Module[\"___sys_getppid\"]=___sys_getppid;function ___sys_getpriority(){return 0}Module[\"___sys_getpriority\"]=___sys_getpriority;function ___sys_getresgid32(ruid,euid,suid){HEAP32[ruid>>2]=0;HEAP32[euid>>2]=0;HEAP32[suid>>2]=0;return 0}Module[\"___sys_getresgid32\"]=___sys_getresgid32;___sys_getresgid32.sig=\"iiii\";function ___sys_getresuid32(a0,a1,a2){return ___sys_getresgid32(a0,a1,a2)}Module[\"___sys_getresuid32\"]=___sys_getresuid32;___sys_getresuid32.sig=\"iiii\";function ___sys_getrusage(who,usage){try{_memset(usage,0,136);HEAP32[usage>>2]=1;HEAP32[usage+4>>2]=2;HEAP32[usage+8>>2]=3;HEAP32[usage+12>>2]=4;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_getrusage\"]=___sys_getrusage;function ___sys_getsid(pid){if(pid&&pid!==42)return-71;return 42}Module[\"___sys_getsid\"]=___sys_getsid;function ___sys_getsockname(fd,addr,addrlen){try{err(\"__sys_getsockname \"+fd);var sock=getSocketFromFD(fd);var errno=writeSockaddr(addr,sock.family,DNS.lookup_name(sock.saddr||\"0.0.0.0\"),sock.sport,addrlen);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_getsockname\"]=___sys_getsockname;function ___sys_getsockopt(fd,level,optname,optval,optlen){try{var sock=getSocketFromFD(fd);if(level===1){if(optname===4){HEAP32[optval>>2]=sock.error;HEAP32[optlen>>2]=4;sock.error=null;return 0}}return-50}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_getsockopt\"]=___sys_getsockopt;function ___sys_getuid32(){return ___sys_getegid32()}Module[\"___sys_getuid32\"]=___sys_getuid32;___sys_getuid32.sig=\"i\";function ___sys_ioctl(fd,op,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(fd);switch(op){case 21509:case 21505:{if(!stream.tty)return-59;return 0}case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:{if(!stream.tty)return-59;return 0}case 21519:{if(!stream.tty)return-59;var argp=SYSCALLS.get();HEAP32[argp>>2]=0;return 0}case 21520:{if(!stream.tty)return-59;return-28}case 21531:{var argp=SYSCALLS.get();return FS.ioctl(stream,op,argp)}case 21523:{if(!stream.tty)return-59;return 0}case 21524:{if(!stream.tty)return-59;return 0}default:abort(\"bad ioctl syscall \"+op)}}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_ioctl\"]=___sys_ioctl;function ___sys_lchown32(path,owner,group){try{path=SYSCALLS.getStr(path);FS.chown(path,owner,group);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_lchown32\"]=___sys_lchown32;function ___sys_link(oldpath,newpath){return-34}Module[\"___sys_link\"]=___sys_link;function ___sys_linkat(olddirfd,oldpath,newdirfd,newpath,flags){return-34}Module[\"___sys_linkat\"]=___sys_linkat;function ___sys_listen(fd,backlog){try{var sock=getSocketFromFD(fd);sock.sock_ops.listen(sock,backlog);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_listen\"]=___sys_listen;function ___sys_lstat64(path,buf){try{path=SYSCALLS.getStr(path);return SYSCALLS.doStat(FS.lstat,path,buf)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_lstat64\"]=___sys_lstat64;function ___sys_madvise1(addr,length,advice){return 0}Module[\"___sys_madvise1\"]=___sys_madvise1;function ___sys_mincore(addr,length,vec){return-52}Module[\"___sys_mincore\"]=___sys_mincore;function ___sys_mkdir(path,mode){try{path=SYSCALLS.getStr(path);return SYSCALLS.doMkdir(path,mode)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_mkdir\"]=___sys_mkdir;function ___sys_mkdirat(dirfd,path,mode){try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);return SYSCALLS.doMkdir(path,mode)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_mkdirat\"]=___sys_mkdirat;function ___sys_mknod(path,mode,dev){try{path=SYSCALLS.getStr(path);return SYSCALLS.doMknod(path,mode,dev)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_mknod\"]=___sys_mknod;function ___sys_mknodat(dirfd,path,mode,dev){try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);return SYSCALLS.doMknod(path,mode,dev)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_mknodat\"]=___sys_mknodat;function ___sys_mlock(addr,len){return 0}Module[\"___sys_mlock\"]=___sys_mlock;___sys_mlock.sig=\"iii\";function ___sys_mlockall(flags){return 0}Module[\"___sys_mlockall\"]=___sys_mlockall;___sys_mlockall.sig=\"ii\";function syscallMmap2(addr,len,prot,flags,fd,off){off<<=12;var ptr;var allocated=false;if((flags&16)!==0&&addr%16384!==0){return-28}if((flags&32)!==0){ptr=_memalign(16384,len);if(!ptr)return-48;_memset(ptr,0,len);allocated=true}else{var info=FS.getStream(fd);if(!info)return-8;var res=FS.mmap(info,addr,len,off,prot,flags);ptr=res.ptr;allocated=res.allocated}SYSCALLS.mappings[ptr]={malloc:ptr,len:len,allocated:allocated,fd:fd,prot:prot,flags:flags,offset:off};return ptr}Module[\"syscallMmap2\"]=syscallMmap2;function ___sys_mmap2(addr,len,prot,flags,fd,off){try{return syscallMmap2(addr,len,prot,flags,fd,off)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_mmap2\"]=___sys_mmap2;function ___sys_mprotect(addr,len,size){return 0}Module[\"___sys_mprotect\"]=___sys_mprotect;function ___sys_mremap(old_addr,old_size,new_size,flags){return-48}Module[\"___sys_mremap\"]=___sys_mremap;function ___sys_msync(addr,len,flags){try{var info=SYSCALLS.mappings[addr];if(!info)return 0;SYSCALLS.doMsync(addr,FS.getStream(info.fd),len,info.flags,0);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_msync\"]=___sys_msync;function ___sys_munlock(addr,len){return 0}Module[\"___sys_munlock\"]=___sys_munlock;___sys_munlock.sig=\"iii\";function ___sys_munlockall(){return 0}Module[\"___sys_munlockall\"]=___sys_munlockall;___sys_munlockall.sig=\"i\";function syscallMunmap(addr,len){if((addr|0)===-1||len===0){return-28}var info=SYSCALLS.mappings[addr];if(!info)return 0;if(len===info.len){var stream=FS.getStream(info.fd);if(stream){if(info.prot&2){SYSCALLS.doMsync(addr,stream,len,info.flags,info.offset)}FS.munmap(stream)}SYSCALLS.mappings[addr]=null;if(info.allocated){_free(info.malloc)}}return 0}Module[\"syscallMunmap\"]=syscallMunmap;function ___sys_munmap(addr,len){try{return syscallMunmap(addr,len)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_munmap\"]=___sys_munmap;function ___sys_nice(inc){return-63}Module[\"___sys_nice\"]=___sys_nice;function ___sys_open(path,flags,varargs){SYSCALLS.varargs=varargs;try{var pathname=SYSCALLS.getStr(path);var mode=varargs?SYSCALLS.get():0;var stream=FS.open(pathname,flags,mode);return stream.fd}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_open\"]=___sys_open;function ___sys_openat(dirfd,path,flags,varargs){SYSCALLS.varargs=varargs;try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);var mode=varargs?SYSCALLS.get():0;return FS.open(path,flags,mode).fd}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_openat\"]=___sys_openat;function ___sys_pause(){return-27}Module[\"___sys_pause\"]=___sys_pause;var PIPEFS={BUCKET_BUFFER_SIZE:8192,mount:function(mount){return FS.createNode(null,\"/\",16384|511,0)},createPipe:function(){var pipe={buckets:[]};pipe.buckets.push({buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:0,roffset:0});var rName=PIPEFS.nextname();var wName=PIPEFS.nextname();var rNode=FS.createNode(PIPEFS.root,rName,4096,0);var wNode=FS.createNode(PIPEFS.root,wName,4096,0);rNode.pipe=pipe;wNode.pipe=pipe;var readableStream=FS.createStream({path:rName,node:rNode,flags:0,seekable:false,stream_ops:PIPEFS.stream_ops});rNode.stream=readableStream;var writableStream=FS.createStream({path:wName,node:wNode,flags:1,seekable:false,stream_ops:PIPEFS.stream_ops});wNode.stream=writableStream;return{readable_fd:readableStream.fd,writable_fd:writableStream.fd}},stream_ops:{poll:function(stream){var pipe=stream.node.pipe;if((stream.flags&2097155)===1){return 256|4}else{if(pipe.buckets.length>0){for(var i=0;i<pipe.buckets.length;i++){var bucket=pipe.buckets[i];if(bucket.offset-bucket.roffset>0){return 64|1}}}}return 0},ioctl:function(stream,request,varargs){return ERRNO_CODES.EINVAL},fsync:function(stream){return ERRNO_CODES.EINVAL},read:function(stream,buffer,offset,length,position){var pipe=stream.node.pipe;var currentLength=0;for(var i=0;i<pipe.buckets.length;i++){var bucket=pipe.buckets[i];currentLength+=bucket.offset-bucket.roffset}assert(buffer instanceof ArrayBuffer||ArrayBuffer.isView(buffer));var data=buffer.subarray(offset,offset+length);if(length<=0){return 0}if(currentLength==0){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}var toRead=Math.min(currentLength,length);var totalRead=toRead;var toRemove=0;for(var i=0;i<pipe.buckets.length;i++){var currBucket=pipe.buckets[i];var bucketSize=currBucket.offset-currBucket.roffset;if(toRead<=bucketSize){var tmpSlice=currBucket.buffer.subarray(currBucket.roffset,currBucket.offset);if(toRead<bucketSize){tmpSlice=tmpSlice.subarray(0,toRead);currBucket.roffset+=toRead}else{toRemove++}data.set(tmpSlice);break}else{var tmpSlice=currBucket.buffer.subarray(currBucket.roffset,currBucket.offset);data.set(tmpSlice);data=data.subarray(tmpSlice.byteLength);toRead-=tmpSlice.byteLength;toRemove++}}if(toRemove&&toRemove==pipe.buckets.length){toRemove--;pipe.buckets[toRemove].offset=0;pipe.buckets[toRemove].roffset=0}pipe.buckets.splice(0,toRemove);return totalRead},write:function(stream,buffer,offset,length,position){var pipe=stream.node.pipe;assert(buffer instanceof ArrayBuffer||ArrayBuffer.isView(buffer));var data=buffer.subarray(offset,offset+length);var dataLen=data.byteLength;if(dataLen<=0){return 0}var currBucket=null;if(pipe.buckets.length==0){currBucket={buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:0,roffset:0};pipe.buckets.push(currBucket)}else{currBucket=pipe.buckets[pipe.buckets.length-1]}assert(currBucket.offset<=PIPEFS.BUCKET_BUFFER_SIZE);var freeBytesInCurrBuffer=PIPEFS.BUCKET_BUFFER_SIZE-currBucket.offset;if(freeBytesInCurrBuffer>=dataLen){currBucket.buffer.set(data,currBucket.offset);currBucket.offset+=dataLen;return dataLen}else if(freeBytesInCurrBuffer>0){currBucket.buffer.set(data.subarray(0,freeBytesInCurrBuffer),currBucket.offset);currBucket.offset+=freeBytesInCurrBuffer;data=data.subarray(freeBytesInCurrBuffer,data.byteLength)}var numBuckets=data.byteLength/PIPEFS.BUCKET_BUFFER_SIZE|0;var remElements=data.byteLength%PIPEFS.BUCKET_BUFFER_SIZE;for(var i=0;i<numBuckets;i++){var newBucket={buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:PIPEFS.BUCKET_BUFFER_SIZE,roffset:0};pipe.buckets.push(newBucket);newBucket.buffer.set(data.subarray(0,PIPEFS.BUCKET_BUFFER_SIZE));data=data.subarray(PIPEFS.BUCKET_BUFFER_SIZE,data.byteLength)}if(remElements>0){var newBucket={buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:data.byteLength,roffset:0};pipe.buckets.push(newBucket);newBucket.buffer.set(data)}return dataLen},close:function(stream){var pipe=stream.node.pipe;pipe.buckets=null}},nextname:function(){if(!PIPEFS.nextname.current){PIPEFS.nextname.current=0}return\"pipe[\"+PIPEFS.nextname.current+++\"]\"}};Module[\"PIPEFS\"]=PIPEFS;function ___sys_pipe(fdPtr){try{if(fdPtr==0){throw new FS.ErrnoError(21)}var res=PIPEFS.createPipe();HEAP32[fdPtr>>2]=res.readable_fd;HEAP32[fdPtr+4>>2]=res.writable_fd;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_pipe\"]=___sys_pipe;function ___sys_pipe2(fds,flags){return-52}Module[\"___sys_pipe2\"]=___sys_pipe2;function ___sys_poll(fds,nfds,timeout){try{var nonzero=0;for(var i=0;i<nfds;i++){var pollfd=fds+8*i;var fd=HEAP32[pollfd>>2];var events=HEAP16[pollfd+4>>1];var mask=32;var stream=FS.getStream(fd);if(stream){mask=SYSCALLS.DEFAULT_POLLMASK;if(stream.stream_ops.poll){mask=stream.stream_ops.poll(stream)}}mask&=events|8|16;if(mask)nonzero++;HEAP16[pollfd+6>>1]=mask}return nonzero}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_poll\"]=___sys_poll;function ___sys_prlimit64(pid,resource,new_limit,old_limit){try{if(old_limit){HEAP32[old_limit>>2]=-1;HEAP32[old_limit+4>>2]=-1;HEAP32[old_limit+8>>2]=-1;HEAP32[old_limit+12>>2]=-1}return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_prlimit64\"]=___sys_prlimit64;function ___sys_pselect6(){return-52}Module[\"___sys_pselect6\"]=___sys_pselect6;function ___sys_readlink(path,buf,bufsize){try{path=SYSCALLS.getStr(path);return SYSCALLS.doReadlink(path,buf,bufsize)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_readlink\"]=___sys_readlink;function ___sys_readlinkat(dirfd,path,buf,bufsize){try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);return SYSCALLS.doReadlink(path,buf,bufsize)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_readlinkat\"]=___sys_readlinkat;function ___sys_recvfrom(fd,buf,len,flags,addr,addrlen){try{var sock=getSocketFromFD(fd);var msg=sock.sock_ops.recvmsg(sock,len);if(!msg)return 0;if(addr){var errno=writeSockaddr(addr,sock.family,DNS.lookup_name(msg.addr),msg.port,addrlen)}HEAPU8.set(msg.buffer,buf);return msg.buffer.byteLength}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_recvfrom\"]=___sys_recvfrom;function ___sys_recvmmsg(sockfd,msgvec,vlen,flags){return 0}Module[\"___sys_recvmmsg\"]=___sys_recvmmsg;function ___sys_recvmsg(fd,message,flags){try{var sock=getSocketFromFD(fd);var iov=HEAP32[message+8>>2];var num=HEAP32[message+12>>2];var total=0;for(var i=0;i<num;i++){total+=HEAP32[iov+(8*i+4)>>2]}var msg=sock.sock_ops.recvmsg(sock,total);if(!msg)return 0;var name=HEAP32[message>>2];if(name){var errno=writeSockaddr(name,sock.family,DNS.lookup_name(msg.addr),msg.port)}var bytesRead=0;var bytesRemaining=msg.buffer.byteLength;for(var i=0;bytesRemaining>0&&i<num;i++){var iovbase=HEAP32[iov+(8*i+0)>>2];var iovlen=HEAP32[iov+(8*i+4)>>2];if(!iovlen){continue}var length=Math.min(iovlen,bytesRemaining);var buf=msg.buffer.subarray(bytesRead,bytesRead+length);HEAPU8.set(buf,iovbase+bytesRead);bytesRead+=length;bytesRemaining-=length}return bytesRead}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_recvmsg\"]=___sys_recvmsg;function ___sys_rename(old_path,new_path){try{old_path=SYSCALLS.getStr(old_path);new_path=SYSCALLS.getStr(new_path);FS.rename(old_path,new_path);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_rename\"]=___sys_rename;function ___sys_renameat(olddirfd,oldpath,newdirfd,newpath){try{oldpath=SYSCALLS.getStr(oldpath);newpath=SYSCALLS.getStr(newpath);oldpath=SYSCALLS.calculateAt(olddirfd,oldpath);newpath=SYSCALLS.calculateAt(newdirfd,newpath);FS.rename(oldpath,newpath);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_renameat\"]=___sys_renameat;function ___sys_rmdir(path){try{path=SYSCALLS.getStr(path);FS.rmdir(path);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_rmdir\"]=___sys_rmdir;function ___sys_sendmmsg(sockfd,msg,flags){return 0}Module[\"___sys_sendmmsg\"]=___sys_sendmmsg;function ___sys_sendmsg(fd,message,flags){try{var sock=getSocketFromFD(fd);var iov=HEAP32[message+8>>2];var num=HEAP32[message+12>>2];var addr,port;var name=HEAP32[message>>2];var namelen=HEAP32[message+4>>2];if(name){var info=readSockaddr(name,namelen);if(info.errno)return-info.errno;port=info.port;addr=DNS.lookup_addr(info.addr)||info.addr}var total=0;for(var i=0;i<num;i++){total+=HEAP32[iov+(8*i+4)>>2]}var view=new Uint8Array(total);var offset=0;for(var i=0;i<num;i++){var iovbase=HEAP32[iov+(8*i+0)>>2];var iovlen=HEAP32[iov+(8*i+4)>>2];for(var j=0;j<iovlen;j++){view[offset++]=HEAP8[iovbase+j>>0]}}return sock.sock_ops.sendmsg(sock,view,0,total,addr,port)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_sendmsg\"]=___sys_sendmsg;function ___sys_sendto(fd,message,length,flags,addr,addr_len){try{var sock=getSocketFromFD(fd);var dest=getSocketAddress(addr,addr_len,true);if(!dest){return FS.write(sock.stream,HEAP8,message,length)}else{return sock.sock_ops.sendmsg(sock,HEAP8,message,length,dest.addr,dest.port)}}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_sendto\"]=___sys_sendto;function ___sys_setdomainname(name,size){return-63}Module[\"___sys_setdomainname\"]=___sys_setdomainname;function ___sys_setpgid(pid,pgid){if(pid&&pid!==42)return-71;if(pgid&&pgid!==42)return-63;return 0}Module[\"___sys_setpgid\"]=___sys_setpgid;function ___sys_setpriority(){return-63}Module[\"___sys_setpriority\"]=___sys_setpriority;function ___sys_setrlimit(varargs){return 0}Module[\"___sys_setrlimit\"]=___sys_setrlimit;function ___sys_setsid(){return 0}Module[\"___sys_setsid\"]=___sys_setsid;function ___sys_setsockopt(fd){try{return-50}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_setsockopt\"]=___sys_setsockopt;function ___sys_shutdown(fd,how){try{getSocketFromFD(fd);return-52}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_shutdown\"]=___sys_shutdown;function ___sys_socket(domain,type,protocol){try{var sock=SOCKFS.createSocket(domain,type,protocol);return sock.stream.fd}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_socket\"]=___sys_socket;function ___sys_socketpair(){try{return-52}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_socketpair\"]=___sys_socketpair;function ___sys_stat64(path,buf){try{path=SYSCALLS.getStr(path);return SYSCALLS.doStat(FS.stat,path,buf)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_stat64\"]=___sys_stat64;function ___sys_statfs64(path,size,buf){try{path=SYSCALLS.getStr(path);HEAP32[buf+4>>2]=4096;HEAP32[buf+40>>2]=4096;HEAP32[buf+8>>2]=1e6;HEAP32[buf+12>>2]=5e5;HEAP32[buf+16>>2]=5e5;HEAP32[buf+20>>2]=FS.nextInode;HEAP32[buf+24>>2]=1e6;HEAP32[buf+28>>2]=42;HEAP32[buf+44>>2]=2;HEAP32[buf+36>>2]=255;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_statfs64\"]=___sys_statfs64;function ___sys_symlink(target,linkpath){try{target=SYSCALLS.getStr(target);linkpath=SYSCALLS.getStr(linkpath);FS.symlink(target,linkpath);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_symlink\"]=___sys_symlink;function ___sys_symlinkat(target,newdirfd,linkpath){try{linkpath=SYSCALLS.calculateAt(newdirfd,linkpath);FS.symlink(target,linkpath);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_symlinkat\"]=___sys_symlinkat;function ___sys_sync(){return 0}Module[\"___sys_sync\"]=___sys_sync;function ___sys_truncate64(path,zero,low,high){try{path=SYSCALLS.getStr(path);var length=SYSCALLS.get64(low,high);FS.truncate(path,length);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_truncate64\"]=___sys_truncate64;function ___sys_ugetrlimit(resource,rlim){try{HEAP32[rlim>>2]=-1;HEAP32[rlim+4>>2]=-1;HEAP32[rlim+8>>2]=-1;HEAP32[rlim+12>>2]=-1;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_ugetrlimit\"]=___sys_ugetrlimit;function ___sys_umask(mask){try{var old=SYSCALLS.umask;SYSCALLS.umask=mask;return old}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_umask\"]=___sys_umask;function ___sys_uname(buf){try{if(!buf)return-21;var layout={\"__size__\":390,\"domainname\":325,\"machine\":260,\"nodename\":65,\"release\":130,\"sysname\":0,\"version\":195};var copyString=function(element,value){var offset=layout[element];writeAsciiToMemory(value,buf+offset)};copyString(\"sysname\",\"Emscripten\");copyString(\"nodename\",\"emscripten\");copyString(\"release\",\"1.0\");copyString(\"version\",\"#1\");copyString(\"machine\",\"wasm32\");return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_uname\"]=___sys_uname;function ___sys_unlink(path){try{path=SYSCALLS.getStr(path);FS.unlink(path);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_unlink\"]=___sys_unlink;function ___sys_unlinkat(dirfd,path,flags){try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);if(flags===0){FS.unlink(path)}else if(flags===512){FS.rmdir(path)}else{abort(\"Invalid flags passed to unlinkat\")}return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_unlinkat\"]=___sys_unlinkat;function ___sys_utimensat(dirfd,path,times,flags){try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path,true);var seconds=HEAP32[times>>2];var nanoseconds=HEAP32[times+4>>2];var atime=seconds*1e3+nanoseconds/(1e3*1e3);times+=8;seconds=HEAP32[times>>2];nanoseconds=HEAP32[times+4>>2];var mtime=seconds*1e3+nanoseconds/(1e3*1e3);FS.utime(path,atime,mtime);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_utimensat\"]=___sys_utimensat;function ___sys_wait4(pid,wstart,options,rusage){try{return-52}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_wait4\"]=___sys_wait4;function __exit(a0){return _exit(a0)}Module[\"__exit\"]=__exit;__exit.sig=\"vi\";function _abort(){abort()}Module[\"_abort\"]=_abort;_abort.sig=\"v\";var AL={QUEUE_INTERVAL:25,QUEUE_LOOKAHEAD:.1,DEVICE_NAME:\"Emscripten OpenAL\",CAPTURE_DEVICE_NAME:\"Emscripten OpenAL capture\",ALC_EXTENSIONS:{ALC_SOFT_pause_device:true,ALC_SOFT_HRTF:true},AL_EXTENSIONS:{AL_EXT_float32:true,AL_SOFT_loop_points:true,AL_SOFT_source_length:true,AL_EXT_source_distance_model:true,AL_SOFT_source_spatialize:true},_alcErr:0,alcErr:0,deviceRefCounts:{},alcStringCache:{},paused:false,stringCache:{},contexts:{},currentCtx:null,buffers:{0:{id:0,refCount:0,audioBuf:null,frequency:0,bytesPerSample:2,channels:1,length:0}},paramArray:[],_nextId:1,newId:function(){return AL.freeIds.length>0?AL.freeIds.pop():AL._nextId++},freeIds:[],scheduleContextAudio:function(ctx){if(Browser.mainLoop.timingMode===1&&document[\"visibilityState\"]!=\"visible\"){return}for(var i in ctx.sources){AL.scheduleSourceAudio(ctx.sources[i])}},scheduleSourceAudio:function(src,lookahead){if(Browser.mainLoop.timingMode===1&&document[\"visibilityState\"]!=\"visible\"){return}if(src.state!==4114){return}var currentTime=AL.updateSourceTime(src);var startTime=src.bufStartTime;var startOffset=src.bufOffset;var bufCursor=src.bufsProcessed;for(var i=0;i<src.audioQueue.length;i++){var audioSrc=src.audioQueue[i];startTime=audioSrc._startTime+audioSrc._duration;startOffset=0;bufCursor+=audioSrc._skipCount+1}if(!lookahead){lookahead=AL.QUEUE_LOOKAHEAD}var lookaheadTime=currentTime+lookahead;var skipCount=0;while(startTime<lookaheadTime){if(bufCursor>=src.bufQueue.length){if(src.looping){bufCursor%=src.bufQueue.length}else{break}}var buf=src.bufQueue[bufCursor%src.bufQueue.length];if(buf.length===0){skipCount++;if(skipCount===src.bufQueue.length){break}}else{var audioSrc=src.context.audioCtx.createBufferSource();audioSrc.buffer=buf.audioBuf;audioSrc.playbackRate.value=src.playbackRate;if(buf.audioBuf._loopStart||buf.audioBuf._loopEnd){audioSrc.loopStart=buf.audioBuf._loopStart;audioSrc.loopEnd=buf.audioBuf._loopEnd}var duration=0;if(src.type===4136&&src.looping){duration=Number.POSITIVE_INFINITY;audioSrc.loop=true;if(buf.audioBuf._loopStart){audioSrc.loopStart=buf.audioBuf._loopStart}if(buf.audioBuf._loopEnd){audioSrc.loopEnd=buf.audioBuf._loopEnd}}else{duration=(buf.audioBuf.duration-startOffset)/src.playbackRate}audioSrc._startOffset=startOffset;audioSrc._duration=duration;audioSrc._skipCount=skipCount;skipCount=0;audioSrc.connect(src.gain);if(typeof audioSrc.start!==\"undefined\"){startTime=Math.max(startTime,src.context.audioCtx.currentTime);audioSrc.start(startTime,startOffset)}else if(typeof audioSrc.noteOn!==\"undefined\"){startTime=Math.max(startTime,src.context.audioCtx.currentTime);audioSrc.noteOn(startTime)}audioSrc._startTime=startTime;src.audioQueue.push(audioSrc);startTime+=duration}startOffset=0;bufCursor++}},updateSourceTime:function(src){var currentTime=src.context.audioCtx.currentTime;if(src.state!==4114){return currentTime}if(!isFinite(src.bufStartTime)){src.bufStartTime=currentTime-src.bufOffset/src.playbackRate;src.bufOffset=0}var nextStartTime=0;while(src.audioQueue.length){var audioSrc=src.audioQueue[0];src.bufsProcessed+=audioSrc._skipCount;nextStartTime=audioSrc._startTime+audioSrc._duration;if(currentTime<nextStartTime){break}src.audioQueue.shift();src.bufStartTime=nextStartTime;src.bufOffset=0;src.bufsProcessed++}if(src.bufsProcessed>=src.bufQueue.length&&!src.looping){AL.setSourceState(src,4116)}else if(src.type===4136&&src.looping){var buf=src.bufQueue[0];if(buf.length===0){src.bufOffset=0}else{var delta=(currentTime-src.bufStartTime)*src.playbackRate;var loopStart=buf.audioBuf._loopStart||0;var loopEnd=buf.audioBuf._loopEnd||buf.audioBuf.duration;if(loopEnd<=loopStart){loopEnd=buf.audioBuf.duration}if(delta<loopEnd){src.bufOffset=delta}else{src.bufOffset=loopStart+(delta-loopStart)%(loopEnd-loopStart)}}}else if(src.audioQueue[0]){src.bufOffset=(currentTime-src.audioQueue[0]._startTime)*src.playbackRate}else{if(src.type!==4136&&src.looping){var srcDuration=AL.sourceDuration(src)/src.playbackRate;if(srcDuration>0){src.bufStartTime+=Math.floor((currentTime-src.bufStartTime)/srcDuration)*srcDuration}}for(var i=0;i<src.bufQueue.length;i++){if(src.bufsProcessed>=src.bufQueue.length){if(src.looping){src.bufsProcessed%=src.bufQueue.length}else{AL.setSourceState(src,4116);break}}var buf=src.bufQueue[src.bufsProcessed];if(buf.length>0){nextStartTime=src.bufStartTime+buf.audioBuf.duration/src.playbackRate;if(currentTime<nextStartTime){src.bufOffset=(currentTime-src.bufStartTime)*src.playbackRate;break}src.bufStartTime=nextStartTime}src.bufOffset=0;src.bufsProcessed++}}return currentTime},cancelPendingSourceAudio:function(src){AL.updateSourceTime(src);for(var i=1;i<src.audioQueue.length;i++){var audioSrc=src.audioQueue[i];audioSrc.stop()}if(src.audioQueue.length>1){src.audioQueue.length=1}},stopSourceAudio:function(src){for(var i=0;i<src.audioQueue.length;i++){src.audioQueue[i].stop()}src.audioQueue.length=0},setSourceState:function(src,state){if(state===4114){if(src.state===4114||src.state==4116){src.bufsProcessed=0;src.bufOffset=0}else{}AL.stopSourceAudio(src);src.state=4114;src.bufStartTime=Number.NEGATIVE_INFINITY;AL.scheduleSourceAudio(src)}else if(state===4115){if(src.state===4114){AL.updateSourceTime(src);AL.stopSourceAudio(src);src.state=4115}}else if(state===4116){if(src.state!==4113){src.state=4116;src.bufsProcessed=src.bufQueue.length;src.bufStartTime=Number.NEGATIVE_INFINITY;src.bufOffset=0;AL.stopSourceAudio(src)}}else if(state===4113){if(src.state!==4113){src.state=4113;src.bufsProcessed=0;src.bufStartTime=Number.NEGATIVE_INFINITY;src.bufOffset=0;AL.stopSourceAudio(src)}}},initSourcePanner:function(src){if(src.type===4144){return}var templateBuf=AL.buffers[0];for(var i=0;i<src.bufQueue.length;i++){if(src.bufQueue[i].id!==0){templateBuf=src.bufQueue[i];break}}if(src.spatialize===1||src.spatialize===2&&templateBuf.channels===1){if(src.panner){return}src.panner=src.context.audioCtx.createPanner();AL.updateSourceGlobal(src);AL.updateSourceSpace(src);src.panner.connect(src.context.gain);src.gain.disconnect();src.gain.connect(src.panner)}else{if(!src.panner){return}src.panner.disconnect();src.gain.disconnect();src.gain.connect(src.context.gain);src.panner=null}},updateContextGlobal:function(ctx){for(var i in ctx.sources){AL.updateSourceGlobal(ctx.sources[i])}},updateSourceGlobal:function(src){var panner=src.panner;if(!panner){return}panner.refDistance=src.refDistance;panner.maxDistance=src.maxDistance;panner.rolloffFactor=src.rolloffFactor;panner.panningModel=src.context.hrtf?\"HRTF\":\"equalpower\";var distanceModel=src.context.sourceDistanceModel?src.distanceModel:src.context.distanceModel;switch(distanceModel){case 0:panner.distanceModel=\"inverse\";panner.refDistance=3.40282e38;break;case 53249:case 53250:panner.distanceModel=\"inverse\";break;case 53251:case 53252:panner.distanceModel=\"linear\";break;case 53253:case 53254:panner.distanceModel=\"exponential\";break}},updateListenerSpace:function(ctx){var listener=ctx.audioCtx.listener;if(listener.positionX){listener.positionX.value=ctx.listener.position[0];listener.positionY.value=ctx.listener.position[1];listener.positionZ.value=ctx.listener.position[2]}else{listener.setPosition(ctx.listener.position[0],ctx.listener.position[1],ctx.listener.position[2])}if(listener.forwardX){listener.forwardX.value=ctx.listener.direction[0];listener.forwardY.value=ctx.listener.direction[1];listener.forwardZ.value=ctx.listener.direction[2];listener.upX.value=ctx.listener.up[0];listener.upY.value=ctx.listener.up[1];listener.upZ.value=ctx.listener.up[2]}else{listener.setOrientation(ctx.listener.direction[0],ctx.listener.direction[1],ctx.listener.direction[2],ctx.listener.up[0],ctx.listener.up[1],ctx.listener.up[2])}for(var i in ctx.sources){AL.updateSourceSpace(ctx.sources[i])}},updateSourceSpace:function(src){if(!src.panner){return}var panner=src.panner;var posX=src.position[0];var posY=src.position[1];var posZ=src.position[2];var dirX=src.direction[0];var dirY=src.direction[1];var dirZ=src.direction[2];var listener=src.context.listener;var lPosX=listener.position[0];var lPosY=listener.position[1];var lPosZ=listener.position[2];if(src.relative){var lBackX=-listener.direction[0];var lBackY=-listener.direction[1];var lBackZ=-listener.direction[2];var lUpX=listener.up[0];var lUpY=listener.up[1];var lUpZ=listener.up[2];var inverseMagnitude=function(x,y,z){var length=Math.sqrt(x*x+y*y+z*z);if(length<Number.EPSILON){return 0}return 1/length};var invMag=inverseMagnitude(lBackX,lBackY,lBackZ);lBackX*=invMag;lBackY*=invMag;lBackZ*=invMag;invMag=inverseMagnitude(lUpX,lUpY,lUpZ);lUpX*=invMag;lUpY*=invMag;lUpZ*=invMag;var lRightX=lUpY*lBackZ-lUpZ*lBackY;var lRightY=lUpZ*lBackX-lUpX*lBackZ;var lRightZ=lUpX*lBackY-lUpY*lBackX;invMag=inverseMagnitude(lRightX,lRightY,lRightZ);lRightX*=invMag;lRightY*=invMag;lRightZ*=invMag;lUpX=lBackY*lRightZ-lBackZ*lRightY;lUpY=lBackZ*lRightX-lBackX*lRightZ;lUpZ=lBackX*lRightY-lBackY*lRightX;var oldX=dirX;var oldY=dirY;var oldZ=dirZ;dirX=oldX*lRightX+oldY*lUpX+oldZ*lBackX;dirY=oldX*lRightY+oldY*lUpY+oldZ*lBackY;dirZ=oldX*lRightZ+oldY*lUpZ+oldZ*lBackZ;oldX=posX;oldY=posY;oldZ=posZ;posX=oldX*lRightX+oldY*lUpX+oldZ*lBackX;posY=oldX*lRightY+oldY*lUpY+oldZ*lBackY;posZ=oldX*lRightZ+oldY*lUpZ+oldZ*lBackZ;posX+=lPosX;posY+=lPosY;posZ+=lPosZ}if(panner.positionX){panner.positionX.value=posX;panner.positionY.value=posY;panner.positionZ.value=posZ}else{panner.setPosition(posX,posY,posZ)}if(panner.orientationX){panner.orientationX.value=dirX;panner.orientationY.value=dirY;panner.orientationZ.value=dirZ}else{panner.setOrientation(dirX,dirY,dirZ)}var oldShift=src.dopplerShift;var velX=src.velocity[0];var velY=src.velocity[1];var velZ=src.velocity[2];var lVelX=listener.velocity[0];var lVelY=listener.velocity[1];var lVelZ=listener.velocity[2];if(posX===lPosX&&posY===lPosY&&posZ===lPosZ||velX===lVelX&&velY===lVelY&&velZ===lVelZ){src.dopplerShift=1}else{var speedOfSound=src.context.speedOfSound;var dopplerFactor=src.context.dopplerFactor;var slX=lPosX-posX;var slY=lPosY-posY;var slZ=lPosZ-posZ;var magSl=Math.sqrt(slX*slX+slY*slY+slZ*slZ);var vls=(slX*lVelX+slY*lVelY+slZ*lVelZ)/magSl;var vss=(slX*velX+slY*velY+slZ*velZ)/magSl;vls=Math.min(vls,speedOfSound/dopplerFactor);vss=Math.min(vss,speedOfSound/dopplerFactor);src.dopplerShift=(speedOfSound-dopplerFactor*vls)/(speedOfSound-dopplerFactor*vss)}if(src.dopplerShift!==oldShift){AL.updateSourceRate(src)}},updateSourceRate:function(src){if(src.state===4114){AL.cancelPendingSourceAudio(src);var audioSrc=src.audioQueue[0];if(!audioSrc){return}var duration;if(src.type===4136&&src.looping){duration=Number.POSITIVE_INFINITY}else{duration=(audioSrc.buffer.duration-audioSrc._startOffset)/src.playbackRate}audioSrc._duration=duration;audioSrc.playbackRate.value=src.playbackRate;AL.scheduleSourceAudio(src)}},sourceDuration:function(src){var length=0;for(var i=0;i<src.bufQueue.length;i++){var audioBuf=src.bufQueue[i].audioBuf;length+=audioBuf?audioBuf.duration:0}return length},sourceTell:function(src){AL.updateSourceTime(src);var offset=0;for(var i=0;i<src.bufsProcessed;i++){offset+=src.bufQueue[i].audioBuf.duration}offset+=src.bufOffset;return offset},sourceSeek:function(src,offset){var playing=src.state==4114;if(playing){AL.setSourceState(src,4113)}if(src.bufQueue[src.bufsProcessed].audioBuf!==null){src.bufsProcessed=0;while(offset>src.bufQueue[src.bufsProcessed].audioBuf.duration){offset-=src.bufQueue[src.bufsProcessed].audiobuf.duration;src.bufsProcessed++}src.bufOffset=offset}if(playing){AL.setSourceState(src,4114)}},getGlobalParam:function(funcname,param){if(!AL.currentCtx){return null}switch(param){case 49152:return AL.currentCtx.dopplerFactor;case 49155:return AL.currentCtx.speedOfSound;case 53248:return AL.currentCtx.distanceModel;default:AL.currentCtx.err=40962;return null}},setGlobalParam:function(funcname,param,value){if(!AL.currentCtx){return}switch(param){case 49152:if(!Number.isFinite(value)||value<0){AL.currentCtx.err=40963;return}AL.currentCtx.dopplerFactor=value;AL.updateListenerSpace(AL.currentCtx);break;case 49155:if(!Number.isFinite(value)||value<=0){AL.currentCtx.err=40963;return}AL.currentCtx.speedOfSound=value;AL.updateListenerSpace(AL.currentCtx);break;case 53248:switch(value){case 0:case 53249:case 53250:case 53251:case 53252:case 53253:case 53254:AL.currentCtx.distanceModel=value;AL.updateContextGlobal(AL.currentCtx);break;default:AL.currentCtx.err=40963;return}break;default:AL.currentCtx.err=40962;return}},getListenerParam:function(funcname,param){if(!AL.currentCtx){return null}switch(param){case 4100:return AL.currentCtx.listener.position;case 4102:return AL.currentCtx.listener.velocity;case 4111:return AL.currentCtx.listener.direction.concat(AL.currentCtx.listener.up);case 4106:return AL.currentCtx.gain.gain.value;default:AL.currentCtx.err=40962;return null}},setListenerParam:function(funcname,param,value){if(!AL.currentCtx){return}if(value===null){AL.currentCtx.err=40962;return}var listener=AL.currentCtx.listener;switch(param){case 4100:if(!Number.isFinite(value[0])||!Number.isFinite(value[1])||!Number.isFinite(value[2])){AL.currentCtx.err=40963;return}listener.position[0]=value[0];listener.position[1]=value[1];listener.position[2]=value[2];AL.updateListenerSpace(AL.currentCtx);break;case 4102:if(!Number.isFinite(value[0])||!Number.isFinite(value[1])||!Number.isFinite(value[2])){AL.currentCtx.err=40963;return}listener.velocity[0]=value[0];listener.velocity[1]=value[1];listener.velocity[2]=value[2];AL.updateListenerSpace(AL.currentCtx);break;case 4106:if(!Number.isFinite(value)||value<0){AL.currentCtx.err=40963;return}AL.currentCtx.gain.gain.value=value;break;case 4111:if(!Number.isFinite(value[0])||!Number.isFinite(value[1])||!Number.isFinite(value[2])||!Number.isFinite(value[3])||!Number.isFinite(value[4])||!Number.isFinite(value[5])){AL.currentCtx.err=40963;return}listener.direction[0]=value[0];listener.direction[1]=value[1];listener.direction[2]=value[2];listener.up[0]=value[3];listener.up[1]=value[4];listener.up[2]=value[5];AL.updateListenerSpace(AL.currentCtx);break;default:AL.currentCtx.err=40962;return}},getBufferParam:function(funcname,bufferId,param){if(!AL.currentCtx){return}var buf=AL.buffers[bufferId];if(!buf||bufferId===0){AL.currentCtx.err=40961;return}switch(param){case 8193:return buf.frequency;case 8194:return buf.bytesPerSample*8;case 8195:return buf.channels;case 8196:return buf.length*buf.bytesPerSample*buf.channels;case 8213:if(buf.length===0){return[0,0]}else{return[(buf.audioBuf._loopStart||0)*buf.frequency,(buf.audioBuf._loopEnd||buf.length)*buf.frequency]}default:AL.currentCtx.err=40962;return null}},setBufferParam:function(funcname,bufferId,param,value){if(!AL.currentCtx){return}var buf=AL.buffers[bufferId];if(!buf||bufferId===0){AL.currentCtx.err=40961;return}if(value===null){AL.currentCtx.err=40962;return}switch(param){case 8196:if(value!==0){AL.currentCtx.err=40963;return}break;case 8213:if(value[0]<0||value[0]>buf.length||value[1]<0||value[1]>buf.Length||value[0]>=value[1]){AL.currentCtx.err=40963;return}if(buf.refCount>0){AL.currentCtx.err=40964;return}if(buf.audioBuf){buf.audioBuf._loopStart=value[0]/buf.frequency;buf.audioBuf._loopEnd=value[1]/buf.frequency}break;default:AL.currentCtx.err=40962;return}},getSourceParam:function(funcname,sourceId,param){if(!AL.currentCtx){return null}var src=AL.currentCtx.sources[sourceId];if(!src){AL.currentCtx.err=40961;return null}switch(param){case 514:return src.relative;case 4097:return src.coneInnerAngle;case 4098:return src.coneOuterAngle;case 4099:return src.pitch;case 4100:return src.position;case 4101:return src.direction;case 4102:return src.velocity;case 4103:return src.looping;case 4105:if(src.type===4136){return src.bufQueue[0].id}else{return 0}case 4106:return src.gain.gain.value;case 4109:return src.minGain;case 4110:return src.maxGain;case 4112:return src.state;case 4117:if(src.bufQueue.length===1&&src.bufQueue[0].id===0){return 0}else{return src.bufQueue.length}case 4118:if(src.bufQueue.length===1&&src.bufQueue[0].id===0||src.looping){return 0}else{return src.bufsProcessed}case 4128:return src.refDistance;case 4129:return src.rolloffFactor;case 4130:return src.coneOuterGain;case 4131:return src.maxDistance;case 4132:return AL.sourceTell(src);case 4133:var offset=AL.sourceTell(src);if(offset>0){offset*=src.bufQueue[0].frequency}return offset;case 4134:var offset=AL.sourceTell(src);if(offset>0){offset*=src.bufQueue[0].frequency*src.bufQueue[0].bytesPerSample}return offset;case 4135:return src.type;case 4628:return src.spatialize;case 8201:var length=0;var bytesPerFrame=0;for(var i=0;i<src.bufQueue.length;i++){length+=src.bufQueue[i].length;if(src.bufQueue[i].id!==0){bytesPerFrame=src.bufQueue[i].bytesPerSample*src.bufQueue[i].channels}}return length*bytesPerFrame;case 8202:var length=0;for(var i=0;i<src.bufQueue.length;i++){length+=src.bufQueue[i].length}return length;case 8203:return AL.sourceDuration(src);case 53248:return src.distanceModel;default:AL.currentCtx.err=40962;return null}},setSourceParam:function(funcname,sourceId,param,value){if(!AL.currentCtx){return}var src=AL.currentCtx.sources[sourceId];if(!src){AL.currentCtx.err=40961;return}if(value===null){AL.currentCtx.err=40962;return}switch(param){case 514:if(value===1){src.relative=true;AL.updateSourceSpace(src)}else if(value===0){src.relative=false;AL.updateSourceSpace(src)}else{AL.currentCtx.err=40963;return}break;case 4097:if(!Number.isFinite(value)){AL.currentCtx.err=40963;return}src.coneInnerAngle=value;if(src.panner){src.panner.coneInnerAngle=value%360}break;case 4098:if(!Number.isFinite(value)){AL.currentCtx.err=40963;return}src.coneOuterAngle=value;if(src.panner){src.panner.coneOuterAngle=value%360}break;case 4099:if(!Number.isFinite(value)||value<=0){AL.currentCtx.err=40963;return}if(src.pitch===value){break}src.pitch=value;AL.updateSourceRate(src);break;case 4100:if(!Number.isFinite(value[0])||!Number.isFinite(value[1])||!Number.isFinite(value[2])){AL.currentCtx.err=40963;return}src.position[0]=value[0];src.position[1]=value[1];src.position[2]=value[2];AL.updateSourceSpace(src);break;case 4101:if(!Number.isFinite(value[0])||!Number.isFinite(value[1])||!Number.isFinite(value[2])){AL.currentCtx.err=40963;return}src.direction[0]=value[0];src.direction[1]=value[1];src.direction[2]=value[2];AL.updateSourceSpace(src);break;case 4102:if(!Number.isFinite(value[0])||!Number.isFinite(value[1])||!Number.isFinite(value[2])){AL.currentCtx.err=40963;return}src.velocity[0]=value[0];src.velocity[1]=value[1];src.velocity[2]=value[2];AL.updateSourceSpace(src);break;case 4103:if(value===1){src.looping=true;AL.updateSourceTime(src);if(src.type===4136&&src.audioQueue.length>0){var audioSrc=src.audioQueue[0];audioSrc.loop=true;audioSrc._duration=Number.POSITIVE_INFINITY}}else if(value===0){src.looping=false;var currentTime=AL.updateSourceTime(src);if(src.type===4136&&src.audioQueue.length>0){var audioSrc=src.audioQueue[0];audioSrc.loop=false;audioSrc._duration=src.bufQueue[0].audioBuf.duration/src.playbackRate;audioSrc._startTime=currentTime-src.bufOffset/src.playbackRate}}else{AL.currentCtx.err=40963;return}break;case 4105:if(src.state===4114||src.state===4115){AL.currentCtx.err=40964;return}if(value===0){for(var i in src.bufQueue){src.bufQueue[i].refCount--}src.bufQueue.length=1;src.bufQueue[0]=AL.buffers[0];src.bufsProcessed=0;src.type=4144}else{var buf=AL.buffers[value];if(!buf){AL.currentCtx.err=40963;return}for(var i in src.bufQueue){src.bufQueue[i].refCount--}src.bufQueue.length=0;buf.refCount++;src.bufQueue=[buf];src.bufsProcessed=0;src.type=4136}AL.initSourcePanner(src);AL.scheduleSourceAudio(src);break;case 4106:if(!Number.isFinite(value)||value<0){AL.currentCtx.err=40963;return}src.gain.gain.value=value;break;case 4109:if(!Number.isFinite(value)||value<0||value>Math.min(src.maxGain,1)){AL.currentCtx.err=40963;return}src.minGain=value;break;case 4110:if(!Number.isFinite(value)||value<Math.max(0,src.minGain)||value>1){AL.currentCtx.err=40963;return}src.maxGain=value;break;case 4128:if(!Number.isFinite(value)||value<0){AL.currentCtx.err=40963;return}src.refDistance=value;if(src.panner){src.panner.refDistance=value}break;case 4129:if(!Number.isFinite(value)||value<0){AL.currentCtx.err=40963;return}src.rolloffFactor=value;if(src.panner){src.panner.rolloffFactor=value}break;case 4130:if(!Number.isFinite(value)||value<0||value>1){AL.currentCtx.err=40963;return}src.coneOuterGain=value;if(src.panner){src.panner.coneOuterGain=value}break;case 4131:if(!Number.isFinite(value)||value<0){AL.currentCtx.err=40963;return}src.maxDistance=value;if(src.panner){src.panner.maxDistance=value}break;case 4132:if(value<0||value>AL.sourceDuration(src)){AL.currentCtx.err=40963;return}AL.sourceSeek(src,value);break;case 4133:var srcLen=AL.sourceDuration(src);if(srcLen>0){var frequency;for(var bufId in src.bufQueue){if(bufId){frequency=src.bufQueue[bufId].frequency;break}}value/=frequency}if(value<0||value>srcLen){AL.currentCtx.err=40963;return}AL.sourceSeek(src,value);break;case 4134:var srcLen=AL.sourceDuration(src);if(srcLen>0){var bytesPerSec;for(var bufId in src.bufQueue){if(bufId){var buf=src.bufQueue[bufId];bytesPerSec=buf.frequency*buf.bytesPerSample*buf.channels;break}}value/=bytesPerSec}if(value<0||value>srcLen){AL.currentCtx.err=40963;return}AL.sourceSeek(src,value);break;case 4628:if(value!==0&&value!==1&&value!==2){AL.currentCtx.err=40963;return}src.spatialize=value;AL.initSourcePanner(src);break;case 8201:case 8202:case 8203:AL.currentCtx.err=40964;break;case 53248:switch(value){case 0:case 53249:case 53250:case 53251:case 53252:case 53253:case 53254:src.distanceModel=value;if(AL.currentCtx.sourceDistanceModel){AL.updateContextGlobal(AL.currentCtx)}break;default:AL.currentCtx.err=40963;return}break;default:AL.currentCtx.err=40962;return}},captures:{},sharedCaptureAudioCtx:null,requireValidCaptureDevice:function(deviceId,funcname){if(deviceId===0){AL.alcErr=40961;return null}var c=AL.captures[deviceId];if(!c){AL.alcErr=40961;return null}var err=c.mediaStreamError;if(err){AL.alcErr=40961;return null}return c}};Module[\"AL\"]=AL;function _alBuffer3f(bufferId,param,value0,value1,value2){AL.setBufferParam(\"alBuffer3f\",bufferId,param,null)}Module[\"_alBuffer3f\"]=_alBuffer3f;_alBuffer3f.sig=\"viifff\";function _alBuffer3i(bufferId,param,value0,value1,value2){AL.setBufferParam(\"alBuffer3i\",bufferId,param,null)}Module[\"_alBuffer3i\"]=_alBuffer3i;_alBuffer3i.sig=\"viiiii\";function _alBufferData(bufferId,format,pData,size,freq){if(!AL.currentCtx){return}var buf=AL.buffers[bufferId];if(!buf){AL.currentCtx.err=40963;return}if(freq<=0){AL.currentCtx.err=40963;return}var audioBuf=null;try{switch(format){case 4352:if(size>0){audioBuf=AL.currentCtx.audioCtx.createBuffer(1,size,freq);var channel0=audioBuf.getChannelData(0);for(var i=0;i<size;++i){channel0[i]=HEAPU8[pData++]*.0078125-1}}buf.bytesPerSample=1;buf.channels=1;buf.length=size;break;case 4353:if(size>0){audioBuf=AL.currentCtx.audioCtx.createBuffer(1,size>>1,freq);var channel0=audioBuf.getChannelData(0);pData>>=1;for(var i=0;i<size>>1;++i){channel0[i]=HEAP16[pData++]*30517578125e-15}}buf.bytesPerSample=2;buf.channels=1;buf.length=size>>1;break;case 4354:if(size>0){audioBuf=AL.currentCtx.audioCtx.createBuffer(2,size>>1,freq);var channel0=audioBuf.getChannelData(0);var channel1=audioBuf.getChannelData(1);for(var i=0;i<size>>1;++i){channel0[i]=HEAPU8[pData++]*.0078125-1;channel1[i]=HEAPU8[pData++]*.0078125-1}}buf.bytesPerSample=1;buf.channels=2;buf.length=size>>1;break;case 4355:if(size>0){audioBuf=AL.currentCtx.audioCtx.createBuffer(2,size>>2,freq);var channel0=audioBuf.getChannelData(0);var channel1=audioBuf.getChannelData(1);pData>>=1;for(var i=0;i<size>>2;++i){channel0[i]=HEAP16[pData++]*30517578125e-15;channel1[i]=HEAP16[pData++]*30517578125e-15}}buf.bytesPerSample=2;buf.channels=2;buf.length=size>>2;break;case 65552:if(size>0){audioBuf=AL.currentCtx.audioCtx.createBuffer(1,size>>2,freq);var channel0=audioBuf.getChannelData(0);pData>>=2;for(var i=0;i<size>>2;++i){channel0[i]=HEAPF32[pData++]}}buf.bytesPerSample=4;buf.channels=1;buf.length=size>>2;break;case 65553:if(size>0){audioBuf=AL.currentCtx.audioCtx.createBuffer(2,size>>3,freq);var channel0=audioBuf.getChannelData(0);var channel1=audioBuf.getChannelData(1);pData>>=2;for(var i=0;i<size>>3;++i){channel0[i]=HEAPF32[pData++];channel1[i]=HEAPF32[pData++]}}buf.bytesPerSample=4;buf.channels=2;buf.length=size>>3;break;default:AL.currentCtx.err=40963;return}buf.frequency=freq;buf.audioBuf=audioBuf}catch(e){AL.currentCtx.err=40963;return}}Module[\"_alBufferData\"]=_alBufferData;_alBufferData.sig=\"viiiii\";function _alBufferf(bufferId,param,value){AL.setBufferParam(\"alBufferf\",bufferId,param,null)}Module[\"_alBufferf\"]=_alBufferf;_alBufferf.sig=\"viif\";function _alBufferfv(bufferId,param,pValues){if(!AL.currentCtx){return}if(!pValues){AL.currentCtx.err=40963;return}AL.setBufferParam(\"alBufferfv\",bufferId,param,null)}Module[\"_alBufferfv\"]=_alBufferfv;_alBufferfv.sig=\"viii\";function _alBufferi(bufferId,param,value){AL.setBufferParam(\"alBufferi\",bufferId,param,null)}Module[\"_alBufferi\"]=_alBufferi;_alBufferi.sig=\"viii\";function _alBufferiv(bufferId,param,pValues){if(!AL.currentCtx){return}if(!pValues){AL.currentCtx.err=40963;return}switch(param){case 8213:AL.paramArray[0]=HEAP32[pValues>>2];AL.paramArray[1]=HEAP32[pValues+4>>2];AL.setBufferParam(\"alBufferiv\",bufferId,param,AL.paramArray);break;default:AL.setBufferParam(\"alBufferiv\",bufferId,param,null);break}}Module[\"_alBufferiv\"]=_alBufferiv;_alBufferiv.sig=\"viii\";function _alDeleteBuffers(count,pBufferIds){if(!AL.currentCtx){return}for(var i=0;i<count;++i){var bufId=HEAP32[pBufferIds+i*4>>2];if(bufId===0){continue}if(!AL.buffers[bufId]){AL.currentCtx.err=40961;return}if(AL.buffers[bufId].refCount){AL.currentCtx.err=40964;return}}for(var i=0;i<count;++i){var bufId=HEAP32[pBufferIds+i*4>>2];if(bufId===0){continue}AL.deviceRefCounts[AL.buffers[bufId].deviceId]--;delete AL.buffers[bufId];AL.freeIds.push(bufId)}}Module[\"_alDeleteBuffers\"]=_alDeleteBuffers;_alDeleteBuffers.sig=\"vii\";function _alSourcei(sourceId,param,value){switch(param){case 514:case 4097:case 4098:case 4103:case 4105:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4628:case 8201:case 8202:case 53248:AL.setSourceParam(\"alSourcei\",sourceId,param,value);break;default:AL.setSourceParam(\"alSourcei\",sourceId,param,null);break}}Module[\"_alSourcei\"]=_alSourcei;_alSourcei.sig=\"viii\";function _alDeleteSources(count,pSourceIds){if(!AL.currentCtx){return}for(var i=0;i<count;++i){var srcId=HEAP32[pSourceIds+i*4>>2];if(!AL.currentCtx.sources[srcId]){AL.currentCtx.err=40961;return}}for(var i=0;i<count;++i){var srcId=HEAP32[pSourceIds+i*4>>2];AL.setSourceState(AL.currentCtx.sources[srcId],4116);_alSourcei(srcId,4105,0);delete AL.currentCtx.sources[srcId];AL.freeIds.push(srcId)}}Module[\"_alDeleteSources\"]=_alDeleteSources;_alDeleteSources.sig=\"vii\";function _alDisable(param){if(!AL.currentCtx){return}switch(pname){case\"AL_SOURCE_DISTANCE_MODEL\":AL.currentCtx.sourceDistanceModel=false;AL.updateContextGlobal(AL.currentCtx);break;default:AL.currentCtx.err=40962;return}}Module[\"_alDisable\"]=_alDisable;_alDisable.sig=\"vi\";function _alDistanceModel(model){AL.setGlobalParam(\"alDistanceModel\",53248,model)}Module[\"_alDistanceModel\"]=_alDistanceModel;_alDistanceModel.sig=\"vi\";function _alDopplerFactor(value){AL.setGlobalParam(\"alDopplerFactor\",49152,value)}Module[\"_alDopplerFactor\"]=_alDopplerFactor;_alDopplerFactor.sig=\"vi\";function _alDopplerVelocity(value){warnOnce(\"alDopplerVelocity() is deprecated, and only kept for compatibility with OpenAL 1.0. Use alSpeedOfSound() instead.\");if(!AL.currentCtx){return}if(value<=0){AL.currentCtx.err=40963;return}}Module[\"_alDopplerVelocity\"]=_alDopplerVelocity;_alDopplerVelocity.sig=\"vi\";function _alEnable(param){if(!AL.currentCtx){return}switch(param){case\"AL_SOURCE_DISTANCE_MODEL\":AL.currentCtx.sourceDistanceModel=true;AL.updateContextGlobal(AL.currentCtx);break;default:AL.currentCtx.err=40962;return}}Module[\"_alEnable\"]=_alEnable;_alEnable.sig=\"vi\";function _alGenBuffers(count,pBufferIds){if(!AL.currentCtx){return}for(var i=0;i<count;++i){var buf={deviceId:AL.currentCtx.deviceId,id:AL.newId(),refCount:0,audioBuf:null,frequency:0,bytesPerSample:2,channels:1,length:0};AL.deviceRefCounts[buf.deviceId]++;AL.buffers[buf.id]=buf;HEAP32[pBufferIds+i*4>>2]=buf.id}}Module[\"_alGenBuffers\"]=_alGenBuffers;_alGenBuffers.sig=\"vii\";function _alGenSources(count,pSourceIds){if(!AL.currentCtx){return}for(var i=0;i<count;++i){var gain=AL.currentCtx.audioCtx.createGain();gain.connect(AL.currentCtx.gain);var src={context:AL.currentCtx,id:AL.newId(),type:4144,state:4113,bufQueue:[AL.buffers[0]],audioQueue:[],looping:false,pitch:1,dopplerShift:1,gain:gain,minGain:0,maxGain:1,panner:null,bufsProcessed:0,bufStartTime:Number.NEGATIVE_INFINITY,bufOffset:0,relative:false,refDistance:1,maxDistance:3.40282e38,rolloffFactor:1,position:[0,0,0],velocity:[0,0,0],direction:[0,0,0],coneOuterGain:0,coneInnerAngle:360,coneOuterAngle:360,distanceModel:53250,spatialize:2,get playbackRate(){return this.pitch*this.dopplerShift}};AL.currentCtx.sources[src.id]=src;HEAP32[pSourceIds+i*4>>2]=src.id}}Module[\"_alGenSources\"]=_alGenSources;_alGenSources.sig=\"vii\";function _alGetBoolean(param){var val=AL.getGlobalParam(\"alGetBoolean\",param);if(val===null){return 0}switch(param){case 49152:case 49155:case 53248:return val!==0?1:0;default:AL.currentCtx.err=40962;return 0}}Module[\"_alGetBoolean\"]=_alGetBoolean;_alGetBoolean.sig=\"ii\";function _alGetBooleanv(param,pValues){var val=AL.getGlobalParam(\"alGetBooleanv\",param);if(val===null||!pValues){return}switch(param){case 49152:case 49155:case 53248:HEAP8[pValues>>0]=val;break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetBooleanv\"]=_alGetBooleanv;_alGetBooleanv.sig=\"vii\";function _alGetBuffer3f(bufferId,param,pValue0,pValue1,pValue2){var val=AL.getBufferParam(\"alGetBuffer3f\",bufferId,param);if(val===null){return}if(!pValue0||!pValue1||!pValue2){AL.currentCtx.err=40963;return}AL.currentCtx.err=40962}Module[\"_alGetBuffer3f\"]=_alGetBuffer3f;_alGetBuffer3f.sig=\"viiiii\";function _alGetBuffer3i(bufferId,param,pValue0,pValue1,pValue2){var val=AL.getBufferParam(\"alGetBuffer3i\",bufferId,param);if(val===null){return}if(!pValue0||!pValue1||!pValue2){AL.currentCtx.err=40963;return}AL.currentCtx.err=40962}Module[\"_alGetBuffer3i\"]=_alGetBuffer3i;_alGetBuffer3i.sig=\"viiiii\";function _alGetBufferf(bufferId,param,pValue){var val=AL.getBufferParam(\"alGetBufferf\",bufferId,param);if(val===null){return}if(!pValue){AL.currentCtx.err=40963;return}AL.currentCtx.err=40962}Module[\"_alGetBufferf\"]=_alGetBufferf;_alGetBufferf.sig=\"viii\";function _alGetBufferfv(bufferId,param,pValues){var val=AL.getBufferParam(\"alGetBufferfv\",bufferId,param);if(val===null){return}if(!pValues){AL.currentCtx.err=40963;return}AL.currentCtx.err=40962}Module[\"_alGetBufferfv\"]=_alGetBufferfv;_alGetBufferfv.sig=\"viii\";function _alGetBufferi(bufferId,param,pValue){var val=AL.getBufferParam(\"alGetBufferi\",bufferId,param);if(val===null){return}if(!pValue){AL.currentCtx.err=40963;return}switch(param){case 8193:case 8194:case 8195:case 8196:HEAP32[pValue>>2]=val;break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetBufferi\"]=_alGetBufferi;_alGetBufferi.sig=\"viii\";function _alGetBufferiv(bufferId,param,pValues){var val=AL.getBufferParam(\"alGetBufferiv\",bufferId,param);if(val===null){return}if(!pValues){AL.currentCtx.err=40963;return}switch(param){case 8193:case 8194:case 8195:case 8196:HEAP32[pValues>>2]=val;break;case 8213:HEAP32[pValues>>2]=val[0];HEAP32[pValues+4>>2]=val[1];break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetBufferiv\"]=_alGetBufferiv;_alGetBufferiv.sig=\"viii\";function _alGetDouble(param){var val=AL.getGlobalParam(\"alGetDouble\",param);if(val===null){return 0}switch(param){case 49152:case 49155:case 53248:return val;default:AL.currentCtx.err=40962;return 0}}Module[\"_alGetDouble\"]=_alGetDouble;_alGetDouble.sig=\"di\";function _alGetDoublev(param,pValues){var val=AL.getGlobalParam(\"alGetDoublev\",param);if(val===null||!pValues){return}switch(param){case 49152:case 49155:case 53248:HEAPF64[pValues>>3]=val;break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetDoublev\"]=_alGetDoublev;_alGetDoublev.sig=\"vii\";function _alGetEnumValue(pEnumName){if(!AL.currentCtx){return 0}if(!pEnumName){AL.currentCtx.err=40963;return 0}name=UTF8ToString(pEnumName);switch(name){case\"AL_BITS\":return 8194;case\"AL_BUFFER\":return 4105;case\"AL_BUFFERS_PROCESSED\":return 4118;case\"AL_BUFFERS_QUEUED\":return 4117;case\"AL_BYTE_OFFSET\":return 4134;case\"AL_CHANNELS\":return 8195;case\"AL_CONE_INNER_ANGLE\":return 4097;case\"AL_CONE_OUTER_ANGLE\":return 4098;case\"AL_CONE_OUTER_GAIN\":return 4130;case\"AL_DIRECTION\":return 4101;case\"AL_DISTANCE_MODEL\":return 53248;case\"AL_DOPPLER_FACTOR\":return 49152;case\"AL_DOPPLER_VELOCITY\":return 49153;case\"AL_EXPONENT_DISTANCE\":return 53253;case\"AL_EXPONENT_DISTANCE_CLAMPED\":return 53254;case\"AL_EXTENSIONS\":return 45060;case\"AL_FORMAT_MONO16\":return 4353;case\"AL_FORMAT_MONO8\":return 4352;case\"AL_FORMAT_STEREO16\":return 4355;case\"AL_FORMAT_STEREO8\":return 4354;case\"AL_FREQUENCY\":return 8193;case\"AL_GAIN\":return 4106;case\"AL_INITIAL\":return 4113;case\"AL_INVALID\":return-1;case\"AL_ILLEGAL_ENUM\":case\"AL_INVALID_ENUM\":return 40962;case\"AL_INVALID_NAME\":return 40961;case\"AL_ILLEGAL_COMMAND\":case\"AL_INVALID_OPERATION\":return 40964;case\"AL_INVALID_VALUE\":return 40963;case\"AL_INVERSE_DISTANCE\":return 53249;case\"AL_INVERSE_DISTANCE_CLAMPED\":return 53250;case\"AL_LINEAR_DISTANCE\":return 53251;case\"AL_LINEAR_DISTANCE_CLAMPED\":return 53252;case\"AL_LOOPING\":return 4103;case\"AL_MAX_DISTANCE\":return 4131;case\"AL_MAX_GAIN\":return 4110;case\"AL_MIN_GAIN\":return 4109;case\"AL_NONE\":return 0;case\"AL_NO_ERROR\":return 0;case\"AL_ORIENTATION\":return 4111;case\"AL_OUT_OF_MEMORY\":return 40965;case\"AL_PAUSED\":return 4115;case\"AL_PENDING\":return 8209;case\"AL_PITCH\":return 4099;case\"AL_PLAYING\":return 4114;case\"AL_POSITION\":return 4100;case\"AL_PROCESSED\":return 8210;case\"AL_REFERENCE_DISTANCE\":return 4128;case\"AL_RENDERER\":return 45059;case\"AL_ROLLOFF_FACTOR\":return 4129;case\"AL_SAMPLE_OFFSET\":return 4133;case\"AL_SEC_OFFSET\":return 4132;case\"AL_SIZE\":return 8196;case\"AL_SOURCE_RELATIVE\":return 514;case\"AL_SOURCE_STATE\":return 4112;case\"AL_SOURCE_TYPE\":return 4135;case\"AL_SPEED_OF_SOUND\":return 49155;case\"AL_STATIC\":return 4136;case\"AL_STOPPED\":return 4116;case\"AL_STREAMING\":return 4137;case\"AL_UNDETERMINED\":return 4144;case\"AL_UNUSED\":return 8208;case\"AL_VELOCITY\":return 4102;case\"AL_VENDOR\":return 45057;case\"AL_VERSION\":return 45058;case\"AL_AUTO_SOFT\":return 2;case\"AL_SOURCE_DISTANCE_MODEL\":return 512;case\"AL_SOURCE_SPATIALIZE_SOFT\":return 4628;case\"AL_LOOP_POINTS_SOFT\":return 8213;case\"AL_BYTE_LENGTH_SOFT\":return 8201;case\"AL_SAMPLE_LENGTH_SOFT\":return 8202;case\"AL_SEC_LENGTH_SOFT\":return 8203;case\"AL_FORMAT_MONO_FLOAT32\":return 65552;case\"AL_FORMAT_STEREO_FLOAT32\":return 65553;default:AL.currentCtx.err=40963;return 0}}Module[\"_alGetEnumValue\"]=_alGetEnumValue;_alGetEnumValue.sig=\"ii\";function _alGetError(){if(!AL.currentCtx){return 40964}else{var err=AL.currentCtx.err;AL.currentCtx.err=0;return err}}Module[\"_alGetError\"]=_alGetError;_alGetError.sig=\"i\";function _alGetFloat(param){var val=AL.getGlobalParam(\"alGetFloat\",param);if(val===null){return 0}switch(param){case 49152:case 49155:case 53248:return val;default:return 0}}Module[\"_alGetFloat\"]=_alGetFloat;_alGetFloat.sig=\"fi\";function _alGetFloatv(param,pValues){var val=AL.getGlobalParam(\"alGetFloatv\",param);if(val===null||!pValues){return}switch(param){case 49152:case 49155:case 53248:HEAPF32[pValues>>2]=val;break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetFloatv\"]=_alGetFloatv;_alGetFloatv.sig=\"vii\";function _alGetInteger(param){var val=AL.getGlobalParam(\"alGetInteger\",param);if(val===null){return 0}switch(param){case 49152:case 49155:case 53248:return val;default:AL.currentCtx.err=40962;return 0}}Module[\"_alGetInteger\"]=_alGetInteger;_alGetInteger.sig=\"ii\";function _alGetIntegerv(param,pValues){var val=AL.getGlobalParam(\"alGetIntegerv\",param);if(val===null||!pValues){return}switch(param){case 49152:case 49155:case 53248:HEAP32[pValues>>2]=val;break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetIntegerv\"]=_alGetIntegerv;_alGetIntegerv.sig=\"vii\";function _alGetListener3f(param,pValue0,pValue1,pValue2){var val=AL.getListenerParam(\"alGetListener3f\",param);if(val===null){return}if(!pValue0||!pValue1||!pValue2){AL.currentCtx.err=40963;return}switch(param){case 4100:case 4102:HEAPF32[pValue0>>2]=val[0];HEAPF32[pValue1>>2]=val[1];HEAPF32[pValue2>>2]=val[2];break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetListener3f\"]=_alGetListener3f;_alGetListener3f.sig=\"viiii\";function _alGetListener3i(param,pValue0,pValue1,pValue2){var val=AL.getListenerParam(\"alGetListener3i\",param);if(val===null){return}if(!pValue0||!pValue1||!pValue2){AL.currentCtx.err=40963;return}switch(param){case 4100:case 4102:HEAP32[pValue0>>2]=val[0];HEAP32[pValue1>>2]=val[1];HEAP32[pValue2>>2]=val[2];break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetListener3i\"]=_alGetListener3i;_alGetListener3i.sig=\"viiii\";function _alGetListenerf(param,pValue){var val=AL.getListenerParam(\"alGetListenerf\",param);if(val===null){return}if(!pValue){AL.currentCtx.err=40963;return}switch(param){case 4106:HEAPF32[pValue>>2]=val;break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetListenerf\"]=_alGetListenerf;_alGetListenerf.sig=\"vii\";function _alGetListenerfv(param,pValues){var val=AL.getListenerParam(\"alGetListenerfv\",param);if(val===null){return}if(!pValues){AL.currentCtx.err=40963;return}switch(param){case 4100:case 4102:HEAPF32[pValues>>2]=val[0];HEAPF32[pValues+4>>2]=val[1];HEAPF32[pValues+8>>2]=val[2];break;case 4111:HEAPF32[pValues>>2]=val[0];HEAPF32[pValues+4>>2]=val[1];HEAPF32[pValues+8>>2]=val[2];HEAPF32[pValues+12>>2]=val[3];HEAPF32[pValues+16>>2]=val[4];HEAPF32[pValues+20>>2]=val[5];break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetListenerfv\"]=_alGetListenerfv;_alGetListenerfv.sig=\"vii\";function _alGetListeneri(param,pValue){var val=AL.getListenerParam(\"alGetListeneri\",param);if(val===null){return}if(!pValue){AL.currentCtx.err=40963;return}AL.currentCtx.err=40962}Module[\"_alGetListeneri\"]=_alGetListeneri;_alGetListeneri.sig=\"vii\";function _alGetListeneriv(param,pValues){var val=AL.getListenerParam(\"alGetListeneriv\",param);if(val===null){return}if(!pValues){AL.currentCtx.err=40963;return}switch(param){case 4100:case 4102:HEAP32[pValues>>2]=val[0];HEAP32[pValues+4>>2]=val[1];HEAP32[pValues+8>>2]=val[2];break;case 4111:HEAP32[pValues>>2]=val[0];HEAP32[pValues+4>>2]=val[1];HEAP32[pValues+8>>2]=val[2];HEAP32[pValues+12>>2]=val[3];HEAP32[pValues+16>>2]=val[4];HEAP32[pValues+20>>2]=val[5];break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetListeneriv\"]=_alGetListeneriv;_alGetListeneriv.sig=\"vii\";function _alGetSource3f(sourceId,param,pValue0,pValue1,pValue2){var val=AL.getSourceParam(\"alGetSource3f\",sourceId,param);if(val===null){return}if(!pValue0||!pValue1||!pValue2){AL.currentCtx.err=40963;return}switch(param){case 4100:case 4101:case 4102:HEAPF32[pValue0>>2]=val[0];HEAPF32[pValue1>>2]=val[1];HEAPF32[pValue2>>2]=val[2];break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetSource3f\"]=_alGetSource3f;_alGetSource3f.sig=\"viiiii\";function _alGetSource3i(source,param,pValue0,pValue1,pValue2){var val=AL.getSourceParam(\"alGetSource3i\",sourceId,param);if(val===null){return}if(!pValue0||!pValue1||!pValue2){AL.currentCtx.err=40963;return}switch(param){case 4100:case 4101:case 4102:HEAP32[pValue0>>2]=val[0];HEAP32[pValue1>>2]=val[1];HEAP32[pValue2>>2]=val[2];break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetSource3i\"]=_alGetSource3i;_alGetSource3i.sig=\"viiiii\";function _alGetSourcef(sourceId,param,pValue){var val=AL.getSourceParam(\"alGetSourcef\",sourceId,param);if(val===null){return}if(!pValue){AL.currentCtx.err=40963;return}switch(param){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:HEAPF32[pValue>>2]=val;break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetSourcef\"]=_alGetSourcef;_alGetSourcef.sig=\"viii\";function _alGetSourcefv(sourceId,param,pValues){var val=AL.getSourceParam(\"alGetSourcefv\",sourceId,param);if(val===null){return}if(!pValues){AL.currentCtx.err=40963;return}switch(param){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:HEAPF32[pValues>>2]=val[0];break;case 4100:case 4101:case 4102:HEAPF32[pValues>>2]=val[0];HEAPF32[pValues+4>>2]=val[1];HEAPF32[pValues+8>>2]=val[2];break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetSourcefv\"]=_alGetSourcefv;_alGetSourcefv.sig=\"viii\";function _alGetSourcei(sourceId,param,pValue){var val=AL.getSourceParam(\"alGetSourcei\",sourceId,param);if(val===null){return}if(!pValue){AL.currentCtx.err=40963;return}switch(param){case 514:case 4097:case 4098:case 4103:case 4105:case 4112:case 4117:case 4118:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4135:case 4628:case 8201:case 8202:case 53248:HEAP32[pValue>>2]=val;break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetSourcei\"]=_alGetSourcei;_alGetSourcei.sig=\"viii\";function _alGetSourceiv(sourceId,param,pValues){var val=AL.getSourceParam(\"alGetSourceiv\",sourceId,param);if(val===null){return}if(!pValues){AL.currentCtx.err=40963;return}switch(param){case 514:case 4097:case 4098:case 4103:case 4105:case 4112:case 4117:case 4118:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4135:case 4628:case 8201:case 8202:case 53248:HEAP32[pValues>>2]=val;break;case 4100:case 4101:case 4102:HEAP32[pValues>>2]=val[0];HEAP32[pValues+4>>2]=val[1];HEAP32[pValues+8>>2]=val[2];break;default:AL.currentCtx.err=40962;return}}Module[\"_alGetSourceiv\"]=_alGetSourceiv;_alGetSourceiv.sig=\"viii\";function _alGetString(param){if(!AL.currentCtx){return 0}if(AL.stringCache[param]){return AL.stringCache[param]}var ret;switch(param){case 0:ret=\"No Error\";break;case 40961:ret=\"Invalid Name\";break;case 40962:ret=\"Invalid Enum\";break;case 40963:ret=\"Invalid Value\";break;case 40964:ret=\"Invalid Operation\";break;case 40965:ret=\"Out of Memory\";break;case 45057:ret=\"Emscripten\";break;case 45058:ret=\"1.1\";break;case 45059:ret=\"WebAudio\";break;case 45060:ret=\"\";for(var ext in AL.AL_EXTENSIONS){ret=ret.concat(ext);ret=ret.concat(\" \")}ret=ret.trim();break;default:AL.currentCtx.err=40962;return 0}ret=allocate(intArrayFromString(ret),ALLOC_NORMAL);AL.stringCache[param]=ret;return ret}Module[\"_alGetString\"]=_alGetString;_alGetString.sig=\"ii\";function _alIsBuffer(bufferId){if(!AL.currentCtx){return false}if(bufferId>AL.buffers.length){return false}if(!AL.buffers[bufferId]){return false}else{return true}}Module[\"_alIsBuffer\"]=_alIsBuffer;_alIsBuffer.sig=\"ii\";function _alIsEnabled(param){if(!AL.currentCtx){return 0}switch(pname){case\"AL_SOURCE_DISTANCE_MODEL\":return AL.currentCtx.sourceDistanceModel?0:1;default:AL.currentCtx.err=40962;return 0}}Module[\"_alIsEnabled\"]=_alIsEnabled;_alIsEnabled.sig=\"ii\";function _alIsExtensionPresent(pExtName){name=UTF8ToString(pExtName);return AL.AL_EXTENSIONS[name]?1:0}Module[\"_alIsExtensionPresent\"]=_alIsExtensionPresent;_alIsExtensionPresent.sig=\"ii\";function _alIsSource(sourceId){if(!AL.currentCtx){return false}if(!AL.currentCtx.sources[sourceId]){return false}else{return true}}Module[\"_alIsSource\"]=_alIsSource;_alIsSource.sig=\"ii\";function _alListener3f(param,value0,value1,value2){switch(param){case 4100:case 4102:AL.paramArray[0]=value0;AL.paramArray[1]=value1;AL.paramArray[2]=value2;AL.setListenerParam(\"alListener3f\",param,AL.paramArray);break;default:AL.setListenerParam(\"alListener3f\",param,null);break}}Module[\"_alListener3f\"]=_alListener3f;_alListener3f.sig=\"vifff\";function _alListener3i(param,value0,value1,value2){switch(param){case 4100:case 4102:AL.paramArray[0]=value0;AL.paramArray[1]=value1;AL.paramArray[2]=value2;AL.setListenerParam(\"alListener3i\",param,AL.paramArray);break;default:AL.setListenerParam(\"alListener3i\",param,null);break}}Module[\"_alListener3i\"]=_alListener3i;_alListener3i.sig=\"viiii\";function _alListenerf(param,value){switch(param){case 4106:AL.setListenerParam(\"alListenerf\",param,value);break;default:AL.setListenerParam(\"alListenerf\",param,null);break}}Module[\"_alListenerf\"]=_alListenerf;_alListenerf.sig=\"vif\";function _alListenerfv(param,pValues){if(!AL.currentCtx){return}if(!pValues){AL.currentCtx.err=40963;return}switch(param){case 4100:case 4102:AL.paramArray[0]=HEAPF32[pValues>>2];AL.paramArray[1]=HEAPF32[pValues+4>>2];AL.paramArray[2]=HEAPF32[pValues+8>>2];AL.setListenerParam(\"alListenerfv\",param,AL.paramArray);break;case 4111:AL.paramArray[0]=HEAPF32[pValues>>2];AL.paramArray[1]=HEAPF32[pValues+4>>2];AL.paramArray[2]=HEAPF32[pValues+8>>2];AL.paramArray[3]=HEAPF32[pValues+12>>2];AL.paramArray[4]=HEAPF32[pValues+16>>2];AL.paramArray[5]=HEAPF32[pValues+20>>2];AL.setListenerParam(\"alListenerfv\",param,AL.paramArray);break;default:AL.setListenerParam(\"alListenerfv\",param,null);break}}Module[\"_alListenerfv\"]=_alListenerfv;_alListenerfv.sig=\"vii\";function _alListeneri(param,value){AL.setListenerParam(\"alListeneri\",param,null)}Module[\"_alListeneri\"]=_alListeneri;_alListeneri.sig=\"vii\";function _alListeneriv(param,pValues){if(!AL.currentCtx){return}if(!pValues){AL.currentCtx.err=40963;return}switch(param){case 4100:case 4102:AL.paramArray[0]=HEAP32[pValues>>2];AL.paramArray[1]=HEAP32[pValues+4>>2];AL.paramArray[2]=HEAP32[pValues+8>>2];AL.setListenerParam(\"alListeneriv\",param,AL.paramArray);break;case 4111:AL.paramArray[0]=HEAP32[pValues>>2];AL.paramArray[1]=HEAP32[pValues+4>>2];AL.paramArray[2]=HEAP32[pValues+8>>2];AL.paramArray[3]=HEAP32[pValues+12>>2];AL.paramArray[4]=HEAP32[pValues+16>>2];AL.paramArray[5]=HEAP32[pValues+20>>2];AL.setListenerParam(\"alListeneriv\",param,AL.paramArray);break;default:AL.setListenerParam(\"alListeneriv\",param,null);break}}Module[\"_alListeneriv\"]=_alListeneriv;_alListeneriv.sig=\"vii\";function _alSource3f(sourceId,param,value0,value1,value2){switch(param){case 4100:case 4101:case 4102:AL.paramArray[0]=value0;AL.paramArray[1]=value1;AL.paramArray[2]=value2;AL.setSourceParam(\"alSource3f\",sourceId,param,AL.paramArray);break;default:AL.setSourceParam(\"alSource3f\",sourceId,param,null);break}}Module[\"_alSource3f\"]=_alSource3f;_alSource3f.sig=\"viifff\";function _alSource3i(sourceId,param,value0,value1,value2){switch(param){case 4100:case 4101:case 4102:AL.paramArray[0]=value0;AL.paramArray[1]=value1;AL.paramArray[2]=value2;AL.setSourceParam(\"alSource3i\",sourceId,param,AL.paramArray);break;default:AL.setSourceParam(\"alSource3i\",sourceId,param,null);break}}Module[\"_alSource3i\"]=_alSource3i;_alSource3i.sig=\"viiiii\";function _alSourcePause(sourceId){if(!AL.currentCtx){return}var src=AL.currentCtx.sources[sourceId];if(!src){AL.currentCtx.err=40961;return}AL.setSourceState(src,4115)}Module[\"_alSourcePause\"]=_alSourcePause;_alSourcePause.sig=\"vi\";function _alSourcePausev(count,pSourceIds){if(!AL.currentCtx){return}if(!pSourceIds){AL.currentCtx.err=40963}for(var i=0;i<count;++i){if(!AL.currentCtx.sources[HEAP32[pSourceIds+i*4>>2]]){AL.currentCtx.err=40961;return}}for(var i=0;i<count;++i){AL.setSourceState(HEAP32[pSourceIds+i*4>>2],4115)}}Module[\"_alSourcePausev\"]=_alSourcePausev;_alSourcePausev.sig=\"vii\";function _alSourcePlay(sourceId){if(!AL.currentCtx){return}var src=AL.currentCtx.sources[sourceId];if(!src){AL.currentCtx.err=40961;return}AL.setSourceState(src,4114)}Module[\"_alSourcePlay\"]=_alSourcePlay;_alSourcePlay.sig=\"vi\";function _alSourcePlayv(count,pSourceIds){if(!AL.currentCtx){return}if(!pSourceIds){AL.currentCtx.err=40963}for(var i=0;i<count;++i){if(!AL.currentCtx.sources[HEAP32[pSourceIds+i*4>>2]]){AL.currentCtx.err=40961;return}}for(var i=0;i<count;++i){AL.setSourceState(HEAP32[pSourceIds+i*4>>2],4114)}}Module[\"_alSourcePlayv\"]=_alSourcePlayv;_alSourcePlayv.sig=\"vii\";function _alSourceQueueBuffers(sourceId,count,pBufferIds){if(!AL.currentCtx){return}var src=AL.currentCtx.sources[sourceId];if(!src){AL.currentCtx.err=40961;return}if(src.type===4136){AL.currentCtx.err=40964;return}if(count===0){return}var templateBuf=AL.buffers[0];for(var i=0;i<src.bufQueue.length;i++){if(src.bufQueue[i].id!==0){templateBuf=src.bufQueue[i];break}}for(var i=0;i<count;++i){var bufId=HEAP32[pBufferIds+i*4>>2];var buf=AL.buffers[bufId];if(!buf){AL.currentCtx.err=40961;return}if(templateBuf.id!==0&&(buf.frequency!==templateBuf.frequency||buf.bytesPerSample!==templateBuf.bytesPerSample||buf.channels!==templateBuf.channels)){AL.currentCtx.err=40964}}if(src.bufQueue.length===1&&src.bufQueue[0].id===0){src.bufQueue.length=0}src.type=4137;for(var i=0;i<count;++i){var bufId=HEAP32[pBufferIds+i*4>>2];var buf=AL.buffers[bufId];buf.refCount++;src.bufQueue.push(buf)}if(src.looping){AL.cancelPendingSourceAudio(src)}AL.initSourcePanner(src);AL.scheduleSourceAudio(src)}Module[\"_alSourceQueueBuffers\"]=_alSourceQueueBuffers;_alSourceQueueBuffers.sig=\"viii\";function _alSourceRewind(sourceId){if(!AL.currentCtx){return}var src=AL.currentCtx.sources[sourceId];if(!src){AL.currentCtx.err=40961;return}AL.setSourceState(src,4116);AL.setSourceState(src,4113)}Module[\"_alSourceRewind\"]=_alSourceRewind;_alSourceRewind.sig=\"vi\";function _alSourceRewindv(count,pSourceIds){if(!AL.currentCtx){return}if(!pSourceIds){AL.currentCtx.err=40963}for(var i=0;i<count;++i){if(!AL.currentCtx.sources[HEAP32[pSourceIds+i*4>>2]]){AL.currentCtx.err=40961;return}}for(var i=0;i<count;++i){AL.setSourceState(HEAP32[pSourceIds+i*4>>2],4113)}}Module[\"_alSourceRewindv\"]=_alSourceRewindv;_alSourceRewindv.sig=\"vii\";function _alSourceStop(sourceId){if(!AL.currentCtx){return}var src=AL.currentCtx.sources[sourceId];if(!src){AL.currentCtx.err=40961;return}AL.setSourceState(src,4116)}Module[\"_alSourceStop\"]=_alSourceStop;_alSourceStop.sig=\"vi\";function _alSourceStopv(count,pSourceIds){if(!AL.currentCtx){return}if(!pSourceIds){AL.currentCtx.err=40963}for(var i=0;i<count;++i){if(!AL.currentCtx.sources[HEAP32[pSourceIds+i*4>>2]]){AL.currentCtx.err=40961;return}}for(var i=0;i<count;++i){AL.setSourceState(HEAP32[pSourceIds+i*4>>2],4116)}}Module[\"_alSourceStopv\"]=_alSourceStopv;_alSourceStopv.sig=\"vii\";function _alSourceUnqueueBuffers(sourceId,count,pBufferIds){if(!AL.currentCtx){return}var src=AL.currentCtx.sources[sourceId];if(!src){AL.currentCtx.err=40961;return}if(count>(src.bufQueue.length===1&&src.bufQueue[0].id===0?0:src.bufsProcessed)){AL.currentCtx.err=40963;return}if(count===0){return}for(var i=0;i<count;i++){var buf=src.bufQueue.shift();buf.refCount--;HEAP32[pBufferIds+i*4>>2]=buf.id;src.bufsProcessed--}if(src.bufQueue.length===0){src.bufQueue.push(AL.buffers[0])}AL.initSourcePanner(src);AL.scheduleSourceAudio(src)}Module[\"_alSourceUnqueueBuffers\"]=_alSourceUnqueueBuffers;_alSourceUnqueueBuffers.sig=\"viii\";function _alSourcef(sourceId,param,value){switch(param){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:AL.setSourceParam(\"alSourcef\",sourceId,param,value);break;default:AL.setSourceParam(\"alSourcef\",sourceId,param,null);break}}Module[\"_alSourcef\"]=_alSourcef;_alSourcef.sig=\"viif\";function _alSourcefv(sourceId,param,pValues){if(!AL.currentCtx){return}if(!pValues){AL.currentCtx.err=40963;return}switch(param){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:var val=HEAPF32[pValues>>2];AL.setSourceParam(\"alSourcefv\",sourceId,param,val);break;case 4100:case 4101:case 4102:AL.paramArray[0]=HEAPF32[pValues>>2];AL.paramArray[1]=HEAPF32[pValues+4>>2];AL.paramArray[2]=HEAPF32[pValues+8>>2];AL.setSourceParam(\"alSourcefv\",sourceId,param,AL.paramArray);break;default:AL.setSourceParam(\"alSourcefv\",sourceId,param,null);break}}Module[\"_alSourcefv\"]=_alSourcefv;_alSourcefv.sig=\"viii\";function _alSourceiv(source,param,pValues){if(!AL.currentCtx){return}if(!pValues){AL.currentCtx.err=40963;return}switch(param){case 514:case 4097:case 4098:case 4103:case 4105:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4628:case 8201:case 8202:case 53248:var val=HEAP32[pValues>>2];AL.setSourceParam(\"alSourceiv\",sourceId,param,val);break;case 4100:case 4101:case 4102:AL.paramArray[0]=HEAP32[pValues>>2];AL.paramArray[1]=HEAP32[pValues+4>>2];AL.paramArray[2]=HEAP32[pValues+8>>2];AL.setSourceParam(\"alSourceiv\",sourceId,param,AL.paramArray);break;default:AL.setSourceParam(\"alSourceiv\",sourceId,param,null);break}}Module[\"_alSourceiv\"]=_alSourceiv;_alSourceiv.sig=\"viii\";function _alSpeedOfSound(value){AL.setGlobalParam(\"alSpeedOfSound\",49155,value)}Module[\"_alSpeedOfSound\"]=_alSpeedOfSound;_alSpeedOfSound.sig=\"vi\";var __sigalrm_handler=0;Module[\"__sigalrm_handler\"]=__sigalrm_handler;function _alarm(seconds){setTimeout(function(){if(__sigalrm_handler)wasmTable.get(__sigalrm_handler)(0)},seconds*1e3)}Module[\"_alarm\"]=_alarm;function _alcCaptureCloseDevice(deviceId){var c=AL.requireValidCaptureDevice(deviceId,\"alcCaptureCloseDevice\");if(!c)return false;delete AL.captures[deviceId];AL.freeIds.push(deviceId);if(c.mediaStreamSourceNode)c.mediaStreamSourceNode.disconnect();if(c.mergerNode)c.mergerNode.disconnect();if(c.splitterNode)c.splitterNode.disconnect();if(c.scriptProcessorNode)c.scriptProcessorNode.disconnect();if(c.mediaStream){c.mediaStream.getTracks().forEach(function(track){track.stop()})}delete c.buffers;c.capturedFrameCount=0;c.isCapturing=false;return true}Module[\"_alcCaptureCloseDevice\"]=_alcCaptureCloseDevice;_alcCaptureCloseDevice.sig=\"ii\";function listenOnce(object,event,func){object.addEventListener(event,func,{\"once\":true})}Module[\"listenOnce\"]=listenOnce;function autoResumeAudioContext(ctx,elements){if(!elements){elements=[document,document.getElementById(\"canvas\")]}[\"keydown\",\"mousedown\",\"touchstart\"].forEach(function(event){elements.forEach(function(element){if(element){listenOnce(element,event,function(){if(ctx.state===\"suspended\")ctx.resume()})}})})}Module[\"autoResumeAudioContext\"]=autoResumeAudioContext;function _alcCaptureOpenDevice(pDeviceName,requestedSampleRate,format,bufferFrameCapacity){var resolvedDeviceName=AL.CAPTURE_DEVICE_NAME;if(pDeviceName!==0){resolvedDeviceName=UTF8ToString(pDeviceName);if(resolvedDeviceName!==AL.CAPTURE_DEVICE_NAME){AL.alcErr=40965;return 0}}if(bufferFrameCapacity<0){AL.alcErr=40964;return 0}navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;var has_getUserMedia=navigator.getUserMedia||navigator.mediaDevices&&navigator.mediaDevices.getUserMedia;if(!has_getUserMedia){AL.alcErr=40965;return 0}var AudioContext=window.AudioContext||window.webkitAudioContext;if(!AL.sharedCaptureAudioCtx){try{AL.sharedCaptureAudioCtx=new AudioContext}catch(e){AL.alcErr=40965;return 0}}autoResumeAudioContext(AL.sharedCaptureAudioCtx);var outputChannelCount;switch(format){case 65552:case 4353:case 4352:outputChannelCount=1;break;case 65553:case 4355:case 4354:outputChannelCount=2;break;default:AL.alcErr=40964;return 0}function newF32Array(cap){return new Float32Array(cap)}function newI16Array(cap){return new Int16Array(cap)}function newU8Array(cap){return new Uint8Array(cap)}var requestedSampleType;var newSampleArray;switch(format){case 65552:case 65553:requestedSampleType=\"f32\";newSampleArray=newF32Array;break;case 4353:case 4355:requestedSampleType=\"i16\";newSampleArray=newI16Array;break;case 4352:case 4354:requestedSampleType=\"u8\";newSampleArray=newU8Array;break}var buffers=[];try{for(var chan=0;chan<outputChannelCount;++chan){buffers[chan]=newSampleArray(bufferFrameCapacity)}}catch(e){AL.alcErr=40965;return 0}var newCapture={audioCtx:AL.sharedCaptureAudioCtx,deviceName:resolvedDeviceName,requestedSampleRate:requestedSampleRate,requestedSampleType:requestedSampleType,outputChannelCount:outputChannelCount,inputChannelCount:null,mediaStreamError:null,mediaStreamSourceNode:null,mediaStream:null,mergerNode:null,splitterNode:null,scriptProcessorNode:null,isCapturing:false,buffers:buffers,get bufferFrameCapacity(){return buffers[0].length},capturePlayhead:0,captureReadhead:0,capturedFrameCount:0};var onError=function(mediaStreamError){newCapture.mediaStreamError=mediaStreamError};var onSuccess=function(mediaStream){newCapture.mediaStreamSourceNode=newCapture.audioCtx.createMediaStreamSource(mediaStream);newCapture.mediaStream=mediaStream;var inputChannelCount=1;switch(newCapture.mediaStreamSourceNode.channelCountMode){case\"max\":inputChannelCount=outputChannelCount;break;case\"clamped-max\":inputChannelCount=Math.min(outputChannelCount,newCapture.mediaStreamSourceNode.channelCount);break;case\"explicit\":inputChannelCount=newCapture.mediaStreamSourceNode.channelCount;break}newCapture.inputChannelCount=inputChannelCount;var processorFrameCount=512;newCapture.scriptProcessorNode=newCapture.audioCtx.createScriptProcessor(processorFrameCount,inputChannelCount,outputChannelCount);if(inputChannelCount>outputChannelCount){newCapture.mergerNode=newCapture.audioCtx.createChannelMerger(inputChannelCount);newCapture.mediaStreamSourceNode.connect(newCapture.mergerNode);newCapture.mergerNode.connect(newCapture.scriptProcessorNode)}else if(inputChannelCount<outputChannelCount){newCapture.splitterNode=newCapture.audioCtx.createChannelSplitter(outputChannelCount);newCapture.mediaStreamSourceNode.connect(newCapture.splitterNode);newCapture.splitterNode.connect(newCapture.scriptProcessorNode)}else{newCapture.mediaStreamSourceNode.connect(newCapture.scriptProcessorNode)}newCapture.scriptProcessorNode.connect(newCapture.audioCtx.destination);newCapture.scriptProcessorNode.onaudioprocess=function(audioProcessingEvent){if(!newCapture.isCapturing){return}var c=newCapture;var srcBuf=audioProcessingEvent.inputBuffer;switch(format){case 65552:var channel0=srcBuf.getChannelData(0);for(var i=0;i<srcBuf.length;++i){var wi=(c.capturePlayhead+i)%c.bufferFrameCapacity;c.buffers[0][wi]=channel0[i]}break;case 65553:var channel0=srcBuf.getChannelData(0);var channel1=srcBuf.getChannelData(1);for(var i=0;i<srcBuf.length;++i){var wi=(c.capturePlayhead+i)%c.bufferFrameCapacity;c.buffers[0][wi]=channel0[i];c.buffers[1][wi]=channel1[i]}break;case 4353:var channel0=srcBuf.getChannelData(0);for(var i=0;i<srcBuf.length;++i){var wi=(c.capturePlayhead+i)%c.bufferFrameCapacity;c.buffers[0][wi]=channel0[i]*32767}break;case 4355:var channel0=srcBuf.getChannelData(0);var channel1=srcBuf.getChannelData(1);for(var i=0;i<srcBuf.length;++i){var wi=(c.capturePlayhead+i)%c.bufferFrameCapacity;c.buffers[0][wi]=channel0[i]*32767;c.buffers[1][wi]=channel1[i]*32767}break;case 4352:var channel0=srcBuf.getChannelData(0);for(var i=0;i<srcBuf.length;++i){var wi=(c.capturePlayhead+i)%c.bufferFrameCapacity;c.buffers[0][wi]=(channel0[i]+1)*127}break;case 4354:var channel0=srcBuf.getChannelData(0);var channel1=srcBuf.getChannelData(1);for(var i=0;i<srcBuf.length;++i){var wi=(c.capturePlayhead+i)%c.bufferFrameCapacity;c.buffers[0][wi]=(channel0[i]+1)*127;c.buffers[1][wi]=(channel1[i]+1)*127}break}c.capturePlayhead+=srcBuf.length;c.capturePlayhead%=c.bufferFrameCapacity;c.capturedFrameCount+=srcBuf.length;c.capturedFrameCount=Math.min(c.capturedFrameCount,c.bufferFrameCapacity)}};if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){navigator.mediaDevices.getUserMedia({audio:true}).then(onSuccess).catch(onError)}else{navigator.getUserMedia({audio:true},onSuccess,onError)}var id=AL.newId();AL.captures[id]=newCapture;return id}Module[\"_alcCaptureOpenDevice\"]=_alcCaptureOpenDevice;_alcCaptureOpenDevice.sig=\"iiiii\";function _alcCaptureSamples(deviceId,pFrames,requestedFrameCount){var c=AL.requireValidCaptureDevice(deviceId,\"alcCaptureSamples\");if(!c)return;var dstfreq=c.requestedSampleRate;var srcfreq=c.audioCtx.sampleRate;var fratio=srcfreq/dstfreq;if(requestedFrameCount<0||requestedFrameCount>c.capturedFrameCount/fratio){console.error(\"alcCaptureSamples() with invalid bufferSize\");AL.alcErr=40964;return}function setF32Sample(i,sample){HEAPF32[pFrames+4*i>>2]=sample}function setI16Sample(i,sample){HEAP16[pFrames+2*i>>1]=sample}function setU8Sample(i,sample){HEAP8[pFrames+i>>0]=sample}var setSample;switch(c.requestedSampleType){case\"f32\":setSample=setF32Sample;break;case\"i16\":setSample=setI16Sample;break;case\"u8\":setSample=setU8Sample;break;default:return}if(Math.floor(fratio)==fratio){for(var i=0,frame_i=0;frame_i<requestedFrameCount;++frame_i){for(var chan=0;chan<c.buffers.length;++chan,++i){setSample(i,c.buffers[chan][c.captureReadhead])}c.captureReadhead=(fratio+c.captureReadhead)%c.bufferFrameCapacity}}else{for(var i=0,frame_i=0;frame_i<requestedFrameCount;++frame_i){var lefti=Math.floor(c.captureReadhead);var righti=Math.ceil(c.captureReadhead);var d=c.captureReadhead-lefti;for(var chan=0;chan<c.buffers.length;++chan,++i){var lefts=c.buffers[chan][lefti];var rights=c.buffers[chan][righti];setSample(i,(1-d)*lefts+d*rights)}c.captureReadhead=(c.captureReadhead+fratio)%c.bufferFrameCapacity}}c.capturedFrameCount=0}Module[\"_alcCaptureSamples\"]=_alcCaptureSamples;_alcCaptureSamples.sig=\"viii\";function _alcCaptureStart(deviceId){var c=AL.requireValidCaptureDevice(deviceId,\"alcCaptureStart\");if(!c)return;if(c.isCapturing){return}c.isCapturing=true;c.capturedFrameCount=0;c.capturePlayhead=0}Module[\"_alcCaptureStart\"]=_alcCaptureStart;_alcCaptureStart.sig=\"vi\";function _alcCaptureStop(deviceId){var c=AL.requireValidCaptureDevice(deviceId,\"alcCaptureStop\");if(!c)return;c.isCapturing=false}Module[\"_alcCaptureStop\"]=_alcCaptureStop;_alcCaptureStop.sig=\"vi\";function _alcCloseDevice(deviceId){if(!(deviceId in AL.deviceRefCounts)||AL.deviceRefCounts[deviceId]>0){return 0}delete AL.deviceRefCounts[deviceId];AL.freeIds.push(deviceId);return 1}Module[\"_alcCloseDevice\"]=_alcCloseDevice;_alcCloseDevice.sig=\"ii\";function _alcCreateContext(deviceId,pAttrList){if(!(deviceId in AL.deviceRefCounts)){AL.alcErr=40961;return 0}var options=null;var attrs=[];var hrtf=null;pAttrList>>=2;if(pAttrList){var attr=0;var val=0;while(true){attr=HEAP32[pAttrList++];attrs.push(attr);if(attr===0){break}val=HEAP32[pAttrList++];attrs.push(val);switch(attr){case 4103:if(!options){options={}}options.sampleRate=val;break;case 4112:case 4113:break;case 6546:switch(val){case 0:hrtf=false;break;case 1:hrtf=true;break;case 2:break;default:AL.alcErr=40964;return 0}break;case 6550:if(val!==0){AL.alcErr=40964;return 0}break;default:AL.alcErr=40964;return 0}}}var AudioContext=window.AudioContext||window.webkitAudioContext;var ac=null;try{if(options){ac=new AudioContext(options)}else{ac=new AudioContext}}catch(e){if(e.name===\"NotSupportedError\"){AL.alcErr=40964}else{AL.alcErr=40961}return 0}autoResumeAudioContext(ac);if(typeof ac.createGain===\"undefined\"){ac.createGain=ac.createGainNode}var gain=ac.createGain();gain.connect(ac.destination);var ctx={deviceId:deviceId,id:AL.newId(),attrs:attrs,audioCtx:ac,listener:{position:[0,0,0],velocity:[0,0,0],direction:[0,0,0],up:[0,0,0]},sources:[],interval:setInterval(function(){AL.scheduleContextAudio(ctx)},AL.QUEUE_INTERVAL),gain:gain,distanceModel:53250,speedOfSound:343.3,dopplerFactor:1,sourceDistanceModel:false,hrtf:hrtf||false,_err:0,get err(){return this._err},set err(val){if(this._err===0||val===0){this._err=val}}};AL.deviceRefCounts[deviceId]++;AL.contexts[ctx.id]=ctx;if(hrtf!==null){for(var ctxId in AL.contexts){var c=AL.contexts[ctxId];if(c.deviceId===deviceId){c.hrtf=hrtf;AL.updateContextGlobal(c)}}}return ctx.id}Module[\"_alcCreateContext\"]=_alcCreateContext;_alcCreateContext.sig=\"iii\";function _alcDestroyContext(contextId){var ctx=AL.contexts[contextId];if(AL.currentCtx===ctx){AL.alcErr=40962;return}if(AL.contexts[contextId].interval){clearInterval(AL.contexts[contextId].interval)}AL.deviceRefCounts[ctx.deviceId]--;delete AL.contexts[contextId];AL.freeIds.push(contextId)}Module[\"_alcDestroyContext\"]=_alcDestroyContext;_alcDestroyContext.sig=\"vi\";function _alcGetContextsDevice(contextId){if(contextId in AL.contexts){return AL.contexts[contextId].deviceId}else{return 0}}Module[\"_alcGetContextsDevice\"]=_alcGetContextsDevice;_alcGetContextsDevice.sig=\"ii\";function _alcGetCurrentContext(){if(AL.currentCtx!==null){return AL.currentCtx.id}else{return 0}}Module[\"_alcGetCurrentContext\"]=_alcGetCurrentContext;_alcGetCurrentContext.sig=\"i\";function _alcGetEnumValue(deviceId,pEnumName){if(deviceId!==0&&!(deviceId in AL.deviceRefCounts)){return 0}else if(!pEnumName){AL.alcErr=40964;return 0}name=UTF8ToString(pEnumName);switch(name){case\"ALC_NO_ERROR\":return 0;case\"ALC_INVALID_DEVICE\":return 40961;case\"ALC_INVALID_CONTEXT\":return 40962;case\"ALC_INVALID_ENUM\":return 40963;case\"ALC_INVALID_VALUE\":return 40964;case\"ALC_OUT_OF_MEMORY\":return 40965;case\"ALC_MAJOR_VERSION\":return 4096;case\"ALC_MINOR_VERSION\":return 4097;case\"ALC_ATTRIBUTES_SIZE\":return 4098;case\"ALC_ALL_ATTRIBUTES\":return 4099;case\"ALC_DEFAULT_DEVICE_SPECIFIER\":return 4100;case\"ALC_DEVICE_SPECIFIER\":return 4101;case\"ALC_EXTENSIONS\":return 4102;case\"ALC_FREQUENCY\":return 4103;case\"ALC_REFRESH\":return 4104;case\"ALC_SYNC\":return 4105;case\"ALC_MONO_SOURCES\":return 4112;case\"ALC_STEREO_SOURCES\":return 4113;case\"ALC_CAPTURE_DEVICE_SPECIFIER\":return 784;case\"ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER\":return 785;case\"ALC_CAPTURE_SAMPLES\":return 786;case\"ALC_HRTF_SOFT\":return 6546;case\"ALC_HRTF_ID_SOFT\":return 6550;case\"ALC_DONT_CARE_SOFT\":return 2;case\"ALC_HRTF_STATUS_SOFT\":return 6547;case\"ALC_NUM_HRTF_SPECIFIERS_SOFT\":return 6548;case\"ALC_HRTF_SPECIFIER_SOFT\":return 6549;case\"ALC_HRTF_DISABLED_SOFT\":return 0;case\"ALC_HRTF_ENABLED_SOFT\":return 1;case\"ALC_HRTF_DENIED_SOFT\":return 2;case\"ALC_HRTF_REQUIRED_SOFT\":return 3;case\"ALC_HRTF_HEADPHONES_DETECTED_SOFT\":return 4;case\"ALC_HRTF_UNSUPPORTED_FORMAT_SOFT\":return 5;default:AL.alcErr=40964;return 0}}Module[\"_alcGetEnumValue\"]=_alcGetEnumValue;_alcGetEnumValue.sig=\"iii\";function _alcGetError(deviceId){var err=AL.alcErr;AL.alcErr=0;return err}Module[\"_alcGetError\"]=_alcGetError;_alcGetError.sig=\"ii\";function _alcGetIntegerv(deviceId,param,size,pValues){if(size===0||!pValues){return}switch(param){case 4096:HEAP32[pValues>>2]=1;break;case 4097:HEAP32[pValues>>2]=1;break;case 4098:if(!(deviceId in AL.deviceRefCounts)){AL.alcErr=40961;return}if(!AL.currentCtx){AL.alcErr=40962;return}HEAP32[pValues>>2]=AL.currentCtx.attrs.length;break;case 4099:if(!(deviceId in AL.deviceRefCounts)){AL.alcErr=40961;return}if(!AL.currentCtx){AL.alcErr=40962;return}for(var i=0;i<AL.currentCtx.attrs.length;i++){HEAP32[pValues+i*4>>2]=AL.currentCtx.attrs[i]}break;case 4103:if(!(deviceId in AL.deviceRefCounts)){AL.alcErr=40961;return}if(!AL.currentCtx){AL.alcErr=40962;return}HEAP32[pValues>>2]=AL.currentCtx.audioCtx.sampleRate;break;case 4112:case 4113:if(!(deviceId in AL.deviceRefCounts)){AL.alcErr=40961;return}if(!AL.currentCtx){AL.alcErr=40962;return}HEAP32[pValues>>2]=2147483647;break;case 6546:case 6547:if(!(deviceId in AL.deviceRefCounts)){AL.alcErr=40961;return}var hrtfStatus=0;for(var ctxId in AL.contexts){var ctx=AL.contexts[ctxId];if(ctx.deviceId===deviceId){hrtfStatus=ctx.hrtf?1:0}}HEAP32[pValues>>2]=hrtfStatus;break;case 6548:if(!(deviceId in AL.deviceRefCounts)){AL.alcErr=40961;return}HEAP32[pValues>>2]=1;break;case 131075:if(!(deviceId in AL.deviceRefCounts)){AL.alcErr=40961;return}if(!AL.currentCtx){AL.alcErr=40962;return}HEAP32[pValues>>2]=1;case 786:var c=AL.requireValidCaptureDevice(deviceId,\"alcGetIntegerv\");if(!c){return}var n=c.capturedFrameCount;var dstfreq=c.requestedSampleRate;var srcfreq=c.audioCtx.sampleRate;var nsamples=Math.floor(n*(dstfreq/srcfreq));HEAP32[pValues>>2]=nsamples;break;default:AL.alcErr=40963;return}}Module[\"_alcGetIntegerv\"]=_alcGetIntegerv;_alcGetIntegerv.sig=\"viiii\";function _alcGetString(deviceId,param){if(AL.alcStringCache[param]){return AL.alcStringCache[param]}var ret;switch(param){case 0:ret=\"No Error\";break;case 40961:ret=\"Invalid Device\";break;case 40962:ret=\"Invalid Context\";break;case 40963:ret=\"Invalid Enum\";break;case 40964:ret=\"Invalid Value\";break;case 40965:ret=\"Out of Memory\";break;case 4100:if(typeof AudioContext!==\"undefined\"||typeof webkitAudioContext!==\"undefined\"){ret=AL.DEVICE_NAME}else{return 0}break;case 4101:if(typeof AudioContext!==\"undefined\"||typeof webkitAudioContext!==\"undefined\"){ret=AL.DEVICE_NAME.concat(\"\\0\")}else{ret=\"\\0\"}break;case 785:ret=AL.CAPTURE_DEVICE_NAME;break;case 784:if(deviceId===0)ret=AL.CAPTURE_DEVICE_NAME.concat(\"\\0\");else{var c=AL.requireValidCaptureDevice(deviceId,\"alcGetString\");if(!c){return 0}ret=c.deviceName}break;case 4102:if(!deviceId){AL.alcErr=40961;return 0}ret=\"\";for(var ext in AL.ALC_EXTENSIONS){ret=ret.concat(ext);ret=ret.concat(\" \")}ret=ret.trim();break;default:AL.alcErr=40963;return 0}ret=allocate(intArrayFromString(ret),ALLOC_NORMAL);AL.alcStringCache[param]=ret;return ret}Module[\"_alcGetString\"]=_alcGetString;_alcGetString.sig=\"iii\";function _alcIsExtensionPresent(deviceId,pExtName){var name=UTF8ToString(pExtName);return AL.ALC_EXTENSIONS[name]?1:0}Module[\"_alcIsExtensionPresent\"]=_alcIsExtensionPresent;_alcIsExtensionPresent.sig=\"iii\";function _alcMakeContextCurrent(contextId){if(contextId===0){AL.currentCtx=null;return 0}else{AL.currentCtx=AL.contexts[contextId];return 1}}Module[\"_alcMakeContextCurrent\"]=_alcMakeContextCurrent;_alcMakeContextCurrent.sig=\"ii\";function _alcOpenDevice(pDeviceName){if(pDeviceName){var name=UTF8ToString(pDeviceName);if(name!==AL.DEVICE_NAME){return 0}}if(typeof AudioContext!==\"undefined\"||typeof webkitAudioContext!==\"undefined\"){var deviceId=AL.newId();AL.deviceRefCounts[deviceId]=0;return deviceId}else{return 0}}Module[\"_alcOpenDevice\"]=_alcOpenDevice;_alcOpenDevice.sig=\"ii\";function _alcProcessContext(contextId){}Module[\"_alcProcessContext\"]=_alcProcessContext;_alcProcessContext.sig=\"vi\";function _alcSuspendContext(contextId){}Module[\"_alcSuspendContext\"]=_alcSuspendContext;_alcSuspendContext.sig=\"vi\";function _chroot(path){setErrNo(2);return-1}Module[\"_chroot\"]=_chroot;_chroot.sig=\"ii\";function _clock(){if(_clock.start===undefined)_clock.start=Date.now();return(Date.now()-_clock.start)*(1e6/1e3)|0}Module[\"_clock\"]=_clock;_clock.sig=\"i\";function _emscripten_get_now_res(){if(ENVIRONMENT_IS_NODE){return 1}else if(typeof dateNow!==\"undefined\"){return 1e3}else return 1e3}Module[\"_emscripten_get_now_res\"]=_emscripten_get_now_res;function _clock_getres(clk_id,res){var nsec;if(clk_id===0){nsec=1e3*1e3}else if(clk_id===1&&_emscripten_get_now_is_monotonic){nsec=_emscripten_get_now_res()}else{setErrNo(28);return-1}HEAP32[res>>2]=nsec/1e9|0;HEAP32[res+4>>2]=nsec;return 0}Module[\"_clock_getres\"]=_clock_getres;var DLFCN={error:null,errorMsg:null};Module[\"DLFCN\"]=DLFCN;function _dlclose(handle){var lib=LDSO.loadedLibs[handle];if(!lib){DLFCN.errorMsg=\"Tried to dlclose() unopened handle: \"+handle;return 1}if(--lib.refcount==0){delete LDSO.loadedLibNames[lib.name];delete LDSO.loadedLibs[handle]}return 0}Module[\"_dlclose\"]=_dlclose;_dlclose.sig=\"ii\";function stringToNewUTF8(jsString){var length=lengthBytesUTF8(jsString)+1;var cString=_malloc(length);stringToUTF8(jsString,cString,length);return cString}Module[\"stringToNewUTF8\"]=stringToNewUTF8;function _dlerror(){if(DLFCN.errorMsg===null){return 0}if(DLFCN.error)_free(DLFCN.error);DLFCN.error=stringToNewUTF8(DLFCN.errorMsg);DLFCN.errorMsg=null;return DLFCN.error}Module[\"_dlerror\"]=_dlerror;_dlerror.sig=\"i\";var ENV={};Module[\"ENV\"]=ENV;function _dlopen(filenameAddr,flags){var searchpaths=[];var filename;if(filenameAddr===0){filename=\"__main__\"}else{filename=UTF8ToString(filenameAddr);var isValidFile=function(filename){var target=FS.findObject(filename);return target&&!target.isFolder&&!target.isDevice};if(!isValidFile(filename)){if(ENV[\"LD_LIBRARY_PATH\"]){searchpaths=ENV[\"LD_LIBRARY_PATH\"].split(\":\")}for(var ident in searchpaths){var searchfile=PATH.join2(searchpaths[ident],filename);if(isValidFile(searchfile)){filename=searchfile;break}}}}if(!(flags&(1|2))){DLFCN.errorMsg=\"invalid mode for dlopen(): Either RTLD_LAZY or RTLD_NOW is required\";return 0}var jsflags={global:Boolean(flags&256),nodelete:Boolean(flags&4096),fs:FS,allowUndefined:true};try{return loadDynamicLibrary(filename,jsflags)}catch(e){DLFCN.errorMsg=\"Could not load dynamic lib: \"+filename+\"\\n\"+e;return 0}}Module[\"_dlopen\"]=_dlopen;_dlopen.sig=\"iii\";function _dlsym(handle,symbol){symbol=UTF8ToString(symbol);var result;symbol=\"byn$fpcast-emu$\"+symbol;if(handle==0){result=resolveGlobalSymbol(symbol,true);if(!result){DLFCN.errorMsg='Tried to lookup unknown symbol \"'+symbol+'\" in dynamic lib: RTLD_DEFAULT';return 0}}else{var lib=LDSO.loadedLibs[handle];if(!lib){DLFCN.errorMsg=\"Tried to dlsym() from an unopened handle: \"+handle;return 0}if(!lib.module.hasOwnProperty(symbol)){DLFCN.errorMsg='Tried to lookup unknown symbol \"'+symbol+'\" in dynamic lib: '+lib.name;return 0}result=lib.module[\"orig$\"+symbol];if(!result)result=lib.module[symbol]}if(typeof result===\"function\"){return addFunctionWasm(result,result.sig)}else{return result}}Module[\"_dlsym\"]=_dlsym;_dlsym.sig=\"iii\";function _emscripten_alcDevicePauseSOFT(deviceId){if(!(deviceId in AL.deviceRefCounts)){AL.alcErr=40961;return}if(AL.paused){return}AL.paused=true;for(ctxId in AL.contexts){var ctx=AL.contexts[ctxId];if(ctx.deviceId!==deviceId){continue}ctx.audioCtx.suspend();clearInterval(ctx.interval);ctx.interval=null}}Module[\"_emscripten_alcDevicePauseSOFT\"]=_emscripten_alcDevicePauseSOFT;_emscripten_alcDevicePauseSOFT.sig=\"vi\";function _emscripten_alcDeviceResumeSOFT(deviceId){if(!(deviceId in AL.deviceRefCounts)){AL.alcErr=40961;return}if(!AL.paused){return}AL.paused=false;for(ctxId in AL.contexts){var ctx=AL.contexts[ctxId];if(ctx.deviceId!==deviceId){continue}ctx.interval=setInterval(function(){AL.scheduleContextAudio(ctx)},AL.QUEUE_INTERVAL);ctx.audioCtx.resume()}}Module[\"_emscripten_alcDeviceResumeSOFT\"]=_emscripten_alcDeviceResumeSOFT;_emscripten_alcDeviceResumeSOFT.sig=\"vi\";function _emscripten_alcGetStringiSOFT(deviceId,param,index){if(!(deviceId in AL.deviceRefCounts)){AL.alcErr=40961;return 0}if(AL.alcStringCache[param]){return AL.alcStringCache[param]}var ret;switch(param){case 6549:if(index===0){ret=\"Web Audio HRTF\"}else{AL.alcErr=40964;return 0}break;default:if(index===0){return _alcGetString(deviceId,param)}else{AL.alcErr=40963;return 0}}ret=allocate(intArrayFromString(ret),ALLOC_NORMAL);AL.alcStringCache[param]=ret;return ret}Module[\"_emscripten_alcGetStringiSOFT\"]=_emscripten_alcGetStringiSOFT;_emscripten_alcGetStringiSOFT.sig=\"iiii\";function _emscripten_alcResetDeviceSOFT(deviceId,pAttrList){if(!(deviceId in AL.deviceRefCounts)){AL.alcErr=40961;return 0}var hrtf=null;pAttrList>>=2;if(pAttrList){var attr=0;var val=0;while(true){attr=HEAP32[pAttrList++];if(attr===0){break}val=HEAP32[pAttrList++];switch(attr){case 6546:if(val===1){hrtf=true}else if(val===0){hrtf=false}break}}}if(hrtf!==null){for(var ctxId in AL.contexts){var ctx=AL.contexts[ctxId];if(ctx.deviceId===deviceId){ctx.hrtf=hrtf;AL.updateContextGlobal(ctx)}}}return 1}Module[\"_emscripten_alcResetDeviceSOFT\"]=_emscripten_alcResetDeviceSOFT;_emscripten_alcResetDeviceSOFT.sig=\"iii\";function _emscripten_asm_const_int(code,sigPtr,argbuf){code-=1024;var args=readAsmConstArgs(sigPtr,argbuf);return ASM_CONSTS[code].apply(null,args)}Module[\"_emscripten_asm_const_int\"]=_emscripten_asm_const_int;_emscripten_asm_const_int.sig=\"iiii\";function _emscripten_exit_with_live_runtime(){throw\"unwind\"}Module[\"_emscripten_exit_with_live_runtime\"]=_emscripten_exit_with_live_runtime;_emscripten_exit_with_live_runtime.sig=\"v\";function _emscripten_get_heap_max(){return 2147483648}Module[\"_emscripten_get_heap_max\"]=_emscripten_get_heap_max;function __webgl_enable_ANGLE_instanced_arrays(ctx){var ext=ctx.getExtension(\"ANGLE_instanced_arrays\");if(ext){ctx[\"vertexAttribDivisor\"]=function(index,divisor){ext[\"vertexAttribDivisorANGLE\"](index,divisor)};ctx[\"drawArraysInstanced\"]=function(mode,first,count,primcount){ext[\"drawArraysInstancedANGLE\"](mode,first,count,primcount)};ctx[\"drawElementsInstanced\"]=function(mode,count,type,indices,primcount){ext[\"drawElementsInstancedANGLE\"](mode,count,type,indices,primcount)};return 1}}Module[\"__webgl_enable_ANGLE_instanced_arrays\"]=__webgl_enable_ANGLE_instanced_arrays;function __webgl_enable_OES_vertex_array_object(ctx){var ext=ctx.getExtension(\"OES_vertex_array_object\");if(ext){ctx[\"createVertexArray\"]=function(){return ext[\"createVertexArrayOES\"]()};ctx[\"deleteVertexArray\"]=function(vao){ext[\"deleteVertexArrayOES\"](vao)};ctx[\"bindVertexArray\"]=function(vao){ext[\"bindVertexArrayOES\"](vao)};ctx[\"isVertexArray\"]=function(vao){return ext[\"isVertexArrayOES\"](vao)};return 1}}Module[\"__webgl_enable_OES_vertex_array_object\"]=__webgl_enable_OES_vertex_array_object;function __webgl_enable_WEBGL_draw_buffers(ctx){var ext=ctx.getExtension(\"WEBGL_draw_buffers\");if(ext){ctx[\"drawBuffers\"]=function(n,bufs){ext[\"drawBuffersWEBGL\"](n,bufs)};return 1}}Module[\"__webgl_enable_WEBGL_draw_buffers\"]=__webgl_enable_WEBGL_draw_buffers;function __webgl_enable_WEBGL_multi_draw(ctx){return!!(ctx.multiDrawWebgl=ctx.getExtension(\"WEBGL_multi_draw\"))}Module[\"__webgl_enable_WEBGL_multi_draw\"]=__webgl_enable_WEBGL_multi_draw;var GL={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],uniforms:[],shaders:[],vaos:[],contexts:[],offscreenCanvases:{},timerQueriesEXT:[],programInfos:{},stringCache:{},unpackAlignment:4,recordError:function recordError(errorCode){if(!GL.lastError){GL.lastError=errorCode}},getNewId:function(table){var ret=GL.counter++;for(var i=table.length;i<ret;i++){table[i]=null}return ret},getSource:function(shader,count,string,length){var source=\"\";for(var i=0;i<count;++i){var len=length?HEAP32[length+i*4>>2]:-1;source+=UTF8ToString(HEAP32[string+i*4>>2],len<0?undefined:len)}return source},createContext:function(canvas,webGLContextAttributes){if(!canvas.getContextSafariWebGL2Fixed){canvas.getContextSafariWebGL2Fixed=canvas.getContext;canvas.getContext=function(ver,attrs){var gl=canvas.getContextSafariWebGL2Fixed(ver,attrs);return ver==\"webgl\"==gl instanceof WebGLRenderingContext?gl:null}}var ctx=canvas.getContext(\"webgl\",webGLContextAttributes);if(!ctx)return 0;var handle=GL.registerContext(ctx,webGLContextAttributes);return handle},registerContext:function(ctx,webGLContextAttributes){var handle=GL.getNewId(GL.contexts);var context={handle:handle,attributes:webGLContextAttributes,version:webGLContextAttributes.majorVersion,GLctx:ctx};if(ctx.canvas)ctx.canvas.GLctxObject=context;GL.contexts[handle]=context;if(typeof webGLContextAttributes.enableExtensionsByDefault===\"undefined\"||webGLContextAttributes.enableExtensionsByDefault){GL.initExtensions(context)}return handle},makeContextCurrent:function(contextHandle){GL.currentContext=GL.contexts[contextHandle];Module.ctx=GLctx=GL.currentContext&&GL.currentContext.GLctx;return!(contextHandle&&!GLctx)},getContext:function(contextHandle){return GL.contexts[contextHandle]},deleteContext:function(contextHandle){if(GL.currentContext===GL.contexts[contextHandle])GL.currentContext=null;if(typeof JSEvents===\"object\")JSEvents.removeAllHandlersOnTarget(GL.contexts[contextHandle].GLctx.canvas);if(GL.contexts[contextHandle]&&GL.contexts[contextHandle].GLctx.canvas)GL.contexts[contextHandle].GLctx.canvas.GLctxObject=undefined;GL.contexts[contextHandle]=null},initExtensions:function(context){if(!context)context=GL.currentContext;if(context.initExtensionsDone)return;context.initExtensionsDone=true;var GLctx=context.GLctx;__webgl_enable_ANGLE_instanced_arrays(GLctx);__webgl_enable_OES_vertex_array_object(GLctx);__webgl_enable_WEBGL_draw_buffers(GLctx);GLctx.disjointTimerQueryExt=GLctx.getExtension(\"EXT_disjoint_timer_query\");__webgl_enable_WEBGL_multi_draw(GLctx);var exts=GLctx.getSupportedExtensions()||[];exts.forEach(function(ext){if(ext.indexOf(\"lose_context\")<0&&ext.indexOf(\"debug\")<0){GLctx.getExtension(ext)}})},populateUniformTable:function(program){var p=GL.programs[program];var ptable=GL.programInfos[program]={uniforms:{},maxUniformLength:0,maxAttributeLength:-1,maxUniformBlockNameLength:-1};var utable=ptable.uniforms;var numUniforms=GLctx.getProgramParameter(p,35718);for(var i=0;i<numUniforms;++i){var u=GLctx.getActiveUniform(p,i);var name=u.name;ptable.maxUniformLength=Math.max(ptable.maxUniformLength,name.length+1);if(name.slice(-1)==\"]\"){name=name.slice(0,name.lastIndexOf(\"[\"))}var loc=GLctx.getUniformLocation(p,name);if(loc){var id=GL.getNewId(GL.uniforms);utable[name]=[u.size,id];GL.uniforms[id]=loc;for(var j=1;j<u.size;++j){var n=name+\"[\"+j+\"]\";loc=GLctx.getUniformLocation(p,n);id=GL.getNewId(GL.uniforms);GL.uniforms[id]=loc}}}}};Module[\"GL\"]=GL;function _emscripten_glActiveTexture(x0){GLctx[\"activeTexture\"](x0)}Module[\"_emscripten_glActiveTexture\"]=_emscripten_glActiveTexture;_emscripten_glActiveTexture.sig=\"vi\";function _emscripten_glAttachShader(program,shader){GLctx.attachShader(GL.programs[program],GL.shaders[shader])}Module[\"_emscripten_glAttachShader\"]=_emscripten_glAttachShader;_emscripten_glAttachShader.sig=\"vii\";function _emscripten_glBeginQueryEXT(target,id){GLctx.disjointTimerQueryExt[\"beginQueryEXT\"](target,GL.timerQueriesEXT[id])}Module[\"_emscripten_glBeginQueryEXT\"]=_emscripten_glBeginQueryEXT;_emscripten_glBeginQueryEXT.sig=\"vii\";function _emscripten_glBindAttribLocation(program,index,name){GLctx.bindAttribLocation(GL.programs[program],index,UTF8ToString(name))}Module[\"_emscripten_glBindAttribLocation\"]=_emscripten_glBindAttribLocation;_emscripten_glBindAttribLocation.sig=\"viii\";function _emscripten_glBindBuffer(target,buffer){GLctx.bindBuffer(target,GL.buffers[buffer])}Module[\"_emscripten_glBindBuffer\"]=_emscripten_glBindBuffer;_emscripten_glBindBuffer.sig=\"vii\";function _emscripten_glBindFramebuffer(target,framebuffer){GLctx.bindFramebuffer(target,GL.framebuffers[framebuffer])}Module[\"_emscripten_glBindFramebuffer\"]=_emscripten_glBindFramebuffer;_emscripten_glBindFramebuffer.sig=\"vii\";function _emscripten_glBindRenderbuffer(target,renderbuffer){GLctx.bindRenderbuffer(target,GL.renderbuffers[renderbuffer])}Module[\"_emscripten_glBindRenderbuffer\"]=_emscripten_glBindRenderbuffer;_emscripten_glBindRenderbuffer.sig=\"vii\";function _emscripten_glBindTexture(target,texture){GLctx.bindTexture(target,GL.textures[texture])}Module[\"_emscripten_glBindTexture\"]=_emscripten_glBindTexture;_emscripten_glBindTexture.sig=\"vii\";function _emscripten_glBindVertexArrayOES(vao){GLctx[\"bindVertexArray\"](GL.vaos[vao])}Module[\"_emscripten_glBindVertexArrayOES\"]=_emscripten_glBindVertexArrayOES;_emscripten_glBindVertexArrayOES.sig=\"vi\";function _emscripten_glBlendColor(x0,x1,x2,x3){GLctx[\"blendColor\"](x0,x1,x2,x3)}Module[\"_emscripten_glBlendColor\"]=_emscripten_glBlendColor;_emscripten_glBlendColor.sig=\"vffff\";function _emscripten_glBlendEquation(x0){GLctx[\"blendEquation\"](x0)}Module[\"_emscripten_glBlendEquation\"]=_emscripten_glBlendEquation;_emscripten_glBlendEquation.sig=\"vi\";function _emscripten_glBlendEquationSeparate(x0,x1){GLctx[\"blendEquationSeparate\"](x0,x1)}Module[\"_emscripten_glBlendEquationSeparate\"]=_emscripten_glBlendEquationSeparate;_emscripten_glBlendEquationSeparate.sig=\"vii\";function _emscripten_glBlendFunc(x0,x1){GLctx[\"blendFunc\"](x0,x1)}Module[\"_emscripten_glBlendFunc\"]=_emscripten_glBlendFunc;_emscripten_glBlendFunc.sig=\"vii\";function _emscripten_glBlendFuncSeparate(x0,x1,x2,x3){GLctx[\"blendFuncSeparate\"](x0,x1,x2,x3)}Module[\"_emscripten_glBlendFuncSeparate\"]=_emscripten_glBlendFuncSeparate;_emscripten_glBlendFuncSeparate.sig=\"viiii\";function _emscripten_glBufferData(target,size,data,usage){GLctx.bufferData(target,data?HEAPU8.subarray(data,data+size):size,usage)}Module[\"_emscripten_glBufferData\"]=_emscripten_glBufferData;_emscripten_glBufferData.sig=\"viiii\";function _emscripten_glBufferSubData(target,offset,size,data){GLctx.bufferSubData(target,offset,HEAPU8.subarray(data,data+size))}Module[\"_emscripten_glBufferSubData\"]=_emscripten_glBufferSubData;_emscripten_glBufferSubData.sig=\"viiii\";function _emscripten_glCheckFramebufferStatus(x0){return GLctx[\"checkFramebufferStatus\"](x0)}Module[\"_emscripten_glCheckFramebufferStatus\"]=_emscripten_glCheckFramebufferStatus;_emscripten_glCheckFramebufferStatus.sig=\"ii\";function _emscripten_glClear(x0){GLctx[\"clear\"](x0)}Module[\"_emscripten_glClear\"]=_emscripten_glClear;_emscripten_glClear.sig=\"vi\";function _emscripten_glClearColor(x0,x1,x2,x3){GLctx[\"clearColor\"](x0,x1,x2,x3)}Module[\"_emscripten_glClearColor\"]=_emscripten_glClearColor;_emscripten_glClearColor.sig=\"viiii\";function _emscripten_glClearDepthf(x0){GLctx[\"clearDepth\"](x0)}Module[\"_emscripten_glClearDepthf\"]=_emscripten_glClearDepthf;_emscripten_glClearDepthf.sig=\"vi\";function _emscripten_glClearStencil(x0){GLctx[\"clearStencil\"](x0)}Module[\"_emscripten_glClearStencil\"]=_emscripten_glClearStencil;_emscripten_glClearStencil.sig=\"vi\";function _emscripten_glColorMask(red,green,blue,alpha){GLctx.colorMask(!!red,!!green,!!blue,!!alpha)}Module[\"_emscripten_glColorMask\"]=_emscripten_glColorMask;_emscripten_glColorMask.sig=\"viiii\";function _emscripten_glCompileShader(shader){GLctx.compileShader(GL.shaders[shader])}Module[\"_emscripten_glCompileShader\"]=_emscripten_glCompileShader;_emscripten_glCompileShader.sig=\"vi\";function _emscripten_glCompressedTexImage2D(target,level,internalFormat,width,height,border,imageSize,data){GLctx[\"compressedTexImage2D\"](target,level,internalFormat,width,height,border,data?HEAPU8.subarray(data,data+imageSize):null)}Module[\"_emscripten_glCompressedTexImage2D\"]=_emscripten_glCompressedTexImage2D;_emscripten_glCompressedTexImage2D.sig=\"viiiiiiii\";function _emscripten_glCompressedTexSubImage2D(target,level,xoffset,yoffset,width,height,format,imageSize,data){GLctx[\"compressedTexSubImage2D\"](target,level,xoffset,yoffset,width,height,format,data?HEAPU8.subarray(data,data+imageSize):null)}Module[\"_emscripten_glCompressedTexSubImage2D\"]=_emscripten_glCompressedTexSubImage2D;_emscripten_glCompressedTexSubImage2D.sig=\"viiiiiiiii\";function _emscripten_glCopyTexImage2D(x0,x1,x2,x3,x4,x5,x6,x7){GLctx[\"copyTexImage2D\"](x0,x1,x2,x3,x4,x5,x6,x7)}Module[\"_emscripten_glCopyTexImage2D\"]=_emscripten_glCopyTexImage2D;_emscripten_glCopyTexImage2D.sig=\"viiiiiiii\";function _emscripten_glCopyTexSubImage2D(x0,x1,x2,x3,x4,x5,x6,x7){GLctx[\"copyTexSubImage2D\"](x0,x1,x2,x3,x4,x5,x6,x7)}Module[\"_emscripten_glCopyTexSubImage2D\"]=_emscripten_glCopyTexSubImage2D;_emscripten_glCopyTexSubImage2D.sig=\"viiiiiiii\";function _emscripten_glCreateProgram(){var id=GL.getNewId(GL.programs);var program=GLctx.createProgram();program.name=id;GL.programs[id]=program;return id}Module[\"_emscripten_glCreateProgram\"]=_emscripten_glCreateProgram;_emscripten_glCreateProgram.sig=\"i\";function _emscripten_glCreateShader(shaderType){var id=GL.getNewId(GL.shaders);GL.shaders[id]=GLctx.createShader(shaderType);return id}Module[\"_emscripten_glCreateShader\"]=_emscripten_glCreateShader;_emscripten_glCreateShader.sig=\"ii\";function _emscripten_glCullFace(x0){GLctx[\"cullFace\"](x0)}Module[\"_emscripten_glCullFace\"]=_emscripten_glCullFace;_emscripten_glCullFace.sig=\"vi\";function _emscripten_glDeleteBuffers(n,buffers){for(var i=0;i<n;i++){var id=HEAP32[buffers+i*4>>2];var buffer=GL.buffers[id];if(!buffer)continue;GLctx.deleteBuffer(buffer);buffer.name=0;GL.buffers[id]=null}}Module[\"_emscripten_glDeleteBuffers\"]=_emscripten_glDeleteBuffers;_emscripten_glDeleteBuffers.sig=\"vii\";function _emscripten_glDeleteFramebuffers(n,framebuffers){for(var i=0;i<n;++i){var id=HEAP32[framebuffers+i*4>>2];var framebuffer=GL.framebuffers[id];if(!framebuffer)continue;GLctx.deleteFramebuffer(framebuffer);framebuffer.name=0;GL.framebuffers[id]=null}}Module[\"_emscripten_glDeleteFramebuffers\"]=_emscripten_glDeleteFramebuffers;_emscripten_glDeleteFramebuffers.sig=\"vii\";function _emscripten_glDeleteProgram(id){if(!id)return;var program=GL.programs[id];if(!program){GL.recordError(1281);return}GLctx.deleteProgram(program);program.name=0;GL.programs[id]=null;GL.programInfos[id]=null}Module[\"_emscripten_glDeleteProgram\"]=_emscripten_glDeleteProgram;_emscripten_glDeleteProgram.sig=\"vi\";function _emscripten_glDeleteQueriesEXT(n,ids){for(var i=0;i<n;i++){var id=HEAP32[ids+i*4>>2];var query=GL.timerQueriesEXT[id];if(!query)continue;GLctx.disjointTimerQueryExt[\"deleteQueryEXT\"](query);GL.timerQueriesEXT[id]=null}}Module[\"_emscripten_glDeleteQueriesEXT\"]=_emscripten_glDeleteQueriesEXT;_emscripten_glDeleteQueriesEXT.sig=\"vii\";function _emscripten_glDeleteRenderbuffers(n,renderbuffers){for(var i=0;i<n;i++){var id=HEAP32[renderbuffers+i*4>>2];var renderbuffer=GL.renderbuffers[id];if(!renderbuffer)continue;GLctx.deleteRenderbuffer(renderbuffer);renderbuffer.name=0;GL.renderbuffers[id]=null}}Module[\"_emscripten_glDeleteRenderbuffers\"]=_emscripten_glDeleteRenderbuffers;_emscripten_glDeleteRenderbuffers.sig=\"vii\";function _emscripten_glDeleteShader(id){if(!id)return;var shader=GL.shaders[id];if(!shader){GL.recordError(1281);return}GLctx.deleteShader(shader);GL.shaders[id]=null}Module[\"_emscripten_glDeleteShader\"]=_emscripten_glDeleteShader;_emscripten_glDeleteShader.sig=\"vi\";function _emscripten_glDeleteTextures(n,textures){for(var i=0;i<n;i++){var id=HEAP32[textures+i*4>>2];var texture=GL.textures[id];if(!texture)continue;GLctx.deleteTexture(texture);texture.name=0;GL.textures[id]=null}}Module[\"_emscripten_glDeleteTextures\"]=_emscripten_glDeleteTextures;_emscripten_glDeleteTextures.sig=\"vii\";function _emscripten_glDeleteVertexArraysOES(n,vaos){for(var i=0;i<n;i++){var id=HEAP32[vaos+i*4>>2];GLctx[\"deleteVertexArray\"](GL.vaos[id]);GL.vaos[id]=null}}Module[\"_emscripten_glDeleteVertexArraysOES\"]=_emscripten_glDeleteVertexArraysOES;_emscripten_glDeleteVertexArraysOES.sig=\"vii\";function _emscripten_glDepthFunc(x0){GLctx[\"depthFunc\"](x0)}Module[\"_emscripten_glDepthFunc\"]=_emscripten_glDepthFunc;_emscripten_glDepthFunc.sig=\"vi\";function _emscripten_glDepthMask(flag){GLctx.depthMask(!!flag)}Module[\"_emscripten_glDepthMask\"]=_emscripten_glDepthMask;_emscripten_glDepthMask.sig=\"vi\";function _emscripten_glDepthRangef(x0,x1){GLctx[\"depthRange\"](x0,x1)}Module[\"_emscripten_glDepthRangef\"]=_emscripten_glDepthRangef;_emscripten_glDepthRangef.sig=\"vii\";function _emscripten_glDetachShader(program,shader){GLctx.detachShader(GL.programs[program],GL.shaders[shader])}Module[\"_emscripten_glDetachShader\"]=_emscripten_glDetachShader;_emscripten_glDetachShader.sig=\"vii\";function _emscripten_glDisable(x0){GLctx[\"disable\"](x0)}Module[\"_emscripten_glDisable\"]=_emscripten_glDisable;_emscripten_glDisable.sig=\"vi\";function _emscripten_glDisableVertexAttribArray(index){GLctx.disableVertexAttribArray(index)}Module[\"_emscripten_glDisableVertexAttribArray\"]=_emscripten_glDisableVertexAttribArray;_emscripten_glDisableVertexAttribArray.sig=\"vi\";function _emscripten_glDrawArrays(mode,first,count){GLctx.drawArrays(mode,first,count)}Module[\"_emscripten_glDrawArrays\"]=_emscripten_glDrawArrays;_emscripten_glDrawArrays.sig=\"viii\";function _emscripten_glDrawArraysInstancedANGLE(mode,first,count,primcount){GLctx[\"drawArraysInstanced\"](mode,first,count,primcount)}Module[\"_emscripten_glDrawArraysInstancedANGLE\"]=_emscripten_glDrawArraysInstancedANGLE;_emscripten_glDrawArraysInstancedANGLE.sig=\"viiii\";var tempFixedLengthArray=[];Module[\"tempFixedLengthArray\"]=tempFixedLengthArray;function _emscripten_glDrawBuffersWEBGL(n,bufs){var bufArray=tempFixedLengthArray[n];for(var i=0;i<n;i++){bufArray[i]=HEAP32[bufs+i*4>>2]}GLctx[\"drawBuffers\"](bufArray)}Module[\"_emscripten_glDrawBuffersWEBGL\"]=_emscripten_glDrawBuffersWEBGL;_emscripten_glDrawBuffersWEBGL.sig=\"vii\";function _emscripten_glDrawElements(mode,count,type,indices){GLctx.drawElements(mode,count,type,indices)}Module[\"_emscripten_glDrawElements\"]=_emscripten_glDrawElements;_emscripten_glDrawElements.sig=\"viiii\";function _emscripten_glDrawElementsInstancedANGLE(mode,count,type,indices,primcount){GLctx[\"drawElementsInstanced\"](mode,count,type,indices,primcount)}Module[\"_emscripten_glDrawElementsInstancedANGLE\"]=_emscripten_glDrawElementsInstancedANGLE;_emscripten_glDrawElementsInstancedANGLE.sig=\"viiiii\";function _emscripten_glEnable(x0){GLctx[\"enable\"](x0)}Module[\"_emscripten_glEnable\"]=_emscripten_glEnable;_emscripten_glEnable.sig=\"vi\";function _emscripten_glEnableVertexAttribArray(index){GLctx.enableVertexAttribArray(index)}Module[\"_emscripten_glEnableVertexAttribArray\"]=_emscripten_glEnableVertexAttribArray;_emscripten_glEnableVertexAttribArray.sig=\"vi\";function _emscripten_glEndQueryEXT(target){GLctx.disjointTimerQueryExt[\"endQueryEXT\"](target)}Module[\"_emscripten_glEndQueryEXT\"]=_emscripten_glEndQueryEXT;_emscripten_glEndQueryEXT.sig=\"vi\";function _emscripten_glFinish(){GLctx[\"finish\"]()}Module[\"_emscripten_glFinish\"]=_emscripten_glFinish;_emscripten_glFinish.sig=\"v\";function _emscripten_glFlush(){GLctx[\"flush\"]()}Module[\"_emscripten_glFlush\"]=_emscripten_glFlush;_emscripten_glFlush.sig=\"v\";function _emscripten_glFramebufferRenderbuffer(target,attachment,renderbuffertarget,renderbuffer){GLctx.framebufferRenderbuffer(target,attachment,renderbuffertarget,GL.renderbuffers[renderbuffer])}Module[\"_emscripten_glFramebufferRenderbuffer\"]=_emscripten_glFramebufferRenderbuffer;_emscripten_glFramebufferRenderbuffer.sig=\"viiii\";function _emscripten_glFramebufferTexture2D(target,attachment,textarget,texture,level){GLctx.framebufferTexture2D(target,attachment,textarget,GL.textures[texture],level)}Module[\"_emscripten_glFramebufferTexture2D\"]=_emscripten_glFramebufferTexture2D;_emscripten_glFramebufferTexture2D.sig=\"viiiii\";function _emscripten_glFrontFace(x0){GLctx[\"frontFace\"](x0)}Module[\"_emscripten_glFrontFace\"]=_emscripten_glFrontFace;_emscripten_glFrontFace.sig=\"vi\";function __glGenObject(n,buffers,createFunction,objectTable){for(var i=0;i<n;i++){var buffer=GLctx[createFunction]();var id=buffer&&GL.getNewId(objectTable);if(buffer){buffer.name=id;objectTable[id]=buffer}else{GL.recordError(1282)}HEAP32[buffers+i*4>>2]=id}}Module[\"__glGenObject\"]=__glGenObject;__glGenObject.sig=\"vii\";function _emscripten_glGenBuffers(n,buffers){__glGenObject(n,buffers,\"createBuffer\",GL.buffers)}Module[\"_emscripten_glGenBuffers\"]=_emscripten_glGenBuffers;_emscripten_glGenBuffers.sig=\"vii\";function _emscripten_glGenFramebuffers(n,ids){__glGenObject(n,ids,\"createFramebuffer\",GL.framebuffers)}Module[\"_emscripten_glGenFramebuffers\"]=_emscripten_glGenFramebuffers;_emscripten_glGenFramebuffers.sig=\"vii\";function _emscripten_glGenQueriesEXT(n,ids){for(var i=0;i<n;i++){var query=GLctx.disjointTimerQueryExt[\"createQueryEXT\"]();if(!query){GL.recordError(1282);while(i<n)HEAP32[ids+i++*4>>2]=0;return}var id=GL.getNewId(GL.timerQueriesEXT);query.name=id;GL.timerQueriesEXT[id]=query;HEAP32[ids+i*4>>2]=id}}Module[\"_emscripten_glGenQueriesEXT\"]=_emscripten_glGenQueriesEXT;_emscripten_glGenQueriesEXT.sig=\"vii\";function _emscripten_glGenRenderbuffers(n,renderbuffers){__glGenObject(n,renderbuffers,\"createRenderbuffer\",GL.renderbuffers)}Module[\"_emscripten_glGenRenderbuffers\"]=_emscripten_glGenRenderbuffers;_emscripten_glGenRenderbuffers.sig=\"vii\";function _emscripten_glGenTextures(n,textures){__glGenObject(n,textures,\"createTexture\",GL.textures)}Module[\"_emscripten_glGenTextures\"]=_emscripten_glGenTextures;_emscripten_glGenTextures.sig=\"vii\";function _emscripten_glGenVertexArraysOES(n,arrays){__glGenObject(n,arrays,\"createVertexArray\",GL.vaos)}Module[\"_emscripten_glGenVertexArraysOES\"]=_emscripten_glGenVertexArraysOES;_emscripten_glGenVertexArraysOES.sig=\"vii\";function _emscripten_glGenerateMipmap(x0){GLctx[\"generateMipmap\"](x0)}Module[\"_emscripten_glGenerateMipmap\"]=_emscripten_glGenerateMipmap;_emscripten_glGenerateMipmap.sig=\"vi\";function __glGetActiveAttribOrUniform(funcName,program,index,bufSize,length,size,type,name){program=GL.programs[program];var info=GLctx[funcName](program,index);if(info){var numBytesWrittenExclNull=name&&stringToUTF8(info.name,name,bufSize);if(length)HEAP32[length>>2]=numBytesWrittenExclNull;if(size)HEAP32[size>>2]=info.size;if(type)HEAP32[type>>2]=info.type}}Module[\"__glGetActiveAttribOrUniform\"]=__glGetActiveAttribOrUniform;function _emscripten_glGetActiveAttrib(program,index,bufSize,length,size,type,name){__glGetActiveAttribOrUniform(\"getActiveAttrib\",program,index,bufSize,length,size,type,name)}Module[\"_emscripten_glGetActiveAttrib\"]=_emscripten_glGetActiveAttrib;_emscripten_glGetActiveAttrib.sig=\"viiiiiii\";function _emscripten_glGetActiveUniform(program,index,bufSize,length,size,type,name){__glGetActiveAttribOrUniform(\"getActiveUniform\",program,index,bufSize,length,size,type,name)}Module[\"_emscripten_glGetActiveUniform\"]=_emscripten_glGetActiveUniform;_emscripten_glGetActiveUniform.sig=\"viiiiiii\";function _emscripten_glGetAttachedShaders(program,maxCount,count,shaders){var result=GLctx.getAttachedShaders(GL.programs[program]);var len=result.length;if(len>maxCount){len=maxCount}HEAP32[count>>2]=len;for(var i=0;i<len;++i){var id=GL.shaders.indexOf(result[i]);HEAP32[shaders+i*4>>2]=id}}Module[\"_emscripten_glGetAttachedShaders\"]=_emscripten_glGetAttachedShaders;_emscripten_glGetAttachedShaders.sig=\"viiii\";function _emscripten_glGetAttribLocation(program,name){return GLctx.getAttribLocation(GL.programs[program],UTF8ToString(name))}Module[\"_emscripten_glGetAttribLocation\"]=_emscripten_glGetAttribLocation;_emscripten_glGetAttribLocation.sig=\"iii\";function writeI53ToI64(ptr,num){HEAPU32[ptr>>2]=num;HEAPU32[ptr+4>>2]=(num-HEAPU32[ptr>>2])/4294967296}Module[\"writeI53ToI64\"]=writeI53ToI64;function emscriptenWebGLGet(name_,p,type){if(!p){GL.recordError(1281);return}var ret=undefined;switch(name_){case 36346:ret=1;break;case 36344:if(type!=0&&type!=1){GL.recordError(1280)}return;case 36345:ret=0;break;case 34466:var formats=GLctx.getParameter(34467);ret=formats?formats.length:0;break}if(ret===undefined){var result=GLctx.getParameter(name_);switch(typeof result){case\"number\":ret=result;break;case\"boolean\":ret=result?1:0;break;case\"string\":GL.recordError(1280);return;case\"object\":if(result===null){switch(name_){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 34068:{ret=0;break}default:{GL.recordError(1280);return}}}else if(result instanceof Float32Array||result instanceof Uint32Array||result instanceof Int32Array||result instanceof Array){for(var i=0;i<result.length;++i){switch(type){case 0:HEAP32[p+i*4>>2]=result[i];break;case 2:HEAPF32[p+i*4>>2]=result[i];break;case 4:HEAP8[p+i>>0]=result[i]?1:0;break}}return}else{try{ret=result.name|0}catch(e){GL.recordError(1280);err(\"GL_INVALID_ENUM in glGet\"+type+\"v: Unknown object returned from WebGL getParameter(\"+name_+\")! (error: \"+e+\")\");return}}break;default:GL.recordError(1280);err(\"GL_INVALID_ENUM in glGet\"+type+\"v: Native code calling glGet\"+type+\"v(\"+name_+\") and it returns \"+result+\" of type \"+typeof result+\"!\");return}}switch(type){case 1:writeI53ToI64(p,ret);break;case 0:HEAP32[p>>2]=ret;break;case 2:HEAPF32[p>>2]=ret;break;case 4:HEAP8[p>>0]=ret?1:0;break}}Module[\"emscriptenWebGLGet\"]=emscriptenWebGLGet;function _emscripten_glGetBooleanv(name_,p){emscriptenWebGLGet(name_,p,4)}Module[\"_emscripten_glGetBooleanv\"]=_emscripten_glGetBooleanv;_emscripten_glGetBooleanv.sig=\"vii\";function _emscripten_glGetBufferParameteriv(target,value,data){if(!data){GL.recordError(1281);return}HEAP32[data>>2]=GLctx.getBufferParameter(target,value)}Module[\"_emscripten_glGetBufferParameteriv\"]=_emscripten_glGetBufferParameteriv;_emscripten_glGetBufferParameteriv.sig=\"viii\";function _emscripten_glGetError(){var error=GLctx.getError()||GL.lastError;GL.lastError=0;return error}Module[\"_emscripten_glGetError\"]=_emscripten_glGetError;_emscripten_glGetError.sig=\"i\";function _emscripten_glGetFloatv(name_,p){emscriptenWebGLGet(name_,p,2)}Module[\"_emscripten_glGetFloatv\"]=_emscripten_glGetFloatv;_emscripten_glGetFloatv.sig=\"vii\";function _emscripten_glGetFramebufferAttachmentParameteriv(target,attachment,pname,params){var result=GLctx.getFramebufferAttachmentParameter(target,attachment,pname);if(result instanceof WebGLRenderbuffer||result instanceof WebGLTexture){result=result.name|0}HEAP32[params>>2]=result}Module[\"_emscripten_glGetFramebufferAttachmentParameteriv\"]=_emscripten_glGetFramebufferAttachmentParameteriv;_emscripten_glGetFramebufferAttachmentParameteriv.sig=\"viiii\";function _emscripten_glGetIntegerv(name_,p){emscriptenWebGLGet(name_,p,0)}Module[\"_emscripten_glGetIntegerv\"]=_emscripten_glGetIntegerv;_emscripten_glGetIntegerv.sig=\"vii\";function _emscripten_glGetProgramInfoLog(program,maxLength,length,infoLog){var log=GLctx.getProgramInfoLog(GL.programs[program]);if(log===null)log=\"(unknown error)\";var numBytesWrittenExclNull=maxLength>0&&infoLog?stringToUTF8(log,infoLog,maxLength):0;if(length)HEAP32[length>>2]=numBytesWrittenExclNull}Module[\"_emscripten_glGetProgramInfoLog\"]=_emscripten_glGetProgramInfoLog;_emscripten_glGetProgramInfoLog.sig=\"viiii\";function _emscripten_glGetProgramiv(program,pname,p){if(!p){GL.recordError(1281);return}if(program>=GL.counter){GL.recordError(1281);return}var ptable=GL.programInfos[program];if(!ptable){GL.recordError(1282);return}if(pname==35716){var log=GLctx.getProgramInfoLog(GL.programs[program]);if(log===null)log=\"(unknown error)\";HEAP32[p>>2]=log.length+1}else if(pname==35719){HEAP32[p>>2]=ptable.maxUniformLength}else if(pname==35722){if(ptable.maxAttributeLength==-1){program=GL.programs[program];var numAttribs=GLctx.getProgramParameter(program,35721);ptable.maxAttributeLength=0;for(var i=0;i<numAttribs;++i){var activeAttrib=GLctx.getActiveAttrib(program,i);ptable.maxAttributeLength=Math.max(ptable.maxAttributeLength,activeAttrib.name.length+1)}}HEAP32[p>>2]=ptable.maxAttributeLength}else if(pname==35381){if(ptable.maxUniformBlockNameLength==-1){program=GL.programs[program];var numBlocks=GLctx.getProgramParameter(program,35382);ptable.maxUniformBlockNameLength=0;for(var i=0;i<numBlocks;++i){var activeBlockName=GLctx.getActiveUniformBlockName(program,i);ptable.maxUniformBlockNameLength=Math.max(ptable.maxUniformBlockNameLength,activeBlockName.length+1)}}HEAP32[p>>2]=ptable.maxUniformBlockNameLength}else{HEAP32[p>>2]=GLctx.getProgramParameter(GL.programs[program],pname)}}Module[\"_emscripten_glGetProgramiv\"]=_emscripten_glGetProgramiv;_emscripten_glGetProgramiv.sig=\"viii\";function _emscripten_glGetQueryObjecti64vEXT(id,pname,params){if(!params){GL.recordError(1281);return}var query=GL.timerQueriesEXT[id];var param=GLctx.disjointTimerQueryExt[\"getQueryObjectEXT\"](query,pname);var ret;if(typeof param==\"boolean\"){ret=param?1:0}else{ret=param}writeI53ToI64(params,ret)}Module[\"_emscripten_glGetQueryObjecti64vEXT\"]=_emscripten_glGetQueryObjecti64vEXT;_emscripten_glGetQueryObjecti64vEXT.sig=\"viii\";function _emscripten_glGetQueryObjectivEXT(id,pname,params){if(!params){GL.recordError(1281);return}var query=GL.timerQueriesEXT[id];var param=GLctx.disjointTimerQueryExt[\"getQueryObjectEXT\"](query,pname);var ret;if(typeof param==\"boolean\"){ret=param?1:0}else{ret=param}HEAP32[params>>2]=ret}Module[\"_emscripten_glGetQueryObjectivEXT\"]=_emscripten_glGetQueryObjectivEXT;_emscripten_glGetQueryObjectivEXT.sig=\"viii\";function _emscripten_glGetQueryObjectui64vEXT(id,pname,params){if(!params){GL.recordError(1281);return}var query=GL.timerQueriesEXT[id];var param=GLctx.disjointTimerQueryExt[\"getQueryObjectEXT\"](query,pname);var ret;if(typeof param==\"boolean\"){ret=param?1:0}else{ret=param}writeI53ToI64(params,ret)}Module[\"_emscripten_glGetQueryObjectui64vEXT\"]=_emscripten_glGetQueryObjectui64vEXT;_emscripten_glGetQueryObjectui64vEXT.sig=\"viii\";function _emscripten_glGetQueryObjectuivEXT(id,pname,params){if(!params){GL.recordError(1281);return}var query=GL.timerQueriesEXT[id];var param=GLctx.disjointTimerQueryExt[\"getQueryObjectEXT\"](query,pname);var ret;if(typeof param==\"boolean\"){ret=param?1:0}else{ret=param}HEAP32[params>>2]=ret}Module[\"_emscripten_glGetQueryObjectuivEXT\"]=_emscripten_glGetQueryObjectuivEXT;_emscripten_glGetQueryObjectuivEXT.sig=\"viii\";function _emscripten_glGetQueryivEXT(target,pname,params){if(!params){GL.recordError(1281);return}HEAP32[params>>2]=GLctx.disjointTimerQueryExt[\"getQueryEXT\"](target,pname)}Module[\"_emscripten_glGetQueryivEXT\"]=_emscripten_glGetQueryivEXT;_emscripten_glGetQueryivEXT.sig=\"viii\";function _emscripten_glGetRenderbufferParameteriv(target,pname,params){if(!params){GL.recordError(1281);return}HEAP32[params>>2]=GLctx.getRenderbufferParameter(target,pname)}Module[\"_emscripten_glGetRenderbufferParameteriv\"]=_emscripten_glGetRenderbufferParameteriv;_emscripten_glGetRenderbufferParameteriv.sig=\"viii\";function _emscripten_glGetShaderInfoLog(shader,maxLength,length,infoLog){var log=GLctx.getShaderInfoLog(GL.shaders[shader]);if(log===null)log=\"(unknown error)\";var numBytesWrittenExclNull=maxLength>0&&infoLog?stringToUTF8(log,infoLog,maxLength):0;if(length)HEAP32[length>>2]=numBytesWrittenExclNull}Module[\"_emscripten_glGetShaderInfoLog\"]=_emscripten_glGetShaderInfoLog;_emscripten_glGetShaderInfoLog.sig=\"viiii\";function _emscripten_glGetShaderPrecisionFormat(shaderType,precisionType,range,precision){var result=GLctx.getShaderPrecisionFormat(shaderType,precisionType);HEAP32[range>>2]=result.rangeMin;HEAP32[range+4>>2]=result.rangeMax;HEAP32[precision>>2]=result.precision}Module[\"_emscripten_glGetShaderPrecisionFormat\"]=_emscripten_glGetShaderPrecisionFormat;_emscripten_glGetShaderPrecisionFormat.sig=\"viiii\";function _emscripten_glGetShaderSource(shader,bufSize,length,source){var result=GLctx.getShaderSource(GL.shaders[shader]);if(!result)return;var numBytesWrittenExclNull=bufSize>0&&source?stringToUTF8(result,source,bufSize):0;if(length)HEAP32[length>>2]=numBytesWrittenExclNull}Module[\"_emscripten_glGetShaderSource\"]=_emscripten_glGetShaderSource;_emscripten_glGetShaderSource.sig=\"viiii\";function _emscripten_glGetShaderiv(shader,pname,p){if(!p){GL.recordError(1281);return}if(pname==35716){var log=GLctx.getShaderInfoLog(GL.shaders[shader]);if(log===null)log=\"(unknown error)\";var logLength=log?log.length+1:0;HEAP32[p>>2]=logLength}else if(pname==35720){var source=GLctx.getShaderSource(GL.shaders[shader]);var sourceLength=source?source.length+1:0;HEAP32[p>>2]=sourceLength}else{HEAP32[p>>2]=GLctx.getShaderParameter(GL.shaders[shader],pname)}}Module[\"_emscripten_glGetShaderiv\"]=_emscripten_glGetShaderiv;_emscripten_glGetShaderiv.sig=\"viii\";function _emscripten_glGetString(name_){if(GL.stringCache[name_])return GL.stringCache[name_];var ret;switch(name_){case 7939:var exts=GLctx.getSupportedExtensions()||[];exts=exts.concat(exts.map(function(e){return\"GL_\"+e}));ret=stringToNewUTF8(exts.join(\" \"));break;case 7936:case 7937:case 37445:case 37446:var s=GLctx.getParameter(name_);if(!s){GL.recordError(1280)}ret=stringToNewUTF8(s);break;case 7938:var glVersion=GLctx.getParameter(7938);{glVersion=\"OpenGL ES 2.0 (\"+glVersion+\")\"}ret=stringToNewUTF8(glVersion);break;case 35724:var glslVersion=GLctx.getParameter(35724);var ver_re=/^WebGL GLSL ES ([0-9]\\.[0-9][0-9]?)(?:$| .*)/;var ver_num=glslVersion.match(ver_re);if(ver_num!==null){if(ver_num[1].length==3)ver_num[1]=ver_num[1]+\"0\";glslVersion=\"OpenGL ES GLSL ES \"+ver_num[1]+\" (\"+glslVersion+\")\"}ret=stringToNewUTF8(glslVersion);break;default:GL.recordError(1280);return 0}GL.stringCache[name_]=ret;return ret}Module[\"_emscripten_glGetString\"]=_emscripten_glGetString;_emscripten_glGetString.sig=\"ii\";function _emscripten_glGetTexParameterfv(target,pname,params){if(!params){GL.recordError(1281);return}HEAPF32[params>>2]=GLctx.getTexParameter(target,pname)}Module[\"_emscripten_glGetTexParameterfv\"]=_emscripten_glGetTexParameterfv;_emscripten_glGetTexParameterfv.sig=\"viii\";function _emscripten_glGetTexParameteriv(target,pname,params){if(!params){GL.recordError(1281);return}HEAP32[params>>2]=GLctx.getTexParameter(target,pname)}Module[\"_emscripten_glGetTexParameteriv\"]=_emscripten_glGetTexParameteriv;_emscripten_glGetTexParameteriv.sig=\"viii\";function _emscripten_glGetUniformLocation(program,name){name=UTF8ToString(name);var arrayIndex=0;if(name[name.length-1]==\"]\"){var leftBrace=name.lastIndexOf(\"[\");arrayIndex=name[leftBrace+1]!=\"]\"?jstoi_q(name.slice(leftBrace+1)):0;name=name.slice(0,leftBrace)}var uniformInfo=GL.programInfos[program]&&GL.programInfos[program].uniforms[name];if(uniformInfo&&arrayIndex>=0&&arrayIndex<uniformInfo[0]){return uniformInfo[1]+arrayIndex}else{return-1}}Module[\"_emscripten_glGetUniformLocation\"]=_emscripten_glGetUniformLocation;_emscripten_glGetUniformLocation.sig=\"iii\";function emscriptenWebGLGetUniform(program,location,params,type){if(!params){GL.recordError(1281);return}var data=GLctx.getUniform(GL.programs[program],GL.uniforms[location]);if(typeof data==\"number\"||typeof data==\"boolean\"){switch(type){case 0:HEAP32[params>>2]=data;break;case 2:HEAPF32[params>>2]=data;break}}else{for(var i=0;i<data.length;i++){switch(type){case 0:HEAP32[params+i*4>>2]=data[i];break;case 2:HEAPF32[params+i*4>>2]=data[i];break}}}}Module[\"emscriptenWebGLGetUniform\"]=emscriptenWebGLGetUniform;function _emscripten_glGetUniformfv(program,location,params){emscriptenWebGLGetUniform(program,location,params,2)}Module[\"_emscripten_glGetUniformfv\"]=_emscripten_glGetUniformfv;_emscripten_glGetUniformfv.sig=\"viii\";function _emscripten_glGetUniformiv(program,location,params){emscriptenWebGLGetUniform(program,location,params,0)}Module[\"_emscripten_glGetUniformiv\"]=_emscripten_glGetUniformiv;_emscripten_glGetUniformiv.sig=\"viii\";function _emscripten_glGetVertexAttribPointerv(index,pname,pointer){if(!pointer){GL.recordError(1281);return}HEAP32[pointer>>2]=GLctx.getVertexAttribOffset(index,pname)}Module[\"_emscripten_glGetVertexAttribPointerv\"]=_emscripten_glGetVertexAttribPointerv;_emscripten_glGetVertexAttribPointerv.sig=\"viii\";function emscriptenWebGLGetVertexAttrib(index,pname,params,type){if(!params){GL.recordError(1281);return}var data=GLctx.getVertexAttrib(index,pname);if(pname==34975){HEAP32[params>>2]=data&&data[\"name\"]}else if(typeof data==\"number\"||typeof data==\"boolean\"){switch(type){case 0:HEAP32[params>>2]=data;break;case 2:HEAPF32[params>>2]=data;break;case 5:HEAP32[params>>2]=Math.fround(data);break}}else{for(var i=0;i<data.length;i++){switch(type){case 0:HEAP32[params+i*4>>2]=data[i];break;case 2:HEAPF32[params+i*4>>2]=data[i];break;case 5:HEAP32[params+i*4>>2]=Math.fround(data[i]);break}}}}Module[\"emscriptenWebGLGetVertexAttrib\"]=emscriptenWebGLGetVertexAttrib;function _emscripten_glGetVertexAttribfv(index,pname,params){emscriptenWebGLGetVertexAttrib(index,pname,params,2)}Module[\"_emscripten_glGetVertexAttribfv\"]=_emscripten_glGetVertexAttribfv;_emscripten_glGetVertexAttribfv.sig=\"viii\";function _emscripten_glGetVertexAttribiv(index,pname,params){emscriptenWebGLGetVertexAttrib(index,pname,params,5)}Module[\"_emscripten_glGetVertexAttribiv\"]=_emscripten_glGetVertexAttribiv;_emscripten_glGetVertexAttribiv.sig=\"viii\";function _emscripten_glHint(x0,x1){GLctx[\"hint\"](x0,x1)}Module[\"_emscripten_glHint\"]=_emscripten_glHint;_emscripten_glHint.sig=\"vii\";function _emscripten_glIsBuffer(buffer){var b=GL.buffers[buffer];if(!b)return 0;return GLctx.isBuffer(b)}Module[\"_emscripten_glIsBuffer\"]=_emscripten_glIsBuffer;_emscripten_glIsBuffer.sig=\"ii\";function _emscripten_glIsEnabled(x0){return GLctx[\"isEnabled\"](x0)}Module[\"_emscripten_glIsEnabled\"]=_emscripten_glIsEnabled;_emscripten_glIsEnabled.sig=\"ii\";function _emscripten_glIsFramebuffer(framebuffer){var fb=GL.framebuffers[framebuffer];if(!fb)return 0;return GLctx.isFramebuffer(fb)}Module[\"_emscripten_glIsFramebuffer\"]=_emscripten_glIsFramebuffer;_emscripten_glIsFramebuffer.sig=\"ii\";function _emscripten_glIsProgram(program){program=GL.programs[program];if(!program)return 0;return GLctx.isProgram(program)}Module[\"_emscripten_glIsProgram\"]=_emscripten_glIsProgram;_emscripten_glIsProgram.sig=\"ii\";function _emscripten_glIsQueryEXT(id){var query=GL.timerQueriesEXT[id];if(!query)return 0;return GLctx.disjointTimerQueryExt[\"isQueryEXT\"](query)}Module[\"_emscripten_glIsQueryEXT\"]=_emscripten_glIsQueryEXT;_emscripten_glIsQueryEXT.sig=\"ii\";function _emscripten_glIsRenderbuffer(renderbuffer){var rb=GL.renderbuffers[renderbuffer];if(!rb)return 0;return GLctx.isRenderbuffer(rb)}Module[\"_emscripten_glIsRenderbuffer\"]=_emscripten_glIsRenderbuffer;_emscripten_glIsRenderbuffer.sig=\"ii\";function _emscripten_glIsShader(shader){var s=GL.shaders[shader];if(!s)return 0;return GLctx.isShader(s)}Module[\"_emscripten_glIsShader\"]=_emscripten_glIsShader;_emscripten_glIsShader.sig=\"ii\";function _emscripten_glIsTexture(id){var texture=GL.textures[id];if(!texture)return 0;return GLctx.isTexture(texture)}Module[\"_emscripten_glIsTexture\"]=_emscripten_glIsTexture;_emscripten_glIsTexture.sig=\"ii\";function _emscripten_glIsVertexArrayOES(array){var vao=GL.vaos[array];if(!vao)return 0;return GLctx[\"isVertexArray\"](vao)}Module[\"_emscripten_glIsVertexArrayOES\"]=_emscripten_glIsVertexArrayOES;_emscripten_glIsVertexArrayOES.sig=\"ii\";function _emscripten_glLineWidth(x0){GLctx[\"lineWidth\"](x0)}Module[\"_emscripten_glLineWidth\"]=_emscripten_glLineWidth;_emscripten_glLineWidth.sig=\"vi\";function _emscripten_glLinkProgram(program){GLctx.linkProgram(GL.programs[program]);GL.populateUniformTable(program)}Module[\"_emscripten_glLinkProgram\"]=_emscripten_glLinkProgram;_emscripten_glLinkProgram.sig=\"vi\";function _emscripten_glPixelStorei(pname,param){if(pname==3317){GL.unpackAlignment=param}GLctx.pixelStorei(pname,param)}Module[\"_emscripten_glPixelStorei\"]=_emscripten_glPixelStorei;_emscripten_glPixelStorei.sig=\"vii\";function _emscripten_glPolygonOffset(x0,x1){GLctx[\"polygonOffset\"](x0,x1)}Module[\"_emscripten_glPolygonOffset\"]=_emscripten_glPolygonOffset;_emscripten_glPolygonOffset.sig=\"vii\";function _emscripten_glQueryCounterEXT(id,target){GLctx.disjointTimerQueryExt[\"queryCounterEXT\"](GL.timerQueriesEXT[id],target)}Module[\"_emscripten_glQueryCounterEXT\"]=_emscripten_glQueryCounterEXT;_emscripten_glQueryCounterEXT.sig=\"vii\";function computeUnpackAlignedImageSize(width,height,sizePerPixel,alignment){function roundedToNextMultipleOf(x,y){return x+y-1&-y}var plainRowSize=width*sizePerPixel;var alignedRowSize=roundedToNextMultipleOf(plainRowSize,alignment);return height*alignedRowSize}Module[\"computeUnpackAlignedImageSize\"]=computeUnpackAlignedImageSize;function __colorChannelsInGlTextureFormat(format){var colorChannels={5:3,6:4,8:2,29502:3,29504:4};return colorChannels[format-6402]||1}Module[\"__colorChannelsInGlTextureFormat\"]=__colorChannelsInGlTextureFormat;function heapObjectForWebGLType(type){type-=5120;if(type==1)return HEAPU8;if(type==4)return HEAP32;if(type==6)return HEAPF32;if(type==5||type==28922)return HEAPU32;return HEAPU16}Module[\"heapObjectForWebGLType\"]=heapObjectForWebGLType;function heapAccessShiftForWebGLHeap(heap){return 31-Math.clz32(heap.BYTES_PER_ELEMENT)}Module[\"heapAccessShiftForWebGLHeap\"]=heapAccessShiftForWebGLHeap;function emscriptenWebGLGetTexPixelData(type,format,width,height,pixels,internalFormat){var heap=heapObjectForWebGLType(type);var shift=heapAccessShiftForWebGLHeap(heap);var byteSize=1<<shift;var sizePerPixel=__colorChannelsInGlTextureFormat(format)*byteSize;var bytes=computeUnpackAlignedImageSize(width,height,sizePerPixel,GL.unpackAlignment);return heap.subarray(pixels>>shift,pixels+bytes>>shift)}Module[\"emscriptenWebGLGetTexPixelData\"]=emscriptenWebGLGetTexPixelData;function _emscripten_glReadPixels(x,y,width,height,format,type,pixels){var pixelData=emscriptenWebGLGetTexPixelData(type,format,width,height,pixels,format);if(!pixelData){GL.recordError(1280);return}GLctx.readPixels(x,y,width,height,format,type,pixelData)}Module[\"_emscripten_glReadPixels\"]=_emscripten_glReadPixels;_emscripten_glReadPixels.sig=\"viiiiiii\";function _emscripten_glReleaseShaderCompiler(){}Module[\"_emscripten_glReleaseShaderCompiler\"]=_emscripten_glReleaseShaderCompiler;_emscripten_glReleaseShaderCompiler.sig=\"v\";function _emscripten_glRenderbufferStorage(x0,x1,x2,x3){GLctx[\"renderbufferStorage\"](x0,x1,x2,x3)}Module[\"_emscripten_glRenderbufferStorage\"]=_emscripten_glRenderbufferStorage;_emscripten_glRenderbufferStorage.sig=\"viiii\";function _emscripten_glSampleCoverage(value,invert){GLctx.sampleCoverage(value,!!invert)}Module[\"_emscripten_glSampleCoverage\"]=_emscripten_glSampleCoverage;_emscripten_glSampleCoverage.sig=\"vii\";function _emscripten_glScissor(x0,x1,x2,x3){GLctx[\"scissor\"](x0,x1,x2,x3)}Module[\"_emscripten_glScissor\"]=_emscripten_glScissor;_emscripten_glScissor.sig=\"viiii\";function _emscripten_glShaderBinary(){GL.recordError(1280)}Module[\"_emscripten_glShaderBinary\"]=_emscripten_glShaderBinary;_emscripten_glShaderBinary.sig=\"v\";function _emscripten_glShaderSource(shader,count,string,length){var source=GL.getSource(shader,count,string,length);GLctx.shaderSource(GL.shaders[shader],source)}Module[\"_emscripten_glShaderSource\"]=_emscripten_glShaderSource;_emscripten_glShaderSource.sig=\"viiii\";function _emscripten_glStencilFunc(x0,x1,x2){GLctx[\"stencilFunc\"](x0,x1,x2)}Module[\"_emscripten_glStencilFunc\"]=_emscripten_glStencilFunc;_emscripten_glStencilFunc.sig=\"viii\";function _emscripten_glStencilFuncSeparate(x0,x1,x2,x3){GLctx[\"stencilFuncSeparate\"](x0,x1,x2,x3)}Module[\"_emscripten_glStencilFuncSeparate\"]=_emscripten_glStencilFuncSeparate;_emscripten_glStencilFuncSeparate.sig=\"viiii\";function _emscripten_glStencilMask(x0){GLctx[\"stencilMask\"](x0)}Module[\"_emscripten_glStencilMask\"]=_emscripten_glStencilMask;_emscripten_glStencilMask.sig=\"vi\";function _emscripten_glStencilMaskSeparate(x0,x1){GLctx[\"stencilMaskSeparate\"](x0,x1)}Module[\"_emscripten_glStencilMaskSeparate\"]=_emscripten_glStencilMaskSeparate;_emscripten_glStencilMaskSeparate.sig=\"vii\";function _emscripten_glStencilOp(x0,x1,x2){GLctx[\"stencilOp\"](x0,x1,x2)}Module[\"_emscripten_glStencilOp\"]=_emscripten_glStencilOp;_emscripten_glStencilOp.sig=\"viii\";function _emscripten_glStencilOpSeparate(x0,x1,x2,x3){GLctx[\"stencilOpSeparate\"](x0,x1,x2,x3)}Module[\"_emscripten_glStencilOpSeparate\"]=_emscripten_glStencilOpSeparate;_emscripten_glStencilOpSeparate.sig=\"viiii\";function _emscripten_glTexImage2D(target,level,internalFormat,width,height,border,format,type,pixels){GLctx.texImage2D(target,level,internalFormat,width,height,border,format,type,pixels?emscriptenWebGLGetTexPixelData(type,format,width,height,pixels,internalFormat):null)}Module[\"_emscripten_glTexImage2D\"]=_emscripten_glTexImage2D;_emscripten_glTexImage2D.sig=\"viiiiiiiii\";function _emscripten_glTexParameterf(x0,x1,x2){GLctx[\"texParameterf\"](x0,x1,x2)}Module[\"_emscripten_glTexParameterf\"]=_emscripten_glTexParameterf;_emscripten_glTexParameterf.sig=\"viii\";function _emscripten_glTexParameterfv(target,pname,params){var param=HEAPF32[params>>2];GLctx.texParameterf(target,pname,param)}Module[\"_emscripten_glTexParameterfv\"]=_emscripten_glTexParameterfv;_emscripten_glTexParameterfv.sig=\"viii\";function _emscripten_glTexParameteri(x0,x1,x2){GLctx[\"texParameteri\"](x0,x1,x2)}Module[\"_emscripten_glTexParameteri\"]=_emscripten_glTexParameteri;_emscripten_glTexParameteri.sig=\"viii\";function _emscripten_glTexParameteriv(target,pname,params){var param=HEAP32[params>>2];GLctx.texParameteri(target,pname,param)}Module[\"_emscripten_glTexParameteriv\"]=_emscripten_glTexParameteriv;_emscripten_glTexParameteriv.sig=\"viii\";function _emscripten_glTexSubImage2D(target,level,xoffset,yoffset,width,height,format,type,pixels){var pixelData=null;if(pixels)pixelData=emscriptenWebGLGetTexPixelData(type,format,width,height,pixels,0);GLctx.texSubImage2D(target,level,xoffset,yoffset,width,height,format,type,pixelData)}Module[\"_emscripten_glTexSubImage2D\"]=_emscripten_glTexSubImage2D;_emscripten_glTexSubImage2D.sig=\"viiiiiiiii\";function _emscripten_glUniform1f(location,v0){GLctx.uniform1f(GL.uniforms[location],v0)}Module[\"_emscripten_glUniform1f\"]=_emscripten_glUniform1f;_emscripten_glUniform1f.sig=\"vif\";var miniTempWebGLFloatBuffers=[];Module[\"miniTempWebGLFloatBuffers\"]=miniTempWebGLFloatBuffers;function _emscripten_glUniform1fv(location,count,value){if(count<=288){var view=miniTempWebGLFloatBuffers[count-1];for(var i=0;i<count;++i){view[i]=HEAPF32[value+4*i>>2]}}else{var view=HEAPF32.subarray(value>>2,value+count*4>>2)}GLctx.uniform1fv(GL.uniforms[location],view)}Module[\"_emscripten_glUniform1fv\"]=_emscripten_glUniform1fv;_emscripten_glUniform1fv.sig=\"viii\";function _emscripten_glUniform1i(location,v0){GLctx.uniform1i(GL.uniforms[location],v0)}Module[\"_emscripten_glUniform1i\"]=_emscripten_glUniform1i;_emscripten_glUniform1i.sig=\"vii\";var __miniTempWebGLIntBuffers=[];Module[\"__miniTempWebGLIntBuffers\"]=__miniTempWebGLIntBuffers;function _emscripten_glUniform1iv(location,count,value){if(count<=288){var view=__miniTempWebGLIntBuffers[count-1];for(var i=0;i<count;++i){view[i]=HEAP32[value+4*i>>2]}}else{var view=HEAP32.subarray(value>>2,value+count*4>>2)}GLctx.uniform1iv(GL.uniforms[location],view)}Module[\"_emscripten_glUniform1iv\"]=_emscripten_glUniform1iv;_emscripten_glUniform1iv.sig=\"viii\";function _emscripten_glUniform2f(location,v0,v1){GLctx.uniform2f(GL.uniforms[location],v0,v1)}Module[\"_emscripten_glUniform2f\"]=_emscripten_glUniform2f;_emscripten_glUniform2f.sig=\"viff\";function _emscripten_glUniform2fv(location,count,value){if(count<=144){var view=miniTempWebGLFloatBuffers[2*count-1];for(var i=0;i<2*count;i+=2){view[i]=HEAPF32[value+4*i>>2];view[i+1]=HEAPF32[value+(4*i+4)>>2]}}else{var view=HEAPF32.subarray(value>>2,value+count*8>>2)}GLctx.uniform2fv(GL.uniforms[location],view)}Module[\"_emscripten_glUniform2fv\"]=_emscripten_glUniform2fv;_emscripten_glUniform2fv.sig=\"viii\";function _emscripten_glUniform2i(location,v0,v1){GLctx.uniform2i(GL.uniforms[location],v0,v1)}Module[\"_emscripten_glUniform2i\"]=_emscripten_glUniform2i;_emscripten_glUniform2i.sig=\"viii\";function _emscripten_glUniform2iv(location,count,value){if(count<=144){var view=__miniTempWebGLIntBuffers[2*count-1];for(var i=0;i<2*count;i+=2){view[i]=HEAP32[value+4*i>>2];view[i+1]=HEAP32[value+(4*i+4)>>2]}}else{var view=HEAP32.subarray(value>>2,value+count*8>>2)}GLctx.uniform2iv(GL.uniforms[location],view)}Module[\"_emscripten_glUniform2iv\"]=_emscripten_glUniform2iv;_emscripten_glUniform2iv.sig=\"viii\";function _emscripten_glUniform3f(location,v0,v1,v2){GLctx.uniform3f(GL.uniforms[location],v0,v1,v2)}Module[\"_emscripten_glUniform3f\"]=_emscripten_glUniform3f;_emscripten_glUniform3f.sig=\"vifff\";function _emscripten_glUniform3fv(location,count,value){if(count<=96){var view=miniTempWebGLFloatBuffers[3*count-1];for(var i=0;i<3*count;i+=3){view[i]=HEAPF32[value+4*i>>2];view[i+1]=HEAPF32[value+(4*i+4)>>2];view[i+2]=HEAPF32[value+(4*i+8)>>2]}}else{var view=HEAPF32.subarray(value>>2,value+count*12>>2)}GLctx.uniform3fv(GL.uniforms[location],view)}Module[\"_emscripten_glUniform3fv\"]=_emscripten_glUniform3fv;_emscripten_glUniform3fv.sig=\"viii\";function _emscripten_glUniform3i(location,v0,v1,v2){GLctx.uniform3i(GL.uniforms[location],v0,v1,v2)}Module[\"_emscripten_glUniform3i\"]=_emscripten_glUniform3i;_emscripten_glUniform3i.sig=\"viiii\";function _emscripten_glUniform3iv(location,count,value){if(count<=96){var view=__miniTempWebGLIntBuffers[3*count-1];for(var i=0;i<3*count;i+=3){view[i]=HEAP32[value+4*i>>2];view[i+1]=HEAP32[value+(4*i+4)>>2];view[i+2]=HEAP32[value+(4*i+8)>>2]}}else{var view=HEAP32.subarray(value>>2,value+count*12>>2)}GLctx.uniform3iv(GL.uniforms[location],view)}Module[\"_emscripten_glUniform3iv\"]=_emscripten_glUniform3iv;_emscripten_glUniform3iv.sig=\"viii\";function _emscripten_glUniform4f(location,v0,v1,v2,v3){GLctx.uniform4f(GL.uniforms[location],v0,v1,v2,v3)}Module[\"_emscripten_glUniform4f\"]=_emscripten_glUniform4f;_emscripten_glUniform4f.sig=\"viffff\";function _emscripten_glUniform4fv(location,count,value){if(count<=72){var view=miniTempWebGLFloatBuffers[4*count-1];var heap=HEAPF32;value>>=2;for(var i=0;i<4*count;i+=4){var dst=value+i;view[i]=heap[dst];view[i+1]=heap[dst+1];view[i+2]=heap[dst+2];view[i+3]=heap[dst+3]}}else{var view=HEAPF32.subarray(value>>2,value+count*16>>2)}GLctx.uniform4fv(GL.uniforms[location],view)}Module[\"_emscripten_glUniform4fv\"]=_emscripten_glUniform4fv;_emscripten_glUniform4fv.sig=\"viii\";function _emscripten_glUniform4i(location,v0,v1,v2,v3){GLctx.uniform4i(GL.uniforms[location],v0,v1,v2,v3)}Module[\"_emscripten_glUniform4i\"]=_emscripten_glUniform4i;_emscripten_glUniform4i.sig=\"viiiii\";function _emscripten_glUniform4iv(location,count,value){if(count<=72){var view=__miniTempWebGLIntBuffers[4*count-1];for(var i=0;i<4*count;i+=4){view[i]=HEAP32[value+4*i>>2];view[i+1]=HEAP32[value+(4*i+4)>>2];view[i+2]=HEAP32[value+(4*i+8)>>2];view[i+3]=HEAP32[value+(4*i+12)>>2]}}else{var view=HEAP32.subarray(value>>2,value+count*16>>2)}GLctx.uniform4iv(GL.uniforms[location],view)}Module[\"_emscripten_glUniform4iv\"]=_emscripten_glUniform4iv;_emscripten_glUniform4iv.sig=\"viii\";function _emscripten_glUniformMatrix2fv(location,count,transpose,value){if(count<=72){var view=miniTempWebGLFloatBuffers[4*count-1];for(var i=0;i<4*count;i+=4){view[i]=HEAPF32[value+4*i>>2];view[i+1]=HEAPF32[value+(4*i+4)>>2];view[i+2]=HEAPF32[value+(4*i+8)>>2];view[i+3]=HEAPF32[value+(4*i+12)>>2]}}else{var view=HEAPF32.subarray(value>>2,value+count*16>>2)}GLctx.uniformMatrix2fv(GL.uniforms[location],!!transpose,view)}Module[\"_emscripten_glUniformMatrix2fv\"]=_emscripten_glUniformMatrix2fv;_emscripten_glUniformMatrix2fv.sig=\"viiii\";function _emscripten_glUniformMatrix3fv(location,count,transpose,value){if(count<=32){var view=miniTempWebGLFloatBuffers[9*count-1];for(var i=0;i<9*count;i+=9){view[i]=HEAPF32[value+4*i>>2];view[i+1]=HEAPF32[value+(4*i+4)>>2];view[i+2]=HEAPF32[value+(4*i+8)>>2];view[i+3]=HEAPF32[value+(4*i+12)>>2];view[i+4]=HEAPF32[value+(4*i+16)>>2];view[i+5]=HEAPF32[value+(4*i+20)>>2];view[i+6]=HEAPF32[value+(4*i+24)>>2];view[i+7]=HEAPF32[value+(4*i+28)>>2];view[i+8]=HEAPF32[value+(4*i+32)>>2]}}else{var view=HEAPF32.subarray(value>>2,value+count*36>>2)}GLctx.uniformMatrix3fv(GL.uniforms[location],!!transpose,view)}Module[\"_emscripten_glUniformMatrix3fv\"]=_emscripten_glUniformMatrix3fv;_emscripten_glUniformMatrix3fv.sig=\"viiii\";function _emscripten_glUniformMatrix4fv(location,count,transpose,value){if(count<=18){var view=miniTempWebGLFloatBuffers[16*count-1];var heap=HEAPF32;value>>=2;for(var i=0;i<16*count;i+=16){var dst=value+i;view[i]=heap[dst];view[i+1]=heap[dst+1];view[i+2]=heap[dst+2];view[i+3]=heap[dst+3];view[i+4]=heap[dst+4];view[i+5]=heap[dst+5];view[i+6]=heap[dst+6];view[i+7]=heap[dst+7];view[i+8]=heap[dst+8];view[i+9]=heap[dst+9];view[i+10]=heap[dst+10];view[i+11]=heap[dst+11];view[i+12]=heap[dst+12];view[i+13]=heap[dst+13];view[i+14]=heap[dst+14];view[i+15]=heap[dst+15]}}else{var view=HEAPF32.subarray(value>>2,value+count*64>>2)}GLctx.uniformMatrix4fv(GL.uniforms[location],!!transpose,view)}Module[\"_emscripten_glUniformMatrix4fv\"]=_emscripten_glUniformMatrix4fv;_emscripten_glUniformMatrix4fv.sig=\"viiii\";function _emscripten_glUseProgram(program){GLctx.useProgram(GL.programs[program])}Module[\"_emscripten_glUseProgram\"]=_emscripten_glUseProgram;_emscripten_glUseProgram.sig=\"vi\";function _emscripten_glValidateProgram(program){GLctx.validateProgram(GL.programs[program])}Module[\"_emscripten_glValidateProgram\"]=_emscripten_glValidateProgram;_emscripten_glValidateProgram.sig=\"vi\";function _emscripten_glVertexAttrib1f(x0,x1){GLctx[\"vertexAttrib1f\"](x0,x1)}Module[\"_emscripten_glVertexAttrib1f\"]=_emscripten_glVertexAttrib1f;_emscripten_glVertexAttrib1f.sig=\"vii\";function _emscripten_glVertexAttrib1fv(index,v){GLctx.vertexAttrib1f(index,HEAPF32[v>>2])}Module[\"_emscripten_glVertexAttrib1fv\"]=_emscripten_glVertexAttrib1fv;_emscripten_glVertexAttrib1fv.sig=\"vii\";function _emscripten_glVertexAttrib2f(x0,x1,x2){GLctx[\"vertexAttrib2f\"](x0,x1,x2)}Module[\"_emscripten_glVertexAttrib2f\"]=_emscripten_glVertexAttrib2f;_emscripten_glVertexAttrib2f.sig=\"viii\";function _emscripten_glVertexAttrib2fv(index,v){GLctx.vertexAttrib2f(index,HEAPF32[v>>2],HEAPF32[v+4>>2])}Module[\"_emscripten_glVertexAttrib2fv\"]=_emscripten_glVertexAttrib2fv;_emscripten_glVertexAttrib2fv.sig=\"vii\";function _emscripten_glVertexAttrib3f(x0,x1,x2,x3){GLctx[\"vertexAttrib3f\"](x0,x1,x2,x3)}Module[\"_emscripten_glVertexAttrib3f\"]=_emscripten_glVertexAttrib3f;_emscripten_glVertexAttrib3f.sig=\"viiii\";function _emscripten_glVertexAttrib3fv(index,v){GLctx.vertexAttrib3f(index,HEAPF32[v>>2],HEAPF32[v+4>>2],HEAPF32[v+8>>2])}Module[\"_emscripten_glVertexAttrib3fv\"]=_emscripten_glVertexAttrib3fv;_emscripten_glVertexAttrib3fv.sig=\"vii\";function _emscripten_glVertexAttrib4f(x0,x1,x2,x3,x4){GLctx[\"vertexAttrib4f\"](x0,x1,x2,x3,x4)}Module[\"_emscripten_glVertexAttrib4f\"]=_emscripten_glVertexAttrib4f;_emscripten_glVertexAttrib4f.sig=\"viiiii\";function _emscripten_glVertexAttrib4fv(index,v){GLctx.vertexAttrib4f(index,HEAPF32[v>>2],HEAPF32[v+4>>2],HEAPF32[v+8>>2],HEAPF32[v+12>>2])}Module[\"_emscripten_glVertexAttrib4fv\"]=_emscripten_glVertexAttrib4fv;_emscripten_glVertexAttrib4fv.sig=\"vii\";function _emscripten_glVertexAttribDivisorANGLE(index,divisor){GLctx[\"vertexAttribDivisor\"](index,divisor)}Module[\"_emscripten_glVertexAttribDivisorANGLE\"]=_emscripten_glVertexAttribDivisorANGLE;_emscripten_glVertexAttribDivisorANGLE.sig=\"vii\";function _emscripten_glVertexAttribPointer(index,size,type,normalized,stride,ptr){GLctx.vertexAttribPointer(index,size,type,!!normalized,stride,ptr)}Module[\"_emscripten_glVertexAttribPointer\"]=_emscripten_glVertexAttribPointer;_emscripten_glVertexAttribPointer.sig=\"viiiiii\";function _emscripten_glViewport(x0,x1,x2,x3){GLctx[\"viewport\"](x0,x1,x2,x3)}Module[\"_emscripten_glViewport\"]=_emscripten_glViewport;_emscripten_glViewport.sig=\"viiii\";function _longjmp(env,value){_setThrew(env,value||1);throw\"longjmp\"}Module[\"_longjmp\"]=_longjmp;_longjmp.sig=\"vii\";function _emscripten_longjmp(a0,a1){return _longjmp(a0,a1)}Module[\"_emscripten_longjmp\"]=_emscripten_longjmp;_emscripten_longjmp.sig=\"vii\";function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}Module[\"_emscripten_memcpy_big\"]=_emscripten_memcpy_big;function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}Module[\"emscripten_realloc_buffer\"]=emscripten_realloc_buffer;function _emscripten_resize_heap(requestedSize){var oldSize=HEAPU8.length;var maxHeapSize=2147483648;if(requestedSize>maxHeapSize){return false}for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}Module[\"_emscripten_resize_heap\"]=_emscripten_resize_heap;function _emscripten_thread_sleep(msecs){var start=_emscripten_get_now();while(_emscripten_get_now()-start<msecs){}}Module[\"_emscripten_thread_sleep\"]=_emscripten_thread_sleep;function _endpwent(){throw\"endpwent: TODO\"}Module[\"_endpwent\"]=_endpwent;function getExecutableName(){return thisProgram||\"./this.program\"}Module[\"getExecutableName\"]=getExecutableName;function getEnvStrings(){if(!getEnvStrings.strings){var lang=(typeof navigator===\"object\"&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\";var env={\"USER\":\"web_user\",\"LOGNAME\":\"web_user\",\"PATH\":\"/\",\"PWD\":\"/\",\"HOME\":\"/home/web_user\",\"LANG\":lang,\"_\":getExecutableName()};for(var x in ENV){env[x]=ENV[x]}var strings=[];for(var x in env){strings.push(x+\"=\"+env[x])}getEnvStrings.strings=strings}return getEnvStrings.strings}Module[\"getEnvStrings\"]=getEnvStrings;function _environ_get(__environ,environ_buf){try{var bufSize=0;getEnvStrings().forEach(function(string,i){var ptr=environ_buf+bufSize;HEAP32[__environ+i*4>>2]=ptr;writeAsciiToMemory(string,ptr);bufSize+=string.length+1});return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_environ_get\"]=_environ_get;_environ_get.sig=\"iii\";function _environ_sizes_get(penviron_count,penviron_buf_size){try{var strings=getEnvStrings();HEAP32[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){bufSize+=string.length+1});HEAP32[penviron_buf_size>>2]=bufSize;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_environ_sizes_get\"]=_environ_sizes_get;_environ_sizes_get.sig=\"iii\";function _execve(path,argv,envp){setErrNo(45);return-1}Module[\"_execve\"]=_execve;_execve.sig=\"iiii\";function _fd_close(fd){try{var stream=SYSCALLS.getStreamFromFD(fd);FS.close(stream);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_fd_close\"]=_fd_close;_fd_close.sig=\"ii\";function _fd_fdstat_get(fd,pbuf){try{var stream=SYSCALLS.getStreamFromFD(fd);var type=stream.tty?2:FS.isDir(stream.mode)?3:FS.isLink(stream.mode)?7:4;HEAP8[pbuf>>0]=type;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_fd_fdstat_get\"]=_fd_fdstat_get;_fd_fdstat_get.sig=\"iii\";function _fd_pread(fd,iov,iovcnt,offset_low,offset_high,pnum){try{var stream=SYSCALLS.getStreamFromFD(fd);var num=SYSCALLS.doReadv(stream,iov,iovcnt,offset_low);HEAP32[pnum>>2]=num;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_fd_pread\"]=_fd_pread;function _fd_pwrite(fd,iov,iovcnt,offset_low,offset_high,pnum){try{var stream=SYSCALLS.getStreamFromFD(fd);var num=SYSCALLS.doWritev(stream,iov,iovcnt,offset_low);HEAP32[pnum>>2]=num;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_fd_pwrite\"]=_fd_pwrite;function _fd_read(fd,iov,iovcnt,pnum){try{var stream=SYSCALLS.getStreamFromFD(fd);var num=SYSCALLS.doReadv(stream,iov,iovcnt);HEAP32[pnum>>2]=num;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_fd_read\"]=_fd_read;_fd_read.sig=\"iiiii\";function _fd_seek(fd,offset_low,offset_high,whence,newOffset){try{var stream=SYSCALLS.getStreamFromFD(fd);var HIGH_OFFSET=4294967296;var offset=offset_high*HIGH_OFFSET+(offset_low>>>0);var DOUBLE_LIMIT=9007199254740992;if(offset<=-DOUBLE_LIMIT||offset>=DOUBLE_LIMIT){return-61}FS.llseek(stream,offset,whence);tempI64=[stream.position>>>0,(tempDouble=stream.position,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[newOffset>>2]=tempI64[0],HEAP32[newOffset+4>>2]=tempI64[1];if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_fd_seek\"]=_fd_seek;function _fd_sync(fd){try{var stream=SYSCALLS.getStreamFromFD(fd);if(stream.stream_ops&&stream.stream_ops.fsync){return-stream.stream_ops.fsync(stream)}return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_fd_sync\"]=_fd_sync;_fd_sync.sig=\"ii\";function _fd_write(fd,iov,iovcnt,pnum){try{var stream=SYSCALLS.getStreamFromFD(fd);var num=SYSCALLS.doWritev(stream,iov,iovcnt);HEAP32[pnum>>2]=num;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_fd_write\"]=_fd_write;_fd_write.sig=\"iiiii\";function _fork(){setErrNo(6);return-1}Module[\"_fork\"]=_fork;_fork.sig=\"i\";var GAI_ERRNO_MESSAGES={};Module[\"GAI_ERRNO_MESSAGES\"]=GAI_ERRNO_MESSAGES;function _gai_strerror(val){var buflen=256;if(!_gai_strerror.buffer){_gai_strerror.buffer=_malloc(buflen);GAI_ERRNO_MESSAGES[\"0\"]=\"Success\";GAI_ERRNO_MESSAGES[\"\"+-1]=\"Invalid value for 'ai_flags' field\";GAI_ERRNO_MESSAGES[\"\"+-2]=\"NAME or SERVICE is unknown\";GAI_ERRNO_MESSAGES[\"\"+-3]=\"Temporary failure in name resolution\";GAI_ERRNO_MESSAGES[\"\"+-4]=\"Non-recoverable failure in name res\";GAI_ERRNO_MESSAGES[\"\"+-6]=\"'ai_family' not supported\";GAI_ERRNO_MESSAGES[\"\"+-7]=\"'ai_socktype' not supported\";GAI_ERRNO_MESSAGES[\"\"+-8]=\"SERVICE not supported for 'ai_socktype'\";GAI_ERRNO_MESSAGES[\"\"+-10]=\"Memory allocation failure\";GAI_ERRNO_MESSAGES[\"\"+-11]=\"System error returned in 'errno'\";GAI_ERRNO_MESSAGES[\"\"+-12]=\"Argument buffer overflow\"}var msg=\"Unknown error\";if(val in GAI_ERRNO_MESSAGES){if(GAI_ERRNO_MESSAGES[val].length>buflen-1){msg=\"Message too long\"}else{msg=GAI_ERRNO_MESSAGES[val]}}writeAsciiToMemory(msg,_gai_strerror.buffer);return _gai_strerror.buffer}Module[\"_gai_strerror\"]=_gai_strerror;function _getTempRet0(){return getTempRet0()|0}Module[\"_getTempRet0\"]=_getTempRet0;_getTempRet0.sig=\"i\";function _getaddrinfo(node,service,hint,out){var addrs=[];var canon=null;var addr=0;var port=0;var flags=0;var family=0;var type=0;var proto=0;var ai,last;function allocaddrinfo(family,type,proto,canon,addr,port){var sa,salen,ai;var errno;salen=family===10?28:16;addr=family===10?inetNtop6(addr):inetNtop4(addr);sa=_malloc(salen);errno=writeSockaddr(sa,family,addr,port);assert(!errno);ai=_malloc(32);HEAP32[ai+4>>2]=family;HEAP32[ai+8>>2]=type;HEAP32[ai+12>>2]=proto;HEAP32[ai+24>>2]=canon;HEAP32[ai+20>>2]=sa;if(family===10){HEAP32[ai+16>>2]=28}else{HEAP32[ai+16>>2]=16}HEAP32[ai+28>>2]=0;return ai}if(hint){flags=HEAP32[hint>>2];family=HEAP32[hint+4>>2];type=HEAP32[hint+8>>2];proto=HEAP32[hint+12>>2]}if(type&&!proto){proto=type===2?17:6}if(!type&&proto){type=proto===17?2:1}if(proto===0){proto=6}if(type===0){type=1}if(!node&&!service){return-2}if(flags&~(1|2|4|1024|8|16|32)){return-1}if(hint!==0&&HEAP32[hint>>2]&2&&!node){return-1}if(flags&32){return-2}if(type!==0&&type!==1&&type!==2){return-7}if(family!==0&&family!==2&&family!==10){return-6}if(service){service=UTF8ToString(service);port=parseInt(service,10);if(isNaN(port)){if(flags&1024){return-2}return-8}}if(!node){if(family===0){family=2}if((flags&1)===0){if(family===2){addr=_htonl(2130706433)}else{addr=[0,0,0,1]}}ai=allocaddrinfo(family,type,proto,null,addr,port);HEAP32[out>>2]=ai;return 0}node=UTF8ToString(node);addr=inetPton4(node);if(addr!==null){if(family===0||family===2){family=2}else if(family===10&&flags&8){addr=[0,0,_htonl(65535),addr];family=10}else{return-2}}else{addr=inetPton6(node);if(addr!==null){if(family===0||family===10){family=10}else{return-2}}}if(addr!=null){ai=allocaddrinfo(family,type,proto,node,addr,port);HEAP32[out>>2]=ai;return 0}if(flags&4){return-2}node=DNS.lookup_name(node);addr=inetPton4(node);if(family===0){family=2}else if(family===10){addr=[0,0,_htonl(65535),addr]}ai=allocaddrinfo(family,type,proto,null,addr,port);HEAP32[out>>2]=ai;return 0}Module[\"_getaddrinfo\"]=_getaddrinfo;_getaddrinfo.sig=\"iiiii\";function _getentropy(buffer,size){if(!_getentropy.randomDevice){_getentropy.randomDevice=getRandomDevice()}for(var i=0;i<size;i++){HEAP8[buffer+i>>0]=_getentropy.randomDevice()}return 0}Module[\"_getentropy\"]=_getentropy;function getHostByName(name){var ret=_malloc(20);var nameBuf=_malloc(name.length+1);stringToUTF8(name,nameBuf,name.length+1);HEAP32[ret>>2]=nameBuf;var aliasesBuf=_malloc(4);HEAP32[aliasesBuf>>2]=0;HEAP32[ret+4>>2]=aliasesBuf;var afinet=2;HEAP32[ret+8>>2]=afinet;HEAP32[ret+12>>2]=4;var addrListBuf=_malloc(12);HEAP32[addrListBuf>>2]=addrListBuf+8;HEAP32[addrListBuf+4>>2]=0;HEAP32[addrListBuf+8>>2]=inetPton4(DNS.lookup_name(name));HEAP32[ret+16>>2]=addrListBuf;return ret}Module[\"getHostByName\"]=getHostByName;function _gethostbyaddr(addr,addrlen,type){if(type!==2){setErrNo(5);return null}addr=HEAP32[addr>>2];var host=inetNtop4(addr);var lookup=DNS.lookup_addr(host);if(lookup){host=lookup}return getHostByName(host)}Module[\"_gethostbyaddr\"]=_gethostbyaddr;_gethostbyaddr.sig=\"iiii\";function _gethostbyname(name){return getHostByName(UTF8ToString(name))}Module[\"_gethostbyname\"]=_gethostbyname;_gethostbyname.sig=\"ii\";function _getitimer(){throw\"getitimer() is not implemented yet\"}Module[\"_getitimer\"]=_getitimer;function _getloadavg(loadavg,nelem){var limit=Math.min(nelem,3);var doubleSize=8;for(var i=0;i<limit;i++){HEAPF64[loadavg+i*doubleSize>>3]=.1}return limit}Module[\"_getloadavg\"]=_getloadavg;function _getnameinfo(sa,salen,node,nodelen,serv,servlen,flags){var info=readSockaddr(sa,salen);if(info.errno){return-6}var port=info.port;var addr=info.addr;var overflowed=false;if(node&&nodelen){var lookup;if(flags&1||!(lookup=DNS.lookup_addr(addr))){if(flags&8){return-2}}else{addr=lookup}var numBytesWrittenExclNull=stringToUTF8(addr,node,nodelen);if(numBytesWrittenExclNull+1>=nodelen){overflowed=true}}if(serv&&servlen){port=\"\"+port;var numBytesWrittenExclNull=stringToUTF8(port,serv,servlen);if(numBytesWrittenExclNull+1>=servlen){overflowed=true}}if(overflowed){return-12}return 0}Module[\"_getnameinfo\"]=_getnameinfo;var Protocols={list:[],map:{}};Module[\"Protocols\"]=Protocols;function _setprotoent(stayopen){function allocprotoent(name,proto,aliases){var nameBuf=_malloc(name.length+1);writeAsciiToMemory(name,nameBuf);var j=0;var length=aliases.length;var aliasListBuf=_malloc((length+1)*4);for(var i=0;i<length;i++,j+=4){var alias=aliases[i];var aliasBuf=_malloc(alias.length+1);writeAsciiToMemory(alias,aliasBuf);HEAP32[aliasListBuf+j>>2]=aliasBuf}HEAP32[aliasListBuf+j>>2]=0;var pe=_malloc(12);HEAP32[pe>>2]=nameBuf;HEAP32[pe+4>>2]=aliasListBuf;HEAP32[pe+8>>2]=proto;return pe}var list=Protocols.list;var map=Protocols.map;if(list.length===0){var entry=allocprotoent(\"tcp\",6,[\"TCP\"]);list.push(entry);map[\"tcp\"]=map[\"6\"]=entry;entry=allocprotoent(\"udp\",17,[\"UDP\"]);list.push(entry);map[\"udp\"]=map[\"17\"]=entry}_setprotoent.index=0}Module[\"_setprotoent\"]=_setprotoent;function _getprotobyname(name){name=UTF8ToString(name);_setprotoent(true);var result=Protocols.map[name];return result}Module[\"_getprotobyname\"]=_getprotobyname;function _getpwent(){throw\"getpwent: TODO\"}Module[\"_getpwent\"]=_getpwent;function _getpwnam_r(){throw\"getpwnam_r: TODO\"}Module[\"_getpwnam_r\"]=_getpwnam_r;function _getpwuid_r(){throw\"getpwuid_r: TODO\"}Module[\"_getpwuid_r\"]=_getpwuid_r;function _gettimeofday(ptr){var now=Date.now();HEAP32[ptr>>2]=now/1e3|0;HEAP32[ptr+4>>2]=now%1e3*1e3|0;return 0}Module[\"_gettimeofday\"]=_gettimeofday;function _kill(pid,sig){setErrNo(ERRNO_CODES.EPERM);return-1}Module[\"_kill\"]=_kill;function _killpg(){setErrNo(ERRNO_CODES.EPERM);return-1}Module[\"_killpg\"]=_killpg;function _posix_spawn(){return _fork()}Module[\"_posix_spawn\"]=_posix_spawn;_posix_spawn.sig=\"i\";function _pthread_cleanup_push(routine,arg){__ATEXIT__.push({func:routine,arg:arg});_pthread_cleanup_push.level=__ATEXIT__.length}Module[\"_pthread_cleanup_push\"]=_pthread_cleanup_push;_pthread_cleanup_push.sig=\"vii\";function _pthread_cleanup_pop(execute){assert(_pthread_cleanup_push.level==__ATEXIT__.length,\"cannot pop if something else added meanwhile!\");callback=__ATEXIT__.pop();if(execute){wasmTable.get(callback.func)(callback.arg)}_pthread_cleanup_push.level=__ATEXIT__.length}Module[\"_pthread_cleanup_pop\"]=_pthread_cleanup_pop;_pthread_cleanup_pop.sig=\"vi\";function _pthread_create(){return 6}Module[\"_pthread_create\"]=_pthread_create;function _pthread_join(){return 28}Module[\"_pthread_join\"]=_pthread_join;function _pthread_sigmask(how,set,oldset){err(\"pthread_sigmask() is not supported: this is a no-op.\");return 0}Module[\"_pthread_sigmask\"]=_pthread_sigmask;function _raise(sig){setErrNo(ERRNO_CODES.ENOSYS);return-1}Module[\"_raise\"]=_raise;function _setTempRet0($i){setTempRet0($i|0)}Module[\"_setTempRet0\"]=_setTempRet0;_setTempRet0.sig=\"vi\";function _setgroups(ngroups,gidset){if(ngroups<1||ngroups>_sysconf(3)){setErrNo(28);return-1}else{setErrNo(63);return-1}}Module[\"_setgroups\"]=_setgroups;function _setitimer(){throw\"setitimer() is not implemented yet\"}Module[\"_setitimer\"]=_setitimer;function _setpwent(){throw\"setpwent: TODO\"}Module[\"_setpwent\"]=_setpwent;function _sigemptyset(set){HEAP32[set>>2]=0;return 0}Module[\"_sigemptyset\"]=_sigemptyset;function _sigfillset(set){HEAP32[set>>2]=-1>>>0;return 0}Module[\"_sigfillset\"]=_sigfillset;function _siginterrupt(){return 0}Module[\"_siginterrupt\"]=_siginterrupt;function _sigismember(set,signum){return HEAP32[set>>2]&1<<signum-1}Module[\"_sigismember\"]=_sigismember;function _signal(sig,func){if(sig==14){__sigalrm_handler=func}else{}return 0}Module[\"_signal\"]=_signal;_signal.sig=\"iii\";function _sigpending(set){HEAP32[set>>2]=0;return 0}Module[\"_sigpending\"]=_sigpending;function __isLeapYear(year){return year%4===0&&(year%100!==0||year%400===0)}Module[\"__isLeapYear\"]=__isLeapYear;function __arraySum(array,index){var sum=0;for(var i=0;i<=index;sum+=array[i++]){}return sum}Module[\"__arraySum\"]=__arraySum;var __MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31];Module[\"__MONTH_DAYS_LEAP\"]=__MONTH_DAYS_LEAP;var __MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31];Module[\"__MONTH_DAYS_REGULAR\"]=__MONTH_DAYS_REGULAR;function __addDays(date,days){var newDate=new Date(date.getTime());while(days>0){var leap=__isLeapYear(newDate.getFullYear());var currentMonth=newDate.getMonth();var daysInCurrentMonth=(leap?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR)[currentMonth];if(days>daysInCurrentMonth-newDate.getDate()){days-=daysInCurrentMonth-newDate.getDate()+1;newDate.setDate(1);if(currentMonth<11){newDate.setMonth(currentMonth+1)}else{newDate.setMonth(0);newDate.setFullYear(newDate.getFullYear()+1)}}else{newDate.setDate(newDate.getDate()+days);return newDate}}return newDate}Module[\"__addDays\"]=__addDays;function _strftime(s,maxsize,format,tm){var tm_zone=HEAP32[tm+40>>2];var date={tm_sec:HEAP32[tm>>2],tm_min:HEAP32[tm+4>>2],tm_hour:HEAP32[tm+8>>2],tm_mday:HEAP32[tm+12>>2],tm_mon:HEAP32[tm+16>>2],tm_year:HEAP32[tm+20>>2],tm_wday:HEAP32[tm+24>>2],tm_yday:HEAP32[tm+28>>2],tm_isdst:HEAP32[tm+32>>2],tm_gmtoff:HEAP32[tm+36>>2],tm_zone:tm_zone?UTF8ToString(tm_zone):\"\"};var pattern=UTF8ToString(format);var EXPANSION_RULES_1={\"%c\":\"%a %b %d %H:%M:%S %Y\",\"%D\":\"%m/%d/%y\",\"%F\":\"%Y-%m-%d\",\"%h\":\"%b\",\"%r\":\"%I:%M:%S %p\",\"%R\":\"%H:%M\",\"%T\":\"%H:%M:%S\",\"%x\":\"%m/%d/%y\",\"%X\":\"%H:%M:%S\",\"%Ec\":\"%c\",\"%EC\":\"%C\",\"%Ex\":\"%m/%d/%y\",\"%EX\":\"%H:%M:%S\",\"%Ey\":\"%y\",\"%EY\":\"%Y\",\"%Od\":\"%d\",\"%Oe\":\"%e\",\"%OH\":\"%H\",\"%OI\":\"%I\",\"%Om\":\"%m\",\"%OM\":\"%M\",\"%OS\":\"%S\",\"%Ou\":\"%u\",\"%OU\":\"%U\",\"%OV\":\"%V\",\"%Ow\":\"%w\",\"%OW\":\"%W\",\"%Oy\":\"%y\"};for(var rule in EXPANSION_RULES_1){pattern=pattern.replace(new RegExp(rule,\"g\"),EXPANSION_RULES_1[rule])}var WEEKDAYS=[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"];var MONTHS=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"];function leadingSomething(value,digits,character){var str=typeof value===\"number\"?value.toString():value||\"\";while(str.length<digits){str=character[0]+str}return str}function leadingNulls(value,digits){return leadingSomething(value,digits,\"0\")}function compareByDay(date1,date2){function sgn(value){return value<0?-1:value>0?1:0}var compare;if((compare=sgn(date1.getFullYear()-date2.getFullYear()))===0){if((compare=sgn(date1.getMonth()-date2.getMonth()))===0){compare=sgn(date1.getDate()-date2.getDate())}}return compare}function getFirstWeekStartDate(janFourth){switch(janFourth.getDay()){case 0:return new Date(janFourth.getFullYear()-1,11,29);case 1:return janFourth;case 2:return new Date(janFourth.getFullYear(),0,3);case 3:return new Date(janFourth.getFullYear(),0,2);case 4:return new Date(janFourth.getFullYear(),0,1);case 5:return new Date(janFourth.getFullYear()-1,11,31);case 6:return new Date(janFourth.getFullYear()-1,11,30)}}function getWeekBasedYear(date){var thisDate=__addDays(new Date(date.tm_year+1900,0,1),date.tm_yday);var janFourthThisYear=new Date(thisDate.getFullYear(),0,4);var janFourthNextYear=new Date(thisDate.getFullYear()+1,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);if(compareByDay(firstWeekStartThisYear,thisDate)<=0){if(compareByDay(firstWeekStartNextYear,thisDate)<=0){return thisDate.getFullYear()+1}else{return thisDate.getFullYear()}}else{return thisDate.getFullYear()-1}}var EXPANSION_RULES_2={\"%a\":function(date){return WEEKDAYS[date.tm_wday].substring(0,3)},\"%A\":function(date){return WEEKDAYS[date.tm_wday]},\"%b\":function(date){return MONTHS[date.tm_mon].substring(0,3)},\"%B\":function(date){return MONTHS[date.tm_mon]},\"%C\":function(date){var year=date.tm_year+1900;return leadingNulls(year/100|0,2)},\"%d\":function(date){return leadingNulls(date.tm_mday,2)},\"%e\":function(date){return leadingSomething(date.tm_mday,2,\" \")},\"%g\":function(date){return getWeekBasedYear(date).toString().substring(2)},\"%G\":function(date){return getWeekBasedYear(date)},\"%H\":function(date){return leadingNulls(date.tm_hour,2)},\"%I\":function(date){var twelveHour=date.tm_hour;if(twelveHour==0)twelveHour=12;else if(twelveHour>12)twelveHour-=12;return leadingNulls(twelveHour,2)},\"%j\":function(date){return leadingNulls(date.tm_mday+__arraySum(__isLeapYear(date.tm_year+1900)?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,date.tm_mon-1),3)},\"%m\":function(date){return leadingNulls(date.tm_mon+1,2)},\"%M\":function(date){return leadingNulls(date.tm_min,2)},\"%n\":function(){return\"\\n\"},\"%p\":function(date){if(date.tm_hour>=0&&date.tm_hour<12){return\"AM\"}else{return\"PM\"}},\"%S\":function(date){return leadingNulls(date.tm_sec,2)},\"%t\":function(){return\"\\t\"},\"%u\":function(date){return date.tm_wday||7},\"%U\":function(date){var janFirst=new Date(date.tm_year+1900,0,1);var firstSunday=janFirst.getDay()===0?janFirst:__addDays(janFirst,7-janFirst.getDay());var endDate=new Date(date.tm_year+1900,date.tm_mon,date.tm_mday);if(compareByDay(firstSunday,endDate)<0){var februaryFirstUntilEndMonth=__arraySum(__isLeapYear(endDate.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,endDate.getMonth()-1)-31;var firstSundayUntilEndJanuary=31-firstSunday.getDate();var days=firstSundayUntilEndJanuary+februaryFirstUntilEndMonth+endDate.getDate();return leadingNulls(Math.ceil(days/7),2)}return compareByDay(firstSunday,janFirst)===0?\"01\":\"00\"},\"%V\":function(date){var janFourthThisYear=new Date(date.tm_year+1900,0,4);var janFourthNextYear=new Date(date.tm_year+1901,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);var endDate=__addDays(new Date(date.tm_year+1900,0,1),date.tm_yday);if(compareByDay(endDate,firstWeekStartThisYear)<0){return\"53\"}if(compareByDay(firstWeekStartNextYear,endDate)<=0){return\"01\"}var daysDifference;if(firstWeekStartThisYear.getFullYear()<date.tm_year+1900){daysDifference=date.tm_yday+32-firstWeekStartThisYear.getDate()}else{daysDifference=date.tm_yday+1-firstWeekStartThisYear.getDate()}return leadingNulls(Math.ceil(daysDifference/7),2)},\"%w\":function(date){return date.tm_wday},\"%W\":function(date){var janFirst=new Date(date.tm_year,0,1);var firstMonday=janFirst.getDay()===1?janFirst:__addDays(janFirst,janFirst.getDay()===0?1:7-janFirst.getDay()+1);var endDate=new Date(date.tm_year+1900,date.tm_mon,date.tm_mday);if(compareByDay(firstMonday,endDate)<0){var februaryFirstUntilEndMonth=__arraySum(__isLeapYear(endDate.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,endDate.getMonth()-1)-31;var firstMondayUntilEndJanuary=31-firstMonday.getDate();var days=firstMondayUntilEndJanuary+februaryFirstUntilEndMonth+endDate.getDate();return leadingNulls(Math.ceil(days/7),2)}return compareByDay(firstMonday,janFirst)===0?\"01\":\"00\"},\"%y\":function(date){return(date.tm_year+1900).toString().substring(2)},\"%Y\":function(date){return date.tm_year+1900},\"%z\":function(date){var off=date.tm_gmtoff;var ahead=off>=0;off=Math.abs(off)/60;off=off/60*100+off%60;return(ahead?\"+\":\"-\")+String(\"0000\"+off).slice(-4)},\"%Z\":function(date){return date.tm_zone},\"%%\":function(){return\"%\"}};for(var rule in EXPANSION_RULES_2){if(pattern.indexOf(rule)>=0){pattern=pattern.replace(new RegExp(rule,\"g\"),EXPANSION_RULES_2[rule](date))}}var bytes=intArrayFromString(pattern,false);if(bytes.length>maxsize){return 0}writeArrayToMemory(bytes,s);return bytes.length-1}Module[\"_strftime\"]=_strftime;_strftime.sig=\"iiiii\";function _strftime_l(s,maxsize,format,tm){return _strftime(s,maxsize,format,tm)}Module[\"_strftime_l\"]=_strftime_l;function _system(command){if(ENVIRONMENT_IS_NODE){if(!command)return 1;var cmdstr=UTF8ToString(command);if(!cmdstr.length)return 0;var cp=require(\"child_process\");var ret=cp.spawnSync(cmdstr,[],{shell:true,stdio:\"inherit\"});var _W_EXITCODE=function(ret,sig){return ret<<8|sig};if(ret.status===null){var signalToNumber=function(sig){switch(sig){case\"SIGHUP\":return 1;case\"SIGINT\":return 2;case\"SIGQUIT\":return 3;case\"SIGFPE\":return 8;case\"SIGKILL\":return 9;case\"SIGALRM\":return 14;case\"SIGTERM\":return 15}return 2};return _W_EXITCODE(0,signalToNumber(ret.signal))}return _W_EXITCODE(ret.status,0)}if(!command)return 0;setErrNo(6);return-1}Module[\"_system\"]=_system;function _time(ptr){var ret=Date.now()/1e3|0;if(ptr){HEAP32[ptr>>2]=ret}return ret}Module[\"_time\"]=_time;_time.sig=\"ii\";function _times(buffer){if(buffer!==0){_memset(buffer,0,16)}return 0}Module[\"_times\"]=_times;function setFileTime(path,time){path=UTF8ToString(path);try{FS.utime(path,time,time);return 0}catch(e){if(!(e instanceof FS.ErrnoError))throw e+\" : \"+stackTrace();setErrNo(e.errno);return-1}}Module[\"setFileTime\"]=setFileTime;function _utimes(path,times){var time;if(times){var mtime=times+8;time=HEAP32[mtime>>2]*1e3;time+=HEAP32[mtime+4>>2]/1e3}else{time=Date.now()}return setFileTime(path,time)}Module[\"_utimes\"]=_utimes;_utimes.sig=\"iii\";function _wait3(a0){return _wait(a0)}Module[\"_wait3\"]=_wait3;_wait3.sig=\"ii\";function _wait4(a0){return _wait(a0)}Module[\"_wait4\"]=_wait4;_wait4.sig=\"ii\";function _waitid(a0){return _wait(a0)}Module[\"_waitid\"]=_waitid;_waitid.sig=\"ii\";function ___stack_pointer(){return Module[\"___stack_pointer\"].apply(null,arguments)}function ___memory_base(){return Module[\"___memory_base\"].apply(null,arguments)}function ___table_base(){return Module[\"___table_base\"].apply(null,arguments)}function ___heap_base(){return Module[\"___heap_base\"].apply(null,arguments)}var readAsmConstArgsArray=[];Module[\"readAsmConstArgsArray\"]=readAsmConstArgsArray;function readAsmConstArgs(sigPtr,buf){readAsmConstArgsArray.length=0;var ch;buf>>=2;while(ch=HEAPU8[sigPtr++]){var double=ch<105;if(double&&buf&1)buf++;readAsmConstArgsArray.push(double?HEAPF64[buf++>>1]:HEAP32[buf]);++buf}return readAsmConstArgsArray}Module[\"readAsmConstArgs\"]=readAsmConstArgs;function _utime(path,times){var time;if(times){time=HEAP32[times+4>>2]*1e3}else{time=Date.now()}return setFileTime(path,time)}Module[\"_utime\"]=_utime;_utime.sig=\"iii\";function _flock(fd,operation){return 0}Module[\"_flock\"]=_flock;function __Exit(a0){return _exit(a0)}Module[\"__Exit\"]=__Exit;__Exit.sig=\"vi\";function _vfork(){return _fork()}Module[\"_vfork\"]=_vfork;_vfork.sig=\"i\";function _emscripten_notify_memory_growth(memoryIndex){updateGlobalBufferAndViews(wasmMemory.buffer)}Module[\"_emscripten_notify_memory_growth\"]=_emscripten_notify_memory_growth;function ___cxa_thread_atexit(a0,a1){return _atexit(a0,a1)}Module[\"___cxa_thread_atexit\"]=___cxa_thread_atexit;___cxa_thread_atexit.sig=\"iii\";function ___cxa_thread_atexit_impl(a0,a1){return _atexit(a0,a1)}Module[\"___cxa_thread_atexit_impl\"]=___cxa_thread_atexit_impl;___cxa_thread_atexit_impl.sig=\"iii\";function _getpwuid(){throw\"getpwuid: TODO\"}Module[\"_getpwuid\"]=_getpwuid;function _difftime(time1,time0){return time1-time0}Module[\"_difftime\"]=_difftime;_difftime.sig=\"dii\";function _timelocal(a0){return _mktime(a0)}Module[\"_timelocal\"]=_timelocal;_timelocal.sig=\"ii\";function _timegm(tmPtr){_tzset();var time=Date.UTC(HEAP32[tmPtr+20>>2]+1900,HEAP32[tmPtr+16>>2],HEAP32[tmPtr+12>>2],HEAP32[tmPtr+8>>2],HEAP32[tmPtr+4>>2],HEAP32[tmPtr>>2],0);var date=new Date(time);HEAP32[tmPtr+24>>2]=date.getUTCDay();var start=Date.UTC(date.getUTCFullYear(),0,1,0,0,0,0);var yday=(date.getTime()-start)/(1e3*60*60*24)|0;HEAP32[tmPtr+28>>2]=yday;return date.getTime()/1e3|0}Module[\"_timegm\"]=_timegm;_timegm.sig=\"ii\";function _ctime_r(time,buf){var stack=stackSave();var rv=_asctime_r(_localtime_r(time,stackAlloc(44)),buf);stackRestore(stack);return rv}Module[\"_ctime_r\"]=_ctime_r;_ctime_r.sig=\"iii\";function ___ctime_r(a0,a1){return _ctime_r(a0,a1)}Module[\"___ctime_r\"]=___ctime_r;___ctime_r.sig=\"iii\";function _dysize(year){var leap=year%4==0&&(year%100!=0||year%400==0);return leap?366:365}Module[\"_dysize\"]=_dysize;function _stime(when){setErrNo(63);return-1}Module[\"_stime\"]=_stime;function _strptime(buf,format,tm){var pattern=UTF8ToString(format);var SPECIAL_CHARS=\"\\\\!@#$^&*()+=-[]/{}|:<>?,.\";for(var i=0,ii=SPECIAL_CHARS.length;i<ii;++i){pattern=pattern.replace(new RegExp(\"\\\\\"+SPECIAL_CHARS[i],\"g\"),\"\\\\\"+SPECIAL_CHARS[i])}var EQUIVALENT_MATCHERS={\"%A\":\"%a\",\"%B\":\"%b\",\"%c\":\"%a %b %d %H:%M:%S %Y\",\"%D\":\"%m\\\\/%d\\\\/%y\",\"%e\":\"%d\",\"%F\":\"%Y-%m-%d\",\"%h\":\"%b\",\"%R\":\"%H\\\\:%M\",\"%r\":\"%I\\\\:%M\\\\:%S\\\\s%p\",\"%T\":\"%H\\\\:%M\\\\:%S\",\"%x\":\"%m\\\\/%d\\\\/(?:%y|%Y)\",\"%X\":\"%H\\\\:%M\\\\:%S\"};for(var matcher in EQUIVALENT_MATCHERS){pattern=pattern.replace(matcher,EQUIVALENT_MATCHERS[matcher])}var DATE_PATTERNS={\"%a\":\"(?:Sun(?:day)?)|(?:Mon(?:day)?)|(?:Tue(?:sday)?)|(?:Wed(?:nesday)?)|(?:Thu(?:rsday)?)|(?:Fri(?:day)?)|(?:Sat(?:urday)?)\",\"%b\":\"(?:Jan(?:uary)?)|(?:Feb(?:ruary)?)|(?:Mar(?:ch)?)|(?:Apr(?:il)?)|May|(?:Jun(?:e)?)|(?:Jul(?:y)?)|(?:Aug(?:ust)?)|(?:Sep(?:tember)?)|(?:Oct(?:ober)?)|(?:Nov(?:ember)?)|(?:Dec(?:ember)?)\",\"%C\":\"\\\\d\\\\d\",\"%d\":\"0[1-9]|[1-9](?!\\\\d)|1\\\\d|2\\\\d|30|31\",\"%H\":\"\\\\d(?!\\\\d)|[0,1]\\\\d|20|21|22|23\",\"%I\":\"\\\\d(?!\\\\d)|0\\\\d|10|11|12\",\"%j\":\"00[1-9]|0?[1-9](?!\\\\d)|0?[1-9]\\\\d(?!\\\\d)|[1,2]\\\\d\\\\d|3[0-6]\\\\d\",\"%m\":\"0[1-9]|[1-9](?!\\\\d)|10|11|12\",\"%M\":\"0\\\\d|\\\\d(?!\\\\d)|[1-5]\\\\d\",\"%n\":\"\\\\s\",\"%p\":\"AM|am|PM|pm|A\\\\.M\\\\.|a\\\\.m\\\\.|P\\\\.M\\\\.|p\\\\.m\\\\.\",\"%S\":\"0\\\\d|\\\\d(?!\\\\d)|[1-5]\\\\d|60\",\"%U\":\"0\\\\d|\\\\d(?!\\\\d)|[1-4]\\\\d|50|51|52|53\",\"%W\":\"0\\\\d|\\\\d(?!\\\\d)|[1-4]\\\\d|50|51|52|53\",\"%w\":\"[0-6]\",\"%y\":\"\\\\d\\\\d\",\"%Y\":\"\\\\d\\\\d\\\\d\\\\d\",\"%%\":\"%\",\"%t\":\"\\\\s\"};var MONTH_NUMBERS={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11};var DAY_NUMBERS_SUN_FIRST={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};var DAY_NUMBERS_MON_FIRST={MON:0,TUE:1,WED:2,THU:3,FRI:4,SAT:5,SUN:6};for(var datePattern in DATE_PATTERNS){pattern=pattern.replace(datePattern,\"(\"+datePattern+DATE_PATTERNS[datePattern]+\")\")}var capture=[];for(var i=pattern.indexOf(\"%\");i>=0;i=pattern.indexOf(\"%\")){capture.push(pattern[i+1]);pattern=pattern.replace(new RegExp(\"\\\\%\"+pattern[i+1],\"g\"),\"\")}var matches=new RegExp(\"^\"+pattern,\"i\").exec(UTF8ToString(buf));function initDate(){function fixup(value,min,max){return typeof value!==\"number\"||isNaN(value)?min:value>=min?value<=max?value:max:min}return{year:fixup(HEAP32[tm+20>>2]+1900,1970,9999),month:fixup(HEAP32[tm+16>>2],0,11),day:fixup(HEAP32[tm+12>>2],1,31),hour:fixup(HEAP32[tm+8>>2],0,23),min:fixup(HEAP32[tm+4>>2],0,59),sec:fixup(HEAP32[tm>>2],0,59)}}if(matches){var date=initDate();var value;var getMatch=function(symbol){var pos=capture.indexOf(symbol);if(pos>=0){return matches[pos+1]}return};if(value=getMatch(\"S\")){date.sec=jstoi_q(value)}if(value=getMatch(\"M\")){date.min=jstoi_q(value)}if(value=getMatch(\"H\")){date.hour=jstoi_q(value)}else if(value=getMatch(\"I\")){var hour=jstoi_q(value);if(value=getMatch(\"p\")){hour+=value.toUpperCase()[0]===\"P\"?12:0}date.hour=hour}if(value=getMatch(\"Y\")){date.year=jstoi_q(value)}else if(value=getMatch(\"y\")){var year=jstoi_q(value);if(value=getMatch(\"C\")){year+=jstoi_q(value)*100}else{year+=year<69?2e3:1900}date.year=year}if(value=getMatch(\"m\")){date.month=jstoi_q(value)-1}else if(value=getMatch(\"b\")){date.month=MONTH_NUMBERS[value.substring(0,3).toUpperCase()]||0}if(value=getMatch(\"d\")){date.day=jstoi_q(value)}else if(value=getMatch(\"j\")){var day=jstoi_q(value);var leapYear=__isLeapYear(date.year);for(var month=0;month<12;++month){var daysUntilMonth=__arraySum(leapYear?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,month-1);if(day<=daysUntilMonth+(leapYear?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR)[month]){date.day=day-daysUntilMonth}}}else if(value=getMatch(\"a\")){var weekDay=value.substring(0,3).toUpperCase();if(value=getMatch(\"U\")){var weekDayNumber=DAY_NUMBERS_SUN_FIRST[weekDay];var weekNumber=jstoi_q(value);var janFirst=new Date(date.year,0,1);var endDate;if(janFirst.getDay()===0){endDate=__addDays(janFirst,weekDayNumber+7*(weekNumber-1))}else{endDate=__addDays(janFirst,7-janFirst.getDay()+weekDayNumber+7*(weekNumber-1))}date.day=endDate.getDate();date.month=endDate.getMonth()}else if(value=getMatch(\"W\")){var weekDayNumber=DAY_NUMBERS_MON_FIRST[weekDay];var weekNumber=jstoi_q(value);var janFirst=new Date(date.year,0,1);var endDate;if(janFirst.getDay()===1){endDate=__addDays(janFirst,weekDayNumber+7*(weekNumber-1))}else{endDate=__addDays(janFirst,7-janFirst.getDay()+1+weekDayNumber+7*(weekNumber-1))}date.day=endDate.getDate();date.month=endDate.getMonth()}}var fullDate=new Date(date.year,date.month,date.day,date.hour,date.min,date.sec,0);HEAP32[tm>>2]=fullDate.getSeconds();HEAP32[tm+4>>2]=fullDate.getMinutes();HEAP32[tm+8>>2]=fullDate.getHours();HEAP32[tm+12>>2]=fullDate.getDate();HEAP32[tm+16>>2]=fullDate.getMonth();HEAP32[tm+20>>2]=fullDate.getFullYear()-1900;HEAP32[tm+24>>2]=fullDate.getDay();HEAP32[tm+28>>2]=__arraySum(__isLeapYear(fullDate.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,fullDate.getMonth()-1)+fullDate.getDate()-1;HEAP32[tm+32>>2]=0;return buf+intArrayFromString(matches[0]).length-1}return 0}Module[\"_strptime\"]=_strptime;function _strptime_l(buf,format,tm){return _strptime(buf,format,tm)}Module[\"_strptime_l\"]=_strptime_l;function _getdate(string){return 0}Module[\"_getdate\"]=_getdate;function _timespec_get(ts,base){if(base!==1){setErrNo(28);return 0}var ret=_clock_gettime(0,ts);return ret<0?0:base}Module[\"_timespec_get\"]=_timespec_get;function _clock_getcpuclockid(pid,clk_id){if(pid<0)return 71;if(pid!==0&&pid!==42)return 52;if(clk_id)HEAP32[clk_id>>2]=2;return 0}Module[\"_clock_getcpuclockid\"]=_clock_getcpuclockid;function _ftime(p){var millis=Date.now();HEAP32[p>>2]=millis/1e3|0;HEAP16[p+4>>1]=millis%1e3;HEAP16[p+6>>1]=0;HEAP16[p+8>>1]=0;return 0}Module[\"_ftime\"]=_ftime;function _makedev(maj,min){return maj<<8|min}Module[\"_makedev\"]=_makedev;_makedev.sig=\"iii\";function _gnu_dev_makedev(a0,a1){return _makedev(a0,a1)}Module[\"_gnu_dev_makedev\"]=_gnu_dev_makedev;_gnu_dev_makedev.sig=\"iii\";function _major(dev){return dev>>8}Module[\"_major\"]=_major;_major.sig=\"ii\";function _gnu_dev_major(a0){return _major(a0)}Module[\"_gnu_dev_major\"]=_gnu_dev_major;_gnu_dev_major.sig=\"ii\";function _minor(dev){return dev&255}Module[\"_minor\"]=_minor;_minor.sig=\"ii\";function _gnu_dev_minor(a0){return _minor(a0)}Module[\"_gnu_dev_minor\"]=_gnu_dev_minor;_gnu_dev_minor.sig=\"ii\";var ERRNO_MESSAGES={0:\"Success\",1:\"Arg list too long\",2:\"Permission denied\",3:\"Address already in use\",4:\"Address not available\",5:\"Address family not supported by protocol family\",6:\"No more processes\",7:\"Socket already connected\",8:\"Bad file number\",9:\"Trying to read unreadable message\",10:\"Mount device busy\",11:\"Operation canceled\",12:\"No children\",13:\"Connection aborted\",14:\"Connection refused\",15:\"Connection reset by peer\",16:\"File locking deadlock error\",17:\"Destination address required\",18:\"Math arg out of domain of func\",19:\"Quota exceeded\",20:\"File exists\",21:\"Bad address\",22:\"File too large\",23:\"Host is unreachable\",24:\"Identifier removed\",25:\"Illegal byte sequence\",26:\"Connection already in progress\",27:\"Interrupted system call\",28:\"Invalid argument\",29:\"I/O error\",30:\"Socket is already connected\",31:\"Is a directory\",32:\"Too many symbolic links\",33:\"Too many open files\",34:\"Too many links\",35:\"Message too long\",36:\"Multihop attempted\",37:\"File or path name too long\",38:\"Network interface is not configured\",39:\"Connection reset by network\",40:\"Network is unreachable\",41:\"Too many open files in system\",42:\"No buffer space available\",43:\"No such device\",44:\"No such file or directory\",45:\"Exec format error\",46:\"No record locks available\",47:\"The link has been severed\",48:\"Not enough core\",49:\"No message of desired type\",50:\"Protocol not available\",51:\"No space left on device\",52:\"Function not implemented\",53:\"Socket is not connected\",54:\"Not a directory\",55:\"Directory not empty\",56:\"State not recoverable\",57:\"Socket operation on non-socket\",59:\"Not a typewriter\",60:\"No such device or address\",61:\"Value too large for defined data type\",62:\"Previous owner died\",63:\"Not super-user\",64:\"Broken pipe\",65:\"Protocol error\",66:\"Unknown protocol\",67:\"Protocol wrong type for socket\",68:\"Math result not representable\",69:\"Read only file system\",70:\"Illegal seek\",71:\"No such process\",72:\"Stale file handle\",73:\"Connection timed out\",74:\"Text file busy\",75:\"Cross-device link\",100:\"Device not a stream\",101:\"Bad font file fmt\",102:\"Invalid slot\",103:\"Invalid request code\",104:\"No anode\",105:\"Block device required\",106:\"Channel number out of range\",107:\"Level 3 halted\",108:\"Level 3 reset\",109:\"Link number out of range\",110:\"Protocol driver not attached\",111:\"No CSI structure available\",112:\"Level 2 halted\",113:\"Invalid exchange\",114:\"Invalid request descriptor\",115:\"Exchange full\",116:\"No data (for no delay io)\",117:\"Timer expired\",118:\"Out of streams resources\",119:\"Machine is not on the network\",120:\"Package not installed\",121:\"The object is remote\",122:\"Advertise error\",123:\"Srmount error\",124:\"Communication error on send\",125:\"Cross mount point (not really error)\",126:\"Given log. name not unique\",127:\"f.d. invalid for this operation\",128:\"Remote address changed\",129:\"Can   access a needed shared lib\",130:\"Accessing a corrupted shared lib\",131:\".lib section in a.out corrupted\",132:\"Attempting to link in too many libs\",133:\"Attempting to exec a shared library\",135:\"Streams pipe error\",136:\"Too many users\",137:\"Socket type not supported\",138:\"Not supported\",139:\"Protocol family not supported\",140:\"Can't send after socket shutdown\",141:\"Too many references\",142:\"Host is down\",148:\"No medium (in tape drive)\",156:\"Level 2 not synchronized\"};Module[\"ERRNO_MESSAGES\"]=ERRNO_MESSAGES;function _gethostbyname_r(name,ret,buf,buflen,out,err){var data=_gethostbyname(name);_memcpy(ret,data,20);_free(data);HEAP32[err>>2]=0;HEAP32[out>>2]=ret;return 0}Module[\"_gethostbyname_r\"]=_gethostbyname_r;_gethostbyname_r.sig=\"iiiiiii\";function _endprotoent(){}Module[\"_endprotoent\"]=_endprotoent;function _getprotoent(number){if(_setprotoent.index===Protocols.list.length){return 0}else{var result=Protocols.list[_setprotoent.index++];return result}}Module[\"_getprotoent\"]=_getprotoent;function _getprotobynumber(number){_setprotoent(true);var result=Protocols.map[number];return result}Module[\"_getprotobynumber\"]=_getprotobynumber;function _getpwnam(){throw\"getpwnam: TODO\"}Module[\"_getpwnam\"]=_getpwnam;function _getgrgid(){throw\"getgrgid: TODO\"}Module[\"_getgrgid\"]=_getgrgid;function _getgrgid_r(){throw\"getgrgid_r: TODO\"}Module[\"_getgrgid_r\"]=_getgrgid_r;function _getgrnam(){throw\"getgrnam: TODO\"}Module[\"_getgrnam\"]=_getgrnam;function _getgrnam_r(){throw\"getgrnam_r: TODO\"}Module[\"_getgrnam_r\"]=_getgrnam_r;function _getgrent(){throw\"getgrent: TODO\"}Module[\"_getgrent\"]=_getgrent;function _endgrent(){throw\"endgrent: TODO\"}Module[\"_endgrent\"]=_endgrent;function _setgrent(){throw\"setgrent: TODO\"}Module[\"_setgrent\"]=_setgrent;function _emscripten_run_script(ptr){eval(UTF8ToString(ptr))}Module[\"_emscripten_run_script\"]=_emscripten_run_script;_emscripten_run_script.sig=\"vi\";function _emscripten_run_script_int(ptr){return eval(UTF8ToString(ptr))|0}Module[\"_emscripten_run_script_int\"]=_emscripten_run_script_int;_emscripten_run_script_int.sig=\"ii\";function _emscripten_run_script_string(ptr){var s=eval(UTF8ToString(ptr));if(s==null){return 0}s+=\"\";var me=_emscripten_run_script_string;var len=lengthBytesUTF8(s);if(!me.bufferSize||me.bufferSize<len+1){if(me.bufferSize)_free(me.buffer);me.bufferSize=len+1;me.buffer=_malloc(me.bufferSize)}stringToUTF8(s,me.buffer,me.bufferSize);return me.buffer}Module[\"_emscripten_run_script_string\"]=_emscripten_run_script_string;_emscripten_run_script_string.sig=\"ii\";function _emscripten_random(){return Math.random()}Module[\"_emscripten_random\"]=_emscripten_random;function traverseStack(args){if(!args||!args.callee||!args.callee.name){return[null,\"\",\"\"]}var funstr=args.callee.toString();var funcname=args.callee.name;var str=\"(\";var first=true;for(var i in args){var a=args[i];if(!first){str+=\", \"}first=false;if(typeof a===\"number\"||typeof a===\"string\"){str+=a}else{str+=\"(\"+typeof a+\")\"}}str+=\")\";var caller=args.callee.caller;args=caller?caller.arguments:[];if(first)str=\"\";return[args,funcname,str]}Module[\"traverseStack\"]=traverseStack;function _emscripten_get_callstack_js(flags){var callstack=jsStackTrace();var iThisFunc=callstack.lastIndexOf(\"_emscripten_log\");var iThisFunc2=callstack.lastIndexOf(\"_emscripten_get_callstack\");var iNextLine=callstack.indexOf(\"\\n\",Math.max(iThisFunc,iThisFunc2))+1;callstack=callstack.slice(iNextLine);if(flags&32){warnOnce(\"EM_LOG_DEMANGLE is deprecated; ignoring\")}if(flags&8&&typeof emscripten_source_map===\"undefined\"){warnOnce('Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with \"--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js\" linker flag to add source map loading to code.');flags^=8;flags|=16}var stack_args=null;if(flags&128){stack_args=traverseStack(arguments);while(stack_args[1].indexOf(\"_emscripten_\")>=0)stack_args=traverseStack(stack_args[0])}var lines=callstack.split(\"\\n\");callstack=\"\";var newFirefoxRe=new RegExp(\"\\\\s*(.*?)@(.*?):([0-9]+):([0-9]+)\");var firefoxRe=new RegExp(\"\\\\s*(.*?)@(.*):(.*)(:(.*))?\");var chromeRe=new RegExp(\"\\\\s*at (.*?) \\\\((.*):(.*):(.*)\\\\)\");for(var l in lines){var line=lines[l];var symbolName=\"\";var file=\"\";var lineno=0;var column=0;var parts=chromeRe.exec(line);if(parts&&parts.length==5){symbolName=parts[1];file=parts[2];lineno=parts[3];column=parts[4]}else{parts=newFirefoxRe.exec(line);if(!parts)parts=firefoxRe.exec(line);if(parts&&parts.length>=4){symbolName=parts[1];file=parts[2];lineno=parts[3];column=parts[4]|0}else{callstack+=line+\"\\n\";continue}}var haveSourceMap=false;if(flags&8){var orig=emscripten_source_map.originalPositionFor({line:lineno,column:column});haveSourceMap=orig&&orig.source;if(haveSourceMap){if(flags&64){orig.source=orig.source.substring(orig.source.replace(/\\\\/g,\"/\").lastIndexOf(\"/\")+1)}callstack+=\"    at \"+symbolName+\" (\"+orig.source+\":\"+orig.line+\":\"+orig.column+\")\\n\"}}if(flags&16||!haveSourceMap){if(flags&64){file=file.substring(file.replace(/\\\\/g,\"/\").lastIndexOf(\"/\")+1)}callstack+=(haveSourceMap?\"     = \"+symbolName:\"    at \"+symbolName)+\" (\"+file+\":\"+lineno+\":\"+column+\")\\n\"}if(flags&128&&stack_args[0]){if(stack_args[1]==symbolName&&stack_args[2].length>0){callstack=callstack.replace(/\\s+$/,\"\");callstack+=\" with values: \"+stack_args[1]+stack_args[2]+\"\\n\"}stack_args=traverseStack(stack_args[0])}}callstack=callstack.replace(/\\s+$/,\"\");return callstack}Module[\"_emscripten_get_callstack_js\"]=_emscripten_get_callstack_js;function _emscripten_get_callstack(flags,str,maxbytes){var callstack=_emscripten_get_callstack_js(flags);if(!str||maxbytes<=0){return lengthBytesUTF8(callstack)+1}var bytesWrittenExcludingNull=stringToUTF8(callstack,str,maxbytes);return bytesWrittenExcludingNull+1}Module[\"_emscripten_get_callstack\"]=_emscripten_get_callstack;function _emscripten_log_js(flags,str){if(flags&24){str=str.replace(/\\s+$/,\"\");str+=(str.length>0?\"\\n\":\"\")+_emscripten_get_callstack_js(flags)}if(flags&1){if(flags&4){console.error(str)}else if(flags&2){console.warn(str)}else if(flags&512){console.info(str)}else if(flags&256){console.debug(str)}else{console.log(str)}}else if(flags&6){err(str)}else{out(str)}}Module[\"_emscripten_log_js\"]=_emscripten_log_js;function reallyNegative(x){return x<0||x===0&&1/x===-Infinity}Module[\"reallyNegative\"]=reallyNegative;function convertI32PairToI53(lo,hi){return(lo>>>0)+hi*4294967296}Module[\"convertI32PairToI53\"]=convertI32PairToI53;function convertU32PairToI53(lo,hi){return(lo>>>0)+(hi>>>0)*4294967296}Module[\"convertU32PairToI53\"]=convertU32PairToI53;function reSign(value,bits){if(value<=0){return value}var half=bits<=32?Math.abs(1<<bits-1):Math.pow(2,bits-1);if(value>=half&&(bits<=32||value>half)){value=-2*half+value}return value}Module[\"reSign\"]=reSign;function unSign(value,bits){if(value>=0){return value}return bits<=32?2*Math.abs(1<<bits-1)+value:Math.pow(2,bits)+value}Module[\"unSign\"]=unSign;function formatString(format,varargs){var textIndex=format;var argIndex=varargs;function prepVararg(ptr,type){if(type===\"double\"||type===\"i64\"){if(ptr&7){ptr+=4}}else{}return ptr}function getNextArg(type){var ret;argIndex=prepVararg(argIndex,type);if(type===\"double\"){ret=HEAPF64[argIndex>>3];argIndex+=8}else if(type==\"i64\"){ret=[HEAP32[argIndex>>2],HEAP32[argIndex+4>>2]];argIndex+=8}else{type=\"i32\";ret=HEAP32[argIndex>>2];argIndex+=4}return ret}var ret=[];var curr,next,currArg;while(1){var startTextIndex=textIndex;curr=HEAP8[textIndex>>0];if(curr===0)break;next=HEAP8[textIndex+1>>0];if(curr==37){var flagAlwaysSigned=false;var flagLeftAlign=false;var flagAlternative=false;var flagZeroPad=false;var flagPadSign=false;flagsLoop:while(1){switch(next){case 43:flagAlwaysSigned=true;break;case 45:flagLeftAlign=true;break;case 35:flagAlternative=true;break;case 48:if(flagZeroPad){break flagsLoop}else{flagZeroPad=true;break}case 32:flagPadSign=true;break;default:break flagsLoop}textIndex++;next=HEAP8[textIndex+1>>0]}var width=0;if(next==42){width=getNextArg(\"i32\");textIndex++;next=HEAP8[textIndex+1>>0]}else{while(next>=48&&next<=57){width=width*10+(next-48);textIndex++;next=HEAP8[textIndex+1>>0]}}var precisionSet=false,precision=-1;if(next==46){precision=0;precisionSet=true;textIndex++;next=HEAP8[textIndex+1>>0];if(next==42){precision=getNextArg(\"i32\");textIndex++}else{while(1){var precisionChr=HEAP8[textIndex+1>>0];if(precisionChr<48||precisionChr>57)break;precision=precision*10+(precisionChr-48);textIndex++}}next=HEAP8[textIndex+1>>0]}if(precision<0){precision=6;precisionSet=false}var argSize;switch(String.fromCharCode(next)){case\"h\":var nextNext=HEAP8[textIndex+2>>0];if(nextNext==104){textIndex++;argSize=1}else{argSize=2}break;case\"l\":var nextNext=HEAP8[textIndex+2>>0];if(nextNext==108){textIndex++;argSize=8}else{argSize=4}break;case\"L\":case\"q\":case\"j\":argSize=8;break;case\"z\":case\"t\":case\"I\":argSize=4;break;default:argSize=null}if(argSize)textIndex++;next=HEAP8[textIndex+1>>0];switch(String.fromCharCode(next)){case\"d\":case\"i\":case\"u\":case\"o\":case\"x\":case\"X\":case\"p\":{var signed=next==100||next==105;argSize=argSize||4;currArg=getNextArg(\"i\"+argSize*8);var argText;if(argSize==8){currArg=next==117?convertU32PairToI53(currArg[0],currArg[1]):convertI32PairToI53(currArg[0],currArg[1])}if(argSize<=4){var limit=Math.pow(256,argSize)-1;currArg=(signed?reSign:unSign)(currArg&limit,argSize*8)}var currAbsArg=Math.abs(currArg);var prefix=\"\";if(next==100||next==105){argText=reSign(currArg,8*argSize,1).toString(10)}else if(next==117){argText=unSign(currArg,8*argSize,1).toString(10);currArg=Math.abs(currArg)}else if(next==111){argText=(flagAlternative?\"0\":\"\")+currAbsArg.toString(8)}else if(next==120||next==88){prefix=flagAlternative&&currArg!=0?\"0x\":\"\";if(currArg<0){currArg=-currArg;argText=(currAbsArg-1).toString(16);var buffer=[];for(var i=0;i<argText.length;i++){buffer.push((15-parseInt(argText[i],16)).toString(16))}argText=buffer.join(\"\");while(argText.length<argSize*2)argText=\"f\"+argText}else{argText=currAbsArg.toString(16)}if(next==88){prefix=prefix.toUpperCase();argText=argText.toUpperCase()}}else if(next==112){if(currAbsArg===0){argText=\"(nil)\"}else{prefix=\"0x\";argText=currAbsArg.toString(16)}}if(precisionSet){while(argText.length<precision){argText=\"0\"+argText}}if(currArg>=0){if(flagAlwaysSigned){prefix=\"+\"+prefix}else if(flagPadSign){prefix=\" \"+prefix}}if(argText.charAt(0)==\"-\"){prefix=\"-\"+prefix;argText=argText.substr(1)}while(prefix.length+argText.length<width){if(flagLeftAlign){argText+=\" \"}else{if(flagZeroPad){argText=\"0\"+argText}else{prefix=\" \"+prefix}}}argText=prefix+argText;argText.split(\"\").forEach(function(chr){ret.push(chr.charCodeAt(0))});break}case\"f\":case\"F\":case\"e\":case\"E\":case\"g\":case\"G\":{currArg=getNextArg(\"double\");var argText;if(isNaN(currArg)){argText=\"nan\";flagZeroPad=false}else if(!isFinite(currArg)){argText=(currArg<0?\"-\":\"\")+\"inf\";flagZeroPad=false}else{var isGeneral=false;var effectivePrecision=Math.min(precision,20);if(next==103||next==71){isGeneral=true;precision=precision||1;var exponent=parseInt(currArg.toExponential(effectivePrecision).split(\"e\")[1],10);if(precision>exponent&&exponent>=-4){next=(next==103?\"f\":\"F\").charCodeAt(0);precision-=exponent+1}else{next=(next==103?\"e\":\"E\").charCodeAt(0);precision--}effectivePrecision=Math.min(precision,20)}if(next==101||next==69){argText=currArg.toExponential(effectivePrecision);if(/[eE][-+]\\d$/.test(argText)){argText=argText.slice(0,-1)+\"0\"+argText.slice(-1)}}else if(next==102||next==70){argText=currArg.toFixed(effectivePrecision);if(currArg===0&&reallyNegative(currArg)){argText=\"-\"+argText}}var parts=argText.split(\"e\");if(isGeneral&&!flagAlternative){while(parts[0].length>1&&parts[0].indexOf(\".\")!=-1&&(parts[0].slice(-1)==\"0\"||parts[0].slice(-1)==\".\")){parts[0]=parts[0].slice(0,-1)}}else{if(flagAlternative&&argText.indexOf(\".\")==-1)parts[0]+=\".\";while(precision>effectivePrecision++)parts[0]+=\"0\"}argText=parts[0]+(parts.length>1?\"e\"+parts[1]:\"\");if(next==69)argText=argText.toUpperCase();if(currArg>=0){if(flagAlwaysSigned){argText=\"+\"+argText}else if(flagPadSign){argText=\" \"+argText}}}while(argText.length<width){if(flagLeftAlign){argText+=\" \"}else{if(flagZeroPad&&(argText[0]==\"-\"||argText[0]==\"+\")){argText=argText[0]+\"0\"+argText.slice(1)}else{argText=(flagZeroPad?\"0\":\" \")+argText}}}if(next<97)argText=argText.toUpperCase();argText.split(\"\").forEach(function(chr){ret.push(chr.charCodeAt(0))});break}case\"s\":{var arg=getNextArg(\"i8*\");var argLength=arg?_strlen(arg):\"(null)\".length;if(precisionSet)argLength=Math.min(argLength,precision);if(!flagLeftAlign){while(argLength<width--){ret.push(32)}}if(arg){for(var i=0;i<argLength;i++){ret.push(HEAPU8[arg++>>0])}}else{ret=ret.concat(intArrayFromString(\"(null)\".substr(0,argLength),true))}if(flagLeftAlign){while(argLength<width--){ret.push(32)}}break}case\"c\":{if(flagLeftAlign)ret.push(getNextArg(\"i8\"));while(--width>0){ret.push(32)}if(!flagLeftAlign)ret.push(getNextArg(\"i8\"));break}case\"n\":{var ptr=getNextArg(\"i32*\");HEAP32[ptr>>2]=ret.length;break}case\"%\":{ret.push(curr);break}default:{for(var i=startTextIndex;i<textIndex+2;i++){ret.push(HEAP8[i>>0])}}}textIndex+=2}else{ret.push(curr);textIndex+=1}}return ret}Module[\"formatString\"]=formatString;function _emscripten_log(flags,format,varargs){var result=formatString(format,varargs);var str=UTF8ArrayToString(result,0);_emscripten_log_js(flags,str)}Module[\"_emscripten_log\"]=_emscripten_log;function _emscripten_get_compiler_setting(name){name=UTF8ToString(name);var ret=getCompilerSetting(name);if(typeof ret===\"number\")return ret;if(!_emscripten_get_compiler_setting.cache)_emscripten_get_compiler_setting.cache={};var cache=_emscripten_get_compiler_setting.cache;var fullname=name+\"__str\";var fullret=cache[fullname];if(fullret)return fullret;return cache[fullname]=allocate(intArrayFromString(ret+\"\"),ALLOC_NORMAL)}Module[\"_emscripten_get_compiler_setting\"]=_emscripten_get_compiler_setting;function _emscripten_has_asyncify(){return 0}Module[\"_emscripten_has_asyncify\"]=_emscripten_has_asyncify;function _emscripten_debugger(){debugger}Module[\"_emscripten_debugger\"]=_emscripten_debugger;function _emscripten_print_double(x,to,max){var str=x+\"\";if(to)return stringToUTF8(str,to,max);else return lengthBytesUTF8(str)}Module[\"_emscripten_print_double\"]=_emscripten_print_double;function _emscripten_generate_pc(frame){abort(\"Cannot use emscripten_generate_pc (needed by __builtin_return_address) without -s USE_OFFSET_CONVERTER\");var match;if(match=/\\bwasm-function\\[\\d+\\]:(0x[0-9a-f]+)/.exec(frame)){return+match[1]}else if(match=/\\bwasm-function\\[(\\d+)\\]:(\\d+)/.exec(frame)){return wasmOffsetConverter.convert(+match[1],+match[2])}else if(match=/:(\\d+):\\d+(?:\\)|$)/.exec(frame)){return 2147483648|+match[1]}else{return 0}}Module[\"_emscripten_generate_pc\"]=_emscripten_generate_pc;function _emscripten_return_address(level){var callstack=(new Error).stack.split(\"\\n\");if(callstack[0]==\"Error\"){callstack.shift()}return _emscripten_generate_pc(callstack[level+2])}Module[\"_emscripten_return_address\"]=_emscripten_return_address;var UNWIND_CACHE={};Module[\"UNWIND_CACHE\"]=UNWIND_CACHE;function __emscripten_save_in_unwind_cache(callstack){callstack.forEach(function(frame){var pc=_emscripten_generate_pc(frame);if(pc){UNWIND_CACHE[pc]=frame}})}Module[\"__emscripten_save_in_unwind_cache\"]=__emscripten_save_in_unwind_cache;function _emscripten_stack_snapshot(){var callstack=(new Error).stack.split(\"\\n\");if(callstack[0]==\"Error\"){callstack.shift()}__emscripten_save_in_unwind_cache(callstack);UNWIND_CACHE.last_addr=_emscripten_generate_pc(callstack[2]);UNWIND_CACHE.last_stack=callstack;return UNWIND_CACHE.last_addr}Module[\"_emscripten_stack_snapshot\"]=_emscripten_stack_snapshot;function _emscripten_stack_unwind_buffer(addr,buffer,count){var stack;if(UNWIND_CACHE.last_addr==addr){stack=UNWIND_CACHE.last_stack}else{stack=(new Error).stack.split(\"\\n\");if(stack[0]==\"Error\"){stack.shift()}__emscripten_save_in_unwind_cache(stack)}var offset=2;while(stack[offset]&&_emscripten_generate_pc(stack[offset])!=addr){++offset}for(var i=0;i<count&&stack[i+offset];++i){HEAP32[buffer+i*4>>2]=_emscripten_generate_pc(stack[i+offset])}return i}Module[\"_emscripten_stack_unwind_buffer\"]=_emscripten_stack_unwind_buffer;function withBuiltinMalloc(func){var prev_malloc=typeof _malloc!==\"undefined\"?_malloc:undefined;var prev_memalign=typeof _memalign!==\"undefined\"?_memalign:undefined;var prev_free=typeof _free!==\"undefined\"?_free:undefined;_malloc=_emscripten_builtin_malloc;_memalign=_emscripten_builtin_memalign;_free=_emscripten_builtin_free;try{return func()}finally{_malloc=prev_malloc;_memalign=prev_memalign;_free=prev_free}}Module[\"withBuiltinMalloc\"]=withBuiltinMalloc;function _emscripten_pc_get_function(pc){abort(\"Cannot use emscripten_pc_get_function without -s USE_OFFSET_CONVERTER\");var name;if(pc&2147483648){var frame=UNWIND_CACHE[pc];if(!frame)return 0;var match;if(match=/^\\s+at (.*) \\(.*\\)$/.exec(frame)){name=match[1]}else if(match=/^(.+?)@/.exec(frame)){name=match[1]}else{return 0}}else{name=wasmOffsetConverter.getName(pc)}withBuiltinMalloc(function(){if(_emscripten_pc_get_function.ret)_free(_emscripten_pc_get_function.ret);_emscripten_pc_get_function.ret=allocateUTF8(name)});return _emscripten_pc_get_function.ret}Module[\"_emscripten_pc_get_function\"]=_emscripten_pc_get_function;function _emscripten_pc_get_source_js(pc){if(UNWIND_CACHE.last_get_source_pc==pc)return UNWIND_CACHE.last_source;var match;var source;if(!source){var frame=UNWIND_CACHE[pc];if(!frame)return null;if(match=/\\((.*):(\\d+):(\\d+)\\)$/.exec(frame)){source={file:match[1],line:match[2],column:match[3]}}else if(match=/@(.*):(\\d+):(\\d+)/.exec(frame)){source={file:match[1],line:match[2],column:match[3]}}}UNWIND_CACHE.last_get_source_pc=pc;UNWIND_CACHE.last_source=source;return source}Module[\"_emscripten_pc_get_source_js\"]=_emscripten_pc_get_source_js;function _emscripten_pc_get_file(pc){var result=_emscripten_pc_get_source_js(pc);if(!result)return 0;withBuiltinMalloc(function(){if(_emscripten_pc_get_file.ret)_free(_emscripten_pc_get_file.ret);_emscripten_pc_get_file.ret=allocateUTF8(result.file)});return _emscripten_pc_get_file.ret}Module[\"_emscripten_pc_get_file\"]=_emscripten_pc_get_file;function _emscripten_pc_get_line(pc){var result=_emscripten_pc_get_source_js(pc);return result?result.line:0}Module[\"_emscripten_pc_get_line\"]=_emscripten_pc_get_line;function _emscripten_pc_get_column(pc){var result=_emscripten_pc_get_source_js(pc);return result?result.column||0:0}Module[\"_emscripten_pc_get_column\"]=_emscripten_pc_get_column;function _emscripten_get_module_name(buf,length){return stringToUTF8(wasmBinaryFile,buf,length)}Module[\"_emscripten_get_module_name\"]=_emscripten_get_module_name;function _emscripten_builtin_mmap2(addr,len,prot,flags,fd,off){return withBuiltinMalloc(function(){return syscallMmap2(addr,len,prot,flags,fd,off)})}Module[\"_emscripten_builtin_mmap2\"]=_emscripten_builtin_mmap2;function _emscripten_builtin_munmap(addr,len){return withBuiltinMalloc(function(){return syscallMunmap(addr,len)})}Module[\"_emscripten_builtin_munmap\"]=_emscripten_builtin_munmap;function _emscripten_asm_const_double(a0,a1,a2){return _emscripten_asm_const_int(a0,a1,a2)}Module[\"_emscripten_asm_const_double\"]=_emscripten_asm_const_double;_emscripten_asm_const_double.sig=\"iiii\";function mainThreadEM_ASM(code,sigPtr,argbuf,sync){code-=1024;var args=readAsmConstArgs(sigPtr,argbuf);return ASM_CONSTS[code].apply(null,args)}Module[\"mainThreadEM_ASM\"]=mainThreadEM_ASM;function _emscripten_asm_const_int_sync_on_main_thread(code,sigPtr,argbuf){return mainThreadEM_ASM(code,sigPtr,argbuf,1)}Module[\"_emscripten_asm_const_int_sync_on_main_thread\"]=_emscripten_asm_const_int_sync_on_main_thread;_emscripten_asm_const_int_sync_on_main_thread.sig=\"iiii\";function _emscripten_asm_const_double_sync_on_main_thread(a0,a1,a2){return _emscripten_asm_const_int_sync_on_main_thread(a0,a1,a2)}Module[\"_emscripten_asm_const_double_sync_on_main_thread\"]=_emscripten_asm_const_double_sync_on_main_thread;_emscripten_asm_const_double_sync_on_main_thread.sig=\"iiii\";function _emscripten_asm_const_async_on_main_thread(code,sigPtr,argbuf){return mainThreadEM_ASM(code,sigPtr,argbuf,0)}Module[\"_emscripten_asm_const_async_on_main_thread\"]=_emscripten_asm_const_async_on_main_thread;function jstoi_s(str){return Number(str)}Module[\"jstoi_s\"]=jstoi_s;function __Unwind_Backtrace(func,arg){var trace=_emscripten_get_callstack_js();var parts=trace.split(\"\\n\");for(var i=0;i<parts.length;i++){var ret=wasmTable.get(func)(0,arg);if(ret!==0)return}}Module[\"__Unwind_Backtrace\"]=__Unwind_Backtrace;function __Unwind_GetIPInfo(){abort(\"Unwind_GetIPInfo\")}Module[\"__Unwind_GetIPInfo\"]=__Unwind_GetIPInfo;function __Unwind_FindEnclosingFunction(){return 0}Module[\"__Unwind_FindEnclosingFunction\"]=__Unwind_FindEnclosingFunction;var ExceptionInfoAttrs={DESTRUCTOR_OFFSET:0,REFCOUNT_OFFSET:4,TYPE_OFFSET:8,CAUGHT_OFFSET:12,RETHROWN_OFFSET:13,SIZE:16};Module[\"ExceptionInfoAttrs\"]=ExceptionInfoAttrs;function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-ExceptionInfoAttrs.SIZE;this.set_type=function(type){HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]=type};this.get_type=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.TYPE_OFFSET>>2]};this.set_destructor=function(destructor){HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]=destructor};this.get_destructor=function(){return HEAP32[this.ptr+ExceptionInfoAttrs.DESTRUCTOR_OFFSET>>2]};this.set_refcount=function(refcount){HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=refcount};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.CAUGHT_OFFSET>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+ExceptionInfoAttrs.RETHROWN_OFFSET>>0]!=0};this.init=function(type,destructor){this.set_type(type);this.set_destructor(destructor);this.set_refcount(0);this.set_caught(false);this.set_rethrown(false)};this.add_ref=function(){var value=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=value+1};this.release_ref=function(){var prev=HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2];HEAP32[this.ptr+ExceptionInfoAttrs.REFCOUNT_OFFSET>>2]=prev-1;return prev===1}}Module[\"ExceptionInfo\"]=ExceptionInfo;var exceptionLast=0;Module[\"exceptionLast\"]=exceptionLast;var uncaughtExceptionCount=0;Module[\"uncaughtExceptionCount\"]=uncaughtExceptionCount;function ___cxa_throw(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;uncaughtExceptionCount++;throw ptr}Module[\"___cxa_throw\"]=___cxa_throw;___cxa_throw.sig=\"viii\";function __Unwind_RaiseException(ex){err(\"Warning: _Unwind_RaiseException is not correctly implemented\");return ___cxa_throw(ex,0,0)}Module[\"__Unwind_RaiseException\"]=__Unwind_RaiseException;function __Unwind_DeleteException(ex){err(\"TODO: Unwind_DeleteException\")}Module[\"__Unwind_DeleteException\"]=__Unwind_DeleteException;function _emscripten_autodebug_i64(line,valuel,valueh){out(\"AD:\"+[line,valuel,valueh])}Module[\"_emscripten_autodebug_i64\"]=_emscripten_autodebug_i64;function _emscripten_autodebug_i32(line,value){out(\"AD:\"+[line,value])}Module[\"_emscripten_autodebug_i32\"]=_emscripten_autodebug_i32;function _emscripten_autodebug_i16(line,value){out(\"AD:\"+[line,value])}Module[\"_emscripten_autodebug_i16\"]=_emscripten_autodebug_i16;function _emscripten_autodebug_i8(line,value){out(\"AD:\"+[line,value])}Module[\"_emscripten_autodebug_i8\"]=_emscripten_autodebug_i8;function _emscripten_autodebug_float(line,value){out(\"AD:\"+[line,value])}Module[\"_emscripten_autodebug_float\"]=_emscripten_autodebug_float;function _emscripten_autodebug_double(line,value){out(\"AD:\"+[line,value])}Module[\"_emscripten_autodebug_double\"]=_emscripten_autodebug_double;function ___handle_stack_overflow(){abort(\"stack overflow\")}Module[\"___handle_stack_overflow\"]=___handle_stack_overflow;function dynCallLegacy(sig,ptr,args){var f=Module[\"dynCall_\"+sig];return args&&args.length?f.apply(null,[ptr].concat(args)):f.call(null,ptr)}Module[\"dynCallLegacy\"]=dynCallLegacy;function dynCall(sig,ptr,args){if(sig.indexOf(\"j\")!=-1){return dynCallLegacy(sig,ptr,args)}if(ptr in dyncallInvokeMap){ptr=dyncallInvokeMap[ptr]}return wasmTable.get(ptr).apply(null,args)}Module[\"dynCall\"]=dynCall;function getDynCaller(sig,ptr){var argCache=[];return function(){argCache.length=arguments.length;for(var i=0;i<arguments.length;i++){argCache[i]=arguments[i]}return dynCall(sig,ptr,argCache)}}Module[\"getDynCaller\"]=getDynCaller;function _emscripten_force_exit(status){noExitRuntime=false;runtimeKeepaliveCounter=0;exit(status)}Module[\"_emscripten_force_exit\"]=_emscripten_force_exit;_emscripten_force_exit.sig=\"vi\";function _emscripten_math_cbrt(x){return Math.cbrt(x)}Module[\"_emscripten_math_cbrt\"]=_emscripten_math_cbrt;function _emscripten_math_pow(x,y){return Math.pow(x,y)}Module[\"_emscripten_math_pow\"]=_emscripten_math_pow;function _emscripten_math_random(x){return Math.random(x)}Module[\"_emscripten_math_random\"]=_emscripten_math_random;function _emscripten_math_sign(x){return Math.sign(x)}Module[\"_emscripten_math_sign\"]=_emscripten_math_sign;function _emscripten_math_sqrt(x){return Math.sqrt(x)}Module[\"_emscripten_math_sqrt\"]=_emscripten_math_sqrt;function _emscripten_math_exp(x){return Math.exp(x)}Module[\"_emscripten_math_exp\"]=_emscripten_math_exp;function _emscripten_math_expm1(x){return Math.expm1(x)}Module[\"_emscripten_math_expm1\"]=_emscripten_math_expm1;function _emscripten_math_fmod(x,y){return x%y}Module[\"_emscripten_math_fmod\"]=_emscripten_math_fmod;function _emscripten_math_log(x){return Math.log(x)}Module[\"_emscripten_math_log\"]=_emscripten_math_log;function _emscripten_math_log1p(x){return Math.log1p(x)}Module[\"_emscripten_math_log1p\"]=_emscripten_math_log1p;function _emscripten_math_log10(x){return Math.log10(x)}Module[\"_emscripten_math_log10\"]=_emscripten_math_log10;function _emscripten_math_log2(x){return Math.log2(x)}Module[\"_emscripten_math_log2\"]=_emscripten_math_log2;function _emscripten_math_round(x){return Math.round(x)}Module[\"_emscripten_math_round\"]=_emscripten_math_round;function _emscripten_math_acos(x){return Math.acos(x)}Module[\"_emscripten_math_acos\"]=_emscripten_math_acos;function _emscripten_math_acosh(x){return Math.acosh(x)}Module[\"_emscripten_math_acosh\"]=_emscripten_math_acosh;function _emscripten_math_asin(x){return Math.asin(x)}Module[\"_emscripten_math_asin\"]=_emscripten_math_asin;function _emscripten_math_asinh(x){return Math.asinh(x)}Module[\"_emscripten_math_asinh\"]=_emscripten_math_asinh;function _emscripten_math_atan(x){return Math.atan(x)}Module[\"_emscripten_math_atan\"]=_emscripten_math_atan;function _emscripten_math_atanh(x){return Math.atanh(x)}Module[\"_emscripten_math_atanh\"]=_emscripten_math_atanh;function _emscripten_math_atan2(y,x){return Math.atan2(y,x)}Module[\"_emscripten_math_atan2\"]=_emscripten_math_atan2;function _emscripten_math_cos(x){return Math.cos(x)}Module[\"_emscripten_math_cos\"]=_emscripten_math_cos;function _emscripten_math_cosh(x){return Math.cosh(x)}Module[\"_emscripten_math_cosh\"]=_emscripten_math_cosh;function _emscripten_math_hypot(count,varargs){var args=[];for(var i=0;i<count;++i)args.push(HEAPF64[(varargs>>3)+i]);return Math.hypot.apply(null,args)}Module[\"_emscripten_math_hypot\"]=_emscripten_math_hypot;function _emscripten_math_sin(x){return Math.sin(x)}Module[\"_emscripten_math_sin\"]=_emscripten_math_sin;function _emscripten_math_sinh(x){return Math.sinh(x)}Module[\"_emscripten_math_sinh\"]=_emscripten_math_sinh;function _emscripten_math_tan(x){return Math.tan(x)}Module[\"_emscripten_math_tan\"]=_emscripten_math_tan;function _emscripten_math_tanh(x){return Math.tanh(x)}Module[\"_emscripten_math_tanh\"]=_emscripten_math_tanh;function _bsd_signal(a0,a1){return _signal(a0,a1)}Module[\"_bsd_signal\"]=_bsd_signal;_bsd_signal.sig=\"iii\";function _sigaddset(set,signum){HEAP32[set>>2]=HEAP32[set>>2]|1<<signum-1;return 0}Module[\"_sigaddset\"]=_sigaddset;function _sigdelset(set,signum){HEAP32[set>>2]=HEAP32[set>>2]&~(1<<signum-1);return 0}Module[\"_sigdelset\"]=_sigdelset;function _sigaction(signum,act,oldact){return 0}Module[\"_sigaction\"]=_sigaction;function _sigprocmask(){return 0}Module[\"_sigprocmask\"]=_sigprocmask;function _siglongjmp(a0,a1){return _longjmp(a0,a1)}Module[\"_siglongjmp\"]=_siglongjmp;_siglongjmp.sig=\"vii\";function ___sys_exit(status){try{exit(status)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_exit\"]=___sys_exit;function ___sys_getpgrp(){return 42}Module[\"___sys_getpgrp\"]=___sys_getpgrp;function ___sys_setitimer(which,new_value,old_value){return-52}Module[\"___sys_setitimer\"]=___sys_setitimer;function ___sys_rt_sigqueueinfo(tgid,pid,uinfo){return 0}Module[\"___sys_rt_sigqueueinfo\"]=___sys_rt_sigqueueinfo;function ___sys_setregid32(ruid,euid){if(uid!==0)return-63;return 0}Module[\"___sys_setregid32\"]=___sys_setregid32;___sys_setregid32.sig=\"iii\";function ___sys_setreuid32(a0,a1){return ___sys_setregid32(a0,a1)}Module[\"___sys_setreuid32\"]=___sys_setreuid32;___sys_setreuid32.sig=\"iii\";function ___sys_setgid32(uid){if(uid!==0)return-63;return 0}Module[\"___sys_setgid32\"]=___sys_setgid32;___sys_setgid32.sig=\"ii\";function ___sys_setuid32(a0){return ___sys_setgid32(a0)}Module[\"___sys_setuid32\"]=___sys_setuid32;___sys_setuid32.sig=\"ii\";function ___sys_setresgid32(ruid,euid,suid){if(euid!==0)return-63;return 0}Module[\"___sys_setresgid32\"]=___sys_setresgid32;___sys_setresgid32.sig=\"iiii\";function ___sys_setresuid32(a0,a1,a2){return ___sys_setresgid32(a0,a1,a2)}Module[\"___sys_setresuid32\"]=___sys_setresuid32;___sys_setresuid32.sig=\"iiii\";function ___sys_exit_group(status){try{exit(status);return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_exit_group\"]=___sys_exit_group;function ___sys_faccessat(dirfd,path,amode,flags){try{path=SYSCALLS.getStr(path);path=SYSCALLS.calculateAt(dirfd,path);return SYSCALLS.doAccess(path,amode)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module[\"___sys_faccessat\"]=___sys_faccessat;var JSEvents={inEventHandler:0,removeAllEventListeners:function(){for(var i=JSEvents.eventHandlers.length-1;i>=0;--i){JSEvents._removeHandler(i)}JSEvents.eventHandlers=[];JSEvents.deferredCalls=[]},registerRemoveEventListeners:function(){if(!JSEvents.removeEventListenersRegistered){__ATEXIT__.push(JSEvents.removeAllEventListeners);JSEvents.removeEventListenersRegistered=true}},deferredCalls:[],deferCall:function(targetFunction,precedence,argsList){function arraysHaveEqualContent(arrA,arrB){if(arrA.length!=arrB.length)return false;for(var i in arrA){if(arrA[i]!=arrB[i])return false}return true}for(var i in JSEvents.deferredCalls){var call=JSEvents.deferredCalls[i];if(call.targetFunction==targetFunction&&arraysHaveEqualContent(call.argsList,argsList)){return}}JSEvents.deferredCalls.push({targetFunction:targetFunction,precedence:precedence,argsList:argsList});JSEvents.deferredCalls.sort(function(x,y){return x.precedence<y.precedence})},removeDeferredCalls:function(targetFunction){for(var i=0;i<JSEvents.deferredCalls.length;++i){if(JSEvents.deferredCalls[i].targetFunction==targetFunction){JSEvents.deferredCalls.splice(i,1);--i}}},canPerformEventHandlerRequests:function(){return JSEvents.inEventHandler&&JSEvents.currentEventHandler.allowsDeferredCalls},runDeferredCalls:function(){if(!JSEvents.canPerformEventHandlerRequests()){return}for(var i=0;i<JSEvents.deferredCalls.length;++i){var call=JSEvents.deferredCalls[i];JSEvents.deferredCalls.splice(i,1);--i;call.targetFunction.apply(null,call.argsList)}},eventHandlers:[],removeAllHandlersOnTarget:function(target,eventTypeString){for(var i=0;i<JSEvents.eventHandlers.length;++i){if(JSEvents.eventHandlers[i].target==target&&(!eventTypeString||eventTypeString==JSEvents.eventHandlers[i].eventTypeString)){JSEvents._removeHandler(i--)}}},_removeHandler:function(i){var h=JSEvents.eventHandlers[i];h.target.removeEventListener(h.eventTypeString,h.eventListenerFunc,h.useCapture);JSEvents.eventHandlers.splice(i,1)},registerOrRemoveHandler:function(eventHandler){var jsEventHandler=function jsEventHandler(event){++JSEvents.inEventHandler;JSEvents.currentEventHandler=eventHandler;JSEvents.runDeferredCalls();eventHandler.handlerFunc(event);JSEvents.runDeferredCalls();--JSEvents.inEventHandler};if(eventHandler.callbackfunc){eventHandler.eventListenerFunc=jsEventHandler;eventHandler.target.addEventListener(eventHandler.eventTypeString,jsEventHandler,eventHandler.useCapture);JSEvents.eventHandlers.push(eventHandler);JSEvents.registerRemoveEventListeners()}else{for(var i=0;i<JSEvents.eventHandlers.length;++i){if(JSEvents.eventHandlers[i].target==eventHandler.target&&JSEvents.eventHandlers[i].eventTypeString==eventHandler.eventTypeString){JSEvents._removeHandler(i--)}}}},getNodeNameForTarget:function(target){if(!target)return\"\";if(target==window)return\"#window\";if(target==screen)return\"#screen\";return target&&target.nodeName?target.nodeName:\"\"},fullscreenEnabled:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled}};Module[\"JSEvents\"]=JSEvents;function maybeCStringToJsString(cString){return cString>2?UTF8ToString(cString):cString}Module[\"maybeCStringToJsString\"]=maybeCStringToJsString;var specialHTMLTargets=[0,typeof document!==\"undefined\"?document:0,typeof window!==\"undefined\"?window:0];Module[\"specialHTMLTargets\"]=specialHTMLTargets;function findEventTarget(target){target=maybeCStringToJsString(target);var domElement=specialHTMLTargets[target]||(typeof document!==\"undefined\"?document.querySelector(target):undefined);return domElement}Module[\"findEventTarget\"]=findEventTarget;function registerKeyEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.keyEvent)JSEvents.keyEvent=_malloc(164);var keyEventHandlerFunc=function(e){var keyEventData=JSEvents.keyEvent;var idx=keyEventData>>2;HEAP32[idx+0]=e.location;HEAP32[idx+1]=e.ctrlKey;HEAP32[idx+2]=e.shiftKey;HEAP32[idx+3]=e.altKey;HEAP32[idx+4]=e.metaKey;HEAP32[idx+5]=e.repeat;HEAP32[idx+6]=e.charCode;HEAP32[idx+7]=e.keyCode;HEAP32[idx+8]=e.which;stringToUTF8(e.key||\"\",keyEventData+36,32);stringToUTF8(e.code||\"\",keyEventData+68,32);stringToUTF8(e.char||\"\",keyEventData+100,32);stringToUTF8(e.locale||\"\",keyEventData+132,32);if(wasmTable.get(callbackfunc)(eventTypeId,keyEventData,userData))e.preventDefault()};var eventHandler={target:findEventTarget(target),allowsDeferredCalls:true,eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:keyEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerKeyEventCallback\"]=registerKeyEventCallback;function findCanvasEventTarget(target){return findEventTarget(target)}Module[\"findCanvasEventTarget\"]=findCanvasEventTarget;function _emscripten_set_keypress_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerKeyEventCallback(target,userData,useCapture,callbackfunc,1,\"keypress\",targetThread);return 0}Module[\"_emscripten_set_keypress_callback_on_thread\"]=_emscripten_set_keypress_callback_on_thread;_emscripten_set_keypress_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_keydown_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerKeyEventCallback(target,userData,useCapture,callbackfunc,2,\"keydown\",targetThread);return 0}Module[\"_emscripten_set_keydown_callback_on_thread\"]=_emscripten_set_keydown_callback_on_thread;_emscripten_set_keydown_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_keyup_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerKeyEventCallback(target,userData,useCapture,callbackfunc,3,\"keyup\",targetThread);return 0}Module[\"_emscripten_set_keyup_callback_on_thread\"]=_emscripten_set_keyup_callback_on_thread;_emscripten_set_keyup_callback_on_thread.sig=\"iiiiii\";function getBoundingClientRect(e){return specialHTMLTargets.indexOf(e)<0?e.getBoundingClientRect():{\"left\":0,\"top\":0}}Module[\"getBoundingClientRect\"]=getBoundingClientRect;function fillMouseEventData(eventStruct,e,target){var idx=eventStruct>>2;HEAP32[idx+0]=e.screenX;HEAP32[idx+1]=e.screenY;HEAP32[idx+2]=e.clientX;HEAP32[idx+3]=e.clientY;HEAP32[idx+4]=e.ctrlKey;HEAP32[idx+5]=e.shiftKey;HEAP32[idx+6]=e.altKey;HEAP32[idx+7]=e.metaKey;HEAP16[idx*2+16]=e.button;HEAP16[idx*2+17]=e.buttons;HEAP32[idx+9]=e[\"movementX\"];HEAP32[idx+10]=e[\"movementY\"];var rect=getBoundingClientRect(target);HEAP32[idx+11]=e.clientX-rect.left;HEAP32[idx+12]=e.clientY-rect.top}Module[\"fillMouseEventData\"]=fillMouseEventData;function registerMouseEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.mouseEvent)JSEvents.mouseEvent=_malloc(64);target=findEventTarget(target);var mouseEventHandlerFunc=function(ev){var e=ev||event;fillMouseEventData(JSEvents.mouseEvent,e,target);if(wasmTable.get(callbackfunc)(eventTypeId,JSEvents.mouseEvent,userData))e.preventDefault()};var eventHandler={target:target,allowsDeferredCalls:eventTypeString!=\"mousemove\"&&eventTypeString!=\"mouseenter\"&&eventTypeString!=\"mouseleave\",eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:mouseEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerMouseEventCallback\"]=registerMouseEventCallback;function _emscripten_set_click_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerMouseEventCallback(target,userData,useCapture,callbackfunc,4,\"click\",targetThread);return 0}Module[\"_emscripten_set_click_callback_on_thread\"]=_emscripten_set_click_callback_on_thread;_emscripten_set_click_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_mousedown_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerMouseEventCallback(target,userData,useCapture,callbackfunc,5,\"mousedown\",targetThread);return 0}Module[\"_emscripten_set_mousedown_callback_on_thread\"]=_emscripten_set_mousedown_callback_on_thread;_emscripten_set_mousedown_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_mouseup_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerMouseEventCallback(target,userData,useCapture,callbackfunc,6,\"mouseup\",targetThread);return 0}Module[\"_emscripten_set_mouseup_callback_on_thread\"]=_emscripten_set_mouseup_callback_on_thread;_emscripten_set_mouseup_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_dblclick_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerMouseEventCallback(target,userData,useCapture,callbackfunc,7,\"dblclick\",targetThread);return 0}Module[\"_emscripten_set_dblclick_callback_on_thread\"]=_emscripten_set_dblclick_callback_on_thread;_emscripten_set_dblclick_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_mousemove_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerMouseEventCallback(target,userData,useCapture,callbackfunc,8,\"mousemove\",targetThread);return 0}Module[\"_emscripten_set_mousemove_callback_on_thread\"]=_emscripten_set_mousemove_callback_on_thread;_emscripten_set_mousemove_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_mouseenter_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerMouseEventCallback(target,userData,useCapture,callbackfunc,33,\"mouseenter\",targetThread);return 0}Module[\"_emscripten_set_mouseenter_callback_on_thread\"]=_emscripten_set_mouseenter_callback_on_thread;_emscripten_set_mouseenter_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_mouseleave_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerMouseEventCallback(target,userData,useCapture,callbackfunc,34,\"mouseleave\",targetThread);return 0}Module[\"_emscripten_set_mouseleave_callback_on_thread\"]=_emscripten_set_mouseleave_callback_on_thread;_emscripten_set_mouseleave_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_mouseover_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerMouseEventCallback(target,userData,useCapture,callbackfunc,35,\"mouseover\",targetThread);return 0}Module[\"_emscripten_set_mouseover_callback_on_thread\"]=_emscripten_set_mouseover_callback_on_thread;_emscripten_set_mouseover_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_mouseout_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerMouseEventCallback(target,userData,useCapture,callbackfunc,36,\"mouseout\",targetThread);return 0}Module[\"_emscripten_set_mouseout_callback_on_thread\"]=_emscripten_set_mouseout_callback_on_thread;_emscripten_set_mouseout_callback_on_thread.sig=\"iiiiii\";function _emscripten_get_mouse_status(mouseState){if(!JSEvents.mouseEvent)return-7;HEAP8.set(HEAP8.subarray(JSEvents.mouseEvent,JSEvents.mouseEvent+64),mouseState);return 0}Module[\"_emscripten_get_mouse_status\"]=_emscripten_get_mouse_status;_emscripten_get_mouse_status.sig=\"ii\";function registerWheelEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.wheelEvent)JSEvents.wheelEvent=_malloc(96);var wheelHandlerFunc=function(ev){var e=ev||event;var wheelEvent=JSEvents.wheelEvent;fillMouseEventData(wheelEvent,e,target);HEAPF64[wheelEvent+64>>3]=e[\"deltaX\"];HEAPF64[wheelEvent+72>>3]=e[\"deltaY\"];HEAPF64[wheelEvent+80>>3]=e[\"deltaZ\"];HEAP32[wheelEvent+88>>2]=e[\"deltaMode\"];if(wasmTable.get(callbackfunc)(eventTypeId,wheelEvent,userData))e.preventDefault()};var eventHandler={target:target,allowsDeferredCalls:true,eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:wheelHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerWheelEventCallback\"]=registerWheelEventCallback;function _emscripten_set_wheel_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){target=findEventTarget(target);if(typeof target.onwheel!==\"undefined\"){registerWheelEventCallback(target,userData,useCapture,callbackfunc,9,\"wheel\",targetThread);return 0}else{return-1}}Module[\"_emscripten_set_wheel_callback_on_thread\"]=_emscripten_set_wheel_callback_on_thread;_emscripten_set_wheel_callback_on_thread.sig=\"iiiiii\";function registerUiEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.uiEvent)JSEvents.uiEvent=_malloc(36);target=findEventTarget(target);var uiEventHandlerFunc=function(ev){var e=ev||event;if(e.target!=target){return}var b=document.body;if(!b){return}var uiEvent=JSEvents.uiEvent;HEAP32[uiEvent>>2]=e.detail;HEAP32[uiEvent+4>>2]=b.clientWidth;HEAP32[uiEvent+8>>2]=b.clientHeight;HEAP32[uiEvent+12>>2]=innerWidth;HEAP32[uiEvent+16>>2]=innerHeight;HEAP32[uiEvent+20>>2]=outerWidth;HEAP32[uiEvent+24>>2]=outerHeight;HEAP32[uiEvent+28>>2]=pageXOffset;HEAP32[uiEvent+32>>2]=pageYOffset;if(wasmTable.get(callbackfunc)(eventTypeId,uiEvent,userData))e.preventDefault()};var eventHandler={target:target,eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:uiEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerUiEventCallback\"]=registerUiEventCallback;function _emscripten_set_resize_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerUiEventCallback(target,userData,useCapture,callbackfunc,10,\"resize\",targetThread);return 0}Module[\"_emscripten_set_resize_callback_on_thread\"]=_emscripten_set_resize_callback_on_thread;_emscripten_set_resize_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_scroll_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerUiEventCallback(target,userData,useCapture,callbackfunc,11,\"scroll\",targetThread);return 0}Module[\"_emscripten_set_scroll_callback_on_thread\"]=_emscripten_set_scroll_callback_on_thread;_emscripten_set_scroll_callback_on_thread.sig=\"iiiiii\";function registerFocusEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.focusEvent)JSEvents.focusEvent=_malloc(256);var focusEventHandlerFunc=function(ev){var e=ev||event;var nodeName=JSEvents.getNodeNameForTarget(e.target);var id=e.target.id?e.target.id:\"\";var focusEvent=JSEvents.focusEvent;stringToUTF8(nodeName,focusEvent+0,128);stringToUTF8(id,focusEvent+128,128);if(wasmTable.get(callbackfunc)(eventTypeId,focusEvent,userData))e.preventDefault()};var eventHandler={target:findEventTarget(target),eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:focusEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerFocusEventCallback\"]=registerFocusEventCallback;function _emscripten_set_blur_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerFocusEventCallback(target,userData,useCapture,callbackfunc,12,\"blur\",targetThread);return 0}Module[\"_emscripten_set_blur_callback_on_thread\"]=_emscripten_set_blur_callback_on_thread;_emscripten_set_blur_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_focus_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerFocusEventCallback(target,userData,useCapture,callbackfunc,13,\"focus\",targetThread);return 0}Module[\"_emscripten_set_focus_callback_on_thread\"]=_emscripten_set_focus_callback_on_thread;_emscripten_set_focus_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_focusin_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerFocusEventCallback(target,userData,useCapture,callbackfunc,14,\"focusin\",targetThread);return 0}Module[\"_emscripten_set_focusin_callback_on_thread\"]=_emscripten_set_focusin_callback_on_thread;_emscripten_set_focusin_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_focusout_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerFocusEventCallback(target,userData,useCapture,callbackfunc,15,\"focusout\",targetThread);return 0}Module[\"_emscripten_set_focusout_callback_on_thread\"]=_emscripten_set_focusout_callback_on_thread;_emscripten_set_focusout_callback_on_thread.sig=\"iiiiii\";function fillDeviceOrientationEventData(eventStruct,e,target){HEAPF64[eventStruct>>3]=e.alpha;HEAPF64[eventStruct+8>>3]=e.beta;HEAPF64[eventStruct+16>>3]=e.gamma;HEAP32[eventStruct+24>>2]=e.absolute}Module[\"fillDeviceOrientationEventData\"]=fillDeviceOrientationEventData;function registerDeviceOrientationEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.deviceOrientationEvent)JSEvents.deviceOrientationEvent=_malloc(32);var deviceOrientationEventHandlerFunc=function(ev){var e=ev||event;fillDeviceOrientationEventData(JSEvents.deviceOrientationEvent,e,target);if(wasmTable.get(callbackfunc)(eventTypeId,JSEvents.deviceOrientationEvent,userData))e.preventDefault()};var eventHandler={target:findEventTarget(target),eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:deviceOrientationEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerDeviceOrientationEventCallback\"]=registerDeviceOrientationEventCallback;function _emscripten_set_deviceorientation_callback_on_thread(userData,useCapture,callbackfunc,targetThread){registerDeviceOrientationEventCallback(2,userData,useCapture,callbackfunc,16,\"deviceorientation\",targetThread);return 0}Module[\"_emscripten_set_deviceorientation_callback_on_thread\"]=_emscripten_set_deviceorientation_callback_on_thread;_emscripten_set_deviceorientation_callback_on_thread.sig=\"iiiii\";function _emscripten_get_deviceorientation_status(orientationState){if(!JSEvents.deviceOrientationEvent)return-7;HEAP32.set(HEAP32.subarray(JSEvents.deviceOrientationEvent,32),orientationState);return 0}Module[\"_emscripten_get_deviceorientation_status\"]=_emscripten_get_deviceorientation_status;_emscripten_get_deviceorientation_status.sig=\"ii\";function fillDeviceMotionEventData(eventStruct,e,target){var supportedFields=0;var a=e[\"acceleration\"];supportedFields|=a&&1;var ag=e[\"accelerationIncludingGravity\"];supportedFields|=ag&&2;var rr=e[\"rotationRate\"];supportedFields|=rr&&4;a=a||{};ag=ag||{};rr=rr||{};HEAPF64[eventStruct>>3]=a[\"x\"];HEAPF64[eventStruct+8>>3]=a[\"y\"];HEAPF64[eventStruct+16>>3]=a[\"z\"];HEAPF64[eventStruct+24>>3]=ag[\"x\"];HEAPF64[eventStruct+32>>3]=ag[\"y\"];HEAPF64[eventStruct+40>>3]=ag[\"z\"];HEAPF64[eventStruct+48>>3]=rr[\"alpha\"];HEAPF64[eventStruct+56>>3]=rr[\"beta\"];HEAPF64[eventStruct+64>>3]=rr[\"gamma\"]}Module[\"fillDeviceMotionEventData\"]=fillDeviceMotionEventData;function registerDeviceMotionEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.deviceMotionEvent)JSEvents.deviceMotionEvent=_malloc(80);var deviceMotionEventHandlerFunc=function(ev){var e=ev||event;fillDeviceMotionEventData(JSEvents.deviceMotionEvent,e,target);if(wasmTable.get(callbackfunc)(eventTypeId,JSEvents.deviceMotionEvent,userData))e.preventDefault()};var eventHandler={target:findEventTarget(target),eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:deviceMotionEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerDeviceMotionEventCallback\"]=registerDeviceMotionEventCallback;function _emscripten_set_devicemotion_callback_on_thread(userData,useCapture,callbackfunc,targetThread){registerDeviceMotionEventCallback(2,userData,useCapture,callbackfunc,17,\"devicemotion\",targetThread);return 0}Module[\"_emscripten_set_devicemotion_callback_on_thread\"]=_emscripten_set_devicemotion_callback_on_thread;_emscripten_set_devicemotion_callback_on_thread.sig=\"iiiii\";function _emscripten_get_devicemotion_status(motionState){if(!JSEvents.deviceMotionEvent)return-7;HEAP32.set(HEAP32.subarray(JSEvents.deviceMotionEvent,80),motionState);return 0}Module[\"_emscripten_get_devicemotion_status\"]=_emscripten_get_devicemotion_status;_emscripten_get_devicemotion_status.sig=\"ii\";function screenOrientation(){if(!screen)return undefined;return screen.orientation||screen.mozOrientation||screen.webkitOrientation||screen.msOrientation}Module[\"screenOrientation\"]=screenOrientation;function fillOrientationChangeEventData(eventStruct){var orientations=[\"portrait-primary\",\"portrait-secondary\",\"landscape-primary\",\"landscape-secondary\"];var orientations2=[\"portrait\",\"portrait\",\"landscape\",\"landscape\"];var orientationString=screenOrientation();var orientation=orientations.indexOf(orientationString);if(orientation==-1){orientation=orientations2.indexOf(orientationString)}HEAP32[eventStruct>>2]=1<<orientation;HEAP32[eventStruct+4>>2]=orientation}Module[\"fillOrientationChangeEventData\"]=fillOrientationChangeEventData;function registerOrientationChangeEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.orientationChangeEvent)JSEvents.orientationChangeEvent=_malloc(8);var orientationChangeEventHandlerFunc=function(ev){var e=ev||event;var orientationChangeEvent=JSEvents.orientationChangeEvent;fillOrientationChangeEventData(orientationChangeEvent);if(wasmTable.get(callbackfunc)(eventTypeId,orientationChangeEvent,userData))e.preventDefault()};if(eventTypeString==\"orientationchange\"&&screen.mozOrientation!==undefined){eventTypeString=\"mozorientationchange\"}var eventHandler={target:target,eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:orientationChangeEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerOrientationChangeEventCallback\"]=registerOrientationChangeEventCallback;function _emscripten_set_orientationchange_callback_on_thread(userData,useCapture,callbackfunc,targetThread){if(!screen||!screen[\"addEventListener\"])return-1;registerOrientationChangeEventCallback(screen,userData,useCapture,callbackfunc,18,\"orientationchange\",targetThread);return 0}Module[\"_emscripten_set_orientationchange_callback_on_thread\"]=_emscripten_set_orientationchange_callback_on_thread;_emscripten_set_orientationchange_callback_on_thread.sig=\"iiiii\";function _emscripten_get_orientation_status(orientationChangeEvent){if(!screenOrientation()&&typeof orientation===\"undefined\")return-1;fillOrientationChangeEventData(orientationChangeEvent);return 0}Module[\"_emscripten_get_orientation_status\"]=_emscripten_get_orientation_status;_emscripten_get_orientation_status.sig=\"ii\";function _emscripten_lock_orientation(allowedOrientations){var orientations=[];if(allowedOrientations&1)orientations.push(\"portrait-primary\");if(allowedOrientations&2)orientations.push(\"portrait-secondary\");if(allowedOrientations&4)orientations.push(\"landscape-primary\");if(allowedOrientations&8)orientations.push(\"landscape-secondary\");var succeeded;if(screen.lockOrientation){succeeded=screen.lockOrientation(orientations)}else if(screen.mozLockOrientation){succeeded=screen.mozLockOrientation(orientations)}else if(screen.webkitLockOrientation){succeeded=screen.webkitLockOrientation(orientations)}else if(screen.msLockOrientation){succeeded=screen.msLockOrientation(orientations)}else{return-1}if(succeeded){return 0}else{return-6}}Module[\"_emscripten_lock_orientation\"]=_emscripten_lock_orientation;_emscripten_lock_orientation.sig=\"ii\";function _emscripten_unlock_orientation(){if(screen.unlockOrientation){screen.unlockOrientation()}else if(screen.mozUnlockOrientation){screen.mozUnlockOrientation()}else if(screen.webkitUnlockOrientation){screen.webkitUnlockOrientation()}else if(screen.msUnlockOrientation){screen.msUnlockOrientation()}else{return-1}return 0}Module[\"_emscripten_unlock_orientation\"]=_emscripten_unlock_orientation;_emscripten_unlock_orientation.sig=\"i\";function fillFullscreenChangeEventData(eventStruct){var fullscreenElement=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;var isFullscreen=!!fullscreenElement;HEAP32[eventStruct>>2]=isFullscreen;HEAP32[eventStruct+4>>2]=JSEvents.fullscreenEnabled();var reportedElement=isFullscreen?fullscreenElement:JSEvents.previousFullscreenElement;var nodeName=JSEvents.getNodeNameForTarget(reportedElement);var id=reportedElement&&reportedElement.id?reportedElement.id:\"\";stringToUTF8(nodeName,eventStruct+8,128);stringToUTF8(id,eventStruct+136,128);HEAP32[eventStruct+264>>2]=reportedElement?reportedElement.clientWidth:0;HEAP32[eventStruct+268>>2]=reportedElement?reportedElement.clientHeight:0;HEAP32[eventStruct+272>>2]=screen.width;HEAP32[eventStruct+276>>2]=screen.height;if(isFullscreen){JSEvents.previousFullscreenElement=fullscreenElement}}Module[\"fillFullscreenChangeEventData\"]=fillFullscreenChangeEventData;function registerFullscreenChangeEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.fullscreenChangeEvent)JSEvents.fullscreenChangeEvent=_malloc(280);var fullscreenChangeEventhandlerFunc=function(ev){var e=ev||event;var fullscreenChangeEvent=JSEvents.fullscreenChangeEvent;fillFullscreenChangeEventData(fullscreenChangeEvent);if(wasmTable.get(callbackfunc)(eventTypeId,fullscreenChangeEvent,userData))e.preventDefault()};var eventHandler={target:target,eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:fullscreenChangeEventhandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerFullscreenChangeEventCallback\"]=registerFullscreenChangeEventCallback;function _emscripten_set_fullscreenchange_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){if(!JSEvents.fullscreenEnabled())return-1;target=findEventTarget(target);if(!target)return-4;registerFullscreenChangeEventCallback(target,userData,useCapture,callbackfunc,19,\"fullscreenchange\",targetThread);registerFullscreenChangeEventCallback(target,userData,useCapture,callbackfunc,19,\"webkitfullscreenchange\",targetThread);return 0}Module[\"_emscripten_set_fullscreenchange_callback_on_thread\"]=_emscripten_set_fullscreenchange_callback_on_thread;_emscripten_set_fullscreenchange_callback_on_thread.sig=\"iiiiii\";function _emscripten_get_fullscreen_status(fullscreenStatus){if(!JSEvents.fullscreenEnabled())return-1;fillFullscreenChangeEventData(fullscreenStatus);return 0}Module[\"_emscripten_get_fullscreen_status\"]=_emscripten_get_fullscreen_status;_emscripten_get_fullscreen_status.sig=\"ii\";function _emscripten_get_canvas_element_size(target,width,height){var canvas=findCanvasEventTarget(target);if(!canvas)return-4;HEAP32[width>>2]=canvas.width;HEAP32[height>>2]=canvas.height}Module[\"_emscripten_get_canvas_element_size\"]=_emscripten_get_canvas_element_size;function getCanvasElementSize(target){var stackTop=stackSave();var w=stackAlloc(8);var h=w+4;var targetInt=stackAlloc(target.id.length+1);stringToUTF8(target.id,targetInt,target.id.length+1);var ret=_emscripten_get_canvas_element_size(targetInt,w,h);var size=[HEAP32[w>>2],HEAP32[h>>2]];stackRestore(stackTop);return size}Module[\"getCanvasElementSize\"]=getCanvasElementSize;function _emscripten_set_canvas_element_size(target,width,height){var canvas=findCanvasEventTarget(target);if(!canvas)return-4;canvas.width=width;canvas.height=height;return 0}Module[\"_emscripten_set_canvas_element_size\"]=_emscripten_set_canvas_element_size;_emscripten_set_canvas_element_size.sig=\"iiii\";function setCanvasElementSize(target,width,height){if(!target.controlTransferredOffscreen){target.width=width;target.height=height}else{var stackTop=stackSave();var targetInt=stackAlloc(target.id.length+1);stringToUTF8(target.id,targetInt,target.id.length+1);_emscripten_set_canvas_element_size(targetInt,width,height);stackRestore(stackTop)}}Module[\"setCanvasElementSize\"]=setCanvasElementSize;function registerRestoreOldStyle(canvas){var canvasSize=getCanvasElementSize(canvas);var oldWidth=canvasSize[0];var oldHeight=canvasSize[1];var oldCssWidth=canvas.style.width;var oldCssHeight=canvas.style.height;var oldBackgroundColor=canvas.style.backgroundColor;var oldDocumentBackgroundColor=document.body.style.backgroundColor;var oldPaddingLeft=canvas.style.paddingLeft;var oldPaddingRight=canvas.style.paddingRight;var oldPaddingTop=canvas.style.paddingTop;var oldPaddingBottom=canvas.style.paddingBottom;var oldMarginLeft=canvas.style.marginLeft;var oldMarginRight=canvas.style.marginRight;var oldMarginTop=canvas.style.marginTop;var oldMarginBottom=canvas.style.marginBottom;var oldDocumentBodyMargin=document.body.style.margin;var oldDocumentOverflow=document.documentElement.style.overflow;var oldDocumentScroll=document.body.scroll;var oldImageRendering=canvas.style.imageRendering;function restoreOldStyle(){var fullscreenElement=document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement;if(!fullscreenElement){document.removeEventListener(\"fullscreenchange\",restoreOldStyle);document.removeEventListener(\"webkitfullscreenchange\",restoreOldStyle);setCanvasElementSize(canvas,oldWidth,oldHeight);canvas.style.width=oldCssWidth;canvas.style.height=oldCssHeight;canvas.style.backgroundColor=oldBackgroundColor;if(!oldDocumentBackgroundColor)document.body.style.backgroundColor=\"white\";document.body.style.backgroundColor=oldDocumentBackgroundColor;canvas.style.paddingLeft=oldPaddingLeft;canvas.style.paddingRight=oldPaddingRight;canvas.style.paddingTop=oldPaddingTop;canvas.style.paddingBottom=oldPaddingBottom;canvas.style.marginLeft=oldMarginLeft;canvas.style.marginRight=oldMarginRight;canvas.style.marginTop=oldMarginTop;canvas.style.marginBottom=oldMarginBottom;document.body.style.margin=oldDocumentBodyMargin;document.documentElement.style.overflow=oldDocumentOverflow;document.body.scroll=oldDocumentScroll;canvas.style.imageRendering=oldImageRendering;if(canvas.GLctxObject)canvas.GLctxObject.GLctx.viewport(0,0,oldWidth,oldHeight);if(currentFullscreenStrategy.canvasResizedCallback){wasmTable.get(currentFullscreenStrategy.canvasResizedCallback)(37,0,currentFullscreenStrategy.canvasResizedCallbackUserData)}}}document.addEventListener(\"fullscreenchange\",restoreOldStyle);document.addEventListener(\"webkitfullscreenchange\",restoreOldStyle);return restoreOldStyle}Module[\"registerRestoreOldStyle\"]=registerRestoreOldStyle;function setLetterbox(element,topBottom,leftRight){element.style.paddingLeft=element.style.paddingRight=leftRight+\"px\";element.style.paddingTop=element.style.paddingBottom=topBottom+\"px\"}Module[\"setLetterbox\"]=setLetterbox;function _JSEvents_resizeCanvasForFullscreen(target,strategy){var restoreOldStyle=registerRestoreOldStyle(target);var cssWidth=strategy.softFullscreen?innerWidth:screen.width;var cssHeight=strategy.softFullscreen?innerHeight:screen.height;var rect=getBoundingClientRect(target);var windowedCssWidth=rect.width;var windowedCssHeight=rect.height;var canvasSize=getCanvasElementSize(target);var windowedRttWidth=canvasSize[0];var windowedRttHeight=canvasSize[1];if(strategy.scaleMode==3){setLetterbox(target,(cssHeight-windowedCssHeight)/2,(cssWidth-windowedCssWidth)/2);cssWidth=windowedCssWidth;cssHeight=windowedCssHeight}else if(strategy.scaleMode==2){if(cssWidth*windowedRttHeight<windowedRttWidth*cssHeight){var desiredCssHeight=windowedRttHeight*cssWidth/windowedRttWidth;setLetterbox(target,(cssHeight-desiredCssHeight)/2,0);cssHeight=desiredCssHeight}else{var desiredCssWidth=windowedRttWidth*cssHeight/windowedRttHeight;setLetterbox(target,0,(cssWidth-desiredCssWidth)/2);cssWidth=desiredCssWidth}}if(!target.style.backgroundColor)target.style.backgroundColor=\"black\";if(!document.body.style.backgroundColor)document.body.style.backgroundColor=\"black\";target.style.width=cssWidth+\"px\";target.style.height=cssHeight+\"px\";if(strategy.filteringMode==1){target.style.imageRendering=\"optimizeSpeed\";target.style.imageRendering=\"-moz-crisp-edges\";target.style.imageRendering=\"-o-crisp-edges\";target.style.imageRendering=\"-webkit-optimize-contrast\";target.style.imageRendering=\"optimize-contrast\";target.style.imageRendering=\"crisp-edges\";target.style.imageRendering=\"pixelated\"}var dpiScale=strategy.canvasResolutionScaleMode==2?devicePixelRatio:1;if(strategy.canvasResolutionScaleMode!=0){var newWidth=cssWidth*dpiScale|0;var newHeight=cssHeight*dpiScale|0;setCanvasElementSize(target,newWidth,newHeight);if(target.GLctxObject)target.GLctxObject.GLctx.viewport(0,0,newWidth,newHeight)}return restoreOldStyle}Module[\"_JSEvents_resizeCanvasForFullscreen\"]=_JSEvents_resizeCanvasForFullscreen;function _JSEvents_requestFullscreen(target,strategy){if(strategy.scaleMode!=0||strategy.canvasResolutionScaleMode!=0){_JSEvents_resizeCanvasForFullscreen(target,strategy)}if(target.requestFullscreen){target.requestFullscreen()}else if(target.webkitRequestFullscreen){target.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}else{return JSEvents.fullscreenEnabled()?-3:-1}currentFullscreenStrategy=strategy;if(strategy.canvasResizedCallback){wasmTable.get(strategy.canvasResizedCallback)(37,0,strategy.canvasResizedCallbackUserData)}return 0}Module[\"_JSEvents_requestFullscreen\"]=_JSEvents_requestFullscreen;function hideEverythingExceptGivenElement(onlyVisibleElement){var child=onlyVisibleElement;var parent=child.parentNode;var hiddenElements=[];while(child!=document.body){var children=parent.children;for(var i=0;i<children.length;++i){if(children[i]!=child){hiddenElements.push({node:children[i],displayState:children[i].style.display});children[i].style.display=\"none\"}}child=parent;parent=parent.parentNode}return hiddenElements}Module[\"hideEverythingExceptGivenElement\"]=hideEverythingExceptGivenElement;function restoreHiddenElements(hiddenElements){for(var i=0;i<hiddenElements.length;++i){hiddenElements[i].node.style.display=hiddenElements[i].displayState}}Module[\"restoreHiddenElements\"]=restoreHiddenElements;var currentFullscreenStrategy={};Module[\"currentFullscreenStrategy\"]=currentFullscreenStrategy;var restoreOldWindowedStyle=null;Module[\"restoreOldWindowedStyle\"]=restoreOldWindowedStyle;function softFullscreenResizeWebGLRenderTarget(){var dpr=devicePixelRatio;var inHiDPIFullscreenMode=currentFullscreenStrategy.canvasResolutionScaleMode==2;var inAspectRatioFixedFullscreenMode=currentFullscreenStrategy.scaleMode==2;var inPixelPerfectFullscreenMode=currentFullscreenStrategy.canvasResolutionScaleMode!=0;var inCenteredWithoutScalingFullscreenMode=currentFullscreenStrategy.scaleMode==3;var screenWidth=inHiDPIFullscreenMode?Math.round(innerWidth*dpr):innerWidth;var screenHeight=inHiDPIFullscreenMode?Math.round(innerHeight*dpr):innerHeight;var w=screenWidth;var h=screenHeight;var canvas=currentFullscreenStrategy.target;var canvasSize=getCanvasElementSize(canvas);var x=canvasSize[0];var y=canvasSize[1];var topMargin;if(inAspectRatioFixedFullscreenMode){if(w*y<x*h)h=w*y/x|0;else if(w*y>x*h)w=h*x/y|0;topMargin=(screenHeight-h)/2|0}if(inPixelPerfectFullscreenMode){setCanvasElementSize(canvas,w,h);if(canvas.GLctxObject)canvas.GLctxObject.GLctx.viewport(0,0,w,h)}if(inHiDPIFullscreenMode){topMargin/=dpr;w/=dpr;h/=dpr;w=Math.round(w*1e4)/1e4;h=Math.round(h*1e4)/1e4;topMargin=Math.round(topMargin*1e4)/1e4}if(inCenteredWithoutScalingFullscreenMode){var t=(innerHeight-jstoi_q(canvas.style.height))/2;var b=(innerWidth-jstoi_q(canvas.style.width))/2;setLetterbox(canvas,t,b)}else{canvas.style.width=w+\"px\";canvas.style.height=h+\"px\";var b=(innerWidth-w)/2;setLetterbox(canvas,topMargin,b)}if(!inCenteredWithoutScalingFullscreenMode&&currentFullscreenStrategy.canvasResizedCallback){wasmTable.get(currentFullscreenStrategy.canvasResizedCallback)(37,0,currentFullscreenStrategy.canvasResizedCallbackUserData)}}Module[\"softFullscreenResizeWebGLRenderTarget\"]=softFullscreenResizeWebGLRenderTarget;function doRequestFullscreen(target,strategy){if(!JSEvents.fullscreenEnabled())return-1;target=findEventTarget(target);if(!target)return-4;if(!target.requestFullscreen&&!target.webkitRequestFullscreen){return-3}var canPerformRequests=JSEvents.canPerformEventHandlerRequests();if(!canPerformRequests){if(strategy.deferUntilInEventHandler){JSEvents.deferCall(_JSEvents_requestFullscreen,1,[target,strategy]);return 1}else{return-2}}return _JSEvents_requestFullscreen(target,strategy)}Module[\"doRequestFullscreen\"]=doRequestFullscreen;function _emscripten_request_fullscreen(target,deferUntilInEventHandler){var strategy={scaleMode:0,canvasResolutionScaleMode:0,filteringMode:0,deferUntilInEventHandler:deferUntilInEventHandler,canvasResizedCallbackTargetThread:2};return doRequestFullscreen(target,strategy)}Module[\"_emscripten_request_fullscreen\"]=_emscripten_request_fullscreen;_emscripten_request_fullscreen.sig=\"iii\";function _emscripten_request_fullscreen_strategy(target,deferUntilInEventHandler,fullscreenStrategy){var strategy={scaleMode:HEAP32[fullscreenStrategy>>2],canvasResolutionScaleMode:HEAP32[fullscreenStrategy+4>>2],filteringMode:HEAP32[fullscreenStrategy+8>>2],deferUntilInEventHandler:deferUntilInEventHandler,canvasResizedCallback:HEAP32[fullscreenStrategy+12>>2],canvasResizedCallbackUserData:HEAP32[fullscreenStrategy+16>>2]};return doRequestFullscreen(target,strategy)}Module[\"_emscripten_request_fullscreen_strategy\"]=_emscripten_request_fullscreen_strategy;_emscripten_request_fullscreen_strategy.sig=\"iiii\";function _emscripten_enter_soft_fullscreen(target,fullscreenStrategy){target=findEventTarget(target);if(!target)return-4;var strategy={scaleMode:HEAP32[fullscreenStrategy>>2],canvasResolutionScaleMode:HEAP32[fullscreenStrategy+4>>2],filteringMode:HEAP32[fullscreenStrategy+8>>2],canvasResizedCallback:HEAP32[fullscreenStrategy+12>>2],canvasResizedCallbackUserData:HEAP32[fullscreenStrategy+16>>2],target:target,softFullscreen:true};var restoreOldStyle=_JSEvents_resizeCanvasForFullscreen(target,strategy);document.documentElement.style.overflow=\"hidden\";document.body.scroll=\"no\";document.body.style.margin=\"0px\";var hiddenElements=hideEverythingExceptGivenElement(target);function restoreWindowedState(){restoreOldStyle();restoreHiddenElements(hiddenElements);removeEventListener(\"resize\",softFullscreenResizeWebGLRenderTarget);if(strategy.canvasResizedCallback){wasmTable.get(strategy.canvasResizedCallback)(37,0,strategy.canvasResizedCallbackUserData)}currentFullscreenStrategy=0}restoreOldWindowedStyle=restoreWindowedState;currentFullscreenStrategy=strategy;addEventListener(\"resize\",softFullscreenResizeWebGLRenderTarget);if(strategy.canvasResizedCallback){wasmTable.get(strategy.canvasResizedCallback)(37,0,strategy.canvasResizedCallbackUserData)}return 0}Module[\"_emscripten_enter_soft_fullscreen\"]=_emscripten_enter_soft_fullscreen;_emscripten_enter_soft_fullscreen.sig=\"iii\";function _emscripten_exit_soft_fullscreen(){if(restoreOldWindowedStyle)restoreOldWindowedStyle();restoreOldWindowedStyle=null;return 0}Module[\"_emscripten_exit_soft_fullscreen\"]=_emscripten_exit_soft_fullscreen;_emscripten_exit_soft_fullscreen.sig=\"i\";function _emscripten_exit_fullscreen(){if(!JSEvents.fullscreenEnabled())return-1;JSEvents.removeDeferredCalls(_JSEvents_requestFullscreen);var d=specialHTMLTargets[1];if(d.exitFullscreen){d.fullscreenElement&&d.exitFullscreen()}else if(d.webkitExitFullscreen){d.webkitFullscreenElement&&d.webkitExitFullscreen()}else{return-1}return 0}Module[\"_emscripten_exit_fullscreen\"]=_emscripten_exit_fullscreen;_emscripten_exit_fullscreen.sig=\"i\";function fillPointerlockChangeEventData(eventStruct){var pointerLockElement=document.pointerLockElement||document.mozPointerLockElement||document.webkitPointerLockElement||document.msPointerLockElement;var isPointerlocked=!!pointerLockElement;HEAP32[eventStruct>>2]=isPointerlocked;var nodeName=JSEvents.getNodeNameForTarget(pointerLockElement);var id=pointerLockElement&&pointerLockElement.id?pointerLockElement.id:\"\";stringToUTF8(nodeName,eventStruct+4,128);stringToUTF8(id,eventStruct+132,128)}Module[\"fillPointerlockChangeEventData\"]=fillPointerlockChangeEventData;function registerPointerlockChangeEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.pointerlockChangeEvent)JSEvents.pointerlockChangeEvent=_malloc(260);var pointerlockChangeEventHandlerFunc=function(ev){var e=ev||event;var pointerlockChangeEvent=JSEvents.pointerlockChangeEvent;fillPointerlockChangeEventData(pointerlockChangeEvent);if(wasmTable.get(callbackfunc)(eventTypeId,pointerlockChangeEvent,userData))e.preventDefault()};var eventHandler={target:target,eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:pointerlockChangeEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerPointerlockChangeEventCallback\"]=registerPointerlockChangeEventCallback;function _emscripten_set_pointerlockchange_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){if(!document||!document.body||!document.body.requestPointerLock&&!document.body.mozRequestPointerLock&&!document.body.webkitRequestPointerLock&&!document.body.msRequestPointerLock){return-1}target=findEventTarget(target);if(!target)return-4;registerPointerlockChangeEventCallback(target,userData,useCapture,callbackfunc,20,\"pointerlockchange\",targetThread);registerPointerlockChangeEventCallback(target,userData,useCapture,callbackfunc,20,\"mozpointerlockchange\",targetThread);registerPointerlockChangeEventCallback(target,userData,useCapture,callbackfunc,20,\"webkitpointerlockchange\",targetThread);registerPointerlockChangeEventCallback(target,userData,useCapture,callbackfunc,20,\"mspointerlockchange\",targetThread);return 0}Module[\"_emscripten_set_pointerlockchange_callback_on_thread\"]=_emscripten_set_pointerlockchange_callback_on_thread;_emscripten_set_pointerlockchange_callback_on_thread.sig=\"iiiiii\";function registerPointerlockErrorEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){var pointerlockErrorEventHandlerFunc=function(ev){var e=ev||event;if(wasmTable.get(callbackfunc)(eventTypeId,0,userData))e.preventDefault()};var eventHandler={target:target,eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:pointerlockErrorEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerPointerlockErrorEventCallback\"]=registerPointerlockErrorEventCallback;function _emscripten_set_pointerlockerror_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){if(!document||!document.body.requestPointerLock&&!document.body.mozRequestPointerLock&&!document.body.webkitRequestPointerLock&&!document.body.msRequestPointerLock){return-1}target=findEventTarget(target);if(!target)return-4;registerPointerlockErrorEventCallback(target,userData,useCapture,callbackfunc,38,\"pointerlockerror\",targetThread);registerPointerlockErrorEventCallback(target,userData,useCapture,callbackfunc,38,\"mozpointerlockerror\",targetThread);registerPointerlockErrorEventCallback(target,userData,useCapture,callbackfunc,38,\"webkitpointerlockerror\",targetThread);registerPointerlockErrorEventCallback(target,userData,useCapture,callbackfunc,38,\"mspointerlockerror\",targetThread);return 0}Module[\"_emscripten_set_pointerlockerror_callback_on_thread\"]=_emscripten_set_pointerlockerror_callback_on_thread;_emscripten_set_pointerlockerror_callback_on_thread.sig=\"iiiiii\";function _emscripten_get_pointerlock_status(pointerlockStatus){if(pointerlockStatus)fillPointerlockChangeEventData(pointerlockStatus);if(!document.body||!document.body.requestPointerLock&&!document.body.mozRequestPointerLock&&!document.body.webkitRequestPointerLock&&!document.body.msRequestPointerLock){return-1}return 0}Module[\"_emscripten_get_pointerlock_status\"]=_emscripten_get_pointerlock_status;_emscripten_get_pointerlock_status.sig=\"ii\";function requestPointerLock(target){if(target.requestPointerLock){target.requestPointerLock()}else if(target.msRequestPointerLock){target.msRequestPointerLock()}else{if(document.body.requestPointerLock||document.body.msRequestPointerLock){return-3}else{return-1}}return 0}Module[\"requestPointerLock\"]=requestPointerLock;function _emscripten_request_pointerlock(target,deferUntilInEventHandler){target=findEventTarget(target);if(!target)return-4;if(!target.requestPointerLock&&!target.msRequestPointerLock){return-1}var canPerformRequests=JSEvents.canPerformEventHandlerRequests();if(!canPerformRequests){if(deferUntilInEventHandler){JSEvents.deferCall(requestPointerLock,2,[target]);return 1}else{return-2}}return requestPointerLock(target)}Module[\"_emscripten_request_pointerlock\"]=_emscripten_request_pointerlock;_emscripten_request_pointerlock.sig=\"iii\";function _emscripten_exit_pointerlock(){JSEvents.removeDeferredCalls(requestPointerLock);if(document.exitPointerLock){document.exitPointerLock()}else if(document.msExitPointerLock){document.msExitPointerLock()}else{return-1}return 0}Module[\"_emscripten_exit_pointerlock\"]=_emscripten_exit_pointerlock;_emscripten_exit_pointerlock.sig=\"i\";function _emscripten_vibrate(msecs){if(!navigator.vibrate)return-1;navigator.vibrate(msecs);return 0}Module[\"_emscripten_vibrate\"]=_emscripten_vibrate;_emscripten_vibrate.sig=\"ii\";function _emscripten_vibrate_pattern(msecsArray,numEntries){if(!navigator.vibrate)return-1;var vibrateList=[];for(var i=0;i<numEntries;++i){var msecs=HEAP32[msecsArray+i*4>>2];vibrateList.push(msecs)}navigator.vibrate(vibrateList);return 0}Module[\"_emscripten_vibrate_pattern\"]=_emscripten_vibrate_pattern;_emscripten_vibrate_pattern.sig=\"iii\";function fillVisibilityChangeEventData(eventStruct){var visibilityStates=[\"hidden\",\"visible\",\"prerender\",\"unloaded\"];var visibilityState=visibilityStates.indexOf(document.visibilityState);HEAP32[eventStruct>>2]=document.hidden;HEAP32[eventStruct+4>>2]=visibilityState}Module[\"fillVisibilityChangeEventData\"]=fillVisibilityChangeEventData;function registerVisibilityChangeEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.visibilityChangeEvent)JSEvents.visibilityChangeEvent=_malloc(8);var visibilityChangeEventHandlerFunc=function(ev){var e=ev||event;var visibilityChangeEvent=JSEvents.visibilityChangeEvent;fillVisibilityChangeEventData(visibilityChangeEvent);if(wasmTable.get(callbackfunc)(eventTypeId,visibilityChangeEvent,userData))e.preventDefault()};var eventHandler={target:target,eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:visibilityChangeEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerVisibilityChangeEventCallback\"]=registerVisibilityChangeEventCallback;function _emscripten_set_visibilitychange_callback_on_thread(userData,useCapture,callbackfunc,targetThread){if(!specialHTMLTargets[1]){return-4}registerVisibilityChangeEventCallback(specialHTMLTargets[1],userData,useCapture,callbackfunc,21,\"visibilitychange\",targetThread);return 0}Module[\"_emscripten_set_visibilitychange_callback_on_thread\"]=_emscripten_set_visibilitychange_callback_on_thread;_emscripten_set_visibilitychange_callback_on_thread.sig=\"iiiii\";function _emscripten_get_visibility_status(visibilityStatus){if(typeof document.visibilityState===\"undefined\"&&typeof document.hidden===\"undefined\"){return-1}fillVisibilityChangeEventData(visibilityStatus);return 0}Module[\"_emscripten_get_visibility_status\"]=_emscripten_get_visibility_status;_emscripten_get_visibility_status.sig=\"ii\";function registerTouchEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.touchEvent)JSEvents.touchEvent=_malloc(1684);target=findEventTarget(target);var touchEventHandlerFunc=function(e){var touches={};var et=e.touches;for(var i=0;i<et.length;++i){var touch=et[i];touches[touch.identifier]=touch}et=e.changedTouches;for(var i=0;i<et.length;++i){var touch=et[i];touch.isChanged=1;touches[touch.identifier]=touch}et=e.targetTouches;for(var i=0;i<et.length;++i){touches[et[i].identifier].onTarget=1}var touchEvent=JSEvents.touchEvent;var idx=touchEvent>>2;HEAP32[idx+1]=e.ctrlKey;HEAP32[idx+2]=e.shiftKey;HEAP32[idx+3]=e.altKey;HEAP32[idx+4]=e.metaKey;idx+=5;var targetRect=getBoundingClientRect(target);var numTouches=0;for(var i in touches){var t=touches[i];HEAP32[idx+0]=t.identifier;HEAP32[idx+1]=t.screenX;HEAP32[idx+2]=t.screenY;HEAP32[idx+3]=t.clientX;HEAP32[idx+4]=t.clientY;HEAP32[idx+5]=t.pageX;HEAP32[idx+6]=t.pageY;HEAP32[idx+7]=t.isChanged;HEAP32[idx+8]=t.onTarget;HEAP32[idx+9]=t.clientX-targetRect.left;HEAP32[idx+10]=t.clientY-targetRect.top;idx+=13;if(++numTouches>31){break}}HEAP32[touchEvent>>2]=numTouches;if(wasmTable.get(callbackfunc)(eventTypeId,touchEvent,userData))e.preventDefault()};var eventHandler={target:target,allowsDeferredCalls:eventTypeString==\"touchstart\"||eventTypeString==\"touchend\",eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:touchEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerTouchEventCallback\"]=registerTouchEventCallback;function _emscripten_set_touchstart_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerTouchEventCallback(target,userData,useCapture,callbackfunc,22,\"touchstart\",targetThread);return 0}Module[\"_emscripten_set_touchstart_callback_on_thread\"]=_emscripten_set_touchstart_callback_on_thread;_emscripten_set_touchstart_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_touchend_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerTouchEventCallback(target,userData,useCapture,callbackfunc,23,\"touchend\",targetThread);return 0}Module[\"_emscripten_set_touchend_callback_on_thread\"]=_emscripten_set_touchend_callback_on_thread;_emscripten_set_touchend_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_touchmove_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerTouchEventCallback(target,userData,useCapture,callbackfunc,24,\"touchmove\",targetThread);return 0}Module[\"_emscripten_set_touchmove_callback_on_thread\"]=_emscripten_set_touchmove_callback_on_thread;_emscripten_set_touchmove_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_touchcancel_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){registerTouchEventCallback(target,userData,useCapture,callbackfunc,25,\"touchcancel\",targetThread);return 0}Module[\"_emscripten_set_touchcancel_callback_on_thread\"]=_emscripten_set_touchcancel_callback_on_thread;_emscripten_set_touchcancel_callback_on_thread.sig=\"iiiiii\";function fillGamepadEventData(eventStruct,e){HEAPF64[eventStruct>>3]=e.timestamp;for(var i=0;i<e.axes.length;++i){HEAPF64[eventStruct+i*8+16>>3]=e.axes[i]}for(var i=0;i<e.buttons.length;++i){if(typeof e.buttons[i]===\"object\"){HEAPF64[eventStruct+i*8+528>>3]=e.buttons[i].value}else{HEAPF64[eventStruct+i*8+528>>3]=e.buttons[i]}}for(var i=0;i<e.buttons.length;++i){if(typeof e.buttons[i]===\"object\"){HEAP32[eventStruct+i*4+1040>>2]=e.buttons[i].pressed}else{HEAP32[eventStruct+i*4+1040>>2]=e.buttons[i]==1}}HEAP32[eventStruct+1296>>2]=e.connected;HEAP32[eventStruct+1300>>2]=e.index;HEAP32[eventStruct+8>>2]=e.axes.length;HEAP32[eventStruct+12>>2]=e.buttons.length;stringToUTF8(e.id,eventStruct+1304,64);stringToUTF8(e.mapping,eventStruct+1368,64)}Module[\"fillGamepadEventData\"]=fillGamepadEventData;function registerGamepadEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.gamepadEvent)JSEvents.gamepadEvent=_malloc(1432);var gamepadEventHandlerFunc=function(ev){var e=ev||event;var gamepadEvent=JSEvents.gamepadEvent;fillGamepadEventData(gamepadEvent,e[\"gamepad\"]);if(wasmTable.get(callbackfunc)(eventTypeId,gamepadEvent,userData))e.preventDefault()};var eventHandler={target:findEventTarget(target),allowsDeferredCalls:true,eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:gamepadEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerGamepadEventCallback\"]=registerGamepadEventCallback;function _emscripten_set_gamepadconnected_callback_on_thread(userData,useCapture,callbackfunc,targetThread){if(!navigator.getGamepads&&!navigator.webkitGetGamepads)return-1;registerGamepadEventCallback(2,userData,useCapture,callbackfunc,26,\"gamepadconnected\",targetThread);return 0}Module[\"_emscripten_set_gamepadconnected_callback_on_thread\"]=_emscripten_set_gamepadconnected_callback_on_thread;_emscripten_set_gamepadconnected_callback_on_thread.sig=\"iiiii\";function _emscripten_set_gamepaddisconnected_callback_on_thread(userData,useCapture,callbackfunc,targetThread){if(!navigator.getGamepads&&!navigator.webkitGetGamepads)return-1;registerGamepadEventCallback(2,userData,useCapture,callbackfunc,27,\"gamepaddisconnected\",targetThread);return 0}Module[\"_emscripten_set_gamepaddisconnected_callback_on_thread\"]=_emscripten_set_gamepaddisconnected_callback_on_thread;_emscripten_set_gamepaddisconnected_callback_on_thread.sig=\"iiiii\";function _emscripten_sample_gamepad_data(){return(JSEvents.lastGamepadState=navigator.getGamepads?navigator.getGamepads():navigator.webkitGetGamepads?navigator.webkitGetGamepads():null)?0:-1}Module[\"_emscripten_sample_gamepad_data\"]=_emscripten_sample_gamepad_data;_emscripten_sample_gamepad_data.sig=\"i\";function _emscripten_get_num_gamepads(){return JSEvents.lastGamepadState.length}Module[\"_emscripten_get_num_gamepads\"]=_emscripten_get_num_gamepads;_emscripten_get_num_gamepads.sig=\"i\";function _emscripten_get_gamepad_status(index,gamepadState){if(index<0||index>=JSEvents.lastGamepadState.length)return-5;if(!JSEvents.lastGamepadState[index])return-7;fillGamepadEventData(gamepadState,JSEvents.lastGamepadState[index]);return 0}Module[\"_emscripten_get_gamepad_status\"]=_emscripten_get_gamepad_status;_emscripten_get_gamepad_status.sig=\"iii\";function registerBeforeUnloadEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString){var beforeUnloadEventHandlerFunc=function(ev){var e=ev||event;var confirmationMessage=wasmTable.get(callbackfunc)(eventTypeId,0,userData);if(confirmationMessage){confirmationMessage=UTF8ToString(confirmationMessage)}if(confirmationMessage){e.preventDefault();e.returnValue=confirmationMessage;return confirmationMessage}};var eventHandler={target:findEventTarget(target),eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:beforeUnloadEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerBeforeUnloadEventCallback\"]=registerBeforeUnloadEventCallback;function _emscripten_set_beforeunload_callback_on_thread(userData,callbackfunc,targetThread){if(typeof onbeforeunload===\"undefined\")return-1;if(targetThread!==1)return-5;registerBeforeUnloadEventCallback(2,userData,true,callbackfunc,28,\"beforeunload\");return 0}Module[\"_emscripten_set_beforeunload_callback_on_thread\"]=_emscripten_set_beforeunload_callback_on_thread;_emscripten_set_beforeunload_callback_on_thread.sig=\"iii\";function fillBatteryEventData(eventStruct,e){HEAPF64[eventStruct>>3]=e.chargingTime;HEAPF64[eventStruct+8>>3]=e.dischargingTime;HEAPF64[eventStruct+16>>3]=e.level;HEAP32[eventStruct+24>>2]=e.charging}Module[\"fillBatteryEventData\"]=fillBatteryEventData;function battery(){return navigator.battery||navigator.mozBattery||navigator.webkitBattery}Module[\"battery\"]=battery;function registerBatteryEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){if(!JSEvents.batteryEvent)JSEvents.batteryEvent=_malloc(32);var batteryEventHandlerFunc=function(ev){var e=ev||event;var batteryEvent=JSEvents.batteryEvent;fillBatteryEventData(batteryEvent,battery());if(wasmTable.get(callbackfunc)(eventTypeId,batteryEvent,userData))e.preventDefault()};var eventHandler={target:findEventTarget(target),eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:batteryEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"registerBatteryEventCallback\"]=registerBatteryEventCallback;function _emscripten_set_batterychargingchange_callback_on_thread(userData,callbackfunc,targetThread){if(!battery())return-1;registerBatteryEventCallback(battery(),userData,true,callbackfunc,29,\"chargingchange\",targetThread);return 0}Module[\"_emscripten_set_batterychargingchange_callback_on_thread\"]=_emscripten_set_batterychargingchange_callback_on_thread;_emscripten_set_batterychargingchange_callback_on_thread.sig=\"iii\";function _emscripten_set_batterylevelchange_callback_on_thread(userData,callbackfunc,targetThread){if(!battery())return-1;registerBatteryEventCallback(battery(),userData,true,callbackfunc,30,\"levelchange\",targetThread);return 0}Module[\"_emscripten_set_batterylevelchange_callback_on_thread\"]=_emscripten_set_batterylevelchange_callback_on_thread;_emscripten_set_batterylevelchange_callback_on_thread.sig=\"iii\";function _emscripten_get_battery_status(batteryState){if(!battery())return-1;fillBatteryEventData(batteryState,battery());return 0}Module[\"_emscripten_get_battery_status\"]=_emscripten_get_battery_status;_emscripten_get_battery_status.sig=\"ii\";function _emscripten_set_element_css_size(target,width,height){target=findEventTarget(target);if(!target)return-4;target.style.width=width+\"px\";target.style.height=height+\"px\";return 0}Module[\"_emscripten_set_element_css_size\"]=_emscripten_set_element_css_size;_emscripten_set_element_css_size.sig=\"iiii\";function _emscripten_get_element_css_size(target,width,height){target=findEventTarget(target);if(!target)return-4;var rect=getBoundingClientRect(target);HEAPF64[width>>3]=rect.width;HEAPF64[height>>3]=rect.height;return 0}Module[\"_emscripten_get_element_css_size\"]=_emscripten_get_element_css_size;_emscripten_get_element_css_size.sig=\"iiii\";function _emscripten_html5_remove_all_event_listeners(){JSEvents.removeAllEventListeners()}Module[\"_emscripten_html5_remove_all_event_listeners\"]=_emscripten_html5_remove_all_event_listeners;_emscripten_html5_remove_all_event_listeners.sig=\"v\";function _emscripten_request_animation_frame(cb,userData){return requestAnimationFrame(function(timeStamp){wasmTable.get(cb)(timeStamp,userData)})}Module[\"_emscripten_request_animation_frame\"]=_emscripten_request_animation_frame;function _emscripten_cancel_animation_frame(id){cancelAnimationFrame(id)}Module[\"_emscripten_cancel_animation_frame\"]=_emscripten_cancel_animation_frame;function _emscripten_request_animation_frame_loop(cb,userData){function tick(timeStamp){if(wasmTable.get(cb)(timeStamp,userData)){requestAnimationFrame(tick)}}return requestAnimationFrame(tick)}Module[\"_emscripten_request_animation_frame_loop\"]=_emscripten_request_animation_frame_loop;function polyfillSetImmediate(){}Module[\"polyfillSetImmediate\"]=polyfillSetImmediate;function _emscripten_set_immediate(cb,userData){polyfillSetImmediate();return setImmediate(function(){wasmTable.get(cb)(userData)})}Module[\"_emscripten_set_immediate\"]=_emscripten_set_immediate;function _emscripten_clear_immediate(id){clearImmediate(id)}Module[\"_emscripten_clear_immediate\"]=_emscripten_clear_immediate;function _emscripten_set_immediate_loop(cb,userData){polyfillSetImmediate();function tick(){if(wasmTable.get(cb)(userData)){setImmediate(tick)}}return setImmediate(tick)}Module[\"_emscripten_set_immediate_loop\"]=_emscripten_set_immediate_loop;function _emscripten_set_timeout(cb,msecs,userData){return setTimeout(function(){wasmTable.get(cb)(userData)},msecs)}Module[\"_emscripten_set_timeout\"]=_emscripten_set_timeout;function _emscripten_clear_timeout(id){clearTimeout(id)}Module[\"_emscripten_clear_timeout\"]=_emscripten_clear_timeout;function _emscripten_set_timeout_loop(cb,msecs,userData){function tick(){var t=performance.now();var n=t+msecs;if(wasmTable.get(cb)(t,userData)){setTimeout(tick,n-performance.now())}}return setTimeout(tick,0)}Module[\"_emscripten_set_timeout_loop\"]=_emscripten_set_timeout_loop;function _emscripten_set_interval(cb,msecs,userData){return setInterval(function(){wasmTable.get(cb)(userData)},msecs)}Module[\"_emscripten_set_interval\"]=_emscripten_set_interval;function _emscripten_clear_interval(id){clearInterval(id)}Module[\"_emscripten_clear_interval\"]=_emscripten_clear_interval;function _emscripten_date_now(){return Date.now()}Module[\"_emscripten_date_now\"]=_emscripten_date_now;function _emscripten_performance_now(){return performance.now()}Module[\"_emscripten_performance_now\"]=_emscripten_performance_now;function _emscripten_console_log(str){console.log(UTF8ToString(str))}Module[\"_emscripten_console_log\"]=_emscripten_console_log;function _emscripten_console_warn(str){console.warn(UTF8ToString(str))}Module[\"_emscripten_console_warn\"]=_emscripten_console_warn;function _emscripten_console_error(str){console.error(UTF8ToString(str))}Module[\"_emscripten_console_error\"]=_emscripten_console_error;function _emscripten_throw_number(number){throw number}Module[\"_emscripten_throw_number\"]=_emscripten_throw_number;function _emscripten_throw_string(str){throw UTF8ToString(str)}Module[\"_emscripten_throw_string\"]=_emscripten_throw_string;function _emscripten_unwind_to_js_event_loop(){throw\"unwind\"}Module[\"_emscripten_unwind_to_js_event_loop\"]=_emscripten_unwind_to_js_event_loop;function _emscripten_get_device_pixel_ratio(){return typeof devicePixelRatio===\"number\"&&devicePixelRatio||1}Module[\"_emscripten_get_device_pixel_ratio\"]=_emscripten_get_device_pixel_ratio;_emscripten_get_device_pixel_ratio.sig=\"d\";function _proc_exit(code){try{_exit(code)}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_proc_exit\"]=_proc_exit;_proc_exit.sig=\"vi\";function _args_sizes_get(pargc,pargv_buf_size){try{HEAP32[pargc>>2]=mainArgs.length;var bufSize=0;mainArgs.forEach(function(arg){bufSize+=arg.length+1});HEAP32[pargv_buf_size>>2]=bufSize;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_args_sizes_get\"]=_args_sizes_get;_args_sizes_get.sig=\"iii\";function _args_get(argv,argv_buf){try{var bufSize=0;mainArgs.forEach(function(arg,i){var ptr=argv_buf+bufSize;HEAP32[argv+i*4>>2]=ptr;writeAsciiToMemory(arg,ptr);bufSize+=arg.length+1});return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_args_get\"]=_args_get;_args_get.sig=\"iii\";function checkWasiClock(clock_id){return clock_id==0||clock_id==1||clock_id==2||clock_id==3}Module[\"checkWasiClock\"]=checkWasiClock;function _clock_time_get(clk_id,precision_low,precision_high,ptime){try{if(!checkWasiClock(clk_id)){return 28}var now;if(clk_id===0){now=Date.now()}else if(_emscripten_get_now_is_monotonic){now=_emscripten_get_now()}else{return 52}var nsec=Math.round(now*1e3*1e3);HEAP32[ptime>>2]=nsec>>>0;HEAP32[ptime+4>>2]=nsec/Math.pow(2,32)>>>0;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_clock_time_get\"]=_clock_time_get;_clock_time_get.sig=\"iiiii\";function _clock_res_get(clk_id,pres){try{if(!checkWasiClock(clk_id)){return 28}var nsec;if(clk_id===0){nsec=1e3*1e3}else if(_emscripten_get_now_is_monotonic){nsec=_emscripten_get_now_res()}else{return 52}HEAP32[pres>>2]=nsec>>>0;HEAP32[pres+4>>2]=nsec/Math.pow(2,32)>>>0;return 0}catch(e){if(typeof FS===\"undefined\"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}Module[\"_clock_res_get\"]=_clock_res_get;_clock_res_get.sig=\"iii\";function writeI53ToI64Clamped(ptr,num){if(num>0x8000000000000000){HEAPU32[ptr>>2]=4294967295;HEAPU32[ptr+4>>2]=2147483647}else if(num<-0x8000000000000000){HEAPU32[ptr>>2]=0;HEAPU32[ptr+4>>2]=2147483648}else{HEAPU32[ptr>>2]=num;HEAPU32[ptr+4>>2]=(num-HEAPU32[ptr>>2])/4294967296}}Module[\"writeI53ToI64Clamped\"]=writeI53ToI64Clamped;function writeI53ToI64Signaling(ptr,num){if(num>0x8000000000000000||num<-0x8000000000000000){throw\"RangeError:\"+num}HEAPU32[ptr>>2]=num;HEAPU32[ptr+4>>2]=(num-HEAPU32[ptr>>2])/4294967296}Module[\"writeI53ToI64Signaling\"]=writeI53ToI64Signaling;function writeI53ToU64Clamped(ptr,num){if(num>0x10000000000000000)HEAPU32[ptr>>2]=HEAPU32[ptr+4>>2]=4294967295;else if(num<0)HEAPU32[ptr>>2]=HEAPU32[ptr+4>>2]=0;else{HEAPU32[ptr>>2]=num;HEAPU32[ptr+4>>2]=(num-HEAPU32[ptr>>2])/4294967296}}Module[\"writeI53ToU64Clamped\"]=writeI53ToU64Clamped;function writeI53ToU64Signaling(ptr,num){if(num<0||num>0x10000000000000000){throw\"RangeError:\"+num}HEAPU32[ptr>>2]=num;HEAPU32[ptr+4>>2]=(num-HEAPU32[ptr>>2])/4294967296}Module[\"writeI53ToU64Signaling\"]=writeI53ToU64Signaling;function readI53FromI64(ptr){return HEAPU32[ptr>>2]+HEAP32[ptr+4>>2]*4294967296}Module[\"readI53FromI64\"]=readI53FromI64;function readI53FromU64(ptr){return HEAPU32[ptr>>2]+HEAPU32[ptr+4>>2]*4294967296}Module[\"readI53FromU64\"]=readI53FromU64;function _dladdr(addr,info){var fname=stringToNewUTF8(getExecutableName());HEAP32[info>>2]=fname;HEAP32[info+4>>2]=0;HEAP32[info+8>>2]=0;HEAP32[info+12>>2]=0;return 1}Module[\"_dladdr\"]=_dladdr;_dladdr.sig=\"iii\";var exceptionCaught=[];Module[\"exceptionCaught\"]=exceptionCaught;function CatchInfo(ptr){this.free=function(){_free(this.ptr);this.ptr=0};this.set_base_ptr=function(basePtr){HEAP32[this.ptr>>2]=basePtr};this.get_base_ptr=function(){return HEAP32[this.ptr>>2]};this.set_adjusted_ptr=function(adjustedPtr){var ptrSize=4;HEAP32[this.ptr+ptrSize>>2]=adjustedPtr};this.get_adjusted_ptr=function(){var ptrSize=4;return HEAP32[this.ptr+ptrSize>>2]};this.get_exception_ptr=function(){var isPointer=Module[\"___cxa_is_pointer_type\"](this.get_exception_info().get_type());if(isPointer){return HEAP32[this.get_base_ptr()>>2]}var adjusted=this.get_adjusted_ptr();if(adjusted!==0)return adjusted;return this.get_base_ptr()};this.get_exception_info=function(){return new ExceptionInfo(this.get_base_ptr())};if(ptr===undefined){this.ptr=_malloc(8);this.set_adjusted_ptr(0)}else{this.ptr=ptr}}Module[\"CatchInfo\"]=CatchInfo;function exception_addRef(info){info.add_ref()}Module[\"exception_addRef\"]=exception_addRef;function ___cxa_free_exception(ptr){return _free(new ExceptionInfo(ptr).ptr)}Module[\"___cxa_free_exception\"]=___cxa_free_exception;function exception_decRef(info){if(info.release_ref()&&!info.get_rethrown()){var destructor=info.get_destructor();if(destructor){wasmTable.get(destructor)(info.excPtr)}___cxa_free_exception(info.excPtr)}}Module[\"exception_decRef\"]=exception_decRef;function ___cxa_allocate_exception(size){return _malloc(size+ExceptionInfoAttrs.SIZE)+ExceptionInfoAttrs.SIZE}Module[\"___cxa_allocate_exception\"]=___cxa_allocate_exception;function ___cxa_rethrow(){var catchInfo=exceptionCaught.pop();if(!catchInfo){abort(\"no exception to throw\")}var info=catchInfo.get_exception_info();var ptr=catchInfo.get_base_ptr();if(!info.get_rethrown()){exceptionCaught.push(catchInfo);info.set_rethrown(true);info.set_caught(false);uncaughtExceptionCount++}else{catchInfo.free()}exceptionLast=ptr;throw ptr}Module[\"___cxa_rethrow\"]=___cxa_rethrow;___cxa_rethrow.sig=\"v\";function _llvm_eh_typeid_for(type){return type}Module[\"_llvm_eh_typeid_for\"]=_llvm_eh_typeid_for;function ___cxa_begin_catch(ptr){var catchInfo=new CatchInfo(ptr);var info=catchInfo.get_exception_info();if(!info.get_caught()){info.set_caught(true);uncaughtExceptionCount--}info.set_rethrown(false);exceptionCaught.push(catchInfo);exception_addRef(info);return catchInfo.get_exception_ptr()}Module[\"___cxa_begin_catch\"]=___cxa_begin_catch;function ___cxa_end_catch(){_setThrew(0);var catchInfo=exceptionCaught.pop();exception_decRef(catchInfo.get_exception_info());catchInfo.free();exceptionLast=0}Module[\"___cxa_end_catch\"]=___cxa_end_catch;___cxa_end_catch.sig=\"v\";function ___cxa_get_exception_ptr(ptr){return new CatchInfo(ptr).get_exception_ptr()}Module[\"___cxa_get_exception_ptr\"]=___cxa_get_exception_ptr;function ___cxa_call_unexpected(exception){err(\"Unexpected exception thrown, this is not properly supported - aborting\");ABORT=true;throw exception}Module[\"___cxa_call_unexpected\"]=___cxa_call_unexpected;function ___resumeException(catchInfoPtr){var catchInfo=new CatchInfo(catchInfoPtr);var ptr=catchInfo.get_base_ptr();if(!exceptionLast){exceptionLast=ptr}catchInfo.free();throw ptr}Module[\"___resumeException\"]=___resumeException;function ___cxa_find_matching_catch(){var thrown=exceptionLast;if(!thrown){setTempRet0(0|0);return 0|0}var info=new ExceptionInfo(thrown);var thrownType=info.get_type();var catchInfo=new CatchInfo;catchInfo.set_base_ptr(thrown);if(!thrownType){setTempRet0(0|0);return catchInfo.ptr|0}var typeArray=Array.prototype.slice.call(arguments);var stackTop=stackSave();var exceptionThrowBuf=stackAlloc(4);HEAP32[exceptionThrowBuf>>2]=thrown;for(var i=0;i<typeArray.length;i++){var caughtType=typeArray[i];if(caughtType===0||caughtType===thrownType){break}if(Module[\"___cxa_can_catch\"](caughtType,thrownType,exceptionThrowBuf)){var adjusted=HEAP32[exceptionThrowBuf>>2];if(thrown!==adjusted){catchInfo.set_adjusted_ptr(adjusted)}setTempRet0(caughtType|0);return catchInfo.ptr|0}}stackRestore(stackTop);setTempRet0(thrownType|0);return catchInfo.ptr|0}Module[\"___cxa_find_matching_catch\"]=___cxa_find_matching_catch;function _emscripten_async_wget(url,file,onload,onerror){var _url=UTF8ToString(url);var _file=UTF8ToString(file);_file=PATH_FS.resolve(_file);function doCallback(callback){if(callback){var stack=stackSave();wasmTable.get(callback)(allocate(intArrayFromString(_file),ALLOC_STACK));stackRestore(stack)}}var destinationDirectory=PATH.dirname(_file);FS.createPreloadedFile(destinationDirectory,PATH.basename(_file),_url,true,true,function(){doCallback(onload)},function(){doCallback(onerror)},false,false,function(){try{FS.unlink(_file)}catch(e){}FS.mkdirTree(destinationDirectory)})}Module[\"_emscripten_async_wget\"]=_emscripten_async_wget;_emscripten_async_wget.sig=\"viiii\";var funcWrappers={};Module[\"funcWrappers\"]=funcWrappers;function getFuncWrapper(func,sig){if(!func)return;assert(sig);if(!funcWrappers[sig]){funcWrappers[sig]={}}var sigCache=funcWrappers[sig];if(!sigCache[func]){if(sig.length===1){sigCache[func]=function dynCall_wrapper(){return dynCall(sig,func)}}else if(sig.length===2){sigCache[func]=function dynCall_wrapper(arg){return dynCall(sig,func,[arg])}}else{sigCache[func]=function dynCall_wrapper(){return dynCall(sig,func,Array.prototype.slice.call(arguments))}}}return sigCache[func]}Module[\"getFuncWrapper\"]=getFuncWrapper;function _emscripten_async_wget_data(url,arg,onload,onerror){Browser.asyncLoad(UTF8ToString(url),function(byteArray){var buffer=_malloc(byteArray.length);HEAPU8.set(byteArray,buffer);wasmTable.get(onload)(arg,buffer,byteArray.length);_free(buffer)},function(){if(onerror)wasmTable.get(onerror)(arg)},true)}Module[\"_emscripten_async_wget_data\"]=_emscripten_async_wget_data;_emscripten_async_wget_data.sig=\"viiii\";function _emscripten_async_wget2(url,file,request,param,arg,onload,onerror,onprogress){var _url=UTF8ToString(url);var _file=UTF8ToString(file);_file=PATH_FS.resolve(_file);var _request=UTF8ToString(request);var _param=UTF8ToString(param);var index=_file.lastIndexOf(\"/\");var http=new XMLHttpRequest;http.open(_request,_url,true);http.responseType=\"arraybuffer\";var handle=Browser.getNextWgetRequestHandle();var destinationDirectory=PATH.dirname(_file);http.onload=function http_onload(e){if(http.status>=200&&http.status<300){try{FS.unlink(_file)}catch(e){}FS.mkdirTree(destinationDirectory);FS.createDataFile(_file.substr(0,index),_file.substr(index+1),new Uint8Array(http.response),true,true,false);if(onload){var stack=stackSave();wasmTable.get(onload)(handle,arg,allocate(intArrayFromString(_file),ALLOC_STACK));stackRestore(stack)}}else{if(onerror)wasmTable.get(onerror)(handle,arg,http.status)}delete Browser.wgetRequests[handle]};http.onerror=function http_onerror(e){if(onerror)wasmTable.get(onerror)(handle,arg,http.status);delete Browser.wgetRequests[handle]};http.onprogress=function http_onprogress(e){if(e.lengthComputable||e.lengthComputable===undefined&&e.total!=0){var percentComplete=e.loaded/e.total*100;if(onprogress)wasmTable.get(onprogress)(handle,arg,percentComplete)}};http.onabort=function http_onabort(e){delete Browser.wgetRequests[handle]};if(_request==\"POST\"){http.setRequestHeader(\"Content-type\",\"application/x-www-form-urlencoded\");http.send(_param)}else{http.send(null)}Browser.wgetRequests[handle]=http;return handle}Module[\"_emscripten_async_wget2\"]=_emscripten_async_wget2;_emscripten_async_wget2.sig=\"iiiiiiiii\";function _emscripten_async_wget2_data(url,request,param,arg,free,onload,onerror,onprogress){var _url=UTF8ToString(url);var _request=UTF8ToString(request);var _param=UTF8ToString(param);var http=new XMLHttpRequest;http.open(_request,_url,true);http.responseType=\"arraybuffer\";var handle=Browser.getNextWgetRequestHandle();http.onload=function http_onload(e){if(http.status>=200&&http.status<300||http.status===0&&_url.substr(0,4).toLowerCase()!=\"http\"){var byteArray=new Uint8Array(http.response);var buffer=_malloc(byteArray.length);HEAPU8.set(byteArray,buffer);if(onload)wasmTable.get(onload)(handle,arg,buffer,byteArray.length);if(free)_free(buffer)}else{if(onerror)wasmTable.get(onerror)(handle,arg,http.status,http.statusText)}delete Browser.wgetRequests[handle]};http.onerror=function http_onerror(e){if(onerror){wasmTable.get(onerror)(handle,arg,http.status,http.statusText)}delete Browser.wgetRequests[handle]};http.onprogress=function http_onprogress(e){if(onprogress)wasmTable.get(onprogress)(handle,arg,e.loaded,e.lengthComputable||e.lengthComputable===undefined?e.total:0)};http.onabort=function http_onabort(e){delete Browser.wgetRequests[handle]};if(_request==\"POST\"){http.setRequestHeader(\"Content-type\",\"application/x-www-form-urlencoded\");http.send(_param)}else{http.send(null)}Browser.wgetRequests[handle]=http;return handle}Module[\"_emscripten_async_wget2_data\"]=_emscripten_async_wget2_data;_emscripten_async_wget2_data.sig=\"iiiiiiiii\";function _emscripten_async_wget2_abort(handle){var http=Browser.wgetRequests[handle];if(http){http.abort()}}Module[\"_emscripten_async_wget2_abort\"]=_emscripten_async_wget2_abort;_emscripten_async_wget2_abort.sig=\"vi\";function _emscripten_run_preload_plugins(file,onload,onerror){var _file=UTF8ToString(file);var data=FS.analyzePath(_file);if(!data.exists)return-1;FS.createPreloadedFile(PATH.dirname(_file),PATH.basename(_file),new Uint8Array(data.object.contents),true,true,function(){if(onload)wasmTable.get(onload)(file)},function(){if(onerror)wasmTable.get(onerror)(file)},true);return 0}Module[\"_emscripten_run_preload_plugins\"]=_emscripten_run_preload_plugins;_emscripten_run_preload_plugins.sig=\"iiii\";function _emscripten_run_preload_plugins_data(data,size,suffix,arg,onload,onerror){var _suffix=UTF8ToString(suffix);if(!Browser.asyncPrepareDataCounter)Browser.asyncPrepareDataCounter=0;var name=\"prepare_data_\"+Browser.asyncPrepareDataCounter+++\".\"+_suffix;var lengthAsUTF8=lengthBytesUTF8(name);var cname=_malloc(lengthAsUTF8+1);stringToUTF8(name,cname,lengthAsUTF8+1);FS.createPreloadedFile(\"/\",name,HEAPU8.subarray(data,data+size),true,true,function(){if(onload)wasmTable.get(onload)(arg,cname)},function(){if(onerror)wasmTable.get(onerror)(arg)},true)}Module[\"_emscripten_run_preload_plugins_data\"]=_emscripten_run_preload_plugins_data;_emscripten_run_preload_plugins_data.sig=\"viiiiii\";function _emscripten_async_run_script(script,millis){Browser.safeSetTimeout(function(){_emscripten_run_script(script)},millis)}Module[\"_emscripten_async_run_script\"]=_emscripten_async_run_script;function _emscripten_async_load_script(url,onload,onerror){onload=wasmTable.get(onload);onerror=wasmTable.get(onerror);assert(runDependencies===0,\"async_load_script must be run when no other dependencies are active\");var script=document.createElement(\"script\");script.onload=function script_onload(){if(onload){if(runDependencies>0){dependenciesFulfilled=onload}else{onload()}}};script.onerror=function(){if(onerror)onerror()};script.src=UTF8ToString(url);document.body.appendChild(script)}Module[\"_emscripten_async_load_script\"]=_emscripten_async_load_script;function _emscripten_get_main_loop_timing(mode,value){if(mode)HEAP32[mode>>2]=Browser.mainLoop.timingMode;if(value)HEAP32[value>>2]=Browser.mainLoop.timingValue}Module[\"_emscripten_get_main_loop_timing\"]=_emscripten_get_main_loop_timing;_emscripten_get_main_loop_timing.sig=\"vii\";function _emscripten_set_main_loop(func,fps,simulateInfiniteLoop){var browserIterationFunc=wasmTable.get(func);setMainLoop(browserIterationFunc,fps,simulateInfiniteLoop)}Module[\"_emscripten_set_main_loop\"]=_emscripten_set_main_loop;function _emscripten_set_main_loop_arg(func,arg,fps,simulateInfiniteLoop){var browserIterationFunc=function(){wasmTable.get(func)(arg)};setMainLoop(browserIterationFunc,fps,simulateInfiniteLoop,arg)}Module[\"_emscripten_set_main_loop_arg\"]=_emscripten_set_main_loop_arg;_emscripten_set_main_loop_arg.sig=\"viiii\";function _emscripten_cancel_main_loop(){Browser.mainLoop.pause();Browser.mainLoop.func=null}Module[\"_emscripten_cancel_main_loop\"]=_emscripten_cancel_main_loop;_emscripten_cancel_main_loop.sig=\"v\";function _emscripten_pause_main_loop(){Browser.mainLoop.pause()}Module[\"_emscripten_pause_main_loop\"]=_emscripten_pause_main_loop;_emscripten_pause_main_loop.sig=\"v\";function _emscripten_resume_main_loop(){Browser.mainLoop.resume()}Module[\"_emscripten_resume_main_loop\"]=_emscripten_resume_main_loop;_emscripten_resume_main_loop.sig=\"v\";function __emscripten_push_main_loop_blocker(func,arg,name){Browser.mainLoop.queue.push({func:function(){wasmTable.get(func)(arg)},name:UTF8ToString(name),counted:true});Browser.mainLoop.updateStatus()}Module[\"__emscripten_push_main_loop_blocker\"]=__emscripten_push_main_loop_blocker;function __emscripten_push_uncounted_main_loop_blocker(func,arg,name){Browser.mainLoop.queue.push({func:function(){wasmTable.get(func)(arg)},name:UTF8ToString(name),counted:false});Browser.mainLoop.updateStatus()}Module[\"__emscripten_push_uncounted_main_loop_blocker\"]=__emscripten_push_uncounted_main_loop_blocker;function _emscripten_set_main_loop_expected_blockers(num){Browser.mainLoop.expectedBlockers=num;Browser.mainLoop.remainingBlockers=num;Browser.mainLoop.updateStatus()}Module[\"_emscripten_set_main_loop_expected_blockers\"]=_emscripten_set_main_loop_expected_blockers;_emscripten_set_main_loop_expected_blockers.sig=\"vi\";function _emscripten_async_call(func,arg,millis){function wrapper(){wasmTable.get(func)(arg)}if(millis>=0){Browser.safeSetTimeout(wrapper,millis)}else{Browser.safeRequestAnimationFrame(wrapper)}}Module[\"_emscripten_async_call\"]=_emscripten_async_call;_emscripten_async_call.sig=\"viii\";function _emscripten_get_window_title(){var buflen=256;if(!_emscripten_get_window_title.buffer){_emscripten_get_window_title.buffer=_malloc(buflen)}writeAsciiToMemory(document.title.slice(0,buflen-1),_emscripten_get_window_title.buffer);return _emscripten_get_window_title.buffer}Module[\"_emscripten_get_window_title\"]=_emscripten_get_window_title;_emscripten_get_window_title.sig=\"iv\";function _emscripten_set_window_title(title){setWindowTitle(AsciiToString(title))}Module[\"_emscripten_set_window_title\"]=_emscripten_set_window_title;_emscripten_set_window_title.sig=\"vi\";function _emscripten_get_screen_size(width,height){HEAP32[width>>2]=screen.width;HEAP32[height>>2]=screen.height}Module[\"_emscripten_get_screen_size\"]=_emscripten_get_screen_size;_emscripten_get_screen_size.sig=\"vii\";function _emscripten_hide_mouse(){var styleSheet=document.styleSheets[0];var rules=styleSheet.cssRules;for(var i=0;i<rules.length;i++){if(rules[i].cssText.substr(0,6)==\"canvas\"){styleSheet.deleteRule(i);i--}}styleSheet.insertRule(\"canvas.emscripten { border: 1px solid black; cursor: none; }\",0)}Module[\"_emscripten_hide_mouse\"]=_emscripten_hide_mouse;_emscripten_hide_mouse.sig=\"v\";function _emscripten_set_canvas_size(width,height){Browser.setCanvasSize(width,height)}Module[\"_emscripten_set_canvas_size\"]=_emscripten_set_canvas_size;_emscripten_set_canvas_size.sig=\"vii\";function _emscripten_get_canvas_size(width,height,isFullscreen){var canvas=Module[\"canvas\"];HEAP32[width>>2]=canvas.width;HEAP32[height>>2]=canvas.height;HEAP32[isFullscreen>>2]=Browser.isFullscreen?1:0}Module[\"_emscripten_get_canvas_size\"]=_emscripten_get_canvas_size;_emscripten_get_canvas_size.sig=\"viii\";function _emscripten_create_worker(url){url=UTF8ToString(url);var id=Browser.workers.length;var info={worker:new Worker(url),callbacks:[],awaited:0,buffer:0,bufferSize:0};info.worker.onmessage=function info_worker_onmessage(msg){if(ABORT)return;var info=Browser.workers[id];if(!info)return;var callbackId=msg.data[\"callbackId\"];var callbackInfo=info.callbacks[callbackId];if(!callbackInfo)return;if(msg.data[\"finalResponse\"]){info.awaited--;info.callbacks[callbackId]=null}var data=msg.data[\"data\"];if(data){if(!data.byteLength)data=new Uint8Array(data);if(!info.buffer||info.bufferSize<data.length){if(info.buffer)_free(info.buffer);info.bufferSize=data.length;info.buffer=_malloc(data.length)}HEAPU8.set(data,info.buffer);callbackInfo.func(info.buffer,data.length,callbackInfo.arg)}else{callbackInfo.func(0,0,callbackInfo.arg)}};Browser.workers.push(info);return id}Module[\"_emscripten_create_worker\"]=_emscripten_create_worker;_emscripten_create_worker.sig=\"ii\";function _emscripten_destroy_worker(id){var info=Browser.workers[id];info.worker.terminate();if(info.buffer)_free(info.buffer);Browser.workers[id]=null}Module[\"_emscripten_destroy_worker\"]=_emscripten_destroy_worker;_emscripten_destroy_worker.sig=\"vi\";function _emscripten_call_worker(id,funcName,data,size,callback,arg){funcName=UTF8ToString(funcName);var info=Browser.workers[id];var callbackId=-1;if(callback){callbackId=info.callbacks.length;info.callbacks.push({func:wasmTable.get(callback),arg:arg});info.awaited++}var transferObject={\"funcName\":funcName,\"callbackId\":callbackId,\"data\":data?new Uint8Array(HEAPU8.subarray(data,data+size)):0};if(data){info.worker.postMessage(transferObject,[transferObject.data.buffer])}else{info.worker.postMessage(transferObject)}}Module[\"_emscripten_call_worker\"]=_emscripten_call_worker;_emscripten_call_worker.sig=\"viiiiii\";function _emscripten_worker_respond_provisionally(data,size){if(workerResponded)throw\"already responded with final response!\";var transferObject={\"callbackId\":workerCallbackId,\"finalResponse\":false,\"data\":data?new Uint8Array(HEAPU8.subarray(data,data+size)):0};if(data){postMessage(transferObject,[transferObject.data.buffer])}else{postMessage(transferObject)}}Module[\"_emscripten_worker_respond_provisionally\"]=_emscripten_worker_respond_provisionally;_emscripten_worker_respond_provisionally.sig=\"vii\";function _emscripten_worker_respond(data,size){if(workerResponded)throw\"already responded with final response!\";workerResponded=true;var transferObject={\"callbackId\":workerCallbackId,\"finalResponse\":true,\"data\":data?new Uint8Array(HEAPU8.subarray(data,data+size)):0};if(data){postMessage(transferObject,[transferObject.data.buffer])}else{postMessage(transferObject)}}Module[\"_emscripten_worker_respond\"]=_emscripten_worker_respond;_emscripten_worker_respond.sig=\"vii\";function _emscripten_get_worker_queue_size(id){var info=Browser.workers[id];if(!info)return-1;return info.awaited}Module[\"_emscripten_get_worker_queue_size\"]=_emscripten_get_worker_queue_size;_emscripten_get_worker_queue_size.sig=\"i\";function _emscripten_get_preloaded_image_data(path,w,h){if((path|0)===path)path=UTF8ToString(path);path=PATH_FS.resolve(path);var canvas=Module[\"preloadedImages\"][path];if(canvas){var ctx=canvas.getContext(\"2d\");var image=ctx.getImageData(0,0,canvas.width,canvas.height);var buf=_malloc(canvas.width*canvas.height*4);HEAPU8.set(image.data,buf);HEAP32[w>>2]=canvas.width;HEAP32[h>>2]=canvas.height;return buf}return 0}Module[\"_emscripten_get_preloaded_image_data\"]=_emscripten_get_preloaded_image_data;_emscripten_get_preloaded_image_data.sig=\"iiii\";function _emscripten_get_preloaded_image_data_from_FILE(file,w,h){var fd=Module[\"_fileno\"](file);var stream=FS.getStream(fd);if(stream){return _emscripten_get_preloaded_image_data(stream.path,w,h)}return 0}Module[\"_emscripten_get_preloaded_image_data_from_FILE\"]=_emscripten_get_preloaded_image_data_from_FILE;_emscripten_get_preloaded_image_data_from_FILE.sig=\"iiii\";function _setNetworkCallback(event,userData,callback){function _callback(data){try{if(event===\"error\"){var sp=stackSave();var msg=allocate(intArrayFromString(data[2]),ALLOC_STACK);wasmTable.get(callback)(data[0],data[1],msg,userData);stackRestore(sp)}else{wasmTable.get(callback)(data,userData)}}catch(e){if(e instanceof ExitStatus){return}else{if(e&&typeof e===\"object\"&&e.stack)err(\"exception thrown: \"+[e,e.stack]);throw e}}}Module[\"websocket\"][\"on\"](event,callback?_callback:null)}Module[\"_setNetworkCallback\"]=_setNetworkCallback;function _emscripten_set_socket_error_callback(userData,callback){_setNetworkCallback(\"error\",userData,callback)}Module[\"_emscripten_set_socket_error_callback\"]=_emscripten_set_socket_error_callback;function _emscripten_set_socket_open_callback(userData,callback){_setNetworkCallback(\"open\",userData,callback)}Module[\"_emscripten_set_socket_open_callback\"]=_emscripten_set_socket_open_callback;function _emscripten_set_socket_listen_callback(userData,callback){_setNetworkCallback(\"listen\",userData,callback)}Module[\"_emscripten_set_socket_listen_callback\"]=_emscripten_set_socket_listen_callback;function _emscripten_set_socket_connection_callback(userData,callback){_setNetworkCallback(\"connection\",userData,callback)}Module[\"_emscripten_set_socket_connection_callback\"]=_emscripten_set_socket_connection_callback;function _emscripten_set_socket_message_callback(userData,callback){_setNetworkCallback(\"message\",userData,callback)}Module[\"_emscripten_set_socket_message_callback\"]=_emscripten_set_socket_message_callback;function _emscripten_set_socket_close_callback(userData,callback){_setNetworkCallback(\"close\",userData,callback)}Module[\"_emscripten_set_socket_close_callback\"]=_emscripten_set_socket_close_callback;function _emscripten_webgl_enable_ANGLE_instanced_arrays(ctx){return __webgl_enable_ANGLE_instanced_arrays(GL.contexts[ctx].GLctx)}Module[\"_emscripten_webgl_enable_ANGLE_instanced_arrays\"]=_emscripten_webgl_enable_ANGLE_instanced_arrays;function _emscripten_webgl_enable_OES_vertex_array_object(ctx){return __webgl_enable_OES_vertex_array_object(GL.contexts[ctx].GLctx)}Module[\"_emscripten_webgl_enable_OES_vertex_array_object\"]=_emscripten_webgl_enable_OES_vertex_array_object;function _emscripten_webgl_enable_WEBGL_draw_buffers(ctx){return __webgl_enable_WEBGL_draw_buffers(GL.contexts[ctx].GLctx)}Module[\"_emscripten_webgl_enable_WEBGL_draw_buffers\"]=_emscripten_webgl_enable_WEBGL_draw_buffers;function _emscripten_webgl_enable_WEBGL_multi_draw(ctx){return __webgl_enable_WEBGL_multi_draw(GL.contexts[ctx].GLctx)}Module[\"_emscripten_webgl_enable_WEBGL_multi_draw\"]=_emscripten_webgl_enable_WEBGL_multi_draw;function _glPixelStorei(pname,param){if(pname==3317){GL.unpackAlignment=param}GLctx.pixelStorei(pname,param)}Module[\"_glPixelStorei\"]=_glPixelStorei;_glPixelStorei.sig=\"vii\";function _glGetString(name_){if(GL.stringCache[name_])return GL.stringCache[name_];var ret;switch(name_){case 7939:var exts=GLctx.getSupportedExtensions()||[];exts=exts.concat(exts.map(function(e){return\"GL_\"+e}));ret=stringToNewUTF8(exts.join(\" \"));break;case 7936:case 7937:case 37445:case 37446:var s=GLctx.getParameter(name_);if(!s){GL.recordError(1280)}ret=stringToNewUTF8(s);break;case 7938:var glVersion=GLctx.getParameter(7938);{glVersion=\"OpenGL ES 2.0 (\"+glVersion+\")\"}ret=stringToNewUTF8(glVersion);break;case 35724:var glslVersion=GLctx.getParameter(35724);var ver_re=/^WebGL GLSL ES ([0-9]\\.[0-9][0-9]?)(?:$| .*)/;var ver_num=glslVersion.match(ver_re);if(ver_num!==null){if(ver_num[1].length==3)ver_num[1]=ver_num[1]+\"0\";glslVersion=\"OpenGL ES GLSL ES \"+ver_num[1]+\" (\"+glslVersion+\")\"}ret=stringToNewUTF8(glslVersion);break;default:GL.recordError(1280);return 0}GL.stringCache[name_]=ret;return ret}Module[\"_glGetString\"]=_glGetString;_glGetString.sig=\"ii\";function _glGetIntegerv(name_,p){emscriptenWebGLGet(name_,p,0)}Module[\"_glGetIntegerv\"]=_glGetIntegerv;_glGetIntegerv.sig=\"vii\";function _glGetFloatv(name_,p){emscriptenWebGLGet(name_,p,2)}Module[\"_glGetFloatv\"]=_glGetFloatv;_glGetFloatv.sig=\"vii\";function _glGetBooleanv(name_,p){emscriptenWebGLGet(name_,p,4)}Module[\"_glGetBooleanv\"]=_glGetBooleanv;_glGetBooleanv.sig=\"vii\";function _glDeleteTextures(n,textures){for(var i=0;i<n;i++){var id=HEAP32[textures+i*4>>2];var texture=GL.textures[id];if(!texture)continue;GLctx.deleteTexture(texture);texture.name=0;GL.textures[id]=null}}Module[\"_glDeleteTextures\"]=_glDeleteTextures;_glDeleteTextures.sig=\"vii\";function _glCompressedTexImage2D(target,level,internalFormat,width,height,border,imageSize,data){GLctx[\"compressedTexImage2D\"](target,level,internalFormat,width,height,border,data?HEAPU8.subarray(data,data+imageSize):null)}Module[\"_glCompressedTexImage2D\"]=_glCompressedTexImage2D;_glCompressedTexImage2D.sig=\"viiiiiiii\";function _glCompressedTexSubImage2D(target,level,xoffset,yoffset,width,height,format,imageSize,data){GLctx[\"compressedTexSubImage2D\"](target,level,xoffset,yoffset,width,height,format,data?HEAPU8.subarray(data,data+imageSize):null)}Module[\"_glCompressedTexSubImage2D\"]=_glCompressedTexSubImage2D;_glCompressedTexSubImage2D.sig=\"viiiiiiiii\";function _glTexImage2D(target,level,internalFormat,width,height,border,format,type,pixels){GLctx.texImage2D(target,level,internalFormat,width,height,border,format,type,pixels?emscriptenWebGLGetTexPixelData(type,format,width,height,pixels,internalFormat):null)}Module[\"_glTexImage2D\"]=_glTexImage2D;_glTexImage2D.sig=\"viiiiiiiii\";function _glTexSubImage2D(target,level,xoffset,yoffset,width,height,format,type,pixels){var pixelData=null;if(pixels)pixelData=emscriptenWebGLGetTexPixelData(type,format,width,height,pixels,0);GLctx.texSubImage2D(target,level,xoffset,yoffset,width,height,format,type,pixelData)}Module[\"_glTexSubImage2D\"]=_glTexSubImage2D;_glTexSubImage2D.sig=\"viiiiiiiii\";function _glReadPixels(x,y,width,height,format,type,pixels){var pixelData=emscriptenWebGLGetTexPixelData(type,format,width,height,pixels,format);if(!pixelData){GL.recordError(1280);return}GLctx.readPixels(x,y,width,height,format,type,pixelData)}Module[\"_glReadPixels\"]=_glReadPixels;_glReadPixels.sig=\"viiiiiii\";function _glBindTexture(target,texture){GLctx.bindTexture(target,GL.textures[texture])}Module[\"_glBindTexture\"]=_glBindTexture;_glBindTexture.sig=\"vii\";function _glGetTexParameterfv(target,pname,params){if(!params){GL.recordError(1281);return}HEAPF32[params>>2]=GLctx.getTexParameter(target,pname)}Module[\"_glGetTexParameterfv\"]=_glGetTexParameterfv;_glGetTexParameterfv.sig=\"viii\";function _glGetTexParameteriv(target,pname,params){if(!params){GL.recordError(1281);return}HEAP32[params>>2]=GLctx.getTexParameter(target,pname)}Module[\"_glGetTexParameteriv\"]=_glGetTexParameteriv;_glGetTexParameteriv.sig=\"viii\";function _glTexParameterfv(target,pname,params){var param=HEAPF32[params>>2];GLctx.texParameterf(target,pname,param)}Module[\"_glTexParameterfv\"]=_glTexParameterfv;_glTexParameterfv.sig=\"viii\";function _glTexParameteriv(target,pname,params){var param=HEAP32[params>>2];GLctx.texParameteri(target,pname,param)}Module[\"_glTexParameteriv\"]=_glTexParameteriv;_glTexParameteriv.sig=\"viii\";function _glIsTexture(id){var texture=GL.textures[id];if(!texture)return 0;return GLctx.isTexture(texture)}Module[\"_glIsTexture\"]=_glIsTexture;_glIsTexture.sig=\"ii\";function _glGenBuffers(n,buffers){__glGenObject(n,buffers,\"createBuffer\",GL.buffers)}Module[\"_glGenBuffers\"]=_glGenBuffers;_glGenBuffers.sig=\"vii\";function _glGenTextures(n,textures){__glGenObject(n,textures,\"createTexture\",GL.textures)}Module[\"_glGenTextures\"]=_glGenTextures;_glGenTextures.sig=\"vii\";function _glDeleteBuffers(n,buffers){for(var i=0;i<n;i++){var id=HEAP32[buffers+i*4>>2];var buffer=GL.buffers[id];if(!buffer)continue;GLctx.deleteBuffer(buffer);buffer.name=0;GL.buffers[id]=null}}Module[\"_glDeleteBuffers\"]=_glDeleteBuffers;_glDeleteBuffers.sig=\"vii\";function _glGetBufferParameteriv(target,value,data){if(!data){GL.recordError(1281);return}HEAP32[data>>2]=GLctx.getBufferParameter(target,value)}Module[\"_glGetBufferParameteriv\"]=_glGetBufferParameteriv;_glGetBufferParameteriv.sig=\"viii\";function _glBufferData(target,size,data,usage){GLctx.bufferData(target,data?HEAPU8.subarray(data,data+size):size,usage)}Module[\"_glBufferData\"]=_glBufferData;_glBufferData.sig=\"viiii\";function _glBufferSubData(target,offset,size,data){GLctx.bufferSubData(target,offset,HEAPU8.subarray(data,data+size))}Module[\"_glBufferSubData\"]=_glBufferSubData;_glBufferSubData.sig=\"viiii\";function _glGenQueriesEXT(n,ids){for(var i=0;i<n;i++){var query=GLctx.disjointTimerQueryExt[\"createQueryEXT\"]();if(!query){GL.recordError(1282);while(i<n)HEAP32[ids+i++*4>>2]=0;return}var id=GL.getNewId(GL.timerQueriesEXT);query.name=id;GL.timerQueriesEXT[id]=query;HEAP32[ids+i*4>>2]=id}}Module[\"_glGenQueriesEXT\"]=_glGenQueriesEXT;_glGenQueriesEXT.sig=\"vii\";function _glDeleteQueriesEXT(n,ids){for(var i=0;i<n;i++){var id=HEAP32[ids+i*4>>2];var query=GL.timerQueriesEXT[id];if(!query)continue;GLctx.disjointTimerQueryExt[\"deleteQueryEXT\"](query);GL.timerQueriesEXT[id]=null}}Module[\"_glDeleteQueriesEXT\"]=_glDeleteQueriesEXT;_glDeleteQueriesEXT.sig=\"vii\";function _glIsQueryEXT(id){var query=GL.timerQueriesEXT[id];if(!query)return 0;return GLctx.disjointTimerQueryExt[\"isQueryEXT\"](query)}Module[\"_glIsQueryEXT\"]=_glIsQueryEXT;_glIsQueryEXT.sig=\"ii\";function _glBeginQueryEXT(target,id){GLctx.disjointTimerQueryExt[\"beginQueryEXT\"](target,GL.timerQueriesEXT[id])}Module[\"_glBeginQueryEXT\"]=_glBeginQueryEXT;_glBeginQueryEXT.sig=\"vii\";function _glEndQueryEXT(target){GLctx.disjointTimerQueryExt[\"endQueryEXT\"](target)}Module[\"_glEndQueryEXT\"]=_glEndQueryEXT;_glEndQueryEXT.sig=\"vi\";function _glQueryCounterEXT(id,target){GLctx.disjointTimerQueryExt[\"queryCounterEXT\"](GL.timerQueriesEXT[id],target)}Module[\"_glQueryCounterEXT\"]=_glQueryCounterEXT;_glQueryCounterEXT.sig=\"vii\";function _glGetQueryivEXT(target,pname,params){if(!params){GL.recordError(1281);return}HEAP32[params>>2]=GLctx.disjointTimerQueryExt[\"getQueryEXT\"](target,pname)}Module[\"_glGetQueryivEXT\"]=_glGetQueryivEXT;_glGetQueryivEXT.sig=\"viii\";function _glGetQueryObjectivEXT(id,pname,params){if(!params){GL.recordError(1281);return}var query=GL.timerQueriesEXT[id];var param=GLctx.disjointTimerQueryExt[\"getQueryObjectEXT\"](query,pname);var ret;if(typeof param==\"boolean\"){ret=param?1:0}else{ret=param}HEAP32[params>>2]=ret}Module[\"_glGetQueryObjectivEXT\"]=_glGetQueryObjectivEXT;_glGetQueryObjectivEXT.sig=\"viii\";function _glGetQueryObjectuivEXT(id,pname,params){if(!params){GL.recordError(1281);return}var query=GL.timerQueriesEXT[id];var param=GLctx.disjointTimerQueryExt[\"getQueryObjectEXT\"](query,pname);var ret;if(typeof param==\"boolean\"){ret=param?1:0}else{ret=param}HEAP32[params>>2]=ret}Module[\"_glGetQueryObjectuivEXT\"]=_glGetQueryObjectuivEXT;_glGetQueryObjectuivEXT.sig=\"viii\";function _glGetQueryObjecti64vEXT(id,pname,params){if(!params){GL.recordError(1281);return}var query=GL.timerQueriesEXT[id];var param=GLctx.disjointTimerQueryExt[\"getQueryObjectEXT\"](query,pname);var ret;if(typeof param==\"boolean\"){ret=param?1:0}else{ret=param}writeI53ToI64(params,ret)}Module[\"_glGetQueryObjecti64vEXT\"]=_glGetQueryObjecti64vEXT;_glGetQueryObjecti64vEXT.sig=\"viii\";function _glGetQueryObjectui64vEXT(id,pname,params){if(!params){GL.recordError(1281);return}var query=GL.timerQueriesEXT[id];var param=GLctx.disjointTimerQueryExt[\"getQueryObjectEXT\"](query,pname);var ret;if(typeof param==\"boolean\"){ret=param?1:0}else{ret=param}writeI53ToI64(params,ret)}Module[\"_glGetQueryObjectui64vEXT\"]=_glGetQueryObjectui64vEXT;_glGetQueryObjectui64vEXT.sig=\"viii\";function _glIsBuffer(buffer){var b=GL.buffers[buffer];if(!b)return 0;return GLctx.isBuffer(b)}Module[\"_glIsBuffer\"]=_glIsBuffer;_glIsBuffer.sig=\"ii\";function _glGenRenderbuffers(n,renderbuffers){__glGenObject(n,renderbuffers,\"createRenderbuffer\",GL.renderbuffers)}Module[\"_glGenRenderbuffers\"]=_glGenRenderbuffers;_glGenRenderbuffers.sig=\"vii\";function _glDeleteRenderbuffers(n,renderbuffers){for(var i=0;i<n;i++){var id=HEAP32[renderbuffers+i*4>>2];var renderbuffer=GL.renderbuffers[id];if(!renderbuffer)continue;GLctx.deleteRenderbuffer(renderbuffer);renderbuffer.name=0;GL.renderbuffers[id]=null}}Module[\"_glDeleteRenderbuffers\"]=_glDeleteRenderbuffers;_glDeleteRenderbuffers.sig=\"vii\";function _glBindRenderbuffer(target,renderbuffer){GLctx.bindRenderbuffer(target,GL.renderbuffers[renderbuffer])}Module[\"_glBindRenderbuffer\"]=_glBindRenderbuffer;_glBindRenderbuffer.sig=\"vii\";function _glGetRenderbufferParameteriv(target,pname,params){if(!params){GL.recordError(1281);return}HEAP32[params>>2]=GLctx.getRenderbufferParameter(target,pname)}Module[\"_glGetRenderbufferParameteriv\"]=_glGetRenderbufferParameteriv;_glGetRenderbufferParameteriv.sig=\"viii\";function _glIsRenderbuffer(renderbuffer){var rb=GL.renderbuffers[renderbuffer];if(!rb)return 0;return GLctx.isRenderbuffer(rb)}Module[\"_glIsRenderbuffer\"]=_glIsRenderbuffer;_glIsRenderbuffer.sig=\"ii\";function _glGetUniformfv(program,location,params){emscriptenWebGLGetUniform(program,location,params,2)}Module[\"_glGetUniformfv\"]=_glGetUniformfv;_glGetUniformfv.sig=\"viii\";function _glGetUniformiv(program,location,params){emscriptenWebGLGetUniform(program,location,params,0)}Module[\"_glGetUniformiv\"]=_glGetUniformiv;_glGetUniformiv.sig=\"viii\";function _glGetUniformLocation(program,name){name=UTF8ToString(name);var arrayIndex=0;if(name[name.length-1]==\"]\"){var leftBrace=name.lastIndexOf(\"[\");arrayIndex=name[leftBrace+1]!=\"]\"?jstoi_q(name.slice(leftBrace+1)):0;name=name.slice(0,leftBrace)}var uniformInfo=GL.programInfos[program]&&GL.programInfos[program].uniforms[name];if(uniformInfo&&arrayIndex>=0&&arrayIndex<uniformInfo[0]){return uniformInfo[1]+arrayIndex}else{return-1}}Module[\"_glGetUniformLocation\"]=_glGetUniformLocation;_glGetUniformLocation.sig=\"iii\";function _glGetVertexAttribfv(index,pname,params){emscriptenWebGLGetVertexAttrib(index,pname,params,2)}Module[\"_glGetVertexAttribfv\"]=_glGetVertexAttribfv;_glGetVertexAttribfv.sig=\"viii\";function _glGetVertexAttribiv(index,pname,params){emscriptenWebGLGetVertexAttrib(index,pname,params,5)}Module[\"_glGetVertexAttribiv\"]=_glGetVertexAttribiv;_glGetVertexAttribiv.sig=\"viii\";function _glGetVertexAttribPointerv(index,pname,pointer){if(!pointer){GL.recordError(1281);return}HEAP32[pointer>>2]=GLctx.getVertexAttribOffset(index,pname)}Module[\"_glGetVertexAttribPointerv\"]=_glGetVertexAttribPointerv;_glGetVertexAttribPointerv.sig=\"viii\";function _glUniform1f(location,v0){GLctx.uniform1f(GL.uniforms[location],v0)}Module[\"_glUniform1f\"]=_glUniform1f;_glUniform1f.sig=\"vif\";function _glUniform2f(location,v0,v1){GLctx.uniform2f(GL.uniforms[location],v0,v1)}Module[\"_glUniform2f\"]=_glUniform2f;_glUniform2f.sig=\"viff\";function _glUniform3f(location,v0,v1,v2){GLctx.uniform3f(GL.uniforms[location],v0,v1,v2)}Module[\"_glUniform3f\"]=_glUniform3f;_glUniform3f.sig=\"vifff\";function _glUniform4f(location,v0,v1,v2,v3){GLctx.uniform4f(GL.uniforms[location],v0,v1,v2,v3)}Module[\"_glUniform4f\"]=_glUniform4f;_glUniform4f.sig=\"viffff\";function _glUniform1i(location,v0){GLctx.uniform1i(GL.uniforms[location],v0)}Module[\"_glUniform1i\"]=_glUniform1i;_glUniform1i.sig=\"vii\";function _glUniform2i(location,v0,v1){GLctx.uniform2i(GL.uniforms[location],v0,v1)}Module[\"_glUniform2i\"]=_glUniform2i;_glUniform2i.sig=\"viii\";function _glUniform3i(location,v0,v1,v2){GLctx.uniform3i(GL.uniforms[location],v0,v1,v2)}Module[\"_glUniform3i\"]=_glUniform3i;_glUniform3i.sig=\"viiii\";function _glUniform4i(location,v0,v1,v2,v3){GLctx.uniform4i(GL.uniforms[location],v0,v1,v2,v3)}Module[\"_glUniform4i\"]=_glUniform4i;_glUniform4i.sig=\"viiiii\";function _glUniform1iv(location,count,value){if(count<=288){var view=__miniTempWebGLIntBuffers[count-1];for(var i=0;i<count;++i){view[i]=HEAP32[value+4*i>>2]}}else{var view=HEAP32.subarray(value>>2,value+count*4>>2)}GLctx.uniform1iv(GL.uniforms[location],view)}Module[\"_glUniform1iv\"]=_glUniform1iv;_glUniform1iv.sig=\"viii\";function _glUniform2iv(location,count,value){if(count<=144){var view=__miniTempWebGLIntBuffers[2*count-1];for(var i=0;i<2*count;i+=2){view[i]=HEAP32[value+4*i>>2];view[i+1]=HEAP32[value+(4*i+4)>>2]}}else{var view=HEAP32.subarray(value>>2,value+count*8>>2)}GLctx.uniform2iv(GL.uniforms[location],view)}Module[\"_glUniform2iv\"]=_glUniform2iv;_glUniform2iv.sig=\"viii\";function _glUniform3iv(location,count,value){if(count<=96){var view=__miniTempWebGLIntBuffers[3*count-1];for(var i=0;i<3*count;i+=3){view[i]=HEAP32[value+4*i>>2];view[i+1]=HEAP32[value+(4*i+4)>>2];view[i+2]=HEAP32[value+(4*i+8)>>2]}}else{var view=HEAP32.subarray(value>>2,value+count*12>>2)}GLctx.uniform3iv(GL.uniforms[location],view)}Module[\"_glUniform3iv\"]=_glUniform3iv;_glUniform3iv.sig=\"viii\";function _glUniform4iv(location,count,value){if(count<=72){var view=__miniTempWebGLIntBuffers[4*count-1];for(var i=0;i<4*count;i+=4){view[i]=HEAP32[value+4*i>>2];view[i+1]=HEAP32[value+(4*i+4)>>2];view[i+2]=HEAP32[value+(4*i+8)>>2];view[i+3]=HEAP32[value+(4*i+12)>>2]}}else{var view=HEAP32.subarray(value>>2,value+count*16>>2)}GLctx.uniform4iv(GL.uniforms[location],view)}Module[\"_glUniform4iv\"]=_glUniform4iv;_glUniform4iv.sig=\"viii\";function _glUniform1fv(location,count,value){if(count<=288){var view=miniTempWebGLFloatBuffers[count-1];for(var i=0;i<count;++i){view[i]=HEAPF32[value+4*i>>2]}}else{var view=HEAPF32.subarray(value>>2,value+count*4>>2)}GLctx.uniform1fv(GL.uniforms[location],view)}Module[\"_glUniform1fv\"]=_glUniform1fv;_glUniform1fv.sig=\"viii\";function _glUniform2fv(location,count,value){if(count<=144){var view=miniTempWebGLFloatBuffers[2*count-1];for(var i=0;i<2*count;i+=2){view[i]=HEAPF32[value+4*i>>2];view[i+1]=HEAPF32[value+(4*i+4)>>2]}}else{var view=HEAPF32.subarray(value>>2,value+count*8>>2)}GLctx.uniform2fv(GL.uniforms[location],view)}Module[\"_glUniform2fv\"]=_glUniform2fv;_glUniform2fv.sig=\"viii\";function _glUniform3fv(location,count,value){if(count<=96){var view=miniTempWebGLFloatBuffers[3*count-1];for(var i=0;i<3*count;i+=3){view[i]=HEAPF32[value+4*i>>2];view[i+1]=HEAPF32[value+(4*i+4)>>2];view[i+2]=HEAPF32[value+(4*i+8)>>2]}}else{var view=HEAPF32.subarray(value>>2,value+count*12>>2)}GLctx.uniform3fv(GL.uniforms[location],view)}Module[\"_glUniform3fv\"]=_glUniform3fv;_glUniform3fv.sig=\"viii\";function _glUniform4fv(location,count,value){if(count<=72){var view=miniTempWebGLFloatBuffers[4*count-1];var heap=HEAPF32;value>>=2;for(var i=0;i<4*count;i+=4){var dst=value+i;view[i]=heap[dst];view[i+1]=heap[dst+1];view[i+2]=heap[dst+2];view[i+3]=heap[dst+3]}}else{var view=HEAPF32.subarray(value>>2,value+count*16>>2)}GLctx.uniform4fv(GL.uniforms[location],view)}Module[\"_glUniform4fv\"]=_glUniform4fv;_glUniform4fv.sig=\"viii\";function _glUniformMatrix2fv(location,count,transpose,value){if(count<=72){var view=miniTempWebGLFloatBuffers[4*count-1];for(var i=0;i<4*count;i+=4){view[i]=HEAPF32[value+4*i>>2];view[i+1]=HEAPF32[value+(4*i+4)>>2];view[i+2]=HEAPF32[value+(4*i+8)>>2];view[i+3]=HEAPF32[value+(4*i+12)>>2]}}else{var view=HEAPF32.subarray(value>>2,value+count*16>>2)}GLctx.uniformMatrix2fv(GL.uniforms[location],!!transpose,view)}Module[\"_glUniformMatrix2fv\"]=_glUniformMatrix2fv;_glUniformMatrix2fv.sig=\"viiii\";function _glUniformMatrix3fv(location,count,transpose,value){if(count<=32){var view=miniTempWebGLFloatBuffers[9*count-1];for(var i=0;i<9*count;i+=9){view[i]=HEAPF32[value+4*i>>2];view[i+1]=HEAPF32[value+(4*i+4)>>2];view[i+2]=HEAPF32[value+(4*i+8)>>2];view[i+3]=HEAPF32[value+(4*i+12)>>2];view[i+4]=HEAPF32[value+(4*i+16)>>2];view[i+5]=HEAPF32[value+(4*i+20)>>2];view[i+6]=HEAPF32[value+(4*i+24)>>2];view[i+7]=HEAPF32[value+(4*i+28)>>2];view[i+8]=HEAPF32[value+(4*i+32)>>2]}}else{var view=HEAPF32.subarray(value>>2,value+count*36>>2)}GLctx.uniformMatrix3fv(GL.uniforms[location],!!transpose,view)}Module[\"_glUniformMatrix3fv\"]=_glUniformMatrix3fv;_glUniformMatrix3fv.sig=\"viiii\";function _glUniformMatrix4fv(location,count,transpose,value){if(count<=18){var view=miniTempWebGLFloatBuffers[16*count-1];var heap=HEAPF32;value>>=2;for(var i=0;i<16*count;i+=16){var dst=value+i;view[i]=heap[dst];view[i+1]=heap[dst+1];view[i+2]=heap[dst+2];view[i+3]=heap[dst+3];view[i+4]=heap[dst+4];view[i+5]=heap[dst+5];view[i+6]=heap[dst+6];view[i+7]=heap[dst+7];view[i+8]=heap[dst+8];view[i+9]=heap[dst+9];view[i+10]=heap[dst+10];view[i+11]=heap[dst+11];view[i+12]=heap[dst+12];view[i+13]=heap[dst+13];view[i+14]=heap[dst+14];view[i+15]=heap[dst+15]}}else{var view=HEAPF32.subarray(value>>2,value+count*64>>2)}GLctx.uniformMatrix4fv(GL.uniforms[location],!!transpose,view)}Module[\"_glUniformMatrix4fv\"]=_glUniformMatrix4fv;_glUniformMatrix4fv.sig=\"viiii\";function _glBindBuffer(target,buffer){GLctx.bindBuffer(target,GL.buffers[buffer])}Module[\"_glBindBuffer\"]=_glBindBuffer;_glBindBuffer.sig=\"vii\";function _glVertexAttrib1fv(index,v){GLctx.vertexAttrib1f(index,HEAPF32[v>>2])}Module[\"_glVertexAttrib1fv\"]=_glVertexAttrib1fv;_glVertexAttrib1fv.sig=\"vii\";function _glVertexAttrib2fv(index,v){GLctx.vertexAttrib2f(index,HEAPF32[v>>2],HEAPF32[v+4>>2])}Module[\"_glVertexAttrib2fv\"]=_glVertexAttrib2fv;_glVertexAttrib2fv.sig=\"vii\";function _glVertexAttrib3fv(index,v){GLctx.vertexAttrib3f(index,HEAPF32[v>>2],HEAPF32[v+4>>2],HEAPF32[v+8>>2])}Module[\"_glVertexAttrib3fv\"]=_glVertexAttrib3fv;_glVertexAttrib3fv.sig=\"vii\";function _glVertexAttrib4fv(index,v){GLctx.vertexAttrib4f(index,HEAPF32[v>>2],HEAPF32[v+4>>2],HEAPF32[v+8>>2],HEAPF32[v+12>>2])}Module[\"_glVertexAttrib4fv\"]=_glVertexAttrib4fv;_glVertexAttrib4fv.sig=\"vii\";function _glGetAttribLocation(program,name){return GLctx.getAttribLocation(GL.programs[program],UTF8ToString(name))}Module[\"_glGetAttribLocation\"]=_glGetAttribLocation;_glGetAttribLocation.sig=\"iii\";function _glGetActiveAttrib(program,index,bufSize,length,size,type,name){__glGetActiveAttribOrUniform(\"getActiveAttrib\",program,index,bufSize,length,size,type,name)}Module[\"_glGetActiveAttrib\"]=_glGetActiveAttrib;_glGetActiveAttrib.sig=\"viiiiiii\";function _glGetActiveUniform(program,index,bufSize,length,size,type,name){__glGetActiveAttribOrUniform(\"getActiveUniform\",program,index,bufSize,length,size,type,name)}Module[\"_glGetActiveUniform\"]=_glGetActiveUniform;_glGetActiveUniform.sig=\"viiiiiii\";function _glCreateShader(shaderType){var id=GL.getNewId(GL.shaders);GL.shaders[id]=GLctx.createShader(shaderType);return id}Module[\"_glCreateShader\"]=_glCreateShader;_glCreateShader.sig=\"ii\";function _glDeleteShader(id){if(!id)return;var shader=GL.shaders[id];if(!shader){GL.recordError(1281);return}GLctx.deleteShader(shader);GL.shaders[id]=null}Module[\"_glDeleteShader\"]=_glDeleteShader;_glDeleteShader.sig=\"vi\";function _glGetAttachedShaders(program,maxCount,count,shaders){var result=GLctx.getAttachedShaders(GL.programs[program]);var len=result.length;if(len>maxCount){len=maxCount}HEAP32[count>>2]=len;for(var i=0;i<len;++i){var id=GL.shaders.indexOf(result[i]);HEAP32[shaders+i*4>>2]=id}}Module[\"_glGetAttachedShaders\"]=_glGetAttachedShaders;_glGetAttachedShaders.sig=\"viiii\";function _glShaderSource(shader,count,string,length){var source=GL.getSource(shader,count,string,length);GLctx.shaderSource(GL.shaders[shader],source)}Module[\"_glShaderSource\"]=_glShaderSource;_glShaderSource.sig=\"viiii\";function _glGetShaderSource(shader,bufSize,length,source){var result=GLctx.getShaderSource(GL.shaders[shader]);if(!result)return;var numBytesWrittenExclNull=bufSize>0&&source?stringToUTF8(result,source,bufSize):0;if(length)HEAP32[length>>2]=numBytesWrittenExclNull}Module[\"_glGetShaderSource\"]=_glGetShaderSource;_glGetShaderSource.sig=\"viiii\";function _glCompileShader(shader){GLctx.compileShader(GL.shaders[shader])}Module[\"_glCompileShader\"]=_glCompileShader;_glCompileShader.sig=\"vi\";function _glGetShaderInfoLog(shader,maxLength,length,infoLog){var log=GLctx.getShaderInfoLog(GL.shaders[shader]);if(log===null)log=\"(unknown error)\";var numBytesWrittenExclNull=maxLength>0&&infoLog?stringToUTF8(log,infoLog,maxLength):0;if(length)HEAP32[length>>2]=numBytesWrittenExclNull}Module[\"_glGetShaderInfoLog\"]=_glGetShaderInfoLog;_glGetShaderInfoLog.sig=\"viiii\";function _glGetShaderiv(shader,pname,p){if(!p){GL.recordError(1281);return}if(pname==35716){var log=GLctx.getShaderInfoLog(GL.shaders[shader]);if(log===null)log=\"(unknown error)\";var logLength=log?log.length+1:0;HEAP32[p>>2]=logLength}else if(pname==35720){var source=GLctx.getShaderSource(GL.shaders[shader]);var sourceLength=source?source.length+1:0;HEAP32[p>>2]=sourceLength}else{HEAP32[p>>2]=GLctx.getShaderParameter(GL.shaders[shader],pname)}}Module[\"_glGetShaderiv\"]=_glGetShaderiv;_glGetShaderiv.sig=\"viii\";function _glGetProgramiv(program,pname,p){if(!p){GL.recordError(1281);return}if(program>=GL.counter){GL.recordError(1281);return}var ptable=GL.programInfos[program];if(!ptable){GL.recordError(1282);return}if(pname==35716){var log=GLctx.getProgramInfoLog(GL.programs[program]);if(log===null)log=\"(unknown error)\";HEAP32[p>>2]=log.length+1}else if(pname==35719){HEAP32[p>>2]=ptable.maxUniformLength}else if(pname==35722){if(ptable.maxAttributeLength==-1){program=GL.programs[program];var numAttribs=GLctx.getProgramParameter(program,35721);ptable.maxAttributeLength=0;for(var i=0;i<numAttribs;++i){var activeAttrib=GLctx.getActiveAttrib(program,i);ptable.maxAttributeLength=Math.max(ptable.maxAttributeLength,activeAttrib.name.length+1)}}HEAP32[p>>2]=ptable.maxAttributeLength}else if(pname==35381){if(ptable.maxUniformBlockNameLength==-1){program=GL.programs[program];var numBlocks=GLctx.getProgramParameter(program,35382);ptable.maxUniformBlockNameLength=0;for(var i=0;i<numBlocks;++i){var activeBlockName=GLctx.getActiveUniformBlockName(program,i);ptable.maxUniformBlockNameLength=Math.max(ptable.maxUniformBlockNameLength,activeBlockName.length+1)}}HEAP32[p>>2]=ptable.maxUniformBlockNameLength}else{HEAP32[p>>2]=GLctx.getProgramParameter(GL.programs[program],pname)}}Module[\"_glGetProgramiv\"]=_glGetProgramiv;_glGetProgramiv.sig=\"viii\";function _glIsShader(shader){var s=GL.shaders[shader];if(!s)return 0;return GLctx.isShader(s)}Module[\"_glIsShader\"]=_glIsShader;_glIsShader.sig=\"ii\";function _glCreateProgram(){var id=GL.getNewId(GL.programs);var program=GLctx.createProgram();program.name=id;GL.programs[id]=program;return id}Module[\"_glCreateProgram\"]=_glCreateProgram;_glCreateProgram.sig=\"i\";function _glDeleteProgram(id){if(!id)return;var program=GL.programs[id];if(!program){GL.recordError(1281);return}GLctx.deleteProgram(program);program.name=0;GL.programs[id]=null;GL.programInfos[id]=null}Module[\"_glDeleteProgram\"]=_glDeleteProgram;_glDeleteProgram.sig=\"vi\";function _glAttachShader(program,shader){GLctx.attachShader(GL.programs[program],GL.shaders[shader])}Module[\"_glAttachShader\"]=_glAttachShader;_glAttachShader.sig=\"vii\";function _glDetachShader(program,shader){GLctx.detachShader(GL.programs[program],GL.shaders[shader])}Module[\"_glDetachShader\"]=_glDetachShader;_glDetachShader.sig=\"vii\";function _glGetShaderPrecisionFormat(shaderType,precisionType,range,precision){var result=GLctx.getShaderPrecisionFormat(shaderType,precisionType);HEAP32[range>>2]=result.rangeMin;HEAP32[range+4>>2]=result.rangeMax;HEAP32[precision>>2]=result.precision}Module[\"_glGetShaderPrecisionFormat\"]=_glGetShaderPrecisionFormat;_glGetShaderPrecisionFormat.sig=\"viiii\";function _glLinkProgram(program){GLctx.linkProgram(GL.programs[program]);GL.populateUniformTable(program)}Module[\"_glLinkProgram\"]=_glLinkProgram;_glLinkProgram.sig=\"vi\";function _glGetProgramInfoLog(program,maxLength,length,infoLog){var log=GLctx.getProgramInfoLog(GL.programs[program]);if(log===null)log=\"(unknown error)\";var numBytesWrittenExclNull=maxLength>0&&infoLog?stringToUTF8(log,infoLog,maxLength):0;if(length)HEAP32[length>>2]=numBytesWrittenExclNull}Module[\"_glGetProgramInfoLog\"]=_glGetProgramInfoLog;_glGetProgramInfoLog.sig=\"viiii\";function _glUseProgram(program){GLctx.useProgram(GL.programs[program])}Module[\"_glUseProgram\"]=_glUseProgram;_glUseProgram.sig=\"vi\";function _glValidateProgram(program){GLctx.validateProgram(GL.programs[program])}Module[\"_glValidateProgram\"]=_glValidateProgram;_glValidateProgram.sig=\"vi\";function _glIsProgram(program){program=GL.programs[program];if(!program)return 0;return GLctx.isProgram(program)}Module[\"_glIsProgram\"]=_glIsProgram;_glIsProgram.sig=\"ii\";function _glBindAttribLocation(program,index,name){GLctx.bindAttribLocation(GL.programs[program],index,UTF8ToString(name))}Module[\"_glBindAttribLocation\"]=_glBindAttribLocation;_glBindAttribLocation.sig=\"viii\";function _glBindFramebuffer(target,framebuffer){GLctx.bindFramebuffer(target,GL.framebuffers[framebuffer])}Module[\"_glBindFramebuffer\"]=_glBindFramebuffer;_glBindFramebuffer.sig=\"vii\";function _glGenFramebuffers(n,ids){__glGenObject(n,ids,\"createFramebuffer\",GL.framebuffers)}Module[\"_glGenFramebuffers\"]=_glGenFramebuffers;_glGenFramebuffers.sig=\"vii\";function _glDeleteFramebuffers(n,framebuffers){for(var i=0;i<n;++i){var id=HEAP32[framebuffers+i*4>>2];var framebuffer=GL.framebuffers[id];if(!framebuffer)continue;GLctx.deleteFramebuffer(framebuffer);framebuffer.name=0;GL.framebuffers[id]=null}}Module[\"_glDeleteFramebuffers\"]=_glDeleteFramebuffers;_glDeleteFramebuffers.sig=\"vii\";function _glFramebufferRenderbuffer(target,attachment,renderbuffertarget,renderbuffer){GLctx.framebufferRenderbuffer(target,attachment,renderbuffertarget,GL.renderbuffers[renderbuffer])}Module[\"_glFramebufferRenderbuffer\"]=_glFramebufferRenderbuffer;_glFramebufferRenderbuffer.sig=\"viiii\";function _glFramebufferTexture2D(target,attachment,textarget,texture,level){GLctx.framebufferTexture2D(target,attachment,textarget,GL.textures[texture],level)}Module[\"_glFramebufferTexture2D\"]=_glFramebufferTexture2D;_glFramebufferTexture2D.sig=\"viiiii\";function _glGetFramebufferAttachmentParameteriv(target,attachment,pname,params){var result=GLctx.getFramebufferAttachmentParameter(target,attachment,pname);if(result instanceof WebGLRenderbuffer||result instanceof WebGLTexture){result=result.name|0}HEAP32[params>>2]=result}Module[\"_glGetFramebufferAttachmentParameteriv\"]=_glGetFramebufferAttachmentParameteriv;_glGetFramebufferAttachmentParameteriv.sig=\"viiii\";function _glIsFramebuffer(framebuffer){var fb=GL.framebuffers[framebuffer];if(!fb)return 0;return GLctx.isFramebuffer(fb)}Module[\"_glIsFramebuffer\"]=_glIsFramebuffer;_glIsFramebuffer.sig=\"ii\";function _glGenVertexArrays(n,arrays){__glGenObject(n,arrays,\"createVertexArray\",GL.vaos)}Module[\"_glGenVertexArrays\"]=_glGenVertexArrays;_glGenVertexArrays.sig=\"vii\";function _glDeleteVertexArrays(n,vaos){for(var i=0;i<n;i++){var id=HEAP32[vaos+i*4>>2];GLctx[\"deleteVertexArray\"](GL.vaos[id]);GL.vaos[id]=null}}Module[\"_glDeleteVertexArrays\"]=_glDeleteVertexArrays;_glDeleteVertexArrays.sig=\"vii\";function _glBindVertexArray(vao){GLctx[\"bindVertexArray\"](GL.vaos[vao])}Module[\"_glBindVertexArray\"]=_glBindVertexArray;_glBindVertexArray.sig=\"vi\";function _glIsVertexArray(array){var vao=GL.vaos[array];if(!vao)return 0;return GLctx[\"isVertexArray\"](vao)}Module[\"_glIsVertexArray\"]=_glIsVertexArray;_glIsVertexArray.sig=\"ii\";function _glVertexPointer(){throw\"Legacy GL function (glVertexPointer) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.\"}Module[\"_glVertexPointer\"]=_glVertexPointer;function _glMatrixMode(){throw\"Legacy GL function (glMatrixMode) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.\"}Module[\"_glMatrixMode\"]=_glMatrixMode;function _glBegin(){throw\"Legacy GL function (glBegin) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.\"}Module[\"_glBegin\"]=_glBegin;function _glLoadIdentity(){throw\"Legacy GL function (glLoadIdentity) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.\"}Module[\"_glLoadIdentity\"]=_glLoadIdentity;function _glGenVertexArraysOES(n,arrays){__glGenObject(n,arrays,\"createVertexArray\",GL.vaos)}Module[\"_glGenVertexArraysOES\"]=_glGenVertexArraysOES;_glGenVertexArraysOES.sig=\"vii\";function _glDeleteVertexArraysOES(n,vaos){for(var i=0;i<n;i++){var id=HEAP32[vaos+i*4>>2];GLctx[\"deleteVertexArray\"](GL.vaos[id]);GL.vaos[id]=null}}Module[\"_glDeleteVertexArraysOES\"]=_glDeleteVertexArraysOES;_glDeleteVertexArraysOES.sig=\"vii\";function _glBindVertexArrayOES(vao){GLctx[\"bindVertexArray\"](GL.vaos[vao])}Module[\"_glBindVertexArrayOES\"]=_glBindVertexArrayOES;_glBindVertexArrayOES.sig=\"vi\";function _glIsVertexArrayOES(array){var vao=GL.vaos[array];if(!vao)return 0;return GLctx[\"isVertexArray\"](vao)}Module[\"_glIsVertexArrayOES\"]=_glIsVertexArrayOES;_glIsVertexArrayOES.sig=\"ii\";function _gluPerspective(fov,aspect,near,far){GLImmediate.matricesModified=true;GLImmediate.matrixVersion[GLImmediate.currentMatrix]=GLImmediate.matrixVersion[GLImmediate.currentMatrix]+1|0;GLImmediate.matrix[GLImmediate.currentMatrix]=GLImmediate.matrixLib.mat4.perspective(fov,aspect,near,far,GLImmediate.matrix[GLImmediate.currentMatrix])}Module[\"_gluPerspective\"]=_gluPerspective;function _gluLookAt(ex,ey,ez,cx,cy,cz,ux,uy,uz){GLImmediate.matricesModified=true;GLImmediate.matrixVersion[GLImmediate.currentMatrix]=GLImmediate.matrixVersion[GLImmediate.currentMatrix]+1|0;GLImmediate.matrixLib.mat4.lookAt(GLImmediate.matrix[GLImmediate.currentMatrix],[ex,ey,ez],[cx,cy,cz],[ux,uy,uz])}Module[\"_gluLookAt\"]=_gluLookAt;function _gluProject(objX,objY,objZ,model,proj,view,winX,winY,winZ){var inVec=new Float32Array(4);var outVec=new Float32Array(4);GLImmediate.matrixLib.mat4.multiplyVec4(HEAPF64.subarray(model>>3,model+128>>3),[objX,objY,objZ,1],outVec);GLImmediate.matrixLib.mat4.multiplyVec4(HEAPF64.subarray(proj>>3,proj+128>>3),outVec,inVec);if(inVec[3]==0){return 0}inVec[0]/=inVec[3];inVec[1]/=inVec[3];inVec[2]/=inVec[3];inVec[0]=inVec[0]*.5+.5;inVec[1]=inVec[1]*.5+.5;inVec[2]=inVec[2]*.5+.5;inVec[0]=inVec[0]*HEAP32[view+8>>2]+HEAP32[view>>2];inVec[1]=inVec[1]*HEAP32[view+12>>2]+HEAP32[view+4>>2];HEAPF64[winX>>3]=inVec[0];HEAPF64[winY>>3]=inVec[1];HEAPF64[winZ>>3]=inVec[2];return 1}Module[\"_gluProject\"]=_gluProject;function _gluUnProject(winX,winY,winZ,model,proj,view,objX,objY,objZ){var result=GLImmediate.matrixLib.mat4.unproject([winX,winY,winZ],HEAPF64.subarray(model>>3,model+128>>3),HEAPF64.subarray(proj>>3,proj+128>>3),HEAP32.subarray(view>>2,view+16>>2));if(result===null){return 0}HEAPF64[objX>>3]=result[0];HEAPF64[objY>>3]=result[1];HEAPF64[objZ>>3]=result[2];return 1}Module[\"_gluUnProject\"]=_gluUnProject;function _glOrtho(){return Module[\"_glOrtho\"].apply(null,arguments)}function _gluOrtho2D(left,right,bottom,top){_glOrtho(left,right,bottom,top,-1,1)}Module[\"_gluOrtho2D\"]=_gluOrtho2D;function _glVertexAttribPointer(index,size,type,normalized,stride,ptr){GLctx.vertexAttribPointer(index,size,type,!!normalized,stride,ptr)}Module[\"_glVertexAttribPointer\"]=_glVertexAttribPointer;_glVertexAttribPointer.sig=\"viiiiii\";function _glEnableVertexAttribArray(index){GLctx.enableVertexAttribArray(index)}Module[\"_glEnableVertexAttribArray\"]=_glEnableVertexAttribArray;_glEnableVertexAttribArray.sig=\"vi\";function _glDisableVertexAttribArray(index){GLctx.disableVertexAttribArray(index)}Module[\"_glDisableVertexAttribArray\"]=_glDisableVertexAttribArray;_glDisableVertexAttribArray.sig=\"vi\";function _glDrawArrays(mode,first,count){GLctx.drawArrays(mode,first,count)}Module[\"_glDrawArrays\"]=_glDrawArrays;_glDrawArrays.sig=\"viii\";function _glDrawElements(mode,count,type,indices){GLctx.drawElements(mode,count,type,indices)}Module[\"_glDrawElements\"]=_glDrawElements;_glDrawElements.sig=\"viiii\";function _glShaderBinary(){GL.recordError(1280)}Module[\"_glShaderBinary\"]=_glShaderBinary;_glShaderBinary.sig=\"v\";function _glReleaseShaderCompiler(){}Module[\"_glReleaseShaderCompiler\"]=_glReleaseShaderCompiler;_glReleaseShaderCompiler.sig=\"v\";function _glGetError(){var error=GLctx.getError()||GL.lastError;GL.lastError=0;return error}Module[\"_glGetError\"]=_glGetError;_glGetError.sig=\"i\";function _glVertexAttribDivisor(index,divisor){GLctx[\"vertexAttribDivisor\"](index,divisor)}Module[\"_glVertexAttribDivisor\"]=_glVertexAttribDivisor;_glVertexAttribDivisor.sig=\"vii\";function _glDrawArraysInstanced(mode,first,count,primcount){GLctx[\"drawArraysInstanced\"](mode,first,count,primcount)}Module[\"_glDrawArraysInstanced\"]=_glDrawArraysInstanced;_glDrawArraysInstanced.sig=\"viiii\";function _glDrawElementsInstanced(mode,count,type,indices,primcount){GLctx[\"drawElementsInstanced\"](mode,count,type,indices,primcount)}Module[\"_glDrawElementsInstanced\"]=_glDrawElementsInstanced;_glDrawElementsInstanced.sig=\"viiiii\";function _glVertexAttribDivisorNV(index,divisor){GLctx[\"vertexAttribDivisor\"](index,divisor)}Module[\"_glVertexAttribDivisorNV\"]=_glVertexAttribDivisorNV;_glVertexAttribDivisorNV.sig=\"vii\";function _glDrawArraysInstancedNV(mode,first,count,primcount){GLctx[\"drawArraysInstanced\"](mode,first,count,primcount)}Module[\"_glDrawArraysInstancedNV\"]=_glDrawArraysInstancedNV;_glDrawArraysInstancedNV.sig=\"viiii\";function _glDrawElementsInstancedNV(mode,count,type,indices,primcount){GLctx[\"drawElementsInstanced\"](mode,count,type,indices,primcount)}Module[\"_glDrawElementsInstancedNV\"]=_glDrawElementsInstancedNV;_glDrawElementsInstancedNV.sig=\"viiiii\";function _glVertexAttribDivisorEXT(index,divisor){GLctx[\"vertexAttribDivisor\"](index,divisor)}Module[\"_glVertexAttribDivisorEXT\"]=_glVertexAttribDivisorEXT;_glVertexAttribDivisorEXT.sig=\"vii\";function _glDrawArraysInstancedEXT(mode,first,count,primcount){GLctx[\"drawArraysInstanced\"](mode,first,count,primcount)}Module[\"_glDrawArraysInstancedEXT\"]=_glDrawArraysInstancedEXT;_glDrawArraysInstancedEXT.sig=\"viiii\";function _glDrawElementsInstancedEXT(mode,count,type,indices,primcount){GLctx[\"drawElementsInstanced\"](mode,count,type,indices,primcount)}Module[\"_glDrawElementsInstancedEXT\"]=_glDrawElementsInstancedEXT;_glDrawElementsInstancedEXT.sig=\"viiiii\";function _glVertexAttribDivisorARB(index,divisor){GLctx[\"vertexAttribDivisor\"](index,divisor)}Module[\"_glVertexAttribDivisorARB\"]=_glVertexAttribDivisorARB;_glVertexAttribDivisorARB.sig=\"vii\";function _glDrawArraysInstancedARB(mode,first,count,primcount){GLctx[\"drawArraysInstanced\"](mode,first,count,primcount)}Module[\"_glDrawArraysInstancedARB\"]=_glDrawArraysInstancedARB;_glDrawArraysInstancedARB.sig=\"viiii\";function _glDrawElementsInstancedARB(mode,count,type,indices,primcount){GLctx[\"drawElementsInstanced\"](mode,count,type,indices,primcount)}Module[\"_glDrawElementsInstancedARB\"]=_glDrawElementsInstancedARB;_glDrawElementsInstancedARB.sig=\"viiiii\";function _glVertexAttribDivisorANGLE(index,divisor){GLctx[\"vertexAttribDivisor\"](index,divisor)}Module[\"_glVertexAttribDivisorANGLE\"]=_glVertexAttribDivisorANGLE;_glVertexAttribDivisorANGLE.sig=\"vii\";function _glDrawArraysInstancedANGLE(mode,first,count,primcount){GLctx[\"drawArraysInstanced\"](mode,first,count,primcount)}Module[\"_glDrawArraysInstancedANGLE\"]=_glDrawArraysInstancedANGLE;_glDrawArraysInstancedANGLE.sig=\"viiii\";function _glDrawElementsInstancedANGLE(mode,count,type,indices,primcount){GLctx[\"drawElementsInstanced\"](mode,count,type,indices,primcount)}Module[\"_glDrawElementsInstancedANGLE\"]=_glDrawElementsInstancedANGLE;_glDrawElementsInstancedANGLE.sig=\"viiiii\";function _glDrawBuffers(n,bufs){var bufArray=tempFixedLengthArray[n];for(var i=0;i<n;i++){bufArray[i]=HEAP32[bufs+i*4>>2]}GLctx[\"drawBuffers\"](bufArray)}Module[\"_glDrawBuffers\"]=_glDrawBuffers;_glDrawBuffers.sig=\"vii\";function _glDrawBuffersEXT(n,bufs){var bufArray=tempFixedLengthArray[n];for(var i=0;i<n;i++){bufArray[i]=HEAP32[bufs+i*4>>2]}GLctx[\"drawBuffers\"](bufArray)}Module[\"_glDrawBuffersEXT\"]=_glDrawBuffersEXT;_glDrawBuffersEXT.sig=\"vii\";function _glDrawBuffersWEBGL(n,bufs){var bufArray=tempFixedLengthArray[n];for(var i=0;i<n;i++){bufArray[i]=HEAP32[bufs+i*4>>2]}GLctx[\"drawBuffers\"](bufArray)}Module[\"_glDrawBuffersWEBGL\"]=_glDrawBuffersWEBGL;_glDrawBuffersWEBGL.sig=\"vii\";function _glColorMask(red,green,blue,alpha){GLctx.colorMask(!!red,!!green,!!blue,!!alpha)}Module[\"_glColorMask\"]=_glColorMask;_glColorMask.sig=\"viiii\";function _glDepthMask(flag){GLctx.depthMask(!!flag)}Module[\"_glDepthMask\"]=_glDepthMask;_glDepthMask.sig=\"vi\";function _glSampleCoverage(value,invert){GLctx.sampleCoverage(value,!!invert)}Module[\"_glSampleCoverage\"]=_glSampleCoverage;_glSampleCoverage.sig=\"vii\";function _glMultiDrawArrays(mode,firsts,counts,drawcount){GLctx.multiDrawWebgl[\"multiDrawArraysWEBGL\"](mode,HEAP32,firsts>>2,HEAP32,counts>>2,drawcount)}Module[\"_glMultiDrawArrays\"]=_glMultiDrawArrays;_glMultiDrawArrays.sig=\"viiii\";function _glMultiDrawArraysANGLE(mode,firsts,counts,drawcount){GLctx.multiDrawWebgl[\"multiDrawArraysWEBGL\"](mode,HEAP32,firsts>>2,HEAP32,counts>>2,drawcount)}Module[\"_glMultiDrawArraysANGLE\"]=_glMultiDrawArraysANGLE;_glMultiDrawArraysANGLE.sig=\"viiii\";function _glMultiDrawArraysWEBGL(mode,firsts,counts,drawcount){GLctx.multiDrawWebgl[\"multiDrawArraysWEBGL\"](mode,HEAP32,firsts>>2,HEAP32,counts>>2,drawcount)}Module[\"_glMultiDrawArraysWEBGL\"]=_glMultiDrawArraysWEBGL;_glMultiDrawArraysWEBGL.sig=\"viiii\";function _glMultiDrawArraysInstancedANGLE(mode,firsts,counts,instanceCounts,drawcount){GLctx.multiDrawWebgl[\"multiDrawArraysInstancedWEBGL\"](mode,HEAP32,firsts>>2,HEAP32,counts>>2,HEAP32,instanceCounts>>2,drawcount)}Module[\"_glMultiDrawArraysInstancedANGLE\"]=_glMultiDrawArraysInstancedANGLE;_glMultiDrawArraysInstancedANGLE.sig=\"viiiii\";function _glMultiDrawArraysInstancedWEBGL(mode,firsts,counts,instanceCounts,drawcount){GLctx.multiDrawWebgl[\"multiDrawArraysInstancedWEBGL\"](mode,HEAP32,firsts>>2,HEAP32,counts>>2,HEAP32,instanceCounts>>2,drawcount)}Module[\"_glMultiDrawArraysInstancedWEBGL\"]=_glMultiDrawArraysInstancedWEBGL;_glMultiDrawArraysInstancedWEBGL.sig=\"viiiii\";function _glMultiDrawElements(mode,counts,type,offsets,drawcount){GLctx.multiDrawWebgl[\"multiDrawElementsWEBGL\"](mode,HEAP32,counts>>2,type,HEAP32,offsets>>2,drawcount)}Module[\"_glMultiDrawElements\"]=_glMultiDrawElements;_glMultiDrawElements.sig=\"viiiii\";function _glMultiDrawElementsANGLE(mode,counts,type,offsets,drawcount){GLctx.multiDrawWebgl[\"multiDrawElementsWEBGL\"](mode,HEAP32,counts>>2,type,HEAP32,offsets>>2,drawcount)}Module[\"_glMultiDrawElementsANGLE\"]=_glMultiDrawElementsANGLE;_glMultiDrawElementsANGLE.sig=\"viiiii\";function _glMultiDrawElementsWEBGL(mode,counts,type,offsets,drawcount){GLctx.multiDrawWebgl[\"multiDrawElementsWEBGL\"](mode,HEAP32,counts>>2,type,HEAP32,offsets>>2,drawcount)}Module[\"_glMultiDrawElementsWEBGL\"]=_glMultiDrawElementsWEBGL;_glMultiDrawElementsWEBGL.sig=\"viiiii\";function _glMultiDrawElementsInstancedANGLE(mode,counts,type,offsets,instanceCounts,drawcount){GLctx.multiDrawWebgl[\"multiDrawElementsInstancedWEBGL\"](mode,HEAP32,counts>>2,type,HEAP32,offsets>>2,HEAP32,instanceCounts>>2,drawcount)}Module[\"_glMultiDrawElementsInstancedANGLE\"]=_glMultiDrawElementsInstancedANGLE;_glMultiDrawElementsInstancedANGLE.sig=\"viiiiii\";function _glMultiDrawElementsInstancedWEBGL(mode,counts,type,offsets,instanceCounts,drawcount){GLctx.multiDrawWebgl[\"multiDrawElementsInstancedWEBGL\"](mode,HEAP32,counts>>2,type,HEAP32,offsets>>2,HEAP32,instanceCounts>>2,drawcount)}Module[\"_glMultiDrawElementsInstancedWEBGL\"]=_glMultiDrawElementsInstancedWEBGL;_glMultiDrawElementsInstancedWEBGL.sig=\"viiiiii\";function _glFinish(){GLctx[\"finish\"]()}Module[\"_glFinish\"]=_glFinish;_glFinish.sig=\"v\";function _glFlush(){GLctx[\"flush\"]()}Module[\"_glFlush\"]=_glFlush;_glFlush.sig=\"v\";function _glClearDepth(x0){GLctx[\"clearDepth\"](x0)}Module[\"_glClearDepth\"]=_glClearDepth;_glClearDepth.sig=\"vi\";function _glClearDepthf(x0){GLctx[\"clearDepth\"](x0)}Module[\"_glClearDepthf\"]=_glClearDepthf;_glClearDepthf.sig=\"vi\";function _glDepthFunc(x0){GLctx[\"depthFunc\"](x0)}Module[\"_glDepthFunc\"]=_glDepthFunc;_glDepthFunc.sig=\"vi\";function _glEnable(x0){GLctx[\"enable\"](x0)}Module[\"_glEnable\"]=_glEnable;_glEnable.sig=\"vi\";function _glDisable(x0){GLctx[\"disable\"](x0)}Module[\"_glDisable\"]=_glDisable;_glDisable.sig=\"vi\";function _glFrontFace(x0){GLctx[\"frontFace\"](x0)}Module[\"_glFrontFace\"]=_glFrontFace;_glFrontFace.sig=\"vi\";function _glCullFace(x0){GLctx[\"cullFace\"](x0)}Module[\"_glCullFace\"]=_glCullFace;_glCullFace.sig=\"vi\";function _glClear(x0){GLctx[\"clear\"](x0)}Module[\"_glClear\"]=_glClear;_glClear.sig=\"vi\";function _glLineWidth(x0){GLctx[\"lineWidth\"](x0)}Module[\"_glLineWidth\"]=_glLineWidth;_glLineWidth.sig=\"vi\";function _glClearStencil(x0){GLctx[\"clearStencil\"](x0)}Module[\"_glClearStencil\"]=_glClearStencil;_glClearStencil.sig=\"vi\";function _glStencilMask(x0){GLctx[\"stencilMask\"](x0)}Module[\"_glStencilMask\"]=_glStencilMask;_glStencilMask.sig=\"vi\";function _glCheckFramebufferStatus(x0){return GLctx[\"checkFramebufferStatus\"](x0)}Module[\"_glCheckFramebufferStatus\"]=_glCheckFramebufferStatus;_glCheckFramebufferStatus.sig=\"ii\";function _glGenerateMipmap(x0){GLctx[\"generateMipmap\"](x0)}Module[\"_glGenerateMipmap\"]=_glGenerateMipmap;_glGenerateMipmap.sig=\"vi\";function _glActiveTexture(x0){GLctx[\"activeTexture\"](x0)}Module[\"_glActiveTexture\"]=_glActiveTexture;_glActiveTexture.sig=\"vi\";function _glBlendEquation(x0){GLctx[\"blendEquation\"](x0)}Module[\"_glBlendEquation\"]=_glBlendEquation;_glBlendEquation.sig=\"vi\";function _glIsEnabled(x0){return GLctx[\"isEnabled\"](x0)}Module[\"_glIsEnabled\"]=_glIsEnabled;_glIsEnabled.sig=\"ii\";function _glBlendFunc(x0,x1){GLctx[\"blendFunc\"](x0,x1)}Module[\"_glBlendFunc\"]=_glBlendFunc;_glBlendFunc.sig=\"vii\";function _glBlendEquationSeparate(x0,x1){GLctx[\"blendEquationSeparate\"](x0,x1)}Module[\"_glBlendEquationSeparate\"]=_glBlendEquationSeparate;_glBlendEquationSeparate.sig=\"vii\";function _glDepthRange(x0,x1){GLctx[\"depthRange\"](x0,x1)}Module[\"_glDepthRange\"]=_glDepthRange;_glDepthRange.sig=\"vii\";function _glDepthRangef(x0,x1){GLctx[\"depthRange\"](x0,x1)}Module[\"_glDepthRangef\"]=_glDepthRangef;_glDepthRangef.sig=\"vii\";function _glStencilMaskSeparate(x0,x1){GLctx[\"stencilMaskSeparate\"](x0,x1)}Module[\"_glStencilMaskSeparate\"]=_glStencilMaskSeparate;_glStencilMaskSeparate.sig=\"vii\";function _glHint(x0,x1){GLctx[\"hint\"](x0,x1)}Module[\"_glHint\"]=_glHint;_glHint.sig=\"vii\";function _glPolygonOffset(x0,x1){GLctx[\"polygonOffset\"](x0,x1)}Module[\"_glPolygonOffset\"]=_glPolygonOffset;_glPolygonOffset.sig=\"vii\";function _glVertexAttrib1f(x0,x1){GLctx[\"vertexAttrib1f\"](x0,x1)}Module[\"_glVertexAttrib1f\"]=_glVertexAttrib1f;_glVertexAttrib1f.sig=\"vii\";function _glTexParameteri(x0,x1,x2){GLctx[\"texParameteri\"](x0,x1,x2)}Module[\"_glTexParameteri\"]=_glTexParameteri;_glTexParameteri.sig=\"viii\";function _glTexParameterf(x0,x1,x2){GLctx[\"texParameterf\"](x0,x1,x2)}Module[\"_glTexParameterf\"]=_glTexParameterf;_glTexParameterf.sig=\"viii\";function _glVertexAttrib2f(x0,x1,x2){GLctx[\"vertexAttrib2f\"](x0,x1,x2)}Module[\"_glVertexAttrib2f\"]=_glVertexAttrib2f;_glVertexAttrib2f.sig=\"viii\";function _glStencilFunc(x0,x1,x2){GLctx[\"stencilFunc\"](x0,x1,x2)}Module[\"_glStencilFunc\"]=_glStencilFunc;_glStencilFunc.sig=\"viii\";function _glStencilOp(x0,x1,x2){GLctx[\"stencilOp\"](x0,x1,x2)}Module[\"_glStencilOp\"]=_glStencilOp;_glStencilOp.sig=\"viii\";function _glViewport(x0,x1,x2,x3){GLctx[\"viewport\"](x0,x1,x2,x3)}Module[\"_glViewport\"]=_glViewport;_glViewport.sig=\"viiii\";function _glClearColor(x0,x1,x2,x3){GLctx[\"clearColor\"](x0,x1,x2,x3)}Module[\"_glClearColor\"]=_glClearColor;_glClearColor.sig=\"viiii\";function _glScissor(x0,x1,x2,x3){GLctx[\"scissor\"](x0,x1,x2,x3)}Module[\"_glScissor\"]=_glScissor;_glScissor.sig=\"viiii\";function _glVertexAttrib3f(x0,x1,x2,x3){GLctx[\"vertexAttrib3f\"](x0,x1,x2,x3)}Module[\"_glVertexAttrib3f\"]=_glVertexAttrib3f;_glVertexAttrib3f.sig=\"viiii\";function _glRenderbufferStorage(x0,x1,x2,x3){GLctx[\"renderbufferStorage\"](x0,x1,x2,x3)}Module[\"_glRenderbufferStorage\"]=_glRenderbufferStorage;_glRenderbufferStorage.sig=\"viiii\";function _glBlendFuncSeparate(x0,x1,x2,x3){GLctx[\"blendFuncSeparate\"](x0,x1,x2,x3)}Module[\"_glBlendFuncSeparate\"]=_glBlendFuncSeparate;_glBlendFuncSeparate.sig=\"viiii\";function _glBlendColor(x0,x1,x2,x3){GLctx[\"blendColor\"](x0,x1,x2,x3)}Module[\"_glBlendColor\"]=_glBlendColor;_glBlendColor.sig=\"vffff\";function _glStencilFuncSeparate(x0,x1,x2,x3){GLctx[\"stencilFuncSeparate\"](x0,x1,x2,x3)}Module[\"_glStencilFuncSeparate\"]=_glStencilFuncSeparate;_glStencilFuncSeparate.sig=\"viiii\";function _glStencilOpSeparate(x0,x1,x2,x3){GLctx[\"stencilOpSeparate\"](x0,x1,x2,x3)}Module[\"_glStencilOpSeparate\"]=_glStencilOpSeparate;_glStencilOpSeparate.sig=\"viiii\";function _glVertexAttrib4f(x0,x1,x2,x3,x4){GLctx[\"vertexAttrib4f\"](x0,x1,x2,x3,x4)}Module[\"_glVertexAttrib4f\"]=_glVertexAttrib4f;_glVertexAttrib4f.sig=\"viiiii\";function _glCopyTexImage2D(x0,x1,x2,x3,x4,x5,x6,x7){GLctx[\"copyTexImage2D\"](x0,x1,x2,x3,x4,x5,x6,x7)}Module[\"_glCopyTexImage2D\"]=_glCopyTexImage2D;_glCopyTexImage2D.sig=\"viiiiiiii\";function _glCopyTexSubImage2D(x0,x1,x2,x3,x4,x5,x6,x7){GLctx[\"copyTexSubImage2D\"](x0,x1,x2,x3,x4,x5,x6,x7)}Module[\"_glCopyTexSubImage2D\"]=_glCopyTexSubImage2D;_glCopyTexSubImage2D.sig=\"viiiiiiii\";function _emscripten_glGenVertexArrays(n,arrays){__glGenObject(n,arrays,\"createVertexArray\",GL.vaos)}Module[\"_emscripten_glGenVertexArrays\"]=_emscripten_glGenVertexArrays;_emscripten_glGenVertexArrays.sig=\"vii\";function _emscripten_glDeleteVertexArrays(n,vaos){for(var i=0;i<n;i++){var id=HEAP32[vaos+i*4>>2];GLctx[\"deleteVertexArray\"](GL.vaos[id]);GL.vaos[id]=null}}Module[\"_emscripten_glDeleteVertexArrays\"]=_emscripten_glDeleteVertexArrays;_emscripten_glDeleteVertexArrays.sig=\"vii\";function _emscripten_glBindVertexArray(vao){GLctx[\"bindVertexArray\"](GL.vaos[vao])}Module[\"_emscripten_glBindVertexArray\"]=_emscripten_glBindVertexArray;_emscripten_glBindVertexArray.sig=\"vi\";function _emscripten_glIsVertexArray(array){var vao=GL.vaos[array];if(!vao)return 0;return GLctx[\"isVertexArray\"](vao)}Module[\"_emscripten_glIsVertexArray\"]=_emscripten_glIsVertexArray;_emscripten_glIsVertexArray.sig=\"ii\";function _emscripten_glVertexPointer(){throw\"Legacy GL function (glVertexPointer) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.\"}Module[\"_emscripten_glVertexPointer\"]=_emscripten_glVertexPointer;function _emscripten_glMatrixMode(){throw\"Legacy GL function (glMatrixMode) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.\"}Module[\"_emscripten_glMatrixMode\"]=_emscripten_glMatrixMode;function _emscripten_glBegin(){throw\"Legacy GL function (glBegin) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.\"}Module[\"_emscripten_glBegin\"]=_emscripten_glBegin;function _emscripten_glLoadIdentity(){throw\"Legacy GL function (glLoadIdentity) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.\"}Module[\"_emscripten_glLoadIdentity\"]=_emscripten_glLoadIdentity;function _emscripten_gluPerspective(fov,aspect,near,far){GLImmediate.matricesModified=true;GLImmediate.matrixVersion[GLImmediate.currentMatrix]=GLImmediate.matrixVersion[GLImmediate.currentMatrix]+1|0;GLImmediate.matrix[GLImmediate.currentMatrix]=GLImmediate.matrixLib.mat4.perspective(fov,aspect,near,far,GLImmediate.matrix[GLImmediate.currentMatrix])}Module[\"_emscripten_gluPerspective\"]=_emscripten_gluPerspective;function _emscripten_gluLookAt(ex,ey,ez,cx,cy,cz,ux,uy,uz){GLImmediate.matricesModified=true;GLImmediate.matrixVersion[GLImmediate.currentMatrix]=GLImmediate.matrixVersion[GLImmediate.currentMatrix]+1|0;GLImmediate.matrixLib.mat4.lookAt(GLImmediate.matrix[GLImmediate.currentMatrix],[ex,ey,ez],[cx,cy,cz],[ux,uy,uz])}Module[\"_emscripten_gluLookAt\"]=_emscripten_gluLookAt;function _emscripten_gluProject(objX,objY,objZ,model,proj,view,winX,winY,winZ){var inVec=new Float32Array(4);var outVec=new Float32Array(4);GLImmediate.matrixLib.mat4.multiplyVec4(HEAPF64.subarray(model>>3,model+128>>3),[objX,objY,objZ,1],outVec);GLImmediate.matrixLib.mat4.multiplyVec4(HEAPF64.subarray(proj>>3,proj+128>>3),outVec,inVec);if(inVec[3]==0){return 0}inVec[0]/=inVec[3];inVec[1]/=inVec[3];inVec[2]/=inVec[3];inVec[0]=inVec[0]*.5+.5;inVec[1]=inVec[1]*.5+.5;inVec[2]=inVec[2]*.5+.5;inVec[0]=inVec[0]*HEAP32[view+8>>2]+HEAP32[view>>2];inVec[1]=inVec[1]*HEAP32[view+12>>2]+HEAP32[view+4>>2];HEAPF64[winX>>3]=inVec[0];HEAPF64[winY>>3]=inVec[1];HEAPF64[winZ>>3]=inVec[2];return 1}Module[\"_emscripten_gluProject\"]=_emscripten_gluProject;function _emscripten_gluUnProject(winX,winY,winZ,model,proj,view,objX,objY,objZ){var result=GLImmediate.matrixLib.mat4.unproject([winX,winY,winZ],HEAPF64.subarray(model>>3,model+128>>3),HEAPF64.subarray(proj>>3,proj+128>>3),HEAP32.subarray(view>>2,view+16>>2));if(result===null){return 0}HEAPF64[objX>>3]=result[0];HEAPF64[objY>>3]=result[1];HEAPF64[objZ>>3]=result[2];return 1}Module[\"_emscripten_gluUnProject\"]=_emscripten_gluUnProject;function _emscripten_gluOrtho2D(left,right,bottom,top){_glOrtho(left,right,bottom,top,-1,1)}Module[\"_emscripten_gluOrtho2D\"]=_emscripten_gluOrtho2D;function _emscripten_glVertexAttribDivisor(index,divisor){GLctx[\"vertexAttribDivisor\"](index,divisor)}Module[\"_emscripten_glVertexAttribDivisor\"]=_emscripten_glVertexAttribDivisor;_emscripten_glVertexAttribDivisor.sig=\"vii\";function _emscripten_glDrawArraysInstanced(mode,first,count,primcount){GLctx[\"drawArraysInstanced\"](mode,first,count,primcount)}Module[\"_emscripten_glDrawArraysInstanced\"]=_emscripten_glDrawArraysInstanced;_emscripten_glDrawArraysInstanced.sig=\"viiii\";function _emscripten_glDrawElementsInstanced(mode,count,type,indices,primcount){GLctx[\"drawElementsInstanced\"](mode,count,type,indices,primcount)}Module[\"_emscripten_glDrawElementsInstanced\"]=_emscripten_glDrawElementsInstanced;_emscripten_glDrawElementsInstanced.sig=\"viiiii\";function _emscripten_glVertexAttribDivisorNV(index,divisor){GLctx[\"vertexAttribDivisor\"](index,divisor)}Module[\"_emscripten_glVertexAttribDivisorNV\"]=_emscripten_glVertexAttribDivisorNV;_emscripten_glVertexAttribDivisorNV.sig=\"vii\";function _emscripten_glDrawArraysInstancedNV(mode,first,count,primcount){GLctx[\"drawArraysInstanced\"](mode,first,count,primcount)}Module[\"_emscripten_glDrawArraysInstancedNV\"]=_emscripten_glDrawArraysInstancedNV;_emscripten_glDrawArraysInstancedNV.sig=\"viiii\";function _emscripten_glDrawElementsInstancedNV(mode,count,type,indices,primcount){GLctx[\"drawElementsInstanced\"](mode,count,type,indices,primcount)}Module[\"_emscripten_glDrawElementsInstancedNV\"]=_emscripten_glDrawElementsInstancedNV;_emscripten_glDrawElementsInstancedNV.sig=\"viiiii\";function _emscripten_glVertexAttribDivisorEXT(index,divisor){GLctx[\"vertexAttribDivisor\"](index,divisor)}Module[\"_emscripten_glVertexAttribDivisorEXT\"]=_emscripten_glVertexAttribDivisorEXT;_emscripten_glVertexAttribDivisorEXT.sig=\"vii\";function _emscripten_glDrawArraysInstancedEXT(mode,first,count,primcount){GLctx[\"drawArraysInstanced\"](mode,first,count,primcount)}Module[\"_emscripten_glDrawArraysInstancedEXT\"]=_emscripten_glDrawArraysInstancedEXT;_emscripten_glDrawArraysInstancedEXT.sig=\"viiii\";function _emscripten_glDrawElementsInstancedEXT(mode,count,type,indices,primcount){GLctx[\"drawElementsInstanced\"](mode,count,type,indices,primcount)}Module[\"_emscripten_glDrawElementsInstancedEXT\"]=_emscripten_glDrawElementsInstancedEXT;_emscripten_glDrawElementsInstancedEXT.sig=\"viiiii\";function _emscripten_glVertexAttribDivisorARB(index,divisor){GLctx[\"vertexAttribDivisor\"](index,divisor)}Module[\"_emscripten_glVertexAttribDivisorARB\"]=_emscripten_glVertexAttribDivisorARB;_emscripten_glVertexAttribDivisorARB.sig=\"vii\";function _emscripten_glDrawArraysInstancedARB(mode,first,count,primcount){GLctx[\"drawArraysInstanced\"](mode,first,count,primcount)}Module[\"_emscripten_glDrawArraysInstancedARB\"]=_emscripten_glDrawArraysInstancedARB;_emscripten_glDrawArraysInstancedARB.sig=\"viiii\";function _emscripten_glDrawElementsInstancedARB(mode,count,type,indices,primcount){GLctx[\"drawElementsInstanced\"](mode,count,type,indices,primcount)}Module[\"_emscripten_glDrawElementsInstancedARB\"]=_emscripten_glDrawElementsInstancedARB;_emscripten_glDrawElementsInstancedARB.sig=\"viiiii\";function _emscripten_glDrawBuffers(n,bufs){var bufArray=tempFixedLengthArray[n];for(var i=0;i<n;i++){bufArray[i]=HEAP32[bufs+i*4>>2]}GLctx[\"drawBuffers\"](bufArray)}Module[\"_emscripten_glDrawBuffers\"]=_emscripten_glDrawBuffers;_emscripten_glDrawBuffers.sig=\"vii\";function _emscripten_glDrawBuffersEXT(n,bufs){var bufArray=tempFixedLengthArray[n];for(var i=0;i<n;i++){bufArray[i]=HEAP32[bufs+i*4>>2]}GLctx[\"drawBuffers\"](bufArray)}Module[\"_emscripten_glDrawBuffersEXT\"]=_emscripten_glDrawBuffersEXT;_emscripten_glDrawBuffersEXT.sig=\"vii\";function _emscripten_glMultiDrawArrays(mode,firsts,counts,drawcount){GLctx.multiDrawWebgl[\"multiDrawArraysWEBGL\"](mode,HEAP32,firsts>>2,HEAP32,counts>>2,drawcount)}Module[\"_emscripten_glMultiDrawArrays\"]=_emscripten_glMultiDrawArrays;_emscripten_glMultiDrawArrays.sig=\"viiii\";function _emscripten_glMultiDrawArraysANGLE(mode,firsts,counts,drawcount){GLctx.multiDrawWebgl[\"multiDrawArraysWEBGL\"](mode,HEAP32,firsts>>2,HEAP32,counts>>2,drawcount)}Module[\"_emscripten_glMultiDrawArraysANGLE\"]=_emscripten_glMultiDrawArraysANGLE;_emscripten_glMultiDrawArraysANGLE.sig=\"viiii\";function _emscripten_glMultiDrawArraysWEBGL(mode,firsts,counts,drawcount){GLctx.multiDrawWebgl[\"multiDrawArraysWEBGL\"](mode,HEAP32,firsts>>2,HEAP32,counts>>2,drawcount)}Module[\"_emscripten_glMultiDrawArraysWEBGL\"]=_emscripten_glMultiDrawArraysWEBGL;_emscripten_glMultiDrawArraysWEBGL.sig=\"viiii\";function _emscripten_glMultiDrawArraysInstancedANGLE(mode,firsts,counts,instanceCounts,drawcount){GLctx.multiDrawWebgl[\"multiDrawArraysInstancedWEBGL\"](mode,HEAP32,firsts>>2,HEAP32,counts>>2,HEAP32,instanceCounts>>2,drawcount)}Module[\"_emscripten_glMultiDrawArraysInstancedANGLE\"]=_emscripten_glMultiDrawArraysInstancedANGLE;_emscripten_glMultiDrawArraysInstancedANGLE.sig=\"viiiii\";function _emscripten_glMultiDrawArraysInstancedWEBGL(mode,firsts,counts,instanceCounts,drawcount){GLctx.multiDrawWebgl[\"multiDrawArraysInstancedWEBGL\"](mode,HEAP32,firsts>>2,HEAP32,counts>>2,HEAP32,instanceCounts>>2,drawcount)}Module[\"_emscripten_glMultiDrawArraysInstancedWEBGL\"]=_emscripten_glMultiDrawArraysInstancedWEBGL;_emscripten_glMultiDrawArraysInstancedWEBGL.sig=\"viiiii\";function _emscripten_glMultiDrawElements(mode,counts,type,offsets,drawcount){GLctx.multiDrawWebgl[\"multiDrawElementsWEBGL\"](mode,HEAP32,counts>>2,type,HEAP32,offsets>>2,drawcount)}Module[\"_emscripten_glMultiDrawElements\"]=_emscripten_glMultiDrawElements;_emscripten_glMultiDrawElements.sig=\"viiiii\";function _emscripten_glMultiDrawElementsANGLE(mode,counts,type,offsets,drawcount){GLctx.multiDrawWebgl[\"multiDrawElementsWEBGL\"](mode,HEAP32,counts>>2,type,HEAP32,offsets>>2,drawcount)}Module[\"_emscripten_glMultiDrawElementsANGLE\"]=_emscripten_glMultiDrawElementsANGLE;_emscripten_glMultiDrawElementsANGLE.sig=\"viiiii\";function _emscripten_glMultiDrawElementsWEBGL(mode,counts,type,offsets,drawcount){GLctx.multiDrawWebgl[\"multiDrawElementsWEBGL\"](mode,HEAP32,counts>>2,type,HEAP32,offsets>>2,drawcount)}Module[\"_emscripten_glMultiDrawElementsWEBGL\"]=_emscripten_glMultiDrawElementsWEBGL;_emscripten_glMultiDrawElementsWEBGL.sig=\"viiiii\";function _emscripten_glMultiDrawElementsInstancedANGLE(mode,counts,type,offsets,instanceCounts,drawcount){GLctx.multiDrawWebgl[\"multiDrawElementsInstancedWEBGL\"](mode,HEAP32,counts>>2,type,HEAP32,offsets>>2,HEAP32,instanceCounts>>2,drawcount)}Module[\"_emscripten_glMultiDrawElementsInstancedANGLE\"]=_emscripten_glMultiDrawElementsInstancedANGLE;_emscripten_glMultiDrawElementsInstancedANGLE.sig=\"viiiiii\";function _emscripten_glMultiDrawElementsInstancedWEBGL(mode,counts,type,offsets,instanceCounts,drawcount){GLctx.multiDrawWebgl[\"multiDrawElementsInstancedWEBGL\"](mode,HEAP32,counts>>2,type,HEAP32,offsets>>2,HEAP32,instanceCounts>>2,drawcount)}Module[\"_emscripten_glMultiDrawElementsInstancedWEBGL\"]=_emscripten_glMultiDrawElementsInstancedWEBGL;_emscripten_glMultiDrawElementsInstancedWEBGL.sig=\"viiiiii\";function _emscripten_glClearDepth(x0){GLctx[\"clearDepth\"](x0)}Module[\"_emscripten_glClearDepth\"]=_emscripten_glClearDepth;_emscripten_glClearDepth.sig=\"vi\";function _emscripten_glDepthRange(x0,x1){GLctx[\"depthRange\"](x0,x1)}Module[\"_emscripten_glDepthRange\"]=_emscripten_glDepthRange;_emscripten_glDepthRange.sig=\"vii\";function writeGLArray(arr,dst,dstLength,heapType){var len=arr.length;var writeLength=dstLength<len?dstLength:len;var heap=heapType?HEAPF32:HEAP32;for(var i=0;i<writeLength;++i){heap[(dst>>2)+i]=arr[i]}return len}Module[\"writeGLArray\"]=writeGLArray;function _emscripten_webgl_init_context_attributes(attributes){var a=attributes>>2;for(var i=0;i<56>>2;++i){HEAP32[a+i]=0}HEAP32[a+(0>>2)]=HEAP32[a+(4>>2)]=HEAP32[a+(12>>2)]=HEAP32[a+(16>>2)]=HEAP32[a+(32>>2)]=HEAP32[a+(40>>2)]=1}Module[\"_emscripten_webgl_init_context_attributes\"]=_emscripten_webgl_init_context_attributes;var __emscripten_webgl_power_preferences=[\"default\",\"low-power\",\"high-performance\"];Module[\"__emscripten_webgl_power_preferences\"]=__emscripten_webgl_power_preferences;function _emscripten_webgl_do_create_context(target,attributes){var a=attributes>>2;var powerPreference=HEAP32[a+(24>>2)];var contextAttributes={\"alpha\":!!HEAP32[a+(0>>2)],\"depth\":!!HEAP32[a+(4>>2)],\"stencil\":!!HEAP32[a+(8>>2)],\"antialias\":!!HEAP32[a+(12>>2)],\"premultipliedAlpha\":!!HEAP32[a+(16>>2)],\"preserveDrawingBuffer\":!!HEAP32[a+(20>>2)],\"powerPreference\":__emscripten_webgl_power_preferences[powerPreference],\"failIfMajorPerformanceCaveat\":!!HEAP32[a+(28>>2)],majorVersion:HEAP32[a+(32>>2)],minorVersion:HEAP32[a+(36>>2)],enableExtensionsByDefault:HEAP32[a+(40>>2)],explicitSwapControl:HEAP32[a+(44>>2)],proxyContextToMainThread:HEAP32[a+(48>>2)],renderViaOffscreenBackBuffer:HEAP32[a+(52>>2)]};var canvas=findCanvasEventTarget(target);if(!canvas){return 0}if(contextAttributes.explicitSwapControl){return 0}var contextHandle=GL.createContext(canvas,contextAttributes);return contextHandle}Module[\"_emscripten_webgl_do_create_context\"]=_emscripten_webgl_do_create_context;_emscripten_webgl_do_create_context.sig=\"iii\";function _emscripten_webgl_create_context(a0,a1){return _emscripten_webgl_do_create_context(a0,a1)}Module[\"_emscripten_webgl_create_context\"]=_emscripten_webgl_create_context;_emscripten_webgl_create_context.sig=\"iii\";function _emscripten_webgl_do_get_current_context(){return GL.currentContext?GL.currentContext.handle:0}Module[\"_emscripten_webgl_do_get_current_context\"]=_emscripten_webgl_do_get_current_context;_emscripten_webgl_do_get_current_context.sig=\"i\";function _emscripten_webgl_get_current_context(){return _emscripten_webgl_do_get_current_context()}Module[\"_emscripten_webgl_get_current_context\"]=_emscripten_webgl_get_current_context;_emscripten_webgl_get_current_context.sig=\"i\";function _emscripten_webgl_do_commit_frame(){if(!GL.currentContext||!GL.currentContext.GLctx){return-3}if(!GL.currentContext.attributes.explicitSwapControl){return-3}return 0}Module[\"_emscripten_webgl_do_commit_frame\"]=_emscripten_webgl_do_commit_frame;_emscripten_webgl_do_commit_frame.sig=\"i\";function _emscripten_webgl_commit_frame(){return _emscripten_webgl_do_commit_frame()}Module[\"_emscripten_webgl_commit_frame\"]=_emscripten_webgl_commit_frame;_emscripten_webgl_commit_frame.sig=\"i\";function _emscripten_webgl_make_context_current(contextHandle){var success=GL.makeContextCurrent(contextHandle);return success?0:-5}Module[\"_emscripten_webgl_make_context_current\"]=_emscripten_webgl_make_context_current;function _emscripten_webgl_get_drawing_buffer_size(contextHandle,width,height){var GLContext=GL.getContext(contextHandle);if(!GLContext||!GLContext.GLctx||!width||!height){return-5}HEAP32[width>>2]=GLContext.GLctx.drawingBufferWidth;HEAP32[height>>2]=GLContext.GLctx.drawingBufferHeight;return 0}Module[\"_emscripten_webgl_get_drawing_buffer_size\"]=_emscripten_webgl_get_drawing_buffer_size;_emscripten_webgl_get_drawing_buffer_size.sig=\"iiii\";function _emscripten_webgl_get_context_attributes(c,a){if(!a)return-5;c=GL.contexts[c];if(!c)return-3;var t=c.GLctx;if(!t)return-3;t=t.getContextAttributes();HEAP32[a>>2]=t.alpha;HEAP32[a+4>>2]=t.depth;HEAP32[a+8>>2]=t.stencil;HEAP32[a+12>>2]=t.antialias;HEAP32[a+16>>2]=t.premultipliedAlpha;HEAP32[a+20>>2]=t.preserveDrawingBuffer;var power=t[\"powerPreference\"]&&__emscripten_webgl_power_preferences.indexOf(t[\"powerPreference\"]);HEAP32[a+24>>2]=power;HEAP32[a+28>>2]=t.failIfMajorPerformanceCaveat;HEAP32[a+32>>2]=c.version;HEAP32[a+36>>2]=0;HEAP32[a+40>>2]=c.attributes.enableExtensionsByDefault;return 0}Module[\"_emscripten_webgl_get_context_attributes\"]=_emscripten_webgl_get_context_attributes;_emscripten_webgl_get_context_attributes.sig=\"iii\";function _emscripten_webgl_destroy_context(contextHandle){if(GL.currentContext==contextHandle)GL.currentContext=0;GL.deleteContext(contextHandle)}Module[\"_emscripten_webgl_destroy_context\"]=_emscripten_webgl_destroy_context;_emscripten_webgl_destroy_context.sig=\"vi\";function _emscripten_webgl_destroy_context_before_on_calling_thread(contextHandle){if(_emscripten_webgl_get_current_context()==contextHandle)_emscripten_webgl_make_context_current(0)}Module[\"_emscripten_webgl_destroy_context_before_on_calling_thread\"]=_emscripten_webgl_destroy_context_before_on_calling_thread;function _emscripten_webgl_enable_extension(contextHandle,extension){var context=GL.getContext(contextHandle);var extString=UTF8ToString(extension);if(extString.indexOf(\"GL_\")==0)extString=extString.substr(3);if(extString==\"ANGLE_instanced_arrays\")__webgl_enable_ANGLE_instanced_arrays(GLctx);if(extString==\"OES_vertex_array_object\")__webgl_enable_OES_vertex_array_object(GLctx);if(extString==\"WEBGL_draw_buffers\")__webgl_enable_WEBGL_draw_buffers(GLctx);if(extString==\"WEBGL_multi_draw\")__webgl_enable_WEBGL_multi_draw(GLctx);var ext=context.GLctx.getExtension(extString);return!!ext}Module[\"_emscripten_webgl_enable_extension\"]=_emscripten_webgl_enable_extension;_emscripten_webgl_enable_extension.sig=\"iii\";function _emscripten_supports_offscreencanvas(){return 0}Module[\"_emscripten_supports_offscreencanvas\"]=_emscripten_supports_offscreencanvas;function __registerWebGlEventCallback(target,userData,useCapture,callbackfunc,eventTypeId,eventTypeString,targetThread){var webGlEventHandlerFunc=function(ev){var e=ev||event;if(wasmTable.get(callbackfunc)(eventTypeId,0,userData))e.preventDefault()};var eventHandler={target:findEventTarget(target),eventTypeString:eventTypeString,callbackfunc:callbackfunc,handlerFunc:webGlEventHandlerFunc,useCapture:useCapture};JSEvents.registerOrRemoveHandler(eventHandler)}Module[\"__registerWebGlEventCallback\"]=__registerWebGlEventCallback;function _emscripten_set_webglcontextlost_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){__registerWebGlEventCallback(target,userData,useCapture,callbackfunc,31,\"webglcontextlost\",targetThread);return 0}Module[\"_emscripten_set_webglcontextlost_callback_on_thread\"]=_emscripten_set_webglcontextlost_callback_on_thread;_emscripten_set_webglcontextlost_callback_on_thread.sig=\"iiiiii\";function _emscripten_set_webglcontextrestored_callback_on_thread(target,userData,useCapture,callbackfunc,targetThread){__registerWebGlEventCallback(target,userData,useCapture,callbackfunc,32,\"webglcontextrestored\",targetThread);return 0}Module[\"_emscripten_set_webglcontextrestored_callback_on_thread\"]=_emscripten_set_webglcontextrestored_callback_on_thread;_emscripten_set_webglcontextrestored_callback_on_thread.sig=\"iiiiii\";function _emscripten_is_webgl_context_lost(contextHandle){return!GL.contexts[contextHandle]||GL.contexts[contextHandle].GLctx.isContextLost()}Module[\"_emscripten_is_webgl_context_lost\"]=_emscripten_is_webgl_context_lost;_emscripten_is_webgl_context_lost.sig=\"ii\";function _emscripten_webgl_get_supported_extensions(){return stringToNewUTF8(GLctx.getSupportedExtensions().join(\" \"))}Module[\"_emscripten_webgl_get_supported_extensions\"]=_emscripten_webgl_get_supported_extensions;_emscripten_webgl_get_supported_extensions.sig=\"i\";function _emscripten_webgl_get_program_parameter_d(program,param){return GLctx.getProgramParameter(GL.programs[program],param)}Module[\"_emscripten_webgl_get_program_parameter_d\"]=_emscripten_webgl_get_program_parameter_d;_emscripten_webgl_get_program_parameter_d.sig=\"fii\";function _emscripten_webgl_get_program_info_log_utf8(program){return stringToNewUTF8(GLctx.getProgramInfoLog(GL.programs[program]))}Module[\"_emscripten_webgl_get_program_info_log_utf8\"]=_emscripten_webgl_get_program_info_log_utf8;_emscripten_webgl_get_program_info_log_utf8.sig=\"ii\";function _emscripten_webgl_get_shader_parameter_d(shader,param){return GLctx.getShaderParameter(GL.shaders[shader],param)}Module[\"_emscripten_webgl_get_shader_parameter_d\"]=_emscripten_webgl_get_shader_parameter_d;_emscripten_webgl_get_shader_parameter_d.sig=\"fii\";function _emscripten_webgl_get_shader_info_log_utf8(shader){return stringToNewUTF8(GLctx.getShaderInfoLog(GL.shaders[shader]))}Module[\"_emscripten_webgl_get_shader_info_log_utf8\"]=_emscripten_webgl_get_shader_info_log_utf8;_emscripten_webgl_get_shader_info_log_utf8.sig=\"ii\";function _emscripten_webgl_get_shader_source_utf8(shader){return stringToNewUTF8(GLctx.getShaderSource(GL.shaders[shader]))}Module[\"_emscripten_webgl_get_shader_source_utf8\"]=_emscripten_webgl_get_shader_source_utf8;_emscripten_webgl_get_shader_source_utf8.sig=\"ii\";function _emscripten_webgl_get_vertex_attrib_d(index,param){return GLctx.getVertexAttrib(index,param)}Module[\"_emscripten_webgl_get_vertex_attrib_d\"]=_emscripten_webgl_get_vertex_attrib_d;_emscripten_webgl_get_vertex_attrib_d.sig=\"iii\";function _emscripten_webgl_get_vertex_attrib_o(index,param){var obj=GLctx.getVertexAttrib(index,param);return obj&&obj.name}Module[\"_emscripten_webgl_get_vertex_attrib_o\"]=_emscripten_webgl_get_vertex_attrib_o;_emscripten_webgl_get_vertex_attrib_o.sig=\"iii\";function _emscripten_webgl_get_vertex_attrib_v(index,param,dst,dstLength,dstType){return writeGLArray(GLctx.getVertexAttrib(index,param),dst,dstLength,dstType)}Module[\"_emscripten_webgl_get_vertex_attrib_v\"]=_emscripten_webgl_get_vertex_attrib_v;_emscripten_webgl_get_vertex_attrib_v.sig=\"iiiiii\";function _emscripten_webgl_get_uniform_d(program,location){return GLctx.getUniform(GL.programs[program],GL.uniforms[location])}Module[\"_emscripten_webgl_get_uniform_d\"]=_emscripten_webgl_get_uniform_d;_emscripten_webgl_get_uniform_d.sig=\"fii\";function _emscripten_webgl_get_uniform_v(program,location,dst,dstLength,dstType){return writeGLArray(GLctx.getUniform(GL.programs[program],GL.uniforms[location]),dst,dstLength,dstType)}Module[\"_emscripten_webgl_get_uniform_v\"]=_emscripten_webgl_get_uniform_v;_emscripten_webgl_get_uniform_v.sig=\"iiiiii\";function _emscripten_webgl_get_parameter_v(param,dst,dstLength,dstType){return writeGLArray(GLctx.getParameter(param),dst,dstLength,dstType)}Module[\"_emscripten_webgl_get_parameter_v\"]=_emscripten_webgl_get_parameter_v;_emscripten_webgl_get_parameter_v.sig=\"iiiii\";function _emscripten_webgl_get_parameter_d(param){return GLctx.getParameter(param)}Module[\"_emscripten_webgl_get_parameter_d\"]=_emscripten_webgl_get_parameter_d;_emscripten_webgl_get_parameter_d.sig=\"fi\";function _emscripten_webgl_get_parameter_o(param){var obj=GLctx.getParameter(param);return obj&&obj.name}Module[\"_emscripten_webgl_get_parameter_o\"]=_emscripten_webgl_get_parameter_o;_emscripten_webgl_get_parameter_o.sig=\"ii\";function _emscripten_webgl_get_parameter_utf8(param){return stringToNewUTF8(GLctx.getParameter(param))}Module[\"_emscripten_webgl_get_parameter_utf8\"]=_emscripten_webgl_get_parameter_utf8;_emscripten_webgl_get_parameter_utf8.sig=\"ii\";function _emscripten_webgl_get_parameter_i64v(param,dst){writeI53ToI64(dst,GLctx.getParameter(param))}Module[\"_emscripten_webgl_get_parameter_i64v\"]=_emscripten_webgl_get_parameter_i64v;_emscripten_webgl_get_parameter_i64v.sig=\"vii\";function _SDL_GetTicks(){return Date.now()-SDL.startTime|0}Module[\"_SDL_GetTicks\"]=_SDL_GetTicks;_SDL_GetTicks.sig=\"i\";function _SDL_LockSurface(surf){var surfData=SDL.surfaces[surf];surfData.locked++;if(surfData.locked>1)return 0;if(!surfData.buffer){surfData.buffer=_malloc(surfData.width*surfData.height*4);HEAP32[surf+20>>2]=surfData.buffer}HEAP32[surf+20>>2]=surfData.buffer;if(surf==SDL.screen&&Module.screenIsReadOnly&&surfData.image)return 0;if(SDL.defaults.discardOnLock){if(!surfData.image){surfData.image=surfData.ctx.createImageData(surfData.width,surfData.height)}if(!SDL.defaults.opaqueFrontBuffer)return}else{surfData.image=surfData.ctx.getImageData(0,0,surfData.width,surfData.height)}if(surf==SDL.screen&&SDL.defaults.opaqueFrontBuffer){var data=surfData.image.data;var num=data.length;for(var i=0;i<num/4;i++){data[i*4+3]=255}}if(SDL.defaults.copyOnLock&&!SDL.defaults.discardOnLock){if(surfData.isFlagSet(2097152)){throw\"CopyOnLock is not supported for SDL_LockSurface with SDL_HWPALETTE flag set\"+(new Error).stack}else{HEAPU8.set(surfData.image.data,surfData.buffer)}}return 0}Module[\"_SDL_LockSurface\"]=_SDL_LockSurface;_SDL_LockSurface.sig=\"ii\";function SDL_ttfContext(){return SDL.ttfContext}Module[\"SDL_ttfContext\"]=SDL_ttfContext;function SDL_audio(){return SDL.audio}Module[\"SDL_audio\"]=SDL_audio;var SDL={defaults:{width:320,height:200,copyOnLock:true,discardOnLock:false,opaqueFrontBuffer:true},version:null,surfaces:{},canvasPool:[],events:[],fonts:[null],audios:[null],rwops:[null],music:{audio:null,volume:1},mixerFrequency:22050,mixerFormat:32784,mixerNumChannels:2,mixerChunkSize:1024,channelMinimumNumber:0,GL:false,glAttributes:{0:3,1:3,2:2,3:0,4:0,5:1,6:16,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:1,16:0,17:0,18:0},keyboardState:null,keyboardMap:{},canRequestFullscreen:false,isRequestingFullscreen:false,textInput:false,startTime:null,initFlags:0,buttonState:0,modState:0,DOMButtons:[0,0,0],DOMEventToSDLEvent:{},TOUCH_DEFAULT_ID:0,eventHandler:null,eventHandlerContext:null,eventHandlerTemp:0,keyCodes:{16:1249,17:1248,18:1250,20:1081,33:1099,34:1102,35:1101,36:1098,37:1104,38:1106,39:1103,40:1105,44:316,45:1097,46:127,91:1251,93:1125,96:1122,97:1113,98:1114,99:1115,100:1116,101:1117,102:1118,103:1119,104:1120,105:1121,106:1109,107:1111,109:1110,110:1123,111:1108,112:1082,113:1083,114:1084,115:1085,116:1086,117:1087,118:1088,119:1089,120:1090,121:1091,122:1092,123:1093,124:1128,125:1129,126:1130,127:1131,128:1132,129:1133,130:1134,131:1135,132:1136,133:1137,134:1138,135:1139,144:1107,160:94,161:33,162:34,163:35,164:36,165:37,166:38,167:95,168:40,169:41,170:42,171:43,172:124,173:45,174:123,175:125,176:126,181:127,182:129,183:128,188:44,190:46,191:47,192:96,219:91,220:92,221:93,222:39,224:1251},scanCodes:{8:42,9:43,13:40,27:41,32:44,35:204,39:53,44:54,46:55,47:56,48:39,49:30,50:31,51:32,52:33,53:34,54:35,55:36,56:37,57:38,58:203,59:51,61:46,91:47,92:49,93:48,96:52,97:4,98:5,99:6,100:7,101:8,102:9,103:10,104:11,105:12,106:13,107:14,108:15,109:16,110:17,111:18,112:19,113:20,114:21,115:22,116:23,117:24,118:25,119:26,120:27,121:28,122:29,127:76,305:224,308:226,316:70},loadRect:function(rect){return{x:HEAP32[rect+0>>2],y:HEAP32[rect+4>>2],w:HEAP32[rect+8>>2],h:HEAP32[rect+12>>2]}},updateRect:function(rect,r){HEAP32[rect>>2]=r.x;HEAP32[rect+4>>2]=r.y;HEAP32[rect+8>>2]=r.w;HEAP32[rect+12>>2]=r.h},intersectionOfRects:function(first,second){var leftX=Math.max(first.x,second.x);var leftY=Math.max(first.y,second.y);var rightX=Math.min(first.x+first.w,second.x+second.w);var rightY=Math.min(first.y+first.h,second.y+second.h);return{x:leftX,y:leftY,w:Math.max(leftX,rightX)-leftX,h:Math.max(leftY,rightY)-leftY}},checkPixelFormat:function(fmt){},loadColorToCSSRGB:function(color){var rgba=HEAP32[color>>2];return\"rgb(\"+(rgba&255)+\",\"+(rgba>>8&255)+\",\"+(rgba>>16&255)+\")\"},loadColorToCSSRGBA:function(color){var rgba=HEAP32[color>>2];return\"rgba(\"+(rgba&255)+\",\"+(rgba>>8&255)+\",\"+(rgba>>16&255)+\",\"+(rgba>>24&255)/255+\")\"},translateColorToCSSRGBA:function(rgba){return\"rgba(\"+(rgba&255)+\",\"+(rgba>>8&255)+\",\"+(rgba>>16&255)+\",\"+(rgba>>>24)/255+\")\"},translateRGBAToCSSRGBA:function(r,g,b,a){return\"rgba(\"+(r&255)+\",\"+(g&255)+\",\"+(b&255)+\",\"+(a&255)/255+\")\"},translateRGBAToColor:function(r,g,b,a){return r|g<<8|b<<16|a<<24},makeSurface:function(width,height,flags,usePageCanvas,source,rmask,gmask,bmask,amask){flags=flags||0;var is_SDL_HWSURFACE=flags&1;var is_SDL_HWPALETTE=flags&2097152;var is_SDL_OPENGL=flags&67108864;var surf=_malloc(60);var pixelFormat=_malloc(44);var bpp=is_SDL_HWPALETTE?1:4;var buffer=0;if(!is_SDL_HWSURFACE&&!is_SDL_OPENGL){buffer=_malloc(width*height*4)}HEAP32[surf>>2]=flags;HEAP32[surf+4>>2]=pixelFormat;HEAP32[surf+8>>2]=width;HEAP32[surf+12>>2]=height;HEAP32[surf+16>>2]=width*bpp;HEAP32[surf+20>>2]=buffer;HEAP32[surf+36>>2]=0;HEAP32[surf+40>>2]=0;HEAP32[surf+44>>2]=Module[\"canvas\"].width;HEAP32[surf+48>>2]=Module[\"canvas\"].height;HEAP32[surf+56>>2]=1;HEAP32[pixelFormat>>2]=-2042224636;HEAP32[pixelFormat+4>>2]=0;HEAP8[pixelFormat+8>>0]=bpp*8;HEAP8[pixelFormat+9>>0]=bpp;HEAP32[pixelFormat+12>>2]=rmask||255;HEAP32[pixelFormat+16>>2]=gmask||65280;HEAP32[pixelFormat+20>>2]=bmask||16711680;HEAP32[pixelFormat+24>>2]=amask||4278190080;SDL.GL=SDL.GL||is_SDL_OPENGL;var canvas;if(!usePageCanvas){if(SDL.canvasPool.length>0){canvas=SDL.canvasPool.pop()}else{canvas=document.createElement(\"canvas\")}canvas.width=width;canvas.height=height}else{canvas=Module[\"canvas\"]}var webGLContextAttributes={antialias:SDL.glAttributes[13]!=0&&SDL.glAttributes[14]>1,depth:SDL.glAttributes[6]>0,stencil:SDL.glAttributes[7]>0,alpha:SDL.glAttributes[3]>0};var ctx=Browser.createContext(canvas,is_SDL_OPENGL,usePageCanvas,webGLContextAttributes);SDL.surfaces[surf]={width:width,height:height,canvas:canvas,ctx:ctx,surf:surf,buffer:buffer,pixelFormat:pixelFormat,alpha:255,flags:flags,locked:0,usePageCanvas:usePageCanvas,source:source,isFlagSet:function(flag){return flags&flag}};return surf},copyIndexedColorData:function(surfData,rX,rY,rW,rH){if(!surfData.colors){return}var fullWidth=Module[\"canvas\"].width;var fullHeight=Module[\"canvas\"].height;var startX=rX||0;var startY=rY||0;var endX=(rW||fullWidth-startX)+startX;var endY=(rH||fullHeight-startY)+startY;var buffer=surfData.buffer;if(!surfData.image.data32){surfData.image.data32=new Uint32Array(surfData.image.data.buffer)}var data32=surfData.image.data32;var colors32=surfData.colors32;for(var y=startY;y<endY;++y){var base=y*fullWidth;for(var x=startX;x<endX;++x){data32[base+x]=colors32[HEAPU8[buffer+base+x>>0]]}}},freeSurface:function(surf){var refcountPointer=surf+56;var refcount=HEAP32[refcountPointer>>2];if(refcount>1){HEAP32[refcountPointer>>2]=refcount-1;return}var info=SDL.surfaces[surf];if(!info.usePageCanvas&&info.canvas)SDL.canvasPool.push(info.canvas);if(info.buffer)_free(info.buffer);_free(info.pixelFormat);_free(surf);SDL.surfaces[surf]=null;if(surf===SDL.screen){SDL.screen=null}},blitSurface:function(src,srcrect,dst,dstrect,scale){var srcData=SDL.surfaces[src];var dstData=SDL.surfaces[dst];var sr,dr;if(srcrect){sr=SDL.loadRect(srcrect)}else{sr={x:0,y:0,w:srcData.width,h:srcData.height}}if(dstrect){dr=SDL.loadRect(dstrect)}else{dr={x:0,y:0,w:srcData.width,h:srcData.height}}if(dstData.clipRect){var widthScale=!scale||sr.w===0?1:sr.w/dr.w;var heightScale=!scale||sr.h===0?1:sr.h/dr.h;dr=SDL.intersectionOfRects(dstData.clipRect,dr);sr.w=dr.w*widthScale;sr.h=dr.h*heightScale;if(dstrect){SDL.updateRect(dstrect,dr)}}var blitw,blith;if(scale){blitw=dr.w;blith=dr.h}else{blitw=sr.w;blith=sr.h}if(sr.w===0||sr.h===0||blitw===0||blith===0){return 0}var oldAlpha=dstData.ctx.globalAlpha;dstData.ctx.globalAlpha=srcData.alpha/255;dstData.ctx.drawImage(srcData.canvas,sr.x,sr.y,sr.w,sr.h,dr.x,dr.y,blitw,blith);dstData.ctx.globalAlpha=oldAlpha;if(dst!=SDL.screen){warnOnce(\"WARNING: copying canvas data to memory for compatibility\");_SDL_LockSurface(dst);dstData.locked--}return 0},downFingers:{},savedKeydown:null,receiveEvent:function(event){function unpressAllPressedKeys(){for(var code in SDL.keyboardMap){SDL.events.push({type:\"keyup\",keyCode:SDL.keyboardMap[code]})}}switch(event.type){case\"touchstart\":case\"touchmove\":{event.preventDefault();var touches=[];if(event.type===\"touchstart\"){for(var i=0;i<event.touches.length;i++){var touch=event.touches[i];if(SDL.downFingers[touch.identifier]!=true){SDL.downFingers[touch.identifier]=true;touches.push(touch)}}}else{touches=event.touches}var firstTouch=touches[0];if(firstTouch){if(event.type==\"touchstart\"){SDL.DOMButtons[0]=1}var mouseEventType;switch(event.type){case\"touchstart\":mouseEventType=\"mousedown\";break;case\"touchmove\":mouseEventType=\"mousemove\";break}var mouseEvent={type:mouseEventType,button:0,pageX:firstTouch.clientX,pageY:firstTouch.clientY};SDL.events.push(mouseEvent)}for(var i=0;i<touches.length;i++){var touch=touches[i];SDL.events.push({type:event.type,touch:touch})}break}case\"touchend\":{event.preventDefault();for(var i=0;i<event.changedTouches.length;i++){var touch=event.changedTouches[i];if(SDL.downFingers[touch.identifier]===true){delete SDL.downFingers[touch.identifier]}}var mouseEvent={type:\"mouseup\",button:0,pageX:event.changedTouches[0].clientX,pageY:event.changedTouches[0].clientY};SDL.DOMButtons[0]=0;SDL.events.push(mouseEvent);for(var i=0;i<event.changedTouches.length;i++){var touch=event.changedTouches[i];SDL.events.push({type:\"touchend\",touch:touch})}break}case\"DOMMouseScroll\":case\"mousewheel\":case\"wheel\":var delta=-Browser.getMouseWheelDelta(event);delta=delta==0?0:delta>0?Math.max(delta,1):Math.min(delta,-1);var button=delta>0?3:4;SDL.events.push({type:\"mousedown\",button:button,pageX:event.pageX,pageY:event.pageY});SDL.events.push({type:\"mouseup\",button:button,pageX:event.pageX,pageY:event.pageY});SDL.events.push({type:\"wheel\",deltaX:0,deltaY:delta});event.preventDefault();break;case\"mousemove\":if(SDL.DOMButtons[0]===1){SDL.events.push({type:\"touchmove\",touch:{identifier:0,deviceID:-1,pageX:event.pageX,pageY:event.pageY}})}if(Browser.pointerLock){if(\"mozMovementX\"in event){event[\"movementX\"]=event[\"mozMovementX\"];event[\"movementY\"]=event[\"mozMovementY\"]}if(event[\"movementX\"]==0&&event[\"movementY\"]==0){event.preventDefault();return}}case\"keydown\":case\"keyup\":case\"keypress\":case\"mousedown\":case\"mouseup\":if(event.type!==\"keydown\"||!SDL_unicode()&&!SDL.textInput||(event.keyCode===8||event.keyCode===9)){event.preventDefault()}if(event.type==\"mousedown\"){SDL.DOMButtons[event.button]=1;SDL.events.push({type:\"touchstart\",touch:{identifier:0,deviceID:-1,pageX:event.pageX,pageY:event.pageY}})}else if(event.type==\"mouseup\"){if(!SDL.DOMButtons[event.button]){return}SDL.events.push({type:\"touchend\",touch:{identifier:0,deviceID:-1,pageX:event.pageX,pageY:event.pageY}});SDL.DOMButtons[event.button]=0}if(event.type===\"keydown\"||event.type===\"mousedown\"){SDL.canRequestFullscreen=true}else if(event.type===\"keyup\"||event.type===\"mouseup\"){if(SDL.isRequestingFullscreen){Module[\"requestFullscreen\"](true,true);SDL.isRequestingFullscreen=false}SDL.canRequestFullscreen=false}if(event.type===\"keypress\"&&SDL.savedKeydown){SDL.savedKeydown.keypressCharCode=event.charCode;SDL.savedKeydown=null}else if(event.type===\"keydown\"){SDL.savedKeydown=event}if(event.type!==\"keypress\"||SDL.textInput){SDL.events.push(event)}break;case\"mouseout\":for(var i=0;i<3;i++){if(SDL.DOMButtons[i]){SDL.events.push({type:\"mouseup\",button:i,pageX:event.pageX,pageY:event.pageY});SDL.DOMButtons[i]=0}}event.preventDefault();break;case\"focus\":SDL.events.push(event);event.preventDefault();break;case\"blur\":SDL.events.push(event);unpressAllPressedKeys();event.preventDefault();break;case\"visibilitychange\":SDL.events.push({type:\"visibilitychange\",visible:!document.hidden});unpressAllPressedKeys();event.preventDefault();break;case\"unload\":if(Browser.mainLoop.runner){SDL.events.push(event);Browser.mainLoop.runner()}return;case\"resize\":SDL.events.push(event);if(event.preventDefault){event.preventDefault()}break}if(SDL.events.length>=1e4){err(\"SDL event queue full, dropping events\");SDL.events=SDL.events.slice(0,1e4)}SDL.flushEventsToHandler();return},lookupKeyCodeForEvent:function(event){var code=event.keyCode;if(code>=65&&code<=90){code+=32}else{code=SDL.keyCodes[event.keyCode]||event.keyCode;if(event.location===2&&code>=(224|1<<10)&&code<=(227|1<<10)){code+=4}}return code},handleEvent:function(event){if(event.handled)return;event.handled=true;switch(event.type){case\"touchstart\":case\"touchend\":case\"touchmove\":{Browser.calculateMouseEvent(event);break}case\"keydown\":case\"keyup\":{var down=event.type===\"keydown\";var code=SDL.lookupKeyCodeForEvent(event);HEAP8[SDL.keyboardState+code>>0]=down;SDL.modState=(HEAP8[SDL.keyboardState+1248>>0]?64:0)|(HEAP8[SDL.keyboardState+1249>>0]?1:0)|(HEAP8[SDL.keyboardState+1250>>0]?256:0)|(HEAP8[SDL.keyboardState+1252>>0]?128:0)|(HEAP8[SDL.keyboardState+1253>>0]?2:0)|(HEAP8[SDL.keyboardState+1254>>0]?512:0);if(down){SDL.keyboardMap[code]=event.keyCode}else{delete SDL.keyboardMap[code]}break}case\"mousedown\":case\"mouseup\":if(event.type==\"mousedown\"){SDL.buttonState|=1<<event.button}else if(event.type==\"mouseup\"){SDL.buttonState&=~(1<<event.button)}case\"mousemove\":{Browser.calculateMouseEvent(event);break}}},flushEventsToHandler:function(){if(!SDL.eventHandler)return;while(SDL.pollEvent(SDL.eventHandlerTemp)){wasmTable.get(SDL.eventHandler)(SDL.eventHandlerContext,SDL.eventHandlerTemp)}},pollEvent:function(ptr){if(SDL.initFlags&512&&SDL.joystickEventState){SDL.queryJoysticks()}if(ptr){while(SDL.events.length>0){if(SDL.makeCEvent(SDL.events.shift(),ptr)!==false)return 1}return 0}else{return SDL.events.length>0}},makeCEvent:function(event,ptr){if(typeof event===\"number\"){_memcpy(ptr,event,28);_free(event);return}SDL.handleEvent(event);switch(event.type){case\"keydown\":case\"keyup\":{var down=event.type===\"keydown\";var key=SDL.lookupKeyCodeForEvent(event);var scan;if(key>=1024){scan=key-1024}else{scan=SDL.scanCodes[key]||key}HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];HEAP8[ptr+8>>0]=down?1:0;HEAP8[ptr+9>>0]=0;HEAP32[ptr+12>>2]=scan;HEAP32[ptr+16>>2]=key;HEAP16[ptr+20>>1]=SDL.modState;HEAP32[ptr+24>>2]=event.keypressCharCode||key;break}case\"keypress\":{HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];var cStr=intArrayFromString(String.fromCharCode(event.charCode));for(var i=0;i<cStr.length;++i){HEAP8[ptr+(8+i)>>0]=cStr[i]}break}case\"mousedown\":case\"mouseup\":case\"mousemove\":{if(event.type!=\"mousemove\"){var down=event.type===\"mousedown\";HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];HEAP32[ptr+4>>2]=0;HEAP32[ptr+8>>2]=0;HEAP32[ptr+12>>2]=0;HEAP8[ptr+16>>0]=event.button+1;HEAP8[ptr+17>>0]=down?1:0;HEAP32[ptr+20>>2]=Browser.mouseX;HEAP32[ptr+24>>2]=Browser.mouseY}else{HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];HEAP32[ptr+4>>2]=0;HEAP32[ptr+8>>2]=0;HEAP32[ptr+12>>2]=0;HEAP32[ptr+16>>2]=SDL.buttonState;HEAP32[ptr+20>>2]=Browser.mouseX;HEAP32[ptr+24>>2]=Browser.mouseY;HEAP32[ptr+28>>2]=Browser.mouseMovementX;HEAP32[ptr+32>>2]=Browser.mouseMovementY}break}case\"wheel\":{HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];HEAP32[ptr+16>>2]=event.deltaX;HEAP32[ptr+20>>2]=event.deltaY;break}case\"touchstart\":case\"touchend\":case\"touchmove\":{var touch=event.touch;if(!Browser.touches[touch.identifier])break;var w=Module[\"canvas\"].width;var h=Module[\"canvas\"].height;var x=Browser.touches[touch.identifier].x/w;var y=Browser.touches[touch.identifier].y/h;var lx=Browser.lastTouches[touch.identifier].x/w;var ly=Browser.lastTouches[touch.identifier].y/h;var dx=x-lx;var dy=y-ly;if(touch[\"deviceID\"]===undefined)touch.deviceID=SDL.TOUCH_DEFAULT_ID;if(dx===0&&dy===0&&event.type===\"touchmove\")return false;HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];HEAP32[ptr+4>>2]=_SDL_GetTicks();tempI64=[touch.deviceID>>>0,(tempDouble=touch.deviceID,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[ptr+8>>2]=tempI64[0],HEAP32[ptr+12>>2]=tempI64[1];tempI64=[touch.identifier>>>0,(tempDouble=touch.identifier,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[ptr+16>>2]=tempI64[0],HEAP32[ptr+20>>2]=tempI64[1];HEAPF32[ptr+24>>2]=x;HEAPF32[ptr+28>>2]=y;HEAPF32[ptr+32>>2]=dx;HEAPF32[ptr+36>>2]=dy;if(touch.force!==undefined){HEAPF32[ptr+40>>2]=touch.force}else{HEAPF32[ptr+40>>2]=event.type==\"touchend\"?0:1}break}case\"unload\":{HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];break}case\"resize\":{HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];HEAP32[ptr+4>>2]=event.w;HEAP32[ptr+8>>2]=event.h;break}case\"joystick_button_up\":case\"joystick_button_down\":{var state=event.type===\"joystick_button_up\"?0:1;HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];HEAP8[ptr+4>>0]=event.index;HEAP8[ptr+5>>0]=event.button;HEAP8[ptr+6>>0]=state;break}case\"joystick_axis_motion\":{HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];HEAP8[ptr+4>>0]=event.index;HEAP8[ptr+5>>0]=event.axis;HEAP32[ptr+8>>2]=SDL.joystickAxisValueConversion(event.value);break}case\"focus\":{var SDL_WINDOWEVENT_FOCUS_GAINED=12;HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];HEAP32[ptr+4>>2]=0;HEAP8[ptr+8>>0]=SDL_WINDOWEVENT_FOCUS_GAINED;break}case\"blur\":{var SDL_WINDOWEVENT_FOCUS_LOST=13;HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];HEAP32[ptr+4>>2]=0;HEAP8[ptr+8>>0]=SDL_WINDOWEVENT_FOCUS_LOST;break}case\"visibilitychange\":{var SDL_WINDOWEVENT_SHOWN=1;var SDL_WINDOWEVENT_HIDDEN=2;var visibilityEventID=event.visible?SDL_WINDOWEVENT_SHOWN:SDL_WINDOWEVENT_HIDDEN;HEAP32[ptr>>2]=SDL.DOMEventToSDLEvent[event.type];HEAP32[ptr+4>>2]=0;HEAP8[ptr+8>>0]=visibilityEventID;break}default:throw\"Unhandled SDL event: \"+event.type}},makeFontString:function(height,fontName){if(fontName.charAt(0)!=\"'\"&&fontName.charAt(0)!='\"'){fontName='\"'+fontName+'\"'}return height+\"px \"+fontName+\", serif\"},estimateTextWidth:function(fontData,text){var h=fontData.size;var fontString=SDL.makeFontString(h,fontData.name);var tempCtx=SDL_ttfContext();tempCtx.font=fontString;var ret=tempCtx.measureText(text).width|0;return ret},allocateChannels:function(num){if(SDL.numChannels&&SDL.numChannels>=num&&num!=0)return;SDL.numChannels=num;SDL.channels=[];for(var i=0;i<num;i++){SDL.channels[i]={audio:null,volume:1}}},setGetVolume:function(info,volume){if(!info)return 0;var ret=info.volume*128;if(volume!=-1){info.volume=Math.min(Math.max(volume,0),128)/128;if(info.audio){try{info.audio.volume=info.volume;if(info.audio.webAudioGainNode)info.audio.webAudioGainNode[\"gain\"][\"value\"]=info.volume}catch(e){err(\"setGetVolume failed to set audio volume: \"+e)}}}return ret},setPannerPosition:function(info,x,y,z){if(!info)return;if(info.audio){if(info.audio.webAudioPannerNode){info.audio.webAudioPannerNode[\"setPosition\"](x,y,z)}}},playWebAudio:function(audio){if(!audio)return;if(audio.webAudioNode)return;if(!SDL.webAudioAvailable())return;try{var webAudio=audio.resource.webAudio;audio.paused=false;if(!webAudio.decodedBuffer){if(webAudio.onDecodeComplete===undefined)abort(\"Cannot play back audio object that was not loaded\");webAudio.onDecodeComplete.push(function(){if(!audio.paused)SDL.playWebAudio(audio)});return}audio.webAudioNode=SDL.audioContext[\"createBufferSource\"]();audio.webAudioNode[\"buffer\"]=webAudio.decodedBuffer;audio.webAudioNode[\"loop\"]=audio.loop;audio.webAudioNode[\"onended\"]=function(){audio[\"onended\"]()};audio.webAudioPannerNode=SDL.audioContext[\"createPanner\"]();audio.webAudioPannerNode[\"setPosition\"](0,0,-.5);audio.webAudioPannerNode[\"panningModel\"]=\"equalpower\";audio.webAudioGainNode=SDL.audioContext[\"createGain\"]();audio.webAudioGainNode[\"gain\"][\"value\"]=audio.volume;audio.webAudioNode[\"connect\"](audio.webAudioPannerNode);audio.webAudioPannerNode[\"connect\"](audio.webAudioGainNode);audio.webAudioGainNode[\"connect\"](SDL.audioContext[\"destination\"]);audio.webAudioNode[\"start\"](0,audio.currentPosition);audio.startTime=SDL.audioContext[\"currentTime\"]-audio.currentPosition}catch(e){err(\"playWebAudio failed: \"+e)}},pauseWebAudio:function(audio){if(!audio)return;if(audio.webAudioNode){try{audio.currentPosition=(SDL.audioContext[\"currentTime\"]-audio.startTime)%audio.resource.webAudio.decodedBuffer.duration;audio.webAudioNode[\"onended\"]=undefined;audio.webAudioNode.stop(0);audio.webAudioNode=undefined}catch(e){err(\"pauseWebAudio failed: \"+e)}}audio.paused=true},openAudioContext:function(){if(!SDL.audioContext){if(typeof AudioContext!==\"undefined\")SDL.audioContext=new AudioContext;else if(typeof webkitAudioContext!==\"undefined\")SDL.audioContext=new webkitAudioContext}},webAudioAvailable:function(){return!!SDL.audioContext},fillWebAudioBufferFromHeap:function(heapPtr,sizeSamplesPerChannel,dstAudioBuffer){var audio=SDL_audio();var numChannels=audio.channels;for(var c=0;c<numChannels;++c){var channelData=dstAudioBuffer[\"getChannelData\"](c);if(channelData.length!=sizeSamplesPerChannel){throw\"Web Audio output buffer length mismatch! Destination size: \"+channelData.length+\" samples vs expected \"+sizeSamplesPerChannel+\" samples!\"}if(audio.format==32784){for(var j=0;j<sizeSamplesPerChannel;++j){channelData[j]=HEAP16[heapPtr+(j*numChannels+c)*2>>1]/32768}}else if(audio.format==8){for(var j=0;j<sizeSamplesPerChannel;++j){var v=HEAP8[heapPtr+(j*numChannels+c)>>0];channelData[j]=(v>=0?v-128:v+128)/128}}else if(audio.format==33056){for(var j=0;j<sizeSamplesPerChannel;++j){channelData[j]=HEAPF32[heapPtr+(j*numChannels+c)*4>>2]}}else{throw\"Invalid SDL audio format \"+audio.format+\"!\"}}},debugSurface:function(surfData){console.log(\"dumping surface \"+[surfData.surf,surfData.source,surfData.width,surfData.height]);var image=surfData.ctx.getImageData(0,0,surfData.width,surfData.height);var data=image.data;var num=Math.min(surfData.width,surfData.height);for(var i=0;i<num;i++){console.log(\"   diagonal \"+i+\":\"+[data[i*surfData.width*4+i*4+0],data[i*surfData.width*4+i*4+1],data[i*surfData.width*4+i*4+2],data[i*surfData.width*4+i*4+3]])}},joystickEventState:1,lastJoystickState:{},joystickNamePool:{},recordJoystickState:function(joystick,state){var buttons=new Array(state.buttons.length);for(var i=0;i<state.buttons.length;i++){buttons[i]=SDL.getJoystickButtonState(state.buttons[i])}SDL.lastJoystickState[joystick]={buttons:buttons,axes:state.axes.slice(0),timestamp:state.timestamp,index:state.index,id:state.id}},getJoystickButtonState:function(button){if(typeof button===\"object\"){return button[\"pressed\"]}else{return button>0}},queryJoysticks:function(){for(var joystick in SDL.lastJoystickState){var state=SDL.getGamepad(joystick-1);var prevState=SDL.lastJoystickState[joystick];if(typeof state===\"undefined\")return;if(state===null)return;if(typeof state.timestamp!==\"number\"||state.timestamp!==prevState.timestamp||!state.timestamp){var i;for(i=0;i<state.buttons.length;i++){var buttonState=SDL.getJoystickButtonState(state.buttons[i]);if(buttonState!==prevState.buttons[i]){SDL.events.push({type:buttonState?\"joystick_button_down\":\"joystick_button_up\",joystick:joystick,index:joystick-1,button:i})}}for(i=0;i<state.axes.length;i++){if(state.axes[i]!==prevState.axes[i]){SDL.events.push({type:\"joystick_axis_motion\",joystick:joystick,index:joystick-1,axis:i,value:state.axes[i]})}}SDL.recordJoystickState(joystick,state)}}},joystickAxisValueConversion:function(value){value=Math.min(1,Math.max(value,-1));return Math.ceil((value+1)*32767.5-32768)},getGamepads:function(){var fcn=navigator.getGamepads||navigator.webkitGamepads||navigator.mozGamepads||navigator.gamepads||navigator.webkitGetGamepads;if(fcn!==undefined){return fcn.apply(navigator)}else{return[]}},getGamepad:function(deviceIndex){var gamepads=SDL.getGamepads();if(gamepads.length>deviceIndex&&deviceIndex>=0){return gamepads[deviceIndex]}return null}};Module[\"SDL\"]=SDL;function SDL_unicode(){return SDL.unicode}Module[\"SDL_unicode\"]=SDL_unicode;function _SDL_Linked_Version(){if(SDL.version===null){SDL.version=_malloc(3);HEAP8[SDL.version+0>>0]=1;HEAP8[SDL.version+1>>0]=3;HEAP8[SDL.version+2>>0]=0}return SDL.version}Module[\"_SDL_Linked_Version\"]=_SDL_Linked_Version;_SDL_Linked_Version.sig=\"i\";function _SDL_Init(initFlags){SDL.startTime=Date.now();SDL.initFlags=initFlags;if(!Module[\"doNotCaptureKeyboard\"]){var keyboardListeningElement=Module[\"keyboardListeningElement\"]||document;keyboardListeningElement.addEventListener(\"keydown\",SDL.receiveEvent);keyboardListeningElement.addEventListener(\"keyup\",SDL.receiveEvent);keyboardListeningElement.addEventListener(\"keypress\",SDL.receiveEvent);window.addEventListener(\"focus\",SDL.receiveEvent);window.addEventListener(\"blur\",SDL.receiveEvent);document.addEventListener(\"visibilitychange\",SDL.receiveEvent)}window.addEventListener(\"unload\",SDL.receiveEvent);SDL.keyboardState=_malloc(65536);_memset(SDL.keyboardState,0,65536);SDL.DOMEventToSDLEvent[\"keydown\"]=768;SDL.DOMEventToSDLEvent[\"keyup\"]=769;SDL.DOMEventToSDLEvent[\"keypress\"]=771;SDL.DOMEventToSDLEvent[\"mousedown\"]=1025;SDL.DOMEventToSDLEvent[\"mouseup\"]=1026;SDL.DOMEventToSDLEvent[\"mousemove\"]=1024;SDL.DOMEventToSDLEvent[\"wheel\"]=1027;SDL.DOMEventToSDLEvent[\"touchstart\"]=1792;SDL.DOMEventToSDLEvent[\"touchend\"]=1793;SDL.DOMEventToSDLEvent[\"touchmove\"]=1794;SDL.DOMEventToSDLEvent[\"unload\"]=256;SDL.DOMEventToSDLEvent[\"resize\"]=28673;SDL.DOMEventToSDLEvent[\"visibilitychange\"]=512;SDL.DOMEventToSDLEvent[\"focus\"]=512;SDL.DOMEventToSDLEvent[\"blur\"]=512;SDL.DOMEventToSDLEvent[\"joystick_axis_motion\"]=1536;SDL.DOMEventToSDLEvent[\"joystick_button_down\"]=1539;SDL.DOMEventToSDLEvent[\"joystick_button_up\"]=1540;return 0}Module[\"_SDL_Init\"]=_SDL_Init;_SDL_Init.sig=\"ii\";function _SDL_WasInit(){if(SDL.startTime===null){_SDL_Init()}return 1}Module[\"_SDL_WasInit\"]=_SDL_WasInit;_SDL_WasInit.sig=\"i\";function _SDL_GetVideoInfo(){var ret=_malloc(5*4);HEAP32[ret+0>>2]=0;HEAP32[ret+4>>2]=0;HEAP32[ret+8>>2]=0;HEAP32[ret+12>>2]=Module[\"canvas\"].width;HEAP32[ret+16>>2]=Module[\"canvas\"].height;return ret}Module[\"_SDL_GetVideoInfo\"]=_SDL_GetVideoInfo;_SDL_GetVideoInfo.sig=\"i\";function _SDL_ListModes(format,flags){return-1}Module[\"_SDL_ListModes\"]=_SDL_ListModes;function _SDL_VideoModeOK(width,height,depth,flags){return depth}Module[\"_SDL_VideoModeOK\"]=_SDL_VideoModeOK;function _SDL_VideoDriverName(buf,max_size){if(SDL.startTime===null){return 0}var driverName=[101,109,115,99,114,105,112,116,101,110,95,115,100,108,95,100,114,105,118,101,114];var index=0;var size=driverName.length;if(max_size<=size){size=max_size-1}while(index<size){var value=driverName[index];HEAP8[buf+index>>0]=value;index++}HEAP8[buf+index>>0]=0;return buf}Module[\"_SDL_VideoDriverName\"]=_SDL_VideoDriverName;_SDL_VideoDriverName.sig=\"iii\";function _SDL_AudioDriverName(buf,max_size){return _SDL_VideoDriverName(buf,max_size)}Module[\"_SDL_AudioDriverName\"]=_SDL_AudioDriverName;function _SDL_SetVideoMode(width,height,depth,flags){[\"touchstart\",\"touchend\",\"touchmove\",\"mousedown\",\"mouseup\",\"mousemove\",\"DOMMouseScroll\",\"mousewheel\",\"wheel\",\"mouseout\"].forEach(function(event){Module[\"canvas\"].addEventListener(event,SDL.receiveEvent,true)});var canvas=Module[\"canvas\"];if(width==0&&height==0){width=canvas.width;height=canvas.height}if(!SDL.addedResizeListener){SDL.addedResizeListener=true;Browser.resizeListeners.push(function(w,h){if(!SDL.settingVideoMode){SDL.receiveEvent({type:\"resize\",w:w,h:h})}})}SDL.settingVideoMode=true;Browser.setCanvasSize(width,height);SDL.settingVideoMode=false;if(SDL.screen){SDL.freeSurface(SDL.screen);assert(!SDL.screen)}if(SDL.GL)flags=flags|67108864;SDL.screen=SDL.makeSurface(width,height,flags,true,\"screen\");return SDL.screen}Module[\"_SDL_SetVideoMode\"]=_SDL_SetVideoMode;_SDL_SetVideoMode.sig=\"iiiii\";function _SDL_GetVideoSurface(){return SDL.screen}Module[\"_SDL_GetVideoSurface\"]=_SDL_GetVideoSurface;_SDL_GetVideoSurface.sig=\"i\";function _SDL_AudioQuit(){for(var i=0;i<SDL.numChannels;++i){if(SDL.channels[i].audio){SDL.channels[i].audio.pause();SDL.channels[i].audio=undefined}}if(SDL.music.audio)SDL.music.audio.pause();SDL.music.audio=undefined}Module[\"_SDL_AudioQuit\"]=_SDL_AudioQuit;_SDL_AudioQuit.sig=\"v\";function _SDL_VideoQuit(){out(\"SDL_VideoQuit called (and ignored)\")}Module[\"_SDL_VideoQuit\"]=_SDL_VideoQuit;function _SDL_QuitSubSystem(flags){out(\"SDL_QuitSubSystem called (and ignored)\")}Module[\"_SDL_QuitSubSystem\"]=_SDL_QuitSubSystem;function _SDL_Quit(){_SDL_AudioQuit();out(\"SDL_Quit called (and ignored)\")}Module[\"_SDL_Quit\"]=_SDL_Quit;function _SDL_UnlockSurface(surf){assert(!SDL.GL);var surfData=SDL.surfaces[surf];if(!surfData.locked||--surfData.locked>0){return}if(surfData.isFlagSet(2097152)){SDL.copyIndexedColorData(surfData)}else if(!surfData.colors){var data=surfData.image.data;var buffer=surfData.buffer;assert(buffer%4==0,\"Invalid buffer offset: \"+buffer);var src=buffer>>2;var dst=0;var isScreen=surf==SDL.screen;var num;if(typeof CanvasPixelArray!==\"undefined\"&&data instanceof CanvasPixelArray){num=data.length;while(dst<num){var val=HEAP32[src];data[dst]=val&255;data[dst+1]=val>>8&255;data[dst+2]=val>>16&255;data[dst+3]=isScreen?255:val>>24&255;src++;dst+=4}}else{var data32=new Uint32Array(data.buffer);if(isScreen&&SDL.defaults.opaqueFrontBuffer){num=data32.length;data32.set(HEAP32.subarray(src,src+num));var data8=new Uint8Array(data.buffer);var i=3;var j=i+4*num;if(num%8==0){while(i<j){data8[i]=255;i=i+4|0;data8[i]=255;i=i+4|0;data8[i]=255;i=i+4|0;data8[i]=255;i=i+4|0;data8[i]=255;i=i+4|0;data8[i]=255;i=i+4|0;data8[i]=255;i=i+4|0;data8[i]=255;i=i+4|0}}else{while(i<j){data8[i]=255;i=i+4|0}}}else{data32.set(HEAP32.subarray(src,src+data32.length))}}}else{var width=Module[\"canvas\"].width;var height=Module[\"canvas\"].height;var s=surfData.buffer;var data=surfData.image.data;var colors=surfData.colors;for(var y=0;y<height;y++){var base=y*width*4;for(var x=0;x<width;x++){var val=HEAPU8[s++>>0]*4;var start=base+x*4;data[start]=colors[val];data[start+1]=colors[val+1];data[start+2]=colors[val+2]}s+=width*3}}surfData.ctx.putImageData(surfData.image,0,0)}Module[\"_SDL_UnlockSurface\"]=_SDL_UnlockSurface;_SDL_UnlockSurface.sig=\"vi\";function _SDL_Flip(surf){}Module[\"_SDL_Flip\"]=_SDL_Flip;function _SDL_UpdateRect(surf,x,y,w,h){}Module[\"_SDL_UpdateRect\"]=_SDL_UpdateRect;function _SDL_UpdateRects(surf,numrects,rects){}Module[\"_SDL_UpdateRects\"]=_SDL_UpdateRects;function _SDL_Delay(delay){if(!ENVIRONMENT_IS_WORKER)abort(\"SDL_Delay called on the main thread! Potential infinite loop, quitting. (consider building with async support like ASYNCIFY)\");var now=Date.now();while(Date.now()-now<delay){}}Module[\"_SDL_Delay\"]=_SDL_Delay;function _SDL_WM_SetCaption(title,icon){if(title&&typeof setWindowTitle!==\"undefined\"){setWindowTitle(UTF8ToString(title))}icon=icon&&UTF8ToString(icon)}Module[\"_SDL_WM_SetCaption\"]=_SDL_WM_SetCaption;_SDL_WM_SetCaption.sig=\"vii\";function _SDL_EnableKeyRepeat(delay,interval){}Module[\"_SDL_EnableKeyRepeat\"]=_SDL_EnableKeyRepeat;function _SDL_GetKeyboardState(numKeys){if(numKeys){HEAP32[numKeys>>2]=65536}return SDL.keyboardState}Module[\"_SDL_GetKeyboardState\"]=_SDL_GetKeyboardState;_SDL_GetKeyboardState.sig=\"ii\";function _SDL_GetKeyState(){return _SDL_GetKeyboardState()}Module[\"_SDL_GetKeyState\"]=_SDL_GetKeyState;function _SDL_GetKeyName(key){if(!SDL.keyName){SDL.keyName=allocate(intArrayFromString(\"unknown key\"),ALLOC_NORMAL)}return SDL.keyName}Module[\"_SDL_GetKeyName\"]=_SDL_GetKeyName;_SDL_GetKeyName.sig=\"ii\";function _SDL_GetModState(){return SDL.modState}Module[\"_SDL_GetModState\"]=_SDL_GetModState;_SDL_GetModState.sig=\"i\";function _SDL_GetMouseState(x,y){if(x)HEAP32[x>>2]=Browser.mouseX;if(y)HEAP32[y>>2]=Browser.mouseY;return SDL.buttonState}Module[\"_SDL_GetMouseState\"]=_SDL_GetMouseState;_SDL_GetMouseState.sig=\"iii\";function _SDL_WarpMouse(x,y){return}Module[\"_SDL_WarpMouse\"]=_SDL_WarpMouse;_SDL_WarpMouse.sig=\"vii\";function _SDL_ShowCursor(toggle){switch(toggle){case 0:if(Browser.isFullscreen){Module[\"canvas\"].requestPointerLock();return 0}else{return 1}break;case 1:Module[\"canvas\"].exitPointerLock();return 1;break;case-1:return!Browser.pointerLock;break;default:console.log(\"SDL_ShowCursor called with unknown toggle parameter value: \"+toggle+\".\");break}}Module[\"_SDL_ShowCursor\"]=_SDL_ShowCursor;_SDL_ShowCursor.sig=\"ii\";function _SDL_GetError(){if(!SDL.errorMessage){SDL.errorMessage=allocate(intArrayFromString(\"unknown SDL-emscripten error\"),ALLOC_NORMAL)}return SDL.errorMessage}Module[\"_SDL_GetError\"]=_SDL_GetError;_SDL_GetError.sig=\"i\";function _SDL_SetError(){}Module[\"_SDL_SetError\"]=_SDL_SetError;function _SDL_malloc(size){return _malloc(size)}Module[\"_SDL_malloc\"]=_SDL_malloc;_SDL_malloc.sig=\"ii\";function _SDL_free(ptr){_free(ptr)}Module[\"_SDL_free\"]=_SDL_free;_SDL_free.sig=\"vi\";function _SDL_CreateRGBSurface(flags,width,height,depth,rmask,gmask,bmask,amask){return SDL.makeSurface(width,height,flags,false,\"CreateRGBSurface\",rmask,gmask,bmask,amask)}Module[\"_SDL_CreateRGBSurface\"]=_SDL_CreateRGBSurface;_SDL_CreateRGBSurface.sig=\"iiiiiiiii\";function _SDL_CreateRGBSurfaceFrom(pixels,width,height,depth,pitch,rmask,gmask,bmask,amask){var surf=SDL.makeSurface(width,height,0,false,\"CreateRGBSurfaceFrom\",rmask,gmask,bmask,amask);if(depth!==32){console.log(\"TODO: Partially unimplemented SDL_CreateRGBSurfaceFrom called!\");return surf}var data=SDL.surfaces[surf];var image=data.ctx.createImageData(width,height);var pitchOfDst=width*4;for(var row=0;row<height;++row){var baseOfSrc=row*pitch;var baseOfDst=row*pitchOfDst;for(var col=0;col<width*4;++col){image.data[baseOfDst+col]=HEAPU8[pixels+(baseOfDst+col)>>0]}}data.ctx.putImageData(image,0,0);return surf}Module[\"_SDL_CreateRGBSurfaceFrom\"]=_SDL_CreateRGBSurfaceFrom;_SDL_CreateRGBSurfaceFrom.sig=\"iiiiiiiiii\";function _SDL_ConvertSurface(surf,format,flags){if(format){SDL.checkPixelFormat(format)}var oldData=SDL.surfaces[surf];var ret=SDL.makeSurface(oldData.width,oldData.height,oldData.flags,false,\"copy:\"+oldData.source);var newData=SDL.surfaces[ret];newData.ctx.globalCompositeOperation=\"copy\";newData.ctx.drawImage(oldData.canvas,0,0);newData.ctx.globalCompositeOperation=oldData.ctx.globalCompositeOperation;return ret}Module[\"_SDL_ConvertSurface\"]=_SDL_ConvertSurface;_SDL_ConvertSurface.sig=\"iiii\";function _SDL_DisplayFormatAlpha(surf){return _SDL_ConvertSurface(surf)}Module[\"_SDL_DisplayFormatAlpha\"]=_SDL_DisplayFormatAlpha;function _SDL_FreeSurface(surf){if(surf)SDL.freeSurface(surf)}Module[\"_SDL_FreeSurface\"]=_SDL_FreeSurface;_SDL_FreeSurface.sig=\"vi\";function _SDL_UpperBlit(src,srcrect,dst,dstrect){return SDL.blitSurface(src,srcrect,dst,dstrect,false)}Module[\"_SDL_UpperBlit\"]=_SDL_UpperBlit;_SDL_UpperBlit.sig=\"iiiii\";function _SDL_UpperBlitScaled(src,srcrect,dst,dstrect){return SDL.blitSurface(src,srcrect,dst,dstrect,true)}Module[\"_SDL_UpperBlitScaled\"]=_SDL_UpperBlitScaled;_SDL_UpperBlitScaled.sig=\"iiiii\";function _SDL_LowerBlit(a0,a1,a2,a3){return _SDL_UpperBlit(a0,a1,a2,a3)}Module[\"_SDL_LowerBlit\"]=_SDL_LowerBlit;_SDL_LowerBlit.sig=\"iiiii\";function _SDL_LowerBlitScaled(a0,a1,a2,a3){return _SDL_UpperBlitScaled(a0,a1,a2,a3)}Module[\"_SDL_LowerBlitScaled\"]=_SDL_LowerBlitScaled;_SDL_LowerBlitScaled.sig=\"iiiii\";function _SDL_GetClipRect(surf,rect){assert(rect);var surfData=SDL.surfaces[surf];var r=surfData.clipRect||{x:0,y:0,w:surfData.width,h:surfData.height};SDL.updateRect(rect,r)}Module[\"_SDL_GetClipRect\"]=_SDL_GetClipRect;_SDL_GetClipRect.sig=\"vii\";function _SDL_SetClipRect(surf,rect){var surfData=SDL.surfaces[surf];if(rect){surfData.clipRect=SDL.intersectionOfRects({x:0,y:0,w:surfData.width,h:surfData.height},SDL.loadRect(rect))}else{delete surfData.clipRect}}Module[\"_SDL_SetClipRect\"]=_SDL_SetClipRect;_SDL_SetClipRect.sig=\"vii\";function _SDL_FillRect(surf,rect,color){var surfData=SDL.surfaces[surf];assert(!surfData.locked);if(surfData.isFlagSet(2097152)){color=surfData.colors32[color]}var r=rect?SDL.loadRect(rect):{x:0,y:0,w:surfData.width,h:surfData.height};if(surfData.clipRect){r=SDL.intersectionOfRects(surfData.clipRect,r);if(rect){SDL.updateRect(rect,r)}}surfData.ctx.save();surfData.ctx.fillStyle=SDL.translateColorToCSSRGBA(color);surfData.ctx.fillRect(r.x,r.y,r.w,r.h);surfData.ctx.restore();return 0}Module[\"_SDL_FillRect\"]=_SDL_FillRect;_SDL_FillRect.sig=\"iiii\";function _SDL_BlitSurface(src,srcrect,dst,dstrect){return SDL.blitSurface(src,srcrect,dst,dstrect,false)}Module[\"_SDL_BlitSurface\"]=_SDL_BlitSurface;_SDL_BlitSurface.sig=\"iiiii\";function _SDL_BlitScaled(src,srcrect,dst,dstrect){return SDL.blitSurface(src,srcrect,dst,dstrect,true)}Module[\"_SDL_BlitScaled\"]=_SDL_BlitScaled;_SDL_BlitScaled.sig=\"iiiii\";function _zoomSurface(src,x,y,smooth){var srcData=SDL.surfaces[src];var w=srcData.width*x;var h=srcData.height*y;var ret=SDL.makeSurface(Math.abs(w),Math.abs(h),srcData.flags,false,\"zoomSurface\");var dstData=SDL.surfaces[ret];if(x>=0&&y>=0)dstData.ctx.drawImage(srcData.canvas,0,0,w,h);else{dstData.ctx.save();dstData.ctx.scale(x<0?-1:1,y<0?-1:1);dstData.ctx.drawImage(srcData.canvas,w<0?w:0,h<0?h:0,Math.abs(w),Math.abs(h));dstData.ctx.restore()}return ret}Module[\"_zoomSurface\"]=_zoomSurface;function _rotozoomSurface(src,angle,zoom,smooth){if(angle%360===0){return _zoomSurface(src,zoom,zoom,smooth)}var srcData=SDL.surfaces[src];var w=srcData.width*zoom;var h=srcData.height*zoom;var diagonal=Math.ceil(Math.sqrt(Math.pow(w,2)+Math.pow(h,2)));var ret=SDL.makeSurface(diagonal,diagonal,srcData.flags,false,\"rotozoomSurface\");var dstData=SDL.surfaces[ret];dstData.ctx.translate(diagonal/2,diagonal/2);dstData.ctx.rotate(-angle*Math.PI/180);dstData.ctx.drawImage(srcData.canvas,-w/2,-h/2,w,h);return ret}Module[\"_rotozoomSurface\"]=_rotozoomSurface;function _SDL_SetAlpha(surf,flag,alpha){var surfData=SDL.surfaces[surf];surfData.alpha=alpha;if(!(flag&65536)){surfData.alpha=255}}Module[\"_SDL_SetAlpha\"]=_SDL_SetAlpha;_SDL_SetAlpha.sig=\"iiii\";function _SDL_SetColorKey(surf,flag,key){warnOnce(\"SDL_SetColorKey is a no-op for performance reasons\");return 0}Module[\"_SDL_SetColorKey\"]=_SDL_SetColorKey;function _SDL_PollEvent(ptr){return SDL.pollEvent(ptr)}Module[\"_SDL_PollEvent\"]=_SDL_PollEvent;_SDL_PollEvent.sig=\"ii\";function _SDL_PushEvent(ptr){var copy=_malloc(28);_memcpy(copy,ptr,28);SDL.events.push(copy);return 0}Module[\"_SDL_PushEvent\"]=_SDL_PushEvent;_SDL_PushEvent.sig=\"ii\";function _SDL_PeepEvents(events,requestedEventCount,action,from,to){switch(action){case 2:{assert(requestedEventCount==1);var index=0;var retrievedEventCount=0;while(index<SDL.events.length&&retrievedEventCount<requestedEventCount){var event=SDL.events[index];var type=SDL.DOMEventToSDLEvent[event.type];if(from<=type&&type<=to){if(SDL.makeCEvent(event,events)===false){index++}else{SDL.events.splice(index,1);retrievedEventCount++}}else{index++}}return retrievedEventCount}default:throw\"SDL_PeepEvents does not yet support that action: \"+action}}Module[\"_SDL_PeepEvents\"]=_SDL_PeepEvents;_SDL_PeepEvents.sig=\"iiiiii\";function _SDL_PumpEvents(){SDL.events.forEach(function(event){SDL.handleEvent(event)})}Module[\"_SDL_PumpEvents\"]=_SDL_PumpEvents;_SDL_PumpEvents.sig=\"v\";function _emscripten_SDL_SetEventHandler(handler,userdata){SDL.eventHandler=handler;SDL.eventHandlerContext=userdata;if(!SDL.eventHandlerTemp)SDL.eventHandlerTemp=_malloc(28)}Module[\"_emscripten_SDL_SetEventHandler\"]=_emscripten_SDL_SetEventHandler;_emscripten_SDL_SetEventHandler.sig=\"vii\";function _SDL_SetColors(surf,colors,firstColor,nColors){var surfData=SDL.surfaces[surf];if(!surfData.colors){var buffer=new ArrayBuffer(256*4);surfData.colors=new Uint8Array(buffer);surfData.colors32=new Uint32Array(buffer)}for(var i=0;i<nColors;++i){var index=(firstColor+i)*4;surfData.colors[index]=HEAPU8[colors+i*4>>0];surfData.colors[index+1]=HEAPU8[colors+(i*4+1)>>0];surfData.colors[index+2]=HEAPU8[colors+(i*4+2)>>0];surfData.colors[index+3]=255}return 1}Module[\"_SDL_SetColors\"]=_SDL_SetColors;_SDL_SetColors.sig=\"iiiii\";function _SDL_SetPalette(surf,flags,colors,firstColor,nColors){return _SDL_SetColors(surf,colors,firstColor,nColors)}Module[\"_SDL_SetPalette\"]=_SDL_SetPalette;function _SDL_MapRGB(fmt,r,g,b){SDL.checkPixelFormat(fmt);return r&255|(g&255)<<8|(b&255)<<16|4278190080}Module[\"_SDL_MapRGB\"]=_SDL_MapRGB;_SDL_MapRGB.sig=\"iiiii\";function _SDL_MapRGBA(fmt,r,g,b,a){SDL.checkPixelFormat(fmt);return r&255|(g&255)<<8|(b&255)<<16|(a&255)<<24}Module[\"_SDL_MapRGBA\"]=_SDL_MapRGBA;_SDL_MapRGBA.sig=\"iiiiii\";function _SDL_GetRGB(pixel,fmt,r,g,b){SDL.checkPixelFormat(fmt);if(r){HEAP8[r>>0]=pixel&255}if(g){HEAP8[g>>0]=pixel>>8&255}if(b){HEAP8[b>>0]=pixel>>16&255}}Module[\"_SDL_GetRGB\"]=_SDL_GetRGB;_SDL_GetRGB.sig=\"viiiii\";function _SDL_GetRGBA(pixel,fmt,r,g,b,a){SDL.checkPixelFormat(fmt);if(r){HEAP8[r>>0]=pixel&255}if(g){HEAP8[g>>0]=pixel>>8&255}if(b){HEAP8[b>>0]=pixel>>16&255}if(a){HEAP8[a>>0]=pixel>>24&255}}Module[\"_SDL_GetRGBA\"]=_SDL_GetRGBA;_SDL_GetRGBA.sig=\"viiiiii\";function _SDL_GetAppState(){var state=0;if(Browser.pointerLock){state|=1}if(document.hasFocus()){state|=2}state|=4;return state}Module[\"_SDL_GetAppState\"]=_SDL_GetAppState;_SDL_GetAppState.sig=\"i\";function _SDL_WM_GrabInput(){}Module[\"_SDL_WM_GrabInput\"]=_SDL_WM_GrabInput;function _SDL_WM_ToggleFullScreen(surf){if(Browser.exitFullscreen()){return 1}else{if(!SDL.canRequestFullscreen){return 0}SDL.isRequestingFullscreen=true;return 1}}Module[\"_SDL_WM_ToggleFullScreen\"]=_SDL_WM_ToggleFullScreen;_SDL_WM_ToggleFullScreen.sig=\"ii\";function _IMG_Init(flags){return flags}Module[\"_IMG_Init\"]=_IMG_Init;function _SDL_FreeRW(rwopsID){SDL.rwops[rwopsID]=null;while(SDL.rwops.length>0&&SDL.rwops[SDL.rwops.length-1]===null){SDL.rwops.pop()}}Module[\"_SDL_FreeRW\"]=_SDL_FreeRW;_SDL_FreeRW.sig=\"vi\";function _IMG_Load_RW(rwopsID,freeSrc){try{var cleanup=function(){if(rwops&&freeSrc)_SDL_FreeRW(rwopsID)};var addCleanup=function(func){var old=cleanup;cleanup=function added_cleanup(){old();func()}};var callStbImage=function(func,params){var x=Module[\"_malloc\"](4);var y=Module[\"_malloc\"](4);var comp=Module[\"_malloc\"](4);addCleanup(function(){Module[\"_free\"](x);Module[\"_free\"](y);Module[\"_free\"](comp);if(data)Module[\"_stbi_image_free\"](data)});var data=Module[\"_\"+func].apply(null,params.concat([x,y,comp,0]));if(!data)return null;return{rawData:true,data:data,width:HEAP32[x>>2],height:HEAP32[y>>2],size:HEAP32[x>>2]*HEAP32[y>>2]*HEAP32[comp>>2],bpp:HEAP32[comp>>2]}};var rwops=SDL.rwops[rwopsID];if(rwops===undefined){return 0}var raw;var filename=rwops.filename;if(filename===undefined){warnOnce(\"Only file names that have been preloaded are supported for IMG_Load_RW. Consider using STB_IMAGE=1 if you want synchronous image decoding (see settings.js), or package files with --use-preload-plugins\");return 0}if(!raw){filename=PATH_FS.resolve(filename);raw=Module[\"preloadedImages\"][filename];if(!raw){if(raw===null)err(\"Trying to reuse preloaded image, but freePreloadedMediaOnUse is set!\");warnOnce(\"Cannot find preloaded image \"+filename);warnOnce(\"Cannot find preloaded image \"+filename+\". Consider using STB_IMAGE=1 if you want synchronous image decoding (see settings.js), or package files with --use-preload-plugins\");return 0}else if(Module[\"freePreloadedMediaOnUse\"]){Module[\"preloadedImages\"][filename]=null}}var surf=SDL.makeSurface(raw.width,raw.height,0,false,\"load:\"+filename);var surfData=SDL.surfaces[surf];surfData.ctx.globalCompositeOperation=\"copy\";if(!raw.rawData){surfData.ctx.drawImage(raw,0,0,raw.width,raw.height,0,0,raw.width,raw.height)}else{var imageData=surfData.ctx.getImageData(0,0,surfData.width,surfData.height);if(raw.bpp==4){imageData.data.set(HEAPU8.subarray(raw.data,raw.data+raw.size))}else if(raw.bpp==3){var pixels=raw.size/3;var data=imageData.data;var sourcePtr=raw.data;var destPtr=0;for(var i=0;i<pixels;i++){data[destPtr++]=HEAPU8[sourcePtr++>>0];data[destPtr++]=HEAPU8[sourcePtr++>>0];data[destPtr++]=HEAPU8[sourcePtr++>>0];data[destPtr++]=255}}else if(raw.bpp==2){var pixels=raw.size;var data=imageData.data;var sourcePtr=raw.data;var destPtr=0;for(var i=0;i<pixels;i++){var gray=HEAPU8[sourcePtr++>>0];var alpha=HEAPU8[sourcePtr++>>0];data[destPtr++]=gray;data[destPtr++]=gray;data[destPtr++]=gray;data[destPtr++]=alpha}}else if(raw.bpp==1){var pixels=raw.size;var data=imageData.data;var sourcePtr=raw.data;var destPtr=0;for(var i=0;i<pixels;i++){var value=HEAPU8[sourcePtr++>>0];data[destPtr++]=value;data[destPtr++]=value;data[destPtr++]=value;data[destPtr++]=255}}else{err(\"cannot handle bpp \"+raw.bpp);return 0}surfData.ctx.putImageData(imageData,0,0)}surfData.ctx.globalCompositeOperation=\"source-over\";_SDL_LockSurface(surf);surfData.locked--;if(SDL.GL){surfData.canvas=surfData.ctx=null}return surf}finally{cleanup()}}Module[\"_IMG_Load_RW\"]=_IMG_Load_RW;_IMG_Load_RW.sig=\"iii\";function _SDL_RWFromFile(_name,mode){var id=SDL.rwops.length;var name=UTF8ToString(_name);SDL.rwops.push({filename:name,mimetype:Browser.getMimetype(name)});return id}Module[\"_SDL_RWFromFile\"]=_SDL_RWFromFile;_SDL_RWFromFile.sig=\"iii\";function _IMG_Load(filename){var rwops=_SDL_RWFromFile(filename);var result=_IMG_Load_RW(rwops,1);return result}Module[\"_IMG_Load\"]=_IMG_Load;_IMG_Load.sig=\"ii\";function _SDL_LoadBMP(a0){return _IMG_Load(a0)}Module[\"_SDL_LoadBMP\"]=_SDL_LoadBMP;_SDL_LoadBMP.sig=\"ii\";function _SDL_LoadBMP_RW(a0,a1){return _IMG_Load_RW(a0,a1)}Module[\"_SDL_LoadBMP_RW\"]=_SDL_LoadBMP_RW;_SDL_LoadBMP_RW.sig=\"iii\";function _IMG_Quit(){out(\"IMG_Quit called (and ignored)\")}Module[\"_IMG_Quit\"]=_IMG_Quit;function _SDL_OpenAudio(desired,obtained){try{SDL.audio={freq:HEAPU32[desired>>2],format:HEAPU16[desired+4>>1],channels:HEAPU8[desired+6>>0],samples:HEAPU16[desired+8>>1],callback:HEAPU32[desired+16>>2],userdata:HEAPU32[desired+20>>2],paused:true,timer:null};if(SDL.audio.format==8){SDL.audio.silence=128}else if(SDL.audio.format==32784){SDL.audio.silence=0}else if(SDL.audio.format==33056){SDL.audio.silence=0}else{throw\"Invalid SDL audio format \"+SDL.audio.format+\"!\"}if(SDL.audio.freq<=0){throw\"Unsupported sound frequency \"+SDL.audio.freq+\"!\"}else if(SDL.audio.freq<=22050){SDL.audio.freq=22050}else if(SDL.audio.freq<=32e3){SDL.audio.freq=32e3}else if(SDL.audio.freq<=44100){SDL.audio.freq=44100}else if(SDL.audio.freq<=48e3){SDL.audio.freq=48e3}else if(SDL.audio.freq<=96e3){SDL.audio.freq=96e3}else{throw\"Unsupported sound frequency \"+SDL.audio.freq+\"!\"}if(SDL.audio.channels==0){SDL.audio.channels=1}else if(SDL.audio.channels<0||SDL.audio.channels>32){throw\"Unsupported number of audio channels for SDL audio: \"+SDL.audio.channels+\"!\"}else if(SDL.audio.channels!=1&&SDL.audio.channels!=2){console.log(\"Warning: Using untested number of audio channels \"+SDL.audio.channels)}if(SDL.audio.samples<128||SDL.audio.samples>524288){throw\"Unsupported audio callback buffer size \"+SDL.audio.samples+\"!\"}else if((SDL.audio.samples&SDL.audio.samples-1)!=0){throw\"Audio callback buffer size \"+SDL.audio.samples+\" must be a power-of-two!\"}var totalSamples=SDL.audio.samples*SDL.audio.channels;if(SDL.audio.format==8){SDL.audio.bytesPerSample=1}else if(SDL.audio.format==32784){SDL.audio.bytesPerSample=2}else if(SDL.audio.format==33056){SDL.audio.bytesPerSample=4}else{throw\"Invalid SDL audio format \"+SDL.audio.format+\"!\"}SDL.audio.bufferSize=totalSamples*SDL.audio.bytesPerSample;SDL.audio.bufferDurationSecs=SDL.audio.bufferSize/SDL.audio.bytesPerSample/SDL.audio.channels/SDL.audio.freq;SDL.audio.bufferingDelay=50/1e3;SDL.audio.buffer=_malloc(SDL.audio.bufferSize);SDL.audio.numSimultaneouslyQueuedBuffers=Module[\"SDL_numSimultaneouslyQueuedBuffers\"]||5;SDL.audio.queueNewAudioData=function SDL_queueNewAudioData(){if(!SDL.audio)return;for(var i=0;i<SDL.audio.numSimultaneouslyQueuedBuffers;++i){var secsUntilNextPlayStart=SDL.audio.nextPlayTime-SDL.audioContext[\"currentTime\"];if(secsUntilNextPlayStart>=SDL.audio.bufferingDelay+SDL.audio.bufferDurationSecs*SDL.audio.numSimultaneouslyQueuedBuffers)return;wasmTable.get(SDL.audio.callback)(SDL.audio.userdata,SDL.audio.buffer,SDL.audio.bufferSize);SDL.audio.pushAudio(SDL.audio.buffer,SDL.audio.bufferSize)}};SDL.audio.caller=function SDL_audioCaller(){if(!SDL.audio)return;--SDL.audio.numAudioTimersPending;SDL.audio.queueNewAudioData();var secsUntilNextPlayStart=SDL.audio.nextPlayTime-SDL.audioContext[\"currentTime\"];var preemptBufferFeedSecs=SDL.audio.bufferDurationSecs/2;if(SDL.audio.numAudioTimersPending<SDL.audio.numSimultaneouslyQueuedBuffers){++SDL.audio.numAudioTimersPending;SDL.audio.timer=Browser.safeSetTimeout(SDL.audio.caller,Math.max(0,1e3*(secsUntilNextPlayStart-preemptBufferFeedSecs)));if(SDL.audio.numAudioTimersPending<SDL.audio.numSimultaneouslyQueuedBuffers){++SDL.audio.numAudioTimersPending;Browser.safeSetTimeout(SDL.audio.caller,1)}}};SDL.audio.audioOutput=new Audio;SDL.openAudioContext();if(!SDL.audioContext)throw\"Web Audio API is not available!\";autoResumeAudioContext(SDL.audioContext);SDL.audio.nextPlayTime=0;SDL.audio.pushAudio=function(ptr,sizeBytes){try{if(SDL.audio.paused)return;var sizeSamples=sizeBytes/SDL.audio.bytesPerSample;var sizeSamplesPerChannel=sizeSamples/SDL.audio.channels;if(sizeSamplesPerChannel!=SDL.audio.samples){throw\"Received mismatching audio buffer size!\"}var source=SDL.audioContext[\"createBufferSource\"]();var soundBuffer=SDL.audioContext[\"createBuffer\"](SDL.audio.channels,sizeSamplesPerChannel,SDL.audio.freq);source[\"connect\"](SDL.audioContext[\"destination\"]);SDL.fillWebAudioBufferFromHeap(ptr,sizeSamplesPerChannel,soundBuffer);source[\"buffer\"]=soundBuffer;var curtime=SDL.audioContext[\"currentTime\"];var playtime=Math.max(curtime+SDL.audio.bufferingDelay,SDL.audio.nextPlayTime);if(typeof source[\"start\"]!==\"undefined\"){source[\"start\"](playtime)}else if(typeof source[\"noteOn\"]!==\"undefined\"){source[\"noteOn\"](playtime)}SDL.audio.nextPlayTime=playtime+SDL.audio.bufferDurationSecs}catch(e){console.log(\"Web Audio API error playing back audio: \"+e.toString())}};if(obtained){HEAP32[obtained>>2]=SDL.audio.freq;HEAP16[obtained+4>>1]=SDL.audio.format;HEAP8[obtained+6>>0]=SDL.audio.channels;HEAP8[obtained+7>>0]=SDL.audio.silence;HEAP16[obtained+8>>1]=SDL.audio.samples;HEAP32[obtained+16>>2]=SDL.audio.callback;HEAP32[obtained+20>>2]=SDL.audio.userdata}SDL.allocateChannels(32)}catch(e){console.log('Initializing SDL audio threw an exception: \"'+e.toString()+'\"! Continuing without audio.');SDL.audio=null;SDL.allocateChannels(0);if(obtained){HEAP32[obtained>>2]=0;HEAP16[obtained+4>>1]=0;HEAP8[obtained+6>>0]=0;HEAP8[obtained+7>>0]=0;HEAP16[obtained+8>>1]=0;HEAP32[obtained+16>>2]=0;HEAP32[obtained+20>>2]=0}}if(!SDL.audio){return-1}return 0}Module[\"_SDL_OpenAudio\"]=_SDL_OpenAudio;_SDL_OpenAudio.sig=\"iii\";function _SDL_PauseAudio(pauseOn){if(!SDL.audio){return}if(pauseOn){if(SDL.audio.timer!==undefined){clearTimeout(SDL.audio.timer);SDL.audio.numAudioTimersPending=0;SDL.audio.timer=undefined}}else if(!SDL.audio.timer){SDL.audio.numAudioTimersPending=1;SDL.audio.timer=Browser.safeSetTimeout(SDL.audio.caller,1)}SDL.audio.paused=pauseOn}Module[\"_SDL_PauseAudio\"]=_SDL_PauseAudio;_SDL_PauseAudio.sig=\"vi\";function _SDL_CloseAudio(){if(SDL.audio){if(SDL.audio.callbackRemover){SDL.audio.callbackRemover();SDL.audio.callbackRemover=null}_SDL_PauseAudio(1);_free(SDL.audio.buffer);SDL.audio=null;SDL.allocateChannels(0)}}Module[\"_SDL_CloseAudio\"]=_SDL_CloseAudio;_SDL_CloseAudio.sig=\"v\";function _SDL_LockAudio(){}Module[\"_SDL_LockAudio\"]=_SDL_LockAudio;function _SDL_UnlockAudio(){}Module[\"_SDL_UnlockAudio\"]=_SDL_UnlockAudio;function _SDL_CreateMutex(){return 0}Module[\"_SDL_CreateMutex\"]=_SDL_CreateMutex;function _SDL_LockMutex(){}Module[\"_SDL_LockMutex\"]=_SDL_LockMutex;function _SDL_UnlockMutex(){}Module[\"_SDL_UnlockMutex\"]=_SDL_UnlockMutex;function _SDL_mutexP(){return 0}Module[\"_SDL_mutexP\"]=_SDL_mutexP;function _SDL_mutexV(){return 0}Module[\"_SDL_mutexV\"]=_SDL_mutexV;function _SDL_DestroyMutex(){}Module[\"_SDL_DestroyMutex\"]=_SDL_DestroyMutex;function _SDL_CreateCond(){return 0}Module[\"_SDL_CreateCond\"]=_SDL_CreateCond;function _SDL_CondSignal(){}Module[\"_SDL_CondSignal\"]=_SDL_CondSignal;function _SDL_CondWait(){}Module[\"_SDL_CondWait\"]=_SDL_CondWait;function _SDL_DestroyCond(){}Module[\"_SDL_DestroyCond\"]=_SDL_DestroyCond;function _SDL_StartTextInput(){SDL.textInput=true}Module[\"_SDL_StartTextInput\"]=_SDL_StartTextInput;_SDL_StartTextInput.sig=\"v\";function _SDL_StopTextInput(){SDL.textInput=false}Module[\"_SDL_StopTextInput\"]=_SDL_StopTextInput;_SDL_StopTextInput.sig=\"v\";function _Mix_Init(flags){if(!flags)return 0;return 8}Module[\"_Mix_Init\"]=_Mix_Init;function _Mix_Quit(){}Module[\"_Mix_Quit\"]=_Mix_Quit;function _Mix_OpenAudio(frequency,format,channels,chunksize){SDL.openAudioContext();autoResumeAudioContext(SDL.audioContext);SDL.allocateChannels(32);SDL.mixerFrequency=frequency;SDL.mixerFormat=format;SDL.mixerNumChannels=channels;SDL.mixerChunkSize=chunksize;return 0}Module[\"_Mix_OpenAudio\"]=_Mix_OpenAudio;_Mix_OpenAudio.sig=\"iiiii\";function _Mix_CloseAudio(){_SDL_CloseAudio()}Module[\"_Mix_CloseAudio\"]=_Mix_CloseAudio;_Mix_CloseAudio.sig=\"v\";function _Mix_AllocateChannels(num){SDL.allocateChannels(num);return num}Module[\"_Mix_AllocateChannels\"]=_Mix_AllocateChannels;_Mix_AllocateChannels.sig=\"ii\";function _Mix_ChannelFinished(func){SDL.channelFinished=func}Module[\"_Mix_ChannelFinished\"]=_Mix_ChannelFinished;_Mix_ChannelFinished.sig=\"vi\";function _Mix_Volume(channel,volume){if(channel==-1){for(var i=0;i<SDL.numChannels-1;i++){_Mix_Volume(i,volume)}return _Mix_Volume(SDL.numChannels-1,volume)}return SDL.setGetVolume(SDL.channels[channel],volume)}Module[\"_Mix_Volume\"]=_Mix_Volume;_Mix_Volume.sig=\"iii\";function _Mix_SetPanning(channel,left,right){left/=255;right/=255;SDL.setPannerPosition(SDL.channels[channel],right-left,0,.1);return 1}Module[\"_Mix_SetPanning\"]=_Mix_SetPanning;_Mix_SetPanning.sig=\"iiii\";function _Mix_LoadWAV_RW(rwopsID,freesrc){var rwops=SDL.rwops[rwopsID];if(rwops===undefined)return 0;var filename=\"\";var audio;var webAudio;var bytes;if(rwops.filename!==undefined){filename=PATH_FS.resolve(rwops.filename);var raw=Module[\"preloadedAudios\"][filename];if(!raw){if(raw===null)err(\"Trying to reuse preloaded audio, but freePreloadedMediaOnUse is set!\");if(!Module.noAudioDecoding)warnOnce(\"Cannot find preloaded audio \"+filename);try{bytes=FS.readFile(filename)}catch(e){err(\"Couldn't find file for: \"+filename);return 0}}if(Module[\"freePreloadedMediaOnUse\"]){Module[\"preloadedAudios\"][filename]=null}audio=raw}else if(rwops.bytes!==undefined){if(SDL.webAudioAvailable())bytes=HEAPU8.buffer.slice(rwops.bytes,rwops.bytes+rwops.count);else bytes=HEAPU8.subarray(rwops.bytes,rwops.bytes+rwops.count)}else{return 0}var arrayBuffer=bytes?bytes.buffer||bytes:bytes;var canPlayWithWebAudio=Module[\"SDL_canPlayWithWebAudio\"]===undefined||Module[\"SDL_canPlayWithWebAudio\"](filename,arrayBuffer);if(bytes!==undefined&&SDL.webAudioAvailable()&&canPlayWithWebAudio){audio=undefined;webAudio={};webAudio.onDecodeComplete=[];var onDecodeComplete=function(data){webAudio.decodedBuffer=data;webAudio.onDecodeComplete.forEach(function(e){e()});webAudio.onDecodeComplete=undefined};SDL.audioContext[\"decodeAudioData\"](arrayBuffer,onDecodeComplete)}else if(audio===undefined&&bytes){var blob=new Blob([bytes],{type:rwops.mimetype});var url=URL.createObjectURL(blob);audio=new Audio;audio.src=url;audio.mozAudioChannelType=\"content\"}var id=SDL.audios.length;SDL.audios.push({source:filename,audio:audio,webAudio:webAudio});return id}Module[\"_Mix_LoadWAV_RW\"]=_Mix_LoadWAV_RW;_Mix_LoadWAV_RW.sig=\"iii\";function _Mix_LoadWAV(filename){var rwops=_SDL_RWFromFile(filename);var result=_Mix_LoadWAV_RW(rwops);_SDL_FreeRW(rwops);return result}Module[\"_Mix_LoadWAV\"]=_Mix_LoadWAV;_Mix_LoadWAV.sig=\"ii\";function _Mix_QuickLoad_RAW(mem,len){var audio;var webAudio;var numSamples=len>>1;var buffer=new Float32Array(numSamples);for(var i=0;i<numSamples;++i){buffer[i]=HEAP16[mem+i*2>>1]/32768}if(SDL.webAudioAvailable()){webAudio={};webAudio.decodedBuffer=buffer}else{audio=new Audio;audio.mozAudioChannelType=\"content\";audio.numChannels=SDL.mixerNumChannels;audio.frequency=SDL.mixerFrequency}var id=SDL.audios.length;SDL.audios.push({source:\"\",audio:audio,webAudio:webAudio,buffer:buffer});return id}Module[\"_Mix_QuickLoad_RAW\"]=_Mix_QuickLoad_RAW;_Mix_QuickLoad_RAW.sig=\"iii\";function _Mix_FreeChunk(id){SDL.audios[id]=null}Module[\"_Mix_FreeChunk\"]=_Mix_FreeChunk;_Mix_FreeChunk.sig=\"vi\";function _Mix_ReserveChannels(num){SDL.channelMinimumNumber=num}Module[\"_Mix_ReserveChannels\"]=_Mix_ReserveChannels;_Mix_ReserveChannels.sig=\"ii\";function _Mix_PlayChannel(channel,id,loops){var info=SDL.audios[id];if(!info)return-1;if(!info.audio&&!info.webAudio)return-1;if(channel==-1){for(var i=SDL.channelMinimumNumber;i<SDL.numChannels;i++){if(!SDL.channels[i].audio){channel=i;break}}if(channel==-1){err(\"All \"+SDL.numChannels+\" channels in use!\");return-1}}var channelInfo=SDL.channels[channel];var audio;if(info.webAudio){audio={};audio.resource=info;audio.paused=false;audio.currentPosition=0;audio.play=function(){SDL.playWebAudio(this)};audio.pause=function(){SDL.pauseWebAudio(this)}}else{audio=info.audio.cloneNode(true);audio.numChannels=info.audio.numChannels;audio.frequency=info.audio.frequency}audio[\"onended\"]=function SDL_audio_onended(){if(channelInfo.audio==this){channelInfo.audio.paused=true;channelInfo.audio=null}if(SDL.channelFinished)wasmTable.get(SDL.channelFinished)(channel)};channelInfo.audio=audio;audio.loop=loops!=0;audio.volume=channelInfo.volume;audio.play();return channel}Module[\"_Mix_PlayChannel\"]=_Mix_PlayChannel;_Mix_PlayChannel.sig=\"iiii\";function _Mix_PlayChannelTimed(a0,a1,a2){return _Mix_PlayChannel(a0,a1,a2)}Module[\"_Mix_PlayChannelTimed\"]=_Mix_PlayChannelTimed;_Mix_PlayChannelTimed.sig=\"iiii\";function _Mix_FadingChannel(channel){return 0}Module[\"_Mix_FadingChannel\"]=_Mix_FadingChannel;function _Mix_HaltChannel(channel){function halt(channel){var info=SDL.channels[channel];if(info.audio){info.audio.pause();info.audio=null}if(SDL.channelFinished){wasmTable.get(SDL.channelFinished)(channel)}}if(channel!=-1){halt(channel)}else{for(var i=0;i<SDL.channels.length;++i)halt(i)}return 0}Module[\"_Mix_HaltChannel\"]=_Mix_HaltChannel;_Mix_HaltChannel.sig=\"ii\";function _Mix_HaltMusic(){var audio=SDL.music.audio;if(audio){audio.src=audio.src;audio.currentPosition=0;audio.pause()}SDL.music.audio=null;if(SDL.hookMusicFinished){wasmTable.get(SDL.hookMusicFinished)()}return 0}Module[\"_Mix_HaltMusic\"]=_Mix_HaltMusic;_Mix_HaltMusic.sig=\"i\";function _Mix_HookMusicFinished(func){SDL.hookMusicFinished=func;if(SDL.music.audio){SDL.music.audio[\"onended\"]=_Mix_HaltMusic}}Module[\"_Mix_HookMusicFinished\"]=_Mix_HookMusicFinished;_Mix_HookMusicFinished.sig=\"vi\";function _Mix_VolumeMusic(volume){return SDL.setGetVolume(SDL.music,volume)}Module[\"_Mix_VolumeMusic\"]=_Mix_VolumeMusic;_Mix_VolumeMusic.sig=\"ii\";function _Mix_LoadMUS_RW(a0,a1){return _Mix_LoadWAV_RW(a0,a1)}Module[\"_Mix_LoadMUS_RW\"]=_Mix_LoadMUS_RW;_Mix_LoadMUS_RW.sig=\"iii\";function _Mix_LoadMUS(filename){var rwops=_SDL_RWFromFile(filename);var result=_Mix_LoadMUS_RW(rwops);_SDL_FreeRW(rwops);return result}Module[\"_Mix_LoadMUS\"]=_Mix_LoadMUS;_Mix_LoadMUS.sig=\"ii\";function _Mix_FreeMusic(a0){return _Mix_FreeChunk(a0)}Module[\"_Mix_FreeMusic\"]=_Mix_FreeMusic;_Mix_FreeMusic.sig=\"vi\";function _Mix_PlayMusic(id,loops){if(SDL.music.audio){if(!SDL.music.audio.paused)err(\"Music is already playing. \"+SDL.music.source);SDL.music.audio.pause()}var info=SDL.audios[id];var audio;if(info.webAudio){audio={};audio.resource=info;audio.paused=false;audio.currentPosition=0;audio.play=function(){SDL.playWebAudio(this)};audio.pause=function(){SDL.pauseWebAudio(this)}}else if(info.audio){audio=info.audio}audio[\"onended\"]=function(){if(SDL.music.audio==this)_Mix_HaltMusic()};audio.loop=loops!=0&&loops!=1;audio.volume=SDL.music.volume;SDL.music.audio=audio;audio.play();return 0}Module[\"_Mix_PlayMusic\"]=_Mix_PlayMusic;_Mix_PlayMusic.sig=\"iii\";function _Mix_PauseMusic(){var audio=SDL.music.audio;if(audio)audio.pause()}Module[\"_Mix_PauseMusic\"]=_Mix_PauseMusic;_Mix_PauseMusic.sig=\"v\";function _Mix_ResumeMusic(){var audio=SDL.music.audio;if(audio)audio.play()}Module[\"_Mix_ResumeMusic\"]=_Mix_ResumeMusic;_Mix_ResumeMusic.sig=\"v\";function _Mix_FadeInMusicPos(a0,a1){return _Mix_PlayMusic(a0,a1)}Module[\"_Mix_FadeInMusicPos\"]=_Mix_FadeInMusicPos;_Mix_FadeInMusicPos.sig=\"iii\";function _Mix_FadeOutMusic(){return _Mix_HaltMusic()}Module[\"_Mix_FadeOutMusic\"]=_Mix_FadeOutMusic;_Mix_FadeOutMusic.sig=\"i\";function _Mix_PlayingMusic(){return SDL.music.audio&&!SDL.music.audio.paused?1:0}Module[\"_Mix_PlayingMusic\"]=_Mix_PlayingMusic;_Mix_PlayingMusic.sig=\"i\";function _Mix_Playing(channel){if(channel===-1){var count=0;for(var i=0;i<SDL.channels.length;i++){count+=_Mix_Playing(i)}return count}var info=SDL.channels[channel];if(info&&info.audio&&!info.audio.paused){return 1}return 0}Module[\"_Mix_Playing\"]=_Mix_Playing;_Mix_Playing.sig=\"ii\";function _Mix_Pause(channel){if(channel===-1){for(var i=0;i<SDL.channels.length;i++){_Mix_Pause(i)}return}var info=SDL.channels[channel];if(info&&info.audio){info.audio.pause()}else{}}Module[\"_Mix_Pause\"]=_Mix_Pause;_Mix_Pause.sig=\"vi\";function _Mix_Paused(channel){if(channel===-1){var pausedCount=0;for(var i=0;i<SDL.channels.length;i++){pausedCount+=_Mix_Paused(i)}return pausedCount}var info=SDL.channels[channel];if(info&&info.audio&&info.audio.paused){return 1}return 0}Module[\"_Mix_Paused\"]=_Mix_Paused;_Mix_Paused.sig=\"ii\";function _Mix_PausedMusic(){return SDL.music.audio&&SDL.music.audio.paused?1:0}Module[\"_Mix_PausedMusic\"]=_Mix_PausedMusic;_Mix_PausedMusic.sig=\"i\";function _Mix_Resume(channel){if(channel===-1){for(var i=0;i<SDL.channels.length;i++){_Mix_Resume(i)}return}var info=SDL.channels[channel];if(info&&info.audio)info.audio.play()}Module[\"_Mix_Resume\"]=_Mix_Resume;_Mix_Resume.sig=\"vi\";function _TTF_Init(){try{var offscreenCanvas=new OffscreenCanvas(0,0);SDL.ttfContext=offscreenCanvas.getContext(\"2d\")}catch(ex){var canvas=document.createElement(\"canvas\");SDL.ttfContext=canvas.getContext(\"2d\")}return 0}Module[\"_TTF_Init\"]=_TTF_Init;_TTF_Init.sig=\"i\";function _TTF_OpenFont(filename,size){filename=PATH.normalize(UTF8ToString(filename));var id=SDL.fonts.length;SDL.fonts.push({name:filename,size:size});return id}Module[\"_TTF_OpenFont\"]=_TTF_OpenFont;_TTF_OpenFont.sig=\"iii\";function _TTF_CloseFont(font){SDL.fonts[font]=null}Module[\"_TTF_CloseFont\"]=_TTF_CloseFont;_TTF_CloseFont.sig=\"vi\";function _TTF_RenderText_Solid(font,text,color){text=UTF8ToString(text)||\" \";var fontData=SDL.fonts[font];var w=SDL.estimateTextWidth(fontData,text);var h=fontData.size;color=SDL.loadColorToCSSRGB(color);var fontString=SDL.makeFontString(h,fontData.name);var surf=SDL.makeSurface(w,h,0,false,\"text:\"+text);var surfData=SDL.surfaces[surf];surfData.ctx.save();surfData.ctx.fillStyle=color;surfData.ctx.font=fontString;surfData.ctx.textBaseline=\"bottom\";surfData.ctx.fillText(text,0,h|0);surfData.ctx.restore();return surf}Module[\"_TTF_RenderText_Solid\"]=_TTF_RenderText_Solid;_TTF_RenderText_Solid.sig=\"iiii\";function _TTF_RenderText_Blended(a0,a1,a2){return _TTF_RenderText_Solid(a0,a1,a2)}Module[\"_TTF_RenderText_Blended\"]=_TTF_RenderText_Blended;_TTF_RenderText_Blended.sig=\"iiii\";function _TTF_RenderText_Shaded(a0,a1,a2){return _TTF_RenderText_Solid(a0,a1,a2)}Module[\"_TTF_RenderText_Shaded\"]=_TTF_RenderText_Shaded;_TTF_RenderText_Shaded.sig=\"iiii\";function _TTF_RenderUTF8_Solid(a0,a1,a2){return _TTF_RenderText_Solid(a0,a1,a2)}Module[\"_TTF_RenderUTF8_Solid\"]=_TTF_RenderUTF8_Solid;_TTF_RenderUTF8_Solid.sig=\"iiii\";function _TTF_SizeText(font,text,w,h){var fontData=SDL.fonts[font];if(w){HEAP32[w>>2]=SDL.estimateTextWidth(fontData,UTF8ToString(text))}if(h){HEAP32[h>>2]=fontData.size}return 0}Module[\"_TTF_SizeText\"]=_TTF_SizeText;_TTF_SizeText.sig=\"iiiii\";function _TTF_SizeUTF8(a0,a1,a2,a3){return _TTF_SizeText(a0,a1,a2,a3)}Module[\"_TTF_SizeUTF8\"]=_TTF_SizeUTF8;_TTF_SizeUTF8.sig=\"iiiii\";function _TTF_GlyphMetrics(font,ch,minx,maxx,miny,maxy,advance){var fontData=SDL.fonts[font];var width=SDL.estimateTextWidth(fontData,String.fromCharCode(ch));if(advance){HEAP32[advance>>2]=width}if(minx){HEAP32[minx>>2]=0}if(maxx){HEAP32[maxx>>2]=width}if(miny){HEAP32[miny>>2]=0}if(maxy){HEAP32[maxy>>2]=fontData.size}}Module[\"_TTF_GlyphMetrics\"]=_TTF_GlyphMetrics;_TTF_GlyphMetrics.sig=\"iiiiiiii\";function _TTF_FontAscent(font){var fontData=SDL.fonts[font];return fontData.size*.98|0}Module[\"_TTF_FontAscent\"]=_TTF_FontAscent;_TTF_FontAscent.sig=\"ii\";function _TTF_FontDescent(font){var fontData=SDL.fonts[font];return fontData.size*.02|0}Module[\"_TTF_FontDescent\"]=_TTF_FontDescent;_TTF_FontDescent.sig=\"ii\";function _TTF_FontHeight(font){var fontData=SDL.fonts[font];return fontData.size}Module[\"_TTF_FontHeight\"]=_TTF_FontHeight;_TTF_FontHeight.sig=\"ii\";function _TTF_FontLineSkip(a0){return _TTF_FontHeight(a0)}Module[\"_TTF_FontLineSkip\"]=_TTF_FontLineSkip;_TTF_FontLineSkip.sig=\"ii\";function _TTF_Quit(){out(\"TTF_Quit called (and ignored)\")}Module[\"_TTF_Quit\"]=_TTF_Quit;var SDL_gfx={drawRectangle:function(surf,x1,y1,x2,y2,action,cssColor){x1=x1<<16>>16;y1=y1<<16>>16;x2=x2<<16>>16;y2=y2<<16>>16;var surfData=SDL.surfaces[surf];assert(!surfData.locked);var x=x1<x2?x1:x2;var y=y1<y2?y1:y2;var w=Math.abs(x2-x1);var h=Math.abs(y2-y1);surfData.ctx.save();surfData.ctx[action+\"Style\"]=cssColor;surfData.ctx[action+\"Rect\"](x,y,w,h);surfData.ctx.restore()},drawLine:function(surf,x1,y1,x2,y2,cssColor){x1=x1<<16>>16;y1=y1<<16>>16;x2=x2<<16>>16;y2=y2<<16>>16;var surfData=SDL.surfaces[surf];assert(!surfData.locked);surfData.ctx.save();surfData.ctx.strokeStyle=cssColor;surfData.ctx.beginPath();surfData.ctx.moveTo(x1,y1);surfData.ctx.lineTo(x2,y2);surfData.ctx.stroke();surfData.ctx.restore()},drawEllipse:function(surf,x,y,rx,ry,action,cssColor){x=x<<16>>16;y=y<<16>>16;rx=rx<<16>>16;ry=ry<<16>>16;var surfData=SDL.surfaces[surf];assert(!surfData.locked);surfData.ctx.save();surfData.ctx.beginPath();surfData.ctx.translate(x,y);surfData.ctx.scale(rx,ry);surfData.ctx.arc(0,0,1,0,2*Math.PI);surfData.ctx.restore();surfData.ctx.save();surfData.ctx[action+\"Style\"]=cssColor;surfData.ctx[action]();surfData.ctx.restore()},translateColorToCSSRGBA:function(rgba){return\"rgba(\"+(rgba>>>24)+\",\"+(rgba>>16&255)+\",\"+(rgba>>8&255)+\",\"+(rgba&255)+\")\"}};Module[\"SDL_gfx\"]=SDL_gfx;function _boxColor(surf,x1,y1,x2,y2,color){return SDL_gfx.drawRectangle(surf,x1,y1,x2,y2,\"fill\",SDL_gfx.translateColorToCSSRGBA(color))}Module[\"_boxColor\"]=_boxColor;function _boxRGBA(surf,x1,y1,x2,y2,r,g,b,a){return SDL_gfx.drawRectangle(surf,x1,y1,x2,y2,\"fill\",SDL.translateRGBAToCSSRGBA(r,g,b,a))}Module[\"_boxRGBA\"]=_boxRGBA;function _rectangleColor(surf,x1,y1,x2,y2,color){return SDL_gfx.drawRectangle(surf,x1,y1,x2,y2,\"stroke\",SDL_gfx.translateColorToCSSRGBA(color))}Module[\"_rectangleColor\"]=_rectangleColor;function _rectangleRGBA(surf,x1,y1,x2,y2,r,g,b,a){return SDL_gfx.drawRectangle(surf,x1,y1,x2,y2,\"stroke\",SDL.translateRGBAToCSSRGBA(r,g,b,a))}Module[\"_rectangleRGBA\"]=_rectangleRGBA;function _ellipseColor(surf,x,y,rx,ry,color){return SDL_gfx.drawEllipse(surf,x,y,rx,ry,\"stroke\",SDL_gfx.translateColorToCSSRGBA(color))}Module[\"_ellipseColor\"]=_ellipseColor;function _ellipseRGBA(surf,x,y,rx,ry,r,g,b,a){return SDL_gfx.drawEllipse(surf,x,y,rx,ry,\"stroke\",SDL.translateRGBAToCSSRGBA(r,g,b,a))}Module[\"_ellipseRGBA\"]=_ellipseRGBA;function _filledEllipseColor(surf,x,y,rx,ry,color){return SDL_gfx.drawEllipse(surf,x,y,rx,ry,\"fill\",SDL_gfx.translateColorToCSSRGBA(color))}Module[\"_filledEllipseColor\"]=_filledEllipseColor;function _filledEllipseRGBA(surf,x,y,rx,ry,r,g,b,a){return SDL_gfx.drawEllipse(surf,x,y,rx,ry,\"fill\",SDL.translateRGBAToCSSRGBA(r,g,b,a))}Module[\"_filledEllipseRGBA\"]=_filledEllipseRGBA;function _lineColor(surf,x1,y1,x2,y2,color){return SDL_gfx.drawLine(surf,x1,y1,x2,y2,SDL_gfx.translateColorToCSSRGBA(color))}Module[\"_lineColor\"]=_lineColor;function _lineRGBA(surf,x1,y1,x2,y2,r,g,b,a){return SDL_gfx.drawLine(surf,x1,y1,x2,y2,SDL.translateRGBAToCSSRGBA(r,g,b,a))}Module[\"_lineRGBA\"]=_lineRGBA;function _pixelRGBA(surf,x1,y1,r,g,b,a){_boxRGBA(surf,x1,y1,x1,y1,r,g,b,a)}Module[\"_pixelRGBA\"]=_pixelRGBA;function _SDL_GL_SetAttribute(attr,value){if(!(attr in SDL.glAttributes)){abort(\"Unknown SDL GL attribute (\"+attr+\"). Please check if your SDL version is supported.\")}SDL.glAttributes[attr]=value}Module[\"_SDL_GL_SetAttribute\"]=_SDL_GL_SetAttribute;_SDL_GL_SetAttribute.sig=\"iii\";function _SDL_GL_GetAttribute(attr,value){if(!(attr in SDL.glAttributes)){abort(\"Unknown SDL GL attribute (\"+attr+\"). Please check if your SDL version is supported.\")}if(value)HEAP32[value>>2]=SDL.glAttributes[attr];return 0}Module[\"_SDL_GL_GetAttribute\"]=_SDL_GL_GetAttribute;_SDL_GL_GetAttribute.sig=\"iii\";function _SDL_GL_SwapBuffers(){if(Browser.doSwapBuffers)Browser.doSwapBuffers()}Module[\"_SDL_GL_SwapBuffers\"]=_SDL_GL_SwapBuffers;_SDL_GL_SwapBuffers.sig=\"v\";function _SDL_GL_ExtensionSupported(extension){return Module.ctx.getExtension(extension)|0}Module[\"_SDL_GL_ExtensionSupported\"]=_SDL_GL_ExtensionSupported;_SDL_GL_ExtensionSupported.sig=\"ii\";function _SDL_DestroyWindow(window){}Module[\"_SDL_DestroyWindow\"]=_SDL_DestroyWindow;function _SDL_DestroyRenderer(renderer){}Module[\"_SDL_DestroyRenderer\"]=_SDL_DestroyRenderer;function _SDL_GetWindowFlags(){}Module[\"_SDL_GetWindowFlags\"]=_SDL_GetWindowFlags;_SDL_GetWindowFlags.sig=\"iii\";function _SDL_GL_SwapWindow(window){}Module[\"_SDL_GL_SwapWindow\"]=_SDL_GL_SwapWindow;function _SDL_GL_MakeCurrent(window,context){}Module[\"_SDL_GL_MakeCurrent\"]=_SDL_GL_MakeCurrent;function _SDL_GL_DeleteContext(context){}Module[\"_SDL_GL_DeleteContext\"]=_SDL_GL_DeleteContext;function _SDL_GL_GetSwapInterval(state){if(Browser.mainLoop.timingMode==1)return Browser.mainLoop.timingValue;else return 0}Module[\"_SDL_GL_GetSwapInterval\"]=_SDL_GL_GetSwapInterval;_SDL_GL_GetSwapInterval.sig=\"ii\";function _SDL_GL_SetSwapInterval(state){_emscripten_set_main_loop_timing(1,state)}Module[\"_SDL_GL_SetSwapInterval\"]=_SDL_GL_SetSwapInterval;function _SDL_SetWindowTitle(window,title){if(title)document.title=UTF8ToString(title)}Module[\"_SDL_SetWindowTitle\"]=_SDL_SetWindowTitle;_SDL_SetWindowTitle.sig=\"vii\";function _SDL_GetWindowSize(window,width,height){var w=Module[\"canvas\"].width;var h=Module[\"canvas\"].height;if(width)HEAP32[width>>2]=w;if(height)HEAP32[height>>2]=h}Module[\"_SDL_GetWindowSize\"]=_SDL_GetWindowSize;_SDL_GetWindowSize.sig=\"viii\";function _SDL_LogSetOutputFunction(callback,userdata){}Module[\"_SDL_LogSetOutputFunction\"]=_SDL_LogSetOutputFunction;function _SDL_SetWindowFullscreen(window,fullscreen){if(Browser.isFullscreen){Module[\"canvas\"].exitFullscreen();return 1}else{return 0}}Module[\"_SDL_SetWindowFullscreen\"]=_SDL_SetWindowFullscreen;_SDL_SetWindowFullscreen.sig=\"iii\";function _SDL_ClearError(){}Module[\"_SDL_ClearError\"]=_SDL_ClearError;function _SDL_SetGamma(r,g,b){return-1}Module[\"_SDL_SetGamma\"]=_SDL_SetGamma;function _SDL_SetGammaRamp(redTable,greenTable,blueTable){return-1}Module[\"_SDL_SetGammaRamp\"]=_SDL_SetGammaRamp;function _SDL_NumJoysticks(){var count=0;var gamepads=SDL.getGamepads();for(var i=0;i<gamepads.length;i++){if(gamepads[i]!==undefined)count++}return count}Module[\"_SDL_NumJoysticks\"]=_SDL_NumJoysticks;_SDL_NumJoysticks.sig=\"i\";function _SDL_JoystickName(deviceIndex){var gamepad=SDL.getGamepad(deviceIndex);if(gamepad){var name=gamepad.id;if(SDL.joystickNamePool.hasOwnProperty(name)){return SDL.joystickNamePool[name]}return SDL.joystickNamePool[name]=allocate(intArrayFromString(name),ALLOC_NORMAL)}return 0}Module[\"_SDL_JoystickName\"]=_SDL_JoystickName;_SDL_JoystickName.sig=\"ii\";function _SDL_JoystickOpen(deviceIndex){var gamepad=SDL.getGamepad(deviceIndex);if(gamepad){var joystick=deviceIndex+1;SDL.recordJoystickState(joystick,gamepad);return joystick}return 0}Module[\"_SDL_JoystickOpen\"]=_SDL_JoystickOpen;_SDL_JoystickOpen.sig=\"ii\";function _SDL_JoystickOpened(deviceIndex){return SDL.lastJoystickState.hasOwnProperty(deviceIndex+1)?1:0}Module[\"_SDL_JoystickOpened\"]=_SDL_JoystickOpened;_SDL_JoystickOpened.sig=\"ii\";function _SDL_JoystickIndex(joystick){return joystick-1}Module[\"_SDL_JoystickIndex\"]=_SDL_JoystickIndex;function _SDL_JoystickNumAxes(joystick){var gamepad=SDL.getGamepad(joystick-1);if(gamepad){return gamepad.axes.length}return 0}Module[\"_SDL_JoystickNumAxes\"]=_SDL_JoystickNumAxes;_SDL_JoystickNumAxes.sig=\"ii\";function _SDL_JoystickNumBalls(joystick){return 0}Module[\"_SDL_JoystickNumBalls\"]=_SDL_JoystickNumBalls;function _SDL_JoystickNumHats(joystick){return 0}Module[\"_SDL_JoystickNumHats\"]=_SDL_JoystickNumHats;function _SDL_JoystickNumButtons(joystick){var gamepad=SDL.getGamepad(joystick-1);if(gamepad){return gamepad.buttons.length}return 0}Module[\"_SDL_JoystickNumButtons\"]=_SDL_JoystickNumButtons;_SDL_JoystickNumButtons.sig=\"ii\";function _SDL_JoystickUpdate(){SDL.queryJoysticks()}Module[\"_SDL_JoystickUpdate\"]=_SDL_JoystickUpdate;_SDL_JoystickUpdate.sig=\"v\";function _SDL_JoystickEventState(state){if(state<0){return SDL.joystickEventState}return SDL.joystickEventState=state}Module[\"_SDL_JoystickEventState\"]=_SDL_JoystickEventState;_SDL_JoystickEventState.sig=\"ii\";function _SDL_JoystickGetAxis(joystick,axis){var gamepad=SDL.getGamepad(joystick-1);if(gamepad&&gamepad.axes.length>axis){return SDL.joystickAxisValueConversion(gamepad.axes[axis])}return 0}Module[\"_SDL_JoystickGetAxis\"]=_SDL_JoystickGetAxis;_SDL_JoystickGetAxis.sig=\"iii\";function _SDL_JoystickGetHat(joystick,hat){return 0}Module[\"_SDL_JoystickGetHat\"]=_SDL_JoystickGetHat;function _SDL_JoystickGetBall(joystick,ball,dxptr,dyptr){return-1}Module[\"_SDL_JoystickGetBall\"]=_SDL_JoystickGetBall;function _SDL_JoystickGetButton(joystick,button){var gamepad=SDL.getGamepad(joystick-1);if(gamepad&&gamepad.buttons.length>button){return SDL.getJoystickButtonState(gamepad.buttons[button])?1:0}return 0}Module[\"_SDL_JoystickGetButton\"]=_SDL_JoystickGetButton;_SDL_JoystickGetButton.sig=\"iii\";function _SDL_JoystickClose(joystick){delete SDL.lastJoystickState[joystick]}Module[\"_SDL_JoystickClose\"]=_SDL_JoystickClose;_SDL_JoystickClose.sig=\"vi\";function _SDL_InitSubSystem(flags){return 0}Module[\"_SDL_InitSubSystem\"]=_SDL_InitSubSystem;function _SDL_RWFromConstMem(mem,size){var id=SDL.rwops.length;SDL.rwops.push({bytes:mem,count:size});return id}Module[\"_SDL_RWFromConstMem\"]=_SDL_RWFromConstMem;_SDL_RWFromConstMem.sig=\"iii\";function _SDL_RWFromMem(a0,a1){return _SDL_RWFromConstMem(a0,a1)}Module[\"_SDL_RWFromMem\"]=_SDL_RWFromMem;_SDL_RWFromMem.sig=\"iii\";function _SDL_GetNumAudioDrivers(){return 1}Module[\"_SDL_GetNumAudioDrivers\"]=_SDL_GetNumAudioDrivers;function _SDL_GetCurrentAudioDriver(){return allocate(intArrayFromString(\"Emscripten Audio\"),ALLOC_NORMAL)}Module[\"_SDL_GetCurrentAudioDriver\"]=_SDL_GetCurrentAudioDriver;function _SDL_GetAudioDriver(index){return _SDL_GetCurrentAudioDriver()}Module[\"_SDL_GetAudioDriver\"]=_SDL_GetAudioDriver;function _SDL_EnableUNICODE(on){var ret=SDL.unicode||0;SDL.unicode=on;return ret}Module[\"_SDL_EnableUNICODE\"]=_SDL_EnableUNICODE;_SDL_EnableUNICODE.sig=\"ii\";function _SDL_AddTimer(interval,callback,param){return window.setTimeout(function(){wasmTable.get(callback)(interval,param)},interval)}Module[\"_SDL_AddTimer\"]=_SDL_AddTimer;_SDL_AddTimer.sig=\"iiii\";function _SDL_RemoveTimer(id){window.clearTimeout(id);return true}Module[\"_SDL_RemoveTimer\"]=_SDL_RemoveTimer;_SDL_RemoveTimer.sig=\"ii\";function _SDL_CreateThread(){throw\"SDL threads cannot be supported in the web platform because they assume shared state. See emscripten_create_worker etc. for a message-passing concurrency model that does let you run code in another thread.\"}Module[\"_SDL_CreateThread\"]=_SDL_CreateThread;function _SDL_WaitThread(){throw\"SDL_WaitThread\"}Module[\"_SDL_WaitThread\"]=_SDL_WaitThread;function _SDL_GetThreadID(){throw\"SDL_GetThreadID\"}Module[\"_SDL_GetThreadID\"]=_SDL_GetThreadID;function _SDL_ThreadID(){return 0}Module[\"_SDL_ThreadID\"]=_SDL_ThreadID;function _SDL_AllocRW(){throw\"SDL_AllocRW: TODO\"}Module[\"_SDL_AllocRW\"]=_SDL_AllocRW;function _SDL_CondBroadcast(){throw\"SDL_CondBroadcast: TODO\"}Module[\"_SDL_CondBroadcast\"]=_SDL_CondBroadcast;function _SDL_CondWaitTimeout(){throw\"SDL_CondWaitTimeout: TODO\"}Module[\"_SDL_CondWaitTimeout\"]=_SDL_CondWaitTimeout;function _SDL_WM_IconifyWindow(){throw\"SDL_WM_IconifyWindow TODO\"}Module[\"_SDL_WM_IconifyWindow\"]=_SDL_WM_IconifyWindow;function _Mix_SetPostMix(){warnOnce(\"Mix_SetPostMix: TODO\")}Module[\"_Mix_SetPostMix\"]=_Mix_SetPostMix;function _Mix_VolumeChunk(chunk,volume){throw\"Mix_VolumeChunk: TODO\"}Module[\"_Mix_VolumeChunk\"]=_Mix_VolumeChunk;function _Mix_SetPosition(channel,angle,distance){throw\"Mix_SetPosition: TODO\"}Module[\"_Mix_SetPosition\"]=_Mix_SetPosition;function _Mix_QuerySpec(){throw\"Mix_QuerySpec: TODO\"}Module[\"_Mix_QuerySpec\"]=_Mix_QuerySpec;function _Mix_FadeInChannelTimed(){throw\"Mix_FadeInChannelTimed\"}Module[\"_Mix_FadeInChannelTimed\"]=_Mix_FadeInChannelTimed;function _Mix_FadeOutChannel(){throw\"Mix_FadeOutChannel\"}Module[\"_Mix_FadeOutChannel\"]=_Mix_FadeOutChannel;function _Mix_Linked_Version(){throw\"Mix_Linked_Version: TODO\"}Module[\"_Mix_Linked_Version\"]=_Mix_Linked_Version;function _SDL_SaveBMP_RW(){throw\"SDL_SaveBMP_RW: TODO\"}Module[\"_SDL_SaveBMP_RW\"]=_SDL_SaveBMP_RW;function _SDL_WM_SetIcon(){}Module[\"_SDL_WM_SetIcon\"]=_SDL_WM_SetIcon;function _SDL_HasRDTSC(){return 0}Module[\"_SDL_HasRDTSC\"]=_SDL_HasRDTSC;function _SDL_HasMMX(){return 0}Module[\"_SDL_HasMMX\"]=_SDL_HasMMX;function _SDL_HasMMXExt(){return 0}Module[\"_SDL_HasMMXExt\"]=_SDL_HasMMXExt;function _SDL_Has3DNow(){return 0}Module[\"_SDL_Has3DNow\"]=_SDL_Has3DNow;function _SDL_Has3DNowExt(){return 0}Module[\"_SDL_Has3DNowExt\"]=_SDL_Has3DNowExt;function _SDL_HasSSE(){return 0}Module[\"_SDL_HasSSE\"]=_SDL_HasSSE;function _SDL_HasSSE2(){return 0}Module[\"_SDL_HasSSE2\"]=_SDL_HasSSE2;function _SDL_HasAltiVec(){return 0}Module[\"_SDL_HasAltiVec\"]=_SDL_HasAltiVec;function _glutPostRedisplay(){if(GLUT.displayFunc&&!GLUT.requestedAnimationFrame){GLUT.requestedAnimationFrame=true;Browser.requestAnimationFrame(function(){GLUT.requestedAnimationFrame=false;Browser.mainLoop.runIter(function(){wasmTable.get(GLUT.displayFunc)()})})}}Module[\"_glutPostRedisplay\"]=_glutPostRedisplay;_glutPostRedisplay.sig=\"v\";var GLUT={initTime:null,idleFunc:null,displayFunc:null,keyboardFunc:null,keyboardUpFunc:null,specialFunc:null,specialUpFunc:null,reshapeFunc:null,motionFunc:null,passiveMotionFunc:null,mouseFunc:null,buttons:0,modifiers:0,initWindowWidth:256,initWindowHeight:256,initDisplayMode:18,windowX:0,windowY:0,windowWidth:0,windowHeight:0,requestedAnimationFrame:false,saveModifiers:function(event){GLUT.modifiers=0;if(event[\"shiftKey\"])GLUT.modifiers+=1;if(event[\"ctrlKey\"])GLUT.modifiers+=2;if(event[\"altKey\"])GLUT.modifiers+=4},onMousemove:function(event){var lastX=Browser.mouseX;var lastY=Browser.mouseY;Browser.calculateMouseEvent(event);var newX=Browser.mouseX;var newY=Browser.mouseY;if(newX==lastX&&newY==lastY)return;if(GLUT.buttons==0&&event.target==Module[\"canvas\"]&&GLUT.passiveMotionFunc){event.preventDefault();GLUT.saveModifiers(event);wasmTable.get(GLUT.passiveMotionFunc)(lastX,lastY)}else if(GLUT.buttons!=0&&GLUT.motionFunc){event.preventDefault();GLUT.saveModifiers(event);wasmTable.get(GLUT.motionFunc)(lastX,lastY)}},getSpecialKey:function(keycode){var key=null;switch(keycode){case 8:key=120;break;case 46:key=111;break;case 112:key=1;break;case 113:key=2;break;case 114:key=3;break;case 115:key=4;break;case 116:key=5;break;case 117:key=6;break;case 118:key=7;break;case 119:key=8;break;case 120:key=9;break;case 121:key=10;break;case 122:key=11;break;case 123:key=12;break;case 37:key=100;break;case 38:key=101;break;case 39:key=102;break;case 40:key=103;break;case 33:key=104;break;case 34:key=105;break;case 36:key=106;break;case 35:key=107;break;case 45:key=108;break;case 16:case 5:key=112;break;case 6:key=113;break;case 17:case 3:key=114;break;case 4:key=115;break;case 18:case 2:key=116;break;case 1:key=117;break}return key},getASCIIKey:function(event){if(event[\"ctrlKey\"]||event[\"altKey\"]||event[\"metaKey\"])return null;var keycode=event[\"keyCode\"];if(48<=keycode&&keycode<=57)return keycode;if(65<=keycode&&keycode<=90)return event[\"shiftKey\"]?keycode:keycode+32;if(96<=keycode&&keycode<=105)return keycode-48;if(106<=keycode&&keycode<=111)return keycode-106+42;switch(keycode){case 9:case 13:case 27:case 32:case 61:return keycode}var s=event[\"shiftKey\"];switch(keycode){case 186:return s?58:59;case 187:return s?43:61;case 188:return s?60:44;case 189:return s?95:45;case 190:return s?62:46;case 191:return s?63:47;case 219:return s?123:91;case 220:return s?124:47;case 221:return s?125:93;case 222:return s?34:39}return null},onKeydown:function(event){if(GLUT.specialFunc||GLUT.keyboardFunc){var key=GLUT.getSpecialKey(event[\"keyCode\"]);if(key!==null){if(GLUT.specialFunc){event.preventDefault();GLUT.saveModifiers(event);wasmTable.get(GLUT.specialFunc)(key,Browser.mouseX,Browser.mouseY)}}else{key=GLUT.getASCIIKey(event);if(key!==null&&GLUT.keyboardFunc){event.preventDefault();GLUT.saveModifiers(event);wasmTable.get(GLUT.keyboardFunc)(key,Browser.mouseX,Browser.mouseY)}}}},onKeyup:function(event){if(GLUT.specialUpFunc||GLUT.keyboardUpFunc){var key=GLUT.getSpecialKey(event[\"keyCode\"]);if(key!==null){if(GLUT.specialUpFunc){event.preventDefault();GLUT.saveModifiers(event);wasmTable.get(GLUT.specialUpFunc)(key,Browser.mouseX,Browser.mouseY)}}else{key=GLUT.getASCIIKey(event);if(key!==null&&GLUT.keyboardUpFunc){event.preventDefault();GLUT.saveModifiers(event);wasmTable.get(GLUT.keyboardUpFunc)(key,Browser.mouseX,Browser.mouseY)}}}},touchHandler:function(event){if(event.target!=Module[\"canvas\"]){return}var touches=event.changedTouches,main=touches[0],type=\"\";switch(event.type){case\"touchstart\":type=\"mousedown\";break;case\"touchmove\":type=\"mousemove\";break;case\"touchend\":type=\"mouseup\";break;default:return}var simulatedEvent=document.createEvent(\"MouseEvent\");simulatedEvent.initMouseEvent(type,true,true,window,1,main.screenX,main.screenY,main.clientX,main.clientY,false,false,false,false,0,null);main.target.dispatchEvent(simulatedEvent);event.preventDefault()},onMouseButtonDown:function(event){Browser.calculateMouseEvent(event);GLUT.buttons|=1<<event[\"button\"];if(event.target==Module[\"canvas\"]&&GLUT.mouseFunc){try{event.target.setCapture()}catch(e){}event.preventDefault();GLUT.saveModifiers(event);wasmTable.get(GLUT.mouseFunc)(event[\"button\"],0,Browser.mouseX,Browser.mouseY)}},onMouseButtonUp:function(event){Browser.calculateMouseEvent(event);GLUT.buttons&=~(1<<event[\"button\"]);if(GLUT.mouseFunc){event.preventDefault();GLUT.saveModifiers(event);wasmTable.get(GLUT.mouseFunc)(event[\"button\"],1,Browser.mouseX,Browser.mouseY)}},onMouseWheel:function(event){Browser.calculateMouseEvent(event);var e=window.event||event;var delta=-Browser.getMouseWheelDelta(event);delta=delta==0?0:delta>0?Math.max(delta,1):Math.min(delta,-1);var button=3;if(delta<0){button=4}if(GLUT.mouseFunc){event.preventDefault();GLUT.saveModifiers(event);wasmTable.get(GLUT.mouseFunc)(button,0,Browser.mouseX,Browser.mouseY)}},onFullscreenEventChange:function(event){var width;var height;if(document[\"fullscreen\"]||document[\"fullScreen\"]||document[\"mozFullScreen\"]||document[\"webkitIsFullScreen\"]){width=screen[\"width\"];height=screen[\"height\"]}else{width=GLUT.windowWidth;height=GLUT.windowHeight;document.removeEventListener(\"fullscreenchange\",GLUT.onFullscreenEventChange,true);document.removeEventListener(\"mozfullscreenchange\",GLUT.onFullscreenEventChange,true);document.removeEventListener(\"webkitfullscreenchange\",GLUT.onFullscreenEventChange,true)}Browser.setCanvasSize(width,height,true);if(GLUT.reshapeFunc){wasmTable.get(GLUT.reshapeFunc)(width,height)}_glutPostRedisplay()}};Module[\"GLUT\"]=GLUT;function _glutGetModifiers(){return GLUT.modifiers}Module[\"_glutGetModifiers\"]=_glutGetModifiers;_glutGetModifiers.sig=\"i\";function _glutInit(argcp,argv){GLUT.initTime=Date.now();var isTouchDevice=\"ontouchstart\"in document.documentElement;if(isTouchDevice){window.addEventListener(\"touchmove\",GLUT.touchHandler,true);window.addEventListener(\"touchstart\",GLUT.touchHandler,true);window.addEventListener(\"touchend\",GLUT.touchHandler,true)}window.addEventListener(\"keydown\",GLUT.onKeydown,true);window.addEventListener(\"keyup\",GLUT.onKeyup,true);window.addEventListener(\"mousemove\",GLUT.onMousemove,true);window.addEventListener(\"mousedown\",GLUT.onMouseButtonDown,true);window.addEventListener(\"mouseup\",GLUT.onMouseButtonUp,true);window.addEventListener(\"mousewheel\",GLUT.onMouseWheel,true);window.addEventListener(\"DOMMouseScroll\",GLUT.onMouseWheel,true);Browser.resizeListeners.push(function(width,height){if(GLUT.reshapeFunc){wasmTable.get(GLUT.reshapeFunc)(width,height)}});__ATEXIT__.push(function(){if(isTouchDevice){window.removeEventListener(\"touchmove\",GLUT.touchHandler,true);window.removeEventListener(\"touchstart\",GLUT.touchHandler,true);window.removeEventListener(\"touchend\",GLUT.touchHandler,true)}window.removeEventListener(\"keydown\",GLUT.onKeydown,true);window.removeEventListener(\"keyup\",GLUT.onKeyup,true);window.removeEventListener(\"mousemove\",GLUT.onMousemove,true);window.removeEventListener(\"mousedown\",GLUT.onMouseButtonDown,true);window.removeEventListener(\"mouseup\",GLUT.onMouseButtonUp,true);window.removeEventListener(\"mousewheel\",GLUT.onMouseWheel,true);window.removeEventListener(\"DOMMouseScroll\",GLUT.onMouseWheel,true);Module[\"canvas\"].width=Module[\"canvas\"].height=1})}Module[\"_glutInit\"]=_glutInit;_glutInit.sig=\"vii\";function _glutInitWindowSize(width,height){Browser.setCanvasSize(GLUT.initWindowWidth=width,GLUT.initWindowHeight=height)}Module[\"_glutInitWindowSize\"]=_glutInitWindowSize;_glutInitWindowSize.sig=\"vii\";function _glutInitWindowPosition(x,y){}Module[\"_glutInitWindowPosition\"]=_glutInitWindowPosition;_glutInitWindowPosition.sig=\"vii\";function _glutGet(type){switch(type){case 100:return 0;case 101:return 0;case 102:return Module[\"canvas\"].width;case 103:return Module[\"canvas\"].height;case 200:return Module[\"canvas\"].width;case 201:return Module[\"canvas\"].height;case 500:return 0;case 501:return 0;case 502:return GLUT.initWindowWidth;case 503:return GLUT.initWindowHeight;case 700:var now=Date.now();return now-GLUT.initTime;case 105:return Module.ctx.getContextAttributes().stencil?8:0;case 106:return Module.ctx.getContextAttributes().depth?8:0;case 110:return Module.ctx.getContextAttributes().alpha?8:0;case 120:return Module.ctx.getContextAttributes().antialias?1:0;default:throw\"glutGet(\"+type+\") not implemented yet\"}}Module[\"_glutGet\"]=_glutGet;function _glutIdleFunc(func){function callback(){if(GLUT.idleFunc){wasmTable.get(GLUT.idleFunc)();Browser.safeSetTimeout(callback,4)}}if(!GLUT.idleFunc){Browser.safeSetTimeout(callback,0)}GLUT.idleFunc=func}Module[\"_glutIdleFunc\"]=_glutIdleFunc;_glutIdleFunc.sig=\"vi\";function _glutTimerFunc(msec,func,value){Browser.safeSetTimeout(function(){wasmTable.get(func)(value)},msec)}Module[\"_glutTimerFunc\"]=_glutTimerFunc;_glutTimerFunc.sig=\"viii\";function _glutDisplayFunc(func){GLUT.displayFunc=func}Module[\"_glutDisplayFunc\"]=_glutDisplayFunc;_glutDisplayFunc.sig=\"vi\";function _glutKeyboardFunc(func){GLUT.keyboardFunc=func}Module[\"_glutKeyboardFunc\"]=_glutKeyboardFunc;_glutKeyboardFunc.sig=\"vi\";function _glutKeyboardUpFunc(func){GLUT.keyboardUpFunc=func}Module[\"_glutKeyboardUpFunc\"]=_glutKeyboardUpFunc;_glutKeyboardUpFunc.sig=\"vi\";function _glutSpecialFunc(func){GLUT.specialFunc=func}Module[\"_glutSpecialFunc\"]=_glutSpecialFunc;_glutSpecialFunc.sig=\"vi\";function _glutSpecialUpFunc(func){GLUT.specialUpFunc=func}Module[\"_glutSpecialUpFunc\"]=_glutSpecialUpFunc;_glutSpecialUpFunc.sig=\"vi\";function _glutReshapeFunc(func){GLUT.reshapeFunc=func}Module[\"_glutReshapeFunc\"]=_glutReshapeFunc;_glutReshapeFunc.sig=\"vi\";function _glutMotionFunc(func){GLUT.motionFunc=func}Module[\"_glutMotionFunc\"]=_glutMotionFunc;_glutMotionFunc.sig=\"vi\";function _glutPassiveMotionFunc(func){GLUT.passiveMotionFunc=func}Module[\"_glutPassiveMotionFunc\"]=_glutPassiveMotionFunc;_glutPassiveMotionFunc.sig=\"vi\";function _glutMouseFunc(func){GLUT.mouseFunc=func}Module[\"_glutMouseFunc\"]=_glutMouseFunc;_glutMouseFunc.sig=\"vi\";function _glutSetCursor(cursor){var cursorStyle=\"auto\";switch(cursor){case 0:break;case 1:break;case 2:cursorStyle=\"pointer\";break;case 3:break;case 4:cursorStyle=\"help\";break;case 5:break;case 6:break;case 7:cursorStyle=\"wait\";break;case 8:cursorStyle=\"text\";break;case 9:case 102:cursorStyle=\"crosshair\";break;case 10:cursorStyle=\"ns-resize\";break;case 11:cursorStyle=\"ew-resize\";break;case 12:cursorStyle=\"n-resize\";break;case 13:cursorStyle=\"s-resize\";break;case 14:cursorStyle=\"w-resize\";break;case 15:cursorStyle=\"e-resize\";break;case 16:cursorStyle=\"nw-resize\";break;case 17:cursorStyle=\"ne-resize\";break;case 18:cursorStyle=\"se-resize\";break;case 19:cursorStyle=\"sw-resize\";break;case 100:break;case 101:cursorStyle=\"none\";break;default:throw\"glutSetCursor: Unknown cursor type: \"+cursor}Module[\"canvas\"].style.cursor=cursorStyle}Module[\"_glutSetCursor\"]=_glutSetCursor;_glutSetCursor.sig=\"vi\";function _glutCreateWindow(name){var contextAttributes={antialias:(GLUT.initDisplayMode&128)!=0,depth:(GLUT.initDisplayMode&16)!=0,stencil:(GLUT.initDisplayMode&32)!=0,alpha:(GLUT.initDisplayMode&8)!=0};Module.ctx=Browser.createContext(Module[\"canvas\"],true,true,contextAttributes);return Module.ctx?1:0}Module[\"_glutCreateWindow\"]=_glutCreateWindow;_glutCreateWindow.sig=\"ii\";function _glutDestroyWindow(name){Module.ctx=Browser.destroyContext(Module[\"canvas\"],true,true);return 1}Module[\"_glutDestroyWindow\"]=_glutDestroyWindow;_glutDestroyWindow.sig=\"ii\";function _glutReshapeWindow(width,height){Browser.exitFullscreen();Browser.setCanvasSize(width,height,true);if(GLUT.reshapeFunc){wasmTable.get(GLUT.reshapeFunc)(width,height)}_glutPostRedisplay()}Module[\"_glutReshapeWindow\"]=_glutReshapeWindow;_glutReshapeWindow.sig=\"vi\";function _glutPositionWindow(x,y){Browser.exitFullscreen();_glutPostRedisplay()}Module[\"_glutPositionWindow\"]=_glutPositionWindow;_glutPositionWindow.sig=\"vii\";function _glutFullScreen(){GLUT.windowX=0;GLUT.windowY=0;GLUT.windowWidth=Module[\"canvas\"].width;GLUT.windowHeight=Module[\"canvas\"].height;document.addEventListener(\"fullscreenchange\",GLUT.onFullscreenEventChange,true);document.addEventListener(\"mozfullscreenchange\",GLUT.onFullscreenEventChange,true);document.addEventListener(\"webkitfullscreenchange\",GLUT.onFullscreenEventChange,true);Browser.requestFullscreen(false,false)}Module[\"_glutFullScreen\"]=_glutFullScreen;_glutFullScreen.sig=\"v\";function _glutInitDisplayMode(mode){GLUT.initDisplayMode=mode}Module[\"_glutInitDisplayMode\"]=_glutInitDisplayMode;_glutInitDisplayMode.sig=\"vi\";function _glutSwapBuffers(){}Module[\"_glutSwapBuffers\"]=_glutSwapBuffers;_glutSwapBuffers.sig=\"v\";function _glutMainLoop(){_glutReshapeWindow(Module[\"canvas\"].width,Module[\"canvas\"].height);_glutPostRedisplay();throw\"unwind\"}Module[\"_glutMainLoop\"]=_glutMainLoop;_glutMainLoop.sig=\"v\";function _XOpenDisplay(){return 1}Module[\"_XOpenDisplay\"]=_XOpenDisplay;function _XCreateWindow(display,parent,x,y,width,height,border_width,depth,class_,visual,valuemask,attributes){Browser.setCanvasSize(width,height);return 2}Module[\"_XCreateWindow\"]=_XCreateWindow;function _XChangeWindowAttributes(){}Module[\"_XChangeWindowAttributes\"]=_XChangeWindowAttributes;function _XSetWMHints(){}Module[\"_XSetWMHints\"]=_XSetWMHints;function _XMapWindow(){}Module[\"_XMapWindow\"]=_XMapWindow;function _XStoreName(){}Module[\"_XStoreName\"]=_XStoreName;function _XInternAtom(display,name_,hmm){return 0}Module[\"_XInternAtom\"]=_XInternAtom;function _XSendEvent(){}Module[\"_XSendEvent\"]=_XSendEvent;function _XPending(display){return 0}Module[\"_XPending\"]=_XPending;var EGL={errorCode:12288,defaultDisplayInitialized:false,currentContext:0,currentReadSurface:0,currentDrawSurface:0,contextAttributes:{alpha:false,depth:false,stencil:false,antialias:false},stringCache:{},setErrorCode:function(code){EGL.errorCode=code},chooseConfig:function(display,attribList,config,config_size,numConfigs){if(display!=62e3){EGL.setErrorCode(12296);return 0}if(attribList){for(;;){var param=HEAP32[attribList>>2];if(param==12321){var alphaSize=HEAP32[attribList+4>>2];EGL.contextAttributes.alpha=alphaSize>0}else if(param==12325){var depthSize=HEAP32[attribList+4>>2];EGL.contextAttributes.depth=depthSize>0}else if(param==12326){var stencilSize=HEAP32[attribList+4>>2];EGL.contextAttributes.stencil=stencilSize>0}else if(param==12337){var samples=HEAP32[attribList+4>>2];EGL.contextAttributes.antialias=samples>0}else if(param==12338){var samples=HEAP32[attribList+4>>2];EGL.contextAttributes.antialias=samples==1}else if(param==12544){var requestedPriority=HEAP32[attribList+4>>2];EGL.contextAttributes.lowLatency=requestedPriority!=12547}else if(param==12344){break}attribList+=8}}if((!config||!config_size)&&!numConfigs){EGL.setErrorCode(12300);return 0}if(numConfigs){HEAP32[numConfigs>>2]=1}if(config&&config_size>0){HEAP32[config>>2]=62002}EGL.setErrorCode(12288);return 1}};Module[\"EGL\"]=EGL;function _eglGetDisplay(nativeDisplayType){EGL.setErrorCode(12288);return 62e3}Module[\"_eglGetDisplay\"]=_eglGetDisplay;_eglGetDisplay.sig=\"ii\";function _eglInitialize(display,majorVersion,minorVersion){if(display==62e3){if(majorVersion){HEAP32[majorVersion>>2]=1}if(minorVersion){HEAP32[minorVersion>>2]=4}EGL.defaultDisplayInitialized=true;EGL.setErrorCode(12288);return 1}else{EGL.setErrorCode(12296);return 0}}Module[\"_eglInitialize\"]=_eglInitialize;_eglInitialize.sig=\"iiii\";function _eglTerminate(display){if(display!=62e3){EGL.setErrorCode(12296);return 0}EGL.currentContext=0;EGL.currentReadSurface=0;EGL.currentDrawSurface=0;EGL.defaultDisplayInitialized=false;EGL.setErrorCode(12288);return 1}Module[\"_eglTerminate\"]=_eglTerminate;_eglTerminate.sig=\"ii\";function _eglGetConfigs(display,configs,config_size,numConfigs){return EGL.chooseConfig(display,0,configs,config_size,numConfigs)}Module[\"_eglGetConfigs\"]=_eglGetConfigs;_eglGetConfigs.sig=\"iiiii\";function _eglChooseConfig(display,attrib_list,configs,config_size,numConfigs){return EGL.chooseConfig(display,attrib_list,configs,config_size,numConfigs)}Module[\"_eglChooseConfig\"]=_eglChooseConfig;_eglChooseConfig.sig=\"iiiiii\";function _eglGetConfigAttrib(display,config,attribute,value){if(display!=62e3){EGL.setErrorCode(12296);return 0}if(config!=62002){EGL.setErrorCode(12293);return 0}if(!value){EGL.setErrorCode(12300);return 0}EGL.setErrorCode(12288);switch(attribute){case 12320:HEAP32[value>>2]=EGL.contextAttributes.alpha?32:24;return 1;case 12321:HEAP32[value>>2]=EGL.contextAttributes.alpha?8:0;return 1;case 12322:HEAP32[value>>2]=8;return 1;case 12323:HEAP32[value>>2]=8;return 1;case 12324:HEAP32[value>>2]=8;return 1;case 12325:HEAP32[value>>2]=EGL.contextAttributes.depth?24:0;return 1;case 12326:HEAP32[value>>2]=EGL.contextAttributes.stencil?8:0;return 1;case 12327:HEAP32[value>>2]=12344;return 1;case 12328:HEAP32[value>>2]=62002;return 1;case 12329:HEAP32[value>>2]=0;return 1;case 12330:HEAP32[value>>2]=4096;return 1;case 12331:HEAP32[value>>2]=16777216;return 1;case 12332:HEAP32[value>>2]=4096;return 1;case 12333:HEAP32[value>>2]=0;return 1;case 12334:HEAP32[value>>2]=0;return 1;case 12335:HEAP32[value>>2]=12344;return 1;case 12337:HEAP32[value>>2]=EGL.contextAttributes.antialias?4:0;return 1;case 12338:HEAP32[value>>2]=EGL.contextAttributes.antialias?1:0;return 1;case 12339:HEAP32[value>>2]=4;return 1;case 12340:HEAP32[value>>2]=12344;return 1;case 12341:case 12342:case 12343:HEAP32[value>>2]=-1;return 1;case 12345:case 12346:HEAP32[value>>2]=0;return 1;case 12347:HEAP32[value>>2]=0;return 1;case 12348:HEAP32[value>>2]=1;return 1;case 12349:case 12350:HEAP32[value>>2]=0;return 1;case 12351:HEAP32[value>>2]=12430;return 1;case 12352:HEAP32[value>>2]=4;return 1;case 12354:HEAP32[value>>2]=0;return 1;default:EGL.setErrorCode(12292);return 0}}Module[\"_eglGetConfigAttrib\"]=_eglGetConfigAttrib;_eglGetConfigAttrib.sig=\"iiiii\";function _eglCreateWindowSurface(display,config,win,attrib_list){if(display!=62e3){EGL.setErrorCode(12296);return 0}if(config!=62002){EGL.setErrorCode(12293);return 0}EGL.setErrorCode(12288);return 62006}Module[\"_eglCreateWindowSurface\"]=_eglCreateWindowSurface;_eglCreateWindowSurface.sig=\"iiiii\";function _eglDestroySurface(display,surface){if(display!=62e3){EGL.setErrorCode(12296);return 0}if(surface!=62006){EGL.setErrorCode(12301);return 1}if(EGL.currentReadSurface==surface){EGL.currentReadSurface=0}if(EGL.currentDrawSurface==surface){EGL.currentDrawSurface=0}EGL.setErrorCode(12288);return 1}Module[\"_eglDestroySurface\"]=_eglDestroySurface;_eglDestroySurface.sig=\"iii\";function _eglCreateContext(display,config,hmm,contextAttribs){if(display!=62e3){EGL.setErrorCode(12296);return 0}var glesContextVersion=1;for(;;){var param=HEAP32[contextAttribs>>2];if(param==12440){glesContextVersion=HEAP32[contextAttribs+4>>2]}else if(param==12344){break}else{EGL.setErrorCode(12292);return 0}contextAttribs+=8}if(glesContextVersion!=2){EGL.setErrorCode(12293);return 0}EGL.contextAttributes.majorVersion=glesContextVersion-1;EGL.contextAttributes.minorVersion=0;EGL.context=GL.createContext(Module[\"canvas\"],EGL.contextAttributes);if(EGL.context!=0){EGL.setErrorCode(12288);GL.makeContextCurrent(EGL.context);Module.useWebGL=true;Browser.moduleContextCreatedCallbacks.forEach(function(callback){callback()});GL.makeContextCurrent(null);return 62004}else{EGL.setErrorCode(12297);return 0}}Module[\"_eglCreateContext\"]=_eglCreateContext;_eglCreateContext.sig=\"iiiii\";function _eglDestroyContext(display,context){if(display!=62e3){EGL.setErrorCode(12296);return 0}if(context!=62004){EGL.setErrorCode(12294);return 0}GL.deleteContext(EGL.context);EGL.setErrorCode(12288);if(EGL.currentContext==context){EGL.currentContext=0}return 1}Module[\"_eglDestroyContext\"]=_eglDestroyContext;_eglDestroyContext.sig=\"iii\";function _eglQuerySurface(display,surface,attribute,value){if(display!=62e3){EGL.setErrorCode(12296);return 0}if(surface!=62006){EGL.setErrorCode(12301);return 0}if(!value){EGL.setErrorCode(12300);return 0}EGL.setErrorCode(12288);switch(attribute){case 12328:HEAP32[value>>2]=62002;return 1;case 12376:return 1;case 12375:HEAP32[value>>2]=Module[\"canvas\"].width;return 1;case 12374:HEAP32[value>>2]=Module[\"canvas\"].height;return 1;case 12432:HEAP32[value>>2]=-1;return 1;case 12433:HEAP32[value>>2]=-1;return 1;case 12434:HEAP32[value>>2]=-1;return 1;case 12422:HEAP32[value>>2]=12420;return 1;case 12441:HEAP32[value>>2]=12442;return 1;case 12435:HEAP32[value>>2]=12437;return 1;case 12416:case 12417:case 12418:case 12419:return 1;default:EGL.setErrorCode(12292);return 0}}Module[\"_eglQuerySurface\"]=_eglQuerySurface;_eglQuerySurface.sig=\"iiiii\";function _eglQueryContext(display,context,attribute,value){if(display!=62e3){EGL.setErrorCode(12296);return 0}if(context!=62004){EGL.setErrorCode(12294);return 0}if(!value){EGL.setErrorCode(12300);return 0}EGL.setErrorCode(12288);switch(attribute){case 12328:HEAP32[value>>2]=62002;return 1;case 12439:HEAP32[value>>2]=12448;return 1;case 12440:HEAP32[value>>2]=EGL.contextAttributes.majorVersion+1;return 1;case 12422:HEAP32[value>>2]=12420;return 1;default:EGL.setErrorCode(12292);return 0}}Module[\"_eglQueryContext\"]=_eglQueryContext;_eglQueryContext.sig=\"iiiii\";function _eglGetError(){return EGL.errorCode}Module[\"_eglGetError\"]=_eglGetError;_eglGetError.sig=\"i\";function _eglQueryString(display,name){if(display!=62e3){EGL.setErrorCode(12296);return 0}EGL.setErrorCode(12288);if(EGL.stringCache[name])return EGL.stringCache[name];var ret;switch(name){case 12371:ret=allocateUTF8(\"Emscripten\");break;case 12372:ret=allocateUTF8(\"1.4 Emscripten EGL\");break;case 12373:ret=allocateUTF8(\"\");break;case 12429:ret=allocateUTF8(\"OpenGL_ES\");break;default:EGL.setErrorCode(12300);return 0}EGL.stringCache[name]=ret;return ret}Module[\"_eglQueryString\"]=_eglQueryString;_eglQueryString.sig=\"iii\";function _eglBindAPI(api){if(api==12448){EGL.setErrorCode(12288);return 1}else{EGL.setErrorCode(12300);return 0}}Module[\"_eglBindAPI\"]=_eglBindAPI;_eglBindAPI.sig=\"ii\";function _eglQueryAPI(){EGL.setErrorCode(12288);return 12448}Module[\"_eglQueryAPI\"]=_eglQueryAPI;_eglQueryAPI.sig=\"i\";function _eglWaitClient(){EGL.setErrorCode(12288);return 1}Module[\"_eglWaitClient\"]=_eglWaitClient;_eglWaitClient.sig=\"i\";function _eglWaitNative(nativeEngineId){EGL.setErrorCode(12288);return 1}Module[\"_eglWaitNative\"]=_eglWaitNative;_eglWaitNative.sig=\"ii\";function _eglWaitGL(){return _eglWaitClient()}Module[\"_eglWaitGL\"]=_eglWaitGL;_eglWaitGL.sig=\"i\";function _eglSwapInterval(display,interval){if(display!=62e3){EGL.setErrorCode(12296);return 0}if(interval==0)_emscripten_set_main_loop_timing(0,0);else _emscripten_set_main_loop_timing(1,interval);EGL.setErrorCode(12288);return 1}Module[\"_eglSwapInterval\"]=_eglSwapInterval;_eglSwapInterval.sig=\"iii\";function _eglMakeCurrent(display,draw,read,context){if(display!=62e3){EGL.setErrorCode(12296);return 0}if(context!=0&&context!=62004){EGL.setErrorCode(12294);return 0}if(read!=0&&read!=62006||draw!=0&&draw!=62006){EGL.setErrorCode(12301);return 0}GL.makeContextCurrent(context?EGL.context:null);EGL.currentContext=context;EGL.currentDrawSurface=draw;EGL.currentReadSurface=read;EGL.setErrorCode(12288);return 1}Module[\"_eglMakeCurrent\"]=_eglMakeCurrent;_eglMakeCurrent.sig=\"iiiii\";function _eglGetCurrentContext(){return EGL.currentContext}Module[\"_eglGetCurrentContext\"]=_eglGetCurrentContext;_eglGetCurrentContext.sig=\"i\";function _eglGetCurrentSurface(readdraw){if(readdraw==12378){return EGL.currentReadSurface}else if(readdraw==12377){return EGL.currentDrawSurface}else{EGL.setErrorCode(12300);return 0}}Module[\"_eglGetCurrentSurface\"]=_eglGetCurrentSurface;_eglGetCurrentSurface.sig=\"ii\";function _eglGetCurrentDisplay(){return EGL.currentContext?62e3:0}Module[\"_eglGetCurrentDisplay\"]=_eglGetCurrentDisplay;_eglGetCurrentDisplay.sig=\"i\";function _eglSwapBuffers(){if(!EGL.defaultDisplayInitialized){EGL.setErrorCode(12289)}else if(!Module.ctx){EGL.setErrorCode(12290)}else if(Module.ctx.isContextLost()){EGL.setErrorCode(12302)}else{EGL.setErrorCode(12288);return 1}return 0}Module[\"_eglSwapBuffers\"]=_eglSwapBuffers;_eglSwapBuffers.sig=\"iii\";function _eglReleaseThread(){EGL.currentContext=0;EGL.currentReadSurface=0;EGL.currentDrawSurface=0;EGL.setErrorCode(12288);return 1}Module[\"_eglReleaseThread\"]=_eglReleaseThread;_eglReleaseThread.sig=\"i\";var GLFW={WindowFromId:function(id){if(id<=0||!GLFW.windows)return null;return GLFW.windows[id-1]},joystickFunc:null,errorFunc:null,monitorFunc:null,active:null,windows:null,monitors:null,monitorString:null,versionString:null,initialTime:null,extensions:null,hints:null,defaultHints:{131073:0,131074:0,131075:1,131076:1,131077:1,135169:8,135170:8,135171:8,135172:8,135173:24,135174:8,135175:0,135176:0,135177:0,135178:0,135179:0,135180:0,135181:0,135182:0,135183:0,139265:196609,139266:1,139267:0,139268:0,139269:0,139270:0,139271:0,139272:0},DOMToGLFWKeyCode:function(keycode){switch(keycode){case 32:return 32;case 222:return 39;case 188:return 44;case 173:return 45;case 189:return 45;case 190:return 46;case 191:return 47;case 48:return 48;case 49:return 49;case 50:return 50;case 51:return 51;case 52:return 52;case 53:return 53;case 54:return 54;case 55:return 55;case 56:return 56;case 57:return 57;case 59:return 59;case 61:return 61;case 187:return 61;case 65:return 65;case 66:return 66;case 67:return 67;case 68:return 68;case 69:return 69;case 70:return 70;case 71:return 71;case 72:return 72;case 73:return 73;case 74:return 74;case 75:return 75;case 76:return 76;case 77:return 77;case 78:return 78;case 79:return 79;case 80:return 80;case 81:return 81;case 82:return 82;case 83:return 83;case 84:return 84;case 85:return 85;case 86:return 86;case 87:return 87;case 88:return 88;case 89:return 89;case 90:return 90;case 219:return 91;case 220:return 92;case 221:return 93;case 192:return 94;case 27:return 256+1;case 112:return 256+2;case 113:return 256+3;case 114:return 256+4;case 115:return 256+5;case 116:return 256+6;case 117:return 256+7;case 118:return 256+8;case 119:return 256+9;case 120:return 256+10;case 121:return 256+11;case 122:return 256+12;case 123:return 256+13;case 124:return 256+14;case 125:return 256+15;case 126:return 256+16;case 127:return 256+17;case 128:return 256+18;case 129:return 256+19;case 130:return 256+20;case 131:return 256+21;case 132:return 256+22;case 133:return 256+23;case 134:return 256+24;case 135:return 256+25;case 136:return 256+26;case 39:return 256+30;case 37:return 256+29;case 40:return 256+28;case 38:return 256+27;case 16:return 256+31;case 17:return 256+33;case 18:return 256+35;case 9:return 256+37;case 13:return 256+38;case 8:return 256+39;case 45:return 256+40;case 46:return 256+41;case 33:return 256+42;case 34:return 256+43;case 36:return 256+44;case 35:return 256+45;case 96:return 256+46;case 97:return 256+47;case 98:return 256+48;case 99:return 256+49;case 100:return 256+50;case 101:return 256+51;case 102:return 256+52;case 103:return 256+53;case 104:return 256+54;case 105:return 256+55;case 111:return 256+56;case 106:return 256+57;case 109:return 256+58;case 107:return 256+59;case 110:return 256+60;case 144:return 256+63;case 20:return 256+64;case 145:return 256+65;case 19:return 256+66;case 91:return 256+67;case 93:return 256+69;default:return-1}},getModBits:function(win){var mod=0;if(win.keys[340])mod|=1;if(win.keys[341])mod|=2;if(win.keys[342])mod|=4;if(win.keys[343])mod|=8;return mod},onKeyPress:function(event){if(!GLFW.active||!GLFW.active.charFunc)return;if(event.ctrlKey||event.metaKey)return;var charCode=event.charCode;if(charCode==0||charCode>=0&&charCode<=31)return;wasmTable.get(GLFW.active.charFunc)(charCode,1)},onKeyChanged:function(keyCode,status){if(!GLFW.active)return;var key=GLFW.DOMToGLFWKeyCode(keyCode);if(key==-1)return;GLFW.active.keys[key]=status;GLFW.active.domKeys[keyCode]=status;if(!GLFW.active.keyFunc)return;wasmTable.get(GLFW.active.keyFunc)(key,status)},onGamepadConnected:function(event){GLFW.refreshJoysticks()},onGamepadDisconnected:function(event){GLFW.refreshJoysticks()},onKeydown:function(event){GLFW.onKeyChanged(event.keyCode,1);if(event.keyCode===8||event.keyCode===9){event.preventDefault()}},onKeyup:function(event){GLFW.onKeyChanged(event.keyCode,0)},onBlur:function(event){if(!GLFW.active)return;for(var i=0;i<GLFW.active.domKeys.length;++i){if(GLFW.active.domKeys[i]){GLFW.onKeyChanged(i,0)}}},onMousemove:function(event){if(!GLFW.active)return;Browser.calculateMouseEvent(event);if(event.target!=Module[\"canvas\"]||!GLFW.active.cursorPosFunc)return;wasmTable.get(GLFW.active.cursorPosFunc)(Browser.mouseX,Browser.mouseY)},DOMToGLFWMouseButton:function(event){var eventButton=event[\"button\"];if(eventButton>0){if(eventButton==1){eventButton=2}else{eventButton=1}}return eventButton},onMouseenter:function(event){if(!GLFW.active)return;if(event.target!=Module[\"canvas\"]||!GLFW.active.cursorEnterFunc)return},onMouseleave:function(event){if(!GLFW.active)return;if(event.target!=Module[\"canvas\"]||!GLFW.active.cursorEnterFunc)return},onMouseButtonChanged:function(event,status){if(!GLFW.active)return;Browser.calculateMouseEvent(event);if(event.target!=Module[\"canvas\"])return;var eventButton=GLFW.DOMToGLFWMouseButton(event);if(status==1){GLFW.active.buttons|=1<<eventButton;try{event.target.setCapture()}catch(e){}}else{GLFW.active.buttons&=~(1<<eventButton)}if(!GLFW.active.mouseButtonFunc)return;wasmTable.get(GLFW.active.mouseButtonFunc)(eventButton,status)},onMouseButtonDown:function(event){if(!GLFW.active)return;GLFW.onMouseButtonChanged(event,1)},onMouseButtonUp:function(event){if(!GLFW.active)return;GLFW.onMouseButtonChanged(event,0)},onMouseWheel:function(event){var delta=-Browser.getMouseWheelDelta(event);delta=delta==0?0:delta>0?Math.max(delta,1):Math.min(delta,-1);GLFW.wheelPos+=delta;if(!GLFW.active||!GLFW.active.scrollFunc||event.target!=Module[\"canvas\"])return;wasmTable.get(GLFW.active.scrollFunc)(GLFW.wheelPos);event.preventDefault()},onCanvasResize:function(width,height){if(!GLFW.active)return;var resizeNeeded=true;if(document[\"fullscreen\"]||document[\"fullScreen\"]||document[\"mozFullScreen\"]||document[\"webkitIsFullScreen\"]){GLFW.active.storedX=GLFW.active.x;GLFW.active.storedY=GLFW.active.y;GLFW.active.storedWidth=GLFW.active.width;GLFW.active.storedHeight=GLFW.active.height;GLFW.active.x=GLFW.active.y=0;GLFW.active.width=screen.width;GLFW.active.height=screen.height;GLFW.active.fullscreen=true}else if(GLFW.active.fullscreen==true){GLFW.active.x=GLFW.active.storedX;GLFW.active.y=GLFW.active.storedY;GLFW.active.width=GLFW.active.storedWidth;GLFW.active.height=GLFW.active.storedHeight;GLFW.active.fullscreen=false}else if(GLFW.active.width!=width||GLFW.active.height!=height){GLFW.active.width=width;GLFW.active.height=height}else{resizeNeeded=false}if(resizeNeeded){Browser.setCanvasSize(GLFW.active.width,GLFW.active.height,true);GLFW.onWindowSizeChanged();GLFW.onFramebufferSizeChanged()}},onWindowSizeChanged:function(){if(!GLFW.active)return;if(!GLFW.active.windowSizeFunc)return;wasmTable.get(GLFW.active.windowSizeFunc)(GLFW.active.width,GLFW.active.height)},onFramebufferSizeChanged:function(){if(!GLFW.active)return;if(!GLFW.active.framebufferSizeFunc)return},getTime:function(){return _emscripten_get_now()/1e3},setWindowTitle:function(winid,title){var win=GLFW.WindowFromId(winid);if(!win)return;win.title=UTF8ToString(title);if(GLFW.active.id==win.id){document.title=win.title}},setJoystickCallback:function(cbfun){GLFW.joystickFunc=cbfun;GLFW.refreshJoysticks()},joys:{},lastGamepadState:null,lastGamepadStateFrame:null,refreshJoysticks:function(){if(Browser.mainLoop.currentFrameNumber!==GLFW.lastGamepadStateFrame||!Browser.mainLoop.currentFrameNumber){GLFW.lastGamepadState=navigator.getGamepads?navigator.getGamepads():navigator.webkitGetGamepads?navigator.webkitGetGamepads:null;GLFW.lastGamepadStateFrame=Browser.mainLoop.currentFrameNumber;for(var joy=0;joy<GLFW.lastGamepadState.length;++joy){var gamepad=GLFW.lastGamepadState[joy];if(gamepad){if(!GLFW.joys[joy]){console.log(\"glfw joystick connected:\",joy);GLFW.joys[joy]={id:allocate(intArrayFromString(gamepad.id),ALLOC_NORMAL),buttonsCount:gamepad.buttons.length,axesCount:gamepad.axes.length,buttons:allocate(new Array(gamepad.buttons.length),ALLOC_NORMAL),axes:allocate(new Array(gamepad.axes.length*4),ALLOC_NORMAL)};if(GLFW.joystickFunc){wasmTable.get(GLFW.joystickFunc)(joy,262145)}}var data=GLFW.joys[joy];for(var i=0;i<gamepad.buttons.length;++i){setValue(data.buttons+i,gamepad.buttons[i].pressed,\"i8\")}for(var i=0;i<gamepad.axes.length;++i){setValue(data.axes+i*4,gamepad.axes[i],\"float\")}}else{if(GLFW.joys[joy]){console.log(\"glfw joystick disconnected\",joy);if(GLFW.joystickFunc){wasmTable.get(GLFW.joystickFunc)(joy,262146)}_free(GLFW.joys[joy].id);_free(GLFW.joys[joy].buttons);_free(GLFW.joys[joy].axes);delete GLFW.joys[joy]}}}}},setKeyCallback:function(winid,cbfun){var win=GLFW.WindowFromId(winid);if(!win)return null;var prevcbfun=win.keyFunc;win.keyFunc=cbfun;return prevcbfun},setCharCallback:function(winid,cbfun){var win=GLFW.WindowFromId(winid);if(!win)return null;var prevcbfun=win.charFunc;win.charFunc=cbfun;return prevcbfun},setMouseButtonCallback:function(winid,cbfun){var win=GLFW.WindowFromId(winid);if(!win)return null;var prevcbfun=win.mouseButtonFunc;win.mouseButtonFunc=cbfun;return prevcbfun},setCursorPosCallback:function(winid,cbfun){var win=GLFW.WindowFromId(winid);if(!win)return null;var prevcbfun=win.cursorPosFunc;win.cursorPosFunc=cbfun;return prevcbfun},setScrollCallback:function(winid,cbfun){var win=GLFW.WindowFromId(winid);if(!win)return null;var prevcbfun=win.scrollFunc;win.scrollFunc=cbfun;return prevcbfun},setDropCallback:function(winid,cbfun){var win=GLFW.WindowFromId(winid);if(!win)return null;var prevcbfun=win.dropFunc;win.dropFunc=cbfun;return prevcbfun},onDrop:function(event){if(!GLFW.active||!GLFW.active.dropFunc)return;if(!event.dataTransfer||!event.dataTransfer.files||event.dataTransfer.files.length==0)return;event.preventDefault();var filenames=allocate(new Array(event.dataTransfer.files.length*4),ALLOC_NORMAL);var filenamesArray=[];var count=event.dataTransfer.files.length;var written=0;var drop_dir=\".glfw_dropped_files\";FS.createPath(\"/\",drop_dir);function save(file){var path=\"/\"+drop_dir+\"/\"+file.name.replace(/\\//g,\"_\");var reader=new FileReader;reader.onloadend=function(e){if(reader.readyState!=2){++written;console.log(\"failed to read dropped file: \"+file.name+\": \"+reader.error);return}var data=e.target.result;FS.writeFile(path,new Uint8Array(data));if(++written===count){wasmTable.get(GLFW.active.dropFunc)(GLFW.active.id,count,filenames);for(var i=0;i<filenamesArray.length;++i){_free(filenamesArray[i])}_free(filenames)}};reader.readAsArrayBuffer(file);var filename=allocate(intArrayFromString(path),ALLOC_NORMAL);filenamesArray.push(filename);setValue(filenames+i*4,filename,\"i8*\")}for(var i=0;i<count;++i){save(event.dataTransfer.files[i])}return false},onDragover:function(event){if(!GLFW.active||!GLFW.active.dropFunc)return;event.preventDefault();return false},setWindowSizeCallback:function(winid,cbfun){var win=GLFW.WindowFromId(winid);if(!win)return null;var prevcbfun=win.windowSizeFunc;win.windowSizeFunc=cbfun;if(!win.windowSizeFunc)return null;wasmTable.get(win.windowSizeFunc)(win.width,win.height);return prevcbfun},setWindowCloseCallback:function(winid,cbfun){var win=GLFW.WindowFromId(winid);if(!win)return null;var prevcbfun=win.windowCloseFunc;win.windowCloseFunc=cbfun;return prevcbfun},setWindowRefreshCallback:function(winid,cbfun){var win=GLFW.WindowFromId(winid);if(!win)return null;var prevcbfun=win.windowRefreshFunc;win.windowRefreshFunc=cbfun;return prevcbfun},onClickRequestPointerLock:function(e){if(!Browser.pointerLock&&Module[\"canvas\"].requestPointerLock){Module[\"canvas\"].requestPointerLock();e.preventDefault()}},setInputMode:function(winid,mode,value){var win=GLFW.WindowFromId(winid);if(!win)return;switch(mode){case 208897:{switch(value){case 212993:{win.inputModes[mode]=value;Module[\"canvas\"].removeEventListener(\"click\",GLFW.onClickRequestPointerLock,true);Module[\"canvas\"].exitPointerLock();break}case 212994:{console.log(\"glfwSetInputMode called with GLFW_CURSOR_HIDDEN value not implemented.\");break}case 212995:{win.inputModes[mode]=value;Module[\"canvas\"].addEventListener(\"click\",GLFW.onClickRequestPointerLock,true);Module[\"canvas\"].requestPointerLock();break}default:{console.log(\"glfwSetInputMode called with unknown value parameter value: \"+value+\".\");break}}break}case 208898:{console.log(\"glfwSetInputMode called with GLFW_STICKY_KEYS mode not implemented.\");break}case 208899:{console.log(\"glfwSetInputMode called with GLFW_STICKY_MOUSE_BUTTONS mode not implemented.\");break}default:{console.log(\"glfwSetInputMode called with unknown mode parameter value: \"+mode+\".\");break}}},getKey:function(winid,key){var win=GLFW.WindowFromId(winid);if(!win)return 0;return win.keys[key]},getMouseButton:function(winid,button){var win=GLFW.WindowFromId(winid);if(!win)return 0;return(win.buttons&1<<button)>0},getCursorPos:function(winid,x,y){setValue(x,Browser.mouseX,\"double\");setValue(y,Browser.mouseY,\"double\")},getMousePos:function(winid,x,y){setValue(x,Browser.mouseX,\"i32\");setValue(y,Browser.mouseY,\"i32\")},setCursorPos:function(winid,x,y){},getWindowPos:function(winid,x,y){var wx=0;var wy=0;var win=GLFW.WindowFromId(winid);if(win){wx=win.x;wy=win.y}if(x){setValue(x,wx,\"i32\")}if(y){setValue(y,wy,\"i32\")}},setWindowPos:function(winid,x,y){var win=GLFW.WindowFromId(winid);if(!win)return;win.x=x;win.y=y},getWindowSize:function(winid,width,height){var ww=0;var wh=0;var win=GLFW.WindowFromId(winid);if(win){ww=win.width;wh=win.height}if(width){setValue(width,ww,\"i32\")}if(height){setValue(height,wh,\"i32\")}},setWindowSize:function(winid,width,height){var win=GLFW.WindowFromId(winid);if(!win)return;if(GLFW.active.id==win.id){if(width==screen.width&&height==screen.height){Browser.requestFullscreen()}else{Browser.exitFullscreen();Browser.setCanvasSize(width,height);win.width=width;win.height=height}}if(!win.windowSizeFunc)return;wasmTable.get(win.windowSizeFunc)(width,height)},createWindow:function(width,height,title,monitor,share){var i,id;for(i=0;i<GLFW.windows.length&&GLFW.windows[i]!==null;i++){}if(i>0)throw\"glfwCreateWindow only supports one window at time currently\";id=i+1;if(width<=0||height<=0)return 0;if(monitor){Browser.requestFullscreen()}else{Browser.setCanvasSize(width,height)}for(i=0;i<GLFW.windows.length&&GLFW.windows[i]==null;i++){}var useWebGL=GLFW.hints[139265]>0;if(i==GLFW.windows.length){if(useWebGL){var contextAttributes={antialias:GLFW.hints[135181]>1,depth:GLFW.hints[135173]>0,stencil:GLFW.hints[135174]>0,alpha:GLFW.hints[135172]>0};Module.ctx=Browser.createContext(Module[\"canvas\"],true,true,contextAttributes)}else{Browser.init()}}if(!Module.ctx&&useWebGL)return 0;var win=new GLFW_Window(id,width,height,title,monitor,share);if(id-1==GLFW.windows.length){GLFW.windows.push(win)}else{GLFW.windows[id-1]=win}GLFW.active=win;return win.id},destroyWindow:function(winid){var win=GLFW.WindowFromId(winid);if(!win)return;GLFW.windows[win.id-1]=null;if(GLFW.active.id==win.id)GLFW.active=null;for(var i=0;i<GLFW.windows.length;i++)if(GLFW.windows[i]!==null)return;Module.ctx=Browser.destroyContext(Module[\"canvas\"],true,true)},swapBuffers:function(winid){},GLFW2ParamToGLFW3Param:function(param){var table={196609:0,196610:0,196611:0,196612:0,196613:0,196614:0,131073:0,131074:0,131075:0,131076:0,131077:135169,131078:135170,131079:135171,131080:135172,131081:135173,131082:135174,131083:135183,131084:135175,131085:135176,131086:135177,131087:135178,131088:135179,131089:135180,131090:0,131091:135181,131092:139266,131093:139267,131094:139270,131095:139271,131096:139272};return table[param]}};Module[\"GLFW\"]=GLFW;function GLFW_Window(id,width,height,title,monitor,share){this.id=id;this.x=0;this.y=0;this.fullscreen=false;this.storedX=0;this.storedY=0;this.width=width;this.height=height;this.storedWidth=width;this.storedHeight=height;this.title=title;this.monitor=monitor;this.share=share;this.attributes=GLFW.hints;this.inputModes={208897:212993,208898:0,208899:0};this.buttons=0;this.keys=new Array;this.domKeys=new Array;this.shouldClose=0;this.title=null;this.windowPosFunc=null;this.windowSizeFunc=null;this.windowCloseFunc=null;this.windowRefreshFunc=null;this.windowFocusFunc=null;this.windowIconifyFunc=null;this.framebufferSizeFunc=null;this.mouseButtonFunc=null;this.cursorPosFunc=null;this.cursorEnterFunc=null;this.scrollFunc=null;this.dropFunc=null;this.keyFunc=null;this.charFunc=null;this.userptr=null}Module[\"GLFW_Window\"]=GLFW_Window;function _glfwInit(){if(GLFW.windows)return 1;GLFW.initialTime=GLFW.getTime();GLFW.hints=GLFW.defaultHints;GLFW.windows=new Array;GLFW.active=null;window.addEventListener(\"gamepadconnected\",GLFW.onGamepadConnected,true);window.addEventListener(\"gamepaddisconnected\",GLFW.onGamepadDisconnected,true);window.addEventListener(\"keydown\",GLFW.onKeydown,true);window.addEventListener(\"keypress\",GLFW.onKeyPress,true);window.addEventListener(\"keyup\",GLFW.onKeyup,true);window.addEventListener(\"blur\",GLFW.onBlur,true);Module[\"canvas\"].addEventListener(\"touchmove\",GLFW.onMousemove,true);Module[\"canvas\"].addEventListener(\"touchstart\",GLFW.onMouseButtonDown,true);Module[\"canvas\"].addEventListener(\"touchcancel\",GLFW.onMouseButtonUp,true);Module[\"canvas\"].addEventListener(\"touchend\",GLFW.onMouseButtonUp,true);Module[\"canvas\"].addEventListener(\"mousemove\",GLFW.onMousemove,true);Module[\"canvas\"].addEventListener(\"mousedown\",GLFW.onMouseButtonDown,true);Module[\"canvas\"].addEventListener(\"mouseup\",GLFW.onMouseButtonUp,true);Module[\"canvas\"].addEventListener(\"wheel\",GLFW.onMouseWheel,true);Module[\"canvas\"].addEventListener(\"mousewheel\",GLFW.onMouseWheel,true);Module[\"canvas\"].addEventListener(\"mouseenter\",GLFW.onMouseenter,true);Module[\"canvas\"].addEventListener(\"mouseleave\",GLFW.onMouseleave,true);Module[\"canvas\"].addEventListener(\"drop\",GLFW.onDrop,true);Module[\"canvas\"].addEventListener(\"dragover\",GLFW.onDragover,true);Browser.resizeListeners.push(function(width,height){GLFW.onCanvasResize(width,height)});return 1}Module[\"_glfwInit\"]=_glfwInit;_glfwInit.sig=\"i\";function _glfwTerminate(){window.removeEventListener(\"gamepadconnected\",GLFW.onGamepadConnected,true);window.removeEventListener(\"gamepaddisconnected\",GLFW.onGamepadDisconnected,true);window.removeEventListener(\"keydown\",GLFW.onKeydown,true);window.removeEventListener(\"keypress\",GLFW.onKeyPress,true);window.removeEventListener(\"keyup\",GLFW.onKeyup,true);window.removeEventListener(\"blur\",GLFW.onBlur,true);Module[\"canvas\"].removeEventListener(\"touchmove\",GLFW.onMousemove,true);Module[\"canvas\"].removeEventListener(\"touchstart\",GLFW.onMouseButtonDown,true);Module[\"canvas\"].removeEventListener(\"touchcancel\",GLFW.onMouseButtonUp,true);Module[\"canvas\"].removeEventListener(\"touchend\",GLFW.onMouseButtonUp,true);Module[\"canvas\"].removeEventListener(\"mousemove\",GLFW.onMousemove,true);Module[\"canvas\"].removeEventListener(\"mousedown\",GLFW.onMouseButtonDown,true);Module[\"canvas\"].removeEventListener(\"mouseup\",GLFW.onMouseButtonUp,true);Module[\"canvas\"].removeEventListener(\"wheel\",GLFW.onMouseWheel,true);Module[\"canvas\"].removeEventListener(\"mousewheel\",GLFW.onMouseWheel,true);Module[\"canvas\"].removeEventListener(\"mouseenter\",GLFW.onMouseenter,true);Module[\"canvas\"].removeEventListener(\"mouseleave\",GLFW.onMouseleave,true);Module[\"canvas\"].removeEventListener(\"drop\",GLFW.onDrop,true);Module[\"canvas\"].removeEventListener(\"dragover\",GLFW.onDragover,true);Module[\"canvas\"].width=Module[\"canvas\"].height=1;GLFW.windows=null;GLFW.active=null}Module[\"_glfwTerminate\"]=_glfwTerminate;_glfwTerminate.sig=\"v\";function _glfwGetVersion(major,minor,rev){setValue(major,2,\"i32\");setValue(minor,7,\"i32\");setValue(rev,7,\"i32\")}Module[\"_glfwGetVersion\"]=_glfwGetVersion;_glfwGetVersion.sig=\"viii\";function _glfwPollEvents(){}Module[\"_glfwPollEvents\"]=_glfwPollEvents;_glfwPollEvents.sig=\"v\";function _glfwWaitEvents(){}Module[\"_glfwWaitEvents\"]=_glfwWaitEvents;_glfwWaitEvents.sig=\"v\";function _glfwGetTime(){return GLFW.getTime()-GLFW.initialTime}Module[\"_glfwGetTime\"]=_glfwGetTime;_glfwGetTime.sig=\"d\";function _glfwSetTime(time){GLFW.initialTime=GLFW.getTime()-time}Module[\"_glfwSetTime\"]=_glfwSetTime;_glfwSetTime.sig=\"vd\";function _glfwExtensionSupported(extension){if(!GLFW.extensions){GLFW.extensions=UTF8ToString(_glGetString(7939)).split(\" \")}if(GLFW.extensions.indexOf(extension)!=-1)return 1;return GLFW.extensions.indexOf(\"GL_\"+extension)!=-1}Module[\"_glfwExtensionSupported\"]=_glfwExtensionSupported;_glfwExtensionSupported.sig=\"ii\";function _glfwSwapInterval(interval){interval=Math.abs(interval);if(interval==0)_emscripten_set_main_loop_timing(0,0);else _emscripten_set_main_loop_timing(1,interval)}Module[\"_glfwSwapInterval\"]=_glfwSwapInterval;_glfwSwapInterval.sig=\"vi\";function _glfwOpenWindow(width,height,redbits,greenbits,bluebits,alphabits,depthbits,stencilbits,mode){GLFW.hints[135169]=redbits;GLFW.hints[135170]=greenbits;GLFW.hints[135171]=bluebits;GLFW.hints[135172]=alphabits;GLFW.hints[135173]=depthbits;GLFW.hints[135174]=stencilbits;GLFW.createWindow(width,height,\"GLFW2 Window\",0,0);return 1}Module[\"_glfwOpenWindow\"]=_glfwOpenWindow;function _glfwCloseWindow(){GLFW.destroyWindow(GLFW.active.id)}Module[\"_glfwCloseWindow\"]=_glfwCloseWindow;function _glfwOpenWindowHint(target,hint){target=GLFW.GLFW2ParamToGLFW3Param(target);GLFW.hints[target]=hint}Module[\"_glfwOpenWindowHint\"]=_glfwOpenWindowHint;function _glfwGetWindowSize(width,height){GLFW.getWindowSize(GLFW.active.id,width,height)}Module[\"_glfwGetWindowSize\"]=_glfwGetWindowSize;function _glfwSetWindowSize(width,height){GLFW.setWindowSize(GLFW.active.id,width,height)}Module[\"_glfwSetWindowSize\"]=_glfwSetWindowSize;function _glfwGetWindowPos(x,y){GLFW.getWindowPos(GLFW.active.id,x,y)}Module[\"_glfwGetWindowPos\"]=_glfwGetWindowPos;function _glfwSetWindowPos(x,y){GLFW.setWindowPos(GLFW.active.id,x,y)}Module[\"_glfwSetWindowPos\"]=_glfwSetWindowPos;function _glfwSetWindowTitle(title){GLFW.setWindowTitle(GLFW.active.id,title)}Module[\"_glfwSetWindowTitle\"]=_glfwSetWindowTitle;function _glfwIconifyWindow(){}Module[\"_glfwIconifyWindow\"]=_glfwIconifyWindow;function _glfwRestoreWindow(){}Module[\"_glfwRestoreWindow\"]=_glfwRestoreWindow;function _glfwSwapBuffers(){GLFW.swapBuffers(GLFW.active.id)}Module[\"_glfwSwapBuffers\"]=_glfwSwapBuffers;function _glfwGetWindowParam(param){param=GLFW.GLFW2ParamToGLFW3Param(param);return GLFW.hints[param]}Module[\"_glfwGetWindowParam\"]=_glfwGetWindowParam;function _glfwSetWindowSizeCallback(cbfun){GLFW.setWindowSizeCallback(GLFW.active.id,cbfun)}Module[\"_glfwSetWindowSizeCallback\"]=_glfwSetWindowSizeCallback;function _glfwSetWindowCloseCallback(cbfun){GLFW.setWindowCloseCallback(GLFW.active.id,cbfun)}Module[\"_glfwSetWindowCloseCallback\"]=_glfwSetWindowCloseCallback;function _glfwSetWindowRefreshCallback(cbfun){GLFW.setWindowRefreshCallback(GLFW.active.id,cbfun)}Module[\"_glfwSetWindowRefreshCallback\"]=_glfwSetWindowRefreshCallback;function _glfwGetKey(key){return GLFW.getKey(GLFW.active.id,key)}Module[\"_glfwGetKey\"]=_glfwGetKey;function _glfwGetMouseButton(button){return GLFW.getMouseButton(GLFW.active.id,button)}Module[\"_glfwGetMouseButton\"]=_glfwGetMouseButton;function _glfwGetMousePos(x,y){GLFW.getMousePos(GLFW.active.id,x,y)}Module[\"_glfwGetMousePos\"]=_glfwGetMousePos;function _glfwSetMousePos(x,y){GLFW.setCursorPos(GLFW.active.id,x,y)}Module[\"_glfwSetMousePos\"]=_glfwSetMousePos;function _glfwGetMouseWheel(){return 0}Module[\"_glfwGetMouseWheel\"]=_glfwGetMouseWheel;function _glfwSetMouseWheel(pos){}Module[\"_glfwSetMouseWheel\"]=_glfwSetMouseWheel;function _glfwSetKeyCallback(cbfun){GLFW.setKeyCallback(GLFW.active.id,cbfun)}Module[\"_glfwSetKeyCallback\"]=_glfwSetKeyCallback;function _glfwSetCharCallback(cbfun){GLFW.setCharCallback(GLFW.active.id,cbfun)}Module[\"_glfwSetCharCallback\"]=_glfwSetCharCallback;function _glfwSetMouseButtonCallback(cbfun){GLFW.setMouseButtonCallback(GLFW.active.id,cbfun)}Module[\"_glfwSetMouseButtonCallback\"]=_glfwSetMouseButtonCallback;function _glfwSetMousePosCallback(cbfun){GLFW.setCursorPosCallback(GLFW.active.id,cbfun)}Module[\"_glfwSetMousePosCallback\"]=_glfwSetMousePosCallback;function _glfwSetMouseWheelCallback(cbfun){GLFW.setScrollCallback(GLFW.active.id,cbfun)}Module[\"_glfwSetMouseWheelCallback\"]=_glfwSetMouseWheelCallback;function _glfwGetDesktopMode(mode){throw\"glfwGetDesktopMode is not implemented.\"}Module[\"_glfwGetDesktopMode\"]=_glfwGetDesktopMode;function _glfwSleep(time){_sleep(time)}Module[\"_glfwSleep\"]=_glfwSleep;function _glfwEnable(target){target=GLFW.GLFW2ParamToGLFW3Param(target);GLFW.hints[target]=false}Module[\"_glfwEnable\"]=_glfwEnable;function _glfwDisable(target){target=GLFW.GLFW2ParamToGLFW3Param(target);GLFW.hints[target]=true}Module[\"_glfwDisable\"]=_glfwDisable;function _glfwGetGLVersion(major,minor,rev){setValue(major,0,\"i32\");setValue(minor,0,\"i32\");setValue(rev,1,\"i32\")}Module[\"_glfwGetGLVersion\"]=_glfwGetGLVersion;function _glfwCreateThread(fun,arg){wasmTable.get(str)(fun,arg);return 0}Module[\"_glfwCreateThread\"]=_glfwCreateThread;function _glfwDestroyThread(ID){}Module[\"_glfwDestroyThread\"]=_glfwDestroyThread;function _glfwWaitThread(ID,waitmode){}Module[\"_glfwWaitThread\"]=_glfwWaitThread;function _glfwGetThreadID(){return 0}Module[\"_glfwGetThreadID\"]=_glfwGetThreadID;function _glfwCreateMutex(){throw\"glfwCreateMutex is not implemented.\"}Module[\"_glfwCreateMutex\"]=_glfwCreateMutex;function _glfwDestroyMutex(mutex){throw\"glfwDestroyMutex is not implemented.\"}Module[\"_glfwDestroyMutex\"]=_glfwDestroyMutex;function _glfwLockMutex(mutex){throw\"glfwLockMutex is not implemented.\"}Module[\"_glfwLockMutex\"]=_glfwLockMutex;function _glfwUnlockMutex(mutex){throw\"glfwUnlockMutex is not implemented.\"}Module[\"_glfwUnlockMutex\"]=_glfwUnlockMutex;function _glfwCreateCond(){throw\"glfwCreateCond is not implemented.\"}Module[\"_glfwCreateCond\"]=_glfwCreateCond;function _glfwDestroyCond(cond){throw\"glfwDestroyCond is not implemented.\"}Module[\"_glfwDestroyCond\"]=_glfwDestroyCond;function _glfwWaitCond(cond,mutex,timeout){throw\"glfwWaitCond is not implemented.\"}Module[\"_glfwWaitCond\"]=_glfwWaitCond;function _glfwSignalCond(cond){throw\"glfwSignalCond is not implemented.\"}Module[\"_glfwSignalCond\"]=_glfwSignalCond;function _glfwBroadcastCond(cond){throw\"glfwBroadcastCond is not implemented.\"}Module[\"_glfwBroadcastCond\"]=_glfwBroadcastCond;function _glfwGetNumberOfProcessors(){return 1}Module[\"_glfwGetNumberOfProcessors\"]=_glfwGetNumberOfProcessors;function _glfwReadImage(name,img,flags){throw\"glfwReadImage is not implemented.\"}Module[\"_glfwReadImage\"]=_glfwReadImage;function _glfwReadMemoryImage(data,size,img,flags){throw\"glfwReadMemoryImage is not implemented.\"}Module[\"_glfwReadMemoryImage\"]=_glfwReadMemoryImage;function _glfwFreeImage(img){throw\"glfwFreeImage is not implemented.\"}Module[\"_glfwFreeImage\"]=_glfwFreeImage;function _glfwLoadTexture2D(name,flags){throw\"glfwLoadTexture2D is not implemented.\"}Module[\"_glfwLoadTexture2D\"]=_glfwLoadTexture2D;function _glfwLoadMemoryTexture2D(data,size,flags){throw\"glfwLoadMemoryTexture2D is not implemented.\"}Module[\"_glfwLoadMemoryTexture2D\"]=_glfwLoadMemoryTexture2D;function _glfwLoadTextureImage2D(img,flags){throw\"glfwLoadTextureImage2D is not implemented.\"}Module[\"_glfwLoadTextureImage2D\"]=_glfwLoadTextureImage2D;function _uuid_clear(uu){_memset(uu,0,16)}Module[\"_uuid_clear\"]=_uuid_clear;function _uuid_compare(uu1,uu2){return _memcmp(uu1,uu2,16)}Module[\"_uuid_compare\"]=_uuid_compare;function _uuid_copy(dst,src){_memcpy(dst,src,16)}Module[\"_uuid_copy\"]=_uuid_copy;function _uuid_generate(out){var uuid=null;if(ENVIRONMENT_IS_NODE){try{var rb=require(\"crypto\")[\"randomBytes\"];uuid=rb(16)}catch(e){}}else if(ENVIRONMENT_IS_WEB&&typeof window.crypto!==\"undefined\"&&typeof window.crypto.getRandomValues!==\"undefined\"){uuid=new Uint8Array(16);window.crypto.getRandomValues(uuid)}if(!uuid){uuid=new Array(16);var d=(new Date).getTime();for(var i=0;i<16;i++){var r=(d+Math.random()*256)%256|0;d=d/256|0;uuid[i]=r}}uuid[6]=uuid[6]&15|64;uuid[8]=uuid[8]&63|128;writeArrayToMemory(uuid,out)}Module[\"_uuid_generate\"]=_uuid_generate;function _uuid_is_null(uu){for(var i=0;i<4;i++,uu=uu+4|0){var val=HEAP32[uu>>2];if(val){return 0}}return 1}Module[\"_uuid_is_null\"]=_uuid_is_null;function _uuid_parse(inp,uu){inp=UTF8ToString(inp);if(inp.length===36){var i=0;var uuid=new Array(16);inp.toLowerCase().replace(/[0-9a-f]{2}/g,function(byte){if(i<16){uuid[i++]=parseInt(byte,16)}});if(i<16){return-1}else{writeArrayToMemory(uuid,uu);return 0}}else{return-1}}Module[\"_uuid_parse\"]=_uuid_parse;function _uuid_unparse(uu,out,upper){var i=0;var uuid=\"xxxx-xx-xx-xx-xxxxxx\".replace(/[x]/g,function(c){var r=upper?HEAPU8[uu+i>>0].toString(16).toUpperCase():HEAPU8[uu+i>>0].toString(16);r=r.length===1?\"0\"+r:r;i++;return r});stringToUTF8(uuid,out,37)}Module[\"_uuid_unparse\"]=_uuid_unparse;function _uuid_unparse_lower(uu,out){_uuid_unparse(uu,out)}Module[\"_uuid_unparse_lower\"]=_uuid_unparse_lower;function _uuid_unparse_upper(uu,out){_uuid_unparse(uu,out,true)}Module[\"_uuid_unparse_upper\"]=_uuid_unparse_upper;function _uuid_type(uu){return 4}Module[\"_uuid_type\"]=_uuid_type;function _uuid_variant(uu){return 1}Module[\"_uuid_variant\"]=_uuid_variant;var GLEW={isLinaroFork:1,extensions:null,error:{0:null,1:null,2:null,3:null,4:null,5:null,6:null,7:null,8:null},version:{1:null,2:null,3:null,4:null},errorStringConstantFromCode:function(error){if(GLEW.isLinaroFork){switch(error){case 4:return\"OpenGL ES lib expected, found OpenGL lib\";case 5:return\"OpenGL lib expected, found OpenGL ES lib\";case 6:return\"Missing EGL version\";case 7:return\"EGL 1.1 and up are supported\";default:break}}switch(error){case 0:return\"No error\";case 1:return\"Missing GL version\";case 2:return\"GL 1.1 and up are supported\";case 3:return\"GLX 1.2 and up are supported\";default:return null}},errorString:function(error){if(!GLEW.error[error]){var string=GLEW.errorStringConstantFromCode(error);if(!string){string=\"Unknown error\";error=8}GLEW.error[error]=allocate(intArrayFromString(string),ALLOC_NORMAL)}return GLEW.error[error]},versionStringConstantFromCode:function(name){switch(name){case 1:return\"1.10.0\";case 2:return\"1\";case 3:return\"10\";case 4:return\"0\";default:return null}},versionString:function(name){if(!GLEW.version[name]){var string=GLEW.versionStringConstantFromCode(name);if(!string)return 0;GLEW.version[name]=allocate(intArrayFromString(string),ALLOC_NORMAL)}return GLEW.version[name]},extensionIsSupported:function(name){if(!GLEW.extensions){GLEW.extensions=UTF8ToString(_glGetString(7939)).split(\" \")}if(GLEW.extensions.indexOf(name)!=-1)return 1;return GLEW.extensions.indexOf(\"GL_\"+name)!=-1}};Module[\"GLEW\"]=GLEW;function _glewInit(){return 0}Module[\"_glewInit\"]=_glewInit;function _glewIsSupported(name){var exts=UTF8ToString(name).split(\" \");for(var i=0;i<exts.length;++i){if(!GLEW.extensionIsSupported(exts[i]))return 0}return 1}Module[\"_glewIsSupported\"]=_glewIsSupported;function _glewGetExtension(name){return GLEW.extensionIsSupported(UTF8ToString(name))}Module[\"_glewGetExtension\"]=_glewGetExtension;function _glewGetErrorString(error){return GLEW.errorString(error)}Module[\"_glewGetErrorString\"]=_glewGetErrorString;_glewGetErrorString.sig=\"ii\";function _glewGetString(name){return GLEW.versionString(name)}Module[\"_glewGetString\"]=_glewGetString;var IDBStore={indexedDB:function(){if(typeof indexedDB!==\"undefined\")return indexedDB;var ret=null;if(typeof window===\"object\")ret=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;assert(ret,\"IDBStore used, but indexedDB not supported\");return ret},DB_VERSION:22,DB_STORE_NAME:\"FILE_DATA\",dbs:{},blobs:[0],getDB:function(name,callback){var db=IDBStore.dbs[name];if(db){return callback(null,db)}var req;try{req=IDBStore.indexedDB().open(name,IDBStore.DB_VERSION)}catch(e){return callback(e)}req.onupgradeneeded=function(e){var db=e.target.result;var transaction=e.target.transaction;var fileStore;if(db.objectStoreNames.contains(IDBStore.DB_STORE_NAME)){fileStore=transaction.objectStore(IDBStore.DB_STORE_NAME)}else{fileStore=db.createObjectStore(IDBStore.DB_STORE_NAME)}};req.onsuccess=function(){db=req.result;IDBStore.dbs[name]=db;callback(null,db)};req.onerror=function(e){callback(this.error);e.preventDefault()}},getStore:function(dbName,type,callback){IDBStore.getDB(dbName,function(error,db){if(error)return callback(error);var transaction=db.transaction([IDBStore.DB_STORE_NAME],type);transaction.onerror=function(e){callback(this.error||\"unknown error\");e.preventDefault()};var store=transaction.objectStore(IDBStore.DB_STORE_NAME);callback(null,store)})},getFile:function(dbName,id,callback){IDBStore.getStore(dbName,\"readonly\",function(err,store){if(err)return callback(err);var req=store.get(id);req.onsuccess=function(event){var result=event.target.result;if(!result){return callback(\"file \"+id+\" not found\")}else{return callback(null,result)}};req.onerror=function(error){callback(error)}})},setFile:function(dbName,id,data,callback){IDBStore.getStore(dbName,\"readwrite\",function(err,store){if(err)return callback(err);var req=store.put(data,id);req.onsuccess=function(event){callback()};req.onerror=function(error){callback(error)}})},deleteFile:function(dbName,id,callback){IDBStore.getStore(dbName,\"readwrite\",function(err,store){if(err)return callback(err);var req=store.delete(id);req.onsuccess=function(event){callback()};req.onerror=function(error){callback(error)}})},existsFile:function(dbName,id,callback){IDBStore.getStore(dbName,\"readonly\",function(err,store){if(err)return callback(err);var req=store.count(id);req.onsuccess=function(event){callback(null,event.target.result>0)};req.onerror=function(error){callback(error)}})}};Module[\"IDBStore\"]=IDBStore;function _emscripten_idb_async_load(db,id,arg,onload,onerror){IDBStore.getFile(UTF8ToString(db),UTF8ToString(id),function(error,byteArray){if(error){if(onerror)wasmTable.get(onerror)(arg);return}var buffer=_malloc(byteArray.length);HEAPU8.set(byteArray,buffer);wasmTable.get(onload)(arg,buffer,byteArray.length);_free(buffer)})}Module[\"_emscripten_idb_async_load\"]=_emscripten_idb_async_load;function _emscripten_idb_async_store(db,id,ptr,num,arg,onstore,onerror){IDBStore.setFile(UTF8ToString(db),UTF8ToString(id),new Uint8Array(HEAPU8.subarray(ptr,ptr+num)),function(error){if(error){if(onerror)wasmTable.get(onerror)(arg);return}if(onstore)wasmTable.get(onstore)(arg)})}Module[\"_emscripten_idb_async_store\"]=_emscripten_idb_async_store;function _emscripten_idb_async_delete(db,id,arg,ondelete,onerror){IDBStore.deleteFile(UTF8ToString(db),UTF8ToString(id),function(error){if(error){if(onerror)wasmTable.get(onerror)(arg);return}if(ondelete)wasmTable.get(ondelete)(arg)})}Module[\"_emscripten_idb_async_delete\"]=_emscripten_idb_async_delete;function _emscripten_idb_async_exists(db,id,arg,oncheck,onerror){IDBStore.existsFile(UTF8ToString(db),UTF8ToString(id),function(error,exists){if(error){if(onerror)wasmTable.get(onerror)(arg);return}if(oncheck)wasmTable.get(oncheck)(arg,exists)})}Module[\"_emscripten_idb_async_exists\"]=_emscripten_idb_async_exists;function _emscripten_idb_load(){throw\"Please compile your program with async support in order to use synchronous operations like emscripten_idb_load, etc.\"}Module[\"_emscripten_idb_load\"]=_emscripten_idb_load;function _emscripten_idb_store(){throw\"Please compile your program with async support in order to use synchronous operations like emscripten_idb_store, etc.\"}Module[\"_emscripten_idb_store\"]=_emscripten_idb_store;function _emscripten_idb_delete(){throw\"Please compile your program with async support in order to use synchronous operations like emscripten_idb_delete, etc.\"}Module[\"_emscripten_idb_delete\"]=_emscripten_idb_delete;function _emscripten_idb_exists(){throw\"Please compile your program with async support in order to use synchronous operations like emscripten_idb_exists, etc.\"}Module[\"_emscripten_idb_exists\"]=_emscripten_idb_exists;function runAndAbortIfError(func){try{return func()}catch(e){abort(e)}}Module[\"runAndAbortIfError\"]=runAndAbortIfError;function _emscripten_sleep(){throw\"Please compile your program with async support in order to use asynchronous operations like emscripten_sleep\"}Module[\"_emscripten_sleep\"]=_emscripten_sleep;function _emscripten_wget(){throw\"Please compile your program with async support in order to use asynchronous operations like emscripten_wget\"}Module[\"_emscripten_wget\"]=_emscripten_wget;function _emscripten_wget_data(){throw\"Please compile your program with async support in order to use asynchronous operations like emscripten_wget_data\"}Module[\"_emscripten_wget_data\"]=_emscripten_wget_data;function _emscripten_scan_registers(){throw\"Please compile your program with async support in order to use asynchronous operations like emscripten_scan_registers\"}Module[\"_emscripten_scan_registers\"]=_emscripten_scan_registers;function _emscripten_fiber_init(){throw\"Please compile your program with async support in order to use asynchronous operations like emscripten_fiber_init\"}Module[\"_emscripten_fiber_init\"]=_emscripten_fiber_init;function _emscripten_fiber_init_from_current_context(){throw\"Please compile your program with async support in order to use asynchronous operations like emscripten_fiber_init_from_current_context\"}Module[\"_emscripten_fiber_init_from_current_context\"]=_emscripten_fiber_init_from_current_context;function _emscripten_fiber_swap(){throw\"Please compile your program with async support in order to use asynchronous operations like emscripten_fiber_swap\"}Module[\"_emscripten_fiber_swap\"]=_emscripten_fiber_swap;function _emscripten_is_main_browser_thread(){return!ENVIRONMENT_IS_WORKER}Module[\"_emscripten_is_main_browser_thread\"]=_emscripten_is_main_browser_thread;Module[\"requestFullscreen\"]=function Module_requestFullscreen(lockPointer,resizeCanvas){Browser.requestFullscreen(lockPointer,resizeCanvas)};Module[\"requestAnimationFrame\"]=function Module_requestAnimationFrame(func){Browser.requestAnimationFrame(func)};Module[\"setCanvasSize\"]=function Module_setCanvasSize(width,height,noUpdates){Browser.setCanvasSize(width,height,noUpdates)};Module[\"pauseMainLoop\"]=function Module_pauseMainLoop(){Browser.mainLoop.pause()};Module[\"resumeMainLoop\"]=function Module_resumeMainLoop(){Browser.mainLoop.resume()};Module[\"getUserMedia\"]=function Module_getUserMedia(){Browser.getUserMedia()};Module[\"createContext\"]=function Module_createContext(canvas,useWebGL,setInModule,webGLContextAttributes){return Browser.createContext(canvas,useWebGL,setInModule,webGLContextAttributes)};var FSNode=function(parent,name,mode,rdev){if(!parent){parent=this}this.parent=parent;this.mount=parent.mount;this.mounted=null;this.id=FS.nextInode++;this.name=name;this.mode=mode;this.node_ops={};this.stream_ops={};this.rdev=rdev};var readMode=292|73;var writeMode=146;Object.defineProperties(FSNode.prototype,{read:{get:function(){return(this.mode&readMode)===readMode},set:function(val){val?this.mode|=readMode:this.mode&=~readMode}},write:{get:function(){return(this.mode&writeMode)===writeMode},set:function(val){val?this.mode|=writeMode:this.mode&=~writeMode}},isFolder:{get:function(){return FS.isDir(this.mode)}},isDevice:{get:function(){return FS.isChrdev(this.mode)}}});FS.FSNode=FSNode;FS.staticInit();Module[\"FS_createPath\"]=FS.createPath;Module[\"FS_createDataFile\"]=FS.createDataFile;Module[\"FS_createPreloadedFile\"]=FS.createPreloadedFile;Module[\"FS_createLazyFile\"]=FS.createLazyFile;Module[\"FS_createDevice\"]=FS.createDevice;Module[\"FS_unlink\"]=FS.unlink;if(ENVIRONMENT_IS_NODE){var fs=require(\"fs\");var NODEJS_PATH=require(\"path\");NODEFS.staticInit()}var GLctx;for(var i=0;i<32;++i)tempFixedLengthArray.push(new Array(i));var miniTempWebGLFloatBuffersStorage=new Float32Array(288);for(var i=0;i<288;++i){miniTempWebGLFloatBuffers[i]=miniTempWebGLFloatBuffersStorage.subarray(0,i+1)}var __miniTempWebGLIntBuffersStorage=new Int32Array(288);for(var i=0;i<288;++i){__miniTempWebGLIntBuffers[i]=__miniTempWebGLIntBuffersStorage.subarray(0,i+1)}var __setImmediate_id_counter=0;var __setImmediate_queue=[];var __setImmediate_message_id=\"_si\";function __setImmediate_cb(e){if(e.data===__setImmediate_message_id){e.stopPropagation();__setImmediate_queue.shift()();++__setImmediate_id_counter}}if(typeof setImmediate===\"undefined\"&&typeof addEventListener===\"function\"){addEventListener(\"message\",__setImmediate_cb,true);setImmediate=function(func){postMessage(__setImmediate_message_id,\"*\");return __setImmediate_id_counter+__setImmediate_queue.push(func)-1};clearImmediate=function(id){var index=id-__setImmediate_id_counter;if(index>=0&&index<__setImmediate_queue.length)__setImmediate_queue[index]=function(){}}}var ASSERTIONS=false;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}function intArrayToString(array){var ret=[];for(var i=0;i<array.length;i++){var chr=array[i];if(chr>255){if(ASSERTIONS){assert(false,\"Character code \"+chr+\" (\"+String.fromCharCode(chr)+\")  at offset \"+i+\" not in 0x00-0xFF.\")}chr&=255}ret.push(String.fromCharCode(chr))}return ret.join(\"\")}var asmLibraryArg={\"JsArray_Check\":JsArray_Check,\"JsArray_Delete\":JsArray_Delete,\"JsArray_Get\":JsArray_Get,\"JsArray_New\":JsArray_New,\"JsArray_Push\":JsArray_Push,\"JsArray_Set\":JsArray_Set,\"JsMap_New\":JsMap_New,\"JsMap_Set\":JsMap_Set,\"JsObject_DeleteString\":JsObject_DeleteString,\"JsObject_Dir\":JsObject_Dir,\"JsObject_Entries\":JsObject_Entries,\"JsObject_GetString\":JsObject_GetString,\"JsObject_Keys\":JsObject_Keys,\"JsObject_New\":JsObject_New,\"JsObject_SetString\":JsObject_SetString,\"JsObject_Values\":JsObject_Values,\"JsSet_Add\":JsSet_Add,\"JsSet_New\":JsSet_New,\"PyArray_Broadcast_part1\":PyArray_Broadcast_part1,\"_JsArray_PostProcess_helper\":_JsArray_PostProcess_helper,\"_JsArray_PushEntry_helper\":_JsArray_PushEntry_helper,\"_Unwind_GetIP\":__Unwind_GetIP,\"_Unwind_GetLanguageSpecificData\":__Unwind_GetLanguageSpecificData,\"_Unwind_GetRegionStart\":__Unwind_GetRegionStart,\"_Unwind_SetGR\":__Unwind_SetGR,\"_Unwind_SetIP\":__Unwind_SetIP,\"__asctime_r\":___asctime_r,\"__assert_fail\":___assert_fail,\"__clock_gettime\":___clock_gettime,\"__cxa_atexit\":___cxa_atexit,\"__gmtime_r\":___gmtime_r,\"__indirect_function_table\":wasmTable,\"__libc_current_sigrtmax\":___libc_current_sigrtmax,\"__libc_current_sigrtmin\":___libc_current_sigrtmin,\"__localtime_r\":___localtime_r,\"__map_file\":___map_file,\"__memory_base\":1024,\"__posix_spawnx\":___posix_spawnx,\"__pthread_once\":___pthread_once,\"__stack_pointer\":__stack_pointer,\"__sys__newselect\":___sys__newselect,\"__sys_accept4\":___sys_accept4,\"__sys_access\":___sys_access,\"__sys_acct\":___sys_acct,\"__sys_bind\":___sys_bind,\"__sys_chdir\":___sys_chdir,\"__sys_chmod\":___sys_chmod,\"__sys_chown32\":___sys_chown32,\"__sys_connect\":___sys_connect,\"__sys_dup\":___sys_dup,\"__sys_dup2\":___sys_dup2,\"__sys_dup3\":___sys_dup3,\"__sys_fadvise64_64\":___sys_fadvise64_64,\"__sys_fallocate\":___sys_fallocate,\"__sys_fchdir\":___sys_fchdir,\"__sys_fchmod\":___sys_fchmod,\"__sys_fchmodat\":___sys_fchmodat,\"__sys_fchown32\":___sys_fchown32,\"__sys_fchownat\":___sys_fchownat,\"__sys_fcntl64\":___sys_fcntl64,\"__sys_fdatasync\":___sys_fdatasync,\"__sys_fstat64\":___sys_fstat64,\"__sys_fstatat64\":___sys_fstatat64,\"__sys_fstatfs64\":___sys_fstatfs64,\"__sys_ftruncate64\":___sys_ftruncate64,\"__sys_getcwd\":___sys_getcwd,\"__sys_getdents64\":___sys_getdents64,\"__sys_getegid32\":___sys_getegid32,\"__sys_geteuid32\":___sys_geteuid32,\"__sys_getgid32\":___sys_getgid32,\"__sys_getgroups32\":___sys_getgroups32,\"__sys_getpeername\":___sys_getpeername,\"__sys_getpgid\":___sys_getpgid,\"__sys_getpid\":___sys_getpid,\"__sys_getppid\":___sys_getppid,\"__sys_getpriority\":___sys_getpriority,\"__sys_getresgid32\":___sys_getresgid32,\"__sys_getresuid32\":___sys_getresuid32,\"__sys_getrusage\":___sys_getrusage,\"__sys_getsid\":___sys_getsid,\"__sys_getsockname\":___sys_getsockname,\"__sys_getsockopt\":___sys_getsockopt,\"__sys_getuid32\":___sys_getuid32,\"__sys_ioctl\":___sys_ioctl,\"__sys_lchown32\":___sys_lchown32,\"__sys_link\":___sys_link,\"__sys_linkat\":___sys_linkat,\"__sys_listen\":___sys_listen,\"__sys_lstat64\":___sys_lstat64,\"__sys_madvise1\":___sys_madvise1,\"__sys_mincore\":___sys_mincore,\"__sys_mkdir\":___sys_mkdir,\"__sys_mkdirat\":___sys_mkdirat,\"__sys_mknod\":___sys_mknod,\"__sys_mknodat\":___sys_mknodat,\"__sys_mlock\":___sys_mlock,\"__sys_mlockall\":___sys_mlockall,\"__sys_mmap2\":___sys_mmap2,\"__sys_mprotect\":___sys_mprotect,\"__sys_mremap\":___sys_mremap,\"__sys_msync\":___sys_msync,\"__sys_munlock\":___sys_munlock,\"__sys_munlockall\":___sys_munlockall,\"__sys_munmap\":___sys_munmap,\"__sys_nice\":___sys_nice,\"__sys_open\":___sys_open,\"__sys_openat\":___sys_openat,\"__sys_pause\":___sys_pause,\"__sys_pipe\":___sys_pipe,\"__sys_pipe2\":___sys_pipe2,\"__sys_poll\":___sys_poll,\"__sys_prlimit64\":___sys_prlimit64,\"__sys_pselect6\":___sys_pselect6,\"__sys_readlink\":___sys_readlink,\"__sys_readlinkat\":___sys_readlinkat,\"__sys_recvfrom\":___sys_recvfrom,\"__sys_recvmmsg\":___sys_recvmmsg,\"__sys_recvmsg\":___sys_recvmsg,\"__sys_rename\":___sys_rename,\"__sys_renameat\":___sys_renameat,\"__sys_rmdir\":___sys_rmdir,\"__sys_sendmmsg\":___sys_sendmmsg,\"__sys_sendmsg\":___sys_sendmsg,\"__sys_sendto\":___sys_sendto,\"__sys_setdomainname\":___sys_setdomainname,\"__sys_setpgid\":___sys_setpgid,\"__sys_setpriority\":___sys_setpriority,\"__sys_setrlimit\":___sys_setrlimit,\"__sys_setsid\":___sys_setsid,\"__sys_setsockopt\":___sys_setsockopt,\"__sys_shutdown\":___sys_shutdown,\"__sys_socket\":___sys_socket,\"__sys_socketpair\":___sys_socketpair,\"__sys_stat64\":___sys_stat64,\"__sys_statfs64\":___sys_statfs64,\"__sys_symlink\":___sys_symlink,\"__sys_symlinkat\":___sys_symlinkat,\"__sys_sync\":___sys_sync,\"__sys_truncate64\":___sys_truncate64,\"__sys_ugetrlimit\":___sys_ugetrlimit,\"__sys_umask\":___sys_umask,\"__sys_uname\":___sys_uname,\"__sys_unlink\":___sys_unlink,\"__sys_unlinkat\":___sys_unlinkat,\"__sys_utimensat\":___sys_utimensat,\"__sys_wait4\":___sys_wait4,\"__table_base\":1,\"_exit\":__exit,\"_python2js_buffer_inner\":_python2js_buffer_inner,\"abort\":_abort,\"alBuffer3f\":_alBuffer3f,\"alBuffer3i\":_alBuffer3i,\"alBufferData\":_alBufferData,\"alBufferf\":_alBufferf,\"alBufferfv\":_alBufferfv,\"alBufferi\":_alBufferi,\"alBufferiv\":_alBufferiv,\"alDeleteBuffers\":_alDeleteBuffers,\"alDeleteSources\":_alDeleteSources,\"alDisable\":_alDisable,\"alDistanceModel\":_alDistanceModel,\"alDopplerFactor\":_alDopplerFactor,\"alDopplerVelocity\":_alDopplerVelocity,\"alEnable\":_alEnable,\"alGenBuffers\":_alGenBuffers,\"alGenSources\":_alGenSources,\"alGetBoolean\":_alGetBoolean,\"alGetBooleanv\":_alGetBooleanv,\"alGetBuffer3f\":_alGetBuffer3f,\"alGetBuffer3i\":_alGetBuffer3i,\"alGetBufferf\":_alGetBufferf,\"alGetBufferfv\":_alGetBufferfv,\"alGetBufferi\":_alGetBufferi,\"alGetBufferiv\":_alGetBufferiv,\"alGetDouble\":_alGetDouble,\"alGetDoublev\":_alGetDoublev,\"alGetEnumValue\":_alGetEnumValue,\"alGetError\":_alGetError,\"alGetFloat\":_alGetFloat,\"alGetFloatv\":_alGetFloatv,\"alGetInteger\":_alGetInteger,\"alGetIntegerv\":_alGetIntegerv,\"alGetListener3f\":_alGetListener3f,\"alGetListener3i\":_alGetListener3i,\"alGetListenerf\":_alGetListenerf,\"alGetListenerfv\":_alGetListenerfv,\"alGetListeneri\":_alGetListeneri,\"alGetListeneriv\":_alGetListeneriv,\"alGetSource3f\":_alGetSource3f,\"alGetSource3i\":_alGetSource3i,\"alGetSourcef\":_alGetSourcef,\"alGetSourcefv\":_alGetSourcefv,\"alGetSourcei\":_alGetSourcei,\"alGetSourceiv\":_alGetSourceiv,\"alGetString\":_alGetString,\"alIsBuffer\":_alIsBuffer,\"alIsEnabled\":_alIsEnabled,\"alIsExtensionPresent\":_alIsExtensionPresent,\"alIsSource\":_alIsSource,\"alListener3f\":_alListener3f,\"alListener3i\":_alListener3i,\"alListenerf\":_alListenerf,\"alListenerfv\":_alListenerfv,\"alListeneri\":_alListeneri,\"alListeneriv\":_alListeneriv,\"alSource3f\":_alSource3f,\"alSource3i\":_alSource3i,\"alSourcePause\":_alSourcePause,\"alSourcePausev\":_alSourcePausev,\"alSourcePlay\":_alSourcePlay,\"alSourcePlayv\":_alSourcePlayv,\"alSourceQueueBuffers\":_alSourceQueueBuffers,\"alSourceRewind\":_alSourceRewind,\"alSourceRewindv\":_alSourceRewindv,\"alSourceStop\":_alSourceStop,\"alSourceStopv\":_alSourceStopv,\"alSourceUnqueueBuffers\":_alSourceUnqueueBuffers,\"alSourcef\":_alSourcef,\"alSourcefv\":_alSourcefv,\"alSourcei\":_alSourcei,\"alSourceiv\":_alSourceiv,\"alSpeedOfSound\":_alSpeedOfSound,\"alarm\":_alarm,\"alcCaptureCloseDevice\":_alcCaptureCloseDevice,\"alcCaptureOpenDevice\":_alcCaptureOpenDevice,\"alcCaptureSamples\":_alcCaptureSamples,\"alcCaptureStart\":_alcCaptureStart,\"alcCaptureStop\":_alcCaptureStop,\"alcCloseDevice\":_alcCloseDevice,\"alcCreateContext\":_alcCreateContext,\"alcDestroyContext\":_alcDestroyContext,\"alcGetContextsDevice\":_alcGetContextsDevice,\"alcGetCurrentContext\":_alcGetCurrentContext,\"alcGetEnumValue\":_alcGetEnumValue,\"alcGetError\":_alcGetError,\"alcGetIntegerv\":_alcGetIntegerv,\"alcGetString\":_alcGetString,\"alcIsExtensionPresent\":_alcIsExtensionPresent,\"alcMakeContextCurrent\":_alcMakeContextCurrent,\"alcOpenDevice\":_alcOpenDevice,\"alcProcessContext\":_alcProcessContext,\"alcSuspendContext\":_alcSuspendContext,\"array_to_js\":array_to_js,\"chroot\":_chroot,\"clock\":_clock,\"clock_getres\":_clock_getres,\"clock_gettime\":_clock_gettime,\"console_error\":console_error,\"console_error_obj\":console_error_obj,\"create_once_callable\":create_once_callable,\"create_promise_handles\":create_promise_handles,\"destroy_proxies_js\":destroy_proxies_js,\"dlclose\":_dlclose,\"dlerror\":_dlerror,\"dlopen\":_dlopen,\"dlsym\":_dlsym,\"emscripten_alcDevicePauseSOFT\":_emscripten_alcDevicePauseSOFT,\"emscripten_alcDeviceResumeSOFT\":_emscripten_alcDeviceResumeSOFT,\"emscripten_alcGetStringiSOFT\":_emscripten_alcGetStringiSOFT,\"emscripten_alcResetDeviceSOFT\":_emscripten_alcResetDeviceSOFT,\"emscripten_asm_const_int\":_emscripten_asm_const_int,\"emscripten_exit_with_live_runtime\":_emscripten_exit_with_live_runtime,\"emscripten_get_heap_max\":_emscripten_get_heap_max,\"emscripten_glActiveTexture\":_emscripten_glActiveTexture,\"emscripten_glAttachShader\":_emscripten_glAttachShader,\"emscripten_glBeginQueryEXT\":_emscripten_glBeginQueryEXT,\"emscripten_glBindAttribLocation\":_emscripten_glBindAttribLocation,\"emscripten_glBindBuffer\":_emscripten_glBindBuffer,\"emscripten_glBindFramebuffer\":_emscripten_glBindFramebuffer,\"emscripten_glBindRenderbuffer\":_emscripten_glBindRenderbuffer,\"emscripten_glBindTexture\":_emscripten_glBindTexture,\"emscripten_glBindVertexArrayOES\":_emscripten_glBindVertexArrayOES,\"emscripten_glBlendColor\":_emscripten_glBlendColor,\"emscripten_glBlendEquation\":_emscripten_glBlendEquation,\"emscripten_glBlendEquationSeparate\":_emscripten_glBlendEquationSeparate,\"emscripten_glBlendFunc\":_emscripten_glBlendFunc,\"emscripten_glBlendFuncSeparate\":_emscripten_glBlendFuncSeparate,\"emscripten_glBufferData\":_emscripten_glBufferData,\"emscripten_glBufferSubData\":_emscripten_glBufferSubData,\"emscripten_glCheckFramebufferStatus\":_emscripten_glCheckFramebufferStatus,\"emscripten_glClear\":_emscripten_glClear,\"emscripten_glClearColor\":_emscripten_glClearColor,\"emscripten_glClearDepthf\":_emscripten_glClearDepthf,\"emscripten_glClearStencil\":_emscripten_glClearStencil,\"emscripten_glColorMask\":_emscripten_glColorMask,\"emscripten_glCompileShader\":_emscripten_glCompileShader,\"emscripten_glCompressedTexImage2D\":_emscripten_glCompressedTexImage2D,\"emscripten_glCompressedTexSubImage2D\":_emscripten_glCompressedTexSubImage2D,\"emscripten_glCopyTexImage2D\":_emscripten_glCopyTexImage2D,\"emscripten_glCopyTexSubImage2D\":_emscripten_glCopyTexSubImage2D,\"emscripten_glCreateProgram\":_emscripten_glCreateProgram,\"emscripten_glCreateShader\":_emscripten_glCreateShader,\"emscripten_glCullFace\":_emscripten_glCullFace,\"emscripten_glDeleteBuffers\":_emscripten_glDeleteBuffers,\"emscripten_glDeleteFramebuffers\":_emscripten_glDeleteFramebuffers,\"emscripten_glDeleteProgram\":_emscripten_glDeleteProgram,\"emscripten_glDeleteQueriesEXT\":_emscripten_glDeleteQueriesEXT,\"emscripten_glDeleteRenderbuffers\":_emscripten_glDeleteRenderbuffers,\"emscripten_glDeleteShader\":_emscripten_glDeleteShader,\"emscripten_glDeleteTextures\":_emscripten_glDeleteTextures,\"emscripten_glDeleteVertexArraysOES\":_emscripten_glDeleteVertexArraysOES,\"emscripten_glDepthFunc\":_emscripten_glDepthFunc,\"emscripten_glDepthMask\":_emscripten_glDepthMask,\"emscripten_glDepthRangef\":_emscripten_glDepthRangef,\"emscripten_glDetachShader\":_emscripten_glDetachShader,\"emscripten_glDisable\":_emscripten_glDisable,\"emscripten_glDisableVertexAttribArray\":_emscripten_glDisableVertexAttribArray,\"emscripten_glDrawArrays\":_emscripten_glDrawArrays,\"emscripten_glDrawArraysInstancedANGLE\":_emscripten_glDrawArraysInstancedANGLE,\"emscripten_glDrawBuffersWEBGL\":_emscripten_glDrawBuffersWEBGL,\"emscripten_glDrawElements\":_emscripten_glDrawElements,\"emscripten_glDrawElementsInstancedANGLE\":_emscripten_glDrawElementsInstancedANGLE,\"emscripten_glEnable\":_emscripten_glEnable,\"emscripten_glEnableVertexAttribArray\":_emscripten_glEnableVertexAttribArray,\"emscripten_glEndQueryEXT\":_emscripten_glEndQueryEXT,\"emscripten_glFinish\":_emscripten_glFinish,\"emscripten_glFlush\":_emscripten_glFlush,\"emscripten_glFramebufferRenderbuffer\":_emscripten_glFramebufferRenderbuffer,\"emscripten_glFramebufferTexture2D\":_emscripten_glFramebufferTexture2D,\"emscripten_glFrontFace\":_emscripten_glFrontFace,\"emscripten_glGenBuffers\":_emscripten_glGenBuffers,\"emscripten_glGenFramebuffers\":_emscripten_glGenFramebuffers,\"emscripten_glGenQueriesEXT\":_emscripten_glGenQueriesEXT,\"emscripten_glGenRenderbuffers\":_emscripten_glGenRenderbuffers,\"emscripten_glGenTextures\":_emscripten_glGenTextures,\"emscripten_glGenVertexArraysOES\":_emscripten_glGenVertexArraysOES,\"emscripten_glGenerateMipmap\":_emscripten_glGenerateMipmap,\"emscripten_glGetActiveAttrib\":_emscripten_glGetActiveAttrib,\"emscripten_glGetActiveUniform\":_emscripten_glGetActiveUniform,\"emscripten_glGetAttachedShaders\":_emscripten_glGetAttachedShaders,\"emscripten_glGetAttribLocation\":_emscripten_glGetAttribLocation,\"emscripten_glGetBooleanv\":_emscripten_glGetBooleanv,\"emscripten_glGetBufferParameteriv\":_emscripten_glGetBufferParameteriv,\"emscripten_glGetError\":_emscripten_glGetError,\"emscripten_glGetFloatv\":_emscripten_glGetFloatv,\"emscripten_glGetFramebufferAttachmentParameteriv\":_emscripten_glGetFramebufferAttachmentParameteriv,\"emscripten_glGetIntegerv\":_emscripten_glGetIntegerv,\"emscripten_glGetProgramInfoLog\":_emscripten_glGetProgramInfoLog,\"emscripten_glGetProgramiv\":_emscripten_glGetProgramiv,\"emscripten_glGetQueryObjecti64vEXT\":_emscripten_glGetQueryObjecti64vEXT,\"emscripten_glGetQueryObjectivEXT\":_emscripten_glGetQueryObjectivEXT,\"emscripten_glGetQueryObjectui64vEXT\":_emscripten_glGetQueryObjectui64vEXT,\"emscripten_glGetQueryObjectuivEXT\":_emscripten_glGetQueryObjectuivEXT,\"emscripten_glGetQueryivEXT\":_emscripten_glGetQueryivEXT,\"emscripten_glGetRenderbufferParameteriv\":_emscripten_glGetRenderbufferParameteriv,\"emscripten_glGetShaderInfoLog\":_emscripten_glGetShaderInfoLog,\"emscripten_glGetShaderPrecisionFormat\":_emscripten_glGetShaderPrecisionFormat,\"emscripten_glGetShaderSource\":_emscripten_glGetShaderSource,\"emscripten_glGetShaderiv\":_emscripten_glGetShaderiv,\"emscripten_glGetString\":_emscripten_glGetString,\"emscripten_glGetTexParameterfv\":_emscripten_glGetTexParameterfv,\"emscripten_glGetTexParameteriv\":_emscripten_glGetTexParameteriv,\"emscripten_glGetUniformLocation\":_emscripten_glGetUniformLocation,\"emscripten_glGetUniformfv\":_emscripten_glGetUniformfv,\"emscripten_glGetUniformiv\":_emscripten_glGetUniformiv,\"emscripten_glGetVertexAttribPointerv\":_emscripten_glGetVertexAttribPointerv,\"emscripten_glGetVertexAttribfv\":_emscripten_glGetVertexAttribfv,\"emscripten_glGetVertexAttribiv\":_emscripten_glGetVertexAttribiv,\"emscripten_glHint\":_emscripten_glHint,\"emscripten_glIsBuffer\":_emscripten_glIsBuffer,\"emscripten_glIsEnabled\":_emscripten_glIsEnabled,\"emscripten_glIsFramebuffer\":_emscripten_glIsFramebuffer,\"emscripten_glIsProgram\":_emscripten_glIsProgram,\"emscripten_glIsQueryEXT\":_emscripten_glIsQueryEXT,\"emscripten_glIsRenderbuffer\":_emscripten_glIsRenderbuffer,\"emscripten_glIsShader\":_emscripten_glIsShader,\"emscripten_glIsTexture\":_emscripten_glIsTexture,\"emscripten_glIsVertexArrayOES\":_emscripten_glIsVertexArrayOES,\"emscripten_glLineWidth\":_emscripten_glLineWidth,\"emscripten_glLinkProgram\":_emscripten_glLinkProgram,\"emscripten_glPixelStorei\":_emscripten_glPixelStorei,\"emscripten_glPolygonOffset\":_emscripten_glPolygonOffset,\"emscripten_glQueryCounterEXT\":_emscripten_glQueryCounterEXT,\"emscripten_glReadPixels\":_emscripten_glReadPixels,\"emscripten_glReleaseShaderCompiler\":_emscripten_glReleaseShaderCompiler,\"emscripten_glRenderbufferStorage\":_emscripten_glRenderbufferStorage,\"emscripten_glSampleCoverage\":_emscripten_glSampleCoverage,\"emscripten_glScissor\":_emscripten_glScissor,\"emscripten_glShaderBinary\":_emscripten_glShaderBinary,\"emscripten_glShaderSource\":_emscripten_glShaderSource,\"emscripten_glStencilFunc\":_emscripten_glStencilFunc,\"emscripten_glStencilFuncSeparate\":_emscripten_glStencilFuncSeparate,\"emscripten_glStencilMask\":_emscripten_glStencilMask,\"emscripten_glStencilMaskSeparate\":_emscripten_glStencilMaskSeparate,\"emscripten_glStencilOp\":_emscripten_glStencilOp,\"emscripten_glStencilOpSeparate\":_emscripten_glStencilOpSeparate,\"emscripten_glTexImage2D\":_emscripten_glTexImage2D,\"emscripten_glTexParameterf\":_emscripten_glTexParameterf,\"emscripten_glTexParameterfv\":_emscripten_glTexParameterfv,\"emscripten_glTexParameteri\":_emscripten_glTexParameteri,\"emscripten_glTexParameteriv\":_emscripten_glTexParameteriv,\"emscripten_glTexSubImage2D\":_emscripten_glTexSubImage2D,\"emscripten_glUniform1f\":_emscripten_glUniform1f,\"emscripten_glUniform1fv\":_emscripten_glUniform1fv,\"emscripten_glUniform1i\":_emscripten_glUniform1i,\"emscripten_glUniform1iv\":_emscripten_glUniform1iv,\"emscripten_glUniform2f\":_emscripten_glUniform2f,\"emscripten_glUniform2fv\":_emscripten_glUniform2fv,\"emscripten_glUniform2i\":_emscripten_glUniform2i,\"emscripten_glUniform2iv\":_emscripten_glUniform2iv,\"emscripten_glUniform3f\":_emscripten_glUniform3f,\"emscripten_glUniform3fv\":_emscripten_glUniform3fv,\"emscripten_glUniform3i\":_emscripten_glUniform3i,\"emscripten_glUniform3iv\":_emscripten_glUniform3iv,\"emscripten_glUniform4f\":_emscripten_glUniform4f,\"emscripten_glUniform4fv\":_emscripten_glUniform4fv,\"emscripten_glUniform4i\":_emscripten_glUniform4i,\"emscripten_glUniform4iv\":_emscripten_glUniform4iv,\"emscripten_glUniformMatrix2fv\":_emscripten_glUniformMatrix2fv,\"emscripten_glUniformMatrix3fv\":_emscripten_glUniformMatrix3fv,\"emscripten_glUniformMatrix4fv\":_emscripten_glUniformMatrix4fv,\"emscripten_glUseProgram\":_emscripten_glUseProgram,\"emscripten_glValidateProgram\":_emscripten_glValidateProgram,\"emscripten_glVertexAttrib1f\":_emscripten_glVertexAttrib1f,\"emscripten_glVertexAttrib1fv\":_emscripten_glVertexAttrib1fv,\"emscripten_glVertexAttrib2f\":_emscripten_glVertexAttrib2f,\"emscripten_glVertexAttrib2fv\":_emscripten_glVertexAttrib2fv,\"emscripten_glVertexAttrib3f\":_emscripten_glVertexAttrib3f,\"emscripten_glVertexAttrib3fv\":_emscripten_glVertexAttrib3fv,\"emscripten_glVertexAttrib4f\":_emscripten_glVertexAttrib4f,\"emscripten_glVertexAttrib4fv\":_emscripten_glVertexAttrib4fv,\"emscripten_glVertexAttribDivisorANGLE\":_emscripten_glVertexAttribDivisorANGLE,\"emscripten_glVertexAttribPointer\":_emscripten_glVertexAttribPointer,\"emscripten_glViewport\":_emscripten_glViewport,\"emscripten_longjmp\":_emscripten_longjmp,\"emscripten_memcpy_big\":_emscripten_memcpy_big,\"emscripten_resize_heap\":_emscripten_resize_heap,\"emscripten_thread_sleep\":_emscripten_thread_sleep,\"endpwent\":_endpwent,\"environ_get\":_environ_get,\"environ_sizes_get\":_environ_sizes_get,\"error_handling_init_js\":error_handling_init_js,\"execve\":_execve,\"exit\":_exit,\"fd_close\":_fd_close,\"fd_fdstat_get\":_fd_fdstat_get,\"fd_pread\":_fd_pread,\"fd_pwrite\":_fd_pwrite,\"fd_read\":_fd_read,\"fd_seek\":_fd_seek,\"fd_sync\":_fd_sync,\"fd_write\":_fd_write,\"ffi_call\":ffi_call,\"ffi_closure_alloc_helper\":ffi_closure_alloc_helper,\"ffi_closure_free_helper\":ffi_closure_free_helper,\"ffi_prep_closure_loc_helper\":ffi_prep_closure_loc_helper,\"fork\":_fork,\"gai_strerror\":_gai_strerror,\"getTempRet0\":getTempRet0,\"getaddrinfo\":_getaddrinfo,\"getentropy\":_getentropy,\"gethostbyaddr\":_gethostbyaddr,\"gethostbyname\":_gethostbyname,\"getitimer\":_getitimer,\"getloadavg\":_getloadavg,\"getnameinfo\":_getnameinfo,\"getprotobyname\":_getprotobyname,\"getpwent\":_getpwent,\"getpwnam_r\":_getpwnam_r,\"getpwuid_r\":_getpwuid_r,\"gettimeofday\":_gettimeofday,\"gmtime_r\":_gmtime_r,\"hiwire_assign_from_ptr\":hiwire_assign_from_ptr,\"hiwire_assign_to_ptr\":hiwire_assign_to_ptr,\"hiwire_call\":hiwire_call,\"hiwire_call_bound\":hiwire_call_bound,\"hiwire_call_delete_method\":hiwire_call_delete_method,\"hiwire_call_get_method\":hiwire_call_get_method,\"hiwire_call_has_method\":hiwire_call_has_method,\"hiwire_call_includes_method\":hiwire_call_includes_method,\"hiwire_call_member\":hiwire_call_member,\"hiwire_call_set_method\":hiwire_call_set_method,\"hiwire_construct\":hiwire_construct,\"hiwire_constructor_name\":hiwire_constructor_name,\"hiwire_decref\":hiwire_decref,\"hiwire_double\":hiwire_double,\"hiwire_equal\":hiwire_equal,\"hiwire_get_bool\":hiwire_get_bool,\"hiwire_get_buffer_datatype\":hiwire_get_buffer_datatype,\"hiwire_get_byteLength\":hiwire_get_byteLength,\"hiwire_get_byteOffset\":hiwire_get_byteOffset,\"hiwire_get_iterator\":hiwire_get_iterator,\"hiwire_get_length\":hiwire_get_length,\"hiwire_greater_than\":hiwire_greater_than,\"hiwire_greater_than_equal\":hiwire_greater_than_equal,\"hiwire_has_get_method\":hiwire_has_get_method,\"hiwire_has_has_method\":hiwire_has_has_method,\"hiwire_has_includes_method\":hiwire_has_includes_method,\"hiwire_has_length\":hiwire_has_length,\"hiwire_has_set_method\":hiwire_has_set_method,\"hiwire_incref\":hiwire_incref,\"hiwire_init\":hiwire_init,\"hiwire_int\":hiwire_int,\"hiwire_int_from_digits\":hiwire_int_from_digits,\"hiwire_is_comlink_proxy\":hiwire_is_comlink_proxy,\"hiwire_is_error\":hiwire_is_error,\"hiwire_is_function\":hiwire_is_function,\"hiwire_is_iterable\":hiwire_is_iterable,\"hiwire_is_iterator\":hiwire_is_iterator,\"hiwire_is_on_wasm_heap\":hiwire_is_on_wasm_heap,\"hiwire_is_promise\":hiwire_is_promise,\"hiwire_is_pyproxy\":hiwire_is_pyproxy,\"hiwire_is_typedarray\":hiwire_is_typedarray,\"hiwire_less_than\":hiwire_less_than,\"hiwire_less_than_equal\":hiwire_less_than_equal,\"hiwire_next\":hiwire_next,\"hiwire_not_equal\":hiwire_not_equal,\"hiwire_resolve_promise\":hiwire_resolve_promise,\"hiwire_string_ascii\":hiwire_string_ascii,\"hiwire_string_ucs1\":hiwire_string_ucs1,\"hiwire_string_ucs2\":hiwire_string_ucs2,\"hiwire_string_ucs4\":hiwire_string_ucs4,\"hiwire_string_utf8\":hiwire_string_utf8,\"hiwire_subarray\":hiwire_subarray,\"hiwire_throw_error\":hiwire_throw_error,\"hiwire_to_string\":hiwire_to_string,\"hiwire_typeof\":hiwire_typeof,\"invoke_ii\":invoke_ii,\"invoke_iii\":invoke_iii,\"invoke_iiii\":invoke_iiii,\"invoke_iiiii\":invoke_iiiii,\"invoke_vi\":invoke_vi,\"invoke_vii\":invoke_vii,\"invoke_viiii\":invoke_viiii,\"js2python\":js2python,\"js2python_convert\":js2python_convert,\"js2python_init\":js2python_init,\"kill\":_kill,\"killpg\":_killpg,\"localtime_r\":_localtime_r,\"log_python_error\":log_python_error,\"memory\":wasmMemory,\"mktime\":_mktime,\"new_error\":new_error,\"posix_spawn\":_posix_spawn,\"proxy_cache_get\":proxy_cache_get,\"proxy_cache_set\":proxy_cache_set,\"pthread_cleanup_pop\":_pthread_cleanup_pop,\"pthread_cleanup_push\":_pthread_cleanup_push,\"pthread_create\":_pthread_create,\"pthread_join\":_pthread_join,\"pthread_sigmask\":_pthread_sigmask,\"pyproxy_Check\":pyproxy_Check,\"pyproxy_mark_borrowed\":pyproxy_mark_borrowed,\"pyproxy_new\":pyproxy_new,\"python2js_buffer_init\":python2js_buffer_init,\"raise\":_raise,\"setTempRet0\":setTempRet0,\"setgroups\":_setgroups,\"setitimer\":_setitimer,\"setpwent\":_setpwent,\"sigemptyset\":_sigemptyset,\"sigfillset\":_sigfillset,\"siginterrupt\":_siginterrupt,\"sigismember\":_sigismember,\"signal\":_signal,\"sigpending\":_sigpending,\"strftime\":_strftime,\"strftime_l\":_strftime_l,\"system\":_system,\"time\":_time,\"times\":_times,\"unbox_small_structs\":unbox_small_structs,\"utimes\":_utimes,\"wait3\":_wait3,\"wait4\":_wait4,\"waitid\":_waitid};var asm=createWasm();var ___wasm_call_ctors=Module[\"___wasm_call_ctors\"]=function(){return(___wasm_call_ctors=Module[\"___wasm_call_ctors\"]=Module[\"asm\"][\"__wasm_call_ctors\"]).apply(null,arguments)};var _set_method_docstring=Module[\"_set_method_docstring\"]=function(){return(_set_method_docstring=Module[\"_set_method_docstring\"]=Module[\"asm\"][\"set_method_docstring\"]).apply(null,arguments)};var _PyObject_GetAttrString=Module[\"_PyObject_GetAttrString\"]=function(){return(_PyObject_GetAttrString=Module[\"_PyObject_GetAttrString\"]=Module[\"asm\"][\"PyObject_GetAttrString\"]).apply(null,arguments)};var __PyUnicode_FromId=Module[\"__PyUnicode_FromId\"]=function(){return(__PyUnicode_FromId=Module[\"__PyUnicode_FromId\"]=Module[\"asm\"][\"_PyUnicode_FromId\"]).apply(null,arguments)};var _PyObject_VectorcallMethod=Module[\"_PyObject_VectorcallMethod\"]=function(){return(_PyObject_VectorcallMethod=Module[\"_PyObject_VectorcallMethod\"]=Module[\"asm\"][\"PyObject_VectorcallMethod\"]).apply(null,arguments)};var _PyUnicode_AsUTF8AndSize=Module[\"_PyUnicode_AsUTF8AndSize\"]=function(){return(_PyUnicode_AsUTF8AndSize=Module[\"_PyUnicode_AsUTF8AndSize\"]=Module[\"asm\"][\"PyUnicode_AsUTF8AndSize\"]).apply(null,arguments)};var _malloc=Module[\"_malloc\"]=function(){return(_malloc=Module[\"_malloc\"]=Module[\"asm\"][\"malloc\"]).apply(null,arguments)};var _memcpy=Module[\"_memcpy\"]=function(){return(_memcpy=Module[\"_memcpy\"]=Module[\"asm\"][\"memcpy\"]).apply(null,arguments)};var __Py_Dealloc=Module[\"__Py_Dealloc\"]=function(){return(__Py_Dealloc=Module[\"__Py_Dealloc\"]=Module[\"asm\"][\"_Py_Dealloc\"]).apply(null,arguments)};var _add_methods_and_set_docstrings=Module[\"_add_methods_and_set_docstrings\"]=function(){return(_add_methods_and_set_docstrings=Module[\"_add_methods_and_set_docstrings\"]=Module[\"asm\"][\"add_methods_and_set_docstrings\"]).apply(null,arguments)};var _PyModule_AddFunctions=Module[\"_PyModule_AddFunctions\"]=function(){return(_PyModule_AddFunctions=Module[\"_PyModule_AddFunctions\"]=Module[\"asm\"][\"PyModule_AddFunctions\"]).apply(null,arguments)};var _docstring_init=Module[\"_docstring_init\"]=function(){return(_docstring_init=Module[\"_docstring_init\"]=Module[\"asm\"][\"docstring_init\"]).apply(null,arguments)};var _PyImport_ImportModule=Module[\"_PyImport_ImportModule\"]=function(){return(_PyImport_ImportModule=Module[\"_PyImport_ImportModule\"]=Module[\"asm\"][\"PyImport_ImportModule\"]).apply(null,arguments)};var _set_error=Module[\"_set_error\"]=function(){return(_set_error=Module[\"_set_error\"]=Module[\"asm\"][\"set_error\"]).apply(null,arguments)};var _PyErr_SetObject=Module[\"_PyErr_SetObject\"]=function(){return(_PyErr_SetObject=Module[\"_PyErr_SetObject\"]=Module[\"asm\"][\"PyErr_SetObject\"]).apply(null,arguments)};var _restore_sys_last_exception=Module[\"_restore_sys_last_exception\"]=function(){return(_restore_sys_last_exception=Module[\"_restore_sys_last_exception\"]=Module[\"asm\"][\"restore_sys_last_exception\"]).apply(null,arguments)};var __PySys_GetObjectId=Module[\"__PySys_GetObjectId\"]=function(){return(__PySys_GetObjectId=Module[\"__PySys_GetObjectId\"]=Module[\"asm\"][\"_PySys_GetObjectId\"]).apply(null,arguments)};var _PyErr_Restore=Module[\"_PyErr_Restore\"]=function(){return(_PyErr_Restore=Module[\"_PyErr_Restore\"]=Module[\"asm\"][\"PyErr_Restore\"]).apply(null,arguments)};var _wrap_exception=Module[\"_wrap_exception\"]=function(){return(_wrap_exception=Module[\"_wrap_exception\"]=Module[\"asm\"][\"wrap_exception\"]).apply(null,arguments)};var _PyErr_Fetch=Module[\"_PyErr_Fetch\"]=function(){return(_PyErr_Fetch=Module[\"_PyErr_Fetch\"]=Module[\"asm\"][\"PyErr_Fetch\"]).apply(null,arguments)};var _PyErr_NormalizeException=Module[\"_PyErr_NormalizeException\"]=function(){return(_PyErr_NormalizeException=Module[\"_PyErr_NormalizeException\"]=Module[\"asm\"][\"PyErr_NormalizeException\"]).apply(null,arguments)};var _PyErr_SetString=Module[\"_PyErr_SetString\"]=function(){return(_PyErr_SetString=Module[\"_PyErr_SetString\"]=Module[\"asm\"][\"PyErr_SetString\"]).apply(null,arguments)};var _PyException_SetTraceback=Module[\"_PyException_SetTraceback\"]=function(){return(_PyException_SetTraceback=Module[\"_PyException_SetTraceback\"]=Module[\"asm\"][\"PyException_SetTraceback\"]).apply(null,arguments)};var __PySys_SetObjectId=Module[\"__PySys_SetObjectId\"]=function(){return(__PySys_SetObjectId=Module[\"__PySys_SetObjectId\"]=Module[\"asm\"][\"_PySys_SetObjectId\"]).apply(null,arguments)};var __PyObject_CallMethodIdObjArgs=Module[\"__PyObject_CallMethodIdObjArgs\"]=function(){return(__PyObject_CallMethodIdObjArgs=Module[\"__PyObject_CallMethodIdObjArgs\"]=Module[\"asm\"][\"_PyObject_CallMethodIdObjArgs\"]).apply(null,arguments)};var _PyUnicode_New=Module[\"_PyUnicode_New\"]=function(){return(_PyUnicode_New=Module[\"_PyUnicode_New\"]=Module[\"asm\"][\"PyUnicode_New\"]).apply(null,arguments)};var _PyUnicode_Join=Module[\"_PyUnicode_Join\"]=function(){return(_PyUnicode_Join=Module[\"_PyUnicode_Join\"]=Module[\"asm\"][\"PyUnicode_Join\"]).apply(null,arguments)};var _PyUnicode_AsUTF8=Module[\"_PyUnicode_AsUTF8\"]=function(){return(_PyUnicode_AsUTF8=Module[\"_PyUnicode_AsUTF8\"]=Module[\"asm\"][\"PyUnicode_AsUTF8\"]).apply(null,arguments)};var _PySys_WriteStderr=Module[\"_PySys_WriteStderr\"]=function(){return(_PySys_WriteStderr=Module[\"_PySys_WriteStderr\"]=Module[\"asm\"][\"PySys_WriteStderr\"]).apply(null,arguments)};var _PyErr_Print=Module[\"_PyErr_Print\"]=function(){return(_PyErr_Print=Module[\"_PyErr_Print\"]=Module[\"asm\"][\"PyErr_Print\"]).apply(null,arguments)};var _PyErr_Display=Module[\"_PyErr_Display\"]=function(){return(_PyErr_Display=Module[\"_PyErr_Display\"]=Module[\"asm\"][\"PyErr_Display\"]).apply(null,arguments)};var _pythonexc2js=Module[\"_pythonexc2js\"]=function(){return(_pythonexc2js=Module[\"_pythonexc2js\"]=Module[\"asm\"][\"pythonexc2js\"]).apply(null,arguments)};var _trigger_fatal_error=Module[\"_trigger_fatal_error\"]=function(){return(_trigger_fatal_error=Module[\"_trigger_fatal_error\"]=Module[\"asm\"][\"trigger_fatal_error\"]).apply(null,arguments)};var _error_handling_init=Module[\"_error_handling_init\"]=function(){return(_error_handling_init=Module[\"_error_handling_init\"]=Module[\"asm\"][\"error_handling_init\"]).apply(null,arguments)};var _PyErr_NewException=Module[\"_PyErr_NewException\"]=function(){return(_PyErr_NewException=Module[\"_PyErr_NewException\"]=Module[\"asm\"][\"PyErr_NewException\"]).apply(null,arguments)};var _PyErr_NewExceptionWithDoc=Module[\"_PyErr_NewExceptionWithDoc\"]=function(){return(_PyErr_NewExceptionWithDoc=Module[\"_PyErr_NewExceptionWithDoc\"]=Module[\"asm\"][\"PyErr_NewExceptionWithDoc\"]).apply(null,arguments)};var _PyObject_SetAttrString=Module[\"_PyObject_SetAttrString\"]=function(){return(_PyObject_SetAttrString=Module[\"_PyObject_SetAttrString\"]=Module[\"asm\"][\"PyObject_SetAttrString\"]).apply(null,arguments)};var _numpy_patch_init=Module[\"_numpy_patch_init\"]=function(){return(_numpy_patch_init=Module[\"_numpy_patch_init\"]=Module[\"asm\"][\"numpy_patch_init\"]).apply(null,arguments)};var _set_shape_mismatch_err=Module[\"_set_shape_mismatch_err\"]=function(){return(_set_shape_mismatch_err=Module[\"_set_shape_mismatch_err\"]=Module[\"asm\"][\"set_shape_mismatch_err\"]).apply(null,arguments)};var _hiwire_bool=Module[\"_hiwire_bool\"]=function(){return(_hiwire_bool=Module[\"_hiwire_bool\"]=Module[\"asm\"][\"hiwire_bool\"]).apply(null,arguments)};var _hiwire_call_va=Module[\"_hiwire_call_va\"]=function(){return(_hiwire_call_va=Module[\"_hiwire_call_va\"]=Module[\"asm\"][\"hiwire_call_va\"]).apply(null,arguments)};var _hiwire_call_member_va=Module[\"_hiwire_call_member_va\"]=function(){return(_hiwire_call_member_va=Module[\"_hiwire_call_member_va\"]=Module[\"asm\"][\"hiwire_call_member_va\"]).apply(null,arguments)};var _PyUnicode_Data=Module[\"_PyUnicode_Data\"]=function(){return(_PyUnicode_Data=Module[\"_PyUnicode_Data\"]=Module[\"asm\"][\"PyUnicode_Data\"]).apply(null,arguments)};var __js2python_none=Module[\"__js2python_none\"]=function(){return(__js2python_none=Module[\"__js2python_none\"]=Module[\"asm\"][\"_js2python_none\"]).apply(null,arguments)};var __js2python_true=Module[\"__js2python_true\"]=function(){return(__js2python_true=Module[\"__js2python_true\"]=Module[\"asm\"][\"_js2python_true\"]).apply(null,arguments)};var __js2python_false=Module[\"__js2python_false\"]=function(){return(__js2python_false=Module[\"__js2python_false\"]=Module[\"asm\"][\"_js2python_false\"]).apply(null,arguments)};var __js2python_pyproxy=Module[\"__js2python_pyproxy\"]=function(){return(__js2python_pyproxy=Module[\"__js2python_pyproxy\"]=Module[\"asm\"][\"_js2python_pyproxy\"]).apply(null,arguments)};var _JsProxy_create_with_this=Module[\"_JsProxy_create_with_this\"]=function(){return(_JsProxy_create_with_this=Module[\"_JsProxy_create_with_this\"]=Module[\"asm\"][\"JsProxy_create_with_this\"]).apply(null,arguments)};var __PyObject_GetAttrId=Module[\"__PyObject_GetAttrId\"]=function(){return(__PyObject_GetAttrId=Module[\"__PyObject_GetAttrId\"]=Module[\"asm\"][\"_PyObject_GetAttrId\"]).apply(null,arguments)};var _PySet_New=Module[\"_PySet_New\"]=function(){return(_PySet_New=Module[\"_PySet_New\"]=Module[\"asm\"][\"PySet_New\"]).apply(null,arguments)};var __PySet_Update=Module[\"__PySet_Update\"]=function(){return(__PySet_Update=Module[\"__PySet_Update\"]=Module[\"asm\"][\"_PySet_Update\"]).apply(null,arguments)};var _PyUnicode_FromString=Module[\"_PyUnicode_FromString\"]=function(){return(_PyUnicode_FromString=Module[\"_PyUnicode_FromString\"]=Module[\"asm\"][\"PyUnicode_FromString\"]).apply(null,arguments)};var _PySet_Discard=Module[\"_PySet_Discard\"]=function(){return(_PySet_Discard=Module[\"_PySet_Discard\"]=Module[\"asm\"][\"PySet_Discard\"]).apply(null,arguments)};var _PyList_New=Module[\"_PyList_New\"]=function(){return(_PyList_New=Module[\"_PyList_New\"]=Module[\"asm\"][\"PyList_New\"]).apply(null,arguments)};var __PyList_Extend=Module[\"__PyList_Extend\"]=function(){return(__PyList_Extend=Module[\"__PyList_Extend\"]=Module[\"asm\"][\"_PyList_Extend\"]).apply(null,arguments)};var _PyList_Sort=Module[\"_PyList_Sort\"]=function(){return(_PyList_Sort=Module[\"_PyList_Sort\"]=Module[\"asm\"][\"PyList_Sort\"]).apply(null,arguments)};var __PyArg_ParseStackAndKeywords_SizeT=Module[\"__PyArg_ParseStackAndKeywords_SizeT\"]=function(){return(__PyArg_ParseStackAndKeywords_SizeT=Module[\"__PyArg_ParseStackAndKeywords_SizeT\"]=Module[\"asm\"][\"_PyArg_ParseStackAndKeywords_SizeT\"]).apply(null,arguments)};var _JsProxy_then=Module[\"_JsProxy_then\"]=function(){return(_JsProxy_then=Module[\"_JsProxy_then\"]=Module[\"asm\"][\"JsProxy_then\"]).apply(null,arguments)};var __PyArg_ParseTupleAndKeywords_SizeT=Module[\"__PyArg_ParseTupleAndKeywords_SizeT\"]=function(){return(__PyArg_ParseTupleAndKeywords_SizeT=Module[\"__PyArg_ParseTupleAndKeywords_SizeT\"]=Module[\"asm\"][\"_PyArg_ParseTupleAndKeywords_SizeT\"]).apply(null,arguments)};var _JsProxy_create=Module[\"_JsProxy_create\"]=function(){return(_JsProxy_create=Module[\"_JsProxy_create\"]=Module[\"asm\"][\"JsProxy_create\"]).apply(null,arguments)};var _JsProxy_catch=Module[\"_JsProxy_catch\"]=function(){return(_JsProxy_catch=Module[\"_JsProxy_catch\"]=Module[\"asm\"][\"JsProxy_catch\"]).apply(null,arguments)};var _JsProxy_finally=Module[\"_JsProxy_finally\"]=function(){return(_JsProxy_finally=Module[\"_JsProxy_finally\"]=Module[\"asm\"][\"JsProxy_finally\"]).apply(null,arguments)};var _JsMethod_ConvertArgs=Module[\"_JsMethod_ConvertArgs\"]=function(){return(_JsMethod_ConvertArgs=Module[\"_JsMethod_ConvertArgs\"]=Module[\"asm\"][\"JsMethod_ConvertArgs\"]).apply(null,arguments)};var _python2js=Module[\"_python2js\"]=function(){return(_python2js=Module[\"_python2js\"]=Module[\"asm\"][\"python2js\"]).apply(null,arguments)};var _PyTuple_GetItem=Module[\"_PyTuple_GetItem\"]=function(){return(_PyTuple_GetItem=Module[\"_PyTuple_GetItem\"]=Module[\"asm\"][\"PyTuple_GetItem\"]).apply(null,arguments)};var _PyErr_Clear=Module[\"_PyErr_Clear\"]=function(){return(_PyErr_Clear=Module[\"_PyErr_Clear\"]=Module[\"asm\"][\"PyErr_Clear\"]).apply(null,arguments)};var _PyTuple_Size=Module[\"_PyTuple_Size\"]=function(){return(_PyTuple_Size=Module[\"_PyTuple_Size\"]=Module[\"asm\"][\"PyTuple_Size\"]).apply(null,arguments)};var _Py_EnterRecursiveCall=Module[\"_Py_EnterRecursiveCall\"]=function(){return(_Py_EnterRecursiveCall=Module[\"_Py_EnterRecursiveCall\"]=Module[\"asm\"][\"Py_EnterRecursiveCall\"]).apply(null,arguments)};var _Py_LeaveRecursiveCall=Module[\"_Py_LeaveRecursiveCall\"]=function(){return(_Py_LeaveRecursiveCall=Module[\"_Py_LeaveRecursiveCall\"]=Module[\"asm\"][\"Py_LeaveRecursiveCall\"]).apply(null,arguments)};var _Buffer_dealloc=Module[\"_Buffer_dealloc\"]=function(){return(_Buffer_dealloc=Module[\"_Buffer_dealloc\"]=Module[\"asm\"][\"Buffer_dealloc\"]).apply(null,arguments)};var _PyMem_Free=Module[\"_PyMem_Free\"]=function(){return(_PyMem_Free=Module[\"_PyMem_Free\"]=Module[\"asm\"][\"PyMem_Free\"]).apply(null,arguments)};var _JsBuffer_CloneIntoPython=Module[\"_JsBuffer_CloneIntoPython\"]=function(){return(_JsBuffer_CloneIntoPython=Module[\"_JsBuffer_CloneIntoPython\"]=Module[\"asm\"][\"JsBuffer_CloneIntoPython\"]).apply(null,arguments)};var _PyMem_Malloc=Module[\"_PyMem_Malloc\"]=function(){return(_PyMem_Malloc=Module[\"_PyMem_Malloc\"]=Module[\"asm\"][\"PyMem_Malloc\"]).apply(null,arguments)};var _PyMemoryView_FromObject=Module[\"_PyMemoryView_FromObject\"]=function(){return(_PyMemoryView_FromObject=Module[\"_PyMemoryView_FromObject\"]=Module[\"asm\"][\"PyMemoryView_FromObject\"]).apply(null,arguments)};var _JsBuffer_cinit=Module[\"_JsBuffer_cinit\"]=function(){return(_JsBuffer_cinit=Module[\"_JsBuffer_cinit\"]=Module[\"asm\"][\"JsBuffer_cinit\"]).apply(null,arguments)};var _PyErr_Format=Module[\"_PyErr_Format\"]=function(){return(_PyErr_Format=Module[\"_PyErr_Format\"]=Module[\"asm\"][\"PyErr_Format\"]).apply(null,arguments)};var _free=Module[\"_free\"]=function(){return(_free=Module[\"_free\"]=Module[\"asm\"][\"free\"]).apply(null,arguments)};var _PyLong_FromLong=Module[\"_PyLong_FromLong\"]=function(){return(_PyLong_FromLong=Module[\"_PyLong_FromLong\"]=Module[\"asm\"][\"PyLong_FromLong\"]).apply(null,arguments)};var _PyDict_GetItemWithError=Module[\"_PyDict_GetItemWithError\"]=function(){return(_PyDict_GetItemWithError=Module[\"_PyDict_GetItemWithError\"]=Module[\"asm\"][\"PyDict_GetItemWithError\"]).apply(null,arguments)};var _PyErr_Occurred=Module[\"_PyErr_Occurred\"]=function(){return(_PyErr_Occurred=Module[\"_PyErr_Occurred\"]=Module[\"asm\"][\"PyErr_Occurred\"]).apply(null,arguments)};var _PyObject_SelfIter=Module[\"_PyObject_SelfIter\"]=function(){return(_PyObject_SelfIter=Module[\"_PyObject_SelfIter\"]=Module[\"asm\"][\"PyObject_SelfIter\"]).apply(null,arguments)};var _PyVectorcall_Call=Module[\"_PyVectorcall_Call\"]=function(){return(_PyVectorcall_Call=Module[\"_PyVectorcall_Call\"]=Module[\"asm\"][\"PyVectorcall_Call\"]).apply(null,arguments)};var _PyErr_NoMemory=Module[\"_PyErr_NoMemory\"]=function(){return(_PyErr_NoMemory=Module[\"_PyErr_NoMemory\"]=Module[\"asm\"][\"PyErr_NoMemory\"]).apply(null,arguments)};var __Py_BuildValue_SizeT=Module[\"__Py_BuildValue_SizeT\"]=function(){return(__Py_BuildValue_SizeT=Module[\"__Py_BuildValue_SizeT\"]=Module[\"asm\"][\"_Py_BuildValue_SizeT\"]).apply(null,arguments)};var _PyType_FromSpecWithBases=Module[\"_PyType_FromSpecWithBases\"]=function(){return(_PyType_FromSpecWithBases=Module[\"_PyType_FromSpecWithBases\"]=Module[\"asm\"][\"PyType_FromSpecWithBases\"]).apply(null,arguments)};var _PyDict_SetItem=Module[\"_PyDict_SetItem\"]=function(){return(_PyDict_SetItem=Module[\"_PyDict_SetItem\"]=Module[\"asm\"][\"PyDict_SetItem\"]).apply(null,arguments)};var _JsProxy_Check=Module[\"_JsProxy_Check\"]=function(){return(_JsProxy_Check=Module[\"_JsProxy_Check\"]=Module[\"asm\"][\"JsProxy_Check\"]).apply(null,arguments)};var _PyType_IsSubtype=Module[\"_PyType_IsSubtype\"]=function(){return(_PyType_IsSubtype=Module[\"_PyType_IsSubtype\"]=Module[\"asm\"][\"PyType_IsSubtype\"]).apply(null,arguments)};var _JsProxy_AsJs=Module[\"_JsProxy_AsJs\"]=function(){return(_JsProxy_AsJs=Module[\"_JsProxy_AsJs\"]=Module[\"asm\"][\"JsProxy_AsJs\"]).apply(null,arguments)};var _JsException_Check=Module[\"_JsException_Check\"]=function(){return(_JsException_Check=Module[\"_JsException_Check\"]=Module[\"asm\"][\"JsException_Check\"]).apply(null,arguments)};var _JsException_AsJs=Module[\"_JsException_AsJs\"]=function(){return(_JsException_AsJs=Module[\"_JsException_AsJs\"]=Module[\"asm\"][\"JsException_AsJs\"]).apply(null,arguments)};var _JsProxy_init=Module[\"_JsProxy_init\"]=function(){return(_JsProxy_init=Module[\"_JsProxy_init\"]=Module[\"asm\"][\"JsProxy_init\"]).apply(null,arguments)};var _PyDict_New=Module[\"_PyDict_New\"]=function(){return(_PyDict_New=Module[\"_PyDict_New\"]=Module[\"asm\"][\"PyDict_New\"]).apply(null,arguments)};var _PyType_Ready=Module[\"_PyType_Ready\"]=function(){return(_PyType_Ready=Module[\"_PyType_Ready\"]=Module[\"asm\"][\"PyType_Ready\"]).apply(null,arguments)};var _PyModule_AddType=Module[\"_PyModule_AddType\"]=function(){return(_PyModule_AddType=Module[\"_PyModule_AddType\"]=Module[\"asm\"][\"PyModule_AddType\"]).apply(null,arguments)};var _PyThreadState_Get=Module[\"_PyThreadState_Get\"]=function(){return(_PyThreadState_Get=Module[\"_PyThreadState_Get\"]=Module[\"asm\"][\"PyThreadState_Get\"]).apply(null,arguments)};var _PyCallable_Check=Module[\"_PyCallable_Check\"]=function(){return(_PyCallable_Check=Module[\"_PyCallable_Check\"]=Module[\"asm\"][\"PyCallable_Check\"]).apply(null,arguments)};var __PyObject_MakeTpCall=Module[\"__PyObject_MakeTpCall\"]=function(){return(__PyObject_MakeTpCall=Module[\"__PyObject_MakeTpCall\"]=Module[\"asm\"][\"_PyObject_MakeTpCall\"]).apply(null,arguments)};var __PyFunction_Vectorcall=Module[\"__PyFunction_Vectorcall\"]=function(){return(__PyFunction_Vectorcall=Module[\"__PyFunction_Vectorcall\"]=Module[\"asm\"][\"_PyFunction_Vectorcall\"]).apply(null,arguments)};var __Py_CheckFunctionResult=Module[\"__Py_CheckFunctionResult\"]=function(){return(__Py_CheckFunctionResult=Module[\"__Py_CheckFunctionResult\"]=Module[\"asm\"][\"_Py_CheckFunctionResult\"]).apply(null,arguments)};var _PyObject_CallNoArgs=Module[\"_PyObject_CallNoArgs\"]=function(){return(_PyObject_CallNoArgs=Module[\"_PyObject_CallNoArgs\"]=Module[\"asm\"][\"PyObject_CallNoArgs\"]).apply(null,arguments)};var __PyObject_CallMethodId_SizeT=Module[\"__PyObject_CallMethodId_SizeT\"]=function(){return(__PyObject_CallMethodId_SizeT=Module[\"__PyObject_CallMethodId_SizeT\"]=Module[\"asm\"][\"_PyObject_CallMethodId_SizeT\"]).apply(null,arguments)};var _PyIndex_Check=Module[\"_PyIndex_Check\"]=function(){return(_PyIndex_Check=Module[\"_PyIndex_Check\"]=Module[\"asm\"][\"PyIndex_Check\"]).apply(null,arguments)};var _PyNumber_AsSsize_t=Module[\"_PyNumber_AsSsize_t\"]=function(){return(_PyNumber_AsSsize_t=Module[\"_PyNumber_AsSsize_t\"]=Module[\"asm\"][\"PyNumber_AsSsize_t\"]).apply(null,arguments)};var _PyObject_GetBuffer=Module[\"_PyObject_GetBuffer\"]=function(){return(_PyObject_GetBuffer=Module[\"_PyObject_GetBuffer\"]=Module[\"asm\"][\"PyObject_GetBuffer\"]).apply(null,arguments)};var _strcmp=Module[\"_strcmp\"]=function(){return(_strcmp=Module[\"_strcmp\"]=Module[\"asm\"][\"strcmp\"]).apply(null,arguments)};var _PyBuffer_Release=Module[\"_PyBuffer_Release\"]=function(){return(_PyBuffer_Release=Module[\"_PyBuffer_Release\"]=Module[\"asm\"][\"PyBuffer_Release\"]).apply(null,arguments)};var _PyObject_GenericGetAttr=Module[\"_PyObject_GenericGetAttr\"]=function(){return(_PyObject_GenericGetAttr=Module[\"_PyObject_GenericGetAttr\"]=Module[\"asm\"][\"PyObject_GenericGetAttr\"]).apply(null,arguments)};var _PyErr_ExceptionMatches=Module[\"_PyErr_ExceptionMatches\"]=function(){return(_PyErr_ExceptionMatches=Module[\"_PyErr_ExceptionMatches\"]=Module[\"asm\"][\"PyErr_ExceptionMatches\"]).apply(null,arguments)};var _strncmp=Module[\"_strncmp\"]=function(){return(_strncmp=Module[\"_strncmp\"]=Module[\"asm\"][\"strncmp\"]).apply(null,arguments)};var _PyObject_GenericSetAttr=Module[\"_PyObject_GenericSetAttr\"]=function(){return(_PyObject_GenericSetAttr=Module[\"_PyObject_GenericSetAttr\"]=Module[\"asm\"][\"PyObject_GenericSetAttr\"]).apply(null,arguments)};var _pyodide_callback=Module[\"_pyodide_callback\"]=function(){return(_pyodide_callback=Module[\"_pyodide_callback\"]=Module[\"asm\"][\"pyodide_callback\"]).apply(null,arguments)};var _PyErr_SetInterrupt=Module[\"_PyErr_SetInterrupt\"]=function(){return(_PyErr_SetInterrupt=Module[\"_PyErr_SetInterrupt\"]=Module[\"asm\"][\"PyErr_SetInterrupt\"]).apply(null,arguments)};var _keyboard_interrupt_init=Module[\"_keyboard_interrupt_init\"]=function(){return(_keyboard_interrupt_init=Module[\"_keyboard_interrupt_init\"]=Module[\"asm\"][\"keyboard_interrupt_init\"]).apply(null,arguments)};var _run_python_simple_inner=Module[\"_run_python_simple_inner\"]=function(){return(_run_python_simple_inner=Module[\"_run_python_simple_inner\"]=Module[\"asm\"][\"run_python_simple_inner\"]).apply(null,arguments)};var _PyRun_StringFlags=Module[\"_PyRun_StringFlags\"]=function(){return(_PyRun_StringFlags=Module[\"_PyRun_StringFlags\"]=Module[\"asm\"][\"PyRun_StringFlags\"]).apply(null,arguments)};var _get_python_stack_depth=Module[\"_get_python_stack_depth\"]=function(){return(_get_python_stack_depth=Module[\"_get_python_stack_depth\"]=Module[\"asm\"][\"get_python_stack_depth\"]).apply(null,arguments)};var _main=Module[\"_main\"]=function(){return(_main=Module[\"_main\"]=Module[\"asm\"][\"main\"]).apply(null,arguments)};var _PyConfig_InitPythonConfig=Module[\"_PyConfig_InitPythonConfig\"]=function(){return(_PyConfig_InitPythonConfig=Module[\"_PyConfig_InitPythonConfig\"]=Module[\"asm\"][\"PyConfig_InitPythonConfig\"]).apply(null,arguments)};var _PyConfig_SetBytesString=Module[\"_PyConfig_SetBytesString\"]=function(){return(_PyConfig_SetBytesString=Module[\"_PyConfig_SetBytesString\"]=Module[\"asm\"][\"PyConfig_SetBytesString\"]).apply(null,arguments)};var _PyStatus_Exception=Module[\"_PyStatus_Exception\"]=function(){return(_PyStatus_Exception=Module[\"_PyStatus_Exception\"]=Module[\"asm\"][\"PyStatus_Exception\"]).apply(null,arguments)};var _Py_InitializeFromConfig=Module[\"_Py_InitializeFromConfig\"]=function(){return(_Py_InitializeFromConfig=Module[\"_Py_InitializeFromConfig\"]=Module[\"asm\"][\"Py_InitializeFromConfig\"]).apply(null,arguments)};var _PyConfig_Clear=Module[\"_PyConfig_Clear\"]=function(){return(_PyConfig_Clear=Module[\"_PyConfig_Clear\"]=Module[\"asm\"][\"PyConfig_Clear\"]).apply(null,arguments)};var _iprintf=Module[\"_iprintf\"]=function(){return(_iprintf=Module[\"_iprintf\"]=Module[\"asm\"][\"iprintf\"]).apply(null,arguments)};var _putchar=Module[\"_putchar\"]=function(){return(_putchar=Module[\"_putchar\"]=Module[\"asm\"][\"putchar\"]).apply(null,arguments)};var _puts=Module[\"_puts\"]=function(){return(_puts=Module[\"_puts\"]=Module[\"asm\"][\"puts\"]).apply(null,arguments)};var _Py_ExitStatusException=Module[\"_Py_ExitStatusException\"]=function(){return(_Py_ExitStatusException=Module[\"_Py_ExitStatusException\"]=Module[\"asm\"][\"Py_ExitStatusException\"]).apply(null,arguments)};var _PyModule_Create2=Module[\"_PyModule_Create2\"]=function(){return(_PyModule_Create2=Module[\"_PyModule_Create2\"]=Module[\"asm\"][\"PyModule_Create2\"]).apply(null,arguments)};var _python2js_init=Module[\"_python2js_init\"]=function(){return(_python2js_init=Module[\"_python2js_init\"]=Module[\"asm\"][\"python2js_init\"]).apply(null,arguments)};var _pyproxy_init=Module[\"_pyproxy_init\"]=function(){return(_pyproxy_init=Module[\"_pyproxy_init\"]=Module[\"asm\"][\"pyproxy_init\"]).apply(null,arguments)};var _PyImport_GetModuleDict=Module[\"_PyImport_GetModuleDict\"]=function(){return(_PyImport_GetModuleDict=Module[\"_PyImport_GetModuleDict\"]=Module[\"asm\"][\"PyImport_GetModuleDict\"]).apply(null,arguments)};var _PyDict_SetItemString=Module[\"_PyDict_SetItemString\"]=function(){return(_PyDict_SetItemString=Module[\"_PyDict_SetItemString\"]=Module[\"asm\"][\"PyDict_SetItemString\"]).apply(null,arguments)};var _pyproxy_getflags=Module[\"_pyproxy_getflags\"]=function(){return(_pyproxy_getflags=Module[\"_pyproxy_getflags\"]=Module[\"asm\"][\"pyproxy_getflags\"]).apply(null,arguments)};var __PyObject_HasAttrId=Module[\"__PyObject_HasAttrId\"]=function(){return(__PyObject_HasAttrId=Module[\"__PyObject_HasAttrId\"]=Module[\"asm\"][\"_PyObject_HasAttrId\"]).apply(null,arguments)};var _PySequence_Check=Module[\"_PySequence_Check\"]=function(){return(_PySequence_Check=Module[\"_PySequence_Check\"]=Module[\"asm\"][\"PySequence_Check\"]).apply(null,arguments)};var __PyObject_NextNotImplemented=Module[\"__PyObject_NextNotImplemented\"]=function(){return(__PyObject_NextNotImplemented=Module[\"__PyObject_NextNotImplemented\"]=Module[\"asm\"][\"_PyObject_NextNotImplemented\"]).apply(null,arguments)};var __pyproxy_repr=Module[\"__pyproxy_repr\"]=function(){return(__pyproxy_repr=Module[\"__pyproxy_repr\"]=Module[\"asm\"][\"_pyproxy_repr\"]).apply(null,arguments)};var _PyObject_Repr=Module[\"_PyObject_Repr\"]=function(){return(_PyObject_Repr=Module[\"_PyObject_Repr\"]=Module[\"asm\"][\"PyObject_Repr\"]).apply(null,arguments)};var __pyproxy_type=Module[\"__pyproxy_type\"]=function(){return(__pyproxy_type=Module[\"__pyproxy_type\"]=Module[\"asm\"][\"_pyproxy_type\"]).apply(null,arguments)};var __pyproxy_hasattr=Module[\"__pyproxy_hasattr\"]=function(){return(__pyproxy_hasattr=Module[\"__pyproxy_hasattr\"]=Module[\"asm\"][\"_pyproxy_hasattr\"]).apply(null,arguments)};var _PyObject_HasAttr=Module[\"_PyObject_HasAttr\"]=function(){return(_PyObject_HasAttr=Module[\"_PyObject_HasAttr\"]=Module[\"asm\"][\"PyObject_HasAttr\"]).apply(null,arguments)};var __pyproxy_getattr=Module[\"__pyproxy_getattr\"]=function(){return(__pyproxy_getattr=Module[\"__pyproxy_getattr\"]=Module[\"asm\"][\"_pyproxy_getattr\"]).apply(null,arguments)};var __PyObject_GetMethod=Module[\"__PyObject_GetMethod\"]=function(){return(__PyObject_GetMethod=Module[\"__PyObject_GetMethod\"]=Module[\"asm\"][\"_PyObject_GetMethod\"]).apply(null,arguments)};var __pyproxy_setattr=Module[\"__pyproxy_setattr\"]=function(){return(__pyproxy_setattr=Module[\"__pyproxy_setattr\"]=Module[\"asm\"][\"_pyproxy_setattr\"]).apply(null,arguments)};var _PyObject_SetAttr=Module[\"_PyObject_SetAttr\"]=function(){return(_PyObject_SetAttr=Module[\"_PyObject_SetAttr\"]=Module[\"asm\"][\"PyObject_SetAttr\"]).apply(null,arguments)};var __pyproxy_delattr=Module[\"__pyproxy_delattr\"]=function(){return(__pyproxy_delattr=Module[\"__pyproxy_delattr\"]=Module[\"asm\"][\"_pyproxy_delattr\"]).apply(null,arguments)};var __pyproxy_getitem=Module[\"__pyproxy_getitem\"]=function(){return(__pyproxy_getitem=Module[\"__pyproxy_getitem\"]=Module[\"asm\"][\"_pyproxy_getitem\"]).apply(null,arguments)};var _PyObject_GetItem=Module[\"_PyObject_GetItem\"]=function(){return(_PyObject_GetItem=Module[\"_PyObject_GetItem\"]=Module[\"asm\"][\"PyObject_GetItem\"]).apply(null,arguments)};var __pyproxy_setitem=Module[\"__pyproxy_setitem\"]=function(){return(__pyproxy_setitem=Module[\"__pyproxy_setitem\"]=Module[\"asm\"][\"_pyproxy_setitem\"]).apply(null,arguments)};var _PyObject_SetItem=Module[\"_PyObject_SetItem\"]=function(){return(_PyObject_SetItem=Module[\"_PyObject_SetItem\"]=Module[\"asm\"][\"PyObject_SetItem\"]).apply(null,arguments)};var __pyproxy_delitem=Module[\"__pyproxy_delitem\"]=function(){return(__pyproxy_delitem=Module[\"__pyproxy_delitem\"]=Module[\"asm\"][\"_pyproxy_delitem\"]).apply(null,arguments)};var _PyObject_DelItem=Module[\"_PyObject_DelItem\"]=function(){return(_PyObject_DelItem=Module[\"_PyObject_DelItem\"]=Module[\"asm\"][\"PyObject_DelItem\"]).apply(null,arguments)};var __pyproxy_contains=Module[\"__pyproxy_contains\"]=function(){return(__pyproxy_contains=Module[\"__pyproxy_contains\"]=Module[\"asm\"][\"_pyproxy_contains\"]).apply(null,arguments)};var _PySequence_Contains=Module[\"_PySequence_Contains\"]=function(){return(_PySequence_Contains=Module[\"_PySequence_Contains\"]=Module[\"asm\"][\"PySequence_Contains\"]).apply(null,arguments)};var __pyproxy_ownKeys=Module[\"__pyproxy_ownKeys\"]=function(){return(__pyproxy_ownKeys=Module[\"__pyproxy_ownKeys\"]=Module[\"asm\"][\"_pyproxy_ownKeys\"]).apply(null,arguments)};var _PyObject_Dir=Module[\"_PyObject_Dir\"]=function(){return(_PyObject_Dir=Module[\"_PyObject_Dir\"]=Module[\"asm\"][\"PyObject_Dir\"]).apply(null,arguments)};var _PyList_Size=Module[\"_PyList_Size\"]=function(){return(_PyList_Size=Module[\"_PyList_Size\"]=Module[\"asm\"][\"PyList_Size\"]).apply(null,arguments)};var _PyList_GetItem=Module[\"_PyList_GetItem\"]=function(){return(_PyList_GetItem=Module[\"_PyList_GetItem\"]=Module[\"asm\"][\"PyList_GetItem\"]).apply(null,arguments)};var __pyproxy_apply=Module[\"__pyproxy_apply\"]=function(){return(__pyproxy_apply=Module[\"__pyproxy_apply\"]=Module[\"asm\"][\"_pyproxy_apply\"]).apply(null,arguments)};var _PyTuple_New=Module[\"_PyTuple_New\"]=function(){return(_PyTuple_New=Module[\"_PyTuple_New\"]=Module[\"asm\"][\"PyTuple_New\"]).apply(null,arguments)};var __pyproxy_iter_next=Module[\"__pyproxy_iter_next\"]=function(){return(__pyproxy_iter_next=Module[\"__pyproxy_iter_next\"]=Module[\"asm\"][\"_pyproxy_iter_next\"]).apply(null,arguments)};var _PyIter_Next=Module[\"_PyIter_Next\"]=function(){return(_PyIter_Next=Module[\"_PyIter_Next\"]=Module[\"asm\"][\"PyIter_Next\"]).apply(null,arguments)};var __pyproxyGen_Send=Module[\"__pyproxyGen_Send\"]=function(){return(__pyproxyGen_Send=Module[\"__pyproxyGen_Send\"]=Module[\"asm\"][\"_pyproxyGen_Send\"]).apply(null,arguments)};var __PyGen_Send=Module[\"__PyGen_Send\"]=function(){return(__PyGen_Send=Module[\"__PyGen_Send\"]=Module[\"asm\"][\"_PyGen_Send\"]).apply(null,arguments)};var __pyproxyGen_FetchStopIterationValue=Module[\"__pyproxyGen_FetchStopIterationValue\"]=function(){return(__pyproxyGen_FetchStopIterationValue=Module[\"__pyproxyGen_FetchStopIterationValue\"]=Module[\"asm\"][\"_pyproxyGen_FetchStopIterationValue\"]).apply(null,arguments)};var __PyGen_FetchStopIterationValue=Module[\"__PyGen_FetchStopIterationValue\"]=function(){return(__PyGen_FetchStopIterationValue=Module[\"__PyGen_FetchStopIterationValue\"]=Module[\"asm\"][\"_PyGen_FetchStopIterationValue\"]).apply(null,arguments)};var _FutureDoneCallback_call_resolve=Module[\"_FutureDoneCallback_call_resolve\"]=function(){return(_FutureDoneCallback_call_resolve=Module[\"_FutureDoneCallback_call_resolve\"]=Module[\"asm\"][\"FutureDoneCallback_call_resolve\"]).apply(null,arguments)};var _FutureDoneCallback_call_reject=Module[\"_FutureDoneCallback_call_reject\"]=function(){return(_FutureDoneCallback_call_reject=Module[\"_FutureDoneCallback_call_reject\"]=Module[\"asm\"][\"FutureDoneCallback_call_reject\"]).apply(null,arguments)};var _FutureDoneCallback_call=Module[\"_FutureDoneCallback_call\"]=function(){return(_FutureDoneCallback_call=Module[\"_FutureDoneCallback_call\"]=Module[\"asm\"][\"FutureDoneCallback_call\"]).apply(null,arguments)};var _PyArg_UnpackTuple=Module[\"_PyArg_UnpackTuple\"]=function(){return(_PyArg_UnpackTuple=Module[\"_PyArg_UnpackTuple\"]=Module[\"asm\"][\"PyArg_UnpackTuple\"]).apply(null,arguments)};var __pyproxy_ensure_future=Module[\"__pyproxy_ensure_future\"]=function(){return(__pyproxy_ensure_future=Module[\"__pyproxy_ensure_future\"]=Module[\"asm\"][\"_pyproxy_ensure_future\"]).apply(null,arguments)};var __pyproxy_get_buffer=Module[\"__pyproxy_get_buffer\"]=function(){return(__pyproxy_get_buffer=Module[\"__pyproxy_get_buffer\"]=Module[\"asm\"][\"_pyproxy_get_buffer\"]).apply(null,arguments)};var _PyBuffer_FillContiguousStrides=Module[\"_PyBuffer_FillContiguousStrides\"]=function(){return(_PyBuffer_FillContiguousStrides=Module[\"_PyBuffer_FillContiguousStrides\"]=Module[\"asm\"][\"PyBuffer_FillContiguousStrides\"]).apply(null,arguments)};var _PyBuffer_IsContiguous=Module[\"_PyBuffer_IsContiguous\"]=function(){return(_PyBuffer_IsContiguous=Module[\"_PyBuffer_IsContiguous\"]=Module[\"asm\"][\"PyBuffer_IsContiguous\"]).apply(null,arguments)};var __python2js_buffer=Module[\"__python2js_buffer\"]=function(){return(__python2js_buffer=Module[\"__python2js_buffer\"]=Module[\"asm\"][\"_python2js_buffer\"]).apply(null,arguments)};var __python2js_add_to_cache=Module[\"__python2js_add_to_cache\"]=function(){return(__python2js_add_to_cache=Module[\"__python2js_add_to_cache\"]=Module[\"asm\"][\"_python2js_add_to_cache\"]).apply(null,arguments)};var _PyLong_FromSize_t=Module[\"_PyLong_FromSize_t\"]=function(){return(_PyLong_FromSize_t=Module[\"_PyLong_FromSize_t\"]=Module[\"asm\"][\"PyLong_FromSize_t\"]).apply(null,arguments)};var __python2js=Module[\"__python2js\"]=function(){return(__python2js=Module[\"__python2js\"]=Module[\"asm\"][\"_python2js\"]).apply(null,arguments)};var _PyLong_AsSize_t=Module[\"_PyLong_AsSize_t\"]=function(){return(_PyLong_AsSize_t=Module[\"_PyLong_AsSize_t\"]=Module[\"asm\"][\"PyLong_AsSize_t\"]).apply(null,arguments)};var _python2js_inner=Module[\"_python2js_inner\"]=function(){return(_python2js_inner=Module[\"_python2js_inner\"]=Module[\"asm\"][\"python2js_inner\"]).apply(null,arguments)};var _PySequence_Size=Module[\"_PySequence_Size\"]=function(){return(_PySequence_Size=Module[\"_PySequence_Size\"]=Module[\"asm\"][\"PySequence_Size\"]).apply(null,arguments)};var _PySequence_GetItem=Module[\"_PySequence_GetItem\"]=function(){return(_PySequence_GetItem=Module[\"_PySequence_GetItem\"]=Module[\"asm\"][\"PySequence_GetItem\"]).apply(null,arguments)};var _PyDict_Next=Module[\"_PyDict_Next\"]=function(){return(_PyDict_Next=Module[\"_PyDict_Next\"]=Module[\"asm\"][\"PyDict_Next\"]).apply(null,arguments)};var _PyObject_GetIter=Module[\"_PyObject_GetIter\"]=function(){return(_PyObject_GetIter=Module[\"_PyObject_GetIter\"]=Module[\"asm\"][\"PyObject_GetIter\"]).apply(null,arguments)};var _PyObject_CheckBuffer=Module[\"_PyObject_CheckBuffer\"]=function(){return(_PyObject_CheckBuffer=Module[\"_PyObject_CheckBuffer\"]=Module[\"asm\"][\"PyObject_CheckBuffer\"]).apply(null,arguments)};var _python2js_track_proxies=Module[\"_python2js_track_proxies\"]=function(){return(_python2js_track_proxies=Module[\"_python2js_track_proxies\"]=Module[\"asm\"][\"python2js_track_proxies\"]).apply(null,arguments)};var __PyErr_FormatFromCause=Module[\"__PyErr_FormatFromCause\"]=function(){return(__PyErr_FormatFromCause=Module[\"__PyErr_FormatFromCause\"]=Module[\"asm\"][\"_PyErr_FormatFromCause\"]).apply(null,arguments)};var _PyFloat_AsDouble=Module[\"_PyFloat_AsDouble\"]=function(){return(_PyFloat_AsDouble=Module[\"_PyFloat_AsDouble\"]=Module[\"asm\"][\"PyFloat_AsDouble\"]).apply(null,arguments)};var _python2js_with_context=Module[\"_python2js_with_context\"]=function(){return(_python2js_with_context=Module[\"_python2js_with_context\"]=Module[\"asm\"][\"python2js_with_context\"]).apply(null,arguments)};var _python2js_with_depth=Module[\"_python2js_with_depth\"]=function(){return(_python2js_with_depth=Module[\"_python2js_with_depth\"]=Module[\"asm\"][\"python2js_with_depth\"]).apply(null,arguments)};var _python2js_custom_dict_converter=Module[\"_python2js_custom_dict_converter\"]=function(){return(_python2js_custom_dict_converter=Module[\"_python2js_custom_dict_converter\"]=Module[\"asm\"][\"python2js_custom_dict_converter\"]).apply(null,arguments)};var _PyLong_AsLongAndOverflow=Module[\"_PyLong_AsLongAndOverflow\"]=function(){return(_PyLong_AsLongAndOverflow=Module[\"_PyLong_AsLongAndOverflow\"]=Module[\"asm\"][\"PyLong_AsLongAndOverflow\"]).apply(null,arguments)};var __PyLong_AsByteArray=Module[\"__PyLong_AsByteArray\"]=function(){return(__PyLong_AsByteArray=Module[\"__PyLong_AsByteArray\"]=Module[\"asm\"][\"_PyLong_AsByteArray\"]).apply(null,arguments)};var _Py_GetBuildInfo=Module[\"_Py_GetBuildInfo\"]=function(){return(_Py_GetBuildInfo=Module[\"_Py_GetBuildInfo\"]=Module[\"asm\"][\"Py_GetBuildInfo\"]).apply(null,arguments)};var _PyOS_snprintf=Module[\"_PyOS_snprintf\"]=function(){return(_PyOS_snprintf=Module[\"_PyOS_snprintf\"]=Module[\"asm\"][\"PyOS_snprintf\"]).apply(null,arguments)};var __Py_gitversion=Module[\"__Py_gitversion\"]=function(){return(__Py_gitversion=Module[\"__Py_gitversion\"]=Module[\"asm\"][\"_Py_gitversion\"]).apply(null,arguments)};var __Py_gitidentifier=Module[\"__Py_gitidentifier\"]=function(){return(__Py_gitidentifier=Module[\"__Py_gitidentifier\"]=Module[\"asm\"][\"_Py_gitidentifier\"]).apply(null,arguments)};var _PyGrammar_AddAccelerators=Module[\"_PyGrammar_AddAccelerators\"]=function(){return(_PyGrammar_AddAccelerators=Module[\"_PyGrammar_AddAccelerators\"]=Module[\"asm\"][\"PyGrammar_AddAccelerators\"]).apply(null,arguments)};var _PyObject_Malloc=Module[\"_PyObject_Malloc\"]=function(){return(_PyObject_Malloc=Module[\"_PyObject_Malloc\"]=Module[\"asm\"][\"PyObject_Malloc\"]).apply(null,arguments)};var _memset=Module[\"_memset\"]=function(){return(_memset=Module[\"_memset\"]=Module[\"asm\"][\"memset\"]).apply(null,arguments)};var _PyGrammar_FindDFA=Module[\"_PyGrammar_FindDFA\"]=function(){return(_PyGrammar_FindDFA=Module[\"_PyGrammar_FindDFA\"]=Module[\"asm\"][\"PyGrammar_FindDFA\"]).apply(null,arguments)};var _PyObject_Free=Module[\"_PyObject_Free\"]=function(){return(_PyObject_Free=Module[\"_PyObject_Free\"]=Module[\"asm\"][\"PyObject_Free\"]).apply(null,arguments)};var _fwrite=Module[\"_fwrite\"]=function(){return(_fwrite=Module[\"_fwrite\"]=Module[\"asm\"][\"fwrite\"]).apply(null,arguments)};var _PyGrammar_RemoveAccelerators=Module[\"_PyGrammar_RemoveAccelerators\"]=function(){return(_PyGrammar_RemoveAccelerators=Module[\"_PyGrammar_RemoveAccelerators\"]=Module[\"asm\"][\"PyGrammar_RemoveAccelerators\"]).apply(null,arguments)};var _PyGrammar_LabelRepr=Module[\"_PyGrammar_LabelRepr\"]=function(){return(_PyGrammar_LabelRepr=Module[\"_PyGrammar_LabelRepr\"]=Module[\"asm\"][\"PyGrammar_LabelRepr\"]).apply(null,arguments)};var __Py_FatalErrorFunc=Module[\"__Py_FatalErrorFunc\"]=function(){return(__Py_FatalErrorFunc=Module[\"__Py_FatalErrorFunc\"]=Module[\"asm\"][\"_Py_FatalErrorFunc\"]).apply(null,arguments)};var _PyNode_ListTree=Module[\"_PyNode_ListTree\"]=function(){return(_PyNode_ListTree=Module[\"_PyNode_ListTree\"]=Module[\"asm\"][\"PyNode_ListTree\"]).apply(null,arguments)};var _fputc=Module[\"_fputc\"]=function(){return(_fputc=Module[\"_fputc\"]=Module[\"asm\"][\"fputc\"]).apply(null,arguments)};var _fputs=Module[\"_fputs\"]=function(){return(_fputs=Module[\"_fputs\"]=Module[\"asm\"][\"fputs\"]).apply(null,arguments)};var _fiprintf=Module[\"_fiprintf\"]=function(){return(_fiprintf=Module[\"_fiprintf\"]=Module[\"asm\"][\"fiprintf\"]).apply(null,arguments)};var _PyNode_New=Module[\"_PyNode_New\"]=function(){return(_PyNode_New=Module[\"_PyNode_New\"]=Module[\"asm\"][\"PyNode_New\"]).apply(null,arguments)};var __PyNode_FinalizeEndPos=Module[\"__PyNode_FinalizeEndPos\"]=function(){return(__PyNode_FinalizeEndPos=Module[\"__PyNode_FinalizeEndPos\"]=Module[\"asm\"][\"_PyNode_FinalizeEndPos\"]).apply(null,arguments)};var _PyNode_AddChild=Module[\"_PyNode_AddChild\"]=function(){return(_PyNode_AddChild=Module[\"_PyNode_AddChild\"]=Module[\"asm\"][\"PyNode_AddChild\"]).apply(null,arguments)};var _PyObject_Realloc=Module[\"_PyObject_Realloc\"]=function(){return(_PyObject_Realloc=Module[\"_PyObject_Realloc\"]=Module[\"asm\"][\"PyObject_Realloc\"]).apply(null,arguments)};var _PyNode_Free=Module[\"_PyNode_Free\"]=function(){return(_PyNode_Free=Module[\"_PyNode_Free\"]=Module[\"asm\"][\"PyNode_Free\"]).apply(null,arguments)};var __PyNode_SizeOf=Module[\"__PyNode_SizeOf\"]=function(){return(__PyNode_SizeOf=Module[\"__PyNode_SizeOf\"]=Module[\"asm\"][\"_PyNode_SizeOf\"]).apply(null,arguments)};var _strlen=Module[\"_strlen\"]=function(){return(_strlen=Module[\"_strlen\"]=Module[\"asm\"][\"strlen\"]).apply(null,arguments)};var _PyParser_New=Module[\"_PyParser_New\"]=function(){return(_PyParser_New=Module[\"_PyParser_New\"]=Module[\"asm\"][\"PyParser_New\"]).apply(null,arguments)};var _PyParser_Delete=Module[\"_PyParser_Delete\"]=function(){return(_PyParser_Delete=Module[\"_PyParser_Delete\"]=Module[\"asm\"][\"PyParser_Delete\"]).apply(null,arguments)};var _PyParser_AddToken=Module[\"_PyParser_AddToken\"]=function(){return(_PyParser_AddToken=Module[\"_PyParser_AddToken\"]=Module[\"asm\"][\"PyParser_AddToken\"]).apply(null,arguments)};var _PyToken_OneChar=Module[\"_PyToken_OneChar\"]=function(){return(_PyToken_OneChar=Module[\"_PyToken_OneChar\"]=Module[\"asm\"][\"PyToken_OneChar\"]).apply(null,arguments)};var _PyToken_TwoChars=Module[\"_PyToken_TwoChars\"]=function(){return(_PyToken_TwoChars=Module[\"_PyToken_TwoChars\"]=Module[\"asm\"][\"PyToken_TwoChars\"]).apply(null,arguments)};var _PyToken_ThreeChars=Module[\"_PyToken_ThreeChars\"]=function(){return(_PyToken_ThreeChars=Module[\"_PyToken_ThreeChars\"]=Module[\"asm\"][\"PyToken_ThreeChars\"]).apply(null,arguments)};var __PyPegen_new_type_comment=Module[\"__PyPegen_new_type_comment\"]=function(){return(__PyPegen_new_type_comment=Module[\"__PyPegen_new_type_comment\"]=Module[\"asm\"][\"_PyPegen_new_type_comment\"]).apply(null,arguments)};var _PyUnicode_DecodeUTF8=Module[\"_PyUnicode_DecodeUTF8\"]=function(){return(_PyUnicode_DecodeUTF8=Module[\"_PyUnicode_DecodeUTF8\"]=Module[\"asm\"][\"PyUnicode_DecodeUTF8\"]).apply(null,arguments)};var _PyArena_AddPyObject=Module[\"_PyArena_AddPyObject\"]=function(){return(_PyArena_AddPyObject=Module[\"_PyArena_AddPyObject\"]=Module[\"asm\"][\"PyArena_AddPyObject\"]).apply(null,arguments)};var __PyPegen_add_type_comment_to_arg=Module[\"__PyPegen_add_type_comment_to_arg\"]=function(){return(__PyPegen_add_type_comment_to_arg=Module[\"__PyPegen_add_type_comment_to_arg\"]=Module[\"asm\"][\"_PyPegen_add_type_comment_to_arg\"]).apply(null,arguments)};var _PyBytes_AsString=Module[\"_PyBytes_AsString\"]=function(){return(_PyBytes_AsString=Module[\"_PyBytes_AsString\"]=Module[\"asm\"][\"PyBytes_AsString\"]).apply(null,arguments)};var __Py_arg=Module[\"__Py_arg\"]=function(){return(__Py_arg=Module[\"__Py_arg\"]=Module[\"asm\"][\"_Py_arg\"]).apply(null,arguments)};var __PyPegen_check_barry_as_flufl=Module[\"__PyPegen_check_barry_as_flufl\"]=function(){return(__PyPegen_check_barry_as_flufl=Module[\"__PyPegen_check_barry_as_flufl\"]=Module[\"asm\"][\"_PyPegen_check_barry_as_flufl\"]).apply(null,arguments)};var __PyPegen_raise_error=Module[\"__PyPegen_raise_error\"]=function(){return(__PyPegen_raise_error=Module[\"__PyPegen_raise_error\"]=Module[\"asm\"][\"_PyPegen_raise_error\"]).apply(null,arguments)};var __PyPegen_raise_error_known_location=Module[\"__PyPegen_raise_error_known_location\"]=function(){return(__PyPegen_raise_error_known_location=Module[\"__PyPegen_raise_error_known_location\"]=Module[\"asm\"][\"_PyPegen_raise_error_known_location\"]).apply(null,arguments)};var __PyPegen_new_identifier=Module[\"__PyPegen_new_identifier\"]=function(){return(__PyPegen_new_identifier=Module[\"__PyPegen_new_identifier\"]=Module[\"asm\"][\"_PyPegen_new_identifier\"]).apply(null,arguments)};var _PyImport_ImportModuleNoBlock=Module[\"_PyImport_ImportModuleNoBlock\"]=function(){return(_PyImport_ImportModuleNoBlock=Module[\"_PyImport_ImportModuleNoBlock\"]=Module[\"asm\"][\"PyImport_ImportModuleNoBlock\"]).apply(null,arguments)};var _PyUnicode_InternFromString=Module[\"_PyUnicode_InternFromString\"]=function(){return(_PyUnicode_InternFromString=Module[\"_PyUnicode_InternFromString\"]=Module[\"asm\"][\"PyUnicode_InternFromString\"]).apply(null,arguments)};var __PyType_Name=Module[\"__PyType_Name\"]=function(){return(__PyType_Name=Module[\"__PyType_Name\"]=Module[\"asm\"][\"_PyType_Name\"]).apply(null,arguments)};var _PyUnicode_InternInPlace=Module[\"_PyUnicode_InternInPlace\"]=function(){return(_PyUnicode_InternInPlace=Module[\"_PyUnicode_InternInPlace\"]=Module[\"asm\"][\"PyUnicode_InternInPlace\"]).apply(null,arguments)};var __PyPegen_get_expr_name=Module[\"__PyPegen_get_expr_name\"]=function(){return(__PyPegen_get_expr_name=Module[\"__PyPegen_get_expr_name\"]=Module[\"asm\"][\"_PyPegen_get_expr_name\"]).apply(null,arguments)};var _PyMem_RawMalloc=Module[\"_PyMem_RawMalloc\"]=function(){return(_PyMem_RawMalloc=Module[\"_PyMem_RawMalloc\"]=Module[\"asm\"][\"PyMem_RawMalloc\"]).apply(null,arguments)};var _PyUnicode_FromFormatV=Module[\"_PyUnicode_FromFormatV\"]=function(){return(_PyUnicode_FromFormatV=Module[\"_PyUnicode_FromFormatV\"]=Module[\"asm\"][\"PyUnicode_FromFormatV\"]).apply(null,arguments)};var _PyErr_ProgramTextObject=Module[\"_PyErr_ProgramTextObject\"]=function(){return(_PyErr_ProgramTextObject=Module[\"_PyErr_ProgramTextObject\"]=Module[\"asm\"][\"PyErr_ProgramTextObject\"]).apply(null,arguments)};var _Py_BuildValue=Module[\"_Py_BuildValue\"]=function(){return(_Py_BuildValue=Module[\"_Py_BuildValue\"]=Module[\"asm\"][\"Py_BuildValue\"]).apply(null,arguments)};var _PyTuple_Pack=Module[\"_PyTuple_Pack\"]=function(){return(_PyTuple_Pack=Module[\"_PyTuple_Pack\"]=Module[\"asm\"][\"PyTuple_Pack\"]).apply(null,arguments)};var _PyMem_RawFree=Module[\"_PyMem_RawFree\"]=function(){return(_PyMem_RawFree=Module[\"_PyMem_RawFree\"]=Module[\"asm\"][\"PyMem_RawFree\"]).apply(null,arguments)};var __PyPegen_insert_memo=Module[\"__PyPegen_insert_memo\"]=function(){return(__PyPegen_insert_memo=Module[\"__PyPegen_insert_memo\"]=Module[\"asm\"][\"_PyPegen_insert_memo\"]).apply(null,arguments)};var _PyArena_Malloc=Module[\"_PyArena_Malloc\"]=function(){return(_PyArena_Malloc=Module[\"_PyArena_Malloc\"]=Module[\"asm\"][\"PyArena_Malloc\"]).apply(null,arguments)};var __PyPegen_update_memo=Module[\"__PyPegen_update_memo\"]=function(){return(__PyPegen_update_memo=Module[\"__PyPegen_update_memo\"]=Module[\"asm\"][\"_PyPegen_update_memo\"]).apply(null,arguments)};var __PyPegen_dummy_name=Module[\"__PyPegen_dummy_name\"]=function(){return(__PyPegen_dummy_name=Module[\"__PyPegen_dummy_name\"]=Module[\"asm\"][\"_PyPegen_dummy_name\"]).apply(null,arguments)};var __Py_Name=Module[\"__Py_Name\"]=function(){return(__Py_Name=Module[\"__Py_Name\"]=Module[\"asm\"][\"_Py_Name\"]).apply(null,arguments)};var __PyPegen_fill_token=Module[\"__PyPegen_fill_token\"]=function(){return(__PyPegen_fill_token=Module[\"__PyPegen_fill_token\"]=Module[\"asm\"][\"_PyPegen_fill_token\"]).apply(null,arguments)};var _PyTokenizer_Get=Module[\"_PyTokenizer_Get\"]=function(){return(_PyTokenizer_Get=Module[\"_PyTokenizer_Get\"]=Module[\"asm\"][\"PyTokenizer_Get\"]).apply(null,arguments)};var _strncpy=Module[\"_strncpy\"]=function(){return(_strncpy=Module[\"_strncpy\"]=Module[\"asm\"][\"strncpy\"]).apply(null,arguments)};var _PyMem_Realloc=Module[\"_PyMem_Realloc\"]=function(){return(_PyMem_Realloc=Module[\"_PyMem_Realloc\"]=Module[\"asm\"][\"PyMem_Realloc\"]).apply(null,arguments)};var _PyBytes_FromStringAndSize=Module[\"_PyBytes_FromStringAndSize\"]=function(){return(_PyBytes_FromStringAndSize=Module[\"_PyBytes_FromStringAndSize\"]=Module[\"asm\"][\"PyBytes_FromStringAndSize\"]).apply(null,arguments)};var _PyErr_SetNone=Module[\"_PyErr_SetNone\"]=function(){return(_PyErr_SetNone=Module[\"_PyErr_SetNone\"]=Module[\"asm\"][\"PyErr_SetNone\"]).apply(null,arguments)};var _strtok=Module[\"_strtok\"]=function(){return(_strtok=Module[\"_strtok\"]=Module[\"asm\"][\"strtok\"]).apply(null,arguments)};var _PyObject_Str=Module[\"_PyObject_Str\"]=function(){return(_PyObject_Str=Module[\"_PyObject_Str\"]=Module[\"asm\"][\"PyObject_Str\"]).apply(null,arguments)};var __PyPegen_clear_memo_statistics=Module[\"__PyPegen_clear_memo_statistics\"]=function(){return(__PyPegen_clear_memo_statistics=Module[\"__PyPegen_clear_memo_statistics\"]=Module[\"asm\"][\"_PyPegen_clear_memo_statistics\"]).apply(null,arguments)};var __PyPegen_get_memo_statistics=Module[\"__PyPegen_get_memo_statistics\"]=function(){return(__PyPegen_get_memo_statistics=Module[\"__PyPegen_get_memo_statistics\"]=Module[\"asm\"][\"_PyPegen_get_memo_statistics\"]).apply(null,arguments)};var _PyList_SetItem=Module[\"_PyList_SetItem\"]=function(){return(_PyList_SetItem=Module[\"_PyList_SetItem\"]=Module[\"asm\"][\"PyList_SetItem\"]).apply(null,arguments)};var __PyPegen_is_memoized=Module[\"__PyPegen_is_memoized\"]=function(){return(__PyPegen_is_memoized=Module[\"__PyPegen_is_memoized\"]=Module[\"asm\"][\"_PyPegen_is_memoized\"]).apply(null,arguments)};var __PyPegen_lookahead_with_name=Module[\"__PyPegen_lookahead_with_name\"]=function(){return(__PyPegen_lookahead_with_name=Module[\"__PyPegen_lookahead_with_name\"]=Module[\"asm\"][\"_PyPegen_lookahead_with_name\"]).apply(null,arguments)};var __PyPegen_lookahead_with_string=Module[\"__PyPegen_lookahead_with_string\"]=function(){return(__PyPegen_lookahead_with_string=Module[\"__PyPegen_lookahead_with_string\"]=Module[\"asm\"][\"_PyPegen_lookahead_with_string\"]).apply(null,arguments)};var __PyPegen_lookahead_with_int=Module[\"__PyPegen_lookahead_with_int\"]=function(){return(__PyPegen_lookahead_with_int=Module[\"__PyPegen_lookahead_with_int\"]=Module[\"asm\"][\"_PyPegen_lookahead_with_int\"]).apply(null,arguments)};var __PyPegen_lookahead=Module[\"__PyPegen_lookahead\"]=function(){return(__PyPegen_lookahead=Module[\"__PyPegen_lookahead\"]=Module[\"asm\"][\"_PyPegen_lookahead\"]).apply(null,arguments)};var __PyPegen_expect_token=Module[\"__PyPegen_expect_token\"]=function(){return(__PyPegen_expect_token=Module[\"__PyPegen_expect_token\"]=Module[\"asm\"][\"_PyPegen_expect_token\"]).apply(null,arguments)};var __PyPegen_expect_soft_keyword=Module[\"__PyPegen_expect_soft_keyword\"]=function(){return(__PyPegen_expect_soft_keyword=Module[\"__PyPegen_expect_soft_keyword\"]=Module[\"asm\"][\"_PyPegen_expect_soft_keyword\"]).apply(null,arguments)};var __PyPegen_name_token=Module[\"__PyPegen_name_token\"]=function(){return(__PyPegen_name_token=Module[\"__PyPegen_name_token\"]=Module[\"asm\"][\"_PyPegen_name_token\"]).apply(null,arguments)};var __PyPegen_get_last_nonnwhitespace_token=Module[\"__PyPegen_get_last_nonnwhitespace_token\"]=function(){return(__PyPegen_get_last_nonnwhitespace_token=Module[\"__PyPegen_get_last_nonnwhitespace_token\"]=Module[\"asm\"][\"_PyPegen_get_last_nonnwhitespace_token\"]).apply(null,arguments)};var __PyPegen_string_token=Module[\"__PyPegen_string_token\"]=function(){return(__PyPegen_string_token=Module[\"__PyPegen_string_token\"]=Module[\"asm\"][\"_PyPegen_string_token\"]).apply(null,arguments)};var __PyPegen_number_token=Module[\"__PyPegen_number_token\"]=function(){return(__PyPegen_number_token=Module[\"__PyPegen_number_token\"]=Module[\"asm\"][\"_PyPegen_number_token\"]).apply(null,arguments)};var _strchr=Module[\"_strchr\"]=function(){return(_strchr=Module[\"_strchr\"]=Module[\"asm\"][\"strchr\"]).apply(null,arguments)};var __Py_Constant=Module[\"__Py_Constant\"]=function(){return(__Py_Constant=Module[\"__Py_Constant\"]=Module[\"asm\"][\"_Py_Constant\"]).apply(null,arguments)};var __PyPegen_Parser_Free=Module[\"__PyPegen_Parser_Free\"]=function(){return(__PyPegen_Parser_Free=Module[\"__PyPegen_Parser_Free\"]=Module[\"asm\"][\"_PyPegen_Parser_Free\"]).apply(null,arguments)};var __PyPegen_Parser_New=Module[\"__PyPegen_Parser_New\"]=function(){return(__PyPegen_Parser_New=Module[\"__PyPegen_Parser_New\"]=Module[\"asm\"][\"_PyPegen_Parser_New\"]).apply(null,arguments)};var _PyMem_Calloc=Module[\"_PyMem_Calloc\"]=function(){return(_PyMem_Calloc=Module[\"_PyMem_Calloc\"]=Module[\"asm\"][\"PyMem_Calloc\"]).apply(null,arguments)};var __PyPegen_run_parser=Module[\"__PyPegen_run_parser\"]=function(){return(__PyPegen_run_parser=Module[\"__PyPegen_run_parser\"]=Module[\"asm\"][\"_PyPegen_run_parser\"]).apply(null,arguments)};var __PyPegen_parse=Module[\"__PyPegen_parse\"]=function(){return(__PyPegen_parse=Module[\"__PyPegen_parse\"]=Module[\"asm\"][\"_PyPegen_parse\"]).apply(null,arguments)};var __PyPegen_run_parser_from_file_pointer=Module[\"__PyPegen_run_parser_from_file_pointer\"]=function(){return(__PyPegen_run_parser_from_file_pointer=Module[\"__PyPegen_run_parser_from_file_pointer\"]=Module[\"asm\"][\"_PyPegen_run_parser_from_file_pointer\"]).apply(null,arguments)};var _PyTokenizer_FromFile=Module[\"_PyTokenizer_FromFile\"]=function(){return(_PyTokenizer_FromFile=Module[\"_PyTokenizer_FromFile\"]=Module[\"asm\"][\"PyTokenizer_FromFile\"]).apply(null,arguments)};var _PyTokenizer_Free=Module[\"_PyTokenizer_Free\"]=function(){return(_PyTokenizer_Free=Module[\"_PyTokenizer_Free\"]=Module[\"asm\"][\"PyTokenizer_Free\"]).apply(null,arguments)};var __PyPegen_run_parser_from_file=Module[\"__PyPegen_run_parser_from_file\"]=function(){return(__PyPegen_run_parser_from_file=Module[\"__PyPegen_run_parser_from_file\"]=Module[\"asm\"][\"_PyPegen_run_parser_from_file\"]).apply(null,arguments)};var _fopen=Module[\"_fopen\"]=function(){return(_fopen=Module[\"_fopen\"]=Module[\"asm\"][\"fopen\"]).apply(null,arguments)};var _PyErr_SetFromErrnoWithFilename=Module[\"_PyErr_SetFromErrnoWithFilename\"]=function(){return(_PyErr_SetFromErrnoWithFilename=Module[\"_PyErr_SetFromErrnoWithFilename\"]=Module[\"asm\"][\"PyErr_SetFromErrnoWithFilename\"]).apply(null,arguments)};var _fclose=Module[\"_fclose\"]=function(){return(_fclose=Module[\"_fclose\"]=Module[\"asm\"][\"fclose\"]).apply(null,arguments)};var __PyPegen_run_parser_from_string=Module[\"__PyPegen_run_parser_from_string\"]=function(){return(__PyPegen_run_parser_from_string=Module[\"__PyPegen_run_parser_from_string\"]=Module[\"asm\"][\"_PyPegen_run_parser_from_string\"]).apply(null,arguments)};var _PyTokenizer_FromUTF8=Module[\"_PyTokenizer_FromUTF8\"]=function(){return(_PyTokenizer_FromUTF8=Module[\"_PyTokenizer_FromUTF8\"]=Module[\"asm\"][\"PyTokenizer_FromUTF8\"]).apply(null,arguments)};var _PyTokenizer_FromString=Module[\"_PyTokenizer_FromString\"]=function(){return(_PyTokenizer_FromString=Module[\"_PyTokenizer_FromString\"]=Module[\"asm\"][\"PyTokenizer_FromString\"]).apply(null,arguments)};var __PyPegen_interactive_exit=Module[\"__PyPegen_interactive_exit\"]=function(){return(__PyPegen_interactive_exit=Module[\"__PyPegen_interactive_exit\"]=Module[\"asm\"][\"_PyPegen_interactive_exit\"]).apply(null,arguments)};var __PyPegen_singleton_seq=Module[\"__PyPegen_singleton_seq\"]=function(){return(__PyPegen_singleton_seq=Module[\"__PyPegen_singleton_seq\"]=Module[\"asm\"][\"_PyPegen_singleton_seq\"]).apply(null,arguments)};var __Py_asdl_seq_new=Module[\"__Py_asdl_seq_new\"]=function(){return(__Py_asdl_seq_new=Module[\"__Py_asdl_seq_new\"]=Module[\"asm\"][\"_Py_asdl_seq_new\"]).apply(null,arguments)};var __PyPegen_seq_insert_in_front=Module[\"__PyPegen_seq_insert_in_front\"]=function(){return(__PyPegen_seq_insert_in_front=Module[\"__PyPegen_seq_insert_in_front\"]=Module[\"asm\"][\"_PyPegen_seq_insert_in_front\"]).apply(null,arguments)};var __PyPegen_seq_append_to_end=Module[\"__PyPegen_seq_append_to_end\"]=function(){return(__PyPegen_seq_append_to_end=Module[\"__PyPegen_seq_append_to_end\"]=Module[\"asm\"][\"_PyPegen_seq_append_to_end\"]).apply(null,arguments)};var __PyPegen_seq_flatten=Module[\"__PyPegen_seq_flatten\"]=function(){return(__PyPegen_seq_flatten=Module[\"__PyPegen_seq_flatten\"]=Module[\"asm\"][\"_PyPegen_seq_flatten\"]).apply(null,arguments)};var __PyPegen_join_names_with_dot=Module[\"__PyPegen_join_names_with_dot\"]=function(){return(__PyPegen_join_names_with_dot=Module[\"__PyPegen_join_names_with_dot\"]=Module[\"asm\"][\"_PyPegen_join_names_with_dot\"]).apply(null,arguments)};var __PyUnicode_Ready=Module[\"__PyUnicode_Ready\"]=function(){return(__PyUnicode_Ready=Module[\"__PyUnicode_Ready\"]=Module[\"asm\"][\"_PyUnicode_Ready\"]).apply(null,arguments)};var _strcpy=Module[\"_strcpy\"]=function(){return(_strcpy=Module[\"_strcpy\"]=Module[\"asm\"][\"strcpy\"]).apply(null,arguments)};var __PyPegen_seq_count_dots=Module[\"__PyPegen_seq_count_dots\"]=function(){return(__PyPegen_seq_count_dots=Module[\"__PyPegen_seq_count_dots\"]=Module[\"asm\"][\"_PyPegen_seq_count_dots\"]).apply(null,arguments)};var __PyPegen_alias_for_star=Module[\"__PyPegen_alias_for_star\"]=function(){return(__PyPegen_alias_for_star=Module[\"__PyPegen_alias_for_star\"]=Module[\"asm\"][\"_PyPegen_alias_for_star\"]).apply(null,arguments)};var __Py_alias=Module[\"__Py_alias\"]=function(){return(__Py_alias=Module[\"__Py_alias\"]=Module[\"asm\"][\"_Py_alias\"]).apply(null,arguments)};var __PyPegen_map_names_to_ids=Module[\"__PyPegen_map_names_to_ids\"]=function(){return(__PyPegen_map_names_to_ids=Module[\"__PyPegen_map_names_to_ids\"]=Module[\"asm\"][\"_PyPegen_map_names_to_ids\"]).apply(null,arguments)};var __PyPegen_cmpop_expr_pair=Module[\"__PyPegen_cmpop_expr_pair\"]=function(){return(__PyPegen_cmpop_expr_pair=Module[\"__PyPegen_cmpop_expr_pair\"]=Module[\"asm\"][\"_PyPegen_cmpop_expr_pair\"]).apply(null,arguments)};var __PyPegen_get_cmpops=Module[\"__PyPegen_get_cmpops\"]=function(){return(__PyPegen_get_cmpops=Module[\"__PyPegen_get_cmpops\"]=Module[\"asm\"][\"_PyPegen_get_cmpops\"]).apply(null,arguments)};var __Py_asdl_int_seq_new=Module[\"__Py_asdl_int_seq_new\"]=function(){return(__Py_asdl_int_seq_new=Module[\"__Py_asdl_int_seq_new\"]=Module[\"asm\"][\"_Py_asdl_int_seq_new\"]).apply(null,arguments)};var __PyPegen_get_exprs=Module[\"__PyPegen_get_exprs\"]=function(){return(__PyPegen_get_exprs=Module[\"__PyPegen_get_exprs\"]=Module[\"asm\"][\"_PyPegen_get_exprs\"]).apply(null,arguments)};var __PyPegen_set_expr_context=Module[\"__PyPegen_set_expr_context\"]=function(){return(__PyPegen_set_expr_context=Module[\"__PyPegen_set_expr_context\"]=Module[\"asm\"][\"_PyPegen_set_expr_context\"]).apply(null,arguments)};var __Py_Tuple=Module[\"__Py_Tuple\"]=function(){return(__Py_Tuple=Module[\"__Py_Tuple\"]=Module[\"asm\"][\"_Py_Tuple\"]).apply(null,arguments)};var __Py_List=Module[\"__Py_List\"]=function(){return(__Py_List=Module[\"__Py_List\"]=Module[\"asm\"][\"_Py_List\"]).apply(null,arguments)};var __Py_Subscript=Module[\"__Py_Subscript\"]=function(){return(__Py_Subscript=Module[\"__Py_Subscript\"]=Module[\"asm\"][\"_Py_Subscript\"]).apply(null,arguments)};var __Py_Attribute=Module[\"__Py_Attribute\"]=function(){return(__Py_Attribute=Module[\"__Py_Attribute\"]=Module[\"asm\"][\"_Py_Attribute\"]).apply(null,arguments)};var __Py_Starred=Module[\"__Py_Starred\"]=function(){return(__Py_Starred=Module[\"__Py_Starred\"]=Module[\"asm\"][\"_Py_Starred\"]).apply(null,arguments)};var __PyPegen_key_value_pair=Module[\"__PyPegen_key_value_pair\"]=function(){return(__PyPegen_key_value_pair=Module[\"__PyPegen_key_value_pair\"]=Module[\"asm\"][\"_PyPegen_key_value_pair\"]).apply(null,arguments)};var __PyPegen_get_keys=Module[\"__PyPegen_get_keys\"]=function(){return(__PyPegen_get_keys=Module[\"__PyPegen_get_keys\"]=Module[\"asm\"][\"_PyPegen_get_keys\"]).apply(null,arguments)};var __PyPegen_get_values=Module[\"__PyPegen_get_values\"]=function(){return(__PyPegen_get_values=Module[\"__PyPegen_get_values\"]=Module[\"asm\"][\"_PyPegen_get_values\"]).apply(null,arguments)};var __PyPegen_name_default_pair=Module[\"__PyPegen_name_default_pair\"]=function(){return(__PyPegen_name_default_pair=Module[\"__PyPegen_name_default_pair\"]=Module[\"asm\"][\"_PyPegen_name_default_pair\"]).apply(null,arguments)};var __PyPegen_slash_with_default=Module[\"__PyPegen_slash_with_default\"]=function(){return(__PyPegen_slash_with_default=Module[\"__PyPegen_slash_with_default\"]=Module[\"asm\"][\"_PyPegen_slash_with_default\"]).apply(null,arguments)};var __PyPegen_star_etc=Module[\"__PyPegen_star_etc\"]=function(){return(__PyPegen_star_etc=Module[\"__PyPegen_star_etc\"]=Module[\"asm\"][\"_PyPegen_star_etc\"]).apply(null,arguments)};var __PyPegen_join_sequences=Module[\"__PyPegen_join_sequences\"]=function(){return(__PyPegen_join_sequences=Module[\"__PyPegen_join_sequences\"]=Module[\"asm\"][\"_PyPegen_join_sequences\"]).apply(null,arguments)};var __PyPegen_make_arguments=Module[\"__PyPegen_make_arguments\"]=function(){return(__PyPegen_make_arguments=Module[\"__PyPegen_make_arguments\"]=Module[\"asm\"][\"_PyPegen_make_arguments\"]).apply(null,arguments)};var __Py_arguments=Module[\"__Py_arguments\"]=function(){return(__Py_arguments=Module[\"__Py_arguments\"]=Module[\"asm\"][\"_Py_arguments\"]).apply(null,arguments)};var __PyPegen_empty_arguments=Module[\"__PyPegen_empty_arguments\"]=function(){return(__PyPegen_empty_arguments=Module[\"__PyPegen_empty_arguments\"]=Module[\"asm\"][\"_PyPegen_empty_arguments\"]).apply(null,arguments)};var __PyPegen_augoperator=Module[\"__PyPegen_augoperator\"]=function(){return(__PyPegen_augoperator=Module[\"__PyPegen_augoperator\"]=Module[\"asm\"][\"_PyPegen_augoperator\"]).apply(null,arguments)};var __PyPegen_function_def_decorators=Module[\"__PyPegen_function_def_decorators\"]=function(){return(__PyPegen_function_def_decorators=Module[\"__PyPegen_function_def_decorators\"]=Module[\"asm\"][\"_PyPegen_function_def_decorators\"]).apply(null,arguments)};var __Py_AsyncFunctionDef=Module[\"__Py_AsyncFunctionDef\"]=function(){return(__Py_AsyncFunctionDef=Module[\"__Py_AsyncFunctionDef\"]=Module[\"asm\"][\"_Py_AsyncFunctionDef\"]).apply(null,arguments)};var __Py_FunctionDef=Module[\"__Py_FunctionDef\"]=function(){return(__Py_FunctionDef=Module[\"__Py_FunctionDef\"]=Module[\"asm\"][\"_Py_FunctionDef\"]).apply(null,arguments)};var __PyPegen_class_def_decorators=Module[\"__PyPegen_class_def_decorators\"]=function(){return(__PyPegen_class_def_decorators=Module[\"__PyPegen_class_def_decorators\"]=Module[\"asm\"][\"_PyPegen_class_def_decorators\"]).apply(null,arguments)};var __Py_ClassDef=Module[\"__Py_ClassDef\"]=function(){return(__Py_ClassDef=Module[\"__Py_ClassDef\"]=Module[\"asm\"][\"_Py_ClassDef\"]).apply(null,arguments)};var __PyPegen_keyword_or_starred=Module[\"__PyPegen_keyword_or_starred\"]=function(){return(__PyPegen_keyword_or_starred=Module[\"__PyPegen_keyword_or_starred\"]=Module[\"asm\"][\"_PyPegen_keyword_or_starred\"]).apply(null,arguments)};var __PyPegen_seq_extract_starred_exprs=Module[\"__PyPegen_seq_extract_starred_exprs\"]=function(){return(__PyPegen_seq_extract_starred_exprs=Module[\"__PyPegen_seq_extract_starred_exprs\"]=Module[\"asm\"][\"_PyPegen_seq_extract_starred_exprs\"]).apply(null,arguments)};var __PyPegen_seq_delete_starred_exprs=Module[\"__PyPegen_seq_delete_starred_exprs\"]=function(){return(__PyPegen_seq_delete_starred_exprs=Module[\"__PyPegen_seq_delete_starred_exprs\"]=Module[\"asm\"][\"_PyPegen_seq_delete_starred_exprs\"]).apply(null,arguments)};var __PyPegen_concatenate_strings=Module[\"__PyPegen_concatenate_strings\"]=function(){return(__PyPegen_concatenate_strings=Module[\"__PyPegen_concatenate_strings\"]=Module[\"asm\"][\"_PyPegen_concatenate_strings\"]).apply(null,arguments)};var __PyPegen_FstringParser_Init=Module[\"__PyPegen_FstringParser_Init\"]=function(){return(__PyPegen_FstringParser_Init=Module[\"__PyPegen_FstringParser_Init\"]=Module[\"asm\"][\"_PyPegen_FstringParser_Init\"]).apply(null,arguments)};var __PyPegen_parsestr=Module[\"__PyPegen_parsestr\"]=function(){return(__PyPegen_parsestr=Module[\"__PyPegen_parsestr\"]=Module[\"asm\"][\"_PyPegen_parsestr\"]).apply(null,arguments)};var __PyPegen_FstringParser_ConcatFstring=Module[\"__PyPegen_FstringParser_ConcatFstring\"]=function(){return(__PyPegen_FstringParser_ConcatFstring=Module[\"__PyPegen_FstringParser_ConcatFstring\"]=Module[\"asm\"][\"_PyPegen_FstringParser_ConcatFstring\"]).apply(null,arguments)};var __PyPegen_FstringParser_ConcatAndDel=Module[\"__PyPegen_FstringParser_ConcatAndDel\"]=function(){return(__PyPegen_FstringParser_ConcatAndDel=Module[\"__PyPegen_FstringParser_ConcatAndDel\"]=Module[\"asm\"][\"_PyPegen_FstringParser_ConcatAndDel\"]).apply(null,arguments)};var _PyBytes_ConcatAndDel=Module[\"_PyBytes_ConcatAndDel\"]=function(){return(_PyBytes_ConcatAndDel=Module[\"_PyBytes_ConcatAndDel\"]=Module[\"asm\"][\"PyBytes_ConcatAndDel\"]).apply(null,arguments)};var __PyPegen_FstringParser_Finish=Module[\"__PyPegen_FstringParser_Finish\"]=function(){return(__PyPegen_FstringParser_Finish=Module[\"__PyPegen_FstringParser_Finish\"]=Module[\"asm\"][\"_PyPegen_FstringParser_Finish\"]).apply(null,arguments)};var __PyPegen_FstringParser_Dealloc=Module[\"__PyPegen_FstringParser_Dealloc\"]=function(){return(__PyPegen_FstringParser_Dealloc=Module[\"__PyPegen_FstringParser_Dealloc\"]=Module[\"asm\"][\"_PyPegen_FstringParser_Dealloc\"]).apply(null,arguments)};var __PyPegen_make_module=Module[\"__PyPegen_make_module\"]=function(){return(__PyPegen_make_module=Module[\"__PyPegen_make_module\"]=Module[\"asm\"][\"_PyPegen_make_module\"]).apply(null,arguments)};var __Py_TypeIgnore=Module[\"__Py_TypeIgnore\"]=function(){return(__Py_TypeIgnore=Module[\"__Py_TypeIgnore\"]=Module[\"asm\"][\"_Py_TypeIgnore\"]).apply(null,arguments)};var __Py_Module=Module[\"__Py_Module\"]=function(){return(__Py_Module=Module[\"__Py_Module\"]=Module[\"asm\"][\"_Py_Module\"]).apply(null,arguments)};var __PyPegen_get_invalid_target=Module[\"__PyPegen_get_invalid_target\"]=function(){return(__PyPegen_get_invalid_target=Module[\"__PyPegen_get_invalid_target\"]=Module[\"asm\"][\"_PyPegen_get_invalid_target\"]).apply(null,arguments)};var __PyPegen_arguments_parsing_error=Module[\"__PyPegen_arguments_parsing_error\"]=function(){return(__PyPegen_arguments_parsing_error=Module[\"__PyPegen_arguments_parsing_error\"]=Module[\"asm\"][\"_PyPegen_arguments_parsing_error\"]).apply(null,arguments)};var __PyPegen_nonparen_genexp_in_call=Module[\"__PyPegen_nonparen_genexp_in_call\"]=function(){return(__PyPegen_nonparen_genexp_in_call=Module[\"__PyPegen_nonparen_genexp_in_call\"]=Module[\"asm\"][\"_PyPegen_nonparen_genexp_in_call\"]).apply(null,arguments)};var __PyPegen_collect_call_seqs=Module[\"__PyPegen_collect_call_seqs\"]=function(){return(__PyPegen_collect_call_seqs=Module[\"__PyPegen_collect_call_seqs\"]=Module[\"asm\"][\"_PyPegen_collect_call_seqs\"]).apply(null,arguments)};var __Py_Call=Module[\"__Py_Call\"]=function(){return(__Py_Call=Module[\"__Py_Call\"]=Module[\"asm\"][\"_Py_Call\"]).apply(null,arguments)};var ___errno_location=Module[\"___errno_location\"]=function(){return(___errno_location=Module[\"___errno_location\"]=Module[\"asm\"][\"__errno_location\"]).apply(null,arguments)};var _PyOS_strtoul=Module[\"_PyOS_strtoul\"]=function(){return(_PyOS_strtoul=Module[\"_PyOS_strtoul\"]=Module[\"asm\"][\"PyOS_strtoul\"]).apply(null,arguments)};var _PyLong_FromString=Module[\"_PyLong_FromString\"]=function(){return(_PyLong_FromString=Module[\"_PyLong_FromString\"]=Module[\"asm\"][\"PyLong_FromString\"]).apply(null,arguments)};var _PyOS_strtol=Module[\"_PyOS_strtol\"]=function(){return(_PyOS_strtol=Module[\"_PyOS_strtol\"]=Module[\"asm\"][\"PyOS_strtol\"]).apply(null,arguments)};var _PyOS_string_to_double=Module[\"_PyOS_string_to_double\"]=function(){return(_PyOS_string_to_double=Module[\"_PyOS_string_to_double\"]=Module[\"asm\"][\"PyOS_string_to_double\"]).apply(null,arguments)};var _PyComplex_FromCComplex=Module[\"_PyComplex_FromCComplex\"]=function(){return(_PyComplex_FromCComplex=Module[\"_PyComplex_FromCComplex\"]=Module[\"asm\"][\"PyComplex_FromCComplex\"]).apply(null,arguments)};var _PyFloat_FromDouble=Module[\"_PyFloat_FromDouble\"]=function(){return(_PyFloat_FromDouble=Module[\"_PyFloat_FromDouble\"]=Module[\"asm\"][\"PyFloat_FromDouble\"]).apply(null,arguments)};var __Py_Pass=Module[\"__Py_Pass\"]=function(){return(__Py_Pass=Module[\"__Py_Pass\"]=Module[\"asm\"][\"_Py_Pass\"]).apply(null,arguments)};var __Py_Interactive=Module[\"__Py_Interactive\"]=function(){return(__Py_Interactive=Module[\"__Py_Interactive\"]=Module[\"asm\"][\"_Py_Interactive\"]).apply(null,arguments)};var __Py_FunctionType=Module[\"__Py_FunctionType\"]=function(){return(__Py_FunctionType=Module[\"__Py_FunctionType\"]=Module[\"asm\"][\"_Py_FunctionType\"]).apply(null,arguments)};var __Py_Expression=Module[\"__Py_Expression\"]=function(){return(__Py_Expression=Module[\"__Py_Expression\"]=Module[\"asm\"][\"_Py_Expression\"]).apply(null,arguments)};var __Py_If=Module[\"__Py_If\"]=function(){return(__Py_If=Module[\"__Py_If\"]=Module[\"asm\"][\"_Py_If\"]).apply(null,arguments)};var __Py_With=Module[\"__Py_With\"]=function(){return(__Py_With=Module[\"__Py_With\"]=Module[\"asm\"][\"_Py_With\"]).apply(null,arguments)};var __Py_AsyncWith=Module[\"__Py_AsyncWith\"]=function(){return(__Py_AsyncWith=Module[\"__Py_AsyncWith\"]=Module[\"asm\"][\"_Py_AsyncWith\"]).apply(null,arguments)};var __Py_For=Module[\"__Py_For\"]=function(){return(__Py_For=Module[\"__Py_For\"]=Module[\"asm\"][\"_Py_For\"]).apply(null,arguments)};var __Py_AsyncFor=Module[\"__Py_AsyncFor\"]=function(){return(__Py_AsyncFor=Module[\"__Py_AsyncFor\"]=Module[\"asm\"][\"_Py_AsyncFor\"]).apply(null,arguments)};var __Py_Try=Module[\"__Py_Try\"]=function(){return(__Py_Try=Module[\"__Py_Try\"]=Module[\"asm\"][\"_Py_Try\"]).apply(null,arguments)};var __Py_While=Module[\"__Py_While\"]=function(){return(__Py_While=Module[\"__Py_While\"]=Module[\"asm\"][\"_Py_While\"]).apply(null,arguments)};var __Py_NamedExpr=Module[\"__Py_NamedExpr\"]=function(){return(__Py_NamedExpr=Module[\"__Py_NamedExpr\"]=Module[\"asm\"][\"_Py_NamedExpr\"]).apply(null,arguments)};var __Py_IfExp=Module[\"__Py_IfExp\"]=function(){return(__Py_IfExp=Module[\"__Py_IfExp\"]=Module[\"asm\"][\"_Py_IfExp\"]).apply(null,arguments)};var __Py_Lambda=Module[\"__Py_Lambda\"]=function(){return(__Py_Lambda=Module[\"__Py_Lambda\"]=Module[\"asm\"][\"_Py_Lambda\"]).apply(null,arguments)};var __Py_BoolOp=Module[\"__Py_BoolOp\"]=function(){return(__Py_BoolOp=Module[\"__Py_BoolOp\"]=Module[\"asm\"][\"_Py_BoolOp\"]).apply(null,arguments)};var __Py_UnaryOp=Module[\"__Py_UnaryOp\"]=function(){return(__Py_UnaryOp=Module[\"__Py_UnaryOp\"]=Module[\"asm\"][\"_Py_UnaryOp\"]).apply(null,arguments)};var __Py_Compare=Module[\"__Py_Compare\"]=function(){return(__Py_Compare=Module[\"__Py_Compare\"]=Module[\"asm\"][\"_Py_Compare\"]).apply(null,arguments)};var __Py_BinOp=Module[\"__Py_BinOp\"]=function(){return(__Py_BinOp=Module[\"__Py_BinOp\"]=Module[\"asm\"][\"_Py_BinOp\"]).apply(null,arguments)};var __Py_Await=Module[\"__Py_Await\"]=function(){return(__Py_Await=Module[\"__Py_Await\"]=Module[\"asm\"][\"_Py_Await\"]).apply(null,arguments)};var __Py_GeneratorExp=Module[\"__Py_GeneratorExp\"]=function(){return(__Py_GeneratorExp=Module[\"__Py_GeneratorExp\"]=Module[\"asm\"][\"_Py_GeneratorExp\"]).apply(null,arguments)};var __Py_ListComp=Module[\"__Py_ListComp\"]=function(){return(__Py_ListComp=Module[\"__Py_ListComp\"]=Module[\"asm\"][\"_Py_ListComp\"]).apply(null,arguments)};var __Py_Dict=Module[\"__Py_Dict\"]=function(){return(__Py_Dict=Module[\"__Py_Dict\"]=Module[\"asm\"][\"_Py_Dict\"]).apply(null,arguments)};var __Py_Set=Module[\"__Py_Set\"]=function(){return(__Py_Set=Module[\"__Py_Set\"]=Module[\"asm\"][\"_Py_Set\"]).apply(null,arguments)};var __Py_DictComp=Module[\"__Py_DictComp\"]=function(){return(__Py_DictComp=Module[\"__Py_DictComp\"]=Module[\"asm\"][\"_Py_DictComp\"]).apply(null,arguments)};var __Py_SetComp=Module[\"__Py_SetComp\"]=function(){return(__Py_SetComp=Module[\"__Py_SetComp\"]=Module[\"asm\"][\"_Py_SetComp\"]).apply(null,arguments)};var __Py_comprehension=Module[\"__Py_comprehension\"]=function(){return(__Py_comprehension=Module[\"__Py_comprehension\"]=Module[\"asm\"][\"_Py_comprehension\"]).apply(null,arguments)};var __Py_keyword=Module[\"__Py_keyword\"]=function(){return(__Py_keyword=Module[\"__Py_keyword\"]=Module[\"asm\"][\"_Py_keyword\"]).apply(null,arguments)};var __Py_Slice=Module[\"__Py_Slice\"]=function(){return(__Py_Slice=Module[\"__Py_Slice\"]=Module[\"asm\"][\"_Py_Slice\"]).apply(null,arguments)};var __Py_YieldFrom=Module[\"__Py_YieldFrom\"]=function(){return(__Py_YieldFrom=Module[\"__Py_YieldFrom\"]=Module[\"asm\"][\"_Py_YieldFrom\"]).apply(null,arguments)};var __Py_Yield=Module[\"__Py_Yield\"]=function(){return(__Py_Yield=Module[\"__Py_Yield\"]=Module[\"asm\"][\"_Py_Yield\"]).apply(null,arguments)};var __Py_withitem=Module[\"__Py_withitem\"]=function(){return(__Py_withitem=Module[\"__Py_withitem\"]=Module[\"asm\"][\"_Py_withitem\"]).apply(null,arguments)};var __Py_ExceptHandler=Module[\"__Py_ExceptHandler\"]=function(){return(__Py_ExceptHandler=Module[\"__Py_ExceptHandler\"]=Module[\"asm\"][\"_Py_ExceptHandler\"]).apply(null,arguments)};var __Py_AnnAssign=Module[\"__Py_AnnAssign\"]=function(){return(__Py_AnnAssign=Module[\"__Py_AnnAssign\"]=Module[\"asm\"][\"_Py_AnnAssign\"]).apply(null,arguments)};var __Py_Assign=Module[\"__Py_Assign\"]=function(){return(__Py_Assign=Module[\"__Py_Assign\"]=Module[\"asm\"][\"_Py_Assign\"]).apply(null,arguments)};var __Py_AugAssign=Module[\"__Py_AugAssign\"]=function(){return(__Py_AugAssign=Module[\"__Py_AugAssign\"]=Module[\"asm\"][\"_Py_AugAssign\"]).apply(null,arguments)};var __Py_Expr=Module[\"__Py_Expr\"]=function(){return(__Py_Expr=Module[\"__Py_Expr\"]=Module[\"asm\"][\"_Py_Expr\"]).apply(null,arguments)};var __Py_Return=Module[\"__Py_Return\"]=function(){return(__Py_Return=Module[\"__Py_Return\"]=Module[\"asm\"][\"_Py_Return\"]).apply(null,arguments)};var __Py_Import=Module[\"__Py_Import\"]=function(){return(__Py_Import=Module[\"__Py_Import\"]=Module[\"asm\"][\"_Py_Import\"]).apply(null,arguments)};var __Py_ImportFrom=Module[\"__Py_ImportFrom\"]=function(){return(__Py_ImportFrom=Module[\"__Py_ImportFrom\"]=Module[\"asm\"][\"_Py_ImportFrom\"]).apply(null,arguments)};var __Py_Raise=Module[\"__Py_Raise\"]=function(){return(__Py_Raise=Module[\"__Py_Raise\"]=Module[\"asm\"][\"_Py_Raise\"]).apply(null,arguments)};var __Py_Delete=Module[\"__Py_Delete\"]=function(){return(__Py_Delete=Module[\"__Py_Delete\"]=Module[\"asm\"][\"_Py_Delete\"]).apply(null,arguments)};var __Py_Assert=Module[\"__Py_Assert\"]=function(){return(__Py_Assert=Module[\"__Py_Assert\"]=Module[\"asm\"][\"_Py_Assert\"]).apply(null,arguments)};var __Py_Break=Module[\"__Py_Break\"]=function(){return(__Py_Break=Module[\"__Py_Break\"]=Module[\"asm\"][\"_Py_Break\"]).apply(null,arguments)};var __Py_Continue=Module[\"__Py_Continue\"]=function(){return(__Py_Continue=Module[\"__Py_Continue\"]=Module[\"asm\"][\"_Py_Continue\"]).apply(null,arguments)};var __Py_Global=Module[\"__Py_Global\"]=function(){return(__Py_Global=Module[\"__Py_Global\"]=Module[\"asm\"][\"_Py_Global\"]).apply(null,arguments)};var __Py_Nonlocal=Module[\"__Py_Nonlocal\"]=function(){return(__Py_Nonlocal=Module[\"__Py_Nonlocal\"]=Module[\"asm\"][\"_Py_Nonlocal\"]).apply(null,arguments)};var __PyErr_BadInternalCall=Module[\"__PyErr_BadInternalCall\"]=function(){return(__PyErr_BadInternalCall=Module[\"__PyErr_BadInternalCall\"]=Module[\"asm\"][\"_PyErr_BadInternalCall\"]).apply(null,arguments)};var __PyBytes_DecodeEscape=Module[\"__PyBytes_DecodeEscape\"]=function(){return(__PyBytes_DecodeEscape=Module[\"__PyBytes_DecodeEscape\"]=Module[\"asm\"][\"_PyBytes_DecodeEscape\"]).apply(null,arguments)};var _PyUnicode_DecodeUTF8Stateful=Module[\"_PyUnicode_DecodeUTF8Stateful\"]=function(){return(_PyUnicode_DecodeUTF8Stateful=Module[\"_PyUnicode_DecodeUTF8Stateful\"]=Module[\"asm\"][\"PyUnicode_DecodeUTF8Stateful\"]).apply(null,arguments)};var _siprintf=Module[\"_siprintf\"]=function(){return(_siprintf=Module[\"_siprintf\"]=Module[\"asm\"][\"siprintf\"]).apply(null,arguments)};var __PyUnicode_DecodeUnicodeEscape=Module[\"__PyUnicode_DecodeUnicodeEscape\"]=function(){return(__PyUnicode_DecodeUnicodeEscape=Module[\"__PyUnicode_DecodeUnicodeEscape\"]=Module[\"asm\"][\"_PyUnicode_DecodeUnicodeEscape\"]).apply(null,arguments)};var _PyUnicode_AppendAndDel=Module[\"_PyUnicode_AppendAndDel\"]=function(){return(_PyUnicode_AppendAndDel=Module[\"_PyUnicode_AppendAndDel\"]=Module[\"asm\"][\"PyUnicode_AppendAndDel\"]).apply(null,arguments)};var _PyUnicode_FromStringAndSize=Module[\"_PyUnicode_FromStringAndSize\"]=function(){return(_PyUnicode_FromStringAndSize=Module[\"_PyUnicode_FromStringAndSize\"]=Module[\"asm\"][\"PyUnicode_FromStringAndSize\"]).apply(null,arguments)};var __Py_JoinedStr=Module[\"__Py_JoinedStr\"]=function(){return(__Py_JoinedStr=Module[\"__Py_JoinedStr\"]=Module[\"asm\"][\"_Py_JoinedStr\"]).apply(null,arguments)};var _PyUnicode_FromFormat=Module[\"_PyUnicode_FromFormat\"]=function(){return(_PyUnicode_FromFormat=Module[\"_PyUnicode_FromFormat\"]=Module[\"asm\"][\"PyUnicode_FromFormat\"]).apply(null,arguments)};var _PyErr_WarnExplicitObject=Module[\"_PyErr_WarnExplicitObject\"]=function(){return(_PyErr_WarnExplicitObject=Module[\"_PyErr_WarnExplicitObject\"]=Module[\"asm\"][\"PyErr_WarnExplicitObject\"]).apply(null,arguments)};var _strstr=Module[\"_strstr\"]=function(){return(_strstr=Module[\"_strstr\"]=Module[\"asm\"][\"strstr\"]).apply(null,arguments)};var __Py_FormattedValue=Module[\"__Py_FormattedValue\"]=function(){return(__Py_FormattedValue=Module[\"__Py_FormattedValue\"]=Module[\"asm\"][\"_Py_FormattedValue\"]).apply(null,arguments)};var _PyPegen_ASTFromString=Module[\"_PyPegen_ASTFromString\"]=function(){return(_PyPegen_ASTFromString=Module[\"_PyPegen_ASTFromString\"]=Module[\"asm\"][\"PyPegen_ASTFromString\"]).apply(null,arguments)};var _PySys_Audit=Module[\"_PySys_Audit\"]=function(){return(_PySys_Audit=Module[\"_PySys_Audit\"]=Module[\"asm\"][\"PySys_Audit\"]).apply(null,arguments)};var _PyPegen_ASTFromStringObject=Module[\"_PyPegen_ASTFromStringObject\"]=function(){return(_PyPegen_ASTFromStringObject=Module[\"_PyPegen_ASTFromStringObject\"]=Module[\"asm\"][\"PyPegen_ASTFromStringObject\"]).apply(null,arguments)};var _PyPegen_ASTFromFilename=Module[\"_PyPegen_ASTFromFilename\"]=function(){return(_PyPegen_ASTFromFilename=Module[\"_PyPegen_ASTFromFilename\"]=Module[\"asm\"][\"PyPegen_ASTFromFilename\"]).apply(null,arguments)};var _PyPegen_ASTFromFileObject=Module[\"_PyPegen_ASTFromFileObject\"]=function(){return(_PyPegen_ASTFromFileObject=Module[\"_PyPegen_ASTFromFileObject\"]=Module[\"asm\"][\"PyPegen_ASTFromFileObject\"]).apply(null,arguments)};var _PyOS_StdioReadline=Module[\"_PyOS_StdioReadline\"]=function(){return(_PyOS_StdioReadline=Module[\"_PyOS_StdioReadline\"]=Module[\"asm\"][\"PyOS_StdioReadline\"]).apply(null,arguments)};var _fflush=Module[\"_fflush\"]=function(){return(_fflush=Module[\"_fflush\"]=Module[\"asm\"][\"fflush\"]).apply(null,arguments)};var _PyEval_RestoreThread=Module[\"_PyEval_RestoreThread\"]=function(){return(_PyEval_RestoreThread=Module[\"_PyEval_RestoreThread\"]=Module[\"asm\"][\"PyEval_RestoreThread\"]).apply(null,arguments)};var _PyEval_SaveThread=Module[\"_PyEval_SaveThread\"]=function(){return(_PyEval_SaveThread=Module[\"_PyEval_SaveThread\"]=Module[\"asm\"][\"PyEval_SaveThread\"]).apply(null,arguments)};var _PyMem_RawRealloc=Module[\"_PyMem_RawRealloc\"]=function(){return(_PyMem_RawRealloc=Module[\"_PyMem_RawRealloc\"]=Module[\"asm\"][\"PyMem_RawRealloc\"]).apply(null,arguments)};var _clearerr=Module[\"_clearerr\"]=function(){return(_clearerr=Module[\"_clearerr\"]=Module[\"asm\"][\"clearerr\"]).apply(null,arguments)};var _fgets=Module[\"_fgets\"]=function(){return(_fgets=Module[\"_fgets\"]=Module[\"asm\"][\"fgets\"]).apply(null,arguments)};var _feof=Module[\"_feof\"]=function(){return(_feof=Module[\"_feof\"]=Module[\"asm\"][\"feof\"]).apply(null,arguments)};var _PyErr_CheckSignals=Module[\"_PyErr_CheckSignals\"]=function(){return(_PyErr_CheckSignals=Module[\"_PyErr_CheckSignals\"]=Module[\"asm\"][\"PyErr_CheckSignals\"]).apply(null,arguments)};var __PyOS_InterruptOccurred=Module[\"__PyOS_InterruptOccurred\"]=function(){return(__PyOS_InterruptOccurred=Module[\"__PyOS_InterruptOccurred\"]=Module[\"asm\"][\"_PyOS_InterruptOccurred\"]).apply(null,arguments)};var _PyOS_Readline=Module[\"_PyOS_Readline\"]=function(){return(_PyOS_Readline=Module[\"_PyOS_Readline\"]=Module[\"asm\"][\"PyOS_Readline\"]).apply(null,arguments)};var _PyThread_allocate_lock=Module[\"_PyThread_allocate_lock\"]=function(){return(_PyThread_allocate_lock=Module[\"_PyThread_allocate_lock\"]=Module[\"asm\"][\"PyThread_allocate_lock\"]).apply(null,arguments)};var _PyThread_acquire_lock=Module[\"_PyThread_acquire_lock\"]=function(){return(_PyThread_acquire_lock=Module[\"_PyThread_acquire_lock\"]=Module[\"asm\"][\"PyThread_acquire_lock\"]).apply(null,arguments)};var _fileno=Module[\"_fileno\"]=function(){return(_fileno=Module[\"_fileno\"]=Module[\"asm\"][\"fileno\"]).apply(null,arguments)};var _isatty=Module[\"_isatty\"]=function(){return(_isatty=Module[\"_isatty\"]=Module[\"asm\"][\"isatty\"]).apply(null,arguments)};var _PyThread_release_lock=Module[\"_PyThread_release_lock\"]=function(){return(_PyThread_release_lock=Module[\"_PyThread_release_lock\"]=Module[\"asm\"][\"PyThread_release_lock\"]).apply(null,arguments)};var _PyParser_ParseString=Module[\"_PyParser_ParseString\"]=function(){return(_PyParser_ParseString=Module[\"_PyParser_ParseString\"]=Module[\"asm\"][\"PyParser_ParseString\"]).apply(null,arguments)};var _PyParser_ParseStringObject=Module[\"_PyParser_ParseStringObject\"]=function(){return(_PyParser_ParseStringObject=Module[\"_PyParser_ParseStringObject\"]=Module[\"asm\"][\"PyParser_ParseStringObject\"]).apply(null,arguments)};var _PyParser_ParseStringFlagsFilename=Module[\"_PyParser_ParseStringFlagsFilename\"]=function(){return(_PyParser_ParseStringFlagsFilename=Module[\"_PyParser_ParseStringFlagsFilename\"]=Module[\"asm\"][\"PyParser_ParseStringFlagsFilename\"]).apply(null,arguments)};var _PyUnicode_DecodeFSDefault=Module[\"_PyUnicode_DecodeFSDefault\"]=function(){return(_PyUnicode_DecodeFSDefault=Module[\"_PyUnicode_DecodeFSDefault\"]=Module[\"asm\"][\"PyUnicode_DecodeFSDefault\"]).apply(null,arguments)};var _PyParser_ParseStringFlags=Module[\"_PyParser_ParseStringFlags\"]=function(){return(_PyParser_ParseStringFlags=Module[\"_PyParser_ParseStringFlags\"]=Module[\"asm\"][\"PyParser_ParseStringFlags\"]).apply(null,arguments)};var _PyParser_ParseStringFlagsFilenameEx=Module[\"_PyParser_ParseStringFlagsFilenameEx\"]=function(){return(_PyParser_ParseStringFlagsFilenameEx=Module[\"_PyParser_ParseStringFlagsFilenameEx\"]=Module[\"asm\"][\"PyParser_ParseStringFlagsFilenameEx\"]).apply(null,arguments)};var _realloc=Module[\"_realloc\"]=function(){return(_realloc=Module[\"_realloc\"]=Module[\"asm\"][\"realloc\"]).apply(null,arguments)};var _PyParser_ParseFile=Module[\"_PyParser_ParseFile\"]=function(){return(_PyParser_ParseFile=Module[\"_PyParser_ParseFile\"]=Module[\"asm\"][\"PyParser_ParseFile\"]).apply(null,arguments)};var _PyParser_ParseFileFlags=Module[\"_PyParser_ParseFileFlags\"]=function(){return(_PyParser_ParseFileFlags=Module[\"_PyParser_ParseFileFlags\"]=Module[\"asm\"][\"PyParser_ParseFileFlags\"]).apply(null,arguments)};var _PyParser_ParseFileObject=Module[\"_PyParser_ParseFileObject\"]=function(){return(_PyParser_ParseFileObject=Module[\"_PyParser_ParseFileObject\"]=Module[\"asm\"][\"PyParser_ParseFileObject\"]).apply(null,arguments)};var _PyParser_ParseFileFlagsEx=Module[\"_PyParser_ParseFileFlagsEx\"]=function(){return(_PyParser_ParseFileFlagsEx=Module[\"_PyParser_ParseFileFlagsEx\"]=Module[\"asm\"][\"PyParser_ParseFileFlagsEx\"]).apply(null,arguments)};var _PyUnicode_Decode=Module[\"_PyUnicode_Decode\"]=function(){return(_PyUnicode_Decode=Module[\"_PyUnicode_Decode\"]=Module[\"asm\"][\"PyUnicode_Decode\"]).apply(null,arguments)};var _PyUnicode_AsUTF8String=Module[\"_PyUnicode_AsUTF8String\"]=function(){return(_PyUnicode_AsUTF8String=Module[\"_PyUnicode_AsUTF8String\"]=Module[\"asm\"][\"PyUnicode_AsUTF8String\"]).apply(null,arguments)};var _memcmp=Module[\"_memcmp\"]=function(){return(_memcmp=Module[\"_memcmp\"]=Module[\"asm\"][\"memcmp\"]).apply(null,arguments)};var __PyUnicode_ScanIdentifier=Module[\"__PyUnicode_ScanIdentifier\"]=function(){return(__PyUnicode_ScanIdentifier=Module[\"__PyUnicode_ScanIdentifier\"]=Module[\"asm\"][\"_PyUnicode_ScanIdentifier\"]).apply(null,arguments)};var _PyUnicode_Substring=Module[\"_PyUnicode_Substring\"]=function(){return(_PyUnicode_Substring=Module[\"_PyUnicode_Substring\"]=Module[\"asm\"][\"PyUnicode_Substring\"]).apply(null,arguments)};var __PyUnicode_IsPrintable=Module[\"__PyUnicode_IsPrintable\"]=function(){return(__PyUnicode_IsPrintable=Module[\"__PyUnicode_IsPrintable\"]=Module[\"asm\"][\"_PyUnicode_IsPrintable\"]).apply(null,arguments)};var _isxdigit=Module[\"_isxdigit\"]=function(){return(_isxdigit=Module[\"_isxdigit\"]=Module[\"asm\"][\"isxdigit\"]).apply(null,arguments)};var _PyTokenizer_FindEncodingFilename=Module[\"_PyTokenizer_FindEncodingFilename\"]=function(){return(_PyTokenizer_FindEncodingFilename=Module[\"_PyTokenizer_FindEncodingFilename\"]=Module[\"asm\"][\"PyTokenizer_FindEncodingFilename\"]).apply(null,arguments)};var __Py_dup=Module[\"__Py_dup\"]=function(){return(__Py_dup=Module[\"__Py_dup\"]=Module[\"asm\"][\"_Py_dup\"]).apply(null,arguments)};var _fdopen=Module[\"_fdopen\"]=function(){return(_fdopen=Module[\"_fdopen\"]=Module[\"asm\"][\"fdopen\"]).apply(null,arguments)};var _PyTokenizer_FindEncoding=Module[\"_PyTokenizer_FindEncoding\"]=function(){return(_PyTokenizer_FindEncoding=Module[\"_PyTokenizer_FindEncoding\"]=Module[\"asm\"][\"PyTokenizer_FindEncoding\"]).apply(null,arguments)};var _tolower=Module[\"_tolower\"]=function(){return(_tolower=Module[\"_tolower\"]=Module[\"asm\"][\"tolower\"]).apply(null,arguments)};var _PyObject_Size=Module[\"_PyObject_Size\"]=function(){return(_PyObject_Size=Module[\"_PyObject_Size\"]=Module[\"asm\"][\"PyObject_Size\"]).apply(null,arguments)};var _strcspn=Module[\"_strcspn\"]=function(){return(_strcspn=Module[\"_strcspn\"]=Module[\"asm\"][\"strcspn\"]).apply(null,arguments)};var _PyByteArray_AsString=Module[\"_PyByteArray_AsString\"]=function(){return(_PyByteArray_AsString=Module[\"_PyByteArray_AsString\"]=Module[\"asm\"][\"PyByteArray_AsString\"]).apply(null,arguments)};var _PyByteArray_FromStringAndSize=Module[\"_PyByteArray_FromStringAndSize\"]=function(){return(_PyByteArray_FromStringAndSize=Module[\"_PyByteArray_FromStringAndSize\"]=Module[\"asm\"][\"PyByteArray_FromStringAndSize\"]).apply(null,arguments)};var _getc=Module[\"_getc\"]=function(){return(_getc=Module[\"_getc\"]=Module[\"asm\"][\"getc\"]).apply(null,arguments)};var _ungetc=Module[\"_ungetc\"]=function(){return(_ungetc=Module[\"_ungetc\"]=Module[\"asm\"][\"ungetc\"]).apply(null,arguments)};var _Py_UniversalNewlineFgets=Module[\"_Py_UniversalNewlineFgets\"]=function(){return(_Py_UniversalNewlineFgets=Module[\"_Py_UniversalNewlineFgets\"]=Module[\"asm\"][\"Py_UniversalNewlineFgets\"]).apply(null,arguments)};var _ftell=Module[\"_ftell\"]=function(){return(_ftell=Module[\"_ftell\"]=Module[\"asm\"][\"ftell\"]).apply(null,arguments)};var _lseek=Module[\"_lseek\"]=function(){return(_lseek=Module[\"_lseek\"]=Module[\"asm\"][\"lseek\"]).apply(null,arguments)};var _PyObject_Type=Module[\"_PyObject_Type\"]=function(){return(_PyObject_Type=Module[\"_PyObject_Type\"]=Module[\"asm\"][\"PyObject_Type\"]).apply(null,arguments)};var _PyMapping_Size=Module[\"_PyMapping_Size\"]=function(){return(_PyMapping_Size=Module[\"_PyMapping_Size\"]=Module[\"asm\"][\"PyMapping_Size\"]).apply(null,arguments)};var _PyObject_Length=Module[\"_PyObject_Length\"]=function(){return(_PyObject_Length=Module[\"_PyObject_Length\"]=Module[\"asm\"][\"PyObject_Length\"]).apply(null,arguments)};var __PyObject_HasLen=Module[\"__PyObject_HasLen\"]=function(){return(__PyObject_HasLen=Module[\"__PyObject_HasLen\"]=Module[\"asm\"][\"_PyObject_HasLen\"]).apply(null,arguments)};var _PyObject_LengthHint=Module[\"_PyObject_LengthHint\"]=function(){return(_PyObject_LengthHint=Module[\"_PyObject_LengthHint\"]=Module[\"asm\"][\"PyObject_LengthHint\"]).apply(null,arguments)};var __PyObject_LookupSpecial=Module[\"__PyObject_LookupSpecial\"]=function(){return(__PyObject_LookupSpecial=Module[\"__PyObject_LookupSpecial\"]=Module[\"asm\"][\"_PyObject_LookupSpecial\"]).apply(null,arguments)};var _PyLong_AsSsize_t=Module[\"_PyLong_AsSsize_t\"]=function(){return(_PyLong_AsSsize_t=Module[\"_PyLong_AsSsize_t\"]=Module[\"asm\"][\"PyLong_AsSsize_t\"]).apply(null,arguments)};var _Py_GenericAlias=Module[\"_Py_GenericAlias\"]=function(){return(_Py_GenericAlias=Module[\"_Py_GenericAlias\"]=Module[\"asm\"][\"Py_GenericAlias\"]).apply(null,arguments)};var __PyObject_LookupAttrId=Module[\"__PyObject_LookupAttrId\"]=function(){return(__PyObject_LookupAttrId=Module[\"__PyObject_LookupAttrId\"]=Module[\"asm\"][\"_PyObject_LookupAttrId\"]).apply(null,arguments)};var _PyNumber_Index=Module[\"_PyNumber_Index\"]=function(){return(_PyNumber_Index=Module[\"_PyNumber_Index\"]=Module[\"asm\"][\"PyNumber_Index\"]).apply(null,arguments)};var _PyErr_GivenExceptionMatches=Module[\"_PyErr_GivenExceptionMatches\"]=function(){return(_PyErr_GivenExceptionMatches=Module[\"_PyErr_GivenExceptionMatches\"]=Module[\"asm\"][\"PyErr_GivenExceptionMatches\"]).apply(null,arguments)};var __PyLong_Sign=Module[\"__PyLong_Sign\"]=function(){return(__PyLong_Sign=Module[\"__PyLong_Sign\"]=Module[\"asm\"][\"_PyLong_Sign\"]).apply(null,arguments)};var _PySequence_SetItem=Module[\"_PySequence_SetItem\"]=function(){return(_PySequence_SetItem=Module[\"_PySequence_SetItem\"]=Module[\"asm\"][\"PySequence_SetItem\"]).apply(null,arguments)};var _PySequence_DelItem=Module[\"_PySequence_DelItem\"]=function(){return(_PySequence_DelItem=Module[\"_PySequence_DelItem\"]=Module[\"asm\"][\"PySequence_DelItem\"]).apply(null,arguments)};var _PyObject_DelItemString=Module[\"_PyObject_DelItemString\"]=function(){return(_PyObject_DelItemString=Module[\"_PyObject_DelItemString\"]=Module[\"asm\"][\"PyObject_DelItemString\"]).apply(null,arguments)};var _PyObject_CheckReadBuffer=Module[\"_PyObject_CheckReadBuffer\"]=function(){return(_PyObject_CheckReadBuffer=Module[\"_PyObject_CheckReadBuffer\"]=Module[\"asm\"][\"PyObject_CheckReadBuffer\"]).apply(null,arguments)};var _PyObject_AsCharBuffer=Module[\"_PyObject_AsCharBuffer\"]=function(){return(_PyObject_AsCharBuffer=Module[\"_PyObject_AsCharBuffer\"]=Module[\"asm\"][\"PyObject_AsCharBuffer\"]).apply(null,arguments)};var _PyObject_AsReadBuffer=Module[\"_PyObject_AsReadBuffer\"]=function(){return(_PyObject_AsReadBuffer=Module[\"_PyObject_AsReadBuffer\"]=Module[\"asm\"][\"PyObject_AsReadBuffer\"]).apply(null,arguments)};var _PyObject_AsWriteBuffer=Module[\"_PyObject_AsWriteBuffer\"]=function(){return(_PyObject_AsWriteBuffer=Module[\"_PyObject_AsWriteBuffer\"]=Module[\"asm\"][\"PyObject_AsWriteBuffer\"]).apply(null,arguments)};var _PyBuffer_GetPointer=Module[\"_PyBuffer_GetPointer\"]=function(){return(_PyBuffer_GetPointer=Module[\"_PyBuffer_GetPointer\"]=Module[\"asm\"][\"PyBuffer_GetPointer\"]).apply(null,arguments)};var __Py_add_one_to_index_F=Module[\"__Py_add_one_to_index_F\"]=function(){return(__Py_add_one_to_index_F=Module[\"__Py_add_one_to_index_F\"]=Module[\"asm\"][\"_Py_add_one_to_index_F\"]).apply(null,arguments)};var __Py_add_one_to_index_C=Module[\"__Py_add_one_to_index_C\"]=function(){return(__Py_add_one_to_index_C=Module[\"__Py_add_one_to_index_C\"]=Module[\"asm\"][\"_Py_add_one_to_index_C\"]).apply(null,arguments)};var _PyBuffer_SizeFromFormat=Module[\"_PyBuffer_SizeFromFormat\"]=function(){return(_PyBuffer_SizeFromFormat=Module[\"_PyBuffer_SizeFromFormat\"]=Module[\"asm\"][\"PyBuffer_SizeFromFormat\"]).apply(null,arguments)};var _PyObject_CallFunctionObjArgs=Module[\"_PyObject_CallFunctionObjArgs\"]=function(){return(_PyObject_CallFunctionObjArgs=Module[\"_PyObject_CallFunctionObjArgs\"]=Module[\"asm\"][\"PyObject_CallFunctionObjArgs\"]).apply(null,arguments)};var _PyBuffer_FromContiguous=Module[\"_PyBuffer_FromContiguous\"]=function(){return(_PyBuffer_FromContiguous=Module[\"_PyBuffer_FromContiguous\"]=Module[\"asm\"][\"PyBuffer_FromContiguous\"]).apply(null,arguments)};var _PyObject_CopyData=Module[\"_PyObject_CopyData\"]=function(){return(_PyObject_CopyData=Module[\"_PyObject_CopyData\"]=Module[\"asm\"][\"PyObject_CopyData\"]).apply(null,arguments)};var _PyBuffer_FillInfo=Module[\"_PyBuffer_FillInfo\"]=function(){return(_PyBuffer_FillInfo=Module[\"_PyBuffer_FillInfo\"]=Module[\"asm\"][\"PyBuffer_FillInfo\"]).apply(null,arguments)};var _PyObject_Format=Module[\"_PyObject_Format\"]=function(){return(_PyObject_Format=Module[\"_PyObject_Format\"]=Module[\"asm\"][\"PyObject_Format\"]).apply(null,arguments)};var _PyNumber_Check=Module[\"_PyNumber_Check\"]=function(){return(_PyNumber_Check=Module[\"_PyNumber_Check\"]=Module[\"asm\"][\"PyNumber_Check\"]).apply(null,arguments)};var _PyNumber_Or=Module[\"_PyNumber_Or\"]=function(){return(_PyNumber_Or=Module[\"_PyNumber_Or\"]=Module[\"asm\"][\"PyNumber_Or\"]).apply(null,arguments)};var _PyNumber_Xor=Module[\"_PyNumber_Xor\"]=function(){return(_PyNumber_Xor=Module[\"_PyNumber_Xor\"]=Module[\"asm\"][\"PyNumber_Xor\"]).apply(null,arguments)};var _PyNumber_And=Module[\"_PyNumber_And\"]=function(){return(_PyNumber_And=Module[\"_PyNumber_And\"]=Module[\"asm\"][\"PyNumber_And\"]).apply(null,arguments)};var _PyNumber_Lshift=Module[\"_PyNumber_Lshift\"]=function(){return(_PyNumber_Lshift=Module[\"_PyNumber_Lshift\"]=Module[\"asm\"][\"PyNumber_Lshift\"]).apply(null,arguments)};var _PyNumber_Rshift=Module[\"_PyNumber_Rshift\"]=function(){return(_PyNumber_Rshift=Module[\"_PyNumber_Rshift\"]=Module[\"asm\"][\"PyNumber_Rshift\"]).apply(null,arguments)};var _PyNumber_Subtract=Module[\"_PyNumber_Subtract\"]=function(){return(_PyNumber_Subtract=Module[\"_PyNumber_Subtract\"]=Module[\"asm\"][\"PyNumber_Subtract\"]).apply(null,arguments)};var _PyNumber_Divmod=Module[\"_PyNumber_Divmod\"]=function(){return(_PyNumber_Divmod=Module[\"_PyNumber_Divmod\"]=Module[\"asm\"][\"PyNumber_Divmod\"]).apply(null,arguments)};var _PyNumber_Add=Module[\"_PyNumber_Add\"]=function(){return(_PyNumber_Add=Module[\"_PyNumber_Add\"]=Module[\"asm\"][\"PyNumber_Add\"]).apply(null,arguments)};var _PyNumber_Multiply=Module[\"_PyNumber_Multiply\"]=function(){return(_PyNumber_Multiply=Module[\"_PyNumber_Multiply\"]=Module[\"asm\"][\"PyNumber_Multiply\"]).apply(null,arguments)};var _PyNumber_MatrixMultiply=Module[\"_PyNumber_MatrixMultiply\"]=function(){return(_PyNumber_MatrixMultiply=Module[\"_PyNumber_MatrixMultiply\"]=Module[\"asm\"][\"PyNumber_MatrixMultiply\"]).apply(null,arguments)};var _PyNumber_FloorDivide=Module[\"_PyNumber_FloorDivide\"]=function(){return(_PyNumber_FloorDivide=Module[\"_PyNumber_FloorDivide\"]=Module[\"asm\"][\"PyNumber_FloorDivide\"]).apply(null,arguments)};var _PyNumber_TrueDivide=Module[\"_PyNumber_TrueDivide\"]=function(){return(_PyNumber_TrueDivide=Module[\"_PyNumber_TrueDivide\"]=Module[\"asm\"][\"PyNumber_TrueDivide\"]).apply(null,arguments)};var _PyNumber_Remainder=Module[\"_PyNumber_Remainder\"]=function(){return(_PyNumber_Remainder=Module[\"_PyNumber_Remainder\"]=Module[\"asm\"][\"PyNumber_Remainder\"]).apply(null,arguments)};var _PyNumber_Power=Module[\"_PyNumber_Power\"]=function(){return(_PyNumber_Power=Module[\"_PyNumber_Power\"]=Module[\"asm\"][\"PyNumber_Power\"]).apply(null,arguments)};var _PyNumber_InPlaceOr=Module[\"_PyNumber_InPlaceOr\"]=function(){return(_PyNumber_InPlaceOr=Module[\"_PyNumber_InPlaceOr\"]=Module[\"asm\"][\"PyNumber_InPlaceOr\"]).apply(null,arguments)};var _PyNumber_InPlaceXor=Module[\"_PyNumber_InPlaceXor\"]=function(){return(_PyNumber_InPlaceXor=Module[\"_PyNumber_InPlaceXor\"]=Module[\"asm\"][\"PyNumber_InPlaceXor\"]).apply(null,arguments)};var _PyNumber_InPlaceAnd=Module[\"_PyNumber_InPlaceAnd\"]=function(){return(_PyNumber_InPlaceAnd=Module[\"_PyNumber_InPlaceAnd\"]=Module[\"asm\"][\"PyNumber_InPlaceAnd\"]).apply(null,arguments)};var _PyNumber_InPlaceLshift=Module[\"_PyNumber_InPlaceLshift\"]=function(){return(_PyNumber_InPlaceLshift=Module[\"_PyNumber_InPlaceLshift\"]=Module[\"asm\"][\"PyNumber_InPlaceLshift\"]).apply(null,arguments)};var _PyNumber_InPlaceRshift=Module[\"_PyNumber_InPlaceRshift\"]=function(){return(_PyNumber_InPlaceRshift=Module[\"_PyNumber_InPlaceRshift\"]=Module[\"asm\"][\"PyNumber_InPlaceRshift\"]).apply(null,arguments)};var _PyNumber_InPlaceSubtract=Module[\"_PyNumber_InPlaceSubtract\"]=function(){return(_PyNumber_InPlaceSubtract=Module[\"_PyNumber_InPlaceSubtract\"]=Module[\"asm\"][\"PyNumber_InPlaceSubtract\"]).apply(null,arguments)};var _PyNumber_InMatrixMultiply=Module[\"_PyNumber_InMatrixMultiply\"]=function(){return(_PyNumber_InMatrixMultiply=Module[\"_PyNumber_InMatrixMultiply\"]=Module[\"asm\"][\"PyNumber_InMatrixMultiply\"]).apply(null,arguments)};var _PyNumber_InPlaceFloorDivide=Module[\"_PyNumber_InPlaceFloorDivide\"]=function(){return(_PyNumber_InPlaceFloorDivide=Module[\"_PyNumber_InPlaceFloorDivide\"]=Module[\"asm\"][\"PyNumber_InPlaceFloorDivide\"]).apply(null,arguments)};var _PyNumber_InPlaceTrueDivide=Module[\"_PyNumber_InPlaceTrueDivide\"]=function(){return(_PyNumber_InPlaceTrueDivide=Module[\"_PyNumber_InPlaceTrueDivide\"]=Module[\"asm\"][\"PyNumber_InPlaceTrueDivide\"]).apply(null,arguments)};var _PyNumber_InPlaceAdd=Module[\"_PyNumber_InPlaceAdd\"]=function(){return(_PyNumber_InPlaceAdd=Module[\"_PyNumber_InPlaceAdd\"]=Module[\"asm\"][\"PyNumber_InPlaceAdd\"]).apply(null,arguments)};var _PyNumber_InPlaceMultiply=Module[\"_PyNumber_InPlaceMultiply\"]=function(){return(_PyNumber_InPlaceMultiply=Module[\"_PyNumber_InPlaceMultiply\"]=Module[\"asm\"][\"PyNumber_InPlaceMultiply\"]).apply(null,arguments)};var _PyNumber_InPlaceMatrixMultiply=Module[\"_PyNumber_InPlaceMatrixMultiply\"]=function(){return(_PyNumber_InPlaceMatrixMultiply=Module[\"_PyNumber_InPlaceMatrixMultiply\"]=Module[\"asm\"][\"PyNumber_InPlaceMatrixMultiply\"]).apply(null,arguments)};var _PyNumber_InPlaceRemainder=Module[\"_PyNumber_InPlaceRemainder\"]=function(){return(_PyNumber_InPlaceRemainder=Module[\"_PyNumber_InPlaceRemainder\"]=Module[\"asm\"][\"PyNumber_InPlaceRemainder\"]).apply(null,arguments)};var _PyNumber_InPlacePower=Module[\"_PyNumber_InPlacePower\"]=function(){return(_PyNumber_InPlacePower=Module[\"_PyNumber_InPlacePower\"]=Module[\"asm\"][\"PyNumber_InPlacePower\"]).apply(null,arguments)};var _PyNumber_Negative=Module[\"_PyNumber_Negative\"]=function(){return(_PyNumber_Negative=Module[\"_PyNumber_Negative\"]=Module[\"asm\"][\"PyNumber_Negative\"]).apply(null,arguments)};var _PyNumber_Positive=Module[\"_PyNumber_Positive\"]=function(){return(_PyNumber_Positive=Module[\"_PyNumber_Positive\"]=Module[\"asm\"][\"PyNumber_Positive\"]).apply(null,arguments)};var _PyNumber_Invert=Module[\"_PyNumber_Invert\"]=function(){return(_PyNumber_Invert=Module[\"_PyNumber_Invert\"]=Module[\"asm\"][\"PyNumber_Invert\"]).apply(null,arguments)};var _PyNumber_Absolute=Module[\"_PyNumber_Absolute\"]=function(){return(_PyNumber_Absolute=Module[\"_PyNumber_Absolute\"]=Module[\"asm\"][\"PyNumber_Absolute\"]).apply(null,arguments)};var _PyErr_WarnFormat=Module[\"_PyErr_WarnFormat\"]=function(){return(_PyErr_WarnFormat=Module[\"_PyErr_WarnFormat\"]=Module[\"asm\"][\"PyErr_WarnFormat\"]).apply(null,arguments)};var _PyNumber_Long=Module[\"_PyNumber_Long\"]=function(){return(_PyNumber_Long=Module[\"_PyNumber_Long\"]=Module[\"asm\"][\"PyNumber_Long\"]).apply(null,arguments)};var __PyLong_FromNbInt=Module[\"__PyLong_FromNbInt\"]=function(){return(__PyLong_FromNbInt=Module[\"__PyLong_FromNbInt\"]=Module[\"asm\"][\"_PyLong_FromNbInt\"]).apply(null,arguments)};var __PyLong_Copy=Module[\"__PyLong_Copy\"]=function(){return(__PyLong_Copy=Module[\"__PyLong_Copy\"]=Module[\"asm\"][\"_PyLong_Copy\"]).apply(null,arguments)};var __PyLong_FromNbIndexOrNbInt=Module[\"__PyLong_FromNbIndexOrNbInt\"]=function(){return(__PyLong_FromNbIndexOrNbInt=Module[\"__PyLong_FromNbIndexOrNbInt\"]=Module[\"asm\"][\"_PyLong_FromNbIndexOrNbInt\"]).apply(null,arguments)};var _PyLong_FromUnicodeObject=Module[\"_PyLong_FromUnicodeObject\"]=function(){return(_PyLong_FromUnicodeObject=Module[\"_PyLong_FromUnicodeObject\"]=Module[\"asm\"][\"PyLong_FromUnicodeObject\"]).apply(null,arguments)};var __PyLong_FromBytes=Module[\"__PyLong_FromBytes\"]=function(){return(__PyLong_FromBytes=Module[\"__PyLong_FromBytes\"]=Module[\"asm\"][\"_PyLong_FromBytes\"]).apply(null,arguments)};var _PyNumber_Float=Module[\"_PyNumber_Float\"]=function(){return(_PyNumber_Float=Module[\"_PyNumber_Float\"]=Module[\"asm\"][\"PyNumber_Float\"]).apply(null,arguments)};var _PyLong_AsDouble=Module[\"_PyLong_AsDouble\"]=function(){return(_PyLong_AsDouble=Module[\"_PyLong_AsDouble\"]=Module[\"asm\"][\"PyLong_AsDouble\"]).apply(null,arguments)};var _PyFloat_FromString=Module[\"_PyFloat_FromString\"]=function(){return(_PyFloat_FromString=Module[\"_PyFloat_FromString\"]=Module[\"asm\"][\"PyFloat_FromString\"]).apply(null,arguments)};var _PyNumber_ToBase=Module[\"_PyNumber_ToBase\"]=function(){return(_PyNumber_ToBase=Module[\"_PyNumber_ToBase\"]=Module[\"asm\"][\"PyNumber_ToBase\"]).apply(null,arguments)};var __PyLong_Format=Module[\"__PyLong_Format\"]=function(){return(__PyLong_Format=Module[\"__PyLong_Format\"]=Module[\"asm\"][\"_PyLong_Format\"]).apply(null,arguments)};var _PySequence_Length=Module[\"_PySequence_Length\"]=function(){return(_PySequence_Length=Module[\"_PySequence_Length\"]=Module[\"asm\"][\"PySequence_Length\"]).apply(null,arguments)};var _PySequence_Concat=Module[\"_PySequence_Concat\"]=function(){return(_PySequence_Concat=Module[\"_PySequence_Concat\"]=Module[\"asm\"][\"PySequence_Concat\"]).apply(null,arguments)};var _PySequence_Repeat=Module[\"_PySequence_Repeat\"]=function(){return(_PySequence_Repeat=Module[\"_PySequence_Repeat\"]=Module[\"asm\"][\"PySequence_Repeat\"]).apply(null,arguments)};var _PyLong_FromSsize_t=Module[\"_PyLong_FromSsize_t\"]=function(){return(_PyLong_FromSsize_t=Module[\"_PyLong_FromSsize_t\"]=Module[\"asm\"][\"PyLong_FromSsize_t\"]).apply(null,arguments)};var _PySequence_InPlaceConcat=Module[\"_PySequence_InPlaceConcat\"]=function(){return(_PySequence_InPlaceConcat=Module[\"_PySequence_InPlaceConcat\"]=Module[\"asm\"][\"PySequence_InPlaceConcat\"]).apply(null,arguments)};var _PySequence_InPlaceRepeat=Module[\"_PySequence_InPlaceRepeat\"]=function(){return(_PySequence_InPlaceRepeat=Module[\"_PySequence_InPlaceRepeat\"]=Module[\"asm\"][\"PySequence_InPlaceRepeat\"]).apply(null,arguments)};var _PySequence_GetSlice=Module[\"_PySequence_GetSlice\"]=function(){return(_PySequence_GetSlice=Module[\"_PySequence_GetSlice\"]=Module[\"asm\"][\"PySequence_GetSlice\"]).apply(null,arguments)};var __PySlice_FromIndices=Module[\"__PySlice_FromIndices\"]=function(){return(__PySlice_FromIndices=Module[\"__PySlice_FromIndices\"]=Module[\"asm\"][\"_PySlice_FromIndices\"]).apply(null,arguments)};var _PySequence_SetSlice=Module[\"_PySequence_SetSlice\"]=function(){return(_PySequence_SetSlice=Module[\"_PySequence_SetSlice\"]=Module[\"asm\"][\"PySequence_SetSlice\"]).apply(null,arguments)};var _PySequence_DelSlice=Module[\"_PySequence_DelSlice\"]=function(){return(_PySequence_DelSlice=Module[\"_PySequence_DelSlice\"]=Module[\"asm\"][\"PySequence_DelSlice\"]).apply(null,arguments)};var _PySequence_Tuple=Module[\"_PySequence_Tuple\"]=function(){return(_PySequence_Tuple=Module[\"_PySequence_Tuple\"]=Module[\"asm\"][\"PySequence_Tuple\"]).apply(null,arguments)};var _PyList_AsTuple=Module[\"_PyList_AsTuple\"]=function(){return(_PyList_AsTuple=Module[\"_PyList_AsTuple\"]=Module[\"asm\"][\"PyList_AsTuple\"]).apply(null,arguments)};var __PyTuple_Resize=Module[\"__PyTuple_Resize\"]=function(){return(__PyTuple_Resize=Module[\"__PyTuple_Resize\"]=Module[\"asm\"][\"_PyTuple_Resize\"]).apply(null,arguments)};var _PySeqIter_New=Module[\"_PySeqIter_New\"]=function(){return(_PySeqIter_New=Module[\"_PySeqIter_New\"]=Module[\"asm\"][\"PySeqIter_New\"]).apply(null,arguments)};var _PySequence_List=Module[\"_PySequence_List\"]=function(){return(_PySequence_List=Module[\"_PySequence_List\"]=Module[\"asm\"][\"PySequence_List\"]).apply(null,arguments)};var _PySequence_Fast=Module[\"_PySequence_Fast\"]=function(){return(_PySequence_Fast=Module[\"_PySequence_Fast\"]=Module[\"asm\"][\"PySequence_Fast\"]).apply(null,arguments)};var __PySequence_IterSearch=Module[\"__PySequence_IterSearch\"]=function(){return(__PySequence_IterSearch=Module[\"__PySequence_IterSearch\"]=Module[\"asm\"][\"_PySequence_IterSearch\"]).apply(null,arguments)};var _PyObject_RichCompareBool=Module[\"_PyObject_RichCompareBool\"]=function(){return(_PyObject_RichCompareBool=Module[\"_PyObject_RichCompareBool\"]=Module[\"asm\"][\"PyObject_RichCompareBool\"]).apply(null,arguments)};var _PySequence_Count=Module[\"_PySequence_Count\"]=function(){return(_PySequence_Count=Module[\"_PySequence_Count\"]=Module[\"asm\"][\"PySequence_Count\"]).apply(null,arguments)};var _PySequence_In=Module[\"_PySequence_In\"]=function(){return(_PySequence_In=Module[\"_PySequence_In\"]=Module[\"asm\"][\"PySequence_In\"]).apply(null,arguments)};var _PySequence_Index=Module[\"_PySequence_Index\"]=function(){return(_PySequence_Index=Module[\"_PySequence_Index\"]=Module[\"asm\"][\"PySequence_Index\"]).apply(null,arguments)};var _PyMapping_Check=Module[\"_PyMapping_Check\"]=function(){return(_PyMapping_Check=Module[\"_PyMapping_Check\"]=Module[\"asm\"][\"PyMapping_Check\"]).apply(null,arguments)};var _PyMapping_Length=Module[\"_PyMapping_Length\"]=function(){return(_PyMapping_Length=Module[\"_PyMapping_Length\"]=Module[\"asm\"][\"PyMapping_Length\"]).apply(null,arguments)};var _PyMapping_GetItemString=Module[\"_PyMapping_GetItemString\"]=function(){return(_PyMapping_GetItemString=Module[\"_PyMapping_GetItemString\"]=Module[\"asm\"][\"PyMapping_GetItemString\"]).apply(null,arguments)};var _PyMapping_SetItemString=Module[\"_PyMapping_SetItemString\"]=function(){return(_PyMapping_SetItemString=Module[\"_PyMapping_SetItemString\"]=Module[\"asm\"][\"PyMapping_SetItemString\"]).apply(null,arguments)};var _PyMapping_HasKeyString=Module[\"_PyMapping_HasKeyString\"]=function(){return(_PyMapping_HasKeyString=Module[\"_PyMapping_HasKeyString\"]=Module[\"asm\"][\"PyMapping_HasKeyString\"]).apply(null,arguments)};var _PyMapping_HasKey=Module[\"_PyMapping_HasKey\"]=function(){return(_PyMapping_HasKey=Module[\"_PyMapping_HasKey\"]=Module[\"asm\"][\"PyMapping_HasKey\"]).apply(null,arguments)};var _PyMapping_Keys=Module[\"_PyMapping_Keys\"]=function(){return(_PyMapping_Keys=Module[\"_PyMapping_Keys\"]=Module[\"asm\"][\"PyMapping_Keys\"]).apply(null,arguments)};var _PyDict_Keys=Module[\"_PyDict_Keys\"]=function(){return(_PyDict_Keys=Module[\"_PyDict_Keys\"]=Module[\"asm\"][\"PyDict_Keys\"]).apply(null,arguments)};var _PyMapping_Items=Module[\"_PyMapping_Items\"]=function(){return(_PyMapping_Items=Module[\"_PyMapping_Items\"]=Module[\"asm\"][\"PyMapping_Items\"]).apply(null,arguments)};var _PyDict_Items=Module[\"_PyDict_Items\"]=function(){return(_PyDict_Items=Module[\"_PyDict_Items\"]=Module[\"asm\"][\"PyDict_Items\"]).apply(null,arguments)};var _PyMapping_Values=Module[\"_PyMapping_Values\"]=function(){return(_PyMapping_Values=Module[\"_PyMapping_Values\"]=Module[\"asm\"][\"PyMapping_Values\"]).apply(null,arguments)};var _PyDict_Values=Module[\"_PyDict_Values\"]=function(){return(_PyDict_Values=Module[\"_PyDict_Values\"]=Module[\"asm\"][\"PyDict_Values\"]).apply(null,arguments)};var _PyObject_IsInstance=Module[\"_PyObject_IsInstance\"]=function(){return(_PyObject_IsInstance=Module[\"_PyObject_IsInstance\"]=Module[\"asm\"][\"PyObject_IsInstance\"]).apply(null,arguments)};var __Py_CheckRecursiveCall=Module[\"__Py_CheckRecursiveCall\"]=function(){return(__Py_CheckRecursiveCall=Module[\"__Py_CheckRecursiveCall\"]=Module[\"asm\"][\"_Py_CheckRecursiveCall\"]).apply(null,arguments)};var _PyObject_IsTrue=Module[\"_PyObject_IsTrue\"]=function(){return(_PyObject_IsTrue=Module[\"_PyObject_IsTrue\"]=Module[\"asm\"][\"PyObject_IsTrue\"]).apply(null,arguments)};var _PyObject_IsSubclass=Module[\"_PyObject_IsSubclass\"]=function(){return(_PyObject_IsSubclass=Module[\"_PyObject_IsSubclass\"]=Module[\"asm\"][\"PyObject_IsSubclass\"]).apply(null,arguments)};var __PyObject_RealIsInstance=Module[\"__PyObject_RealIsInstance\"]=function(){return(__PyObject_RealIsInstance=Module[\"__PyObject_RealIsInstance\"]=Module[\"asm\"][\"_PyObject_RealIsInstance\"]).apply(null,arguments)};var __PyObject_RealIsSubclass=Module[\"__PyObject_RealIsSubclass\"]=function(){return(__PyObject_RealIsSubclass=Module[\"__PyObject_RealIsSubclass\"]=Module[\"asm\"][\"_PyObject_RealIsSubclass\"]).apply(null,arguments)};var _PyIter_Check=Module[\"_PyIter_Check\"]=function(){return(_PyIter_Check=Module[\"_PyIter_Check\"]=Module[\"asm\"][\"PyIter_Check\"]).apply(null,arguments)};var __PySequence_BytesToCharpArray=Module[\"__PySequence_BytesToCharpArray\"]=function(){return(__PySequence_BytesToCharpArray=Module[\"__PySequence_BytesToCharpArray\"]=Module[\"asm\"][\"_PySequence_BytesToCharpArray\"]).apply(null,arguments)};var _PyBytes_AsStringAndSize=Module[\"_PyBytes_AsStringAndSize\"]=function(){return(_PyBytes_AsStringAndSize=Module[\"_PyBytes_AsStringAndSize\"]=Module[\"asm\"][\"PyBytes_AsStringAndSize\"]).apply(null,arguments)};var __Py_FreeCharPArray=Module[\"__Py_FreeCharPArray\"]=function(){return(__Py_FreeCharPArray=Module[\"__Py_FreeCharPArray\"]=Module[\"asm\"][\"_Py_FreeCharPArray\"]).apply(null,arguments)};var __PyAccu_Init=Module[\"__PyAccu_Init\"]=function(){return(__PyAccu_Init=Module[\"__PyAccu_Init\"]=Module[\"asm\"][\"_PyAccu_Init\"]).apply(null,arguments)};var __PyAccu_Accumulate=Module[\"__PyAccu_Accumulate\"]=function(){return(__PyAccu_Accumulate=Module[\"__PyAccu_Accumulate\"]=Module[\"asm\"][\"_PyAccu_Accumulate\"]).apply(null,arguments)};var _PyList_Append=Module[\"_PyList_Append\"]=function(){return(_PyList_Append=Module[\"_PyList_Append\"]=Module[\"asm\"][\"PyList_Append\"]).apply(null,arguments)};var _PyList_SetSlice=Module[\"_PyList_SetSlice\"]=function(){return(_PyList_SetSlice=Module[\"_PyList_SetSlice\"]=Module[\"asm\"][\"PyList_SetSlice\"]).apply(null,arguments)};var __PyAccu_FinishAsList=Module[\"__PyAccu_FinishAsList\"]=function(){return(__PyAccu_FinishAsList=Module[\"__PyAccu_FinishAsList\"]=Module[\"asm\"][\"_PyAccu_FinishAsList\"]).apply(null,arguments)};var __PyAccu_Finish=Module[\"__PyAccu_Finish\"]=function(){return(__PyAccu_Finish=Module[\"__PyAccu_Finish\"]=Module[\"asm\"][\"_PyAccu_Finish\"]).apply(null,arguments)};var __PyAccu_Destroy=Module[\"__PyAccu_Destroy\"]=function(){return(__PyAccu_Destroy=Module[\"__PyAccu_Destroy\"]=Module[\"asm\"][\"_PyAccu_Destroy\"]).apply(null,arguments)};var _PyBool_FromLong=Module[\"_PyBool_FromLong\"]=function(){return(_PyBool_FromLong=Module[\"_PyBool_FromLong\"]=Module[\"asm\"][\"PyBool_FromLong\"]).apply(null,arguments)};var __PyArg_NoKeywords=Module[\"__PyArg_NoKeywords\"]=function(){return(__PyArg_NoKeywords=Module[\"__PyArg_NoKeywords\"]=Module[\"asm\"][\"_PyArg_NoKeywords\"]).apply(null,arguments)};var __Py_bytes_isspace=Module[\"__Py_bytes_isspace\"]=function(){return(__Py_bytes_isspace=Module[\"__Py_bytes_isspace\"]=Module[\"asm\"][\"_Py_bytes_isspace\"]).apply(null,arguments)};var __Py_bytes_isalpha=Module[\"__Py_bytes_isalpha\"]=function(){return(__Py_bytes_isalpha=Module[\"__Py_bytes_isalpha\"]=Module[\"asm\"][\"_Py_bytes_isalpha\"]).apply(null,arguments)};var __Py_bytes_isalnum=Module[\"__Py_bytes_isalnum\"]=function(){return(__Py_bytes_isalnum=Module[\"__Py_bytes_isalnum\"]=Module[\"asm\"][\"_Py_bytes_isalnum\"]).apply(null,arguments)};var __Py_bytes_isascii=Module[\"__Py_bytes_isascii\"]=function(){return(__Py_bytes_isascii=Module[\"__Py_bytes_isascii\"]=Module[\"asm\"][\"_Py_bytes_isascii\"]).apply(null,arguments)};var __Py_bytes_isdigit=Module[\"__Py_bytes_isdigit\"]=function(){return(__Py_bytes_isdigit=Module[\"__Py_bytes_isdigit\"]=Module[\"asm\"][\"_Py_bytes_isdigit\"]).apply(null,arguments)};var __Py_bytes_islower=Module[\"__Py_bytes_islower\"]=function(){return(__Py_bytes_islower=Module[\"__Py_bytes_islower\"]=Module[\"asm\"][\"_Py_bytes_islower\"]).apply(null,arguments)};var __Py_bytes_isupper=Module[\"__Py_bytes_isupper\"]=function(){return(__Py_bytes_isupper=Module[\"__Py_bytes_isupper\"]=Module[\"asm\"][\"_Py_bytes_isupper\"]).apply(null,arguments)};var __Py_bytes_istitle=Module[\"__Py_bytes_istitle\"]=function(){return(__Py_bytes_istitle=Module[\"__Py_bytes_istitle\"]=Module[\"asm\"][\"_Py_bytes_istitle\"]).apply(null,arguments)};var __Py_bytes_lower=Module[\"__Py_bytes_lower\"]=function(){return(__Py_bytes_lower=Module[\"__Py_bytes_lower\"]=Module[\"asm\"][\"_Py_bytes_lower\"]).apply(null,arguments)};var __Py_bytes_upper=Module[\"__Py_bytes_upper\"]=function(){return(__Py_bytes_upper=Module[\"__Py_bytes_upper\"]=Module[\"asm\"][\"_Py_bytes_upper\"]).apply(null,arguments)};var __Py_bytes_title=Module[\"__Py_bytes_title\"]=function(){return(__Py_bytes_title=Module[\"__Py_bytes_title\"]=Module[\"asm\"][\"_Py_bytes_title\"]).apply(null,arguments)};var __Py_bytes_capitalize=Module[\"__Py_bytes_capitalize\"]=function(){return(__Py_bytes_capitalize=Module[\"__Py_bytes_capitalize\"]=Module[\"asm\"][\"_Py_bytes_capitalize\"]).apply(null,arguments)};var __Py_bytes_swapcase=Module[\"__Py_bytes_swapcase\"]=function(){return(__Py_bytes_swapcase=Module[\"__Py_bytes_swapcase\"]=Module[\"asm\"][\"_Py_bytes_swapcase\"]).apply(null,arguments)};var __Py_bytes_maketrans=Module[\"__Py_bytes_maketrans\"]=function(){return(__Py_bytes_maketrans=Module[\"__Py_bytes_maketrans\"]=Module[\"asm\"][\"_Py_bytes_maketrans\"]).apply(null,arguments)};var __Py_bytes_find=Module[\"__Py_bytes_find\"]=function(){return(__Py_bytes_find=Module[\"__Py_bytes_find\"]=Module[\"asm\"][\"_Py_bytes_find\"]).apply(null,arguments)};var _memrchr=Module[\"_memrchr\"]=function(){return(_memrchr=Module[\"_memrchr\"]=Module[\"asm\"][\"memrchr\"]).apply(null,arguments)};var _memchr=Module[\"_memchr\"]=function(){return(_memchr=Module[\"_memchr\"]=Module[\"asm\"][\"memchr\"]).apply(null,arguments)};var __Py_bytes_index=Module[\"__Py_bytes_index\"]=function(){return(__Py_bytes_index=Module[\"__Py_bytes_index\"]=Module[\"asm\"][\"_Py_bytes_index\"]).apply(null,arguments)};var __Py_bytes_rfind=Module[\"__Py_bytes_rfind\"]=function(){return(__Py_bytes_rfind=Module[\"__Py_bytes_rfind\"]=Module[\"asm\"][\"_Py_bytes_rfind\"]).apply(null,arguments)};var __Py_bytes_rindex=Module[\"__Py_bytes_rindex\"]=function(){return(__Py_bytes_rindex=Module[\"__Py_bytes_rindex\"]=Module[\"asm\"][\"_Py_bytes_rindex\"]).apply(null,arguments)};var __Py_bytes_count=Module[\"__Py_bytes_count\"]=function(){return(__Py_bytes_count=Module[\"__Py_bytes_count\"]=Module[\"asm\"][\"_Py_bytes_count\"]).apply(null,arguments)};var __Py_bytes_contains=Module[\"__Py_bytes_contains\"]=function(){return(__Py_bytes_contains=Module[\"__Py_bytes_contains\"]=Module[\"asm\"][\"_Py_bytes_contains\"]).apply(null,arguments)};var __Py_bytes_startswith=Module[\"__Py_bytes_startswith\"]=function(){return(__Py_bytes_startswith=Module[\"__Py_bytes_startswith\"]=Module[\"asm\"][\"_Py_bytes_startswith\"]).apply(null,arguments)};var __Py_bytes_endswith=Module[\"__Py_bytes_endswith\"]=function(){return(__Py_bytes_endswith=Module[\"__Py_bytes_endswith\"]=Module[\"asm\"][\"_Py_bytes_endswith\"]).apply(null,arguments)};var __PyArg_ParseTuple_SizeT=Module[\"__PyArg_ParseTuple_SizeT\"]=function(){return(__PyArg_ParseTuple_SizeT=Module[\"__PyArg_ParseTuple_SizeT\"]=Module[\"asm\"][\"_PyArg_ParseTuple_SizeT\"]).apply(null,arguments)};var __PyEval_SliceIndex=Module[\"__PyEval_SliceIndex\"]=function(){return(__PyEval_SliceIndex=Module[\"__PyEval_SliceIndex\"]=Module[\"asm\"][\"_PyEval_SliceIndex\"]).apply(null,arguments)};var _PyByteArray_FromObject=Module[\"_PyByteArray_FromObject\"]=function(){return(_PyByteArray_FromObject=Module[\"_PyByteArray_FromObject\"]=Module[\"asm\"][\"PyByteArray_FromObject\"]).apply(null,arguments)};var __PyObject_New=Module[\"__PyObject_New\"]=function(){return(__PyObject_New=Module[\"__PyObject_New\"]=Module[\"asm\"][\"_PyObject_New\"]).apply(null,arguments)};var _PyByteArray_Size=Module[\"_PyByteArray_Size\"]=function(){return(_PyByteArray_Size=Module[\"_PyByteArray_Size\"]=Module[\"asm\"][\"PyByteArray_Size\"]).apply(null,arguments)};var _PyByteArray_Resize=Module[\"_PyByteArray_Resize\"]=function(){return(_PyByteArray_Resize=Module[\"_PyByteArray_Resize\"]=Module[\"asm\"][\"PyByteArray_Resize\"]).apply(null,arguments)};var _PyByteArray_Concat=Module[\"_PyByteArray_Concat\"]=function(){return(_PyByteArray_Concat=Module[\"_PyByteArray_Concat\"]=Module[\"asm\"][\"PyByteArray_Concat\"]).apply(null,arguments)};var __Py_GetConfig=Module[\"__Py_GetConfig\"]=function(){return(__Py_GetConfig=Module[\"__Py_GetConfig\"]=Module[\"asm\"][\"_Py_GetConfig\"]).apply(null,arguments)};var _PyErr_WarnEx=Module[\"_PyErr_WarnEx\"]=function(){return(_PyErr_WarnEx=Module[\"_PyErr_WarnEx\"]=Module[\"asm\"][\"PyErr_WarnEx\"]).apply(null,arguments)};var __PyObject_GC_New=Module[\"__PyObject_GC_New\"]=function(){return(__PyObject_GC_New=Module[\"__PyObject_GC_New\"]=Module[\"asm\"][\"_PyObject_GC_New\"]).apply(null,arguments)};var _PyUnicode_AsEncodedString=Module[\"_PyUnicode_AsEncodedString\"]=function(){return(_PyUnicode_AsEncodedString=Module[\"_PyUnicode_AsEncodedString\"]=Module[\"asm\"][\"PyUnicode_AsEncodedString\"]).apply(null,arguments)};var _PyBuffer_ToContiguous=Module[\"_PyBuffer_ToContiguous\"]=function(){return(_PyBuffer_ToContiguous=Module[\"_PyBuffer_ToContiguous\"]=Module[\"asm\"][\"PyBuffer_ToContiguous\"]).apply(null,arguments)};var _PyLong_AsLong=Module[\"_PyLong_AsLong\"]=function(){return(_PyLong_AsLong=Module[\"_PyLong_AsLong\"]=Module[\"asm\"][\"PyLong_AsLong\"]).apply(null,arguments)};var _PyObject_GC_Del=Module[\"_PyObject_GC_Del\"]=function(){return(_PyObject_GC_Del=Module[\"_PyObject_GC_Del\"]=Module[\"asm\"][\"PyObject_GC_Del\"]).apply(null,arguments)};var __PyBytes_FormatEx=Module[\"__PyBytes_FormatEx\"]=function(){return(__PyBytes_FormatEx=Module[\"__PyBytes_FormatEx\"]=Module[\"asm\"][\"_PyBytes_FormatEx\"]).apply(null,arguments)};var _memmove=Module[\"_memmove\"]=function(){return(_memmove=Module[\"_memmove\"]=Module[\"asm\"][\"memmove\"]).apply(null,arguments)};var _PySlice_Unpack=Module[\"_PySlice_Unpack\"]=function(){return(_PySlice_Unpack=Module[\"_PySlice_Unpack\"]=Module[\"asm\"][\"PySlice_Unpack\"]).apply(null,arguments)};var _PySlice_AdjustIndices=Module[\"_PySlice_AdjustIndices\"]=function(){return(_PySlice_AdjustIndices=Module[\"_PySlice_AdjustIndices\"]=Module[\"asm\"][\"PySlice_AdjustIndices\"]).apply(null,arguments)};var _PyUnicode_DecodeLatin1=Module[\"_PyUnicode_DecodeLatin1\"]=function(){return(_PyUnicode_DecodeLatin1=Module[\"_PyUnicode_DecodeLatin1\"]=Module[\"asm\"][\"PyUnicode_DecodeLatin1\"]).apply(null,arguments)};var __PyArg_CheckPositional=Module[\"__PyArg_CheckPositional\"]=function(){return(__PyArg_CheckPositional=Module[\"__PyArg_CheckPositional\"]=Module[\"asm\"][\"_PyArg_CheckPositional\"]).apply(null,arguments)};var __PyLong_AsInt=Module[\"__PyLong_AsInt\"]=function(){return(__PyLong_AsInt=Module[\"__PyLong_AsInt\"]=Module[\"asm\"][\"_PyLong_AsInt\"]).apply(null,arguments)};var __PyArg_BadArgument=Module[\"__PyArg_BadArgument\"]=function(){return(__PyArg_BadArgument=Module[\"__PyArg_BadArgument\"]=Module[\"asm\"][\"_PyArg_BadArgument\"]).apply(null,arguments)};var __PyArg_UnpackKeywords=Module[\"__PyArg_UnpackKeywords\"]=function(){return(__PyArg_UnpackKeywords=Module[\"__PyArg_UnpackKeywords\"]=Module[\"asm\"][\"_PyArg_UnpackKeywords\"]).apply(null,arguments)};var _PyUnicode_GetDefaultEncoding=Module[\"_PyUnicode_GetDefaultEncoding\"]=function(){return(_PyUnicode_GetDefaultEncoding=Module[\"_PyUnicode_GetDefaultEncoding\"]=Module[\"asm\"][\"PyUnicode_GetDefaultEncoding\"]).apply(null,arguments)};var _PyUnicode_FromEncodedObject=Module[\"_PyUnicode_FromEncodedObject\"]=function(){return(_PyUnicode_FromEncodedObject=Module[\"_PyUnicode_FromEncodedObject\"]=Module[\"asm\"][\"PyUnicode_FromEncodedObject\"]).apply(null,arguments)};var __PyBytes_FromHex=Module[\"__PyBytes_FromHex\"]=function(){return(__PyBytes_FromHex=Module[\"__PyBytes_FromHex\"]=Module[\"asm\"][\"_PyBytes_FromHex\"]).apply(null,arguments)};var __Py_strhex_with_sep=Module[\"__Py_strhex_with_sep\"]=function(){return(__Py_strhex_with_sep=Module[\"__Py_strhex_with_sep\"]=Module[\"asm\"][\"_Py_strhex_with_sep\"]).apply(null,arguments)};var _PyList_Reverse=Module[\"_PyList_Reverse\"]=function(){return(_PyList_Reverse=Module[\"_PyList_Reverse\"]=Module[\"asm\"][\"PyList_Reverse\"]).apply(null,arguments)};var __PyEval_GetBuiltinId=Module[\"__PyEval_GetBuiltinId\"]=function(){return(__PyEval_GetBuiltinId=Module[\"__PyEval_GetBuiltinId\"]=Module[\"asm\"][\"_PyEval_GetBuiltinId\"]).apply(null,arguments)};var _PyType_GenericAlloc=Module[\"_PyType_GenericAlloc\"]=function(){return(_PyType_GenericAlloc=Module[\"_PyType_GenericAlloc\"]=Module[\"asm\"][\"PyType_GenericAlloc\"]).apply(null,arguments)};var _PyType_GenericNew=Module[\"_PyType_GenericNew\"]=function(){return(_PyType_GenericNew=Module[\"_PyType_GenericNew\"]=Module[\"asm\"][\"PyType_GenericNew\"]).apply(null,arguments)};var _PyType_GetFlags=Module[\"_PyType_GetFlags\"]=function(){return(_PyType_GetFlags=Module[\"_PyType_GetFlags\"]=Module[\"asm\"][\"PyType_GetFlags\"]).apply(null,arguments)};var __Py_NewReference=Module[\"__Py_NewReference\"]=function(){return(__Py_NewReference=Module[\"__Py_NewReference\"]=Module[\"asm\"][\"_Py_NewReference\"]).apply(null,arguments)};var _PyBytes_FromString=Module[\"_PyBytes_FromString\"]=function(){return(_PyBytes_FromString=Module[\"_PyBytes_FromString\"]=Module[\"asm\"][\"PyBytes_FromString\"]).apply(null,arguments)};var _PyBytes_FromFormatV=Module[\"_PyBytes_FromFormatV\"]=function(){return(_PyBytes_FromFormatV=Module[\"_PyBytes_FromFormatV\"]=Module[\"asm\"][\"PyBytes_FromFormatV\"]).apply(null,arguments)};var __PyBytesWriter_Resize=Module[\"__PyBytesWriter_Resize\"]=function(){return(__PyBytesWriter_Resize=Module[\"__PyBytesWriter_Resize\"]=Module[\"asm\"][\"_PyBytesWriter_Resize\"]).apply(null,arguments)};var __PyBytesWriter_Finish=Module[\"__PyBytesWriter_Finish\"]=function(){return(__PyBytesWriter_Finish=Module[\"__PyBytesWriter_Finish\"]=Module[\"asm\"][\"_PyBytesWriter_Finish\"]).apply(null,arguments)};var __PyBytesWriter_Init=Module[\"__PyBytesWriter_Init\"]=function(){return(__PyBytesWriter_Init=Module[\"__PyBytesWriter_Init\"]=Module[\"asm\"][\"_PyBytesWriter_Init\"]).apply(null,arguments)};var __PyBytesWriter_Alloc=Module[\"__PyBytesWriter_Alloc\"]=function(){return(__PyBytesWriter_Alloc=Module[\"__PyBytesWriter_Alloc\"]=Module[\"asm\"][\"_PyBytesWriter_Alloc\"]).apply(null,arguments)};var __PyBytesWriter_WriteBytes=Module[\"__PyBytesWriter_WriteBytes\"]=function(){return(__PyBytesWriter_WriteBytes=Module[\"__PyBytesWriter_WriteBytes\"]=Module[\"asm\"][\"_PyBytesWriter_WriteBytes\"]).apply(null,arguments)};var __PyBytes_Resize=Module[\"__PyBytes_Resize\"]=function(){return(__PyBytes_Resize=Module[\"__PyBytes_Resize\"]=Module[\"asm\"][\"_PyBytes_Resize\"]).apply(null,arguments)};var __PyBytesWriter_Dealloc=Module[\"__PyBytesWriter_Dealloc\"]=function(){return(__PyBytesWriter_Dealloc=Module[\"__PyBytesWriter_Dealloc\"]=Module[\"asm\"][\"_PyBytesWriter_Dealloc\"]).apply(null,arguments)};var _PyBytes_FromFormat=Module[\"_PyBytes_FromFormat\"]=function(){return(_PyBytes_FromFormat=Module[\"_PyBytes_FromFormat\"]=Module[\"asm\"][\"PyBytes_FromFormat\"]).apply(null,arguments)};var _PyObject_ASCII=Module[\"_PyObject_ASCII\"]=function(){return(_PyObject_ASCII=Module[\"_PyObject_ASCII\"]=Module[\"asm\"][\"PyObject_ASCII\"]).apply(null,arguments)};var __PyLong_FormatBytesWriter=Module[\"__PyLong_FormatBytesWriter\"]=function(){return(__PyLong_FormatBytesWriter=Module[\"__PyLong_FormatBytesWriter\"]=Module[\"asm\"][\"_PyLong_FormatBytesWriter\"]).apply(null,arguments)};var __PyUnicode_FormatLong=Module[\"__PyUnicode_FormatLong\"]=function(){return(__PyUnicode_FormatLong=Module[\"__PyUnicode_FormatLong\"]=Module[\"asm\"][\"_PyUnicode_FormatLong\"]).apply(null,arguments)};var _PyOS_double_to_string=Module[\"_PyOS_double_to_string\"]=function(){return(_PyOS_double_to_string=Module[\"_PyOS_double_to_string\"]=Module[\"asm\"][\"PyOS_double_to_string\"]).apply(null,arguments)};var __PyBytesWriter_Prepare=Module[\"__PyBytesWriter_Prepare\"]=function(){return(__PyBytesWriter_Prepare=Module[\"__PyBytesWriter_Prepare\"]=Module[\"asm\"][\"_PyBytesWriter_Prepare\"]).apply(null,arguments)};var _PyBytes_DecodeEscape=Module[\"_PyBytes_DecodeEscape\"]=function(){return(_PyBytes_DecodeEscape=Module[\"_PyBytes_DecodeEscape\"]=Module[\"asm\"][\"PyBytes_DecodeEscape\"]).apply(null,arguments)};var _PyBytes_Size=Module[\"_PyBytes_Size\"]=function(){return(_PyBytes_Size=Module[\"_PyBytes_Size\"]=Module[\"asm\"][\"PyBytes_Size\"]).apply(null,arguments)};var _PyBytes_Repr=Module[\"_PyBytes_Repr\"]=function(){return(_PyBytes_Repr=Module[\"_PyBytes_Repr\"]=Module[\"asm\"][\"PyBytes_Repr\"]).apply(null,arguments)};var __PyBytes_Join=Module[\"__PyBytes_Join\"]=function(){return(__PyBytes_Join=Module[\"__PyBytes_Join\"]=Module[\"asm\"][\"_PyBytes_Join\"]).apply(null,arguments)};var _PyBytes_FromObject=Module[\"_PyBytes_FromObject\"]=function(){return(_PyBytes_FromObject=Module[\"_PyBytes_FromObject\"]=Module[\"asm\"][\"PyBytes_FromObject\"]).apply(null,arguments)};var __Py_HashBytes=Module[\"__Py_HashBytes\"]=function(){return(__Py_HashBytes=Module[\"__Py_HashBytes\"]=Module[\"asm\"][\"_Py_HashBytes\"]).apply(null,arguments)};var _PyErr_BadArgument=Module[\"_PyErr_BadArgument\"]=function(){return(_PyErr_BadArgument=Module[\"_PyErr_BadArgument\"]=Module[\"asm\"][\"PyErr_BadArgument\"]).apply(null,arguments)};var _PyObject_Calloc=Module[\"_PyObject_Calloc\"]=function(){return(_PyObject_Calloc=Module[\"_PyObject_Calloc\"]=Module[\"asm\"][\"PyObject_Calloc\"]).apply(null,arguments)};var _PyBytes_Concat=Module[\"_PyBytes_Concat\"]=function(){return(_PyBytes_Concat=Module[\"_PyBytes_Concat\"]=Module[\"asm\"][\"PyBytes_Concat\"]).apply(null,arguments)};var __PyBytes_Fini=Module[\"__PyBytes_Fini\"]=function(){return(__PyBytes_Fini=Module[\"__PyBytes_Fini\"]=Module[\"asm\"][\"_PyBytes_Fini\"]).apply(null,arguments)};var __PyErr_Format=Module[\"__PyErr_Format\"]=function(){return(__PyErr_Format=Module[\"__PyErr_Format\"]=Module[\"asm\"][\"_PyErr_Format\"]).apply(null,arguments)};var __PyErr_FormatFromCauseTstate=Module[\"__PyErr_FormatFromCauseTstate\"]=function(){return(__PyErr_FormatFromCauseTstate=Module[\"__PyErr_FormatFromCauseTstate\"]=Module[\"asm\"][\"_PyErr_FormatFromCauseTstate\"]).apply(null,arguments)};var __PyObject_FastCallDictTstate=Module[\"__PyObject_FastCallDictTstate\"]=function(){return(__PyObject_FastCallDictTstate=Module[\"__PyObject_FastCallDictTstate\"]=Module[\"asm\"][\"_PyObject_FastCallDictTstate\"]).apply(null,arguments)};var __PyTuple_FromArray=Module[\"__PyTuple_FromArray\"]=function(){return(__PyTuple_FromArray=Module[\"__PyTuple_FromArray\"]=Module[\"asm\"][\"_PyTuple_FromArray\"]).apply(null,arguments)};var __PyDict_NewPresized=Module[\"__PyDict_NewPresized\"]=function(){return(__PyDict_NewPresized=Module[\"__PyDict_NewPresized\"]=Module[\"asm\"][\"_PyDict_NewPresized\"]).apply(null,arguments)};var __PyErr_NoMemory=Module[\"__PyErr_NoMemory\"]=function(){return(__PyErr_NoMemory=Module[\"__PyErr_NoMemory\"]=Module[\"asm\"][\"_PyErr_NoMemory\"]).apply(null,arguments)};var __PyErr_SetString=Module[\"__PyErr_SetString\"]=function(){return(__PyErr_SetString=Module[\"__PyErr_SetString\"]=Module[\"asm\"][\"_PyErr_SetString\"]).apply(null,arguments)};var _PyObject_VectorcallDict=Module[\"_PyObject_VectorcallDict\"]=function(){return(_PyObject_VectorcallDict=Module[\"_PyObject_VectorcallDict\"]=Module[\"asm\"][\"PyObject_VectorcallDict\"]).apply(null,arguments)};var __PyStack_AsDict=Module[\"__PyStack_AsDict\"]=function(){return(__PyStack_AsDict=Module[\"__PyStack_AsDict\"]=Module[\"asm\"][\"_PyStack_AsDict\"]).apply(null,arguments)};var __PyObject_Call=Module[\"__PyObject_Call\"]=function(){return(__PyObject_Call=Module[\"__PyObject_Call\"]=Module[\"asm\"][\"_PyObject_Call\"]).apply(null,arguments)};var _PyObject_Call=Module[\"_PyObject_Call\"]=function(){return(_PyObject_Call=Module[\"_PyObject_Call\"]=Module[\"asm\"][\"PyObject_Call\"]).apply(null,arguments)};var _PyCFunction_Call=Module[\"_PyCFunction_Call\"]=function(){return(_PyCFunction_Call=Module[\"_PyCFunction_Call\"]=Module[\"asm\"][\"PyCFunction_Call\"]).apply(null,arguments)};var __PyEval_EvalCode=Module[\"__PyEval_EvalCode\"]=function(){return(__PyEval_EvalCode=Module[\"__PyEval_EvalCode\"]=Module[\"asm\"][\"_PyEval_EvalCode\"]).apply(null,arguments)};var __PyFrame_New_NoTrack=Module[\"__PyFrame_New_NoTrack\"]=function(){return(__PyFrame_New_NoTrack=Module[\"__PyFrame_New_NoTrack\"]=Module[\"asm\"][\"_PyFrame_New_NoTrack\"]).apply(null,arguments)};var __PyEval_EvalFrameDefault=Module[\"__PyEval_EvalFrameDefault\"]=function(){return(__PyEval_EvalFrameDefault=Module[\"__PyEval_EvalFrameDefault\"]=Module[\"asm\"][\"_PyEval_EvalFrameDefault\"]).apply(null,arguments)};var _PyEval_CallObjectWithKeywords=Module[\"_PyEval_CallObjectWithKeywords\"]=function(){return(_PyEval_CallObjectWithKeywords=Module[\"_PyEval_CallObjectWithKeywords\"]=Module[\"asm\"][\"PyEval_CallObjectWithKeywords\"]).apply(null,arguments)};var _PyObject_CallObject=Module[\"_PyObject_CallObject\"]=function(){return(_PyObject_CallObject=Module[\"_PyObject_CallObject\"]=Module[\"asm\"][\"PyObject_CallObject\"]).apply(null,arguments)};var __PyObject_Call_Prepend=Module[\"__PyObject_Call_Prepend\"]=function(){return(__PyObject_Call_Prepend=Module[\"__PyObject_Call_Prepend\"]=Module[\"asm\"][\"_PyObject_Call_Prepend\"]).apply(null,arguments)};var _PyObject_CallFunction=Module[\"_PyObject_CallFunction\"]=function(){return(_PyObject_CallFunction=Module[\"_PyObject_CallFunction\"]=Module[\"asm\"][\"PyObject_CallFunction\"]).apply(null,arguments)};var __Py_VaBuildStack_SizeT=Module[\"__Py_VaBuildStack_SizeT\"]=function(){return(__Py_VaBuildStack_SizeT=Module[\"__Py_VaBuildStack_SizeT\"]=Module[\"asm\"][\"_Py_VaBuildStack_SizeT\"]).apply(null,arguments)};var __Py_VaBuildStack=Module[\"__Py_VaBuildStack\"]=function(){return(__Py_VaBuildStack=Module[\"__Py_VaBuildStack\"]=Module[\"asm\"][\"_Py_VaBuildStack\"]).apply(null,arguments)};var _PyEval_CallFunction=Module[\"_PyEval_CallFunction\"]=function(){return(_PyEval_CallFunction=Module[\"_PyEval_CallFunction\"]=Module[\"asm\"][\"PyEval_CallFunction\"]).apply(null,arguments)};var __PyObject_CallFunction_SizeT=Module[\"__PyObject_CallFunction_SizeT\"]=function(){return(__PyObject_CallFunction_SizeT=Module[\"__PyObject_CallFunction_SizeT\"]=Module[\"asm\"][\"_PyObject_CallFunction_SizeT\"]).apply(null,arguments)};var _PyObject_CallMethod=Module[\"_PyObject_CallMethod\"]=function(){return(_PyObject_CallMethod=Module[\"_PyObject_CallMethod\"]=Module[\"asm\"][\"PyObject_CallMethod\"]).apply(null,arguments)};var _PyEval_CallMethod=Module[\"_PyEval_CallMethod\"]=function(){return(_PyEval_CallMethod=Module[\"_PyEval_CallMethod\"]=Module[\"asm\"][\"PyEval_CallMethod\"]).apply(null,arguments)};var __PyObject_CallMethodId=Module[\"__PyObject_CallMethodId\"]=function(){return(__PyObject_CallMethodId=Module[\"__PyObject_CallMethodId\"]=Module[\"asm\"][\"_PyObject_CallMethodId\"]).apply(null,arguments)};var __PyObject_CallMethod_SizeT=Module[\"__PyObject_CallMethod_SizeT\"]=function(){return(__PyObject_CallMethod_SizeT=Module[\"__PyObject_CallMethod_SizeT\"]=Module[\"asm\"][\"_PyObject_CallMethod_SizeT\"]).apply(null,arguments)};var _PyObject_CallMethodObjArgs=Module[\"_PyObject_CallMethodObjArgs\"]=function(){return(_PyObject_CallMethodObjArgs=Module[\"_PyObject_CallMethodObjArgs\"]=Module[\"asm\"][\"PyObject_CallMethodObjArgs\"]).apply(null,arguments)};var _PyCapsule_New=Module[\"_PyCapsule_New\"]=function(){return(_PyCapsule_New=Module[\"_PyCapsule_New\"]=Module[\"asm\"][\"PyCapsule_New\"]).apply(null,arguments)};var _PyCapsule_IsValid=Module[\"_PyCapsule_IsValid\"]=function(){return(_PyCapsule_IsValid=Module[\"_PyCapsule_IsValid\"]=Module[\"asm\"][\"PyCapsule_IsValid\"]).apply(null,arguments)};var _PyCapsule_GetPointer=Module[\"_PyCapsule_GetPointer\"]=function(){return(_PyCapsule_GetPointer=Module[\"_PyCapsule_GetPointer\"]=Module[\"asm\"][\"PyCapsule_GetPointer\"]).apply(null,arguments)};var _PyCapsule_GetName=Module[\"_PyCapsule_GetName\"]=function(){return(_PyCapsule_GetName=Module[\"_PyCapsule_GetName\"]=Module[\"asm\"][\"PyCapsule_GetName\"]).apply(null,arguments)};var _PyCapsule_GetDestructor=Module[\"_PyCapsule_GetDestructor\"]=function(){return(_PyCapsule_GetDestructor=Module[\"_PyCapsule_GetDestructor\"]=Module[\"asm\"][\"PyCapsule_GetDestructor\"]).apply(null,arguments)};var _PyCapsule_GetContext=Module[\"_PyCapsule_GetContext\"]=function(){return(_PyCapsule_GetContext=Module[\"_PyCapsule_GetContext\"]=Module[\"asm\"][\"PyCapsule_GetContext\"]).apply(null,arguments)};var _PyCapsule_SetPointer=Module[\"_PyCapsule_SetPointer\"]=function(){return(_PyCapsule_SetPointer=Module[\"_PyCapsule_SetPointer\"]=Module[\"asm\"][\"PyCapsule_SetPointer\"]).apply(null,arguments)};var _PyCapsule_SetName=Module[\"_PyCapsule_SetName\"]=function(){return(_PyCapsule_SetName=Module[\"_PyCapsule_SetName\"]=Module[\"asm\"][\"PyCapsule_SetName\"]).apply(null,arguments)};var _PyCapsule_SetDestructor=Module[\"_PyCapsule_SetDestructor\"]=function(){return(_PyCapsule_SetDestructor=Module[\"_PyCapsule_SetDestructor\"]=Module[\"asm\"][\"PyCapsule_SetDestructor\"]).apply(null,arguments)};var _PyCapsule_SetContext=Module[\"_PyCapsule_SetContext\"]=function(){return(_PyCapsule_SetContext=Module[\"_PyCapsule_SetContext\"]=Module[\"asm\"][\"PyCapsule_SetContext\"]).apply(null,arguments)};var _PyCapsule_Import=Module[\"_PyCapsule_Import\"]=function(){return(_PyCapsule_Import=Module[\"_PyCapsule_Import\"]=Module[\"asm\"][\"PyCapsule_Import\"]).apply(null,arguments)};var _PyCell_New=Module[\"_PyCell_New\"]=function(){return(_PyCell_New=Module[\"_PyCell_New\"]=Module[\"asm\"][\"PyCell_New\"]).apply(null,arguments)};var _PyCell_Get=Module[\"_PyCell_Get\"]=function(){return(_PyCell_Get=Module[\"_PyCell_Get\"]=Module[\"asm\"][\"PyCell_Get\"]).apply(null,arguments)};var _PyCell_Set=Module[\"_PyCell_Set\"]=function(){return(_PyCell_Set=Module[\"_PyCell_Set\"]=Module[\"asm\"][\"PyCell_Set\"]).apply(null,arguments)};var _PyObject_RichCompare=Module[\"_PyObject_RichCompare\"]=function(){return(_PyObject_RichCompare=Module[\"_PyObject_RichCompare\"]=Module[\"asm\"][\"PyObject_RichCompare\"]).apply(null,arguments)};var _PyMethod_Function=Module[\"_PyMethod_Function\"]=function(){return(_PyMethod_Function=Module[\"_PyMethod_Function\"]=Module[\"asm\"][\"PyMethod_Function\"]).apply(null,arguments)};var _PyMethod_Self=Module[\"_PyMethod_Self\"]=function(){return(_PyMethod_Self=Module[\"_PyMethod_Self\"]=Module[\"asm\"][\"PyMethod_Self\"]).apply(null,arguments)};var _PyMethod_New=Module[\"_PyMethod_New\"]=function(){return(_PyMethod_New=Module[\"_PyMethod_New\"]=Module[\"asm\"][\"PyMethod_New\"]).apply(null,arguments)};var _PyObject_ClearWeakRefs=Module[\"_PyObject_ClearWeakRefs\"]=function(){return(_PyObject_ClearWeakRefs=Module[\"_PyObject_ClearWeakRefs\"]=Module[\"asm\"][\"PyObject_ClearWeakRefs\"]).apply(null,arguments)};var __Py_HashPointer=Module[\"__Py_HashPointer\"]=function(){return(__Py_HashPointer=Module[\"__Py_HashPointer\"]=Module[\"asm\"][\"_Py_HashPointer\"]).apply(null,arguments)};var _PyObject_Hash=Module[\"_PyObject_Hash\"]=function(){return(_PyObject_Hash=Module[\"_PyObject_Hash\"]=Module[\"asm\"][\"PyObject_Hash\"]).apply(null,arguments)};var __PyType_Lookup=Module[\"__PyType_Lookup\"]=function(){return(__PyType_Lookup=Module[\"__PyType_Lookup\"]=Module[\"asm\"][\"_PyType_Lookup\"]).apply(null,arguments)};var _PyObject_GetAttr=Module[\"_PyObject_GetAttr\"]=function(){return(_PyObject_GetAttr=Module[\"_PyObject_GetAttr\"]=Module[\"asm\"][\"PyObject_GetAttr\"]).apply(null,arguments)};var _PyInstanceMethod_New=Module[\"_PyInstanceMethod_New\"]=function(){return(_PyInstanceMethod_New=Module[\"_PyInstanceMethod_New\"]=Module[\"asm\"][\"PyInstanceMethod_New\"]).apply(null,arguments)};var _PyInstanceMethod_Function=Module[\"_PyInstanceMethod_Function\"]=function(){return(_PyInstanceMethod_Function=Module[\"_PyInstanceMethod_Function\"]=Module[\"asm\"][\"PyInstanceMethod_Function\"]).apply(null,arguments)};var _PyCode_NewWithPosOnlyArgs=Module[\"_PyCode_NewWithPosOnlyArgs\"]=function(){return(_PyCode_NewWithPosOnlyArgs=Module[\"_PyCode_NewWithPosOnlyArgs\"]=Module[\"asm\"][\"PyCode_NewWithPosOnlyArgs\"]).apply(null,arguments)};var _PyUnicode_Compare=Module[\"_PyUnicode_Compare\"]=function(){return(_PyUnicode_Compare=Module[\"_PyUnicode_Compare\"]=Module[\"asm\"][\"PyUnicode_Compare\"]).apply(null,arguments)};var _PyFrozenSet_New=Module[\"_PyFrozenSet_New\"]=function(){return(_PyFrozenSet_New=Module[\"_PyFrozenSet_New\"]=Module[\"asm\"][\"PyFrozenSet_New\"]).apply(null,arguments)};var _PyCode_New=Module[\"_PyCode_New\"]=function(){return(_PyCode_New=Module[\"_PyCode_New\"]=Module[\"asm\"][\"PyCode_New\"]).apply(null,arguments)};var __PyCode_InitOpcache=Module[\"__PyCode_InitOpcache\"]=function(){return(__PyCode_InitOpcache=Module[\"__PyCode_InitOpcache\"]=Module[\"asm\"][\"_PyCode_InitOpcache\"]).apply(null,arguments)};var _PyCode_NewEmpty=Module[\"_PyCode_NewEmpty\"]=function(){return(_PyCode_NewEmpty=Module[\"_PyCode_NewEmpty\"]=Module[\"asm\"][\"PyCode_NewEmpty\"]).apply(null,arguments)};var __PyCode_ConstantKey=Module[\"__PyCode_ConstantKey\"]=function(){return(__PyCode_ConstantKey=Module[\"__PyCode_ConstantKey\"]=Module[\"asm\"][\"_PyCode_ConstantKey\"]).apply(null,arguments)};var _PyComplex_AsCComplex=Module[\"_PyComplex_AsCComplex\"]=function(){return(_PyComplex_AsCComplex=Module[\"_PyComplex_AsCComplex\"]=Module[\"asm\"][\"PyComplex_AsCComplex\"]).apply(null,arguments)};var __PySet_NextEntry=Module[\"__PySet_NextEntry\"]=function(){return(__PySet_NextEntry=Module[\"__PySet_NextEntry\"]=Module[\"asm\"][\"_PySet_NextEntry\"]).apply(null,arguments)};var _PyLong_FromVoidPtr=Module[\"_PyLong_FromVoidPtr\"]=function(){return(_PyLong_FromVoidPtr=Module[\"_PyLong_FromVoidPtr\"]=Module[\"asm\"][\"PyLong_FromVoidPtr\"]).apply(null,arguments)};var _PyArg_ParseTuple=Module[\"_PyArg_ParseTuple\"]=function(){return(_PyArg_ParseTuple=Module[\"_PyArg_ParseTuple\"]=Module[\"asm\"][\"PyArg_ParseTuple\"]).apply(null,arguments)};var _PyCode_Addr2Line=Module[\"_PyCode_Addr2Line\"]=function(){return(_PyCode_Addr2Line=Module[\"_PyCode_Addr2Line\"]=Module[\"asm\"][\"PyCode_Addr2Line\"]).apply(null,arguments)};var __PyCode_CheckLineNumber=Module[\"__PyCode_CheckLineNumber\"]=function(){return(__PyCode_CheckLineNumber=Module[\"__PyCode_CheckLineNumber\"]=Module[\"asm\"][\"_PyCode_CheckLineNumber\"]).apply(null,arguments)};var __PyCode_GetExtra=Module[\"__PyCode_GetExtra\"]=function(){return(__PyCode_GetExtra=Module[\"__PyCode_GetExtra\"]=Module[\"asm\"][\"_PyCode_GetExtra\"]).apply(null,arguments)};var __PyCode_SetExtra=Module[\"__PyCode_SetExtra\"]=function(){return(__PyCode_SetExtra=Module[\"__PyCode_SetExtra\"]=Module[\"asm\"][\"_PyCode_SetExtra\"]).apply(null,arguments)};var __PyUnicode_Copy=Module[\"__PyUnicode_Copy\"]=function(){return(__PyUnicode_Copy=Module[\"__PyUnicode_Copy\"]=Module[\"asm\"][\"_PyUnicode_Copy\"]).apply(null,arguments)};var __Py_c_sum=Module[\"__Py_c_sum\"]=function(){return(__Py_c_sum=Module[\"__Py_c_sum\"]=Module[\"asm\"][\"_Py_c_sum\"]).apply(null,arguments)};var __Py_c_diff=Module[\"__Py_c_diff\"]=function(){return(__Py_c_diff=Module[\"__Py_c_diff\"]=Module[\"asm\"][\"_Py_c_diff\"]).apply(null,arguments)};var __Py_c_neg=Module[\"__Py_c_neg\"]=function(){return(__Py_c_neg=Module[\"__Py_c_neg\"]=Module[\"asm\"][\"_Py_c_neg\"]).apply(null,arguments)};var __Py_c_prod=Module[\"__Py_c_prod\"]=function(){return(__Py_c_prod=Module[\"__Py_c_prod\"]=Module[\"asm\"][\"_Py_c_prod\"]).apply(null,arguments)};var __Py_c_quot=Module[\"__Py_c_quot\"]=function(){return(__Py_c_quot=Module[\"__Py_c_quot\"]=Module[\"asm\"][\"_Py_c_quot\"]).apply(null,arguments)};var __Py_c_pow=Module[\"__Py_c_pow\"]=function(){return(__Py_c_pow=Module[\"__Py_c_pow\"]=Module[\"asm\"][\"_Py_c_pow\"]).apply(null,arguments)};var _hypot=Module[\"_hypot\"]=function(){return(_hypot=Module[\"_hypot\"]=Module[\"asm\"][\"hypot\"]).apply(null,arguments)};var _atan2=Module[\"_atan2\"]=function(){return(_atan2=Module[\"_atan2\"]=Module[\"asm\"][\"atan2\"]).apply(null,arguments)};var _pow=Module[\"_pow\"]=function(){return(_pow=Module[\"_pow\"]=Module[\"asm\"][\"pow\"]).apply(null,arguments)};var _log=Module[\"_log\"]=function(){return(_log=Module[\"_log\"]=Module[\"asm\"][\"log\"]).apply(null,arguments)};var _exp=Module[\"_exp\"]=function(){return(_exp=Module[\"_exp\"]=Module[\"asm\"][\"exp\"]).apply(null,arguments)};var _sin=Module[\"_sin\"]=function(){return(_sin=Module[\"_sin\"]=Module[\"asm\"][\"sin\"]).apply(null,arguments)};var _cos=Module[\"_cos\"]=function(){return(_cos=Module[\"_cos\"]=Module[\"asm\"][\"cos\"]).apply(null,arguments)};var __Py_c_abs=Module[\"__Py_c_abs\"]=function(){return(__Py_c_abs=Module[\"__Py_c_abs\"]=Module[\"asm\"][\"_Py_c_abs\"]).apply(null,arguments)};var _PyComplex_FromDoubles=Module[\"_PyComplex_FromDoubles\"]=function(){return(_PyComplex_FromDoubles=Module[\"_PyComplex_FromDoubles\"]=Module[\"asm\"][\"PyComplex_FromDoubles\"]).apply(null,arguments)};var _PyComplex_RealAsDouble=Module[\"_PyComplex_RealAsDouble\"]=function(){return(_PyComplex_RealAsDouble=Module[\"_PyComplex_RealAsDouble\"]=Module[\"asm\"][\"PyComplex_RealAsDouble\"]).apply(null,arguments)};var _PyComplex_ImagAsDouble=Module[\"_PyComplex_ImagAsDouble\"]=function(){return(_PyComplex_ImagAsDouble=Module[\"_PyComplex_ImagAsDouble\"]=Module[\"asm\"][\"PyComplex_ImagAsDouble\"]).apply(null,arguments)};var __Py_HashDouble=Module[\"__Py_HashDouble\"]=function(){return(__Py_HashDouble=Module[\"__Py_HashDouble\"]=Module[\"asm\"][\"_Py_HashDouble\"]).apply(null,arguments)};var __PyUnicode_TransformDecimalAndSpaceToASCII=Module[\"__PyUnicode_TransformDecimalAndSpaceToASCII\"]=function(){return(__PyUnicode_TransformDecimalAndSpaceToASCII=Module[\"__PyUnicode_TransformDecimalAndSpaceToASCII\"]=Module[\"asm\"][\"_PyUnicode_TransformDecimalAndSpaceToASCII\"]).apply(null,arguments)};var __Py_string_to_number_with_underscores=Module[\"__Py_string_to_number_with_underscores\"]=function(){return(__Py_string_to_number_with_underscores=Module[\"__Py_string_to_number_with_underscores\"]=Module[\"asm\"][\"_Py_string_to_number_with_underscores\"]).apply(null,arguments)};var __PyUnicodeWriter_Init=Module[\"__PyUnicodeWriter_Init\"]=function(){return(__PyUnicodeWriter_Init=Module[\"__PyUnicodeWriter_Init\"]=Module[\"asm\"][\"_PyUnicodeWriter_Init\"]).apply(null,arguments)};var __PyComplex_FormatAdvancedWriter=Module[\"__PyComplex_FormatAdvancedWriter\"]=function(){return(__PyComplex_FormatAdvancedWriter=Module[\"__PyComplex_FormatAdvancedWriter\"]=Module[\"asm\"][\"_PyComplex_FormatAdvancedWriter\"]).apply(null,arguments)};var __PyUnicodeWriter_Dealloc=Module[\"__PyUnicodeWriter_Dealloc\"]=function(){return(__PyUnicodeWriter_Dealloc=Module[\"__PyUnicodeWriter_Dealloc\"]=Module[\"asm\"][\"_PyUnicodeWriter_Dealloc\"]).apply(null,arguments)};var __PyUnicodeWriter_Finish=Module[\"__PyUnicodeWriter_Finish\"]=function(){return(__PyUnicodeWriter_Finish=Module[\"__PyUnicodeWriter_Finish\"]=Module[\"asm\"][\"_PyUnicodeWriter_Finish\"]).apply(null,arguments)};var _PyCMethod_New=Module[\"_PyCMethod_New\"]=function(){return(_PyCMethod_New=Module[\"_PyCMethod_New\"]=Module[\"asm\"][\"PyCMethod_New\"]).apply(null,arguments)};var _PyMember_GetOne=Module[\"_PyMember_GetOne\"]=function(){return(_PyMember_GetOne=Module[\"_PyMember_GetOne\"]=Module[\"asm\"][\"PyMember_GetOne\"]).apply(null,arguments)};var _PyMember_SetOne=Module[\"_PyMember_SetOne\"]=function(){return(_PyMember_SetOne=Module[\"_PyMember_SetOne\"]=Module[\"asm\"][\"PyMember_SetOne\"]).apply(null,arguments)};var _PyTuple_GetSlice=Module[\"_PyTuple_GetSlice\"]=function(){return(_PyTuple_GetSlice=Module[\"_PyTuple_GetSlice\"]=Module[\"asm\"][\"PyTuple_GetSlice\"]).apply(null,arguments)};var _PyDescr_NewMethod=Module[\"_PyDescr_NewMethod\"]=function(){return(_PyDescr_NewMethod=Module[\"_PyDescr_NewMethod\"]=Module[\"asm\"][\"PyDescr_NewMethod\"]).apply(null,arguments)};var __PyObject_FunctionStr=Module[\"__PyObject_FunctionStr\"]=function(){return(__PyObject_FunctionStr=Module[\"__PyObject_FunctionStr\"]=Module[\"asm\"][\"_PyObject_FunctionStr\"]).apply(null,arguments)};var _PyDescr_NewClassMethod=Module[\"_PyDescr_NewClassMethod\"]=function(){return(_PyDescr_NewClassMethod=Module[\"_PyDescr_NewClassMethod\"]=Module[\"asm\"][\"PyDescr_NewClassMethod\"]).apply(null,arguments)};var _PyDescr_NewMember=Module[\"_PyDescr_NewMember\"]=function(){return(_PyDescr_NewMember=Module[\"_PyDescr_NewMember\"]=Module[\"asm\"][\"PyDescr_NewMember\"]).apply(null,arguments)};var _PyDescr_NewGetSet=Module[\"_PyDescr_NewGetSet\"]=function(){return(_PyDescr_NewGetSet=Module[\"_PyDescr_NewGetSet\"]=Module[\"asm\"][\"PyDescr_NewGetSet\"]).apply(null,arguments)};var _PyDescr_NewWrapper=Module[\"_PyDescr_NewWrapper\"]=function(){return(_PyDescr_NewWrapper=Module[\"_PyDescr_NewWrapper\"]=Module[\"asm\"][\"PyDescr_NewWrapper\"]).apply(null,arguments)};var _PyDictProxy_New=Module[\"_PyDictProxy_New\"]=function(){return(_PyDictProxy_New=Module[\"_PyDictProxy_New\"]=Module[\"asm\"][\"PyDictProxy_New\"]).apply(null,arguments)};var _PyObject_GC_UnTrack=Module[\"_PyObject_GC_UnTrack\"]=function(){return(_PyObject_GC_UnTrack=Module[\"_PyObject_GC_UnTrack\"]=Module[\"asm\"][\"PyObject_GC_UnTrack\"]).apply(null,arguments)};var __PyTrash_begin=Module[\"__PyTrash_begin\"]=function(){return(__PyTrash_begin=Module[\"__PyTrash_begin\"]=Module[\"asm\"][\"_PyTrash_begin\"]).apply(null,arguments)};var __PyTrash_end=Module[\"__PyTrash_end\"]=function(){return(__PyTrash_end=Module[\"__PyTrash_end\"]=Module[\"asm\"][\"_PyTrash_end\"]).apply(null,arguments)};var _PyWrapper_New=Module[\"_PyWrapper_New\"]=function(){return(_PyWrapper_New=Module[\"_PyWrapper_New\"]=Module[\"asm\"][\"PyWrapper_New\"]).apply(null,arguments)};var __PyObject_SetAttrId=Module[\"__PyObject_SetAttrId\"]=function(){return(__PyObject_SetAttrId=Module[\"__PyObject_SetAttrId\"]=Module[\"asm\"][\"_PyObject_SetAttrId\"]).apply(null,arguments)};var __PyType_GetDocFromInternalDoc=Module[\"__PyType_GetDocFromInternalDoc\"]=function(){return(__PyType_GetDocFromInternalDoc=Module[\"__PyType_GetDocFromInternalDoc\"]=Module[\"asm\"][\"_PyType_GetDocFromInternalDoc\"]).apply(null,arguments)};var __PyType_GetTextSignatureFromInternalDoc=Module[\"__PyType_GetTextSignatureFromInternalDoc\"]=function(){return(__PyType_GetTextSignatureFromInternalDoc=Module[\"__PyType_GetTextSignatureFromInternalDoc\"]=Module[\"asm\"][\"_PyType_GetTextSignatureFromInternalDoc\"]).apply(null,arguments)};var _PyDict_Contains=Module[\"_PyDict_Contains\"]=function(){return(_PyDict_Contains=Module[\"_PyDict_Contains\"]=Module[\"asm\"][\"PyDict_Contains\"]).apply(null,arguments)};var __PyArg_UnpackStack=Module[\"__PyArg_UnpackStack\"]=function(){return(__PyArg_UnpackStack=Module[\"__PyArg_UnpackStack\"]=Module[\"asm\"][\"_PyArg_UnpackStack\"]).apply(null,arguments)};var __PyObject_IsAbstract=Module[\"__PyObject_IsAbstract\"]=function(){return(__PyObject_IsAbstract=Module[\"__PyObject_IsAbstract\"]=Module[\"asm\"][\"_PyObject_IsAbstract\"]).apply(null,arguments)};var _PyException_GetTraceback=Module[\"_PyException_GetTraceback\"]=function(){return(_PyException_GetTraceback=Module[\"_PyException_GetTraceback\"]=Module[\"asm\"][\"PyException_GetTraceback\"]).apply(null,arguments)};var _PyException_GetCause=Module[\"_PyException_GetCause\"]=function(){return(_PyException_GetCause=Module[\"_PyException_GetCause\"]=Module[\"asm\"][\"PyException_GetCause\"]).apply(null,arguments)};var _PyException_SetCause=Module[\"_PyException_SetCause\"]=function(){return(_PyException_SetCause=Module[\"_PyException_SetCause\"]=Module[\"asm\"][\"PyException_SetCause\"]).apply(null,arguments)};var _PyException_GetContext=Module[\"_PyException_GetContext\"]=function(){return(_PyException_GetContext=Module[\"_PyException_GetContext\"]=Module[\"asm\"][\"PyException_GetContext\"]).apply(null,arguments)};var _PyException_SetContext=Module[\"_PyException_SetContext\"]=function(){return(_PyException_SetContext=Module[\"_PyException_SetContext\"]=Module[\"asm\"][\"PyException_SetContext\"]).apply(null,arguments)};var _PyExceptionClass_Name=Module[\"_PyExceptionClass_Name\"]=function(){return(_PyExceptionClass_Name=Module[\"_PyExceptionClass_Name\"]=Module[\"asm\"][\"PyExceptionClass_Name\"]).apply(null,arguments)};var _PyUnicodeEncodeError_GetEncoding=Module[\"_PyUnicodeEncodeError_GetEncoding\"]=function(){return(_PyUnicodeEncodeError_GetEncoding=Module[\"_PyUnicodeEncodeError_GetEncoding\"]=Module[\"asm\"][\"PyUnicodeEncodeError_GetEncoding\"]).apply(null,arguments)};var _PyUnicodeDecodeError_GetEncoding=Module[\"_PyUnicodeDecodeError_GetEncoding\"]=function(){return(_PyUnicodeDecodeError_GetEncoding=Module[\"_PyUnicodeDecodeError_GetEncoding\"]=Module[\"asm\"][\"PyUnicodeDecodeError_GetEncoding\"]).apply(null,arguments)};var _PyUnicodeEncodeError_GetObject=Module[\"_PyUnicodeEncodeError_GetObject\"]=function(){return(_PyUnicodeEncodeError_GetObject=Module[\"_PyUnicodeEncodeError_GetObject\"]=Module[\"asm\"][\"PyUnicodeEncodeError_GetObject\"]).apply(null,arguments)};var _PyUnicodeDecodeError_GetObject=Module[\"_PyUnicodeDecodeError_GetObject\"]=function(){return(_PyUnicodeDecodeError_GetObject=Module[\"_PyUnicodeDecodeError_GetObject\"]=Module[\"asm\"][\"PyUnicodeDecodeError_GetObject\"]).apply(null,arguments)};var _PyUnicodeTranslateError_GetObject=Module[\"_PyUnicodeTranslateError_GetObject\"]=function(){return(_PyUnicodeTranslateError_GetObject=Module[\"_PyUnicodeTranslateError_GetObject\"]=Module[\"asm\"][\"PyUnicodeTranslateError_GetObject\"]).apply(null,arguments)};var _PyUnicodeEncodeError_GetStart=Module[\"_PyUnicodeEncodeError_GetStart\"]=function(){return(_PyUnicodeEncodeError_GetStart=Module[\"_PyUnicodeEncodeError_GetStart\"]=Module[\"asm\"][\"PyUnicodeEncodeError_GetStart\"]).apply(null,arguments)};var _PyUnicodeDecodeError_GetStart=Module[\"_PyUnicodeDecodeError_GetStart\"]=function(){return(_PyUnicodeDecodeError_GetStart=Module[\"_PyUnicodeDecodeError_GetStart\"]=Module[\"asm\"][\"PyUnicodeDecodeError_GetStart\"]).apply(null,arguments)};var _PyUnicodeTranslateError_GetStart=Module[\"_PyUnicodeTranslateError_GetStart\"]=function(){return(_PyUnicodeTranslateError_GetStart=Module[\"_PyUnicodeTranslateError_GetStart\"]=Module[\"asm\"][\"PyUnicodeTranslateError_GetStart\"]).apply(null,arguments)};var _PyUnicodeEncodeError_SetStart=Module[\"_PyUnicodeEncodeError_SetStart\"]=function(){return(_PyUnicodeEncodeError_SetStart=Module[\"_PyUnicodeEncodeError_SetStart\"]=Module[\"asm\"][\"PyUnicodeEncodeError_SetStart\"]).apply(null,arguments)};var _PyUnicodeDecodeError_SetStart=Module[\"_PyUnicodeDecodeError_SetStart\"]=function(){return(_PyUnicodeDecodeError_SetStart=Module[\"_PyUnicodeDecodeError_SetStart\"]=Module[\"asm\"][\"PyUnicodeDecodeError_SetStart\"]).apply(null,arguments)};var _PyUnicodeTranslateError_SetStart=Module[\"_PyUnicodeTranslateError_SetStart\"]=function(){return(_PyUnicodeTranslateError_SetStart=Module[\"_PyUnicodeTranslateError_SetStart\"]=Module[\"asm\"][\"PyUnicodeTranslateError_SetStart\"]).apply(null,arguments)};var _PyUnicodeEncodeError_GetEnd=Module[\"_PyUnicodeEncodeError_GetEnd\"]=function(){return(_PyUnicodeEncodeError_GetEnd=Module[\"_PyUnicodeEncodeError_GetEnd\"]=Module[\"asm\"][\"PyUnicodeEncodeError_GetEnd\"]).apply(null,arguments)};var _PyUnicodeDecodeError_GetEnd=Module[\"_PyUnicodeDecodeError_GetEnd\"]=function(){return(_PyUnicodeDecodeError_GetEnd=Module[\"_PyUnicodeDecodeError_GetEnd\"]=Module[\"asm\"][\"PyUnicodeDecodeError_GetEnd\"]).apply(null,arguments)};var _PyUnicodeTranslateError_GetEnd=Module[\"_PyUnicodeTranslateError_GetEnd\"]=function(){return(_PyUnicodeTranslateError_GetEnd=Module[\"_PyUnicodeTranslateError_GetEnd\"]=Module[\"asm\"][\"PyUnicodeTranslateError_GetEnd\"]).apply(null,arguments)};var _PyUnicodeEncodeError_SetEnd=Module[\"_PyUnicodeEncodeError_SetEnd\"]=function(){return(_PyUnicodeEncodeError_SetEnd=Module[\"_PyUnicodeEncodeError_SetEnd\"]=Module[\"asm\"][\"PyUnicodeEncodeError_SetEnd\"]).apply(null,arguments)};var _PyUnicodeDecodeError_SetEnd=Module[\"_PyUnicodeDecodeError_SetEnd\"]=function(){return(_PyUnicodeDecodeError_SetEnd=Module[\"_PyUnicodeDecodeError_SetEnd\"]=Module[\"asm\"][\"PyUnicodeDecodeError_SetEnd\"]).apply(null,arguments)};var _PyUnicodeTranslateError_SetEnd=Module[\"_PyUnicodeTranslateError_SetEnd\"]=function(){return(_PyUnicodeTranslateError_SetEnd=Module[\"_PyUnicodeTranslateError_SetEnd\"]=Module[\"asm\"][\"PyUnicodeTranslateError_SetEnd\"]).apply(null,arguments)};var _PyUnicodeEncodeError_GetReason=Module[\"_PyUnicodeEncodeError_GetReason\"]=function(){return(_PyUnicodeEncodeError_GetReason=Module[\"_PyUnicodeEncodeError_GetReason\"]=Module[\"asm\"][\"PyUnicodeEncodeError_GetReason\"]).apply(null,arguments)};var _PyUnicodeDecodeError_GetReason=Module[\"_PyUnicodeDecodeError_GetReason\"]=function(){return(_PyUnicodeDecodeError_GetReason=Module[\"_PyUnicodeDecodeError_GetReason\"]=Module[\"asm\"][\"PyUnicodeDecodeError_GetReason\"]).apply(null,arguments)};var _PyUnicodeTranslateError_GetReason=Module[\"_PyUnicodeTranslateError_GetReason\"]=function(){return(_PyUnicodeTranslateError_GetReason=Module[\"_PyUnicodeTranslateError_GetReason\"]=Module[\"asm\"][\"PyUnicodeTranslateError_GetReason\"]).apply(null,arguments)};var _PyUnicodeEncodeError_SetReason=Module[\"_PyUnicodeEncodeError_SetReason\"]=function(){return(_PyUnicodeEncodeError_SetReason=Module[\"_PyUnicodeEncodeError_SetReason\"]=Module[\"asm\"][\"PyUnicodeEncodeError_SetReason\"]).apply(null,arguments)};var _PyUnicodeDecodeError_SetReason=Module[\"_PyUnicodeDecodeError_SetReason\"]=function(){return(_PyUnicodeDecodeError_SetReason=Module[\"_PyUnicodeDecodeError_SetReason\"]=Module[\"asm\"][\"PyUnicodeDecodeError_SetReason\"]).apply(null,arguments)};var _PyUnicodeTranslateError_SetReason=Module[\"_PyUnicodeTranslateError_SetReason\"]=function(){return(_PyUnicodeTranslateError_SetReason=Module[\"_PyUnicodeTranslateError_SetReason\"]=Module[\"asm\"][\"PyUnicodeTranslateError_SetReason\"]).apply(null,arguments)};var _PyUnicodeEncodeError_Create=Module[\"_PyUnicodeEncodeError_Create\"]=function(){return(_PyUnicodeEncodeError_Create=Module[\"_PyUnicodeEncodeError_Create\"]=Module[\"asm\"][\"PyUnicodeEncodeError_Create\"]).apply(null,arguments)};var _PyUnicodeDecodeError_Create=Module[\"_PyUnicodeDecodeError_Create\"]=function(){return(_PyUnicodeDecodeError_Create=Module[\"_PyUnicodeDecodeError_Create\"]=Module[\"asm\"][\"PyUnicodeDecodeError_Create\"]).apply(null,arguments)};var _PyUnicodeTranslateError_Create=Module[\"_PyUnicodeTranslateError_Create\"]=function(){return(_PyUnicodeTranslateError_Create=Module[\"_PyUnicodeTranslateError_Create\"]=Module[\"asm\"][\"PyUnicodeTranslateError_Create\"]).apply(null,arguments)};var __PyUnicodeTranslateError_Create=Module[\"__PyUnicodeTranslateError_Create\"]=function(){return(__PyUnicodeTranslateError_Create=Module[\"__PyUnicodeTranslateError_Create\"]=Module[\"asm\"][\"_PyUnicodeTranslateError_Create\"]).apply(null,arguments)};var __PyExc_Init=Module[\"__PyExc_Init\"]=function(){return(__PyExc_Init=Module[\"__PyExc_Init\"]=Module[\"asm\"][\"_PyExc_Init\"]).apply(null,arguments)};var __PyBuiltins_AddExceptions=Module[\"__PyBuiltins_AddExceptions\"]=function(){return(__PyBuiltins_AddExceptions=Module[\"__PyBuiltins_AddExceptions\"]=Module[\"asm\"][\"_PyBuiltins_AddExceptions\"]).apply(null,arguments)};var _PyModule_GetDict=Module[\"_PyModule_GetDict\"]=function(){return(_PyModule_GetDict=Module[\"_PyModule_GetDict\"]=Module[\"asm\"][\"PyModule_GetDict\"]).apply(null,arguments)};var __PyExc_Fini=Module[\"__PyExc_Fini\"]=function(){return(__PyExc_Fini=Module[\"__PyExc_Fini\"]=Module[\"asm\"][\"_PyExc_Fini\"]).apply(null,arguments)};var __PyErr_TrySetFromCause=Module[\"__PyErr_TrySetFromCause\"]=function(){return(__PyErr_TrySetFromCause=Module[\"__PyErr_TrySetFromCause\"]=Module[\"asm\"][\"_PyErr_TrySetFromCause\"]).apply(null,arguments)};var __PyObject_GetDictPtr=Module[\"__PyObject_GetDictPtr\"]=function(){return(__PyObject_GetDictPtr=Module[\"__PyObject_GetDictPtr\"]=Module[\"asm\"][\"_PyObject_GetDictPtr\"]).apply(null,arguments)};var _PyDict_Copy=Module[\"_PyDict_Copy\"]=function(){return(_PyDict_Copy=Module[\"_PyDict_Copy\"]=Module[\"asm\"][\"PyDict_Copy\"]).apply(null,arguments)};var __PyDict_SetItemId=Module[\"__PyDict_SetItemId\"]=function(){return(__PyDict_SetItemId=Module[\"__PyDict_SetItemId\"]=Module[\"asm\"][\"_PyDict_SetItemId\"]).apply(null,arguments)};var _PyUnicode_FindChar=Module[\"_PyUnicode_FindChar\"]=function(){return(_PyUnicode_FindChar=Module[\"_PyUnicode_FindChar\"]=Module[\"asm\"][\"PyUnicode_FindChar\"]).apply(null,arguments)};var __PyUnicode_IsWhitespace=Module[\"__PyUnicode_IsWhitespace\"]=function(){return(__PyUnicode_IsWhitespace=Module[\"__PyUnicode_IsWhitespace\"]=Module[\"asm\"][\"_PyUnicode_IsWhitespace\"]).apply(null,arguments)};var _PyUnicode_Tailmatch=Module[\"_PyUnicode_Tailmatch\"]=function(){return(_PyUnicode_Tailmatch=Module[\"_PyUnicode_Tailmatch\"]=Module[\"asm\"][\"PyUnicode_Tailmatch\"]).apply(null,arguments)};var __PyUnicode_XStrip=Module[\"__PyUnicode_XStrip\"]=function(){return(__PyUnicode_XStrip=Module[\"__PyUnicode_XStrip\"]=Module[\"asm\"][\"_PyUnicode_XStrip\"]).apply(null,arguments)};var _PyUnicode_ReadChar=Module[\"_PyUnicode_ReadChar\"]=function(){return(_PyUnicode_ReadChar=Module[\"_PyUnicode_ReadChar\"]=Module[\"asm\"][\"PyUnicode_ReadChar\"]).apply(null,arguments)};var _PyObject_GenericGetDict=Module[\"_PyObject_GenericGetDict\"]=function(){return(_PyObject_GenericGetDict=Module[\"_PyObject_GenericGetDict\"]=Module[\"asm\"][\"PyObject_GenericGetDict\"]).apply(null,arguments)};var _PyObject_GenericSetDict=Module[\"_PyObject_GenericSetDict\"]=function(){return(_PyObject_GenericSetDict=Module[\"_PyObject_GenericSetDict\"]=Module[\"asm\"][\"PyObject_GenericSetDict\"]).apply(null,arguments)};var __PyUnicodeWriter_WriteASCIIString=Module[\"__PyUnicodeWriter_WriteASCIIString\"]=function(){return(__PyUnicodeWriter_WriteASCIIString=Module[\"__PyUnicodeWriter_WriteASCIIString\"]=Module[\"asm\"][\"_PyUnicodeWriter_WriteASCIIString\"]).apply(null,arguments)};var __PyUnicode_EqualToASCIIString=Module[\"__PyUnicode_EqualToASCIIString\"]=function(){return(__PyUnicode_EqualToASCIIString=Module[\"__PyUnicode_EqualToASCIIString\"]=Module[\"asm\"][\"_PyUnicode_EqualToASCIIString\"]).apply(null,arguments)};var __PyUnicodeWriter_WriteStr=Module[\"__PyUnicodeWriter_WriteStr\"]=function(){return(__PyUnicodeWriter_WriteStr=Module[\"__PyUnicodeWriter_WriteStr\"]=Module[\"asm\"][\"_PyUnicodeWriter_WriteStr\"]).apply(null,arguments)};var __PyGen_Finalize=Module[\"__PyGen_Finalize\"]=function(){return(__PyGen_Finalize=Module[\"__PyGen_Finalize\"]=Module[\"asm\"][\"_PyGen_Finalize\"]).apply(null,arguments)};var _PyErr_WriteUnraisable=Module[\"_PyErr_WriteUnraisable\"]=function(){return(_PyErr_WriteUnraisable=Module[\"_PyErr_WriteUnraisable\"]=Module[\"asm\"][\"PyErr_WriteUnraisable\"]).apply(null,arguments)};var __PyErr_WarnUnawaitedCoroutine=Module[\"__PyErr_WarnUnawaitedCoroutine\"]=function(){return(__PyErr_WarnUnawaitedCoroutine=Module[\"__PyErr_WarnUnawaitedCoroutine\"]=Module[\"asm\"][\"_PyErr_WarnUnawaitedCoroutine\"]).apply(null,arguments)};var __PyErr_ChainStackItem=Module[\"__PyErr_ChainStackItem\"]=function(){return(__PyErr_ChainStackItem=Module[\"__PyErr_ChainStackItem\"]=Module[\"asm\"][\"_PyErr_ChainStackItem\"]).apply(null,arguments)};var __PyGen_SetStopIterationValue=Module[\"__PyGen_SetStopIterationValue\"]=function(){return(__PyGen_SetStopIterationValue=Module[\"__PyGen_SetStopIterationValue\"]=Module[\"asm\"][\"_PyGen_SetStopIterationValue\"]).apply(null,arguments)};var __PyGen_yf=Module[\"__PyGen_yf\"]=function(){return(__PyGen_yf=Module[\"__PyGen_yf\"]=Module[\"asm\"][\"_PyGen_yf\"]).apply(null,arguments)};var _PyObject_CallFinalizerFromDealloc=Module[\"_PyObject_CallFinalizerFromDealloc\"]=function(){return(_PyObject_CallFinalizerFromDealloc=Module[\"_PyObject_CallFinalizerFromDealloc\"]=Module[\"asm\"][\"PyObject_CallFinalizerFromDealloc\"]).apply(null,arguments)};var _PyGen_NewWithQualName=Module[\"_PyGen_NewWithQualName\"]=function(){return(_PyGen_NewWithQualName=Module[\"_PyGen_NewWithQualName\"]=Module[\"asm\"][\"PyGen_NewWithQualName\"]).apply(null,arguments)};var _PyGen_New=Module[\"_PyGen_New\"]=function(){return(_PyGen_New=Module[\"_PyGen_New\"]=Module[\"asm\"][\"PyGen_New\"]).apply(null,arguments)};var __PyCoro_GetAwaitableIter=Module[\"__PyCoro_GetAwaitableIter\"]=function(){return(__PyCoro_GetAwaitableIter=Module[\"__PyCoro_GetAwaitableIter\"]=Module[\"asm\"][\"_PyCoro_GetAwaitableIter\"]).apply(null,arguments)};var _PyCoro_New=Module[\"_PyCoro_New\"]=function(){return(_PyCoro_New=Module[\"_PyCoro_New\"]=Module[\"asm\"][\"PyCoro_New\"]).apply(null,arguments)};var _PyEval_GetFrame=Module[\"_PyEval_GetFrame\"]=function(){return(_PyEval_GetFrame=Module[\"_PyEval_GetFrame\"]=Module[\"asm\"][\"PyEval_GetFrame\"]).apply(null,arguments)};var _PyFrame_GetLineNumber=Module[\"_PyFrame_GetLineNumber\"]=function(){return(_PyFrame_GetLineNumber=Module[\"_PyFrame_GetLineNumber\"]=Module[\"asm\"][\"PyFrame_GetLineNumber\"]).apply(null,arguments)};var _PyAsyncGen_New=Module[\"_PyAsyncGen_New\"]=function(){return(_PyAsyncGen_New=Module[\"_PyAsyncGen_New\"]=Module[\"asm\"][\"PyAsyncGen_New\"]).apply(null,arguments)};var __PyAsyncGen_ClearFreeLists=Module[\"__PyAsyncGen_ClearFreeLists\"]=function(){return(__PyAsyncGen_ClearFreeLists=Module[\"__PyAsyncGen_ClearFreeLists\"]=Module[\"asm\"][\"_PyAsyncGen_ClearFreeLists\"]).apply(null,arguments)};var __PyAsyncGen_Fini=Module[\"__PyAsyncGen_Fini\"]=function(){return(__PyAsyncGen_Fini=Module[\"__PyAsyncGen_Fini\"]=Module[\"asm\"][\"_PyAsyncGen_Fini\"]).apply(null,arguments)};var __PyAsyncGenValueWrapperNew=Module[\"__PyAsyncGenValueWrapperNew\"]=function(){return(__PyAsyncGenValueWrapperNew=Module[\"__PyAsyncGenValueWrapperNew\"]=Module[\"asm\"][\"_PyAsyncGenValueWrapperNew\"]).apply(null,arguments)};var _PyFile_FromFd=Module[\"_PyFile_FromFd\"]=function(){return(_PyFile_FromFd=Module[\"_PyFile_FromFd\"]=Module[\"asm\"][\"PyFile_FromFd\"]).apply(null,arguments)};var _PyFile_GetLine=Module[\"_PyFile_GetLine\"]=function(){return(_PyFile_GetLine=Module[\"_PyFile_GetLine\"]=Module[\"asm\"][\"PyFile_GetLine\"]).apply(null,arguments)};var _PyFile_WriteObject=Module[\"_PyFile_WriteObject\"]=function(){return(_PyFile_WriteObject=Module[\"_PyFile_WriteObject\"]=Module[\"asm\"][\"PyFile_WriteObject\"]).apply(null,arguments)};var _PyFile_WriteString=Module[\"_PyFile_WriteString\"]=function(){return(_PyFile_WriteString=Module[\"_PyFile_WriteString\"]=Module[\"asm\"][\"PyFile_WriteString\"]).apply(null,arguments)};var _PyObject_AsFileDescriptor=Module[\"_PyObject_AsFileDescriptor\"]=function(){return(_PyObject_AsFileDescriptor=Module[\"_PyObject_AsFileDescriptor\"]=Module[\"asm\"][\"PyObject_AsFileDescriptor\"]).apply(null,arguments)};var _flockfile=Module[\"_flockfile\"]=function(){return(_flockfile=Module[\"_flockfile\"]=Module[\"asm\"][\"flockfile\"]).apply(null,arguments)};var _getc_unlocked=Module[\"_getc_unlocked\"]=function(){return(_getc_unlocked=Module[\"_getc_unlocked\"]=Module[\"asm\"][\"getc_unlocked\"]).apply(null,arguments)};var _funlockfile=Module[\"_funlockfile\"]=function(){return(_funlockfile=Module[\"_funlockfile\"]=Module[\"asm\"][\"funlockfile\"]).apply(null,arguments)};var _PyFile_NewStdPrinter=Module[\"_PyFile_NewStdPrinter\"]=function(){return(_PyFile_NewStdPrinter=Module[\"_PyFile_NewStdPrinter\"]=Module[\"asm\"][\"PyFile_NewStdPrinter\"]).apply(null,arguments)};var _PyFile_SetOpenCodeHook=Module[\"_PyFile_SetOpenCodeHook\"]=function(){return(_PyFile_SetOpenCodeHook=Module[\"_PyFile_SetOpenCodeHook\"]=Module[\"asm\"][\"PyFile_SetOpenCodeHook\"]).apply(null,arguments)};var _Py_IsInitialized=Module[\"_Py_IsInitialized\"]=function(){return(_Py_IsInitialized=Module[\"_Py_IsInitialized\"]=Module[\"asm\"][\"Py_IsInitialized\"]).apply(null,arguments)};var _PyFile_OpenCodeObject=Module[\"_PyFile_OpenCodeObject\"]=function(){return(_PyFile_OpenCodeObject=Module[\"_PyFile_OpenCodeObject\"]=Module[\"asm\"][\"PyFile_OpenCodeObject\"]).apply(null,arguments)};var _PyFile_OpenCode=Module[\"_PyFile_OpenCode\"]=function(){return(_PyFile_OpenCode=Module[\"_PyFile_OpenCode\"]=Module[\"asm\"][\"PyFile_OpenCode\"]).apply(null,arguments)};var __PyUnicode_AsUTF8String=Module[\"__PyUnicode_AsUTF8String\"]=function(){return(__PyUnicode_AsUTF8String=Module[\"__PyUnicode_AsUTF8String\"]=Module[\"asm\"][\"_PyUnicode_AsUTF8String\"]).apply(null,arguments)};var __Py_write=Module[\"__Py_write\"]=function(){return(__Py_write=Module[\"__Py_write\"]=Module[\"asm\"][\"_Py_write\"]).apply(null,arguments)};var _PyFloat_GetMax=Module[\"_PyFloat_GetMax\"]=function(){return(_PyFloat_GetMax=Module[\"_PyFloat_GetMax\"]=Module[\"asm\"][\"PyFloat_GetMax\"]).apply(null,arguments)};var _PyFloat_GetMin=Module[\"_PyFloat_GetMin\"]=function(){return(_PyFloat_GetMin=Module[\"_PyFloat_GetMin\"]=Module[\"asm\"][\"PyFloat_GetMin\"]).apply(null,arguments)};var _PyFloat_GetInfo=Module[\"_PyFloat_GetInfo\"]=function(){return(_PyFloat_GetInfo=Module[\"_PyFloat_GetInfo\"]=Module[\"asm\"][\"PyFloat_GetInfo\"]).apply(null,arguments)};var _PyStructSequence_New=Module[\"_PyStructSequence_New\"]=function(){return(_PyStructSequence_New=Module[\"_PyStructSequence_New\"]=Module[\"asm\"][\"PyStructSequence_New\"]).apply(null,arguments)};var __PyUnicode_FromASCII=Module[\"__PyUnicode_FromASCII\"]=function(){return(__PyUnicode_FromASCII=Module[\"__PyUnicode_FromASCII\"]=Module[\"asm\"][\"_PyUnicode_FromASCII\"]).apply(null,arguments)};var __PyLong_NumBits=Module[\"__PyLong_NumBits\"]=function(){return(__PyLong_NumBits=Module[\"__PyLong_NumBits\"]=Module[\"asm\"][\"_PyLong_NumBits\"]).apply(null,arguments)};var _frexp=Module[\"_frexp\"]=function(){return(_frexp=Module[\"_frexp\"]=Module[\"asm\"][\"frexp\"]).apply(null,arguments)};var _modf=Module[\"_modf\"]=function(){return(_modf=Module[\"_modf\"]=Module[\"asm\"][\"modf\"]).apply(null,arguments)};var _PyLong_FromDouble=Module[\"_PyLong_FromDouble\"]=function(){return(_PyLong_FromDouble=Module[\"_PyLong_FromDouble\"]=Module[\"asm\"][\"PyLong_FromDouble\"]).apply(null,arguments)};var __PyLong_Lshift=Module[\"__PyLong_Lshift\"]=function(){return(__PyLong_Lshift=Module[\"__PyLong_Lshift\"]=Module[\"asm\"][\"_PyLong_Lshift\"]).apply(null,arguments)};var __PyFloat_Init=Module[\"__PyFloat_Init\"]=function(){return(__PyFloat_Init=Module[\"__PyFloat_Init\"]=Module[\"asm\"][\"_PyFloat_Init\"]).apply(null,arguments)};var _PyStructSequence_InitType2=Module[\"_PyStructSequence_InitType2\"]=function(){return(_PyStructSequence_InitType2=Module[\"_PyStructSequence_InitType2\"]=Module[\"asm\"][\"PyStructSequence_InitType2\"]).apply(null,arguments)};var __PyFloat_ClearFreeList=Module[\"__PyFloat_ClearFreeList\"]=function(){return(__PyFloat_ClearFreeList=Module[\"__PyFloat_ClearFreeList\"]=Module[\"asm\"][\"_PyFloat_ClearFreeList\"]).apply(null,arguments)};var __PyFloat_Fini=Module[\"__PyFloat_Fini\"]=function(){return(__PyFloat_Fini=Module[\"__PyFloat_Fini\"]=Module[\"asm\"][\"_PyFloat_Fini\"]).apply(null,arguments)};var __PyFloat_DebugMallocStats=Module[\"__PyFloat_DebugMallocStats\"]=function(){return(__PyFloat_DebugMallocStats=Module[\"__PyFloat_DebugMallocStats\"]=Module[\"asm\"][\"_PyFloat_DebugMallocStats\"]).apply(null,arguments)};var __PyDebugAllocatorStats=Module[\"__PyDebugAllocatorStats\"]=function(){return(__PyDebugAllocatorStats=Module[\"__PyDebugAllocatorStats\"]=Module[\"asm\"][\"_PyDebugAllocatorStats\"]).apply(null,arguments)};var __PyFloat_Pack2=Module[\"__PyFloat_Pack2\"]=function(){return(__PyFloat_Pack2=Module[\"__PyFloat_Pack2\"]=Module[\"asm\"][\"_PyFloat_Pack2\"]).apply(null,arguments)};var _ldexp=Module[\"_ldexp\"]=function(){return(_ldexp=Module[\"_ldexp\"]=Module[\"asm\"][\"ldexp\"]).apply(null,arguments)};var __PyFloat_Pack4=Module[\"__PyFloat_Pack4\"]=function(){return(__PyFloat_Pack4=Module[\"__PyFloat_Pack4\"]=Module[\"asm\"][\"_PyFloat_Pack4\"]).apply(null,arguments)};var __PyFloat_Pack8=Module[\"__PyFloat_Pack8\"]=function(){return(__PyFloat_Pack8=Module[\"__PyFloat_Pack8\"]=Module[\"asm\"][\"_PyFloat_Pack8\"]).apply(null,arguments)};var __PyFloat_Unpack2=Module[\"__PyFloat_Unpack2\"]=function(){return(__PyFloat_Unpack2=Module[\"__PyFloat_Unpack2\"]=Module[\"asm\"][\"_PyFloat_Unpack2\"]).apply(null,arguments)};var __Py_dg_infinity=Module[\"__Py_dg_infinity\"]=function(){return(__Py_dg_infinity=Module[\"__Py_dg_infinity\"]=Module[\"asm\"][\"_Py_dg_infinity\"]).apply(null,arguments)};var __Py_dg_stdnan=Module[\"__Py_dg_stdnan\"]=function(){return(__Py_dg_stdnan=Module[\"__Py_dg_stdnan\"]=Module[\"asm\"][\"_Py_dg_stdnan\"]).apply(null,arguments)};var __PyFloat_Unpack4=Module[\"__PyFloat_Unpack4\"]=function(){return(__PyFloat_Unpack4=Module[\"__PyFloat_Unpack4\"]=Module[\"asm\"][\"_PyFloat_Unpack4\"]).apply(null,arguments)};var __PyFloat_Unpack8=Module[\"__PyFloat_Unpack8\"]=function(){return(__PyFloat_Unpack8=Module[\"__PyFloat_Unpack8\"]=Module[\"asm\"][\"_PyFloat_Unpack8\"]).apply(null,arguments)};var _fmod=Module[\"_fmod\"]=function(){return(_fmod=Module[\"_fmod\"]=Module[\"asm\"][\"fmod\"]).apply(null,arguments)};var _PyErr_SetFromErrno=Module[\"_PyErr_SetFromErrno\"]=function(){return(_PyErr_SetFromErrno=Module[\"_PyErr_SetFromErrno\"]=Module[\"asm\"][\"PyErr_SetFromErrno\"]).apply(null,arguments)};var _round=Module[\"_round\"]=function(){return(_round=Module[\"_round\"]=Module[\"asm\"][\"round\"]).apply(null,arguments)};var __Py_dg_dtoa=Module[\"__Py_dg_dtoa\"]=function(){return(__Py_dg_dtoa=Module[\"__Py_dg_dtoa\"]=Module[\"asm\"][\"_Py_dg_dtoa\"]).apply(null,arguments)};var __Py_dg_strtod=Module[\"__Py_dg_strtod\"]=function(){return(__Py_dg_strtod=Module[\"__Py_dg_strtod\"]=Module[\"asm\"][\"_Py_dg_strtod\"]).apply(null,arguments)};var __Py_dg_freedtoa=Module[\"__Py_dg_freedtoa\"]=function(){return(__Py_dg_freedtoa=Module[\"__Py_dg_freedtoa\"]=Module[\"asm\"][\"_Py_dg_freedtoa\"]).apply(null,arguments)};var __Py_parse_inf_or_nan=Module[\"__Py_parse_inf_or_nan\"]=function(){return(__Py_parse_inf_or_nan=Module[\"__Py_parse_inf_or_nan\"]=Module[\"asm\"][\"_Py_parse_inf_or_nan\"]).apply(null,arguments)};var _strtol=Module[\"_strtol\"]=function(){return(_strtol=Module[\"_strtol\"]=Module[\"asm\"][\"strtol\"]).apply(null,arguments)};var __PyFloat_FormatAdvancedWriter=Module[\"__PyFloat_FormatAdvancedWriter\"]=function(){return(__PyFloat_FormatAdvancedWriter=Module[\"__PyFloat_FormatAdvancedWriter\"]=Module[\"asm\"][\"_PyFloat_FormatAdvancedWriter\"]).apply(null,arguments)};var __PyDict_GetItemIdWithError=Module[\"__PyDict_GetItemIdWithError\"]=function(){return(__PyDict_GetItemIdWithError=Module[\"__PyDict_GetItemIdWithError\"]=Module[\"asm\"][\"_PyDict_GetItemIdWithError\"]).apply(null,arguments)};var __PyObject_GC_NewVar=Module[\"__PyObject_GC_NewVar\"]=function(){return(__PyObject_GC_NewVar=Module[\"__PyObject_GC_NewVar\"]=Module[\"asm\"][\"_PyObject_GC_NewVar\"]).apply(null,arguments)};var __PyObject_GC_Resize=Module[\"__PyObject_GC_Resize\"]=function(){return(__PyObject_GC_Resize=Module[\"__PyObject_GC_Resize\"]=Module[\"asm\"][\"_PyObject_GC_Resize\"]).apply(null,arguments)};var _PyFrame_New=Module[\"_PyFrame_New\"]=function(){return(_PyFrame_New=Module[\"_PyFrame_New\"]=Module[\"asm\"][\"PyFrame_New\"]).apply(null,arguments)};var _PyFrame_BlockSetup=Module[\"_PyFrame_BlockSetup\"]=function(){return(_PyFrame_BlockSetup=Module[\"_PyFrame_BlockSetup\"]=Module[\"asm\"][\"PyFrame_BlockSetup\"]).apply(null,arguments)};var _PyFrame_BlockPop=Module[\"_PyFrame_BlockPop\"]=function(){return(_PyFrame_BlockPop=Module[\"_PyFrame_BlockPop\"]=Module[\"asm\"][\"PyFrame_BlockPop\"]).apply(null,arguments)};var _PyFrame_FastToLocalsWithError=Module[\"_PyFrame_FastToLocalsWithError\"]=function(){return(_PyFrame_FastToLocalsWithError=Module[\"_PyFrame_FastToLocalsWithError\"]=Module[\"asm\"][\"PyFrame_FastToLocalsWithError\"]).apply(null,arguments)};var _PyFrame_FastToLocals=Module[\"_PyFrame_FastToLocals\"]=function(){return(_PyFrame_FastToLocals=Module[\"_PyFrame_FastToLocals\"]=Module[\"asm\"][\"PyFrame_FastToLocals\"]).apply(null,arguments)};var _PyFrame_LocalsToFast=Module[\"_PyFrame_LocalsToFast\"]=function(){return(_PyFrame_LocalsToFast=Module[\"_PyFrame_LocalsToFast\"]=Module[\"asm\"][\"PyFrame_LocalsToFast\"]).apply(null,arguments)};var __PyFrame_ClearFreeList=Module[\"__PyFrame_ClearFreeList\"]=function(){return(__PyFrame_ClearFreeList=Module[\"__PyFrame_ClearFreeList\"]=Module[\"asm\"][\"_PyFrame_ClearFreeList\"]).apply(null,arguments)};var __PyFrame_Fini=Module[\"__PyFrame_Fini\"]=function(){return(__PyFrame_Fini=Module[\"__PyFrame_Fini\"]=Module[\"asm\"][\"_PyFrame_Fini\"]).apply(null,arguments)};var __PyFrame_DebugMallocStats=Module[\"__PyFrame_DebugMallocStats\"]=function(){return(__PyFrame_DebugMallocStats=Module[\"__PyFrame_DebugMallocStats\"]=Module[\"asm\"][\"_PyFrame_DebugMallocStats\"]).apply(null,arguments)};var _PyFrame_GetCode=Module[\"_PyFrame_GetCode\"]=function(){return(_PyFrame_GetCode=Module[\"_PyFrame_GetCode\"]=Module[\"asm\"][\"PyFrame_GetCode\"]).apply(null,arguments)};var _PyFrame_GetBack=Module[\"_PyFrame_GetBack\"]=function(){return(_PyFrame_GetBack=Module[\"_PyFrame_GetBack\"]=Module[\"asm\"][\"PyFrame_GetBack\"]).apply(null,arguments)};var _PyFunction_NewWithQualName=Module[\"_PyFunction_NewWithQualName\"]=function(){return(_PyFunction_NewWithQualName=Module[\"_PyFunction_NewWithQualName\"]=Module[\"asm\"][\"PyFunction_NewWithQualName\"]).apply(null,arguments)};var _PyFunction_New=Module[\"_PyFunction_New\"]=function(){return(_PyFunction_New=Module[\"_PyFunction_New\"]=Module[\"asm\"][\"PyFunction_New\"]).apply(null,arguments)};var _PyFunction_GetCode=Module[\"_PyFunction_GetCode\"]=function(){return(_PyFunction_GetCode=Module[\"_PyFunction_GetCode\"]=Module[\"asm\"][\"PyFunction_GetCode\"]).apply(null,arguments)};var _PyFunction_GetGlobals=Module[\"_PyFunction_GetGlobals\"]=function(){return(_PyFunction_GetGlobals=Module[\"_PyFunction_GetGlobals\"]=Module[\"asm\"][\"PyFunction_GetGlobals\"]).apply(null,arguments)};var _PyFunction_GetModule=Module[\"_PyFunction_GetModule\"]=function(){return(_PyFunction_GetModule=Module[\"_PyFunction_GetModule\"]=Module[\"asm\"][\"PyFunction_GetModule\"]).apply(null,arguments)};var _PyFunction_GetDefaults=Module[\"_PyFunction_GetDefaults\"]=function(){return(_PyFunction_GetDefaults=Module[\"_PyFunction_GetDefaults\"]=Module[\"asm\"][\"PyFunction_GetDefaults\"]).apply(null,arguments)};var _PyFunction_SetDefaults=Module[\"_PyFunction_SetDefaults\"]=function(){return(_PyFunction_SetDefaults=Module[\"_PyFunction_SetDefaults\"]=Module[\"asm\"][\"PyFunction_SetDefaults\"]).apply(null,arguments)};var _PyFunction_GetKwDefaults=Module[\"_PyFunction_GetKwDefaults\"]=function(){return(_PyFunction_GetKwDefaults=Module[\"_PyFunction_GetKwDefaults\"]=Module[\"asm\"][\"PyFunction_GetKwDefaults\"]).apply(null,arguments)};var _PyFunction_SetKwDefaults=Module[\"_PyFunction_SetKwDefaults\"]=function(){return(_PyFunction_SetKwDefaults=Module[\"_PyFunction_SetKwDefaults\"]=Module[\"asm\"][\"PyFunction_SetKwDefaults\"]).apply(null,arguments)};var _PyFunction_GetClosure=Module[\"_PyFunction_GetClosure\"]=function(){return(_PyFunction_GetClosure=Module[\"_PyFunction_GetClosure\"]=Module[\"asm\"][\"PyFunction_GetClosure\"]).apply(null,arguments)};var _PyFunction_SetClosure=Module[\"_PyFunction_SetClosure\"]=function(){return(_PyFunction_SetClosure=Module[\"_PyFunction_SetClosure\"]=Module[\"asm\"][\"PyFunction_SetClosure\"]).apply(null,arguments)};var _PyFunction_GetAnnotations=Module[\"_PyFunction_GetAnnotations\"]=function(){return(_PyFunction_GetAnnotations=Module[\"_PyFunction_GetAnnotations\"]=Module[\"asm\"][\"PyFunction_GetAnnotations\"]).apply(null,arguments)};var _PyFunction_SetAnnotations=Module[\"_PyFunction_SetAnnotations\"]=function(){return(_PyFunction_SetAnnotations=Module[\"_PyFunction_SetAnnotations\"]=Module[\"asm\"][\"PyFunction_SetAnnotations\"]).apply(null,arguments)};var _PyClassMethod_New=Module[\"_PyClassMethod_New\"]=function(){return(_PyClassMethod_New=Module[\"_PyClassMethod_New\"]=Module[\"asm\"][\"PyClassMethod_New\"]).apply(null,arguments)};var _PyStaticMethod_New=Module[\"_PyStaticMethod_New\"]=function(){return(_PyStaticMethod_New=Module[\"_PyStaticMethod_New\"]=Module[\"asm\"][\"PyStaticMethod_New\"]).apply(null,arguments)};var __PyInterpreterState_LookUpID=Module[\"__PyInterpreterState_LookUpID\"]=function(){return(__PyInterpreterState_LookUpID=Module[\"__PyInterpreterState_LookUpID\"]=Module[\"asm\"][\"_PyInterpreterState_LookUpID\"]).apply(null,arguments)};var __PyInterpreterState_IDDecref=Module[\"__PyInterpreterState_IDDecref\"]=function(){return(__PyInterpreterState_IDDecref=Module[\"__PyInterpreterState_IDDecref\"]=Module[\"asm\"][\"_PyInterpreterState_IDDecref\"]).apply(null,arguments)};var _PyLong_FromLongLong=Module[\"_PyLong_FromLongLong\"]=function(){return(_PyLong_FromLongLong=Module[\"_PyLong_FromLongLong\"]=Module[\"asm\"][\"PyLong_FromLongLong\"]).apply(null,arguments)};var _PyLong_AsLongLongAndOverflow=Module[\"_PyLong_AsLongLongAndOverflow\"]=function(){return(_PyLong_AsLongLongAndOverflow=Module[\"_PyLong_AsLongLongAndOverflow\"]=Module[\"asm\"][\"PyLong_AsLongLongAndOverflow\"]).apply(null,arguments)};var _PyArg_ParseTupleAndKeywords=Module[\"_PyArg_ParseTupleAndKeywords\"]=function(){return(_PyArg_ParseTupleAndKeywords=Module[\"_PyArg_ParseTupleAndKeywords\"]=Module[\"asm\"][\"PyArg_ParseTupleAndKeywords\"]).apply(null,arguments)};var __PyInterpreterState_IDIncref=Module[\"__PyInterpreterState_IDIncref\"]=function(){return(__PyInterpreterState_IDIncref=Module[\"__PyInterpreterState_IDIncref\"]=Module[\"asm\"][\"_PyInterpreterState_IDIncref\"]).apply(null,arguments)};var __PyInterpreterID_New=Module[\"__PyInterpreterID_New\"]=function(){return(__PyInterpreterID_New=Module[\"__PyInterpreterID_New\"]=Module[\"asm\"][\"_PyInterpreterID_New\"]).apply(null,arguments)};var __PyInterpreterState_GetIDObject=Module[\"__PyInterpreterState_GetIDObject\"]=function(){return(__PyInterpreterState_GetIDObject=Module[\"__PyInterpreterState_GetIDObject\"]=Module[\"asm\"][\"_PyInterpreterState_GetIDObject\"]).apply(null,arguments)};var __PyInterpreterState_IDInitref=Module[\"__PyInterpreterState_IDInitref\"]=function(){return(__PyInterpreterState_IDInitref=Module[\"__PyInterpreterState_IDInitref\"]=Module[\"asm\"][\"_PyInterpreterState_IDInitref\"]).apply(null,arguments)};var _PyInterpreterState_GetID=Module[\"_PyInterpreterState_GetID\"]=function(){return(_PyInterpreterState_GetID=Module[\"_PyInterpreterState_GetID\"]=Module[\"asm\"][\"PyInterpreterState_GetID\"]).apply(null,arguments)};var __PyInterpreterID_LookUp=Module[\"__PyInterpreterID_LookUp\"]=function(){return(__PyInterpreterID_LookUp=Module[\"__PyInterpreterID_LookUp\"]=Module[\"asm\"][\"_PyInterpreterID_LookUp\"]).apply(null,arguments)};var _PyLong_AsLongLong=Module[\"_PyLong_AsLongLong\"]=function(){return(_PyLong_AsLongLong=Module[\"_PyLong_AsLongLong\"]=Module[\"asm\"][\"PyLong_AsLongLong\"]).apply(null,arguments)};var _PyCallIter_New=Module[\"_PyCallIter_New\"]=function(){return(_PyCallIter_New=Module[\"_PyCallIter_New\"]=Module[\"asm\"][\"PyCallIter_New\"]).apply(null,arguments)};var __PyList_ClearFreeList=Module[\"__PyList_ClearFreeList\"]=function(){return(__PyList_ClearFreeList=Module[\"__PyList_ClearFreeList\"]=Module[\"asm\"][\"_PyList_ClearFreeList\"]).apply(null,arguments)};var __PyList_Fini=Module[\"__PyList_Fini\"]=function(){return(__PyList_Fini=Module[\"__PyList_Fini\"]=Module[\"asm\"][\"_PyList_Fini\"]).apply(null,arguments)};var __PyList_DebugMallocStats=Module[\"__PyList_DebugMallocStats\"]=function(){return(__PyList_DebugMallocStats=Module[\"__PyList_DebugMallocStats\"]=Module[\"asm\"][\"_PyList_DebugMallocStats\"]).apply(null,arguments)};var _PyList_Insert=Module[\"_PyList_Insert\"]=function(){return(_PyList_Insert=Module[\"_PyList_Insert\"]=Module[\"asm\"][\"PyList_Insert\"]).apply(null,arguments)};var _PyList_GetSlice=Module[\"_PyList_GetSlice\"]=function(){return(_PyList_GetSlice=Module[\"_PyList_GetSlice\"]=Module[\"asm\"][\"PyList_GetSlice\"]).apply(null,arguments)};var _Py_ReprEnter=Module[\"_Py_ReprEnter\"]=function(){return(_Py_ReprEnter=Module[\"_Py_ReprEnter\"]=Module[\"asm\"][\"Py_ReprEnter\"]).apply(null,arguments)};var __PyUnicodeWriter_WriteChar=Module[\"__PyUnicodeWriter_WriteChar\"]=function(){return(__PyUnicodeWriter_WriteChar=Module[\"__PyUnicodeWriter_WriteChar\"]=Module[\"asm\"][\"_PyUnicodeWriter_WriteChar\"]).apply(null,arguments)};var _Py_ReprLeave=Module[\"_Py_ReprLeave\"]=function(){return(_Py_ReprLeave=Module[\"_Py_ReprLeave\"]=Module[\"asm\"][\"Py_ReprLeave\"]).apply(null,arguments)};var __PyArg_NoKwnames=Module[\"__PyArg_NoKwnames\"]=function(){return(__PyArg_NoKwnames=Module[\"__PyArg_NoKwnames\"]=Module[\"asm\"][\"_PyArg_NoKwnames\"]).apply(null,arguments)};var _PyObject_GC_Track=Module[\"_PyObject_GC_Track\"]=function(){return(_PyObject_GC_Track=Module[\"_PyObject_GC_Track\"]=Module[\"asm\"][\"PyObject_GC_Track\"]).apply(null,arguments)};var __PyEval_SliceIndexNotNone=Module[\"__PyEval_SliceIndexNotNone\"]=function(){return(__PyEval_SliceIndexNotNone=Module[\"__PyEval_SliceIndexNotNone\"]=Module[\"asm\"][\"_PyEval_SliceIndexNotNone\"]).apply(null,arguments)};var _PyObject_HashNotImplemented=Module[\"_PyObject_HashNotImplemented\"]=function(){return(_PyObject_HashNotImplemented=Module[\"_PyObject_HashNotImplemented\"]=Module[\"asm\"][\"PyObject_HashNotImplemented\"]).apply(null,arguments)};var __PyLong_New=Module[\"__PyLong_New\"]=function(){return(__PyLong_New=Module[\"__PyLong_New\"]=Module[\"asm\"][\"_PyLong_New\"]).apply(null,arguments)};var _PyLong_FromUnsignedLong=Module[\"_PyLong_FromUnsignedLong\"]=function(){return(_PyLong_FromUnsignedLong=Module[\"_PyLong_FromUnsignedLong\"]=Module[\"asm\"][\"PyLong_FromUnsignedLong\"]).apply(null,arguments)};var _PyLong_FromUnsignedLongLong=Module[\"_PyLong_FromUnsignedLongLong\"]=function(){return(_PyLong_FromUnsignedLongLong=Module[\"_PyLong_FromUnsignedLongLong\"]=Module[\"asm\"][\"PyLong_FromUnsignedLongLong\"]).apply(null,arguments)};var _PyLong_AsUnsignedLong=Module[\"_PyLong_AsUnsignedLong\"]=function(){return(_PyLong_AsUnsignedLong=Module[\"_PyLong_AsUnsignedLong\"]=Module[\"asm\"][\"PyLong_AsUnsignedLong\"]).apply(null,arguments)};var _PyLong_AsUnsignedLongMask=Module[\"_PyLong_AsUnsignedLongMask\"]=function(){return(_PyLong_AsUnsignedLongMask=Module[\"_PyLong_AsUnsignedLongMask\"]=Module[\"asm\"][\"PyLong_AsUnsignedLongMask\"]).apply(null,arguments)};var __Py_bit_length=Module[\"__Py_bit_length\"]=function(){return(__Py_bit_length=Module[\"__Py_bit_length\"]=Module[\"asm\"][\"_Py_bit_length\"]).apply(null,arguments)};var __PyLong_FromByteArray=Module[\"__PyLong_FromByteArray\"]=function(){return(__PyLong_FromByteArray=Module[\"__PyLong_FromByteArray\"]=Module[\"asm\"][\"_PyLong_FromByteArray\"]).apply(null,arguments)};var _PyLong_AsVoidPtr=Module[\"_PyLong_AsVoidPtr\"]=function(){return(_PyLong_AsVoidPtr=Module[\"_PyLong_AsVoidPtr\"]=Module[\"asm\"][\"PyLong_AsVoidPtr\"]).apply(null,arguments)};var _PyLong_AsUnsignedLongLong=Module[\"_PyLong_AsUnsignedLongLong\"]=function(){return(_PyLong_AsUnsignedLongLong=Module[\"_PyLong_AsUnsignedLongLong\"]=Module[\"asm\"][\"PyLong_AsUnsignedLongLong\"]).apply(null,arguments)};var _PyLong_AsUnsignedLongLongMask=Module[\"_PyLong_AsUnsignedLongLongMask\"]=function(){return(_PyLong_AsUnsignedLongLongMask=Module[\"_PyLong_AsUnsignedLongLongMask\"]=Module[\"asm\"][\"PyLong_AsUnsignedLongLongMask\"]).apply(null,arguments)};var __PyLong_UnsignedShort_Converter=Module[\"__PyLong_UnsignedShort_Converter\"]=function(){return(__PyLong_UnsignedShort_Converter=Module[\"__PyLong_UnsignedShort_Converter\"]=Module[\"asm\"][\"_PyLong_UnsignedShort_Converter\"]).apply(null,arguments)};var __PyLong_UnsignedInt_Converter=Module[\"__PyLong_UnsignedInt_Converter\"]=function(){return(__PyLong_UnsignedInt_Converter=Module[\"__PyLong_UnsignedInt_Converter\"]=Module[\"asm\"][\"_PyLong_UnsignedInt_Converter\"]).apply(null,arguments)};var __PyLong_UnsignedLong_Converter=Module[\"__PyLong_UnsignedLong_Converter\"]=function(){return(__PyLong_UnsignedLong_Converter=Module[\"__PyLong_UnsignedLong_Converter\"]=Module[\"asm\"][\"_PyLong_UnsignedLong_Converter\"]).apply(null,arguments)};var __PyLong_UnsignedLongLong_Converter=Module[\"__PyLong_UnsignedLongLong_Converter\"]=function(){return(__PyLong_UnsignedLongLong_Converter=Module[\"__PyLong_UnsignedLongLong_Converter\"]=Module[\"asm\"][\"_PyLong_UnsignedLongLong_Converter\"]).apply(null,arguments)};var __PyLong_Size_t_Converter=Module[\"__PyLong_Size_t_Converter\"]=function(){return(__PyLong_Size_t_Converter=Module[\"__PyLong_Size_t_Converter\"]=Module[\"asm\"][\"_PyLong_Size_t_Converter\"]).apply(null,arguments)};var __PyUnicodeWriter_PrepareInternal=Module[\"__PyUnicodeWriter_PrepareInternal\"]=function(){return(__PyUnicodeWriter_PrepareInternal=Module[\"__PyUnicodeWriter_PrepareInternal\"]=Module[\"asm\"][\"_PyUnicodeWriter_PrepareInternal\"]).apply(null,arguments)};var __PyLong_FormatWriter=Module[\"__PyLong_FormatWriter\"]=function(){return(__PyLong_FormatWriter=Module[\"__PyLong_FormatWriter\"]=Module[\"asm\"][\"_PyLong_FormatWriter\"]).apply(null,arguments)};var _PyLong_FromUnicode=Module[\"_PyLong_FromUnicode\"]=function(){return(_PyLong_FromUnicode=Module[\"_PyLong_FromUnicode\"]=Module[\"asm\"][\"PyLong_FromUnicode\"]).apply(null,arguments)};var _PyUnicode_FromWideChar=Module[\"_PyUnicode_FromWideChar\"]=function(){return(_PyUnicode_FromWideChar=Module[\"_PyUnicode_FromWideChar\"]=Module[\"asm\"][\"PyUnicode_FromWideChar\"]).apply(null,arguments)};var __PyLong_Frexp=Module[\"__PyLong_Frexp\"]=function(){return(__PyLong_Frexp=Module[\"__PyLong_Frexp\"]=Module[\"asm\"][\"_PyLong_Frexp\"]).apply(null,arguments)};var __PyLong_Rshift=Module[\"__PyLong_Rshift\"]=function(){return(__PyLong_Rshift=Module[\"__PyLong_Rshift\"]=Module[\"asm\"][\"_PyLong_Rshift\"]).apply(null,arguments)};var __PyLong_GCD=Module[\"__PyLong_GCD\"]=function(){return(__PyLong_GCD=Module[\"__PyLong_GCD\"]=Module[\"asm\"][\"_PyLong_GCD\"]).apply(null,arguments)};var __PyLong_DivmodNear=Module[\"__PyLong_DivmodNear\"]=function(){return(__PyLong_DivmodNear=Module[\"__PyLong_DivmodNear\"]=Module[\"asm\"][\"_PyLong_DivmodNear\"]).apply(null,arguments)};var _PyLong_GetInfo=Module[\"_PyLong_GetInfo\"]=function(){return(_PyLong_GetInfo=Module[\"_PyLong_GetInfo\"]=Module[\"asm\"][\"PyLong_GetInfo\"]).apply(null,arguments)};var __PyLong_Init=Module[\"__PyLong_Init\"]=function(){return(__PyLong_Init=Module[\"__PyLong_Init\"]=Module[\"asm\"][\"_PyLong_Init\"]).apply(null,arguments)};var __PyLong_Fini=Module[\"__PyLong_Fini\"]=function(){return(__PyLong_Fini=Module[\"__PyLong_Fini\"]=Module[\"asm\"][\"_PyLong_Fini\"]).apply(null,arguments)};var __PyUnicode_EqualToASCIIId=Module[\"__PyUnicode_EqualToASCIIId\"]=function(){return(__PyUnicode_EqualToASCIIId=Module[\"__PyUnicode_EqualToASCIIId\"]=Module[\"asm\"][\"_PyUnicode_EqualToASCIIId\"]).apply(null,arguments)};var _PyObject_Bytes=Module[\"_PyObject_Bytes\"]=function(){return(_PyObject_Bytes=Module[\"_PyObject_Bytes\"]=Module[\"asm\"][\"PyObject_Bytes\"]).apply(null,arguments)};var __PyLong_FormatAdvancedWriter=Module[\"__PyLong_FormatAdvancedWriter\"]=function(){return(__PyLong_FormatAdvancedWriter=Module[\"__PyLong_FormatAdvancedWriter\"]=Module[\"asm\"][\"_PyLong_FormatAdvancedWriter\"]).apply(null,arguments)};var __PyDict_ClearFreeList=Module[\"__PyDict_ClearFreeList\"]=function(){return(__PyDict_ClearFreeList=Module[\"__PyDict_ClearFreeList\"]=Module[\"asm\"][\"_PyDict_ClearFreeList\"]).apply(null,arguments)};var __PyDict_DebugMallocStats=Module[\"__PyDict_DebugMallocStats\"]=function(){return(__PyDict_DebugMallocStats=Module[\"__PyDict_DebugMallocStats\"]=Module[\"asm\"][\"_PyDict_DebugMallocStats\"]).apply(null,arguments)};var __PyDict_Fini=Module[\"__PyDict_Fini\"]=function(){return(__PyDict_Fini=Module[\"__PyDict_Fini\"]=Module[\"asm\"][\"_PyDict_Fini\"]).apply(null,arguments)};var __PyDict_CheckConsistency=Module[\"__PyDict_CheckConsistency\"]=function(){return(__PyDict_CheckConsistency=Module[\"__PyDict_CheckConsistency\"]=Module[\"asm\"][\"_PyDict_CheckConsistency\"]).apply(null,arguments)};var __PyObject_AssertFailed=Module[\"__PyObject_AssertFailed\"]=function(){return(__PyObject_AssertFailed=Module[\"__PyObject_AssertFailed\"]=Module[\"asm\"][\"_PyObject_AssertFailed\"]).apply(null,arguments)};var __PyDict_HasOnlyStringKeys=Module[\"__PyDict_HasOnlyStringKeys\"]=function(){return(__PyDict_HasOnlyStringKeys=Module[\"__PyDict_HasOnlyStringKeys\"]=Module[\"asm\"][\"_PyDict_HasOnlyStringKeys\"]).apply(null,arguments)};var __PyDict_MaybeUntrack=Module[\"__PyDict_MaybeUntrack\"]=function(){return(__PyDict_MaybeUntrack=Module[\"__PyDict_MaybeUntrack\"]=Module[\"asm\"][\"_PyDict_MaybeUntrack\"]).apply(null,arguments)};var _PyObject_IS_GC=Module[\"_PyObject_IS_GC\"]=function(){return(_PyObject_IS_GC=Module[\"_PyObject_IS_GC\"]=Module[\"asm\"][\"PyObject_IS_GC\"]).apply(null,arguments)};var _PyDict_GetItem=Module[\"_PyDict_GetItem\"]=function(){return(_PyDict_GetItem=Module[\"_PyDict_GetItem\"]=Module[\"asm\"][\"PyDict_GetItem\"]).apply(null,arguments)};var __PyDict_GetItem_KnownHash=Module[\"__PyDict_GetItem_KnownHash\"]=function(){return(__PyDict_GetItem_KnownHash=Module[\"__PyDict_GetItem_KnownHash\"]=Module[\"asm\"][\"_PyDict_GetItem_KnownHash\"]).apply(null,arguments)};var __PyDict_GetItemStringWithError=Module[\"__PyDict_GetItemStringWithError\"]=function(){return(__PyDict_GetItemStringWithError=Module[\"__PyDict_GetItemStringWithError\"]=Module[\"asm\"][\"_PyDict_GetItemStringWithError\"]).apply(null,arguments)};var __PyDict_LoadGlobal=Module[\"__PyDict_LoadGlobal\"]=function(){return(__PyDict_LoadGlobal=Module[\"__PyDict_LoadGlobal\"]=Module[\"asm\"][\"_PyDict_LoadGlobal\"]).apply(null,arguments)};var __PyDict_SetItem_KnownHash=Module[\"__PyDict_SetItem_KnownHash\"]=function(){return(__PyDict_SetItem_KnownHash=Module[\"__PyDict_SetItem_KnownHash\"]=Module[\"asm\"][\"_PyDict_SetItem_KnownHash\"]).apply(null,arguments)};var _PyDict_DelItem=Module[\"_PyDict_DelItem\"]=function(){return(_PyDict_DelItem=Module[\"_PyDict_DelItem\"]=Module[\"asm\"][\"PyDict_DelItem\"]).apply(null,arguments)};var __PyDict_DelItem_KnownHash=Module[\"__PyDict_DelItem_KnownHash\"]=function(){return(__PyDict_DelItem_KnownHash=Module[\"__PyDict_DelItem_KnownHash\"]=Module[\"asm\"][\"_PyDict_DelItem_KnownHash\"]).apply(null,arguments)};var __PyErr_SetKeyError=Module[\"__PyErr_SetKeyError\"]=function(){return(__PyErr_SetKeyError=Module[\"__PyErr_SetKeyError\"]=Module[\"asm\"][\"_PyErr_SetKeyError\"]).apply(null,arguments)};var __PyDict_DelItemIf=Module[\"__PyDict_DelItemIf\"]=function(){return(__PyDict_DelItemIf=Module[\"__PyDict_DelItemIf\"]=Module[\"asm\"][\"_PyDict_DelItemIf\"]).apply(null,arguments)};var _PyDict_Clear=Module[\"_PyDict_Clear\"]=function(){return(_PyDict_Clear=Module[\"_PyDict_Clear\"]=Module[\"asm\"][\"PyDict_Clear\"]).apply(null,arguments)};var __PyDict_Next=Module[\"__PyDict_Next\"]=function(){return(__PyDict_Next=Module[\"__PyDict_Next\"]=Module[\"asm\"][\"_PyDict_Next\"]).apply(null,arguments)};var __PyDict_Pop_KnownHash=Module[\"__PyDict_Pop_KnownHash\"]=function(){return(__PyDict_Pop_KnownHash=Module[\"__PyDict_Pop_KnownHash\"]=Module[\"asm\"][\"_PyDict_Pop_KnownHash\"]).apply(null,arguments)};var __PyDict_Pop=Module[\"__PyDict_Pop\"]=function(){return(__PyDict_Pop=Module[\"__PyDict_Pop\"]=Module[\"asm\"][\"_PyDict_Pop\"]).apply(null,arguments)};var __PyDict_FromKeys=Module[\"__PyDict_FromKeys\"]=function(){return(__PyDict_FromKeys=Module[\"__PyDict_FromKeys\"]=Module[\"asm\"][\"_PyDict_FromKeys\"]).apply(null,arguments)};var _PyDict_MergeFromSeq2=Module[\"_PyDict_MergeFromSeq2\"]=function(){return(_PyDict_MergeFromSeq2=Module[\"_PyDict_MergeFromSeq2\"]=Module[\"asm\"][\"PyDict_MergeFromSeq2\"]).apply(null,arguments)};var _PyDict_Update=Module[\"_PyDict_Update\"]=function(){return(_PyDict_Update=Module[\"_PyDict_Update\"]=Module[\"asm\"][\"PyDict_Update\"]).apply(null,arguments)};var _PyDict_Merge=Module[\"_PyDict_Merge\"]=function(){return(_PyDict_Merge=Module[\"_PyDict_Merge\"]=Module[\"asm\"][\"PyDict_Merge\"]).apply(null,arguments)};var __PyDict_MergeEx=Module[\"__PyDict_MergeEx\"]=function(){return(__PyDict_MergeEx=Module[\"__PyDict_MergeEx\"]=Module[\"asm\"][\"_PyDict_MergeEx\"]).apply(null,arguments)};var _PyDict_Size=Module[\"_PyDict_Size\"]=function(){return(_PyDict_Size=Module[\"_PyDict_Size\"]=Module[\"asm\"][\"PyDict_Size\"]).apply(null,arguments)};var _PyDict_SetDefault=Module[\"_PyDict_SetDefault\"]=function(){return(_PyDict_SetDefault=Module[\"_PyDict_SetDefault\"]=Module[\"asm\"][\"PyDict_SetDefault\"]).apply(null,arguments)};var __PyDict_SizeOf=Module[\"__PyDict_SizeOf\"]=function(){return(__PyDict_SizeOf=Module[\"__PyDict_SizeOf\"]=Module[\"asm\"][\"_PyDict_SizeOf\"]).apply(null,arguments)};var __PyDict_KeysSize=Module[\"__PyDict_KeysSize\"]=function(){return(__PyDict_KeysSize=Module[\"__PyDict_KeysSize\"]=Module[\"asm\"][\"_PyDict_KeysSize\"]).apply(null,arguments)};var __PyDict_Contains=Module[\"__PyDict_Contains\"]=function(){return(__PyDict_Contains=Module[\"__PyDict_Contains\"]=Module[\"asm\"][\"_PyDict_Contains\"]).apply(null,arguments)};var _PyArg_ValidateKeywordArguments=Module[\"_PyArg_ValidateKeywordArguments\"]=function(){return(_PyArg_ValidateKeywordArguments=Module[\"_PyArg_ValidateKeywordArguments\"]=Module[\"asm\"][\"PyArg_ValidateKeywordArguments\"]).apply(null,arguments)};var __PyDict_GetItemId=Module[\"__PyDict_GetItemId\"]=function(){return(__PyDict_GetItemId=Module[\"__PyDict_GetItemId\"]=Module[\"asm\"][\"_PyDict_GetItemId\"]).apply(null,arguments)};var _PyDict_GetItemString=Module[\"_PyDict_GetItemString\"]=function(){return(_PyDict_GetItemString=Module[\"_PyDict_GetItemString\"]=Module[\"asm\"][\"PyDict_GetItemString\"]).apply(null,arguments)};var __PyDict_DelItemId=Module[\"__PyDict_DelItemId\"]=function(){return(__PyDict_DelItemId=Module[\"__PyDict_DelItemId\"]=Module[\"asm\"][\"_PyDict_DelItemId\"]).apply(null,arguments)};var _PyDict_DelItemString=Module[\"_PyDict_DelItemString\"]=function(){return(_PyDict_DelItemString=Module[\"_PyDict_DelItemString\"]=Module[\"asm\"][\"PyDict_DelItemString\"]).apply(null,arguments)};var __PyDictView_New=Module[\"__PyDictView_New\"]=function(){return(__PyDictView_New=Module[\"__PyDictView_New\"]=Module[\"asm\"][\"_PyDictView_New\"]).apply(null,arguments)};var __PyDictView_Intersect=Module[\"__PyDictView_Intersect\"]=function(){return(__PyDictView_Intersect=Module[\"__PyDictView_Intersect\"]=Module[\"asm\"][\"_PyDictView_Intersect\"]).apply(null,arguments)};var _PySet_Add=Module[\"_PySet_Add\"]=function(){return(_PySet_Add=Module[\"_PySet_Add\"]=Module[\"asm\"][\"PySet_Add\"]).apply(null,arguments)};var __PyDict_NewKeysForClass=Module[\"__PyDict_NewKeysForClass\"]=function(){return(__PyDict_NewKeysForClass=Module[\"__PyDict_NewKeysForClass\"]=Module[\"asm\"][\"_PyDict_NewKeysForClass\"]).apply(null,arguments)};var __PyObjectDict_SetItem=Module[\"__PyObjectDict_SetItem\"]=function(){return(__PyObjectDict_SetItem=Module[\"__PyObjectDict_SetItem\"]=Module[\"asm\"][\"_PyObjectDict_SetItem\"]).apply(null,arguments)};var __PyDictKeys_DecRef=Module[\"__PyDictKeys_DecRef\"]=function(){return(__PyDictKeys_DecRef=Module[\"__PyDictKeys_DecRef\"]=Module[\"asm\"][\"_PyDictKeys_DecRef\"]).apply(null,arguments)};var _PyODict_New=Module[\"_PyODict_New\"]=function(){return(_PyODict_New=Module[\"_PyODict_New\"]=Module[\"asm\"][\"PyODict_New\"]).apply(null,arguments)};var _PyODict_SetItem=Module[\"_PyODict_SetItem\"]=function(){return(_PyODict_SetItem=Module[\"_PyODict_SetItem\"]=Module[\"asm\"][\"PyODict_SetItem\"]).apply(null,arguments)};var __PyErr_ChainExceptions=Module[\"__PyErr_ChainExceptions\"]=function(){return(__PyErr_ChainExceptions=Module[\"__PyErr_ChainExceptions\"]=Module[\"asm\"][\"_PyErr_ChainExceptions\"]).apply(null,arguments)};var _PyODict_DelItem=Module[\"_PyODict_DelItem\"]=function(){return(_PyODict_DelItem=Module[\"_PyODict_DelItem\"]=Module[\"asm\"][\"PyODict_DelItem\"]).apply(null,arguments)};var _PyMemoryView_FromMemory=Module[\"_PyMemoryView_FromMemory\"]=function(){return(_PyMemoryView_FromMemory=Module[\"_PyMemoryView_FromMemory\"]=Module[\"asm\"][\"PyMemoryView_FromMemory\"]).apply(null,arguments)};var _PyMemoryView_FromBuffer=Module[\"_PyMemoryView_FromBuffer\"]=function(){return(_PyMemoryView_FromBuffer=Module[\"_PyMemoryView_FromBuffer\"]=Module[\"asm\"][\"PyMemoryView_FromBuffer\"]).apply(null,arguments)};var _PyMemoryView_GetContiguous=Module[\"_PyMemoryView_GetContiguous\"]=function(){return(_PyMemoryView_GetContiguous=Module[\"_PyMemoryView_GetContiguous\"]=Module[\"asm\"][\"PyMemoryView_GetContiguous\"]).apply(null,arguments)};var _PyUnicode_AsASCIIString=Module[\"_PyUnicode_AsASCIIString\"]=function(){return(_PyUnicode_AsASCIIString=Module[\"_PyUnicode_AsASCIIString\"]=Module[\"asm\"][\"PyUnicode_AsASCIIString\"]).apply(null,arguments)};var _PyCFunction_New=Module[\"_PyCFunction_New\"]=function(){return(_PyCFunction_New=Module[\"_PyCFunction_New\"]=Module[\"asm\"][\"PyCFunction_New\"]).apply(null,arguments)};var _PyCFunction_NewEx=Module[\"_PyCFunction_NewEx\"]=function(){return(_PyCFunction_NewEx=Module[\"_PyCFunction_NewEx\"]=Module[\"asm\"][\"PyCFunction_NewEx\"]).apply(null,arguments)};var _PyCFunction_GetFunction=Module[\"_PyCFunction_GetFunction\"]=function(){return(_PyCFunction_GetFunction=Module[\"_PyCFunction_GetFunction\"]=Module[\"asm\"][\"PyCFunction_GetFunction\"]).apply(null,arguments)};var _PyCFunction_GetSelf=Module[\"_PyCFunction_GetSelf\"]=function(){return(_PyCFunction_GetSelf=Module[\"_PyCFunction_GetSelf\"]=Module[\"asm\"][\"PyCFunction_GetSelf\"]).apply(null,arguments)};var _PyCFunction_GetFlags=Module[\"_PyCFunction_GetFlags\"]=function(){return(_PyCFunction_GetFlags=Module[\"_PyCFunction_GetFlags\"]=Module[\"asm\"][\"PyCFunction_GetFlags\"]).apply(null,arguments)};var _PyCMethod_GetClass=Module[\"_PyCMethod_GetClass\"]=function(){return(_PyCMethod_GetClass=Module[\"_PyCMethod_GetClass\"]=Module[\"asm\"][\"PyCMethod_GetClass\"]).apply(null,arguments)};var _PyModuleDef_Init=Module[\"_PyModuleDef_Init\"]=function(){return(_PyModuleDef_Init=Module[\"_PyModuleDef_Init\"]=Module[\"asm\"][\"PyModuleDef_Init\"]).apply(null,arguments)};var _PyModule_NewObject=Module[\"_PyModule_NewObject\"]=function(){return(_PyModule_NewObject=Module[\"_PyModule_NewObject\"]=Module[\"asm\"][\"PyModule_NewObject\"]).apply(null,arguments)};var _PyModule_New=Module[\"_PyModule_New\"]=function(){return(_PyModule_New=Module[\"_PyModule_New\"]=Module[\"asm\"][\"PyModule_New\"]).apply(null,arguments)};var __PyImport_IsInitialized=Module[\"__PyImport_IsInitialized\"]=function(){return(__PyImport_IsInitialized=Module[\"__PyImport_IsInitialized\"]=Module[\"asm\"][\"_PyImport_IsInitialized\"]).apply(null,arguments)};var __PyModule_CreateInitialized=Module[\"__PyModule_CreateInitialized\"]=function(){return(__PyModule_CreateInitialized=Module[\"__PyModule_CreateInitialized\"]=Module[\"asm\"][\"_PyModule_CreateInitialized\"]).apply(null,arguments)};var _strrchr=Module[\"_strrchr\"]=function(){return(_strrchr=Module[\"_strrchr\"]=Module[\"asm\"][\"strrchr\"]).apply(null,arguments)};var _PyModule_SetDocString=Module[\"_PyModule_SetDocString\"]=function(){return(_PyModule_SetDocString=Module[\"_PyModule_SetDocString\"]=Module[\"asm\"][\"PyModule_SetDocString\"]).apply(null,arguments)};var _PyModule_FromDefAndSpec2=Module[\"_PyModule_FromDefAndSpec2\"]=function(){return(_PyModule_FromDefAndSpec2=Module[\"_PyModule_FromDefAndSpec2\"]=Module[\"asm\"][\"PyModule_FromDefAndSpec2\"]).apply(null,arguments)};var _PyModule_ExecDef=Module[\"_PyModule_ExecDef\"]=function(){return(_PyModule_ExecDef=Module[\"_PyModule_ExecDef\"]=Module[\"asm\"][\"PyModule_ExecDef\"]).apply(null,arguments)};var _PyModule_GetName=Module[\"_PyModule_GetName\"]=function(){return(_PyModule_GetName=Module[\"_PyModule_GetName\"]=Module[\"asm\"][\"PyModule_GetName\"]).apply(null,arguments)};var _PyModule_GetNameObject=Module[\"_PyModule_GetNameObject\"]=function(){return(_PyModule_GetNameObject=Module[\"_PyModule_GetNameObject\"]=Module[\"asm\"][\"PyModule_GetNameObject\"]).apply(null,arguments)};var _PyModule_GetFilenameObject=Module[\"_PyModule_GetFilenameObject\"]=function(){return(_PyModule_GetFilenameObject=Module[\"_PyModule_GetFilenameObject\"]=Module[\"asm\"][\"PyModule_GetFilenameObject\"]).apply(null,arguments)};var _PyModule_GetFilename=Module[\"_PyModule_GetFilename\"]=function(){return(_PyModule_GetFilename=Module[\"_PyModule_GetFilename\"]=Module[\"asm\"][\"PyModule_GetFilename\"]).apply(null,arguments)};var _PyModule_GetDef=Module[\"_PyModule_GetDef\"]=function(){return(_PyModule_GetDef=Module[\"_PyModule_GetDef\"]=Module[\"asm\"][\"PyModule_GetDef\"]).apply(null,arguments)};var _PyModule_GetState=Module[\"_PyModule_GetState\"]=function(){return(_PyModule_GetState=Module[\"_PyModule_GetState\"]=Module[\"asm\"][\"PyModule_GetState\"]).apply(null,arguments)};var __PyModule_Clear=Module[\"__PyModule_Clear\"]=function(){return(__PyModule_Clear=Module[\"__PyModule_Clear\"]=Module[\"asm\"][\"_PyModule_Clear\"]).apply(null,arguments)};var __PyModule_ClearDict=Module[\"__PyModule_ClearDict\"]=function(){return(__PyModule_ClearDict=Module[\"__PyModule_ClearDict\"]=Module[\"asm\"][\"_PyModule_ClearDict\"]).apply(null,arguments)};var __PyModuleSpec_IsInitializing=Module[\"__PyModuleSpec_IsInitializing\"]=function(){return(__PyModuleSpec_IsInitializing=Module[\"__PyModuleSpec_IsInitializing\"]=Module[\"asm\"][\"_PyModuleSpec_IsInitializing\"]).apply(null,arguments)};var _PySys_FormatStderr=Module[\"_PySys_FormatStderr\"]=function(){return(_PySys_FormatStderr=Module[\"_PySys_FormatStderr\"]=Module[\"asm\"][\"PySys_FormatStderr\"]).apply(null,arguments)};var __PyNamespace_New=Module[\"__PyNamespace_New\"]=function(){return(__PyNamespace_New=Module[\"__PyNamespace_New\"]=Module[\"asm\"][\"_PyNamespace_New\"]).apply(null,arguments)};var __PyObject_CheckConsistency=Module[\"__PyObject_CheckConsistency\"]=function(){return(__PyObject_CheckConsistency=Module[\"__PyObject_CheckConsistency\"]=Module[\"asm\"][\"_PyObject_CheckConsistency\"]).apply(null,arguments)};var __PyType_CheckConsistency=Module[\"__PyType_CheckConsistency\"]=function(){return(__PyType_CheckConsistency=Module[\"__PyType_CheckConsistency\"]=Module[\"asm\"][\"_PyType_CheckConsistency\"]).apply(null,arguments)};var __PyUnicode_CheckConsistency=Module[\"__PyUnicode_CheckConsistency\"]=function(){return(__PyUnicode_CheckConsistency=Module[\"__PyUnicode_CheckConsistency\"]=Module[\"asm\"][\"_PyUnicode_CheckConsistency\"]).apply(null,arguments)};var __PyObject_IsFreed=Module[\"__PyObject_IsFreed\"]=function(){return(__PyObject_IsFreed=Module[\"__PyObject_IsFreed\"]=Module[\"asm\"][\"_PyObject_IsFreed\"]).apply(null,arguments)};var __PyMem_DumpTraceback=Module[\"__PyMem_DumpTraceback\"]=function(){return(__PyMem_DumpTraceback=Module[\"__PyMem_DumpTraceback\"]=Module[\"asm\"][\"_PyMem_DumpTraceback\"]).apply(null,arguments)};var __PyObject_Dump=Module[\"__PyObject_Dump\"]=function(){return(__PyObject_Dump=Module[\"__PyObject_Dump\"]=Module[\"asm\"][\"_PyObject_Dump\"]).apply(null,arguments)};var _Py_IncRef=Module[\"_Py_IncRef\"]=function(){return(_Py_IncRef=Module[\"_Py_IncRef\"]=Module[\"asm\"][\"Py_IncRef\"]).apply(null,arguments)};var _Py_DecRef=Module[\"_Py_DecRef\"]=function(){return(_Py_DecRef=Module[\"_Py_DecRef\"]=Module[\"asm\"][\"Py_DecRef\"]).apply(null,arguments)};var _PyObject_Init=Module[\"_PyObject_Init\"]=function(){return(_PyObject_Init=Module[\"_PyObject_Init\"]=Module[\"asm\"][\"PyObject_Init\"]).apply(null,arguments)};var __PyTraceMalloc_NewReference=Module[\"__PyTraceMalloc_NewReference\"]=function(){return(__PyTraceMalloc_NewReference=Module[\"__PyTraceMalloc_NewReference\"]=Module[\"asm\"][\"_PyTraceMalloc_NewReference\"]).apply(null,arguments)};var _PyObject_InitVar=Module[\"_PyObject_InitVar\"]=function(){return(_PyObject_InitVar=Module[\"_PyObject_InitVar\"]=Module[\"asm\"][\"PyObject_InitVar\"]).apply(null,arguments)};var __PyObject_NewVar=Module[\"__PyObject_NewVar\"]=function(){return(__PyObject_NewVar=Module[\"__PyObject_NewVar\"]=Module[\"asm\"][\"_PyObject_NewVar\"]).apply(null,arguments)};var _PyObject_CallFinalizer=Module[\"_PyObject_CallFinalizer\"]=function(){return(_PyObject_CallFinalizer=Module[\"_PyObject_CallFinalizer\"]=Module[\"asm\"][\"PyObject_CallFinalizer\"]).apply(null,arguments)};var _PyObject_Print=Module[\"_PyObject_Print\"]=function(){return(_PyObject_Print=Module[\"_PyObject_Print\"]=Module[\"asm\"][\"PyObject_Print\"]).apply(null,arguments)};var _ferror=Module[\"_ferror\"]=function(){return(_ferror=Module[\"_ferror\"]=Module[\"asm\"][\"ferror\"]).apply(null,arguments)};var __Py_BreakPoint=Module[\"__Py_BreakPoint\"]=function(){return(__Py_BreakPoint=Module[\"__Py_BreakPoint\"]=Module[\"asm\"][\"_Py_BreakPoint\"]).apply(null,arguments)};var _PyGILState_Ensure=Module[\"_PyGILState_Ensure\"]=function(){return(_PyGILState_Ensure=Module[\"_PyGILState_Ensure\"]=Module[\"asm\"][\"PyGILState_Ensure\"]).apply(null,arguments)};var _PyGILState_Release=Module[\"_PyGILState_Release\"]=function(){return(_PyGILState_Release=Module[\"_PyGILState_Release\"]=Module[\"asm\"][\"PyGILState_Release\"]).apply(null,arguments)};var __PyUnicode_AsASCIIString=Module[\"__PyUnicode_AsASCIIString\"]=function(){return(__PyUnicode_AsASCIIString=Module[\"__PyUnicode_AsASCIIString\"]=Module[\"asm\"][\"_PyUnicode_AsASCIIString\"]).apply(null,arguments)};var _PyUnicode_DecodeASCII=Module[\"_PyUnicode_DecodeASCII\"]=function(){return(_PyUnicode_DecodeASCII=Module[\"_PyUnicode_DecodeASCII\"]=Module[\"asm\"][\"PyUnicode_DecodeASCII\"]).apply(null,arguments)};var __PyObject_LookupAttr=Module[\"__PyObject_LookupAttr\"]=function(){return(__PyObject_LookupAttr=Module[\"__PyObject_LookupAttr\"]=Module[\"asm\"][\"_PyObject_LookupAttr\"]).apply(null,arguments)};var _PyObject_HasAttrString=Module[\"_PyObject_HasAttrString\"]=function(){return(_PyObject_HasAttrString=Module[\"_PyObject_HasAttrString\"]=Module[\"asm\"][\"PyObject_HasAttrString\"]).apply(null,arguments)};var __PyObject_GenericGetAttrWithDict=Module[\"__PyObject_GenericGetAttrWithDict\"]=function(){return(__PyObject_GenericGetAttrWithDict=Module[\"__PyObject_GenericGetAttrWithDict\"]=Module[\"asm\"][\"_PyObject_GenericGetAttrWithDict\"]).apply(null,arguments)};var __PyObject_GenericSetAttrWithDict=Module[\"__PyObject_GenericSetAttrWithDict\"]=function(){return(__PyObject_GenericSetAttrWithDict=Module[\"__PyObject_GenericSetAttrWithDict\"]=Module[\"asm\"][\"_PyObject_GenericSetAttrWithDict\"]).apply(null,arguments)};var _PyObject_Not=Module[\"_PyObject_Not\"]=function(){return(_PyObject_Not=Module[\"_PyObject_Not\"]=Module[\"asm\"][\"PyObject_Not\"]).apply(null,arguments)};var _PyEval_GetLocals=Module[\"_PyEval_GetLocals\"]=function(){return(_PyEval_GetLocals=Module[\"_PyEval_GetLocals\"]=Module[\"asm\"][\"PyEval_GetLocals\"]).apply(null,arguments)};var __PyTypes_Init=Module[\"__PyTypes_Init\"]=function(){return(__PyTypes_Init=Module[\"__PyTypes_Init\"]=Module[\"asm\"][\"_PyTypes_Init\"]).apply(null,arguments)};var __PyTypes_InitSlotDefs=Module[\"__PyTypes_InitSlotDefs\"]=function(){return(__PyTypes_InitSlotDefs=Module[\"__PyTypes_InitSlotDefs\"]=Module[\"asm\"][\"_PyTypes_InitSlotDefs\"]).apply(null,arguments)};var __PyObject_DebugTypeStats=Module[\"__PyObject_DebugTypeStats\"]=function(){return(__PyObject_DebugTypeStats=Module[\"__PyObject_DebugTypeStats\"]=Module[\"asm\"][\"_PyObject_DebugTypeStats\"]).apply(null,arguments)};var __PyTuple_DebugMallocStats=Module[\"__PyTuple_DebugMallocStats\"]=function(){return(__PyTuple_DebugMallocStats=Module[\"__PyTuple_DebugMallocStats\"]=Module[\"asm\"][\"_PyTuple_DebugMallocStats\"]).apply(null,arguments)};var _PyThreadState_GetDict=Module[\"_PyThreadState_GetDict\"]=function(){return(_PyThreadState_GetDict=Module[\"_PyThreadState_GetDict\"]=Module[\"asm\"][\"PyThreadState_GetDict\"]).apply(null,arguments)};var __PyTrash_deposit_object=Module[\"__PyTrash_deposit_object\"]=function(){return(__PyTrash_deposit_object=Module[\"__PyTrash_deposit_object\"]=Module[\"asm\"][\"_PyTrash_deposit_object\"]).apply(null,arguments)};var __PyTrash_thread_deposit_object=Module[\"__PyTrash_thread_deposit_object\"]=function(){return(__PyTrash_thread_deposit_object=Module[\"__PyTrash_thread_deposit_object\"]=Module[\"asm\"][\"_PyTrash_thread_deposit_object\"]).apply(null,arguments)};var __PyTrash_destroy_chain=Module[\"__PyTrash_destroy_chain\"]=function(){return(__PyTrash_destroy_chain=Module[\"__PyTrash_destroy_chain\"]=Module[\"asm\"][\"_PyTrash_destroy_chain\"]).apply(null,arguments)};var __PyTrash_thread_destroy_chain=Module[\"__PyTrash_thread_destroy_chain\"]=function(){return(__PyTrash_thread_destroy_chain=Module[\"__PyTrash_thread_destroy_chain\"]=Module[\"asm\"][\"_PyTrash_thread_destroy_chain\"]).apply(null,arguments)};var _PyObject_GET_WEAKREFS_LISTPTR=Module[\"_PyObject_GET_WEAKREFS_LISTPTR\"]=function(){return(_PyObject_GET_WEAKREFS_LISTPTR=Module[\"_PyObject_GET_WEAKREFS_LISTPTR\"]=Module[\"asm\"][\"PyObject_GET_WEAKREFS_LISTPTR\"]).apply(null,arguments)};var __PyMem_SetDefaultAllocator=Module[\"__PyMem_SetDefaultAllocator\"]=function(){return(__PyMem_SetDefaultAllocator=Module[\"__PyMem_SetDefaultAllocator\"]=Module[\"asm\"][\"_PyMem_SetDefaultAllocator\"]).apply(null,arguments)};var __PyMem_GetAllocatorName=Module[\"__PyMem_GetAllocatorName\"]=function(){return(__PyMem_GetAllocatorName=Module[\"__PyMem_GetAllocatorName\"]=Module[\"asm\"][\"_PyMem_GetAllocatorName\"]).apply(null,arguments)};var __PyMem_SetupAllocators=Module[\"__PyMem_SetupAllocators\"]=function(){return(__PyMem_SetupAllocators=Module[\"__PyMem_SetupAllocators\"]=Module[\"asm\"][\"_PyMem_SetupAllocators\"]).apply(null,arguments)};var _calloc=Module[\"_calloc\"]=function(){return(_calloc=Module[\"_calloc\"]=Module[\"asm\"][\"calloc\"]).apply(null,arguments)};var _PyMem_SetAllocator=Module[\"_PyMem_SetAllocator\"]=function(){return(_PyMem_SetAllocator=Module[\"_PyMem_SetAllocator\"]=Module[\"asm\"][\"PyMem_SetAllocator\"]).apply(null,arguments)};var _PyMem_SetupDebugHooks=Module[\"_PyMem_SetupDebugHooks\"]=function(){return(_PyMem_SetupDebugHooks=Module[\"_PyMem_SetupDebugHooks\"]=Module[\"asm\"][\"PyMem_SetupDebugHooks\"]).apply(null,arguments)};var __PyMem_GetCurrentAllocatorName=Module[\"__PyMem_GetCurrentAllocatorName\"]=function(){return(__PyMem_GetCurrentAllocatorName=Module[\"__PyMem_GetCurrentAllocatorName\"]=Module[\"asm\"][\"_PyMem_GetCurrentAllocatorName\"]).apply(null,arguments)};var _PyGILState_Check=Module[\"_PyGILState_Check\"]=function(){return(_PyGILState_Check=Module[\"_PyGILState_Check\"]=Module[\"asm\"][\"PyGILState_Check\"]).apply(null,arguments)};var _PyMem_GetAllocator=Module[\"_PyMem_GetAllocator\"]=function(){return(_PyMem_GetAllocator=Module[\"_PyMem_GetAllocator\"]=Module[\"asm\"][\"PyMem_GetAllocator\"]).apply(null,arguments)};var _PyObject_GetArenaAllocator=Module[\"_PyObject_GetArenaAllocator\"]=function(){return(_PyObject_GetArenaAllocator=Module[\"_PyObject_GetArenaAllocator\"]=Module[\"asm\"][\"PyObject_GetArenaAllocator\"]).apply(null,arguments)};var _PyObject_SetArenaAllocator=Module[\"_PyObject_SetArenaAllocator\"]=function(){return(_PyObject_SetArenaAllocator=Module[\"_PyObject_SetArenaAllocator\"]=Module[\"asm\"][\"PyObject_SetArenaAllocator\"]).apply(null,arguments)};var _PyMem_RawCalloc=Module[\"_PyMem_RawCalloc\"]=function(){return(_PyMem_RawCalloc=Module[\"_PyMem_RawCalloc\"]=Module[\"asm\"][\"PyMem_RawCalloc\"]).apply(null,arguments)};var __PyMem_RawWcsdup=Module[\"__PyMem_RawWcsdup\"]=function(){return(__PyMem_RawWcsdup=Module[\"__PyMem_RawWcsdup\"]=Module[\"asm\"][\"_PyMem_RawWcsdup\"]).apply(null,arguments)};var _wcslen=Module[\"_wcslen\"]=function(){return(_wcslen=Module[\"_wcslen\"]=Module[\"asm\"][\"wcslen\"]).apply(null,arguments)};var __PyMem_RawStrdup=Module[\"__PyMem_RawStrdup\"]=function(){return(__PyMem_RawStrdup=Module[\"__PyMem_RawStrdup\"]=Module[\"asm\"][\"_PyMem_RawStrdup\"]).apply(null,arguments)};var __PyMem_Strdup=Module[\"__PyMem_Strdup\"]=function(){return(__PyMem_Strdup=Module[\"__PyMem_Strdup\"]=Module[\"asm\"][\"_PyMem_Strdup\"]).apply(null,arguments)};var __Py_GetAllocatedBlocks=Module[\"__Py_GetAllocatedBlocks\"]=function(){return(__Py_GetAllocatedBlocks=Module[\"__Py_GetAllocatedBlocks\"]=Module[\"asm\"][\"_Py_GetAllocatedBlocks\"]).apply(null,arguments)};var __Py_FatalErrorFormat=Module[\"__Py_FatalErrorFormat\"]=function(){return(__Py_FatalErrorFormat=Module[\"__Py_FatalErrorFormat\"]=Module[\"asm\"][\"_Py_FatalErrorFormat\"]).apply(null,arguments)};var _PyPickleBuffer_FromObject=Module[\"_PyPickleBuffer_FromObject\"]=function(){return(_PyPickleBuffer_FromObject=Module[\"_PyPickleBuffer_FromObject\"]=Module[\"asm\"][\"PyPickleBuffer_FromObject\"]).apply(null,arguments)};var _PyPickleBuffer_GetBuffer=Module[\"_PyPickleBuffer_GetBuffer\"]=function(){return(_PyPickleBuffer_GetBuffer=Module[\"_PyPickleBuffer_GetBuffer\"]=Module[\"asm\"][\"PyPickleBuffer_GetBuffer\"]).apply(null,arguments)};var _PyPickleBuffer_Release=Module[\"_PyPickleBuffer_Release\"]=function(){return(_PyPickleBuffer_Release=Module[\"_PyPickleBuffer_Release\"]=Module[\"asm\"][\"PyPickleBuffer_Release\"]).apply(null,arguments)};var __PySlice_GetLongIndices=Module[\"__PySlice_GetLongIndices\"]=function(){return(__PySlice_GetLongIndices=Module[\"__PySlice_GetLongIndices\"]=Module[\"asm\"][\"_PySlice_GetLongIndices\"]).apply(null,arguments)};var _PySet_Size=Module[\"_PySet_Size\"]=function(){return(_PySet_Size=Module[\"_PySet_Size\"]=Module[\"asm\"][\"PySet_Size\"]).apply(null,arguments)};var _PySet_Clear=Module[\"_PySet_Clear\"]=function(){return(_PySet_Clear=Module[\"_PySet_Clear\"]=Module[\"asm\"][\"PySet_Clear\"]).apply(null,arguments)};var _PySet_Contains=Module[\"_PySet_Contains\"]=function(){return(_PySet_Contains=Module[\"_PySet_Contains\"]=Module[\"asm\"][\"PySet_Contains\"]).apply(null,arguments)};var __PySet_Fini=Module[\"__PySet_Fini\"]=function(){return(__PySet_Fini=Module[\"__PySet_Fini\"]=Module[\"asm\"][\"_PySet_Fini\"]).apply(null,arguments)};var _PySet_Pop=Module[\"_PySet_Pop\"]=function(){return(_PySet_Pop=Module[\"_PySet_Pop\"]=Module[\"asm\"][\"PySet_Pop\"]).apply(null,arguments)};var __PyUnicode_EQ=Module[\"__PyUnicode_EQ\"]=function(){return(__PyUnicode_EQ=Module[\"__PyUnicode_EQ\"]=Module[\"asm\"][\"_PyUnicode_EQ\"]).apply(null,arguments)};var __PySlice_Fini=Module[\"__PySlice_Fini\"]=function(){return(__PySlice_Fini=Module[\"__PySlice_Fini\"]=Module[\"asm\"][\"_PySlice_Fini\"]).apply(null,arguments)};var _PySlice_New=Module[\"_PySlice_New\"]=function(){return(_PySlice_New=Module[\"_PySlice_New\"]=Module[\"asm\"][\"PySlice_New\"]).apply(null,arguments)};var _PySlice_GetIndices=Module[\"_PySlice_GetIndices\"]=function(){return(_PySlice_GetIndices=Module[\"_PySlice_GetIndices\"]=Module[\"asm\"][\"PySlice_GetIndices\"]).apply(null,arguments)};var _PySlice_GetIndicesEx=Module[\"_PySlice_GetIndicesEx\"]=function(){return(_PySlice_GetIndicesEx=Module[\"_PySlice_GetIndicesEx\"]=Module[\"asm\"][\"PySlice_GetIndicesEx\"]).apply(null,arguments)};var _PyStructSequence_SetItem=Module[\"_PyStructSequence_SetItem\"]=function(){return(_PyStructSequence_SetItem=Module[\"_PyStructSequence_SetItem\"]=Module[\"asm\"][\"PyStructSequence_SetItem\"]).apply(null,arguments)};var _PyStructSequence_GetItem=Module[\"_PyStructSequence_GetItem\"]=function(){return(_PyStructSequence_GetItem=Module[\"_PyStructSequence_GetItem\"]=Module[\"asm\"][\"PyStructSequence_GetItem\"]).apply(null,arguments)};var _PyStructSequence_InitType=Module[\"_PyStructSequence_InitType\"]=function(){return(_PyStructSequence_InitType=Module[\"_PyStructSequence_InitType\"]=Module[\"asm\"][\"PyStructSequence_InitType\"]).apply(null,arguments)};var _PyStructSequence_NewType=Module[\"_PyStructSequence_NewType\"]=function(){return(_PyStructSequence_NewType=Module[\"_PyStructSequence_NewType\"]=Module[\"asm\"][\"PyStructSequence_NewType\"]).apply(null,arguments)};var __PyStructSequence_Init=Module[\"__PyStructSequence_Init\"]=function(){return(__PyStructSequence_Init=Module[\"__PyStructSequence_Init\"]=Module[\"asm\"][\"_PyStructSequence_Init\"]).apply(null,arguments)};var _PyTuple_SetItem=Module[\"_PyTuple_SetItem\"]=function(){return(_PyTuple_SetItem=Module[\"_PyTuple_SetItem\"]=Module[\"asm\"][\"PyTuple_SetItem\"]).apply(null,arguments)};var __PyTuple_MaybeUntrack=Module[\"__PyTuple_MaybeUntrack\"]=function(){return(__PyTuple_MaybeUntrack=Module[\"__PyTuple_MaybeUntrack\"]=Module[\"asm\"][\"_PyTuple_MaybeUntrack\"]).apply(null,arguments)};var __PyTuple_ClearFreeList=Module[\"__PyTuple_ClearFreeList\"]=function(){return(__PyTuple_ClearFreeList=Module[\"__PyTuple_ClearFreeList\"]=Module[\"asm\"][\"_PyTuple_ClearFreeList\"]).apply(null,arguments)};var __PyTuple_Fini=Module[\"__PyTuple_Fini\"]=function(){return(__PyTuple_Fini=Module[\"__PyTuple_Fini\"]=Module[\"asm\"][\"_PyTuple_Fini\"]).apply(null,arguments)};var _PyType_ClearCache=Module[\"_PyType_ClearCache\"]=function(){return(_PyType_ClearCache=Module[\"_PyType_ClearCache\"]=Module[\"asm\"][\"PyType_ClearCache\"]).apply(null,arguments)};var _PyType_Modified=Module[\"_PyType_Modified\"]=function(){return(_PyType_Modified=Module[\"_PyType_Modified\"]=Module[\"asm\"][\"PyType_Modified\"]).apply(null,arguments)};var __PyType_Fini=Module[\"__PyType_Fini\"]=function(){return(__PyType_Fini=Module[\"__PyType_Fini\"]=Module[\"asm\"][\"_PyType_Fini\"]).apply(null,arguments)};var __PyObject_GC_Malloc=Module[\"__PyObject_GC_Malloc\"]=function(){return(__PyObject_GC_Malloc=Module[\"__PyObject_GC_Malloc\"]=Module[\"asm\"][\"_PyObject_GC_Malloc\"]).apply(null,arguments)};var __PyType_LookupId=Module[\"__PyType_LookupId\"]=function(){return(__PyType_LookupId=Module[\"__PyType_LookupId\"]=Module[\"asm\"][\"_PyType_LookupId\"]).apply(null,arguments)};var __PyType_CalculateMetaclass=Module[\"__PyType_CalculateMetaclass\"]=function(){return(__PyType_CalculateMetaclass=Module[\"__PyType_CalculateMetaclass\"]=Module[\"asm\"][\"_PyType_CalculateMetaclass\"]).apply(null,arguments)};var _PyType_FromModuleAndSpec=Module[\"_PyType_FromModuleAndSpec\"]=function(){return(_PyType_FromModuleAndSpec=Module[\"_PyType_FromModuleAndSpec\"]=Module[\"asm\"][\"PyType_FromModuleAndSpec\"]).apply(null,arguments)};var __PyWeakref_ClearRef=Module[\"__PyWeakref_ClearRef\"]=function(){return(__PyWeakref_ClearRef=Module[\"__PyWeakref_ClearRef\"]=Module[\"asm\"][\"_PyWeakref_ClearRef\"]).apply(null,arguments)};var _PyType_FromSpec=Module[\"_PyType_FromSpec\"]=function(){return(_PyType_FromSpec=Module[\"_PyType_FromSpec\"]=Module[\"asm\"][\"PyType_FromSpec\"]).apply(null,arguments)};var _PyType_GetSlot=Module[\"_PyType_GetSlot\"]=function(){return(_PyType_GetSlot=Module[\"_PyType_GetSlot\"]=Module[\"asm\"][\"PyType_GetSlot\"]).apply(null,arguments)};var _PyType_GetModule=Module[\"_PyType_GetModule\"]=function(){return(_PyType_GetModule=Module[\"_PyType_GetModule\"]=Module[\"asm\"][\"PyType_GetModule\"]).apply(null,arguments)};var _PyType_GetModuleState=Module[\"_PyType_GetModuleState\"]=function(){return(_PyType_GetModuleState=Module[\"_PyType_GetModuleState\"]=Module[\"asm\"][\"PyType_GetModuleState\"]).apply(null,arguments)};var _PyUnicode_IsIdentifier=Module[\"_PyUnicode_IsIdentifier\"]=function(){return(_PyUnicode_IsIdentifier=Module[\"_PyUnicode_IsIdentifier\"]=Module[\"asm\"][\"PyUnicode_IsIdentifier\"]).apply(null,arguments)};var __Py_Mangle=Module[\"__Py_Mangle\"]=function(){return(__Py_Mangle=Module[\"__Py_Mangle\"]=Module[\"asm\"][\"_Py_Mangle\"]).apply(null,arguments)};var _PyEval_GetGlobals=Module[\"_PyEval_GetGlobals\"]=function(){return(_PyEval_GetGlobals=Module[\"_PyEval_GetGlobals\"]=Module[\"asm\"][\"PyEval_GetGlobals\"]).apply(null,arguments)};var _PyWeakref_NewRef=Module[\"_PyWeakref_NewRef\"]=function(){return(_PyWeakref_NewRef=Module[\"_PyWeakref_NewRef\"]=Module[\"asm\"][\"PyWeakref_NewRef\"]).apply(null,arguments)};var _PyThreadState_GetFrame=Module[\"_PyThreadState_GetFrame\"]=function(){return(_PyThreadState_GetFrame=Module[\"_PyThreadState_GetFrame\"]=Module[\"asm\"][\"PyThreadState_GetFrame\"]).apply(null,arguments)};var _PyImport_GetModule=Module[\"_PyImport_GetModule\"]=function(){return(_PyImport_GetModule=Module[\"_PyImport_GetModule\"]=Module[\"asm\"][\"PyImport_GetModule\"]).apply(null,arguments)};var _PyImport_Import=Module[\"_PyImport_Import\"]=function(){return(_PyImport_Import=Module[\"_PyImport_Import\"]=Module[\"asm\"][\"PyImport_Import\"]).apply(null,arguments)};var __Py_GetErrorHandler=Module[\"__Py_GetErrorHandler\"]=function(){return(__Py_GetErrorHandler=Module[\"__Py_GetErrorHandler\"]=Module[\"asm\"][\"_Py_GetErrorHandler\"]).apply(null,arguments)};var _PyUnicode_GetMax=Module[\"_PyUnicode_GetMax\"]=function(){return(_PyUnicode_GetMax=Module[\"_PyUnicode_GetMax\"]=Module[\"asm\"][\"PyUnicode_GetMax\"]).apply(null,arguments)};var __PyUnicode_FastCopyCharacters=Module[\"__PyUnicode_FastCopyCharacters\"]=function(){return(__PyUnicode_FastCopyCharacters=Module[\"__PyUnicode_FastCopyCharacters\"]=Module[\"asm\"][\"_PyUnicode_FastCopyCharacters\"]).apply(null,arguments)};var _PyUnicode_CopyCharacters=Module[\"_PyUnicode_CopyCharacters\"]=function(){return(_PyUnicode_CopyCharacters=Module[\"_PyUnicode_CopyCharacters\"]=Module[\"asm\"][\"PyUnicode_CopyCharacters\"]).apply(null,arguments)};var _PyUnicode_Resize=Module[\"_PyUnicode_Resize\"]=function(){return(_PyUnicode_Resize=Module[\"_PyUnicode_Resize\"]=Module[\"asm\"][\"PyUnicode_Resize\"]).apply(null,arguments)};var _PyUnicode_FromUnicode=Module[\"_PyUnicode_FromUnicode\"]=function(){return(_PyUnicode_FromUnicode=Module[\"_PyUnicode_FromUnicode\"]=Module[\"asm\"][\"PyUnicode_FromUnicode\"]).apply(null,arguments)};var _PyUnicode_FromKindAndData=Module[\"_PyUnicode_FromKindAndData\"]=function(){return(_PyUnicode_FromKindAndData=Module[\"_PyUnicode_FromKindAndData\"]=Module[\"asm\"][\"PyUnicode_FromKindAndData\"]).apply(null,arguments)};var __PyUnicode_FindMaxChar=Module[\"__PyUnicode_FindMaxChar\"]=function(){return(__PyUnicode_FindMaxChar=Module[\"__PyUnicode_FindMaxChar\"]=Module[\"asm\"][\"_PyUnicode_FindMaxChar\"]).apply(null,arguments)};var _PyUnicode_AsUCS4=Module[\"_PyUnicode_AsUCS4\"]=function(){return(_PyUnicode_AsUCS4=Module[\"_PyUnicode_AsUCS4\"]=Module[\"asm\"][\"PyUnicode_AsUCS4\"]).apply(null,arguments)};var _PyUnicode_AsUCS4Copy=Module[\"_PyUnicode_AsUCS4Copy\"]=function(){return(_PyUnicode_AsUCS4Copy=Module[\"_PyUnicode_AsUCS4Copy\"]=Module[\"asm\"][\"PyUnicode_AsUCS4Copy\"]).apply(null,arguments)};var _PyUnicode_Fill=Module[\"_PyUnicode_Fill\"]=function(){return(_PyUnicode_Fill=Module[\"_PyUnicode_Fill\"]=Module[\"asm\"][\"PyUnicode_Fill\"]).apply(null,arguments)};var __PyUnicodeWriter_WriteLatin1String=Module[\"__PyUnicodeWriter_WriteLatin1String\"]=function(){return(__PyUnicodeWriter_WriteLatin1String=Module[\"__PyUnicodeWriter_WriteLatin1String\"]=Module[\"asm\"][\"_PyUnicodeWriter_WriteLatin1String\"]).apply(null,arguments)};var _PyUnicode_AsWideChar=Module[\"_PyUnicode_AsWideChar\"]=function(){return(_PyUnicode_AsWideChar=Module[\"_PyUnicode_AsWideChar\"]=Module[\"asm\"][\"PyUnicode_AsWideChar\"]).apply(null,arguments)};var _PyUnicode_AsWideCharString=Module[\"_PyUnicode_AsWideCharString\"]=function(){return(_PyUnicode_AsWideCharString=Module[\"_PyUnicode_AsWideCharString\"]=Module[\"asm\"][\"PyUnicode_AsWideCharString\"]).apply(null,arguments)};var _PyUnicode_FromOrdinal=Module[\"_PyUnicode_FromOrdinal\"]=function(){return(_PyUnicode_FromOrdinal=Module[\"_PyUnicode_FromOrdinal\"]=Module[\"asm\"][\"PyUnicode_FromOrdinal\"]).apply(null,arguments)};var _PyUnicode_FromObject=Module[\"_PyUnicode_FromObject\"]=function(){return(_PyUnicode_FromObject=Module[\"_PyUnicode_FromObject\"]=Module[\"asm\"][\"PyUnicode_FromObject\"]).apply(null,arguments)};var __PyInterpreterState_GetConfig=Module[\"__PyInterpreterState_GetConfig\"]=function(){return(__PyInterpreterState_GetConfig=Module[\"__PyInterpreterState_GetConfig\"]=Module[\"asm\"][\"_PyInterpreterState_GetConfig\"]).apply(null,arguments)};var __PyCodec_Lookup=Module[\"__PyCodec_Lookup\"]=function(){return(__PyCodec_Lookup=Module[\"__PyCodec_Lookup\"]=Module[\"asm\"][\"_PyCodec_Lookup\"]).apply(null,arguments)};var _PyCodec_LookupError=Module[\"_PyCodec_LookupError\"]=function(){return(_PyCodec_LookupError=Module[\"_PyCodec_LookupError\"]=Module[\"asm\"][\"PyCodec_LookupError\"]).apply(null,arguments)};var _PyUnicode_DecodeUTF16Stateful=Module[\"_PyUnicode_DecodeUTF16Stateful\"]=function(){return(_PyUnicode_DecodeUTF16Stateful=Module[\"_PyUnicode_DecodeUTF16Stateful\"]=Module[\"asm\"][\"PyUnicode_DecodeUTF16Stateful\"]).apply(null,arguments)};var _PyUnicode_DecodeUTF32Stateful=Module[\"_PyUnicode_DecodeUTF32Stateful\"]=function(){return(_PyUnicode_DecodeUTF32Stateful=Module[\"_PyUnicode_DecodeUTF32Stateful\"]=Module[\"asm\"][\"PyUnicode_DecodeUTF32Stateful\"]).apply(null,arguments)};var __PyCodec_DecodeText=Module[\"__PyCodec_DecodeText\"]=function(){return(__PyCodec_DecodeText=Module[\"__PyCodec_DecodeText\"]=Module[\"asm\"][\"_PyCodec_DecodeText\"]).apply(null,arguments)};var __Py_normalize_encoding=Module[\"__Py_normalize_encoding\"]=function(){return(__Py_normalize_encoding=Module[\"__Py_normalize_encoding\"]=Module[\"asm\"][\"_Py_normalize_encoding\"]).apply(null,arguments)};var _PyUnicode_DecodeUTF16=Module[\"_PyUnicode_DecodeUTF16\"]=function(){return(_PyUnicode_DecodeUTF16=Module[\"_PyUnicode_DecodeUTF16\"]=Module[\"asm\"][\"PyUnicode_DecodeUTF16\"]).apply(null,arguments)};var _PyUnicode_DecodeUTF32=Module[\"_PyUnicode_DecodeUTF32\"]=function(){return(_PyUnicode_DecodeUTF32=Module[\"_PyUnicode_DecodeUTF32\"]=Module[\"asm\"][\"PyUnicode_DecodeUTF32\"]).apply(null,arguments)};var _PyUnicode_AsDecodedObject=Module[\"_PyUnicode_AsDecodedObject\"]=function(){return(_PyUnicode_AsDecodedObject=Module[\"_PyUnicode_AsDecodedObject\"]=Module[\"asm\"][\"PyUnicode_AsDecodedObject\"]).apply(null,arguments)};var _PyCodec_Decode=Module[\"_PyCodec_Decode\"]=function(){return(_PyCodec_Decode=Module[\"_PyCodec_Decode\"]=Module[\"asm\"][\"PyCodec_Decode\"]).apply(null,arguments)};var _PyUnicode_AsDecodedUnicode=Module[\"_PyUnicode_AsDecodedUnicode\"]=function(){return(_PyUnicode_AsDecodedUnicode=Module[\"_PyUnicode_AsDecodedUnicode\"]=Module[\"asm\"][\"PyUnicode_AsDecodedUnicode\"]).apply(null,arguments)};var _PyUnicode_Encode=Module[\"_PyUnicode_Encode\"]=function(){return(_PyUnicode_Encode=Module[\"_PyUnicode_Encode\"]=Module[\"asm\"][\"PyUnicode_Encode\"]).apply(null,arguments)};var __PyUnicode_EncodeUTF16=Module[\"__PyUnicode_EncodeUTF16\"]=function(){return(__PyUnicode_EncodeUTF16=Module[\"__PyUnicode_EncodeUTF16\"]=Module[\"asm\"][\"_PyUnicode_EncodeUTF16\"]).apply(null,arguments)};var __PyUnicode_EncodeUTF32=Module[\"__PyUnicode_EncodeUTF32\"]=function(){return(__PyUnicode_EncodeUTF32=Module[\"__PyUnicode_EncodeUTF32\"]=Module[\"asm\"][\"_PyUnicode_EncodeUTF32\"]).apply(null,arguments)};var __PyUnicode_AsLatin1String=Module[\"__PyUnicode_AsLatin1String\"]=function(){return(__PyUnicode_AsLatin1String=Module[\"__PyUnicode_AsLatin1String\"]=Module[\"asm\"][\"_PyUnicode_AsLatin1String\"]).apply(null,arguments)};var __PyCodec_EncodeText=Module[\"__PyCodec_EncodeText\"]=function(){return(__PyCodec_EncodeText=Module[\"__PyCodec_EncodeText\"]=Module[\"asm\"][\"_PyCodec_EncodeText\"]).apply(null,arguments)};var _PyUnicode_AsEncodedObject=Module[\"_PyUnicode_AsEncodedObject\"]=function(){return(_PyUnicode_AsEncodedObject=Module[\"_PyUnicode_AsEncodedObject\"]=Module[\"asm\"][\"PyUnicode_AsEncodedObject\"]).apply(null,arguments)};var _PyCodec_Encode=Module[\"_PyCodec_Encode\"]=function(){return(_PyCodec_Encode=Module[\"_PyCodec_Encode\"]=Module[\"asm\"][\"PyCodec_Encode\"]).apply(null,arguments)};var _PyUnicode_EncodeLocale=Module[\"_PyUnicode_EncodeLocale\"]=function(){return(_PyUnicode_EncodeLocale=Module[\"_PyUnicode_EncodeLocale\"]=Module[\"asm\"][\"PyUnicode_EncodeLocale\"]).apply(null,arguments)};var __Py_EncodeLocaleEx=Module[\"__Py_EncodeLocaleEx\"]=function(){return(__Py_EncodeLocaleEx=Module[\"__Py_EncodeLocaleEx\"]=Module[\"asm\"][\"_Py_EncodeLocaleEx\"]).apply(null,arguments)};var _PyCodec_StrictErrors=Module[\"_PyCodec_StrictErrors\"]=function(){return(_PyCodec_StrictErrors=Module[\"_PyCodec_StrictErrors\"]=Module[\"asm\"][\"PyCodec_StrictErrors\"]).apply(null,arguments)};var _PyUnicode_EncodeFSDefault=Module[\"_PyUnicode_EncodeFSDefault\"]=function(){return(_PyUnicode_EncodeFSDefault=Module[\"_PyUnicode_EncodeFSDefault\"]=Module[\"asm\"][\"PyUnicode_EncodeFSDefault\"]).apply(null,arguments)};var _wcscmp=Module[\"_wcscmp\"]=function(){return(_wcscmp=Module[\"_wcscmp\"]=Module[\"asm\"][\"wcscmp\"]).apply(null,arguments)};var _PyUnicode_AsEncodedUnicode=Module[\"_PyUnicode_AsEncodedUnicode\"]=function(){return(_PyUnicode_AsEncodedUnicode=Module[\"_PyUnicode_AsEncodedUnicode\"]=Module[\"asm\"][\"PyUnicode_AsEncodedUnicode\"]).apply(null,arguments)};var _PyUnicode_DecodeLocaleAndSize=Module[\"_PyUnicode_DecodeLocaleAndSize\"]=function(){return(_PyUnicode_DecodeLocaleAndSize=Module[\"_PyUnicode_DecodeLocaleAndSize\"]=Module[\"asm\"][\"PyUnicode_DecodeLocaleAndSize\"]).apply(null,arguments)};var __Py_DecodeLocaleEx=Module[\"__Py_DecodeLocaleEx\"]=function(){return(__Py_DecodeLocaleEx=Module[\"__Py_DecodeLocaleEx\"]=Module[\"asm\"][\"_Py_DecodeLocaleEx\"]).apply(null,arguments)};var _PyUnicode_DecodeLocale=Module[\"_PyUnicode_DecodeLocale\"]=function(){return(_PyUnicode_DecodeLocale=Module[\"_PyUnicode_DecodeLocale\"]=Module[\"asm\"][\"PyUnicode_DecodeLocale\"]).apply(null,arguments)};var _PyUnicode_DecodeFSDefaultAndSize=Module[\"_PyUnicode_DecodeFSDefaultAndSize\"]=function(){return(_PyUnicode_DecodeFSDefaultAndSize=Module[\"_PyUnicode_DecodeFSDefaultAndSize\"]=Module[\"asm\"][\"PyUnicode_DecodeFSDefaultAndSize\"]).apply(null,arguments)};var _PyUnicode_FSConverter=Module[\"_PyUnicode_FSConverter\"]=function(){return(_PyUnicode_FSConverter=Module[\"_PyUnicode_FSConverter\"]=Module[\"asm\"][\"PyUnicode_FSConverter\"]).apply(null,arguments)};var _PyOS_FSPath=Module[\"_PyOS_FSPath\"]=function(){return(_PyOS_FSPath=Module[\"_PyOS_FSPath\"]=Module[\"asm\"][\"PyOS_FSPath\"]).apply(null,arguments)};var _PyUnicode_FSDecoder=Module[\"_PyUnicode_FSDecoder\"]=function(){return(_PyUnicode_FSDecoder=Module[\"_PyUnicode_FSDecoder\"]=Module[\"asm\"][\"PyUnicode_FSDecoder\"]).apply(null,arguments)};var _PyUnicode_AsUnicodeAndSize=Module[\"_PyUnicode_AsUnicodeAndSize\"]=function(){return(_PyUnicode_AsUnicodeAndSize=Module[\"_PyUnicode_AsUnicodeAndSize\"]=Module[\"asm\"][\"PyUnicode_AsUnicodeAndSize\"]).apply(null,arguments)};var _PyUnicode_AsUnicode=Module[\"_PyUnicode_AsUnicode\"]=function(){return(_PyUnicode_AsUnicode=Module[\"_PyUnicode_AsUnicode\"]=Module[\"asm\"][\"PyUnicode_AsUnicode\"]).apply(null,arguments)};var __PyUnicode_AsUnicode=Module[\"__PyUnicode_AsUnicode\"]=function(){return(__PyUnicode_AsUnicode=Module[\"__PyUnicode_AsUnicode\"]=Module[\"asm\"][\"_PyUnicode_AsUnicode\"]).apply(null,arguments)};var _PyUnicode_GetSize=Module[\"_PyUnicode_GetSize\"]=function(){return(_PyUnicode_GetSize=Module[\"_PyUnicode_GetSize\"]=Module[\"asm\"][\"PyUnicode_GetSize\"]).apply(null,arguments)};var _PyUnicode_GetLength=Module[\"_PyUnicode_GetLength\"]=function(){return(_PyUnicode_GetLength=Module[\"_PyUnicode_GetLength\"]=Module[\"asm\"][\"PyUnicode_GetLength\"]).apply(null,arguments)};var _PyUnicode_WriteChar=Module[\"_PyUnicode_WriteChar\"]=function(){return(_PyUnicode_WriteChar=Module[\"_PyUnicode_WriteChar\"]=Module[\"asm\"][\"PyUnicode_WriteChar\"]).apply(null,arguments)};var _PyUnicode_DecodeUTF7=Module[\"_PyUnicode_DecodeUTF7\"]=function(){return(_PyUnicode_DecodeUTF7=Module[\"_PyUnicode_DecodeUTF7\"]=Module[\"asm\"][\"PyUnicode_DecodeUTF7\"]).apply(null,arguments)};var _PyUnicode_DecodeUTF7Stateful=Module[\"_PyUnicode_DecodeUTF7Stateful\"]=function(){return(_PyUnicode_DecodeUTF7Stateful=Module[\"_PyUnicode_DecodeUTF7Stateful\"]=Module[\"asm\"][\"PyUnicode_DecodeUTF7Stateful\"]).apply(null,arguments)};var __PyUnicode_EncodeUTF7=Module[\"__PyUnicode_EncodeUTF7\"]=function(){return(__PyUnicode_EncodeUTF7=Module[\"__PyUnicode_EncodeUTF7\"]=Module[\"asm\"][\"_PyUnicode_EncodeUTF7\"]).apply(null,arguments)};var _PyUnicode_EncodeUTF7=Module[\"_PyUnicode_EncodeUTF7\"]=function(){return(_PyUnicode_EncodeUTF7=Module[\"_PyUnicode_EncodeUTF7\"]=Module[\"asm\"][\"PyUnicode_EncodeUTF7\"]).apply(null,arguments)};var __Py_DecodeUTF8Ex=Module[\"__Py_DecodeUTF8Ex\"]=function(){return(__Py_DecodeUTF8Ex=Module[\"__Py_DecodeUTF8Ex\"]=Module[\"asm\"][\"_Py_DecodeUTF8Ex\"]).apply(null,arguments)};var __Py_DecodeUTF8_surrogateescape=Module[\"__Py_DecodeUTF8_surrogateescape\"]=function(){return(__Py_DecodeUTF8_surrogateescape=Module[\"__Py_DecodeUTF8_surrogateescape\"]=Module[\"asm\"][\"_Py_DecodeUTF8_surrogateescape\"]).apply(null,arguments)};var __Py_EncodeUTF8Ex=Module[\"__Py_EncodeUTF8Ex\"]=function(){return(__Py_EncodeUTF8Ex=Module[\"__Py_EncodeUTF8Ex\"]=Module[\"asm\"][\"_Py_EncodeUTF8Ex\"]).apply(null,arguments)};var _PyUnicode_EncodeUTF8=Module[\"_PyUnicode_EncodeUTF8\"]=function(){return(_PyUnicode_EncodeUTF8=Module[\"_PyUnicode_EncodeUTF8\"]=Module[\"asm\"][\"PyUnicode_EncodeUTF8\"]).apply(null,arguments)};var _PyUnicode_EncodeUTF32=Module[\"_PyUnicode_EncodeUTF32\"]=function(){return(_PyUnicode_EncodeUTF32=Module[\"_PyUnicode_EncodeUTF32\"]=Module[\"asm\"][\"PyUnicode_EncodeUTF32\"]).apply(null,arguments)};var _PyUnicode_AsUTF32String=Module[\"_PyUnicode_AsUTF32String\"]=function(){return(_PyUnicode_AsUTF32String=Module[\"_PyUnicode_AsUTF32String\"]=Module[\"asm\"][\"PyUnicode_AsUTF32String\"]).apply(null,arguments)};var _PyUnicode_EncodeUTF16=Module[\"_PyUnicode_EncodeUTF16\"]=function(){return(_PyUnicode_EncodeUTF16=Module[\"_PyUnicode_EncodeUTF16\"]=Module[\"asm\"][\"PyUnicode_EncodeUTF16\"]).apply(null,arguments)};var _PyUnicode_AsUTF16String=Module[\"_PyUnicode_AsUTF16String\"]=function(){return(_PyUnicode_AsUTF16String=Module[\"_PyUnicode_AsUTF16String\"]=Module[\"asm\"][\"PyUnicode_AsUTF16String\"]).apply(null,arguments)};var _PyUnicode_DecodeUnicodeEscape=Module[\"_PyUnicode_DecodeUnicodeEscape\"]=function(){return(_PyUnicode_DecodeUnicodeEscape=Module[\"_PyUnicode_DecodeUnicodeEscape\"]=Module[\"asm\"][\"PyUnicode_DecodeUnicodeEscape\"]).apply(null,arguments)};var _PyUnicode_AsUnicodeEscapeString=Module[\"_PyUnicode_AsUnicodeEscapeString\"]=function(){return(_PyUnicode_AsUnicodeEscapeString=Module[\"_PyUnicode_AsUnicodeEscapeString\"]=Module[\"asm\"][\"PyUnicode_AsUnicodeEscapeString\"]).apply(null,arguments)};var _PyUnicode_EncodeUnicodeEscape=Module[\"_PyUnicode_EncodeUnicodeEscape\"]=function(){return(_PyUnicode_EncodeUnicodeEscape=Module[\"_PyUnicode_EncodeUnicodeEscape\"]=Module[\"asm\"][\"PyUnicode_EncodeUnicodeEscape\"]).apply(null,arguments)};var _PyUnicode_DecodeRawUnicodeEscape=Module[\"_PyUnicode_DecodeRawUnicodeEscape\"]=function(){return(_PyUnicode_DecodeRawUnicodeEscape=Module[\"_PyUnicode_DecodeRawUnicodeEscape\"]=Module[\"asm\"][\"PyUnicode_DecodeRawUnicodeEscape\"]).apply(null,arguments)};var _PyUnicode_AsRawUnicodeEscapeString=Module[\"_PyUnicode_AsRawUnicodeEscapeString\"]=function(){return(_PyUnicode_AsRawUnicodeEscapeString=Module[\"_PyUnicode_AsRawUnicodeEscapeString\"]=Module[\"asm\"][\"PyUnicode_AsRawUnicodeEscapeString\"]).apply(null,arguments)};var _PyUnicode_EncodeRawUnicodeEscape=Module[\"_PyUnicode_EncodeRawUnicodeEscape\"]=function(){return(_PyUnicode_EncodeRawUnicodeEscape=Module[\"_PyUnicode_EncodeRawUnicodeEscape\"]=Module[\"asm\"][\"PyUnicode_EncodeRawUnicodeEscape\"]).apply(null,arguments)};var _PyUnicode_EncodeLatin1=Module[\"_PyUnicode_EncodeLatin1\"]=function(){return(_PyUnicode_EncodeLatin1=Module[\"_PyUnicode_EncodeLatin1\"]=Module[\"asm\"][\"PyUnicode_EncodeLatin1\"]).apply(null,arguments)};var _PyUnicode_AsLatin1String=Module[\"_PyUnicode_AsLatin1String\"]=function(){return(_PyUnicode_AsLatin1String=Module[\"_PyUnicode_AsLatin1String\"]=Module[\"asm\"][\"PyUnicode_AsLatin1String\"]).apply(null,arguments)};var __PyUnicodeWriter_PrepareKindInternal=Module[\"__PyUnicodeWriter_PrepareKindInternal\"]=function(){return(__PyUnicodeWriter_PrepareKindInternal=Module[\"__PyUnicodeWriter_PrepareKindInternal\"]=Module[\"asm\"][\"_PyUnicodeWriter_PrepareKindInternal\"]).apply(null,arguments)};var _PyUnicode_EncodeASCII=Module[\"_PyUnicode_EncodeASCII\"]=function(){return(_PyUnicode_EncodeASCII=Module[\"_PyUnicode_EncodeASCII\"]=Module[\"asm\"][\"PyUnicode_EncodeASCII\"]).apply(null,arguments)};var _PyUnicode_DecodeCharmap=Module[\"_PyUnicode_DecodeCharmap\"]=function(){return(_PyUnicode_DecodeCharmap=Module[\"_PyUnicode_DecodeCharmap\"]=Module[\"asm\"][\"PyUnicode_DecodeCharmap\"]).apply(null,arguments)};var _PyUnicode_BuildEncodingMap=Module[\"_PyUnicode_BuildEncodingMap\"]=function(){return(_PyUnicode_BuildEncodingMap=Module[\"_PyUnicode_BuildEncodingMap\"]=Module[\"asm\"][\"PyUnicode_BuildEncodingMap\"]).apply(null,arguments)};var __PyUnicode_EncodeCharmap=Module[\"__PyUnicode_EncodeCharmap\"]=function(){return(__PyUnicode_EncodeCharmap=Module[\"__PyUnicode_EncodeCharmap\"]=Module[\"asm\"][\"_PyUnicode_EncodeCharmap\"]).apply(null,arguments)};var _PyUnicode_EncodeCharmap=Module[\"_PyUnicode_EncodeCharmap\"]=function(){return(_PyUnicode_EncodeCharmap=Module[\"_PyUnicode_EncodeCharmap\"]=Module[\"asm\"][\"PyUnicode_EncodeCharmap\"]).apply(null,arguments)};var _PyUnicode_AsCharmapString=Module[\"_PyUnicode_AsCharmapString\"]=function(){return(_PyUnicode_AsCharmapString=Module[\"_PyUnicode_AsCharmapString\"]=Module[\"asm\"][\"PyUnicode_AsCharmapString\"]).apply(null,arguments)};var _PyUnicode_TranslateCharmap=Module[\"_PyUnicode_TranslateCharmap\"]=function(){return(_PyUnicode_TranslateCharmap=Module[\"_PyUnicode_TranslateCharmap\"]=Module[\"asm\"][\"PyUnicode_TranslateCharmap\"]).apply(null,arguments)};var _PyUnicode_Translate=Module[\"_PyUnicode_Translate\"]=function(){return(_PyUnicode_Translate=Module[\"_PyUnicode_Translate\"]=Module[\"asm\"][\"PyUnicode_Translate\"]).apply(null,arguments)};var __PyUnicode_ToDecimalDigit=Module[\"__PyUnicode_ToDecimalDigit\"]=function(){return(__PyUnicode_ToDecimalDigit=Module[\"__PyUnicode_ToDecimalDigit\"]=Module[\"asm\"][\"_PyUnicode_ToDecimalDigit\"]).apply(null,arguments)};var _PyUnicode_TransformDecimalToASCII=Module[\"_PyUnicode_TransformDecimalToASCII\"]=function(){return(_PyUnicode_TransformDecimalToASCII=Module[\"_PyUnicode_TransformDecimalToASCII\"]=Module[\"asm\"][\"PyUnicode_TransformDecimalToASCII\"]).apply(null,arguments)};var _PyUnicode_EncodeDecimal=Module[\"_PyUnicode_EncodeDecimal\"]=function(){return(_PyUnicode_EncodeDecimal=Module[\"_PyUnicode_EncodeDecimal\"]=Module[\"asm\"][\"PyUnicode_EncodeDecimal\"]).apply(null,arguments)};var __PyUnicode_InsertThousandsGrouping=Module[\"__PyUnicode_InsertThousandsGrouping\"]=function(){return(__PyUnicode_InsertThousandsGrouping=Module[\"__PyUnicode_InsertThousandsGrouping\"]=Module[\"asm\"][\"_PyUnicode_InsertThousandsGrouping\"]).apply(null,arguments)};var _PyUnicode_Count=Module[\"_PyUnicode_Count\"]=function(){return(_PyUnicode_Count=Module[\"_PyUnicode_Count\"]=Module[\"asm\"][\"PyUnicode_Count\"]).apply(null,arguments)};var _PyUnicode_Find=Module[\"_PyUnicode_Find\"]=function(){return(_PyUnicode_Find=Module[\"_PyUnicode_Find\"]=Module[\"asm\"][\"PyUnicode_Find\"]).apply(null,arguments)};var __PyUnicode_JoinArray=Module[\"__PyUnicode_JoinArray\"]=function(){return(__PyUnicode_JoinArray=Module[\"__PyUnicode_JoinArray\"]=Module[\"asm\"][\"_PyUnicode_JoinArray\"]).apply(null,arguments)};var __PyUnicode_FastFill=Module[\"__PyUnicode_FastFill\"]=function(){return(__PyUnicode_FastFill=Module[\"__PyUnicode_FastFill\"]=Module[\"asm\"][\"_PyUnicode_FastFill\"]).apply(null,arguments)};var _PyUnicode_Splitlines=Module[\"_PyUnicode_Splitlines\"]=function(){return(_PyUnicode_Splitlines=Module[\"_PyUnicode_Splitlines\"]=Module[\"asm\"][\"PyUnicode_Splitlines\"]).apply(null,arguments)};var __PyUnicode_IsLinebreak=Module[\"__PyUnicode_IsLinebreak\"]=function(){return(__PyUnicode_IsLinebreak=Module[\"__PyUnicode_IsLinebreak\"]=Module[\"asm\"][\"_PyUnicode_IsLinebreak\"]).apply(null,arguments)};var _wmemcmp=Module[\"_wmemcmp\"]=function(){return(_wmemcmp=Module[\"_wmemcmp\"]=Module[\"asm\"][\"wmemcmp\"]).apply(null,arguments)};var _PyUnicode_CompareWithASCIIString=Module[\"_PyUnicode_CompareWithASCIIString\"]=function(){return(_PyUnicode_CompareWithASCIIString=Module[\"_PyUnicode_CompareWithASCIIString\"]=Module[\"asm\"][\"PyUnicode_CompareWithASCIIString\"]).apply(null,arguments)};var _PyUnicode_RichCompare=Module[\"_PyUnicode_RichCompare\"]=function(){return(_PyUnicode_RichCompare=Module[\"_PyUnicode_RichCompare\"]=Module[\"asm\"][\"PyUnicode_RichCompare\"]).apply(null,arguments)};var _PyUnicode_Contains=Module[\"_PyUnicode_Contains\"]=function(){return(_PyUnicode_Contains=Module[\"_PyUnicode_Contains\"]=Module[\"asm\"][\"PyUnicode_Contains\"]).apply(null,arguments)};var _PyUnicode_Concat=Module[\"_PyUnicode_Concat\"]=function(){return(_PyUnicode_Concat=Module[\"_PyUnicode_Concat\"]=Module[\"asm\"][\"PyUnicode_Concat\"]).apply(null,arguments)};var _PyUnicode_Append=Module[\"_PyUnicode_Append\"]=function(){return(_PyUnicode_Append=Module[\"_PyUnicode_Append\"]=Module[\"asm\"][\"PyUnicode_Append\"]).apply(null,arguments)};var __PyUnicode_IsXidStart=Module[\"__PyUnicode_IsXidStart\"]=function(){return(__PyUnicode_IsXidStart=Module[\"__PyUnicode_IsXidStart\"]=Module[\"asm\"][\"_PyUnicode_IsXidStart\"]).apply(null,arguments)};var __PyUnicode_IsXidContinue=Module[\"__PyUnicode_IsXidContinue\"]=function(){return(__PyUnicode_IsXidContinue=Module[\"__PyUnicode_IsXidContinue\"]=Module[\"asm\"][\"_PyUnicode_IsXidContinue\"]).apply(null,arguments)};var _PyUnicode_Replace=Module[\"_PyUnicode_Replace\"]=function(){return(_PyUnicode_Replace=Module[\"_PyUnicode_Replace\"]=Module[\"asm\"][\"PyUnicode_Replace\"]).apply(null,arguments)};var _PyUnicode_Split=Module[\"_PyUnicode_Split\"]=function(){return(_PyUnicode_Split=Module[\"_PyUnicode_Split\"]=Module[\"asm\"][\"PyUnicode_Split\"]).apply(null,arguments)};var _PyUnicode_Partition=Module[\"_PyUnicode_Partition\"]=function(){return(_PyUnicode_Partition=Module[\"_PyUnicode_Partition\"]=Module[\"asm\"][\"PyUnicode_Partition\"]).apply(null,arguments)};var _PyUnicode_RPartition=Module[\"_PyUnicode_RPartition\"]=function(){return(_PyUnicode_RPartition=Module[\"_PyUnicode_RPartition\"]=Module[\"asm\"][\"PyUnicode_RPartition\"]).apply(null,arguments)};var _PyUnicode_RSplit=Module[\"_PyUnicode_RSplit\"]=function(){return(_PyUnicode_RSplit=Module[\"_PyUnicode_RSplit\"]=Module[\"asm\"][\"PyUnicode_RSplit\"]).apply(null,arguments)};var __PyUnicodeWriter_WriteSubstring=Module[\"__PyUnicodeWriter_WriteSubstring\"]=function(){return(__PyUnicodeWriter_WriteSubstring=Module[\"__PyUnicodeWriter_WriteSubstring\"]=Module[\"asm\"][\"_PyUnicodeWriter_WriteSubstring\"]).apply(null,arguments)};var _PyUnicode_Format=Module[\"_PyUnicode_Format\"]=function(){return(_PyUnicode_Format=Module[\"_PyUnicode_Format\"]=Module[\"asm\"][\"PyUnicode_Format\"]).apply(null,arguments)};var __PyErr_WriteUnraisableMsg=Module[\"__PyErr_WriteUnraisableMsg\"]=function(){return(__PyErr_WriteUnraisableMsg=Module[\"__PyErr_WriteUnraisableMsg\"]=Module[\"asm\"][\"_PyErr_WriteUnraisableMsg\"]).apply(null,arguments)};var __PyUnicode_Init=Module[\"__PyUnicode_Init\"]=function(){return(__PyUnicode_Init=Module[\"__PyUnicode_Init\"]=Module[\"asm\"][\"_PyUnicode_Init\"]).apply(null,arguments)};var _PyUnicode_InternImmortal=Module[\"_PyUnicode_InternImmortal\"]=function(){return(_PyUnicode_InternImmortal=Module[\"_PyUnicode_InternImmortal\"]=Module[\"asm\"][\"PyUnicode_InternImmortal\"]).apply(null,arguments)};var _Py_UNICODE_strlen=Module[\"_Py_UNICODE_strlen\"]=function(){return(_Py_UNICODE_strlen=Module[\"_Py_UNICODE_strlen\"]=Module[\"asm\"][\"Py_UNICODE_strlen\"]).apply(null,arguments)};var _Py_UNICODE_strcpy=Module[\"_Py_UNICODE_strcpy\"]=function(){return(_Py_UNICODE_strcpy=Module[\"_Py_UNICODE_strcpy\"]=Module[\"asm\"][\"Py_UNICODE_strcpy\"]).apply(null,arguments)};var _Py_UNICODE_strncpy=Module[\"_Py_UNICODE_strncpy\"]=function(){return(_Py_UNICODE_strncpy=Module[\"_Py_UNICODE_strncpy\"]=Module[\"asm\"][\"Py_UNICODE_strncpy\"]).apply(null,arguments)};var _Py_UNICODE_strcat=Module[\"_Py_UNICODE_strcat\"]=function(){return(_Py_UNICODE_strcat=Module[\"_Py_UNICODE_strcat\"]=Module[\"asm\"][\"Py_UNICODE_strcat\"]).apply(null,arguments)};var _Py_UNICODE_strcmp=Module[\"_Py_UNICODE_strcmp\"]=function(){return(_Py_UNICODE_strcmp=Module[\"_Py_UNICODE_strcmp\"]=Module[\"asm\"][\"Py_UNICODE_strcmp\"]).apply(null,arguments)};var _Py_UNICODE_strncmp=Module[\"_Py_UNICODE_strncmp\"]=function(){return(_Py_UNICODE_strncmp=Module[\"_Py_UNICODE_strncmp\"]=Module[\"asm\"][\"Py_UNICODE_strncmp\"]).apply(null,arguments)};var _Py_UNICODE_strchr=Module[\"_Py_UNICODE_strchr\"]=function(){return(_Py_UNICODE_strchr=Module[\"_Py_UNICODE_strchr\"]=Module[\"asm\"][\"Py_UNICODE_strchr\"]).apply(null,arguments)};var _Py_UNICODE_strrchr=Module[\"_Py_UNICODE_strrchr\"]=function(){return(_Py_UNICODE_strrchr=Module[\"_Py_UNICODE_strrchr\"]=Module[\"asm\"][\"Py_UNICODE_strrchr\"]).apply(null,arguments)};var _PyUnicode_AsUnicodeCopy=Module[\"_PyUnicode_AsUnicodeCopy\"]=function(){return(_PyUnicode_AsUnicodeCopy=Module[\"_PyUnicode_AsUnicodeCopy\"]=Module[\"asm\"][\"PyUnicode_AsUnicodeCopy\"]).apply(null,arguments)};var __PyUnicode_InitEncodings=Module[\"__PyUnicode_InitEncodings\"]=function(){return(__PyUnicode_InitEncodings=Module[\"__PyUnicode_InitEncodings\"]=Module[\"asm\"][\"_PyUnicode_InitEncodings\"]).apply(null,arguments)};var __Py_DumpPathConfig=Module[\"__Py_DumpPathConfig\"]=function(){return(__Py_DumpPathConfig=Module[\"__Py_DumpPathConfig\"]=Module[\"asm\"][\"_Py_DumpPathConfig\"]).apply(null,arguments)};var __Py_SetFileSystemEncoding=Module[\"__Py_SetFileSystemEncoding\"]=function(){return(__Py_SetFileSystemEncoding=Module[\"__Py_SetFileSystemEncoding\"]=Module[\"asm\"][\"_Py_SetFileSystemEncoding\"]).apply(null,arguments)};var __PyUnicode_Fini=Module[\"__PyUnicode_Fini\"]=function(){return(__PyUnicode_Fini=Module[\"__PyUnicode_Fini\"]=Module[\"asm\"][\"_PyUnicode_Fini\"]).apply(null,arguments)};var _PyInit__string=Module[\"_PyInit__string\"]=function(){return(_PyInit__string=Module[\"_PyInit__string\"]=Module[\"asm\"][\"PyInit__string\"]).apply(null,arguments)};var __PyUnicode_IsLowercase=Module[\"__PyUnicode_IsLowercase\"]=function(){return(__PyUnicode_IsLowercase=Module[\"__PyUnicode_IsLowercase\"]=Module[\"asm\"][\"_PyUnicode_IsLowercase\"]).apply(null,arguments)};var __PyUnicode_IsUppercase=Module[\"__PyUnicode_IsUppercase\"]=function(){return(__PyUnicode_IsUppercase=Module[\"__PyUnicode_IsUppercase\"]=Module[\"asm\"][\"_PyUnicode_IsUppercase\"]).apply(null,arguments)};var __PyUnicode_IsTitlecase=Module[\"__PyUnicode_IsTitlecase\"]=function(){return(__PyUnicode_IsTitlecase=Module[\"__PyUnicode_IsTitlecase\"]=Module[\"asm\"][\"_PyUnicode_IsTitlecase\"]).apply(null,arguments)};var __PyUnicode_IsDecimalDigit=Module[\"__PyUnicode_IsDecimalDigit\"]=function(){return(__PyUnicode_IsDecimalDigit=Module[\"__PyUnicode_IsDecimalDigit\"]=Module[\"asm\"][\"_PyUnicode_IsDecimalDigit\"]).apply(null,arguments)};var __PyUnicode_IsDigit=Module[\"__PyUnicode_IsDigit\"]=function(){return(__PyUnicode_IsDigit=Module[\"__PyUnicode_IsDigit\"]=Module[\"asm\"][\"_PyUnicode_IsDigit\"]).apply(null,arguments)};var __PyUnicode_IsNumeric=Module[\"__PyUnicode_IsNumeric\"]=function(){return(__PyUnicode_IsNumeric=Module[\"__PyUnicode_IsNumeric\"]=Module[\"asm\"][\"_PyUnicode_IsNumeric\"]).apply(null,arguments)};var __PyUnicode_IsAlpha=Module[\"__PyUnicode_IsAlpha\"]=function(){return(__PyUnicode_IsAlpha=Module[\"__PyUnicode_IsAlpha\"]=Module[\"asm\"][\"_PyUnicode_IsAlpha\"]).apply(null,arguments)};var __PyUnicode_FormatAdvancedWriter=Module[\"__PyUnicode_FormatAdvancedWriter\"]=function(){return(__PyUnicode_FormatAdvancedWriter=Module[\"__PyUnicode_FormatAdvancedWriter\"]=Module[\"asm\"][\"_PyUnicode_FormatAdvancedWriter\"]).apply(null,arguments)};var __PyUnicode_ToTitleFull=Module[\"__PyUnicode_ToTitleFull\"]=function(){return(__PyUnicode_ToTitleFull=Module[\"__PyUnicode_ToTitleFull\"]=Module[\"asm\"][\"_PyUnicode_ToTitleFull\"]).apply(null,arguments)};var __PyUnicode_IsCaseIgnorable=Module[\"__PyUnicode_IsCaseIgnorable\"]=function(){return(__PyUnicode_IsCaseIgnorable=Module[\"__PyUnicode_IsCaseIgnorable\"]=Module[\"asm\"][\"_PyUnicode_IsCaseIgnorable\"]).apply(null,arguments)};var __PyUnicode_IsCased=Module[\"__PyUnicode_IsCased\"]=function(){return(__PyUnicode_IsCased=Module[\"__PyUnicode_IsCased\"]=Module[\"asm\"][\"_PyUnicode_IsCased\"]).apply(null,arguments)};var __PyUnicode_ToLowerFull=Module[\"__PyUnicode_ToLowerFull\"]=function(){return(__PyUnicode_ToLowerFull=Module[\"__PyUnicode_ToLowerFull\"]=Module[\"asm\"][\"_PyUnicode_ToLowerFull\"]).apply(null,arguments)};var __PyUnicode_ToFoldedFull=Module[\"__PyUnicode_ToFoldedFull\"]=function(){return(__PyUnicode_ToFoldedFull=Module[\"__PyUnicode_ToFoldedFull\"]=Module[\"asm\"][\"_PyUnicode_ToFoldedFull\"]).apply(null,arguments)};var __PyUnicode_ToUpperFull=Module[\"__PyUnicode_ToUpperFull\"]=function(){return(__PyUnicode_ToUpperFull=Module[\"__PyUnicode_ToUpperFull\"]=Module[\"asm\"][\"_PyUnicode_ToUpperFull\"]).apply(null,arguments)};var __PyUnicode_ToNumeric=Module[\"__PyUnicode_ToNumeric\"]=function(){return(__PyUnicode_ToNumeric=Module[\"__PyUnicode_ToNumeric\"]=Module[\"asm\"][\"_PyUnicode_ToNumeric\"]).apply(null,arguments)};var __PyUnicode_ToTitlecase=Module[\"__PyUnicode_ToTitlecase\"]=function(){return(__PyUnicode_ToTitlecase=Module[\"__PyUnicode_ToTitlecase\"]=Module[\"asm\"][\"_PyUnicode_ToTitlecase\"]).apply(null,arguments)};var __PyUnicode_ToDigit=Module[\"__PyUnicode_ToDigit\"]=function(){return(__PyUnicode_ToDigit=Module[\"__PyUnicode_ToDigit\"]=Module[\"asm\"][\"_PyUnicode_ToDigit\"]).apply(null,arguments)};var __PyUnicode_ToUppercase=Module[\"__PyUnicode_ToUppercase\"]=function(){return(__PyUnicode_ToUppercase=Module[\"__PyUnicode_ToUppercase\"]=Module[\"asm\"][\"_PyUnicode_ToUppercase\"]).apply(null,arguments)};var __PyUnicode_ToLowercase=Module[\"__PyUnicode_ToLowercase\"]=function(){return(__PyUnicode_ToLowercase=Module[\"__PyUnicode_ToLowercase\"]=Module[\"asm\"][\"_PyUnicode_ToLowercase\"]).apply(null,arguments)};var __PyWeakref_GetWeakrefCount=Module[\"__PyWeakref_GetWeakrefCount\"]=function(){return(__PyWeakref_GetWeakrefCount=Module[\"__PyWeakref_GetWeakrefCount\"]=Module[\"asm\"][\"_PyWeakref_GetWeakrefCount\"]).apply(null,arguments)};var _PyWeakref_NewProxy=Module[\"_PyWeakref_NewProxy\"]=function(){return(_PyWeakref_NewProxy=Module[\"_PyWeakref_NewProxy\"]=Module[\"asm\"][\"PyWeakref_NewProxy\"]).apply(null,arguments)};var _PyWeakref_GetObject=Module[\"_PyWeakref_GetObject\"]=function(){return(_PyWeakref_GetObject=Module[\"_PyWeakref_GetObject\"]=Module[\"asm\"][\"PyWeakref_GetObject\"]).apply(null,arguments)};var _PyErr_ResourceWarning=Module[\"_PyErr_ResourceWarning\"]=function(){return(_PyErr_ResourceWarning=Module[\"_PyErr_ResourceWarning\"]=Module[\"asm\"][\"PyErr_ResourceWarning\"]).apply(null,arguments)};var _PyErr_Warn=Module[\"_PyErr_Warn\"]=function(){return(_PyErr_Warn=Module[\"_PyErr_Warn\"]=Module[\"asm\"][\"PyErr_Warn\"]).apply(null,arguments)};var __Py_DisplaySourceLine=Module[\"__Py_DisplaySourceLine\"]=function(){return(__Py_DisplaySourceLine=Module[\"__Py_DisplaySourceLine\"]=Module[\"asm\"][\"_Py_DisplaySourceLine\"]).apply(null,arguments)};var _PyErr_WarnExplicit=Module[\"_PyErr_WarnExplicit\"]=function(){return(_PyErr_WarnExplicit=Module[\"_PyErr_WarnExplicit\"]=Module[\"asm\"][\"PyErr_WarnExplicit\"]).apply(null,arguments)};var _PyErr_WarnExplicitFormat=Module[\"_PyErr_WarnExplicitFormat\"]=function(){return(_PyErr_WarnExplicitFormat=Module[\"_PyErr_WarnExplicitFormat\"]=Module[\"asm\"][\"PyErr_WarnExplicitFormat\"]).apply(null,arguments)};var __Py_IsFinalizing=Module[\"__Py_IsFinalizing\"]=function(){return(__Py_IsFinalizing=Module[\"__Py_IsFinalizing\"]=Module[\"asm\"][\"_Py_IsFinalizing\"]).apply(null,arguments)};var __PyWarnings_InitState=Module[\"__PyWarnings_InitState\"]=function(){return(__PyWarnings_InitState=Module[\"__PyWarnings_InitState\"]=Module[\"asm\"][\"_PyWarnings_InitState\"]).apply(null,arguments)};var __PyWarnings_Init=Module[\"__PyWarnings_Init\"]=function(){return(__PyWarnings_Init=Module[\"__PyWarnings_Init\"]=Module[\"asm\"][\"_PyWarnings_Init\"]).apply(null,arguments)};var _PyModule_AddObject=Module[\"_PyModule_AddObject\"]=function(){return(_PyModule_AddObject=Module[\"_PyModule_AddObject\"]=Module[\"asm\"][\"PyModule_AddObject\"]).apply(null,arguments)};var __PyWarnings_Fini=Module[\"__PyWarnings_Fini\"]=function(){return(__PyWarnings_Fini=Module[\"__PyWarnings_Fini\"]=Module[\"asm\"][\"_PyWarnings_Fini\"]).apply(null,arguments)};var __PyAST_Fini=Module[\"__PyAST_Fini\"]=function(){return(__PyAST_Fini=Module[\"__PyAST_Fini\"]=Module[\"asm\"][\"_PyAST_Fini\"]).apply(null,arguments)};var _PyInit__ast=Module[\"_PyInit__ast\"]=function(){return(_PyInit__ast=Module[\"_PyInit__ast\"]=Module[\"asm\"][\"PyInit__ast\"]).apply(null,arguments)};var _PyAST_mod2obj=Module[\"_PyAST_mod2obj\"]=function(){return(_PyAST_mod2obj=Module[\"_PyAST_mod2obj\"]=Module[\"asm\"][\"PyAST_mod2obj\"]).apply(null,arguments)};var _PyAST_obj2mod=Module[\"_PyAST_obj2mod\"]=function(){return(_PyAST_obj2mod=Module[\"_PyAST_obj2mod\"]=Module[\"asm\"][\"PyAST_obj2mod\"]).apply(null,arguments)};var _PyAST_Check=Module[\"_PyAST_Check\"]=function(){return(_PyAST_Check=Module[\"_PyAST_Check\"]=Module[\"asm\"][\"PyAST_Check\"]).apply(null,arguments)};var _PyModule_AddIntConstant=Module[\"_PyModule_AddIntConstant\"]=function(){return(_PyModule_AddIntConstant=Module[\"_PyModule_AddIntConstant\"]=Module[\"asm\"][\"PyModule_AddIntConstant\"]).apply(null,arguments)};var _PyAST_Validate=Module[\"_PyAST_Validate\"]=function(){return(_PyAST_Validate=Module[\"_PyAST_Validate\"]=Module[\"asm\"][\"PyAST_Validate\"]).apply(null,arguments)};var _PyAST_FromNodeObject=Module[\"_PyAST_FromNodeObject\"]=function(){return(_PyAST_FromNodeObject=Module[\"_PyAST_FromNodeObject\"]=Module[\"asm\"][\"PyAST_FromNodeObject\"]).apply(null,arguments)};var _PyAST_FromNode=Module[\"_PyAST_FromNode\"]=function(){return(_PyAST_FromNode=Module[\"_PyAST_FromNode\"]=Module[\"asm\"][\"PyAST_FromNode\"]).apply(null,arguments)};var __PyAST_GetDocString=Module[\"__PyAST_GetDocString\"]=function(){return(__PyAST_GetDocString=Module[\"__PyAST_GetDocString\"]=Module[\"asm\"][\"_PyAST_GetDocString\"]).apply(null,arguments)};var _PyParser_SimpleParseStringFlagsFilename=Module[\"_PyParser_SimpleParseStringFlagsFilename\"]=function(){return(_PyParser_SimpleParseStringFlagsFilename=Module[\"_PyParser_SimpleParseStringFlagsFilename\"]=Module[\"asm\"][\"PyParser_SimpleParseStringFlagsFilename\"]).apply(null,arguments)};var __PyAST_Optimize=Module[\"__PyAST_Optimize\"]=function(){return(__PyAST_Optimize=Module[\"__PyAST_Optimize\"]=Module[\"asm\"][\"_PyAST_Optimize\"]).apply(null,arguments)};var __PyAST_ExprAsUnicode=Module[\"__PyAST_ExprAsUnicode\"]=function(){return(__PyAST_ExprAsUnicode=Module[\"__PyAST_ExprAsUnicode\"]=Module[\"asm\"][\"_PyAST_ExprAsUnicode\"]).apply(null,arguments)};var __PyBuiltin_Init=Module[\"__PyBuiltin_Init\"]=function(){return(__PyBuiltin_Init=Module[\"__PyBuiltin_Init\"]=Module[\"asm\"][\"_PyBuiltin_Init\"]).apply(null,arguments)};var _PyEval_EvalCodeEx=Module[\"_PyEval_EvalCodeEx\"]=function(){return(_PyEval_EvalCodeEx=Module[\"_PyEval_EvalCodeEx\"]=Module[\"asm\"][\"PyEval_EvalCodeEx\"]).apply(null,arguments)};var _PyImport_ImportModuleLevelObject=Module[\"_PyImport_ImportModuleLevelObject\"]=function(){return(_PyImport_ImportModuleLevelObject=Module[\"_PyImport_ImportModuleLevelObject\"]=Module[\"asm\"][\"PyImport_ImportModuleLevelObject\"]).apply(null,arguments)};var _PySys_GetObject=Module[\"_PySys_GetObject\"]=function(){return(_PySys_GetObject=Module[\"_PySys_GetObject\"]=Module[\"asm\"][\"PySys_GetObject\"]).apply(null,arguments)};var _PyEval_MergeCompilerFlags=Module[\"_PyEval_MergeCompilerFlags\"]=function(){return(_PyEval_MergeCompilerFlags=Module[\"_PyEval_MergeCompilerFlags\"]=Module[\"asm\"][\"PyEval_MergeCompilerFlags\"]).apply(null,arguments)};var _PyArena_New=Module[\"_PyArena_New\"]=function(){return(_PyArena_New=Module[\"_PyArena_New\"]=Module[\"asm\"][\"PyArena_New\"]).apply(null,arguments)};var _PyArena_Free=Module[\"_PyArena_Free\"]=function(){return(_PyArena_Free=Module[\"_PyArena_Free\"]=Module[\"asm\"][\"PyArena_Free\"]).apply(null,arguments)};var _PyAST_CompileObject=Module[\"_PyAST_CompileObject\"]=function(){return(_PyAST_CompileObject=Module[\"_PyAST_CompileObject\"]=Module[\"asm\"][\"PyAST_CompileObject\"]).apply(null,arguments)};var __Py_SourceAsString=Module[\"__Py_SourceAsString\"]=function(){return(__Py_SourceAsString=Module[\"__Py_SourceAsString\"]=Module[\"asm\"][\"_Py_SourceAsString\"]).apply(null,arguments)};var _Py_CompileStringObject=Module[\"_Py_CompileStringObject\"]=function(){return(_Py_CompileStringObject=Module[\"_Py_CompileStringObject\"]=Module[\"asm\"][\"Py_CompileStringObject\"]).apply(null,arguments)};var _PyEval_GetBuiltins=Module[\"_PyEval_GetBuiltins\"]=function(){return(_PyEval_GetBuiltins=Module[\"_PyEval_GetBuiltins\"]=Module[\"asm\"][\"PyEval_GetBuiltins\"]).apply(null,arguments)};var _PyEval_EvalCode=Module[\"_PyEval_EvalCode\"]=function(){return(_PyEval_EvalCode=Module[\"_PyEval_EvalCode\"]=Module[\"asm\"][\"PyEval_EvalCode\"]).apply(null,arguments)};var __PyArg_ParseStackAndKeywords=Module[\"__PyArg_ParseStackAndKeywords\"]=function(){return(__PyArg_ParseStackAndKeywords=Module[\"__PyArg_ParseStackAndKeywords\"]=Module[\"asm\"][\"_PyArg_ParseStackAndKeywords\"]).apply(null,arguments)};var __PyEval_SetSwitchInterval=Module[\"__PyEval_SetSwitchInterval\"]=function(){return(__PyEval_SetSwitchInterval=Module[\"__PyEval_SetSwitchInterval\"]=Module[\"asm\"][\"_PyEval_SetSwitchInterval\"]).apply(null,arguments)};var __PyEval_GetSwitchInterval=Module[\"__PyEval_GetSwitchInterval\"]=function(){return(__PyEval_GetSwitchInterval=Module[\"__PyEval_GetSwitchInterval\"]=Module[\"asm\"][\"_PyEval_GetSwitchInterval\"]).apply(null,arguments)};var __Py_FatalError_TstateNULL=Module[\"__Py_FatalError_TstateNULL\"]=function(){return(__Py_FatalError_TstateNULL=Module[\"__Py_FatalError_TstateNULL\"]=Module[\"asm\"][\"_Py_FatalError_TstateNULL\"]).apply(null,arguments)};var __PyEval_ThreadsInitialized=Module[\"__PyEval_ThreadsInitialized\"]=function(){return(__PyEval_ThreadsInitialized=Module[\"__PyEval_ThreadsInitialized\"]=Module[\"asm\"][\"_PyEval_ThreadsInitialized\"]).apply(null,arguments)};var _PyEval_ThreadsInitialized=Module[\"_PyEval_ThreadsInitialized\"]=function(){return(_PyEval_ThreadsInitialized=Module[\"_PyEval_ThreadsInitialized\"]=Module[\"asm\"][\"PyEval_ThreadsInitialized\"]).apply(null,arguments)};var __PyEval_InitGIL=Module[\"__PyEval_InitGIL\"]=function(){return(__PyEval_InitGIL=Module[\"__PyEval_InitGIL\"]=Module[\"asm\"][\"_PyEval_InitGIL\"]).apply(null,arguments)};var _PyThread_init_thread=Module[\"_PyThread_init_thread\"]=function(){return(_PyThread_init_thread=Module[\"_PyThread_init_thread\"]=Module[\"asm\"][\"PyThread_init_thread\"]).apply(null,arguments)};var _pthread_mutex_init=Module[\"_pthread_mutex_init\"]=function(){return(_pthread_mutex_init=Module[\"_pthread_mutex_init\"]=Module[\"asm\"][\"pthread_mutex_init\"]).apply(null,arguments)};var __PyThread_cond_init=Module[\"__PyThread_cond_init\"]=function(){return(__PyThread_cond_init=Module[\"__PyThread_cond_init\"]=Module[\"asm\"][\"_PyThread_cond_init\"]).apply(null,arguments)};var _pthread_mutex_lock=Module[\"_pthread_mutex_lock\"]=function(){return(_pthread_mutex_lock=Module[\"_pthread_mutex_lock\"]=Module[\"asm\"][\"pthread_mutex_lock\"]).apply(null,arguments)};var __PyThread_cond_after=Module[\"__PyThread_cond_after\"]=function(){return(__PyThread_cond_after=Module[\"__PyThread_cond_after\"]=Module[\"asm\"][\"_PyThread_cond_after\"]).apply(null,arguments)};var _pthread_cond_timedwait=Module[\"_pthread_cond_timedwait\"]=function(){return(_pthread_cond_timedwait=Module[\"_pthread_cond_timedwait\"]=Module[\"asm\"][\"pthread_cond_timedwait\"]).apply(null,arguments)};var _pthread_mutex_unlock=Module[\"_pthread_mutex_unlock\"]=function(){return(_pthread_mutex_unlock=Module[\"_pthread_mutex_unlock\"]=Module[\"asm\"][\"pthread_mutex_unlock\"]).apply(null,arguments)};var _pthread_cond_signal=Module[\"_pthread_cond_signal\"]=function(){return(_pthread_cond_signal=Module[\"_pthread_cond_signal\"]=Module[\"asm\"][\"pthread_cond_signal\"]).apply(null,arguments)};var _PyThread_exit_thread=Module[\"_PyThread_exit_thread\"]=function(){return(_PyThread_exit_thread=Module[\"_PyThread_exit_thread\"]=Module[\"asm\"][\"PyThread_exit_thread\"]).apply(null,arguments)};var _PyThread_get_thread_ident=Module[\"_PyThread_get_thread_ident\"]=function(){return(_PyThread_get_thread_ident=Module[\"_PyThread_get_thread_ident\"]=Module[\"asm\"][\"PyThread_get_thread_ident\"]).apply(null,arguments)};var __PyEval_FiniGIL=Module[\"__PyEval_FiniGIL\"]=function(){return(__PyEval_FiniGIL=Module[\"__PyEval_FiniGIL\"]=Module[\"asm\"][\"_PyEval_FiniGIL\"]).apply(null,arguments)};var _pthread_cond_destroy=Module[\"_pthread_cond_destroy\"]=function(){return(_pthread_cond_destroy=Module[\"_pthread_cond_destroy\"]=Module[\"asm\"][\"pthread_cond_destroy\"]).apply(null,arguments)};var _pthread_mutex_destroy=Module[\"_pthread_mutex_destroy\"]=function(){return(_pthread_mutex_destroy=Module[\"_pthread_mutex_destroy\"]=Module[\"asm\"][\"pthread_mutex_destroy\"]).apply(null,arguments)};var _PyEval_InitThreads=Module[\"_PyEval_InitThreads\"]=function(){return(_PyEval_InitThreads=Module[\"_PyEval_InitThreads\"]=Module[\"asm\"][\"PyEval_InitThreads\"]).apply(null,arguments)};var __PyEval_Fini=Module[\"__PyEval_Fini\"]=function(){return(__PyEval_Fini=Module[\"__PyEval_Fini\"]=Module[\"asm\"][\"_PyEval_Fini\"]).apply(null,arguments)};var _PyEval_AcquireLock=Module[\"_PyEval_AcquireLock\"]=function(){return(_PyEval_AcquireLock=Module[\"_PyEval_AcquireLock\"]=Module[\"asm\"][\"PyEval_AcquireLock\"]).apply(null,arguments)};var _PyEval_ReleaseLock=Module[\"_PyEval_ReleaseLock\"]=function(){return(_PyEval_ReleaseLock=Module[\"_PyEval_ReleaseLock\"]=Module[\"asm\"][\"PyEval_ReleaseLock\"]).apply(null,arguments)};var _pthread_cond_wait=Module[\"_pthread_cond_wait\"]=function(){return(_pthread_cond_wait=Module[\"_pthread_cond_wait\"]=Module[\"asm\"][\"pthread_cond_wait\"]).apply(null,arguments)};var __PyEval_ReleaseLock=Module[\"__PyEval_ReleaseLock\"]=function(){return(__PyEval_ReleaseLock=Module[\"__PyEval_ReleaseLock\"]=Module[\"asm\"][\"_PyEval_ReleaseLock\"]).apply(null,arguments)};var _PyEval_AcquireThread=Module[\"_PyEval_AcquireThread\"]=function(){return(_PyEval_AcquireThread=Module[\"_PyEval_AcquireThread\"]=Module[\"asm\"][\"PyEval_AcquireThread\"]).apply(null,arguments)};var __PyThreadState_Swap=Module[\"__PyThreadState_Swap\"]=function(){return(__PyThreadState_Swap=Module[\"__PyThreadState_Swap\"]=Module[\"asm\"][\"_PyThreadState_Swap\"]).apply(null,arguments)};var _PyEval_ReleaseThread=Module[\"_PyEval_ReleaseThread\"]=function(){return(_PyEval_ReleaseThread=Module[\"_PyEval_ReleaseThread\"]=Module[\"asm\"][\"PyEval_ReleaseThread\"]).apply(null,arguments)};var __PyEval_ReInitThreads=Module[\"__PyEval_ReInitThreads\"]=function(){return(__PyEval_ReInitThreads=Module[\"__PyEval_ReInitThreads\"]=Module[\"asm\"][\"_PyEval_ReInitThreads\"]).apply(null,arguments)};var __PyThread_at_fork_reinit=Module[\"__PyThread_at_fork_reinit\"]=function(){return(__PyThread_at_fork_reinit=Module[\"__PyThread_at_fork_reinit\"]=Module[\"asm\"][\"_PyThread_at_fork_reinit\"]).apply(null,arguments)};var __PyThreadState_DeleteExcept=Module[\"__PyThreadState_DeleteExcept\"]=function(){return(__PyThreadState_DeleteExcept=Module[\"__PyThreadState_DeleteExcept\"]=Module[\"asm\"][\"_PyThreadState_DeleteExcept\"]).apply(null,arguments)};var __PyEval_SignalAsyncExc=Module[\"__PyEval_SignalAsyncExc\"]=function(){return(__PyEval_SignalAsyncExc=Module[\"__PyEval_SignalAsyncExc\"]=Module[\"asm\"][\"_PyEval_SignalAsyncExc\"]).apply(null,arguments)};var __PyEval_SignalReceived=Module[\"__PyEval_SignalReceived\"]=function(){return(__PyEval_SignalReceived=Module[\"__PyEval_SignalReceived\"]=Module[\"asm\"][\"_PyEval_SignalReceived\"]).apply(null,arguments)};var __PyEval_AddPendingCall=Module[\"__PyEval_AddPendingCall\"]=function(){return(__PyEval_AddPendingCall=Module[\"__PyEval_AddPendingCall\"]=Module[\"asm\"][\"_PyEval_AddPendingCall\"]).apply(null,arguments)};var _Py_AddPendingCall=Module[\"_Py_AddPendingCall\"]=function(){return(_Py_AddPendingCall=Module[\"_Py_AddPendingCall\"]=Module[\"asm\"][\"Py_AddPendingCall\"]).apply(null,arguments)};var _PyGILState_GetThisThreadState=Module[\"_PyGILState_GetThisThreadState\"]=function(){return(_PyGILState_GetThisThreadState=Module[\"_PyGILState_GetThisThreadState\"]=Module[\"asm\"][\"PyGILState_GetThisThreadState\"]).apply(null,arguments)};var __Py_FinishPendingCalls=Module[\"__Py_FinishPendingCalls\"]=function(){return(__Py_FinishPendingCalls=Module[\"__Py_FinishPendingCalls\"]=Module[\"asm\"][\"_Py_FinishPendingCalls\"]).apply(null,arguments)};var __PyErr_Fetch=Module[\"__PyErr_Fetch\"]=function(){return(__PyErr_Fetch=Module[\"__PyErr_Fetch\"]=Module[\"asm\"][\"_PyErr_Fetch\"]).apply(null,arguments)};var __PyErr_Print=Module[\"__PyErr_Print\"]=function(){return(__PyErr_Print=Module[\"__PyErr_Print\"]=Module[\"asm\"][\"_PyErr_Print\"]).apply(null,arguments)};var _Py_MakePendingCalls=Module[\"_Py_MakePendingCalls\"]=function(){return(_Py_MakePendingCalls=Module[\"_Py_MakePendingCalls\"]=Module[\"asm\"][\"Py_MakePendingCalls\"]).apply(null,arguments)};var __PyErr_CheckSignalsTstate=Module[\"__PyErr_CheckSignalsTstate\"]=function(){return(__PyErr_CheckSignalsTstate=Module[\"__PyErr_CheckSignalsTstate\"]=Module[\"asm\"][\"_PyErr_CheckSignalsTstate\"]).apply(null,arguments)};var __PyEval_InitRuntimeState=Module[\"__PyEval_InitRuntimeState\"]=function(){return(__PyEval_InitRuntimeState=Module[\"__PyEval_InitRuntimeState\"]=Module[\"asm\"][\"_PyEval_InitRuntimeState\"]).apply(null,arguments)};var __PyEval_InitState=Module[\"__PyEval_InitState\"]=function(){return(__PyEval_InitState=Module[\"__PyEval_InitState\"]=Module[\"asm\"][\"_PyEval_InitState\"]).apply(null,arguments)};var __PyEval_FiniState=Module[\"__PyEval_FiniState\"]=function(){return(__PyEval_FiniState=Module[\"__PyEval_FiniState\"]=Module[\"asm\"][\"_PyEval_FiniState\"]).apply(null,arguments)};var _PyThread_free_lock=Module[\"_PyThread_free_lock\"]=function(){return(_PyThread_free_lock=Module[\"_PyThread_free_lock\"]=Module[\"asm\"][\"PyThread_free_lock\"]).apply(null,arguments)};var _Py_GetRecursionLimit=Module[\"_Py_GetRecursionLimit\"]=function(){return(_Py_GetRecursionLimit=Module[\"_Py_GetRecursionLimit\"]=Module[\"asm\"][\"Py_GetRecursionLimit\"]).apply(null,arguments)};var _Py_SetRecursionLimit=Module[\"_Py_SetRecursionLimit\"]=function(){return(_Py_SetRecursionLimit=Module[\"_Py_SetRecursionLimit\"]=Module[\"asm\"][\"Py_SetRecursionLimit\"]).apply(null,arguments)};var _PyEval_EvalFrame=Module[\"_PyEval_EvalFrame\"]=function(){return(_PyEval_EvalFrame=Module[\"_PyEval_EvalFrame\"]=Module[\"asm\"][\"PyEval_EvalFrame\"]).apply(null,arguments)};var _PyEval_EvalFrameEx=Module[\"_PyEval_EvalFrameEx\"]=function(){return(_PyEval_EvalFrameEx=Module[\"_PyEval_EvalFrameEx\"]=Module[\"asm\"][\"PyEval_EvalFrameEx\"]).apply(null,arguments)};var __PyErr_SetNone=Module[\"__PyErr_SetNone\"]=function(){return(__PyErr_SetNone=Module[\"__PyErr_SetNone\"]=Module[\"asm\"][\"_PyErr_SetNone\"]).apply(null,arguments)};var __PyErr_GetTopmostException=Module[\"__PyErr_GetTopmostException\"]=function(){return(__PyErr_GetTopmostException=Module[\"__PyErr_GetTopmostException\"]=Module[\"asm\"][\"_PyErr_GetTopmostException\"]).apply(null,arguments)};var __PyErr_Restore=Module[\"__PyErr_Restore\"]=function(){return(__PyErr_Restore=Module[\"__PyErr_Restore\"]=Module[\"asm\"][\"_PyErr_Restore\"]).apply(null,arguments)};var __PyErr_SetObject=Module[\"__PyErr_SetObject\"]=function(){return(__PyErr_SetObject=Module[\"__PyErr_SetObject\"]=Module[\"asm\"][\"_PyErr_SetObject\"]).apply(null,arguments)};var __PyErr_ExceptionMatches=Module[\"__PyErr_ExceptionMatches\"]=function(){return(__PyErr_ExceptionMatches=Module[\"__PyErr_ExceptionMatches\"]=Module[\"asm\"][\"_PyErr_ExceptionMatches\"]).apply(null,arguments)};var __PyErr_Clear=Module[\"__PyErr_Clear\"]=function(){return(__PyErr_Clear=Module[\"__PyErr_Clear\"]=Module[\"asm\"][\"_PyErr_Clear\"]).apply(null,arguments)};var _PyErr_SetImportError=Module[\"_PyErr_SetImportError\"]=function(){return(_PyErr_SetImportError=Module[\"_PyErr_SetImportError\"]=Module[\"asm\"][\"PyErr_SetImportError\"]).apply(null,arguments)};var _PyTraceBack_Here=Module[\"_PyTraceBack_Here\"]=function(){return(_PyTraceBack_Here=Module[\"_PyTraceBack_Here\"]=Module[\"asm\"][\"PyTraceBack_Here\"]).apply(null,arguments)};var __PyErr_NormalizeException=Module[\"__PyErr_NormalizeException\"]=function(){return(__PyErr_NormalizeException=Module[\"__PyErr_NormalizeException\"]=Module[\"asm\"][\"_PyErr_NormalizeException\"]).apply(null,arguments)};var __PyEval_EvalCodeWithName=Module[\"__PyEval_EvalCodeWithName\"]=function(){return(__PyEval_EvalCodeWithName=Module[\"__PyEval_EvalCodeWithName\"]=Module[\"asm\"][\"_PyEval_EvalCodeWithName\"]).apply(null,arguments)};var __PyEval_CallTracing=Module[\"__PyEval_CallTracing\"]=function(){return(__PyEval_CallTracing=Module[\"__PyEval_CallTracing\"]=Module[\"asm\"][\"_PyEval_CallTracing\"]).apply(null,arguments)};var __PyEval_SetProfile=Module[\"__PyEval_SetProfile\"]=function(){return(__PyEval_SetProfile=Module[\"__PyEval_SetProfile\"]=Module[\"asm\"][\"_PyEval_SetProfile\"]).apply(null,arguments)};var __PySys_Audit=Module[\"__PySys_Audit\"]=function(){return(__PySys_Audit=Module[\"__PySys_Audit\"]=Module[\"asm\"][\"_PySys_Audit\"]).apply(null,arguments)};var _PyEval_SetProfile=Module[\"_PyEval_SetProfile\"]=function(){return(_PyEval_SetProfile=Module[\"_PyEval_SetProfile\"]=Module[\"asm\"][\"PyEval_SetProfile\"]).apply(null,arguments)};var __PyEval_SetTrace=Module[\"__PyEval_SetTrace\"]=function(){return(__PyEval_SetTrace=Module[\"__PyEval_SetTrace\"]=Module[\"asm\"][\"_PyEval_SetTrace\"]).apply(null,arguments)};var _PyEval_SetTrace=Module[\"_PyEval_SetTrace\"]=function(){return(_PyEval_SetTrace=Module[\"_PyEval_SetTrace\"]=Module[\"asm\"][\"PyEval_SetTrace\"]).apply(null,arguments)};var _PyPyodide_SetPyodideCallback=Module[\"_PyPyodide_SetPyodideCallback\"]=function(){return(_PyPyodide_SetPyodideCallback=Module[\"_PyPyodide_SetPyodideCallback\"]=Module[\"asm\"][\"PyPyodide_SetPyodideCallback\"]).apply(null,arguments)};var __PyEval_SetCoroutineOriginTrackingDepth=Module[\"__PyEval_SetCoroutineOriginTrackingDepth\"]=function(){return(__PyEval_SetCoroutineOriginTrackingDepth=Module[\"__PyEval_SetCoroutineOriginTrackingDepth\"]=Module[\"asm\"][\"_PyEval_SetCoroutineOriginTrackingDepth\"]).apply(null,arguments)};var __PyEval_GetCoroutineOriginTrackingDepth=Module[\"__PyEval_GetCoroutineOriginTrackingDepth\"]=function(){return(__PyEval_GetCoroutineOriginTrackingDepth=Module[\"__PyEval_GetCoroutineOriginTrackingDepth\"]=Module[\"asm\"][\"_PyEval_GetCoroutineOriginTrackingDepth\"]).apply(null,arguments)};var __PyEval_SetAsyncGenFirstiter=Module[\"__PyEval_SetAsyncGenFirstiter\"]=function(){return(__PyEval_SetAsyncGenFirstiter=Module[\"__PyEval_SetAsyncGenFirstiter\"]=Module[\"asm\"][\"_PyEval_SetAsyncGenFirstiter\"]).apply(null,arguments)};var __PyEval_GetAsyncGenFirstiter=Module[\"__PyEval_GetAsyncGenFirstiter\"]=function(){return(__PyEval_GetAsyncGenFirstiter=Module[\"__PyEval_GetAsyncGenFirstiter\"]=Module[\"asm\"][\"_PyEval_GetAsyncGenFirstiter\"]).apply(null,arguments)};var __PyEval_SetAsyncGenFinalizer=Module[\"__PyEval_SetAsyncGenFinalizer\"]=function(){return(__PyEval_SetAsyncGenFinalizer=Module[\"__PyEval_SetAsyncGenFinalizer\"]=Module[\"asm\"][\"_PyEval_SetAsyncGenFinalizer\"]).apply(null,arguments)};var __PyEval_GetAsyncGenFinalizer=Module[\"__PyEval_GetAsyncGenFinalizer\"]=function(){return(__PyEval_GetAsyncGenFinalizer=Module[\"__PyEval_GetAsyncGenFinalizer\"]=Module[\"asm\"][\"_PyEval_GetAsyncGenFinalizer\"]).apply(null,arguments)};var _PyEval_GetFuncName=Module[\"_PyEval_GetFuncName\"]=function(){return(_PyEval_GetFuncName=Module[\"_PyEval_GetFuncName\"]=Module[\"asm\"][\"PyEval_GetFuncName\"]).apply(null,arguments)};var _PyEval_GetFuncDesc=Module[\"_PyEval_GetFuncDesc\"]=function(){return(_PyEval_GetFuncDesc=Module[\"_PyEval_GetFuncDesc\"]=Module[\"asm\"][\"PyEval_GetFuncDesc\"]).apply(null,arguments)};var __PyEval_RequestCodeExtraIndex=Module[\"__PyEval_RequestCodeExtraIndex\"]=function(){return(__PyEval_RequestCodeExtraIndex=Module[\"__PyEval_RequestCodeExtraIndex\"]=Module[\"asm\"][\"_PyEval_RequestCodeExtraIndex\"]).apply(null,arguments)};var _PyCodec_Register=Module[\"_PyCodec_Register\"]=function(){return(_PyCodec_Register=Module[\"_PyCodec_Register\"]=Module[\"asm\"][\"PyCodec_Register\"]).apply(null,arguments)};var __PyCodec_Forget=Module[\"__PyCodec_Forget\"]=function(){return(__PyCodec_Forget=Module[\"__PyCodec_Forget\"]=Module[\"asm\"][\"_PyCodec_Forget\"]).apply(null,arguments)};var _PyCodec_KnownEncoding=Module[\"_PyCodec_KnownEncoding\"]=function(){return(_PyCodec_KnownEncoding=Module[\"_PyCodec_KnownEncoding\"]=Module[\"asm\"][\"PyCodec_KnownEncoding\"]).apply(null,arguments)};var __PyCodecInfo_GetIncrementalDecoder=Module[\"__PyCodecInfo_GetIncrementalDecoder\"]=function(){return(__PyCodecInfo_GetIncrementalDecoder=Module[\"__PyCodecInfo_GetIncrementalDecoder\"]=Module[\"asm\"][\"_PyCodecInfo_GetIncrementalDecoder\"]).apply(null,arguments)};var __PyCodecInfo_GetIncrementalEncoder=Module[\"__PyCodecInfo_GetIncrementalEncoder\"]=function(){return(__PyCodecInfo_GetIncrementalEncoder=Module[\"__PyCodecInfo_GetIncrementalEncoder\"]=Module[\"asm\"][\"_PyCodecInfo_GetIncrementalEncoder\"]).apply(null,arguments)};var _PyCodec_Encoder=Module[\"_PyCodec_Encoder\"]=function(){return(_PyCodec_Encoder=Module[\"_PyCodec_Encoder\"]=Module[\"asm\"][\"PyCodec_Encoder\"]).apply(null,arguments)};var _PyCodec_Decoder=Module[\"_PyCodec_Decoder\"]=function(){return(_PyCodec_Decoder=Module[\"_PyCodec_Decoder\"]=Module[\"asm\"][\"PyCodec_Decoder\"]).apply(null,arguments)};var _PyCodec_IncrementalEncoder=Module[\"_PyCodec_IncrementalEncoder\"]=function(){return(_PyCodec_IncrementalEncoder=Module[\"_PyCodec_IncrementalEncoder\"]=Module[\"asm\"][\"PyCodec_IncrementalEncoder\"]).apply(null,arguments)};var _PyCodec_IncrementalDecoder=Module[\"_PyCodec_IncrementalDecoder\"]=function(){return(_PyCodec_IncrementalDecoder=Module[\"_PyCodec_IncrementalDecoder\"]=Module[\"asm\"][\"PyCodec_IncrementalDecoder\"]).apply(null,arguments)};var _PyCodec_StreamReader=Module[\"_PyCodec_StreamReader\"]=function(){return(_PyCodec_StreamReader=Module[\"_PyCodec_StreamReader\"]=Module[\"asm\"][\"PyCodec_StreamReader\"]).apply(null,arguments)};var _PyCodec_StreamWriter=Module[\"_PyCodec_StreamWriter\"]=function(){return(_PyCodec_StreamWriter=Module[\"_PyCodec_StreamWriter\"]=Module[\"asm\"][\"PyCodec_StreamWriter\"]).apply(null,arguments)};var __PyCodec_LookupTextEncoding=Module[\"__PyCodec_LookupTextEncoding\"]=function(){return(__PyCodec_LookupTextEncoding=Module[\"__PyCodec_LookupTextEncoding\"]=Module[\"asm\"][\"_PyCodec_LookupTextEncoding\"]).apply(null,arguments)};var _PyCodec_RegisterError=Module[\"_PyCodec_RegisterError\"]=function(){return(_PyCodec_RegisterError=Module[\"_PyCodec_RegisterError\"]=Module[\"asm\"][\"PyCodec_RegisterError\"]).apply(null,arguments)};var _PyCodec_IgnoreErrors=Module[\"_PyCodec_IgnoreErrors\"]=function(){return(_PyCodec_IgnoreErrors=Module[\"_PyCodec_IgnoreErrors\"]=Module[\"asm\"][\"PyCodec_IgnoreErrors\"]).apply(null,arguments)};var _PyCodec_ReplaceErrors=Module[\"_PyCodec_ReplaceErrors\"]=function(){return(_PyCodec_ReplaceErrors=Module[\"_PyCodec_ReplaceErrors\"]=Module[\"asm\"][\"PyCodec_ReplaceErrors\"]).apply(null,arguments)};var _PyCodec_XMLCharRefReplaceErrors=Module[\"_PyCodec_XMLCharRefReplaceErrors\"]=function(){return(_PyCodec_XMLCharRefReplaceErrors=Module[\"_PyCodec_XMLCharRefReplaceErrors\"]=Module[\"asm\"][\"PyCodec_XMLCharRefReplaceErrors\"]).apply(null,arguments)};var _PyCodec_BackslashReplaceErrors=Module[\"_PyCodec_BackslashReplaceErrors\"]=function(){return(_PyCodec_BackslashReplaceErrors=Module[\"_PyCodec_BackslashReplaceErrors\"]=Module[\"asm\"][\"PyCodec_BackslashReplaceErrors\"]).apply(null,arguments)};var _PyCodec_NameReplaceErrors=Module[\"_PyCodec_NameReplaceErrors\"]=function(){return(_PyCodec_NameReplaceErrors=Module[\"_PyCodec_NameReplaceErrors\"]=Module[\"asm\"][\"PyCodec_NameReplaceErrors\"]).apply(null,arguments)};var _PyFuture_FromASTObject=Module[\"_PyFuture_FromASTObject\"]=function(){return(_PyFuture_FromASTObject=Module[\"_PyFuture_FromASTObject\"]=Module[\"asm\"][\"PyFuture_FromASTObject\"]).apply(null,arguments)};var _PySymtable_BuildObject=Module[\"_PySymtable_BuildObject\"]=function(){return(_PySymtable_BuildObject=Module[\"_PySymtable_BuildObject\"]=Module[\"asm\"][\"PySymtable_BuildObject\"]).apply(null,arguments)};var _PySymtable_Free=Module[\"_PySymtable_Free\"]=function(){return(_PySymtable_Free=Module[\"_PySymtable_Free\"]=Module[\"asm\"][\"PySymtable_Free\"]).apply(null,arguments)};var _PyAST_CompileEx=Module[\"_PyAST_CompileEx\"]=function(){return(_PyAST_CompileEx=Module[\"_PyAST_CompileEx\"]=Module[\"asm\"][\"PyAST_CompileEx\"]).apply(null,arguments)};var _PyNode_Compile=Module[\"_PyNode_Compile\"]=function(){return(_PyNode_Compile=Module[\"_PyNode_Compile\"]=Module[\"asm\"][\"PyNode_Compile\"]).apply(null,arguments)};var _PyCompile_OpcodeStackEffectWithJump=Module[\"_PyCompile_OpcodeStackEffectWithJump\"]=function(){return(_PyCompile_OpcodeStackEffectWithJump=Module[\"_PyCompile_OpcodeStackEffectWithJump\"]=Module[\"asm\"][\"PyCompile_OpcodeStackEffectWithJump\"]).apply(null,arguments)};var _PyCompile_OpcodeStackEffect=Module[\"_PyCompile_OpcodeStackEffect\"]=function(){return(_PyCompile_OpcodeStackEffect=Module[\"_PyCompile_OpcodeStackEffect\"]=Module[\"asm\"][\"PyCompile_OpcodeStackEffect\"]).apply(null,arguments)};var _PyAST_Compile=Module[\"_PyAST_Compile\"]=function(){return(_PyAST_Compile=Module[\"_PyAST_Compile\"]=Module[\"asm\"][\"PyAST_Compile\"]).apply(null,arguments)};var _PySymtable_Lookup=Module[\"_PySymtable_Lookup\"]=function(){return(_PySymtable_Lookup=Module[\"_PySymtable_Lookup\"]=Module[\"asm\"][\"PySymtable_Lookup\"]).apply(null,arguments)};var _PyST_GetScope=Module[\"_PyST_GetScope\"]=function(){return(_PyST_GetScope=Module[\"_PyST_GetScope\"]=Module[\"asm\"][\"PyST_GetScope\"]).apply(null,arguments)};var _PyCode_Optimize=Module[\"_PyCode_Optimize\"]=function(){return(_PyCode_Optimize=Module[\"_PyCode_Optimize\"]=Module[\"asm\"][\"PyCode_Optimize\"]).apply(null,arguments)};var __PyContext_NewHamtForTests=Module[\"__PyContext_NewHamtForTests\"]=function(){return(__PyContext_NewHamtForTests=Module[\"__PyContext_NewHamtForTests\"]=Module[\"asm\"][\"_PyContext_NewHamtForTests\"]).apply(null,arguments)};var __PyHamt_New=Module[\"__PyHamt_New\"]=function(){return(__PyHamt_New=Module[\"__PyHamt_New\"]=Module[\"asm\"][\"_PyHamt_New\"]).apply(null,arguments)};var _PyContext_New=Module[\"_PyContext_New\"]=function(){return(_PyContext_New=Module[\"_PyContext_New\"]=Module[\"asm\"][\"PyContext_New\"]).apply(null,arguments)};var _PyContext_Copy=Module[\"_PyContext_Copy\"]=function(){return(_PyContext_Copy=Module[\"_PyContext_Copy\"]=Module[\"asm\"][\"PyContext_Copy\"]).apply(null,arguments)};var _PyContext_CopyCurrent=Module[\"_PyContext_CopyCurrent\"]=function(){return(_PyContext_CopyCurrent=Module[\"_PyContext_CopyCurrent\"]=Module[\"asm\"][\"PyContext_CopyCurrent\"]).apply(null,arguments)};var _PyContext_Enter=Module[\"_PyContext_Enter\"]=function(){return(_PyContext_Enter=Module[\"_PyContext_Enter\"]=Module[\"asm\"][\"PyContext_Enter\"]).apply(null,arguments)};var _PyContext_Exit=Module[\"_PyContext_Exit\"]=function(){return(_PyContext_Exit=Module[\"_PyContext_Exit\"]=Module[\"asm\"][\"PyContext_Exit\"]).apply(null,arguments)};var _PyContextVar_New=Module[\"_PyContextVar_New\"]=function(){return(_PyContextVar_New=Module[\"_PyContextVar_New\"]=Module[\"asm\"][\"PyContextVar_New\"]).apply(null,arguments)};var _PyContextVar_Get=Module[\"_PyContextVar_Get\"]=function(){return(_PyContextVar_Get=Module[\"_PyContextVar_Get\"]=Module[\"asm\"][\"PyContextVar_Get\"]).apply(null,arguments)};var __PyHamt_Find=Module[\"__PyHamt_Find\"]=function(){return(__PyHamt_Find=Module[\"__PyHamt_Find\"]=Module[\"asm\"][\"_PyHamt_Find\"]).apply(null,arguments)};var _PyContextVar_Set=Module[\"_PyContextVar_Set\"]=function(){return(_PyContextVar_Set=Module[\"_PyContextVar_Set\"]=Module[\"asm\"][\"PyContextVar_Set\"]).apply(null,arguments)};var __PyHamt_Assoc=Module[\"__PyHamt_Assoc\"]=function(){return(__PyHamt_Assoc=Module[\"__PyHamt_Assoc\"]=Module[\"asm\"][\"_PyHamt_Assoc\"]).apply(null,arguments)};var _PyContextVar_Reset=Module[\"_PyContextVar_Reset\"]=function(){return(_PyContextVar_Reset=Module[\"_PyContextVar_Reset\"]=Module[\"asm\"][\"PyContextVar_Reset\"]).apply(null,arguments)};var __PyHamt_Without=Module[\"__PyHamt_Without\"]=function(){return(__PyHamt_Without=Module[\"__PyHamt_Without\"]=Module[\"asm\"][\"_PyHamt_Without\"]).apply(null,arguments)};var __PyHamt_Eq=Module[\"__PyHamt_Eq\"]=function(){return(__PyHamt_Eq=Module[\"__PyHamt_Eq\"]=Module[\"asm\"][\"_PyHamt_Eq\"]).apply(null,arguments)};var __PyHamt_NewIterKeys=Module[\"__PyHamt_NewIterKeys\"]=function(){return(__PyHamt_NewIterKeys=Module[\"__PyHamt_NewIterKeys\"]=Module[\"asm\"][\"_PyHamt_NewIterKeys\"]).apply(null,arguments)};var __PyContext_ClearFreeList=Module[\"__PyContext_ClearFreeList\"]=function(){return(__PyContext_ClearFreeList=Module[\"__PyContext_ClearFreeList\"]=Module[\"asm\"][\"_PyContext_ClearFreeList\"]).apply(null,arguments)};var __PyContext_Fini=Module[\"__PyContext_Fini\"]=function(){return(__PyContext_Fini=Module[\"__PyContext_Fini\"]=Module[\"asm\"][\"_PyContext_Fini\"]).apply(null,arguments)};var __PyHamt_Fini=Module[\"__PyHamt_Fini\"]=function(){return(__PyHamt_Fini=Module[\"__PyHamt_Fini\"]=Module[\"asm\"][\"_PyHamt_Fini\"]).apply(null,arguments)};var __PyContext_Init=Module[\"__PyContext_Init\"]=function(){return(__PyContext_Init=Module[\"__PyContext_Init\"]=Module[\"asm\"][\"_PyContext_Init\"]).apply(null,arguments)};var __PyHamt_Init=Module[\"__PyHamt_Init\"]=function(){return(__PyHamt_Init=Module[\"__PyHamt_Init\"]=Module[\"asm\"][\"_PyHamt_Init\"]).apply(null,arguments)};var __PyHamt_Len=Module[\"__PyHamt_Len\"]=function(){return(__PyHamt_Len=Module[\"__PyHamt_Len\"]=Module[\"asm\"][\"_PyHamt_Len\"]).apply(null,arguments)};var __PyHamt_NewIterItems=Module[\"__PyHamt_NewIterItems\"]=function(){return(__PyHamt_NewIterItems=Module[\"__PyHamt_NewIterItems\"]=Module[\"asm\"][\"_PyHamt_NewIterItems\"]).apply(null,arguments)};var __PyHamt_NewIterValues=Module[\"__PyHamt_NewIterValues\"]=function(){return(__PyHamt_NewIterValues=Module[\"__PyHamt_NewIterValues\"]=Module[\"asm\"][\"_PyHamt_NewIterValues\"]).apply(null,arguments)};var __PyErr_GetExcInfo=Module[\"__PyErr_GetExcInfo\"]=function(){return(__PyErr_GetExcInfo=Module[\"__PyErr_GetExcInfo\"]=Module[\"asm\"][\"_PyErr_GetExcInfo\"]).apply(null,arguments)};var _PyErr_GetExcInfo=Module[\"_PyErr_GetExcInfo\"]=function(){return(_PyErr_GetExcInfo=Module[\"_PyErr_GetExcInfo\"]=Module[\"asm\"][\"PyErr_GetExcInfo\"]).apply(null,arguments)};var _PyErr_SetExcInfo=Module[\"_PyErr_SetExcInfo\"]=function(){return(_PyErr_SetExcInfo=Module[\"_PyErr_SetExcInfo\"]=Module[\"asm\"][\"PyErr_SetExcInfo\"]).apply(null,arguments)};var _PyErr_SetFromErrnoWithFilenameObject=Module[\"_PyErr_SetFromErrnoWithFilenameObject\"]=function(){return(_PyErr_SetFromErrnoWithFilenameObject=Module[\"_PyErr_SetFromErrnoWithFilenameObject\"]=Module[\"asm\"][\"PyErr_SetFromErrnoWithFilenameObject\"]).apply(null,arguments)};var _PyErr_SetFromErrnoWithFilenameObjects=Module[\"_PyErr_SetFromErrnoWithFilenameObjects\"]=function(){return(_PyErr_SetFromErrnoWithFilenameObjects=Module[\"_PyErr_SetFromErrnoWithFilenameObjects\"]=Module[\"asm\"][\"PyErr_SetFromErrnoWithFilenameObjects\"]).apply(null,arguments)};var _strerror=Module[\"_strerror\"]=function(){return(_strerror=Module[\"_strerror\"]=Module[\"asm\"][\"strerror\"]).apply(null,arguments)};var _PyErr_SetImportErrorSubclass=Module[\"_PyErr_SetImportErrorSubclass\"]=function(){return(_PyErr_SetImportErrorSubclass=Module[\"_PyErr_SetImportErrorSubclass\"]=Module[\"asm\"][\"PyErr_SetImportErrorSubclass\"]).apply(null,arguments)};var _PyErr_BadInternalCall=Module[\"_PyErr_BadInternalCall\"]=function(){return(_PyErr_BadInternalCall=Module[\"_PyErr_BadInternalCall\"]=Module[\"asm\"][\"PyErr_BadInternalCall\"]).apply(null,arguments)};var _PyErr_FormatV=Module[\"_PyErr_FormatV\"]=function(){return(_PyErr_FormatV=Module[\"_PyErr_FormatV\"]=Module[\"asm\"][\"PyErr_FormatV\"]).apply(null,arguments)};var __PyErr_Init=Module[\"__PyErr_Init\"]=function(){return(__PyErr_Init=Module[\"__PyErr_Init\"]=Module[\"asm\"][\"_PyErr_Init\"]).apply(null,arguments)};var __PyErr_WriteUnraisableDefaultHook=Module[\"__PyErr_WriteUnraisableDefaultHook\"]=function(){return(__PyErr_WriteUnraisableDefaultHook=Module[\"__PyErr_WriteUnraisableDefaultHook\"]=Module[\"asm\"][\"_PyErr_WriteUnraisableDefaultHook\"]).apply(null,arguments)};var _PyTraceBack_Print=Module[\"_PyTraceBack_Print\"]=function(){return(_PyTraceBack_Print=Module[\"_PyTraceBack_Print\"]=Module[\"asm\"][\"PyTraceBack_Print\"]).apply(null,arguments)};var __PyTraceBack_FromFrame=Module[\"__PyTraceBack_FromFrame\"]=function(){return(__PyTraceBack_FromFrame=Module[\"__PyTraceBack_FromFrame\"]=Module[\"asm\"][\"_PyTraceBack_FromFrame\"]).apply(null,arguments)};var _PyErr_SyntaxLocation=Module[\"_PyErr_SyntaxLocation\"]=function(){return(_PyErr_SyntaxLocation=Module[\"_PyErr_SyntaxLocation\"]=Module[\"asm\"][\"PyErr_SyntaxLocation\"]).apply(null,arguments)};var _PyErr_SyntaxLocationEx=Module[\"_PyErr_SyntaxLocationEx\"]=function(){return(_PyErr_SyntaxLocationEx=Module[\"_PyErr_SyntaxLocationEx\"]=Module[\"asm\"][\"PyErr_SyntaxLocationEx\"]).apply(null,arguments)};var _PyErr_SyntaxLocationObject=Module[\"_PyErr_SyntaxLocationObject\"]=function(){return(_PyErr_SyntaxLocationObject=Module[\"_PyErr_SyntaxLocationObject\"]=Module[\"asm\"][\"PyErr_SyntaxLocationObject\"]).apply(null,arguments)};var __Py_fopen_obj=Module[\"__Py_fopen_obj\"]=function(){return(__Py_fopen_obj=Module[\"__Py_fopen_obj\"]=Module[\"asm\"][\"_Py_fopen_obj\"]).apply(null,arguments)};var _PyErr_ProgramText=Module[\"_PyErr_ProgramText\"]=function(){return(_PyErr_ProgramText=Module[\"_PyErr_ProgramText\"]=Module[\"asm\"][\"PyErr_ProgramText\"]).apply(null,arguments)};var __Py_fopen=Module[\"__Py_fopen\"]=function(){return(__Py_fopen=Module[\"__Py_fopen\"]=Module[\"asm\"][\"_Py_fopen\"]).apply(null,arguments)};var _Py_FrozenMain=Module[\"_Py_FrozenMain\"]=function(){return(_Py_FrozenMain=Module[\"_Py_FrozenMain\"]=Module[\"asm\"][\"Py_FrozenMain\"]).apply(null,arguments)};var __PyRuntime_Initialize=Module[\"__PyRuntime_Initialize\"]=function(){return(__PyRuntime_Initialize=Module[\"__PyRuntime_Initialize\"]=Module[\"asm\"][\"_PyRuntime_Initialize\"]).apply(null,arguments)};var _getenv=Module[\"_getenv\"]=function(){return(_getenv=Module[\"_getenv\"]=Module[\"asm\"][\"getenv\"]).apply(null,arguments)};var _setbuf=Module[\"_setbuf\"]=function(){return(_setbuf=Module[\"_setbuf\"]=Module[\"asm\"][\"setbuf\"]).apply(null,arguments)};var _setlocale=Module[\"_setlocale\"]=function(){return(_setlocale=Module[\"_setlocale\"]=Module[\"asm\"][\"setlocale\"]).apply(null,arguments)};var _Py_DecodeLocale=Module[\"_Py_DecodeLocale\"]=function(){return(_Py_DecodeLocale=Module[\"_Py_DecodeLocale\"]=Module[\"asm\"][\"Py_DecodeLocale\"]).apply(null,arguments)};var _Py_SetProgramName=Module[\"_Py_SetProgramName\"]=function(){return(_Py_SetProgramName=Module[\"_Py_SetProgramName\"]=Module[\"asm\"][\"Py_SetProgramName\"]).apply(null,arguments)};var _Py_GetVersion=Module[\"_Py_GetVersion\"]=function(){return(_Py_GetVersion=Module[\"_Py_GetVersion\"]=Module[\"asm\"][\"Py_GetVersion\"]).apply(null,arguments)};var _Py_GetCopyright=Module[\"_Py_GetCopyright\"]=function(){return(_Py_GetCopyright=Module[\"_Py_GetCopyright\"]=Module[\"asm\"][\"Py_GetCopyright\"]).apply(null,arguments)};var _PySys_SetArgv=Module[\"_PySys_SetArgv\"]=function(){return(_PySys_SetArgv=Module[\"_PySys_SetArgv\"]=Module[\"asm\"][\"PySys_SetArgv\"]).apply(null,arguments)};var _PyImport_ImportFrozenModule=Module[\"_PyImport_ImportFrozenModule\"]=function(){return(_PyImport_ImportFrozenModule=Module[\"_PyImport_ImportFrozenModule\"]=Module[\"asm\"][\"PyImport_ImportFrozenModule\"]).apply(null,arguments)};var _PyRun_AnyFileExFlags=Module[\"_PyRun_AnyFileExFlags\"]=function(){return(_PyRun_AnyFileExFlags=Module[\"_PyRun_AnyFileExFlags\"]=Module[\"asm\"][\"PyRun_AnyFileExFlags\"]).apply(null,arguments)};var _Py_FinalizeEx=Module[\"_Py_FinalizeEx\"]=function(){return(_Py_FinalizeEx=Module[\"_Py_FinalizeEx\"]=Module[\"asm\"][\"Py_FinalizeEx\"]).apply(null,arguments)};var _PyFuture_FromAST=Module[\"_PyFuture_FromAST\"]=function(){return(_PyFuture_FromAST=Module[\"_PyFuture_FromAST\"]=Module[\"asm\"][\"PyFuture_FromAST\"]).apply(null,arguments)};var _PyArg_Parse=Module[\"_PyArg_Parse\"]=function(){return(_PyArg_Parse=Module[\"_PyArg_Parse\"]=Module[\"asm\"][\"PyArg_Parse\"]).apply(null,arguments)};var __PyArg_Parse_SizeT=Module[\"__PyArg_Parse_SizeT\"]=function(){return(__PyArg_Parse_SizeT=Module[\"__PyArg_Parse_SizeT\"]=Module[\"asm\"][\"_PyArg_Parse_SizeT\"]).apply(null,arguments)};var __PyArg_ParseStack=Module[\"__PyArg_ParseStack\"]=function(){return(__PyArg_ParseStack=Module[\"__PyArg_ParseStack\"]=Module[\"asm\"][\"_PyArg_ParseStack\"]).apply(null,arguments)};var __PyArg_ParseStack_SizeT=Module[\"__PyArg_ParseStack_SizeT\"]=function(){return(__PyArg_ParseStack_SizeT=Module[\"__PyArg_ParseStack_SizeT\"]=Module[\"asm\"][\"_PyArg_ParseStack_SizeT\"]).apply(null,arguments)};var _PyArg_VaParse=Module[\"_PyArg_VaParse\"]=function(){return(_PyArg_VaParse=Module[\"_PyArg_VaParse\"]=Module[\"asm\"][\"PyArg_VaParse\"]).apply(null,arguments)};var __PyArg_VaParse_SizeT=Module[\"__PyArg_VaParse_SizeT\"]=function(){return(__PyArg_VaParse_SizeT=Module[\"__PyArg_VaParse_SizeT\"]=Module[\"asm\"][\"_PyArg_VaParse_SizeT\"]).apply(null,arguments)};var _PyArg_VaParseTupleAndKeywords=Module[\"_PyArg_VaParseTupleAndKeywords\"]=function(){return(_PyArg_VaParseTupleAndKeywords=Module[\"_PyArg_VaParseTupleAndKeywords\"]=Module[\"asm\"][\"PyArg_VaParseTupleAndKeywords\"]).apply(null,arguments)};var __PyArg_VaParseTupleAndKeywords_SizeT=Module[\"__PyArg_VaParseTupleAndKeywords_SizeT\"]=function(){return(__PyArg_VaParseTupleAndKeywords_SizeT=Module[\"__PyArg_VaParseTupleAndKeywords_SizeT\"]=Module[\"asm\"][\"_PyArg_VaParseTupleAndKeywords_SizeT\"]).apply(null,arguments)};var __PyArg_ParseTupleAndKeywordsFast=Module[\"__PyArg_ParseTupleAndKeywordsFast\"]=function(){return(__PyArg_ParseTupleAndKeywordsFast=Module[\"__PyArg_ParseTupleAndKeywordsFast\"]=Module[\"asm\"][\"_PyArg_ParseTupleAndKeywordsFast\"]).apply(null,arguments)};var __PyArg_ParseTupleAndKeywordsFast_SizeT=Module[\"__PyArg_ParseTupleAndKeywordsFast_SizeT\"]=function(){return(__PyArg_ParseTupleAndKeywordsFast_SizeT=Module[\"__PyArg_ParseTupleAndKeywordsFast_SizeT\"]=Module[\"asm\"][\"_PyArg_ParseTupleAndKeywordsFast_SizeT\"]).apply(null,arguments)};var __PyArg_VaParseTupleAndKeywordsFast=Module[\"__PyArg_VaParseTupleAndKeywordsFast\"]=function(){return(__PyArg_VaParseTupleAndKeywordsFast=Module[\"__PyArg_VaParseTupleAndKeywordsFast\"]=Module[\"asm\"][\"_PyArg_VaParseTupleAndKeywordsFast\"]).apply(null,arguments)};var __PyArg_VaParseTupleAndKeywordsFast_SizeT=Module[\"__PyArg_VaParseTupleAndKeywordsFast_SizeT\"]=function(){return(__PyArg_VaParseTupleAndKeywordsFast_SizeT=Module[\"__PyArg_VaParseTupleAndKeywordsFast_SizeT\"]=Module[\"asm\"][\"_PyArg_VaParseTupleAndKeywordsFast_SizeT\"]).apply(null,arguments)};var __PyArg_NoPositional=Module[\"__PyArg_NoPositional\"]=function(){return(__PyArg_NoPositional=Module[\"__PyArg_NoPositional\"]=Module[\"asm\"][\"_PyArg_NoPositional\"]).apply(null,arguments)};var __PyArg_Fini=Module[\"__PyArg_Fini\"]=function(){return(__PyArg_Fini=Module[\"__PyArg_Fini\"]=Module[\"asm\"][\"_PyArg_Fini\"]).apply(null,arguments)};var _Py_GetCompiler=Module[\"_Py_GetCompiler\"]=function(){return(_Py_GetCompiler=Module[\"_Py_GetCompiler\"]=Module[\"asm\"][\"Py_GetCompiler\"]).apply(null,arguments)};var _Py_GetPlatform=Module[\"_Py_GetPlatform\"]=function(){return(_Py_GetPlatform=Module[\"_Py_GetPlatform\"]=Module[\"asm\"][\"Py_GetPlatform\"]).apply(null,arguments)};var __Py_hashtable_hash_ptr=Module[\"__Py_hashtable_hash_ptr\"]=function(){return(__Py_hashtable_hash_ptr=Module[\"__Py_hashtable_hash_ptr\"]=Module[\"asm\"][\"_Py_hashtable_hash_ptr\"]).apply(null,arguments)};var __Py_HashPointerRaw=Module[\"__Py_HashPointerRaw\"]=function(){return(__Py_HashPointerRaw=Module[\"__Py_HashPointerRaw\"]=Module[\"asm\"][\"_Py_HashPointerRaw\"]).apply(null,arguments)};var __Py_hashtable_compare_direct=Module[\"__Py_hashtable_compare_direct\"]=function(){return(__Py_hashtable_compare_direct=Module[\"__Py_hashtable_compare_direct\"]=Module[\"asm\"][\"_Py_hashtable_compare_direct\"]).apply(null,arguments)};var __Py_hashtable_size=Module[\"__Py_hashtable_size\"]=function(){return(__Py_hashtable_size=Module[\"__Py_hashtable_size\"]=Module[\"asm\"][\"_Py_hashtable_size\"]).apply(null,arguments)};var __Py_hashtable_get_entry_generic=Module[\"__Py_hashtable_get_entry_generic\"]=function(){return(__Py_hashtable_get_entry_generic=Module[\"__Py_hashtable_get_entry_generic\"]=Module[\"asm\"][\"_Py_hashtable_get_entry_generic\"]).apply(null,arguments)};var __Py_hashtable_steal=Module[\"__Py_hashtable_steal\"]=function(){return(__Py_hashtable_steal=Module[\"__Py_hashtable_steal\"]=Module[\"asm\"][\"_Py_hashtable_steal\"]).apply(null,arguments)};var __Py_hashtable_set=Module[\"__Py_hashtable_set\"]=function(){return(__Py_hashtable_set=Module[\"__Py_hashtable_set\"]=Module[\"asm\"][\"_Py_hashtable_set\"]).apply(null,arguments)};var __Py_hashtable_get=Module[\"__Py_hashtable_get\"]=function(){return(__Py_hashtable_get=Module[\"__Py_hashtable_get\"]=Module[\"asm\"][\"_Py_hashtable_get\"]).apply(null,arguments)};var __Py_hashtable_foreach=Module[\"__Py_hashtable_foreach\"]=function(){return(__Py_hashtable_foreach=Module[\"__Py_hashtable_foreach\"]=Module[\"asm\"][\"_Py_hashtable_foreach\"]).apply(null,arguments)};var __Py_hashtable_new_full=Module[\"__Py_hashtable_new_full\"]=function(){return(__Py_hashtable_new_full=Module[\"__Py_hashtable_new_full\"]=Module[\"asm\"][\"_Py_hashtable_new_full\"]).apply(null,arguments)};var __Py_hashtable_new=Module[\"__Py_hashtable_new\"]=function(){return(__Py_hashtable_new=Module[\"__Py_hashtable_new\"]=Module[\"asm\"][\"_Py_hashtable_new\"]).apply(null,arguments)};var __Py_hashtable_clear=Module[\"__Py_hashtable_clear\"]=function(){return(__Py_hashtable_clear=Module[\"__Py_hashtable_clear\"]=Module[\"asm\"][\"_Py_hashtable_clear\"]).apply(null,arguments)};var __Py_hashtable_destroy=Module[\"__Py_hashtable_destroy\"]=function(){return(__Py_hashtable_destroy=Module[\"__Py_hashtable_destroy\"]=Module[\"asm\"][\"_Py_hashtable_destroy\"]).apply(null,arguments)};var __PyImportHooks_Init=Module[\"__PyImportHooks_Init\"]=function(){return(__PyImportHooks_Init=Module[\"__PyImportHooks_Init\"]=Module[\"asm\"][\"_PyImportHooks_Init\"]).apply(null,arguments)};var _PySys_SetObject=Module[\"_PySys_SetObject\"]=function(){return(_PySys_SetObject=Module[\"_PySys_SetObject\"]=Module[\"asm\"][\"PySys_SetObject\"]).apply(null,arguments)};var __PyImportZip_Init=Module[\"__PyImportZip_Init\"]=function(){return(__PyImportZip_Init=Module[\"__PyImportZip_Init\"]=Module[\"asm\"][\"_PyImportZip_Init\"]).apply(null,arguments)};var __PyImport_AcquireLock=Module[\"__PyImport_AcquireLock\"]=function(){return(__PyImport_AcquireLock=Module[\"__PyImport_AcquireLock\"]=Module[\"asm\"][\"_PyImport_AcquireLock\"]).apply(null,arguments)};var __PyImport_ReleaseLock=Module[\"__PyImport_ReleaseLock\"]=function(){return(__PyImport_ReleaseLock=Module[\"__PyImport_ReleaseLock\"]=Module[\"asm\"][\"_PyImport_ReleaseLock\"]).apply(null,arguments)};var __PyImport_ReInitLock=Module[\"__PyImport_ReInitLock\"]=function(){return(__PyImport_ReInitLock=Module[\"__PyImport_ReInitLock\"]=Module[\"asm\"][\"_PyImport_ReInitLock\"]).apply(null,arguments)};var __PyImport_Fini=Module[\"__PyImport_Fini\"]=function(){return(__PyImport_Fini=Module[\"__PyImport_Fini\"]=Module[\"asm\"][\"_PyImport_Fini\"]).apply(null,arguments)};var __PyImport_Fini2=Module[\"__PyImport_Fini2\"]=function(){return(__PyImport_Fini2=Module[\"__PyImport_Fini2\"]=Module[\"asm\"][\"_PyImport_Fini2\"]).apply(null,arguments)};var __PyImport_GetModuleId=Module[\"__PyImport_GetModuleId\"]=function(){return(__PyImport_GetModuleId=Module[\"__PyImport_GetModuleId\"]=Module[\"asm\"][\"_PyImport_GetModuleId\"]).apply(null,arguments)};var __PyImport_SetModule=Module[\"__PyImport_SetModule\"]=function(){return(__PyImport_SetModule=Module[\"__PyImport_SetModule\"]=Module[\"asm\"][\"_PyImport_SetModule\"]).apply(null,arguments)};var __PyImport_SetModuleString=Module[\"__PyImport_SetModuleString\"]=function(){return(__PyImport_SetModuleString=Module[\"__PyImport_SetModuleString\"]=Module[\"asm\"][\"_PyImport_SetModuleString\"]).apply(null,arguments)};var __PyImport_Cleanup=Module[\"__PyImport_Cleanup\"]=function(){return(__PyImport_Cleanup=Module[\"__PyImport_Cleanup\"]=Module[\"asm\"][\"_PyImport_Cleanup\"]).apply(null,arguments)};var __PyGC_CollectNoFail=Module[\"__PyGC_CollectNoFail\"]=function(){return(__PyGC_CollectNoFail=Module[\"__PyGC_CollectNoFail\"]=Module[\"asm\"][\"_PyGC_CollectNoFail\"]).apply(null,arguments)};var __PyGC_DumpShutdownStats=Module[\"__PyGC_DumpShutdownStats\"]=function(){return(__PyGC_DumpShutdownStats=Module[\"__PyGC_DumpShutdownStats\"]=Module[\"asm\"][\"_PyGC_DumpShutdownStats\"]).apply(null,arguments)};var __PyInterpreterState_ClearModules=Module[\"__PyInterpreterState_ClearModules\"]=function(){return(__PyInterpreterState_ClearModules=Module[\"__PyInterpreterState_ClearModules\"]=Module[\"asm\"][\"_PyInterpreterState_ClearModules\"]).apply(null,arguments)};var _PyImport_GetMagicNumber=Module[\"_PyImport_GetMagicNumber\"]=function(){return(_PyImport_GetMagicNumber=Module[\"_PyImport_GetMagicNumber\"]=Module[\"asm\"][\"PyImport_GetMagicNumber\"]).apply(null,arguments)};var _PyImport_GetMagicTag=Module[\"_PyImport_GetMagicTag\"]=function(){return(_PyImport_GetMagicTag=Module[\"_PyImport_GetMagicTag\"]=Module[\"asm\"][\"PyImport_GetMagicTag\"]).apply(null,arguments)};var __PyImport_FixupExtensionObject=Module[\"__PyImport_FixupExtensionObject\"]=function(){return(__PyImport_FixupExtensionObject=Module[\"__PyImport_FixupExtensionObject\"]=Module[\"asm\"][\"_PyImport_FixupExtensionObject\"]).apply(null,arguments)};var __PyState_AddModule=Module[\"__PyState_AddModule\"]=function(){return(__PyState_AddModule=Module[\"__PyState_AddModule\"]=Module[\"asm\"][\"_PyState_AddModule\"]).apply(null,arguments)};var __PyImport_FixupBuiltin=Module[\"__PyImport_FixupBuiltin\"]=function(){return(__PyImport_FixupBuiltin=Module[\"__PyImport_FixupBuiltin\"]=Module[\"asm\"][\"_PyImport_FixupBuiltin\"]).apply(null,arguments)};var __PyImport_FindExtensionObject=Module[\"__PyImport_FindExtensionObject\"]=function(){return(__PyImport_FindExtensionObject=Module[\"__PyImport_FindExtensionObject\"]=Module[\"asm\"][\"_PyImport_FindExtensionObject\"]).apply(null,arguments)};var __PyImport_FindBuiltin=Module[\"__PyImport_FindBuiltin\"]=function(){return(__PyImport_FindBuiltin=Module[\"__PyImport_FindBuiltin\"]=Module[\"asm\"][\"_PyImport_FindBuiltin\"]).apply(null,arguments)};var _PyImport_AddModuleObject=Module[\"_PyImport_AddModuleObject\"]=function(){return(_PyImport_AddModuleObject=Module[\"_PyImport_AddModuleObject\"]=Module[\"asm\"][\"PyImport_AddModuleObject\"]).apply(null,arguments)};var _PyImport_AddModule=Module[\"_PyImport_AddModule\"]=function(){return(_PyImport_AddModule=Module[\"_PyImport_AddModule\"]=Module[\"asm\"][\"PyImport_AddModule\"]).apply(null,arguments)};var _PyImport_ExecCodeModule=Module[\"_PyImport_ExecCodeModule\"]=function(){return(_PyImport_ExecCodeModule=Module[\"_PyImport_ExecCodeModule\"]=Module[\"asm\"][\"PyImport_ExecCodeModule\"]).apply(null,arguments)};var _PyImport_ExecCodeModuleObject=Module[\"_PyImport_ExecCodeModuleObject\"]=function(){return(_PyImport_ExecCodeModuleObject=Module[\"_PyImport_ExecCodeModuleObject\"]=Module[\"asm\"][\"PyImport_ExecCodeModuleObject\"]).apply(null,arguments)};var _PyImport_ExecCodeModuleWithPathnames=Module[\"_PyImport_ExecCodeModuleWithPathnames\"]=function(){return(_PyImport_ExecCodeModuleWithPathnames=Module[\"_PyImport_ExecCodeModuleWithPathnames\"]=Module[\"asm\"][\"PyImport_ExecCodeModuleWithPathnames\"]).apply(null,arguments)};var _PyImport_ExecCodeModuleEx=Module[\"_PyImport_ExecCodeModuleEx\"]=function(){return(_PyImport_ExecCodeModuleEx=Module[\"_PyImport_ExecCodeModuleEx\"]=Module[\"asm\"][\"PyImport_ExecCodeModuleEx\"]).apply(null,arguments)};var _PyImport_GetImporter=Module[\"_PyImport_GetImporter\"]=function(){return(_PyImport_GetImporter=Module[\"_PyImport_GetImporter\"]=Module[\"asm\"][\"PyImport_GetImporter\"]).apply(null,arguments)};var _PyImport_ImportFrozenModuleObject=Module[\"_PyImport_ImportFrozenModuleObject\"]=function(){return(_PyImport_ImportFrozenModuleObject=Module[\"_PyImport_ImportFrozenModuleObject\"]=Module[\"asm\"][\"PyImport_ImportFrozenModuleObject\"]).apply(null,arguments)};var _PyMarshal_ReadObjectFromString=Module[\"_PyMarshal_ReadObjectFromString\"]=function(){return(_PyMarshal_ReadObjectFromString=Module[\"_PyMarshal_ReadObjectFromString\"]=Module[\"asm\"][\"PyMarshal_ReadObjectFromString\"]).apply(null,arguments)};var __PyTime_GetPerfCounter=Module[\"__PyTime_GetPerfCounter\"]=function(){return(__PyTime_GetPerfCounter=Module[\"__PyTime_GetPerfCounter\"]=Module[\"asm\"][\"_PyTime_GetPerfCounter\"]).apply(null,arguments)};var __PyTime_AsMicroseconds=Module[\"__PyTime_AsMicroseconds\"]=function(){return(__PyTime_AsMicroseconds=Module[\"__PyTime_AsMicroseconds\"]=Module[\"asm\"][\"_PyTime_AsMicroseconds\"]).apply(null,arguments)};var _PyImport_ImportModuleLevel=Module[\"_PyImport_ImportModuleLevel\"]=function(){return(_PyImport_ImportModuleLevel=Module[\"_PyImport_ImportModuleLevel\"]=Module[\"asm\"][\"PyImport_ImportModuleLevel\"]).apply(null,arguments)};var _PyImport_ReloadModule=Module[\"_PyImport_ReloadModule\"]=function(){return(_PyImport_ReloadModule=Module[\"_PyImport_ReloadModule\"]=Module[\"asm\"][\"PyImport_ReloadModule\"]).apply(null,arguments)};var _PyInit__imp=Module[\"_PyInit__imp\"]=function(){return(_PyInit__imp=Module[\"_PyInit__imp\"]=Module[\"asm\"][\"PyInit__imp\"]).apply(null,arguments)};var _PyImport_ExtendInittab=Module[\"_PyImport_ExtendInittab\"]=function(){return(_PyImport_ExtendInittab=Module[\"_PyImport_ExtendInittab\"]=Module[\"asm\"][\"PyImport_ExtendInittab\"]).apply(null,arguments)};var _PyImport_AppendInittab=Module[\"_PyImport_AppendInittab\"]=function(){return(_PyImport_AppendInittab=Module[\"_PyImport_AppendInittab\"]=Module[\"asm\"][\"PyImport_AppendInittab\"]).apply(null,arguments)};var __PyImport_LoadDynamicModuleWithSpec=Module[\"__PyImport_LoadDynamicModuleWithSpec\"]=function(){return(__PyImport_LoadDynamicModuleWithSpec=Module[\"__PyImport_LoadDynamicModuleWithSpec\"]=Module[\"asm\"][\"_PyImport_LoadDynamicModuleWithSpec\"]).apply(null,arguments)};var __Py_KeyedHash=Module[\"__Py_KeyedHash\"]=function(){return(__Py_KeyedHash=Module[\"__Py_KeyedHash\"]=Module[\"asm\"][\"_Py_KeyedHash\"]).apply(null,arguments)};var __PyImport_FindSharedFuncptr=Module[\"__PyImport_FindSharedFuncptr\"]=function(){return(__PyImport_FindSharedFuncptr=Module[\"__PyImport_FindSharedFuncptr\"]=Module[\"asm\"][\"_PyImport_FindSharedFuncptr\"]).apply(null,arguments)};var _PyStatus_Ok=Module[\"_PyStatus_Ok\"]=function(){return(_PyStatus_Ok=Module[\"_PyStatus_Ok\"]=Module[\"asm\"][\"PyStatus_Ok\"]).apply(null,arguments)};var _PyStatus_Error=Module[\"_PyStatus_Error\"]=function(){return(_PyStatus_Error=Module[\"_PyStatus_Error\"]=Module[\"asm\"][\"PyStatus_Error\"]).apply(null,arguments)};var _PyStatus_NoMemory=Module[\"_PyStatus_NoMemory\"]=function(){return(_PyStatus_NoMemory=Module[\"_PyStatus_NoMemory\"]=Module[\"asm\"][\"PyStatus_NoMemory\"]).apply(null,arguments)};var _PyStatus_Exit=Module[\"_PyStatus_Exit\"]=function(){return(_PyStatus_Exit=Module[\"_PyStatus_Exit\"]=Module[\"asm\"][\"PyStatus_Exit\"]).apply(null,arguments)};var _PyStatus_IsError=Module[\"_PyStatus_IsError\"]=function(){return(_PyStatus_IsError=Module[\"_PyStatus_IsError\"]=Module[\"asm\"][\"PyStatus_IsError\"]).apply(null,arguments)};var _PyStatus_IsExit=Module[\"_PyStatus_IsExit\"]=function(){return(_PyStatus_IsExit=Module[\"_PyStatus_IsExit\"]=Module[\"asm\"][\"PyStatus_IsExit\"]).apply(null,arguments)};var __PyWideStringList_Clear=Module[\"__PyWideStringList_Clear\"]=function(){return(__PyWideStringList_Clear=Module[\"__PyWideStringList_Clear\"]=Module[\"asm\"][\"_PyWideStringList_Clear\"]).apply(null,arguments)};var __PyWideStringList_Copy=Module[\"__PyWideStringList_Copy\"]=function(){return(__PyWideStringList_Copy=Module[\"__PyWideStringList_Copy\"]=Module[\"asm\"][\"_PyWideStringList_Copy\"]).apply(null,arguments)};var _PyWideStringList_Insert=Module[\"_PyWideStringList_Insert\"]=function(){return(_PyWideStringList_Insert=Module[\"_PyWideStringList_Insert\"]=Module[\"asm\"][\"PyWideStringList_Insert\"]).apply(null,arguments)};var _PyWideStringList_Append=Module[\"_PyWideStringList_Append\"]=function(){return(_PyWideStringList_Append=Module[\"_PyWideStringList_Append\"]=Module[\"asm\"][\"PyWideStringList_Append\"]).apply(null,arguments)};var __PyWideStringList_Extend=Module[\"__PyWideStringList_Extend\"]=function(){return(__PyWideStringList_Extend=Module[\"__PyWideStringList_Extend\"]=Module[\"asm\"][\"_PyWideStringList_Extend\"]).apply(null,arguments)};var __PyWideStringList_AsList=Module[\"__PyWideStringList_AsList\"]=function(){return(__PyWideStringList_AsList=Module[\"__PyWideStringList_AsList\"]=Module[\"asm\"][\"_PyWideStringList_AsList\"]).apply(null,arguments)};var _Py_SetStandardStreamEncoding=Module[\"_Py_SetStandardStreamEncoding\"]=function(){return(_Py_SetStandardStreamEncoding=Module[\"_Py_SetStandardStreamEncoding\"]=Module[\"asm\"][\"Py_SetStandardStreamEncoding\"]).apply(null,arguments)};var __Py_ClearStandardStreamEncoding=Module[\"__Py_ClearStandardStreamEncoding\"]=function(){return(__Py_ClearStandardStreamEncoding=Module[\"__Py_ClearStandardStreamEncoding\"]=Module[\"asm\"][\"_Py_ClearStandardStreamEncoding\"]).apply(null,arguments)};var __Py_ClearArgcArgv=Module[\"__Py_ClearArgcArgv\"]=function(){return(__Py_ClearArgcArgv=Module[\"__Py_ClearArgcArgv\"]=Module[\"asm\"][\"_Py_ClearArgcArgv\"]).apply(null,arguments)};var _Py_GetArgcArgv=Module[\"_Py_GetArgcArgv\"]=function(){return(_Py_GetArgcArgv=Module[\"_Py_GetArgcArgv\"]=Module[\"asm\"][\"Py_GetArgcArgv\"]).apply(null,arguments)};var __PyConfig_InitCompatConfig=Module[\"__PyConfig_InitCompatConfig\"]=function(){return(__PyConfig_InitCompatConfig=Module[\"__PyConfig_InitCompatConfig\"]=Module[\"asm\"][\"_PyConfig_InitCompatConfig\"]).apply(null,arguments)};var _PyConfig_InitIsolatedConfig=Module[\"_PyConfig_InitIsolatedConfig\"]=function(){return(_PyConfig_InitIsolatedConfig=Module[\"_PyConfig_InitIsolatedConfig\"]=Module[\"asm\"][\"PyConfig_InitIsolatedConfig\"]).apply(null,arguments)};var _PyConfig_SetString=Module[\"_PyConfig_SetString\"]=function(){return(_PyConfig_SetString=Module[\"_PyConfig_SetString\"]=Module[\"asm\"][\"PyConfig_SetString\"]).apply(null,arguments)};var __Py_PreInitializeFromConfig=Module[\"__Py_PreInitializeFromConfig\"]=function(){return(__Py_PreInitializeFromConfig=Module[\"__Py_PreInitializeFromConfig\"]=Module[\"asm\"][\"_Py_PreInitializeFromConfig\"]).apply(null,arguments)};var __PyConfig_Copy=Module[\"__PyConfig_Copy\"]=function(){return(__PyConfig_Copy=Module[\"__PyConfig_Copy\"]=Module[\"asm\"][\"_PyConfig_Copy\"]).apply(null,arguments)};var __PyConfig_Write=Module[\"__PyConfig_Write\"]=function(){return(__PyConfig_Write=Module[\"__PyConfig_Write\"]=Module[\"asm\"][\"_PyConfig_Write\"]).apply(null,arguments)};var _setvbuf=Module[\"_setvbuf\"]=function(){return(_setvbuf=Module[\"_setvbuf\"]=Module[\"asm\"][\"setvbuf\"]).apply(null,arguments)};var __PyConfig_SetPyArgv=Module[\"__PyConfig_SetPyArgv\"]=function(){return(__PyConfig_SetPyArgv=Module[\"__PyConfig_SetPyArgv\"]=Module[\"asm\"][\"_PyConfig_SetPyArgv\"]).apply(null,arguments)};var __PyArgv_AsWstrList=Module[\"__PyArgv_AsWstrList\"]=function(){return(__PyArgv_AsWstrList=Module[\"__PyArgv_AsWstrList\"]=Module[\"asm\"][\"_PyArgv_AsWstrList\"]).apply(null,arguments)};var _PyConfig_SetBytesArgv=Module[\"_PyConfig_SetBytesArgv\"]=function(){return(_PyConfig_SetBytesArgv=Module[\"_PyConfig_SetBytesArgv\"]=Module[\"asm\"][\"PyConfig_SetBytesArgv\"]).apply(null,arguments)};var _PyConfig_SetArgv=Module[\"_PyConfig_SetArgv\"]=function(){return(_PyConfig_SetArgv=Module[\"_PyConfig_SetArgv\"]=Module[\"asm\"][\"PyConfig_SetArgv\"]).apply(null,arguments)};var _PyConfig_SetWideStringList=Module[\"_PyConfig_SetWideStringList\"]=function(){return(_PyConfig_SetWideStringList=Module[\"_PyConfig_SetWideStringList\"]=Module[\"asm\"][\"PyConfig_SetWideStringList\"]).apply(null,arguments)};var _PyConfig_Read=Module[\"_PyConfig_Read\"]=function(){return(_PyConfig_Read=Module[\"_PyConfig_Read\"]=Module[\"asm\"][\"PyConfig_Read\"]).apply(null,arguments)};var __PyPreConfig_InitFromPreConfig=Module[\"__PyPreConfig_InitFromPreConfig\"]=function(){return(__PyPreConfig_InitFromPreConfig=Module[\"__PyPreConfig_InitFromPreConfig\"]=Module[\"asm\"][\"_PyPreConfig_InitFromPreConfig\"]).apply(null,arguments)};var __PyPreConfig_GetConfig=Module[\"__PyPreConfig_GetConfig\"]=function(){return(__PyPreConfig_GetConfig=Module[\"__PyPreConfig_GetConfig\"]=Module[\"asm\"][\"_PyPreConfig_GetConfig\"]).apply(null,arguments)};var __PyPreCmdline_Read=Module[\"__PyPreCmdline_Read\"]=function(){return(__PyPreCmdline_Read=Module[\"__PyPreCmdline_Read\"]=Module[\"asm\"][\"_PyPreCmdline_Read\"]).apply(null,arguments)};var __PyPreCmdline_SetConfig=Module[\"__PyPreCmdline_SetConfig\"]=function(){return(__PyPreCmdline_SetConfig=Module[\"__PyPreCmdline_SetConfig\"]=Module[\"asm\"][\"_PyPreCmdline_SetConfig\"]).apply(null,arguments)};var __PyOS_ResetGetOpt=Module[\"__PyOS_ResetGetOpt\"]=function(){return(__PyOS_ResetGetOpt=Module[\"__PyOS_ResetGetOpt\"]=Module[\"asm\"][\"_PyOS_ResetGetOpt\"]).apply(null,arguments)};var __PyOS_GetOpt=Module[\"__PyOS_GetOpt\"]=function(){return(__PyOS_GetOpt=Module[\"__PyOS_GetOpt\"]=Module[\"asm\"][\"_PyOS_GetOpt\"]).apply(null,arguments)};var __Py_isabs=Module[\"__Py_isabs\"]=function(){return(__Py_isabs=Module[\"__Py_isabs\"]=Module[\"asm\"][\"_Py_isabs\"]).apply(null,arguments)};var __Py_abspath=Module[\"__Py_abspath\"]=function(){return(__Py_abspath=Module[\"__Py_abspath\"]=Module[\"asm\"][\"_Py_abspath\"]).apply(null,arguments)};var _wcstok=Module[\"_wcstok\"]=function(){return(_wcstok=Module[\"_wcstok\"]=Module[\"asm\"][\"wcstok\"]).apply(null,arguments)};var __PySys_ReadPreinitWarnOptions=Module[\"__PySys_ReadPreinitWarnOptions\"]=function(){return(__PySys_ReadPreinitWarnOptions=Module[\"__PySys_ReadPreinitWarnOptions\"]=Module[\"asm\"][\"_PySys_ReadPreinitWarnOptions\"]).apply(null,arguments)};var __PySys_ReadPreinitXOptions=Module[\"__PySys_ReadPreinitXOptions\"]=function(){return(__PySys_ReadPreinitXOptions=Module[\"__PySys_ReadPreinitXOptions\"]=Module[\"asm\"][\"_PySys_ReadPreinitXOptions\"]).apply(null,arguments)};var __Py_get_env_flag=Module[\"__Py_get_env_flag\"]=function(){return(__Py_get_env_flag=Module[\"__Py_get_env_flag\"]=Module[\"asm\"][\"_Py_get_env_flag\"]).apply(null,arguments)};var __Py_GetEnv=Module[\"__Py_GetEnv\"]=function(){return(__Py_GetEnv=Module[\"__Py_GetEnv\"]=Module[\"asm\"][\"_Py_GetEnv\"]).apply(null,arguments)};var _strtoul=Module[\"_strtoul\"]=function(){return(_strtoul=Module[\"_strtoul\"]=Module[\"asm\"][\"strtoul\"]).apply(null,arguments)};var __Py_get_xoption=Module[\"__Py_get_xoption\"]=function(){return(__Py_get_xoption=Module[\"__Py_get_xoption\"]=Module[\"asm\"][\"_Py_get_xoption\"]).apply(null,arguments)};var __Py_str_to_int=Module[\"__Py_str_to_int\"]=function(){return(__Py_str_to_int=Module[\"__Py_str_to_int\"]=Module[\"asm\"][\"_Py_str_to_int\"]).apply(null,arguments)};var _wcschr=Module[\"_wcschr\"]=function(){return(_wcschr=Module[\"_wcschr\"]=Module[\"asm\"][\"wcschr\"]).apply(null,arguments)};var _wcstol=Module[\"_wcstol\"]=function(){return(_wcstol=Module[\"_wcstol\"]=Module[\"asm\"][\"wcstol\"]).apply(null,arguments)};var __PyConfig_InitPathConfig=Module[\"__PyConfig_InitPathConfig\"]=function(){return(__PyConfig_InitPathConfig=Module[\"__PyConfig_InitPathConfig\"]=Module[\"asm\"][\"_PyConfig_InitPathConfig\"]).apply(null,arguments)};var __Py_GetForceASCII=Module[\"__Py_GetForceASCII\"]=function(){return(__Py_GetForceASCII=Module[\"__Py_GetForceASCII\"]=Module[\"asm\"][\"_Py_GetForceASCII\"]).apply(null,arguments)};var _nl_langinfo=Module[\"_nl_langinfo\"]=function(){return(_nl_langinfo=Module[\"_nl_langinfo\"]=Module[\"asm\"][\"nl_langinfo\"]).apply(null,arguments)};var __Py_IsLocaleCoercionTarget=Module[\"__Py_IsLocaleCoercionTarget\"]=function(){return(__Py_IsLocaleCoercionTarget=Module[\"__Py_IsLocaleCoercionTarget\"]=Module[\"asm\"][\"_Py_IsLocaleCoercionTarget\"]).apply(null,arguments)};var __PyPreCmdline_Clear=Module[\"__PyPreCmdline_Clear\"]=function(){return(__PyPreCmdline_Clear=Module[\"__PyPreCmdline_Clear\"]=Module[\"asm\"][\"_PyPreCmdline_Clear\"]).apply(null,arguments)};var __Py_GetConfigsAsDict=Module[\"__Py_GetConfigsAsDict\"]=function(){return(__Py_GetConfigsAsDict=Module[\"__Py_GetConfigsAsDict\"]=Module[\"asm\"][\"_Py_GetConfigsAsDict\"]).apply(null,arguments)};var __PyPreConfig_AsDict=Module[\"__PyPreConfig_AsDict\"]=function(){return(__PyPreConfig_AsDict=Module[\"__PyPreConfig_AsDict\"]=Module[\"asm\"][\"_PyPreConfig_AsDict\"]).apply(null,arguments)};var _PyMarshal_WriteLongToFile=Module[\"_PyMarshal_WriteLongToFile\"]=function(){return(_PyMarshal_WriteLongToFile=Module[\"_PyMarshal_WriteLongToFile\"]=Module[\"asm\"][\"PyMarshal_WriteLongToFile\"]).apply(null,arguments)};var _PyMarshal_WriteObjectToFile=Module[\"_PyMarshal_WriteObjectToFile\"]=function(){return(_PyMarshal_WriteObjectToFile=Module[\"_PyMarshal_WriteObjectToFile\"]=Module[\"asm\"][\"PyMarshal_WriteObjectToFile\"]).apply(null,arguments)};var _PyMarshal_ReadShortFromFile=Module[\"_PyMarshal_ReadShortFromFile\"]=function(){return(_PyMarshal_ReadShortFromFile=Module[\"_PyMarshal_ReadShortFromFile\"]=Module[\"asm\"][\"PyMarshal_ReadShortFromFile\"]).apply(null,arguments)};var _PyMarshal_ReadLongFromFile=Module[\"_PyMarshal_ReadLongFromFile\"]=function(){return(_PyMarshal_ReadLongFromFile=Module[\"_PyMarshal_ReadLongFromFile\"]=Module[\"asm\"][\"PyMarshal_ReadLongFromFile\"]).apply(null,arguments)};var _PyMarshal_ReadLastObjectFromFile=Module[\"_PyMarshal_ReadLastObjectFromFile\"]=function(){return(_PyMarshal_ReadLastObjectFromFile=Module[\"_PyMarshal_ReadLastObjectFromFile\"]=Module[\"asm\"][\"PyMarshal_ReadLastObjectFromFile\"]).apply(null,arguments)};var __Py_fstat_noraise=Module[\"__Py_fstat_noraise\"]=function(){return(__Py_fstat_noraise=Module[\"__Py_fstat_noraise\"]=Module[\"asm\"][\"_Py_fstat_noraise\"]).apply(null,arguments)};var _fread=Module[\"_fread\"]=function(){return(_fread=Module[\"_fread\"]=Module[\"asm\"][\"fread\"]).apply(null,arguments)};var _PyMarshal_ReadObjectFromFile=Module[\"_PyMarshal_ReadObjectFromFile\"]=function(){return(_PyMarshal_ReadObjectFromFile=Module[\"_PyMarshal_ReadObjectFromFile\"]=Module[\"asm\"][\"PyMarshal_ReadObjectFromFile\"]).apply(null,arguments)};var _PyMarshal_WriteObjectToString=Module[\"_PyMarshal_WriteObjectToString\"]=function(){return(_PyMarshal_WriteObjectToString=Module[\"_PyMarshal_WriteObjectToString\"]=Module[\"asm\"][\"PyMarshal_WriteObjectToString\"]).apply(null,arguments)};var _PyMarshal_Init=Module[\"_PyMarshal_Init\"]=function(){return(_PyMarshal_Init=Module[\"_PyMarshal_Init\"]=Module[\"asm\"][\"PyMarshal_Init\"]).apply(null,arguments)};var __Py_convert_optional_to_ssize_t=Module[\"__Py_convert_optional_to_ssize_t\"]=function(){return(__Py_convert_optional_to_ssize_t=Module[\"__Py_convert_optional_to_ssize_t\"]=Module[\"asm\"][\"_Py_convert_optional_to_ssize_t\"]).apply(null,arguments)};var _Py_VaBuildValue=Module[\"_Py_VaBuildValue\"]=function(){return(_Py_VaBuildValue=Module[\"_Py_VaBuildValue\"]=Module[\"asm\"][\"Py_VaBuildValue\"]).apply(null,arguments)};var __Py_VaBuildValue_SizeT=Module[\"__Py_VaBuildValue_SizeT\"]=function(){return(__Py_VaBuildValue_SizeT=Module[\"__Py_VaBuildValue_SizeT\"]=Module[\"asm\"][\"_Py_VaBuildValue_SizeT\"]).apply(null,arguments)};var _PyModule_AddStringConstant=Module[\"_PyModule_AddStringConstant\"]=function(){return(_PyModule_AddStringConstant=Module[\"_PyModule_AddStringConstant\"]=Module[\"asm\"][\"PyModule_AddStringConstant\"]).apply(null,arguments)};var _vsnprintf=Module[\"_vsnprintf\"]=function(){return(_vsnprintf=Module[\"_vsnprintf\"]=Module[\"asm\"][\"vsnprintf\"]).apply(null,arguments)};var _PyOS_vsnprintf=Module[\"_PyOS_vsnprintf\"]=function(){return(_PyOS_vsnprintf=Module[\"_PyOS_vsnprintf\"]=Module[\"asm\"][\"PyOS_vsnprintf\"]).apply(null,arguments)};var __PyPathConfig_ClearGlobal=Module[\"__PyPathConfig_ClearGlobal\"]=function(){return(__PyPathConfig_ClearGlobal=Module[\"__PyPathConfig_ClearGlobal\"]=Module[\"asm\"][\"_PyPathConfig_ClearGlobal\"]).apply(null,arguments)};var __PyConfig_WritePathConfig=Module[\"__PyConfig_WritePathConfig\"]=function(){return(__PyConfig_WritePathConfig=Module[\"__PyConfig_WritePathConfig\"]=Module[\"asm\"][\"_PyConfig_WritePathConfig\"]).apply(null,arguments)};var __PyPathConfig_Calculate=Module[\"__PyPathConfig_Calculate\"]=function(){return(__PyPathConfig_Calculate=Module[\"__PyPathConfig_Calculate\"]=Module[\"asm\"][\"_PyPathConfig_Calculate\"]).apply(null,arguments)};var _Py_SetPath=Module[\"_Py_SetPath\"]=function(){return(_Py_SetPath=Module[\"_Py_SetPath\"]=Module[\"asm\"][\"Py_SetPath\"]).apply(null,arguments)};var _Py_GetProgramFullPath=Module[\"_Py_GetProgramFullPath\"]=function(){return(_Py_GetProgramFullPath=Module[\"_Py_GetProgramFullPath\"]=Module[\"asm\"][\"Py_GetProgramFullPath\"]).apply(null,arguments)};var _Py_SetPythonHome=Module[\"_Py_SetPythonHome\"]=function(){return(_Py_SetPythonHome=Module[\"_Py_SetPythonHome\"]=Module[\"asm\"][\"Py_SetPythonHome\"]).apply(null,arguments)};var __Py_SetProgramFullPath=Module[\"__Py_SetProgramFullPath\"]=function(){return(__Py_SetProgramFullPath=Module[\"__Py_SetProgramFullPath\"]=Module[\"asm\"][\"_Py_SetProgramFullPath\"]).apply(null,arguments)};var _Py_GetPath=Module[\"_Py_GetPath\"]=function(){return(_Py_GetPath=Module[\"_Py_GetPath\"]=Module[\"asm\"][\"Py_GetPath\"]).apply(null,arguments)};var _Py_GetPrefix=Module[\"_Py_GetPrefix\"]=function(){return(_Py_GetPrefix=Module[\"_Py_GetPrefix\"]=Module[\"asm\"][\"Py_GetPrefix\"]).apply(null,arguments)};var _Py_GetExecPrefix=Module[\"_Py_GetExecPrefix\"]=function(){return(_Py_GetExecPrefix=Module[\"_Py_GetExecPrefix\"]=Module[\"asm\"][\"Py_GetExecPrefix\"]).apply(null,arguments)};var _Py_GetPythonHome=Module[\"_Py_GetPythonHome\"]=function(){return(_Py_GetPythonHome=Module[\"_Py_GetPythonHome\"]=Module[\"asm\"][\"Py_GetPythonHome\"]).apply(null,arguments)};var _Py_GetProgramName=Module[\"_Py_GetProgramName\"]=function(){return(_Py_GetProgramName=Module[\"_Py_GetProgramName\"]=Module[\"asm\"][\"Py_GetProgramName\"]).apply(null,arguments)};var __PyPathConfig_ComputeSysPath0=Module[\"__PyPathConfig_ComputeSysPath0\"]=function(){return(__PyPathConfig_ComputeSysPath0=Module[\"__PyPathConfig_ComputeSysPath0\"]=Module[\"asm\"][\"_PyPathConfig_ComputeSysPath0\"]).apply(null,arguments)};var __Py_wgetcwd=Module[\"__Py_wgetcwd\"]=function(){return(__Py_wgetcwd=Module[\"__Py_wgetcwd\"]=Module[\"asm\"][\"_Py_wgetcwd\"]).apply(null,arguments)};var __Py_wreadlink=Module[\"__Py_wreadlink\"]=function(){return(__Py_wreadlink=Module[\"__Py_wreadlink\"]=Module[\"asm\"][\"_Py_wreadlink\"]).apply(null,arguments)};var _wcsrchr=Module[\"_wcsrchr\"]=function(){return(_wcsrchr=Module[\"_wcsrchr\"]=Module[\"asm\"][\"wcsrchr\"]).apply(null,arguments)};var _wcsncpy=Module[\"_wcsncpy\"]=function(){return(_wcsncpy=Module[\"_wcsncpy\"]=Module[\"asm\"][\"wcsncpy\"]).apply(null,arguments)};var __Py_wrealpath=Module[\"__Py_wrealpath\"]=function(){return(__Py_wrealpath=Module[\"__Py_wrealpath\"]=Module[\"asm\"][\"_Py_wrealpath\"]).apply(null,arguments)};var __Py_FindEnvConfigValue=Module[\"__Py_FindEnvConfigValue\"]=function(){return(__Py_FindEnvConfigValue=Module[\"__Py_FindEnvConfigValue\"]=Module[\"asm\"][\"_Py_FindEnvConfigValue\"]).apply(null,arguments)};var __Py_ClearFileSystemEncoding=Module[\"__Py_ClearFileSystemEncoding\"]=function(){return(__Py_ClearFileSystemEncoding=Module[\"__Py_ClearFileSystemEncoding\"]=Module[\"asm\"][\"_Py_ClearFileSystemEncoding\"]).apply(null,arguments)};var __PyPreCmdline_SetArgv=Module[\"__PyPreCmdline_SetArgv\"]=function(){return(__PyPreCmdline_SetArgv=Module[\"__PyPreCmdline_SetArgv\"]=Module[\"asm\"][\"_PyPreCmdline_SetArgv\"]).apply(null,arguments)};var _wcsncmp=Module[\"_wcsncmp\"]=function(){return(_wcsncmp=Module[\"_wcsncmp\"]=Module[\"asm\"][\"wcsncmp\"]).apply(null,arguments)};var __PyPreConfig_InitCompatConfig=Module[\"__PyPreConfig_InitCompatConfig\"]=function(){return(__PyPreConfig_InitCompatConfig=Module[\"__PyPreConfig_InitCompatConfig\"]=Module[\"asm\"][\"_PyPreConfig_InitCompatConfig\"]).apply(null,arguments)};var _PyPreConfig_InitPythonConfig=Module[\"_PyPreConfig_InitPythonConfig\"]=function(){return(_PyPreConfig_InitPythonConfig=Module[\"_PyPreConfig_InitPythonConfig\"]=Module[\"asm\"][\"PyPreConfig_InitPythonConfig\"]).apply(null,arguments)};var _PyPreConfig_InitIsolatedConfig=Module[\"_PyPreConfig_InitIsolatedConfig\"]=function(){return(_PyPreConfig_InitIsolatedConfig=Module[\"_PyPreConfig_InitIsolatedConfig\"]=Module[\"asm\"][\"PyPreConfig_InitIsolatedConfig\"]).apply(null,arguments)};var __PyPreConfig_InitFromConfig=Module[\"__PyPreConfig_InitFromConfig\"]=function(){return(__PyPreConfig_InitFromConfig=Module[\"__PyPreConfig_InitFromConfig\"]=Module[\"asm\"][\"_PyPreConfig_InitFromConfig\"]).apply(null,arguments)};var __PyPreConfig_Read=Module[\"__PyPreConfig_Read\"]=function(){return(__PyPreConfig_Read=Module[\"__PyPreConfig_Read\"]=Module[\"asm\"][\"_PyPreConfig_Read\"]).apply(null,arguments)};var __Py_SetLocaleFromEnv=Module[\"__Py_SetLocaleFromEnv\"]=function(){return(__Py_SetLocaleFromEnv=Module[\"__Py_SetLocaleFromEnv\"]=Module[\"asm\"][\"_Py_SetLocaleFromEnv\"]).apply(null,arguments)};var __Py_LegacyLocaleDetected=Module[\"__Py_LegacyLocaleDetected\"]=function(){return(__Py_LegacyLocaleDetected=Module[\"__Py_LegacyLocaleDetected\"]=Module[\"asm\"][\"_Py_LegacyLocaleDetected\"]).apply(null,arguments)};var __Py_CoerceLegacyLocale=Module[\"__Py_CoerceLegacyLocale\"]=function(){return(__Py_CoerceLegacyLocale=Module[\"__Py_CoerceLegacyLocale\"]=Module[\"asm\"][\"_Py_CoerceLegacyLocale\"]).apply(null,arguments)};var __PyPreConfig_Write=Module[\"__PyPreConfig_Write\"]=function(){return(__PyPreConfig_Write=Module[\"__PyPreConfig_Write\"]=Module[\"asm\"][\"_PyPreConfig_Write\"]).apply(null,arguments)};var _PyFPE_dummy=Module[\"_PyFPE_dummy\"]=function(){return(_PyFPE_dummy=Module[\"_PyFPE_dummy\"]=Module[\"asm\"][\"PyFPE_dummy\"]).apply(null,arguments)};var __PyHash_Fini=Module[\"__PyHash_Fini\"]=function(){return(__PyHash_Fini=Module[\"__PyHash_Fini\"]=Module[\"asm\"][\"_PyHash_Fini\"]).apply(null,arguments)};var _PyHash_GetFuncDef=Module[\"_PyHash_GetFuncDef\"]=function(){return(_PyHash_GetFuncDef=Module[\"_PyHash_GetFuncDef\"]=Module[\"asm\"][\"PyHash_GetFuncDef\"]).apply(null,arguments)};var __PyRuntimeState_Init=Module[\"__PyRuntimeState_Init\"]=function(){return(__PyRuntimeState_Init=Module[\"__PyRuntimeState_Init\"]=Module[\"asm\"][\"_PyRuntimeState_Init\"]).apply(null,arguments)};var __PyRuntime_Finalize=Module[\"__PyRuntime_Finalize\"]=function(){return(__PyRuntime_Finalize=Module[\"__PyRuntime_Finalize\"]=Module[\"asm\"][\"_PyRuntime_Finalize\"]).apply(null,arguments)};var __PyRuntimeState_Fini=Module[\"__PyRuntimeState_Fini\"]=function(){return(__PyRuntimeState_Fini=Module[\"__PyRuntimeState_Fini\"]=Module[\"asm\"][\"_PyRuntimeState_Fini\"]).apply(null,arguments)};var _PyModule_GetWarningsModule=Module[\"_PyModule_GetWarningsModule\"]=function(){return(_PyModule_GetWarningsModule=Module[\"_PyModule_GetWarningsModule\"]=Module[\"asm\"][\"PyModule_GetWarningsModule\"]).apply(null,arguments)};var __Py_IsCoreInitialized=Module[\"__Py_IsCoreInitialized\"]=function(){return(__Py_IsCoreInitialized=Module[\"__Py_IsCoreInitialized\"]=Module[\"asm\"][\"_Py_IsCoreInitialized\"]).apply(null,arguments)};var __Py_ResetForceASCII=Module[\"__Py_ResetForceASCII\"]=function(){return(__Py_ResetForceASCII=Module[\"__Py_ResetForceASCII\"]=Module[\"asm\"][\"_Py_ResetForceASCII\"]).apply(null,arguments)};var _setenv=Module[\"_setenv\"]=function(){return(_setenv=Module[\"_setenv\"]=Module[\"asm\"][\"setenv\"]).apply(null,arguments)};var __Py_PreInitializeFromPyArgv=Module[\"__Py_PreInitializeFromPyArgv\"]=function(){return(__Py_PreInitializeFromPyArgv=Module[\"__Py_PreInitializeFromPyArgv\"]=Module[\"asm\"][\"_Py_PreInitializeFromPyArgv\"]).apply(null,arguments)};var _Py_PreInitializeFromBytesArgs=Module[\"_Py_PreInitializeFromBytesArgs\"]=function(){return(_Py_PreInitializeFromBytesArgs=Module[\"_Py_PreInitializeFromBytesArgs\"]=Module[\"asm\"][\"Py_PreInitializeFromBytesArgs\"]).apply(null,arguments)};var _Py_PreInitializeFromArgs=Module[\"_Py_PreInitializeFromArgs\"]=function(){return(_Py_PreInitializeFromArgs=Module[\"_Py_PreInitializeFromArgs\"]=Module[\"asm\"][\"Py_PreInitializeFromArgs\"]).apply(null,arguments)};var _Py_PreInitialize=Module[\"_Py_PreInitialize\"]=function(){return(_Py_PreInitialize=Module[\"_Py_PreInitialize\"]=Module[\"asm\"][\"Py_PreInitialize\"]).apply(null,arguments)};var __Py_InitializeMain=Module[\"__Py_InitializeMain\"]=function(){return(__Py_InitializeMain=Module[\"__Py_InitializeMain\"]=Module[\"asm\"][\"_Py_InitializeMain\"]).apply(null,arguments)};var __Py_HashRandomization_Init=Module[\"__Py_HashRandomization_Init\"]=function(){return(__Py_HashRandomization_Init=Module[\"__Py_HashRandomization_Init\"]=Module[\"asm\"][\"_Py_HashRandomization_Init\"]).apply(null,arguments)};var __PyInterpreterState_Enable=Module[\"__PyInterpreterState_Enable\"]=function(){return(__PyInterpreterState_Enable=Module[\"__PyInterpreterState_Enable\"]=Module[\"asm\"][\"_PyInterpreterState_Enable\"]).apply(null,arguments)};var _PyInterpreterState_New=Module[\"_PyInterpreterState_New\"]=function(){return(_PyInterpreterState_New=Module[\"_PyInterpreterState_New\"]=Module[\"asm\"][\"PyInterpreterState_New\"]).apply(null,arguments)};var __PyInterpreterState_SetConfig=Module[\"__PyInterpreterState_SetConfig\"]=function(){return(__PyInterpreterState_SetConfig=Module[\"__PyInterpreterState_SetConfig\"]=Module[\"asm\"][\"_PyInterpreterState_SetConfig\"]).apply(null,arguments)};var _PyThreadState_New=Module[\"_PyThreadState_New\"]=function(){return(_PyThreadState_New=Module[\"_PyThreadState_New\"]=Module[\"asm\"][\"PyThreadState_New\"]).apply(null,arguments)};var _PyThreadState_Swap=Module[\"_PyThreadState_Swap\"]=function(){return(_PyThreadState_Swap=Module[\"_PyThreadState_Swap\"]=Module[\"asm\"][\"PyThreadState_Swap\"]).apply(null,arguments)};var __PyGILState_Init=Module[\"__PyGILState_Init\"]=function(){return(__PyGILState_Init=Module[\"__PyGILState_Init\"]=Module[\"asm\"][\"_PyGILState_Init\"]).apply(null,arguments)};var _Py_InitializeEx=Module[\"_Py_InitializeEx\"]=function(){return(_Py_InitializeEx=Module[\"_Py_InitializeEx\"]=Module[\"asm\"][\"Py_InitializeEx\"]).apply(null,arguments)};var _Py_FatalError=Module[\"_Py_FatalError\"]=function(){return(_Py_FatalError=Module[\"_Py_FatalError\"]=Module[\"asm\"][\"Py_FatalError\"]).apply(null,arguments)};var _Py_Initialize=Module[\"_Py_Initialize\"]=function(){return(_Py_Initialize=Module[\"_Py_Initialize\"]=Module[\"asm\"][\"Py_Initialize\"]).apply(null,arguments)};var _PyOS_FiniInterrupts=Module[\"_PyOS_FiniInterrupts\"]=function(){return(_PyOS_FiniInterrupts=Module[\"_PyOS_FiniInterrupts\"]=Module[\"asm\"][\"PyOS_FiniInterrupts\"]).apply(null,arguments)};var __PyGC_CollectIfEnabled=Module[\"__PyGC_CollectIfEnabled\"]=function(){return(__PyGC_CollectIfEnabled=Module[\"__PyGC_CollectIfEnabled\"]=Module[\"asm\"][\"_PyGC_CollectIfEnabled\"]).apply(null,arguments)};var __PyTraceMalloc_Fini=Module[\"__PyTraceMalloc_Fini\"]=function(){return(__PyTraceMalloc_Fini=Module[\"__PyTraceMalloc_Fini\"]=Module[\"asm\"][\"_PyTraceMalloc_Fini\"]).apply(null,arguments)};var __PyFaulthandler_Fini=Module[\"__PyFaulthandler_Fini\"]=function(){return(__PyFaulthandler_Fini=Module[\"__PyFaulthandler_Fini\"]=Module[\"asm\"][\"_PyFaulthandler_Fini\"]).apply(null,arguments)};var __PyGILState_Fini=Module[\"__PyGILState_Fini\"]=function(){return(__PyGILState_Fini=Module[\"__PyGILState_Fini\"]=Module[\"asm\"][\"_PyGILState_Fini\"]).apply(null,arguments)};var _PyInterpreterState_Delete=Module[\"_PyInterpreterState_Delete\"]=function(){return(_PyInterpreterState_Delete=Module[\"_PyInterpreterState_Delete\"]=Module[\"asm\"][\"PyInterpreterState_Delete\"]).apply(null,arguments)};var _PyInterpreterState_Clear=Module[\"_PyInterpreterState_Clear\"]=function(){return(_PyInterpreterState_Clear=Module[\"_PyInterpreterState_Clear\"]=Module[\"asm\"][\"PyInterpreterState_Clear\"]).apply(null,arguments)};var __PyGC_Fini=Module[\"__PyGC_Fini\"]=function(){return(__PyGC_Fini=Module[\"__PyGC_Fini\"]=Module[\"asm\"][\"_PyGC_Fini\"]).apply(null,arguments)};var __PySys_ClearAuditHooks=Module[\"__PySys_ClearAuditHooks\"]=function(){return(__PySys_ClearAuditHooks=Module[\"__PySys_ClearAuditHooks\"]=Module[\"asm\"][\"_PySys_ClearAuditHooks\"]).apply(null,arguments)};var _Py_Finalize=Module[\"_Py_Finalize\"]=function(){return(_Py_Finalize=Module[\"_Py_Finalize\"]=Module[\"asm\"][\"Py_Finalize\"]).apply(null,arguments)};var __Py_NewInterpreter=Module[\"__Py_NewInterpreter\"]=function(){return(__Py_NewInterpreter=Module[\"__Py_NewInterpreter\"]=Module[\"asm\"][\"_Py_NewInterpreter\"]).apply(null,arguments)};var _PyInterpreterState_Main=Module[\"_PyInterpreterState_Main\"]=function(){return(_PyInterpreterState_Main=Module[\"_PyInterpreterState_Main\"]=Module[\"asm\"][\"PyInterpreterState_Main\"]).apply(null,arguments)};var _PyErr_PrintEx=Module[\"_PyErr_PrintEx\"]=function(){return(_PyErr_PrintEx=Module[\"_PyErr_PrintEx\"]=Module[\"asm\"][\"PyErr_PrintEx\"]).apply(null,arguments)};var _PyThreadState_Clear=Module[\"_PyThreadState_Clear\"]=function(){return(_PyThreadState_Clear=Module[\"_PyThreadState_Clear\"]=Module[\"asm\"][\"PyThreadState_Clear\"]).apply(null,arguments)};var _PyThreadState_Delete=Module[\"_PyThreadState_Delete\"]=function(){return(_PyThreadState_Delete=Module[\"_PyThreadState_Delete\"]=Module[\"asm\"][\"PyThreadState_Delete\"]).apply(null,arguments)};var _Py_NewInterpreter=Module[\"_Py_NewInterpreter\"]=function(){return(_Py_NewInterpreter=Module[\"_Py_NewInterpreter\"]=Module[\"asm\"][\"Py_NewInterpreter\"]).apply(null,arguments)};var _Py_EndInterpreter=Module[\"_Py_EndInterpreter\"]=function(){return(_Py_EndInterpreter=Module[\"_Py_EndInterpreter\"]=Module[\"asm\"][\"Py_EndInterpreter\"]).apply(null,arguments)};var __Py_DumpTracebackThreads=Module[\"__Py_DumpTracebackThreads\"]=function(){return(__Py_DumpTracebackThreads=Module[\"__Py_DumpTracebackThreads\"]=Module[\"asm\"][\"_Py_DumpTracebackThreads\"]).apply(null,arguments)};var _vfprintf=Module[\"_vfprintf\"]=function(){return(_vfprintf=Module[\"_vfprintf\"]=Module[\"asm\"][\"vfprintf\"]).apply(null,arguments)};var __Py_PyAtExit=Module[\"__Py_PyAtExit\"]=function(){return(__Py_PyAtExit=Module[\"__Py_PyAtExit\"]=Module[\"asm\"][\"_Py_PyAtExit\"]).apply(null,arguments)};var _Py_AtExit=Module[\"_Py_AtExit\"]=function(){return(_Py_AtExit=Module[\"_Py_AtExit\"]=Module[\"asm\"][\"Py_AtExit\"]).apply(null,arguments)};var _Py_Exit=Module[\"_Py_Exit\"]=function(){return(_Py_Exit=Module[\"_Py_Exit\"]=Module[\"asm\"][\"Py_Exit\"]).apply(null,arguments)};var __Py_RestoreSignals=Module[\"__Py_RestoreSignals\"]=function(){return(__Py_RestoreSignals=Module[\"__Py_RestoreSignals\"]=Module[\"asm\"][\"_Py_RestoreSignals\"]).apply(null,arguments)};var _PyOS_setsig=Module[\"_PyOS_setsig\"]=function(){return(_PyOS_setsig=Module[\"_PyOS_setsig\"]=Module[\"asm\"][\"PyOS_setsig\"]).apply(null,arguments)};var _Py_FdIsInteractive=Module[\"_Py_FdIsInteractive\"]=function(){return(_Py_FdIsInteractive=Module[\"_Py_FdIsInteractive\"]=Module[\"asm\"][\"Py_FdIsInteractive\"]).apply(null,arguments)};var _PyOS_getsig=Module[\"_PyOS_getsig\"]=function(){return(_PyOS_getsig=Module[\"_PyOS_getsig\"]=Module[\"asm\"][\"PyOS_getsig\"]).apply(null,arguments)};var __PyTime_Init=Module[\"__PyTime_Init\"]=function(){return(__PyTime_Init=Module[\"__PyTime_Init\"]=Module[\"asm\"][\"_PyTime_Init\"]).apply(null,arguments)};var __PySys_InitMain=Module[\"__PySys_InitMain\"]=function(){return(__PySys_InitMain=Module[\"__PySys_InitMain\"]=Module[\"asm\"][\"_PySys_InitMain\"]).apply(null,arguments)};var __PyFaulthandler_Init=Module[\"__PyFaulthandler_Init\"]=function(){return(__PyFaulthandler_Init=Module[\"__PyFaulthandler_Init\"]=Module[\"asm\"][\"_PyFaulthandler_Init\"]).apply(null,arguments)};var __PySignal_Init=Module[\"__PySignal_Init\"]=function(){return(__PySignal_Init=Module[\"__PySignal_Init\"]=Module[\"asm\"][\"_PySignal_Init\"]).apply(null,arguments)};var __PyTraceMalloc_Init=Module[\"__PyTraceMalloc_Init\"]=function(){return(__PyTraceMalloc_Init=Module[\"__PyTraceMalloc_Init\"]=Module[\"asm\"][\"_PyTraceMalloc_Init\"]).apply(null,arguments)};var _fstat=Module[\"_fstat\"]=function(){return(_fstat=Module[\"_fstat\"]=Module[\"asm\"][\"fstat\"]).apply(null,arguments)};var __PyGC_Init=Module[\"__PyGC_Init\"]=function(){return(__PyGC_Init=Module[\"__PyGC_Init\"]=Module[\"asm\"][\"_PyGC_Init\"]).apply(null,arguments)};var __PySys_Create=Module[\"__PySys_Create\"]=function(){return(__PySys_Create=Module[\"__PySys_Create\"]=Module[\"asm\"][\"_PySys_Create\"]).apply(null,arguments)};var __Py_HashRandomization_Fini=Module[\"__Py_HashRandomization_Fini\"]=function(){return(__Py_HashRandomization_Fini=Module[\"__Py_HashRandomization_Fini\"]=Module[\"asm\"][\"_Py_HashRandomization_Fini\"]).apply(null,arguments)};var _PyOS_mystrnicmp=Module[\"_PyOS_mystrnicmp\"]=function(){return(_PyOS_mystrnicmp=Module[\"_PyOS_mystrnicmp\"]=Module[\"asm\"][\"PyOS_mystrnicmp\"]).apply(null,arguments)};var __PyRuntimeState_ReInitThreads=Module[\"__PyRuntimeState_ReInitThreads\"]=function(){return(__PyRuntimeState_ReInitThreads=Module[\"__PyRuntimeState_ReInitThreads\"]=Module[\"asm\"][\"_PyRuntimeState_ReInitThreads\"]).apply(null,arguments)};var __PyGC_InitState=Module[\"__PyGC_InitState\"]=function(){return(__PyGC_InitState=Module[\"__PyGC_InitState\"]=Module[\"asm\"][\"_PyGC_InitState\"]).apply(null,arguments)};var __PyInterpreterState_DeleteExceptMain=Module[\"__PyInterpreterState_DeleteExceptMain\"]=function(){return(__PyInterpreterState_DeleteExceptMain=Module[\"__PyInterpreterState_DeleteExceptMain\"]=Module[\"asm\"][\"_PyInterpreterState_DeleteExceptMain\"]).apply(null,arguments)};var _PyInterpreterState_Get=Module[\"_PyInterpreterState_Get\"]=function(){return(_PyInterpreterState_Get=Module[\"_PyInterpreterState_Get\"]=Module[\"asm\"][\"PyInterpreterState_Get\"]).apply(null,arguments)};var _PyInterpreterState_ThreadHead=Module[\"_PyInterpreterState_ThreadHead\"]=function(){return(_PyInterpreterState_ThreadHead=Module[\"_PyInterpreterState_ThreadHead\"]=Module[\"asm\"][\"PyInterpreterState_ThreadHead\"]).apply(null,arguments)};var __PyInterpreterState_RequiresIDRef=Module[\"__PyInterpreterState_RequiresIDRef\"]=function(){return(__PyInterpreterState_RequiresIDRef=Module[\"__PyInterpreterState_RequiresIDRef\"]=Module[\"asm\"][\"_PyInterpreterState_RequiresIDRef\"]).apply(null,arguments)};var __PyInterpreterState_RequireIDRef=Module[\"__PyInterpreterState_RequireIDRef\"]=function(){return(__PyInterpreterState_RequireIDRef=Module[\"__PyInterpreterState_RequireIDRef\"]=Module[\"asm\"][\"_PyInterpreterState_RequireIDRef\"]).apply(null,arguments)};var __PyInterpreterState_GetMainModule=Module[\"__PyInterpreterState_GetMainModule\"]=function(){return(__PyInterpreterState_GetMainModule=Module[\"__PyInterpreterState_GetMainModule\"]=Module[\"asm\"][\"_PyInterpreterState_GetMainModule\"]).apply(null,arguments)};var _PyInterpreterState_GetDict=Module[\"_PyInterpreterState_GetDict\"]=function(){return(_PyInterpreterState_GetDict=Module[\"_PyInterpreterState_GetDict\"]=Module[\"asm\"][\"PyInterpreterState_GetDict\"]).apply(null,arguments)};var _PyThread_tss_get=Module[\"_PyThread_tss_get\"]=function(){return(_PyThread_tss_get=Module[\"_PyThread_tss_get\"]=Module[\"asm\"][\"PyThread_tss_get\"]).apply(null,arguments)};var _PyThread_tss_set=Module[\"_PyThread_tss_set\"]=function(){return(_PyThread_tss_set=Module[\"_PyThread_tss_set\"]=Module[\"asm\"][\"PyThread_tss_set\"]).apply(null,arguments)};var __PyThreadState_Prealloc=Module[\"__PyThreadState_Prealloc\"]=function(){return(__PyThreadState_Prealloc=Module[\"__PyThreadState_Prealloc\"]=Module[\"asm\"][\"_PyThreadState_Prealloc\"]).apply(null,arguments)};var __PyThreadState_Init=Module[\"__PyThreadState_Init\"]=function(){return(__PyThreadState_Init=Module[\"__PyThreadState_Init\"]=Module[\"asm\"][\"_PyThreadState_Init\"]).apply(null,arguments)};var _PyState_FindModule=Module[\"_PyState_FindModule\"]=function(){return(_PyState_FindModule=Module[\"_PyState_FindModule\"]=Module[\"asm\"][\"PyState_FindModule\"]).apply(null,arguments)};var _PyState_AddModule=Module[\"_PyState_AddModule\"]=function(){return(_PyState_AddModule=Module[\"_PyState_AddModule\"]=Module[\"asm\"][\"PyState_AddModule\"]).apply(null,arguments)};var _PyState_RemoveModule=Module[\"_PyState_RemoveModule\"]=function(){return(_PyState_RemoveModule=Module[\"_PyState_RemoveModule\"]=Module[\"asm\"][\"PyState_RemoveModule\"]).apply(null,arguments)};var __PyThreadState_DeleteCurrent=Module[\"__PyThreadState_DeleteCurrent\"]=function(){return(__PyThreadState_DeleteCurrent=Module[\"__PyThreadState_DeleteCurrent\"]=Module[\"asm\"][\"_PyThreadState_DeleteCurrent\"]).apply(null,arguments)};var _PyThreadState_DeleteCurrent=Module[\"_PyThreadState_DeleteCurrent\"]=function(){return(_PyThreadState_DeleteCurrent=Module[\"_PyThreadState_DeleteCurrent\"]=Module[\"asm\"][\"PyThreadState_DeleteCurrent\"]).apply(null,arguments)};var __PyThreadState_UncheckedGet=Module[\"__PyThreadState_UncheckedGet\"]=function(){return(__PyThreadState_UncheckedGet=Module[\"__PyThreadState_UncheckedGet\"]=Module[\"asm\"][\"_PyThreadState_UncheckedGet\"]).apply(null,arguments)};var __PyThreadState_GetDict=Module[\"__PyThreadState_GetDict\"]=function(){return(__PyThreadState_GetDict=Module[\"__PyThreadState_GetDict\"]=Module[\"asm\"][\"_PyThreadState_GetDict\"]).apply(null,arguments)};var _PyThreadState_GetInterpreter=Module[\"_PyThreadState_GetInterpreter\"]=function(){return(_PyThreadState_GetInterpreter=Module[\"_PyThreadState_GetInterpreter\"]=Module[\"asm\"][\"PyThreadState_GetInterpreter\"]).apply(null,arguments)};var _PyThreadState_GetID=Module[\"_PyThreadState_GetID\"]=function(){return(_PyThreadState_GetID=Module[\"_PyThreadState_GetID\"]=Module[\"asm\"][\"PyThreadState_GetID\"]).apply(null,arguments)};var _PyThreadState_SetAsyncExc=Module[\"_PyThreadState_SetAsyncExc\"]=function(){return(_PyThreadState_SetAsyncExc=Module[\"_PyThreadState_SetAsyncExc\"]=Module[\"asm\"][\"PyThreadState_SetAsyncExc\"]).apply(null,arguments)};var _PyInterpreterState_Head=Module[\"_PyInterpreterState_Head\"]=function(){return(_PyInterpreterState_Head=Module[\"_PyInterpreterState_Head\"]=Module[\"asm\"][\"PyInterpreterState_Head\"]).apply(null,arguments)};var _PyInterpreterState_Next=Module[\"_PyInterpreterState_Next\"]=function(){return(_PyInterpreterState_Next=Module[\"_PyInterpreterState_Next\"]=Module[\"asm\"][\"PyInterpreterState_Next\"]).apply(null,arguments)};var _PyThreadState_Next=Module[\"_PyThreadState_Next\"]=function(){return(_PyThreadState_Next=Module[\"_PyThreadState_Next\"]=Module[\"asm\"][\"PyThreadState_Next\"]).apply(null,arguments)};var __PyThread_CurrentFrames=Module[\"__PyThread_CurrentFrames\"]=function(){return(__PyThread_CurrentFrames=Module[\"__PyThread_CurrentFrames\"]=Module[\"asm\"][\"_PyThread_CurrentFrames\"]).apply(null,arguments)};var _PyThread_tss_create=Module[\"_PyThread_tss_create\"]=function(){return(_PyThread_tss_create=Module[\"_PyThread_tss_create\"]=Module[\"asm\"][\"PyThread_tss_create\"]).apply(null,arguments)};var __PyGILState_GetInterpreterStateUnsafe=Module[\"__PyGILState_GetInterpreterStateUnsafe\"]=function(){return(__PyGILState_GetInterpreterStateUnsafe=Module[\"__PyGILState_GetInterpreterStateUnsafe\"]=Module[\"asm\"][\"_PyGILState_GetInterpreterStateUnsafe\"]).apply(null,arguments)};var _PyThread_tss_delete=Module[\"_PyThread_tss_delete\"]=function(){return(_PyThread_tss_delete=Module[\"_PyThread_tss_delete\"]=Module[\"asm\"][\"PyThread_tss_delete\"]).apply(null,arguments)};var __PyGILState_Reinit=Module[\"__PyGILState_Reinit\"]=function(){return(__PyGILState_Reinit=Module[\"__PyGILState_Reinit\"]=Module[\"asm\"][\"_PyGILState_Reinit\"]).apply(null,arguments)};var _PyThread_tss_is_created=Module[\"_PyThread_tss_is_created\"]=function(){return(_PyThread_tss_is_created=Module[\"_PyThread_tss_is_created\"]=Module[\"asm\"][\"PyThread_tss_is_created\"]).apply(null,arguments)};var __PyObject_CheckCrossInterpreterData=Module[\"__PyObject_CheckCrossInterpreterData\"]=function(){return(__PyObject_CheckCrossInterpreterData=Module[\"__PyObject_CheckCrossInterpreterData\"]=Module[\"asm\"][\"_PyObject_CheckCrossInterpreterData\"]).apply(null,arguments)};var __PyCrossInterpreterData_Lookup=Module[\"__PyCrossInterpreterData_Lookup\"]=function(){return(__PyCrossInterpreterData_Lookup=Module[\"__PyCrossInterpreterData_Lookup\"]=Module[\"asm\"][\"_PyCrossInterpreterData_Lookup\"]).apply(null,arguments)};var __PyObject_GetCrossInterpreterData=Module[\"__PyObject_GetCrossInterpreterData\"]=function(){return(__PyObject_GetCrossInterpreterData=Module[\"__PyObject_GetCrossInterpreterData\"]=Module[\"asm\"][\"_PyObject_GetCrossInterpreterData\"]).apply(null,arguments)};var __PyCrossInterpreterData_Release=Module[\"__PyCrossInterpreterData_Release\"]=function(){return(__PyCrossInterpreterData_Release=Module[\"__PyCrossInterpreterData_Release\"]=Module[\"asm\"][\"_PyCrossInterpreterData_Release\"]).apply(null,arguments)};var __PyCrossInterpreterData_NewObject=Module[\"__PyCrossInterpreterData_NewObject\"]=function(){return(__PyCrossInterpreterData_NewObject=Module[\"__PyCrossInterpreterData_NewObject\"]=Module[\"asm\"][\"_PyCrossInterpreterData_NewObject\"]).apply(null,arguments)};var __PyCrossInterpreterData_RegisterClass=Module[\"__PyCrossInterpreterData_RegisterClass\"]=function(){return(__PyCrossInterpreterData_RegisterClass=Module[\"__PyCrossInterpreterData_RegisterClass\"]=Module[\"asm\"][\"_PyCrossInterpreterData_RegisterClass\"]).apply(null,arguments)};var __PyInterpreterState_GetEvalFrameFunc=Module[\"__PyInterpreterState_GetEvalFrameFunc\"]=function(){return(__PyInterpreterState_GetEvalFrameFunc=Module[\"__PyInterpreterState_GetEvalFrameFunc\"]=Module[\"asm\"][\"_PyInterpreterState_GetEvalFrameFunc\"]).apply(null,arguments)};var __PyInterpreterState_SetEvalFrameFunc=Module[\"__PyInterpreterState_SetEvalFrameFunc\"]=function(){return(__PyInterpreterState_SetEvalFrameFunc=Module[\"__PyInterpreterState_SetEvalFrameFunc\"]=Module[\"asm\"][\"_PyInterpreterState_SetEvalFrameFunc\"]).apply(null,arguments)};var _PyRun_InteractiveLoopFlags=Module[\"_PyRun_InteractiveLoopFlags\"]=function(){return(_PyRun_InteractiveLoopFlags=Module[\"_PyRun_InteractiveLoopFlags\"]=Module[\"asm\"][\"PyRun_InteractiveLoopFlags\"]).apply(null,arguments)};var _PyRun_SimpleFileExFlags=Module[\"_PyRun_SimpleFileExFlags\"]=function(){return(_PyRun_SimpleFileExFlags=Module[\"_PyRun_SimpleFileExFlags\"]=Module[\"asm\"][\"PyRun_SimpleFileExFlags\"]).apply(null,arguments)};var _rewind=Module[\"_rewind\"]=function(){return(_rewind=Module[\"_rewind\"]=Module[\"asm\"][\"rewind\"]).apply(null,arguments)};var _PyParser_ASTFromFileObject=Module[\"_PyParser_ASTFromFileObject\"]=function(){return(_PyParser_ASTFromFileObject=Module[\"_PyParser_ASTFromFileObject\"]=Module[\"asm\"][\"PyParser_ASTFromFileObject\"]).apply(null,arguments)};var _PyRun_InteractiveOneObject=Module[\"_PyRun_InteractiveOneObject\"]=function(){return(_PyRun_InteractiveOneObject=Module[\"_PyRun_InteractiveOneObject\"]=Module[\"asm\"][\"PyRun_InteractiveOneObject\"]).apply(null,arguments)};var _PyRun_InteractiveOneFlags=Module[\"_PyRun_InteractiveOneFlags\"]=function(){return(_PyRun_InteractiveOneFlags=Module[\"_PyRun_InteractiveOneFlags\"]=Module[\"asm\"][\"PyRun_InteractiveOneFlags\"]).apply(null,arguments)};var _PyRun_SimpleStringFlags=Module[\"_PyRun_SimpleStringFlags\"]=function(){return(_PyRun_SimpleStringFlags=Module[\"_PyRun_SimpleStringFlags\"]=Module[\"asm\"][\"PyRun_SimpleStringFlags\"]).apply(null,arguments)};var _PyParser_ASTFromStringObject=Module[\"_PyParser_ASTFromStringObject\"]=function(){return(_PyParser_ASTFromStringObject=Module[\"_PyParser_ASTFromStringObject\"]=Module[\"asm\"][\"PyParser_ASTFromStringObject\"]).apply(null,arguments)};var __Py_HandleSystemExit=Module[\"__Py_HandleSystemExit\"]=function(){return(__Py_HandleSystemExit=Module[\"__Py_HandleSystemExit\"]=Module[\"asm\"][\"_Py_HandleSystemExit\"]).apply(null,arguments)};var __PyErr_Display=Module[\"__PyErr_Display\"]=function(){return(__PyErr_Display=Module[\"__PyErr_Display\"]=Module[\"asm\"][\"_PyErr_Display\"]).apply(null,arguments)};var _PyRun_FileExFlags=Module[\"_PyRun_FileExFlags\"]=function(){return(_PyRun_FileExFlags=Module[\"_PyRun_FileExFlags\"]=Module[\"asm\"][\"PyRun_FileExFlags\"]).apply(null,arguments)};var _Py_CompileStringExFlags=Module[\"_Py_CompileStringExFlags\"]=function(){return(_Py_CompileStringExFlags=Module[\"_Py_CompileStringExFlags\"]=Module[\"asm\"][\"Py_CompileStringExFlags\"]).apply(null,arguments)};var _PyCompileString=Module[\"_PyCompileString\"]=function(){return(_PyCompileString=Module[\"_PyCompileString\"]=Module[\"asm\"][\"PyCompileString\"]).apply(null,arguments)};var _Py_SymtableStringObject=Module[\"_Py_SymtableStringObject\"]=function(){return(_Py_SymtableStringObject=Module[\"_Py_SymtableStringObject\"]=Module[\"asm\"][\"Py_SymtableStringObject\"]).apply(null,arguments)};var __Py_SymtableStringObjectFlags=Module[\"__Py_SymtableStringObjectFlags\"]=function(){return(__Py_SymtableStringObjectFlags=Module[\"__Py_SymtableStringObjectFlags\"]=Module[\"asm\"][\"_Py_SymtableStringObjectFlags\"]).apply(null,arguments)};var _Py_SymtableString=Module[\"_Py_SymtableString\"]=function(){return(_Py_SymtableString=Module[\"_Py_SymtableString\"]=Module[\"asm\"][\"Py_SymtableString\"]).apply(null,arguments)};var _PyParser_ASTFromString=Module[\"_PyParser_ASTFromString\"]=function(){return(_PyParser_ASTFromString=Module[\"_PyParser_ASTFromString\"]=Module[\"asm\"][\"PyParser_ASTFromString\"]).apply(null,arguments)};var _PyParser_ASTFromFile=Module[\"_PyParser_ASTFromFile\"]=function(){return(_PyParser_ASTFromFile=Module[\"_PyParser_ASTFromFile\"]=Module[\"asm\"][\"PyParser_ASTFromFile\"]).apply(null,arguments)};var _PyParser_SimpleParseFileFlags=Module[\"_PyParser_SimpleParseFileFlags\"]=function(){return(_PyParser_SimpleParseFileFlags=Module[\"_PyParser_SimpleParseFileFlags\"]=Module[\"asm\"][\"PyParser_SimpleParseFileFlags\"]).apply(null,arguments)};var _PyParser_SimpleParseStringFlags=Module[\"_PyParser_SimpleParseStringFlags\"]=function(){return(_PyParser_SimpleParseStringFlags=Module[\"_PyParser_SimpleParseStringFlags\"]=Module[\"asm\"][\"PyParser_SimpleParseStringFlags\"]).apply(null,arguments)};var _PyParser_ClearError=Module[\"_PyParser_ClearError\"]=function(){return(_PyParser_ClearError=Module[\"_PyParser_ClearError\"]=Module[\"asm\"][\"PyParser_ClearError\"]).apply(null,arguments)};var _PyParser_SetError=Module[\"_PyParser_SetError\"]=function(){return(_PyParser_SetError=Module[\"_PyParser_SetError\"]=Module[\"asm\"][\"PyParser_SetError\"]).apply(null,arguments)};var _PyParser_SimpleParseFile=Module[\"_PyParser_SimpleParseFile\"]=function(){return(_PyParser_SimpleParseFile=Module[\"_PyParser_SimpleParseFile\"]=Module[\"asm\"][\"PyParser_SimpleParseFile\"]).apply(null,arguments)};var _PyParser_SimpleParseString=Module[\"_PyParser_SimpleParseString\"]=function(){return(_PyParser_SimpleParseString=Module[\"_PyParser_SimpleParseString\"]=Module[\"asm\"][\"PyParser_SimpleParseString\"]).apply(null,arguments)};var _PyRun_AnyFile=Module[\"_PyRun_AnyFile\"]=function(){return(_PyRun_AnyFile=Module[\"_PyRun_AnyFile\"]=Module[\"asm\"][\"PyRun_AnyFile\"]).apply(null,arguments)};var _PyRun_AnyFileEx=Module[\"_PyRun_AnyFileEx\"]=function(){return(_PyRun_AnyFileEx=Module[\"_PyRun_AnyFileEx\"]=Module[\"asm\"][\"PyRun_AnyFileEx\"]).apply(null,arguments)};var _PyRun_AnyFileFlags=Module[\"_PyRun_AnyFileFlags\"]=function(){return(_PyRun_AnyFileFlags=Module[\"_PyRun_AnyFileFlags\"]=Module[\"asm\"][\"PyRun_AnyFileFlags\"]).apply(null,arguments)};var _PyRun_File=Module[\"_PyRun_File\"]=function(){return(_PyRun_File=Module[\"_PyRun_File\"]=Module[\"asm\"][\"PyRun_File\"]).apply(null,arguments)};var _PyRun_FileEx=Module[\"_PyRun_FileEx\"]=function(){return(_PyRun_FileEx=Module[\"_PyRun_FileEx\"]=Module[\"asm\"][\"PyRun_FileEx\"]).apply(null,arguments)};var _PyRun_FileFlags=Module[\"_PyRun_FileFlags\"]=function(){return(_PyRun_FileFlags=Module[\"_PyRun_FileFlags\"]=Module[\"asm\"][\"PyRun_FileFlags\"]).apply(null,arguments)};var _PyRun_SimpleFile=Module[\"_PyRun_SimpleFile\"]=function(){return(_PyRun_SimpleFile=Module[\"_PyRun_SimpleFile\"]=Module[\"asm\"][\"PyRun_SimpleFile\"]).apply(null,arguments)};var _PyRun_SimpleFileEx=Module[\"_PyRun_SimpleFileEx\"]=function(){return(_PyRun_SimpleFileEx=Module[\"_PyRun_SimpleFileEx\"]=Module[\"asm\"][\"PyRun_SimpleFileEx\"]).apply(null,arguments)};var _PyRun_String=Module[\"_PyRun_String\"]=function(){return(_PyRun_String=Module[\"_PyRun_String\"]=Module[\"asm\"][\"PyRun_String\"]).apply(null,arguments)};var _PyRun_SimpleString=Module[\"_PyRun_SimpleString\"]=function(){return(_PyRun_SimpleString=Module[\"_PyRun_SimpleString\"]=Module[\"asm\"][\"PyRun_SimpleString\"]).apply(null,arguments)};var _Py_CompileString=Module[\"_Py_CompileString\"]=function(){return(_Py_CompileString=Module[\"_Py_CompileString\"]=Module[\"asm\"][\"Py_CompileString\"]).apply(null,arguments)};var _Py_CompileStringFlags=Module[\"_Py_CompileStringFlags\"]=function(){return(_Py_CompileStringFlags=Module[\"_Py_CompileStringFlags\"]=Module[\"asm\"][\"Py_CompileStringFlags\"]).apply(null,arguments)};var _PyRun_InteractiveOne=Module[\"_PyRun_InteractiveOne\"]=function(){return(_PyRun_InteractiveOne=Module[\"_PyRun_InteractiveOne\"]=Module[\"asm\"][\"PyRun_InteractiveOne\"]).apply(null,arguments)};var _PyRun_InteractiveLoop=Module[\"_PyRun_InteractiveLoop\"]=function(){return(_PyRun_InteractiveLoop=Module[\"_PyRun_InteractiveLoop\"]=Module[\"asm\"][\"PyRun_InteractiveLoop\"]).apply(null,arguments)};var __PyTime_MulDiv=Module[\"__PyTime_MulDiv\"]=function(){return(__PyTime_MulDiv=Module[\"__PyTime_MulDiv\"]=Module[\"asm\"][\"_PyTime_MulDiv\"]).apply(null,arguments)};var __PyLong_AsTime_t=Module[\"__PyLong_AsTime_t\"]=function(){return(__PyLong_AsTime_t=Module[\"__PyLong_AsTime_t\"]=Module[\"asm\"][\"_PyLong_AsTime_t\"]).apply(null,arguments)};var __PyLong_FromTime_t=Module[\"__PyLong_FromTime_t\"]=function(){return(__PyLong_FromTime_t=Module[\"__PyLong_FromTime_t\"]=Module[\"asm\"][\"_PyLong_FromTime_t\"]).apply(null,arguments)};var __PyTime_ObjectToTime_t=Module[\"__PyTime_ObjectToTime_t\"]=function(){return(__PyTime_ObjectToTime_t=Module[\"__PyTime_ObjectToTime_t\"]=Module[\"asm\"][\"_PyTime_ObjectToTime_t\"]).apply(null,arguments)};var __PyTime_ObjectToTimespec=Module[\"__PyTime_ObjectToTimespec\"]=function(){return(__PyTime_ObjectToTimespec=Module[\"__PyTime_ObjectToTimespec\"]=Module[\"asm\"][\"_PyTime_ObjectToTimespec\"]).apply(null,arguments)};var __PyTime_ObjectToTimeval=Module[\"__PyTime_ObjectToTimeval\"]=function(){return(__PyTime_ObjectToTimeval=Module[\"__PyTime_ObjectToTimeval\"]=Module[\"asm\"][\"_PyTime_ObjectToTimeval\"]).apply(null,arguments)};var __PyTime_FromSeconds=Module[\"__PyTime_FromSeconds\"]=function(){return(__PyTime_FromSeconds=Module[\"__PyTime_FromSeconds\"]=Module[\"asm\"][\"_PyTime_FromSeconds\"]).apply(null,arguments)};var __PyTime_FromNanoseconds=Module[\"__PyTime_FromNanoseconds\"]=function(){return(__PyTime_FromNanoseconds=Module[\"__PyTime_FromNanoseconds\"]=Module[\"asm\"][\"_PyTime_FromNanoseconds\"]).apply(null,arguments)};var __PyTime_FromNanosecondsObject=Module[\"__PyTime_FromNanosecondsObject\"]=function(){return(__PyTime_FromNanosecondsObject=Module[\"__PyTime_FromNanosecondsObject\"]=Module[\"asm\"][\"_PyTime_FromNanosecondsObject\"]).apply(null,arguments)};var __PyTime_FromTimespec=Module[\"__PyTime_FromTimespec\"]=function(){return(__PyTime_FromTimespec=Module[\"__PyTime_FromTimespec\"]=Module[\"asm\"][\"_PyTime_FromTimespec\"]).apply(null,arguments)};var __PyTime_FromTimeval=Module[\"__PyTime_FromTimeval\"]=function(){return(__PyTime_FromTimeval=Module[\"__PyTime_FromTimeval\"]=Module[\"asm\"][\"_PyTime_FromTimeval\"]).apply(null,arguments)};var __PyTime_FromSecondsObject=Module[\"__PyTime_FromSecondsObject\"]=function(){return(__PyTime_FromSecondsObject=Module[\"__PyTime_FromSecondsObject\"]=Module[\"asm\"][\"_PyTime_FromSecondsObject\"]).apply(null,arguments)};var __PyTime_FromMillisecondsObject=Module[\"__PyTime_FromMillisecondsObject\"]=function(){return(__PyTime_FromMillisecondsObject=Module[\"__PyTime_FromMillisecondsObject\"]=Module[\"asm\"][\"_PyTime_FromMillisecondsObject\"]).apply(null,arguments)};var __PyTime_AsSecondsDouble=Module[\"__PyTime_AsSecondsDouble\"]=function(){return(__PyTime_AsSecondsDouble=Module[\"__PyTime_AsSecondsDouble\"]=Module[\"asm\"][\"_PyTime_AsSecondsDouble\"]).apply(null,arguments)};var __PyTime_AsNanosecondsObject=Module[\"__PyTime_AsNanosecondsObject\"]=function(){return(__PyTime_AsNanosecondsObject=Module[\"__PyTime_AsNanosecondsObject\"]=Module[\"asm\"][\"_PyTime_AsNanosecondsObject\"]).apply(null,arguments)};var __PyTime_AsMilliseconds=Module[\"__PyTime_AsMilliseconds\"]=function(){return(__PyTime_AsMilliseconds=Module[\"__PyTime_AsMilliseconds\"]=Module[\"asm\"][\"_PyTime_AsMilliseconds\"]).apply(null,arguments)};var __PyTime_AsTimeval=Module[\"__PyTime_AsTimeval\"]=function(){return(__PyTime_AsTimeval=Module[\"__PyTime_AsTimeval\"]=Module[\"asm\"][\"_PyTime_AsTimeval\"]).apply(null,arguments)};var __PyTime_AsTimeval_noraise=Module[\"__PyTime_AsTimeval_noraise\"]=function(){return(__PyTime_AsTimeval_noraise=Module[\"__PyTime_AsTimeval_noraise\"]=Module[\"asm\"][\"_PyTime_AsTimeval_noraise\"]).apply(null,arguments)};var __PyTime_AsTimevalTime_t=Module[\"__PyTime_AsTimevalTime_t\"]=function(){return(__PyTime_AsTimevalTime_t=Module[\"__PyTime_AsTimevalTime_t\"]=Module[\"asm\"][\"_PyTime_AsTimevalTime_t\"]).apply(null,arguments)};var __PyTime_AsTimespec=Module[\"__PyTime_AsTimespec\"]=function(){return(__PyTime_AsTimespec=Module[\"__PyTime_AsTimespec\"]=Module[\"asm\"][\"_PyTime_AsTimespec\"]).apply(null,arguments)};var __PyTime_GetSystemClock=Module[\"__PyTime_GetSystemClock\"]=function(){return(__PyTime_GetSystemClock=Module[\"__PyTime_GetSystemClock\"]=Module[\"asm\"][\"_PyTime_GetSystemClock\"]).apply(null,arguments)};var __PyTime_GetSystemClockWithInfo=Module[\"__PyTime_GetSystemClockWithInfo\"]=function(){return(__PyTime_GetSystemClockWithInfo=Module[\"__PyTime_GetSystemClockWithInfo\"]=Module[\"asm\"][\"_PyTime_GetSystemClockWithInfo\"]).apply(null,arguments)};var __PyTime_GetMonotonicClock=Module[\"__PyTime_GetMonotonicClock\"]=function(){return(__PyTime_GetMonotonicClock=Module[\"__PyTime_GetMonotonicClock\"]=Module[\"asm\"][\"_PyTime_GetMonotonicClock\"]).apply(null,arguments)};var __PyTime_GetMonotonicClockWithInfo=Module[\"__PyTime_GetMonotonicClockWithInfo\"]=function(){return(__PyTime_GetMonotonicClockWithInfo=Module[\"__PyTime_GetMonotonicClockWithInfo\"]=Module[\"asm\"][\"_PyTime_GetMonotonicClockWithInfo\"]).apply(null,arguments)};var __PyTime_GetPerfCounterWithInfo=Module[\"__PyTime_GetPerfCounterWithInfo\"]=function(){return(__PyTime_GetPerfCounterWithInfo=Module[\"__PyTime_GetPerfCounterWithInfo\"]=Module[\"asm\"][\"_PyTime_GetPerfCounterWithInfo\"]).apply(null,arguments)};var __PyTime_localtime=Module[\"__PyTime_localtime\"]=function(){return(__PyTime_localtime=Module[\"__PyTime_localtime\"]=Module[\"asm\"][\"_PyTime_localtime\"]).apply(null,arguments)};var __PyTime_gmtime=Module[\"__PyTime_gmtime\"]=function(){return(__PyTime_gmtime=Module[\"__PyTime_gmtime\"]=Module[\"asm\"][\"_PyTime_gmtime\"]).apply(null,arguments)};var __PyOS_URandom=Module[\"__PyOS_URandom\"]=function(){return(__PyOS_URandom=Module[\"__PyOS_URandom\"]=Module[\"asm\"][\"_PyOS_URandom\"]).apply(null,arguments)};var __Py_open=Module[\"__Py_open\"]=function(){return(__Py_open=Module[\"__Py_open\"]=Module[\"asm\"][\"_Py_open\"]).apply(null,arguments)};var _close=Module[\"_close\"]=function(){return(_close=Module[\"_close\"]=Module[\"asm\"][\"close\"]).apply(null,arguments)};var __Py_fstat=Module[\"__Py_fstat\"]=function(){return(__Py_fstat=Module[\"__Py_fstat\"]=Module[\"asm\"][\"_Py_fstat\"]).apply(null,arguments)};var __Py_read=Module[\"__Py_read\"]=function(){return(__Py_read=Module[\"__Py_read\"]=Module[\"asm\"][\"_Py_read\"]).apply(null,arguments)};var __Py_open_noraise=Module[\"__Py_open_noraise\"]=function(){return(__Py_open_noraise=Module[\"__Py_open_noraise\"]=Module[\"asm\"][\"_Py_open_noraise\"]).apply(null,arguments)};var _read=Module[\"_read\"]=function(){return(_read=Module[\"_read\"]=Module[\"asm\"][\"read\"]).apply(null,arguments)};var __PyOS_URandomNonblock=Module[\"__PyOS_URandomNonblock\"]=function(){return(__PyOS_URandomNonblock=Module[\"__PyOS_URandomNonblock\"]=Module[\"asm\"][\"_PyOS_URandomNonblock\"]).apply(null,arguments)};var _PySymtable_Build=Module[\"_PySymtable_Build\"]=function(){return(_PySymtable_Build=Module[\"_PySymtable_Build\"]=Module[\"asm\"][\"PySymtable_Build\"]).apply(null,arguments)};var _PySys_AddAuditHook=Module[\"_PySys_AddAuditHook\"]=function(){return(_PySys_AddAuditHook=Module[\"_PySys_AddAuditHook\"]=Module[\"asm\"][\"PySys_AddAuditHook\"]).apply(null,arguments)};var __PySys_GetSizeOf=Module[\"__PySys_GetSizeOf\"]=function(){return(__PySys_GetSizeOf=Module[\"__PySys_GetSizeOf\"]=Module[\"asm\"][\"_PySys_GetSizeOf\"]).apply(null,arguments)};var _PySys_ResetWarnOptions=Module[\"_PySys_ResetWarnOptions\"]=function(){return(_PySys_ResetWarnOptions=Module[\"_PySys_ResetWarnOptions\"]=Module[\"asm\"][\"PySys_ResetWarnOptions\"]).apply(null,arguments)};var _PySys_AddWarnOptionUnicode=Module[\"_PySys_AddWarnOptionUnicode\"]=function(){return(_PySys_AddWarnOptionUnicode=Module[\"_PySys_AddWarnOptionUnicode\"]=Module[\"asm\"][\"PySys_AddWarnOptionUnicode\"]).apply(null,arguments)};var _PySys_AddWarnOption=Module[\"_PySys_AddWarnOption\"]=function(){return(_PySys_AddWarnOption=Module[\"_PySys_AddWarnOption\"]=Module[\"asm\"][\"PySys_AddWarnOption\"]).apply(null,arguments)};var _PySys_HasWarnOptions=Module[\"_PySys_HasWarnOptions\"]=function(){return(_PySys_HasWarnOptions=Module[\"_PySys_HasWarnOptions\"]=Module[\"asm\"][\"PySys_HasWarnOptions\"]).apply(null,arguments)};var _PySys_AddXOption=Module[\"_PySys_AddXOption\"]=function(){return(_PySys_AddXOption=Module[\"_PySys_AddXOption\"]=Module[\"asm\"][\"PySys_AddXOption\"]).apply(null,arguments)};var _PySys_GetXOptions=Module[\"_PySys_GetXOptions\"]=function(){return(_PySys_GetXOptions=Module[\"_PySys_GetXOptions\"]=Module[\"asm\"][\"PySys_GetXOptions\"]).apply(null,arguments)};var _PyThread_GetInfo=Module[\"_PyThread_GetInfo\"]=function(){return(_PyThread_GetInfo=Module[\"_PyThread_GetInfo\"]=Module[\"asm\"][\"PyThread_GetInfo\"]).apply(null,arguments)};var _PySys_SetPath=Module[\"_PySys_SetPath\"]=function(){return(_PySys_SetPath=Module[\"_PySys_SetPath\"]=Module[\"asm\"][\"PySys_SetPath\"]).apply(null,arguments)};var _PySys_SetArgvEx=Module[\"_PySys_SetArgvEx\"]=function(){return(_PySys_SetArgvEx=Module[\"_PySys_SetArgvEx\"]=Module[\"asm\"][\"PySys_SetArgvEx\"]).apply(null,arguments)};var _PySys_WriteStdout=Module[\"_PySys_WriteStdout\"]=function(){return(_PySys_WriteStdout=Module[\"_PySys_WriteStdout\"]=Module[\"asm\"][\"PySys_WriteStdout\"]).apply(null,arguments)};var _PySys_FormatStdout=Module[\"_PySys_FormatStdout\"]=function(){return(_PySys_FormatStdout=Module[\"_PySys_FormatStdout\"]=Module[\"asm\"][\"PySys_FormatStdout\"]).apply(null,arguments)};var _pthread_condattr_init=Module[\"_pthread_condattr_init\"]=function(){return(_pthread_condattr_init=Module[\"_pthread_condattr_init\"]=Module[\"asm\"][\"pthread_condattr_init\"]).apply(null,arguments)};var _pthread_condattr_setclock=Module[\"_pthread_condattr_setclock\"]=function(){return(_pthread_condattr_setclock=Module[\"_pthread_condattr_setclock\"]=Module[\"asm\"][\"pthread_condattr_setclock\"]).apply(null,arguments)};var _pthread_cond_init=Module[\"_pthread_cond_init\"]=function(){return(_pthread_cond_init=Module[\"_pthread_cond_init\"]=Module[\"asm\"][\"pthread_cond_init\"]).apply(null,arguments)};var _PyThread_start_new_thread=Module[\"_PyThread_start_new_thread\"]=function(){return(_PyThread_start_new_thread=Module[\"_PyThread_start_new_thread\"]=Module[\"asm\"][\"PyThread_start_new_thread\"]).apply(null,arguments)};var _pthread_attr_init=Module[\"_pthread_attr_init\"]=function(){return(_pthread_attr_init=Module[\"_pthread_attr_init\"]=Module[\"asm\"][\"pthread_attr_init\"]).apply(null,arguments)};var _pthread_attr_setstacksize=Module[\"_pthread_attr_setstacksize\"]=function(){return(_pthread_attr_setstacksize=Module[\"_pthread_attr_setstacksize\"]=Module[\"asm\"][\"pthread_attr_setstacksize\"]).apply(null,arguments)};var _pthread_attr_destroy=Module[\"_pthread_attr_destroy\"]=function(){return(_pthread_attr_destroy=Module[\"_pthread_attr_destroy\"]=Module[\"asm\"][\"pthread_attr_destroy\"]).apply(null,arguments)};var _pthread_detach=Module[\"_pthread_detach\"]=function(){return(_pthread_detach=Module[\"_pthread_detach\"]=Module[\"asm\"][\"pthread_detach\"]).apply(null,arguments)};var _pthread_self=Module[\"_pthread_self\"]=function(){return(_pthread_self=Module[\"_pthread_self\"]=Module[\"asm\"][\"pthread_self\"]).apply(null,arguments)};var _pthread_exit=Module[\"_pthread_exit\"]=function(){return(_pthread_exit=Module[\"_pthread_exit\"]=Module[\"asm\"][\"pthread_exit\"]).apply(null,arguments)};var _PyThread_acquire_lock_timed=Module[\"_PyThread_acquire_lock_timed\"]=function(){return(_PyThread_acquire_lock_timed=Module[\"_PyThread_acquire_lock_timed\"]=Module[\"asm\"][\"PyThread_acquire_lock_timed\"]).apply(null,arguments)};var _pthread_mutex_trylock=Module[\"_pthread_mutex_trylock\"]=function(){return(_pthread_mutex_trylock=Module[\"_pthread_mutex_trylock\"]=Module[\"asm\"][\"pthread_mutex_trylock\"]).apply(null,arguments)};var _PyThread_create_key=Module[\"_PyThread_create_key\"]=function(){return(_PyThread_create_key=Module[\"_PyThread_create_key\"]=Module[\"asm\"][\"PyThread_create_key\"]).apply(null,arguments)};var _pthread_key_create=Module[\"_pthread_key_create\"]=function(){return(_pthread_key_create=Module[\"_pthread_key_create\"]=Module[\"asm\"][\"pthread_key_create\"]).apply(null,arguments)};var _pthread_key_delete=Module[\"_pthread_key_delete\"]=function(){return(_pthread_key_delete=Module[\"_pthread_key_delete\"]=Module[\"asm\"][\"pthread_key_delete\"]).apply(null,arguments)};var _PyThread_delete_key=Module[\"_PyThread_delete_key\"]=function(){return(_PyThread_delete_key=Module[\"_PyThread_delete_key\"]=Module[\"asm\"][\"PyThread_delete_key\"]).apply(null,arguments)};var _PyThread_delete_key_value=Module[\"_PyThread_delete_key_value\"]=function(){return(_PyThread_delete_key_value=Module[\"_PyThread_delete_key_value\"]=Module[\"asm\"][\"PyThread_delete_key_value\"]).apply(null,arguments)};var _pthread_setspecific=Module[\"_pthread_setspecific\"]=function(){return(_pthread_setspecific=Module[\"_pthread_setspecific\"]=Module[\"asm\"][\"pthread_setspecific\"]).apply(null,arguments)};var _PyThread_set_key_value=Module[\"_PyThread_set_key_value\"]=function(){return(_PyThread_set_key_value=Module[\"_PyThread_set_key_value\"]=Module[\"asm\"][\"PyThread_set_key_value\"]).apply(null,arguments)};var _PyThread_get_key_value=Module[\"_PyThread_get_key_value\"]=function(){return(_PyThread_get_key_value=Module[\"_PyThread_get_key_value\"]=Module[\"asm\"][\"PyThread_get_key_value\"]).apply(null,arguments)};var _pthread_getspecific=Module[\"_pthread_getspecific\"]=function(){return(_pthread_getspecific=Module[\"_pthread_getspecific\"]=Module[\"asm\"][\"pthread_getspecific\"]).apply(null,arguments)};var _PyThread_ReInitTLS=Module[\"_PyThread_ReInitTLS\"]=function(){return(_PyThread_ReInitTLS=Module[\"_PyThread_ReInitTLS\"]=Module[\"asm\"][\"PyThread_ReInitTLS\"]).apply(null,arguments)};var _PyThread_get_stacksize=Module[\"_PyThread_get_stacksize\"]=function(){return(_PyThread_get_stacksize=Module[\"_PyThread_get_stacksize\"]=Module[\"asm\"][\"PyThread_get_stacksize\"]).apply(null,arguments)};var _PyThread_set_stacksize=Module[\"_PyThread_set_stacksize\"]=function(){return(_PyThread_set_stacksize=Module[\"_PyThread_set_stacksize\"]=Module[\"asm\"][\"PyThread_set_stacksize\"]).apply(null,arguments)};var _PyThread_tss_alloc=Module[\"_PyThread_tss_alloc\"]=function(){return(_PyThread_tss_alloc=Module[\"_PyThread_tss_alloc\"]=Module[\"asm\"][\"PyThread_tss_alloc\"]).apply(null,arguments)};var _PyThread_tss_free=Module[\"_PyThread_tss_free\"]=function(){return(_PyThread_tss_free=Module[\"_PyThread_tss_free\"]=Module[\"asm\"][\"PyThread_tss_free\"]).apply(null,arguments)};var _confstr=Module[\"_confstr\"]=function(){return(_confstr=Module[\"_confstr\"]=Module[\"asm\"][\"confstr\"]).apply(null,arguments)};var __PyTraceback_Add=Module[\"__PyTraceback_Add\"]=function(){return(__PyTraceback_Add=Module[\"__PyTraceback_Add\"]=Module[\"asm\"][\"_PyTraceback_Add\"]).apply(null,arguments)};var __Py_DumpDecimal=Module[\"__Py_DumpDecimal\"]=function(){return(__Py_DumpDecimal=Module[\"__Py_DumpDecimal\"]=Module[\"asm\"][\"_Py_DumpDecimal\"]).apply(null,arguments)};var __Py_write_noraise=Module[\"__Py_write_noraise\"]=function(){return(__Py_write_noraise=Module[\"__Py_write_noraise\"]=Module[\"asm\"][\"_Py_write_noraise\"]).apply(null,arguments)};var __Py_DumpHexadecimal=Module[\"__Py_DumpHexadecimal\"]=function(){return(__Py_DumpHexadecimal=Module[\"__Py_DumpHexadecimal\"]=Module[\"asm\"][\"_Py_DumpHexadecimal\"]).apply(null,arguments)};var __Py_DumpASCII=Module[\"__Py_DumpASCII\"]=function(){return(__Py_DumpASCII=Module[\"__Py_DumpASCII\"]=Module[\"asm\"][\"_Py_DumpASCII\"]).apply(null,arguments)};var __Py_DumpTraceback=Module[\"__Py_DumpTraceback\"]=function(){return(__Py_DumpTraceback=Module[\"__Py_DumpTraceback\"]=Module[\"asm\"][\"_Py_DumpTraceback\"]).apply(null,arguments)};var _PyOS_mystricmp=Module[\"_PyOS_mystricmp\"]=function(){return(_PyOS_mystricmp=Module[\"_PyOS_mystricmp\"]=Module[\"asm\"][\"PyOS_mystricmp\"]).apply(null,arguments)};var __Py_strhex=Module[\"__Py_strhex\"]=function(){return(__Py_strhex=Module[\"__Py_strhex\"]=Module[\"asm\"][\"_Py_strhex\"]).apply(null,arguments)};var __Py_strhex_bytes=Module[\"__Py_strhex_bytes\"]=function(){return(__Py_strhex_bytes=Module[\"__Py_strhex_bytes\"]=Module[\"asm\"][\"_Py_strhex_bytes\"]).apply(null,arguments)};var __Py_strhex_bytes_with_sep=Module[\"__Py_strhex_bytes_with_sep\"]=function(){return(__Py_strhex_bytes_with_sep=Module[\"__Py_strhex_bytes_with_sep\"]=Module[\"asm\"][\"_Py_strhex_bytes_with_sep\"]).apply(null,arguments)};var _localeconv=Module[\"_localeconv\"]=function(){return(_localeconv=Module[\"_localeconv\"]=Module[\"asm\"][\"localeconv\"]).apply(null,arguments)};var __Py_GetLocaleconvNumeric=Module[\"__Py_GetLocaleconvNumeric\"]=function(){return(__Py_GetLocaleconvNumeric=Module[\"__Py_GetLocaleconvNumeric\"]=Module[\"asm\"][\"_Py_GetLocaleconvNumeric\"]).apply(null,arguments)};var __Py_device_encoding=Module[\"__Py_device_encoding\"]=function(){return(__Py_device_encoding=Module[\"__Py_device_encoding\"]=Module[\"asm\"][\"_Py_device_encoding\"]).apply(null,arguments)};var _mbstowcs=Module[\"_mbstowcs\"]=function(){return(_mbstowcs=Module[\"_mbstowcs\"]=Module[\"asm\"][\"mbstowcs\"]).apply(null,arguments)};var _mbrtowc=Module[\"_mbrtowc\"]=function(){return(_mbrtowc=Module[\"_mbrtowc\"]=Module[\"asm\"][\"mbrtowc\"]).apply(null,arguments)};var _Py_EncodeLocale=Module[\"_Py_EncodeLocale\"]=function(){return(_Py_EncodeLocale=Module[\"_Py_EncodeLocale\"]=Module[\"asm\"][\"Py_EncodeLocale\"]).apply(null,arguments)};var __Py_EncodeLocaleRaw=Module[\"__Py_EncodeLocaleRaw\"]=function(){return(__Py_EncodeLocaleRaw=Module[\"__Py_EncodeLocaleRaw\"]=Module[\"asm\"][\"_Py_EncodeLocaleRaw\"]).apply(null,arguments)};var __Py_stat=Module[\"__Py_stat\"]=function(){return(__Py_stat=Module[\"__Py_stat\"]=Module[\"asm\"][\"_Py_stat\"]).apply(null,arguments)};var _stat=Module[\"_stat\"]=function(){return(_stat=Module[\"_stat\"]=Module[\"asm\"][\"stat\"]).apply(null,arguments)};var __Py_get_inheritable=Module[\"__Py_get_inheritable\"]=function(){return(__Py_get_inheritable=Module[\"__Py_get_inheritable\"]=Module[\"asm\"][\"_Py_get_inheritable\"]).apply(null,arguments)};var _fcntl=Module[\"_fcntl\"]=function(){return(_fcntl=Module[\"_fcntl\"]=Module[\"asm\"][\"fcntl\"]).apply(null,arguments)};var __Py_set_inheritable=Module[\"__Py_set_inheritable\"]=function(){return(__Py_set_inheritable=Module[\"__Py_set_inheritable\"]=Module[\"asm\"][\"_Py_set_inheritable\"]).apply(null,arguments)};var __Py_set_inheritable_async_safe=Module[\"__Py_set_inheritable_async_safe\"]=function(){return(__Py_set_inheritable_async_safe=Module[\"__Py_set_inheritable_async_safe\"]=Module[\"asm\"][\"_Py_set_inheritable_async_safe\"]).apply(null,arguments)};var _open=Module[\"_open\"]=function(){return(_open=Module[\"_open\"]=Module[\"asm\"][\"open\"]).apply(null,arguments)};var __Py_wfopen=Module[\"__Py_wfopen\"]=function(){return(__Py_wfopen=Module[\"__Py_wfopen\"]=Module[\"asm\"][\"_Py_wfopen\"]).apply(null,arguments)};var _wcstombs=Module[\"_wcstombs\"]=function(){return(_wcstombs=Module[\"_wcstombs\"]=Module[\"asm\"][\"wcstombs\"]).apply(null,arguments)};var _write=Module[\"_write\"]=function(){return(_write=Module[\"_write\"]=Module[\"asm\"][\"write\"]).apply(null,arguments)};var _readlink=Module[\"_readlink\"]=function(){return(_readlink=Module[\"_readlink\"]=Module[\"asm\"][\"readlink\"]).apply(null,arguments)};var _realpath=Module[\"_realpath\"]=function(){return(_realpath=Module[\"_realpath\"]=Module[\"asm\"][\"realpath\"]).apply(null,arguments)};var _getcwd=Module[\"_getcwd\"]=function(){return(_getcwd=Module[\"_getcwd\"]=Module[\"asm\"][\"getcwd\"]).apply(null,arguments)};var __Py_get_blocking=Module[\"__Py_get_blocking\"]=function(){return(__Py_get_blocking=Module[\"__Py_get_blocking\"]=Module[\"asm\"][\"_Py_get_blocking\"]).apply(null,arguments)};var __Py_set_blocking=Module[\"__Py_set_blocking\"]=function(){return(__Py_set_blocking=Module[\"__Py_set_blocking\"]=Module[\"asm\"][\"_Py_set_blocking\"]).apply(null,arguments)};var _PyInit_array=Module[\"_PyInit_array\"]=function(){return(_PyInit_array=Module[\"_PyInit_array\"]=Module[\"asm\"][\"PyInit_array\"]).apply(null,arguments)};var _PyInit_audioop=Module[\"_PyInit_audioop\"]=function(){return(_PyInit_audioop=Module[\"_PyInit_audioop\"]=Module[\"asm\"][\"PyInit_audioop\"]).apply(null,arguments)};var _PyInit_math=Module[\"_PyInit_math\"]=function(){return(_PyInit_math=Module[\"_PyInit_math\"]=Module[\"asm\"][\"PyInit_math\"]).apply(null,arguments)};var _PyInit_cmath=Module[\"_PyInit_cmath\"]=function(){return(_PyInit_cmath=Module[\"_PyInit_cmath\"]=Module[\"asm\"][\"PyInit_cmath\"]).apply(null,arguments)};var _PyInit__contextvars=Module[\"_PyInit__contextvars\"]=function(){return(_PyInit__contextvars=Module[\"_PyInit__contextvars\"]=Module[\"asm\"][\"PyInit__contextvars\"]).apply(null,arguments)};var _PyInit__struct=Module[\"_PyInit__struct\"]=function(){return(_PyInit__struct=Module[\"_PyInit__struct\"]=Module[\"asm\"][\"PyInit__struct\"]).apply(null,arguments)};var _PyInit__random=Module[\"_PyInit__random\"]=function(){return(_PyInit__random=Module[\"_PyInit__random\"]=Module[\"asm\"][\"PyInit__random\"]).apply(null,arguments)};var _PyInit__bisect=Module[\"_PyInit__bisect\"]=function(){return(_PyInit__bisect=Module[\"_PyInit__bisect\"]=Module[\"asm\"][\"PyInit__bisect\"]).apply(null,arguments)};var _PyInit__datetime=Module[\"_PyInit__datetime\"]=function(){return(_PyInit__datetime=Module[\"_PyInit__datetime\"]=Module[\"asm\"][\"PyInit__datetime\"]).apply(null,arguments)};var _PyInit__heapq=Module[\"_PyInit__heapq\"]=function(){return(_PyInit__heapq=Module[\"_PyInit__heapq\"]=Module[\"asm\"][\"PyInit__heapq\"]).apply(null,arguments)};var _PyInit__json=Module[\"_PyInit__json\"]=function(){return(_PyInit__json=Module[\"_PyInit__json\"]=Module[\"asm\"][\"PyInit__json\"]).apply(null,arguments)};var _PyInit__csv=Module[\"_PyInit__csv\"]=function(){return(_PyInit__csv=Module[\"_PyInit__csv\"]=Module[\"asm\"][\"PyInit__csv\"]).apply(null,arguments)};var _PyInit__ctypes=Module[\"_PyInit__ctypes\"]=function(){return(_PyInit__ctypes=Module[\"_PyInit__ctypes\"]=Module[\"asm\"][\"PyInit__ctypes\"]).apply(null,arguments)};var _PyInit__ctypes_test=Module[\"_PyInit__ctypes_test\"]=function(){return(_PyInit__ctypes_test=Module[\"_PyInit__ctypes_test\"]=Module[\"asm\"][\"PyInit__ctypes_test\"]).apply(null,arguments)};var _PyInit_unicodedata=Module[\"_PyInit_unicodedata\"]=function(){return(_PyInit_unicodedata=Module[\"_PyInit_unicodedata\"]=Module[\"asm\"][\"PyInit_unicodedata\"]).apply(null,arguments)};var _PyInit__pickle=Module[\"_PyInit__pickle\"]=function(){return(_PyInit__pickle=Module[\"_PyInit__pickle\"]=Module[\"asm\"][\"PyInit__pickle\"]).apply(null,arguments)};var _PyInit_parser=Module[\"_PyInit_parser\"]=function(){return(_PyInit_parser=Module[\"_PyInit_parser\"]=Module[\"asm\"][\"PyInit_parser\"]).apply(null,arguments)};var _PyInit__socket=Module[\"_PyInit__socket\"]=function(){return(_PyInit__socket=Module[\"_PyInit__socket\"]=Module[\"asm\"][\"PyInit__socket\"]).apply(null,arguments)};var _PyInit_select=Module[\"_PyInit_select\"]=function(){return(_PyInit_select=Module[\"_PyInit_select\"]=Module[\"asm\"][\"PyInit_select\"]).apply(null,arguments)};var _PyInit__posixsubprocess=Module[\"_PyInit__posixsubprocess\"]=function(){return(_PyInit__posixsubprocess=Module[\"_PyInit__posixsubprocess\"]=Module[\"asm\"][\"PyInit__posixsubprocess\"]).apply(null,arguments)};var _PyInit_binascii=Module[\"_PyInit_binascii\"]=function(){return(_PyInit_binascii=Module[\"_PyInit_binascii\"]=Module[\"asm\"][\"PyInit_binascii\"]).apply(null,arguments)};var _PyInit_zlib=Module[\"_PyInit_zlib\"]=function(){return(_PyInit_zlib=Module[\"_PyInit_zlib\"]=Module[\"asm\"][\"PyInit_zlib\"]).apply(null,arguments)};var _PyInit_pyexpat=Module[\"_PyInit_pyexpat\"]=function(){return(_PyInit_pyexpat=Module[\"_PyInit_pyexpat\"]=Module[\"asm\"][\"PyInit_pyexpat\"]).apply(null,arguments)};var _PyInit__sha1=Module[\"_PyInit__sha1\"]=function(){return(_PyInit__sha1=Module[\"_PyInit__sha1\"]=Module[\"asm\"][\"PyInit__sha1\"]).apply(null,arguments)};var _PyInit__sha256=Module[\"_PyInit__sha256\"]=function(){return(_PyInit__sha256=Module[\"_PyInit__sha256\"]=Module[\"asm\"][\"PyInit__sha256\"]).apply(null,arguments)};var _PyInit__sha512=Module[\"_PyInit__sha512\"]=function(){return(_PyInit__sha512=Module[\"_PyInit__sha512\"]=Module[\"asm\"][\"PyInit__sha512\"]).apply(null,arguments)};var _PyInit__sha3=Module[\"_PyInit__sha3\"]=function(){return(_PyInit__sha3=Module[\"_PyInit__sha3\"]=Module[\"asm\"][\"PyInit__sha3\"]).apply(null,arguments)};var _PyInit__md5=Module[\"_PyInit__md5\"]=function(){return(_PyInit__md5=Module[\"_PyInit__md5\"]=Module[\"asm\"][\"PyInit__md5\"]).apply(null,arguments)};var _PyInit__blake2=Module[\"_PyInit__blake2\"]=function(){return(_PyInit__blake2=Module[\"_PyInit__blake2\"]=Module[\"asm\"][\"PyInit__blake2\"]).apply(null,arguments)};var _PyInit__sqlite3=Module[\"_PyInit__sqlite3\"]=function(){return(_PyInit__sqlite3=Module[\"_PyInit__sqlite3\"]=Module[\"asm\"][\"PyInit__sqlite3\"]).apply(null,arguments)};var _PyInit__crypt=Module[\"_PyInit__crypt\"]=function(){return(_PyInit__crypt=Module[\"_PyInit__crypt\"]=Module[\"asm\"][\"PyInit__crypt\"]).apply(null,arguments)};var _PyInit__bz2=Module[\"_PyInit__bz2\"]=function(){return(_PyInit__bz2=Module[\"_PyInit__bz2\"]=Module[\"asm\"][\"PyInit__bz2\"]).apply(null,arguments)};var _PyInit__queue=Module[\"_PyInit__queue\"]=function(){return(_PyInit__queue=Module[\"_PyInit__queue\"]=Module[\"asm\"][\"PyInit__queue\"]).apply(null,arguments)};var _PyInit__multibytecodec=Module[\"_PyInit__multibytecodec\"]=function(){return(_PyInit__multibytecodec=Module[\"_PyInit__multibytecodec\"]=Module[\"asm\"][\"PyInit__multibytecodec\"]).apply(null,arguments)};var _PyInit__codecs_cn=Module[\"_PyInit__codecs_cn\"]=function(){return(_PyInit__codecs_cn=Module[\"_PyInit__codecs_cn\"]=Module[\"asm\"][\"PyInit__codecs_cn\"]).apply(null,arguments)};var _PyInit__codecs_hk=Module[\"_PyInit__codecs_hk\"]=function(){return(_PyInit__codecs_hk=Module[\"_PyInit__codecs_hk\"]=Module[\"asm\"][\"PyInit__codecs_hk\"]).apply(null,arguments)};var _PyInit__codecs_iso2022=Module[\"_PyInit__codecs_iso2022\"]=function(){return(_PyInit__codecs_iso2022=Module[\"_PyInit__codecs_iso2022\"]=Module[\"asm\"][\"PyInit__codecs_iso2022\"]).apply(null,arguments)};var _PyInit__codecs_jp=Module[\"_PyInit__codecs_jp\"]=function(){return(_PyInit__codecs_jp=Module[\"_PyInit__codecs_jp\"]=Module[\"asm\"][\"PyInit__codecs_jp\"]).apply(null,arguments)};var _PyInit__codecs_kr=Module[\"_PyInit__codecs_kr\"]=function(){return(_PyInit__codecs_kr=Module[\"_PyInit__codecs_kr\"]=Module[\"asm\"][\"PyInit__codecs_kr\"]).apply(null,arguments)};var _PyInit__codecs_tw=Module[\"_PyInit__codecs_tw\"]=function(){return(_PyInit__codecs_tw=Module[\"_PyInit__codecs_tw\"]=Module[\"asm\"][\"PyInit__codecs_tw\"]).apply(null,arguments)};var _PyInit__lsprof=Module[\"_PyInit__lsprof\"]=function(){return(_PyInit__lsprof=Module[\"_PyInit__lsprof\"]=Module[\"asm\"][\"PyInit__lsprof\"]).apply(null,arguments)};var _PyInit__decimal=Module[\"_PyInit__decimal\"]=function(){return(_PyInit__decimal=Module[\"_PyInit__decimal\"]=Module[\"asm\"][\"PyInit__decimal\"]).apply(null,arguments)};var _PyInit_mmap=Module[\"_PyInit_mmap\"]=function(){return(_PyInit_mmap=Module[\"_PyInit_mmap\"]=Module[\"asm\"][\"PyInit_mmap\"]).apply(null,arguments)};var _PyInit_posix=Module[\"_PyInit_posix\"]=function(){return(_PyInit_posix=Module[\"_PyInit_posix\"]=Module[\"asm\"][\"PyInit_posix\"]).apply(null,arguments)};var _PyInit_errno=Module[\"_PyInit_errno\"]=function(){return(_PyInit_errno=Module[\"_PyInit_errno\"]=Module[\"asm\"][\"PyInit_errno\"]).apply(null,arguments)};var _PyInit_pwd=Module[\"_PyInit_pwd\"]=function(){return(_PyInit_pwd=Module[\"_PyInit_pwd\"]=Module[\"asm\"][\"PyInit_pwd\"]).apply(null,arguments)};var _PyInit__sre=Module[\"_PyInit__sre\"]=function(){return(_PyInit__sre=Module[\"_PyInit__sre\"]=Module[\"asm\"][\"PyInit__sre\"]).apply(null,arguments)};var _PyInit__codecs=Module[\"_PyInit__codecs\"]=function(){return(_PyInit__codecs=Module[\"_PyInit__codecs\"]=Module[\"asm\"][\"PyInit__codecs\"]).apply(null,arguments)};var _PyInit__weakref=Module[\"_PyInit__weakref\"]=function(){return(_PyInit__weakref=Module[\"_PyInit__weakref\"]=Module[\"asm\"][\"PyInit__weakref\"]).apply(null,arguments)};var _PyInit__functools=Module[\"_PyInit__functools\"]=function(){return(_PyInit__functools=Module[\"_PyInit__functools\"]=Module[\"asm\"][\"PyInit__functools\"]).apply(null,arguments)};var _PyInit__operator=Module[\"_PyInit__operator\"]=function(){return(_PyInit__operator=Module[\"_PyInit__operator\"]=Module[\"asm\"][\"PyInit__operator\"]).apply(null,arguments)};var _PyInit__collections=Module[\"_PyInit__collections\"]=function(){return(_PyInit__collections=Module[\"_PyInit__collections\"]=Module[\"asm\"][\"PyInit__collections\"]).apply(null,arguments)};var _PyInit__abc=Module[\"_PyInit__abc\"]=function(){return(_PyInit__abc=Module[\"_PyInit__abc\"]=Module[\"asm\"][\"PyInit__abc\"]).apply(null,arguments)};var _PyInit_itertools=Module[\"_PyInit_itertools\"]=function(){return(_PyInit_itertools=Module[\"_PyInit_itertools\"]=Module[\"asm\"][\"PyInit_itertools\"]).apply(null,arguments)};var _PyInit_atexit=Module[\"_PyInit_atexit\"]=function(){return(_PyInit_atexit=Module[\"_PyInit_atexit\"]=Module[\"asm\"][\"PyInit_atexit\"]).apply(null,arguments)};var _PyInit__signal=Module[\"_PyInit__signal\"]=function(){return(_PyInit__signal=Module[\"_PyInit__signal\"]=Module[\"asm\"][\"PyInit__signal\"]).apply(null,arguments)};var _PyInit__stat=Module[\"_PyInit__stat\"]=function(){return(_PyInit__stat=Module[\"_PyInit__stat\"]=Module[\"asm\"][\"PyInit__stat\"]).apply(null,arguments)};var _PyInit_time=Module[\"_PyInit_time\"]=function(){return(_PyInit_time=Module[\"_PyInit_time\"]=Module[\"asm\"][\"PyInit_time\"]).apply(null,arguments)};var _PyInit__thread=Module[\"_PyInit__thread\"]=function(){return(_PyInit__thread=Module[\"_PyInit__thread\"]=Module[\"asm\"][\"PyInit__thread\"]).apply(null,arguments)};var _PyInit__locale=Module[\"_PyInit__locale\"]=function(){return(_PyInit__locale=Module[\"_PyInit__locale\"]=Module[\"asm\"][\"PyInit__locale\"]).apply(null,arguments)};var _PyInit__io=Module[\"_PyInit__io\"]=function(){return(_PyInit__io=Module[\"_PyInit__io\"]=Module[\"asm\"][\"PyInit__io\"]).apply(null,arguments)};var _PyInit_faulthandler=Module[\"_PyInit_faulthandler\"]=function(){return(_PyInit_faulthandler=Module[\"_PyInit_faulthandler\"]=Module[\"asm\"][\"PyInit_faulthandler\"]).apply(null,arguments)};var _PyInit__tracemalloc=Module[\"_PyInit__tracemalloc\"]=function(){return(_PyInit__tracemalloc=Module[\"_PyInit__tracemalloc\"]=Module[\"asm\"][\"PyInit__tracemalloc\"]).apply(null,arguments)};var _PyInit__peg_parser=Module[\"_PyInit__peg_parser\"]=function(){return(_PyInit__peg_parser=Module[\"_PyInit__peg_parser\"]=Module[\"asm\"][\"PyInit__peg_parser\"]).apply(null,arguments)};var _PyInit__symtable=Module[\"_PyInit__symtable\"]=function(){return(_PyInit__symtable=Module[\"_PyInit__symtable\"]=Module[\"asm\"][\"PyInit__symtable\"]).apply(null,arguments)};var _PyInit_xxsubtype=Module[\"_PyInit_xxsubtype\"]=function(){return(_PyInit_xxsubtype=Module[\"_PyInit_xxsubtype\"]=Module[\"asm\"][\"PyInit_xxsubtype\"]).apply(null,arguments)};var _PyInit_gc=Module[\"_PyInit_gc\"]=function(){return(_PyInit_gc=Module[\"_PyInit_gc\"]=Module[\"asm\"][\"PyInit_gc\"]).apply(null,arguments)};var _wcscpy=Module[\"_wcscpy\"]=function(){return(_wcscpy=Module[\"_wcscpy\"]=Module[\"asm\"][\"wcscpy\"]).apply(null,arguments)};var _wcscat=Module[\"_wcscat\"]=function(){return(_wcscat=Module[\"_wcscat\"]=Module[\"asm\"][\"wcscat\"]).apply(null,arguments)};var _wcsncat=Module[\"_wcsncat\"]=function(){return(_wcsncat=Module[\"_wcsncat\"]=Module[\"asm\"][\"wcsncat\"]).apply(null,arguments)};var _Py_RunMain=Module[\"_Py_RunMain\"]=function(){return(_Py_RunMain=Module[\"_Py_RunMain\"]=Module[\"asm\"][\"Py_RunMain\"]).apply(null,arguments)};var _perror=Module[\"_perror\"]=function(){return(_perror=Module[\"_perror\"]=Module[\"asm\"][\"perror\"]).apply(null,arguments)};var _getpid=Module[\"_getpid\"]=function(){return(_getpid=Module[\"_getpid\"]=Module[\"asm\"][\"getpid\"]).apply(null,arguments)};var _Py_Main=Module[\"_Py_Main\"]=function(){return(_Py_Main=Module[\"_Py_Main\"]=Module[\"asm\"][\"Py_Main\"]).apply(null,arguments)};var _Py_BytesMain=Module[\"_Py_BytesMain\"]=function(){return(_Py_BytesMain=Module[\"_Py_BytesMain\"]=Module[\"asm\"][\"Py_BytesMain\"]).apply(null,arguments)};var _PyGC_Collect=Module[\"_PyGC_Collect\"]=function(){return(_PyGC_Collect=Module[\"_PyGC_Collect\"]=Module[\"asm\"][\"PyGC_Collect\"]).apply(null,arguments)};var __PyGC_Dump=Module[\"__PyGC_Dump\"]=function(){return(__PyGC_Dump=Module[\"__PyGC_Dump\"]=Module[\"asm\"][\"_PyGC_Dump\"]).apply(null,arguments)};var __PyObject_GC_Calloc=Module[\"__PyObject_GC_Calloc\"]=function(){return(__PyObject_GC_Calloc=Module[\"__PyObject_GC_Calloc\"]=Module[\"asm\"][\"_PyObject_GC_Calloc\"]).apply(null,arguments)};var _PyObject_GC_IsTracked=Module[\"_PyObject_GC_IsTracked\"]=function(){return(_PyObject_GC_IsTracked=Module[\"_PyObject_GC_IsTracked\"]=Module[\"asm\"][\"PyObject_GC_IsTracked\"]).apply(null,arguments)};var _PyObject_GC_IsFinalized=Module[\"_PyObject_GC_IsFinalized\"]=function(){return(_PyObject_GC_IsFinalized=Module[\"_PyObject_GC_IsFinalized\"]=Module[\"asm\"][\"PyObject_GC_IsFinalized\"]).apply(null,arguments)};var _acos=Module[\"_acos\"]=function(){return(_acos=Module[\"_acos\"]=Module[\"asm\"][\"acos\"]).apply(null,arguments)};var _acosh=Module[\"_acosh\"]=function(){return(_acosh=Module[\"_acosh\"]=Module[\"asm\"][\"acosh\"]).apply(null,arguments)};var _asin=Module[\"_asin\"]=function(){return(_asin=Module[\"_asin\"]=Module[\"asm\"][\"asin\"]).apply(null,arguments)};var _asinh=Module[\"_asinh\"]=function(){return(_asinh=Module[\"_asinh\"]=Module[\"asm\"][\"asinh\"]).apply(null,arguments)};var _atan=Module[\"_atan\"]=function(){return(_atan=Module[\"_atan\"]=Module[\"asm\"][\"atan\"]).apply(null,arguments)};var _atanh=Module[\"_atanh\"]=function(){return(_atanh=Module[\"_atanh\"]=Module[\"asm\"][\"atanh\"]).apply(null,arguments)};var _copysign=Module[\"_copysign\"]=function(){return(_copysign=Module[\"_copysign\"]=Module[\"asm\"][\"copysign\"]).apply(null,arguments)};var _cosh=Module[\"_cosh\"]=function(){return(_cosh=Module[\"_cosh\"]=Module[\"asm\"][\"cosh\"]).apply(null,arguments)};var _erf=Module[\"_erf\"]=function(){return(_erf=Module[\"_erf\"]=Module[\"asm\"][\"erf\"]).apply(null,arguments)};var _erfc=Module[\"_erfc\"]=function(){return(_erfc=Module[\"_erfc\"]=Module[\"asm\"][\"erfc\"]).apply(null,arguments)};var _expm1=Module[\"_expm1\"]=function(){return(_expm1=Module[\"_expm1\"]=Module[\"asm\"][\"expm1\"]).apply(null,arguments)};var _fabs=Module[\"_fabs\"]=function(){return(_fabs=Module[\"_fabs\"]=Module[\"asm\"][\"fabs\"]).apply(null,arguments)};var __Py_log1p=Module[\"__Py_log1p\"]=function(){return(__Py_log1p=Module[\"__Py_log1p\"]=Module[\"asm\"][\"_Py_log1p\"]).apply(null,arguments)};var _sinh=Module[\"_sinh\"]=function(){return(_sinh=Module[\"_sinh\"]=Module[\"asm\"][\"sinh\"]).apply(null,arguments)};var _sqrt=Module[\"_sqrt\"]=function(){return(_sqrt=Module[\"_sqrt\"]=Module[\"asm\"][\"sqrt\"]).apply(null,arguments)};var _tan=Module[\"_tan\"]=function(){return(_tan=Module[\"_tan\"]=Module[\"asm\"][\"tan\"]).apply(null,arguments)};var _tanh=Module[\"_tanh\"]=function(){return(_tanh=Module[\"_tanh\"]=Module[\"asm\"][\"tanh\"]).apply(null,arguments)};var _nextafter=Module[\"_nextafter\"]=function(){return(_nextafter=Module[\"_nextafter\"]=Module[\"asm\"][\"nextafter\"]).apply(null,arguments)};var _log10=Module[\"_log10\"]=function(){return(_log10=Module[\"_log10\"]=Module[\"asm\"][\"log10\"]).apply(null,arguments)};var _log2=Module[\"_log2\"]=function(){return(_log2=Module[\"_log2\"]=Module[\"asm\"][\"log2\"]).apply(null,arguments)};var _log1p=Module[\"_log1p\"]=function(){return(_log1p=Module[\"_log1p\"]=Module[\"asm\"][\"log1p\"]).apply(null,arguments)};var _unpackiter_new=Module[\"_unpackiter_new\"]=function(){return(_unpackiter_new=Module[\"_unpackiter_new\"]=Module[\"asm\"][\"unpackiter_new\"]).apply(null,arguments)};var _PyDict_SetItemProxy=Module[\"_PyDict_SetItemProxy\"]=function(){return(_PyDict_SetItemProxy=Module[\"_PyDict_SetItemProxy\"]=Module[\"asm\"][\"PyDict_SetItemProxy\"]).apply(null,arguments)};var _PyDict_GetItemProxy=Module[\"_PyDict_GetItemProxy\"]=function(){return(_PyDict_GetItemProxy=Module[\"_PyDict_GetItemProxy\"]=Module[\"asm\"][\"PyDict_GetItemProxy\"]).apply(null,arguments)};var __ctypes_alloc_format_string=Module[\"__ctypes_alloc_format_string\"]=function(){return(__ctypes_alloc_format_string=Module[\"__ctypes_alloc_format_string\"]=Module[\"asm\"][\"_ctypes_alloc_format_string\"]).apply(null,arguments)};var _strcat=Module[\"_strcat\"]=function(){return(_strcat=Module[\"_strcat\"]=Module[\"asm\"][\"strcat\"]).apply(null,arguments)};var __ctypes_alloc_format_string_with_shape=Module[\"__ctypes_alloc_format_string_with_shape\"]=function(){return(__ctypes_alloc_format_string_with_shape=Module[\"__ctypes_alloc_format_string_with_shape\"]=Module[\"asm\"][\"_ctypes_alloc_format_string_with_shape\"]).apply(null,arguments)};var _PyCStructUnionType_update_stgdict=Module[\"_PyCStructUnionType_update_stgdict\"]=function(){return(_PyCStructUnionType_update_stgdict=Module[\"_PyCStructUnionType_update_stgdict\"]=Module[\"asm\"][\"PyCStructUnionType_update_stgdict\"]).apply(null,arguments)};var _PyType_stgdict=Module[\"_PyType_stgdict\"]=function(){return(_PyType_stgdict=Module[\"_PyType_stgdict\"]=Module[\"asm\"][\"PyType_stgdict\"]).apply(null,arguments)};var __ctypes_get_fielddesc=Module[\"__ctypes_get_fielddesc\"]=function(){return(__ctypes_get_fielddesc=Module[\"__ctypes_get_fielddesc\"]=Module[\"asm\"][\"_ctypes_get_fielddesc\"]).apply(null,arguments)};var _PyCData_FromBaseObj=Module[\"_PyCData_FromBaseObj\"]=function(){return(_PyCData_FromBaseObj=Module[\"_PyCData_FromBaseObj\"]=Module[\"asm\"][\"PyCData_FromBaseObj\"]).apply(null,arguments)};var _PyCData_AtAddress=Module[\"_PyCData_AtAddress\"]=function(){return(_PyCData_AtAddress=Module[\"_PyCData_AtAddress\"]=Module[\"asm\"][\"PyCData_AtAddress\"]).apply(null,arguments)};var __ctypes_simple_instance=Module[\"__ctypes_simple_instance\"]=function(){return(__ctypes_simple_instance=Module[\"__ctypes_simple_instance\"]=Module[\"asm\"][\"_ctypes_simple_instance\"]).apply(null,arguments)};var _PyCData_get=Module[\"_PyCData_get\"]=function(){return(_PyCData_get=Module[\"_PyCData_get\"]=Module[\"asm\"][\"PyCData_get\"]).apply(null,arguments)};var _PyCData_set=Module[\"_PyCData_set\"]=function(){return(_PyCData_set=Module[\"_PyCData_set\"]=Module[\"asm\"][\"PyCData_set\"]).apply(null,arguments)};var __ctypes_extend_error=Module[\"__ctypes_extend_error\"]=function(){return(__ctypes_extend_error=Module[\"__ctypes_extend_error\"]=Module[\"asm\"][\"_ctypes_extend_error\"]).apply(null,arguments)};var _PyObject_stgdict=Module[\"_PyObject_stgdict\"]=function(){return(_PyObject_stgdict=Module[\"_PyObject_stgdict\"]=Module[\"asm\"][\"PyObject_stgdict\"]).apply(null,arguments)};var __ctypes_callproc=Module[\"__ctypes_callproc\"]=function(){return(__ctypes_callproc=Module[\"__ctypes_callproc\"]=Module[\"asm\"][\"_ctypes_callproc\"]).apply(null,arguments)};var __ctypes_alloc_callback=Module[\"__ctypes_alloc_callback\"]=function(){return(__ctypes_alloc_callback=Module[\"__ctypes_alloc_callback\"]=Module[\"asm\"][\"_ctypes_alloc_callback\"]).apply(null,arguments)};var _PyCArrayType_from_ctype=Module[\"_PyCArrayType_from_ctype\"]=function(){return(_PyCArrayType_from_ctype=Module[\"_PyCArrayType_from_ctype\"]=Module[\"asm\"][\"PyCArrayType_from_ctype\"]).apply(null,arguments)};var _PyCStgDict_clone=Module[\"_PyCStgDict_clone\"]=function(){return(_PyCStgDict_clone=Module[\"_PyCStgDict_clone\"]=Module[\"asm\"][\"PyCStgDict_clone\"]).apply(null,arguments)};var _PyCArgObject_new=Module[\"_PyCArgObject_new\"]=function(){return(_PyCArgObject_new=Module[\"_PyCArgObject_new\"]=Module[\"asm\"][\"PyCArgObject_new\"]).apply(null,arguments)};var _ffi_closure_free=Module[\"_ffi_closure_free\"]=function(){return(_ffi_closure_free=Module[\"_ffi_closure_free\"]=Module[\"asm\"][\"ffi_closure_free\"]).apply(null,arguments)};var _ffi_closure_alloc=Module[\"_ffi_closure_alloc\"]=function(){return(_ffi_closure_alloc=Module[\"_ffi_closure_alloc\"]=Module[\"asm\"][\"ffi_closure_alloc\"]).apply(null,arguments)};var __ctypes_get_ffi_type=Module[\"__ctypes_get_ffi_type\"]=function(){return(__ctypes_get_ffi_type=Module[\"__ctypes_get_ffi_type\"]=Module[\"asm\"][\"_ctypes_get_ffi_type\"]).apply(null,arguments)};var _ffi_prep_cif=Module[\"_ffi_prep_cif\"]=function(){return(_ffi_prep_cif=Module[\"_ffi_prep_cif\"]=Module[\"asm\"][\"ffi_prep_cif\"]).apply(null,arguments)};var _ffi_prep_closure_loc=Module[\"_ffi_prep_closure_loc\"]=function(){return(_ffi_prep_closure_loc=Module[\"_ffi_prep_closure_loc\"]=Module[\"asm\"][\"ffi_prep_closure_loc\"]).apply(null,arguments)};var __ctypes_get_errobj=Module[\"__ctypes_get_errobj\"]=function(){return(__ctypes_get_errobj=Module[\"__ctypes_get_errobj\"]=Module[\"asm\"][\"_ctypes_get_errobj\"]).apply(null,arguments)};var _ffi_prep_cif_var=Module[\"_ffi_prep_cif_var\"]=function(){return(_ffi_prep_cif_var=Module[\"_ffi_prep_cif_var\"]=Module[\"asm\"][\"ffi_prep_cif_var\"]).apply(null,arguments)};var _PyCField_FromDesc=Module[\"_PyCField_FromDesc\"]=function(){return(_PyCField_FromDesc=Module[\"_PyCField_FromDesc\"]=Module[\"asm\"][\"PyCField_FromDesc\"]).apply(null,arguments)};var ___extenddftf2=Module[\"___extenddftf2\"]=function(){return(___extenddftf2=Module[\"___extenddftf2\"]=Module[\"asm\"][\"__extenddftf2\"]).apply(null,arguments)};var ___trunctfdf2=Module[\"___trunctfdf2\"]=function(){return(___trunctfdf2=Module[\"___trunctfdf2\"]=Module[\"asm\"][\"__trunctfdf2\"]).apply(null,arguments)};var __testfunc_cbk_reg_int=Module[\"__testfunc_cbk_reg_int\"]=function(){return(__testfunc_cbk_reg_int=Module[\"__testfunc_cbk_reg_int\"]=Module[\"asm\"][\"_testfunc_cbk_reg_int\"]).apply(null,arguments)};var __testfunc_cbk_reg_double=Module[\"__testfunc_cbk_reg_double\"]=function(){return(__testfunc_cbk_reg_double=Module[\"__testfunc_cbk_reg_double\"]=Module[\"asm\"][\"_testfunc_cbk_reg_double\"]).apply(null,arguments)};var __testfunc_cbk_large_struct=Module[\"__testfunc_cbk_large_struct\"]=function(){return(__testfunc_cbk_large_struct=Module[\"__testfunc_cbk_large_struct\"]=Module[\"asm\"][\"_testfunc_cbk_large_struct\"]).apply(null,arguments)};var __testfunc_large_struct_update_value=Module[\"__testfunc_large_struct_update_value\"]=function(){return(__testfunc_large_struct_update_value=Module[\"__testfunc_large_struct_update_value\"]=Module[\"asm\"][\"_testfunc_large_struct_update_value\"]).apply(null,arguments)};var __testfunc_reg_struct_update_value=Module[\"__testfunc_reg_struct_update_value\"]=function(){return(__testfunc_reg_struct_update_value=Module[\"__testfunc_reg_struct_update_value\"]=Module[\"asm\"][\"_testfunc_reg_struct_update_value\"]).apply(null,arguments)};var __testfunc_array_in_struct1=Module[\"__testfunc_array_in_struct1\"]=function(){return(__testfunc_array_in_struct1=Module[\"__testfunc_array_in_struct1\"]=Module[\"asm\"][\"_testfunc_array_in_struct1\"]).apply(null,arguments)};var __testfunc_array_in_struct2=Module[\"__testfunc_array_in_struct2\"]=function(){return(__testfunc_array_in_struct2=Module[\"__testfunc_array_in_struct2\"]=Module[\"asm\"][\"_testfunc_array_in_struct2\"]).apply(null,arguments)};var __testfunc_array_in_struct2a=Module[\"__testfunc_array_in_struct2a\"]=function(){return(__testfunc_array_in_struct2a=Module[\"__testfunc_array_in_struct2a\"]=Module[\"asm\"][\"_testfunc_array_in_struct2a\"]).apply(null,arguments)};var __testfunc_union_by_value1=Module[\"__testfunc_union_by_value1\"]=function(){return(__testfunc_union_by_value1=Module[\"__testfunc_union_by_value1\"]=Module[\"asm\"][\"_testfunc_union_by_value1\"]).apply(null,arguments)};var __testfunc_union_by_value2=Module[\"__testfunc_union_by_value2\"]=function(){return(__testfunc_union_by_value2=Module[\"__testfunc_union_by_value2\"]=Module[\"asm\"][\"_testfunc_union_by_value2\"]).apply(null,arguments)};var __testfunc_union_by_reference1=Module[\"__testfunc_union_by_reference1\"]=function(){return(__testfunc_union_by_reference1=Module[\"__testfunc_union_by_reference1\"]=Module[\"asm\"][\"_testfunc_union_by_reference1\"]).apply(null,arguments)};var __testfunc_union_by_reference2=Module[\"__testfunc_union_by_reference2\"]=function(){return(__testfunc_union_by_reference2=Module[\"__testfunc_union_by_reference2\"]=Module[\"asm\"][\"_testfunc_union_by_reference2\"]).apply(null,arguments)};var __testfunc_union_by_reference3=Module[\"__testfunc_union_by_reference3\"]=function(){return(__testfunc_union_by_reference3=Module[\"__testfunc_union_by_reference3\"]=Module[\"asm\"][\"_testfunc_union_by_reference3\"]).apply(null,arguments)};var __testfunc_bitfield_by_value1=Module[\"__testfunc_bitfield_by_value1\"]=function(){return(__testfunc_bitfield_by_value1=Module[\"__testfunc_bitfield_by_value1\"]=Module[\"asm\"][\"_testfunc_bitfield_by_value1\"]).apply(null,arguments)};var __testfunc_bitfield_by_reference1=Module[\"__testfunc_bitfield_by_reference1\"]=function(){return(__testfunc_bitfield_by_reference1=Module[\"__testfunc_bitfield_by_reference1\"]=Module[\"asm\"][\"_testfunc_bitfield_by_reference1\"]).apply(null,arguments)};var __testfunc_bitfield_by_reference2=Module[\"__testfunc_bitfield_by_reference2\"]=function(){return(__testfunc_bitfield_by_reference2=Module[\"__testfunc_bitfield_by_reference2\"]=Module[\"asm\"][\"_testfunc_bitfield_by_reference2\"]).apply(null,arguments)};var __testfunc_bitfield_by_value2=Module[\"__testfunc_bitfield_by_value2\"]=function(){return(__testfunc_bitfield_by_value2=Module[\"__testfunc_bitfield_by_value2\"]=Module[\"asm\"][\"_testfunc_bitfield_by_value2\"]).apply(null,arguments)};var _testfunc_array=Module[\"_testfunc_array\"]=function(){return(_testfunc_array=Module[\"_testfunc_array\"]=Module[\"asm\"][\"testfunc_array\"]).apply(null,arguments)};var _testfunc_Ddd=Module[\"_testfunc_Ddd\"]=function(){return(_testfunc_Ddd=Module[\"_testfunc_Ddd\"]=Module[\"asm\"][\"testfunc_Ddd\"]).apply(null,arguments)};var ___small_printf=Module[\"___small_printf\"]=function(){return(___small_printf=Module[\"___small_printf\"]=Module[\"asm\"][\"__small_printf\"]).apply(null,arguments)};var _testfunc_DDD=Module[\"_testfunc_DDD\"]=function(){return(_testfunc_DDD=Module[\"_testfunc_DDD\"]=Module[\"asm\"][\"testfunc_DDD\"]).apply(null,arguments)};var ___multf3=Module[\"___multf3\"]=function(){return(___multf3=Module[\"___multf3\"]=Module[\"asm\"][\"__multf3\"]).apply(null,arguments)};var _printf=Module[\"_printf\"]=function(){return(_printf=Module[\"_printf\"]=Module[\"asm\"][\"printf\"]).apply(null,arguments)};var _testfunc_iii=Module[\"_testfunc_iii\"]=function(){return(_testfunc_iii=Module[\"_testfunc_iii\"]=Module[\"asm\"][\"testfunc_iii\"]).apply(null,arguments)};var _myprintf=Module[\"_myprintf\"]=function(){return(_myprintf=Module[\"_myprintf\"]=Module[\"asm\"][\"myprintf\"]).apply(null,arguments)};var _vprintf=Module[\"_vprintf\"]=function(){return(_vprintf=Module[\"_vprintf\"]=Module[\"asm\"][\"vprintf\"]).apply(null,arguments)};var _my_strtok=Module[\"_my_strtok\"]=function(){return(_my_strtok=Module[\"_my_strtok\"]=Module[\"asm\"][\"my_strtok\"]).apply(null,arguments)};var _my_strchr=Module[\"_my_strchr\"]=function(){return(_my_strchr=Module[\"_my_strchr\"]=Module[\"asm\"][\"my_strchr\"]).apply(null,arguments)};var _my_sqrt=Module[\"_my_sqrt\"]=function(){return(_my_sqrt=Module[\"_my_sqrt\"]=Module[\"asm\"][\"my_sqrt\"]).apply(null,arguments)};var _my_qsort=Module[\"_my_qsort\"]=function(){return(_my_qsort=Module[\"_my_qsort\"]=Module[\"asm\"][\"my_qsort\"]).apply(null,arguments)};var _qsort=Module[\"_qsort\"]=function(){return(_qsort=Module[\"_qsort\"]=Module[\"asm\"][\"qsort\"]).apply(null,arguments)};var __testfunc_ai8=Module[\"__testfunc_ai8\"]=function(){return(__testfunc_ai8=Module[\"__testfunc_ai8\"]=Module[\"asm\"][\"_testfunc_ai8\"]).apply(null,arguments)};var __testfunc_v=Module[\"__testfunc_v\"]=function(){return(__testfunc_v=Module[\"__testfunc_v\"]=Module[\"asm\"][\"_testfunc_v\"]).apply(null,arguments)};var __testfunc_i_bhilfd=Module[\"__testfunc_i_bhilfd\"]=function(){return(__testfunc_i_bhilfd=Module[\"__testfunc_i_bhilfd\"]=Module[\"asm\"][\"_testfunc_i_bhilfd\"]).apply(null,arguments)};var __testfunc_f_bhilfd=Module[\"__testfunc_f_bhilfd\"]=function(){return(__testfunc_f_bhilfd=Module[\"__testfunc_f_bhilfd\"]=Module[\"asm\"][\"_testfunc_f_bhilfd\"]).apply(null,arguments)};var __testfunc_d_bhilfd=Module[\"__testfunc_d_bhilfd\"]=function(){return(__testfunc_d_bhilfd=Module[\"__testfunc_d_bhilfd\"]=Module[\"asm\"][\"_testfunc_d_bhilfd\"]).apply(null,arguments)};var __testfunc_D_bhilfD=Module[\"__testfunc_D_bhilfD\"]=function(){return(__testfunc_D_bhilfD=Module[\"__testfunc_D_bhilfD\"]=Module[\"asm\"][\"_testfunc_D_bhilfD\"]).apply(null,arguments)};var ___extendsftf2=Module[\"___extendsftf2\"]=function(){return(___extendsftf2=Module[\"___extendsftf2\"]=Module[\"asm\"][\"__extendsftf2\"]).apply(null,arguments)};var ___addtf3=Module[\"___addtf3\"]=function(){return(___addtf3=Module[\"___addtf3\"]=Module[\"asm\"][\"__addtf3\"]).apply(null,arguments)};var __testfunc_p_p=Module[\"__testfunc_p_p\"]=function(){return(__testfunc_p_p=Module[\"__testfunc_p_p\"]=Module[\"asm\"][\"_testfunc_p_p\"]).apply(null,arguments)};var __testfunc_c_p_p=Module[\"__testfunc_c_p_p\"]=function(){return(__testfunc_c_p_p=Module[\"__testfunc_c_p_p\"]=Module[\"asm\"][\"_testfunc_c_p_p\"]).apply(null,arguments)};var _get_strchr=Module[\"_get_strchr\"]=function(){return(_get_strchr=Module[\"_get_strchr\"]=Module[\"asm\"][\"get_strchr\"]).apply(null,arguments)};var _my_strdup=Module[\"_my_strdup\"]=function(){return(_my_strdup=Module[\"_my_strdup\"]=Module[\"asm\"][\"my_strdup\"]).apply(null,arguments)};var _my_free=Module[\"_my_free\"]=function(){return(_my_free=Module[\"_my_free\"]=Module[\"asm\"][\"my_free\"]).apply(null,arguments)};var _my_wcsdup=Module[\"_my_wcsdup\"]=function(){return(_my_wcsdup=Module[\"_my_wcsdup\"]=Module[\"asm\"][\"my_wcsdup\"]).apply(null,arguments)};var _my_wcslen=Module[\"_my_wcslen\"]=function(){return(_my_wcslen=Module[\"_my_wcslen\"]=Module[\"asm\"][\"my_wcslen\"]).apply(null,arguments)};var __testfunc_callfuncp=Module[\"__testfunc_callfuncp\"]=function(){return(__testfunc_callfuncp=Module[\"__testfunc_callfuncp\"]=Module[\"asm\"][\"_testfunc_callfuncp\"]).apply(null,arguments)};var __testfunc_deref_pointer=Module[\"__testfunc_deref_pointer\"]=function(){return(__testfunc_deref_pointer=Module[\"__testfunc_deref_pointer\"]=Module[\"asm\"][\"_testfunc_deref_pointer\"]).apply(null,arguments)};var __testfunc_callback_with_pointer=Module[\"__testfunc_callback_with_pointer\"]=function(){return(__testfunc_callback_with_pointer=Module[\"__testfunc_callback_with_pointer\"]=Module[\"asm\"][\"_testfunc_callback_with_pointer\"]).apply(null,arguments)};var __testfunc_q_bhilfdq=Module[\"__testfunc_q_bhilfdq\"]=function(){return(__testfunc_q_bhilfdq=Module[\"__testfunc_q_bhilfdq\"]=Module[\"asm\"][\"_testfunc_q_bhilfdq\"]).apply(null,arguments)};var __testfunc_q_bhilfd=Module[\"__testfunc_q_bhilfd\"]=function(){return(__testfunc_q_bhilfd=Module[\"__testfunc_q_bhilfd\"]=Module[\"asm\"][\"_testfunc_q_bhilfd\"]).apply(null,arguments)};var __testfunc_callback_i_if=Module[\"__testfunc_callback_i_if\"]=function(){return(__testfunc_callback_i_if=Module[\"__testfunc_callback_i_if\"]=Module[\"asm\"][\"_testfunc_callback_i_if\"]).apply(null,arguments)};var __testfunc_callback_q_qf=Module[\"__testfunc_callback_q_qf\"]=function(){return(__testfunc_callback_q_qf=Module[\"__testfunc_callback_q_qf\"]=Module[\"asm\"][\"_testfunc_callback_q_qf\"]).apply(null,arguments)};var _getSPAMANDEGGS=Module[\"_getSPAMANDEGGS\"]=function(){return(_getSPAMANDEGGS=Module[\"_getSPAMANDEGGS\"]=Module[\"asm\"][\"getSPAMANDEGGS\"]).apply(null,arguments)};var __testfunc_byval=Module[\"__testfunc_byval\"]=function(){return(__testfunc_byval=Module[\"__testfunc_byval\"]=Module[\"asm\"][\"_testfunc_byval\"]).apply(null,arguments)};var _get_an_integer=Module[\"_get_an_integer\"]=function(){return(_get_an_integer=Module[\"_get_an_integer\"]=Module[\"asm\"][\"get_an_integer\"]).apply(null,arguments)};var _integrate=Module[\"_integrate\"]=function(){return(_integrate=Module[\"_integrate\"]=Module[\"asm\"][\"integrate\"]).apply(null,arguments)};var _library_get=Module[\"_library_get\"]=function(){return(_library_get=Module[\"_library_get\"]=Module[\"asm\"][\"library_get\"]).apply(null,arguments)};var _py_func_si=Module[\"_py_func_si\"]=function(){return(_py_func_si=Module[\"_py_func_si\"]=Module[\"asm\"][\"py_func_si\"]).apply(null,arguments)};var __py_func_si=Module[\"__py_func_si\"]=function(){return(__py_func_si=Module[\"__py_func_si\"]=Module[\"asm\"][\"_py_func_si\"]).apply(null,arguments)};var _py_func=Module[\"_py_func\"]=function(){return(_py_func=Module[\"_py_func\"]=Module[\"asm\"][\"py_func\"]).apply(null,arguments)};var __py_func=Module[\"__py_func\"]=function(){return(__py_func=Module[\"__py_func\"]=Module[\"asm\"][\"_py_func\"]).apply(null,arguments)};var _unpack_bitfields=Module[\"_unpack_bitfields\"]=function(){return(_unpack_bitfields=Module[\"_unpack_bitfields\"]=Module[\"asm\"][\"unpack_bitfields\"]).apply(null,arguments)};var _tf_b=Module[\"_tf_b\"]=function(){return(_tf_b=Module[\"_tf_b\"]=Module[\"asm\"][\"tf_b\"]).apply(null,arguments)};var _tf_B=Module[\"_tf_B\"]=function(){return(_tf_B=Module[\"_tf_B\"]=Module[\"asm\"][\"tf_B\"]).apply(null,arguments)};var _tf_h=Module[\"_tf_h\"]=function(){return(_tf_h=Module[\"_tf_h\"]=Module[\"asm\"][\"tf_h\"]).apply(null,arguments)};var _tf_H=Module[\"_tf_H\"]=function(){return(_tf_H=Module[\"_tf_H\"]=Module[\"asm\"][\"tf_H\"]).apply(null,arguments)};var _tf_i=Module[\"_tf_i\"]=function(){return(_tf_i=Module[\"_tf_i\"]=Module[\"asm\"][\"tf_i\"]).apply(null,arguments)};var _tf_I=Module[\"_tf_I\"]=function(){return(_tf_I=Module[\"_tf_I\"]=Module[\"asm\"][\"tf_I\"]).apply(null,arguments)};var _tf_l=Module[\"_tf_l\"]=function(){return(_tf_l=Module[\"_tf_l\"]=Module[\"asm\"][\"tf_l\"]).apply(null,arguments)};var _tf_L=Module[\"_tf_L\"]=function(){return(_tf_L=Module[\"_tf_L\"]=Module[\"asm\"][\"tf_L\"]).apply(null,arguments)};var _tf_q=Module[\"_tf_q\"]=function(){return(_tf_q=Module[\"_tf_q\"]=Module[\"asm\"][\"tf_q\"]).apply(null,arguments)};var _tf_Q=Module[\"_tf_Q\"]=function(){return(_tf_Q=Module[\"_tf_Q\"]=Module[\"asm\"][\"tf_Q\"]).apply(null,arguments)};var _tf_f=Module[\"_tf_f\"]=function(){return(_tf_f=Module[\"_tf_f\"]=Module[\"asm\"][\"tf_f\"]).apply(null,arguments)};var _tf_d=Module[\"_tf_d\"]=function(){return(_tf_d=Module[\"_tf_d\"]=Module[\"asm\"][\"tf_d\"]).apply(null,arguments)};var _tf_D=Module[\"_tf_D\"]=function(){return(_tf_D=Module[\"_tf_D\"]=Module[\"asm\"][\"tf_D\"]).apply(null,arguments)};var ___fixtfdi=Module[\"___fixtfdi\"]=function(){return(___fixtfdi=Module[\"___fixtfdi\"]=Module[\"asm\"][\"__fixtfdi\"]).apply(null,arguments)};var ___divtf3=Module[\"___divtf3\"]=function(){return(___divtf3=Module[\"___divtf3\"]=Module[\"asm\"][\"__divtf3\"]).apply(null,arguments)};var _tf_bb=Module[\"_tf_bb\"]=function(){return(_tf_bb=Module[\"_tf_bb\"]=Module[\"asm\"][\"tf_bb\"]).apply(null,arguments)};var _tf_bB=Module[\"_tf_bB\"]=function(){return(_tf_bB=Module[\"_tf_bB\"]=Module[\"asm\"][\"tf_bB\"]).apply(null,arguments)};var _tf_bh=Module[\"_tf_bh\"]=function(){return(_tf_bh=Module[\"_tf_bh\"]=Module[\"asm\"][\"tf_bh\"]).apply(null,arguments)};var _tf_bH=Module[\"_tf_bH\"]=function(){return(_tf_bH=Module[\"_tf_bH\"]=Module[\"asm\"][\"tf_bH\"]).apply(null,arguments)};var _tf_bi=Module[\"_tf_bi\"]=function(){return(_tf_bi=Module[\"_tf_bi\"]=Module[\"asm\"][\"tf_bi\"]).apply(null,arguments)};var _tf_bI=Module[\"_tf_bI\"]=function(){return(_tf_bI=Module[\"_tf_bI\"]=Module[\"asm\"][\"tf_bI\"]).apply(null,arguments)};var _tf_bl=Module[\"_tf_bl\"]=function(){return(_tf_bl=Module[\"_tf_bl\"]=Module[\"asm\"][\"tf_bl\"]).apply(null,arguments)};var _tf_bL=Module[\"_tf_bL\"]=function(){return(_tf_bL=Module[\"_tf_bL\"]=Module[\"asm\"][\"tf_bL\"]).apply(null,arguments)};var _tf_bq=Module[\"_tf_bq\"]=function(){return(_tf_bq=Module[\"_tf_bq\"]=Module[\"asm\"][\"tf_bq\"]).apply(null,arguments)};var _tf_bQ=Module[\"_tf_bQ\"]=function(){return(_tf_bQ=Module[\"_tf_bQ\"]=Module[\"asm\"][\"tf_bQ\"]).apply(null,arguments)};var _tf_bf=Module[\"_tf_bf\"]=function(){return(_tf_bf=Module[\"_tf_bf\"]=Module[\"asm\"][\"tf_bf\"]).apply(null,arguments)};var _tf_bd=Module[\"_tf_bd\"]=function(){return(_tf_bd=Module[\"_tf_bd\"]=Module[\"asm\"][\"tf_bd\"]).apply(null,arguments)};var _tf_bD=Module[\"_tf_bD\"]=function(){return(_tf_bD=Module[\"_tf_bD\"]=Module[\"asm\"][\"tf_bD\"]).apply(null,arguments)};var _tv_i=Module[\"_tv_i\"]=function(){return(_tv_i=Module[\"_tv_i\"]=Module[\"asm\"][\"tv_i\"]).apply(null,arguments)};var _PointInRect=Module[\"_PointInRect\"]=function(){return(_PointInRect=Module[\"_PointInRect\"]=Module[\"asm\"][\"PointInRect\"]).apply(null,arguments)};var _ReturnRect=Module[\"_ReturnRect\"]=function(){return(_ReturnRect=Module[\"_ReturnRect\"]=Module[\"asm\"][\"ReturnRect\"]).apply(null,arguments)};var _ret_2h_func=Module[\"_ret_2h_func\"]=function(){return(_ret_2h_func=Module[\"_ret_2h_func\"]=Module[\"asm\"][\"ret_2h_func\"]).apply(null,arguments)};var _ret_8i_func=Module[\"_ret_8i_func\"]=function(){return(_ret_8i_func=Module[\"_ret_8i_func\"]=Module[\"asm\"][\"ret_8i_func\"]).apply(null,arguments)};var _GetRectangle=Module[\"_GetRectangle\"]=function(){return(_GetRectangle=Module[\"_GetRectangle\"]=Module[\"asm\"][\"GetRectangle\"]).apply(null,arguments)};var _TwoOutArgs=Module[\"_TwoOutArgs\"]=function(){return(_TwoOutArgs=Module[\"_TwoOutArgs\"]=Module[\"asm\"][\"TwoOutArgs\"]).apply(null,arguments)};var _getsockname=Module[\"_getsockname\"]=function(){return(_getsockname=Module[\"_getsockname\"]=Module[\"asm\"][\"getsockname\"]).apply(null,arguments)};var _socket=Module[\"_socket\"]=function(){return(_socket=Module[\"_socket\"]=Module[\"asm\"][\"socket\"]).apply(null,arguments)};var _getsockopt=Module[\"_getsockopt\"]=function(){return(_getsockopt=Module[\"_getsockopt\"]=Module[\"asm\"][\"getsockopt\"]).apply(null,arguments)};var _bind=Module[\"_bind\"]=function(){return(_bind=Module[\"_bind\"]=Module[\"asm\"][\"bind\"]).apply(null,arguments)};var _getpeername=Module[\"_getpeername\"]=function(){return(_getpeername=Module[\"_getpeername\"]=Module[\"asm\"][\"getpeername\"]).apply(null,arguments)};var _listen=Module[\"_listen\"]=function(){return(_listen=Module[\"_listen\"]=Module[\"asm\"][\"listen\"]).apply(null,arguments)};var _setsockopt=Module[\"_setsockopt\"]=function(){return(_setsockopt=Module[\"_setsockopt\"]=Module[\"asm\"][\"setsockopt\"]).apply(null,arguments)};var _shutdown=Module[\"_shutdown\"]=function(){return(_shutdown=Module[\"_shutdown\"]=Module[\"asm\"][\"shutdown\"]).apply(null,arguments)};var _accept4=Module[\"_accept4\"]=function(){return(_accept4=Module[\"_accept4\"]=Module[\"asm\"][\"accept4\"]).apply(null,arguments)};var _accept=Module[\"_accept\"]=function(){return(_accept=Module[\"_accept\"]=Module[\"asm\"][\"accept\"]).apply(null,arguments)};var _inet_ntop=Module[\"_inet_ntop\"]=function(){return(_inet_ntop=Module[\"_inet_ntop\"]=Module[\"asm\"][\"inet_ntop\"]).apply(null,arguments)};var _ntohs=Module[\"_ntohs\"]=function(){return(_ntohs=Module[\"_ntohs\"]=Module[\"asm\"][\"ntohs\"]).apply(null,arguments)};var _ioctl=Module[\"_ioctl\"]=function(){return(_ioctl=Module[\"_ioctl\"]=Module[\"asm\"][\"ioctl\"]).apply(null,arguments)};var _poll=Module[\"_poll\"]=function(){return(_poll=Module[\"_poll\"]=Module[\"asm\"][\"poll\"]).apply(null,arguments)};var _htons=Module[\"_htons\"]=function(){return(_htons=Module[\"_htons\"]=Module[\"asm\"][\"htons\"]).apply(null,arguments)};var _freeaddrinfo=Module[\"_freeaddrinfo\"]=function(){return(_freeaddrinfo=Module[\"_freeaddrinfo\"]=Module[\"asm\"][\"freeaddrinfo\"]).apply(null,arguments)};var _inet_pton=Module[\"_inet_pton\"]=function(){return(_inet_pton=Module[\"_inet_pton\"]=Module[\"asm\"][\"inet_pton\"]).apply(null,arguments)};var _connect=Module[\"_connect\"]=function(){return(_connect=Module[\"_connect\"]=Module[\"asm\"][\"connect\"]).apply(null,arguments)};var _recv=Module[\"_recv\"]=function(){return(_recv=Module[\"_recv\"]=Module[\"asm\"][\"recv\"]).apply(null,arguments)};var _recvfrom=Module[\"_recvfrom\"]=function(){return(_recvfrom=Module[\"_recvfrom\"]=Module[\"asm\"][\"recvfrom\"]).apply(null,arguments)};var _send=Module[\"_send\"]=function(){return(_send=Module[\"_send\"]=Module[\"asm\"][\"send\"]).apply(null,arguments)};var _sendto=Module[\"_sendto\"]=function(){return(_sendto=Module[\"_sendto\"]=Module[\"asm\"][\"sendto\"]).apply(null,arguments)};var _recvmsg=Module[\"_recvmsg\"]=function(){return(_recvmsg=Module[\"_recvmsg\"]=Module[\"asm\"][\"recvmsg\"]).apply(null,arguments)};var _sendmsg=Module[\"_sendmsg\"]=function(){return(_sendmsg=Module[\"_sendmsg\"]=Module[\"asm\"][\"sendmsg\"]).apply(null,arguments)};var _gethostname=Module[\"_gethostname\"]=function(){return(_gethostname=Module[\"_gethostname\"]=Module[\"asm\"][\"gethostname\"]).apply(null,arguments)};var _getservbyname=Module[\"_getservbyname\"]=function(){return(_getservbyname=Module[\"_getservbyname\"]=Module[\"asm\"][\"getservbyname\"]).apply(null,arguments)};var _getservbyport=Module[\"_getservbyport\"]=function(){return(_getservbyport=Module[\"_getservbyport\"]=Module[\"asm\"][\"getservbyport\"]).apply(null,arguments)};var _ntohl=Module[\"_ntohl\"]=function(){return(_ntohl=Module[\"_ntohl\"]=Module[\"asm\"][\"ntohl\"]).apply(null,arguments)};var _htonl=Module[\"_htonl\"]=function(){return(_htonl=Module[\"_htonl\"]=Module[\"asm\"][\"htonl\"]).apply(null,arguments)};var _inet_aton=Module[\"_inet_aton\"]=function(){return(_inet_aton=Module[\"_inet_aton\"]=Module[\"asm\"][\"inet_aton\"]).apply(null,arguments)};var _inet_ntoa=Module[\"_inet_ntoa\"]=function(){return(_inet_ntoa=Module[\"_inet_ntoa\"]=Module[\"asm\"][\"inet_ntoa\"]).apply(null,arguments)};var ___h_errno_location=Module[\"___h_errno_location\"]=function(){return(___h_errno_location=Module[\"___h_errno_location\"]=Module[\"asm\"][\"__h_errno_location\"]).apply(null,arguments)};var _hstrerror=Module[\"_hstrerror\"]=function(){return(_hstrerror=Module[\"_hstrerror\"]=Module[\"asm\"][\"hstrerror\"]).apply(null,arguments)};var _select=Module[\"_select\"]=function(){return(_select=Module[\"_select\"]=Module[\"asm\"][\"select\"]).apply(null,arguments)};var __Py_Gid_Converter=Module[\"__Py_Gid_Converter\"]=function(){return(__Py_Gid_Converter=Module[\"__Py_Gid_Converter\"]=Module[\"asm\"][\"_Py_Gid_Converter\"]).apply(null,arguments)};var __Py_Uid_Converter=Module[\"__Py_Uid_Converter\"]=function(){return(__Py_Uid_Converter=Module[\"__Py_Uid_Converter\"]=Module[\"asm\"][\"_Py_Uid_Converter\"]).apply(null,arguments)};var _PyOS_BeforeFork=Module[\"_PyOS_BeforeFork\"]=function(){return(_PyOS_BeforeFork=Module[\"_PyOS_BeforeFork\"]=Module[\"asm\"][\"PyOS_BeforeFork\"]).apply(null,arguments)};var _PyOS_AfterFork_Child=Module[\"_PyOS_AfterFork_Child\"]=function(){return(_PyOS_AfterFork_Child=Module[\"_PyOS_AfterFork_Child\"]=Module[\"asm\"][\"PyOS_AfterFork_Child\"]).apply(null,arguments)};var _PyOS_AfterFork_Parent=Module[\"_PyOS_AfterFork_Parent\"]=function(){return(_PyOS_AfterFork_Parent=Module[\"_PyOS_AfterFork_Parent\"]=Module[\"asm\"][\"PyOS_AfterFork_Parent\"]).apply(null,arguments)};var _dup=Module[\"_dup\"]=function(){return(_dup=Module[\"_dup\"]=Module[\"asm\"][\"dup\"]).apply(null,arguments)};var _dup2=Module[\"_dup2\"]=function(){return(_dup2=Module[\"_dup2\"]=Module[\"asm\"][\"dup2\"]).apply(null,arguments)};var _chdir=Module[\"_chdir\"]=function(){return(_chdir=Module[\"_chdir\"]=Module[\"asm\"][\"chdir\"]).apply(null,arguments)};var _umask=Module[\"_umask\"]=function(){return(_umask=Module[\"_umask\"]=Module[\"asm\"][\"umask\"]).apply(null,arguments)};var _setsid=Module[\"_setsid\"]=function(){return(_setsid=Module[\"_setsid\"]=Module[\"asm\"][\"setsid\"]).apply(null,arguments)};var _setregid=Module[\"_setregid\"]=function(){return(_setregid=Module[\"_setregid\"]=Module[\"asm\"][\"setregid\"]).apply(null,arguments)};var _setreuid=Module[\"_setreuid\"]=function(){return(_setreuid=Module[\"_setreuid\"]=Module[\"asm\"][\"setreuid\"]).apply(null,arguments)};var _opendir=Module[\"_opendir\"]=function(){return(_opendir=Module[\"_opendir\"]=Module[\"asm\"][\"opendir\"]).apply(null,arguments)};var _sysconf=Module[\"_sysconf\"]=function(){return(_sysconf=Module[\"_sysconf\"]=Module[\"asm\"][\"sysconf\"]).apply(null,arguments)};var _dirfd=Module[\"_dirfd\"]=function(){return(_dirfd=Module[\"_dirfd\"]=Module[\"asm\"][\"dirfd\"]).apply(null,arguments)};var _readdir=Module[\"_readdir\"]=function(){return(_readdir=Module[\"_readdir\"]=Module[\"asm\"][\"readdir\"]).apply(null,arguments)};var _closedir=Module[\"_closedir\"]=function(){return(_closedir=Module[\"_closedir\"]=Module[\"asm\"][\"closedir\"]).apply(null,arguments)};var _execv=Module[\"_execv\"]=function(){return(_execv=Module[\"_execv\"]=Module[\"asm\"][\"execv\"]).apply(null,arguments)};var _zlibVersion=Module[\"_zlibVersion\"]=function(){return(_zlibVersion=Module[\"_zlibVersion\"]=Module[\"asm\"][\"zlibVersion\"]).apply(null,arguments)};var _adler32=Module[\"_adler32\"]=function(){return(_adler32=Module[\"_adler32\"]=Module[\"asm\"][\"adler32\"]).apply(null,arguments)};var _deflateInit_=Module[\"_deflateInit_\"]=function(){return(_deflateInit_=Module[\"_deflateInit_\"]=Module[\"asm\"][\"deflateInit_\"]).apply(null,arguments)};var _deflateEnd=Module[\"_deflateEnd\"]=function(){return(_deflateEnd=Module[\"_deflateEnd\"]=Module[\"asm\"][\"deflateEnd\"]).apply(null,arguments)};var _deflate=Module[\"_deflate\"]=function(){return(_deflate=Module[\"_deflate\"]=Module[\"asm\"][\"deflate\"]).apply(null,arguments)};var _deflateInit2_=Module[\"_deflateInit2_\"]=function(){return(_deflateInit2_=Module[\"_deflateInit2_\"]=Module[\"asm\"][\"deflateInit2_\"]).apply(null,arguments)};var _deflateSetDictionary=Module[\"_deflateSetDictionary\"]=function(){return(_deflateSetDictionary=Module[\"_deflateSetDictionary\"]=Module[\"asm\"][\"deflateSetDictionary\"]).apply(null,arguments)};var _crc32=Module[\"_crc32\"]=function(){return(_crc32=Module[\"_crc32\"]=Module[\"asm\"][\"crc32\"]).apply(null,arguments)};var _inflateInit2_=Module[\"_inflateInit2_\"]=function(){return(_inflateInit2_=Module[\"_inflateInit2_\"]=Module[\"asm\"][\"inflateInit2_\"]).apply(null,arguments)};var _inflateEnd=Module[\"_inflateEnd\"]=function(){return(_inflateEnd=Module[\"_inflateEnd\"]=Module[\"asm\"][\"inflateEnd\"]).apply(null,arguments)};var _inflate=Module[\"_inflate\"]=function(){return(_inflate=Module[\"_inflate\"]=Module[\"asm\"][\"inflate\"]).apply(null,arguments)};var _inflateSetDictionary=Module[\"_inflateSetDictionary\"]=function(){return(_inflateSetDictionary=Module[\"_inflateSetDictionary\"]=Module[\"asm\"][\"inflateSetDictionary\"]).apply(null,arguments)};var _PyExpat_XML_ParserCreate=Module[\"_PyExpat_XML_ParserCreate\"]=function(){return(_PyExpat_XML_ParserCreate=Module[\"_PyExpat_XML_ParserCreate\"]=Module[\"asm\"][\"PyExpat_XML_ParserCreate\"]).apply(null,arguments)};var _PyExpat_XML_ParserCreate_MM=Module[\"_PyExpat_XML_ParserCreate_MM\"]=function(){return(_PyExpat_XML_ParserCreate_MM=Module[\"_PyExpat_XML_ParserCreate_MM\"]=Module[\"asm\"][\"PyExpat_XML_ParserCreate_MM\"]).apply(null,arguments)};var _PyExpat_XML_ParserCreateNS=Module[\"_PyExpat_XML_ParserCreateNS\"]=function(){return(_PyExpat_XML_ParserCreateNS=Module[\"_PyExpat_XML_ParserCreateNS\"]=Module[\"asm\"][\"PyExpat_XML_ParserCreateNS\"]).apply(null,arguments)};var _PyExpat_XML_ParserFree=Module[\"_PyExpat_XML_ParserFree\"]=function(){return(_PyExpat_XML_ParserFree=Module[\"_PyExpat_XML_ParserFree\"]=Module[\"asm\"][\"PyExpat_XML_ParserFree\"]).apply(null,arguments)};var _PyExpat_XmlGetUtf8InternalEncodingNS=Module[\"_PyExpat_XmlGetUtf8InternalEncodingNS\"]=function(){return(_PyExpat_XmlGetUtf8InternalEncodingNS=Module[\"_PyExpat_XmlGetUtf8InternalEncodingNS\"]=Module[\"asm\"][\"PyExpat_XmlGetUtf8InternalEncodingNS\"]).apply(null,arguments)};var _PyExpat_XmlGetUtf8InternalEncoding=Module[\"_PyExpat_XmlGetUtf8InternalEncoding\"]=function(){return(_PyExpat_XmlGetUtf8InternalEncoding=Module[\"_PyExpat_XmlGetUtf8InternalEncoding\"]=Module[\"asm\"][\"PyExpat_XmlGetUtf8InternalEncoding\"]).apply(null,arguments)};var _PyExpat_XML_ParserReset=Module[\"_PyExpat_XML_ParserReset\"]=function(){return(_PyExpat_XML_ParserReset=Module[\"_PyExpat_XML_ParserReset\"]=Module[\"asm\"][\"PyExpat_XML_ParserReset\"]).apply(null,arguments)};var _PyExpat_XmlPrologStateInit=Module[\"_PyExpat_XmlPrologStateInit\"]=function(){return(_PyExpat_XmlPrologStateInit=Module[\"_PyExpat_XmlPrologStateInit\"]=Module[\"asm\"][\"PyExpat_XmlPrologStateInit\"]).apply(null,arguments)};var _PyExpat_XmlInitEncoding=Module[\"_PyExpat_XmlInitEncoding\"]=function(){return(_PyExpat_XmlInitEncoding=Module[\"_PyExpat_XmlInitEncoding\"]=Module[\"asm\"][\"PyExpat_XmlInitEncoding\"]).apply(null,arguments)};var _PyExpat_XML_SetEncoding=Module[\"_PyExpat_XML_SetEncoding\"]=function(){return(_PyExpat_XML_SetEncoding=Module[\"_PyExpat_XML_SetEncoding\"]=Module[\"asm\"][\"PyExpat_XML_SetEncoding\"]).apply(null,arguments)};var _PyExpat_XML_ExternalEntityParserCreate=Module[\"_PyExpat_XML_ExternalEntityParserCreate\"]=function(){return(_PyExpat_XML_ExternalEntityParserCreate=Module[\"_PyExpat_XML_ExternalEntityParserCreate\"]=Module[\"asm\"][\"PyExpat_XML_ExternalEntityParserCreate\"]).apply(null,arguments)};var _PyExpat_XmlPrologStateInitExternalEntity=Module[\"_PyExpat_XmlPrologStateInitExternalEntity\"]=function(){return(_PyExpat_XmlPrologStateInitExternalEntity=Module[\"_PyExpat_XmlPrologStateInitExternalEntity\"]=Module[\"asm\"][\"PyExpat_XmlPrologStateInitExternalEntity\"]).apply(null,arguments)};var _PyExpat_XmlInitEncodingNS=Module[\"_PyExpat_XmlInitEncodingNS\"]=function(){return(_PyExpat_XmlInitEncodingNS=Module[\"_PyExpat_XmlInitEncodingNS\"]=Module[\"asm\"][\"PyExpat_XmlInitEncodingNS\"]).apply(null,arguments)};var _PyExpat_XML_UseParserAsHandlerArg=Module[\"_PyExpat_XML_UseParserAsHandlerArg\"]=function(){return(_PyExpat_XML_UseParserAsHandlerArg=Module[\"_PyExpat_XML_UseParserAsHandlerArg\"]=Module[\"asm\"][\"PyExpat_XML_UseParserAsHandlerArg\"]).apply(null,arguments)};var _PyExpat_XML_UseForeignDTD=Module[\"_PyExpat_XML_UseForeignDTD\"]=function(){return(_PyExpat_XML_UseForeignDTD=Module[\"_PyExpat_XML_UseForeignDTD\"]=Module[\"asm\"][\"PyExpat_XML_UseForeignDTD\"]).apply(null,arguments)};var _PyExpat_XML_SetReturnNSTriplet=Module[\"_PyExpat_XML_SetReturnNSTriplet\"]=function(){return(_PyExpat_XML_SetReturnNSTriplet=Module[\"_PyExpat_XML_SetReturnNSTriplet\"]=Module[\"asm\"][\"PyExpat_XML_SetReturnNSTriplet\"]).apply(null,arguments)};var _PyExpat_XML_SetUserData=Module[\"_PyExpat_XML_SetUserData\"]=function(){return(_PyExpat_XML_SetUserData=Module[\"_PyExpat_XML_SetUserData\"]=Module[\"asm\"][\"PyExpat_XML_SetUserData\"]).apply(null,arguments)};var _PyExpat_XML_SetBase=Module[\"_PyExpat_XML_SetBase\"]=function(){return(_PyExpat_XML_SetBase=Module[\"_PyExpat_XML_SetBase\"]=Module[\"asm\"][\"PyExpat_XML_SetBase\"]).apply(null,arguments)};var _PyExpat_XML_GetBase=Module[\"_PyExpat_XML_GetBase\"]=function(){return(_PyExpat_XML_GetBase=Module[\"_PyExpat_XML_GetBase\"]=Module[\"asm\"][\"PyExpat_XML_GetBase\"]).apply(null,arguments)};var _PyExpat_XML_GetSpecifiedAttributeCount=Module[\"_PyExpat_XML_GetSpecifiedAttributeCount\"]=function(){return(_PyExpat_XML_GetSpecifiedAttributeCount=Module[\"_PyExpat_XML_GetSpecifiedAttributeCount\"]=Module[\"asm\"][\"PyExpat_XML_GetSpecifiedAttributeCount\"]).apply(null,arguments)};var _PyExpat_XML_GetIdAttributeIndex=Module[\"_PyExpat_XML_GetIdAttributeIndex\"]=function(){return(_PyExpat_XML_GetIdAttributeIndex=Module[\"_PyExpat_XML_GetIdAttributeIndex\"]=Module[\"asm\"][\"PyExpat_XML_GetIdAttributeIndex\"]).apply(null,arguments)};var _PyExpat_XML_SetElementHandler=Module[\"_PyExpat_XML_SetElementHandler\"]=function(){return(_PyExpat_XML_SetElementHandler=Module[\"_PyExpat_XML_SetElementHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetElementHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetStartElementHandler=Module[\"_PyExpat_XML_SetStartElementHandler\"]=function(){return(_PyExpat_XML_SetStartElementHandler=Module[\"_PyExpat_XML_SetStartElementHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetStartElementHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetEndElementHandler=Module[\"_PyExpat_XML_SetEndElementHandler\"]=function(){return(_PyExpat_XML_SetEndElementHandler=Module[\"_PyExpat_XML_SetEndElementHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetEndElementHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetCharacterDataHandler=Module[\"_PyExpat_XML_SetCharacterDataHandler\"]=function(){return(_PyExpat_XML_SetCharacterDataHandler=Module[\"_PyExpat_XML_SetCharacterDataHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetCharacterDataHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetProcessingInstructionHandler=Module[\"_PyExpat_XML_SetProcessingInstructionHandler\"]=function(){return(_PyExpat_XML_SetProcessingInstructionHandler=Module[\"_PyExpat_XML_SetProcessingInstructionHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetProcessingInstructionHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetCommentHandler=Module[\"_PyExpat_XML_SetCommentHandler\"]=function(){return(_PyExpat_XML_SetCommentHandler=Module[\"_PyExpat_XML_SetCommentHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetCommentHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetCdataSectionHandler=Module[\"_PyExpat_XML_SetCdataSectionHandler\"]=function(){return(_PyExpat_XML_SetCdataSectionHandler=Module[\"_PyExpat_XML_SetCdataSectionHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetCdataSectionHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetStartCdataSectionHandler=Module[\"_PyExpat_XML_SetStartCdataSectionHandler\"]=function(){return(_PyExpat_XML_SetStartCdataSectionHandler=Module[\"_PyExpat_XML_SetStartCdataSectionHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetStartCdataSectionHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetEndCdataSectionHandler=Module[\"_PyExpat_XML_SetEndCdataSectionHandler\"]=function(){return(_PyExpat_XML_SetEndCdataSectionHandler=Module[\"_PyExpat_XML_SetEndCdataSectionHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetEndCdataSectionHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetDefaultHandler=Module[\"_PyExpat_XML_SetDefaultHandler\"]=function(){return(_PyExpat_XML_SetDefaultHandler=Module[\"_PyExpat_XML_SetDefaultHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetDefaultHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetDefaultHandlerExpand=Module[\"_PyExpat_XML_SetDefaultHandlerExpand\"]=function(){return(_PyExpat_XML_SetDefaultHandlerExpand=Module[\"_PyExpat_XML_SetDefaultHandlerExpand\"]=Module[\"asm\"][\"PyExpat_XML_SetDefaultHandlerExpand\"]).apply(null,arguments)};var _PyExpat_XML_SetDoctypeDeclHandler=Module[\"_PyExpat_XML_SetDoctypeDeclHandler\"]=function(){return(_PyExpat_XML_SetDoctypeDeclHandler=Module[\"_PyExpat_XML_SetDoctypeDeclHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetDoctypeDeclHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetStartDoctypeDeclHandler=Module[\"_PyExpat_XML_SetStartDoctypeDeclHandler\"]=function(){return(_PyExpat_XML_SetStartDoctypeDeclHandler=Module[\"_PyExpat_XML_SetStartDoctypeDeclHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetStartDoctypeDeclHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetEndDoctypeDeclHandler=Module[\"_PyExpat_XML_SetEndDoctypeDeclHandler\"]=function(){return(_PyExpat_XML_SetEndDoctypeDeclHandler=Module[\"_PyExpat_XML_SetEndDoctypeDeclHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetEndDoctypeDeclHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetUnparsedEntityDeclHandler=Module[\"_PyExpat_XML_SetUnparsedEntityDeclHandler\"]=function(){return(_PyExpat_XML_SetUnparsedEntityDeclHandler=Module[\"_PyExpat_XML_SetUnparsedEntityDeclHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetUnparsedEntityDeclHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetNotationDeclHandler=Module[\"_PyExpat_XML_SetNotationDeclHandler\"]=function(){return(_PyExpat_XML_SetNotationDeclHandler=Module[\"_PyExpat_XML_SetNotationDeclHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetNotationDeclHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetNamespaceDeclHandler=Module[\"_PyExpat_XML_SetNamespaceDeclHandler\"]=function(){return(_PyExpat_XML_SetNamespaceDeclHandler=Module[\"_PyExpat_XML_SetNamespaceDeclHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetNamespaceDeclHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetStartNamespaceDeclHandler=Module[\"_PyExpat_XML_SetStartNamespaceDeclHandler\"]=function(){return(_PyExpat_XML_SetStartNamespaceDeclHandler=Module[\"_PyExpat_XML_SetStartNamespaceDeclHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetStartNamespaceDeclHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetEndNamespaceDeclHandler=Module[\"_PyExpat_XML_SetEndNamespaceDeclHandler\"]=function(){return(_PyExpat_XML_SetEndNamespaceDeclHandler=Module[\"_PyExpat_XML_SetEndNamespaceDeclHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetEndNamespaceDeclHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetNotStandaloneHandler=Module[\"_PyExpat_XML_SetNotStandaloneHandler\"]=function(){return(_PyExpat_XML_SetNotStandaloneHandler=Module[\"_PyExpat_XML_SetNotStandaloneHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetNotStandaloneHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetExternalEntityRefHandler=Module[\"_PyExpat_XML_SetExternalEntityRefHandler\"]=function(){return(_PyExpat_XML_SetExternalEntityRefHandler=Module[\"_PyExpat_XML_SetExternalEntityRefHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetExternalEntityRefHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetExternalEntityRefHandlerArg=Module[\"_PyExpat_XML_SetExternalEntityRefHandlerArg\"]=function(){return(_PyExpat_XML_SetExternalEntityRefHandlerArg=Module[\"_PyExpat_XML_SetExternalEntityRefHandlerArg\"]=Module[\"asm\"][\"PyExpat_XML_SetExternalEntityRefHandlerArg\"]).apply(null,arguments)};var _PyExpat_XML_SetSkippedEntityHandler=Module[\"_PyExpat_XML_SetSkippedEntityHandler\"]=function(){return(_PyExpat_XML_SetSkippedEntityHandler=Module[\"_PyExpat_XML_SetSkippedEntityHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetSkippedEntityHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetUnknownEncodingHandler=Module[\"_PyExpat_XML_SetUnknownEncodingHandler\"]=function(){return(_PyExpat_XML_SetUnknownEncodingHandler=Module[\"_PyExpat_XML_SetUnknownEncodingHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetUnknownEncodingHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetElementDeclHandler=Module[\"_PyExpat_XML_SetElementDeclHandler\"]=function(){return(_PyExpat_XML_SetElementDeclHandler=Module[\"_PyExpat_XML_SetElementDeclHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetElementDeclHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetAttlistDeclHandler=Module[\"_PyExpat_XML_SetAttlistDeclHandler\"]=function(){return(_PyExpat_XML_SetAttlistDeclHandler=Module[\"_PyExpat_XML_SetAttlistDeclHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetAttlistDeclHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetEntityDeclHandler=Module[\"_PyExpat_XML_SetEntityDeclHandler\"]=function(){return(_PyExpat_XML_SetEntityDeclHandler=Module[\"_PyExpat_XML_SetEntityDeclHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetEntityDeclHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetXmlDeclHandler=Module[\"_PyExpat_XML_SetXmlDeclHandler\"]=function(){return(_PyExpat_XML_SetXmlDeclHandler=Module[\"_PyExpat_XML_SetXmlDeclHandler\"]=Module[\"asm\"][\"PyExpat_XML_SetXmlDeclHandler\"]).apply(null,arguments)};var _PyExpat_XML_SetParamEntityParsing=Module[\"_PyExpat_XML_SetParamEntityParsing\"]=function(){return(_PyExpat_XML_SetParamEntityParsing=Module[\"_PyExpat_XML_SetParamEntityParsing\"]=Module[\"asm\"][\"PyExpat_XML_SetParamEntityParsing\"]).apply(null,arguments)};var _PyExpat_XML_SetHashSalt=Module[\"_PyExpat_XML_SetHashSalt\"]=function(){return(_PyExpat_XML_SetHashSalt=Module[\"_PyExpat_XML_SetHashSalt\"]=Module[\"asm\"][\"PyExpat_XML_SetHashSalt\"]).apply(null,arguments)};var _PyExpat_XML_Parse=Module[\"_PyExpat_XML_Parse\"]=function(){return(_PyExpat_XML_Parse=Module[\"_PyExpat_XML_Parse\"]=Module[\"asm\"][\"PyExpat_XML_Parse\"]).apply(null,arguments)};var _PyExpat_XML_GetBuffer=Module[\"_PyExpat_XML_GetBuffer\"]=function(){return(_PyExpat_XML_GetBuffer=Module[\"_PyExpat_XML_GetBuffer\"]=Module[\"asm\"][\"PyExpat_XML_GetBuffer\"]).apply(null,arguments)};var _PyExpat_XML_ParseBuffer=Module[\"_PyExpat_XML_ParseBuffer\"]=function(){return(_PyExpat_XML_ParseBuffer=Module[\"_PyExpat_XML_ParseBuffer\"]=Module[\"asm\"][\"PyExpat_XML_ParseBuffer\"]).apply(null,arguments)};var _PyExpat_XML_StopParser=Module[\"_PyExpat_XML_StopParser\"]=function(){return(_PyExpat_XML_StopParser=Module[\"_PyExpat_XML_StopParser\"]=Module[\"asm\"][\"PyExpat_XML_StopParser\"]).apply(null,arguments)};var _PyExpat_XML_ResumeParser=Module[\"_PyExpat_XML_ResumeParser\"]=function(){return(_PyExpat_XML_ResumeParser=Module[\"_PyExpat_XML_ResumeParser\"]=Module[\"asm\"][\"PyExpat_XML_ResumeParser\"]).apply(null,arguments)};var _PyExpat_XML_GetParsingStatus=Module[\"_PyExpat_XML_GetParsingStatus\"]=function(){return(_PyExpat_XML_GetParsingStatus=Module[\"_PyExpat_XML_GetParsingStatus\"]=Module[\"asm\"][\"PyExpat_XML_GetParsingStatus\"]).apply(null,arguments)};var _PyExpat_XML_GetErrorCode=Module[\"_PyExpat_XML_GetErrorCode\"]=function(){return(_PyExpat_XML_GetErrorCode=Module[\"_PyExpat_XML_GetErrorCode\"]=Module[\"asm\"][\"PyExpat_XML_GetErrorCode\"]).apply(null,arguments)};var _PyExpat_XML_GetCurrentByteIndex=Module[\"_PyExpat_XML_GetCurrentByteIndex\"]=function(){return(_PyExpat_XML_GetCurrentByteIndex=Module[\"_PyExpat_XML_GetCurrentByteIndex\"]=Module[\"asm\"][\"PyExpat_XML_GetCurrentByteIndex\"]).apply(null,arguments)};var _PyExpat_XML_GetCurrentByteCount=Module[\"_PyExpat_XML_GetCurrentByteCount\"]=function(){return(_PyExpat_XML_GetCurrentByteCount=Module[\"_PyExpat_XML_GetCurrentByteCount\"]=Module[\"asm\"][\"PyExpat_XML_GetCurrentByteCount\"]).apply(null,arguments)};var _PyExpat_XML_GetInputContext=Module[\"_PyExpat_XML_GetInputContext\"]=function(){return(_PyExpat_XML_GetInputContext=Module[\"_PyExpat_XML_GetInputContext\"]=Module[\"asm\"][\"PyExpat_XML_GetInputContext\"]).apply(null,arguments)};var _PyExpat_XML_GetCurrentLineNumber=Module[\"_PyExpat_XML_GetCurrentLineNumber\"]=function(){return(_PyExpat_XML_GetCurrentLineNumber=Module[\"_PyExpat_XML_GetCurrentLineNumber\"]=Module[\"asm\"][\"PyExpat_XML_GetCurrentLineNumber\"]).apply(null,arguments)};var _PyExpat_XML_GetCurrentColumnNumber=Module[\"_PyExpat_XML_GetCurrentColumnNumber\"]=function(){return(_PyExpat_XML_GetCurrentColumnNumber=Module[\"_PyExpat_XML_GetCurrentColumnNumber\"]=Module[\"asm\"][\"PyExpat_XML_GetCurrentColumnNumber\"]).apply(null,arguments)};var _PyExpat_XML_FreeContentModel=Module[\"_PyExpat_XML_FreeContentModel\"]=function(){return(_PyExpat_XML_FreeContentModel=Module[\"_PyExpat_XML_FreeContentModel\"]=Module[\"asm\"][\"PyExpat_XML_FreeContentModel\"]).apply(null,arguments)};var _PyExpat_XML_MemMalloc=Module[\"_PyExpat_XML_MemMalloc\"]=function(){return(_PyExpat_XML_MemMalloc=Module[\"_PyExpat_XML_MemMalloc\"]=Module[\"asm\"][\"PyExpat_XML_MemMalloc\"]).apply(null,arguments)};var _PyExpat_XML_MemRealloc=Module[\"_PyExpat_XML_MemRealloc\"]=function(){return(_PyExpat_XML_MemRealloc=Module[\"_PyExpat_XML_MemRealloc\"]=Module[\"asm\"][\"PyExpat_XML_MemRealloc\"]).apply(null,arguments)};var _PyExpat_XML_MemFree=Module[\"_PyExpat_XML_MemFree\"]=function(){return(_PyExpat_XML_MemFree=Module[\"_PyExpat_XML_MemFree\"]=Module[\"asm\"][\"PyExpat_XML_MemFree\"]).apply(null,arguments)};var _PyExpat_XML_DefaultCurrent=Module[\"_PyExpat_XML_DefaultCurrent\"]=function(){return(_PyExpat_XML_DefaultCurrent=Module[\"_PyExpat_XML_DefaultCurrent\"]=Module[\"asm\"][\"PyExpat_XML_DefaultCurrent\"]).apply(null,arguments)};var _PyExpat_XML_ErrorString=Module[\"_PyExpat_XML_ErrorString\"]=function(){return(_PyExpat_XML_ErrorString=Module[\"_PyExpat_XML_ErrorString\"]=Module[\"asm\"][\"PyExpat_XML_ErrorString\"]).apply(null,arguments)};var _PyExpat_XML_ExpatVersion=Module[\"_PyExpat_XML_ExpatVersion\"]=function(){return(_PyExpat_XML_ExpatVersion=Module[\"_PyExpat_XML_ExpatVersion\"]=Module[\"asm\"][\"PyExpat_XML_ExpatVersion\"]).apply(null,arguments)};var _PyExpat_XML_ExpatVersionInfo=Module[\"_PyExpat_XML_ExpatVersionInfo\"]=function(){return(_PyExpat_XML_ExpatVersionInfo=Module[\"_PyExpat_XML_ExpatVersionInfo\"]=Module[\"asm\"][\"PyExpat_XML_ExpatVersionInfo\"]).apply(null,arguments)};var _PyExpat_XML_GetFeatureList=Module[\"_PyExpat_XML_GetFeatureList\"]=function(){return(_PyExpat_XML_GetFeatureList=Module[\"_PyExpat_XML_GetFeatureList\"]=Module[\"asm\"][\"PyExpat_XML_GetFeatureList\"]).apply(null,arguments)};var _PyExpat_XmlSizeOfUnknownEncoding=Module[\"_PyExpat_XmlSizeOfUnknownEncoding\"]=function(){return(_PyExpat_XmlSizeOfUnknownEncoding=Module[\"_PyExpat_XmlSizeOfUnknownEncoding\"]=Module[\"asm\"][\"PyExpat_XmlSizeOfUnknownEncoding\"]).apply(null,arguments)};var _PyExpat_XmlInitUnknownEncoding=Module[\"_PyExpat_XmlInitUnknownEncoding\"]=function(){return(_PyExpat_XmlInitUnknownEncoding=Module[\"_PyExpat_XmlInitUnknownEncoding\"]=Module[\"asm\"][\"PyExpat_XmlInitUnknownEncoding\"]).apply(null,arguments)};var _PyExpat_XmlInitUnknownEncodingNS=Module[\"_PyExpat_XmlInitUnknownEncodingNS\"]=function(){return(_PyExpat_XmlInitUnknownEncodingNS=Module[\"_PyExpat_XmlInitUnknownEncodingNS\"]=Module[\"asm\"][\"PyExpat_XmlInitUnknownEncodingNS\"]).apply(null,arguments)};var _PyExpat_XmlParseXmlDecl=Module[\"_PyExpat_XmlParseXmlDecl\"]=function(){return(_PyExpat_XmlParseXmlDecl=Module[\"_PyExpat_XmlParseXmlDecl\"]=Module[\"asm\"][\"PyExpat_XmlParseXmlDecl\"]).apply(null,arguments)};var _PyExpat_XmlParseXmlDeclNS=Module[\"_PyExpat_XmlParseXmlDeclNS\"]=function(){return(_PyExpat_XmlParseXmlDeclNS=Module[\"_PyExpat_XmlParseXmlDeclNS\"]=Module[\"asm\"][\"PyExpat_XmlParseXmlDeclNS\"]).apply(null,arguments)};var _PyExpat_XmlUtf8Encode=Module[\"_PyExpat_XmlUtf8Encode\"]=function(){return(_PyExpat_XmlUtf8Encode=Module[\"_PyExpat_XmlUtf8Encode\"]=Module[\"asm\"][\"PyExpat_XmlUtf8Encode\"]).apply(null,arguments)};var __INTERNAL_trim_to_complete_utf8_characters=Module[\"__INTERNAL_trim_to_complete_utf8_characters\"]=function(){return(__INTERNAL_trim_to_complete_utf8_characters=Module[\"__INTERNAL_trim_to_complete_utf8_characters\"]=Module[\"asm\"][\"_INTERNAL_trim_to_complete_utf8_characters\"]).apply(null,arguments)};var _PyExpat_XmlUtf16Encode=Module[\"_PyExpat_XmlUtf16Encode\"]=function(){return(_PyExpat_XmlUtf16Encode=Module[\"_PyExpat_XmlUtf16Encode\"]=Module[\"asm\"][\"PyExpat_XmlUtf16Encode\"]).apply(null,arguments)};var _PyExpat_XmlGetUtf16InternalEncoding=Module[\"_PyExpat_XmlGetUtf16InternalEncoding\"]=function(){return(_PyExpat_XmlGetUtf16InternalEncoding=Module[\"_PyExpat_XmlGetUtf16InternalEncoding\"]=Module[\"asm\"][\"PyExpat_XmlGetUtf16InternalEncoding\"]).apply(null,arguments)};var _PyExpat_XmlGetUtf16InternalEncodingNS=Module[\"_PyExpat_XmlGetUtf16InternalEncodingNS\"]=function(){return(_PyExpat_XmlGetUtf16InternalEncodingNS=Module[\"_PyExpat_XmlGetUtf16InternalEncodingNS\"]=Module[\"asm\"][\"PyExpat_XmlGetUtf16InternalEncodingNS\"]).apply(null,arguments)};var __PySHA3_Keccak_HashInitialize=Module[\"__PySHA3_Keccak_HashInitialize\"]=function(){return(__PySHA3_Keccak_HashInitialize=Module[\"__PySHA3_Keccak_HashInitialize\"]=Module[\"asm\"][\"_PySHA3_Keccak_HashInitialize\"]).apply(null,arguments)};var __PySHA3_KeccakWidth1600_SpongeInitialize=Module[\"__PySHA3_KeccakWidth1600_SpongeInitialize\"]=function(){return(__PySHA3_KeccakWidth1600_SpongeInitialize=Module[\"__PySHA3_KeccakWidth1600_SpongeInitialize\"]=Module[\"asm\"][\"_PySHA3_KeccakWidth1600_SpongeInitialize\"]).apply(null,arguments)};var __PySHA3_Keccak_HashUpdate=Module[\"__PySHA3_Keccak_HashUpdate\"]=function(){return(__PySHA3_Keccak_HashUpdate=Module[\"__PySHA3_Keccak_HashUpdate\"]=Module[\"asm\"][\"_PySHA3_Keccak_HashUpdate\"]).apply(null,arguments)};var __PySHA3_KeccakWidth1600_SpongeAbsorb=Module[\"__PySHA3_KeccakWidth1600_SpongeAbsorb\"]=function(){return(__PySHA3_KeccakWidth1600_SpongeAbsorb=Module[\"__PySHA3_KeccakWidth1600_SpongeAbsorb\"]=Module[\"asm\"][\"_PySHA3_KeccakWidth1600_SpongeAbsorb\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_AddBytes=Module[\"__PySHA3_KeccakP1600_AddBytes\"]=function(){return(__PySHA3_KeccakP1600_AddBytes=Module[\"__PySHA3_KeccakP1600_AddBytes\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_AddBytes\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_Permute_Nrounds=Module[\"__PySHA3_KeccakP1600_Permute_Nrounds\"]=function(){return(__PySHA3_KeccakP1600_Permute_Nrounds=Module[\"__PySHA3_KeccakP1600_Permute_Nrounds\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_Permute_Nrounds\"]).apply(null,arguments)};var __PySHA3_Keccak_HashFinal=Module[\"__PySHA3_Keccak_HashFinal\"]=function(){return(__PySHA3_Keccak_HashFinal=Module[\"__PySHA3_Keccak_HashFinal\"]=Module[\"asm\"][\"_PySHA3_Keccak_HashFinal\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_AddByte=Module[\"__PySHA3_KeccakP1600_AddByte\"]=function(){return(__PySHA3_KeccakP1600_AddByte=Module[\"__PySHA3_KeccakP1600_AddByte\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_AddByte\"]).apply(null,arguments)};var __PySHA3_KeccakWidth1600_SpongeSqueeze=Module[\"__PySHA3_KeccakWidth1600_SpongeSqueeze\"]=function(){return(__PySHA3_KeccakWidth1600_SpongeSqueeze=Module[\"__PySHA3_KeccakWidth1600_SpongeSqueeze\"]=Module[\"asm\"][\"_PySHA3_KeccakWidth1600_SpongeSqueeze\"]).apply(null,arguments)};var __PySHA3_KeccakWidth1600_SpongeAbsorbLastFewBits=Module[\"__PySHA3_KeccakWidth1600_SpongeAbsorbLastFewBits\"]=function(){return(__PySHA3_KeccakWidth1600_SpongeAbsorbLastFewBits=Module[\"__PySHA3_KeccakWidth1600_SpongeAbsorbLastFewBits\"]=Module[\"asm\"][\"_PySHA3_KeccakWidth1600_SpongeAbsorbLastFewBits\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_ExtractLanes=Module[\"__PySHA3_KeccakP1600_ExtractLanes\"]=function(){return(__PySHA3_KeccakP1600_ExtractLanes=Module[\"__PySHA3_KeccakP1600_ExtractLanes\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_ExtractLanes\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_ExtractBytes=Module[\"__PySHA3_KeccakP1600_ExtractBytes\"]=function(){return(__PySHA3_KeccakP1600_ExtractBytes=Module[\"__PySHA3_KeccakP1600_ExtractBytes\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_ExtractBytes\"]).apply(null,arguments)};var __PySHA3_Keccak_HashSqueeze=Module[\"__PySHA3_Keccak_HashSqueeze\"]=function(){return(__PySHA3_Keccak_HashSqueeze=Module[\"__PySHA3_Keccak_HashSqueeze\"]=Module[\"asm\"][\"_PySHA3_Keccak_HashSqueeze\"]).apply(null,arguments)};var __PySHA3_KeccakWidth1600_Sponge=Module[\"__PySHA3_KeccakWidth1600_Sponge\"]=function(){return(__PySHA3_KeccakWidth1600_Sponge=Module[\"__PySHA3_KeccakWidth1600_Sponge\"]=Module[\"asm\"][\"_PySHA3_KeccakWidth1600_Sponge\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_Initialize=Module[\"__PySHA3_KeccakP1600_Initialize\"]=function(){return(__PySHA3_KeccakP1600_Initialize=Module[\"__PySHA3_KeccakP1600_Initialize\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_Initialize\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_AddLanes=Module[\"__PySHA3_KeccakP1600_AddLanes\"]=function(){return(__PySHA3_KeccakP1600_AddLanes=Module[\"__PySHA3_KeccakP1600_AddLanes\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_AddLanes\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_Permute_24rounds=Module[\"__PySHA3_KeccakP1600_Permute_24rounds\"]=function(){return(__PySHA3_KeccakP1600_Permute_24rounds=Module[\"__PySHA3_KeccakP1600_Permute_24rounds\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_Permute_24rounds\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_SetBytesInLaneToZero=Module[\"__PySHA3_KeccakP1600_SetBytesInLaneToZero\"]=function(){return(__PySHA3_KeccakP1600_SetBytesInLaneToZero=Module[\"__PySHA3_KeccakP1600_SetBytesInLaneToZero\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_SetBytesInLaneToZero\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_AddBytesInLane=Module[\"__PySHA3_KeccakP1600_AddBytesInLane\"]=function(){return(__PySHA3_KeccakP1600_AddBytesInLane=Module[\"__PySHA3_KeccakP1600_AddBytesInLane\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_AddBytesInLane\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_OverwriteBytesInLane=Module[\"__PySHA3_KeccakP1600_OverwriteBytesInLane\"]=function(){return(__PySHA3_KeccakP1600_OverwriteBytesInLane=Module[\"__PySHA3_KeccakP1600_OverwriteBytesInLane\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_OverwriteBytesInLane\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_OverwriteLanes=Module[\"__PySHA3_KeccakP1600_OverwriteLanes\"]=function(){return(__PySHA3_KeccakP1600_OverwriteLanes=Module[\"__PySHA3_KeccakP1600_OverwriteLanes\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_OverwriteLanes\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_OverwriteBytes=Module[\"__PySHA3_KeccakP1600_OverwriteBytes\"]=function(){return(__PySHA3_KeccakP1600_OverwriteBytes=Module[\"__PySHA3_KeccakP1600_OverwriteBytes\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_OverwriteBytes\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_OverwriteWithZeroes=Module[\"__PySHA3_KeccakP1600_OverwriteWithZeroes\"]=function(){return(__PySHA3_KeccakP1600_OverwriteWithZeroes=Module[\"__PySHA3_KeccakP1600_OverwriteWithZeroes\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_OverwriteWithZeroes\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_ExtractBytesInLane=Module[\"__PySHA3_KeccakP1600_ExtractBytesInLane\"]=function(){return(__PySHA3_KeccakP1600_ExtractBytesInLane=Module[\"__PySHA3_KeccakP1600_ExtractBytesInLane\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_ExtractBytesInLane\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_ExtractAndAddBytesInLane=Module[\"__PySHA3_KeccakP1600_ExtractAndAddBytesInLane\"]=function(){return(__PySHA3_KeccakP1600_ExtractAndAddBytesInLane=Module[\"__PySHA3_KeccakP1600_ExtractAndAddBytesInLane\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_ExtractAndAddBytesInLane\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_ExtractAndAddLanes=Module[\"__PySHA3_KeccakP1600_ExtractAndAddLanes\"]=function(){return(__PySHA3_KeccakP1600_ExtractAndAddLanes=Module[\"__PySHA3_KeccakP1600_ExtractAndAddLanes\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_ExtractAndAddLanes\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_ExtractAndAddBytes=Module[\"__PySHA3_KeccakP1600_ExtractAndAddBytes\"]=function(){return(__PySHA3_KeccakP1600_ExtractAndAddBytes=Module[\"__PySHA3_KeccakP1600_ExtractAndAddBytes\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_ExtractAndAddBytes\"]).apply(null,arguments)};var __PySHA3_KeccakP1600_Permute_12rounds=Module[\"__PySHA3_KeccakP1600_Permute_12rounds\"]=function(){return(__PySHA3_KeccakP1600_Permute_12rounds=Module[\"__PySHA3_KeccakP1600_Permute_12rounds\"]=Module[\"asm\"][\"_PySHA3_KeccakP1600_Permute_12rounds\"]).apply(null,arguments)};var _PyBlake2_blake2b_init_param=Module[\"_PyBlake2_blake2b_init_param\"]=function(){return(_PyBlake2_blake2b_init_param=Module[\"_PyBlake2_blake2b_init_param\"]=Module[\"asm\"][\"PyBlake2_blake2b_init_param\"]).apply(null,arguments)};var _PyBlake2_blake2b_init=Module[\"_PyBlake2_blake2b_init\"]=function(){return(_PyBlake2_blake2b_init=Module[\"_PyBlake2_blake2b_init\"]=Module[\"asm\"][\"PyBlake2_blake2b_init\"]).apply(null,arguments)};var _PyBlake2_blake2b_init_key=Module[\"_PyBlake2_blake2b_init_key\"]=function(){return(_PyBlake2_blake2b_init_key=Module[\"_PyBlake2_blake2b_init_key\"]=Module[\"asm\"][\"PyBlake2_blake2b_init_key\"]).apply(null,arguments)};var _PyBlake2_blake2b_update=Module[\"_PyBlake2_blake2b_update\"]=function(){return(_PyBlake2_blake2b_update=Module[\"_PyBlake2_blake2b_update\"]=Module[\"asm\"][\"PyBlake2_blake2b_update\"]).apply(null,arguments)};var _PyBlake2_blake2b_final=Module[\"_PyBlake2_blake2b_final\"]=function(){return(_PyBlake2_blake2b_final=Module[\"_PyBlake2_blake2b_final\"]=Module[\"asm\"][\"PyBlake2_blake2b_final\"]).apply(null,arguments)};var _PyBlake2_blake2b=Module[\"_PyBlake2_blake2b\"]=function(){return(_PyBlake2_blake2b=Module[\"_PyBlake2_blake2b\"]=Module[\"asm\"][\"PyBlake2_blake2b\"]).apply(null,arguments)};var _PyBlake2_blake2s_init_param=Module[\"_PyBlake2_blake2s_init_param\"]=function(){return(_PyBlake2_blake2s_init_param=Module[\"_PyBlake2_blake2s_init_param\"]=Module[\"asm\"][\"PyBlake2_blake2s_init_param\"]).apply(null,arguments)};var _PyBlake2_blake2s_init=Module[\"_PyBlake2_blake2s_init\"]=function(){return(_PyBlake2_blake2s_init=Module[\"_PyBlake2_blake2s_init\"]=Module[\"asm\"][\"PyBlake2_blake2s_init\"]).apply(null,arguments)};var _PyBlake2_blake2s_init_key=Module[\"_PyBlake2_blake2s_init_key\"]=function(){return(_PyBlake2_blake2s_init_key=Module[\"_PyBlake2_blake2s_init_key\"]=Module[\"asm\"][\"PyBlake2_blake2s_init_key\"]).apply(null,arguments)};var _PyBlake2_blake2s_update=Module[\"_PyBlake2_blake2s_update\"]=function(){return(_PyBlake2_blake2s_update=Module[\"_PyBlake2_blake2s_update\"]=Module[\"asm\"][\"PyBlake2_blake2s_update\"]).apply(null,arguments)};var _PyBlake2_blake2s_final=Module[\"_PyBlake2_blake2s_final\"]=function(){return(_PyBlake2_blake2s_final=Module[\"_PyBlake2_blake2s_final\"]=Module[\"asm\"][\"PyBlake2_blake2s_final\"]).apply(null,arguments)};var _PyBlake2_blake2s=Module[\"_PyBlake2_blake2s\"]=function(){return(_PyBlake2_blake2s=Module[\"_PyBlake2_blake2s\"]=Module[\"asm\"][\"PyBlake2_blake2s\"]).apply(null,arguments)};var _pysqlite_new_node=Module[\"_pysqlite_new_node\"]=function(){return(_pysqlite_new_node=Module[\"_pysqlite_new_node\"]=Module[\"asm\"][\"pysqlite_new_node\"]).apply(null,arguments)};var _pysqlite_node_dealloc=Module[\"_pysqlite_node_dealloc\"]=function(){return(_pysqlite_node_dealloc=Module[\"_pysqlite_node_dealloc\"]=Module[\"asm\"][\"pysqlite_node_dealloc\"]).apply(null,arguments)};var _pysqlite_cache_init=Module[\"_pysqlite_cache_init\"]=function(){return(_pysqlite_cache_init=Module[\"_pysqlite_cache_init\"]=Module[\"asm\"][\"pysqlite_cache_init\"]).apply(null,arguments)};var _pysqlite_cache_dealloc=Module[\"_pysqlite_cache_dealloc\"]=function(){return(_pysqlite_cache_dealloc=Module[\"_pysqlite_cache_dealloc\"]=Module[\"asm\"][\"pysqlite_cache_dealloc\"]).apply(null,arguments)};var _pysqlite_cache_get=Module[\"_pysqlite_cache_get\"]=function(){return(_pysqlite_cache_get=Module[\"_pysqlite_cache_get\"]=Module[\"asm\"][\"pysqlite_cache_get\"]).apply(null,arguments)};var _pysqlite_cache_display=Module[\"_pysqlite_cache_display\"]=function(){return(_pysqlite_cache_display=Module[\"_pysqlite_cache_display\"]=Module[\"asm\"][\"pysqlite_cache_display\"]).apply(null,arguments)};var _pysqlite_cache_setup_types=Module[\"_pysqlite_cache_setup_types\"]=function(){return(_pysqlite_cache_setup_types=Module[\"_pysqlite_cache_setup_types\"]=Module[\"asm\"][\"pysqlite_cache_setup_types\"]).apply(null,arguments)};var _pysqlite_connection_init=Module[\"_pysqlite_connection_init\"]=function(){return(_pysqlite_connection_init=Module[\"_pysqlite_connection_init\"]=Module[\"asm\"][\"pysqlite_connection_init\"]).apply(null,arguments)};var _sqlite3_open_v2=Module[\"_sqlite3_open_v2\"]=function(){return(_sqlite3_open_v2=Module[\"_sqlite3_open_v2\"]=Module[\"asm\"][\"sqlite3_open_v2\"]).apply(null,arguments)};var __pysqlite_seterror=Module[\"__pysqlite_seterror\"]=function(){return(__pysqlite_seterror=Module[\"__pysqlite_seterror\"]=Module[\"asm\"][\"_pysqlite_seterror\"]).apply(null,arguments)};var _sqlite3_busy_timeout=Module[\"_sqlite3_busy_timeout\"]=function(){return(_sqlite3_busy_timeout=Module[\"_sqlite3_busy_timeout\"]=Module[\"asm\"][\"sqlite3_busy_timeout\"]).apply(null,arguments)};var _sqlite3_libversion_number=Module[\"_sqlite3_libversion_number\"]=function(){return(_sqlite3_libversion_number=Module[\"_sqlite3_libversion_number\"]=Module[\"asm\"][\"sqlite3_libversion_number\"]).apply(null,arguments)};var _pysqlite_connection_commit=Module[\"_pysqlite_connection_commit\"]=function(){return(_pysqlite_connection_commit=Module[\"_pysqlite_connection_commit\"]=Module[\"asm\"][\"pysqlite_connection_commit\"]).apply(null,arguments)};var _pysqlite_do_all_statements=Module[\"_pysqlite_do_all_statements\"]=function(){return(_pysqlite_do_all_statements=Module[\"_pysqlite_do_all_statements\"]=Module[\"asm\"][\"pysqlite_do_all_statements\"]).apply(null,arguments)};var _pysqlite_statement_reset=Module[\"_pysqlite_statement_reset\"]=function(){return(_pysqlite_statement_reset=Module[\"_pysqlite_statement_reset\"]=Module[\"asm\"][\"pysqlite_statement_reset\"]).apply(null,arguments)};var _pysqlite_statement_finalize=Module[\"_pysqlite_statement_finalize\"]=function(){return(_pysqlite_statement_finalize=Module[\"_pysqlite_statement_finalize\"]=Module[\"asm\"][\"pysqlite_statement_finalize\"]).apply(null,arguments)};var _pysqlite_connection_dealloc=Module[\"_pysqlite_connection_dealloc\"]=function(){return(_pysqlite_connection_dealloc=Module[\"_pysqlite_connection_dealloc\"]=Module[\"asm\"][\"pysqlite_connection_dealloc\"]).apply(null,arguments)};var _sqlite3_close_v2=Module[\"_sqlite3_close_v2\"]=function(){return(_sqlite3_close_v2=Module[\"_sqlite3_close_v2\"]=Module[\"asm\"][\"sqlite3_close_v2\"]).apply(null,arguments)};var _pysqlite_connection_register_cursor=Module[\"_pysqlite_connection_register_cursor\"]=function(){return(_pysqlite_connection_register_cursor=Module[\"_pysqlite_connection_register_cursor\"]=Module[\"asm\"][\"pysqlite_connection_register_cursor\"]).apply(null,arguments)};var _pysqlite_connection_cursor=Module[\"_pysqlite_connection_cursor\"]=function(){return(_pysqlite_connection_cursor=Module[\"_pysqlite_connection_cursor\"]=Module[\"asm\"][\"pysqlite_connection_cursor\"]).apply(null,arguments)};var _pysqlite_check_thread=Module[\"_pysqlite_check_thread\"]=function(){return(_pysqlite_check_thread=Module[\"_pysqlite_check_thread\"]=Module[\"asm\"][\"pysqlite_check_thread\"]).apply(null,arguments)};var _pysqlite_check_connection=Module[\"_pysqlite_check_connection\"]=function(){return(_pysqlite_check_connection=Module[\"_pysqlite_check_connection\"]=Module[\"asm\"][\"pysqlite_check_connection\"]).apply(null,arguments)};var _pysqlite_connection_close=Module[\"_pysqlite_connection_close\"]=function(){return(_pysqlite_connection_close=Module[\"_pysqlite_connection_close\"]=Module[\"asm\"][\"pysqlite_connection_close\"]).apply(null,arguments)};var __pysqlite_connection_begin=Module[\"__pysqlite_connection_begin\"]=function(){return(__pysqlite_connection_begin=Module[\"__pysqlite_connection_begin\"]=Module[\"asm\"][\"_pysqlite_connection_begin\"]).apply(null,arguments)};var _sqlite3_prepare_v2=Module[\"_sqlite3_prepare_v2\"]=function(){return(_sqlite3_prepare_v2=Module[\"_sqlite3_prepare_v2\"]=Module[\"asm\"][\"sqlite3_prepare_v2\"]).apply(null,arguments)};var _pysqlite_step=Module[\"_pysqlite_step\"]=function(){return(_pysqlite_step=Module[\"_pysqlite_step\"]=Module[\"asm\"][\"pysqlite_step\"]).apply(null,arguments)};var _sqlite3_finalize=Module[\"_sqlite3_finalize\"]=function(){return(_sqlite3_finalize=Module[\"_sqlite3_finalize\"]=Module[\"asm\"][\"sqlite3_finalize\"]).apply(null,arguments)};var _sqlite3_get_autocommit=Module[\"_sqlite3_get_autocommit\"]=function(){return(_sqlite3_get_autocommit=Module[\"_sqlite3_get_autocommit\"]=Module[\"asm\"][\"sqlite3_get_autocommit\"]).apply(null,arguments)};var _pysqlite_connection_rollback=Module[\"_pysqlite_connection_rollback\"]=function(){return(_pysqlite_connection_rollback=Module[\"_pysqlite_connection_rollback\"]=Module[\"asm\"][\"pysqlite_connection_rollback\"]).apply(null,arguments)};var __pysqlite_build_py_params=Module[\"__pysqlite_build_py_params\"]=function(){return(__pysqlite_build_py_params=Module[\"__pysqlite_build_py_params\"]=Module[\"asm\"][\"_pysqlite_build_py_params\"]).apply(null,arguments)};var _sqlite3_value_type=Module[\"_sqlite3_value_type\"]=function(){return(_sqlite3_value_type=Module[\"_sqlite3_value_type\"]=Module[\"asm\"][\"sqlite3_value_type\"]).apply(null,arguments)};var _sqlite3_value_double=Module[\"_sqlite3_value_double\"]=function(){return(_sqlite3_value_double=Module[\"_sqlite3_value_double\"]=Module[\"asm\"][\"sqlite3_value_double\"]).apply(null,arguments)};var _sqlite3_value_text=Module[\"_sqlite3_value_text\"]=function(){return(_sqlite3_value_text=Module[\"_sqlite3_value_text\"]=Module[\"asm\"][\"sqlite3_value_text\"]).apply(null,arguments)};var _sqlite3_value_bytes=Module[\"_sqlite3_value_bytes\"]=function(){return(_sqlite3_value_bytes=Module[\"_sqlite3_value_bytes\"]=Module[\"asm\"][\"sqlite3_value_bytes\"]).apply(null,arguments)};var _sqlite3_value_blob=Module[\"_sqlite3_value_blob\"]=function(){return(_sqlite3_value_blob=Module[\"_sqlite3_value_blob\"]=Module[\"asm\"][\"sqlite3_value_blob\"]).apply(null,arguments)};var _sqlite3_value_int64=Module[\"_sqlite3_value_int64\"]=function(){return(_sqlite3_value_int64=Module[\"_sqlite3_value_int64\"]=Module[\"asm\"][\"sqlite3_value_int64\"]).apply(null,arguments)};var __pysqlite_func_callback=Module[\"__pysqlite_func_callback\"]=function(){return(__pysqlite_func_callback=Module[\"__pysqlite_func_callback\"]=Module[\"asm\"][\"_pysqlite_func_callback\"]).apply(null,arguments)};var _sqlite3_user_data=Module[\"_sqlite3_user_data\"]=function(){return(_sqlite3_user_data=Module[\"_sqlite3_user_data\"]=Module[\"asm\"][\"sqlite3_user_data\"]).apply(null,arguments)};var _sqlite3_result_error=Module[\"_sqlite3_result_error\"]=function(){return(_sqlite3_result_error=Module[\"_sqlite3_result_error\"]=Module[\"asm\"][\"sqlite3_result_error\"]).apply(null,arguments)};var _sqlite3_result_null=Module[\"_sqlite3_result_null\"]=function(){return(_sqlite3_result_null=Module[\"_sqlite3_result_null\"]=Module[\"asm\"][\"sqlite3_result_null\"]).apply(null,arguments)};var __pysqlite_long_as_int64=Module[\"__pysqlite_long_as_int64\"]=function(){return(__pysqlite_long_as_int64=Module[\"__pysqlite_long_as_int64\"]=Module[\"asm\"][\"_pysqlite_long_as_int64\"]).apply(null,arguments)};var _sqlite3_result_int64=Module[\"_sqlite3_result_int64\"]=function(){return(_sqlite3_result_int64=Module[\"_sqlite3_result_int64\"]=Module[\"asm\"][\"sqlite3_result_int64\"]).apply(null,arguments)};var _sqlite3_result_double=Module[\"_sqlite3_result_double\"]=function(){return(_sqlite3_result_double=Module[\"_sqlite3_result_double\"]=Module[\"asm\"][\"sqlite3_result_double\"]).apply(null,arguments)};var _sqlite3_result_text=Module[\"_sqlite3_result_text\"]=function(){return(_sqlite3_result_text=Module[\"_sqlite3_result_text\"]=Module[\"asm\"][\"sqlite3_result_text\"]).apply(null,arguments)};var _sqlite3_result_blob=Module[\"_sqlite3_result_blob\"]=function(){return(_sqlite3_result_blob=Module[\"_sqlite3_result_blob\"]=Module[\"asm\"][\"sqlite3_result_blob\"]).apply(null,arguments)};var __pysqlite_final_callback=Module[\"__pysqlite_final_callback\"]=function(){return(__pysqlite_final_callback=Module[\"__pysqlite_final_callback\"]=Module[\"asm\"][\"_pysqlite_final_callback\"]).apply(null,arguments)};var _sqlite3_aggregate_context=Module[\"_sqlite3_aggregate_context\"]=function(){return(_sqlite3_aggregate_context=Module[\"_sqlite3_aggregate_context\"]=Module[\"asm\"][\"sqlite3_aggregate_context\"]).apply(null,arguments)};var _pysqlite_connection_create_function=Module[\"_pysqlite_connection_create_function\"]=function(){return(_pysqlite_connection_create_function=Module[\"_pysqlite_connection_create_function\"]=Module[\"asm\"][\"pysqlite_connection_create_function\"]).apply(null,arguments)};var _sqlite3_create_function_v2=Module[\"_sqlite3_create_function_v2\"]=function(){return(_sqlite3_create_function_v2=Module[\"_sqlite3_create_function_v2\"]=Module[\"asm\"][\"sqlite3_create_function_v2\"]).apply(null,arguments)};var _pysqlite_connection_create_aggregate=Module[\"_pysqlite_connection_create_aggregate\"]=function(){return(_pysqlite_connection_create_aggregate=Module[\"_pysqlite_connection_create_aggregate\"]=Module[\"asm\"][\"pysqlite_connection_create_aggregate\"]).apply(null,arguments)};var _pysqlite_connection_call=Module[\"_pysqlite_connection_call\"]=function(){return(_pysqlite_connection_call=Module[\"_pysqlite_connection_call\"]=Module[\"asm\"][\"pysqlite_connection_call\"]).apply(null,arguments)};var _pysqlite_statement_create=Module[\"_pysqlite_statement_create\"]=function(){return(_pysqlite_statement_create=Module[\"_pysqlite_statement_create\"]=Module[\"asm\"][\"pysqlite_statement_create\"]).apply(null,arguments)};var _pysqlite_connection_execute=Module[\"_pysqlite_connection_execute\"]=function(){return(_pysqlite_connection_execute=Module[\"_pysqlite_connection_execute\"]=Module[\"asm\"][\"pysqlite_connection_execute\"]).apply(null,arguments)};var _pysqlite_connection_executemany=Module[\"_pysqlite_connection_executemany\"]=function(){return(_pysqlite_connection_executemany=Module[\"_pysqlite_connection_executemany\"]=Module[\"asm\"][\"pysqlite_connection_executemany\"]).apply(null,arguments)};var _pysqlite_connection_executescript=Module[\"_pysqlite_connection_executescript\"]=function(){return(_pysqlite_connection_executescript=Module[\"_pysqlite_connection_executescript\"]=Module[\"asm\"][\"pysqlite_connection_executescript\"]).apply(null,arguments)};var _pysqlite_connection_setup_types=Module[\"_pysqlite_connection_setup_types\"]=function(){return(_pysqlite_connection_setup_types=Module[\"_pysqlite_connection_setup_types\"]=Module[\"asm\"][\"pysqlite_connection_setup_types\"]).apply(null,arguments)};var _sqlite3_set_authorizer=Module[\"_sqlite3_set_authorizer\"]=function(){return(_sqlite3_set_authorizer=Module[\"_sqlite3_set_authorizer\"]=Module[\"asm\"][\"sqlite3_set_authorizer\"]).apply(null,arguments)};var _sqlite3_enable_load_extension=Module[\"_sqlite3_enable_load_extension\"]=function(){return(_sqlite3_enable_load_extension=Module[\"_sqlite3_enable_load_extension\"]=Module[\"asm\"][\"sqlite3_enable_load_extension\"]).apply(null,arguments)};var _sqlite3_load_extension=Module[\"_sqlite3_load_extension\"]=function(){return(_sqlite3_load_extension=Module[\"_sqlite3_load_extension\"]=Module[\"asm\"][\"sqlite3_load_extension\"]).apply(null,arguments)};var _sqlite3_progress_handler=Module[\"_sqlite3_progress_handler\"]=function(){return(_sqlite3_progress_handler=Module[\"_sqlite3_progress_handler\"]=Module[\"asm\"][\"sqlite3_progress_handler\"]).apply(null,arguments)};var _sqlite3_trace=Module[\"_sqlite3_trace\"]=function(){return(_sqlite3_trace=Module[\"_sqlite3_trace\"]=Module[\"asm\"][\"sqlite3_trace\"]).apply(null,arguments)};var _sqlite3_create_collation=Module[\"_sqlite3_create_collation\"]=function(){return(_sqlite3_create_collation=Module[\"_sqlite3_create_collation\"]=Module[\"asm\"][\"sqlite3_create_collation\"]).apply(null,arguments)};var _sqlite3_interrupt=Module[\"_sqlite3_interrupt\"]=function(){return(_sqlite3_interrupt=Module[\"_sqlite3_interrupt\"]=Module[\"asm\"][\"sqlite3_interrupt\"]).apply(null,arguments)};var _sqlite3_backup_init=Module[\"_sqlite3_backup_init\"]=function(){return(_sqlite3_backup_init=Module[\"_sqlite3_backup_init\"]=Module[\"asm\"][\"sqlite3_backup_init\"]).apply(null,arguments)};var _sqlite3_backup_step=Module[\"_sqlite3_backup_step\"]=function(){return(_sqlite3_backup_step=Module[\"_sqlite3_backup_step\"]=Module[\"asm\"][\"sqlite3_backup_step\"]).apply(null,arguments)};var _sqlite3_backup_remaining=Module[\"_sqlite3_backup_remaining\"]=function(){return(_sqlite3_backup_remaining=Module[\"_sqlite3_backup_remaining\"]=Module[\"asm\"][\"sqlite3_backup_remaining\"]).apply(null,arguments)};var _sqlite3_backup_pagecount=Module[\"_sqlite3_backup_pagecount\"]=function(){return(_sqlite3_backup_pagecount=Module[\"_sqlite3_backup_pagecount\"]=Module[\"asm\"][\"sqlite3_backup_pagecount\"]).apply(null,arguments)};var _sqlite3_sleep=Module[\"_sqlite3_sleep\"]=function(){return(_sqlite3_sleep=Module[\"_sqlite3_sleep\"]=Module[\"asm\"][\"sqlite3_sleep\"]).apply(null,arguments)};var _sqlite3_backup_finish=Module[\"_sqlite3_backup_finish\"]=function(){return(_sqlite3_backup_finish=Module[\"_sqlite3_backup_finish\"]=Module[\"asm\"][\"sqlite3_backup_finish\"]).apply(null,arguments)};var _sqlite3_errstr=Module[\"_sqlite3_errstr\"]=function(){return(_sqlite3_errstr=Module[\"_sqlite3_errstr\"]=Module[\"asm\"][\"sqlite3_errstr\"]).apply(null,arguments)};var _sqlite3_total_changes=Module[\"_sqlite3_total_changes\"]=function(){return(_sqlite3_total_changes=Module[\"_sqlite3_total_changes\"]=Module[\"asm\"][\"sqlite3_total_changes\"]).apply(null,arguments)};var _pysqlite_cursor_execute=Module[\"_pysqlite_cursor_execute\"]=function(){return(_pysqlite_cursor_execute=Module[\"_pysqlite_cursor_execute\"]=Module[\"asm\"][\"pysqlite_cursor_execute\"]).apply(null,arguments)};var _pysqlite_statement_mark_dirty=Module[\"_pysqlite_statement_mark_dirty\"]=function(){return(_pysqlite_statement_mark_dirty=Module[\"_pysqlite_statement_mark_dirty\"]=Module[\"asm\"][\"pysqlite_statement_mark_dirty\"]).apply(null,arguments)};var _pysqlite_statement_bind_parameters=Module[\"_pysqlite_statement_bind_parameters\"]=function(){return(_pysqlite_statement_bind_parameters=Module[\"_pysqlite_statement_bind_parameters\"]=Module[\"asm\"][\"pysqlite_statement_bind_parameters\"]).apply(null,arguments)};var _sqlite3_column_count=Module[\"_sqlite3_column_count\"]=function(){return(_sqlite3_column_count=Module[\"_sqlite3_column_count\"]=Module[\"asm\"][\"sqlite3_column_count\"]).apply(null,arguments)};var _sqlite3_column_name=Module[\"_sqlite3_column_name\"]=function(){return(_sqlite3_column_name=Module[\"_sqlite3_column_name\"]=Module[\"asm\"][\"sqlite3_column_name\"]).apply(null,arguments)};var _sqlite3_column_decltype=Module[\"_sqlite3_column_decltype\"]=function(){return(_sqlite3_column_decltype=Module[\"_sqlite3_column_decltype\"]=Module[\"asm\"][\"sqlite3_column_decltype\"]).apply(null,arguments)};var _sqlite3_changes=Module[\"_sqlite3_changes\"]=function(){return(_sqlite3_changes=Module[\"_sqlite3_changes\"]=Module[\"asm\"][\"sqlite3_changes\"]).apply(null,arguments)};var _sqlite3_last_insert_rowid=Module[\"_sqlite3_last_insert_rowid\"]=function(){return(_sqlite3_last_insert_rowid=Module[\"_sqlite3_last_insert_rowid\"]=Module[\"asm\"][\"sqlite3_last_insert_rowid\"]).apply(null,arguments)};var _pysqlite_cursor_executemany=Module[\"_pysqlite_cursor_executemany\"]=function(){return(_pysqlite_cursor_executemany=Module[\"_pysqlite_cursor_executemany\"]=Module[\"asm\"][\"pysqlite_cursor_executemany\"]).apply(null,arguments)};var _pysqlite_cursor_iternext=Module[\"_pysqlite_cursor_iternext\"]=function(){return(_pysqlite_cursor_iternext=Module[\"_pysqlite_cursor_iternext\"]=Module[\"asm\"][\"pysqlite_cursor_iternext\"]).apply(null,arguments)};var _sqlite3_data_count=Module[\"_sqlite3_data_count\"]=function(){return(_sqlite3_data_count=Module[\"_sqlite3_data_count\"]=Module[\"asm\"][\"sqlite3_data_count\"]).apply(null,arguments)};var _sqlite3_column_bytes=Module[\"_sqlite3_column_bytes\"]=function(){return(_sqlite3_column_bytes=Module[\"_sqlite3_column_bytes\"]=Module[\"asm\"][\"sqlite3_column_bytes\"]).apply(null,arguments)};var _sqlite3_column_blob=Module[\"_sqlite3_column_blob\"]=function(){return(_sqlite3_column_blob=Module[\"_sqlite3_column_blob\"]=Module[\"asm\"][\"sqlite3_column_blob\"]).apply(null,arguments)};var _sqlite3_column_type=Module[\"_sqlite3_column_type\"]=function(){return(_sqlite3_column_type=Module[\"_sqlite3_column_type\"]=Module[\"asm\"][\"sqlite3_column_type\"]).apply(null,arguments)};var _sqlite3_column_int64=Module[\"_sqlite3_column_int64\"]=function(){return(_sqlite3_column_int64=Module[\"_sqlite3_column_int64\"]=Module[\"asm\"][\"sqlite3_column_int64\"]).apply(null,arguments)};var _sqlite3_column_double=Module[\"_sqlite3_column_double\"]=function(){return(_sqlite3_column_double=Module[\"_sqlite3_column_double\"]=Module[\"asm\"][\"sqlite3_column_double\"]).apply(null,arguments)};var _sqlite3_column_text=Module[\"_sqlite3_column_text\"]=function(){return(_sqlite3_column_text=Module[\"_sqlite3_column_text\"]=Module[\"asm\"][\"sqlite3_column_text\"]).apply(null,arguments)};var _pysqlite_cursor_fetchone=Module[\"_pysqlite_cursor_fetchone\"]=function(){return(_pysqlite_cursor_fetchone=Module[\"_pysqlite_cursor_fetchone\"]=Module[\"asm\"][\"pysqlite_cursor_fetchone\"]).apply(null,arguments)};var _pysqlite_cursor_fetchmany=Module[\"_pysqlite_cursor_fetchmany\"]=function(){return(_pysqlite_cursor_fetchmany=Module[\"_pysqlite_cursor_fetchmany\"]=Module[\"asm\"][\"pysqlite_cursor_fetchmany\"]).apply(null,arguments)};var _pysqlite_cursor_fetchall=Module[\"_pysqlite_cursor_fetchall\"]=function(){return(_pysqlite_cursor_fetchall=Module[\"_pysqlite_cursor_fetchall\"]=Module[\"asm\"][\"pysqlite_cursor_fetchall\"]).apply(null,arguments)};var _pysqlite_noop=Module[\"_pysqlite_noop\"]=function(){return(_pysqlite_noop=Module[\"_pysqlite_noop\"]=Module[\"asm\"][\"pysqlite_noop\"]).apply(null,arguments)};var _pysqlite_cursor_close=Module[\"_pysqlite_cursor_close\"]=function(){return(_pysqlite_cursor_close=Module[\"_pysqlite_cursor_close\"]=Module[\"asm\"][\"pysqlite_cursor_close\"]).apply(null,arguments)};var _pysqlite_cursor_setup_types=Module[\"_pysqlite_cursor_setup_types\"]=function(){return(_pysqlite_cursor_setup_types=Module[\"_pysqlite_cursor_setup_types\"]=Module[\"asm\"][\"pysqlite_cursor_setup_types\"]).apply(null,arguments)};var _pysqlite_microprotocols_init=Module[\"_pysqlite_microprotocols_init\"]=function(){return(_pysqlite_microprotocols_init=Module[\"_pysqlite_microprotocols_init\"]=Module[\"asm\"][\"pysqlite_microprotocols_init\"]).apply(null,arguments)};var _pysqlite_microprotocols_add=Module[\"_pysqlite_microprotocols_add\"]=function(){return(_pysqlite_microprotocols_add=Module[\"_pysqlite_microprotocols_add\"]=Module[\"asm\"][\"pysqlite_microprotocols_add\"]).apply(null,arguments)};var _pysqlite_microprotocols_adapt=Module[\"_pysqlite_microprotocols_adapt\"]=function(){return(_pysqlite_microprotocols_adapt=Module[\"_pysqlite_microprotocols_adapt\"]=Module[\"asm\"][\"pysqlite_microprotocols_adapt\"]).apply(null,arguments)};var _pysqlite_adapt=Module[\"_pysqlite_adapt\"]=function(){return(_pysqlite_adapt=Module[\"_pysqlite_adapt\"]=Module[\"asm\"][\"pysqlite_adapt\"]).apply(null,arguments)};var _pysqlite_row_setup_types=Module[\"_pysqlite_row_setup_types\"]=function(){return(_pysqlite_row_setup_types=Module[\"_pysqlite_row_setup_types\"]=Module[\"asm\"][\"pysqlite_row_setup_types\"]).apply(null,arguments)};var _pysqlite_statement_setup_types=Module[\"_pysqlite_statement_setup_types\"]=function(){return(_pysqlite_statement_setup_types=Module[\"_pysqlite_statement_setup_types\"]=Module[\"asm\"][\"pysqlite_statement_setup_types\"]).apply(null,arguments)};var _pysqlite_prepare_protocol_setup_types=Module[\"_pysqlite_prepare_protocol_setup_types\"]=function(){return(_pysqlite_prepare_protocol_setup_types=Module[\"_pysqlite_prepare_protocol_setup_types\"]=Module[\"asm\"][\"pysqlite_prepare_protocol_setup_types\"]).apply(null,arguments)};var _sqlite3_libversion=Module[\"_sqlite3_libversion\"]=function(){return(_sqlite3_libversion=Module[\"_sqlite3_libversion\"]=Module[\"asm\"][\"sqlite3_libversion\"]).apply(null,arguments)};var _sqlite3_complete=Module[\"_sqlite3_complete\"]=function(){return(_sqlite3_complete=Module[\"_sqlite3_complete\"]=Module[\"asm\"][\"sqlite3_complete\"]).apply(null,arguments)};var _sqlite3_enable_shared_cache=Module[\"_sqlite3_enable_shared_cache\"]=function(){return(_sqlite3_enable_shared_cache=Module[\"_sqlite3_enable_shared_cache\"]=Module[\"asm\"][\"sqlite3_enable_shared_cache\"]).apply(null,arguments)};var _pysqlite_prepare_protocol_init=Module[\"_pysqlite_prepare_protocol_init\"]=function(){return(_pysqlite_prepare_protocol_init=Module[\"_pysqlite_prepare_protocol_init\"]=Module[\"asm\"][\"pysqlite_prepare_protocol_init\"]).apply(null,arguments)};var _pysqlite_prepare_protocol_dealloc=Module[\"_pysqlite_prepare_protocol_dealloc\"]=function(){return(_pysqlite_prepare_protocol_dealloc=Module[\"_pysqlite_prepare_protocol_dealloc\"]=Module[\"asm\"][\"pysqlite_prepare_protocol_dealloc\"]).apply(null,arguments)};var _pysqlite_row_dealloc=Module[\"_pysqlite_row_dealloc\"]=function(){return(_pysqlite_row_dealloc=Module[\"_pysqlite_row_dealloc\"]=Module[\"asm\"][\"pysqlite_row_dealloc\"]).apply(null,arguments)};var _pysqlite_row_item=Module[\"_pysqlite_row_item\"]=function(){return(_pysqlite_row_item=Module[\"_pysqlite_row_item\"]=Module[\"asm\"][\"pysqlite_row_item\"]).apply(null,arguments)};var _pysqlite_row_subscript=Module[\"_pysqlite_row_subscript\"]=function(){return(_pysqlite_row_subscript=Module[\"_pysqlite_row_subscript\"]=Module[\"asm\"][\"pysqlite_row_subscript\"]).apply(null,arguments)};var _pysqlite_row_keys=Module[\"_pysqlite_row_keys\"]=function(){return(_pysqlite_row_keys=Module[\"_pysqlite_row_keys\"]=Module[\"asm\"][\"pysqlite_row_keys\"]).apply(null,arguments)};var _pysqlite_statement_bind_parameter=Module[\"_pysqlite_statement_bind_parameter\"]=function(){return(_pysqlite_statement_bind_parameter=Module[\"_pysqlite_statement_bind_parameter\"]=Module[\"asm\"][\"pysqlite_statement_bind_parameter\"]).apply(null,arguments)};var _sqlite3_bind_null=Module[\"_sqlite3_bind_null\"]=function(){return(_sqlite3_bind_null=Module[\"_sqlite3_bind_null\"]=Module[\"asm\"][\"sqlite3_bind_null\"]).apply(null,arguments)};var _sqlite3_bind_blob=Module[\"_sqlite3_bind_blob\"]=function(){return(_sqlite3_bind_blob=Module[\"_sqlite3_bind_blob\"]=Module[\"asm\"][\"sqlite3_bind_blob\"]).apply(null,arguments)};var _sqlite3_bind_int64=Module[\"_sqlite3_bind_int64\"]=function(){return(_sqlite3_bind_int64=Module[\"_sqlite3_bind_int64\"]=Module[\"asm\"][\"sqlite3_bind_int64\"]).apply(null,arguments)};var _sqlite3_bind_double=Module[\"_sqlite3_bind_double\"]=function(){return(_sqlite3_bind_double=Module[\"_sqlite3_bind_double\"]=Module[\"asm\"][\"sqlite3_bind_double\"]).apply(null,arguments)};var _sqlite3_bind_text=Module[\"_sqlite3_bind_text\"]=function(){return(_sqlite3_bind_text=Module[\"_sqlite3_bind_text\"]=Module[\"asm\"][\"sqlite3_bind_text\"]).apply(null,arguments)};var _sqlite3_bind_parameter_count=Module[\"_sqlite3_bind_parameter_count\"]=function(){return(_sqlite3_bind_parameter_count=Module[\"_sqlite3_bind_parameter_count\"]=Module[\"asm\"][\"sqlite3_bind_parameter_count\"]).apply(null,arguments)};var _sqlite3_bind_parameter_name=Module[\"_sqlite3_bind_parameter_name\"]=function(){return(_sqlite3_bind_parameter_name=Module[\"_sqlite3_bind_parameter_name\"]=Module[\"asm\"][\"sqlite3_bind_parameter_name\"]).apply(null,arguments)};var _sqlite3_reset=Module[\"_sqlite3_reset\"]=function(){return(_sqlite3_reset=Module[\"_sqlite3_reset\"]=Module[\"asm\"][\"sqlite3_reset\"]).apply(null,arguments)};var _pysqlite_statement_dealloc=Module[\"_pysqlite_statement_dealloc\"]=function(){return(_pysqlite_statement_dealloc=Module[\"_pysqlite_statement_dealloc\"]=Module[\"asm\"][\"pysqlite_statement_dealloc\"]).apply(null,arguments)};var _sqlite3_step=Module[\"_sqlite3_step\"]=function(){return(_sqlite3_step=Module[\"_sqlite3_step\"]=Module[\"asm\"][\"sqlite3_step\"]).apply(null,arguments)};var _sqlite3_errcode=Module[\"_sqlite3_errcode\"]=function(){return(_sqlite3_errcode=Module[\"_sqlite3_errcode\"]=Module[\"asm\"][\"sqlite3_errcode\"]).apply(null,arguments)};var _sqlite3_errmsg=Module[\"_sqlite3_errmsg\"]=function(){return(_sqlite3_errmsg=Module[\"_sqlite3_errmsg\"]=Module[\"asm\"][\"sqlite3_errmsg\"]).apply(null,arguments)};var _crypt_r=Module[\"_crypt_r\"]=function(){return(_crypt_r=Module[\"_crypt_r\"]=Module[\"asm\"][\"crypt_r\"]).apply(null,arguments)};var _BZ2_bzCompressEnd=Module[\"_BZ2_bzCompressEnd\"]=function(){return(_BZ2_bzCompressEnd=Module[\"_BZ2_bzCompressEnd\"]=Module[\"asm\"][\"BZ2_bzCompressEnd\"]).apply(null,arguments)};var _BZ2_bzCompressInit=Module[\"_BZ2_bzCompressInit\"]=function(){return(_BZ2_bzCompressInit=Module[\"_BZ2_bzCompressInit\"]=Module[\"asm\"][\"BZ2_bzCompressInit\"]).apply(null,arguments)};var _BZ2_bzCompress=Module[\"_BZ2_bzCompress\"]=function(){return(_BZ2_bzCompress=Module[\"_BZ2_bzCompress\"]=Module[\"asm\"][\"BZ2_bzCompress\"]).apply(null,arguments)};var _BZ2_bzDecompressEnd=Module[\"_BZ2_bzDecompressEnd\"]=function(){return(_BZ2_bzDecompressEnd=Module[\"_BZ2_bzDecompressEnd\"]=Module[\"asm\"][\"BZ2_bzDecompressEnd\"]).apply(null,arguments)};var _BZ2_bzDecompressInit=Module[\"_BZ2_bzDecompressInit\"]=function(){return(_BZ2_bzDecompressInit=Module[\"_BZ2_bzDecompressInit\"]=Module[\"asm\"][\"BZ2_bzDecompressInit\"]).apply(null,arguments)};var _BZ2_bzDecompress=Module[\"_BZ2_bzDecompress\"]=function(){return(_BZ2_bzDecompress=Module[\"_BZ2_bzDecompress\"]=Module[\"asm\"][\"BZ2_bzDecompress\"]).apply(null,arguments)};var _RotatingTree_Enum=Module[\"_RotatingTree_Enum\"]=function(){return(_RotatingTree_Enum=Module[\"_RotatingTree_Enum\"]=Module[\"asm\"][\"RotatingTree_Enum\"]).apply(null,arguments)};var _RotatingTree_Get=Module[\"_RotatingTree_Get\"]=function(){return(_RotatingTree_Get=Module[\"_RotatingTree_Get\"]=Module[\"asm\"][\"RotatingTree_Get\"]).apply(null,arguments)};var _RotatingTree_Add=Module[\"_RotatingTree_Add\"]=function(){return(_RotatingTree_Add=Module[\"_RotatingTree_Add\"]=Module[\"asm\"][\"RotatingTree_Add\"]).apply(null,arguments)};var _mpd_callocfunc_em=Module[\"_mpd_callocfunc_em\"]=function(){return(_mpd_callocfunc_em=Module[\"_mpd_callocfunc_em\"]=Module[\"asm\"][\"mpd_callocfunc_em\"]).apply(null,arguments)};var _mpd_setminalloc=Module[\"_mpd_setminalloc\"]=function(){return(_mpd_setminalloc=Module[\"_mpd_setminalloc\"]=Module[\"asm\"][\"mpd_setminalloc\"]).apply(null,arguments)};var _mpd_version=Module[\"_mpd_version\"]=function(){return(_mpd_version=Module[\"_mpd_version\"]=Module[\"asm\"][\"mpd_version\"]).apply(null,arguments)};var _mpd_del=Module[\"_mpd_del\"]=function(){return(_mpd_del=Module[\"_mpd_del\"]=Module[\"asm\"][\"mpd_del\"]).apply(null,arguments)};var _mpd_to_sci=Module[\"_mpd_to_sci\"]=function(){return(_mpd_to_sci=Module[\"_mpd_to_sci\"]=Module[\"asm\"][\"mpd_to_sci\"]).apply(null,arguments)};var _mpd_isspecial=Module[\"_mpd_isspecial\"]=function(){return(_mpd_isspecial=Module[\"_mpd_isspecial\"]=Module[\"asm\"][\"mpd_isspecial\"]).apply(null,arguments)};var _mpd_issnan=Module[\"_mpd_issnan\"]=function(){return(_mpd_issnan=Module[\"_mpd_issnan\"]=Module[\"asm\"][\"mpd_issnan\"]).apply(null,arguments)};var _mpd_isnan=Module[\"_mpd_isnan\"]=function(){return(_mpd_isnan=Module[\"_mpd_isnan\"]=Module[\"asm\"][\"mpd_isnan\"]).apply(null,arguments)};var _mpd_arith_sign=Module[\"_mpd_arith_sign\"]=function(){return(_mpd_arith_sign=Module[\"_mpd_arith_sign\"]=Module[\"asm\"][\"mpd_arith_sign\"]).apply(null,arguments)};var _mpd_maxcontext=Module[\"_mpd_maxcontext\"]=function(){return(_mpd_maxcontext=Module[\"_mpd_maxcontext\"]=Module[\"asm\"][\"mpd_maxcontext\"]).apply(null,arguments)};var _mpd_qnew=Module[\"_mpd_qnew\"]=function(){return(_mpd_qnew=Module[\"_mpd_qnew\"]=Module[\"asm\"][\"mpd_qnew\"]).apply(null,arguments)};var _mpd_qsset_ssize=Module[\"_mpd_qsset_ssize\"]=function(){return(_mpd_qsset_ssize=Module[\"_mpd_qsset_ssize\"]=Module[\"asm\"][\"mpd_qsset_ssize\"]).apply(null,arguments)};var _mpd_qpowmod=Module[\"_mpd_qpowmod\"]=function(){return(_mpd_qpowmod=Module[\"_mpd_qpowmod\"]=Module[\"asm\"][\"mpd_qpowmod\"]).apply(null,arguments)};var _mpd_qcopy=Module[\"_mpd_qcopy\"]=function(){return(_mpd_qcopy=Module[\"_mpd_qcopy\"]=Module[\"asm\"][\"mpd_qcopy\"]).apply(null,arguments)};var _mpd_set_positive=Module[\"_mpd_set_positive\"]=function(){return(_mpd_set_positive=Module[\"_mpd_set_positive\"]=Module[\"asm\"][\"mpd_set_positive\"]).apply(null,arguments)};var _mpd_qmul=Module[\"_mpd_qmul\"]=function(){return(_mpd_qmul=Module[\"_mpd_qmul\"]=Module[\"asm\"][\"mpd_qmul\"]).apply(null,arguments)};var _mpd_qrem=Module[\"_mpd_qrem\"]=function(){return(_mpd_qrem=Module[\"_mpd_qrem\"]=Module[\"asm\"][\"mpd_qrem\"]).apply(null,arguments)};var _mpd_qget_ssize=Module[\"_mpd_qget_ssize\"]=function(){return(_mpd_qget_ssize=Module[\"_mpd_qget_ssize\"]=Module[\"asm\"][\"mpd_qget_ssize\"]).apply(null,arguments)};var _mpd_ispositive=Module[\"_mpd_ispositive\"]=function(){return(_mpd_ispositive=Module[\"_mpd_ispositive\"]=Module[\"asm\"][\"mpd_ispositive\"]).apply(null,arguments)};var _mpd_to_sci_size=Module[\"_mpd_to_sci_size\"]=function(){return(_mpd_to_sci_size=Module[\"_mpd_to_sci_size\"]=Module[\"asm\"][\"mpd_to_sci_size\"]).apply(null,arguments)};var _mpd_qncopy=Module[\"_mpd_qncopy\"]=function(){return(_mpd_qncopy=Module[\"_mpd_qncopy\"]=Module[\"asm\"][\"mpd_qncopy\"]).apply(null,arguments)};var _mpd_qcmp=Module[\"_mpd_qcmp\"]=function(){return(_mpd_qcmp=Module[\"_mpd_qcmp\"]=Module[\"asm\"][\"mpd_qcmp\"]).apply(null,arguments)};var _mpd_qset_ssize=Module[\"_mpd_qset_ssize\"]=function(){return(_mpd_qset_ssize=Module[\"_mpd_qset_ssize\"]=Module[\"asm\"][\"mpd_qset_ssize\"]).apply(null,arguments)};var _mpd_qadd=Module[\"_mpd_qadd\"]=function(){return(_mpd_qadd=Module[\"_mpd_qadd\"]=Module[\"asm\"][\"mpd_qadd\"]).apply(null,arguments)};var _mpd_qsub=Module[\"_mpd_qsub\"]=function(){return(_mpd_qsub=Module[\"_mpd_qsub\"]=Module[\"asm\"][\"mpd_qsub\"]).apply(null,arguments)};var _mpd_qdivmod=Module[\"_mpd_qdivmod\"]=function(){return(_mpd_qdivmod=Module[\"_mpd_qdivmod\"]=Module[\"asm\"][\"mpd_qdivmod\"]).apply(null,arguments)};var _mpd_qpow=Module[\"_mpd_qpow\"]=function(){return(_mpd_qpow=Module[\"_mpd_qpow\"]=Module[\"asm\"][\"mpd_qpow\"]).apply(null,arguments)};var _mpd_qminus=Module[\"_mpd_qminus\"]=function(){return(_mpd_qminus=Module[\"_mpd_qminus\"]=Module[\"asm\"][\"mpd_qminus\"]).apply(null,arguments)};var _mpd_qplus=Module[\"_mpd_qplus\"]=function(){return(_mpd_qplus=Module[\"_mpd_qplus\"]=Module[\"asm\"][\"mpd_qplus\"]).apply(null,arguments)};var _mpd_qabs=Module[\"_mpd_qabs\"]=function(){return(_mpd_qabs=Module[\"_mpd_qabs\"]=Module[\"asm\"][\"mpd_qabs\"]).apply(null,arguments)};var _mpd_iszero=Module[\"_mpd_iszero\"]=function(){return(_mpd_iszero=Module[\"_mpd_iszero\"]=Module[\"asm\"][\"mpd_iszero\"]).apply(null,arguments)};var _mpd_isnegative=Module[\"_mpd_isnegative\"]=function(){return(_mpd_isnegative=Module[\"_mpd_isnegative\"]=Module[\"asm\"][\"mpd_isnegative\"]).apply(null,arguments)};var _mpd_qdivint=Module[\"_mpd_qdivint\"]=function(){return(_mpd_qdivint=Module[\"_mpd_qdivint\"]=Module[\"asm\"][\"mpd_qdivint\"]).apply(null,arguments)};var _mpd_qdiv=Module[\"_mpd_qdiv\"]=function(){return(_mpd_qdiv=Module[\"_mpd_qdiv\"]=Module[\"asm\"][\"mpd_qdiv\"]).apply(null,arguments)};var _mpd_seterror=Module[\"_mpd_seterror\"]=function(){return(_mpd_seterror=Module[\"_mpd_seterror\"]=Module[\"asm\"][\"mpd_seterror\"]).apply(null,arguments)};var _mpd_set_flags=Module[\"_mpd_set_flags\"]=function(){return(_mpd_set_flags=Module[\"_mpd_set_flags\"]=Module[\"asm\"][\"mpd_set_flags\"]).apply(null,arguments)};var _mpd_setdigits=Module[\"_mpd_setdigits\"]=function(){return(_mpd_setdigits=Module[\"_mpd_setdigits\"]=Module[\"asm\"][\"mpd_setdigits\"]).apply(null,arguments)};var _mpd_qfinalize=Module[\"_mpd_qfinalize\"]=function(){return(_mpd_qfinalize=Module[\"_mpd_qfinalize\"]=Module[\"asm\"][\"mpd_qfinalize\"]).apply(null,arguments)};var _mpd_qimport_u32=Module[\"_mpd_qimport_u32\"]=function(){return(_mpd_qimport_u32=Module[\"_mpd_qimport_u32\"]=Module[\"asm\"][\"mpd_qimport_u32\"]).apply(null,arguments)};var _mpd_qround_to_int=Module[\"_mpd_qround_to_int\"]=function(){return(_mpd_qround_to_int=Module[\"_mpd_qround_to_int\"]=Module[\"asm\"][\"mpd_qround_to_int\"]).apply(null,arguments)};var _mpd_qexport_u32=Module[\"_mpd_qexport_u32\"]=function(){return(_mpd_qexport_u32=Module[\"_mpd_qexport_u32\"]=Module[\"asm\"][\"mpd_qexport_u32\"]).apply(null,arguments)};var _mpd_setspecial=Module[\"_mpd_setspecial\"]=function(){return(_mpd_setspecial=Module[\"_mpd_setspecial\"]=Module[\"asm\"][\"mpd_setspecial\"]).apply(null,arguments)};var _mpd_qset_uint=Module[\"_mpd_qset_uint\"]=function(){return(_mpd_qset_uint=Module[\"_mpd_qset_uint\"]=Module[\"asm\"][\"mpd_qset_uint\"]).apply(null,arguments)};var _mpd_set_sign=Module[\"_mpd_set_sign\"]=function(){return(_mpd_set_sign=Module[\"_mpd_set_sign\"]=Module[\"asm\"][\"mpd_set_sign\"]).apply(null,arguments)};var _mpd_qexp=Module[\"_mpd_qexp\"]=function(){return(_mpd_qexp=Module[\"_mpd_qexp\"]=Module[\"asm\"][\"mpd_qexp\"]).apply(null,arguments)};var _mpd_qln=Module[\"_mpd_qln\"]=function(){return(_mpd_qln=Module[\"_mpd_qln\"]=Module[\"asm\"][\"mpd_qln\"]).apply(null,arguments)};var _mpd_qlog10=Module[\"_mpd_qlog10\"]=function(){return(_mpd_qlog10=Module[\"_mpd_qlog10\"]=Module[\"asm\"][\"mpd_qlog10\"]).apply(null,arguments)};var _mpd_qnext_minus=Module[\"_mpd_qnext_minus\"]=function(){return(_mpd_qnext_minus=Module[\"_mpd_qnext_minus\"]=Module[\"asm\"][\"mpd_qnext_minus\"]).apply(null,arguments)};var _mpd_qnext_plus=Module[\"_mpd_qnext_plus\"]=function(){return(_mpd_qnext_plus=Module[\"_mpd_qnext_plus\"]=Module[\"asm\"][\"mpd_qnext_plus\"]).apply(null,arguments)};var _mpd_qreduce=Module[\"_mpd_qreduce\"]=function(){return(_mpd_qreduce=Module[\"_mpd_qreduce\"]=Module[\"asm\"][\"mpd_qreduce\"]).apply(null,arguments)};var _mpd_qsetround=Module[\"_mpd_qsetround\"]=function(){return(_mpd_qsetround=Module[\"_mpd_qsetround\"]=Module[\"asm\"][\"mpd_qsetround\"]).apply(null,arguments)};var _mpd_qround_to_intx=Module[\"_mpd_qround_to_intx\"]=function(){return(_mpd_qround_to_intx=Module[\"_mpd_qround_to_intx\"]=Module[\"asm\"][\"mpd_qround_to_intx\"]).apply(null,arguments)};var _mpd_qsqrt=Module[\"_mpd_qsqrt\"]=function(){return(_mpd_qsqrt=Module[\"_mpd_qsqrt\"]=Module[\"asm\"][\"mpd_qsqrt\"]).apply(null,arguments)};var _mpd_qcompare=Module[\"_mpd_qcompare\"]=function(){return(_mpd_qcompare=Module[\"_mpd_qcompare\"]=Module[\"asm\"][\"mpd_qcompare\"]).apply(null,arguments)};var _mpd_qcompare_signal=Module[\"_mpd_qcompare_signal\"]=function(){return(_mpd_qcompare_signal=Module[\"_mpd_qcompare_signal\"]=Module[\"asm\"][\"mpd_qcompare_signal\"]).apply(null,arguments)};var _mpd_qmax=Module[\"_mpd_qmax\"]=function(){return(_mpd_qmax=Module[\"_mpd_qmax\"]=Module[\"asm\"][\"mpd_qmax\"]).apply(null,arguments)};var _mpd_qmax_mag=Module[\"_mpd_qmax_mag\"]=function(){return(_mpd_qmax_mag=Module[\"_mpd_qmax_mag\"]=Module[\"asm\"][\"mpd_qmax_mag\"]).apply(null,arguments)};var _mpd_qmin=Module[\"_mpd_qmin\"]=function(){return(_mpd_qmin=Module[\"_mpd_qmin\"]=Module[\"asm\"][\"mpd_qmin\"]).apply(null,arguments)};var _mpd_qmin_mag=Module[\"_mpd_qmin_mag\"]=function(){return(_mpd_qmin_mag=Module[\"_mpd_qmin_mag\"]=Module[\"asm\"][\"mpd_qmin_mag\"]).apply(null,arguments)};var _mpd_qnext_toward=Module[\"_mpd_qnext_toward\"]=function(){return(_mpd_qnext_toward=Module[\"_mpd_qnext_toward\"]=Module[\"asm\"][\"mpd_qnext_toward\"]).apply(null,arguments)};var _mpd_qquantize=Module[\"_mpd_qquantize\"]=function(){return(_mpd_qquantize=Module[\"_mpd_qquantize\"]=Module[\"asm\"][\"mpd_qquantize\"]).apply(null,arguments)};var _mpd_qrem_near=Module[\"_mpd_qrem_near\"]=function(){return(_mpd_qrem_near=Module[\"_mpd_qrem_near\"]=Module[\"asm\"][\"mpd_qrem_near\"]).apply(null,arguments)};var _mpd_qfma=Module[\"_mpd_qfma\"]=function(){return(_mpd_qfma=Module[\"_mpd_qfma\"]=Module[\"asm\"][\"mpd_qfma\"]).apply(null,arguments)};var _mpd_iscanonical=Module[\"_mpd_iscanonical\"]=function(){return(_mpd_iscanonical=Module[\"_mpd_iscanonical\"]=Module[\"asm\"][\"mpd_iscanonical\"]).apply(null,arguments)};var _mpd_isfinite=Module[\"_mpd_isfinite\"]=function(){return(_mpd_isfinite=Module[\"_mpd_isfinite\"]=Module[\"asm\"][\"mpd_isfinite\"]).apply(null,arguments)};var _mpd_isinfinite=Module[\"_mpd_isinfinite\"]=function(){return(_mpd_isinfinite=Module[\"_mpd_isinfinite\"]=Module[\"asm\"][\"mpd_isinfinite\"]).apply(null,arguments)};var _mpd_isqnan=Module[\"_mpd_isqnan\"]=function(){return(_mpd_isqnan=Module[\"_mpd_isqnan\"]=Module[\"asm\"][\"mpd_isqnan\"]).apply(null,arguments)};var _mpd_issigned=Module[\"_mpd_issigned\"]=function(){return(_mpd_issigned=Module[\"_mpd_issigned\"]=Module[\"asm\"][\"mpd_issigned\"]).apply(null,arguments)};var _mpd_isnormal=Module[\"_mpd_isnormal\"]=function(){return(_mpd_isnormal=Module[\"_mpd_isnormal\"]=Module[\"asm\"][\"mpd_isnormal\"]).apply(null,arguments)};var _mpd_issubnormal=Module[\"_mpd_issubnormal\"]=function(){return(_mpd_issubnormal=Module[\"_mpd_issubnormal\"]=Module[\"asm\"][\"mpd_issubnormal\"]).apply(null,arguments)};var _mpd_adjexp=Module[\"_mpd_adjexp\"]=function(){return(_mpd_adjexp=Module[\"_mpd_adjexp\"]=Module[\"asm\"][\"mpd_adjexp\"]).apply(null,arguments)};var _mpd_qcopy_abs=Module[\"_mpd_qcopy_abs\"]=function(){return(_mpd_qcopy_abs=Module[\"_mpd_qcopy_abs\"]=Module[\"asm\"][\"mpd_qcopy_abs\"]).apply(null,arguments)};var _mpd_qcopy_negate=Module[\"_mpd_qcopy_negate\"]=function(){return(_mpd_qcopy_negate=Module[\"_mpd_qcopy_negate\"]=Module[\"asm\"][\"mpd_qcopy_negate\"]).apply(null,arguments)};var _mpd_qlogb=Module[\"_mpd_qlogb\"]=function(){return(_mpd_qlogb=Module[\"_mpd_qlogb\"]=Module[\"asm\"][\"mpd_qlogb\"]).apply(null,arguments)};var _mpd_qinvert=Module[\"_mpd_qinvert\"]=function(){return(_mpd_qinvert=Module[\"_mpd_qinvert\"]=Module[\"asm\"][\"mpd_qinvert\"]).apply(null,arguments)};var _mpd_class=Module[\"_mpd_class\"]=function(){return(_mpd_class=Module[\"_mpd_class\"]=Module[\"asm\"][\"mpd_class\"]).apply(null,arguments)};var _mpd_to_eng_size=Module[\"_mpd_to_eng_size\"]=function(){return(_mpd_to_eng_size=Module[\"_mpd_to_eng_size\"]=Module[\"asm\"][\"mpd_to_eng_size\"]).apply(null,arguments)};var _mpd_compare_total=Module[\"_mpd_compare_total\"]=function(){return(_mpd_compare_total=Module[\"_mpd_compare_total\"]=Module[\"asm\"][\"mpd_compare_total\"]).apply(null,arguments)};var _mpd_compare_total_mag=Module[\"_mpd_compare_total_mag\"]=function(){return(_mpd_compare_total_mag=Module[\"_mpd_compare_total_mag\"]=Module[\"asm\"][\"mpd_compare_total_mag\"]).apply(null,arguments)};var _mpd_qcopy_sign=Module[\"_mpd_qcopy_sign\"]=function(){return(_mpd_qcopy_sign=Module[\"_mpd_qcopy_sign\"]=Module[\"asm\"][\"mpd_qcopy_sign\"]).apply(null,arguments)};var _mpd_same_quantum=Module[\"_mpd_same_quantum\"]=function(){return(_mpd_same_quantum=Module[\"_mpd_same_quantum\"]=Module[\"asm\"][\"mpd_same_quantum\"]).apply(null,arguments)};var _mpd_qand=Module[\"_mpd_qand\"]=function(){return(_mpd_qand=Module[\"_mpd_qand\"]=Module[\"asm\"][\"mpd_qand\"]).apply(null,arguments)};var _mpd_qor=Module[\"_mpd_qor\"]=function(){return(_mpd_qor=Module[\"_mpd_qor\"]=Module[\"asm\"][\"mpd_qor\"]).apply(null,arguments)};var _mpd_qxor=Module[\"_mpd_qxor\"]=function(){return(_mpd_qxor=Module[\"_mpd_qxor\"]=Module[\"asm\"][\"mpd_qxor\"]).apply(null,arguments)};var _mpd_qrotate=Module[\"_mpd_qrotate\"]=function(){return(_mpd_qrotate=Module[\"_mpd_qrotate\"]=Module[\"asm\"][\"mpd_qrotate\"]).apply(null,arguments)};var _mpd_qscaleb=Module[\"_mpd_qscaleb\"]=function(){return(_mpd_qscaleb=Module[\"_mpd_qscaleb\"]=Module[\"asm\"][\"mpd_qscaleb\"]).apply(null,arguments)};var _mpd_qshift=Module[\"_mpd_qshift\"]=function(){return(_mpd_qshift=Module[\"_mpd_qshift\"]=Module[\"asm\"][\"mpd_qshift\"]).apply(null,arguments)};var _mpd_sign=Module[\"_mpd_sign\"]=function(){return(_mpd_sign=Module[\"_mpd_sign\"]=Module[\"asm\"][\"mpd_sign\"]).apply(null,arguments)};var _mpd_clear_flags=Module[\"_mpd_clear_flags\"]=function(){return(_mpd_clear_flags=Module[\"_mpd_clear_flags\"]=Module[\"asm\"][\"mpd_clear_flags\"]).apply(null,arguments)};var _mpd_parse_fmt_str=Module[\"_mpd_parse_fmt_str\"]=function(){return(_mpd_parse_fmt_str=Module[\"_mpd_parse_fmt_str\"]=Module[\"asm\"][\"mpd_parse_fmt_str\"]).apply(null,arguments)};var _mpd_validate_lconv=Module[\"_mpd_validate_lconv\"]=function(){return(_mpd_validate_lconv=Module[\"_mpd_validate_lconv\"]=Module[\"asm\"][\"mpd_validate_lconv\"]).apply(null,arguments)};var _mpd_qformat_spec=Module[\"_mpd_qformat_spec\"]=function(){return(_mpd_qformat_spec=Module[\"_mpd_qformat_spec\"]=Module[\"asm\"][\"mpd_qformat_spec\"]).apply(null,arguments)};var _mpd_isdynamic_data=Module[\"_mpd_isdynamic_data\"]=function(){return(_mpd_isdynamic_data=Module[\"_mpd_isdynamic_data\"]=Module[\"asm\"][\"mpd_isdynamic_data\"]).apply(null,arguments)};var _mpd_qset_string=Module[\"_mpd_qset_string\"]=function(){return(_mpd_qset_string=Module[\"_mpd_qset_string\"]=Module[\"asm\"][\"mpd_qset_string\"]).apply(null,arguments)};var _snprintf=Module[\"_snprintf\"]=function(){return(_snprintf=Module[\"_snprintf\"]=Module[\"asm\"][\"snprintf\"]).apply(null,arguments)};var _mpd_lsnprint_signals=Module[\"_mpd_lsnprint_signals\"]=function(){return(_mpd_lsnprint_signals=Module[\"_mpd_lsnprint_signals\"]=Module[\"asm\"][\"mpd_lsnprint_signals\"]).apply(null,arguments)};var _mpd_qsettraps=Module[\"_mpd_qsettraps\"]=function(){return(_mpd_qsettraps=Module[\"_mpd_qsettraps\"]=Module[\"asm\"][\"mpd_qsettraps\"]).apply(null,arguments)};var _mpd_qsetstatus=Module[\"_mpd_qsetstatus\"]=function(){return(_mpd_qsetstatus=Module[\"_mpd_qsetstatus\"]=Module[\"asm\"][\"mpd_qsetstatus\"]).apply(null,arguments)};var _mpd_qsetprec=Module[\"_mpd_qsetprec\"]=function(){return(_mpd_qsetprec=Module[\"_mpd_qsetprec\"]=Module[\"asm\"][\"mpd_qsetprec\"]).apply(null,arguments)};var _mpd_qsetemin=Module[\"_mpd_qsetemin\"]=function(){return(_mpd_qsetemin=Module[\"_mpd_qsetemin\"]=Module[\"asm\"][\"mpd_qsetemin\"]).apply(null,arguments)};var _mpd_qsetemax=Module[\"_mpd_qsetemax\"]=function(){return(_mpd_qsetemax=Module[\"_mpd_qsetemax\"]=Module[\"asm\"][\"mpd_qsetemax\"]).apply(null,arguments)};var _mpd_qsetclamp=Module[\"_mpd_qsetclamp\"]=function(){return(_mpd_qsetclamp=Module[\"_mpd_qsetclamp\"]=Module[\"asm\"][\"mpd_qsetclamp\"]).apply(null,arguments)};var _mpd_etiny=Module[\"_mpd_etiny\"]=function(){return(_mpd_etiny=Module[\"_mpd_etiny\"]=Module[\"asm\"][\"mpd_etiny\"]).apply(null,arguments)};var _mpd_etop=Module[\"_mpd_etop\"]=function(){return(_mpd_etop=Module[\"_mpd_etop\"]=Module[\"asm\"][\"mpd_etop\"]).apply(null,arguments)};var _mpd_getprec=Module[\"_mpd_getprec\"]=function(){return(_mpd_getprec=Module[\"_mpd_getprec\"]=Module[\"asm\"][\"mpd_getprec\"]).apply(null,arguments)};var _mpd_getemax=Module[\"_mpd_getemax\"]=function(){return(_mpd_getemax=Module[\"_mpd_getemax\"]=Module[\"asm\"][\"mpd_getemax\"]).apply(null,arguments)};var _mpd_getemin=Module[\"_mpd_getemin\"]=function(){return(_mpd_getemin=Module[\"_mpd_getemin\"]=Module[\"asm\"][\"mpd_getemin\"]).apply(null,arguments)};var _mpd_getround=Module[\"_mpd_getround\"]=function(){return(_mpd_getround=Module[\"_mpd_getround\"]=Module[\"asm\"][\"mpd_getround\"]).apply(null,arguments)};var _mpd_getclamp=Module[\"_mpd_getclamp\"]=function(){return(_mpd_getclamp=Module[\"_mpd_getclamp\"]=Module[\"asm\"][\"mpd_getclamp\"]).apply(null,arguments)};var __mpd_baseadd=Module[\"__mpd_baseadd\"]=function(){return(__mpd_baseadd=Module[\"__mpd_baseadd\"]=Module[\"asm\"][\"_mpd_baseadd\"]).apply(null,arguments)};var __mpd_baseaddto=Module[\"__mpd_baseaddto\"]=function(){return(__mpd_baseaddto=Module[\"__mpd_baseaddto\"]=Module[\"asm\"][\"_mpd_baseaddto\"]).apply(null,arguments)};var __mpd_shortadd=Module[\"__mpd_shortadd\"]=function(){return(__mpd_shortadd=Module[\"__mpd_shortadd\"]=Module[\"asm\"][\"_mpd_shortadd\"]).apply(null,arguments)};var __mpd_baseincr=Module[\"__mpd_baseincr\"]=function(){return(__mpd_baseincr=Module[\"__mpd_baseincr\"]=Module[\"asm\"][\"_mpd_baseincr\"]).apply(null,arguments)};var __mpd_basesub=Module[\"__mpd_basesub\"]=function(){return(__mpd_basesub=Module[\"__mpd_basesub\"]=Module[\"asm\"][\"_mpd_basesub\"]).apply(null,arguments)};var __mpd_basesubfrom=Module[\"__mpd_basesubfrom\"]=function(){return(__mpd_basesubfrom=Module[\"__mpd_basesubfrom\"]=Module[\"asm\"][\"_mpd_basesubfrom\"]).apply(null,arguments)};var __mpd_shortmul=Module[\"__mpd_shortmul\"]=function(){return(__mpd_shortmul=Module[\"__mpd_shortmul\"]=Module[\"asm\"][\"_mpd_shortmul\"]).apply(null,arguments)};var __mpd_basemul=Module[\"__mpd_basemul\"]=function(){return(__mpd_basemul=Module[\"__mpd_basemul\"]=Module[\"asm\"][\"_mpd_basemul\"]).apply(null,arguments)};var __mpd_shortdiv=Module[\"__mpd_shortdiv\"]=function(){return(__mpd_shortdiv=Module[\"__mpd_shortdiv\"]=Module[\"asm\"][\"_mpd_shortdiv\"]).apply(null,arguments)};var __mpd_basedivmod=Module[\"__mpd_basedivmod\"]=function(){return(__mpd_basedivmod=Module[\"__mpd_basedivmod\"]=Module[\"asm\"][\"_mpd_basedivmod\"]).apply(null,arguments)};var _mpd_alloc=Module[\"_mpd_alloc\"]=function(){return(_mpd_alloc=Module[\"_mpd_alloc\"]=Module[\"asm\"][\"mpd_alloc\"]).apply(null,arguments)};var __mpd_baseshiftl=Module[\"__mpd_baseshiftl\"]=function(){return(__mpd_baseshiftl=Module[\"__mpd_baseshiftl\"]=Module[\"asm\"][\"_mpd_baseshiftl\"]).apply(null,arguments)};var _mpd_uint_zero=Module[\"_mpd_uint_zero\"]=function(){return(_mpd_uint_zero=Module[\"_mpd_uint_zero\"]=Module[\"asm\"][\"mpd_uint_zero\"]).apply(null,arguments)};var __mpd_baseshiftr=Module[\"__mpd_baseshiftr\"]=function(){return(__mpd_baseshiftr=Module[\"__mpd_baseshiftr\"]=Module[\"asm\"][\"_mpd_baseshiftr\"]).apply(null,arguments)};var __mpd_shortadd_b=Module[\"__mpd_shortadd_b\"]=function(){return(__mpd_shortadd_b=Module[\"__mpd_shortadd_b\"]=Module[\"asm\"][\"_mpd_shortadd_b\"]).apply(null,arguments)};var __mpd_shortmul_c=Module[\"__mpd_shortmul_c\"]=function(){return(__mpd_shortmul_c=Module[\"__mpd_shortmul_c\"]=Module[\"asm\"][\"_mpd_shortmul_c\"]).apply(null,arguments)};var __mpd_shortmul_b=Module[\"__mpd_shortmul_b\"]=function(){return(__mpd_shortmul_b=Module[\"__mpd_shortmul_b\"]=Module[\"asm\"][\"_mpd_shortmul_b\"]).apply(null,arguments)};var __mpd_shortdiv_b=Module[\"__mpd_shortdiv_b\"]=function(){return(__mpd_shortdiv_b=Module[\"__mpd_shortdiv_b\"]=Module[\"asm\"][\"_mpd_shortdiv_b\"]).apply(null,arguments)};var _mpd_dflt_traphandler=Module[\"_mpd_dflt_traphandler\"]=function(){return(_mpd_dflt_traphandler=Module[\"_mpd_dflt_traphandler\"]=Module[\"asm\"][\"mpd_dflt_traphandler\"]).apply(null,arguments)};var _mpd_init=Module[\"_mpd_init\"]=function(){return(_mpd_init=Module[\"_mpd_init\"]=Module[\"asm\"][\"mpd_init\"]).apply(null,arguments)};var _mpd_defaultcontext=Module[\"_mpd_defaultcontext\"]=function(){return(_mpd_defaultcontext=Module[\"_mpd_defaultcontext\"]=Module[\"asm\"][\"mpd_defaultcontext\"]).apply(null,arguments)};var _mpd_addstatus_raise=Module[\"_mpd_addstatus_raise\"]=function(){return(_mpd_addstatus_raise=Module[\"_mpd_addstatus_raise\"]=Module[\"asm\"][\"mpd_addstatus_raise\"]).apply(null,arguments)};var _mpd_basiccontext=Module[\"_mpd_basiccontext\"]=function(){return(_mpd_basiccontext=Module[\"_mpd_basiccontext\"]=Module[\"asm\"][\"mpd_basiccontext\"]).apply(null,arguments)};var _mpd_ieee_context=Module[\"_mpd_ieee_context\"]=function(){return(_mpd_ieee_context=Module[\"_mpd_ieee_context\"]=Module[\"asm\"][\"mpd_ieee_context\"]).apply(null,arguments)};var _mpd_gettraps=Module[\"_mpd_gettraps\"]=function(){return(_mpd_gettraps=Module[\"_mpd_gettraps\"]=Module[\"asm\"][\"mpd_gettraps\"]).apply(null,arguments)};var _mpd_getstatus=Module[\"_mpd_getstatus\"]=function(){return(_mpd_getstatus=Module[\"_mpd_getstatus\"]=Module[\"asm\"][\"mpd_getstatus\"]).apply(null,arguments)};var _mpd_getcr=Module[\"_mpd_getcr\"]=function(){return(_mpd_getcr=Module[\"_mpd_getcr\"]=Module[\"asm\"][\"mpd_getcr\"]).apply(null,arguments)};var _mpd_qsetcr=Module[\"_mpd_qsetcr\"]=function(){return(_mpd_qsetcr=Module[\"_mpd_qsetcr\"]=Module[\"asm\"][\"mpd_qsetcr\"]).apply(null,arguments)};var _fnt_convolute=Module[\"_fnt_convolute\"]=function(){return(_fnt_convolute=Module[\"_fnt_convolute\"]=Module[\"asm\"][\"fnt_convolute\"]).apply(null,arguments)};var _std_inv_fnt=Module[\"_std_inv_fnt\"]=function(){return(_std_inv_fnt=Module[\"_std_inv_fnt\"]=Module[\"asm\"][\"std_inv_fnt\"]).apply(null,arguments)};var _inv_six_step_fnt=Module[\"_inv_six_step_fnt\"]=function(){return(_inv_six_step_fnt=Module[\"_inv_six_step_fnt\"]=Module[\"asm\"][\"inv_six_step_fnt\"]).apply(null,arguments)};var _inv_four_step_fnt=Module[\"_inv_four_step_fnt\"]=function(){return(_inv_four_step_fnt=Module[\"_inv_four_step_fnt\"]=Module[\"asm\"][\"inv_four_step_fnt\"]).apply(null,arguments)};var _std_fnt=Module[\"_std_fnt\"]=function(){return(_std_fnt=Module[\"_std_fnt\"]=Module[\"asm\"][\"std_fnt\"]).apply(null,arguments)};var _six_step_fnt=Module[\"_six_step_fnt\"]=function(){return(_six_step_fnt=Module[\"_six_step_fnt\"]=Module[\"asm\"][\"six_step_fnt\"]).apply(null,arguments)};var _four_step_fnt=Module[\"_four_step_fnt\"]=function(){return(_four_step_fnt=Module[\"_four_step_fnt\"]=Module[\"asm\"][\"four_step_fnt\"]).apply(null,arguments)};var _fnt_autoconvolute=Module[\"_fnt_autoconvolute\"]=function(){return(_fnt_autoconvolute=Module[\"_fnt_autoconvolute\"]=Module[\"asm\"][\"fnt_autoconvolute\"]).apply(null,arguments)};var _crt3=Module[\"_crt3\"]=function(){return(_crt3=Module[\"_crt3\"]=Module[\"asm\"][\"crt3\"]).apply(null,arguments)};var _fnt_dif2=Module[\"_fnt_dif2\"]=function(){return(_fnt_dif2=Module[\"_fnt_dif2\"]=Module[\"asm\"][\"fnt_dif2\"]).apply(null,arguments)};var __mpd_init_fnt_params=Module[\"__mpd_init_fnt_params\"]=function(){return(__mpd_init_fnt_params=Module[\"__mpd_init_fnt_params\"]=Module[\"asm\"][\"_mpd_init_fnt_params\"]).apply(null,arguments)};var __mpd_init_w3table=Module[\"__mpd_init_w3table\"]=function(){return(__mpd_init_w3table=Module[\"__mpd_init_w3table\"]=Module[\"asm\"][\"_mpd_init_w3table\"]).apply(null,arguments)};var __mpd_getkernel=Module[\"__mpd_getkernel\"]=function(){return(__mpd_getkernel=Module[\"__mpd_getkernel\"]=Module[\"asm\"][\"_mpd_getkernel\"]).apply(null,arguments)};var _mpd_set_negative=Module[\"_mpd_set_negative\"]=function(){return(_mpd_set_negative=Module[\"_mpd_set_negative\"]=Module[\"asm\"][\"mpd_set_negative\"]).apply(null,arguments)};var _mpd_qresize=Module[\"_mpd_qresize\"]=function(){return(_mpd_qresize=Module[\"_mpd_qresize\"]=Module[\"asm\"][\"mpd_qresize\"]).apply(null,arguments)};var _mpd_qset_string_exact=Module[\"_mpd_qset_string_exact\"]=function(){return(_mpd_qset_string_exact=Module[\"_mpd_qset_string_exact\"]=Module[\"asm\"][\"mpd_qset_string_exact\"]).apply(null,arguments)};var _mpd_msword=Module[\"_mpd_msword\"]=function(){return(_mpd_msword=Module[\"_mpd_msword\"]=Module[\"asm\"][\"mpd_msword\"]).apply(null,arguments)};var _mpd_word_digits=Module[\"_mpd_word_digits\"]=function(){return(_mpd_word_digits=Module[\"_mpd_word_digits\"]=Module[\"asm\"][\"mpd_word_digits\"]).apply(null,arguments)};var _mpd_to_eng=Module[\"_mpd_to_eng\"]=function(){return(_mpd_to_eng=Module[\"_mpd_to_eng\"]=Module[\"asm\"][\"mpd_to_eng\"]).apply(null,arguments)};var _isupper=Module[\"_isupper\"]=function(){return(_isupper=Module[\"_isupper\"]=Module[\"asm\"][\"isupper\"]).apply(null,arguments)};var _mpd_qrescale_fmt=Module[\"_mpd_qrescale_fmt\"]=function(){return(_mpd_qrescale_fmt=Module[\"_mpd_qrescale_fmt\"]=Module[\"asm\"][\"mpd_qrescale_fmt\"]).apply(null,arguments)};var _mpd_qrescale=Module[\"_mpd_qrescale\"]=function(){return(_mpd_qrescale=Module[\"_mpd_qrescale\"]=Module[\"asm\"][\"mpd_qrescale\"]).apply(null,arguments)};var _mpd_realloc=Module[\"_mpd_realloc\"]=function(){return(_mpd_realloc=Module[\"_mpd_realloc\"]=Module[\"asm\"][\"mpd_realloc\"]).apply(null,arguments)};var _mpd_qformat=Module[\"_mpd_qformat\"]=function(){return(_mpd_qformat=Module[\"_mpd_qformat\"]=Module[\"asm\"][\"mpd_qformat\"]).apply(null,arguments)};var _mpd_snprint_flags=Module[\"_mpd_snprint_flags\"]=function(){return(_mpd_snprint_flags=Module[\"_mpd_snprint_flags\"]=Module[\"asm\"][\"mpd_snprint_flags\"]).apply(null,arguments)};var _mpd_lsnprint_flags=Module[\"_mpd_lsnprint_flags\"]=function(){return(_mpd_lsnprint_flags=Module[\"_mpd_lsnprint_flags\"]=Module[\"asm\"][\"mpd_lsnprint_flags\"]).apply(null,arguments)};var _mpd_fprint=Module[\"_mpd_fprint\"]=function(){return(_mpd_fprint=Module[\"_mpd_fprint\"]=Module[\"asm\"][\"mpd_fprint\"]).apply(null,arguments)};var _mpd_print=Module[\"_mpd_print\"]=function(){return(_mpd_print=Module[\"_mpd_print\"]=Module[\"asm\"][\"mpd_print\"]).apply(null,arguments)};var _mpd_calloc=Module[\"_mpd_calloc\"]=function(){return(_mpd_calloc=Module[\"_mpd_calloc\"]=Module[\"asm\"][\"mpd_calloc\"]).apply(null,arguments)};var _mpd_sh_alloc=Module[\"_mpd_sh_alloc\"]=function(){return(_mpd_sh_alloc=Module[\"_mpd_sh_alloc\"]=Module[\"asm\"][\"mpd_sh_alloc\"]).apply(null,arguments)};var _mpd_qnew_size=Module[\"_mpd_qnew_size\"]=function(){return(_mpd_qnew_size=Module[\"_mpd_qnew_size\"]=Module[\"asm\"][\"mpd_qnew_size\"]).apply(null,arguments)};var _mpd_new=Module[\"_mpd_new\"]=function(){return(_mpd_new=Module[\"_mpd_new\"]=Module[\"asm\"][\"mpd_new\"]).apply(null,arguments)};var _mpd_switch_to_dyn=Module[\"_mpd_switch_to_dyn\"]=function(){return(_mpd_switch_to_dyn=Module[\"_mpd_switch_to_dyn\"]=Module[\"asm\"][\"mpd_switch_to_dyn\"]).apply(null,arguments)};var _mpd_set_qnan=Module[\"_mpd_set_qnan\"]=function(){return(_mpd_set_qnan=Module[\"_mpd_set_qnan\"]=Module[\"asm\"][\"mpd_set_qnan\"]).apply(null,arguments)};var _mpd_set_dynamic_data=Module[\"_mpd_set_dynamic_data\"]=function(){return(_mpd_set_dynamic_data=Module[\"_mpd_set_dynamic_data\"]=Module[\"asm\"][\"mpd_set_dynamic_data\"]).apply(null,arguments)};var _mpd_switch_to_dyn_zero=Module[\"_mpd_switch_to_dyn_zero\"]=function(){return(_mpd_switch_to_dyn_zero=Module[\"_mpd_switch_to_dyn_zero\"]=Module[\"asm\"][\"mpd_switch_to_dyn_zero\"]).apply(null,arguments)};var _mpd_realloc_dyn=Module[\"_mpd_realloc_dyn\"]=function(){return(_mpd_realloc_dyn=Module[\"_mpd_realloc_dyn\"]=Module[\"asm\"][\"mpd_realloc_dyn\"]).apply(null,arguments)};var _mpd_switch_to_dyn_cxx=Module[\"_mpd_switch_to_dyn_cxx\"]=function(){return(_mpd_switch_to_dyn_cxx=Module[\"_mpd_switch_to_dyn_cxx\"]=Module[\"asm\"][\"mpd_switch_to_dyn_cxx\"]).apply(null,arguments)};var _mpd_realloc_dyn_cxx=Module[\"_mpd_realloc_dyn_cxx\"]=function(){return(_mpd_realloc_dyn_cxx=Module[\"_mpd_realloc_dyn_cxx\"]=Module[\"asm\"][\"mpd_realloc_dyn_cxx\"]).apply(null,arguments)};var _mpd_msd=Module[\"_mpd_msd\"]=function(){return(_mpd_msd=Module[\"_mpd_msd\"]=Module[\"asm\"][\"mpd_msd\"]).apply(null,arguments)};var _mpd_lsd=Module[\"_mpd_lsd\"]=function(){return(_mpd_lsd=Module[\"_mpd_lsd\"]=Module[\"asm\"][\"mpd_lsd\"]).apply(null,arguments)};var _mpd_digits_to_size=Module[\"_mpd_digits_to_size\"]=function(){return(_mpd_digits_to_size=Module[\"_mpd_digits_to_size\"]=Module[\"asm\"][\"mpd_digits_to_size\"]).apply(null,arguments)};var _mpd_exp_digits=Module[\"_mpd_exp_digits\"]=function(){return(_mpd_exp_digits=Module[\"_mpd_exp_digits\"]=Module[\"asm\"][\"mpd_exp_digits\"]).apply(null,arguments)};var _mpd_iszerocoeff=Module[\"_mpd_iszerocoeff\"]=function(){return(_mpd_iszerocoeff=Module[\"_mpd_iszerocoeff\"]=Module[\"asm\"][\"mpd_iszerocoeff\"]).apply(null,arguments)};var _mpd_isoddword=Module[\"_mpd_isoddword\"]=function(){return(_mpd_isoddword=Module[\"_mpd_isoddword\"]=Module[\"asm\"][\"mpd_isoddword\"]).apply(null,arguments)};var _mpd_isoddcoeff=Module[\"_mpd_isoddcoeff\"]=function(){return(_mpd_isoddcoeff=Module[\"_mpd_isoddcoeff\"]=Module[\"asm\"][\"mpd_isoddcoeff\"]).apply(null,arguments)};var _mpd_radix=Module[\"_mpd_radix\"]=function(){return(_mpd_radix=Module[\"_mpd_radix\"]=Module[\"asm\"][\"mpd_radix\"]).apply(null,arguments)};var _mpd_isdynamic=Module[\"_mpd_isdynamic\"]=function(){return(_mpd_isdynamic=Module[\"_mpd_isdynamic\"]=Module[\"asm\"][\"mpd_isdynamic\"]).apply(null,arguments)};var _mpd_isstatic=Module[\"_mpd_isstatic\"]=function(){return(_mpd_isstatic=Module[\"_mpd_isstatic\"]=Module[\"asm\"][\"mpd_isstatic\"]).apply(null,arguments)};var _mpd_isstatic_data=Module[\"_mpd_isstatic_data\"]=function(){return(_mpd_isstatic_data=Module[\"_mpd_isstatic_data\"]=Module[\"asm\"][\"mpd_isstatic_data\"]).apply(null,arguments)};var _mpd_isshared_data=Module[\"_mpd_isshared_data\"]=function(){return(_mpd_isshared_data=Module[\"_mpd_isshared_data\"]=Module[\"asm\"][\"mpd_isshared_data\"]).apply(null,arguments)};var _mpd_isconst_data=Module[\"_mpd_isconst_data\"]=function(){return(_mpd_isconst_data=Module[\"_mpd_isconst_data\"]=Module[\"asm\"][\"mpd_isconst_data\"]).apply(null,arguments)};var _mpd_qresize_zero=Module[\"_mpd_qresize_zero\"]=function(){return(_mpd_qresize_zero=Module[\"_mpd_qresize_zero\"]=Module[\"asm\"][\"mpd_qresize_zero\"]).apply(null,arguments)};var _mpd_minalloc=Module[\"_mpd_minalloc\"]=function(){return(_mpd_minalloc=Module[\"_mpd_minalloc\"]=Module[\"asm\"][\"mpd_minalloc\"]).apply(null,arguments)};var _mpd_resize=Module[\"_mpd_resize\"]=function(){return(_mpd_resize=Module[\"_mpd_resize\"]=Module[\"asm\"][\"mpd_resize\"]).apply(null,arguments)};var _mpd_resize_zero=Module[\"_mpd_resize_zero\"]=function(){return(_mpd_resize_zero=Module[\"_mpd_resize_zero\"]=Module[\"asm\"][\"mpd_resize_zero\"]).apply(null,arguments)};var _mpd_signcpy=Module[\"_mpd_signcpy\"]=function(){return(_mpd_signcpy=Module[\"_mpd_signcpy\"]=Module[\"asm\"][\"mpd_signcpy\"]).apply(null,arguments)};var _mpd_set_infinity=Module[\"_mpd_set_infinity\"]=function(){return(_mpd_set_infinity=Module[\"_mpd_set_infinity\"]=Module[\"asm\"][\"mpd_set_infinity\"]).apply(null,arguments)};var _mpd_set_snan=Module[\"_mpd_set_snan\"]=function(){return(_mpd_set_snan=Module[\"_mpd_set_snan\"]=Module[\"asm\"][\"mpd_set_snan\"]).apply(null,arguments)};var _mpd_set_dynamic=Module[\"_mpd_set_dynamic\"]=function(){return(_mpd_set_dynamic=Module[\"_mpd_set_dynamic\"]=Module[\"asm\"][\"mpd_set_dynamic\"]).apply(null,arguments)};var _mpd_set_static=Module[\"_mpd_set_static\"]=function(){return(_mpd_set_static=Module[\"_mpd_set_static\"]=Module[\"asm\"][\"mpd_set_static\"]).apply(null,arguments)};var _mpd_set_static_data=Module[\"_mpd_set_static_data\"]=function(){return(_mpd_set_static_data=Module[\"_mpd_set_static_data\"]=Module[\"asm\"][\"mpd_set_static_data\"]).apply(null,arguments)};var _mpd_set_shared_data=Module[\"_mpd_set_shared_data\"]=function(){return(_mpd_set_shared_data=Module[\"_mpd_set_shared_data\"]=Module[\"asm\"][\"mpd_set_shared_data\"]).apply(null,arguments)};var _mpd_set_const_data=Module[\"_mpd_set_const_data\"]=function(){return(_mpd_set_const_data=Module[\"_mpd_set_const_data\"]=Module[\"asm\"][\"mpd_set_const_data\"]).apply(null,arguments)};var _mpd_copy_flags=Module[\"_mpd_copy_flags\"]=function(){return(_mpd_copy_flags=Module[\"_mpd_copy_flags\"]=Module[\"asm\"][\"mpd_copy_flags\"]).apply(null,arguments)};var _mpd_zerocoeff=Module[\"_mpd_zerocoeff\"]=function(){return(_mpd_zerocoeff=Module[\"_mpd_zerocoeff\"]=Module[\"asm\"][\"mpd_zerocoeff\"]).apply(null,arguments)};var _mpd_qmaxcoeff=Module[\"_mpd_qmaxcoeff\"]=function(){return(_mpd_qmaxcoeff=Module[\"_mpd_qmaxcoeff\"]=Module[\"asm\"][\"mpd_qmaxcoeff\"]).apply(null,arguments)};var _mpd_trail_zeros=Module[\"_mpd_trail_zeros\"]=function(){return(_mpd_trail_zeros=Module[\"_mpd_trail_zeros\"]=Module[\"asm\"][\"mpd_trail_zeros\"]).apply(null,arguments)};var _mpd_isinteger=Module[\"_mpd_isinteger\"]=function(){return(_mpd_isinteger=Module[\"_mpd_isinteger\"]=Module[\"asm\"][\"mpd_isinteger\"]).apply(null,arguments)};var _mpd_isodd=Module[\"_mpd_isodd\"]=function(){return(_mpd_isodd=Module[\"_mpd_isodd\"]=Module[\"asm\"][\"mpd_isodd\"]).apply(null,arguments)};var _mpd_iseven=Module[\"_mpd_iseven\"]=function(){return(_mpd_iseven=Module[\"_mpd_iseven\"]=Module[\"asm\"][\"mpd_iseven\"]).apply(null,arguments)};var _mpd_qshiftr_inplace=Module[\"_mpd_qshiftr_inplace\"]=function(){return(_mpd_qshiftr_inplace=Module[\"_mpd_qshiftr_inplace\"]=Module[\"asm\"][\"mpd_qshiftr_inplace\"]).apply(null,arguments)};var _mpd_qsset_uint=Module[\"_mpd_qsset_uint\"]=function(){return(_mpd_qsset_uint=Module[\"_mpd_qsset_uint\"]=Module[\"asm\"][\"mpd_qsset_uint\"]).apply(null,arguments)};var _mpd_qsset_i32=Module[\"_mpd_qsset_i32\"]=function(){return(_mpd_qsset_i32=Module[\"_mpd_qsset_i32\"]=Module[\"asm\"][\"mpd_qsset_i32\"]).apply(null,arguments)};var _mpd_qsset_u32=Module[\"_mpd_qsset_u32\"]=function(){return(_mpd_qsset_u32=Module[\"_mpd_qsset_u32\"]=Module[\"asm\"][\"mpd_qsset_u32\"]).apply(null,arguments)};var _mpd_qset_i32=Module[\"_mpd_qset_i32\"]=function(){return(_mpd_qset_i32=Module[\"_mpd_qset_i32\"]=Module[\"asm\"][\"mpd_qset_i32\"]).apply(null,arguments)};var _mpd_qset_u32=Module[\"_mpd_qset_u32\"]=function(){return(_mpd_qset_u32=Module[\"_mpd_qset_u32\"]=Module[\"asm\"][\"mpd_qset_u32\"]).apply(null,arguments)};var _mpd_qset_i64=Module[\"_mpd_qset_i64\"]=function(){return(_mpd_qset_i64=Module[\"_mpd_qset_i64\"]=Module[\"asm\"][\"mpd_qset_i64\"]).apply(null,arguments)};var _mpd_qset_i64_exact=Module[\"_mpd_qset_i64_exact\"]=function(){return(_mpd_qset_i64_exact=Module[\"_mpd_qset_i64_exact\"]=Module[\"asm\"][\"mpd_qset_i64_exact\"]).apply(null,arguments)};var _mpd_qset_u64=Module[\"_mpd_qset_u64\"]=function(){return(_mpd_qset_u64=Module[\"_mpd_qset_u64\"]=Module[\"asm\"][\"mpd_qset_u64\"]).apply(null,arguments)};var _mpd_qset_u64_exact=Module[\"_mpd_qset_u64_exact\"]=function(){return(_mpd_qset_u64_exact=Module[\"_mpd_qset_u64_exact\"]=Module[\"asm\"][\"mpd_qset_u64_exact\"]).apply(null,arguments)};var _mpd_qget_uint=Module[\"_mpd_qget_uint\"]=function(){return(_mpd_qget_uint=Module[\"_mpd_qget_uint\"]=Module[\"asm\"][\"mpd_qget_uint\"]).apply(null,arguments)};var _mpd_qabs_uint=Module[\"_mpd_qabs_uint\"]=function(){return(_mpd_qabs_uint=Module[\"_mpd_qabs_uint\"]=Module[\"asm\"][\"mpd_qabs_uint\"]).apply(null,arguments)};var _mpd_qget_u64=Module[\"_mpd_qget_u64\"]=function(){return(_mpd_qget_u64=Module[\"_mpd_qget_u64\"]=Module[\"asm\"][\"mpd_qget_u64\"]).apply(null,arguments)};var _mpd_qget_i64=Module[\"_mpd_qget_i64\"]=function(){return(_mpd_qget_i64=Module[\"_mpd_qget_i64\"]=Module[\"asm\"][\"mpd_qget_i64\"]).apply(null,arguments)};var _mpd_qget_u32=Module[\"_mpd_qget_u32\"]=function(){return(_mpd_qget_u32=Module[\"_mpd_qget_u32\"]=Module[\"asm\"][\"mpd_qget_u32\"]).apply(null,arguments)};var _mpd_qget_i32=Module[\"_mpd_qget_i32\"]=function(){return(_mpd_qget_i32=Module[\"_mpd_qget_i32\"]=Module[\"asm\"][\"mpd_qget_i32\"]).apply(null,arguments)};var _mpd_qcheck_nan=Module[\"_mpd_qcheck_nan\"]=function(){return(_mpd_qcheck_nan=Module[\"_mpd_qcheck_nan\"]=Module[\"asm\"][\"mpd_qcheck_nan\"]).apply(null,arguments)};var _mpd_qcheck_nans=Module[\"_mpd_qcheck_nans\"]=function(){return(_mpd_qcheck_nans=Module[\"_mpd_qcheck_nans\"]=Module[\"asm\"][\"mpd_qcheck_nans\"]).apply(null,arguments)};var _mpd_qshiftl=Module[\"_mpd_qshiftl\"]=function(){return(_mpd_qshiftl=Module[\"_mpd_qshiftl\"]=Module[\"asm\"][\"mpd_qshiftl\"]).apply(null,arguments)};var _mpd_qcopy_cxx=Module[\"_mpd_qcopy_cxx\"]=function(){return(_mpd_qcopy_cxx=Module[\"_mpd_qcopy_cxx\"]=Module[\"asm\"][\"mpd_qcopy_cxx\"]).apply(null,arguments)};var _mpd_cmp_total=Module[\"_mpd_cmp_total\"]=function(){return(_mpd_cmp_total=Module[\"_mpd_cmp_total\"]=Module[\"asm\"][\"mpd_cmp_total\"]).apply(null,arguments)};var _mpd_cmp_total_mag=Module[\"_mpd_cmp_total_mag\"]=function(){return(_mpd_cmp_total_mag=Module[\"_mpd_cmp_total_mag\"]=Module[\"asm\"][\"mpd_cmp_total_mag\"]).apply(null,arguments)};var _mpd_qshiftr=Module[\"_mpd_qshiftr\"]=function(){return(_mpd_qshiftr=Module[\"_mpd_qshiftr\"]=Module[\"asm\"][\"mpd_qshiftr\"]).apply(null,arguments)};var _mpd_qshiftn=Module[\"_mpd_qshiftn\"]=function(){return(_mpd_qshiftn=Module[\"_mpd_qshiftn\"]=Module[\"asm\"][\"mpd_qshiftn\"]).apply(null,arguments)};var _mpd_qadd_ssize=Module[\"_mpd_qadd_ssize\"]=function(){return(_mpd_qadd_ssize=Module[\"_mpd_qadd_ssize\"]=Module[\"asm\"][\"mpd_qadd_ssize\"]).apply(null,arguments)};var _mpd_qadd_uint=Module[\"_mpd_qadd_uint\"]=function(){return(_mpd_qadd_uint=Module[\"_mpd_qadd_uint\"]=Module[\"asm\"][\"mpd_qadd_uint\"]).apply(null,arguments)};var _mpd_qsub_ssize=Module[\"_mpd_qsub_ssize\"]=function(){return(_mpd_qsub_ssize=Module[\"_mpd_qsub_ssize\"]=Module[\"asm\"][\"mpd_qsub_ssize\"]).apply(null,arguments)};var _mpd_qsub_uint=Module[\"_mpd_qsub_uint\"]=function(){return(_mpd_qsub_uint=Module[\"_mpd_qsub_uint\"]=Module[\"asm\"][\"mpd_qsub_uint\"]).apply(null,arguments)};var _mpd_qadd_i32=Module[\"_mpd_qadd_i32\"]=function(){return(_mpd_qadd_i32=Module[\"_mpd_qadd_i32\"]=Module[\"asm\"][\"mpd_qadd_i32\"]).apply(null,arguments)};var _mpd_qadd_u32=Module[\"_mpd_qadd_u32\"]=function(){return(_mpd_qadd_u32=Module[\"_mpd_qadd_u32\"]=Module[\"asm\"][\"mpd_qadd_u32\"]).apply(null,arguments)};var _mpd_qadd_i64=Module[\"_mpd_qadd_i64\"]=function(){return(_mpd_qadd_i64=Module[\"_mpd_qadd_i64\"]=Module[\"asm\"][\"mpd_qadd_i64\"]).apply(null,arguments)};var _mpd_qadd_u64=Module[\"_mpd_qadd_u64\"]=function(){return(_mpd_qadd_u64=Module[\"_mpd_qadd_u64\"]=Module[\"asm\"][\"mpd_qadd_u64\"]).apply(null,arguments)};var _mpd_qsub_i32=Module[\"_mpd_qsub_i32\"]=function(){return(_mpd_qsub_i32=Module[\"_mpd_qsub_i32\"]=Module[\"asm\"][\"mpd_qsub_i32\"]).apply(null,arguments)};var _mpd_qsub_u32=Module[\"_mpd_qsub_u32\"]=function(){return(_mpd_qsub_u32=Module[\"_mpd_qsub_u32\"]=Module[\"asm\"][\"mpd_qsub_u32\"]).apply(null,arguments)};var _mpd_qsub_i64=Module[\"_mpd_qsub_i64\"]=function(){return(_mpd_qsub_i64=Module[\"_mpd_qsub_i64\"]=Module[\"asm\"][\"mpd_qsub_i64\"]).apply(null,arguments)};var _mpd_qsub_u64=Module[\"_mpd_qsub_u64\"]=function(){return(_mpd_qsub_u64=Module[\"_mpd_qsub_u64\"]=Module[\"asm\"][\"mpd_qsub_u64\"]).apply(null,arguments)};var _mpd_qdiv_ssize=Module[\"_mpd_qdiv_ssize\"]=function(){return(_mpd_qdiv_ssize=Module[\"_mpd_qdiv_ssize\"]=Module[\"asm\"][\"mpd_qdiv_ssize\"]).apply(null,arguments)};var _mpd_qdiv_uint=Module[\"_mpd_qdiv_uint\"]=function(){return(_mpd_qdiv_uint=Module[\"_mpd_qdiv_uint\"]=Module[\"asm\"][\"mpd_qdiv_uint\"]).apply(null,arguments)};var _mpd_qdiv_i32=Module[\"_mpd_qdiv_i32\"]=function(){return(_mpd_qdiv_i32=Module[\"_mpd_qdiv_i32\"]=Module[\"asm\"][\"mpd_qdiv_i32\"]).apply(null,arguments)};var _mpd_qdiv_u32=Module[\"_mpd_qdiv_u32\"]=function(){return(_mpd_qdiv_u32=Module[\"_mpd_qdiv_u32\"]=Module[\"asm\"][\"mpd_qdiv_u32\"]).apply(null,arguments)};var _mpd_qdiv_i64=Module[\"_mpd_qdiv_i64\"]=function(){return(_mpd_qdiv_i64=Module[\"_mpd_qdiv_i64\"]=Module[\"asm\"][\"mpd_qdiv_i64\"]).apply(null,arguments)};var _mpd_qdiv_u64=Module[\"_mpd_qdiv_u64\"]=function(){return(_mpd_qdiv_u64=Module[\"_mpd_qdiv_u64\"]=Module[\"asm\"][\"mpd_qdiv_u64\"]).apply(null,arguments)};var _mpd_qln10=Module[\"_mpd_qln10\"]=function(){return(_mpd_qln10=Module[\"_mpd_qln10\"]=Module[\"asm\"][\"mpd_qln10\"]).apply(null,arguments)};var _mpd_qmul_ssize=Module[\"_mpd_qmul_ssize\"]=function(){return(_mpd_qmul_ssize=Module[\"_mpd_qmul_ssize\"]=Module[\"asm\"][\"mpd_qmul_ssize\"]).apply(null,arguments)};var _mpd_qmul_uint=Module[\"_mpd_qmul_uint\"]=function(){return(_mpd_qmul_uint=Module[\"_mpd_qmul_uint\"]=Module[\"asm\"][\"mpd_qmul_uint\"]).apply(null,arguments)};var _mpd_qmul_i32=Module[\"_mpd_qmul_i32\"]=function(){return(_mpd_qmul_i32=Module[\"_mpd_qmul_i32\"]=Module[\"asm\"][\"mpd_qmul_i32\"]).apply(null,arguments)};var _mpd_qmul_u32=Module[\"_mpd_qmul_u32\"]=function(){return(_mpd_qmul_u32=Module[\"_mpd_qmul_u32\"]=Module[\"asm\"][\"mpd_qmul_u32\"]).apply(null,arguments)};var _mpd_qmul_i64=Module[\"_mpd_qmul_i64\"]=function(){return(_mpd_qmul_i64=Module[\"_mpd_qmul_i64\"]=Module[\"asm\"][\"mpd_qmul_i64\"]).apply(null,arguments)};var _mpd_qmul_u64=Module[\"_mpd_qmul_u64\"]=function(){return(_mpd_qmul_u64=Module[\"_mpd_qmul_u64\"]=Module[\"asm\"][\"mpd_qmul_u64\"]).apply(null,arguments)};var _mpd_qtrunc=Module[\"_mpd_qtrunc\"]=function(){return(_mpd_qtrunc=Module[\"_mpd_qtrunc\"]=Module[\"asm\"][\"mpd_qtrunc\"]).apply(null,arguments)};var _mpd_qfloor=Module[\"_mpd_qfloor\"]=function(){return(_mpd_qfloor=Module[\"_mpd_qfloor\"]=Module[\"asm\"][\"mpd_qfloor\"]).apply(null,arguments)};var _mpd_qceil=Module[\"_mpd_qceil\"]=function(){return(_mpd_qceil=Module[\"_mpd_qceil\"]=Module[\"asm\"][\"mpd_qceil\"]).apply(null,arguments)};var _mpd_qinvroot=Module[\"_mpd_qinvroot\"]=function(){return(_mpd_qinvroot=Module[\"_mpd_qinvroot\"]=Module[\"asm\"][\"mpd_qinvroot\"]).apply(null,arguments)};var _mpd_sizeinbase=Module[\"_mpd_sizeinbase\"]=function(){return(_mpd_sizeinbase=Module[\"_mpd_sizeinbase\"]=Module[\"asm\"][\"mpd_sizeinbase\"]).apply(null,arguments)};var _mpd_qexport_u16=Module[\"_mpd_qexport_u16\"]=function(){return(_mpd_qexport_u16=Module[\"_mpd_qexport_u16\"]=Module[\"asm\"][\"mpd_qexport_u16\"]).apply(null,arguments)};var _mpd_qimport_u16=Module[\"_mpd_qimport_u16\"]=function(){return(_mpd_qimport_u16=Module[\"_mpd_qimport_u16\"]=Module[\"asm\"][\"mpd_qimport_u16\"]).apply(null,arguments)};var _transpose_pow2=Module[\"_transpose_pow2\"]=function(){return(_transpose_pow2=Module[\"_transpose_pow2\"]=Module[\"asm\"][\"transpose_pow2\"]).apply(null,arguments)};var _std_trans=Module[\"_std_trans\"]=function(){return(_std_trans=Module[\"_std_trans\"]=Module[\"asm\"][\"std_trans\"]).apply(null,arguments)};var _munmap=Module[\"_munmap\"]=function(){return(_munmap=Module[\"_munmap\"]=Module[\"asm\"][\"munmap\"]).apply(null,arguments)};var _mmap=Module[\"_mmap\"]=function(){return(_mmap=Module[\"_mmap\"]=Module[\"asm\"][\"mmap\"]).apply(null,arguments)};var _msync=Module[\"_msync\"]=function(){return(_msync=Module[\"_msync\"]=Module[\"asm\"][\"msync\"]).apply(null,arguments)};var _madvise=Module[\"_madvise\"]=function(){return(_madvise=Module[\"_madvise\"]=Module[\"asm\"][\"madvise\"]).apply(null,arguments)};var _ftruncate=Module[\"_ftruncate\"]=function(){return(_ftruncate=Module[\"_ftruncate\"]=Module[\"asm\"][\"ftruncate\"]).apply(null,arguments)};var _mremap=Module[\"_mremap\"]=function(){return(_mremap=Module[\"_mremap\"]=Module[\"asm\"][\"mremap\"]).apply(null,arguments)};var __PySignal_AfterFork=Module[\"__PySignal_AfterFork\"]=function(){return(__PySignal_AfterFork=Module[\"__PySignal_AfterFork\"]=Module[\"asm\"][\"_PySignal_AfterFork\"]).apply(null,arguments)};var _PyOS_AfterFork=Module[\"_PyOS_AfterFork\"]=function(){return(_PyOS_AfterFork=Module[\"_PyOS_AfterFork\"]=Module[\"asm\"][\"PyOS_AfterFork\"]).apply(null,arguments)};var __PyLong_FromUid=Module[\"__PyLong_FromUid\"]=function(){return(__PyLong_FromUid=Module[\"__PyLong_FromUid\"]=Module[\"asm\"][\"_PyLong_FromUid\"]).apply(null,arguments)};var __PyLong_FromGid=Module[\"__PyLong_FromGid\"]=function(){return(__PyLong_FromGid=Module[\"__PyLong_FromGid\"]=Module[\"asm\"][\"_PyLong_FromGid\"]).apply(null,arguments)};var __Py_Sigset_Converter=Module[\"__Py_Sigset_Converter\"]=function(){return(__Py_Sigset_Converter=Module[\"__Py_Sigset_Converter\"]=Module[\"asm\"][\"_Py_Sigset_Converter\"]).apply(null,arguments)};var _access=Module[\"_access\"]=function(){return(_access=Module[\"_access\"]=Module[\"asm\"][\"access\"]).apply(null,arguments)};var _ttyname_r=Module[\"_ttyname_r\"]=function(){return(_ttyname_r=Module[\"_ttyname_r\"]=Module[\"asm\"][\"ttyname_r\"]).apply(null,arguments)};var _fchdir=Module[\"_fchdir\"]=function(){return(_fchdir=Module[\"_fchdir\"]=Module[\"asm\"][\"fchdir\"]).apply(null,arguments)};var _fchmod=Module[\"_fchmod\"]=function(){return(_fchmod=Module[\"_fchmod\"]=Module[\"asm\"][\"fchmod\"]).apply(null,arguments)};var _lchmod=Module[\"_lchmod\"]=function(){return(_lchmod=Module[\"_lchmod\"]=Module[\"asm\"][\"lchmod\"]).apply(null,arguments)};var _chmod=Module[\"_chmod\"]=function(){return(_chmod=Module[\"_chmod\"]=Module[\"asm\"][\"chmod\"]).apply(null,arguments)};var _fchown=Module[\"_fchown\"]=function(){return(_fchown=Module[\"_fchown\"]=Module[\"asm\"][\"fchown\"]).apply(null,arguments)};var _lchown=Module[\"_lchown\"]=function(){return(_lchown=Module[\"_lchown\"]=Module[\"asm\"][\"lchown\"]).apply(null,arguments)};var _chown=Module[\"_chown\"]=function(){return(_chown=Module[\"_chown\"]=Module[\"asm\"][\"chown\"]).apply(null,arguments)};var _ctermid=Module[\"_ctermid\"]=function(){return(_ctermid=Module[\"_ctermid\"]=Module[\"asm\"][\"ctermid\"]).apply(null,arguments)};var _link=Module[\"_link\"]=function(){return(_link=Module[\"_link\"]=Module[\"asm\"][\"link\"]).apply(null,arguments)};var _fdopendir=Module[\"_fdopendir\"]=function(){return(_fdopendir=Module[\"_fdopendir\"]=Module[\"asm\"][\"fdopendir\"]).apply(null,arguments)};var _rewinddir=Module[\"_rewinddir\"]=function(){return(_rewinddir=Module[\"_rewinddir\"]=Module[\"asm\"][\"rewinddir\"]).apply(null,arguments)};var _mkdir=Module[\"_mkdir\"]=function(){return(_mkdir=Module[\"_mkdir\"]=Module[\"asm\"][\"mkdir\"]).apply(null,arguments)};var _getpriority=Module[\"_getpriority\"]=function(){return(_getpriority=Module[\"_getpriority\"]=Module[\"asm\"][\"getpriority\"]).apply(null,arguments)};var _setpriority=Module[\"_setpriority\"]=function(){return(_setpriority=Module[\"_setpriority\"]=Module[\"asm\"][\"setpriority\"]).apply(null,arguments)};var _unlinkat=Module[\"_unlinkat\"]=function(){return(_unlinkat=Module[\"_unlinkat\"]=Module[\"asm\"][\"unlinkat\"]).apply(null,arguments)};var _rmdir=Module[\"_rmdir\"]=function(){return(_rmdir=Module[\"_rmdir\"]=Module[\"asm\"][\"rmdir\"]).apply(null,arguments)};var _symlink=Module[\"_symlink\"]=function(){return(_symlink=Module[\"_symlink\"]=Module[\"asm\"][\"symlink\"]).apply(null,arguments)};var _uname=Module[\"_uname\"]=function(){return(_uname=Module[\"_uname\"]=Module[\"asm\"][\"uname\"]).apply(null,arguments)};var _futimesat=Module[\"_futimesat\"]=function(){return(_futimesat=Module[\"_futimesat\"]=Module[\"asm\"][\"futimesat\"]).apply(null,arguments)};var _futimens=Module[\"_futimens\"]=function(){return(_futimens=Module[\"_futimens\"]=Module[\"asm\"][\"futimens\"]).apply(null,arguments)};var _fexecve=Module[\"_fexecve\"]=function(){return(_fexecve=Module[\"_fexecve\"]=Module[\"asm\"][\"fexecve\"]).apply(null,arguments)};var _sched_yield=Module[\"_sched_yield\"]=function(){return(_sched_yield=Module[\"_sched_yield\"]=Module[\"asm\"][\"sched_yield\"]).apply(null,arguments)};var _openpty=Module[\"_openpty\"]=function(){return(_openpty=Module[\"_openpty\"]=Module[\"asm\"][\"openpty\"]).apply(null,arguments)};var _forkpty=Module[\"_forkpty\"]=function(){return(_forkpty=Module[\"_forkpty\"]=Module[\"asm\"][\"forkpty\"]).apply(null,arguments)};var _getegid=Module[\"_getegid\"]=function(){return(_getegid=Module[\"_getegid\"]=Module[\"asm\"][\"getegid\"]).apply(null,arguments)};var _geteuid=Module[\"_geteuid\"]=function(){return(_geteuid=Module[\"_geteuid\"]=Module[\"asm\"][\"geteuid\"]).apply(null,arguments)};var _getgid=Module[\"_getgid\"]=function(){return(_getgid=Module[\"_getgid\"]=Module[\"asm\"][\"getgid\"]).apply(null,arguments)};var _getgroups=Module[\"_getgroups\"]=function(){return(_getgroups=Module[\"_getgroups\"]=Module[\"asm\"][\"getgroups\"]).apply(null,arguments)};var _getpgrp=Module[\"_getpgrp\"]=function(){return(_getpgrp=Module[\"_getpgrp\"]=Module[\"asm\"][\"getpgrp\"]).apply(null,arguments)};var _getppid=Module[\"_getppid\"]=function(){return(_getppid=Module[\"_getppid\"]=Module[\"asm\"][\"getppid\"]).apply(null,arguments)};var _getuid=Module[\"_getuid\"]=function(){return(_getuid=Module[\"_getuid\"]=Module[\"asm\"][\"getuid\"]).apply(null,arguments)};var _getlogin=Module[\"_getlogin\"]=function(){return(_getlogin=Module[\"_getlogin\"]=Module[\"asm\"][\"getlogin\"]).apply(null,arguments)};var _setuid=Module[\"_setuid\"]=function(){return(_setuid=Module[\"_setuid\"]=Module[\"asm\"][\"setuid\"]).apply(null,arguments)};var _seteuid=Module[\"_seteuid\"]=function(){return(_seteuid=Module[\"_seteuid\"]=Module[\"asm\"][\"seteuid\"]).apply(null,arguments)};var _setgid=Module[\"_setgid\"]=function(){return(_setgid=Module[\"_setgid\"]=Module[\"asm\"][\"setgid\"]).apply(null,arguments)};var _setegid=Module[\"_setegid\"]=function(){return(_setegid=Module[\"_setegid\"]=Module[\"asm\"][\"setegid\"]).apply(null,arguments)};var _getpgid=Module[\"_getpgid\"]=function(){return(_getpgid=Module[\"_getpgid\"]=Module[\"asm\"][\"getpgid\"]).apply(null,arguments)};var _setpgrp=Module[\"_setpgrp\"]=function(){return(_setpgrp=Module[\"_setpgrp\"]=Module[\"asm\"][\"setpgrp\"]).apply(null,arguments)};var _wait=Module[\"_wait\"]=function(){return(_wait=Module[\"_wait\"]=Module[\"asm\"][\"wait\"]).apply(null,arguments)};var _waitpid=Module[\"_waitpid\"]=function(){return(_waitpid=Module[\"_waitpid\"]=Module[\"asm\"][\"waitpid\"]).apply(null,arguments)};var _getsid=Module[\"_getsid\"]=function(){return(_getsid=Module[\"_getsid\"]=Module[\"asm\"][\"getsid\"]).apply(null,arguments)};var _setpgid=Module[\"_setpgid\"]=function(){return(_setpgid=Module[\"_setpgid\"]=Module[\"asm\"][\"setpgid\"]).apply(null,arguments)};var _tcgetpgrp=Module[\"_tcgetpgrp\"]=function(){return(_tcgetpgrp=Module[\"_tcgetpgrp\"]=Module[\"asm\"][\"tcgetpgrp\"]).apply(null,arguments)};var _tcsetpgrp=Module[\"_tcsetpgrp\"]=function(){return(_tcsetpgrp=Module[\"_tcsetpgrp\"]=Module[\"asm\"][\"tcsetpgrp\"]).apply(null,arguments)};var _lockf=Module[\"_lockf\"]=function(){return(_lockf=Module[\"_lockf\"]=Module[\"asm\"][\"lockf\"]).apply(null,arguments)};var _readv=Module[\"_readv\"]=function(){return(_readv=Module[\"_readv\"]=Module[\"asm\"][\"readv\"]).apply(null,arguments)};var _pread=Module[\"_pread\"]=function(){return(_pread=Module[\"_pread\"]=Module[\"asm\"][\"pread\"]).apply(null,arguments)};var _writev=Module[\"_writev\"]=function(){return(_writev=Module[\"_writev\"]=Module[\"asm\"][\"writev\"]).apply(null,arguments)};var _pwrite=Module[\"_pwrite\"]=function(){return(_pwrite=Module[\"_pwrite\"]=Module[\"asm\"][\"pwrite\"]).apply(null,arguments)};var _pipe=Module[\"_pipe\"]=function(){return(_pipe=Module[\"_pipe\"]=Module[\"asm\"][\"pipe\"]).apply(null,arguments)};var _mkfifoat=Module[\"_mkfifoat\"]=function(){return(_mkfifoat=Module[\"_mkfifoat\"]=Module[\"asm\"][\"mkfifoat\"]).apply(null,arguments)};var _mkfifo=Module[\"_mkfifo\"]=function(){return(_mkfifo=Module[\"_mkfifo\"]=Module[\"asm\"][\"mkfifo\"]).apply(null,arguments)};var _mknodat=Module[\"_mknodat\"]=function(){return(_mknodat=Module[\"_mknodat\"]=Module[\"asm\"][\"mknodat\"]).apply(null,arguments)};var _mknod=Module[\"_mknod\"]=function(){return(_mknod=Module[\"_mknod\"]=Module[\"asm\"][\"mknod\"]).apply(null,arguments)};var _truncate=Module[\"_truncate\"]=function(){return(_truncate=Module[\"_truncate\"]=Module[\"asm\"][\"truncate\"]).apply(null,arguments)};var _posix_fallocate=Module[\"_posix_fallocate\"]=function(){return(_posix_fallocate=Module[\"_posix_fallocate\"]=Module[\"asm\"][\"posix_fallocate\"]).apply(null,arguments)};var _posix_fadvise=Module[\"_posix_fadvise\"]=function(){return(_posix_fadvise=Module[\"_posix_fadvise\"]=Module[\"asm\"][\"posix_fadvise\"]).apply(null,arguments)};var _unsetenv=Module[\"_unsetenv\"]=function(){return(_unsetenv=Module[\"_unsetenv\"]=Module[\"asm\"][\"unsetenv\"]).apply(null,arguments)};var _fsync=Module[\"_fsync\"]=function(){return(_fsync=Module[\"_fsync\"]=Module[\"asm\"][\"fsync\"]).apply(null,arguments)};var _sync=Module[\"_sync\"]=function(){return(_sync=Module[\"_sync\"]=Module[\"asm\"][\"sync\"]).apply(null,arguments)};var _fdatasync=Module[\"_fdatasync\"]=function(){return(_fdatasync=Module[\"_fdatasync\"]=Module[\"asm\"][\"fdatasync\"]).apply(null,arguments)};var _fstatvfs=Module[\"_fstatvfs\"]=function(){return(_fstatvfs=Module[\"_fstatvfs\"]=Module[\"asm\"][\"fstatvfs\"]).apply(null,arguments)};var _statvfs=Module[\"_statvfs\"]=function(){return(_statvfs=Module[\"_statvfs\"]=Module[\"asm\"][\"statvfs\"]).apply(null,arguments)};var _fpathconf=Module[\"_fpathconf\"]=function(){return(_fpathconf=Module[\"_fpathconf\"]=Module[\"asm\"][\"fpathconf\"]).apply(null,arguments)};var _pathconf=Module[\"_pathconf\"]=function(){return(_pathconf=Module[\"_pathconf\"]=Module[\"asm\"][\"pathconf\"]).apply(null,arguments)};var _setresuid=Module[\"_setresuid\"]=function(){return(_setresuid=Module[\"_setresuid\"]=Module[\"asm\"][\"setresuid\"]).apply(null,arguments)};var _setresgid=Module[\"_setresgid\"]=function(){return(_setresgid=Module[\"_setresgid\"]=Module[\"asm\"][\"setresgid\"]).apply(null,arguments)};var _getresuid=Module[\"_getresuid\"]=function(){return(_getresuid=Module[\"_getresuid\"]=Module[\"asm\"][\"getresuid\"]).apply(null,arguments)};var _getresgid=Module[\"_getresgid\"]=function(){return(_getresgid=Module[\"_getresgid\"]=Module[\"asm\"][\"getresgid\"]).apply(null,arguments)};var _lstat=Module[\"_lstat\"]=function(){return(_lstat=Module[\"_lstat\"]=Module[\"asm\"][\"lstat\"]).apply(null,arguments)};var _fstatat=Module[\"_fstatat\"]=function(){return(_fstatat=Module[\"_fstatat\"]=Module[\"asm\"][\"fstatat\"]).apply(null,arguments)};var _posix_spawn_file_actions_init=Module[\"_posix_spawn_file_actions_init\"]=function(){return(_posix_spawn_file_actions_init=Module[\"_posix_spawn_file_actions_init\"]=Module[\"asm\"][\"posix_spawn_file_actions_init\"]).apply(null,arguments)};var _posix_spawn_file_actions_addopen=Module[\"_posix_spawn_file_actions_addopen\"]=function(){return(_posix_spawn_file_actions_addopen=Module[\"_posix_spawn_file_actions_addopen\"]=Module[\"asm\"][\"posix_spawn_file_actions_addopen\"]).apply(null,arguments)};var _posix_spawn_file_actions_addclose=Module[\"_posix_spawn_file_actions_addclose\"]=function(){return(_posix_spawn_file_actions_addclose=Module[\"_posix_spawn_file_actions_addclose\"]=Module[\"asm\"][\"posix_spawn_file_actions_addclose\"]).apply(null,arguments)};var _posix_spawn_file_actions_adddup2=Module[\"_posix_spawn_file_actions_adddup2\"]=function(){return(_posix_spawn_file_actions_adddup2=Module[\"_posix_spawn_file_actions_adddup2\"]=Module[\"asm\"][\"posix_spawn_file_actions_adddup2\"]).apply(null,arguments)};var _posix_spawnattr_init=Module[\"_posix_spawnattr_init\"]=function(){return(_posix_spawnattr_init=Module[\"_posix_spawnattr_init\"]=Module[\"asm\"][\"posix_spawnattr_init\"]).apply(null,arguments)};var _posix_spawnattr_setpgroup=Module[\"_posix_spawnattr_setpgroup\"]=function(){return(_posix_spawnattr_setpgroup=Module[\"_posix_spawnattr_setpgroup\"]=Module[\"asm\"][\"posix_spawnattr_setpgroup\"]).apply(null,arguments)};var _posix_spawnattr_setschedpolicy=Module[\"_posix_spawnattr_setschedpolicy\"]=function(){return(_posix_spawnattr_setschedpolicy=Module[\"_posix_spawnattr_setschedpolicy\"]=Module[\"asm\"][\"posix_spawnattr_setschedpolicy\"]).apply(null,arguments)};var _posix_spawnattr_setschedparam=Module[\"_posix_spawnattr_setschedparam\"]=function(){return(_posix_spawnattr_setschedparam=Module[\"_posix_spawnattr_setschedparam\"]=Module[\"asm\"][\"posix_spawnattr_setschedparam\"]).apply(null,arguments)};var _posix_spawnattr_setflags=Module[\"_posix_spawnattr_setflags\"]=function(){return(_posix_spawnattr_setflags=Module[\"_posix_spawnattr_setflags\"]=Module[\"asm\"][\"posix_spawnattr_setflags\"]).apply(null,arguments)};var _posix_spawnp=Module[\"_posix_spawnp\"]=function(){return(_posix_spawnp=Module[\"_posix_spawnp\"]=Module[\"asm\"][\"posix_spawnp\"]).apply(null,arguments)};var _posix_spawnattr_destroy=Module[\"_posix_spawnattr_destroy\"]=function(){return(_posix_spawnattr_destroy=Module[\"_posix_spawnattr_destroy\"]=Module[\"asm\"][\"posix_spawnattr_destroy\"]).apply(null,arguments)};var _posix_spawn_file_actions_destroy=Module[\"_posix_spawn_file_actions_destroy\"]=function(){return(_posix_spawn_file_actions_destroy=Module[\"_posix_spawn_file_actions_destroy\"]=Module[\"asm\"][\"posix_spawn_file_actions_destroy\"]).apply(null,arguments)};var _rename=Module[\"_rename\"]=function(){return(_rename=Module[\"_rename\"]=Module[\"asm\"][\"rename\"]).apply(null,arguments)};var _unlink=Module[\"_unlink\"]=function(){return(_unlink=Module[\"_unlink\"]=Module[\"asm\"][\"unlink\"]).apply(null,arguments)};var _isalnum=Module[\"_isalnum\"]=function(){return(_isalnum=Module[\"_isalnum\"]=Module[\"asm\"][\"isalnum\"]).apply(null,arguments)};var _toupper=Module[\"_toupper\"]=function(){return(_toupper=Module[\"_toupper\"]=Module[\"asm\"][\"toupper\"]).apply(null,arguments)};var _PySignal_SetWakeupFd=Module[\"_PySignal_SetWakeupFd\"]=function(){return(_PySignal_SetWakeupFd=Module[\"_PySignal_SetWakeupFd\"]=Module[\"asm\"][\"PySignal_SetWakeupFd\"]).apply(null,arguments)};var __PyErr_CheckSignals=Module[\"__PyErr_CheckSignals\"]=function(){return(__PyErr_CheckSignals=Module[\"__PyErr_CheckSignals\"]=Module[\"asm\"][\"_PyErr_CheckSignals\"]).apply(null,arguments)};var _PyOS_InitInterrupts=Module[\"_PyOS_InitInterrupts\"]=function(){return(_PyOS_InitInterrupts=Module[\"_PyOS_InitInterrupts\"]=Module[\"asm\"][\"PyOS_InitInterrupts\"]).apply(null,arguments)};var _PyOS_InterruptOccurred=Module[\"_PyOS_InterruptOccurred\"]=function(){return(_PyOS_InterruptOccurred=Module[\"_PyOS_InterruptOccurred\"]=Module[\"asm\"][\"PyOS_InterruptOccurred\"]).apply(null,arguments)};var __PyOS_IsMainThread=Module[\"__PyOS_IsMainThread\"]=function(){return(__PyOS_IsMainThread=Module[\"__PyOS_IsMainThread\"]=Module[\"asm\"][\"_PyOS_IsMainThread\"]).apply(null,arguments)};var _strsignal=Module[\"_strsignal\"]=function(){return(_strsignal=Module[\"_strsignal\"]=Module[\"asm\"][\"strsignal\"]).apply(null,arguments)};var _pause=Module[\"_pause\"]=function(){return(_pause=Module[\"_pause\"]=Module[\"asm\"][\"pause\"]).apply(null,arguments)};var _clock_settime=Module[\"_clock_settime\"]=function(){return(_clock_settime=Module[\"_clock_settime\"]=Module[\"asm\"][\"clock_settime\"]).apply(null,arguments)};var _getrusage=Module[\"_getrusage\"]=function(){return(_getrusage=Module[\"_getrusage\"]=Module[\"asm\"][\"getrusage\"]).apply(null,arguments)};var _wcscoll=Module[\"_wcscoll\"]=function(){return(_wcscoll=Module[\"_wcscoll\"]=Module[\"asm\"][\"wcscoll\"]).apply(null,arguments)};var _wcsxfrm=Module[\"_wcsxfrm\"]=function(){return(_wcsxfrm=Module[\"_wcsxfrm\"]=Module[\"asm\"][\"wcsxfrm\"]).apply(null,arguments)};var _gettext=Module[\"_gettext\"]=function(){return(_gettext=Module[\"_gettext\"]=Module[\"asm\"][\"gettext\"]).apply(null,arguments)};var _dgettext=Module[\"_dgettext\"]=function(){return(_dgettext=Module[\"_dgettext\"]=Module[\"asm\"][\"dgettext\"]).apply(null,arguments)};var _dcgettext=Module[\"_dcgettext\"]=function(){return(_dcgettext=Module[\"_dcgettext\"]=Module[\"asm\"][\"dcgettext\"]).apply(null,arguments)};var _textdomain=Module[\"_textdomain\"]=function(){return(_textdomain=Module[\"_textdomain\"]=Module[\"asm\"][\"textdomain\"]).apply(null,arguments)};var _bindtextdomain=Module[\"_bindtextdomain\"]=function(){return(_bindtextdomain=Module[\"_bindtextdomain\"]=Module[\"asm\"][\"bindtextdomain\"]).apply(null,arguments)};var _bind_textdomain_codeset=Module[\"_bind_textdomain_codeset\"]=function(){return(_bind_textdomain_codeset=Module[\"_bind_textdomain_codeset\"]=Module[\"asm\"][\"bind_textdomain_codeset\"]).apply(null,arguments)};var _PyNumber_AsOff_t=Module[\"_PyNumber_AsOff_t\"]=function(){return(_PyNumber_AsOff_t=Module[\"_PyNumber_AsOff_t\"]=Module[\"asm\"][\"PyNumber_AsOff_t\"]).apply(null,arguments)};var __PyIO_get_module_state=Module[\"__PyIO_get_module_state\"]=function(){return(__PyIO_get_module_state=Module[\"__PyIO_get_module_state\"]=Module[\"asm\"][\"_PyIO_get_module_state\"]).apply(null,arguments)};var __PyIO_get_locale_module=Module[\"__PyIO_get_locale_module\"]=function(){return(__PyIO_get_locale_module=Module[\"__PyIO_get_locale_module\"]=Module[\"asm\"][\"_PyIO_get_locale_module\"]).apply(null,arguments)};var __PyIOBase_check_closed=Module[\"__PyIOBase_check_closed\"]=function(){return(__PyIOBase_check_closed=Module[\"__PyIOBase_check_closed\"]=Module[\"asm\"][\"_PyIOBase_check_closed\"]).apply(null,arguments)};var __PyIOBase_finalize=Module[\"__PyIOBase_finalize\"]=function(){return(__PyIOBase_finalize=Module[\"__PyIOBase_finalize\"]=Module[\"asm\"][\"_PyIOBase_finalize\"]).apply(null,arguments)};var __PyIOBase_check_seekable=Module[\"__PyIOBase_check_seekable\"]=function(){return(__PyIOBase_check_seekable=Module[\"__PyIOBase_check_seekable\"]=Module[\"asm\"][\"_PyIOBase_check_seekable\"]).apply(null,arguments)};var __PyIOBase_check_readable=Module[\"__PyIOBase_check_readable\"]=function(){return(__PyIOBase_check_readable=Module[\"__PyIOBase_check_readable\"]=Module[\"asm\"][\"_PyIOBase_check_readable\"]).apply(null,arguments)};var __PyIOBase_check_writable=Module[\"__PyIOBase_check_writable\"]=function(){return(__PyIOBase_check_writable=Module[\"__PyIOBase_check_writable\"]=Module[\"asm\"][\"_PyIOBase_check_writable\"]).apply(null,arguments)};var __PyIO_trap_eintr=Module[\"__PyIO_trap_eintr\"]=function(){return(__PyIO_trap_eintr=Module[\"__PyIO_trap_eintr\"]=Module[\"asm\"][\"_PyIO_trap_eintr\"]).apply(null,arguments)};var __PyFileIO_closed=Module[\"__PyFileIO_closed\"]=function(){return(__PyFileIO_closed=Module[\"__PyFileIO_closed\"]=Module[\"asm\"][\"_PyFileIO_closed\"]).apply(null,arguments)};var __PyIncrementalNewlineDecoder_decode=Module[\"__PyIncrementalNewlineDecoder_decode\"]=function(){return(__PyIncrementalNewlineDecoder_decode=Module[\"__PyIncrementalNewlineDecoder_decode\"]=Module[\"asm\"][\"_PyIncrementalNewlineDecoder_decode\"]).apply(null,arguments)};var __PyIO_find_line_ending=Module[\"__PyIO_find_line_ending\"]=function(){return(__PyIO_find_line_ending=Module[\"__PyIO_find_line_ending\"]=Module[\"asm\"][\"_PyIO_find_line_ending\"]).apply(null,arguments)};var _getrlimit=Module[\"_getrlimit\"]=function(){return(_getrlimit=Module[\"_getrlimit\"]=Module[\"asm\"][\"getrlimit\"]).apply(null,arguments)};var _setrlimit=Module[\"_setrlimit\"]=function(){return(_setrlimit=Module[\"_setrlimit\"]=Module[\"asm\"][\"setrlimit\"]).apply(null,arguments)};var _PyTraceMalloc_Track=Module[\"_PyTraceMalloc_Track\"]=function(){return(_PyTraceMalloc_Track=Module[\"_PyTraceMalloc_Track\"]=Module[\"asm\"][\"PyTraceMalloc_Track\"]).apply(null,arguments)};var _PyTraceMalloc_Untrack=Module[\"_PyTraceMalloc_Untrack\"]=function(){return(_PyTraceMalloc_Untrack=Module[\"_PyTraceMalloc_Untrack\"]=Module[\"asm\"][\"PyTraceMalloc_Untrack\"]).apply(null,arguments)};var __PyTraceMalloc_GetTraceback=Module[\"__PyTraceMalloc_GetTraceback\"]=function(){return(__PyTraceMalloc_GetTraceback=Module[\"__PyTraceMalloc_GetTraceback\"]=Module[\"asm\"][\"_PyTraceMalloc_GetTraceback\"]).apply(null,arguments)};var __Py_compile_string=Module[\"__Py_compile_string\"]=function(){return(__Py_compile_string=Module[\"__Py_compile_string\"]=Module[\"asm\"][\"_Py_compile_string\"]).apply(null,arguments)};var __Py_parse_string=Module[\"__Py_parse_string\"]=function(){return(__Py_parse_string=Module[\"__Py_parse_string\"]=Module[\"asm\"][\"_Py_parse_string\"]).apply(null,arguments)};var _ffi_prep_cif_core=Module[\"_ffi_prep_cif_core\"]=function(){return(_ffi_prep_cif_core=Module[\"_ffi_prep_cif_core\"]=Module[\"asm\"][\"ffi_prep_cif_core\"]).apply(null,arguments)};var _ffi_prep_cif_machdep_var=Module[\"_ffi_prep_cif_machdep_var\"]=function(){return(_ffi_prep_cif_machdep_var=Module[\"_ffi_prep_cif_machdep_var\"]=Module[\"asm\"][\"ffi_prep_cif_machdep_var\"]).apply(null,arguments)};var _ffi_prep_cif_machdep=Module[\"_ffi_prep_cif_machdep\"]=function(){return(_ffi_prep_cif_machdep=Module[\"_ffi_prep_cif_machdep\"]=Module[\"asm\"][\"ffi_prep_cif_machdep\"]).apply(null,arguments)};var _ffi_prep_closure=Module[\"_ffi_prep_closure\"]=function(){return(_ffi_prep_closure=Module[\"_ffi_prep_closure\"]=Module[\"asm\"][\"ffi_prep_closure\"]).apply(null,arguments)};var _ffi_get_struct_offsets=Module[\"_ffi_get_struct_offsets\"]=function(){return(_ffi_get_struct_offsets=Module[\"_ffi_get_struct_offsets\"]=Module[\"asm\"][\"ffi_get_struct_offsets\"]).apply(null,arguments)};var _ffi_java_raw_size=Module[\"_ffi_java_raw_size\"]=function(){return(_ffi_java_raw_size=Module[\"_ffi_java_raw_size\"]=Module[\"asm\"][\"ffi_java_raw_size\"]).apply(null,arguments)};var _ffi_java_raw_to_ptrarray=Module[\"_ffi_java_raw_to_ptrarray\"]=function(){return(_ffi_java_raw_to_ptrarray=Module[\"_ffi_java_raw_to_ptrarray\"]=Module[\"asm\"][\"ffi_java_raw_to_ptrarray\"]).apply(null,arguments)};var _ffi_java_ptrarray_to_raw=Module[\"_ffi_java_ptrarray_to_raw\"]=function(){return(_ffi_java_ptrarray_to_raw=Module[\"_ffi_java_ptrarray_to_raw\"]=Module[\"asm\"][\"ffi_java_ptrarray_to_raw\"]).apply(null,arguments)};var _ffi_java_raw_call=Module[\"_ffi_java_raw_call\"]=function(){return(_ffi_java_raw_call=Module[\"_ffi_java_raw_call\"]=Module[\"asm\"][\"ffi_java_raw_call\"]).apply(null,arguments)};var _ffi_prep_java_raw_closure_loc=Module[\"_ffi_prep_java_raw_closure_loc\"]=function(){return(_ffi_prep_java_raw_closure_loc=Module[\"_ffi_prep_java_raw_closure_loc\"]=Module[\"asm\"][\"ffi_prep_java_raw_closure_loc\"]).apply(null,arguments)};var _ffi_prep_java_raw_closure=Module[\"_ffi_prep_java_raw_closure\"]=function(){return(_ffi_prep_java_raw_closure=Module[\"_ffi_prep_java_raw_closure\"]=Module[\"asm\"][\"ffi_prep_java_raw_closure\"]).apply(null,arguments)};var _ffi_tramp_is_supported=Module[\"_ffi_tramp_is_supported\"]=function(){return(_ffi_tramp_is_supported=Module[\"_ffi_tramp_is_supported\"]=Module[\"asm\"][\"ffi_tramp_is_supported\"]).apply(null,arguments)};var _ffi_tramp_alloc=Module[\"_ffi_tramp_alloc\"]=function(){return(_ffi_tramp_alloc=Module[\"_ffi_tramp_alloc\"]=Module[\"asm\"][\"ffi_tramp_alloc\"]).apply(null,arguments)};var _ffi_tramp_set_parms=Module[\"_ffi_tramp_set_parms\"]=function(){return(_ffi_tramp_set_parms=Module[\"_ffi_tramp_set_parms\"]=Module[\"asm\"][\"ffi_tramp_set_parms\"]).apply(null,arguments)};var _ffi_tramp_get_addr=Module[\"_ffi_tramp_get_addr\"]=function(){return(_ffi_tramp_get_addr=Module[\"_ffi_tramp_get_addr\"]=Module[\"asm\"][\"ffi_tramp_get_addr\"]).apply(null,arguments)};var _ffi_tramp_free=Module[\"_ffi_tramp_free\"]=function(){return(_ffi_tramp_free=Module[\"_ffi_tramp_free\"]=Module[\"asm\"][\"ffi_tramp_free\"]).apply(null,arguments)};var _sqlite3_status64=Module[\"_sqlite3_status64\"]=function(){return(_sqlite3_status64=Module[\"_sqlite3_status64\"]=Module[\"asm\"][\"sqlite3_status64\"]).apply(null,arguments)};var _sqlite3_log=Module[\"_sqlite3_log\"]=function(){return(_sqlite3_log=Module[\"_sqlite3_log\"]=Module[\"asm\"][\"sqlite3_log\"]).apply(null,arguments)};var _sqlite3_mutex_enter=Module[\"_sqlite3_mutex_enter\"]=function(){return(_sqlite3_mutex_enter=Module[\"_sqlite3_mutex_enter\"]=Module[\"asm\"][\"sqlite3_mutex_enter\"]).apply(null,arguments)};var _sqlite3_mutex_leave=Module[\"_sqlite3_mutex_leave\"]=function(){return(_sqlite3_mutex_leave=Module[\"_sqlite3_mutex_leave\"]=Module[\"asm\"][\"sqlite3_mutex_leave\"]).apply(null,arguments)};var _sqlite3_status=Module[\"_sqlite3_status\"]=function(){return(_sqlite3_status=Module[\"_sqlite3_status\"]=Module[\"asm\"][\"sqlite3_status\"]).apply(null,arguments)};var _sqlite3_db_status=Module[\"_sqlite3_db_status\"]=function(){return(_sqlite3_db_status=Module[\"_sqlite3_db_status\"]=Module[\"asm\"][\"sqlite3_db_status\"]).apply(null,arguments)};var _sqlite3_msize=Module[\"_sqlite3_msize\"]=function(){return(_sqlite3_msize=Module[\"_sqlite3_msize\"]=Module[\"asm\"][\"sqlite3_msize\"]).apply(null,arguments)};var _sqlite3_vfs_find=Module[\"_sqlite3_vfs_find\"]=function(){return(_sqlite3_vfs_find=Module[\"_sqlite3_vfs_find\"]=Module[\"asm\"][\"sqlite3_vfs_find\"]).apply(null,arguments)};var _sqlite3_initialize=Module[\"_sqlite3_initialize\"]=function(){return(_sqlite3_initialize=Module[\"_sqlite3_initialize\"]=Module[\"asm\"][\"sqlite3_initialize\"]).apply(null,arguments)};var _sqlite3_config=Module[\"_sqlite3_config\"]=function(){return(_sqlite3_config=Module[\"_sqlite3_config\"]=Module[\"asm\"][\"sqlite3_config\"]).apply(null,arguments)};var _sqlite3_os_init=Module[\"_sqlite3_os_init\"]=function(){return(_sqlite3_os_init=Module[\"_sqlite3_os_init\"]=Module[\"asm\"][\"sqlite3_os_init\"]).apply(null,arguments)};var _sqlite3_vfs_register=Module[\"_sqlite3_vfs_register\"]=function(){return(_sqlite3_vfs_register=Module[\"_sqlite3_vfs_register\"]=Module[\"asm\"][\"sqlite3_vfs_register\"]).apply(null,arguments)};var _sqlite3_vfs_unregister=Module[\"_sqlite3_vfs_unregister\"]=function(){return(_sqlite3_vfs_unregister=Module[\"_sqlite3_vfs_unregister\"]=Module[\"asm\"][\"sqlite3_vfs_unregister\"]).apply(null,arguments)};var _sqlite3_mutex_alloc=Module[\"_sqlite3_mutex_alloc\"]=function(){return(_sqlite3_mutex_alloc=Module[\"_sqlite3_mutex_alloc\"]=Module[\"asm\"][\"sqlite3_mutex_alloc\"]).apply(null,arguments)};var _sqlite3_mutex_free=Module[\"_sqlite3_mutex_free\"]=function(){return(_sqlite3_mutex_free=Module[\"_sqlite3_mutex_free\"]=Module[\"asm\"][\"sqlite3_mutex_free\"]).apply(null,arguments)};var _sqlite3_mutex_try=Module[\"_sqlite3_mutex_try\"]=function(){return(_sqlite3_mutex_try=Module[\"_sqlite3_mutex_try\"]=Module[\"asm\"][\"sqlite3_mutex_try\"]).apply(null,arguments)};var _sqlite3_release_memory=Module[\"_sqlite3_release_memory\"]=function(){return(_sqlite3_release_memory=Module[\"_sqlite3_release_memory\"]=Module[\"asm\"][\"sqlite3_release_memory\"]).apply(null,arguments)};var _sqlite3_memory_alarm=Module[\"_sqlite3_memory_alarm\"]=function(){return(_sqlite3_memory_alarm=Module[\"_sqlite3_memory_alarm\"]=Module[\"asm\"][\"sqlite3_memory_alarm\"]).apply(null,arguments)};var _sqlite3_soft_heap_limit64=Module[\"_sqlite3_soft_heap_limit64\"]=function(){return(_sqlite3_soft_heap_limit64=Module[\"_sqlite3_soft_heap_limit64\"]=Module[\"asm\"][\"sqlite3_soft_heap_limit64\"]).apply(null,arguments)};var _sqlite3_memory_used=Module[\"_sqlite3_memory_used\"]=function(){return(_sqlite3_memory_used=Module[\"_sqlite3_memory_used\"]=Module[\"asm\"][\"sqlite3_memory_used\"]).apply(null,arguments)};var _sqlite3_soft_heap_limit=Module[\"_sqlite3_soft_heap_limit\"]=function(){return(_sqlite3_soft_heap_limit=Module[\"_sqlite3_soft_heap_limit\"]=Module[\"asm\"][\"sqlite3_soft_heap_limit\"]).apply(null,arguments)};var _sqlite3_memory_highwater=Module[\"_sqlite3_memory_highwater\"]=function(){return(_sqlite3_memory_highwater=Module[\"_sqlite3_memory_highwater\"]=Module[\"asm\"][\"sqlite3_memory_highwater\"]).apply(null,arguments)};var _sqlite3_malloc=Module[\"_sqlite3_malloc\"]=function(){return(_sqlite3_malloc=Module[\"_sqlite3_malloc\"]=Module[\"asm\"][\"sqlite3_malloc\"]).apply(null,arguments)};var _sqlite3_malloc64=Module[\"_sqlite3_malloc64\"]=function(){return(_sqlite3_malloc64=Module[\"_sqlite3_malloc64\"]=Module[\"asm\"][\"sqlite3_malloc64\"]).apply(null,arguments)};var _sqlite3_free=Module[\"_sqlite3_free\"]=function(){return(_sqlite3_free=Module[\"_sqlite3_free\"]=Module[\"asm\"][\"sqlite3_free\"]).apply(null,arguments)};var _sqlite3_realloc=Module[\"_sqlite3_realloc\"]=function(){return(_sqlite3_realloc=Module[\"_sqlite3_realloc\"]=Module[\"asm\"][\"sqlite3_realloc\"]).apply(null,arguments)};var _sqlite3_realloc64=Module[\"_sqlite3_realloc64\"]=function(){return(_sqlite3_realloc64=Module[\"_sqlite3_realloc64\"]=Module[\"asm\"][\"sqlite3_realloc64\"]).apply(null,arguments)};var _sqlite3_str_vappendf=Module[\"_sqlite3_str_vappendf\"]=function(){return(_sqlite3_str_vappendf=Module[\"_sqlite3_str_vappendf\"]=Module[\"asm\"][\"sqlite3_str_vappendf\"]).apply(null,arguments)};var ___gttf2=Module[\"___gttf2\"]=function(){return(___gttf2=Module[\"___gttf2\"]=Module[\"asm\"][\"__gttf2\"]).apply(null,arguments)};var ___getf2=Module[\"___getf2\"]=function(){return(___getf2=Module[\"___getf2\"]=Module[\"asm\"][\"__getf2\"]).apply(null,arguments)};var ___lttf2=Module[\"___lttf2\"]=function(){return(___lttf2=Module[\"___lttf2\"]=Module[\"asm\"][\"__lttf2\"]).apply(null,arguments)};var ___fixtfsi=Module[\"___fixtfsi\"]=function(){return(___fixtfsi=Module[\"___fixtfsi\"]=Module[\"asm\"][\"__fixtfsi\"]).apply(null,arguments)};var ___floatsitf=Module[\"___floatsitf\"]=function(){return(___floatsitf=Module[\"___floatsitf\"]=Module[\"asm\"][\"__floatsitf\"]).apply(null,arguments)};var ___subtf3=Module[\"___subtf3\"]=function(){return(___subtf3=Module[\"___subtf3\"]=Module[\"asm\"][\"__subtf3\"]).apply(null,arguments)};var _sqlite3_str_append=Module[\"_sqlite3_str_append\"]=function(){return(_sqlite3_str_append=Module[\"_sqlite3_str_append\"]=Module[\"asm\"][\"sqlite3_str_append\"]).apply(null,arguments)};var _sqlite3_str_appendchar=Module[\"_sqlite3_str_appendchar\"]=function(){return(_sqlite3_str_appendchar=Module[\"_sqlite3_str_appendchar\"]=Module[\"asm\"][\"sqlite3_str_appendchar\"]).apply(null,arguments)};var _sqlite3_str_appendall=Module[\"_sqlite3_str_appendall\"]=function(){return(_sqlite3_str_appendall=Module[\"_sqlite3_str_appendall\"]=Module[\"asm\"][\"sqlite3_str_appendall\"]).apply(null,arguments)};var _sqlite3_str_finish=Module[\"_sqlite3_str_finish\"]=function(){return(_sqlite3_str_finish=Module[\"_sqlite3_str_finish\"]=Module[\"asm\"][\"sqlite3_str_finish\"]).apply(null,arguments)};var _sqlite3_str_errcode=Module[\"_sqlite3_str_errcode\"]=function(){return(_sqlite3_str_errcode=Module[\"_sqlite3_str_errcode\"]=Module[\"asm\"][\"sqlite3_str_errcode\"]).apply(null,arguments)};var _sqlite3_str_length=Module[\"_sqlite3_str_length\"]=function(){return(_sqlite3_str_length=Module[\"_sqlite3_str_length\"]=Module[\"asm\"][\"sqlite3_str_length\"]).apply(null,arguments)};var _sqlite3_str_value=Module[\"_sqlite3_str_value\"]=function(){return(_sqlite3_str_value=Module[\"_sqlite3_str_value\"]=Module[\"asm\"][\"sqlite3_str_value\"]).apply(null,arguments)};var _sqlite3_str_reset=Module[\"_sqlite3_str_reset\"]=function(){return(_sqlite3_str_reset=Module[\"_sqlite3_str_reset\"]=Module[\"asm\"][\"sqlite3_str_reset\"]).apply(null,arguments)};var _sqlite3_str_new=Module[\"_sqlite3_str_new\"]=function(){return(_sqlite3_str_new=Module[\"_sqlite3_str_new\"]=Module[\"asm\"][\"sqlite3_str_new\"]).apply(null,arguments)};var _sqlite3_vmprintf=Module[\"_sqlite3_vmprintf\"]=function(){return(_sqlite3_vmprintf=Module[\"_sqlite3_vmprintf\"]=Module[\"asm\"][\"sqlite3_vmprintf\"]).apply(null,arguments)};var _sqlite3_mprintf=Module[\"_sqlite3_mprintf\"]=function(){return(_sqlite3_mprintf=Module[\"_sqlite3_mprintf\"]=Module[\"asm\"][\"sqlite3_mprintf\"]).apply(null,arguments)};var _sqlite3_vsnprintf=Module[\"_sqlite3_vsnprintf\"]=function(){return(_sqlite3_vsnprintf=Module[\"_sqlite3_vsnprintf\"]=Module[\"asm\"][\"sqlite3_vsnprintf\"]).apply(null,arguments)};var _sqlite3_snprintf=Module[\"_sqlite3_snprintf\"]=function(){return(_sqlite3_snprintf=Module[\"_sqlite3_snprintf\"]=Module[\"asm\"][\"sqlite3_snprintf\"]).apply(null,arguments)};var _sqlite3_str_appendf=Module[\"_sqlite3_str_appendf\"]=function(){return(_sqlite3_str_appendf=Module[\"_sqlite3_str_appendf\"]=Module[\"asm\"][\"sqlite3_str_appendf\"]).apply(null,arguments)};var _sqlite3_randomness=Module[\"_sqlite3_randomness\"]=function(){return(_sqlite3_randomness=Module[\"_sqlite3_randomness\"]=Module[\"asm\"][\"sqlite3_randomness\"]).apply(null,arguments)};var _sqlite3_stricmp=Module[\"_sqlite3_stricmp\"]=function(){return(_sqlite3_stricmp=Module[\"_sqlite3_stricmp\"]=Module[\"asm\"][\"sqlite3_stricmp\"]).apply(null,arguments)};var _sqlite3_strnicmp=Module[\"_sqlite3_strnicmp\"]=function(){return(_sqlite3_strnicmp=Module[\"_sqlite3_strnicmp\"]=Module[\"asm\"][\"sqlite3_strnicmp\"]).apply(null,arguments)};var _sqlite3_uri_boolean=Module[\"_sqlite3_uri_boolean\"]=function(){return(_sqlite3_uri_boolean=Module[\"_sqlite3_uri_boolean\"]=Module[\"asm\"][\"sqlite3_uri_boolean\"]).apply(null,arguments)};var _strerror_r=Module[\"_strerror_r\"]=function(){return(_strerror_r=Module[\"_strerror_r\"]=Module[\"asm\"][\"strerror_r\"]).apply(null,arguments)};var _usleep=Module[\"_usleep\"]=function(){return(_usleep=Module[\"_usleep\"]=Module[\"asm\"][\"usleep\"]).apply(null,arguments)};var _sqlite3_os_end=Module[\"_sqlite3_os_end\"]=function(){return(_sqlite3_os_end=Module[\"_sqlite3_os_end\"]=Module[\"asm\"][\"sqlite3_os_end\"]).apply(null,arguments)};var _sqlite3_expired=Module[\"_sqlite3_expired\"]=function(){return(_sqlite3_expired=Module[\"_sqlite3_expired\"]=Module[\"asm\"][\"sqlite3_expired\"]).apply(null,arguments)};var _sqlite3_clear_bindings=Module[\"_sqlite3_clear_bindings\"]=function(){return(_sqlite3_clear_bindings=Module[\"_sqlite3_clear_bindings\"]=Module[\"asm\"][\"sqlite3_clear_bindings\"]).apply(null,arguments)};var _sqlite3_value_bytes16=Module[\"_sqlite3_value_bytes16\"]=function(){return(_sqlite3_value_bytes16=Module[\"_sqlite3_value_bytes16\"]=Module[\"asm\"][\"sqlite3_value_bytes16\"]).apply(null,arguments)};var _sqlite3_value_int=Module[\"_sqlite3_value_int\"]=function(){return(_sqlite3_value_int=Module[\"_sqlite3_value_int\"]=Module[\"asm\"][\"sqlite3_value_int\"]).apply(null,arguments)};var _sqlite3_value_subtype=Module[\"_sqlite3_value_subtype\"]=function(){return(_sqlite3_value_subtype=Module[\"_sqlite3_value_subtype\"]=Module[\"asm\"][\"sqlite3_value_subtype\"]).apply(null,arguments)};var _sqlite3_value_pointer=Module[\"_sqlite3_value_pointer\"]=function(){return(_sqlite3_value_pointer=Module[\"_sqlite3_value_pointer\"]=Module[\"asm\"][\"sqlite3_value_pointer\"]).apply(null,arguments)};var _sqlite3_value_text16=Module[\"_sqlite3_value_text16\"]=function(){return(_sqlite3_value_text16=Module[\"_sqlite3_value_text16\"]=Module[\"asm\"][\"sqlite3_value_text16\"]).apply(null,arguments)};var _sqlite3_value_text16be=Module[\"_sqlite3_value_text16be\"]=function(){return(_sqlite3_value_text16be=Module[\"_sqlite3_value_text16be\"]=Module[\"asm\"][\"sqlite3_value_text16be\"]).apply(null,arguments)};var _sqlite3_value_text16le=Module[\"_sqlite3_value_text16le\"]=function(){return(_sqlite3_value_text16le=Module[\"_sqlite3_value_text16le\"]=Module[\"asm\"][\"sqlite3_value_text16le\"]).apply(null,arguments)};var _sqlite3_value_nochange=Module[\"_sqlite3_value_nochange\"]=function(){return(_sqlite3_value_nochange=Module[\"_sqlite3_value_nochange\"]=Module[\"asm\"][\"sqlite3_value_nochange\"]).apply(null,arguments)};var _sqlite3_value_dup=Module[\"_sqlite3_value_dup\"]=function(){return(_sqlite3_value_dup=Module[\"_sqlite3_value_dup\"]=Module[\"asm\"][\"sqlite3_value_dup\"]).apply(null,arguments)};var _sqlite3_value_free=Module[\"_sqlite3_value_free\"]=function(){return(_sqlite3_value_free=Module[\"_sqlite3_value_free\"]=Module[\"asm\"][\"sqlite3_value_free\"]).apply(null,arguments)};var _sqlite3_result_blob64=Module[\"_sqlite3_result_blob64\"]=function(){return(_sqlite3_result_blob64=Module[\"_sqlite3_result_blob64\"]=Module[\"asm\"][\"sqlite3_result_blob64\"]).apply(null,arguments)};var _sqlite3_result_error16=Module[\"_sqlite3_result_error16\"]=function(){return(_sqlite3_result_error16=Module[\"_sqlite3_result_error16\"]=Module[\"asm\"][\"sqlite3_result_error16\"]).apply(null,arguments)};var _sqlite3_result_int=Module[\"_sqlite3_result_int\"]=function(){return(_sqlite3_result_int=Module[\"_sqlite3_result_int\"]=Module[\"asm\"][\"sqlite3_result_int\"]).apply(null,arguments)};var _sqlite3_result_pointer=Module[\"_sqlite3_result_pointer\"]=function(){return(_sqlite3_result_pointer=Module[\"_sqlite3_result_pointer\"]=Module[\"asm\"][\"sqlite3_result_pointer\"]).apply(null,arguments)};var _sqlite3_result_subtype=Module[\"_sqlite3_result_subtype\"]=function(){return(_sqlite3_result_subtype=Module[\"_sqlite3_result_subtype\"]=Module[\"asm\"][\"sqlite3_result_subtype\"]).apply(null,arguments)};var _sqlite3_result_text64=Module[\"_sqlite3_result_text64\"]=function(){return(_sqlite3_result_text64=Module[\"_sqlite3_result_text64\"]=Module[\"asm\"][\"sqlite3_result_text64\"]).apply(null,arguments)};var _sqlite3_result_text16=Module[\"_sqlite3_result_text16\"]=function(){return(_sqlite3_result_text16=Module[\"_sqlite3_result_text16\"]=Module[\"asm\"][\"sqlite3_result_text16\"]).apply(null,arguments)};var _sqlite3_result_text16be=Module[\"_sqlite3_result_text16be\"]=function(){return(_sqlite3_result_text16be=Module[\"_sqlite3_result_text16be\"]=Module[\"asm\"][\"sqlite3_result_text16be\"]).apply(null,arguments)};var _sqlite3_result_text16le=Module[\"_sqlite3_result_text16le\"]=function(){return(_sqlite3_result_text16le=Module[\"_sqlite3_result_text16le\"]=Module[\"asm\"][\"sqlite3_result_text16le\"]).apply(null,arguments)};var _sqlite3_result_value=Module[\"_sqlite3_result_value\"]=function(){return(_sqlite3_result_value=Module[\"_sqlite3_result_value\"]=Module[\"asm\"][\"sqlite3_result_value\"]).apply(null,arguments)};var _sqlite3_result_zeroblob=Module[\"_sqlite3_result_zeroblob\"]=function(){return(_sqlite3_result_zeroblob=Module[\"_sqlite3_result_zeroblob\"]=Module[\"asm\"][\"sqlite3_result_zeroblob\"]).apply(null,arguments)};var _sqlite3_result_zeroblob64=Module[\"_sqlite3_result_zeroblob64\"]=function(){return(_sqlite3_result_zeroblob64=Module[\"_sqlite3_result_zeroblob64\"]=Module[\"asm\"][\"sqlite3_result_zeroblob64\"]).apply(null,arguments)};var _sqlite3_result_error_code=Module[\"_sqlite3_result_error_code\"]=function(){return(_sqlite3_result_error_code=Module[\"_sqlite3_result_error_code\"]=Module[\"asm\"][\"sqlite3_result_error_code\"]).apply(null,arguments)};var _sqlite3_result_error_toobig=Module[\"_sqlite3_result_error_toobig\"]=function(){return(_sqlite3_result_error_toobig=Module[\"_sqlite3_result_error_toobig\"]=Module[\"asm\"][\"sqlite3_result_error_toobig\"]).apply(null,arguments)};var _sqlite3_result_error_nomem=Module[\"_sqlite3_result_error_nomem\"]=function(){return(_sqlite3_result_error_nomem=Module[\"_sqlite3_result_error_nomem\"]=Module[\"asm\"][\"sqlite3_result_error_nomem\"]).apply(null,arguments)};var _sqlite3_context_db_handle=Module[\"_sqlite3_context_db_handle\"]=function(){return(_sqlite3_context_db_handle=Module[\"_sqlite3_context_db_handle\"]=Module[\"asm\"][\"sqlite3_context_db_handle\"]).apply(null,arguments)};var _sqlite3_vtab_nochange=Module[\"_sqlite3_vtab_nochange\"]=function(){return(_sqlite3_vtab_nochange=Module[\"_sqlite3_vtab_nochange\"]=Module[\"asm\"][\"sqlite3_vtab_nochange\"]).apply(null,arguments)};var _sqlite3_get_auxdata=Module[\"_sqlite3_get_auxdata\"]=function(){return(_sqlite3_get_auxdata=Module[\"_sqlite3_get_auxdata\"]=Module[\"asm\"][\"sqlite3_get_auxdata\"]).apply(null,arguments)};var _sqlite3_set_auxdata=Module[\"_sqlite3_set_auxdata\"]=function(){return(_sqlite3_set_auxdata=Module[\"_sqlite3_set_auxdata\"]=Module[\"asm\"][\"sqlite3_set_auxdata\"]).apply(null,arguments)};var _sqlite3_aggregate_count=Module[\"_sqlite3_aggregate_count\"]=function(){return(_sqlite3_aggregate_count=Module[\"_sqlite3_aggregate_count\"]=Module[\"asm\"][\"sqlite3_aggregate_count\"]).apply(null,arguments)};var _sqlite3_column_bytes16=Module[\"_sqlite3_column_bytes16\"]=function(){return(_sqlite3_column_bytes16=Module[\"_sqlite3_column_bytes16\"]=Module[\"asm\"][\"sqlite3_column_bytes16\"]).apply(null,arguments)};var _sqlite3_column_int=Module[\"_sqlite3_column_int\"]=function(){return(_sqlite3_column_int=Module[\"_sqlite3_column_int\"]=Module[\"asm\"][\"sqlite3_column_int\"]).apply(null,arguments)};var _sqlite3_column_value=Module[\"_sqlite3_column_value\"]=function(){return(_sqlite3_column_value=Module[\"_sqlite3_column_value\"]=Module[\"asm\"][\"sqlite3_column_value\"]).apply(null,arguments)};var _sqlite3_column_text16=Module[\"_sqlite3_column_text16\"]=function(){return(_sqlite3_column_text16=Module[\"_sqlite3_column_text16\"]=Module[\"asm\"][\"sqlite3_column_text16\"]).apply(null,arguments)};var _sqlite3_column_name16=Module[\"_sqlite3_column_name16\"]=function(){return(_sqlite3_column_name16=Module[\"_sqlite3_column_name16\"]=Module[\"asm\"][\"sqlite3_column_name16\"]).apply(null,arguments)};var _sqlite3_column_decltype16=Module[\"_sqlite3_column_decltype16\"]=function(){return(_sqlite3_column_decltype16=Module[\"_sqlite3_column_decltype16\"]=Module[\"asm\"][\"sqlite3_column_decltype16\"]).apply(null,arguments)};var _sqlite3_bind_blob64=Module[\"_sqlite3_bind_blob64\"]=function(){return(_sqlite3_bind_blob64=Module[\"_sqlite3_bind_blob64\"]=Module[\"asm\"][\"sqlite3_bind_blob64\"]).apply(null,arguments)};var _sqlite3_bind_int=Module[\"_sqlite3_bind_int\"]=function(){return(_sqlite3_bind_int=Module[\"_sqlite3_bind_int\"]=Module[\"asm\"][\"sqlite3_bind_int\"]).apply(null,arguments)};var _sqlite3_bind_pointer=Module[\"_sqlite3_bind_pointer\"]=function(){return(_sqlite3_bind_pointer=Module[\"_sqlite3_bind_pointer\"]=Module[\"asm\"][\"sqlite3_bind_pointer\"]).apply(null,arguments)};var _sqlite3_bind_text64=Module[\"_sqlite3_bind_text64\"]=function(){return(_sqlite3_bind_text64=Module[\"_sqlite3_bind_text64\"]=Module[\"asm\"][\"sqlite3_bind_text64\"]).apply(null,arguments)};var _sqlite3_bind_text16=Module[\"_sqlite3_bind_text16\"]=function(){return(_sqlite3_bind_text16=Module[\"_sqlite3_bind_text16\"]=Module[\"asm\"][\"sqlite3_bind_text16\"]).apply(null,arguments)};var _sqlite3_bind_value=Module[\"_sqlite3_bind_value\"]=function(){return(_sqlite3_bind_value=Module[\"_sqlite3_bind_value\"]=Module[\"asm\"][\"sqlite3_bind_value\"]).apply(null,arguments)};var _sqlite3_bind_zeroblob=Module[\"_sqlite3_bind_zeroblob\"]=function(){return(_sqlite3_bind_zeroblob=Module[\"_sqlite3_bind_zeroblob\"]=Module[\"asm\"][\"sqlite3_bind_zeroblob\"]).apply(null,arguments)};var _sqlite3_bind_zeroblob64=Module[\"_sqlite3_bind_zeroblob64\"]=function(){return(_sqlite3_bind_zeroblob64=Module[\"_sqlite3_bind_zeroblob64\"]=Module[\"asm\"][\"sqlite3_bind_zeroblob64\"]).apply(null,arguments)};var _sqlite3_bind_parameter_index=Module[\"_sqlite3_bind_parameter_index\"]=function(){return(_sqlite3_bind_parameter_index=Module[\"_sqlite3_bind_parameter_index\"]=Module[\"asm\"][\"sqlite3_bind_parameter_index\"]).apply(null,arguments)};var _sqlite3_transfer_bindings=Module[\"_sqlite3_transfer_bindings\"]=function(){return(_sqlite3_transfer_bindings=Module[\"_sqlite3_transfer_bindings\"]=Module[\"asm\"][\"sqlite3_transfer_bindings\"]).apply(null,arguments)};var _sqlite3_db_handle=Module[\"_sqlite3_db_handle\"]=function(){return(_sqlite3_db_handle=Module[\"_sqlite3_db_handle\"]=Module[\"asm\"][\"sqlite3_db_handle\"]).apply(null,arguments)};var _sqlite3_stmt_readonly=Module[\"_sqlite3_stmt_readonly\"]=function(){return(_sqlite3_stmt_readonly=Module[\"_sqlite3_stmt_readonly\"]=Module[\"asm\"][\"sqlite3_stmt_readonly\"]).apply(null,arguments)};var _sqlite3_stmt_busy=Module[\"_sqlite3_stmt_busy\"]=function(){return(_sqlite3_stmt_busy=Module[\"_sqlite3_stmt_busy\"]=Module[\"asm\"][\"sqlite3_stmt_busy\"]).apply(null,arguments)};var _sqlite3_next_stmt=Module[\"_sqlite3_next_stmt\"]=function(){return(_sqlite3_next_stmt=Module[\"_sqlite3_next_stmt\"]=Module[\"asm\"][\"sqlite3_next_stmt\"]).apply(null,arguments)};var _sqlite3_stmt_status=Module[\"_sqlite3_stmt_status\"]=function(){return(_sqlite3_stmt_status=Module[\"_sqlite3_stmt_status\"]=Module[\"asm\"][\"sqlite3_stmt_status\"]).apply(null,arguments)};var _sqlite3_sql=Module[\"_sqlite3_sql\"]=function(){return(_sqlite3_sql=Module[\"_sqlite3_sql\"]=Module[\"asm\"][\"sqlite3_sql\"]).apply(null,arguments)};var _sqlite3_expanded_sql=Module[\"_sqlite3_expanded_sql\"]=function(){return(_sqlite3_expanded_sql=Module[\"_sqlite3_expanded_sql\"]=Module[\"asm\"][\"sqlite3_expanded_sql\"]).apply(null,arguments)};var _sqlite3_value_numeric_type=Module[\"_sqlite3_value_numeric_type\"]=function(){return(_sqlite3_value_numeric_type=Module[\"_sqlite3_value_numeric_type\"]=Module[\"asm\"][\"sqlite3_value_numeric_type\"]).apply(null,arguments)};var _sqlite3_blob_open=Module[\"_sqlite3_blob_open\"]=function(){return(_sqlite3_blob_open=Module[\"_sqlite3_blob_open\"]=Module[\"asm\"][\"sqlite3_blob_open\"]).apply(null,arguments)};var _sqlite3_blob_close=Module[\"_sqlite3_blob_close\"]=function(){return(_sqlite3_blob_close=Module[\"_sqlite3_blob_close\"]=Module[\"asm\"][\"sqlite3_blob_close\"]).apply(null,arguments)};var _sqlite3_blob_read=Module[\"_sqlite3_blob_read\"]=function(){return(_sqlite3_blob_read=Module[\"_sqlite3_blob_read\"]=Module[\"asm\"][\"sqlite3_blob_read\"]).apply(null,arguments)};var _sqlite3_blob_write=Module[\"_sqlite3_blob_write\"]=function(){return(_sqlite3_blob_write=Module[\"_sqlite3_blob_write\"]=Module[\"asm\"][\"sqlite3_blob_write\"]).apply(null,arguments)};var _sqlite3_blob_bytes=Module[\"_sqlite3_blob_bytes\"]=function(){return(_sqlite3_blob_bytes=Module[\"_sqlite3_blob_bytes\"]=Module[\"asm\"][\"sqlite3_blob_bytes\"]).apply(null,arguments)};var _sqlite3_blob_reopen=Module[\"_sqlite3_blob_reopen\"]=function(){return(_sqlite3_blob_reopen=Module[\"_sqlite3_blob_reopen\"]=Module[\"asm\"][\"sqlite3_blob_reopen\"]).apply(null,arguments)};var _sqlite3_strglob=Module[\"_sqlite3_strglob\"]=function(){return(_sqlite3_strglob=Module[\"_sqlite3_strglob\"]=Module[\"asm\"][\"sqlite3_strglob\"]).apply(null,arguments)};var _sqlite3_strlike=Module[\"_sqlite3_strlike\"]=function(){return(_sqlite3_strlike=Module[\"_sqlite3_strlike\"]=Module[\"asm\"][\"sqlite3_strlike\"]).apply(null,arguments)};var _sqlite3_exec=Module[\"_sqlite3_exec\"]=function(){return(_sqlite3_exec=Module[\"_sqlite3_exec\"]=Module[\"asm\"][\"sqlite3_exec\"]).apply(null,arguments)};var _sqlite3_auto_extension=Module[\"_sqlite3_auto_extension\"]=function(){return(_sqlite3_auto_extension=Module[\"_sqlite3_auto_extension\"]=Module[\"asm\"][\"sqlite3_auto_extension\"]).apply(null,arguments)};var _sqlite3_cancel_auto_extension=Module[\"_sqlite3_cancel_auto_extension\"]=function(){return(_sqlite3_cancel_auto_extension=Module[\"_sqlite3_cancel_auto_extension\"]=Module[\"asm\"][\"sqlite3_cancel_auto_extension\"]).apply(null,arguments)};var _sqlite3_reset_auto_extension=Module[\"_sqlite3_reset_auto_extension\"]=function(){return(_sqlite3_reset_auto_extension=Module[\"_sqlite3_reset_auto_extension\"]=Module[\"asm\"][\"sqlite3_reset_auto_extension\"]).apply(null,arguments)};var _sqlite3_prepare=Module[\"_sqlite3_prepare\"]=function(){return(_sqlite3_prepare=Module[\"_sqlite3_prepare\"]=Module[\"asm\"][\"sqlite3_prepare\"]).apply(null,arguments)};var _sqlite3_prepare_v3=Module[\"_sqlite3_prepare_v3\"]=function(){return(_sqlite3_prepare_v3=Module[\"_sqlite3_prepare_v3\"]=Module[\"asm\"][\"sqlite3_prepare_v3\"]).apply(null,arguments)};var _sqlite3_prepare16=Module[\"_sqlite3_prepare16\"]=function(){return(_sqlite3_prepare16=Module[\"_sqlite3_prepare16\"]=Module[\"asm\"][\"sqlite3_prepare16\"]).apply(null,arguments)};var _sqlite3_prepare16_v2=Module[\"_sqlite3_prepare16_v2\"]=function(){return(_sqlite3_prepare16_v2=Module[\"_sqlite3_prepare16_v2\"]=Module[\"asm\"][\"sqlite3_prepare16_v2\"]).apply(null,arguments)};var _sqlite3_prepare16_v3=Module[\"_sqlite3_prepare16_v3\"]=function(){return(_sqlite3_prepare16_v3=Module[\"_sqlite3_prepare16_v3\"]=Module[\"asm\"][\"sqlite3_prepare16_v3\"]).apply(null,arguments)};var _sqlite3_get_table=Module[\"_sqlite3_get_table\"]=function(){return(_sqlite3_get_table=Module[\"_sqlite3_get_table\"]=Module[\"asm\"][\"sqlite3_get_table\"]).apply(null,arguments)};var _sqlite3_free_table=Module[\"_sqlite3_free_table\"]=function(){return(_sqlite3_free_table=Module[\"_sqlite3_free_table\"]=Module[\"asm\"][\"sqlite3_free_table\"]).apply(null,arguments)};var _sqlite3_create_module=Module[\"_sqlite3_create_module\"]=function(){return(_sqlite3_create_module=Module[\"_sqlite3_create_module\"]=Module[\"asm\"][\"sqlite3_create_module\"]).apply(null,arguments)};var _sqlite3_create_module_v2=Module[\"_sqlite3_create_module_v2\"]=function(){return(_sqlite3_create_module_v2=Module[\"_sqlite3_create_module_v2\"]=Module[\"asm\"][\"sqlite3_create_module_v2\"]).apply(null,arguments)};var _sqlite3_declare_vtab=Module[\"_sqlite3_declare_vtab\"]=function(){return(_sqlite3_declare_vtab=Module[\"_sqlite3_declare_vtab\"]=Module[\"asm\"][\"sqlite3_declare_vtab\"]).apply(null,arguments)};var _sqlite3_vtab_on_conflict=Module[\"_sqlite3_vtab_on_conflict\"]=function(){return(_sqlite3_vtab_on_conflict=Module[\"_sqlite3_vtab_on_conflict\"]=Module[\"asm\"][\"sqlite3_vtab_on_conflict\"]).apply(null,arguments)};var _sqlite3_vtab_config=Module[\"_sqlite3_vtab_config\"]=function(){return(_sqlite3_vtab_config=Module[\"_sqlite3_vtab_config\"]=Module[\"asm\"][\"sqlite3_vtab_config\"]).apply(null,arguments)};var _sqlite3_vtab_collation=Module[\"_sqlite3_vtab_collation\"]=function(){return(_sqlite3_vtab_collation=Module[\"_sqlite3_vtab_collation\"]=Module[\"asm\"][\"sqlite3_vtab_collation\"]).apply(null,arguments)};var _sqlite3_keyword_name=Module[\"_sqlite3_keyword_name\"]=function(){return(_sqlite3_keyword_name=Module[\"_sqlite3_keyword_name\"]=Module[\"asm\"][\"sqlite3_keyword_name\"]).apply(null,arguments)};var _sqlite3_keyword_count=Module[\"_sqlite3_keyword_count\"]=function(){return(_sqlite3_keyword_count=Module[\"_sqlite3_keyword_count\"]=Module[\"asm\"][\"sqlite3_keyword_count\"]).apply(null,arguments)};var _sqlite3_keyword_check=Module[\"_sqlite3_keyword_check\"]=function(){return(_sqlite3_keyword_check=Module[\"_sqlite3_keyword_check\"]=Module[\"asm\"][\"sqlite3_keyword_check\"]).apply(null,arguments)};var _sqlite3_complete16=Module[\"_sqlite3_complete16\"]=function(){return(_sqlite3_complete16=Module[\"_sqlite3_complete16\"]=Module[\"asm\"][\"sqlite3_complete16\"]).apply(null,arguments)};var _sqlite3_threadsafe=Module[\"_sqlite3_threadsafe\"]=function(){return(_sqlite3_threadsafe=Module[\"_sqlite3_threadsafe\"]=Module[\"asm\"][\"sqlite3_threadsafe\"]).apply(null,arguments)};var _sqlite3_shutdown=Module[\"_sqlite3_shutdown\"]=function(){return(_sqlite3_shutdown=Module[\"_sqlite3_shutdown\"]=Module[\"asm\"][\"sqlite3_shutdown\"]).apply(null,arguments)};var _sqlite3_db_mutex=Module[\"_sqlite3_db_mutex\"]=function(){return(_sqlite3_db_mutex=Module[\"_sqlite3_db_mutex\"]=Module[\"asm\"][\"sqlite3_db_mutex\"]).apply(null,arguments)};var _sqlite3_db_release_memory=Module[\"_sqlite3_db_release_memory\"]=function(){return(_sqlite3_db_release_memory=Module[\"_sqlite3_db_release_memory\"]=Module[\"asm\"][\"sqlite3_db_release_memory\"]).apply(null,arguments)};var _sqlite3_db_cacheflush=Module[\"_sqlite3_db_cacheflush\"]=function(){return(_sqlite3_db_cacheflush=Module[\"_sqlite3_db_cacheflush\"]=Module[\"asm\"][\"sqlite3_db_cacheflush\"]).apply(null,arguments)};var _sqlite3_db_config=Module[\"_sqlite3_db_config\"]=function(){return(_sqlite3_db_config=Module[\"_sqlite3_db_config\"]=Module[\"asm\"][\"sqlite3_db_config\"]).apply(null,arguments)};var _sqlite3_set_last_insert_rowid=Module[\"_sqlite3_set_last_insert_rowid\"]=function(){return(_sqlite3_set_last_insert_rowid=Module[\"_sqlite3_set_last_insert_rowid\"]=Module[\"asm\"][\"sqlite3_set_last_insert_rowid\"]).apply(null,arguments)};var _sqlite3_close=Module[\"_sqlite3_close\"]=function(){return(_sqlite3_close=Module[\"_sqlite3_close\"]=Module[\"asm\"][\"sqlite3_close\"]).apply(null,arguments)};var _sqlite3_busy_handler=Module[\"_sqlite3_busy_handler\"]=function(){return(_sqlite3_busy_handler=Module[\"_sqlite3_busy_handler\"]=Module[\"asm\"][\"sqlite3_busy_handler\"]).apply(null,arguments)};var _sqlite3_create_function=Module[\"_sqlite3_create_function\"]=function(){return(_sqlite3_create_function=Module[\"_sqlite3_create_function\"]=Module[\"asm\"][\"sqlite3_create_function\"]).apply(null,arguments)};var _sqlite3_create_window_function=Module[\"_sqlite3_create_window_function\"]=function(){return(_sqlite3_create_window_function=Module[\"_sqlite3_create_window_function\"]=Module[\"asm\"][\"sqlite3_create_window_function\"]).apply(null,arguments)};var _sqlite3_create_function16=Module[\"_sqlite3_create_function16\"]=function(){return(_sqlite3_create_function16=Module[\"_sqlite3_create_function16\"]=Module[\"asm\"][\"sqlite3_create_function16\"]).apply(null,arguments)};var _sqlite3_overload_function=Module[\"_sqlite3_overload_function\"]=function(){return(_sqlite3_overload_function=Module[\"_sqlite3_overload_function\"]=Module[\"asm\"][\"sqlite3_overload_function\"]).apply(null,arguments)};var _sqlite3_trace_v2=Module[\"_sqlite3_trace_v2\"]=function(){return(_sqlite3_trace_v2=Module[\"_sqlite3_trace_v2\"]=Module[\"asm\"][\"sqlite3_trace_v2\"]).apply(null,arguments)};var _sqlite3_profile=Module[\"_sqlite3_profile\"]=function(){return(_sqlite3_profile=Module[\"_sqlite3_profile\"]=Module[\"asm\"][\"sqlite3_profile\"]).apply(null,arguments)};var _sqlite3_commit_hook=Module[\"_sqlite3_commit_hook\"]=function(){return(_sqlite3_commit_hook=Module[\"_sqlite3_commit_hook\"]=Module[\"asm\"][\"sqlite3_commit_hook\"]).apply(null,arguments)};var _sqlite3_update_hook=Module[\"_sqlite3_update_hook\"]=function(){return(_sqlite3_update_hook=Module[\"_sqlite3_update_hook\"]=Module[\"asm\"][\"sqlite3_update_hook\"]).apply(null,arguments)};var _sqlite3_rollback_hook=Module[\"_sqlite3_rollback_hook\"]=function(){return(_sqlite3_rollback_hook=Module[\"_sqlite3_rollback_hook\"]=Module[\"asm\"][\"sqlite3_rollback_hook\"]).apply(null,arguments)};var _sqlite3_wal_autocheckpoint=Module[\"_sqlite3_wal_autocheckpoint\"]=function(){return(_sqlite3_wal_autocheckpoint=Module[\"_sqlite3_wal_autocheckpoint\"]=Module[\"asm\"][\"sqlite3_wal_autocheckpoint\"]).apply(null,arguments)};var _sqlite3_wal_hook=Module[\"_sqlite3_wal_hook\"]=function(){return(_sqlite3_wal_hook=Module[\"_sqlite3_wal_hook\"]=Module[\"asm\"][\"sqlite3_wal_hook\"]).apply(null,arguments)};var _sqlite3_wal_checkpoint_v2=Module[\"_sqlite3_wal_checkpoint_v2\"]=function(){return(_sqlite3_wal_checkpoint_v2=Module[\"_sqlite3_wal_checkpoint_v2\"]=Module[\"asm\"][\"sqlite3_wal_checkpoint_v2\"]).apply(null,arguments)};var _sqlite3_wal_checkpoint=Module[\"_sqlite3_wal_checkpoint\"]=function(){return(_sqlite3_wal_checkpoint=Module[\"_sqlite3_wal_checkpoint\"]=Module[\"asm\"][\"sqlite3_wal_checkpoint\"]).apply(null,arguments)};var _sqlite3_errmsg16=Module[\"_sqlite3_errmsg16\"]=function(){return(_sqlite3_errmsg16=Module[\"_sqlite3_errmsg16\"]=Module[\"asm\"][\"sqlite3_errmsg16\"]).apply(null,arguments)};var _sqlite3_extended_errcode=Module[\"_sqlite3_extended_errcode\"]=function(){return(_sqlite3_extended_errcode=Module[\"_sqlite3_extended_errcode\"]=Module[\"asm\"][\"sqlite3_extended_errcode\"]).apply(null,arguments)};var _sqlite3_system_errno=Module[\"_sqlite3_system_errno\"]=function(){return(_sqlite3_system_errno=Module[\"_sqlite3_system_errno\"]=Module[\"asm\"][\"sqlite3_system_errno\"]).apply(null,arguments)};var _sqlite3_limit=Module[\"_sqlite3_limit\"]=function(){return(_sqlite3_limit=Module[\"_sqlite3_limit\"]=Module[\"asm\"][\"sqlite3_limit\"]).apply(null,arguments)};var _sqlite3_open=Module[\"_sqlite3_open\"]=function(){return(_sqlite3_open=Module[\"_sqlite3_open\"]=Module[\"asm\"][\"sqlite3_open\"]).apply(null,arguments)};var _sqlite3_open16=Module[\"_sqlite3_open16\"]=function(){return(_sqlite3_open16=Module[\"_sqlite3_open16\"]=Module[\"asm\"][\"sqlite3_open16\"]).apply(null,arguments)};var _sqlite3_create_collation_v2=Module[\"_sqlite3_create_collation_v2\"]=function(){return(_sqlite3_create_collation_v2=Module[\"_sqlite3_create_collation_v2\"]=Module[\"asm\"][\"sqlite3_create_collation_v2\"]).apply(null,arguments)};var _sqlite3_create_collation16=Module[\"_sqlite3_create_collation16\"]=function(){return(_sqlite3_create_collation16=Module[\"_sqlite3_create_collation16\"]=Module[\"asm\"][\"sqlite3_create_collation16\"]).apply(null,arguments)};var _sqlite3_collation_needed=Module[\"_sqlite3_collation_needed\"]=function(){return(_sqlite3_collation_needed=Module[\"_sqlite3_collation_needed\"]=Module[\"asm\"][\"sqlite3_collation_needed\"]).apply(null,arguments)};var _sqlite3_collation_needed16=Module[\"_sqlite3_collation_needed16\"]=function(){return(_sqlite3_collation_needed16=Module[\"_sqlite3_collation_needed16\"]=Module[\"asm\"][\"sqlite3_collation_needed16\"]).apply(null,arguments)};var _sqlite3_global_recover=Module[\"_sqlite3_global_recover\"]=function(){return(_sqlite3_global_recover=Module[\"_sqlite3_global_recover\"]=Module[\"asm\"][\"sqlite3_global_recover\"]).apply(null,arguments)};var _sqlite3_thread_cleanup=Module[\"_sqlite3_thread_cleanup\"]=function(){return(_sqlite3_thread_cleanup=Module[\"_sqlite3_thread_cleanup\"]=Module[\"asm\"][\"sqlite3_thread_cleanup\"]).apply(null,arguments)};var _sqlite3_table_column_metadata=Module[\"_sqlite3_table_column_metadata\"]=function(){return(_sqlite3_table_column_metadata=Module[\"_sqlite3_table_column_metadata\"]=Module[\"asm\"][\"sqlite3_table_column_metadata\"]).apply(null,arguments)};var _sqlite3_extended_result_codes=Module[\"_sqlite3_extended_result_codes\"]=function(){return(_sqlite3_extended_result_codes=Module[\"_sqlite3_extended_result_codes\"]=Module[\"asm\"][\"sqlite3_extended_result_codes\"]).apply(null,arguments)};var _sqlite3_file_control=Module[\"_sqlite3_file_control\"]=function(){return(_sqlite3_file_control=Module[\"_sqlite3_file_control\"]=Module[\"asm\"][\"sqlite3_file_control\"]).apply(null,arguments)};var _sqlite3_test_control=Module[\"_sqlite3_test_control\"]=function(){return(_sqlite3_test_control=Module[\"_sqlite3_test_control\"]=Module[\"asm\"][\"sqlite3_test_control\"]).apply(null,arguments)};var _sqlite3_uri_parameter=Module[\"_sqlite3_uri_parameter\"]=function(){return(_sqlite3_uri_parameter=Module[\"_sqlite3_uri_parameter\"]=Module[\"asm\"][\"sqlite3_uri_parameter\"]).apply(null,arguments)};var _sqlite3_uri_int64=Module[\"_sqlite3_uri_int64\"]=function(){return(_sqlite3_uri_int64=Module[\"_sqlite3_uri_int64\"]=Module[\"asm\"][\"sqlite3_uri_int64\"]).apply(null,arguments)};var _sqlite3_db_filename=Module[\"_sqlite3_db_filename\"]=function(){return(_sqlite3_db_filename=Module[\"_sqlite3_db_filename\"]=Module[\"asm\"][\"sqlite3_db_filename\"]).apply(null,arguments)};var _sqlite3_db_readonly=Module[\"_sqlite3_db_readonly\"]=function(){return(_sqlite3_db_readonly=Module[\"_sqlite3_db_readonly\"]=Module[\"asm\"][\"sqlite3_db_readonly\"]).apply(null,arguments)};var _sqlite3_compileoption_used=Module[\"_sqlite3_compileoption_used\"]=function(){return(_sqlite3_compileoption_used=Module[\"_sqlite3_compileoption_used\"]=Module[\"asm\"][\"sqlite3_compileoption_used\"]).apply(null,arguments)};var _sqlite3_compileoption_get=Module[\"_sqlite3_compileoption_get\"]=function(){return(_sqlite3_compileoption_get=Module[\"_sqlite3_compileoption_get\"]=Module[\"asm\"][\"sqlite3_compileoption_get\"]).apply(null,arguments)};var _sqlite3_rtree_geometry_callback=Module[\"_sqlite3_rtree_geometry_callback\"]=function(){return(_sqlite3_rtree_geometry_callback=Module[\"_sqlite3_rtree_geometry_callback\"]=Module[\"asm\"][\"sqlite3_rtree_geometry_callback\"]).apply(null,arguments)};var _sqlite3_rtree_query_callback=Module[\"_sqlite3_rtree_query_callback\"]=function(){return(_sqlite3_rtree_query_callback=Module[\"_sqlite3_rtree_query_callback\"]=Module[\"asm\"][\"sqlite3_rtree_query_callback\"]).apply(null,arguments)};var _sqlite3_sourceid=Module[\"_sqlite3_sourceid\"]=function(){return(_sqlite3_sourceid=Module[\"_sqlite3_sourceid\"]=Module[\"asm\"][\"sqlite3_sourceid\"]).apply(null,arguments)};var _pthread_mutexattr_init=Module[\"_pthread_mutexattr_init\"]=function(){return(_pthread_mutexattr_init=Module[\"_pthread_mutexattr_init\"]=Module[\"asm\"][\"pthread_mutexattr_init\"]).apply(null,arguments)};var _pthread_mutexattr_settype=Module[\"_pthread_mutexattr_settype\"]=function(){return(_pthread_mutexattr_settype=Module[\"_pthread_mutexattr_settype\"]=Module[\"asm\"][\"pthread_mutexattr_settype\"]).apply(null,arguments)};var _pthread_mutexattr_destroy=Module[\"_pthread_mutexattr_destroy\"]=function(){return(_pthread_mutexattr_destroy=Module[\"_pthread_mutexattr_destroy\"]=Module[\"asm\"][\"pthread_mutexattr_destroy\"]).apply(null,arguments)};var ___floatditf=Module[\"___floatditf\"]=function(){return(___floatditf=Module[\"___floatditf\"]=Module[\"asm\"][\"__floatditf\"]).apply(null,arguments)};var _BZ2_blockSort=Module[\"_BZ2_blockSort\"]=function(){return(_BZ2_blockSort=Module[\"_BZ2_blockSort\"]=Module[\"asm\"][\"BZ2_blockSort\"]).apply(null,arguments)};var _BZ2_bz__AssertH__fail=Module[\"_BZ2_bz__AssertH__fail\"]=function(){return(_BZ2_bz__AssertH__fail=Module[\"_BZ2_bz__AssertH__fail\"]=Module[\"asm\"][\"BZ2_bz__AssertH__fail\"]).apply(null,arguments)};var ___small_fprintf=Module[\"___small_fprintf\"]=function(){return(___small_fprintf=Module[\"___small_fprintf\"]=Module[\"asm\"][\"__small_fprintf\"]).apply(null,arguments)};var _BZ2_hbMakeCodeLengths=Module[\"_BZ2_hbMakeCodeLengths\"]=function(){return(_BZ2_hbMakeCodeLengths=Module[\"_BZ2_hbMakeCodeLengths\"]=Module[\"asm\"][\"BZ2_hbMakeCodeLengths\"]).apply(null,arguments)};var _BZ2_hbAssignCodes=Module[\"_BZ2_hbAssignCodes\"]=function(){return(_BZ2_hbAssignCodes=Module[\"_BZ2_hbAssignCodes\"]=Module[\"asm\"][\"BZ2_hbAssignCodes\"]).apply(null,arguments)};var _BZ2_hbCreateDecodeTables=Module[\"_BZ2_hbCreateDecodeTables\"]=function(){return(_BZ2_hbCreateDecodeTables=Module[\"_BZ2_hbCreateDecodeTables\"]=Module[\"asm\"][\"BZ2_hbCreateDecodeTables\"]).apply(null,arguments)};var _BZ2_bsInitWrite=Module[\"_BZ2_bsInitWrite\"]=function(){return(_BZ2_bsInitWrite=Module[\"_BZ2_bsInitWrite\"]=Module[\"asm\"][\"BZ2_bsInitWrite\"]).apply(null,arguments)};var _BZ2_compressBlock=Module[\"_BZ2_compressBlock\"]=function(){return(_BZ2_compressBlock=Module[\"_BZ2_compressBlock\"]=Module[\"asm\"][\"BZ2_compressBlock\"]).apply(null,arguments)};var _BZ2_decompress=Module[\"_BZ2_decompress\"]=function(){return(_BZ2_decompress=Module[\"_BZ2_decompress\"]=Module[\"asm\"][\"BZ2_decompress\"]).apply(null,arguments)};var _BZ2_indexIntoF=Module[\"_BZ2_indexIntoF\"]=function(){return(_BZ2_indexIntoF=Module[\"_BZ2_indexIntoF\"]=Module[\"asm\"][\"BZ2_indexIntoF\"]).apply(null,arguments)};var _BZ2_bzlibVersion=Module[\"_BZ2_bzlibVersion\"]=function(){return(_BZ2_bzlibVersion=Module[\"_BZ2_bzlibVersion\"]=Module[\"asm\"][\"BZ2_bzlibVersion\"]).apply(null,arguments)};var _BZ2_bzWriteOpen=Module[\"_BZ2_bzWriteOpen\"]=function(){return(_BZ2_bzWriteOpen=Module[\"_BZ2_bzWriteOpen\"]=Module[\"asm\"][\"BZ2_bzWriteOpen\"]).apply(null,arguments)};var _BZ2_bzWrite=Module[\"_BZ2_bzWrite\"]=function(){return(_BZ2_bzWrite=Module[\"_BZ2_bzWrite\"]=Module[\"asm\"][\"BZ2_bzWrite\"]).apply(null,arguments)};var _BZ2_bzWriteClose=Module[\"_BZ2_bzWriteClose\"]=function(){return(_BZ2_bzWriteClose=Module[\"_BZ2_bzWriteClose\"]=Module[\"asm\"][\"BZ2_bzWriteClose\"]).apply(null,arguments)};var _BZ2_bzWriteClose64=Module[\"_BZ2_bzWriteClose64\"]=function(){return(_BZ2_bzWriteClose64=Module[\"_BZ2_bzWriteClose64\"]=Module[\"asm\"][\"BZ2_bzWriteClose64\"]).apply(null,arguments)};var _BZ2_bzReadOpen=Module[\"_BZ2_bzReadOpen\"]=function(){return(_BZ2_bzReadOpen=Module[\"_BZ2_bzReadOpen\"]=Module[\"asm\"][\"BZ2_bzReadOpen\"]).apply(null,arguments)};var _BZ2_bzReadClose=Module[\"_BZ2_bzReadClose\"]=function(){return(_BZ2_bzReadClose=Module[\"_BZ2_bzReadClose\"]=Module[\"asm\"][\"BZ2_bzReadClose\"]).apply(null,arguments)};var _BZ2_bzRead=Module[\"_BZ2_bzRead\"]=function(){return(_BZ2_bzRead=Module[\"_BZ2_bzRead\"]=Module[\"asm\"][\"BZ2_bzRead\"]).apply(null,arguments)};var _fgetc=Module[\"_fgetc\"]=function(){return(_fgetc=Module[\"_fgetc\"]=Module[\"asm\"][\"fgetc\"]).apply(null,arguments)};var _BZ2_bzReadGetUnused=Module[\"_BZ2_bzReadGetUnused\"]=function(){return(_BZ2_bzReadGetUnused=Module[\"_BZ2_bzReadGetUnused\"]=Module[\"asm\"][\"BZ2_bzReadGetUnused\"]).apply(null,arguments)};var _BZ2_bzBuffToBuffCompress=Module[\"_BZ2_bzBuffToBuffCompress\"]=function(){return(_BZ2_bzBuffToBuffCompress=Module[\"_BZ2_bzBuffToBuffCompress\"]=Module[\"asm\"][\"BZ2_bzBuffToBuffCompress\"]).apply(null,arguments)};var _BZ2_bzBuffToBuffDecompress=Module[\"_BZ2_bzBuffToBuffDecompress\"]=function(){return(_BZ2_bzBuffToBuffDecompress=Module[\"_BZ2_bzBuffToBuffDecompress\"]=Module[\"asm\"][\"BZ2_bzBuffToBuffDecompress\"]).apply(null,arguments)};var _BZ2_bzopen=Module[\"_BZ2_bzopen\"]=function(){return(_BZ2_bzopen=Module[\"_BZ2_bzopen\"]=Module[\"asm\"][\"BZ2_bzopen\"]).apply(null,arguments)};var _BZ2_bzdopen=Module[\"_BZ2_bzdopen\"]=function(){return(_BZ2_bzdopen=Module[\"_BZ2_bzdopen\"]=Module[\"asm\"][\"BZ2_bzdopen\"]).apply(null,arguments)};var _BZ2_bzread=Module[\"_BZ2_bzread\"]=function(){return(_BZ2_bzread=Module[\"_BZ2_bzread\"]=Module[\"asm\"][\"BZ2_bzread\"]).apply(null,arguments)};var _BZ2_bzwrite=Module[\"_BZ2_bzwrite\"]=function(){return(_BZ2_bzwrite=Module[\"_BZ2_bzwrite\"]=Module[\"asm\"][\"BZ2_bzwrite\"]).apply(null,arguments)};var _BZ2_bzflush=Module[\"_BZ2_bzflush\"]=function(){return(_BZ2_bzflush=Module[\"_BZ2_bzflush\"]=Module[\"asm\"][\"BZ2_bzflush\"]).apply(null,arguments)};var _BZ2_bzclose=Module[\"_BZ2_bzclose\"]=function(){return(_BZ2_bzclose=Module[\"_BZ2_bzclose\"]=Module[\"asm\"][\"BZ2_bzclose\"]).apply(null,arguments)};var _BZ2_bzerror=Module[\"_BZ2_bzerror\"]=function(){return(_BZ2_bzerror=Module[\"_BZ2_bzerror\"]=Module[\"asm\"][\"BZ2_bzerror\"]).apply(null,arguments)};var _png_set_sig_bytes=Module[\"_png_set_sig_bytes\"]=function(){return(_png_set_sig_bytes=Module[\"_png_set_sig_bytes\"]=Module[\"asm\"][\"png_set_sig_bytes\"]).apply(null,arguments)};var _png_error=Module[\"_png_error\"]=function(){return(_png_error=Module[\"_png_error\"]=Module[\"asm\"][\"png_error\"]).apply(null,arguments)};var _png_sig_cmp=Module[\"_png_sig_cmp\"]=function(){return(_png_sig_cmp=Module[\"_png_sig_cmp\"]=Module[\"asm\"][\"png_sig_cmp\"]).apply(null,arguments)};var _png_zalloc=Module[\"_png_zalloc\"]=function(){return(_png_zalloc=Module[\"_png_zalloc\"]=Module[\"asm\"][\"png_zalloc\"]).apply(null,arguments)};var _png_warning=Module[\"_png_warning\"]=function(){return(_png_warning=Module[\"_png_warning\"]=Module[\"asm\"][\"png_warning\"]).apply(null,arguments)};var _png_malloc_warn=Module[\"_png_malloc_warn\"]=function(){return(_png_malloc_warn=Module[\"_png_malloc_warn\"]=Module[\"asm\"][\"png_malloc_warn\"]).apply(null,arguments)};var _png_zfree=Module[\"_png_zfree\"]=function(){return(_png_zfree=Module[\"_png_zfree\"]=Module[\"asm\"][\"png_zfree\"]).apply(null,arguments)};var _png_free=Module[\"_png_free\"]=function(){return(_png_free=Module[\"_png_free\"]=Module[\"asm\"][\"png_free\"]).apply(null,arguments)};var _png_reset_crc=Module[\"_png_reset_crc\"]=function(){return(_png_reset_crc=Module[\"_png_reset_crc\"]=Module[\"asm\"][\"png_reset_crc\"]).apply(null,arguments)};var _png_calculate_crc=Module[\"_png_calculate_crc\"]=function(){return(_png_calculate_crc=Module[\"_png_calculate_crc\"]=Module[\"asm\"][\"png_calculate_crc\"]).apply(null,arguments)};var _png_user_version_check=Module[\"_png_user_version_check\"]=function(){return(_png_user_version_check=Module[\"_png_user_version_check\"]=Module[\"asm\"][\"png_user_version_check\"]).apply(null,arguments)};var _png_safecat=Module[\"_png_safecat\"]=function(){return(_png_safecat=Module[\"_png_safecat\"]=Module[\"asm\"][\"png_safecat\"]).apply(null,arguments)};var _png_create_png_struct=Module[\"_png_create_png_struct\"]=function(){return(_png_create_png_struct=Module[\"_png_create_png_struct\"]=Module[\"asm\"][\"png_create_png_struct\"]).apply(null,arguments)};var _png_set_mem_fn=Module[\"_png_set_mem_fn\"]=function(){return(_png_set_mem_fn=Module[\"_png_set_mem_fn\"]=Module[\"asm\"][\"png_set_mem_fn\"]).apply(null,arguments)};var _testSetjmp=Module[\"_testSetjmp\"]=function(){return(_testSetjmp=Module[\"_testSetjmp\"]=Module[\"asm\"][\"testSetjmp\"]).apply(null,arguments)};var _png_set_error_fn=Module[\"_png_set_error_fn\"]=function(){return(_png_set_error_fn=Module[\"_png_set_error_fn\"]=Module[\"asm\"][\"png_set_error_fn\"]).apply(null,arguments)};var _saveSetjmp=Module[\"_saveSetjmp\"]=function(){return(_saveSetjmp=Module[\"_saveSetjmp\"]=Module[\"asm\"][\"saveSetjmp\"]).apply(null,arguments)};var _png_create_info_struct=Module[\"_png_create_info_struct\"]=function(){return(_png_create_info_struct=Module[\"_png_create_info_struct\"]=Module[\"asm\"][\"png_create_info_struct\"]).apply(null,arguments)};var _png_malloc_base=Module[\"_png_malloc_base\"]=function(){return(_png_malloc_base=Module[\"_png_malloc_base\"]=Module[\"asm\"][\"png_malloc_base\"]).apply(null,arguments)};var _png_destroy_info_struct=Module[\"_png_destroy_info_struct\"]=function(){return(_png_destroy_info_struct=Module[\"_png_destroy_info_struct\"]=Module[\"asm\"][\"png_destroy_info_struct\"]).apply(null,arguments)};var _png_free_data=Module[\"_png_free_data\"]=function(){return(_png_free_data=Module[\"_png_free_data\"]=Module[\"asm\"][\"png_free_data\"]).apply(null,arguments)};var _png_info_init_3=Module[\"_png_info_init_3\"]=function(){return(_png_info_init_3=Module[\"_png_info_init_3\"]=Module[\"asm\"][\"png_info_init_3\"]).apply(null,arguments)};var _png_data_freer=Module[\"_png_data_freer\"]=function(){return(_png_data_freer=Module[\"_png_data_freer\"]=Module[\"asm\"][\"png_data_freer\"]).apply(null,arguments)};var _png_get_io_ptr=Module[\"_png_get_io_ptr\"]=function(){return(_png_get_io_ptr=Module[\"_png_get_io_ptr\"]=Module[\"asm\"][\"png_get_io_ptr\"]).apply(null,arguments)};var _png_init_io=Module[\"_png_init_io\"]=function(){return(_png_init_io=Module[\"_png_init_io\"]=Module[\"asm\"][\"png_init_io\"]).apply(null,arguments)};var _png_save_int_32=Module[\"_png_save_int_32\"]=function(){return(_png_save_int_32=Module[\"_png_save_int_32\"]=Module[\"asm\"][\"png_save_int_32\"]).apply(null,arguments)};var _png_convert_to_rfc1123_buffer=Module[\"_png_convert_to_rfc1123_buffer\"]=function(){return(_png_convert_to_rfc1123_buffer=Module[\"_png_convert_to_rfc1123_buffer\"]=Module[\"asm\"][\"png_convert_to_rfc1123_buffer\"]).apply(null,arguments)};var _png_format_number=Module[\"_png_format_number\"]=function(){return(_png_format_number=Module[\"_png_format_number\"]=Module[\"asm\"][\"png_format_number\"]).apply(null,arguments)};var _png_convert_to_rfc1123=Module[\"_png_convert_to_rfc1123\"]=function(){return(_png_convert_to_rfc1123=Module[\"_png_convert_to_rfc1123\"]=Module[\"asm\"][\"png_convert_to_rfc1123\"]).apply(null,arguments)};var _png_get_copyright=Module[\"_png_get_copyright\"]=function(){return(_png_get_copyright=Module[\"_png_get_copyright\"]=Module[\"asm\"][\"png_get_copyright\"]).apply(null,arguments)};var _png_get_libpng_ver=Module[\"_png_get_libpng_ver\"]=function(){return(_png_get_libpng_ver=Module[\"_png_get_libpng_ver\"]=Module[\"asm\"][\"png_get_libpng_ver\"]).apply(null,arguments)};var _png_get_header_ver=Module[\"_png_get_header_ver\"]=function(){return(_png_get_header_ver=Module[\"_png_get_header_ver\"]=Module[\"asm\"][\"png_get_header_ver\"]).apply(null,arguments)};var _png_get_header_version=Module[\"_png_get_header_version\"]=function(){return(_png_get_header_version=Module[\"_png_get_header_version\"]=Module[\"asm\"][\"png_get_header_version\"]).apply(null,arguments)};var _png_build_grayscale_palette=Module[\"_png_build_grayscale_palette\"]=function(){return(_png_build_grayscale_palette=Module[\"_png_build_grayscale_palette\"]=Module[\"asm\"][\"png_build_grayscale_palette\"]).apply(null,arguments)};var _png_handle_as_unknown=Module[\"_png_handle_as_unknown\"]=function(){return(_png_handle_as_unknown=Module[\"_png_handle_as_unknown\"]=Module[\"asm\"][\"png_handle_as_unknown\"]).apply(null,arguments)};var _png_chunk_unknown_handling=Module[\"_png_chunk_unknown_handling\"]=function(){return(_png_chunk_unknown_handling=Module[\"_png_chunk_unknown_handling\"]=Module[\"asm\"][\"png_chunk_unknown_handling\"]).apply(null,arguments)};var _png_reset_zstream=Module[\"_png_reset_zstream\"]=function(){return(_png_reset_zstream=Module[\"_png_reset_zstream\"]=Module[\"asm\"][\"png_reset_zstream\"]).apply(null,arguments)};var _inflateReset=Module[\"_inflateReset\"]=function(){return(_inflateReset=Module[\"_inflateReset\"]=Module[\"asm\"][\"inflateReset\"]).apply(null,arguments)};var _png_access_version_number=Module[\"_png_access_version_number\"]=function(){return(_png_access_version_number=Module[\"_png_access_version_number\"]=Module[\"asm\"][\"png_access_version_number\"]).apply(null,arguments)};var _png_zstream_error=Module[\"_png_zstream_error\"]=function(){return(_png_zstream_error=Module[\"_png_zstream_error\"]=Module[\"asm\"][\"png_zstream_error\"]).apply(null,arguments)};var _png_colorspace_set_gamma=Module[\"_png_colorspace_set_gamma\"]=function(){return(_png_colorspace_set_gamma=Module[\"_png_colorspace_set_gamma\"]=Module[\"asm\"][\"png_colorspace_set_gamma\"]).apply(null,arguments)};var _png_chunk_report=Module[\"_png_chunk_report\"]=function(){return(_png_chunk_report=Module[\"_png_chunk_report\"]=Module[\"asm\"][\"png_chunk_report\"]).apply(null,arguments)};var _png_colorspace_sync_info=Module[\"_png_colorspace_sync_info\"]=function(){return(_png_colorspace_sync_info=Module[\"_png_colorspace_sync_info\"]=Module[\"asm\"][\"png_colorspace_sync_info\"]).apply(null,arguments)};var _png_colorspace_sync=Module[\"_png_colorspace_sync\"]=function(){return(_png_colorspace_sync=Module[\"_png_colorspace_sync\"]=Module[\"asm\"][\"png_colorspace_sync\"]).apply(null,arguments)};var _png_colorspace_set_chromaticities=Module[\"_png_colorspace_set_chromaticities\"]=function(){return(_png_colorspace_set_chromaticities=Module[\"_png_colorspace_set_chromaticities\"]=Module[\"asm\"][\"png_colorspace_set_chromaticities\"]).apply(null,arguments)};var _png_benign_error=Module[\"_png_benign_error\"]=function(){return(_png_benign_error=Module[\"_png_benign_error\"]=Module[\"asm\"][\"png_benign_error\"]).apply(null,arguments)};var _png_colorspace_set_endpoints=Module[\"_png_colorspace_set_endpoints\"]=function(){return(_png_colorspace_set_endpoints=Module[\"_png_colorspace_set_endpoints\"]=Module[\"asm\"][\"png_colorspace_set_endpoints\"]).apply(null,arguments)};var _png_colorspace_set_sRGB=Module[\"_png_colorspace_set_sRGB\"]=function(){return(_png_colorspace_set_sRGB=Module[\"_png_colorspace_set_sRGB\"]=Module[\"asm\"][\"png_colorspace_set_sRGB\"]).apply(null,arguments)};var _png_icc_check_length=Module[\"_png_icc_check_length\"]=function(){return(_png_icc_check_length=Module[\"_png_icc_check_length\"]=Module[\"asm\"][\"png_icc_check_length\"]).apply(null,arguments)};var _png_icc_check_header=Module[\"_png_icc_check_header\"]=function(){return(_png_icc_check_header=Module[\"_png_icc_check_header\"]=Module[\"asm\"][\"png_icc_check_header\"]).apply(null,arguments)};var _png_icc_check_tag_table=Module[\"_png_icc_check_tag_table\"]=function(){return(_png_icc_check_tag_table=Module[\"_png_icc_check_tag_table\"]=Module[\"asm\"][\"png_icc_check_tag_table\"]).apply(null,arguments)};var _png_icc_set_sRGB=Module[\"_png_icc_set_sRGB\"]=function(){return(_png_icc_set_sRGB=Module[\"_png_icc_set_sRGB\"]=Module[\"asm\"][\"png_icc_set_sRGB\"]).apply(null,arguments)};var _png_colorspace_set_ICC=Module[\"_png_colorspace_set_ICC\"]=function(){return(_png_colorspace_set_ICC=Module[\"_png_colorspace_set_ICC\"]=Module[\"asm\"][\"png_colorspace_set_ICC\"]).apply(null,arguments)};var _png_colorspace_set_rgb_coefficients=Module[\"_png_colorspace_set_rgb_coefficients\"]=function(){return(_png_colorspace_set_rgb_coefficients=Module[\"_png_colorspace_set_rgb_coefficients\"]=Module[\"asm\"][\"png_colorspace_set_rgb_coefficients\"]).apply(null,arguments)};var _png_muldiv=Module[\"_png_muldiv\"]=function(){return(_png_muldiv=Module[\"_png_muldiv\"]=Module[\"asm\"][\"png_muldiv\"]).apply(null,arguments)};var _png_check_IHDR=Module[\"_png_check_IHDR\"]=function(){return(_png_check_IHDR=Module[\"_png_check_IHDR\"]=Module[\"asm\"][\"png_check_IHDR\"]).apply(null,arguments)};var _png_check_fp_number=Module[\"_png_check_fp_number\"]=function(){return(_png_check_fp_number=Module[\"_png_check_fp_number\"]=Module[\"asm\"][\"png_check_fp_number\"]).apply(null,arguments)};var _png_check_fp_string=Module[\"_png_check_fp_string\"]=function(){return(_png_check_fp_string=Module[\"_png_check_fp_string\"]=Module[\"asm\"][\"png_check_fp_string\"]).apply(null,arguments)};var _png_ascii_from_fp=Module[\"_png_ascii_from_fp\"]=function(){return(_png_ascii_from_fp=Module[\"_png_ascii_from_fp\"]=Module[\"asm\"][\"png_ascii_from_fp\"]).apply(null,arguments)};var _png_ascii_from_fixed=Module[\"_png_ascii_from_fixed\"]=function(){return(_png_ascii_from_fixed=Module[\"_png_ascii_from_fixed\"]=Module[\"asm\"][\"png_ascii_from_fixed\"]).apply(null,arguments)};var _png_fixed=Module[\"_png_fixed\"]=function(){return(_png_fixed=Module[\"_png_fixed\"]=Module[\"asm\"][\"png_fixed\"]).apply(null,arguments)};var _png_fixed_error=Module[\"_png_fixed_error\"]=function(){return(_png_fixed_error=Module[\"_png_fixed_error\"]=Module[\"asm\"][\"png_fixed_error\"]).apply(null,arguments)};var _png_muldiv_warn=Module[\"_png_muldiv_warn\"]=function(){return(_png_muldiv_warn=Module[\"_png_muldiv_warn\"]=Module[\"asm\"][\"png_muldiv_warn\"]).apply(null,arguments)};var _png_reciprocal=Module[\"_png_reciprocal\"]=function(){return(_png_reciprocal=Module[\"_png_reciprocal\"]=Module[\"asm\"][\"png_reciprocal\"]).apply(null,arguments)};var _png_gamma_significant=Module[\"_png_gamma_significant\"]=function(){return(_png_gamma_significant=Module[\"_png_gamma_significant\"]=Module[\"asm\"][\"png_gamma_significant\"]).apply(null,arguments)};var _png_reciprocal2=Module[\"_png_reciprocal2\"]=function(){return(_png_reciprocal2=Module[\"_png_reciprocal2\"]=Module[\"asm\"][\"png_reciprocal2\"]).apply(null,arguments)};var _png_gamma_8bit_correct=Module[\"_png_gamma_8bit_correct\"]=function(){return(_png_gamma_8bit_correct=Module[\"_png_gamma_8bit_correct\"]=Module[\"asm\"][\"png_gamma_8bit_correct\"]).apply(null,arguments)};var _png_gamma_16bit_correct=Module[\"_png_gamma_16bit_correct\"]=function(){return(_png_gamma_16bit_correct=Module[\"_png_gamma_16bit_correct\"]=Module[\"asm\"][\"png_gamma_16bit_correct\"]).apply(null,arguments)};var _png_gamma_correct=Module[\"_png_gamma_correct\"]=function(){return(_png_gamma_correct=Module[\"_png_gamma_correct\"]=Module[\"asm\"][\"png_gamma_correct\"]).apply(null,arguments)};var _png_destroy_gamma_table=Module[\"_png_destroy_gamma_table\"]=function(){return(_png_destroy_gamma_table=Module[\"_png_destroy_gamma_table\"]=Module[\"asm\"][\"png_destroy_gamma_table\"]).apply(null,arguments)};var _png_build_gamma_table=Module[\"_png_build_gamma_table\"]=function(){return(_png_build_gamma_table=Module[\"_png_build_gamma_table\"]=Module[\"asm\"][\"png_build_gamma_table\"]).apply(null,arguments)};var _png_malloc=Module[\"_png_malloc\"]=function(){return(_png_malloc=Module[\"_png_malloc\"]=Module[\"asm\"][\"png_malloc\"]).apply(null,arguments)};var _png_calloc=Module[\"_png_calloc\"]=function(){return(_png_calloc=Module[\"_png_calloc\"]=Module[\"asm\"][\"png_calloc\"]).apply(null,arguments)};var _png_set_option=Module[\"_png_set_option\"]=function(){return(_png_set_option=Module[\"_png_set_option\"]=Module[\"asm\"][\"png_set_option\"]).apply(null,arguments)};var _png_image_free=Module[\"_png_image_free\"]=function(){return(_png_image_free=Module[\"_png_image_free\"]=Module[\"asm\"][\"png_image_free\"]).apply(null,arguments)};var _png_safe_execute=Module[\"_png_safe_execute\"]=function(){return(_png_safe_execute=Module[\"_png_safe_execute\"]=Module[\"asm\"][\"png_safe_execute\"]).apply(null,arguments)};var _png_destroy_write_struct=Module[\"_png_destroy_write_struct\"]=function(){return(_png_destroy_write_struct=Module[\"_png_destroy_write_struct\"]=Module[\"asm\"][\"png_destroy_write_struct\"]).apply(null,arguments)};var _png_destroy_read_struct=Module[\"_png_destroy_read_struct\"]=function(){return(_png_destroy_read_struct=Module[\"_png_destroy_read_struct\"]=Module[\"asm\"][\"png_destroy_read_struct\"]).apply(null,arguments)};var _png_image_error=Module[\"_png_image_error\"]=function(){return(_png_image_error=Module[\"_png_image_error\"]=Module[\"asm\"][\"png_image_error\"]).apply(null,arguments)};var _png_longjmp=Module[\"_png_longjmp\"]=function(){return(_png_longjmp=Module[\"_png_longjmp\"]=Module[\"asm\"][\"png_longjmp\"]).apply(null,arguments)};var _png_warning_parameter=Module[\"_png_warning_parameter\"]=function(){return(_png_warning_parameter=Module[\"_png_warning_parameter\"]=Module[\"asm\"][\"png_warning_parameter\"]).apply(null,arguments)};var _png_warning_parameter_unsigned=Module[\"_png_warning_parameter_unsigned\"]=function(){return(_png_warning_parameter_unsigned=Module[\"_png_warning_parameter_unsigned\"]=Module[\"asm\"][\"png_warning_parameter_unsigned\"]).apply(null,arguments)};var _png_warning_parameter_signed=Module[\"_png_warning_parameter_signed\"]=function(){return(_png_warning_parameter_signed=Module[\"_png_warning_parameter_signed\"]=Module[\"asm\"][\"png_warning_parameter_signed\"]).apply(null,arguments)};var _png_formatted_warning=Module[\"_png_formatted_warning\"]=function(){return(_png_formatted_warning=Module[\"_png_formatted_warning\"]=Module[\"asm\"][\"png_formatted_warning\"]).apply(null,arguments)};var _png_chunk_error=Module[\"_png_chunk_error\"]=function(){return(_png_chunk_error=Module[\"_png_chunk_error\"]=Module[\"asm\"][\"png_chunk_error\"]).apply(null,arguments)};var _png_chunk_warning=Module[\"_png_chunk_warning\"]=function(){return(_png_chunk_warning=Module[\"_png_chunk_warning\"]=Module[\"asm\"][\"png_chunk_warning\"]).apply(null,arguments)};var _png_app_warning=Module[\"_png_app_warning\"]=function(){return(_png_app_warning=Module[\"_png_app_warning\"]=Module[\"asm\"][\"png_app_warning\"]).apply(null,arguments)};var _png_app_error=Module[\"_png_app_error\"]=function(){return(_png_app_error=Module[\"_png_app_error\"]=Module[\"asm\"][\"png_app_error\"]).apply(null,arguments)};var _png_chunk_benign_error=Module[\"_png_chunk_benign_error\"]=function(){return(_png_chunk_benign_error=Module[\"_png_chunk_benign_error\"]=Module[\"asm\"][\"png_chunk_benign_error\"]).apply(null,arguments)};var _png_set_longjmp_fn=Module[\"_png_set_longjmp_fn\"]=function(){return(_png_set_longjmp_fn=Module[\"_png_set_longjmp_fn\"]=Module[\"asm\"][\"png_set_longjmp_fn\"]).apply(null,arguments)};var _png_free_jmpbuf=Module[\"_png_free_jmpbuf\"]=function(){return(_png_free_jmpbuf=Module[\"_png_free_jmpbuf\"]=Module[\"asm\"][\"png_free_jmpbuf\"]).apply(null,arguments)};var _png_get_error_ptr=Module[\"_png_get_error_ptr\"]=function(){return(_png_get_error_ptr=Module[\"_png_get_error_ptr\"]=Module[\"asm\"][\"png_get_error_ptr\"]).apply(null,arguments)};var _png_safe_error=Module[\"_png_safe_error\"]=function(){return(_png_safe_error=Module[\"_png_safe_error\"]=Module[\"asm\"][\"png_safe_error\"]).apply(null,arguments)};var _png_safe_warning=Module[\"_png_safe_warning\"]=function(){return(_png_safe_warning=Module[\"_png_safe_warning\"]=Module[\"asm\"][\"png_safe_warning\"]).apply(null,arguments)};var _png_get_valid=Module[\"_png_get_valid\"]=function(){return(_png_get_valid=Module[\"_png_get_valid\"]=Module[\"asm\"][\"png_get_valid\"]).apply(null,arguments)};var _png_get_rowbytes=Module[\"_png_get_rowbytes\"]=function(){return(_png_get_rowbytes=Module[\"_png_get_rowbytes\"]=Module[\"asm\"][\"png_get_rowbytes\"]).apply(null,arguments)};var _png_get_rows=Module[\"_png_get_rows\"]=function(){return(_png_get_rows=Module[\"_png_get_rows\"]=Module[\"asm\"][\"png_get_rows\"]).apply(null,arguments)};var _png_get_image_width=Module[\"_png_get_image_width\"]=function(){return(_png_get_image_width=Module[\"_png_get_image_width\"]=Module[\"asm\"][\"png_get_image_width\"]).apply(null,arguments)};var _png_get_image_height=Module[\"_png_get_image_height\"]=function(){return(_png_get_image_height=Module[\"_png_get_image_height\"]=Module[\"asm\"][\"png_get_image_height\"]).apply(null,arguments)};var _png_get_bit_depth=Module[\"_png_get_bit_depth\"]=function(){return(_png_get_bit_depth=Module[\"_png_get_bit_depth\"]=Module[\"asm\"][\"png_get_bit_depth\"]).apply(null,arguments)};var _png_get_color_type=Module[\"_png_get_color_type\"]=function(){return(_png_get_color_type=Module[\"_png_get_color_type\"]=Module[\"asm\"][\"png_get_color_type\"]).apply(null,arguments)};var _png_get_filter_type=Module[\"_png_get_filter_type\"]=function(){return(_png_get_filter_type=Module[\"_png_get_filter_type\"]=Module[\"asm\"][\"png_get_filter_type\"]).apply(null,arguments)};var _png_get_interlace_type=Module[\"_png_get_interlace_type\"]=function(){return(_png_get_interlace_type=Module[\"_png_get_interlace_type\"]=Module[\"asm\"][\"png_get_interlace_type\"]).apply(null,arguments)};var _png_get_compression_type=Module[\"_png_get_compression_type\"]=function(){return(_png_get_compression_type=Module[\"_png_get_compression_type\"]=Module[\"asm\"][\"png_get_compression_type\"]).apply(null,arguments)};var _png_get_x_pixels_per_meter=Module[\"_png_get_x_pixels_per_meter\"]=function(){return(_png_get_x_pixels_per_meter=Module[\"_png_get_x_pixels_per_meter\"]=Module[\"asm\"][\"png_get_x_pixels_per_meter\"]).apply(null,arguments)};var _png_get_y_pixels_per_meter=Module[\"_png_get_y_pixels_per_meter\"]=function(){return(_png_get_y_pixels_per_meter=Module[\"_png_get_y_pixels_per_meter\"]=Module[\"asm\"][\"png_get_y_pixels_per_meter\"]).apply(null,arguments)};var _png_get_pixels_per_meter=Module[\"_png_get_pixels_per_meter\"]=function(){return(_png_get_pixels_per_meter=Module[\"_png_get_pixels_per_meter\"]=Module[\"asm\"][\"png_get_pixels_per_meter\"]).apply(null,arguments)};var _png_get_pixel_aspect_ratio=Module[\"_png_get_pixel_aspect_ratio\"]=function(){return(_png_get_pixel_aspect_ratio=Module[\"_png_get_pixel_aspect_ratio\"]=Module[\"asm\"][\"png_get_pixel_aspect_ratio\"]).apply(null,arguments)};var _png_get_pixel_aspect_ratio_fixed=Module[\"_png_get_pixel_aspect_ratio_fixed\"]=function(){return(_png_get_pixel_aspect_ratio_fixed=Module[\"_png_get_pixel_aspect_ratio_fixed\"]=Module[\"asm\"][\"png_get_pixel_aspect_ratio_fixed\"]).apply(null,arguments)};var _png_get_x_offset_microns=Module[\"_png_get_x_offset_microns\"]=function(){return(_png_get_x_offset_microns=Module[\"_png_get_x_offset_microns\"]=Module[\"asm\"][\"png_get_x_offset_microns\"]).apply(null,arguments)};var _png_get_y_offset_microns=Module[\"_png_get_y_offset_microns\"]=function(){return(_png_get_y_offset_microns=Module[\"_png_get_y_offset_microns\"]=Module[\"asm\"][\"png_get_y_offset_microns\"]).apply(null,arguments)};var _png_get_x_offset_pixels=Module[\"_png_get_x_offset_pixels\"]=function(){return(_png_get_x_offset_pixels=Module[\"_png_get_x_offset_pixels\"]=Module[\"asm\"][\"png_get_x_offset_pixels\"]).apply(null,arguments)};var _png_get_y_offset_pixels=Module[\"_png_get_y_offset_pixels\"]=function(){return(_png_get_y_offset_pixels=Module[\"_png_get_y_offset_pixels\"]=Module[\"asm\"][\"png_get_y_offset_pixels\"]).apply(null,arguments)};var _png_get_pixels_per_inch=Module[\"_png_get_pixels_per_inch\"]=function(){return(_png_get_pixels_per_inch=Module[\"_png_get_pixels_per_inch\"]=Module[\"asm\"][\"png_get_pixels_per_inch\"]).apply(null,arguments)};var _png_get_x_pixels_per_inch=Module[\"_png_get_x_pixels_per_inch\"]=function(){return(_png_get_x_pixels_per_inch=Module[\"_png_get_x_pixels_per_inch\"]=Module[\"asm\"][\"png_get_x_pixels_per_inch\"]).apply(null,arguments)};var _png_get_y_pixels_per_inch=Module[\"_png_get_y_pixels_per_inch\"]=function(){return(_png_get_y_pixels_per_inch=Module[\"_png_get_y_pixels_per_inch\"]=Module[\"asm\"][\"png_get_y_pixels_per_inch\"]).apply(null,arguments)};var _png_get_x_offset_inches_fixed=Module[\"_png_get_x_offset_inches_fixed\"]=function(){return(_png_get_x_offset_inches_fixed=Module[\"_png_get_x_offset_inches_fixed\"]=Module[\"asm\"][\"png_get_x_offset_inches_fixed\"]).apply(null,arguments)};var _png_get_y_offset_inches_fixed=Module[\"_png_get_y_offset_inches_fixed\"]=function(){return(_png_get_y_offset_inches_fixed=Module[\"_png_get_y_offset_inches_fixed\"]=Module[\"asm\"][\"png_get_y_offset_inches_fixed\"]).apply(null,arguments)};var _png_get_x_offset_inches=Module[\"_png_get_x_offset_inches\"]=function(){return(_png_get_x_offset_inches=Module[\"_png_get_x_offset_inches\"]=Module[\"asm\"][\"png_get_x_offset_inches\"]).apply(null,arguments)};var _png_get_y_offset_inches=Module[\"_png_get_y_offset_inches\"]=function(){return(_png_get_y_offset_inches=Module[\"_png_get_y_offset_inches\"]=Module[\"asm\"][\"png_get_y_offset_inches\"]).apply(null,arguments)};var _png_get_pHYs_dpi=Module[\"_png_get_pHYs_dpi\"]=function(){return(_png_get_pHYs_dpi=Module[\"_png_get_pHYs_dpi\"]=Module[\"asm\"][\"png_get_pHYs_dpi\"]).apply(null,arguments)};var _png_get_channels=Module[\"_png_get_channels\"]=function(){return(_png_get_channels=Module[\"_png_get_channels\"]=Module[\"asm\"][\"png_get_channels\"]).apply(null,arguments)};var _png_get_signature=Module[\"_png_get_signature\"]=function(){return(_png_get_signature=Module[\"_png_get_signature\"]=Module[\"asm\"][\"png_get_signature\"]).apply(null,arguments)};var _png_get_bKGD=Module[\"_png_get_bKGD\"]=function(){return(_png_get_bKGD=Module[\"_png_get_bKGD\"]=Module[\"asm\"][\"png_get_bKGD\"]).apply(null,arguments)};var _png_get_cHRM=Module[\"_png_get_cHRM\"]=function(){return(_png_get_cHRM=Module[\"_png_get_cHRM\"]=Module[\"asm\"][\"png_get_cHRM\"]).apply(null,arguments)};var _png_get_cHRM_XYZ=Module[\"_png_get_cHRM_XYZ\"]=function(){return(_png_get_cHRM_XYZ=Module[\"_png_get_cHRM_XYZ\"]=Module[\"asm\"][\"png_get_cHRM_XYZ\"]).apply(null,arguments)};var _png_get_cHRM_XYZ_fixed=Module[\"_png_get_cHRM_XYZ_fixed\"]=function(){return(_png_get_cHRM_XYZ_fixed=Module[\"_png_get_cHRM_XYZ_fixed\"]=Module[\"asm\"][\"png_get_cHRM_XYZ_fixed\"]).apply(null,arguments)};var _png_get_cHRM_fixed=Module[\"_png_get_cHRM_fixed\"]=function(){return(_png_get_cHRM_fixed=Module[\"_png_get_cHRM_fixed\"]=Module[\"asm\"][\"png_get_cHRM_fixed\"]).apply(null,arguments)};var _png_get_gAMA_fixed=Module[\"_png_get_gAMA_fixed\"]=function(){return(_png_get_gAMA_fixed=Module[\"_png_get_gAMA_fixed\"]=Module[\"asm\"][\"png_get_gAMA_fixed\"]).apply(null,arguments)};var _png_get_gAMA=Module[\"_png_get_gAMA\"]=function(){return(_png_get_gAMA=Module[\"_png_get_gAMA\"]=Module[\"asm\"][\"png_get_gAMA\"]).apply(null,arguments)};var _png_get_sRGB=Module[\"_png_get_sRGB\"]=function(){return(_png_get_sRGB=Module[\"_png_get_sRGB\"]=Module[\"asm\"][\"png_get_sRGB\"]).apply(null,arguments)};var _png_get_iCCP=Module[\"_png_get_iCCP\"]=function(){return(_png_get_iCCP=Module[\"_png_get_iCCP\"]=Module[\"asm\"][\"png_get_iCCP\"]).apply(null,arguments)};var _png_get_sPLT=Module[\"_png_get_sPLT\"]=function(){return(_png_get_sPLT=Module[\"_png_get_sPLT\"]=Module[\"asm\"][\"png_get_sPLT\"]).apply(null,arguments)};var _png_get_hIST=Module[\"_png_get_hIST\"]=function(){return(_png_get_hIST=Module[\"_png_get_hIST\"]=Module[\"asm\"][\"png_get_hIST\"]).apply(null,arguments)};var _png_get_IHDR=Module[\"_png_get_IHDR\"]=function(){return(_png_get_IHDR=Module[\"_png_get_IHDR\"]=Module[\"asm\"][\"png_get_IHDR\"]).apply(null,arguments)};var _png_get_oFFs=Module[\"_png_get_oFFs\"]=function(){return(_png_get_oFFs=Module[\"_png_get_oFFs\"]=Module[\"asm\"][\"png_get_oFFs\"]).apply(null,arguments)};var _png_get_pCAL=Module[\"_png_get_pCAL\"]=function(){return(_png_get_pCAL=Module[\"_png_get_pCAL\"]=Module[\"asm\"][\"png_get_pCAL\"]).apply(null,arguments)};var _png_get_sCAL_fixed=Module[\"_png_get_sCAL_fixed\"]=function(){return(_png_get_sCAL_fixed=Module[\"_png_get_sCAL_fixed\"]=Module[\"asm\"][\"png_get_sCAL_fixed\"]).apply(null,arguments)};var _atof=Module[\"_atof\"]=function(){return(_atof=Module[\"_atof\"]=Module[\"asm\"][\"atof\"]).apply(null,arguments)};var _png_get_sCAL=Module[\"_png_get_sCAL\"]=function(){return(_png_get_sCAL=Module[\"_png_get_sCAL\"]=Module[\"asm\"][\"png_get_sCAL\"]).apply(null,arguments)};var _png_get_sCAL_s=Module[\"_png_get_sCAL_s\"]=function(){return(_png_get_sCAL_s=Module[\"_png_get_sCAL_s\"]=Module[\"asm\"][\"png_get_sCAL_s\"]).apply(null,arguments)};var _png_get_pHYs=Module[\"_png_get_pHYs\"]=function(){return(_png_get_pHYs=Module[\"_png_get_pHYs\"]=Module[\"asm\"][\"png_get_pHYs\"]).apply(null,arguments)};var _png_get_PLTE=Module[\"_png_get_PLTE\"]=function(){return(_png_get_PLTE=Module[\"_png_get_PLTE\"]=Module[\"asm\"][\"png_get_PLTE\"]).apply(null,arguments)};var _png_get_sBIT=Module[\"_png_get_sBIT\"]=function(){return(_png_get_sBIT=Module[\"_png_get_sBIT\"]=Module[\"asm\"][\"png_get_sBIT\"]).apply(null,arguments)};var _png_get_text=Module[\"_png_get_text\"]=function(){return(_png_get_text=Module[\"_png_get_text\"]=Module[\"asm\"][\"png_get_text\"]).apply(null,arguments)};var _png_get_tIME=Module[\"_png_get_tIME\"]=function(){return(_png_get_tIME=Module[\"_png_get_tIME\"]=Module[\"asm\"][\"png_get_tIME\"]).apply(null,arguments)};var _png_get_tRNS=Module[\"_png_get_tRNS\"]=function(){return(_png_get_tRNS=Module[\"_png_get_tRNS\"]=Module[\"asm\"][\"png_get_tRNS\"]).apply(null,arguments)};var _png_get_unknown_chunks=Module[\"_png_get_unknown_chunks\"]=function(){return(_png_get_unknown_chunks=Module[\"_png_get_unknown_chunks\"]=Module[\"asm\"][\"png_get_unknown_chunks\"]).apply(null,arguments)};var _png_get_rgb_to_gray_status=Module[\"_png_get_rgb_to_gray_status\"]=function(){return(_png_get_rgb_to_gray_status=Module[\"_png_get_rgb_to_gray_status\"]=Module[\"asm\"][\"png_get_rgb_to_gray_status\"]).apply(null,arguments)};var _png_get_user_chunk_ptr=Module[\"_png_get_user_chunk_ptr\"]=function(){return(_png_get_user_chunk_ptr=Module[\"_png_get_user_chunk_ptr\"]=Module[\"asm\"][\"png_get_user_chunk_ptr\"]).apply(null,arguments)};var _png_get_compression_buffer_size=Module[\"_png_get_compression_buffer_size\"]=function(){return(_png_get_compression_buffer_size=Module[\"_png_get_compression_buffer_size\"]=Module[\"asm\"][\"png_get_compression_buffer_size\"]).apply(null,arguments)};var _png_get_user_width_max=Module[\"_png_get_user_width_max\"]=function(){return(_png_get_user_width_max=Module[\"_png_get_user_width_max\"]=Module[\"asm\"][\"png_get_user_width_max\"]).apply(null,arguments)};var _png_get_user_height_max=Module[\"_png_get_user_height_max\"]=function(){return(_png_get_user_height_max=Module[\"_png_get_user_height_max\"]=Module[\"asm\"][\"png_get_user_height_max\"]).apply(null,arguments)};var _png_get_chunk_cache_max=Module[\"_png_get_chunk_cache_max\"]=function(){return(_png_get_chunk_cache_max=Module[\"_png_get_chunk_cache_max\"]=Module[\"asm\"][\"png_get_chunk_cache_max\"]).apply(null,arguments)};var _png_get_chunk_malloc_max=Module[\"_png_get_chunk_malloc_max\"]=function(){return(_png_get_chunk_malloc_max=Module[\"_png_get_chunk_malloc_max\"]=Module[\"asm\"][\"png_get_chunk_malloc_max\"]).apply(null,arguments)};var _png_get_io_state=Module[\"_png_get_io_state\"]=function(){return(_png_get_io_state=Module[\"_png_get_io_state\"]=Module[\"asm\"][\"png_get_io_state\"]).apply(null,arguments)};var _png_get_io_chunk_type=Module[\"_png_get_io_chunk_type\"]=function(){return(_png_get_io_chunk_type=Module[\"_png_get_io_chunk_type\"]=Module[\"asm\"][\"png_get_io_chunk_type\"]).apply(null,arguments)};var _png_get_palette_max=Module[\"_png_get_palette_max\"]=function(){return(_png_get_palette_max=Module[\"_png_get_palette_max\"]=Module[\"asm\"][\"png_get_palette_max\"]).apply(null,arguments)};var _png_destroy_png_struct=Module[\"_png_destroy_png_struct\"]=function(){return(_png_destroy_png_struct=Module[\"_png_destroy_png_struct\"]=Module[\"asm\"][\"png_destroy_png_struct\"]).apply(null,arguments)};var _png_malloc_array=Module[\"_png_malloc_array\"]=function(){return(_png_malloc_array=Module[\"_png_malloc_array\"]=Module[\"asm\"][\"png_malloc_array\"]).apply(null,arguments)};var _png_realloc_array=Module[\"_png_realloc_array\"]=function(){return(_png_realloc_array=Module[\"_png_realloc_array\"]=Module[\"asm\"][\"png_realloc_array\"]).apply(null,arguments)};var _png_malloc_default=Module[\"_png_malloc_default\"]=function(){return(_png_malloc_default=Module[\"_png_malloc_default\"]=Module[\"asm\"][\"png_malloc_default\"]).apply(null,arguments)};var _png_free_default=Module[\"_png_free_default\"]=function(){return(_png_free_default=Module[\"_png_free_default\"]=Module[\"asm\"][\"png_free_default\"]).apply(null,arguments)};var _png_get_mem_ptr=Module[\"_png_get_mem_ptr\"]=function(){return(_png_get_mem_ptr=Module[\"_png_get_mem_ptr\"]=Module[\"asm\"][\"png_get_mem_ptr\"]).apply(null,arguments)};var _png_process_data=Module[\"_png_process_data\"]=function(){return(_png_process_data=Module[\"_png_process_data\"]=Module[\"asm\"][\"png_process_data\"]).apply(null,arguments)};var _png_push_read_chunk=Module[\"_png_push_read_chunk\"]=function(){return(_png_push_read_chunk=Module[\"_png_push_read_chunk\"]=Module[\"asm\"][\"png_push_read_chunk\"]).apply(null,arguments)};var _png_push_read_IDAT=Module[\"_png_push_read_IDAT\"]=function(){return(_png_push_read_IDAT=Module[\"_png_push_read_IDAT\"]=Module[\"asm\"][\"png_push_read_IDAT\"]).apply(null,arguments)};var _png_push_crc_finish=Module[\"_png_push_crc_finish\"]=function(){return(_png_push_crc_finish=Module[\"_png_push_crc_finish\"]=Module[\"asm\"][\"png_push_crc_finish\"]).apply(null,arguments)};var _png_push_read_sig=Module[\"_png_push_read_sig\"]=function(){return(_png_push_read_sig=Module[\"_png_push_read_sig\"]=Module[\"asm\"][\"png_push_read_sig\"]).apply(null,arguments)};var _png_push_restore_buffer=Module[\"_png_push_restore_buffer\"]=function(){return(_png_push_restore_buffer=Module[\"_png_push_restore_buffer\"]=Module[\"asm\"][\"png_push_restore_buffer\"]).apply(null,arguments)};var _png_process_some_data=Module[\"_png_process_some_data\"]=function(){return(_png_process_some_data=Module[\"_png_process_some_data\"]=Module[\"asm\"][\"png_process_some_data\"]).apply(null,arguments)};var _png_process_data_pause=Module[\"_png_process_data_pause\"]=function(){return(_png_process_data_pause=Module[\"_png_process_data_pause\"]=Module[\"asm\"][\"png_process_data_pause\"]).apply(null,arguments)};var _png_push_save_buffer=Module[\"_png_push_save_buffer\"]=function(){return(_png_push_save_buffer=Module[\"_png_push_save_buffer\"]=Module[\"asm\"][\"png_push_save_buffer\"]).apply(null,arguments)};var _png_process_data_skip=Module[\"_png_process_data_skip\"]=function(){return(_png_process_data_skip=Module[\"_png_process_data_skip\"]=Module[\"asm\"][\"png_process_data_skip\"]).apply(null,arguments)};var _png_get_uint_31=Module[\"_png_get_uint_31\"]=function(){return(_png_get_uint_31=Module[\"_png_get_uint_31\"]=Module[\"asm\"][\"png_get_uint_31\"]).apply(null,arguments)};var _png_crc_read=Module[\"_png_crc_read\"]=function(){return(_png_crc_read=Module[\"_png_crc_read\"]=Module[\"asm\"][\"png_crc_read\"]).apply(null,arguments)};var _png_check_chunk_name=Module[\"_png_check_chunk_name\"]=function(){return(_png_check_chunk_name=Module[\"_png_check_chunk_name\"]=Module[\"asm\"][\"png_check_chunk_name\"]).apply(null,arguments)};var _png_handle_IHDR=Module[\"_png_handle_IHDR\"]=function(){return(_png_handle_IHDR=Module[\"_png_handle_IHDR\"]=Module[\"asm\"][\"png_handle_IHDR\"]).apply(null,arguments)};var _png_handle_IEND=Module[\"_png_handle_IEND\"]=function(){return(_png_handle_IEND=Module[\"_png_handle_IEND\"]=Module[\"asm\"][\"png_handle_IEND\"]).apply(null,arguments)};var _png_handle_PLTE=Module[\"_png_handle_PLTE\"]=function(){return(_png_handle_PLTE=Module[\"_png_handle_PLTE\"]=Module[\"asm\"][\"png_handle_PLTE\"]).apply(null,arguments)};var _png_handle_gAMA=Module[\"_png_handle_gAMA\"]=function(){return(_png_handle_gAMA=Module[\"_png_handle_gAMA\"]=Module[\"asm\"][\"png_handle_gAMA\"]).apply(null,arguments)};var _png_handle_sBIT=Module[\"_png_handle_sBIT\"]=function(){return(_png_handle_sBIT=Module[\"_png_handle_sBIT\"]=Module[\"asm\"][\"png_handle_sBIT\"]).apply(null,arguments)};var _png_handle_cHRM=Module[\"_png_handle_cHRM\"]=function(){return(_png_handle_cHRM=Module[\"_png_handle_cHRM\"]=Module[\"asm\"][\"png_handle_cHRM\"]).apply(null,arguments)};var _png_handle_sRGB=Module[\"_png_handle_sRGB\"]=function(){return(_png_handle_sRGB=Module[\"_png_handle_sRGB\"]=Module[\"asm\"][\"png_handle_sRGB\"]).apply(null,arguments)};var _png_handle_iCCP=Module[\"_png_handle_iCCP\"]=function(){return(_png_handle_iCCP=Module[\"_png_handle_iCCP\"]=Module[\"asm\"][\"png_handle_iCCP\"]).apply(null,arguments)};var _png_handle_sPLT=Module[\"_png_handle_sPLT\"]=function(){return(_png_handle_sPLT=Module[\"_png_handle_sPLT\"]=Module[\"asm\"][\"png_handle_sPLT\"]).apply(null,arguments)};var _png_handle_tRNS=Module[\"_png_handle_tRNS\"]=function(){return(_png_handle_tRNS=Module[\"_png_handle_tRNS\"]=Module[\"asm\"][\"png_handle_tRNS\"]).apply(null,arguments)};var _png_handle_bKGD=Module[\"_png_handle_bKGD\"]=function(){return(_png_handle_bKGD=Module[\"_png_handle_bKGD\"]=Module[\"asm\"][\"png_handle_bKGD\"]).apply(null,arguments)};var _png_handle_hIST=Module[\"_png_handle_hIST\"]=function(){return(_png_handle_hIST=Module[\"_png_handle_hIST\"]=Module[\"asm\"][\"png_handle_hIST\"]).apply(null,arguments)};var _png_handle_pHYs=Module[\"_png_handle_pHYs\"]=function(){return(_png_handle_pHYs=Module[\"_png_handle_pHYs\"]=Module[\"asm\"][\"png_handle_pHYs\"]).apply(null,arguments)};var _png_handle_oFFs=Module[\"_png_handle_oFFs\"]=function(){return(_png_handle_oFFs=Module[\"_png_handle_oFFs\"]=Module[\"asm\"][\"png_handle_oFFs\"]).apply(null,arguments)};var _png_handle_pCAL=Module[\"_png_handle_pCAL\"]=function(){return(_png_handle_pCAL=Module[\"_png_handle_pCAL\"]=Module[\"asm\"][\"png_handle_pCAL\"]).apply(null,arguments)};var _png_handle_sCAL=Module[\"_png_handle_sCAL\"]=function(){return(_png_handle_sCAL=Module[\"_png_handle_sCAL\"]=Module[\"asm\"][\"png_handle_sCAL\"]).apply(null,arguments)};var _png_handle_tIME=Module[\"_png_handle_tIME\"]=function(){return(_png_handle_tIME=Module[\"_png_handle_tIME\"]=Module[\"asm\"][\"png_handle_tIME\"]).apply(null,arguments)};var _png_handle_tEXt=Module[\"_png_handle_tEXt\"]=function(){return(_png_handle_tEXt=Module[\"_png_handle_tEXt\"]=Module[\"asm\"][\"png_handle_tEXt\"]).apply(null,arguments)};var _png_handle_zTXt=Module[\"_png_handle_zTXt\"]=function(){return(_png_handle_zTXt=Module[\"_png_handle_zTXt\"]=Module[\"asm\"][\"png_handle_zTXt\"]).apply(null,arguments)};var _png_handle_iTXt=Module[\"_png_handle_iTXt\"]=function(){return(_png_handle_iTXt=Module[\"_png_handle_iTXt\"]=Module[\"asm\"][\"png_handle_iTXt\"]).apply(null,arguments)};var _png_handle_unknown=Module[\"_png_handle_unknown\"]=function(){return(_png_handle_unknown=Module[\"_png_handle_unknown\"]=Module[\"asm\"][\"png_handle_unknown\"]).apply(null,arguments)};var _png_process_IDAT_data=Module[\"_png_process_IDAT_data\"]=function(){return(_png_process_IDAT_data=Module[\"_png_process_IDAT_data\"]=Module[\"asm\"][\"png_process_IDAT_data\"]).apply(null,arguments)};var _png_crc_finish=Module[\"_png_crc_finish\"]=function(){return(_png_crc_finish=Module[\"_png_crc_finish\"]=Module[\"asm\"][\"png_crc_finish\"]).apply(null,arguments)};var _png_push_fill_buffer=Module[\"_png_push_fill_buffer\"]=function(){return(_png_push_fill_buffer=Module[\"_png_push_fill_buffer\"]=Module[\"asm\"][\"png_push_fill_buffer\"]).apply(null,arguments)};var _png_push_have_end=Module[\"_png_push_have_end\"]=function(){return(_png_push_have_end=Module[\"_png_push_have_end\"]=Module[\"asm\"][\"png_push_have_end\"]).apply(null,arguments)};var _png_push_have_info=Module[\"_png_push_have_info\"]=function(){return(_png_push_have_info=Module[\"_png_push_have_info\"]=Module[\"asm\"][\"png_push_have_info\"]).apply(null,arguments)};var _png_push_crc_skip=Module[\"_png_push_crc_skip\"]=function(){return(_png_push_crc_skip=Module[\"_png_push_crc_skip\"]=Module[\"asm\"][\"png_push_crc_skip\"]).apply(null,arguments)};var _png_push_process_row=Module[\"_png_push_process_row\"]=function(){return(_png_push_process_row=Module[\"_png_push_process_row\"]=Module[\"asm\"][\"png_push_process_row\"]).apply(null,arguments)};var _png_read_filter_row=Module[\"_png_read_filter_row\"]=function(){return(_png_read_filter_row=Module[\"_png_read_filter_row\"]=Module[\"asm\"][\"png_read_filter_row\"]).apply(null,arguments)};var _png_do_read_transformations=Module[\"_png_do_read_transformations\"]=function(){return(_png_do_read_transformations=Module[\"_png_do_read_transformations\"]=Module[\"asm\"][\"png_do_read_transformations\"]).apply(null,arguments)};var _png_do_read_interlace=Module[\"_png_do_read_interlace\"]=function(){return(_png_do_read_interlace=Module[\"_png_do_read_interlace\"]=Module[\"asm\"][\"png_do_read_interlace\"]).apply(null,arguments)};var _png_read_push_finish_row=Module[\"_png_read_push_finish_row\"]=function(){return(_png_read_push_finish_row=Module[\"_png_read_push_finish_row\"]=Module[\"asm\"][\"png_read_push_finish_row\"]).apply(null,arguments)};var _png_push_have_row=Module[\"_png_push_have_row\"]=function(){return(_png_push_have_row=Module[\"_png_push_have_row\"]=Module[\"asm\"][\"png_push_have_row\"]).apply(null,arguments)};var _png_progressive_combine_row=Module[\"_png_progressive_combine_row\"]=function(){return(_png_progressive_combine_row=Module[\"_png_progressive_combine_row\"]=Module[\"asm\"][\"png_progressive_combine_row\"]).apply(null,arguments)};var _png_combine_row=Module[\"_png_combine_row\"]=function(){return(_png_combine_row=Module[\"_png_combine_row\"]=Module[\"asm\"][\"png_combine_row\"]).apply(null,arguments)};var _png_set_progressive_read_fn=Module[\"_png_set_progressive_read_fn\"]=function(){return(_png_set_progressive_read_fn=Module[\"_png_set_progressive_read_fn\"]=Module[\"asm\"][\"png_set_progressive_read_fn\"]).apply(null,arguments)};var _png_set_read_fn=Module[\"_png_set_read_fn\"]=function(){return(_png_set_read_fn=Module[\"_png_set_read_fn\"]=Module[\"asm\"][\"png_set_read_fn\"]).apply(null,arguments)};var _png_get_progressive_ptr=Module[\"_png_get_progressive_ptr\"]=function(){return(_png_get_progressive_ptr=Module[\"_png_get_progressive_ptr\"]=Module[\"asm\"][\"png_get_progressive_ptr\"]).apply(null,arguments)};var _png_create_read_struct=Module[\"_png_create_read_struct\"]=function(){return(_png_create_read_struct=Module[\"_png_create_read_struct\"]=Module[\"asm\"][\"png_create_read_struct\"]).apply(null,arguments)};var _png_create_read_struct_2=Module[\"_png_create_read_struct_2\"]=function(){return(_png_create_read_struct_2=Module[\"_png_create_read_struct_2\"]=Module[\"asm\"][\"png_create_read_struct_2\"]).apply(null,arguments)};var _png_read_info=Module[\"_png_read_info\"]=function(){return(_png_read_info=Module[\"_png_read_info\"]=Module[\"asm\"][\"png_read_info\"]).apply(null,arguments)};var _png_read_sig=Module[\"_png_read_sig\"]=function(){return(_png_read_sig=Module[\"_png_read_sig\"]=Module[\"asm\"][\"png_read_sig\"]).apply(null,arguments)};var _png_read_chunk_header=Module[\"_png_read_chunk_header\"]=function(){return(_png_read_chunk_header=Module[\"_png_read_chunk_header\"]=Module[\"asm\"][\"png_read_chunk_header\"]).apply(null,arguments)};var _png_read_update_info=Module[\"_png_read_update_info\"]=function(){return(_png_read_update_info=Module[\"_png_read_update_info\"]=Module[\"asm\"][\"png_read_update_info\"]).apply(null,arguments)};var _png_read_start_row=Module[\"_png_read_start_row\"]=function(){return(_png_read_start_row=Module[\"_png_read_start_row\"]=Module[\"asm\"][\"png_read_start_row\"]).apply(null,arguments)};var _png_read_transform_info=Module[\"_png_read_transform_info\"]=function(){return(_png_read_transform_info=Module[\"_png_read_transform_info\"]=Module[\"asm\"][\"png_read_transform_info\"]).apply(null,arguments)};var _png_start_read_image=Module[\"_png_start_read_image\"]=function(){return(_png_start_read_image=Module[\"_png_start_read_image\"]=Module[\"asm\"][\"png_start_read_image\"]).apply(null,arguments)};var _png_read_row=Module[\"_png_read_row\"]=function(){return(_png_read_row=Module[\"_png_read_row\"]=Module[\"asm\"][\"png_read_row\"]).apply(null,arguments)};var _png_read_finish_row=Module[\"_png_read_finish_row\"]=function(){return(_png_read_finish_row=Module[\"_png_read_finish_row\"]=Module[\"asm\"][\"png_read_finish_row\"]).apply(null,arguments)};var _png_read_IDAT_data=Module[\"_png_read_IDAT_data\"]=function(){return(_png_read_IDAT_data=Module[\"_png_read_IDAT_data\"]=Module[\"asm\"][\"png_read_IDAT_data\"]).apply(null,arguments)};var _png_read_rows=Module[\"_png_read_rows\"]=function(){return(_png_read_rows=Module[\"_png_read_rows\"]=Module[\"asm\"][\"png_read_rows\"]).apply(null,arguments)};var _png_read_image=Module[\"_png_read_image\"]=function(){return(_png_read_image=Module[\"_png_read_image\"]=Module[\"asm\"][\"png_read_image\"]).apply(null,arguments)};var _png_set_interlace_handling=Module[\"_png_set_interlace_handling\"]=function(){return(_png_set_interlace_handling=Module[\"_png_set_interlace_handling\"]=Module[\"asm\"][\"png_set_interlace_handling\"]).apply(null,arguments)};var _png_read_end=Module[\"_png_read_end\"]=function(){return(_png_read_end=Module[\"_png_read_end\"]=Module[\"asm\"][\"png_read_end\"]).apply(null,arguments)};var _png_read_finish_IDAT=Module[\"_png_read_finish_IDAT\"]=function(){return(_png_read_finish_IDAT=Module[\"_png_read_finish_IDAT\"]=Module[\"asm\"][\"png_read_finish_IDAT\"]).apply(null,arguments)};var _png_set_read_status_fn=Module[\"_png_set_read_status_fn\"]=function(){return(_png_set_read_status_fn=Module[\"_png_set_read_status_fn\"]=Module[\"asm\"][\"png_set_read_status_fn\"]).apply(null,arguments)};var _png_read_png=Module[\"_png_read_png\"]=function(){return(_png_read_png=Module[\"_png_read_png\"]=Module[\"asm\"][\"png_read_png\"]).apply(null,arguments)};var _png_set_scale_16=Module[\"_png_set_scale_16\"]=function(){return(_png_set_scale_16=Module[\"_png_set_scale_16\"]=Module[\"asm\"][\"png_set_scale_16\"]).apply(null,arguments)};var _png_set_strip_16=Module[\"_png_set_strip_16\"]=function(){return(_png_set_strip_16=Module[\"_png_set_strip_16\"]=Module[\"asm\"][\"png_set_strip_16\"]).apply(null,arguments)};var _png_set_strip_alpha=Module[\"_png_set_strip_alpha\"]=function(){return(_png_set_strip_alpha=Module[\"_png_set_strip_alpha\"]=Module[\"asm\"][\"png_set_strip_alpha\"]).apply(null,arguments)};var _png_set_packing=Module[\"_png_set_packing\"]=function(){return(_png_set_packing=Module[\"_png_set_packing\"]=Module[\"asm\"][\"png_set_packing\"]).apply(null,arguments)};var _png_set_packswap=Module[\"_png_set_packswap\"]=function(){return(_png_set_packswap=Module[\"_png_set_packswap\"]=Module[\"asm\"][\"png_set_packswap\"]).apply(null,arguments)};var _png_set_expand=Module[\"_png_set_expand\"]=function(){return(_png_set_expand=Module[\"_png_set_expand\"]=Module[\"asm\"][\"png_set_expand\"]).apply(null,arguments)};var _png_set_invert_mono=Module[\"_png_set_invert_mono\"]=function(){return(_png_set_invert_mono=Module[\"_png_set_invert_mono\"]=Module[\"asm\"][\"png_set_invert_mono\"]).apply(null,arguments)};var _png_set_shift=Module[\"_png_set_shift\"]=function(){return(_png_set_shift=Module[\"_png_set_shift\"]=Module[\"asm\"][\"png_set_shift\"]).apply(null,arguments)};var _png_set_bgr=Module[\"_png_set_bgr\"]=function(){return(_png_set_bgr=Module[\"_png_set_bgr\"]=Module[\"asm\"][\"png_set_bgr\"]).apply(null,arguments)};var _png_set_swap_alpha=Module[\"_png_set_swap_alpha\"]=function(){return(_png_set_swap_alpha=Module[\"_png_set_swap_alpha\"]=Module[\"asm\"][\"png_set_swap_alpha\"]).apply(null,arguments)};var _png_set_swap=Module[\"_png_set_swap\"]=function(){return(_png_set_swap=Module[\"_png_set_swap\"]=Module[\"asm\"][\"png_set_swap\"]).apply(null,arguments)};var _png_set_invert_alpha=Module[\"_png_set_invert_alpha\"]=function(){return(_png_set_invert_alpha=Module[\"_png_set_invert_alpha\"]=Module[\"asm\"][\"png_set_invert_alpha\"]).apply(null,arguments)};var _png_set_gray_to_rgb=Module[\"_png_set_gray_to_rgb\"]=function(){return(_png_set_gray_to_rgb=Module[\"_png_set_gray_to_rgb\"]=Module[\"asm\"][\"png_set_gray_to_rgb\"]).apply(null,arguments)};var _png_set_expand_16=Module[\"_png_set_expand_16\"]=function(){return(_png_set_expand_16=Module[\"_png_set_expand_16\"]=Module[\"asm\"][\"png_set_expand_16\"]).apply(null,arguments)};var _png_image_begin_read_from_stdio=Module[\"_png_image_begin_read_from_stdio\"]=function(){return(_png_image_begin_read_from_stdio=Module[\"_png_image_begin_read_from_stdio\"]=Module[\"asm\"][\"png_image_begin_read_from_stdio\"]).apply(null,arguments)};var _png_set_benign_errors=Module[\"_png_set_benign_errors\"]=function(){return(_png_set_benign_errors=Module[\"_png_set_benign_errors\"]=Module[\"asm\"][\"png_set_benign_errors\"]).apply(null,arguments)};var _png_image_begin_read_from_file=Module[\"_png_image_begin_read_from_file\"]=function(){return(_png_image_begin_read_from_file=Module[\"_png_image_begin_read_from_file\"]=Module[\"asm\"][\"png_image_begin_read_from_file\"]).apply(null,arguments)};var _png_image_begin_read_from_memory=Module[\"_png_image_begin_read_from_memory\"]=function(){return(_png_image_begin_read_from_memory=Module[\"_png_image_begin_read_from_memory\"]=Module[\"asm\"][\"png_image_begin_read_from_memory\"]).apply(null,arguments)};var _png_image_finish_read=Module[\"_png_image_finish_read\"]=function(){return(_png_image_finish_read=Module[\"_png_image_finish_read\"]=Module[\"asm\"][\"png_image_finish_read\"]).apply(null,arguments)};var _png_set_background_fixed=Module[\"_png_set_background_fixed\"]=function(){return(_png_set_background_fixed=Module[\"_png_set_background_fixed\"]=Module[\"asm\"][\"png_set_background_fixed\"]).apply(null,arguments)};var _png_set_rgb_to_gray_fixed=Module[\"_png_set_rgb_to_gray_fixed\"]=function(){return(_png_set_rgb_to_gray_fixed=Module[\"_png_set_rgb_to_gray_fixed\"]=Module[\"asm\"][\"png_set_rgb_to_gray_fixed\"]).apply(null,arguments)};var _png_set_tRNS_to_alpha=Module[\"_png_set_tRNS_to_alpha\"]=function(){return(_png_set_tRNS_to_alpha=Module[\"_png_set_tRNS_to_alpha\"]=Module[\"asm\"][\"png_set_tRNS_to_alpha\"]).apply(null,arguments)};var _png_set_alpha_mode_fixed=Module[\"_png_set_alpha_mode_fixed\"]=function(){return(_png_set_alpha_mode_fixed=Module[\"_png_set_alpha_mode_fixed\"]=Module[\"asm\"][\"png_set_alpha_mode_fixed\"]).apply(null,arguments)};var _png_set_keep_unknown_chunks=Module[\"_png_set_keep_unknown_chunks\"]=function(){return(_png_set_keep_unknown_chunks=Module[\"_png_set_keep_unknown_chunks\"]=Module[\"asm\"][\"png_set_keep_unknown_chunks\"]).apply(null,arguments)};var _png_set_add_alpha=Module[\"_png_set_add_alpha\"]=function(){return(_png_set_add_alpha=Module[\"_png_set_add_alpha\"]=Module[\"asm\"][\"png_set_add_alpha\"]).apply(null,arguments)};var _png_read_data=Module[\"_png_read_data\"]=function(){return(_png_read_data=Module[\"_png_read_data\"]=Module[\"asm\"][\"png_read_data\"]).apply(null,arguments)};var _png_default_read_data=Module[\"_png_default_read_data\"]=function(){return(_png_default_read_data=Module[\"_png_default_read_data\"]=Module[\"asm\"][\"png_default_read_data\"]).apply(null,arguments)};var _png_set_crc_action=Module[\"_png_set_crc_action\"]=function(){return(_png_set_crc_action=Module[\"_png_set_crc_action\"]=Module[\"asm\"][\"png_set_crc_action\"]).apply(null,arguments)};var _png_set_background=Module[\"_png_set_background\"]=function(){return(_png_set_background=Module[\"_png_set_background\"]=Module[\"asm\"][\"png_set_background\"]).apply(null,arguments)};var _png_set_alpha_mode=Module[\"_png_set_alpha_mode\"]=function(){return(_png_set_alpha_mode=Module[\"_png_set_alpha_mode\"]=Module[\"asm\"][\"png_set_alpha_mode\"]).apply(null,arguments)};var _png_set_quantize=Module[\"_png_set_quantize\"]=function(){return(_png_set_quantize=Module[\"_png_set_quantize\"]=Module[\"asm\"][\"png_set_quantize\"]).apply(null,arguments)};var _png_set_gamma_fixed=Module[\"_png_set_gamma_fixed\"]=function(){return(_png_set_gamma_fixed=Module[\"_png_set_gamma_fixed\"]=Module[\"asm\"][\"png_set_gamma_fixed\"]).apply(null,arguments)};var _png_set_gamma=Module[\"_png_set_gamma\"]=function(){return(_png_set_gamma=Module[\"_png_set_gamma\"]=Module[\"asm\"][\"png_set_gamma\"]).apply(null,arguments)};var _png_set_palette_to_rgb=Module[\"_png_set_palette_to_rgb\"]=function(){return(_png_set_palette_to_rgb=Module[\"_png_set_palette_to_rgb\"]=Module[\"asm\"][\"png_set_palette_to_rgb\"]).apply(null,arguments)};var _png_set_expand_gray_1_2_4_to_8=Module[\"_png_set_expand_gray_1_2_4_to_8\"]=function(){return(_png_set_expand_gray_1_2_4_to_8=Module[\"_png_set_expand_gray_1_2_4_to_8\"]=Module[\"asm\"][\"png_set_expand_gray_1_2_4_to_8\"]).apply(null,arguments)};var _png_set_rgb_to_gray=Module[\"_png_set_rgb_to_gray\"]=function(){return(_png_set_rgb_to_gray=Module[\"_png_set_rgb_to_gray\"]=Module[\"asm\"][\"png_set_rgb_to_gray\"]).apply(null,arguments)};var _png_set_read_user_transform_fn=Module[\"_png_set_read_user_transform_fn\"]=function(){return(_png_set_read_user_transform_fn=Module[\"_png_set_read_user_transform_fn\"]=Module[\"asm\"][\"png_set_read_user_transform_fn\"]).apply(null,arguments)};var _png_init_read_transformations=Module[\"_png_init_read_transformations\"]=function(){return(_png_init_read_transformations=Module[\"_png_init_read_transformations\"]=Module[\"asm\"][\"png_init_read_transformations\"]).apply(null,arguments)};var _png_do_strip_channel=Module[\"_png_do_strip_channel\"]=function(){return(_png_do_strip_channel=Module[\"_png_do_strip_channel\"]=Module[\"asm\"][\"png_do_strip_channel\"]).apply(null,arguments)};var _png_do_invert=Module[\"_png_do_invert\"]=function(){return(_png_do_invert=Module[\"_png_do_invert\"]=Module[\"asm\"][\"png_do_invert\"]).apply(null,arguments)};var _png_do_check_palette_indexes=Module[\"_png_do_check_palette_indexes\"]=function(){return(_png_do_check_palette_indexes=Module[\"_png_do_check_palette_indexes\"]=Module[\"asm\"][\"png_do_check_palette_indexes\"]).apply(null,arguments)};var _png_do_bgr=Module[\"_png_do_bgr\"]=function(){return(_png_do_bgr=Module[\"_png_do_bgr\"]=Module[\"asm\"][\"png_do_bgr\"]).apply(null,arguments)};var _png_do_packswap=Module[\"_png_do_packswap\"]=function(){return(_png_do_packswap=Module[\"_png_do_packswap\"]=Module[\"asm\"][\"png_do_packswap\"]).apply(null,arguments)};var _png_do_swap=Module[\"_png_do_swap\"]=function(){return(_png_do_swap=Module[\"_png_do_swap\"]=Module[\"asm\"][\"png_do_swap\"]).apply(null,arguments)};var _png_get_uint_32=Module[\"_png_get_uint_32\"]=function(){return(_png_get_uint_32=Module[\"_png_get_uint_32\"]=Module[\"asm\"][\"png_get_uint_32\"]).apply(null,arguments)};var _png_get_int_32=Module[\"_png_get_int_32\"]=function(){return(_png_get_int_32=Module[\"_png_get_int_32\"]=Module[\"asm\"][\"png_get_int_32\"]).apply(null,arguments)};var _png_get_uint_16=Module[\"_png_get_uint_16\"]=function(){return(_png_get_uint_16=Module[\"_png_get_uint_16\"]=Module[\"asm\"][\"png_get_uint_16\"]).apply(null,arguments)};var _png_crc_error=Module[\"_png_crc_error\"]=function(){return(_png_crc_error=Module[\"_png_crc_error\"]=Module[\"asm\"][\"png_crc_error\"]).apply(null,arguments)};var _png_set_IHDR=Module[\"_png_set_IHDR\"]=function(){return(_png_set_IHDR=Module[\"_png_set_IHDR\"]=Module[\"asm\"][\"png_set_IHDR\"]).apply(null,arguments)};var _png_set_PLTE=Module[\"_png_set_PLTE\"]=function(){return(_png_set_PLTE=Module[\"_png_set_PLTE\"]=Module[\"asm\"][\"png_set_PLTE\"]).apply(null,arguments)};var _png_set_sBIT=Module[\"_png_set_sBIT\"]=function(){return(_png_set_sBIT=Module[\"_png_set_sBIT\"]=Module[\"asm\"][\"png_set_sBIT\"]).apply(null,arguments)};var _inflateInit_=Module[\"_inflateInit_\"]=function(){return(_inflateInit_=Module[\"_inflateInit_\"]=Module[\"asm\"][\"inflateInit_\"]).apply(null,arguments)};var _png_set_sPLT=Module[\"_png_set_sPLT\"]=function(){return(_png_set_sPLT=Module[\"_png_set_sPLT\"]=Module[\"asm\"][\"png_set_sPLT\"]).apply(null,arguments)};var _png_set_tRNS=Module[\"_png_set_tRNS\"]=function(){return(_png_set_tRNS=Module[\"_png_set_tRNS\"]=Module[\"asm\"][\"png_set_tRNS\"]).apply(null,arguments)};var _png_set_bKGD=Module[\"_png_set_bKGD\"]=function(){return(_png_set_bKGD=Module[\"_png_set_bKGD\"]=Module[\"asm\"][\"png_set_bKGD\"]).apply(null,arguments)};var _png_set_hIST=Module[\"_png_set_hIST\"]=function(){return(_png_set_hIST=Module[\"_png_set_hIST\"]=Module[\"asm\"][\"png_set_hIST\"]).apply(null,arguments)};var _png_set_pHYs=Module[\"_png_set_pHYs\"]=function(){return(_png_set_pHYs=Module[\"_png_set_pHYs\"]=Module[\"asm\"][\"png_set_pHYs\"]).apply(null,arguments)};var _png_set_oFFs=Module[\"_png_set_oFFs\"]=function(){return(_png_set_oFFs=Module[\"_png_set_oFFs\"]=Module[\"asm\"][\"png_set_oFFs\"]).apply(null,arguments)};var _png_set_pCAL=Module[\"_png_set_pCAL\"]=function(){return(_png_set_pCAL=Module[\"_png_set_pCAL\"]=Module[\"asm\"][\"png_set_pCAL\"]).apply(null,arguments)};var _png_set_sCAL_s=Module[\"_png_set_sCAL_s\"]=function(){return(_png_set_sCAL_s=Module[\"_png_set_sCAL_s\"]=Module[\"asm\"][\"png_set_sCAL_s\"]).apply(null,arguments)};var _png_set_tIME=Module[\"_png_set_tIME\"]=function(){return(_png_set_tIME=Module[\"_png_set_tIME\"]=Module[\"asm\"][\"png_set_tIME\"]).apply(null,arguments)};var _png_set_text_2=Module[\"_png_set_text_2\"]=function(){return(_png_set_text_2=Module[\"_png_set_text_2\"]=Module[\"asm\"][\"png_set_text_2\"]).apply(null,arguments)};var _png_set_unknown_chunks=Module[\"_png_set_unknown_chunks\"]=function(){return(_png_set_unknown_chunks=Module[\"_png_set_unknown_chunks\"]=Module[\"asm\"][\"png_set_unknown_chunks\"]).apply(null,arguments)};var _png_set_cHRM_fixed=Module[\"_png_set_cHRM_fixed\"]=function(){return(_png_set_cHRM_fixed=Module[\"_png_set_cHRM_fixed\"]=Module[\"asm\"][\"png_set_cHRM_fixed\"]).apply(null,arguments)};var _png_set_cHRM_XYZ_fixed=Module[\"_png_set_cHRM_XYZ_fixed\"]=function(){return(_png_set_cHRM_XYZ_fixed=Module[\"_png_set_cHRM_XYZ_fixed\"]=Module[\"asm\"][\"png_set_cHRM_XYZ_fixed\"]).apply(null,arguments)};var _png_set_cHRM=Module[\"_png_set_cHRM\"]=function(){return(_png_set_cHRM=Module[\"_png_set_cHRM\"]=Module[\"asm\"][\"png_set_cHRM\"]).apply(null,arguments)};var _png_set_cHRM_XYZ=Module[\"_png_set_cHRM_XYZ\"]=function(){return(_png_set_cHRM_XYZ=Module[\"_png_set_cHRM_XYZ\"]=Module[\"asm\"][\"png_set_cHRM_XYZ\"]).apply(null,arguments)};var _png_set_gAMA_fixed=Module[\"_png_set_gAMA_fixed\"]=function(){return(_png_set_gAMA_fixed=Module[\"_png_set_gAMA_fixed\"]=Module[\"asm\"][\"png_set_gAMA_fixed\"]).apply(null,arguments)};var _png_set_gAMA=Module[\"_png_set_gAMA\"]=function(){return(_png_set_gAMA=Module[\"_png_set_gAMA\"]=Module[\"asm\"][\"png_set_gAMA\"]).apply(null,arguments)};var _png_set_sCAL=Module[\"_png_set_sCAL\"]=function(){return(_png_set_sCAL=Module[\"_png_set_sCAL\"]=Module[\"asm\"][\"png_set_sCAL\"]).apply(null,arguments)};var _png_set_sCAL_fixed=Module[\"_png_set_sCAL_fixed\"]=function(){return(_png_set_sCAL_fixed=Module[\"_png_set_sCAL_fixed\"]=Module[\"asm\"][\"png_set_sCAL_fixed\"]).apply(null,arguments)};var _png_set_sRGB=Module[\"_png_set_sRGB\"]=function(){return(_png_set_sRGB=Module[\"_png_set_sRGB\"]=Module[\"asm\"][\"png_set_sRGB\"]).apply(null,arguments)};var _png_set_sRGB_gAMA_and_cHRM=Module[\"_png_set_sRGB_gAMA_and_cHRM\"]=function(){return(_png_set_sRGB_gAMA_and_cHRM=Module[\"_png_set_sRGB_gAMA_and_cHRM\"]=Module[\"asm\"][\"png_set_sRGB_gAMA_and_cHRM\"]).apply(null,arguments)};var _png_set_iCCP=Module[\"_png_set_iCCP\"]=function(){return(_png_set_iCCP=Module[\"_png_set_iCCP\"]=Module[\"asm\"][\"png_set_iCCP\"]).apply(null,arguments)};var _png_set_text=Module[\"_png_set_text\"]=function(){return(_png_set_text=Module[\"_png_set_text\"]=Module[\"asm\"][\"png_set_text\"]).apply(null,arguments)};var _png_set_unknown_chunk_location=Module[\"_png_set_unknown_chunk_location\"]=function(){return(_png_set_unknown_chunk_location=Module[\"_png_set_unknown_chunk_location\"]=Module[\"asm\"][\"png_set_unknown_chunk_location\"]).apply(null,arguments)};var _png_permit_mng_features=Module[\"_png_permit_mng_features\"]=function(){return(_png_permit_mng_features=Module[\"_png_permit_mng_features\"]=Module[\"asm\"][\"png_permit_mng_features\"]).apply(null,arguments)};var _png_set_read_user_chunk_fn=Module[\"_png_set_read_user_chunk_fn\"]=function(){return(_png_set_read_user_chunk_fn=Module[\"_png_set_read_user_chunk_fn\"]=Module[\"asm\"][\"png_set_read_user_chunk_fn\"]).apply(null,arguments)};var _png_set_rows=Module[\"_png_set_rows\"]=function(){return(_png_set_rows=Module[\"_png_set_rows\"]=Module[\"asm\"][\"png_set_rows\"]).apply(null,arguments)};var _png_set_compression_buffer_size=Module[\"_png_set_compression_buffer_size\"]=function(){return(_png_set_compression_buffer_size=Module[\"_png_set_compression_buffer_size\"]=Module[\"asm\"][\"png_set_compression_buffer_size\"]).apply(null,arguments)};var _png_free_buffer_list=Module[\"_png_free_buffer_list\"]=function(){return(_png_free_buffer_list=Module[\"_png_free_buffer_list\"]=Module[\"asm\"][\"png_free_buffer_list\"]).apply(null,arguments)};var _png_set_invalid=Module[\"_png_set_invalid\"]=function(){return(_png_set_invalid=Module[\"_png_set_invalid\"]=Module[\"asm\"][\"png_set_invalid\"]).apply(null,arguments)};var _png_set_user_limits=Module[\"_png_set_user_limits\"]=function(){return(_png_set_user_limits=Module[\"_png_set_user_limits\"]=Module[\"asm\"][\"png_set_user_limits\"]).apply(null,arguments)};var _png_set_chunk_cache_max=Module[\"_png_set_chunk_cache_max\"]=function(){return(_png_set_chunk_cache_max=Module[\"_png_set_chunk_cache_max\"]=Module[\"asm\"][\"png_set_chunk_cache_max\"]).apply(null,arguments)};var _png_set_chunk_malloc_max=Module[\"_png_set_chunk_malloc_max\"]=function(){return(_png_set_chunk_malloc_max=Module[\"_png_set_chunk_malloc_max\"]=Module[\"asm\"][\"png_set_chunk_malloc_max\"]).apply(null,arguments)};var _png_set_check_for_invalid_index=Module[\"_png_set_check_for_invalid_index\"]=function(){return(_png_set_check_for_invalid_index=Module[\"_png_set_check_for_invalid_index\"]=Module[\"asm\"][\"png_set_check_for_invalid_index\"]).apply(null,arguments)};var _png_set_filler=Module[\"_png_set_filler\"]=function(){return(_png_set_filler=Module[\"_png_set_filler\"]=Module[\"asm\"][\"png_set_filler\"]).apply(null,arguments)};var _png_set_user_transform_info=Module[\"_png_set_user_transform_info\"]=function(){return(_png_set_user_transform_info=Module[\"_png_set_user_transform_info\"]=Module[\"asm\"][\"png_set_user_transform_info\"]).apply(null,arguments)};var _png_get_user_transform_ptr=Module[\"_png_get_user_transform_ptr\"]=function(){return(_png_get_user_transform_ptr=Module[\"_png_get_user_transform_ptr\"]=Module[\"asm\"][\"png_get_user_transform_ptr\"]).apply(null,arguments)};var _png_get_current_row_number=Module[\"_png_get_current_row_number\"]=function(){return(_png_get_current_row_number=Module[\"_png_get_current_row_number\"]=Module[\"asm\"][\"png_get_current_row_number\"]).apply(null,arguments)};var _png_get_current_pass_number=Module[\"_png_get_current_pass_number\"]=function(){return(_png_get_current_pass_number=Module[\"_png_get_current_pass_number\"]=Module[\"asm\"][\"png_get_current_pass_number\"]).apply(null,arguments)};var _png_write_data=Module[\"_png_write_data\"]=function(){return(_png_write_data=Module[\"_png_write_data\"]=Module[\"asm\"][\"png_write_data\"]).apply(null,arguments)};var _png_default_write_data=Module[\"_png_default_write_data\"]=function(){return(_png_default_write_data=Module[\"_png_default_write_data\"]=Module[\"asm\"][\"png_default_write_data\"]).apply(null,arguments)};var _png_flush=Module[\"_png_flush\"]=function(){return(_png_flush=Module[\"_png_flush\"]=Module[\"asm\"][\"png_flush\"]).apply(null,arguments)};var _png_default_flush=Module[\"_png_default_flush\"]=function(){return(_png_default_flush=Module[\"_png_default_flush\"]=Module[\"asm\"][\"png_default_flush\"]).apply(null,arguments)};var _png_set_write_fn=Module[\"_png_set_write_fn\"]=function(){return(_png_set_write_fn=Module[\"_png_set_write_fn\"]=Module[\"asm\"][\"png_set_write_fn\"]).apply(null,arguments)};var _png_write_info_before_PLTE=Module[\"_png_write_info_before_PLTE\"]=function(){return(_png_write_info_before_PLTE=Module[\"_png_write_info_before_PLTE\"]=Module[\"asm\"][\"png_write_info_before_PLTE\"]).apply(null,arguments)};var _png_write_sig=Module[\"_png_write_sig\"]=function(){return(_png_write_sig=Module[\"_png_write_sig\"]=Module[\"asm\"][\"png_write_sig\"]).apply(null,arguments)};var _png_write_IHDR=Module[\"_png_write_IHDR\"]=function(){return(_png_write_IHDR=Module[\"_png_write_IHDR\"]=Module[\"asm\"][\"png_write_IHDR\"]).apply(null,arguments)};var _png_write_gAMA_fixed=Module[\"_png_write_gAMA_fixed\"]=function(){return(_png_write_gAMA_fixed=Module[\"_png_write_gAMA_fixed\"]=Module[\"asm\"][\"png_write_gAMA_fixed\"]).apply(null,arguments)};var _png_write_iCCP=Module[\"_png_write_iCCP\"]=function(){return(_png_write_iCCP=Module[\"_png_write_iCCP\"]=Module[\"asm\"][\"png_write_iCCP\"]).apply(null,arguments)};var _png_write_sRGB=Module[\"_png_write_sRGB\"]=function(){return(_png_write_sRGB=Module[\"_png_write_sRGB\"]=Module[\"asm\"][\"png_write_sRGB\"]).apply(null,arguments)};var _png_write_sBIT=Module[\"_png_write_sBIT\"]=function(){return(_png_write_sBIT=Module[\"_png_write_sBIT\"]=Module[\"asm\"][\"png_write_sBIT\"]).apply(null,arguments)};var _png_write_cHRM_fixed=Module[\"_png_write_cHRM_fixed\"]=function(){return(_png_write_cHRM_fixed=Module[\"_png_write_cHRM_fixed\"]=Module[\"asm\"][\"png_write_cHRM_fixed\"]).apply(null,arguments)};var _png_write_chunk=Module[\"_png_write_chunk\"]=function(){return(_png_write_chunk=Module[\"_png_write_chunk\"]=Module[\"asm\"][\"png_write_chunk\"]).apply(null,arguments)};var _png_write_info=Module[\"_png_write_info\"]=function(){return(_png_write_info=Module[\"_png_write_info\"]=Module[\"asm\"][\"png_write_info\"]).apply(null,arguments)};var _png_write_PLTE=Module[\"_png_write_PLTE\"]=function(){return(_png_write_PLTE=Module[\"_png_write_PLTE\"]=Module[\"asm\"][\"png_write_PLTE\"]).apply(null,arguments)};var _png_write_tRNS=Module[\"_png_write_tRNS\"]=function(){return(_png_write_tRNS=Module[\"_png_write_tRNS\"]=Module[\"asm\"][\"png_write_tRNS\"]).apply(null,arguments)};var _png_write_bKGD=Module[\"_png_write_bKGD\"]=function(){return(_png_write_bKGD=Module[\"_png_write_bKGD\"]=Module[\"asm\"][\"png_write_bKGD\"]).apply(null,arguments)};var _png_write_hIST=Module[\"_png_write_hIST\"]=function(){return(_png_write_hIST=Module[\"_png_write_hIST\"]=Module[\"asm\"][\"png_write_hIST\"]).apply(null,arguments)};var _png_write_oFFs=Module[\"_png_write_oFFs\"]=function(){return(_png_write_oFFs=Module[\"_png_write_oFFs\"]=Module[\"asm\"][\"png_write_oFFs\"]).apply(null,arguments)};var _png_write_pCAL=Module[\"_png_write_pCAL\"]=function(){return(_png_write_pCAL=Module[\"_png_write_pCAL\"]=Module[\"asm\"][\"png_write_pCAL\"]).apply(null,arguments)};var _png_write_sCAL_s=Module[\"_png_write_sCAL_s\"]=function(){return(_png_write_sCAL_s=Module[\"_png_write_sCAL_s\"]=Module[\"asm\"][\"png_write_sCAL_s\"]).apply(null,arguments)};var _png_write_pHYs=Module[\"_png_write_pHYs\"]=function(){return(_png_write_pHYs=Module[\"_png_write_pHYs\"]=Module[\"asm\"][\"png_write_pHYs\"]).apply(null,arguments)};var _png_write_tIME=Module[\"_png_write_tIME\"]=function(){return(_png_write_tIME=Module[\"_png_write_tIME\"]=Module[\"asm\"][\"png_write_tIME\"]).apply(null,arguments)};var _png_write_sPLT=Module[\"_png_write_sPLT\"]=function(){return(_png_write_sPLT=Module[\"_png_write_sPLT\"]=Module[\"asm\"][\"png_write_sPLT\"]).apply(null,arguments)};var _png_write_iTXt=Module[\"_png_write_iTXt\"]=function(){return(_png_write_iTXt=Module[\"_png_write_iTXt\"]=Module[\"asm\"][\"png_write_iTXt\"]).apply(null,arguments)};var _png_write_zTXt=Module[\"_png_write_zTXt\"]=function(){return(_png_write_zTXt=Module[\"_png_write_zTXt\"]=Module[\"asm\"][\"png_write_zTXt\"]).apply(null,arguments)};var _png_write_tEXt=Module[\"_png_write_tEXt\"]=function(){return(_png_write_tEXt=Module[\"_png_write_tEXt\"]=Module[\"asm\"][\"png_write_tEXt\"]).apply(null,arguments)};var _png_write_end=Module[\"_png_write_end\"]=function(){return(_png_write_end=Module[\"_png_write_end\"]=Module[\"asm\"][\"png_write_end\"]).apply(null,arguments)};var _png_write_IEND=Module[\"_png_write_IEND\"]=function(){return(_png_write_IEND=Module[\"_png_write_IEND\"]=Module[\"asm\"][\"png_write_IEND\"]).apply(null,arguments)};var _png_convert_from_struct_tm=Module[\"_png_convert_from_struct_tm\"]=function(){return(_png_convert_from_struct_tm=Module[\"_png_convert_from_struct_tm\"]=Module[\"asm\"][\"png_convert_from_struct_tm\"]).apply(null,arguments)};var _png_convert_from_time_t=Module[\"_png_convert_from_time_t\"]=function(){return(_png_convert_from_time_t=Module[\"_png_convert_from_time_t\"]=Module[\"asm\"][\"png_convert_from_time_t\"]).apply(null,arguments)};var _gmtime=Module[\"_gmtime\"]=function(){return(_gmtime=Module[\"_gmtime\"]=Module[\"asm\"][\"gmtime\"]).apply(null,arguments)};var _png_create_write_struct=Module[\"_png_create_write_struct\"]=function(){return(_png_create_write_struct=Module[\"_png_create_write_struct\"]=Module[\"asm\"][\"png_create_write_struct\"]).apply(null,arguments)};var _png_create_write_struct_2=Module[\"_png_create_write_struct_2\"]=function(){return(_png_create_write_struct_2=Module[\"_png_create_write_struct_2\"]=Module[\"asm\"][\"png_create_write_struct_2\"]).apply(null,arguments)};var _png_write_rows=Module[\"_png_write_rows\"]=function(){return(_png_write_rows=Module[\"_png_write_rows\"]=Module[\"asm\"][\"png_write_rows\"]).apply(null,arguments)};var _png_write_row=Module[\"_png_write_row\"]=function(){return(_png_write_row=Module[\"_png_write_row\"]=Module[\"asm\"][\"png_write_row\"]).apply(null,arguments)};var _png_write_start_row=Module[\"_png_write_start_row\"]=function(){return(_png_write_start_row=Module[\"_png_write_start_row\"]=Module[\"asm\"][\"png_write_start_row\"]).apply(null,arguments)};var _png_write_finish_row=Module[\"_png_write_finish_row\"]=function(){return(_png_write_finish_row=Module[\"_png_write_finish_row\"]=Module[\"asm\"][\"png_write_finish_row\"]).apply(null,arguments)};var _png_do_write_interlace=Module[\"_png_do_write_interlace\"]=function(){return(_png_do_write_interlace=Module[\"_png_do_write_interlace\"]=Module[\"asm\"][\"png_do_write_interlace\"]).apply(null,arguments)};var _png_do_write_transformations=Module[\"_png_do_write_transformations\"]=function(){return(_png_do_write_transformations=Module[\"_png_do_write_transformations\"]=Module[\"asm\"][\"png_do_write_transformations\"]).apply(null,arguments)};var _png_write_find_filter=Module[\"_png_write_find_filter\"]=function(){return(_png_write_find_filter=Module[\"_png_write_find_filter\"]=Module[\"asm\"][\"png_write_find_filter\"]).apply(null,arguments)};var _png_write_image=Module[\"_png_write_image\"]=function(){return(_png_write_image=Module[\"_png_write_image\"]=Module[\"asm\"][\"png_write_image\"]).apply(null,arguments)};var _png_set_flush=Module[\"_png_set_flush\"]=function(){return(_png_set_flush=Module[\"_png_set_flush\"]=Module[\"asm\"][\"png_set_flush\"]).apply(null,arguments)};var _png_write_flush=Module[\"_png_write_flush\"]=function(){return(_png_write_flush=Module[\"_png_write_flush\"]=Module[\"asm\"][\"png_write_flush\"]).apply(null,arguments)};var _png_compress_IDAT=Module[\"_png_compress_IDAT\"]=function(){return(_png_compress_IDAT=Module[\"_png_compress_IDAT\"]=Module[\"asm\"][\"png_compress_IDAT\"]).apply(null,arguments)};var _png_set_filter=Module[\"_png_set_filter\"]=function(){return(_png_set_filter=Module[\"_png_set_filter\"]=Module[\"asm\"][\"png_set_filter\"]).apply(null,arguments)};var _png_set_filter_heuristics=Module[\"_png_set_filter_heuristics\"]=function(){return(_png_set_filter_heuristics=Module[\"_png_set_filter_heuristics\"]=Module[\"asm\"][\"png_set_filter_heuristics\"]).apply(null,arguments)};var _png_set_filter_heuristics_fixed=Module[\"_png_set_filter_heuristics_fixed\"]=function(){return(_png_set_filter_heuristics_fixed=Module[\"_png_set_filter_heuristics_fixed\"]=Module[\"asm\"][\"png_set_filter_heuristics_fixed\"]).apply(null,arguments)};var _png_set_compression_level=Module[\"_png_set_compression_level\"]=function(){return(_png_set_compression_level=Module[\"_png_set_compression_level\"]=Module[\"asm\"][\"png_set_compression_level\"]).apply(null,arguments)};var _png_set_compression_mem_level=Module[\"_png_set_compression_mem_level\"]=function(){return(_png_set_compression_mem_level=Module[\"_png_set_compression_mem_level\"]=Module[\"asm\"][\"png_set_compression_mem_level\"]).apply(null,arguments)};var _png_set_compression_strategy=Module[\"_png_set_compression_strategy\"]=function(){return(_png_set_compression_strategy=Module[\"_png_set_compression_strategy\"]=Module[\"asm\"][\"png_set_compression_strategy\"]).apply(null,arguments)};var _png_set_compression_window_bits=Module[\"_png_set_compression_window_bits\"]=function(){return(_png_set_compression_window_bits=Module[\"_png_set_compression_window_bits\"]=Module[\"asm\"][\"png_set_compression_window_bits\"]).apply(null,arguments)};var _png_set_compression_method=Module[\"_png_set_compression_method\"]=function(){return(_png_set_compression_method=Module[\"_png_set_compression_method\"]=Module[\"asm\"][\"png_set_compression_method\"]).apply(null,arguments)};var _png_set_text_compression_level=Module[\"_png_set_text_compression_level\"]=function(){return(_png_set_text_compression_level=Module[\"_png_set_text_compression_level\"]=Module[\"asm\"][\"png_set_text_compression_level\"]).apply(null,arguments)};var _png_set_text_compression_mem_level=Module[\"_png_set_text_compression_mem_level\"]=function(){return(_png_set_text_compression_mem_level=Module[\"_png_set_text_compression_mem_level\"]=Module[\"asm\"][\"png_set_text_compression_mem_level\"]).apply(null,arguments)};var _png_set_text_compression_strategy=Module[\"_png_set_text_compression_strategy\"]=function(){return(_png_set_text_compression_strategy=Module[\"_png_set_text_compression_strategy\"]=Module[\"asm\"][\"png_set_text_compression_strategy\"]).apply(null,arguments)};var _png_set_text_compression_window_bits=Module[\"_png_set_text_compression_window_bits\"]=function(){return(_png_set_text_compression_window_bits=Module[\"_png_set_text_compression_window_bits\"]=Module[\"asm\"][\"png_set_text_compression_window_bits\"]).apply(null,arguments)};var _png_set_text_compression_method=Module[\"_png_set_text_compression_method\"]=function(){return(_png_set_text_compression_method=Module[\"_png_set_text_compression_method\"]=Module[\"asm\"][\"png_set_text_compression_method\"]).apply(null,arguments)};var _png_set_write_status_fn=Module[\"_png_set_write_status_fn\"]=function(){return(_png_set_write_status_fn=Module[\"_png_set_write_status_fn\"]=Module[\"asm\"][\"png_set_write_status_fn\"]).apply(null,arguments)};var _png_set_write_user_transform_fn=Module[\"_png_set_write_user_transform_fn\"]=function(){return(_png_set_write_user_transform_fn=Module[\"_png_set_write_user_transform_fn\"]=Module[\"asm\"][\"png_set_write_user_transform_fn\"]).apply(null,arguments)};var _png_write_png=Module[\"_png_write_png\"]=function(){return(_png_write_png=Module[\"_png_write_png\"]=Module[\"asm\"][\"png_write_png\"]).apply(null,arguments)};var _png_image_write_to_stdio=Module[\"_png_image_write_to_stdio\"]=function(){return(_png_image_write_to_stdio=Module[\"_png_image_write_to_stdio\"]=Module[\"asm\"][\"png_image_write_to_stdio\"]).apply(null,arguments)};var _png_image_write_to_file=Module[\"_png_image_write_to_file\"]=function(){return(_png_image_write_to_file=Module[\"_png_image_write_to_file\"]=Module[\"asm\"][\"png_image_write_to_file\"]).apply(null,arguments)};var _remove=Module[\"_remove\"]=function(){return(_remove=Module[\"_remove\"]=Module[\"asm\"][\"remove\"]).apply(null,arguments)};var _png_save_uint_32=Module[\"_png_save_uint_32\"]=function(){return(_png_save_uint_32=Module[\"_png_save_uint_32\"]=Module[\"asm\"][\"png_save_uint_32\"]).apply(null,arguments)};var _png_save_uint_16=Module[\"_png_save_uint_16\"]=function(){return(_png_save_uint_16=Module[\"_png_save_uint_16\"]=Module[\"asm\"][\"png_save_uint_16\"]).apply(null,arguments)};var _png_write_chunk_start=Module[\"_png_write_chunk_start\"]=function(){return(_png_write_chunk_start=Module[\"_png_write_chunk_start\"]=Module[\"asm\"][\"png_write_chunk_start\"]).apply(null,arguments)};var _png_write_chunk_data=Module[\"_png_write_chunk_data\"]=function(){return(_png_write_chunk_data=Module[\"_png_write_chunk_data\"]=Module[\"asm\"][\"png_write_chunk_data\"]).apply(null,arguments)};var _png_write_chunk_end=Module[\"_png_write_chunk_end\"]=function(){return(_png_write_chunk_end=Module[\"_png_write_chunk_end\"]=Module[\"asm\"][\"png_write_chunk_end\"]).apply(null,arguments)};var _deflateReset=Module[\"_deflateReset\"]=function(){return(_deflateReset=Module[\"_deflateReset\"]=Module[\"asm\"][\"deflateReset\"]).apply(null,arguments)};var _adler32_combine=Module[\"_adler32_combine\"]=function(){return(_adler32_combine=Module[\"_adler32_combine\"]=Module[\"asm\"][\"adler32_combine\"]).apply(null,arguments)};var _adler32_combine64=Module[\"_adler32_combine64\"]=function(){return(_adler32_combine64=Module[\"_adler32_combine64\"]=Module[\"asm\"][\"adler32_combine64\"]).apply(null,arguments)};var _compress2=Module[\"_compress2\"]=function(){return(_compress2=Module[\"_compress2\"]=Module[\"asm\"][\"compress2\"]).apply(null,arguments)};var _compress=Module[\"_compress\"]=function(){return(_compress=Module[\"_compress\"]=Module[\"asm\"][\"compress\"]).apply(null,arguments)};var _compressBound=Module[\"_compressBound\"]=function(){return(_compressBound=Module[\"_compressBound\"]=Module[\"asm\"][\"compressBound\"]).apply(null,arguments)};var _get_crc_table=Module[\"_get_crc_table\"]=function(){return(_get_crc_table=Module[\"_get_crc_table\"]=Module[\"asm\"][\"get_crc_table\"]).apply(null,arguments)};var _crc32_combine=Module[\"_crc32_combine\"]=function(){return(_crc32_combine=Module[\"_crc32_combine\"]=Module[\"asm\"][\"crc32_combine\"]).apply(null,arguments)};var _crc32_combine64=Module[\"_crc32_combine64\"]=function(){return(_crc32_combine64=Module[\"_crc32_combine64\"]=Module[\"asm\"][\"crc32_combine64\"]).apply(null,arguments)};var _zcalloc=Module[\"_zcalloc\"]=function(){return(_zcalloc=Module[\"_zcalloc\"]=Module[\"asm\"][\"zcalloc\"]).apply(null,arguments)};var _zcfree=Module[\"_zcfree\"]=function(){return(_zcfree=Module[\"_zcfree\"]=Module[\"asm\"][\"zcfree\"]).apply(null,arguments)};var _deflateResetKeep=Module[\"_deflateResetKeep\"]=function(){return(_deflateResetKeep=Module[\"_deflateResetKeep\"]=Module[\"asm\"][\"deflateResetKeep\"]).apply(null,arguments)};var __tr_init=Module[\"__tr_init\"]=function(){return(__tr_init=Module[\"__tr_init\"]=Module[\"asm\"][\"_tr_init\"]).apply(null,arguments)};var _deflateSetHeader=Module[\"_deflateSetHeader\"]=function(){return(_deflateSetHeader=Module[\"_deflateSetHeader\"]=Module[\"asm\"][\"deflateSetHeader\"]).apply(null,arguments)};var _deflatePending=Module[\"_deflatePending\"]=function(){return(_deflatePending=Module[\"_deflatePending\"]=Module[\"asm\"][\"deflatePending\"]).apply(null,arguments)};var _deflatePrime=Module[\"_deflatePrime\"]=function(){return(_deflatePrime=Module[\"_deflatePrime\"]=Module[\"asm\"][\"deflatePrime\"]).apply(null,arguments)};var __tr_flush_bits=Module[\"__tr_flush_bits\"]=function(){return(__tr_flush_bits=Module[\"__tr_flush_bits\"]=Module[\"asm\"][\"_tr_flush_bits\"]).apply(null,arguments)};var _deflateParams=Module[\"_deflateParams\"]=function(){return(_deflateParams=Module[\"_deflateParams\"]=Module[\"asm\"][\"deflateParams\"]).apply(null,arguments)};var __tr_flush_block=Module[\"__tr_flush_block\"]=function(){return(__tr_flush_block=Module[\"__tr_flush_block\"]=Module[\"asm\"][\"_tr_flush_block\"]).apply(null,arguments)};var __tr_align=Module[\"__tr_align\"]=function(){return(__tr_align=Module[\"__tr_align\"]=Module[\"asm\"][\"_tr_align\"]).apply(null,arguments)};var __tr_stored_block=Module[\"__tr_stored_block\"]=function(){return(__tr_stored_block=Module[\"__tr_stored_block\"]=Module[\"asm\"][\"_tr_stored_block\"]).apply(null,arguments)};var _deflateTune=Module[\"_deflateTune\"]=function(){return(_deflateTune=Module[\"_deflateTune\"]=Module[\"asm\"][\"deflateTune\"]).apply(null,arguments)};var _deflateBound=Module[\"_deflateBound\"]=function(){return(_deflateBound=Module[\"_deflateBound\"]=Module[\"asm\"][\"deflateBound\"]).apply(null,arguments)};var _deflateCopy=Module[\"_deflateCopy\"]=function(){return(_deflateCopy=Module[\"_deflateCopy\"]=Module[\"asm\"][\"deflateCopy\"]).apply(null,arguments)};var _gzclose=Module[\"_gzclose\"]=function(){return(_gzclose=Module[\"_gzclose\"]=Module[\"asm\"][\"gzclose\"]).apply(null,arguments)};var _gzclose_r=Module[\"_gzclose_r\"]=function(){return(_gzclose_r=Module[\"_gzclose_r\"]=Module[\"asm\"][\"gzclose_r\"]).apply(null,arguments)};var _gzclose_w=Module[\"_gzclose_w\"]=function(){return(_gzclose_w=Module[\"_gzclose_w\"]=Module[\"asm\"][\"gzclose_w\"]).apply(null,arguments)};var _gzopen=Module[\"_gzopen\"]=function(){return(_gzopen=Module[\"_gzopen\"]=Module[\"asm\"][\"gzopen\"]).apply(null,arguments)};var _gzopen64=Module[\"_gzopen64\"]=function(){return(_gzopen64=Module[\"_gzopen64\"]=Module[\"asm\"][\"gzopen64\"]).apply(null,arguments)};var _gzdopen=Module[\"_gzdopen\"]=function(){return(_gzdopen=Module[\"_gzdopen\"]=Module[\"asm\"][\"gzdopen\"]).apply(null,arguments)};var _gzbuffer=Module[\"_gzbuffer\"]=function(){return(_gzbuffer=Module[\"_gzbuffer\"]=Module[\"asm\"][\"gzbuffer\"]).apply(null,arguments)};var _gzrewind=Module[\"_gzrewind\"]=function(){return(_gzrewind=Module[\"_gzrewind\"]=Module[\"asm\"][\"gzrewind\"]).apply(null,arguments)};var _gzseek64=Module[\"_gzseek64\"]=function(){return(_gzseek64=Module[\"_gzseek64\"]=Module[\"asm\"][\"gzseek64\"]).apply(null,arguments)};var _gz_error=Module[\"_gz_error\"]=function(){return(_gz_error=Module[\"_gz_error\"]=Module[\"asm\"][\"gz_error\"]).apply(null,arguments)};var _gzseek=Module[\"_gzseek\"]=function(){return(_gzseek=Module[\"_gzseek\"]=Module[\"asm\"][\"gzseek\"]).apply(null,arguments)};var _gztell64=Module[\"_gztell64\"]=function(){return(_gztell64=Module[\"_gztell64\"]=Module[\"asm\"][\"gztell64\"]).apply(null,arguments)};var _gztell=Module[\"_gztell\"]=function(){return(_gztell=Module[\"_gztell\"]=Module[\"asm\"][\"gztell\"]).apply(null,arguments)};var _gzoffset64=Module[\"_gzoffset64\"]=function(){return(_gzoffset64=Module[\"_gzoffset64\"]=Module[\"asm\"][\"gzoffset64\"]).apply(null,arguments)};var _gzoffset=Module[\"_gzoffset\"]=function(){return(_gzoffset=Module[\"_gzoffset\"]=Module[\"asm\"][\"gzoffset\"]).apply(null,arguments)};var _gzeof=Module[\"_gzeof\"]=function(){return(_gzeof=Module[\"_gzeof\"]=Module[\"asm\"][\"gzeof\"]).apply(null,arguments)};var _gzerror=Module[\"_gzerror\"]=function(){return(_gzerror=Module[\"_gzerror\"]=Module[\"asm\"][\"gzerror\"]).apply(null,arguments)};var _gzclearerr=Module[\"_gzclearerr\"]=function(){return(_gzclearerr=Module[\"_gzclearerr\"]=Module[\"asm\"][\"gzclearerr\"]).apply(null,arguments)};var _gzread=Module[\"_gzread\"]=function(){return(_gzread=Module[\"_gzread\"]=Module[\"asm\"][\"gzread\"]).apply(null,arguments)};var _gzgetc=Module[\"_gzgetc\"]=function(){return(_gzgetc=Module[\"_gzgetc\"]=Module[\"asm\"][\"gzgetc\"]).apply(null,arguments)};var _gzgetc_=Module[\"_gzgetc_\"]=function(){return(_gzgetc_=Module[\"_gzgetc_\"]=Module[\"asm\"][\"gzgetc_\"]).apply(null,arguments)};var _gzungetc=Module[\"_gzungetc\"]=function(){return(_gzungetc=Module[\"_gzungetc\"]=Module[\"asm\"][\"gzungetc\"]).apply(null,arguments)};var _gzgets=Module[\"_gzgets\"]=function(){return(_gzgets=Module[\"_gzgets\"]=Module[\"asm\"][\"gzgets\"]).apply(null,arguments)};var _gzdirect=Module[\"_gzdirect\"]=function(){return(_gzdirect=Module[\"_gzdirect\"]=Module[\"asm\"][\"gzdirect\"]).apply(null,arguments)};var _gzwrite=Module[\"_gzwrite\"]=function(){return(_gzwrite=Module[\"_gzwrite\"]=Module[\"asm\"][\"gzwrite\"]).apply(null,arguments)};var _gzputc=Module[\"_gzputc\"]=function(){return(_gzputc=Module[\"_gzputc\"]=Module[\"asm\"][\"gzputc\"]).apply(null,arguments)};var _gzputs=Module[\"_gzputs\"]=function(){return(_gzputs=Module[\"_gzputs\"]=Module[\"asm\"][\"gzputs\"]).apply(null,arguments)};var _gzvprintf=Module[\"_gzvprintf\"]=function(){return(_gzvprintf=Module[\"_gzvprintf\"]=Module[\"asm\"][\"gzvprintf\"]).apply(null,arguments)};var _gzprintf=Module[\"_gzprintf\"]=function(){return(_gzprintf=Module[\"_gzprintf\"]=Module[\"asm\"][\"gzprintf\"]).apply(null,arguments)};var _gzflush=Module[\"_gzflush\"]=function(){return(_gzflush=Module[\"_gzflush\"]=Module[\"asm\"][\"gzflush\"]).apply(null,arguments)};var _gzsetparams=Module[\"_gzsetparams\"]=function(){return(_gzsetparams=Module[\"_gzsetparams\"]=Module[\"asm\"][\"gzsetparams\"]).apply(null,arguments)};var _inflateBackInit_=Module[\"_inflateBackInit_\"]=function(){return(_inflateBackInit_=Module[\"_inflateBackInit_\"]=Module[\"asm\"][\"inflateBackInit_\"]).apply(null,arguments)};var _inflateBack=Module[\"_inflateBack\"]=function(){return(_inflateBack=Module[\"_inflateBack\"]=Module[\"asm\"][\"inflateBack\"]).apply(null,arguments)};var _inflate_table=Module[\"_inflate_table\"]=function(){return(_inflate_table=Module[\"_inflate_table\"]=Module[\"asm\"][\"inflate_table\"]).apply(null,arguments)};var _inflate_fast=Module[\"_inflate_fast\"]=function(){return(_inflate_fast=Module[\"_inflate_fast\"]=Module[\"asm\"][\"inflate_fast\"]).apply(null,arguments)};var _inflateBackEnd=Module[\"_inflateBackEnd\"]=function(){return(_inflateBackEnd=Module[\"_inflateBackEnd\"]=Module[\"asm\"][\"inflateBackEnd\"]).apply(null,arguments)};var _inflateResetKeep=Module[\"_inflateResetKeep\"]=function(){return(_inflateResetKeep=Module[\"_inflateResetKeep\"]=Module[\"asm\"][\"inflateResetKeep\"]).apply(null,arguments)};var _inflateReset2=Module[\"_inflateReset2\"]=function(){return(_inflateReset2=Module[\"_inflateReset2\"]=Module[\"asm\"][\"inflateReset2\"]).apply(null,arguments)};var _inflatePrime=Module[\"_inflatePrime\"]=function(){return(_inflatePrime=Module[\"_inflatePrime\"]=Module[\"asm\"][\"inflatePrime\"]).apply(null,arguments)};var _inflateGetDictionary=Module[\"_inflateGetDictionary\"]=function(){return(_inflateGetDictionary=Module[\"_inflateGetDictionary\"]=Module[\"asm\"][\"inflateGetDictionary\"]).apply(null,arguments)};var _inflateGetHeader=Module[\"_inflateGetHeader\"]=function(){return(_inflateGetHeader=Module[\"_inflateGetHeader\"]=Module[\"asm\"][\"inflateGetHeader\"]).apply(null,arguments)};var _inflateSync=Module[\"_inflateSync\"]=function(){return(_inflateSync=Module[\"_inflateSync\"]=Module[\"asm\"][\"inflateSync\"]).apply(null,arguments)};var _inflateSyncPoint=Module[\"_inflateSyncPoint\"]=function(){return(_inflateSyncPoint=Module[\"_inflateSyncPoint\"]=Module[\"asm\"][\"inflateSyncPoint\"]).apply(null,arguments)};var _inflateCopy=Module[\"_inflateCopy\"]=function(){return(_inflateCopy=Module[\"_inflateCopy\"]=Module[\"asm\"][\"inflateCopy\"]).apply(null,arguments)};var _inflateUndermine=Module[\"_inflateUndermine\"]=function(){return(_inflateUndermine=Module[\"_inflateUndermine\"]=Module[\"asm\"][\"inflateUndermine\"]).apply(null,arguments)};var _inflateMark=Module[\"_inflateMark\"]=function(){return(_inflateMark=Module[\"_inflateMark\"]=Module[\"asm\"][\"inflateMark\"]).apply(null,arguments)};var __tr_tally=Module[\"__tr_tally\"]=function(){return(__tr_tally=Module[\"__tr_tally\"]=Module[\"asm\"][\"_tr_tally\"]).apply(null,arguments)};var _uncompress=Module[\"_uncompress\"]=function(){return(_uncompress=Module[\"_uncompress\"]=Module[\"asm\"][\"uncompress\"]).apply(null,arguments)};var _zlibCompileFlags=Module[\"_zlibCompileFlags\"]=function(){return(_zlibCompileFlags=Module[\"_zlibCompileFlags\"]=Module[\"asm\"][\"zlibCompileFlags\"]).apply(null,arguments)};var _zError=Module[\"_zError\"]=function(){return(_zError=Module[\"_zError\"]=Module[\"asm\"][\"zError\"]).apply(null,arguments)};var _jinit_write_ppm=Module[\"_jinit_write_ppm\"]=function(){return(_jinit_write_ppm=Module[\"_jinit_write_ppm\"]=Module[\"asm\"][\"jinit_write_ppm\"]).apply(null,arguments)};var _jpeg_calc_output_dimensions=Module[\"_jpeg_calc_output_dimensions\"]=function(){return(_jpeg_calc_output_dimensions=Module[\"_jpeg_calc_output_dimensions\"]=Module[\"asm\"][\"jpeg_calc_output_dimensions\"]).apply(null,arguments)};var _jpeg_core_output_dimensions=Module[\"_jpeg_core_output_dimensions\"]=function(){return(_jpeg_core_output_dimensions=Module[\"_jpeg_core_output_dimensions\"]=Module[\"asm\"][\"jpeg_core_output_dimensions\"]).apply(null,arguments)};var _jdiv_round_up=Module[\"_jdiv_round_up\"]=function(){return(_jdiv_round_up=Module[\"_jdiv_round_up\"]=Module[\"asm\"][\"jdiv_round_up\"]).apply(null,arguments)};var _jinit_input_controller=Module[\"_jinit_input_controller\"]=function(){return(_jinit_input_controller=Module[\"_jinit_input_controller\"]=Module[\"asm\"][\"jinit_input_controller\"]).apply(null,arguments)};var _jinit_c_coef_controller=Module[\"_jinit_c_coef_controller\"]=function(){return(_jinit_c_coef_controller=Module[\"_jinit_c_coef_controller\"]=Module[\"asm\"][\"jinit_c_coef_controller\"]).apply(null,arguments)};var _jround_up=Module[\"_jround_up\"]=function(){return(_jround_up=Module[\"_jround_up\"]=Module[\"asm\"][\"jround_up\"]).apply(null,arguments)};var _jinit_c_main_controller=Module[\"_jinit_c_main_controller\"]=function(){return(_jinit_c_main_controller=Module[\"_jinit_c_main_controller\"]=Module[\"asm\"][\"jinit_c_main_controller\"]).apply(null,arguments)};var _jpeg_CreateCompress=Module[\"_jpeg_CreateCompress\"]=function(){return(_jpeg_CreateCompress=Module[\"_jpeg_CreateCompress\"]=Module[\"asm\"][\"jpeg_CreateCompress\"]).apply(null,arguments)};var _jinit_memory_mgr=Module[\"_jinit_memory_mgr\"]=function(){return(_jinit_memory_mgr=Module[\"_jinit_memory_mgr\"]=Module[\"asm\"][\"jinit_memory_mgr\"]).apply(null,arguments)};var _jpeg_destroy_compress=Module[\"_jpeg_destroy_compress\"]=function(){return(_jpeg_destroy_compress=Module[\"_jpeg_destroy_compress\"]=Module[\"asm\"][\"jpeg_destroy_compress\"]).apply(null,arguments)};var _jpeg_destroy=Module[\"_jpeg_destroy\"]=function(){return(_jpeg_destroy=Module[\"_jpeg_destroy\"]=Module[\"asm\"][\"jpeg_destroy\"]).apply(null,arguments)};var _jpeg_abort_compress=Module[\"_jpeg_abort_compress\"]=function(){return(_jpeg_abort_compress=Module[\"_jpeg_abort_compress\"]=Module[\"asm\"][\"jpeg_abort_compress\"]).apply(null,arguments)};var _jpeg_abort=Module[\"_jpeg_abort\"]=function(){return(_jpeg_abort=Module[\"_jpeg_abort\"]=Module[\"asm\"][\"jpeg_abort\"]).apply(null,arguments)};var _jpeg_suppress_tables=Module[\"_jpeg_suppress_tables\"]=function(){return(_jpeg_suppress_tables=Module[\"_jpeg_suppress_tables\"]=Module[\"asm\"][\"jpeg_suppress_tables\"]).apply(null,arguments)};var _jpeg_finish_compress=Module[\"_jpeg_finish_compress\"]=function(){return(_jpeg_finish_compress=Module[\"_jpeg_finish_compress\"]=Module[\"asm\"][\"jpeg_finish_compress\"]).apply(null,arguments)};var _jpeg_write_marker=Module[\"_jpeg_write_marker\"]=function(){return(_jpeg_write_marker=Module[\"_jpeg_write_marker\"]=Module[\"asm\"][\"jpeg_write_marker\"]).apply(null,arguments)};var _jpeg_write_m_header=Module[\"_jpeg_write_m_header\"]=function(){return(_jpeg_write_m_header=Module[\"_jpeg_write_m_header\"]=Module[\"asm\"][\"jpeg_write_m_header\"]).apply(null,arguments)};var _jpeg_write_m_byte=Module[\"_jpeg_write_m_byte\"]=function(){return(_jpeg_write_m_byte=Module[\"_jpeg_write_m_byte\"]=Module[\"asm\"][\"jpeg_write_m_byte\"]).apply(null,arguments)};var _jpeg_write_tables=Module[\"_jpeg_write_tables\"]=function(){return(_jpeg_write_tables=Module[\"_jpeg_write_tables\"]=Module[\"asm\"][\"jpeg_write_tables\"]).apply(null,arguments)};var _jinit_marker_writer=Module[\"_jinit_marker_writer\"]=function(){return(_jinit_marker_writer=Module[\"_jinit_marker_writer\"]=Module[\"asm\"][\"jinit_marker_writer\"]).apply(null,arguments)};var _jpeg_start_compress=Module[\"_jpeg_start_compress\"]=function(){return(_jpeg_start_compress=Module[\"_jpeg_start_compress\"]=Module[\"asm\"][\"jpeg_start_compress\"]).apply(null,arguments)};var _jinit_compress_master=Module[\"_jinit_compress_master\"]=function(){return(_jinit_compress_master=Module[\"_jinit_compress_master\"]=Module[\"asm\"][\"jinit_compress_master\"]).apply(null,arguments)};var _jpeg_write_scanlines=Module[\"_jpeg_write_scanlines\"]=function(){return(_jpeg_write_scanlines=Module[\"_jpeg_write_scanlines\"]=Module[\"asm\"][\"jpeg_write_scanlines\"]).apply(null,arguments)};var _jpeg_write_raw_data=Module[\"_jpeg_write_raw_data\"]=function(){return(_jpeg_write_raw_data=Module[\"_jpeg_write_raw_data\"]=Module[\"asm\"][\"jpeg_write_raw_data\"]).apply(null,arguments)};var _jpeg_write_coefficients=Module[\"_jpeg_write_coefficients\"]=function(){return(_jpeg_write_coefficients=Module[\"_jpeg_write_coefficients\"]=Module[\"asm\"][\"jpeg_write_coefficients\"]).apply(null,arguments)};var _jinit_c_master_control=Module[\"_jinit_c_master_control\"]=function(){return(_jinit_c_master_control=Module[\"_jinit_c_master_control\"]=Module[\"asm\"][\"jinit_c_master_control\"]).apply(null,arguments)};var _jinit_arith_encoder=Module[\"_jinit_arith_encoder\"]=function(){return(_jinit_arith_encoder=Module[\"_jinit_arith_encoder\"]=Module[\"asm\"][\"jinit_arith_encoder\"]).apply(null,arguments)};var _jinit_huff_encoder=Module[\"_jinit_huff_encoder\"]=function(){return(_jinit_huff_encoder=Module[\"_jinit_huff_encoder\"]=Module[\"asm\"][\"jinit_huff_encoder\"]).apply(null,arguments)};var _jpeg_copy_critical_parameters=Module[\"_jpeg_copy_critical_parameters\"]=function(){return(_jpeg_copy_critical_parameters=Module[\"_jpeg_copy_critical_parameters\"]=Module[\"asm\"][\"jpeg_copy_critical_parameters\"]).apply(null,arguments)};var _jpeg_set_defaults=Module[\"_jpeg_set_defaults\"]=function(){return(_jpeg_set_defaults=Module[\"_jpeg_set_defaults\"]=Module[\"asm\"][\"jpeg_set_defaults\"]).apply(null,arguments)};var _jpeg_set_colorspace=Module[\"_jpeg_set_colorspace\"]=function(){return(_jpeg_set_colorspace=Module[\"_jpeg_set_colorspace\"]=Module[\"asm\"][\"jpeg_set_colorspace\"]).apply(null,arguments)};var _jpeg_alloc_quant_table=Module[\"_jpeg_alloc_quant_table\"]=function(){return(_jpeg_alloc_quant_table=Module[\"_jpeg_alloc_quant_table\"]=Module[\"asm\"][\"jpeg_alloc_quant_table\"]).apply(null,arguments)};var _jinit_read_bmp=Module[\"_jinit_read_bmp\"]=function(){return(_jinit_read_bmp=Module[\"_jinit_read_bmp\"]=Module[\"asm\"][\"jinit_read_bmp\"]).apply(null,arguments)};var _jinit_read_gif=Module[\"_jinit_read_gif\"]=function(){return(_jinit_read_gif=Module[\"_jinit_read_gif\"]=Module[\"asm\"][\"jinit_read_gif\"]).apply(null,arguments)};var _jtransform_parse_crop_spec=Module[\"_jtransform_parse_crop_spec\"]=function(){return(_jtransform_parse_crop_spec=Module[\"_jtransform_parse_crop_spec\"]=Module[\"asm\"][\"jtransform_parse_crop_spec\"]).apply(null,arguments)};var _jtransform_request_workspace=Module[\"_jtransform_request_workspace\"]=function(){return(_jtransform_request_workspace=Module[\"_jtransform_request_workspace\"]=Module[\"asm\"][\"jtransform_request_workspace\"]).apply(null,arguments)};var _jtransform_perfect_transform=Module[\"_jtransform_perfect_transform\"]=function(){return(_jtransform_perfect_transform=Module[\"_jtransform_perfect_transform\"]=Module[\"asm\"][\"jtransform_perfect_transform\"]).apply(null,arguments)};var _jtransform_adjust_parameters=Module[\"_jtransform_adjust_parameters\"]=function(){return(_jtransform_adjust_parameters=Module[\"_jtransform_adjust_parameters\"]=Module[\"asm\"][\"jtransform_adjust_parameters\"]).apply(null,arguments)};var _jtransform_execute_transform=Module[\"_jtransform_execute_transform\"]=function(){return(_jtransform_execute_transform=Module[\"_jtransform_execute_transform\"]=Module[\"asm\"][\"jtransform_execute_transform\"]).apply(null,arguments)};var _jcopy_block_row=Module[\"_jcopy_block_row\"]=function(){return(_jcopy_block_row=Module[\"_jcopy_block_row\"]=Module[\"asm\"][\"jcopy_block_row\"]).apply(null,arguments)};var _jcopy_markers_setup=Module[\"_jcopy_markers_setup\"]=function(){return(_jcopy_markers_setup=Module[\"_jcopy_markers_setup\"]=Module[\"asm\"][\"jcopy_markers_setup\"]).apply(null,arguments)};var _jpeg_save_markers=Module[\"_jpeg_save_markers\"]=function(){return(_jpeg_save_markers=Module[\"_jpeg_save_markers\"]=Module[\"asm\"][\"jpeg_save_markers\"]).apply(null,arguments)};var _jcopy_markers_execute=Module[\"_jcopy_markers_execute\"]=function(){return(_jcopy_markers_execute=Module[\"_jcopy_markers_execute\"]=Module[\"asm\"][\"jcopy_markers_execute\"]).apply(null,arguments)};var _jpeg_stdio_dest=Module[\"_jpeg_stdio_dest\"]=function(){return(_jpeg_stdio_dest=Module[\"_jpeg_stdio_dest\"]=Module[\"asm\"][\"jpeg_stdio_dest\"]).apply(null,arguments)};var _jpeg_mem_dest=Module[\"_jpeg_mem_dest\"]=function(){return(_jpeg_mem_dest=Module[\"_jpeg_mem_dest\"]=Module[\"asm\"][\"jpeg_mem_dest\"]).apply(null,arguments)};var _jinit_read_ppm=Module[\"_jinit_read_ppm\"]=function(){return(_jinit_read_ppm=Module[\"_jinit_read_ppm\"]=Module[\"asm\"][\"jinit_read_ppm\"]).apply(null,arguments)};var _jinit_forward_dct=Module[\"_jinit_forward_dct\"]=function(){return(_jinit_forward_dct=Module[\"_jinit_forward_dct\"]=Module[\"asm\"][\"jinit_forward_dct\"]).apply(null,arguments)};var _jpeg_fdct_1x1=Module[\"_jpeg_fdct_1x1\"]=function(){return(_jpeg_fdct_1x1=Module[\"_jpeg_fdct_1x1\"]=Module[\"asm\"][\"jpeg_fdct_1x1\"]).apply(null,arguments)};var _jpeg_fdct_2x2=Module[\"_jpeg_fdct_2x2\"]=function(){return(_jpeg_fdct_2x2=Module[\"_jpeg_fdct_2x2\"]=Module[\"asm\"][\"jpeg_fdct_2x2\"]).apply(null,arguments)};var _jpeg_fdct_3x3=Module[\"_jpeg_fdct_3x3\"]=function(){return(_jpeg_fdct_3x3=Module[\"_jpeg_fdct_3x3\"]=Module[\"asm\"][\"jpeg_fdct_3x3\"]).apply(null,arguments)};var _jpeg_fdct_4x4=Module[\"_jpeg_fdct_4x4\"]=function(){return(_jpeg_fdct_4x4=Module[\"_jpeg_fdct_4x4\"]=Module[\"asm\"][\"jpeg_fdct_4x4\"]).apply(null,arguments)};var _jpeg_fdct_5x5=Module[\"_jpeg_fdct_5x5\"]=function(){return(_jpeg_fdct_5x5=Module[\"_jpeg_fdct_5x5\"]=Module[\"asm\"][\"jpeg_fdct_5x5\"]).apply(null,arguments)};var _jpeg_fdct_6x6=Module[\"_jpeg_fdct_6x6\"]=function(){return(_jpeg_fdct_6x6=Module[\"_jpeg_fdct_6x6\"]=Module[\"asm\"][\"jpeg_fdct_6x6\"]).apply(null,arguments)};var _jpeg_fdct_7x7=Module[\"_jpeg_fdct_7x7\"]=function(){return(_jpeg_fdct_7x7=Module[\"_jpeg_fdct_7x7\"]=Module[\"asm\"][\"jpeg_fdct_7x7\"]).apply(null,arguments)};var _jpeg_fdct_10x10=Module[\"_jpeg_fdct_10x10\"]=function(){return(_jpeg_fdct_10x10=Module[\"_jpeg_fdct_10x10\"]=Module[\"asm\"][\"jpeg_fdct_10x10\"]).apply(null,arguments)};var _jpeg_fdct_11x11=Module[\"_jpeg_fdct_11x11\"]=function(){return(_jpeg_fdct_11x11=Module[\"_jpeg_fdct_11x11\"]=Module[\"asm\"][\"jpeg_fdct_11x11\"]).apply(null,arguments)};var _jpeg_fdct_12x12=Module[\"_jpeg_fdct_12x12\"]=function(){return(_jpeg_fdct_12x12=Module[\"_jpeg_fdct_12x12\"]=Module[\"asm\"][\"jpeg_fdct_12x12\"]).apply(null,arguments)};var _jpeg_fdct_13x13=Module[\"_jpeg_fdct_13x13\"]=function(){return(_jpeg_fdct_13x13=Module[\"_jpeg_fdct_13x13\"]=Module[\"asm\"][\"jpeg_fdct_13x13\"]).apply(null,arguments)};var _jpeg_fdct_14x14=Module[\"_jpeg_fdct_14x14\"]=function(){return(_jpeg_fdct_14x14=Module[\"_jpeg_fdct_14x14\"]=Module[\"asm\"][\"jpeg_fdct_14x14\"]).apply(null,arguments)};var _jpeg_fdct_15x15=Module[\"_jpeg_fdct_15x15\"]=function(){return(_jpeg_fdct_15x15=Module[\"_jpeg_fdct_15x15\"]=Module[\"asm\"][\"jpeg_fdct_15x15\"]).apply(null,arguments)};var _jpeg_fdct_16x16=Module[\"_jpeg_fdct_16x16\"]=function(){return(_jpeg_fdct_16x16=Module[\"_jpeg_fdct_16x16\"]=Module[\"asm\"][\"jpeg_fdct_16x16\"]).apply(null,arguments)};var _jpeg_fdct_16x8=Module[\"_jpeg_fdct_16x8\"]=function(){return(_jpeg_fdct_16x8=Module[\"_jpeg_fdct_16x8\"]=Module[\"asm\"][\"jpeg_fdct_16x8\"]).apply(null,arguments)};var _jpeg_fdct_14x7=Module[\"_jpeg_fdct_14x7\"]=function(){return(_jpeg_fdct_14x7=Module[\"_jpeg_fdct_14x7\"]=Module[\"asm\"][\"jpeg_fdct_14x7\"]).apply(null,arguments)};var _jpeg_fdct_12x6=Module[\"_jpeg_fdct_12x6\"]=function(){return(_jpeg_fdct_12x6=Module[\"_jpeg_fdct_12x6\"]=Module[\"asm\"][\"jpeg_fdct_12x6\"]).apply(null,arguments)};var _jpeg_fdct_10x5=Module[\"_jpeg_fdct_10x5\"]=function(){return(_jpeg_fdct_10x5=Module[\"_jpeg_fdct_10x5\"]=Module[\"asm\"][\"jpeg_fdct_10x5\"]).apply(null,arguments)};var _jpeg_fdct_8x4=Module[\"_jpeg_fdct_8x4\"]=function(){return(_jpeg_fdct_8x4=Module[\"_jpeg_fdct_8x4\"]=Module[\"asm\"][\"jpeg_fdct_8x4\"]).apply(null,arguments)};var _jpeg_fdct_6x3=Module[\"_jpeg_fdct_6x3\"]=function(){return(_jpeg_fdct_6x3=Module[\"_jpeg_fdct_6x3\"]=Module[\"asm\"][\"jpeg_fdct_6x3\"]).apply(null,arguments)};var _jpeg_fdct_4x2=Module[\"_jpeg_fdct_4x2\"]=function(){return(_jpeg_fdct_4x2=Module[\"_jpeg_fdct_4x2\"]=Module[\"asm\"][\"jpeg_fdct_4x2\"]).apply(null,arguments)};var _jpeg_fdct_2x1=Module[\"_jpeg_fdct_2x1\"]=function(){return(_jpeg_fdct_2x1=Module[\"_jpeg_fdct_2x1\"]=Module[\"asm\"][\"jpeg_fdct_2x1\"]).apply(null,arguments)};var _jpeg_fdct_8x16=Module[\"_jpeg_fdct_8x16\"]=function(){return(_jpeg_fdct_8x16=Module[\"_jpeg_fdct_8x16\"]=Module[\"asm\"][\"jpeg_fdct_8x16\"]).apply(null,arguments)};var _jpeg_fdct_7x14=Module[\"_jpeg_fdct_7x14\"]=function(){return(_jpeg_fdct_7x14=Module[\"_jpeg_fdct_7x14\"]=Module[\"asm\"][\"jpeg_fdct_7x14\"]).apply(null,arguments)};var _jpeg_fdct_6x12=Module[\"_jpeg_fdct_6x12\"]=function(){return(_jpeg_fdct_6x12=Module[\"_jpeg_fdct_6x12\"]=Module[\"asm\"][\"jpeg_fdct_6x12\"]).apply(null,arguments)};var _jpeg_fdct_5x10=Module[\"_jpeg_fdct_5x10\"]=function(){return(_jpeg_fdct_5x10=Module[\"_jpeg_fdct_5x10\"]=Module[\"asm\"][\"jpeg_fdct_5x10\"]).apply(null,arguments)};var _jpeg_fdct_4x8=Module[\"_jpeg_fdct_4x8\"]=function(){return(_jpeg_fdct_4x8=Module[\"_jpeg_fdct_4x8\"]=Module[\"asm\"][\"jpeg_fdct_4x8\"]).apply(null,arguments)};var _jpeg_fdct_3x6=Module[\"_jpeg_fdct_3x6\"]=function(){return(_jpeg_fdct_3x6=Module[\"_jpeg_fdct_3x6\"]=Module[\"asm\"][\"jpeg_fdct_3x6\"]).apply(null,arguments)};var _jpeg_fdct_2x4=Module[\"_jpeg_fdct_2x4\"]=function(){return(_jpeg_fdct_2x4=Module[\"_jpeg_fdct_2x4\"]=Module[\"asm\"][\"jpeg_fdct_2x4\"]).apply(null,arguments)};var _jpeg_fdct_1x2=Module[\"_jpeg_fdct_1x2\"]=function(){return(_jpeg_fdct_1x2=Module[\"_jpeg_fdct_1x2\"]=Module[\"asm\"][\"jpeg_fdct_1x2\"]).apply(null,arguments)};var _jpeg_fdct_islow=Module[\"_jpeg_fdct_islow\"]=function(){return(_jpeg_fdct_islow=Module[\"_jpeg_fdct_islow\"]=Module[\"asm\"][\"jpeg_fdct_islow\"]).apply(null,arguments)};var _jpeg_fdct_ifast=Module[\"_jpeg_fdct_ifast\"]=function(){return(_jpeg_fdct_ifast=Module[\"_jpeg_fdct_ifast\"]=Module[\"asm\"][\"jpeg_fdct_ifast\"]).apply(null,arguments)};var _jpeg_fdct_float=Module[\"_jpeg_fdct_float\"]=function(){return(_jpeg_fdct_float=Module[\"_jpeg_fdct_float\"]=Module[\"asm\"][\"jpeg_fdct_float\"]).apply(null,arguments)};var _jpeg_fdct_9x9=Module[\"_jpeg_fdct_9x9\"]=function(){return(_jpeg_fdct_9x9=Module[\"_jpeg_fdct_9x9\"]=Module[\"asm\"][\"jpeg_fdct_9x9\"]).apply(null,arguments)};var _jinit_read_targa=Module[\"_jinit_read_targa\"]=function(){return(_jinit_read_targa=Module[\"_jinit_read_targa\"]=Module[\"asm\"][\"jinit_read_targa\"]).apply(null,arguments)};var _jpeg_stdio_src=Module[\"_jpeg_stdio_src\"]=function(){return(_jpeg_stdio_src=Module[\"_jpeg_stdio_src\"]=Module[\"asm\"][\"jpeg_stdio_src\"]).apply(null,arguments)};var _jpeg_resync_to_restart=Module[\"_jpeg_resync_to_restart\"]=function(){return(_jpeg_resync_to_restart=Module[\"_jpeg_resync_to_restart\"]=Module[\"asm\"][\"jpeg_resync_to_restart\"]).apply(null,arguments)};var _jpeg_mem_src=Module[\"_jpeg_mem_src\"]=function(){return(_jpeg_mem_src=Module[\"_jpeg_mem_src\"]=Module[\"asm\"][\"jpeg_mem_src\"]).apply(null,arguments)};var _jinit_color_deconverter=Module[\"_jinit_color_deconverter\"]=function(){return(_jinit_color_deconverter=Module[\"_jinit_color_deconverter\"]=Module[\"asm\"][\"jinit_color_deconverter\"]).apply(null,arguments)};var _jcopy_sample_rows=Module[\"_jcopy_sample_rows\"]=function(){return(_jcopy_sample_rows=Module[\"_jcopy_sample_rows\"]=Module[\"asm\"][\"jcopy_sample_rows\"]).apply(null,arguments)};var _jinit_huff_decoder=Module[\"_jinit_huff_decoder\"]=function(){return(_jinit_huff_decoder=Module[\"_jinit_huff_decoder\"]=Module[\"asm\"][\"jinit_huff_decoder\"]).apply(null,arguments)};var _jpeg_alloc_huff_table=Module[\"_jpeg_alloc_huff_table\"]=function(){return(_jpeg_alloc_huff_table=Module[\"_jpeg_alloc_huff_table\"]=Module[\"asm\"][\"jpeg_alloc_huff_table\"]).apply(null,arguments)};var _jpeg_std_error=Module[\"_jpeg_std_error\"]=function(){return(_jpeg_std_error=Module[\"_jpeg_std_error\"]=Module[\"asm\"][\"jpeg_std_error\"]).apply(null,arguments)};var _jpeg_add_quant_table=Module[\"_jpeg_add_quant_table\"]=function(){return(_jpeg_add_quant_table=Module[\"_jpeg_add_quant_table\"]=Module[\"asm\"][\"jpeg_add_quant_table\"]).apply(null,arguments)};var _jpeg_default_qtables=Module[\"_jpeg_default_qtables\"]=function(){return(_jpeg_default_qtables=Module[\"_jpeg_default_qtables\"]=Module[\"asm\"][\"jpeg_default_qtables\"]).apply(null,arguments)};var _jpeg_set_linear_quality=Module[\"_jpeg_set_linear_quality\"]=function(){return(_jpeg_set_linear_quality=Module[\"_jpeg_set_linear_quality\"]=Module[\"asm\"][\"jpeg_set_linear_quality\"]).apply(null,arguments)};var _jpeg_quality_scaling=Module[\"_jpeg_quality_scaling\"]=function(){return(_jpeg_quality_scaling=Module[\"_jpeg_quality_scaling\"]=Module[\"asm\"][\"jpeg_quality_scaling\"]).apply(null,arguments)};var _jpeg_set_quality=Module[\"_jpeg_set_quality\"]=function(){return(_jpeg_set_quality=Module[\"_jpeg_set_quality\"]=Module[\"asm\"][\"jpeg_set_quality\"]).apply(null,arguments)};var _jpeg_default_colorspace=Module[\"_jpeg_default_colorspace\"]=function(){return(_jpeg_default_colorspace=Module[\"_jpeg_default_colorspace\"]=Module[\"asm\"][\"jpeg_default_colorspace\"]).apply(null,arguments)};var _jpeg_simple_progression=Module[\"_jpeg_simple_progression\"]=function(){return(_jpeg_simple_progression=Module[\"_jpeg_simple_progression\"]=Module[\"asm\"][\"jpeg_simple_progression\"]).apply(null,arguments)};var _jinit_upsampler=Module[\"_jinit_upsampler\"]=function(){return(_jinit_upsampler=Module[\"_jinit_upsampler\"]=Module[\"asm\"][\"jinit_upsampler\"]).apply(null,arguments)};var _jinit_c_prep_controller=Module[\"_jinit_c_prep_controller\"]=function(){return(_jinit_c_prep_controller=Module[\"_jinit_c_prep_controller\"]=Module[\"asm\"][\"jinit_c_prep_controller\"]).apply(null,arguments)};var _jinit_write_targa=Module[\"_jinit_write_targa\"]=function(){return(_jinit_write_targa=Module[\"_jinit_write_targa\"]=Module[\"asm\"][\"jinit_write_targa\"]).apply(null,arguments)};var _putc=Module[\"_putc\"]=function(){return(_putc=Module[\"_putc\"]=Module[\"asm\"][\"putc\"]).apply(null,arguments)};var _jinit_1pass_quantizer=Module[\"_jinit_1pass_quantizer\"]=function(){return(_jinit_1pass_quantizer=Module[\"_jinit_1pass_quantizer\"]=Module[\"asm\"][\"jinit_1pass_quantizer\"]).apply(null,arguments)};var _jinit_2pass_quantizer=Module[\"_jinit_2pass_quantizer\"]=function(){return(_jinit_2pass_quantizer=Module[\"_jinit_2pass_quantizer\"]=Module[\"asm\"][\"jinit_2pass_quantizer\"]).apply(null,arguments)};var _jinit_merged_upsampler=Module[\"_jinit_merged_upsampler\"]=function(){return(_jinit_merged_upsampler=Module[\"_jinit_merged_upsampler\"]=Module[\"asm\"][\"jinit_merged_upsampler\"]).apply(null,arguments)};var _jpeg_idct_float=Module[\"_jpeg_idct_float\"]=function(){return(_jpeg_idct_float=Module[\"_jpeg_idct_float\"]=Module[\"asm\"][\"jpeg_idct_float\"]).apply(null,arguments)};var _jpeg_idct_ifast=Module[\"_jpeg_idct_ifast\"]=function(){return(_jpeg_idct_ifast=Module[\"_jpeg_idct_ifast\"]=Module[\"asm\"][\"jpeg_idct_ifast\"]).apply(null,arguments)};var _jpeg_idct_islow=Module[\"_jpeg_idct_islow\"]=function(){return(_jpeg_idct_islow=Module[\"_jpeg_idct_islow\"]=Module[\"asm\"][\"jpeg_idct_islow\"]).apply(null,arguments)};var _jpeg_idct_7x7=Module[\"_jpeg_idct_7x7\"]=function(){return(_jpeg_idct_7x7=Module[\"_jpeg_idct_7x7\"]=Module[\"asm\"][\"jpeg_idct_7x7\"]).apply(null,arguments)};var _jpeg_idct_6x6=Module[\"_jpeg_idct_6x6\"]=function(){return(_jpeg_idct_6x6=Module[\"_jpeg_idct_6x6\"]=Module[\"asm\"][\"jpeg_idct_6x6\"]).apply(null,arguments)};var _jpeg_idct_5x5=Module[\"_jpeg_idct_5x5\"]=function(){return(_jpeg_idct_5x5=Module[\"_jpeg_idct_5x5\"]=Module[\"asm\"][\"jpeg_idct_5x5\"]).apply(null,arguments)};var _jpeg_idct_4x4=Module[\"_jpeg_idct_4x4\"]=function(){return(_jpeg_idct_4x4=Module[\"_jpeg_idct_4x4\"]=Module[\"asm\"][\"jpeg_idct_4x4\"]).apply(null,arguments)};var _jpeg_idct_3x3=Module[\"_jpeg_idct_3x3\"]=function(){return(_jpeg_idct_3x3=Module[\"_jpeg_idct_3x3\"]=Module[\"asm\"][\"jpeg_idct_3x3\"]).apply(null,arguments)};var _jpeg_idct_2x2=Module[\"_jpeg_idct_2x2\"]=function(){return(_jpeg_idct_2x2=Module[\"_jpeg_idct_2x2\"]=Module[\"asm\"][\"jpeg_idct_2x2\"]).apply(null,arguments)};var _jpeg_idct_1x1=Module[\"_jpeg_idct_1x1\"]=function(){return(_jpeg_idct_1x1=Module[\"_jpeg_idct_1x1\"]=Module[\"asm\"][\"jpeg_idct_1x1\"]).apply(null,arguments)};var _jpeg_idct_9x9=Module[\"_jpeg_idct_9x9\"]=function(){return(_jpeg_idct_9x9=Module[\"_jpeg_idct_9x9\"]=Module[\"asm\"][\"jpeg_idct_9x9\"]).apply(null,arguments)};var _jpeg_idct_10x10=Module[\"_jpeg_idct_10x10\"]=function(){return(_jpeg_idct_10x10=Module[\"_jpeg_idct_10x10\"]=Module[\"asm\"][\"jpeg_idct_10x10\"]).apply(null,arguments)};var _jpeg_idct_11x11=Module[\"_jpeg_idct_11x11\"]=function(){return(_jpeg_idct_11x11=Module[\"_jpeg_idct_11x11\"]=Module[\"asm\"][\"jpeg_idct_11x11\"]).apply(null,arguments)};var _jpeg_idct_12x12=Module[\"_jpeg_idct_12x12\"]=function(){return(_jpeg_idct_12x12=Module[\"_jpeg_idct_12x12\"]=Module[\"asm\"][\"jpeg_idct_12x12\"]).apply(null,arguments)};var _jpeg_idct_13x13=Module[\"_jpeg_idct_13x13\"]=function(){return(_jpeg_idct_13x13=Module[\"_jpeg_idct_13x13\"]=Module[\"asm\"][\"jpeg_idct_13x13\"]).apply(null,arguments)};var _jpeg_idct_14x14=Module[\"_jpeg_idct_14x14\"]=function(){return(_jpeg_idct_14x14=Module[\"_jpeg_idct_14x14\"]=Module[\"asm\"][\"jpeg_idct_14x14\"]).apply(null,arguments)};var _jpeg_idct_15x15=Module[\"_jpeg_idct_15x15\"]=function(){return(_jpeg_idct_15x15=Module[\"_jpeg_idct_15x15\"]=Module[\"asm\"][\"jpeg_idct_15x15\"]).apply(null,arguments)};var _jpeg_idct_16x16=Module[\"_jpeg_idct_16x16\"]=function(){return(_jpeg_idct_16x16=Module[\"_jpeg_idct_16x16\"]=Module[\"asm\"][\"jpeg_idct_16x16\"]).apply(null,arguments)};var _jpeg_idct_16x8=Module[\"_jpeg_idct_16x8\"]=function(){return(_jpeg_idct_16x8=Module[\"_jpeg_idct_16x8\"]=Module[\"asm\"][\"jpeg_idct_16x8\"]).apply(null,arguments)};var _jpeg_idct_14x7=Module[\"_jpeg_idct_14x7\"]=function(){return(_jpeg_idct_14x7=Module[\"_jpeg_idct_14x7\"]=Module[\"asm\"][\"jpeg_idct_14x7\"]).apply(null,arguments)};var _jpeg_idct_12x6=Module[\"_jpeg_idct_12x6\"]=function(){return(_jpeg_idct_12x6=Module[\"_jpeg_idct_12x6\"]=Module[\"asm\"][\"jpeg_idct_12x6\"]).apply(null,arguments)};var _jpeg_idct_10x5=Module[\"_jpeg_idct_10x5\"]=function(){return(_jpeg_idct_10x5=Module[\"_jpeg_idct_10x5\"]=Module[\"asm\"][\"jpeg_idct_10x5\"]).apply(null,arguments)};var _jpeg_idct_8x4=Module[\"_jpeg_idct_8x4\"]=function(){return(_jpeg_idct_8x4=Module[\"_jpeg_idct_8x4\"]=Module[\"asm\"][\"jpeg_idct_8x4\"]).apply(null,arguments)};var _jpeg_idct_6x3=Module[\"_jpeg_idct_6x3\"]=function(){return(_jpeg_idct_6x3=Module[\"_jpeg_idct_6x3\"]=Module[\"asm\"][\"jpeg_idct_6x3\"]).apply(null,arguments)};var _jpeg_idct_4x2=Module[\"_jpeg_idct_4x2\"]=function(){return(_jpeg_idct_4x2=Module[\"_jpeg_idct_4x2\"]=Module[\"asm\"][\"jpeg_idct_4x2\"]).apply(null,arguments)};var _jpeg_idct_2x1=Module[\"_jpeg_idct_2x1\"]=function(){return(_jpeg_idct_2x1=Module[\"_jpeg_idct_2x1\"]=Module[\"asm\"][\"jpeg_idct_2x1\"]).apply(null,arguments)};var _jpeg_idct_8x16=Module[\"_jpeg_idct_8x16\"]=function(){return(_jpeg_idct_8x16=Module[\"_jpeg_idct_8x16\"]=Module[\"asm\"][\"jpeg_idct_8x16\"]).apply(null,arguments)};var _jpeg_idct_7x14=Module[\"_jpeg_idct_7x14\"]=function(){return(_jpeg_idct_7x14=Module[\"_jpeg_idct_7x14\"]=Module[\"asm\"][\"jpeg_idct_7x14\"]).apply(null,arguments)};var _jpeg_idct_6x12=Module[\"_jpeg_idct_6x12\"]=function(){return(_jpeg_idct_6x12=Module[\"_jpeg_idct_6x12\"]=Module[\"asm\"][\"jpeg_idct_6x12\"]).apply(null,arguments)};var _jpeg_idct_5x10=Module[\"_jpeg_idct_5x10\"]=function(){return(_jpeg_idct_5x10=Module[\"_jpeg_idct_5x10\"]=Module[\"asm\"][\"jpeg_idct_5x10\"]).apply(null,arguments)};var _jpeg_idct_4x8=Module[\"_jpeg_idct_4x8\"]=function(){return(_jpeg_idct_4x8=Module[\"_jpeg_idct_4x8\"]=Module[\"asm\"][\"jpeg_idct_4x8\"]).apply(null,arguments)};var _jpeg_idct_3x6=Module[\"_jpeg_idct_3x6\"]=function(){return(_jpeg_idct_3x6=Module[\"_jpeg_idct_3x6\"]=Module[\"asm\"][\"jpeg_idct_3x6\"]).apply(null,arguments)};var _jpeg_idct_2x4=Module[\"_jpeg_idct_2x4\"]=function(){return(_jpeg_idct_2x4=Module[\"_jpeg_idct_2x4\"]=Module[\"asm\"][\"jpeg_idct_2x4\"]).apply(null,arguments)};var _jpeg_idct_1x2=Module[\"_jpeg_idct_1x2\"]=function(){return(_jpeg_idct_1x2=Module[\"_jpeg_idct_1x2\"]=Module[\"asm\"][\"jpeg_idct_1x2\"]).apply(null,arguments)};var _jinit_color_converter=Module[\"_jinit_color_converter\"]=function(){return(_jinit_color_converter=Module[\"_jinit_color_converter\"]=Module[\"asm\"][\"jinit_color_converter\"]).apply(null,arguments)};var _read_quant_tables=Module[\"_read_quant_tables\"]=function(){return(_read_quant_tables=Module[\"_read_quant_tables\"]=Module[\"asm\"][\"read_quant_tables\"]).apply(null,arguments)};var _isspace=Module[\"_isspace\"]=function(){return(_isspace=Module[\"_isspace\"]=Module[\"asm\"][\"isspace\"]).apply(null,arguments)};var _read_scan_script=Module[\"_read_scan_script\"]=function(){return(_read_scan_script=Module[\"_read_scan_script\"]=Module[\"asm\"][\"read_scan_script\"]).apply(null,arguments)};var _set_quality_ratings=Module[\"_set_quality_ratings\"]=function(){return(_set_quality_ratings=Module[\"_set_quality_ratings\"]=Module[\"asm\"][\"set_quality_ratings\"]).apply(null,arguments)};var _sscanf=Module[\"_sscanf\"]=function(){return(_sscanf=Module[\"_sscanf\"]=Module[\"asm\"][\"sscanf\"]).apply(null,arguments)};var _set_quant_slots=Module[\"_set_quant_slots\"]=function(){return(_set_quant_slots=Module[\"_set_quant_slots\"]=Module[\"asm\"][\"set_quant_slots\"]).apply(null,arguments)};var _set_sample_factors=Module[\"_set_sample_factors\"]=function(){return(_set_sample_factors=Module[\"_set_sample_factors\"]=Module[\"asm\"][\"set_sample_factors\"]).apply(null,arguments)};var _jinit_d_coef_controller=Module[\"_jinit_d_coef_controller\"]=function(){return(_jinit_d_coef_controller=Module[\"_jinit_d_coef_controller\"]=Module[\"asm\"][\"jinit_d_coef_controller\"]).apply(null,arguments)};var _jinit_d_main_controller=Module[\"_jinit_d_main_controller\"]=function(){return(_jinit_d_main_controller=Module[\"_jinit_d_main_controller\"]=Module[\"asm\"][\"jinit_d_main_controller\"]).apply(null,arguments)};var _jpeg_CreateDecompress=Module[\"_jpeg_CreateDecompress\"]=function(){return(_jpeg_CreateDecompress=Module[\"_jpeg_CreateDecompress\"]=Module[\"asm\"][\"jpeg_CreateDecompress\"]).apply(null,arguments)};var _jinit_marker_reader=Module[\"_jinit_marker_reader\"]=function(){return(_jinit_marker_reader=Module[\"_jinit_marker_reader\"]=Module[\"asm\"][\"jinit_marker_reader\"]).apply(null,arguments)};var _jpeg_destroy_decompress=Module[\"_jpeg_destroy_decompress\"]=function(){return(_jpeg_destroy_decompress=Module[\"_jpeg_destroy_decompress\"]=Module[\"asm\"][\"jpeg_destroy_decompress\"]).apply(null,arguments)};var _jpeg_abort_decompress=Module[\"_jpeg_abort_decompress\"]=function(){return(_jpeg_abort_decompress=Module[\"_jpeg_abort_decompress\"]=Module[\"asm\"][\"jpeg_abort_decompress\"]).apply(null,arguments)};var _jpeg_read_header=Module[\"_jpeg_read_header\"]=function(){return(_jpeg_read_header=Module[\"_jpeg_read_header\"]=Module[\"asm\"][\"jpeg_read_header\"]).apply(null,arguments)};var _jpeg_consume_input=Module[\"_jpeg_consume_input\"]=function(){return(_jpeg_consume_input=Module[\"_jpeg_consume_input\"]=Module[\"asm\"][\"jpeg_consume_input\"]).apply(null,arguments)};var _jpeg_input_complete=Module[\"_jpeg_input_complete\"]=function(){return(_jpeg_input_complete=Module[\"_jpeg_input_complete\"]=Module[\"asm\"][\"jpeg_input_complete\"]).apply(null,arguments)};var _jpeg_has_multiple_scans=Module[\"_jpeg_has_multiple_scans\"]=function(){return(_jpeg_has_multiple_scans=Module[\"_jpeg_has_multiple_scans\"]=Module[\"asm\"][\"jpeg_has_multiple_scans\"]).apply(null,arguments)};var _jpeg_finish_decompress=Module[\"_jpeg_finish_decompress\"]=function(){return(_jpeg_finish_decompress=Module[\"_jpeg_finish_decompress\"]=Module[\"asm\"][\"jpeg_finish_decompress\"]).apply(null,arguments)};var _jpeg_start_decompress=Module[\"_jpeg_start_decompress\"]=function(){return(_jpeg_start_decompress=Module[\"_jpeg_start_decompress\"]=Module[\"asm\"][\"jpeg_start_decompress\"]).apply(null,arguments)};var _jinit_master_decompress=Module[\"_jinit_master_decompress\"]=function(){return(_jinit_master_decompress=Module[\"_jinit_master_decompress\"]=Module[\"asm\"][\"jinit_master_decompress\"]).apply(null,arguments)};var _jpeg_read_scanlines=Module[\"_jpeg_read_scanlines\"]=function(){return(_jpeg_read_scanlines=Module[\"_jpeg_read_scanlines\"]=Module[\"asm\"][\"jpeg_read_scanlines\"]).apply(null,arguments)};var _jpeg_read_raw_data=Module[\"_jpeg_read_raw_data\"]=function(){return(_jpeg_read_raw_data=Module[\"_jpeg_read_raw_data\"]=Module[\"asm\"][\"jpeg_read_raw_data\"]).apply(null,arguments)};var _jpeg_start_output=Module[\"_jpeg_start_output\"]=function(){return(_jpeg_start_output=Module[\"_jpeg_start_output\"]=Module[\"asm\"][\"jpeg_start_output\"]).apply(null,arguments)};var _jpeg_finish_output=Module[\"_jpeg_finish_output\"]=function(){return(_jpeg_finish_output=Module[\"_jpeg_finish_output\"]=Module[\"asm\"][\"jpeg_finish_output\"]).apply(null,arguments)};var _jpeg_read_coefficients=Module[\"_jpeg_read_coefficients\"]=function(){return(_jpeg_read_coefficients=Module[\"_jpeg_read_coefficients\"]=Module[\"asm\"][\"jpeg_read_coefficients\"]).apply(null,arguments)};var _jinit_arith_decoder=Module[\"_jinit_arith_decoder\"]=function(){return(_jinit_arith_decoder=Module[\"_jinit_arith_decoder\"]=Module[\"asm\"][\"jinit_arith_decoder\"]).apply(null,arguments)};var _jinit_inverse_dct=Module[\"_jinit_inverse_dct\"]=function(){return(_jinit_inverse_dct=Module[\"_jinit_inverse_dct\"]=Module[\"asm\"][\"jinit_inverse_dct\"]).apply(null,arguments)};var _jinit_d_post_controller=Module[\"_jinit_d_post_controller\"]=function(){return(_jinit_d_post_controller=Module[\"_jinit_d_post_controller\"]=Module[\"asm\"][\"jinit_d_post_controller\"]).apply(null,arguments)};var _jpeg_set_marker_processor=Module[\"_jpeg_set_marker_processor\"]=function(){return(_jpeg_set_marker_processor=Module[\"_jpeg_set_marker_processor\"]=Module[\"asm\"][\"jpeg_set_marker_processor\"]).apply(null,arguments)};var _jpeg_new_colormap=Module[\"_jpeg_new_colormap\"]=function(){return(_jpeg_new_colormap=Module[\"_jpeg_new_colormap\"]=Module[\"asm\"][\"jpeg_new_colormap\"]).apply(null,arguments)};var _jpeg_get_small=Module[\"_jpeg_get_small\"]=function(){return(_jpeg_get_small=Module[\"_jpeg_get_small\"]=Module[\"asm\"][\"jpeg_get_small\"]).apply(null,arguments)};var _jpeg_free_small=Module[\"_jpeg_free_small\"]=function(){return(_jpeg_free_small=Module[\"_jpeg_free_small\"]=Module[\"asm\"][\"jpeg_free_small\"]).apply(null,arguments)};var _jpeg_get_large=Module[\"_jpeg_get_large\"]=function(){return(_jpeg_get_large=Module[\"_jpeg_get_large\"]=Module[\"asm\"][\"jpeg_get_large\"]).apply(null,arguments)};var _jpeg_free_large=Module[\"_jpeg_free_large\"]=function(){return(_jpeg_free_large=Module[\"_jpeg_free_large\"]=Module[\"asm\"][\"jpeg_free_large\"]).apply(null,arguments)};var _jpeg_mem_available=Module[\"_jpeg_mem_available\"]=function(){return(_jpeg_mem_available=Module[\"_jpeg_mem_available\"]=Module[\"asm\"][\"jpeg_mem_available\"]).apply(null,arguments)};var _jpeg_open_backing_store=Module[\"_jpeg_open_backing_store\"]=function(){return(_jpeg_open_backing_store=Module[\"_jpeg_open_backing_store\"]=Module[\"asm\"][\"jpeg_open_backing_store\"]).apply(null,arguments)};var _jpeg_mem_init=Module[\"_jpeg_mem_init\"]=function(){return(_jpeg_mem_init=Module[\"_jpeg_mem_init\"]=Module[\"asm\"][\"jpeg_mem_init\"]).apply(null,arguments)};var _jpeg_mem_term=Module[\"_jpeg_mem_term\"]=function(){return(_jpeg_mem_term=Module[\"_jpeg_mem_term\"]=Module[\"asm\"][\"jpeg_mem_term\"]).apply(null,arguments)};var _read_color_map=Module[\"_read_color_map\"]=function(){return(_read_color_map=Module[\"_read_color_map\"]=Module[\"asm\"][\"read_color_map\"]).apply(null,arguments)};var _jinit_downsampler=Module[\"_jinit_downsampler\"]=function(){return(_jinit_downsampler=Module[\"_jinit_downsampler\"]=Module[\"asm\"][\"jinit_downsampler\"]).apply(null,arguments)};var _jpeg_calc_jpeg_dimensions=Module[\"_jpeg_calc_jpeg_dimensions\"]=function(){return(_jpeg_calc_jpeg_dimensions=Module[\"_jpeg_calc_jpeg_dimensions\"]=Module[\"asm\"][\"jpeg_calc_jpeg_dimensions\"]).apply(null,arguments)};var _jinit_write_bmp=Module[\"_jinit_write_bmp\"]=function(){return(_jinit_write_bmp=Module[\"_jinit_write_bmp\"]=Module[\"asm\"][\"jinit_write_bmp\"]).apply(null,arguments)};var _jinit_write_gif=Module[\"_jinit_write_gif\"]=function(){return(_jinit_write_gif=Module[\"_jinit_write_gif\"]=Module[\"asm\"][\"jinit_write_gif\"]).apply(null,arguments)};var _FT_Select_Charmap=Module[\"_FT_Select_Charmap\"]=function(){return(_FT_Select_Charmap=Module[\"_FT_Select_Charmap\"]=Module[\"asm\"][\"FT_Select_Charmap\"]).apply(null,arguments)};var _FT_Get_Char_Index=Module[\"_FT_Get_Char_Index\"]=function(){return(_FT_Get_Char_Index=Module[\"_FT_Get_Char_Index\"]=Module[\"asm\"][\"FT_Get_Char_Index\"]).apply(null,arguments)};var _FT_Load_Glyph=Module[\"_FT_Load_Glyph\"]=function(){return(_FT_Load_Glyph=Module[\"_FT_Load_Glyph\"]=Module[\"asm\"][\"FT_Load_Glyph\"]).apply(null,arguments)};var _FT_Get_Advance=Module[\"_FT_Get_Advance\"]=function(){return(_FT_Get_Advance=Module[\"_FT_Get_Advance\"]=Module[\"asm\"][\"FT_Get_Advance\"]).apply(null,arguments)};var _FT_Set_Charmap=Module[\"_FT_Set_Charmap\"]=function(){return(_FT_Set_Charmap=Module[\"_FT_Set_Charmap\"]=Module[\"asm\"][\"FT_Set_Charmap\"]).apply(null,arguments)};var _FT_MulFix=Module[\"_FT_MulFix\"]=function(){return(_FT_MulFix=Module[\"_FT_MulFix\"]=Module[\"asm\"][\"FT_MulFix\"]).apply(null,arguments)};var _FT_MulDiv=Module[\"_FT_MulDiv\"]=function(){return(_FT_MulDiv=Module[\"_FT_MulDiv\"]=Module[\"asm\"][\"FT_MulDiv\"]).apply(null,arguments)};var _af_get_coverage=Module[\"_af_get_coverage\"]=function(){return(_af_get_coverage=Module[\"_af_get_coverage\"]=Module[\"asm\"][\"af_get_coverage\"]).apply(null,arguments)};var _af_get_char_index=Module[\"_af_get_char_index\"]=function(){return(_af_get_char_index=Module[\"_af_get_char_index\"]=Module[\"asm\"][\"af_get_char_index\"]).apply(null,arguments)};var _ft_mem_alloc=Module[\"_ft_mem_alloc\"]=function(){return(_ft_mem_alloc=Module[\"_ft_mem_alloc\"]=Module[\"asm\"][\"ft_mem_alloc\"]).apply(null,arguments)};var _ft_mem_free=Module[\"_ft_mem_free\"]=function(){return(_ft_mem_free=Module[\"_ft_mem_free\"]=Module[\"asm\"][\"ft_mem_free\"]).apply(null,arguments)};var _FT_Matrix_Invert=Module[\"_FT_Matrix_Invert\"]=function(){return(_FT_Matrix_Invert=Module[\"_FT_Matrix_Invert\"]=Module[\"asm\"][\"FT_Matrix_Invert\"]).apply(null,arguments)};var _FT_Vector_Transform=Module[\"_FT_Vector_Transform\"]=function(){return(_FT_Vector_Transform=Module[\"_FT_Vector_Transform\"]=Module[\"asm\"][\"FT_Vector_Transform\"]).apply(null,arguments)};var _FT_Outline_Translate=Module[\"_FT_Outline_Translate\"]=function(){return(_FT_Outline_Translate=Module[\"_FT_Outline_Translate\"]=Module[\"asm\"][\"FT_Outline_Translate\"]).apply(null,arguments)};var _FT_Outline_Transform=Module[\"_FT_Outline_Transform\"]=function(){return(_FT_Outline_Transform=Module[\"_FT_Outline_Transform\"]=Module[\"asm\"][\"FT_Outline_Transform\"]).apply(null,arguments)};var _FT_Outline_Get_CBox=Module[\"_FT_Outline_Get_CBox\"]=function(){return(_FT_Outline_Get_CBox=Module[\"_FT_Outline_Get_CBox\"]=Module[\"asm\"][\"FT_Outline_Get_CBox\"]).apply(null,arguments)};var _ft_service_list_lookup=Module[\"_ft_service_list_lookup\"]=function(){return(_ft_service_list_lookup=Module[\"_ft_service_list_lookup\"]=Module[\"asm\"][\"ft_service_list_lookup\"]).apply(null,arguments)};var _ft_mem_realloc=Module[\"_ft_mem_realloc\"]=function(){return(_ft_mem_realloc=Module[\"_ft_mem_realloc\"]=Module[\"asm\"][\"ft_mem_realloc\"]).apply(null,arguments)};var _FT_Outline_Get_Orientation=Module[\"_FT_Outline_Get_Orientation\"]=function(){return(_FT_Outline_Get_Orientation=Module[\"_FT_Outline_Get_Orientation\"]=Module[\"asm\"][\"FT_Outline_Get_Orientation\"]).apply(null,arguments)};var _ft_corner_is_flat=Module[\"_ft_corner_is_flat\"]=function(){return(_ft_corner_is_flat=Module[\"_ft_corner_is_flat\"]=Module[\"asm\"][\"ft_corner_is_flat\"]).apply(null,arguments)};var _FT_DivFix=Module[\"_FT_DivFix\"]=function(){return(_FT_DivFix=Module[\"_FT_DivFix\"]=Module[\"asm\"][\"FT_DivFix\"]).apply(null,arguments)};var _FT_Get_Next_Char=Module[\"_FT_Get_Next_Char\"]=function(){return(_FT_Get_Next_Char=Module[\"_FT_Get_Next_Char\"]=Module[\"asm\"][\"FT_Get_Next_Char\"]).apply(null,arguments)};var _FT_Get_Advances=Module[\"_FT_Get_Advances\"]=function(){return(_FT_Get_Advances=Module[\"_FT_Get_Advances\"]=Module[\"asm\"][\"FT_Get_Advances\"]).apply(null,arguments)};var _FT_Outline_Get_BBox=Module[\"_FT_Outline_Get_BBox\"]=function(){return(_FT_Outline_Get_BBox=Module[\"_FT_Outline_Get_BBox\"]=Module[\"asm\"][\"FT_Outline_Get_BBox\"]).apply(null,arguments)};var _FT_Outline_Decompose=Module[\"_FT_Outline_Decompose\"]=function(){return(_FT_Outline_Decompose=Module[\"_FT_Outline_Decompose\"]=Module[\"asm\"][\"FT_Outline_Decompose\"]).apply(null,arguments)};var _FT_Get_BDF_Charset_ID=Module[\"_FT_Get_BDF_Charset_ID\"]=function(){return(_FT_Get_BDF_Charset_ID=Module[\"_FT_Get_BDF_Charset_ID\"]=Module[\"asm\"][\"FT_Get_BDF_Charset_ID\"]).apply(null,arguments)};var _FT_Get_BDF_Property=Module[\"_FT_Get_BDF_Property\"]=function(){return(_FT_Get_BDF_Property=Module[\"_FT_Get_BDF_Property\"]=Module[\"asm\"][\"FT_Get_BDF_Property\"]).apply(null,arguments)};var _FT_Bitmap_Init=Module[\"_FT_Bitmap_Init\"]=function(){return(_FT_Bitmap_Init=Module[\"_FT_Bitmap_Init\"]=Module[\"asm\"][\"FT_Bitmap_Init\"]).apply(null,arguments)};var _FT_Bitmap_New=Module[\"_FT_Bitmap_New\"]=function(){return(_FT_Bitmap_New=Module[\"_FT_Bitmap_New\"]=Module[\"asm\"][\"FT_Bitmap_New\"]).apply(null,arguments)};var _FT_Bitmap_Copy=Module[\"_FT_Bitmap_Copy\"]=function(){return(_FT_Bitmap_Copy=Module[\"_FT_Bitmap_Copy\"]=Module[\"asm\"][\"FT_Bitmap_Copy\"]).apply(null,arguments)};var _ft_mem_qrealloc=Module[\"_ft_mem_qrealloc\"]=function(){return(_ft_mem_qrealloc=Module[\"_ft_mem_qrealloc\"]=Module[\"asm\"][\"ft_mem_qrealloc\"]).apply(null,arguments)};var _ft_mem_qalloc=Module[\"_ft_mem_qalloc\"]=function(){return(_ft_mem_qalloc=Module[\"_ft_mem_qalloc\"]=Module[\"asm\"][\"ft_mem_qalloc\"]).apply(null,arguments)};var _FT_Bitmap_Embolden=Module[\"_FT_Bitmap_Embolden\"]=function(){return(_FT_Bitmap_Embolden=Module[\"_FT_Bitmap_Embolden\"]=Module[\"asm\"][\"FT_Bitmap_Embolden\"]).apply(null,arguments)};var _FT_Bitmap_Convert=Module[\"_FT_Bitmap_Convert\"]=function(){return(_FT_Bitmap_Convert=Module[\"_FT_Bitmap_Convert\"]=Module[\"asm\"][\"FT_Bitmap_Convert\"]).apply(null,arguments)};var _FT_Bitmap_Done=Module[\"_FT_Bitmap_Done\"]=function(){return(_FT_Bitmap_Done=Module[\"_FT_Bitmap_Done\"]=Module[\"asm\"][\"FT_Bitmap_Done\"]).apply(null,arguments)};var _FT_GlyphSlot_Own_Bitmap=Module[\"_FT_GlyphSlot_Own_Bitmap\"]=function(){return(_FT_GlyphSlot_Own_Bitmap=Module[\"_FT_GlyphSlot_Own_Bitmap\"]=Module[\"asm\"][\"FT_GlyphSlot_Own_Bitmap\"]).apply(null,arguments)};var _FT_RoundFix=Module[\"_FT_RoundFix\"]=function(){return(_FT_RoundFix=Module[\"_FT_RoundFix\"]=Module[\"asm\"][\"FT_RoundFix\"]).apply(null,arguments)};var _FT_CeilFix=Module[\"_FT_CeilFix\"]=function(){return(_FT_CeilFix=Module[\"_FT_CeilFix\"]=Module[\"asm\"][\"FT_CeilFix\"]).apply(null,arguments)};var _FT_FloorFix=Module[\"_FT_FloorFix\"]=function(){return(_FT_FloorFix=Module[\"_FT_FloorFix\"]=Module[\"asm\"][\"FT_FloorFix\"]).apply(null,arguments)};var _FT_Hypot=Module[\"_FT_Hypot\"]=function(){return(_FT_Hypot=Module[\"_FT_Hypot\"]=Module[\"asm\"][\"FT_Hypot\"]).apply(null,arguments)};var _FT_Vector_Length=Module[\"_FT_Vector_Length\"]=function(){return(_FT_Vector_Length=Module[\"_FT_Vector_Length\"]=Module[\"asm\"][\"FT_Vector_Length\"]).apply(null,arguments)};var _FT_MulDiv_No_Round=Module[\"_FT_MulDiv_No_Round\"]=function(){return(_FT_MulDiv_No_Round=Module[\"_FT_MulDiv_No_Round\"]=Module[\"asm\"][\"FT_MulDiv_No_Round\"]).apply(null,arguments)};var _FT_Matrix_Multiply=Module[\"_FT_Matrix_Multiply\"]=function(){return(_FT_Matrix_Multiply=Module[\"_FT_Matrix_Multiply\"]=Module[\"asm\"][\"FT_Matrix_Multiply\"]).apply(null,arguments)};var _FT_Matrix_Multiply_Scaled=Module[\"_FT_Matrix_Multiply_Scaled\"]=function(){return(_FT_Matrix_Multiply_Scaled=Module[\"_FT_Matrix_Multiply_Scaled\"]=Module[\"asm\"][\"FT_Matrix_Multiply_Scaled\"]).apply(null,arguments)};var _FT_Vector_Transform_Scaled=Module[\"_FT_Vector_Transform_Scaled\"]=function(){return(_FT_Vector_Transform_Scaled=Module[\"_FT_Vector_Transform_Scaled\"]=Module[\"asm\"][\"FT_Vector_Transform_Scaled\"]).apply(null,arguments)};var _ft_corner_orientation=Module[\"_ft_corner_orientation\"]=function(){return(_ft_corner_orientation=Module[\"_ft_corner_orientation\"]=Module[\"asm\"][\"ft_corner_orientation\"]).apply(null,arguments)};var _FT_Get_CID_Registry_Ordering_Supplement=Module[\"_FT_Get_CID_Registry_Ordering_Supplement\"]=function(){return(_FT_Get_CID_Registry_Ordering_Supplement=Module[\"_FT_Get_CID_Registry_Ordering_Supplement\"]=Module[\"asm\"][\"FT_Get_CID_Registry_Ordering_Supplement\"]).apply(null,arguments)};var _FT_Get_CID_Is_Internally_CID_Keyed=Module[\"_FT_Get_CID_Is_Internally_CID_Keyed\"]=function(){return(_FT_Get_CID_Is_Internally_CID_Keyed=Module[\"_FT_Get_CID_Is_Internally_CID_Keyed\"]=Module[\"asm\"][\"FT_Get_CID_Is_Internally_CID_Keyed\"]).apply(null,arguments)};var _FT_Get_CID_From_Glyph_Index=Module[\"_FT_Get_CID_From_Glyph_Index\"]=function(){return(_FT_Get_CID_From_Glyph_Index=Module[\"_FT_Get_CID_From_Glyph_Index\"]=Module[\"asm\"][\"FT_Get_CID_From_Glyph_Index\"]).apply(null,arguments)};var _ft_debug_init=Module[\"_ft_debug_init\"]=function(){return(_ft_debug_init=Module[\"_ft_debug_init\"]=Module[\"asm\"][\"ft_debug_init\"]).apply(null,arguments)};var _FT_Trace_Get_Count=Module[\"_FT_Trace_Get_Count\"]=function(){return(_FT_Trace_Get_Count=Module[\"_FT_Trace_Get_Count\"]=Module[\"asm\"][\"FT_Trace_Get_Count\"]).apply(null,arguments)};var _FT_Trace_Get_Name=Module[\"_FT_Trace_Get_Name\"]=function(){return(_FT_Trace_Get_Name=Module[\"_FT_Trace_Get_Name\"]=Module[\"asm\"][\"FT_Trace_Get_Name\"]).apply(null,arguments)};var _FT_Get_Font_Format=Module[\"_FT_Get_Font_Format\"]=function(){return(_FT_Get_Font_Format=Module[\"_FT_Get_Font_Format\"]=Module[\"asm\"][\"FT_Get_Font_Format\"]).apply(null,arguments)};var _FT_Get_X11_Font_Format=Module[\"_FT_Get_X11_Font_Format\"]=function(){return(_FT_Get_X11_Font_Format=Module[\"_FT_Get_X11_Font_Format\"]=Module[\"asm\"][\"FT_Get_X11_Font_Format\"]).apply(null,arguments)};var _FT_Get_FSType_Flags=Module[\"_FT_Get_FSType_Flags\"]=function(){return(_FT_Get_FSType_Flags=Module[\"_FT_Get_FSType_Flags\"]=Module[\"asm\"][\"FT_Get_FSType_Flags\"]).apply(null,arguments)};var _FT_Get_Sfnt_Table=Module[\"_FT_Get_Sfnt_Table\"]=function(){return(_FT_Get_Sfnt_Table=Module[\"_FT_Get_Sfnt_Table\"]=Module[\"asm\"][\"FT_Get_Sfnt_Table\"]).apply(null,arguments)};var _FT_Get_Gasp=Module[\"_FT_Get_Gasp\"]=function(){return(_FT_Get_Gasp=Module[\"_FT_Get_Gasp\"]=Module[\"asm\"][\"FT_Get_Gasp\"]).apply(null,arguments)};var _FT_GlyphLoader_New=Module[\"_FT_GlyphLoader_New\"]=function(){return(_FT_GlyphLoader_New=Module[\"_FT_GlyphLoader_New\"]=Module[\"asm\"][\"FT_GlyphLoader_New\"]).apply(null,arguments)};var _FT_GlyphLoader_Rewind=Module[\"_FT_GlyphLoader_Rewind\"]=function(){return(_FT_GlyphLoader_Rewind=Module[\"_FT_GlyphLoader_Rewind\"]=Module[\"asm\"][\"FT_GlyphLoader_Rewind\"]).apply(null,arguments)};var _FT_GlyphLoader_Reset=Module[\"_FT_GlyphLoader_Reset\"]=function(){return(_FT_GlyphLoader_Reset=Module[\"_FT_GlyphLoader_Reset\"]=Module[\"asm\"][\"FT_GlyphLoader_Reset\"]).apply(null,arguments)};var _FT_GlyphLoader_Done=Module[\"_FT_GlyphLoader_Done\"]=function(){return(_FT_GlyphLoader_Done=Module[\"_FT_GlyphLoader_Done\"]=Module[\"asm\"][\"FT_GlyphLoader_Done\"]).apply(null,arguments)};var _FT_GlyphLoader_CreateExtra=Module[\"_FT_GlyphLoader_CreateExtra\"]=function(){return(_FT_GlyphLoader_CreateExtra=Module[\"_FT_GlyphLoader_CreateExtra\"]=Module[\"asm\"][\"FT_GlyphLoader_CreateExtra\"]).apply(null,arguments)};var _FT_GlyphLoader_CheckPoints=Module[\"_FT_GlyphLoader_CheckPoints\"]=function(){return(_FT_GlyphLoader_CheckPoints=Module[\"_FT_GlyphLoader_CheckPoints\"]=Module[\"asm\"][\"FT_GlyphLoader_CheckPoints\"]).apply(null,arguments)};var _FT_GlyphLoader_CheckSubGlyphs=Module[\"_FT_GlyphLoader_CheckSubGlyphs\"]=function(){return(_FT_GlyphLoader_CheckSubGlyphs=Module[\"_FT_GlyphLoader_CheckSubGlyphs\"]=Module[\"asm\"][\"FT_GlyphLoader_CheckSubGlyphs\"]).apply(null,arguments)};var _FT_GlyphLoader_Prepare=Module[\"_FT_GlyphLoader_Prepare\"]=function(){return(_FT_GlyphLoader_Prepare=Module[\"_FT_GlyphLoader_Prepare\"]=Module[\"asm\"][\"FT_GlyphLoader_Prepare\"]).apply(null,arguments)};var _FT_GlyphLoader_Add=Module[\"_FT_GlyphLoader_Add\"]=function(){return(_FT_GlyphLoader_Add=Module[\"_FT_GlyphLoader_Add\"]=Module[\"asm\"][\"FT_GlyphLoader_Add\"]).apply(null,arguments)};var _FT_GlyphLoader_CopyPoints=Module[\"_FT_GlyphLoader_CopyPoints\"]=function(){return(_FT_GlyphLoader_CopyPoints=Module[\"_FT_GlyphLoader_CopyPoints\"]=Module[\"asm\"][\"FT_GlyphLoader_CopyPoints\"]).apply(null,arguments)};var _FT_Outline_New=Module[\"_FT_Outline_New\"]=function(){return(_FT_Outline_New=Module[\"_FT_Outline_New\"]=Module[\"asm\"][\"FT_Outline_New\"]).apply(null,arguments)};var _FT_Outline_Copy=Module[\"_FT_Outline_Copy\"]=function(){return(_FT_Outline_Copy=Module[\"_FT_Outline_Copy\"]=Module[\"asm\"][\"FT_Outline_Copy\"]).apply(null,arguments)};var _FT_Outline_Done=Module[\"_FT_Outline_Done\"]=function(){return(_FT_Outline_Done=Module[\"_FT_Outline_Done\"]=Module[\"asm\"][\"FT_Outline_Done\"]).apply(null,arguments)};var _FT_Glyph_Copy=Module[\"_FT_Glyph_Copy\"]=function(){return(_FT_Glyph_Copy=Module[\"_FT_Glyph_Copy\"]=Module[\"asm\"][\"FT_Glyph_Copy\"]).apply(null,arguments)};var _FT_Done_Glyph=Module[\"_FT_Done_Glyph\"]=function(){return(_FT_Done_Glyph=Module[\"_FT_Done_Glyph\"]=Module[\"asm\"][\"FT_Done_Glyph\"]).apply(null,arguments)};var _FT_Get_Glyph=Module[\"_FT_Get_Glyph\"]=function(){return(_FT_Get_Glyph=Module[\"_FT_Get_Glyph\"]=Module[\"asm\"][\"FT_Get_Glyph\"]).apply(null,arguments)};var _FT_Lookup_Renderer=Module[\"_FT_Lookup_Renderer\"]=function(){return(_FT_Lookup_Renderer=Module[\"_FT_Lookup_Renderer\"]=Module[\"asm\"][\"FT_Lookup_Renderer\"]).apply(null,arguments)};var _FT_Glyph_Transform=Module[\"_FT_Glyph_Transform\"]=function(){return(_FT_Glyph_Transform=Module[\"_FT_Glyph_Transform\"]=Module[\"asm\"][\"FT_Glyph_Transform\"]).apply(null,arguments)};var _FT_Glyph_Get_CBox=Module[\"_FT_Glyph_Get_CBox\"]=function(){return(_FT_Glyph_Get_CBox=Module[\"_FT_Glyph_Get_CBox\"]=Module[\"asm\"][\"FT_Glyph_Get_CBox\"]).apply(null,arguments)};var _FT_Glyph_To_Bitmap=Module[\"_FT_Glyph_To_Bitmap\"]=function(){return(_FT_Glyph_To_Bitmap=Module[\"_FT_Glyph_To_Bitmap\"]=Module[\"asm\"][\"FT_Glyph_To_Bitmap\"]).apply(null,arguments)};var _FT_Render_Glyph_Internal=Module[\"_FT_Render_Glyph_Internal\"]=function(){return(_FT_Render_Glyph_Internal=Module[\"_FT_Render_Glyph_Internal\"]=Module[\"asm\"][\"FT_Render_Glyph_Internal\"]).apply(null,arguments)};var _FT_TrueTypeGX_Validate=Module[\"_FT_TrueTypeGX_Validate\"]=function(){return(_FT_TrueTypeGX_Validate=Module[\"_FT_TrueTypeGX_Validate\"]=Module[\"asm\"][\"FT_TrueTypeGX_Validate\"]).apply(null,arguments)};var _ft_module_get_service=Module[\"_ft_module_get_service\"]=function(){return(_ft_module_get_service=Module[\"_ft_module_get_service\"]=Module[\"asm\"][\"ft_module_get_service\"]).apply(null,arguments)};var _FT_TrueTypeGX_Free=Module[\"_FT_TrueTypeGX_Free\"]=function(){return(_FT_TrueTypeGX_Free=Module[\"_FT_TrueTypeGX_Free\"]=Module[\"asm\"][\"FT_TrueTypeGX_Free\"]).apply(null,arguments)};var _FT_ClassicKern_Validate=Module[\"_FT_ClassicKern_Validate\"]=function(){return(_FT_ClassicKern_Validate=Module[\"_FT_ClassicKern_Validate\"]=Module[\"asm\"][\"FT_ClassicKern_Validate\"]).apply(null,arguments)};var _FT_ClassicKern_Free=Module[\"_FT_ClassicKern_Free\"]=function(){return(_FT_ClassicKern_Free=Module[\"_FT_ClassicKern_Free\"]=Module[\"asm\"][\"FT_ClassicKern_Free\"]).apply(null,arguments)};var _FT_Add_Default_Modules=Module[\"_FT_Add_Default_Modules\"]=function(){return(_FT_Add_Default_Modules=Module[\"_FT_Add_Default_Modules\"]=Module[\"asm\"][\"FT_Add_Default_Modules\"]).apply(null,arguments)};var _FT_Add_Module=Module[\"_FT_Add_Module\"]=function(){return(_FT_Add_Module=Module[\"_FT_Add_Module\"]=Module[\"asm\"][\"FT_Add_Module\"]).apply(null,arguments)};var _FT_Init_FreeType=Module[\"_FT_Init_FreeType\"]=function(){return(_FT_Init_FreeType=Module[\"_FT_Init_FreeType\"]=Module[\"asm\"][\"FT_Init_FreeType\"]).apply(null,arguments)};var _FT_New_Memory=Module[\"_FT_New_Memory\"]=function(){return(_FT_New_Memory=Module[\"_FT_New_Memory\"]=Module[\"asm\"][\"FT_New_Memory\"]).apply(null,arguments)};var _FT_New_Library=Module[\"_FT_New_Library\"]=function(){return(_FT_New_Library=Module[\"_FT_New_Library\"]=Module[\"asm\"][\"FT_New_Library\"]).apply(null,arguments)};var _FT_Done_Memory=Module[\"_FT_Done_Memory\"]=function(){return(_FT_Done_Memory=Module[\"_FT_Done_Memory\"]=Module[\"asm\"][\"FT_Done_Memory\"]).apply(null,arguments)};var _FT_Done_FreeType=Module[\"_FT_Done_FreeType\"]=function(){return(_FT_Done_FreeType=Module[\"_FT_Done_FreeType\"]=Module[\"asm\"][\"FT_Done_FreeType\"]).apply(null,arguments)};var _FT_Done_Library=Module[\"_FT_Done_Library\"]=function(){return(_FT_Done_Library=Module[\"_FT_Done_Library\"]=Module[\"asm\"][\"FT_Done_Library\"]).apply(null,arguments)};var _FT_Library_SetLcdFilterWeights=Module[\"_FT_Library_SetLcdFilterWeights\"]=function(){return(_FT_Library_SetLcdFilterWeights=Module[\"_FT_Library_SetLcdFilterWeights\"]=Module[\"asm\"][\"FT_Library_SetLcdFilterWeights\"]).apply(null,arguments)};var _FT_Library_SetLcdFilter=Module[\"_FT_Library_SetLcdFilter\"]=function(){return(_FT_Library_SetLcdFilter=Module[\"_FT_Library_SetLcdFilter\"]=Module[\"asm\"][\"FT_Library_SetLcdFilter\"]).apply(null,arguments)};var _FT_Get_Multi_Master=Module[\"_FT_Get_Multi_Master\"]=function(){return(_FT_Get_Multi_Master=Module[\"_FT_Get_Multi_Master\"]=Module[\"asm\"][\"FT_Get_Multi_Master\"]).apply(null,arguments)};var _FT_Get_MM_Var=Module[\"_FT_Get_MM_Var\"]=function(){return(_FT_Get_MM_Var=Module[\"_FT_Get_MM_Var\"]=Module[\"asm\"][\"FT_Get_MM_Var\"]).apply(null,arguments)};var _FT_Set_MM_Design_Coordinates=Module[\"_FT_Set_MM_Design_Coordinates\"]=function(){return(_FT_Set_MM_Design_Coordinates=Module[\"_FT_Set_MM_Design_Coordinates\"]=Module[\"asm\"][\"FT_Set_MM_Design_Coordinates\"]).apply(null,arguments)};var _FT_Set_Var_Design_Coordinates=Module[\"_FT_Set_Var_Design_Coordinates\"]=function(){return(_FT_Set_Var_Design_Coordinates=Module[\"_FT_Set_Var_Design_Coordinates\"]=Module[\"asm\"][\"FT_Set_Var_Design_Coordinates\"]).apply(null,arguments)};var _FT_Set_MM_Blend_Coordinates=Module[\"_FT_Set_MM_Blend_Coordinates\"]=function(){return(_FT_Set_MM_Blend_Coordinates=Module[\"_FT_Set_MM_Blend_Coordinates\"]=Module[\"asm\"][\"FT_Set_MM_Blend_Coordinates\"]).apply(null,arguments)};var _FT_Set_Var_Blend_Coordinates=Module[\"_FT_Set_Var_Blend_Coordinates\"]=function(){return(_FT_Set_Var_Blend_Coordinates=Module[\"_FT_Set_Var_Blend_Coordinates\"]=Module[\"asm\"][\"FT_Set_Var_Blend_Coordinates\"]).apply(null,arguments)};var _ft_validator_init=Module[\"_ft_validator_init\"]=function(){return(_ft_validator_init=Module[\"_ft_validator_init\"]=Module[\"asm\"][\"ft_validator_init\"]).apply(null,arguments)};var _ft_validator_run=Module[\"_ft_validator_run\"]=function(){return(_ft_validator_run=Module[\"_ft_validator_run\"]=Module[\"asm\"][\"ft_validator_run\"]).apply(null,arguments)};var _ft_validator_error=Module[\"_ft_validator_error\"]=function(){return(_ft_validator_error=Module[\"_ft_validator_error\"]=Module[\"asm\"][\"ft_validator_error\"]).apply(null,arguments)};var _FT_Stream_New=Module[\"_FT_Stream_New\"]=function(){return(_FT_Stream_New=Module[\"_FT_Stream_New\"]=Module[\"asm\"][\"FT_Stream_New\"]).apply(null,arguments)};var _FT_Stream_OpenMemory=Module[\"_FT_Stream_OpenMemory\"]=function(){return(_FT_Stream_OpenMemory=Module[\"_FT_Stream_OpenMemory\"]=Module[\"asm\"][\"FT_Stream_OpenMemory\"]).apply(null,arguments)};var _FT_Stream_Open=Module[\"_FT_Stream_Open\"]=function(){return(_FT_Stream_Open=Module[\"_FT_Stream_Open\"]=Module[\"asm\"][\"FT_Stream_Open\"]).apply(null,arguments)};var _FT_Stream_Free=Module[\"_FT_Stream_Free\"]=function(){return(_FT_Stream_Free=Module[\"_FT_Stream_Free\"]=Module[\"asm\"][\"FT_Stream_Free\"]).apply(null,arguments)};var _FT_Stream_Close=Module[\"_FT_Stream_Close\"]=function(){return(_FT_Stream_Close=Module[\"_FT_Stream_Close\"]=Module[\"asm\"][\"FT_Stream_Close\"]).apply(null,arguments)};var _ft_glyphslot_free_bitmap=Module[\"_ft_glyphslot_free_bitmap\"]=function(){return(_ft_glyphslot_free_bitmap=Module[\"_ft_glyphslot_free_bitmap\"]=Module[\"asm\"][\"ft_glyphslot_free_bitmap\"]).apply(null,arguments)};var _ft_glyphslot_set_bitmap=Module[\"_ft_glyphslot_set_bitmap\"]=function(){return(_ft_glyphslot_set_bitmap=Module[\"_ft_glyphslot_set_bitmap\"]=Module[\"asm\"][\"ft_glyphslot_set_bitmap\"]).apply(null,arguments)};var _ft_glyphslot_alloc_bitmap=Module[\"_ft_glyphslot_alloc_bitmap\"]=function(){return(_ft_glyphslot_alloc_bitmap=Module[\"_ft_glyphslot_alloc_bitmap\"]=Module[\"asm\"][\"ft_glyphslot_alloc_bitmap\"]).apply(null,arguments)};var _FT_New_GlyphSlot=Module[\"_FT_New_GlyphSlot\"]=function(){return(_FT_New_GlyphSlot=Module[\"_FT_New_GlyphSlot\"]=Module[\"asm\"][\"FT_New_GlyphSlot\"]).apply(null,arguments)};var _FT_Done_GlyphSlot=Module[\"_FT_Done_GlyphSlot\"]=function(){return(_FT_Done_GlyphSlot=Module[\"_FT_Done_GlyphSlot\"]=Module[\"asm\"][\"FT_Done_GlyphSlot\"]).apply(null,arguments)};var _FT_Set_Transform=Module[\"_FT_Set_Transform\"]=function(){return(_FT_Set_Transform=Module[\"_FT_Set_Transform\"]=Module[\"asm\"][\"FT_Set_Transform\"]).apply(null,arguments)};var _FT_Outline_Check=Module[\"_FT_Outline_Check\"]=function(){return(_FT_Outline_Check=Module[\"_FT_Outline_Check\"]=Module[\"asm\"][\"FT_Outline_Check\"]).apply(null,arguments)};var _FT_Render_Glyph=Module[\"_FT_Render_Glyph\"]=function(){return(_FT_Render_Glyph=Module[\"_FT_Render_Glyph\"]=Module[\"asm\"][\"FT_Render_Glyph\"]).apply(null,arguments)};var _FT_Load_Char=Module[\"_FT_Load_Char\"]=function(){return(_FT_Load_Char=Module[\"_FT_Load_Char\"]=Module[\"asm\"][\"FT_Load_Char\"]).apply(null,arguments)};var _FT_New_Face=Module[\"_FT_New_Face\"]=function(){return(_FT_New_Face=Module[\"_FT_New_Face\"]=Module[\"asm\"][\"FT_New_Face\"]).apply(null,arguments)};var _FT_Open_Face=Module[\"_FT_Open_Face\"]=function(){return(_FT_Open_Face=Module[\"_FT_Open_Face\"]=Module[\"asm\"][\"FT_Open_Face\"]).apply(null,arguments)};var _FT_Stream_Seek=Module[\"_FT_Stream_Seek\"]=function(){return(_FT_Stream_Seek=Module[\"_FT_Stream_Seek\"]=Module[\"asm\"][\"FT_Stream_Seek\"]).apply(null,arguments)};var _open_face_PS_from_sfnt_stream=Module[\"_open_face_PS_from_sfnt_stream\"]=function(){return(_open_face_PS_from_sfnt_stream=Module[\"_open_face_PS_from_sfnt_stream\"]=Module[\"asm\"][\"open_face_PS_from_sfnt_stream\"]).apply(null,arguments)};var _FT_Raccess_Guess=Module[\"_FT_Raccess_Guess\"]=function(){return(_FT_Raccess_Guess=Module[\"_FT_Raccess_Guess\"]=Module[\"asm\"][\"FT_Raccess_Guess\"]).apply(null,arguments)};var _ft_raccess_rule_by_darwin_vfs=Module[\"_ft_raccess_rule_by_darwin_vfs\"]=function(){return(_ft_raccess_rule_by_darwin_vfs=Module[\"_ft_raccess_rule_by_darwin_vfs\"]=Module[\"asm\"][\"ft_raccess_rule_by_darwin_vfs\"]).apply(null,arguments)};var _FT_List_Add=Module[\"_FT_List_Add\"]=function(){return(_FT_List_Add=Module[\"_FT_List_Add\"]=Module[\"asm\"][\"FT_List_Add\"]).apply(null,arguments)};var _FT_New_Size=Module[\"_FT_New_Size\"]=function(){return(_FT_New_Size=Module[\"_FT_New_Size\"]=Module[\"asm\"][\"FT_New_Size\"]).apply(null,arguments)};var _FT_List_Find=Module[\"_FT_List_Find\"]=function(){return(_FT_List_Find=Module[\"_FT_List_Find\"]=Module[\"asm\"][\"FT_List_Find\"]).apply(null,arguments)};var _FT_List_Remove=Module[\"_FT_List_Remove\"]=function(){return(_FT_List_Remove=Module[\"_FT_List_Remove\"]=Module[\"asm\"][\"FT_List_Remove\"]).apply(null,arguments)};var _FT_New_Memory_Face=Module[\"_FT_New_Memory_Face\"]=function(){return(_FT_New_Memory_Face=Module[\"_FT_New_Memory_Face\"]=Module[\"asm\"][\"FT_New_Memory_Face\"]).apply(null,arguments)};var _open_face_from_buffer=Module[\"_open_face_from_buffer\"]=function(){return(_open_face_from_buffer=Module[\"_open_face_from_buffer\"]=Module[\"asm\"][\"open_face_from_buffer\"]).apply(null,arguments)};var _FT_Get_Module=Module[\"_FT_Get_Module\"]=function(){return(_FT_Get_Module=Module[\"_FT_Get_Module\"]=Module[\"asm\"][\"FT_Get_Module\"]).apply(null,arguments)};var _FT_Stream_Pos=Module[\"_FT_Stream_Pos\"]=function(){return(_FT_Stream_Pos=Module[\"_FT_Stream_Pos\"]=Module[\"asm\"][\"FT_Stream_Pos\"]).apply(null,arguments)};var _FT_Stream_ReadULong=Module[\"_FT_Stream_ReadULong\"]=function(){return(_FT_Stream_ReadULong=Module[\"_FT_Stream_ReadULong\"]=Module[\"asm\"][\"FT_Stream_ReadULong\"]).apply(null,arguments)};var _FT_Stream_ReadUShort=Module[\"_FT_Stream_ReadUShort\"]=function(){return(_FT_Stream_ReadUShort=Module[\"_FT_Stream_ReadUShort\"]=Module[\"asm\"][\"FT_Stream_ReadUShort\"]).apply(null,arguments)};var _FT_Stream_Skip=Module[\"_FT_Stream_Skip\"]=function(){return(_FT_Stream_Skip=Module[\"_FT_Stream_Skip\"]=Module[\"asm\"][\"FT_Stream_Skip\"]).apply(null,arguments)};var _FT_Stream_Read=Module[\"_FT_Stream_Read\"]=function(){return(_FT_Stream_Read=Module[\"_FT_Stream_Read\"]=Module[\"asm\"][\"FT_Stream_Read\"]).apply(null,arguments)};var _FT_Done_Face=Module[\"_FT_Done_Face\"]=function(){return(_FT_Done_Face=Module[\"_FT_Done_Face\"]=Module[\"asm\"][\"FT_Done_Face\"]).apply(null,arguments)};var _FT_List_Finalize=Module[\"_FT_List_Finalize\"]=function(){return(_FT_List_Finalize=Module[\"_FT_List_Finalize\"]=Module[\"asm\"][\"FT_List_Finalize\"]).apply(null,arguments)};var _FT_Attach_File=Module[\"_FT_Attach_File\"]=function(){return(_FT_Attach_File=Module[\"_FT_Attach_File\"]=Module[\"asm\"][\"FT_Attach_File\"]).apply(null,arguments)};var _FT_Attach_Stream=Module[\"_FT_Attach_Stream\"]=function(){return(_FT_Attach_Stream=Module[\"_FT_Attach_Stream\"]=Module[\"asm\"][\"FT_Attach_Stream\"]).apply(null,arguments)};var _FT_Reference_Face=Module[\"_FT_Reference_Face\"]=function(){return(_FT_Reference_Face=Module[\"_FT_Reference_Face\"]=Module[\"asm\"][\"FT_Reference_Face\"]).apply(null,arguments)};var _FT_Done_Size=Module[\"_FT_Done_Size\"]=function(){return(_FT_Done_Size=Module[\"_FT_Done_Size\"]=Module[\"asm\"][\"FT_Done_Size\"]).apply(null,arguments)};var _FT_Match_Size=Module[\"_FT_Match_Size\"]=function(){return(_FT_Match_Size=Module[\"_FT_Match_Size\"]=Module[\"asm\"][\"FT_Match_Size\"]).apply(null,arguments)};var _ft_synthesize_vertical_metrics=Module[\"_ft_synthesize_vertical_metrics\"]=function(){return(_ft_synthesize_vertical_metrics=Module[\"_ft_synthesize_vertical_metrics\"]=Module[\"asm\"][\"ft_synthesize_vertical_metrics\"]).apply(null,arguments)};var _FT_Select_Metrics=Module[\"_FT_Select_Metrics\"]=function(){return(_FT_Select_Metrics=Module[\"_FT_Select_Metrics\"]=Module[\"asm\"][\"FT_Select_Metrics\"]).apply(null,arguments)};var _FT_Request_Metrics=Module[\"_FT_Request_Metrics\"]=function(){return(_FT_Request_Metrics=Module[\"_FT_Request_Metrics\"]=Module[\"asm\"][\"FT_Request_Metrics\"]).apply(null,arguments)};var _FT_Select_Size=Module[\"_FT_Select_Size\"]=function(){return(_FT_Select_Size=Module[\"_FT_Select_Size\"]=Module[\"asm\"][\"FT_Select_Size\"]).apply(null,arguments)};var _FT_Request_Size=Module[\"_FT_Request_Size\"]=function(){return(_FT_Request_Size=Module[\"_FT_Request_Size\"]=Module[\"asm\"][\"FT_Request_Size\"]).apply(null,arguments)};var _FT_Set_Char_Size=Module[\"_FT_Set_Char_Size\"]=function(){return(_FT_Set_Char_Size=Module[\"_FT_Set_Char_Size\"]=Module[\"asm\"][\"FT_Set_Char_Size\"]).apply(null,arguments)};var _FT_Set_Pixel_Sizes=Module[\"_FT_Set_Pixel_Sizes\"]=function(){return(_FT_Set_Pixel_Sizes=Module[\"_FT_Set_Pixel_Sizes\"]=Module[\"asm\"][\"FT_Set_Pixel_Sizes\"]).apply(null,arguments)};var _FT_Get_Kerning=Module[\"_FT_Get_Kerning\"]=function(){return(_FT_Get_Kerning=Module[\"_FT_Get_Kerning\"]=Module[\"asm\"][\"FT_Get_Kerning\"]).apply(null,arguments)};var _FT_Get_Track_Kerning=Module[\"_FT_Get_Track_Kerning\"]=function(){return(_FT_Get_Track_Kerning=Module[\"_FT_Get_Track_Kerning\"]=Module[\"asm\"][\"FT_Get_Track_Kerning\"]).apply(null,arguments)};var _FT_Get_CMap_Format=Module[\"_FT_Get_CMap_Format\"]=function(){return(_FT_Get_CMap_Format=Module[\"_FT_Get_CMap_Format\"]=Module[\"asm\"][\"FT_Get_CMap_Format\"]).apply(null,arguments)};var _FT_Get_Charmap_Index=Module[\"_FT_Get_Charmap_Index\"]=function(){return(_FT_Get_Charmap_Index=Module[\"_FT_Get_Charmap_Index\"]=Module[\"asm\"][\"FT_Get_Charmap_Index\"]).apply(null,arguments)};var _FT_CMap_Done=Module[\"_FT_CMap_Done\"]=function(){return(_FT_CMap_Done=Module[\"_FT_CMap_Done\"]=Module[\"asm\"][\"FT_CMap_Done\"]).apply(null,arguments)};var _FT_CMap_New=Module[\"_FT_CMap_New\"]=function(){return(_FT_CMap_New=Module[\"_FT_CMap_New\"]=Module[\"asm\"][\"FT_CMap_New\"]).apply(null,arguments)};var _FT_Get_First_Char=Module[\"_FT_Get_First_Char\"]=function(){return(_FT_Get_First_Char=Module[\"_FT_Get_First_Char\"]=Module[\"asm\"][\"FT_Get_First_Char\"]).apply(null,arguments)};var _FT_Face_GetCharVariantIndex=Module[\"_FT_Face_GetCharVariantIndex\"]=function(){return(_FT_Face_GetCharVariantIndex=Module[\"_FT_Face_GetCharVariantIndex\"]=Module[\"asm\"][\"FT_Face_GetCharVariantIndex\"]).apply(null,arguments)};var _FT_Face_GetCharVariantIsDefault=Module[\"_FT_Face_GetCharVariantIsDefault\"]=function(){return(_FT_Face_GetCharVariantIsDefault=Module[\"_FT_Face_GetCharVariantIsDefault\"]=Module[\"asm\"][\"FT_Face_GetCharVariantIsDefault\"]).apply(null,arguments)};var _FT_Face_GetVariantSelectors=Module[\"_FT_Face_GetVariantSelectors\"]=function(){return(_FT_Face_GetVariantSelectors=Module[\"_FT_Face_GetVariantSelectors\"]=Module[\"asm\"][\"FT_Face_GetVariantSelectors\"]).apply(null,arguments)};var _FT_Face_GetVariantsOfChar=Module[\"_FT_Face_GetVariantsOfChar\"]=function(){return(_FT_Face_GetVariantsOfChar=Module[\"_FT_Face_GetVariantsOfChar\"]=Module[\"asm\"][\"FT_Face_GetVariantsOfChar\"]).apply(null,arguments)};var _FT_Face_GetCharsOfVariant=Module[\"_FT_Face_GetCharsOfVariant\"]=function(){return(_FT_Face_GetCharsOfVariant=Module[\"_FT_Face_GetCharsOfVariant\"]=Module[\"asm\"][\"FT_Face_GetCharsOfVariant\"]).apply(null,arguments)};var _FT_Get_Name_Index=Module[\"_FT_Get_Name_Index\"]=function(){return(_FT_Get_Name_Index=Module[\"_FT_Get_Name_Index\"]=Module[\"asm\"][\"FT_Get_Name_Index\"]).apply(null,arguments)};var _FT_Get_Glyph_Name=Module[\"_FT_Get_Glyph_Name\"]=function(){return(_FT_Get_Glyph_Name=Module[\"_FT_Get_Glyph_Name\"]=Module[\"asm\"][\"FT_Get_Glyph_Name\"]).apply(null,arguments)};var _FT_Get_Postscript_Name=Module[\"_FT_Get_Postscript_Name\"]=function(){return(_FT_Get_Postscript_Name=Module[\"_FT_Get_Postscript_Name\"]=Module[\"asm\"][\"FT_Get_Postscript_Name\"]).apply(null,arguments)};var _FT_Load_Sfnt_Table=Module[\"_FT_Load_Sfnt_Table\"]=function(){return(_FT_Load_Sfnt_Table=Module[\"_FT_Load_Sfnt_Table\"]=Module[\"asm\"][\"FT_Load_Sfnt_Table\"]).apply(null,arguments)};var _FT_Sfnt_Table_Info=Module[\"_FT_Sfnt_Table_Info\"]=function(){return(_FT_Sfnt_Table_Info=Module[\"_FT_Sfnt_Table_Info\"]=Module[\"asm\"][\"FT_Sfnt_Table_Info\"]).apply(null,arguments)};var _FT_Get_CMap_Language_ID=Module[\"_FT_Get_CMap_Language_ID\"]=function(){return(_FT_Get_CMap_Language_ID=Module[\"_FT_Get_CMap_Language_ID\"]=Module[\"asm\"][\"FT_Get_CMap_Language_ID\"]).apply(null,arguments)};var _FT_Activate_Size=Module[\"_FT_Activate_Size\"]=function(){return(_FT_Activate_Size=Module[\"_FT_Activate_Size\"]=Module[\"asm\"][\"FT_Activate_Size\"]).apply(null,arguments)};var _FT_Get_Renderer=Module[\"_FT_Get_Renderer\"]=function(){return(_FT_Get_Renderer=Module[\"_FT_Get_Renderer\"]=Module[\"asm\"][\"FT_Get_Renderer\"]).apply(null,arguments)};var _FT_Set_Renderer=Module[\"_FT_Set_Renderer\"]=function(){return(_FT_Set_Renderer=Module[\"_FT_Set_Renderer\"]=Module[\"asm\"][\"FT_Set_Renderer\"]).apply(null,arguments)};var _FT_List_Up=Module[\"_FT_List_Up\"]=function(){return(_FT_List_Up=Module[\"_FT_List_Up\"]=Module[\"asm\"][\"FT_List_Up\"]).apply(null,arguments)};var _FT_Remove_Module=Module[\"_FT_Remove_Module\"]=function(){return(_FT_Remove_Module=Module[\"_FT_Remove_Module\"]=Module[\"asm\"][\"FT_Remove_Module\"]).apply(null,arguments)};var _FT_Get_Module_Interface=Module[\"_FT_Get_Module_Interface\"]=function(){return(_FT_Get_Module_Interface=Module[\"_FT_Get_Module_Interface\"]=Module[\"asm\"][\"FT_Get_Module_Interface\"]).apply(null,arguments)};var _FT_Property_Set=Module[\"_FT_Property_Set\"]=function(){return(_FT_Property_Set=Module[\"_FT_Property_Set\"]=Module[\"asm\"][\"FT_Property_Set\"]).apply(null,arguments)};var _FT_Property_Get=Module[\"_FT_Property_Get\"]=function(){return(_FT_Property_Get=Module[\"_FT_Property_Get\"]=Module[\"asm\"][\"FT_Property_Get\"]).apply(null,arguments)};var _FT_Reference_Library=Module[\"_FT_Reference_Library\"]=function(){return(_FT_Reference_Library=Module[\"_FT_Reference_Library\"]=Module[\"asm\"][\"FT_Reference_Library\"]).apply(null,arguments)};var _FT_Library_Version=Module[\"_FT_Library_Version\"]=function(){return(_FT_Library_Version=Module[\"_FT_Library_Version\"]=Module[\"asm\"][\"FT_Library_Version\"]).apply(null,arguments)};var _FT_Set_Debug_Hook=Module[\"_FT_Set_Debug_Hook\"]=function(){return(_FT_Set_Debug_Hook=Module[\"_FT_Set_Debug_Hook\"]=Module[\"asm\"][\"FT_Set_Debug_Hook\"]).apply(null,arguments)};var _FT_Get_TrueType_Engine_Type=Module[\"_FT_Get_TrueType_Engine_Type\"]=function(){return(_FT_Get_TrueType_Engine_Type=Module[\"_FT_Get_TrueType_Engine_Type\"]=Module[\"asm\"][\"FT_Get_TrueType_Engine_Type\"]).apply(null,arguments)};var _FT_Get_SubGlyph_Info=Module[\"_FT_Get_SubGlyph_Info\"]=function(){return(_FT_Get_SubGlyph_Info=Module[\"_FT_Get_SubGlyph_Info\"]=Module[\"asm\"][\"FT_Get_SubGlyph_Info\"]).apply(null,arguments)};var _FT_Raccess_Get_HeaderInfo=Module[\"_FT_Raccess_Get_HeaderInfo\"]=function(){return(_FT_Raccess_Get_HeaderInfo=Module[\"_FT_Raccess_Get_HeaderInfo\"]=Module[\"asm\"][\"FT_Raccess_Get_HeaderInfo\"]).apply(null,arguments)};var _FT_Raccess_Get_DataOffsets=Module[\"_FT_Raccess_Get_DataOffsets\"]=function(){return(_FT_Raccess_Get_DataOffsets=Module[\"_FT_Raccess_Get_DataOffsets\"]=Module[\"asm\"][\"FT_Raccess_Get_DataOffsets\"]).apply(null,arguments)};var _FT_OpenType_Validate=Module[\"_FT_OpenType_Validate\"]=function(){return(_FT_OpenType_Validate=Module[\"_FT_OpenType_Validate\"]=Module[\"asm\"][\"FT_OpenType_Validate\"]).apply(null,arguments)};var _FT_OpenType_Free=Module[\"_FT_OpenType_Free\"]=function(){return(_FT_OpenType_Free=Module[\"_FT_OpenType_Free\"]=Module[\"asm\"][\"FT_OpenType_Free\"]).apply(null,arguments)};var _FT_Outline_New_Internal=Module[\"_FT_Outline_New_Internal\"]=function(){return(_FT_Outline_New_Internal=Module[\"_FT_Outline_New_Internal\"]=Module[\"asm\"][\"FT_Outline_New_Internal\"]).apply(null,arguments)};var _FT_Outline_Done_Internal=Module[\"_FT_Outline_Done_Internal\"]=function(){return(_FT_Outline_Done_Internal=Module[\"_FT_Outline_Done_Internal\"]=Module[\"asm\"][\"FT_Outline_Done_Internal\"]).apply(null,arguments)};var _FT_Outline_Reverse=Module[\"_FT_Outline_Reverse\"]=function(){return(_FT_Outline_Reverse=Module[\"_FT_Outline_Reverse\"]=Module[\"asm\"][\"FT_Outline_Reverse\"]).apply(null,arguments)};var _FT_Outline_Render=Module[\"_FT_Outline_Render\"]=function(){return(_FT_Outline_Render=Module[\"_FT_Outline_Render\"]=Module[\"asm\"][\"FT_Outline_Render\"]).apply(null,arguments)};var _FT_Outline_Get_Bitmap=Module[\"_FT_Outline_Get_Bitmap\"]=function(){return(_FT_Outline_Get_Bitmap=Module[\"_FT_Outline_Get_Bitmap\"]=Module[\"asm\"][\"FT_Outline_Get_Bitmap\"]).apply(null,arguments)};var _FT_Outline_Embolden=Module[\"_FT_Outline_Embolden\"]=function(){return(_FT_Outline_Embolden=Module[\"_FT_Outline_Embolden\"]=Module[\"asm\"][\"FT_Outline_Embolden\"]).apply(null,arguments)};var _FT_Outline_EmboldenXY=Module[\"_FT_Outline_EmboldenXY\"]=function(){return(_FT_Outline_EmboldenXY=Module[\"_FT_Outline_EmboldenXY\"]=Module[\"asm\"][\"FT_Outline_EmboldenXY\"]).apply(null,arguments)};var _FT_Face_CheckTrueTypePatents=Module[\"_FT_Face_CheckTrueTypePatents\"]=function(){return(_FT_Face_CheckTrueTypePatents=Module[\"_FT_Face_CheckTrueTypePatents\"]=Module[\"asm\"][\"FT_Face_CheckTrueTypePatents\"]).apply(null,arguments)};var _FT_Face_SetUnpatentedHinting=Module[\"_FT_Face_SetUnpatentedHinting\"]=function(){return(_FT_Face_SetUnpatentedHinting=Module[\"_FT_Face_SetUnpatentedHinting\"]=Module[\"asm\"][\"FT_Face_SetUnpatentedHinting\"]).apply(null,arguments)};var _FT_Stream_EnterFrame=Module[\"_FT_Stream_EnterFrame\"]=function(){return(_FT_Stream_EnterFrame=Module[\"_FT_Stream_EnterFrame\"]=Module[\"asm\"][\"FT_Stream_EnterFrame\"]).apply(null,arguments)};var _FT_Stream_ExitFrame=Module[\"_FT_Stream_ExitFrame\"]=function(){return(_FT_Stream_ExitFrame=Module[\"_FT_Stream_ExitFrame\"]=Module[\"asm\"][\"FT_Stream_ExitFrame\"]).apply(null,arguments)};var _FT_Get_PFR_Metrics=Module[\"_FT_Get_PFR_Metrics\"]=function(){return(_FT_Get_PFR_Metrics=Module[\"_FT_Get_PFR_Metrics\"]=Module[\"asm\"][\"FT_Get_PFR_Metrics\"]).apply(null,arguments)};var _FT_Get_PFR_Kerning=Module[\"_FT_Get_PFR_Kerning\"]=function(){return(_FT_Get_PFR_Kerning=Module[\"_FT_Get_PFR_Kerning\"]=Module[\"asm\"][\"FT_Get_PFR_Kerning\"]).apply(null,arguments)};var _FT_Get_PFR_Advance=Module[\"_FT_Get_PFR_Advance\"]=function(){return(_FT_Get_PFR_Advance=Module[\"_FT_Get_PFR_Advance\"]=Module[\"asm\"][\"FT_Get_PFR_Advance\"]).apply(null,arguments)};var _FT_Get_Sfnt_Name_Count=Module[\"_FT_Get_Sfnt_Name_Count\"]=function(){return(_FT_Get_Sfnt_Name_Count=Module[\"_FT_Get_Sfnt_Name_Count\"]=Module[\"asm\"][\"FT_Get_Sfnt_Name_Count\"]).apply(null,arguments)};var _FT_Get_Sfnt_Name=Module[\"_FT_Get_Sfnt_Name\"]=function(){return(_FT_Get_Sfnt_Name=Module[\"_FT_Get_Sfnt_Name\"]=Module[\"asm\"][\"FT_Get_Sfnt_Name\"]).apply(null,arguments)};var _FT_Stream_ReadAt=Module[\"_FT_Stream_ReadAt\"]=function(){return(_FT_Stream_ReadAt=Module[\"_FT_Stream_ReadAt\"]=Module[\"asm\"][\"FT_Stream_ReadAt\"]).apply(null,arguments)};var _FT_Stream_TryRead=Module[\"_FT_Stream_TryRead\"]=function(){return(_FT_Stream_TryRead=Module[\"_FT_Stream_TryRead\"]=Module[\"asm\"][\"FT_Stream_TryRead\"]).apply(null,arguments)};var _FT_Stream_ExtractFrame=Module[\"_FT_Stream_ExtractFrame\"]=function(){return(_FT_Stream_ExtractFrame=Module[\"_FT_Stream_ExtractFrame\"]=Module[\"asm\"][\"FT_Stream_ExtractFrame\"]).apply(null,arguments)};var _FT_Stream_ReleaseFrame=Module[\"_FT_Stream_ReleaseFrame\"]=function(){return(_FT_Stream_ReleaseFrame=Module[\"_FT_Stream_ReleaseFrame\"]=Module[\"asm\"][\"FT_Stream_ReleaseFrame\"]).apply(null,arguments)};var _FT_Stream_GetChar=Module[\"_FT_Stream_GetChar\"]=function(){return(_FT_Stream_GetChar=Module[\"_FT_Stream_GetChar\"]=Module[\"asm\"][\"FT_Stream_GetChar\"]).apply(null,arguments)};var _FT_Stream_GetUShort=Module[\"_FT_Stream_GetUShort\"]=function(){return(_FT_Stream_GetUShort=Module[\"_FT_Stream_GetUShort\"]=Module[\"asm\"][\"FT_Stream_GetUShort\"]).apply(null,arguments)};var _FT_Stream_GetUShortLE=Module[\"_FT_Stream_GetUShortLE\"]=function(){return(_FT_Stream_GetUShortLE=Module[\"_FT_Stream_GetUShortLE\"]=Module[\"asm\"][\"FT_Stream_GetUShortLE\"]).apply(null,arguments)};var _FT_Stream_GetUOffset=Module[\"_FT_Stream_GetUOffset\"]=function(){return(_FT_Stream_GetUOffset=Module[\"_FT_Stream_GetUOffset\"]=Module[\"asm\"][\"FT_Stream_GetUOffset\"]).apply(null,arguments)};var _FT_Stream_GetULong=Module[\"_FT_Stream_GetULong\"]=function(){return(_FT_Stream_GetULong=Module[\"_FT_Stream_GetULong\"]=Module[\"asm\"][\"FT_Stream_GetULong\"]).apply(null,arguments)};var _FT_Stream_GetULongLE=Module[\"_FT_Stream_GetULongLE\"]=function(){return(_FT_Stream_GetULongLE=Module[\"_FT_Stream_GetULongLE\"]=Module[\"asm\"][\"FT_Stream_GetULongLE\"]).apply(null,arguments)};var _FT_Stream_ReadChar=Module[\"_FT_Stream_ReadChar\"]=function(){return(_FT_Stream_ReadChar=Module[\"_FT_Stream_ReadChar\"]=Module[\"asm\"][\"FT_Stream_ReadChar\"]).apply(null,arguments)};var _FT_Stream_ReadUShortLE=Module[\"_FT_Stream_ReadUShortLE\"]=function(){return(_FT_Stream_ReadUShortLE=Module[\"_FT_Stream_ReadUShortLE\"]=Module[\"asm\"][\"FT_Stream_ReadUShortLE\"]).apply(null,arguments)};var _FT_Stream_ReadUOffset=Module[\"_FT_Stream_ReadUOffset\"]=function(){return(_FT_Stream_ReadUOffset=Module[\"_FT_Stream_ReadUOffset\"]=Module[\"asm\"][\"FT_Stream_ReadUOffset\"]).apply(null,arguments)};var _FT_Stream_ReadULongLE=Module[\"_FT_Stream_ReadULongLE\"]=function(){return(_FT_Stream_ReadULongLE=Module[\"_FT_Stream_ReadULongLE\"]=Module[\"asm\"][\"FT_Stream_ReadULongLE\"]).apply(null,arguments)};var _FT_Stream_ReadFields=Module[\"_FT_Stream_ReadFields\"]=function(){return(_FT_Stream_ReadFields=Module[\"_FT_Stream_ReadFields\"]=Module[\"asm\"][\"FT_Stream_ReadFields\"]).apply(null,arguments)};var _FT_Outline_GetInsideBorder=Module[\"_FT_Outline_GetInsideBorder\"]=function(){return(_FT_Outline_GetInsideBorder=Module[\"_FT_Outline_GetInsideBorder\"]=Module[\"asm\"][\"FT_Outline_GetInsideBorder\"]).apply(null,arguments)};var _FT_Outline_GetOutsideBorder=Module[\"_FT_Outline_GetOutsideBorder\"]=function(){return(_FT_Outline_GetOutsideBorder=Module[\"_FT_Outline_GetOutsideBorder\"]=Module[\"asm\"][\"FT_Outline_GetOutsideBorder\"]).apply(null,arguments)};var _FT_Stroker_New=Module[\"_FT_Stroker_New\"]=function(){return(_FT_Stroker_New=Module[\"_FT_Stroker_New\"]=Module[\"asm\"][\"FT_Stroker_New\"]).apply(null,arguments)};var _FT_Stroker_Set=Module[\"_FT_Stroker_Set\"]=function(){return(_FT_Stroker_Set=Module[\"_FT_Stroker_Set\"]=Module[\"asm\"][\"FT_Stroker_Set\"]).apply(null,arguments)};var _FT_Stroker_Rewind=Module[\"_FT_Stroker_Rewind\"]=function(){return(_FT_Stroker_Rewind=Module[\"_FT_Stroker_Rewind\"]=Module[\"asm\"][\"FT_Stroker_Rewind\"]).apply(null,arguments)};var _FT_Stroker_Done=Module[\"_FT_Stroker_Done\"]=function(){return(_FT_Stroker_Done=Module[\"_FT_Stroker_Done\"]=Module[\"asm\"][\"FT_Stroker_Done\"]).apply(null,arguments)};var _FT_Stroker_LineTo=Module[\"_FT_Stroker_LineTo\"]=function(){return(_FT_Stroker_LineTo=Module[\"_FT_Stroker_LineTo\"]=Module[\"asm\"][\"FT_Stroker_LineTo\"]).apply(null,arguments)};var _FT_Atan2=Module[\"_FT_Atan2\"]=function(){return(_FT_Atan2=Module[\"_FT_Atan2\"]=Module[\"asm\"][\"FT_Atan2\"]).apply(null,arguments)};var _FT_Vector_From_Polar=Module[\"_FT_Vector_From_Polar\"]=function(){return(_FT_Vector_From_Polar=Module[\"_FT_Vector_From_Polar\"]=Module[\"asm\"][\"FT_Vector_From_Polar\"]).apply(null,arguments)};var _FT_Angle_Diff=Module[\"_FT_Angle_Diff\"]=function(){return(_FT_Angle_Diff=Module[\"_FT_Angle_Diff\"]=Module[\"asm\"][\"FT_Angle_Diff\"]).apply(null,arguments)};var _FT_Stroker_ConicTo=Module[\"_FT_Stroker_ConicTo\"]=function(){return(_FT_Stroker_ConicTo=Module[\"_FT_Stroker_ConicTo\"]=Module[\"asm\"][\"FT_Stroker_ConicTo\"]).apply(null,arguments)};var _FT_Cos=Module[\"_FT_Cos\"]=function(){return(_FT_Cos=Module[\"_FT_Cos\"]=Module[\"asm\"][\"FT_Cos\"]).apply(null,arguments)};var _FT_Sin=Module[\"_FT_Sin\"]=function(){return(_FT_Sin=Module[\"_FT_Sin\"]=Module[\"asm\"][\"FT_Sin\"]).apply(null,arguments)};var _FT_Stroker_CubicTo=Module[\"_FT_Stroker_CubicTo\"]=function(){return(_FT_Stroker_CubicTo=Module[\"_FT_Stroker_CubicTo\"]=Module[\"asm\"][\"FT_Stroker_CubicTo\"]).apply(null,arguments)};var _FT_Stroker_BeginSubPath=Module[\"_FT_Stroker_BeginSubPath\"]=function(){return(_FT_Stroker_BeginSubPath=Module[\"_FT_Stroker_BeginSubPath\"]=Module[\"asm\"][\"FT_Stroker_BeginSubPath\"]).apply(null,arguments)};var _FT_Stroker_EndSubPath=Module[\"_FT_Stroker_EndSubPath\"]=function(){return(_FT_Stroker_EndSubPath=Module[\"_FT_Stroker_EndSubPath\"]=Module[\"asm\"][\"FT_Stroker_EndSubPath\"]).apply(null,arguments)};var _FT_Tan=Module[\"_FT_Tan\"]=function(){return(_FT_Tan=Module[\"_FT_Tan\"]=Module[\"asm\"][\"FT_Tan\"]).apply(null,arguments)};var _FT_Stroker_GetBorderCounts=Module[\"_FT_Stroker_GetBorderCounts\"]=function(){return(_FT_Stroker_GetBorderCounts=Module[\"_FT_Stroker_GetBorderCounts\"]=Module[\"asm\"][\"FT_Stroker_GetBorderCounts\"]).apply(null,arguments)};var _FT_Stroker_GetCounts=Module[\"_FT_Stroker_GetCounts\"]=function(){return(_FT_Stroker_GetCounts=Module[\"_FT_Stroker_GetCounts\"]=Module[\"asm\"][\"FT_Stroker_GetCounts\"]).apply(null,arguments)};var _FT_Stroker_ExportBorder=Module[\"_FT_Stroker_ExportBorder\"]=function(){return(_FT_Stroker_ExportBorder=Module[\"_FT_Stroker_ExportBorder\"]=Module[\"asm\"][\"FT_Stroker_ExportBorder\"]).apply(null,arguments)};var _FT_Stroker_Export=Module[\"_FT_Stroker_Export\"]=function(){return(_FT_Stroker_Export=Module[\"_FT_Stroker_Export\"]=Module[\"asm\"][\"FT_Stroker_Export\"]).apply(null,arguments)};var _FT_Stroker_ParseOutline=Module[\"_FT_Stroker_ParseOutline\"]=function(){return(_FT_Stroker_ParseOutline=Module[\"_FT_Stroker_ParseOutline\"]=Module[\"asm\"][\"FT_Stroker_ParseOutline\"]).apply(null,arguments)};var _FT_Glyph_Stroke=Module[\"_FT_Glyph_Stroke\"]=function(){return(_FT_Glyph_Stroke=Module[\"_FT_Glyph_Stroke\"]=Module[\"asm\"][\"FT_Glyph_Stroke\"]).apply(null,arguments)};var _FT_Glyph_StrokeBorder=Module[\"_FT_Glyph_StrokeBorder\"]=function(){return(_FT_Glyph_StrokeBorder=Module[\"_FT_Glyph_StrokeBorder\"]=Module[\"asm\"][\"FT_Glyph_StrokeBorder\"]).apply(null,arguments)};var _FT_GlyphSlot_Oblique=Module[\"_FT_GlyphSlot_Oblique\"]=function(){return(_FT_GlyphSlot_Oblique=Module[\"_FT_GlyphSlot_Oblique\"]=Module[\"asm\"][\"FT_GlyphSlot_Oblique\"]).apply(null,arguments)};var _FT_GlyphSlot_Embolden=Module[\"_FT_GlyphSlot_Embolden\"]=function(){return(_FT_GlyphSlot_Embolden=Module[\"_FT_GlyphSlot_Embolden\"]=Module[\"asm\"][\"FT_GlyphSlot_Embolden\"]).apply(null,arguments)};var _fseek=Module[\"_fseek\"]=function(){return(_fseek=Module[\"_fseek\"]=Module[\"asm\"][\"fseek\"]).apply(null,arguments)};var _FT_Vector_Unit=Module[\"_FT_Vector_Unit\"]=function(){return(_FT_Vector_Unit=Module[\"_FT_Vector_Unit\"]=Module[\"asm\"][\"FT_Vector_Unit\"]).apply(null,arguments)};var _FT_Vector_Rotate=Module[\"_FT_Vector_Rotate\"]=function(){return(_FT_Vector_Rotate=Module[\"_FT_Vector_Rotate\"]=Module[\"asm\"][\"FT_Vector_Rotate\"]).apply(null,arguments)};var _FT_Vector_Polarize=Module[\"_FT_Vector_Polarize\"]=function(){return(_FT_Vector_Polarize=Module[\"_FT_Vector_Polarize\"]=Module[\"asm\"][\"FT_Vector_Polarize\"]).apply(null,arguments)};var _FT_Get_PS_Font_Info=Module[\"_FT_Get_PS_Font_Info\"]=function(){return(_FT_Get_PS_Font_Info=Module[\"_FT_Get_PS_Font_Info\"]=Module[\"asm\"][\"FT_Get_PS_Font_Info\"]).apply(null,arguments)};var _FT_Has_PS_Glyph_Names=Module[\"_FT_Has_PS_Glyph_Names\"]=function(){return(_FT_Has_PS_Glyph_Names=Module[\"_FT_Has_PS_Glyph_Names\"]=Module[\"asm\"][\"FT_Has_PS_Glyph_Names\"]).apply(null,arguments)};var _FT_Get_PS_Font_Private=Module[\"_FT_Get_PS_Font_Private\"]=function(){return(_FT_Get_PS_Font_Private=Module[\"_FT_Get_PS_Font_Private\"]=Module[\"asm\"][\"FT_Get_PS_Font_Private\"]).apply(null,arguments)};var _FT_Get_PS_Font_Value=Module[\"_FT_Get_PS_Font_Value\"]=function(){return(_FT_Get_PS_Font_Value=Module[\"_FT_Get_PS_Font_Value\"]=Module[\"asm\"][\"FT_Get_PS_Font_Value\"]).apply(null,arguments)};var _ft_mem_dup=Module[\"_ft_mem_dup\"]=function(){return(_ft_mem_dup=Module[\"_ft_mem_dup\"]=Module[\"asm\"][\"ft_mem_dup\"]).apply(null,arguments)};var _ft_mem_strdup=Module[\"_ft_mem_strdup\"]=function(){return(_ft_mem_strdup=Module[\"_ft_mem_strdup\"]=Module[\"asm\"][\"ft_mem_strdup\"]).apply(null,arguments)};var _ft_mem_strcpyn=Module[\"_ft_mem_strcpyn\"]=function(){return(_ft_mem_strcpyn=Module[\"_ft_mem_strcpyn\"]=Module[\"asm\"][\"ft_mem_strcpyn\"]).apply(null,arguments)};var _FT_List_Insert=Module[\"_FT_List_Insert\"]=function(){return(_FT_List_Insert=Module[\"_FT_List_Insert\"]=Module[\"asm\"][\"FT_List_Insert\"]).apply(null,arguments)};var _FT_List_Iterate=Module[\"_FT_List_Iterate\"]=function(){return(_FT_List_Iterate=Module[\"_FT_List_Iterate\"]=Module[\"asm\"][\"FT_List_Iterate\"]).apply(null,arguments)};var _FT_Get_WinFNT_Header=Module[\"_FT_Get_WinFNT_Header\"]=function(){return(_FT_Get_WinFNT_Header=Module[\"_FT_Get_WinFNT_Header\"]=Module[\"asm\"][\"FT_Get_WinFNT_Header\"]).apply(null,arguments)};var _FT_Stream_OpenBzip2=Module[\"_FT_Stream_OpenBzip2\"]=function(){return(_FT_Stream_OpenBzip2=Module[\"_FT_Stream_OpenBzip2\"]=Module[\"asm\"][\"FT_Stream_OpenBzip2\"]).apply(null,arguments)};var _FTC_Manager_LookupSize=Module[\"_FTC_Manager_LookupSize\"]=function(){return(_FTC_Manager_LookupSize=Module[\"_FTC_Manager_LookupSize\"]=Module[\"asm\"][\"FTC_Manager_LookupSize\"]).apply(null,arguments)};var _FTC_Manager_LookupFace=Module[\"_FTC_Manager_LookupFace\"]=function(){return(_FTC_Manager_LookupFace=Module[\"_FTC_Manager_LookupFace\"]=Module[\"asm\"][\"FTC_Manager_LookupFace\"]).apply(null,arguments)};var _FTC_Manager_New=Module[\"_FTC_Manager_New\"]=function(){return(_FTC_Manager_New=Module[\"_FTC_Manager_New\"]=Module[\"asm\"][\"FTC_Manager_New\"]).apply(null,arguments)};var _FTC_Manager_Done=Module[\"_FTC_Manager_Done\"]=function(){return(_FTC_Manager_Done=Module[\"_FTC_Manager_Done\"]=Module[\"asm\"][\"FTC_Manager_Done\"]).apply(null,arguments)};var _FTC_Manager_Reset=Module[\"_FTC_Manager_Reset\"]=function(){return(_FTC_Manager_Reset=Module[\"_FTC_Manager_Reset\"]=Module[\"asm\"][\"FTC_Manager_Reset\"]).apply(null,arguments)};var _FTC_Manager_RemoveFaceID=Module[\"_FTC_Manager_RemoveFaceID\"]=function(){return(_FTC_Manager_RemoveFaceID=Module[\"_FTC_Manager_RemoveFaceID\"]=Module[\"asm\"][\"FTC_Manager_RemoveFaceID\"]).apply(null,arguments)};var _FTC_Node_Unref=Module[\"_FTC_Node_Unref\"]=function(){return(_FTC_Node_Unref=Module[\"_FTC_Node_Unref\"]=Module[\"asm\"][\"FTC_Node_Unref\"]).apply(null,arguments)};var _FTC_CMapCache_New=Module[\"_FTC_CMapCache_New\"]=function(){return(_FTC_CMapCache_New=Module[\"_FTC_CMapCache_New\"]=Module[\"asm\"][\"FTC_CMapCache_New\"]).apply(null,arguments)};var _FTC_CMapCache_Lookup=Module[\"_FTC_CMapCache_Lookup\"]=function(){return(_FTC_CMapCache_Lookup=Module[\"_FTC_CMapCache_Lookup\"]=Module[\"asm\"][\"FTC_CMapCache_Lookup\"]).apply(null,arguments)};var _FTC_ImageCache_New=Module[\"_FTC_ImageCache_New\"]=function(){return(_FTC_ImageCache_New=Module[\"_FTC_ImageCache_New\"]=Module[\"asm\"][\"FTC_ImageCache_New\"]).apply(null,arguments)};var _FTC_ImageCache_Lookup=Module[\"_FTC_ImageCache_Lookup\"]=function(){return(_FTC_ImageCache_Lookup=Module[\"_FTC_ImageCache_Lookup\"]=Module[\"asm\"][\"FTC_ImageCache_Lookup\"]).apply(null,arguments)};var _FTC_ImageCache_LookupScaler=Module[\"_FTC_ImageCache_LookupScaler\"]=function(){return(_FTC_ImageCache_LookupScaler=Module[\"_FTC_ImageCache_LookupScaler\"]=Module[\"asm\"][\"FTC_ImageCache_LookupScaler\"]).apply(null,arguments)};var _FTC_SBitCache_New=Module[\"_FTC_SBitCache_New\"]=function(){return(_FTC_SBitCache_New=Module[\"_FTC_SBitCache_New\"]=Module[\"asm\"][\"FTC_SBitCache_New\"]).apply(null,arguments)};var _FTC_SBitCache_Lookup=Module[\"_FTC_SBitCache_Lookup\"]=function(){return(_FTC_SBitCache_Lookup=Module[\"_FTC_SBitCache_Lookup\"]=Module[\"asm\"][\"FTC_SBitCache_Lookup\"]).apply(null,arguments)};var _FTC_SBitCache_LookupScaler=Module[\"_FTC_SBitCache_LookupScaler\"]=function(){return(_FTC_SBitCache_LookupScaler=Module[\"_FTC_SBitCache_LookupScaler\"]=Module[\"asm\"][\"FTC_SBitCache_LookupScaler\"]).apply(null,arguments)};var _atol=Module[\"_atol\"]=function(){return(_atol=Module[\"_atol\"]=Module[\"asm\"][\"atol\"]).apply(null,arguments)};var _FT_Stream_OpenGzip=Module[\"_FT_Stream_OpenGzip\"]=function(){return(_FT_Stream_OpenGzip=Module[\"_FT_Stream_OpenGzip\"]=Module[\"asm\"][\"FT_Stream_OpenGzip\"]).apply(null,arguments)};var _FT_Gzip_Uncompress=Module[\"_FT_Gzip_Uncompress\"]=function(){return(_FT_Gzip_Uncompress=Module[\"_FT_Gzip_Uncompress\"]=Module[\"asm\"][\"FT_Gzip_Uncompress\"]).apply(null,arguments)};var _FT_Stream_OpenLZW=Module[\"_FT_Stream_OpenLZW\"]=function(){return(_FT_Stream_OpenLZW=Module[\"_FT_Stream_OpenLZW\"]=Module[\"asm\"][\"FT_Stream_OpenLZW\"]).apply(null,arguments)};var _ft_lzwstate_io=Module[\"_ft_lzwstate_io\"]=function(){return(_ft_lzwstate_io=Module[\"_ft_lzwstate_io\"]=Module[\"asm\"][\"ft_lzwstate_io\"]).apply(null,arguments)};var _ft_lzwstate_reset=Module[\"_ft_lzwstate_reset\"]=function(){return(_ft_lzwstate_reset=Module[\"_ft_lzwstate_reset\"]=Module[\"asm\"][\"ft_lzwstate_reset\"]).apply(null,arguments)};var _ft_lzwstate_init=Module[\"_ft_lzwstate_init\"]=function(){return(_ft_lzwstate_init=Module[\"_ft_lzwstate_init\"]=Module[\"asm\"][\"ft_lzwstate_init\"]).apply(null,arguments)};var _ft_lzwstate_done=Module[\"_ft_lzwstate_done\"]=function(){return(_ft_lzwstate_done=Module[\"_ft_lzwstate_done\"]=Module[\"asm\"][\"ft_lzwstate_done\"]).apply(null,arguments)};var _ps_hints_apply=Module[\"_ps_hints_apply\"]=function(){return(_ps_hints_apply=Module[\"_ps_hints_apply\"]=Module[\"asm\"][\"ps_hints_apply\"]).apply(null,arguments)};var _TT_New_Context=Module[\"_TT_New_Context\"]=function(){return(_TT_New_Context=Module[\"_TT_New_Context\"]=Module[\"asm\"][\"TT_New_Context\"]).apply(null,arguments)};var _TT_RunIns=Module[\"_TT_RunIns\"]=function(){return(_TT_RunIns=Module[\"_TT_RunIns\"]=Module[\"asm\"][\"TT_RunIns\"]).apply(null,arguments)};var _emscripten_GetProcAddress=Module[\"_emscripten_GetProcAddress\"]=function(){return(_emscripten_GetProcAddress=Module[\"_emscripten_GetProcAddress\"]=Module[\"asm\"][\"emscripten_GetProcAddress\"]).apply(null,arguments)};var _emscripten_webgl1_get_proc_address=Module[\"_emscripten_webgl1_get_proc_address\"]=function(){return(_emscripten_webgl1_get_proc_address=Module[\"_emscripten_webgl1_get_proc_address\"]=Module[\"asm\"][\"emscripten_webgl1_get_proc_address\"]).apply(null,arguments)};var __webgl1_match_ext_proc_address_without_suffix=Module[\"__webgl1_match_ext_proc_address_without_suffix\"]=function(){return(__webgl1_match_ext_proc_address_without_suffix=Module[\"__webgl1_match_ext_proc_address_without_suffix\"]=Module[\"asm\"][\"_webgl1_match_ext_proc_address_without_suffix\"]).apply(null,arguments)};var _emscripten_webgl_get_proc_address=Module[\"_emscripten_webgl_get_proc_address\"]=function(){return(_emscripten_webgl_get_proc_address=Module[\"_emscripten_webgl_get_proc_address\"]=Module[\"asm\"][\"emscripten_webgl_get_proc_address\"]).apply(null,arguments)};var _SDL_GL_GetProcAddress=Module[\"_SDL_GL_GetProcAddress\"]=function(){return(_SDL_GL_GetProcAddress=Module[\"_SDL_GL_GetProcAddress\"]=Module[\"asm\"][\"SDL_GL_GetProcAddress\"]).apply(null,arguments)};var _eglGetProcAddress=Module[\"_eglGetProcAddress\"]=function(){return(_eglGetProcAddress=Module[\"_eglGetProcAddress\"]=Module[\"asm\"][\"eglGetProcAddress\"]).apply(null,arguments)};var _glfwGetProcAddress=Module[\"_glfwGetProcAddress\"]=function(){return(_glfwGetProcAddress=Module[\"_glfwGetProcAddress\"]=Module[\"asm\"][\"glfwGetProcAddress\"]).apply(null,arguments)};var _alcGetProcAddress=Module[\"_alcGetProcAddress\"]=function(){return(_alcGetProcAddress=Module[\"_alcGetProcAddress\"]=Module[\"asm\"][\"alcGetProcAddress\"]).apply(null,arguments)};var _alGetProcAddress=Module[\"_alGetProcAddress\"]=function(){return(_alGetProcAddress=Module[\"_alGetProcAddress\"]=Module[\"asm\"][\"alGetProcAddress\"]).apply(null,arguments)};var _emscripten_compute_dom_pk_code=Module[\"_emscripten_compute_dom_pk_code\"]=function(){return(_emscripten_compute_dom_pk_code=Module[\"_emscripten_compute_dom_pk_code\"]=Module[\"asm\"][\"emscripten_compute_dom_pk_code\"]).apply(null,arguments)};var _emscripten_dom_pk_code_to_string=Module[\"_emscripten_dom_pk_code_to_string\"]=function(){return(_emscripten_dom_pk_code_to_string=Module[\"_emscripten_dom_pk_code_to_string\"]=Module[\"asm\"][\"emscripten_dom_pk_code_to_string\"]).apply(null,arguments)};var _emscripten_dom_vk_to_string=Module[\"_emscripten_dom_vk_to_string\"]=function(){return(_emscripten_dom_vk_to_string=Module[\"_emscripten_dom_vk_to_string\"]=Module[\"asm\"][\"emscripten_dom_vk_to_string\"]).apply(null,arguments)};var _fesetround=Module[\"_fesetround\"]=function(){return(_fesetround=Module[\"_fesetround\"]=Module[\"asm\"][\"fesetround\"]).apply(null,arguments)};var ___fesetround=Module[\"___fesetround\"]=function(){return(___fesetround=Module[\"___fesetround\"]=Module[\"asm\"][\"__fesetround\"]).apply(null,arguments)};var _fesetexceptflag=Module[\"_fesetexceptflag\"]=function(){return(_fesetexceptflag=Module[\"_fesetexceptflag\"]=Module[\"asm\"][\"fesetexceptflag\"]).apply(null,arguments)};var _feclearexcept=Module[\"_feclearexcept\"]=function(){return(_feclearexcept=Module[\"_feclearexcept\"]=Module[\"asm\"][\"feclearexcept\"]).apply(null,arguments)};var _feraiseexcept=Module[\"_feraiseexcept\"]=function(){return(_feraiseexcept=Module[\"_feraiseexcept\"]=Module[\"asm\"][\"feraiseexcept\"]).apply(null,arguments)};var _fegetexceptflag=Module[\"_fegetexceptflag\"]=function(){return(_fegetexceptflag=Module[\"_fegetexceptflag\"]=Module[\"asm\"][\"fegetexceptflag\"]).apply(null,arguments)};var _fetestexcept=Module[\"_fetestexcept\"]=function(){return(_fetestexcept=Module[\"_fetestexcept\"]=Module[\"asm\"][\"fetestexcept\"]).apply(null,arguments)};var _feholdexcept=Module[\"_feholdexcept\"]=function(){return(_feholdexcept=Module[\"_feholdexcept\"]=Module[\"asm\"][\"feholdexcept\"]).apply(null,arguments)};var _fegetenv=Module[\"_fegetenv\"]=function(){return(_fegetenv=Module[\"_fegetenv\"]=Module[\"asm\"][\"fegetenv\"]).apply(null,arguments)};var _feupdateenv=Module[\"_feupdateenv\"]=function(){return(_feupdateenv=Module[\"_feupdateenv\"]=Module[\"asm\"][\"feupdateenv\"]).apply(null,arguments)};var _fesetenv=Module[\"_fesetenv\"]=function(){return(_fesetenv=Module[\"_fesetenv\"]=Module[\"asm\"][\"fesetenv\"]).apply(null,arguments)};var ___flt_rounds=Module[\"___flt_rounds\"]=function(){return(___flt_rounds=Module[\"___flt_rounds\"]=Module[\"asm\"][\"__flt_rounds\"]).apply(null,arguments)};var _fegetround=Module[\"_fegetround\"]=function(){return(_fegetround=Module[\"_fegetround\"]=Module[\"asm\"][\"fegetround\"]).apply(null,arguments)};var _posix_spawnattr_getsigmask=Module[\"_posix_spawnattr_getsigmask\"]=function(){return(_posix_spawnattr_getsigmask=Module[\"_posix_spawnattr_getsigmask\"]=Module[\"asm\"][\"posix_spawnattr_getsigmask\"]).apply(null,arguments)};var ___execvpe=Module[\"___execvpe\"]=function(){return(___execvpe=Module[\"___execvpe\"]=Module[\"asm\"][\"__execvpe\"]).apply(null,arguments)};var _execlp=Module[\"_execlp\"]=function(){return(_execlp=Module[\"_execlp\"]=Module[\"asm\"][\"execlp\"]).apply(null,arguments)};var _execvp=Module[\"_execvp\"]=function(){return(_execvp=Module[\"_execvp\"]=Module[\"asm\"][\"execvp\"]).apply(null,arguments)};var _execle=Module[\"_execle\"]=function(){return(_execle=Module[\"_execle\"]=Module[\"asm\"][\"execle\"]).apply(null,arguments)};var ___procfdname=Module[\"___procfdname\"]=function(){return(___procfdname=Module[\"___procfdname\"]=Module[\"asm\"][\"__procfdname\"]).apply(null,arguments)};var _posix_spawnattr_getsigdefault=Module[\"_posix_spawnattr_getsigdefault\"]=function(){return(_posix_spawnattr_getsigdefault=Module[\"_posix_spawnattr_getsigdefault\"]=Module[\"asm\"][\"posix_spawnattr_getsigdefault\"]).apply(null,arguments)};var _posix_spawnattr_setsigdefault=Module[\"_posix_spawnattr_setsigdefault\"]=function(){return(_posix_spawnattr_setsigdefault=Module[\"_posix_spawnattr_setsigdefault\"]=Module[\"asm\"][\"posix_spawnattr_setsigdefault\"]).apply(null,arguments)};var _strnlen=Module[\"_strnlen\"]=function(){return(_strnlen=Module[\"_strnlen\"]=Module[\"asm\"][\"strnlen\"]).apply(null,arguments)};var _execvpe=Module[\"_execvpe\"]=function(){return(_execvpe=Module[\"_execvpe\"]=Module[\"asm\"][\"execvpe\"]).apply(null,arguments)};var ___syscall_ret=Module[\"___syscall_ret\"]=function(){return(___syscall_ret=Module[\"___syscall_ret\"]=Module[\"asm\"][\"__syscall_ret\"]).apply(null,arguments)};var _posix_spawnattr_getschedparam=Module[\"_posix_spawnattr_getschedparam\"]=function(){return(_posix_spawnattr_getschedparam=Module[\"_posix_spawnattr_getschedparam\"]=Module[\"asm\"][\"posix_spawnattr_getschedparam\"]).apply(null,arguments)};var _posix_spawnattr_getschedpolicy=Module[\"_posix_spawnattr_getschedpolicy\"]=function(){return(_posix_spawnattr_getschedpolicy=Module[\"_posix_spawnattr_getschedpolicy\"]=Module[\"asm\"][\"posix_spawnattr_getschedpolicy\"]).apply(null,arguments)};var _posix_spawnattr_getflags=Module[\"_posix_spawnattr_getflags\"]=function(){return(_posix_spawnattr_getflags=Module[\"_posix_spawnattr_getflags\"]=Module[\"asm\"][\"posix_spawnattr_getflags\"]).apply(null,arguments)};var _execl=Module[\"_execl\"]=function(){return(_execl=Module[\"_execl\"]=Module[\"asm\"][\"execl\"]).apply(null,arguments)};var _posix_spawnattr_setsigmask=Module[\"_posix_spawnattr_setsigmask\"]=function(){return(_posix_spawnattr_setsigmask=Module[\"_posix_spawnattr_setsigmask\"]=Module[\"asm\"][\"posix_spawnattr_setsigmask\"]).apply(null,arguments)};var _posix_spawnattr_getpgroup=Module[\"_posix_spawnattr_getpgroup\"]=function(){return(_posix_spawnattr_getpgroup=Module[\"_posix_spawnattr_getpgroup\"]=Module[\"asm\"][\"posix_spawnattr_getpgroup\"]).apply(null,arguments)};var _cfgetospeed=Module[\"_cfgetospeed\"]=function(){return(_cfgetospeed=Module[\"_cfgetospeed\"]=Module[\"asm\"][\"cfgetospeed\"]).apply(null,arguments)};var _cfgetispeed=Module[\"_cfgetispeed\"]=function(){return(_cfgetispeed=Module[\"_cfgetispeed\"]=Module[\"asm\"][\"cfgetispeed\"]).apply(null,arguments)};var _tcsendbreak=Module[\"_tcsendbreak\"]=function(){return(_tcsendbreak=Module[\"_tcsendbreak\"]=Module[\"asm\"][\"tcsendbreak\"]).apply(null,arguments)};var _tcdrain=Module[\"_tcdrain\"]=function(){return(_tcdrain=Module[\"_tcdrain\"]=Module[\"asm\"][\"tcdrain\"]).apply(null,arguments)};var _tcflush=Module[\"_tcflush\"]=function(){return(_tcflush=Module[\"_tcflush\"]=Module[\"asm\"][\"tcflush\"]).apply(null,arguments)};var _tcgetsid=Module[\"_tcgetsid\"]=function(){return(_tcgetsid=Module[\"_tcgetsid\"]=Module[\"asm\"][\"tcgetsid\"]).apply(null,arguments)};var _cfmakeraw=Module[\"_cfmakeraw\"]=function(){return(_cfmakeraw=Module[\"_cfmakeraw\"]=Module[\"asm\"][\"cfmakeraw\"]).apply(null,arguments)};var _tcflow=Module[\"_tcflow\"]=function(){return(_tcflow=Module[\"_tcflow\"]=Module[\"asm\"][\"tcflow\"]).apply(null,arguments)};var _tcgetattr=Module[\"_tcgetattr\"]=function(){return(_tcgetattr=Module[\"_tcgetattr\"]=Module[\"asm\"][\"tcgetattr\"]).apply(null,arguments)};var _tcsetattr=Module[\"_tcsetattr\"]=function(){return(_tcsetattr=Module[\"_tcsetattr\"]=Module[\"asm\"][\"tcsetattr\"]).apply(null,arguments)};var _cfsetospeed=Module[\"_cfsetospeed\"]=function(){return(_cfsetospeed=Module[\"_cfsetospeed\"]=Module[\"asm\"][\"cfsetospeed\"]).apply(null,arguments)};var _cfsetispeed=Module[\"_cfsetispeed\"]=function(){return(_cfsetispeed=Module[\"_cfsetispeed\"]=Module[\"asm\"][\"cfsetispeed\"]).apply(null,arguments)};var _cfsetspeed=Module[\"_cfsetspeed\"]=function(){return(_cfsetspeed=Module[\"_cfsetspeed\"]=Module[\"asm\"][\"cfsetspeed\"]).apply(null,arguments)};var _openat=Module[\"_openat\"]=function(){return(_openat=Module[\"_openat\"]=Module[\"asm\"][\"openat\"]).apply(null,arguments)};var _openat64=Module[\"_openat64\"]=function(){return(_openat64=Module[\"_openat64\"]=Module[\"asm\"][\"openat64\"]).apply(null,arguments)};var _creat=Module[\"_creat\"]=function(){return(_creat=Module[\"_creat\"]=Module[\"asm\"][\"creat\"]).apply(null,arguments)};var _creat64=Module[\"_creat64\"]=function(){return(_creat64=Module[\"_creat64\"]=Module[\"asm\"][\"creat64\"]).apply(null,arguments)};var _posix_fadvise64=Module[\"_posix_fadvise64\"]=function(){return(_posix_fadvise64=Module[\"_posix_fadvise64\"]=Module[\"asm\"][\"posix_fadvise64\"]).apply(null,arguments)};var _posix_fallocate64=Module[\"_posix_fallocate64\"]=function(){return(_posix_fallocate64=Module[\"_posix_fallocate64\"]=Module[\"asm\"][\"posix_fallocate64\"]).apply(null,arguments)};var _open64=Module[\"_open64\"]=function(){return(_open64=Module[\"_open64\"]=Module[\"asm\"][\"open64\"]).apply(null,arguments)};var _get_nprocs_conf=Module[\"_get_nprocs_conf\"]=function(){return(_get_nprocs_conf=Module[\"_get_nprocs_conf\"]=Module[\"asm\"][\"get_nprocs_conf\"]).apply(null,arguments)};var _get_nprocs=Module[\"_get_nprocs\"]=function(){return(_get_nprocs=Module[\"_get_nprocs\"]=Module[\"asm\"][\"get_nprocs\"]).apply(null,arguments)};var _get_phys_pages=Module[\"_get_phys_pages\"]=function(){return(_get_phys_pages=Module[\"_get_phys_pages\"]=Module[\"asm\"][\"get_phys_pages\"]).apply(null,arguments)};var _get_avphys_pages=Module[\"_get_avphys_pages\"]=function(){return(_get_avphys_pages=Module[\"_get_avphys_pages\"]=Module[\"asm\"][\"get_avphys_pages\"]).apply(null,arguments)};var _emscripten_num_logical_cores=Module[\"_emscripten_num_logical_cores\"]=function(){return(_emscripten_num_logical_cores=Module[\"_emscripten_num_logical_cores\"]=Module[\"asm\"][\"emscripten_num_logical_cores\"]).apply(null,arguments)};var _towupper=Module[\"_towupper\"]=function(){return(_towupper=Module[\"_towupper\"]=Module[\"asm\"][\"towupper\"]).apply(null,arguments)};var _iswalpha=Module[\"_iswalpha\"]=function(){return(_iswalpha=Module[\"_iswalpha\"]=Module[\"asm\"][\"iswalpha\"]).apply(null,arguments)};var _towlower=Module[\"_towlower\"]=function(){return(_towlower=Module[\"_towlower\"]=Module[\"asm\"][\"towlower\"]).apply(null,arguments)};var ___towupper_l=Module[\"___towupper_l\"]=function(){return(___towupper_l=Module[\"___towupper_l\"]=Module[\"asm\"][\"__towupper_l\"]).apply(null,arguments)};var ___towlower_l=Module[\"___towlower_l\"]=function(){return(___towlower_l=Module[\"___towlower_l\"]=Module[\"asm\"][\"__towlower_l\"]).apply(null,arguments)};var _towupper_l=Module[\"_towupper_l\"]=function(){return(_towupper_l=Module[\"_towupper_l\"]=Module[\"asm\"][\"towupper_l\"]).apply(null,arguments)};var _towlower_l=Module[\"_towlower_l\"]=function(){return(_towlower_l=Module[\"_towlower_l\"]=Module[\"asm\"][\"towlower_l\"]).apply(null,arguments)};var _isgraph=Module[\"_isgraph\"]=function(){return(_isgraph=Module[\"_isgraph\"]=Module[\"asm\"][\"isgraph\"]).apply(null,arguments)};var ___isgraph_l=Module[\"___isgraph_l\"]=function(){return(___isgraph_l=Module[\"___isgraph_l\"]=Module[\"asm\"][\"__isgraph_l\"]).apply(null,arguments)};var _isgraph_l=Module[\"_isgraph_l\"]=function(){return(_isgraph_l=Module[\"_isgraph_l\"]=Module[\"asm\"][\"isgraph_l\"]).apply(null,arguments)};var _iswctype=Module[\"_iswctype\"]=function(){return(_iswctype=Module[\"_iswctype\"]=Module[\"asm\"][\"iswctype\"]).apply(null,arguments)};var _iswalnum=Module[\"_iswalnum\"]=function(){return(_iswalnum=Module[\"_iswalnum\"]=Module[\"asm\"][\"iswalnum\"]).apply(null,arguments)};var _iswblank=Module[\"_iswblank\"]=function(){return(_iswblank=Module[\"_iswblank\"]=Module[\"asm\"][\"iswblank\"]).apply(null,arguments)};var _iswcntrl=Module[\"_iswcntrl\"]=function(){return(_iswcntrl=Module[\"_iswcntrl\"]=Module[\"asm\"][\"iswcntrl\"]).apply(null,arguments)};var _iswdigit=Module[\"_iswdigit\"]=function(){return(_iswdigit=Module[\"_iswdigit\"]=Module[\"asm\"][\"iswdigit\"]).apply(null,arguments)};var _iswgraph=Module[\"_iswgraph\"]=function(){return(_iswgraph=Module[\"_iswgraph\"]=Module[\"asm\"][\"iswgraph\"]).apply(null,arguments)};var _iswlower=Module[\"_iswlower\"]=function(){return(_iswlower=Module[\"_iswlower\"]=Module[\"asm\"][\"iswlower\"]).apply(null,arguments)};var _iswprint=Module[\"_iswprint\"]=function(){return(_iswprint=Module[\"_iswprint\"]=Module[\"asm\"][\"iswprint\"]).apply(null,arguments)};var _iswpunct=Module[\"_iswpunct\"]=function(){return(_iswpunct=Module[\"_iswpunct\"]=Module[\"asm\"][\"iswpunct\"]).apply(null,arguments)};var _iswspace=Module[\"_iswspace\"]=function(){return(_iswspace=Module[\"_iswspace\"]=Module[\"asm\"][\"iswspace\"]).apply(null,arguments)};var _iswupper=Module[\"_iswupper\"]=function(){return(_iswupper=Module[\"_iswupper\"]=Module[\"asm\"][\"iswupper\"]).apply(null,arguments)};var _iswxdigit=Module[\"_iswxdigit\"]=function(){return(_iswxdigit=Module[\"_iswxdigit\"]=Module[\"asm\"][\"iswxdigit\"]).apply(null,arguments)};var _wctype=Module[\"_wctype\"]=function(){return(_wctype=Module[\"_wctype\"]=Module[\"asm\"][\"wctype\"]).apply(null,arguments)};var ___iswctype_l=Module[\"___iswctype_l\"]=function(){return(___iswctype_l=Module[\"___iswctype_l\"]=Module[\"asm\"][\"__iswctype_l\"]).apply(null,arguments)};var ___wctype_l=Module[\"___wctype_l\"]=function(){return(___wctype_l=Module[\"___wctype_l\"]=Module[\"asm\"][\"__wctype_l\"]).apply(null,arguments)};var _iswctype_l=Module[\"_iswctype_l\"]=function(){return(_iswctype_l=Module[\"_iswctype_l\"]=Module[\"asm\"][\"iswctype_l\"]).apply(null,arguments)};var _wctype_l=Module[\"_wctype_l\"]=function(){return(_wctype_l=Module[\"_wctype_l\"]=Module[\"asm\"][\"wctype_l\"]).apply(null,arguments)};var ___ctype_b_loc=Module[\"___ctype_b_loc\"]=function(){return(___ctype_b_loc=Module[\"___ctype_b_loc\"]=Module[\"asm\"][\"__ctype_b_loc\"]).apply(null,arguments)};var _isalpha=Module[\"_isalpha\"]=function(){return(_isalpha=Module[\"_isalpha\"]=Module[\"asm\"][\"isalpha\"]).apply(null,arguments)};var ___isalpha_l=Module[\"___isalpha_l\"]=function(){return(___isalpha_l=Module[\"___isalpha_l\"]=Module[\"asm\"][\"__isalpha_l\"]).apply(null,arguments)};var _isalpha_l=Module[\"_isalpha_l\"]=function(){return(_isalpha_l=Module[\"_isalpha_l\"]=Module[\"asm\"][\"isalpha_l\"]).apply(null,arguments)};var ___iswdigit_l=Module[\"___iswdigit_l\"]=function(){return(___iswdigit_l=Module[\"___iswdigit_l\"]=Module[\"asm\"][\"__iswdigit_l\"]).apply(null,arguments)};var _iswdigit_l=Module[\"_iswdigit_l\"]=function(){return(_iswdigit_l=Module[\"_iswdigit_l\"]=Module[\"asm\"][\"iswdigit_l\"]).apply(null,arguments)};var ___ctype_get_mb_cur_max=Module[\"___ctype_get_mb_cur_max\"]=function(){return(___ctype_get_mb_cur_max=Module[\"___ctype_get_mb_cur_max\"]=Module[\"asm\"][\"__ctype_get_mb_cur_max\"]).apply(null,arguments)};var ___pthread_self=Module[\"___pthread_self\"]=function(){return(___pthread_self=Module[\"___pthread_self\"]=Module[\"asm\"][\"__pthread_self\"]).apply(null,arguments)};var ___iswalnum_l=Module[\"___iswalnum_l\"]=function(){return(___iswalnum_l=Module[\"___iswalnum_l\"]=Module[\"asm\"][\"__iswalnum_l\"]).apply(null,arguments)};var _iswalnum_l=Module[\"_iswalnum_l\"]=function(){return(_iswalnum_l=Module[\"_iswalnum_l\"]=Module[\"asm\"][\"iswalnum_l\"]).apply(null,arguments)};var ___iswalpha_l=Module[\"___iswalpha_l\"]=function(){return(___iswalpha_l=Module[\"___iswalpha_l\"]=Module[\"asm\"][\"__iswalpha_l\"]).apply(null,arguments)};var _iswalpha_l=Module[\"_iswalpha_l\"]=function(){return(_iswalpha_l=Module[\"_iswalpha_l\"]=Module[\"asm\"][\"iswalpha_l\"]).apply(null,arguments)};var ___isspace_l=Module[\"___isspace_l\"]=function(){return(___isspace_l=Module[\"___isspace_l\"]=Module[\"asm\"][\"__isspace_l\"]).apply(null,arguments)};var _isspace_l=Module[\"_isspace_l\"]=function(){return(_isspace_l=Module[\"_isspace_l\"]=Module[\"asm\"][\"isspace_l\"]).apply(null,arguments)};var _islower=Module[\"_islower\"]=function(){return(_islower=Module[\"_islower\"]=Module[\"asm\"][\"islower\"]).apply(null,arguments)};var ___islower_l=Module[\"___islower_l\"]=function(){return(___islower_l=Module[\"___islower_l\"]=Module[\"asm\"][\"__islower_l\"]).apply(null,arguments)};var _islower_l=Module[\"_islower_l\"]=function(){return(_islower_l=Module[\"_islower_l\"]=Module[\"asm\"][\"islower_l\"]).apply(null,arguments)};var _iscntrl=Module[\"_iscntrl\"]=function(){return(_iscntrl=Module[\"_iscntrl\"]=Module[\"asm\"][\"iscntrl\"]).apply(null,arguments)};var ___iscntrl_l=Module[\"___iscntrl_l\"]=function(){return(___iscntrl_l=Module[\"___iscntrl_l\"]=Module[\"asm\"][\"__iscntrl_l\"]).apply(null,arguments)};var _iscntrl_l=Module[\"_iscntrl_l\"]=function(){return(_iscntrl_l=Module[\"_iscntrl_l\"]=Module[\"asm\"][\"iscntrl_l\"]).apply(null,arguments)};var _isdigit=Module[\"_isdigit\"]=function(){return(_isdigit=Module[\"_isdigit\"]=Module[\"asm\"][\"isdigit\"]).apply(null,arguments)};var ___isxdigit_l=Module[\"___isxdigit_l\"]=function(){return(___isxdigit_l=Module[\"___isxdigit_l\"]=Module[\"asm\"][\"__isxdigit_l\"]).apply(null,arguments)};var _isxdigit_l=Module[\"_isxdigit_l\"]=function(){return(_isxdigit_l=Module[\"_isxdigit_l\"]=Module[\"asm\"][\"isxdigit_l\"]).apply(null,arguments)};var ___ctype_toupper_loc=Module[\"___ctype_toupper_loc\"]=function(){return(___ctype_toupper_loc=Module[\"___ctype_toupper_loc\"]=Module[\"asm\"][\"__ctype_toupper_loc\"]).apply(null,arguments)};var ___iswprint_l=Module[\"___iswprint_l\"]=function(){return(___iswprint_l=Module[\"___iswprint_l\"]=Module[\"asm\"][\"__iswprint_l\"]).apply(null,arguments)};var _iswprint_l=Module[\"_iswprint_l\"]=function(){return(_iswprint_l=Module[\"_iswprint_l\"]=Module[\"asm\"][\"iswprint_l\"]).apply(null,arguments)};var _isprint=Module[\"_isprint\"]=function(){return(_isprint=Module[\"_isprint\"]=Module[\"asm\"][\"isprint\"]).apply(null,arguments)};var ___isprint_l=Module[\"___isprint_l\"]=function(){return(___isprint_l=Module[\"___isprint_l\"]=Module[\"asm\"][\"__isprint_l\"]).apply(null,arguments)};var _isprint_l=Module[\"_isprint_l\"]=function(){return(_isprint_l=Module[\"_isprint_l\"]=Module[\"asm\"][\"isprint_l\"]).apply(null,arguments)};var ___iswlower_l=Module[\"___iswlower_l\"]=function(){return(___iswlower_l=Module[\"___iswlower_l\"]=Module[\"asm\"][\"__iswlower_l\"]).apply(null,arguments)};var _iswlower_l=Module[\"_iswlower_l\"]=function(){return(_iswlower_l=Module[\"_iswlower_l\"]=Module[\"asm\"][\"iswlower_l\"]).apply(null,arguments)};var ___tolower_l=Module[\"___tolower_l\"]=function(){return(___tolower_l=Module[\"___tolower_l\"]=Module[\"asm\"][\"__tolower_l\"]).apply(null,arguments)};var _tolower_l=Module[\"_tolower_l\"]=function(){return(_tolower_l=Module[\"_tolower_l\"]=Module[\"asm\"][\"tolower_l\"]).apply(null,arguments)};var _wctrans=Module[\"_wctrans\"]=function(){return(_wctrans=Module[\"_wctrans\"]=Module[\"asm\"][\"wctrans\"]).apply(null,arguments)};var _towctrans=Module[\"_towctrans\"]=function(){return(_towctrans=Module[\"_towctrans\"]=Module[\"asm\"][\"towctrans\"]).apply(null,arguments)};var ___wctrans_l=Module[\"___wctrans_l\"]=function(){return(___wctrans_l=Module[\"___wctrans_l\"]=Module[\"asm\"][\"__wctrans_l\"]).apply(null,arguments)};var ___towctrans_l=Module[\"___towctrans_l\"]=function(){return(___towctrans_l=Module[\"___towctrans_l\"]=Module[\"asm\"][\"__towctrans_l\"]).apply(null,arguments)};var _wctrans_l=Module[\"_wctrans_l\"]=function(){return(_wctrans_l=Module[\"_wctrans_l\"]=Module[\"asm\"][\"wctrans_l\"]).apply(null,arguments)};var _towctrans_l=Module[\"_towctrans_l\"]=function(){return(_towctrans_l=Module[\"_towctrans_l\"]=Module[\"asm\"][\"towctrans_l\"]).apply(null,arguments)};var _isblank=Module[\"_isblank\"]=function(){return(_isblank=Module[\"_isblank\"]=Module[\"asm\"][\"isblank\"]).apply(null,arguments)};var ___iswblank_l=Module[\"___iswblank_l\"]=function(){return(___iswblank_l=Module[\"___iswblank_l\"]=Module[\"asm\"][\"__iswblank_l\"]).apply(null,arguments)};var _iswblank_l=Module[\"_iswblank_l\"]=function(){return(_iswblank_l=Module[\"_iswblank_l\"]=Module[\"asm\"][\"iswblank_l\"]).apply(null,arguments)};var _wcswidth=Module[\"_wcswidth\"]=function(){return(_wcswidth=Module[\"_wcswidth\"]=Module[\"asm\"][\"wcswidth\"]).apply(null,arguments)};var _wcwidth=Module[\"_wcwidth\"]=function(){return(_wcwidth=Module[\"_wcwidth\"]=Module[\"asm\"][\"wcwidth\"]).apply(null,arguments)};var ___isupper_l=Module[\"___isupper_l\"]=function(){return(___isupper_l=Module[\"___isupper_l\"]=Module[\"asm\"][\"__isupper_l\"]).apply(null,arguments)};var _isupper_l=Module[\"_isupper_l\"]=function(){return(_isupper_l=Module[\"_isupper_l\"]=Module[\"asm\"][\"isupper_l\"]).apply(null,arguments)};var ___toupper_l=Module[\"___toupper_l\"]=function(){return(___toupper_l=Module[\"___toupper_l\"]=Module[\"asm\"][\"__toupper_l\"]).apply(null,arguments)};var _toupper_l=Module[\"_toupper_l\"]=function(){return(_toupper_l=Module[\"_toupper_l\"]=Module[\"asm\"][\"toupper_l\"]).apply(null,arguments)};var ___isblank_l=Module[\"___isblank_l\"]=function(){return(___isblank_l=Module[\"___isblank_l\"]=Module[\"asm\"][\"__isblank_l\"]).apply(null,arguments)};var _isblank_l=Module[\"_isblank_l\"]=function(){return(_isblank_l=Module[\"_isblank_l\"]=Module[\"asm\"][\"isblank_l\"]).apply(null,arguments)};var _toascii=Module[\"_toascii\"]=function(){return(_toascii=Module[\"_toascii\"]=Module[\"asm\"][\"toascii\"]).apply(null,arguments)};var ___isdigit_l=Module[\"___isdigit_l\"]=function(){return(___isdigit_l=Module[\"___isdigit_l\"]=Module[\"asm\"][\"__isdigit_l\"]).apply(null,arguments)};var _isdigit_l=Module[\"_isdigit_l\"]=function(){return(_isdigit_l=Module[\"_isdigit_l\"]=Module[\"asm\"][\"isdigit_l\"]).apply(null,arguments)};var ___iswxdigit_l=Module[\"___iswxdigit_l\"]=function(){return(___iswxdigit_l=Module[\"___iswxdigit_l\"]=Module[\"asm\"][\"__iswxdigit_l\"]).apply(null,arguments)};var _iswxdigit_l=Module[\"_iswxdigit_l\"]=function(){return(_iswxdigit_l=Module[\"_iswxdigit_l\"]=Module[\"asm\"][\"iswxdigit_l\"]).apply(null,arguments)};var ___iswpunct_l=Module[\"___iswpunct_l\"]=function(){return(___iswpunct_l=Module[\"___iswpunct_l\"]=Module[\"asm\"][\"__iswpunct_l\"]).apply(null,arguments)};var _iswpunct_l=Module[\"_iswpunct_l\"]=function(){return(_iswpunct_l=Module[\"_iswpunct_l\"]=Module[\"asm\"][\"iswpunct_l\"]).apply(null,arguments)};var _isascii=Module[\"_isascii\"]=function(){return(_isascii=Module[\"_isascii\"]=Module[\"asm\"][\"isascii\"]).apply(null,arguments)};var ___iswcntrl_l=Module[\"___iswcntrl_l\"]=function(){return(___iswcntrl_l=Module[\"___iswcntrl_l\"]=Module[\"asm\"][\"__iswcntrl_l\"]).apply(null,arguments)};var _iswcntrl_l=Module[\"_iswcntrl_l\"]=function(){return(_iswcntrl_l=Module[\"_iswcntrl_l\"]=Module[\"asm\"][\"iswcntrl_l\"]).apply(null,arguments)};var ___iswgraph_l=Module[\"___iswgraph_l\"]=function(){return(___iswgraph_l=Module[\"___iswgraph_l\"]=Module[\"asm\"][\"__iswgraph_l\"]).apply(null,arguments)};var _iswgraph_l=Module[\"_iswgraph_l\"]=function(){return(_iswgraph_l=Module[\"_iswgraph_l\"]=Module[\"asm\"][\"iswgraph_l\"]).apply(null,arguments)};var ___iswupper_l=Module[\"___iswupper_l\"]=function(){return(___iswupper_l=Module[\"___iswupper_l\"]=Module[\"asm\"][\"__iswupper_l\"]).apply(null,arguments)};var _iswupper_l=Module[\"_iswupper_l\"]=function(){return(_iswupper_l=Module[\"_iswupper_l\"]=Module[\"asm\"][\"iswupper_l\"]).apply(null,arguments)};var ___isalnum_l=Module[\"___isalnum_l\"]=function(){return(___isalnum_l=Module[\"___isalnum_l\"]=Module[\"asm\"][\"__isalnum_l\"]).apply(null,arguments)};var _isalnum_l=Module[\"_isalnum_l\"]=function(){return(_isalnum_l=Module[\"_isalnum_l\"]=Module[\"asm\"][\"isalnum_l\"]).apply(null,arguments)};var ___iswspace_l=Module[\"___iswspace_l\"]=function(){return(___iswspace_l=Module[\"___iswspace_l\"]=Module[\"asm\"][\"__iswspace_l\"]).apply(null,arguments)};var _iswspace_l=Module[\"_iswspace_l\"]=function(){return(_iswspace_l=Module[\"_iswspace_l\"]=Module[\"asm\"][\"iswspace_l\"]).apply(null,arguments)};var _ispunct=Module[\"_ispunct\"]=function(){return(_ispunct=Module[\"_ispunct\"]=Module[\"asm\"][\"ispunct\"]).apply(null,arguments)};var ___ispunct_l=Module[\"___ispunct_l\"]=function(){return(___ispunct_l=Module[\"___ispunct_l\"]=Module[\"asm\"][\"__ispunct_l\"]).apply(null,arguments)};var _ispunct_l=Module[\"_ispunct_l\"]=function(){return(_ispunct_l=Module[\"_ispunct_l\"]=Module[\"asm\"][\"ispunct_l\"]).apply(null,arguments)};var ___ctype_tolower_loc=Module[\"___ctype_tolower_loc\"]=function(){return(___ctype_tolower_loc=Module[\"___ctype_tolower_loc\"]=Module[\"asm\"][\"__ctype_tolower_loc\"]).apply(null,arguments)};var _fstatat64=Module[\"_fstatat64\"]=function(){return(_fstatat64=Module[\"_fstatat64\"]=Module[\"asm\"][\"fstatat64\"]).apply(null,arguments)};var _fchmodat=Module[\"_fchmodat\"]=function(){return(_fchmodat=Module[\"_fchmodat\"]=Module[\"asm\"][\"fchmodat\"]).apply(null,arguments)};var ___futimesat=Module[\"___futimesat\"]=function(){return(___futimesat=Module[\"___futimesat\"]=Module[\"asm\"][\"__futimesat\"]).apply(null,arguments)};var _utimensat=Module[\"_utimensat\"]=function(){return(_utimensat=Module[\"_utimensat\"]=Module[\"asm\"][\"utimensat\"]).apply(null,arguments)};var _lstat64=Module[\"_lstat64\"]=function(){return(_lstat64=Module[\"_lstat64\"]=Module[\"asm\"][\"lstat64\"]).apply(null,arguments)};var ___fxstat=Module[\"___fxstat\"]=function(){return(___fxstat=Module[\"___fxstat\"]=Module[\"asm\"][\"__fxstat\"]).apply(null,arguments)};var ___fxstatat=Module[\"___fxstatat\"]=function(){return(___fxstatat=Module[\"___fxstatat\"]=Module[\"asm\"][\"__fxstatat\"]).apply(null,arguments)};var ___lxstat=Module[\"___lxstat\"]=function(){return(___lxstat=Module[\"___lxstat\"]=Module[\"asm\"][\"__lxstat\"]).apply(null,arguments)};var ___xstat=Module[\"___xstat\"]=function(){return(___xstat=Module[\"___xstat\"]=Module[\"asm\"][\"__xstat\"]).apply(null,arguments)};var ___xmknod=Module[\"___xmknod\"]=function(){return(___xmknod=Module[\"___xmknod\"]=Module[\"asm\"][\"__xmknod\"]).apply(null,arguments)};var ___xmknodat=Module[\"___xmknodat\"]=function(){return(___xmknodat=Module[\"___xmknodat\"]=Module[\"asm\"][\"__xmknodat\"]).apply(null,arguments)};var ___fxstat64=Module[\"___fxstat64\"]=function(){return(___fxstat64=Module[\"___fxstat64\"]=Module[\"asm\"][\"__fxstat64\"]).apply(null,arguments)};var ___fxstatat64=Module[\"___fxstatat64\"]=function(){return(___fxstatat64=Module[\"___fxstatat64\"]=Module[\"asm\"][\"__fxstatat64\"]).apply(null,arguments)};var ___lxstat64=Module[\"___lxstat64\"]=function(){return(___lxstat64=Module[\"___lxstat64\"]=Module[\"asm\"][\"__lxstat64\"]).apply(null,arguments)};var ___xstat64=Module[\"___xstat64\"]=function(){return(___xstat64=Module[\"___xstat64\"]=Module[\"asm\"][\"__xstat64\"]).apply(null,arguments)};var _mkdirat=Module[\"_mkdirat\"]=function(){return(_mkdirat=Module[\"_mkdirat\"]=Module[\"asm\"][\"mkdirat\"]).apply(null,arguments)};var ___wasi_fd_is_valid=Module[\"___wasi_fd_is_valid\"]=function(){return(___wasi_fd_is_valid=Module[\"___wasi_fd_is_valid\"]=Module[\"asm\"][\"__wasi_fd_is_valid\"]).apply(null,arguments)};var _fstat64=Module[\"_fstat64\"]=function(){return(_fstat64=Module[\"_fstat64\"]=Module[\"asm\"][\"fstat64\"]).apply(null,arguments)};var _stat64=Module[\"_stat64\"]=function(){return(_stat64=Module[\"_stat64\"]=Module[\"asm\"][\"stat64\"]).apply(null,arguments)};var ___statfs=Module[\"___statfs\"]=function(){return(___statfs=Module[\"___statfs\"]=Module[\"asm\"][\"__statfs\"]).apply(null,arguments)};var ___fstatfs=Module[\"___fstatfs\"]=function(){return(___fstatfs=Module[\"___fstatfs\"]=Module[\"asm\"][\"__fstatfs\"]).apply(null,arguments)};var _statfs=Module[\"_statfs\"]=function(){return(_statfs=Module[\"_statfs\"]=Module[\"asm\"][\"statfs\"]).apply(null,arguments)};var _fstatfs=Module[\"_fstatfs\"]=function(){return(_fstatfs=Module[\"_fstatfs\"]=Module[\"asm\"][\"fstatfs\"]).apply(null,arguments)};var _statvfs64=Module[\"_statvfs64\"]=function(){return(_statvfs64=Module[\"_statvfs64\"]=Module[\"asm\"][\"statvfs64\"]).apply(null,arguments)};var _statfs64=Module[\"_statfs64\"]=function(){return(_statfs64=Module[\"_statfs64\"]=Module[\"asm\"][\"statfs64\"]).apply(null,arguments)};var _fstatvfs64=Module[\"_fstatvfs64\"]=function(){return(_fstatvfs64=Module[\"_fstatvfs64\"]=Module[\"asm\"][\"fstatvfs64\"]).apply(null,arguments)};var _fstatfs64=Module[\"_fstatfs64\"]=function(){return(_fstatfs64=Module[\"_fstatfs64\"]=Module[\"asm\"][\"fstatfs64\"]).apply(null,arguments)};var _mktemp=Module[\"_mktemp\"]=function(){return(_mktemp=Module[\"_mktemp\"]=Module[\"asm\"][\"mktemp\"]).apply(null,arguments)};var ___randname=Module[\"___randname\"]=function(){return(___randname=Module[\"___randname\"]=Module[\"asm\"][\"__randname\"]).apply(null,arguments)};var _mkostemp=Module[\"_mkostemp\"]=function(){return(_mkostemp=Module[\"_mkostemp\"]=Module[\"asm\"][\"mkostemp\"]).apply(null,arguments)};var ___mkostemps=Module[\"___mkostemps\"]=function(){return(___mkostemps=Module[\"___mkostemps\"]=Module[\"asm\"][\"__mkostemps\"]).apply(null,arguments)};var _mkostemp64=Module[\"_mkostemp64\"]=function(){return(_mkostemp64=Module[\"_mkostemp64\"]=Module[\"asm\"][\"mkostemp64\"]).apply(null,arguments)};var _mkdtemp=Module[\"_mkdtemp\"]=function(){return(_mkdtemp=Module[\"_mkdtemp\"]=Module[\"asm\"][\"mkdtemp\"]).apply(null,arguments)};var _mkostemps=Module[\"_mkostemps\"]=function(){return(_mkostemps=Module[\"_mkostemps\"]=Module[\"asm\"][\"mkostemps\"]).apply(null,arguments)};var _mkostemps64=Module[\"_mkostemps64\"]=function(){return(_mkostemps64=Module[\"_mkostemps64\"]=Module[\"asm\"][\"mkostemps64\"]).apply(null,arguments)};var _mkstemp=Module[\"_mkstemp\"]=function(){return(_mkstemp=Module[\"_mkstemp\"]=Module[\"asm\"][\"mkstemp\"]).apply(null,arguments)};var _mkstemp64=Module[\"_mkstemp64\"]=function(){return(_mkstemp64=Module[\"_mkstemp64\"]=Module[\"asm\"][\"mkstemp64\"]).apply(null,arguments)};var _mkstemps=Module[\"_mkstemps\"]=function(){return(_mkstemps=Module[\"_mkstemps\"]=Module[\"asm\"][\"mkstemps\"]).apply(null,arguments)};var _mkstemps64=Module[\"_mkstemps64\"]=function(){return(_mkstemps64=Module[\"_mkstemps64\"]=Module[\"asm\"][\"mkstemps64\"]).apply(null,arguments)};var ___libc_get_version=Module[\"___libc_get_version\"]=function(){return(___libc_get_version=Module[\"___libc_get_version\"]=Module[\"asm\"][\"__libc_get_version\"]).apply(null,arguments)};var ___intscan=Module[\"___intscan\"]=function(){return(___intscan=Module[\"___intscan\"]=Module[\"asm\"][\"__intscan\"]).apply(null,arguments)};var ___shgetc=Module[\"___shgetc\"]=function(){return(___shgetc=Module[\"___shgetc\"]=Module[\"asm\"][\"__shgetc\"]).apply(null,arguments)};var ___shlim=Module[\"___shlim\"]=function(){return(___shlim=Module[\"___shlim\"]=Module[\"asm\"][\"__shlim\"]).apply(null,arguments)};var ___multi3=Module[\"___multi3\"]=function(){return(___multi3=Module[\"___multi3\"]=Module[\"asm\"][\"__multi3\"]).apply(null,arguments)};var ___floatscan=Module[\"___floatscan\"]=function(){return(___floatscan=Module[\"___floatscan\"]=Module[\"asm\"][\"__floatscan\"]).apply(null,arguments)};var _scalbn=Module[\"_scalbn\"]=function(){return(_scalbn=Module[\"_scalbn\"]=Module[\"asm\"][\"scalbn\"]).apply(null,arguments)};var _copysignl=Module[\"_copysignl\"]=function(){return(_copysignl=Module[\"_copysignl\"]=Module[\"asm\"][\"copysignl\"]).apply(null,arguments)};var ___netf2=Module[\"___netf2\"]=function(){return(___netf2=Module[\"___netf2\"]=Module[\"asm\"][\"__netf2\"]).apply(null,arguments)};var ___floatunsitf=Module[\"___floatunsitf\"]=function(){return(___floatunsitf=Module[\"___floatunsitf\"]=Module[\"asm\"][\"__floatunsitf\"]).apply(null,arguments)};var _scalbnl=Module[\"_scalbnl\"]=function(){return(_scalbnl=Module[\"_scalbnl\"]=Module[\"asm\"][\"scalbnl\"]).apply(null,arguments)};var _fmodl=Module[\"_fmodl\"]=function(){return(_fmodl=Module[\"_fmodl\"]=Module[\"asm\"][\"fmodl\"]).apply(null,arguments)};var _fabsl=Module[\"_fabsl\"]=function(){return(_fabsl=Module[\"_fabsl\"]=Module[\"asm\"][\"fabsl\"]).apply(null,arguments)};var ___uflow=Module[\"___uflow\"]=function(){return(___uflow=Module[\"___uflow\"]=Module[\"asm\"][\"__uflow\"]).apply(null,arguments)};var _pselect=Module[\"_pselect\"]=function(){return(_pselect=Module[\"_pselect\"]=Module[\"asm\"][\"pselect\"]).apply(null,arguments)};var ___tre_mem_new_impl=Module[\"___tre_mem_new_impl\"]=function(){return(___tre_mem_new_impl=Module[\"___tre_mem_new_impl\"]=Module[\"asm\"][\"__tre_mem_new_impl\"]).apply(null,arguments)};var ___tre_mem_destroy=Module[\"___tre_mem_destroy\"]=function(){return(___tre_mem_destroy=Module[\"___tre_mem_destroy\"]=Module[\"asm\"][\"__tre_mem_destroy\"]).apply(null,arguments)};var ___tre_mem_alloc_impl=Module[\"___tre_mem_alloc_impl\"]=function(){return(___tre_mem_alloc_impl=Module[\"___tre_mem_alloc_impl\"]=Module[\"asm\"][\"__tre_mem_alloc_impl\"]).apply(null,arguments)};var _regcomp=Module[\"_regcomp\"]=function(){return(_regcomp=Module[\"_regcomp\"]=Module[\"asm\"][\"regcomp\"]).apply(null,arguments)};var _regfree=Module[\"_regfree\"]=function(){return(_regfree=Module[\"_regfree\"]=Module[\"asm\"][\"regfree\"]).apply(null,arguments)};var _mbtowc=Module[\"_mbtowc\"]=function(){return(_mbtowc=Module[\"_mbtowc\"]=Module[\"asm\"][\"mbtowc\"]).apply(null,arguments)};var _glob=Module[\"_glob\"]=function(){return(_glob=Module[\"_glob\"]=Module[\"asm\"][\"glob\"]).apply(null,arguments)};var _readdir_r=Module[\"_readdir_r\"]=function(){return(_readdir_r=Module[\"_readdir_r\"]=Module[\"asm\"][\"readdir_r\"]).apply(null,arguments)};var _fnmatch=Module[\"_fnmatch\"]=function(){return(_fnmatch=Module[\"_fnmatch\"]=Module[\"asm\"][\"fnmatch\"]).apply(null,arguments)};var _globfree=Module[\"_globfree\"]=function(){return(_globfree=Module[\"_globfree\"]=Module[\"asm\"][\"globfree\"]).apply(null,arguments)};var _glob64=Module[\"_glob64\"]=function(){return(_glob64=Module[\"_glob64\"]=Module[\"asm\"][\"glob64\"]).apply(null,arguments)};var _globfree64=Module[\"_globfree64\"]=function(){return(_globfree64=Module[\"_globfree64\"]=Module[\"asm\"][\"globfree64\"]).apply(null,arguments)};var _regexec=Module[\"_regexec\"]=function(){return(_regexec=Module[\"_regexec\"]=Module[\"asm\"][\"regexec\"]).apply(null,arguments)};var _regerror=Module[\"_regerror\"]=function(){return(_regerror=Module[\"_regerror\"]=Module[\"asm\"][\"regerror\"]).apply(null,arguments)};var ___lctrans_cur=Module[\"___lctrans_cur\"]=function(){return(___lctrans_cur=Module[\"___lctrans_cur\"]=Module[\"asm\"][\"__lctrans_cur\"]).apply(null,arguments)};var ___getdents=Module[\"___getdents\"]=function(){return(___getdents=Module[\"___getdents\"]=Module[\"asm\"][\"__getdents\"]).apply(null,arguments)};var _getdents=Module[\"_getdents\"]=function(){return(_getdents=Module[\"_getdents\"]=Module[\"asm\"][\"getdents\"]).apply(null,arguments)};var _getdents64=Module[\"_getdents64\"]=function(){return(_getdents64=Module[\"_getdents64\"]=Module[\"asm\"][\"getdents64\"]).apply(null,arguments)};var _alphasort=Module[\"_alphasort\"]=function(){return(_alphasort=Module[\"_alphasort\"]=Module[\"asm\"][\"alphasort\"]).apply(null,arguments)};var _strcoll=Module[\"_strcoll\"]=function(){return(_strcoll=Module[\"_strcoll\"]=Module[\"asm\"][\"strcoll\"]).apply(null,arguments)};var _alphasort64=Module[\"_alphasort64\"]=function(){return(_alphasort64=Module[\"_alphasort64\"]=Module[\"asm\"][\"alphasort64\"]).apply(null,arguments)};var ___lock=Module[\"___lock\"]=function(){return(___lock=Module[\"___lock\"]=Module[\"asm\"][\"__lock\"]).apply(null,arguments)};var ___unlock=Module[\"___unlock\"]=function(){return(___unlock=Module[\"___unlock\"]=Module[\"asm\"][\"__unlock\"]).apply(null,arguments)};var _readdir64_r=Module[\"_readdir64_r\"]=function(){return(_readdir64_r=Module[\"_readdir64_r\"]=Module[\"asm\"][\"readdir64_r\"]).apply(null,arguments)};var _scandir=Module[\"_scandir\"]=function(){return(_scandir=Module[\"_scandir\"]=Module[\"asm\"][\"scandir\"]).apply(null,arguments)};var _scandir64=Module[\"_scandir64\"]=function(){return(_scandir64=Module[\"_scandir64\"]=Module[\"asm\"][\"scandir64\"]).apply(null,arguments)};var _versionsort=Module[\"_versionsort\"]=function(){return(_versionsort=Module[\"_versionsort\"]=Module[\"asm\"][\"versionsort\"]).apply(null,arguments)};var _strverscmp=Module[\"_strverscmp\"]=function(){return(_strverscmp=Module[\"_strverscmp\"]=Module[\"asm\"][\"strverscmp\"]).apply(null,arguments)};var _versionsort64=Module[\"_versionsort64\"]=function(){return(_versionsort64=Module[\"_versionsort64\"]=Module[\"asm\"][\"versionsort64\"]).apply(null,arguments)};var _readdir64=Module[\"_readdir64\"]=function(){return(_readdir64=Module[\"_readdir64\"]=Module[\"asm\"][\"readdir64\"]).apply(null,arguments)};var _telldir=Module[\"_telldir\"]=function(){return(_telldir=Module[\"_telldir\"]=Module[\"asm\"][\"telldir\"]).apply(null,arguments)};var _seekdir=Module[\"_seekdir\"]=function(){return(_seekdir=Module[\"_seekdir\"]=Module[\"asm\"][\"seekdir\"]).apply(null,arguments)};var _login_tty=Module[\"_login_tty\"]=function(){return(_login_tty=Module[\"_login_tty\"]=Module[\"asm\"][\"login_tty\"]).apply(null,arguments)};var _ffs=Module[\"_ffs\"]=function(){return(_ffs=Module[\"_ffs\"]=Module[\"asm\"][\"ffs\"]).apply(null,arguments)};var _getdomainname=Module[\"_getdomainname\"]=function(){return(_getdomainname=Module[\"_getdomainname\"]=Module[\"asm\"][\"getdomainname\"]).apply(null,arguments)};var _setlogmask=Module[\"_setlogmask\"]=function(){return(_setlogmask=Module[\"_setlogmask\"]=Module[\"asm\"][\"setlogmask\"]).apply(null,arguments)};var _closelog=Module[\"_closelog\"]=function(){return(_closelog=Module[\"_closelog\"]=Module[\"asm\"][\"closelog\"]).apply(null,arguments)};var _pthread_setcancelstate=Module[\"_pthread_setcancelstate\"]=function(){return(_pthread_setcancelstate=Module[\"_pthread_setcancelstate\"]=Module[\"asm\"][\"pthread_setcancelstate\"]).apply(null,arguments)};var _openlog=Module[\"_openlog\"]=function(){return(_openlog=Module[\"_openlog\"]=Module[\"asm\"][\"openlog\"]).apply(null,arguments)};var ___vsyslog=Module[\"___vsyslog\"]=function(){return(___vsyslog=Module[\"___vsyslog\"]=Module[\"asm\"][\"__vsyslog\"]).apply(null,arguments)};var _dprintf=Module[\"_dprintf\"]=function(){return(_dprintf=Module[\"_dprintf\"]=Module[\"asm\"][\"dprintf\"]).apply(null,arguments)};var _syslog=Module[\"_syslog\"]=function(){return(_syslog=Module[\"_syslog\"]=Module[\"asm\"][\"syslog\"]).apply(null,arguments)};var _vsyslog=Module[\"_vsyslog\"]=function(){return(_vsyslog=Module[\"_vsyslog\"]=Module[\"asm\"][\"vsyslog\"]).apply(null,arguments)};var _ffsll=Module[\"_ffsll\"]=function(){return(_ffsll=Module[\"_ffsll\"]=Module[\"asm\"][\"ffsll\"]).apply(null,arguments)};var _getopt_long=Module[\"_getopt_long\"]=function(){return(_getopt_long=Module[\"_getopt_long\"]=Module[\"asm\"][\"getopt_long\"]).apply(null,arguments)};var _getopt_long_only=Module[\"_getopt_long_only\"]=function(){return(_getopt_long_only=Module[\"_getopt_long_only\"]=Module[\"asm\"][\"getopt_long_only\"]).apply(null,arguments)};var ___getopt_msg=Module[\"___getopt_msg\"]=function(){return(___getopt_msg=Module[\"___getopt_msg\"]=Module[\"asm\"][\"__getopt_msg\"]).apply(null,arguments)};var _getopt=Module[\"_getopt\"]=function(){return(_getopt=Module[\"_getopt\"]=Module[\"asm\"][\"getopt\"]).apply(null,arguments)};var _lockf64=Module[\"_lockf64\"]=function(){return(_lockf64=Module[\"_lockf64\"]=Module[\"asm\"][\"lockf64\"]).apply(null,arguments)};var _basename=Module[\"_basename\"]=function(){return(_basename=Module[\"_basename\"]=Module[\"asm\"][\"basename\"]).apply(null,arguments)};var ___xpg_basename=Module[\"___xpg_basename\"]=function(){return(___xpg_basename=Module[\"___xpg_basename\"]=Module[\"asm\"][\"__xpg_basename\"]).apply(null,arguments)};var _getrlimit64=Module[\"_getrlimit64\"]=function(){return(_getrlimit64=Module[\"_getrlimit64\"]=Module[\"asm\"][\"getrlimit64\"]).apply(null,arguments)};var _setmntent=Module[\"_setmntent\"]=function(){return(_setmntent=Module[\"_setmntent\"]=Module[\"asm\"][\"setmntent\"]).apply(null,arguments)};var _endmntent=Module[\"_endmntent\"]=function(){return(_endmntent=Module[\"_endmntent\"]=Module[\"asm\"][\"endmntent\"]).apply(null,arguments)};var _getmntent_r=Module[\"_getmntent_r\"]=function(){return(_getmntent_r=Module[\"_getmntent_r\"]=Module[\"asm\"][\"getmntent_r\"]).apply(null,arguments)};var _fscanf=Module[\"_fscanf\"]=function(){return(_fscanf=Module[\"_fscanf\"]=Module[\"asm\"][\"fscanf\"]).apply(null,arguments)};var _getmntent=Module[\"_getmntent\"]=function(){return(_getmntent=Module[\"_getmntent\"]=Module[\"asm\"][\"getmntent\"]).apply(null,arguments)};var _addmntent=Module[\"_addmntent\"]=function(){return(_addmntent=Module[\"_addmntent\"]=Module[\"asm\"][\"addmntent\"]).apply(null,arguments)};var _fprintf=Module[\"_fprintf\"]=function(){return(_fprintf=Module[\"_fprintf\"]=Module[\"asm\"][\"fprintf\"]).apply(null,arguments)};var _hasmntopt=Module[\"_hasmntopt\"]=function(){return(_hasmntopt=Module[\"_hasmntopt\"]=Module[\"asm\"][\"hasmntopt\"]).apply(null,arguments)};var _dirname=Module[\"_dirname\"]=function(){return(_dirname=Module[\"_dirname\"]=Module[\"asm\"][\"dirname\"]).apply(null,arguments)};var _nftw=Module[\"_nftw\"]=function(){return(_nftw=Module[\"_nftw\"]=Module[\"asm\"][\"nftw\"]).apply(null,arguments)};var _nftw64=Module[\"_nftw64\"]=function(){return(_nftw64=Module[\"_nftw64\"]=Module[\"asm\"][\"nftw64\"]).apply(null,arguments)};var _fmtmsg=Module[\"_fmtmsg\"]=function(){return(_fmtmsg=Module[\"_fmtmsg\"]=Module[\"asm\"][\"fmtmsg\"]).apply(null,arguments)};var _pipe2=Module[\"_pipe2\"]=function(){return(_pipe2=Module[\"_pipe2\"]=Module[\"asm\"][\"pipe2\"]).apply(null,arguments)};var ___posix_getopt=Module[\"___posix_getopt\"]=function(){return(___posix_getopt=Module[\"___posix_getopt\"]=Module[\"asm\"][\"__posix_getopt\"]).apply(null,arguments)};var _getauxval=Module[\"_getauxval\"]=function(){return(_getauxval=Module[\"_getauxval\"]=Module[\"asm\"][\"getauxval\"]).apply(null,arguments)};var _posix_openpt=Module[\"_posix_openpt\"]=function(){return(_posix_openpt=Module[\"_posix_openpt\"]=Module[\"asm\"][\"posix_openpt\"]).apply(null,arguments)};var _grantpt=Module[\"_grantpt\"]=function(){return(_grantpt=Module[\"_grantpt\"]=Module[\"asm\"][\"grantpt\"]).apply(null,arguments)};var _unlockpt=Module[\"_unlockpt\"]=function(){return(_unlockpt=Module[\"_unlockpt\"]=Module[\"asm\"][\"unlockpt\"]).apply(null,arguments)};var ___ptsname_r=Module[\"___ptsname_r\"]=function(){return(___ptsname_r=Module[\"___ptsname_r\"]=Module[\"asm\"][\"__ptsname_r\"]).apply(null,arguments)};var _ptsname_r=Module[\"_ptsname_r\"]=function(){return(_ptsname_r=Module[\"_ptsname_r\"]=Module[\"asm\"][\"ptsname_r\"]).apply(null,arguments)};var _gethostid=Module[\"_gethostid\"]=function(){return(_gethostid=Module[\"_gethostid\"]=Module[\"asm\"][\"gethostid\"]).apply(null,arguments)};var _strdup=Module[\"_strdup\"]=function(){return(_strdup=Module[\"_strdup\"]=Module[\"asm\"][\"strdup\"]).apply(null,arguments)};var _getsubopt=Module[\"_getsubopt\"]=function(){return(_getsubopt=Module[\"_getsubopt\"]=Module[\"asm\"][\"getsubopt\"]).apply(null,arguments)};var _ffsl=Module[\"_ffsl\"]=function(){return(_ffsl=Module[\"_ffsl\"]=Module[\"asm\"][\"ffsl\"]).apply(null,arguments)};var ___setrlimit=Module[\"___setrlimit\"]=function(){return(___setrlimit=Module[\"___setrlimit\"]=Module[\"asm\"][\"__setrlimit\"]).apply(null,arguments)};var ___synccall=Module[\"___synccall\"]=function(){return(___synccall=Module[\"___synccall\"]=Module[\"asm\"][\"__synccall\"]).apply(null,arguments)};var _setrlimit64=Module[\"_setrlimit64\"]=function(){return(_setrlimit64=Module[\"_setrlimit64\"]=Module[\"asm\"][\"setrlimit64\"]).apply(null,arguments)};var _get_current_dir_name=Module[\"_get_current_dir_name\"]=function(){return(_get_current_dir_name=Module[\"_get_current_dir_name\"]=Module[\"asm\"][\"get_current_dir_name\"]).apply(null,arguments)};var _issetugid=Module[\"_issetugid\"]=function(){return(_issetugid=Module[\"_issetugid\"]=Module[\"asm\"][\"issetugid\"]).apply(null,arguments)};var _ptsname=Module[\"_ptsname\"]=function(){return(_ptsname=Module[\"_ptsname\"]=Module[\"asm\"][\"ptsname\"]).apply(null,arguments)};var _setdomainname=Module[\"_setdomainname\"]=function(){return(_setdomainname=Module[\"_setdomainname\"]=Module[\"asm\"][\"setdomainname\"]).apply(null,arguments)};var _a64l=Module[\"_a64l\"]=function(){return(_a64l=Module[\"_a64l\"]=Module[\"asm\"][\"a64l\"]).apply(null,arguments)};var _l64a=Module[\"_l64a\"]=function(){return(_l64a=Module[\"_l64a\"]=Module[\"asm\"][\"l64a\"]).apply(null,arguments)};var _sendmmsg=Module[\"_sendmmsg\"]=function(){return(_sendmmsg=Module[\"_sendmmsg\"]=Module[\"asm\"][\"sendmmsg\"]).apply(null,arguments)};var ___dn_comp=Module[\"___dn_comp\"]=function(){return(___dn_comp=Module[\"___dn_comp\"]=Module[\"asm\"][\"__dn_comp\"]).apply(null,arguments)};var _dn_comp=Module[\"_dn_comp\"]=function(){return(_dn_comp=Module[\"_dn_comp\"]=Module[\"asm\"][\"dn_comp\"]).apply(null,arguments)};var _getnetbyaddr=Module[\"_getnetbyaddr\"]=function(){return(_getnetbyaddr=Module[\"_getnetbyaddr\"]=Module[\"asm\"][\"getnetbyaddr\"]).apply(null,arguments)};var _getnetbyname=Module[\"_getnetbyname\"]=function(){return(_getnetbyname=Module[\"_getnetbyname\"]=Module[\"asm\"][\"getnetbyname\"]).apply(null,arguments)};var ___res_send=Module[\"___res_send\"]=function(){return(___res_send=Module[\"___res_send\"]=Module[\"asm\"][\"__res_send\"]).apply(null,arguments)};var ___res_msend=Module[\"___res_msend\"]=function(){return(___res_msend=Module[\"___res_msend\"]=Module[\"asm\"][\"__res_msend\"]).apply(null,arguments)};var _res_send=Module[\"_res_send\"]=function(){return(_res_send=Module[\"_res_send\"]=Module[\"asm\"][\"res_send\"]).apply(null,arguments)};var ___inet_aton=Module[\"___inet_aton\"]=function(){return(___inet_aton=Module[\"___inet_aton\"]=Module[\"asm\"][\"__inet_aton\"]).apply(null,arguments)};var _getservbyport_r=Module[\"_getservbyport_r\"]=function(){return(_getservbyport_r=Module[\"_getservbyport_r\"]=Module[\"asm\"][\"getservbyport_r\"]).apply(null,arguments)};var ___get_resolv_conf=Module[\"___get_resolv_conf\"]=function(){return(___get_resolv_conf=Module[\"___get_resolv_conf\"]=Module[\"asm\"][\"__get_resolv_conf\"]).apply(null,arguments)};var ___fopen_rb_ca=Module[\"___fopen_rb_ca\"]=function(){return(___fopen_rb_ca=Module[\"___fopen_rb_ca\"]=Module[\"asm\"][\"__fopen_rb_ca\"]).apply(null,arguments)};var ___fclose_ca=Module[\"___fclose_ca\"]=function(){return(___fclose_ca=Module[\"___fclose_ca\"]=Module[\"asm\"][\"__fclose_ca\"]).apply(null,arguments)};var ___lookup_ipliteral=Module[\"___lookup_ipliteral\"]=function(){return(___lookup_ipliteral=Module[\"___lookup_ipliteral\"]=Module[\"asm\"][\"__lookup_ipliteral\"]).apply(null,arguments)};var ___res_msend_rc=Module[\"___res_msend_rc\"]=function(){return(___res_msend_rc=Module[\"___res_msend_rc\"]=Module[\"asm\"][\"__res_msend_rc\"]).apply(null,arguments)};var _res_init=Module[\"_res_init\"]=function(){return(_res_init=Module[\"_res_init\"]=Module[\"asm\"][\"res_init\"]).apply(null,arguments)};var _inet_addr=Module[\"_inet_addr\"]=function(){return(_inet_addr=Module[\"_inet_addr\"]=Module[\"asm\"][\"inet_addr\"]).apply(null,arguments)};var _sockatmark=Module[\"_sockatmark\"]=function(){return(_sockatmark=Module[\"_sockatmark\"]=Module[\"asm\"][\"sockatmark\"]).apply(null,arguments)};var _ether_aton_r=Module[\"_ether_aton_r\"]=function(){return(_ether_aton_r=Module[\"_ether_aton_r\"]=Module[\"asm\"][\"ether_aton_r\"]).apply(null,arguments)};var _ether_aton=Module[\"_ether_aton\"]=function(){return(_ether_aton=Module[\"_ether_aton\"]=Module[\"asm\"][\"ether_aton\"]).apply(null,arguments)};var _ether_ntoa_r=Module[\"_ether_ntoa_r\"]=function(){return(_ether_ntoa_r=Module[\"_ether_ntoa_r\"]=Module[\"asm\"][\"ether_ntoa_r\"]).apply(null,arguments)};var _sprintf=Module[\"_sprintf\"]=function(){return(_sprintf=Module[\"_sprintf\"]=Module[\"asm\"][\"sprintf\"]).apply(null,arguments)};var _ether_ntoa=Module[\"_ether_ntoa\"]=function(){return(_ether_ntoa=Module[\"_ether_ntoa\"]=Module[\"asm\"][\"ether_ntoa\"]).apply(null,arguments)};var _ether_line=Module[\"_ether_line\"]=function(){return(_ether_line=Module[\"_ether_line\"]=Module[\"asm\"][\"ether_line\"]).apply(null,arguments)};var _ether_ntohost=Module[\"_ether_ntohost\"]=function(){return(_ether_ntohost=Module[\"_ether_ntohost\"]=Module[\"asm\"][\"ether_ntohost\"]).apply(null,arguments)};var _ether_hostton=Module[\"_ether_hostton\"]=function(){return(_ether_hostton=Module[\"_ether_hostton\"]=Module[\"asm\"][\"ether_hostton\"]).apply(null,arguments)};var _strtoull=Module[\"_strtoull\"]=function(){return(_strtoull=Module[\"_strtoull\"]=Module[\"asm\"][\"strtoull\"]).apply(null,arguments)};var _if_nametoindex=Module[\"_if_nametoindex\"]=function(){return(_if_nametoindex=Module[\"_if_nametoindex\"]=Module[\"asm\"][\"if_nametoindex\"]).apply(null,arguments)};var _dn_skipname=Module[\"_dn_skipname\"]=function(){return(_dn_skipname=Module[\"_dn_skipname\"]=Module[\"asm\"][\"dn_skipname\"]).apply(null,arguments)};var _inet_network=Module[\"_inet_network\"]=function(){return(_inet_network=Module[\"_inet_network\"]=Module[\"asm\"][\"inet_network\"]).apply(null,arguments)};var _inet_makeaddr=Module[\"_inet_makeaddr\"]=function(){return(_inet_makeaddr=Module[\"_inet_makeaddr\"]=Module[\"asm\"][\"inet_makeaddr\"]).apply(null,arguments)};var _inet_lnaof=Module[\"_inet_lnaof\"]=function(){return(_inet_lnaof=Module[\"_inet_lnaof\"]=Module[\"asm\"][\"inet_lnaof\"]).apply(null,arguments)};var _inet_netof=Module[\"_inet_netof\"]=function(){return(_inet_netof=Module[\"_inet_netof\"]=Module[\"asm\"][\"inet_netof\"]).apply(null,arguments)};var ___res_mkquery=Module[\"___res_mkquery\"]=function(){return(___res_mkquery=Module[\"___res_mkquery\"]=Module[\"asm\"][\"__res_mkquery\"]).apply(null,arguments)};var _res_mkquery=Module[\"_res_mkquery\"]=function(){return(_res_mkquery=Module[\"_res_mkquery\"]=Module[\"asm\"][\"res_mkquery\"]).apply(null,arguments)};var _getservbyname_r=Module[\"_getservbyname_r\"]=function(){return(_getservbyname_r=Module[\"_getservbyname_r\"]=Module[\"asm\"][\"getservbyname_r\"]).apply(null,arguments)};var _recvmmsg=Module[\"_recvmmsg\"]=function(){return(_recvmmsg=Module[\"_recvmmsg\"]=Module[\"asm\"][\"recvmmsg\"]).apply(null,arguments)};var _endservent=Module[\"_endservent\"]=function(){return(_endservent=Module[\"_endservent\"]=Module[\"asm\"][\"endservent\"]).apply(null,arguments)};var _setservent=Module[\"_setservent\"]=function(){return(_setservent=Module[\"_setservent\"]=Module[\"asm\"][\"setservent\"]).apply(null,arguments)};var _getservent=Module[\"_getservent\"]=function(){return(_getservent=Module[\"_getservent\"]=Module[\"asm\"][\"getservent\"]).apply(null,arguments)};var _herror=Module[\"_herror\"]=function(){return(_herror=Module[\"_herror\"]=Module[\"asm\"][\"herror\"]).apply(null,arguments)};var _sethostent=Module[\"_sethostent\"]=function(){return(_sethostent=Module[\"_sethostent\"]=Module[\"asm\"][\"sethostent\"]).apply(null,arguments)};var _gethostent=Module[\"_gethostent\"]=function(){return(_gethostent=Module[\"_gethostent\"]=Module[\"asm\"][\"gethostent\"]).apply(null,arguments)};var _endhostent=Module[\"_endhostent\"]=function(){return(_endhostent=Module[\"_endhostent\"]=Module[\"asm\"][\"endhostent\"]).apply(null,arguments)};var _setnetent=Module[\"_setnetent\"]=function(){return(_setnetent=Module[\"_setnetent\"]=Module[\"asm\"][\"setnetent\"]).apply(null,arguments)};var _getnetent=Module[\"_getnetent\"]=function(){return(_getnetent=Module[\"_getnetent\"]=Module[\"asm\"][\"getnetent\"]).apply(null,arguments)};var _endnetent=Module[\"_endnetent\"]=function(){return(_endnetent=Module[\"_endnetent\"]=Module[\"asm\"][\"endnetent\"]).apply(null,arguments)};var ___res_state=Module[\"___res_state\"]=function(){return(___res_state=Module[\"___res_state\"]=Module[\"asm\"][\"__res_state\"]).apply(null,arguments)};var _ns_get16=Module[\"_ns_get16\"]=function(){return(_ns_get16=Module[\"_ns_get16\"]=Module[\"asm\"][\"ns_get16\"]).apply(null,arguments)};var _ns_get32=Module[\"_ns_get32\"]=function(){return(_ns_get32=Module[\"_ns_get32\"]=Module[\"asm\"][\"ns_get32\"]).apply(null,arguments)};var _ns_put16=Module[\"_ns_put16\"]=function(){return(_ns_put16=Module[\"_ns_put16\"]=Module[\"asm\"][\"ns_put16\"]).apply(null,arguments)};var _ns_put32=Module[\"_ns_put32\"]=function(){return(_ns_put32=Module[\"_ns_put32\"]=Module[\"asm\"][\"ns_put32\"]).apply(null,arguments)};var _ns_skiprr=Module[\"_ns_skiprr\"]=function(){return(_ns_skiprr=Module[\"_ns_skiprr\"]=Module[\"asm\"][\"ns_skiprr\"]).apply(null,arguments)};var _ns_initparse=Module[\"_ns_initparse\"]=function(){return(_ns_initparse=Module[\"_ns_initparse\"]=Module[\"asm\"][\"ns_initparse\"]).apply(null,arguments)};var _ns_name_uncompress=Module[\"_ns_name_uncompress\"]=function(){return(_ns_name_uncompress=Module[\"_ns_name_uncompress\"]=Module[\"asm\"][\"ns_name_uncompress\"]).apply(null,arguments)};var _dn_expand=Module[\"_dn_expand\"]=function(){return(_dn_expand=Module[\"_dn_expand\"]=Module[\"asm\"][\"dn_expand\"]).apply(null,arguments)};var _ns_parserr=Module[\"_ns_parserr\"]=function(){return(_ns_parserr=Module[\"_ns_parserr\"]=Module[\"asm\"][\"ns_parserr\"]).apply(null,arguments)};var _if_nameindex=Module[\"_if_nameindex\"]=function(){return(_if_nameindex=Module[\"_if_nameindex\"]=Module[\"asm\"][\"if_nameindex\"]).apply(null,arguments)};var ___rtnetlink_enumerate=Module[\"___rtnetlink_enumerate\"]=function(){return(___rtnetlink_enumerate=Module[\"___rtnetlink_enumerate\"]=Module[\"asm\"][\"__rtnetlink_enumerate\"]).apply(null,arguments)};var _freeifaddrs=Module[\"_freeifaddrs\"]=function(){return(_freeifaddrs=Module[\"_freeifaddrs\"]=Module[\"asm\"][\"freeifaddrs\"]).apply(null,arguments)};var _getifaddrs=Module[\"_getifaddrs\"]=function(){return(_getifaddrs=Module[\"_getifaddrs\"]=Module[\"asm\"][\"getifaddrs\"]).apply(null,arguments)};var _if_indextoname=Module[\"_if_indextoname\"]=function(){return(_if_indextoname=Module[\"_if_indextoname\"]=Module[\"asm\"][\"if_indextoname\"]).apply(null,arguments)};var _if_freenameindex=Module[\"_if_freenameindex\"]=function(){return(_if_freenameindex=Module[\"_if_freenameindex\"]=Module[\"asm\"][\"if_freenameindex\"]).apply(null,arguments)};var ___dn_expand=Module[\"___dn_expand\"]=function(){return(___dn_expand=Module[\"___dn_expand\"]=Module[\"asm\"][\"__dn_expand\"]).apply(null,arguments)};var ___lookup_serv=Module[\"___lookup_serv\"]=function(){return(___lookup_serv=Module[\"___lookup_serv\"]=Module[\"asm\"][\"__lookup_serv\"]).apply(null,arguments)};var ___dns_parse=Module[\"___dns_parse\"]=function(){return(___dns_parse=Module[\"___dns_parse\"]=Module[\"asm\"][\"__dns_parse\"]).apply(null,arguments)};var ___lookup_name=Module[\"___lookup_name\"]=function(){return(___lookup_name=Module[\"___lookup_name\"]=Module[\"asm\"][\"__lookup_name\"]).apply(null,arguments)};var _strspn=Module[\"_strspn\"]=function(){return(_strspn=Module[\"_strspn\"]=Module[\"asm\"][\"strspn\"]).apply(null,arguments)};var ___crypt_sha256=Module[\"___crypt_sha256\"]=function(){return(___crypt_sha256=Module[\"___crypt_sha256\"]=Module[\"asm\"][\"__crypt_sha256\"]).apply(null,arguments)};var _crypt=Module[\"_crypt\"]=function(){return(_crypt=Module[\"_crypt\"]=Module[\"asm\"][\"crypt\"]).apply(null,arguments)};var ___crypt_r=Module[\"___crypt_r\"]=function(){return(___crypt_r=Module[\"___crypt_r\"]=Module[\"asm\"][\"__crypt_r\"]).apply(null,arguments)};var ___crypt_md5=Module[\"___crypt_md5\"]=function(){return(___crypt_md5=Module[\"___crypt_md5\"]=Module[\"asm\"][\"__crypt_md5\"]).apply(null,arguments)};var ___crypt_blowfish=Module[\"___crypt_blowfish\"]=function(){return(___crypt_blowfish=Module[\"___crypt_blowfish\"]=Module[\"asm\"][\"__crypt_blowfish\"]).apply(null,arguments)};var ___crypt_sha512=Module[\"___crypt_sha512\"]=function(){return(___crypt_sha512=Module[\"___crypt_sha512\"]=Module[\"asm\"][\"__crypt_sha512\"]).apply(null,arguments)};var ___crypt_des=Module[\"___crypt_des\"]=function(){return(___crypt_des=Module[\"___crypt_des\"]=Module[\"asm\"][\"__crypt_des\"]).apply(null,arguments)};var _setkey=Module[\"_setkey\"]=function(){return(_setkey=Module[\"_setkey\"]=Module[\"asm\"][\"setkey\"]).apply(null,arguments)};var ___des_setkey=Module[\"___des_setkey\"]=function(){return(___des_setkey=Module[\"___des_setkey\"]=Module[\"asm\"][\"__des_setkey\"]).apply(null,arguments)};var _encrypt=Module[\"_encrypt\"]=function(){return(_encrypt=Module[\"_encrypt\"]=Module[\"asm\"][\"encrypt\"]).apply(null,arguments)};var ___do_des=Module[\"___do_des\"]=function(){return(___do_des=Module[\"___do_des\"]=Module[\"asm\"][\"__do_des\"]).apply(null,arguments)};var _wcrtomb=Module[\"_wcrtomb\"]=function(){return(_wcrtomb=Module[\"_wcrtomb\"]=Module[\"asm\"][\"wcrtomb\"]).apply(null,arguments)};var _wcsrtombs=Module[\"_wcsrtombs\"]=function(){return(_wcsrtombs=Module[\"_wcsrtombs\"]=Module[\"asm\"][\"wcsrtombs\"]).apply(null,arguments)};var _mbsrtowcs=Module[\"_mbsrtowcs\"]=function(){return(_mbsrtowcs=Module[\"_mbsrtowcs\"]=Module[\"asm\"][\"mbsrtowcs\"]).apply(null,arguments)};var _mbsinit=Module[\"_mbsinit\"]=function(){return(_mbsinit=Module[\"_mbsinit\"]=Module[\"asm\"][\"mbsinit\"]).apply(null,arguments)};var _wctomb=Module[\"_wctomb\"]=function(){return(_wctomb=Module[\"_wctomb\"]=Module[\"asm\"][\"wctomb\"]).apply(null,arguments)};var _wctob=Module[\"_wctob\"]=function(){return(_wctob=Module[\"_wctob\"]=Module[\"asm\"][\"wctob\"]).apply(null,arguments)};var _mbrtoc16=Module[\"_mbrtoc16\"]=function(){return(_mbrtoc16=Module[\"_mbrtoc16\"]=Module[\"asm\"][\"mbrtoc16\"]).apply(null,arguments)};var _mblen=Module[\"_mblen\"]=function(){return(_mblen=Module[\"_mblen\"]=Module[\"asm\"][\"mblen\"]).apply(null,arguments)};var _mbrlen=Module[\"_mbrlen\"]=function(){return(_mbrlen=Module[\"_mbrlen\"]=Module[\"asm\"][\"mbrlen\"]).apply(null,arguments)};var _mbsnrtowcs=Module[\"_mbsnrtowcs\"]=function(){return(_mbsnrtowcs=Module[\"_mbsnrtowcs\"]=Module[\"asm\"][\"mbsnrtowcs\"]).apply(null,arguments)};var _mbrtoc32=Module[\"_mbrtoc32\"]=function(){return(_mbrtoc32=Module[\"_mbrtoc32\"]=Module[\"asm\"][\"mbrtoc32\"]).apply(null,arguments)};var _btowc=Module[\"_btowc\"]=function(){return(_btowc=Module[\"_btowc\"]=Module[\"asm\"][\"btowc\"]).apply(null,arguments)};var _c16rtomb=Module[\"_c16rtomb\"]=function(){return(_c16rtomb=Module[\"_c16rtomb\"]=Module[\"asm\"][\"c16rtomb\"]).apply(null,arguments)};var _wcsnrtombs=Module[\"_wcsnrtombs\"]=function(){return(_wcsnrtombs=Module[\"_wcsnrtombs\"]=Module[\"asm\"][\"wcsnrtombs\"]).apply(null,arguments)};var _c32rtomb=Module[\"_c32rtomb\"]=function(){return(_c32rtomb=Module[\"_c32rtomb\"]=Module[\"asm\"][\"c32rtomb\"]).apply(null,arguments)};var ___strerror_l=Module[\"___strerror_l\"]=function(){return(___strerror_l=Module[\"___strerror_l\"]=Module[\"asm\"][\"__strerror_l\"]).apply(null,arguments)};var ___lctrans=Module[\"___lctrans\"]=function(){return(___lctrans=Module[\"___lctrans\"]=Module[\"asm\"][\"__lctrans\"]).apply(null,arguments)};var _strerror_l=Module[\"_strerror_l\"]=function(){return(_strerror_l=Module[\"_strerror_l\"]=Module[\"asm\"][\"strerror_l\"]).apply(null,arguments)};var ___wasi_syscall_ret=Module[\"___wasi_syscall_ret\"]=function(){return(___wasi_syscall_ret=Module[\"___wasi_syscall_ret\"]=Module[\"asm\"][\"__wasi_syscall_ret\"]).apply(null,arguments)};var _pwrite64=Module[\"_pwrite64\"]=function(){return(_pwrite64=Module[\"_pwrite64\"]=Module[\"asm\"][\"pwrite64\"]).apply(null,arguments)};var ___setxid=Module[\"___setxid\"]=function(){return(___setxid=Module[\"___setxid\"]=Module[\"asm\"][\"__setxid\"]).apply(null,arguments)};var _renameat=Module[\"_renameat\"]=function(){return(_renameat=Module[\"_renameat\"]=Module[\"asm\"][\"renameat\"]).apply(null,arguments)};var _pwritev=Module[\"_pwritev\"]=function(){return(_pwritev=Module[\"_pwritev\"]=Module[\"asm\"][\"pwritev\"]).apply(null,arguments)};var _pwritev64=Module[\"_pwritev64\"]=function(){return(_pwritev64=Module[\"_pwritev64\"]=Module[\"asm\"][\"pwritev64\"]).apply(null,arguments)};var _readlinkat=Module[\"_readlinkat\"]=function(){return(_readlinkat=Module[\"_readlinkat\"]=Module[\"asm\"][\"readlinkat\"]).apply(null,arguments)};var _truncate64=Module[\"_truncate64\"]=function(){return(_truncate64=Module[\"_truncate64\"]=Module[\"asm\"][\"truncate64\"]).apply(null,arguments)};var _sleep=Module[\"_sleep\"]=function(){return(_sleep=Module[\"_sleep\"]=Module[\"asm\"][\"sleep\"]).apply(null,arguments)};var _nanosleep=Module[\"_nanosleep\"]=function(){return(_nanosleep=Module[\"_nanosleep\"]=Module[\"asm\"][\"nanosleep\"]).apply(null,arguments)};var _pread64=Module[\"_pread64\"]=function(){return(_pread64=Module[\"_pread64\"]=Module[\"asm\"][\"pread64\"]).apply(null,arguments)};var _ualarm=Module[\"_ualarm\"]=function(){return(_ualarm=Module[\"_ualarm\"]=Module[\"asm\"][\"ualarm\"]).apply(null,arguments)};var ___dup3=Module[\"___dup3\"]=function(){return(___dup3=Module[\"___dup3\"]=Module[\"asm\"][\"__dup3\"]).apply(null,arguments)};var _dup3=Module[\"_dup3\"]=function(){return(_dup3=Module[\"_dup3\"]=Module[\"asm\"][\"dup3\"]).apply(null,arguments)};var _ttyname=Module[\"_ttyname\"]=function(){return(_ttyname=Module[\"_ttyname\"]=Module[\"asm\"][\"ttyname\"]).apply(null,arguments)};var _linkat=Module[\"_linkat\"]=function(){return(_linkat=Module[\"_linkat\"]=Module[\"asm\"][\"linkat\"]).apply(null,arguments)};var _getlogin_r=Module[\"_getlogin_r\"]=function(){return(_getlogin_r=Module[\"_getlogin_r\"]=Module[\"asm\"][\"getlogin_r\"]).apply(null,arguments)};var _posix_close=Module[\"_posix_close\"]=function(){return(_posix_close=Module[\"_posix_close\"]=Module[\"asm\"][\"posix_close\"]).apply(null,arguments)};var _symlinkat=Module[\"_symlinkat\"]=function(){return(_symlinkat=Module[\"_symlinkat\"]=Module[\"asm\"][\"symlinkat\"]).apply(null,arguments)};var _nice=Module[\"_nice\"]=function(){return(_nice=Module[\"_nice\"]=Module[\"asm\"][\"nice\"]).apply(null,arguments)};var ___aio_close=Module[\"___aio_close\"]=function(){return(___aio_close=Module[\"___aio_close\"]=Module[\"asm\"][\"__aio_close\"]).apply(null,arguments)};var _preadv=Module[\"_preadv\"]=function(){return(_preadv=Module[\"_preadv\"]=Module[\"asm\"][\"preadv\"]).apply(null,arguments)};var _preadv64=Module[\"_preadv64\"]=function(){return(_preadv64=Module[\"_preadv64\"]=Module[\"asm\"][\"preadv64\"]).apply(null,arguments)};var _lseek64=Module[\"_lseek64\"]=function(){return(_lseek64=Module[\"_lseek64\"]=Module[\"asm\"][\"lseek64\"]).apply(null,arguments)};var _acct=Module[\"_acct\"]=function(){return(_acct=Module[\"_acct\"]=Module[\"asm\"][\"acct\"]).apply(null,arguments)};var _ftruncate64=Module[\"_ftruncate64\"]=function(){return(_ftruncate64=Module[\"_ftruncate64\"]=Module[\"asm\"][\"ftruncate64\"]).apply(null,arguments)};var _fchownat=Module[\"_fchownat\"]=function(){return(_fchownat=Module[\"_fchownat\"]=Module[\"asm\"][\"fchownat\"]).apply(null,arguments)};var _wcsncasecmp=Module[\"_wcsncasecmp\"]=function(){return(_wcsncasecmp=Module[\"_wcsncasecmp\"]=Module[\"asm\"][\"wcsncasecmp\"]).apply(null,arguments)};var _strlcpy=Module[\"_strlcpy\"]=function(){return(_strlcpy=Module[\"_strlcpy\"]=Module[\"asm\"][\"strlcpy\"]).apply(null,arguments)};var _wcsstr=Module[\"_wcsstr\"]=function(){return(_wcsstr=Module[\"_wcsstr\"]=Module[\"asm\"][\"wcsstr\"]).apply(null,arguments)};var _wmemchr=Module[\"_wmemchr\"]=function(){return(_wmemchr=Module[\"_wmemchr\"]=Module[\"asm\"][\"wmemchr\"]).apply(null,arguments)};var _index=Module[\"_index\"]=function(){return(_index=Module[\"_index\"]=Module[\"asm\"][\"index\"]).apply(null,arguments)};var _wcswcs=Module[\"_wcswcs\"]=function(){return(_wcswcs=Module[\"_wcswcs\"]=Module[\"asm\"][\"wcswcs\"]).apply(null,arguments)};var ___memrchr=Module[\"___memrchr\"]=function(){return(___memrchr=Module[\"___memrchr\"]=Module[\"asm\"][\"__memrchr\"]).apply(null,arguments)};var ___strchrnul=Module[\"___strchrnul\"]=function(){return(___strchrnul=Module[\"___strchrnul\"]=Module[\"asm\"][\"__strchrnul\"]).apply(null,arguments)};var _strchrnul=Module[\"_strchrnul\"]=function(){return(_strchrnul=Module[\"_strchrnul\"]=Module[\"asm\"][\"strchrnul\"]).apply(null,arguments)};var _strpbrk=Module[\"_strpbrk\"]=function(){return(_strpbrk=Module[\"_strpbrk\"]=Module[\"asm\"][\"strpbrk\"]).apply(null,arguments)};var _wcsdup=Module[\"_wcsdup\"]=function(){return(_wcsdup=Module[\"_wcsdup\"]=Module[\"asm\"][\"wcsdup\"]).apply(null,arguments)};var _wmemcpy=Module[\"_wmemcpy\"]=function(){return(_wmemcpy=Module[\"_wmemcpy\"]=Module[\"asm\"][\"wmemcpy\"]).apply(null,arguments)};var ___stpncpy=Module[\"___stpncpy\"]=function(){return(___stpncpy=Module[\"___stpncpy\"]=Module[\"asm\"][\"__stpncpy\"]).apply(null,arguments)};var _stpncpy=Module[\"_stpncpy\"]=function(){return(_stpncpy=Module[\"_stpncpy\"]=Module[\"asm\"][\"stpncpy\"]).apply(null,arguments)};var _swab=Module[\"_swab\"]=function(){return(_swab=Module[\"_swab\"]=Module[\"asm\"][\"swab\"]).apply(null,arguments)};var _memmem=Module[\"_memmem\"]=function(){return(_memmem=Module[\"_memmem\"]=Module[\"asm\"][\"memmem\"]).apply(null,arguments)};var _wmemset=Module[\"_wmemset\"]=function(){return(_wmemset=Module[\"_wmemset\"]=Module[\"asm\"][\"wmemset\"]).apply(null,arguments)};var _wcsspn=Module[\"_wcsspn\"]=function(){return(_wcsspn=Module[\"_wcsspn\"]=Module[\"asm\"][\"wcsspn\"]).apply(null,arguments)};var _wcscspn=Module[\"_wcscspn\"]=function(){return(_wcscspn=Module[\"_wcscspn\"]=Module[\"asm\"][\"wcscspn\"]).apply(null,arguments)};var _wcpncpy=Module[\"_wcpncpy\"]=function(){return(_wcpncpy=Module[\"_wcpncpy\"]=Module[\"asm\"][\"wcpncpy\"]).apply(null,arguments)};var _wcsnlen=Module[\"_wcsnlen\"]=function(){return(_wcsnlen=Module[\"_wcsnlen\"]=Module[\"asm\"][\"wcsnlen\"]).apply(null,arguments)};var _strlcat=Module[\"_strlcat\"]=function(){return(_strlcat=Module[\"_strlcat\"]=Module[\"asm\"][\"strlcat\"]).apply(null,arguments)};var _bzero=Module[\"_bzero\"]=function(){return(_bzero=Module[\"_bzero\"]=Module[\"asm\"][\"bzero\"]).apply(null,arguments)};var _wcspbrk=Module[\"_wcspbrk\"]=function(){return(_wcspbrk=Module[\"_wcspbrk\"]=Module[\"asm\"][\"wcspbrk\"]).apply(null,arguments)};var _strncasecmp=Module[\"_strncasecmp\"]=function(){return(_strncasecmp=Module[\"_strncasecmp\"]=Module[\"asm\"][\"strncasecmp\"]).apply(null,arguments)};var ___strncasecmp_l=Module[\"___strncasecmp_l\"]=function(){return(___strncasecmp_l=Module[\"___strncasecmp_l\"]=Module[\"asm\"][\"__strncasecmp_l\"]).apply(null,arguments)};var _strncasecmp_l=Module[\"_strncasecmp_l\"]=function(){return(_strncasecmp_l=Module[\"_strncasecmp_l\"]=Module[\"asm\"][\"strncasecmp_l\"]).apply(null,arguments)};var _strndup=Module[\"_strndup\"]=function(){return(_strndup=Module[\"_strndup\"]=Module[\"asm\"][\"strndup\"]).apply(null,arguments)};var _wcpcpy=Module[\"_wcpcpy\"]=function(){return(_wcpcpy=Module[\"_wcpcpy\"]=Module[\"asm\"][\"wcpcpy\"]).apply(null,arguments)};var _wcscasecmp_l=Module[\"_wcscasecmp_l\"]=function(){return(_wcscasecmp_l=Module[\"_wcscasecmp_l\"]=Module[\"asm\"][\"wcscasecmp_l\"]).apply(null,arguments)};var _wcscasecmp=Module[\"_wcscasecmp\"]=function(){return(_wcscasecmp=Module[\"_wcscasecmp\"]=Module[\"asm\"][\"wcscasecmp\"]).apply(null,arguments)};var _strtok_r=Module[\"_strtok_r\"]=function(){return(_strtok_r=Module[\"_strtok_r\"]=Module[\"asm\"][\"strtok_r\"]).apply(null,arguments)};var _bcmp=Module[\"_bcmp\"]=function(){return(_bcmp=Module[\"_bcmp\"]=Module[\"asm\"][\"bcmp\"]).apply(null,arguments)};var _strcasecmp=Module[\"_strcasecmp\"]=function(){return(_strcasecmp=Module[\"_strcasecmp\"]=Module[\"asm\"][\"strcasecmp\"]).apply(null,arguments)};var ___strcasecmp_l=Module[\"___strcasecmp_l\"]=function(){return(___strcasecmp_l=Module[\"___strcasecmp_l\"]=Module[\"asm\"][\"__strcasecmp_l\"]).apply(null,arguments)};var _strcasecmp_l=Module[\"_strcasecmp_l\"]=function(){return(_strcasecmp_l=Module[\"_strcasecmp_l\"]=Module[\"asm\"][\"strcasecmp_l\"]).apply(null,arguments)};var _memccpy=Module[\"_memccpy\"]=function(){return(_memccpy=Module[\"_memccpy\"]=Module[\"asm\"][\"memccpy\"]).apply(null,arguments)};var _wcsncasecmp_l=Module[\"_wcsncasecmp_l\"]=function(){return(_wcsncasecmp_l=Module[\"_wcsncasecmp_l\"]=Module[\"asm\"][\"wcsncasecmp_l\"]).apply(null,arguments)};var _strncat=Module[\"_strncat\"]=function(){return(_strncat=Module[\"_strncat\"]=Module[\"asm\"][\"strncat\"]).apply(null,arguments)};var _rindex=Module[\"_rindex\"]=function(){return(_rindex=Module[\"_rindex\"]=Module[\"asm\"][\"rindex\"]).apply(null,arguments)};var _wmemmove=Module[\"_wmemmove\"]=function(){return(_wmemmove=Module[\"_wmemmove\"]=Module[\"asm\"][\"wmemmove\"]).apply(null,arguments)};var _strsep=Module[\"_strsep\"]=function(){return(_strsep=Module[\"_strsep\"]=Module[\"asm\"][\"strsep\"]).apply(null,arguments)};var _mempcpy=Module[\"_mempcpy\"]=function(){return(_mempcpy=Module[\"_mempcpy\"]=Module[\"asm\"][\"mempcpy\"]).apply(null,arguments)};var ___stpcpy=Module[\"___stpcpy\"]=function(){return(___stpcpy=Module[\"___stpcpy\"]=Module[\"asm\"][\"__stpcpy\"]).apply(null,arguments)};var _stpcpy=Module[\"_stpcpy\"]=function(){return(_stpcpy=Module[\"_stpcpy\"]=Module[\"asm\"][\"stpcpy\"]).apply(null,arguments)};var ___xpg_strerror_r=Module[\"___xpg_strerror_r\"]=function(){return(___xpg_strerror_r=Module[\"___xpg_strerror_r\"]=Module[\"asm\"][\"__xpg_strerror_r\"]).apply(null,arguments)};var _strcasestr=Module[\"_strcasestr\"]=function(){return(_strcasestr=Module[\"_strcasestr\"]=Module[\"asm\"][\"strcasestr\"]).apply(null,arguments)};var _bcopy=Module[\"_bcopy\"]=function(){return(_bcopy=Module[\"_bcopy\"]=Module[\"asm\"][\"bcopy\"]).apply(null,arguments)};var ___strdup=Module[\"___strdup\"]=function(){return(___strdup=Module[\"___strdup\"]=Module[\"asm\"][\"__strdup\"]).apply(null,arguments)};var ___shm_mapname=Module[\"___shm_mapname\"]=function(){return(___shm_mapname=Module[\"___shm_mapname\"]=Module[\"asm\"][\"__shm_mapname\"]).apply(null,arguments)};var _shm_open=Module[\"_shm_open\"]=function(){return(_shm_open=Module[\"_shm_open\"]=Module[\"asm\"][\"shm_open\"]).apply(null,arguments)};var _shm_unlink=Module[\"_shm_unlink\"]=function(){return(_shm_unlink=Module[\"_shm_unlink\"]=Module[\"asm\"][\"shm_unlink\"]).apply(null,arguments)};var ___mremap=Module[\"___mremap\"]=function(){return(___mremap=Module[\"___mremap\"]=Module[\"asm\"][\"__mremap\"]).apply(null,arguments)};var ___vm_wait=Module[\"___vm_wait\"]=function(){return(___vm_wait=Module[\"___vm_wait\"]=Module[\"asm\"][\"__vm_wait\"]).apply(null,arguments)};var _mincore=Module[\"_mincore\"]=function(){return(_mincore=Module[\"_mincore\"]=Module[\"asm\"][\"mincore\"]).apply(null,arguments)};var ___mprotect=Module[\"___mprotect\"]=function(){return(___mprotect=Module[\"___mprotect\"]=Module[\"asm\"][\"__mprotect\"]).apply(null,arguments)};var _mprotect=Module[\"_mprotect\"]=function(){return(_mprotect=Module[\"_mprotect\"]=Module[\"asm\"][\"mprotect\"]).apply(null,arguments)};var ___munmap=Module[\"___munmap\"]=function(){return(___munmap=Module[\"___munmap\"]=Module[\"asm\"][\"__munmap\"]).apply(null,arguments)};var _munlock=Module[\"_munlock\"]=function(){return(_munlock=Module[\"_munlock\"]=Module[\"asm\"][\"munlock\"]).apply(null,arguments)};var _mlockall=Module[\"_mlockall\"]=function(){return(_mlockall=Module[\"_mlockall\"]=Module[\"asm\"][\"mlockall\"]).apply(null,arguments)};var _posix_madvise=Module[\"_posix_madvise\"]=function(){return(_posix_madvise=Module[\"_posix_madvise\"]=Module[\"asm\"][\"posix_madvise\"]).apply(null,arguments)};var ___madvise=Module[\"___madvise\"]=function(){return(___madvise=Module[\"___madvise\"]=Module[\"asm\"][\"__madvise\"]).apply(null,arguments)};var _munlockall=Module[\"_munlockall\"]=function(){return(_munlockall=Module[\"_munlockall\"]=Module[\"asm\"][\"munlockall\"]).apply(null,arguments)};var _mlock=Module[\"_mlock\"]=function(){return(_mlock=Module[\"_mlock\"]=Module[\"asm\"][\"mlock\"]).apply(null,arguments)};var ___mmap=Module[\"___mmap\"]=function(){return(___mmap=Module[\"___mmap\"]=Module[\"asm\"][\"__mmap\"]).apply(null,arguments)};var _mmap64=Module[\"_mmap64\"]=function(){return(_mmap64=Module[\"_mmap64\"]=Module[\"asm\"][\"mmap64\"]).apply(null,arguments)};var _ccosf=Module[\"_ccosf\"]=function(){return(_ccosf=Module[\"_ccosf\"]=Module[\"asm\"][\"ccosf\"]).apply(null,arguments)};var _ccoshf=Module[\"_ccoshf\"]=function(){return(_ccoshf=Module[\"_ccoshf\"]=Module[\"asm\"][\"ccoshf\"]).apply(null,arguments)};var ___ldexp_cexp=Module[\"___ldexp_cexp\"]=function(){return(___ldexp_cexp=Module[\"___ldexp_cexp\"]=Module[\"asm\"][\"__ldexp_cexp\"]).apply(null,arguments)};var _creall=Module[\"_creall\"]=function(){return(_creall=Module[\"_creall\"]=Module[\"asm\"][\"creall\"]).apply(null,arguments)};var _clogl=Module[\"_clogl\"]=function(){return(_clogl=Module[\"_clogl\"]=Module[\"asm\"][\"clogl\"]).apply(null,arguments)};var _cabsl=Module[\"_cabsl\"]=function(){return(_cabsl=Module[\"_cabsl\"]=Module[\"asm\"][\"cabsl\"]).apply(null,arguments)};var _cargl=Module[\"_cargl\"]=function(){return(_cargl=Module[\"_cargl\"]=Module[\"asm\"][\"cargl\"]).apply(null,arguments)};var _logl=Module[\"_logl\"]=function(){return(_logl=Module[\"_logl\"]=Module[\"asm\"][\"logl\"]).apply(null,arguments)};var _ccoshl=Module[\"_ccoshl\"]=function(){return(_ccoshl=Module[\"_ccoshl\"]=Module[\"asm\"][\"ccoshl\"]).apply(null,arguments)};var _ccosh=Module[\"_ccosh\"]=function(){return(_ccosh=Module[\"_ccosh\"]=Module[\"asm\"][\"ccosh\"]).apply(null,arguments)};var _cacosl=Module[\"_cacosl\"]=function(){return(_cacosl=Module[\"_cacosl\"]=Module[\"asm\"][\"cacosl\"]).apply(null,arguments)};var _casinl=Module[\"_casinl\"]=function(){return(_casinl=Module[\"_casinl\"]=Module[\"asm\"][\"casinl\"]).apply(null,arguments)};var _catan=Module[\"_catan\"]=function(){return(_catan=Module[\"_catan\"]=Module[\"asm\"][\"catan\"]).apply(null,arguments)};var _creal=Module[\"_creal\"]=function(){return(_creal=Module[\"_creal\"]=Module[\"asm\"][\"creal\"]).apply(null,arguments)};var _cacosf=Module[\"_cacosf\"]=function(){return(_cacosf=Module[\"_cacosf\"]=Module[\"asm\"][\"cacosf\"]).apply(null,arguments)};var _casinf=Module[\"_casinf\"]=function(){return(_casinf=Module[\"_casinf\"]=Module[\"asm\"][\"casinf\"]).apply(null,arguments)};var _csqrtf=Module[\"_csqrtf\"]=function(){return(_csqrtf=Module[\"_csqrtf\"]=Module[\"asm\"][\"csqrtf\"]).apply(null,arguments)};var _fabsf=Module[\"_fabsf\"]=function(){return(_fabsf=Module[\"_fabsf\"]=Module[\"asm\"][\"fabsf\"]).apply(null,arguments)};var _copysignf=Module[\"_copysignf\"]=function(){return(_copysignf=Module[\"_copysignf\"]=Module[\"asm\"][\"copysignf\"]).apply(null,arguments)};var _ccos=Module[\"_ccos\"]=function(){return(_ccos=Module[\"_ccos\"]=Module[\"asm\"][\"ccos\"]).apply(null,arguments)};var _cexpf=Module[\"_cexpf\"]=function(){return(_cexpf=Module[\"_cexpf\"]=Module[\"asm\"][\"cexpf\"]).apply(null,arguments)};var _expf=Module[\"_expf\"]=function(){return(_expf=Module[\"_expf\"]=Module[\"asm\"][\"expf\"]).apply(null,arguments)};var _cosf=Module[\"_cosf\"]=function(){return(_cosf=Module[\"_cosf\"]=Module[\"asm\"][\"cosf\"]).apply(null,arguments)};var _sinf=Module[\"_sinf\"]=function(){return(_sinf=Module[\"_sinf\"]=Module[\"asm\"][\"sinf\"]).apply(null,arguments)};var ___ldexp_cexpf=Module[\"___ldexp_cexpf\"]=function(){return(___ldexp_cexpf=Module[\"___ldexp_cexpf\"]=Module[\"asm\"][\"__ldexp_cexpf\"]).apply(null,arguments)};var _coshf=Module[\"_coshf\"]=function(){return(_coshf=Module[\"_coshf\"]=Module[\"asm\"][\"coshf\"]).apply(null,arguments)};var _sinhf=Module[\"_sinhf\"]=function(){return(_sinhf=Module[\"_sinhf\"]=Module[\"asm\"][\"sinhf\"]).apply(null,arguments)};var _cacosh=Module[\"_cacosh\"]=function(){return(_cacosh=Module[\"_cacosh\"]=Module[\"asm\"][\"cacosh\"]).apply(null,arguments)};var _cacos=Module[\"_cacos\"]=function(){return(_cacos=Module[\"_cacos\"]=Module[\"asm\"][\"cacos\"]).apply(null,arguments)};var _ctanhf=Module[\"_ctanhf\"]=function(){return(_ctanhf=Module[\"_ctanhf\"]=Module[\"asm\"][\"ctanhf\"]).apply(null,arguments)};var _tanf=Module[\"_tanf\"]=function(){return(_tanf=Module[\"_tanf\"]=Module[\"asm\"][\"tanf\"]).apply(null,arguments)};var _sqrtf=Module[\"_sqrtf\"]=function(){return(_sqrtf=Module[\"_sqrtf\"]=Module[\"asm\"][\"sqrtf\"]).apply(null,arguments)};var _csinhl=Module[\"_csinhl\"]=function(){return(_csinhl=Module[\"_csinhl\"]=Module[\"asm\"][\"csinhl\"]).apply(null,arguments)};var _csinh=Module[\"_csinh\"]=function(){return(_csinh=Module[\"_csinh\"]=Module[\"asm\"][\"csinh\"]).apply(null,arguments)};var _cproj=Module[\"_cproj\"]=function(){return(_cproj=Module[\"_cproj\"]=Module[\"asm\"][\"cproj\"]).apply(null,arguments)};var _conjf=Module[\"_conjf\"]=function(){return(_conjf=Module[\"_conjf\"]=Module[\"asm\"][\"conjf\"]).apply(null,arguments)};var _catanl=Module[\"_catanl\"]=function(){return(_catanl=Module[\"_catanl\"]=Module[\"asm\"][\"catanl\"]).apply(null,arguments)};var ___eqtf2=Module[\"___eqtf2\"]=function(){return(___eqtf2=Module[\"___eqtf2\"]=Module[\"asm\"][\"__eqtf2\"]).apply(null,arguments)};var _atan2l=Module[\"_atan2l\"]=function(){return(_atan2l=Module[\"_atan2l\"]=Module[\"asm\"][\"atan2l\"]).apply(null,arguments)};var _cargf=Module[\"_cargf\"]=function(){return(_cargf=Module[\"_cargf\"]=Module[\"asm\"][\"cargf\"]).apply(null,arguments)};var _atan2f=Module[\"_atan2f\"]=function(){return(_atan2f=Module[\"_atan2f\"]=Module[\"asm\"][\"atan2f\"]).apply(null,arguments)};var _casinhl=Module[\"_casinhl\"]=function(){return(_casinhl=Module[\"_casinhl\"]=Module[\"asm\"][\"casinhl\"]).apply(null,arguments)};var _ctanl=Module[\"_ctanl\"]=function(){return(_ctanl=Module[\"_ctanl\"]=Module[\"asm\"][\"ctanl\"]).apply(null,arguments)};var _ctanhl=Module[\"_ctanhl\"]=function(){return(_ctanhl=Module[\"_ctanhl\"]=Module[\"asm\"][\"ctanhl\"]).apply(null,arguments)};var _catanhf=Module[\"_catanhf\"]=function(){return(_catanhf=Module[\"_catanhf\"]=Module[\"asm\"][\"catanhf\"]).apply(null,arguments)};var _catanf=Module[\"_catanf\"]=function(){return(_catanf=Module[\"_catanf\"]=Module[\"asm\"][\"catanf\"]).apply(null,arguments)};var _cpowf=Module[\"_cpowf\"]=function(){return(_cpowf=Module[\"_cpowf\"]=Module[\"asm\"][\"cpowf\"]).apply(null,arguments)};var _clogf=Module[\"_clogf\"]=function(){return(_clogf=Module[\"_clogf\"]=Module[\"asm\"][\"clogf\"]).apply(null,arguments)};var ___mulsc3=Module[\"___mulsc3\"]=function(){return(___mulsc3=Module[\"___mulsc3\"]=Module[\"asm\"][\"__mulsc3\"]).apply(null,arguments)};var _csqrtl=Module[\"_csqrtl\"]=function(){return(_csqrtl=Module[\"_csqrtl\"]=Module[\"asm\"][\"csqrtl\"]).apply(null,arguments)};var _csqrt=Module[\"_csqrt\"]=function(){return(_csqrt=Module[\"_csqrt\"]=Module[\"asm\"][\"csqrt\"]).apply(null,arguments)};var ___muldc3=Module[\"___muldc3\"]=function(){return(___muldc3=Module[\"___muldc3\"]=Module[\"asm\"][\"__muldc3\"]).apply(null,arguments)};var _ctan=Module[\"_ctan\"]=function(){return(_ctan=Module[\"_ctan\"]=Module[\"asm\"][\"ctan\"]).apply(null,arguments)};var _ctanh=Module[\"_ctanh\"]=function(){return(_ctanh=Module[\"_ctanh\"]=Module[\"asm\"][\"ctanh\"]).apply(null,arguments)};var _casinhf=Module[\"_casinhf\"]=function(){return(_casinhf=Module[\"_casinhf\"]=Module[\"asm\"][\"casinhf\"]).apply(null,arguments)};var _csinf=Module[\"_csinf\"]=function(){return(_csinf=Module[\"_csinf\"]=Module[\"asm\"][\"csinf\"]).apply(null,arguments)};var _csinhf=Module[\"_csinhf\"]=function(){return(_csinhf=Module[\"_csinhf\"]=Module[\"asm\"][\"csinhf\"]).apply(null,arguments)};var _cexp=Module[\"_cexp\"]=function(){return(_cexp=Module[\"_cexp\"]=Module[\"asm\"][\"cexp\"]).apply(null,arguments)};var _cpowl=Module[\"_cpowl\"]=function(){return(_cpowl=Module[\"_cpowl\"]=Module[\"asm\"][\"cpowl\"]).apply(null,arguments)};var ___unordtf2=Module[\"___unordtf2\"]=function(){return(___unordtf2=Module[\"___unordtf2\"]=Module[\"asm\"][\"__unordtf2\"]).apply(null,arguments)};var ___multc3=Module[\"___multc3\"]=function(){return(___multc3=Module[\"___multc3\"]=Module[\"asm\"][\"__multc3\"]).apply(null,arguments)};var _cexpl=Module[\"_cexpl\"]=function(){return(_cexpl=Module[\"_cexpl\"]=Module[\"asm\"][\"cexpl\"]).apply(null,arguments)};var _carg=Module[\"_carg\"]=function(){return(_carg=Module[\"_carg\"]=Module[\"asm\"][\"carg\"]).apply(null,arguments)};var _cabsf=Module[\"_cabsf\"]=function(){return(_cabsf=Module[\"_cabsf\"]=Module[\"asm\"][\"cabsf\"]).apply(null,arguments)};var _hypotf=Module[\"_hypotf\"]=function(){return(_hypotf=Module[\"_hypotf\"]=Module[\"asm\"][\"hypotf\"]).apply(null,arguments)};var _hypotl=Module[\"_hypotl\"]=function(){return(_hypotl=Module[\"_hypotl\"]=Module[\"asm\"][\"hypotl\"]).apply(null,arguments)};var _conjl=Module[\"_conjl\"]=function(){return(_conjl=Module[\"_conjl\"]=Module[\"asm\"][\"conjl\"]).apply(null,arguments)};var _logf=Module[\"_logf\"]=function(){return(_logf=Module[\"_logf\"]=Module[\"asm\"][\"logf\"]).apply(null,arguments)};var _catanhl=Module[\"_catanhl\"]=function(){return(_catanhl=Module[\"_catanhl\"]=Module[\"asm\"][\"catanhl\"]).apply(null,arguments)};var _cabs=Module[\"_cabs\"]=function(){return(_cabs=Module[\"_cabs\"]=Module[\"asm\"][\"cabs\"]).apply(null,arguments)};var _cprojf=Module[\"_cprojf\"]=function(){return(_cprojf=Module[\"_cprojf\"]=Module[\"asm\"][\"cprojf\"]).apply(null,arguments)};var _cprojl=Module[\"_cprojl\"]=function(){return(_cprojl=Module[\"_cprojl\"]=Module[\"asm\"][\"cprojl\"]).apply(null,arguments)};var ___fpclassifyl=Module[\"___fpclassifyl\"]=function(){return(___fpclassifyl=Module[\"___fpclassifyl\"]=Module[\"asm\"][\"__fpclassifyl\"]).apply(null,arguments)};var _catanh=Module[\"_catanh\"]=function(){return(_catanh=Module[\"_catanh\"]=Module[\"asm\"][\"catanh\"]).apply(null,arguments)};var _ccosl=Module[\"_ccosl\"]=function(){return(_ccosl=Module[\"_ccosl\"]=Module[\"asm\"][\"ccosl\"]).apply(null,arguments)};var _casin=Module[\"_casin\"]=function(){return(_casin=Module[\"_casin\"]=Module[\"asm\"][\"casin\"]).apply(null,arguments)};var _ctanf=Module[\"_ctanf\"]=function(){return(_ctanf=Module[\"_ctanf\"]=Module[\"asm\"][\"ctanf\"]).apply(null,arguments)};var _casinh=Module[\"_casinh\"]=function(){return(_casinh=Module[\"_casinh\"]=Module[\"asm\"][\"casinh\"]).apply(null,arguments)};var _cimag=Module[\"_cimag\"]=function(){return(_cimag=Module[\"_cimag\"]=Module[\"asm\"][\"cimag\"]).apply(null,arguments)};var _cacoshf=Module[\"_cacoshf\"]=function(){return(_cacoshf=Module[\"_cacoshf\"]=Module[\"asm\"][\"cacoshf\"]).apply(null,arguments)};var _conj=Module[\"_conj\"]=function(){return(_conj=Module[\"_conj\"]=Module[\"asm\"][\"conj\"]).apply(null,arguments)};var _cpow=Module[\"_cpow\"]=function(){return(_cpow=Module[\"_cpow\"]=Module[\"asm\"][\"cpow\"]).apply(null,arguments)};var _clog=Module[\"_clog\"]=function(){return(_clog=Module[\"_clog\"]=Module[\"asm\"][\"clog\"]).apply(null,arguments)};var _csin=Module[\"_csin\"]=function(){return(_csin=Module[\"_csin\"]=Module[\"asm\"][\"csin\"]).apply(null,arguments)};var _cimagl=Module[\"_cimagl\"]=function(){return(_cimagl=Module[\"_cimagl\"]=Module[\"asm\"][\"cimagl\"]).apply(null,arguments)};var _cimagf=Module[\"_cimagf\"]=function(){return(_cimagf=Module[\"_cimagf\"]=Module[\"asm\"][\"cimagf\"]).apply(null,arguments)};var _csinl=Module[\"_csinl\"]=function(){return(_csinl=Module[\"_csinl\"]=Module[\"asm\"][\"csinl\"]).apply(null,arguments)};var _cacoshl=Module[\"_cacoshl\"]=function(){return(_cacoshl=Module[\"_cacoshl\"]=Module[\"asm\"][\"cacoshl\"]).apply(null,arguments)};var _crealf=Module[\"_crealf\"]=function(){return(_crealf=Module[\"_crealf\"]=Module[\"asm\"][\"crealf\"]).apply(null,arguments)};var _cbrtf=Module[\"_cbrtf\"]=function(){return(_cbrtf=Module[\"_cbrtf\"]=Module[\"asm\"][\"cbrtf\"]).apply(null,arguments)};var _lrint=Module[\"_lrint\"]=function(){return(_lrint=Module[\"_lrint\"]=Module[\"asm\"][\"lrint\"]).apply(null,arguments)};var _rint=Module[\"_rint\"]=function(){return(_rint=Module[\"_rint\"]=Module[\"asm\"][\"rint\"]).apply(null,arguments)};var _scalbnf=Module[\"_scalbnf\"]=function(){return(_scalbnf=Module[\"_scalbnf\"]=Module[\"asm\"][\"scalbnf\"]).apply(null,arguments)};var _log10l=Module[\"_log10l\"]=function(){return(_log10l=Module[\"_log10l\"]=Module[\"asm\"][\"log10l\"]).apply(null,arguments)};var ___invtrigl_R=Module[\"___invtrigl_R\"]=function(){return(___invtrigl_R=Module[\"___invtrigl_R\"]=Module[\"asm\"][\"__invtrigl_R\"]).apply(null,arguments)};var _powl=Module[\"_powl\"]=function(){return(_powl=Module[\"_powl\"]=Module[\"asm\"][\"powl\"]).apply(null,arguments)};var _scalb=Module[\"_scalb\"]=function(){return(_scalb=Module[\"_scalb\"]=Module[\"asm\"][\"scalb\"]).apply(null,arguments)};var _tgammaf=Module[\"_tgammaf\"]=function(){return(_tgammaf=Module[\"_tgammaf\"]=Module[\"asm\"][\"tgammaf\"]).apply(null,arguments)};var _tgamma=Module[\"_tgamma\"]=function(){return(_tgamma=Module[\"_tgamma\"]=Module[\"asm\"][\"tgamma\"]).apply(null,arguments)};var _powf=Module[\"_powf\"]=function(){return(_powf=Module[\"_powf\"]=Module[\"asm\"][\"powf\"]).apply(null,arguments)};var _nan=Module[\"_nan\"]=function(){return(_nan=Module[\"_nan\"]=Module[\"asm\"][\"nan\"]).apply(null,arguments)};var _j1f=Module[\"_j1f\"]=function(){return(_j1f=Module[\"_j1f\"]=Module[\"asm\"][\"j1f\"]).apply(null,arguments)};var _y1f=Module[\"_y1f\"]=function(){return(_y1f=Module[\"_y1f\"]=Module[\"asm\"][\"y1f\"]).apply(null,arguments)};var _lrintf=Module[\"_lrintf\"]=function(){return(_lrintf=Module[\"_lrintf\"]=Module[\"asm\"][\"lrintf\"]).apply(null,arguments)};var _rintf=Module[\"_rintf\"]=function(){return(_rintf=Module[\"_rintf\"]=Module[\"asm\"][\"rintf\"]).apply(null,arguments)};var _fdimf=Module[\"_fdimf\"]=function(){return(_fdimf=Module[\"_fdimf\"]=Module[\"asm\"][\"fdimf\"]).apply(null,arguments)};var _nearbyintl=Module[\"_nearbyintl\"]=function(){return(_nearbyintl=Module[\"_nearbyintl\"]=Module[\"asm\"][\"nearbyintl\"]).apply(null,arguments)};var _rintl=Module[\"_rintl\"]=function(){return(_rintl=Module[\"_rintl\"]=Module[\"asm\"][\"rintl\"]).apply(null,arguments)};var _nextafterf=Module[\"_nextafterf\"]=function(){return(_nextafterf=Module[\"_nextafterf\"]=Module[\"asm\"][\"nextafterf\"]).apply(null,arguments)};var _truncl=Module[\"_truncl\"]=function(){return(_truncl=Module[\"_truncl\"]=Module[\"asm\"][\"truncl\"]).apply(null,arguments)};var ___rem_pio2=Module[\"___rem_pio2\"]=function(){return(___rem_pio2=Module[\"___rem_pio2\"]=Module[\"asm\"][\"__rem_pio2\"]).apply(null,arguments)};var ___rem_pio2_large=Module[\"___rem_pio2_large\"]=function(){return(___rem_pio2_large=Module[\"___rem_pio2_large\"]=Module[\"asm\"][\"__rem_pio2_large\"]).apply(null,arguments)};var _j1=Module[\"_j1\"]=function(){return(_j1=Module[\"_j1\"]=Module[\"asm\"][\"j1\"]).apply(null,arguments)};var _y1=Module[\"_y1\"]=function(){return(_y1=Module[\"_y1\"]=Module[\"asm\"][\"y1\"]).apply(null,arguments)};var _ilogbl=Module[\"_ilogbl\"]=function(){return(_ilogbl=Module[\"_ilogbl\"]=Module[\"asm\"][\"ilogbl\"]).apply(null,arguments)};var _llrintl=Module[\"_llrintl\"]=function(){return(_llrintl=Module[\"_llrintl\"]=Module[\"asm\"][\"llrintl\"]).apply(null,arguments)};var _floor=Module[\"_floor\"]=function(){return(_floor=Module[\"_floor\"]=Module[\"asm\"][\"floor\"]).apply(null,arguments)};var _erfl=Module[\"_erfl\"]=function(){return(_erfl=Module[\"_erfl\"]=Module[\"asm\"][\"erfl\"]).apply(null,arguments)};var _erfcl=Module[\"_erfcl\"]=function(){return(_erfcl=Module[\"_erfcl\"]=Module[\"asm\"][\"erfcl\"]).apply(null,arguments)};var _fdim=Module[\"_fdim\"]=function(){return(_fdim=Module[\"_fdim\"]=Module[\"asm\"][\"fdim\"]).apply(null,arguments)};var _significandf=Module[\"_significandf\"]=function(){return(_significandf=Module[\"_significandf\"]=Module[\"asm\"][\"significandf\"]).apply(null,arguments)};var _ilogbf=Module[\"_ilogbf\"]=function(){return(_ilogbf=Module[\"_ilogbf\"]=Module[\"asm\"][\"ilogbf\"]).apply(null,arguments)};var _asinhl=Module[\"_asinhl\"]=function(){return(_asinhl=Module[\"_asinhl\"]=Module[\"asm\"][\"asinhl\"]).apply(null,arguments)};var ___lgammal_r=Module[\"___lgammal_r\"]=function(){return(___lgammal_r=Module[\"___lgammal_r\"]=Module[\"asm\"][\"__lgammal_r\"]).apply(null,arguments)};var ___lgamma_r=Module[\"___lgamma_r\"]=function(){return(___lgamma_r=Module[\"___lgamma_r\"]=Module[\"asm\"][\"__lgamma_r\"]).apply(null,arguments)};var _lgammal=Module[\"_lgammal\"]=function(){return(_lgammal=Module[\"_lgammal\"]=Module[\"asm\"][\"lgammal\"]).apply(null,arguments)};var _lgammal_r=Module[\"_lgammal_r\"]=function(){return(_lgammal_r=Module[\"_lgammal_r\"]=Module[\"asm\"][\"lgammal_r\"]).apply(null,arguments)};var _log1pl=Module[\"_log1pl\"]=function(){return(_log1pl=Module[\"_log1pl\"]=Module[\"asm\"][\"log1pl\"]).apply(null,arguments)};var _logbl=Module[\"_logbl\"]=function(){return(_logbl=Module[\"_logbl\"]=Module[\"asm\"][\"logbl\"]).apply(null,arguments)};var ___sin=Module[\"___sin\"]=function(){return(___sin=Module[\"___sin\"]=Module[\"asm\"][\"__sin\"]).apply(null,arguments)};var ___cos=Module[\"___cos\"]=function(){return(___cos=Module[\"___cos\"]=Module[\"asm\"][\"__cos\"]).apply(null,arguments)};var _lgamma_r=Module[\"_lgamma_r\"]=function(){return(_lgamma_r=Module[\"_lgamma_r\"]=Module[\"asm\"][\"lgamma_r\"]).apply(null,arguments)};var _llrintf=Module[\"_llrintf\"]=function(){return(_llrintf=Module[\"_llrintf\"]=Module[\"asm\"][\"llrintf\"]).apply(null,arguments)};var _sqrtl=Module[\"_sqrtl\"]=function(){return(_sqrtl=Module[\"_sqrtl\"]=Module[\"asm\"][\"sqrtl\"]).apply(null,arguments)};var ___lgammaf_r=Module[\"___lgammaf_r\"]=function(){return(___lgammaf_r=Module[\"___lgammaf_r\"]=Module[\"asm\"][\"__lgammaf_r\"]).apply(null,arguments)};var _floorf=Module[\"_floorf\"]=function(){return(_floorf=Module[\"_floorf\"]=Module[\"asm\"][\"floorf\"]).apply(null,arguments)};var ___sindf=Module[\"___sindf\"]=function(){return(___sindf=Module[\"___sindf\"]=Module[\"asm\"][\"__sindf\"]).apply(null,arguments)};var ___cosdf=Module[\"___cosdf\"]=function(){return(___cosdf=Module[\"___cosdf\"]=Module[\"asm\"][\"__cosdf\"]).apply(null,arguments)};var _lgammaf_r=Module[\"_lgammaf_r\"]=function(){return(_lgammaf_r=Module[\"_lgammaf_r\"]=Module[\"asm\"][\"lgammaf_r\"]).apply(null,arguments)};var _nearbyintf=Module[\"_nearbyintf\"]=function(){return(_nearbyintf=Module[\"_nearbyintf\"]=Module[\"asm\"][\"nearbyintf\"]).apply(null,arguments)};var ___rem_pio2f=Module[\"___rem_pio2f\"]=function(){return(___rem_pio2f=Module[\"___rem_pio2f\"]=Module[\"asm\"][\"__rem_pio2f\"]).apply(null,arguments)};var _cbrt=Module[\"_cbrt\"]=function(){return(_cbrt=Module[\"_cbrt\"]=Module[\"asm\"][\"cbrt\"]).apply(null,arguments)};var _nanl=Module[\"_nanl\"]=function(){return(_nanl=Module[\"_nanl\"]=Module[\"asm\"][\"nanl\"]).apply(null,arguments)};var _significand=Module[\"_significand\"]=function(){return(_significand=Module[\"_significand\"]=Module[\"asm\"][\"significand\"]).apply(null,arguments)};var _ilogb=Module[\"_ilogb\"]=function(){return(_ilogb=Module[\"_ilogb\"]=Module[\"asm\"][\"ilogb\"]).apply(null,arguments)};var _modfl=Module[\"_modfl\"]=function(){return(_modfl=Module[\"_modfl\"]=Module[\"asm\"][\"modfl\"]).apply(null,arguments)};var _coshl=Module[\"_coshl\"]=function(){return(_coshl=Module[\"_coshl\"]=Module[\"asm\"][\"coshl\"]).apply(null,arguments)};var _remquof=Module[\"_remquof\"]=function(){return(_remquof=Module[\"_remquof\"]=Module[\"asm\"][\"remquof\"]).apply(null,arguments)};var _asinl=Module[\"_asinl\"]=function(){return(_asinl=Module[\"_asinl\"]=Module[\"asm\"][\"asinl\"]).apply(null,arguments)};var _log1pf=Module[\"_log1pf\"]=function(){return(_log1pf=Module[\"_log1pf\"]=Module[\"asm\"][\"log1pf\"]).apply(null,arguments)};var ___fpclassify=Module[\"___fpclassify\"]=function(){return(___fpclassify=Module[\"___fpclassify\"]=Module[\"asm\"][\"__fpclassify\"]).apply(null,arguments)};var _lrintl=Module[\"_lrintl\"]=function(){return(_lrintl=Module[\"_lrintl\"]=Module[\"asm\"][\"lrintl\"]).apply(null,arguments)};var _fmal=Module[\"_fmal\"]=function(){return(_fmal=Module[\"_fmal\"]=Module[\"asm\"][\"fmal\"]).apply(null,arguments)};var _frexpl=Module[\"_frexpl\"]=function(){return(_frexpl=Module[\"_frexpl\"]=Module[\"asm\"][\"frexpl\"]).apply(null,arguments)};var _nextafterl=Module[\"_nextafterl\"]=function(){return(_nextafterl=Module[\"_nextafterl\"]=Module[\"asm\"][\"nextafterl\"]).apply(null,arguments)};var _sinl=Module[\"_sinl\"]=function(){return(_sinl=Module[\"_sinl\"]=Module[\"asm\"][\"sinl\"]).apply(null,arguments)};var ___sinl=Module[\"___sinl\"]=function(){return(___sinl=Module[\"___sinl\"]=Module[\"asm\"][\"__sinl\"]).apply(null,arguments)};var ___rem_pio2l=Module[\"___rem_pio2l\"]=function(){return(___rem_pio2l=Module[\"___rem_pio2l\"]=Module[\"asm\"][\"__rem_pio2l\"]).apply(null,arguments)};var ___cosl=Module[\"___cosl\"]=function(){return(___cosl=Module[\"___cosl\"]=Module[\"asm\"][\"__cosl\"]).apply(null,arguments)};var _scalblnl=Module[\"_scalblnl\"]=function(){return(_scalblnl=Module[\"_scalblnl\"]=Module[\"asm\"][\"scalblnl\"]).apply(null,arguments)};var _j0=Module[\"_j0\"]=function(){return(_j0=Module[\"_j0\"]=Module[\"asm\"][\"j0\"]).apply(null,arguments)};var _y0=Module[\"_y0\"]=function(){return(_y0=Module[\"_y0\"]=Module[\"asm\"][\"y0\"]).apply(null,arguments)};var _acosl=Module[\"_acosl\"]=function(){return(_acosl=Module[\"_acosl\"]=Module[\"asm\"][\"acosl\"]).apply(null,arguments)};var _acoshf=Module[\"_acoshf\"]=function(){return(_acoshf=Module[\"_acoshf\"]=Module[\"asm\"][\"acoshf\"]).apply(null,arguments)};var ___expo2f=Module[\"___expo2f\"]=function(){return(___expo2f=Module[\"___expo2f\"]=Module[\"asm\"][\"__expo2f\"]).apply(null,arguments)};var _floorl=Module[\"_floorl\"]=function(){return(_floorl=Module[\"_floorl\"]=Module[\"asm\"][\"floorl\"]).apply(null,arguments)};var _remainderf=Module[\"_remainderf\"]=function(){return(_remainderf=Module[\"_remainderf\"]=Module[\"asm\"][\"remainderf\"]).apply(null,arguments)};var _dremf=Module[\"_dremf\"]=function(){return(_dremf=Module[\"_dremf\"]=Module[\"asm\"][\"dremf\"]).apply(null,arguments)};var _finitef=Module[\"_finitef\"]=function(){return(_finitef=Module[\"_finitef\"]=Module[\"asm\"][\"finitef\"]).apply(null,arguments)};var _logb=Module[\"_logb\"]=function(){return(_logb=Module[\"_logb\"]=Module[\"asm\"][\"logb\"]).apply(null,arguments)};var _nanf=Module[\"_nanf\"]=function(){return(_nanf=Module[\"_nanf\"]=Module[\"asm\"][\"nanf\"]).apply(null,arguments)};var _expm1f=Module[\"_expm1f\"]=function(){return(_expm1f=Module[\"_expm1f\"]=Module[\"asm\"][\"expm1f\"]).apply(null,arguments)};var _llroundl=Module[\"_llroundl\"]=function(){return(_llroundl=Module[\"_llroundl\"]=Module[\"asm\"][\"llroundl\"]).apply(null,arguments)};var _roundl=Module[\"_roundl\"]=function(){return(_roundl=Module[\"_roundl\"]=Module[\"asm\"][\"roundl\"]).apply(null,arguments)};var ___expo2=Module[\"___expo2\"]=function(){return(___expo2=Module[\"___expo2\"]=Module[\"asm\"][\"__expo2\"]).apply(null,arguments)};var _llround=Module[\"_llround\"]=function(){return(_llround=Module[\"_llround\"]=Module[\"asm\"][\"llround\"]).apply(null,arguments)};var _remainder=Module[\"_remainder\"]=function(){return(_remainder=Module[\"_remainder\"]=Module[\"asm\"][\"remainder\"]).apply(null,arguments)};var _remquo=Module[\"_remquo\"]=function(){return(_remquo=Module[\"_remquo\"]=Module[\"asm\"][\"remquo\"]).apply(null,arguments)};var _drem=Module[\"_drem\"]=function(){return(_drem=Module[\"_drem\"]=Module[\"asm\"][\"drem\"]).apply(null,arguments)};var _frexpf=Module[\"_frexpf\"]=function(){return(_frexpf=Module[\"_frexpf\"]=Module[\"asm\"][\"frexpf\"]).apply(null,arguments)};var _roundf=Module[\"_roundf\"]=function(){return(_roundf=Module[\"_roundf\"]=Module[\"asm\"][\"roundf\"]).apply(null,arguments)};var _tanhf=Module[\"_tanhf\"]=function(){return(_tanhf=Module[\"_tanhf\"]=Module[\"asm\"][\"tanhf\"]).apply(null,arguments)};var _ceill=Module[\"_ceill\"]=function(){return(_ceill=Module[\"_ceill\"]=Module[\"asm\"][\"ceill\"]).apply(null,arguments)};var _scalbln=Module[\"_scalbln\"]=function(){return(_scalbln=Module[\"_scalbln\"]=Module[\"asm\"][\"scalbln\"]).apply(null,arguments)};var _fmaf=Module[\"_fmaf\"]=function(){return(_fmaf=Module[\"_fmaf\"]=Module[\"asm\"][\"fmaf\"]).apply(null,arguments)};var _logbf=Module[\"_logbf\"]=function(){return(_logbf=Module[\"_logbf\"]=Module[\"asm\"][\"logbf\"]).apply(null,arguments)};var _asinf=Module[\"_asinf\"]=function(){return(_asinf=Module[\"_asinf\"]=Module[\"asm\"][\"asinf\"]).apply(null,arguments)};var _ldexpl=Module[\"_ldexpl\"]=function(){return(_ldexpl=Module[\"_ldexpl\"]=Module[\"asm\"][\"ldexpl\"]).apply(null,arguments)};var _remainderl=Module[\"_remainderl\"]=function(){return(_remainderl=Module[\"_remainderl\"]=Module[\"asm\"][\"remainderl\"]).apply(null,arguments)};var _remquol=Module[\"_remquol\"]=function(){return(_remquol=Module[\"_remquol\"]=Module[\"asm\"][\"remquol\"]).apply(null,arguments)};var ___fpclassifyf=Module[\"___fpclassifyf\"]=function(){return(___fpclassifyf=Module[\"___fpclassifyf\"]=Module[\"asm\"][\"__fpclassifyf\"]).apply(null,arguments)};var _erff=Module[\"_erff\"]=function(){return(_erff=Module[\"_erff\"]=Module[\"asm\"][\"erff\"]).apply(null,arguments)};var _erfcf=Module[\"_erfcf\"]=function(){return(_erfcf=Module[\"_erfcf\"]=Module[\"asm\"][\"erfcf\"]).apply(null,arguments)};var _ceilf=Module[\"_ceilf\"]=function(){return(_ceilf=Module[\"_ceilf\"]=Module[\"asm\"][\"ceilf\"]).apply(null,arguments)};var _log2l=Module[\"_log2l\"]=function(){return(_log2l=Module[\"_log2l\"]=Module[\"asm\"][\"log2l\"]).apply(null,arguments)};var _nearbyint=Module[\"_nearbyint\"]=function(){return(_nearbyint=Module[\"_nearbyint\"]=Module[\"asm\"][\"nearbyint\"]).apply(null,arguments)};var _exp10l=Module[\"_exp10l\"]=function(){return(_exp10l=Module[\"_exp10l\"]=Module[\"asm\"][\"exp10l\"]).apply(null,arguments)};var _exp2l=Module[\"_exp2l\"]=function(){return(_exp2l=Module[\"_exp2l\"]=Module[\"asm\"][\"exp2l\"]).apply(null,arguments)};var _pow10l=Module[\"_pow10l\"]=function(){return(_pow10l=Module[\"_pow10l\"]=Module[\"asm\"][\"pow10l\"]).apply(null,arguments)};var ___letf2=Module[\"___letf2\"]=function(){return(___letf2=Module[\"___letf2\"]=Module[\"asm\"][\"__letf2\"]).apply(null,arguments)};var _scalbf=Module[\"_scalbf\"]=function(){return(_scalbf=Module[\"_scalbf\"]=Module[\"asm\"][\"scalbf\"]).apply(null,arguments)};var _sincosl=Module[\"_sincosl\"]=function(){return(_sincosl=Module[\"_sincosl\"]=Module[\"asm\"][\"sincosl\"]).apply(null,arguments)};var _fma=Module[\"_fma\"]=function(){return(_fma=Module[\"_fma\"]=Module[\"asm\"][\"fma\"]).apply(null,arguments)};var _tgammal=Module[\"_tgammal\"]=function(){return(_tgammal=Module[\"_tgammal\"]=Module[\"asm\"][\"tgammal\"]).apply(null,arguments)};var _lroundf=Module[\"_lroundf\"]=function(){return(_lroundf=Module[\"_lroundf\"]=Module[\"asm\"][\"lroundf\"]).apply(null,arguments)};var _llroundf=Module[\"_llroundf\"]=function(){return(_llroundf=Module[\"_llroundf\"]=Module[\"asm\"][\"llroundf\"]).apply(null,arguments)};var _jn=Module[\"_jn\"]=function(){return(_jn=Module[\"_jn\"]=Module[\"asm\"][\"jn\"]).apply(null,arguments)};var _yn=Module[\"_yn\"]=function(){return(_yn=Module[\"_yn\"]=Module[\"asm\"][\"yn\"]).apply(null,arguments)};var ___polevll=Module[\"___polevll\"]=function(){return(___polevll=Module[\"___polevll\"]=Module[\"asm\"][\"__polevll\"]).apply(null,arguments)};var ___p1evll=Module[\"___p1evll\"]=function(){return(___p1evll=Module[\"___p1evll\"]=Module[\"asm\"][\"__p1evll\"]).apply(null,arguments)};var _nexttoward=Module[\"_nexttoward\"]=function(){return(_nexttoward=Module[\"_nexttoward\"]=Module[\"asm\"][\"nexttoward\"]).apply(null,arguments)};var ___signbitl=Module[\"___signbitl\"]=function(){return(___signbitl=Module[\"___signbitl\"]=Module[\"asm\"][\"__signbitl\"]).apply(null,arguments)};var _scalblnf=Module[\"_scalblnf\"]=function(){return(_scalblnf=Module[\"_scalblnf\"]=Module[\"asm\"][\"scalblnf\"]).apply(null,arguments)};var _sinhl=Module[\"_sinhl\"]=function(){return(_sinhl=Module[\"_sinhl\"]=Module[\"asm\"][\"sinhl\"]).apply(null,arguments)};var _sincosf=Module[\"_sincosf\"]=function(){return(_sincosf=Module[\"_sincosf\"]=Module[\"asm\"][\"sincosf\"]).apply(null,arguments)};var _acoshl=Module[\"_acoshl\"]=function(){return(_acoshl=Module[\"_acoshl\"]=Module[\"asm\"][\"acoshl\"]).apply(null,arguments)};var _atanl=Module[\"_atanl\"]=function(){return(_atanl=Module[\"_atanl\"]=Module[\"asm\"][\"atanl\"]).apply(null,arguments)};var ___tanl=Module[\"___tanl\"]=function(){return(___tanl=Module[\"___tanl\"]=Module[\"asm\"][\"__tanl\"]).apply(null,arguments)};var _atanhf=Module[\"_atanhf\"]=function(){return(_atanhf=Module[\"_atanhf\"]=Module[\"asm\"][\"atanhf\"]).apply(null,arguments)};var _fdiml=Module[\"_fdiml\"]=function(){return(_fdiml=Module[\"_fdiml\"]=Module[\"asm\"][\"fdiml\"]).apply(null,arguments)};var _nexttowardl=Module[\"_nexttowardl\"]=function(){return(_nexttowardl=Module[\"_nexttowardl\"]=Module[\"asm\"][\"nexttowardl\"]).apply(null,arguments)};var _lgamma=Module[\"_lgamma\"]=function(){return(_lgamma=Module[\"_lgamma\"]=Module[\"asm\"][\"lgamma\"]).apply(null,arguments)};var _atanhl=Module[\"_atanhl\"]=function(){return(_atanhl=Module[\"_atanhl\"]=Module[\"asm\"][\"atanhl\"]).apply(null,arguments)};var _acosf=Module[\"_acosf\"]=function(){return(_acosf=Module[\"_acosf\"]=Module[\"asm\"][\"acosf\"]).apply(null,arguments)};var _asinhf=Module[\"_asinhf\"]=function(){return(_asinhf=Module[\"_asinhf\"]=Module[\"asm\"][\"asinhf\"]).apply(null,arguments)};var ___tandf=Module[\"___tandf\"]=function(){return(___tandf=Module[\"___tandf\"]=Module[\"asm\"][\"__tandf\"]).apply(null,arguments)};var _atanf=Module[\"_atanf\"]=function(){return(_atanf=Module[\"_atanf\"]=Module[\"asm\"][\"atanf\"]).apply(null,arguments)};var ___tan=Module[\"___tan\"]=function(){return(___tan=Module[\"___tan\"]=Module[\"asm\"][\"__tan\"]).apply(null,arguments)};var _ceil=Module[\"_ceil\"]=function(){return(_ceil=Module[\"_ceil\"]=Module[\"asm\"][\"ceil\"]).apply(null,arguments)};var _tanl=Module[\"_tanl\"]=function(){return(_tanl=Module[\"_tanl\"]=Module[\"asm\"][\"tanl\"]).apply(null,arguments)};var _cbrtl=Module[\"_cbrtl\"]=function(){return(_cbrtl=Module[\"_cbrtl\"]=Module[\"asm\"][\"cbrtl\"]).apply(null,arguments)};var ___trunctfsf2=Module[\"___trunctfsf2\"]=function(){return(___trunctfsf2=Module[\"___trunctfsf2\"]=Module[\"asm\"][\"__trunctfsf2\"]).apply(null,arguments)};var _finite=Module[\"_finite\"]=function(){return(_finite=Module[\"_finite\"]=Module[\"asm\"][\"finite\"]).apply(null,arguments)};var _lroundl=Module[\"_lroundl\"]=function(){return(_lroundl=Module[\"_lroundl\"]=Module[\"asm\"][\"lroundl\"]).apply(null,arguments)};var _nexttowardf=Module[\"_nexttowardf\"]=function(){return(_nexttowardf=Module[\"_nexttowardf\"]=Module[\"asm\"][\"nexttowardf\"]).apply(null,arguments)};var _expl=Module[\"_expl\"]=function(){return(_expl=Module[\"_expl\"]=Module[\"asm\"][\"expl\"]).apply(null,arguments)};var _expm1l=Module[\"_expm1l\"]=function(){return(_expm1l=Module[\"_expm1l\"]=Module[\"asm\"][\"expm1l\"]).apply(null,arguments)};var _llrint=Module[\"_llrint\"]=function(){return(_llrint=Module[\"_llrint\"]=Module[\"asm\"][\"llrint\"]).apply(null,arguments)};var _cosl=Module[\"_cosl\"]=function(){return(_cosl=Module[\"_cosl\"]=Module[\"asm\"][\"cosl\"]).apply(null,arguments)};var _j0f=Module[\"_j0f\"]=function(){return(_j0f=Module[\"_j0f\"]=Module[\"asm\"][\"j0f\"]).apply(null,arguments)};var _y0f=Module[\"_y0f\"]=function(){return(_y0f=Module[\"_y0f\"]=Module[\"asm\"][\"y0f\"]).apply(null,arguments)};var _jnf=Module[\"_jnf\"]=function(){return(_jnf=Module[\"_jnf\"]=Module[\"asm\"][\"jnf\"]).apply(null,arguments)};var _ynf=Module[\"_ynf\"]=function(){return(_ynf=Module[\"_ynf\"]=Module[\"asm\"][\"ynf\"]).apply(null,arguments)};var _lgammaf=Module[\"_lgammaf\"]=function(){return(_lgammaf=Module[\"_lgammaf\"]=Module[\"asm\"][\"lgammaf\"]).apply(null,arguments)};var _sincos=Module[\"_sincos\"]=function(){return(_sincos=Module[\"_sincos\"]=Module[\"asm\"][\"sincos\"]).apply(null,arguments)};var _truncf=Module[\"_truncf\"]=function(){return(_truncf=Module[\"_truncf\"]=Module[\"asm\"][\"truncf\"]).apply(null,arguments)};var _modff=Module[\"_modff\"]=function(){return(_modff=Module[\"_modff\"]=Module[\"asm\"][\"modff\"]).apply(null,arguments)};var _lround=Module[\"_lround\"]=function(){return(_lround=Module[\"_lround\"]=Module[\"asm\"][\"lround\"]).apply(null,arguments)};var _trunc=Module[\"_trunc\"]=function(){return(_trunc=Module[\"_trunc\"]=Module[\"asm\"][\"trunc\"]).apply(null,arguments)};var _ldexpf=Module[\"_ldexpf\"]=function(){return(_ldexpf=Module[\"_ldexpf\"]=Module[\"asm\"][\"ldexpf\"]).apply(null,arguments)};var _tanhl=Module[\"_tanhl\"]=function(){return(_tanhl=Module[\"_tanhl\"]=Module[\"asm\"][\"tanhl\"]).apply(null,arguments)};var _srand48=Module[\"_srand48\"]=function(){return(_srand48=Module[\"_srand48\"]=Module[\"asm\"][\"srand48\"]).apply(null,arguments)};var _seed48=Module[\"_seed48\"]=function(){return(_seed48=Module[\"_seed48\"]=Module[\"asm\"][\"seed48\"]).apply(null,arguments)};var _jrand48=Module[\"_jrand48\"]=function(){return(_jrand48=Module[\"_jrand48\"]=Module[\"asm\"][\"jrand48\"]).apply(null,arguments)};var ___rand48_step=Module[\"___rand48_step\"]=function(){return(___rand48_step=Module[\"___rand48_step\"]=Module[\"asm\"][\"__rand48_step\"]).apply(null,arguments)};var _mrand48=Module[\"_mrand48\"]=function(){return(_mrand48=Module[\"_mrand48\"]=Module[\"asm\"][\"mrand48\"]).apply(null,arguments)};var _srandom=Module[\"_srandom\"]=function(){return(_srandom=Module[\"_srandom\"]=Module[\"asm\"][\"srandom\"]).apply(null,arguments)};var _initstate=Module[\"_initstate\"]=function(){return(_initstate=Module[\"_initstate\"]=Module[\"asm\"][\"initstate\"]).apply(null,arguments)};var _setstate=Module[\"_setstate\"]=function(){return(_setstate=Module[\"_setstate\"]=Module[\"asm\"][\"setstate\"]).apply(null,arguments)};var _random=Module[\"_random\"]=function(){return(_random=Module[\"_random\"]=Module[\"asm\"][\"random\"]).apply(null,arguments)};var _erand48=Module[\"_erand48\"]=function(){return(_erand48=Module[\"_erand48\"]=Module[\"asm\"][\"erand48\"]).apply(null,arguments)};var _drand48=Module[\"_drand48\"]=function(){return(_drand48=Module[\"_drand48\"]=Module[\"asm\"][\"drand48\"]).apply(null,arguments)};var _lcong48=Module[\"_lcong48\"]=function(){return(_lcong48=Module[\"_lcong48\"]=Module[\"asm\"][\"lcong48\"]).apply(null,arguments)};var _rand_r=Module[\"_rand_r\"]=function(){return(_rand_r=Module[\"_rand_r\"]=Module[\"asm\"][\"rand_r\"]).apply(null,arguments)};var _srand=Module[\"_srand\"]=function(){return(_srand=Module[\"_srand\"]=Module[\"asm\"][\"srand\"]).apply(null,arguments)};var _rand=Module[\"_rand\"]=function(){return(_rand=Module[\"_rand\"]=Module[\"asm\"][\"rand\"]).apply(null,arguments)};var _nrand48=Module[\"_nrand48\"]=function(){return(_nrand48=Module[\"_nrand48\"]=Module[\"asm\"][\"nrand48\"]).apply(null,arguments)};var _lrand48=Module[\"_lrand48\"]=function(){return(_lrand48=Module[\"_lrand48\"]=Module[\"asm\"][\"lrand48\"]).apply(null,arguments)};var ___stdio_exit=Module[\"___stdio_exit\"]=function(){return(___stdio_exit=Module[\"___stdio_exit\"]=Module[\"asm\"][\"__stdio_exit\"]).apply(null,arguments)};var ___ofl_lock=Module[\"___ofl_lock\"]=function(){return(___ofl_lock=Module[\"___ofl_lock\"]=Module[\"asm\"][\"__ofl_lock\"]).apply(null,arguments)};var ___lockfile=Module[\"___lockfile\"]=function(){return(___lockfile=Module[\"___lockfile\"]=Module[\"asm\"][\"__lockfile\"]).apply(null,arguments)};var ___stdio_exit_needed=Module[\"___stdio_exit_needed\"]=function(){return(___stdio_exit_needed=Module[\"___stdio_exit_needed\"]=Module[\"asm\"][\"__stdio_exit_needed\"]).apply(null,arguments)};var _tmpnam=Module[\"_tmpnam\"]=function(){return(_tmpnam=Module[\"_tmpnam\"]=Module[\"asm\"][\"tmpnam\"]).apply(null,arguments)};var ___fdopen=Module[\"___fdopen\"]=function(){return(___fdopen=Module[\"___fdopen\"]=Module[\"asm\"][\"__fdopen\"]).apply(null,arguments)};var ___stdio_seek=Module[\"___stdio_seek\"]=function(){return(___stdio_seek=Module[\"___stdio_seek\"]=Module[\"asm\"][\"__stdio_seek\"]).apply(null,arguments)};var ___stdio_write=Module[\"___stdio_write\"]=function(){return(___stdio_write=Module[\"___stdio_write\"]=Module[\"asm\"][\"__stdio_write\"]).apply(null,arguments)};var ___stdio_read=Module[\"___stdio_read\"]=function(){return(___stdio_read=Module[\"___stdio_read\"]=Module[\"asm\"][\"__stdio_read\"]).apply(null,arguments)};var ___stdio_close=Module[\"___stdio_close\"]=function(){return(___stdio_close=Module[\"___stdio_close\"]=Module[\"asm\"][\"__stdio_close\"]).apply(null,arguments)};var ___ofl_add=Module[\"___ofl_add\"]=function(){return(___ofl_add=Module[\"___ofl_add\"]=Module[\"asm\"][\"__ofl_add\"]).apply(null,arguments)};var _vfscanf=Module[\"_vfscanf\"]=function(){return(_vfscanf=Module[\"_vfscanf\"]=Module[\"asm\"][\"vfscanf\"]).apply(null,arguments)};var ___unlockfile=Module[\"___unlockfile\"]=function(){return(___unlockfile=Module[\"___unlockfile\"]=Module[\"asm\"][\"__unlockfile\"]).apply(null,arguments)};var ___isoc99_vfscanf=Module[\"___isoc99_vfscanf\"]=function(){return(___isoc99_vfscanf=Module[\"___isoc99_vfscanf\"]=Module[\"asm\"][\"__isoc99_vfscanf\"]).apply(null,arguments)};var ___string_read=Module[\"___string_read\"]=function(){return(___string_read=Module[\"___string_read\"]=Module[\"asm\"][\"__string_read\"]).apply(null,arguments)};var _vdprintf=Module[\"_vdprintf\"]=function(){return(_vdprintf=Module[\"_vdprintf\"]=Module[\"asm\"][\"vdprintf\"]).apply(null,arguments)};var ___ftello_unlocked=Module[\"___ftello_unlocked\"]=function(){return(___ftello_unlocked=Module[\"___ftello_unlocked\"]=Module[\"asm\"][\"__ftello_unlocked\"]).apply(null,arguments)};var ___ftello=Module[\"___ftello\"]=function(){return(___ftello=Module[\"___ftello\"]=Module[\"asm\"][\"__ftello\"]).apply(null,arguments)};var _ftello=Module[\"_ftello\"]=function(){return(_ftello=Module[\"_ftello\"]=Module[\"asm\"][\"ftello\"]).apply(null,arguments)};var _ftello64=Module[\"_ftello64\"]=function(){return(_ftello64=Module[\"_ftello64\"]=Module[\"asm\"][\"ftello64\"]).apply(null,arguments)};var _getchar_unlocked=Module[\"_getchar_unlocked\"]=function(){return(_getchar_unlocked=Module[\"_getchar_unlocked\"]=Module[\"asm\"][\"getchar_unlocked\"]).apply(null,arguments)};var ___do_orphaned_stdio_locks=Module[\"___do_orphaned_stdio_locks\"]=function(){return(___do_orphaned_stdio_locks=Module[\"___do_orphaned_stdio_locks\"]=Module[\"asm\"][\"__do_orphaned_stdio_locks\"]).apply(null,arguments)};var ___unlist_locked_file=Module[\"___unlist_locked_file\"]=function(){return(___unlist_locked_file=Module[\"___unlist_locked_file\"]=Module[\"asm\"][\"__unlist_locked_file\"]).apply(null,arguments)};var _ftrylockfile=Module[\"_ftrylockfile\"]=function(){return(_ftrylockfile=Module[\"_ftrylockfile\"]=Module[\"asm\"][\"ftrylockfile\"]).apply(null,arguments)};var _open_wmemstream=Module[\"_open_wmemstream\"]=function(){return(_open_wmemstream=Module[\"_open_wmemstream\"]=Module[\"asm\"][\"open_wmemstream\"]).apply(null,arguments)};var ___overflow=Module[\"___overflow\"]=function(){return(___overflow=Module[\"___overflow\"]=Module[\"asm\"][\"__overflow\"]).apply(null,arguments)};var _ferror_unlocked=Module[\"_ferror_unlocked\"]=function(){return(_ferror_unlocked=Module[\"_ferror_unlocked\"]=Module[\"asm\"][\"ferror_unlocked\"]).apply(null,arguments)};var __IO_ferror_unlocked=Module[\"__IO_ferror_unlocked\"]=function(){return(__IO_ferror_unlocked=Module[\"__IO_ferror_unlocked\"]=Module[\"asm\"][\"_IO_ferror_unlocked\"]).apply(null,arguments)};var ___isoc99_fscanf=Module[\"___isoc99_fscanf\"]=function(){return(___isoc99_fscanf=Module[\"___isoc99_fscanf\"]=Module[\"asm\"][\"__isoc99_fscanf\"]).apply(null,arguments)};var _fgetln=Module[\"_fgetln\"]=function(){return(_fgetln=Module[\"_fgetln\"]=Module[\"asm\"][\"fgetln\"]).apply(null,arguments)};var _getline=Module[\"_getline\"]=function(){return(_getline=Module[\"_getline\"]=Module[\"asm\"][\"getline\"]).apply(null,arguments)};var ___toread=Module[\"___toread\"]=function(){return(___toread=Module[\"___toread\"]=Module[\"asm\"][\"__toread\"]).apply(null,arguments)};var _vwscanf=Module[\"_vwscanf\"]=function(){return(_vwscanf=Module[\"_vwscanf\"]=Module[\"asm\"][\"vwscanf\"]).apply(null,arguments)};var _vfwscanf=Module[\"_vfwscanf\"]=function(){return(_vfwscanf=Module[\"_vfwscanf\"]=Module[\"asm\"][\"vfwscanf\"]).apply(null,arguments)};var ___isoc99_vwscanf=Module[\"___isoc99_vwscanf\"]=function(){return(___isoc99_vwscanf=Module[\"___isoc99_vwscanf\"]=Module[\"asm\"][\"__isoc99_vwscanf\"]).apply(null,arguments)};var ___fputwc_unlocked=Module[\"___fputwc_unlocked\"]=function(){return(___fputwc_unlocked=Module[\"___fputwc_unlocked\"]=Module[\"asm\"][\"__fputwc_unlocked\"]).apply(null,arguments)};var _fwide=Module[\"_fwide\"]=function(){return(_fwide=Module[\"_fwide\"]=Module[\"asm\"][\"fwide\"]).apply(null,arguments)};var ___fwritex=Module[\"___fwritex\"]=function(){return(___fwritex=Module[\"___fwritex\"]=Module[\"asm\"][\"__fwritex\"]).apply(null,arguments)};var _fputwc=Module[\"_fputwc\"]=function(){return(_fputwc=Module[\"_fputwc\"]=Module[\"asm\"][\"fputwc\"]).apply(null,arguments)};var _fputwc_unlocked=Module[\"_fputwc_unlocked\"]=function(){return(_fputwc_unlocked=Module[\"_fputwc_unlocked\"]=Module[\"asm\"][\"fputwc_unlocked\"]).apply(null,arguments)};var _putwc_unlocked=Module[\"_putwc_unlocked\"]=function(){return(_putwc_unlocked=Module[\"_putwc_unlocked\"]=Module[\"asm\"][\"putwc_unlocked\"]).apply(null,arguments)};var ___ofl_unlock=Module[\"___ofl_unlock\"]=function(){return(___ofl_unlock=Module[\"___ofl_unlock\"]=Module[\"asm\"][\"__ofl_unlock\"]).apply(null,arguments)};var ___freadahead=Module[\"___freadahead\"]=function(){return(___freadahead=Module[\"___freadahead\"]=Module[\"asm\"][\"__freadahead\"]).apply(null,arguments)};var ___freadptr=Module[\"___freadptr\"]=function(){return(___freadptr=Module[\"___freadptr\"]=Module[\"asm\"][\"__freadptr\"]).apply(null,arguments)};var ___freadptrinc=Module[\"___freadptrinc\"]=function(){return(___freadptrinc=Module[\"___freadptrinc\"]=Module[\"asm\"][\"__freadptrinc\"]).apply(null,arguments)};var ___fseterr=Module[\"___fseterr\"]=function(){return(___fseterr=Module[\"___fseterr\"]=Module[\"asm\"][\"__fseterr\"]).apply(null,arguments)};var _fflush_unlocked=Module[\"_fflush_unlocked\"]=function(){return(_fflush_unlocked=Module[\"_fflush_unlocked\"]=Module[\"asm\"][\"fflush_unlocked\"]).apply(null,arguments)};var _fsetpos=Module[\"_fsetpos\"]=function(){return(_fsetpos=Module[\"_fsetpos\"]=Module[\"asm\"][\"fsetpos\"]).apply(null,arguments)};var ___fseeko=Module[\"___fseeko\"]=function(){return(___fseeko=Module[\"___fseeko\"]=Module[\"asm\"][\"__fseeko\"]).apply(null,arguments)};var _fsetpos64=Module[\"_fsetpos64\"]=function(){return(_fsetpos64=Module[\"_fsetpos64\"]=Module[\"asm\"][\"fsetpos64\"]).apply(null,arguments)};var _putw=Module[\"_putw\"]=function(){return(_putw=Module[\"_putw\"]=Module[\"asm\"][\"putw\"]).apply(null,arguments)};var _ungetwc=Module[\"_ungetwc\"]=function(){return(_ungetwc=Module[\"_ungetwc\"]=Module[\"asm\"][\"ungetwc\"]).apply(null,arguments)};var ___wait=Module[\"___wait\"]=function(){return(___wait=Module[\"___wait\"]=Module[\"asm\"][\"__wait\"]).apply(null,arguments)};var _getwchar=Module[\"_getwchar\"]=function(){return(_getwchar=Module[\"_getwchar\"]=Module[\"asm\"][\"getwchar\"]).apply(null,arguments)};var _fgetwc=Module[\"_fgetwc\"]=function(){return(_fgetwc=Module[\"_fgetwc\"]=Module[\"asm\"][\"fgetwc\"]).apply(null,arguments)};var _getwchar_unlocked=Module[\"_getwchar_unlocked\"]=function(){return(_getwchar_unlocked=Module[\"_getwchar_unlocked\"]=Module[\"asm\"][\"getwchar_unlocked\"]).apply(null,arguments)};var _open_memstream=Module[\"_open_memstream\"]=function(){return(_open_memstream=Module[\"_open_memstream\"]=Module[\"asm\"][\"open_memstream\"]).apply(null,arguments)};var _asprintf=Module[\"_asprintf\"]=function(){return(_asprintf=Module[\"_asprintf\"]=Module[\"asm\"][\"asprintf\"]).apply(null,arguments)};var _vasprintf=Module[\"_vasprintf\"]=function(){return(_vasprintf=Module[\"_vasprintf\"]=Module[\"asm\"][\"vasprintf\"]).apply(null,arguments)};var _vsprintf=Module[\"_vsprintf\"]=function(){return(_vsprintf=Module[\"_vsprintf\"]=Module[\"asm\"][\"vsprintf\"]).apply(null,arguments)};var _vsiprintf=Module[\"_vsiprintf\"]=function(){return(_vsiprintf=Module[\"_vsiprintf\"]=Module[\"asm\"][\"vsiprintf\"]).apply(null,arguments)};var _vsniprintf=Module[\"_vsniprintf\"]=function(){return(_vsniprintf=Module[\"_vsniprintf\"]=Module[\"asm\"][\"vsniprintf\"]).apply(null,arguments)};var ___small_vsprintf=Module[\"___small_vsprintf\"]=function(){return(___small_vsprintf=Module[\"___small_vsprintf\"]=Module[\"asm\"][\"__small_vsprintf\"]).apply(null,arguments)};var ___small_vsnprintf=Module[\"___small_vsnprintf\"]=function(){return(___small_vsnprintf=Module[\"___small_vsnprintf\"]=Module[\"asm\"][\"__small_vsnprintf\"]).apply(null,arguments)};var _setbuffer=Module[\"_setbuffer\"]=function(){return(_setbuffer=Module[\"_setbuffer\"]=Module[\"asm\"][\"setbuffer\"]).apply(null,arguments)};var _wprintf=Module[\"_wprintf\"]=function(){return(_wprintf=Module[\"_wprintf\"]=Module[\"asm\"][\"wprintf\"]).apply(null,arguments)};var _vwprintf=Module[\"_vwprintf\"]=function(){return(_vwprintf=Module[\"_vwprintf\"]=Module[\"asm\"][\"vwprintf\"]).apply(null,arguments)};var ___fseeko_unlocked=Module[\"___fseeko_unlocked\"]=function(){return(___fseeko_unlocked=Module[\"___fseeko_unlocked\"]=Module[\"asm\"][\"__fseeko_unlocked\"]).apply(null,arguments)};var _fseeko=Module[\"_fseeko\"]=function(){return(_fseeko=Module[\"_fseeko\"]=Module[\"asm\"][\"fseeko\"]).apply(null,arguments)};var _fseeko64=Module[\"_fseeko64\"]=function(){return(_fseeko64=Module[\"_fseeko64\"]=Module[\"asm\"][\"fseeko64\"]).apply(null,arguments)};var ___fmodeflags=Module[\"___fmodeflags\"]=function(){return(___fmodeflags=Module[\"___fmodeflags\"]=Module[\"asm\"][\"__fmodeflags\"]).apply(null,arguments)};var _fopen64=Module[\"_fopen64\"]=function(){return(_fopen64=Module[\"_fopen64\"]=Module[\"asm\"][\"fopen64\"]).apply(null,arguments)};var _wscanf=Module[\"_wscanf\"]=function(){return(_wscanf=Module[\"_wscanf\"]=Module[\"asm\"][\"wscanf\"]).apply(null,arguments)};var ___isoc99_wscanf=Module[\"___isoc99_wscanf\"]=function(){return(___isoc99_wscanf=Module[\"___isoc99_wscanf\"]=Module[\"asm\"][\"__isoc99_wscanf\"]).apply(null,arguments)};var _scanf=Module[\"_scanf\"]=function(){return(_scanf=Module[\"_scanf\"]=Module[\"asm\"][\"scanf\"]).apply(null,arguments)};var _vscanf=Module[\"_vscanf\"]=function(){return(_vscanf=Module[\"_vscanf\"]=Module[\"asm\"][\"vscanf\"]).apply(null,arguments)};var ___isoc99_scanf=Module[\"___isoc99_scanf\"]=function(){return(___isoc99_scanf=Module[\"___isoc99_scanf\"]=Module[\"asm\"][\"__isoc99_scanf\"]).apply(null,arguments)};var _vfiprintf=Module[\"_vfiprintf\"]=function(){return(_vfiprintf=Module[\"_vfiprintf\"]=Module[\"asm\"][\"vfiprintf\"]).apply(null,arguments)};var ___small_vfprintf=Module[\"___small_vfprintf\"]=function(){return(___small_vfprintf=Module[\"___small_vfprintf\"]=Module[\"asm\"][\"__small_vfprintf\"]).apply(null,arguments)};var _fread_unlocked=Module[\"_fread_unlocked\"]=function(){return(_fread_unlocked=Module[\"_fread_unlocked\"]=Module[\"asm\"][\"fread_unlocked\"]).apply(null,arguments)};var _fwscanf=Module[\"_fwscanf\"]=function(){return(_fwscanf=Module[\"_fwscanf\"]=Module[\"asm\"][\"fwscanf\"]).apply(null,arguments)};var ___isoc99_fwscanf=Module[\"___isoc99_fwscanf\"]=function(){return(___isoc99_fwscanf=Module[\"___isoc99_fwscanf\"]=Module[\"asm\"][\"__isoc99_fwscanf\"]).apply(null,arguments)};var _getw=Module[\"_getw\"]=function(){return(_getw=Module[\"_getw\"]=Module[\"asm\"][\"getw\"]).apply(null,arguments)};var _tmpfile=Module[\"_tmpfile\"]=function(){return(_tmpfile=Module[\"_tmpfile\"]=Module[\"asm\"][\"tmpfile\"]).apply(null,arguments)};var _tmpfile64=Module[\"_tmpfile64\"]=function(){return(_tmpfile64=Module[\"_tmpfile64\"]=Module[\"asm\"][\"tmpfile64\"]).apply(null,arguments)};var _clearerr_unlocked=Module[\"_clearerr_unlocked\"]=function(){return(_clearerr_unlocked=Module[\"_clearerr_unlocked\"]=Module[\"asm\"][\"clearerr_unlocked\"]).apply(null,arguments)};var ___small_sprintf=Module[\"___small_sprintf\"]=function(){return(___small_sprintf=Module[\"___small_sprintf\"]=Module[\"asm\"][\"__small_sprintf\"]).apply(null,arguments)};var _gets=Module[\"_gets\"]=function(){return(_gets=Module[\"_gets\"]=Module[\"asm\"][\"gets\"]).apply(null,arguments)};var _swprintf=Module[\"_swprintf\"]=function(){return(_swprintf=Module[\"_swprintf\"]=Module[\"asm\"][\"swprintf\"]).apply(null,arguments)};var _vswprintf=Module[\"_vswprintf\"]=function(){return(_vswprintf=Module[\"_vswprintf\"]=Module[\"asm\"][\"vswprintf\"]).apply(null,arguments)};var _putwc=Module[\"_putwc\"]=function(){return(_putwc=Module[\"_putwc\"]=Module[\"asm\"][\"putwc\"]).apply(null,arguments)};var _getdelim=Module[\"_getdelim\"]=function(){return(_getdelim=Module[\"_getdelim\"]=Module[\"asm\"][\"getdelim\"]).apply(null,arguments)};var ___getdelim=Module[\"___getdelim\"]=function(){return(___getdelim=Module[\"___getdelim\"]=Module[\"asm\"][\"__getdelim\"]).apply(null,arguments)};var _swscanf=Module[\"_swscanf\"]=function(){return(_swscanf=Module[\"_swscanf\"]=Module[\"asm\"][\"swscanf\"]).apply(null,arguments)};var _vswscanf=Module[\"_vswscanf\"]=function(){return(_vswscanf=Module[\"_vswscanf\"]=Module[\"asm\"][\"vswscanf\"]).apply(null,arguments)};var ___isoc99_swscanf=Module[\"___isoc99_swscanf\"]=function(){return(___isoc99_swscanf=Module[\"___isoc99_swscanf\"]=Module[\"asm\"][\"__isoc99_swscanf\"]).apply(null,arguments)};var ___toread_needs_stdio_exit=Module[\"___toread_needs_stdio_exit\"]=function(){return(___toread_needs_stdio_exit=Module[\"___toread_needs_stdio_exit\"]=Module[\"asm\"][\"__toread_needs_stdio_exit\"]).apply(null,arguments)};var _getwc=Module[\"_getwc\"]=function(){return(_getwc=Module[\"_getwc\"]=Module[\"asm\"][\"getwc\"]).apply(null,arguments)};var ___isoc99_vfwscanf=Module[\"___isoc99_vfwscanf\"]=function(){return(___isoc99_vfwscanf=Module[\"___isoc99_vfwscanf\"]=Module[\"asm\"][\"__isoc99_vfwscanf\"]).apply(null,arguments)};var _fgets_unlocked=Module[\"_fgets_unlocked\"]=function(){return(_fgets_unlocked=Module[\"_fgets_unlocked\"]=Module[\"asm\"][\"fgets_unlocked\"]).apply(null,arguments)};var ___vfprintf_internal=Module[\"___vfprintf_internal\"]=function(){return(___vfprintf_internal=Module[\"___vfprintf_internal\"]=Module[\"asm\"][\"__vfprintf_internal\"]).apply(null,arguments)};var _getchar=Module[\"_getchar\"]=function(){return(_getchar=Module[\"_getchar\"]=Module[\"asm\"][\"getchar\"]).apply(null,arguments)};var ___isoc99_vscanf=Module[\"___isoc99_vscanf\"]=function(){return(___isoc99_vscanf=Module[\"___isoc99_vscanf\"]=Module[\"asm\"][\"__isoc99_vscanf\"]).apply(null,arguments)};var _fmemopen=Module[\"_fmemopen\"]=function(){return(_fmemopen=Module[\"_fmemopen\"]=Module[\"asm\"][\"fmemopen\"]).apply(null,arguments)};var _freopen=Module[\"_freopen\"]=function(){return(_freopen=Module[\"_freopen\"]=Module[\"asm\"][\"freopen\"]).apply(null,arguments)};var _freopen64=Module[\"_freopen64\"]=function(){return(_freopen64=Module[\"_freopen64\"]=Module[\"asm\"][\"freopen64\"]).apply(null,arguments)};var _tempnam=Module[\"_tempnam\"]=function(){return(_tempnam=Module[\"_tempnam\"]=Module[\"asm\"][\"tempnam\"]).apply(null,arguments)};var _putchar_unlocked=Module[\"_putchar_unlocked\"]=function(){return(_putchar_unlocked=Module[\"_putchar_unlocked\"]=Module[\"asm\"][\"putchar_unlocked\"]).apply(null,arguments)};var __IO_getc=Module[\"__IO_getc\"]=function(){return(__IO_getc=Module[\"__IO_getc\"]=Module[\"asm\"][\"_IO_getc\"]).apply(null,arguments)};var _pclose=Module[\"_pclose\"]=function(){return(_pclose=Module[\"_pclose\"]=Module[\"asm\"][\"pclose\"]).apply(null,arguments)};var _fwprintf=Module[\"_fwprintf\"]=function(){return(_fwprintf=Module[\"_fwprintf\"]=Module[\"asm\"][\"fwprintf\"]).apply(null,arguments)};var _vfwprintf=Module[\"_vfwprintf\"]=function(){return(_vfwprintf=Module[\"_vfwprintf\"]=Module[\"asm\"][\"vfwprintf\"]).apply(null,arguments)};var _vsscanf=Module[\"_vsscanf\"]=function(){return(_vsscanf=Module[\"_vsscanf\"]=Module[\"asm\"][\"vsscanf\"]).apply(null,arguments)};var ___isoc99_vsscanf=Module[\"___isoc99_vsscanf\"]=function(){return(___isoc99_vsscanf=Module[\"___isoc99_vsscanf\"]=Module[\"asm\"][\"__isoc99_vsscanf\"]).apply(null,arguments)};var ___isoc99_sscanf=Module[\"___isoc99_sscanf\"]=function(){return(___isoc99_sscanf=Module[\"___isoc99_sscanf\"]=Module[\"asm\"][\"__isoc99_sscanf\"]).apply(null,arguments)};var __IO_putc=Module[\"__IO_putc\"]=function(){return(__IO_putc=Module[\"__IO_putc\"]=Module[\"asm\"][\"_IO_putc\"]).apply(null,arguments)};var __flushlbf=Module[\"__flushlbf\"]=function(){return(__flushlbf=Module[\"__flushlbf\"]=Module[\"asm\"][\"_flushlbf\"]).apply(null,arguments)};var ___fsetlocking=Module[\"___fsetlocking\"]=function(){return(___fsetlocking=Module[\"___fsetlocking\"]=Module[\"asm\"][\"__fsetlocking\"]).apply(null,arguments)};var ___fwriting=Module[\"___fwriting\"]=function(){return(___fwriting=Module[\"___fwriting\"]=Module[\"asm\"][\"__fwriting\"]).apply(null,arguments)};var ___freading=Module[\"___freading\"]=function(){return(___freading=Module[\"___freading\"]=Module[\"asm\"][\"__freading\"]).apply(null,arguments)};var ___freadable=Module[\"___freadable\"]=function(){return(___freadable=Module[\"___freadable\"]=Module[\"asm\"][\"__freadable\"]).apply(null,arguments)};var ___fwritable=Module[\"___fwritable\"]=function(){return(___fwritable=Module[\"___fwritable\"]=Module[\"asm\"][\"__fwritable\"]).apply(null,arguments)};var ___flbf=Module[\"___flbf\"]=function(){return(___flbf=Module[\"___flbf\"]=Module[\"asm\"][\"__flbf\"]).apply(null,arguments)};var ___fbufsize=Module[\"___fbufsize\"]=function(){return(___fbufsize=Module[\"___fbufsize\"]=Module[\"asm\"][\"__fbufsize\"]).apply(null,arguments)};var ___fpending=Module[\"___fpending\"]=function(){return(___fpending=Module[\"___fpending\"]=Module[\"asm\"][\"__fpending\"]).apply(null,arguments)};var ___fpurge=Module[\"___fpurge\"]=function(){return(___fpurge=Module[\"___fpurge\"]=Module[\"asm\"][\"__fpurge\"]).apply(null,arguments)};var _fpurge=Module[\"_fpurge\"]=function(){return(_fpurge=Module[\"_fpurge\"]=Module[\"asm\"][\"fpurge\"]).apply(null,arguments)};var _fputws=Module[\"_fputws\"]=function(){return(_fputws=Module[\"_fputws\"]=Module[\"asm\"][\"fputws\"]).apply(null,arguments)};var _fputws_unlocked=Module[\"_fputws_unlocked\"]=function(){return(_fputws_unlocked=Module[\"_fputws_unlocked\"]=Module[\"asm\"][\"fputws_unlocked\"]).apply(null,arguments)};var ___stdout_write=Module[\"___stdout_write\"]=function(){return(___stdout_write=Module[\"___stdout_write\"]=Module[\"asm\"][\"__stdout_write\"]).apply(null,arguments)};var ___fgetwc_unlocked=Module[\"___fgetwc_unlocked\"]=function(){return(___fgetwc_unlocked=Module[\"___fgetwc_unlocked\"]=Module[\"asm\"][\"__fgetwc_unlocked\"]).apply(null,arguments)};var _fgetwc_unlocked=Module[\"_fgetwc_unlocked\"]=function(){return(_fgetwc_unlocked=Module[\"_fgetwc_unlocked\"]=Module[\"asm\"][\"fgetwc_unlocked\"]).apply(null,arguments)};var _getwc_unlocked=Module[\"_getwc_unlocked\"]=function(){return(_getwc_unlocked=Module[\"_getwc_unlocked\"]=Module[\"asm\"][\"getwc_unlocked\"]).apply(null,arguments)};var _setlinebuf=Module[\"_setlinebuf\"]=function(){return(_setlinebuf=Module[\"_setlinebuf\"]=Module[\"asm\"][\"setlinebuf\"]).apply(null,arguments)};var _fileno_unlocked=Module[\"_fileno_unlocked\"]=function(){return(_fileno_unlocked=Module[\"_fileno_unlocked\"]=Module[\"asm\"][\"fileno_unlocked\"]).apply(null,arguments)};var _fgetc_unlocked=Module[\"_fgetc_unlocked\"]=function(){return(_fgetc_unlocked=Module[\"_fgetc_unlocked\"]=Module[\"asm\"][\"fgetc_unlocked\"]).apply(null,arguments)};var __IO_getc_unlocked=Module[\"__IO_getc_unlocked\"]=function(){return(__IO_getc_unlocked=Module[\"__IO_getc_unlocked\"]=Module[\"asm\"][\"_IO_getc_unlocked\"]).apply(null,arguments)};var _fgetws=Module[\"_fgetws\"]=function(){return(_fgetws=Module[\"_fgetws\"]=Module[\"asm\"][\"fgetws\"]).apply(null,arguments)};var _fgetws_unlocked=Module[\"_fgetws_unlocked\"]=function(){return(_fgetws_unlocked=Module[\"_fgetws_unlocked\"]=Module[\"asm\"][\"fgetws_unlocked\"]).apply(null,arguments)};var ___isoc99_vswscanf=Module[\"___isoc99_vswscanf\"]=function(){return(___isoc99_vswscanf=Module[\"___isoc99_vswscanf\"]=Module[\"asm\"][\"__isoc99_vswscanf\"]).apply(null,arguments)};var _fgetpos=Module[\"_fgetpos\"]=function(){return(_fgetpos=Module[\"_fgetpos\"]=Module[\"asm\"][\"fgetpos\"]).apply(null,arguments)};var _fgetpos64=Module[\"_fgetpos64\"]=function(){return(_fgetpos64=Module[\"_fgetpos64\"]=Module[\"asm\"][\"fgetpos64\"]).apply(null,arguments)};var _feof_unlocked=Module[\"_feof_unlocked\"]=function(){return(_feof_unlocked=Module[\"_feof_unlocked\"]=Module[\"asm\"][\"feof_unlocked\"]).apply(null,arguments)};var __IO_feof_unlocked=Module[\"__IO_feof_unlocked\"]=function(){return(__IO_feof_unlocked=Module[\"__IO_feof_unlocked\"]=Module[\"asm\"][\"_IO_feof_unlocked\"]).apply(null,arguments)};var _putc_unlocked=Module[\"_putc_unlocked\"]=function(){return(_putc_unlocked=Module[\"_putc_unlocked\"]=Module[\"asm\"][\"putc_unlocked\"]).apply(null,arguments)};var _fputc_unlocked=Module[\"_fputc_unlocked\"]=function(){return(_fputc_unlocked=Module[\"_fputc_unlocked\"]=Module[\"asm\"][\"fputc_unlocked\"]).apply(null,arguments)};var __IO_putc_unlocked=Module[\"__IO_putc_unlocked\"]=function(){return(__IO_putc_unlocked=Module[\"__IO_putc_unlocked\"]=Module[\"asm\"][\"_IO_putc_unlocked\"]).apply(null,arguments)};var _putwchar=Module[\"_putwchar\"]=function(){return(_putwchar=Module[\"_putwchar\"]=Module[\"asm\"][\"putwchar\"]).apply(null,arguments)};var _putwchar_unlocked=Module[\"_putwchar_unlocked\"]=function(){return(_putwchar_unlocked=Module[\"_putwchar_unlocked\"]=Module[\"asm\"][\"putwchar_unlocked\"]).apply(null,arguments)};var _ecvt=Module[\"_ecvt\"]=function(){return(_ecvt=Module[\"_ecvt\"]=Module[\"asm\"][\"ecvt\"]).apply(null,arguments)};var _atoi=Module[\"_atoi\"]=function(){return(_atoi=Module[\"_atoi\"]=Module[\"asm\"][\"atoi\"]).apply(null,arguments)};var _strtod=Module[\"_strtod\"]=function(){return(_strtod=Module[\"_strtod\"]=Module[\"asm\"][\"strtod\"]).apply(null,arguments)};var _abs=Module[\"_abs\"]=function(){return(_abs=Module[\"_abs\"]=Module[\"asm\"][\"abs\"]).apply(null,arguments)};var _wcstof=Module[\"_wcstof\"]=function(){return(_wcstof=Module[\"_wcstof\"]=Module[\"asm\"][\"wcstof\"]).apply(null,arguments)};var _wcstod=Module[\"_wcstod\"]=function(){return(_wcstod=Module[\"_wcstod\"]=Module[\"asm\"][\"wcstod\"]).apply(null,arguments)};var _wcstold=Module[\"_wcstold\"]=function(){return(_wcstold=Module[\"_wcstold\"]=Module[\"asm\"][\"wcstold\"]).apply(null,arguments)};var _strtoll=Module[\"_strtoll\"]=function(){return(_strtoll=Module[\"_strtoll\"]=Module[\"asm\"][\"strtoll\"]).apply(null,arguments)};var _strtoimax=Module[\"_strtoimax\"]=function(){return(_strtoimax=Module[\"_strtoimax\"]=Module[\"asm\"][\"strtoimax\"]).apply(null,arguments)};var _strtoumax=Module[\"_strtoumax\"]=function(){return(_strtoumax=Module[\"_strtoumax\"]=Module[\"asm\"][\"strtoumax\"]).apply(null,arguments)};var ___strtol_internal=Module[\"___strtol_internal\"]=function(){return(___strtol_internal=Module[\"___strtol_internal\"]=Module[\"asm\"][\"__strtol_internal\"]).apply(null,arguments)};var ___strtoul_internal=Module[\"___strtoul_internal\"]=function(){return(___strtoul_internal=Module[\"___strtoul_internal\"]=Module[\"asm\"][\"__strtoul_internal\"]).apply(null,arguments)};var ___strtoll_internal=Module[\"___strtoll_internal\"]=function(){return(___strtoll_internal=Module[\"___strtoll_internal\"]=Module[\"asm\"][\"__strtoll_internal\"]).apply(null,arguments)};var ___strtoull_internal=Module[\"___strtoull_internal\"]=function(){return(___strtoull_internal=Module[\"___strtoull_internal\"]=Module[\"asm\"][\"__strtoull_internal\"]).apply(null,arguments)};var ___strtoimax_internal=Module[\"___strtoimax_internal\"]=function(){return(___strtoimax_internal=Module[\"___strtoimax_internal\"]=Module[\"asm\"][\"__strtoimax_internal\"]).apply(null,arguments)};var ___strtoumax_internal=Module[\"___strtoumax_internal\"]=function(){return(___strtoumax_internal=Module[\"___strtoumax_internal\"]=Module[\"asm\"][\"__strtoumax_internal\"]).apply(null,arguments)};var _labs=Module[\"_labs\"]=function(){return(_labs=Module[\"_labs\"]=Module[\"asm\"][\"labs\"]).apply(null,arguments)};var _atoll=Module[\"_atoll\"]=function(){return(_atoll=Module[\"_atoll\"]=Module[\"asm\"][\"atoll\"]).apply(null,arguments)};var _wcstoull=Module[\"_wcstoull\"]=function(){return(_wcstoull=Module[\"_wcstoull\"]=Module[\"asm\"][\"wcstoull\"]).apply(null,arguments)};var _wcstoll=Module[\"_wcstoll\"]=function(){return(_wcstoll=Module[\"_wcstoll\"]=Module[\"asm\"][\"wcstoll\"]).apply(null,arguments)};var _wcstoul=Module[\"_wcstoul\"]=function(){return(_wcstoul=Module[\"_wcstoul\"]=Module[\"asm\"][\"wcstoul\"]).apply(null,arguments)};var _wcstoimax=Module[\"_wcstoimax\"]=function(){return(_wcstoimax=Module[\"_wcstoimax\"]=Module[\"asm\"][\"wcstoimax\"]).apply(null,arguments)};var _wcstoumax=Module[\"_wcstoumax\"]=function(){return(_wcstoumax=Module[\"_wcstoumax\"]=Module[\"asm\"][\"wcstoumax\"]).apply(null,arguments)};var _lldiv=Module[\"_lldiv\"]=function(){return(_lldiv=Module[\"_lldiv\"]=Module[\"asm\"][\"lldiv\"]).apply(null,arguments)};var _imaxabs=Module[\"_imaxabs\"]=function(){return(_imaxabs=Module[\"_imaxabs\"]=Module[\"asm\"][\"imaxabs\"]).apply(null,arguments)};var _bsearch=Module[\"_bsearch\"]=function(){return(_bsearch=Module[\"_bsearch\"]=Module[\"asm\"][\"bsearch\"]).apply(null,arguments)};var _imaxdiv=Module[\"_imaxdiv\"]=function(){return(_imaxdiv=Module[\"_imaxdiv\"]=Module[\"asm\"][\"imaxdiv\"]).apply(null,arguments)};var _llabs=Module[\"_llabs\"]=function(){return(_llabs=Module[\"_llabs\"]=Module[\"asm\"][\"llabs\"]).apply(null,arguments)};var _fcvt=Module[\"_fcvt\"]=function(){return(_fcvt=Module[\"_fcvt\"]=Module[\"asm\"][\"fcvt\"]).apply(null,arguments)};var _div=Module[\"_div\"]=function(){return(_div=Module[\"_div\"]=Module[\"asm\"][\"div\"]).apply(null,arguments)};var _gcvt=Module[\"_gcvt\"]=function(){return(_gcvt=Module[\"_gcvt\"]=Module[\"asm\"][\"gcvt\"]).apply(null,arguments)};var _strtof=Module[\"_strtof\"]=function(){return(_strtof=Module[\"_strtof\"]=Module[\"asm\"][\"strtof\"]).apply(null,arguments)};var _strtold=Module[\"_strtold\"]=function(){return(_strtold=Module[\"_strtold\"]=Module[\"asm\"][\"strtold\"]).apply(null,arguments)};var _strtof_l=Module[\"_strtof_l\"]=function(){return(_strtof_l=Module[\"_strtof_l\"]=Module[\"asm\"][\"strtof_l\"]).apply(null,arguments)};var _strtod_l=Module[\"_strtod_l\"]=function(){return(_strtod_l=Module[\"_strtod_l\"]=Module[\"asm\"][\"strtod_l\"]).apply(null,arguments)};var _strtold_l=Module[\"_strtold_l\"]=function(){return(_strtold_l=Module[\"_strtold_l\"]=Module[\"asm\"][\"strtold_l\"]).apply(null,arguments)};var _ldiv=Module[\"_ldiv\"]=function(){return(_ldiv=Module[\"_ldiv\"]=Module[\"asm\"][\"ldiv\"]).apply(null,arguments)};var _freelocale=Module[\"_freelocale\"]=function(){return(_freelocale=Module[\"_freelocale\"]=Module[\"asm\"][\"freelocale\"]).apply(null,arguments)};var ___loc_is_allocated=Module[\"___loc_is_allocated\"]=function(){return(___loc_is_allocated=Module[\"___loc_is_allocated\"]=Module[\"asm\"][\"__loc_is_allocated\"]).apply(null,arguments)};var ___freelocale=Module[\"___freelocale\"]=function(){return(___freelocale=Module[\"___freelocale\"]=Module[\"asm\"][\"__freelocale\"]).apply(null,arguments)};var ___wcsxfrm_l=Module[\"___wcsxfrm_l\"]=function(){return(___wcsxfrm_l=Module[\"___wcsxfrm_l\"]=Module[\"asm\"][\"__wcsxfrm_l\"]).apply(null,arguments)};var _wcsxfrm_l=Module[\"_wcsxfrm_l\"]=function(){return(_wcsxfrm_l=Module[\"_wcsxfrm_l\"]=Module[\"asm\"][\"wcsxfrm_l\"]).apply(null,arguments)};var ___gettextdomain=Module[\"___gettextdomain\"]=function(){return(___gettextdomain=Module[\"___gettextdomain\"]=Module[\"asm\"][\"__gettextdomain\"]).apply(null,arguments)};var _ngettext=Module[\"_ngettext\"]=function(){return(_ngettext=Module[\"_ngettext\"]=Module[\"asm\"][\"ngettext\"]).apply(null,arguments)};var _dngettext=Module[\"_dngettext\"]=function(){return(_dngettext=Module[\"_dngettext\"]=Module[\"asm\"][\"dngettext\"]).apply(null,arguments)};var _catclose=Module[\"_catclose\"]=function(){return(_catclose=Module[\"_catclose\"]=Module[\"asm\"][\"catclose\"]).apply(null,arguments)};var ___strcoll_l=Module[\"___strcoll_l\"]=function(){return(___strcoll_l=Module[\"___strcoll_l\"]=Module[\"asm\"][\"__strcoll_l\"]).apply(null,arguments)};var _strcoll_l=Module[\"_strcoll_l\"]=function(){return(_strcoll_l=Module[\"_strcoll_l\"]=Module[\"asm\"][\"strcoll_l\"]).apply(null,arguments)};var ___pleval=Module[\"___pleval\"]=function(){return(___pleval=Module[\"___pleval\"]=Module[\"asm\"][\"__pleval\"]).apply(null,arguments)};var _strfmon_l=Module[\"_strfmon_l\"]=function(){return(_strfmon_l=Module[\"_strfmon_l\"]=Module[\"asm\"][\"strfmon_l\"]).apply(null,arguments)};var _strfmon=Module[\"_strfmon\"]=function(){return(_strfmon=Module[\"_strfmon\"]=Module[\"asm\"][\"strfmon\"]).apply(null,arguments)};var ___newlocale=Module[\"___newlocale\"]=function(){return(___newlocale=Module[\"___newlocale\"]=Module[\"asm\"][\"__newlocale\"]).apply(null,arguments)};var ___get_locale=Module[\"___get_locale\"]=function(){return(___get_locale=Module[\"___get_locale\"]=Module[\"asm\"][\"__get_locale\"]).apply(null,arguments)};var _newlocale=Module[\"_newlocale\"]=function(){return(_newlocale=Module[\"_newlocale\"]=Module[\"asm\"][\"newlocale\"]).apply(null,arguments)};var ___nl_langinfo_l=Module[\"___nl_langinfo_l\"]=function(){return(___nl_langinfo_l=Module[\"___nl_langinfo_l\"]=Module[\"asm\"][\"__nl_langinfo_l\"]).apply(null,arguments)};var ___nl_langinfo=Module[\"___nl_langinfo\"]=function(){return(___nl_langinfo=Module[\"___nl_langinfo\"]=Module[\"asm\"][\"__nl_langinfo\"]).apply(null,arguments)};var _nl_langinfo_l=Module[\"_nl_langinfo_l\"]=function(){return(_nl_langinfo_l=Module[\"_nl_langinfo_l\"]=Module[\"asm\"][\"nl_langinfo_l\"]).apply(null,arguments)};var _dcngettext=Module[\"_dcngettext\"]=function(){return(_dcngettext=Module[\"_dcngettext\"]=Module[\"asm\"][\"dcngettext\"]).apply(null,arguments)};var ___mo_lookup=Module[\"___mo_lookup\"]=function(){return(___mo_lookup=Module[\"___mo_lookup\"]=Module[\"asm\"][\"__mo_lookup\"]).apply(null,arguments)};var ___uselocale=Module[\"___uselocale\"]=function(){return(___uselocale=Module[\"___uselocale\"]=Module[\"asm\"][\"__uselocale\"]).apply(null,arguments)};var _uselocale=Module[\"_uselocale\"]=function(){return(_uselocale=Module[\"_uselocale\"]=Module[\"asm\"][\"uselocale\"]).apply(null,arguments)};var ___strxfrm_l=Module[\"___strxfrm_l\"]=function(){return(___strxfrm_l=Module[\"___strxfrm_l\"]=Module[\"asm\"][\"__strxfrm_l\"]).apply(null,arguments)};var _strxfrm=Module[\"_strxfrm\"]=function(){return(_strxfrm=Module[\"_strxfrm\"]=Module[\"asm\"][\"strxfrm\"]).apply(null,arguments)};var _strxfrm_l=Module[\"_strxfrm_l\"]=function(){return(_strxfrm_l=Module[\"_strxfrm_l\"]=Module[\"asm\"][\"strxfrm_l\"]).apply(null,arguments)};var _catopen=Module[\"_catopen\"]=function(){return(_catopen=Module[\"_catopen\"]=Module[\"asm\"][\"catopen\"]).apply(null,arguments)};var ___wcscoll_l=Module[\"___wcscoll_l\"]=function(){return(___wcscoll_l=Module[\"___wcscoll_l\"]=Module[\"asm\"][\"__wcscoll_l\"]).apply(null,arguments)};var _wcscoll_l=Module[\"_wcscoll_l\"]=function(){return(_wcscoll_l=Module[\"_wcscoll_l\"]=Module[\"asm\"][\"wcscoll_l\"]).apply(null,arguments)};var ___lctrans_impl=Module[\"___lctrans_impl\"]=function(){return(___lctrans_impl=Module[\"___lctrans_impl\"]=Module[\"asm\"][\"__lctrans_impl\"]).apply(null,arguments)};var ___duplocale=Module[\"___duplocale\"]=function(){return(___duplocale=Module[\"___duplocale\"]=Module[\"asm\"][\"__duplocale\"]).apply(null,arguments)};var _duplocale=Module[\"_duplocale\"]=function(){return(_duplocale=Module[\"_duplocale\"]=Module[\"asm\"][\"duplocale\"]).apply(null,arguments)};var _iconv_open=Module[\"_iconv_open\"]=function(){return(_iconv_open=Module[\"_iconv_open\"]=Module[\"asm\"][\"iconv_open\"]).apply(null,arguments)};var _iconv_close=Module[\"_iconv_close\"]=function(){return(_iconv_close=Module[\"_iconv_close\"]=Module[\"asm\"][\"iconv_close\"]).apply(null,arguments)};var _iconv=Module[\"_iconv\"]=function(){return(_iconv=Module[\"_iconv\"]=Module[\"asm\"][\"iconv\"]).apply(null,arguments)};var _catgets=Module[\"_catgets\"]=function(){return(_catgets=Module[\"_catgets\"]=Module[\"asm\"][\"catgets\"]).apply(null,arguments)};var _asctime=Module[\"_asctime\"]=function(){return(_asctime=Module[\"_asctime\"]=Module[\"asm\"][\"asctime\"]).apply(null,arguments)};var _ctime=Module[\"_ctime\"]=function(){return(_ctime=Module[\"_ctime\"]=Module[\"asm\"][\"ctime\"]).apply(null,arguments)};var _localtime=Module[\"_localtime\"]=function(){return(_localtime=Module[\"_localtime\"]=Module[\"asm\"][\"localtime\"]).apply(null,arguments)};var _getpagesize=Module[\"_getpagesize\"]=function(){return(_getpagesize=Module[\"_getpagesize\"]=Module[\"asm\"][\"getpagesize\"]).apply(null,arguments)};var _vwarn=Module[\"_vwarn\"]=function(){return(_vwarn=Module[\"_vwarn\"]=Module[\"asm\"][\"vwarn\"]).apply(null,arguments)};var _vwarnx=Module[\"_vwarnx\"]=function(){return(_vwarnx=Module[\"_vwarnx\"]=Module[\"asm\"][\"vwarnx\"]).apply(null,arguments)};var _verr=Module[\"_verr\"]=function(){return(_verr=Module[\"_verr\"]=Module[\"asm\"][\"verr\"]).apply(null,arguments)};var _verrx=Module[\"_verrx\"]=function(){return(_verrx=Module[\"_verrx\"]=Module[\"asm\"][\"verrx\"]).apply(null,arguments)};var _warn=Module[\"_warn\"]=function(){return(_warn=Module[\"_warn\"]=Module[\"asm\"][\"warn\"]).apply(null,arguments)};var _warnx=Module[\"_warnx\"]=function(){return(_warnx=Module[\"_warnx\"]=Module[\"asm\"][\"warnx\"]).apply(null,arguments)};var _err=Module[\"_err\"]=function(){return(_err=Module[\"_err\"]=Module[\"asm\"][\"err\"]).apply(null,arguments)};var _errx=Module[\"_errx\"]=function(){return(_errx=Module[\"_errx\"]=Module[\"asm\"][\"errx\"]).apply(null,arguments)};var ___emscripten_environ_constructor=Module[\"___emscripten_environ_constructor\"]=function(){return(___emscripten_environ_constructor=Module[\"___emscripten_environ_constructor\"]=Module[\"asm\"][\"__emscripten_environ_constructor\"]).apply(null,arguments)};var ___putenv=Module[\"___putenv\"]=function(){return(___putenv=Module[\"___putenv\"]=Module[\"asm\"][\"__putenv\"]).apply(null,arguments)};var _putenv=Module[\"_putenv\"]=function(){return(_putenv=Module[\"_putenv\"]=Module[\"asm\"][\"putenv\"]).apply(null,arguments)};var __get_tzname=Module[\"__get_tzname\"]=function(){return(__get_tzname=Module[\"__get_tzname\"]=Module[\"asm\"][\"_get_tzname\"]).apply(null,arguments)};var __get_daylight=Module[\"__get_daylight\"]=function(){return(__get_daylight=Module[\"__get_daylight\"]=Module[\"asm\"][\"_get_daylight\"]).apply(null,arguments)};var __get_timezone=Module[\"__get_timezone\"]=function(){return(__get_timezone=Module[\"__get_timezone\"]=Module[\"asm\"][\"_get_timezone\"]).apply(null,arguments)};var ___emscripten_pthread_data_constructor=Module[\"___emscripten_pthread_data_constructor\"]=function(){return(___emscripten_pthread_data_constructor=Module[\"___emscripten_pthread_data_constructor\"]=Module[\"asm\"][\"__emscripten_pthread_data_constructor\"]).apply(null,arguments)};var _emscripten_get_heap_size=Module[\"_emscripten_get_heap_size\"]=function(){return(_emscripten_get_heap_size=Module[\"_emscripten_get_heap_size\"]=Module[\"asm\"][\"emscripten_get_heap_size\"]).apply(null,arguments)};var _emscripten_atomic_exchange_u8=Module[\"_emscripten_atomic_exchange_u8\"]=function(){return(_emscripten_atomic_exchange_u8=Module[\"_emscripten_atomic_exchange_u8\"]=Module[\"asm\"][\"emscripten_atomic_exchange_u8\"]).apply(null,arguments)};var _emscripten_atomic_exchange_u16=Module[\"_emscripten_atomic_exchange_u16\"]=function(){return(_emscripten_atomic_exchange_u16=Module[\"_emscripten_atomic_exchange_u16\"]=Module[\"asm\"][\"emscripten_atomic_exchange_u16\"]).apply(null,arguments)};var _emscripten_atomic_exchange_u32=Module[\"_emscripten_atomic_exchange_u32\"]=function(){return(_emscripten_atomic_exchange_u32=Module[\"_emscripten_atomic_exchange_u32\"]=Module[\"asm\"][\"emscripten_atomic_exchange_u32\"]).apply(null,arguments)};var _emscripten_atomic_exchange_u64=Module[\"_emscripten_atomic_exchange_u64\"]=function(){return(_emscripten_atomic_exchange_u64=Module[\"_emscripten_atomic_exchange_u64\"]=Module[\"asm\"][\"emscripten_atomic_exchange_u64\"]).apply(null,arguments)};var _emscripten_atomic_cas_u8=Module[\"_emscripten_atomic_cas_u8\"]=function(){return(_emscripten_atomic_cas_u8=Module[\"_emscripten_atomic_cas_u8\"]=Module[\"asm\"][\"emscripten_atomic_cas_u8\"]).apply(null,arguments)};var _emscripten_atomic_cas_u16=Module[\"_emscripten_atomic_cas_u16\"]=function(){return(_emscripten_atomic_cas_u16=Module[\"_emscripten_atomic_cas_u16\"]=Module[\"asm\"][\"emscripten_atomic_cas_u16\"]).apply(null,arguments)};var _emscripten_atomic_cas_u32=Module[\"_emscripten_atomic_cas_u32\"]=function(){return(_emscripten_atomic_cas_u32=Module[\"_emscripten_atomic_cas_u32\"]=Module[\"asm\"][\"emscripten_atomic_cas_u32\"]).apply(null,arguments)};var _emscripten_atomic_cas_u64=Module[\"_emscripten_atomic_cas_u64\"]=function(){return(_emscripten_atomic_cas_u64=Module[\"_emscripten_atomic_cas_u64\"]=Module[\"asm\"][\"emscripten_atomic_cas_u64\"]).apply(null,arguments)};var _emscripten_atomic_load_u8=Module[\"_emscripten_atomic_load_u8\"]=function(){return(_emscripten_atomic_load_u8=Module[\"_emscripten_atomic_load_u8\"]=Module[\"asm\"][\"emscripten_atomic_load_u8\"]).apply(null,arguments)};var _emscripten_atomic_load_u16=Module[\"_emscripten_atomic_load_u16\"]=function(){return(_emscripten_atomic_load_u16=Module[\"_emscripten_atomic_load_u16\"]=Module[\"asm\"][\"emscripten_atomic_load_u16\"]).apply(null,arguments)};var _emscripten_atomic_load_u32=Module[\"_emscripten_atomic_load_u32\"]=function(){return(_emscripten_atomic_load_u32=Module[\"_emscripten_atomic_load_u32\"]=Module[\"asm\"][\"emscripten_atomic_load_u32\"]).apply(null,arguments)};var _emscripten_atomic_load_f32=Module[\"_emscripten_atomic_load_f32\"]=function(){return(_emscripten_atomic_load_f32=Module[\"_emscripten_atomic_load_f32\"]=Module[\"asm\"][\"emscripten_atomic_load_f32\"]).apply(null,arguments)};var _emscripten_atomic_load_u64=Module[\"_emscripten_atomic_load_u64\"]=function(){return(_emscripten_atomic_load_u64=Module[\"_emscripten_atomic_load_u64\"]=Module[\"asm\"][\"emscripten_atomic_load_u64\"]).apply(null,arguments)};var _emscripten_atomic_load_f64=Module[\"_emscripten_atomic_load_f64\"]=function(){return(_emscripten_atomic_load_f64=Module[\"_emscripten_atomic_load_f64\"]=Module[\"asm\"][\"emscripten_atomic_load_f64\"]).apply(null,arguments)};var _emscripten_atomic_store_u8=Module[\"_emscripten_atomic_store_u8\"]=function(){return(_emscripten_atomic_store_u8=Module[\"_emscripten_atomic_store_u8\"]=Module[\"asm\"][\"emscripten_atomic_store_u8\"]).apply(null,arguments)};var _emscripten_atomic_store_u16=Module[\"_emscripten_atomic_store_u16\"]=function(){return(_emscripten_atomic_store_u16=Module[\"_emscripten_atomic_store_u16\"]=Module[\"asm\"][\"emscripten_atomic_store_u16\"]).apply(null,arguments)};var _emscripten_atomic_store_u32=Module[\"_emscripten_atomic_store_u32\"]=function(){return(_emscripten_atomic_store_u32=Module[\"_emscripten_atomic_store_u32\"]=Module[\"asm\"][\"emscripten_atomic_store_u32\"]).apply(null,arguments)};var _emscripten_atomic_store_f32=Module[\"_emscripten_atomic_store_f32\"]=function(){return(_emscripten_atomic_store_f32=Module[\"_emscripten_atomic_store_f32\"]=Module[\"asm\"][\"emscripten_atomic_store_f32\"]).apply(null,arguments)};var _emscripten_atomic_store_u64=Module[\"_emscripten_atomic_store_u64\"]=function(){return(_emscripten_atomic_store_u64=Module[\"_emscripten_atomic_store_u64\"]=Module[\"asm\"][\"emscripten_atomic_store_u64\"]).apply(null,arguments)};var _emscripten_atomic_store_f64=Module[\"_emscripten_atomic_store_f64\"]=function(){return(_emscripten_atomic_store_f64=Module[\"_emscripten_atomic_store_f64\"]=Module[\"asm\"][\"emscripten_atomic_store_f64\"]).apply(null,arguments)};var _emscripten_atomic_fence=Module[\"_emscripten_atomic_fence\"]=function(){return(_emscripten_atomic_fence=Module[\"_emscripten_atomic_fence\"]=Module[\"asm\"][\"emscripten_atomic_fence\"]).apply(null,arguments)};var _emscripten_atomic_or_u8=Module[\"_emscripten_atomic_or_u8\"]=function(){return(_emscripten_atomic_or_u8=Module[\"_emscripten_atomic_or_u8\"]=Module[\"asm\"][\"emscripten_atomic_or_u8\"]).apply(null,arguments)};var _emscripten_atomic_add_u8=Module[\"_emscripten_atomic_add_u8\"]=function(){return(_emscripten_atomic_add_u8=Module[\"_emscripten_atomic_add_u8\"]=Module[\"asm\"][\"emscripten_atomic_add_u8\"]).apply(null,arguments)};var _emscripten_atomic_add_u16=Module[\"_emscripten_atomic_add_u16\"]=function(){return(_emscripten_atomic_add_u16=Module[\"_emscripten_atomic_add_u16\"]=Module[\"asm\"][\"emscripten_atomic_add_u16\"]).apply(null,arguments)};var _emscripten_atomic_add_u32=Module[\"_emscripten_atomic_add_u32\"]=function(){return(_emscripten_atomic_add_u32=Module[\"_emscripten_atomic_add_u32\"]=Module[\"asm\"][\"emscripten_atomic_add_u32\"]).apply(null,arguments)};var _emscripten_atomic_add_u64=Module[\"_emscripten_atomic_add_u64\"]=function(){return(_emscripten_atomic_add_u64=Module[\"_emscripten_atomic_add_u64\"]=Module[\"asm\"][\"emscripten_atomic_add_u64\"]).apply(null,arguments)};var _emscripten_atomic_sub_u8=Module[\"_emscripten_atomic_sub_u8\"]=function(){return(_emscripten_atomic_sub_u8=Module[\"_emscripten_atomic_sub_u8\"]=Module[\"asm\"][\"emscripten_atomic_sub_u8\"]).apply(null,arguments)};var _emscripten_atomic_sub_u16=Module[\"_emscripten_atomic_sub_u16\"]=function(){return(_emscripten_atomic_sub_u16=Module[\"_emscripten_atomic_sub_u16\"]=Module[\"asm\"][\"emscripten_atomic_sub_u16\"]).apply(null,arguments)};var _emscripten_atomic_sub_u32=Module[\"_emscripten_atomic_sub_u32\"]=function(){return(_emscripten_atomic_sub_u32=Module[\"_emscripten_atomic_sub_u32\"]=Module[\"asm\"][\"emscripten_atomic_sub_u32\"]).apply(null,arguments)};var _emscripten_atomic_sub_u64=Module[\"_emscripten_atomic_sub_u64\"]=function(){return(_emscripten_atomic_sub_u64=Module[\"_emscripten_atomic_sub_u64\"]=Module[\"asm\"][\"emscripten_atomic_sub_u64\"]).apply(null,arguments)};var _emscripten_atomic_and_u8=Module[\"_emscripten_atomic_and_u8\"]=function(){return(_emscripten_atomic_and_u8=Module[\"_emscripten_atomic_and_u8\"]=Module[\"asm\"][\"emscripten_atomic_and_u8\"]).apply(null,arguments)};var _emscripten_atomic_and_u16=Module[\"_emscripten_atomic_and_u16\"]=function(){return(_emscripten_atomic_and_u16=Module[\"_emscripten_atomic_and_u16\"]=Module[\"asm\"][\"emscripten_atomic_and_u16\"]).apply(null,arguments)};var _emscripten_atomic_and_u32=Module[\"_emscripten_atomic_and_u32\"]=function(){return(_emscripten_atomic_and_u32=Module[\"_emscripten_atomic_and_u32\"]=Module[\"asm\"][\"emscripten_atomic_and_u32\"]).apply(null,arguments)};var _emscripten_atomic_and_u64=Module[\"_emscripten_atomic_and_u64\"]=function(){return(_emscripten_atomic_and_u64=Module[\"_emscripten_atomic_and_u64\"]=Module[\"asm\"][\"emscripten_atomic_and_u64\"]).apply(null,arguments)};var _emscripten_atomic_or_u16=Module[\"_emscripten_atomic_or_u16\"]=function(){return(_emscripten_atomic_or_u16=Module[\"_emscripten_atomic_or_u16\"]=Module[\"asm\"][\"emscripten_atomic_or_u16\"]).apply(null,arguments)};var _emscripten_atomic_or_u32=Module[\"_emscripten_atomic_or_u32\"]=function(){return(_emscripten_atomic_or_u32=Module[\"_emscripten_atomic_or_u32\"]=Module[\"asm\"][\"emscripten_atomic_or_u32\"]).apply(null,arguments)};var _emscripten_atomic_or_u64=Module[\"_emscripten_atomic_or_u64\"]=function(){return(_emscripten_atomic_or_u64=Module[\"_emscripten_atomic_or_u64\"]=Module[\"asm\"][\"emscripten_atomic_or_u64\"]).apply(null,arguments)};var _emscripten_atomic_xor_u8=Module[\"_emscripten_atomic_xor_u8\"]=function(){return(_emscripten_atomic_xor_u8=Module[\"_emscripten_atomic_xor_u8\"]=Module[\"asm\"][\"emscripten_atomic_xor_u8\"]).apply(null,arguments)};var _emscripten_atomic_xor_u16=Module[\"_emscripten_atomic_xor_u16\"]=function(){return(_emscripten_atomic_xor_u16=Module[\"_emscripten_atomic_xor_u16\"]=Module[\"asm\"][\"emscripten_atomic_xor_u16\"]).apply(null,arguments)};var _emscripten_atomic_xor_u32=Module[\"_emscripten_atomic_xor_u32\"]=function(){return(_emscripten_atomic_xor_u32=Module[\"_emscripten_atomic_xor_u32\"]=Module[\"asm\"][\"emscripten_atomic_xor_u32\"]).apply(null,arguments)};var _emscripten_atomic_xor_u64=Module[\"_emscripten_atomic_xor_u64\"]=function(){return(_emscripten_atomic_xor_u64=Module[\"_emscripten_atomic_xor_u64\"]=Module[\"asm\"][\"emscripten_atomic_xor_u64\"]).apply(null,arguments)};var _thrd_current=Module[\"_thrd_current\"]=function(){return(_thrd_current=Module[\"_thrd_current\"]=Module[\"asm\"][\"thrd_current\"]).apply(null,arguments)};var _thrd_create=Module[\"_thrd_create\"]=function(){return(_thrd_create=Module[\"_thrd_create\"]=Module[\"asm\"][\"thrd_create\"]).apply(null,arguments)};var _thrd_exit=Module[\"_thrd_exit\"]=function(){return(_thrd_exit=Module[\"_thrd_exit\"]=Module[\"asm\"][\"thrd_exit\"]).apply(null,arguments)};var _thrd_join=Module[\"_thrd_join\"]=function(){return(_thrd_join=Module[\"_thrd_join\"]=Module[\"asm\"][\"thrd_join\"]).apply(null,arguments)};var _thrd_sleep=Module[\"_thrd_sleep\"]=function(){return(_thrd_sleep=Module[\"_thrd_sleep\"]=Module[\"asm\"][\"thrd_sleep\"]).apply(null,arguments)};var _thrd_yield=Module[\"_thrd_yield\"]=function(){return(_thrd_yield=Module[\"_thrd_yield\"]=Module[\"asm\"][\"thrd_yield\"]).apply(null,arguments)};var _call_once=Module[\"_call_once\"]=function(){return(_call_once=Module[\"_call_once\"]=Module[\"asm\"][\"call_once\"]).apply(null,arguments)};var _strlwr=Module[\"_strlwr\"]=function(){return(_strlwr=Module[\"_strlwr\"]=Module[\"asm\"][\"strlwr\"]).apply(null,arguments)};var _aligned_alloc=Module[\"_aligned_alloc\"]=function(){return(_aligned_alloc=Module[\"_aligned_alloc\"]=Module[\"asm\"][\"aligned_alloc\"]).apply(null,arguments)};var _posix_memalign=Module[\"_posix_memalign\"]=function(){return(_posix_memalign=Module[\"_posix_memalign\"]=Module[\"asm\"][\"posix_memalign\"]).apply(null,arguments)};var _strtoull_l=Module[\"_strtoull_l\"]=function(){return(_strtoull_l=Module[\"_strtoull_l\"]=Module[\"asm\"][\"strtoull_l\"]).apply(null,arguments)};var _strtoll_l=Module[\"_strtoll_l\"]=function(){return(_strtoll_l=Module[\"_strtoll_l\"]=Module[\"asm\"][\"strtoll_l\"]).apply(null,arguments)};var _strtoul_l=Module[\"_strtoul_l\"]=function(){return(_strtoul_l=Module[\"_strtoul_l\"]=Module[\"asm\"][\"strtoul_l\"]).apply(null,arguments)};var _strtol_l=Module[\"_strtol_l\"]=function(){return(_strtol_l=Module[\"_strtol_l\"]=Module[\"asm\"][\"strtol_l\"]).apply(null,arguments)};var _strupr=Module[\"_strupr\"]=function(){return(_strupr=Module[\"_strupr\"]=Module[\"asm\"][\"strupr\"]).apply(null,arguments)};var _emscripten_has_threading_support=Module[\"_emscripten_has_threading_support\"]=function(){return(_emscripten_has_threading_support=Module[\"_emscripten_has_threading_support\"]=Module[\"asm\"][\"emscripten_has_threading_support\"]).apply(null,arguments)};var _emscripten_force_num_logical_cores=Module[\"_emscripten_force_num_logical_cores\"]=function(){return(_emscripten_force_num_logical_cores=Module[\"_emscripten_force_num_logical_cores\"]=Module[\"asm\"][\"emscripten_force_num_logical_cores\"]).apply(null,arguments)};var _emscripten_futex_wait=Module[\"_emscripten_futex_wait\"]=function(){return(_emscripten_futex_wait=Module[\"_emscripten_futex_wait\"]=Module[\"asm\"][\"emscripten_futex_wait\"]).apply(null,arguments)};var _emscripten_futex_wake=Module[\"_emscripten_futex_wake\"]=function(){return(_emscripten_futex_wake=Module[\"_emscripten_futex_wake\"]=Module[\"asm\"][\"emscripten_futex_wake\"]).apply(null,arguments)};var _emscripten_is_main_runtime_thread=Module[\"_emscripten_is_main_runtime_thread\"]=function(){return(_emscripten_is_main_runtime_thread=Module[\"_emscripten_is_main_runtime_thread\"]=Module[\"asm\"][\"emscripten_is_main_runtime_thread\"]).apply(null,arguments)};var _emscripten_main_thread_process_queued_calls=Module[\"_emscripten_main_thread_process_queued_calls\"]=function(){return(_emscripten_main_thread_process_queued_calls=Module[\"_emscripten_main_thread_process_queued_calls\"]=Module[\"asm\"][\"emscripten_main_thread_process_queued_calls\"]).apply(null,arguments)};var _emscripten_current_thread_process_queued_calls=Module[\"_emscripten_current_thread_process_queued_calls\"]=function(){return(_emscripten_current_thread_process_queued_calls=Module[\"_emscripten_current_thread_process_queued_calls\"]=Module[\"asm\"][\"emscripten_current_thread_process_queued_calls\"]).apply(null,arguments)};var _pthread_mutex_timedlock=Module[\"_pthread_mutex_timedlock\"]=function(){return(_pthread_mutex_timedlock=Module[\"_pthread_mutex_timedlock\"]=Module[\"asm\"][\"pthread_mutex_timedlock\"]).apply(null,arguments)};var _pthread_mutex_consistent=Module[\"_pthread_mutex_consistent\"]=function(){return(_pthread_mutex_consistent=Module[\"_pthread_mutex_consistent\"]=Module[\"asm\"][\"pthread_mutex_consistent\"]).apply(null,arguments)};var _pthread_barrier_init=Module[\"_pthread_barrier_init\"]=function(){return(_pthread_barrier_init=Module[\"_pthread_barrier_init\"]=Module[\"asm\"][\"pthread_barrier_init\"]).apply(null,arguments)};var _pthread_barrier_destroy=Module[\"_pthread_barrier_destroy\"]=function(){return(_pthread_barrier_destroy=Module[\"_pthread_barrier_destroy\"]=Module[\"asm\"][\"pthread_barrier_destroy\"]).apply(null,arguments)};var _pthread_barrier_wait=Module[\"_pthread_barrier_wait\"]=function(){return(_pthread_barrier_wait=Module[\"_pthread_barrier_wait\"]=Module[\"asm\"][\"pthread_barrier_wait\"]).apply(null,arguments)};var _pthread_once=Module[\"_pthread_once\"]=function(){return(_pthread_once=Module[\"_pthread_once\"]=Module[\"asm\"][\"pthread_once\"]).apply(null,arguments)};var _pthread_cond_broadcast=Module[\"_pthread_cond_broadcast\"]=function(){return(_pthread_cond_broadcast=Module[\"_pthread_cond_broadcast\"]=Module[\"asm\"][\"pthread_cond_broadcast\"]).apply(null,arguments)};var _pthread_atfork=Module[\"_pthread_atfork\"]=function(){return(_pthread_atfork=Module[\"_pthread_atfork\"]=Module[\"asm\"][\"pthread_atfork\"]).apply(null,arguments)};var _pthread_cancel=Module[\"_pthread_cancel\"]=function(){return(_pthread_cancel=Module[\"_pthread_cancel\"]=Module[\"asm\"][\"pthread_cancel\"]).apply(null,arguments)};var _emscripten_main_browser_thread_id=Module[\"_emscripten_main_browser_thread_id\"]=function(){return(_emscripten_main_browser_thread_id=Module[\"_emscripten_main_browser_thread_id\"]=Module[\"asm\"][\"emscripten_main_browser_thread_id\"]).apply(null,arguments)};var _pthread_equal=Module[\"_pthread_equal\"]=function(){return(_pthread_equal=Module[\"_pthread_equal\"]=Module[\"asm\"][\"pthread_equal\"]).apply(null,arguments)};var _pthread_mutexattr_setprotocol=Module[\"_pthread_mutexattr_setprotocol\"]=function(){return(_pthread_mutexattr_setprotocol=Module[\"_pthread_mutexattr_setprotocol\"]=Module[\"asm\"][\"pthread_mutexattr_setprotocol\"]).apply(null,arguments)};var _pthread_mutexattr_setpshared=Module[\"_pthread_mutexattr_setpshared\"]=function(){return(_pthread_mutexattr_setpshared=Module[\"_pthread_mutexattr_setpshared\"]=Module[\"asm\"][\"pthread_mutexattr_setpshared\"]).apply(null,arguments)};var _pthread_condattr_destroy=Module[\"_pthread_condattr_destroy\"]=function(){return(_pthread_condattr_destroy=Module[\"_pthread_condattr_destroy\"]=Module[\"asm\"][\"pthread_condattr_destroy\"]).apply(null,arguments)};var _pthread_condattr_setpshared=Module[\"_pthread_condattr_setpshared\"]=function(){return(_pthread_condattr_setpshared=Module[\"_pthread_condattr_setpshared\"]=Module[\"asm\"][\"pthread_condattr_setpshared\"]).apply(null,arguments)};var _pthread_condattr_getclock=Module[\"_pthread_condattr_getclock\"]=function(){return(_pthread_condattr_getclock=Module[\"_pthread_condattr_getclock\"]=Module[\"asm\"][\"pthread_condattr_getclock\"]).apply(null,arguments)};var _pthread_condattr_getpshared=Module[\"_pthread_condattr_getpshared\"]=function(){return(_pthread_condattr_getpshared=Module[\"_pthread_condattr_getpshared\"]=Module[\"asm\"][\"pthread_condattr_getpshared\"]).apply(null,arguments)};var _pthread_getattr_np=Module[\"_pthread_getattr_np\"]=function(){return(_pthread_getattr_np=Module[\"_pthread_getattr_np\"]=Module[\"asm\"][\"pthread_getattr_np\"]).apply(null,arguments)};var _pthread_attr_getdetachstate=Module[\"_pthread_attr_getdetachstate\"]=function(){return(_pthread_attr_getdetachstate=Module[\"_pthread_attr_getdetachstate\"]=Module[\"asm\"][\"pthread_attr_getdetachstate\"]).apply(null,arguments)};var _pthread_attr_getstack=Module[\"_pthread_attr_getstack\"]=function(){return(_pthread_attr_getstack=Module[\"_pthread_attr_getstack\"]=Module[\"asm\"][\"pthread_attr_getstack\"]).apply(null,arguments)};var _emscripten_stack_get_base=Module[\"_emscripten_stack_get_base\"]=function(){return(_emscripten_stack_get_base=Module[\"_emscripten_stack_get_base\"]=Module[\"asm\"][\"emscripten_stack_get_base\"]).apply(null,arguments)};var _emscripten_stack_get_end=Module[\"_emscripten_stack_get_end\"]=function(){return(_emscripten_stack_get_end=Module[\"_emscripten_stack_get_end\"]=Module[\"asm\"][\"emscripten_stack_get_end\"]).apply(null,arguments)};var _pthread_setcanceltype=Module[\"_pthread_setcanceltype\"]=function(){return(_pthread_setcanceltype=Module[\"_pthread_setcanceltype\"]=Module[\"asm\"][\"pthread_setcanceltype\"]).apply(null,arguments)};var _pthread_rwlock_init=Module[\"_pthread_rwlock_init\"]=function(){return(_pthread_rwlock_init=Module[\"_pthread_rwlock_init\"]=Module[\"asm\"][\"pthread_rwlock_init\"]).apply(null,arguments)};var _pthread_rwlock_destroy=Module[\"_pthread_rwlock_destroy\"]=function(){return(_pthread_rwlock_destroy=Module[\"_pthread_rwlock_destroy\"]=Module[\"asm\"][\"pthread_rwlock_destroy\"]).apply(null,arguments)};var _pthread_rwlock_rdlock=Module[\"_pthread_rwlock_rdlock\"]=function(){return(_pthread_rwlock_rdlock=Module[\"_pthread_rwlock_rdlock\"]=Module[\"asm\"][\"pthread_rwlock_rdlock\"]).apply(null,arguments)};var _pthread_rwlock_tryrdlock=Module[\"_pthread_rwlock_tryrdlock\"]=function(){return(_pthread_rwlock_tryrdlock=Module[\"_pthread_rwlock_tryrdlock\"]=Module[\"asm\"][\"pthread_rwlock_tryrdlock\"]).apply(null,arguments)};var _pthread_rwlock_timedrdlock=Module[\"_pthread_rwlock_timedrdlock\"]=function(){return(_pthread_rwlock_timedrdlock=Module[\"_pthread_rwlock_timedrdlock\"]=Module[\"asm\"][\"pthread_rwlock_timedrdlock\"]).apply(null,arguments)};var _pthread_rwlock_wrlock=Module[\"_pthread_rwlock_wrlock\"]=function(){return(_pthread_rwlock_wrlock=Module[\"_pthread_rwlock_wrlock\"]=Module[\"asm\"][\"pthread_rwlock_wrlock\"]).apply(null,arguments)};var _pthread_rwlock_trywrlock=Module[\"_pthread_rwlock_trywrlock\"]=function(){return(_pthread_rwlock_trywrlock=Module[\"_pthread_rwlock_trywrlock\"]=Module[\"asm\"][\"pthread_rwlock_trywrlock\"]).apply(null,arguments)};var _pthread_rwlock_timedwrlock=Module[\"_pthread_rwlock_timedwrlock\"]=function(){return(_pthread_rwlock_timedwrlock=Module[\"_pthread_rwlock_timedwrlock\"]=Module[\"asm\"][\"pthread_rwlock_timedwrlock\"]).apply(null,arguments)};var _pthread_rwlock_unlock=Module[\"_pthread_rwlock_unlock\"]=function(){return(_pthread_rwlock_unlock=Module[\"_pthread_rwlock_unlock\"]=Module[\"asm\"][\"pthread_rwlock_unlock\"]).apply(null,arguments)};var _pthread_rwlockattr_init=Module[\"_pthread_rwlockattr_init\"]=function(){return(_pthread_rwlockattr_init=Module[\"_pthread_rwlockattr_init\"]=Module[\"asm\"][\"pthread_rwlockattr_init\"]).apply(null,arguments)};var _pthread_rwlockattr_destroy=Module[\"_pthread_rwlockattr_destroy\"]=function(){return(_pthread_rwlockattr_destroy=Module[\"_pthread_rwlockattr_destroy\"]=Module[\"asm\"][\"pthread_rwlockattr_destroy\"]).apply(null,arguments)};var _pthread_rwlockattr_setpshared=Module[\"_pthread_rwlockattr_setpshared\"]=function(){return(_pthread_rwlockattr_setpshared=Module[\"_pthread_rwlockattr_setpshared\"]=Module[\"asm\"][\"pthread_rwlockattr_setpshared\"]).apply(null,arguments)};var _pthread_rwlockattr_getpshared=Module[\"_pthread_rwlockattr_getpshared\"]=function(){return(_pthread_rwlockattr_getpshared=Module[\"_pthread_rwlockattr_getpshared\"]=Module[\"asm\"][\"pthread_rwlockattr_getpshared\"]).apply(null,arguments)};var _pthread_spin_init=Module[\"_pthread_spin_init\"]=function(){return(_pthread_spin_init=Module[\"_pthread_spin_init\"]=Module[\"asm\"][\"pthread_spin_init\"]).apply(null,arguments)};var _pthread_spin_destroy=Module[\"_pthread_spin_destroy\"]=function(){return(_pthread_spin_destroy=Module[\"_pthread_spin_destroy\"]=Module[\"asm\"][\"pthread_spin_destroy\"]).apply(null,arguments)};var _pthread_spin_lock=Module[\"_pthread_spin_lock\"]=function(){return(_pthread_spin_lock=Module[\"_pthread_spin_lock\"]=Module[\"asm\"][\"pthread_spin_lock\"]).apply(null,arguments)};var _pthread_spin_trylock=Module[\"_pthread_spin_trylock\"]=function(){return(_pthread_spin_trylock=Module[\"_pthread_spin_trylock\"]=Module[\"asm\"][\"pthread_spin_trylock\"]).apply(null,arguments)};var _pthread_spin_unlock=Module[\"_pthread_spin_unlock\"]=function(){return(_pthread_spin_unlock=Module[\"_pthread_spin_unlock\"]=Module[\"asm\"][\"pthread_spin_unlock\"]).apply(null,arguments)};var _pthread_attr_setdetachstate=Module[\"_pthread_attr_setdetachstate\"]=function(){return(_pthread_attr_setdetachstate=Module[\"_pthread_attr_setdetachstate\"]=Module[\"asm\"][\"pthread_attr_setdetachstate\"]).apply(null,arguments)};var _pthread_attr_setschedparam=Module[\"_pthread_attr_setschedparam\"]=function(){return(_pthread_attr_setschedparam=Module[\"_pthread_attr_setschedparam\"]=Module[\"asm\"][\"pthread_attr_setschedparam\"]).apply(null,arguments)};var _sem_init=Module[\"_sem_init\"]=function(){return(_sem_init=Module[\"_sem_init\"]=Module[\"asm\"][\"sem_init\"]).apply(null,arguments)};var _sem_post=Module[\"_sem_post\"]=function(){return(_sem_post=Module[\"_sem_post\"]=Module[\"asm\"][\"sem_post\"]).apply(null,arguments)};var _sem_wait=Module[\"_sem_wait\"]=function(){return(_sem_wait=Module[\"_sem_wait\"]=Module[\"asm\"][\"sem_wait\"]).apply(null,arguments)};var _sem_trywait=Module[\"_sem_trywait\"]=function(){return(_sem_trywait=Module[\"_sem_trywait\"]=Module[\"asm\"][\"sem_trywait\"]).apply(null,arguments)};var _sem_destroy=Module[\"_sem_destroy\"]=function(){return(_sem_destroy=Module[\"_sem_destroy\"]=Module[\"asm\"][\"sem_destroy\"]).apply(null,arguments)};var ___lshrdi3=Module[\"___lshrdi3\"]=function(){return(___lshrdi3=Module[\"___lshrdi3\"]=Module[\"asm\"][\"__lshrdi3\"]).apply(null,arguments)};var ___fixsfsi=Module[\"___fixsfsi\"]=function(){return(___fixsfsi=Module[\"___fixsfsi\"]=Module[\"asm\"][\"__fixsfsi\"]).apply(null,arguments)};var _atomic_flag_test_and_set=Module[\"_atomic_flag_test_and_set\"]=function(){return(_atomic_flag_test_and_set=Module[\"_atomic_flag_test_and_set\"]=Module[\"asm\"][\"atomic_flag_test_and_set\"]).apply(null,arguments)};var ___enable_execute_stack=Module[\"___enable_execute_stack\"]=function(){return(___enable_execute_stack=Module[\"___enable_execute_stack\"]=Module[\"asm\"][\"__enable_execute_stack\"]).apply(null,arguments)};var ___powitf2=Module[\"___powitf2\"]=function(){return(___powitf2=Module[\"___powitf2\"]=Module[\"asm\"][\"__powitf2\"]).apply(null,arguments)};var ___ashldi3=Module[\"___ashldi3\"]=function(){return(___ashldi3=Module[\"___ashldi3\"]=Module[\"asm\"][\"__ashldi3\"]).apply(null,arguments)};var ___fixxfdi=Module[\"___fixxfdi\"]=function(){return(___fixxfdi=Module[\"___fixxfdi\"]=Module[\"asm\"][\"__fixxfdi\"]).apply(null,arguments)};var ___floattixf=Module[\"___floattixf\"]=function(){return(___floattixf=Module[\"___floattixf\"]=Module[\"asm\"][\"__floattixf\"]).apply(null,arguments)};var ___clzti2=Module[\"___clzti2\"]=function(){return(___clzti2=Module[\"___clzti2\"]=Module[\"asm\"][\"__clzti2\"]).apply(null,arguments)};var ___lshrti3=Module[\"___lshrti3\"]=function(){return(___lshrti3=Module[\"___lshrti3\"]=Module[\"asm\"][\"__lshrti3\"]).apply(null,arguments)};var ___ashlti3=Module[\"___ashlti3\"]=function(){return(___ashlti3=Module[\"___ashlti3\"]=Module[\"asm\"][\"__ashlti3\"]).apply(null,arguments)};var ___ffsdi2=Module[\"___ffsdi2\"]=function(){return(___ffsdi2=Module[\"___ffsdi2\"]=Module[\"asm\"][\"__ffsdi2\"]).apply(null,arguments)};var ___udivmodsi4=Module[\"___udivmodsi4\"]=function(){return(___udivmodsi4=Module[\"___udivmodsi4\"]=Module[\"asm\"][\"__udivmodsi4\"]).apply(null,arguments)};var ___udivsi3=Module[\"___udivsi3\"]=function(){return(___udivsi3=Module[\"___udivsi3\"]=Module[\"asm\"][\"__udivsi3\"]).apply(null,arguments)};var ___subvsi3=Module[\"___subvsi3\"]=function(){return(___subvsi3=Module[\"___subvsi3\"]=Module[\"asm\"][\"__subvsi3\"]).apply(null,arguments)};var ___compilerrt_abort_impl=Module[\"___compilerrt_abort_impl\"]=function(){return(___compilerrt_abort_impl=Module[\"___compilerrt_abort_impl\"]=Module[\"asm\"][\"__compilerrt_abort_impl\"]).apply(null,arguments)};var ___fixsfdi=Module[\"___fixsfdi\"]=function(){return(___fixsfdi=Module[\"___fixsfdi\"]=Module[\"asm\"][\"__fixsfdi\"]).apply(null,arguments)};var ___fixunssfdi=Module[\"___fixunssfdi\"]=function(){return(___fixunssfdi=Module[\"___fixunssfdi\"]=Module[\"asm\"][\"__fixunssfdi\"]).apply(null,arguments)};var ___mulvti3=Module[\"___mulvti3\"]=function(){return(___mulvti3=Module[\"___mulvti3\"]=Module[\"asm\"][\"__mulvti3\"]).apply(null,arguments)};var ___udivti3=Module[\"___udivti3\"]=function(){return(___udivti3=Module[\"___udivti3\"]=Module[\"asm\"][\"__udivti3\"]).apply(null,arguments)};var ___divti3=Module[\"___divti3\"]=function(){return(___divti3=Module[\"___divti3\"]=Module[\"asm\"][\"__divti3\"]).apply(null,arguments)};var ___floatundisf=Module[\"___floatundisf\"]=function(){return(___floatundisf=Module[\"___floatundisf\"]=Module[\"asm\"][\"__floatundisf\"]).apply(null,arguments)};var ___modsi3=Module[\"___modsi3\"]=function(){return(___modsi3=Module[\"___modsi3\"]=Module[\"asm\"][\"__modsi3\"]).apply(null,arguments)};var ___divsi3=Module[\"___divsi3\"]=function(){return(___divsi3=Module[\"___divsi3\"]=Module[\"asm\"][\"__divsi3\"]).apply(null,arguments)};var ___divxc3=Module[\"___divxc3\"]=function(){return(___divxc3=Module[\"___divxc3\"]=Module[\"asm\"][\"__divxc3\"]).apply(null,arguments)};var _fmaxl=Module[\"_fmaxl\"]=function(){return(_fmaxl=Module[\"_fmaxl\"]=Module[\"asm\"][\"fmaxl\"]).apply(null,arguments)};var _atomic_thread_fence=Module[\"_atomic_thread_fence\"]=function(){return(_atomic_thread_fence=Module[\"_atomic_thread_fence\"]=Module[\"asm\"][\"atomic_thread_fence\"]).apply(null,arguments)};var ___dtoi64=Module[\"___dtoi64\"]=function(){return(___dtoi64=Module[\"___dtoi64\"]=Module[\"asm\"][\"__dtoi64\"]).apply(null,arguments)};var ___fixdfdi=Module[\"___fixdfdi\"]=function(){return(___fixdfdi=Module[\"___fixdfdi\"]=Module[\"asm\"][\"__fixdfdi\"]).apply(null,arguments)};var ___stoi64=Module[\"___stoi64\"]=function(){return(___stoi64=Module[\"___stoi64\"]=Module[\"asm\"][\"__stoi64\"]).apply(null,arguments)};var ___dtou64=Module[\"___dtou64\"]=function(){return(___dtou64=Module[\"___dtou64\"]=Module[\"asm\"][\"__dtou64\"]).apply(null,arguments)};var ___fixunsdfdi=Module[\"___fixunsdfdi\"]=function(){return(___fixunsdfdi=Module[\"___fixunsdfdi\"]=Module[\"asm\"][\"__fixunsdfdi\"]).apply(null,arguments)};var ___stou64=Module[\"___stou64\"]=function(){return(___stou64=Module[\"___stou64\"]=Module[\"asm\"][\"__stou64\"]).apply(null,arguments)};var ___i64tod=Module[\"___i64tod\"]=function(){return(___i64tod=Module[\"___i64tod\"]=Module[\"asm\"][\"__i64tod\"]).apply(null,arguments)};var ___floatdidf=Module[\"___floatdidf\"]=function(){return(___floatdidf=Module[\"___floatdidf\"]=Module[\"asm\"][\"__floatdidf\"]).apply(null,arguments)};var ___i64tos=Module[\"___i64tos\"]=function(){return(___i64tos=Module[\"___i64tos\"]=Module[\"asm\"][\"__i64tos\"]).apply(null,arguments)};var ___floatdisf=Module[\"___floatdisf\"]=function(){return(___floatdisf=Module[\"___floatdisf\"]=Module[\"asm\"][\"__floatdisf\"]).apply(null,arguments)};var ___u64tod=Module[\"___u64tod\"]=function(){return(___u64tod=Module[\"___u64tod\"]=Module[\"asm\"][\"__u64tod\"]).apply(null,arguments)};var ___floatundidf=Module[\"___floatundidf\"]=function(){return(___floatundidf=Module[\"___floatundidf\"]=Module[\"asm\"][\"__floatundidf\"]).apply(null,arguments)};var ___u64tos=Module[\"___u64tos\"]=function(){return(___u64tos=Module[\"___u64tos\"]=Module[\"asm\"][\"__u64tos\"]).apply(null,arguments)};var ___divdc3=Module[\"___divdc3\"]=function(){return(___divdc3=Module[\"___divdc3\"]=Module[\"asm\"][\"__divdc3\"]).apply(null,arguments)};var _fmax=Module[\"_fmax\"]=function(){return(_fmax=Module[\"_fmax\"]=Module[\"asm\"][\"fmax\"]).apply(null,arguments)};var ___lesf2=Module[\"___lesf2\"]=function(){return(___lesf2=Module[\"___lesf2\"]=Module[\"asm\"][\"__lesf2\"]).apply(null,arguments)};var ___gesf2=Module[\"___gesf2\"]=function(){return(___gesf2=Module[\"___gesf2\"]=Module[\"asm\"][\"__gesf2\"]).apply(null,arguments)};var ___unordsf2=Module[\"___unordsf2\"]=function(){return(___unordsf2=Module[\"___unordsf2\"]=Module[\"asm\"][\"__unordsf2\"]).apply(null,arguments)};var ___eqsf2=Module[\"___eqsf2\"]=function(){return(___eqsf2=Module[\"___eqsf2\"]=Module[\"asm\"][\"__eqsf2\"]).apply(null,arguments)};var ___ltsf2=Module[\"___ltsf2\"]=function(){return(___ltsf2=Module[\"___ltsf2\"]=Module[\"asm\"][\"__ltsf2\"]).apply(null,arguments)};var ___nesf2=Module[\"___nesf2\"]=function(){return(___nesf2=Module[\"___nesf2\"]=Module[\"asm\"][\"__nesf2\"]).apply(null,arguments)};var ___gtsf2=Module[\"___gtsf2\"]=function(){return(___gtsf2=Module[\"___gtsf2\"]=Module[\"asm\"][\"__gtsf2\"]).apply(null,arguments)};var ___absvsi2=Module[\"___absvsi2\"]=function(){return(___absvsi2=Module[\"___absvsi2\"]=Module[\"asm\"][\"__absvsi2\"]).apply(null,arguments)};var ___mulxc3=Module[\"___mulxc3\"]=function(){return(___mulxc3=Module[\"___mulxc3\"]=Module[\"asm\"][\"__mulxc3\"]).apply(null,arguments)};var ___fixunssfti=Module[\"___fixunssfti\"]=function(){return(___fixunssfti=Module[\"___fixunssfti\"]=Module[\"asm\"][\"__fixunssfti\"]).apply(null,arguments)};var ___negdf2=Module[\"___negdf2\"]=function(){return(___negdf2=Module[\"___negdf2\"]=Module[\"asm\"][\"__negdf2\"]).apply(null,arguments)};var ___ctzti2=Module[\"___ctzti2\"]=function(){return(___ctzti2=Module[\"___ctzti2\"]=Module[\"asm\"][\"__ctzti2\"]).apply(null,arguments)};var ___negvsi2=Module[\"___negvsi2\"]=function(){return(___negvsi2=Module[\"___negvsi2\"]=Module[\"asm\"][\"__negvsi2\"]).apply(null,arguments)};var ___powidf2=Module[\"___powidf2\"]=function(){return(___powidf2=Module[\"___powidf2\"]=Module[\"asm\"][\"__powidf2\"]).apply(null,arguments)};var ___divsf3=Module[\"___divsf3\"]=function(){return(___divsf3=Module[\"___divsf3\"]=Module[\"asm\"][\"__divsf3\"]).apply(null,arguments)};var ___ashrti3=Module[\"___ashrti3\"]=function(){return(___ashrti3=Module[\"___ashrti3\"]=Module[\"asm\"][\"__ashrti3\"]).apply(null,arguments)};var ___floatunsidf=Module[\"___floatunsidf\"]=function(){return(___floatunsidf=Module[\"___floatunsidf\"]=Module[\"asm\"][\"__floatunsidf\"]).apply(null,arguments)};var ___fixunstfti=Module[\"___fixunstfti\"]=function(){return(___fixunstfti=Module[\"___fixunstfti\"]=Module[\"asm\"][\"__fixunstfti\"]).apply(null,arguments)};var ___ashrdi3=Module[\"___ashrdi3\"]=function(){return(___ashrdi3=Module[\"___ashrdi3\"]=Module[\"asm\"][\"__ashrdi3\"]).apply(null,arguments)};var ___extendhfsf2=Module[\"___extendhfsf2\"]=function(){return(___extendhfsf2=Module[\"___extendhfsf2\"]=Module[\"asm\"][\"__extendhfsf2\"]).apply(null,arguments)};var ___gnu_h2f_ieee=Module[\"___gnu_h2f_ieee\"]=function(){return(___gnu_h2f_ieee=Module[\"___gnu_h2f_ieee\"]=Module[\"asm\"][\"__gnu_h2f_ieee\"]).apply(null,arguments)};var ___clzsi2=Module[\"___clzsi2\"]=function(){return(___clzsi2=Module[\"___clzsi2\"]=Module[\"asm\"][\"__clzsi2\"]).apply(null,arguments)};var ___gcc_personality_v0=Module[\"___gcc_personality_v0\"]=function(){return(___gcc_personality_v0=Module[\"___gcc_personality_v0\"]=Module[\"asm\"][\"__gcc_personality_v0\"]).apply(null,arguments)};var ___popcountdi2=Module[\"___popcountdi2\"]=function(){return(___popcountdi2=Module[\"___popcountdi2\"]=Module[\"asm\"][\"__popcountdi2\"]).apply(null,arguments)};var ___fixxfti=Module[\"___fixxfti\"]=function(){return(___fixxfti=Module[\"___fixxfti\"]=Module[\"asm\"][\"__fixxfti\"]).apply(null,arguments)};var ___fixdfti=Module[\"___fixdfti\"]=function(){return(___fixdfti=Module[\"___fixdfti\"]=Module[\"asm\"][\"__fixdfti\"]).apply(null,arguments)};var ___fixunstfdi=Module[\"___fixunstfdi\"]=function(){return(___fixunstfdi=Module[\"___fixunstfdi\"]=Module[\"asm\"][\"__fixunstfdi\"]).apply(null,arguments)};var ___negvti2=Module[\"___negvti2\"]=function(){return(___negvti2=Module[\"___negvti2\"]=Module[\"asm\"][\"__negvti2\"]).apply(null,arguments)};var ___fixunsxfti=Module[\"___fixunsxfti\"]=function(){return(___fixunsxfti=Module[\"___fixunsxfti\"]=Module[\"asm\"][\"__fixunsxfti\"]).apply(null,arguments)};var ___fixunsxfsi=Module[\"___fixunsxfsi\"]=function(){return(___fixunsxfsi=Module[\"___fixunsxfsi\"]=Module[\"asm\"][\"__fixunsxfsi\"]).apply(null,arguments)};var ___floatunsisf=Module[\"___floatunsisf\"]=function(){return(___floatunsisf=Module[\"___floatunsisf\"]=Module[\"asm\"][\"__floatunsisf\"]).apply(null,arguments)};var ___floattisf=Module[\"___floattisf\"]=function(){return(___floattisf=Module[\"___floattisf\"]=Module[\"asm\"][\"__floattisf\"]).apply(null,arguments)};var ___absvdi2=Module[\"___absvdi2\"]=function(){return(___absvdi2=Module[\"___absvdi2\"]=Module[\"asm\"][\"__absvdi2\"]).apply(null,arguments)};var ___fixtfti=Module[\"___fixtfti\"]=function(){return(___fixtfti=Module[\"___fixtfti\"]=Module[\"asm\"][\"__fixtfti\"]).apply(null,arguments)};var ___ctzsi2=Module[\"___ctzsi2\"]=function(){return(___ctzsi2=Module[\"___ctzsi2\"]=Module[\"asm\"][\"__ctzsi2\"]).apply(null,arguments)};var ___negvdi2=Module[\"___negvdi2\"]=function(){return(___negvdi2=Module[\"___negvdi2\"]=Module[\"asm\"][\"__negvdi2\"]).apply(null,arguments)};var ___ucmpti2=Module[\"___ucmpti2\"]=function(){return(___ucmpti2=Module[\"___ucmpti2\"]=Module[\"asm\"][\"__ucmpti2\"]).apply(null,arguments)};var ___fe_getround=Module[\"___fe_getround\"]=function(){return(___fe_getround=Module[\"___fe_getround\"]=Module[\"asm\"][\"__fe_getround\"]).apply(null,arguments)};var ___fe_raise_inexact=Module[\"___fe_raise_inexact\"]=function(){return(___fe_raise_inexact=Module[\"___fe_raise_inexact\"]=Module[\"asm\"][\"__fe_raise_inexact\"]).apply(null,arguments)};var ___negsf2=Module[\"___negsf2\"]=function(){return(___negsf2=Module[\"___negsf2\"]=Module[\"asm\"][\"__negsf2\"]).apply(null,arguments)};var ___subvdi3=Module[\"___subvdi3\"]=function(){return(___subvdi3=Module[\"___subvdi3\"]=Module[\"asm\"][\"__subvdi3\"]).apply(null,arguments)};var _atomic_flag_clear=Module[\"_atomic_flag_clear\"]=function(){return(_atomic_flag_clear=Module[\"_atomic_flag_clear\"]=Module[\"asm\"][\"atomic_flag_clear\"]).apply(null,arguments)};var ___fixunstfsi=Module[\"___fixunstfsi\"]=function(){return(___fixunstfsi=Module[\"___fixunstfsi\"]=Module[\"asm\"][\"__fixunstfsi\"]).apply(null,arguments)};var ___floatsisf=Module[\"___floatsisf\"]=function(){return(___floatsisf=Module[\"___floatsisf\"]=Module[\"asm\"][\"__floatsisf\"]).apply(null,arguments)};var ___cmpdi2=Module[\"___cmpdi2\"]=function(){return(___cmpdi2=Module[\"___cmpdi2\"]=Module[\"asm\"][\"__cmpdi2\"]).apply(null,arguments)};var ___clear_cache=Module[\"___clear_cache\"]=function(){return(___clear_cache=Module[\"___clear_cache\"]=Module[\"asm\"][\"__clear_cache\"]).apply(null,arguments)};var ___extendsfdf2=Module[\"___extendsfdf2\"]=function(){return(___extendsfdf2=Module[\"___extendsfdf2\"]=Module[\"asm\"][\"__extendsfdf2\"]).apply(null,arguments)};var ___udivmodti4=Module[\"___udivmodti4\"]=function(){return(___udivmodti4=Module[\"___udivmodti4\"]=Module[\"asm\"][\"__udivmodti4\"]).apply(null,arguments)};var ___divmoddi4=Module[\"___divmoddi4\"]=function(){return(___divmoddi4=Module[\"___divmoddi4\"]=Module[\"asm\"][\"__divmoddi4\"]).apply(null,arguments)};var ___divdi3=Module[\"___divdi3\"]=function(){return(___divdi3=Module[\"___divdi3\"]=Module[\"asm\"][\"__divdi3\"]).apply(null,arguments)};var _atomic_signal_fence=Module[\"_atomic_signal_fence\"]=function(){return(_atomic_signal_fence=Module[\"_atomic_signal_fence\"]=Module[\"asm\"][\"atomic_signal_fence\"]).apply(null,arguments)};var ___modti3=Module[\"___modti3\"]=function(){return(___modti3=Module[\"___modti3\"]=Module[\"asm\"][\"__modti3\"]).apply(null,arguments)};var ___truncsfhf2=Module[\"___truncsfhf2\"]=function(){return(___truncsfhf2=Module[\"___truncsfhf2\"]=Module[\"asm\"][\"__truncsfhf2\"]).apply(null,arguments)};var ___gnu_f2h_ieee=Module[\"___gnu_f2h_ieee\"]=function(){return(___gnu_f2h_ieee=Module[\"___gnu_f2h_ieee\"]=Module[\"asm\"][\"__gnu_f2h_ieee\"]).apply(null,arguments)};var ___umodsi3=Module[\"___umodsi3\"]=function(){return(___umodsi3=Module[\"___umodsi3\"]=Module[\"asm\"][\"__umodsi3\"]).apply(null,arguments)};var _atomic_flag_clear_explicit=Module[\"_atomic_flag_clear_explicit\"]=function(){return(_atomic_flag_clear_explicit=Module[\"_atomic_flag_clear_explicit\"]=Module[\"asm\"][\"atomic_flag_clear_explicit\"]).apply(null,arguments)};var ___powixf2=Module[\"___powixf2\"]=function(){return(___powixf2=Module[\"___powixf2\"]=Module[\"asm\"][\"__powixf2\"]).apply(null,arguments)};var ___fixunsdfsi=Module[\"___fixunsdfsi\"]=function(){return(___fixunsdfsi=Module[\"___fixunsdfsi\"]=Module[\"asm\"][\"__fixunsdfsi\"]).apply(null,arguments)};var ___bswapdi2=Module[\"___bswapdi2\"]=function(){return(___bswapdi2=Module[\"___bswapdi2\"]=Module[\"asm\"][\"__bswapdi2\"]).apply(null,arguments)};var ___divmodsi4=Module[\"___divmodsi4\"]=function(){return(___divmodsi4=Module[\"___divmodsi4\"]=Module[\"asm\"][\"__divmodsi4\"]).apply(null,arguments)};var ___divdf3=Module[\"___divdf3\"]=function(){return(___divdf3=Module[\"___divdf3\"]=Module[\"asm\"][\"__divdf3\"]).apply(null,arguments)};var ___addvti3=Module[\"___addvti3\"]=function(){return(___addvti3=Module[\"___addvti3\"]=Module[\"asm\"][\"__addvti3\"]).apply(null,arguments)};var ___paritysi2=Module[\"___paritysi2\"]=function(){return(___paritysi2=Module[\"___paritysi2\"]=Module[\"asm\"][\"__paritysi2\"]).apply(null,arguments)};var ___emutls_get_address=Module[\"___emutls_get_address\"]=function(){return(___emutls_get_address=Module[\"___emutls_get_address\"]=Module[\"asm\"][\"__emutls_get_address\"]).apply(null,arguments)};var ___subvti3=Module[\"___subvti3\"]=function(){return(___subvti3=Module[\"___subvti3\"]=Module[\"asm\"][\"__subvti3\"]).apply(null,arguments)};var ___subsf3=Module[\"___subsf3\"]=function(){return(___subsf3=Module[\"___subsf3\"]=Module[\"asm\"][\"__subsf3\"]).apply(null,arguments)};var ___addsf3=Module[\"___addsf3\"]=function(){return(___addsf3=Module[\"___addsf3\"]=Module[\"asm\"][\"__addsf3\"]).apply(null,arguments)};var ___addvdi3=Module[\"___addvdi3\"]=function(){return(___addvdi3=Module[\"___addvdi3\"]=Module[\"asm\"][\"__addvdi3\"]).apply(null,arguments)};var ___eprintf=Module[\"___eprintf\"]=function(){return(___eprintf=Module[\"___eprintf\"]=Module[\"asm\"][\"__eprintf\"]).apply(null,arguments)};var ___popcountti2=Module[\"___popcountti2\"]=function(){return(___popcountti2=Module[\"___popcountti2\"]=Module[\"asm\"][\"__popcountti2\"]).apply(null,arguments)};var ___adddf3=Module[\"___adddf3\"]=function(){return(___adddf3=Module[\"___adddf3\"]=Module[\"asm\"][\"__adddf3\"]).apply(null,arguments)};var ___mulodi4=Module[\"___mulodi4\"]=function(){return(___mulodi4=Module[\"___mulodi4\"]=Module[\"asm\"][\"__mulodi4\"]).apply(null,arguments)};var ___muldf3=Module[\"___muldf3\"]=function(){return(___muldf3=Module[\"___muldf3\"]=Module[\"asm\"][\"__muldf3\"]).apply(null,arguments)};var ___truncdfsf2=Module[\"___truncdfsf2\"]=function(){return(___truncdfsf2=Module[\"___truncdfsf2\"]=Module[\"asm\"][\"__truncdfsf2\"]).apply(null,arguments)};var ___floatunditf=Module[\"___floatunditf\"]=function(){return(___floatunditf=Module[\"___floatunditf\"]=Module[\"asm\"][\"__floatunditf\"]).apply(null,arguments)};var ___umodti3=Module[\"___umodti3\"]=function(){return(___umodti3=Module[\"___umodti3\"]=Module[\"asm\"][\"__umodti3\"]).apply(null,arguments)};var ___floatsidf=Module[\"___floatsidf\"]=function(){return(___floatsidf=Module[\"___floatsidf\"]=Module[\"asm\"][\"__floatsidf\"]).apply(null,arguments)};var ___mulosi4=Module[\"___mulosi4\"]=function(){return(___mulosi4=Module[\"___mulosi4\"]=Module[\"asm\"][\"__mulosi4\"]).apply(null,arguments)};var ___floattitf=Module[\"___floattitf\"]=function(){return(___floattitf=Module[\"___floattitf\"]=Module[\"asm\"][\"__floattitf\"]).apply(null,arguments)};var ___atomic_load=Module[\"___atomic_load\"]=function(){return(___atomic_load=Module[\"___atomic_load\"]=Module[\"asm\"][\"__atomic_load\"]).apply(null,arguments)};var ___atomic_store=Module[\"___atomic_store\"]=function(){return(___atomic_store=Module[\"___atomic_store\"]=Module[\"asm\"][\"__atomic_store\"]).apply(null,arguments)};var ___atomic_compare_exchange=Module[\"___atomic_compare_exchange\"]=function(){return(___atomic_compare_exchange=Module[\"___atomic_compare_exchange\"]=Module[\"asm\"][\"__atomic_compare_exchange\"]).apply(null,arguments)};var ___atomic_exchange=Module[\"___atomic_exchange\"]=function(){return(___atomic_exchange=Module[\"___atomic_exchange\"]=Module[\"asm\"][\"__atomic_exchange\"]).apply(null,arguments)};var ___atomic_load_1=Module[\"___atomic_load_1\"]=function(){return(___atomic_load_1=Module[\"___atomic_load_1\"]=Module[\"asm\"][\"__atomic_load_1\"]).apply(null,arguments)};var ___atomic_load_2=Module[\"___atomic_load_2\"]=function(){return(___atomic_load_2=Module[\"___atomic_load_2\"]=Module[\"asm\"][\"__atomic_load_2\"]).apply(null,arguments)};var ___atomic_load_4=Module[\"___atomic_load_4\"]=function(){return(___atomic_load_4=Module[\"___atomic_load_4\"]=Module[\"asm\"][\"__atomic_load_4\"]).apply(null,arguments)};var ___atomic_load_8=Module[\"___atomic_load_8\"]=function(){return(___atomic_load_8=Module[\"___atomic_load_8\"]=Module[\"asm\"][\"__atomic_load_8\"]).apply(null,arguments)};var ___atomic_load_16=Module[\"___atomic_load_16\"]=function(){return(___atomic_load_16=Module[\"___atomic_load_16\"]=Module[\"asm\"][\"__atomic_load_16\"]).apply(null,arguments)};var ___atomic_store_1=Module[\"___atomic_store_1\"]=function(){return(___atomic_store_1=Module[\"___atomic_store_1\"]=Module[\"asm\"][\"__atomic_store_1\"]).apply(null,arguments)};var ___atomic_store_2=Module[\"___atomic_store_2\"]=function(){return(___atomic_store_2=Module[\"___atomic_store_2\"]=Module[\"asm\"][\"__atomic_store_2\"]).apply(null,arguments)};var ___atomic_store_4=Module[\"___atomic_store_4\"]=function(){return(___atomic_store_4=Module[\"___atomic_store_4\"]=Module[\"asm\"][\"__atomic_store_4\"]).apply(null,arguments)};var ___atomic_store_8=Module[\"___atomic_store_8\"]=function(){return(___atomic_store_8=Module[\"___atomic_store_8\"]=Module[\"asm\"][\"__atomic_store_8\"]).apply(null,arguments)};var ___atomic_store_16=Module[\"___atomic_store_16\"]=function(){return(___atomic_store_16=Module[\"___atomic_store_16\"]=Module[\"asm\"][\"__atomic_store_16\"]).apply(null,arguments)};var ___atomic_exchange_1=Module[\"___atomic_exchange_1\"]=function(){return(___atomic_exchange_1=Module[\"___atomic_exchange_1\"]=Module[\"asm\"][\"__atomic_exchange_1\"]).apply(null,arguments)};var ___atomic_exchange_2=Module[\"___atomic_exchange_2\"]=function(){return(___atomic_exchange_2=Module[\"___atomic_exchange_2\"]=Module[\"asm\"][\"__atomic_exchange_2\"]).apply(null,arguments)};var ___atomic_exchange_4=Module[\"___atomic_exchange_4\"]=function(){return(___atomic_exchange_4=Module[\"___atomic_exchange_4\"]=Module[\"asm\"][\"__atomic_exchange_4\"]).apply(null,arguments)};var ___atomic_exchange_8=Module[\"___atomic_exchange_8\"]=function(){return(___atomic_exchange_8=Module[\"___atomic_exchange_8\"]=Module[\"asm\"][\"__atomic_exchange_8\"]).apply(null,arguments)};var ___atomic_exchange_16=Module[\"___atomic_exchange_16\"]=function(){return(___atomic_exchange_16=Module[\"___atomic_exchange_16\"]=Module[\"asm\"][\"__atomic_exchange_16\"]).apply(null,arguments)};var ___atomic_compare_exchange_1=Module[\"___atomic_compare_exchange_1\"]=function(){return(___atomic_compare_exchange_1=Module[\"___atomic_compare_exchange_1\"]=Module[\"asm\"][\"__atomic_compare_exchange_1\"]).apply(null,arguments)};var ___atomic_compare_exchange_2=Module[\"___atomic_compare_exchange_2\"]=function(){return(___atomic_compare_exchange_2=Module[\"___atomic_compare_exchange_2\"]=Module[\"asm\"][\"__atomic_compare_exchange_2\"]).apply(null,arguments)};var ___atomic_compare_exchange_4=Module[\"___atomic_compare_exchange_4\"]=function(){return(___atomic_compare_exchange_4=Module[\"___atomic_compare_exchange_4\"]=Module[\"asm\"][\"__atomic_compare_exchange_4\"]).apply(null,arguments)};var ___atomic_compare_exchange_8=Module[\"___atomic_compare_exchange_8\"]=function(){return(___atomic_compare_exchange_8=Module[\"___atomic_compare_exchange_8\"]=Module[\"asm\"][\"__atomic_compare_exchange_8\"]).apply(null,arguments)};var ___atomic_compare_exchange_16=Module[\"___atomic_compare_exchange_16\"]=function(){return(___atomic_compare_exchange_16=Module[\"___atomic_compare_exchange_16\"]=Module[\"asm\"][\"__atomic_compare_exchange_16\"]).apply(null,arguments)};var ___atomic_fetch_add_1=Module[\"___atomic_fetch_add_1\"]=function(){return(___atomic_fetch_add_1=Module[\"___atomic_fetch_add_1\"]=Module[\"asm\"][\"__atomic_fetch_add_1\"]).apply(null,arguments)};var ___atomic_fetch_add_2=Module[\"___atomic_fetch_add_2\"]=function(){return(___atomic_fetch_add_2=Module[\"___atomic_fetch_add_2\"]=Module[\"asm\"][\"__atomic_fetch_add_2\"]).apply(null,arguments)};var ___atomic_fetch_add_4=Module[\"___atomic_fetch_add_4\"]=function(){return(___atomic_fetch_add_4=Module[\"___atomic_fetch_add_4\"]=Module[\"asm\"][\"__atomic_fetch_add_4\"]).apply(null,arguments)};var ___atomic_fetch_add_8=Module[\"___atomic_fetch_add_8\"]=function(){return(___atomic_fetch_add_8=Module[\"___atomic_fetch_add_8\"]=Module[\"asm\"][\"__atomic_fetch_add_8\"]).apply(null,arguments)};var ___atomic_fetch_add_16=Module[\"___atomic_fetch_add_16\"]=function(){return(___atomic_fetch_add_16=Module[\"___atomic_fetch_add_16\"]=Module[\"asm\"][\"__atomic_fetch_add_16\"]).apply(null,arguments)};var ___atomic_fetch_sub_1=Module[\"___atomic_fetch_sub_1\"]=function(){return(___atomic_fetch_sub_1=Module[\"___atomic_fetch_sub_1\"]=Module[\"asm\"][\"__atomic_fetch_sub_1\"]).apply(null,arguments)};var ___atomic_fetch_sub_2=Module[\"___atomic_fetch_sub_2\"]=function(){return(___atomic_fetch_sub_2=Module[\"___atomic_fetch_sub_2\"]=Module[\"asm\"][\"__atomic_fetch_sub_2\"]).apply(null,arguments)};var ___atomic_fetch_sub_4=Module[\"___atomic_fetch_sub_4\"]=function(){return(___atomic_fetch_sub_4=Module[\"___atomic_fetch_sub_4\"]=Module[\"asm\"][\"__atomic_fetch_sub_4\"]).apply(null,arguments)};var ___atomic_fetch_sub_8=Module[\"___atomic_fetch_sub_8\"]=function(){return(___atomic_fetch_sub_8=Module[\"___atomic_fetch_sub_8\"]=Module[\"asm\"][\"__atomic_fetch_sub_8\"]).apply(null,arguments)};var ___atomic_fetch_sub_16=Module[\"___atomic_fetch_sub_16\"]=function(){return(___atomic_fetch_sub_16=Module[\"___atomic_fetch_sub_16\"]=Module[\"asm\"][\"__atomic_fetch_sub_16\"]).apply(null,arguments)};var ___atomic_fetch_and_1=Module[\"___atomic_fetch_and_1\"]=function(){return(___atomic_fetch_and_1=Module[\"___atomic_fetch_and_1\"]=Module[\"asm\"][\"__atomic_fetch_and_1\"]).apply(null,arguments)};var ___atomic_fetch_and_2=Module[\"___atomic_fetch_and_2\"]=function(){return(___atomic_fetch_and_2=Module[\"___atomic_fetch_and_2\"]=Module[\"asm\"][\"__atomic_fetch_and_2\"]).apply(null,arguments)};var ___atomic_fetch_and_4=Module[\"___atomic_fetch_and_4\"]=function(){return(___atomic_fetch_and_4=Module[\"___atomic_fetch_and_4\"]=Module[\"asm\"][\"__atomic_fetch_and_4\"]).apply(null,arguments)};var ___atomic_fetch_and_8=Module[\"___atomic_fetch_and_8\"]=function(){return(___atomic_fetch_and_8=Module[\"___atomic_fetch_and_8\"]=Module[\"asm\"][\"__atomic_fetch_and_8\"]).apply(null,arguments)};var ___atomic_fetch_and_16=Module[\"___atomic_fetch_and_16\"]=function(){return(___atomic_fetch_and_16=Module[\"___atomic_fetch_and_16\"]=Module[\"asm\"][\"__atomic_fetch_and_16\"]).apply(null,arguments)};var ___atomic_fetch_or_1=Module[\"___atomic_fetch_or_1\"]=function(){return(___atomic_fetch_or_1=Module[\"___atomic_fetch_or_1\"]=Module[\"asm\"][\"__atomic_fetch_or_1\"]).apply(null,arguments)};var ___atomic_fetch_or_2=Module[\"___atomic_fetch_or_2\"]=function(){return(___atomic_fetch_or_2=Module[\"___atomic_fetch_or_2\"]=Module[\"asm\"][\"__atomic_fetch_or_2\"]).apply(null,arguments)};var ___atomic_fetch_or_4=Module[\"___atomic_fetch_or_4\"]=function(){return(___atomic_fetch_or_4=Module[\"___atomic_fetch_or_4\"]=Module[\"asm\"][\"__atomic_fetch_or_4\"]).apply(null,arguments)};var ___atomic_fetch_or_8=Module[\"___atomic_fetch_or_8\"]=function(){return(___atomic_fetch_or_8=Module[\"___atomic_fetch_or_8\"]=Module[\"asm\"][\"__atomic_fetch_or_8\"]).apply(null,arguments)};var ___atomic_fetch_or_16=Module[\"___atomic_fetch_or_16\"]=function(){return(___atomic_fetch_or_16=Module[\"___atomic_fetch_or_16\"]=Module[\"asm\"][\"__atomic_fetch_or_16\"]).apply(null,arguments)};var ___atomic_fetch_xor_1=Module[\"___atomic_fetch_xor_1\"]=function(){return(___atomic_fetch_xor_1=Module[\"___atomic_fetch_xor_1\"]=Module[\"asm\"][\"__atomic_fetch_xor_1\"]).apply(null,arguments)};var ___atomic_fetch_xor_2=Module[\"___atomic_fetch_xor_2\"]=function(){return(___atomic_fetch_xor_2=Module[\"___atomic_fetch_xor_2\"]=Module[\"asm\"][\"__atomic_fetch_xor_2\"]).apply(null,arguments)};var ___atomic_fetch_xor_4=Module[\"___atomic_fetch_xor_4\"]=function(){return(___atomic_fetch_xor_4=Module[\"___atomic_fetch_xor_4\"]=Module[\"asm\"][\"__atomic_fetch_xor_4\"]).apply(null,arguments)};var ___atomic_fetch_xor_8=Module[\"___atomic_fetch_xor_8\"]=function(){return(___atomic_fetch_xor_8=Module[\"___atomic_fetch_xor_8\"]=Module[\"asm\"][\"__atomic_fetch_xor_8\"]).apply(null,arguments)};var ___atomic_fetch_xor_16=Module[\"___atomic_fetch_xor_16\"]=function(){return(___atomic_fetch_xor_16=Module[\"___atomic_fetch_xor_16\"]=Module[\"asm\"][\"__atomic_fetch_xor_16\"]).apply(null,arguments)};var ___udivmoddi4=Module[\"___udivmoddi4\"]=function(){return(___udivmoddi4=Module[\"___udivmoddi4\"]=Module[\"asm\"][\"__udivmoddi4\"]).apply(null,arguments)};var ___ctzdi2=Module[\"___ctzdi2\"]=function(){return(___ctzdi2=Module[\"___ctzdi2\"]=Module[\"asm\"][\"__ctzdi2\"]).apply(null,arguments)};var ___fixunsxfdi=Module[\"___fixunsxfdi\"]=function(){return(___fixunsxfdi=Module[\"___fixunsxfdi\"]=Module[\"asm\"][\"__fixunsxfdi\"]).apply(null,arguments)};var ___fixunssfsi=Module[\"___fixunssfsi\"]=function(){return(___fixunssfsi=Module[\"___fixunssfsi\"]=Module[\"asm\"][\"__fixunssfsi\"]).apply(null,arguments)};var ___cmpti2=Module[\"___cmpti2\"]=function(){return(___cmpti2=Module[\"___cmpti2\"]=Module[\"asm\"][\"__cmpti2\"]).apply(null,arguments)};var ___floatuntixf=Module[\"___floatuntixf\"]=function(){return(___floatuntixf=Module[\"___floatuntixf\"]=Module[\"asm\"][\"__floatuntixf\"]).apply(null,arguments)};var ___moddi3=Module[\"___moddi3\"]=function(){return(___moddi3=Module[\"___moddi3\"]=Module[\"asm\"][\"__moddi3\"]).apply(null,arguments)};var ___floatdixf=Module[\"___floatdixf\"]=function(){return(___floatdixf=Module[\"___floatdixf\"]=Module[\"asm\"][\"__floatdixf\"]).apply(null,arguments)};var ___fixunsdfti=Module[\"___fixunsdfti\"]=function(){return(___fixunsdfti=Module[\"___fixunsdfti\"]=Module[\"asm\"][\"__fixunsdfti\"]).apply(null,arguments)};var ___floatuntidf=Module[\"___floatuntidf\"]=function(){return(___floatuntidf=Module[\"___floatuntidf\"]=Module[\"asm\"][\"__floatuntidf\"]).apply(null,arguments)};var ___negti2=Module[\"___negti2\"]=function(){return(___negti2=Module[\"___negti2\"]=Module[\"asm\"][\"__negti2\"]).apply(null,arguments)};var ___parityti2=Module[\"___parityti2\"]=function(){return(___parityti2=Module[\"___parityti2\"]=Module[\"asm\"][\"__parityti2\"]).apply(null,arguments)};var ___paritydi2=Module[\"___paritydi2\"]=function(){return(___paritydi2=Module[\"___paritydi2\"]=Module[\"asm\"][\"__paritydi2\"]).apply(null,arguments)};var ___udivdi3=Module[\"___udivdi3\"]=function(){return(___udivdi3=Module[\"___udivdi3\"]=Module[\"asm\"][\"__udivdi3\"]).apply(null,arguments)};var ___subdf3=Module[\"___subdf3\"]=function(){return(___subdf3=Module[\"___subdf3\"]=Module[\"asm\"][\"__subdf3\"]).apply(null,arguments)};var ___umoddi3=Module[\"___umoddi3\"]=function(){return(___umoddi3=Module[\"___umoddi3\"]=Module[\"asm\"][\"__umoddi3\"]).apply(null,arguments)};var ___truncdfhf2=Module[\"___truncdfhf2\"]=function(){return(___truncdfhf2=Module[\"___truncdfhf2\"]=Module[\"asm\"][\"__truncdfhf2\"]).apply(null,arguments)};var ___mulsf3=Module[\"___mulsf3\"]=function(){return(___mulsf3=Module[\"___mulsf3\"]=Module[\"asm\"][\"__mulsf3\"]).apply(null,arguments)};var ___fixdfsi=Module[\"___fixdfsi\"]=function(){return(___fixdfsi=Module[\"___fixdfsi\"]=Module[\"asm\"][\"__fixdfsi\"]).apply(null,arguments)};var ___addvsi3=Module[\"___addvsi3\"]=function(){return(___addvsi3=Module[\"___addvsi3\"]=Module[\"asm\"][\"__addvsi3\"]).apply(null,arguments)};var ___ffssi2=Module[\"___ffssi2\"]=function(){return(___ffssi2=Module[\"___ffssi2\"]=Module[\"asm\"][\"__ffssi2\"]).apply(null,arguments)};var ___ffsti2=Module[\"___ffsti2\"]=function(){return(___ffsti2=Module[\"___ffsti2\"]=Module[\"asm\"][\"__ffsti2\"]).apply(null,arguments)};var _atomic_flag_test_and_set_explicit=Module[\"_atomic_flag_test_and_set_explicit\"]=function(){return(_atomic_flag_test_and_set_explicit=Module[\"_atomic_flag_test_and_set_explicit\"]=Module[\"asm\"][\"atomic_flag_test_and_set_explicit\"]).apply(null,arguments)};var ___ledf2=Module[\"___ledf2\"]=function(){return(___ledf2=Module[\"___ledf2\"]=Module[\"asm\"][\"__ledf2\"]).apply(null,arguments)};var ___gedf2=Module[\"___gedf2\"]=function(){return(___gedf2=Module[\"___gedf2\"]=Module[\"asm\"][\"__gedf2\"]).apply(null,arguments)};var ___unorddf2=Module[\"___unorddf2\"]=function(){return(___unorddf2=Module[\"___unorddf2\"]=Module[\"asm\"][\"__unorddf2\"]).apply(null,arguments)};var ___eqdf2=Module[\"___eqdf2\"]=function(){return(___eqdf2=Module[\"___eqdf2\"]=Module[\"asm\"][\"__eqdf2\"]).apply(null,arguments)};var ___ltdf2=Module[\"___ltdf2\"]=function(){return(___ltdf2=Module[\"___ltdf2\"]=Module[\"asm\"][\"__ltdf2\"]).apply(null,arguments)};var ___nedf2=Module[\"___nedf2\"]=function(){return(___nedf2=Module[\"___nedf2\"]=Module[\"asm\"][\"__nedf2\"]).apply(null,arguments)};var ___gtdf2=Module[\"___gtdf2\"]=function(){return(___gtdf2=Module[\"___gtdf2\"]=Module[\"asm\"][\"__gtdf2\"]).apply(null,arguments)};var ___absvti2=Module[\"___absvti2\"]=function(){return(___absvti2=Module[\"___absvti2\"]=Module[\"asm\"][\"__absvti2\"]).apply(null,arguments)};var ___fixsfti=Module[\"___fixsfti\"]=function(){return(___fixsfti=Module[\"___fixsfti\"]=Module[\"asm\"][\"__fixsfti\"]).apply(null,arguments)};var ___floatuntisf=Module[\"___floatuntisf\"]=function(){return(___floatuntisf=Module[\"___floatuntisf\"]=Module[\"asm\"][\"__floatuntisf\"]).apply(null,arguments)};var ___floatuntitf=Module[\"___floatuntitf\"]=function(){return(___floatuntitf=Module[\"___floatuntitf\"]=Module[\"asm\"][\"__floatuntitf\"]).apply(null,arguments)};var ___popcountsi2=Module[\"___popcountsi2\"]=function(){return(___popcountsi2=Module[\"___popcountsi2\"]=Module[\"asm\"][\"__popcountsi2\"]).apply(null,arguments)};var ___mulvsi3=Module[\"___mulvsi3\"]=function(){return(___mulvsi3=Module[\"___mulvsi3\"]=Module[\"asm\"][\"__mulvsi3\"]).apply(null,arguments)};var ___divsc3=Module[\"___divsc3\"]=function(){return(___divsc3=Module[\"___divsc3\"]=Module[\"asm\"][\"__divsc3\"]).apply(null,arguments)};var _fmaxf=Module[\"_fmaxf\"]=function(){return(_fmaxf=Module[\"_fmaxf\"]=Module[\"asm\"][\"fmaxf\"]).apply(null,arguments)};var ___floatundixf=Module[\"___floatundixf\"]=function(){return(___floatundixf=Module[\"___floatundixf\"]=Module[\"asm\"][\"__floatundixf\"]).apply(null,arguments)};var ___ucmpdi2=Module[\"___ucmpdi2\"]=function(){return(___ucmpdi2=Module[\"___ucmpdi2\"]=Module[\"asm\"][\"__ucmpdi2\"]).apply(null,arguments)};var ___clzdi2=Module[\"___clzdi2\"]=function(){return(___clzdi2=Module[\"___clzdi2\"]=Module[\"asm\"][\"__clzdi2\"]).apply(null,arguments)};var ___muloti4=Module[\"___muloti4\"]=function(){return(___muloti4=Module[\"___muloti4\"]=Module[\"asm\"][\"__muloti4\"]).apply(null,arguments)};var ___floattidf=Module[\"___floattidf\"]=function(){return(___floattidf=Module[\"___floattidf\"]=Module[\"asm\"][\"__floattidf\"]).apply(null,arguments)};var ___bswapsi2=Module[\"___bswapsi2\"]=function(){return(___bswapsi2=Module[\"___bswapsi2\"]=Module[\"asm\"][\"__bswapsi2\"]).apply(null,arguments)};var ___muldi3=Module[\"___muldi3\"]=function(){return(___muldi3=Module[\"___muldi3\"]=Module[\"asm\"][\"__muldi3\"]).apply(null,arguments)};var ___divtc3=Module[\"___divtc3\"]=function(){return(___divtc3=Module[\"___divtc3\"]=Module[\"asm\"][\"__divtc3\"]).apply(null,arguments)};var ___negdi2=Module[\"___negdi2\"]=function(){return(___negdi2=Module[\"___negdi2\"]=Module[\"asm\"][\"__negdi2\"]).apply(null,arguments)};var ___mulvdi3=Module[\"___mulvdi3\"]=function(){return(___mulvdi3=Module[\"___mulvdi3\"]=Module[\"asm\"][\"__mulvdi3\"]).apply(null,arguments)};var ___powisf2=Module[\"___powisf2\"]=function(){return(___powisf2=Module[\"___powisf2\"]=Module[\"asm\"][\"__powisf2\"]).apply(null,arguments)};var stackSave=Module[\"stackSave\"]=function(){return(stackSave=Module[\"stackSave\"]=Module[\"asm\"][\"stackSave\"]).apply(null,arguments)};var stackRestore=Module[\"stackRestore\"]=function(){return(stackRestore=Module[\"stackRestore\"]=Module[\"asm\"][\"stackRestore\"]).apply(null,arguments)};var stackAlloc=Module[\"stackAlloc\"]=function(){return(stackAlloc=Module[\"stackAlloc\"]=Module[\"asm\"][\"stackAlloc\"]).apply(null,arguments)};var _emscripten_stack_get_current=Module[\"_emscripten_stack_get_current\"]=function(){return(_emscripten_stack_get_current=Module[\"_emscripten_stack_get_current\"]=Module[\"asm\"][\"emscripten_stack_get_current\"]).apply(null,arguments)};var _emscripten_stack_init=Module[\"_emscripten_stack_init\"]=function(){return(_emscripten_stack_init=Module[\"_emscripten_stack_init\"]=Module[\"asm\"][\"emscripten_stack_init\"]).apply(null,arguments)};var _emscripten_stack_set_limits=Module[\"_emscripten_stack_set_limits\"]=function(){return(_emscripten_stack_set_limits=Module[\"_emscripten_stack_set_limits\"]=Module[\"asm\"][\"emscripten_stack_set_limits\"]).apply(null,arguments)};var _emscripten_stack_get_free=Module[\"_emscripten_stack_get_free\"]=function(){return(_emscripten_stack_get_free=Module[\"_emscripten_stack_get_free\"]=Module[\"asm\"][\"emscripten_stack_get_free\"]).apply(null,arguments)};var _setThrew=Module[\"_setThrew\"]=function(){return(_setThrew=Module[\"_setThrew\"]=Module[\"asm\"][\"setThrew\"]).apply(null,arguments)};var ___cxa_guard_acquire=Module[\"___cxa_guard_acquire\"]=function(){return(___cxa_guard_acquire=Module[\"___cxa_guard_acquire\"]=Module[\"asm\"][\"__cxa_guard_acquire\"]).apply(null,arguments)};var ___cxa_guard_release=Module[\"___cxa_guard_release\"]=function(){return(___cxa_guard_release=Module[\"___cxa_guard_release\"]=Module[\"asm\"][\"__cxa_guard_release\"]).apply(null,arguments)};var ___cxa_pure_virtual=Module[\"___cxa_pure_virtual\"]=function(){return(___cxa_pure_virtual=Module[\"___cxa_pure_virtual\"]=Module[\"asm\"][\"__cxa_pure_virtual\"]).apply(null,arguments)};var ___cxa_uncaught_exceptions=Module[\"___cxa_uncaught_exceptions\"]=function(){return(___cxa_uncaught_exceptions=Module[\"___cxa_uncaught_exceptions\"]=Module[\"asm\"][\"__cxa_uncaught_exceptions\"]).apply(null,arguments)};var ___cxa_decrement_exception_refcount=Module[\"___cxa_decrement_exception_refcount\"]=function(){return(___cxa_decrement_exception_refcount=Module[\"___cxa_decrement_exception_refcount\"]=Module[\"asm\"][\"__cxa_decrement_exception_refcount\"]).apply(null,arguments)};var ___cxa_increment_exception_refcount=Module[\"___cxa_increment_exception_refcount\"]=function(){return(___cxa_increment_exception_refcount=Module[\"___cxa_increment_exception_refcount\"]=Module[\"asm\"][\"__cxa_increment_exception_refcount\"]).apply(null,arguments)};var ___cxa_current_primary_exception=Module[\"___cxa_current_primary_exception\"]=function(){return(___cxa_current_primary_exception=Module[\"___cxa_current_primary_exception\"]=Module[\"asm\"][\"__cxa_current_primary_exception\"]).apply(null,arguments)};var ___cxa_rethrow_primary_exception=Module[\"___cxa_rethrow_primary_exception\"]=function(){return(___cxa_rethrow_primary_exception=Module[\"___cxa_rethrow_primary_exception\"]=Module[\"asm\"][\"__cxa_rethrow_primary_exception\"]).apply(null,arguments)};var _abort_message=Module[\"_abort_message\"]=function(){return(_abort_message=Module[\"_abort_message\"]=Module[\"asm\"][\"abort_message\"]).apply(null,arguments)};var ___cxa_bad_cast=Module[\"___cxa_bad_cast\"]=function(){return(___cxa_bad_cast=Module[\"___cxa_bad_cast\"]=Module[\"asm\"][\"__cxa_bad_cast\"]).apply(null,arguments)};var ___cxa_bad_typeid=Module[\"___cxa_bad_typeid\"]=function(){return(___cxa_bad_typeid=Module[\"___cxa_bad_typeid\"]=Module[\"asm\"][\"__cxa_bad_typeid\"]).apply(null,arguments)};var ___cxa_throw_bad_array_new_length=Module[\"___cxa_throw_bad_array_new_length\"]=function(){return(___cxa_throw_bad_array_new_length=Module[\"___cxa_throw_bad_array_new_length\"]=Module[\"asm\"][\"__cxa_throw_bad_array_new_length\"]).apply(null,arguments)};var ___cxa_demangle=Module[\"___cxa_demangle\"]=function(){return(___cxa_demangle=Module[\"___cxa_demangle\"]=Module[\"asm\"][\"__cxa_demangle\"]).apply(null,arguments)};var ___cxa_get_globals=Module[\"___cxa_get_globals\"]=function(){return(___cxa_get_globals=Module[\"___cxa_get_globals\"]=Module[\"asm\"][\"__cxa_get_globals\"]).apply(null,arguments)};var ___cxa_get_globals_fast=Module[\"___cxa_get_globals_fast\"]=function(){return(___cxa_get_globals_fast=Module[\"___cxa_get_globals_fast\"]=Module[\"asm\"][\"__cxa_get_globals_fast\"]).apply(null,arguments)};var ___cxa_guard_abort=Module[\"___cxa_guard_abort\"]=function(){return(___cxa_guard_abort=Module[\"___cxa_guard_abort\"]=Module[\"asm\"][\"__cxa_guard_abort\"]).apply(null,arguments)};var ___cxa_deleted_virtual=Module[\"___cxa_deleted_virtual\"]=function(){return(___cxa_deleted_virtual=Module[\"___cxa_deleted_virtual\"]=Module[\"asm\"][\"__cxa_deleted_virtual\"]).apply(null,arguments)};var ___dynamic_cast=Module[\"___dynamic_cast\"]=function(){return(___dynamic_cast=Module[\"___dynamic_cast\"]=Module[\"asm\"][\"__dynamic_cast\"]).apply(null,arguments)};var ___cxa_uncaught_exception=Module[\"___cxa_uncaught_exception\"]=function(){return(___cxa_uncaught_exception=Module[\"___cxa_uncaught_exception\"]=Module[\"asm\"][\"__cxa_uncaught_exception\"]).apply(null,arguments)};var _sbrk=Module[\"_sbrk\"]=function(){return(_sbrk=Module[\"_sbrk\"]=Module[\"asm\"][\"sbrk\"]).apply(null,arguments)};var _realloc_in_place=Module[\"_realloc_in_place\"]=function(){return(_realloc_in_place=Module[\"_realloc_in_place\"]=Module[\"asm\"][\"realloc_in_place\"]).apply(null,arguments)};var _memalign=Module[\"_memalign\"]=function(){return(_memalign=Module[\"_memalign\"]=Module[\"asm\"][\"memalign\"]).apply(null,arguments)};var _valloc=Module[\"_valloc\"]=function(){return(_valloc=Module[\"_valloc\"]=Module[\"asm\"][\"valloc\"]).apply(null,arguments)};var _pvalloc=Module[\"_pvalloc\"]=function(){return(_pvalloc=Module[\"_pvalloc\"]=Module[\"asm\"][\"pvalloc\"]).apply(null,arguments)};var _mallinfo=Module[\"_mallinfo\"]=function(){return(_mallinfo=Module[\"_mallinfo\"]=Module[\"asm\"][\"mallinfo\"]).apply(null,arguments)};var _mallopt=Module[\"_mallopt\"]=function(){return(_mallopt=Module[\"_mallopt\"]=Module[\"asm\"][\"mallopt\"]).apply(null,arguments)};var _malloc_trim=Module[\"_malloc_trim\"]=function(){return(_malloc_trim=Module[\"_malloc_trim\"]=Module[\"asm\"][\"malloc_trim\"]).apply(null,arguments)};var _malloc_usable_size=Module[\"_malloc_usable_size\"]=function(){return(_malloc_usable_size=Module[\"_malloc_usable_size\"]=Module[\"asm\"][\"malloc_usable_size\"]).apply(null,arguments)};var _malloc_footprint=Module[\"_malloc_footprint\"]=function(){return(_malloc_footprint=Module[\"_malloc_footprint\"]=Module[\"asm\"][\"malloc_footprint\"]).apply(null,arguments)};var _malloc_max_footprint=Module[\"_malloc_max_footprint\"]=function(){return(_malloc_max_footprint=Module[\"_malloc_max_footprint\"]=Module[\"asm\"][\"malloc_max_footprint\"]).apply(null,arguments)};var _malloc_footprint_limit=Module[\"_malloc_footprint_limit\"]=function(){return(_malloc_footprint_limit=Module[\"_malloc_footprint_limit\"]=Module[\"asm\"][\"malloc_footprint_limit\"]).apply(null,arguments)};var _malloc_set_footprint_limit=Module[\"_malloc_set_footprint_limit\"]=function(){return(_malloc_set_footprint_limit=Module[\"_malloc_set_footprint_limit\"]=Module[\"asm\"][\"malloc_set_footprint_limit\"]).apply(null,arguments)};var _independent_calloc=Module[\"_independent_calloc\"]=function(){return(_independent_calloc=Module[\"_independent_calloc\"]=Module[\"asm\"][\"independent_calloc\"]).apply(null,arguments)};var _independent_comalloc=Module[\"_independent_comalloc\"]=function(){return(_independent_comalloc=Module[\"_independent_comalloc\"]=Module[\"asm\"][\"independent_comalloc\"]).apply(null,arguments)};var _bulk_free=Module[\"_bulk_free\"]=function(){return(_bulk_free=Module[\"_bulk_free\"]=Module[\"asm\"][\"bulk_free\"]).apply(null,arguments)};var _emscripten_builtin_malloc=Module[\"_emscripten_builtin_malloc\"]=function(){return(_emscripten_builtin_malloc=Module[\"_emscripten_builtin_malloc\"]=Module[\"asm\"][\"emscripten_builtin_malloc\"]).apply(null,arguments)};var _emscripten_builtin_free=Module[\"_emscripten_builtin_free\"]=function(){return(_emscripten_builtin_free=Module[\"_emscripten_builtin_free\"]=Module[\"asm\"][\"emscripten_builtin_free\"]).apply(null,arguments)};var _emscripten_builtin_memalign=Module[\"_emscripten_builtin_memalign\"]=function(){return(_emscripten_builtin_memalign=Module[\"_emscripten_builtin_memalign\"]=Module[\"asm\"][\"emscripten_builtin_memalign\"]).apply(null,arguments)};var _emscripten_get_sbrk_ptr=Module[\"_emscripten_get_sbrk_ptr\"]=function(){return(_emscripten_get_sbrk_ptr=Module[\"_emscripten_get_sbrk_ptr\"]=Module[\"asm\"][\"emscripten_get_sbrk_ptr\"]).apply(null,arguments)};var _brk=Module[\"_brk\"]=function(){return(_brk=Module[\"_brk\"]=Module[\"asm\"][\"brk\"]).apply(null,arguments)};var _fmin=Module[\"_fmin\"]=function(){return(_fmin=Module[\"_fmin\"]=Module[\"asm\"][\"fmin\"]).apply(null,arguments)};var _fminf=Module[\"_fminf\"]=function(){return(_fminf=Module[\"_fminf\"]=Module[\"asm\"][\"fminf\"]).apply(null,arguments)};var _fminl=Module[\"_fminl\"]=function(){return(_fminl=Module[\"_fminl\"]=Module[\"asm\"][\"fminl\"]).apply(null,arguments)};var _fmodf=Module[\"_fmodf\"]=function(){return(_fmodf=Module[\"_fmodf\"]=Module[\"asm\"][\"fmodf\"]).apply(null,arguments)};var _log2f=Module[\"_log2f\"]=function(){return(_log2f=Module[\"_log2f\"]=Module[\"asm\"][\"log2f\"]).apply(null,arguments)};var _log10f=Module[\"_log10f\"]=function(){return(_log10f=Module[\"_log10f\"]=Module[\"asm\"][\"log10f\"]).apply(null,arguments)};var _exp2=Module[\"_exp2\"]=function(){return(_exp2=Module[\"_exp2\"]=Module[\"asm\"][\"exp2\"]).apply(null,arguments)};var _exp2f=Module[\"_exp2f\"]=function(){return(_exp2f=Module[\"_exp2f\"]=Module[\"asm\"][\"exp2f\"]).apply(null,arguments)};var _exp10=Module[\"_exp10\"]=function(){return(_exp10=Module[\"_exp10\"]=Module[\"asm\"][\"exp10\"]).apply(null,arguments)};var _pow10=Module[\"_pow10\"]=function(){return(_pow10=Module[\"_pow10\"]=Module[\"asm\"][\"pow10\"]).apply(null,arguments)};var _exp10f=Module[\"_exp10f\"]=function(){return(_exp10f=Module[\"_exp10f\"]=Module[\"asm\"][\"exp10f\"]).apply(null,arguments)};var _pow10f=Module[\"_pow10f\"]=function(){return(_pow10f=Module[\"_pow10f\"]=Module[\"asm\"][\"pow10f\"]).apply(null,arguments)};var ___signbitf=Module[\"___signbitf\"]=function(){return(___signbitf=Module[\"___signbitf\"]=Module[\"asm\"][\"__signbitf\"]).apply(null,arguments)};var ___signbit=Module[\"___signbit\"]=function(){return(___signbit=Module[\"___signbit\"]=Module[\"asm\"][\"__signbit\"]).apply(null,arguments)};var _emscripten_scan_stack=Module[\"_emscripten_scan_stack\"]=function(){return(_emscripten_scan_stack=Module[\"_emscripten_scan_stack\"]=Module[\"asm\"][\"emscripten_scan_stack\"]).apply(null,arguments)};var ___towrite=Module[\"___towrite\"]=function(){return(___towrite=Module[\"___towrite\"]=Module[\"asm\"][\"__towrite\"]).apply(null,arguments)};var ___towrite_needs_stdio_exit=Module[\"___towrite_needs_stdio_exit\"]=function(){return(___towrite_needs_stdio_exit=Module[\"___towrite_needs_stdio_exit\"]=Module[\"asm\"][\"__towrite_needs_stdio_exit\"]).apply(null,arguments)};var _fwrite_unlocked=Module[\"_fwrite_unlocked\"]=function(){return(_fwrite_unlocked=Module[\"_fwrite_unlocked\"]=Module[\"asm\"][\"fwrite_unlocked\"]).apply(null,arguments)};var _fputs_unlocked=Module[\"_fputs_unlocked\"]=function(){return(_fputs_unlocked=Module[\"_fputs_unlocked\"]=Module[\"asm\"][\"fputs_unlocked\"]).apply(null,arguments)};var _socketpair=Module[\"_socketpair\"]=function(){return(_socketpair=Module[\"_socketpair\"]=Module[\"asm\"][\"socketpair\"]).apply(null,arguments)};var ___wasm_apply_data_relocs=Module[\"___wasm_apply_data_relocs\"]=function(){return(___wasm_apply_data_relocs=Module[\"___wasm_apply_data_relocs\"]=Module[\"asm\"][\"__wasm_apply_data_relocs\"]).apply(null,arguments)};var ___wasm_apply_global_relocs=Module[\"___wasm_apply_global_relocs\"]=function(){return(___wasm_apply_global_relocs=Module[\"___wasm_apply_global_relocs\"]=Module[\"asm\"][\"__wasm_apply_global_relocs\"]).apply(null,arguments)};var dynCall_iiiij=Module[\"dynCall_iiiij\"]=function(){return(dynCall_iiiij=Module[\"dynCall_iiiij\"]=Module[\"asm\"][\"dynCall_iiiij\"]).apply(null,arguments)};var dynCall_vijii=Module[\"dynCall_vijii\"]=function(){return(dynCall_vijii=Module[\"dynCall_vijii\"]=Module[\"asm\"][\"dynCall_vijii\"]).apply(null,arguments)};var dynCall_iijj=Module[\"dynCall_iijj\"]=function(){return(dynCall_iijj=Module[\"dynCall_iijj\"]=Module[\"asm\"][\"dynCall_iijj\"]).apply(null,arguments)};var dynCall_iij=Module[\"dynCall_iij\"]=function(){return(dynCall_iij=Module[\"dynCall_iij\"]=Module[\"asm\"][\"dynCall_iij\"]).apply(null,arguments)};var dynCall_iijii=Module[\"dynCall_iijii\"]=function(){return(dynCall_iijii=Module[\"dynCall_iijii\"]=Module[\"asm\"][\"dynCall_iijii\"]).apply(null,arguments)};var dynCall_iiji=Module[\"dynCall_iiji\"]=function(){return(dynCall_iiji=Module[\"dynCall_iiji\"]=Module[\"asm\"][\"dynCall_iiji\"]).apply(null,arguments)};var dynCall_iiiiiij=Module[\"dynCall_iiiiiij\"]=function(){return(dynCall_iiiiiij=Module[\"dynCall_iiiiiij\"]=Module[\"asm\"][\"dynCall_iiiiiij\"]).apply(null,arguments)};var dynCall_iiij=Module[\"dynCall_iiij\"]=function(){return(dynCall_iiij=Module[\"dynCall_iiij\"]=Module[\"asm\"][\"dynCall_iiij\"]).apply(null,arguments)};var dynCall_jii=Module[\"dynCall_jii\"]=function(){return(dynCall_jii=Module[\"dynCall_jii\"]=Module[\"asm\"][\"dynCall_jii\"]).apply(null,arguments)};var dynCall_ji=Module[\"dynCall_ji\"]=function(){return(dynCall_ji=Module[\"dynCall_ji\"]=Module[\"asm\"][\"dynCall_ji\"]).apply(null,arguments)};var dynCall_vij=Module[\"dynCall_vij\"]=function(){return(dynCall_vij=Module[\"dynCall_vij\"]=Module[\"asm\"][\"dynCall_vij\"]).apply(null,arguments)};var dynCall_iiiiijii=Module[\"dynCall_iiiiijii\"]=function(){return(dynCall_iiiiijii=Module[\"dynCall_iiiiijii\"]=Module[\"asm\"][\"dynCall_iiiiijii\"]).apply(null,arguments)};var dynCall_j=Module[\"dynCall_j\"]=function(){return(dynCall_j=Module[\"dynCall_j\"]=Module[\"asm\"][\"dynCall_j\"]).apply(null,arguments)};var dynCall_jj=Module[\"dynCall_jj\"]=function(){return(dynCall_jj=Module[\"dynCall_jj\"]=Module[\"asm\"][\"dynCall_jj\"]).apply(null,arguments)};var dynCall_jiij=Module[\"dynCall_jiij\"]=function(){return(dynCall_jiij=Module[\"dynCall_jiij\"]=Module[\"asm\"][\"dynCall_jiij\"]).apply(null,arguments)};var dynCall_iiiiji=Module[\"dynCall_iiiiji\"]=function(){return(dynCall_iiiiji=Module[\"dynCall_iiiiji\"]=Module[\"asm\"][\"dynCall_iiiiji\"]).apply(null,arguments)};var dynCall_iiiijii=Module[\"dynCall_iiiijii\"]=function(){return(dynCall_iiiijii=Module[\"dynCall_iiiijii\"]=Module[\"asm\"][\"dynCall_iiiijii\"]).apply(null,arguments)};var dynCall_ij=Module[\"dynCall_ij\"]=function(){return(dynCall_ij=Module[\"dynCall_ij\"]=Module[\"asm\"][\"dynCall_ij\"]).apply(null,arguments)};var dynCall_viiji=Module[\"dynCall_viiji\"]=function(){return(dynCall_viiji=Module[\"dynCall_viiji\"]=Module[\"asm\"][\"dynCall_viiji\"]).apply(null,arguments)};var dynCall_viijii=Module[\"dynCall_viijii\"]=function(){return(dynCall_viijii=Module[\"dynCall_viijii\"]=Module[\"asm\"][\"dynCall_viijii\"]).apply(null,arguments)};var dynCall_jiji=Module[\"dynCall_jiji\"]=function(){return(dynCall_jiji=Module[\"dynCall_jiji\"]=Module[\"asm\"][\"dynCall_jiji\"]).apply(null,arguments)};var dynCall_iiiiij=Module[\"dynCall_iiiiij\"]=function(){return(dynCall_iiiiij=Module[\"dynCall_iiiiij\"]=Module[\"asm\"][\"dynCall_iiiiij\"]).apply(null,arguments)};var dynCall_iiiiijj=Module[\"dynCall_iiiiijj\"]=function(){return(dynCall_iiiiijj=Module[\"dynCall_iiiiijj\"]=Module[\"asm\"][\"dynCall_iiiiijj\"]).apply(null,arguments)};var dynCall_iiiiiijj=Module[\"dynCall_iiiiiijj\"]=function(){return(dynCall_iiiiiijj=Module[\"dynCall_iiiiiijj\"]=Module[\"asm\"][\"dynCall_iiiiiijj\"]).apply(null,arguments)};var _orig$lseek=Module[\"_orig$lseek\"]=function(){return(_orig$lseek=Module[\"_orig$lseek\"]=Module[\"asm\"][\"orig$lseek\"]).apply(null,arguments)};var _orig$_PyInterpreterState_LookUpID=Module[\"_orig$_PyInterpreterState_LookUpID\"]=function(){return(_orig$_PyInterpreterState_LookUpID=Module[\"_orig$_PyInterpreterState_LookUpID\"]=Module[\"asm\"][\"orig$_PyInterpreterState_LookUpID\"]).apply(null,arguments)};var _orig$PyLong_FromLongLong=Module[\"_orig$PyLong_FromLongLong\"]=function(){return(_orig$PyLong_FromLongLong=Module[\"_orig$PyLong_FromLongLong\"]=Module[\"asm\"][\"orig$PyLong_FromLongLong\"]).apply(null,arguments)};var _orig$PyLong_AsLongLongAndOverflow=Module[\"_orig$PyLong_AsLongLongAndOverflow\"]=function(){return(_orig$PyLong_AsLongLongAndOverflow=Module[\"_orig$PyLong_AsLongLongAndOverflow\"]=Module[\"asm\"][\"orig$PyLong_AsLongLongAndOverflow\"]).apply(null,arguments)};var _orig$_PyInterpreterID_New=Module[\"_orig$_PyInterpreterID_New\"]=function(){return(_orig$_PyInterpreterID_New=Module[\"_orig$_PyInterpreterID_New\"]=Module[\"asm\"][\"orig$_PyInterpreterID_New\"]).apply(null,arguments)};var _orig$PyInterpreterState_GetID=Module[\"_orig$PyInterpreterState_GetID\"]=function(){return(_orig$PyInterpreterState_GetID=Module[\"_orig$PyInterpreterState_GetID\"]=Module[\"asm\"][\"orig$PyInterpreterState_GetID\"]).apply(null,arguments)};var _orig$PyLong_AsLongLong=Module[\"_orig$PyLong_AsLongLong\"]=function(){return(_orig$PyLong_AsLongLong=Module[\"_orig$PyLong_AsLongLong\"]=Module[\"asm\"][\"orig$PyLong_AsLongLong\"]).apply(null,arguments)};var _orig$PyLong_FromUnsignedLongLong=Module[\"_orig$PyLong_FromUnsignedLongLong\"]=function(){return(_orig$PyLong_FromUnsignedLongLong=Module[\"_orig$PyLong_FromUnsignedLongLong\"]=Module[\"asm\"][\"orig$PyLong_FromUnsignedLongLong\"]).apply(null,arguments)};var _orig$PyLong_AsUnsignedLongLong=Module[\"_orig$PyLong_AsUnsignedLongLong\"]=function(){return(_orig$PyLong_AsUnsignedLongLong=Module[\"_orig$PyLong_AsUnsignedLongLong\"]=Module[\"asm\"][\"orig$PyLong_AsUnsignedLongLong\"]).apply(null,arguments)};var _orig$PyLong_AsUnsignedLongLongMask=Module[\"_orig$PyLong_AsUnsignedLongLongMask\"]=function(){return(_orig$PyLong_AsUnsignedLongLongMask=Module[\"_orig$PyLong_AsUnsignedLongLongMask\"]=Module[\"asm\"][\"orig$PyLong_AsUnsignedLongLongMask\"]).apply(null,arguments)};var _orig$_PyThread_cond_after=Module[\"_orig$_PyThread_cond_after\"]=function(){return(_orig$_PyThread_cond_after=Module[\"_orig$_PyThread_cond_after\"]=Module[\"asm\"][\"orig$_PyThread_cond_after\"]).apply(null,arguments)};var _orig$_PyTime_GetPerfCounter=Module[\"_orig$_PyTime_GetPerfCounter\"]=function(){return(_orig$_PyTime_GetPerfCounter=Module[\"_orig$_PyTime_GetPerfCounter\"]=Module[\"asm\"][\"orig$_PyTime_GetPerfCounter\"]).apply(null,arguments)};var _orig$_PyTime_AsMicroseconds=Module[\"_orig$_PyTime_AsMicroseconds\"]=function(){return(_orig$_PyTime_AsMicroseconds=Module[\"_orig$_PyTime_AsMicroseconds\"]=Module[\"asm\"][\"orig$_PyTime_AsMicroseconds\"]).apply(null,arguments)};var _orig$_Py_KeyedHash=Module[\"_orig$_Py_KeyedHash\"]=function(){return(_orig$_Py_KeyedHash=Module[\"_orig$_Py_KeyedHash\"]=Module[\"asm\"][\"orig$_Py_KeyedHash\"]).apply(null,arguments)};var _orig$PyThreadState_GetID=Module[\"_orig$PyThreadState_GetID\"]=function(){return(_orig$PyThreadState_GetID=Module[\"_orig$PyThreadState_GetID\"]=Module[\"asm\"][\"orig$PyThreadState_GetID\"]).apply(null,arguments)};var _orig$_PyTime_MulDiv=Module[\"_orig$_PyTime_MulDiv\"]=function(){return(_orig$_PyTime_MulDiv=Module[\"_orig$_PyTime_MulDiv\"]=Module[\"asm\"][\"orig$_PyTime_MulDiv\"]).apply(null,arguments)};var _orig$_PyTime_FromSeconds=Module[\"_orig$_PyTime_FromSeconds\"]=function(){return(_orig$_PyTime_FromSeconds=Module[\"_orig$_PyTime_FromSeconds\"]=Module[\"asm\"][\"orig$_PyTime_FromSeconds\"]).apply(null,arguments)};var _orig$_PyTime_FromNanoseconds=Module[\"_orig$_PyTime_FromNanoseconds\"]=function(){return(_orig$_PyTime_FromNanoseconds=Module[\"_orig$_PyTime_FromNanoseconds\"]=Module[\"asm\"][\"orig$_PyTime_FromNanoseconds\"]).apply(null,arguments)};var _orig$_PyTime_AsSecondsDouble=Module[\"_orig$_PyTime_AsSecondsDouble\"]=function(){return(_orig$_PyTime_AsSecondsDouble=Module[\"_orig$_PyTime_AsSecondsDouble\"]=Module[\"asm\"][\"orig$_PyTime_AsSecondsDouble\"]).apply(null,arguments)};var _orig$_PyTime_AsNanosecondsObject=Module[\"_orig$_PyTime_AsNanosecondsObject\"]=function(){return(_orig$_PyTime_AsNanosecondsObject=Module[\"_orig$_PyTime_AsNanosecondsObject\"]=Module[\"asm\"][\"orig$_PyTime_AsNanosecondsObject\"]).apply(null,arguments)};var _orig$_PyTime_AsMilliseconds=Module[\"_orig$_PyTime_AsMilliseconds\"]=function(){return(_orig$_PyTime_AsMilliseconds=Module[\"_orig$_PyTime_AsMilliseconds\"]=Module[\"asm\"][\"orig$_PyTime_AsMilliseconds\"]).apply(null,arguments)};var _orig$_PyTime_AsTimeval=Module[\"_orig$_PyTime_AsTimeval\"]=function(){return(_orig$_PyTime_AsTimeval=Module[\"_orig$_PyTime_AsTimeval\"]=Module[\"asm\"][\"orig$_PyTime_AsTimeval\"]).apply(null,arguments)};var _orig$_PyTime_AsTimeval_noraise=Module[\"_orig$_PyTime_AsTimeval_noraise\"]=function(){return(_orig$_PyTime_AsTimeval_noraise=Module[\"_orig$_PyTime_AsTimeval_noraise\"]=Module[\"asm\"][\"orig$_PyTime_AsTimeval_noraise\"]).apply(null,arguments)};var _orig$_PyTime_AsTimevalTime_t=Module[\"_orig$_PyTime_AsTimevalTime_t\"]=function(){return(_orig$_PyTime_AsTimevalTime_t=Module[\"_orig$_PyTime_AsTimevalTime_t\"]=Module[\"asm\"][\"orig$_PyTime_AsTimevalTime_t\"]).apply(null,arguments)};var _orig$_PyTime_AsTimespec=Module[\"_orig$_PyTime_AsTimespec\"]=function(){return(_orig$_PyTime_AsTimespec=Module[\"_orig$_PyTime_AsTimespec\"]=Module[\"asm\"][\"orig$_PyTime_AsTimespec\"]).apply(null,arguments)};var _orig$_PyTime_GetSystemClock=Module[\"_orig$_PyTime_GetSystemClock\"]=function(){return(_orig$_PyTime_GetSystemClock=Module[\"_orig$_PyTime_GetSystemClock\"]=Module[\"asm\"][\"orig$_PyTime_GetSystemClock\"]).apply(null,arguments)};var _orig$_PyTime_GetMonotonicClock=Module[\"_orig$_PyTime_GetMonotonicClock\"]=function(){return(_orig$_PyTime_GetMonotonicClock=Module[\"_orig$_PyTime_GetMonotonicClock\"]=Module[\"asm\"][\"orig$_PyTime_GetMonotonicClock\"]).apply(null,arguments)};var _orig$PyThread_acquire_lock_timed=Module[\"_orig$PyThread_acquire_lock_timed\"]=function(){return(_orig$PyThread_acquire_lock_timed=Module[\"_orig$PyThread_acquire_lock_timed\"]=Module[\"asm\"][\"orig$PyThread_acquire_lock_timed\"]).apply(null,arguments)};var _orig$__trunctfdf2=Module[\"_orig$__trunctfdf2\"]=function(){return(_orig$__trunctfdf2=Module[\"_orig$__trunctfdf2\"]=Module[\"asm\"][\"orig$__trunctfdf2\"]).apply(null,arguments)};var _orig$testfunc_DDD=Module[\"_orig$testfunc_DDD\"]=function(){return(_orig$testfunc_DDD=Module[\"_orig$testfunc_DDD\"]=Module[\"asm\"][\"orig$testfunc_DDD\"]).apply(null,arguments)};var _orig$__multf3=Module[\"_orig$__multf3\"]=function(){return(_orig$__multf3=Module[\"_orig$__multf3\"]=Module[\"asm\"][\"orig$__multf3\"]).apply(null,arguments)};var _orig$_testfunc_D_bhilfD=Module[\"_orig$_testfunc_D_bhilfD\"]=function(){return(_orig$_testfunc_D_bhilfD=Module[\"_orig$_testfunc_D_bhilfD\"]=Module[\"asm\"][\"orig$_testfunc_D_bhilfD\"]).apply(null,arguments)};var _orig$__addtf3=Module[\"_orig$__addtf3\"]=function(){return(_orig$__addtf3=Module[\"_orig$__addtf3\"]=Module[\"asm\"][\"orig$__addtf3\"]).apply(null,arguments)};var _orig$_testfunc_q_bhilfdq=Module[\"_orig$_testfunc_q_bhilfdq\"]=function(){return(_orig$_testfunc_q_bhilfdq=Module[\"_orig$_testfunc_q_bhilfdq\"]=Module[\"asm\"][\"orig$_testfunc_q_bhilfdq\"]).apply(null,arguments)};var _orig$_testfunc_q_bhilfd=Module[\"_orig$_testfunc_q_bhilfd\"]=function(){return(_orig$_testfunc_q_bhilfd=Module[\"_orig$_testfunc_q_bhilfd\"]=Module[\"asm\"][\"orig$_testfunc_q_bhilfd\"]).apply(null,arguments)};var _orig$_testfunc_callback_q_qf=Module[\"_orig$_testfunc_callback_q_qf\"]=function(){return(_orig$_testfunc_callback_q_qf=Module[\"_orig$_testfunc_callback_q_qf\"]=Module[\"asm\"][\"orig$_testfunc_callback_q_qf\"]).apply(null,arguments)};var _orig$tf_q=Module[\"_orig$tf_q\"]=function(){return(_orig$tf_q=Module[\"_orig$tf_q\"]=Module[\"asm\"][\"orig$tf_q\"]).apply(null,arguments)};var _orig$tf_Q=Module[\"_orig$tf_Q\"]=function(){return(_orig$tf_Q=Module[\"_orig$tf_Q\"]=Module[\"asm\"][\"orig$tf_Q\"]).apply(null,arguments)};var _orig$tf_D=Module[\"_orig$tf_D\"]=function(){return(_orig$tf_D=Module[\"_orig$tf_D\"]=Module[\"asm\"][\"orig$tf_D\"]).apply(null,arguments)};var _orig$__fixtfdi=Module[\"_orig$__fixtfdi\"]=function(){return(_orig$__fixtfdi=Module[\"_orig$__fixtfdi\"]=Module[\"asm\"][\"orig$__fixtfdi\"]).apply(null,arguments)};var _orig$__divtf3=Module[\"_orig$__divtf3\"]=function(){return(_orig$__divtf3=Module[\"_orig$__divtf3\"]=Module[\"asm\"][\"orig$__divtf3\"]).apply(null,arguments)};var _orig$tf_bq=Module[\"_orig$tf_bq\"]=function(){return(_orig$tf_bq=Module[\"_orig$tf_bq\"]=Module[\"asm\"][\"orig$tf_bq\"]).apply(null,arguments)};var _orig$tf_bQ=Module[\"_orig$tf_bQ\"]=function(){return(_orig$tf_bQ=Module[\"_orig$tf_bQ\"]=Module[\"asm\"][\"orig$tf_bQ\"]).apply(null,arguments)};var _orig$tf_bD=Module[\"_orig$tf_bD\"]=function(){return(_orig$tf_bD=Module[\"_orig$tf_bD\"]=Module[\"asm\"][\"orig$tf_bD\"]).apply(null,arguments)};var _orig$sqlite3_value_int64=Module[\"_orig$sqlite3_value_int64\"]=function(){return(_orig$sqlite3_value_int64=Module[\"_orig$sqlite3_value_int64\"]=Module[\"asm\"][\"orig$sqlite3_value_int64\"]).apply(null,arguments)};var _orig$_pysqlite_long_as_int64=Module[\"_orig$_pysqlite_long_as_int64\"]=function(){return(_orig$_pysqlite_long_as_int64=Module[\"_orig$_pysqlite_long_as_int64\"]=Module[\"asm\"][\"orig$_pysqlite_long_as_int64\"]).apply(null,arguments)};var _orig$sqlite3_result_int64=Module[\"_orig$sqlite3_result_int64\"]=function(){return(_orig$sqlite3_result_int64=Module[\"_orig$sqlite3_result_int64\"]=Module[\"asm\"][\"orig$sqlite3_result_int64\"]).apply(null,arguments)};var _orig$sqlite3_last_insert_rowid=Module[\"_orig$sqlite3_last_insert_rowid\"]=function(){return(_orig$sqlite3_last_insert_rowid=Module[\"_orig$sqlite3_last_insert_rowid\"]=Module[\"asm\"][\"orig$sqlite3_last_insert_rowid\"]).apply(null,arguments)};var _orig$sqlite3_column_int64=Module[\"_orig$sqlite3_column_int64\"]=function(){return(_orig$sqlite3_column_int64=Module[\"_orig$sqlite3_column_int64\"]=Module[\"asm\"][\"orig$sqlite3_column_int64\"]).apply(null,arguments)};var _orig$sqlite3_bind_int64=Module[\"_orig$sqlite3_bind_int64\"]=function(){return(_orig$sqlite3_bind_int64=Module[\"_orig$sqlite3_bind_int64\"]=Module[\"asm\"][\"orig$sqlite3_bind_int64\"]).apply(null,arguments)};var _orig$mpd_qset_i64=Module[\"_orig$mpd_qset_i64\"]=function(){return(_orig$mpd_qset_i64=Module[\"_orig$mpd_qset_i64\"]=Module[\"asm\"][\"orig$mpd_qset_i64\"]).apply(null,arguments)};var _orig$mpd_qset_i64_exact=Module[\"_orig$mpd_qset_i64_exact\"]=function(){return(_orig$mpd_qset_i64_exact=Module[\"_orig$mpd_qset_i64_exact\"]=Module[\"asm\"][\"orig$mpd_qset_i64_exact\"]).apply(null,arguments)};var _orig$mpd_qset_u64=Module[\"_orig$mpd_qset_u64\"]=function(){return(_orig$mpd_qset_u64=Module[\"_orig$mpd_qset_u64\"]=Module[\"asm\"][\"orig$mpd_qset_u64\"]).apply(null,arguments)};var _orig$mpd_qset_u64_exact=Module[\"_orig$mpd_qset_u64_exact\"]=function(){return(_orig$mpd_qset_u64_exact=Module[\"_orig$mpd_qset_u64_exact\"]=Module[\"asm\"][\"orig$mpd_qset_u64_exact\"]).apply(null,arguments)};var _orig$mpd_qget_u64=Module[\"_orig$mpd_qget_u64\"]=function(){return(_orig$mpd_qget_u64=Module[\"_orig$mpd_qget_u64\"]=Module[\"asm\"][\"orig$mpd_qget_u64\"]).apply(null,arguments)};var _orig$mpd_qget_i64=Module[\"_orig$mpd_qget_i64\"]=function(){return(_orig$mpd_qget_i64=Module[\"_orig$mpd_qget_i64\"]=Module[\"asm\"][\"orig$mpd_qget_i64\"]).apply(null,arguments)};var _orig$mpd_qadd_i64=Module[\"_orig$mpd_qadd_i64\"]=function(){return(_orig$mpd_qadd_i64=Module[\"_orig$mpd_qadd_i64\"]=Module[\"asm\"][\"orig$mpd_qadd_i64\"]).apply(null,arguments)};var _orig$mpd_qadd_u64=Module[\"_orig$mpd_qadd_u64\"]=function(){return(_orig$mpd_qadd_u64=Module[\"_orig$mpd_qadd_u64\"]=Module[\"asm\"][\"orig$mpd_qadd_u64\"]).apply(null,arguments)};var _orig$mpd_qsub_i64=Module[\"_orig$mpd_qsub_i64\"]=function(){return(_orig$mpd_qsub_i64=Module[\"_orig$mpd_qsub_i64\"]=Module[\"asm\"][\"orig$mpd_qsub_i64\"]).apply(null,arguments)};var _orig$mpd_qsub_u64=Module[\"_orig$mpd_qsub_u64\"]=function(){return(_orig$mpd_qsub_u64=Module[\"_orig$mpd_qsub_u64\"]=Module[\"asm\"][\"orig$mpd_qsub_u64\"]).apply(null,arguments)};var _orig$mpd_qdiv_i64=Module[\"_orig$mpd_qdiv_i64\"]=function(){return(_orig$mpd_qdiv_i64=Module[\"_orig$mpd_qdiv_i64\"]=Module[\"asm\"][\"orig$mpd_qdiv_i64\"]).apply(null,arguments)};var _orig$mpd_qdiv_u64=Module[\"_orig$mpd_qdiv_u64\"]=function(){return(_orig$mpd_qdiv_u64=Module[\"_orig$mpd_qdiv_u64\"]=Module[\"asm\"][\"orig$mpd_qdiv_u64\"]).apply(null,arguments)};var _orig$mpd_qmul_i64=Module[\"_orig$mpd_qmul_i64\"]=function(){return(_orig$mpd_qmul_i64=Module[\"_orig$mpd_qmul_i64\"]=Module[\"asm\"][\"orig$mpd_qmul_i64\"]).apply(null,arguments)};var _orig$mpd_qmul_u64=Module[\"_orig$mpd_qmul_u64\"]=function(){return(_orig$mpd_qmul_u64=Module[\"_orig$mpd_qmul_u64\"]=Module[\"asm\"][\"orig$mpd_qmul_u64\"]).apply(null,arguments)};var _orig$mmap=Module[\"_orig$mmap\"]=function(){return(_orig$mmap=Module[\"_orig$mmap\"]=Module[\"asm\"][\"orig$mmap\"]).apply(null,arguments)};var _orig$ftruncate=Module[\"_orig$ftruncate\"]=function(){return(_orig$ftruncate=Module[\"_orig$ftruncate\"]=Module[\"asm\"][\"orig$ftruncate\"]).apply(null,arguments)};var _orig$lockf=Module[\"_orig$lockf\"]=function(){return(_orig$lockf=Module[\"_orig$lockf\"]=Module[\"asm\"][\"orig$lockf\"]).apply(null,arguments)};var _orig$pread=Module[\"_orig$pread\"]=function(){return(_orig$pread=Module[\"_orig$pread\"]=Module[\"asm\"][\"orig$pread\"]).apply(null,arguments)};var _orig$pwrite=Module[\"_orig$pwrite\"]=function(){return(_orig$pwrite=Module[\"_orig$pwrite\"]=Module[\"asm\"][\"orig$pwrite\"]).apply(null,arguments)};var _orig$truncate=Module[\"_orig$truncate\"]=function(){return(_orig$truncate=Module[\"_orig$truncate\"]=Module[\"asm\"][\"orig$truncate\"]).apply(null,arguments)};var _orig$posix_fallocate=Module[\"_orig$posix_fallocate\"]=function(){return(_orig$posix_fallocate=Module[\"_orig$posix_fallocate\"]=Module[\"asm\"][\"orig$posix_fallocate\"]).apply(null,arguments)};var _orig$posix_fadvise=Module[\"_orig$posix_fadvise\"]=function(){return(_orig$posix_fadvise=Module[\"_orig$posix_fadvise\"]=Module[\"asm\"][\"orig$posix_fadvise\"]).apply(null,arguments)};var _orig$PyNumber_AsOff_t=Module[\"_orig$PyNumber_AsOff_t\"]=function(){return(_orig$PyNumber_AsOff_t=Module[\"_orig$PyNumber_AsOff_t\"]=Module[\"asm\"][\"orig$PyNumber_AsOff_t\"]).apply(null,arguments)};var _orig$sqlite3_msize=Module[\"_orig$sqlite3_msize\"]=function(){return(_orig$sqlite3_msize=Module[\"_orig$sqlite3_msize\"]=Module[\"asm\"][\"orig$sqlite3_msize\"]).apply(null,arguments)};var _orig$sqlite3_memory_alarm=Module[\"_orig$sqlite3_memory_alarm\"]=function(){return(_orig$sqlite3_memory_alarm=Module[\"_orig$sqlite3_memory_alarm\"]=Module[\"asm\"][\"orig$sqlite3_memory_alarm\"]).apply(null,arguments)};var _orig$sqlite3_soft_heap_limit64=Module[\"_orig$sqlite3_soft_heap_limit64\"]=function(){return(_orig$sqlite3_soft_heap_limit64=Module[\"_orig$sqlite3_soft_heap_limit64\"]=Module[\"asm\"][\"orig$sqlite3_soft_heap_limit64\"]).apply(null,arguments)};var _orig$sqlite3_memory_used=Module[\"_orig$sqlite3_memory_used\"]=function(){return(_orig$sqlite3_memory_used=Module[\"_orig$sqlite3_memory_used\"]=Module[\"asm\"][\"orig$sqlite3_memory_used\"]).apply(null,arguments)};var _orig$sqlite3_memory_highwater=Module[\"_orig$sqlite3_memory_highwater\"]=function(){return(_orig$sqlite3_memory_highwater=Module[\"_orig$sqlite3_memory_highwater\"]=Module[\"asm\"][\"orig$sqlite3_memory_highwater\"]).apply(null,arguments)};var _orig$sqlite3_malloc64=Module[\"_orig$sqlite3_malloc64\"]=function(){return(_orig$sqlite3_malloc64=Module[\"_orig$sqlite3_malloc64\"]=Module[\"asm\"][\"orig$sqlite3_malloc64\"]).apply(null,arguments)};var _orig$sqlite3_realloc64=Module[\"_orig$sqlite3_realloc64\"]=function(){return(_orig$sqlite3_realloc64=Module[\"_orig$sqlite3_realloc64\"]=Module[\"asm\"][\"orig$sqlite3_realloc64\"]).apply(null,arguments)};var _orig$__gttf2=Module[\"_orig$__gttf2\"]=function(){return(_orig$__gttf2=Module[\"_orig$__gttf2\"]=Module[\"asm\"][\"orig$__gttf2\"]).apply(null,arguments)};var _orig$__getf2=Module[\"_orig$__getf2\"]=function(){return(_orig$__getf2=Module[\"_orig$__getf2\"]=Module[\"asm\"][\"orig$__getf2\"]).apply(null,arguments)};var _orig$__lttf2=Module[\"_orig$__lttf2\"]=function(){return(_orig$__lttf2=Module[\"_orig$__lttf2\"]=Module[\"asm\"][\"orig$__lttf2\"]).apply(null,arguments)};var _orig$__fixtfsi=Module[\"_orig$__fixtfsi\"]=function(){return(_orig$__fixtfsi=Module[\"_orig$__fixtfsi\"]=Module[\"asm\"][\"orig$__fixtfsi\"]).apply(null,arguments)};var _orig$__subtf3=Module[\"_orig$__subtf3\"]=function(){return(_orig$__subtf3=Module[\"_orig$__subtf3\"]=Module[\"asm\"][\"orig$__subtf3\"]).apply(null,arguments)};var _orig$sqlite3_result_blob64=Module[\"_orig$sqlite3_result_blob64\"]=function(){return(_orig$sqlite3_result_blob64=Module[\"_orig$sqlite3_result_blob64\"]=Module[\"asm\"][\"orig$sqlite3_result_blob64\"]).apply(null,arguments)};var _orig$sqlite3_result_text64=Module[\"_orig$sqlite3_result_text64\"]=function(){return(_orig$sqlite3_result_text64=Module[\"_orig$sqlite3_result_text64\"]=Module[\"asm\"][\"orig$sqlite3_result_text64\"]).apply(null,arguments)};var _orig$sqlite3_result_zeroblob64=Module[\"_orig$sqlite3_result_zeroblob64\"]=function(){return(_orig$sqlite3_result_zeroblob64=Module[\"_orig$sqlite3_result_zeroblob64\"]=Module[\"asm\"][\"orig$sqlite3_result_zeroblob64\"]).apply(null,arguments)};var _orig$sqlite3_bind_blob64=Module[\"_orig$sqlite3_bind_blob64\"]=function(){return(_orig$sqlite3_bind_blob64=Module[\"_orig$sqlite3_bind_blob64\"]=Module[\"asm\"][\"orig$sqlite3_bind_blob64\"]).apply(null,arguments)};var _orig$sqlite3_bind_text64=Module[\"_orig$sqlite3_bind_text64\"]=function(){return(_orig$sqlite3_bind_text64=Module[\"_orig$sqlite3_bind_text64\"]=Module[\"asm\"][\"orig$sqlite3_bind_text64\"]).apply(null,arguments)};var _orig$sqlite3_bind_zeroblob64=Module[\"_orig$sqlite3_bind_zeroblob64\"]=function(){return(_orig$sqlite3_bind_zeroblob64=Module[\"_orig$sqlite3_bind_zeroblob64\"]=Module[\"asm\"][\"orig$sqlite3_bind_zeroblob64\"]).apply(null,arguments)};var _orig$sqlite3_blob_open=Module[\"_orig$sqlite3_blob_open\"]=function(){return(_orig$sqlite3_blob_open=Module[\"_orig$sqlite3_blob_open\"]=Module[\"asm\"][\"orig$sqlite3_blob_open\"]).apply(null,arguments)};var _orig$sqlite3_blob_reopen=Module[\"_orig$sqlite3_blob_reopen\"]=function(){return(_orig$sqlite3_blob_reopen=Module[\"_orig$sqlite3_blob_reopen\"]=Module[\"asm\"][\"orig$sqlite3_blob_reopen\"]).apply(null,arguments)};var _orig$sqlite3_set_last_insert_rowid=Module[\"_orig$sqlite3_set_last_insert_rowid\"]=function(){return(_orig$sqlite3_set_last_insert_rowid=Module[\"_orig$sqlite3_set_last_insert_rowid\"]=Module[\"asm\"][\"orig$sqlite3_set_last_insert_rowid\"]).apply(null,arguments)};var _orig$sqlite3_uri_int64=Module[\"_orig$sqlite3_uri_int64\"]=function(){return(_orig$sqlite3_uri_int64=Module[\"_orig$sqlite3_uri_int64\"]=Module[\"asm\"][\"orig$sqlite3_uri_int64\"]).apply(null,arguments)};var _orig$__floatditf=Module[\"_orig$__floatditf\"]=function(){return(_orig$__floatditf=Module[\"_orig$__floatditf\"]=Module[\"asm\"][\"orig$__floatditf\"]).apply(null,arguments)};var _orig$adler32_combine=Module[\"_orig$adler32_combine\"]=function(){return(_orig$adler32_combine=Module[\"_orig$adler32_combine\"]=Module[\"asm\"][\"orig$adler32_combine\"]).apply(null,arguments)};var _orig$adler32_combine64=Module[\"_orig$adler32_combine64\"]=function(){return(_orig$adler32_combine64=Module[\"_orig$adler32_combine64\"]=Module[\"asm\"][\"orig$adler32_combine64\"]).apply(null,arguments)};var _orig$crc32_combine=Module[\"_orig$crc32_combine\"]=function(){return(_orig$crc32_combine=Module[\"_orig$crc32_combine\"]=Module[\"asm\"][\"orig$crc32_combine\"]).apply(null,arguments)};var _orig$crc32_combine64=Module[\"_orig$crc32_combine64\"]=function(){return(_orig$crc32_combine64=Module[\"_orig$crc32_combine64\"]=Module[\"asm\"][\"orig$crc32_combine64\"]).apply(null,arguments)};var _orig$gzseek64=Module[\"_orig$gzseek64\"]=function(){return(_orig$gzseek64=Module[\"_orig$gzseek64\"]=Module[\"asm\"][\"orig$gzseek64\"]).apply(null,arguments)};var _orig$gzseek=Module[\"_orig$gzseek\"]=function(){return(_orig$gzseek=Module[\"_orig$gzseek\"]=Module[\"asm\"][\"orig$gzseek\"]).apply(null,arguments)};var _orig$gztell64=Module[\"_orig$gztell64\"]=function(){return(_orig$gztell64=Module[\"_orig$gztell64\"]=Module[\"asm\"][\"orig$gztell64\"]).apply(null,arguments)};var _orig$gztell=Module[\"_orig$gztell\"]=function(){return(_orig$gztell=Module[\"_orig$gztell\"]=Module[\"asm\"][\"orig$gztell\"]).apply(null,arguments)};var _orig$gzoffset64=Module[\"_orig$gzoffset64\"]=function(){return(_orig$gzoffset64=Module[\"_orig$gzoffset64\"]=Module[\"asm\"][\"orig$gzoffset64\"]).apply(null,arguments)};var _orig$gzoffset=Module[\"_orig$gzoffset\"]=function(){return(_orig$gzoffset=Module[\"_orig$gzoffset\"]=Module[\"asm\"][\"orig$gzoffset\"]).apply(null,arguments)};var _orig$posix_fadvise64=Module[\"_orig$posix_fadvise64\"]=function(){return(_orig$posix_fadvise64=Module[\"_orig$posix_fadvise64\"]=Module[\"asm\"][\"orig$posix_fadvise64\"]).apply(null,arguments)};var _orig$posix_fallocate64=Module[\"_orig$posix_fallocate64\"]=function(){return(_orig$posix_fallocate64=Module[\"_orig$posix_fallocate64\"]=Module[\"asm\"][\"orig$posix_fallocate64\"]).apply(null,arguments)};var _orig$__intscan=Module[\"_orig$__intscan\"]=function(){return(_orig$__intscan=Module[\"_orig$__intscan\"]=Module[\"asm\"][\"orig$__intscan\"]).apply(null,arguments)};var _orig$__shlim=Module[\"_orig$__shlim\"]=function(){return(_orig$__shlim=Module[\"_orig$__shlim\"]=Module[\"asm\"][\"orig$__shlim\"]).apply(null,arguments)};var _orig$__multi3=Module[\"_orig$__multi3\"]=function(){return(_orig$__multi3=Module[\"_orig$__multi3\"]=Module[\"asm\"][\"orig$__multi3\"]).apply(null,arguments)};var _orig$copysignl=Module[\"_orig$copysignl\"]=function(){return(_orig$copysignl=Module[\"_orig$copysignl\"]=Module[\"asm\"][\"orig$copysignl\"]).apply(null,arguments)};var _orig$__netf2=Module[\"_orig$__netf2\"]=function(){return(_orig$__netf2=Module[\"_orig$__netf2\"]=Module[\"asm\"][\"orig$__netf2\"]).apply(null,arguments)};var _orig$scalbnl=Module[\"_orig$scalbnl\"]=function(){return(_orig$scalbnl=Module[\"_orig$scalbnl\"]=Module[\"asm\"][\"orig$scalbnl\"]).apply(null,arguments)};var _orig$fmodl=Module[\"_orig$fmodl\"]=function(){return(_orig$fmodl=Module[\"_orig$fmodl\"]=Module[\"asm\"][\"orig$fmodl\"]).apply(null,arguments)};var _orig$fabsl=Module[\"_orig$fabsl\"]=function(){return(_orig$fabsl=Module[\"_orig$fabsl\"]=Module[\"asm\"][\"orig$fabsl\"]).apply(null,arguments)};var _orig$ffsll=Module[\"_orig$ffsll\"]=function(){return(_orig$ffsll=Module[\"_orig$ffsll\"]=Module[\"asm\"][\"orig$ffsll\"]).apply(null,arguments)};var _orig$lockf64=Module[\"_orig$lockf64\"]=function(){return(_orig$lockf64=Module[\"_orig$lockf64\"]=Module[\"asm\"][\"orig$lockf64\"]).apply(null,arguments)};var _orig$strtoull=Module[\"_orig$strtoull\"]=function(){return(_orig$strtoull=Module[\"_orig$strtoull\"]=Module[\"asm\"][\"orig$strtoull\"]).apply(null,arguments)};var _orig$pwrite64=Module[\"_orig$pwrite64\"]=function(){return(_orig$pwrite64=Module[\"_orig$pwrite64\"]=Module[\"asm\"][\"orig$pwrite64\"]).apply(null,arguments)};var _orig$pwritev=Module[\"_orig$pwritev\"]=function(){return(_orig$pwritev=Module[\"_orig$pwritev\"]=Module[\"asm\"][\"orig$pwritev\"]).apply(null,arguments)};var _orig$pwritev64=Module[\"_orig$pwritev64\"]=function(){return(_orig$pwritev64=Module[\"_orig$pwritev64\"]=Module[\"asm\"][\"orig$pwritev64\"]).apply(null,arguments)};var _orig$truncate64=Module[\"_orig$truncate64\"]=function(){return(_orig$truncate64=Module[\"_orig$truncate64\"]=Module[\"asm\"][\"orig$truncate64\"]).apply(null,arguments)};var _orig$pread64=Module[\"_orig$pread64\"]=function(){return(_orig$pread64=Module[\"_orig$pread64\"]=Module[\"asm\"][\"orig$pread64\"]).apply(null,arguments)};var _orig$preadv=Module[\"_orig$preadv\"]=function(){return(_orig$preadv=Module[\"_orig$preadv\"]=Module[\"asm\"][\"orig$preadv\"]).apply(null,arguments)};var _orig$preadv64=Module[\"_orig$preadv64\"]=function(){return(_orig$preadv64=Module[\"_orig$preadv64\"]=Module[\"asm\"][\"orig$preadv64\"]).apply(null,arguments)};var _orig$lseek64=Module[\"_orig$lseek64\"]=function(){return(_orig$lseek64=Module[\"_orig$lseek64\"]=Module[\"asm\"][\"orig$lseek64\"]).apply(null,arguments)};var _orig$ftruncate64=Module[\"_orig$ftruncate64\"]=function(){return(_orig$ftruncate64=Module[\"_orig$ftruncate64\"]=Module[\"asm\"][\"orig$ftruncate64\"]).apply(null,arguments)};var _orig$__mmap=Module[\"_orig$__mmap\"]=function(){return(_orig$__mmap=Module[\"_orig$__mmap\"]=Module[\"asm\"][\"orig$__mmap\"]).apply(null,arguments)};var _orig$mmap64=Module[\"_orig$mmap64\"]=function(){return(_orig$mmap64=Module[\"_orig$mmap64\"]=Module[\"asm\"][\"orig$mmap64\"]).apply(null,arguments)};var _orig$logl=Module[\"_orig$logl\"]=function(){return(_orig$logl=Module[\"_orig$logl\"]=Module[\"asm\"][\"orig$logl\"]).apply(null,arguments)};var _orig$__eqtf2=Module[\"_orig$__eqtf2\"]=function(){return(_orig$__eqtf2=Module[\"_orig$__eqtf2\"]=Module[\"asm\"][\"orig$__eqtf2\"]).apply(null,arguments)};var _orig$atan2l=Module[\"_orig$atan2l\"]=function(){return(_orig$atan2l=Module[\"_orig$atan2l\"]=Module[\"asm\"][\"orig$atan2l\"]).apply(null,arguments)};var _orig$__unordtf2=Module[\"_orig$__unordtf2\"]=function(){return(_orig$__unordtf2=Module[\"_orig$__unordtf2\"]=Module[\"asm\"][\"orig$__unordtf2\"]).apply(null,arguments)};var _orig$__multc3=Module[\"_orig$__multc3\"]=function(){return(_orig$__multc3=Module[\"_orig$__multc3\"]=Module[\"asm\"][\"orig$__multc3\"]).apply(null,arguments)};var _orig$hypotl=Module[\"_orig$hypotl\"]=function(){return(_orig$hypotl=Module[\"_orig$hypotl\"]=Module[\"asm\"][\"orig$hypotl\"]).apply(null,arguments)};var _orig$__fpclassifyl=Module[\"_orig$__fpclassifyl\"]=function(){return(_orig$__fpclassifyl=Module[\"_orig$__fpclassifyl\"]=Module[\"asm\"][\"orig$__fpclassifyl\"]).apply(null,arguments)};var _orig$log10l=Module[\"_orig$log10l\"]=function(){return(_orig$log10l=Module[\"_orig$log10l\"]=Module[\"asm\"][\"orig$log10l\"]).apply(null,arguments)};var _orig$__invtrigl_R=Module[\"_orig$__invtrigl_R\"]=function(){return(_orig$__invtrigl_R=Module[\"_orig$__invtrigl_R\"]=Module[\"asm\"][\"orig$__invtrigl_R\"]).apply(null,arguments)};var _orig$powl=Module[\"_orig$powl\"]=function(){return(_orig$powl=Module[\"_orig$powl\"]=Module[\"asm\"][\"orig$powl\"]).apply(null,arguments)};var _orig$nearbyintl=Module[\"_orig$nearbyintl\"]=function(){return(_orig$nearbyintl=Module[\"_orig$nearbyintl\"]=Module[\"asm\"][\"orig$nearbyintl\"]).apply(null,arguments)};var _orig$rintl=Module[\"_orig$rintl\"]=function(){return(_orig$rintl=Module[\"_orig$rintl\"]=Module[\"asm\"][\"orig$rintl\"]).apply(null,arguments)};var _orig$truncl=Module[\"_orig$truncl\"]=function(){return(_orig$truncl=Module[\"_orig$truncl\"]=Module[\"asm\"][\"orig$truncl\"]).apply(null,arguments)};var _orig$ilogbl=Module[\"_orig$ilogbl\"]=function(){return(_orig$ilogbl=Module[\"_orig$ilogbl\"]=Module[\"asm\"][\"orig$ilogbl\"]).apply(null,arguments)};var _orig$llrintl=Module[\"_orig$llrintl\"]=function(){return(_orig$llrintl=Module[\"_orig$llrintl\"]=Module[\"asm\"][\"orig$llrintl\"]).apply(null,arguments)};var _orig$erfl=Module[\"_orig$erfl\"]=function(){return(_orig$erfl=Module[\"_orig$erfl\"]=Module[\"asm\"][\"orig$erfl\"]).apply(null,arguments)};var _orig$erfcl=Module[\"_orig$erfcl\"]=function(){return(_orig$erfcl=Module[\"_orig$erfcl\"]=Module[\"asm\"][\"orig$erfcl\"]).apply(null,arguments)};var _orig$asinhl=Module[\"_orig$asinhl\"]=function(){return(_orig$asinhl=Module[\"_orig$asinhl\"]=Module[\"asm\"][\"orig$asinhl\"]).apply(null,arguments)};var _orig$__lgammal_r=Module[\"_orig$__lgammal_r\"]=function(){return(_orig$__lgammal_r=Module[\"_orig$__lgammal_r\"]=Module[\"asm\"][\"orig$__lgammal_r\"]).apply(null,arguments)};var _orig$lgammal=Module[\"_orig$lgammal\"]=function(){return(_orig$lgammal=Module[\"_orig$lgammal\"]=Module[\"asm\"][\"orig$lgammal\"]).apply(null,arguments)};var _orig$lgammal_r=Module[\"_orig$lgammal_r\"]=function(){return(_orig$lgammal_r=Module[\"_orig$lgammal_r\"]=Module[\"asm\"][\"orig$lgammal_r\"]).apply(null,arguments)};var _orig$log1pl=Module[\"_orig$log1pl\"]=function(){return(_orig$log1pl=Module[\"_orig$log1pl\"]=Module[\"asm\"][\"orig$log1pl\"]).apply(null,arguments)};var _orig$logbl=Module[\"_orig$logbl\"]=function(){return(_orig$logbl=Module[\"_orig$logbl\"]=Module[\"asm\"][\"orig$logbl\"]).apply(null,arguments)};var _orig$llrintf=Module[\"_orig$llrintf\"]=function(){return(_orig$llrintf=Module[\"_orig$llrintf\"]=Module[\"asm\"][\"orig$llrintf\"]).apply(null,arguments)};var _orig$sqrtl=Module[\"_orig$sqrtl\"]=function(){return(_orig$sqrtl=Module[\"_orig$sqrtl\"]=Module[\"asm\"][\"orig$sqrtl\"]).apply(null,arguments)};var _orig$modfl=Module[\"_orig$modfl\"]=function(){return(_orig$modfl=Module[\"_orig$modfl\"]=Module[\"asm\"][\"orig$modfl\"]).apply(null,arguments)};var _orig$coshl=Module[\"_orig$coshl\"]=function(){return(_orig$coshl=Module[\"_orig$coshl\"]=Module[\"asm\"][\"orig$coshl\"]).apply(null,arguments)};var _orig$asinl=Module[\"_orig$asinl\"]=function(){return(_orig$asinl=Module[\"_orig$asinl\"]=Module[\"asm\"][\"orig$asinl\"]).apply(null,arguments)};var _orig$lrintl=Module[\"_orig$lrintl\"]=function(){return(_orig$lrintl=Module[\"_orig$lrintl\"]=Module[\"asm\"][\"orig$lrintl\"]).apply(null,arguments)};var _orig$fmal=Module[\"_orig$fmal\"]=function(){return(_orig$fmal=Module[\"_orig$fmal\"]=Module[\"asm\"][\"orig$fmal\"]).apply(null,arguments)};var _orig$frexpl=Module[\"_orig$frexpl\"]=function(){return(_orig$frexpl=Module[\"_orig$frexpl\"]=Module[\"asm\"][\"orig$frexpl\"]).apply(null,arguments)};var _orig$nextafterl=Module[\"_orig$nextafterl\"]=function(){return(_orig$nextafterl=Module[\"_orig$nextafterl\"]=Module[\"asm\"][\"orig$nextafterl\"]).apply(null,arguments)};var _orig$sinl=Module[\"_orig$sinl\"]=function(){return(_orig$sinl=Module[\"_orig$sinl\"]=Module[\"asm\"][\"orig$sinl\"]).apply(null,arguments)};var _orig$__sinl=Module[\"_orig$__sinl\"]=function(){return(_orig$__sinl=Module[\"_orig$__sinl\"]=Module[\"asm\"][\"orig$__sinl\"]).apply(null,arguments)};var _orig$__rem_pio2l=Module[\"_orig$__rem_pio2l\"]=function(){return(_orig$__rem_pio2l=Module[\"_orig$__rem_pio2l\"]=Module[\"asm\"][\"orig$__rem_pio2l\"]).apply(null,arguments)};var _orig$__cosl=Module[\"_orig$__cosl\"]=function(){return(_orig$__cosl=Module[\"_orig$__cosl\"]=Module[\"asm\"][\"orig$__cosl\"]).apply(null,arguments)};var _orig$scalblnl=Module[\"_orig$scalblnl\"]=function(){return(_orig$scalblnl=Module[\"_orig$scalblnl\"]=Module[\"asm\"][\"orig$scalblnl\"]).apply(null,arguments)};var _orig$acosl=Module[\"_orig$acosl\"]=function(){return(_orig$acosl=Module[\"_orig$acosl\"]=Module[\"asm\"][\"orig$acosl\"]).apply(null,arguments)};var _orig$floorl=Module[\"_orig$floorl\"]=function(){return(_orig$floorl=Module[\"_orig$floorl\"]=Module[\"asm\"][\"orig$floorl\"]).apply(null,arguments)};var _orig$llroundl=Module[\"_orig$llroundl\"]=function(){return(_orig$llroundl=Module[\"_orig$llroundl\"]=Module[\"asm\"][\"orig$llroundl\"]).apply(null,arguments)};var _orig$roundl=Module[\"_orig$roundl\"]=function(){return(_orig$roundl=Module[\"_orig$roundl\"]=Module[\"asm\"][\"orig$roundl\"]).apply(null,arguments)};var _orig$llround=Module[\"_orig$llround\"]=function(){return(_orig$llround=Module[\"_orig$llround\"]=Module[\"asm\"][\"orig$llround\"]).apply(null,arguments)};var _orig$ceill=Module[\"_orig$ceill\"]=function(){return(_orig$ceill=Module[\"_orig$ceill\"]=Module[\"asm\"][\"orig$ceill\"]).apply(null,arguments)};var _orig$ldexpl=Module[\"_orig$ldexpl\"]=function(){return(_orig$ldexpl=Module[\"_orig$ldexpl\"]=Module[\"asm\"][\"orig$ldexpl\"]).apply(null,arguments)};var _orig$remainderl=Module[\"_orig$remainderl\"]=function(){return(_orig$remainderl=Module[\"_orig$remainderl\"]=Module[\"asm\"][\"orig$remainderl\"]).apply(null,arguments)};var _orig$remquol=Module[\"_orig$remquol\"]=function(){return(_orig$remquol=Module[\"_orig$remquol\"]=Module[\"asm\"][\"orig$remquol\"]).apply(null,arguments)};var _orig$log2l=Module[\"_orig$log2l\"]=function(){return(_orig$log2l=Module[\"_orig$log2l\"]=Module[\"asm\"][\"orig$log2l\"]).apply(null,arguments)};var _orig$exp10l=Module[\"_orig$exp10l\"]=function(){return(_orig$exp10l=Module[\"_orig$exp10l\"]=Module[\"asm\"][\"orig$exp10l\"]).apply(null,arguments)};var _orig$exp2l=Module[\"_orig$exp2l\"]=function(){return(_orig$exp2l=Module[\"_orig$exp2l\"]=Module[\"asm\"][\"orig$exp2l\"]).apply(null,arguments)};var _orig$pow10l=Module[\"_orig$pow10l\"]=function(){return(_orig$pow10l=Module[\"_orig$pow10l\"]=Module[\"asm\"][\"orig$pow10l\"]).apply(null,arguments)};var _orig$__letf2=Module[\"_orig$__letf2\"]=function(){return(_orig$__letf2=Module[\"_orig$__letf2\"]=Module[\"asm\"][\"orig$__letf2\"]).apply(null,arguments)};var _orig$sincosl=Module[\"_orig$sincosl\"]=function(){return(_orig$sincosl=Module[\"_orig$sincosl\"]=Module[\"asm\"][\"orig$sincosl\"]).apply(null,arguments)};var _orig$tgammal=Module[\"_orig$tgammal\"]=function(){return(_orig$tgammal=Module[\"_orig$tgammal\"]=Module[\"asm\"][\"orig$tgammal\"]).apply(null,arguments)};var _orig$llroundf=Module[\"_orig$llroundf\"]=function(){return(_orig$llroundf=Module[\"_orig$llroundf\"]=Module[\"asm\"][\"orig$llroundf\"]).apply(null,arguments)};var _orig$__polevll=Module[\"_orig$__polevll\"]=function(){return(_orig$__polevll=Module[\"_orig$__polevll\"]=Module[\"asm\"][\"orig$__polevll\"]).apply(null,arguments)};var _orig$__p1evll=Module[\"_orig$__p1evll\"]=function(){return(_orig$__p1evll=Module[\"_orig$__p1evll\"]=Module[\"asm\"][\"orig$__p1evll\"]).apply(null,arguments)};var _orig$nexttoward=Module[\"_orig$nexttoward\"]=function(){return(_orig$nexttoward=Module[\"_orig$nexttoward\"]=Module[\"asm\"][\"orig$nexttoward\"]).apply(null,arguments)};var _orig$__signbitl=Module[\"_orig$__signbitl\"]=function(){return(_orig$__signbitl=Module[\"_orig$__signbitl\"]=Module[\"asm\"][\"orig$__signbitl\"]).apply(null,arguments)};var _orig$sinhl=Module[\"_orig$sinhl\"]=function(){return(_orig$sinhl=Module[\"_orig$sinhl\"]=Module[\"asm\"][\"orig$sinhl\"]).apply(null,arguments)};var _orig$acoshl=Module[\"_orig$acoshl\"]=function(){return(_orig$acoshl=Module[\"_orig$acoshl\"]=Module[\"asm\"][\"orig$acoshl\"]).apply(null,arguments)};var _orig$atanl=Module[\"_orig$atanl\"]=function(){return(_orig$atanl=Module[\"_orig$atanl\"]=Module[\"asm\"][\"orig$atanl\"]).apply(null,arguments)};var _orig$__tanl=Module[\"_orig$__tanl\"]=function(){return(_orig$__tanl=Module[\"_orig$__tanl\"]=Module[\"asm\"][\"orig$__tanl\"]).apply(null,arguments)};var _orig$fdiml=Module[\"_orig$fdiml\"]=function(){return(_orig$fdiml=Module[\"_orig$fdiml\"]=Module[\"asm\"][\"orig$fdiml\"]).apply(null,arguments)};var _orig$nexttowardl=Module[\"_orig$nexttowardl\"]=function(){return(_orig$nexttowardl=Module[\"_orig$nexttowardl\"]=Module[\"asm\"][\"orig$nexttowardl\"]).apply(null,arguments)};var _orig$atanhl=Module[\"_orig$atanhl\"]=function(){return(_orig$atanhl=Module[\"_orig$atanhl\"]=Module[\"asm\"][\"orig$atanhl\"]).apply(null,arguments)};var _orig$tanl=Module[\"_orig$tanl\"]=function(){return(_orig$tanl=Module[\"_orig$tanl\"]=Module[\"asm\"][\"orig$tanl\"]).apply(null,arguments)};var _orig$cbrtl=Module[\"_orig$cbrtl\"]=function(){return(_orig$cbrtl=Module[\"_orig$cbrtl\"]=Module[\"asm\"][\"orig$cbrtl\"]).apply(null,arguments)};var _orig$__trunctfsf2=Module[\"_orig$__trunctfsf2\"]=function(){return(_orig$__trunctfsf2=Module[\"_orig$__trunctfsf2\"]=Module[\"asm\"][\"orig$__trunctfsf2\"]).apply(null,arguments)};var _orig$lroundl=Module[\"_orig$lroundl\"]=function(){return(_orig$lroundl=Module[\"_orig$lroundl\"]=Module[\"asm\"][\"orig$lroundl\"]).apply(null,arguments)};var _orig$nexttowardf=Module[\"_orig$nexttowardf\"]=function(){return(_orig$nexttowardf=Module[\"_orig$nexttowardf\"]=Module[\"asm\"][\"orig$nexttowardf\"]).apply(null,arguments)};var _orig$expl=Module[\"_orig$expl\"]=function(){return(_orig$expl=Module[\"_orig$expl\"]=Module[\"asm\"][\"orig$expl\"]).apply(null,arguments)};var _orig$expm1l=Module[\"_orig$expm1l\"]=function(){return(_orig$expm1l=Module[\"_orig$expm1l\"]=Module[\"asm\"][\"orig$expm1l\"]).apply(null,arguments)};var _orig$llrint=Module[\"_orig$llrint\"]=function(){return(_orig$llrint=Module[\"_orig$llrint\"]=Module[\"asm\"][\"orig$llrint\"]).apply(null,arguments)};var _orig$cosl=Module[\"_orig$cosl\"]=function(){return(_orig$cosl=Module[\"_orig$cosl\"]=Module[\"asm\"][\"orig$cosl\"]).apply(null,arguments)};var _orig$tanhl=Module[\"_orig$tanhl\"]=function(){return(_orig$tanhl=Module[\"_orig$tanhl\"]=Module[\"asm\"][\"orig$tanhl\"]).apply(null,arguments)};var _orig$__rand48_step=Module[\"_orig$__rand48_step\"]=function(){return(_orig$__rand48_step=Module[\"_orig$__rand48_step\"]=Module[\"asm\"][\"orig$__rand48_step\"]).apply(null,arguments)};var _orig$__stdio_seek=Module[\"_orig$__stdio_seek\"]=function(){return(_orig$__stdio_seek=Module[\"_orig$__stdio_seek\"]=Module[\"asm\"][\"orig$__stdio_seek\"]).apply(null,arguments)};var _orig$__ftello_unlocked=Module[\"_orig$__ftello_unlocked\"]=function(){return(_orig$__ftello_unlocked=Module[\"_orig$__ftello_unlocked\"]=Module[\"asm\"][\"orig$__ftello_unlocked\"]).apply(null,arguments)};var _orig$__ftello=Module[\"_orig$__ftello\"]=function(){return(_orig$__ftello=Module[\"_orig$__ftello\"]=Module[\"asm\"][\"orig$__ftello\"]).apply(null,arguments)};var _orig$ftello=Module[\"_orig$ftello\"]=function(){return(_orig$ftello=Module[\"_orig$ftello\"]=Module[\"asm\"][\"orig$ftello\"]).apply(null,arguments)};var _orig$ftello64=Module[\"_orig$ftello64\"]=function(){return(_orig$ftello64=Module[\"_orig$ftello64\"]=Module[\"asm\"][\"orig$ftello64\"]).apply(null,arguments)};var _orig$__fseeko=Module[\"_orig$__fseeko\"]=function(){return(_orig$__fseeko=Module[\"_orig$__fseeko\"]=Module[\"asm\"][\"orig$__fseeko\"]).apply(null,arguments)};var _orig$__fseeko_unlocked=Module[\"_orig$__fseeko_unlocked\"]=function(){return(_orig$__fseeko_unlocked=Module[\"_orig$__fseeko_unlocked\"]=Module[\"asm\"][\"orig$__fseeko_unlocked\"]).apply(null,arguments)};var _orig$fseeko=Module[\"_orig$fseeko\"]=function(){return(_orig$fseeko=Module[\"_orig$fseeko\"]=Module[\"asm\"][\"orig$fseeko\"]).apply(null,arguments)};var _orig$fseeko64=Module[\"_orig$fseeko64\"]=function(){return(_orig$fseeko64=Module[\"_orig$fseeko64\"]=Module[\"asm\"][\"orig$fseeko64\"]).apply(null,arguments)};var _orig$strtoll=Module[\"_orig$strtoll\"]=function(){return(_orig$strtoll=Module[\"_orig$strtoll\"]=Module[\"asm\"][\"orig$strtoll\"]).apply(null,arguments)};var _orig$strtoimax=Module[\"_orig$strtoimax\"]=function(){return(_orig$strtoimax=Module[\"_orig$strtoimax\"]=Module[\"asm\"][\"orig$strtoimax\"]).apply(null,arguments)};var _orig$strtoumax=Module[\"_orig$strtoumax\"]=function(){return(_orig$strtoumax=Module[\"_orig$strtoumax\"]=Module[\"asm\"][\"orig$strtoumax\"]).apply(null,arguments)};var _orig$__strtoll_internal=Module[\"_orig$__strtoll_internal\"]=function(){return(_orig$__strtoll_internal=Module[\"_orig$__strtoll_internal\"]=Module[\"asm\"][\"orig$__strtoll_internal\"]).apply(null,arguments)};var _orig$__strtoull_internal=Module[\"_orig$__strtoull_internal\"]=function(){return(_orig$__strtoull_internal=Module[\"_orig$__strtoull_internal\"]=Module[\"asm\"][\"orig$__strtoull_internal\"]).apply(null,arguments)};var _orig$__strtoimax_internal=Module[\"_orig$__strtoimax_internal\"]=function(){return(_orig$__strtoimax_internal=Module[\"_orig$__strtoimax_internal\"]=Module[\"asm\"][\"orig$__strtoimax_internal\"]).apply(null,arguments)};var _orig$__strtoumax_internal=Module[\"_orig$__strtoumax_internal\"]=function(){return(_orig$__strtoumax_internal=Module[\"_orig$__strtoumax_internal\"]=Module[\"asm\"][\"orig$__strtoumax_internal\"]).apply(null,arguments)};var _orig$atoll=Module[\"_orig$atoll\"]=function(){return(_orig$atoll=Module[\"_orig$atoll\"]=Module[\"asm\"][\"orig$atoll\"]).apply(null,arguments)};var _orig$wcstoull=Module[\"_orig$wcstoull\"]=function(){return(_orig$wcstoull=Module[\"_orig$wcstoull\"]=Module[\"asm\"][\"orig$wcstoull\"]).apply(null,arguments)};var _orig$wcstoll=Module[\"_orig$wcstoll\"]=function(){return(_orig$wcstoll=Module[\"_orig$wcstoll\"]=Module[\"asm\"][\"orig$wcstoll\"]).apply(null,arguments)};var _orig$wcstoimax=Module[\"_orig$wcstoimax\"]=function(){return(_orig$wcstoimax=Module[\"_orig$wcstoimax\"]=Module[\"asm\"][\"orig$wcstoimax\"]).apply(null,arguments)};var _orig$wcstoumax=Module[\"_orig$wcstoumax\"]=function(){return(_orig$wcstoumax=Module[\"_orig$wcstoumax\"]=Module[\"asm\"][\"orig$wcstoumax\"]).apply(null,arguments)};var _orig$lldiv=Module[\"_orig$lldiv\"]=function(){return(_orig$lldiv=Module[\"_orig$lldiv\"]=Module[\"asm\"][\"orig$lldiv\"]).apply(null,arguments)};var _orig$imaxabs=Module[\"_orig$imaxabs\"]=function(){return(_orig$imaxabs=Module[\"_orig$imaxabs\"]=Module[\"asm\"][\"orig$imaxabs\"]).apply(null,arguments)};var _orig$imaxdiv=Module[\"_orig$imaxdiv\"]=function(){return(_orig$imaxdiv=Module[\"_orig$imaxdiv\"]=Module[\"asm\"][\"orig$imaxdiv\"]).apply(null,arguments)};var _orig$llabs=Module[\"_orig$llabs\"]=function(){return(_orig$llabs=Module[\"_orig$llabs\"]=Module[\"asm\"][\"orig$llabs\"]).apply(null,arguments)};var _orig$emscripten_atomic_exchange_u64=Module[\"_orig$emscripten_atomic_exchange_u64\"]=function(){return(_orig$emscripten_atomic_exchange_u64=Module[\"_orig$emscripten_atomic_exchange_u64\"]=Module[\"asm\"][\"orig$emscripten_atomic_exchange_u64\"]).apply(null,arguments)};var _orig$emscripten_atomic_cas_u64=Module[\"_orig$emscripten_atomic_cas_u64\"]=function(){return(_orig$emscripten_atomic_cas_u64=Module[\"_orig$emscripten_atomic_cas_u64\"]=Module[\"asm\"][\"orig$emscripten_atomic_cas_u64\"]).apply(null,arguments)};var _orig$emscripten_atomic_load_u64=Module[\"_orig$emscripten_atomic_load_u64\"]=function(){return(_orig$emscripten_atomic_load_u64=Module[\"_orig$emscripten_atomic_load_u64\"]=Module[\"asm\"][\"orig$emscripten_atomic_load_u64\"]).apply(null,arguments)};var _orig$emscripten_atomic_store_u64=Module[\"_orig$emscripten_atomic_store_u64\"]=function(){return(_orig$emscripten_atomic_store_u64=Module[\"_orig$emscripten_atomic_store_u64\"]=Module[\"asm\"][\"orig$emscripten_atomic_store_u64\"]).apply(null,arguments)};var _orig$emscripten_atomic_add_u64=Module[\"_orig$emscripten_atomic_add_u64\"]=function(){return(_orig$emscripten_atomic_add_u64=Module[\"_orig$emscripten_atomic_add_u64\"]=Module[\"asm\"][\"orig$emscripten_atomic_add_u64\"]).apply(null,arguments)};var _orig$emscripten_atomic_sub_u64=Module[\"_orig$emscripten_atomic_sub_u64\"]=function(){return(_orig$emscripten_atomic_sub_u64=Module[\"_orig$emscripten_atomic_sub_u64\"]=Module[\"asm\"][\"orig$emscripten_atomic_sub_u64\"]).apply(null,arguments)};var _orig$emscripten_atomic_and_u64=Module[\"_orig$emscripten_atomic_and_u64\"]=function(){return(_orig$emscripten_atomic_and_u64=Module[\"_orig$emscripten_atomic_and_u64\"]=Module[\"asm\"][\"orig$emscripten_atomic_and_u64\"]).apply(null,arguments)};var _orig$emscripten_atomic_or_u64=Module[\"_orig$emscripten_atomic_or_u64\"]=function(){return(_orig$emscripten_atomic_or_u64=Module[\"_orig$emscripten_atomic_or_u64\"]=Module[\"asm\"][\"orig$emscripten_atomic_or_u64\"]).apply(null,arguments)};var _orig$emscripten_atomic_xor_u64=Module[\"_orig$emscripten_atomic_xor_u64\"]=function(){return(_orig$emscripten_atomic_xor_u64=Module[\"_orig$emscripten_atomic_xor_u64\"]=Module[\"asm\"][\"orig$emscripten_atomic_xor_u64\"]).apply(null,arguments)};var _orig$strtoull_l=Module[\"_orig$strtoull_l\"]=function(){return(_orig$strtoull_l=Module[\"_orig$strtoull_l\"]=Module[\"asm\"][\"orig$strtoull_l\"]).apply(null,arguments)};var _orig$strtoll_l=Module[\"_orig$strtoll_l\"]=function(){return(_orig$strtoll_l=Module[\"_orig$strtoll_l\"]=Module[\"asm\"][\"orig$strtoll_l\"]).apply(null,arguments)};var _orig$__lshrdi3=Module[\"_orig$__lshrdi3\"]=function(){return(_orig$__lshrdi3=Module[\"_orig$__lshrdi3\"]=Module[\"asm\"][\"orig$__lshrdi3\"]).apply(null,arguments)};var _orig$__powitf2=Module[\"_orig$__powitf2\"]=function(){return(_orig$__powitf2=Module[\"_orig$__powitf2\"]=Module[\"asm\"][\"orig$__powitf2\"]).apply(null,arguments)};var _orig$__ashldi3=Module[\"_orig$__ashldi3\"]=function(){return(_orig$__ashldi3=Module[\"_orig$__ashldi3\"]=Module[\"asm\"][\"orig$__ashldi3\"]).apply(null,arguments)};var _orig$__fixxfdi=Module[\"_orig$__fixxfdi\"]=function(){return(_orig$__fixxfdi=Module[\"_orig$__fixxfdi\"]=Module[\"asm\"][\"orig$__fixxfdi\"]).apply(null,arguments)};var _orig$__floattixf=Module[\"_orig$__floattixf\"]=function(){return(_orig$__floattixf=Module[\"_orig$__floattixf\"]=Module[\"asm\"][\"orig$__floattixf\"]).apply(null,arguments)};var _orig$__clzti2=Module[\"_orig$__clzti2\"]=function(){return(_orig$__clzti2=Module[\"_orig$__clzti2\"]=Module[\"asm\"][\"orig$__clzti2\"]).apply(null,arguments)};var _orig$__lshrti3=Module[\"_orig$__lshrti3\"]=function(){return(_orig$__lshrti3=Module[\"_orig$__lshrti3\"]=Module[\"asm\"][\"orig$__lshrti3\"]).apply(null,arguments)};var _orig$__ashlti3=Module[\"_orig$__ashlti3\"]=function(){return(_orig$__ashlti3=Module[\"_orig$__ashlti3\"]=Module[\"asm\"][\"orig$__ashlti3\"]).apply(null,arguments)};var _orig$__ffsdi2=Module[\"_orig$__ffsdi2\"]=function(){return(_orig$__ffsdi2=Module[\"_orig$__ffsdi2\"]=Module[\"asm\"][\"orig$__ffsdi2\"]).apply(null,arguments)};var _orig$__fixsfdi=Module[\"_orig$__fixsfdi\"]=function(){return(_orig$__fixsfdi=Module[\"_orig$__fixsfdi\"]=Module[\"asm\"][\"orig$__fixsfdi\"]).apply(null,arguments)};var _orig$__fixunssfdi=Module[\"_orig$__fixunssfdi\"]=function(){return(_orig$__fixunssfdi=Module[\"_orig$__fixunssfdi\"]=Module[\"asm\"][\"orig$__fixunssfdi\"]).apply(null,arguments)};var _orig$__mulvti3=Module[\"_orig$__mulvti3\"]=function(){return(_orig$__mulvti3=Module[\"_orig$__mulvti3\"]=Module[\"asm\"][\"orig$__mulvti3\"]).apply(null,arguments)};var _orig$__udivti3=Module[\"_orig$__udivti3\"]=function(){return(_orig$__udivti3=Module[\"_orig$__udivti3\"]=Module[\"asm\"][\"orig$__udivti3\"]).apply(null,arguments)};var _orig$__divti3=Module[\"_orig$__divti3\"]=function(){return(_orig$__divti3=Module[\"_orig$__divti3\"]=Module[\"asm\"][\"orig$__divti3\"]).apply(null,arguments)};var _orig$__floatundisf=Module[\"_orig$__floatundisf\"]=function(){return(_orig$__floatundisf=Module[\"_orig$__floatundisf\"]=Module[\"asm\"][\"orig$__floatundisf\"]).apply(null,arguments)};var _orig$__divxc3=Module[\"_orig$__divxc3\"]=function(){return(_orig$__divxc3=Module[\"_orig$__divxc3\"]=Module[\"asm\"][\"orig$__divxc3\"]).apply(null,arguments)};var _orig$fmaxl=Module[\"_orig$fmaxl\"]=function(){return(_orig$fmaxl=Module[\"_orig$fmaxl\"]=Module[\"asm\"][\"orig$fmaxl\"]).apply(null,arguments)};var _orig$__dtoi64=Module[\"_orig$__dtoi64\"]=function(){return(_orig$__dtoi64=Module[\"_orig$__dtoi64\"]=Module[\"asm\"][\"orig$__dtoi64\"]).apply(null,arguments)};var _orig$__fixdfdi=Module[\"_orig$__fixdfdi\"]=function(){return(_orig$__fixdfdi=Module[\"_orig$__fixdfdi\"]=Module[\"asm\"][\"orig$__fixdfdi\"]).apply(null,arguments)};var _orig$__stoi64=Module[\"_orig$__stoi64\"]=function(){return(_orig$__stoi64=Module[\"_orig$__stoi64\"]=Module[\"asm\"][\"orig$__stoi64\"]).apply(null,arguments)};var _orig$__dtou64=Module[\"_orig$__dtou64\"]=function(){return(_orig$__dtou64=Module[\"_orig$__dtou64\"]=Module[\"asm\"][\"orig$__dtou64\"]).apply(null,arguments)};var _orig$__fixunsdfdi=Module[\"_orig$__fixunsdfdi\"]=function(){return(_orig$__fixunsdfdi=Module[\"_orig$__fixunsdfdi\"]=Module[\"asm\"][\"orig$__fixunsdfdi\"]).apply(null,arguments)};var _orig$__stou64=Module[\"_orig$__stou64\"]=function(){return(_orig$__stou64=Module[\"_orig$__stou64\"]=Module[\"asm\"][\"orig$__stou64\"]).apply(null,arguments)};var _orig$__i64tod=Module[\"_orig$__i64tod\"]=function(){return(_orig$__i64tod=Module[\"_orig$__i64tod\"]=Module[\"asm\"][\"orig$__i64tod\"]).apply(null,arguments)};var _orig$__floatdidf=Module[\"_orig$__floatdidf\"]=function(){return(_orig$__floatdidf=Module[\"_orig$__floatdidf\"]=Module[\"asm\"][\"orig$__floatdidf\"]).apply(null,arguments)};var _orig$__i64tos=Module[\"_orig$__i64tos\"]=function(){return(_orig$__i64tos=Module[\"_orig$__i64tos\"]=Module[\"asm\"][\"orig$__i64tos\"]).apply(null,arguments)};var _orig$__floatdisf=Module[\"_orig$__floatdisf\"]=function(){return(_orig$__floatdisf=Module[\"_orig$__floatdisf\"]=Module[\"asm\"][\"orig$__floatdisf\"]).apply(null,arguments)};var _orig$__u64tod=Module[\"_orig$__u64tod\"]=function(){return(_orig$__u64tod=Module[\"_orig$__u64tod\"]=Module[\"asm\"][\"orig$__u64tod\"]).apply(null,arguments)};var _orig$__floatundidf=Module[\"_orig$__floatundidf\"]=function(){return(_orig$__floatundidf=Module[\"_orig$__floatundidf\"]=Module[\"asm\"][\"orig$__floatundidf\"]).apply(null,arguments)};var _orig$__u64tos=Module[\"_orig$__u64tos\"]=function(){return(_orig$__u64tos=Module[\"_orig$__u64tos\"]=Module[\"asm\"][\"orig$__u64tos\"]).apply(null,arguments)};var _orig$__mulxc3=Module[\"_orig$__mulxc3\"]=function(){return(_orig$__mulxc3=Module[\"_orig$__mulxc3\"]=Module[\"asm\"][\"orig$__mulxc3\"]).apply(null,arguments)};var _orig$__ctzti2=Module[\"_orig$__ctzti2\"]=function(){return(_orig$__ctzti2=Module[\"_orig$__ctzti2\"]=Module[\"asm\"][\"orig$__ctzti2\"]).apply(null,arguments)};var _orig$__ashrti3=Module[\"_orig$__ashrti3\"]=function(){return(_orig$__ashrti3=Module[\"_orig$__ashrti3\"]=Module[\"asm\"][\"orig$__ashrti3\"]).apply(null,arguments)};var _orig$__fixunstfti=Module[\"_orig$__fixunstfti\"]=function(){return(_orig$__fixunstfti=Module[\"_orig$__fixunstfti\"]=Module[\"asm\"][\"orig$__fixunstfti\"]).apply(null,arguments)};var _orig$__ashrdi3=Module[\"_orig$__ashrdi3\"]=function(){return(_orig$__ashrdi3=Module[\"_orig$__ashrdi3\"]=Module[\"asm\"][\"orig$__ashrdi3\"]).apply(null,arguments)};var _orig$__gcc_personality_v0=Module[\"_orig$__gcc_personality_v0\"]=function(){return(_orig$__gcc_personality_v0=Module[\"_orig$__gcc_personality_v0\"]=Module[\"asm\"][\"orig$__gcc_personality_v0\"]).apply(null,arguments)};var _orig$__popcountdi2=Module[\"_orig$__popcountdi2\"]=function(){return(_orig$__popcountdi2=Module[\"_orig$__popcountdi2\"]=Module[\"asm\"][\"orig$__popcountdi2\"]).apply(null,arguments)};var _orig$__fixxfti=Module[\"_orig$__fixxfti\"]=function(){return(_orig$__fixxfti=Module[\"_orig$__fixxfti\"]=Module[\"asm\"][\"orig$__fixxfti\"]).apply(null,arguments)};var _orig$__fixunstfdi=Module[\"_orig$__fixunstfdi\"]=function(){return(_orig$__fixunstfdi=Module[\"_orig$__fixunstfdi\"]=Module[\"asm\"][\"orig$__fixunstfdi\"]).apply(null,arguments)};var _orig$__negvti2=Module[\"_orig$__negvti2\"]=function(){return(_orig$__negvti2=Module[\"_orig$__negvti2\"]=Module[\"asm\"][\"orig$__negvti2\"]).apply(null,arguments)};var _orig$__fixunsxfti=Module[\"_orig$__fixunsxfti\"]=function(){return(_orig$__fixunsxfti=Module[\"_orig$__fixunsxfti\"]=Module[\"asm\"][\"orig$__fixunsxfti\"]).apply(null,arguments)};var _orig$__fixunsxfsi=Module[\"_orig$__fixunsxfsi\"]=function(){return(_orig$__fixunsxfsi=Module[\"_orig$__fixunsxfsi\"]=Module[\"asm\"][\"orig$__fixunsxfsi\"]).apply(null,arguments)};var _orig$__floattisf=Module[\"_orig$__floattisf\"]=function(){return(_orig$__floattisf=Module[\"_orig$__floattisf\"]=Module[\"asm\"][\"orig$__floattisf\"]).apply(null,arguments)};var _orig$__absvdi2=Module[\"_orig$__absvdi2\"]=function(){return(_orig$__absvdi2=Module[\"_orig$__absvdi2\"]=Module[\"asm\"][\"orig$__absvdi2\"]).apply(null,arguments)};var _orig$__fixtfti=Module[\"_orig$__fixtfti\"]=function(){return(_orig$__fixtfti=Module[\"_orig$__fixtfti\"]=Module[\"asm\"][\"orig$__fixtfti\"]).apply(null,arguments)};var _orig$__negvdi2=Module[\"_orig$__negvdi2\"]=function(){return(_orig$__negvdi2=Module[\"_orig$__negvdi2\"]=Module[\"asm\"][\"orig$__negvdi2\"]).apply(null,arguments)};var _orig$__ucmpti2=Module[\"_orig$__ucmpti2\"]=function(){return(_orig$__ucmpti2=Module[\"_orig$__ucmpti2\"]=Module[\"asm\"][\"orig$__ucmpti2\"]).apply(null,arguments)};var _orig$__subvdi3=Module[\"_orig$__subvdi3\"]=function(){return(_orig$__subvdi3=Module[\"_orig$__subvdi3\"]=Module[\"asm\"][\"orig$__subvdi3\"]).apply(null,arguments)};var _orig$__fixunstfsi=Module[\"_orig$__fixunstfsi\"]=function(){return(_orig$__fixunstfsi=Module[\"_orig$__fixunstfsi\"]=Module[\"asm\"][\"orig$__fixunstfsi\"]).apply(null,arguments)};var _orig$__cmpdi2=Module[\"_orig$__cmpdi2\"]=function(){return(_orig$__cmpdi2=Module[\"_orig$__cmpdi2\"]=Module[\"asm\"][\"orig$__cmpdi2\"]).apply(null,arguments)};var _orig$__udivmodti4=Module[\"_orig$__udivmodti4\"]=function(){return(_orig$__udivmodti4=Module[\"_orig$__udivmodti4\"]=Module[\"asm\"][\"orig$__udivmodti4\"]).apply(null,arguments)};var _orig$__divmoddi4=Module[\"_orig$__divmoddi4\"]=function(){return(_orig$__divmoddi4=Module[\"_orig$__divmoddi4\"]=Module[\"asm\"][\"orig$__divmoddi4\"]).apply(null,arguments)};var _orig$__divdi3=Module[\"_orig$__divdi3\"]=function(){return(_orig$__divdi3=Module[\"_orig$__divdi3\"]=Module[\"asm\"][\"orig$__divdi3\"]).apply(null,arguments)};var _orig$__modti3=Module[\"_orig$__modti3\"]=function(){return(_orig$__modti3=Module[\"_orig$__modti3\"]=Module[\"asm\"][\"orig$__modti3\"]).apply(null,arguments)};var _orig$__powixf2=Module[\"_orig$__powixf2\"]=function(){return(_orig$__powixf2=Module[\"_orig$__powixf2\"]=Module[\"asm\"][\"orig$__powixf2\"]).apply(null,arguments)};var _orig$__bswapdi2=Module[\"_orig$__bswapdi2\"]=function(){return(_orig$__bswapdi2=Module[\"_orig$__bswapdi2\"]=Module[\"asm\"][\"orig$__bswapdi2\"]).apply(null,arguments)};var _orig$__addvti3=Module[\"_orig$__addvti3\"]=function(){return(_orig$__addvti3=Module[\"_orig$__addvti3\"]=Module[\"asm\"][\"orig$__addvti3\"]).apply(null,arguments)};var _orig$__subvti3=Module[\"_orig$__subvti3\"]=function(){return(_orig$__subvti3=Module[\"_orig$__subvti3\"]=Module[\"asm\"][\"orig$__subvti3\"]).apply(null,arguments)};var _orig$__addvdi3=Module[\"_orig$__addvdi3\"]=function(){return(_orig$__addvdi3=Module[\"_orig$__addvdi3\"]=Module[\"asm\"][\"orig$__addvdi3\"]).apply(null,arguments)};var _orig$__popcountti2=Module[\"_orig$__popcountti2\"]=function(){return(_orig$__popcountti2=Module[\"_orig$__popcountti2\"]=Module[\"asm\"][\"orig$__popcountti2\"]).apply(null,arguments)};var _orig$__mulodi4=Module[\"_orig$__mulodi4\"]=function(){return(_orig$__mulodi4=Module[\"_orig$__mulodi4\"]=Module[\"asm\"][\"orig$__mulodi4\"]).apply(null,arguments)};var _orig$__floatunditf=Module[\"_orig$__floatunditf\"]=function(){return(_orig$__floatunditf=Module[\"_orig$__floatunditf\"]=Module[\"asm\"][\"orig$__floatunditf\"]).apply(null,arguments)};var _orig$__umodti3=Module[\"_orig$__umodti3\"]=function(){return(_orig$__umodti3=Module[\"_orig$__umodti3\"]=Module[\"asm\"][\"orig$__umodti3\"]).apply(null,arguments)};var _orig$__floattitf=Module[\"_orig$__floattitf\"]=function(){return(_orig$__floattitf=Module[\"_orig$__floattitf\"]=Module[\"asm\"][\"orig$__floattitf\"]).apply(null,arguments)};var _orig$__atomic_load_8=Module[\"_orig$__atomic_load_8\"]=function(){return(_orig$__atomic_load_8=Module[\"_orig$__atomic_load_8\"]=Module[\"asm\"][\"orig$__atomic_load_8\"]).apply(null,arguments)};var _orig$__atomic_store_8=Module[\"_orig$__atomic_store_8\"]=function(){return(_orig$__atomic_store_8=Module[\"_orig$__atomic_store_8\"]=Module[\"asm\"][\"orig$__atomic_store_8\"]).apply(null,arguments)};var _orig$__atomic_store_16=Module[\"_orig$__atomic_store_16\"]=function(){return(_orig$__atomic_store_16=Module[\"_orig$__atomic_store_16\"]=Module[\"asm\"][\"orig$__atomic_store_16\"]).apply(null,arguments)};var _orig$__atomic_exchange_8=Module[\"_orig$__atomic_exchange_8\"]=function(){return(_orig$__atomic_exchange_8=Module[\"_orig$__atomic_exchange_8\"]=Module[\"asm\"][\"orig$__atomic_exchange_8\"]).apply(null,arguments)};var _orig$__atomic_exchange_16=Module[\"_orig$__atomic_exchange_16\"]=function(){return(_orig$__atomic_exchange_16=Module[\"_orig$__atomic_exchange_16\"]=Module[\"asm\"][\"orig$__atomic_exchange_16\"]).apply(null,arguments)};var _orig$__atomic_compare_exchange_8=Module[\"_orig$__atomic_compare_exchange_8\"]=function(){return(_orig$__atomic_compare_exchange_8=Module[\"_orig$__atomic_compare_exchange_8\"]=Module[\"asm\"][\"orig$__atomic_compare_exchange_8\"]).apply(null,arguments)};var _orig$__atomic_compare_exchange_16=Module[\"_orig$__atomic_compare_exchange_16\"]=function(){return(_orig$__atomic_compare_exchange_16=Module[\"_orig$__atomic_compare_exchange_16\"]=Module[\"asm\"][\"orig$__atomic_compare_exchange_16\"]).apply(null,arguments)};var _orig$__atomic_fetch_add_8=Module[\"_orig$__atomic_fetch_add_8\"]=function(){return(_orig$__atomic_fetch_add_8=Module[\"_orig$__atomic_fetch_add_8\"]=Module[\"asm\"][\"orig$__atomic_fetch_add_8\"]).apply(null,arguments)};var _orig$__atomic_fetch_add_16=Module[\"_orig$__atomic_fetch_add_16\"]=function(){return(_orig$__atomic_fetch_add_16=Module[\"_orig$__atomic_fetch_add_16\"]=Module[\"asm\"][\"orig$__atomic_fetch_add_16\"]).apply(null,arguments)};var _orig$__atomic_fetch_sub_8=Module[\"_orig$__atomic_fetch_sub_8\"]=function(){return(_orig$__atomic_fetch_sub_8=Module[\"_orig$__atomic_fetch_sub_8\"]=Module[\"asm\"][\"orig$__atomic_fetch_sub_8\"]).apply(null,arguments)};var _orig$__atomic_fetch_sub_16=Module[\"_orig$__atomic_fetch_sub_16\"]=function(){return(_orig$__atomic_fetch_sub_16=Module[\"_orig$__atomic_fetch_sub_16\"]=Module[\"asm\"][\"orig$__atomic_fetch_sub_16\"]).apply(null,arguments)};var _orig$__atomic_fetch_and_8=Module[\"_orig$__atomic_fetch_and_8\"]=function(){return(_orig$__atomic_fetch_and_8=Module[\"_orig$__atomic_fetch_and_8\"]=Module[\"asm\"][\"orig$__atomic_fetch_and_8\"]).apply(null,arguments)};var _orig$__atomic_fetch_and_16=Module[\"_orig$__atomic_fetch_and_16\"]=function(){return(_orig$__atomic_fetch_and_16=Module[\"_orig$__atomic_fetch_and_16\"]=Module[\"asm\"][\"orig$__atomic_fetch_and_16\"]).apply(null,arguments)};var _orig$__atomic_fetch_or_8=Module[\"_orig$__atomic_fetch_or_8\"]=function(){return(_orig$__atomic_fetch_or_8=Module[\"_orig$__atomic_fetch_or_8\"]=Module[\"asm\"][\"orig$__atomic_fetch_or_8\"]).apply(null,arguments)};var _orig$__atomic_fetch_or_16=Module[\"_orig$__atomic_fetch_or_16\"]=function(){return(_orig$__atomic_fetch_or_16=Module[\"_orig$__atomic_fetch_or_16\"]=Module[\"asm\"][\"orig$__atomic_fetch_or_16\"]).apply(null,arguments)};var _orig$__atomic_fetch_xor_8=Module[\"_orig$__atomic_fetch_xor_8\"]=function(){return(_orig$__atomic_fetch_xor_8=Module[\"_orig$__atomic_fetch_xor_8\"]=Module[\"asm\"][\"orig$__atomic_fetch_xor_8\"]).apply(null,arguments)};var _orig$__atomic_fetch_xor_16=Module[\"_orig$__atomic_fetch_xor_16\"]=function(){return(_orig$__atomic_fetch_xor_16=Module[\"_orig$__atomic_fetch_xor_16\"]=Module[\"asm\"][\"orig$__atomic_fetch_xor_16\"]).apply(null,arguments)};var _orig$__udivmoddi4=Module[\"_orig$__udivmoddi4\"]=function(){return(_orig$__udivmoddi4=Module[\"_orig$__udivmoddi4\"]=Module[\"asm\"][\"orig$__udivmoddi4\"]).apply(null,arguments)};var _orig$__ctzdi2=Module[\"_orig$__ctzdi2\"]=function(){return(_orig$__ctzdi2=Module[\"_orig$__ctzdi2\"]=Module[\"asm\"][\"orig$__ctzdi2\"]).apply(null,arguments)};var _orig$__fixunsxfdi=Module[\"_orig$__fixunsxfdi\"]=function(){return(_orig$__fixunsxfdi=Module[\"_orig$__fixunsxfdi\"]=Module[\"asm\"][\"orig$__fixunsxfdi\"]).apply(null,arguments)};var _orig$__cmpti2=Module[\"_orig$__cmpti2\"]=function(){return(_orig$__cmpti2=Module[\"_orig$__cmpti2\"]=Module[\"asm\"][\"orig$__cmpti2\"]).apply(null,arguments)};var _orig$__floatuntixf=Module[\"_orig$__floatuntixf\"]=function(){return(_orig$__floatuntixf=Module[\"_orig$__floatuntixf\"]=Module[\"asm\"][\"orig$__floatuntixf\"]).apply(null,arguments)};var _orig$__moddi3=Module[\"_orig$__moddi3\"]=function(){return(_orig$__moddi3=Module[\"_orig$__moddi3\"]=Module[\"asm\"][\"orig$__moddi3\"]).apply(null,arguments)};var _orig$__floatdixf=Module[\"_orig$__floatdixf\"]=function(){return(_orig$__floatdixf=Module[\"_orig$__floatdixf\"]=Module[\"asm\"][\"orig$__floatdixf\"]).apply(null,arguments)};var _orig$__floatuntidf=Module[\"_orig$__floatuntidf\"]=function(){return(_orig$__floatuntidf=Module[\"_orig$__floatuntidf\"]=Module[\"asm\"][\"orig$__floatuntidf\"]).apply(null,arguments)};var _orig$__negti2=Module[\"_orig$__negti2\"]=function(){return(_orig$__negti2=Module[\"_orig$__negti2\"]=Module[\"asm\"][\"orig$__negti2\"]).apply(null,arguments)};var _orig$__parityti2=Module[\"_orig$__parityti2\"]=function(){return(_orig$__parityti2=Module[\"_orig$__parityti2\"]=Module[\"asm\"][\"orig$__parityti2\"]).apply(null,arguments)};var _orig$__paritydi2=Module[\"_orig$__paritydi2\"]=function(){return(_orig$__paritydi2=Module[\"_orig$__paritydi2\"]=Module[\"asm\"][\"orig$__paritydi2\"]).apply(null,arguments)};var _orig$__udivdi3=Module[\"_orig$__udivdi3\"]=function(){return(_orig$__udivdi3=Module[\"_orig$__udivdi3\"]=Module[\"asm\"][\"orig$__udivdi3\"]).apply(null,arguments)};var _orig$__umoddi3=Module[\"_orig$__umoddi3\"]=function(){return(_orig$__umoddi3=Module[\"_orig$__umoddi3\"]=Module[\"asm\"][\"orig$__umoddi3\"]).apply(null,arguments)};var _orig$__ffsti2=Module[\"_orig$__ffsti2\"]=function(){return(_orig$__ffsti2=Module[\"_orig$__ffsti2\"]=Module[\"asm\"][\"orig$__ffsti2\"]).apply(null,arguments)};var _orig$__absvti2=Module[\"_orig$__absvti2\"]=function(){return(_orig$__absvti2=Module[\"_orig$__absvti2\"]=Module[\"asm\"][\"orig$__absvti2\"]).apply(null,arguments)};var _orig$__floatuntisf=Module[\"_orig$__floatuntisf\"]=function(){return(_orig$__floatuntisf=Module[\"_orig$__floatuntisf\"]=Module[\"asm\"][\"orig$__floatuntisf\"]).apply(null,arguments)};var _orig$__floatuntitf=Module[\"_orig$__floatuntitf\"]=function(){return(_orig$__floatuntitf=Module[\"_orig$__floatuntitf\"]=Module[\"asm\"][\"orig$__floatuntitf\"]).apply(null,arguments)};var _orig$__floatundixf=Module[\"_orig$__floatundixf\"]=function(){return(_orig$__floatundixf=Module[\"_orig$__floatundixf\"]=Module[\"asm\"][\"orig$__floatundixf\"]).apply(null,arguments)};var _orig$__ucmpdi2=Module[\"_orig$__ucmpdi2\"]=function(){return(_orig$__ucmpdi2=Module[\"_orig$__ucmpdi2\"]=Module[\"asm\"][\"orig$__ucmpdi2\"]).apply(null,arguments)};var _orig$__clzdi2=Module[\"_orig$__clzdi2\"]=function(){return(_orig$__clzdi2=Module[\"_orig$__clzdi2\"]=Module[\"asm\"][\"orig$__clzdi2\"]).apply(null,arguments)};var _orig$__muloti4=Module[\"_orig$__muloti4\"]=function(){return(_orig$__muloti4=Module[\"_orig$__muloti4\"]=Module[\"asm\"][\"orig$__muloti4\"]).apply(null,arguments)};var _orig$__floattidf=Module[\"_orig$__floattidf\"]=function(){return(_orig$__floattidf=Module[\"_orig$__floattidf\"]=Module[\"asm\"][\"orig$__floattidf\"]).apply(null,arguments)};var _orig$__muldi3=Module[\"_orig$__muldi3\"]=function(){return(_orig$__muldi3=Module[\"_orig$__muldi3\"]=Module[\"asm\"][\"orig$__muldi3\"]).apply(null,arguments)};var _orig$__divtc3=Module[\"_orig$__divtc3\"]=function(){return(_orig$__divtc3=Module[\"_orig$__divtc3\"]=Module[\"asm\"][\"orig$__divtc3\"]).apply(null,arguments)};var _orig$__negdi2=Module[\"_orig$__negdi2\"]=function(){return(_orig$__negdi2=Module[\"_orig$__negdi2\"]=Module[\"asm\"][\"orig$__negdi2\"]).apply(null,arguments)};var _orig$__mulvdi3=Module[\"_orig$__mulvdi3\"]=function(){return(_orig$__mulvdi3=Module[\"_orig$__mulvdi3\"]=Module[\"asm\"][\"orig$__mulvdi3\"]).apply(null,arguments)};var _orig$_ZNSt3__26__itoa8__u64toaEyPc=Module[\"_orig$_ZNSt3__26__itoa8__u64toaEyPc\"]=function(){return(_orig$_ZNSt3__26__itoa8__u64toaEyPc=Module[\"_orig$_ZNSt3__26__itoa8__u64toaEyPc\"]=Module[\"asm\"][\"orig$_ZNSt3__26__itoa8__u64toaEyPc\"]).apply(null,arguments)};var _orig$_ZNSt3__218condition_variable15__do_timed_waitERNS_11unique_lockINS_5mutexEEENS_6chrono10time_pointINS5_12system_clockENS5_8durationIxNS_5ratioILx1ELx1000000000EEEEEEE=Module[\"_orig$_ZNSt3__218condition_variable15__do_timed_waitERNS_11unique_lockINS_5mutexEEENS_6chrono10time_pointINS5_12system_clockENS5_8durationIxNS_5ratioILx1ELx1000000000EEEEEEE\"]=function(){return(_orig$_ZNSt3__218condition_variable15__do_timed_waitERNS_11unique_lockINS_5mutexEEENS_6chrono10time_pointINS5_12system_clockENS5_8durationIxNS_5ratioILx1ELx1000000000EEEEEEE=Module[\"_orig$_ZNSt3__218condition_variable15__do_timed_waitERNS_11unique_lockINS_5mutexEEENS_6chrono10time_pointINS5_12system_clockENS5_8durationIxNS_5ratioILx1ELx1000000000EEEEEEE\"]=Module[\"asm\"][\"orig$_ZNSt3__218condition_variable15__do_timed_waitERNS_11unique_lockINS_5mutexEEENS_6chrono10time_pointINS5_12system_clockENS5_8durationIxNS_5ratioILx1ELx1000000000EEEEEEE\"]).apply(null,arguments)};var _orig$_ZNKSt3__26chrono10time_pointINS0_12system_clockENS0_8durationIxNS_5ratioILx1ELx1000000000EEEEEE16time_since_epochEv=Module[\"_orig$_ZNKSt3__26chrono10time_pointINS0_12system_clockENS0_8durationIxNS_5ratioILx1ELx1000000000EEEEEE16time_since_epochEv\"]=function(){return(_orig$_ZNKSt3__26chrono10time_pointINS0_12system_clockENS0_8durationIxNS_5ratioILx1ELx1000000000EEEEEE16time_since_epochEv=Module[\"_orig$_ZNKSt3__26chrono10time_pointINS0_12system_clockENS0_8durationIxNS_5ratioILx1ELx1000000000EEEEEE16time_since_epochEv\"]=Module[\"asm\"][\"orig$_ZNKSt3__26chrono10time_pointINS0_12system_clockENS0_8durationIxNS_5ratioILx1ELx1000000000EEEEEE16time_since_epochEv\"]).apply(null,arguments)};var _orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEExNS3_ILx1ELx1000000000EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE=Module[\"_orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEExNS3_ILx1ELx1000000000EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE\"]=function(){return(_orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEExNS3_ILx1ELx1000000000EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE=Module[\"_orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEExNS3_ILx1ELx1000000000EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE\"]=Module[\"asm\"][\"orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEExNS3_ILx1ELx1000000000EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE\"]).apply(null,arguments)};var _orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1EEEE5countEv=Module[\"_orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1EEEE5countEv\"]=function(){return(_orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1EEEE5countEv=Module[\"_orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1EEEE5countEv\"]=Module[\"asm\"][\"orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1EEEE5countEv\"]).apply(null,arguments)};var _orig$_ZNSt3__26chronomiIxNS_5ratioILx1ELx1000000000EEExNS2_ILx1ELx1EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_=Module[\"_orig$_ZNSt3__26chronomiIxNS_5ratioILx1ELx1000000000EEExNS2_ILx1ELx1EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_\"]=function(){return(_orig$_ZNSt3__26chronomiIxNS_5ratioILx1ELx1000000000EEExNS2_ILx1ELx1EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_=Module[\"_orig$_ZNSt3__26chronomiIxNS_5ratioILx1ELx1000000000EEExNS2_ILx1ELx1EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_\"]=Module[\"asm\"][\"orig$_ZNSt3__26chronomiIxNS_5ratioILx1ELx1000000000EEExNS2_ILx1ELx1EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_\"]).apply(null,arguments)};var _orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1000000000EEEE5countEv=Module[\"_orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1000000000EEEE5countEv\"]=function(){return(_orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1000000000EEEE5countEv=Module[\"_orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1000000000EEEE5countEv\"]=Module[\"asm\"][\"orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1000000000EEEE5countEv\"]).apply(null,arguments)};var _orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1000000000EEEEENS2_IxNS3_ILx1ELx1EEEEES4_Lb1ELb0EEclERKS5_=Module[\"_orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1000000000EEEEENS2_IxNS3_ILx1ELx1EEEEES4_Lb1ELb0EEclERKS5_\"]=function(){return(_orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1000000000EEEEENS2_IxNS3_ILx1ELx1EEEEES4_Lb1ELb0EEclERKS5_=Module[\"_orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1000000000EEEEENS2_IxNS3_ILx1ELx1EEEEES4_Lb1ELb0EEclERKS5_\"]=Module[\"asm\"][\"orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1000000000EEEEENS2_IxNS3_ILx1ELx1EEEEES4_Lb1ELb0EEclERKS5_\"]).apply(null,arguments)};var _orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1000000000EEEEExNS3_ILx1ELx1EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE=Module[\"_orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1000000000EEEEExNS3_ILx1ELx1EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE\"]=function(){return(_orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1000000000EEEEExNS3_ILx1ELx1EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE=Module[\"_orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1000000000EEEEExNS3_ILx1ELx1EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE\"]=Module[\"asm\"][\"orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1000000000EEEEExNS3_ILx1ELx1EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE\"]).apply(null,arguments)};var _orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEENS2_IxNS3_ILx1ELx1000000000EEEEENS3_ILx1000000000ELx1EEELb0ELb1EEclERKS5_=Module[\"_orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEENS2_IxNS3_ILx1ELx1000000000EEEEENS3_ILx1000000000ELx1EEELb0ELb1EEclERKS5_\"]=function(){return(_orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEENS2_IxNS3_ILx1ELx1000000000EEEEENS3_ILx1000000000ELx1EEELb0ELb1EEclERKS5_=Module[\"_orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEENS2_IxNS3_ILx1ELx1000000000EEEEENS3_ILx1000000000ELx1EEELb0ELb1EEclERKS5_\"]=Module[\"asm\"][\"orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEENS2_IxNS3_ILx1ELx1000000000EEEEENS3_ILx1000000000ELx1EEELb0ELb1EEclERKS5_\"]).apply(null,arguments)};var _orig$_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj=Module[\"_orig$_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj\"]=function(){return(_orig$_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj=Module[\"_orig$_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj\"]=Module[\"asm\"][\"orig$_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj\"]).apply(null,arguments)};var _orig$_ZNSt3__215basic_streambufIwNS_11char_traitsIwEEE7seekoffExNS_8ios_base7seekdirEj=Module[\"_orig$_ZNSt3__215basic_streambufIwNS_11char_traitsIwEEE7seekoffExNS_8ios_base7seekdirEj\"]=function(){return(_orig$_ZNSt3__215basic_streambufIwNS_11char_traitsIwEEE7seekoffExNS_8ios_base7seekdirEj=Module[\"_orig$_ZNSt3__215basic_streambufIwNS_11char_traitsIwEEE7seekoffExNS_8ios_base7seekdirEj\"]=Module[\"asm\"][\"orig$_ZNSt3__215basic_streambufIwNS_11char_traitsIwEEE7seekoffExNS_8ios_base7seekdirEj\"]).apply(null,arguments)};var _orig$_ZNSt3__24fposI11__mbstate_tEC2Ex=Module[\"_orig$_ZNSt3__24fposI11__mbstate_tEC2Ex\"]=function(){return(_orig$_ZNSt3__24fposI11__mbstate_tEC2Ex=Module[\"_orig$_ZNSt3__24fposI11__mbstate_tEC2Ex\"]=Module[\"asm\"][\"orig$_ZNSt3__24fposI11__mbstate_tEC2Ex\"]).apply(null,arguments)};var _orig$_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE10pubseekoffExNS_8ios_base7seekdirEj=Module[\"_orig$_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE10pubseekoffExNS_8ios_base7seekdirEj\"]=function(){return(_orig$_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE10pubseekoffExNS_8ios_base7seekdirEj=Module[\"_orig$_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE10pubseekoffExNS_8ios_base7seekdirEj\"]=Module[\"asm\"][\"orig$_ZNSt3__215basic_streambufIcNS_11char_traitsIcEEE10pubseekoffExNS_8ios_base7seekdirEj\"]).apply(null,arguments)};var _orig$_ZNKSt3__24fposI11__mbstate_tEcvxEv=Module[\"_orig$_ZNKSt3__24fposI11__mbstate_tEcvxEv\"]=function(){return(_orig$_ZNKSt3__24fposI11__mbstate_tEcvxEv=Module[\"_orig$_ZNKSt3__24fposI11__mbstate_tEcvxEv\"]=Module[\"asm\"][\"orig$_ZNKSt3__24fposI11__mbstate_tEcvxEv\"]).apply(null,arguments)};var _orig$_ZNSt3__213basic_istreamIcNS_11char_traitsIcEEE5seekgExNS_8ios_base7seekdirE=Module[\"_orig$_ZNSt3__213basic_istreamIcNS_11char_traitsIcEEE5seekgExNS_8ios_base7seekdirE\"]=function(){return(_orig$_ZNSt3__213basic_istreamIcNS_11char_traitsIcEEE5seekgExNS_8ios_base7seekdirE=Module[\"_orig$_ZNSt3__213basic_istreamIcNS_11char_traitsIcEEE5seekgExNS_8ios_base7seekdirE\"]=Module[\"asm\"][\"orig$_ZNSt3__213basic_istreamIcNS_11char_traitsIcEEE5seekgExNS_8ios_base7seekdirE\"]).apply(null,arguments)};var _orig$_ZNSt3__215basic_streambufIwNS_11char_traitsIwEEE10pubseekoffExNS_8ios_base7seekdirEj=Module[\"_orig$_ZNSt3__215basic_streambufIwNS_11char_traitsIwEEE10pubseekoffExNS_8ios_base7seekdirEj\"]=function(){return(_orig$_ZNSt3__215basic_streambufIwNS_11char_traitsIwEEE10pubseekoffExNS_8ios_base7seekdirEj=Module[\"_orig$_ZNSt3__215basic_streambufIwNS_11char_traitsIwEEE10pubseekoffExNS_8ios_base7seekdirEj\"]=Module[\"asm\"][\"orig$_ZNSt3__215basic_streambufIwNS_11char_traitsIwEEE10pubseekoffExNS_8ios_base7seekdirEj\"]).apply(null,arguments)};var _orig$_ZNSt3__213basic_istreamIwNS_11char_traitsIwEEE5seekgExNS_8ios_base7seekdirE=Module[\"_orig$_ZNSt3__213basic_istreamIwNS_11char_traitsIwEEE5seekgExNS_8ios_base7seekdirE\"]=function(){return(_orig$_ZNSt3__213basic_istreamIwNS_11char_traitsIwEEE5seekgExNS_8ios_base7seekdirE=Module[\"_orig$_ZNSt3__213basic_istreamIwNS_11char_traitsIwEEE5seekgExNS_8ios_base7seekdirE\"]=Module[\"asm\"][\"orig$_ZNSt3__213basic_istreamIwNS_11char_traitsIwEEE5seekgExNS_8ios_base7seekdirE\"]).apply(null,arguments)};var _orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEx=Module[\"_orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEx\"]=function(){return(_orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEx=Module[\"_orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEx\"]=Module[\"asm\"][\"orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEx\"]).apply(null,arguments)};var _orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEcx=Module[\"_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEcx\"]=function(){return(_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEcx=Module[\"_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEcx\"]=Module[\"asm\"][\"orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEcx\"]).apply(null,arguments)};var _orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEy=Module[\"_orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEy\"]=function(){return(_orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEy=Module[\"_orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEy\"]=Module[\"asm\"][\"orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEy\"]).apply(null,arguments)};var _orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEcy=Module[\"_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEcy\"]=function(){return(_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEcy=Module[\"_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEcy\"]=Module[\"asm\"][\"orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEcy\"]).apply(null,arguments)};var _orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEe=Module[\"_orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEe\"]=function(){return(_orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEe=Module[\"_orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEe\"]=Module[\"asm\"][\"orig$_ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEElsEe\"]).apply(null,arguments)};var _orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEce=Module[\"_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEce\"]=function(){return(_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEce=Module[\"_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEce\"]=Module[\"asm\"][\"orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE3putES4_RNS_8ios_baseEce\"]).apply(null,arguments)};var _orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEx=Module[\"_orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEx\"]=function(){return(_orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEx=Module[\"_orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEx\"]=Module[\"asm\"][\"orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEx\"]).apply(null,arguments)};var _orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwx=Module[\"_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwx\"]=function(){return(_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwx=Module[\"_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwx\"]=Module[\"asm\"][\"orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwx\"]).apply(null,arguments)};var _orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEy=Module[\"_orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEy\"]=function(){return(_orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEy=Module[\"_orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEy\"]=Module[\"asm\"][\"orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEy\"]).apply(null,arguments)};var _orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwy=Module[\"_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwy\"]=function(){return(_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwy=Module[\"_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwy\"]=Module[\"asm\"][\"orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwy\"]).apply(null,arguments)};var _orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEe=Module[\"_orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEe\"]=function(){return(_orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEe=Module[\"_orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEe\"]=Module[\"asm\"][\"orig$_ZNSt3__213basic_ostreamIwNS_11char_traitsIwEEElsEe\"]).apply(null,arguments)};var _orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwe=Module[\"_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwe\"]=function(){return(_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwe=Module[\"_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwe\"]=Module[\"asm\"][\"orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE3putES4_RNS_8ios_baseEwe\"]).apply(null,arguments)};var _orig$_ZNSt3__225__num_get_signed_integralIxEET_PKcS3_Rji=Module[\"_orig$_ZNSt3__225__num_get_signed_integralIxEET_PKcS3_Rji\"]=function(){return(_orig$_ZNSt3__225__num_get_signed_integralIxEET_PKcS3_Rji=Module[\"_orig$_ZNSt3__225__num_get_signed_integralIxEET_PKcS3_Rji\"]=Module[\"asm\"][\"orig$_ZNSt3__225__num_get_signed_integralIxEET_PKcS3_Rji\"]).apply(null,arguments)};var _orig$_ZNSt3__227__num_get_unsigned_integralIyEET_PKcS3_Rji=Module[\"_orig$_ZNSt3__227__num_get_unsigned_integralIyEET_PKcS3_Rji\"]=function(){return(_orig$_ZNSt3__227__num_get_unsigned_integralIyEET_PKcS3_Rji=Module[\"_orig$_ZNSt3__227__num_get_unsigned_integralIyEET_PKcS3_Rji\"]=Module[\"asm\"][\"orig$_ZNSt3__227__num_get_unsigned_integralIyEET_PKcS3_Rji\"]).apply(null,arguments)};var _orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEcx=Module[\"_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEcx\"]=function(){return(_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEcx=Module[\"_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEcx\"]=Module[\"asm\"][\"orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEcx\"]).apply(null,arguments)};var _orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEcy=Module[\"_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEcy\"]=function(){return(_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEcy=Module[\"_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEcy\"]=Module[\"asm\"][\"orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEcy\"]).apply(null,arguments)};var _orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEce=Module[\"_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEce\"]=function(){return(_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEce=Module[\"_orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEce\"]=Module[\"asm\"][\"orig$_ZNKSt3__27num_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_RNS_8ios_baseEce\"]).apply(null,arguments)};var _orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwx=Module[\"_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwx\"]=function(){return(_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwx=Module[\"_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwx\"]=Module[\"asm\"][\"orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwx\"]).apply(null,arguments)};var _orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwy=Module[\"_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwy\"]=function(){return(_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwy=Module[\"_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwy\"]=Module[\"asm\"][\"orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwy\"]).apply(null,arguments)};var _orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwe=Module[\"_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwe\"]=function(){return(_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwe=Module[\"_orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwe\"]=Module[\"asm\"][\"orig$_ZNKSt3__27num_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_RNS_8ios_baseEwe\"]).apply(null,arguments)};var _orig$_ZNKSt3__29money_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_bRNS_8ios_baseEce=Module[\"_orig$_ZNKSt3__29money_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_bRNS_8ios_baseEce\"]=function(){return(_orig$_ZNKSt3__29money_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_bRNS_8ios_baseEce=Module[\"_orig$_ZNKSt3__29money_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_bRNS_8ios_baseEce\"]=Module[\"asm\"][\"orig$_ZNKSt3__29money_putIcNS_19ostreambuf_iteratorIcNS_11char_traitsIcEEEEE6do_putES4_bRNS_8ios_baseEce\"]).apply(null,arguments)};var _orig$_ZNKSt3__29money_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_bRNS_8ios_baseEwe=Module[\"_orig$_ZNKSt3__29money_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_bRNS_8ios_baseEwe\"]=function(){return(_orig$_ZNKSt3__29money_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_bRNS_8ios_baseEwe=Module[\"_orig$_ZNKSt3__29money_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_bRNS_8ios_baseEwe\"]=Module[\"asm\"][\"orig$_ZNKSt3__29money_putIwNS_19ostreambuf_iteratorIwNS_11char_traitsIwEEEEE6do_putES4_bRNS_8ios_baseEwe\"]).apply(null,arguments)};var _orig$_ZNSt3__214numeric_limitsIxE3minEv=Module[\"_orig$_ZNSt3__214numeric_limitsIxE3minEv\"]=function(){return(_orig$_ZNSt3__214numeric_limitsIxE3minEv=Module[\"_orig$_ZNSt3__214numeric_limitsIxE3minEv\"]=Module[\"asm\"][\"orig$_ZNSt3__214numeric_limitsIxE3minEv\"]).apply(null,arguments)};var _orig$_ZNSt3__214numeric_limitsIxE3maxEv=Module[\"_orig$_ZNSt3__214numeric_limitsIxE3maxEv\"]=function(){return(_orig$_ZNSt3__214numeric_limitsIxE3maxEv=Module[\"_orig$_ZNSt3__214numeric_limitsIxE3maxEv\"]=Module[\"asm\"][\"orig$_ZNSt3__214numeric_limitsIxE3maxEv\"]).apply(null,arguments)};var _orig$_ZNSt3__223__libcpp_numeric_limitsIxLb1EE3minEv=Module[\"_orig$_ZNSt3__223__libcpp_numeric_limitsIxLb1EE3minEv\"]=function(){return(_orig$_ZNSt3__223__libcpp_numeric_limitsIxLb1EE3minEv=Module[\"_orig$_ZNSt3__223__libcpp_numeric_limitsIxLb1EE3minEv\"]=Module[\"asm\"][\"orig$_ZNSt3__223__libcpp_numeric_limitsIxLb1EE3minEv\"]).apply(null,arguments)};var _orig$_ZNSt3__223__libcpp_numeric_limitsIxLb1EE3maxEv=Module[\"_orig$_ZNSt3__223__libcpp_numeric_limitsIxLb1EE3maxEv\"]=function(){return(_orig$_ZNSt3__223__libcpp_numeric_limitsIxLb1EE3maxEv=Module[\"_orig$_ZNSt3__223__libcpp_numeric_limitsIxLb1EE3maxEv\"]=Module[\"asm\"][\"orig$_ZNSt3__223__libcpp_numeric_limitsIxLb1EE3maxEv\"]).apply(null,arguments)};var _orig$_ZNSt3__214numeric_limitsIyE3maxEv=Module[\"_orig$_ZNSt3__214numeric_limitsIyE3maxEv\"]=function(){return(_orig$_ZNSt3__214numeric_limitsIyE3maxEv=Module[\"_orig$_ZNSt3__214numeric_limitsIyE3maxEv\"]=Module[\"asm\"][\"orig$_ZNSt3__214numeric_limitsIyE3maxEv\"]).apply(null,arguments)};var _orig$_ZNSt3__223__libcpp_numeric_limitsIyLb1EE3maxEv=Module[\"_orig$_ZNSt3__223__libcpp_numeric_limitsIyLb1EE3maxEv\"]=function(){return(_orig$_ZNSt3__223__libcpp_numeric_limitsIyLb1EE3maxEv=Module[\"_orig$_ZNSt3__223__libcpp_numeric_limitsIyLb1EE3maxEv\"]=Module[\"asm\"][\"orig$_ZNSt3__223__libcpp_numeric_limitsIyLb1EE3maxEv\"]).apply(null,arguments)};var _orig$_ZNSt3__26chrono8durationIxNS_5ratioILx1ELx1000000000EEEE4zeroEv=Module[\"_orig$_ZNSt3__26chrono8durationIxNS_5ratioILx1ELx1000000000EEEE4zeroEv\"]=function(){return(_orig$_ZNSt3__26chrono8durationIxNS_5ratioILx1ELx1000000000EEEE4zeroEv=Module[\"_orig$_ZNSt3__26chrono8durationIxNS_5ratioILx1ELx1000000000EEEE4zeroEv\"]=Module[\"asm\"][\"orig$_ZNSt3__26chrono8durationIxNS_5ratioILx1ELx1000000000EEEE4zeroEv\"]).apply(null,arguments)};var _orig$_ZNSt3__26chrono15duration_valuesIxE4zeroEv=Module[\"_orig$_ZNSt3__26chrono15duration_valuesIxE4zeroEv\"]=function(){return(_orig$_ZNSt3__26chrono15duration_valuesIxE4zeroEv=Module[\"_orig$_ZNSt3__26chrono15duration_valuesIxE4zeroEv\"]=Module[\"asm\"][\"orig$_ZNSt3__26chrono15duration_valuesIxE4zeroEv\"]).apply(null,arguments)};var _orig$_ZNSt3__212strstreambuf7seekoffExNS_8ios_base7seekdirEj=Module[\"_orig$_ZNSt3__212strstreambuf7seekoffExNS_8ios_base7seekdirEj\"]=function(){return(_orig$_ZNSt3__212strstreambuf7seekoffExNS_8ios_base7seekdirEj=Module[\"_orig$_ZNSt3__212strstreambuf7seekoffExNS_8ios_base7seekdirEj\"]=Module[\"asm\"][\"orig$_ZNSt3__212strstreambuf7seekoffExNS_8ios_base7seekdirEj\"]).apply(null,arguments)};var _orig$_ZNSt3__25stollERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi=Module[\"_orig$_ZNSt3__25stollERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi\"]=function(){return(_orig$_ZNSt3__25stollERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi=Module[\"_orig$_ZNSt3__25stollERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi\"]=Module[\"asm\"][\"orig$_ZNSt3__25stollERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi\"]).apply(null,arguments)};var _orig$_ZNSt3__25stollERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi=Module[\"_orig$_ZNSt3__25stollERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi\"]=function(){return(_orig$_ZNSt3__25stollERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi=Module[\"_orig$_ZNSt3__25stollERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi\"]=Module[\"asm\"][\"orig$_ZNSt3__25stollERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi\"]).apply(null,arguments)};var _orig$_ZNSt3__26stoullERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi=Module[\"_orig$_ZNSt3__26stoullERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi\"]=function(){return(_orig$_ZNSt3__26stoullERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi=Module[\"_orig$_ZNSt3__26stoullERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi\"]=Module[\"asm\"][\"orig$_ZNSt3__26stoullERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPmi\"]).apply(null,arguments)};var _orig$_ZNSt3__26stoullERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi=Module[\"_orig$_ZNSt3__26stoullERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi\"]=function(){return(_orig$_ZNSt3__26stoullERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi=Module[\"_orig$_ZNSt3__26stoullERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi\"]=Module[\"asm\"][\"orig$_ZNSt3__26stoullERKNS_12basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPmi\"]).apply(null,arguments)};var _orig$_ZNSt3__29to_stringEx=Module[\"_orig$_ZNSt3__29to_stringEx\"]=function(){return(_orig$_ZNSt3__29to_stringEx=Module[\"_orig$_ZNSt3__29to_stringEx\"]=Module[\"asm\"][\"orig$_ZNSt3__29to_stringEx\"]).apply(null,arguments)};var _orig$_ZNSt3__28to_charsIxLi0EEENS_15to_chars_resultEPcS2_T_=Module[\"_orig$_ZNSt3__28to_charsIxLi0EEENS_15to_chars_resultEPcS2_T_\"]=function(){return(_orig$_ZNSt3__28to_charsIxLi0EEENS_15to_chars_resultEPcS2_T_=Module[\"_orig$_ZNSt3__28to_charsIxLi0EEENS_15to_chars_resultEPcS2_T_\"]=Module[\"asm\"][\"orig$_ZNSt3__28to_charsIxLi0EEENS_15to_chars_resultEPcS2_T_\"]).apply(null,arguments)};var _orig$_ZNSt3__29to_stringEy=Module[\"_orig$_ZNSt3__29to_stringEy\"]=function(){return(_orig$_ZNSt3__29to_stringEy=Module[\"_orig$_ZNSt3__29to_stringEy\"]=Module[\"asm\"][\"orig$_ZNSt3__29to_stringEy\"]).apply(null,arguments)};var _orig$_ZNSt3__28to_charsIyLi0EEENS_15to_chars_resultEPcS2_T_=Module[\"_orig$_ZNSt3__28to_charsIyLi0EEENS_15to_chars_resultEPcS2_T_\"]=function(){return(_orig$_ZNSt3__28to_charsIyLi0EEENS_15to_chars_resultEPcS2_T_=Module[\"_orig$_ZNSt3__28to_charsIyLi0EEENS_15to_chars_resultEPcS2_T_\"]=Module[\"asm\"][\"orig$_ZNSt3__28to_charsIyLi0EEENS_15to_chars_resultEPcS2_T_\"]).apply(null,arguments)};var _orig$_ZNSt3__210to_wstringEx=Module[\"_orig$_ZNSt3__210to_wstringEx\"]=function(){return(_orig$_ZNSt3__210to_wstringEx=Module[\"_orig$_ZNSt3__210to_wstringEx\"]=Module[\"asm\"][\"orig$_ZNSt3__210to_wstringEx\"]).apply(null,arguments)};var _orig$_ZNSt3__210to_wstringEy=Module[\"_orig$_ZNSt3__210to_wstringEy\"]=function(){return(_orig$_ZNSt3__210to_wstringEy=Module[\"_orig$_ZNSt3__210to_wstringEy\"]=Module[\"asm\"][\"orig$_ZNSt3__210to_wstringEy\"]).apply(null,arguments)};var _orig$_ZNSt3__29to_stringEe=Module[\"_orig$_ZNSt3__29to_stringEe\"]=function(){return(_orig$_ZNSt3__29to_stringEe=Module[\"_orig$_ZNSt3__29to_stringEe\"]=Module[\"asm\"][\"orig$_ZNSt3__29to_stringEe\"]).apply(null,arguments)};var _orig$_ZNSt3__210to_wstringEe=Module[\"_orig$_ZNSt3__210to_wstringEe\"]=function(){return(_orig$_ZNSt3__210to_wstringEe=Module[\"_orig$_ZNSt3__210to_wstringEe\"]=Module[\"asm\"][\"orig$_ZNSt3__210to_wstringEe\"]).apply(null,arguments)};var _orig$_ZNSt3__215__to_chars_itoaIxEENS_15to_chars_resultEPcS2_T_NS_17integral_constantIbLb1EEE=Module[\"_orig$_ZNSt3__215__to_chars_itoaIxEENS_15to_chars_resultEPcS2_T_NS_17integral_constantIbLb1EEE\"]=function(){return(_orig$_ZNSt3__215__to_chars_itoaIxEENS_15to_chars_resultEPcS2_T_NS_17integral_constantIbLb1EEE=Module[\"_orig$_ZNSt3__215__to_chars_itoaIxEENS_15to_chars_resultEPcS2_T_NS_17integral_constantIbLb1EEE\"]=Module[\"asm\"][\"orig$_ZNSt3__215__to_chars_itoaIxEENS_15to_chars_resultEPcS2_T_NS_17integral_constantIbLb1EEE\"]).apply(null,arguments)};var _orig$_ZNSt3__213__to_unsignedIxEENS_13make_unsignedIT_E4typeES2_=Module[\"_orig$_ZNSt3__213__to_unsignedIxEENS_13make_unsignedIT_E4typeES2_\"]=function(){return(_orig$_ZNSt3__213__to_unsignedIxEENS_13make_unsignedIT_E4typeES2_=Module[\"_orig$_ZNSt3__213__to_unsignedIxEENS_13make_unsignedIT_E4typeES2_\"]=Module[\"asm\"][\"orig$_ZNSt3__213__to_unsignedIxEENS_13make_unsignedIT_E4typeES2_\"]).apply(null,arguments)};var _orig$_ZNSt3__212__complementIyEET_S1_=Module[\"_orig$_ZNSt3__212__complementIyEET_S1_\"]=function(){return(_orig$_ZNSt3__212__complementIyEET_S1_=Module[\"_orig$_ZNSt3__212__complementIyEET_S1_\"]=Module[\"asm\"][\"orig$_ZNSt3__212__complementIyEET_S1_\"]).apply(null,arguments)};var _orig$_ZNSt3__215__to_chars_itoaIyEENS_15to_chars_resultEPcS2_T_NS_17integral_constantIbLb0EEE=Module[\"_orig$_ZNSt3__215__to_chars_itoaIyEENS_15to_chars_resultEPcS2_T_NS_17integral_constantIbLb0EEE\"]=function(){return(_orig$_ZNSt3__215__to_chars_itoaIyEENS_15to_chars_resultEPcS2_T_NS_17integral_constantIbLb0EEE=Module[\"_orig$_ZNSt3__215__to_chars_itoaIyEENS_15to_chars_resultEPcS2_T_NS_17integral_constantIbLb0EEE\"]=Module[\"asm\"][\"orig$_ZNSt3__215__to_chars_itoaIyEENS_15to_chars_resultEPcS2_T_NS_17integral_constantIbLb0EEE\"]).apply(null,arguments)};var _orig$_ZNSt3__26__itoa13__traits_baseIyvE7__widthEy=Module[\"_orig$_ZNSt3__26__itoa13__traits_baseIyvE7__widthEy\"]=function(){return(_orig$_ZNSt3__26__itoa13__traits_baseIyvE7__widthEy=Module[\"_orig$_ZNSt3__26__itoa13__traits_baseIyvE7__widthEy\"]=Module[\"asm\"][\"orig$_ZNSt3__26__itoa13__traits_baseIyvE7__widthEy\"]).apply(null,arguments)};var _orig$_ZNSt3__26__itoa13__traits_baseIyvE9__convertEyPc=Module[\"_orig$_ZNSt3__26__itoa13__traits_baseIyvE9__convertEyPc\"]=function(){return(_orig$_ZNSt3__26__itoa13__traits_baseIyvE9__convertEyPc=Module[\"_orig$_ZNSt3__26__itoa13__traits_baseIyvE9__convertEyPc\"]=Module[\"asm\"][\"orig$_ZNSt3__26__itoa13__traits_baseIyvE9__convertEyPc\"]).apply(null,arguments)};var _orig$_ZNSt3__26chrono12system_clock3nowEv=Module[\"_orig$_ZNSt3__26chrono12system_clock3nowEv\"]=function(){return(_orig$_ZNSt3__26chrono12system_clock3nowEv=Module[\"_orig$_ZNSt3__26chrono12system_clock3nowEv\"]=Module[\"asm\"][\"orig$_ZNSt3__26chrono12system_clock3nowEv\"]).apply(null,arguments)};var _orig$_ZNSt3__26chronoplIxNS_5ratioILx1ELx1EEExNS2_ILx1ELx1000000EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_=Module[\"_orig$_ZNSt3__26chronoplIxNS_5ratioILx1ELx1EEExNS2_ILx1ELx1000000EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_\"]=function(){return(_orig$_ZNSt3__26chronoplIxNS_5ratioILx1ELx1EEExNS2_ILx1ELx1000000EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_=Module[\"_orig$_ZNSt3__26chronoplIxNS_5ratioILx1ELx1EEExNS2_ILx1ELx1000000EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_\"]=Module[\"asm\"][\"orig$_ZNSt3__26chronoplIxNS_5ratioILx1ELx1EEExNS2_ILx1ELx1000000EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_\"]).apply(null,arguments)};var _orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1000000EEEE5countEv=Module[\"_orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1000000EEEE5countEv\"]=function(){return(_orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1000000EEEE5countEv=Module[\"_orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1000000EEEE5countEv\"]=Module[\"asm\"][\"orig$_ZNKSt3__26chrono8durationIxNS_5ratioILx1ELx1000000EEEE5countEv\"]).apply(null,arguments)};var _orig$_ZNKSt3__26chrono10time_pointINS0_12system_clockENS0_8durationIxNS_5ratioILx1ELx1000000EEEEEE16time_since_epochEv=Module[\"_orig$_ZNKSt3__26chrono10time_pointINS0_12system_clockENS0_8durationIxNS_5ratioILx1ELx1000000EEEEEE16time_since_epochEv\"]=function(){return(_orig$_ZNKSt3__26chrono10time_pointINS0_12system_clockENS0_8durationIxNS_5ratioILx1ELx1000000EEEEEE16time_since_epochEv=Module[\"_orig$_ZNKSt3__26chrono10time_pointINS0_12system_clockENS0_8durationIxNS_5ratioILx1ELx1000000EEEEEE16time_since_epochEv\"]=Module[\"asm\"][\"orig$_ZNKSt3__26chrono10time_pointINS0_12system_clockENS0_8durationIxNS_5ratioILx1ELx1000000EEEEEE16time_since_epochEv\"]).apply(null,arguments)};var _orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEExNS3_ILx1ELx1000000EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE=Module[\"_orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEExNS3_ILx1ELx1000000EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE\"]=function(){return(_orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEExNS3_ILx1ELx1000000EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE=Module[\"_orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEExNS3_ILx1ELx1000000EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE\"]=Module[\"asm\"][\"orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEExNS3_ILx1ELx1000000EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE\"]).apply(null,arguments)};var _orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1000000EEEEENS2_IxNS3_ILx1ELx1EEEEES4_Lb1ELb0EEclERKS5_=Module[\"_orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1000000EEEEENS2_IxNS3_ILx1ELx1EEEEES4_Lb1ELb0EEclERKS5_\"]=function(){return(_orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1000000EEEEENS2_IxNS3_ILx1ELx1EEEEES4_Lb1ELb0EEclERKS5_=Module[\"_orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1000000EEEEENS2_IxNS3_ILx1ELx1EEEEES4_Lb1ELb0EEclERKS5_\"]=Module[\"asm\"][\"orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1000000EEEEENS2_IxNS3_ILx1ELx1EEEEES4_Lb1ELb0EEclERKS5_\"]).apply(null,arguments)};var _orig$_ZNSt3__26chrono12system_clock11from_time_tEl=Module[\"_orig$_ZNSt3__26chrono12system_clock11from_time_tEl\"]=function(){return(_orig$_ZNSt3__26chrono12system_clock11from_time_tEl=Module[\"_orig$_ZNSt3__26chrono12system_clock11from_time_tEl\"]=Module[\"asm\"][\"orig$_ZNSt3__26chrono12system_clock11from_time_tEl\"]).apply(null,arguments)};var _orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1000000EEEEExNS3_ILx1ELx1EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE=Module[\"_orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1000000EEEEExNS3_ILx1ELx1EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE\"]=function(){return(_orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1000000EEEEExNS3_ILx1ELx1EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE=Module[\"_orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1000000EEEEExNS3_ILx1ELx1EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE\"]=Module[\"asm\"][\"orig$_ZNSt3__26chrono13duration_castINS0_8durationIxNS_5ratioILx1ELx1000000EEEEExNS3_ILx1ELx1EEEEENS_9enable_ifIXsr13__is_durationIT_EE5valueES8_E4typeERKNS2_IT0_T1_EE\"]).apply(null,arguments)};var _orig$_ZNSt3__26chrono12steady_clock3nowEv=Module[\"_orig$_ZNSt3__26chrono12steady_clock3nowEv\"]=function(){return(_orig$_ZNSt3__26chrono12steady_clock3nowEv=Module[\"_orig$_ZNSt3__26chrono12steady_clock3nowEv\"]=Module[\"asm\"][\"orig$_ZNSt3__26chrono12steady_clock3nowEv\"]).apply(null,arguments)};var _orig$_ZNSt3__26chronoplIxNS_5ratioILx1ELx1EEExNS2_ILx1ELx1000000000EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_=Module[\"_orig$_ZNSt3__26chronoplIxNS_5ratioILx1ELx1EEExNS2_ILx1ELx1000000000EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_\"]=function(){return(_orig$_ZNSt3__26chronoplIxNS_5ratioILx1ELx1EEExNS2_ILx1ELx1000000000EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_=Module[\"_orig$_ZNSt3__26chronoplIxNS_5ratioILx1ELx1EEExNS2_ILx1ELx1000000000EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_\"]=Module[\"asm\"][\"orig$_ZNSt3__26chronoplIxNS_5ratioILx1ELx1EEExNS2_ILx1ELx1000000000EEEEENS_11common_typeIJNS0_8durationIT_T0_EENS6_IT1_T2_EEEE4typeERKS9_RKSC_\"]).apply(null,arguments)};var _orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEENS2_IxNS3_ILx1ELx1000000EEEEENS3_ILx1000000ELx1EEELb0ELb1EEclERKS5_=Module[\"_orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEENS2_IxNS3_ILx1ELx1000000EEEEENS3_ILx1000000ELx1EEELb0ELb1EEclERKS5_\"]=function(){return(_orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEENS2_IxNS3_ILx1ELx1000000EEEEENS3_ILx1000000ELx1EEELb0ELb1EEclERKS5_=Module[\"_orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEENS2_IxNS3_ILx1ELx1000000EEEEENS3_ILx1000000ELx1EEELb0ELb1EEclERKS5_\"]=Module[\"asm\"][\"orig$_ZNKSt3__26chrono15__duration_castINS0_8durationIxNS_5ratioILx1ELx1EEEEENS2_IxNS3_ILx1ELx1000000EEEEENS3_ILx1000000ELx1EEELb0ELb1EEclERKS5_\"]).apply(null,arguments)};var _orig$_ZNSt3__24__fs10filesystem11__file_sizeERKNS1_4pathEPNS_10error_codeE=Module[\"_orig$_ZNSt3__24__fs10filesystem11__file_sizeERKNS1_4pathEPNS_10error_codeE\"]=function(){return(_orig$_ZNSt3__24__fs10filesystem11__file_sizeERKNS1_4pathEPNS_10error_codeE=Module[\"_orig$_ZNSt3__24__fs10filesystem11__file_sizeERKNS1_4pathEPNS_10error_codeE\"]=Module[\"asm\"][\"orig$_ZNSt3__24__fs10filesystem11__file_sizeERKNS1_4pathEPNS_10error_codeE\"]).apply(null,arguments)};var _orig$_ZNSt3__24__fs10filesystem17__hard_link_countERKNS1_4pathEPNS_10error_codeE=Module[\"_orig$_ZNSt3__24__fs10filesystem17__hard_link_countERKNS1_4pathEPNS_10error_codeE\"]=function(){return(_orig$_ZNSt3__24__fs10filesystem17__hard_link_countERKNS1_4pathEPNS_10error_codeE=Module[\"_orig$_ZNSt3__24__fs10filesystem17__hard_link_countERKNS1_4pathEPNS_10error_codeE\"]=Module[\"asm\"][\"orig$_ZNSt3__24__fs10filesystem17__hard_link_countERKNS1_4pathEPNS_10error_codeE\"]).apply(null,arguments)};var _orig$_ZNSt3__24__fs10filesystem17__last_write_timeERKNS1_4pathENS_6chrono10time_pointINS1_16_FilesystemClockENS5_8durationInNS_5ratioILx1ELx1000000000EEEEEEEPNS_10error_codeE=Module[\"_orig$_ZNSt3__24__fs10filesystem17__last_write_timeERKNS1_4pathENS_6chrono10time_pointINS1_16_FilesystemClockENS5_8durationInNS_5ratioILx1ELx1000000000EEEEEEEPNS_10error_codeE\"]=function(){return(_orig$_ZNSt3__24__fs10filesystem17__last_write_timeERKNS1_4pathENS_6chrono10time_pointINS1_16_FilesystemClockENS5_8durationInNS_5ratioILx1ELx1000000000EEEEEEEPNS_10error_codeE=Module[\"_orig$_ZNSt3__24__fs10filesystem17__last_write_timeERKNS1_4pathENS_6chrono10time_pointINS1_16_FilesystemClockENS5_8durationInNS_5ratioILx1ELx1000000000EEEEEEEPNS_10error_codeE\"]=Module[\"asm\"][\"orig$_ZNSt3__24__fs10filesystem17__last_write_timeERKNS1_4pathENS_6chrono10time_pointINS1_16_FilesystemClockENS5_8durationInNS_5ratioILx1ELx1000000000EEEEEEEPNS_10error_codeE\"]).apply(null,arguments)};var _orig$_ZNSt3__24__fs10filesystem12__remove_allERKNS1_4pathEPNS_10error_codeE=Module[\"_orig$_ZNSt3__24__fs10filesystem12__remove_allERKNS1_4pathEPNS_10error_codeE\"]=function(){return(_orig$_ZNSt3__24__fs10filesystem12__remove_allERKNS1_4pathEPNS_10error_codeE=Module[\"_orig$_ZNSt3__24__fs10filesystem12__remove_allERKNS1_4pathEPNS_10error_codeE\"]=Module[\"asm\"][\"orig$_ZNSt3__24__fs10filesystem12__remove_allERKNS1_4pathEPNS_10error_codeE\"]).apply(null,arguments)};var _orig$_ZNSt3__24__fs10filesystem13__resize_fileERKNS1_4pathEyPNS_10error_codeE=Module[\"_orig$_ZNSt3__24__fs10filesystem13__resize_fileERKNS1_4pathEyPNS_10error_codeE\"]=function(){return(_orig$_ZNSt3__24__fs10filesystem13__resize_fileERKNS1_4pathEyPNS_10error_codeE=Module[\"_orig$_ZNSt3__24__fs10filesystem13__resize_fileERKNS1_4pathEyPNS_10error_codeE\"]=Module[\"asm\"][\"orig$_ZNSt3__24__fs10filesystem13__resize_fileERKNS1_4pathEyPNS_10error_codeE\"]).apply(null,arguments)};var _orig$_ZNSt3__213basic_filebufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj=Module[\"_orig$_ZNSt3__213basic_filebufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj\"]=function(){return(_orig$_ZNSt3__213basic_filebufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj=Module[\"_orig$_ZNSt3__213basic_filebufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj\"]=Module[\"asm\"][\"orig$_ZNSt3__213basic_filebufIcNS_11char_traitsIcEEE7seekoffExNS_8ios_base7seekdirEj\"]).apply(null,arguments)};var _orig$_ZN10__cxxabiv119__getExceptionClassEPK17_Unwind_Exception=Module[\"_orig$_ZN10__cxxabiv119__getExceptionClassEPK17_Unwind_Exception\"]=function(){return(_orig$_ZN10__cxxabiv119__getExceptionClassEPK17_Unwind_Exception=Module[\"_orig$_ZN10__cxxabiv119__getExceptionClassEPK17_Unwind_Exception\"]=Module[\"asm\"][\"orig$_ZN10__cxxabiv119__getExceptionClassEPK17_Unwind_Exception\"]).apply(null,arguments)};var _orig$_ZN10__cxxabiv119__setExceptionClassEP17_Unwind_Exceptiony=Module[\"_orig$_ZN10__cxxabiv119__setExceptionClassEP17_Unwind_Exceptiony\"]=function(){return(_orig$_ZN10__cxxabiv119__setExceptionClassEP17_Unwind_Exceptiony=Module[\"_orig$_ZN10__cxxabiv119__setExceptionClassEP17_Unwind_Exceptiony\"]=Module[\"asm\"][\"orig$_ZN10__cxxabiv119__setExceptionClassEP17_Unwind_Exceptiony\"]).apply(null,arguments)};var _orig$fminl=Module[\"_orig$fminl\"]=function(){return(_orig$fminl=Module[\"_orig$fminl\"]=Module[\"asm\"][\"orig$fminl\"]).apply(null,arguments)};var _py_docstring_mod=Module[\"_py_docstring_mod\"]=3170160;var __Py_NoneStruct=Module[\"__Py_NoneStruct\"]=2887140;var _PyExc_TypeError=Module[\"_PyExc_TypeError\"]=2856932;var _internal_error=Module[\"_internal_error\"]=3170164;var _conversion_error=Module[\"_conversion_error\"]=3170168;var _error__js_funcname_string=Module[\"_error__js_funcname_string\"]=2843648;var _error__js_filename_string=Module[\"_error__js_filename_string\"]=2843652;var _PyExc_ValueError=Module[\"_PyExc_ValueError\"]=2864628;var _Js_undefined=Module[\"_Js_undefined\"]=1540;var _Js_true=Module[\"_Js_true\"]=1544;var _Js_false=Module[\"_Js_false\"]=1548;var _Js_null=Module[\"_Js_null\"]=1552;var _Js_novalue=Module[\"_Js_novalue\"]=1556;var __Py_TrueStruct=Module[\"__Py_TrueStruct\"]=2846224;var __Py_FalseStruct=Module[\"__Py_FalseStruct\"]=2846240;var _PyBaseObject_Type=Module[\"_PyBaseObject_Type\"]=2892776;var _PyExc_RuntimeError=Module[\"_PyExc_RuntimeError\"]=2862132;var _JsProxy_toPy_MethodDef=Module[\"_JsProxy_toPy_MethodDef\"]=2843772;var _JsProxy_object_entries_MethodDef=Module[\"_JsProxy_object_entries_MethodDef\"]=2843708;var _JsProxy_object_keys_MethodDef=Module[\"_JsProxy_object_keys_MethodDef\"]=2843724;var _JsProxy_Dir_MethodDef=Module[\"_JsProxy_Dir_MethodDef\"]=2843756;var _JsProxy_object_values_MethodDef=Module[\"_JsProxy_object_values_MethodDef\"]=2843740;var _JsProxy_then_MethodDef=Module[\"_JsProxy_then_MethodDef\"]=2843800;var _JsProxy_catch_MethodDef=Module[\"_JsProxy_catch_MethodDef\"]=2843816;var _JsProxy_finally_MethodDef=Module[\"_JsProxy_finally_MethodDef\"]=2843832;var _JsMethod_Construct_MethodDef=Module[\"_JsMethod_Construct_MethodDef\"]=2843848;var _PyExc_BaseException=Module[\"_PyExc_BaseException\"]=2856516;var _PyExc_Exception=Module[\"_PyExc_Exception\"]=2856724;var _PyExc_StopIteration=Module[\"_PyExc_StopIteration\"]=2857348;var _PyExc_KeyError=Module[\"_PyExc_KeyError\"]=2864420;var _PyExc_IndexError=Module[\"_PyExc_IndexError\"]=2864212;var _PySlice_Type=Module[\"_PySlice_Type\"]=2891684;var _PyExc_NotImplementedError=Module[\"_PyExc_NotImplementedError\"]=2862548;var _PyExc_AttributeError=Module[\"_PyExc_AttributeError\"]=2863172;var __Py_NotImplementedStruct=Module[\"__Py_NotImplementedStruct\"]=2887916;var _init_dict=Module[\"_init_dict\"]=3170188;var _PyGen_Type=Module[\"_PyGen_Type\"]=2871344;var _PyCFunction_Type=Module[\"_PyCFunction_Type\"]=2885724;var _PyCoro_Type=Module[\"_PyCoro_Type\"]=2871824;var _py_buffer_len_offset=Module[\"_py_buffer_len_offset\"]=2844972;var _py_buffer_shape_offset=Module[\"_py_buffer_shape_offset\"]=2844976;var _buffer_struct_size=Module[\"_buffer_struct_size\"]=2844980;var _PySet_Type=Module[\"_PySet_Type\"]=2890432;var _PyFloat_Type=Module[\"_PyFloat_Type\"]=2874e3;var _PyBool_Type=Module[\"_PyBool_Type\"]=2846400;var _stderr=Module[\"_stderr\"]=3103544;var __PyParser_TokenNames=Module[\"__PyParser_TokenNames\"]=2845360;var __PyRuntime=Module[\"__PyRuntime\"]=3234672;var _stdout=Module[\"_stdout\"]=3103392;var _PyExc_SyntaxError=Module[\"_PyExc_SyntaxError\"]=2863380;var __Py_EllipsisObject=Module[\"__Py_EllipsisObject\"]=2891676;var _PyExc_SystemError=Module[\"_PyExc_SystemError\"]=2866708;var _PyExc_IndentationError=Module[\"_PyExc_IndentationError\"]=2863588;var _PyExc_KeyboardInterrupt=Module[\"_PyExc_KeyboardInterrupt\"]=2857972;var _PyExc_TabError=Module[\"_PyExc_TabError\"]=2863796;var _PyExc_UnicodeError=Module[\"_PyExc_UnicodeError\"]=2864836;var _PyExc_LookupError=Module[\"_PyExc_LookupError\"]=2864004;var _PyExc_UnicodeDecodeError=Module[\"_PyExc_UnicodeDecodeError\"]=2865252;var _PyExc_OSError=Module[\"_PyExc_OSError\"]=2858596;var __Py_ctype_table=Module[\"__Py_ctype_table\"]=317968;var _PyExc_OverflowError=Module[\"_PyExc_OverflowError\"]=2866292;var _PyExc_DeprecationWarning=Module[\"_PyExc_DeprecationWarning\"]=2867956;var __PyOS_ReadlineTState=Module[\"__PyOS_ReadlineTState\"]=3178384;var _PyOS_InputHook=Module[\"_PyOS_InputHook\"]=3178388;var _PyOS_ReadlineFunctionPointer=Module[\"_PyOS_ReadlineFunctionPointer\"]=3178392;var _PyExc_MemoryError=Module[\"_PyExc_MemoryError\"]=2867124;var _stdin=Module[\"_stdin\"]=3103696;var _PyUnicode_Type=Module[\"_PyUnicode_Type\"]=2898224;var _PyType_Type=Module[\"_PyType_Type\"]=2892980;var _PyExc_BufferError=Module[\"_PyExc_BufferError\"]=2867332;var _PyLong_Type=Module[\"_PyLong_Type\"]=2878468;var _PyByteArray_Type=Module[\"_PyByteArray_Type\"]=2847552;var __PyByteArray_empty_string=Module[\"__PyByteArray_empty_string\"]=3178408;var _PyTuple_Type=Module[\"_PyTuple_Type\"]=2892156;var _PyList_Type=Module[\"_PyList_Type\"]=2877336;var _PyDict_Type=Module[\"_PyDict_Type\"]=2879624;var __Py_ctype_tolower=Module[\"__Py_ctype_tolower\"]=318992;var __Py_ctype_toupper=Module[\"__Py_ctype_toupper\"]=319248;var __Py_isspace__doc__=Module[\"__Py_isspace__doc__\"]=13520;var __Py_isalpha__doc__=Module[\"__Py_isalpha__doc__\"]=13664;var __Py_isalnum__doc__=Module[\"__Py_isalnum__doc__\"]=13808;var __Py_isascii__doc__=Module[\"__Py_isascii__doc__\"]=13952;var __Py_isdigit__doc__=Module[\"__Py_isdigit__doc__\"]=14064;var __Py_islower__doc__=Module[\"__Py_islower__doc__\"]=14192;var __Py_isupper__doc__=Module[\"__Py_isupper__doc__\"]=14336;var __Py_istitle__doc__=Module[\"__Py_istitle__doc__\"]=14480;var __Py_lower__doc__=Module[\"__Py_lower__doc__\"]=14720;var __Py_upper__doc__=Module[\"__Py_upper__doc__\"]=14816;var __Py_title__doc__=Module[\"__Py_title__doc__\"]=14912;var __Py_capitalize__doc__=Module[\"__Py_capitalize__doc__\"]=15072;var __Py_swapcase__doc__=Module[\"__Py_swapcase__doc__\"]=15200;var __Py_maketrans__doc__=Module[\"__Py_maketrans__doc__\"]=15328;var __Py_find__doc__=Module[\"__Py_find__doc__\"]=15664;var __Py_index__doc__=Module[\"__Py_index__doc__\"]=15920;var __Py_rfind__doc__=Module[\"__Py_rfind__doc__\"]=16224;var __Py_rindex__doc__=Module[\"__Py_rindex__doc__\"]=16480;var __Py_count__doc__=Module[\"__Py_count__doc__\"]=16768;var __Py_startswith__doc__=Module[\"__Py_startswith__doc__\"]=17008;var __Py_endswith__doc__=Module[\"__Py_endswith__doc__\"]=17296;var _Py_hexdigits=Module[\"_Py_hexdigits\"]=2905388;var _PyExc_BytesWarning=Module[\"_PyExc_BytesWarning\"]=2869412;var _PyByteArrayIter_Type=Module[\"_PyByteArrayIter_Type\"]=2847824;var _PyBytes_Type=Module[\"_PyBytes_Type\"]=2848540;var __PyLong_DigitValue=Module[\"__PyLong_DigitValue\"]=2878672;var _PyBytesIter_Type=Module[\"_PyBytesIter_Type\"]=2849728;var _PyCapsule_Type=Module[\"_PyCapsule_Type\"]=2850300;var _PyExc_ImportError=Module[\"_PyExc_ImportError\"]=2858180;var _PyCell_Type=Module[\"_PyCell_Type\"]=2850552;var _PyMethod_Type=Module[\"_PyMethod_Type\"]=2850904;var _PyInstanceMethod_Type=Module[\"_PyInstanceMethod_Type\"]=2851208;var _PyCode_Type=Module[\"_PyCode_Type\"]=2851448;var _PyFrozenSet_Type=Module[\"_PyFrozenSet_Type\"]=2890992;var _PyComplex_Type=Module[\"_PyComplex_Type\"]=2852168;var __PyLong_Zero=Module[\"__PyLong_Zero\"]=3180740;var _PyExc_ZeroDivisionError=Module[\"_PyExc_ZeroDivisionError\"]=2866500;var __PyMethodWrapper_Type=Module[\"__PyMethodWrapper_Type\"]=2854552;var _PyMethodDescr_Type=Module[\"_PyMethodDescr_Type\"]=2852896;var _PyClassMethodDescr_Type=Module[\"_PyClassMethodDescr_Type\"]=2853100;var _PyMemberDescr_Type=Module[\"_PyMemberDescr_Type\"]=2853372;var _PyGetSetDescr_Type=Module[\"_PyGetSetDescr_Type\"]=2853644;var _PyWrapperDescr_Type=Module[\"_PyWrapperDescr_Type\"]=2853936;var _PyDictProxy_Type=Module[\"_PyDictProxy_Type\"]=2854140;var _PyProperty_Type=Module[\"_PyProperty_Type\"]=2855304;var __PyLong_One=Module[\"__PyLong_One\"]=3180744;var _PyReversed_Type=Module[\"_PyReversed_Type\"]=2856048;var _PyEnum_Type=Module[\"_PyEnum_Type\"]=2855776;var _PyTraceBack_Type=Module[\"_PyTraceBack_Type\"]=2925960;var _PyExc_UnicodeEncodeError=Module[\"_PyExc_UnicodeEncodeError\"]=2865044;var _PyExc_UnicodeTranslateError=Module[\"_PyExc_UnicodeTranslateError\"]=2865460;var _PyExc_StopAsyncIteration=Module[\"_PyExc_StopAsyncIteration\"]=2857140;var _PyExc_GeneratorExit=Module[\"_PyExc_GeneratorExit\"]=2857556;var _PyExc_SystemExit=Module[\"_PyExc_SystemExit\"]=2857764;var _PyExc_ModuleNotFoundError=Module[\"_PyExc_ModuleNotFoundError\"]=2858388;var _PyExc_EOFError=Module[\"_PyExc_EOFError\"]=2861924;var _PyExc_RecursionError=Module[\"_PyExc_RecursionError\"]=2862340;var _PyExc_NameError=Module[\"_PyExc_NameError\"]=2862756;var _PyExc_UnboundLocalError=Module[\"_PyExc_UnboundLocalError\"]=2862964;var _PyExc_AssertionError=Module[\"_PyExc_AssertionError\"]=2865668;var _PyExc_ArithmeticError=Module[\"_PyExc_ArithmeticError\"]=2865876;var _PyExc_FloatingPointError=Module[\"_PyExc_FloatingPointError\"]=2866084;var _PyExc_ReferenceError=Module[\"_PyExc_ReferenceError\"]=2866916;var _PyExc_Warning=Module[\"_PyExc_Warning\"]=2867540;var _PyExc_UserWarning=Module[\"_PyExc_UserWarning\"]=2867748;var _PyExc_PendingDeprecationWarning=Module[\"_PyExc_PendingDeprecationWarning\"]=2868164;var _PyExc_SyntaxWarning=Module[\"_PyExc_SyntaxWarning\"]=2868372;var _PyExc_RuntimeWarning=Module[\"_PyExc_RuntimeWarning\"]=2868580;var _PyExc_FutureWarning=Module[\"_PyExc_FutureWarning\"]=2868788;var _PyExc_ImportWarning=Module[\"_PyExc_ImportWarning\"]=2868996;var _PyExc_UnicodeWarning=Module[\"_PyExc_UnicodeWarning\"]=2869204;var _PyExc_ResourceWarning=Module[\"_PyExc_ResourceWarning\"]=2869620;var _PyExc_ConnectionError=Module[\"_PyExc_ConnectionError\"]=2859012;var _PyExc_BlockingIOError=Module[\"_PyExc_BlockingIOError\"]=2858804;var _PyExc_BrokenPipeError=Module[\"_PyExc_BrokenPipeError\"]=2859428;var _PyExc_ChildProcessError=Module[\"_PyExc_ChildProcessError\"]=2859220;var _PyExc_ConnectionAbortedError=Module[\"_PyExc_ConnectionAbortedError\"]=2859636;var _PyExc_ConnectionRefusedError=Module[\"_PyExc_ConnectionRefusedError\"]=2859844;var _PyExc_ConnectionResetError=Module[\"_PyExc_ConnectionResetError\"]=2860052;var _PyExc_FileExistsError=Module[\"_PyExc_FileExistsError\"]=2860260;var _PyExc_FileNotFoundError=Module[\"_PyExc_FileNotFoundError\"]=2860468;var _PyExc_IsADirectoryError=Module[\"_PyExc_IsADirectoryError\"]=2860676;var _PyExc_NotADirectoryError=Module[\"_PyExc_NotADirectoryError\"]=2860884;var _PyExc_InterruptedError=Module[\"_PyExc_InterruptedError\"]=2861092;var _PyExc_PermissionError=Module[\"_PyExc_PermissionError\"]=2861300;var _PyExc_ProcessLookupError=Module[\"_PyExc_ProcessLookupError\"]=2861508;var _PyExc_TimeoutError=Module[\"_PyExc_TimeoutError\"]=2861716;var _PyExc_EnvironmentError=Module[\"_PyExc_EnvironmentError\"]=3179460;var _PyExc_IOError=Module[\"_PyExc_IOError\"]=3179464;var __Py_ascii_whitespace=Module[\"__Py_ascii_whitespace\"]=110832;var _Py_GenericAliasType=Module[\"_Py_GenericAliasType\"]=2870808;var _PyAsyncGen_Type=Module[\"_PyAsyncGen_Type\"]=2872560;var __PyAsyncGenWrappedValue_Type=Module[\"__PyAsyncGenWrappedValue_Type\"]=2873052;var __PyCoroWrapper_Type=Module[\"__PyCoroWrapper_Type\"]=2872096;var __PyAsyncGenASend_Type=Module[\"__PyAsyncGenASend_Type\"]=2872848;var __PyAsyncGenAThrow_Type=Module[\"__PyAsyncGenAThrow_Type\"]=2873344;var _PyStdPrinter_Type=Module[\"_PyStdPrinter_Type\"]=2873620;var __Py_SwappedOp=Module[\"__Py_SwappedOp\"]=2887152;var _PyModule_Type=Module[\"_PyModule_Type\"]=2886364;var _PyFrame_Type=Module[\"_PyFrame_Type\"]=2875040;var _PyFunction_Type=Module[\"_PyFunction_Type\"]=2875536;var _PyClassMethod_Type=Module[\"_PyClassMethod_Type\"]=2875852;var _PyStaticMethod_Type=Module[\"_PyStaticMethod_Type\"]=2876172;var __PyInterpreterID_Type=Module[\"__PyInterpreterID_Type\"]=2876588;var _PySeqIter_Type=Module[\"_PySeqIter_Type\"]=2876880;var _PyCallIter_Type=Module[\"_PyCallIter_Type\"]=2877120;var _PyListIter_Type=Module[\"_PyListIter_Type\"]=2877920;var _PyListRevIter_Type=Module[\"_PyListRevIter_Type\"]=2878192;var _PyDictIterKey_Type=Module[\"_PyDictIterKey_Type\"]=2880352;var _PyDictRevIterKey_Type=Module[\"_PyDictRevIterKey_Type\"]=2880964;var _PyDictRevIterValue_Type=Module[\"_PyDictRevIterValue_Type\"]=2881372;var _PyDictKeys_Type=Module[\"_PyDictKeys_Type\"]=2881576;var _PyDictItems_Type=Module[\"_PyDictItems_Type\"]=2881780;var _PyDictIterItem_Type=Module[\"_PyDictIterItem_Type\"]=2880760;var _PyDictIterValue_Type=Module[\"_PyDictIterValue_Type\"]=2880556;var _PyDictValues_Type=Module[\"_PyDictValues_Type\"]=2882416;var _PyDictRevIterItem_Type=Module[\"_PyDictRevIterItem_Type\"]=2881168;var _PyODict_Type=Module[\"_PyODict_Type\"]=2883144;var _PyODictIter_Type=Module[\"_PyODictIter_Type\"]=2883392;var _PyODictKeys_Type=Module[\"_PyODictKeys_Type\"]=2883632;var _PyODictValues_Type=Module[\"_PyODictValues_Type\"]=2884112;var _PyODictItems_Type=Module[\"_PyODictItems_Type\"]=2883872;var __PyManagedBuffer_Type=Module[\"__PyManagedBuffer_Type\"]=2884564;var _PyMemoryView_Type=Module[\"_PyMemoryView_Type\"]=2884768;var _PyCMethod_Type=Module[\"_PyCMethod_Type\"]=2885520;var _PyModuleDef_Type=Module[\"_PyModuleDef_Type\"]=2886160;var __Py_PackageContext=Module[\"__Py_PackageContext\"]=3234436;var __PyNamespace_Type=Module[\"__PyNamespace_Type\"]=2886888;var __Py_tracemalloc_config=Module[\"__Py_tracemalloc_config\"]=2887988;var __PyWeakref_RefType=Module[\"__PyWeakref_RefType\"]=2900824;var __PyWeakref_CallableProxyType=Module[\"__PyWeakref_CallableProxyType\"]=2901484;var __PyWeakref_ProxyType=Module[\"__PyWeakref_ProxyType\"]=2901280;var __PyNone_Type=Module[\"__PyNone_Type\"]=2887332;var __PyNotImplemented_Type=Module[\"__PyNotImplemented_Type\"]=2887712;var _PySuper_Type=Module[\"_PySuper_Type\"]=2896560;var _PyRange_Type=Module[\"_PyRange_Type\"]=2888864;var _PyEllipsis_Type=Module[\"_PyEllipsis_Type\"]=2891472;var _PyLongRangeIter_Type=Module[\"_PyLongRangeIter_Type\"]=2889408;var _PyPickleBuffer_Type=Module[\"_PyPickleBuffer_Type\"]=2888288;var __Py_abstract_hack=Module[\"__Py_abstract_hack\"]=2887924;var _PyRangeIter_Type=Module[\"_PyRangeIter_Type\"]=2889136;var _PySetIter_Type=Module[\"_PySetIter_Type\"]=2889680;var __PySet_Dummy=Module[\"__PySet_Dummy\"]=2891204;var _PyStructSequence_UnnamedField=Module[\"_PyStructSequence_UnnamedField\"]=2892036;var _PyTupleIter_Type=Module[\"_PyTupleIter_Type\"]=2892560;var _PyUnicodeIter_Type=Module[\"_PyUnicodeIter_Type\"]=2900128;var __PyUnicode_TypeRecords=Module[\"__PyUnicode_TypeRecords\"]=132304;var __PyUnicode_ExtendedCase=Module[\"__PyUnicode_ExtendedCase\"]=140352;var _PyFilter_Type=Module[\"_PyFilter_Type\"]=2903296;var _PyMap_Type=Module[\"_PyMap_Type\"]=2903536;var _PyZip_Type=Module[\"_PyZip_Type\"]=2903776;var __Py_CheckRecursionLimit=Module[\"__Py_CheckRecursionLimit\"]=2905228;var _PyContext_Type=Module[\"_PyContext_Type\"]=2905604;var _PyContextVar_Type=Module[\"_PyContextVar_Type\"]=2905808;var _PyContextToken_Type=Module[\"_PyContextToken_Type\"]=2906012;var _PyContextTokenMissing_Type=Module[\"_PyContextTokenMissing_Type\"]=2906604;var _Py_IgnoreEnvironmentFlag=Module[\"_Py_IgnoreEnvironmentFlag\"]=3234396;var _Py_VerboseFlag=Module[\"_Py_VerboseFlag\"]=3234364;var __PyParser_Grammar=Module[\"__PyParser_Grammar\"]=2910344;var __PyHamt_BitmapNode_Type=Module[\"__PyHamt_BitmapNode_Type\"]=2922472;var __PyHamt_ArrayNode_Type=Module[\"__PyHamt_ArrayNode_Type\"]=2922268;var __PyHamt_Type=Module[\"__PyHamt_Type\"]=2922064;var __PyHamt_CollisionNode_Type=Module[\"__PyHamt_CollisionNode_Type\"]=2922676;var __PyHamtItems_Type=Module[\"__PyHamtItems_Type\"]=2921284;var __PyHamtKeys_Type=Module[\"__PyHamtKeys_Type\"]=2921488;var __PyHamtValues_Type=Module[\"__PyHamtValues_Type\"]=2921692;var __PySys_ImplCacheTag=Module[\"__PySys_ImplCacheTag\"]=2924540;var _PyImport_FrozenModules=Module[\"_PyImport_FrozenModules\"]=3074964;var _PyImport_Inittab=Module[\"_PyImport_Inittab\"]=2922880;var __PyImport_DynLoadFiletab=Module[\"__PyImport_DynLoadFiletab\"]=2926416;var __PyImport_Inittab=Module[\"__PyImport_Inittab\"]=2926432;var _Py_IsolatedFlag=Module[\"_Py_IsolatedFlag\"]=3234416;var _Py_BytesWarningFlag=Module[\"_Py_BytesWarningFlag\"]=3234388;var _Py_InspectFlag=Module[\"_Py_InspectFlag\"]=3234376;var _Py_InteractiveFlag=Module[\"_Py_InteractiveFlag\"]=3234372;var _Py_OptimizeFlag=Module[\"_Py_OptimizeFlag\"]=3234380;var _Py_DebugFlag=Module[\"_Py_DebugFlag\"]=3234360;var _Py_QuietFlag=Module[\"_Py_QuietFlag\"]=3234368;var _Py_FrozenFlag=Module[\"_Py_FrozenFlag\"]=3234392;var _Py_UnbufferedStdioFlag=Module[\"_Py_UnbufferedStdioFlag\"]=3234408;var _Py_NoSiteFlag=Module[\"_Py_NoSiteFlag\"]=3234384;var _Py_DontWriteBytecodeFlag=Module[\"_Py_DontWriteBytecodeFlag\"]=3234400;var _Py_NoUserSiteDirectory=Module[\"_Py_NoUserSiteDirectory\"]=3234404;var _Py_HashRandomizationFlag=Module[\"_Py_HashRandomizationFlag\"]=3234412;var __Py_path_config=Module[\"__Py_path_config\"]=3234440;var __PyOS_optarg=Module[\"__PyOS_optarg\"]=3236268;var __PyOS_optind=Module[\"__PyOS_optind\"]=2926280;var _Py_FileSystemDefaultEncoding=Module[\"_Py_FileSystemDefaultEncoding\"]=3234464;var _Py_HasFileSystemDefaultEncoding=Module[\"_Py_HasFileSystemDefaultEncoding\"]=3234468;var _Py_FileSystemDefaultEncodeErrors=Module[\"_Py_FileSystemDefaultEncodeErrors\"]=3234472;var __Py_HasFileSystemDefaultEncodeErrors=Module[\"__Py_HasFileSystemDefaultEncodeErrors\"]=3234476;var _Py_UTF8Mode=Module[\"_Py_UTF8Mode\"]=3234356;var __PyOS_opterr=Module[\"__PyOS_opterr\"]=2926276;var _PyFPE_jbuf=Module[\"_PyFPE_jbuf\"]=3234480;var _PyFPE_counter=Module[\"_PyFPE_counter\"]=3234636;var __Py_HashSecret=Module[\"__Py_HashSecret\"]=3234640;var __Py_UnhandledKeyboardInterrupt=Module[\"__Py_UnhandledKeyboardInterrupt\"]=3234664;var __PyOS_mystrnicmp_hack=Module[\"__PyOS_mystrnicmp_hack\"]=2923688;var _PySTEntry_Type=Module[\"_PySTEntry_Type\"]=2924308;var __PySys_ImplName=Module[\"__PySys_ImplName\"]=2924536;var __Py_open_cloexec_works=Module[\"__Py_open_cloexec_works\"]=2926340;var _PyCStgDict_Type=Module[\"_PyCStgDict_Type\"]=2946848;var _ffi_type_pointer=Module[\"_ffi_type_pointer\"]=2450528;var _PyCSimpleType_Type=Module[\"_PyCSimpleType_Type\"]=2941536;var _PyCData_Type=Module[\"_PyCData_Type\"]=2942096;var _PyCPointerType_Type=Module[\"_PyCPointerType_Type\"]=2941024;var _PyCArray_Type=Module[\"_PyCArray_Type\"]=2943024;var _PyCArrayType_Type=Module[\"_PyCArrayType_Type\"]=2941228;var __ctypes_ptrtype_cache=Module[\"__ctypes_ptrtype_cache\"]=3250468;var _PyCArg_Type=Module[\"_PyCArg_Type\"]=2945360;var _PyCThunk_Type=Module[\"_PyCThunk_Type\"]=2945156;var _PyCStructType_Type=Module[\"_PyCStructType_Type\"]=2940704;var _PyCFuncPtrType_Type=Module[\"_PyCFuncPtrType_Type\"]=2941740;var _PyCPointer_Type=Module[\"_PyCPointer_Type\"]=2943464;var _PyCFuncPtr_Type=Module[\"_PyCFuncPtr_Type\"]=2942736;var _PyCField_Type=Module[\"_PyCField_Type\"]=2945972;var _PyExc_ArgError=Module[\"_PyExc_ArgError\"]=3250464;var __ctypes_module_methods=Module[\"__ctypes_module_methods\"]=2945616;var _ffi_type_void=Module[\"_ffi_type_void\"]=2450420;var _ffi_type_sint32=Module[\"_ffi_type_sint32\"]=2450492;var _ffi_type_sint8=Module[\"_ffi_type_sint8\"]=2450444;var _ffi_type_uint8=Module[\"_ffi_type_uint8\"]=2450432;var _ffi_type_double=Module[\"_ffi_type_double\"]=2450552;var _ffi_type_longdouble=Module[\"_ffi_type_longdouble\"]=2450564;var _ffi_type_float=Module[\"_ffi_type_float\"]=2450540;var _ffi_type_sint16=Module[\"_ffi_type_sint16\"]=2450468;var _ffi_type_uint16=Module[\"_ffi_type_uint16\"]=2450456;var _ffi_type_uint32=Module[\"_ffi_type_uint32\"]=2450480;var _ffi_type_sint64=Module[\"_ffi_type_sint64\"]=2450516;var _ffi_type_uint64=Module[\"_ffi_type_uint64\"]=2450504;var _last_tfrsuv_arg=Module[\"_last_tfrsuv_arg\"]=3250496;var _my_eggs=Module[\"_my_eggs\"]=2947120;var _an_integer=Module[\"_an_integer\"]=2947132;var __xxx_lib=Module[\"__xxx_lib\"]=2947136;var _last_tf_arg_s=Module[\"_last_tf_arg_s\"]=3250504;var _last_tf_arg_u=Module[\"_last_tf_arg_u\"]=3250512;var _left=Module[\"_left\"]=2947140;var _right=Module[\"_right\"]=2947148;var _my_spams=Module[\"_my_spams\"]=2947104;var _top=Module[\"_top\"]=2947144;var _bottom=Module[\"_bottom\"]=2947152;var __PyUnicode_Database_Records=Module[\"__PyUnicode_Database_Records\"]=421520;var __PyUnicode_CategoryNames=Module[\"__PyUnicode_CategoryNames\"]=2947264;var __PyUnicode_BidirectionalNames=Module[\"__PyUnicode_BidirectionalNames\"]=2947392;var __PyUnicode_EastAsianWidthNames=Module[\"__PyUnicode_EastAsianWidthNames\"]=2947504;var _PyBlake2_BLAKE2bType=Module[\"_PyBlake2_BLAKE2bType\"]=2967440;var _PyBlake2_BLAKE2sType=Module[\"_PyBlake2_BLAKE2sType\"]=2967904;var _pysqlite_NodeType=Module[\"_pysqlite_NodeType\"]=2968204;var _pysqlite_CacheType=Module[\"_pysqlite_CacheType\"]=2968464;var _pysqlite_Warning=Module[\"_pysqlite_Warning\"]=3250936;var _pysqlite_Error=Module[\"_pysqlite_Error\"]=3250932;var _pysqlite_InterfaceError=Module[\"_pysqlite_InterfaceError\"]=3250940;var _pysqlite_DatabaseError=Module[\"_pysqlite_DatabaseError\"]=3250944;var _pysqlite_DataError=Module[\"_pysqlite_DataError\"]=3250964;var _pysqlite_OperationalError=Module[\"_pysqlite_OperationalError\"]=3250952;var _pysqlite_IntegrityError=Module[\"_pysqlite_IntegrityError\"]=3250960;var _pysqlite_InternalError=Module[\"_pysqlite_InternalError\"]=3250948;var _pysqlite_ProgrammingError=Module[\"_pysqlite_ProgrammingError\"]=3250956;var _pysqlite_NotSupportedError=Module[\"_pysqlite_NotSupportedError\"]=3250968;var _pysqlite_CursorType=Module[\"_pysqlite_CursorType\"]=2970124;var __pysqlite_enable_callback_tracebacks=Module[\"__pysqlite_enable_callback_tracebacks\"]=3250976;var _pysqlite_StatementType=Module[\"_pysqlite_StatementType\"]=2971428;var _pysqlite_ConnectionType=Module[\"_pysqlite_ConnectionType\"]=2969488;var __pysqlite_converters=Module[\"__pysqlite_converters\"]=3250972;var _pysqlite_PrepareProtocolType=Module[\"_pysqlite_PrepareProtocolType\"]=2970928;var _pysqlite_RowType=Module[\"_pysqlite_RowType\"]=2971184;var _pysqlite_BaseTypeAdapted=Module[\"_pysqlite_BaseTypeAdapted\"]=3250980;var _pysqlite_row_as_mapping=Module[\"_pysqlite_row_as_mapping\"]=2971132;var _mpd_mallocfunc=Module[\"_mpd_mallocfunc\"]=3037856;var _mpd_reallocfunc=Module[\"_mpd_reallocfunc\"]=3037860;var _mpd_callocfunc=Module[\"_mpd_callocfunc\"]=3037864;var _mpd_free=Module[\"_mpd_free\"]=3037868;var _mpd_traphandler=Module[\"_mpd_traphandler\"]=3037724;var _mpd_round_string=Module[\"_mpd_round_string\"]=3037680;var _mpd_pow10=Module[\"_mpd_pow10\"]=2207872;var _mpd_moduli=Module[\"_mpd_moduli\"]=2207644;var _mpd_roots=Module[\"_mpd_roots\"]=2207656;var _mpd_invmoduli=Module[\"_mpd_invmoduli\"]=2207680;var _MPD_TWO63=Module[\"_MPD_TWO63\"]=2207716;var _INV_P1_MOD_P2=Module[\"_INV_P1_MOD_P2\"]=2207720;var _INV_P1P2_MOD_P3=Module[\"_INV_P1P2_MOD_P3\"]=2207724;var _LH_P1P2=Module[\"_LH_P1P2\"]=2207728;var _UH_P1P2=Module[\"_UH_P1P2\"]=2207732;var _mpd_bits=Module[\"_mpd_bits\"]=2207744;var _mpd_clamp_string=Module[\"_mpd_clamp_string\"]=3037716;var _MPD_MINALLOC=Module[\"_MPD_MINALLOC\"]=3037852;var _environ=Module[\"_environ\"]=3258212;var __PyIO_Module=Module[\"__PyIO_Module\"]=3064752;var _PyIOBase_Type=Module[\"_PyIOBase_Type\"]=3065100;var _PyRawIOBase_Type=Module[\"_PyRawIOBase_Type\"]=3065304;var _PyBufferedIOBase_Type=Module[\"_PyBufferedIOBase_Type\"]=3067664;var _PyTextIOBase_Type=Module[\"_PyTextIOBase_Type\"]=3070720;var _PyFileIO_Type=Module[\"_PyFileIO_Type\"]=3066384;var _PyBytesIO_Type=Module[\"_PyBytesIO_Type\"]=3067080;var __PyBytesIOBuffer_Type=Module[\"__PyBytesIOBuffer_Type\"]=3067292;var _PyStringIO_Type=Module[\"_PyStringIO_Type\"]=3072848;var _PyBufferedReader_Type=Module[\"_PyBufferedReader_Type\"]=3068320;var _PyBufferedWriter_Type=Module[\"_PyBufferedWriter_Type\"]=3068896;var _PyBufferedRWPair_Type=Module[\"_PyBufferedRWPair_Type\"]=3069336;var _PyBufferedRandom_Type=Module[\"_PyBufferedRandom_Type\"]=3070032;var _PyTextIOWrapper_Type=Module[\"_PyTextIOWrapper_Type\"]=3071768;var _PyIncrementalNewlineDecoder_Type=Module[\"_PyIncrementalNewlineDecoder_Type\"]=3071048;var __PyIO_str_close=Module[\"__PyIO_str_close\"]=3252728;var __PyIO_str_closed=Module[\"__PyIO_str_closed\"]=3252732;var __PyIO_str_decode=Module[\"__PyIO_str_decode\"]=3252736;var __PyIO_str_encode=Module[\"__PyIO_str_encode\"]=3252740;var __PyIO_str_fileno=Module[\"__PyIO_str_fileno\"]=3252744;var __PyIO_str_flush=Module[\"__PyIO_str_flush\"]=3252748;var __PyIO_str_getstate=Module[\"__PyIO_str_getstate\"]=3252752;var __PyIO_str_isatty=Module[\"__PyIO_str_isatty\"]=3252756;var __PyIO_str_newlines=Module[\"__PyIO_str_newlines\"]=3252760;var __PyIO_str_peek=Module[\"__PyIO_str_peek\"]=3252768;var __PyIO_str_read=Module[\"__PyIO_str_read\"]=3252772;var __PyIO_str_read1=Module[\"__PyIO_str_read1\"]=3252776;var __PyIO_str_readable=Module[\"__PyIO_str_readable\"]=3252780;var __PyIO_str_readall=Module[\"__PyIO_str_readall\"]=3252784;var __PyIO_str_readinto=Module[\"__PyIO_str_readinto\"]=3252788;var __PyIO_str_readline=Module[\"__PyIO_str_readline\"]=3252792;var __PyIO_str_reset=Module[\"__PyIO_str_reset\"]=3252796;var __PyIO_str_seek=Module[\"__PyIO_str_seek\"]=3252800;var __PyIO_str_seekable=Module[\"__PyIO_str_seekable\"]=3252804;var __PyIO_str_setstate=Module[\"__PyIO_str_setstate\"]=3252808;var __PyIO_str_tell=Module[\"__PyIO_str_tell\"]=3252812;var __PyIO_str_truncate=Module[\"__PyIO_str_truncate\"]=3252816;var __PyIO_str_write=Module[\"__PyIO_str_write\"]=3252824;var __PyIO_str_writable=Module[\"__PyIO_str_writable\"]=3252820;var __PyIO_str_nl=Module[\"__PyIO_str_nl\"]=3252764;var __PyIO_empty_str=Module[\"__PyIO_empty_str\"]=3252828;var __PyIO_empty_bytes=Module[\"__PyIO_empty_bytes\"]=3252832;var __Py_M__importlib_bootstrap=Module[\"__Py_M__importlib_bootstrap\"]=2359040;var __Py_M__importlib_bootstrap_external=Module[\"__Py_M__importlib_bootstrap_external\"]=2387984;var __Py_M__zipimport=Module[\"__Py_M__zipimport\"]=2433120;var _sqlite3_version=Module[\"_sqlite3_version\"]=2450576;var _sqlite3_data_directory=Module[\"_sqlite3_data_directory\"]=3253412;var _sqlite3_temp_directory=Module[\"_sqlite3_temp_directory\"]=3253408;var _sqlite3one=Module[\"_sqlite3one\"]=2450584;var _sqlite3_fts3_may_be_corrupt=Module[\"_sqlite3_fts3_may_be_corrupt\"]=3075792;var _sqlite3_fts5_may_be_corrupt=Module[\"_sqlite3_fts5_may_be_corrupt\"]=3075796;var _BZ2_crc32Table=Module[\"_BZ2_crc32Table\"]=3085744;var _BZ2_rNums=Module[\"_BZ2_rNums\"]=3086768;var ___THREW__=Module[\"___THREW__\"]=3262404;var ___threwValue=Module[\"___threwValue\"]=3262408;var _png_sRGB_table=Module[\"_png_sRGB_table\"]=2515184;var _png_sRGB_base=Module[\"_png_sRGB_base\"]=2515696;var _png_sRGB_delta=Module[\"_png_sRGB_delta\"]=2516720;var _z_errmsg=Module[\"_z_errmsg\"]=3089120;var __length_code=Module[\"__length_code\"]=2543520;var __dist_code=Module[\"__dist_code\"]=2543008;var _deflate_copyright=Module[\"_deflate_copyright\"]=2537024;var _inflate_copyright=Module[\"_inflate_copyright\"]=2542704;var _jpeg_natural_order=Module[\"_jpeg_natural_order\"]=2553840;var _jpeg_natural_order2=Module[\"_jpeg_natural_order2\"]=2555056;var _jpeg_natural_order3=Module[\"_jpeg_natural_order3\"]=2554944;var _jpeg_natural_order4=Module[\"_jpeg_natural_order4\"]=2554816;var _jpeg_natural_order5=Module[\"_jpeg_natural_order5\"]=2554640;var _jpeg_natural_order6=Module[\"_jpeg_natural_order6\"]=2554432;var _jpeg_natural_order7=Module[\"_jpeg_natural_order7\"]=2554160;var _jpeg_std_message_table=Module[\"_jpeg_std_message_table\"]=3089168;var _jpeg_aritab=Module[\"_jpeg_aritab\"]=2553008;var _af_script_classes=Module[\"_af_script_classes\"]=3090288;var _af_blue_stringsets=Module[\"_af_blue_stringsets\"]=2556320;var _af_blue_strings=Module[\"_af_blue_strings\"]=2555552;var _af_style_classes=Module[\"_af_style_classes\"]=3090384;var _af_writing_system_classes=Module[\"_af_writing_system_classes\"]=3090256;var _af_arab_dflt_style_class=Module[\"_af_arab_dflt_style_class\"]=2556696;var _af_arab_script_class=Module[\"_af_arab_script_class\"]=3089692;var _af_arab_uniranges=Module[\"_af_arab_uniranges\"]=2557680;var _af_cyrl_script_class=Module[\"_af_cyrl_script_class\"]=3089712;var _af_cyrl_uniranges=Module[\"_af_cyrl_uniranges\"]=2557744;var _af_deva_script_class=Module[\"_af_deva_script_class\"]=3089732;var _af_deva_uniranges=Module[\"_af_deva_uniranges\"]=2557792;var _af_grek_script_class=Module[\"_af_grek_script_class\"]=3089752;var _af_grek_uniranges=Module[\"_af_grek_uniranges\"]=2557840;var _af_hebr_script_class=Module[\"_af_hebr_script_class\"]=3089772;var _af_hebr_uniranges=Module[\"_af_hebr_uniranges\"]=2557872;var _af_latn_script_class=Module[\"_af_latn_script_class\"]=3089792;var _af_latn_uniranges=Module[\"_af_latn_uniranges\"]=2557904;var _af_none_script_class=Module[\"_af_none_script_class\"]=3089812;var _af_none_uniranges=Module[\"_af_none_uniranges\"]=2558096;var _af_telu_script_class=Module[\"_af_telu_script_class\"]=3089832;var _af_telu_uniranges=Module[\"_af_telu_uniranges\"]=2558112;var _af_thai_script_class=Module[\"_af_thai_script_class\"]=3089852;var _af_thai_uniranges=Module[\"_af_thai_uniranges\"]=2558128;var _af_beng_script_class=Module[\"_af_beng_script_class\"]=3089872;var _af_beng_uniranges=Module[\"_af_beng_uniranges\"]=2558144;var _af_gujr_script_class=Module[\"_af_gujr_script_class\"]=3089892;var _af_gujr_uniranges=Module[\"_af_gujr_uniranges\"]=2558160;var _af_guru_script_class=Module[\"_af_guru_script_class\"]=3089912;var _af_guru_uniranges=Module[\"_af_guru_uniranges\"]=2558176;var _af_knda_script_class=Module[\"_af_knda_script_class\"]=3089932;var _af_knda_uniranges=Module[\"_af_knda_uniranges\"]=2558192;var _af_limb_script_class=Module[\"_af_limb_script_class\"]=3089952;var _af_limb_uniranges=Module[\"_af_limb_uniranges\"]=2558208;var _af_mlym_script_class=Module[\"_af_mlym_script_class\"]=3089972;var _af_mlym_uniranges=Module[\"_af_mlym_uniranges\"]=2558224;var _af_orya_script_class=Module[\"_af_orya_script_class\"]=3089992;var _af_orya_uniranges=Module[\"_af_orya_uniranges\"]=2558240;var _af_sinh_script_class=Module[\"_af_sinh_script_class\"]=3090012;var _af_sinh_uniranges=Module[\"_af_sinh_uniranges\"]=2558256;var _af_sund_script_class=Module[\"_af_sund_script_class\"]=3090032;var _af_sund_uniranges=Module[\"_af_sund_uniranges\"]=2558272;var _af_sylo_script_class=Module[\"_af_sylo_script_class\"]=3090052;var _af_sylo_uniranges=Module[\"_af_sylo_uniranges\"]=2558288;var _af_taml_script_class=Module[\"_af_taml_script_class\"]=3090072;var _af_taml_uniranges=Module[\"_af_taml_uniranges\"]=2558304;var _af_tibt_script_class=Module[\"_af_tibt_script_class\"]=3090092;var _af_tibt_uniranges=Module[\"_af_tibt_uniranges\"]=2558320;var _af_hani_script_class=Module[\"_af_hani_script_class\"]=3090112;var _af_hani_uniranges=Module[\"_af_hani_uniranges\"]=2558336;var _af_cyrl_c2cp_style_class=Module[\"_af_cyrl_c2cp_style_class\"]=2556716;var _af_cyrl_c2sc_style_class=Module[\"_af_cyrl_c2sc_style_class\"]=2556736;var _af_cyrl_ordn_style_class=Module[\"_af_cyrl_ordn_style_class\"]=2556756;var _af_cyrl_pcap_style_class=Module[\"_af_cyrl_pcap_style_class\"]=2556776;var _af_cyrl_sinf_style_class=Module[\"_af_cyrl_sinf_style_class\"]=2556796;var _af_cyrl_smcp_style_class=Module[\"_af_cyrl_smcp_style_class\"]=2556816;var _af_cyrl_subs_style_class=Module[\"_af_cyrl_subs_style_class\"]=2556836;var _af_cyrl_sups_style_class=Module[\"_af_cyrl_sups_style_class\"]=2556856;var _af_cyrl_titl_style_class=Module[\"_af_cyrl_titl_style_class\"]=2556876;var _af_cyrl_dflt_style_class=Module[\"_af_cyrl_dflt_style_class\"]=2556896;var _af_grek_c2cp_style_class=Module[\"_af_grek_c2cp_style_class\"]=2556916;var _af_grek_c2sc_style_class=Module[\"_af_grek_c2sc_style_class\"]=2556936;var _af_grek_ordn_style_class=Module[\"_af_grek_ordn_style_class\"]=2556956;var _af_grek_pcap_style_class=Module[\"_af_grek_pcap_style_class\"]=2556976;var _af_grek_sinf_style_class=Module[\"_af_grek_sinf_style_class\"]=2556996;var _af_grek_smcp_style_class=Module[\"_af_grek_smcp_style_class\"]=2557016;var _af_grek_subs_style_class=Module[\"_af_grek_subs_style_class\"]=2557036;var _af_grek_sups_style_class=Module[\"_af_grek_sups_style_class\"]=2557056;var _af_grek_titl_style_class=Module[\"_af_grek_titl_style_class\"]=2557076;var _af_grek_dflt_style_class=Module[\"_af_grek_dflt_style_class\"]=2557096;var _af_hebr_dflt_style_class=Module[\"_af_hebr_dflt_style_class\"]=2557116;var _af_latn_c2cp_style_class=Module[\"_af_latn_c2cp_style_class\"]=2557136;var _af_latn_c2sc_style_class=Module[\"_af_latn_c2sc_style_class\"]=2557156;var _af_latn_ordn_style_class=Module[\"_af_latn_ordn_style_class\"]=2557176;var _af_latn_pcap_style_class=Module[\"_af_latn_pcap_style_class\"]=2557196;var _af_latn_sinf_style_class=Module[\"_af_latn_sinf_style_class\"]=2557216;var _af_latn_smcp_style_class=Module[\"_af_latn_smcp_style_class\"]=2557236;var _af_latn_subs_style_class=Module[\"_af_latn_subs_style_class\"]=2557256;var _af_latn_sups_style_class=Module[\"_af_latn_sups_style_class\"]=2557276;var _af_latn_titl_style_class=Module[\"_af_latn_titl_style_class\"]=2557296;var _af_latn_dflt_style_class=Module[\"_af_latn_dflt_style_class\"]=2557316;var _af_deva_dflt_style_class=Module[\"_af_deva_dflt_style_class\"]=2557336;var _af_none_dflt_style_class=Module[\"_af_none_dflt_style_class\"]=2557356;var _af_telu_dflt_style_class=Module[\"_af_telu_dflt_style_class\"]=2557376;var _af_thai_dflt_style_class=Module[\"_af_thai_dflt_style_class\"]=2557396;var _af_beng_dflt_style_class=Module[\"_af_beng_dflt_style_class\"]=2557416;var _af_gujr_dflt_style_class=Module[\"_af_gujr_dflt_style_class\"]=2557436;var _af_guru_dflt_style_class=Module[\"_af_guru_dflt_style_class\"]=2557456;var _af_knda_dflt_style_class=Module[\"_af_knda_dflt_style_class\"]=2557476;var _af_limb_dflt_style_class=Module[\"_af_limb_dflt_style_class\"]=2557496;var _af_mlym_dflt_style_class=Module[\"_af_mlym_dflt_style_class\"]=2557516;var _af_orya_dflt_style_class=Module[\"_af_orya_dflt_style_class\"]=2557536;var _af_sinh_dflt_style_class=Module[\"_af_sinh_dflt_style_class\"]=2557556;var _af_sund_dflt_style_class=Module[\"_af_sund_dflt_style_class\"]=2557576;var _af_sylo_dflt_style_class=Module[\"_af_sylo_dflt_style_class\"]=2557596;var _af_taml_dflt_style_class=Module[\"_af_taml_dflt_style_class\"]=2557616;var _af_tibt_dflt_style_class=Module[\"_af_tibt_dflt_style_class\"]=2557636;var _af_hani_dflt_style_class=Module[\"_af_hani_dflt_style_class\"]=2557656;var _af_dummy_writing_system_class=Module[\"_af_dummy_writing_system_class\"]=3090132;var _af_latin_writing_system_class=Module[\"_af_latin_writing_system_class\"]=3090160;var _af_cjk_writing_system_class=Module[\"_af_cjk_writing_system_class\"]=3090188;var _af_indic_writing_system_class=Module[\"_af_indic_writing_system_class\"]=3090216;var _af_autofitter_interface=Module[\"_af_autofitter_interface\"]=3090584;var _autofit_module_class=Module[\"_autofit_module_class\"]=3090600;var _ft_bitmap_glyph_class=Module[\"_ft_bitmap_glyph_class\"]=3090688;var _ft_outline_glyph_class=Module[\"_ft_outline_glyph_class\"]=3090720;var _tt_driver_class=Module[\"_tt_driver_class\"]=3098564;var _t1_driver_class=Module[\"_t1_driver_class\"]=3098784;var _cff_driver_class=Module[\"_cff_driver_class\"]=3092532;var _t1cid_driver_class=Module[\"_t1cid_driver_class\"]=3094304;var _pfr_driver_class=Module[\"_pfr_driver_class\"]=3096528;var _t42_driver_class=Module[\"_t42_driver_class\"]=3100684;var _winfnt_driver_class=Module[\"_winfnt_driver_class\"]=3101584;var _pcf_driver_class=Module[\"_pcf_driver_class\"]=3096316;var _psaux_module_class=Module[\"_psaux_module_class\"]=3096988;var _psnames_module_class=Module[\"_psnames_module_class\"]=3097400;var _pshinter_module_class=Module[\"_pshinter_module_class\"]=3097332;var _ft_raster1_renderer_class=Module[\"_ft_raster1_renderer_class\"]=3097480;var _sfnt_module_class=Module[\"_sfnt_module_class\"]=3098124;var _ft_smooth_renderer_class=Module[\"_ft_smooth_renderer_class\"]=3098360;var _ft_smooth_lcd_renderer_class=Module[\"_ft_smooth_lcd_renderer_class\"]=3098420;var _ft_smooth_lcdv_renderer_class=Module[\"_ft_smooth_lcdv_renderer_class\"]=3098480;var _bdf_driver_class=Module[\"_bdf_driver_class\"]=3090824;var _cff_cmap_unicode_class_rec=Module[\"_cff_cmap_unicode_class_rec\"]=3092668;var _cff_cmap_encoding_class_rec=Module[\"_cff_cmap_encoding_class_rec\"]=3092628;var _pfr_cmap_class_rec=Module[\"_pfr_cmap_class_rec\"]=3096488;var _ps_table_funcs=Module[\"_ps_table_funcs\"]=3096660;var _ps_parser_funcs=Module[\"_ps_parser_funcs\"]=3096676;var _t1_builder_funcs=Module[\"_t1_builder_funcs\"]=3096728;var _t1_decoder_funcs=Module[\"_t1_decoder_funcs\"]=3096760;var _afm_parser_funcs=Module[\"_afm_parser_funcs\"]=3096772;var _t1_cmap_standard_class_rec=Module[\"_t1_cmap_standard_class_rec\"]=3096784;var _t1_cmap_expert_class_rec=Module[\"_t1_cmap_expert_class_rec\"]=3096824;var _t1_cmap_custom_class_rec=Module[\"_t1_cmap_custom_class_rec\"]=3096864;var _t1_cmap_unicode_class_rec=Module[\"_t1_cmap_unicode_class_rec\"]=3096904;var _t1_cmap_classes=Module[\"_t1_cmap_classes\"]=3096944;var _ft_standard_raster=Module[\"_ft_standard_raster\"]=3097456;var _tt_cmap0_class_rec=Module[\"_tt_cmap0_class_rec\"]=3097540;var _tt_cmap2_class_rec=Module[\"_tt_cmap2_class_rec\"]=3097592;var _tt_cmap4_class_rec=Module[\"_tt_cmap4_class_rec\"]=3097644;var _tt_cmap6_class_rec=Module[\"_tt_cmap6_class_rec\"]=3097696;var _tt_cmap8_class_rec=Module[\"_tt_cmap8_class_rec\"]=3097748;var _tt_cmap10_class_rec=Module[\"_tt_cmap10_class_rec\"]=3097800;var _tt_cmap12_class_rec=Module[\"_tt_cmap12_class_rec\"]=3097852;var _tt_cmap13_class_rec=Module[\"_tt_cmap13_class_rec\"]=3097904;var _tt_cmap14_class_rec=Module[\"_tt_cmap14_class_rec\"]=3097956;var _ft_grays_raster=Module[\"_ft_grays_raster\"]=3098336;var _tt_default_graphics_state=Module[\"_tt_default_graphics_state\"]=2634636;var ___environ=Module[\"___environ\"]=3258212;var ___progname=Module[\"___progname\"]=3254300;var ___progname_full=Module[\"___progname_full\"]=3254304;var ___libc=Module[\"___libc\"]=3254308;var ___hwcap=Module[\"___hwcap\"]=3254372;var ___sysinfo=Module[\"___sysinfo\"]=3254376;var _program_invocation_short_name=Module[\"_program_invocation_short_name\"]=3254300;var _program_invocation_name=Module[\"_program_invocation_name\"]=3254304;var ___optreset=Module[\"___optreset\"]=3254728;var _optind=Module[\"_optind\"]=3102936;var ___optpos=Module[\"___optpos\"]=3254732;var _optarg=Module[\"_optarg\"]=3254736;var _optopt=Module[\"_optopt\"]=3254740;var _opterr=Module[\"_opterr\"]=3102940;var _optreset=Module[\"_optreset\"]=3254728;var _h_errno=Module[\"_h_errno\"]=3254820;var __ns_flagdata=Module[\"__ns_flagdata\"]=2663328;var ___fsmu8=Module[\"___fsmu8\"]=2677136;var ___pio2_hi=Module[\"___pio2_hi\"]=2679952;var ___pio2_lo=Module[\"___pio2_lo\"]=2679968;var ___signgam=Module[\"___signgam\"]=3255764;var _atanlo=Module[\"_atanlo\"]=2688560;var _atanhi=Module[\"_atanhi\"]=2688496;var _aT=Module[\"_aT\"]=2688624;var _signgam=Module[\"_signgam\"]=3255764;var ___seed48=Module[\"___seed48\"]=3103088;var ___stdin_used=Module[\"___stdin_used\"]=3103700;var ___stdout_used=Module[\"___stdout_used\"]=3103396;var ___stderr_used=Module[\"___stderr_used\"]=3103548;var ___c_locale=Module[\"___c_locale\"]=2691364;var ___c_dot_utf8_locale=Module[\"___c_dot_utf8_locale\"]=3103788;var ___c_dot_utf8=Module[\"___c_dot_utf8\"]=3103760;var ____environ=Module[\"____environ\"]=3258212;var __environ=Module[\"__environ\"]=3258212;var ___env_map=Module[\"___env_map\"]=3258220;var _tzname=Module[\"_tzname\"]=3258224;var _daylight=Module[\"_daylight\"]=3258232;var _timezone=Module[\"_timezone\"]=3258236;var ___data_end=Module[\"___data_end\"]=3269696;var ___dso_handle=Module[\"___dso_handle\"]=1024;var ___cxa_unexpected_handler=Module[\"___cxa_unexpected_handler\"]=3112984;var ___cxa_terminate_handler=Module[\"___cxa_terminate_handler\"]=3112980;var ___cxa_new_handler=Module[\"___cxa_new_handler\"]=3268676;var _in6addr_any=Module[\"_in6addr_any\"]=2843564;var _in6addr_loopback=Module[\"_in6addr_loopback\"]=2843580;var ___start_em_js=Module[\"___start_em_js\"]=3119268;var ___stop_em_js=Module[\"___stop_em_js\"]=3168710;function invoke_viiii(index,a1,a2,a3,a4){var sp=stackSave();try{dynCall(\"viiii\",index,[a1,a2,a3,a4])}catch(e){stackRestore(sp);if(e!==e+0&&e!==\"longjmp\")throw e;_setThrew(1,0)}}function invoke_iii(index,a1,a2){var sp=stackSave();try{return dynCall(\"iii\",index,[a1,a2])}catch(e){stackRestore(sp);if(e!==e+0&&e!==\"longjmp\")throw e;_setThrew(1,0)}}function invoke_vii(index,a1,a2){var sp=stackSave();try{dynCall(\"vii\",index,[a1,a2])}catch(e){stackRestore(sp);if(e!==e+0&&e!==\"longjmp\")throw e;_setThrew(1,0)}}function invoke_ii(index,a1){var sp=stackSave();try{return dynCall(\"ii\",index,[a1])}catch(e){stackRestore(sp);if(e!==e+0&&e!==\"longjmp\")throw e;_setThrew(1,0)}}function invoke_vi(index,a1){var sp=stackSave();try{dynCall(\"vi\",index,[a1])}catch(e){stackRestore(sp);if(e!==e+0&&e!==\"longjmp\")throw e;_setThrew(1,0)}}function invoke_iiiii(index,a1,a2,a3,a4){var sp=stackSave();try{return dynCall(\"iiiii\",index,[a1,a2,a3,a4])}catch(e){stackRestore(sp);if(e!==e+0&&e!==\"longjmp\")throw e;_setThrew(1,0)}}function invoke_iiii(index,a1,a2,a3){var sp=stackSave();try{return dynCall(\"iiii\",index,[a1,a2,a3])}catch(e){stackRestore(sp);if(e!==e+0&&e!==\"longjmp\")throw e;_setThrew(1,0)}}Module[\"allocate\"]=allocate;Module[\"addRunDependency\"]=addRunDependency;Module[\"removeRunDependency\"]=removeRunDependency;Module[\"FS_createPath\"]=FS.createPath;Module[\"FS_createDataFile\"]=FS.createDataFile;Module[\"FS_createPreloadedFile\"]=FS.createPreloadedFile;Module[\"FS_createLazyFile\"]=FS.createLazyFile;Module[\"FS_createDevice\"]=FS.createDevice;Module[\"FS_unlink\"]=FS.unlink;Module[\"LZ4\"]=LZ4;var calledRun;function ExitStatus(status){this.name=\"ExitStatus\";this.message=\"Program terminated with exit(\"+status+\")\";this.status=status}var calledMain=false;dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function callMain(args){var entryFunction=Module[\"_main\"];if(!entryFunction)return;args=args||[];var argc=args.length+1;var argv=stackAlloc((argc+1)*4);HEAP32[argv>>2]=allocateUTF8OnStack(thisProgram);for(var i=1;i<argc;i++){HEAP32[(argv>>2)+i]=allocateUTF8OnStack(args[i-1])}HEAP32[(argv>>2)+argc]=0;try{var ret=entryFunction(argc,argv);exit(ret,true)}catch(e){if(e instanceof ExitStatus){return}else if(e==\"unwind\"){return}else{var toLog=e;if(e&&typeof e===\"object\"&&e.stack){toLog=[e,e.stack]}err(\"exception thrown: \"+toLog);quit_(1,e)}}finally{calledMain=true}}var dylibsLoaded=false;function run(args){args=args||arguments_;if(runDependencies>0){return}if(!dylibsLoaded){preloadDylibs();dylibsLoaded=true;if(runDependencies>0){return}}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module[\"calledRun\"]=true;if(ABORT)return;initRuntime();preMain();readyPromiseResolve(Module);if(Module[\"onRuntimeInitialized\"])Module[\"onRuntimeInitialized\"]();if(shouldRunNow)callMain(args);postRun()}if(Module[\"setStatus\"]){Module[\"setStatus\"](\"Running...\");setTimeout(function(){setTimeout(function(){Module[\"setStatus\"](\"\")},1);doRun()},1)}else{doRun()}}Module[\"run\"]=run;function exit(status,implicit){EXITSTATUS=status;if(implicit&&keepRuntimeAlive()&&status===0){return}if(keepRuntimeAlive()){}else{exitRuntime();if(Module[\"onExit\"])Module[\"onExit\"](status);ABORT=true}quit_(status,new ExitStatus(status))}if(Module[\"preInit\"]){if(typeof Module[\"preInit\"]==\"function\")Module[\"preInit\"]=[Module[\"preInit\"]];while(Module[\"preInit\"].length>0){Module[\"preInit\"].pop()()}}var shouldRunNow=true;if(Module[\"noInitialRun\"])shouldRunNow=false;run();\n\n\n  return _createPyodideModule.ready\n}\n);\n})();\nif (typeof exports === 'object' && typeof module === 'object')\n  module.exports = _createPyodideModule;\nelse if (typeof define === 'function' && define['amd'])\n  define([], function() { return _createPyodideModule; });\nelse if (typeof exports === 'object')\n  exports[\"_createPyodideModule\"] = _createPyodideModule;\nglobalThis._createPyodideModule = _createPyodideModule;\n"
  },
  {
    "path": "pyp5js/http_local/static/js/pyodide/pyodide.js.map",
    "content": "{\"version\":3,\"file\":\"pyodide.js\",\"sources\":[\"../src/js/module.js\",\"../src/js/load-pyodide.js\",\"../src/js/pyproxy.gen.js\",\"../src/js/api.js\",\"../src/js/pyodide.js\"],\"sourcesContent\":[\"/**\\n * The Emscripten Module.\\n *\\n * @private @type {import('emscripten').Module}\\n */\\nexport let Module = {};\\nModule.noImageDecoding = true;\\nModule.noAudioDecoding = true;\\nModule.noWasmDecoding = false; // we preload wasm using the built in plugin now\\nModule.preloadedWasm = {};\\n\\n/**\\n *\\n * @param {undefined|(() => string)} stdin\\n * @param {undefined|((text: string) => void)} stdout\\n * @param {undefined|((text: string) => void)} stderr\\n */\\nexport function setStandardStreams(stdin, stdout, stderr) {\\n  // For stdout and stderr, emscripten provides convenient wrappers that save us the trouble of converting the bytes into a string\\n  if (stdout) {\\n    Module.print = stdout;\\n  }\\n\\n  if (stderr) {\\n    Module.printErr = stderr;\\n  }\\n\\n  // For stdin, we have to deal with the low level API ourselves\\n  if (stdin) {\\n    Module.preRun = [\\n      function () {\\n        Module.FS.init(createStdinWrapper(stdin), null, null);\\n      },\\n    ];\\n  }\\n}\\n\\nfunction createStdinWrapper(stdin) {\\n  // When called, it asks the user for one whole line of input (stdin)\\n  // Then, it passes the individual bytes of the input to emscripten, one after another.\\n  // And finally, it terminates it with null.\\n  const encoder = new TextEncoder();\\n  let input = new Uint8Array(0);\\n  let inputIndex = -1; // -1 means that we just returned null\\n  function stdinWrapper() {\\n    try {\\n      if (inputIndex === -1) {\\n        let text = stdin();\\n        if (text === undefined || text === null) {\\n          return null;\\n        }\\n        if (typeof text !== \\\"string\\\") {\\n          throw new TypeError(\\n            `Expected stdin to return string, null, or undefined, got type ${typeof text}.`\\n          );\\n        }\\n        if (!text.endsWith(\\\"\\\\n\\\")) {\\n          text += \\\"\\\\n\\\";\\n        }\\n        input = encoder.encode(text);\\n        inputIndex = 0;\\n      }\\n\\n      if (inputIndex < input.length) {\\n        let character = input[inputIndex];\\n        inputIndex++;\\n        return character;\\n      } else {\\n        inputIndex = -1;\\n        return null;\\n      }\\n    } catch (e) {\\n      // emscripten will catch this and set an IOError which is unhelpful for\\n      // debugging.\\n      console.error(\\\"Error thrown in stdin:\\\");\\n      console.error(e);\\n      throw e;\\n    }\\n  }\\n  return stdinWrapper;\\n}\\n\",\"import { Module } from \\\"./module.js\\\";\\n\\nconst IN_NODE =\\n  typeof process !== \\\"undefined\\\" && process.release.name !== \\\"undefined\\\";\\n\\n/** @typedef {import('./pyproxy.js').PyProxy} PyProxy */\\n/** @private */\\nlet baseURL;\\n/**\\n * @param {string} indexURL\\n * @private\\n */\\nexport async function initializePackageIndex(indexURL) {\\n  baseURL = indexURL;\\n  let package_json;\\n  if (IN_NODE) {\\n    const fsPromises = await import(\\\"fs/promises\\\");\\n    const package_string = await fsPromises.readFile(\\n      `${indexURL}packages.json`\\n    );\\n    package_json = JSON.parse(package_string);\\n  } else {\\n    let response = await fetch(`${indexURL}packages.json`);\\n    package_json = await response.json();\\n  }\\n  if (!package_json.packages) {\\n    throw new Error(\\n      \\\"Loaded packages.json does not contain the expected key 'packages'.\\\"\\n    );\\n  }\\n  Module.packages = package_json.packages;\\n\\n  // compute the inverted index for imports to package names\\n  Module._import_name_to_package_name = new Map();\\n  for (let name of Object.keys(Module.packages)) {\\n    for (let import_name of Module.packages[name].imports) {\\n      Module._import_name_to_package_name.set(import_name, name);\\n    }\\n  }\\n}\\n\\n////////////////////////////////////////////////////////////\\n// Package loading\\nconst DEFAULT_CHANNEL = \\\"default channel\\\";\\n\\n// Regexp for validating package name and URI\\nconst package_uri_regexp = /^.*?([^\\\\/]*)\\\\.js$/;\\n\\nfunction _uri_to_package_name(package_uri) {\\n  let match = package_uri_regexp.exec(package_uri);\\n  if (match) {\\n    return match[1].toLowerCase();\\n  }\\n}\\n\\n/**\\n * @param {string) url\\n * @async\\n * @private\\n */\\nexport let loadScript;\\nif (globalThis.document) {\\n  // browser\\n  loadScript = (url) => import(url);\\n} else if (globalThis.importScripts) {\\n  // webworker\\n  loadScript = async (url) => {\\n    // This is async only for consistency\\n    globalThis.importScripts(url);\\n  };\\n} else if (typeof process !== \\\"undefined\\\" && process.release.name === \\\"node\\\") {\\n  const pathPromise = import(\\\"path\\\").then((M) => M.default);\\n  const fetchPromise = import(\\\"node-fetch\\\").then((M) => M.default);\\n  const vmPromise = import(\\\"vm\\\").then((M) => M.default);\\n  loadScript = async (url) => {\\n    if (url.includes(\\\"://\\\")) {\\n      // If it's a url, have to load it with fetch and then eval it.\\n      const fetch = await fetchPromise;\\n      const vm = await vmPromise;\\n      vm.runInThisContext(await (await fetch(url)).text());\\n    } else {\\n      // Otherwise, hopefully it is a relative path we can load from the file\\n      // system.\\n      const path = await pathPromise;\\n      await import(path.resolve(url));\\n    }\\n  };\\n} else {\\n  throw new Error(\\\"Cannot determine runtime environment\\\");\\n}\\n\\nfunction recursiveDependencies(\\n  names,\\n  _messageCallback,\\n  errorCallback,\\n  sharedLibsOnly\\n) {\\n  const toLoad = new Map();\\n\\n  const addPackage = (name) => {\\n    name = name.toLowerCase();\\n    if (toLoad.has(name)) {\\n      return;\\n    }\\n    toLoad.set(name, DEFAULT_CHANNEL);\\n    // If the package is already loaded, we don't add dependencies, but warn\\n    // the user later. This is especially important if the loaded package is\\n    // from a custom url, in which case adding dependencies is wrong.\\n    if (loadedPackages[name] !== undefined) {\\n      return;\\n    }\\n    for (let dep_name of Module.packages[name].depends) {\\n      addPackage(dep_name);\\n    }\\n  };\\n  for (let name of names) {\\n    const pkgname = _uri_to_package_name(name);\\n    if (toLoad.has(pkgname) && toLoad.get(pkgname) !== name) {\\n      errorCallback(\\n        `Loading same package ${pkgname} from ${name} and ${toLoad.get(\\n          pkgname\\n        )}`\\n      );\\n      continue;\\n    }\\n    if (pkgname !== undefined) {\\n      toLoad.set(pkgname, name);\\n      continue;\\n    }\\n    name = name.toLowerCase();\\n    if (name in Module.packages) {\\n      addPackage(name);\\n      continue;\\n    }\\n    errorCallback(`Skipping unknown package '${name}'`);\\n  }\\n  if (sharedLibsOnly) {\\n    let onlySharedLibs = new Map();\\n    for (let c of toLoad) {\\n      let name = c[0];\\n      if (Module.packages[name].shared_library) {\\n        onlySharedLibs.set(name, toLoad.get(name));\\n      }\\n    }\\n    return onlySharedLibs;\\n  }\\n  return toLoad;\\n}\\n\\nasync function _loadPackage(names, messageCallback, errorCallback) {\\n  // toLoad is a map pkg_name => pkg_uri\\n  let toLoad = recursiveDependencies(names, messageCallback, errorCallback);\\n\\n  // locateFile is the function used by the .js file to locate the .data\\n  // file given the filename\\n  Module.locateFile = (path) => {\\n    // handle packages loaded from custom URLs\\n    let pkg = path.replace(/\\\\.data$/, \\\"\\\");\\n    if (toLoad.has(pkg)) {\\n      let package_uri = toLoad.get(pkg);\\n      if (package_uri != DEFAULT_CHANNEL) {\\n        return package_uri.replace(/\\\\.js$/, \\\".data\\\");\\n      }\\n    }\\n    return baseURL + path;\\n  };\\n\\n  if (toLoad.size === 0) {\\n    return Promise.resolve(\\\"No new packages to load\\\");\\n  } else {\\n    let packageNames = Array.from(toLoad.keys()).join(\\\", \\\");\\n    messageCallback(`Loading ${packageNames}`);\\n  }\\n\\n  // This is a collection of promises that resolve when the package's JS file\\n  // is loaded. The promises already handle error and never fail.\\n  let scriptPromises = [];\\n\\n  for (let [pkg, uri] of toLoad) {\\n    let loaded = loadedPackages[pkg];\\n    if (loaded !== undefined) {\\n      // If uri is from the DEFAULT_CHANNEL, we assume it was added as a\\n      // depedency, which was previously overridden.\\n      if (loaded === uri || uri === DEFAULT_CHANNEL) {\\n        messageCallback(`${pkg} already loaded from ${loaded}`);\\n        continue;\\n      } else {\\n        errorCallback(\\n          `URI mismatch, attempting to load package ${pkg} from ${uri} ` +\\n            `while it is already loaded from ${loaded}. To override a dependency, ` +\\n            `load the custom package first.`\\n        );\\n        continue;\\n      }\\n    }\\n    let pkgname = (Module.packages[pkg] && Module.packages[pkg].name) || pkg;\\n    let scriptSrc = uri === DEFAULT_CHANNEL ? `${baseURL}${pkgname}.js` : uri;\\n    messageCallback(`Loading ${pkg} from ${scriptSrc}`);\\n    scriptPromises.push(\\n      loadScript(scriptSrc).catch((e) => {\\n        errorCallback(`Couldn't load package from URL ${scriptSrc}`, e);\\n        toLoad.delete(pkg);\\n      })\\n    );\\n  }\\n\\n  // When the JS loads, it synchronously adds a runDependency to emscripten.\\n  // It then loads the data file, and removes the runDependency from\\n  // emscripten. This function returns a promise that resolves when there are\\n  // no pending runDependencies.\\n  function waitRunDependency() {\\n    const promise = new Promise((r) => {\\n      Module.monitorRunDependencies = (n) => {\\n        if (n === 0) {\\n          r();\\n        }\\n      };\\n    });\\n    // If there are no pending dependencies left, monitorRunDependencies will\\n    // never be called. Since we can't check the number of dependencies,\\n    // manually trigger a call.\\n    Module.addRunDependency(\\\"dummy\\\");\\n    Module.removeRunDependency(\\\"dummy\\\");\\n    return promise;\\n  }\\n\\n  // We must start waiting for runDependencies *after* all the JS files are\\n  // loaded, since the number of runDependencies may happen to equal zero\\n  // between package files loading.\\n  try {\\n    await Promise.all(scriptPromises).then(waitRunDependency);\\n  } finally {\\n    delete Module.monitorRunDependencies;\\n  }\\n\\n  let packageList = [];\\n  for (let [pkg, uri] of toLoad) {\\n    loadedPackages[pkg] = uri;\\n    packageList.push(pkg);\\n  }\\n\\n  let resolveMsg;\\n  if (packageList.length > 0) {\\n    let packageNames = packageList.join(\\\", \\\");\\n    resolveMsg = `Loaded ${packageNames}`;\\n  } else {\\n    resolveMsg = \\\"No packages loaded\\\";\\n  }\\n\\n  Module.reportUndefinedSymbols();\\n\\n  messageCallback(resolveMsg);\\n\\n  // We have to invalidate Python's import caches, or it won't\\n  // see the new files.\\n  Module.runPythonSimple(\\n    \\\"import importlib\\\\n\\\" + \\\"importlib.invalidate_caches()\\\\n\\\"\\n  );\\n}\\n\\n// This is a promise that is resolved iff there are no pending package loads.\\n// It never fails.\\nlet _package_lock = Promise.resolve();\\n\\n/**\\n * An async lock for package loading. Prevents race conditions in loadPackage.\\n * @returns A zero argument function that releases the lock.\\n * @private\\n */\\nasync function acquirePackageLock() {\\n  let old_lock = _package_lock;\\n  let releaseLock;\\n  _package_lock = new Promise((resolve) => (releaseLock = resolve));\\n  await old_lock;\\n  return releaseLock;\\n}\\n\\n/**\\n *\\n * The list of packages that Pyodide has loaded.\\n * Use ``Object.keys(pyodide.loadedPackages)`` to get the list of names of\\n * loaded packages, and ``pyodide.loadedPackages[package_name]`` to access\\n * install location for a particular ``package_name``.\\n *\\n * @type {object}\\n */\\nexport let loadedPackages = {};\\n\\n/**\\n * @callback LogFn\\n * @param {string} msg\\n * @returns {void}\\n * @private\\n */\\n\\n/**\\n * Load a package or a list of packages over the network. This installs the\\n * package in the virtual filesystem. The package needs to be imported from\\n * Python before it can be used.\\n * @param {string | string[] | PyProxy} names Either a single package name or URL\\n * or a list of them. URLs can be absolute or relative. The URLs must have\\n * file name\\n * ``<package-name>.js`` and there must be a file called\\n * ``<package-name>.data`` in the same directory. The argument can be a\\n * ``PyProxy`` of a list, in which case the list will be converted to\\n * Javascript and the ``PyProxy`` will be destroyed.\\n * @param {LogFn=} messageCallback A callback, called with progress messages\\n *    (optional)\\n * @param {LogFn=} errorCallback A callback, called with error/warning\\n *    messages (optional)\\n * @async\\n */\\nexport async function loadPackage(names, messageCallback, errorCallback) {\\n  if (Module.isPyProxy(names)) {\\n    let temp;\\n    try {\\n      temp = names.toJs();\\n    } finally {\\n      names.destroy();\\n    }\\n    names = temp;\\n  }\\n\\n  if (!Array.isArray(names)) {\\n    names = [names];\\n  }\\n  // get shared library packages and load those first\\n  // otherwise bad things happen with linking them in firefox.\\n  let sharedLibraryNames = [];\\n  try {\\n    let sharedLibraryPackagesToLoad = recursiveDependencies(\\n      names,\\n      messageCallback,\\n      errorCallback,\\n      true\\n    );\\n    for (let pkg of sharedLibraryPackagesToLoad) {\\n      sharedLibraryNames.push(pkg[0]);\\n    }\\n  } catch (e) {\\n    // do nothing - let the main load throw any errors\\n  }\\n  // override the load plugin so that it imports any dlls also\\n  // this only needs to be done for shared library packages because\\n  // we assume that if a package depends on a shared library\\n  // it needs to have access to it.\\n  // not needed for so in standard module because those are linked together\\n  // correctly, it is only where linking goes across modules that it needs to\\n  // be done. Hence we only put this extra preload plugin in during the shared\\n  // library load\\n  let oldPlugin;\\n  for (let p in Module.preloadPlugins) {\\n    if (Module.preloadPlugins[p].canHandle(\\\"test.so\\\")) {\\n      oldPlugin = Module.preloadPlugins[p];\\n      break;\\n    }\\n  }\\n  let dynamicLoadHandler = {\\n    get: function (obj, prop) {\\n      if (prop === \\\"handle\\\") {\\n        return function (bytes, name) {\\n          obj[prop].apply(obj, arguments);\\n          this[\\\"asyncWasmLoadPromise\\\"] = this[\\\"asyncWasmLoadPromise\\\"].then(\\n            function () {\\n              Module.loadDynamicLibrary(name, {\\n                global: true,\\n                nodelete: true,\\n              });\\n            }\\n          );\\n        };\\n      } else {\\n        return obj[prop];\\n      }\\n    },\\n  };\\n  var loadPluginOverride = new Proxy(oldPlugin, dynamicLoadHandler);\\n  // restore the preload plugin\\n  Module.preloadPlugins.unshift(loadPluginOverride);\\n\\n  let releaseLock = await acquirePackageLock();\\n  try {\\n    await _loadPackage(\\n      sharedLibraryNames,\\n      messageCallback || console.log,\\n      errorCallback || console.error\\n    );\\n    Module.preloadPlugins.shift(loadPluginOverride);\\n    await _loadPackage(\\n      names,\\n      messageCallback || console.log,\\n      errorCallback || console.error\\n    );\\n  } finally {\\n    releaseLock();\\n  }\\n}\\n\",\"// This file is generated by applying the C preprocessor to core/pyproxy.js\\n// It uses the macros defined in core/pyproxy.c\\n// Do not edit it directly!\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n/**\\n * Every public Python entrypoint goes through this file! The main entrypoint is\\n * the callPyObject method, but of course one can also execute arbitrary code\\n * via the various __dundermethods__ associated to classes.\\n *\\n * The only entrypoint into Python that avoids this file is our bootstrap method\\n * runPythonSimple which is defined in main.c\\n *\\n * Any time we call into wasm, the call should be wrapped in a try catch block.\\n * This way if a Javascript error emerges from the wasm, we can escalate it to a\\n * fatal error.\\n *\\n * This is file is preprocessed with -imacros \\\"pyproxy.c\\\". As a result of this,\\n * any macros available in pyproxy.c are available here. We only need the flags\\n * macros HAS_LENGTH, etc.\\n *\\n * See Makefile recipe for src/js/pyproxy.js\\n */\\n\\nimport { Module } from \\\"./module.js\\\";\\n\\n/**\\n * Is the argument a :any:`PyProxy`?\\n * @param jsobj {any} Object to test.\\n * @returns {jsobj is PyProxy} Is ``jsobj`` a :any:`PyProxy`?\\n */\\nexport function isPyProxy(jsobj) {\\n  return !!jsobj && jsobj.$$ !== undefined && jsobj.$$.type === \\\"PyProxy\\\";\\n}\\nModule.isPyProxy = isPyProxy;\\n\\nif (globalThis.FinalizationRegistry) {\\n  Module.finalizationRegistry = new FinalizationRegistry(([ptr, cache]) => {\\n    pyproxy_decref_cache(cache);\\n    try {\\n      Module._Py_DecRef(ptr);\\n    } catch (e) {\\n      // I'm not really sure what happens if an error occurs inside of a\\n      // finalizer...\\n      Module.fatal_error(e);\\n    }\\n  });\\n  // For some unclear reason this code screws up selenium FirefoxDriver. Works\\n  // fine in chrome and when I test it in browser. It seems to be sensitive to\\n  // changes that don't make a difference to the semantics.\\n  // TODO: after 0.18.0, fix selenium issues with this code.\\n  // Module.bufferFinalizationRegistry = new FinalizationRegistry((ptr) => {\\n  //   try {\\n  //     Module._PyBuffer_Release(ptr);\\n  //     Module._PyMem_Free(ptr);\\n  //   } catch (e) {\\n  //     Module.fatal_error(e);\\n  //   }\\n  // });\\n} else {\\n  Module.finalizationRegistry = { register() {}, unregister() {} };\\n  // Module.bufferFinalizationRegistry = finalizationRegistry;\\n}\\n\\nlet pyproxy_alloc_map = new Map();\\nModule.pyproxy_alloc_map = pyproxy_alloc_map;\\nlet trace_pyproxy_alloc;\\nlet trace_pyproxy_dealloc;\\n\\nModule.enable_pyproxy_allocation_tracing = function () {\\n  trace_pyproxy_alloc = function (proxy) {\\n    pyproxy_alloc_map.set(proxy, Error().stack);\\n  };\\n  trace_pyproxy_dealloc = function (proxy) {\\n    pyproxy_alloc_map.delete(proxy);\\n  };\\n};\\nModule.disable_pyproxy_allocation_tracing = function () {\\n  trace_pyproxy_alloc = function (proxy) {};\\n  trace_pyproxy_dealloc = function (proxy) {};\\n};\\nModule.disable_pyproxy_allocation_tracing();\\n\\n/**\\n * Create a new PyProxy wraping ptrobj which is a PyObject*.\\n *\\n * The argument cache is only needed to implement the PyProxy.copy API, it\\n * allows the copy of the PyProxy to share its attribute cache with the original\\n * version. In all other cases, pyproxy_new should be called with one argument.\\n *\\n * In the case that the Python object is callable, PyProxyClass inherits from\\n * Function so that PyProxy objects can be callable. In that case we MUST expose\\n * certain properties inherited from Function, but we do our best to remove as\\n * many as possible.\\n * @private\\n */\\nModule.pyproxy_new = function (ptrobj, cache) {\\n  let flags = Module._pyproxy_getflags(ptrobj);\\n  let cls = Module.getPyProxyClass(flags);\\n  // Reflect.construct calls the constructor of Module.PyProxyClass but sets\\n  // the prototype as cls.prototype. This gives us a way to dynamically create\\n  // subclasses of PyProxyClass (as long as we don't need to use the \\\"new\\n  // cls(ptrobj)\\\" syntax).\\n  let target;\\n  if (flags & (1 << 8)) {\\n    // To make a callable proxy, we must call the Function constructor.\\n    // In this case we are effectively subclassing Function.\\n    target = Reflect.construct(Function, [], cls);\\n    // Remove undesirable properties added by Function constructor. Note: we\\n    // can't remove \\\"arguments\\\" or \\\"caller\\\" because they are not configurable\\n    // and not writable\\n    delete target.length;\\n    delete target.name;\\n    // prototype isn't configurable so we can't delete it but it's writable.\\n    target.prototype = undefined;\\n  } else {\\n    target = Object.create(cls.prototype);\\n  }\\n  if (!cache) {\\n    // The cache needs to be accessed primarily from the C function\\n    // _pyproxy_getattr so we make a hiwire id.\\n    let cacheId = Module.hiwire.new_value(new Map());\\n    cache = { cacheId, refcnt: 0 };\\n  }\\n  cache.refcnt++;\\n  Object.defineProperty(target, \\\"$$\\\", {\\n    value: { ptr: ptrobj, type: \\\"PyProxy\\\", borrowed: (!!0), cache },\\n  });\\n  Module._Py_IncRef(ptrobj);\\n  let proxy = new Proxy(target, PyProxyHandlers);\\n  trace_pyproxy_alloc(proxy);\\n  Module.finalizationRegistry.register(proxy, [ptrobj, cache], proxy);\\n  return proxy;\\n};\\n\\nfunction _getPtr(jsobj) {\\n  let ptr = jsobj.$$.ptr;\\n  if (ptr === null) {\\n    throw new Error(\\n      jsobj.$$.destroyed_msg || \\\"Object has already been destroyed\\\"\\n    );\\n  }\\n  return ptr;\\n}\\n\\nlet pyproxyClassMap = new Map();\\n/**\\n * Retreive the appropriate mixins based on the features requested in flags.\\n * Used by pyproxy_new. The \\\"flags\\\" variable is produced by the C function\\n * pyproxy_getflags. Multiple PyProxies with the same set of feature flags\\n * will share the same prototype, so the memory footprint of each individual\\n * PyProxy is minimal.\\n * @private\\n */\\nModule.getPyProxyClass = function (flags) {\\n  let result = pyproxyClassMap.get(flags);\\n  if (result) {\\n    return result;\\n  }\\n  let descriptors = {};\\n  for (let [feature_flag, methods] of [\\n    [(1 << 0), PyProxyLengthMethods],\\n    [(1 << 1), PyProxyGetItemMethods],\\n    [(1 << 2), PyProxySetItemMethods],\\n    [(1 << 3), PyProxyContainsMethods],\\n    [(1 << 4), PyProxyIterableMethods],\\n    [(1 << 5), PyProxyIteratorMethods],\\n    [(1 << 6), PyProxyAwaitableMethods],\\n    [(1 << 7), PyProxyBufferMethods],\\n    [(1 << 8), PyProxyCallableMethods],\\n  ]) {\\n    if (flags & feature_flag) {\\n      Object.assign(\\n        descriptors,\\n        Object.getOwnPropertyDescriptors(methods.prototype)\\n      );\\n    }\\n  }\\n  // Use base constructor (just throws an error if construction is attempted).\\n  descriptors.constructor = Object.getOwnPropertyDescriptor(\\n    PyProxyClass.prototype,\\n    \\\"constructor\\\"\\n  );\\n  Object.assign(\\n    descriptors,\\n    Object.getOwnPropertyDescriptors({ $$flags: flags })\\n  );\\n  let new_proto = Object.create(PyProxyClass.prototype, descriptors);\\n  function NewPyProxyClass() {}\\n  NewPyProxyClass.prototype = new_proto;\\n  pyproxyClassMap.set(flags, NewPyProxyClass);\\n  return NewPyProxyClass;\\n};\\n\\n// Static methods\\nModule.PyProxy_getPtr = _getPtr;\\nModule.pyproxy_mark_borrowed = function (proxy) {\\n  proxy.$$.borrowed = (!!1);\\n};\\n\\nconst pyproxy_cache_destroyed_msg =\\n  \\\"This borrowed attribute proxy was automatically destroyed in the \\\" +\\n  \\\"process of destroying the proxy it was borrowed from. Try using the 'copy' method.\\\";\\n\\nfunction pyproxy_decref_cache(cache) {\\n  if (!cache) {\\n    return;\\n  }\\n  cache.refcnt--;\\n  if (cache.refcnt === 0) {\\n    let cache_map = Module.hiwire.pop_value(cache.cacheId);\\n    for (let proxy_id of cache_map.values()) {\\n      Module.pyproxy_destroy(\\n        Module.hiwire.pop_value(proxy_id),\\n        pyproxy_cache_destroyed_msg\\n      );\\n    }\\n  }\\n}\\n\\nModule.pyproxy_destroy = function (proxy, destroyed_msg) {\\n  let ptrobj = _getPtr(proxy);\\n  Module.finalizationRegistry.unregister(proxy);\\n  // Maybe the destructor will call Javascript code that will somehow try\\n  // to use this proxy. Mark it deleted before decrementing reference count\\n  // just in case!\\n  proxy.$$.ptr = null;\\n  proxy.$$.destroyed_msg = destroyed_msg;\\n  pyproxy_decref_cache(proxy.$$.cache);\\n  try {\\n    Module._Py_DecRef(ptrobj);\\n    trace_pyproxy_dealloc(proxy);\\n  } catch (e) {\\n    Module.fatal_error(e);\\n  }\\n};\\n\\n// Now a lot of boilerplate to wrap the abstract Object protocol wrappers\\n// defined in pyproxy.c in Javascript functions.\\n\\nModule.callPyObjectKwargs = function (ptrobj, ...jsargs) {\\n  // We don't do any checking for kwargs, checks are in PyProxy.callKwargs\\n  // which only is used when the keyword arguments come from the user.\\n  let kwargs = jsargs.pop();\\n  let num_pos_args = jsargs.length;\\n  let kwargs_names = Object.keys(kwargs);\\n  let kwargs_values = Object.values(kwargs);\\n  let num_kwargs = kwargs_names.length;\\n  jsargs.push(...kwargs_values);\\n\\n  let idargs = Module.hiwire.new_value(jsargs);\\n  let idkwnames = Module.hiwire.new_value(kwargs_names);\\n  let idresult;\\n  try {\\n    idresult = Module.__pyproxy_apply(\\n      ptrobj,\\n      idargs,\\n      num_pos_args,\\n      idkwnames,\\n      num_kwargs\\n    );\\n  } catch (e) {\\n    Module.fatal_error(e);\\n  } finally {\\n    Module.hiwire.decref(idargs);\\n    Module.hiwire.decref(idkwnames);\\n  }\\n  if (idresult === 0) {\\n    Module._pythonexc2js();\\n  }\\n  return Module.hiwire.pop_value(idresult);\\n};\\n\\nModule.callPyObject = function (ptrobj, ...jsargs) {\\n  return Module.callPyObjectKwargs(ptrobj, ...jsargs, {});\\n};\\n\\n/**\\n * @typedef {(PyProxyClass & {[x : string] : Py2JsResult})} PyProxy\\n * @typedef { PyProxy | number | bigint | string | boolean | undefined } Py2JsResult\\n */\\nclass PyProxyClass {\\n  constructor() {\\n    throw new TypeError(\\\"PyProxy is not a constructor\\\");\\n  }\\n\\n  get [Symbol.toStringTag]() {\\n    return \\\"PyProxy\\\";\\n  }\\n  /**\\n   * The name of the type of the object.\\n   *\\n   * Usually the value is ``\\\"module.name\\\"`` but for builtins or\\n   * interpreter-defined types it is just ``\\\"name\\\"``. As pseudocode this is:\\n   *\\n   * .. code-block:: python\\n   *\\n   *    ty = type(x)\\n   *    if ty.__module__ == 'builtins' or ty.__module__ == \\\"__main__\\\":\\n   *        return ty.__name__\\n   *    else:\\n   *        ty.__module__ + \\\".\\\" + ty.__name__\\n   *\\n   * @type {string}\\n   */\\n  get type() {\\n    let ptrobj = _getPtr(this);\\n    return Module.hiwire.pop_value(Module.__pyproxy_type(ptrobj));\\n  }\\n  /**\\n   * @returns {string}\\n   */\\n  toString() {\\n    let ptrobj = _getPtr(this);\\n    let jsref_repr;\\n    try {\\n      jsref_repr = Module.__pyproxy_repr(ptrobj);\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    }\\n    if (jsref_repr === 0) {\\n      Module._pythonexc2js();\\n    }\\n    return Module.hiwire.pop_value(jsref_repr);\\n  }\\n  /**\\n   * Destroy the ``PyProxy``. This will release the memory. Any further\\n   * attempt to use the object will raise an error.\\n   *\\n   * In a browser supporting `FinalizationRegistry\\n   * <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry>`_\\n   * Pyodide will automatically destroy the ``PyProxy`` when it is garbage\\n   * collected, however there is no guarantee that the finalizer will be run\\n   * in a timely manner so it is better to ``destroy`` the proxy explicitly.\\n   *\\n   * @param {string} [destroyed_msg] The error message to print if use is\\n   *        attempted after destroying. Defaults to \\\"Object has already been\\n   *        destroyed\\\".\\n   */\\n  destroy(destroyed_msg) {\\n    if (!this.$$.borrowed) {\\n      Module.pyproxy_destroy(this, destroyed_msg);\\n    }\\n  }\\n  /**\\n   * Make a new PyProxy pointing to the same Python object.\\n   * Useful if the PyProxy is destroyed somewhere else.\\n   * @returns {PyProxy}\\n   */\\n  copy() {\\n    let ptrobj = _getPtr(this);\\n    return Module.pyproxy_new(ptrobj, this.$$.cache);\\n  }\\n  /**\\n   * Converts the ``PyProxy`` into a Javascript object as best as possible. By\\n   * default does a deep conversion, if a shallow conversion is desired, you can\\n   * use ``proxy.toJs({depth : 1})``. See :ref:`Explicit Conversion of PyProxy\\n   * <type-translations-pyproxy-to-js>` for more info.\\n   *\\n   * @param {object} options\\n   * @param {number} [options.depth] How many layers deep to perform the\\n   * conversion. Defaults to infinite.\\n   * @param {array} [options.pyproxies] If provided, ``toJs`` will store all\\n   * PyProxies created in this list. This allows you to easily destroy all the\\n   * PyProxies by iterating the list without having to recurse over the\\n   * generated structure. The most common use case is to create a new empty\\n   * list, pass the list as `pyproxies`, and then later iterate over `pyproxies`\\n   * to destroy all of created proxies.\\n   * @param {bool} [options.create_pyproxies] If false, ``toJs`` will throw a\\n   * ``ConversionError`` rather than producing a ``PyProxy``.\\n   * @param {bool} [options.dict_converter] A function to be called on an\\n   * iterable of pairs ``[key, value]``. Convert this iterable of pairs to the\\n   * desired output. For instance, ``Object.fromEntries`` would convert the dict\\n   * to an object, ``Array.from`` converts it to an array of entries, and ``(it) =>\\n   * new Map(it)`` converts it to a ``Map`` (which is the default behavior).\\n   * @return {any} The Javascript object resulting from the conversion.\\n   */\\n  toJs({\\n    depth = -1,\\n    pyproxies,\\n    create_pyproxies = (!!1),\\n    dict_converter,\\n  } = {}) {\\n    let ptrobj = _getPtr(this);\\n    let idresult;\\n    let proxies_id;\\n    let dict_converter_id = 0;\\n    if (!create_pyproxies) {\\n      proxies_id = 0;\\n    } else if (pyproxies) {\\n      proxies_id = Module.hiwire.new_value(pyproxies);\\n    } else {\\n      proxies_id = Module.hiwire.new_value([]);\\n    }\\n    if (dict_converter) {\\n      dict_converter_id = Module.hiwire.new_value(dict_converter);\\n    }\\n    try {\\n      idresult = Module._python2js_custom_dict_converter(\\n        ptrobj,\\n        depth,\\n        proxies_id,\\n        dict_converter_id\\n      );\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    } finally {\\n      Module.hiwire.decref(proxies_id);\\n      Module.hiwire.decref(dict_converter_id);\\n    }\\n    if (idresult === 0) {\\n      Module._pythonexc2js();\\n    }\\n    return Module.hiwire.pop_value(idresult);\\n  }\\n  /**\\n   * Check whether the :any:`PyProxy.length` getter is available on this PyProxy. A\\n   * Typescript type guard.\\n   * @returns {this is PyProxyWithLength}\\n   */\\n  supportsLength() {\\n    return !!(this.$$flags & (1 << 0));\\n  }\\n  /**\\n   * Check whether the :any:`PyProxy.get` method is available on this PyProxy. A\\n   * Typescript type guard.\\n   * @returns {this is PyProxyWithGet}\\n   */\\n  supportsGet() {\\n    return !!(this.$$flags & (1 << 1));\\n  }\\n  /**\\n   * Check whether the :any:`PyProxy.set` method is available on this PyProxy. A\\n   * Typescript type guard.\\n   * @returns {this is PyProxyWithSet}\\n   */\\n  supportsSet() {\\n    return !!(this.$$flags & (1 << 2));\\n  }\\n  /**\\n   * Check whether the :any:`PyProxy.has` method is available on this PyProxy. A\\n   * Typescript type guard.\\n   * @returns {this is PyProxyWithHas}\\n   */\\n  supportsHas() {\\n    return !!(this.$$flags & (1 << 3));\\n  }\\n  /**\\n   * Check whether the PyProxy is iterable. A Typescript type guard for\\n   * :any:`PyProxy.[Symbol.iterator]`.\\n   * @returns {this is PyProxyIterable}\\n   */\\n  isIterable() {\\n    return !!(this.$$flags & ((1 << 4) | (1 << 5)));\\n  }\\n  /**\\n   * Check whether the PyProxy is iterable. A Typescript type guard for\\n   * :any:`PyProxy.next`.\\n   * @returns {this is PyProxyIterator}\\n   */\\n  isIterator() {\\n    return !!(this.$$flags & (1 << 5));\\n  }\\n  /**\\n   * Check whether the PyProxy is awaitable. A Typescript type guard, if this\\n   * function returns true Typescript considers the PyProxy to be a ``Promise``.\\n   * @returns {this is PyProxyAwaitable}\\n   */\\n  isAwaitable() {\\n    return !!(this.$$flags & (1 << 6));\\n  }\\n  /**\\n   * Check whether the PyProxy is a buffer. A Typescript type guard for\\n   * :any:`PyProxy.getBuffer`.\\n   * @returns {this is PyProxyBuffer}\\n   */\\n  isBuffer() {\\n    return !!(this.$$flags & (1 << 7));\\n  }\\n  /**\\n   * Check whether the PyProxy is a Callable. A Typescript type guard, if this\\n   * returns true then Typescript considers the Proxy to be callable of\\n   * signature ``(args... : any[]) => PyProxy | number | bigint | string |\\n   * boolean | undefined``.\\n   * @returns {this is PyProxyCallable}\\n   */\\n  isCallable() {\\n    return !!(this.$$flags & (1 << 8));\\n  }\\n}\\n\\n/**\\n * @typedef { PyProxy & PyProxyLengthMethods } PyProxyWithLength\\n */\\n// Controlled by HAS_LENGTH, appears for any object with __len__ or sq_length\\n// or mp_length methods\\nclass PyProxyLengthMethods {\\n  /**\\n   * The length of the object.\\n   *\\n   * Present only if the proxied Python object has a ``__len__`` method.\\n   * @returns {number}\\n   */\\n  get length() {\\n    let ptrobj = _getPtr(this);\\n    let length;\\n    try {\\n      length = Module._PyObject_Size(ptrobj);\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    }\\n    if (length === -1) {\\n      Module._pythonexc2js();\\n    }\\n    return length;\\n  }\\n}\\n\\n/**\\n * @typedef {PyProxy & PyProxyGetItemMethods} PyProxyWithGet\\n */\\n\\n// Controlled by HAS_GET, appears for any class with __getitem__,\\n// mp_subscript, or sq_item methods\\n/**\\n * @interface\\n */\\nclass PyProxyGetItemMethods {\\n  /**\\n   * This translates to the Python code ``obj[key]``.\\n   *\\n   * Present only if the proxied Python object has a ``__getitem__`` method.\\n   *\\n   * @param {any} key The key to look up.\\n   * @returns {Py2JsResult} The corresponding value.\\n   */\\n  get(key) {\\n    let ptrobj = _getPtr(this);\\n    let idkey = Module.hiwire.new_value(key);\\n    let idresult;\\n    try {\\n      idresult = Module.__pyproxy_getitem(ptrobj, idkey);\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    } finally {\\n      Module.hiwire.decref(idkey);\\n    }\\n    if (idresult === 0) {\\n      if (Module._PyErr_Occurred()) {\\n        Module._pythonexc2js();\\n      } else {\\n        return undefined;\\n      }\\n    }\\n    return Module.hiwire.pop_value(idresult);\\n  }\\n}\\n\\n/**\\n * @typedef {PyProxy & PyProxySetItemMethods} PyProxyWithSet\\n */\\n// Controlled by HAS_SET, appears for any class with __setitem__, __delitem__,\\n// mp_ass_subscript,  or sq_ass_item.\\nclass PyProxySetItemMethods {\\n  /**\\n   * This translates to the Python code ``obj[key] = value``.\\n   *\\n   * Present only if the proxied Python object has a ``__setitem__`` method.\\n   *\\n   * @param {any} key The key to set.\\n   * @param {any} value The value to set it to.\\n   */\\n  set(key, value) {\\n    let ptrobj = _getPtr(this);\\n    let idkey = Module.hiwire.new_value(key);\\n    let idval = Module.hiwire.new_value(value);\\n    let errcode;\\n    try {\\n      errcode = Module.__pyproxy_setitem(ptrobj, idkey, idval);\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    } finally {\\n      Module.hiwire.decref(idkey);\\n      Module.hiwire.decref(idval);\\n    }\\n    if (errcode === -1) {\\n      Module._pythonexc2js();\\n    }\\n  }\\n  /**\\n   * This translates to the Python code ``del obj[key]``.\\n   *\\n   * Present only if the proxied Python object has a ``__delitem__`` method.\\n   *\\n   * @param {any} key The key to delete.\\n   */\\n  delete(key) {\\n    let ptrobj = _getPtr(this);\\n    let idkey = Module.hiwire.new_value(key);\\n    let errcode;\\n    try {\\n      errcode = Module.__pyproxy_delitem(ptrobj, idkey);\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    } finally {\\n      Module.hiwire.decref(idkey);\\n    }\\n    if (errcode === -1) {\\n      Module._pythonexc2js();\\n    }\\n  }\\n}\\n\\n/**\\n * @typedef {PyProxy & PyProxyContainsMethods} PyProxyWithHas\\n */\\n\\n// Controlled by HAS_CONTAINS flag, appears for any class with __contains__ or\\n// sq_contains\\nclass PyProxyContainsMethods {\\n  /**\\n   * This translates to the Python code ``key in obj``.\\n   *\\n   * Present only if the proxied Python object has a ``__contains__`` method.\\n   *\\n   * @param {*} key The key to check for.\\n   * @returns {boolean} Is ``key`` present?\\n   */\\n  has(key) {\\n    let ptrobj = _getPtr(this);\\n    let idkey = Module.hiwire.new_value(key);\\n    let result;\\n    try {\\n      result = Module.__pyproxy_contains(ptrobj, idkey);\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    } finally {\\n      Module.hiwire.decref(idkey);\\n    }\\n    if (result === -1) {\\n      Module._pythonexc2js();\\n    }\\n    return result === 1;\\n  }\\n}\\n\\nclass TempError extends Error {}\\n\\n/**\\n * A helper for [Symbol.iterator].\\n *\\n * Because \\\"it is possible for a generator to be garbage collected without\\n * ever running its finally block\\\", we take extra care to try to ensure that\\n * we don't leak the iterator. We register it with the finalizationRegistry,\\n * but if the finally block is executed, we decref the pointer and unregister.\\n *\\n * In order to do this, we create the generator with this inner method,\\n * register the finalizer, and then return it.\\n *\\n * Quote from:\\n * https://hacks.mozilla.org/2015/07/es6-in-depth-generators-continued/\\n *\\n * @private\\n */\\nfunction* iter_helper(iterptr, token) {\\n  try {\\n    if (iterptr === 0) {\\n      throw new TempError();\\n    }\\n    let item;\\n    while ((item = Module.__pyproxy_iter_next(iterptr))) {\\n      yield Module.hiwire.pop_value(item);\\n    }\\n    if (Module._PyErr_Occurred()) {\\n      throw new TempError();\\n    }\\n  } catch (e) {\\n    if (e instanceof TempError) {\\n      Module._pythonexc2js();\\n    } else {\\n      Module.fatal_error(e);\\n    }\\n  } finally {\\n    Module.finalizationRegistry.unregister(token);\\n    Module._Py_DecRef(iterptr);\\n  }\\n}\\n\\n/**\\n * @typedef {PyProxy & PyProxyIterableMethods} PyProxyIterable\\n */\\n\\n// Controlled by IS_ITERABLE, appears for any object with __iter__ or tp_iter,\\n// unless they are iterators. See: https://docs.python.org/3/c-api/iter.html\\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols\\n// This avoids allocating a PyProxy wrapper for the temporary iterator.\\nclass PyProxyIterableMethods {\\n  /**\\n   * This translates to the Python code ``iter(obj)``. Return an iterator\\n   * associated to the proxy. See the documentation for `Symbol.iterator\\n   * <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/iterator>`_.\\n   *\\n   * Present only if the proxied Python object is iterable (i.e., has an\\n   * ``__iter__`` method).\\n   *\\n   * This will be used implicitly by ``for(let x of proxy){}``.\\n   *\\n   * @returns {Iterator<Py2JsResult, Py2JsResult, any>} An iterator for the proxied Python object.\\n   */\\n  [Symbol.iterator]() {\\n    let ptrobj = _getPtr(this);\\n    let token = {};\\n    let iterptr;\\n    try {\\n      iterptr = Module._PyObject_GetIter(ptrobj);\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    }\\n\\n    let result = iter_helper(iterptr, token);\\n    Module.finalizationRegistry.register(result, [iterptr, undefined], token);\\n    return result;\\n  }\\n}\\n\\n/**\\n * @typedef {PyProxy & PyProxyIteratorMethods} PyProxyIterator\\n */\\n\\n// Controlled by IS_ITERATOR, appears for any object with a __next__ or\\n// tp_iternext method.\\nclass PyProxyIteratorMethods {\\n  [Symbol.iterator]() {\\n    return this;\\n  }\\n  /**\\n   * This translates to the Python code ``next(obj)``. Returns the next value\\n   * of the generator. See the documentation for `Generator.prototype.next\\n   * <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/next>`_.\\n   * The argument will be sent to the Python generator.\\n   *\\n   * This will be used implicitly by ``for(let x of proxy){}``.\\n   *\\n   * Present only if the proxied Python object is a generator or iterator\\n   * (i.e., has a ``send`` or ``__next__`` method).\\n   *\\n   * @param {any=} [value] The value to send to the generator. The value will be\\n   * assigned as a result of a yield expression.\\n   * @returns {IteratorResult<Py2JsResult, Py2JsResult>} An Object with two properties: ``done`` and ``value``.\\n   * When the generator yields ``some_value``, ``next`` returns ``{done :\\n   * false, value : some_value}``. When the generator raises a\\n   * ``StopIteration(result_value)`` exception, ``next`` returns ``{done :\\n   * true, value : result_value}``.\\n   */\\n  next(arg = undefined) {\\n    let idresult;\\n    // Note: arg is optional, if arg is not supplied, it will be undefined\\n    // which gets converted to \\\"Py_None\\\". This is as intended.\\n    let idarg = Module.hiwire.new_value(arg);\\n    let done;\\n    try {\\n      idresult = Module.__pyproxyGen_Send(_getPtr(this), idarg);\\n      done = idresult === 0;\\n      if (done) {\\n        idresult = Module.__pyproxyGen_FetchStopIterationValue();\\n      }\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    } finally {\\n      Module.hiwire.decref(idarg);\\n    }\\n    if (done && idresult === 0) {\\n      Module._pythonexc2js();\\n    }\\n    let value = Module.hiwire.pop_value(idresult);\\n    return { done, value };\\n  }\\n}\\n\\n// Another layer of boilerplate. The PyProxyHandlers have some annoying logic\\n// to deal with straining out the spurious \\\"Function\\\" properties \\\"prototype\\\",\\n// \\\"arguments\\\", and \\\"length\\\", to deal with correctly satisfying the Proxy\\n// invariants, and to deal with the mro\\nfunction python_hasattr(jsobj, jskey) {\\n  let ptrobj = _getPtr(jsobj);\\n  let idkey = Module.hiwire.new_value(jskey);\\n  let result;\\n  try {\\n    result = Module.__pyproxy_hasattr(ptrobj, idkey);\\n  } catch (e) {\\n    Module.fatal_error(e);\\n  } finally {\\n    Module.hiwire.decref(idkey);\\n  }\\n  if (result === -1) {\\n    Module._pythonexc2js();\\n  }\\n  return result !== 0;\\n}\\n\\n// Returns a JsRef in order to allow us to differentiate between \\\"not found\\\"\\n// (in which case we return 0) and \\\"found 'None'\\\" (in which case we return\\n// Js_undefined).\\nfunction python_getattr(jsobj, jskey) {\\n  let ptrobj = _getPtr(jsobj);\\n  let idkey = Module.hiwire.new_value(jskey);\\n  let idresult;\\n  let cacheId = jsobj.$$.cache.cacheId;\\n  try {\\n    idresult = Module.__pyproxy_getattr(ptrobj, idkey, cacheId);\\n  } catch (e) {\\n    Module.fatal_error(e);\\n  } finally {\\n    Module.hiwire.decref(idkey);\\n  }\\n  if (idresult === 0) {\\n    if (Module._PyErr_Occurred()) {\\n      Module._pythonexc2js();\\n    }\\n  }\\n  return idresult;\\n}\\n\\nfunction python_setattr(jsobj, jskey, jsval) {\\n  let ptrobj = _getPtr(jsobj);\\n  let idkey = Module.hiwire.new_value(jskey);\\n  let idval = Module.hiwire.new_value(jsval);\\n  let errcode;\\n  try {\\n    errcode = Module.__pyproxy_setattr(ptrobj, idkey, idval);\\n  } catch (e) {\\n    Module.fatal_error(e);\\n  } finally {\\n    Module.hiwire.decref(idkey);\\n    Module.hiwire.decref(idval);\\n  }\\n  if (errcode === -1) {\\n    Module._pythonexc2js();\\n  }\\n}\\n\\nfunction python_delattr(jsobj, jskey) {\\n  let ptrobj = _getPtr(jsobj);\\n  let idkey = Module.hiwire.new_value(jskey);\\n  let errcode;\\n  try {\\n    errcode = Module.__pyproxy_delattr(ptrobj, idkey);\\n  } catch (e) {\\n    Module.fatal_error(e);\\n  } finally {\\n    Module.hiwire.decref(idkey);\\n  }\\n  if (errcode === -1) {\\n    Module._pythonexc2js();\\n  }\\n}\\n\\n// See explanation of which methods should be defined here and what they do\\n// here:\\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\\nlet PyProxyHandlers = {\\n  isExtensible() {\\n    return (!!1);\\n  },\\n  has(jsobj, jskey) {\\n    // Note: must report \\\"prototype\\\" in proxy when we are callable.\\n    // (We can return the wrong value from \\\"get\\\" handler though.)\\n    let objHasKey = Reflect.has(jsobj, jskey);\\n    if (objHasKey) {\\n      return (!!1);\\n    }\\n    // python_hasattr will crash if given a Symbol.\\n    if (typeof jskey === \\\"symbol\\\") {\\n      return (!!0);\\n    }\\n    if (jskey.startsWith(\\\"$\\\")) {\\n      jskey = jskey.slice(1);\\n    }\\n    return python_hasattr(jsobj, jskey);\\n  },\\n  get(jsobj, jskey) {\\n    // Preference order:\\n    // 1. stuff from Javascript\\n    // 2. the result of Python getattr\\n\\n    // python_getattr will crash if given a Symbol.\\n    if (jskey in jsobj || typeof jskey === \\\"symbol\\\") {\\n      return Reflect.get(jsobj, jskey);\\n    }\\n    // If keys start with $ remove the $. User can use initial $ to\\n    // unambiguously ask for a key on the Python object.\\n    if (jskey.startsWith(\\\"$\\\")) {\\n      jskey = jskey.slice(1);\\n    }\\n    // 2. The result of getattr\\n    let idresult = python_getattr(jsobj, jskey);\\n    if (idresult !== 0) {\\n      return Module.hiwire.pop_value(idresult);\\n    }\\n  },\\n  set(jsobj, jskey, jsval) {\\n    let descr = Object.getOwnPropertyDescriptor(jsobj, jskey);\\n    if (descr && !descr.writable) {\\n      throw new TypeError(`Cannot set read only field '${jskey}'`);\\n    }\\n    // python_setattr will crash if given a Symbol.\\n    if (typeof jskey === \\\"symbol\\\") {\\n      return Reflect.set(jsobj, jskey, jsval);\\n    }\\n    if (jskey.startsWith(\\\"$\\\")) {\\n      jskey = jskey.slice(1);\\n    }\\n    python_setattr(jsobj, jskey, jsval);\\n    return (!!1);\\n  },\\n  deleteProperty(jsobj, jskey) {\\n    let descr = Object.getOwnPropertyDescriptor(jsobj, jskey);\\n    if (descr && !descr.writable) {\\n      throw new TypeError(`Cannot delete read only field '${jskey}'`);\\n    }\\n    if (typeof jskey === \\\"symbol\\\") {\\n      return Reflect.deleteProperty(jsobj, jskey);\\n    }\\n    if (jskey.startsWith(\\\"$\\\")) {\\n      jskey = jskey.slice(1);\\n    }\\n    python_delattr(jsobj, jskey);\\n    // Must return \\\"false\\\" if \\\"jskey\\\" is a nonconfigurable own property.\\n    // Otherwise Javascript will throw a TypeError.\\n    return !descr || descr.configurable;\\n  },\\n  ownKeys(jsobj) {\\n    let ptrobj = _getPtr(jsobj);\\n    let idresult;\\n    try {\\n      idresult = Module.__pyproxy_ownKeys(ptrobj);\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    }\\n    if (idresult === 0) {\\n      Module._pythonexc2js();\\n    }\\n    let result = Module.hiwire.pop_value(idresult);\\n    result.push(...Reflect.ownKeys(jsobj));\\n    return result;\\n  },\\n  apply(jsobj, jsthis, jsargs) {\\n    return jsobj.apply(jsthis, jsargs);\\n  },\\n};\\n\\n/**\\n * @typedef {PyProxy & Promise<Py2JsResult>} PyProxyAwaitable\\n */\\n\\n/**\\n * The Promise / javascript awaitable API.\\n * @private\\n */\\nclass PyProxyAwaitableMethods {\\n  /**\\n   * This wraps __pyproxy_ensure_future and makes a function that converts a\\n   * Python awaitable to a promise, scheduling the awaitable on the Python\\n   * event loop if necessary.\\n   * @private\\n   */\\n  _ensure_future() {\\n    let ptrobj = _getPtr(this);\\n    let resolveHandle;\\n    let rejectHandle;\\n    let promise = new Promise((resolve, reject) => {\\n      resolveHandle = resolve;\\n      rejectHandle = reject;\\n    });\\n    let resolve_handle_id = Module.hiwire.new_value(resolveHandle);\\n    let reject_handle_id = Module.hiwire.new_value(rejectHandle);\\n    let errcode;\\n    try {\\n      errcode = Module.__pyproxy_ensure_future(\\n        ptrobj,\\n        resolve_handle_id,\\n        reject_handle_id\\n      );\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    } finally {\\n      Module.hiwire.decref(reject_handle_id);\\n      Module.hiwire.decref(resolve_handle_id);\\n    }\\n    if (errcode === -1) {\\n      Module._pythonexc2js();\\n    }\\n    return promise;\\n  }\\n  /**\\n   * Runs ``asyncio.ensure_future(awaitable)``, executes\\n   * ``onFulfilled(result)`` when the ``Future`` resolves successfully,\\n   * executes ``onRejected(error)`` when the ``Future`` fails. Will be used\\n   * implictly by ``await obj``.\\n   *\\n   * See the documentation for\\n   * `Promise.then\\n   * <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then>`_\\n   *\\n   * Present only if the proxied Python object is `awaitable\\n   * <https://docs.python.org/3/library/asyncio-task.html?highlight=awaitable#awaitables>`_.\\n   *\\n   * @param {Function} onFulfilled A handler called with the result as an\\n   * argument if the awaitable succeeds.\\n   * @param {Function} onRejected A handler called with the error as an\\n   * argument if the awaitable fails.\\n   * @returns {Promise} The resulting Promise.\\n   */\\n  then(onFulfilled, onRejected) {\\n    let promise = this._ensure_future();\\n    return promise.then(onFulfilled, onRejected);\\n  }\\n  /**\\n   * Runs ``asyncio.ensure_future(awaitable)`` and executes\\n   * ``onRejected(error)`` if the future fails.\\n   *\\n   * See the documentation for\\n   * `Promise.catch\\n   * <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch>`_.\\n   *\\n   * Present only if the proxied Python object is `awaitable\\n   * <https://docs.python.org/3/library/asyncio-task.html?highlight=awaitable#awaitables>`_.\\n   *\\n   * @param {Function} onRejected A handler called with the error as an\\n   * argument if the awaitable fails.\\n   * @returns {Promise} The resulting Promise.\\n   */\\n  catch(onRejected) {\\n    let promise = this._ensure_future();\\n    return promise.catch(onRejected);\\n  }\\n  /**\\n   * Runs ``asyncio.ensure_future(awaitable)`` and executes\\n   * ``onFinally(error)`` when the future resolves.\\n   *\\n   * See the documentation for\\n   * `Promise.finally\\n   * <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally>`_.\\n   *\\n   * Present only if the proxied Python object is `awaitable\\n   * <https://docs.python.org/3/library/asyncio-task.html?highlight=awaitable#awaitables>`_.\\n   *\\n   *\\n   * @param {Function} onFinally A handler that is called with zero arguments\\n   * when the awaitable resolves.\\n   * @returns {Promise} A Promise that resolves or rejects with the same\\n   * result as the original Promise, but only after executing the\\n   * ``onFinally`` handler.\\n   */\\n  finally(onFinally) {\\n    let promise = this._ensure_future();\\n    return promise.finally(onFinally);\\n  }\\n}\\n\\n/**\\n * @typedef { PyProxy & PyProxyCallableMethods & ((...args : any[]) => Py2JsResult) } PyProxyCallable\\n */\\nclass PyProxyCallableMethods {\\n  apply(jsthis, jsargs) {\\n    return Module.callPyObject(_getPtr(this), ...jsargs);\\n  }\\n  call(jsthis, ...jsargs) {\\n    return Module.callPyObject(_getPtr(this), ...jsargs);\\n  }\\n  /**\\n   * Call the function with key word arguments.\\n   * The last argument must be an object with the keyword arguments.\\n   */\\n  callKwargs(...jsargs) {\\n    if (jsargs.length === 0) {\\n      throw new TypeError(\\n        \\\"callKwargs requires at least one argument (the key word argument object)\\\"\\n      );\\n    }\\n    let kwargs = jsargs[jsargs.length - 1];\\n    if (\\n      kwargs.constructor !== undefined &&\\n      kwargs.constructor.name !== \\\"Object\\\"\\n    ) {\\n      throw new TypeError(\\\"kwargs argument is not an object\\\");\\n    }\\n    return Module.callPyObjectKwargs(_getPtr(this), ...jsargs);\\n  }\\n}\\nPyProxyCallableMethods.prototype.prototype = Function.prototype;\\n\\nlet type_to_array_map = new Map([\\n  [\\\"i8\\\", Int8Array],\\n  [\\\"u8\\\", Uint8Array],\\n  [\\\"u8clamped\\\", Uint8ClampedArray],\\n  [\\\"i16\\\", Int16Array],\\n  [\\\"u16\\\", Uint16Array],\\n  [\\\"i32\\\", Int32Array],\\n  [\\\"u32\\\", Uint32Array],\\n  [\\\"i32\\\", Int32Array],\\n  [\\\"u32\\\", Uint32Array],\\n  // if these aren't available, will be globalThis.BigInt64Array will be\\n  // undefined rather than raising a ReferenceError.\\n  [\\\"i64\\\", globalThis.BigInt64Array],\\n  [\\\"u64\\\", globalThis.BigUint64Array],\\n  [\\\"f32\\\", Float32Array],\\n  [\\\"f64\\\", Float64Array],\\n  [\\\"dataview\\\", DataView],\\n]);\\n\\n/**\\n * @typedef {PyProxy & PyProxyBufferMethods} PyProxyBuffer\\n */\\nclass PyProxyBufferMethods {\\n  /**\\n   * Get a view of the buffer data which is usable from Javascript. No copy is\\n   * ever performed.\\n   *\\n   * Present only if the proxied Python object supports the `Python Buffer\\n   * Protocol <https://docs.python.org/3/c-api/buffer.html>`_.\\n   *\\n   * We do not support suboffsets, if the buffer requires suboffsets we will\\n   * throw an error. Javascript nd array libraries can't handle suboffsets\\n   * anyways. In this case, you should use the :any:`toJs` api or copy the\\n   * buffer to one that doesn't use suboffets (using e.g.,\\n   * `numpy.ascontiguousarray\\n   * <https://numpy.org/doc/stable/reference/generated/numpy.ascontiguousarray.html>`_).\\n   *\\n   * If the buffer stores big endian data or half floats, this function will\\n   * fail without an explicit type argument. For big endian data you can use\\n   * ``toJs``. `DataViews\\n   * <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView>`_\\n   * have support for big endian data, so you might want to pass\\n   * ``'dataview'`` as the type argument in that case.\\n   *\\n   * @param {string=} [type] The type of the :any:`PyBuffer.data <pyodide.PyBuffer.data>` field in the\\n   * output. Should be one of: ``\\\"i8\\\"``, ``\\\"u8\\\"``, ``\\\"u8clamped\\\"``, ``\\\"i16\\\"``,\\n   * ``\\\"u16\\\"``, ``\\\"i32\\\"``, ``\\\"u32\\\"``, ``\\\"i32\\\"``, ``\\\"u32\\\"``, ``\\\"i64\\\"``,\\n   * ``\\\"u64\\\"``, ``\\\"f32\\\"``, ``\\\"f64``, or ``\\\"dataview\\\"``. This argument is\\n   * optional, if absent ``getBuffer`` will try to determine the appropriate\\n   * output type based on the buffer `format string\\n   * <https://docs.python.org/3/library/struct.html#format-strings>`_.\\n   * @returns {PyBuffer} :any:`PyBuffer <pyodide.PyBuffer>`\\n   */\\n  getBuffer(type) {\\n    let ArrayType = undefined;\\n    if (type) {\\n      ArrayType = type_to_array_map.get(type);\\n      if (ArrayType === undefined) {\\n        throw new Error(`Unknown type ${type}`);\\n      }\\n    }\\n    let HEAPU32 = Module.HEAPU32;\\n    let orig_stack_ptr = Module.stackSave();\\n    let buffer_struct_ptr = Module.stackAlloc(\\n      HEAPU32[(Module._buffer_struct_size >> 2) + 0]\\n    );\\n    let this_ptr = _getPtr(this);\\n    let errcode;\\n    try {\\n      errcode = Module.__pyproxy_get_buffer(buffer_struct_ptr, this_ptr);\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    }\\n    if (errcode === -1) {\\n      Module._pythonexc2js();\\n    }\\n\\n    // This has to match the fields in buffer_struct\\n    let startByteOffset = HEAPU32[(buffer_struct_ptr >> 2) + 0];\\n    let minByteOffset = HEAPU32[(buffer_struct_ptr >> 2) + 1];\\n    let maxByteOffset = HEAPU32[(buffer_struct_ptr >> 2) + 2];\\n\\n    let readonly = !!HEAPU32[(buffer_struct_ptr >> 2) + 3];\\n    let format_ptr = HEAPU32[(buffer_struct_ptr >> 2) + 4];\\n    let itemsize = HEAPU32[(buffer_struct_ptr >> 2) + 5];\\n    let shape = Module.hiwire.pop_value(HEAPU32[(buffer_struct_ptr >> 2) + 6]);\\n    let strides = Module.hiwire.pop_value(HEAPU32[(buffer_struct_ptr >> 2) + 7]);\\n\\n    let view_ptr = HEAPU32[(buffer_struct_ptr >> 2) + 8];\\n    let c_contiguous = !!HEAPU32[(buffer_struct_ptr >> 2) + 9];\\n    let f_contiguous = !!HEAPU32[(buffer_struct_ptr >> 2) + 10];\\n\\n    let format = Module.UTF8ToString(format_ptr);\\n    Module.stackRestore(orig_stack_ptr);\\n\\n    let success = (!!0);\\n    try {\\n      let bigEndian = (!!0);\\n      if (ArrayType === undefined) {\\n        [ArrayType, bigEndian] = Module.processBufferFormatString(\\n          format,\\n          \\\" In this case, you can pass an explicit type argument.\\\"\\n        );\\n      }\\n      let alignment = parseInt(ArrayType.name.replace(/[^0-9]/g, \\\"\\\")) / 8 || 1;\\n      if (bigEndian && alignment > 1) {\\n        throw new Error(\\n          \\\"Javascript has no native support for big endian buffers. \\\" +\\n            \\\"In this case, you can pass an explicit type argument. \\\" +\\n            \\\"For instance, `getBuffer('dataview')` will return a `DataView`\\\" +\\n            \\\"which has native support for reading big endian data. \\\" +\\n            \\\"Alternatively, toJs will automatically convert the buffer \\\" +\\n            \\\"to little endian.\\\"\\n        );\\n      }\\n      let numBytes = maxByteOffset - minByteOffset;\\n      if (\\n        numBytes !== 0 &&\\n        (startByteOffset % alignment !== 0 ||\\n          minByteOffset % alignment !== 0 ||\\n          maxByteOffset % alignment !== 0)\\n      ) {\\n        throw new Error(\\n          `Buffer does not have valid alignment for a ${ArrayType.name}`\\n        );\\n      }\\n      let numEntries = numBytes / alignment;\\n      let offset = (startByteOffset - minByteOffset) / alignment;\\n      let data;\\n      if (numBytes === 0) {\\n        data = new ArrayType();\\n      } else {\\n        data = new ArrayType(HEAPU32.buffer, minByteOffset, numEntries);\\n      }\\n      for (let i of strides.keys()) {\\n        strides[i] /= alignment;\\n      }\\n\\n      success = (!!1);\\n      let result = Object.create(\\n        PyBuffer.prototype,\\n        Object.getOwnPropertyDescriptors({\\n          offset,\\n          readonly,\\n          format,\\n          itemsize,\\n          ndim: shape.length,\\n          nbytes: numBytes,\\n          shape,\\n          strides,\\n          data,\\n          c_contiguous,\\n          f_contiguous,\\n          _view_ptr: view_ptr,\\n          _released: (!!0),\\n        })\\n      );\\n      // Module.bufferFinalizationRegistry.register(result, view_ptr, result);\\n      return result;\\n    } finally {\\n      if (!success) {\\n        try {\\n          Module._PyBuffer_Release(view_ptr);\\n          Module._PyMem_Free(view_ptr);\\n        } catch (e) {\\n          Module.fatal_error(e);\\n        }\\n      }\\n    }\\n  }\\n}\\n\\n/**\\n * @typedef {Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array} TypedArray;\\n */\\n\\n/**\\n * A class to allow access to a Python data buffers from Javascript. These are\\n * produced by :any:`PyProxy.getBuffer` and cannot be constructed directly.\\n * When you are done, release it with the :any:`release <PyBuffer.release>`\\n * method.  See\\n * `Python buffer protocol documentation\\n * <https://docs.python.org/3/c-api/buffer.html>`_ for more information.\\n *\\n * To find the element ``x[a_1, ..., a_n]``, you could use the following code:\\n *\\n * .. code-block:: js\\n *\\n *    function multiIndexToIndex(pybuff, multiIndex){\\n *       if(multindex.length !==pybuff.ndim){\\n *          throw new Error(\\\"Wrong length index\\\");\\n *       }\\n *       let idx = pybuff.offset;\\n *       for(let i = 0; i < pybuff.ndim; i++){\\n *          if(multiIndex[i] < 0){\\n *             multiIndex[i] = pybuff.shape[i] - multiIndex[i];\\n *          }\\n *          if(multiIndex[i] < 0 || multiIndex[i] >= pybuff.shape[i]){\\n *             throw new Error(\\\"Index out of range\\\");\\n *          }\\n *          idx += multiIndex[i] * pybuff.stride[i];\\n *       }\\n *       return idx;\\n *    }\\n *    console.log(\\\"entry is\\\", pybuff.data[multiIndexToIndex(pybuff, [2, 0, -1])]);\\n *\\n * .. admonition:: Contiguity\\n *    :class: warning\\n *\\n *    If the buffer is not contiguous, the ``data`` TypedArray will contain\\n *    data that is not part of the buffer. Modifying this data may lead to\\n *    undefined behavior.\\n *\\n * .. admonition:: Readonly buffers\\n *    :class: warning\\n *\\n *    If ``buffer.readonly`` is ``true``, you should not modify the buffer.\\n *    Modifying a readonly buffer may lead to undefined behavior.\\n *\\n * .. admonition:: Converting between TypedArray types\\n *    :class: warning\\n *\\n *    The following naive code to change the type of a typed array does not\\n *    work:\\n *\\n *    .. code-block:: js\\n *\\n *        // Incorrectly convert a TypedArray.\\n *        // Produces a Uint16Array that points to the entire WASM memory!\\n *        let myarray = new Uint16Array(buffer.data.buffer);\\n *\\n *    Instead, if you want to convert the output TypedArray, you need to say:\\n *\\n *    .. code-block:: js\\n *\\n *        // Correctly convert a TypedArray.\\n *        let myarray = new Uint16Array(\\n *            buffer.data.buffer,\\n *            buffer.data.byteOffset,\\n *            buffer.data.byteLength\\n *        );\\n */\\nexport class PyBuffer {\\n  constructor() {\\n    /**\\n     * The offset of the first entry of the array. For instance if our array\\n     * is 3d, then you will find ``array[0,0,0]`` at\\n     * ``pybuf.data[pybuf.offset]``\\n     * @type {number}\\n     */\\n    this.offset;\\n\\n    /**\\n     * If the data is readonly, you should not modify it. There is no way\\n     * for us to enforce this, but it may cause very weird behavior.\\n     * @type {boolean}\\n     */\\n    this.readonly;\\n\\n    /**\\n     * The format string for the buffer. See `the Python documentation on\\n     * format strings\\n     * <https://docs.python.org/3/library/struct.html#format-strings>`_.\\n     * @type {string}\\n     */\\n    this.format;\\n\\n    /**\\n     * How large is each entry (in bytes)?\\n     * @type {number}\\n     */\\n    this.itemsize;\\n\\n    /**\\n     * The number of dimensions of the buffer. If ``ndim`` is 0, the buffer\\n     * represents a single scalar or struct. Otherwise, it represents an\\n     * array.\\n     * @type {number}\\n     */\\n    this.ndim;\\n\\n    /**\\n     * The total number of bytes the buffer takes up. This is equal to\\n     * ``buff.data.byteLength``.\\n     * @type {number}\\n     */\\n    this.nbytes;\\n\\n    /**\\n     * The shape of the buffer, that is how long it is in each dimension.\\n     * The length will be equal to ``ndim``. For instance, a 2x3x4 array\\n     * would have shape ``[2, 3, 4]``.\\n     * @type {number[]}\\n     */\\n    this.shape;\\n\\n    /**\\n     * An array of of length ``ndim`` giving the number of elements to skip\\n     * to get to a new element in each dimension. See the example definition\\n     * of a ``multiIndexToIndex`` function above.\\n     * @type {number[]}\\n     */\\n    this.strides;\\n\\n    /**\\n     * The actual data. A typed array of an appropriate size backed by a\\n     * segment of the WASM memory.\\n     *\\n     * The ``type`` argument of :any:`PyProxy.getBuffer`\\n     * determines which sort of ``TypedArray`` this is. By default\\n     * :any:`PyProxy.getBuffer` will look at the format string to determine the most\\n     * appropriate option.\\n     * @type {TypedArray}\\n     */\\n    this.data;\\n\\n    /**\\n     * Is it C contiguous?\\n     * @type {boolean}\\n     */\\n    this.c_contiguous;\\n\\n    /**\\n     * Is it Fortran contiguous?\\n     * @type {boolean}\\n     */\\n    this.f_contiguous;\\n    throw new TypeError(\\\"PyBuffer is not a constructor\\\");\\n  }\\n\\n  /**\\n   * Release the buffer. This allows the memory to be reclaimed.\\n   */\\n  release() {\\n    if (this._released) {\\n      return;\\n    }\\n    // Module.bufferFinalizationRegistry.unregister(this);\\n    try {\\n      Module._PyBuffer_Release(this._view_ptr);\\n      Module._PyMem_Free(this._view_ptr);\\n    } catch (e) {\\n      Module.fatal_error(e);\\n    }\\n    this._released = (!!1);\\n    this.data = null;\\n  }\\n}\\n\\n// A special proxy that we use to wrap pyodide.globals to allow property\\n// access like `pyodide.globals.x`.\\nlet globalsPropertyAccessWarned = (!!0);\\nlet globalsPropertyAccessWarningMsg =\\n  \\\"Access to pyodide.globals via pyodide.globals.key is deprecated and \\\" +\\n  \\\"will be removed in version 0.18.0. Use pyodide.globals.get('key'), \\\" +\\n  \\\"pyodide.globals.set('key', value), pyodide.globals.delete('key') instead.\\\";\\nlet NamespaceProxyHandlers = {\\n  has(obj, key) {\\n    return Reflect.has(obj, key) || obj.has(key);\\n  },\\n  get(obj, key) {\\n    if (Reflect.has(obj, key)) {\\n      return Reflect.get(obj, key);\\n    }\\n    let result = obj.get(key);\\n    if (!globalsPropertyAccessWarned && result !== undefined) {\\n      console.warn(globalsPropertyAccessWarningMsg);\\n      globalsPropertyAccessWarned = (!!1);\\n    }\\n    return result;\\n  },\\n  set(obj, key, value) {\\n    if (Reflect.has(obj, key)) {\\n      throw new Error(`Cannot set read only field ${key}`);\\n    }\\n    if (!globalsPropertyAccessWarned) {\\n      globalsPropertyAccessWarned = (!!1);\\n      console.warn(globalsPropertyAccessWarningMsg);\\n    }\\n    obj.set(key, value);\\n  },\\n  ownKeys(obj) {\\n    let result = new Set(Reflect.ownKeys(obj));\\n    let iter = obj.keys();\\n    for (let key of iter) {\\n      result.add(key);\\n    }\\n    iter.destroy();\\n    return Array.from(result);\\n  },\\n};\\n\\nexport function wrapNamespace(ns) {\\n  return new Proxy(ns, NamespaceProxyHandlers);\\n}\\n\",\"import { Module } from \\\"./module.js\\\";\\nimport { loadPackage, loadedPackages } from \\\"./load-pyodide.js\\\";\\nimport { isPyProxy, PyBuffer } from \\\"./pyproxy.gen.js\\\";\\nexport { loadPackage, loadedPackages, isPyProxy };\\n\\n/**\\n * @typedef {import('./pyproxy.gen').Py2JsResult} Py2JsResult\\n * @typedef {import('./pyproxy.gen').PyProxy} PyProxy\\n * @typedef {import('./pyproxy.gen').TypedArray} TypedArray\\n * @typedef {import('emscripten')} Emscripten\\n */\\n\\n/**\\n * An alias to the Python :py:mod:`pyodide` package.\\n *\\n * You can use this to call functions defined in the Pyodide Python package\\n * from Javascript.\\n *\\n * @type {PyProxy}\\n */\\nlet pyodide_py = {}; // actually defined in runPythonSimple in loadPyodide (see pyodide.js)\\n\\n/**\\n *\\n * An alias to the global Python namespace.\\n *\\n * For example, to access a variable called ``foo`` in the Python global\\n * scope, use ``pyodide.globals.get(\\\"foo\\\")``\\n *\\n * @type {PyProxy}\\n */\\nlet globals = {}; // actually defined in runPythonSimple in loadPyodide (see pyodide.js)\\n\\n/**\\n * A Javascript error caused by a Python exception.\\n *\\n * In order to reduce the risk of large memory leaks, the ``PythonError``\\n * contains no reference to the Python exception that caused it. You can find\\n * the actual Python exception that caused this error as `sys.last_value\\n * <https://docs.python.org/3/library/sys.html#sys.last_value>`_.\\n *\\n * See :ref:`type-translations-errors` for more information.\\n *\\n * .. admonition:: Avoid Stack Frames\\n *    :class: warning\\n *\\n *    If you make a :any:`PyProxy` of ``sys.last_value``, you should be\\n *    especially careful to :any:`destroy() <PyProxy.destroy>` it when you are\\n *    done. You may leak a large amount of memory including the local\\n *    variables of all the stack frames in the traceback if you don't. The\\n *    easiest way is to only handle the exception in Python.\\n *\\n * @class\\n */\\nexport class PythonError {\\n  // actually defined in error_handling.c. TODO: would be good to move this\\n  // documentation and the definition of PythonError to error_handling.js\\n  constructor() {\\n    /**\\n     * The Python traceback.\\n     * @type {string}\\n     */\\n    this.message;\\n  }\\n}\\n\\n/**\\n *\\n * The Pyodide version.\\n *\\n * It can be either the exact release version (e.g. ``0.1.0``), or\\n * the latest release version followed by the number of commits since, and\\n * the git hash of the current commit (e.g. ``0.1.0-1-bd84646``).\\n *\\n * @type {string}\\n */\\nexport let version = \\\"\\\"; // actually defined in runPythonSimple in loadPyodide (see pyodide.js)\\n\\n/**\\n * Runs a string of Python code from Javascript.\\n *\\n * The last part of the string may be an expression, in which case, its value\\n * is returned.\\n *\\n * @param {string} code Python code to evaluate\\n * @param {PyProxy} globals An optional Python dictionary to use as the globals.\\n *        Defaults to :any:`pyodide.globals`. Uses the Python API\\n *        :any:`pyodide.eval_code` to evaluate the code.\\n * @returns {Py2JsResult} The result of the Python code translated to Javascript. See the\\n *          documentation for :any:`pyodide.eval_code` for more info.\\n */\\nexport function runPython(code, globals = Module.globals) {\\n  return Module.pyodide_py.eval_code(code, globals);\\n}\\nModule.runPython = runPython;\\n\\n/**\\n * @callback LogFn\\n * @param {string} msg\\n * @returns {void}\\n * @private\\n */\\n\\n/**\\n * Inspect a Python code chunk and use :js:func:`pyodide.loadPackage` to install\\n * any known packages that the code chunk imports. Uses the Python API\\n * :func:`pyodide.find\\\\_imports` to inspect the code.\\n *\\n * For example, given the following code as input\\n *\\n * .. code-block:: python\\n *\\n *    import numpy as np x = np.array([1, 2, 3])\\n *\\n * :js:func:`loadPackagesFromImports` will call\\n * ``pyodide.loadPackage(['numpy'])``.\\n *\\n * @param {string} code The code to inspect.\\n * @param {LogFn=} messageCallback The ``messageCallback`` argument of\\n * :any:`pyodide.loadPackage` (optional).\\n * @param {LogFn=} errorCallback The ``errorCallback`` argument of\\n * :any:`pyodide.loadPackage` (optional).\\n * @async\\n */\\nexport async function loadPackagesFromImports(\\n  code,\\n  messageCallback,\\n  errorCallback\\n) {\\n  let pyimports = Module.pyodide_py.find_imports(code);\\n  let imports;\\n  try {\\n    imports = pyimports.toJs();\\n  } finally {\\n    pyimports.destroy();\\n  }\\n  if (imports.length === 0) {\\n    return;\\n  }\\n\\n  let packageNames = Module._import_name_to_package_name;\\n  let packages = new Set();\\n  for (let name of imports) {\\n    if (packageNames.has(name)) {\\n      packages.add(packageNames.get(name));\\n    }\\n  }\\n  if (packages.size) {\\n    await loadPackage(Array.from(packages), messageCallback, errorCallback);\\n  }\\n}\\n\\n/**\\n * Access a Python object in the global namespace from Javascript.\\n *\\n * @deprecated This function will be removed in version 0.18.0. Use\\n *    :any:`pyodide.globals.get('key') <pyodide.globals>` instead.\\n *\\n * @param {string} name Python variable name\\n * @returns {Py2JsResult} The Python object translated to Javascript.\\n */\\nexport function pyimport(name) {\\n  console.warn(\\n    \\\"Access to the Python global namespace via pyodide.pyimport is deprecated and \\\" +\\n      \\\"will be removed in version 0.18.0. Use pyodide.globals.get('key') instead.\\\"\\n  );\\n  return Module.globals.get(name);\\n}\\n/**\\n * Runs Python code using `PyCF_ALLOW_TOP_LEVEL_AWAIT\\n * <https://docs.python.org/3/library/ast.html?highlight=pycf_allow_top_level_await#ast.PyCF_ALLOW_TOP_LEVEL_AWAIT>`_.\\n *\\n * .. admonition:: Python imports\\n *    :class: warning\\n *\\n *    Since pyodide 0.18.0, you must call :js:func:`loadPackagesFromImports` to\\n *    import any python packages referenced via `import` statements in your code.\\n *    This function will no longer do it for you.\\n *\\n * For example:\\n *\\n * .. code-block:: pyodide\\n *\\n *    let result = await pyodide.runPythonAsync(`\\n *        from js import fetch\\n *        response = await fetch(\\\"./packages.json\\\")\\n *        packages = await response.json()\\n *        # If final statement is an expression, its value is returned to Javascript\\n *        len(packages.packages.object_keys())\\n *    `);\\n *    console.log(result); // 79\\n *\\n * @param {string} code Python code to evaluate\\n * @returns {Py2JsResult} The result of the Python code translated to Javascript.\\n * @async\\n */\\nexport async function runPythonAsync(code) {\\n  let coroutine = Module.pyodide_py.eval_code_async(code, Module.globals);\\n  try {\\n    let result = await coroutine;\\n    return result;\\n  } finally {\\n    coroutine.destroy();\\n  }\\n}\\nModule.runPythonAsync = runPythonAsync;\\n\\n/**\\n * Registers the Javascript object ``module`` as a Javascript module named\\n * ``name``. This module can then be imported from Python using the standard\\n * Python import system. If another module by the same name has already been\\n * imported, this won't have much effect unless you also delete the imported\\n * module from ``sys.modules``. This calls the ``pyodide_py`` API\\n * :func:`pyodide.register_js_module`.\\n *\\n * @param {string} name Name of the Javascript module to add\\n * @param {object} module Javascript object backing the module\\n */\\nexport function registerJsModule(name, module) {\\n  Module.pyodide_py.register_js_module(name, module);\\n}\\n\\n/**\\n * Tell Pyodide about Comlink.\\n * Necessary to enable importing Comlink proxies into Python.\\n */\\nexport function registerComlink(Comlink) {\\n  Module._Comlink = Comlink;\\n}\\n\\n/**\\n * Unregisters a Javascript module with given name that has been previously\\n * registered with :js:func:`pyodide.registerJsModule` or\\n * :func:`pyodide.register_js_module`. If a Javascript module with that name\\n * does not already exist, will throw an error. Note that if the module has\\n * already been imported, this won't have much effect unless you also delete\\n * the imported module from ``sys.modules``. This calls the ``pyodide_py`` API\\n * :func:`pyodide.unregister_js_module`.\\n *\\n * @param {string} name Name of the Javascript module to remove\\n */\\nexport function unregisterJsModule(name) {\\n  Module.pyodide_py.unregister_js_module(name);\\n}\\n\\n/**\\n * Convert the Javascript object to a Python object as best as possible.\\n *\\n * This is similar to :any:`JsProxy.to_py` but for use from Javascript. If the\\n * object is immutable or a :any:`PyProxy`, it will be returned unchanged. If\\n * the object cannot be converted into Python, it will be returned unchanged.\\n *\\n * See :ref:`type-translations-jsproxy-to-py` for more information.\\n *\\n * @param {*} obj\\n * @param {object} options\\n * @param {number} options.depth Optional argument to limit the depth of the\\n * conversion.\\n * @returns {PyProxy} The object converted to Python.\\n */\\nexport function toPy(obj, { depth = -1 } = {}) {\\n  // No point in converting these, it'd be dumb to proxy them so they'd just\\n  // get converted back by `js2python` at the end\\n  switch (typeof obj) {\\n    case \\\"string\\\":\\n    case \\\"number\\\":\\n    case \\\"boolean\\\":\\n    case \\\"bigint\\\":\\n    case \\\"undefined\\\":\\n      return obj;\\n  }\\n  if (!obj || Module.isPyProxy(obj)) {\\n    return obj;\\n  }\\n  let obj_id = 0;\\n  let py_result = 0;\\n  let result = 0;\\n  try {\\n    obj_id = Module.hiwire.new_value(obj);\\n    py_result = Module.__js2python_convert(obj_id, new Map(), depth);\\n    if (py_result === 0) {\\n      Module._pythonexc2js();\\n    }\\n    if (Module._JsProxy_Check(py_result)) {\\n      // Oops, just created a JsProxy. Return the original object.\\n      return obj;\\n      // return Module.pyproxy_new(py_result);\\n    }\\n    result = Module._python2js(py_result);\\n    if (result === 0) {\\n      Module._pythonexc2js();\\n    }\\n  } finally {\\n    Module.hiwire.decref(obj_id);\\n    Module._Py_DecRef(py_result);\\n  }\\n  return Module.hiwire.pop_value(result);\\n}\\n\\n/**\\n * @private\\n */\\nModule.saveState = () => Module.pyodide_py._state.save_state();\\n\\n/**\\n * @private\\n */\\nModule.restoreState = (state) => Module.pyodide_py._state.restore_state(state);\\n\\n/**\\n * @param {TypedArray} interrupt_buffer\\n */\\nfunction setInterruptBuffer(interrupt_buffer) {}\\nsetInterruptBuffer = Module.setInterruptBuffer;\\nexport { setInterruptBuffer };\\n\\nexport function makePublicAPI() {\\n  /**\\n   * An alias to the `Emscripten File System API\\n   * <https://emscripten.org/docs/api_reference/Filesystem-API.html>`_.\\n   *\\n   * This provides a wide range of POSIX-`like` file/device operations, including\\n   * `mount\\n   * <https://emscripten.org/docs/api_reference/Filesystem-API.html#FS.mount>`_\\n   * which can be used to extend the in-memory filesystem with features like `persistence\\n   * <https://emscripten.org/docs/api_reference/Filesystem-API.html#persistent-data>`_.\\n   *\\n   * While all of the file systems implementations are enabled, only the default\\n   * ``MEMFS`` is guaranteed to work in all runtime settings. The implementations\\n   * are available as members of ``FS.filesystems``:\\n   * ``IDBFS``, ``NODEFS``, ``PROXYFS``, ``WORKERFS``.\\n   *\\n   * @type {FS} The Emscripten File System API.\\n   */\\n  const FS = Module.FS;\\n\\n  let namespace = {\\n    globals,\\n    FS,\\n    pyodide_py,\\n    version,\\n    loadPackage,\\n    loadPackagesFromImports,\\n    loadedPackages,\\n    isPyProxy,\\n    pyimport,\\n    runPython,\\n    runPythonAsync,\\n    registerJsModule,\\n    unregisterJsModule,\\n    setInterruptBuffer,\\n    toPy,\\n    registerComlink,\\n    PythonError,\\n    PyBuffer,\\n  };\\n\\n  namespace._module = Module; // @private\\n  Module.public_api = namespace;\\n  return namespace;\\n}\\n\",\"/**\\n * The main bootstrap code for loading pyodide.\\n */\\nimport { Module, setStandardStreams } from \\\"./module.js\\\";\\nimport {\\n  loadScript,\\n  initializePackageIndex,\\n  loadPackage,\\n} from \\\"./load-pyodide.js\\\";\\nimport { makePublicAPI, registerJsModule } from \\\"./api.js\\\";\\nimport \\\"./pyproxy.gen.js\\\";\\n\\nimport { wrapNamespace } from \\\"./pyproxy.gen.js\\\";\\n\\n/**\\n * @typedef {import('./pyproxy.gen').PyProxy} PyProxy\\n * @typedef {import('./pyproxy.gen').PyProxyWithLength} PyProxyWithLength\\n * @typedef {import('./pyproxy.gen').PyProxyWithGet} PyProxyWithGet\\n * @typedef {import('./pyproxy.gen').PyProxyWithSet} PyProxyWithSet\\n * @typedef {import('./pyproxy.gen').PyProxyWithHas} PyProxyWithHas\\n * @typedef {import('./pyproxy.gen').PyProxyIterable} PyProxyIterable\\n * @typedef {import('./pyproxy.gen').PyProxyIterator} PyProxyIterator\\n * @typedef {import('./pyproxy.gen').PyProxyAwaitable} PyProxyAwaitable\\n * @typedef {import('./pyproxy.gen').PyProxyBuffer} PyProxyBuffer\\n * @typedef {import('./pyproxy.gen').PyProxyCallable} PyProxyCallable\\n *\\n * @typedef {import('./pyproxy.gen').Py2JsResult} Py2JsResult\\n *\\n * @typedef {import('./pyproxy.gen').TypedArray} TypedArray\\n * @typedef {import('./pyproxy.gen').PyBuffer} PyBuffer\\n */\\n\\n/**\\n * Dump the Python traceback to the browser console.\\n *\\n * @private\\n */\\nModule.dump_traceback = function () {\\n  let fd_stdout = 1;\\n  Module.__Py_DumpTraceback(fd_stdout, Module._PyGILState_GetThisThreadState());\\n};\\n\\nlet fatal_error_occurred = false;\\n/**\\n * Signal a fatal error.\\n *\\n * Dumps the Python traceback, shows a Javascript traceback, and prints a clear\\n * message indicating a fatal error. It then dummies out the public API so that\\n * further attempts to use Pyodide will clearly indicate that Pyodide has failed\\n * and can no longer be used. pyodide._module is left accessible and it is\\n * possible to continue using Pyodide for debugging purposes if desired.\\n *\\n * @argument e {Error} The cause of the fatal error.\\n * @private\\n */\\nModule.fatal_error = function (e) {\\n  if (fatal_error_occurred) {\\n    console.error(\\\"Recursive call to fatal_error. Inner error was:\\\");\\n    console.error(e);\\n    return;\\n  }\\n  fatal_error_occurred = true;\\n  console.error(\\n    \\\"Pyodide has suffered a fatal error. Please report this to the Pyodide maintainers.\\\"\\n  );\\n  console.error(\\\"The cause of the fatal error was:\\\");\\n  if (Module.inTestHoist) {\\n    // Test hoist won't print the error object in a useful way so convert it to\\n    // string.\\n    console.error(e.toString());\\n    console.error(e.stack);\\n  } else {\\n    console.error(e);\\n  }\\n  try {\\n    Module.dump_traceback();\\n    for (let key of Object.keys(Module.public_api)) {\\n      if (key.startsWith(\\\"_\\\") || key === \\\"version\\\") {\\n        continue;\\n      }\\n      Object.defineProperty(Module.public_api, key, {\\n        enumerable: true,\\n        configurable: true,\\n        get: () => {\\n          throw new Error(\\n            \\\"Pyodide already fatally failed and can no longer be used.\\\"\\n          );\\n        },\\n      });\\n    }\\n    if (Module.on_fatal) {\\n      Module.on_fatal(e);\\n    }\\n  } catch (err2) {\\n    console.error(\\\"Another error occurred while handling the fatal error:\\\");\\n    console.error(err2);\\n  }\\n  throw e;\\n};\\n\\n/**\\n * Run Python code in the simplest way possible. The primary purpose of this\\n * method is for bootstrapping. It is also useful for debugging: If the Python\\n * interpreter is initialized successfully then it should be possible to use\\n * this method to run Python code even if everything else in the Pyodide\\n * `core` module fails.\\n *\\n * The differences are:\\n *    1. `runPythonSimple` doesn't return anything (and so won't leak\\n *        PyProxies)\\n *    2. `runPythonSimple` doesn't require access to any state on the\\n *       Javascript `pyodide` module.\\n *    3. `runPython` uses `pyodide.eval_code`, whereas `runPythonSimple` uses\\n *       `PyRun_String` which is the C API for `eval` / `exec`.\\n *    4. `runPythonSimple` runs with `globals` a separate dict which is called\\n *       `init_dict` (keeps global state private)\\n *    5. `runPythonSimple` doesn't dedent the argument\\n *\\n * When `core` initialization is completed, the globals for `runPythonSimple`\\n * is made available as `Module.init_dict`.\\n *\\n * @private\\n */\\nModule.runPythonSimple = function (code) {\\n  let code_c_string = Module.stringToNewUTF8(code);\\n  let errcode;\\n  try {\\n    errcode = Module._run_python_simple_inner(code_c_string);\\n  } catch (e) {\\n    Module.fatal_error(e);\\n  } finally {\\n    Module._free(code_c_string);\\n  }\\n  if (errcode === -1) {\\n    Module._pythonexc2js();\\n  }\\n};\\n\\n/**\\n * The Javascript/Wasm call stack is too small to handle the default Python call\\n * stack limit of 1000 frames. Here, we determine the Javascript call stack\\n * depth available, and then divide by 50 (determined heuristically) to set the\\n * maximum Python call stack depth.\\n *\\n * @private\\n */\\nfunction fixRecursionLimit() {\\n  let depth = 0;\\n  function recurse() {\\n    depth += 1;\\n    recurse();\\n  }\\n  try {\\n    recurse();\\n  } catch (err) {}\\n\\n  let recursionLimit = Math.min(depth / 25, 500);\\n  Module.runPythonSimple(\\n    `import sys; sys.setrecursionlimit(int(${recursionLimit}))`\\n  );\\n}\\n/**\\n * Load the main Pyodide wasm module and initialize it.\\n *\\n * Only one copy of Pyodide can be loaded in a given Javascript global scope\\n * because Pyodide uses global variables to load packages. If an attempt is made\\n * to load a second copy of Pyodide, :any:`loadPyodide` will throw an error.\\n * (This can be fixed once `Firefox adopts support for ES6 modules in webworkers\\n * <https://bugzilla.mozilla.org/show_bug.cgi?id=1247687>`_.)\\n *\\n * @param {{ indexURL : string, fullStdLib? : boolean = true, stdin?: () => string, stdout?: (text: string) => void, stderr?: (text: string) => void }} config\\n * @param {string} config.indexURL - The URL from which Pyodide will load\\n * packages\\n * @param {boolean} config.fullStdLib - Load the full Python standard library.\\n * Setting this to false excludes following modules: distutils.\\n * Default: true\\n * @param {undefined | (() => string)} config.stdin - Override the standard input callback. Should ask the user for one line of input.\\n * Default: undefined\\n * @param {undefined | ((text: string) => void)} config.stdout - Override the standard output callback.\\n * Default: undefined\\n * @param {undefined | ((text: string) => void)} config.stderr - Override the standard error output callback.\\n * Default: undefined\\n * @returns The :ref:`js-api-pyodide` module.\\n * @memberof globalThis\\n * @async\\n */\\nexport async function loadPyodide(config) {\\n  const default_config = {\\n    fullStdLib: true,\\n    jsglobals: globalThis,\\n    stdin: globalThis.prompt ? globalThis.prompt : undefined,\\n  };\\n  config = Object.assign(default_config, config);\\n  if (globalThis.__pyodide_module) {\\n    if (globalThis.languagePluginURL) {\\n      throw new Error(\\n        \\\"Pyodide is already loading because languagePluginURL is defined.\\\"\\n      );\\n    } else {\\n      throw new Error(\\\"Pyodide is already loading.\\\");\\n    }\\n  }\\n  // A global \\\"mount point\\\" for the package loaders to talk to pyodide\\n  // See \\\"--export-name=__pyodide_module\\\" in buildpkg.py\\n  globalThis.__pyodide_module = Module;\\n  loadPyodide.inProgress = true;\\n  if (!config.indexURL) {\\n    throw new Error(\\\"Please provide indexURL parameter to loadPyodide\\\");\\n  }\\n  let baseURL = config.indexURL;\\n  if (!baseURL.endsWith(\\\"/\\\")) {\\n    baseURL += \\\"/\\\";\\n  }\\n  Module.indexURL = baseURL;\\n  let packageIndexReady = initializePackageIndex(baseURL);\\n\\n  setStandardStreams(config.stdin, config.stdout, config.stderr);\\n\\n  Module.locateFile = (path) => baseURL + path;\\n  let moduleLoaded = new Promise((r) => (Module.postRun = r));\\n\\n  const scriptSrc = `${baseURL}pyodide.asm.js`;\\n  await loadScript(scriptSrc);\\n\\n  // _createPyodideModule is specified in the Makefile by the linker flag:\\n  // `-s EXPORT_NAME=\\\"'_createPyodideModule'\\\"`\\n  await _createPyodideModule(Module);\\n\\n  // There is some work to be done between the module being \\\"ready\\\" and postRun\\n  // being called.\\n  await moduleLoaded;\\n\\n  fixRecursionLimit();\\n  let pyodide = makePublicAPI();\\n\\n  // Bootstrap steps:\\n  //\\n  //   1. _pyodide_core is ready now so we can call _pyodide.register_js_finder\\n  //   2. Use the jsfinder to register the js and pyodide_js packages\\n  //   3. Import pyodide, this requires _pyodide_core, js and pyodide_js to be\\n  //      ready.\\n  //   4. Add the pyodide_py and Python __main__.__dict__ objects to pyodide_js\\n  Module.runPythonSimple(`\\ndef temp(pyodide_js, Module, jsglobals):\\n  from _pyodide._importhook import register_js_finder\\n  jsfinder = register_js_finder()\\n  jsfinder.register_js_module(\\\"js\\\", jsglobals)\\n  jsfinder.register_js_module(\\\"pyodide_js\\\", pyodide_js)\\n\\n  import pyodide\\n  import __main__\\n  import builtins\\n\\n  globals = __main__.__dict__\\n  globals.update(builtins.__dict__)\\n\\n  Module.version = pyodide.__version__\\n  Module.globals = globals\\n  Module.builtins = builtins.__dict__\\n  Module.pyodide_py = pyodide\\n  print(\\\"Python initialization complete\\\")\\n`);\\n\\n  Module.init_dict.get(\\\"temp\\\")(pyodide, Module, config.jsglobals);\\n  // Module.runPython works starting from here!\\n\\n  // Wrap \\\"globals\\\" in a special Proxy that allows `pyodide.globals.x` access.\\n  // TODO: Should we have this?\\n  Module.globals = wrapNamespace(Module.globals);\\n\\n  pyodide.globals = Module.globals;\\n  pyodide.pyodide_py = Module.pyodide_py;\\n  pyodide.version = Module.version;\\n\\n  await packageIndexReady;\\n  if (config.fullStdLib) {\\n    await loadPackage([\\\"distutils\\\"]);\\n  }\\n\\n  return pyodide;\\n}\\nglobalThis.loadPyodide = loadPyodide;\\n\\nif (globalThis.languagePluginUrl) {\\n  console.warn(\\n    \\\"languagePluginUrl is deprecated and will be removed in version 0.18.0, \\\" +\\n      \\\"instead use loadPyodide({ indexURL : <some_url>})\\\"\\n  );\\n\\n  /**\\n   * A deprecated parameter that specifies the Pyodide ``indexURL``. If present,\\n   * Pyodide will automatically invoke\\n   * ``loadPyodide({indexURL : languagePluginUrl})``\\n   * and will store the resulting promise in\\n   * :any:`globalThis.languagePluginLoader`. Use :any:`loadPyodide`\\n   * directly instead of defining this.\\n   *\\n   * @type String\\n   * @deprecated Will be removed in version 0.18.0\\n   */\\n  globalThis.languagePluginUrl;\\n\\n  /**\\n   * A deprecated promise that resolves to ``undefined`` when Pyodide is\\n   * finished loading. Only created if :any:`languagePluginUrl` is\\n   * defined. Instead use :any:`loadPyodide`.\\n   *\\n   * @type Promise\\n   * @deprecated Will be removed in version 0.18.0\\n   */\\n  globalThis.languagePluginLoader = loadPyodide({\\n    indexURL: globalThis.languagePluginUrl,\\n  }).then((pyodide) => (self.pyodide = pyodide));\\n}\\n\"],\"names\":[\"Module\",\"setStandardStreams\",\"stdin\",\"stdout\",\"stderr\",\"print\",\"printErr\",\"preRun\",\"FS\",\"init\",\"encoder\",\"TextEncoder\",\"input\",\"Uint8Array\",\"inputIndex\",\"stdinWrapper\",\"text\",\"TypeError\",\"endsWith\",\"encode\",\"length\",\"character\",\"e\",\"console\",\"error\",\"createStdinWrapper\",\"noImageDecoding\",\"noAudioDecoding\",\"noWasmDecoding\",\"preloadedWasm\",\"IN_NODE\",\"process\",\"release\",\"name\",\"baseURL\",\"async\",\"initializePackageIndex\",\"indexURL\",\"package_json\",\"fsPromises\",\"import\",\"package_string\",\"readFile\",\"JSON\",\"parse\",\"response\",\"fetch\",\"json\",\"packages\",\"Error\",\"_import_name_to_package_name\",\"Map\",\"Object\",\"keys\",\"import_name\",\"imports\",\"set\",\"package_uri_regexp\",\"_uri_to_package_name\",\"package_uri\",\"match\",\"exec\",\"toLowerCase\",\"loadScript\",\"globalThis\",\"document\",\"url\",\"importScripts\",\"pathPromise\",\"then\",\"M\",\"default\",\"fetchPromise\",\"vmPromise\",\"includes\",\"runInThisContext\",\"path\",\"resolve\",\"recursiveDependencies\",\"names\",\"_messageCallback\",\"errorCallback\",\"sharedLibsOnly\",\"toLoad\",\"addPackage\",\"has\",\"undefined\",\"loadedPackages\",\"dep_name\",\"depends\",\"pkgname\",\"get\",\"onlySharedLibs\",\"c\",\"shared_library\",\"_loadPackage\",\"messageCallback\",\"locateFile\",\"pkg\",\"replace\",\"size\",\"Promise\",\"Array\",\"from\",\"join\",\"scriptPromises\",\"uri\",\"loaded\",\"scriptSrc\",\"push\",\"catch\",\"delete\",\"all\",\"promise\",\"r\",\"monitorRunDependencies\",\"n\",\"addRunDependency\",\"removeRunDependency\",\"resolveMsg\",\"packageList\",\"reportUndefinedSymbols\",\"runPythonSimple\",\"_package_lock\",\"loadPackage\",\"isPyProxy\",\"temp\",\"toJs\",\"destroy\",\"isArray\",\"oldPlugin\",\"sharedLibraryNames\",\"sharedLibraryPackagesToLoad\",\"p\",\"preloadPlugins\",\"canHandle\",\"loadPluginOverride\",\"Proxy\",\"obj\",\"prop\",\"bytes\",\"apply\",\"arguments\",\"this\",\"loadDynamicLibrary\",\"global\",\"nodelete\",\"unshift\",\"releaseLock\",\"old_lock\",\"acquirePackageLock\",\"log\",\"shift\",\"jsobj\",\"$$\",\"type\",\"FinalizationRegistry\",\"finalizationRegistry\",\"ptr\",\"cache\",\"pyproxy_decref_cache\",\"_Py_DecRef\",\"fatal_error\",\"register\",\"unregister\",\"trace_pyproxy_alloc\",\"trace_pyproxy_dealloc\",\"pyproxy_alloc_map\",\"_getPtr\",\"destroyed_msg\",\"enable_pyproxy_allocation_tracing\",\"proxy\",\"stack\",\"disable_pyproxy_allocation_tracing\",\"pyproxy_new\",\"ptrobj\",\"target\",\"flags\",\"_pyproxy_getflags\",\"cls\",\"getPyProxyClass\",\"Reflect\",\"construct\",\"Function\",\"prototype\",\"create\",\"cacheId\",\"hiwire\",\"new_value\",\"refcnt\",\"defineProperty\",\"value\",\"borrowed\",\"_Py_IncRef\",\"PyProxyHandlers\",\"pyproxyClassMap\",\"result\",\"descriptors\",\"feature_flag\",\"methods\",\"PyProxyLengthMethods\",\"PyProxyGetItemMethods\",\"PyProxySetItemMethods\",\"PyProxyContainsMethods\",\"PyProxyIterableMethods\",\"PyProxyIteratorMethods\",\"PyProxyAwaitableMethods\",\"PyProxyBufferMethods\",\"PyProxyCallableMethods\",\"assign\",\"getOwnPropertyDescriptors\",\"constructor\",\"getOwnPropertyDescriptor\",\"PyProxyClass\",\"$$flags\",\"new_proto\",\"NewPyProxyClass\",\"PyProxy_getPtr\",\"pyproxy_mark_borrowed\",\"cache_map\",\"pop_value\",\"proxy_id\",\"values\",\"pyproxy_destroy\",\"callPyObjectKwargs\",\"jsargs\",\"kwargs\",\"pop\",\"num_pos_args\",\"kwargs_names\",\"kwargs_values\",\"num_kwargs\",\"idresult\",\"idargs\",\"idkwnames\",\"__pyproxy_apply\",\"decref\",\"_pythonexc2js\",\"callPyObject\",\"Symbol\",\"toStringTag\",\"__pyproxy_type\",\"toString\",\"jsref_repr\",\"__pyproxy_repr\",\"copy\",\"depth\",\"pyproxies\",\"create_pyproxies\",\"dict_converter\",\"proxies_id\",\"dict_converter_id\",\"_python2js_custom_dict_converter\",\"supportsLength\",\"supportsGet\",\"supportsSet\",\"supportsHas\",\"isIterable\",\"isIterator\",\"isAwaitable\",\"isBuffer\",\"isCallable\",\"_PyObject_Size\",\"key\",\"idkey\",\"__pyproxy_getitem\",\"_PyErr_Occurred\",\"errcode\",\"idval\",\"__pyproxy_setitem\",\"__pyproxy_delitem\",\"__pyproxy_contains\",\"TempError\",\"iterator\",\"iterptr\",\"token\",\"_PyObject_GetIter\",\"item\",\"__pyproxy_iter_next\",\"iter_helper\",\"next\",\"arg\",\"done\",\"idarg\",\"__pyproxyGen_Send\",\"__pyproxyGen_FetchStopIterationValue\",\"isExtensible\",\"jskey\",\"startsWith\",\"slice\",\"__pyproxy_hasattr\",\"python_hasattr\",\"__pyproxy_getattr\",\"python_getattr\",\"jsval\",\"descr\",\"writable\",\"__pyproxy_setattr\",\"python_setattr\",\"deleteProperty\",\"__pyproxy_delattr\",\"python_delattr\",\"configurable\",\"ownKeys\",\"__pyproxy_ownKeys\",\"jsthis\",\"_ensure_future\",\"resolveHandle\",\"rejectHandle\",\"reject\",\"resolve_handle_id\",\"reject_handle_id\",\"__pyproxy_ensure_future\",\"onFulfilled\",\"onRejected\",\"finally\",\"onFinally\",\"call\",\"callKwargs\",\"type_to_array_map\",\"Int8Array\",\"Uint8ClampedArray\",\"Int16Array\",\"Uint16Array\",\"Int32Array\",\"Uint32Array\",\"BigInt64Array\",\"BigUint64Array\",\"Float32Array\",\"Float64Array\",\"DataView\",\"getBuffer\",\"ArrayType\",\"HEAPU32\",\"orig_stack_ptr\",\"stackSave\",\"buffer_struct_ptr\",\"stackAlloc\",\"_buffer_struct_size\",\"this_ptr\",\"__pyproxy_get_buffer\",\"startByteOffset\",\"minByteOffset\",\"maxByteOffset\",\"readonly\",\"format_ptr\",\"itemsize\",\"shape\",\"strides\",\"view_ptr\",\"c_contiguous\",\"f_contiguous\",\"format\",\"UTF8ToString\",\"stackRestore\",\"success\",\"bigEndian\",\"processBufferFormatString\",\"alignment\",\"parseInt\",\"numBytes\",\"data\",\"numEntries\",\"offset\",\"buffer\",\"i\",\"PyBuffer\",\"ndim\",\"nbytes\",\"_view_ptr\",\"_released\",\"_PyBuffer_Release\",\"_PyMem_Free\",\"globalsPropertyAccessWarned\",\"globalsPropertyAccessWarningMsg\",\"NamespaceProxyHandlers\",\"warn\",\"Set\",\"iter\",\"add\",\"pyodide_py\",\"globals\",\"PythonError\",\"message\",\"runPython\",\"code\",\"eval_code\",\"loadPackagesFromImports\",\"pyimports\",\"find_imports\",\"packageNames\",\"pyimport\",\"runPythonAsync\",\"coroutine\",\"eval_code_async\",\"registerJsModule\",\"module\",\"register_js_module\",\"registerComlink\",\"Comlink\",\"_Comlink\",\"unregisterJsModule\",\"unregister_js_module\",\"toPy\",\"obj_id\",\"py_result\",\"__js2python_convert\",\"_JsProxy_Check\",\"_python2js\",\"setInterruptBuffer\",\"interrupt_buffer\",\"saveState\",\"_state\",\"save_state\",\"restoreState\",\"state\",\"restore_state\",\"dump_traceback\",\"__Py_DumpTraceback\",\"_PyGILState_GetThisThreadState\",\"fatal_error_occurred\",\"loadPyodide\",\"config\",\"default_config\",\"fullStdLib\",\"jsglobals\",\"prompt\",\"__pyodide_module\",\"languagePluginURL\",\"inProgress\",\"packageIndexReady\",\"moduleLoaded\",\"postRun\",\"_createPyodideModule\",\"recurse\",\"err\",\"recursionLimit\",\"Math\",\"min\",\"fixRecursionLimit\",\"pyodide\",\"namespace\",\"version\",\"_module\",\"public_api\",\"makePublicAPI\",\"ns\",\"init_dict\",\"inTestHoist\",\"enumerable\",\"on_fatal\",\"err2\",\"code_c_string\",\"stringToNewUTF8\",\"_run_python_simple_inner\",\"_free\",\"languagePluginUrl\",\"languagePluginLoader\",\"self\"],\"mappings\":\"gSAKO,IAAIA,OAAS,GAYb,SAASC,mBAAmBC,MAAOC,OAAQC,QAE5CD,SACFH,OAAOK,MAAQF,QAGbC,SACFJ,OAAOM,SAAWF,QAIhBF,QACFF,OAAOO,OAAS,CACd,WACEP,OAAOQ,GAAGC,KAMlB,SAA4BP,OAI1B,MAAMQ,QAAU,IAAIC,YACpB,IAAIC,MAAQ,IAAIC,WAAW,GACvBC,YAAc,EAClB,SAASC,eACP,IACE,IAAoB,IAAhBD,WAAmB,CACrB,IAAIE,KAAOd,QACX,GAAIc,MAAAA,KACF,OAAO,KAET,GAAoB,iBAATA,KACT,MAAM,IAAIC,UACR,wEAAwED,SAGvEA,KAAKE,SAAS,QACjBF,MAAQ,MAEVJ,MAAQF,QAAQS,OAAOH,MACvBF,WAAa,EAGf,GAAIA,WAAaF,MAAMQ,OAAQ,CAC7B,IAAIC,UAAYT,MAAME,YAEtB,OADAA,aACOO,UAGP,OADAP,YAAc,EACP,KAET,MAAOQ,GAKP,MAFAC,QAAQC,MAAM,0BACdD,QAAQC,MAAMF,GACRA,GAGV,OAAOP,aAhDcU,CAAmBvB,OAAQ,KAAM,SAzBxDF,OAAO0B,iBAAkB,EACzB1B,OAAO2B,iBAAkB,EACzB3B,OAAO4B,gBAAiB,EACxB5B,OAAO6B,cAAgB,GCPvB,MAAMC,QACe,oBAAZC,SAAoD,cAAzBA,QAAQC,QAAQC,KAIpD,IAAIC,QAKGC,eAAeC,uBAAuBC,UAE3C,IAAIC,aACJ,GAFAJ,QAAUG,SAENP,QAAS,CACX,MAAMS,iBAAmBC,OAAO,eAC1BC,qBAAuBF,WAAWG,SACtC,GAAGL,yBAELC,aAAeK,KAAKC,MAAMH,oBACrB,CACL,IAAII,eAAiBC,MAAM,GAAGT,yBAC9BC,mBAAqBO,SAASE,OAEhC,IAAKT,aAAaU,SAChB,MAAM,IAAIC,MACR,sEAGJjD,OAAOgD,SAAWV,aAAaU,SAG/BhD,OAAOkD,6BAA+B,IAAIC,IAC1C,IAAK,IAAIlB,QAAQmB,OAAOC,KAAKrD,OAAOgD,UAClC,IAAK,IAAIM,eAAetD,OAAOgD,SAASf,MAAMsB,QAC5CvD,OAAOkD,6BAA6BM,IAAIF,YAAarB,MAO3D,MAGMwB,mBAAqB,oBAE3B,SAASC,qBAAqBC,aAC5B,IAAIC,MAAQH,mBAAmBI,KAAKF,aACpC,GAAIC,MACF,OAAOA,MAAM,GAAGE,cASb,IAAIC,WACX,GAAIC,WAAWC,SAEbF,WAAcG,KAAQ1B,OAAO0B,UACxB,GAAIF,WAAWG,cAEpBJ,WAAa5B,MAAO+B,MAElBF,WAAWG,cAAcD,UAEtB,CAAA,GAAuB,oBAAZnC,SAAoD,SAAzBA,QAAQC,QAAQC,KAkB3D,MAAM,IAAIgB,MAAM,wCAlB4D,CAC5E,MAAMmB,YAAc5B,OAAO,QAAQ6B,MAAMC,GAAMA,EAAEC,UAC3CC,aAAehC,OAAO,cAAc6B,MAAMC,GAAMA,EAAEC,UAClDE,UAAYjC,OAAO,MAAM6B,MAAMC,GAAMA,EAAEC,UAC7CR,WAAa5B,MAAO+B,MAClB,GAAIA,IAAIQ,SAAS,OAAQ,CAEvB,MAAM5B,YAAc0B,oBACHC,WACdE,6BAA8B7B,MAAMoB,MAAMlD,YACxC,CAGL,MAAM4D,WAAaR,kBACb5B,OAAOoC,KAAKC,QAAQX,SAOhC,SAASY,sBACPC,MACAC,iBACAC,cACAC,gBAEA,MAAMC,OAAS,IAAIhC,IAEbiC,WAAcnD,OAElB,GADAA,KAAOA,KAAK6B,eACRqB,OAAOE,IAAIpD,QAGfkD,OAAO3B,IAAIvB,KA7DS,wBAiESqD,IAAzBC,eAAetD,OAGnB,IAAK,IAAIuD,YAAYxF,OAAOgD,SAASf,MAAMwD,QACzCL,WAAWI,WAGf,IAAK,IAAIvD,QAAQ8C,MAAO,CACtB,MAAMW,QAAUhC,qBAAqBzB,MACjCkD,OAAOE,IAAIK,UAAYP,OAAOQ,IAAID,WAAazD,KACjDgD,cACE,wBAAwBS,gBAAgBzD,YAAYkD,OAAOQ,IACzDD,iBAKUJ,IAAZI,SAIJzD,KAAOA,KAAK6B,cACR7B,QAAQjC,OAAOgD,SACjBoC,WAAWnD,MAGbgD,cAAc,6BAA6BhD,UARzCkD,OAAO3B,IAAIkC,QAASzD,MAUxB,GAAIiD,eAAgB,CAClB,IAAIU,eAAiB,IAAIzC,IACzB,IAAK,IAAI0C,KAAKV,OAAQ,CACpB,IAAIlD,KAAO4D,EAAE,GACT7F,OAAOgD,SAASf,MAAM6D,gBACxBF,eAAepC,IAAIvB,KAAMkD,OAAOQ,IAAI1D,OAGxC,OAAO2D,eAET,OAAOT,OAGThD,eAAe4D,aAAahB,MAAOiB,gBAAiBf,eAElD,IAAIE,OAASL,sBAAsBC,MAAOiB,EAAiBf,eAgB3D,GAZAjF,OAAOiG,WAAcrB,OAEnB,IAAIsB,IAAMtB,KAAKuB,QAAQ,UAAW,IAClC,GAAIhB,OAAOE,IAAIa,KAAM,CACnB,IAAIvC,YAAcwB,OAAOQ,IAAIO,KAC7B,GArHkB,mBAqHdvC,YACF,OAAOA,YAAYwC,QAAQ,QAAS,SAGxC,OAAOjE,QAAU0C,MAGC,IAAhBO,OAAOiB,KACT,OAAOC,QAAQxB,QAAQ,2BAGvBmB,gBAAgB,WADGM,MAAMC,KAAKpB,OAAO9B,QAAQmD,KAAK,SAMpD,IAAIC,eAAiB,GAErB,IAAK,IAAKP,IAAKQ,OAAQvB,OAAQ,CAC7B,IAAIwB,OAASpB,eAAeW,KAC5B,QAAeZ,IAAXqB,OAAsB,CAGxB,GAAIA,SAAWD,KA5IG,oBA4IIA,IAAyB,CAC7CV,gBAAgB,GAAGE,2BAA2BS,UAC9C,SAEA1B,cACE,4CAA4CiB,YAAYQ,uCACnBC,oEAGvC,SAGJ,IAAIjB,QAAW1F,OAAOgD,SAASkD,MAAQlG,OAAOgD,SAASkD,KAAKjE,MAASiE,IACjEU,UAzJgB,oBAyJJF,IAA0B,GAAGxE,UAAUwD,aAAegB,IACtEV,gBAAgB,WAAWE,YAAYU,aACvCH,eAAeI,KACb9C,WAAW6C,WAAWE,OAAOxF,IAC3B2D,cAAc,kCAAkC2B,YAAatF,GAC7D6D,OAAO4B,OAAOb,SA4BpB,UACQG,QAAQW,IAAIP,gBAAgBpC,MApBpC,WACE,MAAM4C,QAAU,IAAIZ,SAASa,IAC3BlH,OAAOmH,uBAA0BC,IACrB,IAANA,GACFF,QASN,OAFAlH,OAAOqH,iBAAiB,SACxBrH,OAAOsH,oBAAoB,SACpBL,0BASAjH,OAAOmH,uBAGhB,IAMII,WANAC,YAAc,GAClB,IAAK,IAAKtB,IAAKQ,OAAQvB,OACrBI,eAAeW,KAAOQ,IACtBc,YAAYX,KAAKX,KAInB,GAAIsB,YAAYpG,OAAS,EAAG,CAE1BmG,WAAa,UADMC,YAAYhB,KAAK,aAGpCe,WAAa,qBAGfvH,OAAOyH,yBAEPzB,gBAAgBuB,YAIhBvH,OAAO0H,gBACL,qDAMJ,IAAIC,cAAgBtB,QAAQxB,UAwBrB,IAAIU,eAAiB,GA0BrBpD,eAAeyF,YAAY7C,MAAOiB,gBAAiBf,eACxD,GAAIjF,OAAO6H,UAAU9C,OAAQ,CAC3B,IAAI+C,KACJ,IACEA,KAAO/C,MAAMgD,eAEbhD,MAAMiD,UAERjD,MAAQ+C,KAGLxB,MAAM2B,QAAQlD,SACjBA,MAAQ,CAACA,QAIX,IAsBImD,UAtBAC,mBAAqB,GACzB,IACE,IAAIC,4BAA8BtD,sBAChCC,MACAiB,EACAf,eACA,GAEF,IAAK,IAAIiB,OAAOkC,4BACdD,mBAAmBtB,KAAKX,IAAI,IAE9B,MAAO5E,IAYT,IAAK,IAAI+G,KAAKrI,OAAOsI,eACnB,GAAItI,OAAOsI,eAAeD,GAAGE,UAAU,WAAY,CACjDL,UAAYlI,OAAOsI,eAAeD,GAClC,MAsBJ,IAAIG,mBAAqB,IAAIC,MAAMP,UAnBV,CACvBvC,IAAK,SAAU+C,IAAKC,MAClB,MAAa,WAATA,KACK,SAAUC,MAAO3G,MACtByG,IAAIC,MAAME,MAAMH,IAAKI,WACrBC,KAA2B,qBAAIA,KAA2B,qBAAE1E,MAC1D,WACErE,OAAOgJ,mBAAmB/G,KAAM,CAC9BgH,QAAQ,EACRC,UAAU,QAMXR,IAAIC,SAMjB3I,OAAOsI,eAAea,QAAQX,oBAE9B,IAAIY,kBA/GNjH,iBACE,IACIiH,YADAC,SAAW1B,cAIf,OAFAA,cAAgB,IAAItB,SAASxB,SAAauE,YAAcvE,gBAClDwE,SACCD,YA0GiBE,GACxB,UACQvD,aACJoC,mBACAnC,iBAAmBzE,QAAQgI,IAC3BtE,eAAiB1D,QAAQC,OAE3BxB,OAAOsI,eAAekB,MAAMhB,0BACtBzC,aACJhB,MACAiB,iBAAmBzE,QAAQgI,IAC3BtE,eAAiB1D,QAAQC,eAG3B4H,eC/OG,SAASvB,UAAU4B,OACxB,QAASA,YAAsBnE,IAAbmE,MAAMC,IAAsC,YAAlBD,MAAMC,GAAGC,KAEvD3J,OAAO6H,UAAYA,UAEf7D,WAAW4F,qBACb5J,OAAO6J,qBAAuB,IAAID,sBAAqB,EAAEE,IAAKC,UAC5DC,qBAAqBD,OACrB,IACE/J,OAAOiK,WAAWH,KAClB,MAAOxI,GAGPtB,OAAOkK,YAAY5I,OAgBvBtB,OAAO6J,qBAAuB,CAAEM,aAAeC,gBAIjD,IAEIC,oBACAC,sBAHAC,kBAAoB,IAAIpH,IAuE5B,SAASqH,QAAQf,OACf,IAAIK,IAAML,MAAMC,GAAGI,IACnB,GAAY,OAARA,IACF,MAAM,IAAI7G,MACRwG,MAAMC,GAAGe,eAAiB,qCAG9B,OAAOX,IA7ET9J,OAAOuK,kBAAoBA,kBAI3BvK,OAAO0K,kCAAoC,WACzCL,oBAAsB,SAAUM,OAC9BJ,kBAAkB/G,IAAImH,MAAO1H,QAAQ2H,QAEvCN,sBAAwB,SAAUK,OAChCJ,kBAAkBxD,OAAO4D,SAG7B3K,OAAO6K,mCAAqC,WAC1CR,oBAAsB,SAAUM,SAChCL,sBAAwB,SAAUK,UAEpC3K,OAAO6K,qCAeP7K,OAAO8K,YAAc,SAAUC,OAAQhB,OACrC,IAMIiB,OANAC,MAAQjL,OAAOkL,kBAAkBH,QACjCI,IAAMnL,OAAOoL,gBAAgBH,OAoBjC,OAdIA,OAGFD,OAASK,QAAQC,UAAUC,SAAU,GAAIJ,YAIlCH,OAAO5J,cACP4J,OAAO/I,KAEd+I,OAAOQ,eAAYlG,GAEnB0F,OAAS5H,OAAOqI,OAAON,IAAIK,YAExBzB,MAAO,CAIVA,MAAQ,CAAE2B,QADI1L,OAAO2L,OAAOC,UAAU,IAAIzI,KACvB0I,OAAQ,GAE7B9B,MAAM8B,SACNzI,OAAO0I,eAAed,OAAQ,KAAM,CAClCe,MAAO,CAAEjC,IAAKiB,OAAQpB,KAAM,UAAWqC,YAAiBjC,MAAAA,SAE1D/J,OAAOiM,WAAWlB,QAClB,IAAIJ,MAAQ,IAAIlC,MAAMuC,OAAQkB,iBAG9B,OAFA7B,oBAAoBM,OACpB3K,OAAO6J,qBAAqBM,SAASQ,MAAO,CAACI,OAAQhB,OAAQY,OACtDA,OAaT,IAAIwB,gBAAkB,IAAIhJ,IAS1BnD,OAAOoL,gBAAkB,SAAUH,OACjC,IAAImB,OAASD,gBAAgBxG,IAAIsF,OACjC,GAAImB,OACF,OAAOA,OAET,IAAIC,YAAc,GAClB,IAAK,IAAKC,aAAcC,UAAY,CAClC,GAAWC,sBACX,GAAWC,uBACX,GAAWC,uBACX,GAAWC,wBACX,IAAWC,wBACX,IAAWC,wBACX,IAAWC,yBACX,KAAWC,sBACX,KAAWC,yBAEP/B,MAAQqB,cACVlJ,OAAO6J,OACLZ,YACAjJ,OAAO8J,0BAA0BX,QAAQf,YAK/Ca,YAAYc,YAAc/J,OAAOgK,yBAC/BC,aAAa7B,UACb,eAEFpI,OAAO6J,OACLZ,YACAjJ,OAAO8J,0BAA0B,CAAEI,QAASrC,SAE9C,IAAIsC,UAAYnK,OAAOqI,OAAO4B,aAAa7B,UAAWa,aACtD,SAASmB,mBAGT,OAFAA,gBAAgBhC,UAAY+B,UAC5BpB,gBAAgB3I,IAAIyH,MAAOuC,iBACpBA,iBAITxN,OAAOyN,eAAiBjD,QACxBxK,OAAO0N,sBAAwB,SAAU/C,OACvCA,MAAMjB,GAAGsC,aAOX,SAAShC,qBAAqBD,OAC5B,GAAKA,QAGLA,MAAM8B,SACe,IAAjB9B,MAAM8B,QAAc,CACtB,IAAI8B,UAAY3N,OAAO2L,OAAOiC,UAAU7D,MAAM2B,SAC9C,IAAK,IAAImC,YAAYF,UAAUG,SAC7B9N,OAAO+N,gBACL/N,OAAO2L,OAAOiC,UAAUC,UAZ9B,wJAmBF7N,OAAO+N,gBAAkB,SAAUpD,MAAOF,eACxC,IAAIM,OAASP,QAAQG,OACrB3K,OAAO6J,qBAAqBO,WAAWO,OAIvCA,MAAMjB,GAAGI,IAAM,KACfa,MAAMjB,GAAGe,cAAgBA,cACzBT,qBAAqBW,MAAMjB,GAAGK,OAC9B,IACE/J,OAAOiK,WAAWc,QAClBT,sBAAsBK,OACtB,MAAOrJ,GACPtB,OAAOkK,YAAY5I,KAOvBtB,OAAOgO,mBAAqB,SAAUjD,UAAWkD,QAG/C,IAAIC,OAASD,OAAOE,MAChBC,aAAeH,OAAO7M,OACtBiN,aAAejL,OAAOC,KAAK6K,QAC3BI,cAAgBlL,OAAO0K,OAAOI,QAC9BK,WAAaF,aAAajN,OAC9B6M,OAAOpH,QAAQyH,eAEf,IAEIE,SAFAC,OAASzO,OAAO2L,OAAOC,UAAUqC,QACjCS,UAAY1O,OAAO2L,OAAOC,UAAUyC,cAExC,IACEG,SAAWxO,OAAO2O,gBAChB5D,OACA0D,OACAL,aACAM,UACAH,YAEF,MAAOjN,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAO2L,OAAOiD,OAAOH,QACrBzO,OAAO2L,OAAOiD,OAAOF,WAKvB,OAHiB,IAAbF,UACFxO,OAAO6O,gBAEF7O,OAAO2L,OAAOiC,UAAUY,WAGjCxO,OAAO8O,aAAe,SAAU/D,UAAWkD,QACzC,OAAOjO,OAAOgO,mBAAmBjD,UAAWkD,OAAQ,KAOtD,MAAMZ,aACJF,cACE,MAAM,IAAIlM,UAAU,gCAGtB0E,IAAKoJ,OAAOC,eACV,MAAO,UAkBTrF,WACE,IAAIoB,OAASP,QAAQzB,MACrB,OAAO/I,OAAO2L,OAAOiC,UAAU5N,OAAOiP,eAAelE,SAKvDmE,WACE,IACIC,WADApE,OAASP,QAAQzB,MAErB,IACEoG,WAAanP,OAAOoP,eAAerE,QACnC,MAAOzJ,GACPtB,OAAOkK,YAAY5I,GAKrB,OAHmB,IAAf6N,YACFnP,OAAO6O,gBAEF7O,OAAO2L,OAAOiC,UAAUuB,YAgBjCnH,QAAQyC,eACD1B,KAAKW,GAAGsC,UACXhM,OAAO+N,gBAAgBhF,KAAM0B,eAQjC4E,OACE,IAAItE,OAASP,QAAQzB,MACrB,OAAO/I,OAAO8K,YAAYC,OAAQhC,KAAKW,GAAGK,OA0B5ChC,MAAKuH,MACHA,OAAQ,EAAEC,UACVA,UAASC,iBACTA,oBAAwBC,eACxBA,gBACE,IACF,IACIjB,SACAkB,WAFA3E,OAASP,QAAQzB,MAGjB4G,kBAAoB,EAItBD,WAHGF,iBAEMD,UACIvP,OAAO2L,OAAOC,UAAU2D,WAExBvP,OAAO2L,OAAOC,UAAU,IAJxB,EAMX6D,iBACFE,kBAAoB3P,OAAO2L,OAAOC,UAAU6D,iBAE9C,IACEjB,SAAWxO,OAAO4P,iCAChB7E,OACAuE,MACAI,WACAC,mBAEF,MAAOrO,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAO2L,OAAOiD,OAAOc,YACrB1P,OAAO2L,OAAOiD,OAAOe,mBAKvB,OAHiB,IAAbnB,UACFxO,OAAO6O,gBAEF7O,OAAO2L,OAAOiC,UAAUY,UAOjCqB,iBACE,WAAU9G,KAAKuE,SAOjBwC,cACE,WAAU/G,KAAKuE,SAOjByC,cACE,WAAUhH,KAAKuE,SAOjB0C,cACE,WAAUjH,KAAKuE,SAOjB2C,aACE,YAAUlH,KAAKuE,SAOjB4C,aACE,YAAUnH,KAAKuE,SAOjB6C,cACE,YAAUpH,KAAKuE,SAOjB8C,WACE,aAAUrH,KAAKuE,SASjB+C,aACE,aAAUtH,KAAKuE,UASnB,MAAMd,qBAOJpL,aACE,IACIA,OADA2J,OAASP,QAAQzB,MAErB,IACE3H,OAASpB,OAAOsQ,eAAevF,QAC/B,MAAOzJ,GACPtB,OAAOkK,YAAY5I,GAKrB,OAHgB,IAAZF,QACFpB,OAAO6O,gBAEFzN,QAaX,MAAMqL,sBASJ9G,IAAI4K,KACF,IAEI/B,SAFAzD,OAASP,QAAQzB,MACjByH,MAAQxQ,OAAO2L,OAAOC,UAAU2E,KAEpC,IACE/B,SAAWxO,OAAOyQ,kBAAkB1F,OAAQyF,OAC5C,MAAOlP,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAO2L,OAAOiD,OAAO4B,OAEvB,GAAiB,IAAbhC,SAAgB,CAClB,IAAIxO,OAAO0Q,kBAGT,OAFA1Q,OAAO6O,gBAKX,OAAO7O,OAAO2L,OAAOiC,UAAUY,WASnC,MAAM9B,sBASJlJ,IAAI+M,IAAKxE,OACP,IAGI4E,QAHA5F,OAASP,QAAQzB,MACjByH,MAAQxQ,OAAO2L,OAAOC,UAAU2E,KAChCK,MAAQ5Q,OAAO2L,OAAOC,UAAUG,OAEpC,IACE4E,QAAU3Q,OAAO6Q,kBAAkB9F,OAAQyF,MAAOI,OAClD,MAAOtP,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAO2L,OAAOiD,OAAO4B,OACrBxQ,OAAO2L,OAAOiD,OAAOgC,QAEN,IAAbD,SACF3Q,OAAO6O,gBAUX9H,OAAOwJ,KACL,IAEII,QAFA5F,OAASP,QAAQzB,MACjByH,MAAQxQ,OAAO2L,OAAOC,UAAU2E,KAEpC,IACEI,QAAU3Q,OAAO8Q,kBAAkB/F,OAAQyF,OAC3C,MAAOlP,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAO2L,OAAOiD,OAAO4B,QAEN,IAAbG,SACF3Q,OAAO6O,iBAWb,MAAMlC,uBASJtH,IAAIkL,KACF,IAEInE,OAFArB,OAASP,QAAQzB,MACjByH,MAAQxQ,OAAO2L,OAAOC,UAAU2E,KAEpC,IACEnE,OAASpM,OAAO+Q,mBAAmBhG,OAAQyF,OAC3C,MAAOlP,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAO2L,OAAOiD,OAAO4B,OAKvB,OAHgB,IAAZpE,QACFpM,OAAO6O,gBAES,IAAXzC,QAIX,MAAM4E,kBAAkB/N,OAkDxB,MAAM2J,uBAaJ,CAACmC,OAAOkC,YACN,IAEIC,QAFAnG,OAASP,QAAQzB,MACjBoI,MAAQ,GAEZ,IACED,QAAUlR,OAAOoR,kBAAkBrG,QACnC,MAAOzJ,GACPtB,OAAOkK,YAAY5I,GAGrB,IAAI8K,OAvDR,UAAsB8E,QAASC,OAC7B,IACE,GAAgB,IAAZD,QACF,MAAM,IAAIF,UAEZ,IAAIK,KACJ,KAAQA,KAAOrR,OAAOsR,oBAAoBJ,gBAClClR,OAAO2L,OAAOiC,UAAUyD,MAEhC,GAAIrR,OAAO0Q,kBACT,MAAM,IAAIM,UAEZ,MAAO1P,GACHA,aAAa0P,UACfhR,OAAO6O,gBAEP7O,OAAOkK,YAAY5I,WAGrBtB,OAAO6J,qBAAqBO,WAAW+G,OACvCnR,OAAOiK,WAAWiH,UAmCLK,CAAYL,QAASC,OAElC,OADAnR,OAAO6J,qBAAqBM,SAASiC,OAAQ,CAAC8E,aAAS5L,GAAY6L,OAC5D/E,QAUX,MAAMS,uBACJ,CAACkC,OAAOkC,YACN,OAAOlI,KAqBTyI,KAAKC,KACH,IAAIjD,SAIAkD,KADAC,MAAQ3R,OAAO2L,OAAOC,UAAU6F,KAEpC,IACEjD,SAAWxO,OAAO4R,kBAAkBpH,QAAQzB,MAAO4I,OACnDD,KAAoB,IAAblD,SACHkD,OACFlD,SAAWxO,OAAO6R,wCAEpB,MAAOvQ,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAO2L,OAAOiD,OAAO+C,OAMvB,OAJID,MAAqB,IAAblD,UACVxO,OAAO6O,gBAGF,CAAE6C,KAAAA,KAAM3F,MADH/L,OAAO2L,OAAOiC,UAAUY,YAsFxC,IAAItC,gBAAkB,CACpB4F,aAAY,OAGZzM,IAAG,CAACoE,MAAOsI,UAGO1G,QAAQhG,IAAIoE,MAAOsI,QAKd,iBAAVA,QAGPA,MAAMC,WAAW,OACnBD,MAAQA,MAAME,MAAM,IA7F1B,SAAwBxI,MAAOsI,OAC7B,IAEI3F,OAFArB,OAASP,QAAQf,OACjB+G,MAAQxQ,OAAO2L,OAAOC,UAAUmG,OAEpC,IACE3F,OAASpM,OAAOkS,kBAAkBnH,OAAQyF,OAC1C,MAAOlP,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAO2L,OAAOiD,OAAO4B,OAKvB,OAHgB,IAAZpE,QACFpM,OAAO6O,gBAES,IAAXzC,OAiFE+F,CAAe1I,MAAOsI,QAE/BpM,IAAI8D,MAAOsI,OAMT,GAAIA,SAAStI,OAA0B,iBAAVsI,MAC3B,OAAO1G,QAAQ1F,IAAI8D,MAAOsI,OAIxBA,MAAMC,WAAW,OACnBD,MAAQA,MAAME,MAAM,IAGtB,IAAIzD,SA5FR,SAAwB/E,MAAOsI,OAC7B,IAEIvD,SAFAzD,OAASP,QAAQf,OACjB+G,MAAQxQ,OAAO2L,OAAOC,UAAUmG,OAEhCrG,QAAUjC,MAAMC,GAAGK,MAAM2B,QAC7B,IACE8C,SAAWxO,OAAOoS,kBAAkBrH,OAAQyF,MAAO9E,SACnD,MAAOpK,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAO2L,OAAOiD,OAAO4B,OAOvB,OALiB,IAAbhC,UACExO,OAAO0Q,mBACT1Q,OAAO6O,gBAGJL,SA2EU6D,CAAe5I,MAAOsI,OACrC,OAAiB,IAAbvD,SACKxO,OAAO2L,OAAOiC,UAAUY,eADjC,GAIFhL,IAAIiG,MAAOsI,MAAOO,OAChB,IAAIC,MAAQnP,OAAOgK,yBAAyB3D,MAAOsI,OACnD,GAAIQ,QAAUA,MAAMC,SAClB,MAAM,IAAIvR,UAAU,+BAA+B8Q,UAGrD,MAAqB,iBAAVA,MACF1G,QAAQ7H,IAAIiG,MAAOsI,MAAOO,QAE/BP,MAAMC,WAAW,OACnBD,MAAQA,MAAME,MAAM,IAvF1B,SAAwBxI,MAAOsI,MAAOO,OACpC,IAGI3B,QAHA5F,OAASP,QAAQf,OACjB+G,MAAQxQ,OAAO2L,OAAOC,UAAUmG,OAChCnB,MAAQ5Q,OAAO2L,OAAOC,UAAU0G,OAEpC,IACE3B,QAAU3Q,OAAOyS,kBAAkB1H,OAAQyF,MAAOI,OAClD,MAAOtP,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAO2L,OAAOiD,OAAO4B,OACrBxQ,OAAO2L,OAAOiD,OAAOgC,QAEN,IAAbD,SACF3Q,OAAO6O,gBA2EP6D,CAAejJ,MAAOsI,MAAOO,YAG/BK,eAAelJ,MAAOsI,OACpB,IAAIQ,MAAQnP,OAAOgK,yBAAyB3D,MAAOsI,OACnD,GAAIQ,QAAUA,MAAMC,SAClB,MAAM,IAAIvR,UAAU,kCAAkC8Q,UAExD,MAAqB,iBAAVA,MACF1G,QAAQsH,eAAelJ,MAAOsI,QAEnCA,MAAMC,WAAW,OACnBD,MAAQA,MAAME,MAAM,IAnF1B,SAAwBxI,MAAOsI,OAC7B,IAEIpB,QAFA5F,OAASP,QAAQf,OACjB+G,MAAQxQ,OAAO2L,OAAOC,UAAUmG,OAEpC,IACEpB,QAAU3Q,OAAO4S,kBAAkB7H,OAAQyF,OAC3C,MAAOlP,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAO2L,OAAOiD,OAAO4B,QAEN,IAAbG,SACF3Q,OAAO6O,gBAyEPgE,CAAepJ,MAAOsI,QAGdQ,OAASA,MAAMO,eAEzBC,QAAQtJ,OACN,IACI+E,SADAzD,OAASP,QAAQf,OAErB,IACE+E,SAAWxO,OAAOgT,kBAAkBjI,QACpC,MAAOzJ,GACPtB,OAAOkK,YAAY5I,GAEJ,IAAbkN,UACFxO,OAAO6O,gBAET,IAAIzC,OAASpM,OAAO2L,OAAOiC,UAAUY,UAErC,OADApC,OAAOvF,QAAQwE,QAAQ0H,QAAQtJ,QACxB2C,QAETvD,MAAK,CAACY,MAAOwJ,OAAQhF,SACZxE,MAAMZ,MAAMoK,OAAQhF,SAY/B,MAAMnB,wBAOJoG,iBACE,IACIC,cACAC,aAOAzC,QATA5F,OAASP,QAAQzB,MAGjB9B,QAAU,IAAIZ,SAAQ,CAACxB,QAASwO,UAClCF,cAAgBtO,QAChBuO,aAAeC,UAEbC,kBAAoBtT,OAAO2L,OAAOC,UAAUuH,eAC5CI,iBAAmBvT,OAAO2L,OAAOC,UAAUwH,cAE/C,IACEzC,QAAU3Q,OAAOwT,wBACfzI,OACAuI,kBACAC,kBAEF,MAAOjS,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAO2L,OAAOiD,OAAO2E,kBACrBvT,OAAO2L,OAAOiD,OAAO0E,mBAKvB,OAHiB,IAAb3C,SACF3Q,OAAO6O,gBAEF5H,QAqBT5C,KAAKoP,YAAaC,YAEhB,OADc3K,KAAKmK,iBACJ7O,KAAKoP,YAAaC,YAiBnC5M,MAAM4M,YAEJ,OADc3K,KAAKmK,iBACJpM,MAAM4M,YAoBvBC,QAAQC,WAEN,OADc7K,KAAKmK,iBACJS,QAAQC,YAO3B,MAAM5G,uBACJnE,MAAMoK,OAAQhF,QACZ,OAAOjO,OAAO8O,aAAatE,QAAQzB,SAAUkF,QAE/C4F,KAAKZ,UAAWhF,QACd,OAAOjO,OAAO8O,aAAatE,QAAQzB,SAAUkF,QAM/C6F,cAAc7F,QACZ,GAAsB,IAAlBA,OAAO7M,OACT,MAAM,IAAIH,UACR,4EAGJ,IAAIiN,OAASD,OAAOA,OAAO7M,OAAS,GACpC,QACyBkE,IAAvB4I,OAAOf,aACqB,WAA5Be,OAAOf,YAAYlL,KAEnB,MAAM,IAAIhB,UAAU,oCAEtB,OAAOjB,OAAOgO,mBAAmBxD,QAAQzB,SAAUkF,SAGvDjB,uBAAuBxB,UAAUA,UAAYD,SAASC,UAEtD,IAAIuI,kBAAoB,IAAI5Q,IAAI,CAC9B,CAAC,KAAM6Q,WACP,CAAC,KAAMnT,YACP,CAAC,YAAaoT,mBACd,CAAC,MAAOC,YACR,CAAC,MAAOC,aACR,CAAC,MAAOC,YACR,CAAC,MAAOC,aACR,CAAC,MAAOD,YACR,CAAC,MAAOC,aAGR,CAAC,MAAOrQ,WAAWsQ,eACnB,CAAC,MAAOtQ,WAAWuQ,gBACnB,CAAC,MAAOC,cACR,CAAC,MAAOC,cACR,CAAC,WAAYC,YAMf,MAAM3H,qBA+BJ4H,UAAUhL,MACR,IAAIiL,UACJ,GAAIjL,OACFiL,UAAYb,kBAAkBpO,IAAIgE,WAChBrE,IAAdsP,WACF,MAAM,IAAI3R,MAAM,gBAAgB0G,QAGpC,IAMIgH,QANAkE,QAAU7U,OAAO6U,QACjBC,eAAiB9U,OAAO+U,YACxBC,kBAAoBhV,OAAOiV,WAC7BJ,QAA4C,GAAnC7U,OAAOkV,qBAAuB,KAErCC,SAAW3K,QAAQzB,MAEvB,IACE4H,QAAU3Q,OAAOoV,qBAAqBJ,kBAAmBG,UACzD,MAAO7T,GACPtB,OAAOkK,YAAY5I,IAEJ,IAAbqP,SACF3Q,OAAO6O,gBAIT,IAAIwG,gBAAkBR,QAAmC,GAA1BG,mBAAqB,IAChDM,cAAgBT,QAAmC,GAA1BG,mBAAqB,IAC9CO,cAAgBV,QAAmC,GAA1BG,mBAAqB,IAE9CQ,WAAaX,QAAmC,GAA1BG,mBAAqB,IAC3CS,WAAaZ,QAAmC,GAA1BG,mBAAqB,IAC3CU,SAAWb,QAAmC,GAA1BG,mBAAqB,IACzCW,MAAQ3V,OAAO2L,OAAOiC,UAAUiH,QAAmC,GAA1BG,mBAAqB,KAC9DY,QAAU5V,OAAO2L,OAAOiC,UAAUiH,QAAmC,GAA1BG,mBAAqB,KAEhEa,SAAWhB,QAAmC,GAA1BG,mBAAqB,IACzCc,eAAiBjB,QAAmC,GAA1BG,mBAAqB,IAC/Ce,eAAiBlB,QAAmC,IAA1BG,mBAAqB,IAE/CgB,OAAShW,OAAOiW,aAAaR,YACjCzV,OAAOkW,aAAapB,gBAEpB,IAAIqB,WACJ,IACE,IAAIC,kBACc9Q,IAAdsP,aACDA,UAAWwB,WAAapW,OAAOqW,0BAC9BL,OACA,2DAGJ,IAAIM,UAAYC,SAAS3B,UAAU3S,KAAKkE,QAAQ,UAAW,KAAO,GAAK,EACvE,GAAIiQ,WAAaE,UAAY,EAC3B,MAAM,IAAIrT,MACR,kTAQJ,IAAIuT,SAAWjB,cAAgBD,cAC/B,GACe,IAAbkB,WACCnB,gBAAkBiB,WAAc,GAC/BhB,cAAgBgB,WAAc,GAC9Bf,cAAgBe,WAAc,GAEhC,MAAM,IAAIrT,MACR,8CAA8C2R,UAAU3S,QAG5D,IAEIwU,KAFAC,WAAaF,SAAWF,UACxBK,QAAUtB,gBAAkBC,eAAiBgB,UAG/CG,KADe,IAAbD,SACK,IAAI5B,UAEJ,IAAIA,UAAUC,QAAQ+B,OAAQtB,cAAeoB,YAEtD,IAAK,IAAIG,KAAKjB,QAAQvS,OACpBuS,QAAQiB,IAAMP,UAuBhB,OApBAH,WACa/S,OAAOqI,OAClBqL,SAAStL,UACTpI,OAAO8J,0BAA0B,CAC/ByJ,OAAAA,OACAnB,SAAAA,SACAQ,OAAAA,OACAN,SAAAA,SACAqB,KAAMpB,MAAMvU,OACZ4V,OAAQR,SACRb,MAAAA,MACAC,QAAAA,QACAa,KAAAA,KACAX,aAAAA,aACAC,aAAAA,aACAkB,UAAWpB,SACXqB,wBAMJ,IAAKf,QACH,IACEnW,OAAOmX,kBAAkBtB,UACzB7V,OAAOoX,YAAYvB,UACnB,MAAOvU,GACPtB,OAAOkK,YAAY5I,MA6EtB,MAAMwV,SACX3J,cAoFE,MA7EApE,KAAK4N,OAOL5N,KAAKyM,SAQLzM,KAAKiN,OAMLjN,KAAK2M,SAQL3M,KAAKgO,KAOLhO,KAAKiO,OAQLjO,KAAK4M,MAQL5M,KAAK6M,QAYL7M,KAAK0N,KAML1N,KAAK+M,aAML/M,KAAKgN,aACC,IAAI9U,UAAU,iCAMtBe,UACE,IAAI+G,KAAKmO,UAAT,CAIA,IACElX,OAAOmX,kBAAkBpO,KAAKkO,WAC9BjX,OAAOoX,YAAYrO,KAAKkO,WACxB,MAAO3V,GACPtB,OAAOkK,YAAY5I,GAErByH,KAAKmO,aACLnO,KAAK0N,KAAO,OAMhB,IAAIY,+BACAC,gCACF,mNAGEC,uBAAyB,CAC3BlS,IAAG,CAACqD,IAAK6H,MACAlF,QAAQhG,IAAIqD,IAAK6H,MAAQ7H,IAAIrD,IAAIkL,KAE1C5K,IAAI+C,IAAK6H,KACP,GAAIlF,QAAQhG,IAAIqD,IAAK6H,KACnB,OAAOlF,QAAQ1F,IAAI+C,IAAK6H,KAE1B,IAAInE,OAAS1D,IAAI/C,IAAI4K,KAKrB,OAJK8G,kCAA0C/R,IAAX8G,SAClC7K,QAAQiW,KAAKF,iCACbD,gCAEKjL,QAET5I,IAAIkF,IAAK6H,IAAKxE,OACZ,GAAIV,QAAQhG,IAAIqD,IAAK6H,KACnB,MAAM,IAAItN,MAAM,8BAA8BsN,OAE3C8G,8BACHA,+BACA9V,QAAQiW,KAAKF,kCAEf5O,IAAIlF,IAAI+M,IAAKxE,QAEfgH,QAAQrK,KACN,IAAI0D,OAAS,IAAIqL,IAAIpM,QAAQ0H,QAAQrK,MACjCgP,KAAOhP,IAAIrF,OACf,IAAK,IAAIkN,OAAOmH,KACdtL,OAAOuL,IAAIpH,KAGb,OADAmH,KAAK1P,UACE1B,MAAMC,KAAK6F,UChjDtB,IAAIwL,WAAa,GAWbC,QAAU,GAuBP,MAAMC,YAGX3K,cAKEpE,KAAKgP,SA6BF,SAASC,UAAUC,KAAMJ,QAAU7X,OAAO6X,SAC/C,OAAO7X,OAAO4X,WAAWM,UAAUD,KAAMJ,SAgCpC1V,eAAegW,wBACpBF,KACAjS,gBACAf,eAEA,IACI1B,QADA6U,UAAYpY,OAAO4X,WAAWS,aAAaJ,MAE/C,IACE1U,QAAU6U,UAAUrQ,eAEpBqQ,UAAUpQ,UAEZ,GAAuB,IAAnBzE,QAAQnC,OACV,OAGF,IAAIkX,aAAetY,OAAOkD,6BACtBF,SAAW,IAAIyU,IACnB,IAAK,IAAIxV,QAAQsB,QACX+U,aAAajT,IAAIpD,OACnBe,SAAS2U,IAAIW,aAAa3S,IAAI1D,OAG9Be,SAASoD,YACLwB,YAAYtB,MAAMC,KAAKvD,UAAWgD,gBAAiBf,eAatD,SAASsT,SAAStW,MAKvB,OAJAV,QAAQiW,KACN,2JAGKxX,OAAO6X,QAAQlS,IAAI1D,MA8BrBE,eAAeqW,eAAeP,MACnC,IAAIQ,UAAYzY,OAAO4X,WAAWc,gBAAgBT,KAAMjY,OAAO6X,SAC/D,IAEE,aADmBY,kBAGnBA,UAAUzQ,WAgBP,SAAS2Q,iBAAiB1W,KAAM2W,QACrC5Y,OAAO4X,WAAWiB,mBAAmB5W,KAAM2W,QAOtC,SAASE,gBAAgBC,SAC9B/Y,OAAOgZ,SAAWD,QAcb,SAASE,mBAAmBhX,MACjCjC,OAAO4X,WAAWsB,qBAAqBjX,MAkBlC,SAASkX,KAAKzQ,KAAK4G,MAAEA,OAAQ,GAAO,IAGzC,cAAe5G,KACb,IAAK,SACL,IAAK,SACL,IAAK,UACL,IAAK,SACL,IAAK,YACH,OAAOA,IAEX,IAAKA,KAAO1I,OAAO6H,UAAUa,KAC3B,OAAOA,IAET,IAAI0Q,OAAS,EACTC,UAAY,EACZjN,OAAS,EACb,IAME,GALAgN,OAASpZ,OAAO2L,OAAOC,UAAUlD,KACjC2Q,UAAYrZ,OAAOsZ,oBAAoBF,OAAQ,IAAIjW,IAAOmM,OACxC,IAAd+J,WACFrZ,OAAO6O,gBAEL7O,OAAOuZ,eAAeF,WAExB,OAAO3Q,IAGT0D,OAASpM,OAAOwZ,WAAWH,WACZ,IAAXjN,QACFpM,OAAO6O,wBAGT7O,OAAO2L,OAAOiD,OAAOwK,QACrBpZ,OAAOiK,WAAWoP,WAEpB,OAAOrZ,OAAO2L,OAAOiC,UAAUxB,QAgBjC,SAASqN,mBAAmBC,mBA1N5B1Z,OAAOgY,UAAYA,UA+GnBhY,OAAOwY,eAAiBA,eAiGxBxY,OAAO2Z,UAAY,IAAM3Z,OAAO4X,WAAWgC,OAAOC,aAKlD7Z,OAAO8Z,aAAgBC,OAAU/Z,OAAO4X,WAAWgC,OAAOI,cAAcD,OAMxEN,mBAAqBzZ,OAAOyZ,mBCpR5BzZ,OAAOia,eAAiB,WAEtBja,OAAOka,mBADS,EACqBla,OAAOma,mCAG9C,IAAIC,sBAAuB,EAgJpBjY,eAAekY,YAAYC,QAChC,MAAMC,eAAiB,CACrBC,YAAY,EACZC,UAAWzW,WACX9D,MAAO8D,WAAW0W,OAAS1W,WAAW0W,YAASpV,GAGjD,GADAgV,OAASlX,OAAO6J,OAAOsN,eAAgBD,QACnCtW,WAAW2W,iBACb,MAAI3W,WAAW4W,kBACP,IAAI3X,MACR,oEAGI,IAAIA,MAAM,+BAOpB,GAFAe,WAAW2W,iBAAmB3a,OAC9Bqa,YAAYQ,YAAa,GACpBP,OAAOjY,SACV,MAAM,IAAIY,MAAM,oDAElB,IAAIf,QAAUoY,OAAOjY,SAChBH,QAAQhB,SAAS,OACpBgB,SAAW,KAEblC,OAAOqC,SAAWH,QAClB,IAAI4Y,kBAAoB1Y,uBAAuBF,SAE/CjC,mBAAmBqa,OAAOpa,MAAOoa,OAAOna,OAAQma,OAAOla,QAEvDJ,OAAOiG,WAAcrB,MAAS1C,QAAU0C,KACxC,IAAImW,aAAe,IAAI1U,SAASa,GAAOlH,OAAOgb,QAAU9T,IAExD,MAAMN,UAAY,GAAG1E,8BACf6B,WAAW6C,iBAIXqU,qBAAqBjb,cAIrB+a,aApFR,WACE,IAAIzL,MAAQ,EAKZ,KAJA,SAAS4L,UACP5L,OAAS,EACT4L,UAGAA,GACA,MAAOC,MAET,IAAIC,eAAiBC,KAAKC,IAAIhM,MAAQ,GAAI,KAC1CtP,OAAO0H,gBACL,yCAAyC0T,oBA0E3CG,GACA,IAAIC,QDmFC,WAkBL,MAAMhb,GAAKR,OAAOQ,GAElB,IAAIib,UAAY,CACd5D,QAAAA,QACArX,GAAAA,GACAoX,WAAAA,WACA8D,QAxQiB,GAyQjB9T,YAAAA,YACAuQ,wBAAAA,wBACA5S,eAAAA,eACAsC,UAAAA,UACA0Q,SAAAA,SACAP,UAAAA,UACAQ,eAAAA,eACAG,iBAAAA,iBACAM,mBAAAA,mBACAQ,mBAAAA,mBACAN,KAAAA,KACAL,gBAAAA,gBACAhB,YAAAA,YACAhB,SAAAA,UAKF,OAFA2E,UAAUE,QAAU3b,OACpBA,OAAO4b,WAAaH,UACbA,UC9HOI,GF+1CT,IAAuBC,GEjzC5B,OArCA9b,OAAO0H,gBAAgB,0iBAqBvB1H,OAAO+b,UAAUpW,IAAI,OAArB3F,CAA6Bwb,QAASxb,OAAQsa,OAAOG,WAKrDza,OAAO6X,SF4zCqBiE,GE5zCG9b,OAAO6X,QF6zC/B,IAAIpP,MAAMqT,GAAIvE,yBE3zCrBiE,QAAQ3D,QAAU7X,OAAO6X,QACzB2D,QAAQ5D,WAAa5X,OAAO4X,WAC5B4D,QAAQE,QAAU1b,OAAO0b,cAEnBZ,kBACFR,OAAOE,kBACH5S,YAAY,CAAC,cAGd4T,QAhOTxb,OAAOkK,YAAc,SAAU5I,GAC7B,GAAI8Y,qBAGF,OAFA7Y,QAAQC,MAAM,wDACdD,QAAQC,MAAMF,GAGhB8Y,sBAAuB,EACvB7Y,QAAQC,MACN,sFAEFD,QAAQC,MAAM,qCACVxB,OAAOgc,aAGTza,QAAQC,MAAMF,EAAE4N,YAChB3N,QAAQC,MAAMF,EAAEsJ,QAEhBrJ,QAAQC,MAAMF,GAEhB,IACEtB,OAAOia,iBACP,IAAK,IAAI1J,OAAOnN,OAAOC,KAAKrD,OAAO4b,YAC7BrL,IAAIyB,WAAW,MAAgB,YAARzB,KAG3BnN,OAAO0I,eAAe9L,OAAO4b,WAAYrL,IAAK,CAC5C0L,YAAY,EACZnJ,cAAc,EACdnN,IAAK,KACH,MAAM,IAAI1C,MACR,gEAKJjD,OAAOkc,UACTlc,OAAOkc,SAAS5a,GAElB,MAAO6a,MACP5a,QAAQC,MAAM,0DACdD,QAAQC,MAAM2a,MAEhB,MAAM7a,GA0BRtB,OAAO0H,gBAAkB,SAAUuQ,MACjC,IACItH,QADAyL,cAAgBpc,OAAOqc,gBAAgBpE,MAE3C,IACEtH,QAAU3Q,OAAOsc,yBAAyBF,eAC1C,MAAO9a,GACPtB,OAAOkK,YAAY5I,WAEnBtB,OAAOuc,MAAMH,gBAEE,IAAbzL,SACF3Q,OAAO6O,iBAmJX7K,WAAWqW,YAAcA,YAErBrW,WAAWwY,oBACbjb,QAAQiW,KACN,4HAyBFxT,WAAWyY,qBAAuBpC,YAAY,CAC5ChY,SAAU2B,WAAWwY,oBACpBnY,MAAMmX,SAAakB,KAAKlB,QAAUA\"}"
  },
  {
    "path": "pyp5js/http_local/static/js/pyodide/pyodide_v0.18.1.js",
    "content": "!function(global,factory){\"object\"==typeof exports&&\"undefined\"!=typeof module?factory(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],factory):factory((global=\"undefined\"!=typeof globalThis?globalThis:global||self).loadPyodide={})}(this,(function(exports){\"use strict\";let Module={};function setStandardStreams(stdin,stdout,stderr){stdout&&(Module.print=stdout),stderr&&(Module.printErr=stderr),stdin&&(Module.preRun=[function(){Module.FS.init(function(stdin){const encoder=new TextEncoder;let input=new Uint8Array(0),inputIndex=-1;function stdinWrapper(){try{if(-1===inputIndex){let text=stdin();if(null==text)return null;if(\"string\"!=typeof text)throw new TypeError(`Expected stdin to return string, null, or undefined, got type ${typeof text}.`);text.endsWith(\"\\n\")||(text+=\"\\n\"),input=encoder.encode(text),inputIndex=0}if(inputIndex<input.length){let character=input[inputIndex];return inputIndex++,character}return inputIndex=-1,null}catch(e){throw console.error(\"Error thrown in stdin:\"),console.error(e),e}}return stdinWrapper}(stdin),null,null)}])}Module.noImageDecoding=!0,Module.noAudioDecoding=!0,Module.noWasmDecoding=!1,Module.preloadedWasm={};const IN_NODE=\"undefined\"!=typeof process&&\"undefined\"!==process.release.name;let baseURL;async function initializePackageIndex(indexURL){let package_json;if(baseURL=indexURL,IN_NODE){const fsPromises=await import(\"fs/promises\"),package_string=await fsPromises.readFile(`${indexURL}packages.json`);package_json=JSON.parse(package_string)}else{let response=await fetch(`${indexURL}packages.json`);package_json=await response.json()}if(!package_json.packages)throw new Error(\"Loaded packages.json does not contain the expected key 'packages'.\");Module.packages=package_json.packages,Module._import_name_to_package_name=new Map;for(let name of Object.keys(Module.packages))for(let import_name of Module.packages[name].imports)Module._import_name_to_package_name.set(import_name,name)}const package_uri_regexp=/^.*?([^\\/]*)\\.js$/;function _uri_to_package_name(package_uri){let match=package_uri_regexp.exec(package_uri);if(match)return match[1].toLowerCase()}let loadScript;if(globalThis.document)loadScript=url=>import(url);else if(globalThis.importScripts)loadScript=async url=>{globalThis.importScripts(url)};else{if(\"undefined\"==typeof process||\"node\"!==process.release.name)throw new Error(\"Cannot determine runtime environment\");{const pathPromise=import(\"path\").then((M=>M.default)),fetchPromise=import(\"node-fetch\").then((M=>M.default)),vmPromise=import(\"vm\").then((M=>M.default));loadScript=async url=>{if(url.includes(\"://\")){const fetch=await fetchPromise;(await vmPromise).runInThisContext(await(await fetch(url)).text())}else{const path=await pathPromise;await import(path.resolve(url))}}}}function recursiveDependencies(names,_messageCallback,errorCallback,sharedLibsOnly){const toLoad=new Map,addPackage=name=>{if(name=name.toLowerCase(),!toLoad.has(name)&&(toLoad.set(name,\"default channel\"),void 0===loadedPackages[name]))for(let dep_name of Module.packages[name].depends)addPackage(dep_name)};for(let name of names){const pkgname=_uri_to_package_name(name);toLoad.has(pkgname)&&toLoad.get(pkgname)!==name?errorCallback(`Loading same package ${pkgname} from ${name} and ${toLoad.get(pkgname)}`):void 0===pkgname?(name=name.toLowerCase(),name in Module.packages?addPackage(name):errorCallback(`Skipping unknown package '${name}'`)):toLoad.set(pkgname,name)}if(sharedLibsOnly){let onlySharedLibs=new Map;for(let c of toLoad){let name=c[0];Module.packages[name].shared_library&&onlySharedLibs.set(name,toLoad.get(name))}return onlySharedLibs}return toLoad}async function _loadPackage(names,messageCallback,errorCallback){let toLoad=recursiveDependencies(names,0,errorCallback);if(Module.locateFile=path=>{let pkg=path.replace(/\\.data$/,\"\");if(toLoad.has(pkg)){let package_uri=toLoad.get(pkg);if(\"default channel\"!=package_uri)return package_uri.replace(/\\.js$/,\".data\")}return baseURL+path},0===toLoad.size)return Promise.resolve(\"No new packages to load\");messageCallback(`Loading ${Array.from(toLoad.keys()).join(\", \")}`);let scriptPromises=[];for(let[pkg,uri]of toLoad){let loaded=loadedPackages[pkg];if(void 0!==loaded){if(loaded===uri||\"default channel\"===uri){messageCallback(`${pkg} already loaded from ${loaded}`);continue}errorCallback(`URI mismatch, attempting to load package ${pkg} from ${uri} while it is already loaded from ${loaded}. To override a dependency, load the custom package first.`);continue}let pkgname=Module.packages[pkg]&&Module.packages[pkg].name||pkg,scriptSrc=\"default channel\"===uri?`${baseURL}${pkgname}.js`:uri;messageCallback(`Loading ${pkg} from ${scriptSrc}`),scriptPromises.push(loadScript(scriptSrc).catch((e=>{errorCallback(`Couldn't load package from URL ${scriptSrc}`,e),toLoad.delete(pkg)})))}try{await Promise.all(scriptPromises).then((function(){const promise=new Promise((r=>{Module.monitorRunDependencies=n=>{0===n&&r()}}));return Module.addRunDependency(\"dummy\"),Module.removeRunDependency(\"dummy\"),promise}))}finally{delete Module.monitorRunDependencies}let resolveMsg,packageList=[];for(let[pkg,uri]of toLoad)loadedPackages[pkg]=uri,packageList.push(pkg);if(packageList.length>0){resolveMsg=`Loaded ${packageList.join(\", \")}`}else resolveMsg=\"No packages loaded\";Module.reportUndefinedSymbols(),messageCallback(resolveMsg),Module.runPythonSimple(\"import importlib\\nimportlib.invalidate_caches()\\n\")}let _package_lock=Promise.resolve();let loadedPackages={};async function loadPackage(names,messageCallback,errorCallback){if(Module.isPyProxy(names)){let temp;try{temp=names.toJs()}finally{names.destroy()}names=temp}Array.isArray(names)||(names=[names]);let oldPlugin,sharedLibraryNames=[];try{let sharedLibraryPackagesToLoad=recursiveDependencies(names,0,errorCallback,!0);for(let pkg of sharedLibraryPackagesToLoad)sharedLibraryNames.push(pkg[0])}catch(e){}for(let p in Module.preloadPlugins)if(Module.preloadPlugins[p].canHandle(\"test.so\")){oldPlugin=Module.preloadPlugins[p];break}var loadPluginOverride=new Proxy(oldPlugin,{get:function(obj,prop){return\"handle\"===prop?function(bytes,name){obj[prop].apply(obj,arguments),this.asyncWasmLoadPromise=this.asyncWasmLoadPromise.then((function(){Module.loadDynamicLibrary(name,{global:!0,nodelete:!0})}))}:obj[prop]}});Module.preloadPlugins.unshift(loadPluginOverride);let releaseLock=await async function(){let releaseLock,old_lock=_package_lock;return _package_lock=new Promise((resolve=>releaseLock=resolve)),await old_lock,releaseLock}();try{await _loadPackage(sharedLibraryNames,messageCallback||console.log,errorCallback||console.error),Module.preloadPlugins.shift(loadPluginOverride),await _loadPackage(names,messageCallback||console.log,errorCallback||console.error)}finally{releaseLock()}}function isPyProxy(jsobj){return!!jsobj&&void 0!==jsobj.$$&&\"PyProxy\"===jsobj.$$.type}Module.isPyProxy=isPyProxy,globalThis.FinalizationRegistry?Module.finalizationRegistry=new FinalizationRegistry((([ptr,cache])=>{pyproxy_decref_cache(cache);try{Module._Py_DecRef(ptr)}catch(e){Module.fatal_error(e)}})):Module.finalizationRegistry={register(){},unregister(){}};let trace_pyproxy_alloc,trace_pyproxy_dealloc,pyproxy_alloc_map=new Map;function _getPtr(jsobj){let ptr=jsobj.$$.ptr;if(null===ptr)throw new Error(jsobj.$$.destroyed_msg||\"Object has already been destroyed\");return ptr}Module.pyproxy_alloc_map=pyproxy_alloc_map,Module.enable_pyproxy_allocation_tracing=function(){trace_pyproxy_alloc=function(proxy){pyproxy_alloc_map.set(proxy,Error().stack)},trace_pyproxy_dealloc=function(proxy){pyproxy_alloc_map.delete(proxy)}},Module.disable_pyproxy_allocation_tracing=function(){trace_pyproxy_alloc=function(proxy){},trace_pyproxy_dealloc=function(proxy){}},Module.disable_pyproxy_allocation_tracing(),Module.pyproxy_new=function(ptrobj,cache){let target,flags=Module._pyproxy_getflags(ptrobj),cls=Module.getPyProxyClass(flags);if(256&flags?(target=Reflect.construct(Function,[],cls),delete target.length,delete target.name,target.prototype=void 0):target=Object.create(cls.prototype),!cache){cache={cacheId:Module.hiwire.new_value(new Map),refcnt:0}}cache.refcnt++,Object.defineProperty(target,\"$$\",{value:{ptr:ptrobj,type:\"PyProxy\",borrowed:!1,cache:cache}}),Module._Py_IncRef(ptrobj);let proxy=new Proxy(target,PyProxyHandlers);return trace_pyproxy_alloc(proxy),Module.finalizationRegistry.register(proxy,[ptrobj,cache],proxy),proxy};let pyproxyClassMap=new Map;Module.getPyProxyClass=function(flags){let result=pyproxyClassMap.get(flags);if(result)return result;let descriptors={};for(let[feature_flag,methods]of[[1,PyProxyLengthMethods],[2,PyProxyGetItemMethods],[4,PyProxySetItemMethods],[8,PyProxyContainsMethods],[16,PyProxyIterableMethods],[32,PyProxyIteratorMethods],[64,PyProxyAwaitableMethods],[128,PyProxyBufferMethods],[256,PyProxyCallableMethods]])flags&feature_flag&&Object.assign(descriptors,Object.getOwnPropertyDescriptors(methods.prototype));descriptors.constructor=Object.getOwnPropertyDescriptor(PyProxyClass.prototype,\"constructor\"),Object.assign(descriptors,Object.getOwnPropertyDescriptors({$$flags:flags}));let new_proto=Object.create(PyProxyClass.prototype,descriptors);function NewPyProxyClass(){}return NewPyProxyClass.prototype=new_proto,pyproxyClassMap.set(flags,NewPyProxyClass),NewPyProxyClass},Module.PyProxy_getPtr=_getPtr,Module.pyproxy_mark_borrowed=function(proxy){proxy.$$.borrowed=!0};function pyproxy_decref_cache(cache){if(cache&&(cache.refcnt--,0===cache.refcnt)){let cache_map=Module.hiwire.pop_value(cache.cacheId);for(let proxy_id of cache_map.values())Module.pyproxy_destroy(Module.hiwire.pop_value(proxy_id),\"This borrowed attribute proxy was automatically destroyed in the process of destroying the proxy it was borrowed from. Try using the 'copy' method.\")}}Module.pyproxy_destroy=function(proxy,destroyed_msg){let ptrobj=_getPtr(proxy);Module.finalizationRegistry.unregister(proxy),proxy.$$.ptr=null,proxy.$$.destroyed_msg=destroyed_msg,pyproxy_decref_cache(proxy.$$.cache);try{Module._Py_DecRef(ptrobj),trace_pyproxy_dealloc(proxy)}catch(e){Module.fatal_error(e)}},Module.callPyObjectKwargs=function(ptrobj,...jsargs){let kwargs=jsargs.pop(),num_pos_args=jsargs.length,kwargs_names=Object.keys(kwargs),kwargs_values=Object.values(kwargs),num_kwargs=kwargs_names.length;jsargs.push(...kwargs_values);let idresult,idargs=Module.hiwire.new_value(jsargs),idkwnames=Module.hiwire.new_value(kwargs_names);try{idresult=Module.__pyproxy_apply(ptrobj,idargs,num_pos_args,idkwnames,num_kwargs)}catch(e){Module.fatal_error(e)}finally{Module.hiwire.decref(idargs),Module.hiwire.decref(idkwnames)}return 0===idresult&&Module._pythonexc2js(),Module.hiwire.pop_value(idresult)},Module.callPyObject=function(ptrobj,...jsargs){return Module.callPyObjectKwargs(ptrobj,...jsargs,{})};class PyProxyClass{constructor(){throw new TypeError(\"PyProxy is not a constructor\")}get[Symbol.toStringTag](){return\"PyProxy\"}get type(){let ptrobj=_getPtr(this);return Module.hiwire.pop_value(Module.__pyproxy_type(ptrobj))}toString(){let jsref_repr,ptrobj=_getPtr(this);try{jsref_repr=Module.__pyproxy_repr(ptrobj)}catch(e){Module.fatal_error(e)}return 0===jsref_repr&&Module._pythonexc2js(),Module.hiwire.pop_value(jsref_repr)}destroy(destroyed_msg){this.$$.borrowed||Module.pyproxy_destroy(this,destroyed_msg)}copy(){let ptrobj=_getPtr(this);return Module.pyproxy_new(ptrobj,this.$$.cache)}toJs({depth:depth=-1,pyproxies:pyproxies,create_pyproxies:create_pyproxies=!0,dict_converter:dict_converter}={}){let idresult,proxies_id,ptrobj=_getPtr(this),dict_converter_id=0;proxies_id=create_pyproxies?pyproxies?Module.hiwire.new_value(pyproxies):Module.hiwire.new_value([]):0,dict_converter&&(dict_converter_id=Module.hiwire.new_value(dict_converter));try{idresult=Module._python2js_custom_dict_converter(ptrobj,depth,proxies_id,dict_converter_id)}catch(e){Module.fatal_error(e)}finally{Module.hiwire.decref(proxies_id),Module.hiwire.decref(dict_converter_id)}return 0===idresult&&Module._pythonexc2js(),Module.hiwire.pop_value(idresult)}supportsLength(){return!!(1&this.$$flags)}supportsGet(){return!!(2&this.$$flags)}supportsSet(){return!!(4&this.$$flags)}supportsHas(){return!!(8&this.$$flags)}isIterable(){return!!(48&this.$$flags)}isIterator(){return!!(32&this.$$flags)}isAwaitable(){return!!(64&this.$$flags)}isBuffer(){return!!(128&this.$$flags)}isCallable(){return!!(256&this.$$flags)}}class PyProxyLengthMethods{get length(){let length,ptrobj=_getPtr(this);try{length=Module._PyObject_Size(ptrobj)}catch(e){Module.fatal_error(e)}return-1===length&&Module._pythonexc2js(),length}}class PyProxyGetItemMethods{get(key){let idresult,ptrobj=_getPtr(this),idkey=Module.hiwire.new_value(key);try{idresult=Module.__pyproxy_getitem(ptrobj,idkey)}catch(e){Module.fatal_error(e)}finally{Module.hiwire.decref(idkey)}if(0===idresult){if(!Module._PyErr_Occurred())return;Module._pythonexc2js()}return Module.hiwire.pop_value(idresult)}}class PyProxySetItemMethods{set(key,value){let errcode,ptrobj=_getPtr(this),idkey=Module.hiwire.new_value(key),idval=Module.hiwire.new_value(value);try{errcode=Module.__pyproxy_setitem(ptrobj,idkey,idval)}catch(e){Module.fatal_error(e)}finally{Module.hiwire.decref(idkey),Module.hiwire.decref(idval)}-1===errcode&&Module._pythonexc2js()}delete(key){let errcode,ptrobj=_getPtr(this),idkey=Module.hiwire.new_value(key);try{errcode=Module.__pyproxy_delitem(ptrobj,idkey)}catch(e){Module.fatal_error(e)}finally{Module.hiwire.decref(idkey)}-1===errcode&&Module._pythonexc2js()}}class PyProxyContainsMethods{has(key){let result,ptrobj=_getPtr(this),idkey=Module.hiwire.new_value(key);try{result=Module.__pyproxy_contains(ptrobj,idkey)}catch(e){Module.fatal_error(e)}finally{Module.hiwire.decref(idkey)}return-1===result&&Module._pythonexc2js(),1===result}}class TempError extends Error{}class PyProxyIterableMethods{[Symbol.iterator](){let iterptr,ptrobj=_getPtr(this),token={};try{iterptr=Module._PyObject_GetIter(ptrobj)}catch(e){Module.fatal_error(e)}let result=function*(iterptr,token){try{if(0===iterptr)throw new TempError;let item;for(;item=Module.__pyproxy_iter_next(iterptr);)yield Module.hiwire.pop_value(item);if(Module._PyErr_Occurred())throw new TempError}catch(e){e instanceof TempError?Module._pythonexc2js():Module.fatal_error(e)}finally{Module.finalizationRegistry.unregister(token),Module._Py_DecRef(iterptr)}}(iterptr,token);return Module.finalizationRegistry.register(result,[iterptr,void 0],token),result}}class PyProxyIteratorMethods{[Symbol.iterator](){return this}next(arg){let idresult,done,idarg=Module.hiwire.new_value(arg);try{idresult=Module.__pyproxyGen_Send(_getPtr(this),idarg),done=0===idresult,done&&(idresult=Module.__pyproxyGen_FetchStopIterationValue())}catch(e){Module.fatal_error(e)}finally{Module.hiwire.decref(idarg)}return done&&0===idresult&&Module._pythonexc2js(),{done:done,value:Module.hiwire.pop_value(idresult)}}}let PyProxyHandlers={isExtensible:()=>!0,has:(jsobj,jskey)=>!!Reflect.has(jsobj,jskey)||\"symbol\"!=typeof jskey&&(jskey.startsWith(\"$\")&&(jskey=jskey.slice(1)),function(jsobj,jskey){let result,ptrobj=_getPtr(jsobj),idkey=Module.hiwire.new_value(jskey);try{result=Module.__pyproxy_hasattr(ptrobj,idkey)}catch(e){Module.fatal_error(e)}finally{Module.hiwire.decref(idkey)}return-1===result&&Module._pythonexc2js(),0!==result}(jsobj,jskey)),get(jsobj,jskey){if(jskey in jsobj||\"symbol\"==typeof jskey)return Reflect.get(jsobj,jskey);jskey.startsWith(\"$\")&&(jskey=jskey.slice(1));let idresult=function(jsobj,jskey){let idresult,ptrobj=_getPtr(jsobj),idkey=Module.hiwire.new_value(jskey),cacheId=jsobj.$$.cache.cacheId;try{idresult=Module.__pyproxy_getattr(ptrobj,idkey,cacheId)}catch(e){Module.fatal_error(e)}finally{Module.hiwire.decref(idkey)}return 0===idresult&&Module._PyErr_Occurred()&&Module._pythonexc2js(),idresult}(jsobj,jskey);return 0!==idresult?Module.hiwire.pop_value(idresult):void 0},set(jsobj,jskey,jsval){let descr=Object.getOwnPropertyDescriptor(jsobj,jskey);if(descr&&!descr.writable)throw new TypeError(`Cannot set read only field '${jskey}'`);return\"symbol\"==typeof jskey?Reflect.set(jsobj,jskey,jsval):(jskey.startsWith(\"$\")&&(jskey=jskey.slice(1)),function(jsobj,jskey,jsval){let errcode,ptrobj=_getPtr(jsobj),idkey=Module.hiwire.new_value(jskey),idval=Module.hiwire.new_value(jsval);try{errcode=Module.__pyproxy_setattr(ptrobj,idkey,idval)}catch(e){Module.fatal_error(e)}finally{Module.hiwire.decref(idkey),Module.hiwire.decref(idval)}-1===errcode&&Module._pythonexc2js()}(jsobj,jskey,jsval),!0)},deleteProperty(jsobj,jskey){let descr=Object.getOwnPropertyDescriptor(jsobj,jskey);if(descr&&!descr.writable)throw new TypeError(`Cannot delete read only field '${jskey}'`);return\"symbol\"==typeof jskey?Reflect.deleteProperty(jsobj,jskey):(jskey.startsWith(\"$\")&&(jskey=jskey.slice(1)),function(jsobj,jskey){let errcode,ptrobj=_getPtr(jsobj),idkey=Module.hiwire.new_value(jskey);try{errcode=Module.__pyproxy_delattr(ptrobj,idkey)}catch(e){Module.fatal_error(e)}finally{Module.hiwire.decref(idkey)}-1===errcode&&Module._pythonexc2js()}(jsobj,jskey),!descr||descr.configurable)},ownKeys(jsobj){let idresult,ptrobj=_getPtr(jsobj);try{idresult=Module.__pyproxy_ownKeys(ptrobj)}catch(e){Module.fatal_error(e)}0===idresult&&Module._pythonexc2js();let result=Module.hiwire.pop_value(idresult);return result.push(...Reflect.ownKeys(jsobj)),result},apply:(jsobj,jsthis,jsargs)=>jsobj.apply(jsthis,jsargs)};class PyProxyAwaitableMethods{_ensure_future(){let resolveHandle,rejectHandle,errcode,ptrobj=_getPtr(this),promise=new Promise(((resolve,reject)=>{resolveHandle=resolve,rejectHandle=reject})),resolve_handle_id=Module.hiwire.new_value(resolveHandle),reject_handle_id=Module.hiwire.new_value(rejectHandle);try{errcode=Module.__pyproxy_ensure_future(ptrobj,resolve_handle_id,reject_handle_id)}catch(e){Module.fatal_error(e)}finally{Module.hiwire.decref(reject_handle_id),Module.hiwire.decref(resolve_handle_id)}return-1===errcode&&Module._pythonexc2js(),promise}then(onFulfilled,onRejected){return this._ensure_future().then(onFulfilled,onRejected)}catch(onRejected){return this._ensure_future().catch(onRejected)}finally(onFinally){return this._ensure_future().finally(onFinally)}}class PyProxyCallableMethods{apply(jsthis,jsargs){return Module.callPyObject(_getPtr(this),...jsargs)}call(jsthis,...jsargs){return Module.callPyObject(_getPtr(this),...jsargs)}callKwargs(...jsargs){if(0===jsargs.length)throw new TypeError(\"callKwargs requires at least one argument (the key word argument object)\");let kwargs=jsargs[jsargs.length-1];if(void 0!==kwargs.constructor&&\"Object\"!==kwargs.constructor.name)throw new TypeError(\"kwargs argument is not an object\");return Module.callPyObjectKwargs(_getPtr(this),...jsargs)}}PyProxyCallableMethods.prototype.prototype=Function.prototype;let type_to_array_map=new Map([[\"i8\",Int8Array],[\"u8\",Uint8Array],[\"u8clamped\",Uint8ClampedArray],[\"i16\",Int16Array],[\"u16\",Uint16Array],[\"i32\",Int32Array],[\"u32\",Uint32Array],[\"i32\",Int32Array],[\"u32\",Uint32Array],[\"i64\",globalThis.BigInt64Array],[\"u64\",globalThis.BigUint64Array],[\"f32\",Float32Array],[\"f64\",Float64Array],[\"dataview\",DataView]]);class PyProxyBufferMethods{getBuffer(type){let ArrayType;if(type&&(ArrayType=type_to_array_map.get(type),void 0===ArrayType))throw new Error(`Unknown type ${type}`);let errcode,HEAPU32=Module.HEAPU32,orig_stack_ptr=Module.stackSave(),buffer_struct_ptr=Module.stackAlloc(HEAPU32[0+(Module._buffer_struct_size>>2)]),this_ptr=_getPtr(this);try{errcode=Module.__pyproxy_get_buffer(buffer_struct_ptr,this_ptr)}catch(e){Module.fatal_error(e)}-1===errcode&&Module._pythonexc2js();let startByteOffset=HEAPU32[0+(buffer_struct_ptr>>2)],minByteOffset=HEAPU32[1+(buffer_struct_ptr>>2)],maxByteOffset=HEAPU32[2+(buffer_struct_ptr>>2)],readonly=!!HEAPU32[3+(buffer_struct_ptr>>2)],format_ptr=HEAPU32[4+(buffer_struct_ptr>>2)],itemsize=HEAPU32[5+(buffer_struct_ptr>>2)],shape=Module.hiwire.pop_value(HEAPU32[6+(buffer_struct_ptr>>2)]),strides=Module.hiwire.pop_value(HEAPU32[7+(buffer_struct_ptr>>2)]),view_ptr=HEAPU32[8+(buffer_struct_ptr>>2)],c_contiguous=!!HEAPU32[9+(buffer_struct_ptr>>2)],f_contiguous=!!HEAPU32[10+(buffer_struct_ptr>>2)],format=Module.UTF8ToString(format_ptr);Module.stackRestore(orig_stack_ptr);let success=!1;try{let bigEndian=!1;void 0===ArrayType&&([ArrayType,bigEndian]=Module.processBufferFormatString(format,\" In this case, you can pass an explicit type argument.\"));let alignment=parseInt(ArrayType.name.replace(/[^0-9]/g,\"\"))/8||1;if(bigEndian&&alignment>1)throw new Error(\"Javascript has no native support for big endian buffers. In this case, you can pass an explicit type argument. For instance, `getBuffer('dataview')` will return a `DataView`which has native support for reading big endian data. Alternatively, toJs will automatically convert the buffer to little endian.\");let numBytes=maxByteOffset-minByteOffset;if(0!==numBytes&&(startByteOffset%alignment!=0||minByteOffset%alignment!=0||maxByteOffset%alignment!=0))throw new Error(`Buffer does not have valid alignment for a ${ArrayType.name}`);let data,numEntries=numBytes/alignment,offset=(startByteOffset-minByteOffset)/alignment;data=0===numBytes?new ArrayType:new ArrayType(HEAPU32.buffer,minByteOffset,numEntries);for(let i of strides.keys())strides[i]/=alignment;return success=!0,Object.create(PyBuffer.prototype,Object.getOwnPropertyDescriptors({offset:offset,readonly:readonly,format:format,itemsize:itemsize,ndim:shape.length,nbytes:numBytes,shape:shape,strides:strides,data:data,c_contiguous:c_contiguous,f_contiguous:f_contiguous,_view_ptr:view_ptr,_released:!1}))}finally{if(!success)try{Module._PyBuffer_Release(view_ptr),Module._PyMem_Free(view_ptr)}catch(e){Module.fatal_error(e)}}}}class PyBuffer{constructor(){throw this.offset,this.readonly,this.format,this.itemsize,this.ndim,this.nbytes,this.shape,this.strides,this.data,this.c_contiguous,this.f_contiguous,new TypeError(\"PyBuffer is not a constructor\")}release(){if(!this._released){try{Module._PyBuffer_Release(this._view_ptr),Module._PyMem_Free(this._view_ptr)}catch(e){Module.fatal_error(e)}this._released=!0,this.data=null}}}let globalsPropertyAccessWarned=!1,globalsPropertyAccessWarningMsg=\"Access to pyodide.globals via pyodide.globals.key is deprecated and will be removed in version 0.18.0. Use pyodide.globals.get('key'), pyodide.globals.set('key', value), pyodide.globals.delete('key') instead.\",NamespaceProxyHandlers={has:(obj,key)=>Reflect.has(obj,key)||obj.has(key),get(obj,key){if(Reflect.has(obj,key))return Reflect.get(obj,key);let result=obj.get(key);return globalsPropertyAccessWarned||void 0===result||(console.warn(globalsPropertyAccessWarningMsg),globalsPropertyAccessWarned=!0),result},set(obj,key,value){if(Reflect.has(obj,key))throw new Error(`Cannot set read only field ${key}`);globalsPropertyAccessWarned||(globalsPropertyAccessWarned=!0,console.warn(globalsPropertyAccessWarningMsg)),obj.set(key,value)},ownKeys(obj){let result=new Set(Reflect.ownKeys(obj)),iter=obj.keys();for(let key of iter)result.add(key);return iter.destroy(),Array.from(result)}};let pyodide_py={},globals={};class PythonError{constructor(){this.message}}function runPython(code,globals=Module.globals){return Module.pyodide_py.eval_code(code,globals)}async function loadPackagesFromImports(code,messageCallback,errorCallback){let imports,pyimports=Module.pyodide_py.find_imports(code);try{imports=pyimports.toJs()}finally{pyimports.destroy()}if(0===imports.length)return;let packageNames=Module._import_name_to_package_name,packages=new Set;for(let name of imports)packageNames.has(name)&&packages.add(packageNames.get(name));packages.size&&await loadPackage(Array.from(packages),messageCallback,errorCallback)}function pyimport(name){return console.warn(\"Access to the Python global namespace via pyodide.pyimport is deprecated and will be removed in version 0.18.0. Use pyodide.globals.get('key') instead.\"),Module.globals.get(name)}async function runPythonAsync(code){let coroutine=Module.pyodide_py.eval_code_async(code,Module.globals);try{return await coroutine}finally{coroutine.destroy()}}function registerJsModule(name,module){Module.pyodide_py.register_js_module(name,module)}function registerComlink(Comlink){Module._Comlink=Comlink}function unregisterJsModule(name){Module.pyodide_py.unregister_js_module(name)}function toPy(obj,{depth:depth=-1}={}){switch(typeof obj){case\"string\":case\"number\":case\"boolean\":case\"bigint\":case\"undefined\":return obj}if(!obj||Module.isPyProxy(obj))return obj;let obj_id=0,py_result=0,result=0;try{if(obj_id=Module.hiwire.new_value(obj),py_result=Module.__js2python_convert(obj_id,new Map,depth),0===py_result&&Module._pythonexc2js(),Module._JsProxy_Check(py_result))return obj;result=Module._python2js(py_result),0===result&&Module._pythonexc2js()}finally{Module.hiwire.decref(obj_id),Module._Py_DecRef(py_result)}return Module.hiwire.pop_value(result)}function setInterruptBuffer(interrupt_buffer){}Module.runPython=runPython,Module.runPythonAsync=runPythonAsync,Module.saveState=()=>Module.pyodide_py._state.save_state(),Module.restoreState=state=>Module.pyodide_py._state.restore_state(state),setInterruptBuffer=Module.setInterruptBuffer,Module.dump_traceback=function(){Module.__Py_DumpTraceback(1,Module._PyGILState_GetThisThreadState())};let fatal_error_occurred=!1;async function loadPyodide(config){const default_config={fullStdLib:!0,jsglobals:globalThis,stdin:globalThis.prompt?globalThis.prompt:void 0};if(config=Object.assign(default_config,config),globalThis.__pyodide_module)throw globalThis.languagePluginURL?new Error(\"Pyodide is already loading because languagePluginURL is defined.\"):new Error(\"Pyodide is already loading.\");if(globalThis.__pyodide_module=Module,loadPyodide.inProgress=!0,!config.indexURL)throw new Error(\"Please provide indexURL parameter to loadPyodide\");let baseURL=config.indexURL;baseURL.endsWith(\"/\")||(baseURL+=\"/\"),Module.indexURL=baseURL;let packageIndexReady=initializePackageIndex(baseURL);setStandardStreams(config.stdin,config.stdout,config.stderr),Module.locateFile=path=>baseURL+path;let moduleLoaded=new Promise((r=>Module.postRun=r));const scriptSrc=`${baseURL}pyodide.asm.js`;await loadScript(scriptSrc),await _createPyodideModule(Module),await moduleLoaded,function(){let depth=0;try{!function recurse(){depth+=1,recurse()}()}catch(err){}let recursionLimit=Math.min(depth/25,500);Module.runPythonSimple(`import sys; sys.setrecursionlimit(int(${recursionLimit}))`)}();let pyodide=function(){const FS=Module.FS;let namespace={globals:globals,FS:FS,pyodide_py:pyodide_py,version:\"\",loadPackage:loadPackage,loadPackagesFromImports:loadPackagesFromImports,loadedPackages:loadedPackages,isPyProxy:isPyProxy,pyimport:pyimport,runPython:runPython,runPythonAsync:runPythonAsync,registerJsModule:registerJsModule,unregisterJsModule:unregisterJsModule,setInterruptBuffer:setInterruptBuffer,toPy:toPy,registerComlink:registerComlink,PythonError:PythonError,PyBuffer:PyBuffer};return namespace._module=Module,Module.public_api=namespace,namespace}();var ns;return Module.runPythonSimple('\\ndef temp(pyodide_js, Module, jsglobals):\\n  from _pyodide._importhook import register_js_finder\\n  jsfinder = register_js_finder()\\n  jsfinder.register_js_module(\"js\", jsglobals)\\n  jsfinder.register_js_module(\"pyodide_js\", pyodide_js)\\n\\n  import pyodide\\n  import __main__\\n  import builtins\\n\\n  globals = __main__.__dict__\\n  globals.update(builtins.__dict__)\\n\\n  Module.version = pyodide.__version__\\n  Module.globals = globals\\n  Module.builtins = builtins.__dict__\\n  Module.pyodide_py = pyodide\\n  print(\"Python initialization complete\")\\n'),Module.init_dict.get(\"temp\")(pyodide,Module,config.jsglobals),Module.globals=(ns=Module.globals,new Proxy(ns,NamespaceProxyHandlers)),pyodide.globals=Module.globals,pyodide.pyodide_py=Module.pyodide_py,pyodide.version=Module.version,await packageIndexReady,config.fullStdLib&&await loadPackage([\"distutils\"]),pyodide}Module.fatal_error=function(e){if(fatal_error_occurred)return console.error(\"Recursive call to fatal_error. Inner error was:\"),void console.error(e);fatal_error_occurred=!0,console.error(\"Pyodide has suffered a fatal error. Please report this to the Pyodide maintainers.\"),console.error(\"The cause of the fatal error was:\"),Module.inTestHoist?(console.error(e.toString()),console.error(e.stack)):console.error(e);try{Module.dump_traceback();for(let key of Object.keys(Module.public_api))key.startsWith(\"_\")||\"version\"===key||Object.defineProperty(Module.public_api,key,{enumerable:!0,configurable:!0,get:()=>{throw new Error(\"Pyodide already fatally failed and can no longer be used.\")}});Module.on_fatal&&Module.on_fatal(e)}catch(err2){console.error(\"Another error occurred while handling the fatal error:\"),console.error(err2)}throw e},Module.runPythonSimple=function(code){let errcode,code_c_string=Module.stringToNewUTF8(code);try{errcode=Module._run_python_simple_inner(code_c_string)}catch(e){Module.fatal_error(e)}finally{Module._free(code_c_string)}-1===errcode&&Module._pythonexc2js()},globalThis.loadPyodide=loadPyodide,globalThis.languagePluginUrl&&(console.warn(\"languagePluginUrl is deprecated and will be removed in version 0.18.0, instead use loadPyodide({ indexURL : <some_url>})\"),globalThis.languagePluginLoader=loadPyodide({indexURL:globalThis.languagePluginUrl}).then((pyodide=>self.pyodide=pyodide))),exports.loadPyodide=loadPyodide,Object.defineProperty(exports,\"__esModule\",{value:!0})}));\n//# sourceMappingURL=pyodide.js.map\n"
  },
  {
    "path": "pyp5js/http_local/static/p5_reference.yml",
    "content": "p5:\n    methods:\n        - alpha\n        - blue\n        - brightness\n        - color\n        - green\n        - hue\n        - lerpColor\n        - lightness\n        - red\n        - saturation\n        - background\n        - clear\n        - colorMode\n        - fill\n        - noFill\n        - noStroke\n        - stroke\n        - erase\n        - noErase\n\n        # 2D Primitives\n        - arc\n        - ellipse\n        - circle\n        - line\n        - point\n        - quad\n        - rect\n        - square\n        - triangle\n\n        # 3D Primitives\n        - plane\n        - box\n        - sphere\n        - cylinder\n        - cone\n        - ellipsoid\n        - torus\n\n        # 3D Models\n        - loadModel\n        - model\n\n        # Attributes\n        - ellipseMode\n        - noSmooth\n        - rectMode\n        - smooth\n        - strokeCap\n        - strokeJoin\n        - strokeWeight\n\n        # Curves\n        - bezier\n        - bezierDetail\n        - bezierPoint\n        - bezierTangent\n        - curve\n        - curveDetail\n        - curveTightness\n        - curvePoint\n        - curveTangent\n\n        # Vertex\n        - beginContour\n        - beginShape\n        - bezierVertex\n        - curveVertex\n        - endContour\n        - endShape\n        - quadraticVertex\n        - vertex\n\n        # Environment\n        - cursor\n        - frameRate\n        - noCursor\n        - fullscreen\n        - pixelDensity\n        - displayDensity\n        - getURL\n        - getURLPath\n        - getURLParams\n\n        # Structure\n        - preload\n        - setup\n        - draw\n        - remove\n        - noLoop\n        - loop\n        - push\n        - redraw\n\n        # Rendering\n        - resizeCanvas\n        - noCanvas\n        - createGraphics\n        - blendMode\n        - setAttributes\n\n        # Transform\n        - applyMatrix\n        - resetMatrix\n        - rotate\n        - rotateX\n        - rotateY\n        - rotateZ\n        - scale\n        - shearX\n        - shearY\n        - translate\n\n        # Dictionary\n        - createStringDict\n        - createNumberDict\n\n        # Array Functions\n        - append\n        - arrayCopy\n        - concat\n        - reverse\n        - shorten\n        - shuffle\n        - sort\n        - splice\n        - subset\n\n        # Conversion\n        - float\n        - int\n        - str\n        - boolean\n        - byte\n        - char\n        - unchar\n        - hex\n        - unhex\n\n        # String Functions\n        - join\n        - match\n        - matchAll\n        - nf\n        - nfc\n        - nfp\n        - nfs\n        - split\n        - splitTokens\n        - trim\n\n        # Acceleration\n        - setMoveThreshold\n        - setShakeThreshold\n\n        # Keyboard\n        - keyIsDown\n\n        # Image\n        - createImage\n        - saveCanvas\n        - saveFrames\n\n        # Loading & Displaying\n        - loadImage\n        - image\n        - tint\n        - noTint\n        - imageMode\n\n        # Pixels\n        - blend\n        - copy\n        - filter\n        - get\n        - loadPixels\n        - set\n        - updatePixels\n\n        # Input\n        - loadJSON\n        - loadStrings\n        - loadTable\n        - loadXML\n        - loadBytes\n        - httpGet\n        - httpPost\n        - httpDo\n\n        # Output\n        - createWriter\n        - save\n        - saveJSON\n        - saveStrings\n        - saveTable\n\n        # Time & Date\n        - day\n        - hour\n        - minute\n        - millis\n        - month\n        - second\n        - year\n\n        # Math\n        - createVector\n\n        # Calculation\n        - abs\n        - ceil\n        - constrain\n        - dist\n        - exp\n        - floor\n        - lerp\n        - log\n        - mag\n        - map\n        - max\n        - min\n        - norm\n        - pow\n        - round\n        - sq\n        - sqrt\n\n        # Noise\n        - noise\n        - noiseDetail\n        - noiseSeed\n\n        # Random\n        - randomSeed\n        - random\n        - randomGaussian\n\n        # Trigonometry\n        - acos\n        - asin\n        - atan\n        - atan2\n        - cos\n        - sin\n        - tan\n        - degrees\n        - radians\n        - angleMode\n\n        # Attributes\n        - textAlign\n        - textLeading\n        - textSize\n        - textStyle\n        - textWidth\n        - textAscent\n        - textDescent\n\n        # Loading & Displaying\n        - loadFont\n        - text\n        - textFont\n\n        # Interaction\n        - orbitControl\n        - debugMode\n        - noDebugMode\n\n        # Lights\n        - ambientLight\n        - directionalLight\n        - pointLight\n        - lights\n\n        # Material\n        - loadShader\n        - createShader\n        - shader\n        - resetShader\n        - normalMaterial\n        - texture\n        - textureMode\n        - textureWrap\n        - ambientMaterial\n        - specularMaterial\n        - shininess\n\n        # Camera\n        - camera\n        - perspective\n        - ortho\n        - createCamera\n        - setCamera\n\n    events:\n        # Devicce\n        - deviceMoved\n        - deviceTurned\n        - deviceShaken\n        # Keyboard\n        - keyPressed\n        - keyReleased\n        - keyTyped\n        # Mouse\n        - mouseMoved\n        - mouseDragged\n        - mousePressed\n        - mouseReleased\n        - mouseClicked\n        - doubleClicked\n        - mouseWheel\n        # Touch\n        - touchStarted\n        - touchMoved\n        - touchEnded\n        # Window\n        - windowResized\n\n    variables:\n        # Constants\n        - _CTX_MIDDLE\n        - _DEFAULT_FILL\n        - _DEFAULT_LEADMULT\n        - _DEFAULT_STROKE\n        - _DEFAULT_TEXT_FILL\n        - ADD\n        - ALT\n        - ARROW\n        - AUTO\n        - AXES\n        - BACKSPACE\n        - BASELINE\n        - BEVEL\n        - BEZIER\n        - BLEND\n        - BLUR\n        - BOLD\n        - BOLDITALIC\n        - BOTTOM\n        - BURN\n        - CENTER\n        - CHORD\n        - CLAMP\n        - CLOSE\n        - CONTROL\n        - CORNER\n        - CORNERS\n        - CROSS\n        - CURVE\n        - DARKEST\n        - DEG_TO_RAD\n        - DEGREES\n        - DELETE\n        - DIFFERENCE\n        - DILATE\n        - DODGE\n        - DOWN_ARROW\n        - ENTER\n        - ERODE\n        - ESCAPE\n        - EXCLUSION\n        - FILL\n        - GRAY\n        - GRID\n        - HALF_PI\n        - HAND\n        - HARD_LIGHT\n        - HSB\n        - HSL\n        - IMAGE\n        - IMMEDIATE\n        - INVERT\n        - ITALIC\n        - LANDSCAPE\n        - LEFT\n        - LEFT_ARROW\n        - LIGHTEST\n        - LINE_LOOP\n        - LINE_STRIP\n        - LINEAR\n        - LINES\n        - MIRROR\n        - MITER\n        - MOVE\n        - MULTIPLY\n        - NEAREST\n        - NORMAL\n        - OPAQUE\n        - OPEN\n        - OPTION\n        - OVERLAY\n        - PI\n        - PIE\n        - POINTS\n        - PORTRAIT\n        - POSTERIZE\n        - PROJECT\n        - QUAD_STRIP\n        - QUADRATIC\n        - QUADS\n        - QUARTER_PI\n        - RAD_TO_DEG\n        - RADIANS\n        - RADIUS\n        - REPEAT\n        - REPLACE\n        - RETURN\n        - RGB\n        - RIGHT\n        - RIGHT_ARROW\n        - ROUND\n        - SCREEN\n        - SHIFT\n        - SOFT_LIGHT\n        - SQUARE\n        - STROKE\n        - SUBTRACT\n        - TAB\n        - TAU\n        - TEXT\n        - TEXTURE\n        - THRESHOLD\n        - TOP\n        - TRIANGLE_FAN\n        - TRIANGLE_STRIP\n        - TRIANGLES\n        - TWO_PI\n        - UP_ARROW\n        - WAIT\n        - WEBGL\n        - P2D\n        - PI\n\n        # Environment\n        - frameCount\n        - focused\n        - displayWidth\n        - displayHeight\n        - windowWidth\n        - windowHeight\n        - width\n        - height\n        - disableFriendlyErrors\n        # Acceleration\n        - deviceOrientation\n        - accelerationX\n        - accelerationY\n        - accelerationZ\n        - pAccelerationX\n        - pAccelerationY\n        - pAccelerationZ\n        - rotationX\n        - rotationY\n        - rotationZ\n        - pRotationX\n        - pRotationY\n        - pRotationZ\n        - turnAxis\n        # Keyboard\n        - keyIsPressed\n        - key\n        - keyCode\n        # Mouse\n        - mouseX\n        - mouseY\n        - pmouseX\n        - pmouseY\n        - winMouseX\n        - winMouseY\n        - pwinMouseX\n        - pwinMouseY\n        - mouseButton\n        - mouseIsPressed\n\n        # Touch\n        - touches\n\n        # Pixels\n        - pixels\n\ndom:\n    methods:\n        - select\n        - selectAll\n        - removeElements\n        - changed\n        - input\n        - createDiv\n        - createP\n        - createSpan\n        - createImg\n        - createA\n        - createSlider\n        - createButton\n        - createCheckbox\n        - createSelect\n        - createRadio\n        - createColorPicker\n        - createInput\n        - createFileInput\n        - createVideo\n        - createAudio\n        - createCapture\n        - createElement\n    variables:\n        - VIDEO\n        - AUDIO\n"
  },
  {
    "path": "pyp5js/http_local/static/styles/custom.css",
    "content": "html {\n    font-family: sans-serif;\n}\n\na {\n    color: #07c;\n}\n\n.red {\n    color: #d21;\n}\n\n.input {\n    /* Color added due to .border of basscss force remove border color */\n    border-color: #ccc;\n}\n"
  },
  {
    "path": "pyp5js/http_local/templates/base.html",
    "content": "<!--\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n-->\n<!DOCTYPE html>\n<html>\n\n<head>\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>pyp5js - {% block title %}{% endblock title %}</title>\n\n    <link href=\"/static/styles/basscss-7.1.1.min.css\" rel=\"stylesheet\">\n    <link href=\"/static/styles/custom.css\" rel=\"stylesheet\">\n\n  {% block extra_head %}\n  {% endblock extra_head %}\n</head>\n\n<body>\n  <div class=\"mx-auto px2 lg-px4\">\n  {% block content %}\n  {% endblock content %}\n  </div>\n\n\n  {% block custom_js %}\n  {% endblock custom_js %}\n</body>\n\n</html>\n"
  },
  {
    "path": "pyp5js/http_local/templates/index.html",
    "content": "<!--\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n-->\n{% extends \"base.html\" %}\n{% block title %}Index{% endblock title %}\n\n{% block content %}\n  <h2>Welcome to your pyp5js sketchbook!</h2>\n  <p><a href=\"/new-sketch/\">Add a new sketch</a></p>\n  <p>Available sketches in {{ sketches_dir }}:</p>\n  <ul>\n  {% for sketch in sketches %}\n    <li><a href=\"{{ sketch.url }}\">{{ sketch.name }}</a></li>\n  {% endfor %}\n  </ul>\n{% endblock content %}\n"
  },
  {
    "path": "pyp5js/http_local/templates/new_sketch_form.html",
    "content": "<!--\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n-->\n{% extends \"base.html\" %}\n{% block title %}New sketch{% endblock title %}\n\n{% block content %}\n<div>\n  <h2 class=\"h2\">Start a new sketch</h2>\n  <p class=\"regular\">\n    Your sketch will be created in <b>{{ sketches_dir }}</b>\n  </p>\n  <form action=\".\" method=\"POST\">\n      {% if error %}\n      <p class=\"regular red\">{{error}}</p>\n      {% endif %}\n      <div class=\"flex flex-column clearfix\">\n        <div class=\"flex flex-center\">\n          <label class=\"label mr1 mb1\" for=\"sketch_name\">Sketch name</label>\n          <input class=\"input rounded border p1 mr1 mb1 sm-col-3\" type=\"text\" name=\"sketch_name\">\n        </div>\n        <div class=\"flex flex-center\">\n          <label class=\"label mr1 mb1\" for=\"sketch_name\">Interpreter</label>\n          <select class=\"input rounded border p1 mr1 mb1 sm-col-3\" name=\"interpreter\">\n            <option value=\"{{ pyodide_interpreter }}\" selected>Pyodide</option>\n            <option value=\"{{ transcrypt_interpreter }}\">Transcrypt</option>\n          </select>\n        </div>\n      </div>\n      <input class=\"btn btn-primary rounded border-none py1 px2 mb1\" type=\"submit\" value=\"Create\">\n  </form>\n</div>\n{% endblock content %}\n"
  },
  {
    "path": "pyp5js/http_local/templates/new_sketch_success.html",
    "content": "<!--\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n-->\n{% extends \"base.html\" %}\n{% block title %}Success!{% endblock title %}\n\n{% block content %}\n  <h2>Your sketch was created with success!!!</h2>\n  <p>Now you can start to draw, I mean, to code!</p>\n  <p>Edit your Python sketch file located at {{ files.sketch_py.resolve() }} and have fun!</p>\n  <p><a href=\"{{ sketch_url }}\">Click here</a> to see your results or <a href=\"/\">go back to the home</a>.</p>\n{% endblock content %}\n"
  },
  {
    "path": "pyp5js/http_local/templates/view_sketch.html",
    "content": "<!--\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n-->\n{% extends \"base.html\" %}\n{% block title %}{{ sketch_name }}{% endblock title %}\n\n{% block extra_head %}\n    <style>\n        html {\n          overflow-y: scroll;\n          overflow-x: scroll;\n        }\n\n        .demoContainer {\n          display: flex;\n          align-items: center;\n        }\n\n        pre {\n          margin-right: 2em;\n        }\n\n        .text-editor-box {\n          margin: 0 1.5em;\n          max-width: 800px;\n          display: flex;\n          flex-direction: column;\n          align-items: flex-end;\n        }\n\n        #text-editor {\n          float: left;\n          margin: 0.5em 0;\n          height: 800px;\n         }\n\n        .text-editor {\n          width: 700px;\n          transition-property: width;\n          transition: 500ms ease-out;\n        }\n\n        #sketch-buttons {\n          width: 100%;\n          min-width: 250px;\n          display: flex;\n          justify-content: space-between;\n          align-self: flex-start;\n        }\n\n        .left-buttons {\n          width: 100%;\n        }\n\n        .hidden-editor {\n          opacity: 0.2;\n          width: 250px;\n          transition-property: width;\n          transition: 500ms ease-in;\n        }\n\n        .code-container {\n          display: flex;\n          align-items: flex-start;\n          justify-content: flex-start;\n        }\n\n    </style>\n\n    <script src=\"/static/js/p5/p5.js\"></script>\n    {% if live_run %}\n      <script src=\"/static/js/pyodide/pyodide_v0.18.1.js\"></script>\n    {% endif %}\n{% endblock %}\n\n{% block content %}\n    <div class=\"demoContainer\">\n\n      <div style=\"display: block\">\n        <a href=\"/\">Back to sketchbook</a>\n        <form action=\".\" method=\"POST\">\n          <textarea class=\"display-none\" id=\"id_py_code\" name=\"py_code\">{{ py_code }}</textarea>\n          <div class=\"code-container\">\n            <div class=\"text-editor-box\">\n              <button id=\"collapseBtn\" title=\"Collapse the code editor\" type=\"button\"\n                class=\"btn btn-primary bg-orange rounded py1 px2 pb3\">\n                Collapse</button>\n              <div id=\"text-editor\" class=\"text-editor\">{{ py_code }}</div>\n              <div id=\"sketch-buttons\" class=\"clearfix\">\n                {% if live_run %}\n                <div class=\"left-buttons\">\n                  <button id=\"executeBtn\" title=\"(Ctrl/Cmd + Enter) to refresh the skecth\" type=\"button\"\n                    class=\"btn btn-primary bg-green rounded py1 px2 mb1\">Update</button>\n                  <button id=\"clearBtn\" title=\"(Ctrl/Cmd + .) to clear the skecth\" type=\"button\"\n                    class=\"btn btn-primary rounded bg-red py1 px2 mb1\">Clear</button>\n                </div>\n                {% endif %}\n                <input id=\"submitBtn\" title=\"(Ctrl/Cmd + s) to save the sketch\" class=\"btn btn-primary rounded py1 px2 mb1\"\n                  type=\"submit\" value=\"Save\">\n              </div>\n            </div>\n          </div>\n        </form>\n      </div>\n\n      <div id=\"sketch-holder\">\n        <!-- You sketch will go here! -->\n      </div>\n    </div>\n{% endblock content %}\n\n{% block custom_js %}\n    <script src=\"/static/js/ace/ace.js\"></script>\n\n    <script type=\"text/javascript\">\n        var editor = ace.edit(\"text-editor\");\n\n        editor.setTheme(\"ace/theme/monokai\");\n        editor.session.setMode(\"ace/mode/python\");\n        editor.setFontSize(16);\n        editor.session.setOptions({\n          tabSize: 4,\n        });\n\n        editor.session.on('change', function(){\n          document.getElementById(\"id_py_code\").innerHTML = editor.getSession().getValue();\n        });\n    </script>\n\n    <script src=\"{{ sketch_js_url }}\" {% if js_as_module %}type=\"module\"{% endif %}></script>\n\n    <script type=\"text/javascript\">\n      document.addEventListener(\"DOMContentLoaded\", () => {\n        const submitBtn = document.getElementById(\"submitBtn\");\n        const executeBtn = document.getElementById(\"executeBtn\");\n        const clearBtn = document.getElementById(\"clearBtn\");\n\n        executeBtn.addEventListener(\"click\", () => {\n          const code = editor.getSession().getValue();\n          window.runSketchCode(code);\n        });\n\n        const collapseBtn = document.getElementById(\"collapseBtn\");\n        collapseBtn.addEventListener(\"click\", () => {\n          const textEditorEl = document.getElementById(\"text-editor\");\n          textEditorEl.classList.toggle(\"hidden-editor\");\n          collapseBtn.textContent = (collapseBtn.textContent.includes(\"Collapse\")) ? \"Expand\" : \"Collapse\";\n        })\n\n        clearBtn.addEventListener(\"click\", () => {\n          document.getElementById(\"sketch-holder\").innerHTML = \"\";\n        });\n\n        document.body.addEventListener(\"keydown\", keyDown);\n\n        function cleanKeyCode(e) {\n          // Shortcuts work for Ctrl or Cmd\n          if (e.ctrlKey || e.metaKey) {\n            return e.keyCode;\n          }\n        }\n\n        function keyDown(e){\n            if(cleanKeyCode(e) === 83){  // Ctrl + s to save\n              e.preventDefault();\n              submitBtn.click();\n            {% if live_run %}\n            } else if (cleanKeyCode(e) === 13) {  // Ctrl + Enter to run\n              e.preventDefault();\n              executeBtn.click();\n            } else if(cleanKeyCode(e) === 190){  // Ctrl + . to clear\n              e.preventDefault();\n              clearBtn.click();\n            {% endif %}\n            }\n        }\n      });\n    </script>\n\n{% endblock %}\n"
  },
  {
    "path": "pyp5js/http_local/web_app.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport ast\nimport os\n\nfrom flask import Flask, render_template, request, send_from_directory\nfrom pyp5js import commands\nfrom pyp5js.config import (AVAILABLE_INTERPRETERS, PYODIDE_INTERPRETER,\n                           SKETCHBOOK_DIR, TRANSCRYPT_INTERPRETER)\nfrom pyp5js.exceptions import (PythonSketchDoesNotExist,\n                               SketchDirAlreadyExistException)\nfrom pyp5js.sketch import Sketch\nfrom slugify import slugify\n\napp = Flask(__name__)\nSUPPORTED_IMAGE_FILE_SUFFIXES = (\".gif\", \".jpg\", \".png\")\n\n\n@app.route(\"/\")\ndef sketches_list_view():\n    sketches = []\n    for sketch_dir in (p for p in SKETCHBOOK_DIR.iterdir() if p.is_dir()):\n        name = sketch_dir.name\n        sketch = Sketch(name)\n        if sketch.has_all_files:\n            sketches.append({\n                'name': name,\n                'url': f'/sketch/{name}/'\n            })\n\n    sketches = sorted(sketches, key=lambda s: s['name'])\n    return render_template('index.html', sketches=sketches, sketches_dir=SKETCHBOOK_DIR.resolve())\n\n\n@app.route(\"/new-sketch/\", methods=['GET', 'POST'])\ndef add_new_sketch_view():\n    template = 'new_sketch_form.html'\n    context = {\n        'sketches_dir': SKETCHBOOK_DIR.resolve(),\n        'pyodide_interpreter': PYODIDE_INTERPRETER,\n        'transcrypt_interpreter': TRANSCRYPT_INTERPRETER,\n    }\n\n    if request.method == 'POST':\n        sketch_name = slugify(request.form.get(\n            'sketch_name', '').strip(), separator='_')\n        interpreter = request.form.get('interpreter', PYODIDE_INTERPRETER)\n        if not sketch_name:\n            context['error'] = \"You have to input a sketch name to proceed.\"\n        elif interpreter not in AVAILABLE_INTERPRETERS:\n            context['error'] = f\"The interpreter {interpreter} is not valid. Please, select a valid one.\"\n        else:\n            try:\n                files = commands.new_sketch(sketch_name, interpreter=interpreter)\n                template = 'new_sketch_success.html'\n                context.update({\n                    'files': files,\n                    'sketch_url': f'/sketch/{sketch_name}/',\n                })\n            except SketchDirAlreadyExistException:\n                path = SKETCHBOOK_DIR.joinpath(sketch_name)\n                context['error'] = f\"The sketch {path} already exists.\"\n\n    return render_template(template, **context)\n\n\n@app.route('/sketch/<string:sketch_name>/', defaults={'static_path': ''}, methods=['GET', 'POST'])\n@app.route('/sketch/<string:sketch_name>/<path:static_path>')\ndef render_sketch_view(sketch_name, static_path):\n    sketch = Sketch(sketch_name)\n\n    error = ''\n    if static_path:\n        return _serve_static(sketch.sketch_dir, static_path)\n\n    elif request.method == 'POST':\n        py_code = request.form.get('py_code', '')\n        if not py_code.strip():\n            error = 'You have to input the Python code.'\n        elif 'def setup():' not in py_code:\n            error = 'You have to define a setup function.'\n        elif 'def draw():' not in py_code:\n            error = 'You have to define a draw function.'\n        else:\n            try:\n                ast.parse(py_code, sketch.sketch_py.name)\n                sketch.sketch_py.write_bytes(bytes(py_code, encoding=\"utf-8\"))\n            except SyntaxError as exc:\n                error = f'SyntaxError: {exc}'\n\n    if not error:\n        try:\n            # web editor must always use local install of JS dependencies\n            commands.compile_sketch(sketch_name, force_local=True)\n        except PythonSketchDoesNotExist:\n            return f\"There's no sketch in {sketch.sketch_dir.resolve()}\", 404\n\n    context = {\n        'p5_js_url': sketch.urls.p5_js_url,\n        'sketch_js_url': sketch.urls.sketch_js_url,\n        'sketch_name': sketch.sketch_name,\n        'py_code': sketch.sketch_py.read_text(),\n        'error': error,\n        'js_as_module': sketch.config.is_transcrypt,\n        'live_run': sketch.config.is_pyodide,\n    }\n    return render_template('view_sketch.html', **context)\n\n\ndef _serve_static(static_dir, static_path):\n    content_file = static_dir.joinpath(static_path).resolve()\n    if not str(content_file).startswith(str(static_dir.resolve())):\n        # User tried something not allowed (as \"/root/something\" or \"../xxx\")\n        return '', 403\n\n    resp = send_from_directory(static_dir.absolute(), static_path, etag=False, max_age=0)\n\n    if os.name == 'nt' and static_path.lower().endswith('.js'):\n        js_content = resp.headers['Content-Type'].replace('text/plain', 'application/javascript')\n        resp.headers['Content-Type'] = js_content\n\n    return resp\n"
  },
  {
    "path": "pyp5js/monitor.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport time\nfrom cprint import cprint\nfrom watchdog.events import PatternMatchingEventHandler\nfrom watchdog.observers import Observer\n\nfrom pyp5js.compiler import compile_sketch_js\n\n\ndef monitor_sketch(sketch):\n    observer = Observer()\n\n    event_handler = TranscryptSketchEventHandler(sketch=sketch, observer=observer)\n\n    observer.schedule(event_handler, str(sketch.sketch_dir.resolve()))\n    observer.start()\n    try:\n        while True:\n            time.sleep(1)\n    except KeyboardInterrupt as e:\n        observer.stop()\n        raise e\n    observer.join()\n\n\nclass TranscryptSketchEventHandler(PatternMatchingEventHandler):\n    patterns = [\"*.py\"]\n\n    def __init__(self, *args, **kwargs):\n        self.sketch = kwargs.pop('sketch')\n        self.observer = kwargs.pop('observer')\n        self._last_event = None\n        super().__init__(*args, **kwargs)\n\n    def on_modified(self, event):\n        cprint.info(f\"New change in {event.src_path}\")\n\n        # monkey patch on the observer handlers to avoid recursion\n        handlers_config = self.observer._handlers.copy()\n        handlers_copy = {}\n\n        compile_sketch_js(self.sketch)\n\n        queue = self.observer.event_queue\n        while queue.qsize():\n            queue.get()\n\n        index_file = self.sketch.index_html\n        cprint.ok(f\"Your sketch is ready and available at file://{index_file.absolute()}\")\n"
  },
  {
    "path": "pyp5js/sketch.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport os\nimport re\nimport shutil\nfrom collections import namedtuple\n\nfrom pyp5js import config\nfrom pyp5js.config.fs import PYP5JS_FILES\nfrom pyp5js.config.sketch import SketchConfig\nfrom pyp5js.exceptions import SketchDirAlreadyExistException, InvalidName\n\nSketchUrls = namedtuple('SketchUrls', ['p5_js_url', 'pyodide_js_url', 'sketch_js_url'])\n\n\nclass Sketch:\n    \"\"\"\n    This class abstracts the sketch filesystem and configuration.\n    Every path propery return pathlib.Path objects.\n    \"\"\"\n    TARGET_NAME = 'target'\n    STATIC_NAME = 'static'\n\n    def __init__(self, sketch_name, interpreter=config.TRANSCRYPT_INTERPRETER, **cfg):\n        self.sketch_name = sketch_name\n        if self.config_file.exists():\n            self.config = SketchConfig.from_json(self.config_file)\n        else:\n            self.config = SketchConfig(interpreter=interpreter, **cfg)\n\n    def validate_name(self):\n        does_not_start_with_letter_or_underscore = r'^[^a-zA-Z_]'\n        contains_non_alphanumerics_except_underscore = r'[^a-zA-Z0-9_]'\n        if re.match(does_not_start_with_letter_or_underscore, self.sketch_name) or \\\n                re.search(contains_non_alphanumerics_except_underscore, self.sketch_name):\n            raise InvalidName(self)\n\n    def create_sketch_dir(self):\n        \"\"\"\n        Create sketch required directories\n        \"\"\"\n        self.validate_name()\n\n        if self.sketch_dir.exists():\n            raise SketchDirAlreadyExistException(self)\n\n        os.makedirs(self.sketch_dir)\n        self.static_dir.mkdir()\n        self.target_dir.mkdir()\n        self.config.write(self.config_file)\n\n    def copy_initial_files(self, use_cdn=True):\n        \"\"\"\n        Copy requlred template files to the sketch directory\n        \"\"\"\n        if not use_cdn:\n            self.config.p5_js_url = \"/static/p5.js\"\n            if self.config.is_pyodide:\n                self.config.pyodide_js_url = \"/static/pyodide/pyodide_v0.18.1.js\"\n\n        templates_files = [\n            (self.config.get_base_sketch_template(), self.sketch_py),\n        ]\n        if not use_cdn:\n            templates_files.append((PYP5JS_FILES.p5js, self.p5js))\n            if self.config.is_pyodide:\n                shutil.copytree(PYP5JS_FILES.pyodide_js_dir, self.static_dir / \"pyodide\")\n                # delete packages.json that's not necessary\n                (self.static_dir / \"pyodide\" / \"packages.json\").unlink()\n\n        for src, dest in templates_files:\n            shutil.copyfile(src, dest)\n\n    @property\n    def sketch_exists(self):\n        return self.sketch_py.exists()\n\n    @property\n    def sketch_content(self):\n        if not self.sketch_py.exists():\n            return \"\"\n        with self.sketch_py.open(encoding=\"utf-8\") as fd:\n            return fd.read()\n\n    @property\n    def has_all_files(self):\n        return all([\n            self.sketch_exists,\n            self.index_html.exists()\n        ])\n\n    @property\n    def sketch_dir(self):\n        return config.SKETCHBOOK_DIR.joinpath(f'{self.sketch_name}')\n\n    @property\n    def static_dir(self):\n        return self.sketch_dir.joinpath(self.STATIC_NAME)\n\n    @property\n    def index_html(self):\n        return self.sketch_dir.joinpath('index.html')\n\n    @property\n    def p5js(self):\n        return self.static_dir.joinpath('p5.js')\n\n    @property\n    def target_sketch(self):\n        # TODO: There is a potential major refactoring here that's to create\n        # base sketch classes and specific implementations. One for a TranscryptSketch\n        # and another one for a PyodideSketch. I think the config\n        # attribute strategy can escalate complexity quickly and it\n        # was a bad idea, but have been working so far...\n        # bonus: opens path to a BrythonSketch ;]\n        if self.config.is_transcrypt:\n            return self.sketch_dir.joinpath(\"target_sketch.py\")\n        else:\n            return self.target_dir.joinpath(\"target_sketch.js\")\n\n    @property\n    def sketch_py(self):\n        return self.sketch_dir.joinpath(f'{self.sketch_name}.py')\n\n    @property\n    def config_file(self):\n        return self.sketch_dir.joinpath('.properties.json')\n\n    @property\n    def target_dir(self):\n        return self.sketch_dir.joinpath(self.TARGET_NAME)\n\n    def __eq__(self, other):\n        return self.sketch_name == other.sketch_name\n\n    @property\n    def urls(self):\n        return SketchUrls(\n            p5_js_url=self.config.p5_js_url,\n            pyodide_js_url=self.config.pyodide_js_url,\n            sketch_js_url=f\"{self.TARGET_NAME}/target_sketch.js\",\n        )\n\n    def get_target_sketch_context(self):\n        \"\"\"\n        This method is used by the template renderers to get the context to be used\n        to render final target/target_sketch.js file.\n        \"\"\"\n        context = {\n            \"sketch_name\": self.sketch_name,\n            \"sketch_content\": self.sketch_content,\n        }\n        if self.config.is_pyodide:\n            index = \"/\".join(self.config.pyodide_js_url.split(\"/\")[:-1]) + \"/\"\n            context.update({'pyodide_index_url': index})\n        return context\n\n"
  },
  {
    "path": "pyp5js/templates/pyodide/base_sketch.py.template",
    "content": "def setup():\n    createCanvas(200, 200)\n\ndef draw():\n    background(200)\n    diameter = sin(frameCount / 60) * 50 + 50\n    fill(\"blue\")\n    ellipse(100, 100, diameter, diameter)\n"
  },
  {
    "path": "pyp5js/templates/pyodide/index.html",
    "content": "<!--\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n-->\n<!DOCTYPE html>\n\n<!-- pyp5js index.html boilerplate -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>{{ sketch_name }} - pyp5js (using pyodide)</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"{{ pyodide_js_url }}\"></script>\n    <script src=\"{{ p5_js_url }}\"></script>\n    <script src=\"{{ sketch_js_url }}\"  type=\"module\"></script>\n  </head>\n\n  <body>\n    <div id=\"sketch-holder\">\n          <!-- You sketch will go here! -->\n    </div>\n  </body>\n</html>\n"
  },
  {
    "path": "pyp5js/templates/pyodide/target_sketch.js.template",
    "content": "/*\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n*/\nconst wrapperContent = `\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    p5_clear = _P5_INSTANCE.clear(*args)\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\ndef loadImage(*args):\n    return _P5_INSTANCE.loadImage(*args)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    return _P5_INSTANCE.get(*args)\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\ndef __deviceMoved(e):\n  try:\n    _bind_event_function(deviceMoved, e)\n  except NameError:\n    pass\n\ndef __deviceTurned(e):\n  try:\n    _bind_event_function(deviceTurned, e)\n  except NameError:\n    pass\n\ndef __deviceShaken(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchEnded(e):\n  try:\n    _bind_event_function(deviceShaken, e)\n  except NameError:\n    pass\n\ndef __touchStarted(e):\n  try:\n    _bind_event_function(touchStarted, e)\n  except NameError:\n    pass\n\ndef __windowResized(e):\n  try:\n    _bind_event_function(windowResized, e)\n  except NameError:\n    pass\n\ndef __touchMoved(e):\n  try:\n    _bind_event_function(touchMoved, e)\n  except NameError:\n    pass\n\ndef __mouseMoved(e):\n  try:\n    _bind_event_function(mouseMoved, e)\n  except NameError:\n    pass\n\ndef __mouseDragged(e):\n  try:\n    _bind_event_function(mouseDragged, e)\n  except NameError:\n      pass\n\ndef __mousePressed(e):\n  try:\n    _bind_event_function(mousePressed, e)\n  except NameError:\n    pass\n\ndef __mouseReleased(e):\n  try:\n    _bind_event_function(mouseReleased, e)\n  except NameError:\n    pass\n\ndef __mouseClicked(e):\n  try:\n    _bind_event_function(mouseClicked, e)\n  except NameError:\n    pass\n\ndef __doubleClicked(e):\n  try:\n    _bind_event_function(doubleClicked, e)\n  except NameError:\n    pass\n\ndef __mouseWheel(e):\n  try:\n    _bind_event_function(mouseWheel, e)\n  except NameError:\n    pass\n\ndef __keyPressed(e):\n  try:\n    _bind_event_function(keyPressed, e)\n  except NameError:\n    pass\n\ndef __keyReleased(e):\n  try:\n    _bind_event_function(keyReleased, e)\n  except NameError:\n    pass\n\ndef __keyTyped(e):\n  try:\n    _bind_event_function(keyTyped, e)\n  except NameError:\n    pass\n\ndef __keyIsDown(e):\n  try:\n    _bind_event_function(keyIsDown, e)\n  except NameError:\n    pass\n\ndef pop(*args):\n    p5_pop = _P5_INSTANCE.pop(*args)\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a wrapper/helper class for p5.Vector objets\n# providing names similar to Processing Python or Java modes\n# but mostly keeping p5js functionality\n\nfrom numbers import Number\n\nclass PVector:\n\n    def __init__(self, x=0, y=0, z=0):\n        self.__vector = createVector(x, y, z)\n        self.add = self.__instance_add__\n        self.sub = self.__instance_sub__\n        self.mult = self.__instance_mult__\n        self.div = self.__instance_div__\n        self.cross = self.__instance_cross__\n        self.dist = self.__instance_dist__\n        self.dot = self.__instance_dot__\n        self.lerp = self.__instance_lerp__\n\n    @property\n    def x(self):\n        return self.__vector.x\n\n    @x.setter\n    def x(self, x):\n        self.__vector.x = x\n\n    @property\n    def y(self):\n        return self.__vector.y\n\n    @y.setter\n    def y(self, y):\n        self.__vector.y = y\n\n    @property\n    def z(self):\n        return self.__vector.z\n\n    @z.setter\n    def z(self, z):\n        self.__vector.z = z\n\n    def mag(self):\n        return self.__vector.mag()\n\n    def magSq(self):\n        return self.__vector.magSq()\n\n    def setMag(self, mag):\n        self.__vector.setMag(mag)\n        return self\n\n    def normalize(self):\n        self.__vector.normalize()\n        return self\n\n    def limit(self, max):\n        self.__vector.limit(max)\n        return self\n\n    def heading(self):\n        return self.__vector.heading()\n\n    def rotate(self, angle):\n        self.__vector.rotate(angle)\n        return self\n\n    def __instance_add__(self, *args):\n        if len(args) == 1:\n            return PVector.add(self, args[0], self)\n        else:\n            return PVector.add(self, PVector(*args), self)\n\n    def __instance_sub__(self, *args):\n        if len(args) == 1:\n            return PVector.sub(self, args[0], self)\n        else:\n            return PVector.sub(self, PVector(*args), self)\n\n    def __instance_mult__(self, o):\n        return PVector.mult(self, o, self)\n\n    def __instance_div__(self, f):\n        return PVector.div(self, f, self)\n\n    def __instance_cross__(self, o):\n        return PVector.cross(self, o, self)\n\n    def __instance_dist__(self, o):\n        return PVector.dist(self, o)\n\n    def __instance_dot__(self, *args):\n        if len(args) == 1:\n            v = args[0]\n        else:\n            v = args\n        return self.x * v[0] + self.y * v[1] + self.z * v[2]\n\n    def __instance_lerp__(self, *args):\n        if len(args) == 2:\n            return PVector.lerp(self, args[0], args[1], self)\n        else:\n            vx, vy, vz, f = args\n            return PVector.lerp(self, PVector(vx, vy, vz), f, self)\n\n    def get(self):\n        return PVector(self.x, self.y, self.z)\n\n    def copy(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __getitem__(self, k):\n        return getattr(self, ('x', 'y', 'z')[k])\n\n    def __setitem__(self, k, v):\n        setattr(self, ('x', 'y', 'z')[k], v)\n\n    def __copy__(self):\n        return PVector(self.x, self.y, self.z)\n\n    def __deepcopy__(self, memo):\n        return PVector(self.x, self.y, self.z)\n\n    def __repr__(self):  # PROVISÓRIO\n        return f'PVector({self.x}, {self.y}, {self.z})'\n\n    def set(self, *args):\n        \"\"\"\n        Sets the x, y, and z component of the vector using two or three separate\n        variables, the data from a p5.Vector, or the values from a float array.\n        \"\"\"\n        self.__vector.set(*args)\n\n    @classmethod\n    def add(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x + b[0], a.y + b[1], a.z + b[2])\n        dest.__vector.set(a.x + b[0], a.y + b[1], a.z + b[2])\n        return dest\n\n    @classmethod\n    def sub(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x - b[0], a.y - b[1], a.z - b[2])\n        dest.__vector.set(a.x - b[0], a.y - b[1], a.z - b[2])\n        return dest\n\n    @classmethod\n    def mult(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x * b, a.y * b, a.z * b)\n        dest.__vector.set(a.x * b, a.y * b, a.z * b)\n        return dest\n\n    @classmethod\n    def div(cls, a, b, dest=None):\n        if dest is None:\n            return PVector(a.x / b, a.y / b, a.z / b)\n        dest.__vector.set(a.x / b, a.y / b, a.z / b)\n        return dest\n\n    @classmethod\n    def dist(cls, a, b):\n        return a.__vector.dist(b.__vector)\n\n    @classmethod\n    def dot(cls, a, b):\n        return a.__vector.dot(b.__vector)\n\n    def __add__(a, b):\n        return PVector.add(a, b, None)\n\n    def __sub__(a, b):\n        return PVector.sub(a, b, None)\n\n    def __isub__(a, b):\n        a.sub(b)\n        return a\n\n    def __iadd__(a, b):\n        a.add(b)\n        return a\n\n    def __mul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __rmul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector.mult(a, float(b), None)\n\n    def __imul__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The *= operator can only be used to multiply a PVector by a number\")\n        a.__vector.mult(float(b))\n        return a\n\n    def __truediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The * operator can only be used to multiply a PVector by a number\")\n        return PVector(a.x / float(b), a.y / float(b), a.z / float(b))\n\n    def __itruediv__(a, b):\n        if not isinstance(b, Number):\n            raise TypeError(\n                \"The /= operator can only be used to multiply a PVector by a number\")\n        a.__vector.set(a.x / float(b), a.y / float(b), a.z / float(b))\n        return a\n\n    def __eq__(a, b):\n        return a.x == b[0] and a.y == b[1] and a.z == b[2]\n\n    def __lt__(a, b):\n        return a.magSq() < b.magSq()\n\n    def __le__(a, b):\n        return a.magSq() <= b.magSq()\n\n    def __gt__(a, b):\n        return a.magSq() > b.magSq()\n\n    def __ge__(a, b):\n        return a.magSq() >= b.magSq()\n\n    # Problematic class methods, we would rather use p5.Vector when possible...\n\n    @classmethod\n    def lerp(cls, a, b, f, dest=None):\n        v = createVector(a.x, a.y, a.z)\n        v.lerp(b.__vector, f)\n        if dest is None:\n            return PVector(v.x, v.y, v.z)\n        dest.set(v.x, v.y, v.z)\n        return dest\n\n    @classmethod\n    def cross(cls, a, b, dest=None):\n        x = a.y * b[2] - b[1] * a.z\n        y = a.z * b[0] - b[2] * a.x\n        z = a.x * b[1] - b[0] * a.y\n        if dest is None:\n            return PVector(x, y, z)\n        dest.set(x, y, z)\n        return dest\n\n    @classmethod\n    def fromAngle(cls, angle, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        return PVector(length * cos(angle), length * sin(angle), 0)\n\n    @classmethod\n    def fromAngles(theta, phi, length=1):\n        # https://github.com/processing/p5.js/blob/3f0b2f0fe575dc81c724474154f5b23a517b7233/src/math/p5.Vector.js\n        cosPhi = cos(phi)\n        sinPhi = sin(phi)\n        cosTheta = cos(theta)\n        sinTheta = sin(theta)\n        return PVector(length * sinTheta * sinPhi,\n                       -length * cosTheta,\n                       length * sinTheta * cosPhi)\n\n    @classmethod\n    def random2D(cls):\n        return PVector.fromAngle(random(TWO_PI))\n\n    @classmethod\n    def random3D(cls, dest=None):\n        angle = random(TWO_PI)\n        vz = random(2) - 1\n        mult = sqrt(1 - vz * vz)\n        vx = mult * cos(angle)\n        vy = mult * sin(angle)\n        if dest is None:\n            return PVector(vx, vy, vz)\n        dest.set(vx, vy, vz)\n        return dest\n\n    @classmethod\n    def angleBetween(cls, a, b):\n        return acos(a.dot(b) / sqrt(a.magSq() * b.magSq()))\n\n    # Other harmless p5js methods\n\n    def equals(self, v):\n        return self == v\n\n    def heading2D(self):\n        return self.__vector.heading()\n\n    def reflect(self, *args):\n        # Reflect the incoming vector about a normal to a line in 2D, or about\n        # a normal to a plane in 3D This method acts on the vector directly\n        r = self.__vector.reflect(*args)\n        return r\n\n    def array(self):\n        # Return a representation of this vector as a float array. This is only\n        # for temporary use. If used in any w fashion, the contents should be\n        # copied by using the p5.Vector.copy() method to copy into your own\n        # array.\n        return self.__vector.array()\n\n    def toString(self):\n        # Returns a string representation of a vector v by calling String(v) or v.toString().\n        # return self.__vector.toString() would be something like \"p5.vector\n        # Object […, …, …]\"\n        return str(self)\n\n    def rem(self, *args):\n        # Gives remainder of a vector when it is divided by anw vector. See\n        # examples for more context.\n        self.__vector.rem(*args)\n        return self\n\n\ndef pre_draw(p5_instance, draw_func, *args, **kwargs):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, P3D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP\n    global QUADRATIC, QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func(*args, **kwargs)\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f, *args, **kwargs):\n        def wrapper(*args, **kwargs):\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f, *args, **kwargs)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: A Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        \"\"\"\n        Callback function called to configure new p5 instance\n        \"\"\"\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    window.instance = p5.new(sketch_setup, 'sketch-holder')\n\n    # Register event functions\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\",\n    )\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(window.instance)(func)\n        setattr(window.instance, f_name, event_func)\n`;\n\nconst placeholder = `\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\n`;\n\nlet userCode = `\n{{ sketch_content }}\n`;\n\nconst startCode = `\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n`;\n\nfunction runCode() {\n    let code = [\n        placeholder,\n        userCode,\n        wrapperContent,\n        startCode,\n    ].join('\\n');\n\n    if (window.instance) {\n      window.instance.canvas.remove();\n    }\n\n    console.log(\"Python execution output:\");\n    window.pyodide.runPython(code);\n}\n\n\nasync function main() {\n    const config = {\n        indexURL : \"{{ pyodide_index_url }}\",\n        fullStdLib: false,\n    }\n    window.pyodide = await loadPyodide(config);\n    // Pyodide is now ready to use...\n    console.log(window.pyodide.runPython(`\n        import io, code, sys\n        from js import p5, window, document\n        print(sys.version)\n  `));\n   window.runSketchCode = (code) => {\n      userCode = code;\n      runCode();\n    }\n\n    runCode();\n};\n\n// async method\nmain();\n"
  },
  {
    "path": "pyp5js/templates/transcrypt/base_sketch.py.template",
    "content": "def setup():\n    createCanvas(200, 200)\n\ndef draw():\n    background(200)\n    diameter = sin(frameCount / 60) * 50 + 50\n    fill(\"blue\")\n    ellipse(100, 100, diameter, diameter)\n"
  },
  {
    "path": "pyp5js/templates/transcrypt/index.html",
    "content": "<!--\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n-->\n<!DOCTYPE html>\n\n<!-- pyp5js index.html boilerplate -->\n<html lang=\"\">\n  <head>\n\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>{{ sketch_name }} - pyp5js</title>\n    <style> body, html, canvas {padding: 0; margin: 0; overflow: hidden;} </style>\n\n    <script src=\"{{ p5_js_url }}\"></script>\n    <script src=\"{{ sketch_js_url }}\"  type=\"module\"></script>\n  </head>\n\n  <body>\n    <div id=\"sketch-holder\">\n          <!-- You sketch will go here! -->\n    </div>\n  </body>\n</html>\n"
  },
  {
    "path": "pyp5js/templates/transcrypt/pyp5js.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nfrom python_functions import PythonFunctions\n\n_P5_INSTANCE = None\n\n_CTX_MIDDLE = None\n_DEFAULT_FILL = None\n_DEFAULT_LEADMULT = None\n_DEFAULT_STROKE = None\n_DEFAULT_TEXT_FILL = None\n\nADD = None\nALT = None\nARROW = None\nAUDIO = None\nAUTO = None\nAXES = None\nBACKSPACE = None\nBASELINE = None\nBEVEL = None\nBEZIER = None\nBLEND = None\nBLUR = None\nBOLD = None\nBOLDITALIC = None\nBOTTOM = None\nBURN = None\nCENTER = None\nCHORD = None\nCLAMP = None\nCLOSE = None\nCONTROL = None\nCORNER = None\nCORNERS = None\nCROSS = None\nCURVE = None\nDARKEST = None\nDEG_TO_RAD = None\nDEGREES = None\nDELETE = None\nDIFFERENCE = None\nDILATE = None\nDODGE = None\nDOWN_ARROW = None\nENTER = None\nERODE = None\nESCAPE = None\nEXCLUSION = None\nFILL = None\nGRAY = None\nGRID = None\nHALF_PI = None\nHAND = None\nHARD_LIGHT = None\nHSB = None\nHSL = None\nIMAGE = None\nIMMEDIATE = None\nINVERT = None\nITALIC = None\nLANDSCAPE = None\nLEFT = None\nLEFT_ARROW = None\nLIGHTEST = None\nLINE_LOOP = None\nLINE_STRIP = None\nLINEAR = None\nLINES = None\nMIRROR = None\nMITER = None\nMOVE = None\nMULTIPLY = None\nNEAREST = None\nNORMAL = None\nOPAQUE = None\nOPEN = None\nOPTION = None\nOVERLAY = None\nPI = None\nPIE = None\nPOINTS = None\nPORTRAIT = None\nPOSTERIZE = None\nPROJECT = None\nQUAD_STRIP = None\nQUADRATIC = None\nQUADS = None\nQUARTER_PI = None\nRAD_TO_DEG = None\nRADIANS = None\nRADIUS = None\nREPEAT = None\nREPLACE = None\nRETURN = None\nRGB = None\nRIGHT = None\nRIGHT_ARROW = None\nROUND = None\nSCREEN = None\nSHIFT = None\nSOFT_LIGHT = None\nSQUARE = None\nSTROKE = None\nSUBTRACT = None\nTAB = None\nTAU = None\nTEXT = None\nTEXTURE = None\nTHRESHOLD = None\nTOP = None\nTRIANGLE_FAN = None\nTRIANGLE_STRIP = None\nTRIANGLES = None\nTWO_PI = None\nUP_ARROW = None\nVIDEO = None\nWAIT = None\nWEBGL = None\nP2D = None\nPI = None\n\nframeCount = None\nfocused = None\ndisplayWidth = None\ndisplayHeight = None\nwindowWidth = None\nwindowHeight = None\nwidth = None\nheight = None\ndisableFriendlyErrors = None\ndeviceOrientation = None\naccelerationX = None\naccelerationY = None\naccelerationZ = None\npAccelerationX = None\npAccelerationY = None\npAccelerationZ = None\nrotationX = None\nrotationY = None\nrotationZ = None\npRotationX = None\npRotationY = None\npRotationZ = None\nturnAxis = None\nkeyIsPressed = None\nkey = None\nkeyCode = None\nmouseX = None\nmouseY = None\npmouseX = None\npmouseY = None\nwinMouseX = None\nwinMouseY = None\npwinMouseX = None\npwinMouseY = None\nmouseButton = None\nmouseIsPressed = None\ntouches = None\npixels = None\n\n\ndef alpha(*args):\n    return _P5_INSTANCE.alpha(*args)\n\ndef blue(*args):\n    return _P5_INSTANCE.blue(*args)\n\ndef brightness(*args):\n    return _P5_INSTANCE.brightness(*args)\n\ndef color(*args):\n    return _P5_INSTANCE.color(*args)\n\ndef green(*args):\n    return _P5_INSTANCE.green(*args)\n\ndef hue(*args):\n    return _P5_INSTANCE.hue(*args)\n\ndef lerpColor(*args):\n    return _P5_INSTANCE.lerpColor(*args)\n\ndef lightness(*args):\n    return _P5_INSTANCE.lightness(*args)\n\ndef red(*args):\n    return _P5_INSTANCE.red(*args)\n\ndef saturation(*args):\n    return _P5_INSTANCE.saturation(*args)\n\ndef background(*args):\n    return _P5_INSTANCE.background(*args)\n\ndef clear(*args):\n    __pragma__('noalias', 'clear')\n    p5_clear = _P5_INSTANCE.clear(*args)\n    __pragma__('alias', 'clear', 'py_clear')\n    return p5_clear\n\ndef erase(*args):\n    return _P5_INSTANCE.erase(*args)\n\ndef noErase(*args):\n    return _P5_INSTANCE.noErase(*args)\n\ndef colorMode(*args):\n    return _P5_INSTANCE.colorMode(*args)\n\ndef fill(*args):\n    return _P5_INSTANCE.fill(*args)\n\ndef noFill(*args):\n    return _P5_INSTANCE.noFill(*args)\n\ndef noStroke(*args):\n    return _P5_INSTANCE.noStroke(*args)\n\ndef stroke(*args):\n    return _P5_INSTANCE.stroke(*args)\n\ndef arc(*args):\n    return _P5_INSTANCE.arc(*args)\n\ndef ellipse(*args):\n    return _P5_INSTANCE.ellipse(*args)\n\ndef circle(*args):\n    return _P5_INSTANCE.circle(*args)\n\ndef line(*args):\n    return _P5_INSTANCE.line(*args)\n\ndef point(*args):\n    return _P5_INSTANCE.point(*args)\n\ndef quad(*args):\n    return _P5_INSTANCE.quad(*args)\n\ndef rect(*args):\n    return _P5_INSTANCE.rect(*args)\n\ndef square(*args):\n    return _P5_INSTANCE.square(*args)\n\ndef triangle(*args):\n    return _P5_INSTANCE.triangle(*args)\n\ndef plane(*args):\n    return _P5_INSTANCE.plane(*args)\n\ndef box(*args):\n    return _P5_INSTANCE.box(*args)\n\ndef sphere(*args):\n    return _P5_INSTANCE.sphere(*args)\n\ndef cylinder(*args):\n    return _P5_INSTANCE.cylinder(*args)\n\ndef cone(*args):\n    return _P5_INSTANCE.cone(*args)\n\ndef ellipsoid(*args):\n    return _P5_INSTANCE.ellipsoid(*args)\n\ndef torus(*args):\n    return _P5_INSTANCE.torus(*args)\n\ndef loadModel(*args):\n    return _P5_INSTANCE.loadModel(*args)\n\ndef model(*args):\n    return _P5_INSTANCE.model(*args)\n\ndef ellipseMode(*args):\n    return _P5_INSTANCE.ellipseMode(*args)\n\ndef noSmooth(*args):\n    return _P5_INSTANCE.noSmooth(*args)\n\ndef rectMode(*args):\n    return _P5_INSTANCE.rectMode(*args)\n\ndef smooth(*args):\n    return _P5_INSTANCE.smooth(*args)\n\ndef strokeCap(*args):\n    return _P5_INSTANCE.strokeCap(*args)\n\ndef strokeJoin(*args):\n    return _P5_INSTANCE.strokeJoin(*args)\n\ndef strokeWeight(*args):\n    return _P5_INSTANCE.strokeWeight(*args)\n\ndef bezier(*args):\n    return _P5_INSTANCE.bezier(*args)\n\ndef bezierDetail(*args):\n    return _P5_INSTANCE.bezierDetail(*args)\n\ndef bezierPoint(*args):\n    return _P5_INSTANCE.bezierPoint(*args)\n\ndef bezierTangent(*args):\n    return _P5_INSTANCE.bezierTangent(*args)\n\ndef curve(*args):\n    return _P5_INSTANCE.curve(*args)\n\ndef curveDetail(*args):\n    return _P5_INSTANCE.curveDetail(*args)\n\ndef curveTightness(*args):\n    return _P5_INSTANCE.curveTightness(*args)\n\ndef curvePoint(*args):\n    return _P5_INSTANCE.curvePoint(*args)\n\ndef curveTangent(*args):\n    return _P5_INSTANCE.curveTangent(*args)\n\ndef beginContour(*args):\n    return _P5_INSTANCE.beginContour(*args)\n\ndef beginShape(*args):\n    return _P5_INSTANCE.beginShape(*args)\n\ndef bezierVertex(*args):\n    return _P5_INSTANCE.bezierVertex(*args)\n\ndef curveVertex(*args):\n    return _P5_INSTANCE.curveVertex(*args)\n\ndef endContour(*args):\n    return _P5_INSTANCE.endContour(*args)\n\ndef endShape(*args):\n    return _P5_INSTANCE.endShape(*args)\n\ndef quadraticVertex(*args):\n    return _P5_INSTANCE.quadraticVertex(*args)\n\ndef vertex(*args):\n    return _P5_INSTANCE.vertex(*args)\n\ndef cursor(*args):\n    return _P5_INSTANCE.cursor(*args)\n\ndef frameRate(*args):\n    return _P5_INSTANCE.frameRate(*args)\n\ndef noCursor(*args):\n    return _P5_INSTANCE.noCursor(*args)\n\ndef fullscreen(*args):\n    return _P5_INSTANCE.fullscreen(*args)\n\ndef pixelDensity(*args):\n    return _P5_INSTANCE.pixelDensity(*args)\n\ndef displayDensity(*args):\n    return _P5_INSTANCE.displayDensity(*args)\n\ndef getURL(*args):\n    return _P5_INSTANCE.getURL(*args)\n\ndef getURLPath(*args):\n    return _P5_INSTANCE.getURLPath(*args)\n\ndef getURLParams(*args):\n    return _P5_INSTANCE.getURLParams(*args)\n\ndef preload(*args):\n    return _P5_INSTANCE.preload(*args)\n\ndef setup(*args):\n    return _P5_INSTANCE.setup(*args)\n\ndef draw(*args):\n    return _P5_INSTANCE.draw(*args)\n\ndef remove(*args):\n    return _P5_INSTANCE.remove(*args)\n\ndef noLoop(*args):\n    return _P5_INSTANCE.noLoop(*args)\n\ndef loop(*args):\n    return _P5_INSTANCE.loop(*args)\n\ndef push(*args):\n    return _P5_INSTANCE.push(*args)\n\ndef redraw(*args):\n    return _P5_INSTANCE.redraw(*args)\n\ndef resizeCanvas(*args):\n    return _P5_INSTANCE.resizeCanvas(*args)\n\ndef noCanvas(*args):\n    return _P5_INSTANCE.noCanvas(*args)\n\ndef createGraphics(*args):\n    return _P5_INSTANCE.createGraphics(*args)\n\ndef blendMode(*args):\n    return _P5_INSTANCE.blendMode(*args)\n\ndef setAttributes(*args):\n    return _P5_INSTANCE.setAttributes(*args)\n\ndef applyMatrix(*args):\n    return _P5_INSTANCE.applyMatrix(*args)\n\ndef resetMatrix(*args):\n    return _P5_INSTANCE.resetMatrix(*args)\n\ndef rotate(*args):\n    return _P5_INSTANCE.rotate(*args)\n\ndef rotateX(*args):\n    return _P5_INSTANCE.rotateX(*args)\n\ndef rotateY(*args):\n    return _P5_INSTANCE.rotateY(*args)\n\ndef rotateZ(*args):\n    return _P5_INSTANCE.rotateZ(*args)\n\ndef scale(*args):\n    return _P5_INSTANCE.scale(*args)\n\ndef shearX(*args):\n    return _P5_INSTANCE.shearX(*args)\n\ndef shearY(*args):\n    return _P5_INSTANCE.shearY(*args)\n\ndef translate(*args):\n    return _P5_INSTANCE.translate(*args)\n\ndef createStringDict(*args):\n    return _P5_INSTANCE.createStringDict(*args)\n\ndef createNumberDict(*args):\n    return _P5_INSTANCE.createNumberDict(*args)\n\ndef append(*args):\n    return _P5_INSTANCE.append(*args)\n\ndef arrayCopy(*args):\n    return _P5_INSTANCE.arrayCopy(*args)\n\ndef concat(*args):\n    return _P5_INSTANCE.concat(*args)\n\ndef reverse(*args):\n    return _P5_INSTANCE.reverse(*args)\n\ndef shorten(*args):\n    return _P5_INSTANCE.shorten(*args)\n\ndef shuffle(*args):\n    return _P5_INSTANCE.shuffle(*args)\n\ndef sort(*args):\n    return _P5_INSTANCE.sort(*args)\n\ndef splice(*args):\n    return _P5_INSTANCE.splice(*args)\n\ndef subset(*args):\n    return _P5_INSTANCE.subset(*args)\n\ndef float(*args):\n    return _P5_INSTANCE.float(*args)\n\ndef int(*args):\n    return _P5_INSTANCE.int(*args)\n\ndef str(*args):\n    return _P5_INSTANCE.str(*args)\n\ndef boolean(*args):\n    return _P5_INSTANCE.boolean(*args)\n\ndef byte(*args):\n    return _P5_INSTANCE.byte(*args)\n\ndef char(*args):\n    return _P5_INSTANCE.char(*args)\n\ndef unchar(*args):\n    return _P5_INSTANCE.unchar(*args)\n\ndef hex(*args):\n    return _P5_INSTANCE.hex(*args)\n\ndef unhex(*args):\n    return _P5_INSTANCE.unhex(*args)\n\ndef join(*args):\n    return _P5_INSTANCE.join(*args)\n\ndef match(*args):\n    return _P5_INSTANCE.match(*args)\n\ndef matchAll(*args):\n    return _P5_INSTANCE.matchAll(*args)\n\ndef nf(*args):\n    return _P5_INSTANCE.nf(*args)\n\ndef nfc(*args):\n    return _P5_INSTANCE.nfc(*args)\n\ndef nfp(*args):\n    return _P5_INSTANCE.nfp(*args)\n\ndef nfs(*args):\n    return _P5_INSTANCE.nfs(*args)\n\ndef split(*args):\n    return _P5_INSTANCE.split(*args)\n\ndef splitTokens(*args):\n    return _P5_INSTANCE.splitTokens(*args)\n\ndef trim(*args):\n    return _P5_INSTANCE.trim(*args)\n\ndef setMoveThreshold(*args):\n    return _P5_INSTANCE.setMoveThreshold(*args)\n\ndef setShakeThreshold(*args):\n    return _P5_INSTANCE.setShakeThreshold(*args)\n\ndef keyIsDown(*args):\n    return _P5_INSTANCE.keyIsDown(*args)\n\ndef createImage(*args):\n    return _P5_INSTANCE.createImage(*args)\n\ndef saveCanvas(*args):\n    return _P5_INSTANCE.saveCanvas(*args)\n\ndef saveFrames(*args):\n    return _P5_INSTANCE.saveFrames(*args)\n\n\ndef image_proxy(img):\n    \"\"\"\n    Proxy to turn of transcypt when calling img.get/set methods\n    \"\"\"\n\n    def _set(*args):\n        __pragma__('noalias', 'set')\n        value = img.set(*args)\n        __pragma__('alias', 'set', 'py_set')\n        return value\n\n    def _get(*args):\n        __pragma__('noalias', 'get')\n        value = img.get(*args)\n        __pragma__('alias', 'get', 'py_get')\n        return value\n\n    img.set = _set\n    img.get = _get\n    return img\n\n\ndef loadImage(*args):\n    imageObj = _P5_INSTANCE.loadImage(*args)\n    return image_proxy(imageObj)\n\ndef image(*args):\n    return _P5_INSTANCE.image(*args)\n\ndef tint(*args):\n    return _P5_INSTANCE.tint(*args)\n\ndef noTint(*args):\n    return _P5_INSTANCE.noTint(*args)\n\ndef imageMode(*args):\n    return _P5_INSTANCE.imageMode(*args)\n\ndef blend(*args):\n    return _P5_INSTANCE.blend(*args)\n\ndef copy(*args):\n    return _P5_INSTANCE.copy(*args)\n\ndef filter(*args):\n    if len(args) > 1 and (args[0] is None or callable(args[0])):\n        return PythonFunctions.filter(*args)\n    else:\n        return _P5_INSTANCE.filter(*args)\n\ndef get(*args):\n    __pragma__('noalias', 'get')\n    p5_get = _P5_INSTANCE.get(*args)\n    __pragma__('alias', 'get', 'py_get')\n    return p5_get\n\ndef loadPixels(*args):\n    return _P5_INSTANCE.loadPixels(*args)\n\ndef set(*args):\n    if len(args) <= 1:\n        return PythonFunctions.set(*args)\n    else:\n        return _P5_INSTANCE.set(*args)\n\ndef updatePixels(*args):\n    return _P5_INSTANCE.updatePixels(*args)\n\ndef loadJSON(*args):\n    return _P5_INSTANCE.loadJSON(*args)\n\ndef loadStrings(*args):\n    return _P5_INSTANCE.loadStrings(*args)\n\ndef loadTable(*args):\n    return _P5_INSTANCE.loadTable(*args)\n\ndef loadXML(*args):\n    return _P5_INSTANCE.loadXML(*args)\n\ndef loadBytes(*args):\n    return _P5_INSTANCE.loadBytes(*args)\n\ndef httpGet(*args):\n    return _P5_INSTANCE.httpGet(*args)\n\ndef httpPost(*args):\n    return _P5_INSTANCE.httpPost(*args)\n\ndef httpDo(*args):\n    return _P5_INSTANCE.httpDo(*args)\n\ndef createWriter(*args):\n    return _P5_INSTANCE.createWriter(*args)\n\ndef save(*args):\n    return _P5_INSTANCE.save(*args)\n\ndef saveJSON(*args):\n    return _P5_INSTANCE.saveJSON(*args)\n\ndef saveStrings(*args):\n    return _P5_INSTANCE.saveStrings(*args)\n\ndef saveTable(*args):\n    return _P5_INSTANCE.saveTable(*args)\n\ndef day(*args):\n    return _P5_INSTANCE.day(*args)\n\ndef hour(*args):\n    return _P5_INSTANCE.hour(*args)\n\ndef minute(*args):\n    return _P5_INSTANCE.minute(*args)\n\ndef millis(*args):\n    return _P5_INSTANCE.millis(*args)\n\ndef month(*args):\n    return _P5_INSTANCE.month(*args)\n\ndef second(*args):\n    return _P5_INSTANCE.second(*args)\n\ndef year(*args):\n    return _P5_INSTANCE.year(*args)\n\ndef createVector(*args):\n    return _P5_INSTANCE.createVector(*args)\n\ndef abs(*args):\n    return _P5_INSTANCE.abs(*args)\n\ndef ceil(*args):\n    return _P5_INSTANCE.ceil(*args)\n\ndef constrain(*args):\n    return _P5_INSTANCE.constrain(*args)\n\ndef dist(*args):\n    return _P5_INSTANCE.dist(*args)\n\ndef exp(*args):\n    return _P5_INSTANCE.exp(*args)\n\ndef floor(*args):\n    return _P5_INSTANCE.floor(*args)\n\ndef lerp(*args):\n    return _P5_INSTANCE.lerp(*args)\n\ndef log(*args):\n    return _P5_INSTANCE.log(*args)\n\ndef mag(*args):\n    return _P5_INSTANCE.mag(*args)\n\ndef map(*args):\n    if len(args) > 1 and callable(args[0]):\n        return PythonFunctions.map(*args)\n    else:\n        return _P5_INSTANCE.map(*args)\n\n\ndef max(*args):\n    return _P5_INSTANCE.max(*args)\n\ndef min(*args):\n    return _P5_INSTANCE.min(*args)\n\ndef norm(*args):\n    return _P5_INSTANCE.norm(*args)\n\ndef pow(*args):\n    return _P5_INSTANCE.pow(*args)\n\ndef round(*args):\n    return _P5_INSTANCE.round(*args)\n\ndef sq(*args):\n    return _P5_INSTANCE.sq(*args)\n\ndef sqrt(*args):\n    return _P5_INSTANCE.sqrt(*args)\n\ndef noise(*args):\n    return _P5_INSTANCE.noise(*args)\n\ndef noiseDetail(*args):\n    return _P5_INSTANCE.noiseDetail(*args)\n\ndef noiseSeed(*args):\n    return _P5_INSTANCE.noiseSeed(*args)\n\ndef randomSeed(*args):\n    return _P5_INSTANCE.randomSeed(*args)\n\ndef random(*args):\n    return _P5_INSTANCE.random(*args)\n\ndef randomGaussian(*args):\n    return _P5_INSTANCE.randomGaussian(*args)\n\ndef acos(*args):\n    return _P5_INSTANCE.acos(*args)\n\ndef asin(*args):\n    return _P5_INSTANCE.asin(*args)\n\ndef atan(*args):\n    return _P5_INSTANCE.atan(*args)\n\ndef atan2(*args):\n    return _P5_INSTANCE.atan2(*args)\n\ndef cos(*args):\n    return _P5_INSTANCE.cos(*args)\n\ndef sin(*args):\n    return _P5_INSTANCE.sin(*args)\n\ndef tan(*args):\n    return _P5_INSTANCE.tan(*args)\n\ndef degrees(*args):\n    return _P5_INSTANCE.degrees(*args)\n\ndef radians(*args):\n    return _P5_INSTANCE.radians(*args)\n\ndef angleMode(*args):\n    return _P5_INSTANCE.angleMode(*args)\n\ndef textAlign(*args):\n    return _P5_INSTANCE.textAlign(*args)\n\ndef textLeading(*args):\n    return _P5_INSTANCE.textLeading(*args)\n\ndef textSize(*args):\n    return _P5_INSTANCE.textSize(*args)\n\ndef textStyle(*args):\n    return _P5_INSTANCE.textStyle(*args)\n\ndef textWidth(*args):\n    return _P5_INSTANCE.textWidth(*args)\n\ndef textAscent(*args):\n    return _P5_INSTANCE.textAscent(*args)\n\ndef textDescent(*args):\n    return _P5_INSTANCE.textDescent(*args)\n\ndef loadFont(*args):\n    return _P5_INSTANCE.loadFont(*args)\n\ndef text(*args):\n    return _P5_INSTANCE.text(*args)\n\ndef textFont(*args):\n    return _P5_INSTANCE.textFont(*args)\n\ndef orbitControl(*args):\n    return _P5_INSTANCE.orbitControl(*args)\n\ndef debugMode(*args):\n    return _P5_INSTANCE.debugMode(*args)\n\ndef noDebugMode(*args):\n    return _P5_INSTANCE.noDebugMode(*args)\n\ndef ambientLight(*args):\n    return _P5_INSTANCE.ambientLight(*args)\n\ndef directionalLight(*args):\n    return _P5_INSTANCE.directionalLight(*args)\n\ndef pointLight(*args):\n    return _P5_INSTANCE.pointLight(*args)\n\ndef lights(*args):\n    return _P5_INSTANCE.lights(*args)\n\ndef loadShader(*args):\n    return _P5_INSTANCE.loadShader(*args)\n\ndef createShader(*args):\n    return _P5_INSTANCE.createShader(*args)\n\ndef shader(*args):\n    return _P5_INSTANCE.shader(*args)\n\ndef resetShader(*args):\n    return _P5_INSTANCE.resetShader(*args)\n\ndef normalMaterial(*args):\n    return _P5_INSTANCE.normalMaterial(*args)\n\ndef texture(*args):\n    return _P5_INSTANCE.texture(*args)\n\ndef textureMode(*args):\n    return _P5_INSTANCE.textureMode(*args)\n\ndef textureWrap(*args):\n    return _P5_INSTANCE.textureWrap(*args)\n\ndef ambientMaterial(*args):\n    return _P5_INSTANCE.ambientMaterial(*args)\n\ndef specularMaterial(*args):\n    return _P5_INSTANCE.specularMaterial(*args)\n\ndef shininess(*args):\n    return _P5_INSTANCE.shininess(*args)\n\ndef camera(*args):\n    return _P5_INSTANCE.camera(*args)\n\ndef perspective(*args):\n    return _P5_INSTANCE.perspective(*args)\n\ndef ortho(*args):\n    return _P5_INSTANCE.ortho(*args)\n\ndef createCamera(*args):\n    return _P5_INSTANCE.createCamera(*args)\n\ndef setCamera(*args):\n    return _P5_INSTANCE.setCamera(*args)\n\ndef select(*args):\n    return _P5_INSTANCE.select(*args)\n\ndef selectAll(*args):\n    return _P5_INSTANCE.selectAll(*args)\n\ndef removeElements(*args):\n    return _P5_INSTANCE.removeElements(*args)\n\ndef changed(*args):\n    return _P5_INSTANCE.changed(*args)\n\ndef input(*args):\n    return _P5_INSTANCE.input(*args)\n\ndef createDiv(*args):\n    return _P5_INSTANCE.createDiv(*args)\n\ndef createP(*args):\n    return _P5_INSTANCE.createP(*args)\n\ndef createSpan(*args):\n    return _P5_INSTANCE.createSpan(*args)\n\ndef createImg(*args):\n    return _P5_INSTANCE.createImg(*args)\n\ndef createA(*args):\n    return _P5_INSTANCE.createA(*args)\n\ndef createSlider(*args):\n    return _P5_INSTANCE.createSlider(*args)\n\ndef createButton(*args):\n    return _P5_INSTANCE.createButton(*args)\n\ndef createCheckbox(*args):\n    return _P5_INSTANCE.createCheckbox(*args)\n\ndef createSelect(*args):\n    return _P5_INSTANCE.createSelect(*args)\n\ndef createRadio(*args):\n    return _P5_INSTANCE.createRadio(*args)\n\ndef createColorPicker(*args):\n    return _P5_INSTANCE.createColorPicker(*args)\n\ndef createInput(*args):\n    return _P5_INSTANCE.createInput(*args)\n\ndef createFileInput(*args):\n    return _P5_INSTANCE.createFileInput(*args)\n\ndef createVideo(*args):\n    return _P5_INSTANCE.createVideo(*args)\n\ndef createAudio(*args):\n    return _P5_INSTANCE.createAudio(*args)\n\ndef createCapture(*args):\n    return _P5_INSTANCE.createCapture(*args)\n\ndef createElement(*args):\n    return _P5_INSTANCE.createElement(*args)\n\ndef createCanvas(*args):\n    canvas = _P5_INSTANCE.createCanvas(*args)\n\n    global width, height\n    width = _P5_INSTANCE.width\n    height = _P5_INSTANCE.height\n\n    return canvas\n\n\ndef pop(*args):\n    __pragma__('noalias', 'pop')\n    p5_pop = _P5_INSTANCE.pop(*args)\n    __pragma__('alias', 'pop', 'py_pop')\n    return p5_pop\n\n\n# Processing Python or Java mode compatibility aliases\nsize = createCanvas\npopMatrix = pop\npopStyle = pop\npushMatrix = push\npushStyle = push\n\n# PVector is a helper/alias to create p5.Vector objects\ndef PVector(x=0, y=0, z=0):\n    return _P5_INSTANCE.createVector(x, y, z)\n# aliases  for p5.Vector class methods\nsetattr(PVector, 'dist', p5.Vector.dist)\nsetattr(PVector, 'add', p5.Vector.add)\nsetattr(PVector, 'sub', p5.Vector.sub)\nsetattr(PVector, 'mult', p5.Vector.mult)\nsetattr(PVector, 'div', p5.Vector.div)\nsetattr(PVector, 'dot', p5.Vector.dot)\nsetattr(PVector, 'cross', p5.Vector.cross)\nsetattr(PVector, 'lerp', p5.Vector.lerp)\nsetattr(PVector, 'random2D', p5.Vector.random2D)\nsetattr(PVector, 'random3D', p5.Vector.random3D)\nsetattr(PVector, 'angleBetween', p5.Vector.angleBetween)\nsetattr(PVector, 'fromAngle', p5.Vector.fromAngle)\nsetattr(PVector, 'fromAngles', p5.Vector.fromAngles)\nsetattr(PVector, 'equals', p5.Vector.equals)\n\ndef pre_draw(p5_instance, draw_func):\n    \"\"\"\n    We need to run this before the actual draw to insert and update p5 env variables\n    \"\"\"\n    global _CTX_MIDDLE, _DEFAULT_FILL, _DEFAULT_LEADMULT, _DEFAULT_STROKE, _DEFAULT_TEXT_FILL\n\n    global ADD, ALT, ARROW, AUTO, AUDIO, AXES, BACKSPACE, BASELINE, BEVEL, BEZIER, BLEND, BLUR, BOLD, BOLDITALIC\n    global BOTTOM, BURN, CENTER, CHORD, CLAMP, CLOSE, CONTROL, CORNER, CORNERS, CROSS, CURVE, DARKEST\n    global DEG_TO_RAD, DEGREES, DELETE, DIFFERENCE, DILATE, DODGE, DOWN_ARROW, ENTER, ERODE, ESCAPE, EXCLUSION\n    global FILL, GRAY, GRID, HALF_PI, HAND, HARD_LIGHT, HSB, HSL, IMAGE, IMMEDIATE, INVERT, ITALIC, LANDSCAPE\n    global LEFT, LEFT_ARROW, LIGHTEST, LINE_LOOP, LINE_STRIP, LINEAR, LINES, MIRROR, MITER, MOVE, MULTIPLY, NEAREST\n    global NORMAL, OPAQUE, OPEN, OPTION, OVERLAY, P2D, PI, PIE, POINTS, PORTRAIT, POSTERIZE, PROJECT, QUAD_STRIP, QUADRATIC\n    global QUADS, QUARTER_PI, RAD_TO_DEG, RADIANS, RADIUS, REPEAT, REPLACE, RETURN, RGB, RIGHT, RIGHT_ARROW\n    global ROUND, SCREEN, SHIFT, SOFT_LIGHT, SQUARE, STROKE, SUBTRACT, TAB, TAU, TEXT, TEXTURE, THRESHOLD, TOP\n    global TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP_ARROW, VIDEO, WAIT, WEBGL\n\n    global frameCount, focused, displayWidth, displayHeight, windowWidth, windowHeight, width, height\n    global disableFriendlyErrors, deviceOrientation, accelerationX, accelerationY, accelerationZ\n    global pAccelerationX, pAccelerationY, pAccelerationZ, rotationX, rotationY, rotationZ\n    global pRotationX, pRotationY, pRotationZ, turnAxis, keyIsPressed, key, keyCode, mouseX, mouseY, pmouseX, pmouseY\n    global winMouseX, winMouseY, pwinMouseX, pwinMouseY, mouseButton, mouseIsPressed, touches, pixels\n\n    _CTX_MIDDLE = p5_instance._CTX_MIDDLE\n    _DEFAULT_FILL = p5_instance._DEFAULT_FILL\n    _DEFAULT_LEADMULT = p5_instance._DEFAULT_LEADMULT\n    _DEFAULT_STROKE = p5_instance._DEFAULT_STROKE\n    _DEFAULT_TEXT_FILL = p5_instance._DEFAULT_TEXT_FILL\n\n    ADD = p5_instance.ADD\n    ALT = p5_instance.ALT\n    ARROW = p5_instance.ARROW\n    AUDIO = p5_instance.AUDIO\n    AUTO = p5_instance.AUTO\n    AXES = p5_instance.AXES\n    BACKSPACE = p5_instance.BACKSPACE\n    BASELINE = p5_instance.BASELINE\n    BEVEL = p5_instance.BEVEL\n    BEZIER = p5_instance.BEZIER\n    BLEND = p5_instance.BLEND\n    BLUR = p5_instance.BLUR\n    BOLD = p5_instance.BOLD\n    BOLDITALIC = p5_instance.BOLDITALIC\n    BOTTOM = p5_instance.BOTTOM\n    BURN = p5_instance.BURN\n    CENTER = p5_instance.CENTER\n    CHORD = p5_instance.CHORD\n    CLAMP = p5_instance.CLAMP\n    CLOSE = p5_instance.CLOSE\n    CONTROL = p5_instance.CONTROL\n    CORNER = p5_instance.CORNER\n    CORNERS = p5_instance.CORNERS\n    CROSS = p5_instance.CROSS\n    CURVE = p5_instance.CURVE\n    DARKEST = p5_instance.DARKEST\n    DEG_TO_RAD = p5_instance.DEG_TO_RAD\n    DEGREES = p5_instance.DEGREES\n    DELETE = p5_instance.DELETE\n    DIFFERENCE = p5_instance.DIFFERENCE\n    DILATE = p5_instance.DILATE\n    DODGE = p5_instance.DODGE\n    DOWN_ARROW = p5_instance.DOWN_ARROW\n    ENTER = p5_instance.ENTER\n    ERODE = p5_instance.ERODE\n    ESCAPE = p5_instance.ESCAPE\n    EXCLUSION = p5_instance.EXCLUSION\n    FILL = p5_instance.FILL\n    GRAY = p5_instance.GRAY\n    GRID = p5_instance.GRID\n    HALF_PI = p5_instance.HALF_PI\n    HAND = p5_instance.HAND\n    HARD_LIGHT = p5_instance.HARD_LIGHT\n    HSB = p5_instance.HSB\n    HSL = p5_instance.HSL\n    IMAGE = p5_instance.IMAGE\n    IMMEDIATE = p5_instance.IMMEDIATE\n    INVERT = p5_instance.INVERT\n    ITALIC = p5_instance.ITALIC\n    LANDSCAPE = p5_instance.LANDSCAPE\n    LEFT = p5_instance.LEFT\n    LEFT_ARROW = p5_instance.LEFT_ARROW\n    LIGHTEST = p5_instance.LIGHTEST\n    LINE_LOOP = p5_instance.LINE_LOOP\n    LINE_STRIP = p5_instance.LINE_STRIP\n    LINEAR = p5_instance.LINEAR\n    LINES = p5_instance.LINES\n    MIRROR = p5_instance.MIRROR\n    MITER = p5_instance.MITER\n    MOVE = p5_instance.MOVE\n    MULTIPLY = p5_instance.MULTIPLY\n    NEAREST = p5_instance.NEAREST\n    NORMAL = p5_instance.NORMAL\n    OPAQUE = p5_instance.OPAQUE\n    OPEN = p5_instance.OPEN\n    OPTION = p5_instance.OPTION\n    OVERLAY = p5_instance.OVERLAY\n    P2D = p5_instance.P2D\n    P3D = p5_instance.WEBGL\n    PI = p5_instance.PI\n    PIE = p5_instance.PIE\n    POINTS = p5_instance.POINTS\n    PORTRAIT = p5_instance.PORTRAIT\n    POSTERIZE = p5_instance.POSTERIZE\n    PROJECT = p5_instance.PROJECT\n    QUAD_STRIP = p5_instance.QUAD_STRIP\n    QUADRATIC = p5_instance.QUADRATIC\n    QUADS = p5_instance.QUADS\n    QUARTER_PI = p5_instance.QUARTER_PI\n    RAD_TO_DEG = p5_instance.RAD_TO_DEG\n    RADIANS = p5_instance.RADIANS\n    RADIUS = p5_instance.RADIUS\n    REPEAT = p5_instance.REPEAT\n    REPLACE = p5_instance.REPLACE\n    RETURN = p5_instance.RETURN\n    RGB = p5_instance.RGB\n    RIGHT = p5_instance.RIGHT\n    RIGHT_ARROW = p5_instance.RIGHT_ARROW\n    ROUND = p5_instance.ROUND\n    SCREEN = p5_instance.SCREEN\n    SHIFT = p5_instance.SHIFT\n    SOFT_LIGHT = p5_instance.SOFT_LIGHT\n    SQUARE = p5_instance.SQUARE\n    STROKE = p5_instance.STROKE\n    SUBTRACT = p5_instance.SUBTRACT\n    TAB = p5_instance.TAB\n    TAU = p5_instance.TAU\n    TEXT = p5_instance.TEXT\n    TEXTURE = p5_instance.TEXTURE\n    THRESHOLD = p5_instance.THRESHOLD\n    TOP = p5_instance.TOP\n    TRIANGLE_FAN = p5_instance.TRIANGLE_FAN\n    TRIANGLE_STRIP = p5_instance.TRIANGLE_STRIP\n    TRIANGLES = p5_instance.TRIANGLES\n    TWO_PI = p5_instance.TWO_PI\n    UP_ARROW = p5_instance.UP_ARROW\n    VIDEO = p5_instance.VIDEO\n    WAIT = p5_instance.WAIT\n    WEBGL = p5_instance.WEBGL\n\n    frameCount = p5_instance.frameCount\n    focused = p5_instance.focused\n    displayWidth = p5_instance.displayWidth\n    displayHeight = p5_instance.displayHeight\n    windowWidth = p5_instance.windowWidth\n    windowHeight = p5_instance.windowHeight\n    width = p5_instance.width\n    height = p5_instance.height\n    disableFriendlyErrors = p5_instance.disableFriendlyErrors\n    deviceOrientation = p5_instance.deviceOrientation\n    accelerationX = p5_instance.accelerationX\n    accelerationY = p5_instance.accelerationY\n    accelerationZ = p5_instance.accelerationZ\n    pAccelerationX = p5_instance.pAccelerationX\n    pAccelerationY = p5_instance.pAccelerationY\n    pAccelerationZ = p5_instance.pAccelerationZ\n    rotationX = p5_instance.rotationX\n    rotationY = p5_instance.rotationY\n    rotationZ = p5_instance.rotationZ\n    pRotationX = p5_instance.pRotationX\n    pRotationY = p5_instance.pRotationY\n    pRotationZ = p5_instance.pRotationZ\n    turnAxis = p5_instance.turnAxis\n    keyIsPressed = p5_instance.keyIsPressed\n    key = p5_instance.key\n    keyCode = p5_instance.keyCode\n    mouseX = p5_instance.mouseX\n    mouseY = p5_instance.mouseY\n    pmouseX = p5_instance.pmouseX\n    pmouseY = p5_instance.pmouseY\n    winMouseX = p5_instance.winMouseX\n    winMouseY = p5_instance.winMouseY\n    pwinMouseX = p5_instance.pwinMouseX\n    pwinMouseY = p5_instance.pwinMouseY\n    mouseButton = p5_instance.mouseButton\n    mouseIsPressed = p5_instance.mouseIsPressed\n    touches = p5_instance.touches\n    pixels = p5_instance.pixels\n\n    return draw_func()\n\n\ndef global_p5_injection(p5_sketch):\n    \"\"\"\n    Injects the p5js's skecth instance as a global variable to setup and draw functions\n    \"\"\"\n\n    def decorator(f):\n        def wrapper():\n            global _P5_INSTANCE\n            _P5_INSTANCE = p5_sketch\n            return pre_draw(_P5_INSTANCE, f)\n\n\n        return wrapper\n\n\n    return decorator\n\n\ndef start_p5(preload_func, setup_func, draw_func, event_functions):\n    \"\"\"\n    This is the entrypoint function. It accepts 2 parameters:\n\n    - preload_func: a Python preload callable\n    - setup_func: a Python setup callable\n    - draw_func: a Python draw callable\n    - event_functions: a config dict for the event functions in the format:\n                       {\"eventFunctionName\": python_event_function}\n\n    This method gets the p5js's sketch instance and injects them\n    \"\"\"\n\n    def sketch_setup(p5_sketch):\n        p5_sketch.preload = global_p5_injection(p5_sketch)(preload_func)\n        p5_sketch.setup = global_p5_injection(p5_sketch)(setup_func)\n        p5_sketch.draw = global_p5_injection(p5_sketch)(draw_func)\n\n\n    instance = __new__(p5(sketch_setup, 'sketch-holder'))\n\n    # inject event functions into p5\n    event_function_names = (\n        \"deviceMoved\", \"deviceTurned\", \"deviceShaken\", \"windowResized\",\n        \"keyPressed\", \"keyReleased\", \"keyTyped\",\n        \"mousePressed\", \"mouseReleased\", \"mouseClicked\", \"doubleClicked\",\n        \"mouseMoved\", \"mouseDragged\", \"mouseWheel\",\n        \"touchStarted\", \"touchMoved\", \"touchEnded\", \"keyIsDown\"\n    )\n\n    for f_name in [f for f in event_function_names if event_functions.get(f, None)]:\n        func = event_functions[f_name]\n        event_func = global_p5_injection(instance)(func)\n        setattr(instance, f_name, event_func)\n\n\ndef logOnloaded():\n    console.log(\"Lib loaded!\")\n\n\ndef add_library(lib_name):\n    # placeholder for https://github.com/berinhard/pyp5js/issues/31\n    src = ''\n\n    return console.log(\"Lib name is not valid:\", lib_name)\n\n    console.log(\"Importing:\", src)\n\n    script = document.createElement(\"script\")\n    script.onload = logOnloaded\n    script.src = src\n    document.head.appendChild(script)\n"
  },
  {
    "path": "pyp5js/templates/transcrypt/python_functions.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nclass PythonFunctions: pass\n\nsetattr(PythonFunctions, 'map', map)\nsetattr(PythonFunctions, 'filter', filter)\nsetattr(PythonFunctions, 'set', set)\n"
  },
  {
    "path": "pyp5js/templates/transcrypt/target_sketch.py.template",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nfrom pyp5js import *\n\ndef preload():\n    pass\n\ndef setup():\n    pass\n\ndef draw():\n    pass\n\ndeviceMoved = None\ndeviceTurned = None\ndeviceShaken = None\nkeyPressed = None\nkeyReleased = None\nkeyTyped = None\nmouseMoved = None\nmouseDragged = None\nmousePressed = None\nmouseReleased = None\nmouseClicked = None\ndoubleClicked = None\nmouseWheel = None\ntouchStarted = None\ntouchMoved = None\ntouchEnded = None\nwindowResized = None\nkeyIsDown = None\n\n\n{{ sketch_content }}\n\n\nevent_functions = {\n    \"deviceMoved\": deviceMoved,\n    \"deviceTurned\": deviceTurned,\n    \"deviceShaken\": deviceShaken,\n    \"keyPressed\": keyPressed,\n    \"keyReleased\": keyReleased,\n    \"keyTyped\": keyTyped,\n    \"mouseMoved\": mouseMoved,\n    \"mouseDragged\": mouseDragged,\n    \"mousePressed\": mousePressed,\n    \"mouseReleased\": mouseReleased,\n    \"mouseClicked\": mouseClicked,\n    \"doubleClicked\": doubleClicked,\n    \"mouseWheel\": mouseWheel,\n    \"touchStarted\": touchStarted,\n    \"touchMoved\": touchMoved,\n    \"touchEnded\": touchEnded,\n    \"windowResized\": windowResized,\n    \"keyIsDown\": keyIsDown,\n}\n\nstart_p5(preload, setup, draw, event_functions)\n"
  },
  {
    "path": "pyp5js/templates_renderers.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nfrom jinja2 import Environment, FileSystemLoader, select_autoescape\n\nfrom pyp5js.config.fs import PYP5JS_FILES\nfrom pyp5js.sketch import Sketch\n\ntemplates = Environment(loader=FileSystemLoader(str(PYP5JS_FILES.templates_dir)))\n\n\ndef _template_from_file(filename, context):\n    templates = Environment(loader=FileSystemLoader(str(filename.parent.resolve())))\n    template = templates.get_template(filename.name)\n    return template.render(context)\n\n\ndef get_sketch_index_content(sketch):\n    \"\"\"\n    Renders SKETCH_NAME/index.html to display the sketch visualization.\n    template can be a pathlib.Path object with a specified custom template path\n    \"\"\"\n    context = {\n        \"sketch_name\": sketch.sketch_name,\n        \"p5_js_url\": sketch.urls.p5_js_url,\n        \"pyodide_js_url\": sketch.urls.pyodide_js_url,\n        \"sketch_js_url\":  sketch.urls.sketch_js_url,\n        \"sketch_content\": sketch.sketch_content,\n    }\n    template_file = sketch.config.get_index_template()\n    return _template_from_file(template_file, context)\n\n\ndef get_target_sketch_content(sketch):\n    \"\"\"\n    Renders the content to be written in the temporary SKETCH_NAME/target_sketch.py file\n    \"\"\"\n    context = sketch.get_target_sketch_context()\n    target_js_file = sketch.config.get_target_js_template()\n    return _template_from_file(target_js_file, context)\n"
  },
  {
    "path": "pyp5js/tests/__init__.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\n"
  },
  {
    "path": "pyp5js/tests/fixtures.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport json\nimport os\nimport shutil\nfrom pytest import fixture\nfrom tempfile import NamedTemporaryFile\n\nfrom pyp5js.config import TRANSCRYPT_INTERPRETER, PYODIDE_INTERPRETER\nfrom pyp5js.config.sketch import SketchConfig\nfrom pyp5js.config.fs import PYP5JS_FILES\nfrom pyp5js.config import SKETCHBOOK_DIR\nfrom pyp5js.sketch import Sketch\n\n\n@fixture\ndef lib_files():\n    return PYP5JS_FILES\n\n\n@fixture()\ndef sketch():\n    files = Sketch('foo')\n    files.create_sketch_dir()\n    yield files\n    shutil.rmtree(SKETCHBOOK_DIR)\n\n\n@fixture()\ndef sketch_pyodide():\n    files = Sketch('foo', interpreter=PYODIDE_INTERPRETER)\n    files.create_sketch_dir()\n    yield files\n    shutil.rmtree(SKETCHBOOK_DIR)\n\n@fixture\ndef transcrypt_json_file():\n    try:\n        fd = NamedTemporaryFile(mode='w', delete=False)\n        data = {\"interpreter\": \"transcrypt\"}\n        json.dump(data, fd)\n        filename = fd.name\n        fd.seek(0)\n        fd.close()\n        yield filename\n    finally:\n        os.remove(filename)\n\n@fixture\ndef pyodide_json_file():\n    try:\n        fd = NamedTemporaryFile(mode='w', delete=False)\n        data = {\"interpreter\": \"pyodide\"}\n        json.dump(data, fd)\n        filename = fd.name\n        fd.seek(0)\n        fd.close()\n        yield filename\n    finally:\n        os.remove(filename)\n\n@fixture\ndef custom_index_json_file():\n    try:\n        fd = NamedTemporaryFile(mode='w', delete=False)\n        data = {\"interpreter\": \"transcrypt\", \"index_template\": \"docs/examples/transcrypt/index.html.template\"}\n        json.dump(data, fd)\n        filename = fd.name\n        fd.seek(0)\n        fd.close()\n        yield filename\n    finally:\n        os.remove(filename)\n\n@fixture\ndef transcrypt_config():\n    return SketchConfig(interpreter=TRANSCRYPT_INTERPRETER)\n\n@fixture\ndef pyodide_config():\n    return SketchConfig(interpreter=PYODIDE_INTERPRETER)\n"
  },
  {
    "path": "pyp5js/tests/test_commands.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport pytest\nimport shutil\nfrom unittest import TestCase\nfrom unittest.mock import Mock, patch\n\nfrom pyp5js import commands\nfrom pyp5js.config import SKETCHBOOK_DIR, TRANSCRYPT_INTERPRETER, PYODIDE_INTERPRETER\nfrom pyp5js.config.fs import PYP5JS_FILES\nfrom pyp5js.exceptions import PythonSketchDoesNotExist, SketchDirAlreadyExistException, InvalidName\nfrom pyp5js.sketch import Sketch\n\nfrom .fixtures import sketch\n\n\ndef test_compile_sketch(sketch):\n    sketch.sketch_py.touch()\n    with patch('pyp5js.commands.compile_sketch_js') as compiler:\n        output = commands.compile_sketch('foo')\n\n        assert output == sketch\n        compiler.assert_called_once_with(sketch, force_local=False)\n\n\ndef test_compile_sketch_error_if_sketch_does_not_exist(sketch):\n    with patch('pyp5js.commands.compile_sketch_js') as compiler:\n        with pytest.raises(PythonSketchDoesNotExist):\n            commands.compile_sketch('foo')\n        assert not compiler.called\n\n\ndef test_compile_sketch_error_if_invalid_sketch(sketch):\n    with patch('pyp5js.commands.compile_sketch_js') as compiler:\n        with pytest.raises(InvalidName):\n            commands.compile_sketch('123foo')\n        assert not compiler.called\n\n\ndef test_monitor_sketch(sketch):\n    sketch.sketch_py.touch()\n    with patch('pyp5js.commands.monitor_sketch_service') as monitor:\n        commands.monitor_sketch('foo')\n\n        monitor.assert_called_once_with(sketch)\n\n\ndef test_monitor_sketch_error_if_sketch_does_not_exist(sketch):\n    with patch('pyp5js.commands.monitor_sketch_service') as monitor:\n        with pytest.raises(PythonSketchDoesNotExist):\n            commands.monitor_sketch('foo')\n        assert not monitor.called\n\n\ndef test_monitor_sketch_error_if_invalid_name(sketch):\n    with patch('pyp5js.commands.monitor_sketch_service') as monitor:\n        with pytest.raises(InvalidName):\n            commands.monitor_sketch('1234foo')\n        assert not monitor.called\n\n\nclass TestNewSketchCommand(TestCase):\n\n    def setUp(self):\n        self.sketch_name = 'foo'\n        self.sketch = Sketch(self.sketch_name)\n\n    def tearDown(self):\n        if SKETCHBOOK_DIR.exists():\n            shutil.rmtree(SKETCHBOOK_DIR)\n\n    def test_create_new_sketch_with_all_required_files(self):\n        commands.new_sketch(self.sketch_name)\n\n        assert self.sketch.index_html.exists()\n        assert self.sketch.sketch_py.exists()\n        assert not self.sketch.p5js.exists()\n        assert self.sketch.config_file.exists()\n        assert self.sketch.config.interpreter == TRANSCRYPT_INTERPRETER\n        assert self.sketch.config.index_template == \"\"\n\n    def test_create_pyodide_sketch(self):\n        commands.new_sketch(self.sketch_name, interpreter=PYODIDE_INTERPRETER)\n        self.sketch = Sketch(self.sketch_name)  # read config after init\n\n        assert self.sketch.index_html.exists()\n        assert self.sketch.sketch_py.exists()\n        assert not self.sketch.p5js.exists()\n        assert self.sketch.config_file.exists()\n        assert self.sketch.config.interpreter == PYODIDE_INTERPRETER\n\n    def test_raise_exception_if_dir_already_exist(self):\n        self.sketch.create_sketch_dir()\n\n        with pytest.raises(SketchDirAlreadyExistException):\n            commands.new_sketch(self.sketch_name)\n\n    def test_create_sketch_with_custom_index(self):\n        template = PYP5JS_FILES.install.parent / \"docs\" / \"examples\" / \"transcrypt\" / \"index.html.template\"\n        commands.new_sketch(self.sketch_name, template_file=template)\n\n        assert self.sketch.index_html.exists()\n        with open(self.sketch.index_html) as fd:\n            content = fd.read()\n        assert \"demoContainer\" in content\n\n    def test_create_sketch_using_local_installed_assets(self):\n        commands.new_sketch(self.sketch_name, use_cdn=False)\n\n        assert self.sketch.p5js.exists()\n"
  },
  {
    "path": "pyp5js/tests/test_compiler.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport pytest\nimport shutil\nfrom pathlib import Path\nfrom unittest import TestCase\nfrom unittest.mock import Mock, patch\n\nfrom pyp5js.compiler import TranscryptCompiler, compile_sketch_js\nfrom pyp5js import config\nfrom pyp5js.config.fs import PYP5JS_FILES\nfrom pyp5js.sketch import Sketch\nfrom pyp5js.templates_renderers import get_target_sketch_content\n\nfrom .fixtures import sketch\n\n\n@patch('pyp5js.compiler.TranscryptCompiler')\ndef test_compile_sketch_js_service(MockedCompiler, sketch):\n    compiler = Mock(spec=TranscryptCompiler)\n    MockedCompiler.return_value = compiler\n\n    compile_sketch_js(sketch)\n\n    MockedCompiler.assert_called_once_with(sketch, force_local=False)\n    compiler.compile_sketch_js.assert_called_once_with()\n\n\nclass TranscryptCompilerTests(TestCase):\n\n    def setUp(self):\n        self.sketch = Sketch('foo')\n        self.compiler = TranscryptCompiler(self.sketch)\n\n        self.sketch.create_sketch_dir()\n        self.sketch.sketch_py.touch()\n\n    def tearDown(self):\n        if config.SKETCHBOOK_DIR.exists():\n            shutil.rmtree(config.SKETCHBOOK_DIR)\n\n    def test_transcrypt_target_dir_path(self):\n        assert self.sketch.sketch_dir.joinpath(\n            '__target__') == self.compiler.target_dir\n\n    def test_command_line_string(self):\n        pyp5_dir = PYP5JS_FILES.transcrypt_conf_dir\n        target = self.sketch.target_sketch\n\n        expected = ' '.join([str(c) for c in [\n            'transcrypt', '-xp', f'\"{pyp5_dir}\"', '-k', '-ks', '-b', '-m', '-n', f'\"{target}\"'\n        ]])\n\n        assert expected == self.compiler.command_line\n\n    def test_run_compiler_as_expected(self):\n        self.compiler.prepare()\n        self.compiler.run_compiler()\n\n        assert self.compiler.target_dir.exists()\n        assert self.sketch.target_sketch.exists()\n\n    def test_run_compiler_as_expected_if_dir_name_with_space(self):\n        previous_dir = config.SKETCHBOOK_DIR\n        dir_with_space = Path.home().joinpath(\"pyp5js space dir\")\n        if not dir_with_space.exists():\n            dir_with_space.mkdir()\n        config.__dict__[\"SKETCHBOOK_DIR\"] = dir_with_space\n\n        self.sketch = Sketch('foo')\n        self.compiler = TranscryptCompiler(self.sketch)\n        self.sketch.create_sketch_dir()\n        self.sketch.sketch_py.touch()\n\n        try:\n            self.compiler.prepare()\n            self.compiler.run_compiler()\n\n            assert self.compiler.target_dir.exists()\n            assert self.sketch.target_sketch.exists()\n        finally:\n            if dir_with_space.exists():\n                shutil.rmtree(dir_with_space)\n            config.__dict__[\"SKETCHBOOK_DIR\"] = previous_dir\n\n    def test_clean_up(self):\n        self.compiler.target_dir.mkdir()\n        self.sketch.target_sketch.touch()\n\n        self.compiler.clean_up()\n\n        assert not self.compiler.target_dir.exists()\n        assert self.sketch.target_dir.exists()\n        assert not self.sketch.target_sketch.exists()\n\n    def test_prepare_sketch(self):\n        expected_content = get_target_sketch_content(self.sketch)\n        assert not self.sketch.target_sketch.exists()\n\n        self.compiler.prepare()\n\n        assert self.sketch.target_sketch.exists()\n        with self.sketch.target_sketch.open('r') as fd:\n            content = fd.read()\n        assert expected_content == content\n"
  },
  {
    "path": "pyp5js/tests/test_config/__init__.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\n"
  },
  {
    "path": "pyp5js/tests/test_config/test_fs.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport pytest\nfrom pathlib import Path\n\nfrom pyp5js.config.fs import PYP5JS_FILES\n\npyp5_dir = Path(__file__).parents[3].joinpath('pyp5js')\n\nfrom ..fixtures import lib_files\n\ndef test_dir_properties(lib_files):\n    assert pyp5_dir.exists()\n\n    assert lib_files.templates_dir == pyp5_dir.joinpath('templates')\n    assert lib_files.templates_dir.exists()\n    assert lib_files.static_dir == pyp5_dir.joinpath('http_local', 'static')\n    assert lib_files.static_dir.exists()\n\n\ndef test_files_properties(lib_files):\n    assert pyp5_dir.exists()\n\n    ##### GENERAL PURPOSE\n    assert lib_files.pytop5js == pyp5_dir.joinpath('templates', 'transcrypt', 'pyp5js.py')\n    assert lib_files.pytop5js.exists()\n\n    assert lib_files.p5js == pyp5_dir.joinpath('http_local', 'static', 'js', 'p5', 'p5.min.js')\n    assert lib_files.p5js.exists()\n\n    assert lib_files.p5_yml == pyp5_dir.joinpath('http_local', 'static', 'p5_reference.yml')\n    assert lib_files.p5_yml.exists()\n\n\ndef test_transcrypt_specifict_properties(lib_files):\n    assert lib_files.transcrypt_target_sketch_template == pyp5_dir.joinpath('templates', 'transcrypt', 'target_sketch.py.template')\n    assert lib_files.transcrypt_target_sketch_template.exists()\n\n    assert lib_files.transcrypt_index_html == pyp5_dir.joinpath('templates', 'transcrypt', 'index.html')\n    assert lib_files.transcrypt_index_html.exists()\n\n    assert lib_files.transcrypt_base_sketch_template == pyp5_dir.joinpath('templates', 'transcrypt', 'base_sketch.py.template')\n    assert lib_files.transcrypt_base_sketch_template.exists()\n\n\ndef test_pyodide_specifict_properties(lib_files):\n    assert lib_files.pyodide_target_sketch_template == pyp5_dir.joinpath('templates', 'pyodide', 'target_sketch.js.template')\n    assert lib_files.pyodide_target_sketch_template.exists()\n\n    assert lib_files.pyodide_index_html == pyp5_dir.joinpath('templates', 'pyodide', 'index.html')\n    assert lib_files.pyodide_index_html.exists()\n\n    assert lib_files.pyodide_base_sketch_template == pyp5_dir.joinpath('templates', 'pyodide', 'base_sketch.py.template')\n    assert lib_files.pyodide_base_sketch_template.exists()\n"
  },
  {
    "path": "pyp5js/tests/test_config/test_sketch.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport json\nimport os\nfrom pathlib import Path\nfrom tempfile import NamedTemporaryFile\n\nfrom pyp5js.config import TRANSCRYPT_INTERPRETER, PYODIDE_INTERPRETER\nfrom pyp5js.config.sketch import SketchConfig, P5_JS_CDN, PYODIDE_JS_CDN\nfrom pyp5js.config.fs import PYP5JS_FILES\n\nfrom ..fixtures import transcrypt_json_file, pyodide_json_file, transcrypt_config, pyodide_config, custom_index_json_file\n\n\ndef test_init_transcrypt_sketch_config_from_json(transcrypt_json_file):\n    config = SketchConfig.from_json(transcrypt_json_file)\n    assert config.interpreter == TRANSCRYPT_INTERPRETER\n\n\ndef test_init_pyodide_sketch_config_from_json(pyodide_json_file):\n    config = SketchConfig.from_json(pyodide_json_file)\n    assert config.interpreter == PYODIDE_INTERPRETER\n\n\ndef test_write_sketch_interpreter_config(custom_index_json_file):\n    config = SketchConfig.from_json(custom_index_json_file)\n    fd = NamedTemporaryFile(mode=\"w\", delete=False)\n    config.write(fd.name)\n    fd.close()\n    with open(fd.name) as fd:\n        data = json.load(fd)\n\n    expected = {\n        \"interpreter\": TRANSCRYPT_INTERPRETER,\n        \"index_template\": str(config.index_template_path.resolve()),\n        \"p5_js_url\": P5_JS_CDN,\n    }\n    assert data == expected\n\n\ndef test_write_defaults():\n    config = SketchConfig(PYODIDE_INTERPRETER)\n    fd = NamedTemporaryFile(mode=\"w\", delete=False)\n    config.write(fd.name)\n    fd.close()\n    with open(fd.name) as fd:\n        data = json.load(fd)\n\n    assert PYODIDE_INTERPRETER == data[\"interpreter\"]\n    assert P5_JS_CDN == data[\"p5_js_url\"]\n    assert PYODIDE_JS_CDN == data[\"pyodide_js_url\"]\n\n\ndef test_get_transcrypt_index_template(transcrypt_config):\n    template = transcrypt_config.get_index_template()\n    assert PYP5JS_FILES.transcrypt_index_html == template\n    assert template.exists()\n\n\ndef test_get_pyodide_index_template(pyodide_config):\n    template = pyodide_config.get_index_template()\n    assert PYP5JS_FILES.pyodide_index_html == template\n    assert template.exists()\n\n\ndef test_get_transcrypt_target_js_template(transcrypt_config):\n    template = transcrypt_config.get_target_js_template()\n    assert PYP5JS_FILES.transcrypt_target_sketch_template == template\n    assert template.exists()\n\n\ndef test_get_pyodide_target_js_template(pyodide_config):\n    template = pyodide_config.get_target_js_template()\n    assert PYP5JS_FILES.pyodide_target_sketch_template == template\n    assert template.exists()\n\n\ndef test_get_custom_index_template(custom_index_json_file):\n    config = SketchConfig.from_json(custom_index_json_file)\n    template = config.get_index_template()\n    assert Path(\"docs/examples/transcrypt/index.html.template\").absolute() == template\n"
  },
  {
    "path": "pyp5js/tests/test_http/test_web_app.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport os\nimport platform\nimport shutil\nfrom pathlib import Path\n\nfrom pyp5js import commands\nfrom pyp5js.sketch import Sketch\nfrom pyp5js.config import SKETCHBOOK_DIR, PYODIDE_INTERPRETER, TRANSCRYPT_INTERPRETER\nfrom pyp5js.http_local.web_app import app as web_app\nfrom flask_testing import TestCase\n\n\nclass Pyp5jsWebTestCase(TestCase):\n    render_templates = False\n\n    def create_app(self):\n        app = web_app\n        app.config['TESTING'] = True\n        return app\n\n    def setUp(self):\n        if not SKETCHBOOK_DIR.exists():\n            SKETCHBOOK_DIR.mkdir()\n\n    def tearDown(self):\n        if SKETCHBOOK_DIR.exists():\n            shutil.rmtree(SKETCHBOOK_DIR)\n\n    def create_sketch(self, name, interpreter=PYODIDE_INTERPRETER):\n        return commands.new_sketch(name, interpreter=interpreter)\n\n    def create_sketch_with_static_files(self, name, use_cdn=True):\n        sketch = commands.new_sketch(name, use_cdn=use_cdn)\n        commands.compile_sketch(name)\n        return sketch.sketch_dir\n\n    def create_file(self, file_name, content=''):\n        mode = 'w'\n        if isinstance(content, bytes):\n            mode += 'b'\n        with (SKETCHBOOK_DIR.joinpath(file_name).resolve()).open(mode) as fd:\n            fd.write(content)\n\n    def _add_template(self, app, template, context):\n        \"\"\"\n        flask testing does not work with Werkzeug>=2.1\n        We are overwriting how this function add the templates in order to\n        make it to work again.\n\n        The app parameter is actually the context, while the template\n        is now the app and the context is the template.\n        Yep, this is fucked up.\n        \"\"\"\n        app, template, context = template, context, app\n        if len(self.templates) > 0:\n            self.templates = []\n        self.templates.append((template, context))\n\n\nclass IndexViewTests(Pyp5jsWebTestCase):\n    route = '/'\n\n    def test_get_home_renders_index_template_and_context_with_empty(self):\n        self.client.get(self.route)\n        self.assert_template_used('index.html')\n        self.assert_context('sketches', [])\n\n    def test_get_home_renders_index_template_and_context_all_files(self):\n        self.create_sketch('first_sketch')\n        self.create_sketch('second_sketch')\n        self.client.get(self.route)\n        self.assert_template_used('index.html')\n        assert len(self.get_context_variable('sketches')) == 2\n        assert dict(name='first_sketch', url='/sketch/first_sketch/') in self.get_context_variable('sketches')\n        assert dict(name='second_sketch', url='/sketch/second_sketch/') in self.get_context_variable('sketches')\n\n\nclass NewSketchViewTests(Pyp5jsWebTestCase):\n    route = '/new-sketch/'\n\n    def test_get_new_sketch_renders_new_sketch_form_template(self):\n        self.client.get(self.route)\n        self.assert_template_used('new_sketch_form.html')\n        self.assert_context('sketches_dir', SKETCHBOOK_DIR.resolve())\n        self.assert_context('pyodide_interpreter', PYODIDE_INTERPRETER)\n        self.assert_context('transcrypt_interpreter', TRANSCRYPT_INTERPRETER)\n\n    def test_post_without_sketch_name_should_render_form_with_error(self):\n        self.client.post(self.route, data={'sketch_name': ''})\n        self.assert_template_used('new_sketch_form.html')\n        self.assert_context('error', 'You have to input a sketch name to proceed.')\n\n    def test_post_with_existing_sketch_name_should_render_form_with_error(self):\n        self.create_sketch('my_existing_sketch')\n        self.client.post(self.route, data={'sketch_name': 'my_existing_sketch'})\n        self.assert_template_used('new_sketch_form.html')\n        sketch_name = os.path.join('tests-sketchbook', 'my_existing_sketch')\n        self.assert_context('error', f'The sketch {sketch_name} already exists.')\n\n    def test_post_with_sketch_name_should_render_success_form(self):\n        self.client.post(self.route, data={'sketch_name': 'a_name'})\n        self.assert_template_used('new_sketch_success.html')\n        assert Sketch('a_name').config.is_pyodide\n\n    def test_can_specify_the_compiler_for_sketch(self):\n        data = {'sketch_name': 'a_name', 'interpreter': 'transcrypt'}\n        self.client.post(self.route, data=data)\n        self.assert_template_used('new_sketch_success.html')\n        assert Sketch('a_name').config.is_transcrypt\n\n    def test_error_if_invalid_p5js_interpreter(self):\n        data = {'sketch_name': 'a_name', 'interpreter': 'foo'}\n        self.client.post(self.route, data=data)\n        self.assert_template_used('new_sketch_form.html')\n        self.assert_context('error', f'The interpreter foo is not valid. Please, select a valid one.')\n\n\nclass SketchViewTests(Pyp5jsWebTestCase):\n    route = '/sketch/'\n\n    def test_get_sketch_does_not_exist(self):\n        response = self.client.get(self.route + 'sketch_does_not_exist/')\n        self.assert_404(response)\n\n    def test_get_sketch_exists(self):\n        sketch = self.create_sketch('sketch_exists')\n        py_code = sketch.sketch_py.read_text()\n\n        response = self.client.get(self.route + 'sketch_exists/')\n        self.assert_200(response)\n        self.assert_template_used('view_sketch.html')\n        self.assert_context('p5_js_url', sketch.urls.p5_js_url)\n        self.assert_context('sketch_js_url', sketch.urls.sketch_js_url)\n        self.assert_context('sketch_name', sketch.sketch_name)\n        self.assert_context('py_code', py_code)\n        self.assert_context('js_as_module', False)\n        self.assert_context('live_run', True)\n\n    def test_get_transcrypt_sketch(self):\n        sketch = self.create_sketch('sketch_exists', interpreter=TRANSCRYPT_INTERPRETER)\n        response = self.client.get(self.route + 'sketch_exists/')\n        self.assert_200(response)\n        self.assert_context('js_as_module', True)\n        self.assert_context('live_run', False)\n\n\n    def test_get_static_file_does_not_exist(self):\n        response = self.client.get(self.route + 'foo/static/file.js')\n        self.assert_404(response)\n\n    def test_get_static_javascript_file(self):\n        self.create_sketch_with_static_files('sketch_with_static_js', use_cdn=False)\n        response = self.client.get(self.route + 'sketch_with_static_js/static/p5.js')\n        self.assert_200(response)\n        content_types = ['application/javascript; charset=utf-8', 'text/javascript; charset=utf-8']\n        self.assertIn(response.headers['Content-Type'], content_types)\n\n    def test_get_static_javascript_file_upper_case(self):\n        js_code = 'alert(\"hi!\");'\n        self.create_sketch_with_static_files('sketch_with_static_js')\n        self.create_file(f'sketch_with_static_js/static/custom.JS', js_code)\n\n        response = self.client.get(self.route + 'sketch_with_static_js/static/custom.JS')\n\n        self.assert_200(response)\n        content_types = ['application/javascript; charset=utf-8', 'text/javascript; charset=utf-8']\n        self.assertIn(response.headers['Content-Type'], content_types)\n        self.assertEqual(js_code.encode(), response.get_data())\n\n    def test_get_static_file(self):\n        self.create_sketch('my_sketch_file')\n        self.create_file('my_sketch_file/static/style.css', 'css file content')\n        response = self.client.get(self.route + 'my_sketch_file/static/style.css')\n        self.assert_200(response)\n        self.assertEqual(response.data, b\"css file content\")\n\n    def test_get_image_files(self):\n        img_content = b'image content'\n        self.create_sketch('my_sketch_file')\n        supported_extensions = ['.gif', '.jpeg', '.png', '.PNG', '.JPEG', '.GIF']\n\n        for suffix in supported_extensions:\n            img_name = f\"image{suffix}\"\n            self.create_file(f'my_sketch_file/{img_name}', img_content)\n\n            response = self.client.get(self.route + f'my_sketch_file/{img_name}')\n\n            self.assert_200(response)\n            self.assertEqual(f'image/{suffix[1:].lower()}', response.headers['Content-Type'])\n            self.assertEqual(response.get_data(), img_content)\n\n    def test_regression_test_with_real_png_image(self):\n        img_name = 'alien.png'\n        alien_img = Path(__file__).resolve().parent / 'assets' / img_name\n        assert alien_img.exists()\n\n        sketch = self.create_sketch('my_sketch_file')\n        shutil.copyfile(alien_img, sketch.sketch_dir / img_name)\n\n        response = self.client.get(self.route + f'my_sketch_file/{img_name}')\n\n        self.assert_200(response)\n        self.assertEqual(f'image/png', response.headers['Content-Type'])\n        with alien_img.open(mode='rb') as fd:\n            self.assertEqual(response.get_data(), fd.read())\n\n    def test_403_if_invalid_path(self):\n        self.create_sketch('my_sketch_file')\n        self.create_file('my_sketch_file/static/style.css', 'css file content')\n        response = self.client.get(self.route + 'my_sketch_file/../static/style.css')\n        self.assert_403(response)\n\n\nclass UpdateSketchViewTests(Pyp5jsWebTestCase):\n    route = '/sketch/'\n    test_code = \"\"\"\nfrom pyp5js import *\n\ndef setup():\n    createCanvas(300, 300)\n\ndef draw():\n    rect(10, 10, 200, 100)\n    \"\"\".strip()\n\n    def test_update_sketch_on_post(self):\n        sketch = self.create_sketch('sketch_exists')\n\n        url = self.route + 'sketch_exists/'\n        response = self.client.post(url, data={'py_code': self.test_code})\n\n        assert self.test_code == sketch.sketch_py.read_text()\n\n    def test_python_code_is_required(self):\n        sketch = self.create_sketch('sketch_exists')\n        old_content = sketch.sketch_py.read_text()\n\n        url = self.route + 'sketch_exists/'\n        response = self.client.post(url, data={'py_code': ''})\n\n        self.assert_template_used('view_sketch.html')\n        self.assert_context('error', 'You have to input the Python code.')\n        assert old_content == sketch.sketch_py.read_text()\n\n    def test_check_python_syntax_before_updating(self):\n        test_code = self.test_code.replace('300)', '300')\n        sketch = self.create_sketch('sketch_exists')\n        old_content = sketch.sketch_py.read_text()\n\n        url = self.route + 'sketch_exists/'\n        response = self.client.post(url, data={'py_code': test_code})\n\n        self.assert_template_used('view_sketch.html')\n        err_msg = 'SyntaxError: invalid syntax (sketch_exists.py, line 6)'\n        if platform.python_version().startswith(\"3.10\"):\n            err_msg = \"SyntaxError: '(' was never closed (sketch_exists.py, line 4)\"\n        self.assert_context('error', err_msg)\n        assert old_content == sketch.sketch_py.read_text()\n\n    def test_check_for_setup_function_before_updating(self):\n        test_code = \"\"\"\nfrom pyp5js import *\n\ndef draw():\n    rect(10, 10, 200, 100)\n    \"\"\".strip()\n        sketch = self.create_sketch('sketch_exists')\n        old_content = sketch.sketch_py.read_text()\n\n        url = self.route + 'sketch_exists/'\n        response = self.client.post(url, data={'py_code': test_code})\n\n        self.assert_template_used('view_sketch.html')\n        self.assert_context('error', 'You have to define a setup function.')\n        assert old_content == sketch.sketch_py.read_text()\n\n    def test_check_for_draw_function_before_updating(self):\n        test_code = \"\"\"\nfrom pyp5js import *\n\ndef setup():\n    createCanvas(300, 300)\n    \"\"\".strip()\n        sketch = self.create_sketch('sketch_exists')\n        old_content = sketch.sketch_py.read_text()\n\n        url = self.route + 'sketch_exists/'\n        response = self.client.post(url, data={'py_code': test_code})\n\n        self.assert_template_used('view_sketch.html')\n        self.assert_context('error', 'You have to define a draw function.')\n        assert old_content == sketch.sketch_py.read_text()\n"
  },
  {
    "path": "pyp5js/tests/test_monitor.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nfrom queue import Queue\nfrom unittest import TestCase\nfrom unittest.mock import Mock, patch\n\nfrom pyp5js.monitor import TranscryptSketchEventHandler\nfrom pyp5js.sketch import Sketch\n\n\nclass TranscryptSketchEventHandlerTests(TestCase):\n\n    def setUp(self):\n        self.files = Mock(spec=Sketch)\n        self.queue = Mock(spec=Queue)\n        self.observer = Mock(event_queue=self.queue)\n        self.handler = TranscryptSketchEventHandler(sketch=self.files, observer=self.observer)\n\n    def test_handler_config(self):\n        assert self.files == self.handler.sketch\n        assert ['*.py'] == self.handler.patterns\n        assert self.observer == self.handler.observer\n\n    @patch('pyp5js.monitor.compile_sketch_js')\n    def test_on_modified(self, mocked_compiler):\n        self.queue.qsize.return_value = 0\n        event = Mock()\n\n        self.handler.on_modified(event)\n\n        mocked_compiler.assert_called_once_with(self.files)\n        self.queue.qsize.assert_called_once_with()\n\n    @patch('pyp5js.monitor.compile_sketch_js')\n    def test_on_modified_cleans_event_queue_from_changes_introduced_by_pyp5(self, mocked_compiler):\n        self.queue.qsize.side_effect = sorted(range(11), reverse=True)\n        event = Mock()\n\n        self.handler.on_modified(event)\n\n        mocked_compiler.assert_called_once_with(self.files)\n        assert self.queue.qsize.call_count == 11\n        assert 10 == self.queue.get.call_count\n"
  },
  {
    "path": "pyp5js/tests/test_pyp5js.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\n\"\"\"\nTest file to guarantee the Python code that'll be translated to JS\n\"\"\"\nfrom pyaml import yaml\nimport pytest\n\nfrom pyp5js.config.fs import PYP5JS_FILES\n\n\n@pytest.fixture\ndef pyp5js():\n    with PYP5JS_FILES.pytop5js.open('r') as fd:\n        return fd.read()\n\n\n@pytest.fixture\ndef p5_reference():\n    with PYP5JS_FILES.p5_yml.open('r') as fd:\n        return yaml.safe_load(fd)\n\n\nspecial_methods = ['pop', 'clear', 'get']\n\n\ndef test_all_regular_p5_methods_are_defined(pyp5js, p5_reference):\n    for method in [m for m in p5_reference['p5']['methods'] if m not in special_methods]:\n        if method == 'loadImage':\n            continue\n        assert f\"def {method}(*args):\" in pyp5js\n        assert f\"    return _P5_INSTANCE.{method}(*args)\" in pyp5js\n\n    assert f\"def loadImage(*args):\" in pyp5js\n    assert f\"    imageObj = _P5_INSTANCE.loadImage(*args)\" in pyp5js\n    assert f\"    return image_proxy(imageObj)\" in pyp5js\n\n    for method in [m for m in p5_reference['dom']['methods'] if m not in special_methods]:\n        assert f\"def {method}(*args):\" in pyp5js\n        assert f\"    return _P5_INSTANCE.{method}(*args)\" in pyp5js\n\n\ndef test_all_special_methods(pyp5js, p5_reference):\n    for method in special_methods:\n        assert f\"def {method}(*args):\" in pyp5js\n        assert f\"    __pragma__('noalias', '{method}')\" in pyp5js\n        assert f\"    p5_{method} = _P5_INSTANCE.{method}(*args)\" in pyp5js\n        assert f\"    __pragma__('alias', '{method}', 'py_{method}')\" in pyp5js\n        assert f\"    return p5_{method}\" in pyp5js\n"
  },
  {
    "path": "pyp5js/tests/test_sketch.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nimport pytest\nimport shutil\nfrom unittest import TestCase\n\nfrom pyp5js.config import SKETCHBOOK_DIR, PYODIDE_INTERPRETER\nfrom pyp5js.config.sketch import P5_JS_CDN, PYODIDE_JS_CDN\nfrom pyp5js.exceptions import SketchDirAlreadyExistException\nfrom pyp5js.sketch import Sketch\nfrom pyp5js.exceptions import InvalidName\n\n\nclass SketchTests(TestCase):\n\n    def setUp(self):\n        self.base_dir = SKETCHBOOK_DIR\n        self.sketch_name = 'foo'\n        self.files = Sketch(self.sketch_name)\n\n    def tearDown(self):\n        if self.base_dir.exists():\n            shutil.rmtree(self.base_dir)\n\n    def get_expected_path(self, *args):\n        return self.base_dir.joinpath(self.sketch_name, *args)\n\n    def test_sketch_dirs(self):\n        assert self.get_expected_path() == self.files.sketch_dir\n        assert self.get_expected_path('static') == self.files.static_dir\n        assert self.get_expected_path('target') == self.files.target_dir\n        assert self.files.TARGET_NAME == 'target'\n\n    def test_sketch(self):\n        self.files.check_sketch_dir = False\n        assert self.get_expected_path('index.html') == self.files.index_html\n        assert self.get_expected_path('static', 'p5.js') == self.files.p5js\n        assert self.get_expected_path('foo.py') == self.files.sketch_py\n        assert self.get_expected_path('.properties.json') == self.files.config_file\n\n    def test_target_sketch_variations(self):\n        assert self.get_expected_path('target_sketch.py') == self.files.target_sketch\n        self.files.config.interpreter = PYODIDE_INTERPRETER\n        assert self.get_expected_path('target', 'target_sketch.js') == self.files.target_sketch\n\n    def test_create_dirs(self):\n        assert self.files.sketch_dir.exists() is False\n        assert self.files.static_dir.exists() is False\n        assert self.files.target_dir.exists() is False\n        assert self.files.config_file.exists() is False\n\n        self.files.create_sketch_dir()\n\n        assert self.files.sketch_dir.exists() is True\n        assert self.files.static_dir.exists() is True\n        assert self.files.target_dir.exists() is True\n        assert self.files.config_file.exists() is True\n\n        with pytest.raises(SketchDirAlreadyExistException):\n            self.files.create_sketch_dir()\n\n    def test_raise_exception_when_name_starts_with_numbers(self):\n        files = Sketch('123name')\n        with pytest.raises(InvalidName):\n            files.validate_name()\n\n    def test_raise_exception_when_name_contains_non_alphanumeric_chars(self):\n        files = Sketch('name&')\n        with pytest.raises(InvalidName):\n            files.validate_name()\n\n    def test_raise_exception_when_name_creating_dir_with_invalid_name(self):\n        files = Sketch('name&')\n        with pytest.raises(InvalidName):\n            files.create_sketch_dir()\n\n    def test_name_should_accept_underscore_in_the_beginning(self):\n        file = Sketch('__name__')\n        assert file.sketch_name == '__name__'\n\n    def test_name_should_accept_underscore_in_the_middle(self):\n        file = Sketch('na_me')\n        assert file.sketch_name == 'na_me'\n\n    def test_loads_config_from_config_file(self):\n        files = Sketch('bar', interpreter=PYODIDE_INTERPRETER)\n        files.create_sketch_dir()  # writes config file json\n\n        same_files = Sketch('bar')\n\n        assert same_files.config_file == files.config_file\n        assert same_files.config.interpreter == PYODIDE_INTERPRETER\n\n    def test_sketch_custom_urls(self):\n        files = Sketch(self.files.sketch_name, p5_js_url=\"static/p5.js\", pyodide_js_url=\"static/pyodide/pyodide.js\")\n        urls = files.urls\n        assert \"static/p5.js\" == urls.p5_js_url\n        assert \"static/pyodide/pyodide.js\" == urls.pyodide_js_url\n        assert \"target/target_sketch.js\" == urls.sketch_js_url\n\n    def test_sketch_urls(self):\n        urls = self.files.urls\n        assert P5_JS_CDN == urls.p5_js_url\n        assert PYODIDE_JS_CDN == urls.pyodide_js_url\n        assert \"target/target_sketch.js\" == urls.sketch_js_url\n\n    def test_get_target_sketch_context_for_local_pyodide(self):\n        files = Sketch(\n            self.files.sketch_name, pyodide_js_url=\"static/pyodide/pyodide.js\",\n            interpreter=PYODIDE_INTERPRETER)\n        expected_context = {\n            \"sketch_name\": files.sketch_name,\n            \"sketch_content\": files.sketch_content,\n            \"pyodide_index_url\": \"static/pyodide/\"\n        }\n        assert expected_context == files.get_target_sketch_context()\n\n    def test_copy_local_files_if_not_using_cdn(self):\n        files = Sketch('test', interpreter=PYODIDE_INTERPRETER)\n        files.create_sketch_dir()\n        files.copy_initial_files(use_cdn=False)\n        pyodide_js_dir = files.static_dir / \"pyodide\"\n\n        assert files.config.p5_js_url == \"/static/p5.js\"\n        assert files.config.pyodide_js_url == \"/static/pyodide/pyodide_v0.18.1.js\"\n        assert files.p5js.exists()\n        assert pyodide_js_dir.exists()\n\n        assert (pyodide_js_dir / \"pyodide.asm.data\").exists()\n        assert (pyodide_js_dir / \"pyodide.asm.js\").exists()\n        assert (pyodide_js_dir / \"pyodide.asm.wasm\").exists()\n        assert (pyodide_js_dir / \"pyodide.js.map\").exists()\n        assert (pyodide_js_dir / \"pyodide_v0.18.1.js\").exists()\n        assert not (pyodide_js_dir / \"packages.json\").exists()\n"
  },
  {
    "path": "pyp5js/tests/test_templates_renderers.py",
    "content": "\"\"\"\npyp5js\nCopyright (C) 2019-2021 Bernardo Fontes\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n\"\"\"\nfrom pyp5js import templates_renderers as renderers\n\nfrom .fixtures import sketch, sketch_pyodide\nfrom ..config.sketch import P5_JS_CDN, PYODIDE_JS_CDN\n\n\ndef test_get_transcrypt_index_content(sketch):\n    expected_template = renderers.templates.get_template('transcrypt/index.html')\n    url = sketch.TARGET_NAME + \"/target_sketch.js\"\n    expected_content = expected_template.render({\n        \"sketch_name\": sketch.sketch_name,\n        \"p5_js_url\": P5_JS_CDN,\n        \"sketch_js_url\": url,\n    })\n\n    content = renderers.get_sketch_index_content(sketch)\n    assert expected_content == content\n    assert sketch.sketch_name in content\n    assert P5_JS_CDN in content\n    assert url in content\n\n\ndef test_get_pyodide_index_content(sketch_pyodide):\n    expected_template = renderers.templates.get_template('pyodide/index.html')\n    url = sketch_pyodide.TARGET_NAME + \"/target_sketch.js\"\n    expected_content = expected_template.render({\n        \"sketch_name\": sketch_pyodide.sketch_name,\n        \"p5_js_url\": P5_JS_CDN,\n        \"sketch_js_url\": url,\n        \"pyodide_js_url\": PYODIDE_JS_CDN,\n    })\n\n    content = renderers.get_sketch_index_content(sketch_pyodide)\n    assert sketch_pyodide.sketch_name in content\n    assert P5_JS_CDN in content\n    assert PYODIDE_JS_CDN in content\n    assert url in content\n    assert expected_content == content\n\n\ndef test_get_transcrypt_target_sketch_content(sketch):\n    with open(sketch.sketch_py, 'w') as fd:\n        fd.write('content')\n\n    expected_template = renderers.templates.get_template('transcrypt/target_sketch.py.template')\n    expected_content = expected_template.render({\n        'sketch_name': sketch.sketch_name,\n        'sketch_content': 'content'\n    })\n    content = renderers.get_target_sketch_content(sketch)\n\n    assert expected_content == content\n\n\ndef test_get_pyodide_target_sketch_content(sketch_pyodide):\n    with open(sketch_pyodide.sketch_py, 'w') as fd:\n        fd.write('content')\n\n    expected_template = renderers.templates.get_template('pyodide/target_sketch.js.template')\n    expected_content = expected_template.render({\n        'sketch_name': sketch_pyodide.sketch_name,\n        'sketch_content': 'content',\n        'pyodide_index_url': 'https://cdn.jsdelivr.net/pyodide/v0.18.1/full/',\n    })\n    content = renderers.get_target_sketch_content(sketch_pyodide)\n\n    assert expected_content == content\n"
  },
  {
    "path": "pytest.ini",
    "content": "[pytest]\nenv =\n    SKETCHBOOK_DIR=tests-sketchbook\n"
  },
  {
    "path": "requirements.txt",
    "content": "Click==8.0.1\nJinja2==3.1.2\nTranscrypt==3.9.0\ncprint==1.2.2\ngunicorn==20.1.0\nwatchdog==2.1.9\npython-decouple==3.6\nFlask==2.2.2\npython-slugify==6.1.2\nmarkupsafe==2.1.1\n"
  },
  {
    "path": "setup.py",
    "content": "# Copyright 2018-2019 Bernardo Fontes <https://github.com/berinhard/pyp5js/>\n\n#    This program is free software: you can redistribute it and/or modify\n#    it under the terms of the GNU Lesser General Public License as published by\n#    the Free Software Foundation, either version 3 of the License, or\n#    (at your option) any later version.\n\n#    This program is distributed in the hope that it will be useful,\n#    but WITHOUT ANY WARRANTY; without even the implied warranty of\n#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n#    GNU Lesser General Public License for more details.\n\n#    You should have received a copy of the GNU Lesser General Public License\n#    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\nfrom setuptools import setup, find_packages\n\nwith open(\"requirements.txt\") as fd:\n    requirements = [l.strip() for l in fd.readlines()]\n\nwith open(\"README.md\") as fd:\n    long_description = fd.read()\n\nwith open(\"VERSION\") as fd:\n    version = fd.read().strip()\n\nsetup(\n    name=\"pyp5js\",\n    version=version,\n    description='Simple tool to allow to transcrypt Python code that uses P5.js',\n    long_description=long_description,\n    long_description_content_type='text/markdown',\n    author='Bernardo Fontes',\n    maintainer='Bernardo Fontes',\n    maintainer_email='bernardoxhc@gmail.com',\n    url=\"https://github.com/berinhard/pyp5js/\",\n    license='GNU Lesser General Public License version 3',\n    packages=find_packages(exclude=[\"pyp5js.tests\"]),\n    package_data={\n        'pyp5js': [\n            'templates/*',\n            'http_local/templates/*',\n            'http_local/static/*',\n        ]\n    },\n    include_package_data=True,\n    zip_safe=False,\n    entry_points={\n        'console_scripts': ['pyp5js = pyp5js.cli:command_line_entrypoint']\n    },\n    python_requires='>=3.6',\n    install_requires=requirements,\n    keywords=\"p5js processing creative coding\",\n)\n"
  }
]